You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
21 KiB
JavaScript

1 year ago
var OneTrustStub=function(e){"use strict";var l=new function(){this.optanonCookieName="OptanonConsent",this.optanonHtmlGroupData=[],this.optanonHostData=[],this.genVendorsData=[],this.vendorsServiceData=[],this.IABCookieValue="",this.oneTrustIABCookieName="eupubconsent",this.oneTrustIsIABCrossConsentEnableParam="isIABGlobal",this.isStubReady=!0,this.geolocationCookiesParam="geolocation",this.EUCOUNTRIES=["BE","BG","CZ","DK","DE","EE","IE","GR","ES","FR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","GB","HR","LI","NO","IS"],this.stubFileName="otSDKStub",this.DATAFILEATTRIBUTE="data-domain-script",this.bannerScriptName="otBannerSdk.js",this.mobileOnlineURL=[],this.isMigratedURL=!1,this.migratedCCTID="[[OldCCTID]]",this.migratedDomainId="[[NewDomainId]]",this.userLocation={country:"",state:""}};(u=m=m||{})[u.Days=1]="Days",u[u.Weeks=7]="Weeks",u[u.Months=30]="Months",u[u.Years=365]="Years",(u=t=t||{}).Name="OTGPPConsent",u[u.ChunkSize=4e3]="ChunkSize",u.ChunkCountParam="GPPCookiesCount",(u={CPRA:8,8:"CPRA",CCPA:8})[8]="CCPA",u[u.CDPA=9]="CDPA",u[u.USNATIONAL=7]="USNATIONAL",u[u.COLORADO=10]="COLORADO",u[u.UCPA=11]="UCPA",u[u.CTDPA=12]="CTDPA";var r,t,a="geo",o="otpreview",s=(t.Name,"PRODUCTION"),n=((u={})[m.Days]="PCenterVendorListLifespanDay",u[m.Weeks]="LfSpnWk",u[m.Months]="PCenterVendorListLifespanMonth",u[m.Years]="LfSpnYr",i.prototype.camelize=function(e){return e.split("-").map(function(e,t){return 0===t?e:e[0].toUpperCase()+e.slice(1)}).join("")},i.prototype.strToObj=function(e){for(var t={},i=e.split(";").map(function(e){return e.trim()}),n=0,a=void 0;n<i.length;++n)if(/:/.test(i[n])){if(!(a=i[n].split(/:(.+)/))[1])return null;t[this.camelize(a[0])]=a[1].trim()}return t},i);function i(){var e=this;this.implementThePolyfill=function(){var a=e,o=Element.prototype.setAttribute;return Element.prototype.setAttribute=function(e,t){if("style"!==e.toLowerCase()&&o.apply(this,[e,t]),"style"!==e.toLowerCase()||t||this.removeAttribute("style"),"style"===e.toLowerCase()&&t){this.removeAttribute("style");var i,n=a.strToObj(t);for(i in n)this.style[i]=n[i]}},!0}}function p(e,t,i){void 0===i&&(i=!1);function n(e){return e?(";"!==(e=e.trim()).charAt(e.length-1)&&(e+=";"),e.trim()):null}var o=n(e.getAttribute("style")),s=n(t),t="",t=i&&o?function(){for(var e=o.split(";").concat(s.split(";")).filter(function(e){return 0!==e.length}),t="",i="",n=e.length-1;0<=n;n--){var a=e[n].substring(0,e[n].indexOf(":")+1).trim();t.indexOf(a)<0&&(t+=a,i+=e[n]+";")}return i}():s;e.setAttribute("style",t)}(t=r=r||{}).ping="ping",t.addEventListener="addEventListener",t.removeEventListener="removeEventListener",t.hasSection="hasSection",t.getSection="getSection",t.getField="getField",t.getGPPData="getGPPData";var c=new function(){var s=this;this.LOCATOR_NAME="__gppLocator",this.win=window,this.customInit="CUSTOMINIT",this.init=function(){s.win.__gpp&&"function"==typeof s.win.__gpp||(s.win.__gpp=s.executeGppApi,window.addEventListener("message",s.messageHandler,!1),s.addFrame(s.LOCATOR_NAME))},this.removeGppApi=function(){delete s.win.__gpp;var e=document.querySelectorAll("iframe[name="+s.LOCATOR_NAME+"]")[0];e&&e.parentElement.removeChild(e)},this.executeGppApi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=null==(i=s.win)?void 0:i.__gpp;if(i.queue=i.queue||[],i.events=i.events||[],!e.length||1===e.length&&"queue"===e[0])return i.queue;if(1===e.length&&"events"===e[0])return i.events;var n=e[0],a=1<e.length?e[1]:null,o=2<e.length?e[2]:null;switch(n){case r.ping:return s.getPingRequest(a);case r.addEventListener:return s.addEventListener(a,o);case r.removeEventListener:return s.removeEventListener(o);default:return void s.addToQueue(n,a,o)}},this.getPingRequest=function(e){var t={gppVersion:1,cmpStatus:"stub",cmpDisplayStatus:"hidden",apiSupport:["uspcav1","uspvav1"],currentAPI:"",cmpId:Number.parseInt("28")};return e&&e(t,!0),t},this.addFrame=function(e){var t,i=s.win.document,n=Boolean(s.win.frames[e]);return n||(i.body?((t=i.createElement("iframe")).style.cssText="display:none",t.name=e