);this.overflowButton.hide();g.U(this,this.overflowButton);this.J=new g.t({O:"text",D:"ytp-featured-product-exclusive-countdown",QV:"{{content}}",B:{id:"exclusiveCountdown","aria-hidden":"true"}});this.J.hide();g.U(this, this.J);this.N=new g.t({O:"div",D:"ytp-featured-product-exclusive-container",B:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},W:[{O:"div",D:"ytp-featured-product-exclusive-badge-container",W:[{O:"div",D:"ytp-featured-product-exclusive-badge",W:[{O:"text",D:"ytp-featured-product-exclusive-badge-text",QV:"{{exclusive}}",B:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.N.hide();g.U(this,this.N);this.banner=new g.t({O:"a",D:"ytp-featured-product-container",W:[{O:"div",D:"ytp-featured-product-thumbnail", W:[{O:"img",B:{src:"{{thumbnail}}"}},this.D3]},{O:"div",D:"ytp-featured-product-details",W:[{O:"text",D:"ytp-featured-product-title",QV:"{{title}}"},this.A.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{O:"div",D:"ytp-featured-product-price-container",B:{"aria-label":"{{priceA11yText}}"},W:[{O:"text",D:"ytp-featured-product-price-when-promotion-text-enabled",QV:"{{price}}",B:{"aria-hidden":"true"}},{O:"text",D:"ytp-featured-product-promotion-text",QV:"{{promotionText}}", B:{"aria-hidden":"true"}}]}:{O:"div",B:{"aria-label":"{{priceA11yText}}"},W:[{O:"text",D:"ytp-featured-product-price",QV:"{{price}}",B:{"aria-hidden":"true"}},{O:"text",D:"ytp-featured-product-sales-original-price",QV:"{{salesOriginalPrice}}",B:{"aria-hidden":"true"}},{O:"text",D:"ytp-featured-product-price-drop-reference-price",QV:"{{priceDropReferencePrice}}",B:{"aria-hidden":"true"}}]},this.A.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{O:"div",D:"ytp-featured-product-when-promotion-text-enabled", W:[{O:"text",D:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",QV:"{{affiliateDisclaimer}}"},this.V,{O:"text",D:"ytp-featured-product-vendor-when-promotion-text-enabled",QV:"{{vendor}}"}]}:{O:"div",W:[{O:"text",D:"ytp-featured-product-affiliate-disclaimer",QV:"{{affiliateDisclaimer}}"},this.A.X("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.N:null,this.V,{O:"text",D:"ytp-featured-product-vendor",QV:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.U(this,this.banner);this.banner.Ia(this.G.element);this.C(this.A,g.s9("featured_product"),this.Z1);this.C(this.A,g.U9("featured_product"),this.b0);this.C(this.A,"videodatachange",this.onVideoDataChange);this.C(this.overflowButton.element,"click",this.pQ);this.C(D,"featuredproductdismissed",this.Y)}pQ(D){this.xU||(this.xU=new toA(this.A),g.U(this,this.xU));this.uY?.menu?.menuRenderer&&(this.xU.open(this.uY.menu.menuRenderer,D.target),D.preventDefault())}K(){return!!this.L}BZ(){return!!this.L}HZ(D){D.target=== this.overflowButton.element?D.preventDefault():(this.Wo&&g.pm(this.A,"innertubeCommand",this.Wo),this.S(!1))}Y(){this.S(!0);if(this.L?.bannerData?.dismissedStatusKey){if(this.Ay.includes(this.L.bannerData.dismissedStatusKey))return;this.Ay.push(this.L.bannerData.dismissedStatusKey)}this.b0();if(this.A.X("web_enable_shopping_timely_shelf_client")){const D={};g.KG(D,Xto,{overlayId:"player_overlay_timely_shelf"});g.pm(this.A,"innertubeCommand",D)}}aG(){this.b0();b1(this)}Z1(D){if(D.id!==this.L?.identifier){this.b0(); for(const X of this.O7){const B=X?.bannerData?.itemData;if(!B||X.identifier!==D.id)continue;if(this.Ay.includes(X?.bannerData?.dismissedStatusKey||""))return;this.L=X;this.banner.element.setAttribute("aria-label",B.accessibilityLabel||"");B.trackingParams&&(this.U=!0,this.A.setTrackingParams(this.badge.element,B.trackingParams));this.show();this.s7.show();D0(this);this.D3.BC(!B.stayInApp);this.Lr?.stop();this.countdownTimer.hide();sq(this);kv(this);this.Wo=g.Z(B.onTapCommand,aV);const C=g.Z(B.menuOnTap, aV);C&&(this.uY=g.Z(C,xdV));this.banner.update({thumbnail:(B.thumbnailSources||[])[0]?.url,title:B.productTitle,price:B.priceReplacementText?B.priceReplacementText:B.price,salesOriginalPrice:ILX(this),priceDropReferencePrice:KU$(this),promotionText:o9A(this),priceA11yText:eob(this),affiliateDisclaimer:B.affiliateDisclaimer,vendor:Rb(this)});B?.hiddenProductOptions?.showDropCountdown&&B?.hiddenProductOptions?.dropTimestampMs&&(this.Lr=new g.tM(()=>{dh1(this)},1E3),this.D3.hide(),this.countdownTimer.show(), dh1(this)); this.A.X("web_player_enable_featured_product_banner_exclusives_on_desktop")&&Gi9(this)&&(this.Ci=new g.tM(()=>{ZzX(this)},1E3),ZzX(this))}this.A.getRootNode()&&g.V7(this.A.getRootNode(),"ytp-featured-product-shown")}}b0(){this.L&&(this.L=void 0,this.Z(),this.A.getRootNode()&&g.y7(this.A.getRootNode(),"ytp-featured-product-shown"))}onVideoDataChange(D,X){Yd$(this,X); D==="dataloaded"&&b1(this);D=g.Z(X.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,oG$);this.overflowButton.show();this.dismissButton.hide();const B=D?.featuredProductsEntityKey;this.trendingOfferEntityKey=D?.trendingOfferEntityKey;this.O7.length||(LUu(this,B),kv(this));this.Mn?.();this.Mn=g.zD.subscribe(()=>{LUu(this,B);kv(this)})}u0(){b1(this); this.Lr?.stop();this.countdownTimer.hide();sq(this);super.u0()}};var gg2=class extends g.t{constructor(D,X,B){super({O:"div",l0:["ytp-info-panel-action-item"],W:[{O:"div",D:"ytp-info-panel-action-item-disclaimer",QV:"{{disclaimer}}"},{O:"a",l0:["ytp-info-panel-action-item-button","ytp-button"],B:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{O:"div",D:"ytp-info-panel-action-item-icon",QV:"{{icon}}"},{O:"div",D:"ytp-info-panel-action-item-label",QV:"{{label}}"}]}]});this.A=D;this.Z=B;this.disclaimer=this.oa("ytp-info-panel-action-item-disclaimer"); this.button=this.oa("ytp-info-panel-action-item-button");this.fQ=!1;this.A.createServerVe(this.element,this,!0);this.listen("click",this.onClick);D="";var C=g.Z(X?.onTap,aV);B=g.Z(C,g.cl);this.fQ=!1;B?(D=B.url||"",D.startsWith("//")&&(D="https:"+D),this.fQ=!0,g.Gc(this.button,g.oe(D))):(B=g.Z(C,md$))&&!this.Z?((D=B.phoneNumbers)&&D.length>0?(D="sms:"+D[0],B.messageText&&(D+="?&body="+encodeURI(B.messageText))):D="",this.fQ=!0,g.Gc(this.button,g.oe(D,[yyY]))):(B=g.Z(C,yjA))&&!this.Z&&(D=B.phoneNumber? "tel:"+B.phoneNumber:"",this.fQ=!0,g.Gc(this.button,g.oe(D,[x$1])));!D&&(B=g.Z(X?.onTap,aV),C=g.Z(B,s0))&&(this.fQ=!0,this.L=B,this.feedbackToken=C.feedbackToken);(B=X.disclaimerText?.content)?(this.button.style.borderBottom="1px solid white",this.button.style.paddingBottom="16px",this.update({label:X.bodyText?.content,icon:g9z(X.icon?.iconType),disclaimer:B})):(this.disclaimer.style.display="none",this.update({label:X.bodyText?.content,icon:g9z(X.icon?.iconType)}));this.A.setTrackingParams(this.element, X.trackingParams||null);this.fQ&&(this.U={externalLinkData:{url:D}})}onClick(){this.A.logClick(this.element,this.U);if(this.L&&this.feedbackToken){const D=this.A.Yu();D?.Nl(this.L)&&(gj(D,this.L,{feedbackTokens:[this.feedbackToken]}),this.A.publish("infopaneldetaildismissed"))}}};var Eg8=class extends Sb{constructor(D,X){const B=C9();super(D,{O:"div",D:"ytp-info-panel-detail-skrim",W:[{O:"div",D:"ytp-info-panel-detail",B:{role:"dialog",id:B},W:[{O:"div",D:"ytp-info-panel-detail-header",W:[{O:"div",D:"ytp-info-panel-detail-title",QV:"{{title}}"},{O:"button",l0:["ytp-info-panel-detail-close","ytp-button"],B:{"aria-label":"Close"},W:[g.vl()]}]},{O:"div",D:"ytp-info-panel-detail-body",QV:"{{body}}"},{O:"div",D:"ytp-info-panel-detail-items"}]}]},250);this.L=X;this.items=this.oa("ytp-info-panel-detail-items"); this.Z=new g.Fj(this);this.itemData=[];this.U=B;this.C(this.oa("ytp-info-panel-detail-close"),"click",this.Df);this.C(this.oa("ytp-info-panel-detail-skrim"),"click",this.Df);this.C(this.oa("ytp-info-panel-detail"),"click",C=>{C.stopPropagation()}); this.C(this.A,"infopaneldetaildismissed",()=>{this.Df()}); g.U(this,this.Z);this.A.createServerVe(this.element,this,!0);this.C(D,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",D.getVideoData());this.hide()}show(){super.show();this.A.publish("infopaneldetailvisibilitychange",!0);this.A.logVisibility(this.element,!0);for(const D of this.itemData)D.A.logVisibility(D.element,!0)}hide(){super.hide();this.A.publish("infopaneldetailvisibilitychange",!1);this.A.logVisibility(this.element,!1);for(const D of this.itemData)D.A.logVisibility(D.element, !1)}getId(){return this.U}Te(){return this.itemData.length}onVideoDataChange(D,X){if(X){this.update({title:X.Ni?.title?.content||"",body:X.Ni?.bodyText?.content||""});this.A.setTrackingParams(this.element,X.Ni?.trackingParams||null);for(const B of this.itemData)B.dispose();this.itemData=[];if(X.Ni?.ctaButtons)for(const B of X.Ni.ctaButtons)if(D=g.Z(B,TJs))D=new gg2(this.A,D,this.L),D.fQ&&(this.itemData.push(D),D.Ia(this.items))}}u0(){this.hide();super.u0()}};var ngP=class extends g.t{constructor(D,X){super({O:"button",D:"ytp-info-panel-preview",B:{"aria-live":"assertive","aria-atomic":"true","aria-owns":X.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.WU(D.j()))},W:[{O:"div",D:"ytp-info-panel-preview-text",QV:"{{text}}"},{O:"div",D:"ytp-info-panel-preview-chevron",QV:"{{chevron}}"}]});this.A=D;this.rS=this.L=this.videoId=null;this.isDismissed=this.U=this.showControls=this.Z=!1;this.C(this.element,"click",()=>{D.logClick(this.element);D.j0(); gP(X)}); this.fade=new g.nJ(this,250,!1,100);g.U(this,this.fade);this.A.createServerVe(this.element,this,!0);this.C(D,"videodatachange",this.onVideoDataChange);this.C(D,"presentingplayerstatechange",this.Y);this.C(this.A,"paidcontentoverlayvisibilitychange",this.V);this.C(this.A,"infopaneldetailvisibilitychange",this.V);const B=D.getVideoData()||{};(B.O7?.title?.content||B.O7?.bodyText?.content)&&cY(this,B);this.C(D,"onShowControls",this.S);this.C(D,"onHideControls",this.G);this.C(this.A,"infopaneldetaildismissed", ()=>{this.isDismissed=!0;this.hide()})}onVideoDataChange(D,X){cY(this,X); this.rS&&n9$(this,this.rS)}Y(D){const X=this.A.getVideoData();this.videoId!==X.videoId&&cY(this,X);n9$(this,D.state);this.rS=D.state}V(D){(this.U=D)?this.hide():this.L&&!this.isDismissed&&this.show()}S(){this.Z||this.xt();this.showControls=!0}G(){this.Z||this.Df();this.showControls=!1}xt(){if(!this.isDismissed){var D=this.A?.getPlayerSize(),X=D.width<380;D=D.height<(this.A?.isEmbedsShortsMode()?400:280);(this.A?.getPlayerStateObject().isCued()||this.A?.getPlayerStateObject().L(1024))&&X&&D||!this.L|| this.U||(this.fade.show(),this.A.publish("infopanelpreviewvisibilitychange",!0),this.A.logVisibility(this.element,!0))}}Df(){this.L&&!this.U&&(this.fade.hide(),this.A.publish("infopanelpreviewvisibilitychange",!1),this.A.logVisibility(this.element,!1))}K(){this.Z=!1;this.showControls||this.Df()}};var wAC={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(wAC).reduce((D,X)=>{D[wAC[X]]=X;return D},{}); var TWg={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(TWg).reduce((D,X)=>{D[TWg[X]]=X;return D},{}); var St5={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(St5).reduce((D,X)=>{D[St5[X]]=X;return D},{});var gv,PhN;gv=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];PhN=[{option:0,text:NO(0)},{option:.25,text:NO(.25)},{option:.5,text:NO(.5)},{option:.75,text:NO(.75)},{option:1,text:NO(1)}]; g.Ib=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:gv},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:NO(.5)},{option:-1,text:NO(.75)},{option:0,text:NO(1)},{option:1,text:NO(1.5)},{option:2,text:NO(2)}, {option:3,text:NO(3)},{option:4,text:NO(4)}]},{option:"background",text:"Background color",options:gv},{option:"backgroundOpacity",text:"Background opacity",options:PhN},{option:"windowColor",text:"Window color",options:gv},{option:"windowOpacity",text:"Window opacity",options:PhN},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",text:"Font opacity", options:[{option:.25,text:NO(.25)},{option:.5,text:NO(.5)},{option:.75,text:NO(.75)},{option:1,text:NO(1)}]}];var tUP=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219],O0K=class extends g.Fj{constructor(D,X,B,C,V,x,y,m){super();this.api=D;this.N=X;this.contextMenu=B;this.ED=C;this.DL=V;this.L=x;this.Z3=y;this.progressBar=m;this.G=new g.tM(()=>{t5X(this,!1)},1E3); this.U="";this.V={c_:!1,j6:!1,z5:!1};g.U(this,this.G);this.C(X,"mousedown",()=>{ab(this,!1)}); this.C(B.element,"mousedown",()=>{ab(this,!1)}); this.C(X,"keydown",this.S);this.C(B.element,"keydown",this.S);this.C(X,"keyup",this.K);this.C(B.element,"keyup",this.K)}S(D){D.repeat||(this.V.c_=!1);let X=!1;const B=D.keyCode;var C=XK(D);let V=!D.altKey&&!D.ctrlKey&&!D.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||tUP.includes(B));var x=!1;let y=!1;const m=this.api.j();D.defaultPrevented?(V=!1,y=!0):m.mG&&!this.api.isMutedByEmbedsMutedAutoplay()&&(V=!1);if(B===9)X=!0;else{if(C)switch(B){case 32:case 13:if(C.tagName==="BUTTON"||C.tagName=== "A"||C.tagName==="INPUT")X=!0,V=!1;else if(V){var l=C.getAttribute("role");!l||l!=="option"&&l!=="button"&&l.indexOf("menuitem")!==0||(X=!0,C.click(),x=!0)}break;case 37:case 39:case 36:case 35:X=C.getAttribute("role")==="slider";break;case 38:case 40:l=C.getAttribute("role"),C=B===38?C.previousSibling:C.nextSibling,l==="slider"?X=!0:V&&(l==="option"?(C&&C.getAttribute("role")==="option"&&C.focus(),x=X=!0):l&&l.indexOf("menuitem")===0&&(C&&C.hasAttribute("role")&&C.getAttribute("role").indexOf("menuitem")=== 0&&C.focus(),x=X=!0))}if(V&&!x)switch(B){case 38:x=Math.min(this.api.getVolume()+5,100);h3(this.DL,x,!1);this.api.setVolume(x);y=x=!0;break;case 40:x=Math.max(this.api.getVolume()-5,0);h3(this.DL,x,!0);this.api.setVolume(x);y=x=!0;break;case 36:this.api.Mp()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),y=x=!0);break;case 35:this.api.Mp()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),y=x=!0)}}X&&ab(this,!0);(X||y)&&this.ED.ox();(x|| V&&this.handleGlobalKeyDown(B,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat))&&D.preventDefault();m.K&&(D={keyCode:D.keyCode,altKey:D.altKey,ctrlKey:D.ctrlKey,metaKey:D.metaKey,shiftKey:D.shiftKey,handled:D.defaultPrevented,fullscreen:this.api.isFullscreen()},g.jK(this.api,"onKeyPress",D))}K(D){const X=D.keyCode;!this.V.j6&&this.handleGlobalKeyUp(X,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)&&D.preventDefault()}handleGlobalKeyUp(D,X,B,C,V,x,y){this.api.publish("keyboardserviceglobalkeyup", {keyCode:D,shiftKey:X,ctrlKey:B,altKey:C,metaKey:V,key:x,code:y});X=!1;if(this.V.c_)return X;(x=g.Km(this.api.vC()))&&(x=x.mf)&&x.U2&&(x.RX(D),X=!0);switch(D){case 9:ab(this,!0);X=!0;break;case 32:this.api.X("web_speedmaster_spacebar_control")&&(this.api.j().mG||(X=this.N3(this.progressBar?.vN()?.isEnabled)));break;case 39:(this.api.X("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(V||B&&C))&&(mx?C:B)&&this.api.Mp()&&this.api.X("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(), D=(D=this.api.getVideoData())?D.uY:[],B=T2u(D,this.api.getCurrentTime()*1E3),B!==-1&&this.L!=null&&(this.L.Wq(1,D[B].title),this.api.seekTo(D[B].startTime/1E3,void 0,void 0,void 0,52),X=!0))}return X}handleGlobalKeyDown(D,X,B,C,V,x,y,m){m||(this.V.c_=!1);var l=!1,W=this.api.j();if(W.mG&&!this.api.isMutedByEmbedsMutedAutoplay())return l;var v=g.Km(this.api.vC());if(v&&(v=v.mf)&&v.U2)switch(D){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:l=v.fn(D)}W.S||l||(l=x||String.fromCharCode(D).toLowerCase(), this.U+=l,"awesome".indexOf(this.U)===0||this.api.X("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(l=!0,4===this.U.length&&this.U==="bday"&&this.api.X("web_player_rtr_ctrls")&&(LnX(this.N),this.ED.ox()),7===this.U.length&&this.U==="awesome"&&i_(this.api.getRootNode(),"ytp-color-party")):(this.U=l,l="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!l&&(!this.api.isMutedByEmbedsMutedAutoplay()||tUP.includes(D))){v=this.api.getVideoData();var f=this.progressBar?.vN()?.isEnabled;v= v?v.uY:[];const u=mx?C:B;switch(D){case 80:X&&!W.HZ&&(pU(this.DL,t0B(),"Previous"),this.api.previousVideo(),l=!0);break;case 78:X&&!W.HZ&&(pU(this.DL,hD(),"Next"),this.api.nextVideo(),l=!0);break;case 74:this.api.Mp()&&(this.api.startSeekCsiAction(),this.L?this.api.X("enable_key_press_seek_logging")?(l=Yv(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.F_(-1,10,l)):this.L.F_(-1,10):pU(this.DL,{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path", GD:!0,D:"ytp-svg-fill",B:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),l=!0);break;case 76:this.api.Mp()&&(this.api.startSeekCsiAction(),this.L?this.api.X("enable_key_press_seek_logging")?(l=Yv(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.F_(1,10,l)):this.L.F_(1,10):pU(this.DL,{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path",GD:!0,D:"ytp-svg-fill",B:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),l=!0);break;case 37:if(this.api.Mp())if(this.api.startSeekCsiAction(),u){if(this.api.X("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(V||B&&C))f=Sdu(v,this.api.getCurrentTime()*1E3),f!==-1&&this.L!=null&&(this.L.Wq(-1,v[f].title),this.api.seekTo(v[f].startTime/1E3,void 0,void 0,void 0,53),l=!0)}else this.L?this.api.X("enable_key_press_seek_logging")?(l=Yv(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.L.F_(-1,5,l)):this.L.F_(-1,5):pU(this.DL,{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path",GD:!0,D:"ytp-svg-fill",B:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),l=!0;break;case 39:this.api.Mp()&&(this.api.startSeekCsiAction(),u?this.api.X("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.X("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(V||B&&C)||(f=T2u(v,this.api.getCurrentTime()*1E3),f!==-1&&this.L!=null&&(this.L.Wq(1,v[f].title),this.api.seekTo(v[f].startTime/1E3,void 0,void 0,void 0,52),l=!0)):(this.L!=null?this.api.X("enable_key_press_seek_logging")?(l=Yv(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.F_(1,5,l)):this.L.F_(1,5):pU(this.DL,{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path",GD:!0,D:"ytp-svg-fill",B:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),l=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),h3(this.DL,this.api.getVolume(),!1)):(this.api.mute(),h3(this.DL,0,!0));l=!0;break;case 32:l=this.api.X("web_speedmaster_spacebar_control")?!this.api.j().HZ:this.N3(f);break;case 75:l=this.N3(f);break;case 190:X?W.enableSpeedOptions&&rou(this)&&(l=this.api.getPlaybackRate(),this.api.setPlaybackRate(l+.25,!0),v9_(this.DL,!1),l=!0):this.api.Mp()&&(this.step(1),l=!0);break;case 188:X? W.enableSpeedOptions&&rou(this)&&(l=this.api.getPlaybackRate(),this.api.setPlaybackRate(l-.25,!0),v9_(this.DL,!0),l=!0):this.api.Mp()&&(this.step(-1),l=!0);break;case 70:o1A(this.api)&&(this.api.toggleFullscreen().catch(()=>{}),l=!0); break;case 27:f?(this.progressBar.TV(),l=!0):this.Z3()&&(l=!0)}if(W.controlsType!=="3")switch(D){case 67:g.nh(this.api.vC())&&(W=this.api.getOption("captions","track"),this.api.toggleSubtitles(),fL9(this.DL,!W||W&&!W.displayName),l=!0);break;case 79:KU(this,"textOpacity");break;case 87:KU(this,"windowOpacity");break;case 187:case 61:KU(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:KU(this,"fontSizeIncrement",!0,!0)}let p;X||B||C||(D>=48&&D<=57?p=D-48:D>=96&&D<=105&&(p=D-96));p!=null&&this.api.Mp()&& !this.api.X("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),W=this.api.getProgressState(),this.api.seekTo(p/10*(W.seekableEnd-W.seekableStart)+W.seekableStart,void 0,void 0,void 0,81),l=!0);l&&this.ED.ox()}this.V.z5=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:D,shiftKey:X,ctrlKey:B,altKey:C,metaKey:V,key:x,code:y,repeat:m},this.V);this.V.z5&&(l=!0,this.ED.ox());return l}step(D){this.api.Mp();if(this.api.getPlayerStateObject().isPaused()){var X=this.api.getVideoData().Z; X&&(X=X.video)&&this.api.seekBy(D/(X.fps||30),void 0,void 0,D>0?77:78)}}N3(D){if(!this.api.j().HZ){const X=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;X&&g.Z(X.miniplayer,bW1)?.playbackMode==="PLAYBACK_MODE_PAUSED_ONLY"&&g.pm(this.api,"onExpandMiniplayer");D?this.progressBar.pQ():(D=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.DL.lO(D),D?this.api.playVideo():this.api.pauseVideo());return!0}return!1}u0(){this.G.Lz();super.u0()}};var rKW=class extends g.t{constructor(D,X){super({O:"button",l0:["ytp-button","ytp-overflow-button"],B:{title:D.X("player_tooltip_data_title_killswitch")?"More":"","data-tooltip-title":"More","aria-haspopup":"true","aria-owns":X.element.id},W:[{O:"div",D:"ytp-overflow-icon",W:[{O:"svg",B:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{O:"path",B:{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", fill:"#fff"}}]}]}]});this.A=D;this.qH=X;this.visible=!1;D.createClientVe(this.element,this,16499);this.C(D,"videoplayerreset",this.fv);this.C(D,"appresize",this.fv);this.C(D,"fullscreentoggled",this.fv);this.C(D,"presentingplayerstatechange",this.fv);this.fv();R3(D,this.element,this);this.listen("click",()=>{D.logClick(this.element);gP(X,this.element,!1)}); this.C(X.closeButton,"click",()=>{this.focus()})}fv(){var D=this.A.j(); const X=D.U||this.A.X("web_player_hide_overflow_button_if_empty_menu")&&this.qH.isEmpty();D=g.WU(D)&&g.Ys(this.A)&&this.A.getPlayerStateObject().L(128);const B=this.A.getPlayerSize();this.visible=this.A.Bp()&&!D&&B.width>=240&&!this.A.getVideoData().UW&&!X&&!this.A.isEmbedsShortsMode();g.q(this.element,"ytp-overflow-button-visible",this.visible);this.BC(this.visible);this.visible&&this.A.LH();this.A.logVisibility(this.element,this.visible&&this.Z3)}oG(D){super.oG(D);this.A.logVisibility(this.element, this.visible&&D)}u0(){super.u0();g.y7(this.element,"ytp-overflow-button-visible")}};var DvK=class extends Sb{constructor(D){super(D,{O:"div",D:"ytp-overflow-panel",B:{id:C9(),role:"dialog"},W:[{O:"div",D:"ytp-overflow-panel-content",W:[{O:"div",D:"ytp-overflow-panel-action-buttons",QV:"{{buttons}}"}]},{O:"button",l0:["ytp-overflow-panel-close","ytp-button"],B:{"data-tooltip-title":"Close",title:D.j().X("player_tooltip_data_title_killswitch")?"Close":""},W:[g.vl()]}]},250);this.actionButtons=[];this.L=this.oa("ytp-overflow-panel-content");this.closeButton=this.oa("ytp-overflow-panel-close"); this.C(this.closeButton,"click",this.Df);R3(D,this.closeButton,this);this.listen("click",this.Z);this.C(D,"videoplayerreset",this.hide);this.C(D,"fullscreentoggled",this.onFullscreenToggled);this.hide()}Z(D){D=XK(D);g.v3(this.element,D)&&(g.v3(this.L,D)||g.v3(this.closeButton,D)||gP(this))}Df(){super.Df();this.A.dY(this.element)}show(){this.U2&&this.A.publish("OVERFLOW_PANEL_OPENED");super.show();this.element.setAttribute("aria-modal","true");for(const D of this.actionButtons)D.oG(!0)}hide(){super.hide(); this.element.removeAttribute("aria-modal");for(const D of this.actionButtons)D.oG(!1)}onFullscreenToggled(D){!D&&this.lm()&&gP(this)}isEmpty(){return this.actionButtons.length===0}focus(){for(const D of this.actionButtons)if(D.U2){D.focus();break}}};var Xqg=class extends g.t{constructor(D,X,B){const C=g.e2(X,B),V=C.y9("default.jpg");super({O:"a",l0:["ytp-video-menu-item","ytp-button"],B:{role:"menuitemradio","aria-label":C.title,href:D.j().getVideoUrl(C.videoId,X.listId?X.listId.toString():null)},W:[{O:"div",D:"ytp-video-menu-item-index",QV:String(B+1)},{O:"div",D:"ytp-video-menu-item-now-playing",QV:"\u25b6"},{O:"div",D:"ytp-video-menu-item-thumbnail",B:{style:V?`background-image: url(${V});`:void 0}},{O:"div",D:"ytp-video-menu-item-title", QV:C.title},{O:"div",D:"ytp-video-menu-item-author",QV:C.author}]});this.api=D;this.index=B;this.listen("click",this.onClick)}onClick(D){g.Ov(D,this.api)&&this.api.playVideoAt(this.index)}};var BVU=class extends Sb{constructor(D){super(D,{O:"div",D:"ytp-playlist-menu",B:{role:"dialog",id:C9()},W:[{O:"div",D:"ytp-playlist-menu-header",W:[{O:"div",D:"ytp-playlist-menu-title",W:[D.j().U?{O:"span",D:"ytp-playlist-menu-title-name",QV:"{{title}}"}:{O:"a",D:"ytp-playlist-menu-title-name",B:{href:"{{playlisturl}}"},QV:"{{title}}"},{O:"button",l0:["ytp-playlist-menu-close","ytp-button"],B:{"aria-label":"Close"},W:[g.vl()]}]},{O:"div",D:"ytp-playlist-menu-subtitle",QV:"{{subtitle}}"}]},{O:"div", D:"ytp-playlist-menu-items",B:{role:"menu"}}]},250);this.api=D;this.U=this.selected=this.Y=this.playlist=null;this.items=this.oa("ytp-playlist-menu-items");this.L=new g.Fj(this);this.playlistData=[];this.C(this.oa("ytp-playlist-menu-close"),"click",this.Df);const X=this.oa("ytp-playlist-menu-title-name");D.j().U||(this.U=this.C(X,"click",this.J));g.U(this,this.L);this.hide()}show(){super.show();this.L.C(this.api,"videodatachange",this.V);this.L.C(this.api,"onPlaylistUpdate",this.V);this.V()}hide(){super.hide(); this.L.Z();this.updatePlaylist(null)}V(){this.updatePlaylist(this.api.getPlaylist());this.api.j().U&&(this.oa("ytp-playlist-menu-title-name").removeAttribute("href"),this.U&&(this.D$(this.U),this.U=null))}Z(){const D=this.playlist;var X=D.author,B=X?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",C={CURRENT_POSITION:String(D.index+1),PLAYLIST_LENGTH:String(D.length)};X&&(C.AUTHOR=X);this.update({title:D.title,subtitle:g.al(B,C),playlisturl:this.api.getVideoUrl(!0)}); X=D.Z;if(X===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[D.index];else{for(var V of this.playlistData)V.dispose();V=D.length;this.playlistData=[];for(B=0;B{D.logClick(this.element); D.X("delhi_web_player_use_external_playlist_panel")?g.pm(D,"onToggleExternalPlaylistPanel"):gP(X,this.element,!1)})}hide(){super.hide(); this.oG(!1);this.api.LH()}fv(){const D=g.WU(this.api.j());g.q(this.element,"ytp-playlist-menu-button-tiny",this.api.JF().getPlayerSize().width<400&&!D);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.al("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.al("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.al("Playlist: $PLAYLIST_NAME", {PLAYLIST_NAME:this.playlist.title})}),this.api.X("delhi_modern_web_player")&&this.update({playlistTitle:g.al("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.U2||(this.show(),this.api.LH()),this.visible=!0,this.oG(!0)):this.U2&&this.hide()}oG(D){super.oG(D);this.api.logVisibility(this.element,this.visible&&D)}L(){this.playlist&&this.playlist.unsubscribe("shuffle",this.fv,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.fv,this);this.fv()}};var WQb=class extends g.t{constructor(D,X){super({O:"div",D:"ytp-promotooltip-wrapper",W:[{O:"div",D:"ytp-promotooltip-container",W:[{O:"div",D:"ytp-promotooltip-content",W:[{O:"div",D:"ytp-promotooltip-title",QV:"{{title}}"},{O:"div",D:"ytp-promotooltip-details",QV:"{{details}}"}]},{O:"div",D:"ytp-promotooltip-buttons",W:[{O:"div",D:"ytp-promotooltip-dismiss-button",QV:"{{dismissButtonText}}",B:{tabindex:"0"}},{O:"div",D:"ytp-promotooltip-accept-button",QV:"{{acceptButtonText}}",B:{tabindex:"0", "aria-haspopup":"true"}}]}]},{O:"div",D:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=D;this.A=X;this.L=this.sourceElement=null;this.title=this.oa("ytp-promotooltip-title");this.details=this.oa("ytp-promotooltip-details");this.acceptButton=this.oa("ytp-promotooltip-accept-button");this.dismissButton=this.oa("ytp-promotooltip-dismiss-button");this.Z=this.V=!1;this.U=!0;this.N=this.S=this.K=this.Y=!1;this.dn={Um:B=>{this.Um(B)}}; this.BC(!1);D=this.tooltipRenderer.trackingParams||null;if(this.Z=!!D)this.A.createServerVe(this.element,this,!0),this.A.setTrackingParams(this.element,D);this.C(X,"onShowControls",this.pv);this.C(X,"onHideControls",this.J);this.C(X,"resize",this.kt);this.C(this.acceptButton,"click",this.U7);this.C(this.dismissButton,"click",this.vZ);this.C(document,"click",this.s7)}G(D,X){if(!this.V){if(D){this.tooltipRenderer=D;D=this.tooltipRenderer.text;var B=!1;D?.runs?.length&&D.runs[0].text&&(this.update({title:D.runs[0].text.toString()}), B=!0);g.tX(this.title,B);B=this.tooltipRenderer.detailsText;D=!1;if(B?.runs?.length&&B.runs[0].text){{var C=B.runs[0].text.toString();const l=C.indexOf("$TARGET_ICON");if(l>-1)if(this.tooltipRenderer.targetId){B=[];C=C.split("$TARGET_ICON");var V=new g.G5({O:"span",D:"ytp-promotooltip-details-icon",W:[Vx8[this.tooltipRenderer.targetId]]});g.U(this,V);var x=[];for(y of C){const W=new g.G5({O:"span",D:"ytp-promotooltip-details-component",QV:y});g.U(this,W);x.push(W)}C.length===2?(B.push(x[0].element), B.push(V.element),B.push(x[1].element)):C.length===1&&(l===0?(B.push(V.element),B.push(x[0].element)):(B.push(x[0].element),B.push(V.element)));var y=B.length?B:null}else y=null;else y=C}if(y){if(typeof y!=="string"){g.lM(this.details);for(var m of y)this.details.appendChild(m)}else this.update({details:y});D=!0}}g.tX(this.details,D);m=this.tooltipRenderer.acceptButton;y=!1;g.Z(m,C_)?.text?.runs?.length&&g.Z(m,C_).text.runs[0].text&&(this.update({acceptButtonText:g.Z(m,C_).text.runs[0].text.toString()}), y=!0);g.tX(this.acceptButton,y);m=this.tooltipRenderer.dismissButton;y=!1;g.Z(m,C_)?.text?.runs?.length&&g.Z(m,C_).text.runs[0].text&&(this.update({dismissButtonText:g.Z(m,C_).text.runs[0].text.toString()}),y=!0);g.tX(this.dismissButton,y)}X&&(this.sourceElement=X);this.L=Dm$(this);this.S=!1;this.A.j().X("web_player_hide_nitrate_promo_tooltip")||this.BC(!0);eb(this);this.U2&&!this.N&&(this.N=!0,this.dn.Um(0));this.Z&&this.A.logVisibility(this.element,this.U2)}}pv(){this.U?this.G():eb(this)}J(){this.U? (db(this),this.S=!0):eb(this)}U7(){this.V=!0;this.Um(1);this.A.publish("promotooltipacceptbuttonclicked",this.acceptButton);db(this);this.Z&&this.A.logClick(this.acceptButton)}vZ(){this.V=!0;this.Um(2);db(this);this.Z&&this.A.logClick(this.dismissButton)}s7(D){if(this.A.getPresentingPlayerType()===1||this.A.getPresentingPlayerType()===2&&this.Y){var X=!0,B=g.SN("ytp-ad-overlay-ad-info-dialog-container"),C=g.SN("ytp-ad-player-overlay-layout"),V=XK(D);if(this.sourceElement&&V&&g.v3(this.sourceElement, V))this.sourceElement=null;else{this.A.getPresentingPlayerType()===1&&V&&Array.from(V.classList).forEach(y=>{if(y.startsWith("ytp-ad")||y.startsWith("ytp-skip-ad"))X=!1}); var x=XK_(this.tooltipRenderer);this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"?x&&(X=X&&!g.v3(this.element,V)):this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(X=x?!1:X&&g.v3(this.element,V));this.L&&this.U2&&!B&&!C&&(!V||X&&g.L9(D))&&(this.V=!0,db(this))}}}Um(D){var X=this.tooltipRenderer.promoConfig;if(X){let B;switch(D){case 0:X.impressionEndpoints?.length&&(B=X.impressionEndpoints[0]);break;case 1:B=X.acceptCommand;break;case 2:B= X.dismissCommand}D=g.Z(B,s0)?.feedbackToken;B&&D&&(D={feedbackTokens:[D]},X=this.A.Yu(),X?.Nl(B)&&gj(X,B,D))}}kt(){this.S||(this.L||(this.L=Dm$(this)),this.G())}},Vx8={"ytp-settings-button":g.zn()};var xvU=class extends g.t{constructor(D){super({O:"button",l0:["ytp-replay-button","ytp-button"],B:{title:D.X("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},W:[g.Fr()]});this.A=D;this.C(D,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Po(D.getPlayerStateObject());R3(this.A,this.element,this)}onStateChange(D){this.Po(D.state)}Po(D){this.BC(D.L(2))}onClick(){this.A.getPlayerStateObject().isOrWillBePlaying();this.A.playVideo()}};var yL2=class extends g.t{constructor(D){super({O:"button",l0:["ytp-button","ytp-search-button"],B:{title:D.X("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.WU(D.j()))},W:[{O:"div",D:"ytp-search-icon",QV:"{{icon}}"},{O:"div",D:"ytp-search-title",QV:"Search"}]});this.api=D;this.visible=!1;this.updateValue("icon",{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{O:"path",D:"ytp-svg-fill",B:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); D.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.C(D,"appresize",this.L);this.C(D,"videodatachange",this.L);R3(D,this.element,this)}onClick(D){this.api.logClick(this.element);var X=g.lm(this.api.j().Ds,{focusSearch:"true"}),B={};g.Ms(this.api,"addEmbedsConversionTrackingParams",[B]);X=g.lm(X,B);(B=this.api.getVideoData().aH?.params)&&(X=g.lm(X,{bp:B}));g.EL(window,X);D.preventDefault()}L(){if(this.api.X("embeds_web_enable_search_button")){var D=this.api.j(); var X=this.api.getVideoData(),B=this.api.JF().getPlayerSize().width;D=g.WU(D)&&B>=240&&!D.U&&!X.isAd()&&!this.api.isEmbedsShortsMode()}else D=!1;this.visible=D;this.BC(this.visible);g.q(this.element,"ytp-search-button-visible",this.visible);g.q(this.element,"ytp-show-search-title",!this.api.Bp());this.api.logVisibility(this.element,this.visible&&this.Z3)}oG(D){super.oG(D);this.api.logVisibility(this.element,this.visible&&D)}};var mvN=class extends g.t{constructor(D){super({O:"div",D:"ytp-seek-overlay",W:[{O:"div",l0:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],W:[{O:"div",l0:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{O:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{O:"path",B:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{O:"div",D:"ytp-seek-overlay-duration",QV:"{{durationBack}}"}]},{O:"div",l0:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],W:[{O:"div",D:"ytp-seek-overlay-duration",QV:"{{durationForward}}"},{O:"div",l0:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{O:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{O:"path",B:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{O:"div",D:"ytp-seek-overlay-message",W:[{O:"div",D:"ytp-seek-overlay-message-icon",QV:"{{icon}}"},{O:"div",D:"ytp-seek-overlay-message-text", QV:"{{text}}"}]}]});this.A=D;this.G=0;this.L="hidden";this.Y=this.oa("ytp-seek-overlay-animation-back");this.K=this.oa("ytp-seek-overlay-animation-forward");this.N=this.oa("ytp-seek-overlay-message");this.S=new g.tM(()=>{CGs(this)},g.vg(this.A.j().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.U(this,this.S);this.A.createClientVe(this.K,this,28240);this.A.createClientVe(this.Y,this,28239);this.A.logVisibility(this.K,!0);this.A.logVisibility(this.Y,!0);this.hide()}trigger(D,X,B,C){this.show();if(this.Z&&D!==this.Z){let V=1;this.U&&(V=mmo(this));CGs(this,V,!1);Bxo(this)}this.Z=D;this.V=this.Z===-1?this.Y:this.K;D="";X?(this.Z===-1&&this.A.getCurrentTime()<=X?this.G=X:this.G+=X,D=`${this.Z===-1?"\u2212":"+"} ${this.G}`):this.G=0;this.updateValue(this.Z===-1?"durationBack":"durationForward", D);if(this.L==="hidden"||this.L==="fading-out")X=0,this.L==="fading-out"&&(X=mmo(this),yCV(this)),VOu(this,X),this.L!=="fading-out"&&xm_(this,this.V.querySelector(".ytp-seek-overlay-arrow-persistent")),this.L="fading-in";else if(this.L==="fading-in"||this.L==="lingering")X=this.V.querySelector(".ytp-seek-overlay-duration"),D=g.vg(this.A.j().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,X.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64, easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:`scale(${D})`},{offset:1,transform:"scale(1)"}],{duration:184}),yCV(this),this.L==="lingering"&&(this.S.stop(),this.S.start());B&&io9(this,B,C)}y8(D,X,B,C){this.trigger(D,C)}F_(D,X,B){this.trigger(D,X);B&&(D=D===-1?this.K.visualElement:this.Y.visualElement,B={seekData:B},(X=g.Me())&&Dd(X,D,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B))}Wq(D,X,B){this.trigger(D,void 0,X,B)}};var iRA=class extends g.t{constructor(D,X,B){super({O:"button",l0:["ytp-button","ytp-share-button"],B:{title:D.X("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":B.element.id,"data-tooltip-opaque":String(g.WU(D.j()))},W:[{O:"div",D:"ytp-share-icon",QV:"{{icon}}"},{O:"div",D:"ytp-share-title",QV:"Share"}]});this.api=D;this.L=X;this.Z=B;this.visible=!1;this.tooltip=this.L.xB();D.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.C(D,"videodatachange",this.fv);this.C(D,"videoplayerreset",this.fv);this.C(D,"appresize",this.fv);this.C(D,"presentingplayerstatechange",this.fv);this.fv();this.addOnDisposeCallback(g.Uv(this.tooltip,this.element))}onClick(){var D=this.api.j();const X=this.api.getVideoData({playerType:this.api.getPresentingPlayerType()}),B=this.api.getPlaylistId();D=this.api.X("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):D.getVideoUrl(X.videoId,B,void 0,!0);if(navigator.share)try{const C= navigator.share({title:X.title,url:D});C instanceof Promise&&C.catch(V=>{lEs(this,V)})}catch(C){C instanceof Error&&lEs(this,C)}else this.L.j0(),gP(this.Z,this.element,!1); this.api.logClick(this.element)}fv(){var D=this.api.j();const X=this.api.isEmbedsShortsMode();g.q(this.element,"ytp-show-share-title",g.WU(D)&&!X);this.L.vJ()&&X?(D=(this.api.JF().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.YI(this.element,"right",`${D}px`)):X&&g.YI(this.element,"right","0px");this.updateValue("icon",{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path",GD:!0,D:"ytp-svg-fill",B:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=GJ(this);g.q(this.element,"ytp-share-button-visible",this.visible);this.BC(this.visible);this.tooltip.LH();this.api.logVisibility(this.element,GJ(this)&&this.Z3)}oG(D){super.oG(D);this.api.logVisibility(this.element,this.visible&&D)}u0(){super.u0();g.y7(this.element,"ytp-share-button-visible")}};var leJ=class extends Sb{constructor(D,X){var B=C9();const C=D.j();B={O:"div",D:"ytp-share-panel",B:{id:C9(),role:"dialog","aria-labelledby":B},W:[{O:"div",D:"ytp-share-panel-inner-content",W:[{O:"div",D:"ytp-share-panel-title",B:{id:B},QV:"Share"},{O:"a",l0:["ytp-share-panel-link","ytp-no-contextmenu"],B:{href:"{{link}}",target:C.N,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},QV:"{{linkText}}"},{O:"label",D:"ytp-share-panel-include-playlist",W:[{O:"input",D:"ytp-share-panel-include-playlist-checkbox", B:{type:"checkbox",checked:"true"}},"Include playlist"]},{O:"div",D:"ytp-share-panel-loading-spinner",W:[Xe()]},{O:"div",D:"ytp-share-panel-service-buttons",QV:"{{buttons}}"},{O:"div",D:"ytp-share-panel-error",QV:"An error occurred while retrieving sharing information. Please try again later."}]},{O:"button",l0:["ytp-share-panel-close","ytp-button"],B:{title:"Close"},W:[g.vl()]}]};super(D,B,250);this.moreButton=null;this.api=D;this.tooltip=X.xB();this.Z=[];this.V=this.oa("ytp-share-panel-inner-content"); this.closeButton=this.oa("ytp-share-panel-close");this.C(this.closeButton,"click",this.Df);this.addOnDisposeCallback(g.Uv(this.tooltip,this.closeButton));this.U=this.oa("ytp-share-panel-include-playlist-checkbox");this.C(this.U,"click",this.fv);this.L=this.oa("ytp-share-panel-link");this.addOnDisposeCallback(g.Uv(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.C(this.L,"click",V=>{V.preventDefault();this.api.logClick(this.L);var x=this.api.getVideoUrl(!0,!0,!1,!1);x=vpA(this, x);g.rP(x,this.api,V)&&g.pm(this.api,"SHARE_CLICKED")}); this.listen("click",this.Y);this.C(D,"videoplayerreset",this.hide);this.C(D,"fullscreentoggled",this.onFullscreenToggled);this.C(D,"onLoopRangeChange",this.J);this.hide()}Y(D){D=XK(D);g.v3(this.V,D)||g.v3(this.closeButton,D)||gP(this)}Df(){super.Df();this.tooltip.dY(this.element);this.api.logVisibility(this.L,!1);for(const D of this.Z)this.api.hasVe(D.element)&&this.api.logVisibility(D.element,!1)}show(){const D=this.U2;super.show();this.fv();D||g.pm(this.api,"onSharePanelOpened")}J(){this.U2&&this.fv()}fv(){g.V7(this.element, "ytp-share-panel-loading");g.y7(this.element,"ytp-share-panel-fail");var D=this.api.getVideoData();const X=this.api.getPlaylistId()&&this.U.checked;D.getSharePanelCommand&&gj(this.api.Yu(),D.getSharePanelCommand,{includeListId:X}).then(B=>{this.S7()||(g.y7(this.element,"ytp-share-panel-loading"),fEB(this,B))}); D=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",D);this.updateValue("linkText",D);this.updateValue("shareLinkWithUrl",g.al("Share link $URL",{URL:D}));Bo(this.L);this.api.logVisibility(this.L,!0)}onFullscreenToggled(D){!D&&this.lm()&&gP(this)}focus(){this.L.focus()}u0(){super.u0();$mb(this)}};var $v2=class extends qf{constructor(D){super(D);this.V=this.L=this.isContentForward=this.J=!1;this.element.setAttribute("data-overlay-order","8");MOX(this);this.C(this.A,"changeProductsInVideoVisibility",this.b0);this.C(this.A,"videodatachange",this.onVideoDataChange)}u0(){LU(this);super.u0()}HZ(D){D.target!==this.dismissButton.element&&(this.S(!1),g.pm(this.A,"innertubeCommand",this.onClickCommand))}Y(){this.Io=!0;this.S(!0);this.Z()}b0(D){this.J=D;this.Z()}onVideoDataChange(D,X){if(D=!!X.videoId&& this.videoId!==X.videoId)this.videoId=X.videoId,this.Io=!1,this.G2=!0,this.pv=this.vZ=!1,LU(this),uYY(this,!1),this.V=this.L=!1,gb(this),pKu(this);if(D||!X.videoId)this.U7=this.U=!1;if(X?.getPlayerResponse()?.videoDetails?.isLiveContent)this.a8(!1);else{X=g.Z(X.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,oG$);this.J=this.enabled=!1;if(X){if(D=X?.featuredProductsEntityKey){var B=g.zD.getState().entities;if(CL(B,"featuredProductsEntity",D)?.productsData){this.a8(!1); return}}if(!X.text||!X.onClickCommand||!X.timing){this.a8(!1);return}this.enabled=!0;this.U||(D=X.badgeInteractionLogging?.trackingParams,(this.U=!!D)&&this.A.setTrackingParams(this.badge.element,D||null));this.U7||(this.U7=!!X.dismissButton?.trackingParams)&&this.A.setTrackingParams(this.dismissButton.element,X.dismissButton?.trackingParams||null);if(X.isContentForward){D=X.productsData;uYY(this,!0);pKu(this);D=JCV(this,D);B=[];D.length>0&&B.push(D[0]);if(D.length>1){const C=new g.t({O:"div",D:"ytp-suggested-action-more-products-icon"}); g.U(this,C);B.push(C);B.push(...D.slice(1))}this.N=new g.t({O:"div",W:B,D:"ytp-suggested-action-content-forward-container"});g.U(this,this.N);this.Cv.element.append(this.N.element)}this.text=g.mv(X.text);if(D=X.dismissButton?.a11yLabel)this.s2=g.mv(D);this.onClickCommand=X.onClickCommand;this.timing=X.timing;this.i8()}X_(this);D0(this);this.Z()}}K(){return!this.J&&this.enabled&&!this.Io&&!this.A.Bp()&&!this.Yt&&(this.pv||this.G2)}ww(D){super.ww(D);if(this.L||this.V)this.timing&&Za(this.timing.preview)&& (this.L=!1,gb(this),this.V=!1,gb(this),this.A.XH("shopping_overlay_preview_collapsed"),this.A.XH("shopping_overlay_preview_expanded"),D=Eq(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Za(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.A.XH("shopping_overlay_expanded"),D.end=this.timing.expanded.endSec*1E3),this.A.i8([D])),this.vZ=!0,D0(this);gb(this)}a8(D){(this.pv=D)?(rt(this),D0(this,!1)):(LU(this),this.WZ.start()); this.Z()}i8(D=0){var X=this.timing;D+=this.A.getCurrentTime();const B=[];var C=X.visible;const V=X.preview;X=X.expanded;Za(C)&&(Q1(C,D),B.push(Eq(C.startSec,C.endSec,"shopping_overlay_visible")));Za(V)&&(Q1(V,D),C=V.startSec+1,B.push(Eq(V.startSec,C,"shopping_overlay_preview_collapsed")),B.push(Eq(C,V.endSec,"shopping_overlay_preview_expanded")));Za(X)&&(Q1(X,D),B.push(Eq(X.startSec,X.endSec,"shopping_overlay_expanded")));this.A.i8(B)}Z(){super.Z();this.A.getRootNode()&&g.q(this.A.getRootNode(),"ytp-shopping-pill-shown", this.K())}};var Wk0=class extends g.t{constructor(D){super({O:"div",D:"ytp-shorts-title-channel",W:[{O:"a",D:"ytp-shorts-title-channel-logo",B:{href:"{{channelLink}}",target:D.j().N,"aria-label":"{{channelLogoLabel}}"}},{O:"div",D:"ytp-shorts-title-expanded-heading",W:[{O:"div",D:"ytp-shorts-title-expanded-title",W:[{O:"a",QV:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:D.j().N,tabIndex:"0"}}]}]}]});this.api=D;this.L=this.oa("ytp-shorts-title-channel-logo");this.channelName=this.oa("ytp-shorts-title-expanded-title"); this.subscribeButton=null;D.createClientVe(this.L,this,36925);this.C(this.L,"click",X=>{this.api.logClick(this.L);g.EL(window,ACo(this));X.preventDefault()}); D.createClientVe(this.channelName,this,37220);this.C(this.channelName,"click",X=>{this.api.logClick(this.channelName);g.EL(window,ACo(this));X.preventDefault()}); jZA(this);this.C(D,"videodatachange",this.fv);this.C(D,"videoplayerreset",this.fv);this.fv()}fv(){const D=this.api.j();this.BC(g.WU(D)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.U2);const X=this.api.getVideoData();let B=!1;this.api.getPresentingPlayerType()===2?B=!!X.videoId&&!!X.isListed&&!!X.author&&!!X.b0&&!!X.profilePicture:g.WU(D)&&(B=!!X.videoId&&!!X.b0&&!!X.profilePicture&&!X.UW&&!D.U&&!(D.Y&&this.api.getPlayerSize().width< 200));HoB(this,B,X.profilePicture,g.WU(D)?X.expandedTitle:X.author);this.subscribeButton&&(this.subscribeButton.channelId=X.hX);this.updateValue("expandedTitle",X.expandedTitle)}};var vYN=class extends Sb{constructor(D){super(D,{O:"button",l0:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{O:"div",D:"ytp-skip-intro-button-text",QV:"Skip Intro"}]},100);this.Z=!1;this.L=new g.tM(()=>{this.hide()},5E3); this.UL=this.cP=NaN;g.U(this,this.L);this.Y=()=>{this.show()}; this.V=()=>{this.hide()}; this.U=()=>{const X=this.A.getCurrentTime();X>this.cP/1E3&&X{this.eD(X,B)}); this.C(this.element,"click",()=>{this.A.seekTo(this.UL/1E3)}); this.hide()}show(){super.show();this.L.start()}hide(){super.hide();this.L.stop()}eD(D,X){D==="dataloaded"&&((this.cP=X.cP,this.UL=X.UL,isNaN(this.cP)||isNaN(this.UL))?this.Z&&(this.A.XH("intro"),this.A.removeEventListener(g.s9("intro"),this.Y),this.A.removeEventListener(g.U9("intro"),this.V),this.A.removeEventListener("onShowControls",this.U),this.hide(),this.Z=!1):(this.A.addEventListener(g.s9("intro"),this.Y),this.A.addEventListener(g.U9("intro"),this.V),this.A.addEventListener("onShowControls", this.U),D=new g.TL(this.cP,this.UL,{priority:9,namespace:"intro"}),this.A.i8([D]),this.Z=!0))}};var fe8=class extends g.t{constructor(D){super({O:"button",l0:["ytp-airplay-button","ytp-button"],B:{title:D.X("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},QV:"{{icon}}"});this.A=D;this.listen("click",this.onClick);this.C(D,"airplayactivechange",this.fv);this.C(D,"airplayavailabilitychange",this.fv);this.fv();R3(D,this.element,this)}onClick(){this.A.Rh()}fv(){var D=!0;g.WU(this.A.j())&&(D=D&&this.A.JF().getPlayerSize().width>=480);this.BC(D); D=this.updateValue;var X=this.A.X("delhi_modern_web_player_icons");const B=X?{O:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{O:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path",GD:!0,B:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};X=X?{O:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{O:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{O:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{O:"path",GD:!0,D:"ytp-svg-fill",B:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};D.call(this,"icon",this.A.HJ()?B:X)}};var uRW=class extends g.t{constructor(D){super({O:"div",D:"ytp-gradient-bottom"});this.Z=g.y8("CANVAS");this.L=this.Z.getContext("2d",{willReadFrequently:!0});this.U=NaN;this.Z.width=1;F09(this,D.JF().getPlayerSize().height)}u0(){this.L=null;super.u0()}};var pq0=class extends g.t{constructor(D,X,B,C){super({O:"div",D:"ytp-chapter-container",W:[{O:"button",l0:["ytp-chapter-title","ytp-button"],W:[{O:"span",B:{"aria-hidden":"true"},D:"ytp-chapter-title-prefix",QV:"\u2022"},{O:"div",D:"ytp-chapter-title-content",QV:"{{chapterTitle}}",B:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:D.X("player_tooltip_data_title_killswitch")?C:"","data-tooltip-title":C}},{O:"div",D:"ytp-chapter-title-chevron",W:[{O:"svg",B:{height:"100%",viewBox:"0 0 24 24", width:"100%"},W:[{O:"path",B:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.A=D;this.V=X;this.S="";this.currentIndex=0;this.Z=void 0;this.U=!0;this.N=this.oa("ytp-chapter-container");this.L=this.oa("ytp-chapter-title");this.G=this.oa("ytp-chapter-title-content");this.K();this.updateVideoData("newdata",this.A.getVideoData());this.C(D,"videodatachange",this.updateVideoData);this.C(D,"resize",this.K);this.C(this.N,"click",this.onClick);this.C(D,g.s9(B), this.Ki);this.C(D,"onLoopRangeChange",this.Ki);this.C(D,"innertubeCommand",this.onClickCommand);(D=g.f$(this.A.j()))&&g.q(this.L,"ytp-profile-page",!0);g.WU(this.A.j())||D||R3(this.A,this.G,this)}onClick(){g.pm(this.A,"innertubeCommand",this.Z)}K(){if(this.A.X("delhi_modern_web_player")){var D=this.A.getPlayerSize();D.width&&(this.element.style.maxWidth=`${D.width*.25}px`)}}};var hgJ=class extends pq0{constructor(D,X){super(D,X,"chapterCueRange","View chapter");this.Y=""}onClickCommand(D){g.Z(D,F2)&&this.Ki()}updateVideoData(D,X){D=g.Z(X.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,DA);D=g.Z(D?.playerBarActionButton,C_);this.A.X("web_player_updated_entrypoint")&&(this.Y=T$(D?.text),this.G.setAttribute("title",D?.tooltip??"View chapter"));this.Z=D?.command;boV(this)}Ki(){var D=this.Y;const X=this.V.L;var B=this.A.getLoopRange()?.type=== "clips";if(X.length>1&&!B){D=this.A.getProgressState().current*1E3;B=qO(X,D);D=X[B].title||"Chapters";if(B!==this.currentIndex||this.U)g.pm(this.A,"innertubeCommand",X[B].onActiveCommand),this.currentIndex=B;this.U=!1}else this.U=!0;zrV(this,D)}};var JLt=class extends g.CM{constructor(D){super({O:"button",l0:["ytp-expand-right-bottom-section-button","ytp-button"],B:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[g.Wl()]});this.L=!1;this.listen("click",this.Z);D.createClientVe(this.element,this,276954)}Z(){this.element.parentElement?.classList.contains("ytp-right-controls-left");(this.L=!this.L)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}isExpanded(){return this.L}};var MxJ=class extends g.t{constructor(D,X){super({O:"div",D:"ytp-storyboard-framepreview",W:[{O:"div",D:"ytp-storyboard-framepreview-timestamp",QV:"{{timestamp}}"},{O:"div",D:"ytp-storyboard-framepreview-img"}]});this.api=D;this.Z=this.oa("ytp-storyboard-framepreview-img");this.L=null;this.frameIndex=NaN;this.events=new g.Fj(this);this.fade=new g.nJ(this,100);g.U(this,this.events);g.U(this,this.fade);this.C(this.api,"presentingplayerstatechange",this.U);X&&this.C(this.element,"click",()=>{X.TV()})}U(D){D.state.L(32)? nU(this,this.api.KO()):this.U2&&(D.state.L(16)||D.state.L(1))||this.fade.hide()}onProgress(){const D=this.api.getPlayerStateObject(); (D.L(32)||D.L(16))&&wb(this)}V(){this.frameIndex=NaN;wb(this)}hide(){this.L&&nU(this,null);super.hide()}};var ALX=class extends g.t{constructor(D,X){super({O:"button",l0:["ytp-fullscreen-button","ytp-button"],B:{title:D.X("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},QV:"{{icon}}"});this.A=D;this.Z=X;this.message=null;this.L=g.Uv(this.Z.xB(),this.element);this.U=new g.tM(this.G,2E3,this);g.U(this,this.U);this.C(D,"fullscreentoggled", this.RS);this.C(D,"presentingplayerstatechange",this.fv);this.C(D,"resize",this.fv);this.listen("click",this.onClick);g.wO()&&(X=this.A.JF(),this.C(X,gCz(),this.V),this.C(X,L3Y(document),this.dZ));D.j().BZ||D.j().Y||this.disable();D.createClientVe(this.element,this,139117);this.fv();this.RS(D.isFullscreen())}onClick(){if(this.A.j().BZ||this.A.j().Y){this.A.logClick(this.element);try{this.A.toggleFullscreen().catch(D=>{this.ov(D)})}catch(D){this.ov(D)}}else gP(this.message,this.element,!0)}ov(D){String(D).includes("fullscreen error")? g.UW(D):g.E(D); this.V()}V(){this.disable();this.message.xt(this.element,!0)}dZ(){Ta()===this.A.getRootNode()?this.U.start():(this.U.stop(),this.message&&this.message.hide())}G(){if(window.screen&&window.outerWidth&&window.outerHeight){const D=window.screen.width*.9,X=window.screen.height*.9;let B=Math.max(window.outerWidth,window.innerWidth),C=Math.max(window.outerHeight,window.innerHeight);if(B>C!==D>X){const V=B;B=C;C=V}D>B&&X>C&&this.V()}}disable(){if(!this.message){var D=(EQ(["requestFullscreen","webkitRequestFullscreen", "mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new Sb(this.A,{O:"div",l0:["ytp-popup","ytp-generic-popup"],B:{role:"alert",tabindex:"0"},W:[D[0],{O:"a",B:{href:"https://support.google.com/youtube/answer/6276924",target:this.A.j().N},QV:D[2]},D[4]]},100,!0);this.message.hide();g.U(this,this.message);this.message.subscribe("show", X=>{this.Z.X6(this.message,X)}); g.eK(this.A,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.L)();this.L=null}}fv(){const D=o1A(this.A),X=this.A.j().Y&&this.A.getPlayerSize().width<250;this.BC(D&&!X);this.A.logVisibility(this.element,this.U2)}RS(D){let X;D?(X=g.c5(this.A,"Exit full screen","f"),this.update({"data-title-no-tooltip":"Exit full screen"}),document.activeElement===this.element&&this.A.getRootNode().focus(),document.pictureInPictureElement&& document.exitPictureInPicture().catch(B=>{g.UW(B)})):(X=g.c5(this.A,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"})); D=sZY(this,D);X=this.message?null:X;this.A.j().X("player_tooltip_data_title_killswitch")?this.update({ti