nebulousgarden.com Open in urlscan Pro
2600:1901:0:4277::1  Public Scan

Submitted URL: http://nebulousgarden.com/scripts/29fd488a3/1b3f813c856c1ed97d23e970c8effa9e2.index.js
Effective URL: https://nebulousgarden.com/scripts/29fd488a3/1b3f813c856c1ed97d23e970c8effa9e2.index.js
Submission: On March 08 via api from BR — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!(function(n){var t={};function r(i){if(t[i])return t[i].exports;var e=t[i]={i:i,l:!1,exports:{}};return n[i].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=n,r.c=t,r.d=function(n,t,i){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:i})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var e in n)r.d(i,e,(function(t){return n[t]}).bind(null,e));return i},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)})([function(n,t,r){"use strict";r.r(t),r.d(t,"_reset",(function(){return dr}));var i="object";function e(n,t,r){if((r=typeof t)!==i)throw new Error("expected ".concat(i," got ").concat(r));for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}function o(n){for(var t=1;t<arguments.length&&arguments[t];t++)n=e(n,arguments[t]);return n}var u={u:"admiral",h:"A-5FF77716E231F116B17B165C-32",k:"m",P:"4dm1r11545242527",$:30,C:['webcache'],S:['googlebot','mediapartners-google','adsbot-google','facebookexternalhit','bingbot','bingpreview','googleweblight','yandex','cxensebot','duckduckbot','archive.org_bot','baiduspider','slurp'],D:['googleweblight'],T:"de-DE,de;q=0.9",A:"",I:"_awl",M:"_admrla",O:"admbenefits",R:"_alvd",N:34128000,L:0},a={B:"https://nebulousgarden.com/create/2afd488a31b3f813c856c1ed97d23e970c8effa900664985faa51b0835e2",U:"https://nebulousgarden.com/c73c29abc44/5895f322484a27ad916ebbb5988d24e8e9efb46c4d49f82c98f4ec1ea-prod.js",H:"https://nebulousgarden.com/send/21dd01b6/0350dd374f837f1c2d48ccdc1f146b6c75c1ed5e601ecb0ce8d0",F:true,W:true,V:true,G:"https://nebulousgarden.com/afa084c1ebc3f7/eea4de669069d34f39686ea33ca36130200b6ea0a9e8d4",J:"post",X:0,K:"0",Z:{'1':50,'2':25,'8':30,'512':30,'1024':0,'4096':20,'8192':25,'32768':10},Y:{'1':6,'2':4,'8':9,'512':0,'8192':4},nn:50,tn:10,rn:0,en:0,on:0,un:0,an:true,cn:"",sn:"",dn:"r",hn:"tr",vn:"s",ln:"t",wn:"e",mn:"a",pn:10,gn:"ping",bn:"https://nebulousgarden.com/2018e9b2f3/7ef874d4d1045a535722317535f8874966e60fc8d1ff8a14e4",yn:"https://nebulousgarden.com/1a8ee6c63e/e9d3e258c9e3f17f3c8580556a0ad68f895d9d0bd0341428c2",kn:25000,Pn:"https://nebulousgarden.com/files/df6e589e4cf5595afcc3b2d4406d257cbb279c89d0fa51ede8",$n:["cs"],_n:216e5,Cn:"",Sn:0,En:!1,Dn:0},c=o({},u,a);function s(n,t){return typeof n===t}function f(n){return s(n,"function")}function d(n){return s(n,"string")}function h(n){return s(n,"number")}var v=[];function l(n,t,r){for(var i=[],e=0,o=0;o<v.length;o++)v[o]&&f(v[o].func)&&(e=v[o].flag,!((c.rn&e)>0||(c.en&e)>0)||(c.on&e)>0||(function(e){try{i.push(e.func(n,t,r).catch((function(n){throw n})))}catch(n){}})(v[o]));return Promise.all(i)}var w=c.Z,m=c.Y,p=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.bids=[],this.dids=[],this.adbs=0,this.diss=0,this.hf=0,this.fbl=!1,this.fdis=!1,this.elb=!1}var t,r=n.prototype;return r.enabled=function(n){return w&&w.hasOwnProperty(n)},r.blocked=function(n,t){if(this.enabled(n)){var r=~~w[n];n&&this.bids.push(n),this.adbs+=r,t&&(this.elb=!0)}},r.disabled=function(n){var t=~~m[n];this.diss+=t,n&&this.dids.push(n)},r.blockerType=function(){return this.hasAdBlocker()?this.elb?1:2:0},r.hasAdBlocker=function(){return this.fbl||this.adbs>=c.nn},r.hasDisabledAdBlocker=function(){return this.fdis||!this.fbl&&this.diss>=c.tn},r.blockerFlags=function(){return this.bids.reduce((function(n,t){return t|n}),0)||0},r.disabledFlags=function(){return this.dids.reduce((function(n,t){return t|n}),0)||0},r.hasBlockerFlag=function(n){for(var t=0;t<this.bids.length;t++)if(this.bids[t]===n)return!0;return!1},r.hasDisabledFlag=function(n){for(var t=0;t<this.dids.length;t++)if(this.dids[t]===n)return!0;return!1},r.hacksFlags=function(){return this.hf||0},r.blockerScore=function(){return this.adbs||0},r.disabledScore=function(){return this.diss||0},r.hackApplied=function(n){this.hf|=n},r.forceBlocking=function(){this.fbl=!0},r.forceDisabled=function(){this.fdis=!0},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})();var g="object"==typeof window.navigator&&window.navigator.userAgent||"",b=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),f(g.indexOf)&&(this.firefox=-1!==g.indexOf("Firefox/"),this.edge=-1!==g.indexOf("Edge/"),this.chrome=!this.edge&&-1!==g.indexOf("Chrome/"),this.safari=!this.edge&&!this.chrome&&-1!==g.indexOf("Safari/"),this.ie=-1!==g.indexOf("MSIE")||-1!==g.indexOf("Trident"),this.googleweblight=-1!==g.indexOf("googleweblight"),this.webcache="webcache.googleusercontent.com"===window.location.hostname,this.iOS=-1!==g.indexOf("iPhone")||-1!==g.indexOf("iPad"))}var t,r=n.prototype;return r.isChrome=function(){return this.chrome},r.isSafari=function(){return this.safari},r.isFirefox=function(){return this.firefox},r.isIE=function(){return this.ie},r.isOldIE=function(){return this.oldIE},r.isEdge=function(){return this.edge},r.isiOS=function(){return this.iOS},r.isWhitelisted=function(){for(var n=u.C||[],t=0;t<n.length;t++)if(!0===this[n[t]])return!0;if(!g||!f(g.toLowerCase))return!1;for(var r=g.toLowerCase()||"",i=u.S||[],e=0;e<i.length;e++)if(r.indexOf(i[e])>-1)return!0;return!1},r.isDisabled=function(){for(var n=u.D,t=0;n&&t<n.length;t++)if(!0===this[n[t]])return!0;return!1},r.isInteractable=function(){return"undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest&&!this.isDisabled()&&!this.isWhitelisted()},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})(),y=window.unescape||window.decodeURIComponent,k=window.escape||window.encodeURIComponent,P="cookieStore"in window&&window.cookieStore;function $(n,t,r){var i=r||{};if(void 0===t)return P&&!i.sync?n?P.getAll(n):P.getAll():new Promise((function(t){var r,i,e,o=[],u=document.cookie.split(";");for(e=0;e<u.length;e++)if(r=u[e].substring(0,u[e].indexOf("=")).trim(),i=u[e].substring(u[e].indexOf("=")+1),!n||r===n)try{o.push({name:r,value:y(i)})}catch(n){}t(o)}));if(P&&!i.sync){if(!i.domain&&null!==i.domain){var e=window.location.hostname;e&&(i.domain=e)}return i.domain&&"."===i.domain[0]&&(i.domain=i.domain.substring(1)),!t||i.maxAge<0?i.hasOwnProperty("domain")?P.delete({name:n,domain:i.domain}):P.delete(n):(i.maxAge&&(i.expires||(i.expires=Date.now()+1e3*i.maxAge),delete i.maxAge),i.sameSite||(i.sameSite="none"),P.set(o({name:n,value:t},i)))}return new Promise((function(r){var e=t?k(t):"";if(t||(i.maxAge=-1),i.maxAge&&(e+="; max-age="+i.maxAge),!i.domain&&null!==i.domain){var o=window.location.hostname;o&&(i.domain="."+o)}i.domain&&(e+="; domain="+i.domain),null==i.path&&(i.path="/"),i.path&&(e+="; path="+i.path),"https:"===window.location.protocol&&"PublicKeyCredential"in window&&(e+="; SameSite=None; Secure"),document.cookie=n+"="+e,r()})).then((function(){if(t&&i.domain)return $(n).then((function(t){if(!t||!t.length)throw new Error("failed to set cookie "+n+" on "+i.domain)}))}))}function _(n,t){for(var r,i=n.split("&"),e=void 0===t||t,o=[],u=0;u<i.length;u++)if((r=i[u].split("=",2))[0]&&e)try{o.push([decodeURIComponent(r[0]||""),decodeURIComponent(r[1]||"")])}catch(n){}else o.push(r);return o}function C(n,t){t.forEach((function(t){try{n(t[0],t[1])}catch(n){}}))}function S(n,t,r){var i=_((n.search||"").toString().substring(1),r),e=_((n.hash||"").toString().substring(1),r);return t&&f(window.addEventListener)&&window.addEventListener("popstate",(function(){i=_(n.search.substring(1)),e=_(n.hash.substring(1))})),{getHashVariable:function(n){return(function(n,t){var r=!1;return C((function(n,i){return r=n===t?i:r}),n),r})(e,n)},getQueryVariable:function(n,t){return(function(n,t,r){if(r)return!1;var i=!1;return C((function(n,r){return i=n===t?r:i}),n),i})(i,n,t)},getQueryVariablesWithMatch:function(n){return(function(n,t){var r={};return C((function(n,i){t(n)&&(r[n]=i)}),n),r})(i,n)}}}var E=S(window.location,!0,!0),D=E.getHashVariable,T=E.getQueryVariable,A=E.getQueryVariablesWithMatch;function I(n){var t=n&&n||window.location;return 0===(""+t).indexOf("about:blank")||!!/((\.?)|(:\/\/))getadmiral\.com\/blank\.html$/.test(t.origin+t.pathname)}function M(n){return n&&"."!==n[0]?"."+n:n}var O={},R=u.I,N=u.M,j=u.O,x=u.R,L=u.N,B=/^(?:([0-9]+)\.)?.*?([^.]+)$/,U=/^([0-9]+)\.(.+)$/,H=window&&window.location&&window.location.hostname,q=M(H),F=M(H&&H.replace(/^(www|m)\./,"")),W=q&&q!==F,V=!1,z={},G=!1,J={maxAge:L,domain:F},X={maxAge:L,domain:q};function K(n){return n&&(n.match(/\./g)||[]).length}function Q(n,t,r,i){var e=[K(r)||0,0|t||0,n].join(".");return $(R,e,{maxAge:i,domain:r})}function Z(n,t,r){if(!n)return $(N,null,{domain:t});var i=[K(t)||0,n].join(".");return $(N,i,{maxAge:r,domain:t})}function Y(n){return Z(n,F,L).catch((function(t){if(W)return Z(n,q,L);throw t})).then((function(){z[N]&&($(N,null,{domain:q}),z[N]=!1)}))}function nn(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={source:!0,medium:!0,name:!0,campaign:!0,content:!0,term:!0},r=A((function(n){var r=n.substr(0,4);return!("utm_"!==r||!t[n.substr(4)])||"adm_"===r})),i=window.location,e=""+i;return e.length>=3&&!I(i)&&(r.sourceURL=e),o({},r,n)}function tn(n,t){return(n||[]).map((function(n){var r={offerName:n.offerName||"",offerID:n.offerID||"",offerType:n.offerType||"",addon:"true"===n.addon||!0===n.addon};return t&&n.benefitDisplayIDs&&(r.benefitDisplayIDs=n.benefitDisplayIDs),r}))}function rn(n){var t={};return(n||[]).forEach((function(n){var r=n.benefitDisplayIDs||[];d(r)&&(r=r.split("\n")),r.forEach((function(n){t[n]=!0}))})),Object.keys(t)}function en(n){var t=rn(n).join(",")||(n&&n.length>0?"none":"");return t||V?$(j,t,J).catch((function(n){if(W)return $(j,t,X);throw n})):Promise.resolve()}function on(n,t){return t?[K(n)||0,t].join("."):""}function un(n){return Math.max(0,Math.round(1e3*(n||0))/1e3)}var an=window;function cn(n){return n&&"getEntriesByName"in n?n:an.performance}function sn(n,t){var r=[];try{var i=new URL(n,window.location).href;r=cn(t).getEntriesByName(i||n,"resource")||[]}catch(n){}if(!r||r.length<1)return null;var e=r[r.length-1],o=e.connectStart,u=e.requestStart,a=e.connectEnd,c=e.responseStart;return{dns:un(e.domainLookupEnd-e.domainLookupStart),transferSize:un(e.transferSize),encodedSize:un(e.encodedBodySize),duration:un(e.duration),connect:un(a-o>0&&u-o),request:un(c-u),response:un(e.responseEnd-c),ssl:un(e.secureConnectionStart&&a-e.secureConnectionStart),number:r.length,protocol:e.nextHopProtocol||"",startTime:un(e.startTime)}}function fn(n){var t=0;try{return cn(n).getEntries().forEach((function(n){n.fetchStart>t&&(t=n.fetchStart)})),t}catch(n){}}function dn(n,t){var r,i,e,o=0,u=0,a=!1,c=0;function s(){r&&(r.disconnect(),r=null),o&&clearTimeout(o),u&&clearInterval(u),!a&&c&&(a=fn()>c),i&&(e=e||sn(n),i({entry:e,hasNewer:a,supported:!(!("performance"in an)||!an.performance.getEntriesByName)}))}function f(t){a=a||c&&fn(t)>c,(e=sn(n,t))&&s()}try{(r=new an.PerformanceObserver(f)).observe({type:"resource"})}catch(n){}return u=setInterval(f,100),{promise:new Promise((function(n){i=n,f()&&e||(c=an.performance.now(),t&&(o=setTimeout(s,t)))})),cancel:s}}try{an.performance.addEventListener("resourcetimingbufferfull",(function(){"setResourceTimingBufferSize"in an.performance&&an.performance.setResourceTimingBufferSize(an.performance.getEntries().length+100)}))}catch(n){}var hn="preview",vn="admiral",ln=[hn,"engage"].join("-"),wn=(["force","login"].join("-"),[hn,"cmp"].join("-")),mn=["live",hn].join("-"),pn=[vn,hn].join("-"),gn=[vn,"options"].join("-"),bn=[vn,"all","groups"].join("-");function yn(){return!!T(ln)}function kn(){return!!T(wn)}function Pn(){return I()&&T(mn)}function $n(){return T(pn)}function _n(n){var t=[],r=[],i=!1;return(n||"").split(",").forEach((function(n){var e=n.split("~");t.push(e[0]),e[1]&&(i=!0,r.push(e[1]))})),{Tn:t,An:r,In:i}}var Cn=T(gn)||u.A;function Sn(n){return Cn?n.indexOf("?")>-1?n+"&o="+encodeURIComponent(Cn):n+"?o="+encodeURIComponent(Cn):n}var En=window,Dn=u.P;function Tn(n,t){var r=t[0];function i(){return n.a[r].apply(n.a,t.slice(1))}try{return"triggerEvent"===r?Promise.resolve().then(i):i()}catch(n){}}function An(){try{return En.admiral||En[Dn]}catch(n){}return En[Dn]}var In=function(n,t){var r=Array.prototype.slice.call(t);n&&r.unshift(n);var i=An();if(i&&i.loaded)return Tn(i,r);i=f(i)&&i||function(){(En.admiral.q=En.admiral.q||[]).push(arguments)};try{En[Dn]=En.admiral=i}catch(n){En[Dn]=i}i("ready",(function(){return Tn(An(),r)}))};function Mn(){return In("after",arguments)}function On(){return In("triggerEvent",arguments)}var Rn=function(){return In("",arguments)};function Nn(n){return(n.protocol||"http:")+"//"+(n.host||n.hostname||"").replace(/:(443|80)$/,"")+(n.pathname||"/")}function jn(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function xn(n,t,r){return t&&jn(n.prototype,t),r&&jn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function Ln(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var Bn,Un=(function(){function n(t){for(var r in Ln(this,n),t){var i=t[r];f(i)||(this[r]=i)}this.fullURL=t+""}return n.prototype.toString=function(){return this.fullURL},xn(n)})(),Hn=(function(){function n(){Ln(this,n),this.Mn="",this.On=0}var t=n.prototype;return t.start=function(n,t){var r=this,i=[],e=!1;function o(){e=!1,u()}function u(){if(!e){var t=i.shift();t&&(e=!0,setTimeout((function(){f(n)?n(t).then(o,o):o()}),10))}}this.On&&window.clearInterval(this.On);var a=new Un(window.location);this.Mn=Nn(a),i.push(a),this.On=window.setInterval((function(){var n=new Un(window.location),t=Nn(n);r.Mn!==t&&(r.Mn=t,(function(n,t){for(var r=0;r<n.length;r++)if(Nn(n[r])===t)return!0;return!1})(i,t)||i.push(n),u())}),t||1e3),u()},t.stop=function(){clearInterval(this.On)},xn(n)})();function qn(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}var Fn="v4ac1eiZr0",Wn="_aQS01RkY3NzcxNkUyMzFGMTE2QjE3QjE2NUMtMzI",Vn="gpte",zn="engageRendered",Gn="lastGAMKVPs",Jn=(qn(Bn={userEngaged:0},zn,4),qn(Bn,"cmpConsentID",7),qn(Bn,"whitelistAdded",16),qn(Bn,"hasClosedStickyWelcomeTooltip",18),qn(Bn,"renderedStickyOnce",19),qn(Bn,"usnatCMPConsentID",20),Bn),Xn=qn({},Gn,"lgk");function Kn(n,t){try{localStorage.setItem(n,t)}catch(n){}}function Qn(n){try{return localStorage.getItem(n)}catch(n){return null}}function Zn(n,t){return(n.lgk||[]).filter((function(n){return(n&&n[0]&&n[2]===Vn)==!t}))}var Yn=function(_name,n){n.push([_name+"-engaged","true"||_name,Vn])};function nt(){var n,t=(Qn(Fn)||"").split(",");try{n=JSON.parse(Qn(Wn)||"{}")||{}}catch(t){n={}}return[t,n]}var tt=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}return n.set=function(n){var t,r,i=nt(),e=i[0],o=i[1];for(var a in n){var c=n[a];if(a in Jn&&(t=!0,e[Jn[a]]=c,a===zn)){var s=Zn(o,!0);c&&Yn(u.u,s),r=!0,o.lgk=s}a in Xn&&(a===Gn&&(c=c||[],Zn(o)[0]&&Yn(u.u,c)),r=!0,o[Xn[a]]=c)}if(t&&Kn(Fn,e.join(",")),r)try{Kn(Wn,JSON.stringify(o))}catch(n){}},n.get=function(){var n,t=nt(),r=t[0],i=t[1],e={userEngaged:1,engageRendered:1,renderGatedAsHard:1,whitelistAdded:1},o={};for(var u in Jn)Jn.hasOwnProperty(u)&&(n=r[Jn[u]],e[u]&&(n=parseInt(n,10)||0),o[u]=n);for(var a in Xn)o[a]=i[Xn[a]];return o},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t;var t})();var rt=function(){},it="2.46.1";function et(n){this.ok=!0,this.d=n}function ot(n){return("css"!==n||f(window.getComputedStyle))&&n||"post"}et.prototype.json=function(){return this.d};var ut=ot(c.cn),at=ot(c.sn);function ct(n,t,r,i){return t&&(n.sid=t),r&&(n.aid=r),i&&(n.ld=i),n}function st(n,t){var r=t.sessions;return ct(n,r.sessionID,r.realmSessionID,t.localData)}function ft(n){return!!n.aid}function dt(n,t){return t in n&&d(n[t])&&""!==n[t]}function ht(n,t){return t in n&&h(n[t])&&0!=n[t]}function vt(n,t){return t in n&&!0===n[t]}function lt(n){return Array.isArray(n)}function wt(n,t){return t in n&&lt(n[t])&&n[t].length>0}function mt(n,t){return Object.prototype.hasOwnProperty.call(n,t)}var pt=100*Math.random()<c.pn;function gt(){return window.location}var _callback,bt=(function(){function n(t,r){var i=this;!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.propertyID=t,this.browser=r,this.Rn=[],this.Nn=[],this.jn=Promise.resolve(),this.xn=[],this.Ln=null,this.Bn=null,this.Un=null,this.Hn=null,this.qn="",this.Fn="",this.Wn=!1,this.Vn={},this.zn="",this.Gn=0,this.Jn=[],this.Xn=[],this.Kn=void 0,this.formatters={pageview:this.Qn.bind(this),candidateSeen:this.Zn.bind(this),candidateAction:this.Yn.bind(this)},this.nt={},this.tt={},this.rt={},this.it=null;try{this.et()}catch(n){n instanceof DOMException||this.setError(n,"delayed")}var e="transact.subscribe";Mn(e,this.ot.bind(this)),Mn("call."+e,this.ot.bind(this)),Mn("view.rendered",this.ut.bind(this)),Mn("view.action",this.ct.bind(this)),Mn("user.login",(function(n){return i.saveSession(n,!0,!0)})),pt&&setInterval((function(){return i.recordMetrics()}),5e3)}var t,r=n.prototype;return r.st=function(n){var t=[["blocked","bl",vt],["hasAdBlocker","abl",vt],["disabledAdBlocker","dbl",vt],["blockerScore","bls",ht],["disabledScore","dis",ht],["flags","flags",ht],["disabledFlags","dflags",ht],["hacksFlags","df",ht],["engageRendered","er",ht],["duration","dt",ht]],r={};return 1===n.blockerType&&(r.abls=["el"]),t.reduce((function(t,r){return r[2](n,r[0])&&(t[r[1]]=n[r[0]]),t}),r)},r.setCMPCommonData=function(n){var t="cmpConsentID";dt(n,t)&&this.Xn.push({type:"cmpConsent",id:n.cmpConsentID},{type:"cmpConsent[tcf]",id:n.cmpConsentID});var r={};for(var i in n)mt(n,i)&&i!==t&&(r[i]=n[i]);this.Bn=r},r.setCCPACommonData=function(n){this.Un=n||{}},r.setUSNatCommonData=function(n){var t="usnatCMPConsentID";dt(n,t)&&this.Xn.push({type:"cmpConsent",id:n.usnatCMPConsentID},{type:"cmpConsent[usnat]",id:n.usnatCMPConsentID});var r={};for(var i in n)mt(n,i)&&i!==t&&(r[i]=n[i]);this.Hn=r},r.setIsBlocking=function(n){this.Wn=!!n},r.addLoadPerfData=function(n,t,r,i){if(i){if(this.nt[i])return;this.nt[i]=!0}var e={t:"l",n:n};function o(n,t){r[t]&&r[t]>0&&(e[n]=r[t])}t&&(e.s=~~t),this.Wn&&(e.b=1),r&&r.duration>0&&(o("dd","dns"),o("dt","duration"),o("dc","connect"),o("dq","request"),o("ds","response"),o("dl","ssl"),o("es","encodedSize"),r.protocol&&(e.dp=r.protocol)),this.Nn.push(e)},r.addDetectorPerfData=function(n,t,r,i,e,o){var u={t:"d"};function a(n,t){t>0&&(u[n]=t)}this.Wn&&(u.b=1),a("dk",n),a("dd",t),a("ds",r),a("dr",i),a("du",e),a("hf",o),this.Nn.push(u)},r.addInvestigationData=function(n,t,r){for(var i=this.Jn,e=0;e<i.length;e++)if(i[e]===n)return;this.Jn.push(n);var o={t:"i",if:n};t>0&&(o.ic=t),lt(r)&&(o.il=r.filter((function(n){return h(n)}))),this.Nn.push(o)},r.Qn=function(n){var t=n.results,r=n.consentApplies,i={};return vt(t,"hasAdmiralList")&&(i.whtl=!0),h(r)&&r>0&&(i.cmpa=r),i},r.ft=function(n){if(n.candidate){var t=n.candidate,r=t.batchID,i=t.candidateID,e=t.variantID,u=t.groups,a=t.payload;n=o({batchID:r,candidateID:i,variantID:e,groups:u,template:(a=void 0===a?{}:a).name,triggers:t.triggers,tsUpdated:t.tsUpdated},n)}for(var c=[["candidateID","cid",dt],["batchID","bid",dt],["variantID","vid",dt],["triggers","trs",wt],["groups","cg",wt],["whitelistAsk","wa",vt],["offers","of",wt],["template","tp",dt],["tsUpdated","tsu",ht]],s={},f=0;f<c.length;f++)c[f][2](n,c[f][0])&&(s[c[f][1]]=n[c[f][0]]);return s},r.Zn=function(n){var t=this.ft(n);if(n.extras){var r=t.cid;n=o({},n.extras[r]||{},n)}return dt(n,"sourceID")&&(t.si=n.sourceID),vt(n,"noPersist")&&(t.np=!0),t},r.Yn=function(n){var t=this.ft(n);return dt(n,"action")&&(t.act=n.action),dt(n,"detail")&&(t.det=n.detail),t},r.addDataFormatter=function(n,t,r){!r&&this.formatters[n]||(this.formatters[n]=t)},r.addData=function(n,t,r){var i=this.formatters[n];if(!i)throw new Error("no data formatter for "+n);var e=i(t);"pageview"===n&&(this.Ln=o(this.Ln||{},this.st(t.results||t))),this.Rn.push({type:n,body:e,src:r||""})},r.setError=function(n,t){var r=(function(n){return null==n?"":d(n.message)?""+n.message:n+""})(n);if(!r)return this.qn="",void(this.Fn="");t&&(r=[t,r].join(": ")),this.qn=r;var i="";if(n&&n.stack){var e=((n.stack||"")+"").split("\n");e[0].indexOf("Error: ")>-1?i=(e[1]||"").trim():e[0]&&(i=e[0].trim())}this.Fn=i},r.dt=function(n,t,r,i){i=o({},i||this.Ln||{}),r||(i=o(i,this.Un||{},this.Hn||{},this.Bn||{}));var e=n||gt(),u=e&&e.search;t=t||document.referrer;var a=r>0?"":this.lastID("pageview"),c=r>0?"":this.lastID("cmpConsent[tcf]"),s=r>0?"":this.lastID("cmpConsent[usnat]"),f=Nn(e);if(f.length>=9&&!I(e)&&(i.uri=f),t&&(i.rfr=""+t),a&&(i.pv=a),c&&(i.ccid=c),s&&(i.uccid=s,c||(i.ccid=c)),i.pid=this.propertyID,i.jsv=it,i.utco=-1*(new Date).getTimezoneOffset()*60,r>0&&(i.dms=r),(function(){try{return!!window.localStorage._admlValRec}catch(n){return!1}})()&&(i.vrec=!0),lt(this.Kn)&&(i.sgs=this.Kn),Rn("get","_bootstrapVersion",(function(n){n&&h(n)&&(i.verb=n)})),u){var d=(0,S(e,!1,!1).getQueryVariablesWithMatch)((function(n){return 0===n.indexOf("utm_")||0===n.indexOf("adm_")})),v=[];for(var l in d)mt(d,l)&&v.push(l+"="+d[l]);v.length>0&&(i.usp=v.join("&"))}return this.getCookieData().then((function(n){return i=st(i,n),new Promise((function(n){Rn("get","analytics.ignore",(function(n,t){t?n&&(i.ign=!0):(yn()||$n()||kn()||Pn())&&(i.ign=!0)})),n(i)}))}))},r.ht=function(n,t){return"post"===t?(this.qn&&(n.err=this.qn),this.Fn&&(n.ert=this.Fn)):this.qn&&(n.err="1"),this.setError(),n},r.vt=function(n){var t=this,r=this.xn;return new Promise((function(n){1===r.push(n)&&n()})).then((function(){return r.shift(),t.jn=t.jn.catch(rt).then(n),r[0]&&r[0](),t.jn}))},r.et=function(){var n,t=this,r=window.sessionStorage||{},i="afsvisits";try{var e=r[i];e&&(delete r[i],n=JSON.parse(e).slice(-5))}catch(n){}if(n&&n.length)for(var o=Date.now(),u=function(r){var i=n[r][0]||0,e=n[r][1]||{},u=o-i;if(u>c._n)return"continue";if(1===e.t){if(!e.cs)return"continue";var a={hasAdBlocker:!0,disabledAdBlocker:!1,blocked:!0,flags:16384,engageRendered:i},s=[{type:"pageview",body:t.Qn({results:a})}].concat(t.lt(e.cs,{}).map((function(n){return((n.candidate||n).triggers||[]).find((function(n){return n&&"adblockerDisabled"===n.type}))&&tt.set({engageRendered:i}),{type:"candidateSeen",body:t.Zn(n)}})));t.vt((function(){var n=new Un(e.p?new URL(e.p,window.location):gt());return t.dt(n,e.r,u,t.st(a)).then((function(n){return t.wt(c.B,n,0,null,ut,s,!1)}))}))}},a=0;a<n.length&&n[a];a++)u(a)},r.record=function(n){var t=this,r=n||new Un(gt());return I(r)?Promise.reject(new Error("invalid location")):this.vt((function(){return t.dt(r).then((function(n){var r=t.Wn?ut:at;return t.wt(c.B,t.ht(n,r),0,null,r,t.Rn.splice(0,t.Rn.length),!1)}))}))},r.testRecord=function(n,t){var r=this;t=ot(t);var i=new Un(gt());return I(i)?Promise.reject(new Error("invalid location")):this.vt((function(){return r.dt(i).then((function(i){return r.wt(n,i,0,null,t,[],!0,c.hn)}))}))},r.wt=function(n,t,r,i,e,o,u,a){var s=this;if(!n)return Promise.reject(new Error("no submit endpoint"));if(!t)return Promise.reject(new Error("no common data"));a=a||c.dn;var f=t.dms,d={c:t,b:[]};if(0===o.length&&!u&&!t.err)return Promise.resolve(i||{});var h="",v=!1;o.forEach((function(n){n.src&&(h?h!==n.src&&(v=!0):h=n.src)})),h&&!v?(o=o.map((function(n){return delete n.src,n})),t.ss=h):delete t.ss;var l=yt(e,d,"b",o),w=l.encoded,m=l.left;r++;var p=this.gt(a,e,n,w).then((function(n){var r,i;if(n&&n.daConvertedState){var e=tt.get().engageRendered;n.daConvertedState>0&&!e?tt.set({engageRendered:1}):e>0&&n.daConvertedState<0&&tt.set({engageRendered:0})}return t&&t.vrec&&((function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];try{n?window.localStorage._admlValRec=!!n:delete window.localStorage._admlValRec}catch(n){}})(!1),delete t.vrec),f||s.bt(n,o),n.entries=null!=(r=null==(i=n.visitorStatus)?void 0:i.offers)?r:[],Promise.all([s.yt(n),s.saveSession(n,ft(t),!1)]).then((function(){return n}))})).catch((function(n){throw s.it||On("visitor.latest",{error:{error:"network error",code:0}}),s.setError(n,"record"),n}));return p.then((function(i){return m&&m.length>0&&r<5?s.wt(n,s.ht(t,e),r,i,e,m,u,a):i}))},r.ot=function(n){var t=this,r=n.err,i=n.params,e=n.callback,u=void 0===e?function(){}:e;if(r&&this.setError(r,"onPay"),!c.H)return Promise.reject(new Error("no subscribe endpoint"));var a=this.vt((function(){return t.dt("").then((function(n){return t.gt(c.vn,"",c.H,o(n,o({},i,{metadata:nn()})))})).then((function(n){return Promise.all([t.kt(n),t.yt(n),t.saveSession(n,!0,!0)]).then((function(){return n}))}))}));return a.then((function(n){var t,r;n.entries=null!=(t=null==(r=n.visitorStatus)?void 0:r.offers)?t:[],en(n.entries).then((function(){On("transact.subscribed",{offers:n.entries,benefits:rn(n.entries)}),u(n)}))})),a.catch((function(n){throw t.setError(n,"subscribe"),t.record(),u(void 0,n),new Error("Unknown error occurred. Please try again.")})),a},r.lt=function(n){var t=n.candidates,r=void 0===t?[]:t,i=n.extras,e=void 0===i?{}:i,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=[];return r.forEach((function(n){var t=n.candidateID;u[t]||(u[t]=!0,a.push(o({candidate:n},e[t])))})),a},r.ut=function(n){var t=this,r=n.candidates,i=void 0===r?[]:r,e=n.extras,o=void 0===e?{}:e,u=n.callback,a=void 0===u?function(){}:u,c=n.src,s=void 0===c?"":c;this.lt({candidates:i,extras:o},this.tt).forEach((function(n){t.addData("candidateSeen",n,s)})),setTimeout((function(){t.record().then((function(){return a({})}),(function(n){return a(void 0,n)}))}),100)},r.ct=function(n){var t=this,r=n.candidates,i=void 0===r?[]:r,e=n.extras,u=void 0===e?{}:e,a=n.action,c=void 0===a?"":a,s=n.detail,f=void 0===s?"":s,d=n.callback,h=void 0===d?function(){}:d,v=n.src,l=void 0===v?"":v;i.forEach((function(n){var r=n.candidateID;t.rt[r+c]||(t.rt[r+c]=!0,t.addData("candidateAction",o({candidate:n,action:c,detail:f},u[r]),l))})),this.record().then((function(){return h({})}),(function(n){return h(void 0,n)}))},r.performAttributeUpdates=function(n){var t=this,r=this.vt((function(){return t.getCookieData().then((function(r){var i=st({pid:t.propertyID,as:n},r);return t.gt(c.mn,"",c.yn,i).then((function(n){return Promise.all([t.kt(n),t.yt(n),t.saveSession(n,ft(i),!1)]).then((function(){return n}))}))}))}));return r.catch((function(n){throw t.setError(n,"perform"),t.record(),new Error("Unknown error occurred. Please try again.")})),r},r.recordMetrics=function(n){var t=c.G;if(!t)return Promise.resolve({});if(I()||"localhost"===gt().hostname)return Promise.resolve({});if(n||pt){var r=Rn("flushUsed");if(r&&r.length>0&&this.Nn.push({t:"q",n:r.join("\n")}),!this.Nn||this.Nn.length<1)return Promise.resolve({});var i={v:it,pid:this.propertyID},e=ot(c.gn),o=yt(e,i,"m",this.Nn),u=o.encoded,a=o.left;return this.Nn=a||[],this.gt("",e,t,u)}},r.kt=function(n){if(n&&d(n.localData))return this.zn=n.localData,(function(n){if(!d(n))return Promise.reject("bad data");var t=on(F,n);return $(x,t,J).catch((function(t){if(W){var r=on(q,n);return $(x,r,X)}throw t}))})(this.zn)},r.yt=function(n){if(n&&n.visitorStatus){var t=o(this.it||{},n.visitorStatus);t.canStoreData=t.registered||c.Dn>=0,this.it=t;var r=o({},t);return delete r.visitorID,On("visitor.latest",{status:r,_private:function(){return{status:t}}}).catch((function(n){}))}},r.fetchCandidates=function(n){var t=this,r=n.results,i=void 0===r?{}:r,e=n.cmpStatus,u=void 0===e?{}:e,a=n.ccpaStatus,s=void 0===a?{}:a,f=n.customParams,v=void 0===f?null:f,l=n.overrides,w=void 0===l?{}:l,m=n.candidateIDs,p=n.variantIDs,g=n.shownCandidates,b={pid:this.propertyID,pv:this.lastID("pageview"),tp:{},jsv:it,c:this.st(i)};Rn("get","analytics.ignore",(function(n,t){t?n&&(b.c.ign=!0):(yn()||$n()||kn()||Pn())&&(b.c.ign=!0)})),v&&Object.keys(v).length>0&&(b.ctp=v),b.tp.np="Notification"in window?Notification.permission:"default",i.blocked&&(b.tp.adb=!0,b.tp.adt=i.blockerType),i.recentlyWhitelisted&&(b.tp.adrw=!0);var y=gt(),k=y&&(y.hostname||y.host);k&&(b.tp.ph=k);var P=(function(n){return"/"!==(n=n||"/").charAt(0)&&(n="/"+n),"/"===n.charAt(n.length-1)&&n.length>1&&(n=n.substr(0,n.length-1)),n})(y.pathname);if(P&&(b.tp.pp=P),document.referrer&&(b.tp.pr=document.referrer),!u.failed){var $=u.status,_=u.tcfVersion;h($)&&!isNaN($)&&(b.tp.cs=$),h(_)&&(b.tp.cv=_)}s&&!s.failed&&d(s.state)&&(b.tp.cps=s.state),window.__cmpGdprAppliesGlobally&&(b.tp.cag=!0);var C=$n();if(C){var S=_n(C),E=S.Tn[0];1===S.Tn.length&&E&&E.indexOf(":")>-1?b.cg=E:C.indexOf(",")>-1?b.cids=S.Tn:b.cid=E,S.In&&(b.cvids=S.An)}else kn()&&(b.tp.pvc=!0),yn()&&(b.tp.pve=!0);return lt(m)&&m.length>0&&(b.cids=m),lt(p)&&p.length>0&&(b.cvids=p),lt(g)&&g.length>0&&(b.sc=g),vt(i,"hasAA")&&(b.tp.aao=i.hasAA),this.getCookieData().then((function(n){var t=n.cookies;(function(n,t){(c.$n||[]).forEach((function(r){var i=r.indexOf(".");if(i>-1){var e=r.substring(0,i),o=r.substring(i+1);if(t[e]){var u=t[e](o);(d(u)||lt(u))&&(n[e]=n[e]||{},n[e][o]=u)}}}))})(b=st(b,n),{qp:T,hp:D,ck:function(n){var r=(t||[]).filter((function(t){return t&&t.name===n})).map((function(n){return n.value}));return r.length>0&&r}}),w&&(b.tp=o(b.tp,w))})).then((function(){return t.gt(c.ln,"",Sn(c.bn),b)})).then((function(n){return Promise.all([t.kt(n),t.Pt(n),t.yt(n),t.saveSession(n,ft(b),!1)]).then((function(){return{candidates:n.candidate?[n.candidate]:n.candidates||[]}}))}))},r.bt=function(n,t){var r="cmpConsent",i="cmpImpression";if(n&&n.ids){for(var e=[],o=0;o<n.ids.length;o++)n.ids[o]&&n.ids[o].id&&(n.ids[o].type!==r&&n.ids[o].type!==i||e.push(n.ids[o].id),this.Xn.push(n.ids[o]));for(var u=-1,a=0;a<t.length;a++){var c=t[a]||{};if((c.type===r||c.type===i)&&c.body){u++;var s=c.body.cct;if(e[u]&&c.type===r)switch(s){case"tcf":tt.set({cmpConsentID:e[u]});break;case"usnat":tt.set({usnatCMPConsentID:e[u]})}this.Xn.push({type:"".concat(t[a].type,"[").concat(s,"]"),id:e[u]})}}}return n},r.lastID=function(n){for(var t=this.Xn.length-1;t>=0;t--)if(this.Xn[t].type==n)return this.Xn[t].id;return""},r.Pt=function(n){if(n){this.Kn=lt(n.segments)?n.segments:void 0;var t=n.gamKVPs;if(t){var r=[];for(var i in t)mt(t,i)&&i&&r.push([i,lt(t[i])&&1===t[i].length?t[i][0]:t[i]]);tt.set({lastGAMKVPs:r||[]})}}return n},r.saveSession=function(n,t,r){var i=this,e=Promise.resolve();if(!n)return e;if(n.sessionID&&(this.Vn.sessionID=n.sessionID,this.Gn=0|n.now||this.Gn||0,e=e.then((function(){return t=n.sessionID,r=i.Gn,Q(t,r,F,L).catch((function(n){if(W)return Q(t,r,q,L);throw n})).then((function(){z[R]&&($(R,null,{domain:q}),z[R]=!1)}));var t,r}))),n.realmSessionID){var o="";t?(o=this.Vn.realmSessionID,e=e.then((function(){return i.Vn.realmSessionID=n.realmSessionID,Y(n.realmSessionID)})),this.zn&&o&&r&&this.Vn.sessionID&&(e=e.then((function(){return i.gt(c.mn,"",c.yn,ct({pid:i.propertyID,anid:o,md:!0},i.Vn.sessionID,i.Vn.realmSessionID,i.zn))})).then((function(n){return Promise.all([i.kt(n),i.yt(n),i.saveSession(n,!1,!1)]).then((function(){return n}))})))):e=e.then((function(){return i.getCookieData().then((function(t){if(!t.sessions.realmSessionID)return i.Vn.realmSessionID=n.realmSessionID,Y(n.realmSessionID)}))}))}else n.clearRealmSessionID&&(this.Vn.realmSessionID="",e=e.then((function(){return Y("")})));return e.catch((function(n){i.setError(n,"cookies")}))},r.getCookieData=function(){var n=this;return $().then((function(n){var t=(O=(function(n){for(var t={},r={},i={},e=0;e<n.length;e++){var _name=n[e].name;if(_name===R||_name===N||_name===x){var o=n[e].value.match(U);if(!o||!o[2]||~~o[1]<t[_name])continue;t[_name]=~~o[1],i[_name]=n[e].domain||"",r[_name]=o[2]}else _name===j&&(V=!0)}if(!G){for(var u in r)i[u]&&t[u]<K(F)&&(F=M(i[u]),W=!0),W&&t[u]>K(F)&&(z[u]=!0);G=!0}return r})(n))[R];return{sessions:{sessionID:(t?t.match(B):"")[2]||"",realmSessionID:O[N]||""},localData:O[x]||"",cookies:n}})).catch((function(){return{sessions:n.Vn,cookies:{},localData:n.zn}}))},r.gt=function(t,r,i,e){var o=this,u=i,a=r?ot(r):this.Wn?ut:at,c=d(e)?e:yt(a,e).encoded;return new Promise((function(r,i){var e;switch("//"===u.substr(0,2)&&(u=(gt().protocol||"https:")+u),a){case"ping":e=new Promise((function(n,t){navigator.sendBeacon(u,c)?n(new et({})):t(new Error("failed to queue beacon"))}));break;case"post":e=(function(n,t){if(f(window.fetch))return window.fetch.call(this,n,t);var r=t||{};return new Promise((function(t,i){var e=new XMLHttpRequest;e.addEventListener("load",(function(){if(0!==e.status){var n=e.status||200,r={status:n,ok:200==n,json:function(){return new Promise((function(n){n(JSON.parse(e.responseText))}))}};t(r)}else i(new Error("status is 0"))})),e.addEventListener("error",i),e.open(r.method||"GET",n,!0),e.send(r.body)}))})(u,{method:"POST",body:c});break;default:e=n.handlers[a]((function(n){u=n}),u,c,n.timeout,(function(){}),sn)}e.then((function(n){if(n.ok)return n;var t=new Error("Request non-200 status");return n.json().then((function(n){throw t.code=n.code,t})).catch((function(){throw t}))}),(function(n){throw n})).then((function(n){return n.json()})).then((function(n){r(n),t&&o.addLoadPerfData(t,1,sn(u))})).catch(i)})).catch((function(r){if(t){var i=sn(u),e=0;r===n.timeoutError&&(e=2),o.addLoadPerfData(t,e,i)}throw r}))},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})();function yt(n,t,r,i){return bt.$t(n,t,r,i,Math.random()>c.un)}bt.timeout=c.kn,bt.timeoutError=new Error("Timed out waiting for response"),bt.handlers={},bt.bodyFmts={},bt.$t=function(n,t,r,i,e){return bt.bodyFmts[n]?bt.bodyFmts[n](t,r,i,e):(r&&i&&(t[r]=i),{encoded:JSON.stringify(t),left:[]})},_callback={},new(function(){_callback.lc=!!0}),_callback.lc&&_callback.c(bt),new(function(){_callback.lj=!!0}),_callback.lj&&_callback.j(bt);var kt=/^([a-zA-Z]+)/,Pt="[a-zA-Z0-9_-]+",$t=new RegExp("([#.])("+Pt+")|\\[("+Pt+')(?:=("[^"]+"|[^\\]]+))?\\]',"g");function _t(n,t){var r,i="div",e=d(t)&&t.match(kt);e&&(i=e[1]||i,t=t.substr(e[1].length));try{"undefined"!=typeof Document&&(r=Document.prototype.createElement.call(n,i))}catch(n){}if(r||(r=n.createElement(i)),!r)throw new Error("error creating element: "+i);var o=[];for($t.lastIndex=0;null!==(e=$t.exec(t));)"."===e[1]&&e[2]?o.push(e[2]):"#"===e[1]&&e[2]?r.id=e[2]:e[3]&&r.setAttribute(e[3],e[4]||"");return o.length>0&&(r.className=o.join(" ")),r}function Ct(n,t,r){var i=document,e="script";return new Promise((function(o,u){if(n){var a=_t(i,e),c=new Date;a.async=1,t&&(a.crossOrigin="anonymous"),a.type="text/javascript",a.onreadystatechange=function(){"loaded"===this.readyState&&o(a)},a.onload=function(){return o(a)},a.onerror=function(t){var r=new Date;u('script failed: "'+n+'" - '+Math.round(r-c)+"ms: "+t),a.parentNode&&a.parentNode.removeChild(a)},a.src=n,(r=r||i.getElementsByTagName(e)[0])&&r.parentNode?r.parentNode.insertBefore(a,r):(i.head||i.getElementsByTagName("head")[0]||i.body).appendChild(a)}else u("missing src")}))}function St(n,t){return new Promise((function(r,i){var e;e=setTimeout((function(){i("timedout")}),t),n.then((function(n){e&&clearTimeout(e),r(n)})).catch(i)}))}function Et(){var n=window,t=Array.prototype.slice.call(arguments);if(f(n.console.log))return n.console.log.apply(n.console,t)}var Dt="r",Tt=function(n){return new Error('Admiral targeting method "'+n+'" called after candidate call')},At=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this._t={},this.Ct=!1,this.state="i"}var t,r=n.prototype;return r.set=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(this.state===Dt)throw Tt("set");void 0===t?delete this._t[n]:this._t[n]=t,r(t)},r.pause=function(n){var t=this;if(this.state===Dt)throw Tt("pause");this.state="p",this.Ct&&(clearTimeout(this.Ct),this.Ct=null),n&&(this.Ct=setTimeout((function(){t.ready()}),n))},r.onReady=function(n){"i"===this.state&&this.ready(),Mn("targeting.ready",(function(t){return n(t)}))},r.ready=function(){this.state!==Dt&&(this.state=Dt,On("targeting.ready",this._t)),this.Ct&&(clearTimeout(this.Ct),this.Ct=null)},r.force=function(n){On("call.targeting.render",n=o({force:!0},n||{}))},r.reset=function(){this._t={},this.Ct=!1,this.state="i"},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})(),It=At;var Mt=["after","addEventListener","get","once"],Ot=["getOrSet"],Rt=Mt.concat(Ot,["removeEventListener","set","show","recordImpressions"]),Nt=new Error("no view name");function jt(){}function xt(n){return Array.prototype.slice.call(n)}function Lt(n){return n.slice(1)}function Bt(n){var t=o({},n);return delete t._private,t}function Ut(n){return function(){var t=xt(arguments);if(!t[0]||Array.isArray(t[0])||"object"!=typeof t[0])return n.apply(null,t);var r=t.shift();return n.apply(null,[Bt(r)].concat(t))}}var Ht=(function(){function n(t,r){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.St={},this.Et={},this._t={_bootstrapVersion:r||0},this.Dt={},this.Tt={},this.At={},this.It=new It,this.Mt=t}var t,r=n.prototype;return r.fn=function(){var n=this,t=function(){var t=xt(arguments),r=t[0],i=t[1],e=t[2],o=t[3],u=t.slice(4),a=!1;if(Rt.indexOf(r)>-1?(a=!0,d(i)&&(n.At[i]=!0),f(e)&&Mt.indexOf(r)>-1&&(e=Ut(e)),f(o)&&Ot.indexOf(r)>-1&&(o=Ut(o))):"targeting"===r?(a=!0,d(i)&&(n.At["targeting."+i]=!0)):"visitor"===r?(a=!0,d(i)&&(n.At["visitor."+i]=!0)):"ready"===r&&(a=!0),a)return n[r].apply(n,[i,e,o].concat(u));throw new Error("No '".concat(r,"' method"))};return t.loaded=!0,t.a=n,t},r.targeting=function(n){return this.It[n].apply(this.It,Lt(xt(arguments)))},r.visitor=function(n){return this.Mt[n].apply(this.Mt,Lt(xt(arguments)))},r.ready=function(n){n&&n()},r.show=function(n,t,r){f(t)&&(r=t,t={});var i=this.Dt,e=i[n]||{name:n,queue:[]};if(e.registered)e.renderFn(t,r);else{e.queue.push([t,r]),i[n]=e;var o=this.Tt[n]||{};o.providerFn&&!o.provided&&(o.provided=!0,o.providerFn())}},r.registerViewProvider=function(n,t){if(!n)throw Nt;if(!t)throw new Error("no view providerFn");var r=this.Tt,i=r[n]||{},e=this.Dt[n];i.provided||(e?e.registered||t():r[n]={name:n,providerFn:t})},r.registerView=function(n,t){if(!n)throw Nt;if(!t)throw new Error("no view renderFn");var r=this.Dt,i=r[n]||{name:n};if(r[n]=i,i.registered=!0,i.renderFn=t,i.queue)for(var e=0;e<i.queue.length;e++)i.renderFn.apply(null,i.queue[e]);delete i.queue},r.hasView=function(n,t){var r=this.Dt[n];t(!(!r||!r.registered))},r.addEventListener=function(n,t){var r=this.St;r[n]=r[n]||[],r[n].push(t)},r.removeEventListener=function(n,t){for(var r=this.St[n]||[],i=0;i<r.length;i++)if(r[i]===t)return void r.splice(i,1)},r.after=function(n,t){var r=this.Et;this.addEventListener(n,t),r.hasOwnProperty(n)&&t.apply(null,r[n])},r.once=function(n,t){var r=this;this.after(n,(function i(){r.removeEventListener(n,i),t.apply(this,xt(arguments))}))},r.triggerEvent=function(n){for(var t=this.Et[n]=Lt(xt(arguments)),r=(this.St[n]||[]).slice(0),i=[],e=0;e<r.length;e++){var o=Ft(r[e],t);o&&f(o.then)&&f(o.catch)&&i.push(o.catch(jt))}return Promise.all(i)},r.clearFired=function(n){delete this.Et[n]},r.set=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};void 0===t?delete this._t[n]:this._t[n]=t,r(t),this.triggerEvent("_set."+n,t)},r.getOrSet=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=this._t,e=i.hasOwnProperty(n);e?t=i[n]:this.set(n,t),r(t,e)},r.get=function(n,t){var r=this._t;t(r[n],r.hasOwnProperty(n))},r.storageSet=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};tt.set(n),t(n)},r.storageGet=function(n){n(tt.get())},r.recordImpressions=function(){},r.cas=function(n,t){var r=this._t,i=t(r[n],r.hasOwnProperty(n));i&&!0===i[0]&&this.set(n,i[1])},r.addSetter=function(n,t){this.after("_set."+n,t)},r.flushUsed=function(){var n=Object.keys(this.At);return this.At={},n},r.pm=function(n,t){switch(n){case 5:var r=this.triggerEvent("call."+t.m,t.a);t.cb&&(r&&f(r.then)?r.then(t.cb,(function(n){return t.cb(void 0,n)})):t.cb(r));break;case 6:this.after(t.l,t.cb);break;case 7:this.show(t.s,t.o||{},t.cb);break;case 8:var i=t.o||{};t.cb&&(i=o({callback:t.cb},i)),this.triggerEvent("view."+t.e,i);break;case 9:this.get(t.g,t.cb)}},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})(),qt=window;function Ft(n,t){try{return n.apply(null,t)}catch(n){}}function Wt(n,t,r){var i=Array.isArray(n),e="";for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e=r?i?r+"["+o+"]":r+"."+o:o,d(n[o])||"boolean"==typeof n[o]||h(n[o])||null===n[o]||n[o]instanceof String||n[o]instanceof Number||n[o]instanceof Boolean?t.push([encodeURIComponent(e),encodeURIComponent(n[o]+"")].join("=")):void 0!==n[o]&&Wt(n[o],t,e))}function Vt(n){var t=[];return Wt(n,t,""),t.join("&")}function zt(n,t,r){return new Promise((function(i){t.addEventListener(n,(function e(o){if(t.removeEventListener(n,e,!1),i(o),r)return r(o)}),!1)}))}var Gt=null;function Jt(n){return(function(n){var t=n.readyState;return("complete"===t||"interactive"===t)&&n.body})(n)?Promise.resolve():(Gt||(Gt=Promise.race([zt("DOMContentLoaded",n),zt("readystatechange",n)]).then((function(){if(!n.body)return new Promise((function(t,r){var i,e=0;i=setInterval((function(){return n.body?(clearInterval(i),void t()):e++>50?(clearInterval(i),void r(new Error("body falsy: "+n.readyState))):void 0}),100)}))}))),Gt)}var Xt=function(){};function Kt(n){var t;return null!=(t=n.options)&&t.callDelay&&(n.wait=n.options.callDelay),n}var Qt=(function(){function n(t){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.Ot=(function(){var n,t={},r={},i=0;function e(n,t){if(r[n]){try{r[n](t)}catch(n){}delete r[n]}}return function(u){var a=this,c=u.key,s=u.value,f=u.actionType,d=u.cb,h=void 0===d?Xt:d,v=u.wait,l=void 0===v?10:v,w={a:f,rv:s,id:++i};r[i]=h,t[c]?t[c].push(w):t[c]=[w],clearTimeout(n),n=setTimeout((function(){var n=Object.keys(r),i=o({},t);t={},a.Rt.performAttributeUpdates(i).then((function(t){n.forEach((function(n){var r,i,o=null==t||null==(r=t.errors)?void 0:r[n];o&&((i=new Error(o.error||"unknown")).code=o.code||1),e(n,{error:i})}))}),(function(t){n.forEach((function(n){var t=new Error("network error");t.code=0,e(n,{error:t})}))}))}),l)}})(),this.Rt=t}var t,r=n.prototype;return r.set=function(n,t,r,i){f(r)&&void 0===i&&(i=r,r=null),this.Ot(Kt({key:n,value:t,actionType:"set",options:r,cb:i}))},r.increment=function(n,t,r,i){f(r)&&void 0===i&&(i=r,r=null),this.Ot(Kt({key:n,value:t,actionType:"increment",options:r,cb:i}))},r.addToSet=function(n,t,r,i){f(r)&&void 0===i&&(i=r,r=null),this.Ot(Kt({key:n,value:t,actionType:"addToSet",options:r,cb:i}))},r.removeFromSet=function(n,t,r,i){f(r)&&void 0===i&&(i=r,r=null),this.Ot(Kt({key:n,value:t,actionType:"removeFromSet",options:r,cb:i}))},r.status=function(n,t){f(n)&&void 0===t&&(t=n,n=null),(function(){In("once",arguments)})("visitor.latest",t)},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})(),Zt=Qt;var Yt,nr=!1,tr=null,rr=null,ir=function(){},er=(Yt=document,Yt.currentScript||{}).src,or=c.J&&100*Math.random()<c.X,ur=!1,ar=!1,cr=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.results=null,this.browser=new b,this.recorder=new bt(c.h,this.browser),this.recorder.addLoadPerfData(c.k,1,sn(er),er),this.Nt=null,this.jt=null,this.xt=null,this.Lt={},this.Bt=[]}var t,r=n.prototype;return r.check=function(){var n=this,t=new p,r=Date.now();return(function(n){if(rr)return rr;var _callback={};return new(function(){_callback.l=!!!(function(n){var r={};function t(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var i in n)t.d(e,i,(function(r){return n[r]}).bind(null,i));return e},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="",t(t.s=0)})([function(n,r,t){"use strict";t.r(r);var e="function";function i(n){return n?typeof window.getComputedStyle===e?window.getComputedStyle(n,null):void 0!==n.currentStyle?n.currentStyle:n.style:{}}function o(n,r,t,u){var c=n[u]||typeof n.getBoundingClientRect===e&&n.getBoundingClientRect()[t]||0;if(r&&(function(n){var r=i(n);return r.display?"inline"===r.display:0===n.clientHeight&&0===n.clientWidth})(n)){for(var a=0,f=0;f<n.children.length;f++)a=Math.max(a,o(n.children[f],!0,t,u));if(a>c)return a}return c}function u(n){return null==n.parentNode||!(function(n){var r=i(n);return"none"!==r.display&&"hidden"!==r.visibility})(n)||0===(function(n,r){try{return o(n,void 0,"height","clientHeight")}catch(n){return 0}})(n)&&0===(function(n,r){try{return o(n,void 0,"width","clientWidth")}catch(n){return 0}})(n)}function c(n,r,t){var e="";for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e=t?"important":"",n.style.setProperty?n.style.setProperty(i,r[i],e):n.style[i]=r[i]+(e?"!"+e:""));return n}function a(n,r,t){var e=r||1,i=t||r||1;return c(n,{width:i+"px",height:e+"px",position:"fixed",left:"-"+(i-1+11)+"px",top:"-"+(e-1+11)+"px"},!0),c(n,{display:"block"},!1),n}function f(n){try{var r=document.createElement("link");return r.rel="preconnect",r.href=n,document.head.appendChild(r),function(){try{document.head.removeChild(r)}catch(n){}}}catch(n){}return function(){}}var d="https://tpc.googlesyndication.com",v="1-0-37";function s(n){var r=n.browser,t=n.detections,e=n.config,i=n.domReady,o=n.createElement,c=(n.debugLog,n.eventListen),s=n.waitPerf;if(!(0,n.isFunction)(window.postMessage)||r.isSafari())return Promise.resolve();var l=document,m=f(d),k=e.u||5e3,w=!1,g=!1,h=!1;return i(l).then((function(){return new Promise((function(n){if(l.body){var r,t,i=o(l,"iframe"),f=Math.round(100*(Math.random()+5))+"",m=0,$=!1,T=[d,"safeframe",v,"html/container.html"].join("/");i.setAttribute("src",T),i.id="admrl-sf__test",i.allowTransparency="true",i.style.border="0",i.style.verticalAlign="bottom",a(i,e.k[0],e.k[1]),i.scrolling="no",i.frameBorder=0;var y='<script>window.parent && window.parent.postMessage("'+f+'","*")<\/script>';i.name=v+";"+y.length+";"+y+"{}",window.addEventListener("message",P,!1),c("load",i,L),s(T,k).promise.then((function(n){var e=n.entry,i=n.supported;r=e,t=i,e?L():(b(),_(),p())})),Node.prototype.appendChild.call(l.body,i),m=setInterval((function(){b()&&p()}),100)}else n();function P(n){n.data===f&&n.origin===d&&(h=!0,p())}function p(){clearInterval(m);try{window.removeEventListener("message",P,!1),i.parentNode.removeChild(i)}catch(n){}n()}function b(){if(u(i))return w=!0,g=!0,!0}function _(){if(t&&(!r||0===r.duration))return w=!0,!0}function L(){if(!$){if($=!0,clearInterval(m),b())return void p();setTimeout((function(){h||(_(),b()),p()}),e.g)}}}))})).then((function(){h&&t.disabled(8),w&&t.blocked(8,g),m()}))}function l(n){var r=n.detections,t=n.config,e=n.domReady,i=n.createElement,o=(n.debugLog,n.recorder),f=document,d=Node.prototype.appendChild;function v(n,r,e){var o=a(i(n,r),t.h),u=i(n,"span");return c(u,{color:"transparent"}),u.innerText=t.$,d.call(o,u),d.call(n.body,o),o}var s=t.T||[],l=t.P,m=t._||[],k=[],w=[];return e(f).then((function(){var n=l?v(f,l):null;n&&k.push(n);var r=s.map((function(n){return v(f,n)})),t=m.map((function(n){return v(f,n)}));return!(r.length<1)&&(k=k.concat(r).concat(t),new Promise((function(e){var i=0,o=0;function c(){var c=!1;if(++o<=3){if(c=!0,n&&u(n))c=!1;else for(var a=0;a<r.length;a++)if(s[a],!u(r[a],s[a])){c=!1;break}w=[];for(var f=0;f<t.length;f++)m[f],u(r[f])&&w.push(f)}(c||o>=3)&&(clearInterval(i),e(c))}setTimeout(c,0),i=setInterval(c,100)})))})).then((function(n){n?r.blocked(1,!0):r.disabled(1),m[0]&&o.addInvestigationData(12,0,w);for(var t=k.splice(0,k.length),e=0;e<t.length;e++)try{t[e].parentNode.removeChild(t[e])}catch(n){}}))}var m,k=(new Date).getDate()+(window.location.hostname||"z").charCodeAt(0);function w(n,r,t){for(var e=0,i=0;i<r.length;i++)e+=r[i][1]-r[i][0]+1;var o=0;for(e>0&&(o=n(e)),e=0,i=0;i<r.length&&!(o<(e+=r[i][1]-r[i][0]+1));i++);return o-(e-r[i][1]-1)+(0|t)}function g(n,r){for(var t=[],e=0;e<r.length;e++)for(var i=(r[e].v>0?n(r[e].v):0)+r[e].l;i>0;i--)r[e].c&&r[e].c.length>0&&t.push(w(n,r[e].c,r[e].s));for(var o=0;o<t.length;o++)t[o]=String.fromCharCode(t[o]);return t.join("")}function h(n){return r=n||k,t=Math.pow(2,31),e=1073741823,function(n){return((r=(1103515245*r+12345)%t)&e)/e*n|0};var r,t,e}function $(n){var r=n.L,t=n.I,e=n.R,i=n.S,o=n.A,c=n.M,f=(n.N,n.U),d=n.O,v=n.j,s=n.D;return new Promise((function(n,l){var k=[],w=[],h=!1;try{!(function $(T){if(t&&t[T])(P=t[T],p=P.src,b=P.tag,_=p.replace(/\$rs/g,(function(){return(function(n){return g(n,[{c:[[97,122]],l:5,v:2}])})(c)})).replace(/\$ri/g,(function(){return(function(n){return g(n,[{c:[[49,57]],l:1},{c:[[48,57]],l:5,v:2}])})(c)})),L="img"===b,I="script"===b,R=window.location.origin||"",S=r.u||5e3,new Promise((function(n){Date.now();var t,e,c=f(o,b),l=null,k=!1,w=!1,g=!1,h=0,$=0,T=v(_,S),y=T.promise,P=T.cancel;function p(){function r(){P(),clearTimeout(h),clearInterval($),c.removeEventListener("error",t,!1),c.removeEventListener("load",e,!1);try{c.parentNode.removeChild(c)}catch(n){}}l?l.then(r):r(),n({hidden:l,errored:w,loaded:g,blocked:k})}t=function(){w=!0,p()},e=function(){if(L&&"CanvasRenderingContext2D"in window&&R&&R!==(function(n){try{return new URL(n,window.location).origin}catch(n){}})(_))try{var n=f(o,"canvas"),t=n.getContext("2d");return n.height=r.k[0]||1,n.width=r.k[1]||1,t.drawImage(c,0,0),n.toDataURL(),k=!0,void p()}catch(n){}if(I&&null==m)try{var e=Array.prototype.slice.call(document.scripts||[]).filter((function(n){return n&&n.src===r.H}));if(e&&e.length>0||d(r.H)){var i="googletag";m=!(!window[i].apiReady||s(window[i].enableServices)&&!window[i].enableServices.toString().match(/{}$/))}}catch(n){}setTimeout(P,r.g),y.then((function(n){var r=n.entry,t=n.supported;r?g=!(k||I&&m):k=t,p()}))},c.addEventListener("error",t,!1),c.addEventListener("load",e,!1),h=setTimeout((function(){p()}),S);try{var A;c.setAttribute("src",_),I?(A="head",c.async=!0):L&&(A="body",c.decoding="async",a(c,r.k[0],r.k[1])),Node.prototype.appendChild.call(o[A],c),!i&&L&&(l=new Promise((function(n){var t=10;$=setInterval((function(){var r=!u(c);(--t<=0||!r)&&(n(!r),clearInterval($))}),r.C/t)})))}catch(n){p()}}))).then((function(n){var r=n.hidden,t=n.errored,i=n.blocked,o=n.loaded;r&&k.push(r),h=h||o,e&&o?$():((t||i)&&w.push(T),$(T+1))})).catch(l);else{var y={loaded:h&&0===w.length,fails:w};k.length>0?Promise.all(k).then((function(r){for(var t=r.length>0,e=0;e<r.length;e++)if(!r[e]){t=!1;break}y.hidden=t,n(y)})).catch((function(r){n(y)})):n(y)}var P,p,b,_,L,I,R,S})(0)}catch(n){l(n)}}))}function T(n){return null!=n}function y(n){var r=n.browser,t=n.detections,e=n.config,i=n.domReady,o=n.debugLog,u=n.createElement,c=n.getPerfStats,a=n.waitPerf,d=n.isFunction,v=n.recorder;if(!d(window.addEventListener)||r.isIE())return Promise.resolve();var s,l=e.F||[],k=e.G||[],w=document,g=h(),y=function(n,r,t){var i=n.map((function(n){return{src:n,tag:"img"}})).concat(r.map((function(n){return{src:n,tag:"script"}})));return $({L:e,I:i,R:t,A:w,M:g,N:o,U:u,O:c,j:a,D:d})};try{var P=new URL(l[0],window.location).origin;P&&(s=f(P))}catch(n){}return i(w).then((function(){return w.body?y(l,k,"img").then((function(n){return{loaded:n.loaded,failed:n.fails&&n.fails.length===l.length+k.length,hidden:n.hidden}})):{}})).then((function(n){var r=n.loaded,i=n.failed,o=n.hidden,u=t.disabled.bind(t),c=t.blocked.bind(t);r?u(2):i&&c(2,!1),o?c(512,!0):T(o)&&u(512);var a=m;a?c(32768,!0):T(a)&&u(32768),s&&s();var f=e.W||[],d=e.V||[];(f[0]||d[0])&&100*Math.random()<e.X&&setTimeout((function(){Promise.all([y(d,[],!1),y([],f,!1)]).then((function(n){var r=n[0],t=n[1];f[0]&&v.addInvestigationData(13,0,t.fails),d[0]&&v.addInvestigationData(14,0,r.fails)}))}),1e3)}))}function P(n){var r=n.browser,t=n.detections,e=(n.debugLog,n.domReady),i=n.createElement,o=n.config;function c(n,r,t){var e=a(i(n,r),t||o.h);return n.body.appendChild(e),e}if(r.isIE())return Promise.resolve();var f=document,d=[];return e(f).then((function(){var n=!1;if(o.q){var r=c(f,o.q);if(d.push(r),u(r)){var t=c(f,o.P);if(d.push(t),u(t))return;n=!0}}return n})).then((function(n){n&&t.blocked(1024);for(var r=0;r<d.length;r++)try{d[r].parentNode&&d[r].parentNode.removeChild(d[r])}catch(n){}return n}))}function p(n){var r=n.detections;return n.rng=h(),n.testIMGJS=$,(function(n){var r=n.config,t=n.rng,e=n.timeoutPromise,i=n.testIMGJS,o=n.debugLog,u=n.createElement,c=n.getPerfStats,a=n.waitPerf,f=n.isFunction,d=r.B;return d?e(new Promise((function(n){var e="&rn="+t(1e5);r.J&&(e+="&"+r.J);var v={L:r,I:[{src:d+"?ch=2"+e,tag:"img"},{src:d+"?ch=1"+e,tag:"img"}],R:!0,kskipHiddenImg:!0,A:document,M:t,N:o,U:u,O:c,j:a,D:f,K:"img"};i(v).then((function(r){var t=r.fails.length,e={hidden:r.hidden};1===t?0===r.fails[0]?e.status=1:e.status=2:e.status=t>0?3:2,n(e)}))})),5e3):Promise.resolve()})(n).then((function(n){if(n){var t=n.status;1===t?r.blocked(4096,n.hidden):3===t&&r.blocked(65536,n.hidden)}})).catch((function(){}))}var b=8192;function _(n){var r=n.detections,t=n.domReady,e=(n.debugLog,n.isFunction),i=n.isString,o=n.waitPerf,u=n.config,c=n.recorder;function a(n,r){return n=n.replace(/\$rd/g,(function(){return(function(n){return g(n,[{c:[[49,57]],l:5,v:2},{c:[[46,46]],l:1},{c:[[48,57]],l:1,v:2}])})(r)})),new Promise((function(r){var t={mode:"no-cors"},c=u.u||5e3,a=0;"AbortSignal"in window&&e(AbortSignal.timeout)?t.signal=AbortSignal.timeout(c):a=setTimeout((function(){r({})}),c);var f=o(n,c),d=f.promise,v=f.cancel;return fetch(n,t).then((function(n){if(a&&clearTimeout(a),n&&"opaque"===n.type)return setTimeout(v,u.g),void d.then((function(n){var t=n.entry,e=n.supported;r(t?{loaded:!0}:{blocked:e})}));v(),r({blocked:n&&i(n.url)&&0===n.url.indexOf("data:")})}),(function(n){a&&clearTimeout(a),v(),r({})}))}))}return e(window.fetch)?t(document).then((function(){if(!r.hasDisabledFlag(2)){var n=h(),t=u.Y||[];return new Promise((function(e,i){var o=!1;try{!(function u(c){if(!t[c])return o&&r.blocked(b),void e();a(t[c],n).then((function(n){var t=n.loaded,i=n.blocked;return t?(r.disabled(b),void e()):i?(r.blocked(b),void e()):(o=!0,void u(c+1))})).catch(i)})(0)}catch(n){i(n)}})).then((function(){var r=u.Z||[];r[0]&&100*Math.random()<u.X&&setTimeout((function(){Promise.all(r.map((function(r){return a(r,n)}))).then((function(n){for(var r=[],t=0;t<n.length;t++)n[t]&&!n[t].loaded&&r.push(t);c.addInvestigationData(15,0,r)}))}),1e3)}))}})):Promise.resolve()}var L={nn:[[1,2]],h:"32",P:".imprtnt-cnt",T:['.stickyads','.ads_banner'],_:[],$:"sponsored",u:5000,G:['https://static.ads'+'afeprotected.com/sk'+'eleton.js?adslo'+'t=$rs_728x90_'],W:['https://pubads.g.dou'+'bleclick.net/adsid/inte'+'grator.json?adslo'+'t=$rs_728x90_'],H:'https://www.goo'+'gletagser'+'vices.com/tag/js/gp'+'t.js',F:['https://static.a'+'dsafeprot'+'ected.com/skeleto'+'n.gif?adslo'+'t=$rs_728x90_'],V:[],X:0,k:[728,90],C:250,Y:['https://adse'+'rver.adtech.adve'+'rtising.com/pubap'+'i/3.0/1/$rd/0/0/ADTE'+'CH;v=2;cmd=bid;cors=yes'],Z:[],B:"https://merequartz.com/aadetect/px.gif",J:'adunit'+'id=$rs&adn'+'um=$ri',q:"#getadmiral_com_filterlist_installed",rn:"video",tn:"//admiral-has-personalized.invalid",g:300};_callback.f=function(n){n.debugLog;var r=n.timeoutPromise,t=n.recorder,e=n.overwrite,i=L.nn;return Promise.resolve({check:function(o){var u=o.detections,c=o.runAllGroups,a=o.browser,f=o.timeout,d={},v=Promise.resolve(),m=new Promise((function(r,o){if(a.isWhitelisted())r();else{var f={1:l,2:y,8:s,1024:P,4096:p,8192:_},m={};try{!(function n(t){var e=[];if(i[t]&&i[t].length>0){for(var a=0;a<i[t].length;a++)e.push(k(f[i[t][a]],i[t][a]));Promise.all(e).then((function(){c||!u.hasDisabledAdBlocker()?n(t+1):r()})).catch(o)}else{for(var d in f)f.hasOwnProperty(d)&&e.push(k(f[d],d));Promise.all(e).then(r,o)}})(0)}catch(n){o(n)}}function k(r,i){if(!r||m[i])return v;if(m[i]=!0,!u.enabled(i))return v;try{return d[i]=!0,r(e({config:L,browser:a,detections:u},n)).catch((function(n){throw d[i]=!1,n})).then((function(n){return d[i]=!1,n}))}catch(n){return t.setError(n,"detector"+i),Promise.reject(n)}}}));return f>0&&(m=r(m,f)),m.catch((function(n){if("timedout"!==n)throw n;var r=[];for(var e in d)d.hasOwnProperty(e)&&d[e]&&r.push(e);t.addInvestigationData(6,0,r)}))}})}}]);}),_callback.l?rr=_callback.f({debugLog:Et,timeoutPromise:St,recorder:n,overwrite:o,domReady:Jt,isFunction:f,isString:d,createElement:_t,getPerfStats:sn,waitPerf:dn,eventListen:zt}):Promise.resolve()})(this.recorder).then((function(r){return(0,r.check)({detections:t,runAllGroups:!!T(bn),browser:n.browser,timeout:15e3,applyHacks:l})})).then((function(){return t.hasBlockerFlag(1024)&&n.recorder.addInvestigationData(9),St(l(document,n.browser,t),5e3)})).then((function(){var i=Date.now(),e=tt.get(),o=e.engageRendered;o&&(e.lastGAMKVPs||n.recorder.addInvestigationData(17),tt.set({engageRendered:o}));var u=e.userEngaged;!o&&u&&(tt.set({engageRendered:u}),n.recorder.addInvestigationData(18));var a=i-parseInt(e.whitelistAdded,10)<108e5,c=t.hasAdBlocker(),s=t.hasDisabledAdBlocker(),f=c&&!s,d={hasAdBlocker:c,disabledAdBlocker:s,blocked:f,blockerScore:t.blockerScore(),disabledScore:t.disabledScore(),recovered:(o||u)&&!f,engageRendered:o,flags:t.blockerFlags(),disabledFlags:t.disabledFlags(),duration:Math.max(0,i-r),hacksFlags:t.hacksFlags(),pageviewID:"",hasAdmiralList:t.hasBlockerFlag(1024),hasAA:t.hasBlockerFlag(4096),recentlyWhitelisted:a,blockerType:t.blockerType()};return n.results=d,d})).catch((function(t){n.recorder.setError(t,"check")}))},r.Ut=function(n){var t=this.results;t&&(this.recorder.addData("pageview",{results:t,consentApplies:n},er),this.recorder.setIsBlocking(t.blocked),this.recorder.addDetectorPerfData(t.flags,t.disabledFlags,t.blockerScore,t.disabledScore,t.duration,t.hacksFlags))},r.Ht=function(){return this.jt||Promise.reject("consent not initialized")},r.qt=function(){var n=this;if(!c.V)return this.jt=Promise.resolve({exists:!1,applies:!1}),this.jt;var t=function(t){var r=t._private,i=(void 0===r?function(){return{}}:r)().reportingData,e=void 0===i?{}:i,u=tt.get().cmpConsentID;u&&(e=o({cmpConsentID:u},e)),n.recorder.setCMPCommonData(e)},r=function(n){var t=n.consentKnown,r=n.tcData,i=void 0===r?{}:r,e=n.tcfVersion,o=n._private,u=(void 0===o?function(){return{}}:o)(),a=u.cmpClient,c=void 0===a?{}:a,s=u.applies,f=void 0!==s&&s,d=u.consent,h=void 0===d?{}:d;return{exists:t,cmpClient:c,tcData:i,applies:f,consent:h||{},status:h&&h.consentStatus||4,tcfVersion:e}};return Mn("cmp.updated",(function(i){t(i),n.jt=Promise.resolve(r(i))})),this.jt||(this.jt=new Promise((function(n){Mn("cmp.loaded",(function(i){t(i),n(r(i))}))}))),this.jt},r.Ft=function(){return this.xt||Promise.reject("consent not initialized")},r.Wt=function(){var n=this;if(!c.F||c.W)return this.xt=Promise.resolve({exists:!1}),this.xt;var t=function(t){t.state;var r=t._private,i=(void 0===r?function(){return{}}:r)().reportingData,e=void 0===i?{}:i;n.recorder.setCCPACommonData(e)},r=function(n){var t=n.state;return{exists:!!t,state:t,applies:n.applies}};return Mn("ccpa.updated",(function(i){t(i),n.xt=Promise.resolve(r(i))})),this.xt||(this.xt=new Promise((function(n){Mn("ccpa.loaded",(function(i){i&&i.state?(t(i),n(r(i))):n({exists:!1,state:"",applies:!1})}))}))),this.xt},r.Vt=function(){return this.zt||Promise.reject("consent not initialized")},r.Gt=function(){var n=this;if(!c.W)return this.zt=Promise.resolve({exists:!1}),this.zt;var t=function(t){t.applies,t.state;var r=t._private,i=(void 0===r?function(){return{}}:r)().reportingData,e=void 0===i?{}:i,u=tt.get().usnatCMPConsentID;u&&(e=o({usnatCMPConsentID:u},e)),n.recorder.setUSNatCommonData(e)},r=function(n){var t=n.applies,r=n.state;return{exists:!!r,applies:t,state:r}};return Mn("usnat.updated",(function(i){t(i),n.zt=Promise.resolve(r(i))})),this.zt||(this.zt=new Promise((function(n){Mn("usnat.loaded",(function(i){i?(t(i),n(r(i))):n({exists:!1,applies:!1})}))}))),this.zt},r.Jt=function(n,t){var r=this;this.Ut(t);var i=this.recorder.record(n||new Un(window.location));return i.then((function(n){ar||(ar=!0,r.Xt(n));var t,i=or&&!ur;i?(ur=!0,t=r.recorder.testRecord(c.K,c.J)):t=Promise.resolve(),t.catch(ir).then((function(){i&&r.recorder.recordMetrics(!0)}))})),i},r.Xt=function(n){var t=this.results||{},r=!!t.blocked,i=!!t.hasAA,e=!!t.recovered,o=!(!n||!n.subscription||!0!==n.subscription.subscriptionExists);if(c.an){var u={adblocking:r,subscribed:o,whitelisted:e};c.En&&(u.isAA=i,u.aaEnabled=i),On("measure.detected",u)}o?en(n.entries).then((function(){On("transact.subscribed",{offers:n.entries,benefits:rn(n.entries)})})):en([])},r.Kt=function(){var n=this;return nr?Promise.resolve():this.Nt||(this.Nt=Ct(Sn(c.U),!0).then((function(){n.Qt=!0})).catch((function(t){n.recorder.setError(t,"cmpload")})))},r.Zt=function(n){var t=this;this.Yt().then((function(){var r=[];if(n.forEach((function(n){t.Lt.hasOwnProperty(n)&&r.push(t.Lt[n])})),n.length<1||r.length==n.length)return Promise.all(r);var i=window.CSS;i&&i.supports("grid-row","1")||(n=n.map((function(n){return n+"-compat"})));var e=c.Pn;if(!e)return Promise.reject("missing template path");var o,u,a=Ct(Sn("".concat(e,"/").concat((o=n,u={},(o||[]).reduce((function(n,t){return u[t]||(u[t]=!0,n.push(t)),n}),[])).join(","))),!0).then((function(n){n&&n.src&&t.recorder.addLoadPerfData(c.wn,1,sn(n.src))}));return n.forEach((function(n){t.Lt[n]=a})),a}))},r.nr=function(n,t){var r=this;n=n||[];var i=$n(),e=_n(i),u=[],a=[],s=[],f=null;return n.forEach((function(n){-1===r.Bt.indexOf(n.candidateID)&&r.Bt.push(n.candidateID);var t=n.payload=n.payload||{};switch(n.payloadType){case"template":u.push(n),"ConsentManager"!==t.name&&"GPPConsentManager"!==t.name&&"USNational"!==t.name||s.push(r.Kt());break;case"cmp":a.push(n),s.push(r.Kt()),n.candidateID&&(t.candidateID=n.candidateID),n.groups&&(t.groups=n.groups),n.batchID&&(t.batchID=n.batchID),s.push(new Promise((function(n){Rn("show","cmp.main",t,n)})));break;case"engage":u.push(o({},n,{payloadType:"template",payload:{metadata:{preview:i,engageType:t.type},name:"soft"===t.type?"BannerEngage":"ModalEngage",options:t,container:t.container||"body",replace:!!t.replace}}));break;case"transact":a.push(n);break;case"ccpa":e.Tn.includes(n.candidateID)&&Rn("show","ccpa.main"),a.push(n),f=n;break;case"sticky":u.push(o({},n,{payloadType:"template",payload:{metadata:{preview:i},name:"Sticky",options:t,container:"body"}}))}})),c.F&&!c.W&&Rn("triggerEvent","ccpa.settingsLoaded",f),On("candidate.received",{candidates:(u||[]).map((function(n){var t=n.candidateID,r=n.groups;return{candidateID:t,groups:r,candidateGroups:r}}))}),u.length>0&&s.push(this.Zt(u.filter((function(n){var t=n.payload;return!(!t||t.provider||!t.name)})).map((function(n){var t=n.payload;return t&&t.name})))),Promise.all(s).then((function(){var n="template.candidates";Rn("get",n,(function(r,i){i?r.dataCandidates=t?a:a.reduce((function(n,t){for(var r=0;r<n.length;r++)if(n[r]&&n[r].candidateID===(t&&t.candidateID))return n[r]=t,n;return n.concat([t])}),r.dataCandidates):r={dataCandidates:a},r.templateCandidates=u,r.time=Date.now(),Rn("set",n,r)}))})).then((function(){t&&u.forEach((function(n){var t=((n||{}).payload||{}).name;Rn("show",t,{candidate:n,dataCandidates:a})}))}))},r.Yt=function(){var n=this;return new Promise((function(t){Rn("get","template.env",(function(r,i){if(i)return t(r);Promise.all([new Promise((function(n){return Rn("get","engage.instructions.url",(function(t,r){return n(r?t:void 0)}))})),new Promise((function(n){return Rn("get","engage.whitelist.url",(function(t,r){return n(r?t:void 0)}))})),St(n.Ht(),5e3).catch((function(n){return{failed:!0}})),n.recorder.getCookieData()]).then((function(r){var i=r[0],e=r[1],u=r[2],a=r[3],s={_private:function(){return o({hasAdmiralList:n.results&&n.results.hasAdmiralList,cmpClient:u&&u.cmpClient,browser:n.browser,params:{forceLogin:T("forceLogin")},languagePrefs:c.T||navigator.language||navigator.userLanguage},a.sessions)}};i&&(s.defaultInstructionsURL=i),e&&(s.defaultWhitelistURL=e),Rn("getOrSet","template.env",s),t(s)}))}))}))},n.start=function(){try{new fr}catch(n){}var t=new n;if((function(n){var t,r=u.u,i=u.P;try{t=qt[r]||qt[i]}catch(n){t=qt[i]}if(!t||!t.loaded){var e=t||{},o=e.q||[],a=new Ht(n,e.v).fn();try{qt[i]=qt[r]=a}catch(n){qt[i]=a}!(function(n,t){function r(n,r,i){var e={};function o(t,e){e={_:t,_a:JSON.stringify(e),_ach:i};try{return n.postMessage(e,r),!0}catch(n){}return!1}function u(n,r,i){n&&t("removeEventListener",n,i||e[r]),delete e[r]}return function(n){var r=n.data;if(r&&r._a){var i=r._,a=r._a;try{a=JSON.parse(a)}catch(n){return}if(2===i)u(a.r,a.cb);else{if(a.cb){var c=a.cb;a.cb=function n(){e[c]&&o(1,{cb:c,a:xt(arguments)})||u(a.l,c,n)},e[c]=a.cb}t.a.pm(i,a)}}}}var i={},e=1;n.addEventListener("message",(function(t){var o=t.data,u=t.origin,a=t.source,c=t.ports;if(o&&o._a){if(a.top!==n.top)return;if(c&&1===c.length)c[0].onmessage=r(c[0]),c[0].onmessage({data:o});else{var s=i[o._ach];o._ach||(o._ach=e++,s=i[o._ach]=r(a,u,o._ach)),s&&s({data:o})}}}),!1)})(qt,a);for(var c=0;c<o.length;c++)a.apply(null,o[c])}})(new Zt(t.recorder)),t.browser.isDisabled())return Promise.resolve();nr=(new sr).l,On("_recorder",{recorder:t.recorder}),t.qt(),t.Wt(),t.Gt();var r,i=new Hn,e=document.location;if(e&&"file:"===e.protocol)return Promise.resolve();Mn("call.targeting.render",(function(n){var r=n.candidateIDs,i=n.variantIDs,e=n.overrides,o=n.force,u=void 0!==o&&o;return r&&(t.Bt=t.Bt.concat(r||[])),t.recorder.fetchCandidates({candidateIDs:r,variantIDs:i,overrides:e}).then((function(n){var r=n.candidates;return t.nr(r,u)}))})),Mn("engage.oneClickWhitelisted",(function(){return tt.set({whitelistAdded:Date.now()})})),Mn("view.rendered",(function(n){var r=n.candidates,i=void 0===r?[]:r,e=n.preview,o=void 0!==e&&e,u=n.extras,a=(t.results||{}).blocked;i.forEach((function(n){var t=n.candidateID,r=n.groups,i=n.payloadType,e=n.triggers;!o&&u&&a&&(u[t]&&u[t].whitelistAsk||(e||[]).find((function(n){return n&&"adblockerDisabled"===n.type})))&&tt.set({engageRendered:Date.now()}),"template"===i&&On("candidate.shown",{candidateID:t,groups:r,candidateGroups:r})}))})),Mn("view.closed",(function(n){var t=n.candidates,r=void 0===t?[]:t,i=n.callback,e=void 0===i?function(){}:i;r.forEach((function(n){var t=n.candidateID,r=n.groups;"template"===n.payloadType&&On("candidate.dismissed",{candidateID:t,groups:r,candidateGroups:r})})),e({})})),Mn("template.load",t.Zt.bind(t));var a=Pn();return a?(Mn("previewCandidates",(function(n){var r=n.candidates;t.nr(r||[],!0)})),r=t.Yt().then((function(){return On("previewready",{v:2}),[]}))):(r=Promise.all([t.check(),St(t.Ht(),5e3).catch((function(n){return"timedout"===n&&t.recorder.addInvestigationData(7),{failed:!0}})),St(t.Ft(),5e3).catch((function(n){return"timedout"===n&&t.recorder.addInvestigationData(11),{failed:!0}})),St(t.Vt(),5e3).catch((function(n){return"timedout"===n&&t.recorder.addInvestigationData(16),{failed:!0}}))]).then((function(n){var r=n[1],e=n[2],u=n[3],a=0;return r&&r.applies&&(a|=1),e&&e.applies&&(a|=2),u&&u.applies&&(a|=4),new Promise((function(n,r){i.start((function(i){return t.Jt(i,a).then(n,r)}))})).then((function(){return(function(n){if(tr)return tr;var _callback={};return new(function(){_callback.l=!!!(function(n){var t={};function e(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return n[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var a in n)e.d(r,a,(function(t){return n[t]}).bind(null,a));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=0)})([function(n,t,e){!(function(n,t){_callback.f=function(e){e.debugLog;var r,a=e.overwrite,o=e.queryStringify,i=e.callAdmiralQueue,u=e.getBenefitsFromEntries,c=e.getSubscriptionMetadata,f=e.cleanupEntries,s=e.setBenefitsCookie,l=e.propertyID,v=e.recorder,d="https://my.getadmiral.com/",b=n;function g(n,e,r,a){var o=document.documentElement,i=b.screenLeft!==t?b.screenLeft:screen.left,u=b.screenTop!==t?b.screenTop:screen.top,c=b.innerWidth?b.innerWidth:o.clientWidth?o.clientWidth:screen.width,f=b.innerHeight?b.innerHeight:o.clientHeight?o.clientHeight:screen.height,s=Math.max(0,c/2-r/2+i),l=Math.max(0,f/2-a/2+u);return b.open(n,e,"scrollbars=yes, width="+r+", height="+a+", top="+l+", left="+s)}function m(n){return(n||"").replace(new RegExp("((?!://).)//+","g"),"$1/")}function p(n){return n&&n.fillables?n.fillables.offers||[]:n&&n.payload&&n.payload.offers||[]}function y(n){n?i("triggerEvent","transact.loggedIn",{}):i("triggerEvent","transact.loggedOut")}function I(n,e,r,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=new URL(e,b.location).origin,d=m("".concat(e,"/").concat(r,"/").concat(l).concat(a?"?".concat(a):"")),I=g(d,"trnsct",400,562),S=!1;I&&I.focus(),v.getCookieData().then((function(e){var r=e.sessions||{},a=r.realmSessionID,l=r.sessionID,d={type:"onReady",options:{transact:{offers:p(n)}},realmSessionID:a,visitorSessionID:l,metadata:o,localData:e.localData};function g(n){var e=n.origin||n.originalEvent.origin;e===c&&n.data&&(null!=n.data.realmSessionID&&v.saveSession({realmSessionID:n.data.realmSessionID},!0,n.data.isLoggedIn||n.data.success||n.data.isSubscribed),!0!==n.data.success?(!0===n.data.ready&&(S=!0,(n.data.needsData||n.data.needsData===t)&&I.postMessage(d,e)),!0===n.data.isSubscribed&&I.postMessage({type:"onSubscribed",notified:!0},e),"boolean"==typeof n.data.isLoggedIn&&(y(n.data.isLoggedIn),n.data.isLoggedIn||s([]))):s(n.data.entriesMetadata).then((function(){i("triggerEvent","transact.subscribed",{offers:f(n.data.entriesMetadata),benefits:u(n.data.entriesMetadata)}).then((function(){n.data.returnURL?b.location=n.data.returnURL:b.location.reload()}))})))}b.addEventListener("message",g),b.addEventListener("beforeunload",D,!1);var m=setInterval((function(){I.closed?O():S?clearInterval(m):I.postMessage(d,c)}),250);function D(){try{O(),I.close()}catch(n){}}function O(){clearInterval(m),b.removeEventListener("message",g),b.removeEventListener("beforeunload",D,!1)}}))}return i("addSetter","template.candidates",(function(n){for(var t=n.dataCandidates,e=0;t&&e<t.length;e++)t[e]&&"transact"===t[e].payloadType&&(r=t[e])})),["complete","subscribe","login","signup","manage"].forEach((function(n){i("registerView","transact.".concat(n),(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,u=t&&t.transactCandidate||r,f=a({transactCandidate:u},t,{metadata:a({tcID:u&&u.candidateID},c(),t.metadata)});v.getCookieData().then((function(r){var c,s=r.sessions||{},l=s.realmSessionID,v=s.sessionID;if(f.offerID)c=f.offerID;else{var g=p(u);c=("login"===n?g.filter((function(n){return!n.paymentOption.donation})):g).map((function(n){return n.offerID})).join(",")}var y=o(a({offerID:c,returnURL:f.returnURL||b.location+"",realmSessionID:l,visitorSessionID:v,localData:r.localData||void 0,metadata:f.metadata?JSON.stringify(f.metadata):void 0,gift:f.gift||void 0},t._queryOptions));i("get","transact.url",(function(t){I(u,t||m(d+"/"),n,y,f.metadata),e&&e()}))}))}))})),Promise.resolve()}})(window)}]);}),_callback.l?tr=_callback.f({debugLog:Et,overwrite:o,queryStringify:Vt,callAdmiralQueue:Rn,getBenefitsFromEntries:rn,getSubscriptionMetadata:nn,cleanupEntries:tn,setBenefitsCookie:en,recorder:n,propertyID:c.h}):Promise.resolve()})(t.recorder).then((function(){return n}))}))})),setTimeout((function(){c.Sn&&c.Cn&&Ct(c.Sn+"&pub="+c.Cn)}),100)),r.then((function(n){var r=n[0],i=n[1],e=n[2];if(t.browser.isInteractable())return new Promise((function(n){return Rn("targeting","onReady",n)})).then((function(n){return c.an?a?{}:(r&&r.recentlyWhitelisted&&(r.blocked=!1),t.recorder.fetchCandidates({results:r,cmpStatus:i,ccpaStatus:e,customParams:n,shownCandidates:t.Bt})):{}})).then((function(n){var r=n.candidates,i=void 0===r?[]:r;return t.nr(i,!1)}))})).then((function(){setTimeout((function(){t.recorder.recordMetrics()}),1e3)})).catch((function(n){throw n}))},t=n,Object.defineProperty(t,"prototype",{writable:!1}),t})();function sr(){this.l=!!/*! For license information please see gppClient.min.js.LICENSE.txt */
!(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}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"==typeof 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=1)})([,function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"addDataFormatters",(function(){return Ho}));var u=i((function e(t,n,r,i){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),o(this,"eventName",void 0),o(this,"listenerId",void 0),o(this,"data",void 0),o(this,"pingData",void 0),this.eventName=t,this.listenerId=n,this.data=r,this.pingData=i}));function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=a((function e(t){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),f(this,"gppVersion",void 0),f(this,"cmpStatus",void 0),f(this,"cmpDisplayStatus",void 0),f(this,"signalStatus",void 0),f(this,"supportedAPIs",void 0),f(this,"cmpId",void 0),f(this,"sectionList",void 0),f(this,"applicableSections",void 0),f(this,"gppString",void 0),f(this,"parsedSections",void 0),this.gppVersion=t.gppVersion,this.cmpStatus=t.cmpStatus,this.cmpDisplayStatus=t.cmpDisplayStatus,this.signalStatus=t.signalStatus,this.supportedAPIs=t.supportedAPIs,this.cmpId=t.cmpId,this.sectionList=t.gppModel.getSectionIds(),this.applicableSections=t.applicableSections,this.gppString=t.gppModel.encode(),this.parsedSections=t.gppModel.toObject()}));function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(function(){function e(t,n,r){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),h(this,"callback",void 0),h(this,"parameter",void 0),h(this,"success",!0),h(this,"cmpApiContext",void 0),this.cmpApiContext=t,Object.assign(this,{callback:n,parameter:r})}var t,n;return t=e,(n=[{key:"execute",value:function(){try{return this.respond()}catch(e){return this.invokeCallback(null),null}}},{key:"invokeCallback",value:function(e){var t=null!==e;this.callback&&this.callback(e,t)}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function w(e,t){if(t&&("object"==typeof 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)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var O=(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&&p(e,t)})(c,e);var t,n,r,i,o=(r=c,i=(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=y(r);if(i){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function c(){return b(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"respond",value:function(){var e=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),t=new u("listenerRegistered",e,!0,new s(this.cmpApiContext));this.invokeCallback(t)}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c})(v);function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function S(e,t){if(t&&("object"==typeof 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)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var E=(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&&m(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=k(r);if(i){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function u(){return j(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"respond",value:function(){var e=new s(this.cmpApiContext);this.invokeCallback(e)}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(v);function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function I(e,t){if(t&&("object"==typeof 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)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var P=(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&&C(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=x(r);if(i){var n=x(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return I(this,e)});function u(){return R(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("<section>.<field> parameter required");var e=this.parameter.split(".");if(2!=e.length)throw new Error("Field name must be in the format <section>.<fieldName>");var t=e[0],n=e[1],r=this.cmpApiContext.gppModel.getFieldValue(t,n);this.invokeCallback(r)}}])&&T(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(v);function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function B(e,t){if(t&&("object"==typeof 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)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var M=(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&&N(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=D(r);if(i){var n=D(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function u(){return V(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("<section> parameter required");var e=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(e=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(e)}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(v);function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function $(e,t){if(t&&("object"==typeof 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)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var G,W=(function(e){!(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=_(r);if(i){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function u(){return F(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("<section>[.version] parameter required");var e=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(e)}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(v);function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J(e,t)}function K(e,t){if(t&&("object"==typeof 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)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}!(function(e){e.ADD_EVENT_LISTENER="addEventListener",e.GET_FIELD="getField",e.GET_SECTION="getSection",e.HAS_SECTION="hasSection",e.PING="ping",e.REMOVE_EVENT_LISTENER="removeEventListener"})(G||(G={}));var Y,Q,X,Z,ee,te,ne=(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&&J(e,t)})(c,e);var t,n,r,i,o=(r=c,i=(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=z(r);if(i){var n=z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return K(this,e)});function c(){return q(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"respond",value:function(){var e=this.parameter,t=this.cmpApiContext.eventQueue.remove(e),n=new u("listenerRemoved",e,t,new s(this.cmpApiContext));this.invokeCallback(n)}}])&&H(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c})(v);function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Y=G.ADD_EVENT_LISTENER,Q=G.GET_FIELD,X=G.GET_SECTION,Z=G.HAS_SECTION,ee=G.PING,te=G.REMOVE_EVENT_LISTENER;var ue,ce,ae,fe,se=ie((function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}));function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oe(se,Y,O),oe(se,Q,P),oe(se,X,M),oe(se,Z,W),oe(se,ee,E),oe(se,te,ne),(function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"})(ue||(ue={})),(function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"})(ce||(ce={})),(function(e){e.GPP_LOADED="gpploaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"})(ae||(ae={})),(function(e){e.NOT_READY="not ready",e.READY="ready"})(fe||(fe={}));var be=(function(){function e(t,n){if((function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),ve(this,"callQueue",void 0),ve(this,"customCommands",void 0),ve(this,"cmpApiContext",void 0),this.cmpApiContext=t,n){var r=G.ADD_EVENT_LISTENER;if(null!=n&&n[r])throw new Error("Built-In Custom Commmand for ".concat(r," not allowed"));if(r=G.REMOVE_EVENT_LISTENER,null!=n&&n[r])throw new Error("Built-In Custom Commmand for ".concat(r," not allowed"));this.customCommands=n}try{this.callQueue=window.__gpp()||[]}catch(e){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}}var t,n;return t=e,(n=[{key:"apiCall",value:function(e,t,n,r){if("string"!=typeof e)t(null,!1);else{if(t&&"function"!=typeof t)throw new Error("invalid callback function");this.isCustomCommand(e)?this.customCommands[e](t,n):this.isBuiltInCommand(e)?new se[e](this.cmpApiContext,t,n).execute():t&&t(null,!1)}}},{key:"purgeQueuedCalls",value:function(){var e=this.callQueue;this.callQueue=[],e.forEach((function(e){var t,n;(t=window).__gpp.apply(t,(function(e){if(Array.isArray(e))return le(e)})(n=e)||(function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)})(n)||(function(e,t){if(e){if("string"==typeof e)return le(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)?le(e,t):void 0}})(n)||(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.")})())}))}},{key:"isCustomCommand",value:function(e){return this.customCommands&&"function"==typeof this.customCommands[e]}},{key:"isBuiltInCommand",value:function(e){return void 0!==se[e]}}])&&he(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=(function(){function e(t){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),pe(this,"eventQueue",new Map),pe(this,"queueNumber",1e3),pe(this,"cmpApiContext",void 0),this.cmpApiContext=t;try{for(var n=window.__gpp("events")||[],r=0;r<n.length;r++){var i=n[r];this.eventQueue.set(i.id,{callback:i.callback,parameter:i.parameter})}}catch(e){}}var t,n;return t=e,(n=[{key:"add",value:function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}},{key:"get",value:function(e){return this.eventQueue.get(e)}},{key:"remove",value:function(e){return this.eventQueue.delete(e)}},{key:"exec",value:function(e,t){var n=this;this.eventQueue.forEach((function(r,i){var o=new u(e,i,t,new s(n.cmpApiContext));r.callback(o,!0)}))}},{key:"clear",value:function(){this.queueNumber=1e3,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}])&&de(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function ye(e,t){if(t&&("object"==typeof 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)}function Oe(e){var t="function"==typeof Map?new Map:void 0;return Oe=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return je(e,arguments,Se(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),me(r,e)},Oe(e)}function je(e,t,n){return je=ge()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&me(i,n.prototype),i},je.apply(null,arguments)}function ge(){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 me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}var ke=(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&&me(e,t)})(o,e);var t,n,r,i=(t=o,n=ge(),function(){var e,r=Se(t);if(n){var i=Se(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return ye(this,e)});function o(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,e)).name="DecodingError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Oe(Error));function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Re=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){var n=[];if(e>=1)for(n.push(1);e>=2*n[0];)n.unshift(2*n[0]);for(var r="",i=0;i<n.length;i++){var o=n[i];e>=o?(r+="1",e-=o):r+="0"}for(;r.length<t;)r="0"+r;return r}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new ke("Undecodable FixedInteger '"+e+"'");for(var t=0,n=[],r=0;r<e.length;r++)n[e.length-(r+1)]=0===r?1:2*n[e.length-r];for(var i=0;i<e.length;i++)"1"===e.charAt(i)&&(t+=n[i]);return t}}],null&&Ee(t.prototype,null),n&&Ee(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Te(e,t){if(t&&("object"==typeof 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)}function Ce(e){var t="function"==typeof Map?new Map:void 0;return Ce=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ie(e,arguments,Ve(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pe(r,e)},Ce(e)}function Ie(e,t,n){return Ie=xe()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Pe(i,n.prototype),i},Ie.apply(null,arguments)}function xe(){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 Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}var Ae=(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&&Pe(e,t)})(o,e);var t,n,r,i=(t=o,n=xe(),function(){var e,r=Ve(t);if(n){var i=Ve(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Te(this,e)});function o(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,e)).name="EncodingError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Ce(Error));function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,(n=[{key:"encode",value:function(t){if(!/^[0-1]*$/.test(t))throw new Ae("Unencodable Base64Url '"+t+"'");t=this.pad(t);for(var n="",r=0;r<=t.length-6;){var i=t.substring(r,r+6);try{var o=Re.decode(i);n+=e.DICT.charAt(o),r+=6}catch(e){throw new Ae("Unencodable Base64Url '"+t+"'")}}return n}},{key:"decode",value:function(t){if(!/^[A-Za-z0-9\-_]*$/.test(t))throw new ke("Undecodable Base64URL string");for(var n="",r=0;r<t.length;r++){var i=t.charAt(r),o=e.REVERSE_DICT.get(i);n+=Re.encode(o,6)}return n}}])&&Ne(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ue(e,t){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ue(e,t)}function Le(e,t){if(t&&("object"==typeof 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)}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}Be(De,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Be(De,"REVERSE_DICT",new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]));var _e=(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&&Ue(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=$e(r);if(i){var n=$e(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Le(this,e)});function u(){return Me(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"pad",value:function(e){for(;e.length%8>0;)e+="0";for(;e.length%6>0;)e+="0";return e}}])&&Fe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(De);function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var We=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){var t=[];if(e>=1&&(t.push(1),e>=2)){t.push(2);for(var n=2;e>=t[n-1]+t[n-2];)t.push(t[n-1]+t[n-2]),n++}for(var r="1",i=t.length-1;i>=0;i--){var o=t[i];e>=o?(r="1"+r,e-=o):r="0"+r}return r}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<2||e.indexOf("11")!==e.length-2)throw new ke("Undecodable FibonacciInteger '"+e+"'");for(var t=0,n=[],r=0;r<e.length-1;r++)0===r?n.push(1):1===r?n.push(2):n.push(n[r-1]+n[r-2]);for(var i=0;i<e.length-1;i++)"1"===e.charAt(i)&&(t+=n[i]);return t}}],null&&Ge(t.prototype,null),n&&Ge(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var He=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){if(!0===e)return"1";if(!1===e)return"0";throw new Ae("Unencodable Boolean '"+e+"'")}},{key:"decode",value:function(e){if("1"===e)return!0;if("0"===e)return!1;throw new ke("Undecodable Boolean '"+e+"'")}}],null&&qe(t.prototype,null),n&&qe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ke=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){e=e.sort((function(e,t){return e-t}));for(var t=[],n=0,r=0;r<e.length;){for(var i=r;i<e.length-1&&e[i]+1===e[i+1];)i++;t.push(e.slice(r,i+1)),r=i+1}for(var o=Re.encode(t.length,12),u=0;u<t.length;u++)if(1==t[u].length){var c=t[u][0]-n;n=t[u][0],o+="0"+We.encode(c)}else{var a=t[u][0]-n;n=t[u][0];var f=t[u][t[u].length-1]-n;n=t[u][t[u].length-1],o+="1"+We.encode(a)+We.encode(f)}return o}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new ke("Undecodable FibonacciIntegerRange '"+e+"'");for(var t=[],n=Re.decode(e.substring(0,12)),r=0,i=12,o=0;o<n;o++){var u=He.decode(e.substring(i,i+1));if(i++,!0===u){var c=e.indexOf("11",i),a=We.decode(e.substring(i,c+2))+r;r=a,i=c+2,c=e.indexOf("11",i);var f=We.decode(e.substring(i,c+2))+r;r=f,i=c+2;for(var s=a;s<=f;s++)t.push(s)}else{var l=e.indexOf("11",i),h=We.decode(e.substring(i,l+2))+r;r=h,t.push(h),i=l+2}}return t}}],null&&Je(t.prototype,null),n&&Je(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ye=(function(){function e(){var t,n;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),n=void 0,(t="value")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n}var t,n;return t=e,(n=[{key:"hasValue",value:function(){return void 0!==this.value&&null!==this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}}])&&ze(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ze(){return Ze="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=et(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ze.apply(this,arguments)}function et(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rt(e)););return e}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}function nt(e,t){if(t&&("object"==typeof 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)}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}var it=(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&&tt(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=rt(r);if(i){var n=rt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return nt(this,e)});function u(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(t=o.call(this)).setValue(e),t}return t=u,(n=[{key:"encode",value:function(){return Ke.encode(this.value)}},{key:"decode",value:function(e){this.value=Ke.decode(e)}},{key:"substring",value:function(e,t){for(var n=Re.decode(e.substring(t,t+12)),r=t+12,i=0;i<n;i++)r="1"===e.charAt(r)?e.indexOf("11",e.indexOf("11",r+1)+2)+2:e.indexOf("11",r+1)+2;return e.substring(t,r)}},{key:"getValue",value:function(){return(function(e){if(Array.isArray(e))return Qe(e)})(e=Ze(rt(u.prototype),"getValue",this).call(this))||(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 Qe(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)?Qe(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.")})();var e}},{key:"setValue",value:function(e){Ze(rt(u.prototype),"setValue",this).call(this,Array.from(new Set(e)).sort((function(e,t){return e-t})))}}])&&Xe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ut(e,t)}function ct(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ft(e){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ft(e)}var st,lt=(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&&ut(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=ft(r);if(i){var n=ft(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ct(this,e)});function u(e,t){var n;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(at(n=o.call(this)),"bitStringLength",void 0),n.bitStringLength=e,n.setValue(t),n}return t=u,(n=[{key:"encode",value:function(){return Re.encode(this.value,this.bitStringLength)}},{key:"decode",value:function(e){this.value=Re.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.bitStringLength)}}])&&ot(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!(function(e){e.ID="Id",e.VERSION="Version",e.SECTION_IDS="SectionIds"})(st||(st={}));var bt=(function(){function e(t,n){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),vt(this,"fields",void 0),vt(this,"fieldOrder",void 0),this.fields=t,this.fieldOrder=n}var t,n;return t=e,(n=[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw new Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getFieldOrder",value:function(){return this.fieldOrder}},{key:"encodeToBitString",value:function(){for(var e="",t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(!this.fields.has(n))throw new Error("Field not found: '"+n+"'");e+=this.fields.get(n).encode()}return e}},{key:"decodeFromBitString",value:function(e){for(var t=0,n=0;n<this.fieldOrder.length;n++){var r=this.fieldOrder[n];if(!this.fields.has(r))throw new Error("Field not found: '"+r+"'");var i=this.fields.get(r),o=i.substring(e,t);i.decode(o),t+=o.length}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(this.fields.has(n)){var r=this.fields.get(n).getValue();e[n]=r}}return e}}])&&ht(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pt(e,t){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pt(e,t)}function wt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yt(e)}function yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ot(e)}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=(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&&pt(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Ot(r);if(i){var n=Ot(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return wt(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(st.ID.toString(),new lt(6,u.ID)),n.set(st.VERSION.toString(),new lt(6,u.VERSION)),n.set(st.SECTION_IDS.toString(),new it([]));var r=[st.ID.toString(),st.VERSION.toString(),st.SECTION_IDS.toString()];return jt(yt(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeToBitString();return this.base64UrlEncoder.encode(e)}},{key:"decode",value:function(e){var t=this.base64UrlEncoder.decode(e);this.decodeFromBitString(t)}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&dt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(bt);function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},St(e,t)}function kt(e,t){if(t&&("object"==typeof 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)}function Et(e){return Et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Et(e)}jt(gt,"ID",3),jt(gt,"VERSION",1),jt(gt,"NAME","header");var Rt=(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&&St(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Et(r);if(i){var n=Et(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return kt(this,e)});function u(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(t=o.call(this)).setValue(e),t}return t=u,(n=[{key:"encode",value:function(){return He.encode(this.value)}},{key:"decode",value:function(e){this.value=He.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+1)}}])&&mt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ct=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){return e?Re.encode(Math.round(e.getTime()/100),36):Re.encode(0,36)}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||36!==e.length)throw new ke("Undecodable Datetime '"+e+"'");return new Date(100*Re.decode(e))}}],null&&Tt(t.prototype,null),n&&Tt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xt(e,t){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xt(e,t)}function Pt(e,t){if(t&&("object"==typeof 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)}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vt(e)}var At=(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&&xt(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Vt(r);if(i){var n=Vt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Pt(this,e)});function u(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(t=o.call(this)).setValue(e),t}return t=u,(n=[{key:"encode",value:function(){return Ct.encode(this.value)}},{key:"decode",value:function(e){this.value=Ct.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+36)}}])&&It(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Bt=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){for(var n="",r=0;r<e.length;r++)n+=He.encode(e[r]);for(;n.length<t;)n+="0";return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new ke("Undecodable FixedBitfield '"+e+"'");for(var t=[],n=0;n<e.length;n++)t.push(He.decode(e.substring(n,n+1)));return t}}],null&&Nt(t.prototype,null),n&&Nt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Dt(e){return(function(e){if(Array.isArray(e))return Mt(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 Mt(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)?Mt(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 Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ut(){return Ut="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Lt(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ut.apply(this,arguments)}function Lt(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wt(e)););return e}function $t(e,t){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$t(e,t)}function _t(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gt(e)}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wt(e){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wt(e)}var qt=(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&&$t(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Wt(r);if(i){var n=Wt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _t(this,e)});function u(e,t){var n;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(Gt(n=o.call(this)),"getLength",void 0),n.getLength=e,n.setValue(t),n}return t=u,(n=[{key:"encode",value:function(){return Bt.encode(this.value,this.getLength())}},{key:"decode",value:function(e){this.value=Bt.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.getLength())}},{key:"getValue",value:function(){return Dt(Ut(Wt(u.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(e){for(var t=this.getLength(),n=Dt(e),r=n.length;r<t;r++)n.push(!1);n.length>t&&(n=n.slice(0,t)),Ut(Wt(u.prototype),"setValue",this).call(this,Dt(n))}}])&&Ft(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function Ht(e){return(function(e){if(Array.isArray(e))return Jt(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 Jt(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)?Jt(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 Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zt(){return zt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Yt(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},zt.apply(this,arguments)}function Yt(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=en(e)););return e}function Qt(e,t){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qt(e,t)}function Xt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zt(e)}function Zt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}var tn=(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&&Qt(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=en(r);if(i){var n=en(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Xt(this,e)});function u(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(Zt(t=o.call(this)),"numElements",void 0),t.numElements=e.length,t.setValue(e),t}return t=u,(n=[{key:"encode",value:function(){return Bt.encode(this.value,this.numElements)}},{key:"decode",value:function(e){this.value=Bt.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.numElements)}},{key:"getValue",value:function(){return Ht(zt(en(u.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(e){for(var t=Ht(e),n=t.length;n<this.numElements;n++)t.push(!1);t.length>this.numElements&&(t=t.slice(0,this.numElements)),zt(en(u.prototype),"setValue",this).call(this,t)}}])&&Kt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var rn=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t){for(;e.length<t;)e+=" ";for(var n="",r=0;r<e.length;r++){var i=e.charCodeAt(r);if(32===i)n+=Re.encode(63,6);else{if(!(i>=65))throw new Ae("Unencodable FixedString '"+e+"'");n+=Re.encode(e.charCodeAt(r)-65,6)}}return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length%6!=0)throw new ke("Undecodable FixedString '"+e+"'");for(var t="",n=0;n<e.length;n+=6){var r=Re.decode(e.substring(n,n+6));t+=63===r?" ":String.fromCharCode(r+65)}return t.trim()}}],null&&nn(t.prototype,null),n&&nn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function un(e,t){return un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},un(e,t)}function cn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return an(e)}function an(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fn(e)}var sn=(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&&un(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=fn(r);if(i){var n=fn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return cn(this,e)});function u(e,t){var n;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(an(n=o.call(this)),"stringLength",void 0),n.stringLength=e,n.setValue(t),n}return t=u,(n=[{key:"encode",value:function(){return rn.encode(this.value,this.stringLength)}},{key:"decode",value:function(e){this.value=rn.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+6*this.stringLength)}}])&&on(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vn=(function(){function e(t,n){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),hn(this,"fields",void 0),hn(this,"segments",void 0),this.fields=t,this.segments=n}var t,n;return t=e,(n=[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw new Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getSegments",value:function(){return this.segments}},{key:"encodeSegmentsToBitStrings",value:function(){for(var e=[],t=0;t<this.segments.length;t++){for(var n="",r=0;r<this.segments[t].length;r++){var i=this.segments[t][r];if(!this.fields.has(i))throw new Error("Field not found: '"+i+"'");try{n+=this.fields.get(i).encode()}catch(e){throw new Error("Unable to encode "+i)}}e.push(n)}return e}},{key:"decodeSegmentsFromBitStrings",value:function(e){for(var t=0;t<this.segments.length&&t<e.length;t++){var n=e[t];if(n&&n.length>0)for(var r=0,i=0;i<this.segments[t].length;i++){var o=this.segments[t][i];if(!this.fields.has(o))throw new Error("Field not found: '"+o+"'");try{var u=this.fields.get(o),c=u.substring(n,r);u.decode(c),r+=c.length}catch(e){throw new Error("Unable to decode "+o)}}}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.segments.length;t++)for(var n=0;n<this.segments[t].length;n++){var r=this.segments[t][n];if(this.fields.has(r)){var i=this.fields.get(r).getValue();e[r]=i}}return e}}])&&ln(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dn=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e){e.sort((function(e,t){return e-t}));for(var t=[],n=0;n<e.length;){for(var r=n;r<e.length-1&&e[r]+1===e[r+1];)r++;t.push(e.slice(n,r+1)),n=r+1}for(var i=Re.encode(t.length,12),o=0;o<t.length;o++)1===t[o].length?i+="0"+Re.encode(t[o][0],16):i+="1"+Re.encode(t[o][0],16)+Re.encode(t[o][t[o].length-1],16);return i}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new ke("Undecodable FixedIntegerRange '"+e+"'");for(var t=[],n=Re.decode(e.substring(0,12)),r=12,i=0;i<n;i++){var o=He.decode(e.substring(r,r+1));if(r++,!0===o){var u=Re.decode(e.substring(r,r+16));r+=16;var c=Re.decode(e.substring(r,r+16));r+=16;for(var a=u;a<=c;a++)t.push(a)}else{var f=Re.decode(e.substring(r,r+16));t.push(f),r+=16}}return t}}],null&&bn(t.prototype,null),n&&bn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(){return yn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=On(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},yn.apply(this,arguments)}function On(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mn(e)););return e}function jn(e,t){return jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jn(e,t)}function gn(e,t){if(t&&("object"==typeof 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)}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mn(e)}var Sn=(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&&jn(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=mn(r);if(i){var n=mn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return gn(this,e)});function u(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(t=o.call(this)).setValue(e),t}return t=u,(n=[{key:"encode",value:function(){return dn.encode(this.value)}},{key:"decode",value:function(e){this.value=dn.decode(e)}},{key:"substring",value:function(e,t){for(var n=Re.decode(e.substring(t,t+12)),r=t+12,i=0;i<n;i++)"1"===e.charAt(r)?r+=33:r+=17;return e.substring(t,r)}},{key:"getValue",value:function(){return(function(e){if(Array.isArray(e))return pn(e)})(e=yn(mn(u.prototype),"getValue",this).call(this))||(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 pn(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)?pn(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.")})();var e}},{key:"setValue",value:function(e){yn(mn(u.prototype),"setValue",this).call(this,Array.from(new Set(e)).sort((function(e,t){return e-t})))}}])&&wn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(){return Rn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Tn(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Rn.apply(this,arguments)}function Tn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xn(e)););return e}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cn(e,t)}function In(e,t){if(t&&("object"==typeof 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)}function xn(e){return xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(e)}var Pn,Vn=(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&&Cn(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=xn(r);if(i){var n=xn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return In(this,e)});function u(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),(t=o.call(this)).setValue(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.value.length>0?this.value[this.value.length-1]:0,t=dn.encode(this.value),n=e;if(t.length<=n)return Re.encode(e,16)+"1"+t;for(var r=[],i=0,o=0;o<e;o++)o===this.value[i]-1?(r[o]=!0,i++):r[o]=!1;return Re.encode(e,16)+"0"+Bt.encode(r,n)}},{key:"decode",value:function(e){if("1"===e.charAt(16))this.value=dn.decode(e.substring(17));else{for(var t=[],n=Bt.decode(e.substring(17)),r=0;r<n.length;r++)!0===n[r]&&t.push(r+1);this.value=t}}},{key:"substring",value:function(e,t){var n=Re.decode(e.substring(t,t+16));return"1"===e.charAt(t+16)?e.substring(t,t+17)+new Sn([]).substring(e,t+17):e.substring(t,t+17+n)}},{key:"getValue",value:function(){return(function(e){if(Array.isArray(e))return kn(e)})(e=Rn(xn(u.prototype),"getValue",this).call(this))||(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 kn(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)?kn(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.")})();var e}},{key:"setValue",value:function(e){Rn(xn(u.prototype),"setValue",this).call(this,Array.from(new Set(e)).sort((function(e,t){return e-t})))}}])&&En(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t){return Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bn(e,t)}function Dn(e,t){if(t&&("object"==typeof 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)}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}!(function(e){e.VERSION="Version",e.CREATED="Created",e.LAST_UPDATED="LastUpdated",e.CMP_ID="CmpId",e.CMP_VERSION="CmpVersion",e.CONSENT_SCREEN="ConsentScreen",e.CONSENT_LANGUAGE="ConsentLanguage",e.VENDOR_LIST_VERSION="VendorListVersion",e.POLICY_VERSION="PolicyVersion",e.IS_SERVICE_SPECIFIC="IsServiceSpecific",e.USE_NON_STANDARD_STACKS="UseNonStandardStacks",e.SPECIAL_FEATURE_OPTINS="SpecialFeatureOptins",e.PURPOSE_CONSENTS="PurposeConsents",e.PURPOSE_LEGITIMATE_INTERESTS="PurposeLegitimateInterests",e.PURPOSE_ONE_TREATMENT="PurposeOneTreatment",e.PUBLISHER_COUNTRY_CODE="PublisherCountryCode",e.VENDOR_CONSENTS="VendorConsents",e.VENDOR_LEGITIMATE_INTERESTS="VendorLegitimateInterests",e.PUBLISHER_RESTRICTIONS="PublisherRestrictions",e.PUBLISHER_PURPOSES_SEGMENT_TYPE="PublisherPurposesSegmentType",e.PUBLISHER_CONSENTS="PublisherConsents",e.PUBLISHER_LEGITIMATE_INTERESTS="PublisherLegitimateInterests",e.NUM_CUSTOM_PURPOSES="NumCustomPurposes",e.PUBLISHER_CUSTOM_CONSENTS="PublisherCustomConsents",e.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS="PublisherCustomLegitimateInterests",e.VENDORS_ALLOWED_SEGMENT_TYPE="VendorsAllowedSegmentType",e.VENDORS_ALLOWED="VendorsAllowed",e.VENDORS_DISCLOSED_SEGMENT_TYPE="VendorsDisclosedSegmentType",e.VENDORS_DISCLOSED="VendorsDisclosed"})(Pn||(Pn={}));var Fn=(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&&Bn(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Mn(r);if(i){var n=Mn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Dn(this,e)});function u(){return An(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"pad",value:function(e){for(;e.length%24>0;)e+="0";return e}}])&&Nn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(De);function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(){return Ln="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=$n(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ln.apply(this,arguments)}function $n(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qn(e)););return e}function _n(e,t){return _n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_n(e,t)}function Gn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wn(e)}function Wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qn(e)}function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jn,Kn=(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&&_n(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=qn(r);if(i){var n=qn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Gn(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map,r=new Date;n.set(Pn.VERSION.toString(),new lt(6,u.VERSION)),n.set(Pn.CREATED.toString(),new At(r)),n.set(Pn.LAST_UPDATED.toString(),new At(r)),n.set(Pn.CMP_ID.toString(),new lt(12,0)),n.set(Pn.CMP_VERSION.toString(),new lt(12,0)),n.set(Pn.CONSENT_SCREEN.toString(),new lt(6,0)),n.set(Pn.CONSENT_LANGUAGE.toString(),new sn(2,"EN")),n.set(Pn.VENDOR_LIST_VERSION.toString(),new lt(12,0)),n.set(Pn.POLICY_VERSION.toString(),new lt(6,2)),n.set(Pn.IS_SERVICE_SPECIFIC.toString(),new Rt(!1)),n.set(Pn.USE_NON_STANDARD_STACKS.toString(),new Rt(!1)),n.set(Pn.SPECIAL_FEATURE_OPTINS.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Pn.PURPOSE_CONSENTS.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Pn.PURPOSE_LEGITIMATE_INTERESTS.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Pn.PURPOSE_ONE_TREATMENT.toString(),new Rt(!1)),n.set(Pn.PUBLISHER_COUNTRY_CODE.toString(),new sn(2,"AA")),n.set(Pn.VENDOR_CONSENTS.toString(),new Vn([])),n.set(Pn.VENDOR_LEGITIMATE_INTERESTS.toString(),new Vn([])),n.set(Pn.PUBLISHER_RESTRICTIONS.toString(),new Sn([])),n.set(Pn.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new lt(3,3)),n.set(Pn.PUBLISHER_CONSENTS.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Pn.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var i=new lt(6,0);n.set(Pn.NUM_CUSTOM_PURPOSES.toString(),i),n.set(Pn.PUBLISHER_CUSTOM_CONSENTS.toString(),new qt((function(){return i.getValue()}),[])),n.set(Pn.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new qt((function(){return i.getValue()}),[])),n.set(Pn.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new lt(3,2)),n.set(Pn.VENDORS_ALLOWED.toString(),new Vn([])),n.set(Pn.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new lt(3,1)),n.set(Pn.VENDORS_DISCLOSED.toString(),new Vn([]));var c=[[Pn.VERSION.toString(),Pn.CREATED.toString(),Pn.LAST_UPDATED.toString(),Pn.CMP_ID.toString(),Pn.CMP_VERSION.toString(),Pn.CONSENT_SCREEN.toString(),Pn.CONSENT_LANGUAGE.toString(),Pn.VENDOR_LIST_VERSION.toString(),Pn.POLICY_VERSION.toString(),Pn.IS_SERVICE_SPECIFIC.toString(),Pn.USE_NON_STANDARD_STACKS.toString(),Pn.SPECIAL_FEATURE_OPTINS.toString(),Pn.PURPOSE_CONSENTS.toString(),Pn.PURPOSE_LEGITIMATE_INTERESTS.toString(),Pn.PURPOSE_ONE_TREATMENT.toString(),Pn.PUBLISHER_COUNTRY_CODE.toString(),Pn.VENDOR_CONSENTS.toString(),Pn.VENDOR_LEGITIMATE_INTERESTS.toString(),Pn.PUBLISHER_RESTRICTIONS.toString()],[Pn.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),Pn.PUBLISHER_CONSENTS.toString(),Pn.PUBLISHER_LEGITIMATE_INTERESTS.toString(),Pn.NUM_CUSTOM_PURPOSES.toString(),Pn.PUBLISHER_CUSTOM_CONSENTS.toString(),Pn.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString()],[Pn.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),Pn.VENDORS_ALLOWED.toString()],[Pn.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),Pn.VENDORS_DISCLOSED.toString()]];return Hn(Wn(t=o.call(this,n,c)),"base64UrlEncoder",new Fn),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),this.getFieldValue(Pn.IS_SERVICE_SPECIFIC.toString())?e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])):(e[2]&&e[2].length>0&&t.push(this.base64UrlEncoder.encode(e[2])),e[3]&&e[3].length>0&&t.push(this.base64UrlEncoder.encode(e[3]))),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],r=0;r<t.length;r++){var i=this.base64UrlEncoder.decode(t[r]);switch(i.substring(0,3)){case"000":n[0]=i;break;case"001":n[3]=i;break;case"010":n[2]=i;break;case"011":n[1]=i;break;default:throw new ke("Unable to decode segment '"+t[r]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(e,t){if(Ln(qn(u.prototype),"setFieldValue",this).call(this,e,t),e!==Pn.CREATED.toString()&&e!==Pn.LAST_UPDATED.toString()){var n=new Date,r=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()));this.setFieldValue(Pn.CREATED.toString(),r),this.setFieldValue(Pn.LAST_UPDATED.toString(),r)}}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&Un(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(vn);function zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yn(){return Yn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Qn(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Yn.apply(this,arguments)}function Qn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tr(e)););return e}function Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}function Zn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return er(e)}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tr(e)}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Hn(Kn,"ID",2),Hn(Kn,"VERSION",2),Hn(Kn,"NAME","tcfeuv2"),(function(e){e.VERSION="Version",e.CREATED="Created",e.LAST_UPDATED="LastUpdated",e.CMP_ID="CmpId",e.CMP_VERSION="CmpVersion",e.CONSENT_SCREEN="ConsentScreen",e.CONSENT_LANGUAGE="ConsentLanguage",e.VENDOR_LIST_VERSION="VendorListVersion",e.TCF_POLICY_VERSION="TcfPolicyVersion",e.USE_NON_STANDARD_STACKS="UseNonStandardStacks",e.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",e.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",e.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",e.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",e.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",e.SEGMENT_TYPE="SegmentType",e.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",e.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",e.NUM_CUSTOM_PURPOSES="NumCustomPurposes",e.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",e.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent"})(Jn||(Jn={}));var rr=(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&&Xn(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=tr(r);if(i){var n=tr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Zn(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map,r=new Date;n.set(Jn.VERSION.toString(),new lt(6,u.VERSION)),n.set(Jn.CREATED.toString(),new At(r)),n.set(Jn.LAST_UPDATED.toString(),new At(r)),n.set(Jn.CMP_ID.toString(),new lt(12,0)),n.set(Jn.CMP_VERSION.toString(),new lt(12,0)),n.set(Jn.CONSENT_SCREEN.toString(),new lt(6,0)),n.set(Jn.CONSENT_LANGUAGE.toString(),new sn(2,"EN")),n.set(Jn.VENDOR_LIST_VERSION.toString(),new lt(12,0)),n.set(Jn.TCF_POLICY_VERSION.toString(),new lt(6,1)),n.set(Jn.USE_NON_STANDARD_STACKS.toString(),new Rt(!1)),n.set(Jn.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Jn.PURPOSES_EXPRESS_CONSENT.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Jn.PURPOSES_IMPLIED_CONSENT.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Jn.VENDOR_EXPRESS_CONSENT.toString(),new Vn([])),n.set(Jn.VENDOR_IMPLIED_CONSENT.toString(),new Vn([])),n.set(Jn.SEGMENT_TYPE.toString(),new lt(3,3)),n.set(Jn.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),n.set(Jn.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new tn([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var i=new lt(6,0);n.set(Jn.NUM_CUSTOM_PURPOSES.toString(),i),n.set(Jn.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new qt((function(){return i.getValue()}),[])),n.set(Jn.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new qt((function(){return i.getValue()}),[]));var c=[[Jn.VERSION.toString(),Jn.CREATED.toString(),Jn.LAST_UPDATED.toString(),Jn.CMP_ID.toString(),Jn.CMP_VERSION.toString(),Jn.CONSENT_SCREEN.toString(),Jn.CONSENT_LANGUAGE.toString(),Jn.VENDOR_LIST_VERSION.toString(),Jn.TCF_POLICY_VERSION.toString(),Jn.USE_NON_STANDARD_STACKS.toString(),Jn.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),Jn.PURPOSES_EXPRESS_CONSENT.toString(),Jn.PURPOSES_IMPLIED_CONSENT.toString(),Jn.VENDOR_EXPRESS_CONSENT.toString(),Jn.VENDOR_IMPLIED_CONSENT.toString()],[Jn.SEGMENT_TYPE.toString(),Jn.PUB_PURPOSES_EXPRESS_CONSENT.toString(),Jn.PUB_PURPOSES_IMPLIED_CONSENT.toString(),Jn.NUM_CUSTOM_PURPOSES.toString(),Jn.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),Jn.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString()]];return nr(er(t=o.call(this,n,c)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],r=0;r<t.length;r++){var i=this.base64UrlEncoder.decode(t[r]);switch(i.substring(0,3)){case"000":n[0]=i;break;case"011":n[1]=i;break;default:throw new ke("Unable to decode segment '"+t[r]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(e,t){if(Yn(tr(u.prototype),"setFieldValue",this).call(this,e,t),e!==Jn.CREATED.toString()&&e!==Jn.LAST_UPDATED.toString()){var n=new Date,r=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()));this.setFieldValue(Jn.CREATED.toString(),r),this.setFieldValue(Jn.LAST_UPDATED.toString(),r)}}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&zn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(vn);function ir(e,t){if(t&&("object"==typeof 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)}function or(e){var t="function"==typeof Map?new Map:void 0;return or=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ur(e,arguments,fr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ar(r,e)},or(e)}function ur(e,t,n){return ur=cr()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ar(i,n.prototype),i},ur.apply(null,arguments)}function cr(){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 ar(e,t){return ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ar(e,t)}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}nr(rr,"ID",5),nr(rr,"VERSION",2),nr(rr,"NAME","tcfcav1");var sr,lr=(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&&ar(e,t)})(o,e);var t,n,r,i=(t=o,n=cr(),function(){var e,r=fr(t);if(n){var i=fr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return ir(this,e)});function o(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,e)).name="InvalidFieldError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(or(Error));function hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!(function(e){e.VERSION="Version",e.NOTICE="Notice",e.OPT_OUT_SALE="OptOutSale",e.LSPA_COVERED="LspaCovered"})(sr||(sr={}));var dr=(function(){function e(t){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),br(this,"fields",void 0),this.fields=new Map,this.fields.set(sr.VERSION.toString(),e.VERSION),this.fields.set(sr.NOTICE.toString(),"-"),this.fields.set(sr.OPT_OUT_SALE.toString(),"-"),this.fields.set(sr.LSPA_COVERED.toString(),"-"),t&&t.length>0&&this.decode(t)}var t,n;return t=e,(n=[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e):null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw new lr(e+" not found");this.fields.set(e,t)}},{key:"toObj",value:function(){var e,t={},n=(function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(function(e,t){if(e){if("string"==typeof e)return hr(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)?hr(e,t):void 0}})(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}})(this.fields.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value,i=this.fields.get(r);t[r.toString()]=i}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"encode",value:function(){var e="";return e+=this.getFieldValue(sr.VERSION.toString()),e+=this.getFieldValue(sr.NOTICE.toString()),(e+=this.getFieldValue(sr.OPT_OUT_SALE.toString()))+this.getFieldValue(sr.LSPA_COVERED.toString())}},{key:"decode",value:function(e){this.setFieldValue(sr.VERSION.toString(),parseInt(e.charAt(0))),this.setFieldValue(sr.NOTICE.toString(),e.charAt(1)),this.setFieldValue(sr.OPT_OUT_SALE.toString(),e.charAt(2)),this.setFieldValue(sr.LSPA_COVERED.toString(),e.charAt(3))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])&&vr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}br(dr,"ID",6),br(dr,"VERSION",1),br(dr,"NAME","uspv1");var wr=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"encode",value:function(e,t,n){for(var r="",i=0;i<e.length;i++)r+=Re.encode(e[i],t);for(;r.length<t*n;)r+="0";return r}},{key:"decode",value:function(e,t,n){if(!/^[0-1]*$/.test(e))throw new ke("Undecodable FixedInteger '"+e+"'");if(e.length>t*n)throw new ke("Undecodable FixedIntegerList '"+e+"'");if(e.length%t!=0)throw new ke("Undecodable FixedIntegerList '"+e+"'");for(;e.length<t*n;)e+="0";e.length>t*n&&(e=e.substring(0,t*n));for(var r=[],i=0;i<e.length;i+=t)r.push(Re.decode(e.substring(i,i+t)));for(;r.length<n;)r.push(0);return r}}],null&&pr(t.prototype,null),n&&pr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function yr(e){return(function(e){if(Array.isArray(e))return Or(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 Or(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)?Or(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 Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gr(){return gr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=mr(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},gr.apply(this,arguments)}function mr(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rr(e)););return e}function Sr(e,t){return Sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sr(e,t)}function kr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Er(e)}function Er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cr,Ir=(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&&Sr(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Rr(r);if(i){var n=Rr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return kr(this,e)});function u(e,t){var n;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),Tr(Er(n=o.call(this)),"elementBitStringLength",void 0),Tr(Er(n),"numElements",void 0),n.elementBitStringLength=e,n.numElements=t.length,n.setValue(t),n}return t=u,(n=[{key:"encode",value:function(){return wr.encode(this.value,this.elementBitStringLength,this.numElements)}},{key:"decode",value:function(e){this.value=wr.decode(e,this.elementBitStringLength,this.numElements)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.elementBitStringLength*this.numElements)}},{key:"getValue",value:function(){return yr(gr(Rr(u.prototype),"getValue",this).call(this))}},{key:"setValue",value:function(e){for(var t=yr(e),n=t.length;n<this.numElements;n++)t.push(0);t.length>this.numElements&&(t=t.slice(0,this.numElements)),gr(Rr(u.prototype),"setValue",this).call(this,t)}}])&&jr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(Ye);function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pr(e,t){return Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pr(e,t)}function Vr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ar(e)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nr(e){return Nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nr(e)}function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!(function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",e.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",e.SALE_OPT_OUT="SaleOptOut",e.SHARING_OPT_OUT="SharingOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.PERSONAL_DATA_CONSENTS="PersonalDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"})(Cr||(Cr={}));var Dr,Mr=(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&&Pr(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Nr(r);if(i){var n=Nr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Vr(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(Cr.VERSION.toString(),new lt(6,u.VERSION)),n.set(Cr.SHARING_NOTICE.toString(),new lt(2,0)),n.set(Cr.SALE_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Cr.SHARING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Cr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Cr.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Cr.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new lt(2,0)),n.set(Cr.SALE_OPT_OUT.toString(),new lt(2,0)),n.set(Cr.SHARING_OPT_OUT.toString(),new lt(2,0)),n.set(Cr.TARGETED_ADVERTISING_OPT_OUT.toString(),new lt(2,0)),n.set(Cr.SENSITIVE_DATA_PROCESSING.toString(),new Ir(2,[0,0,0,0,0,0,0,0,0,0,0,0])),n.set(Cr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Ir(2,[0,0])),n.set(Cr.PERSONAL_DATA_CONSENTS.toString(),new lt(2,0)),n.set(Cr.MSPA_COVERED_TRANSACTION.toString(),new lt(2,0)),n.set(Cr.MSPA_OPT_OUT_OPTION_MODE.toString(),new lt(2,0)),n.set(Cr.MSPA_SERVICE_PROVIDER_MODE.toString(),new lt(2,0)),n.set(Cr.GPC_SEGMENT_TYPE.toString(),new lt(2,1)),n.set(Cr.GPC_SEGMENT_INCLUDED.toString(),new Rt(!0)),n.set(Cr.GPC.toString(),new Rt(!1));var r=[[Cr.VERSION.toString(),Cr.SHARING_NOTICE.toString(),Cr.SALE_OPT_OUT_NOTICE.toString(),Cr.SHARING_OPT_OUT_NOTICE.toString(),Cr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),Cr.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),Cr.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),Cr.SALE_OPT_OUT.toString(),Cr.SHARING_OPT_OUT.toString(),Cr.TARGETED_ADVERTISING_OPT_OUT.toString(),Cr.SENSITIVE_DATA_PROCESSING.toString(),Cr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),Cr.PERSONAL_DATA_CONSENTS.toString(),Cr.MSPA_COVERED_TRANSACTION.toString(),Cr.MSPA_OPT_OUT_OPTION_MODE.toString(),Cr.MSPA_SERVICE_PROVIDER_MODE.toString()],[Cr.GPC_SEGMENT_TYPE.toString(),Cr.GPC.toString()]];return Br(Ar(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(Cr.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],r=!1,i=0;i<t.length;i++){var o=this.base64UrlEncoder.decode(t[i]);switch(o.substring(0,2)){case"00":n[0]=o;break;case"01":r=!0,n[1]=o;break;default:throw new ke("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(Cr.GPC_SEGMENT_INCLUDED).setValue(r)}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(vn);function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ur(e,t){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ur(e,t)}function Lr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $r(e)}function $r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_r(e)}function Gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Br(Mr,"ID",7),Br(Mr,"VERSION",1),Br(Mr,"NAME","usnatv1"),(function(e){e.VERSION="Version",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",e.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",e.SALE_OPT_OUT="SaleOptOut",e.SHARING_OPT_OUT="SharingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.PERSONAL_DATA_CONSENTS="PersonalDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"})(Dr||(Dr={}));var Wr,qr=(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&&Ur(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=_r(r);if(i){var n=_r(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Lr(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(Dr.VERSION.toString(),new lt(6,u.VERSION)),n.set(Dr.SALE_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Dr.SHARING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Dr.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new lt(2,0)),n.set(Dr.SALE_OPT_OUT.toString(),new lt(2,0)),n.set(Dr.SHARING_OPT_OUT.toString(),new lt(2,0)),n.set(Dr.SENSITIVE_DATA_PROCESSING.toString(),new Ir(2,[0,0,0,0,0,0,0,0,0])),n.set(Dr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Ir(2,[0,0])),n.set(Dr.PERSONAL_DATA_CONSENTS.toString(),new lt(2,0)),n.set(Dr.MSPA_COVERED_TRANSACTION.toString(),new lt(2,0)),n.set(Dr.MSPA_OPT_OUT_OPTION_MODE.toString(),new lt(2,0)),n.set(Dr.MSPA_SERVICE_PROVIDER_MODE.toString(),new lt(2,0)),n.set(Dr.GPC_SEGMENT_TYPE.toString(),new lt(2,1)),n.set(Dr.GPC_SEGMENT_INCLUDED.toString(),new Rt(!0)),n.set(Dr.GPC.toString(),new Rt(!1));var r=[[Dr.VERSION.toString(),Dr.SALE_OPT_OUT_NOTICE.toString(),Dr.SHARING_OPT_OUT_NOTICE.toString(),Dr.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),Dr.SALE_OPT_OUT.toString(),Dr.SHARING_OPT_OUT.toString(),Dr.SENSITIVE_DATA_PROCESSING.toString(),Dr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),Dr.PERSONAL_DATA_CONSENTS.toString(),Dr.MSPA_COVERED_TRANSACTION.toString(),Dr.MSPA_OPT_OUT_OPTION_MODE.toString(),Dr.MSPA_SERVICE_PROVIDER_MODE.toString()],[Dr.GPC_SEGMENT_TYPE.toString(),Dr.GPC.toString()]];return Gr($r(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(Dr.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],r=!1,i=0;i<t.length;i++){var o=this.base64UrlEncoder.decode(t[i]);switch(o.substring(0,2)){case"00":n[0]=o;break;case"01":r=!0,n[1]=o;break;default:throw new ke("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(Dr.GPC_SEGMENT_INCLUDED).setValue(r)}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&Fr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(vn);function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jr(e,t){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jr(e,t)}function Kr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}function zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yr(e)}function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gr(qr,"ID",8),Gr(qr,"VERSION",1),Gr(qr,"NAME","uscav1"),(function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(Wr||(Wr={}));var Xr,Zr=(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&&Jr(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=Yr(r);if(i){var n=Yr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Kr(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(Wr.VERSION.toString(),new lt(6,u.VERSION)),n.set(Wr.SHARING_NOTICE.toString(),new lt(2,0)),n.set(Wr.SALE_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Wr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Wr.SALE_OPT_OUT.toString(),new lt(2,0)),n.set(Wr.TARGETED_ADVERTISING_OPT_OUT.toString(),new lt(2,0)),n.set(Wr.SENSITIVE_DATA_PROCESSING.toString(),new Ir(2,[0,0,0,0,0,0,0,0])),n.set(Wr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new lt(2,0)),n.set(Wr.MSPA_COVERED_TRANSACTION.toString(),new lt(2,0)),n.set(Wr.MSPA_OPT_OUT_OPTION_MODE.toString(),new lt(2,0)),n.set(Wr.MSPA_SERVICE_PROVIDER_MODE.toString(),new lt(2,0));var r=[Wr.VERSION.toString(),Wr.SHARING_NOTICE.toString(),Wr.SALE_OPT_OUT_NOTICE.toString(),Wr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),Wr.SALE_OPT_OUT.toString(),Wr.TARGETED_ADVERTISING_OPT_OUT.toString(),Wr.SENSITIVE_DATA_PROCESSING.toString(),Wr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),Wr.MSPA_COVERED_TRANSACTION.toString(),Wr.MSPA_OPT_OUT_OPTION_MODE.toString(),Wr.MSPA_SERVICE_PROVIDER_MODE.toString()];return Qr(zr(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&Hr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(bt);function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}function ni(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ri(e)}function ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(e)}function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Qr(Zr,"ID",9),Qr(Zr,"VERSION",1),Qr(Zr,"NAME","usvav1"),(function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"})(Xr||(Xr={}));var ui,ci=(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&&ti(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=ii(r);if(i){var n=ii(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ni(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(Xr.VERSION.toString(),new lt(6,u.VERSION)),n.set(Xr.SHARING_NOTICE.toString(),new lt(2,0)),n.set(Xr.SALE_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Xr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(Xr.SALE_OPT_OUT.toString(),new lt(2,0)),n.set(Xr.TARGETED_ADVERTISING_OPT_OUT.toString(),new lt(2,0)),n.set(Xr.SENSITIVE_DATA_PROCESSING.toString(),new Ir(2,[0,0,0,0,0,0,0])),n.set(Xr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new lt(2,0)),n.set(Xr.MSPA_COVERED_TRANSACTION.toString(),new lt(2,0)),n.set(Xr.MSPA_OPT_OUT_OPTION_MODE.toString(),new lt(2,0)),n.set(Xr.MSPA_SERVICE_PROVIDER_MODE.toString(),new lt(2,0)),n.set(Xr.GPC_SEGMENT_TYPE.toString(),new lt(2,1)),n.set(Xr.GPC_SEGMENT_INCLUDED.toString(),new Rt(!0)),n.set(Xr.GPC.toString(),new Rt(!1));var r=[[Xr.VERSION.toString(),Xr.SHARING_NOTICE.toString(),Xr.SALE_OPT_OUT_NOTICE.toString(),Xr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),Xr.SALE_OPT_OUT.toString(),Xr.TARGETED_ADVERTISING_OPT_OUT.toString(),Xr.SENSITIVE_DATA_PROCESSING.toString(),Xr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),Xr.MSPA_COVERED_TRANSACTION.toString(),Xr.MSPA_OPT_OUT_OPTION_MODE.toString(),Xr.MSPA_SERVICE_PROVIDER_MODE.toString()],[Xr.GPC_SEGMENT_TYPE.toString(),Xr.GPC.toString()]];return oi(ri(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(Xr.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],r=!1,i=0;i<t.length;i++){var o=this.base64UrlEncoder.decode(t[i]);switch(o.substring(0,2)){case"00":n[0]=o;break;case"01":r=!0,n[1]=o;break;default:throw new ke("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(Xr.GPC_SEGMENT_INCLUDED).setValue(r)}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&ei(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(vn);function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fi(e,t)}function si(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}function li(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(e)}function vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oi(ci,"ID",10),oi(ci,"VERSION",1),oi(ci,"NAME","uscov1"),(function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(ui||(ui={}));var bi,di=(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&&fi(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=hi(r);if(i){var n=hi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return si(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(ui.VERSION.toString(),new lt(6,u.VERSION)),n.set(ui.SHARING_NOTICE.toString(),new lt(2,0)),n.set(ui.SALE_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(ui.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(ui.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(ui.SALE_OPT_OUT.toString(),new lt(2,0)),n.set(ui.TARGETED_ADVERTISING_OPT_OUT.toString(),new lt(2,0)),n.set(ui.SENSITIVE_DATA_PROCESSING.toString(),new Ir(2,[0,0,0,0,0,0,0,0])),n.set(ui.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new lt(2,0)),n.set(ui.MSPA_COVERED_TRANSACTION.toString(),new lt(2,0)),n.set(ui.MSPA_OPT_OUT_OPTION_MODE.toString(),new lt(2,0)),n.set(ui.MSPA_SERVICE_PROVIDER_MODE.toString(),new lt(2,0));var r=[ui.VERSION.toString(),ui.SHARING_NOTICE.toString(),ui.SALE_OPT_OUT_NOTICE.toString(),ui.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),ui.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),ui.SALE_OPT_OUT.toString(),ui.TARGETED_ADVERTISING_OPT_OUT.toString(),ui.SENSITIVE_DATA_PROCESSING.toString(),ui.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),ui.MSPA_COVERED_TRANSACTION.toString(),ui.MSPA_OPT_OUT_OPTION_MODE.toString(),ui.MSPA_SERVICE_PROVIDER_MODE.toString()];return vi(li(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&ai(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(bt);function pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wi(e,t){return wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wi(e,t)}function yi(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oi(e)}function Oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ji(e)}function gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vi(di,"ID",11),vi(di,"VERSION",1),vi(di,"NAME","usutv1"),(function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"})(bi||(bi={}));var mi=(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&&wi(e,t)})(u,e);var t,n,r,i,o=(r=u,i=(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=ji(r);if(i){var n=ji(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return yi(this,e)});function u(e){var t;!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u);var n=new Map;n.set(bi.VERSION.toString(),new lt(6,u.VERSION)),n.set(bi.SHARING_NOTICE.toString(),new lt(2,0)),n.set(bi.SALE_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(bi.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new lt(2,0)),n.set(bi.SALE_OPT_OUT.toString(),new lt(2,0)),n.set(bi.TARGETED_ADVERTISING_OPT_OUT.toString(),new lt(2,0)),n.set(bi.SENSITIVE_DATA_PROCESSING.toString(),new Ir(2,[0,0,0,0,0,0,0,0])),n.set(bi.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Ir(2,[0,0,0])),n.set(bi.MSPA_COVERED_TRANSACTION.toString(),new lt(2,0)),n.set(bi.MSPA_OPT_OUT_OPTION_MODE.toString(),new lt(2,0)),n.set(bi.MSPA_SERVICE_PROVIDER_MODE.toString(),new lt(2,0)),n.set(bi.GPC_SEGMENT_TYPE.toString(),new lt(2,1)),n.set(bi.GPC_SEGMENT_INCLUDED.toString(),new Rt(!0)),n.set(bi.GPC.toString(),new Rt(!1));var r=[[bi.VERSION.toString(),bi.SHARING_NOTICE.toString(),bi.SALE_OPT_OUT_NOTICE.toString(),bi.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),bi.SALE_OPT_OUT.toString(),bi.TARGETED_ADVERTISING_OPT_OUT.toString(),bi.SENSITIVE_DATA_PROCESSING.toString(),bi.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),bi.MSPA_COVERED_TRANSACTION.toString(),bi.MSPA_OPT_OUT_OPTION_MODE.toString(),bi.MSPA_SERVICE_PROVIDER_MODE.toString()],[bi.GPC_SEGMENT_TYPE.toString(),bi.GPC.toString()]];return gi(Oi(t=o.call(this,n,r)),"base64UrlEncoder",new _e),e&&e.length>0&&t.decode(e),t}return t=u,(n=[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(bi.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],r=!1,i=0;i<t.length;i++){var o=this.base64UrlEncoder.decode(t[i]);switch(o.substring(0,2)){case"00":n[0]=o;break;case"01":r=!0,n[1]=o;break;default:throw new ke("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(bi.GPC_SEGMENT_INCLUDED).setValue(r)}},{key:"getId",value:function(){return u.ID}},{key:"getName",value:function(){return u.NAME}}])&&pi(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u})(vn);function Si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ki(e,t,n){return t&&Si(e.prototype,t),n&&Si(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}gi(mi,"ID",12),gi(mi,"VERSION",1),gi(mi,"NAME","usctv1");var Ri=ki((function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}));function Ti(e,t){return Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ti(e,t)}function Ci(e,t){if(t&&("object"==typeof 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)}function Ii(e){return Ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ii(e)}Ei(Ri,"SECTION_ID_NAME_MAP",new Map([[Kn.ID,Kn.NAME],[rr.ID,rr.NAME],[dr.ID,dr.NAME],[Mr.ID,Mr.NAME],[qr.ID,qr.NAME],[Zr.ID,Zr.NAME],[ci.ID,ci.NAME],[di.ID,di.NAME],[mi.ID,mi.NAME]])),Ei(Ri,"SECTION_ORDER",[Kn.NAME,rr.NAME,dr.NAME,Mr.NAME,qr.NAME,Zr.NAME,ci.NAME,di.NAME,mi.NAME]);var xi=(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&&Ti(e,t)})(o,e);var t,n,r,i=(n=o,r=(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=Ii(n);if(r){var i=Ii(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return Ci(this,e)});function o(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,e)).name="LazyDecodingError",t}return t=o,Object.defineProperty(t,"prototype",{writable:!1}),t})(ke);function Pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ai=(function(){function e(t){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Vi(this,"sections",new Map),Vi(this,"encodedString",void 0),Vi(this,"decoded",void 0),Vi(this,"dirty",void 0),t?(this.encodedString=t,this.decoded=!1,this.dirty=!1):(this.encodedString="DBAA",this.decoded=!1,this.dirty=!1)}var t,n;return t=e,(n=[{key:"setFieldValue",value:function(e,t,n){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}var r=null;if(this.sections.has(e)?r=this.sections.get(e):e===rr.NAME?(r=new rr,this.sections.set(rr.NAME,r)):e===Kn.NAME?(r=new Kn,this.sections.set(Kn.NAME,r)):e===dr.NAME?(r=new dr,this.sections.set(dr.NAME,r)):e===Mr.NAME?(r=new Mr,this.sections.set(Mr.NAME,r)):e===qr.NAME?(r=new qr,this.sections.set(qr.NAME,r)):e===Zr.NAME?(r=new Zr,this.sections.set(Zr.NAME,r)):e===ci.NAME?(r=new ci,this.sections.set(ci.NAME,r)):e===di.NAME?(r=new di,this.sections.set(di.NAME,r)):e===mi.NAME&&(r=new mi,this.sections.set(mi.NAME,r)),!r)throw new lr(e+"."+t+" not found");r.setFieldValue(t,n),this.dirty=!0}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(Ri.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}return this.sections.has(e)?this.sections.get(e).getFieldValue(t):null}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(Ri.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasField",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}return!!this.sections.has(e)&&this.sections.get(e).hasField(t)}},{key:"hasFieldBySectionId",value:function(e,t){return this.hasField(Ri.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}return this.sections.has(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}this.sections.delete(e),this.dirty=!0}},{key:"deleteSectionById",value:function(e){this.deleteSection(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}},{key:"getHeader",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}var e=new gt;return e.setFieldValue("SectionIds",this.getSectionIds()),e.toObj()}},{key:"getSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}return this.sections.has(e)?this.sections.get(e).toObj():null}},{key:"getSectionIds",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}for(var e=[],t=0;t<Ri.SECTION_ORDER.length;t++){var n=Ri.SECTION_ORDER[t];if(this.sections.has(n)){var r=this.sections.get(n);e.push(r.getId())}}return e}},{key:"encode",value:function(){if(!this.dirty)return this.encodedString;if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}for(var e=[],t=[],n=0;n<Ri.SECTION_ORDER.length;n++){var r=Ri.SECTION_ORDER[n];if(this.sections.has(r)){var i=this.sections.get(r);e.push(i.encode()),t.push(i.getId())}}var o=new gt;return o.setFieldValue("SectionIds",this.getSectionIds()),e.unshift(o.encode()),this.encodedString=e.join("~"),this.dirty=!1,this.encodedString}},{key:"decode",value:function(e){this.encodedString=e,this.decoded=!1,this.dirty=!0,this.sections.clear();var t=e.split("~"),n=new gt(t[0]);this.sections.set(gt.NAME,n);for(var r=n.getFieldValue("SectionIds"),i=0;i<r.length;i++)if(r[i]===rr.ID){var o=new rr(t[i+1]);this.sections.set(rr.NAME,o)}else if(r[i]===Kn.ID){var u=new Kn(t[i+1]);this.sections.set(Kn.NAME,u)}else if(r[i]===dr.ID){var c=new dr(t[i+1]);this.sections.set(dr.NAME,c)}else if(r[i]===Mr.ID){var a=new Mr(t[i+1]);this.sections.set(Mr.NAME,a)}else if(r[i]===qr.ID){var f=new qr(t[i+1]);this.sections.set(qr.NAME,f)}else if(r[i]===Zr.ID){var s=new Zr(t[i+1]);this.sections.set(Zr.NAME,s)}else if(r[i]===ci.ID){var l=new ci(t[i+1]);this.sections.set(ci.NAME,l)}else if(r[i]===di.ID){var h=new di(t[i+1]);this.sections.set(di.NAME,h)}else if(r[i]===mi.ID){var v=new mi(t[i+1]);this.sections.set(mi.NAME,v)}this.decoded=!0,this.dirty=!1}},{key:"encodeSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}return this.sections.has(e)?this.sections.get(e).encode():null}},{key:"encodeSectionById",value:function(e){return this.encodeSection(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"decodeSection",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}var n=null;this.sections.has(e)?n=this.sections.get(e):e===rr.NAME?(n=new rr,this.sections.set(rr.NAME,n)):e===Kn.NAME?(n=new Kn,this.sections.set(Kn.NAME,n)):e===dr.NAME?(n=new dr,this.sections.set(dr.NAME,n)):e===Mr.NAME?(n=new Mr,this.sections.set(Mr.NAME,n)):e===qr.NAME?(n=new qr,this.sections.set(qr.NAME,n)):e===Zr.NAME?(n=new Zr,this.sections.set(Zr.NAME,n)):e===ci.NAME?(n=new ci,this.sections.set(ci.NAME,n)):e===di.NAME?(n=new di,this.sections.set(di.NAME,n)):e===mi.NAME&&(n=new mi,this.sections.set(mi.NAME,n)),n&&n.decode(t)}},{key:"decodeSectionById",value:function(e,t){this.decodeSection(Ri.SECTION_ID_NAME_MAP.get(e),t)}},{key:"toObject",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new xi(e.message)}for(var e={},t=0;t<Ri.SECTION_ORDER.length;t++){var n=Ri.SECTION_ORDER[t];this.sections.has(n)&&(e[n]=this.sections.get(n).toObj())}return e}}])&&Pi(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Di=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Bi(this,"gppVersion","1.1"),Bi(this,"supportedAPIs",[]),Bi(this,"eventQueue",new we(this)),Bi(this,"cmpStatus",ue.LOADING),Bi(this,"cmpDisplayStatus",ce.HIDDEN),Bi(this,"signalStatus",fe.NOT_READY),Bi(this,"applicableSections",[]),Bi(this,"gppModel",new Ai),Bi(this,"cmpId",void 0),Bi(this,"cmpVersion",void 0),Bi(this,"eventStatus",void 0)}var t,n;return t=e,(n=[{key:"reset",value:function(){this.eventQueue.clear(),this.cmpStatus=ue.LOADING,this.cmpDisplayStatus=ce.HIDDEN,this.signalStatus=fe.NOT_READY,this.applicableSections=[],this.supportedAPIs=[],this.gppModel=new Ai,delete this.cmpId,delete this.cmpVersion,delete this.eventStatus}}])&&Ni(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Fi=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,n=[{key:"absCall",value:function(e,t,n,r){return new Promise((function(i,o){var u=new XMLHttpRequest;u.withCredentials=n,u.addEventListener("load",(function(){if(u.readyState==XMLHttpRequest.DONE)if(u.status>=200&&u.status<300){var e=u.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}i(e)}else o(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){o(new Error("error"))})),u.addEventListener("abort",(function(){o(new Error("aborted"))})),null===t?u.open("GET",e,!0):u.open("POST",e,!0),u.responseType="json",u.timeout=r,u.ontimeout=function(){o(new Error("Timeout "+r+"ms "+e))},u.send(t)}))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,r)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}],null&&Mi(t.prototype,null),n&&Mi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Ui(e,t){if(t&&("object"==typeof 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)}function Li(e){var t="function"==typeof Map?new Map:void 0;return Li=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return $i(e,arguments,Wi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Gi(r,e)},Li(e)}function $i(e,t,n){return $i=_i()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Gi(i,n.prototype),i},$i.apply(null,arguments)}function _i(){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 Gi(e,t){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gi(e,t)}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wi(e)}var qi=(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&&Gi(e,t)})(o,e);var t,n,r,i=(t=o,n=_i(),function(){var e,r=Wi(t);if(n){var i=Wi(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Ui(this,e)});function o(e){var t;return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,e)).name="GVLError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Li(Error));function Hi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ji,Ki,zi,Yi=(function(){function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,n;return t=e,(n=[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])&&Hi(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})();function Qi(){Qi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,u=Object.create(o.prototype),c=new E(i||[]);return r(u,"_invoke",{value:g(e,n,c)}),u}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var l={};function h(){}function v(){}function b(){}var d={};a(d,o,(function(){return this}));var p=Object.getPrototypeOf,w=p&&p(p(R([])));w&&w!==t&&n.call(w,o)&&(d=w);var y=b.prototype=h.prototype=Object.create(d);function O(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function i(r,o,u,c){var a=s(e[r],e,o);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(l).then((function(e){f.value=e,u(f)}),(function(e){return i("throw",e,u,c)}))}c(a.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function g(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var u=n.delegate;if(u){var c=m(u,n);if(c){if(c===l)continue;return c}}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 a=s(e,t,n);if("normal"===a.type){if(r=n.done?"completed":"suspendedYield",a.arg===l)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r="completed",n.method="throw",n.arg=a.arg)}}}function m(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,m(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.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,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=b,r(y,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:v,configurable:!0}),v.displayName=a(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,a(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},O(j.prototype),a(j.prototype,u,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var u=new j(f(t,n,r,i),o);return e.isGeneratorFunction(n)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},O(y),a(y,c,"Generator"),a(y,o,(function(){return this})),a(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=R,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return u.type="throw",u.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),a=n.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=e,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),l}},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 i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Xi(e,t,n,r,i,o,u){try{var c=e[o](u),a=c.value}catch(e){return void n(e)}c.done?t(a):Promise.resolve(a).then(r,i)}function Zi(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function u(e){Xi(o,r,i,u,c,"next",e)}function c(e){Xi(o,r,i,u,c,"throw",e)}u(void 0)}))}}function eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function to(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ji=Yi,Ki="langSet",zi=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"]),Ki in Ji?Object.defineProperty(Ji,Ki,{value:zi,enumerable:!0,configurable:!0,writable:!0}):Ji[Ki]=zi;var no=(function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),to(this,"vendors",void 0),to(this,"consentLanguages",new Yi),to(this,"gvlSpecificationVersion",void 0),to(this,"vendorListVersion",void 0),to(this,"tcfPolicyVersion",void 0),to(this,"lastUpdated",void 0),to(this,"purposes",void 0),to(this,"specialPurposes",void 0),to(this,"features",void 0),to(this,"specialFeatures",void 0),to(this,"stacks",void 0),to(this,"dataCategories",void 0),to(this,"language",e.DEFAULT_LANGUAGE),to(this,"vendorIds",void 0),to(this,"ready",!1),to(this,"fullVendorList",void 0),to(this,"byPurposeVendorMap",void 0),to(this,"bySpecialPurposeVendorMap",void 0),to(this,"byFeatureVendorMap",void 0),to(this,"bySpecialFeatureVendorMap",void 0),to(this,"baseUrl",void 0),to(this,"languageFilename","purposes-[LANG].json")}var t,n,r,i,o;return r=e,i=[{key:"changeLanguage",value:(n=Zi(Qi().mark((function e(t){var n,r;return Qi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.toUpperCase(),!this.consentLanguages.has(n)){e.next=18;break}if(n===this.language){e.next=16;break}return this.language=n,r=this.baseUrl+this.languageFilename.replace("[LANG]",t),e.prev=5,e.t0=this,e.next=9,Fi.fetch(r);case 9:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=16;break;case 13:throw e.prev=13,e.t2=e.catch(5),new qi("unable to load language: "+e.t2.message);case 16:e.next=19;break;case 18:throw new qi("unsupported language ".concat(t));case 19:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(e){return n.apply(this,arguments)})},{key:"getJson",value: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,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.ready=!0)}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(e){t.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((function(e){t.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((function(e){t.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((function(e){return+e}))),this.vendorIds=new Set(e),this.vendors=e.reduce((function(e,n){var r=t.vendors[String(n)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(e){t.byPurposeVendorMap[String(e)].consent.add(n)})),r.specialPurposes.forEach((function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)})),r.legIntPurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)})),r.features.forEach((function(e){t.byFeatureVendorMap[String(e)].add(n)})),r.specialFeatures.forEach((function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)})),e[n]=r),e}),{})}},{key:"getFilteredVendors",value:function(e,t,n,r){var i=this,o=e.charAt(0).toUpperCase()+e.slice(1),u={};return("purpose"===e&&n?this["by"+o+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+o+"VendorMap"][String(t)]).forEach((function(e){u[String(e)]=i.vendors[String(e)]})),u}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.ready}}],o=[{key:"fromVendorList",value:function(t){var n=new e;return n.populate(t),n}},{key:"fromUrl",value:(t=Zi(Qi().mark((function t(n){var r,i,o,u,c,a;return Qi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=n.baseUrl)&&0!==r.length){t.next=3;break}throw new qi("Invalid baseUrl: '"+r+"'");case 3:if(!/^https?:\/\/vendorlist\.consensu\.org\//.test(r)){t.next=5;break}throw new qi("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");case 5:if(r.length>0&&"/"!==r[r.length-1]&&(r+="/"),(i=new e).baseUrl=r,n.languageFilename?i.languageFilename=n.languageFilename:i.languageFilename="purposes-[LANG].json",!(n.version>0)){t.next=20;break}return(o=n.versionedFilename)||(o="archives/vendor-list-v[VERSION].json"),u=r+o.replace("[VERSION]",String(n.version)),t.t0=i,t.next=16,Fi.fetch(u);case 16:t.t1=t.sent,t.t0.populate.call(t.t0,t.t1),t.next=28;break;case 20:return(c=n.latestFilename)||(c="vendor-list.json"),a=r+c,t.t2=i,t.next=26,Fi.fetch(a);case 26:t.t3=t.sent,t.t2.populate.call(t.t2,t.t3);case 28:return t.abrupt("return",i);case 29:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})},{key:"isInstanceOf",value:function(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}],i&&eo(r.prototype,i),o&&eo(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e})();function ro(){ro=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,u=Object.create(o.prototype),c=new E(i||[]);return r(u,"_invoke",{value:g(e,n,c)}),u}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var l={};function h(){}function v(){}function b(){}var d={};a(d,o,(function(){return this}));var p=Object.getPrototypeOf,w=p&&p(p(R([])));w&&w!==t&&n.call(w,o)&&(d=w);var y=b.prototype=h.prototype=Object.create(d);function O(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function i(r,o,u,c){var a=s(e[r],e,o);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){i("next",e,u,c)}),(function(e){i("throw",e,u,c)})):t.resolve(l).then((function(e){f.value=e,u(f)}),(function(e){return i("throw",e,u,c)}))}c(a.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function g(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var u=n.delegate;if(u){var c=m(u,n);if(c){if(c===l)continue;return c}}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 a=s(e,t,n);if("normal"===a.type){if(r=n.done?"completed":"suspendedYield",a.arg===l)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r="completed",n.method="throw",n.arg=a.arg)}}}function m(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,m(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.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,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=b,r(y,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:v,configurable:!0}),v.displayName=a(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,a(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},O(j.prototype),a(j.prototype,u,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var u=new j(f(t,n,r,i),o);return e.isGeneratorFunction(n)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},O(y),a(y,c,"Generator"),a(y,o,(function(){return this})),a(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=R,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return u.type="throw",u.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),a=n.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=e,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),l}},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 i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function io(e,t,n,r,i,o,u){try{var c=e[o](u),a=c.value}catch(e){return void n(e)}c.done?t(a):Promise.resolve(a).then(r,i)}function oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}to(no,"DEFAULT_LANGUAGE","EN");var co=(function(){function e(t,n,r){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),uo(this,"callResponder",void 0),uo(this,"cmpApiContext",void 0),this.cmpApiContext=new Di,this.cmpApiContext.cmpId=t,this.cmpApiContext.cmpVersion=n,this.callResponder=new be(this.cmpApiContext,r)}var t,n,r,i;return t=e,n=[{key:"fireEvent",value:function(e,t){this.cmpApiContext.eventQueue.exec(e,t)}},{key:"fireErrorEvent",value:function(e){this.cmpApiContext.eventQueue.exec("error",e)}},{key:"fireSectionChange",value:function(e){this.cmpApiContext.eventQueue.exec("sectionChange",e)}},{key:"getEventStatus",value:function(){return this.cmpApiContext.eventStatus}},{key:"setEventStatus",value:function(e){this.cmpApiContext.eventStatus=e}},{key:"getCmpStatus",value:function(){return this.cmpApiContext.cmpStatus}},{key:"setCmpStatus",value:function(e){this.cmpApiContext.cmpStatus=e,this.cmpApiContext.eventQueue.exec("cmpStatus",e)}},{key:"getCmpDisplayStatus",value:function(){return this.cmpApiContext.cmpDisplayStatus}},{key:"setCmpDisplayStatus",value:function(e){this.cmpApiContext.cmpDisplayStatus=e,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",e)}},{key:"getSignalStatus",value:function(){return this.cmpApiContext.signalStatus}},{key:"setSignalStatus",value:function(e){this.cmpApiContext.signalStatus=e,this.cmpApiContext.eventQueue.exec("signalStatus",e)}},{key:"getApplicableSections",value:function(){return this.cmpApiContext.applicableSections}},{key:"setApplicableSections",value:function(e){this.cmpApiContext.applicableSections=e}},{key:"getSupportedAPIs",value:function(){return this.cmpApiContext.supportedAPIs}},{key:"setSupportedAPIs",value:function(e){this.cmpApiContext.supportedAPIs=e}},{key:"setGppString",value:function(e){this.cmpApiContext.gppModel.decode(e)}},{key:"getGppString",value:function(){return this.cmpApiContext.gppModel.encode()}},{key:"setSectionString",value:function(e,t){this.cmpApiContext.gppModel.decodeSection(e,t)}},{key:"setSectionStringById",value:function(e,t){this.setSectionString(Ri.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSectionString",value:function(e){return this.cmpApiContext.gppModel.encodeSection(e)}},{key:"getSectionStringById",value:function(e){return this.getSectionString(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"setFieldValue",value:function(e,t,n){this.cmpApiContext.gppModel.setFieldValue(e,t,n)}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(Ri.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){return this.cmpApiContext.gppModel.getFieldValue(e,t)}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(Ri.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSection",value:function(e){return this.cmpApiContext.gppModel.getSection(e)}},{key:"getSectionById",value:function(e){return this.getSection(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"hasSection",value:function(e){return this.cmpApiContext.gppModel.hasSection(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){this.cmpApiContext.gppModel.deleteSection(e)}},{key:"deleteSectionById",value:function(e){this.deleteSection(Ri.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.cmpApiContext.gppModel.clear()}},{key:"getObject",value:function(){return this.cmpApiContext.gppModel.toObject()}},{key:"getGvlFromVendorList",value:function(e){return no.fromVendorList(e)}},{key:"getGvlFromUrl",value:(r=ro().mark((function e(t){return ro().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",no.fromUrl(t));case 1:case"end":return e.stop()}}),e)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function u(e){io(o,n,i,u,c,"next",e)}function c(e){io(o,n,i,u,c,"throw",e)}u(void 0)}))},function(e){return i.apply(this,arguments)})}],n&&oo(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e})(),ao={u:"admiral",h:"A-5FF77716E231F116B17B165C-32",O:"m",j:"4dm1r11545242527",g:30,S:['webcache'],k:['googlebot','mediapartners-google','adsbot-google','facebookexternalhit','bingbot','bingpreview','googleweblight','yandex','cxensebot','duckduckbot','archive.org_bot','baiduspider','slurp'],R:['googleweblight'],T:"de-DE,de;q=0.9",C:"",I:"_awl",P:"_admrla",V:"admbenefits",A:"_alvd",N:34128000,B:0};function fo(e,t){return typeof e===t}var so=window,lo=ao.j;function ho(e,t){var n=t[0];function r(){return e.a[n].apply(e.a,t.slice(1))}try{return"triggerEvent"===n?Promise.resolve().then(r):r()}catch(e){}}function vo(){try{return so.admiral||so[lo]}catch(e){}return so[lo]}var bo=function(e,t){var n=Array.prototype.slice.call(t);e&&n.unshift(e);var r=vo();if(r&&r.loaded)return ho(r,n);r=fo(r,"function")&&r||function(){(so.admiral.q=so.admiral.q||[]).push(arguments)};try{so[lo]=so.admiral=r}catch(e){so[lo]=r}r("ready",(function(){return ho(vo(),n)}))};function po(){return bo("after",arguments)}function wo(){return bo("triggerEvent",arguments)}var yo=function(){return bo("",arguments)};var Oo="object";function jo(e,t,n){if((n=typeof t)!==Oo)throw new Error("expected ".concat(Oo," got ").concat(n));for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function go(e){for(var t=1;t<arguments.length&&arguments[t];t++)e=jo(e,arguments[t]);return e}var mo=go({},ao,{D:9,M:1,F:false,U:'',L:true,$:true}),So="_adm-gpp";function ko(e){return e.map((function(e){return~~e})).filter((function(e){return!!e}))}function Eo(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&fo(e[t],"string")}var Ro=window.unescape||window.decodeURIComponent,To=window.escape||window.encodeURIComponent,Co="cookieStore"in window&&window.cookieStore;function Io(e,t,n){var r=n||{};if(void 0===t)return Co&&!r.sync?e?Co.getAll(e):Co.getAll():new Promise((function(t){var n,r,i,o=[],u=document.cookie.split(";");for(i=0;i<u.length;i++)if(n=u[i].substring(0,u[i].indexOf("=")).trim(),r=u[i].substring(u[i].indexOf("=")+1),!e||n===e)try{o.push({name:n,value:Ro(r)})}catch(e){}t(o)}));if(Co&&!r.sync){if(!r.domain&&null!==r.domain){var i=window.location.hostname;i&&(r.domain=i)}return r.domain&&"."===r.domain[0]&&(r.domain=r.domain.substring(1)),!t||r.maxAge<0?r.hasOwnProperty("domain")?Co.delete({name:e,domain:r.domain}):Co.delete(e):(r.maxAge&&(r.expires||(r.expires=Date.now()+1e3*r.maxAge),delete r.maxAge),r.sameSite||(r.sameSite="none"),Co.set(go({name:e,value:t},r)))}return new Promise((function(n){var i=t?To(t):"";if(t||(r.maxAge=-1),r.maxAge&&(i+="; max-age="+r.maxAge),!r.domain&&null!==r.domain){var o=window.location.hostname;o&&(r.domain="."+o)}r.domain&&(i+="; domain="+r.domain),null==r.path&&(r.path="/"),r.path&&(i+="; path="+r.path),"https:"===window.location.protocol&&"PublicKeyCredential"in window&&(i+="; SameSite=None; Secure"),document.cookie=e+"="+i,n()})).then((function(){if(t&&r.domain)return Io(e).then((function(t){if(!t||!t.length)throw new Error("failed to set cookie "+e+" on "+r.domain)}))}))}function xo(e){return Math.max(0,Math.round(1e3*(e||0))/1e3)}var Po=window;function Vo(e,t){var n=[];try{var r=new URL(e,window.location).href;n=(function(e){return e&&"getEntriesByName"in e?e:Po.performance})(t).getEntriesByName(r||e,"resource")||[]}catch(e){}if(!n||n.length<1)return null;var i=n[n.length-1],o=i.connectStart,u=i.requestStart,c=i.connectEnd,a=i.responseStart;return{dns:xo(i.domainLookupEnd-i.domainLookupStart),transferSize:xo(i.transferSize),encodedSize:xo(i.encodedBodySize),duration:xo(i.duration),connect:xo(c-o>0&&u-o),request:xo(a-u),response:xo(i.responseEnd-a),ssl:xo(i.secureConnectionStart&&c-i.secureConnectionStart),number:n.length,protocol:i.nextHopProtocol||"",startTime:xo(i.startTime)}}try{Po.performance.addEventListener("resourcetimingbufferfull",(function(){"setResourceTimingBufferSize"in Po.performance&&Po.performance.setResourceTimingBufferSize(Po.performance.getEntries().length+100)}))}catch(e){}function Ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function No(e,t,n){return t&&Ao(e.prototype,t),n&&Ao(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Bo,Do=(Bo=document,Bo.currentScript||{}).src,Mo="usnat",Fo=mo.M,Uo=mo.D,Lo=mo.B||mo.N,$o=window.__gpp&&window.__gpp.v||0;function _o(e){var t=mo.U||"";return Io(So,e,{maxAge:Lo,domain:t}).catch((function(n){if(t)return Io(So,e,{maxAge:Lo});throw n}))}function Go(e){e=e||{};var t={veru:$o};return t.ccvs=(e.version||1)+"",t.ccs=e.state||4,t.cct="usnat",t.uccv=(e.version||1)+"",t.uccs=e.state||4,[["optOuts","unoo"],["consents","unc"],["notices","unn"]].forEach((function(n){t[n[1]]=ko(e[n[0]]||[])})),t}var Wo=[["SaleOptOut",1],["SharingOptOut",2],["TargetedAdvertisingOptOut",3]];function qo(e){if(!e.hasSectionId(7))return{applies:!1,_private:function(){return{reportingData:{veru:$o}}}};var t=[];Wo.forEach((function(n){var r=n[0],i=n[1];1===e.getFieldValueBySectionId(7,r)&&t.push(i)}));var n={optOuts:t,consents:[],notices:[1,2,3,4],version:e.getFieldValueBySectionId(7,"Version")||1,state:1};return t.length>0&&(t.length===Wo.length?n.state=3:n.state=2),{applies:!0,state:n,_private:function(){return{reportingData:Go(n)}}}}function Ho(e){e.addDataFormatter("cmpImpression",(function(e){if("usnat"===e.type){var t={};return t.ccv=Fo||0,t.cct=e.type,t}return(function(e){var t={};return t.gvlv=e&&e.tcModel&&e.tcModel.vendorListVersion||0,t.ccv=e&&e.cmpVersion||0,t.cct="tcf",Eo(e,"language")&&(t.cmpl=e.language),Array.isArray(e.publisherPurposes)&&(t.pupa=ko(e.publisherPurposes)),Array.isArray(e.purposes)&&(t.pura=ko(e.purposes)),t})(e)}),!0),e.addDataFormatter("cmpConsent",(function(t){if("usnat"===t.type){var n={};return n.ccv=Fo||0,n.cct=t.type,n.cmpid=e.lastID("cmpImpression[usnat]"),n}return(function(e,t){var n={};return n.gvlv=t&&t.tcModel&&t.tcModel.vendorListVersion||0,n.ccv=t&&t.cmpVersion||0,n.cct="tcf",(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&fo(e[t],"number")})(t,"consentScreen")&&(n.csid=t.consentScreen),Eo(t,"language")&&(n.cmpl=t.language),n.cmpid=e.lastID("cmpImpression[tcf]"),n})(e,t)}),!0)}var Jo=new Ai,Ko=No((function e(){!(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e)}));function zo(){this.l=!!/*! For license information please see cmpClient.min.js.LICENSE.txt */
!(function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,(function(t){return n[t]}).bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=2)})([,function(n,t){"Set"in window&&"entries"in window.Set.prototype||(function(n){var t={undef:!0},e={nan:!0},r=void 0!==n.Symbol;function i(n){return"number"==typeof n&&isNaN(n)?e:n}function o(n){return n===e?NaN:n}function u(n,e){for(var r=[],i=0;i<n._values.length;)n._values[i]!==t&&r.push(e.call(n,i)),i++;return r}var c=function(n){this._values=[],this.size=this._size=0,n&&"function"==typeof n.forEach&&n.forEach((function(n){this.add.call(this,n)}),this)};try{Object.defineProperty(c.prototype,"size",{get:function(){return this._size},set:function(){}})}catch(n){}c.prototype.add=function(n){return n=i(n),-1===this._values.indexOf(n)&&(this._values.push(n),this.size=++this._size),this},c.prototype.has=function(n){return-1!==this._values.indexOf(i(n))},c.prototype.delete=function(n){var e=this._values.indexOf(i(n));return-1!==e&&(this._values[e]=t,this.size=--this._size,!0)},c.prototype.clear=function(){this._values=[],this.size=this._size=0},c.prototype.values=c.prototype.keys=function(){var n=u(this,(function(n){return o(this._values[n])}));return r&&(n[Symbol.iterator]=this.keys.bind(this)),n},r&&(c.prototype[Symbol.iterator]=c.prototype.values),c.prototype.entries=function(){var n=u(this,(function(n){return[o(this._values[n]),o(this._values[n])]}));return r&&(n[Symbol.iterator]=this.entries.bind(this)),n},c.prototype.forEach=function(t,e){e=e||n,this.entries().forEach((function(n){t.call(e,n[1],n[0],this)}))},c.prototype.constructor=c,r&&(c.prototype[Symbol.species]=c),c.prototype.constructor=c,c.name="Set",n.Set=c})(window)},function(n,t,e){"use strict";e.r(t);var r={u:"admiral",v:"A-5FF77716E231F116B17B165C-32",h:"m",j:"4dm1r11545242527",O:30,g:['webcache'],k:['googlebot','mediapartners-google','adsbot-google','facebookexternalhit','bingbot','bingpreview','googleweblight','yandex','cxensebot','duckduckbot','archive.org_bot','baiduspider','slurp'],S:['googleweblight'],C:"de-DE,de;q=0.9",R:"",T:"_awl",A:"_admrla",I:"admbenefits",L:"_alvd",P:34128000,V:0};function i(n,t){return typeof n===t}function o(n){return i(n,"function")}var u=window,c=r.j;function a(n,t){var e=t[0];function r(){return n.a[e].apply(n.a,t.slice(1))}try{return"triggerEvent"===e?Promise.resolve().then(r):r()}catch(n){}}function f(){try{return u.admiral||u[c]}catch(n){}return u[c]}var s=function(n,t){var e=Array.prototype.slice.call(t);n&&e.unshift(n);var r=f();if(r&&r.loaded)return a(r,e);r=o(r)&&r||function(){(u.admiral.q=u.admiral.q||[]).push(arguments)};try{u[c]=u.admiral=r}catch(n){u[c]=r}r("ready",(function(){return a(f(),e)}))};function l(){return s("after",arguments)}function v(){return s("triggerEvent",arguments)}var h,p,b,d,y=function(){return s("",arguments)};function w(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function m(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}!(function(n){n.PING="ping",n.GET_TC_DATA="getTCData",n.GET_IN_APP_TC_DATA="getInAppTCData",n.GET_VENDOR_LIST="getVendorList",n.ADD_EVENT_LISTENER="addEventListener",n.REMOVE_EVENT_LISTENER="removeEventListener"})(h||(h={})),(function(n){n.STUB="stub",n.LOADING="loading",n.LOADED="loaded",n.ERROR="error"})(p||(p={})),(function(n){n.VISIBLE="visible",n.HIDDEN="hidden",n.DISABLED="disabled"})(b||(b={})),(function(n){n.TC_LOADED="tcloaded",n.CMP_UI_SHOWN="cmpuishown",n.USER_ACTION_COMPLETE="useractioncomplete"})(d||(d={}));var j=(function(){function n(t,e,r,i){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),m(this,"listenerId",void 0),m(this,"callback",void 0),m(this,"next",void 0),m(this,"param",void 0),m(this,"success",!0),Object.assign(this,{callback:t,listenerId:r,param:e,next:i});try{this.respond()}catch(n){this.invokeCallback(null)}}var t,e;return t=n,(e=[{key:"invokeCallback",value:function(n){var t=null!==n;"function"==typeof this.next?this.callback(this.next,n,t):this.callback(n,t)}}])&&w(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function O(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function g(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function k(n,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},k(n,t)}function S(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function E(n){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E(n)}var C=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&k(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=E(r);if(i){var e=E(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return S(this,n)});function u(){return O(this,u),o.apply(this,arguments)}return t=u,(e=[{key:"respond",value:function(){this.throwIfParamInvalid(),this.invokeCallback(new Q(this.param,this.listenerId))}},{key:"throwIfParamInvalid",value:function(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}])&&g(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(j);function R(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function T(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var A=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),T(this,"eventQueue",new Map),T(this,"queueNumber",0)}var t,e;return t=n,(e=[{key:"add",value:function(n){return this.eventQueue.set(this.queueNumber,n),this.queueNumber++}},{key:"remove",value:function(n){return this.eventQueue.delete(n)}},{key:"exec",value:function(){this.eventQueue.forEach((function(n,t){new C(n.callback,n.param,t,n.next)}))}},{key:"clear",value:function(){this.queueNumber=0,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}])&&R(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function I(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function L(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var P=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"reset",value:function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=p.LOADING,this.disabled=!1,this.displayStatus=b.HIDDEN,this.eventQueue.clear()}}],null&&I(t.prototype,null),e&&I(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function V(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function x(n,t,e){return t&&V(n.prototype,t),e&&V(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function N(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}L(P,"apiVersion","2"),L(P,"tcfPolicyVersion",void 0),L(P,"eventQueue",new A),L(P,"cmpStatus",p.LOADING),L(P,"disabled",!1),L(P,"displayStatus",b.HIDDEN),L(P,"cmpId",void 0),L(P,"cmpVersion",void 0),L(P,"eventStatus",void 0),L(P,"gdprApplies",void 0),L(P,"tcModel",void 0),L(P,"tcString",void 0);var _=x((function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),N(this,"cmpId",P.cmpId),N(this,"cmpVersion",P.cmpVersion),N(this,"gdprApplies",P.gdprApplies),N(this,"tcfPolicyVersion",P.tcfPolicyVersion)}));function M(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function B(n,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},B(n,t)}function D(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $(n)}function $(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function F(n){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},F(n)}function G(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var U=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&B(n,t)})(o,n);var t,e,r,i=(e=o,r=(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(n){return!1}})(),function(){var n,t=F(e);if(r){var i=F(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return D(this,n)});function o(){var n;M(this,o);for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return G($(n=i.call.apply(i,[this].concat(e))),"cmpStatus",p.ERROR),n}return t=o,Object.defineProperty(t,"prototype",{writable:!1}),t})(_);function H(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function J(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function W(n,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},W(n,t)}function q(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(n)}function z(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Y(n){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(n)}function K(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Q=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&W(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=Y(r);if(i){var e=Y(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return q(this,n)});function u(n,t){var e;if((function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),K(z(e=o.call(this)),"tcString",void 0),K(z(e),"listenerId",void 0),K(z(e),"eventStatus",void 0),K(z(e),"cmpStatus",void 0),K(z(e),"isServiceSpecific",void 0),K(z(e),"useNonStandardTexts",void 0),K(z(e),"publisherCC",void 0),K(z(e),"purposeOneTreatment",void 0),K(z(e),"outOfBand",void 0),K(z(e),"purpose",void 0),K(z(e),"vendor",void 0),K(z(e),"specialFeatureOptins",void 0),K(z(e),"publisher",void 0),e.eventStatus=P.eventStatus,e.cmpStatus=P.cmpStatus,e.listenerId=t,P.gdprApplies){var r=P.tcModel;e.tcString=P.tcString,e.isServiceSpecific=r.isServiceSpecific,e.useNonStandardTexts=r.useNonStandardTexts,e.purposeOneTreatment=r.purposeOneTreatment,e.publisherCC=r.publisherCountryCode,e.outOfBand={allowedVendors:e.createVectorField(r.vendorsAllowed,n),disclosedVendors:e.createVectorField(r.vendorsDisclosed,n)},e.purpose={consents:e.createVectorField(r.purposeConsents),legitimateInterests:e.createVectorField(r.purposeLegitimateInterests)},e.vendor={consents:e.createVectorField(r.vendorConsents,n),legitimateInterests:e.createVectorField(r.vendorLegitimateInterests,n)},e.specialFeatureOptins=e.createVectorField(r.specialFeatureOptins),e.publisher={consents:e.createVectorField(r.publisherConsents),legitimateInterests:e.createVectorField(r.publisherLegitimateInterests),customPurpose:{consents:e.createVectorField(r.publisherCustomConsents),legitimateInterests:e.createVectorField(r.publisherCustomLegitimateInterests)},restrictions:e.createRestrictions(r.publisherRestrictions)}}return e}return t=u,(e=[{key:"createRestrictions",value:function(n){var t={};if(n.numRestrictions>0)for(var e=n.getMaxVendorId(),r=function(e){var r=e.toString();n.getRestrictions(e).forEach((function(n){var e=n.purposeId.toString();t[e]||(t[e]={}),t[e][r]=n.restrictionType}))},i=1;i<=e;i++)r(i);return t}},{key:"createVectorField",value:function(n,t){return t?t.reduce((function(t,e){return t[String(e)]=n.has(Number(e)),t}),{}):(e=n,(function(n){if(Array.isArray(n))return H(n)})(e)||(function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)})(e)||(function(n,t){if(n){if("string"==typeof n)return H(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?H(n,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.")})()).reduce((function(n,t){return n[t[0].toString(10)]=t[1],n}),{});var e}}])&&J(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(_);function X(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Z(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function nn(n,t){return nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},nn(n,t)}function tn(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function en(n){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},en(n)}var rn=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&nn(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=en(r);if(i){var e=en(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return tn(this,n)});function u(n){var t;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),delete(t=o.call(this,n)).outOfBand,t}return t=u,(e=[{key:"createVectorField",value:function(n){return(t=n,(function(n){if(Array.isArray(n))return X(n)})(t)||(function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)})(t)||(function(n,t){if(n){if("string"==typeof n)return X(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?X(n,t):void 0}})(t)||(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.")})()).reduce((function(n,t){return n+(t[1]?"1":"0")}),"");var t}},{key:"createRestrictions",value:function(n){var t={};if(n.numRestrictions>0){var e=n.getMaxVendorId();n.getRestrictions().forEach((function(n){t[n.purposeId.toString()]="_".repeat(e)}));for(var r=function(e){var r=e+1;n.getRestrictions(r).forEach((function(n){var r=n.restrictionType.toString(),i=n.purposeId.toString(),o=t[i].substr(0,e),u=t[i].substr(e+1);t[i]=o+r+u}))},i=0;i<e;i++)r(i)}return t}}])&&Z(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(Q);function on(n,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},on(n,t)}function un(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cn(n)}function cn(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function an(n){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},an(n)}function fn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var sn=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&on(n,t)})(o,n);var t,e,r,i=(e=o,r=(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(n){return!1}})(),function(){var n,t=an(e);if(r){var i=an(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return un(this,n)});function o(){var n;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),fn(cn(n=i.call(this)),"cmpLoaded",!0),fn(cn(n),"cmpStatus",P.cmpStatus),fn(cn(n),"displayStatus",P.displayStatus),fn(cn(n),"apiVersion",String(P.apiVersion)),fn(cn(n),"gvlVersion",void 0),P.tcModel&&P.tcModel.vendorListVersion&&(n.gvlVersion=+P.tcModel.vendorListVersion),n}return t=o,Object.defineProperty(t,"prototype",{writable:!1}),t})(_);function ln(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function hn(n,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},hn(n,t)}function pn(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function bn(n){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bn(n)}var dn=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&hn(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=bn(r);if(i){var e=bn(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return pn(this,n)});function u(){return ln(this,u),o.apply(this,arguments)}return t=u,(e=[{key:"respond",value:function(){this.invokeCallback(new sn)}}])&&vn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(j);function yn(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function wn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function mn(n,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},mn(n,t)}function jn(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function On(n){return On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},On(n)}var gn=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&mn(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=On(r);if(i){var e=On(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return jn(this,n)});function u(){return yn(this,u),o.apply(this,arguments)}return t=u,(e=[{key:"respond",value:function(){this.throwIfParamInvalid(),this.invokeCallback(new rn(this.param))}}])&&wn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(C);function kn(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function Sn(n){var t="function"==typeof Map?new Map:void 0;return Sn=function(n){if(null===n||(e=n,-1===Function.toString.call(e).indexOf("[native code]")))return n;var e;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return En(n,arguments,Tn(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Rn(r,n)},Sn(n)}function En(n,t,e){return En=Cn()?Reflect.construct.bind():function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&Rn(i,e.prototype),i},En.apply(null,arguments)}function Cn(){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(n){return!1}}function Rn(n,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Rn(n,t)}function Tn(n){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tn(n)}var An=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Rn(n,t)})(o,n);var t,e,r,i=(t=o,e=Cn(),function(){var n,r=Tn(t);if(e){var i=Tn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kn(this,n)});function o(n){var t;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,n)).name="DecodingError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Sn(Error));function In(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function Ln(n){var t="function"==typeof Map?new Map:void 0;return Ln=function(n){if(null===n||(e=n,-1===Function.toString.call(e).indexOf("[native code]")))return n;var e;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Pn(n,arguments,Nn(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xn(r,n)},Ln(n)}function Pn(n,t,e){return Pn=Vn()?Reflect.construct.bind():function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&xn(i,e.prototype),i},Pn.apply(null,arguments)}function Vn(){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(n){return!1}}function xn(n,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},xn(n,t)}function Nn(n){return Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nn(n)}var _n=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&xn(n,t)})(o,n);var t,e,r,i=(t=o,e=Vn(),function(){var n,r=Nn(t);if(e){var i=Nn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return In(this,n)});function o(n){var t;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,n)).name="EncodingError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Ln(Error));function Mn(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function Bn(n){var t="function"==typeof Map?new Map:void 0;return Bn=function(n){if(null===n||(e=n,-1===Function.toString.call(e).indexOf("[native code]")))return n;var e;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Dn(n,arguments,Gn(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Fn(r,n)},Bn(n)}function Dn(n,t,e){return Dn=$n()?Reflect.construct.bind():function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&Fn(i,e.prototype),i},Dn.apply(null,arguments)}function $n(){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(n){return!1}}function Fn(n,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Fn(n,t)}function Gn(n){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gn(n)}var Un=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Fn(n,t)})(o,n);var t,e,r,i=(t=o,e=$n(),function(){var n,r=Gn(t);if(e){var i=Gn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Mn(this,n)});function o(n){var t;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),(t=i.call(this,n)).name="GVLError",t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Bn(Error));function Hn(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Jn(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function Wn(n){var t="function"==typeof Map?new Map:void 0;return Wn=function(n){if(null===n||(e=n,-1===Function.toString.call(e).indexOf("[native code]")))return n;var e;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return qn(n,arguments,Kn(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Yn(r,n)},Wn(n)}function qn(n,t,e){return qn=zn()?Reflect.construct.bind():function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&Yn(i,e.prototype),i},qn.apply(null,arguments)}function zn(){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(n){return!1}}function Yn(n,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Yn(n,t)}function Kn(n){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kn(n)}var Qn=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Yn(n,t)})(o,n);var t,e,r,i=(t=o,e=zn(),function(){var n,r=Kn(t);if(e){var i=Kn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Jn(this,n)});function o(n,t){var e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Hn(this,o),(e=i.call(this,"invalid value ".concat(t," passed for ").concat(n," ").concat(r))).name="TCModelError",e}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r})(Wn(Error));function Xn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Zn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var nt=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n){if(!/^[0-1]+$/.test(n))throw new _n("Invalid bitField");var t=n.length%this.LCM;n+=t?"0".repeat(this.LCM-t):"";for(var e="",r=0;r<n.length;r+=this.BASIS)e+=this.DICT[parseInt(n.substr(r,this.BASIS),2)];return e}},{key:"decode",value:function(n){if(!/^[A-Za-z0-9\-_]+$/.test(n))throw new An("Invalidly encoded Base64URL string");for(var t="",e=0;e<n.length;e++){var r=this.REVERSE_DICT.get(n[e]).toString(2);t+="0".repeat(this.BASIS-r.length)+r}return t}}],null&&Xn(t.prototype,null),e&&Xn(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function tt(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function et(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}Zn(nt,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Zn(nt,"REVERSE_DICT",new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]])),Zn(nt,"BASIS",6),Zn(nt,"LCM",24);var rt,it,ot,ut=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,(e=[{key:"has",value:function(t){return n.langSet.has(t)}},{key:"parseLanguage",value:function(t){var e=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==e.length){if(n.langSet.has(t))return t;if(n.langSet.has(e))return e;var r=e+"-"+e;if(n.langSet.has(r))return r;var i,o=(function(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=(function(n,t){if(n){if("string"==typeof n)return tt(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?tt(n,t):void 0}})(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}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,u=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return u=n.done,n},e:function(n){c=!0,o=n},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw o}}}})(n.langSet);try{for(o.s();!(i=o.n()).done;){var u=i.value;if(-1!==u.indexOf(t)||-1!==u.indexOf(e))return u}}catch(n){o.e(n)}finally{o.f()}}throw new Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){n.langSet.forEach(t)}},{key:"size",get:function(){return n.langSet.size}}])&&et(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function ct(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function at(n,t,e){return t&&ct(n.prototype,t),e&&ct(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ft(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}rt=ut,it="langSet",ot=new Set(["AR","BG","BS","CA","CS","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TR","ZH"]),it in rt?Object.defineProperty(rt,it,{value:ot,enumerable:!0,configurable:!0,writable:!0}):rt[it]=ot;var st=at((function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}));function lt(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function vt(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}ft(st,"cmpId","cmpId"),ft(st,"cmpVersion","cmpVersion"),ft(st,"consentLanguage","consentLanguage"),ft(st,"consentScreen","consentScreen"),ft(st,"created","created"),ft(st,"supportOOB","supportOOB"),ft(st,"isServiceSpecific","isServiceSpecific"),ft(st,"lastUpdated","lastUpdated"),ft(st,"numCustomPurposes","numCustomPurposes"),ft(st,"policyVersion","policyVersion"),ft(st,"publisherCountryCode","publisherCountryCode"),ft(st,"publisherCustomConsents","publisherCustomConsents"),ft(st,"publisherCustomLegitimateInterests","publisherCustomLegitimateInterests"),ft(st,"publisherLegitimateInterests","publisherLegitimateInterests"),ft(st,"publisherConsents","publisherConsents"),ft(st,"publisherRestrictions","publisherRestrictions"),ft(st,"purposeConsents","purposeConsents"),ft(st,"purposeLegitimateInterests","purposeLegitimateInterests"),ft(st,"purposeOneTreatment","purposeOneTreatment"),ft(st,"specialFeatureOptins","specialFeatureOptins"),ft(st,"useNonStandardTexts","useNonStandardTexts"),ft(st,"vendorConsents","vendorConsents"),ft(st,"vendorLegitimateInterests","vendorLegitimateInterests"),ft(st,"vendorListVersion","vendorListVersion"),ft(st,"vendorsAllowed","vendorsAllowed"),ft(st,"vendorsDisclosed","vendorsDisclosed"),ft(st,"version","version");var ht,pt=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"clone",value:function(){var n=this,t=new this.constructor;return Object.keys(this).forEach((function(e){var r=n.deepClone(n[e]);void 0!==r&&(t[e]=r)})),t}},{key:"deepClone",value:function(n){var t=typeof n;if("number"===t||"string"===t||"boolean"===t)return n;if(null!==n&&"object"===t){if("function"==typeof n.clone)return n.clone();if(n instanceof Date)return new Date(n.getTime());if(void 0!==n[Symbol.iterator]){var e,r=[],i=(function(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=(function(n,t){if(n){if("string"==typeof n)return lt(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?lt(n,t):void 0}})(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}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,u=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return u=n.done,n},e:function(n){c=!0,o=n},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw o}}}})(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;r.push(this.deepClone(o))}}catch(n){i.e(n)}finally{i.f()}return n instanceof Array?r:new n.constructor(r)}var u={};for(var c in n)n.hasOwnProperty(c)&&(u[c]=this.deepClone(n[c]));return u}}}],e&&vt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function bt(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function dt(n,t){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},dt(n,t)}function yt(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(n)}function wt(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function mt(n){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mt(n)}function jt(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}!(function(n){n[n.NOT_ALLOWED=0]="NOT_ALLOWED",n[n.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",n[n.REQUIRE_LI=2]="REQUIRE_LI"})(ht||(ht={}));var Ot=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&dt(n,t)})(c,n);var t,e,r,i,o,u=(i=c,o=(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(n){return!1}})(),function(){var n,t=mt(i);if(o){var e=mt(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return yt(this,n)});function c(n,t){var e;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,c),jt(wt(e=u.call(this)),"purposeId_",void 0),jt(wt(e),"restrictionType",void 0),void 0!==n&&(e.purposeId=n),void 0!==t&&(e.restrictionType=t),e}return t=c,r=[{key:"unHash",value:function(n){var t=n.split(this.hashSeparator),e=new c;if(2!==t.length)throw new Qn("hash",n);return e.purposeId=parseInt(t[0],10),e.restrictionType=parseInt(t[1],10),e}}],(e=[{key:"hash",get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(c.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(n){this.purposeId_=n}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===ht.NOT_ALLOWED||this.restrictionType===ht.REQUIRE_CONSENT||this.restrictionType===ht.REQUIRE_LI)}},{key:"isSameAs",value:function(n){return this.purposeId===n.purposeId&&this.restrictionType===n.restrictionType}}])&&bt(t.prototype,e),r&&bt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c})(pt);function gt(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=(function(n,t){if(n){if("string"==typeof n)return kt(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kt(n,t):void 0}})(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}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,u=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return u=n.done,n},e:function(n){c=!0,o=n},f:function(){try{u||null==e.return||e.return()}finally{if(c)throw o}}}}function kt(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function St(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Ct(n,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Ct(n,t)}function Rt(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tt(n)}function Tt(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function At(n){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},At(n)}function It(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}jt(Ot,"hashSeparator","-");var Lt,Pt,Vt,xt=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Ct(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=At(r);if(i){var e=At(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return Rt(this,n)});function u(){var n;St(this,u);for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return It(Tt(n=o.call.apply(o,[this].concat(e))),"bitLength",0),It(Tt(n),"map",new Map),It(Tt(n),"gvl_",void 0),n}return t=u,e=[{key:"has",value:function(n){return this.map.has(n)}},{key:"isOkToHave",value:function(n,t,e){var r,i=!0;if(null!=(r=this.gvl)&&r.vendors){var o=this.gvl.vendors[e];if(o)if(n===ht.NOT_ALLOWED)i=o.legIntPurposes.includes(t)||o.purposes.includes(t);else if(o.flexiblePurposes.length)switch(n){case ht.REQUIRE_CONSENT:i=o.flexiblePurposes.includes(t)&&o.legIntPurposes.includes(t);break;case ht.REQUIRE_LI:i=o.flexiblePurposes.includes(t)&&o.purposes.includes(t)}else i=!1;else i=!1}return i}},{key:"add",value:function(n,t){if(this.isOkToHave(t.restrictionType,t.purposeId,n)){var e=t.hash;this.has(e)||(this.map.set(e,new Set),this.bitLength=0),this.map.get(e).add(n)}}},{key:"restrictPurposeToLegalBasis",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Array.from(this.gvl.vendorIds),e=n.hash;if(this.has(e)){var r,i=this.map.get(e),o=gt(t);try{for(o.s();!(r=o.n()).done;){var u=r.value;i.add(u)}}catch(n){o.e(n)}finally{o.f()}}else this.map.set(e,new Set(t)),this.bitLength=0}},{key:"getVendors",value:function(n){var t=[];if(n){var e=n.hash;this.has(e)&&(t=Array.from(this.map.get(e)))}else{var r=new Set;this.map.forEach((function(n){Array.from(n).forEach((function(n){r.add(n)}))})),t=Array.from(r)}return t.sort((function(n,t){return n-t}))}},{key:"getRestrictionType",value:function(n,t){var e;return this.getRestrictions(n).forEach((function(n){n.purposeId===t&&(void 0===e||e>n.restrictionType)&&(e=n.restrictionType)})),e}},{key:"vendorHasRestriction",value:function(n,t){for(var e=!1,r=this.getRestrictions(n),i=0;i<r.length&&!e;i++)e=t.isSameAs(r[i]);return e}},{key:"getMaxVendorId",value:function(){var n=0;return this.map.forEach((function(t){var e=Array.from(t);n=Math.max(e[e.length-1],n)})),n}},{key:"getRestrictions",value:function(n){var t=[];return this.map.forEach((function(e,r){n?e.has(n)&&t.push(Ot.unHash(r)):t.push(Ot.unHash(r))})),t}},{key:"getPurposes",value:function(){var n=new Set;return this.map.forEach((function(t,e){n.add(Ot.unHash(e).purposeId)})),Array.from(n)}},{key:"remove",value:function(n,t){var e=t.hash,r=this.map.get(e);r&&(r.delete(n),0==r.size&&(this.map.delete(e),this.bitLength=0))}},{key:"gvl",get:function(){return this.gvl_},set:function(n){var t=this;this.gvl_||(this.gvl_=n,this.map.forEach((function(n,e){var r=Ot.unHash(e);Array.from(n).forEach((function(e){t.isOkToHave(r.restrictionType,r.purposeId,e)||n.delete(e)}))})))}},{key:"isEmpty",value:function(){return 0===this.map.size}},{key:"numRestrictions",get:function(){return this.map.size}}],e&&Et(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(pt);function Nt(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function _t(n,t,e){return t&&Nt(n.prototype,t),e&&Nt(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Mt(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}!(function(n){n.COOKIE="cookie",n.WEB="web",n.APP="app"})(Lt||(Lt={})),(function(n){n.CORE="core",n.VENDORS_DISCLOSED="vendorsDisclosed",n.VENDORS_ALLOWED="vendorsAllowed",n.PUBLISHER_TC="publisherTC"})(Pt||(Pt={}));var Bt,Dt=_t((function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}));function $t(){$t=function(){return n};var n={},t=Object.prototype,e=t.hasOwnProperty,r=Object.defineProperty||function(n,t,e){n[t]=e.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function a(n,t,e){return Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{a({},"")}catch(n){a=function(n,t,e){return n[t]=e}}function f(n,t,e,i){var o=t&&t.prototype instanceof v?t:v,u=Object.create(o.prototype),c=new E(i||[]);return r(u,"_invoke",{value:O(n,e,c)}),u}function s(n,t,e){try{return{type:"normal",arg:n.call(t,e)}}catch(n){return{type:"throw",arg:n}}}n.wrap=f;var l={};function v(){}function h(){}function p(){}var b={};a(b,o,(function(){return this}));var d=Object.getPrototypeOf,y=d&&d(d(C([])));y&&y!==t&&e.call(y,o)&&(b=y);var w=p.prototype=v.prototype=Object.create(b);function m(n){["next","throw","return"].forEach((function(t){a(n,t,(function(n){return this._invoke(t,n)}))}))}function j(n,t){function i(r,o,u,c){var a=s(n[r],n,o);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&e.call(l,"__await")?t.resolve(l.__await).then((function(n){i("next",n,u,c)}),(function(n){i("throw",n,u,c)})):t.resolve(l).then((function(n){f.value=n,u(f)}),(function(n){return i("throw",n,u,c)}))}c(a.arg)}var o;r(this,"_invoke",{value:function(n,e){function r(){return new t((function(t,r){i(n,e,t,r)}))}return o=o?o.then(r,r):r()}})}function O(n,t,e){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(e.method=i,e.arg=o;;){var u=e.delegate;if(u){var c=g(u,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var a=s(n,t,e);if("normal"===a.type){if(r=e.done?"completed":"suspendedYield",a.arg===l)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(r="completed",e.method="throw",e.arg=a.arg)}}}function g(n,t){var e=n.iterator[t.method];if(void 0===e){if(t.delegate=null,"throw"===t.method){if(n.iterator.return&&(t.method="return",t.arg=void 0,g(n,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(e,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[n.resultName]=i.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]),this.tryEntries.push(t)}function S(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function E(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(k,this),this.reset(!0)}function C(n){if(n){var t=n[o];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,i=function t(){for(;++r<n.length;)if(e.call(n,r))return t.value=n[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,r(w,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=a(p,c,"GeneratorFunction"),n.isGeneratorFunction=function(n){var t="function"==typeof n&&n.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,p):(n.__proto__=p,a(n,c,"GeneratorFunction")),n.prototype=Object.create(w),n},n.awrap=function(n){return{__await:n}},m(j.prototype),a(j.prototype,u,(function(){return this})),n.AsyncIterator=j,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var u=new j(f(t,e,r,i),o);return n.isGeneratorFunction(e)?u:u.next().then((function(n){return n.done?n.value:u.next()}))},m(w),a(w,c,"Generator"),a(w,o,(function(){return this})),a(w,"toString",(function(){return"[object Generator]"})),n.keys=function(n){var t=Object(n),e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=C,E.prototype={constructor:E,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!n)for(var t in this)"t"===t.charAt(0)&&e.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function r(e,r){return u.type="throw",u.arg=n,t.next=e,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=e.call(o,"catchLoc"),a=e.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(n,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===n||"continue"===n)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=n,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(u)},complete:function(n,t){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&t&&(this.next=t),l},finish:function(n){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===n)return this.complete(e.completion,e.afterLoc),S(e),l}},catch:function(n){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===n){var r=e.completion;if("throw"===r.type){var i=r.arg;S(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,e){return this.delegate={iterator:C(n),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},n}function Ft(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Ut(n,t){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Ut(n,t)}function Ht(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jt(n)}function Jt(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Wt(n){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wt(n)}function qt(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}Mt(Dt,"ID_TO_KEY",[Pt.CORE,Pt.VENDORS_DISCLOSED,Pt.VENDORS_ALLOWED,Pt.PUBLISHER_TC]),Mt(Dt,"KEY_TO_ID",(Mt(Vt={},Pt.CORE,0),Mt(Vt,Pt.VENDORS_DISCLOSED,1),Mt(Vt,Pt.VENDORS_ALLOWED,2),Mt(Vt,Pt.PUBLISHER_TC,3),Vt)),Bt=Symbol.iterator;var zt,Yt,Kt,Qt,Xt,Zt,ne,te,ee,re,ie,oe,ue,ce,ae,fe,se,le,ve=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Ut(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=Wt(r);if(i){var e=Wt(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return Ht(this,n)});function u(){var n;Ft(this,u);for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return qt(Jt(n=o.call.apply(o,[this].concat(e))),"bitLength",0),qt(Jt(n),"maxId_",0),qt(Jt(n),"set_",new Set),n}return t=u,e=[{key:Bt,value:$t().mark((function n(){var t;return $t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=1;case 1:if(!(t<=this.maxId)){n.next=7;break}return n.next=4,[t,this.has(t)];case 4:t++,n.next=1;break;case 7:case"end":return n.stop()}}),n,this)}))},{key:"values",value:function(){return this.set_.values()}},{key:"maxId",get:function(){return this.maxId_}},{key:"has",value:function(n){return this.set_.has(n)}},{key:"unset",value:function(n){var t=this;Array.isArray(n)?n.forEach((function(n){return t.unset(n)})):"object"==typeof n?this.unset(Object.keys(n).map((function(n){return Number(n)}))):(this.set_.delete(Number(n)),this.bitLength=0,n===this.maxId&&(this.maxId_=0,this.set_.forEach((function(n){t.maxId_=Math.max(t.maxId,n)}))))}},{key:"isIntMap",value:function(n){var t=this,e="object"==typeof n;return e=e&&Object.keys(n).every((function(e){var r=Number.isInteger(parseInt(e,10));return(r=r&&t.isValidNumber(n[e].id))&&void 0!==n[e].name})),e}},{key:"isValidNumber",value:function(n){return parseInt(n,10)>0}},{key:"isSet",value:function(n){var t=!1;return n instanceof Set&&(t=Array.from(n).every(this.isValidNumber)),t}},{key:"set",value:function(n){var t=this;if(Array.isArray(n))n.forEach((function(n){return t.set(n)}));else if(this.isSet(n))this.set(Array.from(n));else if(this.isIntMap(n))this.set(Object.keys(n).map((function(n){return Number(n)})));else{if(!this.isValidNumber(n))throw new Qn("set()",n,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(n),this.maxId_=Math.max(this.maxId,n),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(n){for(var t=1;t<=this.maxId;t++)n(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(n){this.set(n)}}],e&&Gt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(pt);function he(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function pe(n,t,e){return t&&he(n.prototype,t),e&&he(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function be(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}zt=st.cmpId,Yt=st.cmpVersion,Kt=st.consentLanguage,Qt=st.consentScreen,Xt=st.created,Zt=st.isServiceSpecific,ne=st.lastUpdated,te=st.policyVersion,ee=st.publisherCountryCode,re=st.publisherLegitimateInterests,ie=st.publisherConsents,oe=st.purposeConsents,ue=st.purposeLegitimateInterests,ce=st.purposeOneTreatment,ae=st.specialFeatureOptins,fe=st.useNonStandardTexts,se=st.vendorListVersion,le=st.version;var de=pe((function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}));function ye(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}be(de,zt,12),be(de,Yt,12),be(de,Kt,12),be(de,Qt,6),be(de,Xt,36),be(de,Zt,1),be(de,ne,36),be(de,te,6),be(de,ee,12),be(de,re,24),be(de,ie,24),be(de,oe,24),be(de,ue,24),be(de,ce,1),be(de,ae,12),be(de,fe,1),be(de,se,12),be(de,le,6),be(de,"anyBoolean",1),be(de,"encodingType",1),be(de,"maxId",16),be(de,"numCustomPurposes",6),be(de,"numEntries",12),be(de,"numRestrictions",12),be(de,"purposeId",6),be(de,"restrictionType",2),be(de,"segmentType",3),be(de,"singleOrRange",1),be(de,"vendorId",16);var we=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n){return String(Number(n))}},{key:"decode",value:function(n){return"1"===n}}],null&&ye(t.prototype,null),e&&ye(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function me(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var je=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n,t){var e;if("string"==typeof n&&(n=parseInt(n,10)),(e=n.toString(2)).length>t||n<0)throw new _n("".concat(n," too large to encode into ").concat(t));return e.length<t&&(e="0".repeat(t-e.length)+e),e}},{key:"decode",value:function(n,t){if(t!==n.length)throw new An("invalid bit length");return parseInt(n,2)}}],null&&me(t.prototype,null),e&&me(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Oe(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var ge=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n,t){return je.encode(Math.round(n.getTime()/100),t)}},{key:"decode",value:function(n,t){if(t!==n.length)throw new An("invalid bit length");var e=new Date;return e.setTime(100*je.decode(n,t)),e}}],null&&Oe(t.prototype,null),e&&Oe(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function ke(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Se=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n,t){for(var e="",r=1;r<=t;r++)e+=we.encode(n.has(r));return e}},{key:"decode",value:function(n,t){if(n.length!==t)throw new An("bitfield encoding length mismatch");for(var e=new ve,r=1;r<=t;r++)we.decode(n[r-1])&&e.set(r);return e.bitLength=n.length,e}}],null&&ke(t.prototype,null),e&&ke(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Ee(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Ce=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n,t){var e=(n=n.toUpperCase()).charCodeAt(0)-65,r=n.charCodeAt(1)-65;if(e<0||e>25||r<0||r>25)throw new _n("invalid language code: ".concat(n));if(t%2==1)throw new _n("numBits must be even, ".concat(t," is not valid"));return t/=2,je.encode(e,t)+je.encode(r,t)}},{key:"decode",value:function(n,t){if(t!==n.length||n.length%2)throw new An("invalid bit length for language");var e=n.length/2,r=je.decode(n.slice(0,e),e)+65,i=je.decode(n.slice(e),e)+65;return String.fromCharCode(r)+String.fromCharCode(i)}}],null&&Ee(t.prototype,null),e&&Ee(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Re(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Te,Ae=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n){var t=je.encode(n.numRestrictions,de.numRestrictions);if(!n.isEmpty()){var e=Array.from(n.gvl.vendorIds),r=function(n,t){var r=e.indexOf(n);return e.indexOf(t)-r>1};n.getRestrictions().forEach((function(e){t+=je.encode(e.purposeId,de.purposeId),t+=je.encode(e.restrictionType,de.restrictionType);for(var i=n.getVendors(e),o=i.length,u=0,c=0,a="",f=0;f<o;f++){var s=i[f];if(0===c&&(u++,c=s),f===o-1||r(s,i[f+1])){var l=!(s===c);a+=we.encode(l),a+=je.encode(c,de.vendorId),l&&(a+=je.encode(s,de.vendorId)),c=0}}t+=je.encode(u,de.numEntries),t+=a}))}return t}},{key:"decode",value:function(n){var t=0,e=new xt,r=je.decode(n.substr(t,de.numRestrictions),de.numRestrictions);t+=de.numRestrictions;for(var i=0;i<r;i++){var o=je.decode(n.substr(t,de.purposeId),de.purposeId);t+=de.purposeId;var u=je.decode(n.substr(t,de.restrictionType),de.restrictionType);t+=de.restrictionType;var c=new Ot(o,u),a=je.decode(n.substr(t,de.numEntries),de.numEntries);t+=de.numEntries;for(var f=function(r){var i=we.decode(n.substr(t,de.anyBoolean));t+=de.anyBoolean;var o=je.decode(n.substr(t,de.vendorId),de.vendorId);if(t+=de.vendorId,i){var u=je.decode(n.substr(t,de.vendorId),de.vendorId);if(t+=de.vendorId,u<o)throw new An("Invalid RangeEntry: endVendorId ".concat(u," is less than ").concat(o));var a=Array.from({length:u-o+1},(function(n,t){return o+t}));e.restrictPurposeToLegalBasis(c,a)}else e.restrictPurposeToLegalBasis(c,[o])},s=0;s<a;s++)f()}return e.bitLength=t,e}}],null&&Re(t.prototype,null),e&&Re(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Ie(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}!(function(n){n[n.FIELD=0]="FIELD",n[n.RANGE=1]="RANGE"})(Te||(Te={}));var Le=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n){var t,e=[],r=[],i=je.encode(n.maxId,de.maxId),o="",u=de.maxId+de.encodingType,c=u+n.maxId,a=2*de.vendorId+de.singleOrRange+de.numEntries,f=u+de.numEntries;return n.forEach((function(i,u){o+=we.encode(i),(t=n.maxId>a&&f<c)&&i&&(n.has(u+1)?0===r.length&&(r.push(u),f+=de.singleOrRange,f+=de.vendorId):(r.push(u),f+=de.vendorId,e.push(r),r=[]))})),t?(i+=String(Te.RANGE),i+=this.buildRangeEncoding(e)):(i+=String(Te.FIELD),i+=o),i}},{key:"decode",value:function(n,t){var e,r=0,i=je.decode(n.substr(r,de.maxId),de.maxId);r+=de.maxId;var o=je.decode(n.charAt(r),de.encodingType);if(r+=de.encodingType,o===Te.RANGE){if(e=new ve,1===t){if("1"===n.substr(r,1))throw new An("Unable to decode default consent=1");r++}var u=je.decode(n.substr(r,de.numEntries),de.numEntries);r+=de.numEntries;for(var c=0;c<u;c++){var a=we.decode(n.charAt(r));r+=de.singleOrRange;var f=je.decode(n.substr(r,de.vendorId),de.vendorId);if(r+=de.vendorId,a){var s=je.decode(n.substr(r,de.vendorId),de.vendorId);r+=de.vendorId;for(var l=f;l<=s;l++)e.set(l)}else e.set(f)}}else{var v=n.substr(r,i);r+=i,e=Se.decode(v,i)}return e.bitLength=r,e}},{key:"buildRangeEncoding",value:function(n){var t=n.length,e=je.encode(t,de.numEntries);return n.forEach((function(n){var t=1===n.length;e+=we.encode(!t),e+=je.encode(n[0],de.vendorId),t||(e+=je.encode(n[1],de.vendorId))})),e}}],null&&Ie(t.prototype,null),e&&Ie(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Pe(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Ve(){var n;return Pe(n={},st.version,je),Pe(n,st.created,ge),Pe(n,st.lastUpdated,ge),Pe(n,st.cmpId,je),Pe(n,st.cmpVersion,je),Pe(n,st.consentScreen,je),Pe(n,st.consentLanguage,Ce),Pe(n,st.vendorListVersion,je),Pe(n,st.policyVersion,je),Pe(n,st.isServiceSpecific,we),Pe(n,st.useNonStandardTexts,we),Pe(n,st.specialFeatureOptins,Se),Pe(n,st.purposeConsents,Se),Pe(n,st.purposeLegitimateInterests,Se),Pe(n,st.purposeOneTreatment,we),Pe(n,st.publisherCountryCode,Ce),Pe(n,st.vendorConsents,Le),Pe(n,st.vendorLegitimateInterests,Le),Pe(n,st.publisherRestrictions,Ae),Pe(n,"segmentType",je),Pe(n,st.vendorsDisclosed,Le),Pe(n,st.vendorsAllowed,Le),Pe(n,st.publisherConsents,Se),Pe(n,st.publisherLegitimateInterests,Se),Pe(n,st.numCustomPurposes,je),Pe(n,st.publisherCustomConsents,Se),Pe(n,st.publisherCustomLegitimateInterests,Se),n}function xe(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Ne(n,t,e){return t&&xe(n.prototype,t),e&&xe(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function _e(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Me=Ne((function n(){var t;!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),_e(this,"1",_e({},Pt.CORE,[st.version,st.created,st.lastUpdated,st.cmpId,st.cmpVersion,st.consentScreen,st.consentLanguage,st.vendorListVersion,st.purposeConsents,st.vendorConsents])),_e(this,"2",(_e(t={},Pt.CORE,[st.version,st.created,st.lastUpdated,st.cmpId,st.cmpVersion,st.consentScreen,st.consentLanguage,st.vendorListVersion,st.policyVersion,st.isServiceSpecific,st.useNonStandardTexts,st.specialFeatureOptins,st.purposeConsents,st.purposeLegitimateInterests,st.purposeOneTreatment,st.publisherCountryCode,st.vendorConsents,st.vendorLegitimateInterests,st.publisherRestrictions]),_e(t,Pt.PUBLISHER_TC,[st.publisherConsents,st.publisherLegitimateInterests,st.numCustomPurposes,st.publisherCustomConsents,st.publisherCustomLegitimateInterests]),_e(t,Pt.VENDORS_ALLOWED,[st.vendorsAllowed]),_e(t,Pt.VENDORS_DISCLOSED,[st.vendorsDisclosed]),t))}));function Be(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function De(n,t,e){return t&&Be(n.prototype,t),e&&Be(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function $e(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Fe=De((function n(t,e){if((function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),$e(this,"1",[Pt.CORE]),$e(this,"2",[Pt.CORE]),2===t.version)if(t.isServiceSpecific)this[2].push(Pt.PUBLISHER_TC);else{var r=!(!e||!e.isForVendors);r&&!0!==t[st.supportOOB]||this[2].push(Pt.VENDORS_DISCLOSED),r&&(t[st.supportOOB]&&t[st.vendorsAllowed].size>0&&this[2].push(Pt.VENDORS_ALLOWED),this[2].push(Pt.PUBLISHER_TC))}}));function Ge(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Ue=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n,t){var e,r=this;try{e=this.fieldSequence[String(n.version)][t]}catch(e){throw new _n("Unable to encode version: ".concat(n.version,", segment: ").concat(t))}var i="";t!==Pt.CORE&&(i=je.encode(Dt.KEY_TO_ID[t],de.segmentType));var o=Ve();return e.forEach((function(e){var u=n[e],c=o[e],a=de[e];void 0===a&&r.isPublisherCustom(e)&&(a=Number(n[st.numCustomPurposes]));try{i+=c.encode(u,a)}catch(n){throw new _n("Error encoding ".concat(t,"->").concat(e,": ").concat(n.message))}})),nt.encode(i)}},{key:"decode",value:function(n,t,e){var r=this,i=nt.decode(n),o=0;e===Pt.CORE&&(t.version=je.decode(i.substr(o,de[st.version]),de[st.version])),e!==Pt.CORE&&(o+=de.segmentType);var u=this.fieldSequence[String(t.version)][e],c=Ve();return u.forEach((function(n){var e=c[n],u=de[n];if(void 0===u&&r.isPublisherCustom(n)&&(u=Number(t[st.numCustomPurposes])),0!==u){var a=i.substr(o,u);if(t[n]=e===Le?e.decode(a,t.version):e.decode(a,u),Number.isInteger(u))o+=u;else{if(!Number.isInteger(t[n].bitLength))throw new An(n);o+=t[n].bitLength}}})),t}},{key:"isPublisherCustom",value:function(n){return 0===n.indexOf("publisherCustom")}}],null&&Ge(t.prototype,null),e&&Ge(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function He(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}!(function(n,t,e){t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e})(Ue,"fieldSequence",new Me);var Je=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"process",value:function(n,t){var e=n.gvl;if(!e)throw new _n("Unable to encode TCModel without a GVL");if(!e.isReady)throw new _n("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(n=n.clone()).consentLanguage=e.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?n.version=t.version:n.version=this.processor.length;var r=n.version-1;if(!this.processor[r])throw new _n("Invalid version: ".concat(n.version));return this.processor[r](n,e)}}],null&&He(t.prototype,null),e&&He(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function We(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}!(function(n,t,e){t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e})(Je,"processor",[function(n){return n},function(n,t){n.publisherRestrictions.gvl=t,n.purposeLegitimateInterests.unset([1,3,4,5,6]);var e=new Map;return e.set("legIntPurposes",n.vendorLegitimateInterests),e.set("purposes",n.vendorConsents),e.forEach((function(e,r){e.forEach((function(i,o){if(i){var u=t.vendors[o];if(!u||u.deletedDate)e.unset(o);else if(0===u[r].length)if("legIntPurposes"===r&&0===u.purposes.length&&0===u.legIntPurposes.length&&u.specialPurposes.length>0);else if(n.isServiceSpecific)if(0===u.flexiblePurposes.length)e.unset(o);else{for(var c=n.publisherRestrictions.getRestrictions(o),a=!1,f=0,s=c.length;f<s&&!a;f++)a=c[f].restrictionType===ht.REQUIRE_CONSENT&&"purposes"===r||c[f].restrictionType===ht.REQUIRE_LI&&"legIntPurposes"===r;a||e.unset(o)}else e.unset(o)}}))})),n.vendorsDisclosed.set(t.vendors),n}]);var qe=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"absCall",value:function(n,t,e,r){return new Promise((function(i,o){var u=new XMLHttpRequest;u.withCredentials=e,u.addEventListener("load",(function(){if(u.readyState==XMLHttpRequest.DONE)if(u.status>=200&&u.status<300){var n=u.response;if("string"==typeof n)try{n=JSON.parse(n)}catch(n){}i(n)}else o(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){o(new Error("error"))})),u.addEventListener("abort",(function(){o(new Error("aborted"))})),null===t?u.open("GET",n,!0):u.open("POST",n,!0),u.responseType="json",u.timeout=r,u.ontimeout=function(){o(new Error("Timeout "+r+"ms "+n))},u.send(t)}))}},{key:"post",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(n,JSON.stringify(t),e,r)}},{key:"fetch",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(n,null,t,e)}}],null&&We(t.prototype,null),e&&We(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function ze(){ze=function(){return n};var n={},t=Object.prototype,e=t.hasOwnProperty,r=Object.defineProperty||function(n,t,e){n[t]=e.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function a(n,t,e){return Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{a({},"")}catch(n){a=function(n,t,e){return n[t]=e}}function f(n,t,e,i){var o=t&&t.prototype instanceof v?t:v,u=Object.create(o.prototype),c=new E(i||[]);return r(u,"_invoke",{value:O(n,e,c)}),u}function s(n,t,e){try{return{type:"normal",arg:n.call(t,e)}}catch(n){return{type:"throw",arg:n}}}n.wrap=f;var l={};function v(){}function h(){}function p(){}var b={};a(b,o,(function(){return this}));var d=Object.getPrototypeOf,y=d&&d(d(C([])));y&&y!==t&&e.call(y,o)&&(b=y);var w=p.prototype=v.prototype=Object.create(b);function m(n){["next","throw","return"].forEach((function(t){a(n,t,(function(n){return this._invoke(t,n)}))}))}function j(n,t){function i(r,o,u,c){var a=s(n[r],n,o);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&e.call(l,"__await")?t.resolve(l.__await).then((function(n){i("next",n,u,c)}),(function(n){i("throw",n,u,c)})):t.resolve(l).then((function(n){f.value=n,u(f)}),(function(n){return i("throw",n,u,c)}))}c(a.arg)}var o;r(this,"_invoke",{value:function(n,e){function r(){return new t((function(t,r){i(n,e,t,r)}))}return o=o?o.then(r,r):r()}})}function O(n,t,e){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(e.method=i,e.arg=o;;){var u=e.delegate;if(u){var c=g(u,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var a=s(n,t,e);if("normal"===a.type){if(r=e.done?"completed":"suspendedYield",a.arg===l)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(r="completed",e.method="throw",e.arg=a.arg)}}}function g(n,t){var e=n.iterator[t.method];if(void 0===e){if(t.delegate=null,"throw"===t.method){if(n.iterator.return&&(t.method="return",t.arg=void 0,g(n,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(e,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[n.resultName]=i.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]),this.tryEntries.push(t)}function S(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function E(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(k,this),this.reset(!0)}function C(n){if(n){var t=n[o];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,i=function t(){for(;++r<n.length;)if(e.call(n,r))return t.value=n[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,r(w,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=a(p,c,"GeneratorFunction"),n.isGeneratorFunction=function(n){var t="function"==typeof n&&n.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,p):(n.__proto__=p,a(n,c,"GeneratorFunction")),n.prototype=Object.create(w),n},n.awrap=function(n){return{__await:n}},m(j.prototype),a(j.prototype,u,(function(){return this})),n.AsyncIterator=j,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var u=new j(f(t,e,r,i),o);return n.isGeneratorFunction(e)?u:u.next().then((function(n){return n.done?n.value:u.next()}))},m(w),a(w,c,"Generator"),a(w,o,(function(){return this})),a(w,"toString",(function(){return"[object Generator]"})),n.keys=function(n){var t=Object(n),e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=C,E.prototype={constructor:E,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!n)for(var t in this)"t"===t.charAt(0)&&e.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function r(e,r){return u.type="throw",u.arg=n,t.next=e,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=e.call(o,"catchLoc"),a=e.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(n,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===n||"continue"===n)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=n,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(u)},complete:function(n,t){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&t&&(this.next=t),l},finish:function(n){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===n)return this.complete(e.completion,e.afterLoc),S(e),l}},catch:function(n){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===n){var r=e.completion;if("throw"===r.type){var i=r.arg;S(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,e){return this.delegate={iterator:C(n),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},n}function Ye(n,t,e,r,i,o,u){try{var c=n[o](u),a=c.value}catch(n){return void e(n)}c.done?t(a):Promise.resolve(a).then(r,i)}function Ke(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function u(n){Ye(o,r,i,u,c,"next",n)}function c(n){Ye(o,r,i,u,c,"throw",n)}u(void 0)}))}}function Qe(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Xe(n,t){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Xe(n,t)}function Ze(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nr(n)}function nr(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function tr(n){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tr(n)}function er(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var rr=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Xe(n,t)})(f,n);var t,e,r,i,o,u,c,a=(u=f,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(n){return!1}})(),function(){var n,t=tr(u);if(c){var e=tr(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return Ze(this,n)});function f(n){var t;!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,f),er(nr(t=a.call(this)),"readyPromise",void 0),er(nr(t),"gvlSpecificationVersion",void 0),er(nr(t),"vendorListVersion",void 0),er(nr(t),"tcfPolicyVersion",void 0),er(nr(t),"lastUpdated",void 0),er(nr(t),"purposes",void 0),er(nr(t),"specialPurposes",void 0),er(nr(t),"features",void 0),er(nr(t),"specialFeatures",void 0),er(nr(t),"isReady_",!1),er(nr(t),"vendors_",void 0),er(nr(t),"vendorIds",void 0),er(nr(t),"fullVendorList",void 0),er(nr(t),"byPurposeVendorMap",void 0),er(nr(t),"bySpecialPurposeVendorMap",void 0),er(nr(t),"byFeatureVendorMap",void 0),er(nr(t),"bySpecialFeatureVendorMap",void 0),er(nr(t),"stacks",void 0),er(nr(t),"dataCategories",void 0),er(nr(t),"lang_",void 0),er(nr(t),"cacheLang_",void 0),er(nr(t),"isLatest",!1);var e=f.baseUrl;if(t.lang_=f.DEFAULT_LANGUAGE,t.cacheLang_=f.DEFAULT_LANGUAGE,t.isVendorList(n))t.populate(n),t.readyPromise=Promise.resolve();else{if(!e)throw new Un("must specify GVL.baseUrl before loading GVL json");if(n>0){var r=n;f.CACHE.has(r)?(t.populate(f.CACHE.get(r)),t.readyPromise=Promise.resolve()):(e+=f.versionedFilename.replace("[VERSION]",String(r)),t.readyPromise=t.fetchJson(e))}else f.CACHE.has(f.LATEST_CACHE_KEY)?(t.populate(f.CACHE.get(f.LATEST_CACHE_KEY)),t.readyPromise=Promise.resolve()):(t.isLatest=!0,t.readyPromise=t.fetchJson(e+f.latestFilename))}return t}return t=f,e=[{key:"cacheLanguage",value:function(){f.LANGUAGE_CACHE.has(this.cacheLang_)||f.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(o=Ke(ze().mark((function n(t){return ze().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.t0=this,n.next=4,qe.fetch(t);case 4:n.t1=n.sent,n.t0.populate.call(n.t0,n.t1),n.next=11;break;case 8:throw n.prev=8,n.t2=n.catch(0),new Un(n.t2.message);case 11:case"end":return n.stop()}}),n,this,[[0,8]])}))),function(n){return o.apply(this,arguments)})},{key:"getJson",value: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,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"changeLanguage",value:(i=Ke(ze().mark((function n(t){var e,r,i,o,u;return ze().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e=t,n.prev=1,e=f.consentLanguages.parseLanguage(t),n.next=8;break;case 5:throw n.prev=5,n.t0=n.catch(1),new Un("Error during parsing the language: "+n.t0.message);case 8:if(r=t.toUpperCase(),e.toLowerCase()!==f.DEFAULT_LANGUAGE.toLowerCase()||f.LANGUAGE_CACHE.has(r)){n.next=11;break}return n.abrupt("return");case 11:if(e===this.lang_){n.next=29;break}if(this.lang_=e,!f.LANGUAGE_CACHE.has(r)){n.next=18;break}for(o in i=f.LANGUAGE_CACHE.get(r))i.hasOwnProperty(o)&&(this[o]=i[o]);n.next=29;break;case 18:return u=f.baseUrl+f.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),n.prev=19,n.next=22,this.fetchJson(u);case 22:this.cacheLang_=r,this.cacheLanguage(),n.next=29;break;case 26:throw n.prev=26,n.t1=n.catch(19),new Un("unable to load language: "+n.t1.message);case 29:case"end":return n.stop()}}),n,this,[[1,5],[19,26]])}))),function(n){return i.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(n){return void 0!==n&&void 0!==n.vendors}},{key:"populate",value:function(n){this.purposes=n.purposes,this.specialPurposes=n.specialPurposes,this.features=n.features,this.specialFeatures=n.specialFeatures,this.stacks=n.stacks,this.dataCategories=n.dataCategories,this.isVendorList(n)&&(this.gvlSpecificationVersion=n.gvlSpecificationVersion,this.tcfPolicyVersion=n.tcfPolicyVersion,this.vendorListVersion=n.vendorListVersion,this.lastUpdated=n.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=n.vendors,this.fullVendorList=n.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&f.CACHE.set(f.LATEST_CACHE_KEY,this.getJson()),f.CACHE.has(this.vendorListVersion)||f.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(n){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((function(n){t.byPurposeVendorMap[n]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((function(n){t.bySpecialPurposeVendorMap[n]=new Set})),Object.keys(this.features).forEach((function(n){t.byFeatureVendorMap[n]=new Set})),Object.keys(this.specialFeatures).forEach((function(n){t.bySpecialFeatureVendorMap[n]=new Set})),Array.isArray(n)||(n=Object.keys(this.fullVendorList).map((function(n){return+n}))),this.vendorIds=new Set(n),this.vendors_=n.reduce((function(n,e){var r=t.vendors_[String(e)];return r&&void 0===r.deletedDate&&(r.purposes.forEach((function(n){t.byPurposeVendorMap[String(n)].consent.add(e)})),r.specialPurposes.forEach((function(n){t.bySpecialPurposeVendorMap[String(n)].add(e)})),r.legIntPurposes.forEach((function(n){t.byPurposeVendorMap[String(n)].legInt.add(e)})),r.flexiblePurposes&&r.flexiblePurposes.forEach((function(n){t.byPurposeVendorMap[String(n)].flexible.add(e)})),r.features.forEach((function(n){t.byFeatureVendorMap[String(n)].add(e)})),r.specialFeatures.forEach((function(n){t.bySpecialFeatureVendorMap[String(n)].add(e)})),n[e]=r),n}),{})}},{key:"getFilteredVendors",value:function(n,t,e,r){var i=this,o=n.charAt(0).toUpperCase()+n.slice(1),u={};return("purpose"===n&&e?this["by"+o+"VendorMap"][String(t)][e]:this["by"+(r?"Special":"")+o+"VendorMap"][String(t)]).forEach((function(n){u[String(n)]=i.vendors[String(n)]})),u}},{key:"getVendorsWithConsentPurpose",value:function(n){return this.getFilteredVendors("purpose",n,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(n){return this.getFilteredVendors("purpose",n,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(n){return this.getFilteredVendors("purpose",n,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(n){return this.getFilteredVendors("purpose",n,void 0,!0)}},{key:"getVendorsWithFeature",value:function(n){return this.getFilteredVendors("feature",n)}},{key:"getVendorsWithSpecialFeature",value:function(n){return this.getFilteredVendors("feature",n,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(n){this.mapVendors(n)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var n=new f(this.getJson());return this.lang_!==f.DEFAULT_LANGUAGE&&n.changeLanguage(this.lang_),n}}],r=[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(n){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(n))throw new Un("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");n.length>0&&"/"!==n[n.length-1]&&(n+="/"),this.baseUrl_=n}},{key:"emptyLanguageCache",value:function(n){var t=!1;return null==n&&f.LANGUAGE_CACHE.size>0?(f.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof n&&this.consentLanguages.has(n.toUpperCase())&&(f.LANGUAGE_CACHE.delete(n.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(n){var t=!1;return Number.isInteger(n)&&n>=0?(f.CACHE.delete(n),t=!0):void 0===n&&(f.CACHE=new Map,t=!0),t}},{key:"isInstanceOf",value:function(n){return"object"==typeof n&&"function"==typeof n.narrowVendorsTo}}],e&&Qe(t.prototype,e),r&&Qe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f})(pt);function ir(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function or(n,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},or(n,t)}function ur(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cr(n)}function cr(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ar(n){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ar(n)}function fr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}er(rr,"LANGUAGE_CACHE",new Map),er(rr,"CACHE",new Map),er(rr,"LATEST_CACHE_KEY",0),er(rr,"DEFAULT_LANGUAGE","EN"),er(rr,"consentLanguages",new ut),er(rr,"baseUrl_",void 0),er(rr,"latestFilename","vendor-list.json"),er(rr,"versionedFilename","archives/vendor-list-v[VERSION].json"),er(rr,"languageFilename","purposes-[LANG].json");var sr=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&or(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=ar(r);if(i){var e=ar(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return ur(this,n)});function u(n){var t;return(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,u),fr(cr(t=o.call(this)),"isServiceSpecific_",!1),fr(cr(t),"supportOOB_",!0),fr(cr(t),"useNonStandardTexts_",!1),fr(cr(t),"purposeOneTreatment_",!1),fr(cr(t),"publisherCountryCode_","AA"),fr(cr(t),"version_",2),fr(cr(t),"consentScreen_",0),fr(cr(t),"policyVersion_",4),fr(cr(t),"consentLanguage_","EN"),fr(cr(t),"cmpId_",0),fr(cr(t),"cmpVersion_",0),fr(cr(t),"vendorListVersion_",0),fr(cr(t),"numCustomPurposes_",0),fr(cr(t),"gvl_",void 0),fr(cr(t),"created",void 0),fr(cr(t),"lastUpdated",void 0),fr(cr(t),"specialFeatureOptins",new ve),fr(cr(t),"purposeConsents",new ve),fr(cr(t),"purposeLegitimateInterests",new ve),fr(cr(t),"publisherConsents",new ve),fr(cr(t),"publisherLegitimateInterests",new ve),fr(cr(t),"publisherCustomConsents",new ve),fr(cr(t),"publisherCustomLegitimateInterests",new ve),fr(cr(t),"customPurposes",void 0),fr(cr(t),"vendorConsents",new ve),fr(cr(t),"vendorLegitimateInterests",new ve),fr(cr(t),"vendorsDisclosed",new ve),fr(cr(t),"vendorsAllowed",new ve),fr(cr(t),"publisherRestrictions",new xt),n&&(t.gvl=n),t.updated(),t}return t=u,(e=[{key:"gvl",get:function(){return this.gvl_},set:function(n){rr.isInstanceOf(n)||(n=new rr(n)),this.gvl_=n,this.publisherRestrictions.gvl=n}},{key:"cmpId",get:function(){return this.cmpId_},set:function(n){if(n=Number(n),!(Number.isInteger(n)&&n>1))throw new Qn("cmpId",n);this.cmpId_=n}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(n){if(n=Number(n),!(Number.isInteger(n)&&n>-1))throw new Qn("cmpVersion",n);this.cmpVersion_=n}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(n){if(n=Number(n),!(Number.isInteger(n)&&n>-1))throw new Qn("consentScreen",n);this.consentScreen_=n}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(n){this.consentLanguage_=n}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(n){if(!/^([A-z]){2}$/.test(n))throw new Qn("publisherCountryCode",n);this.publisherCountryCode_=n.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(n){if((n=Number(n)>>0)<0)throw new Qn("vendorListVersion",n);this.vendorListVersion_=n}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(n){if(this.policyVersion_=parseInt(n,10),this.policyVersion_<0)throw new Qn("policyVersion",n)}},{key:"version",get:function(){return this.version_},set:function(n){this.version_=parseInt(n,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(n){this.isServiceSpecific_=n}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(n){this.useNonStandardTexts_=n}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(n){this.supportOOB_=n}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(n){this.purposeOneTreatment_=n}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var n=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((function(n,t){return Number(n)-Number(t)}));n=parseInt(t.pop(),10)}return n},set:function(n){if(this.numCustomPurposes_=parseInt(n,10),this.numCustomPurposes_<0)throw new Qn("numCustomPurposes",n)}},{key:"updated",value:function(){var n=new Date,t=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()));this.created=t,this.lastUpdated=t}}])&&ir(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(pt);function lr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}fr(sr,"consentLanguages",rr.consentLanguages);var vr=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"encode",value:function(n,t){var e,r="";return n=Je.process(n,t),(e=Array.isArray(null==t?void 0:t.segments)?t.segments:new Fe(n,t)[""+n.version]).forEach((function(t,i){var o="";i<e.length-1&&(o="."),r+=Ue.encode(n,t)+o})),r}},{key:"decode",value:function(n,t){var e=n.split("."),r=e.length;t||(t=new sr);for(var i=0;i<r;i++){var o=e[i],u=nt.decode(o.charAt(0)).substr(0,de.segmentType),c=Dt.ID_TO_KEY[je.decode(u,de.segmentType).toString()];Ue.decode(o,t,c)}return t}}],null&&lr(t.prototype,null),e&&lr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function hr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function pr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function br(n,t){return br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},br(n,t)}function dr(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function yr(n){return yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yr(n)}var wr=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&br(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=yr(r);if(i){var e=yr(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return dr(this,n)});function u(){return hr(this,u),o.apply(this,arguments)}return t=u,(e=[{key:"respond",value:function(){var n,t=this,e=P.tcModel,r=e.vendorListVersion;void 0===this.param&&(this.param=r),(n=this.param===r&&e.gvl?e.gvl:new rr(this.param)).readyPromise.then((function(){t.invokeCallback(n.getJson())}))}}])&&pr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(j);function mr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function jr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Or(){return Or="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(n,t,e){var r=gr(n,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?n:e):i.value}},Or.apply(this,arguments)}function gr(n,t){for(;!Object.prototype.hasOwnProperty.call(n,t)&&null!==(n=Er(n)););return n}function kr(n,t){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},kr(n,t)}function Sr(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function Er(n){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Er(n)}var Cr=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&kr(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=Er(r);if(i){var e=Er(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return Sr(this,n)});function u(){return mr(this,u),o.apply(this,arguments)}return t=u,(e=[{key:"respond",value:function(){this.listenerId=P.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),Or(Er(u.prototype),"respond",this).call(this)}}])&&jr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(C);function Rr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Ar(n,t){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},Ar(n,t)}function Ir(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(n)}function Lr(n){return Lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lr(n)}var Pr,Vr,xr,Nr,_r,Mr,Br=(function(n){!(function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&Ar(n,t)})(u,n);var t,e,r,i,o=(r=u,i=(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(n){return!1}})(),function(){var n,t=Lr(r);if(i){var e=Lr(this).constructor;n=Reflect.construct(t,arguments,e)}else n=t.apply(this,arguments);return Ir(this,n)});function u(){return Rr(this,u),o.apply(this,arguments)}return t=u,(e=[{key:"respond",value:function(){this.invokeCallback(P.eventQueue.remove(this.param))}}])&&Tr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),u})(j);function Dr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function $r(n,t,e){return t&&Dr(n.prototype,t),e&&Dr(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Fr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}Pr=h.PING,Vr=h.GET_TC_DATA,xr=h.GET_IN_APP_TC_DATA,Nr=h.GET_VENDOR_LIST,_r=h.ADD_EVENT_LISTENER,Mr=h.REMOVE_EVENT_LISTENER;var Gr=$r((function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}));function Ur(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}Fr(Gr,Pr,dn),Fr(Gr,Vr,C),Fr(Gr,xr,gn),Fr(Gr,Nr,wr),Fr(Gr,_r,Cr),Fr(Gr,Mr,Br);var Hr=(function(){function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}var t,e;return t=n,e=[{key:"has",value:function(n){return"string"==typeof n&&(n=Number(n)),this.set_.has(n)}}],null&&Ur(t.prototype,null),e&&Ur(t,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Jr(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Wr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function qr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}!(function(n,t,e){t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n.set_=e})(Hr,"set_",new Set([0,2,void 0,null]));var zr=(function(){function n(t){if((function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),qr(this,"callQueue",void 0),qr(this,"customCommands",void 0),t){var e=h.ADD_EVENT_LISTENER;if(null!=t&&t[e])throw new Error("Built-In Custom Commmand for ".concat(e," not allowed: Use ").concat(h.GET_TC_DATA," instead"));if(e=h.REMOVE_EVENT_LISTENER,null!=t&&t[e])throw new Error("Built-In Custom Commmand for ".concat(e," not allowed"));null!=t&&t[h.GET_TC_DATA]&&(t[h.ADD_EVENT_LISTENER]=t[h.GET_TC_DATA],t[h.REMOVE_EVENT_LISTENER]=t[h.GET_TC_DATA]),this.customCommands=t}try{this.callQueue=window.__tcfapi()||[]}catch(n){this.callQueue=[]}finally{window.__tcfapi=this.apiCall.bind(this),this.purgeQueuedCalls()}}var t,e;return t=n,e=[{key:"apiCall",value:function(n,t,e){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];if("string"!=typeof n)e(null,!1);else if(Hr.has(t)){if("function"!=typeof e)throw new Error("invalid callback function");if(P.disabled)e(new U,!1);else if(this.isCustomCommand(n)||this.isBuiltInCommand(n))if(this.isCustomCommand(n)&&!this.isBuiltInCommand(n)){var u;(u=this.customCommands)[n].apply(u,[e].concat(i))}else n===h.PING?this.isCustomCommand(n)?new Gr[n](this.customCommands[n],i[0],null,e):new Gr[n](e,i[0]):void 0===P.tcModel?this.callQueue.push([n,t,e].concat(i)):this.isCustomCommand(n)&&this.isBuiltInCommand(n)?new Gr[n](this.customCommands[n],i[0],null,e):new Gr[n](e,i[0]);else e(null,!1)}else e(null,!1)}},{key:"purgeQueuedCalls",value:function(){var n=this.callQueue;this.callQueue=[],n.forEach((function(n){var t,e;(t=window).__tcfapi.apply(t,(function(n){if(Array.isArray(n))return Jr(n)})(e=n)||(function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)})(e)||(function(n,t){if(n){if("string"==typeof n)return Jr(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Jr(n,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.")})())}))}},{key:"isCustomCommand",value:function(n){return this.customCommands&&"function"==typeof this.customCommands[n]}},{key:"isBuiltInCommand",value:function(n){return void 0!==Gr[n]}}],e&&Wr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n})();function Yr(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Qr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Xr=(function(){function n(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;Yr(this,n),Qr(this,"callResponder",void 0),Qr(this,"isServiceSpecific",void 0),Qr(this,"numUpdates",0),this.throwIfInvalidInt(t,"cmpId",2),this.throwIfInvalidInt(e,"cmpVersion",0),P.cmpId=t,P.cmpVersion=e,P.tcfPolicyVersion=4,this.isServiceSpecific=!!r,this.callResponder=new zr(i)}var t,e;return t=n,e=[{key:"throwIfInvalidInt",value:function(n,t,e){if(!("number"==typeof n&&Number.isInteger(n)&&n>=e))throw new Error("Invalid ".concat(t,": ").concat(n))}},{key:"update",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(P.disabled)throw new Error("CmpApi Disabled");P.cmpStatus=p.LOADED,t?(P.displayStatus=b.VISIBLE,P.eventStatus=d.CMP_UI_SHOWN):void 0===P.tcModel?(P.displayStatus=b.DISABLED,P.eventStatus=d.TC_LOADED):(P.displayStatus=b.HIDDEN,P.eventStatus=d.USER_ACTION_COMPLETE),P.gdprApplies=null!==n,P.gdprApplies?(""===n?(P.tcModel=new sr,P.tcModel.cmpId=P.cmpId,P.tcModel.cmpVersion=P.cmpVersion):P.tcModel=vr.decode(n),P.tcModel.isServiceSpecific=this.isServiceSpecific,P.tcfPolicyVersion=Number(P.tcModel.policyVersion),P.tcString=n):P.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():P.eventQueue.exec(),this.numUpdates++}},{key:"disable",value:function(){P.disabled=!0,P.cmpStatus=p.ERROR}}],e&&Kr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n})(),Zr="object";function ni(n,t,e){if((e=typeof t)!==Zr)throw new Error("expected ".concat(Zr," got ").concat(e));for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function ti(n){for(var t=1;t<arguments.length&&arguments[t];t++)n=ni(n,arguments[t]);return n}var ei=ti({},r,{kGVLv2Path:"https://nebulousgarden.com/chunks/2f304c91e97d390/4f45a45c0cd4c04d06b1ff8945cb7ef730c8a7520cfc380082a80d8",kGVLv3Path:"https://nebulousgarden.com/scripts/5daab1ccb85c/c1bda1ab473f5b7b17e2be66c8c0dc066502ff042635ddacb9d7310fec-prod.js",kGVLv2Language:"de",kGVLv3Language:"de",N:6,_:!!true,M:{selectedStacks:[],purposeStates:{1:{id:1,alwaysShow:!0,vendorConsent:!0,vendorLi:!1,pubConsent:!0,pubLi:!1},2:{id:2,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},3:{id:3,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},4:{id:4,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},5:{id:5,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},6:{id:6,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},7:{id:7,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},8:{id:8,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},9:{id:9,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0},10:{id:10,alwaysShow:!0,vendorConsent:!0,vendorLi:!0,pubConsent:!0,pubLi:!0}},customPurposeStates:{},disallowedVendors:[],allowedVendors:[],useAllowList:!1,useGlobalScope:!1,acceptedVendorNotice:!1,customVendors:{},publisherCC:'US',cookieDomain:'',acModeEnabled:!0,defaultPurposeSettings:!0},B:9});function ri(n,t){if(o(window.fetch))return window.fetch.call(this,n,t);var e=t||{};return new Promise((function(t,r){var i=new XMLHttpRequest;i.addEventListener("load",(function(){if(0!==i.status){var n=i.status||200,e={status:n,ok:200==n,json:function(){return new Promise((function(n){n(JSON.parse(i.responseText))}))}};t(e)}else r(new Error("status is 0"))})),i.addEventListener("error",r),i.open(e.method||"GET",n,!0),i.send(e.body)}))}function ii(){return n="_recorder",new Promise((function(t){l(n,(function e(r){t(r),y("removeEventListener",n,e)}))}));var n}var oi=window.unescape||window.decodeURIComponent,ui=window.escape||window.encodeURIComponent,ci="cookieStore"in window&&window.cookieStore;function ai(n,t,e){var r=e||{};if(void 0===t)return ci&&!r.sync?n?ci.getAll(n):ci.getAll():new Promise((function(t){var e,r,i,o=[],u=document.cookie.split(";");for(i=0;i<u.length;i++)if(e=u[i].substring(0,u[i].indexOf("=")).trim(),r=u[i].substring(u[i].indexOf("=")+1),!n||e===n)try{o.push({name:e,value:oi(r)})}catch(n){}t(o)}));if(ci&&!r.sync){if(!r.domain&&null!==r.domain){var i=window.location.hostname;i&&(r.domain=i)}return r.domain&&"."===r.domain[0]&&(r.domain=r.domain.substring(1)),!t||r.maxAge<0?r.hasOwnProperty("domain")?ci.delete({name:n,domain:r.domain}):ci.delete(n):(r.maxAge&&(r.expires||(r.expires=Date.now()+1e3*r.maxAge),delete r.maxAge),r.sameSite||(r.sameSite="none"),ci.set(ti({name:n,value:t},r)))}return new Promise((function(e){var i=t?ui(t):"";if(t||(r.maxAge=-1),r.maxAge&&(i+="; max-age="+r.maxAge),!r.domain&&null!==r.domain){var o=window.location.hostname;o&&(r.domain="."+o)}r.domain&&(i+="; domain="+r.domain),null==r.path&&(r.path="/"),r.path&&(i+="; path="+r.path),"https:"===window.location.protocol&&"PublicKeyCredential"in window&&(i+="; SameSite=None; Secure"),document.cookie=n+"="+i,e()})).then((function(){if(t&&r.domain)return ai(n).then((function(t){if(!t||!t.length)throw new Error("failed to set cookie "+n+" on "+r.domain)}))}))}var fi="tcf2cookie",si="pubcv",li="acv",vi=r.V||r.P;function hi(n,t){for(var e=0;n&&e<n.length;e++)if(n[e]&&n[e].name===t&&n[e].value)return n[e].value}function pi(n,t){return ai(si,n,{maxAge:vi,domain:t||null}).catch((function(e){if(t)return ai(si,n,{maxAge:vi,domain:null});throw e}))}function bi(n,t){return ai(li,n,{maxAge:vi,domain:t||null}).catch((function(e){if(t)return ai(li,n,{maxAge:vi,domain:null});throw e}))}function di(n){var t=(function(n){return hi(n,fi)})(n),e=(function(n){return hi(n,si)})(n),r=(function(n){return hi(n,li)})(n),i=(function(n){var t=hi(n,"FCCDCF");if(t)try{var e=JSON.parse(t);return[e[3][0],e[3][1]]}catch(n){}return[]})(n),o=i[0],u=i[1];return{tcStringData:t||o,hasGlobalScope:!1,customVendorConsents:e,acVendorConsents:r||u}}function yi(n){return Math.max(0,Math.round(1e3*(n||0))/1e3)}var wi=window;function mi(n,t){var e=[];try{var r=new URL(n,window.location).href;e=(function(n){return n&&"getEntriesByName"in n?n:wi.performance})(t).getEntriesByName(r||n,"resource")||[]}catch(n){}if(!e||e.length<1)return null;var i=e[e.length-1],o=i.connectStart,u=i.requestStart,c=i.connectEnd,a=i.responseStart;return{dns:yi(i.domainLookupEnd-i.domainLookupStart),transferSize:yi(i.transferSize),encodedSize:yi(i.encodedBodySize),duration:yi(i.duration),connect:yi(c-o>0&&u-o),request:yi(a-u),response:yi(i.responseEnd-a),ssl:yi(i.secureConnectionStart&&c-i.secureConnectionStart),number:e.length,protocol:i.nextHopProtocol||"",startTime:yi(i.startTime)}}try{wi.performance.addEventListener("resourcetimingbufferfull",(function(){"setResourceTimingBufferSize"in wi.performance&&wi.performance.setResourceTimingBufferSize(wi.performance.getEntries().length+100)}))}catch(n){}var ji="GPPConsentManager",Oi="ConsentManager",gi={2:10,4:11};function ki(n,t,e){var r=n.purposeStates,i=void 0===r?{}:r,o=n.customPurposeStates,u=void 0===o?{}:o;if(!e||!t)return 4;var c=e.tcfPolicyVersion,a=!1,f=!1,s=!1,l=!1;function v(n,t,e){for(var r in t){var i=t[r]||{},o=i.pubLi,u=i.pubConsent,v=i.alwaysShow;if(!(e&&gi[c]<r)&&(e||!1!==v)){if(u){if(s=!0,n&&n.consents&&n.consents[r]){a=!0;continue}f=!0}if(o){if(l=!0,n&&n.legitimateInterests&&n.legitimateInterests[r]){a=!0;continue}f=!0}}}}return v(e.publisher,i,!0),v(e.publisher&&e.publisher.customPurpose,u,!1),s||l?a&&f?2:!a&&f?3:1:5}function Si(n){return n.map((function(n){return~~n})).filter((function(n){return!!n}))}function Ei(n,t){return Object.prototype.hasOwnProperty.call(n,t)&&i(n[t],"string")}function Ci(n,t){var e={vert:t};return e.ccvs=(n.tcfVersion||2)+"",e.ccs=n.consentStatus||4,e.cct="tcf",[["publisherPurposes","pubps"],["publisherCustomPurposes","pubcps"],["vendorPurposes","purcs"]].forEach((function(t){var r=t[0],i=t[1],o=(function(n){var t=[];for(var e in n)e&&Object.prototype.hasOwnProperty.call(n,e)&&n[e]&&t.push(~~e);return t.filter((function(n){return!!n}))})(n[r]||{});(function(n){return n&&n.length>0})(o)&&(e[i]=o)})),e}function Ri(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=function(t){return ti({},n,{payload:ti({},n.payload,{env:{initialPath:t}})})},r=t?ji:Oi;v("template.load",[r]),y("registerView","cmp.settings",(function(){return y("show",r,{templateCandidate:e("purposes")})})),y("registerView","cmp.main",(function(){y("show",r,{templateCandidate:e()})})),y("registerView","cmp.preview",(function(){return y("show",r,{templateCandidate:e()})}))}function Ti(n){return n===Oi||n===ji}function Ai(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ii().then((function(n){return n.recorder.fetchCandidates({overrides:{pvc:!0}})})).then((function(t){for(var e=t.candidates,r=0;e&&r<e.length;r++)if(e[r].payload&&Ti(e[r].payload.name))return n&&(e[r].payload.name=ji),e[r];return Promise.reject()}))}function Ii(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Li(n,t,e){return t&&Ii(n.prototype,t),e&&Ii(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}e(1);var Pi,Vi=(Pi=document,Pi.currentScript||{}).src,xi=!!window.__cmpGdprAppliesGlobally,Ni=window.__tcfapi&&window.__tcfapi.v||0;function _i(n){n.addDataFormatter("cmpImpression",(function(n){return(function(n){var t={};return t.gvlv=n&&n.tcModel&&n.tcModel.vendorListVersion||0,t.ccv=n&&n.cmpVersion||0,t.cct="tcf",Ei(n,"language")&&(t.cmpl=n.language),Array.isArray(n.publisherPurposes)&&(t.pupa=Si(n.publisherPurposes)),Array.isArray(n.purposes)&&(t.pura=Si(n.purposes)),t})(n)})),n.addDataFormatter("cmpConsent",(function(t){return(function(n,t){var e={};return e.gvlv=t&&t.tcModel&&t.tcModel.vendorListVersion||0,e.ccv=t&&t.cmpVersion||0,e.cct="tcf",(function(n,t){return Object.prototype.hasOwnProperty.call(n,t)&&i(n[t],"number")})(t,"consentScreen")&&(e.csid=t.consentScreen),Ei(t,"language")&&(e.cmpl=t.language),e.cmpid=n.lastID("cmpImpression[tcf]"),e})(n,t)}))}var Mi=(new sr).policyVersion,Bi={2:{1:!0},4:{1:!0,3:!0,4:!0,5:!0,6:!0}},Di={2:{1:!0},4:{1:!0}};function $i(n,t){var e=10;4===n&&(e=11);for(var r=0;r<e;r++)t(r+1)}function Fi(n){var t=Di[n.policyVersion],e=Bi[n.policyVersion];$i(n.policyVersion,(function(r){!0===t[r]&&n.publisherLegitimateInterests.unset(~~r),!0===e[r]&&n.purposeLegitimateInterests.unset(~~r)}))}function Gi(n,t){n.cmpId=ei.B,n.cmpVersion=ei.N,n.isServiceSpecific=!0,n.publisherCountryCode=t}var Ui=Li((function n(){!(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)}));Ui.start=function(){var n,t,e=ei.M||{},r=!!e.acModeEnabled;try{var i=new URL(Vi,window.location);t=(i.origin||"".concat(i.protocol,"//").concat(i.hostname))+"/acv.json"}catch(n){}var o=[["pubLi","publisherLegitimateInterests"],["vendorLi","purposeLegitimateInterests"],["pubConsent","publisherConsents"],["vendorConsent","purposeConsents"]],u=[["pubLi","publisherCustomLegitimateInterests"],["pubConsent","publisherCustomConsents"]],c=!!e.defaultPurposeSettings,a=e.purposeStates||{},f=Di[Mi],s=Bi[Mi];$i(Mi,(function(n){var t=a[n]||{id:n,alwaysShow:!0};o.forEach((function(n){var e=n[0];!c&&t.hasOwnProperty(e)||(t[e]=!0)})),f[n]&&(t.pubLi=!1),s[n]&&(t.vendorLi=!1),a[n]=t})),e.purposeStates=a;var h=e.publisherCC||"US";e.publisherCC=h;var p=ei.kGVLv2Language||"en";function b(n){return n.toLowerCase()}4===Mi&&(p=ei.kGVLv3Language||"en");var d=(null==(n=(ei.C||navigator.language||navigator.userLanguage).split(","))?void 0:n[0])||"",w=[b(p),b(p.split("-")[0]),b(d),b(d.split("-")[0])],m=e.customPurposeStates||{};if(c)m={};else for(var j in m)m.hasOwnProperty(j)&&(function(){var n=m[j]||{};n.id=parseInt(j,10),u.forEach((function(t){var e=t[0];n.hasOwnProperty(e)||(n[e]=!0)}));for(var t=!1,e=0;e<w.length;e++){if("en"===w[e]){t=!0;break}if(t=n.translations&&n.translations[w[e]]){n.name=t.name,n.description=t.description;break}}t||(n.alwaysShow=!1),m[j]=n})();e.customPurposeStates=m;var O=e.customVendors||{};O=Object.keys(O).reduce((function(n,t){var e=O[t];if(e&&e.allowed){var r=!1,i=!1;e.consentPurposes=e.consentPurposes||[],e.consentPurposes.forEach((function(n){r=r||a[n]&&a[n].vendorConsent})),e.liPurposes=e.liPurposes||[],e.liPurposes.forEach((function(n){i=i||a[n]&&a[n].vendorLi})),(r||i)&&(n[t]=e)}return n}),{}),e.customVendors=O;var g=e.useAllowList,k=void 0!==g&&g,S=e.allowedVendors,E=void 0===S?[]:S,C=e.disallowedVendors,R=void 0===C?[]:C,T=e.useGlobalScope,A=void 0!==T&&T;return A&&(A=!1),ii().then((function(n){var i,p=n.recorder;return Vi&&p.addLoadPerfData(ei.h,1,mi(Vi),Vi),_i(p),l("view.rendered",(function(n){var t=n.candidates,e=n.extras,r=void 0===e?{}:e;r=r||{};try{(t||[]).find((function(n){return n&&n.payload&&"ConsentManager"===n.payload.name}))&&p.addData("cmpImpression",{language:r.language,purposes:r.renderStandardPurposes||[],customPurposes:r.renderCustomPurposes||[],vendors:r.renderVendors||[],tcModel:i,cmpVersion:ei.N})}catch(n){p.setError(n,"tcfImpRecord")}})),ai().then(di).then((function(n){var l=n.tcStringData,b=n.hasGlobalScope,d=n.customVendorConsents,j=n.acVendorConsents,g=void 0===j?"":j,S=[];i=(function(n){if(n)try{var t=vr.decode(n);return t.lastUpdated.getTime()+1e3*vi>Date.now()?t:void 0}catch(n){}})(l);var C=(function(n){return Object.keys(n).map((function(t){return n[t]}))})(m).filter((function(n){return!1!==n.alwaysShow})),T=!1;if(i){C.length>0&&(i.customPurposes=m);var I=function(n){if(c)return"break";var t=~~n,e=a[t]||{};o.forEach((function(n){var r=n[0],o=n[1];!e[r]&&i[o].has(t)&&(i[o].unset(t),"pubLi"===r&&f[t]||"vendorLi"===r&&s[t]||(T=!0))}))};for(var L in a)if("break"===I(L))break;Gi(i,h)}var V=!!i;function x(n){n.unsetAll(),o.forEach((function(t){t[0];var e=t[1];n[e].empty()})),u.forEach((function(t){t[0];var e=t[1];n[e].empty()}))}function N(n,t){var e,r,i=n.gvl.vendors,c=(e=n.policyVersion,r=[],$i(e,(function(n){r.push(n)})),r);x(n),o.forEach((function(e){var r=e[0],i=e[1];!t&&r.indexOf("Consent")>-1||n[i].set(c.filter((function(n){return a[n]&&a[n][r]})))})),Fi(n);var f=Object.keys(i).map((function(n){return parseInt(n,10)})).filter((function(n){return k?E.indexOf(n)>-1:-1===R.indexOf(n)}));t&&n.vendorConsents.set(f),n.vendorLegitimateInterests.set(f),t&&n.setAllSpecialFeatureOptins(),u.forEach((function(e){var r=e[0],i=e[1];n[i].empty(),!t&&r.indexOf("Consent")>-1||n[i].set(C.filter((function(n){return n[r]})).map((function(n){return n.id})))}))}var _,M,B,D,$,F=ei._||xi||V,G=(function(n){var t=(function(n){var t={},e=n.split("~"),r=e[1],i=e[2];if(r&&r.length)for(var o=r.split("."),u=0;u<o.length;u++)t[o[u]]=!0;if(i&&i.length)for(var c=(i=i.split("dv.")[1]||"").split("."),a=0;a<c.length;a++)t[c[a]]=!1;return t})(n),e=n;return{getACVendorState:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?e:t},updateACVendorState:function(n,r){var i=(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e="".concat(t||1,"~"),r=[],i=[];for(var o in n)Object.hasOwnProperty.call(n,o)&&(n[o]?r:i).push(o);return e+="".concat(r.join(".")),2===t&&(e+="~dv.".concat(i.join("."))),e})(n,r);return t=n,e=i,i}}})(g),U=G.getACVendorState,H=G.updateACVendorState;function J(n){if(!M||B!==n){var t=ei.kGVLv2Path;4===n&&(t=ei.kGVLv3Path),B=n,M=ri(t).then((function(n){return n.json()}))}return M}function W(n){return _&&B===n||(_=J(n).then((function(n){var t=n.gvl;return new rr(t)}))),_}function q(n){d=JSON.stringify(n)}var z=new Xr(ei.B,ei.N,!A,{getTCData:function(n,t,e){t&&"object"==typeof t&&r&&(t.addtlConsent=U(!0)),n(t,e)},getVendorList:function(n,t){W(i?i.policyVersion:Mi).then((function(e){t&&"LATEST"!==t&&t!==e.vendorListVersion?n(null,!1):n(e.getJson(),!0)}))}}),Y=z.callResponder;if(Y){var K=Y.isBuiltInCommand;Y.isBuiltInCommand=function(n){return"getVendorList"!==n&&K(n)}}!(function(n,t){var e=window.__tcfapi,r=!1;e("addEventListener",2,(function(e,i){if(i&&e){var o=t.tcfClientOptions,u=e.publisher||{},c=e.vendor||{},a=e.purpose||{},f=!!t.gdprApplies||xi||!!e.tcString,s=f?!!e.tcString:null,l={consentStatus:ki(o,s,e),publisherPurposes:u.consents||{},publisherCustomPurposes:u.customPurposes&&u.customPurpose.consents||{},vendorPurposes:a.consents||{},vendors:c.consents||{},tcfVersion:e.tcfPolicyVersion||Mi},h=function(){return ti({_private:function(){return{cmpClient:t,applies:f,consent:l,reportingData:Ci(l,Ni)}}},{euVisitor:ei._,gdprAppliesGlobally:xi,consentKnown:s,tcData:e,customVendors:t.getCustomVendorState(),tcfVersion:e.tcfPolicyVersion||Mi})};if(r||(r=!0,v("cmp.loaded",h())),"useractioncomplete"===e.eventStatus){var p=o.cookieDomain;Promise.all([(b=e.tcString,d=p,ai(fi,b,{maxAge:vi,domain:d||null}).catch((function(n){if(d)return ai(fi,b,{maxAge:vi,domain:null});throw n}))),pi(JSON.stringify(t.getCustomVendorState()),p),bi(t.getACVendorState(!0),p)]).catch((function(t){n.setError(t,"tcfcookie")})).then((function(){return y("triggerEvent","cmp.updated",h())})).catch((function(n){})).then((function(){return Promise.all([t.getTCModel(),t.getPurposeTranslations()])})).then((function(t){var e=t[0],r=t[1];n.addData("cmpConsent",{language:r&&r.language||"en",consentScreen:e.consentScreen,tcModel:e,cmpVersion:ei.N},Vi),n.record()})).catch((function(t){n.setError(t,"tcfConRecord")}))}}var b,d}))})(p,{gdprApplies:F,cmpID:ei.B,cmpVersion:ei.N,global:!(!A&&!b),tcfClientOptions:e,getCustomVendorState:function(){try{if(d)return JSON.parse(d)}catch(n){}},updateCustomVendorState:q,getACVendorState:U,updateACVendorState:H,acModeVendors:S,getACModeVendors:function(){return($||($=r?ri(t).then((function(n){return n.json()})):Promise.resolve([])),$).then((function(n){return S=!n||n[0]&&n[0].provider_id?n||[]:n.map((function(n){return{provider_id:n[0],provider_name:n[1],policy_url:n[2]}}))}))},getPurposeTranslations:function(){return D&&B===Mi||(D=J(Mi).then((function(n){var t=n.translations,e=n.language;return t&&e&&(t.language=e),t}))),D},getTCModel:function(){return!i||!i.gvl||i.policyVersion<Mi?W(Mi).then((function(n){return i?(i.gvl=n,Fi(i)):(i=(function(n){var t=new sr(n);return C.length>0&&(t.customPurposes=m),N(t,!1),Gi(t,h),vr.decode(vr.encode(t),t)})(n),P.tcModel&&(P.tcModel.gvl=n)),i})):Promise.resolve(i)},updateModel:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.rejectAll?(q(Object.keys(O).reduce((function(n,t){return n[t]={},n}),{})),H((t.renderACModeVendors||S).reduce((function(n,t){return n[t.provider_id]=!1,n}),{}),2),x(i)):t.acceptAll&&(q(Object.keys(O).reduce((function(n,t){return n[t]={},O[t].consentPurposes.length>0&&(n[t].consent=!0),O[t].liPurposes.length>0&&(n[t].li=!0),n}),{})),S.length&&H((t.renderACModeVendors||S).reduce((function(n,t){return n[t.provider_id]=!0,n}),{}),2),N(n,!0)),i=n,new Promise((function(n){requestAnimationFrame((function(){return setTimeout(n,0)}))})).then((function(){return vr.encode(n)})).then((function(n){z.update(n),V=!0}))},tcfLanguagePreferences:w,getConsent:function(){return{exists:V,status:ki(e,V,new Q)}}});var X=!1;!F||i&&!T||(X=!0),(function(n){var t,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(){return new Promise((function(n,e){t?n(t):e("no cached CMP candidate")})).catch((function(){return Ai(e)})).then((function(n){return t=n,n})).then((function(n){return Ri(n,e)}))};y("addSetter","template.candidates",(function(n){var r=n.templateCandidates;if(!t)for(var i=0;r&&i<r.length;i++)if(r[i].payload&&Ti(r[i].payload.name)){e&&(r[i].payload.name=ji),t=r[i];break}}));var i="registerViewProvider",o=function(){return r()};y(i,"cmp.settings",o),y(i,"cmp.main",o),y(i,"cmp.preview",o),n&&y("show","cmp.main")})(T,!1),F?i||(l=""):l=null,z.update(l,X)})).catch((function(n){p.setError(n,"tcfinit")}))}))},Ui.start()}]);}Ko.start=function(){try{(new zo).l}catch(e){}var e,t=mo.$&&!!mo.F,n=new co(Uo,Fo);return(e="_recorder",new Promise((function(t){po(e,(function n(r){t(r),yo("removeEventListener",e,n)}))}))).then((function(e){var r=e.recorder;return Do&&r.addLoadPerfData(mo.O,1,Vo(Do),Do),Ho(r),po("view.rendered",(function(e){(e.candidates||[]).find((function(e){return e&&e.payload&&"USNational"===e.payload.name}))&&r.addData("cmpImpression",{type:"usnat"})})),(function(e,t,n){return Io().catch((function(e){t.setError(e,"gppcookie")})).then((function(r){var i=(function(e){for(var t=0;e&&t<e.length;t++)if(e[t]&&e[t].name===So&&e[t].value)return e[t].value})(r);if(i)try{e.setGppString(i)}catch(e){t.setError(e,"gppstring")}return mo.$?(e.setSupportedAPIs(["7:usnat"]),e.setCmpDisplayStatus(null),(function(e,t){if(t){e.setApplicableSections([7]);var n=!1;yo("registerViewProvider","USNational",(function(){n||(wo("call.targeting.render",{overrides:{pvun:!0}}),n=!0)}))}else e.setApplicableSections([-1]);var r=Promise.resolve();return!e.hasSectionId(7)&&t&&(e.setFieldValueBySectionId(7,"MspaCoveredTransaction",mo.L?1:2),e.setFieldValueBySectionId(7,"MspaOptOutOptionMode",1),e.setFieldValueBySectionId(7,"MspaServiceProviderMode",2),e.setFieldValueBySectionId(7,"SharingNotice",1),e.setFieldValueBySectionId(7,"SaleOptOutNotice",1),e.setFieldValueBySectionId(7,"SharingOptOutNotice",1),e.setFieldValueBySectionId(7,"TargetedAdvertisingOptOutNotice",1),r=r.then(Io("usprivacy").then((function(t){var n=!1;t&&t[0]&&t[0].value&&(n="Y"===t[0].value[2]),e.setFieldValueBySectionId(7,"SaleOptOut",n?1:2),e.setFieldValueBySectionId(7,"SharingOptOut",n?1:2)}))),e.setFieldValueBySectionId(7,"TargetedAdvertisingOptOut",2),e.setApplicableSections([7]),e.setCmpStatus("loaded"),e.setSignalStatus("ready"),r=r.then((function(){return _o(e.getGppString())}))),t&&(r=r.then((function(){e.setSignalStatus("ready"),e.setCmpStatus("loaded")}))),r})(e,n).catch((function(e){t.setError(e,"usnatsetup")}))):(e.setApplicableSections([-1]),e.setSignalStatus("ready"),Promise.resolve())}))})(n,r,t).then((function(){var e;Jo.decode(n.getGppString()),po("call.usnat.update",(function(e){var t=e.optOutChanges,r=!1;(t||[]).forEach((function(e){for(var t=e.id,i=e.v,o=0;o<Wo.length;o++)if(Wo[o][1]===t){if(i>2||i<0)throw new Error("invalid value for "+Wo[o][0]+": "+i);return n.setFieldValueBySectionId(7,Wo[o][0],i),void(r=!0)}})),r&&n.fireSectionChange(Mo)})),mo.$&&wo("usnat.loaded",e=qo(n));var t=!1;function i(){t=!1;var i=qo(n);JSON.stringify(e.state)!==JSON.stringify(i.state)&&(r.addData("cmpConsent",{type:"usnat"}),r.record()),e=i}(0,window.__gpp)("addEventListener",(function(e){e&&"sectionChange"===e.eventName&&new Promise((function(e){return e(n.getGppString())})).then(_o).then((function(){mo.$&&e.data===Mo&&(wo("usnat.updated",qo(n)).catch((function(e){})),t||(setTimeout(i,300),t=!0))})).catch((function(e){r.setError(e,"gppcookie")}))}))})).catch((function(e){r.setError(e,"gppsetup")}))}))},Ko.start(),t.default=Ko}]);}function fr(){this.l=function(a){a('https://cdn.unblockia.com/h.js',!0)},f(this.l)&&this.l(Ct)}"undefined"!=typeof document&&cr.start();var dr=function(){ar=!1};t.default=cr}]);