PageSourceSearch

https://www.mdph62.fr/sites/default/files/js/js_ielACQj7z0Lx_eVHEH…QCz9BO-rj-XD-OO87VFSfoatK8ymbg5M5JXsBovqNCw

js mdph62.fr collected 2026-10-07 02:15:43 UTC 94,471 bytes, 55 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(()=>{var t,e=document.querySelector(".front")||null,o=(e&&(t=e.querySelectorAll("[data-color]")||null),function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,o,c){return e+e+o+o+c+c;});t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null;}),c=function(t,e,o){t=[t,e,o].map(function(t){return (t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4);});return .2126*t[0]+.7152*t[1]+.0722*t[2];},l=function(t,e){t=o(t),e=o(e),t=c(t.r,t.g,t.b),e=c(e.r,e.g,e.b);return e<t?(e+.05)/(t+.05):(t+.05)/(e+.05);};e&&(t.forEach(function(e){e.classList.contains("cd62-multicontent1")||(e.classList.contains("cd62-multicontent2")||e.classList.contains("cd62-multicontent3")?e.classList.contains("cd62-multicontent2")?e.querySelector(".cd62-multicontent2__background__color").style.backgroundColor=e.dataset.color:e.querySelectorAll(".cd62-multicontent3__list__item__content__color").forEach(function(t){"rgb(0, 0, 0)"!==window.getComputedStyle(t).backgroundColor&&(t.style.backgroundColor=e.dataset.color);}):e.style.backgroundColor=e.dataset.color);}),t)&&t.forEach(function(t){var e="",e=1/3<l(t.dataset.color,"#FFF")?"#000":"#FFF";t.classList.contains("cd62-multicontent1")||(t.classList.contains("cd62-multicontent2")||t.classList.contains("cd62-multicontent3")?t.classList.contains("cd62-multicontent2")?t&&(block_title=t.querySelector(".cd62-multicontent2__content__title"))&&(block_title.style.color=e):t.querySelectorAll(".cd62-multicontent3__list__item__content__color").forEach(function(t){"rgb(0, 0, 0)"!==window.getComputedStyle(t).backgroundColor&&(t.parentNode.querySelector(".cd62-multicontent3__list__item__title")&&(t.parentNode.querySelector(".cd62-multicontent3__list__item__title").style.color=e),t.parentNode.querySelector(".cd62-multicontent3__list__item__link"))&&(t.parentNode.querySelector(".cd62-multicontent3__list__item__link").style.color=e,t.parentNode.querySelector(".cd62-multicontent3__list__item__link").style.borderColor=e,t.parentNode.querySelector(".cd62-multicontent3__list__item__link").addEventListener("mouseover",function(){t.parentNode.querySelector(".cd62-multicontent3__list__item__link").style.color="#FFF",t.parentNode.querySelector(".cd62-multicontent3__list__item__link").style.borderColor="#000";}),t.parentNode.querySelector(".cd62-multicontent3__list__item__link").addEventListener("mouseout",function(){t.parentNode.querySelector(".cd62-multicontent3__list__item__link").style.color=e,t.parentNode.querySelector(".cd62-multicontent3__list__item__link").style.borderColor=e;}));}):(t.querySelector(".cd62-title")&&(t.querySelector(".cd62-title").style.color=e),t.classList.contains("cd62-chiffres-cles")&&(console.log("ici"),t.querySelectorAll(".cd62-chiffres-cles__list__item").forEach(function(t){t.querySelector(".cd62-chiffres-cles__list__item__title").style.color=e,t.querySelector(".cd62-chiffres-cles__list__item__title__underline").style.backgroundColor=e,t.querySelector(".cd62-chiffres-cles__list__item__desc")&&(t.querySelector(".cd62-chiffres-cles__list__item__desc").style.color=e);}))));});})();;
3(()=>{var r,t,e;(e=document.querySelector(".bypass-links-header"))&&(document.querySelector(".header__mixte"),document.querySelector("header"),r=function(e,t){var r,n,e=e.getAttribute("href");"#edit-text"===e?(r=document.querySelector('.header__search input[type="text"]'),n=document.querySelector("[data-js-header-search-toggle]"),t.preventDefault(),"false"===n.getAttribute("aria-expanded")&&n.click(),r.focus()):"#"===e&&(n=document.querySelector("body").classList.contains("header__cd62"),t.preventDefault(),n||"xs"===bsBreakpoints.detectBreakpoint()||"md"===bsBreakpoints.detectBreakpoint()||"sm"===bsBreakpoints.detectBreakpoint()?(document.querySelector("[data-js-header-menu-toggle]").click(),setTimeout(function(){document.querySelector(".header__menu").querySelector('.first a, .first span[tabindex="0"]').focus();},400)):document.querySelector(".header__menu").querySelector('.first a, .first span[tabindex="0"]').focus());},e.querySelectorAll("a").forEach(function(t,e){t.addEventListener("keydown",function(e){"Enter"===e.key&&r(t,e),"Escape"===e.key&&document.querySelector(".header").querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
3([tabindex="-1"])')[0].focus();}),t.addEventListener("click",function(e){r(t,e);});}),t=document.querySelector("[data-set-cookies]")||null)&&(e.insertAdjacentHTML("beforeend",'<li><a href="/" class="bypass-link bypass-link--cookies">Ouvrir les préférences de cookies</a></li>'),document.querySelector(".bypass-link--cookies").addEventListener("keydown",function(e){e.preventDefault(),"Enter"===e.key&&(t.click(),document.querySelector(".cookies").focus());}));})();;
4(()=>{var e=document.querySelectorAll("[data-slider-int]");setTimeout(function(){0<e.length&&e.forEach(function(e){e.querySelectorAll(".slide-item").forEach(function(e){var t=e.querySelector(".slide-lead");t&&500<parseInt(window.getComputedStyle(e).height)&&(console.log(parseInt(window.getComputedStyle(e).height)),t.getAttribute("data-dot"))&&(t.removeAttribute("data-dot"),t.removeAttribute("style"));});});},500);})();;
5(()=>{var n,e,a,r,l,c,t,o={close:ModuloTS.Close,previous:ModuloTS["Previous slide"],next:ModuloTS["Next slide"]},d=document.querySelector(".field-content"),i=d&&d.querySelectorAll("[data-src-full]"),u=i&&i.length,u='<div id="modalZoom" class="modal" aria-hidden="true" aria-modal="true" role="dialog" aria-label="Menu principal">\n    <p class="modal__count">\n          <span id="photo-id"></span>/<span id="photo-total">'.concat(u,'</span>\n        </p>\n        <div class="modal__content" role="document">\n            <button title="').concat(o.close,'" class="close"><i data-icon="cross" aria-hidden="true"></i><span class="sr-only">').concat(o.close,' la fenêtre</span></button>\n            <button class="prec" id="zoom-prec" data-icon="arrow" data-set-prev>').concat(o.previous,'</button>\n            <button class="next" id="zoom-next" data-icon="arrow" data-set-next>').concat(o.next,"</button>\n        </div>\n    </div>"),s=function(t,e,o){void 0===t&&(t=0),void 0===e&&(e="");var n=document.querySelector("#modalZoom"),a=n.querySelector("#zoom-prec"),r=n.querySelector("#zoom-next"),l=t-1,c=t+1,i=(null==(i=null==(i=d.querySelector('[data-src-full="'.concat(e,'"]')))?void 0:i.querySelector("img"))?void 0:i.getAttribute("alt"))||"",e='<img id="img-full" class="modal__img" src="'.concat(e,'" alt="').concat(i,'" />');n.setAttribute("aria-hidden",!1),n.querySelector("#photo-id").innerHTML="".concat(t),n.querySelector("#img-full")&&n.querySelector(".modal__content").removeChild(n.querySelector("#img-full")),n.querySelector("#zoom-prec").insertAdjacentHTML("afterend",e),a.setAttribute("data-set-prev",l),r.setAttribute("data-set-next",c),p(o),f(o),m(n,o),y(n)},y=function(e){var t=e.querySelector(".modal__img");t&&t.addEventListener("keydown",function(t){"Tab"!==t.key||t.shiftKey||(t.preventDefault(),e.querySelector(".close").focus())})},m=function(t,e){var o=t.querySelector("#zoom-prec"),t=t.querySelector("#zoom-next"),n=parseInt(o.getAttribute(["data-set-prev"])),a=parseInt(t.getAttribute(["data-set-next"]));0===n?("none"===t.style.display&&(t.style.display="block"),o.style.display="none"):a>e.length?("none"===o.style.display&&(o.style.display="block"),t.style.display="none"):(o.style.display="block",t.style.display="block"),1===e.length&&(o.style.display="none",t.style.display="none")},p=function(t){var e=document.getElementById("modalZoom"),o=e.querySelector("#zoom-prec"),n=parseInt(o.getAttribute(["data-set-prev"]));o&&o.addEventListener("click",function(){s(n,t.find(function(t,e){return t?e===n-1:null}),t),keyboardNavigation(e)})},f=function(t){var e=document.getElementById("modalZoom"),o=e.querySelector("#zoom-next"),n=parseInt(o.getAttribute(["data-set-next"]));o&&o.addEventListener("click",function(){s(n,t.find(function(t,e){return t?e===n-1:null}),t),keyboardNavigation(e)})},o=function(t){t.querySelector("button.close").addEventListener("click",function(){t.setAttribute("data-active",!1),t.setAttribute("aria-hidden",!0),n.focus()})};t=(()=>{var e=[];if(i)return i.forEach(function(t){e.push(t.getAttribute("data-src-full"))}),e})(),i&&d.insertAdjacentHTML("beforeend",u),i&&(e=1,i.forEach(function(t){t.setAttribute("data-set",e),e++})),a=t,(c=document.getElementById("modalZoom"))&&i&&(i.forEach(function(t){var e=t.querySelector("button.open-figure-modal")||null;e&&e.addEventListener("click",function(){n=e;var o=parseInt(t.getAttribute("data-set"));c.setAttribute("data-active",!0),r=a.find(function(t,e){return t?e+1===o:"truc"}),l=a.findIndex(function(t,e){return t?e+1===o:"truc"}),s(l+1,r,a),keyboardNavigation(c)})}),o(c))})();
6
7;
8(()=>{var e=document.querySelectorAll("table");document.body.contains(document.querySelector("table"))&&e.forEach(function(e){e.classList.add("table","table-bordered"),e.hasAttribute("cellpadding")&&e.removeAttribute("cellpadding"),e.hasAttribute("cellspacing")&&e.removeAttribute("cellspacing");var t=document.createElement("div");t.classList.add("table-responsive"),e.parentNode.insertBefore(t,e),t.appendChild(e)})})();
9
10;
11(()=>{var a=document.querySelector(".cd62-partenaires"),t=a.querySelectorAll(".cd62-partenaires__list__item"),s=1,i=t.length,r=function(){var t="xSmall"===bsBreakpoints.detectBreakpoint()?1:"small"===bsBreakpoints.detectBreakpoint()||"medium"===bsBreakpoints.detectBreakpoint()?3:6;return t;},n=function(){var e="";a.querySelectorAll(".btn-nav").forEach(function(t){i>r()?(t.addEventListener("click",function(t){e=t.target.classList.contains("next")?"next":"prev",c(e);}),a.querySelector(".cd62-partenaires__list").addEventListener("transitionend",function(t){t.stopImmediatePropagation(),t.target===t.currentTarget&&l(e);}
11)):(t.style.visibility="hidden",window.addEventListener("resize",function(){i>r()?(t.style.visibility="visible",n()):t.style.visibility="hidden";}));});},l=function(t){var e=1;if("next"===t){s===i?s=1:s++;for(var r=s;r<=i;r++)a.querySelector(".cd62-partenaires__list__item[data-position='"+r+"']").style.order=e,e++;for(r=1;r<s;r++)a.querySelector(".cd62-partenaires__list__item[data-position='"+r+"']").style.order=e,e++;}else{1===s?s=i:s--;for(e=i,r=s;0<r;r--)a.querySelector(".cd62-partenaires__list__item[data-position='"+r+"']").style.order=e,e--;for(r=i;s<=r;r--)a.querySelector(".cd62-partenaires__list__item[data-position='"+r+"']").style.order=e,e--;}o(t),a.querySelector(".cd62-partenaires__list").classList.remove("slider-container-transition"),a.querySelector(".cd62-partenaires__list").style.transform="translateX(0)";},o=function(e){a.querySelectorAll(".cd62-partenaires__list__item").forEach(function(t){t.classList.contains("last")&&t.classList.remove("last"),"next"===e?"xSmall"===bsBreakpoints.detectBreakpoint()?"1"===window.getComputedStyle(t).order&&t.classList.add("last"):"small"===bsBreakpoints.detectBreakpoint()||"medium"===bsBreakpoints.detectBreakpoint()?"3"===window.getComputedStyle(t).order&&t.classList.add("last"):"6"===window.getComputedStyle(t).order&&t.classList.add("last"):"0"===window.getComputedStyle(t).order?t.classList.add("last"):t.classList.contains("last")&&t.classList.remove("last");});},c=function(t){document.querySelector(".cd62-partenaires__list").classList.add("slider-container-transition");var e=a.querySelector(".cd62-partenaires__list");"xSmall"===bsBreakpoints.detectBreakpoint()?e.style.transform="next"===t?"translateX(-100%)":"translateX(100%)":"small"===bsBreakpoints.detectBreakpoint()||"medium"===bsBreakpoints.detectBreakpoint()?e.style.transform="next"===t?"translateX(calc(-100%/3))":"translateX(calc(100%/3))":e.style.transform="next"===t?"translateX(calc(-100%/6))":"translateX(calc(100%/6))";};a&&(t.forEach(function(t,e){t.setAttribute("data-position",e+1);}),a.querySelectorAll(".cd62-partenaires__list__item").forEach(function(t,e){t.style.order=e+1;}),n());})();;
12((Drupal,$)=>{Drupal.behaviors.spamspan={attach:(context)=>{$("span.spamspan",context).each(function(){if($("span.o",this).length)$("span.o",this).replaceWith(".");const _mail=`${$("span.u",this).text()}@${$("span.d",this).text()}`.replace(/\s+/g,"");let _mailto=`mailto:${_mail}`;if($("span.h",this).length){const _headerText=$("span.h",this).text().replace(/^ ?\((.*)\) ?$/,"$1");const _headers=$.map(_headerText.split(/, /),(n)=>n.replace(/: /,"="));const _headerString=_headers.join("&");if(_headerString)_mailto+=`?${_headerString}`;}let _anchorContent=$("span.t",this).html();if(_anchorContent){_anchorContent=_anchorContent.replace(/^ ?\(([^]*)\) ?$/,"$1");_anchorContent=_anchorContent.replaceAll("[at]","@").replaceAll("[dot]",".");}let _attributes='';$.each(this.attributes,function(){if(this.specified&&this.name.startsWith("data-spamspan-"))_attributes+=`${this.name.substring("data-spamspan-".length)}="${this.value}" `;});let _tag="<a></a>";if(_attributes)_tag=`<a ${_attributes}></a>`;$(this).after($(_tag).attr("href",_mailto).html(_anchorContent||_mail).addClass("spamspan")).remove();});}};})(Drupal,jQuery);;
13((t,i)=>{t.behaviors.videoConsent={attach:function(e,t){function n(t){Array.from(t.querySelectorAll(".video .media-content-video")).forEach(function(e){var t,o=Object.values(c).filter(function(t){return t.entity_id==="".concat(e.id)})[0];o&&(t=o.provider,-1<document.cookie.indexOf("".concat(t,"=true"))?e.innerHTML=o.iframe:(e.classList.add("not_allowed"),e.innerHTML="<p> ".concat(t.charAt(0).toUpperCase()+t.slice(1),' est désactivé </p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="allow__cookie" data-allow-cookie= "').concat(t,'">').concat(ModuloTS.Allow,"</button>")))})}function o(t,e){(o=new Date).setTime(o.getTime()+34128e6),o.toGMTString();var o="expires="+o+";path=/;secure;",t=t.getAttribute("data-allow-cookie");document.cookie=t+"=true;"+o,document.cookie="hasConsent=choice;"+o,n(e)}var c=drupalSettings.media;n(e),i("video-consent-btn",".video [data-allow-cookie]",e).forEach(function(t){t.addEventListener("click",function(){return o(t,e)})})}}})(Drupal,once);
14
15;
16var toggleTranscription=function(){var r,t=document.querySelectorAll(".btn-transcription");t&&(r=["Afficher transcription","Cacher transcription"],t.forEach(function(n){n.addEventListener("click",function(){var t,e=n.parentNode.querySelector(".spe__transcription");e&&(t="true"===n.getAttribute("aria-expanded"),n.setAttribute("aria-expanded",String(!t)),n.textContent=t?r[0]:r[1],e.classList.toggle("active"));});}));};window.addEventListener("DOMContentLoaded",function(){toggleTranscription();});;
17((t,e)=>{void 0===t&&(t="slider-edito-container"),void 0===e&&(e={lg:1,md:1,sm:1});var y,f,v=drupalSettings.yellowstone.homepage_highlight,m={root:t,slider:"data-sli
17der",slide:"slider-edito__slide",dots:"nav__pagination",dot:"slide-edito-dot",next:"nav__arrow__next",prev:"nav__arrow__prev",play:"nav__autoplay",skip:"data-skip-slider",end:"data-end-slider"},b=0,a=0,l=0,n=1200<=(t=window.innerWidth)?"lg":767<t&&t<1200?"md":"sm",h=function(n){var t=S(),o=n+t;document.querySelectorAll(".".concat(m.root," .").concat(m.slide)).forEach(function(t,e){t.tabIndex=n<=e&&e<o?0:-1}),document.querySelectorAll(".".concat(m.root," .").concat(m.slide,"[tabindex='0'] a")).forEach(function(t){t.tabIndex=0}),document.querySelectorAll(".".concat(m.root," .").concat(m.slide,"[tabindex='-1'] a")).forEach(function(t){t.tabIndex=-1})},_=function(){setTimeout(function(){document.querySelector(".".concat(m.root," .").concat(m.slide,"[tabindex='0'] a")).focus()},330)},o=function(){var t=document.querySelector(".".concat(m.root," .").concat(m.dot,".active")),t=t||null?t.getAttribute("data-nb-slide"):0;return Number(t)},c=function(){var t=document.querySelector(".".concat(m.root," .").concat(m.slide)).scrollWidth*b;return"".concat(t)},S=function(){return e[n]},g=function(){return document.querySelectorAll(".".concat(m.root," .").concat(m.slide)).length},q=function(t,e){void 0===t&&(t="next"),void 0===e&&(e=null),b=o(),e||0===e?b=e:"next"===t?b<f-1?b+=1:b=0:0<b?b-=1:b=f-1;var n=c();document.querySelectorAll(".".concat(m.root," .").concat(m.slide)).forEac
17h(function(t,e){t.style.transform="translateX(-".concat(n,"px)"),e<b?(t.style.opacity="0",t.style.visibility="hidden"):(t.style.visibility="inherit",t.style.opacity="1")}),document.querySelectorAll(".".concat(m.root," .").concat(m.dot)).forEach(function(t){t.classList.contains("active")&&(t.classList.remove("active"),t.removeAttribute("aria-current")),t.getAttribute("data-nb-slide")===b.toString()&&(t.classList.add("active"),t.setAttribute("aria-current","true"))}),h(b),L()},p=function(){document.querySelectorAll(".".concat(m.root," .").concat(m.dot)).forEach(function(e){e.addEventListener("click",function(){var t=Number(e.getAttribute("data-nb-slide"));q("next",t),_()})})};function d(t){t=window.getComputedStyle(t);return new WebKitCSSMatrix(t.transform).m41}var r=function(t){a=("touchstart"===t.type?t.touches[0]:t).clientX},i=function(t){l=("touchmove"===t.type?t.touches[0]:t).clientX,document.querySelectorAll(".".concat(m.slide)).forEach(function(t){t.style.transform="translate(".concat(d(t)-l+"px",")")})},s=function(t){var n,e,o=t.target.closest(".".concat(m.slide)),t=o.closest(".".concat(m.root)).querySelectorAll(".".concat(m.slide)),c=0,r=0,i=o.offsetWidth;t.forEach(function(t,e){o===t&&(n=e),c+=t.offsetWidth}),l-a<-30?(r=i*(n+1))<c&&(t.forEach(function(t){t.style.transform="translateX(-".concat(r,"px)")}),q("next")):30<l-a&&(e=d(o),(r=e+i)<=0)&&(t.forEach(function(t){t.style.transform="translateX(".concat(r,"px)")}),q("prev"))},x=function(){isTouchDevice()&&document.querySelectorAll(".".concat(m.root," .").concat(m.slide)).forEac
17h(function(t){t.addEventListener("touchstart",r),t.addEventListener("touchmove",i),t.addEventListener("touchend",s)})},L=function(){var t,e,n=document.querySelector(".slider-edito__next-box")||null,o=y.querySelector(".slide-edito-dot.active div")||null,c=y.querySelector(".current-slide")||null;n&&(n.querySelector("h3")||null||n.querySelector(".slider-edito__next-box__content > div").insertAdjacentHTML("beforeend","<h3></h3>"),t=Number(document.querySelector(".".concat(m.root," .").concat(m.slide,'[tabindex="0"]')).getAttribute("data-slide"))+1,(t=v[t])?(n.querySelector(".slider-edito__next-box__img").setAttribute("style","background-image:url('".concat(t.thumbnail,"');")),n.querySelector("h3").innerHTML=t.title):(n.querySelector(".slider-edito__next-box__img").setAttribute("style","background-image:url('".concat(v[0].thumbnail,"');")),n.querySelector("h3").innerHTML=v[0].title),e=Number(y.querySelector(".".concat(m.root," .").concat(m.slide,'[tabindex="0"]')).getAttribute("data-slide")),y.querySelectorAll(".slide-edito-dot div").forEach(function(t){t.getAttribute("data-bullet")<e?(t.classList.remove("slider-progressbar--animation"),t.classList.add("slider-progressbar--full")):(t.classList.remove("slider-progressbar--animation"),t.classList.remove("slider-progressbar--full"))}),o&&(y.querySelector(".slide-edito-dot.active div").classList.remove("slider-progressbar--full"),y.querySelector(".slide-edito-dot.active div").classList.add("slider-progressbar--animation")),c)&&(y.querySelector(".current-slide").textContent=("0"+Number(e+1)).slice(-2)+" / "+("0"+Number(v.length)).slice(-2))};waitForElm(".slider-edito-container").then(function(){if(y=document.querySelector(".slider-edito-container")){for(var t,e='<ul class="slider-edito">',n=0;n<v.length;n++)t=v[n].img,e+='\n          <li class="slider-edito__slide" style="background-image:url(\''.concat(t,'\');" data-slide="').concat(n,'" tabindex="0">\n            <div class="hp-edito__highlight__overlay">\n\t\t\t\t\t\t\t<div class="hp-edito__highlight__overlay__content">\n\t\t\t\t\t\t\t<h3>').concat(v[n].title,'</h3>\n\t\t\t\t\t\t\t<a  class="btn btn-primary slider-edito__slide__btn stretched-link" href="').concat(v[n].uri,'">\n\t\t\t\t\t\t\t\t').concat(v[n].button,'\n\t\t\t\t\t\t\t\t <span class="sr-only">').concat(v[n].title,"</span>\n\t\t\t\t\t\t\t</a>\n              </div>\n            </div>\n          </li>");y.insertAdjacentHTML("afterbegin",e+="</ul>"),f=g();var o=S(),c=f-o+1,r="";
17if(document.querySelector(".".concat(m.root," .").concat(m.dots)).innerHTML="",o<f)for(var i=1;i<=c;i++)r+='<button class="slide-edito-dot'.concat(1===i?" active":"",'" data-nb-slide="').concat(i-1,'" aria-current="true" aria-describedby="actuTitle">\n\t\t\t\t\t<span class="sr-only">').concat(1===i?"diapositive ":"").concat(i,"</span>\n\t\t\t\t</button>");document.querySelector(".".concat(m.root," .").concat(m.dots)).insertAdjacentHTML("afterbegin",r),h(b),document.querySelector(".".concat(m.root," [").concat(m.skip,"]")).addEventListener("click",function(){document.querySelector(".".concat(m.root," [").concat(m.end,"]")).focus()}),f=g(),v.length<=1?document.querySelector(".slider-edito__next-box").classList.add("none"):2<=v.length&&document.querySelector(".slider-edito__next-box").classList.remove("none"),1===g()&&(document.querySelector(".slider-edito__nav").style.display="none"),document.querySelector(".".concat(m.root," .").concat(m.next)).addEventListener("click",function(){q("next"),_()}),document.querySelector(".".concat(m.root," .").concat(m.prev)).addEventListener("click",function(){q("prev"),_()}),p(),x(),void 0===l&&(l=5e3),s=document.querySelector(".".concat(m.root," .").concat(m.play)),u=!1,"true"===s.dataset.sliderPlay?d=setInterval(function(){document.querySelectorAll(".".concat(m.root," .custom-slider__slide__btn")).forEach(function(t){document.activeElement===t&&(u=!0),t.addEventListener("touchstart",function(){u=!0}),t.addEventListener("touchend",function(){u=!1}),t.addEventListener("focusout",function(){u=!1})}),u||q("next")},l):clearInterval(d),s.addEventListener("click",function(){"true"===s.dataset.sliderPlay?(s.dataset.sliderPlay="false",s.innerHTML="Lire",clearInterval(d)):(d=setInterval(function(){q("next")},l),s.dataset.sliderPlay="true",s.innerHTML="Pause")}),a=0,y.querySelectorAll(".slide-edito-dot").forEach(function(t){t.insertAdjacentHTML("afterbegin",'<span data-bullet="'.concat(a,'"></span>')),a++}),L(),document.addEventListener("keyup",function(t){"Tab"!==t.key&&"Enter"!==t.key||document.activeElement===document.querySelector(".".concat(m.root," .").concat(m.slide," a[tabindex='0']"))&&document.querySelector(".".concat(m.root," .").concat(m.play)).click()})}var a,l,d,s,u})})();
18
19;
20(()=>{function e(){a.addEventListener("keydown",function(e){"Enter"===e.key?(a.classList.add("services__demarches--keyboard","active"),r.setAttribute("aria-expanded",!0)):"Escape"===e.key?(a.classList.remove("services__demarches--keyboard","active"),r.setAttribute("aria-expanded",!1),r.setAttribute("tabindex","0")):"xSmall"!==bsBreakpoints.detectBreakpoint()&&"small"!==bsBreakpoints.detectBreakpoint()&&"medium"!==bsBreakpoints.detectBreakpoint()&&("Tab"!==e.key||e.shiftKey?e.shiftKey&&document.activeElement===c&&a.classList.remove("services__demarches--keyboard","active"):document.activeElement===d&&a.classList.remove("services__demarches--keyboard","active"))}),n&&n.addEventListener("keydown",function(e){"Tab"===e.key&&(a.classList.remove("services__demarches--keyboard"),r.setAttribute("aria-expanded",!1))})}function t(){"xSmall"!==bsBreakpoints.detectBreakpoint()&&"small"!==bsBreakpoints.detectBreakpoint()&&"medium"!==bsBreakpoints.detectBreakpoint()||r.addEventListener("click",function(){a.classList.add("active"),r.tabIndex=-1,u(document.querySelector(".services__demarches.active")),a.querySelector(".demarches__open-button").setAttribute("aria-expanded","true"),a.querySelector("li.demarches__item:first-child a").focus()})}var a,r,s,n,c,i,d,o='button:not(.demarches__open-button), [href], input, select, textarea, [tabindex]:not([tabindex="-1"]) ',u=function(e){document.addEventListener("keydown",function(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===a.querySelector(".demarches__
20close-button")&&a.classList.contains("active")&&(d.focus(),e.preventDefault()):document.activeElement===d&&(c.focus(),e.preventDefault()))}),c.focus()},l=function(e,t){for(var a=!0,r=t.length,s=0;s<r;s++)e.target!==t[s]&&!t[s].contains(e.target)||(a=!1);return!!a};waitForElm("services__demarches").then(function(){a=document.querySelector(".services__demarches"),r=a.querySelector(".demarches__open-button"),s=a.querySelector(".demarches__close-button"),n=document.querySelector(".demarches__link")||null,c=a.querySelectorAll(o)[0],i=a.querySelectorAll(o),d=i[i.length-1],window.addEventListener("resize",function(){t(),e()}),t(),s.addEventListener("click",function(){a.classList.remove("services__demarches--keyboard","active"),r.tabIndex=0,r.setAttribute("aria-expanded",!1)}),document.addEventListener("click",function(e){l(e,[a,r])&&(a.classList.remove("services__demarches--keyboard","active"),r.tabIndex=0,r.setAttribute("aria-expanded",!1))}),e()})})();
21
22;
23var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,a=e.length;o<a;o++)!r&&o in e||((r=r||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};(()=>{function t(){return window.getComputedStyle(document.body,":before").content.replace(/\"/g,"")}var e={allInputFile:document.querySelectorAll("input[type=file]"),allInputRange:document.querySelectorAll("input[type=range]:not([data-plyr])"),allSelect:document.querySelectorAll("select"),allLikertInput:document.querySelectorAll(".webform-likert-table-wrapper input[type=radio]"),allLikertWrapper:document.querySelectorAll(".webform-likert-table-wrapper table")};function n(t){"1"===t.dataset.detected||(t.dataset.detected="1",t.closest(".custom__input-number"))||c()}function r(){var i=new RegExp("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,})"),c=new RegExp("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{6,}))|((?=.*[a-z])(?=.*[A-Z])(?=.*[^A-Za-z0-9])(?=.{8,}))");document.querySelectorAll(".inputPassShow .password-field").forEach(function(t){t.insertAdjacentHTML("afterend",'<div class=\'password-status\'>\n            <div class="password-status__bars"></div>\n            <div class="password-status__bars"></div>\n            <div class="password-status__bars"></div>\n            <span aria-live="polite" aria-atomic="true" class="password-strength__text js-password-strength__text password-test__message" id="passStrength"></span>\n        </div>');function n(t){document.querySelector(".password-status div:nth-child(".concat(t,")")).classList.remove("password-status__bars--lvl".concat(t))}function r(t){document.querySelector(".password-status div:nth-child(".concat(t,")")).classList.add("password-status__bars--lvl".concat(t))}var o={attributes:!0,childList:!0,subtree:!0},a=document.getElementById("passStrength");document.querySelectorAll(".inputPassShow .password-field").forEach(function(t){t.addEventListener("input",function(e){i.test(t.value)?a.innerHTML="Fort":c.test(t.value)?a.innerHTML="Correct":a.innerHTML="Faible",new MutationObserver(function(t){t.forEach(function(t){""===e.target.value&&(t.target.innerText="",n(1),n(2),n(3)),"Faible"===t.target.innerText&&(r(1),n(2),n(3)),"Correct"!==t.target.innerText&&"Bien"!==t.target.innerText||(r(1),r(2),n(3)),"Fort"===t.target.innerText&&(r(1),r(2),r(3))})}).observe(a,o)})})})}function l(t,e,n,r,o){t.parentNode.lastElementChild.innerHTML="".concat(t.value," ").concat(e,"<hr>");var e=t.parentNode.lastElementChild.offsetWidth/2==0?30:t.parentNode.lastElementChild.offsetWidth/2,a=t.offsetWidth,i=a/2,r=(t.value-n)/(r-n),r=(n=(r=isNaN(r)?0:r)*a)-e-10*((n-i)/i);t.parentNode.lastElementChild.setAttribute("style","width: ".concat(o,"px; left: ").concat(r,"px; top:50px;"))}function o(){u(),document.querySelectorAll("input[type=range]:not([data-plyr])").forEach(function(t){var e,n,r,o,a,i,c;"1"!==t.dataset.rangeInit&&(t.dataset.rangeInit="1",e=t.getAttribute("min"),n=t.getAttribute("max"),r=document.querySelector("[data-range-value]")||null,t.setAttribute("step",1),a=document.querySelector(".field-suffix .field-suffix")||null,o="€",a&&(o=document.querySelector(".field-suffix .field-suffix").innerText),(a=document.createElement("div")).classList.add("range-interval","d-flex","justify-content-between"),a.innerHTML="<div>".concat(e," ").concat(o,"</div><div>").concat(n," ").concat(o,"</div>"),i='<span class="sticky-range">'.concat(n," ").concat(o,"</span>"),t.parentNode.insertBefore(a,t),t.insertAdjacentHTML("afterend",i),c=t.parentNode.lastElementChild.offsetWidth,t.parentNode.lastElementChild.setAttribute("style","display: none;"),t.addEventListener("input",function(){t.setAttribute("value",t.value),l(t,o,e,n,c),r.innerHTML=t.value}))})}function a(){var t,e;document.body.contains(document.querySelector(".webform-progress")&&document.querySelector(".page-summary-card"))&&(t=document.querySelector(".webform-progress"),(e=document.querySelector(".page-summary-card")).parentNode.insertBefore(t,e.nextSibling),t.classList.add("side"))}function i(){function c(t,e){(t=s(t)).textContent=e,t.style.display="block"}
23function l(t){(t=t.querySelector(".invalid-feedback"))&&(t.textContent="",t.style.display="none")}function u(e,t){return"radio"===e.type?!__spreadArray([],t.querySelectorAll('input[type="radio"]'),!0).filter(function(t){return t.name===e.name}).some(function(t){return t.checked}):"checkbox"===e.type?!__spreadArray([],t.querySelectorAll('input[type="checkbox"]'),!0).filter(function(t){return t.name===e.name}).some(function(t){return t.checked}):"range"===e.type?""===e.getAttribute("value"):!e.value.trim()}var s=function(t){var e=t.querySelector(".invalid-feedback");return e||((e=document.createElement("div")).classList.add("invalid-feedback"),t.appendChild(e)),e};document.querySelectorAll(".webform-submission-form").forEach(function(i){var t=i.querySelectorAll("[required]");i.querySelectorAll('input[type="radio"], input[type="checkbox"]').forEach(function(a){function e(){var t=__spreadArray([],i.querySelectorAll('input[type="'.concat(a.type,'"]')),!0).filter(function(t){return t.name===a.name}),e=t[0]===a,n=a.closest("tr[data-drupal-selector]"),r=a.closest("fieldset.webform-scale--wrapper"),o=(n=n?n.querySelector("th:first-child"):null)?n.querySelector(".form-group")||n:r?r.querySelector(".fieldset-wrapper"):a.closest(".form-group");a.addEventListener("invalid",function(t){t.preventDefault(),e&&(a.setCustomValidity(""),u(a,i))&&(t=a.getAttribute("data-webform-required-error")||ModuloTS["Fields followed by * are required"],o)&&(c(o,t),a.setCustomValidity(t))}),t.forEach(function(t){t.addEventListener("change",function(){u(a,i)||o&&(l(o),a.setCustomValidity(""))})})}a.hasAttribute("required")&&(e(),"radio"===a.type)||new MutationObserver(function(t){t.forEach(function(t){"required"===t.attributeName&&(a.hasAttribute("required")?e():(t=a.closest(".form-group"))&&(l(t),a.setCustomValidity("")))})}).observe(a,{attributes:!0})}),t.forEach(function(a){"radio"!==a.type&&"checkbox"!==a.type&&(a.addEventListener("invalid",function(t){t.preventDefault();var e,n,r,o,t=a.closest(".form-group");t&&(a.setCustomValidity(""),s(t).style.display="none",u(a,i)?(o=a.getAttribute("data-webform-required-error")||ModuloTS["Fields followed by * are required"],c(t,o),a.setCustomValidity(o)):"number"===a.type&&isNaN(a.value)?(c(t,ModuloTS["Please enter a valid number"]),a.setCustomValidity(ModuloTS["Please enter a valid number"])):a.validity.patternMismatch?(o=a.getAttribute("data-webform-pattern-error")||a.validationMessage,c(t,o),a.setCustomValidity(o)):"date"===a.type&&(e=a.value,r=a.getAttribute("min"),n=a.getAttribute("max"),r&&e<r?(r=new Date(r).toLocaleDateString("fr-FR"),o="".concat(ModuloTS["Date must be after"]," ").concat(r,"."),c(t,o),a.setCustomValidity(o)):n&&n<e&&(r=new Date(n).toLocaleDateString("fr-FR"),o="".concat(ModuloTS["Date must be before"]," ").concat(r,"."),c(t,o),a.setCustomValidity(o))))}),a.addEventListener("input",function(){var t=a.closest(".form-group");t&&!u(a,i)&&(l(t),a.setCustomValidity(""))}))}),i.querySelectorAll('input[type="submit"]:not([formnovalidate])').forEach(function(t){t.addEventListener("click",function(t){var e;!i.checkValidity()&&(t.preventDefault(),t.stopImmediatePropagation(),e=i.querySelector(":invalid"))&&setTimeout(function(){e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"})},0)},{capture:!0})})})}new MutationObserver(function(t){t.forEach(function(t){t.addedNodes.forEach(function(t){var e;1===t.nodeType&&(t.matches&&t.matches('input[name$="[add][more_items]"]')&&n(t),e=null==(e=t.querySelectorAll)?void 0:e.call(t,'input[name$="[add][more_items]"]'))&&0<e.length&&e.forEach(n)})})}).observe(document.body,{childList:!0,subtree:!0});var c=function(){console.log("Passe number input"),document.querySelectorAll(".js-form-type-number").forEach(function(n){n.querySelectorAll("input").forEach(function(t){var e=t.getAttribute("id")||null;t.insertAdjacentHTML("afterend",'<div class="custom__input-number">\n              \t\t\t<button class="custom__input-number__button--less" aria-describedby="'.concat(e,'">\n\t\t\t  \t\t\t\t<span aria-hidden="true">-</span>\n\t\t\t\t\t\t\t<span class="sr-only">').concat(ModuloTS.Decrease,'</span>\n\t\t\t  \t\t\t</button>\n              \t\t\t<span class="custom__input-number__data">').concat(t.outerHTML,'</span>\n              \t\t\t<button class="custom__input-number__button--plus" aria-describedby="').concat(e,'">\n\t\t\t\t\t\t\t<span aria-hidden="true">+</span>\n\t\t\t\t\t\t\t<span class="sr-only">').concat(ModuloTS.Increase,"</span>\n\t\t\t  \t\t\t</button>\n         \t\t\t </div>")),t.remove()}),n.querySelectorAll("button").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),n.querySelectorAll("input").forEach(function(t){"custom__input-number__button--plus"===e.getAttribute("class")?t.value++:t.value--,t.dispatchEvent(new Event("input",{bubbles:!0}
23)),t.dispatchEvent(new Event("change",{bubbles:!0}))})})}),n.querySelectorAll("input").forEach(function(e){function t(){var t=Number(e.value);e.hasAttribute("max")&&t>Number(e.getAttribute("max"))&&(e.value=e.getAttribute("max")),e.hasAttribute("min")&&t<Number(e.getAttribute("min"))&&(e.value=e.getAttribute("min"))}e.addEventListener("input",t),e.addEventListener("change",t)})})},u=(new MutationObserver(function(t){t.some(function(t){return Array.from(t.addedNodes).some(function(t){var e;return!!(1===t.nodeType&&(t.matches&&t.matches("input[type=range]")||null!=(e=t.querySelector)&&e.call(t,"input[type=range]")))})})&&o()}).observe(document.body,{childList:!0,subtree:!0}),function(){document.querySelectorAll(".form__item-intervalle").forEach(function(t){var n,e,r,o,a;"1"!==t.dataset.a11yInit&&(t.dataset.a11yInit="1",e=(n=t.querySelector('input[type="range"]')).getAttribute("id")||null,r=t.querySelector('input[type="range"]').valueAsNumber,r='\n\t\t\t<div class="form__item-intervalle__input-container">\n\t\t\t<div class="visually-hidden" aria-live="polite">'.concat(r,"</div>\n\t\t\t<button ").concat(e?'aria-describedby="'.concat(e,'"'):"",' data-btn-range-decrease>\n\t\t\t<span aria-hidden="true">-</span>\n\t\t\t<span class="sr-only">').concat(ModuloTS.Decrease,'</span>\n\t\t\t</button>\n\t\t\t<p data-range-value class="form__item-intervalle__input-number">').concat(r,"</p>\n\t\t\t<button ").concat(e?'aria-describedby="'.concat(e,'"'):"",'data-btn-range-increase>\n\t\t\t<span aria-hidden="true">+</span>\n\t\t\t<span class="sr-only">').concat(ModuloTS.Increase,"</span>\n\t\t\t</button>\n\t\t\t</div>"),t.insertAdjacentHTML("beforeend",r),o=n.getAttribute("min"),a=n.getAttribute("max"),document.querySelector(".form__item-intervalle__input-container").querySelectorAll("button").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),null!=e.getAttribute("data-btn-range-decrease")?n.stepDown():n.stepUp(),document.querySelector("[data-range-value]").innerHTML=n.value,l(n,"€",o,a,60)})}))})}),s=function(){var t=document.querySelector("#edit-fichier-upload")||null,e=document.querySelector("#edit-fichier--description")||null;e&&t&&t.setAttribute("aria-describedby",e.id)},d=function(){var t=document.querySelectorAll(".js-form-item-telephone .iti__selected-flag")||null;t&&t.forEach(function(t){t.insertAdjacentHTML("beforeend",'<span class="sr-only"> '.concat(ModuloTS["Telephone code"]," <span>"))})};polyfillsIE();for(var p,f=document.querySelectorAll(".webform-progress"),m=0;m<f.length;m+=1)for(var b=f[m].parentNode.children,y=0;y<b.length;y+=1)b[y].classList.contains("webform-elements")&&b[y].classList.add("col-lg-8","offset-lg-1","col-sm-12"),b[y].classList.contains("form-actions")&&b[y].classList.add("col-lg-9","col-sm-12");c(),o(),i(),document.querySelectorAll("input[type=password]").forEach(function(t){var e=t.classList.contains("password-confirm")?"confirmation password":"password";t.insertAdjacentHTML("afterend",'<div class="inputPassShow">\n\t\t\t\t\t\t<button type="button" data-pwd="show"><i data-icon="password" aria-hidden="true"> </i>'.concat(ModuloTS["Show ".concat(e)],"</button>\n\t\t\t\t\t\t").concat(t.outerHTML,"\n\t\t\t\t\t</div>")),t.remove()}),document.querySelectorAll(".inputPassShow").forEach(function(o){o.querySelector("button").addEventListener("click",function(t){t.stopImmediatePropagation(),t.preventDefault();var t=o.querySelector("input"),e=o.querySelector("button"),n=e.getAttribute("data-pwd"),r=t.classList.contains("password-confirm")?"confirmation password":"password";"show"===n?(e.innerHTML='<i data-icon="password" aria-hidden="true"> </i> '.concat(ModuloTS["Hide ".concat(r)]),t.setAttribute("type","text"),e.setAttribute("data-pwd","hide")):(e.innerHTML='<i data-icon="password" aria-hidden="true"> </i> '.concat(ModuloTS["Show ".concat(r)]),t.setAttribute("type","password"),e.setAttribute("data-pwd","show"))}),document.body.contains(document.querySelector(".user-login-form"))&&o.querySelector("input").addEventListener("keyup",function(t){13===t.keyCode&&document.querySelector(".user-login-form").submit()})}),e.allLikertWrapper.forEach(function(t){t.querySelectorAll("thead th").forEach(function(t){t.setAttribute("scope","col")}),t.querySelectorAll("tbody th").forEach(function(t){t.setAttribute("scope","row")})}),document.querySelectorAll(".container-inline").forEach(function(t){t.querySelectorAll(".form__label").forEach(function(t){t.remove()})}),document.querySelectorAll(".js-form-type-radio .form__label").forEach(function(t){t.classList.add("custom__label")}),document.querySelectorAll(".js-form-type-checkbox .form__label").forEach(function(t){t.classList.add("custom__label")}),document.querySelectorAll("input[type=text]").forEach(function(t){t.getAttribute("placeholder")==="".concat(ModuloTS["Type an other value"],"...")&&(t.classList.add("custom__other-value"),t.setAttribute("title","".concat(ModuloTS["Type an other value"],"...")))}),document.querySelectorAll(".form__label__helper").forEach(function(t){var e='<div class="custom__help-box">',n=t.getAttribute("data-webform-help");t.insertAdjacentHTML("beforebegin",e+n+"</div>")}),r(),document.querySelectorAll(".range-interval").forEach(function(t){t.insertAdjacentHTML("afterbegin",'<div class="custom__range__max-value-cursor"></div>')}),document.querySelectorAll("fieldset legend").forEach(function(e){e.querySelectorAll(".visually-hidden").forEach(function(t){null!==t&&(t.classList.add("content-hiddden"),e.classList.add("content-hiddden"))})}),null!=(e=document.querySelector(".webform-button--next"))&&(e.insertAdjacentHTML("afterend",'<div class="step-button">'.concat(e.outerHTML,"</div>")),e.remove(),document.querySelector(".step-button").insertAdjacentHTML("afterbegin",'<i data-icon="arrow" aria-hidden="true"></i>')),e=document.querySelector(".user-login-form"),p=document.querySelector(".banner > div > div > div > div > h1")||null,document.body.contains(e)&&(e.classList.add("module"),p&&(p.style.textAlign="center",p.style.borderBottom="1px solid #EFF3F8"),window.matchMedia("(min-width: 500px)").matches?p.style.paddingBottom="50px":p.style.paddingBottom="30px"),e=d
23ocument.querySelector(".user-form__title"),p=document.querySelector(".user-login-form"),e&&p.insertAdjacentElement("afterbegin",e),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".webform-submission-form").forEach(function(t){var e='<p class="msg-required">'.concat(ModuloTS["Fields followed by * are required"],"</p>");t.insertAdjacentHTML("afterbegin",e)}),document.querySelectorAll(".webform-element-description").forEach(function(t){var e=t.innerHTML,e="<p>".concat(e,"</p>");t.innerHTML=e}),s(),d(),bsBreakpoints.init(),"xLarge"!==t&&"large"!==t||(a(),window.onresize=function(){a()})})})();
24
25;
26(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
27/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
28loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
28for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
29/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
30Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
31(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
32((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
33(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
33once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
33$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;if(event.which!='3'||(event.which=='3'&&!element.getAttribute('name').endsWith('_remove_button')))ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
33d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;let $newContent=$($.parseHTML(response.data,document,true));
33$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
33if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){const offset=$(response.selector).offset();let scrollTarget=response.selector;while($(scrollTarget).scrollTop()===0&&$(scrollTarget).parent())scrollTarget=$(scrollTarget).parent();if(offset.top-10<$(scrollTarget).scrollTop())scrollTarget.get(0).scrollTo({top:offset.top-10,behavior:'smooth'});}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
34(($,Drupal,{isTabbable})=>{$.extend($.expr[':'],{tabbable(element){Drupal.deprecationError({message:'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 11.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'});return isTabbable(element);}});})(jQuery,Drupal,window.tabbable);;
35(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===9)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
35if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
36(function($,Drupal,drupalSettings){'use strict';if(!Drupal.autocomplete)return;var autocomplete={};autocomplete.getSettings=function(input,globalSettings){globalSettings=globalSettings||drupalSettings||{};var settings={auto_submit:false,delay:0,min_length:1,selector:':submit'};var search=$(input).data('search-api-autocomplete-search');if(search&&globalSettings.search_api_autocomplete&&globalSettings.search_api_autocomplete[search])$.extend(settings,globalSettings.search_api_autocomplete[search]);return settings;};Drupal.behaviors.searchApiAutocomplete={attach:function(context,settings){$(once('search-api-autocomplete','.ui-autocomplete-input[data-search-api-autocomplete-search]',context)).each(function(){var uiAutocomplete=$(this).data('ui-autocomplete');if(!uiAutocomplete)return;const classAutocomplete=$(this).attr('data-search-api-autocomplete-search');var $element=uiAutocomplete.menu.element;$element.addClass('search-api-autocomplete-search');$element.addClass(`autocomplete-type-${classAutocomplete}`);var elementSettings=autocomplete.getSettings(this,settings);if(elementSettings['delay'])uiAutocomplete.options['delay']=elementSettings['delay'];if(elementSettings['min_length'])uiAutocomplete.options['minLength']=elementSettings['min_length'];var oldSelect=uiAutocomplete.options.select;uiAutocomplete.options.select=function(event,ui){if(ui.item.url){location.href=ui.item.url;return false;}var ret=oldSelect.apply(this,arguments);if(elementSettings['auto_submit']&&elementSettings['selector'])$(elementSettings['selector'],this.form).trigger('click');return ret;};});}};Drupal.SearchApiAutocomplete=autocomplete;})(jQuery,Drupal,drupalSettings);;
37(()=>{function t(){"xSmall"!==bsBreakpoints.detectBreakpoint()&&"small"!==bsBreakpoints.detectBreakpoint()&&"medium"!==bsBreakpoints.detectBreakpoint()||r.appendChild(o),"xLarge"!==bsBreakpoints.detectBreakpoint()&&"large"!==bsBreakpoints.detectBreakpoint()||null!=i&&i.appendChild(o)}function n(){document.addEventListener("panel:open",function(e){"main-menu-panel"!==e.detail.panel&&(c.setAttribute("aria-expanded","fal
37se"),c.classList.remove("active"),r.classList.remove("active"))})}var a,o,i,r,c,s,l,d,u,p=document.querySelector("body");window.addEventListener("load",function(){waitForElm("[data-js-header]").then(function(){var e;a=document.querySelector("[data-js-header]"),document.body.contains(a)&&(o=document.querySelector("[data-js-header-nav]"),i=document.querySelector("[data-js-header-menu-desktop]"),r=document.querySelector("[data-js-header-menu-rwd]"),c=document.querySelector("[data-js-header-menu-toggle]"),s=document.querySelectorAll("[data-js-header-menu-previous]"),l=document.querySelectorAll(".leaf-lvl-1.expanded"),d=document.querySelectorAll(".expanded .header__menu__expanded"),u=document.querySelector("[data-js-header-account-toggle]"),e=document.querySelector("body").classList.contains("cartographie"),document.onscroll=function(){e?40<window.pageYOffset&&document.querySelector("main").offsetHeight>window.innerHeight?a.classList.add("scrolled"):a.classList.remove("scrolled"):40<window.pageYOffset?a.classList.add("scrolled"):a.classList.remove("scrolled")},d.forEach(function(a){a.addEventListener("click",function(){var e=a.closest("li"),t=a.nextElementSibling,n=a.previousElementSibling.text;t.children[0].children[1].innerHTML=n,e.classList.toggle("active"),t.classList.toggle("active")})}),s.forEach(function(e){var t=e.closest(".header__menu__submenu");e.addEventListener("click",function(){e.previousElementSibling;t.classList.remove("active")})}),t(),c&&r&&o&&c.addEventListener("click",function(){r.appendChild(o);var e=!("true"===c.getAttribute("aria-expanded"));c.classList.toggle("active",e),c.setAttribute("aria-expanded",e.toString()),r.classList.toggle("active",e),p.classList.toggle("no-scroll",e),e&&document.dispatchEvent(new CustomEvent("panel:open",{detail:{panel:"main-menu-panel"}}))}),u&&u.addEventListener("click",function(){u.classList.toggle("active")}),l.forEach(function(t){t&&t.querySelector("a").setAttribute("aria-haspopup",!0),t.addEventListener("keyup",function(e){"Escape"===e.code&&(t.querySelector(".header__menu__submenu").style.display="none"),e.stopPropagation()})}),!0!==isTouchDevice()||"large"!==bsBreakpoints.detectBreakpoint()&&"xLarge"!==bsBreakpoints.detectBreakpoint()||o.querySelectorAll(".leaf-lvl-1").forEach(function(e){e.classList.add("tablet-portrait")}),n())}),window.onresize=function(){t()}})})();
38
39;
40(()=>{var r,c={toggle:"data-js-header-search-toggle",content:"views-exposed-form"};document.addEventListener("panel:open",function(e){"header-search-panel"!==e.detail.panel&&((e=r.querySelector(".".concat(c.content)))&&(e.classList.remove("views-exposed-form--open"),e.style.display="none"),(e=document.querySelector(".header__branding"))&&e.classList.remove("search-img--active"),(e=document.querySelector(".search-overlay"))&&e.classList.remove("search-overlay--active"),document.querySelector("body").classList.remove("overflow-h"),e=r.querySelector("[data-js-header-search-toggle]"))&&(e.setAttribute("data-icon","search"),e.setAttribute("aria-expanded",!1))}),waitForElm("[data-js-header-search-root]").then(function(){var a,e,t,o;r=document.querySelector("[data-js-header-search-root]"),document.body.contains(r)&&(e=r.querySelector(".".concat(c.content)),t=e.querySelectorAll('input[type="text"]'),o=e.querySelectorAll('input[type="submit"]'),e.classList.add("module","shadow"),t.forEach(function(e){e.classList.add("form-control"),e.setAttribute("placeholder",ModuloTS["What are you looking for ?"])}),o.forEach(function(e){e.classList.add("btn","btn-primary")}),(e=document.querySelector(".views-exposed-form"))&&e.insertAdjacentHTML("afterend",'<div class="search-overlay"></div>'),a=r.querySelector("[".concat(c.toggle,"]")))&&a.addEventListener("click",function(){var e=r.querySelector(".".concat(c.content)),t=(e&&e.classList.toggle("views-exposed-form--open"),document.querySelector(".header__branding")),t=(t&&t.classList.toggle("search-img--active"),document.querySelector(".search-overlay"));t&&t.classList.toggle("search-overlay--active"),document.querySelector("body").classList.toggle("overflow-h"),"true"===a.getAttribute("aria-expanded")?(a.setAttribute("data-icon","search"),a.setAttribute("aria-expanded",!1)):(a.setAttribute("data-icon","cross"),a.setAttribute("aria-expanded",!0),document.dispatchEvent(new CustomEvent("panel:open",{detail:{panel:"header-search-panel"}}))),e&&$toggle(e,"block")})})})();
41
42;
43((a,e)=>{e.behaviors.switchLang={attach:function(e,t){a(".language-switcher-language-url").not(".language-switcher-language-url--loaded").each(function(){function e(){"xLarge"!==bsBreakpoints.detectBreakpoint()&&"large"!==bsBreakpoints.detectBreakpoint()&&"medium"!==bsBreakpoints.detectBreakpoint()||(a.addEventListener("mouseleave",function(){i.classList.remove("links--display"),a.querySelectorAll("a").forEach(function(e){e.removeAttribute("tabindex")})}),a.addEventListener("mouseover",function(){i.classList.add("links--display"),a.querySelectorAll("a").forEach(function(e){e.setAttribute("tabindex","1")});var e=document.querySelector(".header__menu__responsive"),t=document.querySelector(".header__menu__toggle");e.contains(i)||(e.classList.contains("active")&&e.classList.remove("active"),t.classList.contains("active")&&t.classList.remove("active"))})),a.querySelectorAll("a").forEach(function(t){t.addEventListener("click",function(e){t.classList.contains("is-active")&&(e.preventDefault(),i.classList.toggle("links--display"))})})}function t(){"xSmall"===bsBreakpoints.detectBreakpoint()?document.querySelector(".header__menu__responsive").appendChild(a):document.querySelector(".header__desktop__menu").insertBefore(a,document.querySelector(".header__search"))}var a=document.querySelector(".language-switcher-language-url")||null,
43n=a.querySelectorAll("a"),i=a.querySelector(".links"),s=(i.setAttribute("aria-expanded",!1),a.querySelectorAll("li")||null);a&&(a.classList.add("language-switcher-language-url--loaded"),s.forEach(function(e){var t=e.querySelector("a").getAttribute("hreflang");e.querySelector("a").classList.add(t+"-flag"),e.querySelector("a").classList.contains("is-active")&&e.classList.add("is-active")}),e(),n.forEach(function(t,e){t.classList.contains("is-active")?t.addEventListener("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),i.classList.toggle("links--display"),e=i.getAttribute("aria-expanded"),console.log(typeof e,e),"false"===e?i.setAttribute("aria-expanded",!0):i.setAttribute("aria-expanded",!1),n.forEach(function(e){e.removeAttribute("tabindex")}))}):t.setAttribute("tabindex","-1"),t.addEventListener("keydown",function(e){"Escape"===e.key&&(i.classList.remove("links--display"),i.setAttribute("aria-expanded",!1)),t.classList.contains("is-active")||t.setAttribute("tabindex","-1")}),e===n.length-1&&t.addEventListener("keydown",function(e){"Tab"===e.key&&(t.onblur=function(){i.classList.remove("links--display"),i.setAttribute("aria-expanded",!1)})})}),t(),window.addEventListener("resize",function(){e(),t()}))})}}})(jQuery,Drupal,drupalSettings);
44
45;
46(()=>{function t(){var t;n.submit&&void 0!==n.submit&&n.submit.forEach(function(t){t.classList.remove("form-control-lg","form-control"),t.classList.add("btn","btn-primary")}),(t=document.querySelectorAll(".facets-links--title")||null)&&t.forEach(function(t){var e,o=t.querySelector("p")||null;o&&(e=void 0,"content_type"===(o=o.getAttribute("data-picto"))?e="doc":"date"===o?e="calendar":"keywords"===o&&(e="keyword"),t.insertAdjacentHTML("afterbegin",'<div class="view-filters__fieldset__icon"><i data-icon="'.concat(e,'" aria-hidden="true"></i></div>')))}),n.input&&void 0!==n.input&&n.input.forEach(function(t){t.setAttribute("placeholder",ModuloTS["I search"])})}var e,o,n={root:document.querySelector("#facets .views-exposed-form"),submit:document.querySelectorAll("input[type=submit]"),input:document.querySelectorAll("#facets .views-exposed-form input[type=text]"),title:document.querySelectorAll(".facets-links--title"),categ:document.querySelector("#views-exposed-form-news-solr-block-news-solr")};window.addEventListener("load",function(){document.body.contains(n.root)&&t()}),document.body.contains(n.categ)&&(e=window.XMLHttpRequest,window.XMLHttpRequest=function(){var t=new e;return t.addEventListener("readystatechange",function(){4===t.readyState&&200===t.status&&o()},!1),t},o=function(){""!==window.location.search?document.body.classList.add("actus-categ"):document.body.classList.remove("actus-categ")})})();
47
48;
49(()=>{var e,o=document.querySelector(".content-404");o&&(document.querySelector(".content-404 .button").classList.remove("form-control","form-control-lg"),document.querySelector(".content-404 .button").classList.add("btn","btn-primary"),document.querySelector(".breadcrumbs-block").remove(),null!=(e=document.querySelector("#block-spe-banner"))&&e.remove(),e=".form-autocomplete",o.querySelector("".concat(e)))&&(o.querySelector("".concat(e)).placeholder=ModuloTS["I search"]+"...")})();
50
51;
52(()=>{function a(){var e=document.querySelector("[data-js-header]"),t=document.querySelector("[data-popin-content]")||null,e=e.offsetHeight+e.offsetTop+20+"px";t&&(t.style.top=e)}var e,o={root:document.querySelector(".layout-container"),url:drupalSettings.yellowstone.alert.urlLookForAlert,save:drupalSettings.yellowstone.alert.urlRegisterView,content:"data-popin-content",close:"data-popin-close"},n=function(e){var t="";return t+='\n        <div class="popin'.concat(1===e.is_alert?" alert":"").concat(void 0!==e.url&&e.url&&1===e.is_alert?" alert__link":"",'" data-id="').concat(e.id,'" ').concat(o.content,' aria-labelledby="alert-').concat(e.id,'" aria-modal="true" role="dialog">'),void 0!==e.thumbnail&&e.thumbnail&&0===e.is_alert&&(t+='<div class="popin__img" style="background-image: url(\''.concat(e.thumbnail,"');\"></div>")),t=(t+='<button class="popin__close" '.concat(o.close,' aria-describedby="alert-').concat(e.id,'"><span class="sr-only">fermer l\'alerte</span><i data-icon="cross" aria-hidden="true"></i></button>'))+'<div class="popin__content" role="document">\n              <div class="popin__title">\n                '.concat(1===e.is_alert?' <i class="list-group-item__icon btn-icon btn-icon-secondary btn-icon--squared" data-icon="warning" aria-hidden="true"></i>':"",'\n                <h2 class="popin__title" data-dot="2" id="alert-').concat(e.id,'">').concat(e.title,'</h2>\n              </div>\n              <div class="popin__paragraph">\n                ').concat(e.text,"\n              </div>"),void 0!==e.url&&e.url&&(t+='<div class="popin__link"><a class="popin__link__click" href="'.concat(e.url.link,'"').concat(e.url.isExternal?' target="_blank"':""," ").concat(o.close,"-more>").concat(ModuloTS["Find out more"],'<i data-icon="arrow" aria-hidden="true"></i></a></div>')),t+="</div></div>"},r=function(){var e=document.querySelector("[".concat(o.content,"]")).getAttribute("data-id");$get("".concat(o.save,"?id=").concat(e)),document.querySelector("[".concat(o.content,"]")).classList.add("popin__close__content"),setTimeout(function(){document.querySelector("[".concat(o.content,"]")).remove()},1500)};e=!1,!(e=0<document.querySelectorAll("div.intranet").length&&0===drupalSettings.user.uid?!0:e)&&o.url&&($get(o.url).then(function(e){var t;void 0!==(t=e).title&&t.title&&o.root.insertAdjacentHTML("afterbegin",n(t)),void 0!==(t=e)&&t&&(document.querySelector("[".concat(o.close,"]"))&&document.querySelector("[".concat(o.close,"]")).addEventListener("click",function(){r()}),document.querySelector("[".concat(o.close,"-more]")))&&document.querySelector("[".concat(o.close,"-more]")).addEventListener("click",function(){r()})}),window.addEventListener("load",function(e){var t,o,n,c;a(),(c=document.querySelector("[data-popin-content]"))&&(t=c.querySelectorAll('button, [href], [tabindex]:not
52([tabindex="-1"]'),o=t[0],n=t[t.length-1],c.addEventListener("keydown",function(e){"Escape"===e.key?(r(),document.querySelectorAll(".bypass-links li a")[0].focus()):e.shiftKey?document.activeElement===o&&(n.focus(),e.preventDefault()):"Enter"!==e.key&&document.activeElement===n&&(o.focus(),e.preventDefault())})),document.querySelector(".cookies")||document.querySelector("[data-popin-content]")&&document.querySelector("[data-popin-content] .popin__close").focus()}),new MutationObserver(function(e,t){for(var o=0,n=e;o<n.length;o++){var c=n[o];if(c.removedNodes)for(var a=0,r=c.removedNodes;a<r.length;a++)"cookieBanner"===r[a].id&&document.querySelector("[data-popin-content]")&&document.querySelector("[data-popin-content] .popin__close").focus()}}).observe(document.querySelector("body"),{childList:!0,subtree:!0,attributes:!1,characterData:!1}),window.onscroll=function(){"sticky"!==window.getComputedStyle(document.querySelector("header")).position&&a()})})();
53
54;
55(function($,drupalSettings){setTimeout(()=>{$.ajax({type:'POST',cache:false,url:drupalSettings.statistics.url,data:drupalSettings.statistics.data});});})(jQuery,drupalSettings);;

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.