vendor: 4,712 bytes, lines 1-6
1/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 2/*! 3* tabbable 6.3.0 4* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 5*/ 6!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}
6(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}})); 7 8; 9/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 10(function($,Drupal){let autocomplete;function autocompleteSplitValues(value){const result=[];let quote=false;let current='';const valueLength=value.length;let character;for(let i=0;i<valueLength;i++){character=value.charAt(i);if(character==='"'){current+=character;quote=!quote;}else if(character===','&&!quote){result.push(current.trim());current='';}else current+=character;}if(value.length>0)result.push(current.trim());return result;}function extractLastTerm(terms){return autocomplete.splitValues(terms).pop();}function searchHandler(event){const options=autocomplete.options;if(options.isComposing)return false;const term=autocomplete.extractLastTerm(event.target.value);if(term.length>0&&options.firstCharacterDenyList.includes(term[0]))return false;return term.length>=options.minLength;}function sourceData(request,response){const elementId=this.element.attr('id');if(!(elementId in autocomplete.cache))autocomplete.cache[elementId]={};function showSuggestions(suggestions){const tagged=autocomplete.splitValues(request.term);const il=tagged.length;for(let i=0;i<il;i++)if(suggestions.includes(tagged[i]))suggestions.splice(suggestions.indexOf(tagged[i]),1);response(suggestions);}const term=autocomplete.extractLastTerm(request.term);function sourceCallbackHandler(data){autocomplete.cache[elementId][term]=data;showSuggestions(data);}if(autocomplete.cache[elementId].hasOwnProperty(term))showSuggestions(autocomplete.cache[elementId][term]);else{const options=$.extend({success:sourceCallbackHandler,data:{q:term}},autocomplete.ajax);$.ajax(this.element.attr('data-autocomplete-path'),options);}}function focusHandler(){return false;}function selectHandler(event,ui){const terms=autocomplete.splitValues(event.target.value);terms.pop();terms.push(ui.item.value);event.target.value=terms.join(', ');return false;}function renderItem(ul,item){return $('<li>').append($('<a>').html(item.label)).appendTo(ul);}Drupal.behaviors.autocomplete={attach(context){once('autocomplete','input.form-autocomplete',context).forEach((element)=>{const $autocomplete=$(element);const blacklist=$autocomplete.attr('data-autocomplete-first-character-blacklist');if(blacklist!==undefined)Drupal.deprecationError({message:'The data-autocomplete-first-character-blocklist attribute is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use firstCharacterDenyList instead. See https://www.drupal.org/node/3472016.'});const denyList=$autocomplete.attr('data-autocomplete-first-character-denylist');Drupal.deprecatedProperty({target:autocomplete.options,deprecatedProperty:'firstCharacterBlacklist',message:'The firstCharacterBlacklist property is deprecated
10in drupal:11.2.0 and is removed from drupal:12.0.0. Use firstCharacterDenyList instead. See https://www.drupal.org/node/3472016.'});$.extend(autocomplete.options,{firstCharacterDenyList:denyList||blacklist});$autocomplete.autocomplete(autocomplete.options).each(function(){$(this).data('ui-autocomplete')._renderItem=autocomplete.options.renderItem;});$autocomplete.on('compositionstart.autocomplete',()=>{autocomplete.options.isComposing=true;});$autocomplete.on('compositionend.autocomplete',()=>{autocomplete.options.isComposing=false;});});},detach(context,settings,trigger){if(trigger==='unload')$(once.remove('autocomplete','input.form-autocomplete',context)).autocomplete('destroy');}};autocomplete={cache:{},splitValues:autocompleteSplitValues,extractLastTerm,options:{source:sourceData,focus:focusHandler,search:searchHandler,select:selectHandler,renderItem,minLength:1,firstCharacterDenyList:'',isComposing:false},ajax:{dataType:'json',jsonp:false}};Drupal.autocomplete=autocomplete;})(jQuery,Drupal);; 11(()=>{const c=document.querySelectorAll(".btn-toggle__open"),o=document.querySelectorAll(".btn-toggle__close"),s=()=>{c&&c.forEach((e,n)=>{const t=o[n];e.addEventListener("click",()=>{e.classList.add("active"),t&&t.classList.remove("active")})}),o&&o.forEach((e,n)=>{const t=c&&c[n];e.addEventListener("click",()=>{e.classList.add("active"),t&&t.classList.remove("active")})})};document.addEventListener("DOMContentLoaded",()=>{polyfillsIE(),s()})})(); 12 13; 14(()=>{const s=t=>{const e=t.parentElement.querySelector(".media-content-transcription");t.classList.toggle("active"),t.classList.contains("active")?t.setAttribute("aria-expanded",!0):t.setAttribute("aria-expanded",!1),e?e.classList.toggle("active"):t.nextElementSibling.classList.toggle("active")},i=()=>{document.querySelectorAll("[data-js-dropdown-toggle]").forEach(t=>{const e=t.closest(".block-facet--links");e?e.addEventListener("click",a=>{s(t)}):t.addEventListener("click",a=>{s(t)})})};window.addEventListener("load",()=>{polyfillsIE(),i()})})(); 15 16; 17(()=>{const d=document.querySelector("body"),u=drupalSettings.yellowstone.cookies,r=u.analytics,y=u.list,h=u.use_categories;let m=!1;const B=()=>u.txt!==null&&u.txt.value!==""?u.txt.value:`<p>Ce site utilise des cookies pour assurer le bon fonctionnement et r\xE9aliser des statistiques de visite. En cliquant sur Accepter, vous consentez \xE0 l'utilisation de ces cookies. Vous pouvez \xE0 tout moment modifier vos pr\xE9f\xE9rences. Pour plus d'informations, veuillez consulter la page <a href="/node/166" aria-label="Acc\xE9der \xE0 la page de gestion des cookies">Gestion des cookies.</a></p>`,C=()=>{const e=`<div class="cookies__shadow"></div> 18 <div id="cookieBanner" class="cookies module shadow" tabindex="1" aria-modal="true" role="dialog" aria-labelledby="cookieBannerTitle"> 19 <div role="document"> 20 <div class="cookies__title"> 21 <i class="list-group-item__icon btn-icon btn-icon-secondary btn-icon" data-icon="cookies" aria-hidden="true"></i> 22 <h4 id="cookieBannerTitle">Cookies</h4> 23 </div> 24 <div class="cookies__content"> 25 ${B()} 26 </div> 27 <div class="cookies__choices"> 28 <div class="cookies__choices__flex"> 29 <button aria-describedby="cookieBannerTitle" type="button" class="btn btn-primary btn-cookies" aria-label="Selectionnez pour afficher les pr\xE9f\xE8rences" aria-expanded="false" data-cookies-choices-title>Afficher les pr\xE9f\xE9rences</button> 30 <div class="cookies__accept"> 31 <button class="btn btn-primary btn-cookies" data-dismiss="allOk" aria-describedby="cookieBannerTitle">Tout accepter</button> 32 <button class="btn btn-secondary btn-cookies" data-dismiss="allKo" aria-describedby="cookieBannerTitle">Tout refuser</button> 33 </div> 34 </div> 35 36 </div> 37 </div> 38 </div>`;d.insertAdjacentHTML("afterbegin",e);
38const t=document.querySelector("[data-set-cookies]"),o=document.querySelector(".cookies");t&&t.addEventListener("keydown",n=>{n.key==="Tab"?o.focus():n.key==="Escape"&&q(o,t)}),o.addEventListener("keydown",n=>{n.key==="Escape"&&q(o,t)});const s=o.querySelector(".cookies__choices"),c=s.querySelectorAll(".btn-cookies"),i=s.querySelector(".cookies__btn")||null;c.forEach(n=>{n.getAttribute("data-dismiss")==="allKo"&&n.addEventListener("keydown",l=>{l.key==="Tab"&&!l.shiftKey&&(i&&i.classList.contains("align-right")?document.querySelector(".cookies__choices__options").focus():o.focus())})});const a=o.querySelector(".cookies__content a")||null;a&&a.addEventListener("keydown",n=>{n.shiftKey&&n.keyCode===9&&(n.preventDefault(),o.querySelector("[data-cookies-choices-title]").getAttribute("data-toggle-status")==="active"?i.querySelector("button").focus():o.querySelector('[data-dismiss="allKo"]').focus())}),i&&i.addEventListener("keydown",n=>{n.key==="Tab"&&!n.shiftKey&&o.focus()})},q=(e,t)=>{e&&(e.forEach(o=>{o&&o.remove()}),t.focus())},M=e=>{let t=1;return e[0]==="-"&&(t=1,e=e.substr(1)),function(o,s){return t===1?s[e].localeCompare(o[e]):o[e].localeCompare(s[e])}},G=()=>{const e=[];y.forEach(o=>{const s=o.category;s.id===""&&(s.id="autre",s.label="Autre"),e.push(s)});const t=[];return e.forEach(o=>{let s=0;e.forEach(c=>{c.id===o.id&&s++}),s>1&&t.push(o)}),t},D=()=>{const e={},t=[];G().forEach(o=>{const s=o.id;e[s]=o});for(const o in e)t.push(e[o]);return t},N=()=>D().sort(M("id")),P=()=>{N().forEach(e=>{const t=document.querySelector(".cookies__choices__options"),o=e.label.charAt(0).toUpperCase()+e.label.slice(1),s=e.description||null,c=s||"",i=e.id,l=`<div class="cookies__cookie has__cookies"> 39 <div class="cookies__cookie__content"> 40 <button type="button" class="cookies__cookie__choice checked" data-consent=true data-category-choices data-category="${e.id}"><span>${o}</span></button> 41 ${s?`<div class="cookies__cookie__content--title"> 42 <button type="button" class="cookies__cookie__toggle" aria-label="afficher la description ${o}" aria-describedby="${i}-desc" data-category-choices-toggle><i data-icon="chevron" aria-hidden="true"></i></button> 43 </div>`:""} 44 </div> 45 ${s?` <div class="cookies__cookie__details"> 46 <p class="cookies__cookie__text" id="${i}-desc" data-cookies-choices-text>${c}</p> 47 </div>`:""} 48 </div>`;t.insertAdjacentHTML("beforeEnd",l)})},j=()=>{y.forEach(e=>{const t=e.category,o=e.statut,s=e.desc||null,c=document.querySelector(`[data-category="${t.id}"]`),i=e.label.charAt(0).toUpperCase()+e.label.slice(1),a=e.id;let n=document.querySelector(".cookies__choices__options h5"),l="";const Y=s?"d-block":"d-none";let f,k,T="",A="";document.cookie.indexOf(`${e.id}=true`)>-1||document.cookie.indexOf("hasConsent=true")>-1?(f="checked",k=!0):o==="2"||o==="1"?(f="checked",k=!0,T='aria-pressed="true"',A=o==="2"?"disabled":""):(f="",k=!1),a==="matomo"&&(A="disabled"),h&&c&&(n=c.closest(".has__cookies").querySelector(".cookies__cookie__details"),l="has__category");const O=`<div class="cookies__cookie ${l}" data-cookies-cookie="${e.id}"> 49 <div class="cookies__cookie__content"> 50 ${h&&c?'<div class="cookies__cookie__list"></div>':""} 51 <button type="button" role="switch" class="cookies__cookie__choice ${f}" data-consent="${k}" aria-checked="${k}" data-cookies-category="${t.id}" ${T} ${A}><span>${i}</span></button> 52 ${s?`<div class="cookies__cookie__content--title"> 53 <button type="button" role="switch" class="cookies__cookie__toggle ${Y}" aria-checked="${k}" aria-label="afficher la description ${i}" aria-describedby="${a}-desc" data-cookies-choices-toggle><i data-icon="chevron" aria-hidden="true"></i></button> 54 </div>`:""} 55 </div> 56 ${s?`<div class="cookies__cookie__details"> 57 <p class="cookies__cookie__text" id="${a}-desc" data-cookies-choices-text>${e.desc}</p> 58 </div>`:""} 59 </div> 60 </div>`;n&&(h&&c?n.insertAdjacentHTML("beforeEnd",O):n.insertAdjacentHTML("afterEnd",O))})},H=()=>{document.querySelectorAll("[data-category]").forEach(t=>{const o=t.getAttribute("data-category"),s=document.querySelectorAll(`[data-cookies-category=${o}]`)||null;(document.cookie.indexOf("hasConsent")===-1||document.cookie.indexOf("hasConsent=false")>-1)&&(t.classList.remove("checked"),t.setAttribute("data-consent",!1)),s.forEac
60h(c=>{c.getAttribute("data-consent")==="false"&&(t.classList.remove("checked"),t.setAttribute("data-consent",!1))})})},_=e=>{e.setAttribute("data-toggle-status","inactive"),e.setAttribute("aria-expanded","false")},p=e=>{e.setAttribute("data-toggle-status","active"),e.setAttribute("aria-expanded","true")},K=()=>{const e=document.querySelectorAll("[data-category-choices-toggle]"),t=document.querySelectorAll(".cookies__cookie");e.forEach(o=>{const s=o.closest(".cookies__cookie"),c=s.querySelector(".cookies__cookie__details");o.addEventListener("click",()=>{o.getAttribute("data-toggle-status")==="active"?(_(o),s.classList.remove("active"),c.style.display="none"):(t.forEach(i=>{const a=i.querySelector(".cookies__cookie__details"),n=i.querySelector(".cookies__cookie__toggle");a&&(a.style.display="none"),i.classList.remove("active"),n&&_(n)}),p(o),s.classList.add("active"),c.style.display="block")})})},z=()=>{document.querySelectorAll("[data-cookies-choices-toggle]").forEach(t=>{const o=t.closest("[data-cookies-cookie]"),s=o.querySelector(".cookies__cookie__details");t.addEventListener("click",()=>{t.getAttribute("data-toggle-status")==="active"?(_(t),o.classList.remove("active"),s.style.display="none"):(p(t),o.classList.add("active"),s.style.display="block")})})},U=()=>{d.querySelector("[data-cookies-choices-title]").addEventListener("click",e=>{e.preventDefault();const t=d.querySelector("[data-cookies-choices-title]"),o=d.querySelector(".cookies__choices");if(m===!1){let c=!1,i="";document.cookie.indexOf("_ga")>-1&&(c=!0,i="checked");const n=`<div class="cookies__choices__options" style="display:none;" 61 data-cookies-choices-content> 62 <h5 class="cookies__choices__title">Choisissez le type de 63 cookies qui vous convient</h5> 64 ${r!==!1?`<div class="cookies__cookie" data-cookies-cookie="_ga"> 65 <div class="cookies__cookie__content"> 66 <button type="button" class="cookies__cookie__choice ${i}" data-analytics data-consent=${c}><span>Google analytics</span></button> 67 <div class="cookies__cookie__content--title"> 68 <button type="button" class="cookies__cookie__toggle" aria-label="Afficher la description Google analytics" aria-describedby="google-desc" data-category-choices-toggle><i data-icon="chevron" aria-hidden="true"></i></button> 69 </div> 70 </div> 71 <div class="cookies__cookie__details"> 72 <p class="cookies__cookie__text" id="google-desc" data-cookies-choices-text>Les services de mesure d'audience permettent de g\xE9n\xE9rer des statistiques de fr\xE9quentation utiles \xE0 l'am\xE9lioration du site.</p> 73 </div> 74 </div>`:""} 75 </div> 76 <div class="cookies__btn align-right"> 77 <button aria-describedby="cookieBannerTitle" 78 class="btn btn-primary icon icon-right align-self-start close" 79 type="button" aria-label="Enregistrer et fermer" 80 data-dismiss="choice"> 81 Enregistrer et fermer 82 <i data-icon="arrow" aria-hidden="true"></i> 83 </button> 84 </div>`;o.insertAdjacentHTML("beforeend",n),P(),j(),K(),z(),H(),m=!0}const s=d.querySelector("[data-cookies-choices-content]");$toggle(s,"block"),t.getAttribute("data-toggle-status")==="active"?(_(t),document.querySelector(".cookies__btn").classList.remove("align-right"),document.querySelector("body").style.overflow="inherit",document.querySelector(".cookies__shadow").style.display="none"):(p(t),document.querySelector(".cookies__btn").classList.add("align-right"),document.querySelector(".cookies__shadow").style.display="block",document.querySelectorAll(".cookies__cookie__toggle ")[0].focus())})},b=e=>{e.classList.add("checked"),e.setAttribute("data-consent","true"),e.setAttribute("aria-pressed","true"),e.setAttribute("aria-checked","true")},g=e=>{e.classList.remove("checked"),e.setAttribute("data-consent","false"),e.setAttribute("aria-pressed","fal
84se"),e.setAttribute("aria-checked","false")},V=e=>{const t=e.getAttribute("data-cookies-category")||null,o=document.querySelector(`[data-category= ${t}]`)||null;if(e.classList.contains("checked"))g(e),o&&g(o);else if(b(e),t==="videos"){const s=document.querySelectorAll("[data-cookies-category=videos]");let c=0;if(s.forEach(i=>{i.getAttribute("data-consent")==="true"&&c++}),c===s.length){const a=document.querySelector(".cookies").querySelector('[data-category="videos"]');a.setAttribute("data-consent","true"),a.setAttribute("aria-pressed","true"),a.classList.add("checked")}}},J=e=>{const t=e.getAttribute("data-category"),o=document.querySelectorAll(`[data-cookies-category= ${t}]`),s=document.querySelector("[data-toggle-all-cookies]");e.classList.contains("checked")?(o.forEach(c=>{g(c)}),g(e),s&&g(s)):(o.forEach(c=>{b(c)}),b(e))};function $(){dataLayer.push(arguments)}const v=()=>{if(r!==!1&&r.charAt(0)==="G"){const e=document.createElement("script");e.setAttribute("type","text/javascript"),e.async=!0,e.id="gtag",e.src=`https://www.googletagmanager.com/gtag/js?id=${r}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],$("js",new Date),$("config",r,{cookie_flags:`domain=${document.location.hostname};`})}else r!==!1&&((function(e,t,o,s,c,i,a){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,i=t.createElement(o),a=t.getElementsByTagName(o)[0],i.async=1,i.src=s,a.parentNode.insertBefore(i,a)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create",r,document.location.hostname),ga("send","pageview"))},x=()=>{y.forEach(o=>{const s=o.id;w(s)});const e=new Date;e.setTime(e.getTime()+4464*60*60*1e3);const t="; expires="+e.toGMTString();document.cookie=`hasConsent=true; path=/ ${t}; Secure; SameSite=Strict`,v()},I=()=>{const t=new Date;return t.setTime(t.getTime()+395*24*60*60*1e3),t.toGMTString(),t},w=e=>{let o="";{const s=new Date;s.setTime(s.getTime()+395*24*60*60*1e3),o="; expires="+s.toUTCString()}document.cookie=e+"=true"+o+"; path=/; Secure; SameSite=Strict"},R=e=>{if(document.cookie.length>0){let t=document.cookie.indexOf(`${e}=`);if(t!==-1){t+=e.length+1;let o=document.cookie.indexOf(";",t);return o===-1&&(o=document.cookie.length),unescape(document.cookie.substring(t,o))}}return null},W=e=>{document.cookie=e+"=; Max-Age=-99999999; path=/; Secure; SameSite=Strict"},S=()=>
84{if(r!==!1){const e=document.head.querySelector("script#gtag")||null,t=[`_ga_${r.substring(2)}`,"__utma","__utmb","__utmc","__utmt","__utmv","__utmz","_ga","_gat","_gid"],o=";path=/";let{hostname:s}=document.location;!s.indexOf("www.")===-1&&(s=s.substring(4));const c=`${";domain=."+s}`,i="Thu, 01-Jan-1970 00:00:01 GMT";for(let a=0;a<t.length;a++)document.cookie=`${t[a]}=${o}${c};expires=${i}`;e&&e.remove(),window[`ga-disable-${r}`]=!0}},E=()=>{r!==!1&&S();const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let o;e[t].substr(0,1)===" "?o=e[t].substr(1):o=e[t];const s=e[t].split("=");if(o.split("=")[0]!=="hasConsent"&&o.split("=")[0]!=="notifStatut"){const c=";path=/",i="Thu, 01-Jan-1970 00:00:01 GMT";document.cookie=`${s[0]}=${c};expires=${i}`}}},F=()=>{R("hasConsent")?document.cookie.indexOf("hasConsent=true")>-1?x():document.cookie.indexOf("hasConsent=choice")>-1?document.cookie.indexOf("_ga=true")>-1?v():document.cookie.indexOf("_ga=false")>-1&&S():E():C()},Q=()=>{if(document.querySelector(".front")){const e=drupalSettings.media||null,t=document.querySelector(".front [data-highlight-video] .video");if(t){const o=e?Object.values(e).filter(a=>a.type==="video")[0]:"";let s="";const c=()=>(s=o.iframe.slice(0,o.iframe.indexOf('" allow="'))+"&autoplay=1&mute=1"+o.iframe.slice(o.iframe.indexOf('" allow="')),s),i=()=>{t&&(t.classList.remove("not_allowed"),t.innerHTML=c())};document.cookie.indexOf("youtube=true")>-1?i():t&&(t.classList.add("not_allowed"),t.innerHTML=`<p> ${o.provider.charAt(0).toUpperCase()+o.provider.slice(1)} est d\xE9sactiv\xE9 </p> 85 <button class="allow__cookie" data-allow-cookie= "${o.provider}">${ModuloTS.Allow}</button>`)}}},X=e=>{const t=document.querySelectorAll("[data-cookies-cookie]"),o=e.target.getAttribute("data-dismiss"),c="expires="+I()+";path=/; Secure; SameSite=Strict";o==="allOk"?(document.cookie="hasConsent=true;"+c,x()):o==="allKo"?(document.cookie="hasConsent=false;"+c,E()):(document.cookie="hasConsent=choice;"+c,t.forEach(i=>{const a=i.getAttribute("data-cookies-cookie"),n=i.querySelector("[data-consent]").getAttribute("data-consent");a==="_ga"?n==="false"?S():v():n==="true"?w(a):W(a)})),Q(),document.querySelector(".cookies").remove(),document.querySelector(".cookies__shadow").remove(),m=!1},L=()=>{const e=document.querySelector(".cookies")||null;e&&(e.style.right=`calc(50% - ${e.offsetWidth/2}px)`,U(),d.querySelector(".cookies").addEventListener("click",t=>{const o=t.target.getAttribute("data-dismiss"),s=t.target.getAttribute("data-consent"),c=t.target.hasAttribute("data-toggle-all-cookies"),i=t.target.hasAttribute("data-category");o&&X(t),s&&(c?toggleAll(t.target):i?J(t.target):V(t.target))}))};if((()=>{F();const e=document.querySelector("[data-set-cookies]")||null;e&&e.addEventListener("click",async()=>{(document.querySelector(".cookies")||null)===null&&(await C(),L())}),L()})(),r===!0){const e=e||[];e.push(["_setAccount",r]),e.push(["_trackPageview"]),(function(){const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=`${document.location.protocol==="https:"?"https://ssl":"http://www"}.google-analytics.com/ga.js`;const o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(t,o)})()}})(); 86 87; 88window.addEventListener("DOMContentLoaded",function(){const i=typeof drupalSettings<"u"&&drupalSettings.yellowstone&&drupalSettings.yellowstone.cookies&&drupalSettings.yellowstone.cookies.matomo_optout,e=document.getElementById("matomo-opt-out");if(e)if(i!==void 0){const n=document.createElement("div");n.className="spinner-container",n.innerHTML='<div class="spinner"></div>',e.appendChild(n);const s=document.createElement("div");for(s.innerHTML=i;s.firstChild;){const r=s.firstChild;if(e.parentNode?.insertBefore(r,e.nextSibling),r.nodeName.toLowerCase()==="script"){const t=r,o=document.createElement("script");t.src?o.src=t.src:o.textContent=t.textContent,Array.from(t.attributes).forEach(l=>{o.setAttribute(l.name,l.value)}),t.parentNode?.replaceChild(o,t)}}const a=new MutationObserver(()=>{e&&(n.remove(),a.disconnect())});a.observe(e,{childList:!0,subtree:!0})}else console.warn("La propri\xE9t\xE9 matomo_optout est introuvable dans drupalSettings.yellowstone.cookies"),e.remove();else console.warn("L'\xE9l\xE9ment #matomo-opt-out est introuvable dans le DOM")}); 89 90; 91(()=>{const e=document.querySelectorAll(".tag--hidden"),t=document.querySelector(".tags__show-more"),l=()=>{t&&e&&e.length>0&&(e.forEach(o=>{o.style.display="none"}),t.textContent="+"+e.length,t.setAttribute("aria-label",`${ModuloTS["Show more"]}`))},i=()=>{t?.addEventListener("click",()=>{const o=t.getAttribute("aria-expanded")==="true";t.setAttribute("aria-expanded",(!o).toString()),e.forEach((n,s)=>{o?(n.style.transition="opacity 0.4s",setTimeout(()=>{n.style.opacity="0.3",setTimeout(()=>{n.style.display="none"},400)},s*60)):(n.style.display="",n.style.transition="opacity 0.4s",setTimeout(()=>{n.style.opacity="1"},s*60+10))}),o?(t.textContent="+"+e.length,t.setAttribute("aria-label",`${ModuloTS["Show more"]}`)):(t.textContent="-"+e.length,t.setAttribute("aria-label",`${ModuloTS["Show less"]}`))})};document.addEventListener("DOMContentLoaded",()=>{waitForElm(".tags__show-more").then(()=>{l(),e.forEach(o=>{o.style.opacity="0.3"}),i()})})})(); 92 93;
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.