window.__tcfapi = function (command, version, callback, parameter) { if (command === 'getTCData' || command === 'addEventListener' || command === 'removeEventListener') { const tcData = { gdprApplies: false, tcString: '', eventStatus: 'tcloaded', cmpId: 299, cmpVersion: 10, cmpStatus: 'disabled', isServiceSpecific: true, useNonStandardStacks: false, purposeOneTreatment: false, purpose: { consents: {}, legitimateInterests: {} }, vendor: { consents: {}, legitimateInterests: {} } }; callback(tcData, true); } else if (command === 'ping') { callback({ gdprApplies: false, cmpId: 299, cmpVersion: 10, cmpStatus: 'disabled' }, true); } else { callback(null, false); } }; window.dispatchEvent(new Event('tcfapiready'));const userState = "CA";var consentOptions = JSON.parse('{"DEFAULT":{"SaleOptOutNotice":1,"SharingOptOutNotice":1,"SensitiveDataLimitUseNotice":1,"SaleOptOut":2,"SharingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":[0,0],"PersonalDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"CONSENT":{"SaleOptOutNotice":1,"SharingOptOutNotice":1,"SensitiveDataLimitUseNotice":1,"SaleOptOut":2,"SharingOptOut":2,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":[0,0],"PersonalDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0},"REJECT":{"SaleOptOutNotice":1,"SharingOptOutNotice":1,"SensitiveDataLimitUseNotice":1,"SaleOptOut":1,"SharingOptOut":1,"SensitiveDataProcessing":[0,0,0,0,0,0,0,0,0],"KnownChildSensitiveDataConsents":[0,0],"PersonalDataConsents":0,"MspaCoveredTransaction":2,"MspaOptOutOptionMode":0,"MspaServiceProviderMode":0}}');(()=>{var yi=Object.defineProperty;var Ii=(a,o,e)=>o in a?yi(a,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[o]=e;var Ai=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var r=(a,o,e)=>Ii(a,typeof o!="symbol"?o+"":o,e);var Ao=(a,o,e)=>new Promise((t,i)=>{var n=l=>{try{m(e.next(l))}catch(j){i(j)}},s=l=>{try{m(e.throw(l))}catch(j){i(j)}},m=l=>l.done?t(l.value):Promise.resolve(l.value).then(n,s);m((e=e.apply(a,o)).next())});var fi=Ai(So=>{"use strict";Object.defineProperties(So,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Qi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Xt,di;function Xi(){if(di)return Xt;di=1;let a=2147483647,o=36,e=1,t=26,i=38,n=700,s=72,m=128,l="-",j=/^xn--/,L=/[^\0-\x7F]/,W=/[\x2E\u3002\uFF0E\uFF61]/g,Te={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=o-e,Ve=Math.floor,Wt=String.fromCharCode;function Fe(k){throw new RangeError(Te[k])}function Ti(k,G){let X=[],U=k.length;for(;U--;)X[U]=G(k[U]);return X}function na(k,G){let X=k.split("@"),U="";X.length>1&&(U=X[0]+"@",k=X[1]),k=k.replace(W,".");let Z=k.split("."),we=Ti(Z,G).join(".");return U+we}function sa(k){let G=[],X=0,U=k.length;for(;X=55296&&Z<=56319&&XString.fromCodePoint(...k),Ni=function(k){return k>=48&&k<58?26+(k-48):k>=65&&k<91?k-65:k>=97&&k<123?k-97:o},ra=function(k,G){return k+22+75*(k<26)-((G!=0)<<5)},ca=function(k,G,X){let U=0;for(k=X?Ve(k/n):k>>1,k+=Ve(k/G);k>$*t>>1;U+=o)k=Ve(k/$);return Ve(U+($+1)*k/(k+i))},ma=function(k){let G=[],X=k.length,U=0,Z=m,we=s,Ge=k.lastIndexOf(l);Ge<0&&(Ge=0);for(let Oe=0;Oe=128&&Fe("not-basic"),G.push(k.charCodeAt(Oe));for(let Oe=Ge>0?Ge+1:0;Oe=X&&Fe("invalid-input");let Ue=Ni(k.charCodeAt(Oe++));Ue>=o&&Fe("invalid-input"),Ue>Ve((a-U)/Ce)&&Fe("overflow"),U+=Ue*Ce;let go=Le<=we?e:Le>=we+t?t:Le-we;if(UeVe(a/Io)&&Fe("overflow"),Ce*=Io}let Be=G.length+1;we=ca(U-ve,Be,ve==0),Ve(U/Be)>a-Z&&Fe("overflow"),Z+=Ve(U/Be),U%=Be,G.splice(U++,0,Z)}return String.fromCodePoint(...G)},la=function(k){let G=[];k=sa(k);let X=k.length,U=m,Z=0,we=s;for(let ve of k)ve<128&&G.push(Wt(ve));let Ge=G.length,Oe=Ge;for(Ge&&G.push(l);Oe=U&&CeVe((a-Z)/Be)&&Fe("overflow"),Z+=(ve-U)*Be,U=ve;for(let Ce of k)if(Cea&&Fe("overflow"),Ce===U){let Le=Z;for(let Ue=o;;Ue+=o){let go=Ue<=we?e:Ue>=we+t?t:Ue-we;if(Le{let e=o.replace(/^(\*\.|\!)/,""),t=Lo.toASCII(e),i=o.charAt(0);if(a.has(t))throw new Error(`Multiple rules found for ${o} (${t})`);return a.set(t,{rule:o,suffix:e,punySuffix:t,wildcard:i==="*",exception:i==="!"}),a},new Map),on=a=>{let o=Lo.toASCII(a).split(".");for(let e=0;e{let o=Lo.toASCII(a);if(o.length<1)return"DOMAIN_TOO_SHORT";if(o.length>255)return"DOMAIN_TOO_LONG";let e=o.split("."),t;for(let i=0;i63)return"LABEL_TOO_LONG";if(t.charAt(0)==="-")return"LABEL_STARTS_WITH_DASH";if(t.charAt(t.length-1)==="-")return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-_]+$/.test(t))return"LABEL_INVALID_CHARS"}},Kt=a=>{if(typeof a!="string")throw new TypeError("Domain name must be a string.");let o=a.slice(0).toLowerCase();o.charAt(o.length-1)==="."&&(o=o.slice(0,o.length-1));let e=tn(o);if(e)return{input:a,error:{message:gi[e],code:e}};let t={input:a,tld:null,sld:null,domain:null,subdomain:null,listed:!1},i=o.split(".");if(i[i.length-1]==="local")return t;let n=()=>(/xn--/.test(o)&&(t.domain&&(t.domain=Lo.toASCII(t.domain)),t.subdomain&&(t.subdomain=Lo.toASCII(t.subdomain))),t),s=on(o);if(!s)return i.length<2?t:(t.tld=i.pop(),t.sld=i.pop(),t.domain=[t.sld,t.tld].join("."),i.length&&(t.subdomain=i.pop()),n());t.listed=!0;let m=s.suffix.split("."),l=i.slice(0,i.length-m.length);return s.exception&&l.push(m.shift()),t.tld=m.join("."),!l.length||(s.wildcard&&(m.unshift(l.pop()),t.tld=m.join(".")),!l.length)||(t.sld=l.pop(),t.domain=[t.sld,t.tld].join("."),l.length&&(t.subdomain=l.join("."))),n()},hi=a=>a&&Kt(a).domain||null,Ei=a=>{let o=Kt(a);return!!(o.domain&&o.listed)},an={parse:Kt,get:hi,isValid:Ei};So.default=an;So.errorCodes=gi;So.get=hi;So.isValid=Ei;So.parse=Kt});var $t={description:"Canonical list of country/territory codes (ISO 3166-1 alpha-2 as reported by our geo DBs and Cloudflare CF-IPCountry) where visitors must give consent before device storage, personalised ads or identity processing. This file is the single source of truth: staticsol and cmp carry generated copies of it. Edit only this file, then run the sync script in each consumer repo.",groups:[{basis:"EU member states (GDPR, ePrivacy)",countries:{AT:"Austria",BE:"Belgium",BG:"Bulgaria",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",FR:"France",GR:"Greece",HR:"Croatia",HU:"Hungary",IE:"Ireland",IT:"Italy",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MT:"Malta",NL:"Netherlands",PL:"Poland",PT:"Portugal",RO:"Romania",SE:"Sweden",SI:"Slovenia",SK:"Slovakia"}},{basis:"Parts of EU member states with their own code (GDPR applies)",countries:{AX:"\xC5land Islands (Finland)",GF:"French Guiana (France)",GP:"Guadeloupe (France)",MF:"Saint Martin (France)",MQ:"Martinique (France)",RE:"R\xE9union (France)",YT:"Mayotte (France)",IC:"Canary Islands (Spain; not ISO, geo DBs usually report ES)",EA:"Ceuta and Melilla (Spain; not ISO, geo DBs usually report ES)"}},{basis:"EEA non-EU members (GDPR via EEA Agreement)",countries:{IS:"Iceland",LI:"Liechtenstein",NO:"Norway"}},{basis:"United Kingdom, Crown Dependencies and Gibraltar (UK GDPR / local equivalents)",countries:{GB:"United Kingdom",GG:"Guernsey",GI:"Gibraltar",IM:"Isle of Man",JE:"Jersey"}},{basis:"Switzerland (revFADP) and European microstates with GDPR-equivalent law",countries:{CH:"Switzerland",AD:"Andorra",MC:"Monaco",SM:"San Marino",VA:"Vatican City"}},{basis:"Overseas countries and territories of EU member states (outside the EU; included conservatively, national data protection law partly applies)",countries:{BL:"Saint Barth\xE9lemy (France)",NC:"New Caledonia (France)",PF:"French Polynesia (France)",PM:"Saint Pierre and Miquelon (France)",TF:"French Southern Territories (France)",WF:"Wallis and Futuna (France)",AW:"Aruba (Netherlands)",BQ:"Caribbean Netherlands (Netherlands)",CW:"Cura\xE7ao (Netherlands)",SX:"Sint Maarten (Netherlands)",FO:"Faroe Islands (Denmark)",GL:"Greenland (Denmark)"}}],unknownCodes:{description:"Codes that do not identify a country. Consent is required for these, and for any value that is not two letters A-Z after trimming and upper-casing.",codes:{"":"No country",XX:"Cloudflare: unknown",T1:"Cloudflare: Tor",ZZ:"Unknown or unspecified",EU:"MaxMind: Europe, country unknown",AP:"MaxMind: Asia/Pacific, country unknown",A1:"MaxMind: anonymous proxy",A2:"MaxMind: satellite provider",O1:"MaxMind: other"}}};function Ci(a){let o=[];for(let e of a)o.push(...Object.keys(e.countries));return o}var zi=new Set(Ci($t.groups)),hn=new Set(Object.keys($t.unknownCodes.codes));var ua=299;var He=class{constructor(o,e,t,i){r(this,"eventName");r(this,"listenerId");r(this,"data");r(this,"pingData");this.eventName=o,this.listenerId=e,this.data=t,this.pingData=i}};var Re=class{constructor(o){r(this,"gppVersion");r(this,"cmpStatus");r(this,"cmpDisplayStatus");r(this,"signalStatus");r(this,"supportedAPIs");r(this,"cmpId");r(this,"sectionList");r(this,"applicableSections");r(this,"gppString");r(this,"parsedSections");this.gppVersion=o.gppVersion,this.cmpStatus=o.cmpStatus,this.cmpDisplayStatus=o.cmpDisplayStatus,this.signalStatus=o.signalStatus,this.supportedAPIs=o.supportedAPIs,this.cmpId=o.cmpId,this.sectionList=o.gppModel.getSectionIds(),this.applicableSections=o.applicableSections,this.gppString=o.gppModel.encode(),this.parsedSections=o.gppModel.toObject()}};var be=class{constructor(o,e,t){r(this,"callback");r(this,"parameter");r(this,"success",!0);r(this,"cmpApiContext");this.cmpApiContext=o,Object.assign(this,{callback:e,parameter:t})}execute(){try{return this.respond()}catch(o){return this.invokeCallback(null),null}}invokeCallback(o){let e=o!==null;this.callback&&this.callback(o,e)}};var Fo=class extends be{respond(){let o=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),e=new He("listenerRegistered",o,!0,new Re(this.cmpApiContext));this.invokeCallback(e)}};var Bo=class extends be{respond(){let o=new Re(this.cmpApiContext);this.invokeCallback(o)}};var Ho=class extends be{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
. parameter required");let o=this.parameter.split(".");if(o.length!=2)throw new Error("Field name must be in the format
.");let e=o[0],t=o[1],i=this.cmpApiContext.gppModel.getFieldValue(e,t);this.invokeCallback(i)}};var qo=class extends be{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
parameter required");let o=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(o=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(o)}};var Ko=class extends be{respond(){if(!this.parameter||this.parameter.length===0)throw new Error("
[.version] parameter required");let o=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(o)}};var Ne;(function(a){a.ADD_EVENT_LISTENER="addEventListener",a.GET_FIELD="getField",a.GET_SECTION="getSection",a.HAS_SECTION="hasSection",a.PING="ping",a.REMOVE_EVENT_LISTENER="removeEventListener"})(Ne||(Ne={}));var Yo=class extends be{respond(){let o=this.parameter,e=this.cmpApiContext.eventQueue.remove(o),t=new He("listenerRemoved",o,e,new Re(this.cmpApiContext));this.invokeCallback(t)}};var da,ga,ha,Ea,fa,ka;ka=Ne.ADD_EVENT_LISTENER,fa=Ne.GET_FIELD,Ea=Ne.GET_SECTION,ha=Ne.HAS_SECTION,ga=Ne.PING,da=Ne.REMOVE_EVENT_LISTENER;var ze=class{};r(ze,ka,Fo),r(ze,fa,Ho),r(ze,Ea,qo),r(ze,ha,Ko),r(ze,ga,Bo),r(ze,da,Yo);var vo;(function(a){a.STUB="stub",a.LOADING="loading",a.LOADED="loaded",a.ERROR="error"})(vo||(vo={}));var Co;(function(a){a.VISIBLE="visible",a.HIDDEN="hidden",a.DISABLED="disabled"})(Co||(Co={}));var Sa;(function(a){a.GPP_LOADED="gpploaded",a.CMP_UI_SHOWN="cmpuishown",a.USER_ACTION_COMPLETE="useractioncomplete"})(Sa||(Sa={}));var zo;(function(a){a.NOT_READY="not ready",a.READY="ready"})(zo||(zo={}));var Wo=class{constructor(o,e){r(this,"callQueue");r(this,"customCommands");r(this,"cmpApiContext");if(this.cmpApiContext=o,e){let t=Ne.ADD_EVENT_LISTENER;if(e!=null&&e[t])throw new Error(`Built-In Custom Commmand for ${t} not allowed`);if(t=Ne.REMOVE_EVENT_LISTENER,e!=null&&e[t])throw new Error(`Built-In Custom Commmand for ${t} not allowed`);this.customCommands=e}try{this.callQueue=window.__gpp()||[]}catch(t){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(o,e,t,i){if(typeof o!="string")e(null,!1);else{if(e&&typeof e!="function")throw new Error("invalid callback function");this.isCustomCommand(o)?this.customCommands[o](e,t):this.isBuiltInCommand(o)?new ze[o](this.cmpApiContext,e,t).execute():e&&e(null,!1)}}purgeQueuedCalls(){let o=this.callQueue;this.callQueue=[],o.forEach(e=>{window.__gpp(...e)})}isCustomCommand(o){return this.customCommands&&typeof this.customCommands[o]=="function"}isBuiltInCommand(o){return ze[o]!==void 0}};var $o=class{constructor(o){r(this,"eventQueue",new Map);r(this,"queueNumber",1e3);r(this,"cmpApiContext");this.cmpApiContext=o;try{let t=window.__gpp("events")||[];for(var e=0;e{let n=new He(o,i,e,new Re(this.cmpApiContext));t.callback(n,!0)})}clear(){this.queueNumber=1e3,this.eventQueue.clear()}get size(){return this.eventQueue.size}};var Me=class extends Error{constructor(o){super(o),this.name="InvalidFieldError"}};var T=class{constructor(){r(this,"segments");r(this,"encodedString",null);r(this,"dirty",!1);r(this,"decoded",!0);this.segments=this.initializeSegments()}hasField(o){this.decoded||(this.segments=this.decodeSection(this.encodedString),this.dirty=!1,this.decoded=!0);for(let e=0;e=1)for(t.push(1);o>=t[0]*2;)t.unshift(t[0]*2);let i="";for(let n=0;n=s?(i+="1",o-=s):i+="0"}if(i.length>e)throw new O("Numeric value '"+o+"' is too large for a bit string length of '"+e+"'");for(;i.length0;)o+="0";for(;o.length%6>0;)o+="0";return o}};r(Qo,"instance",new Qo);var E=Qo;var Xo=class Xo{constructor(){}static getInstance(){return this.instance}encode(o,e){let t="";for(let i=0;i=1&&(e.push(1),o>=2)){e.push(2);let i=2;for(;o>=e[i-1]+e[i-2];)e.push(e[i-1]+e[i-2]),i++}let t="1";for(let i=e.length-1;i>=0;i--){let n=e[i];o>=n?(t="1"+t,o-=n):t="0"+t}return t}static decode(o){if(!/^[0-1]*$/.test(o)||o.length<2||o.indexOf("11")!==o.length-2)throw new p("Undecodable FibonacciInteger '"+o+"'");let e=0,t=[];for(let i=0;is-m);let e=[],t=0,i=0;for(;io.length||e<0||e>t)throw new F("Invalid substring indexes "+e+":"+t+" for string of length "+o.length);return o.substring(e,t)}};var Do=class extends q{constructor(o,e=!0){super(e),this.setValue(o)}encode(){try{return ho.encode(this.value)}catch(o){throw new O(o)}}decode(o){try{this.value=ho.decode(o)}catch(e){throw new p(e)}}substring(o,e){try{let t=S.decode(R.substring(o,e,e+12)),i=e+12;for(let n=0;ne-t))}};var c=class extends q{constructor(e,t,i=!0){super(i);r(this,"bitStringLength");this.bitStringLength=e,this.setValue(t)}encode(){try{return S.encode(this.value,this.bitStringLength)}catch(e){throw new O(e)}}decode(e){try{this.value=S.decode(e)}catch(t){throw new p(t)}}substring(e,t){try{return R.substring(e,t,t+this.bitStringLength)}catch(i){throw new F(i)}}};var g=class{constructor(){r(this,"fields",new Map)}containsKey(o){return this.fields.has(o)}put(o,e){this.fields.set(o,e)}get(o){return this.fields.get(o)}getAll(){return new Map(this.fields)}reset(o){this.fields.clear(),o.getAll().forEach((e,t)=>{this.fields.set(t,e)})}};var De;(function(a){a.ID="Id",a.VERSION="Version",a.SECTION_IDS="SectionIds"})(De||(De={}));var wa=[De.ID,De.VERSION,De.SECTION_IDS];var u=class{constructor(){r(this,"fields");r(this,"encodedString",null);r(this,"dirty",!1);r(this,"decoded",!0);this.fields=this.initializeFields()}validate(){}hasField(o){return this.fields.containsKey(o)}getFieldValue(o){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(o))return this.fields.get(o).getValue();throw new Me("Invalid field: '"+o+"'")}setFieldValue(o,e){if(this.decoded||(this.decodeSegment(this.encodedString,this.fields),this.dirty=!1,this.decoded=!0),this.fields.containsKey(o))this.fields.get(o).setValue(e),this.dirty=!0;else throw new Me(o+" not found")}toObj(){let o={},e=this.getFieldNames();for(let t=0;t0&&this.decode(o)}getId(){return qe.ID}getName(){return qe.NAME}getVersion(){return qe.VERSION}initializeSegments(){let o=[];return o.push(new Jo),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;ii&&e[i].decode(t[i])}return e}encodeSection(o){let e=[];for(let t=0;t0;)o+="0";return o}};r(et,"instance",new et);var Ie=et;var Ae=class{static encode(o){o.sort((n,s)=>n-s);let e=[],t=0;for(;te-t))}};var ot=class{constructor(o,e,t){r(this,"key");r(this,"type");r(this,"ids");this.key=o,this.type=e,this.ids=t}getKey(){return this.key}setKey(o){this.key=o}getType(){return this.type}setType(o){this.type=o}getIds(){return this.ids}setIds(o){this.ids=o}};var jo=class extends q{constructor(e,t,i,n=!0){super(n);r(this,"keyBitStringLength");r(this,"typeBitStringLength");this.keyBitStringLength=e,this.typeBitStringLength=t,this.setValue(i)}encode(){try{let e=this.value,t="";t+=S.encode(e.length,12);for(let i=0;ie)throw new O("Too many values '"+o.length+"'");let t="";for(let i=0;ithis.numElements&&(t=t.slice(0,this.numElements)),super.setValue(t)}};var Vo=class{static encode(o,e){for(;o.length=65)t+=S.encode(o.charCodeAt(i)-65,6);else throw new O("Unencodable FixedString '"+o+"'")}return t}static decode(o){if(!/^[0-1]*$/.test(o)||o.length%6!==0)throw new p("Undecodable FixedString '"+o+"'");let e="";for(let t=0;t0?this.value[this.value.length-1]:0,e=Ae.encode(this.value),t=e.length,i=o;if(t<=i)return S.encode(o,16)+"1"+e;{let n=[],s=0;for(let m=0;me-t))}};var tt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",Ie.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ba}initializeFields(){let e=new Date,t=new g;return t.put(h.VERSION.toString(),new c(6,Q.VERSION)),t.put(h.CREATED.toString(),new Ke(e)),t.put(h.LAST_UPDATED.toString(),new Ke(e)),t.put(h.CMP_ID.toString(),new c(12,0)),t.put(h.CMP_VERSION.toString(),new c(12,0)),t.put(h.CONSENT_SCREEN.toString(),new c(6,0)),t.put(h.CONSENT_LANGUAGE.toString(),new fo(2,"EN")),t.put(h.VENDOR_LIST_VERSION.toString(),new c(12,0)),t.put(h.POLICY_VERSION.toString(),new c(6,2)),t.put(h.IS_SERVICE_SPECIFIC.toString(),new w(!1)),t.put(h.USE_NON_STANDARD_STACKS.toString(),new w(!1)),t.put(h.SPECIAL_FEATURE_OPTINS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(h.PURPOSE_CONSENTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(h.PURPOSE_LEGITIMATE_INTERESTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(h.PURPOSE_ONE_TREATMENT.toString(),new w(!1)),t.put(h.PUBLISHER_COUNTRY_CODE.toString(),new fo(2,"AA")),t.put(h.VENDOR_CONSENTS.toString(),new _e([])),t.put(h.VENDOR_LEGITIMATE_INTERESTS.toString(),new _e([])),t.put(h.PUBLISHER_RESTRICTIONS.toString(),new jo(6,2,[],!1)),t}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode TcfEuV2CoreSegment '"+e+"'")}}};var Ye=class extends q{constructor(e,t,i=!0){super(i);r(this,"getLength");this.getLength=e,this.setValue(t)}encode(){try{return je.encode(this.value,this.getLength())}catch(e){throw new O(e)}}decode(e){try{this.value=je.decode(e)}catch(t){throw new p(t)}}substring(e,t){try{return R.substring(e,t,t+this.getLength())}catch(i){throw new F(i)}}getValue(){return[...super.getValue()]}setValue(e){let t=this.getLength(),i=[...e];for(let n=i.length;nt&&(i=i.slice(0,t)),super.setValue([...i])}};var at=class extends u{constructor(e){super();r(this,"base64UrlEncoder",Ie.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ja}initializeFields(){let e=new g;e.put(h.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(h.PUBLISHER_CONSENTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(h.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let t=new c(6,0);return e.put(h.NUM_CUSTOM_PURPOSES.toString(),t),e.put(h.PUBLISHER_CUSTOM_CONSENTS.toString(),new Ye(()=>t.getValue(),[])),e.put(h.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new Ye(()=>t.getValue(),[])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode TcfEuV2PublisherPurposesSegment '"+e+"'")}}};var it=class extends u{constructor(e){super();r(this,"base64UrlEncoder",Ie.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return _a}initializeFields(){let e=new g;return e.put(h.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new c(3,2)),e.put(h.VENDORS_ALLOWED.toString(),new _e([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode TcfEuV2VendorsAllowedSegment '"+e+"'")}}};var nt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",Ie.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ta}initializeFields(){let e=new g;return e.put(h.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new c(3,1)),e.put(h.VENDORS_DISCLOSED.toString(),new _e([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode TcfEuV2VendorsDisclosedSegment '"+e+"'")}}};var We=class We extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return We.ID}getName(){return We.NAME}getVersion(){return We.VERSION}initializeSegments(){let o=[];return o.push(new tt),o.push(new at),o.push(new it),o.push(new nt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;i="A"&&s<="H")e[0].decode(t[i]);else if(s>="I"&&s<="P")e[3].decode(t[i]);else if(s>="Q"&&s<="X")e[2].decode(t[i]);else if(s>="Y"&&s<="Z"||s>="a"&&s<="f")e[1].decode(t[i]);else throw new p("Unable to decode TcfEuV2 segment '"+n+"'")}}}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),this.getFieldValue(h.IS_SERVICE_SPECIFIC)?o.length>=2&&e.push(o[1].encode()):o.length>=2&&(e.push(o[2].encode()),o.length>=3&&e.push(o[3].encode()))),e.join(".")}setFieldValue(o,e){if(super.setFieldValue(o,e),o!==h.CREATED&&o!==h.LAST_UPDATED){let t=new Date;super.setFieldValue(h.CREATED,t),super.setFieldValue(h.LAST_UPDATED,t)}}};r(We,"ID",2),r(We,"VERSION",2),r(We,"NAME","tcfeuv2");var Q=We;var f;(function(a){a.VERSION="Version",a.CREATED="Created",a.LAST_UPDATED="LastUpdated",a.CMP_ID="CmpId",a.CMP_VERSION="CmpVersion",a.CONSENT_SCREEN="ConsentScreen",a.CONSENT_LANGUAGE="ConsentLanguage",a.VENDOR_LIST_VERSION="VendorListVersion",a.TCF_POLICY_VERSION="TcfPolicyVersion",a.USE_NON_STANDARD_STACKS="UseNonStandardStacks",a.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",a.PUB_PURPOSES_SEGMENT_TYPE="PubPurposesSegmentType",a.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",a.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",a.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",a.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",a.PUB_RESTRICTIONS="PubRestrictions",a.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",a.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",a.NUM_CUSTOM_PURPOSES="NumCustomPurposes",a.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",a.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent",a.DISCLOSED_VENDORS_SEGMENT_TYPE="DisclosedVendorsSegmentType",a.DISCLOSED_VENDORS="DisclosedVendors"})(f||(f={}));var Oa=[f.VERSION,f.CREATED,f.LAST_UPDATED,f.CMP_ID,f.CMP_VERSION,f.CONSENT_SCREEN,f.CONSENT_LANGUAGE,f.VENDOR_LIST_VERSION,f.TCF_POLICY_VERSION,f.USE_NON_STANDARD_STACKS,f.SPECIAL_FEATURE_EXPRESS_CONSENT,f.PURPOSES_EXPRESS_CONSENT,f.PURPOSES_IMPLIED_CONSENT,f.VENDOR_EXPRESS_CONSENT,f.VENDOR_IMPLIED_CONSENT,f.PUB_RESTRICTIONS],Na=[f.PUB_PURPOSES_SEGMENT_TYPE,f.PUB_PURPOSES_EXPRESS_CONSENT,f.PUB_PURPOSES_IMPLIED_CONSENT,f.NUM_CUSTOM_PURPOSES,f.CUSTOM_PURPOSES_EXPRESS_CONSENT,f.CUSTOM_PURPOSES_IMPLIED_CONSENT],ya=[f.DISCLOSED_VENDORS_SEGMENT_TYPE,f.DISCLOSED_VENDORS];var st=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Oa}initializeFields(){let e=new Date,t=new g;return t.put(f.VERSION.toString(),new c(6,ee.VERSION)),t.put(f.CREATED.toString(),new Ke(e)),t.put(f.LAST_UPDATED.toString(),new Ke(e)),t.put(f.CMP_ID.toString(),new c(12,0)),t.put(f.CMP_VERSION.toString(),new c(12,0)),t.put(f.CONSENT_SCREEN.toString(),new c(6,0)),t.put(f.CONSENT_LANGUAGE.toString(),new fo(2,"EN")),t.put(f.VENDOR_LIST_VERSION.toString(),new c(12,0)),t.put(f.TCF_POLICY_VERSION.toString(),new c(6,2)),t.put(f.USE_NON_STANDARD_STACKS.toString(),new w(!1)),t.put(f.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(f.PURPOSES_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(f.PURPOSES_IMPLIED_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),t.put(f.VENDOR_EXPRESS_CONSENT.toString(),new _e([])),t.put(f.VENDOR_IMPLIED_CONSENT.toString(),new _e([])),t.put(f.PUB_RESTRICTIONS.toString(),new jo(6,2,[],!1)),t}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode TcfCaV1CoreSegment '"+e+"'")}}};var rt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Na}initializeFields(){let e=new g;e.put(f.PUB_PURPOSES_SEGMENT_TYPE.toString(),new c(3,3)),e.put(f.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),e.put(f.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new ke([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));let t=new c(6,0);return e.put(f.NUM_CUSTOM_PURPOSES.toString(),t),e.put(f.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new Ye(()=>t.getValue(),[])),e.put(f.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new Ye(()=>t.getValue(),[])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode TcfCaV1PublisherPurposesSegment '"+e+"'")}}};var ct=class extends u{constructor(e){super();r(this,"base64UrlEncoder",Ie.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ya}initializeFields(){let e=new g;return e.put(f.DISCLOSED_VENDORS_SEGMENT_TYPE.toString(),new c(3,1)),e.put(f.DISCLOSED_VENDORS.toString(),new _e([])),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode HeaderV1CoreSegment '"+e+"'")}}};var $e=class $e extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return $e.ID}getName(){return $e.NAME}getVersion(){return $e.VERSION}initializeSegments(){let o=[];return o.push(new st),o.push(new rt),o.push(new ct),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;i="A"&&s<="H")e[0].decode(t[i]);else if(s>="I"&&s<="P")e[2].decode(t[i]);else if(s>="Y"&&s<="Z"||s>="a"&&s<="f")e[1].decode(t[i]);else throw new p("Unable to decode TcfCaV1 segment '"+n+"'")}}}return e}encodeSection(o){let e=[];return e.push(o[0].encode()),e.push(o[1].encode()),this.getFieldValue(f.DISCLOSED_VENDORS).length>0&&e.push(o[2].encode()),e.join(".")}setFieldValue(o,e){if(super.setFieldValue(o,e),o!==f.CREATED&&o!==f.LAST_UPDATED){let t=new Date;super.setFieldValue(f.CREATED,t),super.setFieldValue(f.LAST_UPDATED,t)}}};r($e,"ID",5),r($e,"VERSION",1),r($e,"NAME","tcfcav1");var ee=$e;var _o=class{constructor(o,e){r(this,"validator");r(this,"value",null);e?this.validator=e:this.validator=new class{test(t){return!0}},this.setValue(o)}hasValue(){return this.value!=null}getValue(){return this.value}setValue(o){o?this.value=o.charAt(0):o=null}};var mt=class{constructor(o,e){r(this,"validator");r(this,"value",null);e?this.validator=e:this.validator=new class{test(t){return!0}},this.setValue(o)}hasValue(){return this.value!=null}getValue(){return this.value}setValue(o){this.value=o}};var lt=class{constructor(){r(this,"fields",new Map)}containsKey(o){return this.fields.has(o)}put(o,e){this.fields.set(o,e)}get(o){return this.fields.get(o)}getAll(){return new Map(this.fields)}reset(o){this.fields.clear(),o.getAll().forEach((e,t)=>{this.fields.set(t,e)})}};var J;(function(a){a.VERSION="Version",a.NOTICE="Notice",a.OPT_OUT_SALE="OptOutSale",a.LSPA_COVERED="LspaCovered"})(J||(J={}));var Ia=[J.VERSION,J.NOTICE,J.OPT_OUT_SALE,J.LSPA_COVERED];var pt=class extends u{constructor(o){super(),o&&this.decode(o)}getFieldNames(){return Ia}initializeFields(){let o=new class{test(t){return t==="-"||t==="Y"||t==="N"}},e=new lt;return e.put(J.VERSION,new mt(oe.VERSION)),e.put(J.NOTICE,new _o("-",o)),e.put(J.OPT_OUT_SALE,new _o("-",o)),e.put(J.LSPA_COVERED,new _o("-",o)),e}encodeSegment(o){let e="";return e+=o.get(J.VERSION).getValue(),e+=o.get(J.NOTICE).getValue(),e+=o.get(J.OPT_OUT_SALE).getValue(),e+=o.get(J.LSPA_COVERED).getValue(),e}decodeSegment(o,e){if(o==null||o.length!=4)throw new p("Unable to decode UspV1CoreSegment '"+o+"'");try{e.get(J.VERSION).setValue(parseInt(o.substring(0,1))),e.get(J.NOTICE).setValue(o.charAt(1)),e.get(J.OPT_OUT_SALE).setValue(o.charAt(2)),e.get(J.LSPA_COVERED).setValue(o.charAt(3))}catch(t){throw new p("Unable to decode UspV1CoreSegment '"+o+"'")}}};var Qe=class Qe extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Qe.ID}getName(){return Qe.NAME}getVersion(){return Qe.VERSION}initializeSegments(){let o=[];return o.push(new pt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;ii&&e[i].decode(t[i])}return e}encodeSection(o){let e=[];for(let t=0;tt)throw new O("Too many values '"+o.length+"'");let i="";for(let n=0;ne*t)throw new p("Undecodable FixedIntegerList '"+o+"'");if(o.length%e!=0)throw new p("Undecodable FixedIntegerList '"+o+"'");for(;o.lengthe*t&&(o=o.substring(0,e*t));let i=[];for(let n=0;nthis.numElements&&(t=t.slice(0,this.numElements)),super.setValue(t)}};var ut=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Aa}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(b.VERSION.toString(),new c(6,te.VERSION)),n.put(b.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(b.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(b.SHARING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(b.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(b.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(b.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(b.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(b.SHARING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(b.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(b.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]).withValidator(i)),n.put(b.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0]).withValidator(i)),n.put(b.PERSONAL_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(b.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(b.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(b.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);i.length==66&&(i=i.substring(0,48)+"00000000"+i.substring(48,52)+"00"+i.substring(52,62)),this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNatCoreSegment '"+e+"'")}}};var dt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return va}initializeFields(){let e=new g;return e.put(b.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(b.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(b.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNatGpcSegment '"+e+"'")}}};var Xe=class Xe extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Xe.ID}getName(){return Xe.NAME}getVersion(){return Xe.VERSION}initializeSegments(){let o=[];return o.push(new ut),o.push(new dt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(b.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(b.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(Xe,"ID",7),r(Xe,"VERSION",1),r(Xe,"NAME","usnat");var te=Xe;var N;(function(a){a.VERSION="Version",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",a.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",a.SALE_OPT_OUT="SaleOptOut",a.SHARING_OPT_OUT="SharingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.PERSONAL_DATA_CONSENTS="PersonalDataConsents",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(N||(N={}));var Ca=[N.VERSION,N.SALE_OPT_OUT_NOTICE,N.SHARING_OPT_OUT_NOTICE,N.SENSITIVE_DATA_LIMIT_USE_NOTICE,N.SALE_OPT_OUT,N.SHARING_OPT_OUT,N.SENSITIVE_DATA_PROCESSING,N.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,N.PERSONAL_DATA_CONSENTS,N.MSPA_COVERED_TRANSACTION,N.MSPA_OPT_OUT_OPTION_MODE,N.MSPA_SERVICE_PROVIDER_MODE],za=[N.GPC_SEGMENT_TYPE,N.GPC];var gt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ca}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(N.VERSION.toString(),new c(6,ae.VERSION)),n.put(N.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(N.SHARING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(N.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(N.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(N.SHARING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(N.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0,0]).withValidator(i)),n.put(N.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0]).withValidator(i)),n.put(N.PERSONAL_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(N.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(N.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(N.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsCaCoreSegment '"+e+"'")}}};var ht=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return za}initializeFields(){let e=new g;return e.put(N.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(N.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(N.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsCaGpcSegment '"+e+"'")}}};var Ze=class Ze extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Ze.ID}getName(){return Ze.NAME}getVersion(){return Ze.VERSION}initializeSegments(){let o=[];return o.push(new gt),o.push(new ht),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(N.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(N.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(N.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(Ze,"ID",8),r(Ze,"VERSION",1),r(Ze,"NAME","usca");var ae=Ze;var Y;(function(a){a.VERSION="Version",a.SHARING_NOTICE="SharingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(Y||(Y={}));var Da=[Y.VERSION,Y.SHARING_NOTICE,Y.SALE_OPT_OUT_NOTICE,Y.TARGETED_ADVERTISING_OPT_OUT_NOTICE,Y.SALE_OPT_OUT,Y.TARGETED_ADVERTISING_OPT_OUT,Y.SENSITIVE_DATA_PROCESSING,Y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,Y.MSPA_COVERED_TRANSACTION,Y.MSPA_OPT_OUT_OPTION_MODE,Y.MSPA_SERVICE_PROVIDER_MODE];var Et=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Da}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(Y.VERSION.toString(),new c(6,ie.VERSION)),n.put(Y.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(Y.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(Y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(Y.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(Y.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(Y.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(Y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(Y.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(Y.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(Y.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsVaCoreSegment '"+e+"'")}}};var Je=class Je extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return Je.ID}getName(){return Je.NAME}getVersion(){return Je.VERSION}initializeSegments(){let o=[];return o.push(new Et),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;ii&&e[i].decode(t[i])}return e}encodeSection(o){let e=[];for(let t=0;t=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(M.VERSION.toString(),new c(6,ne.VERSION)),n.put(M.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(M.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(M.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(M.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(M.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(M.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0]).withValidator(i)),n.put(M.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(M.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(M.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(M.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsCoCoreSegment '"+e+"'")}}};var kt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Va}initializeFields(){let e=new g;return e.put(M.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(M.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(M.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsCoGpcSegment '"+e+"'")}}};var eo=class eo extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return eo.ID}getName(){return eo.NAME}getVersion(){return eo.VERSION}initializeSegments(){let o=[];return o.push(new ft),o.push(new kt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(M.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(M.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(M.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(eo,"ID",10),r(eo,"VERSION",1),r(eo,"NAME","usco");var ne=eo;var B;(function(a){a.VERSION="Version",a.SHARING_NOTICE="SharingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(B||(B={}));var Ra=[B.VERSION,B.SHARING_NOTICE,B.SALE_OPT_OUT_NOTICE,B.TARGETED_ADVERTISING_OPT_OUT_NOTICE,B.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE,B.SALE_OPT_OUT,B.TARGETED_ADVERTISING_OPT_OUT,B.SENSITIVE_DATA_PROCESSING,B.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,B.MSPA_COVERED_TRANSACTION,B.MSPA_OPT_OUT_OPTION_MODE,B.MSPA_SERVICE_PROVIDER_MODE];var St=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ra}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(B.VERSION.toString(),new c(6,se.VERSION)),n.put(B.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(B.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(B.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(B.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(B.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(B.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(B.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(B.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(B.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(B.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(B.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsUtCoreSegment '"+e+"'")}}};var oo=class oo extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return oo.ID}getName(){return oo.NAME}getVersion(){return oo.VERSION}initializeSegments(){let o=[];return o.push(new St),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;ii&&e[i].decode(t[i])}return e}encodeSection(o){let e=[];for(let t=0;t=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(x.VERSION.toString(),new c(6,re.VERSION)),n.put(x.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(x.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(x.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(x.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(x.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(x.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(x.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0]).withValidator(i)),n.put(x.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(x.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(x.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsCtCoreSegment '"+e+"'")}}};var bt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return xa}initializeFields(){let e=new g;return e.put(x.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(x.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(x.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsCtGpcSegment '"+e+"'")}}};var to=class to extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return to.ID}getName(){return to.NAME}getVersion(){return to.VERSION}initializeSegments(){let o=[];return o.push(new wt),o.push(new bt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(x.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(x.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(x.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(to,"ID",12),r(to,"VERSION",1),r(to,"NAME","usct");var re=to;var H;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"})(H||(H={}));var Ga=[H.VERSION,H.PROCESSING_NOTICE,H.SALE_OPT_OUT_NOTICE,H.TARGETED_ADVERTISING_OPT_OUT_NOTICE,H.SALE_OPT_OUT,H.TARGETED_ADVERTISING_OPT_OUT,H.SENSITIVE_DATA_PROCESSING,H.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,H.ADDITIONAL_DATA_PROCESSING_CONSENT,H.MSPA_COVERED_TRANSACTION,H.MSPA_OPT_OUT_OPTION_MODE,H.MSPA_SERVICE_PROVIDER_MODE];var jt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ga}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(H.VERSION.toString(),new c(6,ce.VERSION)),n.put(H.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(H.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(H.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(H.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(H.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(H.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(H.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0]).withValidator(i)),n.put(H.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(H.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(H.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(H.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsFlCoreSegment '"+e+"'")}}};var ao=class ao extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return ao.ID}getName(){return ao.NAME}getVersion(){return ao.VERSION}initializeSegments(){let o=[];return o.push(new jt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");for(let i=0;ii&&e[i].decode(t[i])}return e}encodeSection(o){let e=[];for(let t=0;t=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(y.VERSION.toString(),new c(6,me.VERSION)),n.put(y.SHARING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(y.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(y.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(y.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(y.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(y.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(y.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0]).withValidator(i)),n.put(y.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(y.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(y.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(y.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsMtCoreSegment '"+e+"'")}}};var Tt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ua}initializeFields(){let e=new g;return e.put(y.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(y.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(y.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsMtGpcSegment '"+e+"'")}}};var io=class io extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return io.ID}getName(){return io.NAME}getVersion(){return io.VERSION}initializeSegments(){let o=[];return o.push(new _t),o.push(new Tt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(y.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(y.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(io,"ID",14),r(io,"VERSION",1),r(io,"NAME","usmt");var me=io;var I;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(I||(I={}));var Fa=[I.VERSION,I.PROCESSING_NOTICE,I.SALE_OPT_OUT_NOTICE,I.TARGETED_ADVERTISING_OPT_OUT_NOTICE,I.SALE_OPT_OUT,I.TARGETED_ADVERTISING_OPT_OUT,I.SENSITIVE_DATA_PROCESSING,I.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,I.ADDITIONAL_DATA_PROCESSING_CONSENT,I.MSPA_COVERED_TRANSACTION,I.MSPA_OPT_OUT_OPTION_MODE,I.MSPA_SERVICE_PROVIDER_MODE],Ba=[I.GPC_SEGMENT_TYPE,I.GPC];var Ot=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Fa}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(I.VERSION.toString(),new c(6,le.VERSION)),n.put(I.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(I.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(I.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(I.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(I.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(I.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0,0,0,0]).withValidator(i)),n.put(I.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0]).withValidator(i)),n.put(I.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(I.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(I.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(I.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsOrCoreSegment '"+e+"'")}}};var Nt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ba}initializeFields(){let e=new g;return e.put(I.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(I.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(I.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsOrGpcSegment '"+e+"'")}}};var no=class no extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return no.ID}getName(){return no.NAME}getVersion(){return no.VERSION}initializeSegments(){let o=[];return o.push(new Ot),o.push(new Nt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(I.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(I.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(I.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(no,"ID",15),r(no,"VERSION",1),r(no,"NAME","usor");var le=no;var A;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(A||(A={}));var Ha=[A.VERSION,A.PROCESSING_NOTICE,A.SALE_OPT_OUT_NOTICE,A.TARGETED_ADVERTISING_OPT_OUT_NOTICE,A.SALE_OPT_OUT,A.TARGETED_ADVERTISING_OPT_OUT,A.SENSITIVE_DATA_PROCESSING,A.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,A.ADDITIONAL_DATA_PROCESSING_CONSENT,A.MSPA_COVERED_TRANSACTION,A.MSPA_OPT_OUT_OPTION_MODE,A.MSPA_SERVICE_PROVIDER_MODE],qa=[A.GPC_SEGMENT_TYPE,A.GPC];var yt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ha}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(A.VERSION.toString(),new c(6,pe.VERSION)),n.put(A.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(A.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(A.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(A.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(A.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(A.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(A.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(A.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(A.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(A.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(A.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsTxCoreSegment '"+e+"'")}}};var It=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return qa}initializeFields(){let e=new g;return e.put(A.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(A.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(A.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsTxGpcSegment '"+e+"'")}}};var so=class so extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return so.ID}getName(){return so.NAME}getVersion(){return so.VERSION}initializeSegments(){let o=[];return o.push(new yt),o.push(new It),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(A.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(A.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(A.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(so,"ID",16),r(so,"VERSION",1),r(so,"NAME","ustx");var pe=so;var v;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(v||(v={}));var Ka=[v.VERSION,v.PROCESSING_NOTICE,v.SALE_OPT_OUT_NOTICE,v.TARGETED_ADVERTISING_OPT_OUT_NOTICE,v.SALE_OPT_OUT,v.TARGETED_ADVERTISING_OPT_OUT,v.SENSITIVE_DATA_PROCESSING,v.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,v.ADDITIONAL_DATA_PROCESSING_CONSENT,v.MSPA_COVERED_TRANSACTION,v.MSPA_OPT_OUT_OPTION_MODE,v.MSPA_SERVICE_PROVIDER_MODE],Ya=[v.GPC_SEGMENT_TYPE,v.GPC];var At=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ka}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(v.VERSION.toString(),new c(6,ue.VERSION)),n.put(v.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(v.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(v.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(v.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(v.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(v.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0,0]).withValidator(i)),n.put(v.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0,0,0]).withValidator(i)),n.put(v.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(v.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(v.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(v.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsDeCoreSegment '"+e+"'")}}};var vt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ya}initializeFields(){let e=new g;return e.put(v.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(v.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(v.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsDeGpcSegment '"+e+"'")}}};var ro=class ro extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return ro.ID}getName(){return ro.NAME}getVersion(){return ro.VERSION}initializeSegments(){let o=[];return o.push(new At),o.push(new vt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(v.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(v.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(ro,"ID",17),r(ro,"VERSION",1),r(ro,"NAME","usde");var ue=ro;var C;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SENSITIVE_DATA_OPT_OUT_NOTICE="SensitiveDataOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(C||(C={}));var Wa=[C.VERSION,C.PROCESSING_NOTICE,C.SALE_OPT_OUT_NOTICE,C.TARGETED_ADVERTISING_OPT_OUT_NOTICE,C.SENSITIVE_DATA_OPT_OUT_NOTICE,C.SALE_OPT_OUT,C.TARGETED_ADVERTISING_OPT_OUT,C.SENSITIVE_DATA_PROCESSING,C.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,C.MSPA_COVERED_TRANSACTION,C.MSPA_OPT_OUT_OPTION_MODE,C.MSPA_SERVICE_PROVIDER_MODE],$a=[C.GPC_SEGMENT_TYPE,C.GPC];var Ct=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Wa}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(C.VERSION.toString(),new c(6,de.VERSION)),n.put(C.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(C.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(C.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(C.SENSITIVE_DATA_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(C.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(C.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(C.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(C.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(C.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(C.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(C.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsIaCoreSegment '"+e+"'")}}};var zt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return $a}initializeFields(){let e=new g;return e.put(C.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(C.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(C.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsIaGpcSegment '"+e+"'")}}};var co=class co extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return co.ID}getName(){return co.NAME}getVersion(){return co.VERSION}initializeSegments(){let o=[];return o.push(new Ct),o.push(new zt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(C.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(C.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(C.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(co,"ID",18),r(co,"VERSION",1),r(co,"NAME","usia");var de=co;var z;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(z||(z={}));var Qa=[z.VERSION,z.PROCESSING_NOTICE,z.SALE_OPT_OUT_NOTICE,z.TARGETED_ADVERTISING_OPT_OUT_NOTICE,z.SALE_OPT_OUT,z.TARGETED_ADVERTISING_OPT_OUT,z.SENSITIVE_DATA_PROCESSING,z.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,z.ADDITIONAL_DATA_PROCESSING_CONSENT,z.MSPA_COVERED_TRANSACTION,z.MSPA_OPT_OUT_OPTION_MODE,z.MSPA_SERVICE_PROVIDER_MODE],Xa=[z.GPC_SEGMENT_TYPE,z.GPC];var Dt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Qa}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(z.VERSION.toString(),new c(6,ge.VERSION)),n.put(z.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(z.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(z.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(z.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(z.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(z.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(z.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(z.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(z.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(z.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(z.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNeCoreSegment '"+e+"'")}}};var Pt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Xa}initializeFields(){let e=new g;return e.put(z.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(z.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(z.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNeGpcSegment '"+e+"'")}}};var mo=class mo extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return mo.ID}getName(){return mo.NAME}getVersion(){return mo.VERSION}initializeSegments(){let o=[];return o.push(new Dt),o.push(new Pt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(z.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(z.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(mo,"ID",19),r(mo,"VERSION",1),r(mo,"NAME","usne");var ge=mo;var D;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(D||(D={}));var Za=[D.VERSION,D.PROCESSING_NOTICE,D.SALE_OPT_OUT_NOTICE,D.TARGETED_ADVERTISING_OPT_OUT_NOTICE,D.SALE_OPT_OUT,D.TARGETED_ADVERTISING_OPT_OUT,D.SENSITIVE_DATA_PROCESSING,D.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,D.ADDITIONAL_DATA_PROCESSING_CONSENT,D.MSPA_COVERED_TRANSACTION,D.MSPA_OPT_OUT_OPTION_MODE,D.MSPA_SERVICE_PROVIDER_MODE],Ja=[D.GPC_SEGMENT_TYPE,D.GPC];var Vt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Za}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(D.VERSION.toString(),new c(6,he.VERSION)),n.put(D.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(D.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(D.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(D.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(D.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(D.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(D.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0]).withValidator(i)),n.put(D.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(D.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(D.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(D.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNhCoreSegment '"+e+"'")}}};var Rt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return Ja}initializeFields(){let e=new g;return e.put(D.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(D.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(D.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNhGpcSegment '"+e+"'")}}};var lo=class lo extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return lo.ID}getName(){return lo.NAME}getVersion(){return lo.VERSION}initializeSegments(){let o=[];return o.push(new Vt),o.push(new Rt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(D.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(D.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(D.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(lo,"ID",20),r(lo,"VERSION",1),r(lo,"NAME","usnh");var he=lo;var P;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(P||(P={}));var ei=[P.VERSION,P.PROCESSING_NOTICE,P.SALE_OPT_OUT_NOTICE,P.TARGETED_ADVERTISING_OPT_OUT_NOTICE,P.SALE_OPT_OUT,P.TARGETED_ADVERTISING_OPT_OUT,P.SENSITIVE_DATA_PROCESSING,P.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,P.ADDITIONAL_DATA_PROCESSING_CONSENT,P.MSPA_COVERED_TRANSACTION,P.MSPA_OPT_OUT_OPTION_MODE,P.MSPA_SERVICE_PROVIDER_MODE],oi=[P.GPC_SEGMENT_TYPE,P.GPC];var Mt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ei}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(P.VERSION.toString(),new c(6,Ee.VERSION)),n.put(P.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(P.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(P.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(P.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(P.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(P.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0,0,0]).withValidator(i)),n.put(P.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _(2,[0,0,0,0,0]).withValidator(i)),n.put(P.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(P.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(P.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(P.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNjCoreSegment '"+e+"'")}}};var xt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return oi}initializeFields(){let e=new g;return e.put(P.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(P.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(P.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsNjGpcSegment '"+e+"'")}}};var po=class po extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return po.ID}getName(){return po.NAME}getVersion(){return po.VERSION}initializeSegments(){let o=[];return o.push(new Mt),o.push(new xt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(P.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(P.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(P.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(po,"ID",21),r(po,"VERSION",1),r(po,"NAME","usnj");var Ee=po;var V;(function(a){a.VERSION="Version",a.PROCESSING_NOTICE="ProcessingNotice",a.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",a.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",a.SALE_OPT_OUT="SaleOptOut",a.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",a.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",a.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",a.ADDITIONAL_DATA_PROCESSING_CONSENT="AdditionalDataProcessingConsent",a.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",a.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",a.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",a.GPC_SEGMENT_TYPE="GpcSegmentType",a.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",a.GPC="Gpc"})(V||(V={}));var ti=[V.VERSION,V.PROCESSING_NOTICE,V.SALE_OPT_OUT_NOTICE,V.TARGETED_ADVERTISING_OPT_OUT_NOTICE,V.SALE_OPT_OUT,V.TARGETED_ADVERTISING_OPT_OUT,V.SENSITIVE_DATA_PROCESSING,V.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS,V.ADDITIONAL_DATA_PROCESSING_CONSENT,V.MSPA_COVERED_TRANSACTION,V.MSPA_OPT_OUT_OPTION_MODE,V.MSPA_SERVICE_PROVIDER_MODE],ai=[V.GPC_SEGMENT_TYPE,V.GPC];var Gt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ti}initializeFields(){let e=new class{test(s){return s>=0&&s<=2}},t=new class{test(s){return s>=1&&s<=2}},i=new class{test(s){for(let m=0;m2)return!1}return!0}},n=new g;return n.put(V.VERSION.toString(),new c(6,fe.VERSION)),n.put(V.PROCESSING_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(V.SALE_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(V.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new c(2,0).withValidator(e)),n.put(V.SALE_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(V.TARGETED_ADVERTISING_OPT_OUT.toString(),new c(2,0).withValidator(e)),n.put(V.SENSITIVE_DATA_PROCESSING.toString(),new _(2,[0,0,0,0,0,0,0,0]).withValidator(i)),n.put(V.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new c(2,0).withValidator(e)),n.put(V.ADDITIONAL_DATA_PROCESSING_CONSENT.toString(),new c(2,0).withValidator(e)),n.put(V.MSPA_COVERED_TRANSACTION.toString(),new c(2,1).withValidator(t)),n.put(V.MSPA_OPT_OUT_OPTION_MODE.toString(),new c(2,0).withValidator(e)),n.put(V.MSPA_SERVICE_PROVIDER_MODE.toString(),new c(2,0).withValidator(e)),n}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsTnCoreSegment '"+e+"'")}}};var Lt=class extends u{constructor(e){super();r(this,"base64UrlEncoder",E.getInstance());r(this,"bitStringEncoder",d.getInstance());e&&this.decode(e)}getFieldNames(){return ai}initializeFields(){let e=new g;return e.put(V.GPC_SEGMENT_TYPE.toString(),new c(2,1)),e.put(V.GPC_SEGMENT_INCLUDED.toString(),new w(!0)),e.put(V.GPC.toString(),new w(!1)),e}encodeSegment(e){let t=this.bitStringEncoder.encode(e,this.getFieldNames());return this.base64UrlEncoder.encode(t)}decodeSegment(e,t){(e==null||e.length===0)&&this.fields.reset(t);try{let i=this.base64UrlEncoder.decode(e);this.bitStringEncoder.decode(i,this.getFieldNames(),t)}catch(i){throw new p("Unable to decode UsTnGpcSegment '"+e+"'")}}};var uo=class uo extends T{constructor(o){super(),o&&o.length>0&&this.decode(o)}getId(){return uo.ID}getName(){return uo.NAME}getVersion(){return uo.VERSION}initializeSegments(){let o=[];return o.push(new Gt),o.push(new Lt),o}decodeSection(o){let e=this.initializeSegments();if(o!=null&&o.length!==0){let t=o.split(".");t.length>0&&e[0].decode(t[0]),t.length>1?(e[1].setFieldValue(V.GPC_SEGMENT_INCLUDED,!0),e[1].decode(t[1])):e[1].setFieldValue(V.GPC_SEGMENT_INCLUDED,!1)}return e}encodeSection(o){let e=[];return o.length>=1&&(e.push(o[0].encode()),o.length>=2&&o[1].getFieldValue(V.GPC_SEGMENT_INCLUDED)===!0&&e.push(o[1].encode())),e.join(".")}};r(uo,"ID",22),r(uo,"VERSION",1),r(uo,"NAME","ustn");var fe=uo;var K=class{};r(K,"SECTION_ID_NAME_MAP",new Map([[Q.ID,Q.NAME],[ee.ID,ee.NAME],[oe.ID,oe.NAME],[te.ID,te.NAME],[ae.ID,ae.NAME],[ie.ID,ie.NAME],[ne.ID,ne.NAME],[se.ID,se.NAME],[re.ID,re.NAME],[ce.ID,ce.NAME],[me.ID,me.NAME],[le.ID,le.NAME],[pe.ID,pe.NAME],[ue.ID,ue.NAME],[de.ID,de.NAME],[ge.ID,ge.NAME],[he.ID,he.NAME],[Ee.ID,Ee.NAME],[fe.ID,fe.NAME]])),r(K,"SECTION_ORDER",[Q.NAME,ee.NAME,oe.NAME,te.NAME,ae.NAME,ie.NAME,ne.NAME,se.NAME,re.NAME,ce.NAME,me.NAME,le.NAME,pe.NAME,ue.NAME,de.NAME,ge.NAME,he.NAME,Ee.NAME,fe.NAME]);var Mo=class{constructor(o){r(this,"sections",new Map);r(this,"encodedString",null);r(this,"decoded",!0);r(this,"dirty",!1);o&&this.decode(o)}setFieldValue(o,e,t){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let i=null;if(this.sections.has(o)?i=this.sections.get(o):o===ee.NAME?(i=new ee,this.sections.set(ee.NAME,i)):o===Q.NAME?(i=new Q,this.sections.set(Q.NAME,i)):o===oe.NAME?(i=new oe,this.sections.set(oe.NAME,i)):o===te.NAME?(i=new te,this.sections.set(te.NAME,i)):o===ae.NAME?(i=new ae,this.sections.set(ae.NAME,i)):o===ie.NAME?(i=new ie,this.sections.set(ie.NAME,i)):o===ne.NAME?(i=new ne,this.sections.set(ne.NAME,i)):o===se.NAME?(i=new se,this.sections.set(se.NAME,i)):o===re.NAME?(i=new re,this.sections.set(re.NAME,i)):o===ce.NAME?(i=new ce,this.sections.set(ce.NAME,i)):o===me.NAME?(i=new me,this.sections.set(me.NAME,i)):o===le.NAME?(i=new le,this.sections.set(le.NAME,i)):o===pe.NAME?(i=new pe,this.sections.set(pe.NAME,i)):o===ue.NAME?(i=new ue,this.sections.set(ue.NAME,i)):o===de.NAME?(i=new de,this.sections.set(de.NAME,i)):o===ge.NAME?(i=new ge,this.sections.set(ge.NAME,i)):o===he.NAME?(i=new he,this.sections.set(he.NAME,i)):o===Ee.NAME?(i=new Ee,this.sections.set(Ee.NAME,i)):o===fe.NAME&&(i=new fe,this.sections.set(fe.NAME,i)),i)i.setFieldValue(e,t),this.dirty=!0,i.setIsDirty(!0);else throw new Me(o+"."+e+" not found")}setFieldValueBySectionId(o,e,t){this.setFieldValue(K.SECTION_ID_NAME_MAP.get(o),e,t)}getFieldValue(o,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).getFieldValue(e):null}getFieldValueBySectionId(o,e){return this.getFieldValue(K.SECTION_ID_NAME_MAP.get(o),e)}hasField(o,e){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).hasField(e):!1}hasFieldBySectionId(o,e){return this.hasField(K.SECTION_ID_NAME_MAP.get(o),e)}hasSection(o){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)}hasSectionId(o){return this.hasSection(K.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){!this.decoded&&this.encodedString!=null&&this.encodedString.length>0&&this.decode(this.encodedString),this.sections.delete(o),this.dirty=!0}deleteSectionById(o){this.deleteSection(K.SECTION_ID_NAME_MAP.get(o))}clear(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}getHeader(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let o=new Pe;return o.setFieldValue("SectionIds",this.getSectionIds()),o.toObj()}getSection(o){return this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0),this.sections.has(o)?this.sections.get(o).toObj():null}getSectionIds(){this.decoded||(this.sections=this.decodeModel(this.encodedString),this.dirty=!1,this.decoded=!0);let o=[];for(let e=0;e{let m=new XMLHttpRequest,l=()=>{if(m.readyState==XMLHttpRequest.DONE)if(m.status>=200&&m.status<300){let Te=m.response;if(typeof Te=="string")try{Te=JSON.parse(Te)}catch($){}n(Te)}else s(new Error(`HTTP Status: ${m.status} response type: ${m.responseType}`))},j=()=>{s(new Error("error"))},L=()=>{s(new Error("aborted"))},W=()=>{s(new Error("Timeout "+i+"ms "+o))};m.withCredentials=t,m.addEventListener("load",l),m.addEventListener("error",j),m.addEventListener("abort",L),e===null?m.open("GET",o,!0):m.open("POST",o,!0),m.responseType="json",m.timeout=i,m.ontimeout=W,m.send(e)})}static post(o,e,t=!1,i=0){return this.absCall(o,JSON.stringify(e),t,i)}static fetch(o,e=!1,t=0){return this.absCall(o,null,e,t)}};var ko=class extends Error{constructor(o){super(o),this.name="GVLError"}};var Oo=class Oo{has(o){return Oo.langSet.has(o)}forEach(o){Oo.langSet.forEach(o)}get size(){return Oo.langSet.size}};r(Oo,"langSet",new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH"]));var Ft=Oo;var No=class No{constructor(){r(this,"vendors");r(this,"consentLanguages",new Ft);r(this,"gvlSpecificationVersion");r(this,"vendorListVersion");r(this,"tcfPolicyVersion");r(this,"lastUpdated");r(this,"purposes");r(this,"specialPurposes");r(this,"features");r(this,"specialFeatures");r(this,"stacks");r(this,"dataCategories");r(this,"language",No.DEFAULT_LANGUAGE);r(this,"vendorIds");r(this,"ready",!1);r(this,"fullVendorList");r(this,"byPurposeVendorMap");r(this,"bySpecialPurposeVendorMap");r(this,"byFeatureVendorMap");r(this,"bySpecialFeatureVendorMap");r(this,"baseUrl");r(this,"languageFilename","purposes-[LANG].json")}static fromVendorList(o){let e=new No;return e.populate(o),e}static fromUrl(o){return Ao(this,null,function*(){let e=o.baseUrl;if(!e||e.length===0)throw new ko("Invalid baseUrl: '"+e+"'");if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new ko("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&e[e.length-1]!=="/"&&(e+="/");let t=new No;if(t.baseUrl=e,o.languageFilename?t.languageFilename=o.languageFilename:t.languageFilename="purposes-[LANG].json",o.version>0){let i=o.versionedFilename;i||(i="archives/vendor-list-v[VERSION].json");let n=e+i.replace("[VERSION]",String(o.version));t.populate(yield To.fetch(n))}else{let i=o.latestFilename;i||(i="vendor-list.json");let n=e+i;t.populate(yield To.fetch(n))}return t})}changeLanguage(o){return Ao(this,null,function*(){let e=o.toUpperCase();if(this.consentLanguages.has(e)){if(e!==this.language){this.language=e;let t=this.baseUrl+this.languageFilename.replace("[LANG]",o);try{this.populate(yield To.fetch(t))}catch(i){throw new ko("unable to load language: "+i.message)}}}else throw new ko(`unsupported language ${o}`)})}getJson(){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}))}isVendorList(o){return o!==void 0&&o.vendors!==void 0}populate(o){this.purposes=o.purposes,this.specialPurposes=o.specialPurposes,this.features=o.features,this.specialFeatures=o.specialFeatures,this.stacks=o.stacks,this.dataCategories=o.dataCategories,this.isVendorList(o)&&(this.gvlSpecificationVersion=o.gvlSpecificationVersion,this.tcfPolicyVersion=o.tcfPolicyVersion,this.vendorListVersion=o.vendorListVersion,this.lastUpdated=o.lastUpdated,typeof this.lastUpdated=="string"&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=o.vendors,this.fullVendorList=o.vendors,this.mapVendors(),this.ready=!0)}mapVendors(o){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,impCons:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(o)||(o=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(o),this.vendors=o.reduce((e,t)=>{let i=this.vendors[String(t)];return i&&i.deletedDate===void 0&&(i.purposes.forEach(n=>{this.byPurposeVendorMap[String(n)].consent.add(t)}),i.specialPurposes.forEach(n=>{this.bySpecialPurposeVendorMap[String(n)].add(t)}),i.legIntPurposes&&i.legIntPurposes.forEach(n=>{this.byPurposeVendorMap[String(n)].legInt.add(t)}),i.impConsPurposes&&i.impConsPurposes.forEach(n=>{this.byPurposeVendorMap[String(n)].impCons.add(t)}),i.flexiblePurposes&&i.flexiblePurposes.forEach(n=>{this.byPurposeVendorMap[String(n)].flexible.add(t)}),i.features.forEach(n=>{this.byFeatureVendorMap[String(n)].add(t)}),i.specialFeatures.forEach(n=>{this.bySpecialFeatureVendorMap[String(n)].add(t)}),e[t]=i),e},{})}getFilteredVendors(o,e,t,i){let n=o.charAt(0).toUpperCase()+o.slice(1),s,m={};return o==="purpose"&&t?s=this["by"+n+"VendorMap"][String(e)][t]:s=this["by"+(i?"Special":"")+n+"VendorMap"][String(e)],s.forEach(l=>{m[String(l)]=this.vendors[String(l)]}),m}getVendorsWithConsentPurpose(o){return this.getFilteredVendors("purpose",o,"consent")}getVendorsWithLegIntPurpose(o){return this.getFilteredVendors("purpose",o,"legInt")}getVendorsWithFlexiblePurpose(o){return this.getFilteredVendors("purpose",o,"flexible")}getVendorsWithSpecialPurpose(o){return this.getFilteredVendors("purpose",o,void 0,!0)}getVendorsWithFeature(o){return this.getFilteredVendors("feature",o)}getVendorsWithSpecialFeature(o){return this.getFilteredVendors("feature",o,void 0,!0)}narrowVendorsTo(o){this.mapVendors(o)}get isReady(){return this.ready}static isInstanceOf(o){return typeof o=="object"&&typeof o.narrowVendorsTo=="function"}};r(No,"DEFAULT_LANGUAGE","EN");var xo=No;var Bt=class{constructor(o,e,t){r(this,"callResponder");r(this,"cmpApiContext");this.cmpApiContext=new Ut,this.cmpApiContext.cmpId=o,this.cmpApiContext.cmpVersion=e,this.callResponder=new Wo(this.cmpApiContext,t)}fireEvent(o,e){this.cmpApiContext.eventQueue.exec(o,e)}fireErrorEvent(o){this.cmpApiContext.eventQueue.exec("error",o)}fireSectionChange(o){this.cmpApiContext.eventQueue.exec("sectionChange",o)}getEventStatus(){return this.cmpApiContext.eventStatus}setEventStatus(o){this.cmpApiContext.eventStatus=o}getCmpStatus(){return this.cmpApiContext.cmpStatus}setCmpStatus(o){this.cmpApiContext.cmpStatus=o,this.cmpApiContext.eventQueue.exec("cmpStatus",o)}getCmpDisplayStatus(){return this.cmpApiContext.cmpDisplayStatus}setCmpDisplayStatus(o){this.cmpApiContext.cmpDisplayStatus=o,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",o)}getSignalStatus(){return this.cmpApiContext.signalStatus}setSignalStatus(o){this.cmpApiContext.signalStatus=o,this.cmpApiContext.eventQueue.exec("signalStatus",o)}getApplicableSections(){return this.cmpApiContext.applicableSections}setApplicableSections(o){this.cmpApiContext.applicableSections=o}getSupportedAPIs(){return this.cmpApiContext.supportedAPIs}setSupportedAPIs(o){this.cmpApiContext.supportedAPIs=o}setGppString(o){this.cmpApiContext.gppModel.decode(o)}getGppString(){return this.cmpApiContext.gppModel.encode()}setSectionString(o,e){this.cmpApiContext.gppModel.decodeSection(o,e)}setSectionStringById(o,e){this.setSectionString(K.SECTION_ID_NAME_MAP.get(o),e)}getSectionString(o){return this.cmpApiContext.gppModel.encodeSection(o)}getSectionStringById(o){return this.getSectionString(K.SECTION_ID_NAME_MAP.get(o))}setFieldValue(o,e,t){this.cmpApiContext.gppModel.setFieldValue(o,e,t)}setFieldValueBySectionId(o,e,t){this.setFieldValue(K.SECTION_ID_NAME_MAP.get(o),e,t)}getFieldValue(o,e){return this.cmpApiContext.gppModel.getFieldValue(o,e)}getFieldValueBySectionId(o,e){return this.getFieldValue(K.SECTION_ID_NAME_MAP.get(o),e)}getSection(o){return this.cmpApiContext.gppModel.getSection(o)}getSectionById(o){return this.getSection(K.SECTION_ID_NAME_MAP.get(o))}hasSection(o){return this.cmpApiContext.gppModel.hasSection(o)}hasSectionId(o){return this.hasSection(K.SECTION_ID_NAME_MAP.get(o))}deleteSection(o){this.cmpApiContext.gppModel.deleteSection(o)}deleteSectionById(o){this.deleteSection(K.SECTION_ID_NAME_MAP.get(o))}clear(){this.cmpApiContext.gppModel.clear()}getObject(){return this.cmpApiContext.gppModel.toObject()}getGvlFromVendorList(o){return xo.fromVendorList(o)}getGvlFromUrl(o){return Ao(this,null,function*(){return xo.fromUrl(o)})}};var ii=["SharingNotice","SaleOptOutNotice","ProcessingNotice","SharingOptOutNotice","SensitiveDataLimitUseNotice","TargetedAdvertisingOptOutNotice","SensitiveDataOptOutNotice","SensitiveDataProcessingOptOutNotice","TargetedAdvertisingOptOut","SaleOptOut","SharingOptOut","SensitiveDataProcessing","KnownChildSensitiveDataConsents","PersonalDataConsents","AdditionalDataProcessingConsent","MspaCoveredTransaction","MspaOptOutOptionMode","MspaServiceProviderMode"];function Di(a,o){let e=o.getComputedStyle(a).position;if(e==="absolute"||e==="fixed")return!1;let t=a.getBoundingClientRect();return t.width>0&&t.height>0}function ni(a,o=document,e=window){let t=()=>{if(a.parentElement!==o.body)return!1;let i=Array.from(o.body.children),n=i.indexOf(a);return i.slice(n+1).some(m=>Di(m,e))?(o.body.appendChild(a),!0):!1};if(typeof e.MutationObserver=="function"){let i=new e.MutationObserver(n=>{if(a.parentElement!==o.body){i.disconnect();return}n.some(m=>Array.from(m.addedNodes).some(l=>l!==a))&&t()});return i.observe(o.body,{childList:!0}),t(),()=>i.disconnect()}return o.readyState==="complete"?(t(),()=>{}):(e.addEventListener("load",t,{once:!0}),()=>e.removeEventListener("load",t))}var Go=".ez-do-not-sell";function Pi(a){if(a==null||a==="")return!1;let o=Number(a);return Number.isFinite(o)&&o<=0}function Vi(a){return a?a.display==="none"||a.visibility==="hidden"||Pi(a.opacity):!1}function Ri(a){return!!(a.hidden||typeof a.getAttribute=="function"&&a.getAttribute("aria-hidden")==="true")}function Mi(a,o){let e=o.innerWidth;return typeof e!="number"||e<=0?!1:a.right<=0||a.left>=e}function xi(a,o){if(!a||typeof a.matches!="function"||!a.matches(Go))return!1;for(let t=a;t;t=t.parentElement)if(Ri(t)||Vi(o.getComputedStyle(t)))return!1;if(typeof a.getBoundingClientRect!="function")return!1;let e=a.getBoundingClientRect();return!(e.width<=0||e.height<=0||Mi(e,o))}function Qt(a,o){return Array.from(a.querySelectorAll(Go)).some(e=>xi(e,o))}function Gi(a){if(typeof a.removeProperty=="function"){a.removeProperty("display");return}a.display==="none"&&(a.display="")}function Li(a){if(typeof a.setProperty=="function"){a.setProperty("display","revert");return}a.display="revert"}function Ui(a,o){if(!a.style||typeof o.getComputedStyle!="function")return;let e=o.getComputedStyle(a);if(!e||e.display!=="none")return;Gi(a.style);let t=o.getComputedStyle(a);t&&t.display==="none"&&Li(a.style)}function si(a,o){if(!(!a||typeof a.querySelectorAll!="function"))for(let e of a.querySelectorAll(Go))Ui(e,o)}function Fi(a){return a?typeof a.closest=="function"?a.closest(Go):typeof a.matches=="function"&&a.matches(Go)?a:null:null}function Bi(a,o){let e=t=>{Fi(t.target)&&(typeof t.preventDefault=="function"&&t.preventDefault(),o())};return a.addEventListener("click",e),()=>a.removeEventListener("click",e)}function ri(a,o,{scriptSuppressed:e,openModal:t,showBanner:i}){si(a,o);let n=Qt(a,o),s=null;if(!e&&!n&&(s=i()),Bi(a,t),!s||typeof s.stop!="function"||!s.element)return;let m=()=>{};m=Hi(a,o,()=>{m(),s.stop(),typeof s.element.remove=="function"&&s.element.remove()}),typeof s.setOnDismiss=="function"&&s.setOnDismiss(m)}function Hi(a,o,e){if(Qt(a,o))return e(),()=>{};if(typeof o.MutationObserver!="function"||!a.body)return()=>{};let t=!1,i=new o.MutationObserver(()=>{t||(si(a,o),Qt(a,o)&&(t=!0,i.disconnect(),e()))});return i.observe(a.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style","hidden"]}),()=>{t=!0,i.disconnect()}}function ci(a){let o=a.googletag=a.googletag||{};o.cmd=o.cmd||[],o.cmd.push(()=>{o.pubads().setPrivacySettings({restrictDataProcessing:!0})})}function mi(a,o){if(!o||o==="usca")return!1;try{return a(o,"SaleOptOut")===1&&a(o,"TargetedAdvertisingOptOut")===2}catch(e){return!1}}var qi=["SaleOptOut","SharingOptOut","TargetedAdvertisingOptOut"];function Ht(a){return(a==null?void 0:a.globalPrivacyControl)===!0}var qt="gppGpcConsent";function li(a,o,e,t){return e!==!0?{consent:a,gpcField:e===!1?!1:void 0}:t?{consent:a,gpcField:!1}:{consent:o,gpcField:!0}}function pi(a,o,e){if(!e||!o)return!1;for(let[t,i]of[["Gpc",!0],...qi.map(n=>[n,1])]){let n;try{n=a(o,t)}catch(s){continue}if(n!==i)return!0}return!1}var Ki=[{name:"consent-tracking-api",version:"0.1"}],Yi='form[action$="/dns_opt_out"] button[type="submit"], form[action$="/dns_opt_out"] input[type="submit"]';function Wi(a){var e;let o=(e=a==null?void 0:a.Shopify)==null?void 0:e.customerPrivacy;return o&&typeof o.setTrackingConsent=="function"&&typeof o.currentVisitorConsent=="function"?o:null}function $i(a){var o;try{return(o=a.currentVisitorConsent())==null?void 0:o.sale_of_data}catch(e){return}}function yo(a,o){try{a.setTrackingConsent({sale_of_data:o},function(){})}catch(e){console.error("\u274C Failed to set Shopify sale_of_data:",e)}}function ui(a,o){let e=null,t,i=!1,n=0;function s(){o.isOptedOut()||o.optOut()}function m(){var L;let j=$i(e);t!==void 0?yo(e,t):o.isOptedOut()?j!=="no"&&yo(e,!1):(L=o.hasGpc)!=null&&L.call(o)?j!=="yes"&&yo(e,!0):j==="no"&&s();try{a.document.addEventListener("visitorConsentCollected",function(W){var Te,$;((Te=W==null?void 0:W.detail)==null?void 0:Te.saleOfDataAllowed)===!1&&(($=o.hasGpc)!=null&&$.call(o)?o.isOptedOut()||yo(e,!0):s())})}catch(W){console.error("\u274C Failed to listen for Shopify consent:",W)}}try{a.document.addEventListener("click",function(j){var L;typeof((L=j==null?void 0:j.target)==null?void 0:L.closest)=="function"&&j.target.closest(Yi)&&(s(),e&&yo(e,!1))},!0)}catch(j){console.error("\u274C Failed to listen for the Shopify opt-out form:",j)}function l(){if(e=Wi(a),e){m();return}let j=a==null?void 0:a.Shopify;if(j&&!i&&typeof j.loadFeatures=="function"){i=!0;try{j.loadFeatures(Ki,function(){})}catch(L){console.error("\u274C Failed to load Shopify's Customer Privacy API:",L)}}n<5e3&&(n+=100,setTimeout(l,100))}return l(),{pushChoice(j){e?yo(e,j):t=j}}}var nn=fi(),sn=1,Se=new Bt(ua,sn),ki=document.currentScript,Zt={CA:{id:8,prefix:"usca",name:"California"},CO:{id:10,prefix:"usco",name:"Colorado"},CT:{id:12,prefix:"usct",name:"Connecticut"},VA:{id:9,prefix:"usva",name:"Virginia"},UT:{id:11,prefix:"usut",name:"Utah"},FL:{id:13,prefix:"usfl",name:"Florida"},MT:{id:14,prefix:"usmt",name:"Montana"},OR:{id:15,prefix:"usor",name:"Oregon"},TX:{id:16,prefix:"ustx",name:"Texas"},DE:{id:17,prefix:"usde",name:"Delaware"},IA:{id:18,prefix:"usia",name:"Iowa"},NE:{id:19,prefix:"usne",name:"Nebraska"},NH:{id:20,prefix:"usnh",name:"New Hampshire"},NJ:{id:21,prefix:"usnj",name:"New Jersey"},TN:{id:22,prefix:"ustn",name:"Tennessee"}};function rn(a){let o=new URL(a).hostname;return nn.parse(o).domain}function Yt(a){return Zt[a]||Zt.DEFAULT}function oa(a){try{let e=Yt(a).prefix,t=!1,i=!1,n=!1;try{t=Se.getFieldValue(e,"SaleOptOut")==!0}catch(s){console.log(`Field 'SaleOptOut' not available for ${e}: ${s.message}`)}try{i=Se.getFieldValue(e,"SharingOptOut")==!0}catch(s){console.log(`Field 'SharingOptOut' not available for ${e}: ${s.message}`)}try{n=Se.getFieldValue(e,"TargetedAdvertisingOptOut")==!0}catch(s){console.log(`Field 'TargetedAdvertisingOptOut' not available for ${e}: ${s.message}`)}return console.log(`Checking opt-out status: SaleOptOut=${t}, SharingOptOut=${i}, TargetedAdvertisingOptOut=${n}`),t||i||n}catch(o){return console.error("Failed to check opt-out status:",o),!1}}function wi(){return ia(qt)==="1"}function bi(){return Ht(navigator)&&!wi()}function ta(a){a?Ht(navigator)&&Jt(qt,"1"):Jt(qt,"",-1)}var aa={pushChoice(){}};function cn(a){ta(!1),Uo(consentOptions.REJECT,a)}function ji(a){(oa(a)||bi())&&ci(window)}function Jt(a,o,e=365){let t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);let i="expires="+t.toUTCString();document.cookie=a+"="+o+";"+i+";path=/;SameSite=Lax"}function ia(a){let o=a+"=",e=document.cookie.split(";");for(let t=0;tSe.getFieldValue(s,m),n=(t=Yt(a))==null?void 0:t.prefix;pi(i,n,bi())||mi(i,n)?Uo(consentOptions.REJECT,a):ji(a)}else console.log("\u2139\uFE0F No stored consent found. Showing consent UI."),Uo(consentOptions.DEFAULT,userState);Se.setApplicableSections([Yt(a).id]),Se.setSignalStatus("ready"),Se.setCmpStatus("loaded"),Se.setEventStatus("gpploaded"),aa=ui(window,{isOptedOut:()=>oa(a),optOut:()=>cn(a),hasGpc:()=>Ht(navigator)});let e=function(){let i=!!(ki&&ki.dataset.ezGppSuppressBanner==="true");ri(document,window,{scriptSuppressed:i,openModal:()=>ea(a),showBanner:()=>{let n=pn(a),s=document.getElementById("ez-ccpa-reject-all");return s&&s.addEventListener("click",()=>{ea(a)}),n}})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e(),window.__gpp("addEventListener",(i,n)=>{n?(console.log("\u2705 GPP Consent Updated:",i),_i(i.pingData.gppString)):console.error("\u274C Failed to receive GPP event data.")})}function pn(a){if(document.querySelector("[data-ezoic-role='privacy-policy']"))return console.log("Privacy policy modal already exists in the document, not adding another one"),null;let e=document.createElement("div");e.style.gridColumn="1 / -1",e.innerHTML=`

Privacy Preferences

We and our partners share information on your use of this website to help improve your experience. For more information, or to opt out click the Do Not Sell My Information button below.

`,document.body.appendChild(e);let t=ni(e),i={fn:()=>{}};return document.getElementById("ez-ccpa-accept-all").onclick=function(){i.fn(),ta(!0),aa.pushChoice(!0),Uo(consentOptions.CONSENT,a),Se.setEventStatus("useractioncomplete"),t(),e.remove()},{element:e,stop:t,setOnDismiss(n){i.fn=n}}}var Si=!1;function ea(a){let o=document.getElementById("ezgpp-modal");if(o){o.style.display="block",document.getElementById("ezgpp-modal-overlay").style.display="block";return}let e=document.createElement("div"),t=Zt[a].name,i=`
×

Privacy Settings

{{STATE}} residents may opt out of the sale and sharing of their personal information (as those terms are defined by applicable {{STATE}} law). Additional information about these opt-out rights is available in our Privacy Policy, which describes how {{ENTITY_NAME}} ("we," "us," or "our") process your personal information.

As we detail further in our Privacy Policy, we "sell" personal information or "share" personal information for cross-context behavioral advertising purposes to deliver targeted advertising on the Services or other services, or to optimize or measure the performance of such advertisements. Note that if you choose to opt out of the sale or sharing of your personal information, you will be opting out of this personalized advertising.

Opting out of the sale or sharing of your personal information, in the context of advertising, hinders our ability to drive advertising revenue. This revenue allows us to consistently deliver the content that we provide to you.

If you are a {{STATE}} resident and you would like to proceed with opting out of the sale and sharing of your personal information by us to third parties (and as a result, opt out of third-party personalized advertising), please use the following controls:

Do not sell or share my information

Please note that if you have a legally-recognized browser-based opt-out preference signal turned on via your device browser (such as Global Privacy Control), we recognize such preference in accordance and to the extent required by applicable law.

Your preferences will be stored in a browser cookie, and will only be valid for the lifetime of the cookie. You may adjust these settings at any time as necessary. If your browser blocks cookies, your opt-out preference may not be effective. If you delete cookies, you may also be deleting your opt-out preference, so you should visit these pages periodically to review your preferences or to update your choices.

Even if you opt out using the above mechanisms, we may still deliver contextual advertising, use information for non-targeted advertising purposes such as analytics, measurement, and attribution, and conduct cross-device tracking to provide first-party advertisements directly to you. Further, we may also still disclose some of your information to our service providers to provide services on our behalf, such as fraud prevention, providing analytics and aggregate statistics, and similar services that do not involve the sale or sharing of your personal information.

These rights only apply to {{STATE}} residents, and if we reasonably believe that you are not a {{STATE}} resident, you may not exercise these rights.

`.replace(/{{STATE}}/g,t),n=rn(window.location.href);i=i.replace(/{{ENTITY_NAME}}/g,n),e.innerHTML=i;let s=document.createElement("style");s.innerHTML=`.ezgpp-modal { display: none; /* Hidden by default */ position: fixed; z-index: 1000; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80vw; /* 80% of viewport width */ max-width: 800px; /* Limits width on larger screens */ height: auto; /* Adapts to content */ max-height: 60vh; /* Prevents the modal from exceeding 60% of screen height */ overflow-y: auto; /* Enables scrolling if content is taller than 60vh */ background-color: white; padding: 30px; border-radius: 15px; box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; justify-content: center; } /* Modal Background Overlay */ .ezgpp-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; } .ezgpp-modal-content { background: white; padding: 20px; border-radius: 15px; width: 100%; /* Ensures content adapts to modal size */ text-align: center; box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); color: #333333; } /* Close button */ .ezgpp-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; } /* NEW: Distinct container for settings section */ .ezgpp-setting { padding: 15px; border: 1px solid #ddd; border-radius: 10px; background-color: #f9f9f9; margin-bottom: 15px; } /* Spacing for better readability */ .ezgpp-slider-container { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; } /* CHANGED: Make label more prominent */ .ezgpp-slider-label { flex-grow: 1; text-align: left; font-size: 16px; font-weight: bold; } /* Toggle switches adjust to screen size */ .ezgpp-slider-toggle { width: 50px; height: 25px; position: relative; } .ezgpp-slider-toggle input { display: none; } .ezgpp-slider-toggle label { display: block; width: 50px; height: 25px; background: gray; border-radius: 25px; position: relative; cursor: pointer; } .ezgpp-slider-toggle label:after { content: ""; width: 20px; height: 20px; background: white; border-radius: 50%; position: absolute; top: 2.5px; left: 2.5px; transition: 0.3s; } .ezgpp-slider-toggle input:checked + label { background: green; } .ezgpp-slider-toggle input:checked + label:after { left: 27px; } /* NEW: Description styling for clarity */ .ezgpp-description { font-size: 14px; color: #555; margin-top: 8px; } /* \u{1F4F1} Mobile Optimization */ @media (max-width: 600px) { .ezgpp-modal { width: 90vw; /* Increase width for better mobile fit */ max-width: 95%; /* Prevents going off screen */ padding: 20px; } .ezgpp-close { top: 10px; right: 15px; font-size: 24px; } .ezgpp-slider-label { font-size: 14px; /* Smaller font for mobile */ font-weight: bold; /* keep it bold on mobile too */ } .ezgpp-slider-toggle { width: 40px; height: 20px; } .ezgpp-slider-toggle label { width: 40px; height: 20px; } .ezgpp-slider-toggle label:after { width: 16px; height: 16px; top: 2px; left: 2px; } .ezgpp-slider-toggle input:checked + label:after { left: 22px; } } .ezgpp-save-button { display: block; width: 100%; padding: 12px; margin-top: 20px; background-color: #007BFF; color: white; font-size: 16px; font-weight: bold; text-align: center; border: none; border-radius: 8px; cursor: pointer; transition: background 0.3s ease; } .ezgpp-save-button:hover { background-color: #0056b3; } /* CUSTOM SCROLLBAR STYLING */ /* For WebKit browsers (Chrome, Edge, Safari) */ .ezgpp-modal::-webkit-scrollbar { width: 8px; } .ezgpp-modal::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } .ezgpp-modal::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; } .ezgpp-modal::-webkit-scrollbar-thumb:hover { background: #555; } /* For Firefox */ .ezgpp-modal { scrollbar-width: thin; scrollbar-color: #888 #f1f1f1; } `,document.body.appendChild(e),document.body.appendChild(s),document.getElementById("ezgpp-modal").style.display="block",document.getElementById("ezgpp-modal-overlay").style.display="block",setTimeout(()=>{let L=document.getElementById("ezgpp-toggle1");if(L){let W=oa(a);console.log(`Setting initial toggle state: ${W}`),L.checked=W}else console.error("Toggle element not found in DOM")},50);let m=document.getElementById("ezgpp-modal"),l=document.getElementById("ezgpp-modal-overlay"),j=document.getElementById("ezgpp-close-modal");document.querySelector(".ezgpp-modal-content").addEventListener("click",function(L){L.stopPropagation()}),j.addEventListener("click",()=>{m.style.display="none",l.style.display="none"}),l.addEventListener("click",()=>{m.style.display="none",l.style.display="none"}),document.addEventListener("keydown",L=>{L.key==="Escape"&&(m.style.display="none",l.style.display="none")}),Si||(Si=!0,document.getElementById("ezgpp-save-settings").addEventListener("click",()=>{let L=document.getElementById("ezgpp-toggle1");if(!L){console.error("Toggle element not found on save");return}let W=L.checked;console.log(`Save button clicked. Toggle state: ${W}`);let Te;W?(Te=consentOptions.REJECT,console.log("\u2705 User opted out of selling/sharing information")):(Te=consentOptions.CONSENT,console.log("\u2705 User consented to selling/sharing information")),ta(!W),aa.pushChoice(!W),Uo(Te,a),Se.setEventStatus("useractioncomplete"),m.style.display="none",l.style.display="none";let $=document.createElement("div");$.style.position="fixed",$.style.bottom="20px",$.style.left="50%",$.style.transform="translateX(-50%)",$.style.padding="10px 20px",$.style.backgroundColor="#4CAF50",$.style.color="white",$.style.borderRadius="4px",$.style.zIndex="1000",$.textContent="Your privacy settings have been saved.",document.body.appendChild($),setTimeout(()=>{$.remove()},3e3)}))}window.ezGPPEnabled=!0;window.ezGPPOpenModal=function(){ea(userState)};ln(userState);})();