/*! For license information please see index.js.LICENSE.txt */ (()=>{var e={5485:function(e,t,n){"use strict";var r=n(1562);function o(e){return o="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},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:C(e,n,a)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var h={};function y(){}function v(){}function g(){}var m={};f(m,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(P([])));w&&w!==t&&n.call(w,c)&&(m=w);var _=g.prototype=y.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,s,a,c){var u=p(e[i],e,s);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;s(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=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),T(n),h}},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;T(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),h}},e}function s(e,t){for(var n=0;n=0;t-=1)this.tasks[t].type===e&&this.tasks.splice(t,1);else this.tasks.splice(0,1/0)}},{key:"enqueue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.TaskPriority.Normal,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(n){var o=this.getStackedItems(n);if(o.length>0)return o[o.length-1].queuedPromise}var i=new p.Task(e,t,n);return"number"==typeof r&&r>=0&&(i.timeLimit=r),this.tasks.push(i),this.sort(),this.autostart&&this.start(),i.queuedPromise}},{key:"getStackedItems",value:function(e){return this.tasks.filter((function(t){return t.stack&&t.stack===e}))}},{key:"retrieveNextItem",value:function(){return this.tasks.shift()}},{key:"sort",value:function(){this.tasks.sort(y)}},{key:"start",value:function(){var e=this;return!this.isRunning&&(this.emit("started"),this.isRunning=!0,setTimeout((function(){return e._runNextItem()}),0),!0)}},{key:"waitForEmpty",value:function(){return l(this,void 0,void 0,i().mark((function e(){var t=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new r((function(e){if(t.isEmpty)return e();t.once("stopped",(function(){e()}))})));case 1:case"end":return e.stop()}}),e)})))}},{key:"_runNextItem",value:function(){var e=this,t=this.retrieveNextItem();t?t.execute().then((function(){return e._runNextItem()})):(this.isRunning=!1,this.emit("stopped"))}}],n&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(d.default);t.Channel=v},4674:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;n{"use strict";function r(e){return r="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},r(e)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},o.apply(this,arguments)}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)}Object.defineProperty(t,"__esModule",{value:!0}),t.ParallelChannel=void 0;var a=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&&i(e,t)}(l,e);var t,n,a,c,u=(a=l,c=function(){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(){var e,t=s(a);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(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 l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=u.call(this,e))._parallelism=2,t._runningTasks=[],t.canRunAcrossTaskTypes=!1,t}return t=l,(n=[{key:"isEmpty",get:function(){return o(s(l.prototype),"isEmpty",this)&&this._runningTasks.length<=0}},{key:"parallelism",get:function(){return this._parallelism},set:function(e){var t=Math.max(e,1);this._parallelism=t}},{key:"runningTasks",get:function(){return this._runningTasks}},{key:"_runNextItem",value:function(){var e=this;if(0===this.runningTasks.length&&0===this.tasks.length)return e.isRunning=!1,void e.emit("stopped");var t=this.parallelism-this.runningTasks.length;if(!(t<=0))for(var n=function(){if(!e.canRunAcrossTaskTypes&&e.runningTasks.length>0&&e.tasks.length>0&&e.runningTasks[0].type!==e.tasks[0].type)return{v:void 0};t-=1;var n=e.retrieveNextItem();if(!n)return{v:void 0};e.runningTasks.push(n),n.execute().then((function(){e.runningTasks.splice(e.runningTasks.indexOf(n),1),e._runNextItem()}))};t>0;){var o=n();if("object"===r(o))return o.v}}}])&&function(e,t){for(var n=0;n{"use strict";var r=n(1562);function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Task=void 0;var i=n(1908),s=n(691),a=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.TaskPriority.Normal,i=arguments.length>2?arguments[2]:void 0;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._stack=null,this._resolveFn=null,this._rejectFn=null,t instanceof r!=1&&"function"!=typeof t)throw new Error("Invalid task item: Expected a Promise or Function");this._target="function"==typeof t?t:function(){return t},this._stack=null!=i?i:null,this._type=o,this._timeLimit=-1,this._resolveFn=null,this._rejectFn=null,this._queuedPromise=new r((function(e,t){n._resolveFn=e,n._rejectFn=t}));var a=new Date;this._created=a.getTime()}var t,n;return t=e,(n=[{key:"created",get:function(){return this._created}},{key:"queuedPromise",get:function(){return this._queuedPromise}},{key:"stack",get:function(){return this._stack}},{key:"target",get:function(){return this._target}},{key:"timeLimit",get:function(){return this._timeLimit},set:function(e){this._timeLimit=e}},{key:"type",get:function(){return this._type}},{key:"execute",value:function(){var e,t,n=this,o=this.target;try{t=o()}catch(t){return null===(e=this._rejectFn)||void 0===e||e.call(this,t),r.resolve()}var s=t instanceof r?t:r.resolve(t);return this.timeLimit>=0&&(s=(0,i.timeLimit)(s,this.timeLimit)),s.then((function(e){var t;null===(t=n._resolveFn)||void 0===t||t.call(n,e)})).catch((function(e){var t;null===(t=n._rejectFn)||void 0===t||t.call(n,e)}))}}])&&function(e,t){for(var n=0;n{"use strict";var r=n(1562);Object.defineProperty(t,"__esModule",{value:!0}),t.timeLimit=void 0;var o=n(5150),i=n(691);t.timeLimit=function(e,t){var n;return r.race([e,new r((function(e,r){n=setTimeout((function(){r(new o.Layerr({info:{code:i.ErrorCode.TaskTimeout}},"Timed-out waiting for task: ".concat(t," ms")))}),t)}))]).then((function(e){return clearTimeout(n),e}))}},691:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskPriority=t.ErrorCode=void 0,(t.ErrorCode||(t.ErrorCode={})).TaskTimeout="TASKTIMEOUT",(n=t.TaskPriority||(t.TaskPriority={})).Normal="normal",n.High="high-priority",n.Tail="tail"},2676:function(e,t){"use strict";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)}var r=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});var o=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,o,i=n(e);if("number"===i||"string"===i||"boolean"===i)return e;if(null!==e&&"object"===i){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var s=[];try{for(var a=r(e),c=a.next();!c.done;c=a.next()){var u=c.value;s.push(this.deepClone(u))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return e instanceof Array?s:new e.constructor(s)}var l={};for(var f in e)e.hasOwnProperty(f)&&(l[f]=this.deepClone(e[f]));return l}},e}();t.Cloneable=o},3148:function(e,t,n){"use strict";var r=n(1562);function o(e){return o="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},o(e)}var i,s=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=r))((function(r,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))},c=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(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var s=n;t.CACHE.has(s)?(o.populate(t.CACHE.get(s)),o.readyPromise=r.resolve()):(i+=t.versionedFilename.replace("[VERSION]",s+""),o.readyPromise=o.fetchJson(i))}else t.CACHE.has(t.LATEST_CACHE_KEY)?(o.populate(t.CACHE.get(t.LATEST_CACHE_KEY)),o.readyPromise=r.resolve()):(o.isLatest=!0,o.readyPromise=o.fetchJson(i+t.latestFilename))}return o}return s(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:!0,configurable:!0}),t.emptyLanguageCache=function(e){var n=!1;return void 0===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.lang_)||t.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})},t.prototype.fetchJson=function(e){return a(this,void 0,void 0,(function(){var t,n;return c(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this.populate,[4,f.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 JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,vendors:this.fullVendorList}))},t.prototype.changeLanguage=function(e){return a(this,void 0,void 0,(function(){var n,r,o,i,s;return c(this,(function(a){switch(a.label){case 0:if(n=e.toUpperCase(),!t.consentLanguages.has(n))return[3,6];if(n===this.lang_)return[3,5];if(this.lang_=n,!t.LANGUAGE_CACHE.has(n))return[3,1];for(o in r=t.LANGUAGE_CACHE.get(n))r.hasOwnProperty(o)&&(this[o]=r[o]);return[3,5];case 1:i=t.baseUrl+t.languageFilename.replace("[LANG]",e),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.fetchJson(i)];case 3:return a.sent(),this.cacheLanguage(),[3,5];case 4:throw s=a.sent(),new l.GVLError("unable to load language: "+s.message);case 5:return[3,7];case 6:throw new l.GVLError("unsupported language "+e);case 7:return[2]}}))}))},Object.defineProperty(t.prototype,"language",{get:function(){return this.lang_},enumerable:!0,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.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_[""+n];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[e+""].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[e+""].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[e+""].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[e+""].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[e+""].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[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"][t+""][n]:this["by"+(r?"Special":"")+i+"VendorMap"][t+""]).forEach((function(e){s[e+""]=o.vendors[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:!0,configurable:!0}),t.prototype.narrowVendorsTo=function(e){this.mapVendors(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReady_},enumerable:!0,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"==o(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 d.ConsentLanguages,t.latestFilename="vendor-list.json",t.versionedFilename="archives/vendor-list-v[VERSION].json",t.languageFilename="purposes-[LANG].json",t}(u.Cloneable);t.GVL=p},4394:(e,t,n)=>{"use strict";var r=n(1562);Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.absCall=function(e,t,n,o){return new r((function(r,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){}r(e)}else i(new Error("HTTP Status: "+s.status+" response type: "+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=o,s.ontimeout=function(){i(new Error("Timeout "+o+"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=o},1410:function(e,t,n){"use strict";function r(e){return r="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},r(e)}var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(2676),a=n(3579),c=n(3148),u=n(9853),l=function(e){function t(t){var n=e.call(this)||this;return n.isServiceSpecific_=!1,n.supportOOB_=!0,n.useNonStandardStacks_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=2,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.specialFeatureOptins=new u.Vector,n.purposeConsents=new u.Vector,n.purposeLegitimateInterests=new u.Vector,n.publisherConsents=new u.Vector,n.publisherLegitimateInterests=new u.Vector,n.publisherCustomConsents=new u.Vector,n.publisherCustomLegitimateInterests=new u.Vector,n.vendorConsents=new u.Vector,n.vendorLegitimateInterests=new u.Vector,n.vendorsDisclosed=new u.Vector,n.vendorsAllowed=new u.Vector,n.publisherRestrictions=new u.PurposeRestrictionVector,t&&(n.gvl=t),n.updated(),n}return i(t,e),Object.defineProperty(t.prototype,"gvl",{get:function(){return this.gvl_},set:function(e){c.GVL.isInstanceOf(e)||(e=new c.GVL(e)),this.gvl_=e,this.publisherRestrictions.gvl=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cmpId",{get:function(){return this.cmpId_},set:function(e){if(!(Number.isInteger(+e)&&e>1))throw new a.TCModelError("cmpId",e);this.cmpId_=+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cmpVersion",{get:function(){return this.cmpVersion_},set:function(e){if(!(Number.isInteger(+e)&&e>-1))throw new a.TCModelError("cmpVersion",e);this.cmpVersion_=+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"consentScreen",{get:function(){return this.consentScreen_},set:function(e){if(!(Number.isInteger(+e)&&e>-1))throw new a.TCModelError("consentScreen",e);this.consentScreen_=+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"consentLanguage",{get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"publisherCountryCode",{get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new a.TCModelError("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vendorListVersion",{get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=+e|0)<0)throw new a.TCModelError("vendorListVersion",e);this.vendorListVersion_=e},enumerable:!0,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 a.TCModelError("policyVersion",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isServiceSpecific",{get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useNonStandardStacks",{get:function(){return this.useNonStandardStacks_},set:function(e){this.useNonStandardStacks_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"supportOOB",{get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"purposeOneTreatment",{get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e},enumerable:!0,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"==r(this.customPurposes)){var t=Object.keys(this.customPurposes).sort((function(e,t){return+e-+t}));e=parseInt(t.pop(),10)}return e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new a.TCModelError("numCustomPurposes",e)},enumerable:!0,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=c.GVL.consentLanguages,t}(s.Cloneable);t.TCModel=l},1603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3710),o=n(9853),i=n(7656),s=n(1410),a=function(){function e(){}return e.encode=function(e,t){var n,o,i="";return e=r.SemanticPreEncoder.process(e,t),(o=Array.isArray(null===(n=t)||void 0===n?void 0:n.segments)?t.segments:new r.SegmentSequence(e,t)[""+e.version]).forEach((function(t,n){var s="";n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3579),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{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9853),o=function(){function e(){}var t,n,o,i,s,a,c,u,l,f,d,p,h,y,v,g,m,b;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,f=r.Fields.publisherLegitimateInterests,d=r.Fields.publisherConsents,p=r.Fields.purposeConsents,h=r.Fields.purposeLegitimateInterests,y=r.Fields.purposeOneTreatment,v=r.Fields.specialFeatureOptins,g=r.Fields.useNonStandardStacks,m=r.Fields.vendorListVersion,b=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[f]=24,e[d]=24,e[p]=24,e[h]=24,e[y]=1,e[v]=12,e[g]=1,e[m]=12,e[b]=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},891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5375),o=n(8928),i=n(7763),s=n(9543),a=n(3579),c=n(6362),u=n(9853),l=function(){function e(){}return e.encode=function(e,t){var n,s=this;try{n=this.fieldSequence[""+e.version][t]}catch(n){throw new a.EncodingError("Unable to encode version: "+e.version+", segment: "+t)}var l="";return t!==u.Segment.CORE&&(l=i.IntEncoder.encode(u.SegmentIDs.KEY_TO_ID[t],o.BitLength.segmentType)),n.forEach((function(n){var r=e[n],u=i.FieldEncoderMap[n],f=o.BitLength[n];void 0===f&&s.isPublisherCustom(n)&&(f=+e[c.Fields.numCustomPurposes]);try{l+=u.encode(r,f)}catch(e){throw new a.EncodingError("Error encoding "+t+"->"+n+": "+e.message)}})),r.Base64Url.encode(l)},e.decode=function(e,t,n){var s=this,l=r.Base64Url.decode(e),f=0;return n===u.Segment.CORE&&(t.version=i.IntEncoder.decode(l.substr(f,o.BitLength[c.Fields.version]),o.BitLength[c.Fields.version])),n!==u.Segment.CORE&&(f+=o.BitLength.segmentType),this.fieldSequence[""+t.version][n].forEach((function(e){var n=i.FieldEncoderMap[e],r=o.BitLength[e];if(void 0===r&&s.isPublisherCustom(e)&&(r=+t[c.Fields.numCustomPurposes]),0!==r){var u=l.substr(f,r);if(n===i.VendorVectorEncoder?t[e]=n.decode(u,t.version):t[e]=n.decode(u,r),Number.isInteger(r))f+=r;else{if(!Number.isInteger(t[e].bitLength))throw new a.DecodingError(e);f+=t[e].bitLength}}})),t},e.isPublisherCustom=function(e){return 0===e.indexOf("publisherCustom")},e.fieldSequence=new s.FieldSequence,e}();t.SegmentEncoder=l},158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3579),o=n(9853),i=function(){function e(){}return e.process=function(e,t){var n,o,i=e.gvl;if(!i)throw new r.EncodingError("Unable to encode TCModel without a GVL");if(!i.isReady)throw new r.EncodingError("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=i.language.toUpperCase(),(null===(n=t)||void 0===n?void 0:n.version)>0&&(null===(o=t)||void 0===o?void 0:o.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var s=e.version-1;if(!this.processor[s])throw new r.EncodingError("Invalid version: "+e.version);return this.processor[s](e,i)},e.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);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);else if(e.isServiceSpecific)if(0===a.flexiblePurposes.length)n.unset(s);else{for(var c=e.publisherRestrictions.getRestrictions(s),u=!1,l=0,f=c.length;l{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.encode=function(e){return+e+""},e.decode=function(e){return"1"===e},e}();t.BooleanEncoder=n},6494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7656),o=n(3579),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},4126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9853),o=n(6102),i=n(6494),s=n(2841),a=n(7656),c=n(1751),u=n(6856),l=n(8623),f=function(){function e(){}var t,n,f,d,p,h,y,v,g,m,b,w,_,E,S,C,O,L,T,I,P,k,j,A,F,x;return t=r.Fields.version,n=r.Fields.created,f=r.Fields.lastUpdated,d=r.Fields.cmpId,p=r.Fields.cmpVersion,h=r.Fields.consentScreen,y=r.Fields.consentLanguage,v=r.Fields.vendorListVersion,g=r.Fields.policyVersion,m=r.Fields.isServiceSpecific,b=r.Fields.useNonStandardStacks,w=r.Fields.specialFeatureOptins,_=r.Fields.purposeConsents,E=r.Fields.purposeLegitimateInterests,S=r.Fields.purposeOneTreatment,C=r.Fields.publisherCountryCode,O=r.Fields.vendorConsents,L=r.Fields.vendorLegitimateInterests,T=r.Fields.publisherRestrictions,I=r.Fields.vendorsDisclosed,P=r.Fields.vendorsAllowed,k=r.Fields.publisherConsents,j=r.Fields.publisherLegitimateInterests,A=r.Fields.numCustomPurposes,F=r.Fields.publisherCustomConsents,x=r.Fields.publisherCustomLegitimateInterests,e[t]=a.IntEncoder,e[n]=i.DateEncoder,e[f]=i.DateEncoder,e[d]=a.IntEncoder,e[p]=a.IntEncoder,e[h]=a.IntEncoder,e[y]=c.LangEncoder,e[v]=a.IntEncoder,e[g]=a.IntEncoder,e[m]=o.BooleanEncoder,e[b]=o.BooleanEncoder,e[w]=s.FixedVectorEncoder,e[_]=s.FixedVectorEncoder,e[E]=s.FixedVectorEncoder,e[S]=o.BooleanEncoder,e[C]=c.LangEncoder,e[O]=l.VendorVectorEncoder,e[L]=l.VendorVectorEncoder,e[T]=u.PurposeRestrictionVectorEncoder,e.segmentType=a.IntEncoder,e[I]=l.VendorVectorEncoder,e[P]=l.VendorVectorEncoder,e[k]=s.FixedVectorEncoder,e[j]=s.FixedVectorEncoder,e[A]=a.IntEncoder,e[F]=s.FixedVectorEncoder,e[x]=s.FixedVectorEncoder,e}();t.FieldEncoderMap=f},2841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6102),o=n(3579),i=n(9853),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},7656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3579),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(e+" too large to encode into "+t);return n.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7656),o=n(3579),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: "+e);if(t%2==1)throw new o.EncodingError("numBits must be even, "+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},6856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8928),o=n(6102),i=n(3579),s=n(7656),a=n(9853),c=function(){function e(){}return e.encode=function(e){var t=s.IntEncoder.encode(e.numRestrictions,r.BitLength.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((function(n){t+=s.IntEncoder.encode(n.purposeId,r.BitLength.purposeId),t+=s.IntEncoder.encode(n.restrictionType,r.BitLength.restrictionType);for(var i=e.getVendors(n),a=i.length,c=0,u=0,l="",f=function(t){var n=i[t];0===u&&(c++,u=n);var f=i[a-1],d=e.gvl.vendorIds;if(t===a-1||i[t+1]>function(e){for(;++e<=f&&!d.has(e););return e}(n)){var p=!(n===u);l+=o.BooleanEncoder.encode(p),l+=s.IntEncoder.encode(u,r.BitLength.vendorId),p&&(l+=s.IntEncoder.encode(n,r.BitLength.vendorId)),u=0}},d=0;d{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.VectorEncodingType||(t.VectorEncodingType={}))[n.FIELD=0]="FIELD",n[n.RANGE=1]="RANGE"},8623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9853),o=n(3710),i=n(7656),s=n(6102),a=n(2841),c=n(525),u=n(3579),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,f=l+e.maxId,d=2*o.BitLength.vendorId+o.BitLength.singleOrRange+o.BitLength.numEntries,p=l+o.BitLength.numEntries;return e.forEach((function(i,a){u+=s.BooleanEncoder.encode(i),(t=e.maxId>d&&p{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(6102)),r(n(6494)),r(n(4126)),r(n(2841)),r(n(7656)),r(n(1751)),r(n(6856)),r(n(525)),r(n(8623))},3710:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(5375)),r(n(8928)),r(n(891)),r(n(158)),r(n(7763)),r(n(9543))},1613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9853);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.useNonStandardStacks,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)}},3699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9853);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))}}},9543:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1613)),r(n(3699))},1412:function(e,t){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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});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},1661:function(e,t){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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});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},5118:function(e,t){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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});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},3319:function(e,t){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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});var o=function(e){function t(t,n,r){void 0===r&&(r="");var o=e.call(this,"invalid value "+n+" passed for "+t+" "+r)||this;return o.name="TCModelError",o}return r(t,e),t}(Error);t.TCModelError=o},3579:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1412)),r(n(1661)),r(n(5118)),r(n(3319))},6291:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(3710)),r(n(3579)),r(n(9853)),r(n(2676)),r(n(3148)),r(n(4394)),r(n(1410)),r(n(1603))},3071:function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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});var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.root=null,t}return o(t,e),t.prototype.isEmpty=function(){return!this.root},t.prototype.add=function(e){var t,n={value:e,left:null,right:null};if(this.isEmpty())this.root=n;else for(t=this.root;;)if(et.value))break;if(null===t.right){t.right=n;break}t=t.right}},t.prototype.get=function(){for(var e=[],t=this.root;t;)if(t.left){for(var n=t.left;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e},t.prototype.contains=function(e){for(var t=!1,n=this.root;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:et.value)n=t,t=t.right,r="right";else{if(t.left||t.right)if(t.left)if(t.right){var o=this.min(t.right);this.remove(o,t.right),t.value=o}else n?n[r]=t.left:this.root=t.left;else n?n[r]=t.right:this.root=t.right;else n?n[r]=null:this.root=null;t=null}},t}(n(2676).Cloneable);t.BinarySearchTree=i},1353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.has=function(t){return e.langSet.has(t)},e.prototype.forEach=function(t){e.langSet.forEach(t)},Object.defineProperty(e.prototype,"size",{get:function(){return e.langSet.size},enumerable:!0,configurable:!0}),e.langSet=new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]),e}();t.ConsentLanguages=n},9323:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.DeviceDisclosureStorageAccessType||(t.DeviceDisclosureStorageAccessType={})).COOKIE="cookie",n.WEB="web",n.APP="app"},6362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!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.useNonStandardStacks="useNonStandardStacks",e.vendorConsents="vendorConsents",e.vendorLegitimateInterests="vendorLegitimateInterests",e.vendorListVersion="vendorListVersion",e.vendorsAllowed="vendorsAllowed",e.vendorsDisclosed="vendorsDisclosed",e.version="version",e}();t.Fields=n},5e3:function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){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});var i=n(2676),s=n(3579),a=n(6036),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""+this.purposeId+t.hashSeparator+this.restrictionType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"purposeId",{get:function(){return this.purposeId_},set:function(e){this.purposeId_=e},enumerable:!0,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},8071:function(e,t,n){"use strict";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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=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});var s=n(5e3),a=n(3071),c=n(6036),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bitLength=0,t.map=new Map,t}return o(t,e),t.prototype.has=function(e){return this.map.has(e)},t.prototype.isOkToHave=function(e,t,n){var r,o=!0;if(null===(r=this.gvl)||void 0===r?void 0:r.vendors){var i=this.gvl.vendors[n];if(i)if(e===c.RestrictionType.NOT_ALLOWED)o=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case c.RestrictionType.REQUIRE_CONSENT:o=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case c.RestrictionType.REQUIRE_LI:o=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else o=!1;else o=!1}return o},t.prototype.add=function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new a.BinarySearchTree),this.bitLength=0),this.map.get(n).add(e)}},t.prototype.restrictPurposeToLegalBasis=function(e){for(var t=this.gvl.vendorIds,n=e.hash,r=function(){var e,n,r;try{for(var o=i(t),s=o.next();!s.done;s=o.next())r=s.value}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(),o=1;o<=r;o++)this.has(n)||(this.map.set(n,new a.BinarySearchTree),this.bitLength=0),this.map.get(n).add(o)},t.prototype.getVendors=function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=this.map.get(n).get())}else{var r=new Set;this.map.forEach((function(e){e.get().forEach((function(e){r.add(e)}))})),t=Array.from(r)}return t},t.prototype.getRestrictionType=function(e,t){var n;return this.getRestrictions(e).forEach((function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n},t.prototype.vendorHasRestriction=function(e,t){for(var n=!1,r=this.getRestrictions(e),o=0;o{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!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"},8423:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.Segment||(t.Segment={})).CORE="core",n.VENDORS_DISCLOSED="vendorsDisclosed",n.VENDORS_ALLOWED="vendorsAllowed",n.PUBLISHER_TC="publisherTC"},773:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(8423),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},6088:function(e,t,n){"use strict";function r(e){return r="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},r(e)}var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=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(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[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+e})));else{if(!this.isValidNumber(e))throw new c.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:!0,configurable:!0}),t.prototype.setAll=function(e){this.set(e)},t}(a.Cloneable);t.Vector=u},9853:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(3071)),r(n(1353)),r(n(6362)),r(n(5e3)),r(n(8071)),r(n(9323)),r(n(6036)),r(n(8423)),r(n(773)),r(n(6088))},9380:(e,t,n)=>{var r=n(1562);function o(e){return o="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},o(e)}e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==o(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";function i(e,t){for(var n=0;n=0)try{return e&&"string"==typeof e?JSON.parse(e):e}catch(e){}return e}function c(e){return e?e.trim().split(/\r\n|\n/g).reduce((function(e,t){var n=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}(t.split(/:(.+)/),2),r=n[0],o=n[1];return r&&o&&(e[r.toLowerCase()]=o.trim()),e}),{}):{}}function u(e){var t=e.url,n=e.method,u=void 0===n?"GET":n,f=e.headers,d=void 0===f?{}:f,p=e.body,h=void 0===p?null:p,y=e.XMLHR,v=void 0===y?XMLHttpRequest:y,g=e.withCredentials,m=void 0!==g&&g,b=e.parser,w=void 0===b?a:b,_=e.onProgress,E=void 0===_?s:_,S=e.autoContentType,C=void 0===S||S,O=e.timeout,L=void 0===O?null:O;return new r((function(n,r){if(e.data){var s=new Error("sendRequest uses 'body' rather than 'data', but saw 'data' property");return s.code="config",r(s)}var a,f,p,y,g=Object.assign({},d),b=h;C&&b&&"object"==o(b)&&null===l(g,"Content-Type")&&(b=JSON.stringify(b),a=g,p=(f="Content-Type").toLowerCase(),y=i(Object.keys(a),(function(e){return e.toLowerCase()===p}))||f,a[y]="application/json");var _=new v;_.open(u,t,!0),L&&(_.timeout=L,_.ontimeout=function(){var e=new Error("Requested timed-out after "+L+" milliseconds");e.code="timeout",r(e)}),_.withCredentials="boolean"==typeof m&&m,Object.keys(g).map((function(e){_.setRequestHeader(e,g[e])})),_.upload.addEventListener("progress",(function(e){if(e.lengthComputable){var t=Math.round(100*e.loaded/e.total);isNaN(t)||E(t)}})),_.onerror=function(){var e="Request error ("+_.status+" "+_.statusText+", state: "+_.readyState+"): "+u+" "+t;_.responseText&&(e=e+": "+_.responseText.substring(0,50));var n=new Error(e);n.status=_.status,n.statusText=_.statusText,r(n)},_.onreadystatechange=function(){if(4===_.readyState)if(_.status>=200&&_.status<300||302===_.status||304===_.status){var e=c(_.getAllResponseHeaders());n({_req:_,body:w(_.responseText,_.status,e),headers:e,status:_.status,statusText:_.statusText})}else{var o={};try{o=c(_.getAllResponseHeaders())}catch(e){}var i=o["x-ld-req"]||"",s=(i?"Request failed ("+i+")":"Request failed")+" ("+_.status+" "+_.statusText+"): "+u+" "+t;_.responseText&&(s=s+": "+_.responseText.substring(0,50));var a=new Error(s);a.status=_.status,a.statusText=_.statusText,r(a)}},_.send(b)}))}function l(e,t){var n=t.toLowerCase(),r=i(Object.keys(e),(function(e){return e.toLowerCase()===n}))||t;return e[r]?{key:r,value:e[r]}:null}},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0);n.d(t,"getHeader",(function(){return r.a})),n.d(t,"sendRequest",(function(){return r.b}));var o=n(1);for(var i in o)["default","getHeader","sendRequest"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i)}])},5419:(e,t,n)=>{var r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,function(){r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(6899)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6899:(e,t,n)=>{function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new o(r,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,s=new Array(i);o{"use strict";function n(e){return"[object Error]"===(t=e,Object.prototype.toString.call(t))||e instanceof Error;var t}Object.defineProperty(t,"__esModule",{value:!0}),t.isError=t.inherit=t.assertError=void 0,t.assertError=function(e){if(!n(e))throw new Error("Parameter was not an error")},t.inherit=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.isError=n},5150:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}: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.Layerr=void 0;var i=n(7269);Object.defineProperty(t,"Layerr",{enumerable:!0,get:function(){return i.Layerr}}),o(n(8899),t)},7269:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Layerr=void 0;var o=n(129),i=n(4763);function s(e,t){var n=Array.prototype.slice.call(arguments);if(this instanceof s==0)throw new Error("Cannot invoke 'Layerr' like a function: It must be called with 'new'");var o=i.parseArguments(n),a=o.options,c=o.shortMessage;this.name="Layerr",a.name&&"string"==typeof a.name&&(this.name=a.name);var u=c;if(a.cause&&(Object.defineProperty(this,"_cause",{value:a.cause}),u="".concat(u,": ").concat(a.cause.message)),this.message=u,Object.defineProperty(this,"_info",{value:{}}),a.info&&"object"===r(a.info)&&Object.assign(this._info,a.info),Error.call(this,u),Error.captureStackTrace){var l=a.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}return this}t.Layerr=s,o.inherit(s,Error),s.prototype.cause=function(){return s.cause(this)||void 0},s.prototype.toString=function(){var e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e="".concat(e,": ").concat(this.message)),e},s.cause=function(e){return o.assertError(e),o.isError(e._cause)?e._cause:null},s.fullStack=function(e){o.assertError(e);var t=s.cause(e);return t?"".concat(e.stack,"\ncaused by: ").concat(s.fullStack(t)):e.stack},s.info=function(e){o.assertError(e);var t={},n=s.cause(e);return n&&Object.assign(t,s.info(n)),e._info&&Object.assign(t,e._info),t}},4763:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseArguments=void 0;var o=n(129);t.parseArguments=function(e){var t,n="";if(0===e.length)t={};else if(o.isError(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&"object"===r(e[0]))t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else{if("string"!=typeof e[0])throw new Error("Invalid arguments passed to Layerr");t={},n=n=e.join(" ")||""}return{options:t,shortMessage:n}}},8899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9842: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)}var n=1e3,r=60*n,o=60*r,i=24*o;function s(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var c,u,l=t(e);if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(c=e,(u=Math.abs(c))>=i?s(c,u,i,"day"):u>=o?s(c,u,o,"hour"):u>=r?s(c,u,r,"minute"):u>=n?s(c,u,n,"second"):c+" ms"):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1562:function(e,t,n){var r,o,i,s;function a(e){return a="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},a(e)}o="Promise",s=function(){"use strict";var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function s(e){var t,n=a(e);return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function c(){for(var e=0;e0&&i(c,n))}catch(e){f.call(new p(n),e)}}}function f(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(c,t))}function d(e,t,n,r){for(var o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4356:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;e--)n=p(t)+n;return n}function f(e,t){if(isNaN(e))throw new o.Layerr({info:r({code:"ENC_TIME_NAN"},c)},"Time must be a number: "+e);if(e>a)throw new o.Layerr({info:r({code:"ENC_TIME_SIZE_EXCEED"},c)},"Cannot encode a time larger than "+a+": "+e);if(e<0)throw new o.Layerr({info:r({code:"ENC_TIME_NEG"},c)},"Time must be positive: "+e);if(!1===Number.isInteger(e))throw new o.Layerr({info:r({code:"ENC_TIME_TYPE"},c)},"Time must be an integer: "+e);for(var n,u="",l=t;l>0;l--)u=i.charAt(n=e%s)+u,e=(e-n)/s;return u}function d(e){for(var t,n,s=void 0,a=e.length,u=e;!s&&a-- >=0;){if(t=u[a],-1===(n=i.indexOf(t)))throw new o.Layerr({info:r({code:"B32_INC_ENC"},c)},"Incorrectly encoded string");31!==n?s=h(u,a,i[n+1]):u=h(u,a,i[0])}if("string"==typeof s)return s;throw new o.Layerr({info:r({code:"B32_INC_INVALID"},c)},"Failed incrementing string")}function p(e){var t=Math.floor(e()*s);return t===s&&(t=31),i.charAt(t)}function h(e,t,n){return t>e.length-1?e:e.substr(0,t)+n+e.substr(t+1)}t.decodeTime=function(e){if(26!==e.length)throw new o.Layerr({info:r({code:"DEC_TIME_MALFORMED"},c)},"Malformed ULID");var t=e.substr(0,10).split("").reverse().reduce((function(e,t,n){var a=i.indexOf(t);if(-1===a)throw new o.Layerr({info:r({code:"DEC_TIME_CHAR"},c)},"Time decode error: Invalid character: "+t);return e+a*Math.pow(s,n)}),0);if(t>a)throw new o.Layerr({info:r({code:"DEC_TIME_CHAR"},c)},"Malformed ULID: timestamp too large: "+t);return t},t.detectPRNG=u,t.encodeRandom=l,t.encodeTime=f,t.incrementBase32=d,t.monotonicFactory=function(e){var t,n=e||u(),r=0;return function(e){var o=isNaN(e)?Date.now():e;if(o<=r){var i=t=d(t);return f(r,10)+i}r=o;var s=t=l(16,n);return f(o,10)+s}},t.randomChar=p,t.replaceCharAt=h,t.ulid=function(e,t){var n=t||u();return f(isNaN(e)?Date.now():e,10)+l(16,n)}},1740:()=>{}},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}(()=>{"use strict";var e="ld_session_origin",t="ld_session_id";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=[];Array.isArray(e.ldanalytics)&&(t=e.ldanalytics);try{Object.defineProperty(e,"ldanalytics",{value:t})}catch(e){}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.ldanalytics,n=t.push.bind(t),r=t.unshift.bind(t),o=function(){setTimeout((function(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.ldanalytics.splice(0,1/0).forEach((function(t){try{t(e.Leadoo.Analytics)}catch(e){console.error(e)}}))}(e)}),0)};t.push=function(){n.apply(void 0,arguments),o()},t.unshift=function(){r.apply(void 0,arguments),o()},o()}var i=n(5764);function s(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)||function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;){var r=s(t.replace(/^[?&]/,"").split(/^([^=]+)(=)([^&]*)/),5),o=r[1],i=r[3],a=r[4];t=void 0===a?"":a,o&&(n[decodeURIComponent(o)]=decodeURIComponent(i))}return n}n(5990),Object.freeze({}),Function.prototype.call.bind(Object.prototype.toString),n(1562),n(1562);var l,f,d,p,h,y,v,g,m=function(e,t){return e===t},b=function(){},w={};function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return function(e){try{return e.localStorage.setItem("t","t"),e.localStorage.removeItem("t"),!0}catch(e){return!1}}(e)?e.localStorage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={clear:function(){for(var n in e)e.hasOwnProperty(n)&&t.removeItem(n)},getItem:function(t){return void 0!==e[t]?e[t]:null},removeItem:function(t){e[t]=null,delete e[t]},setItem:function(t,n){e[t]="".concat(n)}};return t}()}!function(e){e[e.Indefinite=1]="Indefinite",e[e.Schedule=0]="Schedule"}(l||(l={})),function(e){e[e.Auto=0]="Auto",e[e.Manual=1]="Manual"}(f||(f={})),function(e){e[e.Ended=3]="Ended",e[e.Launched=1]="Launched",e[e.Paused=2]="Paused"}(d||(d={})),function(e){e[e.BestConversionRate=0]="BestConversionRate",e[e.BestEngagementRate=1]="BestEngagementRate",e[e.MostLeadConversions=2]="MostLeadConversions"}(p||(p={})),function(e){e[e.Document=3]="Document",e[e.Internal=0]="Internal",e[e.URL=2]="URL",e[e.Window=1]="Window"}(h||(h={})),function(e){e[e.AdvancedAnalytics=16]="AdvancedAnalytics",e[e.Automation=17]="Automation",e[e.BannerBots=14]="BannerBots",e[e.CallbackBot=6]="CallbackBot",e[e.ChatBot=3]="ChatBot",e[e.CTABot=19]="CTABot",e[e.CustomerProfiles=13]="CustomerProfiles",e[e.Feedback=8]="Feedback",e[e.InPageBot=4]="InPageBot",e[e.Integrations=18]="Integrations",e[e.LiveChat=5]="LiveChat",e[e.Media=7]="Media",e[e.Messaging=11]="Messaging",e[e.OrganizationProfiles=15]="OrganizationProfiles",e[e.Page=1]="Page",e[e.Remarketing=10]="Remarketing",e[e.Video=2]="Video",e[e.VisualBot=9]="VisualBot"}(y||(y={})),function(e){e.FullName="",e.FirstName="first",e.LastName="last",e.Separate="separate"}(v||(v={})),function(e){e[e.AdvancedCalculatorResult=33]="AdvancedCalculatorResult",e[e.AdvancedRouterResult=34]="AdvancedRouterResult",e[e.AttachmentPrompt=44]="AttachmentPrompt",e[e.AttachmentPromptSingle=43]="AttachmentPromptSingle",e[e.BookingCalendar=35]="BookingCalendar",e[e.CalculatorResult=31]="CalculatorResult",e[e.Calendar=22]="Calendar",e[e.CompanyPrompt=3]="CompanyPrompt",e[e.ContactForm=9]="ContactForm",e[e.CTAForm=47]="CTAForm",e[e.CustomForm=45]="CustomForm",e[e.Dropdown=15]="Dropdown",e[e.EmailPrompt=2]="EmailPrompt",e[e.LiveChat=99]="LiveChat",e[e.LocationForm=6]="LocationForm",e[e.LookupDropdown=1015]="LookupDropdown",e[e.LookupMultipleChoice=1014]="LookupMultipleChoice",e[e.LookupSingleChoice=1011]="LookupSingleChoice",e[e.LookupSingleChoiceURL=1012]="LookupSingleChoiceURL",e[e.LookupQuery=36]="LookupQuery",e[e.MultipleChoice=14]="MultipleChoice",e[e.NamePrompt=1]="NamePrompt",e[e.TextPrompt=5]="TextPrompt",e[e.PhonePrompt=4]="PhonePrompt",e[e.RangeSelector=21]="RangeSelector",e[e.Say=0]="Say",e[e.SingleChoice=11]="SingleChoice",e[e.SingleChoiceURL=12]="SingleChoiceURL"}(g||(g={}));var E={compTracking:!1,gtm:null,gtmDL:"dataLayer",gtmRun:!1,gtmWin:window,pageVisitID:null,pageVisitLock:{sent:!1,ts:null,url:null},tracking:{company:null,user:null}};function S(){return E}function C(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return O(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)?O(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}},258:function(e,t,n){var r=n(455);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);var n=[],o=function(e,r,o,i){if(0!==n.length&&t.colonNotation||0!==e||t.colonNotation&&"m"===o){var s,a,c;if(i=(i||e||"0").toString(),t.colonNotation){s=n.length>0?":":"",a="";var u=i.includes(".")?i.split(".")[0].length:i.length,l=n.length>0?2:1;i="0".repeat(Math.max(0,l-u))+i}else s="",a=t.verbose?" "+(c=r,1===e?c:"".concat(c,"s")):o;n.push(s+i+a)}},i=r(e);if(o(Math.trunc(i.days/365),"year","y"),o(i.days%365,"day","d"),o(i.hours,"hour","h"),o(i.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(o(i.seconds,"second","s"),t.formatSubMilliseconds)o(i.milliseconds,"millisecond","ms"),o(i.microseconds,"microsecond","µs"),o(i.nanoseconds,"nanosecond","ns");else{var s=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,a="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,c=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):c;o(Number.parseFloat(u,10),"millisecond","ms",u)}else{var l=function(e,t){var n=Math.floor(e*Math.pow(10,t)+1e-7);return(Math.round(n)/Math.pow(10,t)).toFixed(t)}(e/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),f=t.keepDecimalsOnWholeSeconds?l:l.replace(/\.0+$/,"");o(Number.parseFloat(f,10),"second","s",f)}if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return n[0];if("number"==typeof t.unitCount){var d=t.colonNotation?"":" ";return n.slice(0,Math.max(t.unitCount,1)).join(d)}return t.colonNotation?n.join(""):n.join(" ")}},196:function(e){var t=/(\*|\?)/g;function n(e,t){this.text=e=e||"",this.hasWild=e.indexOf("*")>=0,this.separator=t,this.parts=e.split(t).map(this.classifyPart.bind(this))}n.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t=0||e.indexOf("?")>=0?new RegExp(e.replace(t,".$1")):e},e.exports=function(e,t,r){var o=new n(e,r||/[\/\.]/);return void 0!==t?o.match(t):o}},246:function(){}},I={};function P(e){var t=I[e];if(void 0!==t)return t.exports;var n=I[e]={exports:{}};return T[e](n,n.exports,P),n.exports}P.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return P.d(t,{a:t}),t},P.d=function(e,t){for(var n in t)P.o(t,n)&&!P.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},P.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":L(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==("undefined"==typeof window?"undefined":L(window)))return window}}(),P.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var k={};!function(){P.d(k,{xN:function(){return b},Iq:function(){return p},cM:function(){return w},bp:function(){return h},Y9:function(){return S}});var e=P(196),t=P.n(e),n=P(258),r=P.n(n),o=["#a0937d","#a7c5eb","#bdd2b6","#cc7351","#d35d6e","#e08f62","#fbc6a4","#f4a9a8","#ce97b0","#5aa469","#70af85","#8b5e83","#8f4068","#9dad7f","#94d0cc","#949cdf"],i=null;function s(){i||function(e){for(var t=e.length-1;t>0;t-=1){var n=Math.floor(Math.random()*(t+1)),r=[e[n],e[t]];e[t]=r[0],e[n]=r[1]}}(i=[].concat(o));var e=i.shift();return i.push(e),e}var a=P(246),c=P.n(a);function u(){if("undefined"!=typeof window)return window;if(void 0!==P.g)return P.g;if("undefined"!=typeof self)return self;throw new Error("Unable to determine global context")}function l(e,t){return e.map((function(e){return Array.isArray(e)?"[".concat(l(e,", "),"]"):e&&"object"==L(e)&&"function"==typeof e.toString||"function"==typeof e?e.toString():"".concat(e)})).join(t)}function f(){var e;(e=console).log.apply(e,arguments)}var d=f;function p(){return d}function h(e){d=e||f}var y=null,v={},g={},m={};function b(e){if(!E(e))return function(){};var t=g[e]=g[e]||s();return function(){for(var n=arguments.length,r=new Array(n),o=0;o1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:S();if(_(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window)){var t=Date.now();e.pageVisitID=(0,i.ulid)(t),F("page visit ID: ".concat(e.pageVisitID))}}function J(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,r=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q,o=_(n),i=o.getItem(t);if(!i)return null;var s=G(i.split(":"),2),a=s[0],c=s[1];return c&&Date.now()-Number(c)>r?(F("Session ID lock expired"),o.removeItem(t),o.removeItem(e),o.removeItem(M),null):a}(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:q),o=function(){var e=Y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window);if(!e)return null;var t=e.match(/^https?:\/\/([^/]+)($|\/)/i);return t?t[1]:0}(n),s=_(n),a=s.getItem(e);return(!r||a&&o&&a!==o)&&(r=(0,i.ulid)(),s.setItem(t,r),s.setItem(e,o)),s.setItem(t,"".concat(r,":").concat(Date.now())),r}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=[e.location.href,e.document.URL,e.document.referrer];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{return e.self!==e.top}catch(e){return!0}}(e)){var n=G(t.splice(2,1),1)[0];t.unshift(n)}return t.find((function(e){return e&&e.trim().length>0}))||null}var Q=n(7323);function z(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window).crypto,n=(new TextEncoder).encode("".concat(e).toLowerCase());return t.subtle.digest("SHA-256",n).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return function(e,t){for(var n="".concat(e);n.lengthe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:window;return Object.assign(Object.assign({},ye(e)),{sessionID:this._userTrackingEnabled||this._companyTrackingEnabled?J(e):null})}function ye(){var e=_(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window),t={ref:null,ts:0,utm:null};if(e)try{var n=e.getItem(M);if(!n)return t;var r=n&&JSON.parse(atob(n));if(r.ts){if(Date.now()-r.ts>36e5)return e.removeItem(M),t}else r.ts=Date.now(),e.setItem(M,btoa(JSON.stringify(r)));return r}catch(e){}return t}function ve(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,o=null===(t=R())||void 0===t?void 0:t.envMemoryMode,i=null!==(n=null==e?void 0:e.getTrackingStatus())&&void 0!==n?n:null;if(o!==le.StoreNever&&(o!==le.StoreAfterTracking||(null==i?void 0:i.user)||(null==i?void 0:i.company))){var s=_(r),a=Y(r),c=Object.assign({ref:null,ts:Date.now(),utm:null},ye(r)),u=new URL(a),l=r.document.referrer,f={campaign:u.searchParams.get("utm_campaign"),content:u.searchParams.get("utm_content"),medium:u.searchParams.get("utm_medium"),source:u.searchParams.get("utm_source"),term:u.searchParams.get("utm_term")},d=Boolean(l)&&new URL(l).hostname!==u.hostname&&c.ref!==l;(d||function(e,t){return!(!e||!t)&&!!Object.keys(e).some((function(t){return e[t]}))&&[].concat(de(Object.keys(e)),de(Object.keys(t))).some((function(n){return e[n]!==t[n]}))}(f,c.utm||{}))&&(c.ts=Date.now(),c.ref=d?l:null,c.utm=f),s.setItem(M,btoa(JSON.stringify(c)))}else F("Skipping session source initialisation")}var ge=n(1562);function me(e){return me="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},me(e)}function be(){be=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,s=Object.create(i.prototype),a=new O(o||[]);return r(s,"_invoke",{value:_(e,n,a)}),s}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function d(){}function p(){}function h(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(L([])));g&&g!==t&&n.call(g,i)&&(y=g);var m=h.prototype=d.prototype=Object.create(y);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,s,a){var c=l(e[r],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==me(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return o("throw",e,s,a)}))}a(c.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=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),C(n),f}},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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function we(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)||_e(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 _e(e,t){if(e){if("string"==typeof e)return Ee(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)?Ee(e,t):void 0}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:1500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=n.Leadoo.Analytics.wseThrottle||{},o=!0;return r[e]?Date.now()-r[e]>t?r[e]=Date.now():(r[e]=Date.now(),o=!1):r[e]=Date.now(),n.Leadoo.Analytics.wseThrottle=r,o}function Le(e){if("string"!=typeof e.tagName)return"";var t=[];return function n(r){if(r&&"string"==typeof r.tagName&&"BODY"!==r.tagName){var o=r.getAttribute("id");if(o)return void t.push("#".concat(o));var i=r.tagName.toLowerCase(),s=r.getAttribute("name");if(s&&(i+='[name="'.concat(s,'"]')),r.parentElement.children.length>1){var a=Array.from(r.parentElement.children).indexOf(r);i+=":nth-child(".concat(a+1,")")}else"string"==typeof r.className&&r.className.length>0&&(i+=".".concat(r.className.replace(/\s+/g,".")));if(t.push(i),t.length>3){var c=document.querySelectorAll([].concat(t).reverse().join(" > "));if(1===c.length&&c[0]===e)return}n(r.parentElement)}}(e),t.reverse().join(" > ")}function Te(e,t){return{content:null,event_type:e,id:(0,i.ulid)(),payload:null,ref:Le(t)}}function Ie(){var e=R().wseTrackingMode;return e===ue.FullTracking||e===ue.PartialTracking}function Pe(e){var t=this;e.isSendingEnabled()&&Ie()&&(Date.now()-(Ce||0)>3e3&&(Ce=null),Ce||function(e,t){return Se(this,void 0,void 0,be().mark((function e(){var n,r,o;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=localStorage.getItem(N)){e.next=3;break}return e.abrupt("return",0);case 3:if(r=JSON.parse(n),o=r.pop(),!t){e.next=8;break}return e.next=8,t(o);case 8:return localStorage.setItem(N,JSON.stringify(r)),e.abrupt("return",r.length);case 10:case"end":return e.stop()}}),e)})))}(0,(function(n){return Se(t,void 0,void 0,be().mark((function t(){var r;return be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}return r=Object.assign({},n),t.next=4,e.trackWebsiteEvent(n.event_type,r);case 4:case"end":return t.stop()}}),t)})))})).then((function(t){t>0&&setTimeout((function(){return Pe(e)})),Ce=null})).catch((function(e){Ce=null,F("WSE error: ".concat(e.message))})))}function ke(e,t){var n=JSON.parse(localStorage.getItem(N)||"[]");n.push(t),localStorage.setItem(N,JSON.stringify(n)),Pe(e)}function je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return!!e&&(!!e.matches(t)||!!(e.parentElement&&n<5&&"BODY"!==e.parentElement.tagName)&&je(e.parentElement,t,n+1))}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;Ie()&&(F("Subscribing to website events"),t.document.addEventListener("click",(function(t){var n=t.target,r=!1,o=Te(null,n);Oe(o.ref)&&(je(n,"a")?(o.event_type=ce.LinkClick,o.payload={href:n.getAttribute("href")},o.content=n.textContent):je(n,"button")?(o.event_type=ce.ButtonClick,o.content=n.textContent):r=!0,r||ke(e,o))}),{capture:!0,passive:!0}),t.document.addEventListener("submit",(function(t){var n,r=Te(ce.FormSubmit,t.target);Oe(r.ref)&&((null===(n=R())||void 0===n?void 0:n.wseTrackingMode)===ue.FullTracking&&(r.payload=function(e){var t,n=Array.from(e.querySelectorAll("input")).reduce((function(e,t){var n,r;return("password"===t.getAttribute("type")||(null===(r=null===(n=t.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())||void 0===r?void 0:r.includes("passw")))&&e.add(t.getAttribute("name")),e}),new Set),r={},o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_e(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}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 o,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}(new FormData(e).entries());try{for(o.s();!(t=o.n()).done;){var i=we(t.value,2),s=i[0],a=i[1];n.has(s)||(r[s]=a)}}catch(e){o.e(e)}finally{o.f()}return r}(t.target)),ke(e,r))}),{capture:!0,passive:!0}),Pe(e))}var Fe=n(1562);function xe(e){return xe="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},xe(e)}function Re(e,t){if(e){if("string"==typeof e)return Me(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)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}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 o,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}(n);try{var s=function(){var t=r.value;o=o.then((function(){return F("sending queued analytics event: ".concat(t.name)),(t.wseProperties?e.api.trackWebsiteEvent(t.name,t.wseProperties):e.api.trackEvent(t.name,t.properties)).catch((function(e){F("failed sending queued analytics event: ".concat(t.name,": ").concat(e.message)),console.error(e)}))}))};for(i.s();!(r=i.n()).done;)s()}catch(e){i.e(e)}finally{i.f()}o.then((function(){return Pe(e.api)})).then((function(){F("analytics queue flush complete")}))}}function Ge(e){F("company tracking: ".concat(e)),this._companyTrackingEnabled=e}function He(e){F("user tracking: ".concat(e)),this._userTrackingEnabled=e}function qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S(),n=new Q.ChannelQueue,r={_flushAnalyticsEventQueue:Ue,_setCompanyTrackingEnabled:Ge,_setUserTrackingEnabled:He,getCompanyID:ee,getCompanyInfo:te,getDeviceID:oe,getSessionSource:he,getTrackingStatus:We,insertGTMScript:Ye,isSendingEnabled:Qe,onOrgID:ze,onTrackingID:$e,pageVisit:Ke,sendGTMEvent:Xe,setGTMCode:Ze,setGTMWindow:et,toggleCompanyTracking:rt,toggleTracking:nt,toggleTransfer:tt,toggleUserTracking:ot,trackCompany:ct,trackEvent:it,trackGTMEvent:at,trackID:ut,trackWebsiteEvent:st},o=e,i={_companyTrackingEnabled:Boolean(t.tracking.company),_orgIdCBs:[],_queue:n,_queuedAnalyticsEvents:[],_sendingEnabled:!0,_trackedCompany:null,_trackedUser:null,_trackingCBs:[],_userTrackingEnabled:Boolean(t.tracking.user),api:o,globals:t};return Object.defineProperties(o,Object.keys(r).reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e){if("object"!==xe(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===xe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,{value:r[t].bind(i)}))}),{})),o}function We(){return{company:this._companyTrackingEnabled,user:this._userTrackingEnabled}}function Je(e,t,n){var r=this,o=this.globals.pageVisitID;return F("track event: ".concat(e," (tracking: user=").concat(this._userTrackingEnabled,", company=").concat(this._companyTrackingEnabled,")")),Fe.all([this._userTrackingEnabled?ut.call(this):Fe.resolve(),this._companyTrackingEnabled?ct.call(this):Fe.resolve()]).then((function(){return r._queue.channel("event").enqueue((function(){if(!r._userTrackingEnabled&&!r._companyTrackingEnabled)return F("event sending blocked: queuing event: ".concat(e)),void r._queuedAnalyticsEvents.push({name:e,properties:t,wseProperties:n});var i=R(),s=i.companyCode,a=i.companyID,c=J(),u=Fe.resolve();return r._sendingEnabled?u.then((function(){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R(),o=n.tracking,i=void 0!==o&&o,s=n._sendRequest,a=void 0===s?K.sendRequest:s,c=n.isWSE,u=new URL(c?"/wse/t":"/t",r.apiHost);return F("send event: ".concat(e," (").concat(JSON.stringify(t),")")),a({body:Object.assign(Object.assign({},t),{event:e}),headers:{"X-Leadoo-Tracking":i.toString()},method:"POST",url:u.toString()})}(e,Object.assign(Object.assign(Object.assign({},t||{}),n||{}),{company_code:s,company_id:a,device_id:oe.call(r),organization_id:ee(),page_visit_id:o,session_id:c,timestamp:Date.now()}),{isWSE:!!n,tracking:r._userTrackingEnabled||r._companyTrackingEnabled})})).then((function(){F("event tracked: ".concat(e," (tracking: user=").concat(r._userTrackingEnabled,", company=").concat(r._companyTrackingEnabled,")"))})):u}))})).then((function(){}))}function Ye(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S();return se||(e.gtmRun=!0,se=new fe((function(t){var n=e.gtm,r=e.gtmWin;if(F("insert GTM: ".concat(n)),!n)return F("skipping GTM insert for empty tag code"),t(!1);var o=r.document.createElement("script");o.src="https://www.googletagmanager.com/gtm.js?id=".concat(n),F("loading GTM script: ".concat(o.src)),o.addEventListener("load",(function(){F("GTM script loaded"),setTimeout((function(){return t(!0)}),100)}),!1),r.document.body.appendChild(o)})))}()}function Qe(){return this._sendingEnabled}function ze(e){var t=this,n=ee();return n?(e(n,te()),Ne):(this._orgIdCBs.push(e),function(){var n=t._orgIdCBs.indexOf(e);n>=0&&t._orgIdCBs.splice(n,1)})}function $e(e){var t=this;return!0===this._userTrackingEnabled?(setTimeout((function(){e(oe.call(t))}),0),Ne):(this._trackingCBs.push(e),function(){var n=t._trackingCBs.indexOf(e);n>=0&&t._trackingCBs.splice(n,1)})}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=Date.now(),n=Y(e);if(this.globals.pageVisitLock.sent&&(t-this.globals.pageVisitLock.ts<200||n===this.globals.pageVisitLock.url))return Fe.resolve();!this.globals.pageVisitLock.sent&&this.globals.pageVisitID||W(this.globals,e);var r=function(){var e=c(Y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window));if(!e)return null;var t=u(e),n=t.utm_source,r=void 0===n?"":n,o=t.utm_medium,i=void 0===o?"":o,s=t.utm_campaign,a=void 0===s?"":s,l=t.utm_term,f=void 0===l?"":l,d=t.utm_content;return{campaign:a,content:void 0===d?"":d,medium:i,source:r,term:f}}(e),o=function(){var e=c(Y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window));return e&&u(e).email_token||null}(e),i=e.document.referrer;return this.globals.pageVisitLock={sent:!0,ts:t,url:n},this.api.trackEvent("page_visit",{email_token:o,page_url:n,referrer:i,utm:r})}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.globals,o=r.gtmDL,i=r.gtmWin;return F("track GTM event: ".concat(e)),Fe.resolve().then((function(){var r=n||o;F('tracking GTM event "'.concat(e,'" on dataLayer: ').concat(r));var s=i[r]=i[r]||[];if("function"!=typeof(null==s?void 0:s.push))throw new Error("GTM dataLayer not available: ".concat(r));var a=Object.assign({event:e},t);return s.push(a),!0})).catch((function(e){return console.error(e),F("failed tracking GTM event: ".concat(e.message)),!1}))}function Ze(e){if(this.globals.gtmRun)throw new Error("Cannot set code: GTM already initialised");F("set GTM code (API): ".concat(e)),this.globals.gtm=e}function et(e){if(this.globals.gtmRun)throw new Error("Cannot set window: GTM already initialised");this.globals.gtmWin=e}function tt(e){if("boolean"!=typeof e)throw new Error("enabled must be a boolean");this._sendingEnabled=e}function nt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("boolean"!=typeof e)throw new Error("Failed toggling tracking: enabled is a required parameter");var n=this.api.toggleUserTracking(e,t),r=this.api.toggleCompanyTracking(e,t);return n&&r}function rt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.globals.tracking.company;return t&&(!1===n&&e&&!this._companyTrackingEnabled||!0===n&&!e&&this._companyTrackingEnabled)?(F("company tracking toggle prevented: ".concat(JSON.stringify({trackingEnabled:this._companyTrackingEnabled,trackingSetting:n}))),this._companyTrackingEnabled):(this._companyTrackingEnabled=Boolean(e),F("toggled company tracking: ".concat(JSON.stringify({obeyTrackingSetting:t,trackingEnabled:this._companyTrackingEnabled,trackingSetting:n}))),this._companyTrackingEnabled&&(ve(this.api),this.api._flushAnalyticsEventQueue.call(this)),this._companyTrackingEnabled)}function ot(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.globals.tracking.user;return t&&(!1===n&&e&&!this._userTrackingEnabled||!0===n&&!e&&this._userTrackingEnabled)?(F("user tracking toggle prevented: ".concat(JSON.stringify({trackingEnabled:this._userTrackingEnabled,trackingSetting:n}))),this._userTrackingEnabled):(this._userTrackingEnabled=Boolean(e),F("toggled user tracking: ".concat(JSON.stringify({obeyTrackingSetting:t,trackingEnabled:this._userTrackingEnabled,trackingSetting:n}))),this._userTrackingEnabled&&(ve(this.api),this.api._flushAnalyticsEventQueue.call(this)),this._userTrackingEnabled)}function it(e,t){var n=R().companyID;if(-1===Ve.indexOf(e)){var r=t.bot_code,o=t.bot_id,i=t.company_id,s=t.question_id;if(ie("string"==typeof r&&r,Be("bot_code")),ie("number"==typeof o&&o>0,Be("bot_id")),ie("number"==typeof s&&s>0||void 0===s,De("question_id")),n!==i)throw new Error("Invalid company ID provided: ".concat(i))}return Je.call(this,e,t,null)}function st(e,t){return ie(e.startsWith("wse:"),De("eventName")),Je.call(this,e,null,t)}function at(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=Object.assign(Object.assign({},o),{label:r,text:n});return null!==t&&(s.category=t),this.api.sendGTMEvent(e,s,i)}function ct(){var e=this;return this._queue.channel("event").enqueue((function(){if(e._companyTrackingEnabled){var t=R().companyCode;if(null===e._trackedCompany)return F("track company: ".concat(t)),Object.defineProperty(e,"_trackedCompany",{value:!0}),(ee()?Fe.resolve(null):(n=t,function(e){var t,n={"Content-Type":"application/json"},r=null!==(t=new URLSearchParams(window.location.search).get("ld-test-setup-id"))&&void 0!==t?t:localStorage.getItem("ld-test-setup-id");return r&&(n["X-Test-Setup-ID"]=r),(0,K.sendRequest)({method:"GET",url:"".concat("".concat(R().iapiURL,"/company/"),"?companyToken=").concat(e),headers:n}).then((function(e){return e.body}))}(n).then((function(e){var t,n;if(e&&e.companyId)return t=e.companyId,n=e.i,sessionStorage&&t&&(sessionStorage.setItem(D,"".concat(t)),sessionStorage.setItem(B,JSON.stringify(n))),e.companyId})).catch((function(){return null})))).then((function(){var t=te(),n=ee();if(e._orgIdCBs.forEach((function(e){try{e(n,t)}catch(e){}})),t)return e.api.trackGTMEvent("NEW-CSP",null,void 0,void 0,{company_name:t.n,headcount:t.h,industry:t.i,revenue:t.r}).then(Ne)}))}else F("company tracking prevented: not enabled");var n}))}function ut(){var e=this;return this._queue.channel("event").enqueue((function(){if(e._userTrackingEnabled){if(null===e._trackedUser)return Object.defineProperty(e,"_trackedUser",{value:!0}),F("track user"),function(){var e,t=!1;return(e=Z(),e?X(e):X()).then((function(e){if(e&&e.headers){var n=e.headers.etag;return n?(t=!0,re(n)):void 0}})).then((function(){return function(){var e=Z();return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator,n=[t.userAgent,t.vendor,t.platform,t.product,t.language,Object.values(t.plugins).map((function(e){return e.name})).sort((function(e,t){return e>t?1:-1})).join("-"),t.cookieEnabled.toString(),t.userLanguage||"not-ie",t.language||"is-ie",e.screen.height.toString(),e.screen.width.toString(),e.devicePixelRatio.toString()];return $.all([]).then((function(e){return n.concat(e).filter(Boolean).map((function(e){return z(e)}))})).then((function(e){return $.all(e)}))}().then((function(t){return function(e,t){return z(e.join("-")).then((function(n){var r={body:JSON.stringify({id:t,key:n,params:e}),headers:{"Content-Type":"application/json"},method:"POST"};return(0,K.sendRequest)(Object.assign(Object.assign({},r),{url:"".concat(U(),"/")})).then((function(e){return e.body}))}))}(t,e)})).catch((function(){return{id:null}}))}().then((function(e){if(!Z()&&e.id&&re(e.id),!t)return X(e.id).catch((function(){return null}))}))}))}().then((function(){var t=oe.call(e);F("track ID: got device ID: ".concat(t)),e._trackingCBs.forEach((function(e){try{e(t)}catch(e){}}))}))}else F("user tracking prevented: not enabled")}))}var lt=n(6291);var ft,dt,pt,ht,yt=n(5419);function vt(e){ft||(ft=yt("leadoo:consent")),ft(e)}!function(e){e.NotPresent="not-present",e.PresentNotReady="not-ready",e.Ready="ready"}(dt||(dt={})),(ht=pt||(pt={})).AddListener="addEventListener",ht.Ping="ping",ht.RemoveListener="removeEventListener";var gt=function(){};function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=dt.NotPresent;vt("watch cmp status: started");var o=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callIfUnchanged,i=void 0!==o&&o,s=r.compare,a=void 0===s?m:s,c=r.onStop,u=void 0===c?b:c,l=r.period,f=void 0===l?200:l,d=r.stop,p=void 0===d?5:d,h=w,y=0,v=!1,g=setTimeout((function r(){if(!v){var o=e();if(h===w)h=o,t(o);else if(a(o,h)){if(y+=1,i&&t(o),y>=p)return void _()}else y=0,h=o,t(o);n=setTimeout(r,f)}}),0),_=function(){clearTimeout(g),clearTimeout(n),v||(v=!0,u())};return _}((function(){return r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("function"!=typeof e.__tcfapi)return dt.NotPresent;var t=!1;return e.__tcfapi(pt.Ping,2,(function(e){t=!!e.cmpLoaded,vt("cmp-status response: cmpLoaded=".concat(e.cmpLoaded,", gdprApplies=").concat(e.gdprApplies))})),t?dt.Ready:dt.PresentNotReady}(n)}),(function(t){vt("cmp status changed: ".concat(t)),e(t)}),{onStop:function(){vt("watch cmp status: stopped"),e(r)},period:150,stop:Math.max(Math.ceil(t/150),1)});return o}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;vt("watch consent string: started");var n=gt,r=!0,o=function(){n=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,r=!0,o=function(){vt("remove cmp string listener"),n.__tcfapi(pt.RemoveListener,2,(function(e){vt("remove cmp string listener success: ".concat(e))}),t)};return n.__tcfapi(pt.AddListener,2,(function(n,i){var s,a;if(vt("cmp string listener event: eventStatus=".concat(n.eventStatus,", success=").concat(i," (tcString length=").concat(null!==(s=null==n||null===(a=n.tcString)||void 0===a?void 0:a.length)&&void 0!==s?s:null)),i){if(n.listenerId&&(t=n.listenerId),!r)return vt("cmp string lister inactive, removing"),void o();"tcloaded"!==n.eventStatus&&"cmpuishown"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||!n.tcString||"string"!=typeof n.tcString||(vt("cmp string detected: ".concat(n.tcString)),e(n.tcString))}})),function(){r=!1,t&&(o(),t=null)}}((function(t){e(t)}),t)},i=mt((function(e){r&&(vt("consent string watcher status change: ".concat(e)),e===dt.Ready&&(i(),o()))}),void 0,t);return function(){vt("watch consent string: stop"),r=!1,i(),n()}}function wt(e,t,n){return bt((function(r){var o=function(e,t,n){if(!e)return!1;var r=lt.TCString.decode(e),o=r.vendorConsents.has(t),i=0===n.length||function(e,t){return t.every((function(t){return e.purposeConsents.has(t)}))}(r,n);return o&&i}(r,e,t);n(o)}),arguments.length>3&&void 0!==arguments[3]?arguments[3]:window)}var _t,Et=n(1562);!function(e){e.Consent="consent",e.NoConsent="no-consent",e.NoCMP="no-cmp"}(_t||(_t={}));var St=[1,2,3,4,5,9];var Ct=n(1562);function Ot(e){console.error(e),F("error: ".concat(e.message))}window.Leadoo&&window.Leadoo.init&&-1!==window.Leadoo.init.indexOf("analytics")?console.warn("Not booting analytics: Multiple analytics scripts detected"):function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,n=S();return t.Leadoo||(t.Leadoo={}),Array.isArray(t.Leadoo.init)||(t.Leadoo.init=[]),t.Leadoo.init.push("analytics"),F("booting analytics"),Ct.resolve().then((function(){Object.keys(x).forEach((function(e){if(/\[LD:/.test(x[e]))throw new Error("Config macro '".concat(e,"' was not set"))}));var e=R(),t=e.gtm,r=e.gtmDL,o=e.scpSetting,i=e.spOrgTrackingOverride;if(n.gtm=t,r&&(n.gtmDL=r),F("configured GTM: ".concat(n.gtm," (dataLayer: ").concat(n.gtmDL,")")),o===ae.Always)n.tracking={company:!0,user:!0},F("scp: always");else if(o===ae.Never)n.tracking={company:i,user:!1},F("scp: never");else{if(o===ae.CMP)return F("scp: cmp"),F("waiting for cmp to respond"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3;return new Et((function(t){var n=mt((function(e){F("cmp status change: ".concat(e)),e===dt.Ready&&(clearTimeout(o),n())}),e),r=wt(994,St,(function(e){F("cmp consent: ".concat(e)),i(),t(e?_t.Consent:_t.NoConsent)})),o=setTimeout((function(){F("cmp wait has timed-out"),i(),t(_t.NoCMP)}),e+50),i=function(){clearTimeout(o),r(),n()}}))}().then((function(e){F("cmp consent result: ".concat(e)),e===_t.Consent||e===_t.NoCMP?n.tracking={company:!0,user:!0}:n.tracking={company:!1,user:!0}})).then((function(){F("cmp process completed with tracking: user=".concat(n.tracking.user,", company=").concat(n.tracking.company))}));F("scp: consent")}})).then((function(){return W(n,t)})).then((function(){return ve(null,t)})).then((function(){Ae(e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return t.Leadoo||(t.Leadoo={}),t.Leadoo.Analytics||(t.Leadoo.Analytics={}),qe(t.Leadoo.Analytics,e)}(n,t),t)})).then((function(){var t=R(),r=t.compTracking,o=t.companyCode,i=t.scpSetting,s=t.spOrgTrackingOverride;if(i===ae.CMP){var a=!0===n.tracking.user;!function(e){wt(994,St,e)}((function(t){t&&!0!==n.tracking.user?(F("cmp consent updated: tracking enabled"),e._setCompanyTrackingEnabled(!0),e._setUserTrackingEnabled(!0),a||(e.trackID().catch(Ot),a=!0),e.toggleTracking(!0)):t||!1===n.tracking.user||(F("cmp consent updated: tracking disabled"),e._setCompanyTrackingEnabled(!1),e._setUserTrackingEnabled(!1),e.toggleTracking(!1))}))}var c=[];return(r&&n.tracking.company||s)&&(F("enabled company tracking"),n.compTracking=r,c.push(e.trackCompany(o).catch(Ot))),i===ae.Always&&c.push(e.trackID().catch(Ot)),Ct.all(c)})).then((function(){r(t),o(t)}))}().catch(Ot)})()})();