btloader.com Open in urlscan Pro
2606:4700:10::6816:4ad8  Public Scan

Submitted URL: https://btloader.com/tag?o=5097926782615552&upapi=true
Effective URL: https://btloader.com/tag?o=5097926782615552
Submission: On August 13 via manual from FR — Scanned from FR

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.apply(this,arguments)};function t(e,t,n,s){return new(n||(n=Promise))((function(r,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))}function n(e,t){var n,s,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(r=2&i[0]?s.return:i[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,i[1])).done)return r;switch(s=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,s=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],s=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var s="https://ad-delivery.net/px.gif?ch=2",r="https://ad.doubleclick.net/favicon.ico?ad=300x250&ad_box_=1&adnet=1&showad=1&size=250x250",i="https://ad-delivery.net/px.gif?ch=1&e="+Math.random();function o(e,t){return void 0===t&&(t="img"),new Promise((function(n){var s=document.createElement(t);s.style.setProperty("display","none","important"),s.style.setProperty("width","1px","important"),s.style.setProperty("height","1px","important");var r=!1;function i(e){r||(r=!0,n(e))}s.addEventListener("error",(function(e){i(!0)})),s.addEventListener("load",(function(e){i(!1)})),s.src=e,(window.document.body||window.document.documentElement).appendChild(s)}))}function a(){return t(this,void 0,void 0,(function(){var e,t,i,a,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),window.__bt=window.__bt||{},"function"!=typeof window.__bt.customDetectAdBlock?[3,2]:[4,window.__bt.customDetectAdBlock()];case 1:return[2,n.sent()];case 2:return[3,4];case 3:return e=n.sent(),console.log("Error in customDetectAdblock:",e),[3,4];case 4:return[4,Promise.all([o(s),o(r)])];case 5:return t=n.sent(),i=t[0],a=t[1],c=function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="ad_row adbannertop ad-mobile ad_sidebar adpopup boxad contentAd",e.setAttribute("id","bt-bait-element"),e.style.cssText="width: 1px !important; height: 1px !important; position: absolute !important; left: -5000px !important; top: -5000px !important;";try{(window.document.body||window.document.documentElement).appendChild(e);var t=document.getElementById("bt-bait-element");if(0===t.offsetHeight||0===t.clientHeight)return l(e),!0;if(void 0!==window.getComputedStyle){var n=window.getComputedStyle(t,null);if(n&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))return l(e),!0}}catch(t){return l(e),null}return l(e),!1}(),[2,i?c||a:c&&a]}}))}))}function c(e){return void 0===e&&(e=i),t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,o(e)];case 1:return[2,!t.sent()]}}))}))}function l(e){(window.document.body||window.document.documentElement).removeChild(e)}var u=function(){var e=window;try{if(top.document)return top}catch(e){}try{for(;e.parent.document;)e=e.parent}catch(e){}return e}();var d=function(){try{return""!==document.location.hostname&&document.location.hostname!==window.parent.location.hostname}catch(e){return!0}}();function p(){try{return new URL(d?u.document.referrer:u.location.href)}catch(e){return new URL(u.location.href)}}var h=p();function g(e){if(d){var t=u.sessionStorage.getItem(e);if("BT_pvSent"===e){var n=void 0;try{n=JSON.parse(t)}catch(e){}return m(n)?n:{}}return t}}function v(e,t){if(d){var n=void 0;if("BT_pvSent"===e)m(t)&&(n=JSON.stringify(t));else n=t;n&&"string"==typeof n&&u.sessionStorage.setItem(e,n)}}function m(e){return e&&"object"==typeof e&&!Array.isArray(e)}function f(e){return Math.floor(Math.random()*Math.floor(e))}function b(e){return f(100)<e}var w,y,_,S,I,E,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function L(e,t){return function(e,t,n){if(!e||"number"!=typeof t||"number"!=typeof n||t<=0||n<=0||t>n)throw new TypeError;for(var s=Math.floor(Math.random()*(n+1-t))+t,r="",i=0;i<s;i++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}(C,e,t)}y="5097926782615552",_="btloader.com",S="api.btloader.com",I="2.1.48";try{E={"org":{"enabled":false,"logo":"","name":"","view":"","single_click_enabled":false,"page_views_to_render":"0","premium_bypass_mode_enabled":false,"hard_message_wall_mode_enabled":false,"allow_render_to_aa_users":false,"landing_text_en":"","cta_button_color":"","font_type":"","render_interval_days":0,"country_code_mode":"disabled","country_code_list":[],"script_loading_mode":"inject_from_tag_script","title":"","render_mode":"always","api_mode":"wait","custom_cta_modal":null,"allowlisted_urls":[],"adaptive_hard_message_wall_mode_enabled":false,"custom_css":"","i18n":{}},"websites":{},"script":"https://cdn.btmessage.com/script/rlink.js?o=5097926782615552"}}catch(e){console.error("Error parsing RL settings",e),E={script:"",org:{enabled:!1,script_loading_mode:"inject_from_tag_script",allow_render_to_aa_users:!1}}}var A={"aipx.com":{"ce":false,"me":false,"w":"5083156860633088","widget":false,"a":false},"allyouwant.com":{"ce":false,"me":false,"w":"5106035681656832","widget":false,"a":false},"birthday.co":{"ce":false,"me":false,"w":"5072741632049152","widget":false,"a":false},"calcio.ca":{"ce":false,"me":false,"w":"5072163824730112","widget":false,"a":false},"cashbackmonster.com":{"ce":false,"me":false,"w":"5186698992680960","widget":false,"a":false},"descargasfull.com":{"ce":false,"me":false,"w":"5095027210715136","widget":false,"a":false},"doglinks.com":{"ce":false,"me":false,"w":"5204861134307328","widget":false,"a":false},"footballticket.net":{"ce":false,"me":false,"w":"5188693627502592","widget":false,"a":false},"nyeda.com":{"ce":false,"me":false,"w":"5114629441454080","widget":false,"a":false},"oscn.com":{"ce":false,"me":false,"w":"5181485573472256","widget":false,"a":false},"photochronicles.com":{"ce":false,"me":false,"w":"5075031453597696","widget":false,"a":false},"seaart.com":{"ce":false,"me":false,"w":"5082870037348352","widget":false,"a":false},"supernetforme.com":{"ce":false,"me":false,"w":"5097021845536768","widget":false,"a":false},"superwebbysearch.com":{"ce":false,"me":false,"w":"5206133610643456","widget":false,"a":false},"usehacks.com":{"ce":false,"me":false,"w":"5161690538180608","widget":false,"a":false}},O=new Proxy(new URLSearchParams(window.location.search),{get:function(e,t){return e.get(t)}});!function(){var e="BT_pvSent",t="BT_traceID";d?u.addEventListener("unload",(function(){u.sessionStorage.removeItem(e),u.sessionStorage.removeItem(t)})):(u.sessionStorage.removeItem(e),u.sessionStorage.removeItem(t))}();var R=(null===(w=u.__bt_intrnl)||void 0===w?void 0:w.traceID)||g("BT_traceID")||L(8,10);v("BT_traceID",R);var D=u.sessionStorage.getItem("BT_sid");D||(D=L(8,10),u.sessionStorage.setItem("BT_sid",D));var T={traceID:R,sessionID:D};var V,P,k,x,N=function(){var e,s,r,i,o,a,c,l,d;return t(this,void 0,void 0,(function(){var t,p,g,v,m,f,w,C,L,R,D,V,P,k,x;return n(this,(function(n){switch(n.label){case 0:if(t={websiteID:void 0,contentEnabled:!1,mobileContentEnabled:!1,widget:!1},p=function(e,t){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},g=function(){try{if(window.__bt=window.__bt||{},"function"==typeof window.__bt.customDetectDomain)return window.__bt.customDetectDomain()}catch(e){}}()||function(){var e,t=h.hostname;try{if("disqusservice.com"===t){var n=u.location.href;t=(null!=(e=p("sourceUrl",n).match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i))&&e.length>2&&"string"==typeof e[2]&&e[2].length>0?e[2]:null)+"-disqus"}}catch(e){t=u.location.hostname}return 0===t.indexOf("www.")&&(t=t.replace("www.","")),t}(),v=!1,0!==Object.keys(A).length)return[3,5];(m=new URL("https://"+_+"/websiteconfig")).searchParams.set("bt_env",O.bt_env||"prod"),m.searchParams.set("o",y),m.searchParams.set("w",g),n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(m.toString())];case 2:if(!(f=n.sent()).ok)throw new Error;return[4,f.json()];case 3:return w=n.sent(),t.websiteID=w.tagData.w,t.contentEnabled=w.tagData.ce,t.mobileContentEnabled=w.tagData.me,t.widget=null!==(e=w.tagData.widget)&&void 0!==e&&e,[2,{siteInfo:t,bundleData:w.bundleData,rlSettings:w.messageWall,checksum:w.checksum}];case 4:return n.sent(),[3,5];case 5:if(g&&g in A)L=A[g],t.websiteID=null!==(s=L.w)&&void 0!==s?s:L.website_id,t.contentEnabled=null!==(r=L.ce)&&void 0!==r?r:L.content_enabled,t.mobileContentEnabled=null!==(i=L.me)&&void 0!==i?i:L.mobile_content_enabled,t.widget=null!==(o=L.widget)&&void 0!==o&&o,v=!0;else for(C in A)(g.indexOf(C.toLowerCase())>-1||u.location.hostname.indexOf(C.toLowerCase())>-1)&&(v=!0,L=A[C],t.websiteID=null!==(a=L.w)&&void 0!==a?a:L.website_id,t.contentEnabled=null!==(c=L.ce)&&void 0!==c?c:L.content_enabled,t.mobileContentEnabled=null!==(l=L.me)&&void 0!==l?l:L.mobile_content_enabled,t.widget=null!==(d=L.widget)&&void 0!==d&&d);if(v)return R=function(e){var t;return(null===(t=null==E?void 0:E.websites)||void 0===t?void 0:t[e])||(null==E?void 0:E.org)}(t.websiteID),[2,{siteInfo:t,rlSettings:R}];if(b(1)){if(D={domain:g,orgID:parseInt(y)},V=void 0,window.TextEncoder)V=(new window.TextEncoder).encode(JSON.stringify(D)).buffer;else{for(P=unescape(encodeURIComponent(JSON.stringify(D))),k=new Uint8Array(P.length),x=0;x<P.length;x++)k[x]=P.charCodeAt(x);V=k.buffer}!function(e,t){new Promise((function(n,s){var r=new window.XMLHttpRequest;r.open("POST",e,!0),r.onerror=function(){s("Error in get request")},r.onload=function(){n(r.responseText)},r.send(t)}))}("https://"+S+"/events/unknown_domains?upapi=true&tid="+encodeURIComponent(T.traceID)+"&cv="+encodeURIComponent(I),V)}return[2,{siteInfo:t}]}}))}))}();function U(){return N}N.then((function(e){window.__bt_tag_d={orgID:y,domain:_,siteInfo:e.siteInfo,apiDomain:S,version:I,websitesData:A}}));class F extends Error{constructor(e){super(e),this.name="DecodingError"}}class M extends Error{constructor(e){super(e),this.name="EncodingError"}}class B extends Error{constructor(e){super(e),this.name="GVLError"}}class H extends Error{constructor(e,t){super(`invalid value ${t} passed for ${e} ${arguments.length>2&&void 0!==arguments[2]?arguments[2]:""}`),this.name="TCModelError"}}class j{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]);static BASIS=6;static LCM=24;static encode(e){if(!/^[0-1]+$/.test(e))throw new M("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let n="";for(let t=0;t<e.length;t+=this.BASIS)n+=this.DICT[parseInt(e.substr(t,this.BASIS),2)];return n}static decode(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new F("Invalidly encoded Base64URL string");let t="";for(let n=0;n<e.length;n++){const s=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-s.length)+s}return t}}class G{clone(){const e=new this.constructor;return Object.keys(this).forEach((t=>{const n=this.deepClone(this[t]);void 0!==n&&(e[t]=n)})),e}deepClone(e){const t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){const t=[];for(const n of e)t.push(this.deepClone(n));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=this.deepClone(e[n]));return t}}}}class z extends G{root=null;getRoot(){return this.root}isEmpty(){return!this.root}add(e){const t={value:e,left:null,right:null};let n;if(this.isEmpty())this.root=t;else for(n=this.root;;)if(e<n.value){if(null===n.left){n.left=t;break}n=n.left}else{if(!(e>n.value))break;if(null===n.right){n.right=t;break}n=n.right}}get(){const e=[];let t=this.root;for(;t;)if(t.left){let n=t.left;for(;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e}contains(e){let t=!1,n=this.root;for(;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:e<n.value&&(n=n.left)}return t}min(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;for(;t;)t.left?t=t.left:(e=t.value,t=null);return e}max(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;for(;t;)t.right?t=t.right:(e=t.value,t=null);return e}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,n=null,s="left";for(;t;)if(e<t.value)n=t,t=t.left,s="left";else if(e>t.value)n=t,t=t.right,s="right";else{if(t.left||t.right)if(t.left)if(t.right){const e=this.min(t.right);this.remove(e,t.right),t.value=e}else n?n[s]=t.left:this.root=t.left;else n?n[s]=t.right:this.root=t.right;else n?n[s]=null:this.root=null;t=null}}static build(e){if(e&&0!==e.length){if(1===e.length){const t=new z;return t.add(e[0]),t}{const t=e.length>>1,n=new z;n.add(e[t]);const s=n.getRoot();if(s){if(t+1<e.length){const n=z.build(e.slice(t+1));s.right=n?n.getRoot():null}if(t-1>0){const n=z.build(e.slice(0,t-1));s.left=n?n.getRoot():null}}return n}}return null}}class W{static langSet=new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]);has(e){return W.langSet.has(e)}forEach(e){W.langSet.forEach(e)}get size(){return W.langSet.size}}class ${static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";static supportOOB="supportOOB";static isServiceSpecific="isServiceSpecific";static lastUpdated="lastUpdated";static numCustomPurposes="numCustomPurposes";static policyVersion="policyVersion";static publisherCountryCode="publisherCountryCode";static publisherCustomConsents="publisherCustomConsents";static publisherCustomLegitimateInterests="publisherCustomLegitimateInterests";static publisherLegitimateInterests="publisherLegitimateInterests";static publisherConsents="publisherConsents";static publisherRestrictions="publisherRestrictions";static purposeConsents="purposeConsents";static purposeLegitimateInterests="purposeLegitimateInterests";static purposeOneTreatment="purposeOneTreatment";static specialFeatureOptins="specialFeatureOptins";static useNonStandardStacks="useNonStandardStacks";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(V||(V={}));class J extends G{static hashSeparator="-";purposeId_;restrictionType;constructor(e,t){super(),void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){const t=e.split(this.hashSeparator),n=new J;if(2!==t.length)throw new H("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${J.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===V.NOT_ALLOWED||this.restrictionType===V.REQUIRE_CONSENT||this.restrictionType===V.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class q extends G{bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,n){let s=!0;if(this.gvl?.vendors){const r=this.gvl.vendors[n];if(r)if(e===V.NOT_ALLOWED)s=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case V.REQUIRE_CONSENT:s=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case V.REQUIRE_LI:s=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else s=!1;else s=!1}return s}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const n=t.hash;this.has(n)||(this.map.set(n,new z),this.bitLength=0),this.map.get(n).add(e)}}restrictPurposeToLegalBasis(e){const t=this.gvl.vendorIds,n=e.hash,s=function(){let e;for(e of t);return e}(),r=[...Array(s).keys()].map((e=>e+1));for(let e=1;e<=s;e++)this.has(n)||(this.map.set(n,z.build(r)),this.bitLength=0),this.map.get(n).add(e)}getVendors(e){let t=[];if(e){const n=e.hash;this.has(n)&&(t=this.map.get(n).get())}else{const e=new Set;this.map.forEach((t=>{t.get().forEach((t=>{e.add(t)}))})),t=Array.from(e)}return t}getRestrictionType(e,t){let n;return this.getRestrictions(e).forEach((e=>{e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n}vendorHasRestriction(e,t){let n=!1;const s=this.getRestrictions(e);for(let e=0;e<s.length&&!n;e++)n=t.isSameAs(s[e]);return n}getMaxVendorId(){let e=0;return this.map.forEach((t=>{e=Math.max(t.max(),e)})),e}getRestrictions(e){const t=[];return this.map.forEach(((n,s)=>{e?n.contains(e)&&t.push(J.unHash(s)):t.push(J.unHash(s))})),t}getPurposes(){const e=new Set;return this.map.forEach(((t,n)=>{e.add(J.unHash(n).purposeId)})),Array.from(e)}remove(e,t){const n=t.hash,s=this.map.get(n);s&&(s.remove(e),s.isEmpty()&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach(((e,t)=>{const n=J.unHash(t);e.get().forEach((t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.remove(t)}))})))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(P||(P={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(k||(k={}));class Q{static ID_TO_KEY=[k.CORE,k.VENDORS_DISCLOSED,k.VENDORS_ALLOWED,k.PUBLISHER_TC];static KEY_TO_ID={[k.CORE]:0,[k.VENDORS_DISCLOSED]:1,[k.VENDORS_ALLOWED]:2,[k.PUBLISHER_TC]:3}}class K extends G{bitLength=0;maxId_=0;set_=new Set;*[Symbol.iterator](){for(let e=1;e<=this.maxId;e++)yield[e,this.has(e)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach((e=>this.unset(e))):"object"==typeof e?this.unset(Object.keys(e).map((e=>Number(e)))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((e=>{this.maxId_=Math.max(this.maxId,e)}))))}isIntMap(e){let t="object"==typeof e;return t=t&&Object.keys(e).every((t=>{let n=Number.isInteger(parseInt(t,10));return n=n&&this.isValidNumber(e[t].id),n=n&&void 0!==e[t].name,n})),t}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach((e=>this.set(e)));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((e=>Number(e))));else{if(!this.isValidNumber(e))throw new H("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(let t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}class Y{static[$.cmpId]=12;static[$.cmpVersion]=12;static[$.consentLanguage]=12;static[$.consentScreen]=6;static[$.created]=36;static[$.isServiceSpecific]=1;static[$.lastUpdated]=36;static[$.policyVersion]=6;static[$.publisherCountryCode]=12;static[$.publisherLegitimateInterests]=24;static[$.publisherConsents]=24;static[$.purposeConsents]=24;static[$.purposeLegitimateInterests]=24;static[$.purposeOneTreatment]=1;static[$.specialFeatureOptins]=12;static[$.useNonStandardStacks]=1;static[$.vendorListVersion]=12;static[$.version]=6;static anyBoolean=1;static encodingType=1;static maxId=16;static numCustomPurposes=6;static numEntries=12;static numRestrictions=12;static purposeId=6;static restrictionType=2;static segmentType=3;static singleOrRange=1;static vendorId=16}class X{static encode(e){return String(Number(e))}static decode(e){return"1"===e}}class Z{static encode(e,t){let n;if("string"==typeof e&&(e=parseInt(e,10)),n=e.toString(2),n.length>t||e<0)throw new M(`${e} too large to encode into ${t}`);return n.length<t&&(n="0".repeat(t-n.length)+n),n}static decode(e,t){if(t!==e.length)throw new F("invalid bit length");return parseInt(e,2)}}class ee{static encode(e,t){return Z.encode(Math.round(e.getTime()/100),t)}static decode(e,t){if(t!==e.length)throw new F("invalid bit length");const n=new Date;return n.setTime(100*Z.decode(e,t)),n}}class te{static encode(e,t){let n="";for(let s=1;s<=t;s++)n+=X.encode(e.has(s));return n}static decode(e,t){if(e.length!==t)throw new F("bitfield encoding length mismatch");const n=new K;for(let s=1;s<=t;s++)X.decode(e[s-1])&&n.set(s);return n.bitLength=e.length,n}}class ne{static encode(e,t){const n=(e=e.toUpperCase()).charCodeAt(0)-65,s=e.charCodeAt(1)-65;if(n<0||n>25||s<0||s>25)throw new M(`invalid language code: ${e}`);if(t%2==1)throw new M(`numBits must be even, ${t} is not valid`);t/=2;return Z.encode(n,t)+Z.encode(s,t)}static decode(e,t){let n;if(t!==e.length||e.length%2)throw new F("invalid bit length for language");{const t=65,s=e.length/2,r=Z.decode(e.slice(0,s),s)+t,i=Z.decode(e.slice(s),s)+t;n=String.fromCharCode(r)+String.fromCharCode(i)}return n}}class se{static encode(e){let t=Z.encode(e.numRestrictions,Y.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((n=>{t+=Z.encode(n.purposeId,Y.purposeId),t+=Z.encode(n.restrictionType,Y.restrictionType);const s=e.getVendors(n),r=s.length;let i=0,o=0,a="";for(let t=0;t<r;t++){const n=s[t];0===o&&(i++,o=n);const c=s[r-1],l=e.gvl.vendorIds,u=e=>{for(;++e<=c&&!l.has(e););return e};if(t===r-1||s[t+1]>u(n)){const e=!(n===o);a+=X.encode(e),a+=Z.encode(o,Y.vendorId),e&&(a+=Z.encode(n,Y.vendorId)),o=0}}t+=Z.encode(i,Y.numEntries),t+=a})),t}static decode(e){let t=0;const n=new q,s=Z.decode(e.substr(t,Y.numRestrictions),Y.numRestrictions);t+=Y.numRestrictions;for(let r=0;r<s;r++){const s=Z.decode(e.substr(t,Y.purposeId),Y.purposeId);t+=Y.purposeId;const r=Z.decode(e.substr(t,Y.restrictionType),Y.restrictionType);t+=Y.restrictionType;const i=new J(s,r),o=Z.decode(e.substr(t,Y.numEntries),Y.numEntries);t+=Y.numEntries;for(let s=0;s<o;s++){const s=X.decode(e.substr(t,Y.anyBoolean));t+=Y.anyBoolean;const r=Z.decode(e.substr(t,Y.vendorId),Y.vendorId);if(t+=Y.vendorId,s){const s=Z.decode(e.substr(t,Y.vendorId),Y.vendorId);if(t+=Y.vendorId,s<r)throw new F(`Invalid RangeEntry: endVendorId ${s} is less than ${r}`);for(let e=r;e<=s;e++)n.add(e,i)}else n.add(r,i)}}return n.bitLength=t,n}}!function(e){e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE"}(x||(x={}));class re{static encode(e){const t=[];let n,s=[],r=Z.encode(e.maxId,Y.maxId),i="";const o=Y.maxId+Y.encodingType,a=o+e.maxId,c=2*Y.vendorId+Y.singleOrRange+Y.numEntries;let l=o+Y.numEntries;return e.forEach(((r,o)=>{if(i+=X.encode(r),n=e.maxId>c&&l<a,n&&r){e.has(o+1)?0===s.length&&(s.push(o),l+=Y.singleOrRange,l+=Y.vendorId):(s.push(o),l+=Y.vendorId,t.push(s),s=[])}})),n?(r+=String(x.RANGE),r+=this.buildRangeEncoding(t)):(r+=String(x.FIELD),r+=i),r}static decode(e,t){let n,s=0;const r=Z.decode(e.substr(s,Y.maxId),Y.maxId);s+=Y.maxId;const i=Z.decode(e.charAt(s),Y.encodingType);if(s+=Y.encodingType,i===x.RANGE){if(n=new K,1===t){if("1"===e.substr(s,1))throw new F("Unable to decode default consent=1");s++}const r=Z.decode(e.substr(s,Y.numEntries),Y.numEntries);s+=Y.numEntries;for(let t=0;t<r;t++){const t=X.decode(e.charAt(s));s+=Y.singleOrRange;const r=Z.decode(e.substr(s,Y.vendorId),Y.vendorId);if(s+=Y.vendorId,t){const t=Z.decode(e.substr(s,Y.vendorId),Y.vendorId);s+=Y.vendorId;for(let e=r;e<=t;e++)n.set(e)}else n.set(r)}}else{const t=e.substr(s,r);s+=r,n=te.decode(t,r)}return n.bitLength=s,n}static buildRangeEncoding(e){const t=e.length;let n=Z.encode(t,Y.numEntries);return e.forEach((e=>{const t=1===e.length;n+=X.encode(!t),n+=Z.encode(e[0],Y.vendorId),t||(n+=Z.encode(e[1],Y.vendorId))})),n}}function ie(){return{[$.version]:Z,[$.created]:ee,[$.lastUpdated]:ee,[$.cmpId]:Z,[$.cmpVersion]:Z,[$.consentScreen]:Z,[$.consentLanguage]:ne,[$.vendorListVersion]:Z,[$.policyVersion]:Z,[$.isServiceSpecific]:X,[$.useNonStandardStacks]:X,[$.specialFeatureOptins]:te,[$.purposeConsents]:te,[$.purposeLegitimateInterests]:te,[$.purposeOneTreatment]:X,[$.publisherCountryCode]:ne,[$.vendorConsents]:re,[$.vendorLegitimateInterests]:re,[$.publisherRestrictions]:se,segmentType:Z,[$.vendorsDisclosed]:re,[$.vendorsAllowed]:re,[$.publisherConsents]:te,[$.publisherLegitimateInterests]:te,[$.numCustomPurposes]:Z,[$.publisherCustomConsents]:te,[$.publisherCustomLegitimateInterests]:te}}class oe{1={[k.CORE]:[$.version,$.created,$.lastUpdated,$.cmpId,$.cmpVersion,$.consentScreen,$.consentLanguage,$.vendorListVersion,$.purposeConsents,$.vendorConsents]};2={[k.CORE]:[$.version,$.created,$.lastUpdated,$.cmpId,$.cmpVersion,$.consentScreen,$.consentLanguage,$.vendorListVersion,$.policyVersion,$.isServiceSpecific,$.useNonStandardStacks,$.specialFeatureOptins,$.purposeConsents,$.purposeLegitimateInterests,$.purposeOneTreatment,$.publisherCountryCode,$.vendorConsents,$.vendorLegitimateInterests,$.publisherRestrictions],[k.PUBLISHER_TC]:[$.publisherConsents,$.publisherLegitimateInterests,$.numCustomPurposes,$.publisherCustomConsents,$.publisherCustomLegitimateInterests],[k.VENDORS_ALLOWED]:[$.vendorsAllowed],[k.VENDORS_DISCLOSED]:[$.vendorsDisclosed]}}class ae{1=[k.CORE];2=[k.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(k.PUBLISHER_TC);else{const n=!(!t||!t.isForVendors);n&&!0!==e[$.supportOOB]||this[2].push(k.VENDORS_DISCLOSED),n&&(e[$.supportOOB]&&e[$.vendorsAllowed].size>0&&this[2].push(k.VENDORS_ALLOWED),this[2].push(k.PUBLISHER_TC))}}}class ce{static fieldSequence=new oe;static encode(e,t){let n;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new M(`Unable to encode version: ${e.version}, segment: ${t}`)}let s="";t!==k.CORE&&(s=Z.encode(Q.KEY_TO_ID[t],Y.segmentType));const r=ie();return n.forEach((n=>{const i=e[n],o=r[n];let a=Y[n];void 0===a&&this.isPublisherCustom(n)&&(a=Number(e[$.numCustomPurposes]));try{s+=o.encode(i,a)}catch(e){throw new M(`Error encoding ${t}->${n}: ${e.message}`)}})),j.encode(s)}static decode(e,t,n){const s=j.decode(e);let r=0;n===k.CORE&&(t.version=Z.decode(s.substr(r,Y[$.version]),Y[$.version])),n!==k.CORE&&(r+=Y.segmentType);const i=this.fieldSequence[String(t.version)][n],o=ie();return i.forEach((e=>{const n=o[e];let i=Y[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[$.numCustomPurposes])),0!==i){const o=s.substr(r,i);if(t[e]=n===re?n.decode(o,t.version):n.decode(o,i),Number.isInteger(i))r+=i;else{if(!Number.isInteger(t[e].bitLength))throw new F(e);r+=t[e].bitLength}}})),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class le{static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);const n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(((n,s)=>{n.forEach(((r,i)=>{if(r){const r=t.vendors[i];if(!r||r.deletedDate)n.unset(i);else if(0===r[s].length)if("legIntPurposes"===s&&0===r.purposes.length&&0===r.legIntPurposes.length&&r.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===r.flexiblePurposes.length)n.unset(i);else{const t=e.publisherRestrictions.getRestrictions(i);let r=!1;for(let e=0,n=t.length;e<n&&!r;e++)r=t[e].restrictionType===V.REQUIRE_CONSENT&&"purposes"===s||t[e].restrictionType===V.REQUIRE_LI&&"legIntPurposes"===s;r||n.unset(i)}else n.unset(i)}}))})),e.vendorsDisclosed.set(t.vendors),e}];static process(e,t){const n=e.gvl;if(!n)throw new M("Unable to encode TCModel without a GVL");if(!n.isReady)throw new M("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.toUpperCase(),t?.version>0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;const s=e.version-1;if(!this.processor[s])throw new M(`Invalid version: ${e.version}`);return this.processor[s](e,n)}}class ue{static absCall(e,t,n,s){return new Promise(((r,i)=>{const o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",(()=>{if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){let e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}r(e)}else i(new Error(`HTTP Status: ${o.status} response type: ${o.responseType}`))})),o.addEventListener("error",(()=>{i(new Error("error"))})),o.addEventListener("abort",(()=>{i(new Error("aborted"))})),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=s,o.ontimeout=()=>{i(new Error("Timeout "+s+"ms "+e))},o.send(t)}))}static post(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}static fetch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}class de extends G{static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new W;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new B("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}static latestFilename="vendor-list.json";static versionedFilename="archives/vendor-list-v[VERSION].json";static languageFilename="purposes-[LANG].json";readyPromise;gvlSpecificationVersion;vendorListVersion;tcfPolicyVersion;lastUpdated;purposes;specialPurposes;features;specialFeatures;isReady_=!1;vendors_;vendorIds;fullVendorList;byPurposeVendorMap;bySpecialPurposeVendorMap;byFeatureVendorMap;bySpecialFeatureVendorMap;stacks;lang_;isLatest=!1;constructor(e){super();let t=de.baseUrl;if(this.lang_=de.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new B("must specify GVL.baseUrl before loading GVL json");if(e>0){const n=e;de.CACHE.has(n)?(this.populate(de.CACHE.get(n)),this.readyPromise=Promise.resolve()):(t+=de.versionedFilename.replace("[VERSION]",String(n)),this.readyPromise=this.fetchJson(t))}else de.CACHE.has(de.LATEST_CACHE_KEY)?(this.populate(de.CACHE.get(de.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+de.latestFilename))}}static emptyLanguageCache(e){let t=!1;return void 0===e&&de.LANGUAGE_CACHE.size>0?(de.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(de.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(de.CACHE.delete(e),t=!0):void 0===e&&(de.CACHE=new Map,t=!0),t}cacheLanguage(){de.LANGUAGE_CACHE.has(this.lang_)||de.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})}async fetchJson(e){try{this.populate(await ue.fetch(e))}catch(e){throw new B(e.message)}}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,vendors:this.fullVendorList}))}async changeLanguage(e){const t=e.toUpperCase();if(!de.consentLanguages.has(t))throw new B(`unsupported language ${e}`);if(t!==this.lang_)if(this.lang_=t,de.LANGUAGE_CACHE.has(t)){const e=de.LANGUAGE_CACHE.get(t);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const t=de.baseUrl+de.languageFilename.replace("[LANG]",e);try{await this.fetchJson(t),this.cacheLanguage()}catch(e){throw new B("unable to load language: "+e.message)}}}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&de.CACHE.set(de.LATEST_CACHE_KEY,this.getJson()),de.CACHE.has(this.vendorListVersion)||de.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((e=>{this.byPurposeVendorMap[e]={legInt: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(e)||(e=Object.keys(this.fullVendorList).map((e=>+e))),this.vendorIds=new Set(e),this.vendors_=e.reduce(((e,t)=>{const n=this.vendors_[String(t)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((e=>{this.byPurposeVendorMap[String(e)].consent.add(t)})),n.specialPurposes.forEach((e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)})),n.legIntPurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)})),n.features.forEach((e=>{this.byFeatureVendorMap[String(e)].add(t)})),n.specialFeatures.forEach((e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)})),e[t]=n),e}),{})}getFilteredVendors(e,t,n,s){const r=e.charAt(0).toUpperCase()+e.slice(1);let i;const o={};return i="purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)],i.forEach((e=>{o[String(e)]=this.vendors[String(e)]})),o}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){const e=new de(this.getJson());return this.lang_!==de.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class pe extends G{static consentLanguages=de.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardStacks_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=2;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new K;purposeConsents=new K;purposeLegitimateInterests=new K;publisherConsents=new K;publisherLegitimateInterests=new K;publisherCustomConsents=new K;publisherCustomLegitimateInterests=new K;customPurposes;vendorConsents=new K;vendorLegitimateInterests=new K;vendorsDisclosed=new K;vendorsAllowed=new K;publisherRestrictions=new q;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){de.isInstanceOf(e)||(e=new de(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new H("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new H("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new H("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new H("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)>>0)<0)throw new H("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new H("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardStacks(e){this.useNonStandardStacks_=e}get useNonStandardStacks(){return this.useNonStandardStacks_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){const t=Object.keys(this.customPurposes).sort(((e,t)=>Number(e)-Number(t)));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new H("numCustomPurposes",e)}updated(){const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}class he{static encode(e,t){let n,s="";return e=le.process(e,t),n=Array.isArray(t?.segments)?t.segments:new ae(e,t)[""+e.version],n.forEach(((t,r)=>{let i="";r<n.length-1&&(i="."),s+=ce.encode(e,t)+i})),s}static decode(e,t){const n=e.split("."),s=n.length;t||(t=new pe);for(let e=0;e<s;e++){const s=n[e],r=j.decode(s.charAt(0)).substr(0,Y.segmentType),i=Q.ID_TO_KEY[Z.decode(r,Y.segmentType).toString()];ce.decode(s,t,i)}return t}}function ge(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return[2,new Promise((function(e){var t,n;try{var s=(null===(t=window.__bt)||void 0===t?void 0:t.tcf)||(null===(n=u.__bt)||void 0===n?void 0:n.tcf);if((null==s?void 0:s.hasOwnProperty("GDPRApplies"))&&(null==s?void 0:s.hasOwnProperty("TCFString"))){var r=he.decode(s.TCFString),i=Array.from(r.purposeConsents).reduce((function(e,t){var n=t[0],s=t[1];return e[n]=s,e}),{});return u.__bt_intrnl.tcData={isCustomTCF:!0,gdprApplies:!!s.GDPRApplies,tcString:s.TCFString,purpose:{consents:i}},e(u.__bt_intrnl.tcData)}var o=window.__tcfapi||u.__tcfapi;"function"==typeof o?o("addEventListener",2,(function(t,n){if(n&&("tcloaded"===(null==t?void 0:t.eventStatus)||"useractioncomplete"===(null==t?void 0:t.eventStatus)))return u.__bt_intrnl.tcData=t,e(t);u.__bt_intrnl.tcData={eventStatus:null==t?void 0:t.eventStatus},e(null)})):e(null)}catch(t){u.__bt_intrnl.tcData={error:t},e(null)}}))]}))}))}function ve(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return[2,ge().then((function(e){if(!e||!1===e.gdprApplies)return null;try{return function(e){var t;return!(function(e){void 0===e&&(e={});var t=!1;return Object.keys(e).forEach((function(n){return t=t||e[n]})),!t}(null===(t=e.purpose)||void 0===t?void 0:t.consents)||(n=e.purpose,!(me(n,2)&&me(n,7)&&me(n,9)&&me(n,10))));var n}(e)}catch(e){return null}}))]}))}))}function me(e,t){var n,s;return(null===(n=null==e?void 0:e.consents)||void 0===n?void 0:n[t])&&(null===(s=null==e?void 0:e.legitimateInterests)||void 0===s?void 0:s[t])}function fe(){return new Promise((function(e){switch(function(){var e=window.navigator.userAgent;if(/chrome|chromium/i.test(e))return be.CHROME;if(/firefox|iceweasel|fxios/i.test(e))return be.FIREFOX;if(/msie|trident/i.test(e))return be.IE;if(/^((?!chrome|android).)*safari/i.test(e))return be.SAFARI;if(window.chrome)return be.CHROME;return}()){case be.SAFARI:void 0!==window.navigator.maxTouchPoints?function(){var t=String(Math.random());try{window.indexedDB.open(t,1).onupgradeneeded=function(n){var s,r,i=null===(s=n.target)||void 0===s?void 0:s.result;try{i.createObjectStore("test",{autoIncrement:!0}).put(new Blob),e(!1)}catch(t){var o=t;if(t instanceof Error&&(o=null!==(r=t.message)&&void 0!==r?r:t),"string"!=typeof o)return e(!1);var a=/BlobURLs are not yet supported/.test(o);e(a)}finally{i.close(),window.indexedDB.deleteDatabase(t)}}}catch(t){return e(!1)}}():function(){var t=window.openDatabase,n=window.localStorage;try{t(null,null,null,null)}catch(t){return e(!0)}try{n.setItem("test","1"),n.removeItem("test")}catch(t){return e(!0)}e(!1)}();break;case be.CHROME:void 0!==window.Promise&&void 0!==window.Promise.allSettled?function(){try{window.navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){var s=Math.round(n/1048576),r=2*Math.round(function(){var e,t;return(null===(t=null===(e=window.performance)||void 0===e?void 0:e.memory)||void 0===t?void 0:t.jsHeapSizeLimit)||1073741824}()/1048576);e(s<r)}),(function(){return e(null)}))}catch(t){return e(null)}}():function(){try{(0,window.webkitRequestFileSystem)(0,1,(function(){return e(!1)}),(function(){return e(!0)}))}catch(t){return e(null)}}();break;case be.FIREFOX:e(void 0===window.navigator.serviceWorker);break;case be.IE:e(void 0===window.indexedDB);break;default:e(null)}}))}var be={SAFARI:"safari",CHROME:"chrome",FIREFOX:"firefox",IE:"ie"};var we,ye,_e="w",Se="o",Ie="r",Ee="aa",Ce="tid",Le="cv",Ae="bv",Oe="rt",Re="vr",De="sid",Te="checksum",Ve="c",Pe="pm",ke="widget",xe="spa_view_change";function Ne(e,t){void 0===t&&(t={}),e||(e="/"),e.startsWith("/")||(e="/"+e),t.upapi=!0;var n="",s="?";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];n+=""+s+r+"="+encodeURIComponent(i),s="&"}return"https://"+S+e+n}function Ue(e,s,r,i,o){return t(this,void 0,void 0,(function(){var t,a,c,l;return n(this,(function(n){switch(n.label){case 0:return(t={})[Ce]=T.traceID,t[_e]=e.siteInfo.websiteID,t[Se]=y,t[Le]=I,t[ke]=e.siteInfo.widget,e.checksum&&(t[Te]=e.checksum),i&&(t[Ae]=i),t[Ie]=s,t[Re]=window.innerWidth+"x"+window.innerHeight,t.pageURL=h.href,t[De]=T.sessionID,s&&(t[Oe]=0,t[Ee]=r),[4,Promise.all([ve(),fe()])];case 1:return a=n.sent(),c=a[0],l=a[1],null!==c&&(t[Ve]=c),null!==l&&(t[Pe]=l),o&&(t[xe]=o),[4,(u=Ne("/pv",t),new Promise((function(e,t){var n=new window.XMLHttpRequest;n.open("GET",u,!0),n.onerror=function(){console.log("Error in get request for "+u),t()},n.onload=function(){e(n.responseText)},n.send()})))];case 2:return n.sent(),[2]}var u}))}))}function Fe(e,s,r){return void 0===s&&(s={}),void 0===r&&(r={severity:1}),t(this,void 0,void 0,(function(){var t,i,o,a;return n(this,(function(n){switch(n.label){case 0:return[4,U()];case 1:return t=n.sent(),(a={})[Ce]=T.traceID,a[Le]=I,a[De]=T.sessionID,a.upapi=!0,i=a,o={event:e,meta:s,orgID:y,severity:r.severity,websiteID:t.siteInfo.websiteID},[2,fetch(Ne("/log",i),{method:"POST",body:JSON.stringify(o)})]}}))}))}var Me=Date.now(),Be=window.performance.getEntriesByType("resource").find((function(e){return e.name.includes(document.currentScript.getAttribute("src"))})),He=Math.round(Date.now()-(null!==(ye=null!==(we=null==Be?void 0:Be.startTime)&&void 0!==we?we:0+(null==Be?void 0:Be.duration))&&void 0!==ye?ye:0)),je=Be&&b(1),Ge={shouldLog:je,tagScriptLoadTimestamp:Me,navigationStartTimestamp:He};function ze(t){var n=Date.now();return function(s){if(je){var r=Date.now(),i=e(e({},s),{eventDurationMS:r-n,timestamp:r});Fe(t,i,{severity:1})}}}var We,$e=5;function Je(e){var t=ze("timing.countryDetection"),n=u.localStorage.getItem("btUserCountryExpiry");!n||parseInt(n)<=Date.now()?fetch("https://api.btloader.com/country?o="+e).then((function(e){return e.json()})).then((function(e){var n=e.country,s=e.isRestricted;u.localStorage.setItem("btUserCountry",n),u.localStorage.setItem("btUserCountryExpiry",String(new Date(Date.now()+6e4*$e).getTime())),u.localStorage.setItem("btUserIsFromRestrictedCountry",s),t({cached:!1})})).catch((function(){b(1)&&Fe("rlink.btTagUserCountryError",void 0,{severity:4})})):t({cached:!0})}function qe(e){if(!e)return 0;var t=0;for(var n in e)if(e.hasOwnProperty(n)){var s=e[n].max;s>t&&(t=s)}return t/100}function Qe(e,t){if(void 0===t&&(t={}),!e)return null;var n=0,s=1,r=qe(t);return 1===r||(Object.values(t).length&&r<1&&(n=r,s=1-r),Object.keys(e).sort().forEach((function(r){var i=e[r];t[r]={min:Math.trunc(100*n),max:Math.trunc(100*(n+i*s))},n+=i*s}))),t}function Ke(){return t(this,void 0,void 0,(function(){var e,t,s,r,i,o,a,c,l,d,p;return n(this,(function(n){switch(n.label){case 0:return e="latest",[4,U()];case 1:return t=n.sent(),s=t.siteInfo,r=t.bundleData,i="BT_BUNDLE_VERSION_"+s.websiteID,o="BT_DIGEST_VERSION_"+s.websiteID,!We[s.websiteID]&&(null==r?void 0:r.bundles)&&(We[s.websiteID]=r),a=function(e,t,n){if(void 0===n&&(n="latest"),!e)return null;if(!t||"object"!=typeof t||Object.keys(t).length<=0)return null;var s={},r=t[e],i=t[0],o=t.global;if((null==r?void 0:r.bundles)&&(s=Qe(r.bundles)),(null==i?void 0:i.bundles)&&(s=Qe(i.bundles,s)),(null==o?void 0:o.bundles)&&(s=Qe(o.bundles,s)),Object.keys(s).length<=0)return null;var a=qe(s);return a<1&&(s[n]={min:Math.trunc(100*a),max:100}),s}(s.websiteID,We,e),window.__bt_tag_d&&(window.__bt_tag_d.probabilities=a),!a||Object.keys(a).length<=0?[2,void 0]:(c=We[s.websiteID]||We[0]||We.global)?(l=c.digest,u.localStorage.getItem(o)!=String(l)&&(u.localStorage.setItem(o,String(l)),u.localStorage.removeItem(i)),(d=u.localStorage.getItem(i))||(p=f(100),d=function(e,t){if("number"!=typeof e||e<0||e>100)return null;if(!t||"object"!=typeof t)return null;for(var n=Object.keys(t),s=0;s<n.length;s++){var r=n[s],i=t[r];if(i.min<=e&&i.max>e)return r}return null}(p,a)||e,u.localStorage.setItem(i,d)),[2,d===e?void 0:d]):[2]}}))}))}We={};var Ye=function(){function t(e,t,n,s,r,i){void 0===e&&(e={enabled:!1,script_loading_mode:"inject_from_tag_script"}),this.rlinkSettings=e,this.scriptSrc=t,this.recoveryScriptSrc=n,this.shouldLoadRecoveryScript=s,this.insertScript=r,this.isAAEnabled=i}return t.prototype.load=function(){var t=this;if(this.shouldLoadRLinkScript()){this.shouldLoadRecoveryScriptFromRLink()&&this.setRecoveryScriptLoadFunction(),this.cacheRLinkSettings(),this.insertScript(this.scriptSrc,"module");try{if(b(1)){Fe("rlink_script_injecting");setTimeout((function(){document.querySelector("script[src='"+t.scriptSrc+"']")?Fe("rlink_script_injected"):Fe("rlink_script_not_injected",e({},window.__bt_intrnl.aaDetectionResults)),window.__bt_rlink_already_invoked&&Fe("rlink_script_loaded")}),1e3)}}catch(e){}window.__bt_rlink_loaded_from_tag=!0}},t.prototype.shouldLoadRecoveryScriptFromRLink=function(){return this.shouldLoadRLinkScript()&&this.shouldLoadRecoveryScript&&this.isAAEnabled&&this.rlinkSettings.allow_render_to_aa_users},t.prototype.shouldLoadRLinkScript=function(){return this.rlinkSettings.enabled&&"inject_from_tag_script"===this.rlinkSettings.script_loading_mode},t.prototype.setRecoveryScriptLoadFunction=function(){var e=this;window.__bt_recovery=function(){return e.insertScript(e.recoveryScriptSrc)}},t.prototype.cacheRLinkSettings=function(){window.__bt_tag_am={settings:this.rlinkSettings}},t}();function Xe(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return[2,new Promise((function(e){var t=ze("timing.ABDetection"),n="BT_AA_DETECTION",s=JSON.parse(u.localStorage.getItem(n));s&&s.ab&&s.acceptable&&(t({cached:!0}),e(s)),Promise.all([a(),c()]).then((function(r){var i={ab:r[0],acceptable:r[1]};u.localStorage.setItem(n,JSON.stringify(i)),window.__bt_intrnl.aaDetectionResults=i,!(s&&s.ab&&s.acceptable)||i.ab&&i.acceptable||(u.__bt_intrnl.stopFlag=!0),t({cached:!1}),e(i)}))}))]}))}))}function Ze(e,t){if(void 0===t&&(t="text/javascript"),e){var n=document.createElement("script");n.type=t,n.async=!0,n.src=e,n.crossOrigin="anonymous",(window.document.head||window.document.body||window.document.documentElement).appendChild(n)}}function et(e){var t=e.eventName,n=e.payload||{bubbles:!1,cancelable:!1,detail:void 0};if(window.CustomEvent)try{var s=new window.CustomEvent(t,n);return void window.dispatchEvent(s)}catch(e){}var r=document.createEvent("CustomEvent");r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),window.dispatchEvent(r)}u.__bt_intrnl=u.__bt_intrnl||{traceID:T.traceID,pvSent:g("BT_pvSent"),stopFlag:!1,timings:Ge,aaDetectionResults:null,recoveryUserAttr:null,pageURL:h.toString(),tcData:void 0},window.__bt_intrnl=u.__bt_intrnl;try{!function(){var e;t(this,void 0,void 0,(function(){var t,s,r,i,o,a,c,l,d,h,g;return n(this,(function(n){switch(n.label){case 0:return je&&(Fe("timing.navigationStart",{timestamp:He},{severity:1}),Fe("timing.tagScriptLoaded",{eventDurationMS:Math.round(Be.duration),timestamp:Me},{severity:1})),[4,Promise.all([Xe(),U()]).catch((function(){b(1)&&Fe("rlink.btTagDetectionError",void 0,{severity:4})}))];case 1:return t=n.sent(),s=t[0],r=t[1],i=r.siteInfo,o=r.checksum,a=r.rlSettings,et({eventName:"BTAADetection",payload:{detail:s}}),window.__bt_already_invoked||!i.websiteID?[2]:(window.__bt_already_invoked=!0,Je(y),s.ab?window.disableUponit?[3,3]:(function(e){(u.location.href.indexOf("bt_debug=true")>=0||"true"==u.localStorage.getItem("bt_debug"))&&(e.contentEnabled="true"==u.localStorage.getItem("forceContent")||e.contentEnabled,e.mobileContentEnabled="true"==u.localStorage.getItem("forceMobileContent")||e.mobileContentEnabled)}(i),i.contentEnabled&&(!(d="function"==typeof window.bt_isMobileCustom?window.bt_isMobileCustom():/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)))||d&&i.mobileContentEnabled)&&s.acceptable?[4,Ke().catch((function(){b(1)&&Fe("rlink.btTagPickBundleVersionError",void 0,{severity:4})}))]:[3,3]):[3,3]);case 2:l=n.sent(),c=!0,n.label=3;case 3:if((null===(e=u.__bt_intrnl.pvSent)||void 0===e?void 0:e[i.websiteID])||(u.__bt_intrnl.pvSent=u.__bt_intrnl.pvSent||{},u.__bt_intrnl.pvSent[i.websiteID]=!0,v("BT_pvSent",u.__bt_intrnl.pvSent),Ue({siteInfo:i,checksum:o},s.ab,s.acceptable,l).catch((function(){b(1)&&Fe("rlink.btTagReportPV",void 0,{severity:4})})),function(){try{history.pushState=(e=history.pushState,function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationChange")),t}),history.replaceState=function(e){return function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationChange")),t}}(history.replaceState),window.addEventListener("popstate",(function(){window.dispatchEvent(new Event("locationChange"))}))}catch(e){}var e}(),u.addEventListener("locationChange",(function(){var e=p();e.search="";var t=e.toString().split("#")[0];u.__bt_intrnl.pageURL.split("#")[0]!==t&&(u.__bt_intrnl.pageURL=e.toString(),R=L(8,10),u.__bt_intrnl.traceID=R,v("BT_traceID",R),T={traceID:R,sessionID:D},Ue({siteInfo:i,checksum:o},s.ab,s.acceptable,l,!0).catch((function(){b(1)&&Fe("rlink.btTagReportPVLocationChange",void 0,{severity:4})})))}))),h=function(e,t,n,s){var r=new URL("https://"+e);return r.pathname="recovery",r.searchParams.append("w",t),s&&r.searchParams.append("b",s),n&&n.split("&").forEach((function(e){var t=e.split("=");2==t.length&&t[0]&&t[1]&&r.searchParams.append(t[0],t[1])})),r.searchParams.append("upapi","true"),r.toString()}(_,i.websiteID,"",l),(g=new Ye(a,E.script,h,c,Ze,s.acceptable)).load(),c&&!g.shouldLoadRecoveryScriptFromRLink())Ze(h);else try{et({eventName:"AcceptableAdsInit",payload:{detail:!1}}),et({eventName:"uponitInit",payload:{detail:!1}})}catch(e){b(1)&&Fe("rlink.btTagWhenShouldNotLoadScriptError",{message:null==e?void 0:e.message},{severity:4})}return[2]}}))}))}()}catch(e){b(1)&&Fe("rlink.btTagInitError",{message:null==e?void 0:e.message},{severity:4})}}();