1(()=>{var t,e,i,s={1611(){},2280(){},2856(){},4383(){},4408(){},4551(){},4977(){},5294(){},5757(t,e,i){"use strict";var s=i(7793);function a(){const t=[];return[...document.querySelectorAll("[data-ads-core]")].forEach(e=>{const i=JSON.parse(e.getAttribute("data-ads-core")||"null"),s="Autre"===i?.playerPosition?"embedded":i?.playerPosition,a=i?.playerProvider;s&&a&&t.push(`${s.toLowerCase()}${a}`)}),0===t.length?"none":t.join(",")}function n(){return{auth_id:(0,s.A)("authId"),media_player:a(),page_title:document.title}}window.navigator.userAgent.includes("jsdom")||window.dataLayer.push(n());var o=i(2203);class r{config;onReady;pmcBridge;constructor({config:t,onReady:e=()=>{}}){this.config=t,this.onReady=e,this.pmcBridge=new o.A,this.onBatchLoaded=this.onBatchLoaded.bind(this),this.onBatchApi=this.onBatchApi.bind(this),this.onSubscriptionChanged=this.onSubscriptionChanged.bind(this)}init(){this.declareQueue();const t=function(t){const e=document.createElement("script");if(t.onLoadCallback&&(e.onload=t.onLoadCallback),t.onErrorCallback&&(e.onerror=t.onErrorCallback),"src"in t)e.src=t.src,e.defer=t.defer??!0;else{if(!("inlineCode"in t))throw new Error('generateScriptElement::requires either "src" or "inlineCode" parameter');e.innerHTML=t.inlineCode}return e}({src:"https://via.batch.com/v4/bootstrap.min.js",onLoadCallback:this.onBatchLoaded});document.body.appendChild(t)}declareQueue(){window.batchSDK=window.batchSDK||((...t)=>{(window.batchSDK.q=window.batchSDK.q||[]).push(t)})}onBatchLoaded(){window.batchSDK("setup",this.config.setup),window.batchSDK(this.onBatchApi)}async onBatchApi(t){t.on("subscriptionChanged",this.onSubscriptionChanged),this.onReady(t),this.setCustomUserId(t)}async onSubscriptionChanged(t,e){if(e.subscribed&&"true"!==window.localStorage.getItem("batchSubscriptionChanged")){window.localStorage.setItem("batchSubscriptionChanged","true");(await window.navigator.serviceWorker.ready).showNotification(this.config.showNotification.title,this.config.showNotification.options??{})}}async setCustomUserId(t){const e=await this.pmcBridge.getProfile(),i=await t.profile();if(e)await i.identify({customId:e.id}),window.dataLayer.push({event:"dispatch",batch_user_id:e.id});else{const e=await t.getInstallationID();await i.identify({customId:e}),window.dataLayer.push({event:"dispatch",batch_user_id:e})}}}function c(t,e){let i;const s=()=>{window?.pmdConsent?.queue?.find(e=>e.type===t)?(clearTimeout(i),e instanceof Function&&e()):window?.pmdConsent?.queue?.find(t=>"noConsentGiven"===t.type)?clearTimeout(i):i=window.setTimeout(()=>{requestAnimationFrame(s)},100)};window.requestAnimationFrame(s)}var d=i(2733);(new class{batchConfig;batchConfigNotification;batchSdk;isProdDomain;store;constructor(){this.store=new d.A,this.batchConfig=this.store.brand?.batch,this.batchConfigNotification=this.batchConfig?.notification,this.isProdDomain="prod"===this.store.brand?.metadata?.environment}init(){const t=this.getBatchConfig();t&&this.inject(t),this.addServiceWorker()}getBatchConfig(){const t=this.batchConfig?.dev,e=this.batchConfig?.prod,i=!t||this.isProdDomain?e:t;if(i)return{defaultIcon:this.batchConfigNotification?.defaultIcon||"",smallIcon:this.batchConfigNotification?.smallIcon||"",ui:{native:{}},apiKey:i.apiKey,dev:i.dev,subdomain:i.subdomain,authKey:i.authKey,vapidPublicKey:i.vapidPublicKey}}inject(t){c("allConsentGiven",()=>{this.batchSdk=new r({config:{setup:t,showNotification:{title:this.batchConfigNotification?.title||"",options:{body:this.batchConfigNotification?.body||"",data:{title:" ",alert:" ","com.batch":{da:{a:"batch.deeplink",args:{l:this.batchConfigNotification?.url||"",newTab:!0}}}}}}},onReady:()=>{window.batchInit=!0,document.dispatchEvent(new Event("BATCH:init"))}}),this.batchSdk.init()})}addServiceWorker(){c("allConsentGiven",()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/batchsdk-worker-loader.js").then(t=>{console.debug(`Registration succeeded. Scope is ${t.scope}`)}).catch(t=>{console.error(`Registration failed with ${t}`)})})}}).init();var l=i(6531),h=i(4342);(new class{pmcBridge;datadogClient;config;trigram;store;constructor(){this.pmcBridge=new h.A,this.store=new d.A}
1async init(){this.config=await this.pmcBridge.getConfig(),this.trigram=this.store.brand?.metadata.trigram??"",this.initDatadogClient()}initDatadogClient(){const t=this.config?.env??"prod",e=this.store.brand?.third_party?.datadog?.session_sample_rate||0;this.trigram?(this.datadogClient=new l.A({brandTrigram:this.trigram,version:this.store.common?.codeVersion??"",sessionSampleRate:t.includes("rec")?100:e,sessionReplaySampleRate:0,options:{defaultPrivacyLevel:"mask-user-input",profilingSampleRate:100,traceSampleRate:0},useSlimSdk:!1}),this.datadogClient.initializeDatadogRUM(),this.datadogClient.init(),window.DD_RUM.onReady(()=>{window.DD_RUM.setGlobalContextProperty("ows_site",!0)})):console.error("OWS::datadog: No trigram found")}}).init();(new class{pmcBridge;isUserConnected;constructor(){this.pmcBridge=new h.A,this.isUserConnected=!1}async init(){this.isUserConnected=await this.pmcBridge.isConnected(),this.pushPaywallSubscriber()}async pushPaywallSubscriber(){window.dataLayer.push({paywall_subscriber:await this.paywallSubscriber()})}async paywallSubscriber(){if(this.isUserConnected){if((await this.pmcBridge.getAllSubscriptions()).includes("paid-web-content"))return!0}return!1}}).init();i(5168),i(6653),i(2280),i(9972),i(2856),i(1611),i(6001),i(7657),i(4977),i(4551),i(4383),i(7947),i(8524),i(7097);var u=i(5896),p=(i(7810),i(867)),g=i(4488);class m{element;svgLeft;svgRight;carousel;carouselPosition;carouselItems;prevButton;nextButton;itemsToScrollBy;scrollByValue;debounceTimer;cachedPositions;constructor({element:t,svgLeft:e,svgRight:i,itemsToScrollBy:s=2}){this.element=t,this.svgLeft=e??"chevronLeft",this.svgRight=i??"chevronRight",this.itemsToScrollBy=s,this.scrollByValue=0,this.carousel=this.element?.querySelector("[data-carousel-target]"),this.carouselPosition={left:0,right:0},this.carouselItems=this.carousel?.children?Array.from(this.carousel.children):[],this.prevButton=null,this.nextButton=null,this.debounceTimer=null,this.cachedPositions=null,this.onClickNavigation=this.onClickNavigation.bind(this)}init(){if(!this.isCarouselNeeded())return;this.setCarouselAttributes(),this.setCarouselItemsAttributes(),this.createNavigationButtons();const t=this.calculateGapFromLayout();this.scrollByValue=(this.carouselItems[0].offsetWidth+t)*this.itemsToScrollBy,this.updateItemsPositionData(),this.addEvents()}isCarouselNeeded(){return this.carousel.scrollWidth>this.carousel.clientWidth}calculateGapFromLayout(){const t=this.carouselItems[0],e=this.carouselItems[1],i=t.getBoundingClientRect(),s=e.getBoundingClientRect().left-i.right;return s>0?s:0}updateItemsPositionData(){const t=this.carousel.getBoundingClientRect();this.carouselPosition.left=t.left,this.carouselPosition.right=t.right}addEvents(){this.element?.addEventListener("click",this.onClickNavigation)}onClickNavigation(t){const e=t.target,i=(0,g.A)({target:e,selectorString:".carousel-nav.prev",nodeName:["div"]}),s=(0,g.A)({target:e,selectorString:".carousel-nav.next",nodeName:["div"]});i?this.handleNavigationClick("prev"):s&&this.handleNavigationClick("next")}handleNavigationClick(t){const e="next"===t?1:-1,i=this.carousel.scrollLeft+this.scrollByValue*e;this.carousel.scrollTo({left:i,behavior:"smooth"}),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.cachedPositions=null,this.updateButtonsStatuses(),this.debounceTimer=null},500)}setCarouselAttributes(){this.element?.setAttribute("data-carousel",""),this.carousel?.classList.add("carousel-list"),this.carousel?.setAttribute("aria-live","polite"),this.carousel?.setAttribute("role","tablist")}setCarouselItemsAttributes(){const t=this.carouselItems?.length;this.carouselItems?.forEach((e,i)=>{e.classList.add("carousel-item"),e.setAttribute("role","tab"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-label",`${i+1} sur ${t}`)})}createNavigationButtons(){const t=document.createDocumentFragment(),e=this.createButton({type:"prev",title:"Slide précédente",svg:(0,p.A)({name:this.svgLeft})}),i=this.createButton({type:"next",title:"Slide suivante",svg:(0,p.A)({name:this.svgRight})});t.appendChild(e),t.appendChild(i),this.element?.insertBefore(t,this.element.firstChild),this.prevButton=this.element?.querySelector(".carousel-nav.prev")??null,this.nextButton=this.element?.querySelector(".carousel-nav.next")??null}createButton({type:t,title:e,svg:i}){const s=(0,u.Y)("button",{type:"button",title:e,className:`carousel-button ${t}`}),a=(0,u.Y)("div",{className:`carousel-nav ${t} ${"prev"===t?" hide":""}`,children:s});return s.appendChild(i),a}updateButtonsStatuses(){const t=this.carouselItems[0].getBoundingClientRect().left-this.carouselPosition.left,e=this.carouselItems[this.carouselItems.length-1].getBoundingClientRect().right-this.carouselPosition.right;if(!this.cachedPositions||Math.abs(this.cachedPositions.first-t)>.5||Math.abs(this.cachedPositions.last-e)>.5){this.cachedPositions={first:t,last:e};const i=this.prevButton,s=this.nextButton;Math.abs(t)<=32?i?.classList.add("hide"):i?.classList.remove("hide"),Math.abs(e)<=32?s?.classList.add("hide"):s?.classList.remove("hide")}}}const b=document.getElementById("homepagePeopleInNews-carousel");if(b){new m({element:b,itemsToScrollBy:2}).init()}i(4408),i(7120),i(9358);(new class{newsUpdates;ctaExpand;ctaExpandContent;ctaExpandText;ctaExpandedText;collapsibleItems;isExpanded=!1;constructor(){this.newsUpdates=document.querySelector(".newsUpdates"),this.ctaExpand=this.newsUpdates?.querySelector("#newsUpdates-expandCta")||null,this.ctaExpandContent=this.ctaExpand?.querySelector(".cta-text")||null,this.ctaExpandText=this.ctaExpandContent?.textContent||"Voir plus d'articles",this.ctaExpandedText=this.ctaExpand?.getAttribute("data-content-expanded")||"Voir moins d'articles",this.collapsibleItems=this.newsUpdates?.querySelectorAll(".newsUpdates-item.hidden")||[],this.isExpanded=!1,this.onCtaExpandClick=this.onCtaExpandClick.bind(this)}init(){this.addEvents()}addEvents(){this.ctaExpand?.addEventListener("click",this.onCtaExpandClick)}onCtaExpandClick(){if(this.newsUpdates&&this.ctaExpandContent){this.isExpanded=!this.isExpanded;for(const t of this.collapsibleItems)t.classList.toggle("hidden");this.ctaExpand?.classList.toggle("isExpanded"),this.ctaExpandContent.textContent=this.isExpanded?this.ctaExpandedText:this.ctaExpandText,this.ctaExpand?.setAttribute("aria-expanded",String(this.isExpanded))}}}).init();(new class{bannerTopElement;ads;constructor(){this.bannerTopElement=document.querySelector(".ad-banniereHaute .ads-core-placer"),this.ads={},this.callbackSlotRender=this.callbackSlotRender.bind(this),this.onAdsRender=this.onAdsRender.bind(this)}
1init(){this.setAds(),this.bannerTopElement&&this.getBannerTopData(),this.addGoogleTagListener()}setAds(){c("allConsentGiven",()=>{this.enableAds()}),c("adsConsentGiven",()=>{this.enableAds()})}enableAds(){"true"!==document.body.getAttribute("data-puboff")&&this.setUserPaidStatusInStorage()}async setUserPaidStatusInStorage(){const t=new h.A;Promise.all([t.hasPassPrisma(),t.hasSubscription()]).then(([t,e])=>{const i=t||e,s=localStorage.getItem("ows-storage");let a={};s&&(a=JSON.parse(s)),Object.assign(a,{userNoAds:i}),localStorage.setItem("ows-storage",JSON.stringify(a))})}getBannerTopData(){this.ads.bannerTop={elementId:this.bannerTopElement?.getAttribute("id")||null}}addGoogleTagListener(){!function({callback:t=!1}={}){window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(()=>{window.googletag.pubads().addEventListener("slotRenderEnded",e=>{t&&"function"==typeof t&&t(e,e.slot.getSlotElementId())})})}({callback:this.callbackSlotRender})}callbackSlotRender(t,e){this.onAdsRender(e)}onAdsRender(t){const e=this.getAdPlaceholder(t);e&&this.setAdPlaceholderLoaded(e)}getAdPlaceholder(t){return document.getElementById(t)?.closest(".containerAds")||null}setAdPlaceholderLoaded(t){t.classList.add("adLoaded")}}).init();i(9120),i(8304);var f=i(1273);(new class{tagList;isDesktop;constructor(){this.tagList=document.querySelector(".tagList"),this.isDesktop=window.matchMedia("(min-width: 1000px)").matches}init(){if(this.isDesktop&&this.tagList){new f.A(this.tagList).init()}}}).init();i(5294);(new class{pushMagazine;subscribeCta;previewCta;readMagazineCta;PMCBridge;isUserSubscribed;constructor(){this.pushMagazine=document.querySelector(".pushMagazine"),this.subscribeCta=this.pushMagazine?.querySelector("[data-subscribe-cta]"),this.previewCta=this.pushMagazine?.querySelector("[data-preview-cta]"),this.readMagazineCta=this.pushMagazine?.querySelector("[data-read-magazine-cta]"),this.PMCBridge=new h.A,this.isUserSubscribed=!1}
1async init(){this.initPreviewCta();!0===await this.PMCBridge.isConnected()&&this.readMagazineCta?this.contextualizeForConnectedUser():this.subscribeCta&&(this.isUserSubscribed=await this.PMCBridge.hasSubscription(),this.isUserSubscribed&&this.hideSubscribeCta())}initPreviewCta(){if(!this.previewCta)return;const t=this.previewCta.dataset.titleId;t&&this.previewCta.addEventListener("click",async e=>{e.preventDefault();const i=window.open("about:blank","_blank");try{const e=await fetch(`https://shop.prismamedia.com/api/v2/shop/magazine_title_taxon/${t}/preview`);if(!e.ok)return void i?.close();const s=await e.json();s?.url&&"string"==typeof s.url?i?i.location.href=s.url:window.open(s.url,"_blank","noopener,noreferrer"):i?.close()}catch{i?.close()}})}hideSubscribeCta(){this.subscribeCta?.classList.add("hidden")}contextualizeForConnectedUser(){this.readMagazineCta?.classList.remove("hidden"),this.previewCta?.classList.add("hidden"),this.subscribeCta?.classList.add("hidden")}}).init();(new class{selectedArticlesWrapper;constructor(){this.selectedArticlesWrapper=document.querySelectorAll(".selectedArticles-carousel"),this.initCarousel=this.initCarousel.bind(this)}init(){if(this.selectedArticlesWrapper)for(const t of this.selectedArticlesWrapper)this.initCarousel(t)}initCarousel(t){new m({element:t,itemsToScrollBy:2}).init()}}).init();(new class{tabsLink;isDesktop;constructor(){this.tabsLink=document.querySelector(".tabsLink"),this.isDesktop=window.matchMedia("(min-width: 1000px)").matches}init(){if(this.isDesktop&&this.tabsLink){new f.A(this.tabsLink).init()}}}).init();const w=document.getElementById("illustratedCards-carousel");if(w){new m({element:w,itemsToScrollBy:2}).init()}},6001(){},6653(){},7120(){},7657(){},7947(){},9358(){},9972(){}},a={};function n(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]={exports:{}};return s[t](i,i.exports,n),i.exports}n.m=s,t=[],n.O=(e,i,s,a)=>{if(!i){var o=1/0;for(l=0;l<t.length;l++){for(var[i,s,a]=t[l],r=!0,c=0;c<i.length;c++)(!1&a||o>=a)&&Object.keys(n.O).every(t=>n.O[t](i[c]))?i.splice(c--,1):(r=!1,a<o&&(o=a));if(r){t.splice(l--,1);var d=s();void 0!==d&&(e=d)}}return e}a=a||0;for(var l=t.length;l>0&&t[l-1][2]>a;l--)t[l]=t[l-1];t[l]=[i,s,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.f={},n.e=t=>Promise.all(Object.keys(n.f).reduce((e,i)=>(n.f[i](t,e),e),[])),n.u=t=>"scripts/"+(3677===t?"dynamic-import-insitepanel":t)+"."+{3677:"9528dcb050bc686a77d5",8674:"1118c8fdcfd2e5f225fd"}[t]+".js",n.miniCssF=t=>"styles/dynamic-import-insitepanel.141707e8527ad1502271.css",n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),e={},i="one-website:",n.l=(t,s,a,o)=>{if(e[t])e[t].push(s);else{var r,c;if(void 0!==a)for(var d=document.getElementsByTagName("script"),l=0;l<d.length;l++){var h=d[l];if(h.getAttribute("src")==t||h.getAttribute("data-webpack")==i+a){r=h;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",n.nc&&r.setAttribute("nonce",n.nc),r.setAttribute("data-webpack",i+a),r.src=t),e[t]=[s];var u=(i,s)=>{r.onerror=r.onload=null,clearTimeout(p);var a=e[t];if(delete e[t],r.parentNode&&r.parentNode.removeChild(r),a&&a.forEach(t=>t(s)),i)return i(s)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),c&&document.head.appendChild(r)}},n.p="/front/site/",(()=>{if("undefined"!=typeof document){var t=t=>new Promise((e,i)=>{var s=n.miniCssF(t),a=n.p+s;if(((t,e)=>{for(var i=document.getElementsByTagName("link"),s=0;s<i.length;s++){var a=(o=i[s]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===t||a===e))return o}var n=document.getElementsByTagName("style");for(s=0;s<n.length;s++){var o;if((a=(o=n[s]).getAttribute("data-href"))===t||a===e)return o}})(s,a))return e();((t,e,i,s,a)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",n.nc&&(o.nonce=n.nc),o.onerror=o.onload=i=>{if(o.onerror=o.onload=null,"load"===i.type)s();else{var n=i&&i.type,r=i&&i.target&&i.target.href||e,c=new Error("Loading CSS chunk "+t+" failed.\n("+n+": "+r+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=n,c.request=r,o.parentNode&&o.parentNode.removeChild(o),a(c)}},o.href=e,i?i.parentNode.insertBefore(o,i.nextSibling):document.head.appendChild(o)})(t,a,null,e,i)}),e={9743:0};n.f.miniCss=(i,s)=>{e[i]?s.push(e[i]):0!==e[i]&&{3677:1}
1[i]&&s.push(e[i]=t(i).then(()=>{e[i]=0},t=>{throw delete e[i],t}))}}})(),(()=>{var t={9743:0};n.f.j=(e,i)=>{var s=n.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var a=new Promise((i,a)=>s=t[e]=[i,a]);i.push(s[2]=a);var o=n.p+n.u(e),r=new Error;n.l(o,i=>{if(n.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var a=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",r.name="ChunkLoadError",r.type=a,r.request=o,s[1](r)}},"chunk-"+e,e)}},n.O.j=e=>0===t[e];var e=(e,i)=>{var s,a,[o,r,c]=i,d=0;if(o.some(e=>0!==t[e])){for(s in r)n.o(r,s)&&(n.m[s]=r[s]);if(c)var l=c(n)}for(e&&e(i);d<o.length;d++)a=o[d],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(l)},i=self.webpackChunkone_website=self.webpackChunkone_website||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var o=n.O(void 0,[2570,3537],()=>n(5757));o=n.O(o)})(); 2//# sourceMappingURL=homepage.f4663bcbf9062d788db6.js.map
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.