!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.ES6Promise=t()}(this,function(){"use strict";function ct(n){var t=typeof n;return null!==n&&("object"===t||"function"===t)}function nt(n){return"function"==typeof n}function lt(n){g=n}function at(n){u=n}function vt(){return function(){return process.nextTick(f)}}function yt(){return"undefined"!=typeof d?function(){d(f)}:y()}function pt(){var n=0,i=new st(f),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function wt(){var n=new MessageChannel;return n.port1.onmessage=f,function(){return n.port2.postMessage(0)}}function y(){var n=setTimeout;return function(){return n(f,1)}}function f(){for(var t,i,n=0;n<o;n+=2)t=s[n],i=s[n+1],t(i),s[n]=void 0,s[n+1]=void 0;o=0}function bt(){try{var n=Function("return this")().require("vertx");return d=n.runOnLoop||n.runOnContext,yt()}catch(t){return y()}}function p(n,t){var f=this,i=new this.constructor(e),r,o;return void 0===i[v]&&ut(i),r=f._state,r?(o=arguments[r-1],u(function(){return rt(r,i,o,f._result)})):b(f,i,n,t),i}function w(n){var i=this,t;return n&&"object"==typeof n&&n.constructor===i?n:(t=new i(e),l(t,n),t)}function e(){}function kt(){return new TypeError("You cannot resolve a promise with itself")}function dt(){return new TypeError("A promises callback cannot return that same promise.")}function tt(n){try{return n.then}catch(t){return r.error=t,r}}function gt(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function ni(n,r,f){u(function(n){var u=!1,e=gt(f,r,function(t){u||(u=!0,r!==t?l(n,t):i(n,t))},function(i){u||(u=!0,t(n,i))},"Settle: "+(n._label||" unknown promise"));!u&&e&&(u=!0,t(n,e))},n)}function ti(n,r){r._state===a?i(n,r._result):r._state===c?t(n,r._result):b(r,void 0,function(t){return l(n,t)},function(i){return t(n,i)})}function it(n,u,f){u.constructor===n.constructor&&f===p&&u.constructor.resolve===w?ti(n,u):f===r?(t(n,r.error),r.error=null):void 0===f?i(n,u):nt(f)?ni(n,u,f):i(n,u)}function l(n,r){n===r?t(n,kt()):ct(r)?it(n,r,tt(r)):i(n,r)}function ii(n){n._onerror&&n._onerror(n._result);k(n)}function i(n,t){n._state===h&&(n._result=t,n._state=a,0!==n._subscribers.length&&u(k,n))}function t(n,t){n._state===h&&(n._state=c,n._result=t,u(ii,n))}function b(n,t,i,r){var f=n._subscribers,e=f.length;n._onerror=null;f[e]=t;f[e+a]=i;f[e+c]=r;0===e&&n._state&&u(k,n)}function k(n){var t=n._subscribers,f=n._state;if(0!==t.length){for(var r=void 0,u=void 0,e=n._result,i=0;i<t.length;i+=3)r=t[i],u=t[i+f],r?rt(f,r,u,e):u(e);n._subscribers.length=0}}function ri(n,t){try{return n(t)}catch(i){return r.error=i,r}}function rt(n,u,f,e){var v=nt(f),o=void 0,y=void 0,s=void 0,p=void 0;if(v){if(o=ri(f,e),o===r?(p=!0,y=o.error,o.error=null):s=!0,u===o)return void t(u,dt())}else o=e,s=!0;u._state!==h||(v&&s?l(u,o):p?t(u,y):n===a?i(u,o):n===c&&t(u,o))}function ui(n,i){try{i(function(t){l(n,t)},function(i){t(n,i)})}catch(r){t(n,r)}}function fi(){return ht++}function ut(n){n[v]=ht++;n._state=void 0;n._result=void 0;n._subscribers=[]}function ei(){return new Error("Array Methods must be provided an Array")}function oi(n){return new bi(this,n).promise}function si(n){var t=this;return new t(ft(n)?function(i,r){for(var f=n.length,u=0;u<f;u++)t.resolve(n[u]).then(i,r)}:function(n,t){return t(new TypeError("You must pass an array to race."))})}function hi(n){var r=this,i=new r(e);return t(i,n),i}function ci(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function li(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function ai(){var t=void 0,i,r;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(u){throw new Error("polyfill failed because global object is unavailable in this environment");}if(i=t.Promise,i){r=null;try{r=Object.prototype.toString.call(i.resolve())}catch(u){}if("[object Promise]"===r&&!i.cast)return}t.Promise=n}var vi=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)};var ft=vi,o=0,d=void 0,g=void 0,u=function(n,t){s[o]=n;s[o+1]=t;o+=2;2===o&&(g?g(f):wi())},et="undefined"!=typeof window?window:void 0,ot=et||{},st=ot.MutationObserver||ot.WebKitMutationObserver,yi="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),pi="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,s=new Array(1e3),wi=yi?vt():st?pt():pi?wt():void 0===et&&"function"==typeof require?bt():y();var v=Math.random().toString(36).substring(2),h=void 0,a=1,c=2,r={error:null},ht=0,bi=function(){function r(n,r){this._instanceConstructor=n;this.promise=new n(e);this.promise[v]||ut(this.promise);ft(r)?(this.length=r.length,this._remaining=r.length,this._result=new Array(this.length),0===this.length?i(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&i(this.promise,this._result))):t(this.promise,ei())}return r.prototype._enumerate=function(n){for(var t=0;this._state===h&&t<n.length;t++)this._eachEntry(n[t],t)},r.prototype._eachEntry=function(t,i){var r=this._instanceConstructor,o=r.resolve,u,f;o===w?(u=tt(t),u===p&&t._state!==h?this._settledAt(t._state,i,t._result):"function"!=typeof u?(this._remaining--,this._result[i]=t):r===n?(f=new r(e),it(f,t,u),this._willSettleAt(f,i)):this._willSettleAt(new r(function(n){return n(t)}),i)):this._willSettleAt(o(t),i)},r.prototype._settledAt=function(n,r,u){var f=this.promise;f._state===h&&(this._remaining--,n===c?t(f,u):this._result[r]=u);0===this._remaining&&i(f,this._result)},r.prototype._willSettleAt=function(n,t){var i=this;b(n,void 0,function(n){return i._settledAt(a,t,n)},function(n){return i._settledAt(c,t,n)})},r}(),n=function(){function n(t){this[v]=fi();this._result=this._state=void 0;this._subscribers=[];e!==t&&("function"!=typeof t&&ci(),this instanceof n?ui(this,t):li())}return n.prototype["catch"]=function(n){return this.then(null,n)},n.prototype["finally"]=function(n){var t=this,i=t.constructor;return t.then(function(t){return i.resolve(n()).then(function(){return t})},function(t){return i.resolve(n()).then(function(){throw t;})})},n}();return n.prototype.then=p,n.all=oi,n.race=si,n.resolve=w,n.reject=hi,n._setScheduler=lt,n._setAsap=at,n._asap=u,n.polyfill=ai,n.Promise=n,n.polyfill(),n}),function(n){"use strict";var t=function(n,t,i,r,u,f){function e(){g&&(arguments[0]=":XDC_PAGE: "+arguments[0],console.log.apply(console,arguments))}function rt(t){var r,i;if((e("_inbound_postmessage",t.origin,t.data),r=t.origin||t.originalEvent.origin,n.substr(0,r.length)===r)&&typeof t.data=="string"){i=null;try{i=JSON.parse(t.data)}catch(u){}!i||typeof i!="object"||i instanceof Array||"msg_type"in i&&i.msg_type==="xdsc_read"&&"namespace"in i&&i.namespace===v&&(l=i.cookies,h=!0,y())}}function ut(){e("_iframe_load_error_occured");s=!0;y()}function nt(n){c.push(n);y()}function y(){if(s||h)while(c.length>0)c.pop()(s)}function ft(t,i,r){var u={namespace:v,msg_type:"xdsc_write",cookie_name:t,cookie_val:i,expires_days:r,secure_only:d};e("_set_cookie_in_iframe",u);document.getElementById("xdomain_cookie_"+w).contentWindow.postMessage(JSON.stringify(u),n)}function et(n){for(var r=n+"=",u=document.cookie.split(";"),i,t=0;t<u.length;t++)if(i=u[t].trim(),i.indexOf(r)===0)return decodeURIComponent(i.substring(r.length,i.length));return""}function ot(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u=n+"="+t+"; expires="+r.toUTCString()+(d?";secure":"");e("_set_local_cookie",u);document.cookie=u}function p(n,t,i){if(!h&&!s)return c.push(function(){p(n,t,i)});i=i||b;i=t===null||t===undefined?-100:i;k||ot(n,t,i);s||ft(n,t,i);l[n]=t}function st(n,t,i){function u(t,r,u){e("_get_xdomain_cookie_value D",t,r);p(n,r,i);typeof u=="function"&&u(r)}if(i=i||b,e("_get_xdomain_cookie_value A",n),!k){var r=et(n);if(r)return e("_get_xdomain_cookie_value B",r),nt(function(n){u(!n,r)}),t(r)}nt(function(i){if(e("_get_xdomain_cookie_value C",i),i)return u(!1,null,t);var r=n in l?l[n]:null;u(!i,r,t)})}var o,a,tt;n.substr(0,2)==="//"&&(n=(window.location.protocol==="https:"?"https:":"http:")+n);var v=t||"xdsc",it=r||6e3,h=!1,s=!1,c=[],l={},w=(new Date).getTime(),b=30,k=!!i,d=!!u,g=!!f;return window.addEventListener("message",rt),o=document.createElement("iframe"),o.style.display="none",o.id="xdomain_cookie_"+w,a=window.location.origin,a||(a=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),tt={namespace:v,window_origin:a,iframe_origin:n,debug:g},o.src=n+"/xdomain_cookie.html#"+encodeURIComponent(JSON.stringify(tt)),document.body.appendChild(o),e("creating iframe",o.src),setTimeout(function(){h||ut()},it),{get:st,set:p}};n.xDomainCookie=t}(this),function(n){function u(n){var t=document.createElement("a"),u,f,r,i,e;for(t.href=n,t.href=t.href,t.host===""&&(u=window.location.protocol+"//"+window.location.host,n.charAt(1)==="/"?t.href=u+n:(f=("/"+t.pathname).match(/.*\//)[0],t.href=u+f+n)),r=["host","hostname","hash","href","port","protocol","search"],i=0,e=r.length;i<e;i++)this[r[i]]=t[r[i]];this.pathname=(t.pathname.charAt(0)!=="/"?"/":"")+t.pathname}function f(){var n,t,i;try{throw new Error;}catch(r){n=r.stack.split("\n");t=0;for(i in n)if(n[i].match(/http[s]?:\/\//)){t=Number(i)+2;break}pathParts=n[t].match(/((http[s]?:\/\/.+\/)([^\/]+(\.js)?)):/)}this.URLObject=function(){return new u(pathParts[0])};this.fullPath=function(){return pathParts[1]};this.path=function(){return pathParts[2]};this.file=function(){return pathParts[3]};this.fileNoExt=function(){var n=this.file().split(".");return n.length=n.length!=1?n.length-1:1,n.join(".")}}var t,i,r;n.hasInitialised||(window.onload=function(){var t=n.getCookieNameFromCookie();n.UpdateDOM(t)},t={escapeRegExp:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(n,t){var i=" ";return n.nodeType===1&&(i+n.className+i).replace(/[\n\t]/g,i).indexOf(i+t+i)>=0},addClass:function(n,t){n.className+=" "+t},removeClass:function(n,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");n.className=n.className.replace(i,"")},interpolateString:function(n,t){return n.replace(/{{([a-z][a-z0-9\-_]*)}}/ig,function(){return t(arguments[1])||""})},getCookieName:function(n){var t="FS_cookieconsent_status";return n&&(t=n),t},getCookie:function(i){var r=this.getCookieName(i);if(window.FSCookieSetBackwardsCompatibilityOn){var e="; "+document.cookie,u=e.split("; "+r+"="),f=u.length!==2?undefined:u.pop().split(";").shift();return u.length!==2&&f!=="allowAll"?(t.setCookie("FS_cookieconsent_status",n.status.allowAll,365,"","/"),t.isCookieAccepted=!0,"allowAll"):f}return new Promise(function(i){if(window.xd_cookie)window.xd_cookie.get(r,function(r){r===null&&(t.setCookie("FS_cookieconsent_status",n.status.allowAll,365,"","/"),t.isCookieAccepted=!0,i("allowAll"));i(r)});else{var e="; "+document.cookie,u=e.split("; "+r+"="),f=u.length!==2?undefined:u.pop().split(";").shift();u.length!==2&&f!=="allowAll"&&(t.setCookie("FS_cookieconsent_status",n.status.allowAll,365,"","/"),t.isCookieAccepted=!0,i(f));i(f)}})},getBannerDisplayedCookie:function(){var n="FS_bannerDisplayed",r="; "+document.cookie,t=r.split("; "+n+"="),i=t.length!==2?undefined:t.pop().split(";").shift();return i===null?new Promise(function(t){if(window.xd_cookie)window.xd_cookie.get(n,function(n){n===null?t(!1):t(n)});else{var u="; "+document.cookie,i=u.split("; "+n+"="),r=i.length!==2?undefined:i.pop().split(";").shift();r===null?t(!1):t(r)}}):i},setCookie:function(n,t,i,r,u){var f,e;if(window.FSCookieSetBackwardsCompatibilityOn&&n!=="FS_bannerDisplayed"){f=new Date;f.setDate(f.getDate()+(i||365));e=[n+"="+t,"expires="+f.toUTCString(),"path="+(u||"/"),"secure","samesite=none"];r&&e.push("domain="+r);document.cookie=e.join(";");return}window.xd_cookie?(window.xd_cookie.set(n,t,i||365),n==="FS_bannerDisplayed"&&(f=new Date,f.setDate(f.getDate()+(i||365)),e=[n+"="+t,"expires="+f.toUTCString(),"path="+(u||"/"),"secure","samesite=none"],r&&e.push("domain="+r),document.cookie=e.join(";"))):(f=new Date,f.setDate(f.getDate()+(i||365)),e=[n+"="+t,"expires="+f.toUTCString(),"path="+(u||"/"),"secure","samesite=none"],r&&e.push("domain="+r),document.cookie=e.join(";"))},deepExtend:function(n,t){for(var i in t)t.hasOwnProperty(i)&&(i in n&&this.isPlainObject(n[i])&&this.isPlainObject(t[i])?this.deepExtend(n[i],t[i]):n[i]=t[i]);return n},isPlainObject:function(n){return typeof n=="object"&&n!==null&&n.constructor===Object},getAuthDomain:function(){var n=new f,t=n.URLObject();return t.host},initCrossDomainCookie:function(){window.xd_cookie=xDomainCookie("//"+t.getAuthDomain()+"/static","fs.cookie.consent",!0)},isCookieAccepted:!1},n.status={necessaryOnly:"necessaryOnly",allowAll:"allowAll"},n.transitionEnd=function(){var i=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"},n;for(n in t)if(t.hasOwnProperty(n)&&typeof i.style[n+"ransition"]!="undefined")return t[n];return""}(),n.hasTransition=!!n.transitionEnd,i=Object.keys(n.status).map(t.escapeRegExp),n.customStyles={},n.Popup=function(){function r(){this.initialise.apply(this,arguments)}function u(n){this.openingTimeout=null;t.removeClass(n,"cc-invisible")}function f(t){t.style.display="none";t.removeEventListener(n.transitionEnd,this.afterTransition);this.afterTransition=null}function e(){var t,i;if(window.FSCookieSetBackwardsCompatibilityOn){if(t=this.options.onInitialise.bind(this),!window.navigator.cookieEnabled)return t(n.status.necessaryOnly),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(n.status.allowAll),!0;var f=Object.keys(n.status),r=this.getStatus(),u=f.indexOf(r)>=0;return u&&t(r),u}return i=this,new Promise(function(t){var r=i.options.onInitialise.bind(i),u;window.navigator.cookieEnabled||(r(n.status.necessaryOnly),t(!0));(window.CookiesOK||window.navigator.CookiesOK)&&(r(n.status.allowAll),t(!0));u=Object.keys(n.status);i.getStatus().then(function(n){var i=u.indexOf(n)>=0;i&&r(n);t(i)})})}function s(){var t=this.options.position.split("-"),n=[];return t.forEach(function(t){n.push("cc-"+t)}),n}function h(){var n=this.options,i=n.position==="top"||n.position==="bottom"?"banner":"floating",t=["cc-"+i,"cc-type-"+n.type,"cc-theme-"+n.theme];return n.static&&t.push("cc-static"),t.push.apply(t,s.call(this)),this.customStyleSelector&&t.push(this.customStyleSelector),t}function l(){var r={},n=this.options,i;return n.showLink||(n.elements.link="",n.elements.messagelink=n.elements.message),Object.keys(n.elements).forEach(function(i){r[i]=t.interpolateString(n.elements[i],function(t){var i=n.content[t];return t&&typeof i=="string"&&i.length?i:""})}),i=n.layouts[n.layout],i||(i=n.layouts.basic),this.options.language&&(this.options.language==="french"||this.options.language==="French")&&(i=n.layouts.french),t.interpolateString(i,function(n){return r[n]})}function a(i){var u=document.createElement("div"),f=document.body,r;return u.innerHTML=i,r=u.children[0],r.style.display="none",t.hasClass(r,"cc-window")&&n.hasTransition&&t.addClass(r,"cc-invisible"),this.onButtonClick=v.bind(this),r.addEventListener("click",this.onButtonClick),f.appendChild(r),r}function v(n){var r=n.target,u,f;t.hasClass(r,"cc-btn")&&(u=r.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),f=u&&u[1]||!1,f&&this.close(!0));t.hasClass(r,"cc-btn")&&this.close(!0);t.hasClass(r,"cc-close")&&this.close(!0)}var o={enabled:!0,hidden:!1,env:"local",cookie:{name:"FS_cookieconsent_status",path:"/",domain:"",expiryDays:365},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(){},onStatusChange:function(){},content:{messageFrench:"Ce site utilise des témoins de connexion (cookie) pour améliorer votre expérience de navigation. En utilisant le site Web, vous consentez à l’utilisation de ces témoins. Pour en savoir plus sur notre engagement à protéger vos renseignements personnels, consultez notre <a id='cc-policy-link' class='cc-link'  target='_blank' href ='{{policyUrl}}'>Politique sur les témoins de connexion<\/a>.",message:"This site uses cookies to improve your browsing experience. By using the website, you consent to the use of these cookies. To learn more about our commitment to protecting your personal information, see our <a id='cc-policy-link' class='cc-link' target='_blank' href ='{{policyUrl}}'>Cookie Policy<\/a>.",allowAll:"Continue",allowAllFrench:"Continuer"},elements:{messageFrench:'<span id="cookieconsent:desc" class="cc-message">{{messageFrench}}<\/span>',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}<\/span>',allowAll:'<a aria-label="allowAll cookie message" role=button tabindex="0" class="cc-btn cc-allowAll">{{allowAll}}<\/a>',allowAllFrench:'<a aria-label="allowAll cookie message" role=button tabindex="0" class="cc-btn cc-allowAll">{{allowAllFrench}}<\/a>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}"><!--googleoff: all-->{{children}}<!--googleon: all--> <div class="cc-close">&times;<span class="cc-sr-only">close<\/span><\/div><\/div>',layouts:{basic:"{{message}}",french:"{{messageFrench}}"},layout:"basic",position:"top",theme:"block",static:!1,palette:{popup:{background:"#eaf7f7",text:"#5c7291"},button:{background:"#56cbdb",text:"#ffffff"}},language:null,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,autoOpen:!0,autoAskForAllowAll:!0,cookiePolicyUrl:"https://www.frontstream.com/cookie-policy/",crossDomainEnabled:!1};return r.prototype.initialise=function(i){function c(){r.element=a.call(r,s);r.options.autoOpen&&r.autoOpen();r.options.autoAskForAllowAll&&r.autoAskForAllowAll()}var r=this,u,f,s;this.options&&this.destroy();t.deepExtend(this.options={},o);i&&i.cookie&&(!i.cookie.name||i.cookie.name==="")&&(i.cookie.name="FS_cookieconsent_status");t.isPlainObject(i)&&t.deepExtend(this.options,i);i&&i.cookie&&i.cookie.name&&i.cookie.name!==""?t.setCookie("FS_Organization_CookieName",i.cookie.name,365,"","/"):t.setCookie("FS_Organization_CookieName","",-1,"","/");i&&i.crossDomainEnabled&&(window.FSCookieSetBackwardsCompatibilityOn=!1,n.isCompatibilityOn=window.FSCookieSetBackwardsCompatibilityOn);window.FSCookieSetBackwardsCompatibilityOn?e.call(this)&&(this.options.enabled=!1):(u=this,e.call(this).then(function(n){n&&(u.options.enabled=!1)}));f=this.options.cookiePolicyUrl||"";s=this.options.window.replace("{{classes}}",h.call(this).join(" ")).replace("{{children}}",l.call(this)).replace("{{policyUrl}}",f);document.body?c():setTimeout(function(){c()},100)},r.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null);this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null);this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null);this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null);this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element);this.element=null;this.options=null},r.prototype.open=function(){return this.element?this.options.hidden?null:(this.isOpen()||(n.hasTransition?this.fadeIn():this.element.style.display="",this.options.onPopupOpen.call(this)),this):null},r.prototype.close=function(){return this.element?(this.isOpen()&&(n.hasTransition?this.fadeOut():this.element.style.display="none",this.options.onPopupClose.call(this)),this):null},r.prototype.fadeIn=function(){var i=this.element,r,e;n.hasTransition&&i&&(this.afterTransition&&f.call(this,i),t.hasClass(i,"cc-invisible")&&(i.style.display="",this.options.static&&(r=this.element.clientHeight,this.element.parentNode.style.maxHeight=r+"px"),e=20,this.openingTimeout=setTimeout(u.bind(this,i),e)))},r.prototype.fadeOut=function(){var i=this.element;n.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),u.bind(this,i)),t.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=f.bind(this,i),i.addEventListener(n.transitionEnd,this.afterTransition),t.addClass(i,"cc-invisible")))},r.prototype.isOpen=function(){return this.element&&this.element.style.display===""&&(n.hasTransition?!t.hasClass(this.element,"cc-invisible"):!0)},r.prototype.hasAnswered=function(){var t,i;return window.FSCookieSetBackwardsCompatibilityOn?(t=this.getStatus(),Object.keys(n.status).indexOf(t)>=0):(i=this,new Promise(function(t){i.getStatus().then(function(i){t(Object.keys(n.status).indexOf(i)>=0)})}))},r.prototype.hasConsented=function(){var t,i;return window.FSCookieSetBackwardsCompatibilityOn?(t=this.getStatus(),t===n.status.necessaryOnly||t===n.status.allowAll):(i=this,new Promise(function(t){i.getStatus().then(function(i){t(i===n.status.necessaryOnly||i===n.status.allowAll)})}))},r.prototype.autoOpen=function(){if(window.FSCookieSetBackwardsCompatibilityOn){!this.hasAnswered()&&this.options.enabled&&this.open();return}var n=this;this.hasAnswered().then(function(t){!t&&n.options.enabled&&n.open()})},r.prototype.autoAskForAllowAll=function(){var i=this,r;n.alertHasDisplayed!==!0&&(r=Promise.resolve(t.getBannerDisplayedCookie()),r.then(function(r){if(n.alertHasDisplayed=r,window.FSCookieSetBackwardsCompatibilityOn){(i.hasAnswered()&&t.getCookie()===n.status.allowAll||!i.options.autoAskForAllowAll)&&n.alertHasDisplayed||(n.UpdateDOM("FS_cookieconsent_status"),n.alertHasDisplayed=!0,t.setCookie("FS_bannerDisplayed",!0,365,"","/"),i.open());return}t.getCookie().then(function(r){i.hasAnswered().then(function(u){(u&&r===n.status.allowAll||!i.options.autoAskForAllowAll)&&n.alertHasDisplayed||(n.alertHasDisplayed=!0,t.setCookie("FS_bannerDisplayed",!0,365,"","/"),i.open())})})}))},r.prototype.setStatus=function(i){var u;if(window.FSCookieSetBackwardsCompatibilityOn){var f=t.getCookie(),r=this.options.cookie,e=Object.keys(n.status).indexOf(f)>=0;Object.keys(n.status).indexOf(i)>=0?(t.setCookie(r.name,i,r.expiryDays,r.domain,r.path),n.UpdateDOM(r.name),this.options.onStatusChange.call(this,i,e)):this.clearStatus();return}u=this;t.getCookie().then(function(r){var f=u.options.cookie,e=Object.keys(n.status).indexOf(r)>=0;Object.keys(n.status).indexOf(i)>=0?(t.setCookie(f.name,i,f.expiryDays,f.domain,f.path),n.UpdateDOM(f.name),u.options.onStatusChange.call(u,i,e)):u.clearStatus()})},r.prototype.getCookieName=function(n){return t.getCookieName(n)},r.prototype.getStatus=function(n){return t.getCookie(n)},r.prototype.clearStatus=function(n){var i=t.getCookieName(n);t.setCookie(i,"",-1,c.domain,c.path)},r}(),n.initialize=function(t){return new n.Popup(t)},n.getStatus=function(n){var i=t.getCookieName(n);return t.getCookie(i)},n.getCrossDomainStatus=function(i){window.FSCookieSetBackwardsCompatibilityOn=!1;n.isCompatibilityOn=window.FSCookieSetBackwardsCompatibilityOn;var r=t.getCookieName(i);return t.getCookie(r)},n.getCookieName=function(n){return t.getCookieName(n)},n.necessaryOnly=function(i){var r=t.getCookieName(i);t.setCookie(r,n.status.necessaryOnly,365,"","/");n.UpdateDOM(r)},n.getCookieNameFromCookie=function(n){var t="FS_cookieconsent_status",u="; "+document.cookie,i=u.split("; FS_Organization_CookieName="),r=i.length!==2?undefined:i.pop().split(";").shift();return r&&(t=r),n&&(t=n),t},n.onStatusChange=function(n){t.onStatusChange=n},n.UpdateDOM=function(i){var r=t.getCookieName(i);if(n.ConvertIframes(r),n.ConvertAngularIframes(r),n.ConvertScripts(r),n.ConvertLinks(r),n.ConvertOptOutClasses(r),typeof t.onStatusChange=="function")if(window.FSCookieSetBackwardsCompatibilityOn)t.onStatusChange(t.getCookie());else t.getCookie().then(function(n){t.onStatusChange(n)})},n.ConvertOptOutClasses=function(i){function u(t){for(var r=document.getElementsByClassName("fs-cookie-optout"),u=r.length,i=0;i<u;i++)try{t&&t!==n.status.necessaryOnly?t!==n.status.necessaryOnly&&(r[i].style.display="none"):r[i].style.display="block"}catch(f){console.log(f.message)}}var r=t.getCookieName(i);if(window.FSCookieSetBackwardsCompatibilityOn){u(t.getCookie(r));return}t.getCookie(r).then(function(n){u(n)})},n.ConvertIframes=function(i){function u(t){for(var r=document.getElementsByTagName("iframe"),e=r.length,u,f,i=0;i<e;i++)try{u=r[i].getAttribute("data-cookieconsent");f=r[i].getAttribute("data-src");f&&u&&u==="true"&&t===n.status.allowAll?(r[i].setAttribute("src",r[i].getAttribute("data-src")),r[i].removeAttribute("data-src")):f&&u&&t!==n.status.allowAll&&r[i].removeAttribute("src")}catch(o){console.log(o.message)}}var r=t.getCookieName(i);if(window.FSCookieSetBackwardsCompatibilityOn){u(t.getCookie(r));return}t.getCookie(r).then(function(n){u(n)})},n.ConvertAngularIframes=function(i){function u(t){for(var r=document.getElementsByTagName("iframe"),e=r.length,u,f,i=0;i<e;i++)try{u=r[i].getAttribute("data-cookieconsent");f=r[i].getAttribute("data-ng-src");f&&u&&u==="true"&&t===n.status.allowAll?(r[i].setAttribute("ng-src",r[i].getAttribute("data-src")),r[i].removeAttribute("data-ng-src")):f&&u&&t!==n.status.allowAll&&r[i].removeAttribute("ng-src")}catch(o){console.log(o.message)}}var r=t.getCookieName(i);if(window.FSCookieSetBackwardsCompatibilityOn){u(t.getCookie(r));return}t.getCookie(r).then(function(n){u(n)})},n.ConvertScripts=function(i){function u(t){for(var r=document.getElementsByTagName("script"),e=r.length,u,f,i=0;i<e;i++)try{u=r[i].getAttribute("data-cookieconsent");f=r[i].getAttribute("type");f&&u&&u==="true"&&t===n.status.allowAll?(r[i].setAttribute("type","text/javascript"),r[i].setAttribute("src",r[i].getAttribute("data-src")),r[i].removeAttribute("data-src")):f&&u&&t!==n.status.allowAll&&r[i].setAttribute("type","text/plain")}catch(o){console.log(o.message)}}var r=t.getCookieName(i);if(window.FSCookieSetBackwardsCompatibilityOn){u(t.getCookie(r));return}t.getCookie(r).then(function(n){u(n)})},n.ConvertLinks=function(i){function r(t){for(var r=document.getElementsByTagName("link"),e=r.length,u,f,i=0;i<e;i++)try{u=r[i].getAttribute("data-cookieconsent");f=r[i].getAttribute("type");f&&u&&u==="true"&&t===n.status.allowAll?(r[i].setAttribute("type","text/css"),r[i].setAttribute("href",r[i].getAttribute("data-href")),r[i].removeAttribute("data-href")):f&&u&&t!==n.status.allowAll&&r[i].setAttribute("type","text/plain")}catch(o){console.log(o.message)}}var u=t.getCookieName(i);if(window.FSCookieSetBackwardsCompatibilityOn){r(t.getCookie(u));return}t.getCookie(u).then(function(){r(r)})},n.hasInitialised=!0,n.alertHasDisplayed=!1,window.FSCookieConsent=n,window.FSCookieSetBackwardsCompatibilityOn=!0,n.isCompatibilityOn=window.FSCookieSetBackwardsCompatibilityOn,document.body?t.initCrossDomainCookie():r=setInterval(function(){document.body&&(t.initCrossDomainCookie(),clearInterval(r))},10))}(window.FSCookieConsent||{})