PageSourceSearch

https://cc-vermandois.com/sites/default/files/js/js_CR-0tcxVWFt1Xq…fj-x_V93nCENbrPdUVl-6u63-xEJAtoxAIRiP3JNsE0

js cc-vermandois.com collected 2026-10-02 18:43:52 UTC 64,155 bytes, 36 lines download raw bytes

1/* @license GNU-GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(()=>{function t(){return window.getComputedStyle(document.body,":before").content.replace(/\"/g,"")}function e(){var c=new RegExp("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,})"),i=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){c.test(t.value)?a.innerHTML="Fort":i.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 n(){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"))}var r={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")},l=function(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,c=a/2,r=(t.value-n)/(r-n),n=(r=isNaN(r)?0:r)*a,r=n-e-10*((n-c)/c);t.parentNode.lastElementChild.setAttribute("style","width: ".concat(o,"px; left: ").concat(r,"px; top:50px;"))},o=function(){document.querySelectorAll(".form__item-intervalle").forEach(function(t){var n=t.querySelector('input[type="range"]'),e=n.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>"),o=(t.insertAdjacentHTML("beforeend",r),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(t){t.parentNode.parentNode.querySelector('input[type="number"]').value=t.value},a=function(){var t=document.querySelector("#edit-fichier-upload")||null,e=document.querySelector("#edit-fichier--description")||null;e&&t&&t.setAttribute("aria-describedby",e.id)},c=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 i=document.querySelectorAll(".webform-progress"),u=0;u<i.length;u+=1)for(var d=i[u].parentNode.children,p=0;p<d.length;p+=1)d[p].classList.contains("webform-elements")&&d[p].classList.add("col-lg-8","offset-lg-1","col-sm-12"),d[p].classList.contains("form-actions")&&d[p].classList.add("col-lg-9","col-sm-12");o(),r.allInputRange.forEach(function(t){var e=t.getAttribute("min"),n=t.getAttribute("max"),r=document.querySelector("[data-range-value]")||null,o=(t.setAttribute("step",1),document.querySelector(".field-suffix .field-suffix")||null),a="€",o=(o&&(a=document.querySelector(".field-suffix .field-suffix").innerText),document.createElement("div")),c=(o.classList.add("range-interval","d-flex","justify-content-between"),o.innerHTML="<div>".concat(e," ").concat(a,"</div><div>").concat(n," ").concat(a,"</div>"),'<span class="sticky-range">'.concat(n," ").concat(a,"</span>")),i=(t.parentNode.insertBefore(o,t),t.insertAdjacentHTML("afterend",c),t.parentNode.lastElementChild.offsetWidth);t.parentNode.lastElementChild.setAttribute("style","display: none;"),t.addEventListener("input",function(){l(t,a,e,n,i),r.innerHTML=t.value,s(t)}),t.addEventListener("focusout",function(){})}),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>
2'.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()})}),r.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(".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("change"))})})})}),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>")}),e(),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!=(o=document.querySelector(".webform-button--next"))&&(o.insertAdjacentHTML("afterend",'<div class="step-button">'.concat(o.outerHTML,"</div>")),o.remove(),document.querySelector(".step-button").insertAdjacentHTML("afterbegin",'<i data-icon="arrow" aria-hidden="true"></i>')),o=document.querySelector(".user-login-form"),r=document.querySelector(".banner > div > div > div > div > h1")||null,document.body.contains(o)&&(o.classList.add("module"),r&&(r.style.textAlign="center",r.style.borderBottom="1px solid #EFF3F8"),window.matchMedia("(min-width: 500px)").matches?r.style.paddingBottom="50px":r.style.paddingBottom="30px"),o=document.querySelector(".user-form__title"),r=document.querySelector(".user-login-form"),o&&r.insertAdjacentElement("afterbegin",o),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}),a(),c(),bsBreakpoints.init(),"xLarge"!==t&&"large"!==t||(n(),window.onresize=function(){n()})})})();
3
4;
5(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
vendor: 3,327 bytes, lines 5-7
5" 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);;
6/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.2.0/LICENSE.txt */
7loadjs=function(){var h=function(){},c={},u={},f={};function o(e,n){if(e){var r=f[e];if(u[e]=n,r)for(;r.length;)r[0](e,n),r.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function d(r,t,s,i){var c,o,e=document,n=s.async,u=(s.numRetries||0)+1,f=s.before||h,l=r.replace(/[\?|#].*$/,""),a=r.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(l)?((o=e.createElement("link")).rel="stylesheet",o.href=a,(c="hideFocus"in o)&&o.relList&&(c=0,o.rel="preload",o.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(l)?(o=e.createElement("img")).src=a:((o=e.createElement("script")).src=r,o.async=void 0===n||n),!(o.onload=o.onerror=o.onbeforeload=function(e){var n=e.type[0];if(c)try{o.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((i+=1)<u)return d(r,t,s,i)}else if("preload"==o.rel&&"style"==o.as)return o.rel="stylesheet";t(r,n,e.defaultPrevented)})!==f(r,o)&&e.head.appendChild(o)}function r(e,n,r){var t,s;if(n&&n.trim&&(t=n),s=(t?r:n)||{},t){if(t in c)throw"LoadJS";c[t]=!0}function i(n,r){!function(e,t,n){var r,s,i=(e=e.push?e:[e]).length,c=i,o=[];for(r=function(e,n,r){if("e"==n&&o.push(e),"b"==n){if(!r)return;o.push(e)}--i||t(o)},s=0;s<c;s++)d(e[s],r,n)}(e,function(e){l(s,e),n&&l({success:n,error:r},e),o(t,e)},s)}if(s.returnPromise)return new Promise(i);i()}return r.ready=function(e,n){return function(e,r){e=e.push?e:[e];var n,t,s,i=[],c=e.length,o=c;
7for(n=function(e,n){n.length&&i.push(e),--o||r(i)};c--;)t=e[c],(s=u[t])?n(t,s):(f[t]=f[t]||[]).push(n)}(e,function(e){l(n,e)}),r},r.done=function(e){o(e,[])},r.reset=function(){c={},u={},f={}},r.isDefined=function(e){return e in c},r}();;
8/* @license GNU-GPL-2.0-or-later https://www.drupal.org/licensing/faq */
9Drupal.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;};};;
10(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);;
11((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]');if(!wrapper){wrapper=document.querySelector('[data-drupal-messages-fallback]');wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.setAttribute('data-drupal-messages','');wrapper.classList.remove('hidden');}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);;
12(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}`;
12once('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;
12$(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
12d}`,$.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));
12$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);}if($newContent.parents('html').length)$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE)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+ajax.instanceIndex;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+ajax.instanceIndex;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).animate({scrollTop:offset.top-10},500);}};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);;
13(($,Drupal,{isTabbable})=>{$.extend($.expr[':'],{tabbable(element){Drupal.deprecationError({message:'The :tabbable selector is deprecated 
13in 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);;
14(($)=>{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 regexPercent=/%$/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(regexPercent.test(offsets[0])?width/100:1),parseFloat(offsets[1])*(regexPercent.test(offsets[1])?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($.isWindow(raw))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=$.isWindow(withinElement[0]);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(' ');
14if(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);;
15(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);;
16var addEventBtn,eventForm=document.querySelector(".add-event-form")||null,switchBloc=(eventForm&&(eventForm.insertAdjacentHTML("afterbegin","<p> "+ModuloTS["Fields followed by * are required"]+"</span>"),eventForm.querySelector("#edit-submit").classList.add("custom__input-file__button")),document.querySelector(".switch-toggle")||null),allSubLabel=(switchBloc&&(addEventBtn=document.querySelector(".submit-event")||null)&&switchBloc.appendChild(addEventBtn),document.querySelectorAll(".form__sub-label")||null);allSubLabel&&allSubLabel.forEach(function(e){e.querySelector("div:first-child").querySelector("label").setAttribute("data-before",ModuloTS["(3000 words maximum)"])});
17
18;
19!function(){function t(){"xSmall"!==bsBreakpoints.detectBreakpoint()&&"small"!==bsBreakpoints.detectBreakpoint()&&"medium"!==bsBreakpoints.detectBreakpoint()||a.appendChild(o),"xLarge"!==bsBreakpoints.detectBreakpoint()&&"large"!==bsBreakpoints.detectBreakpoint()||e.appendChild(o)}var n=document.querySelector("[data-js-header]"),o=document.querySelector("[data-js-header-nav]"),e=document.querySelector("[data-js-header-menu-desktop]"),a=document.querySelector("[data-js-header-menu-rwd]"),r=document.querySelector("[data-js-header-menu-toggle]"),c=document.querySelectorAll("[data-js-header-menu-previous]"),d=document.querySelectorAll(".leaf-lvl-1.expanded"),i=document.querySelectorAll(".expanded .header__menu__expanded"),s=document.querySelector("[data-js-header-account-toggle]");document.querySelector("body");window.addEventListener("load",function(){var e;document.body.contains(n)&&(e=document.querySelector("body").classList.contains("cartographie"),document.onscroll=function(){e?40<window.pageYOffset&&document.querySelector("main").offsetHeight>window.innerHeight?n.classList.add("scrolled"):n.classList.remove("scrolled"):40<window.pageYOffset?n.classList.add("scrolled"):n.classList.remove("scrolled")},document.querySelector(".header__menu__toggle").addEventListener("click",function(){document.querySelector(".header__menu__toggle").classList.contains("active")?document.querySelector("body").style.overflow="auto":document.querySelector("body").style.overflow="hidden"}),i.forEach(function(o){o.addEventListener("click",function(){var e=o.closest("li"),t=o.nextElementSibling,n=o.previousElementSibling.text;t.children[0].children[1].innerHTML=n,e.classList.toggle("active"),t.classList.toggle("active")})}),c.forEach(function(e){var t=e.closest(".header__menu__submenu");e.addEventListener("click",function(){e.previousElementSibling;t.classList.remove("active")})}),t(),r.addEventListener("click",function(){a.appendChild(o),r.classList.toggle("active"),"true"===r.getAttribute("aria-expanded")?r.setAttribute("aria-expanded","false"):r.setAttribute("aria-expanded","true"),a.classList.toggle("active")}),s&&s.addEventListener("click",function(){s.classList.toggle("active")}),d.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")})),window.onresize=function(){t()}})}();
20
21;
22!function(){var e,t,o,c=document.querySelector("[data-js-header-search-root]"),r={toggle:"data-js-header-search-toggle",content:"views-exposed-form"};document.body.contains(c)&&(e=c.querySelector(".".concat(r.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")}),document.querySelector(".views-exposed-form").insertAdjacentHTML("afterend",'<div class="search-overlay"></div>'),c.querySelector("[".concat(r.toggle,"]")).addEventListener("click",function(){var e=c.querySelector(".".concat(r.content));e.classList.toggle("views-exposed-form--open"),document.querySelector(".header__branding").classList.toggle("search-img--active"),document.querySelector(".search-overlay").classList.toggle("search-overlay--active"),document.querySelector("body").classList.toggle("overflow-h"),"Rechercher"===c.querySelector("[".concat(r.toggle,"] span")).innerText?(c.querySelector("[".concat(r.toggle,"]")).setAttribute("data-icon","cross"),c.querySelector("[".concat(r.toggle,"]")).setAttribute("aria-expanded",!0)):(c.querySelector("[".concat(r.toggle,"] span")).innerText="Rechercher",c.querySelector("[".concat(r.toggle,"]")).setAttribute("data-icon","search"),c.querySelector("[".concat(r.toggle,"]")).setAttribute("aria-expanded",!1)),$toggle(e,"block")}))}();
23
24;
25((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,
25n=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);
26
27;
28(()=>{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")};document.body.contains(n.root)&&window.addEventListener("load",function(){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")})})();
29
30;
31(()=>{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"]+"...")})();
32
33;
34(()=>{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
34([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()})})();
35
36;

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.