(function(g){var window=this;var Jua=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.Nn(a,c);var l=(g.Nn(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.R({D:"a",H:"ytp-suggestion-link",O:{href:"{{link}}",target:a.C,"aria-label":"{{aria_label}}"},J:[{D:"div",H:"ytp-suggestion-image",J:[{D:"div",O:{"data-is-live":"{{is_live}}"},H:"ytp-suggestion-duration",W:"{{duration}}"}]},{D:"div",H:"ytp-suggestion-title",O:{title:"{{hover_title}}"},W:"{{title}}"},{D:"div",H:"ytp-suggestion-author", W:"{{views_or_author}}"}]});g.B(this,c);c.ca(this.G.element);var d=c.o["ytp-suggestion-link"];g.sh(d,"transitionDelay",b/20+"s");this.ba.L(d,"click",g.Qa(this.BI,b));this.C.push(c)}this.I=new g.R({D:"button",Y:["ytp-button","ytp-next"],O:{"aria-label":"Afficher plus de suggestions de vid\u00e9os"},J:[g.CM()]});g.B(this,this.I);this.I.ca(this.element);this.I.ka("click",this.zI,this);this.ba.L(this.u,"videodatachange",this.wz);Mua(this,g.QK(this.u).getPlayerSize());this.wz();this.show()},Mua=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.Aa)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.SK(a.u)?a.hide():a.show();for(c=0;cm?"none":""}l=f+p+t+4;a.U=l+d+(n-k)/2;a.G.element.style.height=n+l+"px";a.Z=m;a.F=b;a.B=0;a.xz(0);G4(a)}},Nua=function(a,b){var c=g.Md(b,a.F-a.w.length*(a.Z+a.A),0); a.da.start(a.B,c,1E3);a.B=c;G4(a)},G4=function(a){a.I.element.style.bottom=a.U+"px"; a.M.element.style.bottom=a.U+"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)},Oua=function(a){for(var b=0;bb.width||290>b.height?(e={D:"div",Y:["ytp-icon","ytp-icon-error-exclamation-small"]},f=Lua(),k=0):650<=b.width&&(e={D:"div",Y:["ytp-icon","ytp-icon-error-exclamation-large"]},f=g.X?{D:"div",Y:["ytp-icon","ytp-icon-youtube-logo-redirect-extra-large"]}:{D:"svg",O:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",O:{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.B){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.ce(l,a.element);g.re(m);(new g.R(e[l])).ca(m)}a.B=k}}c.style.paddingTop=(b.height-a.w.element.clientHeight)/2-d/2+"px"},I4=function(a,b){var c=a.N(); g.R.call(this,{D:"button",Y:["ytp-impression-link","ytp-button"]});this.hide();this.u=a;this.B=b;this.A=!1;g.kL(a,this.element,this,96714);var d=this.u.N(),e=this.u.getVideoData().lc,f=d.Ca,k=d.Yf;d=!d.Aa;var l=this.B.Rd();f||k||l||e||d||(g.P(c.experiments,"embeds_impression_link_call_to_action")&&(g.J(this.element,"show-cta-button"),(new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-text",W:"Regarder sur"},{D:"div",H:"ytp-impression-link-logo",J:[D4()]}]})).ca(this.element), this.show()),g.P(c.experiments,"embeds_impression_link_video_thumbnail")&&Qua(this),g.P(c.experiments,"embeds_impression_link_channel_thumbnail")&&Rua(this),g.P(c.experiments,"embeds_impression_link_occlusion")&&Sua(this),g.P(c.experiments,"embeds_impression_link_hover")&&Tua(this),this.L(a,"presentingplayerstatechange",this.F),this.L(a,"videoplayerreset",this.G),this.L(this.element,"click",this.C))},Qua=function(a){var b,c,d,e,f; g.Ba(function(k){if(1==k.o)return b=a.u.getVideoData(),g.ta(k,J4(a,b),2);c=k.u;if(!c)return k["return"]();d=c[0];a.w=d;g.J(a.element,"show-video-thumbnail-button");e=new g.R({D:"div",H:"ytp-impression-link-header",W:"Autres contenus YouTube"});e.ca(a.element);f=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:d.title},{D:"div",H:"ytp-impression-link-views-and-duration",W:"{{views_and_duration}}"}]},{D:"div",H:"ytp-impression-link-thumbnail"}]}); f.ca(a.element);K4(a,f,d);L4(a,f,d);a.show();k.o=0})},Rua=function(a){var b,c,d; g.Ba(function(e){if(1==e.o)return g.ta(e,Uua(a),2);b=e.u;if(!b)return e["return"]();a.w=b;g.J(a.element,"show-channel-thumbnail-button");c=new g.R({D:"div",H:"ytp-impression-link-header",W:"Autres contenus YouTube"});c.ca(a.element);d=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:b.pl},{D:"div",H:"ytp-impression-link-subscribers",W:b.expandedSubtitle}]},{D:"div",H:"ytp-impression-link-thumbnail"}]});d.ca(a.element); K4(a,d,b);a.show();e.o=0})},Sua=function(a){var b,c,d,e,f,k,l,m,n,p; g.Ba(function(t){if(1==t.o)return b=a.u.getVideoData(),g.ta(t,J4(a,b),2);c=t.u;if(!c)return t["return"]();d=c[0];a.w=d;g.J(a.element,"show-occlusion-video-thumbnail-button");e=new g.R({D:"div",H:"ytp-impression-link-header",W:"Autres contenus YouTube"});e.ca(a.element);f=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:d.title},{D:"div",H:"ytp-impression-link-author",W:d.author},{D:"div",H:"ytp-impression-link-views", W:"{{views}}"}]},{D:"div",H:"ytp-impression-link-thumbnail-and-duration",J:[{D:"div",H:"ytp-impression-link-thumbnail"},{D:"div",H:"ytp-impression-link-duration",W:"{{duration}}"}]}]});f.ca(a.element);K4(a,f,d);L4(a,f,d);k=new g.R({D:"button",Y:["ytp-button","ytp-impression-link-close"],J:[{D:"div",Y:["ytp-impression-link-close-icon"],J:[Kua()]}]});k.ca(a.element);k.ka("click",function(u){a.hide();g.oL(a.u,a.element,!1);u.stopPropagation()},a); l=function(u){!g.q(u).next().value.isIntersecting&&a.element&&a.show()}; try{m={threshold:.8},n=new IntersectionObserver(l,m),p=document.querySelector("body"),n.observe(p)}catch(u){g.M(u)}t.o=0})},Tua=function(a){var b,c,d,e,f; g.Ba(function(k){if(1==k.o)return b=a.u.getVideoData(),g.ta(k,J4(a,b),2);c=k.u;if(!c)return k["return"]();d=c[0];a.w=d;g.J(a.element,"show-video-thumbnail-expanding-button");a.L(a.element,"mouseenter",function(){g.J(a.element,"show-expanded-metadata");g.Dn(a.element,"show-collapsed-metadata")}); a.L(a.element,"mouseleave",function(){g.Dn(a.element,"show-expanded-metadata");g.J(a.element,"show-collapsed-metadata")}); e=new g.R({D:"div",H:"ytp-impression-link-header",W:"Plus de vid\u00e9os"});e.ca(a.element);f=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:d.title},{D:"div",H:"ytp-impression-link-views-and-duration",W:"{{views_and_duration}}"}]},{D:"div",H:"ytp-impression-link-thumbnail"}]});f.ca(a.element);K4(a,f,d);L4(a,f,d);a.show();k.o=0})},K4=function(a,b,c){a=g.P(a.u.N().experiments,"embeds_impression_link_channel_thumbnail")? c.Id:c.tc(); b.o["ytp-impression-link-thumbnail"].style.backgroundImage=a?"url("+a+")":""},L4=function(a,b,c){a=a.u.N(); var d="";c.va?d="En direct":c.lengthSeconds&&(d=g.hM(c.lengthSeconds));c=c.shortViewCount?c.shortViewCount:"";var e="";c&&d?e=c+" \u2022 "+d:c?e=c:d&&(e=d);g.P(a.experiments,"embeds_impression_link_occlusion")?b.update({views:c,duration:d}):b.update({views_and_duration:e})},Vua=function(a,b){var c,d,e,f,k,l,m,n; return g.Ba(function(p){return 1==p.o?(c=a.u.N(),d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e={},c.sendVisitorIdHeader&&b.visitorData&&(e["X-Goog-Visitor-Id"]=b.visitorData),(f=g.At(c.experiments,"debug_dapper_trace_id"))&&(e["X-Google-DapperTraceInfo"]=f),(k=g.At(c.experiments,"debug_sherlog_username"))&&(e["X-Youtube-Sherlog-Username"]=k),0e;e++){var f=new g.R({D:"a",H:"ytp-suggestion-link",O:{href:"{{link}}",target:c.C,"aria-label":"{{aria_label}}"},J:[{D:"div",H:"ytp-suggestion-image"},{D:"div",H:"ytp-suggestion-overlay", O:d,J:[{D:"div",H:"ytp-suggestion-title",W:"{{title}}"},{D:"div",H:"ytp-suggestion-author",W:"{{author_and_views}}"},{D:"div",O:{"data-is-live":"{{is_live}}"},H:"ytp-suggestion-duration",W:"{{duration}}"}]}]});g.B(this,f);f.ca(this.G.element);var k=f.o["ytp-suggestion-link"];g.sh(k,"transitionDelay",e/20+"s");this.A.L(k,"click",g.Qa(this.wI,e));this.C.push(f)}this.M=new g.R({D:"button",Y:["ytp-button","ytp-next"],O:{"aria-label":"Afficher plus de suggestions de vid\u00e9os"},J:[g.CM()]});g.B(this, this.M);this.M.ca(this.element);this.M.ka("click",this.uI,this);c=new g.R({D:"button",Y:["ytp-button","ytp-collapse"],O:{"aria-label":'Masquer la section "Plus de vid\u00e9os"'},J:[Kua()]});g.B(this,c);c.ca(this.element);c.ka("click",this.DK,this);this.I=new g.R({D:"button",Y:["ytp-button","ytp-expand"],W:"Plus de vid\u00e9os"});g.B(this,this.I);this.I.ca(this.element);this.I.ka("click",this.EK,this);this.A.L(this.u,"appresize",this.vt);this.A.L(this.u,"fullscreentoggled",this.xI);this.A.L(this.u, "presentingplayerstatechange",this.yI);this.A.L(this.u,"videodatachange",this.uz);this.vt(g.QK(this.u).getPlayerSize());this.uz()},Wua=function(a,b){var c=g.Md(b,a.F-a.w.length*(a.ba+8),0); a.ga.start(a.B,c,1E3);a.B=c;P4(a)},P4=function(a){var b=a.aa.kc(); b=a.ma/2+(b?32:16);a.M.element.style.bottom=b+"px";a.R.element.style.bottom=b+"px";b=a.B;var c=a.F-a.w.length*(a.ba+8);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Xua=function(a){for(var b=0;bb&&this.u.start()};g.r(F4,g.R);g.h=F4.prototype;g.h.hide=function(){this.V=!0;g.R.prototype.hide.call(this)}; g.h.show=function(){this.V=!1;g.R.prototype.show.call(this)}; g.h.isHidden=function(){return this.V}; g.h.zI=function(){Nua(this,this.B-this.F)}; g.h.AI=function(){Nua(this,this.B+this.F)}; g.h.BI=function(a,b){var c=this.w[a],d=c.Ob;if(g.IN(b,this.u,this.aa,d||void 0)){var e=c.ya().videoId;c=c.getPlaylistId();g.rT(this.u.app,e,d,c,void 0,void 0)}}; g.h.wz=function(){var a=this,b=this.u.getVideoData(),c=this.u.N();this.aa=b.lc?!1:c.u;if(b.suggestions){var d=(0,g.ue)(b.suggestions,function(e){return e&&!e.list}); this.w=(0,g.Cc)(d,function(e){e=g.jM(c,e);g.B(a,e);return e})}else this.w.length=0; Oua(this);b.lc?this.R.update({title:g.gM("Autres vid\u00e9os de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.R.update({title:"Plus de vid\u00e9os sur YouTube"})}; g.h.xz=function(a){this.G.element.scrollLeft=-a};g.r(H4,g.XP);H4.prototype.show=function(){g.XP.prototype.show.call(this);Pua(this,g.QK(this.api).getPlayerSize())}; H4.prototype.u=function(a){g.XP.prototype.u.call(this,a);Pua(this,a);g.K(this.element,"related-on-error-overlay-visible",!this.w.isHidden())}; H4.prototype.A=function(a){g.XP.prototype.A.call(this,a);var b=this.api.getVideoData(),c=g.P(this.api.N().experiments,"embeds_enable_sg_misinfo"),d;if(a.dh){if(b.Qn){a:{a=b.Qn;if(a.runs)for(var e=0;e(0,g.N)()-this.oa)g.Kp(b),document.activeElement.blur();else{var c=this.w[a],d=c.Ob;if(g.IN(b,this.u,this.da,d||void 0)){var e=c.ya().videoId;c=c.getPlaylistId();g.rT(this.u.app,e,d,c,void 0,void 0)}}}; g.h.xI=function(){this.vt(g.QK(this.u).getPlayerSize())}; g.h.yI=function(a){if(!(g.V(a.state,1)||g.V(a.state,16)||g.V(a.state,32))){var b=!g.P(this.u.N().experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.V(a.state,2048);!g.V(a.state,4)||g.V(a.state,2)||b?this.V.hide():this.w.length&&(this.Z||(g.J(this.u.getRootNode(),"ytp-expand-pause-overlay"),P4(this)),this.V.show(),this.oa=(0,g.N)())}}; g.h.vt=function(a){var b=16/9,c=this.aa.kc();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.F?{D:"div",Y:["ytp-icon","ytp-icon-watermark-small"]}:D4(),a=new g.R(a),b=this.o["ytp-watermark"],g.K(b,"ytp-watermark-small",c),g.re(b),a.ca(b),this.B=c};g.r(R4,g.vL);g.h=R4.prototype;g.h.Pf=function(){return!1}; g.h.create=function(){var a=this.o.N(),b=g.dC(this.o);a.Aa&&(this.G=new O4(this.o,b),g.B(this,this.G),g.iL(this.o,this.G.element,4));g.P(a.experiments,"embeds_enable_muted_autoplay")&&(this.w=new N4(this.o),g.B(this,this.w),g.iL(this.o,this.w.element,4),this.F=new M4(this.o),g.B(this,this.F),g.iL(this.o,this.F.element,4));if(a.Ca||this.w)this.A=new Q4(this.o),g.B(this,this.A),g.iL(this.o,this.A.element,7);g.P(a.experiments,"embeds_impression_link")&&(this.C=new I4(this.o,b),g.B(this,this.C),g.iL(this.o, this.C.element,7));this.B.L(this.o,"appresize",this.rI);this.B.L(this.o,"presentingplayerstatechange",this.qI);this.B.L(this.o,"videodatachange",this.aP);this.B.L(this.o,"onMutedAutoplayStarts",this.RL);Yua(this,g.PK(this.o));g.fL(this.player,"embed")}; g.h.rI=function(){var a=g.QK(this.o).getPlayerSize();this.u&&this.u.u(a)}; g.h.qI=function(a){Yua(this,a.state)}; g.h.RL=function(){this.o.getVideoData().mutedAutoplay&&this.w&&this.A&&this.A.ca(this.w.bottomButtons,0)}; g.h.aP=function(){var a=this.o.getVideoData();this.A&&this.w&&!a.mutedAutoplay&&g.xe(this.w.element,this.A.element)&&g.iL(this.o,this.A.element,7)};g.KL.embed=R4;})(_yt_player);