1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[768],{8698:(e,t,i)=>{i.d(t,{T:()=>s});let s=function(e){return e.USER_CITY_UPDATED="gsoi.user_city.city_updated",e}({})},9972:(e,t,i)=>{var s=i(9647),n=i(9342);(0,s.qQ)().then((()=>{document.querySelectorAll(".alert").forEach((e=>{const t=e.querySelector(".close-alert");t?.addEventListener("click",(t=>{e.remove()}));const i=e.querySelector(".text-alert");i.offsetWidth<=i.querySelector("a").offsetWidth&&i.querySelector("span").animate([{transform:"translateX(0)"},{transform:"translateX(-100%)"}],{duration:Math.max((0,n.s2)()?25e3:7e3,20*i.offsetWidth),iterations:1/0,easing:"linear"})}))})),(0,s.qQ)().then((()=>{document.querySelectorAll(".service-block").forEach(((e,t)=>{t%2==0?e.classList.add("odd"):e.classList.add("even")}))}));var r=i(1029),a=i(6664),o=i(1146),l=i(7812);const c=new r.Z("Digiteka.SmartPlayer");Promise.all([(0,o.r9)(a.Z),(0,s.qQ)()]).then((([e])=>(async e=>{const t=(0,s.sb)("ultimedia-smart-player");if(null===t)return void c.debug("Ultimedia Smart Player not loaded: div not found.");window.ULTIMEDIA_target="ultimedia_content",window.ULTIMEDIA_async=void 0!==t?.dataset?.async,window.ULTIMEDIA_mdtk=e.mdtk,window.ULTIMEDIA_zone=parseInt(t?.dataset?.zone||"10");const i=1e3*parseInt(t?.dataset?.timeout||"7");c.debug("Ultimedia Smart Player configuration.",{ULTIMEDIA_target:window.ULTIMEDIA_target,ULTIMEDIA_async:window.ULTIMEDIA_async,ULTIMEDIA_mdtk:window.ULTIMEDIA_mdtk,ULTIMEDIA_zone:window.ULTIMEDIA_zone}),(0,a.v)(t,e),await(0,l.X_)(i),c.log(`Smart Player loaded after promo ${i}ms of ads.`),await(0,n.SH)("//www.ultimedia.com/js/common/smart.js"),c.log(`Ultimedia Smart Player loaded with mdtk ${e.mdtk}.`)})(e))).catch((e=>c.error(e)));var d=i(5335),u=i(9543),h=i(163),p=i(213);const m=JSON.parse('{"g":"https://alloy.prod.gsoi.fr/collect","e":0.1}');var g,f,b=i(4788),y=i(4010),v=i(139),w=i(8032),S=i(6658),E=i(7647),k=i(4463),L=i(3243);const C=new r.Z("Observability");let z=(g=(0,o.sy)(C),f=class extends o.wc{async initialize(){if(!L.Z.isEnabled(b.l.GRAFANA_FARO))return void C.log("Faro is disabled.");if(window.faro)return void C.log("Faro is already initialized.");const e={name:"newho-so",version:"2026.10-01-08",environment:"prod"};C.debug("Initializing Faro",e),(0,y.p)({instrumentations:[new v.w,new w.P,new S.J({disabledLevels:[E.in.TRACE,E.in.LOG,E.in.INFO,E.in.DEBUG]}),new k.p],url:m.g,app:e,sessionTracking:{enabled:!0,samplingRate:m.e}})}sendCustomEvent(e,t){window.faro?.api.pushEvent(e,t)}},P=f.prototype,O="initialize",A=[g],D=Object.getOwnPropertyDescriptor(f.prototype,"initialize"),_=f.prototype,T={},Object.keys(D).forEach((function(e){T[e]=D[e]})),T.enumerable=!!T.enumerable,T.configurable=!!T.configurable,("value"in T||T.initializer)&&(T.writable=!0),T=A.slice().reverse().reduce((function(e,t){return t(P,O,e)||e}),T),_&&void 0!==T.initializer&&(T.value=T.initializer?T.initializer.call(_):void 0,T.initializer=void 0),void 0===T.initializer&&(Object.defineProperty(P,O,T),T=null),f);var P,O,A,D,_,T;var I,U,M,q;const R=new r.Z("Article.ContentAnalyzer");let x=(I=(0,o.QM)("Article.ContentAnalyzer"),U=(0,o.sy)(R),I((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((q=class extends o.wc{contents=[];async initialize(){await(0,s.qQ)();const e=[];for(let t of(0,s.$3)(".article-content .full-content > *")){R.log("Content",t);const i=t.tagName.toLowerCase();if("p"!==i&&"blockquote"!==i)if("div"===i&&t.classList.contains("encart")){const i=(t.offsetHeight-80)/26;e.push({type:"text",tag:"encart",lines:Math.floor(i+1)})}else if("ul"!==i&&"ol"!==i)t.classList.contains("pub")?e.push({type:"pub",tag:i}):e.push({type:"other",tag:i});else{const s=(t.offsetHeight-10*(t.children.length-1))/26;e.push({type:"text",tag:i,lines:Math.floor(s)})}else{const s=t.offsetHeight/26;e.push({type:"text",tag:i,lines:Math.floor(s)})}}R.log("Article contents",e),this.contents=e}getContents(){return this.contents}}).prototype,"initialize",[U],Object.getOwnPropertyDescriptor(q.prototype,"initialize"),q.prototype),M=q))||M);var H,F,N,B;const j=new r.Z("Outbrain");let Z=(H=(0,o.QM)("Outbrain"),F=(0,o.sy)(j),H((function(e,t,i,s,n){var r={};
1Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((B=class extends o.wc{compliance=!1;async initialize(){const[e]=await Promise.all([(0,o.r9)(x),(0,s.qQ)()]);if(j.log("DOM is ready, calculate compliance"),this.compliance=!1,"true"===p.Z.get("gsoi:article-premium"))return void j.warn("Premium article: no compliance to be applied.");let t=0;for(const i of e.getContents().reverse()){if("text"!==i.type){j.log("Stop compliance check at content",i);break}t+=i.lines}j.log("lineCount for compliance is ",t),t>=3&&(this.compliance=!0)}isCompliance(){return this.compliance}}).prototype,"initialize",[F],Object.getOwnPropertyDescriptor(B.prototype,"initialize"),B.prototype),N=B))||N);var $=i(5778);const Q=new r.Z("OutbrainDynamicWidgets"),W=e=>{const t=(0,s.$3)(".outbrain-dynamic-widget");Q.debug("Dynamic widgets:",t);const i=t.map((t=>((e,t)=>{Q.log("Init widget",e);const i=document.createElement("div");i.classList.add("outbrain-container");const s=document.createElement("div");s.classList.add("OUTBRAIN"),s.setAttribute("data-src",e.dataset.src),i.appendChild(s);let n=e.dataset.defaultWidget;return t?.isCompliance()&&void 0!==e.dataset.complianceWidget&&(n=e.dataset.complianceWidget),void 0!==n&&("info_video"===p.Z.get("gsoi:article-type")&&(n=n.replace(/_(\d+)/,"_22")),Q.log("Set widget identifier",n),s.setAttribute("data-widget-id",n)),""!=s.dataset.widgetId&&""!=s.dataset.src&&(Q.log("Widget created",i),e.replaceWith(i),!0)})(t,e)));return i.some(Boolean)},V=async(e,t,i)=>{if(!await e.hasConsentedForVendor(h.Kj.OUTBRAIN))return void Q.log("Outbrain script not loaded: no consent");const r=await Promise.race([t.onUserLoaded(),(0,l.X_)(6e3)]);r&&d.Z.isAdsfree(r)?Q.log("Outbrain script not loaded: user is ads-free"):W(i)?(await(async()=>{const e=await(0,o.r9)(z);(0,s.$3)(".OUTBRAIN").forEach((t=>{Q.log("Send custom event",t.dataset.widgetId),e.sendCustomEvent("outbrain_widget_loaded",{widget:t.dataset.widgetId,src:t.dataset.src})}))})(),await(async()=>{try{const e=await(0,n.SH)("//widgets.outbrain.com/outbrain.js?i=fabeb750",!0);Q.debug("Outbrain script loaded.",e)}catch(e){Q.error("Outbrain script not loaded.",e)}})()):Q.log("Outbrain not loaded: no widget created")};Promise.all([(0,o.r9)(Z),(0,o.r9)(u.ZP),(0,o.r9)($.Z),(0,s.qQ)()]).then((async([e,t,i])=>{if(t.hasUserResponded())return Q.log("Loading Outbrain (user consent status already collected)."),void await V(t,i,e);t.on("consent.changed",(async s=>{Q.log("Loading Outbrain (consent changed)."),await V(t,i,e)}))}));(0,s.qQ)().then((()=>{const e=document.querySelectorAll('.header.header-verticals input[name="submenu-toggle"]');for(const t of e){let e=null;const i=document.querySelector(`.header.header-verticals label[for="${t.id}"]`);if(!i)return;i.addEventListener("click",(s=>{t.checked&&e===t&&(t.checked=!1,e=null,s.preventDefault(),i.classList.remove("in"))})),t.addEventListener("change",(()=>{const s=document.querySelector(".header.header-verticals .navigation-entry.in");s?.classList.remove("in"),i.classList.add("in"),e=t}))}}));i(3604);(0,s.qQ)().then((()=>{document.querySelectorAll(".read-more-wrapper > a.show-more").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.target;t.closest(".read-more-wrapper").querySelector(".read-more-content").classList.add("open"),t.remove()}))}))}));var G,K,J,X,Y=i(4280),ee=i(4702);const te=new r.Z("AmpStoryPlayer"),ie="https://cdn.ampproject.org/amp-story-player-v0.js";let se=(G=(0,o.QM)("AmpStoryPlayer"),K=(0,o.sy)(te),G((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}
1),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((X=class extends o.wc{constructor(e){super(),this.wrapper=e}async initialize(){await Promise.all([(0,s.qQ)(),this.loadScript()]);const e=this.wrapper.querySelector("amp-story-player");null!==e?(await(0,o.XU)(".snap-carousel-wrapper",(e=>new ee.Z(e))),this.player=e,this.storyLinks=(0,s.$3)(".story-link"),this.stories=this.player.getStories(),this.player.isReady&&(this.initNavButtons(),te.debug("Initialized navigational buttons.")),te.debug("Stories:",this.stories),this.initListeners()):te.log("No player element found.")}async loadScript(){try{const e=await(0,n.SH)(ie,!0);te.debug("Story player script loaded.",ie,e)}catch(e){te.error("Story player scripts not loaded",e)}}initNavButtons(){this.btnPrev=this.wrapper.querySelector(".story-player-nav-prev"),this.btnNext=this.wrapper.querySelector(".story-player-nav-next")}initListeners(){this.openPlayerListener(),this.closePlayerListener(),this.touchPlayerListener(),this.navPlayerListener()}touchPlayerListener(){let e=0;this.player.addEventListener("amp-story-player-touchstart",(t=>{e=t.detail.touches[0].pageY})),this.player.addEventListener("amp-story-player-touchend",(e=>{this.wrapper.style.top="0"})),this.player.addEventListener("amp-story-player-touchmove",(t=>{!1===t.detail.isNavigationalSwipe&&this.closePlayerOnSwipeDown(t,e)}))}closePlayerListener(){this.player.addEventListener("amp-story-player-close",(()=>{this.closePlayer()}))}openPlayerListener(){this.storyLinks.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const i=e.dataset.storyId;this.player.show(this.stories[i].href),this.openPlayer(),this.showNavButton(this.btnPrev),this.showNavButton(this.btnNext)}))}))}navPlayerListener(){this.btnPrev?.addEventListener("click",(()=>{this.player.go(-1)})),this.btnNext?.addEventListener("click",(()=>{this.player.go(1)})),this.player.addEventListener("navigation",(e=>{0===e.detail.remaining?(te.log("Disable next button, no more stories to show"),this.hideNavButton(this.btnNext)):this.showNavButton(this.btnNext)}))}closePlayer(){this.wrapper.classList.add("closed"),this.player.mute()}closePlayerOnSwipeDown(e,t){const i=e.detail.touches[0].pageY;let s=0;if(t<i){if(s=i-t,s>0&&s<150)return this.wrapper.classList.add("animate"),void(this.wrapper.style.top=`${s}px`);this.closePlayer()}}openPlayer(){this.wrapper.classList.remove("closed","animate")}showNavButton(e){e?.classList.contains("desktop-visible")||e?.classList.add("desktop-visible")}hideNavButton(e){e?.classList.contains("desktop-visible")&&e?.classList.remove("desktop-visible")}}).prototype,"initialize",[K],Object.getOwnPropertyDescriptor(X.prototype,"initialize"),X.prototype),J=X))||J);const ne=new r.Z("Batch");class re extends o.wc{config={apiKey:null,authKey:null,bannerText:null,btnSub:null,domain:null,icon:null,serviceWorkerPathOverride:"/batchsdk-worker-loader.js",subdomain:null,themeColor:null,vapidPublicKey:null,websitePushId:null};isValidConfig(e){return e?0==Object.keys(e.dataset).length?(ne.error("Batch config is empty"),!1):!!(e.dataset.apiKey&&e.dataset.authKey&&e.dataset.subdomain&&e.dataset.vapidPublicKey&&e.dataset.bannerText&&e.dataset.btnSub&&e.dataset.themeColor&&e.dataset.domain&&e.dataset.websitePushId)||(ne.error("Batch widget is not well configured"),!1):(ne.error("Batch widget not found"),!1)}initBatchConfig(){const e=document.getElementById("batch-widget");if(this.isValidConfig(e))return this.config.apiKey=e.dataset.apiKey,this.config.authKey=e.dataset.authKey.replace("\\/","/"),this.config.bannerText=e.dataset.bannerText,this.config.btnSub=e.dataset.btnSub,this.config.domain=e.dataset.domain,this.config.icon=e.dataset.icon||"",this.config.subdomain=e.dataset.subdomain,this.config.themeColor=e.dataset.themeColor,this.config.vapidPublicKey=e.dataset.vapidPublicKey.replace(/\\\//g,"/"),this.config.websitePushId=e.dataset.websitePushId,ne.debug("Batch config",this.config),this.config}async loadBatchScript(){try{const e=await(0,n.SH)("https://via.batch.com/v3/bootstrap.min.js");ne.debug("Batch script loaded",e)}catch(e){ne.error("Batch script not loaded",e)}}async initBatchSDK(){await this.loadBatchScript();try{window.batchSDK=window.batchSDK||function(){(window.batchSDK.q=window.batchSDK.q||[]).push(arguments)};let e={native:{}};(-1!==navigator.userAgent.indexOf("Firefox")||-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"))&&(e={banner:{text:this.config.bannerText,icon:this.config.icon,btnSub:this.config.btnSub,btnBackgroun
1dColor:this.config.themeColor}}),window.batchSDK("setup",{apiKey:this.config.apiKey,subdomain:this.config.subdomain,authKey:this.config.authKey,vapidPublicKey:this.config.vapidPublicKey,ui:e,serviceWorkerPathOverride:this.config.serviceWorkerPathOverride,safari:{[this.config.domain]:this.config.websitePushId}}),ne.debug("Batch setup")}catch(e){ne.error("Batch not setup",e)}}async onDidomiLoaded(){return new Promise((e=>{this.didomi.getLibrary()?e():this.didomi.onReady((()=>{e()}))}))}hasConsent(){const e=[h.XC.COOKIES,h.XC.USE_GEOLOCATION_DATA,h.XC.SELECT_PERSONALISED_CONTENT,h.XC.CREATE_CONTENT_PROFILE,h.XC.ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION];if(0===this.didomi.getLibrary().getUserStatus().purposes.consent.enabled.length)return ne.debug("Not display Batch banner : none consent"),!1;return!!e.every((e=>this.didomi.getLibrary().getUserStatus().purposes.consent.enabled.includes(e)))||(ne.warn("Not display Batch banner : missing consent"),!1)}async initialize(){[this.didomi]=await Promise.all([(0,o.r9)(h.ZP),(0,s.qQ)()]),this.initBatchConfig()||ne.error("Batch config is undefined"),await this.onDidomiLoaded(),this.hasConsent()&&await this.initBatchSDK()}}var ae,oe,le,ce,de=i(8111),ue=i(6121),he=i(2488);const pe=new r.Z("CarouselStories");let me=(ae=(0,o.QM)("CarouselStories"),oe=(0,o.sy)(pe),ae((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((ce=class extends o.wc{eventEmitter=new ue.Z;loopCount=0;position=0;constructor(e){super(),this.block=e,this.loopCycle=this.retrieveLoopCycle();const t=(0,s.$3)(".slide-control",this.block),i=(0,s.$3)(".carousel-stories-dots .carousel-stories-dot",this.block),n=this.block.querySelector(".carousel-stories-nav .next"),r=this.block.querySelector(".carousel-stories-nav .previous"),a=this.block.querySelector(".carousel-stories-scroller"),o=(0,s.$3)(".carousel-slide",a);i&&n&&r&&a&&0!==o.length?this.elements={controls:t,dots:i,next:n,previous:r,scroller:a,slides:o}:pe.error("Some elements are not found in the block.",{controls:t,dots:i,next:n,previous:r,scroller:a,slides:o})}async initialize(){[this.preferencesManager]=await Promise.all([(0,o.r9)(he.e),await(0,s.qQ)()]),this.initContentLinks(),this.initControls(),this.initDots(),this.initNav(),(0,s.jo)(this.block,document,.8,this.onInsideViewport.bind(this),this.onOutsideViewport.bind(this)),(0,s.jo)(this.elements.slides,document,.5,this.onSlideInsideBlock.bind(this),this.onSlideOutsideBlock.bind(this))}next(){return["both","next"].includes(this.loopCycle)&&this.isLast()?(this.loopCount++,pe.log("Looping to the first slide.",{count:this.loopCount}),this.holdUntilAt(0),this.elements.scroller.scrollTo(0,0),void this.eventEmitter.emit("carousel.looped",this.loopCount,this.block.id,this.elements.slides.length)):this.isLast()?(pe.log("Last slide reached."),void this.eventEmitter.emit("carousel.end",this.block.id,this.elements.slides.length)):void this.elements.scroller.scrollBy(this.getWidth(),0)}previous(){if(["both","previous"].includes(this.loopCycle)&&this.isFirst())return pe.log("Looping to the last."),this.holdUntilAt(this.elements.slides.length-1),void this.elements.scroller.scrollTo((this.elements.slides.length-1)*this.getWidth(),0);this.elements.scroller.scrollBy(-this.getWidth(),0)}clearTimeout(){clearTimeout(this.slideTimeout),delete this.slideTimeout}holdUntilAt(e){this.clearTimeout(),this.holdUntil=e}isFirst(){return 0===this.position}isLast(){return this.elements.slides.length-1===this.position}on(e,t){return this.eventEmitter.on(e,t),this}getDot(e){return(0,de.at)(this.elements.dots,e??this.position)}getSlide(e){return(0,de.at)(this.elements.slides,e??this.position)}getSlideDuration(){const e=this.getDot();let t=6e3;return(0,s.x8)(e,"duration")&&(t=1e3*parseInt((0,s.MX)(e,"duration"))),t}getWidth(){return this.block.offsetWidth}initContentLinks(){this.block.querySelectorAll('.carousel-slide a:not([href^="#"])').forEach((e=>{e.addEventListener("click",(e=>{this.getDot().classList.add("pause"),this.clearTimeout()}))}))}
1initControls(){if(this.elements.controls.length)for(const e of this.elements.controls)e.classList.contains("carousel-slide-audio")&&e.addEventListener("click",(e=>{e.preventDefault(),this.preferencesManager.update("videoMuted",!this.preferencesManager.get("videoMuted"))}))}initDots(){for(let e of this.elements.dots){e.querySelector("a").addEventListener("click",(e=>{e.preventDefault();const t=e.target.getAttribute("href");if(!t||!t.startsWith("#"))return void pe.warn("Invalid target selector.",{targetSelector:t});const i=this.elements.scroller.querySelector(t);i?i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}):pe.warn("Target slide not found.",{targetSelector:t})}))}}initNav(){this.elements.next.addEventListener("click",(e=>{e.preventDefault(),this.next()})),this.elements.previous.addEventListener("click",(e=>{e.preventDefault(),this.previous()}))}onInsideViewport(e){pe.debug("Is inside viewport.",e),this.block.classList.add("active"),this.onSlideInsideBlock(this.getSlide()),this.eventEmitter.emit("carousel.shown",e.id,this.position,this.elements.slides.length)}onOutsideViewport(e){pe.debug("Is outside viewport.",e),this.clearTimeout(),this.holdUntil=void 0,this.block.classList.remove("active"),this.getDot().classList.remove("active"),this.eventEmitter.emit("carousel.hidden",e.id,this.position,this.elements.slides.length)}onSlideInsideBlock(e){if(!this.block.classList.contains("active"))return;if(this.position=this.elements.slides.indexOf(e),void 0!==this.holdUntil&&this.holdUntil!==this.position)return void pe.debug("Slide is visible but on hold.",e);pe.log("Slide is visible.",e),e.classList.add("active");const t=this.getDot(),i=e.querySelector("video"),n=this.getSlideDuration(),{identifier:r,title:a}=this.block.dataset;this.clearTimeout(),this.slideTimeout=setTimeout((()=>this.next()),n),this.holdUntil=void 0,(0,s.m7)(t,!0,"before").forEach((e=>{e.classList.add("end"),e.classList.remove("active")})),(0,s.m7)(t,!1,"after").forEach((e=>e.classList.remove("active","end"))),t.classList.add("active"),(0,l.X_)(230).then((()=>{i?.play()})),this.eventEmitter.emit("slide.displayed",e.id,this.elements.slides.length,this.position,n,{identifier:r,title:a,isVideo:null!==i})}onSlideOutsideBlock(e){const t=e.querySelector("video");t&&(t.pause(),t.currentTime=0),void 0===this.holdUntil&&e.classList.remove("active")}retrieveLoopCycle(){let e="none";const t=this.block.getAttribute("loop-cycle");return null===t?e="none":""===t?e="both":["both","previous","next"].includes(t)&&(e=t),e}}).prototype,"initialize",[oe],Object.getOwnPropertyDescriptor(ce.prototype,"initialize"),ce.prototype),le=ce))||le);var ge,fe,be,ye,ve=i(4992),we=i(4943);const Se=new r.Z("CookieWall");let Ee=(ge=(0,o.QM)("CookieWall"),fe=(0,o.sy)(Se),ge((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((ye=class extends o.wc{constructor(e){super(),this.cssSelector=e}async initialize(){if([this.consentManager,this.didomi,this.sessionManager]=await Promise.all([(0,o.r9)(u.ZP),(0,o.r9)(h.ZP),(0,o.r9)($.Z),(0,s.qQ)()]),this.initializeElements(),!this.containerEl)throw new we.Z("Container not found.",r.i.Verbose);this.initializeListeners(),this.initializeElementsListeners(),this.sessionManager.isFromProfile()||this.handleDisplay(),this.sessionManager.onUserChanged().then((()=>this.handleDisplay()))}handleDisplay(){this.didomi?.getLibrary().notice.isVisible()?this.hide():this.consentManager.hasConsentedForCookies().then((e=>{e||this.isUserPremium()?this.hide():(Se.debug("User has not consented to cookies, nor is premium: showing cookie wall."),this.show())}))}hide(){this.containerEl?(0,s.pn)(this.containerEl)&&(this.containerEl.classList.add("hidden"),delete document.body.style.marginBottom,Se.debug("Hidden.")):Se.log("Container element does not exist.")}show(){this.containerEl?(0,s.pn)(this.containerEl)||(this.containerEl.classList.remove("hidden"),document.body.style.marginBottom=this.containerEl.offsetHeight+"px",Se.debug("Shown.")):Se.warn("Container element does not exist.")}initializeElements(){this.containerEl=document.querySelector(this.cssSelector),this.containerEl&&(this.agreeBtnEl=this.containerEl.querySelector(".button-agree"))}initializeElementsListeners(){this.agreeBtnEl?.addEventListener("click",(e=>{e.preventDefault(),this.didomi.getLibrary().setUserAgreeToAll(),this.hide()}))}initializeListeners(){this.didomi.on(h.H_.NOTICE_SHOWN,(()=>{this.hide()})),this.didomi.on(h.H_.NOTICE_HIDDEN,(async()=>{await(0,l.X_)(5),this.handleDisplay()})),this.didomi.on(h.H_.CONSENT_CHANGED,(()=>{this.handleDisplay()}))}isUserPremium(){return!0===this.sessionManager.getUser()?.subscriptionsData?.isPremium}}).prototype,"initialize",[fe],Object.getOwnPropertyDescriptor(ye.prototype,"initialize"),ye.prototype),be=ye))||be);var ke,Le,Ce,ze;const Pe=new r.Z("DrawerMenu"),Oe=":popover-open, .\\:popover-open";function Ae(e){return!e.hidden&&"none"!==window.getComputedStyle(e).display}let De=(ke=(0,o.QM)("DrawerMenu"),Le=(0,o.sy)(Pe),ke((function(e,t,i,s,n){var r={};
1Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((ze=class extends o.wc{panelStack=[];async initialize(){const[e]=await Promise.all([(0,o.r9)($.Z),(0,s.qQ)()]);this.initializeElements(),void 0!==this.elements?(this.elements.drawer.tabIndex=-1,this.syncTriggerExpanded(this.elements.drawer.matches(Oe)?"open":"closed"),this.resetPanels(),this.listen(),e.onUser((()=>this.hideEmptySubMenus()),(()=>this.hideEmptySubMenus()))):Pe.debug("No drawer menu on this page.")}initializeElements(){const e=(0,s.cw)(".drawer-menu[popover]");if(null===e)return;const t=[],i=(0,s.$3)(".drawer-menu-item--sub_menu [data-drawer-panel]",e).reverse();for(const e of i){const i=e.closest(".drawer-menu-item"),n=e.dataset.drawerPanel,r=void 0===n?null:(0,s.sb)(n);null!==i&&t.push({item:i,leafItems:null===r?[]:(0,s.$3)(".drawer-menu-item:not(.drawer-menu-item--group)",r),panel:r,trigger:e})}this.elements={drawer:e,panels:(0,s.$3)(".drawer-menu-panel",e),rootPanel:(0,s.cw)(".drawer-menu-panel--root",e),subMenus:t,trigger:""===e.id?null:(0,s.cw)(`[popovertarget="${CSS.escape(e.id)}"]`)}}syncTriggerExpanded(e){this.elements.trigger?.setAttribute("aria-expanded","open"===e?"true":"false")}listen(){const{drawer:e}=this.elements;e.addEventListener("beforetoggle",(e=>{"open"===e.newState&&this.resetPanels()})),e.addEventListener("toggle",(e=>{this.syncTriggerExpanded(e.newState),"open"===e.newState&&(this.hideEmptySubMenus(),this.focusPanel(this.activePanel()))})),e.addEventListener("click",(e=>this.onClick(e))),document.addEventListener("keydown",(e=>this.onKeyDown(e)),!0)}onClick(e){if(!(e.target instanceof Element))return;const t=e.target.closest("[data-drawer-panel]");return null!==t?(e.preventDefault(),void this.pushPanel(this.subMenuFor(t)?.panel??null)):null!==e.target.closest("[data-drawer-back]")?(e.preventDefault(),void this.popPanel()):void(null!==e.target.closest("a[href]")&&this.elements.drawer.hidePopover())}onKeyDown(e){if(this.elements.drawer.matches(Oe))return"Escape"===e.key&&this.panelStack.length>1?(e.preventDefault(),e.stopPropagation(),void this.popPanel()):void("Tab"===e.key&&this.trapFocus(e))}trapFocus(e){const{drawer:t}=this.elements,i=this.focusableElements(t),s=i[0],n=i[i.length-1];return void 0===s?(e.preventDefault(),void t.focus()):!e.shiftKey||document.activeElement!==s&&document.activeElement!==t?void(e.shiftKey||document.activeElement!==n||(e.preventDefault(),s.focus())):(e.preventDefault(),void n.focus())}pushPanel(e){null===e||this.panelStack.includes(e)||(this.panelStack.push(e),this.settlePanels(),this.focusPanel(e))}popPanel(){if(this.panelStack.length<2)return;const e=this.panelStack.pop();this.settlePanels(),this.focusPanel(this.activePanel(),this.triggerFor(e))}resetPanels(){const{rootPanel:e}=this.elements;this.panelStack=null===e?[]:[e],this.settlePanels()}settlePanels(){const e=this.activePanel();for(const s of this.elements.panels)s.classList.toggle("is-active",s===e),s.classList.toggle("is-stacked-left",s!==e&&this.panelStack.includes(s)),i=s!==e,(t=s).toggleAttribute("inert",i),i?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");var t,i}activePanel(){return this.panelStack[this.panelStack.length-1]??null}focusPanel(e,t=null){if(null===e)return;(null!==t&&e.contains(t)?t:this.focusableElements(e)[0]??e).focus({preventScroll:!0})}focusableElements(e){return(0,s.$3)('a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])',e).filter((e=>e.tabIndex>=0&&!e.matches(":disabled")&&null===e.closest("[inert]")&&(0,s.pn)(e)))}hideEmptySubMenus(){for(const e of this.elements.subMenus)e.item.hidden=null===e.panel||!e.leafItems.some(Ae)}subMenuFor(e){return this.elements.subMenus.find((t=>t.trigger===e))}triggerFor(e){return this.elements.subMenus.find((t=>t.panel===e))?.trigger??null}}).prototype,"initialize",[Le],Object.getOwnPropertyDescriptor(ze.prototype,"initialize"),ze.prototype),Ce=ze))||Ce);var _e=i(5547);const Te=JSON.parse('{"s":"https://cdn.first-id.fr/sdk/loader/loader.min.js"}');var Ie,Ue,Me,qe,Re;const xe="csnt",He=new r.Z("FirstId"),Fe=window.location.hostname.replace(/^www\./,""),Ne=(0,_e.$)(Fe);let Be=(Ie=(0,o.QM)("FirstId"),Ue=(0,o.Lm)(L.l.FIRST_ID),Me=(0,o.sy)(He),Ie(qe=Ue(qe=(0,o.$v)((function(e,t,i,s,n){var r={};
1Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((Re=class extends o.wc{sdkConfig={callbacks:[],cookieDomain:Fe,cookieName:"firstid",emailCookieName:"fid_email_hashed",cookieNameTTLInMinute:259200,debug:Te.debug??!1,emailHashed:null,refreshCookieName:"firstid_refresh"};firstIdValue=null;async initialize(){if(L.Z.isEnabled(L.l.FIRST_ID))if([this.consentManager,this.sessionManager]=await Promise.all([(0,o.r9)(u.ZP),(0,o.r9)($.Z)]),window.addEventListener(u.Rk.RELOAD_AFTER_CONSENT,(e=>{L.Z.isEnabled(L.l.FIRST_ID)&&this.consentManager.hasConsented()&&this.consentManager.isFirstSession()&&(He.debug(`Reloading page with "${xe}" query param appended.`),e.detail.url.searchParams.set(xe,(new Date).getTime().toString(16)))})),this.consentManager.hasConsented()&&!await!this.consentManager.hasConsentedForCookies())if(Ne.get(this.sdkConfig.cookieName))try{this.sdk=await this.loadScript(),He.debug(`First-id value is "${this.getFirstIdValue()}".`)}catch(e){He.error("Can't load script.",{error:e})}else He.warn(`Script will not be loaded because "${this.sdkConfig.cookieName}" cookie was not found.`);else He.warn("Script will not be loaded because user has not consented to cookies.");else He.log("First-id feature is disabled.")}getFirstIdValue(){if(!this.firstIdValue)try{this.firstIdValue=this.sdk?.getId()}catch(e){"FirstIdCookieNotFound"===e.code?He.error("Cookie not found.",e):"FirstIdEmptyValue"===e.code?He.error("Cookie was found, but the value is empty.",e):He.error("Unknown error.",e)}return this.firstIdValue}async loadScript(){const{promise:e,resolve:t,reject:i}=(0,l.Bw)();this.sdkConfig.callbacks.unshift((()=>{t(new window.FirstIdSdk),He.debug("SDK initialized.")})),this.sdkConfig.callbacks.unshift((()=>{He.debug("SDK script loaded.")})),window.firstId={...window.firstId||{},...this.sdkConfig};try{await(0,n.SH)(Te.s),He.debug("Loader script loaded.")}catch(e){He.error(e),i(new Error("Loader script can't be loaded."))}return e}async handleEmail(e){const t=await this.hashEmail(e);this.sdkConfig.emailHashed===t||Ne.get(this.sdkConfig.emailCookieName)===t||this.sdk&&this.sdk.getEmailHashed()===t?He.debug("Hashed email is already set."):(He.debug(`Hashed email is "${t}"`),this.setCookie(this.sdkConfig.emailCookieName,t),this.sdk?(await this.sdk.setEmailHashed(t),He.debug(`First-id value is "${this.getFirstIdValue()}".`)):this.sdkConfig.emailHashed=t)}async hashEmail(e){const t=(new TextEncoder).encode(e),i=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(i)).map((e=>e.toString(16).padStart(2,"0"))).join("")}setCookie(e,t){He.debug(`Setting cookie "${e}" to "${t}".`),Ne.set(e,t,{path:"/",domain:this.sdkConfig.cookieDomain,secure:"https"===window.location.protocol,expires:180})}}).prototype,"initialize",[Me],Object.getOwnPropertyDescriptor(Re.prototype,"initialize"),Re.prototype),qe=Re))||qe)||qe)||qe);const je=i.g.localStorage,Ze=new r.Z("ExpirableStorage");function $e(e){if(function(e){let t;const i=je.getItem(e);if(null===i)return!1;try{t=JSON.parse(i)}catch(t){return Ze.warn(`Failed to parse expirable item with key "${e}".`,{item:i}),!1}if(!Qe(t))return Ze.warn("Item is not an expirable object structure.",{item:t}),!1;return Date.now()>t.expiration}(e))return Ze.debug(`Item with key "${e}" has expired, it has been removed.`),je.removeItem(e),null;const t=je.getItem(e);return null===t?null:function(e){let t;try{t=JSON.parse(e)}catch(t){return Ze.warn("Failed to parse expirable item.",{item:e}),null}if(!Qe(t))return Ze.warn("Item is not an expirable object structure.",{item:t}),null;return t}(t)?.value}function Qe(e){return"object"==typeof e&&"value"in e&&"expiration"in e&&"number"==typeof e.expiration}var We,Ve,Ge,Ke;const Je=new r.Z("HotTag.Stories"),Xe="hotTags.shown";let Ye=(We=(0,o.QM)("HotTag.Stories"),Ve=(0,o.sy)(Je),We((Ke=class extends o.wc{constructor(e){super(),this.block=e,this.slides=(0,s.$3)(".carousel-item",e)}async initialize(){for(const e of this.slides){if(!(null!==e&&e.hasAttribute("href")&&e.getAttribute("href").startsWith("#")&&"contentId"in e.dataset&&e instanceof HTMLAnchorElement))continue;if(this.isAlreadyShown(e.dataset.contentId)){e.classList.add("shown");continue}const t=(0,s.cw)(e.getAttribute("href"));if(null===t){Je.warn("Carousel not found.",e.getAttribute("href"));continue}const i=t.closest(".carousel-stories-modal-container"),n=t=>{const s=t.detail;s.position===s.slidesNumber-1&&(this.setShown(e.dataset.contentId),e.classList.add("shown"),i.removeEventListener("slide.displayed",n))};i?.addEventListener("slide.displayed",n)}}getShowns(){return this.deserialize($e(Xe)??{})}setShown(e){const t=this.getShowns(),i=(0,s.cw)('link[rel="canonical"]')?.href,n=i?new URL(i).pathname:window.location.pathname;var r,a,o;
1n in t||(t[n]=new Map),t[n].set(e,new Date),Je.debug("Hot tag shown.",e),r=Xe,a=this.serialize(t),o=2592e3,je.setItem(r,JSON.stringify({value:a,expiration:o instanceof Date?o.getTime():Date.now()+1e3*o}))}isAlreadyShown(e){const t=this.getShowns(),i=(0,s.cw)('link[rel="canonical"]')?.href;return(t[i?new URL(i).pathname:window.location.pathname]??new Map).has(e)}deserialize(e){const t={};for(const[i,s]of Object.entries(e))t[i]=new Map(Object.entries(s).map((([e,t])=>[e,new Date(t)])));return t}serialize(e){const t={};for(const[i,s]of Object.entries(e))t[i]=Object.fromEntries(Array.from(s.entries()).map((([e,t])=>[e,t.getTime()])));return t}},function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}(Ke.prototype,"initialize",[Ve],Object.getOwnPropertyDescriptor(Ke.prototype,"initialize"),Ke.prototype),Ge=Ke))||Ge),et=function(e){return e[e.STOPPED=0]="STOPPED",e[e.RUNNING=1]="RUNNING",e[e.PAUSED=2]="PAUSED",e}({});class tt{constructor(e,t){if(this.start=e,this.end=t,e>t)throw new Error(`The start date "${e.toISOString()}" must be before the end date "${t.toISOString()}".`)}getDuration(){return this.end.getTime()-this.start.getTime()}}class it{current=null;eventEmitter=new ue.Z;status=et.STOPPED;timeRanges=[];getCumulatedDuration(){return this.timeRanges.reduce(((e,t)=>e+t.getDuration()),0)}getStatus(){return this.status}getTimeRanges(){return this.timeRanges}on(e,t){return this.eventEmitter.on(e,t),this}pause(){if(this.status!==et.RUNNING)return;const e=new tt(this.current,new Date);this.status=et.PAUSED,this.timeRanges.push(e),this.current=null,this.eventEmitter.emit("pause",e)}reset(){this.status===et.RUNNING&&this.timeRanges.push(new tt(this.current,new Date));const e=this.timeRanges;this.current=null,this.timeRanges=[],this.status=et.STOPPED,this.eventEmitter.emit("reset",e)}start(){this.status!==et.RUNNING&&(this.current=new Date,this.status=et.RUNNING,this.eventEmitter.emit("start",this.current))}stop(){this.status!==et.STOPPED&&(this.status===et.RUNNING&&this.timeRanges.push(new tt(this.current,new Date)),this.current=null,this.status=et.STOPPED,this.eventEmitter.emit("stop",(0,de.at)(this.timeRanges,-1)))}}function st(e){let t=new Date;t.setHours(0,0,0,0);let i=new Date(t.getTime()-24*e*60*60*1e3);return Math.floor(i.getTime()/1e3)}var nt,rt,at,ot,lt=i(6335);const ct=new r.Z("PageDurationTracking");let dt=(nt=(0,o.QM)("PageDurationTracking"),rt=(0,o.sy)(ct),nt((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((ot=class extends o.wc{stopWatch=new it;async initialize(){L.Z.isEnabled(L.l.PAGE_DURATION_TRACKING)?(this.initializeStopWatchListeners(),this.initializeWindowListeners()):ct.log("Page duration tracking feature is disabled.")}initializeStopWatchListeners(){this.stopWatch.on("start",(e=>{ct.debug("Page in foreground.")})).on("pause",(e=>{ct.debug("Page sent to background.","Duration time: "+(e.getDuration()/1e3).toFixed(1)+"s"),(0,lt.be)("unloadPage",{cumulatedTimeOnPage:this.stopWatch.getCumulatedDuration(),timeOnPage:e.getDuration(),typeUnload:"hidden"})})).on("stop",(e=>{ct.debug("Page unload.","Duration time: "+(e.getDuration()/1e3).toFixed(1)+"s"),(0,lt.be)("unloadPage",{cumulatedTimeOnPage:this.stopWatch.getCumulatedDuration(),timeOnPage:e.getDuration(),typeUnload:"beforeunload"})}))}initializeWindowListeners(){window.addEventListener("visibilitychange",(e=>{"visible"===document.visibilityState?this.stopWatch.start():this.stopWatch.pause()})),window.addEventListener("beforeunload",(e=>{et.STOPPED!==this.stopWatch.getStatus()||0!==this.stopWatch.getTimeRanges().length?this.stopWatch.stop():(0,lt.be)("unloadPage",{cumulatedTimeOnPage:0,timeOnPage:0,typeUnload:"beforeunload"})})),"visible"===document.visibilityState&&this.stopWatch.start()}}).prototype,"initialize",[rt],Object.getOwnPropertyDescriptor(ot.prototype,"initialize"),ot.prototype),at=ot))||at);var ut=i(9018);let ht=function(e){return e.ANONYMOUS="anonyme",e.SUBSCRIBED="inscrit",e.PREMIUM="abonné",e}({});var pt,mt,gt,ft,bt=i(5143);const yt=new r.Z("Typeform");let vt=(pt=(0,o.QM)("Typeform"),mt=(0,o.sy)(yt),pt((function(e,t,i,s,n){var r={};
1Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((ft=class extends o.wc{customPopupHiddenFieldsOption={};async initialize(){[this.sessionManager]=await Promise.all([(0,o.r9)($.Z),(0,s.qQ)()]),this.popupContainer=(0,s.sb)("typeformEmbed"),this.container=(0,s.sb)("custom-typeform"),null!==this.container&&null!==this.popupContainer?(this.configuration={...this.configuration,...this.buildConfigFromDataAttributes()},await this.configureHiddenFieldsOption(),void 0===this.configuration.retryHours&&0===this.configuration.retryHours||this.checkUserHasNotAnsweredAndClosedTypeform(),this.checkUserHasAlreadyAnswered()||(this.openPopupButton=this.container.querySelector(".custom-typeform-button"),this.openPopupButton?.classList.remove("hidden"),this.initializeListeners(),this.configurePopup(this.configuration.typeformId))):yt.warn("Typeform container or popup container not found.")}initializeListeners(){this.linkOpenTypeform=this.container.querySelector(".custom-typeform-text"),this.closeTypeformButton=this.container.querySelector(".custom-typeform-close"),this.linkOpenTypeform?.addEventListener("click",(()=>this.openTypeformPopup())),this.closeTypeformButton?.addEventListener("click",(()=>this.closeTypeform()))}checkUserHasNotAnsweredAndClosedTypeform(){let e=localStorage.getItem("typeform-"+this.configuration.typeformId+"-closed-at");if(e){let t=new Date(e);((new Date).getTime()-t.getTime())/36e5>=this.configuration.retryHours&&(localStorage.removeItem("typeform-"+this.configuration.typeformId+"-closed-at"),localStorage.removeItem("typeform-answered-"+this.configuration.typeformId))}}async setUserType(){let e=ht.ANONYMOUS;const t=this.sessionManager.onUserLoaded();t.then((async t=>{t.subscriptionsData.isPremium?e=ht.PREMIUM:!0===t.activeSession&&(e=ht.SUBSCRIBED)})),await Promise.race([this.sessionManager.onUserFailed(),t]),this.customPopupHiddenFieldsOption={user_type:e}}async configureHiddenFieldsOption(){void 0!==this.configuration.hiddenFields&&null!==this.configuration.hiddenFields.length&&(this.configuration.hiddenFields.includes("user_t
1ype")&&await this.setUserType(),this.configuration.hiddenFields.includes("is_app")&&this.setIsApp(),this.configuration.hiddenFields.includes("is_webmobile")&&this.setIsWebMobile(),this.configuration.hiddenFields.includes("current_url")&&this.setCurrentUrl())}setIsApp(){this.customPopupHiddenFieldsOption={...this.customPopupHiddenFieldsOption,is_app:bt.Z.isWebview()?"yes":"no"}}setIsWebMobile(){this.customPopupHiddenFieldsOption={...this.customPopupHiddenFieldsOption,is_webmobile:(0,n.s2)()?"yes":"no"}}setCurrentUrl(){this.customPopupHiddenFieldsOption={...this.customPopupHiddenFieldsOption,current_url:window.location.href}}configurePopup(e="DfMKD4DE"){const t={container:this.popupContainer,hideHeaders:!0,hidden:this.customPopupHiddenFieldsOption,onSubmit:()=>this.onSubmitTypeform()};this.popup=(0,ut.createPopup)(this.configuration.typeformId,t)}openTypeformPopup=()=>{this.popup.open(),this.popupContainer.classList.add("open"),this.openPopupButton.classList.add("hidden"),this.writeUserAnsweredInLocalStorage()};closeTypeform(){this.openPopupButton.classList.add("hidden"),this.writeUserAnsweredInLocalStorage(),this.writeUserCloseDate(),this.popupContainer.classList.remove("open"),this.popup.close()}async onSubmitTypeform(){await(0,l.X_)(1e3),this.popupContainer.classList.remove("open"),this.popup.close()}checkUserHasAlreadyAnswered(){return"true"===localStorage.getItem("typeform-answered-"+this.configuration.typeformId)}writeUserAnsweredInLocalStorage(){localStorage.setItem("typeform-answered-"+this.configuration.typeformId,"true")}writeUserCloseDate(){localStorage.setItem("typeform-"+this.configuration.typeformId+"-closed-at",(new Date).toISOString())}buildConfigFromDataAttributes(){const e={},t=(0,s.sb)("custom-typeform");return void 0===t?.dataset?(yt.warn("No data attributes found on container."),e):("typeformId"in t.dataset&&(e.typeformId=t.dataset.typeformId),"hiddenFields"in t.dataset&&(e.hiddenFields=t.dataset.hiddenFields),"retryHours"in t.dataset&&(e.retryHours=Number.parseInt(t.dataset.retryHours)),e)}}).prototype,"initialize",[mt],Object.getOwnPropertyDescriptor(ft.prototype,"initialize"),ft.prototype),gt=ft))||gt);var wt=i(9567),St=i(1488);const Et=[{name:"Agen",insee:"47001",postalCode:"47000",url:"/lot-et-garonne/agen/",gps:{lat:44.203142,lon:.616363}},{name:"Angoulême",insee:"16015",postalCode:"16000",url:"/charente/angouleme/",gps:{lat:45.6458,lon:.145}},{name:"Arcachon",insee:"33009",postalCode:"33120",url:"/gironde/arcachon/",gps:{lat:44.6589,lon:-1.16355}},{name:"Bayonne",insee:"64102",postalCode:"64100",url:"/pyrenees-atlantiques/bayonne/",gps:{lat:43.493337,lon:-1.47599}},{name:"Bergerac",insee:"24037",postalCode:"24100",url:"/dordogne/bergerac/",gps:{lat:44.8519,lon:.4883}},{name:"Biarritz",insee:"64122",postalCode:"64200",url:"/pyrenees-atlantiques/biarritz/",gps:{lat:43.471,lon:-1.5562}},{name:"Bordeaux",insee:"33063",postalCode:"33000",url:"/gironde/bordeaux/",gps:{lat:44.837789,lon:-.57918}},{name:"Dax",insee:"40088",postalCode:"40100",url:"/landes/dax/",gps:{lat:43.7167,lon:-1.05}},{name:"Langon",insee:"33227",postalCode:"33210",url:"/gironde/langon/",gps:{lat:44.5355,lon:-.2422}},{name:"La Rochelle",insee:"17300",postalCode:"17000",url:"/charente-maritime/la-rochelle/",gps:{lat:46.159112,lon:-1.152043}},{name:"Lesparre-Médoc",insee:"33240",postalCode:"33340",url:"/gironde/lesparre-medoc/",gps:{lat:45.2796,lon:-.9235}},{name:"Libourne",insee:"33243",postalCode:"33500",url:"/gironde/libourne/",gps:{lat:44.9167,lon:-.233333}},{name:"Marmande",insee:"47157",postalCode:"47200",url:"/lot-et-garonne/marmande/",gps:{lat:44.5014,lon:.1689}},{name:"Mont-de-Marsan",insee:"40192",postalCode:"40000",url:"/landes/mont-de-marsan/",gps:{lat:43.8931,lon:-.5009}},{name:"Oloron-Sainte-Marie",insee:"64422",postalCode:"64400",url:"/pyrenees-atlantiques/oloron-sainte-marie/",gps:{lat:43.1679,lon:-.5954}},{name:"Orthez",insee:"64430",postalCode:"64300",url:"/pyrenees-atlantiques/orthez/",gps:{lat:43.4945,lon:-.7777}},{name:"Pau",insee:"64445",postalCode:"64000",url:"/pyrenees-atlantiques/pau/",gps:{lat:43.2951,lon:-.370797}},{name:"Périgueux",insee:"24322",postalCode:"24000",url:"/dordogne/perigueux/",gps:{lat:45.1833,lon:.716667}}
1,{name:"Rochefort",insee:"17299",postalCode:"17300",url:"/charente-maritime/rochefort/",gps:{lat:45.9455,lon:-.9745}},{name:"Royan",insee:"17306",postalCode:"17200",url:"/charente-maritime/royan/",gps:{lat:45.6343,lon:-1.0127}},{name:"Saintes",insee:"17415",postalCode:"17100",url:"/charente-maritime/saintes/",gps:{lat:45.7462,lon:-.6456}},{name:"Saint-Jean-de-Luz",insee:"64483",postalCode:"64500",url:"/pyrenees-atlantiques/saint-jean-de-luz/",gps:{lat:43.3934,lon:-1.6337}},{name:"Villeneuve-sur-Lot",insee:"47323",postalCode:"47300",url:"/lot-et-garonne/villeneuve-sur-lot/",gps:{lat:44.4183,lon:.7484}}];var kt,Lt,Ct,zt,Pt=i(8698);const Ot=new r.Z("UserCitySelection");let At=(kt=(0,o.QM)("UserCitySelection"),Lt=(0,o.sy)(Ot),kt((zt=class extends o.wc{currentSuggestions=[];recentCities=[];async initialize(){await(0,s.qQ)(),this.modal=(0,s.sb)("user-city-selection-modal"),null!==this.modal?(this.editButton=(0,s.sb)("user-city-selection"),this.userCityHtml=(0,s.sb)("user-city"),this.suggestionListHtml=this.modal.querySelector(".user-city-suggestions"),this.closeButton=this.modal.querySelector("dialog .close-user-city-selection"),this.suggestionListTitle=this.modal.querySelector(".suggest-title"),this.userCityBlockEditButton=(0,s.sb)("user-city-block-button"),"#userCitySelection"===window.location.hash&&this.modal?.showModal(),this.retrieveRecentCityConfiguration(),await this.retrieveUserCity(),this.initializeSearch(),this.initializeCurrentSuggestions(),this.initializeListeners(),this.initializeDefaultCities()):Ot.debug("No user-city-selection-modal found")}initializeSearch(){this.input=this.modal.querySelector(".user-city-selection-input"),null!==this.input?this.input.focus():Ot.debug("No city search modal found")}initializeListeners(){this.editButton?.addEventListener("click",(()=>this.openModal())),this.userCityBlockEditButton?.addEventListener("click",(()=>this.openModal())),this.closeButton?.addEventListener("click",(()=>this.closeModal())),this.modal?.addEventListener("click",(e=>{const t=e.target;t.classList.contains("user-city-suggestion")&&(this.currentCity=[...this.currentSuggestions,...Et].find((e=>e.insee===t.dataset.insee)),this.updateHeaderView(),this.storeUserCity(),window.dispatchEvent(new CustomEvent(Pt.T.USER_CITY_UPDATED,{detail:{currentCity:this.currentCity}})),this.recentCities=this.recentCities.filter((e=>e.insee!==t.dataset.insee)),this.updateRecentCities(),this.clearInput(),this.currentSuggestions=this.recentCities,this.updateSuggestionView(),this.closeModal()),t.classList.contains("remove-suggestion")&&(this.recentCities=this.recentCities.filter((e=>e.insee!==t.dataset.insee)),this.storeRecentCities(),this.currentSuggestions=this.recentCities,this.updateSuggestionView())})),this.input.addEventListener("keydown",(async e=>{"Enter"===e.key&&this.input.value.length>=2&&(this.currentCity=this.currentSuggestions[0],this.updateHeaderView(),this.storeUserCity(),window.dispatchEvent(new CustomEvent(Pt.T.USER_CITY_UPDATED,{detail:{currentCity:this.currentCity}})),this.recentCities=this.recentCities.filter((e=>e.insee!==this.currentCity.insee)),this.updateRecentCities(),this.clearInput(),this.currentSuggestions=this.recentCities,this.updateSuggestionView(),this.closeModal()),this.input.value.length>=2?(this.suggestionListHtml.innerHTML="",await this.citySearch(this.input)):(this.currentSuggestions=this.recentCities,this.updateSuggestionView())})),window.addEventListener("hashchange",(()=>{"#userCitySelection"===window.location.hash&&this.modal?.showModal()}))}initializeDefaultCities(){let e="";Et.forEach((t=>e+=Dt(t))),this.modal.querySelector(".default-cities-suggestions").innerHTML=e}async citySearch(e){const t=await wt.iX.search(e.value);let i=[];t.forEach((e=>{i.push({name:e.nom,insee:e.insee,url:`/${(0,St.lV)(e.departement.nom)}/${(0,St.lV)(e.nom)}/`,postalCode:e.code_postal[0],gps:{lat:e.centre.coordinates[1],lon:e.centre.coordinates[0]}})})),this.currentSuggestions=i,this.updateSuggestionView(!0),0===this.currentSuggestions.length&&(this.suggestionListHtml.innerHTML='<li class="no-result">Aucun résultat ne correspond à votre recherche.</li>')}updateHeaderView(){this.userCityHtml.innerText=this.currentCity.name,this.userCityHtml.href=this.currentCity.url,this.editButton.innerText=""}updateRecentCities(){this.recentCities.length>=3&&this.recentCities.pop(),this.recentCities.unshift(this.currentCity),this.storeRecentCities()}initializeCurrentSuggestions(){this.recentCities.length>3&&(this.recentCities=this.recentCities.slice(0,3)),this.currentSuggestions=this.recentCities,this.updateSuggestionView()}updateSuggestionView(e=!1){let t="";this.currentSuggestions.forEach((i=>{t+=Dt(i,!e)})),this.modal.querySelector(".default-cities-container").classList.toggle("hidden",e),this.suggestionListHtml.innerHTML=t,this.suggestionListTitle.innerText=e?"Résultats de recherche":"Recherches récentes",0===this.currentSuggestions.length&&(this.suggestionListTitle.innerText="")}openModal(){this.modal?.showModal()}closeModal(){this.modal?.close()}storeUserCity(){localStorage.setItem("user-city",JSON.stringify(this.currentCity))}storeRecentCities(){localStorage.setItem("user-city-recent",JSON.stringify(this.recentCities))}retrieveRecentCityConfiguration(){this.recentCities=JSON.parse(localStorage.getItem("user-city-recent"))??[]}clearInput(){this.input.value=""}async retrieveUserCity(){this.currentCity=JSON.parse(localStorage.getItem("user-city")),null!==this.currentCity&&((0,St.lV)(this.currentCity.url)!==this.currentCity.url&&(this.currentCity.url=(0,St.lV)(this.currentCity.url)),this.updateHeaderView(),this.storeUserCity(),window.dispatchEvent(new CustomEvent(Pt.T.USER_CITY_UPDATED,{detail:{currentCity:this.currentCity}})))}},function(e,t,i,s,n){var r={};
1Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}(zt.prototype,"initialize",[Lt],Object.getOwnPropertyDescriptor(zt.prototype,"initialize"),zt.prototype),Ct=zt))||Ct);function Dt(e,t=!1){return`\n <li>\n <span class="user-city-suggestion" data-insee="${e.insee}">${e.name} (${e.postalCode})</span>\n ${t?`<span class="remove-suggestion ico ico-close" data-insee="${e.insee}"></span>`:""}\n </li>\n `}var _t,Tt,It,Ut;const Mt=new r.Z("UserCityBlock");let qt=(_t=(0,o.QM)("UserCityBlock"),Tt=(0,o.sy)(Mt),_t((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((Ut=class extends o.wc{async initialize(){await(0,s.qQ)(),this.block=(0,s.sb)("user-city-block"),await this.initializeListeners()}addLoadingEffect(){let e=document.createElement("div");e.classList.add("loading-effect"),e.id="user-city-block-loader",this.block.prepend(e)}initializeListeners(){window.addEventListener(Pt.T.USER_CITY_UPDATED,(async e=>{this.currentCity=e.detail.currentCity,null!==this.block&&await this.updateRender()}))}
1async updateRender(){if(Mt.log("UserCityBlock updateRender"),null!==this.currentCity){this.renderParams={pageUrl:this.currentCity.url,identifier:"user-city-block",configuration:{cells:{1:{type:"article"},2:{type:"article"},3:{type:"article"},4:{type:"pub",identifier:"pub_dfp_publi_info_loc"},5:{type:"article"}}}};try{this.addLoadingEffect();let e=document.createElement("div");e.innerHTML=await wt.VV.getThematicBlockRender(this.renderParams);const t=e.querySelector(".main-article-block"),i=e.querySelectorAll("div.thematic-block-content .other-article-blocks a:has(article.article-card)"),s=e.querySelector(".thematic-block-header-title"),n=this.block.querySelector(".main-article-block"),r=this.block.querySelectorAll("div.thematic-block-content .other-article-blocks a:has(article.article-card)");this.block.querySelector(".thematic-block-header-title").replaceWith(s),n.replaceWith(t),r.forEach(((e,t)=>{r[t].replaceWith(i[t])})),this.removeLoadingEffect()}catch(e){Mt.error("Error while fetching fallback content.",e)}}}removeLoadingEffect(){let e=document.getElementById("user-city-block-loader");e?.remove()}}).prototype,"initialize",[Tt],Object.getOwnPropertyDescriptor(Ut.prototype,"initialize"),Ut.prototype),It=Ut))||It);var Rt,xt,Ht,Ft,Nt=i(4106);const Bt=new r.Z("UserDepartmentBlock");let jt=(Rt=(0,o.QM)("UserDepartmentBlock"),xt=(0,o.sy)(Bt),Rt((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((Ft=class extends o.wc{block=null;renderParams=null;async initialize(){await(0,s.qQ)(),this.initializeListeners()}initializeListeners(){window.addEventListener(Pt.T.USER_CITY_UPDATED,(async e=>{if(null===this.block)return;this.currentCity=e.detail.currentCity;let t=Nt[(0,St.Ew)(this.currentCity.url)];this.currentDepartment!==t&&(this.currentDepartment=t,this.renderParams.pageUrl=this.currentDepartment.url,await this.updateRender())})),window.addEventListener("gsoi.async.department_block.load",(async()=>{if(this.currentCity=JSON.parse(localStorage.getItem("user-city"))??null,this.currentDepartment=Nt[(0,St.Ew)(this.currentCity?.url??"")]??Nt.default,this.block=(0,s.sb)("user-city-department-block"),null===this.block)return void Bt.warn("User department block element not found.");this.renderParams={pageUrl:this.currentDepartment.url,identifier:"user-city-department-block",template:"map_embed_block"};let e=document.createElement("div");e.innerHTML=await wt.VV.getThematicBlockRender(this.renderParams),e.querySelector("a").href="/carte/?lat="+this.currentDepartment.center.lat+"&lng="+this.currentDepartment.center.lng+"&zoom="+this.currentDepartment.zoom,this.block.innerHTML=e.innerHTML,window.dispatchEvent(new CustomEvent("gsoi.async.map_embed.load"))}))}
1async updateRender(){if(null!==this.currentCity)try{this.addLoadingEffect();let e=document.createElement("div");e.innerHTML=await wt.VV.getThematicBlockRender(this.renderParams);const t=this.block.querySelector(".thematic-block-header-title"),i=e.querySelector(".thematic-block-header-title");i.querySelector("a").href="/carte/?lat="+this.currentDepartment.center.lat+"&lng="+this.currentDepartment.center.lng+"&zoom="+this.currentDepartment.zoom,t.replaceWith(i);const s=e.querySelectorAll("div.thematic-block-content .other-article-blocks a:has(article.article-card)"),n=this.block.querySelectorAll("div.thematic-block-content .other-article-blocks a:has(article.article-card)");n.forEach(((e,t)=>{n[t].replaceWith(s[t])})),this.removeLoadingEffect()}catch(e){Bt.error("Error while fetching fallback content.",e)}}addLoadingEffect(){let e=document.createElement("div");e.classList.add("loading-effect"),e.id="user-department-block-loader";let t=this.block;t?.appendChild(e)}removeLoadingEffect(){let e=document.getElementById("user-department-block-loader");e?.remove()}}).prototype,"initialize",[xt],Object.getOwnPropertyDescriptor(Ft.prototype,"initialize"),Ft.prototype),Ht=Ft))||Ht),Zt=function(e){return e[e.SUGGESTION=0]="SUGGESTION",e[e.HISTORY=1]="HISTORY",e}({}),$t=function(e){return e.CLEAR="clear",e.DO_SEARCH="do_search",e.SEARCH="search",e.SEARCH_RESULTS="search_results",e}({});function Qt(e,t,i={}){const s=Gt("li"),n=Gt("p");switch(s.classList.add("suggestion-item"),s.setAttribute("data-value",e),n.classList.add("suggestion-label"),n.innerHTML=t,i.type){case Zt.HISTORY:Vt(s,Wt("history")),s.classList.add("history-item");break;case Zt.SUGGESTION:Vt(s,Wt("search"))}if(Vt(s,n),i.deleteAction){const t=function(e,t,i){const s=Gt("button");return s.classList.add("action",`action-${e}`,"ico",`ico-${t}`),s.title=i,s.setAttribute("aria-label",i),s}("delete","cross","Supprimer de l'historique");t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),s.dispatchEvent(new CustomEvent("action.delete",{detail:{value:e}}))})),Vt(s,t)}return s}function Wt(e,...t){const i=Gt("span");return i.classList.add("ico",`ico-${e}`,...t),i}function Vt(e,t){e.insertAdjacentElement("beforeend",t)}function Gt(e){return document.createElement(e)}const Kt={page:1,page_size:20,query:""};function Jt(e){const t=(0,s.cw)(".hot-tags",e);t&&(0,o.s8)(ee.Z,t)}function Xt(e){return null!=e&&"filtersOpened"in e&&"params"in e}function Yt(e,t){if(!e.trim().length)return t;const i=(0,St._U)(e),s=new RegExp(`(${i})`,"gi");return t.match(s)?t.replace(s,'<span class="highlight">$1</span>'):t}var ei=i(9225),ti=i(9642),ii=i(2226);const si=new r.Z("Client.Search");const ni=new class{pendingRequests=new Map;async autocomplete(e){return await(0,ti.P2)(ii.Z.SEARCH_AUTOCOMPLETE_URL,{method:"GET",params:{query:e.query},signal:e.signal})}async searchAll(e){return await this.sendRequest(ii.Z.RENDER_SEARCH_ALL,e)}async searchArticles(e){return await this.sendRequest(ii.Z.RENDER_SEARCH_ARTICLES,e)}async searchPages(e){return await this.sendRequest(ii.Z.RENDER_SEARCH_PAGES,e)}async sendRequest(e,t){const i=e.replace(/^gsoi_render_search_/,"");await this.waitExistingRequestAborted(i);const s=new AbortController;this.pendingRequests.set(i,s),si.debug(`Calling "search ${i}"â¦`,{route:e,options:{method:"GET",params:t,signal:s.signal}});try{return await(0,ti.P2)(e,{headers:{Accept:"text/html"},method:"GET",params:t,signal:s.signal})}catch(e){if("AbortError"===e.name)return si.log("Search request was aborted."),this.pendingRequests.delete(i),null;throw si.error(`Error while searching ${i}:`,e),e}}async waitExistingRequestAborted(e){const{promise:t,resolve:i}=(0,l.Bw)();if(!this.pendingRequests.has(e))return si.debug(`No previous request "${e}" to wait for.`),void i();const s=this.pendingRequests.get(e);return s.signal.addEventListener("abort",(()=>{this.pendingRequests.delete(e),i()}),{once:!0}),s.abort(`New request "${e}" was perfomed before its completion, aborting the previous one.`),t}},ri=i.g.localStorage;class ai{constructor(e,t){this.name=e,this.maxSize=t}add(e){let t=this.retrieve();return t[e]=new Date,this.maxSize&&Object.keys(t).length>this.maxSize&&(t=Object.fromEntries(Object.entries(oi(t)).slice(0,this.maxSize))),this.persist(t),this}clear(){return ri.removeItem(this.name),this}find(e,t=!0){const i=new RegExp(`(${(0,St._U)(e)})`,"gi");return Object.keys(this.retrieve()).filter((s=>t?e===s:s.match(i)))}has(e,t=!0){const i=new RegExp(`(${(0,St._U)(e)})`,"gi");return t?e in this.retrieve():Object.keys(this.retrieve()).some((e=>e.match(i)))}isEmpty(){return 0===Object.keys(this.retrieve()).length}list(){return Object.keys(this.retrieve())}remove(e){const t=this.retrieve();return delete t[e],this.persist(t),this}getLasts(e=1){return Object.keys(this.retrieve()).slice(0,Math.max(1,e))}retrieve(){return oi((e=JSON.parse(ri.getItem(this.name)??"{}"),Object.fromEntries(Object.entries(e).map((([e,t])=>[e,new Date(t)])))));var e}persist(e){ri.setItem(this.name,JSON.stringify(function(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t.getTime()])))}(oi(e))))}}function oi(e){return Object.fromEntries(Object.entries(e).sort((([,e],[,t])=>t.getTime()-e.getTime())))}const li=new r.Z("SearchBlock.Autocomplete");class ci{abortable=null;elements=null;lastRenderHash="";offset=-1;suggestions=[];constructor(e,t=new Map,i=new ai("search-history",8),n=10){this.cache=t,this.history=i,this.maxSuggestions=n,this.elements={actions:{clear:(0,s.cw)(".clear-button",e),return:(0,s.cw)(".return-button",e)},container:(0,s.cw)(".autocomplete",e),input:(0,s.cw)(".search-input",e),searchBlock:e,suggestions:{container:(0,s.cw)(".autocomplete-suggestions",e),list:[]}},this.initializeListeners()}async autocomplete(){const e=(0,n.Ds)(this.render.bind(this),100);this.suggestions=this.getHistorySuggestions(),e(),this.suggestions=[...this.suggestions,...await this.getApiSuggestions()],e()}clear(){this.offset=-1,this.suggestions=[],this.lastRenderHash="",this.elements.suggestions.container.innerHTML="",this.elements.suggestions.list=[]}
1dispatch(e,t){this.elements.searchBlock.dispatchEvent(new CustomEvent(e,{detail:t}))}async expand(){const{actions:e,container:t,input:i,searchBlock:s}=this.elements;e.clear.classList.toggle("hidden",0===i.value.trim().length),e.return.classList.remove("hidden"),t.classList.add("expanded"),s.classList.add("mobile-focus"),await this.autocomplete()}initializeListeners(){const{actions:e,container:t,input:i,searchBlock:s}=this.elements,r=(0,n.Ds)((()=>{i.readOnly||this.expand()}),100);i.addEventListener("keydown",(async e=>{const s=t.classList.contains("expanded"),{suggestions:{list:n}}=this.elements;switch(e.key){case"Tab":case"ArrowDown":case"ArrowUp":if(e.preventDefault(),s||this.expand(),0===this.suggestions.length)return;"Tab"===e.key&&e.shiftKey||"ArrowUp"===e.key?this.offset-=1:this.offset+=1,this.offset<-1?this.offset=n.length-1:this.offset>=n.length&&(this.offset=-1),n.forEach((e=>e.classList.remove("selected"))),this.offset>-1&&n[this.offset].classList.add("selected");break;case"Enter":e.preventDefault(),s&&this.offset>-1&&(i.value=n[this.offset].dataset.value);break;case"Escape":this.collapse()}})),i.addEventListener("input",(0,n.Ds)(r,300)),i.addEventListener("click",r),i.addEventListener("focus",r),i.addEventListener("blur",(e=>{e.relatedTarget&&!t.contains(e.relatedTarget)&&this.collapse()})),e.return.addEventListener("click",this.collapse.bind(this,!1)),document.addEventListener("click",(e=>{t.contains(e.target)||this.collapse()})),s.addEventListener($t.CLEAR,(()=>{this.collapse(!0),this.elements.input.focus()})),s.addEventListener($t.SEARCH,this.collapse.bind(this,!1)),s.addEventListener($t.SEARCH_RESULTS,(e=>{this.clear(),this.history.add(e.detail.query)}))}collapse(e=!1){const{actions:t,container:i,searchBlock:s}=this.elements;this.abortable?.abort("Search input is empty or loose focus."),this.abortable=null,this.clear(),e||(s.classList.remove("mobile-focus"),i.classList.remove("expanded"),t.return.classList.add("hidden"))}async getApiSuggestions(){const e=this.elements.input.value.trim();if(!e.length)return[];if(this.abortable?.abort("Newer autocompletion request has been sent."),!this.cache.has(e))try{this.abortable=new AbortController;const{suggestions:t}=await ni.autocomplete({query:e,signal:this.abortable.signal});this.cache.set(e,t)}catch(t){t instanceof ei.i?li.warn(t.message):(li.error("An error occured during fetching autocomplete suggestions from API.",t),this.cache.set(e,[]))}return(this.cache.get(e)??[]).filter((e=>!this.history.has(e,!1))).slice(0,this.maxSuggestions-this.suggestions.length).map((e=>({type:Zt.SUGGESTION,value:e})))}getHistorySuggestions(){const e=this.elements.input.value.trim();return(e.length?this.history.find(e,!1).slice(0,3):this.history.list()).map((e=>({type:Zt.HISTORY,value:e})))}render(){const e=this.getUniqueHash();if(e===this.lastRenderHash)return void li.debug("Same suggestions have already been rendered, canceling current render callâ¦");this.offset=-1;const{container:t}=this.elements.suggestions,i=this.suggestions.some((e=>Zt.HISTORY===e.type));if(this.elements.suggestions.list=this.suggestions.map((e=>this.buildSuggestionItem(e))),t.replaceChildren(...this.elements.suggestions.list),i){const e=function(e){const t=Gt("li"),i=Gt("button");return t.classList.add("suggestion-item","delete-history-item"),i.textContent=e,i.ariaLabel="Supprime tout l'historique locale de recherche.",i.title="Supprime tout l'historique locale de recherche.",Vt(t,i),t}("supprimer l'historique");(0,s.cw)("button",e).addEventListener("click",(()=>{this.history.clear(),this.autocomplete()})),t.append(e)}this.lastRenderHash=e,li.debug("Suggestions rendered.",this.suggestions)}buildSuggestionItem(e){let t;const i=this.elements.input.value.trim();switch(e.type){default:case Zt.SUGGESTION:t=Qt(e.value,Yt(i,e.value),{type:Zt.SUGGESTION});break;case Zt.HISTORY:t=Qt(e.value,Yt(i,e.value),{deleteAction:!0,type:Zt.HISTORY}),t.addEventListener("action.delete",(e=>{this.history.remove(e.detail.value),t.remove(),this.autocomplete()}))}const s=()=>{this.elements.input.value=(t.dataset.value??"").trim(),this.collapse(),this.clear(),this.dispatch($t.DO_SEARCH)};
1return t.addEventListener("click",s),t.addEventListener("keydown",(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),s())})),t}getUniqueHash(){return this.suggestions.map((e=>`${e.type===Zt.HISTORY?"h":"s"}:${e.value}`)).sort().join("|")}}function di(e,t,i=!1){(i?window.history.replaceState.bind(window.history):window.history.pushState.bind(window.history))(e,"",t)}var ui,hi,pi,mi;const gi=new r.Z("SearchBlock");let fi=(ui=(0,o.QM)("SearchBlock"),hi=(0,o.sy)(gi),ui((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((mi=class extends o.wc{isSearching=!1;async initialize(){await(0,s.qQ)();const e=(0,s.sb)("search-block");null!==e&&(new ci(e),this.elements={block:e,loadingLogo:(0,s.sb)("loading-logo"),searchBar:{input:(0,s.cw)("#search-input",e),actions:{clear:(0,s.cw)(".clear-button",e),return:(0,s.cw)(".return-button",e),search:(0,s.cw)(".search-button",e)}},results:(0,s.cw)(".search-results",e),filters:{button:(0,s.sb)("search-filters-button"),container:(0,s.sb)("search-filters")},initialContents:(0,s.$3)(".initial-search-content",e.parentElement)},this.searchFilters=[{id:"filter-by",html:(0,s.sb)("filter-by"),isOpened:!1},{id:"filter-date",html:(0,s.sb)("filter-date"),isOpened:!1}],this.searchParameters=Kt,this.initializeListeners(),new URL(window.location.href).searchParams.has("query")&&(this.searchParameters=function(){const e=new URL(window.location.href).searchParams;return{from_date:e.get("from_date")??void 0,order:e.get("order")??void 0,page:parseInt(e.get("search_page")??Kt.page.toString()),page_size:parseInt(e.get("search_page_size")??Kt.page_size.toString()),query:e.get("query")??""??void 0,sort:e.get("sort")??void 0,to_date:e.get("to_date")??void 0}}(),this.search(!0)))}initializeListeners(){this.elements.block.addEventListener($t.DO_SEARCH,this.handleSearch.bind(this)),this.elements.searchBar.actions.clear.addEventListener("click",this.clear.bind(this)),this.elements.searchBar.actions.search.addEventListener("click",this.handleSearch.bind(this)),this.elements.searchBar.input.addEventListener("keydown",(e=>{"Enter"===e.key&&(e.preventDefault(),this.handleSearch())})),this.elements.filters.button.addEventListener("click",(()=>{this.elements.filters.container.classList.toggle("hidden"),this.elements.filters.button.classList.toggle("active")})),document.addEventListener("click",(e=>{let t=e.target;t.closest(".custom-select")||(this.searchFilters.forEach((e=>{e.isOpened&&this.closeFilter(e)})),t.querySelectorAll(".custom-select").forEach((e=>{e.querySelector(".select-toggle").checked=!1})))}));for(const e of this.searchFilters)(0,s.cw)(".selected",e.html).addEventListener("click",(t=>{this.closeAllFilters(e.id),e.isOpened=!e.isOpened,t.target.parentElement.classList.toggle("open"),gi.debug("Filters:",this.searchFilters)}));this.searchFilters.forEach((e=>{this.setupFilterEvent(e.html,this.callBackFilter(e.id))})),window.addEventListener("popstate",this.onStateChanged.bind(this)),window.addEventListener("load",(()=>{Xt(history.state)&&!this.isSearching&&(gi.log("History state found on load.",history.state),this.onStateChanged(new PopStateEvent("popstate",{state:history.state})))}))}async closeAllFilters(e){this.searchFilters.forEach((t=>{t.id!==e&&t.isOpened&&this.closeFilter(t)}))}async closeFilter(e){const t=e.html.querySelector(".select-toggle");e.html.classList.remove("open"),t.checked=!1,e.isOpened=!1}callBackFilter(e){return async t=>{const i=new Date;switch(e){case"filter-by":switch(t){case"pertinence":delete this.searchParameters.sort,delete this.searchParameters.order;break;case"updated_at":this.searchParameters.sort="updated_at",this.searchParameters.order="desc";break;default:this.searchParameters.sort=t,this.searchParameters.order="desc"}break;case"filter-date":switch(t){case"all":delete this.searchParameters.from_date;break;case"latest_24h":gi.log(st(1).toString()),this.searchParameters.from_date=st(1).toString();break;case"this_week":const e=i.getDay(),t=0===e?6:e-1;this.searchParameters.from_date=st(t).toString();break;case"this_month":const s=new Date(i.getFullYear(),i.getMonth(),1),n=Math.floor((i.getTime()-s.getTime())/864e5);this.searchParameters.from_date=st(n).toString();break;case"this_year":const r=new Date(i.getFullYear(),0,1),a=Math.floor((i.getTime()-r.getTime())/864e5);this.searchParameters.from_date=st(a).toString()}}this.checkSearchInputIsValid()&&await this.search(),gi.debug("Search parameters updated: ",this.searchParameters)}}setupFilterEvent(e,t){e.querySelectorAll(".options li").forEach((i=>{i.addEventListener("click",(function(){const i=this.closest(".custom-select");"filter-by"===i.id?i.querySelector(".selected").textContent="Trier par "+this.textContent.toLowerCase():i.querySelector(".selected").textContent=this.textContent,i.classList.remove("open"),e.querySelector(".select-toggle").
1checked=!1;const s=this.getAttribute("data-value");t(s)}))}))}async handleSearch(){this.checkSearchInputIsValid()&&(this.toggleActions(!0),this.updateSearchParameters("query",this.elements.searchBar.input.value.trim()),await this.search())}async search(e=!1){if(!this.checkSearchInputIsValid())return void gi.log("Search input is not valid.",this.elements.searchBar.input.value);const t=this.buildSearchUrl(),i={filtersOpened:!this.elements.filters.container.classList.contains("hidden")??!1,params:this.searchParameters};di(i,t,e),this.toggleActions(!0),this.updateSearchStatus(!0),this.elements.block.dispatchEvent(new CustomEvent($t.SEARCH));try{const e=await ni.searchAll(this.searchParameters);if(null===e)return;this.elements.results.innerHTML=e,function(e,t){if(e.trim().length)for(let i of t)"string"==typeof i?i=Yt(e,i):i instanceof HTMLElement&&(i.innerHTML=Yt(e,i.innerHTML))}(this.searchParameters.query,(0,s.$3)(".article-card-title, .article-card-lead, .hot-tag-element",this.elements.results)),i.resultHtml=this.elements.results.innerHTML,di(i,t,!0),Jt(this.elements.results),this.elements.block.dispatchEvent(new CustomEvent($t.SEARCH_RESULTS,{detail:{query:this.searchParameters.query}}))}catch(e){gi.error("Error while searching.",e),this.elements.results.innerHTML='<h2 class="error-title">Une erreur est survenue lors de votre recherche. Veuillez réessayer ultérieurement.</h2>',this.toggleInitialContents(!0)}finally{this.updateSearchStatus(!1)}}updateSearchStatus(e){this.isSearching=e,this.toggleResults(),e&&this.toggleInitialContents(!1),this.elements.searchBar.input.readOnly=e,this.elements.loadingLogo.classList.toggle("hidden",!e)}clear(){this.updateSearchParameters("query",""),this.elements.results.innerHTML="",this.elements.searchBar.input.value="",this.updateSearchStatus(!1),this.toggleInitialContents(!0),this.toggleActions(!1);const e=new URL(window.location.href);e.search="",di({filtersOpened:!1,params:this.searchParameters,resultHtml:""},e),this.elements.block.dispatchEvent(new CustomEvent($t.CLEAR))}checkSearchInputIsValid(){const e=this.elements.searchBar.input.value.trim();return""!==e&&e.length>=3}updateSearchParameters(e,t){this.searchParameters[e]=t,gi.debug("Search parameters updated: ",this.searchParameters)}toggleActions(e){const{actions:t}=this.elements.searchBar;t.clear.classList.toggle("hidden",!e),t.return.classList.toggle("hidden",!e)}toggleResults(e){this.elements.results.classList.toggle("hidden",e??this.isSearching),this.elements.loadingLogo.classList.toggle("hidden",!e??!this.isSearching)}toggleInitialContents(e){const{block:t,initialContents:i}=this.elements;t.style.minHeight=e?"0px":"600px";for(const t of i)t.classList.toggle("hidden",!e)}buildSearchUrl(){const e=new URL(window.location.href);return e.hash="",e.search=function(e){const t=new URLSearchParams(Object.entries({from_date:e.from_date,order:e.order,query:e.query??Kt.query,search_page:(e.page??Kt.page).toString(),search_page_size:(e.page_size??Kt.page_size).toString(),sort:e.sort,to_date:e.to_date}).filter((([e,t])=>void 0!==t)));return t.sort(),t}(this.searchParameters).toString(),e}onStateChanged(e){if(!Xt(e.state))return;const t=e.state;gi.debug("Retrieving stateâ¦",t),this.searchParameters=t.params,this.elements.searchBar.input.value=this.searchParameters.query,this.elements.filters.container.classList.toggle("hidden",!t.filtersOpened),this.elements.filters.button.classList.toggle("active",t.filtersOpened),void 0!==t.resultHtml?(this.elements.results.innerHTML=t.resultHtml,Jt(this.elements.results)):this.isSearching||this.search(!0)}}).prototype,"initialize",[hi],Object.getOwnPropertyDescriptor(mi.prototype,"initialize"),mi.prototype),pi=mi))||pi);var bi,yi,vi,wi;const Si=new r.Z("Header");let Ei=(bi=(0,o.QM)("Header"),yi=(0,o.sy)(Si),bi((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((wi=class extends o.wc{async initialize(){const[e]=await Promise.all([(0,o.r9)($.Z),(0,s.qQ)()]);if(this.elements={block:null,actions:{},submenu:null},this.initHeaderElement(),null===this.elements.block)return void Si.debug("New Header is not present");this.initSubmenuElement(),null===this.elements.submenu?Si.debug("New Submenu is not present"):this.initSubHeaderDropdowns(),this.defaultAccountUrl=this.elements.actions.account.element?.href,this.elements.actions.account.element.href=this.addSSOContext(this.defaultAccountUrl,"login");const t=await Promise.race([e.onUserLoaded(),e.onUserFailed()]);t?this.updateUserServices(t):Si.error("no profile")}initHeaderElement(){const e=(0,s.sb)("main-header");if(null===e)return;const t={};(0,s.$3)(".header-items .header-action",e).forEach((e=>{t[e.id]={element:e,label:(0,s.cw)("span.action-label",e),premium:e.classList.contains("only-premium"),hideToPremium:e.classList.contains("hide-to-premium")}})),this.elements.block=e,this.elements.actions=t}initSubmenuElement(){const e=(0,s.sb)("main-sub-header");if(null===e)return;const t=(0,s.$3)(".sub-header-action",e),i=[];t.forEach((e=>{i.push({element:e,label:null,premium:e.classList.contains("only-premium"),hideToPremium:e.classList.contains("hide-to-premium")})})),this.elements.submenu={block:e,items:i}}updateUserServices(e){let t=[...Object.values(this.elements.actions)];null!==this.elements.submenu&&(t=[...t,...this.elements.submenu.items]),e.activeSession&&(this.elements.actions.account.label.innerHTML="Mon Compte",this.elements.actions.account.element.href=this.addSSOContext(this.defaultAccountUrl,"account"),e.subscriptionsData.isPremium&&t.forEach((e=>{e.premium&&e.element.classList.remove("hide"),e.hideToPremium&&e.element.classList.add("hide")})))}addSSOContext(e,t){let i=new URL(`${e}${t}`);return i.searchParams.set("SSO_Context",window.location.href),i.toString()}initSubHeaderDropdowns(){const e=(0,s.$3)(".header-dropdown",this.elements.submenu.block);e.length&&(e.forEach((t=>{const i=t.querySelector(".header-dropdown-content"),s=e.filter((e=>e!==t));i&&t.addEventListener("toggle",(()=>{t.open?(s.forEach((e=>{e.open=!1})),this.elements.submenu.block.insertAdjacentElement("afterend",i)):t.appendChild(i)}))})),Si.debug("DropDowns are ready.",e))}}).prototype,"initialize",[yi],Object.getOwnPropertyDescriptor(wi.prototype,"initialize"),wi.prototype),vi=wi))||vi);var ki,Li,Ci,zi;const Pi=new r.Z("Footer");let Oi=(ki=(0,o.QM)("Footer"),Li=(0,o.sy)(Pi),ki((function(e,t,i,s,n){var r={};
1Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((zi=class extends o.wc{async initialize(){await Promise.all([(0,s.qQ)()]),this.elements={block:null,logo:null,categories:null},this.initFooterElement(),null!==this.elements.block?(await this.initCookiesChoicesLink(),this.toggleCategories(),window.addEventListener("resize",(()=>this.toggleCategories()))):Pi.debug("New Footer is not present")}initFooterElement(){const e=(0,s.sb)("main-footer");if(null===e)return;const t=(0,s.$3)(".footer-container .footer-column .footer-category",e);this.elements.block=e,this.elements.logo=null,this.elements.categories=t}toggleCategories(){let e=window.matchMedia("(min-width: 1024px)").matches;this.elements.categories.forEach((t=>{t.open=e}))}async initCookiesChoicesLink(){const e=(0,s.sb)("footer-links-cookies-choices");if(!e)return;let t;try{t=await(0,o.r9)(u.ZP)}catch(e){return void Pi.warn("ConsentManager could not be initialized for footer.",e)}e.setAttribute("href","#"),e.addEventListener("click",(e=>{e.preventDefault(),t.changeConsent()})),Pi.debug("Cookies choices link enabled.")}}).prototype,"initialize",[Li],Object.getOwnPropertyDescriptor(zi.prototype,"initialize"),zi.prototype),Ci=zi))||Ci);var Ai,Di,_i,Ti,Ii,Ui=i(246),Mi=i(435);const qi=new r.Z("Poool.Engage");let Ri=(Ai=(0,o.QM)("Poool.Engage"),Di=(0,o.Lm)(b.l.POOOL_ENGAGE,!0),_i=(0,o.sy)(qi),Ai(Ti=Di(Ti=(0,o.$v)((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((Ii=class extends o.wc{options={filters:[]};variables={nom:"",prenom:""};async initialize(){if(await(0,n.SH)(Mi.scripts.engage),void 0===window.Engage)return void qi.error('Global "Engage" object is not available after loading the Poool Engage script.');this.engage=window.Engage,[this.sessionManager]=await Promise.all([(0,o.r9)($.Z),(0,s.qQ)()]),this.engage.init(Mi.key),this.engage.config("pianoAutoTrackingEnabled",!0);const e=this.sessionManager.getUser()?.userData;this.variables={nom:e?.lastName??this.variables.nom,prenom:e?.firstName??this.variables.prenom},this.cardHasExpiredFilter(),this.userSubscriptionStatusFilters(),e&&await this.segmentationFilters(e.id),(0,lt.y_)(this.variables),(0,lt.y_)(this.options),this.engage.variables(this.variables),await this.engage.autoCreate(this.options),qi.debug("Poool Engage initialized with ",{options:this.options,variables:this.variables})}cardHasExpiredFilter(){const e=this.sessionManager.getUser()?.userData?.cb?.dateFin;if(!e)return;const t=new Date;t.setHours(0,0,0,0);const i=new Date(e);if(i.setHours(0,0,0,0),isNaN(i.getTime()))return void qi.error("Date d'expiration de la carte invalide :",e);if(i<t)return void this.options.filters.push("cb_expiree");const s=i.getTime()-t.getTime();Math.ceil(s/864e5)<=30&&this.options.filters.push("cb_bientot_expiree")}userSubscriptionStatusFilters(){const e=this.sessionManager.getUser()?.subscriptionsData;if(!e)return void qi.warn("User subscriptions data is not available for Poool Engage.");const{isSubscriber:t,isPremium:i}=e;t&&this.options.filters.push("inscrit"),i&&this.options.filters.push("abonne")}async segmentationFilters(e){const t=await Ui.N.getSegmentByUserId(e);t&&t.SEGMENT_IDS?this.options.filters=this.options.filters.concat(t.SEGMENT_IDS.map((e=>`segment_${e}`))):qi.warn("No segmentation data available for user:",e)}}).prototype,"initialize",[_i],Object.getOwnPropertyDescriptor(Ii.prototype,"initialize"),Ii.prototype),Ti=Ii))||Ti)||Ti)||Ti);
1const xi=JSON.parse('{"HQ":"https://utiq.sudouest.fr/utiqLoader.js","dI":"https://utiq.sudouest.fr","_O":true}');var Hi,Fi,Ni,Bi,ji;const Zi=new r.Z("Utiq");let $i=(Hi=(0,o.QM)("Utiq"),Fi=(0,o.Lm)(b.l.UTIQ),Ni=(0,o.sy)(Zi),Hi(Bi=Fi(Bi=(0,o.$v)((function(e,t,i,s,n){var r={};Object.keys(s).forEach((function(e){r[e]=s[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null)}((ji=class extends o.wc{constructor(){super(),this.initConfig()}async initialize(){if([this.consentManager]=await Promise.all([(0,o.r9)(u.ZP),(0,s.qQ)()]),this.elements={activeButton:(0,s.sb)("active-utiq-consent"),consentMessage:(0,s.sb)("consent-utiq-message"),content:(0,s.cw)(".utiq-content"),withdrawButton:(0,s.sb)("withdraw-utiq-consent")},this.elements.content)window.Utiq.config.CMP="none",Zi.log("Script will be loaded even without user consent to CMP: we are on the Utiq page.");else{if(!this.consentManager.hasConsented()&&!await this.consentManager.hasConsentedForAll())return void Zi.log("Script will not be loaded because user has not consented for cookies.");if(this.consentManager.isFirstSession())return void Zi.log("Script will not be loaded because of first user session after its consent.")}this.initializeListeners(),await(0,n.SH)(xi.HQ)}initializeListeners(){this.elements.withdrawButton?.addEventListener("click",(e=>{e.preventDefault(),Zi.debug("Consent rejected."),this.elements.consentMessage?.classList.remove("hidden"),window.Utiq.API.handleConsentChange(!1)})),this.elements.activeButton?.addEventListener("click",(e=>{e.preventDefault(),this.showPopin()}))}showPopin(){Zi.debug("Displaying consent managerâ¦");const e=()=>{window.Utiq.API.showConsentManager()};void 0===window.Utiq.API?this.pushInQueue(e):e()}initConfig(){window.Utiq||={},window.Utiq.config={...window.Utiq.config||{},customUtiqHost:xi.dI,customizationOptions:{language:"fr",websiteLogoUrl:(0,n.OW)(xi._O??!1,!0)},logLevel:xi.logLevel||"error"},window.Utiq.queue||=[]}on(e,t){const i=e;void 0===window.Utiq?.API?this.pushInQueue((()=>window.Utiq.API.addEventListener(i,t))):window.Utiq.API.addEventListener(i,t)}pushInQueue(e){window.Utiq.queue.push(e)}}).prototype,"initialize",[Ni],Object.getOwnPropertyDescriptor(ji.prototype,"initialize"),ji.prototype),Bi=ji))||Bi)||Bi)||Bi);window.addEventListener("gsoi.async.map_embed.load",(async()=>{await Promise.all([i.e(438),i.e(940)]).then(i.bind(i,2940)),window.dispatchEvent(new CustomEvent("gsoi.async.map_embed.loaded"))})),(0,o.r9)(Y.Z),(0,o.r9)(Ee,"#cookie-wall"),(0,o.r9)(h.ZP),(0,o.r9)(De),(0,o.r9)(Be),(0,o.r9)(dt),(0,o.r9)($.Z),(0,o.r9)(vt),(0,o.r9)(qt),(0,o.r9)(jt),(0,o.r9)(At),(0,o.r9)(fi),(0,o.r9)(bt.Z),(0,o.r9)(Ei),(0,o.r9)(Oi),(0,o.r9)(Ri),(0,o.r9)($i);const Qi=new re;(0,o.XU)(".story-player-wrapper",(e=>new se(e)),!0),(0,o.XU)(".carousel-event",(e=>new ve.Z(e))),(0,o.XU)(".carousel-stories-block",(e=>new me(e))),(0,o.XU)(".hot-tag-stories-wrapper",(e=>new Ye(e))),(0,o.XU)(".snap-carousel-wrapper",(e=>new ee.Z(e))),(0,s.qQ)().then((()=>{Qi.isInitialized()||Qi.initialize()})),(0,o.r9)(z)},4992:(e,t,i)=>{i.d(t,{Z:()=>p});var s,n,r,a,o=i(1146),l=i(1029),c=i(8022),d=i(7652);const u=new l.Z("Carousel"),h={modules:[c.bi,c.W_],slidesPerView:"auto",spaceBetween:0,slidesPerGroup:1,breakpoints:{668:{slidesPerGroup:3}}};let p=(s=(0,o.QM)("Carousel"),n=(0,o.sy)(u),s((a=class extends o.wc{constructor(e,t){super(),this.block=e,this.sliderOptions=t}async initialize(){if(this.block.querySelector(".swiper")?.matches(".swiper-initialized"))return void u.warn("Carousel already initialized");const e=this.block.querySelector(".swiper"),t=this.block.querySelector(".next"),i=this.block.querySelector(".prev");null!==t&&null!==i&&(h.navigation={nextEl:t,prevEl:i});const s={...h,...this.sliderOptions};this.slides=this.block.querySelectorAll(".swiper-slide"),this.slider=new d.Z(e,s),this.initListeners()}initListeners(){for(const e of this.slides){const t=e.querySelector("video");if(!t)return;e.addEventListener("mouseenter",(e=>t.play())),e.addEventListener("mouseleave",(e=>t.load()))}}},m=a.prototype,g="initialize",f=[n],b=Object.getOwnPropertyDescriptor(a.prototype,"initialize"),y=a.prototype,v={},Object.keys(b).forEach((function(e){v[e]=b[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=f.slice().reverse().reduce((function(e,t){return t(m,g,e)||e}),v),y&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(y):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(m,g,v),v=null),r=a))||r);var m,g,f,b,y,v},4702:(e,t,i)=>{i.d(t,{Z:()=>u});var s,n,r,a,o=i(1146),l=i(1029),c=i(9647);const d=new l.Z("Snap Carousel");let u=(s=(0,o.QM)("Snap Carousel"),n=(0,o.sy)(d),s((a=class extends o.wc{carousel=null;prevButton=null;nextButton=null;slides=null;constructor(e){super(),this.block=e}
1async initialize(){await(0,c.qQ)(),this.carousel=(0,c.cw)(".snap-carousel-container",this.block),this.prevButton=(0,c.cw)(".nav-button.prev",this.block),this.nextButton=(0,c.cw)(".nav-button.next",this.block),this.slides=(0,c.$3)(".carousel-item",this.block),this.initListeners(),this.updateButtons()}updateButtons(){const e=this.carousel.scrollWidth-this.carousel.clientWidth;this.prevButton&&this.nextButton&&(this.prevButton.disabled=this.carousel.scrollLeft<=5,this.nextButton.disabled=this.carousel.scrollLeft>=e-5)}getScrollAmount(){const e=this.block.querySelector(".carousel-item");if(d.log(e),!e)return 200;return e.offsetWidth+15}initListeners(){let e=window.matchMedia("(min-width: 1024px)").matches;this.prevButton?.addEventListener("click",(()=>{this.carousel.scrollBy({left:-this.getScrollAmount(),behavior:"smooth"}),setTimeout((()=>this.updateButtons()),300)})),this.nextButton?.addEventListener("click",(()=>{this.carousel.scrollBy({left:this.getScrollAmount(),behavior:"smooth"}),setTimeout((()=>this.updateButtons()),300)})),this.block.addEventListener("scroll",(()=>this.updateButtons())),(0,c.EJ)(this.carousel,(()=>this.updateButtons())),this.slides&&e&&this.slides.forEach((e=>{const t=e.querySelector("video");t&&(e.addEventListener("mouseenter",(()=>t.play())),e.addEventListener("mouseleave",(()=>t.load())))}))}},h=a.prototype,p="initialize",m=[n],g=Object.getOwnPropertyDescriptor(a.prototype,"initialize"),f=a.prototype,b={},Object.keys(g).forEach((function(e){b[e]=g[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=m.slice().reverse().reduce((function(e,t){return t(h,p,e)||e}),b),f&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(f):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(h,p,b),b=null),r=a))||r);var h,p,m,g,f,b},4280:(e,t,i)=>{i.d(t,{Z:()=>w});var s=i(1146),n=i(5335),r=i(9543),a=i(1029),o=i(9647),l=i(3243),c=i(4788),d=i(6737),u=i(9342);const h=JSON.parse('{"J":"35297dff-c861-4f9f-a06c-892210a95620","r":"gso_sudouest"}');var p,m,g,f,b=i(5778),y=i(7812);const v=new a.Z("Ads");let w=(p=(0,s.QM)("Ads"),m=(0,s.sy)(v),p((f=class extends s.wc{adsElements=[];stickyAdsElements=[];adsTimelineElementsAlreadyHidden=!1;alwaysDisplayedIds=["pub_dfp_publi_info_dep","pub_dfp_pave_haut","pub_dfp_inread_premium"];async initialize(){if(/\/carte\//.exec(window.location.pathname))return void v.log("Do not load Pubstack script on map page.");[this.consentManager,this.sessionManager]=await Promise.all([(0,s.r9)(r.ZP),(0,s.r9)(b.Z),(0,o.qQ)()]),this.updatePubstackSiteNameMetadata();let e=!1;const t=this.sessionManager.onUserFailed(),i=this.sessionManager.onUserLoaded();if(this.removeDuplicateAds(),this.selectStickyAdsElements(),t.then((()=>{e||this.toggleZenMode(!0),this.updateTopForStickyAds(),this.updatePubstackIsAbonneMetadata(!0)})),i.then((async t=>{e=!0,this.toggleZenMode(n.Z.isAdsfree(t)),this.updatePubstackDeviceMetadata(),this.updatePubstackIsAbonneMetadata(t.subscriptionsData.isPremium),this.updateTopForStickyAds()})),await Promise.race([t,i]),!l.Z.isEnabled(c.l.PUBSTACK)||!this.consentManager.hasConsented())return v.debug("Pubstack disabled.",l.Z.isEnabled(c.l.PUBSTACK),this.consentManager.hasConsented()),void(this.consentManager.hasConsented()||this.notConsentedUserCase());(this.consentManager.hasConsented()||await this.consentManager.hasConsentedForAll())&&(v.debug("Pubstack enabled."),this.observeSkinAd(),await(0,u.SH)(`https://boot.pbstck.com/v1/adm/${h.J}`),v.debug("Pubstack script inserted in DOM."))}toggleZenMode(e){0===this.adsElements.length&&this.selectAdsElements(),this.adsElements.forEach((t=>{e&&!this.isAlwaysDisplayed(t)?t.classList.add("hide"):t.classList.remove("hide")})),e?(this.disableStickyAds(),v.debug("Zen mode activated")):v.debug("Zen mode deactivated")}addTimelineAdsToZenMode(){if(!1===this.adsTimelineElementsAlreadyHidden){const e=Array.from(document.querySelectorAll(".timeline-ad"));v.debug("Timeline Ads selected.",e),this.adsElements.push(...e),this.adsTimelineElementsAlreadyHidden=!0}}disableStickyAds(){v.debug("Disable sticky ads");const e=document.querySelector(".header-mobile-sticky-margin");
1this.adsElements.forEach((t=>{if(t.classList.contains("sticky-ad")){if(t.classList.add("hide"),!e)return;e.classList.add("hide")}}));for(const e of this.stickyAdsElements){const t=e.querySelector(".pub");t&&!this.isAlwaysDisplayed(t)&&t.classList.add("hide")}}selectAdsElements(){[".pub",".ob-smartfeed-wrapper",".outbrain-container","#auto-promo-sticky"].forEach((e=>{const t=Array.from(document.querySelectorAll(e));this.adsElements.push(...t)}));const e=document.getElementById("l_i_g_a_t_u_s_placeholder_article_end"),t=document.getElementById("l_i_g_a_t_u_s_placeholder_side");e?.parentElement&&this.adsElements.push(e.parentElement),t?.parentElement&&this.adsElements.push(t.parentElement),v.debug("Ads selected.",this.adsElements)}selectStickyAdsElements(){[".aside-container"].forEach((e=>{const t=(0,o.$3)(e);this.stickyAdsElements.push(...t)}))}updateTopForStickyAds(){const e=document.querySelector(".header-mobile-sticky");this.stickyAdsElements.forEach((t=>{let i=t.querySelector(".pub");null!==e&&null!=i&&i.classList.contains("sticky")&&(i.style.top=`${e.offsetHeight}px`)}));const t=(0,o.sb)("auto-promo-item"),i=(0,o.sb)("auto-promo-sticky"),s=1e3*parseInt(t?.dataset?.timeout||"7");(0,y.X_)(s).then((()=>{t&&i&&t.classList.contains("hidden")&&(v.log("block autopromo: "+t?.innerHTML),(0,o.yG)(i,t.innerHTML),v.log(`Block Auto Promo loaded after ${s}ms of ads`))}))}removeDuplicateAds(){const e=(0,u.s2)()?".downfrom-desktop":".upto-tablet";document.querySelectorAll('.pub_dfp[id^="pub_dfp_"]'+e).forEach((e=>e.remove())),document.querySelectorAll('.pub_dfp[id^="inread_repeat_"]'+e).forEach((e=>e.remove()))}updatePubstackDeviceMetadata(){const e=document.querySelector('[name="pbstck_context:device"]');e?.setAttribute("content",(0,u.s2)()?"webmobile":"webdesktop")}updatePubstackSiteNameMetadata(){const e=document.querySelector('[name="pbstck_context:site_name"]');e?.setAttribute("content",h.r)}updatePubstackIsAbonneMetadata(e){if(d.x)return;const t=document.querySelector('[name="pbstck_context:is_abonne"]');t?.setAttribute("content",e?"yes":"no");const i=document.querySelector('[name="ad:gso_isabonne"]');i?.setAttribute("content",e?"yes":"no")}isAlwaysDisplayed(e){return this.alwaysDisplayedIds.includes(e.id)}notConsentedUserCase(){if(v.log("User not consented"),(0,u.s2)()){this.adsElements.push(...this.stickyAdsElements);let e=document.getElementById("pub_dfp_publi_info_dep");e&&this.adsElements.push(e)}this.alwaysDisplayedIds=[],this.toggleZenMode(!0)}observeSkinAd(){if("page-large"!==document.body.id||window.innerWidth<1e3)return;const e=(0,o.sb)("pub_dfp_banniere_haute");new MutationObserver((t=>{for(let i of t)i.target===e&&(e.classList.contains("adm-ad-skin-resizable")||e.classList.contains("adm-ad-skin"))&&(v.log("banner ad is skin resizable, reducing body width"),document.body.classList.add("w-1000"))})).observe(e,{attributes:!0})}},S=f.prototype,E="initialize",k=[m],L=Object.getOwnPropertyDescriptor(f.prototype,"initialize"),C=f.prototype,z={},Object.keys(L).forEach((function(e){z[e]=L[e]})),z.enumerable=!!z.enumerable,z.configurable=!!z.configurable,("value"in z||z.initializer)&&(z.writable=!0),z=k.slice().reverse().reduce((function(e,t){return t(S,E,e)||e}),z),C&&void 0!==z.initializer&&(z.value=z.initializer?z.initializer.call(C):void 0,z.initializer=void 0),void 0===z.initializer&&(Object.defineProperty(S,E,z),z=null),g=f))||g);var S,E,k,L,C,z},5335:(e,t,i)=>{i.d(t,{Z:()=>l});var s=i(213),n=i(1029),r=i(9342),a=i(5143);const o=new n.Z("Benefits");class l{static isAdsfree(e){try{if(e.subscriptionsData.benefits.includes("adsfree"))return o.log("User has adsfree benefits without tag restriction"),!0;if(e.subscriptionsData.benefits.includes("adsfree.tags")){if(e.subscriptionsData.tags.includes("all"))return o.log("User has adsfree benefits and include all"),!0;if(this.userHasMatchingTag(e.subscriptionsData.tags))return o.log("User has adsfree benefits with tag restriction"),!0}}catch(e){o.error("Failed on read adsfree benefits",e)}return o.log("User has no adsfree benefits"),!1}static canAppUserReadPaywallArticle(){return a.Z.isWebview()&&"true"===(0,r.eY)("isEligible")}static canReadPaywallArticle(e){try{if(this.canAppUserReadPaywallArticle())return o.log("User is eligible for read article in app."),!0;if(!1===e.subscriptionsData?.benefits.includes("articles"))return o.log("User has no articles benefits."),!1;const t=e.subscriptionsData?.tags;if(!Array.isArray(t)||0===t.length||t?.includes("all"))return o.log("User has article benef
1its without tag restrictions.",t),!0;if(this.userHasMatchingTag(t))return o.log("User has article benefits with tag restrictions",t),!0}catch(e){o.error("Failed on read article benefits",e)}return!1}static userHasMatchingTag(e){const t=s.Z.getAll("gsoi:tag");return e.filter((e=>t.includes(e))).length>0}}},6335:(e,t,i)=>{function s(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function n(e,t){s({...t,event:e})}function r(e){return(window.dataLayer||[])[e]}i.d(t,{be:()=>n,vd:()=>r,y_:()=>s})},6664:(e,t,i)=>{i.d(t,{Z:()=>f,v:()=>k});var s=i(1146),n=i(5335),r=i(1029),a=i(9647),o=i(9342),l=i(5778),c=i(5143);const d=JSON.parse('{"desktopAdsFree":"01774519","desktopDefault":"01948483","mobileAdsFree":"01769029","mobileDefault":"01528314","zoneDefault":1,"zoneEnTete":15}');var u,h,p,m;const g=new r.Z("Digiteka");let f=(u=(0,s.QM)("Digiteka"),h=(0,s.sy)(g),u((m=class extends s.wc{mdtk=null;sticky=!1;async initialize(){const[e]=await Promise.all([(0,s.r9)(l.Z),(0,s.r9)(c.Z),(0,a.qQ)()]);if(c.Z.isWebview())return void this.setMdtk(d.mobileAdsFree);const t=await Promise.race([e.onUserLoaded(),e.onUserFailed()]);null===t||"object"!=typeof t?this.setMdtk((0,o.s2)()?d.mobileAdsFree:d.desktopAdsFree):(0,o.s2)()?this.setMdtk(n.Z.isAdsfree(t)?d.mobileAdsFree:d.mobileDefault):this.setMdtk(n.Z.isAdsfree(t)?d.desktopAdsFree:d.desktopDefault)}setMdtk(e){this.mdtk=e,e===d.mobileDefault&&(this.sticky=!0),g.log(`mdtk = "${this.mdtk}"`,d)}getSimplePlayerUrl(e,t=!1,i=!1){const s=i?d.zoneEnTete:d.zoneDefault;try{0!==/www\.ultimedia\.com(.*)mdtk\/(\d+)\/(.*)zone\/(\d+)/.exec(e).length?e=e.replace(/mdtk\/(\d+)/,`mdtk/${this.mdtk}`).replace(/zone\/(\d+)/,`zone/${s}`):0!==/www\.ultimedia\.com(.*)iframe\/(\d+)\/(\d+)/.exec(e).length&&(e=e.replace(/iframe\/(\d+)\/(\d+)/,`iframe/${this.mdtk}/${s}`)),t&&(e=e.replace(/(\/?)$/,"/visible/yes"))}catch(e){g.error("Error while rewriting digiteka url",e)}return e}},b=m.prototype,y="initialize",v=[h],w=Object.getOwnPropertyDescriptor(m.prototype,"initialize"),S=m.prototype,E={}
1,Object.keys(w).forEach((function(e){E[e]=w[e]})),E.enumerable=!!E.enumerable,E.configurable=!!E.configurable,("value"in E||E.initializer)&&(E.writable=!0),E=v.slice().reverse().reduce((function(e,t){return t(b,y,e)||e}),E),S&&void 0!==E.initializer&&(E.value=E.initializer?E.initializer.call(S):void 0,E.initializer=void 0),void 0===E.initializer&&(Object.defineProperty(b,y,E),E=null),p=m))||p);var b,y,v,w,S,E;const k=(e,t)=>{if(!t.sticky)return;new MutationObserver((e=>{e.filter((e=>"IFRAME"===e.target.nodeName)).forEach((e=>{"fixed"===e.target.style.position?(0,a.sb)("auto-promo-sticky")?.classList.add("cover"):(0,a.sb)("auto-promo-sticky")?.classList.remove("cover")}))})).observe(e,{attributes:!0,subtree:!0,attributeFilter:["style"]})}},2488:(e,t,i)=>{i.d(t,{e:()=>p});var s,n,r,a,o=i(1146),l=i(1029),c=i(6121);const d="user.preferences",u={videoMuted:!0},h=new l.Z("UserPreferences");let p=(s=(0,o.QM)("UserPreferencesManager"),n=(0,o.sy)(h),s((a=class extends o.wc{eventEmitter=new c.Z;async initialize(){}get(e,t){return this.getAll()[e]??t}getAll(){const e=window.sessionStorage.getItem(d);return null===e?u:JSON.parse(e)}update(e,t){this.get(e)!==t&&(this.save({[e]:t}),this.eventEmitter.emit("preference.changed",e,t))}save(e){const t=this.getAll(),i={...t,...e};t!==i&&(h.debug("Saving user preferencesâ¦",i),window.sessionStorage.setItem(d,JSON.stringify(i)),this.eventEmitter.emit("preferences.changed",i))}on(e,t){return this.eventEmitter.on(e,t),this}onPreferenceChanged(e,t){this.eventEmitter.on("preference.changed",((e,i)=>{t(i)}))}},m=a.prototype,g="initialize",f=[n],b=Object.getOwnPropertyDescriptor(a.prototype,"initialize"),y=a.prototype,v={},Object.keys(b).forEach((function(e){v[e]=b[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=f.slice().reverse().reduce((function(e,t){return t(m,g,e)||e}),v),y&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(y):void 0,v.initializer=void 0),void 0===v.initializer&&(Object.defineProperty(m,g,v),v=null),r=a))||r);var m,g,f,b,y,v},5778:(e,t,i)=>{i.d(t,{Z:()=>f});var s=i(1146),n=i(1029),r=i(5547),a=i(9567);let o=function(e){return e.USER_DATA_FAILED="gsoi.session_manager.user_data_failed",e.USER_DATA_LOADED="gsoi.session_manager.user_data_loaded",e.USER_DATA_LOCAL="gsoi.session_manager.user_data_local",e}({});var l,c,d,u;var h=function(e){return e[e.EMPTY=0]="EMPTY",e[e.FAILED=1]="FAILED",e[e.FROM_XHR=2]="FROM_XHR",e[e.FROM_LOCAL=3]="FROM_LOCAL",e}(h||{});const p="userinfo",m=new n.Z("SessionManager"),g=(0,r.$)();window.gsoiSession=void 0;let f=(l=(0,s.QM)("SessionManager"),c=(0,s.sy)(m),l((u=class extends s.wc{sessionState=h.EMPTY;user=null;getUser(){return this.user}async initialize(){this.loadLocalSession(),null!==this.user&&(m.log("Retrieved session from local storage.",this.user),window.gsoiSession=this.user,dispatchEvent(new CustomEvent(o.USER_DATA_LOCAL,{detail:this.user}))),a.QC.getProfileData().then((e=>{m.log("Session loaded from request.",e),this.sessionState=h.FROM_XHR,this.user=e,this.updateLocalStorage(),window.gsoiSession=e,dispatchEvent(new CustomEvent(o.USER_DATA_LOADED,{detail:this.user}))})).catch((e=>{m.error("Error while fetching session.",e),window.localStorage.removeItem(p),this.sessionState=h.FAILED,window.gsoiSession=null,dispatchEvent(new CustomEvent(o.USER_DATA_FAILED,{detail:null}))}))}isFromProfile(){return new RegExp(/^https?:\/\/(profil-preprod|profil)\./).test(document.referrer)||new RegExp(/^https?:\/\/accounts\.google\.com/).test(document.referrer)||new RegExp(/^https?:\/\/(abonnement|bishop\.staging)\.sudouest\.fr/).test(document.referrer)||new RegExp(/^https?:\/\/appleid\.apple\.com/).test(document.referrer)}onUser(e,t){let i=!1;null===this.user||this.isFromProfile()||e(this.user,"local"),this.onUserFailed().then((()=>{i||t?.()})),this.onUserLoaded().then((()=>{i=!0,e(this.user,"profile")}))}async onUserFailed(){return new Promise(((e,t)=>{this.isInitialized()||(m.error("This module is not fully initialized."),t()),this.sessionState===h.FAILED&&e(),window.addEventListener(o.USER_DATA_FAILED,(()=>e()))}))}async onUserLoaded(){return new Promise(((e,t)=>{this.isInitialized()||(m.error("This module is not fully initialized."),t()),null!==this.user&&e(this.user),window.addEventListener(o.USER_DATA_LOADED,(t=>{e(t.detail)}))}))}async onUserChanged(){return new Promise(((e,t)=>{this.isInitialized()||(m.error("This module is not fully initialized."),t()),[h.FROM_XHR,h.FAILED].includes(this.sessionState)&&e(this.user),window.addEventListener(o.USER_DATA_LOADED,(t=>{e(t.detail)}))}))}loadLocalSession(){if(this.isFromProfile())return window.localStorage.removeItem(p),null;const e=window.localStorage.getItem(p);if(null===e||!g.get("userinfo"))return window.localStorage.removeItem(p),null;this.user=JSON.parse(e),this.sessionState=h.FROM_LOCAL}updateLocalStorage(){null!==this.user?(m.debug("Update local storage.",this.user),window.localStorage.setItem(p,JSON.stringify(this.user))):m.warn("Can't update local storage, session is empty.")}},b=u.prototype,y="initialize",v=[c],w=Object.getOwnPropertyDescriptor(u.prototype,"initialize"),S=u.prototype,E={}
1,Object.keys(w).forEach((function(e){E[e]=w[e]})),E.enumerable=!!E.enumerable,E.configurable=!!E.configurable,("value"in E||E.initializer)&&(E.writable=!0),E=v.slice().reverse().reduce((function(e,t){return t(b,y,e)||e}),E),S&&void 0!==E.initializer&&(E.value=E.initializer?E.initializer.call(S):void 0,E.initializer=void 0),void 0===E.initializer&&(Object.defineProperty(b,y,E),E=null),d=u))||d);var b,y,v,w,S,E},8111:(e,t,i)=>{function s(e,t){return t<0&&(t=e.length+t),e[t]||void 0}i.d(t,{at:()=>s})},213:(e,t,i)=>{i.d(t,{Z:()=>s});class s{static get(e){return document.querySelector(`meta[name="${e}"]`)?.getAttribute("content")||null}static getAll(e){const t=[];return document.querySelectorAll(`meta[name="${e}"]`).forEach((e=>t.push(e.getAttribute("content")))),t}}},4106:e=>{e.exports=JSON.parse('{"gironde":{"name":"Gironde","url":"/gironde/","center":{"lat":44.78200052301874,"lng":-0.598500283280543},"zoom":9,"code":"33"},"landes":{"name":"Landes","url":"/landes/","center":{"lat":43.99924103416189,"lng":-1.1152494946858018},"zoom":9,"code":"40"},"dordogne":{"name":"Dordogne","url":"/dordogne/","center":{"lat":44.95167902304322,"lng":0.29388427734375006},"zoom":9,"code":"24"},"pyrenees-atlantiques":{"name":"Pyrénées-Atlantiques","url":"/pyrenees-atlantiques/","center":{"lat":43.03287170171784,"lng":-0.9974603544875872},"zoom":9,"code":"64"},"lot-et-garonne":{"name":"Lot-et-Garonne","url":"/lot-et-garonne/","center":{"lat":44.10484456979067,"lng":0.712738037109375},"zoom":9,"code":"47"}
1,"charente":{"name":"Charente","url":"/charente/","center":{"lat":45.565506081514776,"lng":0.016479492187500003},"zoom":9,"code":"16"},"charente-maritime":{"name":"Charente-Maritime","url":"/charente-maritime/","center":{"lat":46.069896058164055,"lng":-1.2606811523437502},"zoom":9,"code":"17"},"default":{"name":"Gironde","url":"/gironde/","center":{"lat":44.78200052301874,"lng":-0.598500283280543},"zoom":9,"code":"33"}}')},435:e=>{e.exports=JSON.parse('{"context":{"default":"sudouest","thema_faits-divers":"Faits divers","thema_sport_rugby":"Rugby","thema_sport_football":"Football","thema_etudiant":"Etudiant","thema_sport":"Sports","thema_economie":"Economie","thema_culture":"Culture","thema_politique":"Politique","thema_environnement":"Environnement","thema_sante":"Santé","thema_societe_justice":"Justice","lieux_gironde":"Gironde","lieux_landes":"Landes","lieux_dordogne":"Dordogne","lieux_lot-et-garonne":"Lot-et-Garonne","lieux_charente-maritime":"Charente-Maritime","lieux_pyrenees-atlantiques":"Pyrénées-Atlantiques"},"debug":false,"key":"nDtrahO8rSK0QpBFGHrBJFphV2TobMXEikomTbnHTXOREXi6vcoLlamEwvxVBNzm","loginUrl":"https://profil.sudouest.fr/login/","percent":{"default":65,"event":0,"formatlong":99},"percentNoConsent":{"default":90,"event":0,"formatlong":99},"scripts":{"access":"https://assets.poool.fr/access.min.js","audit":"https://assets.poool.fr/audit.min.js","engage":"https://assets.poool.fr/engage.min.js"},"subscribeUrl":"https://abonnement.sudouest.fr"}')}},e=>{e.O(0,[752,652,22,634,887,795,543,67],(()=>{return t=9972,e(e.s=t);var t}));e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.