var SchainValidator={validateSchainString:function(n){if(!n||"string"!=typeof n)return!1;if(/\s/.test(n))return console.warn("Invalid schain: String cannot contain spaces"),!1;var e=n.split("!"),a=e.length;if(a<2)return console.warn("Invalid schain: Contains 0 nodes"),!1;for(var i,t=!0,r=0;r."),!1):(console.warn("Invalid schain: There must be exactly 2 properties before 1st node: version and complete flag"),!1):function(n,e){if(n.length<3||!n[0]||!n[1]||!n[2]){console.warn("Invalid schain: Schain node "+e+" does not have the minimum number of properties. asi, sid, and hp are required");return false}if(n[0].startsWith("http:")||n[0].indexOf("/")>-1){console.warn("Invalid schain: Schain node "+e+" asi should be the canonical domain name and exclude http and https");return false}if(n[1].length>64){console.warn("Invalid schain: Schain node "+e+" sid cannot be longer than 64 characters");return false}return 0==n[2]||1==n[2]?!0:(console.warn("Invalid schain: Schain node "+e+" hp must be either 0 or 1"),!1)}(o,r);return t}};var ConsentManagement=function(n){var i=[],r={},o=[],c=[],p=[],u={gdpr:{locator:"__cmpLocator",functionName:"__cmp",command:"getConsentData",parameter:{name:"parameter",value:null},cb:function(n,a){m(n,a,"gdpr")},callName:"__cmpCall",returnName:"__cmpReturn"},tcf:{locator:"__tcfapiLocator",functionName:"__tcfapi",command:"addEventListener",parameter:{name:"version",value:2},cb:function(n,a){!a||"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||m({consentData:n.tcString,gdprApplies:n.gdprApplies},a,"tcf")},callName:"__tcfapiCall",returnName:"__tcfapiReturn"},ccpa:{locator:"__uspapiLocator",functionName:"__uspapi",command:"getUSPData",parameter:{name:"version",value:1},cb:function(n,a){m(n,a,"ccpa")},callName:"__uspapiCall",returnName:"__uspapiReturn"}};window.gdpr_consent||0===window.gdpr||"0"===window.gdpr?null!==window.gdpr&&void 0!==window.gdpr?r.gdpr={consentData:window.gdpr_consent,gdprApplies:1===Number(window.gdpr)}:r.gdpr=window.gdpr_consent:i.push("gdpr","tcf"),window.us_privacy?r.ccpa={uspString:window.us_privacy}:i.push("ccpa"),i.forEach(function(n,a){r[n]=null,o[a]=!1,c[a]=null});var d,l=!1;function e(n,a,e){return a&&typeof a[n]==typeof e?a[n]:e}function t(n,a){a=e(n,window.rp_account_config?window.rp_account_config.rp_feature_set:void 0,a);return e(n,window.rp_feature_set,a)}function m(n,a,e){var t;l||(t=i.indexOf(e),!(o[t]=!0)!==a&&(r[e]=n),!l&&o.every(function(n){return n})&&(d=d&&clearTimeout(d),s()))}function s(){l||(l=!0,window.removeEventListener("message",_),r.gdpr||!1!==t("allow_auction_without_consent",!0)?n(r):console.warn&&console.warn("SmartTag exiting because it failed to get GDPR consent"))}function _(n){try{for(var a,e,t,r="string"==typeof n.data?JSON.parse(n.data):n.data,o=0;o"+t.script+"<\/script>")},this.renderAdByZone=function(t,e,i){i=this.getAd(t+"/"+e+"/"+i);i&&"ok"==i.status&&i.script&&document.write("