/*! For license information please see axeptio.js.LICENSE.txt */
(()=>{function t(e){return t="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(e)}function e(){"use strict";e=function(){return r};var n,r={},o=Object.prototype,i=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype);return f(a,"_invoke",function(t,e,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=E(u,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var s=d(t,e,r);if("normal"===s.type){if(o=r.done?4:2,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=4,r.method="throw",r.arg=s.arg)}}}(t,r,new k(o||[])),!0),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var p={};function h(){}function v(){}function y(){}var w={};f(w,u,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(j([])));m&&m!==o&&i.call(m,u)&&(w=m);var _=y.prototype=h.prototype=Object.create(w);function b(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==t(l)&&i.call(l,"__await")?n.resolve(l.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var o;f(this,"_invoke",(function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}),!0)}function E(t,e){var r=e.method,o=t.i[r];if(o===n)return e.delegate=null,"throw"===r&&t.i.return&&(e.method="return",e.arg=n,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=d(o,t.i,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var a=i.arg;return a?a.done?(e[t.r]=a.value,e.next=t.n,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){this.tryEntries.push(t)}function A(t){var e=t[4]||{};e.type="normal",e.arg=n,t[4]=e}function k(t){this.tryEntries=[[-1]],t.forEach(S,this),this.reset(!0)}function j(e){if(null!=e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return v.prototype=y,f(_,"constructor",y),f(y,"constructor",v),v.displayName=f(y,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,f(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},r.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(_),f(_,s,"Generator"),f(_,u,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},r.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n){a.type="throw",a.arg=t,e.next=n}for(var o=e.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],s=i[2];if(-1===i[0])return r("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=n,r(c),!0;if(u<s)return r(s),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),A(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={i:j(t),r:e,n:r},"next"===this.method&&(this.arg=n),p}},r}function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}window.axeptioWordpressSteps=window.axeptioWordpressSteps||[],window.axeptioWordpressVendors=window.axeptioWordpressVendors||[],window.Axeptio_SDK=window.Axeptio_SDK||[],window._axcb=window._axcb||[],window.wp_consent_type="optin","function"==typeof wp_set_consent&&Object.entries(window.axeptioSettings.googleConsentMode.default).forEach((function(t){var e=r(t,2),n=e[0];e[1];wp_set_consent(n,"deny")}));var i=new CustomEvent("wp_consent_type_defined");function a(){var t;return t=e().mark((function t(n){var r,o,i,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new TextEncoder,o=r.encode(n),t.next=4,crypto.subtle.digest("SHA-256",o);case 4:return i=t.sent,a=Array.from(new Uint8Array(i)),t.abrupt("return",a.map((function(t){return t.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return t.stop()}}),t)})),a=function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))},a.apply(this,arguments)}document.dispatchEvent(i),window._axcb.push((function(t){function e(){return NodeFilter.FILTER_ACCEPT}t.on("ready",(function(){var e=t.getCookiesConfig().identifier,n=t.config.cookies.find((function(t){return t.identifier===e})),r=(null==n?void 0:n.language)||"en";t.config.cookies.forEach((function(n){if("1"===window.Axeptio_SDK.enableGoogleConsentMode){var o,i;n.googleConsentMode={display:!0};var a=null==n||null===(o=n.steps)||void 0===o?void 0:o.some((function(t){return"como_v2"===t.layout}));if(null!=n&&null!==(i=n.googleConsentMode)&&void 0!==i&&i.display&&!a){var u={name:"google_consent_mode_v2",layout:"como_v2",identifier:"google_consent_mode_v2_".concat(Math.random().toString(36).substring(7))};null==n||n.steps.splice(1,0,u)}}n.identifier===e&&(window.axeptioWordpressVendors.forEach((function(t){if(t.step){var e=!1;if(n.steps.forEach((function(n){n.name!==t.step||"category"!==n.layout&&"info"!==n.layout||e||(e=!0,n.vendors=n.vendors||[],n.vendors.push(t))})),e)return;if(window.axeptioWordpressSteps.forEach((function(n){if(n.name===t.step&&!e){var o,i;e=!0;var a=window.Axeptio_SDK["widget_title_".concat(r)]||window.Axeptio_SDK.widget_title,u=window.Axeptio_SDK["widget_subtitle_".concat(r)]||window.Axeptio_SDK.widget_subtitle,c=window.Axeptio_SDK["widget_description_".concat(r)]||window.Axeptio_SDK.widget_description;a&&(n.title=a),u&&(n.subTitle=u),c&&(n.message=c),n.image=null!==(o=window.Axeptio_SDK.image)&&void 0!==o?o:"cookie-bienvenue",n.disablePaint=null!==(i=window.Axeptio_SDK.disablePaint)&&void 0!==i&&i,n.vendors=n.vendors||[],n.vendors.push(t)}})),e)return;if(n.steps.forEach((function(n){"category"!==n.category||e||(e=!0,n.vendors.push(t))})),e)return;if(n.steps.forEach((function(n){"info"!==n.category||e||(e=!0,n.vendors.push(t))})),e)return;console.warn("Could not add the Axeptio Plugin Vendor to the configuration")}})),window.axeptioWordpressSteps.forEach((function(t){t.vendors&&t.vendors.length>0&&n.steps.push(t)})),document.querySelectorAll("[data-axeptio-consent]")&&document.querySelectorAll("[data-axeptio-consent]").forEach((function(e){e.addEventListener("click",(function(){var n=e.getAttribute("data-axeptio-consent");t.requestConsent("wp_"+n)}))})))}))})),t.on("cookies:complete",(function(t){var n;if(function(t){return a.apply(this,arguments)}((n=t,Object.keys(n).filter((function(t){return!0===n[t]})).join("_"))).then((function(t){!function(t,e,n){var r="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),r="; expires="+o.toUTCString()}document.cookie=t+"="+(e||"")+r+"; path=/"}("axeptio_cache_identifier",t,7)})),"function"==typeof wp_set_consent&&"1"===window.Axeptio_SDK.enableGoogleConsentMode&&t.$$googleConsentMode){var r={ad_storage:"marketing",ad_user_data:"marketing",ad_personalization:"marketing",analytics_storage:"statistics",functionality_storage:"functional",personalization_storage:"preferences",security_storage:"functional"},o=t.$$googleConsentMode,i={};Object.keys(o).forEach((function(t){if(r[t]){var e=r[t],n="granted"===o[t]?"allow":"deny";(!i[e]||"allow"===n&&"allow"!==i[e])&&(i[e]=n)}})),Object.keys(i).forEach((function(t){wp_set_consent(t,i[t])}));var u=new CustomEvent("wp_consent_change",{detail:i});document.dispatchEvent(u)}(function(t){var n,r=[],o=document.createNodeIterator(t,NodeFilter.SHOW_COMMENT,e,!1);for(;n=o.nextNode();)r.push(n);return r})(document.body).forEach((function(e){if(e.nodeValue.indexOf("axeptio_blocked")>-1){var n=e.nodeValue.match(/axeptio_blocked ([\w_-]+)/)[1],r=e.nodeValue.match(/data-axeptio-attributes="([^"]+)"/);if(!t["wp_"+n])return;var o=e.previousElementSibling;o&&o.remove();var i=e.nodeValue.split("\n").slice(1).join("\n"),a=document.createElement("div");if(a.innerHTML=i,r&&r[1])if(r[1].split(",").includes("forceReload"))return void window.location.reload();e.parentElement.replaceChild(a.childNodes[0],e)}}))}))}))})()