/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}) ;document.addEventListener('DOMContentLoaded',function(){for(var cookieName in wpml_cookies){var cookieData=wpml_cookies[cookieName];document.cookie=cookieName+'='+cookieData.value+';expires='+cookieData.expires+'; path='+cookieData.path+'; SameSite=Lax'}}) ;/*! This file is auto-generated */ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>P,addAction:()=>A,addFilter:()=>m,applyFilters:()=>w,applyFiltersAsync:()=>I,createHooks:()=>h,currentAction:()=>x,currentFilter:()=>T,defaultHooks:()=>f,didAction:()=>j,didFilter:()=>z,doAction:()=>g,doActionAsync:()=>k,doingAction:()=>O,doingFilter:()=>S,filters:()=>Z,hasAction:()=>_,hasFilter:()=>v,removeAction:()=>p,removeAllActions:()=>F,removeAllFilters:()=>b,removeFilter:()=>y});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[a],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n,r){return function(o,...i){const s=t[e];s[o]||(s[o]={handlers:[],runs:0}),s[o].runs++;const c=s[o].handlers;if(!c||!c.length)return n?i[0]:void 0;const l={name:o,currentIndex:0};return(r?async function(){try{s.__current.add(l);let t=n?i[0]:void 0;for(;l.currentIndex0:Array.from(r.__current).some((t=>t.name===n))}};const u=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions",!1,!1),this.doActionAsync=c(this,"actions",!1,!0),this.applyFilters=c(this,"filters",!0,!1),this.applyFiltersAsync=c(this,"filters",!0,!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=a(this,"actions"),this.doingFilter=a(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}const h=function(){return new d},f=h(),{addAction:A,addFilter:m,removeAction:p,removeFilter:y,hasAction:_,hasFilter:v,removeAllActions:F,removeAllFilters:b,doAction:g,doActionAsync:k,applyFilters:w,applyFiltersAsync:I,currentAction:x,currentFilter:T,doingAction:O,doingFilter:S,didAction:j,didFilter:z,actions:P,filters:Z}=f;(window.wp=window.wp||{}).hooks=e})() ;/*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ !function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e(''):e(''),v=c.theme?e(''):e(''),c.theme&&h?(w='"):c.theme?(w='"):w=h?'':'',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}() ;/*! js-cookie v3.0.5 | MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t=0&&parseFloat(e(this).val())'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),e(document.body).on("item_removed_from_classic_cart",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready) ;(function($){var defaults={"hamburgerId":"sm_menu_ham","hamburgerIdNav":"sm_menu_ham_nav","wrapperClass":"sm_menu_outer","submenuClass":"submenu","menuStyle":"slide","onMenuLoad":function(){return!0},"onMenuToggle":function(){return!0}};$.fn.simpleMobileMenu=function(options){if(this.length===0){return this} var smMenu={},ds=$(this);var init=function(){smMenu.settings=$.extend({},defaults,options);smMenu.styleClass=smMenu.settings.menuStyle.toLowerCase()==='slide'?"slide":"accordion";createWrapper_Ham();createBackButton();if(typeof smMenu.settings.onMenuLoad=='function'){smMenu.settings.onMenuLoad(ds)}},createWrapper_Ham=function(){smMenu.hamburger=$("
",{"id":smMenu.settings.hamburgerId,"html":""}),smMenu.smmOuter=$("
",{"class":smMenu.settings.wrapperClass+" "+smMenu.styleClass});ds.appendTo(smMenu.smmOuter);smMenu.smmOuter.appendTo($("body"));smMenu.hamburger.appendTo($(smMenu.smmOuter))},createBackButton=function(){smMenu.smmOuter.find("ul."+smMenu.settings.submenuClass).each(function(){var dis=$(this),disPar=dis.closest("li"),disfA=disPar.find("> a"),disBack=$("
  • ",{"class":"back","html":""+disfA.text()+""}) disPar.addClass("hasChild");if(smMenu.settings.menuStyle.toLowerCase()==='slide'){disBack.prependTo(dis)}})},toggleMobileMenu=function(e){$("#"+smMenu.settings.hamburgerId).toggleClass("open");$("#"+smMenu.settings.hamburgerIdNav).toggleClass("open");$("."+smMenu.settings.wrapperClass).toggleClass("active").find("li.active").removeClass("active");$("body").toggleClass("mmactive");if(smMenu.settings.menuStyle.toLowerCase()==='accordion'){$("."+smMenu.settings.wrapperClass).find("ul."+smMenu.settings.submenuClass).hide()} if(typeof smMenu.settings.onMenuToggle=='function'){smMenu.settings.onMenuToggle(ds,$("#"+smMenu.settings.hamburgerId).hasClass("open"));smMenu.settings.onMenuToggle(ds,$("#"+smMenu.settings.hamburgerIdNav).hasClass("open"))}},showSlideSubMenu=function(e){e.preventDefault();$("."+smMenu.settings.wrapperClass).scrollTop(0);$(this).parent().addClass("active").siblings().removeClass("active")},showAccordionSubMenu=function(e){e.preventDefault();var dis=$(this),dispar=$(this).parent(),lastActive=dispar.siblings(".active");dispar.find("> ."+smMenu.settings.submenuClass).slideToggle(function(){if($(this).is(":visible")){var offset=dis[0].offsetTop;$("."+smMenu.settings.wrapperClass).stop().animate({scrollTop:offset},300)}});lastActive.find("ul."+smMenu.settings.submenuClass).slideUp(function(){$(this).find(".hasChild").removeClass("active")}) dispar.toggleClass("active").siblings().removeClass("active")},goBack=function(e){e.preventDefault();$(this).closest("ul."+smMenu.settings.submenuClass).parent().removeClass("active")} init();smMenu.hamburger.click(toggleMobileMenu);$("#"+smMenu.settings.hamburgerIdNav).click(toggleMobileMenu);smMenu.smmOuter.filter(".slide").find("li.hasChild > a").click(showSlideSubMenu);smMenu.smmOuter.filter(".accordion").find("li.hasChild > a").click(showAccordionSubMenu);smMenu.smmOuter.find("li.back a").click(goBack)}})(jQuery) ;/*! For license information please see script.min.js.LICENSE.txt */ (()=>{"use strict";var e={604:e=>{function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,n,r=[],o=window,i=o;i;){try{if(i.frames.__tcfapiLocator){e=i;break}}catch(e){}if(i===o.top)break;i=i.parent}e||(function e(){var t=o.document,n=!!o.frames.__tcfapiLocator;if(!n)if(t.body){var r=t.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",t.body.appendChild(r)}else setTimeout(e,5);return!n}(),o.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),o=0;o3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(n=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub"}):r.push(t)},o.addEventListener("message",(function(e){var n="string"==typeof e.data,r={};if(n)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var o="object"===t(r)&&null!==r?r.__tcfapiCall:null;o&&window.__tcfapi(o.command,o.version,(function(t,r){var i={__tcfapiReturn:{returnValue:t,success:r,callId:o.callId}};e&&e.source&&e.source.postMessage&&e.source.postMessage(n?JSON.stringify(i):i,"*")}),o.parameter)}),!1))}},6887:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-->0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o{Object.defineProperty(t,"__esModule",{value:!0}),t.CmpApi=void 0;var r=n(3517),o=n(5249),i=n(6887),s=n(1530),a=function(){function e(e,t,n,o){void 0===n&&(n=!1),this.numUpdates=0,this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),r.CmpApiModel.cmpId=e,r.CmpApiModel.cmpVersion=t,r.CmpApiModel.tcfPolicyVersion=4,this.isServiceSpecific=!!n,this.callResponder=new i.CallResponder(o)}return e.prototype.throwIfInvalidInt=function(e,t,n){if(!("number"==typeof e&&Number.isInteger(e)&&e>=n))throw new Error("Invalid ".concat(t,": ").concat(e))},e.prototype.update=function(e,t){if(void 0===t&&(t=!1),r.CmpApiModel.disabled)throw new Error("CmpApi Disabled");r.CmpApiModel.cmpStatus=o.CmpStatus.LOADED,t?(r.CmpApiModel.displayStatus=o.DisplayStatus.VISIBLE,r.CmpApiModel.eventStatus=o.EventStatus.CMP_UI_SHOWN):void 0===r.CmpApiModel.tcModel?(r.CmpApiModel.displayStatus=o.DisplayStatus.DISABLED,r.CmpApiModel.eventStatus=o.EventStatus.TC_LOADED):(r.CmpApiModel.displayStatus=o.DisplayStatus.HIDDEN,r.CmpApiModel.eventStatus=o.EventStatus.USER_ACTION_COMPLETE),r.CmpApiModel.gdprApplies=null!==e,r.CmpApiModel.gdprApplies?(""===e?(r.CmpApiModel.tcModel=new s.TCModel,r.CmpApiModel.tcModel.cmpId=r.CmpApiModel.cmpId,r.CmpApiModel.tcModel.cmpVersion=r.CmpApiModel.cmpVersion):r.CmpApiModel.tcModel=s.TCString.decode(e),r.CmpApiModel.tcModel.isServiceSpecific=this.isServiceSpecific,r.CmpApiModel.tcfPolicyVersion=Number(r.CmpApiModel.tcModel.policyVersion),r.CmpApiModel.tcString=e):r.CmpApiModel.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():r.CmpApiModel.eventQueue.exec(),this.numUpdates++},e.prototype.disable=function(){r.CmpApiModel.disabled=!0,r.CmpApiModel.cmpStatus=o.CmpStatus.ERROR},e}();t.CmpApi=a},3517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CmpApiModel=void 0;var r=n(5249),o=n(5616),i=function(){function e(){}return e.reset=function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=r.CmpStatus.LOADING,this.disabled=!1,this.displayStatus=r.DisplayStatus.HIDDEN,this.eventQueue.clear()},e.apiVersion="2",e.eventQueue=new o.EventListenerQueue,e.cmpStatus=r.CmpStatus.LOADING,e.disabled=!1,e.displayStatus=r.DisplayStatus.HIDDEN,e}();t.CmpApiModel=i},3231:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5616:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventListenerQueue=void 0;var r=n(7293),o=function(){function e(){this.eventQueue=new Map,this.queueNumber=0}return e.prototype.add=function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++},e.prototype.remove=function(e){return this.eventQueue.delete(e)},e.prototype.exec=function(){this.eventQueue.forEach((function(e,t){new r.GetTCDataCommand(e.callback,e.param,t,e.next)}))},e.prototype.clear=function(){this.queueNumber=0,this.eventQueue.clear()},Object.defineProperty(e.prototype,"size",{get:function(){return this.eventQueue.size},enumerable:!1,configurable:!0}),e}();t.EventListenerQueue=o},4388:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedVersions=void 0;var n=function(){function e(){}return e.has=function(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)},e.set_=new Set([0,2,void 0,null]),e}();t.SupportedVersions=n},2564:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddEventListenerCommand=void 0;var i=n(3517),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.listenerId=i.CmpApiModel.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),e.prototype.respond.call(this)},t}(n(7293).GetTCDataCommand);t.AddEventListenerCommand=s},1476:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0;var n=function(){function e(e,t,n,r){this.success=!0,Object.assign(this,{callback:e,listenerId:n,param:t,next:r});try{this.respond()}catch(e){this.invokeCallback(null)}}return e.prototype.invokeCallback=function(e){var t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)},e}();t.Command=n},2112:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2697:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommandMap=void 0;var r=n(2520),o=n(7293),i=n(3798),s=n(8284),a=n(2564),c=n(299),u=n(2237),l=function(){function e(){}var t,n,l,p,f,d;return t=u.TCFCommand.PING,n=u.TCFCommand.GET_TC_DATA,l=u.TCFCommand.GET_IN_APP_TC_DATA,p=u.TCFCommand.GET_VENDOR_LIST,f=u.TCFCommand.ADD_EVENT_LISTENER,d=u.TCFCommand.REMOVE_EVENT_LISTENER,e[t]=r.PingCommand,e[n]=o.GetTCDataCommand,e[l]=i.GetInAppTCDataCommand,e[p]=s.GetVendorListCommand,e[f]=a.AddEventListenerCommand,e[d]=c.RemoveEventListenerCommand,e}();t.CommandMap=l},3798:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetInAppTCDataCommand=void 0;var i=n(7293),s=n(1142),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new s.InAppTCData(this.param))},t}(i.GetTCDataCommand);t.GetInAppTCDataCommand=a},7293:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetTCDataCommand=void 0;var i=n(1476),s=n(1142),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.throwIfParamInvalid(),this.invokeCallback(new s.TCData(this.param,this.listenerId))},t.prototype.throwIfParamInvalid=function(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")},t}(i.Command);t.GetTCDataCommand=a},8284:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GetVendorListCommand=void 0;var i=n(3517),s=n(1476),a=n(1530),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){var e,t=this,n=i.CmpApiModel.tcModel,r=n.vendorListVersion;void 0===this.param&&(this.param=r),(e=this.param===r&&n.gvl?n.gvl:new a.GVL(this.param)).readyPromise.then((function(){t.invokeCallback(e.getJson())}))},t}(s.Command);t.GetVendorListCommand=c},2520:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PingCommand=void 0;var i=n(1142),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.invokeCallback(new i.Ping)},t}(n(1476).Command);t.PingCommand=s},299:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveEventListenerCommand=void 0;var i=n(3517),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.respond=function(){this.invokeCallback(i.CmpApiModel.eventQueue.remove(this.param))},t}(n(1476).Command);t.RemoveEventListenerCommand=s},2237:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TCFCommand=void 0,(n=t.TCFCommand||(t.TCFCommand={})).PING="ping",n.GET_TC_DATA="getTCData",n.GET_IN_APP_TC_DATA="getInAppTCData",n.GET_VENDOR_LIST="getVendorList",n.ADD_EVENT_LISTENER="addEventListener",n.REMOVE_EVENT_LISTENER="removeEventListener"},4774:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2237),t),o(n(2112),t)},259:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.API_KEY=void 0,o(n(4774),t),o(n(1142),t),o(n(5249),t),o(n(8273),t),o(n(3517),t),o(n(3231),t);var i=n(6887);Object.defineProperty(t,"API_KEY",{enumerable:!0,get:function(){return i.API_KEY}})},9250:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Disabled=void 0;var i=n(9443),s=n(5249),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cmpStatus=s.CmpStatus.ERROR,t}return o(t,e),t}(i.Response);t.Disabled=a},4269:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-->0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0){var n=e.getMaxVendorId();e.getRestrictions().forEach((function(e){t[e.purposeId.toString()]="_".repeat(n)}));for(var r=function(n){var r=n+1;e.getRestrictions(r).forEach((function(e){var r=e.restrictionType.toString(),o=e.purposeId.toString(),i=t[o].substr(0,n),s=t[o].substr(n+1);t[o]=i+r+s}))},o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;var r=n(3517);t.Response=function(){this.cmpId=r.CmpApiModel.cmpId,this.cmpVersion=r.CmpApiModel.cmpVersion,this.gdprApplies=r.CmpApiModel.gdprApplies,this.tcfPolicyVersion=r.CmpApiModel.tcfPolicyVersion}},4266:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-->0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)for(var n=e.getMaxVendorId(),r=function(n){var r=n.toString();e.getRestrictions(n).forEach((function(e){var n=e.purposeId.toString();t[n]||(t[n]={}),t[n][r]=e.restrictionType}))},o=1;o<=n;o++)r(o);return t},t.prototype.createVectorField=function(e,t){return t?t.reduce((function(t,n){return t[String(n)]=e.has(Number(n)),t}),{}):s([],i(e),!1).reduce((function(e,t){return e[t[0].toString(10)]=t[1],e}),{})},t}(n(9443).Response);t.TCData=c},1142:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9250),t),o(n(4269),t),o(n(7135),t),o(n(9443),t),o(n(4266),t)},6375:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CmpStatus=void 0,(n=t.CmpStatus||(t.CmpStatus={})).STUB="stub",n.LOADING="loading",n.LOADED="loaded",n.ERROR="error"},2620:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayStatus=void 0,(n=t.DisplayStatus||(t.DisplayStatus={})).VISIBLE="visible",n.HIDDEN="hidden",n.DISABLED="disabled"},4027:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EventStatus=void 0,(n=t.EventStatus||(t.EventStatus={})).TC_LOADED="tcloaded",n.CMP_UI_SHOWN="cmpuishown",n.USER_ACTION_COMPLETE="useractioncomplete"},5249:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6375),t),o(n(2620),t),o(n(4027),t)},1664:function(e,t){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Cloneable=void 0;var r=function(){function e(){}return e.prototype.clone=function(){var e=this,t=new this.constructor;return Object.keys(this).forEach((function(n){var r=e.deepClone(e[n]);void 0!==r&&(t[n]=r)})),t},e.prototype.deepClone=function(e){var t,r,o=typeof e;if("number"===o||"string"===o||"boolean"===o)return e;if(null!==e&&"object"===o){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var i=[];try{for(var s=n(e),a=s.next();!a.done;a=s.next()){var c=a.value;i.push(this.deepClone(c))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return e instanceof Array?i:new e.constructor(i)}var u={};for(var l in e)e.hasOwnProperty(l)&&(u[l]=this.deepClone(e[l]));return u}},e}();t.Cloneable=r},4796:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.GVL=void 0;var u=n(1664),l=n(6315),p=n(7353),f=n(8974),d=function(e){function t(n,r){var o=e.call(this)||this;o.isReady_=!1,o.isLatest=!1;var i=t.baseUrl,s=null==r?void 0:r.language;if(s)try{s=t.consentLanguages.parseLanguage(s)}catch(e){throw new l.GVLError("Error during parsing the language: "+e.message)}if(o.lang_=s||t.DEFAULT_LANGUAGE,o.cacheLang_=s||t.DEFAULT_LANGUAGE,o.isVendorList(n))o.populate(n),o.readyPromise=Promise.resolve();else{if(!i)throw new l.GVLError("must specify GVL.baseUrl before loading GVL json");if(n>0){var a=n;t.CACHE.has(a)?(o.populate(t.CACHE.get(a)),o.readyPromise=Promise.resolve()):(i+=t.versionedFilename.replace("[VERSION]",String(a)),o.readyPromise=o.fetchJson(i))}else t.CACHE.has(t.LATEST_CACHE_KEY)?(o.populate(t.CACHE.get(t.LATEST_CACHE_KEY)),o.readyPromise=Promise.resolve()):(o.isLatest=!0,o.readyPromise=o.fetchJson(i+t.latestFilename))}return o}return o(t,e),Object.defineProperty(t,"baseUrl",{get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new l.GVLError("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e},enumerable:!1,configurable:!0}),t.emptyLanguageCache=function(e){var n=!1;return null==e&&t.LANGUAGE_CACHE.size>0?(t.LANGUAGE_CACHE=new Map,n=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(t.LANGUAGE_CACHE.delete(e.toUpperCase()),n=!0),n},t.emptyCache=function(e){var n=!1;return Number.isInteger(e)&&e>=0?(t.CACHE.delete(e),n=!0):void 0===e&&(t.CACHE=new Map,n=!0),n},t.prototype.cacheLanguage=function(){t.LANGUAGE_CACHE.has(this.cacheLang_)||t.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})},t.prototype.fetchJson=function(e){return s(this,void 0,void 0,(function(){var t,n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this.populate,[4,p.Json.fetch(e)];case 1:return t.apply(this,[r.sent()]),[3,3];case 2:throw n=r.sent(),new l.GVLError(n.message);case 3:return[2]}}))}))},t.prototype.getJson=function(){return i(i({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{vendors:this.cloneVendors()})},t.prototype.cloneSpecialFeatures=function(){var e,n,r={};try{for(var o=c(Object.keys(this.specialFeatures)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneFeature(this.specialFeatures[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneFeatures=function(){var e,n,r={};try{for(var o=c(Object.keys(this.features)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneFeature(this.features[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneStacks=function(){var e,n,r={};try{for(var o=c(Object.keys(this.stacks)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneStack(this.stacks[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneDataCategories=function(){var e,n,r={};try{for(var o=c(Object.keys(this.dataCategories)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneDataCategory(this.dataCategories[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.cloneSpecialPurposes=function(){var e,n,r={};try{for(var o=c(Object.keys(this.specialPurposes)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.clonePurpose(this.specialPurposes[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.clonePurposes=function(){var e,n,r={};try{for(var o=c(Object.keys(this.purposes)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.clonePurpose(this.purposes[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.clonePurpose=function(e){return i(i({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})},t.cloneFeature=function(e){return i(i({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})},t.cloneDataCategory=function(e){return{id:e.id,name:e.name,description:e.description}},t.cloneStack=function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}},t.cloneDataRetention=function(e){return i(i({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{purposes:i({},e.purposes),specialPurposes:i({},e.specialPurposes)})},t.cloneVendorUrls=function(e){return e.map((function(e){return i({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))},t.cloneVendor=function(e){return i(i(i(i(i(i(i(i(i(i(i({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})},t.prototype.cloneVendors=function(){var e,n,r={};try{for(var o=c(Object.keys(this.fullVendorList)),i=o.next();!i.done;i=o.next()){var s=i.value;r[s]=t.cloneVendor(this.fullVendorList[s])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.changeLanguage=function(e){return s(this,void 0,void 0,(function(){var n,r,o,i,s,c;return a(this,(function(a){switch(a.label){case 0:n=e;try{n=t.consentLanguages.parseLanguage(e)}catch(e){throw new l.GVLError("Error during parsing the language: "+e.message)}if(r=e.toUpperCase(),n.toLowerCase()===t.DEFAULT_LANGUAGE.toLowerCase()&&!t.LANGUAGE_CACHE.has(r))return[2];if(n===this.lang_)return[3,5];if(this.lang_=n,!t.LANGUAGE_CACHE.has(r))return[3,1];for(i in o=t.LANGUAGE_CACHE.get(r))o.hasOwnProperty(i)&&(this[i]=o[i]);return[3,5];case 1:s=t.baseUrl+t.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.fetchJson(s)];case 3:return a.sent(),this.cacheLang_=r,this.cacheLanguage(),[3,5];case 4:throw c=a.sent(),new l.GVLError("unable to load language: "+c.message);case 5:return[2]}}))}))},Object.defineProperty(t.prototype,"language",{get:function(){return this.lang_},enumerable:!1,configurable:!0}),t.prototype.isVendorList=function(e){return void 0!==e&&void 0!==e.vendors},t.prototype.populate=function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&t.CACHE.set(t.LATEST_CACHE_KEY,this.getJson()),t.CACHE.has(this.vendorListVersion)||t.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()},t.prototype.mapVendors=function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors_=e.reduce((function(e,n){var r=t.vendors_[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)})),e[n]=r),e}),{})},t.prototype.getFilteredVendors=function(e,t,n,r){var o=this,i=e.charAt(0).toUpperCase()+e.slice(1),s={};return("purpose"===e&&n?this["by"+i+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+i+"VendorMap"][String(t)]).forEach((function(e){s[String(e)]=o.vendors[String(e)]})),s},t.prototype.getVendorsWithConsentPurpose=function(e){return this.getFilteredVendors("purpose",e,"consent")},t.prototype.getVendorsWithLegIntPurpose=function(e){return this.getFilteredVendors("purpose",e,"legInt")},t.prototype.getVendorsWithFlexiblePurpose=function(e){return this.getFilteredVendors("purpose",e,"flexible")},t.prototype.getVendorsWithSpecialPurpose=function(e){return this.getFilteredVendors("purpose",e,void 0,!0)},t.prototype.getVendorsWithFeature=function(e){return this.getFilteredVendors("feature",e)},t.prototype.getVendorsWithSpecialFeature=function(e){return this.getFilteredVendors("feature",e,void 0,!0)},Object.defineProperty(t.prototype,"vendors",{get:function(){return this.vendors_},enumerable:!1,configurable:!0}),t.prototype.narrowVendorsTo=function(e){this.mapVendors(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReady_},enumerable:!1,configurable:!0}),t.prototype.clone=function(){var e=new t(this.getJson());return this.lang_!==t.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e},t.isInstanceOf=function(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo},t.LANGUAGE_CACHE=new Map,t.CACHE=new Map,t.LATEST_CACHE_KEY=0,t.DEFAULT_LANGUAGE="EN",t.consentLanguages=new f.ConsentLanguages,t.latestFilename="vendor-list.json",t.versionedFilename="archives/vendor-list-v[VERSION].json",t.languageFilename="purposes-[LANG].json",t}(u.Cloneable);t.GVL=d},7353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Json=void 0;var n=function(){function e(){}return e.absCall=function(e,t,n,r){return new Promise((function(o,i){var s=new XMLHttpRequest;s.withCredentials=n,s.addEventListener("load",(function(){if(s.readyState==XMLHttpRequest.DONE)if(s.status>=200&&s.status<300){var e=s.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}o(e)}else i(new Error("HTTP Status: ".concat(s.status," response type: ").concat(s.responseType)))})),s.addEventListener("error",(function(){i(new Error("error"))})),s.addEventListener("abort",(function(){i(new Error("aborted"))})),null===t?s.open("GET",e,!0):s.open("POST",e,!0),s.responseType="json",s.timeout=r,s.ontimeout=function(){i(new Error("Timeout "+r+"ms "+e))},s.send(t)}))},e.post=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=0),this.absCall(e,JSON.stringify(t),n,r)},e.fetch=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=0),this.absCall(e,null,t,n)},e}();t.Json=n},8932:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TCModel=void 0;var i=n(1664),s=n(6315),a=n(4796),c=n(8974),u=function(e){function t(t){var n=e.call(this)||this;return n.isServiceSpecific_=!1,n.supportOOB_=!0,n.useNonStandardTexts_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=4,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.specialFeatureOptins=new c.Vector,n.purposeConsents=new c.Vector,n.purposeLegitimateInterests=new c.Vector,n.publisherConsents=new c.Vector,n.publisherLegitimateInterests=new c.Vector,n.publisherCustomConsents=new c.Vector,n.publisherCustomLegitimateInterests=new c.Vector,n.vendorConsents=new c.Vector,n.vendorLegitimateInterests=new c.Vector,n.vendorsDisclosed=new c.Vector,n.vendorsAllowed=new c.Vector,n.publisherRestrictions=new c.PurposeRestrictionVector,t&&(n.gvl=t),n.updated(),n}return o(t,e),Object.defineProperty(t.prototype,"gvl",{get:function(){return this.gvl_},set:function(e){a.GVL.isInstanceOf(e)||(e=new a.GVL(e)),this.gvl_=e,this.publisherRestrictions.gvl=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cmpId",{get:function(){return this.cmpId_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new s.TCModelError("cmpId",e);this.cmpId_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cmpVersion",{get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new s.TCModelError("cmpVersion",e);this.cmpVersion_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"consentScreen",{get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new s.TCModelError("consentScreen",e);this.consentScreen_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"consentLanguage",{get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"publisherCountryCode",{get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new s.TCModelError("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vendorListVersion",{get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new s.TCModelError("vendorListVersion",e);this.vendorListVersion_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"policyVersion",{get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new s.TCModelError("policyVersion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isServiceSpecific",{get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useNonStandardTexts",{get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supportOOB",{get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"purposeOneTreatment",{get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e},enumerable:!1,configurable:!0}),t.prototype.setAllVendorConsents=function(){this.vendorConsents.set(this.gvl.vendors)},t.prototype.unsetAllVendorConsents=function(){this.vendorConsents.empty()},t.prototype.setAllVendorsDisclosed=function(){this.vendorsDisclosed.set(this.gvl.vendors)},t.prototype.unsetAllVendorsDisclosed=function(){this.vendorsDisclosed.empty()},t.prototype.setAllVendorsAllowed=function(){this.vendorsAllowed.set(this.gvl.vendors)},t.prototype.unsetAllVendorsAllowed=function(){this.vendorsAllowed.empty()},t.prototype.setAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.set(this.gvl.vendors)},t.prototype.unsetAllVendorLegitimateInterests=function(){this.vendorLegitimateInterests.empty()},t.prototype.setAllPurposeConsents=function(){this.purposeConsents.set(this.gvl.purposes)},t.prototype.unsetAllPurposeConsents=function(){this.purposeConsents.empty()},t.prototype.setAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.set(this.gvl.purposes)},t.prototype.unsetAllPurposeLegitimateInterests=function(){this.purposeLegitimateInterests.empty()},t.prototype.setAllSpecialFeatureOptins=function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)},t.prototype.unsetAllSpecialFeatureOptins=function(){this.specialFeatureOptins.empty()},t.prototype.setAll=function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()},t.prototype.unsetAll=function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()},Object.defineProperty(t.prototype,"numCustomPurposes",{get:function(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new s.TCModelError("numCustomPurposes",e)},enumerable:!1,configurable:!0}),t.prototype.updated=function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t},t.consentLanguages=a.GVL.consentLanguages,t}(i.Cloneable);t.TCModel=u},6468:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TCString=void 0;var r=n(9597),o=n(8974),i=n(196),s=n(8932),a=function(){function e(){}return e.encode=function(e,t){var n,o="";return e=r.SemanticPreEncoder.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new r.SegmentSequence(e,t)[""+e.version]).forEach((function(t,i){var s="";i{Object.defineProperty(t,"__esModule",{value:!0}),t.Base64Url=void 0;var r=n(6315),o=function(){function e(){}return e.encode=function(e){if(!/^[0-1]+$/.test(e))throw new r.EncodingError("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.BitLength=void 0;var r=n(8974),o=function(){function e(){}var t,n,o,i,s,a,c,u,l,p,f,d,h,v,y,b,m,g;return t=r.Fields.cmpId,n=r.Fields.cmpVersion,o=r.Fields.consentLanguage,i=r.Fields.consentScreen,s=r.Fields.created,a=r.Fields.isServiceSpecific,c=r.Fields.lastUpdated,u=r.Fields.policyVersion,l=r.Fields.publisherCountryCode,p=r.Fields.publisherLegitimateInterests,f=r.Fields.publisherConsents,d=r.Fields.purposeConsents,h=r.Fields.purposeLegitimateInterests,v=r.Fields.purposeOneTreatment,y=r.Fields.specialFeatureOptins,b=r.Fields.useNonStandardTexts,m=r.Fields.vendorListVersion,g=r.Fields.version,e[t]=12,e[n]=12,e[o]=12,e[i]=6,e[s]=36,e[a]=1,e[c]=36,e[u]=6,e[l]=12,e[p]=24,e[f]=24,e[d]=24,e[h]=24,e[v]=1,e[y]=12,e[b]=1,e[m]=12,e[g]=6,e.anyBoolean=1,e.encodingType=1,e.maxId=16,e.numCustomPurposes=6,e.numEntries=12,e.numRestrictions=12,e.purposeId=6,e.restrictionType=2,e.segmentType=3,e.singleOrRange=1,e.vendorId=16,e}();t.BitLength=o},7821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9825:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentEncoder=void 0;var r=n(3422),o=n(690),i=n(1679),s=n(2034),a=n(6315),c=n(1869),u=n(8974),l=function(){function e(){}return e.encode=function(e,t){var n,s=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new a.EncodingError("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var l="";t!==u.Segment.CORE&&(l=i.IntEncoder.encode(u.SegmentIDs.KEY_TO_ID[t],o.BitLength.segmentType));var p=(0,i.FieldEncoderMap)();return n.forEach((function(n){var r=e[n],i=p[n],u=o.BitLength[n];void 0===u&&s.isPublisherCustom(n)&&(u=Number(e[c.Fields.numCustomPurposes]));try{l+=i.encode(r,u)}catch(e){throw new a.EncodingError("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}})),r.Base64Url.encode(l)},e.decode=function(e,t,n){var s=this,l=r.Base64Url.decode(e),p=0;n===u.Segment.CORE&&(t.version=i.IntEncoder.decode(l.substr(p,o.BitLength[c.Fields.version]),o.BitLength[c.Fields.version])),n!==u.Segment.CORE&&(p+=o.BitLength.segmentType);var f=this.fieldSequence[String(t.version)][n],d=(0,i.FieldEncoderMap)();return f.forEach((function(e){var n=d[e],r=o.BitLength[e];if(void 0===r&&s.isPublisherCustom(e)&&(r=Number(t[c.Fields.numCustomPurposes])),0!==r){var u=l.substr(p,r);if(n===i.VendorVectorEncoder?t[e]=n.decode(u,t.version):t[e]=n.decode(u,r),Number.isInteger(r))p+=r;else{if(!Number.isInteger(t[e].bitLength))throw new a.DecodingError(e);p+=t[e].bitLength}}})),t},e.isPublisherCustom=function(e){return 0===e.indexOf("publisherCustom")},e.fieldSequence=new s.FieldSequence,e}();t.SegmentEncoder=l},9579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticPreEncoder=void 0;var r=n(6315),o=n(8974),i=function(){function e(){}return e.process=function(e,t){var n=e.gvl;if(!n)throw new r.EncodingError("Unable to encode TCModel without a GVL");if(!n.isReady)throw new r.EncodingError("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var o=e.version-1;if(!this.processor[o])throw new r.EncodingError("Invalid version: ".concat(e.version));return this.processor[o](e,n)},e.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(i,s){if(i){var a=t.vendors[s];if(!a||a.deletedDate)n.unset(s);else if(0===a[r].length)if("legIntPurposes"===r&&0===a.purposes.length&&0===a.legIntPurposes.length&&a.specialPurposes.length>0)n.set(s);else if("legIntPurposes"===r&&a.purposes.length>0&&0===a.legIntPurposes.length&&a.specialPurposes.length>0)n.set(s);else if(e.isServiceSpecific)if(0===a.flexiblePurposes.length)n.unset(s);else{for(var c=e.publisherRestrictions.getRestrictions(s),u=!1,l=0,p=c.length;l{Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanEncoder=void 0;var n=function(){function e(){}return e.encode=function(e){return String(Number(e))},e.decode=function(e){return"1"===e},e}();t.BooleanEncoder=n},2909:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateEncoder=void 0;var r=n(196),o=n(6315),i=function(){function e(){}return e.encode=function(e,t){return r.IntEncoder.encode(Math.round(e.getTime()/100),t)},e.decode=function(e,t){if(t!==e.length)throw new o.DecodingError("invalid bit length");var n=new Date;return n.setTime(100*r.IntEncoder.decode(e,t)),n},e}();t.DateEncoder=i},8945:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldEncoderMap=void 0;var r=n(8974),o=n(8871),i=n(2909),s=n(8295),a=n(196),c=n(369),u=n(5047),l=n(3654);t.FieldEncoderMap=function(){var e;return(e={})[r.Fields.version]=a.IntEncoder,e[r.Fields.created]=i.DateEncoder,e[r.Fields.lastUpdated]=i.DateEncoder,e[r.Fields.cmpId]=a.IntEncoder,e[r.Fields.cmpVersion]=a.IntEncoder,e[r.Fields.consentScreen]=a.IntEncoder,e[r.Fields.consentLanguage]=c.LangEncoder,e[r.Fields.vendorListVersion]=a.IntEncoder,e[r.Fields.policyVersion]=a.IntEncoder,e[r.Fields.isServiceSpecific]=o.BooleanEncoder,e[r.Fields.useNonStandardTexts]=o.BooleanEncoder,e[r.Fields.specialFeatureOptins]=s.FixedVectorEncoder,e[r.Fields.purposeConsents]=s.FixedVectorEncoder,e[r.Fields.purposeLegitimateInterests]=s.FixedVectorEncoder,e[r.Fields.purposeOneTreatment]=o.BooleanEncoder,e[r.Fields.publisherCountryCode]=c.LangEncoder,e[r.Fields.vendorConsents]=l.VendorVectorEncoder,e[r.Fields.vendorLegitimateInterests]=l.VendorVectorEncoder,e[r.Fields.publisherRestrictions]=u.PurposeRestrictionVectorEncoder,e.segmentType=a.IntEncoder,e[r.Fields.vendorsDisclosed]=l.VendorVectorEncoder,e[r.Fields.vendorsAllowed]=l.VendorVectorEncoder,e[r.Fields.publisherConsents]=s.FixedVectorEncoder,e[r.Fields.publisherLegitimateInterests]=s.FixedVectorEncoder,e[r.Fields.numCustomPurposes]=a.IntEncoder,e[r.Fields.publisherCustomConsents]=s.FixedVectorEncoder,e[r.Fields.publisherCustomLegitimateInterests]=s.FixedVectorEncoder,e}},8295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedVectorEncoder=void 0;var r=n(8871),o=n(6315),i=n(8974),s=function(){function e(){}return e.encode=function(e,t){for(var n="",o=1;o<=t;o++)n+=r.BooleanEncoder.encode(e.has(o));return n},e.decode=function(e,t){if(e.length!==t)throw new o.DecodingError("bitfield encoding length mismatch");for(var n=new i.Vector,s=1;s<=t;s++)r.BooleanEncoder.decode(e[s-1])&&n.set(s);return n.bitLength=e.length,n},e}();t.FixedVectorEncoder=s},196:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IntEncoder=void 0;var r=n(6315),o=function(){function e(){}return e.encode=function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new r.EncodingError("".concat(e," too large to encode into ").concat(t));return n.length{Object.defineProperty(t,"__esModule",{value:!0}),t.LangEncoder=void 0;var r=n(196),o=n(6315),i=function(){function e(){}return e.encode=function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,i=e.charCodeAt(1)-65;if(n<0||n>25||i<0||i>25)throw new o.EncodingError("invalid language code: ".concat(e));if(t%2==1)throw new o.EncodingError("numBits must be even, ".concat(t," is not valid"));return t/=2,r.IntEncoder.encode(n,t)+r.IntEncoder.encode(i,t)},e.decode=function(e,t){if(t!==e.length||e.length%2)throw new o.DecodingError("invalid bit length for language");var n=e.length/2,i=r.IntEncoder.decode(e.slice(0,n),n)+65,s=r.IntEncoder.decode(e.slice(n),n)+65;return String.fromCharCode(i)+String.fromCharCode(s)},e}();t.LangEncoder=i},5047:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestrictionVectorEncoder=void 0;var r=n(690),o=n(8871),i=n(6315),s=n(196),a=n(8974),c=function(){function e(){}return e.encode=function(e){var t=s.IntEncoder.encode(e.numRestrictions,r.BitLength.numRestrictions);if(!e.isEmpty()){var n=function(t,n){for(var r=t+1;r<=n;r++)if(e.gvl.vendorIds.has(r))return r;return t};e.getRestrictions().forEach((function(i){t+=s.IntEncoder.encode(i.purposeId,r.BitLength.purposeId),t+=s.IntEncoder.encode(i.restrictionType,r.BitLength.restrictionType);for(var a=e.getVendors(i),c=a.length,u=0,l=0,p="",f=0;fn(d,a[c-1])){var h=!(d===l);p+=o.BooleanEncoder.encode(h),p+=s.IntEncoder.encode(l,r.BitLength.vendorId),h&&(p+=s.IntEncoder.encode(d,r.BitLength.vendorId)),l=0}}t+=s.IntEncoder.encode(u,r.BitLength.numEntries),t+=p}))}return t},e.decode=function(e){var t=0,n=new a.PurposeRestrictionVector,c=s.IntEncoder.decode(e.substr(t,r.BitLength.numRestrictions),r.BitLength.numRestrictions);t+=r.BitLength.numRestrictions;for(var u=0;u{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VectorEncodingType=void 0,(n=t.VectorEncodingType||(t.VectorEncodingType={}))[n.FIELD=0]="FIELD",n[n.RANGE=1]="RANGE"},3654:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VendorVectorEncoder=void 0;var r=n(8974),o=n(9597),i=n(196),s=n(8871),a=n(8295),c=n(5860),u=n(6315),l=function(){function e(){}return e.encode=function(e){var t,n=[],r=[],a=i.IntEncoder.encode(e.maxId,o.BitLength.maxId),u="",l=o.BitLength.maxId+o.BitLength.encodingType,p=l+e.maxId,f=2*o.BitLength.vendorId+o.BitLength.singleOrRange+o.BitLength.numEntries,d=l+o.BitLength.numEntries;return e.forEach((function(i,a){u+=s.BooleanEncoder.encode(i),(t=e.maxId>f&&d{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSequence=void 0;var r=n(8974);t.FieldSequence=function(){var e,t;this[1]=((e={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.purposeConsents,r.Fields.vendorConsents],e),this[2]=((t={})[r.Segment.CORE]=[r.Fields.version,r.Fields.created,r.Fields.lastUpdated,r.Fields.cmpId,r.Fields.cmpVersion,r.Fields.consentScreen,r.Fields.consentLanguage,r.Fields.vendorListVersion,r.Fields.policyVersion,r.Fields.isServiceSpecific,r.Fields.useNonStandardTexts,r.Fields.specialFeatureOptins,r.Fields.purposeConsents,r.Fields.purposeLegitimateInterests,r.Fields.purposeOneTreatment,r.Fields.publisherCountryCode,r.Fields.vendorConsents,r.Fields.vendorLegitimateInterests,r.Fields.publisherRestrictions],t[r.Segment.PUBLISHER_TC]=[r.Fields.publisherConsents,r.Fields.publisherLegitimateInterests,r.Fields.numCustomPurposes,r.Fields.publisherCustomConsents,r.Fields.publisherCustomLegitimateInterests],t[r.Segment.VENDORS_ALLOWED]=[r.Fields.vendorsAllowed],t[r.Segment.VENDORS_DISCLOSED]=[r.Fields.vendorsDisclosed],t)}},5018:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentSequence=void 0;var r=n(8974);t.SegmentSequence=function(e,t){if(this[1]=[r.Segment.CORE],this[2]=[r.Segment.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(r.Segment.PUBLISHER_TC);else{var n=!(!t||!t.isForVendors);n&&!0!==e[r.Fields.supportOOB]||this[2].push(r.Segment.VENDORS_DISCLOSED),n&&(e[r.Fields.supportOOB]&&e[r.Fields.vendorsAllowed].size>0&&this[2].push(r.Segment.VENDORS_ALLOWED),this[2].push(r.Segment.PUBLISHER_TC))}}},4052:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2034:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4805),t),o(n(5018),t),o(n(4052),t)},1625:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DecodingError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="DecodingError",n}return r(t,e),t}(Error);t.DecodingError=o},8057:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EncodingError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="EncodingError",n}return r(t,e),t}(Error);t.EncodingError=o},3319:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GVLError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="GVLError",n}return r(t,e),t}(Error);t.GVLError=o},5669:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.TCModelError=void 0;var o=function(e){function t(t,n,r){void 0===r&&(r="");var o=e.call(this,"invalid value ".concat(n," passed for ").concat(t," ").concat(r))||this;return o.name="TCModelError",o}return r(t,e),t}(Error);t.TCModelError=o},6315:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1625),t),o(n(8057),t),o(n(3319),t),o(n(5669),t)},1530:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9597),t),o(n(6315),t),o(n(8974),t),o(n(1664),t),o(n(4796),t),o(n(7353),t),o(n(8932),t),o(n(6468),t)},5263:function(e,t){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentLanguages=void 0;var r=function(){function e(){}return e.prototype.has=function(t){return e.langSet.has(t)},e.prototype.parseLanguage=function(t){var r,o,i=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==i.length){if(e.langSet.has(t))return t;if(e.langSet.has(i))return i;var s=i+"-"+i;if(e.langSet.has(s))return s;try{for(var a=n(e.langSet),c=a.next();!c.done;c=a.next()){var u=c.value;if(-1!==u.indexOf(t)||-1!==u.indexOf(i))return u}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}}throw new Error("unsupported language ".concat(t))},e.prototype.forEach=function(t){e.langSet.forEach(t)},Object.defineProperty(e.prototype,"size",{get:function(){return e.langSet.size},enumerable:!1,configurable:!0}),e.langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]),e}();t.ConsentLanguages=r},2936:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},5226:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceDisclosureStorageAccessType=void 0,(n=t.DeviceDisclosureStorageAccessType||(t.DeviceDisclosureStorageAccessType={})).COOKIE="cookie",n.WEB="web",n.APP="app"},1869:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=void 0;var n=function(){function e(){}return e.cmpId="cmpId",e.cmpVersion="cmpVersion",e.consentLanguage="consentLanguage",e.consentScreen="consentScreen",e.created="created",e.supportOOB="supportOOB",e.isServiceSpecific="isServiceSpecific",e.lastUpdated="lastUpdated",e.numCustomPurposes="numCustomPurposes",e.policyVersion="policyVersion",e.publisherCountryCode="publisherCountryCode",e.publisherCustomConsents="publisherCustomConsents",e.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",e.publisherLegitimateInterests="publisherLegitimateInterests",e.publisherConsents="publisherConsents",e.publisherRestrictions="publisherRestrictions",e.purposeConsents="purposeConsents",e.purposeLegitimateInterests="purposeLegitimateInterests",e.purposeOneTreatment="purposeOneTreatment",e.specialFeatureOptins="specialFeatureOptins",e.useNonStandardTexts="useNonStandardTexts",e.vendorConsents="vendorConsents",e.vendorLegitimateInterests="vendorLegitimateInterests",e.vendorListVersion="vendorListVersion",e.vendorsAllowed="vendorsAllowed",e.vendorsDisclosed="vendorsDisclosed",e.version="version",e}();t.Fields=n},9938:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4762:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurposeRestriction=void 0;var i=n(1664),s=n(6315),a=n(4278),c=function(e){function t(t,n){var r=e.call(this)||this;return void 0!==t&&(r.purposeId=t),void 0!==n&&(r.restrictionType=n),r}return o(t,e),t.unHash=function(e){var n=e.split(this.hashSeparator),r=new t;if(2!==n.length)throw new s.TCModelError("hash",e);return r.purposeId=parseInt(n[0],10),r.restrictionType=parseInt(n[1],10),r},Object.defineProperty(t.prototype,"hash",{get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(t.hashSeparator).concat(this.restrictionType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"purposeId",{get:function(){return this.purposeId_},set:function(e){this.purposeId_=e},enumerable:!1,configurable:!0}),t.prototype.isValid=function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===a.RestrictionType.NOT_ALLOWED||this.restrictionType===a.RestrictionType.REQUIRE_CONSENT||this.restrictionType===a.RestrictionType.REQUIRE_LI)},t.prototype.isSameAs=function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType},t.hashSeparator="-",t}(i.Cloneable);t.PurposeRestriction=c},310:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-->0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;oe.restrictionType)&&(n=e.restrictionType)})),n},t.prototype.vendorHasRestriction=function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictionType=void 0,(n=t.RestrictionType||(t.RestrictionType={}))[n.NOT_ALLOWED=0]="NOT_ALLOWED",n[n.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",n[n.REQUIRE_LI=2]="REQUIRE_LI"},6607:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Segment=void 0,(n=t.Segment||(t.Segment={})).CORE="core",n.VENDORS_DISCLOSED="vendorsDisclosed",n.VENDORS_ALLOWED="vendorsAllowed",n.PUBLISHER_TC="publisherTC"},9315:(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentIDs=void 0;var o=n(6607),i=function(){function e(){}return e.ID_TO_KEY=[o.Segment.CORE,o.Segment.VENDORS_DISCLOSED,o.Segment.VENDORS_ALLOWED,o.Segment.PUBLISHER_TC],e.KEY_TO_ID=((r={})[o.Segment.CORE]=0,r[o.Segment.VENDORS_DISCLOSED]=1,r[o.Segment.VENDORS_ALLOWED]=2,r[o.Segment.PUBLISHER_TC]=3,r),e}();t.SegmentIDs=i},2684:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0},t.prototype.isSet=function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t},t.prototype.set=function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new a.TCModelError("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}},t.prototype.empty=function(){this.set_=new Set},t.prototype.forEach=function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)},Object.defineProperty(t.prototype,"size",{get:function(){return this.set_.size},enumerable:!1,configurable:!0}),t.prototype.setAll=function(e){this.set(e)},t}(s.Cloneable);t.Vector=c},2376:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9965:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9508:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},1724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8135:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},254:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},8839:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2585:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},7657:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4922:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3800:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2376),t),o(n(9508),t),o(n(2574),t),o(n(1724),t),o(n(254),t),o(n(8839),t),o(n(2585),t),o(n(7657),t),o(n(4922),t),o(n(9965),t),o(n(8135),t)},8974:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5263),t),o(n(1869),t),o(n(9938),t),o(n(8970),t),o(n(4762),t),o(n(310),t),o(n(5226),t),o(n(2936),t),o(n(4278),t),o(n(6607),t),o(n(9315),t),o(n(2684),t),o(n(3800),t)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){var n="function"==typeof Map?new Map:void 0;return t=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,o)}function o(){return r(e,arguments,s(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i(o,e)},t(e)}function r(e,t,n){return r=o()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},r.apply(null,arguments)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var a=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(u,t);var n,r,a,c=(r=u,a=o(),function(){var t,n=s(r);if(a){var o=s(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,t)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=c.call(this,e)).name="EncodingError",t}return n=u,Object.defineProperty(n,"prototype",{writable:!1}),n}(t(Error));function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},u(e)}function l(e,t,n){return l=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},l.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,e);var t,n,r,o=(n=i,r=p(),function(){var e,t=d(n);if(r){var o=d(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).name="DecodingError",t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(u(Error));function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&2==n.length){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;var r=n+"-"+n;if(e.langSet.has(r))return r;var o,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(e.langSet);try{for(i.s();!(o=i.n()).done;){var s=o.value;if(-1!==s.indexOf(t)||-1!==s.indexOf(n))return s}}catch(e){i.e(e)}finally{i.f()}}throw new Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function j(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;r.push(this.deepClone(i))}}catch(e){o.e(e)}finally{o.f()}return e instanceof Array?r:new e.constructor(r)}var s={};for(var a in e)e.hasOwnProperty(a)&&(s[a]=this.deepClone(e[a]));return s}}}],n&&R(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function U(e){var t="function"==typeof Map?new Map:void 0;return U=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return B(e,arguments,Q(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),H(r,e)},U(e)}function B(e,t,n){return B=G()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&H(o,n.prototype),o},B.apply(null,arguments)}function G(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}var q,W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(i,e);var t,n,r,o=(n=i,r=G(),function(){var e,t=Q(n);if(r){var o=Q(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,"invalid value ".concat(t," passed for ").concat(e," ").concat(r))).name="TCModelError",n}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(U(Error));function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function Y(e,t){for(var n=0;n0&&(this.restrictionType===q.NOT_ALLOWED||this.restrictionType===q.REQUIRE_CONSENT||this.restrictionType===q.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}])&&Y(t.prototype,n),r&&Y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(D);function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.restrictionType)&&(n=e.restrictionType)})),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function Se(e,t){for(var n=0;n0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.set(e)}));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((function(e){return Number(e)})));else{if(!this.isValidNumber(e))throw new W("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}],n&&Se(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(D);function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}function Ye(e,t){for(var n=0;nt||e<0)throw new a("".concat(e," too large to encode into ").concat(t));return n.length25||r<0||r>25)throw new a("invalid language code: ".concat(e));if(t%2==1)throw new a("numBits must be even, ".concat(t," is not valid"));return t/=2,st.encode(n,t)+st.encode(r,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new h("invalid bit length for language");var n=e.length/2,r=st.decode(e.slice(0,n),n)+65,o=st.decode(e.slice(n),n)+65;return String.fromCharCode(r)+String.fromCharCode(o)}}],null&&yt(t.prototype,null),n&&yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function wt(e,t){for(var n=0;nn(l,o[i-1])){var p=!(l===a);c+=nt.encode(p),c+=st.encode(a,Ze.vendorId),p&&(c+=st.encode(l,Ze.vendorId)),a=0}}t+=st.encode(s,Ze.numEntries),t+=c}))}return t}},{key:"decode",value:function(e){var t=0,n=new fe,r=st.decode(e.substr(t,Ze.numRestrictions),Ze.numRestrictions);t+=Ze.numRestrictions;for(var o=0;oc&&u0&&this[2].push(le.VENDORS_ALLOWED),this[2].push(le.PUBLISHER_TC))}}));function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}function Qt(e,t){for(var n=0;n").concat(n,": ").concat(e.message))}})),g.encode(o)}},{key:"decode",value:function(e,t,n){var r=this,o=g.decode(e),i=0;n===le.CORE&&(t.version=st.decode(o.substr(i,Ze[V.version]),Ze[V.version])),n!==le.CORE&&(i+=Ze.segmentType);var s=this.fieldSequence[String(t.version)][n],a=At();return s.forEach((function(e){var n=a[e],s=Ze[e];if(void 0===s&&r.isPublisherCustom(e)&&(s=Number(t[V.numCustomPurposes])),0!==s){var c=o.substr(i,s);if(t[e]=n===Lt?n.decode(c,t.version):n.decode(c,s),Number.isInteger(s))i+=s;else{if(!Number.isInteger(t[e].bitLength))throw new h(e);i+=t[e].bitLength}}})),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}],null&&Qt(t.prototype,null),n&&Qt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Yt(e,t){for(var n=0;n0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var r=e.version-1;if(!this.processor[r])throw new a("Invalid version: ".concat(e.version));return this.processor[r](e,n)}}],null&&Yt(t.prototype,null),n&&Yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function Zt(e){var t="function"==typeof Map?new Map:void 0;return Zt=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Xt(e,arguments,nn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),tn(r,e)},Zt(e)}function Xt(e,t,n){return Xt=en()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&tn(o,n.prototype),o},Xt.apply(null,arguments)}function en(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function tn(e,t){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tn(e,t)}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}!function(e,t,n){(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(zt,"processor",[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((function(n,r){n.forEach((function(o,i){if(o){var s=t.vendors[i];if(!s||s.deletedDate)n.unset(i);else if(0===s[r].length)if("legIntPurposes"===r&&0===s.purposes.length&&0===s.legIntPurposes.length&&s.specialPurposes.length>0)n.set(i);else if("legIntPurposes"===r&&s.purposes.length>0&&0===s.legIntPurposes.length&&s.specialPurposes.length>0)n.set(i);else if(e.isServiceSpecific)if(0===s.flexiblePurposes.length)n.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),c=!1,u=0,l=a.length;u=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function un(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function ln(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){un(i,r,o,s,a,"next",e)}function a(e){un(i,r,o,s,a,"throw",e)}s(void 0)}))}}function pn(e,t){for(var n=0;n0){var i=e;u.CACHE.has(i)?(n.populate(u.CACHE.get(i)),n.readyPromise=Promise.resolve()):(r+=u.versionedFilename.replace("[VERSION]",String(i)),n.readyPromise=n.fetchJson(r))}else u.CACHE.has(u.LATEST_CACHE_KEY)?(n.populate(u.CACHE.get(u.LATEST_CACHE_KEY)),n.readyPromise=Promise.resolve()):(n.isLatest=!0,n.readyPromise=n.fetchJson(r+u.latestFilename))}return n}return t=u,n=[{key:"cacheLanguage",value:function(){u.LANGUAGE_CACHE.has(this.cacheLang_)||u.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(i=ln(cn().mark((function e(t){var n,r,o,i,s,a,c=this;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="GVL_JSON_".concat(this.isLatest?"latest":this.vendorListVersion),r="".concat(n,"_expiry"),o=36e5,i=sessionStorage.getItem(n),s=sessionStorage.getItem(r),a=Date.now(),!(i&&s&&a0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&u.LANGUAGE_CACHE.size>0?(u.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(u.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(u.CACHE.delete(e),t=!0):void 0===e&&(u.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return an(an({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneFeature",value:function(e){return an(an({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneDataCategory",value:function(e){return{id:e.id,name:e.name,description:e.description}}},{key:"cloneStack",value:function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}},{key:"cloneDataRetention",value:function(e){return an(an({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:an({},e.purposes),specialPurposes:an({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map((function(e){return an({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))}},{key:"cloneVendor",value:function(e){return an(an(an(an(an(an(an(an(an(an(an({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})}},{key:"isInstanceOf",value:function(e){return"object"===on(e)&&"function"==typeof e.narrowVendorsTo}}],n&&pn(t.prototype,n),r&&pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(D);function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function gn(e,t){for(var n=0;n1))throw new W("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new W("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new W("consentScreen",e);this.consentScreen_=e}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new W("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=Number(e)>>0)<0)throw new W("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new W("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;if("object"===mn(this.customPurposes)){var t=Object.keys(this.customPurposes).sort((function(e,t){return Number(e)-Number(t)}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new W("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])&&gn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(D);function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function Ln(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null,o={};return"POST"===t&&n&&(r=JSON.stringify(n),o["Content-Type"]="application/json"),fetch(e,{method:t,headers:o,body:r})}function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Vn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Mn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||Mn(e,t)||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 Mn(e,t){if(e){if("string"==typeof e)return Rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(e,t):void 0}}function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function Dn(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function Nn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Dn(i,r,o,s,a,"next",e)}function a(e){Dn(i,r,o,s,a,"throw",e)}s(void 0)}))}}window.cookielawinfo=window.cookielawinfo||{};var Un,Bn=window.cookielawinfo,Gn=window.iabConfig,Hn=window.iabTranslations,Qn=n(259).CmpApi,qn=Gn.isGoogleACMEnabled;function Wn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=document.querySelector(e);n&&(n.checked=t)}function Kn(){return Yn.apply(this,arguments)}function Yn(){return(Yn=Nn(Fn().mark((function e(){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Bn._cmpAPI=qn?new Qn(404,1,!0,{getTCData:function(e,t,n){"boolean"!=typeof t&&(t.addtl_consent=Bn._addtlConsent),e(t,n)}}):new Qn(404,1,!0),e.next=4,Jn();case 4:document.addEventListener("cli_consent_update",(function(e){!function(){var e,t,n,r,o,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if("all"===s)Bn._tcModel.purposeLegitimateInterests.set([2,7,8,9,10,11]),Bn._tcModel.setAllPurposeConsents(),Bn._tcModel.setAllSpecialFeatureOptins(),Bn._tcModel.setAllVendorLegitimateInterests(),Bn._tcModel.setAllVendorConsents(),qn&&nr(Array.from(Bn._tcModel.gvl.googleVendorIds));else if(Bn._tcModel.unsetAll(),nr([]),"custom"===s){var a=xn(rr(),5);e=a[0],t=a[1],n=a[2],r=a[3],o=a[4],qn&&(i=rr()[5]),Bn._tcModel.vendorConsents.set(t),Bn._tcModel.vendorLegitimateInterests.set(e),Bn._tcModel.purposeLegitimateInterests.set(r),Bn._tcModel.purposeConsents.set(n),Bn._tcModel.specialFeatureOptins.set(o),qn&&nr(i)}Lr("euconsent","".concat(tr(),",").concat(Bn._cliEncodeACString(Bn._addtlConsent||"")),CLI_ACCEPT_COOKIE_EXPIRE),ir(),Bn._cliIABStatusUpdate(!1)}(e.detail.status)})),document.querySelectorAll(".wt-cli-vendors-btn").forEach((function(e){var t=e.getAttribute("data-tag");e.addEventListener("click",(function(){return function(e){_cliIABShowTab("cli_cookie_vendors");var t=Ir("#wt-cli-iab-".concat(e,"-consents"));t&&t.click()}(t)}))})),Cr(),Object.values(Bn._tcModel.gvl.purposes).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithConsentPurpose(e.id))+or(Bn._tcModel.gvl.getVendorsWithFlexiblePurpose(e.id))+or(Bn._tcModel.gvl.getVendorsWithLegIntPurpose(e.id)),n=document.querySelector("#wt-cli-iab-purpose-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),Object.values(Bn._tcModel.gvl.specialPurposes).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithSpecialPurpose(e.id)),n=document.querySelector("#wt-cli-iab-specialpurpose-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),Object.values(Bn._tcModel.gvl.features).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithFeature(e.id)),n=document.querySelector("#wt-cli-iab-feature-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),Object.values(Bn._tcModel.gvl.specialFeatures).forEach((function(e){var t=or(Bn._tcModel.gvl.getVendorsWithSpecialFeature(e.id)),n=document.querySelector("#wt-cli-iab-specialfeature-consents-sub-content-tab-".concat(e.id," .wt-cli-vendors-seek-count"));n&&(n.innerHTML=t)})),cr(),_r(),ir(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.error(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function Jn(){return zn.apply(this,arguments)}function zn(){return(zn=Nn(Fn().mark((function e(){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Bn._tcModel){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,$n();case 4:er(e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $n(){return Zn.apply(this,arguments)}function Zn(){return(Zn=Nn(Fn().mark((function e(){var t;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return bn.baseUrl=Gn.baseUrl,bn.latestFilename=Gn.latestFilename,bn.languageFilename=Gn.languageFilename,t=new bn,e.next=6,t.readyPromise;case 6:return null!=Gn&&Gn.allowedVendors&&t.narrowVendorsTo(Gn.allowedVendors),null!=Gn&&Gn.allowedGoogleVendors&&t.narrowGoogleVendorsTo(Gn.allowedGoogleVendors),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xn(e){var t=new Cn(e);return t.purposeLegitimateInterests.set([2,7,8,9,10,11]),t.setAllVendorLegitimateInterests(),t}function er(e){var t=null,n=function(e){for(var t="".concat("euconsent","="),n=document.cookie.split(";"),r=0;r1?(r=i[0],o=Bn._cliDecodeACString(i[1]||"")):r=n}r?((t=jn.decode(r)).policyVersion_0&&void 0!==o[0]&&o[0],n=o.length>1&&void 0!==o[1]&&o[1],Gn.status){e.next=4;break}return e.abrupt("return");case 4:if(Bn._tcModel){e.next=7;break}return e.next=7,Jn();case 7:return e.next=9,new Promise((function(e){!function t(){Bn._tcModel&&Bn._tcModel.purposeConsents&&Bn._tcModel.purposeConsents.size>0?e():setTimeout(t,100)}()}));case 9:r=Gn.appliedLaw,Bn._cmpAPI.update("ccpa"!==r?t&&n?"":tr():null,t);case 11:case"end":return e.stop()}}),e)})));var ar=!1;function cr(){var e=Bn._tcModel.gvl.vendors,t=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-vendors-consents-content"),n=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-vendors-consents");t&&n&&n.addEventListener("click",Nn(Fn().mark((function n(){var r;return Fn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!ar){n.next=3;break}return n.abrupt("return");case 3:return t.innerHTML='
    '.concat(Hn.vendorDetails.headers.loading,"
    "),n.next=6,ur(e,"vendors","third-party-vendors");case 6:r=n.sent,t.innerHTML=r,ir(),ar=!0,sr(),n.next=17;break;case 13:n.prev=13,n.t0=n.catch(0),console.error("Error loading vendor list:",n.t0),t.innerHTML='
    Failed to load vendor list. Please try again.
    ';case 17:case"end":return n.stop()}}),n,null,[[0,13]])}))))}function ur(e,t,n){return lr.apply(this,arguments)}function lr(){return lr=Nn(Fn().mark((function e(t,n,r){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){setTimeout((function(){try{var i=pr(t,n,r);e(i)}catch(e){o(e)}}),1e3)})));case 1:case"end":return e.stop()}}),e)}))),lr.apply(this,arguments)}function pr(e,t,n){var r="";return Object.values(e).forEach((function(e){r+='\n
    \n
    \n "),e.legIntPurposes&&e.legIntPurposes.length>0&&"vendors"===t&&(r+='\n
    \n \n \n
    ")),r+='\n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    ')})),r}function fr(e,t,n){var r=document.querySelector("#wt-cli-iab-".concat(t,"-consents-content-").concat(e.id," .wt-cli-iab-").concat(t,"-detail-section")),o=document.querySelector("#wt-cli-iab-".concat(t,"-consents-item-").concat(e.id));if(r&&o){var i=!1;o.addEventListener("click",Nn(Fn().mark((function t(){var o;return Fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!i){t.next=3;break}return t.abrupt("return");case 3:return r.innerHTML='
    '.concat(Hn.vendorDetails.headers.loading,"
    "),t.next=6,dr(e,n);case 6:o=t.sent,r.innerHTML=o,i=!0,t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error loading vendor details:",t.t0),r.innerHTML='
    Failed to load vendor details. Please try again.
    ';case 15:case"end":return t.stop()}}),t,null,[[0,11]])}))))}}function dr(e,t){return hr.apply(this,arguments)}function hr(){return(hr=Nn(Fn().mark((function e(t,n){return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){setTimeout((function(){try{var o=n(t);e(o)}catch(e){r(e)}}),1e3)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vr(e){var t=gr(e.urls,null==Gn?void 0:Gn.currentLanguage,"privacy"),n=gr(e.urls,null==Gn?void 0:Gn.currentLanguage,"legIntClaim"),r=function(e){return e&&e.hasOwnProperty("stdRetention")&&null!==e.stdRetention?e.stdRetention:null}(e.dataRetention),o=yr(t,"".concat(Hn.vendorDetails.others.privacy),"privacy-link"),i=yr(n,"".concat(Hn.vendorDetails.others.legitimate),"claim-link"),s=function(e,t,n,r){return e?'
    \n \n ').concat(e," ").concat("days","\n
    "):""}(r,"".concat(Hn.vendorDetails.others.retention),"retention-period"),a=mr(Bn._tcModel.gvl.purposes,e.purposes,e.dataRetention),c=mr(Bn._tcModel.gvl.purposes,e.legIntPurposes,e.dataRetention),u=mr(Bn._tcModel.gvl.specialPurposes,e.specialPurposes,e.dataRetention),l=mr(Bn._tcModel.gvl.specialFeatures,e.specialFeatures,e.dataRetention),p=mr(Bn._tcModel.gvl.features,e.features,e.dataRetention),f=mr(Bn._tcModel.gvl.dataCategories,e.dataDeclaration,e.dataRetention),d=br(a,"".concat(Hn.vendorDetails.headers.purposes)),h=br(c,"".concat(Hn.vendorDetails.headers.legitimate_purposes)),v=br(u,"".concat(Hn.vendorDetails.headers.special_purposes)),y=br(p,"".concat(Hn.vendorDetails.headers.features)),b=br(l,"".concat(Hn.vendorDetails.headers.special_features)),m=br(f,"".concat(Hn.vendorDetails.headers.data_categories)),g="",w=function(e){var t=[];if(void 0!==e.cookieMaxAgeSeconds){var n=Math.round(e.cookieMaxAgeSeconds/86400);t.push({cookieMaxAgeDays:n})}return void 0!==e.cookieRefresh&&t.push({cookieRefresh:e.cookieRefresh}),void 0!==e.usesCookies&&t.push({usesCookies:e.usesCookies}),void 0!==e.usesNonCookieAccess&&t.push({usesNonCookieAccess:e.usesNonCookieAccess}),t}(e);return w&&w.length>0&&(g+='
      '),w.forEach((function(e){void 0!==e.cookieMaxAgeDays&&(g+="
    • ".concat(Hn.deviceOverview.headers.duration_title).concat(e.cookieMaxAgeDays," days
    • ")),void 0!==e.cookieRefresh&&(e.cookieRefresh?g+="
    • ".concat(Hn.deviceOverview.headers.cookie_refreshed,"
    • "):g+="
    • ".concat(Hn.deviceOverview.headers.cookie_not_refreshed,"
    • ")),void 0!==e.usesCookies&&e.usesCookies&&(g+="
    • ".concat(Hn.deviceOverview.headers.tracking_title).concat(Hn.deviceOverview.headers.tracking_method),void 0!==e.usesNonCookieAccess&&e.usesNonCookieAccess&&(g+=" ".concat(Hn.deviceOverview.headers.tracking_method_extended)),g+="
    • ")})),g+="
    "),o+i+s+d+h+v+y+b+m+g}function yr(e,t,n){return e?'
    \n \n ').concat(e,"\n
    "):""}function br(e,t){var n=e.map((function(e){return"
  • ".concat(e.name,"
  • ")})).join("");return n?'
      ').concat(n,"
    "):""}function mr(e,t,n){return Object.values(e).filter((function(e){return t.includes(e.id)})).map((function(e){var t={name:e.name};return n&&(t[n]=n.purposes[e.id]||0),t}))}function gr(e,t,n){var r=e.find((function(e){return e.langId===t}));if(r)return r[n];var o=e.find((function(e){return"en"===e.langId}));return o?o[n]:null}var wr=!1;function _r(){if(qn){var e=Bn._tcModel.gvl.googleVendors,t=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-google-vendors-consents-content"),n=document.querySelector("#cli_cookie_vendors_content .cli-tab-section .wt-cli-iab-google-vendors-consents");t&&n&&n.addEventListener("click",Nn(Fn().mark((function n(){var r;return Fn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!wr){n.next=3;break}return n.abrupt("return");case 3:return t.innerHTML='
    '.concat(Hn.vendorDetails.headers.loading,"
    "),n.next=6,ur(e,"google-vendors","google-vendors");case 6:r=n.sent,t.innerHTML=r,ir(),wr=!0,Object.values(e).forEach((function(e){fr(e,"google-vendors",Sr)})),n.next=17;break;case 13:n.prev=13,n.t0=n.catch(0),console.error("Error loading vendor list:",n.t0),t.innerHTML='
    Failed to load vendor list. Please try again.
    ';case 17:case"end":return n.stop()}}),n,null,[[0,13]])}))))}}function Sr(e){return yr(e.privacy,"".concat(Hn.vendorDetails.others.privacy),"privacy-link")}function Er(e,t,n){return Or.apply(this,arguments)}function Or(){return(Or=Nn(Fn().mark((function e(t,n,r){var o,i,s,a,c,u;return Fn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),e.prev=1,e.next=4,Tn(n);case 4:return o=e.sent,e.next=7,o.json();case 7:if((i=e.sent)&&i.disclosures&&i.disclosures.length){e.next=10;break}throw new Error("Invalid disclosures");case 10:s=i.disclosures.map((function(e){return{name:e.identifier,type:e.type,duration:e.maxAgeSeconds?Math.round(e.maxAgeSeconds/86400):0,domain:e.domains||[],purposes:(e.purposes||[]).map((function(e){return Bn._tcModel.gvl.purposes[e].name}))}})),a=s.map((function(e){var t=["name","type","duration","domain","purposes"].map((function(t){return"
  • ".concat(Hn.storageDisclosures.headers[t],"
    ").concat("purposes"===t?'
      '.concat(e.purposes.map((function(e){return"
    • ".concat(e,"
    • ")})).join(""),"
    "):"domain"===t?e.domain.join(","):e[t],"
  • ")})).join("");return'")})),c='"),u="".concat(c,'
    ').concat(a.join(""),"
    "),t.innerHTML=u,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),console.log(e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])})))).apply(this,arguments)}function Cr(){var e=document.querySelector("#wt-cli-iab-notice-toggle");if(e){var t=e.innerHTML,n=or(Bn._tcModel.gvl.vendors);qn&&(n+=or(Bn._tcModel.gvl.googleVendors)),t=t.replace("{{count}}",n),e.innerHTML=t,e.addEventListener("click",Pr.bind(null))}}function Pr(){CLI.TogglePreference(),function(){_cliIABShowTab("cli_cookie_vendors");var e=Ir("#wt-cli-iab-vendors-consents[aria-expanded='false']");e&&e.click()}()}function Lr(e,t,n){var r="";!0===Boolean(Cli_Data.secure_cookies)&&(r=";secure");var o=""!==Cli_Data.cookieDomain?";domain=".concat(Cli_Data.cookieDomain):"",i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var s=";expires=".concat(i.toGMTString());n<1?this.eraseCookie(e,s):document.cookie="".concat(e,"=").concat(t).concat(r).concat(s).concat(o,";path=/")}function Ir(e){return document.querySelector(e)||null}function jr(e,t,n){return e.replace(t,n)}var Ar=new Map([[".1.","k"],[".2.","l"],[".3.","m"],[".4.","n"],[".5.","o"],[".6.","p"],[".7.","q"],[".8.","r"],[".9.","s"],[".10.","t"],[".11.","u"],["00","v"],["k1","a"],["k2","b"],["k3","c"],["k4","d"],["k5","e"],["v.","f"],["12","w"],["13","x"],["14","y"],["15","z"]]);Bn._cliEncodeACString=function(e){var t=e.split("~");if(!t[1]||e.length<1200)return e;var n=t[1].split(".");return t[1]=n.reduce((function(e,t,r){return r>0&&(e="".concat(e,".").concat(Number(t)-Number(n[r-1]))),e}),n[0]),t[1]=Array.from(Ar.entries()).reduce((function(e,t){var n=xn(t,2),r=n[0],o=n[1];return e.split(r).join(o)}),t[1]),t[1]="_".concat(jr(t[1],/(f[0-9]){3,}/g,(function(e){return Bn._cliReplaceAll("G".concat(e,"g"),"f","")}))),t.join("~")},Bn._cliDecodeACString=function(e){var t=e.split("~");if(!t[1]||"_"!==t[1][0])return e;t[1]=jr(t[1].slice(1),/G([0-9]+)g/g,(function(e){return Bn._cliReplaceAll(e.slice(1,-1),"","f").slice(0,-1)}));var n=new Map(Array.from(Ar,(function(e){return e.reverse()})).reverse());t[1]=Array.from(n.entries()).reduce((function(e,t){var n=xn(t,2),r=n[0],o=n[1];return e.split(r).join(o)}),t[1]);var r=t[1].split(".");return t[1]=r.reduce((function(e,t,n){return n>0&&(e="".concat(e,".").concat(Number(e.split(".").pop())+Number(t))),e}),r[0]),t.join("~")},Bn._cliReplaceAll=function(e,t,n){return e.replace(new RegExp(t.replace(/[.*+?^${}()[\]\\]/g,"\\$&"),"g"),n)}})()})() ;CLI_ACCEPT_COOKIE_NAME=(typeof CLI_ACCEPT_COOKIE_NAME!=='undefined'?CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');CLI_PREFERNCE_COOKIE=(typeof CLI_PREFERNCE_COOKIE!=='undefined'?CLI_PREFERNCE_COOKIE:'CookieLawInfoConsent');CLI_ACCEPT_COOKIE_EXPIRE=(typeof CLI_ACCEPT_COOKIE_EXPIRE!=='undefined'?CLI_ACCEPT_COOKIE_EXPIRE:365);CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP!=='undefined'?CLI_COOKIEBAR_AS_POPUP:!1);var CLI_Cookie={set:function(name,value,days){var secure="";if(!0===Boolean(Cli_Data.secure_cookies))secure=";secure";var domain=(Cli_Data.cookieDomain!==''?";domain="+Cli_Data.cookieDomain:'');var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires=";expires="+date.toGMTString();if(days<1){this.eraseCookie(name,expires)}else{document.cookie=name+"="+value+secure+expires+domain+";path=/"}},read:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i0&&this.main_link.hasClass('cli-minimize-bar')){jQuery('.wt-cli-cookie-bar-container').addClass('wt-cli-hide-bar');this.hideHeader();this.showagain_elm.slideDown(this.settings.animate_speed_show);return!0} return!1},settingsPopUp:function(){jQuery(document).on('click keypress','.cli_settings_button',function(e){var key=e.which;e.preventDefault();if(key===1||key===13){if(CLI.settings.cookie_setting_popup==!0){CLI.TogglePreference()}else{CLI.TogglePreference(!0)}}});jQuery('#cliModalClose').click(function(){CLI.settingsPopUpClose()});jQuery('#cliModalClose').keydown(function(e){var key=e.which if(key===9){if(e.shiftKey===!0){e.preventDefault() jQuery('#wt-cli-privacy-save-btn').focus()}}});document.addEventListener('keydown',function(e){var key=e.which;if(key===27&&jQuery('#cliSettingsPopup').hasClass('cli-show')){CLI.settingsPopUpClose()}});jQuery("#cliSettingsPopup").click(function(e){if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))){CLI.settingsPopUpClose()}});jQuery('.cli_enable_all_btn').click(function(){var cli_toggle_btn=jQuery(this);var enable_text=cli_toggle_btn.attr('data-enable-text');var disable_text=cli_toggle_btn.attr('data-disable-text');if(cli_toggle_btn.hasClass('cli-enabled')){CLI.disableAllCookies();cli_toggle_btn.html(enable_text)}else{CLI.enableAllCookies();cli_toggle_btn.html(disable_text)} jQuery(this).toggleClass('cli-enabled')});this.settingsTabbedAccordion();this.toggleUserPreferenceCheckBox();this.privacyReadmore()},settingsTabbedAccordion:function(){jQuery(document).on('click keypress','.cli-tab-header',function(e){if(!(jQuery(e.target).hasClass('cli-slider')||jQuery(e.target).hasClass('cli-user-preference-checkbox')||jQuery(e.target).hasClass('cli-iab-checkbox'))){var key=e.which;e.preventDefault();if(key===1||key===13){var currentElement=jQuery(this);var tabLink=currentElement.closest('.cli-tab-header').find('.cli-nav-link');if(currentElement.hasClass("cli-tab-active")){currentElement.removeClass("cli-tab-active");currentElement.siblings(".cli-tab-content").slideUp(200);tabLink.attr('aria-expanded',!1)}else{jQuery(".cli-tab-header").removeClass("cli-tab-active");currentElement.addClass("cli-tab-active");jQuery(".cli-tab-content").slideUp(200);currentElement.siblings(".cli-tab-content").slideDown(200);tabLink.attr('aria-expanded',!0)}}}});jQuery(document).on('click keypress','.cli-sub-tab-header',function(e){if(!(jQuery(e.target).hasClass('cli-slider')||jQuery(e.target).hasClass('cli-iab-checkbox'))){var key=e.which;e.preventDefault();if(key===1||key===13){var currentElement=jQuery(this);var tabLink=currentElement.closest('.cli-sub-tab-header').find('.cli-nav-link');if(currentElement.hasClass("cli-tab-active")){currentElement.removeClass("cli-tab-active");currentElement.siblings(".cli-sub-tab-content").slideUp(200);tabLink.attr('aria-expanded',!1)}else{jQuery(".cli-sub-tab-header").removeClass("cli-tab-active");currentElement.addClass("cli-tab-active");jQuery(".cli-sub-tab-content").slideUp(200);currentElement.siblings(".cli-sub-tab-content").slideDown(200);tabLink.attr('aria-expanded',!0)}}}})},settingsPopUpClose:function(){jQuery('#cliSettingsPopup').removeClass('cli-show');jQuery('#cliSettingsPopup').addClass('cli-out');jQuery('#cliSettingsPopup').attr('aria-hidden',!0);jQuery('body').removeClass("cli-modal-open");jQuery(".cli-settings-overlay").removeClass("cli-show");jQuery("#cookie-law-info-bar").css({'opacity':1});jQuery("#cookie-law-info-bar .cli_settings_button").focus()},toggleUserPreferenceCheckBox:function(){jQuery('.cli-user-preference-checkbox').each(function(){var categoryCookie='cookielawinfo-'+jQuery(this).attr('data-id');var categoryCookieValue=CLI_Cookie.read(categoryCookie);if(categoryCookieValue==null){if(jQuery(this).is(':checked')||'ccpa'===Cli_Data.ccpaType){CLI_Cookie.set(categoryCookie,'yes',CLI_ACCEPT_COOKIE_EXPIRE)}else{CLI_Cookie.set(categoryCookie,'no',CLI_ACCEPT_COOKIE_EXPIRE)}}else{if(categoryCookieValue=="yes"){jQuery(this).prop("checked",!0)}else{jQuery(this).prop("checked",!1)}}});jQuery('.cli-user-preference-checkbox').click(function(){var dataID=jQuery(this).attr('data-id');var currentToggleElm=jQuery('.cli-user-preference-checkbox[data-id='+dataID+']');if(jQuery(this).is(':checked')){CLI_Cookie.set('cookielawinfo-'+dataID,'yes',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',!0)}else{CLI_Cookie.set('cookielawinfo-'+dataID,'no',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',!1)} CLI.checkCategories();CLI.generate_user_preference_cookie();CLI.generateConsent()})},attachEvents:function(){jQuery(document).on('click keypress','.wt-cli-privacy-btn',function(e){var key=e.which;e.preventDefault();if(key===1||key===13){const action=jQuery(this).attr('data-cli-action');if(action==='accept_all'){CLI.ConsentAction('accept')}else{CLI.ConsentAction('custom')}}});jQuery(document).on('click keypress','#wt-cli-save-preferences-btn',function(e){var key=e.which;e.preventDefault();if(key===1||key===13){CLI.ConsentAction('custom')}});jQuery('.wt-cli-privacy-overview-actions').find('a').last().keydown(function(e){var key=e.which if(key===9){if(e.shiftKey===!1){e.preventDefault() jQuery('#cliModalClose').focus()}}});jQuery(document).on('click keypress','.cli_action_button',function(e){let choice='all';var key=e.which;e.preventDefault();if(key===1||key===13){var elm=jQuery(this);var button_action=elm.attr('data-cli_action');var open_link=elm[0].hasAttribute("href")&&elm.attr("href").charAt(0)!=='#'?!0:!1;var new_window=!1;if(button_action=='accept'){if(e.originalEvent!==undefined){if(CLI.settings.accept_all==!0){CLI.enableAllCookies()}}else{CLI.settingsPopUpClose();choice='custom'} CLI.accept_close();new_window=CLI.settings.button_1_new_win?!0:!1}else if(button_action=='accept_all'){CLI.enableAllCookies();CLI.accept_close();new_window=CLI.settings.button_7_new_win?!0:!1}else if(button_action=='reject'){CLI.disableAllCookies();CLI.reject_close();new_window=CLI.settings.button_3_new_win?!0:!1;choice='reject'} CLI.saveLog(button_action);if(open_link){if(new_window){window.open(elm.attr("href"),'_blank')}else{window.location.href=elm.attr("href")}} CLI.MaybeClosePreference(jQuery(this));CLI.AfterConsent(choice)}});jQuery(document).on('click','.cli_cookie_close_button',function(e){e.preventDefault();var elm=jQuery(this);var button_action=elm.attr('data-cli_action');if(CLI.settings.accept_all==!0){CLI.enableAllCookies()} CLI.accept_close();CLI.saveLog(button_action)})},saveLog:function(button_action='ccpaOptOut'){if(CLI.settings.logging_on){var ccpaOptedOut=cliBlocker.ccpaOptedOut();var cookies=CLI_Cookie.getallcookies();cookies.ccpaOptout=ccpaOptedOut;jQuery.ajax({url:log_object.ajax_url,type:'POST',data:{action:'wt_log_visitor_action',wt_clicked_button_id:'',wt_user_action:button_action,cookie_list:cookies},success:function(response){}})}},attachDelete:function(){this.delete_link.click(function(){CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k])} CLI.generate_user_preference_cookie();CLI.generateConsent();window.location.reload();return!1})},configButtons:function(){this.main_button.css('color',this.settings.button_1_link_colour);if(this.settings.button_1_as_button){this.main_button.css('background-color',this.settings.button_1_button_colour);this.main_button.hover(function(){jQuery(this).css('background-color',CLI.settings.button_1_button_hover)},function(){jQuery(this).css('background-color',CLI.settings.button_1_button_colour)})} this.main_link.css('color',this.settings.button_2_link_colour);if(this.settings.button_2_as_button){this.main_link.css('background-color',this.settings.button_2_button_colour);this.main_link.hover(function(){jQuery(this).css('background-color',CLI.settings.button_2_button_hover)},function(){jQuery(this).css('background-color',CLI.settings.button_2_button_colour)})} this.reject_link.css('color',this.settings.button_3_link_colour);if(this.settings.button_3_as_button){this.reject_link.css('background-color',this.settings.button_3_button_colour);this.reject_link.hover(function(){jQuery(this).css('background-color',CLI.settings.button_3_button_hover)},function(){jQuery(this).css('background-color',CLI.settings.button_3_button_colour)})} this.settings_link.css('color',this.settings.button_4_link_colour);if(this.settings.button_4_as_button){this.settings_link.css('background-color',this.settings.button_4_button_colour);this.settings_link.hover(function(){jQuery(this).css('background-color',CLI.settings.button_4_button_hover)},function(){jQuery(this).css('background-color',CLI.settings.button_4_button_colour)})} this.accept_all_button.css('color',this.settings.button_7_link_colour);if(this.settings.button_7_as_button){this.accept_all_button.css('background-color',this.settings.button_7_button_colour);this.accept_all_button.hover(function(){jQuery(this).css('background-color',CLI.settings.button_7_button_hover)},function(){jQuery(this).css('background-color',CLI.settings.button_7_button_colour)})} this.save_my_prefer_button.css('color',this.settings.button_8_link_colour);if(this.settings.button_8_as_button){this.save_my_prefer_button.css('background-color',this.settings.button_8_button_colour);this.save_my_prefer_button.hover(function(){jQuery(this).css('background-color',CLI.settings.button_8_button_hover)},function(){jQuery(this).css('background-color',CLI.settings.button_8_button_colour)})}},toggleBar:function(){if(CLI_COOKIEBAR_AS_POPUP){this.barAsPopUp(1)} if(CLI.settings.cookie_bar_as=='widget'){this.barAsWidget(1)} if(this.settings.show_once_yn){setTimeout(function(){if(!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){CLI.close_header();CLI.BannerStatus('hidden')}},CLI.settings.show_once)} this.showagain_elm.on('click keypress',function(e){var key=e.which;if(key===1||key===13){e.preventDefault();CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function(){CLI.BannerStatus('revisit');CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);CLI.refocusElement();if(CLI_COOKIEBAR_AS_POPUP){CLI.showPopupOverlay()}})}})},configShowAgain:function(){this.showagain_config={'background-color':this.settings.background,'color':this.settings.text,'position':'fixed','font-family':this.settings.font_family};if(this.settings.border_on){var border_to_hide='border-'+this.settings.notify_position_vertical;this.showagain_config.border='1px solid '+this.l1hs(this.settings.border);this.showagain_config[border_to_hide]='none'} var cli_win=jQuery(window);var cli_winw=cli_win.width();var showagain_x_pos=this.settings.showagain_x_position;if(cli_winw<300){showagain_x_pos=10;this.showagain_config.width=cli_winw-20}else{this.showagain_config.width='auto'} var cli_defw=cli_winw>400?500:cli_winw-20;if(CLI_COOKIEBAR_AS_POPUP){var sa_pos=this.settings.popup_showagain_position;var sa_pos_arr=sa_pos.split('-');if(sa_pos_arr[1]=='left'){this.showagain_config.left=showagain_x_pos}else if(sa_pos_arr[1]=='right'){this.showagain_config.right=showagain_x_pos} if(sa_pos_arr[0]=='top'){this.showagain_config.top=0}else if(sa_pos_arr[0]=='bottom'){this.showagain_config.bottom=0} this.bar_config.position='fixed'}else if(this.settings.cookie_bar_as=='widget'){this.showagain_config.bottom=0;if(this.settings.widget_position=='left'){this.showagain_config.left=showagain_x_pos}else if(this.settings.widget_position=='right'){this.showagain_config.right=showagain_x_pos}}else{if(this.settings.notify_position_vertical=="top"){this.showagain_config.top='0'}else if(this.settings.notify_position_vertical=="bottom"){this.bar_config.position='fixed';this.bar_config.bottom='0';this.showagain_config.bottom='0'} if(this.settings.notify_position_horizontal=="left"){this.showagain_config.left=showagain_x_pos}else if(this.settings.notify_position_horizontal=="right"){this.showagain_config.right=showagain_x_pos}} this.showagain_elm.css(this.showagain_config)},configBar:function(){var templateID='';this.bar_config={'background-color':this.settings.background,'color':this.settings.text,'font-family':this.settings.font_family};if(jQuery(".wt-cli-template")[0]){var templateElm=jQuery(".wt-cli-template");var templateClasses=templateElm.attr('class');var templateClasses=templateClasses.split(" ");var matchingID=templateClasses.filter(function(value){return value.match(/\bcli-style/)});templateID=matchingID[0];this.bar_elm.attr('data-template-id',templateID)} if(jQuery(".wt-cli-category-widget")[0]){this.bar_elm.addClass('wt-cli-category-widget-active')} if(this.settings.cookie_setting_popup===!1){this.barPopupStyle()} if(this.settings.notify_position_vertical=="top"){this.bar_config.top='0';if(this.settings.header_fix===!0){this.bar_config.position='fixed'}}else{this.bar_config.bottom='0'} this.configShowAgain();this.bar_elm.css(this.bar_config).hide()},l1hs:function(str){if(str.charAt(0)=="#"){str=str.substring(1,str.length)}else{return"#"+str} return this.l1hs(str)},close_header:function(){CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);if(CLI.settings.accept_all==!0){CLI.enableAllCookies()} CLI.accept_close();this.hideHeader();CLI.saveLog('accept')},accept_close:function(){this.hidePopupOverlay();CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);if(this.settings.notify_animate_hide){this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts)}else{this.bar_elm.hide(0,cliBlocker.runScripts)} if(this.settings.showagain_tab){this.showagain_elm.slideDown(this.settings.animate_speed_show)} this.generate_user_preference_cookie();this.generateConsent();CLI.cookieLawInfoRunCallBacks();if(this.settings.accept_close_reload===!0){this.reload_current_page()} CLI.BannerStatus('hidden');return!1},reject_close:function(){this.hidePopupOverlay();for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k])} CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);if(this.settings.notify_animate_hide){this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts)}else{this.bar_elm.hide(0,cliBlocker.runScripts)} if(this.settings.showagain_tab){this.showagain_elm.slideDown(this.settings.animate_speed_show)} this.generate_user_preference_cookie();CLI.generateConsent();if(this.settings.reject_close_reload===!0){this.reload_current_page()} CLI.BannerStatus('hidden');if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='no'){this.checkCategories();if("function"==typeof CookieLawInfo_Reject_Callback){CookieLawInfo_Reject_Callback()}} return!1},generate_user_preference_cookie:function(){var cli_user_preference_arr=new Array();var cli_user_preference_val='';if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){cli_user_preference_arr.push('cli-'+CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME))} jQuery('.cli-user-preference-checkbox').each(function(){if(jQuery(this).is(':checked')){cli_user_preference_arr.push(jQuery(this).attr('data-id')+'-yes')}else{cli_user_preference_arr.push(jQuery(this).attr('data-id')+'-no')}});if(cli_user_preference_arr.length>0){cli_user_preference_val=Cli_Data.current_lang+'-'+cli_user_preference_arr.join('-')} CLI_Cookie.set('cli_user_preference',cli_user_preference_val,CLI_ACCEPT_COOKIE_EXPIRE)},isBase64:function(str){if(str===''||str.trim()===''){return!1} try{return btoa(atob(str))==str}catch(err){return!1}},generateConsent:function(){var preferenceCookie=CLI_Cookie.read(CLI_PREFERNCE_COOKIE);cliConsent={};if(preferenceCookie!==null){if(CLI.isBase64(preferenceCookie)){cliConsent=window.atob(preferenceCookie)}else{cliConsent=decodeURIComponent(preferenceCookie)} cliConsent=JSON.parse(cliConsent)} cliConsent.ver=Cli_Data.consentVersion;categories=[];jQuery('.cli-user-preference-checkbox').each(function(){categoryVal='';cli_chkbox_data_id=jQuery(this).attr('data-id');cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-','');if(jQuery(this).is(':checked')){categoryVal='true'}else{categoryVal='false'} cliConsent[cli_chkbox_data_id]=categoryVal});cliConsent=JSON.stringify(cliConsent);cliConsent=window.btoa(cliConsent);CLI_Cookie.set(CLI_PREFERNCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE)},cliRenewConsent:function(){var preferenceCookie=CLI_Cookie.read(CLI_PREFERNCE_COOKIE);if(preferenceCookie!==null){if(CLI.isBase64(preferenceCookie)){cliConsent=window.atob(preferenceCookie)}else{cliConsent=decodeURIComponent(preferenceCookie)} cliConsent=JSON.parse(cliConsent);consentCurrentVersion=parseInt(cliConsent.ver);consentRenewVersion=parseInt(Cli_Data.consentVersion);if(typeof(cliConsent.ver)!=='undefined'){if(cliConsent.ver!==Cli_Data.consentVersion){CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);CLI_Cookie.erase(CLI_PREFERNCE_COOKIE);CLI_Cookie.erase('cli_user_preference');for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k])}}}}},reload_current_page:function(){window.location.reload()},add_clear_cache_url_query:function(){var cli_rand=new Date().getTime()/1000;var cli_url=window.location.href;var cli_hash_arr=cli_url.split('#');var cli_urlparts=cli_hash_arr[0].split('?');if(cli_urlparts.length>=2){var cli_url_arr=cli_urlparts[1].split('&');cli_url_temp_arr=new Array();for(var cli_i=0;cli_i0?'&':'')+'cli_action='}else{cli_url=cli_hash_arr[0]+'?cli_action='} cli_url+=cli_rand;if(cli_hash_arr.length>1){cli_url+='#'+cli_hash_arr[1]} return cli_url},closeOnScroll:function(){if(window.pageYOffset>100&&!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){if(CLI.settings.accept_all==!0){CLI.enableAllCookies()} CLI.accept_close();CLI.saveLog('accept');if(CLI.settings.scroll_close_reload===!0){window.location.reload()} window.removeEventListener("scroll",CLI.closeOnScroll,!1)}},displayHeader:function(){if(this.settings.notify_animate_show){this.bar_elm.slideDown(this.settings.animate_speed_show)}else{this.bar_elm.show();CLI.refocusElement()} this.showagain_elm.hide();if(CLI_COOKIEBAR_AS_POPUP){this.showPopupOverlay()} CLI.BannerStatus('visible')},hideHeader:function(){if(this.settings.showagain_tab){if(this.settings.notify_animate_show){this.showagain_elm.slideDown(this.settings.animate_speed_show)}else{this.showagain_elm.show()}}else{this.showagain_elm.hide()} this.bar_elm.slideUp(this.settings.animate_speed_show);this.hidePopupOverlay();CLI.BannerStatus('hidden')},hidePopupOverlay:function(){jQuery('body').removeClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").removeClass("cli-show")},showPopupOverlay:function(){if(this.bar_elm.length){if(this.settings.popup_overlay){if(!(this.main_link.hasClass('cli-minimize-bar'))){jQuery('body').addClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").addClass("cli-show")}}}},barAsWidget:function(a){var cli_elm=this.bar_elm;cli_elm.attr('data-cli-type','widget');var cli_win=jQuery(window);var cli_winh=cli_win.height()-40;var cli_winw=cli_win.width();var cli_defw=cli_winw>465?445:cli_winw-60;cli_elm.css({'width':cli_defw,'height':'auto','max-height':cli_winh,'overflow':'auto','position':'fixed','box-shadow':'rgba(0,0,0,.5) 0px 5px 10px','box-sizing':'border-box'});if(this.settings.widget_position=='left'){cli_elm.css({'left':'30px','right':'auto','bottom':'30px','top':'auto'})}else{cli_elm.css({'left':'auto','right':'30px','bottom':'30px','top':'auto'})} if(a){this.setResize()}},barAsPopUp:function(a){if(typeof cookie_law_info_bar_as_popup==='function'){return!1} var cli_elm=this.bar_elm;cli_elm.attr('data-cli-type','popup');var cli_win=jQuery(window);var cli_winh=cli_win.height();var cli_defh=cli_winh>500?500:cli_winh;var cli_winw=cli_win.width();var cli_defw=cli_winw>700?500:cli_winw-20;cli_elm.css({'width':cli_defw,'height':'auto','max-height':cli_defh,'bottom':'','top':'50%','left':'50%','transform':'translate(-50%, -50%)','overflow':'auto'});if(a){this.setResize()}},setResize:function(){var resizeTmr=null;jQuery(window).resize(function(){clearTimeout(resizeTmr);resizeTmr=setTimeout(function(){if(CLI_COOKIEBAR_AS_POPUP){CLI.barAsPopUp()} if(CLI.settings.cookie_bar_as=='widget'){CLI.barAsWidget()} CLI.configShowAgain()},500)})},isValidHex:function(color){if(!color||typeof color!=='string')return!1;if(color.substring(0,1)==='#')color=color.substring(1);switch(color.length){case 3:return/^[0-9A-F]{3}$/i.test(color);case 6:return/^[0-9A-F]{6}$/i.test(color);case 8:return/^[0-9A-F]{8}$/i.test(color);default:return!1} return!1},ColorLuminance:function(hex,lum){hex=String(hex).replace(/[^0-9a-f]/gi,'');if(hex.length<6){hex=hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]} lum=lum||0;var rgb="#",c,i;for(i=0;i<3;i++){c=parseInt(hex.substr(i*2,2),16);c=Math.round(Math.min(Math.max(0,c+(c*lum)),255)).toString(16);rgb+=("00"+c).substr(c.length)} return rgb},rgb2hex:function(rgb){rgb=rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return(rgb&&rgb.length===4)?"#"+("0"+parseInt(rgb[1],10).toString(16)).slice(-2)+("0"+parseInt(rgb[2],10).toString(16)).slice(-2)+("0"+parseInt(rgb[3],10).toString(16)).slice(-2):''},lightOrDark:function(color){var r,g,b,hsp;if(color.match(/^rgb/)){color=color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);r=color[1];g=color[2];b=color[3]}else{color=+("0x"+color.slice(1).replace(color.length<5&&/./g,'$&$&'));r=color>>16;g=color>>8&255;b=color&255} hsp=Math.sqrt(0.299*(r*r)+0.587*(g*g)+0.114*(b*b));if(hsp>127.5){return'light'}else{return'dark'}},barPopupStyle:function(){var acceptBtn=jQuery('.cli_action_button[data-cli_action=accept]');var primaryColor=this.settings.button_1_button_colour;var primaryLinkColor=this.settings.button_1_link_colour;var barColor=this.settings.background;var extractedStyle='';var primaryBtnStyle=this.settings.button_1_style;Object.keys(primaryBtnStyle).forEach(function(element){extractedStyle+=primaryBtnStyle[element][0]+':'+primaryBtnStyle[element][1]+';'});var shadeColor;if(!CLI.isValidHex(barColor)){barColor=CLI.rgb2hex(barColor)} if(barColor=="#000000"){shadeColor='#191919'}else{var intensity=CLI.lightOrDark(barColor);if(intensity=='light'){shadeColor=CLI.ColorLuminance(barColor,-0.05)}else{shadeColor=CLI.ColorLuminance(barColor,0.4)}} jQuery("