// source --> https://la-clinique-naturelle.ch/wp-content/plugins/complianz-gdpr-premium/pro/tcf-stub/build/index.js?ver=1777564221 
(()=>{"use strict";var t={40:t=>{function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){for(var t,r,o=[],n=window,a=n;a;){try{if(a.frames.__tcfapiLocator){t=a;break}}catch(t){}if(a===n.top)break;a=a.parent}t||(function t(){var e=n.document,r=!!n.frames.__tcfapiLocator;if(!r)if(e.body){var o=e.createElement("iframe");o.style.cssText="display:none",o.name="__tcfapiLocator",e.body.appendChild(o)}else setTimeout(t,5);return!r}(),n.__tcfapi=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return o;"setGdprApplies"===e[0]?e.length>3&&2===parseInt(e[1],10)&&"boolean"==typeof e[3]&&(r=e[3],"function"==typeof e[2]&&e[2]("set",!0)):"ping"===e[0]?"function"==typeof e[2]&&e[2]({gdprApplies:r,cmpLoaded:!1,cmpStatus:"stub"}):o.push(e)},n.addEventListener("message",(function(t){var r="string"==typeof t.data,o={};if(r)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===e(o)&&null!==o?o.__tcfapiCall:null;if(n){var a=null==t?void 0:t.source;window.__tcfapi(n.command,n.version,(function(t,e){var o={__tcfapiReturn:{returnValue:t,success:e,callId:n.callId}};a&&a.postMessage&&a.postMessage(r?JSON.stringify(o):o,"*")}),n.parameter),a=null}}),!1))}}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var a=e[o]={exports:{}};return t[o](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r(40)()})();
// source --> https://la-clinique-naturelle.ch/wp-content/plugins/weglot/dist/front-js.js?ver=5.4 
(()=>{function e(){document.querySelectorAll(".weglot-custom-switcher-ajax").forEach(e=>{const t=e.getAttribute("data-wg-target"),o=e.getAttribute("data-wg-sibling"),n=t?document.querySelector(t):null,c=o?document.querySelector(o):null;n&&c?n.insertBefore(e,c):n?n.insertBefore(e,n.firstChild):c?c.parentNode.insertBefore(e,c):e.classList.add("weglot-default","weglot-invert"),e.classList.remove("weglot-custom-switcher-ajax")})}setTimeout(()=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>e()):e()},1500),window.WeglotSwitcherControl={hideSwitchers:!0,updateSwitchers:function(){const e=document.querySelectorAll(".weglot-dropdown");null!==e&&[].forEach.call(e,function(e){e.style.display=window.WeglotSwitcherControl.hideSwitchers?"none":""})}},document.addEventListener("WeglotSwitcherUpdate",function(){window.WeglotSwitcherControl.updateSwitchers()}),document.addEventListener("DOMContentLoaded",function(e){const t=document.querySelector(".country-selector");if(!t)return;const o=function(e){let t=0,o=0;do{t+=e.offsetTop||0,o+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:o}}(t).top,n=document.body,c=document.documentElement,l=Math.max(n.scrollHeight,n.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),r=window.getComputedStyle(t).getPropertyValue("position");window.getComputedStyle(t).getPropertyValue("bottom"),window.getComputedStyle(t).getPropertyValue("top"),("fixed"!==r&&o>l/2||"fixed"===r&&o>100)&&(t.className+=" weglot-invert"),function(){try{return window.frameElement||window.self!==window.top}catch(e){return!1}}()&&window.WeglotSwitcherControl.updateSwitchers(),document.addEventListener("click",e=>{null==e.target.closest(".country-selector.close_outside_click")&&document.querySelectorAll(".country-selector.close_outside_click.weglot-dropdown input").forEach(e=>{e.checked=!1})});const s=document.getElementsByClassName("country-selector"),i=e=>!e.className.includes("closed");let d;if(s.length>0){const a=document.getElementsByClassName("wgcurrent");for(let f of s){const w={ENTER:13,ESCAPE:27,ARROWUP:38,ARROWDOWN:40},g=()=>{const{bottom:e=0}=f.getBoundingClientRect();return e>window.innerHeight/2},m=()=>{f.classList.remove("closed"),document.querySelectorAll(".country-selector.weglot-dropdown input").checked=!0,f.setAttribute("aria-expanded","true")},h=()=>{f.classList.add("closed"),document.querySelectorAll(".country-selector.weglot-dropdown input").checked=!1,f.setAttribute("aria-expanded","false"),d&&(d.classList.remove("focus"),d=null)},y=e=>{getLangNameFromCode(e),f.setAttribute("aria-label","Language selected: "+e)},p=()=>{f.classList.contains("closed")?m():h(),d&&d.classList.remove("focus"),d=null};function u(e){if(d){const e=d.getAttribute("data-l");y(e),f.focus()}p()}f.addEventListener("keydown",e=>{if(e.keyCode!==w.ENTER){if(e.keyCode===w.ARROWDOWN||e.keyCode===w.ARROWUP)return e.preventDefault(),void S(e.keyCode);e.keyCode===w.ESCAPE&&i(f)&&(e.preventDefault(),h(),f.focus())}else{for(var t=0;t<a.length;t++)a[t].click();if(d){const e=d.getAttribute("data-l");y(e),f.focus()}p()}}),f.addEventListener("mousedown",u),f.className.includes("open_hover")&&(f.addEventListener("mouseenter",e=>{if(d){const e=d.getAttribute("data-l");y(e),f.focus()}p(),f.querySelector("input.weglot_choice").checked=!0}),f.addEventListener("mouseleave",e=>{if(d){const e=d.getAttribute("data-l");y(e),f.focus()}p(),f.querySelector("input.weglot_choice").checked=!1}));const S=e=>{const t=e===w.ARROWDOWN?"nextSibling":"previousSibling",o=g();if(!d||!i(f)){const t=o?"ul li.wg-li:last-child":"ul li.wg-li";for(var n=0;n<a.length;n++)d=a[n].parentNode.querySelector(t);if(!d)return;d.classList.add("focus"),d.childNodes[0].focus(),d.scrollIntoView({block:"center"});const c=e===w.ARROWUP&&o||e===w.ARROWDOWN&&!o;return void(!i(f)&&c&&m())}d[t]?(d.classList.remove("focus"),d=d[t],d.classList.add("focus"),d.childNodes[0].focus(),d.scrollIntoView({block:"center"})):(e===w.ARROWUP&&!o||e===w.ARROWDOWN&&o)&&(h(),f.focus())}}}return!1})})();