(function(g){var window=this;var Fta=function(a,b){var c=(b-a.o)/(a.u-a.o);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){f=g.Un(a,c);var l=(g.Un(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else fk;k++)fb;b++){var c=new g.V({D:"a",I:"ytp-suggestion-link",M:{href:"{{link}}",target:a.A,"aria-label":"{{aria_label}}"},K:[{D:"div",I:"ytp-suggestion-image",K:[{D:"div",M:{"data-is-live":"{{is_live}}"},I:"ytp-suggestion-duration",W:"{{duration}}"}]},{D:"div",I:"ytp-suggestion-title",M:{title:"{{hover_title}}"},W:"{{title}}"},{D:"div",I:"ytp-suggestion-author", W:"{{views_or_author}}"}]});g.C(this,c);c.ba(this.G.element);var d=c.o["ytp-suggestion-link"];g.vh(d,"transitionDelay",b/20+"s");this.V.L(d,"click",g.Sa(this.VH,b));this.C.push(c)}this.H=new g.V({D:"button",X:["ytp-button","ytp-next"],M:{"aria-label":"Afficher plus de suggestions de vid\u00e9os"},K:[g.GM()]});g.C(this,this.H);this.H.ba(this.element);this.H.ia("click",this.TH,this);this.V.L(this.u,"videodatachange",this.hz);Ita(this,g.wL(this.u).getPlayerSize());this.hz();this.show()},Ita=function(a, b,c){var d=a.u.N(),e=16/9,f=650<=b.width,k=480>b.width||290>b.height,l=Math.min(a.w.length,a.C.length); if(150>=Math.min(b.width,b.height)||0==l||!d.Ha)a.hide();else{var m;if(f){var n=m=28;a.A=16}else n=m=8,a.A=8;if(k){var p=6;f=14;var t=12;k=24;d=12}else p=8,f=18,t=16,k=36,d=16;b=b.width-(48+m+n);m=Math.ceil(b/150);m=Math.min(3,m);m=b/m-a.A;n=Math.floor(m/e);c&&n+100>c&&50m||g.BL(a.u)?a.hide():a.show();for(c=0;cm?"none":""}l=f+p+t+4;a.S=l+d+(n-k)/2;a.G.element.style.height=n+l+"px";a.Z=m;a.F=b;a.B=0;a.iz(0);O4(a)}},Jta=function(a,b){var c=g.Od(b,a.F-a.w.length*(a.Z+a.A),0); a.da.start(a.B,c,1E3);a.B=c;O4(a)},O4=function(a){a.H.element.style.bottom=a.S+"px"; a.J.element.style.bottom=a.S+"px";var b=a.B,c=a.F-a.w.length*(a.Z+a.A);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Kta=function(a){for(var b=0;bb.width||290>b.height?(e={D:"div",X:["ytp-icon","ytp-icon-error-exclamation-small"]},f=Hta(),k=0):650<=b.width&&(e={D:"div",X:["ytp-icon","ytp-icon-error-exclamation-large"]},f=g.X?{D:"div",X:["ytp-icon","ytp-icon-youtube-logo-redirect-extra-large"]}:{D:"svg",M:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",M:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}, k=2);if(k!==a.C){e={"ytp-error-icon-container":e,"ytp-small-redirect":f};f=g.q(Object.keys(e));for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=g.de(l,a.element);g.se(m);(new g.V(e[l])).ba(m)}a.C=k}}c.style.paddingTop=(b.height-a.w.element.clientHeight)/2-d/2+"px"},Q4=function(a){g.V.call(this,{D:"div", I:"ytp-muted-autoplay-endscreen-overlay",K:[{D:"div",I:"ytp-muted-autoplay-end-panel",K:[{D:"div",I:"ytp-muted-autoplay-end-text",W:"{{text}}"}]}]});this.u=a;this.A=this.o["ytp-muted-autoplay-end-panel"];this.w=new g.eN(a);g.C(this,this.w);this.w.ba(this.A,0);g.TL(a,this.element,this,52428);this.L(a,"presentingplayerstatechange",this.C);this.ia("click",this.B);this.hide()},R4=function(a){g.V.call(this,{D:"div", I:"ytp-muted-autoplay-overlay",K:[{D:"div",I:"ytp-muted-autoplay-bottom-buttons",K:[{D:"button",X:["ytp-muted-autoplay-equalizer","ytp-button"],K:[{D:"div",X:["ytp-muted-autoplay-equalizer-icon"],K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-equalizer-animation"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},K:[{D:"g",M:{fill:"#fff"},K:[{D:"rect",I:"ytp-equalizer-bar-left",M:{height:"9",width:"4",x:"1",y:"7"}},{D:"rect",I:"ytp-equalizer-bar-middle",M:{height:"14",width:"4", x:"6",y:"2"}},{D:"rect",I:"ytp-equalizer-bar-right",M:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.u=a;this.bottomButtons=this.o["ytp-muted-autoplay-bottom-buttons"];this.A=this.o["ytp-muted-autoplay-equalizer"];this.B=new g.I(this.C,4E3,this);g.TL(a,this.element,this,39306);this.L(a,"presentingplayerstatechange",this.w);this.L(a,"onMutedAutoplayStarts",this.w);this.ia("click",this.F);this.hide()},S4=function(a,b){g.V.call(this,{D:"div", I:"ytp-pause-overlay"});this.u=a;this.ca=b;this.A=new g.O(this);g.C(this,this.A);this.U=new g.BM(this,1E3,!1,100);g.C(this,this.U);var c=a.N();"0"==c.controlsType&&g.J(g.xL(a),"ytp-pause-overlay-controls-hidden");this.C=[];this.w=[];this.F=0;this.da=c.u;this.Z=!1;this.na=0;this.S=new g.V({D:"h2",I:"ytp-related-title",W:"{{title}}"});g.C(this,this.S);this.S.ba(this.element);this.G=new g.V({D:"div",I:"ytp-suggestions"});g.C(this,this.G);this.G.ba(this.element);this.O=new g.V({D:"button",X:["ytp-button", "ytp-previous"],M:{"aria-label":"Afficher les suggestions de vid\u00e9os pr\u00e9c\u00e9dentes"},K:[g.FM()]});g.C(this,this.O);this.O.ba(this.element);this.O.ia("click",this.OH,this);var d=g.Iv||g.yh?{style:"will-change: opacity"}:null;this.ea=new M4((0,g.x)(this.gz,this));g.C(this,this.ea);for(var e=this.ga=this.V=this.B=0;16>e;e++){var f=new g.V({D:"a",I:"ytp-suggestion-link",M:{href:"{{link}}",target:c.A,"aria-label":"{{aria_label}}"},K:[{D:"div",I:"ytp-suggestion-image"},{D:"div",I:"ytp-suggestion-overlay", M:d,K:[{D:"div",I:"ytp-suggestion-title",W:"{{title}}"},{D:"div",I:"ytp-suggestion-author",W:"{{author_and_views}}"},{D:"div",M:{"data-is-live":"{{is_live}}"},I:"ytp-suggestion-duration",W:"{{duration}}"}]}]});g.C(this,f);f.ba(this.G.element);var k=f.o["ytp-suggestion-link"];g.vh(k,"transitionDelay",e/20+"s");this.A.L(k,"click",g.Sa(this.PH,e));this.C.push(f)}this.J=new g.V({D:"button",X:["ytp-button","ytp-next"],M:{"aria-label":"Afficher plus de suggestions de vid\u00e9os"},K:[g.GM()]});g.C(this, this.J);this.J.ba(this.element);this.J.ia("click",this.NH,this);c=new g.V({D:"button",X:["ytp-button","ytp-collapse"],M:{"aria-label":'Masquer la section "Plus de vid\u00e9os"'},K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-small-close"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 16 16",width:"100%"},K:[{D:"path",M:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}]});g.C(this,c);c.ba(this.element);c.ia("click",this.EK,this);this.H=new g.V({D:"button",X:["ytp-button","ytp-expand"], W:"Plus de vid\u00e9os"});g.C(this,this.H);this.H.ba(this.element);this.H.ia("click",this.FK,this);this.A.L(this.u,"appresize",this.Ms);this.A.L(this.u,"fullscreentoggled",this.QH);this.A.L(this.u,"presentingplayerstatechange",this.RH);this.A.L(this.u,"videodatachange",this.SH);this.Ms(g.wL(this.u).getPlayerSize())},Mta=function(a,b){var c=g.Od(b,a.F-a.w.length*(a.V+8),0); a.ea.start(a.B,c,1E3);a.B=c;T4(a)},T4=function(a){var b=a.ca.jc(); b=a.ga/2+(b?32:16);a.J.element.style.bottom=b+"px";a.O.element.style.bottom=b+"px";b=a.B;var c=a.F-a.w.length*(a.V+8);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Nta=function(a){for(var b=0;bb&&this.u.start()};g.r(N4,g.V);g.h=N4.prototype;g.h.hide=function(){this.U=!0;g.V.prototype.hide.call(this)}; g.h.show=function(){this.U=!1;g.V.prototype.show.call(this)}; g.h.isHidden=function(){return this.U}; g.h.TH=function(){Jta(this,this.B-this.F)}; g.h.UH=function(){Jta(this,this.B+this.F)}; g.h.VH=function(a,b){var c=this.w[a],d=c.Nb;if(g.mN(b,this.u,this.ca,d||void 0)){var e=c.wa().videoId;c=c.getPlaylistId();g.TT(this.u.app,e,d,c,void 0,void 0)}}; g.h.hz=function(){var a=this,b=this.u.getVideoData(),c=this.u.N();this.ca=b.tc?!1:c.u;if(b.suggestions){var d=(0,g.ve)(b.suggestions,function(e){return e&&!e.list}); this.w=(0,g.Fc)(d,function(e){e=g.MO(c,e);g.C(a,e);return e})}else this.w.length=0; Kta(this);b.tc?this.O.update({title:g.gN("Autres vid\u00e9os de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.O.update({title:"Plus de vid\u00e9os sur YouTube"})}; g.h.iz=function(a){this.G.element.scrollLeft=-a};g.r(P4,g.rN);P4.prototype.show=function(){g.rN.prototype.show.call(this);Lta(this,g.wL(this.api).getPlayerSize())}; P4.prototype.u=function(a){g.rN.prototype.u.call(this,a);Lta(this,a);g.K(this.element,"related-on-error-overlay-visible",!this.w.isHidden())}; P4.prototype.B=function(a){g.rN.prototype.B.call(this,a);var b=this.api.getVideoData(),c;if(a.Lg){if(b.qn){a:{a=b.qn;if(a.runs)for(var d=0;d(0,g.N)()-this.na)g.Ep(b),document.activeElement.blur();else{var c=this.w[a],d=c.Nb;if(g.mN(b,this.u,this.da,d||void 0)){var e=c.wa().videoId;c=c.getPlaylistId();g.TT(this.u.app,e,d,c,void 0,void 0)}}}; g.h.QH=function(){this.Ms(g.wL(this.u).getPlayerSize())}; g.h.RH=function(a){if(!(g.W(a.state,1)||g.W(a.state,16)||g.W(a.state,32))){var b=!g.Q(this.u.N().experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.W(a.state,2048);!g.W(a.state,4)||g.W(a.state,2)||b?this.U.hide():this.w.length&&(this.Z||(g.J(g.xL(this.u),"ytp-expand-pause-overlay"),T4(this)),this.U.show(),this.na=(0,g.N)())}}; g.h.Ms=function(a){var b=16/9,c=this.ca.jc();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=0;da.width;if(c&&!this.B||!c&&this.B)a=480>a.width&&b.B?{D:"div",X:["ytp-icon","ytp-icon-watermark-small"]}:Gta(),a=new g.V(a),b=this.o["ytp-watermark"],g.K(b,"ytp-watermark-small",c),g.se(b),a.ba(b),this.B=c};g.r(V4,g.gM);g.h=V4.prototype;g.h.Bf=function(){return!1}; g.h.create=function(){var a=this.o.N(),b=g.XC(this.o);a.Ha&&(this.F=new S4(this.o,b),g.C(this,this.F),g.RL(this.o,this.F.element,4));g.Q(a.experiments,"embeds_enable_muted_autoplay")&&(this.w=new R4(this.o),g.C(this,this.w),g.RL(this.o,this.w.element,4),this.C=new Q4(this.o),g.C(this,this.C),g.RL(this.o,this.C.element,4));if(a.Na||this.w)this.A=new U4(this.o),g.C(this,this.A),g.RL(this.o,this.A.element,7);this.B.L(this.o,"appresize",this.KH);this.B.L(this.o,"presentingplayerstatechange",this.JH); this.B.L(this.o,"videodatachange",this.iP);this.B.L(this.o,"onMutedAutoplayStarts",this.OL);Ota(this,g.zL(this.o));g.OL(this.player,"embed")}; g.h.KH=function(){var a=g.wL(this.o).getPlayerSize();this.u&&this.u.u(a)}; g.h.JH=function(a){Ota(this,a.state)}; g.h.OL=function(){this.o.getVideoData().mutedAutoplay&&this.w&&this.A&&this.A.ba(this.w.bottomButtons,0)}; g.h.iP=function(){var a=this.o.getVideoData();this.A&&this.w&&!a.mutedAutoplay&&g.xe(this.w.element,this.A.element)&&g.RL(this.o,this.A.element,7)};g.vM.embed=V4;})(_yt_player);