(function () {function pb(a){return a&&a.__esModule?{d:a.default}:{d:a}}var U=this;var k={};var C={};var ka,b,qb,a,la,rb,sb,c,V={},za=[],tb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function q(r,o){for(var e in o)r[e]=o[e];return r}function Aa(r){var o=r.parentNode;o&&o.removeChild(r)}function g(r,o,e){var t,$,n,a={};for(n in o)"key"==n?t=o[n]:"ref"==n?$=o[n]:a[n]=o[n];if(arguments.length>2&&(a.children=arguments.length>3?ka.call(arguments,2):e),"function"==typeof r&&null!=r.defaultProps)for(n in r.defaultProps)void 0===a[n]&&(a[n]=r.defaultProps[n]);return W(r,a,t,$,null)}function W(r,o,e,t,$){var n={type:r,props:o,key:e,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==$?++qb:$};return null==$&&null!=b.vnode&&b.vnode(n),n}function J(r){return r.children}function X(r,o){this.props=r,this.context=o}function E(r,o){if(null==o)return r.__?E(r.__,r.__.__k.indexOf(r)+1):null;for(var e;o0?W(v.type,v.props,v.key,null,v.__v):v)){if(v.__=e,v.__b=e.__b+1,null===(s=d[p])||s&&v.key==s.key&&v.type===s.type)d[p]=void 0;else for(u=0;u=t.__.length&&t.__.push({}),t.__[$]}function Sa($){return Cb=1,Db(Ua,$)}function Db($,r,t){var e=ba(aa++,2);return e.t=$,e.__c||(e.__=[t?t(r):Ua(void 0,r),function($){var r=e.t(e.__[0],$);e.__[0]!==r&&(e.__=[r,e.__[1]],e.__c.setState({}))}],e.__c=z),e.__}function oa($,r){var t=ba(aa++,3);!b.__s&&ra(t.__H,r)&&(t.__=$,t.__H=r,z.__H.__h.push(t))}function Eb($,r){var t=ba(aa++,4);!b.__s&&ra(t.__H,r)&&(t.__=$,t.__H=r,z.__h.push(t))}function Fb($){return Cb=5,pa(function(){return{current:$}},[])}function pa($,r){var t=ba(aa++,7);return ra(t.__H,r)&&(t.__=$(),t.__H=r,t.__h=$),t.__}function Gb($,r){return Cb=8,pa(function(){return $},r)}function Hb(){for(var $;$=Ma.shift();)if($.__P)try{$.__H.__h.forEach(ca),$.__H.__h.forEach(qa),$.__H.__h=[]}catch(r){$.__H.__h=[],b.__e(r,$.__v)}}b.__b=function($){z=null,Na&&Na($)},b.__r=function($){Oa&&Oa($),aa=0;var r=(z=$.__c).__H;r&&(r.__h.forEach(ca),r.__h.forEach(qa),r.__h=[])},b.diffed=function($){Pa&&Pa($);var r=$.__c;r&&r.__H&&r.__H.__h.length&&(1!==Ma.push(r)&&Bb===b.requestAnimationFrame||((Bb=b.requestAnimationFrame)||function($){var r,t=function(){clearTimeout(e),Ta&&cancelAnimationFrame(r),setTimeout($)},e=setTimeout(t,100);Ta&&(r=requestAnimationFrame(t))})(Hb)),z=null},b.__c=function($,r){r.some(function($){try{$.__h.forEach(ca),$.__h=$.__h.filter(function($){return!$.__||qa($)})}catch(t){r.some(function($){$.__h&&($.__h=[])}),r=[],b.__e(t,$.__v)}}),Qa&&Qa($,r)},b.unmount=function($){Ra&&Ra($);var r,t=$.__c;t&&t.__H&&(t.__H.__.forEach(function($){try{ca($)}catch($){r=$}}),r&&b.__e(r,t.__v))};var Ta="function"==typeof requestAnimationFrame;function ca($){var r=z,t=$.__c;"function"==typeof t&&($.__c=void 0,t()),z=r}function qa($){var r=z;$.__c=$.__(),z=r}function ra($,r){return!$||$.length!==r.length||r.some(function(r,t){return r!==$[t]})}function Ua($,r){return"function"==typeof r?r($):r}var M=function(s){return"essential"===s};var P=function(e){var t=document.querySelector(".cookie-though");if(e)return t.style.display="block",t.setAttribute("aria-hidden","false"),t.classList.add("visible");t.setAttribute("aria-hidden","true"),t.classList.remove("visible"),setTimeout(function(){return t.style.display="none"},250)};var Ib=function(e){var i=e.isOpen,o=e.option,t=e.essentialLabel,r=e.onToggle,$=M(o.category);return g("div",{className:"ct-option ".concat(o.isEnabled?"ct-enabled":""," ").concat($?"ct-essential":"")},g("input",{type:"checkbox",id:o.id,name:o.id,disabled:$,checked:o.isEnabled,onClick:r,onFocus:function(e){return e.currentTarget.parentElement.scrollIntoView()},tabIndex:i?0:-1,"aria-hidden":!i}),g("label",{htmlFor:o.id,className:"ct-option-info"},g("p",null,g("strong",null,o.label),o.description),g("span",{className:"ct-slider"},$&&t)))};var Jb=function(e){var n=e.isOpen,r=e.options,o=e.cookiePolicy,$=e.essentialLabel,t=e.onToggle,i=r.map(function(e,r){return g(Ib,{key:r,isOpen:n,option:e,essentialLabel:$,onToggle:function(){return t(r)}})});return g("div",{className:"ct-policies"},i,o&&g("div",{className:"ct-declaration"},g("a",{tabIndex:0,href:o.url,role:"link"},o.label)))};var Kb={},Va="Expected a function",Wa=NaN,Lb="[object Symbol]",Mb=/^\s+|\s+$/g,Nb=/^[-+]0x[0-9a-f]+$/i,Ob=/^0b[01]+$/i,Pb=/^0o[0-7]+$/i,Qb=parseInt,Rb="object"==typeof U&&U&&U.Object===Object&&U,Sb="object"==typeof self&&self&&self.Object===Object&&self,Tb=Rb||Sb||Function("return this")(),Ub=Object.prototype,Vb=Ub.toString,Wb=Math.max,Xb=Math.min,sa=function(){return Tb.Date.now()};function Yb($,r,e){var t,a,n,i,o,v,y=0,O=!1,N=!1,c=!0;if("function"!=typeof $)throw new TypeError(Va);function F(r){var e=t,n=a;return t=a=void 0,y=r,i=$.apply(n,e)}function f($){var e=$-v;return void 0===v||e>=r||e<0||N&&$-y>=n}function u(){var $=sa();if(f($))return l($);o=setTimeout(u,function($){var e=r-($-v);return N?Xb(e,n-($-y)):e}($))}function l($){return o=void 0,c&&t?F($):(t=a=void 0,i)}function s(){var $=sa(),e=f($);if(t=arguments,a=this,v=$,e){if(void 0===o)return function($){return y=$,o=setTimeout(u,r),O?F($):i}(v);if(N)return o=setTimeout(u,r),F(v)}return void 0===o&&(o=setTimeout(u,r)),i}return r=Xa(r)||0,da(e)&&(O=!!e.leading,n=(N="maxWait"in e)?Wb(Xa(e.maxWait)||0,r):n,c="trailing"in e?!!e.trailing:c),s.cancel=function(){void 0!==o&&clearTimeout(o),y=0,t=v=a=o=void 0},s.flush=function(){return void 0===o?i:l(sa())},s}function Zb($,r,e){var t=!0,a=!0;if("function"!=typeof $)throw new TypeError(Va);return da(e)&&(t="leading"in e?!!e.leading:t,a="trailing"in e?!!e.trailing:a),Yb($,r,{leading:t,maxWait:r,trailing:a})}function da($){var r=typeof $;return!!$&&("object"==r||"function"==r)}function $b($){return!!$&&"object"==typeof $}function _b($){return"symbol"==typeof $||$b($)&&Vb.call($)==Lb}function Xa($){if("number"==typeof $)return $;if(_b($))return Wa;if(da($)){var r="function"==typeof $.valueOf?$.valueOf():$;$=da(r)?r+"":r}if("string"!=typeof $)return 0===$?$:+$;$=$.replace(Mb,"");var e=Ob.test($);return e||Pb.test($)?Qb($.slice(2),e?2:8):Nb.test($)?Wa:+$}Kb=Zb;var ac=function(e){Eb(function(){var $FNyO$$interop$default=pb(Kb);var r=$FNyO$$interop$default.d(e,100);return window.addEventListener("resize",r),function(){return window.removeEventListener("resize",r)}},[e])};var bc=function(){var e=document.querySelector(".cookie-though").shadowRoot,t=e.querySelector(".ct-banner"),o=e.querySelector(".ct-customization-button"),d=e.querySelector(".ct-acceptance"),c=[],p=window.getComputedStyle(t);c.push(p.height,p.paddingTop,p.paddingTop);var r=window.getComputedStyle(o);c.push(r.height);var u=window.getComputedStyle(d);return c.push(u.height,u.paddingTop,u.paddingTop),c.push(p.paddingTop),{collapsedHeight:c.reduce(function(e,t){return e+Number(t.slice(0,-2))},0),containerOffset:2*+p.paddingBottom.slice(0,-2)}};var cc=function(e){var t=e.isOpen,r=e.children,i=e.onWindowResize,o=Fb(null),s=Gb(function(e){void 0===e&&(e=!1);var t=bc(),r=t.collapsedHeight,i=t.containerOffset,s=window.innerHeight,n=o.current,l=n.querySelector(".ct-policies").scrollHeight;e&&(n.style.transition="height 0ms ease-out");var a=s-r-i;a22&&(s?e.style.bottom=fa[2]:(e.style.bottom=H[3],e.style.width=G[3]))},wa=function(e){var $,t,s=e.policies,o=e.cookiePreferenceKey,r=e.header,i=e.customizeLabel,p=e.domain,a=e.cookiePolicy,n=e.permissionLabels,O=e.essentialLabel,D=e.ee,T=eb({cookieOptions:s.map(function(e){return{id:e.id,isEnabled:M(e.category)}}),ee:D,cookiePreferenceKey:o,domain:p}),K=T.getCookiePreferences,Q=T.setCookiePreferences,l=($=K(),t=$.cookieOptions.map(function(e){var $=s.find(function($){return $.id===e.id});return ea(ea({},$),e)}),ea(ea({},$),{cookieOptions:t}));return oa(function(){fb(),l.isCustomised||P(!0)},[l]),g(J,null,g(zb,{header:r}),g(_a,{cookieOptions:l.cookieOptions,cookiePolicy:a,customizeLabel:i,permissionLabels:n,essentialLabel:O,setCookiePreferences:Q,onWindowResize:fb}))};C.default=wa;var gc,hc={},I="object"==typeof Reflect?Reflect:null,gb=I&&"function"==typeof I.apply?I.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function ic(e){console&&console.warn&&console.warn(e)}gc=I&&"function"==typeof I.ownKeys?I.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var hb=Number.isNaN||function(e){return e!=e};function j(){j.init.call(this)}(hc=j).once=nc,j.EventEmitter=j,j.prototype._events=void 0,j.prototype._eventsCount=0,j.prototype._maxListeners=void 0;var jc=10;function ga(e){if("function"!=typeof e)throw new TypeError("The \"listener\" argument must be of type Function. Received type "+typeof e)}function ib(e){return void 0===e._maxListeners?j.defaultMaxListeners:e._maxListeners}function jb(e,t,r,n){var i,o,$;if(ga(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),$=o[t]),void 0===$)$=o[t]=r,++e._eventsCount;else if("function"==typeof $?$=o[t]=n?[r,$]:[$,r]:n?$.unshift(r):$.push(r),(i=ib(e))>0&&$.length>i&&!$.warned){$.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=$.length,ic(s)}return e}function kc(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kb(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=kc.bind(n);return i.listener=r,n.wrapFn=i,i}function lb(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?mc(i):nb(i,i.length)}function mb(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function nb(e,t){for(var r=new Array(t),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var $=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw $.context=o,$}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)gb(s,this,t);else{var v=s.length,a=nb(s,v);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){$=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():lc(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,$||t)}return this},j.prototype.off=j.prototype.removeListener,j.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},j.prototype.listeners=function(e){return lb(this,e,!0)},j.prototype.rawListeners=function(e){return lb(this,e,!1)},j.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):mb.call(e,t)},j.prototype.listenerCount=mb,j.prototype.eventNames=function(){return this._eventsCount>0?gc(this._events):[]};var pc=[{id:"essential",label:"Strictly necessary cookies",description:"These cookies are required to run the site.",category:"essential"},{id:"functional",label:"Functional cookies",description:"We\u2019ll remember the basics such as language.",category:"functional"},{id:"statistics",label:"Statistics",description:"We\u2019ll know where we should improve your experience.",category:"statistics"},{id:"marketing",label:"Marketing",description:"We'll only show you ads you're interested in.",category:"marketing"},{id:"social",label:"Social",description:"This allows us to track your social activity",category:"social"},{id:"personalisation",label:"Personalisation",description:"We\u2019ll only show you content that interests you.",category:"personalisation"}];var ha={policies:pc,essentialLabel:"Always on",header:{subTitle:"You're probably fed up with these banners...",title:"cookie though?",description:"Everybody wants to show his best side - and so do we. That's why we use cookies to guarantee you a better experience."},permissionLabels:{accept:"Accept",acceptAll:"Accept all",decline:"Decline"},customizeLabel:"Customize"};var B,ia=k&&k.__assign||function(){return(ia=Object.assign||function($){for(var t,e=1,r=arguments.length;e