




var __IntegralASDiagnosticCall = (function() {
	try {
		var alreadySent = {};
		return function(code, err, config) {
			try {
				if (!__IASScope.isDomless) {
					try {
						__IASScope.postMessage(
							{
								code,
								name: 'jsdiag',
								origin: 'ias',
							},
							'*'
						);
					} catch (_) {}
				}

				var gen = function(code, err, config) {
					var url = '//diag.adsafeprotected.com/js?';
					try {
						var errMsg = err && err.message ? encodeURIComponent(err.message.replace(/ /g, '-')).substring(0, 200) : '';
						url += 'code:fwjs-diag-' + code;
						url += '&err:' + errMsg;
						url += '&codeanderr:' + code + '_' + errMsg;
						if (config) {
							
							url += '&version:' + config.version || '';
							url += '&server:' + config.mn || '';
							url += '&region:' + config.region || '';
							url += '&mode:' + config.mode || '';
							url += '&forceAppend:' + config.forceAppend || '';
							url += '&asid:' + config.asid || '';
							url += '&anId:' + config.anId || '';
							url += '&advEntityId:' + config.advEntityId || '';
							url += '&pubEntityId:' + config.pubEntityId || '';
							url += '&mobOrTab:' + config.mobOrTab || '';
							url += '&app:' + config.app || '';
							url += '&mobAppWebview:' + config.mobAppWebview || '';
						}
						url += '&domless:' + __IASScope.isDomless;
					} catch (e) {
						url += '&diagx:' + (e && e.message ? e.message.toString().replace(/ /g, '-') : '');
					}
					return url;
				};

				var send = function(url) {
					if (__IASScope.isDomless && __IASOmidVerificationClient && __IASOmidVerificationClient.sendUrl) {
						__IASOmidVerificationClient.sendUrl(url);
					} else {
						var img = new Image();
						img.src = url;
					}
				};
				if (!alreadySent[code] && Math.random() < 0.01) {
					alreadySent[code] = true;
					send(gen(code, err, config));
				}
			} catch (e) {}
		};
	} catch (e) {
		return function() {};
	}
})();





try {

	var __IntegralASConfig = {
		jsDoSplit: false,
		debug: "false",
		jsDiag: 'true',
		version: '19.8.557',
		exchList: {'e1':'nqzryq','e2':'tbbtyrnqf.t.qbhoyrpyvpx','e3':'ehovpbacebwrpg','e4':'chozngvp','e5':'bcrak','e6':'nqoevgr.pbz','e7':'tynz.pbz','e8':'lvryqznantre.pbz','e9':'yvwvg','e10':'nqakf','p11':'ghea.pbz','p12':'zngugnt','p13':'vaivgrzrqvn','p14':'qngnkh','n15':'zrqvn6qrterrf','n16':'dhnagfreir','n17':'esvuho.arg','a18':'napubeserr','a19':'eff2frnepu','a20':'mgfgngvp.pbz','n21':'ovq.npr.nqiregvfvat','e22':'wnfba','v23':'fcbgkpqa','v24':'ogeyy','v25':'yvirenvy','v26':'nqncgi','v27':'nqnc.gi','n29':'qbzqrk.pbz','n30':'ernyih.arg','d31':'cvengronl','d32':'cebklonl','d33':'onlcebkl','d34':'cvengrcebkl','d35':'cebklcvengr','d36':'onlcvengr','n37':'tjnyyrg','p39':'j55p.arg','p40':'c0l.pa','p41':'vcvalbh.pbz','p42':'c0lwferaqre'},
		sp_cdnDomain: 'cdn.adsafeprotected.com',
		sp_cdnScripts: {xsca: "static.adsafeprotected.com/xsca.17.4.85.js", sca: "static.adsafeprotected.com/sca.17.6.4.js", main: "static.adsafeprotected.com/main.19.8.557.js"},
		protocol: 'https',
		jsref: "https:\/\/74dd9869f3f78da8800b09614803efba.safeframe.googlesyndication.com\/",
		asid: "578bf03d-bd65-11ef-80e5-6a655799a31b",
		allowViewability: "true",
		jsFeatures: "viewabilityready,rattie,exch,usedtdomain,resolution,usetpl,idMap,offscreen,everySecond:1,slid,fm2:1,largeAd,chromeNativeIO,ios,ancestor,avmm,avgrn,swapids,pIntervals:10,usesca,bustediframe,impFailSafe,yieldmo,sfdetect,pmdetect,novidnodeerr:5,viewabilityOptimization,usehaps,customMetric,sizmek,celtra,groupmCM,avidPropertiesInImpression,abcAudit,mrcAudit:1,bbs,bas,spg,exitOASRSEarly:1,encodeInvalidUrlChars,recoverOmidLostTime,forceKeepGoogleAdNode",
		minimizeCalls: "false",
		adWidth: "300",
		adHeight: "250",
		forceAppend: "false",
		forceNoIframe: false,
		sp_imp_maxLength: 10000,
		sp_imp_jsInfo_minLength: 200,
		_onInViewMRC15: __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
		_onInViewMRC: __IntegralASConfig && __IntegralASConfig.onInViewMRC,
		_onMeasurable: __IntegralASConfig && __IntegralASConfig.onMeasurable,
		_onAPIResult: __IntegralASConfig && __IntegralASConfig.onAPIResult,
		_onInViewFull: __IntegralASConfig && __IntegralASConfig.onInViewFull,
		_onSuspicious: __IntegralASConfig && __IntegralASConfig.onSuspicious,
		_onInViewMRC5: __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
		reqquery: "",
		mode: "rjss",
		requrl: "",
		dtBaseURL: "https:\/\/dt.adsafeprotected.com\/dt?advEntityId=2101562",
		adsafeSrc: "https:\/\/fw.adsafeprotected.com\/rfw\/track.adform.net\/2101562\/83263151\/adfscript\/?bn=77253374&ias_dspID=3&ias_campId=1019205106&ias_pubId=pub-1601477034266482&ias_chanId=1&ias_placementId=21876246222&bidurl=https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-web-server-micropython\/&ias_dealId=&ias_xappb=&adsafe_par&ias_impId=v4~~ABAjH0iVJ_WWcbTuPclU2_420oqN",
		tpiLookupURL: "",
		getTpl: "false",
		use100v: false,
		useBapiCallback: "",
		useViewabilityNotification: "",
		scriptUrl: "https:\/\/fw.adsafeprotected.com\/rjss\/track.adform.net\/2101562\/83263151\/adfscript\/?bn=77253374&ias_dspID=3&ias_campId=1019205106&ias_pubId=pub-160147703",
		accountForSadImps: '',
		fwMonitoring: 'false',
		mn: "jsserver-primary-d476b99d6-9fjpk",
		mobOrTab: false,
		app: false,
		mobAppWebview: false,
		mobFwUrl: "https:\/\/mobile.adsafeprotected.com\/internal\/blocking\/app\/initial\/2101562\/83263151?redirectUrl=https%3A%2F%2Ftrack.adform.net%2Fadfscript%2F%3Fbn%3D77253374%26ias_xappb%3D&bidurl=https%3A%2F%2Frandomnerdtutorials.com%2Fraspberry-pi-pico-web-server-micropython%2F&ias_impId=v4~~ABAjH0iVJ_WWcbTuPclU2_420oqN&ias_pubId=pub-1601477034266482&ias_placementId=21876246222&ias_chanId=1&ias_dspId=3&ias_dealId=&ias_campId=1019205106&adsafe_par=",
		anId: '',
		advEntityId: '2101562',
		pubEntityId: '83263151',
		videoId: '',
		rts: {},
		customViewability: [{"id":"qktrf1","tiv":2,"minunit":2,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["display"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"qktrf2","tiv":3,"sound":"any","minunit":3,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["video"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"rHRbA1","tiv":0,"minunit":0,"thresholds":[{"piv":0,"lb":0}],"mediaTypes":["display"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"rHRbA2","tiv":"15|50%","sound":"any","qiv":[2],"minunit":0,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["video"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"kfMms1","tiv":300,"minunit":1,"thresholds":[{"piv":100,"lb":0}],"mediaTypes":["display"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]},{"id":"kfMms2","qiv":[4],"sound":"any","minunit":1,"thresholds":[{"piv":50,"lb":0}],"mediaTypes":["video"],"deviceGroups":["desktop","mobile"],"distributionChannels":["web","app"]}],
		serverSideAppDetection: [],
		groupm_native_publisher: false,
		integration: null,
		staticServer: '\/\/static.adsafeprotected.com\/',
		passback: '',
		iasProxyPartnerDomain: '',
		region: 'ie'
	};

try {


	

	__IASScope = typeof window !== "undefined" ? window : this;
	
	__IntegralASConfig.isResolved = !!__IntegralASConfig.jsFeatures;
	__IntegralASConfig.staticMode = !__IntegralASConfig.isResolved;
	__IntegralASConfig.birthdate = new Date().getTime();
	__IntegralASConfig.perfBirth = (typeof __IASScope.performance !== "undefined" && typeof __IASScope.performance.now === 'function') ? __IASScope.performance.now() : null;




;(function(omidGlobal, factory, exports) {
  // CommonJS support
  if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
    factory(omidGlobal, exports);

  // If neither AMD nor CommonJS are used, export to a versioned name in the
  // global context.
  } else {
    var exports = {};
    var versions = ['1.4.9-iab4257'];
    var additionalVersionString = '';
    if (!!additionalVersionString) {
       versions.push(additionalVersionString);
    }

    factory(omidGlobal, exports);

    function deepFreeze(object) {
      for (var key in object) {
        if (object.hasOwnProperty(key)) {
          object[key] = deepFreeze(object[key]);
        }
      }
      return Object.freeze(object);
    }

    // Inject and freeze the exported components of omid.
    for (var key in exports) {
      if (exports.hasOwnProperty(key)) {
        if (Object.getOwnPropertyDescriptor(omidGlobal, key) == null) {
          // Define the top level property in the global scope
          Object.defineProperty(omidGlobal, key, {
//			value: {},       Removed trailing comma for build
            value: {}
          });
        }
        versions.forEach(function(version) {
          if (Object.getOwnPropertyDescriptor(omidGlobal[key], version) == null) {
            var frozenObject = deepFreeze(exports[key]);
            // Define the object exports keyed-off versions
            Object.defineProperty(omidGlobal[key], version, {
              get: function () {
                return frozenObject;
              },
//            enumerable: true,       Removed trailing comma for build
              enumerable: true
            });
          }
        });
      }
    }
  }
}(typeof global === 'undefined' ? this : global, function(omidGlobal, omidExports) {
  var $jscomp = $jscomp || {};
$jscomp.scope = {};
$jscomp.createTemplateTagFirstArg = function(a) {
  return a.raw = a;
};
$jscomp.createTemplateTagFirstArgWithRaw = function(a, b) {
  a.raw = b;
  return a;
};
$jscomp.arrayIteratorImpl = function(a) {
  var b = 0;
  return function() {
    return b < a.length ? {done:!1, value:a[b++],} : {done:!0};
  };
};
$jscomp.arrayIterator = function(a) {
  return {next:$jscomp.arrayIteratorImpl(a)};
};
$jscomp.makeIterator = function(a) {
  var b = "undefined" != typeof Symbol && Symbol.iterator && a[Symbol.iterator];
  if (b) {
    return b.call(a);
  }
  if ("number" == typeof a.length) {
    return $jscomp.arrayIterator(a);
  }
  throw Error(String(a) + " is not an iterable or ArrayLike");
};
$jscomp.arrayFromIterator = function(a) {
  for (var b, c = []; !(b = a.next()).done;) {
    c.push(b.value);
  }
  return c;
};
$jscomp.arrayFromIterable = function(a) {
  return a instanceof Array ? a : $jscomp.arrayFromIterator($jscomp.makeIterator(a));
};
$jscomp.ASSUME_ES5 = !1;
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
$jscomp.ASSUME_NO_NATIVE_SET = !1;
$jscomp.SIMPLE_FROUND_POLYFILL = !1;
$jscomp.ISOLATE_POLYFILLS = !1;
$jscomp.FORCE_POLYFILL_PROMISE = !1;
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
$jscomp.objectCreate = $jscomp.ASSUME_ES5 || "function" == typeof Object.create ? Object.create : function(a) {
  var b = function() {
  };
  b.prototype = a;
  return new b();
};
$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {
  if (a == Array.prototype || a == Object.prototype) {
    return a;
  }
  a[b] = c.value;
  return a;
};
$jscomp.getGlobal = function(a) {
  a = ["object" == typeof globalThis && globalThis, a, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global,];
  for (var b = 0; b < a.length; ++b) {
    var c = a[b];
    if (c && c.Math == Math) {
      return c;
    }
  }
  throw Error("Cannot find global object");
};
$jscomp.global = $jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE = "function" === typeof Symbol && "symbol" === typeof Symbol("x");
$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
$jscomp.polyfills = {};
$jscomp.propertyToPolyfillSymbol = {};
$jscomp.POLYFILL_PREFIX = "$jscp$";
var $jscomp$lookupPolyfilledValue = function(a, b, c) {
  if (!c || null != a) {
    c = $jscomp.propertyToPolyfillSymbol[b];
    if (null == c) {
      return a[b];
    }
    c = a[c];
    return void 0 !== c ? c : a[b];
  }
};
$jscomp.polyfill = function(a, b, c, d) {
  b && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(a, b, c, d) : $jscomp.polyfillUnisolated(a, b, c, d));
};
$jscomp.polyfillUnisolated = function(a, b, c, d) {
  c = $jscomp.global;
  a = a.split(".");
  for (d = 0; d < a.length - 1; d++) {
    var e = a[d];
    if (!(e in c)) {
      return;
    }
    c = c[e];
  }
  a = a[a.length - 1];
  d = c[a];
  b = b(d);
  b != d && null != b && $jscomp.defineProperty(c, a, {configurable:!0, writable:!0, value:b});
};
$jscomp.polyfillIsolated = function(a, b, c, d) {
  var e = a.split(".");
  a = 1 === e.length;
  d = e[0];
  d = !a && d in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
  for (var f = 0; f < e.length - 1; f++) {
    var g = e[f];
    if (!(g in d)) {
      return;
    }
    d = d[g];
  }
  e = e[e.length - 1];
  c = $jscomp.IS_SYMBOL_NATIVE && "es6" === c ? d[e] : null;
  b = b(c);
  null != b && (a ? $jscomp.defineProperty($jscomp.polyfills, e, {configurable:!0, writable:!0, value:b}) : b !== c && (void 0 === $jscomp.propertyToPolyfillSymbol[e] && (c = 1E9 * Math.random() >>> 0, $jscomp.propertyToPolyfillSymbol[e] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(e) : $jscomp.POLYFILL_PREFIX + c + "$" + e), $jscomp.defineProperty(d, $jscomp.propertyToPolyfillSymbol[e], {configurable:!0, writable:!0, value:b})));
};
$jscomp.getConstructImplementation = function() {
  function a() {
    function c() {
    }
    new c();
    Reflect.construct(c, [], function() {
    });
    return new c() instanceof c;
  }
  if ($jscomp.TRUST_ES6_POLYFILLS && "undefined" != typeof Reflect && Reflect.construct) {
    if (a()) {
      return Reflect.construct;
    }
    var b = Reflect.construct;
    return function(c, d, e) {
      c = b(c, d);
      e && Reflect.setPrototypeOf(c, e.prototype);
      return c;
    };
  }
  return function(c, d, e) {
    void 0 === e && (e = c);
    e = $jscomp.objectCreate(e.prototype || Object.prototype);
    return Function.prototype.apply.call(c, e, d) || e;
  };
};
$jscomp.construct = {valueOf:$jscomp.getConstructImplementation}.valueOf();
$jscomp.underscoreProtoCanBeSet = function() {
  var a = {a:!0}, b = {};
  try {
    return b.__proto__ = a, b.a;
  } catch (c) {
  }
  return !1;
};
$jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(a, b) {
  a.__proto__ = b;
  if (a.__proto__ !== b) {
    throw new TypeError(a + " is not extensible");
  }
  return a;
} : null;
$jscomp.inherits = function(a, b) {
  a.prototype = $jscomp.objectCreate(b.prototype);
  a.prototype.constructor = a;
  if ($jscomp.setPrototypeOf) {
    var c = $jscomp.setPrototypeOf;
    c(a, b);
  } else {
    for (c in b) {
      if ("prototype" != c) {
        if (Object.defineProperties) {
          var d = Object.getOwnPropertyDescriptor(b, c);
          d && Object.defineProperty(a, c, d);
        } else {
          a[c] = b[c];
        }
      }
    }
  }
  a.superClass_ = b.prototype;
};
$jscomp.getRestArguments = function() {
  for (var a = Number(this), b = [], c = a; c < arguments.length; c++) {
    b[c - a] = arguments[c];
  }
  return b;
};
$jscomp.polyfill("Reflect", function(a) {
  return a ? a : {};
}, "es6", "es3");
$jscomp.polyfill("Reflect.construct", function(a) {
  return $jscomp.construct;
}, "es6", "es3");
$jscomp.polyfill("Reflect.setPrototypeOf", function(a) {
  if (a) {
    return a;
  }
  if ($jscomp.setPrototypeOf) {
    var b = $jscomp.setPrototypeOf;
    return function(c, d) {
      try {
        return b(c, d), !0;
      } catch (e) {
        return !1;
      }
    };
  }
  return null;
}, "es6", "es5");
$jscomp.owns = function(a, b) {
  return Object.prototype.hasOwnProperty.call(a, b);
};
$jscomp.polyfill("Object.values", function(a) {
  return a ? a : function(b) {
    var c = [], d;
    for (d in b) {
      $jscomp.owns(b, d) && c.push(b[d]);
    }
    return c;
  };
}, "es8", "es3");
var module$exports$omid$common$constants = {AdEventType:{IMPRESSION:"impression", LOADED:"loaded", GEOMETRY_CHANGE:"geometryChange", SESSION_START:"sessionStart", SESSION_ERROR:"sessionError", SESSION_FINISH:"sessionFinish", MEDIA:"media", VIDEO:"video", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange", 
PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction", STATE_CHANGE:"stateChange",}, MediaEventType:{LOADED:"loaded", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange", PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction",}, ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", 
UNSPECIFIED:"unspecified", LOADED:"loaded", BEGIN_TO_RENDER:"beginToRender", ONE_PIXEL:"onePixel", VIEWABLE:"viewable", AUDIBLE:"audible", OTHER:"other",}, ErrorType:{GENERIC:"generic", VIDEO:"video", MEDIA:"media",}, AdSessionType:{NATIVE:"native", HTML:"html", JAVASCRIPT:"javascript",}, EventOwner:{NATIVE:"native", JAVASCRIPT:"javascript", NONE:"none",}, AccessMode:{FULL:"full", DOMAIN:"domain", LIMITED:"limited",}, AppState:{BACKGROUNDED:"backgrounded", FOREGROUNDED:"foregrounded",}, Environment:{APP:"app", 
WEB:"web",}, DeviceCategory:{CTV:"ctv", DESKTOP:"desktop", MOBILE:"mobile", OTHER:"other",}, InteractionType:{CLICK:"click", INVITATION_ACCEPT:"invitationAccept",}, CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", HTML_DISPLAY:"htmlDisplay", NATIVE_DISPLAY:"nativeDisplay", VIDEO:"video", AUDIO:"audio",}, MediaType:{DISPLAY:"display", VIDEO:"video",}, Reason:{NOT_FOUND:"notFound", HIDDEN:"hidden", BACKGROUNDED:"backgrounded", VIEWPORT:"viewport", OBSTRUCTED:"obstructed", CLIPPED:"clipped", 
UNMEASURABLE:"unmeasurable", NO_WINDOW_FOCUS:"noWindowFocus", NO_OUTPUT_DEVICE:"noOutputDevice",}, SupportedFeatures:{CONTAINER:"clid", VIDEO:"vlid",}, VideoPosition:{PREROLL:"preroll", MIDROLL:"midroll", POSTROLL:"postroll", STANDALONE:"standalone",}, VideoPlayerState:{MINIMIZED:"minimized", COLLAPSED:"collapsed", NORMAL:"normal", EXPANDED:"expanded", FULLSCREEN:"fullscreen",}, NativeViewKeys:{X:"x", LEFT:"left", Y:"y", TOP:"top", WIDTH:"width", HEIGHT:"height", AD_SESSION_ID:"adSessionId", IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor", 
CLIPS_TO_BOUNDS:"clipsToBounds", CHILD_VIEWS:"childViews", END_X:"endX", END_Y:"endY", OBSTRUCTIONS:"obstructions", OBSTRUCTION_CLASS:"obstructionClass", OBSTRUCTION_PURPOSE:"obstructionPurpose", OBSTRUCTION_REASON:"obstructionReason", PIXELS:"pixels", HAS_WINDOW_FOCUS:"hasWindowFocus",}, MeasurementStateChangeSource:{CONTAINER:"container", CREATIVE:"creative",}, ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element",}, CommunicationType:{NONE:"NONE", DIRECT:"DIRECT", POST_MESSAGE:"POST_MESSAGE",}, 
OmidImplementer:{OMSDK:"omsdk",}, MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow",}};
var module$contents$omid$common$InternalMessage_GUID_KEY = "omid_message_guid", module$contents$omid$common$InternalMessage_METHOD_KEY = "omid_message_method", module$contents$omid$common$InternalMessage_VERSION_KEY = "omid_message_version", module$contents$omid$common$InternalMessage_ARGS_KEY = "omid_message_args", module$exports$omid$common$InternalMessage = function(a, b, c, d) {
  this.guid = a;
  this.method = b;
  this.version = c;
  this.args = d;
};
module$exports$omid$common$InternalMessage.isValidSerializedMessage = function(a) {
  return !!a && void 0 !== a[module$contents$omid$common$InternalMessage_GUID_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_METHOD_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_VERSION_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_GUID_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_METHOD_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_VERSION_KEY] && (void 0 === a[module$contents$omid$common$InternalMessage_ARGS_KEY] || 
  void 0 !== a[module$contents$omid$common$InternalMessage_ARGS_KEY]);
};
module$exports$omid$common$InternalMessage.deserialize = function(a) {
  return new module$exports$omid$common$InternalMessage(a[module$contents$omid$common$InternalMessage_GUID_KEY], a[module$contents$omid$common$InternalMessage_METHOD_KEY], a[module$contents$omid$common$InternalMessage_VERSION_KEY], a[module$contents$omid$common$InternalMessage_ARGS_KEY]);
};
module$exports$omid$common$InternalMessage.prototype.serialize = function() {
  var a = {};
  a = (a[module$contents$omid$common$InternalMessage_GUID_KEY] = this.guid, a[module$contents$omid$common$InternalMessage_METHOD_KEY] = this.method, a[module$contents$omid$common$InternalMessage_VERSION_KEY] = this.version, a);
  void 0 !== this.args && (a[module$contents$omid$common$InternalMessage_ARGS_KEY] = this.args);
  return a;
};
var module$exports$omid$common$Communication = function(a) {
  this.to = a;
  this.communicationType_ = module$exports$omid$common$constants.CommunicationType.NONE;
};
module$exports$omid$common$Communication.prototype.sendMessage = function(a, b) {
};
module$exports$omid$common$Communication.prototype.handleMessage = function(a, b) {
  if (this.onMessage) {
    this.onMessage(a, b);
  }
};
module$exports$omid$common$Communication.prototype.serialize = function(a) {
  return JSON.stringify(a);
};
module$exports$omid$common$Communication.prototype.deserialize = function(a) {
  return JSON.parse(a);
};
module$exports$omid$common$Communication.prototype.isDirectCommunication = function() {
  return this.communicationType_ === module$exports$omid$common$constants.CommunicationType.DIRECT;
};
module$exports$omid$common$Communication.prototype.isCrossOrigin = function() {
};
var module$exports$omid$common$logger = {};
function module$contents$omid$common$logger_error() {
  var a = $jscomp.getRestArguments.apply(0, arguments);
  module$contents$omid$common$logger_executeLog(function() {
    throw new (Function.prototype.bind.apply(Error, [null, "Could not complete the test successfully - "].concat($jscomp.arrayFromIterable(a))))();
  }, function() {
    return console.error.apply(console, $jscomp.arrayFromIterable(a));
  });
}
function module$contents$omid$common$logger_debug() {
  var a = $jscomp.getRestArguments.apply(0, arguments);
  module$contents$omid$common$logger_executeLog(function() {
  }, function() {
    return console.error.apply(console, $jscomp.arrayFromIterable(a));
  });
}
function module$contents$omid$common$logger_executeLog(a, b) {
  "undefined" !== typeof jasmine && jasmine ? a() : "undefined" !== typeof console && console && console.error && b();
}
module$exports$omid$common$logger.error = module$contents$omid$common$logger_error;
module$exports$omid$common$logger.debug = module$contents$omid$common$logger_debug;
var module$exports$omid$common$eventTypedefs = {};
var module$exports$omid$common$version = {ApiVersion:"1.0", Version:"1.4.9-iab4257"};
var module$exports$omid$common$argsChecker = {};
function module$contents$omid$common$argsChecker_assertTruthyString(a, b) {
  if (!b) {
    throw Error("Value for " + a + " is undefined, null or blank.");
  }
  if ("string" !== typeof b && !(b instanceof String)) {
    throw Error("Value for " + a + " is not a string.");
  }
  if ("" === b.trim()) {
    throw Error("Value for " + a + " is empty string.");
  }
}
function module$contents$omid$common$argsChecker_assertNotNullObject(a, b) {
  if (null == b) {
    throw Error("Value for " + a + " is undefined or null");
  }
}
function module$contents$omid$common$argsChecker_assertNumber(a, b) {
  if (null == b) {
    throw Error(a + " must not be null or undefined.");
  }
  if ("number" !== typeof b || isNaN(b)) {
    throw Error("Value for " + a + " is not a number");
  }
}
function module$contents$omid$common$argsChecker_assertNumberBetween(a, b, c, d) {
  module$contents$omid$common$argsChecker_assertNumber(a, b);
  if (b < c || b > d) {
    throw Error("Value for " + a + " is outside the range [" + c + "," + d + "]");
  }
}
function module$contents$omid$common$argsChecker_assertFunction(a, b) {
  if (!b) {
    throw Error(a + " must not be truthy.");
  }
}
function module$contents$omid$common$argsChecker_assertPositiveNumber(a, b) {
  module$contents$omid$common$argsChecker_assertNumber(a, b);
  if (0 > b) {
    throw Error(a + " must be a positive number.");
  }
}
module$exports$omid$common$argsChecker.assertTruthyString = module$contents$omid$common$argsChecker_assertTruthyString;
module$exports$omid$common$argsChecker.assertNotNullObject = module$contents$omid$common$argsChecker_assertNotNullObject;
module$exports$omid$common$argsChecker.assertNumber = module$contents$omid$common$argsChecker_assertNumber;
module$exports$omid$common$argsChecker.assertNumberBetween = module$contents$omid$common$argsChecker_assertNumberBetween;
module$exports$omid$common$argsChecker.assertFunction = module$contents$omid$common$argsChecker_assertFunction;
module$exports$omid$common$argsChecker.assertPositiveNumber = module$contents$omid$common$argsChecker_assertPositiveNumber;
var module$exports$omid$common$VersionUtils = {}, module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER = 3;
function module$contents$omid$common$VersionUtils_isValidVersion(a) {
  return /\d+\.\d+\.\d+(-.*)?/.test(a);
}
function module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, b) {
  a = a.split("-")[0].split(".");
  b = b.split("-")[0].split(".");
  for (var c = 0; c < module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER; c++) {
    var d = parseInt(a[c], 10), e = parseInt(b[c], 10);
    if (d > e) {
      break;
    } else if (d < e) {
      return !1;
    }
  }
  return !0;
}
module$exports$omid$common$VersionUtils.isValidVersion = module$contents$omid$common$VersionUtils_isValidVersion;
module$exports$omid$common$VersionUtils.versionGreaterOrEqual = module$contents$omid$common$VersionUtils_versionGreaterOrEqual;
var module$exports$omid$common$ArgsSerDe = {}, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION = "1.0.3";
function module$contents$omid$common$ArgsSerDe_serializeMessageArgs(a, b) {
  return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b : JSON.stringify(b);
}
function module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(a, b) {
  return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b ? b : [] : b && "string" === typeof b ? JSON.parse(b) : [];
}
module$exports$omid$common$ArgsSerDe.serializeMessageArgs = module$contents$omid$common$ArgsSerDe_serializeMessageArgs;
module$exports$omid$common$ArgsSerDe.deserializeMessageArgs = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs;
var module$exports$omid$common$guid = {};
function module$contents$omid$common$guid_generateGuid() {
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) {
    var b = 16 * Math.random() | 0;
    a = "y" === a ? (b & 3 | 8).toString(16) : b.toString(16);
    return a;
  });
}
module$exports$omid$common$guid.generateGuid = module$contents$omid$common$guid_generateGuid;
var module$exports$omid$common$DetectOmid = {OMID_PRESENT_FRAME_NAME:"omid_v1_present", OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web", OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app", getEnvironmentIframeName:function(a) {
  var b = {};
  return (b[module$exports$omid$common$constants.Environment.APP] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP, b[module$exports$omid$common$constants.Environment.WEB] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, b)[a];
}};
function module$contents$omid$common$DetectOmid_isIframePresent(a, b) {
  try {
    return a.frames && !!a.frames[b];
  } catch (c) {
    return !1;
  }
}
module$exports$omid$common$DetectOmid.isOmidPresent = function(a) {
  return [module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(b) {
    return module$contents$omid$common$DetectOmid_isIframePresent(a, b);
  });
};
module$exports$omid$common$DetectOmid.getOmidEnvironment = function(a) {
  for (var b = $jscomp.makeIterator(Object.values(module$exports$omid$common$constants.Environment)), c = b.next(); !c.done; c = b.next()) {
    c = c.value;
    var d = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(c);
    if (module$contents$omid$common$DetectOmid_isIframePresent(a, d)) {
      return c;
    }
  }
  return null;
};
function module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b) {
  a.document.write('<iframe style="display:none" id="' + (b + '" name="' + b + '" sandbox></iframe>'));
}
module$exports$omid$common$DetectOmid.declareOmidPresence = function(a, b) {
  a.frames && a.document && ![module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(c) {
    return !!a.frames[c];
  }) && (null == a.document.body && module$exports$omid$common$DetectOmid.isMutationObserverAvailable_(a) ? module$exports$omid$common$DetectOmid.registerMutationObserver_(a, b) : (b = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), a.document.body ? (module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, b)) : (module$contents$omid$common$DetectOmid_writePresenceIframe_(a, 
  module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b))));
};
module$exports$omid$common$DetectOmid.appendPresenceIframe_ = function(a, b) {
  var c = a.document.createElement("iframe");
  c.id = b;
  c.name = b;
  c.style.display = "none";
  c.sandbox = "";
  a.document.body.appendChild(c);
};
module$exports$omid$common$DetectOmid.isMutationObserverAvailable_ = function(a) {
  return "MutationObserver" in a;
};
module$exports$omid$common$DetectOmid.registerMutationObserver_ = function(a, b) {
  var c = new MutationObserver(function(d) {
    d.forEach(function(e) {
      "BODY" === e.addedNodes[0].nodeName && (e = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, e), c.disconnect());
    });
  });
  c.observe(a.document.documentElement, {childList:!0});
};
var module$exports$omid$common$serviceMethodUtils = {}, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix = {SESSION_SERVICE:"SessionService.", VERIFICATION_SERVICE:"VerificationService.",};
function module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod(a) {
  return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a) {
  return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod(a) {
  return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a);
}
function module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod(a) {
  return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a) {
  return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE);
}
function module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod(a) {
  return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a);
}
function module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, b) {
  return b + a;
}
function module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, b) {
  return (a = a.match(new RegExp("^" + b + "(.*)"))) && a[1];
}
module$exports$omid$common$serviceMethodUtils.getPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod;
module$exports$omid$common$serviceMethodUtils.getPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod;
module$exports$omid$common$serviceMethodUtils.getUnprefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod;
module$exports$omid$common$serviceMethodUtils.getUnprefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod;
module$exports$omid$common$serviceMethodUtils.isPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod;
module$exports$omid$common$serviceMethodUtils.isPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod;
var module$exports$omid$common$OmidGlobalProvider = {};
function module$contents$omid$common$OmidGlobalProvider_getOmidGlobal() {
  if ("undefined" !== typeof omidGlobal && omidGlobal) {
    return omidGlobal;
  }
  if ("undefined" !== typeof global && global) {
    return global;
  }
  if ("undefined" !== typeof window && window) {
    return window;
  }
  if ("undefined" !== typeof globalThis && globalThis) {
    return globalThis;
  }
  var a = Function("return this")();
  if (a) {
    return a;
  }
  throw Error("Could not determine global object context.");
}
module$exports$omid$common$OmidGlobalProvider.omidGlobal = module$contents$omid$common$OmidGlobalProvider_getOmidGlobal();
var module$exports$omid$common$exporter = {};
function module$contents$omid$common$exporter_getOmidExports() {
  return "undefined" === typeof omidExports ? null : omidExports;
}
function module$contents$omid$common$exporter_getOrCreateName(a, b) {
  return a && (a[b] || (a[b] = {}));
}
function module$contents$omid$common$exporter_packageExport(a, b, c) {
  if (c = void 0 === c ? module$contents$omid$common$exporter_getOmidExports() : c) {
    a = a.split("."), a.slice(0, a.length - 1).reduce(module$contents$omid$common$exporter_getOrCreateName, c)[a[a.length - 1]] = b;
  }
}
module$exports$omid$common$exporter.packageExport = module$contents$omid$common$exporter_packageExport;
var module$exports$omid$common$windowUtils = {};
function module$contents$omid$common$windowUtils_isValidWindow(a) {
  return null != a && "undefined" !== typeof a.top && null != a.top;
}
function module$contents$omid$common$windowUtils_isCrossOrigin(a) {
  if (a === module$exports$omid$common$OmidGlobalProvider.omidGlobal) {
    return !1;
  }
  try {
    if ("undefined" === typeof a.location.hostname) {
      return !0;
    }
    module$contents$omid$common$windowUtils_isSameOriginForIE(a);
  } catch (b) {
    return !0;
  }
  return !1;
}
function module$contents$omid$common$windowUtils_isSameOriginForIE(a) {
  return "" === a.x || "" !== a.x;
}
function module$contents$omid$common$windowUtils_resolveGlobalContext(a) {
  "undefined" === typeof a && "undefined" !== typeof window && window && (a = window);
  return module$contents$omid$common$windowUtils_isValidWindow(a) ? a : module$exports$omid$common$OmidGlobalProvider.omidGlobal;
}
function module$contents$omid$common$windowUtils_resolveTopWindowContext(a) {
  return module$contents$omid$common$windowUtils_isValidWindow(a) ? a.top : module$exports$omid$common$OmidGlobalProvider.omidGlobal;
}
function module$contents$omid$common$windowUtils_isTopWindowAccessible(a) {
  try {
    return a.top.location.href ? !0 : !1;
  } catch (b) {
    return !1;
  }
}
function module$contents$omid$common$windowUtils_removeDomElements(a) {
  a.type === module$exports$omid$common$constants.AdEventType.SESSION_START && ("undefined" !== typeof a.data.context.videoElement && (a.data.context.videoElement = "DOM Video Element - Present but not parsed to avoid parse error"), "undefined" !== typeof a.data.context.slotElement && (a.data.context.slotElement = "DOM Slot Element - Present but not parsed to avoid parse error"));
  return a;
}
function module$contents$omid$common$windowUtils_evaluatePageUrl(a) {
  if (!module$contents$omid$common$windowUtils_isValidWindow(a)) {
    return null;
  }
  try {
    var b = a.top;
    return module$contents$omid$common$windowUtils_isCrossOrigin(b) ? null : b.location.href;
  } catch (c) {
    return null;
  }
}
module$exports$omid$common$windowUtils.evaluatePageUrl = module$contents$omid$common$windowUtils_evaluatePageUrl;
module$exports$omid$common$windowUtils.isCrossOrigin = module$contents$omid$common$windowUtils_isCrossOrigin;
module$exports$omid$common$windowUtils.removeDomElements = module$contents$omid$common$windowUtils_removeDomElements;
module$exports$omid$common$windowUtils.resolveGlobalContext = module$contents$omid$common$windowUtils_resolveGlobalContext;
module$exports$omid$common$windowUtils.resolveTopWindowContext = module$contents$omid$common$windowUtils_resolveTopWindowContext;
module$exports$omid$common$windowUtils.isTopWindowAccessible = module$contents$omid$common$windowUtils_isTopWindowAccessible;
var module$exports$omid$common$DirectCommunication = function(a) {
  module$exports$omid$common$Communication.call(this, a);
  this.communicationType_ = module$exports$omid$common$constants.CommunicationType.DIRECT;
  this.handleExportedMessage = module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage.bind(this);
};
$jscomp.inherits(module$exports$omid$common$DirectCommunication, module$exports$omid$common$Communication);
module$exports$omid$common$DirectCommunication.prototype.sendMessage = function(a, b) {
  b = void 0 === b ? this.to : b;
  if (!b) {
    throw Error("Message destination must be defined at construction time or when sending the message.");
  }
  b.handleExportedMessage(a.serialize(), this);
};
module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage = function(a, b) {
  module$exports$omid$common$InternalMessage.isValidSerializedMessage(a) && this.handleMessage(module$exports$omid$common$InternalMessage.deserialize(a), b);
};
module$exports$omid$common$DirectCommunication.prototype.isCrossOrigin = function() {
  return !1;
};
var module$exports$omid$common$PostMessageCommunication = function(a, b) {
  b = void 0 === b ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : b;
  module$exports$omid$common$Communication.call(this, b);
  var c = this;
  this.communicationType_ = module$exports$omid$common$constants.CommunicationType.POST_MESSAGE;
  a.addEventListener("message", function(d) {
    if ("object" === typeof d.data) {
      var e = d.data;
      module$exports$omid$common$InternalMessage.isValidSerializedMessage(e) && (e = module$exports$omid$common$InternalMessage.deserialize(e), d.source && c.handleMessage(e, d.source));
    }
  });
};
$jscomp.inherits(module$exports$omid$common$PostMessageCommunication, module$exports$omid$common$Communication);
module$exports$omid$common$PostMessageCommunication.isCompatibleContext = function(a) {
  return !!(a && a.addEventListener && a.postMessage);
};
module$exports$omid$common$PostMessageCommunication.prototype.sendMessage = function(a, b) {
  b = void 0 === b ? this.to : b;
  if (!b) {
    throw Error("Message destination must be defined at construction time or when sending the message.");
  }
  b.postMessage(a.serialize(), "*");
};
module$exports$omid$common$PostMessageCommunication.prototype.isCrossOrigin = function() {
  return this.to ? module$contents$omid$common$windowUtils_isCrossOrigin(this.to) : !0;
};
var module$exports$omid$common$serviceCommunication = {}, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME = ["omid", "v1_SessionServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME = ["omid", "v1_VerificationServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME = ["omidVerificationProperties", "serviceWindow"];
function module$contents$omid$common$serviceCommunication_getValueForKeypath(a, b) {
  return b.reduce(function(c, d) {
    return c && c[d];
  }, a);
}
function module$contents$omid$common$serviceCommunication_startServiceCommunication(a, b, c, d) {
  if (!module$contents$omid$common$windowUtils_isCrossOrigin(b)) {
    try {
      var e = module$contents$omid$common$serviceCommunication_getValueForKeypath(b, c);
      if (e) {
        return new module$exports$omid$common$DirectCommunication(e);
      }
    } catch (f) {
    }
  }
  return d(b) ? new module$exports$omid$common$PostMessageCommunication(a, b) : null;
}
function module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, b, c, d) {
  b = $jscomp.makeIterator(b);
  for (var e = b.next(); !e.done; e = b.next()) {
    if (e = module$contents$omid$common$serviceCommunication_startServiceCommunication(a, e.value, c, d)) {
      return e;
    }
  }
  return null;
}
function module$contents$omid$common$serviceCommunication_startSessionServiceCommunication(a, b, c) {
  c = void 0 === c ? module$exports$omid$common$DetectOmid.isOmidPresent : c;
  var d = [a, module$contents$omid$common$windowUtils_resolveTopWindowContext(a)];
  b && d.unshift(b);
  return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, d, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME, c);
}
function module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication(a, b) {
  b = void 0 === b ? module$exports$omid$common$DetectOmid.isOmidPresent : b;
  var c = [], d = module$contents$omid$common$serviceCommunication_getValueForKeypath(a, module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME);
  d && c.push(d);
  c.push(module$contents$omid$common$windowUtils_resolveTopWindowContext(a));
  return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, c, module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME, b);
}
module$exports$omid$common$serviceCommunication.startSessionServiceCommunication = module$contents$omid$common$serviceCommunication_startSessionServiceCommunication;
module$exports$omid$common$serviceCommunication.startVerificationServiceCommunication = module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication;
var module$contents$omid$verificationClient$VerificationClient_VERIFICATION_CLIENT_VERSION = module$exports$omid$common$version.Version, module$contents$omid$verificationClient$VerificationClient_EventCallback;
function module$contents$omid$verificationClient$VerificationClient_getThirdPartyOmid() {
  var a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omid3p;
  return a && "function" === typeof a.registerSessionObserver && "function" === typeof a.addEventListener ? a : null;
}
var module$exports$omid$verificationClient$VerificationClient = function(a) {
  if (this.communication = a || module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication(module$contents$omid$common$windowUtils_resolveGlobalContext())) {
    this.communication.onMessage = this.handleMessage_.bind(this);
  } else {
    if (a = module$contents$omid$verificationClient$VerificationClient_getThirdPartyOmid()) {
      this.omid3p = a;
    }
  }
//----------this.remoteIntervals_ = this.remoteTimeouts_ = 0;
  this.callbackMap_ = {};
  this.imgCache_ = [];
  this.injectionId_ = (a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omidVerificationProperties) ? a.injectionId : void 0;
};
module$exports$omid$verificationClient$VerificationClient.prototype.isSupported = function() {
  return this.getEnvironment() !== module$exports$omid$common$constants.Environment.WEB || this.injectionId_ ? !(!this.communication && !this.omid3p) : !1;
};
module$exports$omid$verificationClient$VerificationClient.prototype.getEnvironment = function() {
  var a = module$contents$omid$common$windowUtils_resolveGlobalContext();
  return this.injectionSource() || (0,module$exports$omid$common$DetectOmid.getOmidEnvironment)(a) || (0,module$exports$omid$common$DetectOmid.getOmidEnvironment)(module$contents$omid$common$windowUtils_resolveTopWindowContext(a));
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectionSource = function() {
  var a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omidVerificationProperties;
  if (a && a.injectionSource) {
    return a.injectionSource;
  }
};
module$exports$omid$verificationClient$VerificationClient.prototype.registerSessionObserver = function(a, b) {
  module$contents$omid$common$argsChecker_assertFunction("functionToExecute", a);
  this.omid3p ? this.omid3p.registerSessionObserver(a, b, this.injectionId_) : this.sendMessage_("addSessionListener", a, b, this.injectionId_);
};
module$exports$omid$verificationClient$VerificationClient.prototype.addEventListener = function(a, b) {
  module$contents$omid$common$argsChecker_assertTruthyString("eventType", a);
  module$contents$omid$common$argsChecker_assertFunction("functionToExecute", b);
  this.omid3p ? this.omid3p.addEventListener(a, b, this.injectionId_) : this.sendMessage_("addEventListener", b, a, this.injectionId_);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendUrl = function(a, b, c) {
  module$contents$omid$common$argsChecker_assertTruthyString("url", a);
  module$exports$omid$common$OmidGlobalProvider.omidGlobal.document && module$exports$omid$common$OmidGlobalProvider.omidGlobal.document.createElement ? this.sendUrlWithImg_(a, b, c) : this.sendMessage_("sendUrl", function(d) {
    d && b ? b() : !d && c && c();
  }, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendUrlWithImg_ = function(a, b, c) {
  var d = this, e = module$exports$omid$common$OmidGlobalProvider.omidGlobal.document.createElement("img");
  this.imgCache_.push(e);
  var f = function(g) {
    var h = d.imgCache_.indexOf(e);
    0 <= h && d.imgCache_.splice(h, 1);
    g && g();
  };
  e.addEventListener("load", f.bind(this, b));
  e.addEventListener("error", f.bind(this, c));
  e.src = a;
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectJavaScriptResource = function(a, b, c) {
  var d = this;
  module$contents$omid$common$argsChecker_assertTruthyString("url", a);
  module$exports$omid$common$OmidGlobalProvider.omidGlobal.document ? this.injectJavascriptResourceUrlInDom_(a, b, c) : this.sendMessage_("injectJavaScriptResource", function(e, f) {
    e ? (d.evaluateJavaScript_(f, a), b()) : (module$contents$omid$common$logger_error("Service failed to load JavaScript resource."), c());
  }, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectJavascriptResourceUrlInDom_ = function(a, b, c) {
  var d = module$exports$omid$common$OmidGlobalProvider.omidGlobal.document, e = d.body;
  d = d.createElement("script");
  d.onload = b;
  d.onerror = c;
  d.src = a;
  d.type = "application/javascript";
  e.appendChild(d);
};
module$exports$omid$verificationClient$VerificationClient.prototype.evaluateJavaScript_ = function(a, b) {
  try {
    eval(a);
  } catch (c) {
    module$contents$omid$common$logger_error('Error evaluating the JavaScript resource from "' + b + '".');
  }
};
module$exports$omid$verificationClient$VerificationClient.prototype.setTimeout = function(a, b) {
  module$contents$omid$common$argsChecker_assertFunction("functionToExecute", a);
  module$contents$omid$common$argsChecker_assertPositiveNumber("timeInMillis", b);
  if (this.hasTimeoutMethods_()) {
    return module$exports$omid$common$OmidGlobalProvider.omidGlobal.setTimeout(a, b);
  }
//----------var c = this.remoteTimeouts_++;
  var c = ((new Date()).getTime() * 1000000) + (Math.floor(Math.random() * 1000000));
  this.sendMessage_("setTimeout", a, c, b);
  return c;
};
module$exports$omid$verificationClient$VerificationClient.prototype.clearTimeout = function(a) {
  module$contents$omid$common$argsChecker_assertPositiveNumber("timeoutId", a);
  this.hasTimeoutMethods_() ? module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearTimeout(a) : this.sendOneWayMessage_("clearTimeout", a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.setInterval = function(a, b) {
  module$contents$omid$common$argsChecker_assertFunction("functionToExecute", a);
  module$contents$omid$common$argsChecker_assertPositiveNumber("timeInMillis", b);
  if (this.hasIntervalMethods_()) {
    return module$exports$omid$common$OmidGlobalProvider.omidGlobal.setInterval(a, b);
  }
//----------var c = this.remoteIntervals_++;
  var c = ((new Date()).getTime() * 1000000) + (Math.floor(Math.random() * 1000000));
  this.sendMessage_("setInterval", a, c, b);
  return c;
};
module$exports$omid$verificationClient$VerificationClient.prototype.clearInterval = function(a) {
  module$contents$omid$common$argsChecker_assertPositiveNumber("intervalId", a);
  this.hasIntervalMethods_() ? module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearInterval(a) : this.sendOneWayMessage_("clearInterval", a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.hasTimeoutMethods_ = function() {
  return "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.setTimeout && "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearTimeout;
};
module$exports$omid$verificationClient$VerificationClient.prototype.hasIntervalMethods_ = function() {
  return "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.setInterval && "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearInterval;
};
module$exports$omid$verificationClient$VerificationClient.prototype.handleMessage_ = function(a, b) {
  b = a.method;
  var c = a.guid;
  a = a.args;
  if ("response" === b && this.callbackMap_[c]) {
    var d = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(module$exports$omid$common$version.Version, a);
    this.callbackMap_[c].apply(this, d);
  }
  "error" === b && window.console && module$contents$omid$common$logger_error(a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendOneWayMessage_ = function(a) {
  var b = $jscomp.getRestArguments.apply(1, arguments);
  this.sendMessage_.apply(this, [a, null].concat($jscomp.arrayFromIterable(b)));
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendMessage_ = function(a, b) {
  var c = $jscomp.getRestArguments.apply(2, arguments);
  if (this.communication) {
    var d = module$contents$omid$common$guid_generateGuid();
    b && (this.callbackMap_[d] = b);
    c = new module$exports$omid$common$InternalMessage(d, module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod(a), module$exports$omid$common$version.Version, module$contents$omid$common$ArgsSerDe_serializeMessageArgs(module$exports$omid$common$version.Version, c));
    this.communication.sendMessage(c);
  }
};
module$contents$omid$common$exporter_packageExport("OmidVerificationClient", module$exports$omid$verificationClient$VerificationClient);

}, typeof exports === 'undefined' ? undefined : exports));



} catch(e) {
	__IntegralASDiagnosticCall('thirdparty', e);
}





	
	__IASScope.isDomless = typeof window === "undefined";
	__IASOmidVerificationClient = { isSupported: function () { return false; } };

	if (typeof __IASScope.OmidVerificationClient !== 'undefined') {
		try {
			__IASOmidVerificationClient = new __IASScope.OmidVerificationClient['1.4.9-iab4257'](); //try standard in-browser instantiation
		}
		catch(e) {
			try {
				__IASOmidVerificationClient = new __IASScope.OmidVerificationClient(); //try domless version which has no version
			}
			catch(e) {
			}
		}
	}

	var isRedirectedStaticCMTag = false;

	if (
		!__IASScope.isDomless &&
		document.currentScript &&
		document.currentScript.src &&
		document.currentScript.src.includes('/jload')
	) {
		isRedirectedStaticCMTag = true;
	}

	__IntegralASConfig.useFIF = __IASScope && !!__IASScope.__IntegralASUseFIF && (__IntegralASConfig.mode === "jload" || isRedirectedStaticCMTag);
	__IntegralASConfig.adRefreshThreshold = __IASScope && __IASScope.__IntegralASAdRefreshThreshold;




__IntegralASConfig.getContextNode = function (win, topWin) {
	'use strict';

	if (__IASScope.isDomless) {
		return;
	}
	
	if (win.location && win.location.href && (win.location.href.includes('fw.html') || win.location.href.includes('/rjsi/'))) {
		return { dataset: {}, parentNode: win.document.body, src: win.location.href };
	}

	if (__IntegralASConfig.useFIF) {
		return __IASScope.frameElement; // Early exit if using FIF
	}

	if (document.currentScript) {
		return document.currentScript;
	}
	
	var tempScript,
		scripts = document.getElementsByTagName('script'),
		result = scripts[scripts.length - 1],
		scriptIndex = scripts.length,
		scriptUrl = __IntegralASConfig.scriptUrl;

	try {
		
		while (--scriptIndex >= 0) {
			tempScript = scripts[scriptIndex];
			if (
				tempScript.src &&
				tempScript.src.indexOf(scriptUrl) === 0 &&
				tempScript.getAttribute('data-ias-script-tag') === null
			) {
				result = tempScript;
				tempScript.setAttribute('data-ias-script-tag', 'found');
				break;
			}
		}
	} catch (e) {} // TODO: maybe a jsDiagnostic?

	return result;
};
__IntegralASConfig.getCurrentScript = function () {
	if (document.currentScript) {
		return document.currentScript;
	}
};

__IntegralASConfig.contextNode = __IASScope.isDomless ? undefined : __IntegralASConfig.getContextNode(window, top);
__IntegralASConfig.currentScript = __IASScope.isDomless ? undefined : __IntegralASConfig.getCurrentScript();





__IntegralASConfig.perfFactory = function() {
	'use strict';

	var _marks = {};
	var START_CODE = 'A';
	var END_CODE = 'Z';

	function _addMark(codeName, time) {
		
		_marks[codeName] = time;
	}

	function mark(codeName) {
		_addMark(codeName, Math.round(__IASScope.performance.now()));
	}

	function markStart(baseName) {
		mark(baseName + START_CODE);
	}

	function markEnd(baseName) {
		mark(baseName + END_CODE);
	}

	function markResource(baseName, url) {
		var entry, entries;
		entries = __IASScope.performance.getEntriesByName(url);
		if (entries && entries.length) {
			entry = entries[entries.length - 1];
			if (entry.startTime > 0 && entry.responseEnd > 0) {
				_addMark(baseName + START_CODE, Math.round(entry.startTime));
				
				_addMark(baseName + END_CODE, Math.round(entry.responseEnd));
			}
		}
	}

	function getData() {
		return _marks;
	}

	function getStart(baseName) {
		return _marks[baseName + START_CODE];
	}

	function getEnd(baseName) {
		return _marks[baseName + END_CODE];
	}

	function noop() {}

	function setNoops() {
		_addMark = noop;
		mark = noop;
		markStart = noop;
		markEnd = noop;
		markResource = noop;
	}

	function isFunc(obj) {
		return typeof obj === 'function';
	}

	function _init() {
		var canUsePerformanceAPIs = false;
		var PERF_MARK_BOOTSTRAPPER_EXECUTION = 'be';
		var PERF_MARK_BOOTSTRAPPER_SCRIPT_DOWNLOAD = 'bd';
		var PERF_MARK_MAIN_SCRIPT_DOWNLOAD = 'md'; // note: this code is intentionally the same as the one in globalConstants.js
		var downloadMark;

		try {
			canUsePerformanceAPIs =
				__IASScope.performance &&
				isFunc(__IASScope.performance.getEntriesByName) &&
				isFunc(__IASScope.performance.now) &&
				__IntegralASConfig.perfBirth !== null; // initialized to null or a time in jsAddOns1-birthdate.js

			if (canUsePerformanceAPIs) {
				downloadMark = __IntegralASConfig.jsDoSplit
					? PERF_MARK_BOOTSTRAPPER_SCRIPT_DOWNLOAD
					: PERF_MARK_MAIN_SCRIPT_DOWNLOAD;

				markResource(downloadMark, __IntegralASConfig.scriptUrl); // in split mode, this captures download time for the bootstrapper script, in bundled mode, the bundled/main script
				_addMark(PERF_MARK_BOOTSTRAPPER_EXECUTION + START_CODE, Math.round(__IntegralASConfig.perfBirth)); // put the birthdate that we already captured into our list of marks
				markEnd(PERF_MARK_BOOTSTRAPPER_EXECUTION); // roughly the end time of execution for the bootstrapper script in split mode, in bundled mode, end of the bootstrapper part of the script and start of the module definition part
			} else {
				setNoops();
			}
		} catch (err) {
			// TODO: remove if we never get here?
			setNoops();
			if (isFunc(__IASScope.__IntegralASDiagnosticCall)) {
				__IASScope.__IntegralASDiagnosticCall('perf', err, __IntegralASConfig);
			}
		}
	}

	_init();

	return {
		mark: mark,
		markStart: markStart,
		markEnd: markEnd,
		markResource: markResource,
		getData: getData,
		getStart: getStart,
		getEnd: getEnd
	};
};
__IntegralASConfig.perf = __IntegralASConfig.perfFactory();





} catch(err) {
	__IntegralASConfig = {};
	__IntegralASDiagnosticCall('bootstrapper', err);
}
__IntegralASConfig.initialize=function(e,t,n){var r={};if(Object.assign)e=Object.assign({},e);else{for(var i in e)r[i]=e[i];e=r}class o{constructor(){this.logs=[]}add({storeModelName:e,key:t,value:n,timeStamp:r}){this.logs.push({storeModelName:e,key:t,value:n,timeStamp:r})}getHistory(){return this.logs}logHistory(){}}class a{constructor({storeModelName:e}){this.storeModelName=e,this.storeModelHistory=new o}set(e,t,n={locked:!0}){try{Object.defineProperty(this,e,{value:t,writable:!n.locked,configurable:!1}),this.storeModelHistory.add({storeModelName:this.storeModelName,key:e,value:t,timeStamp:Date.now()})}catch(e){}}get(e){return this[e]}getHistory(){return this.storeModelHistory.getHistory()}logHistory(){this.storeModelHistory.logHistory()}}const s={useSingleEvent:0};class c extends a{constructor(){super({storeModelName:"staticFeatures"}),this.set("useSingleEvent",function({percentage:e}){return e>100*Ot.random()}({percentage:s.useSingleEvent}))}}class u extends a{constructor(){var e;super({storeModelName:"fencedFrame"}),this.isFencedFrame=!1,this.isReportEventApiAvailable=!1,this.set("isFencedFrame",K.isDef(t.fence)),this.set("isReportEventApiAvailable",this.isFencedFrame&&K.isFunction(null===(e=t.fence)||void 0===e?void 0:e.reportEvent))}reportEvent(e){try{t.fence.reportEvent({destinationURL:e})}catch(e){}}sendDt(){if(this.isReportEventApiAvailable)try{const t=new Ye(e.dtBaseURL),n={time:at.getTagTime(),type:"g",[De.FencedFrame]:1};e.anId?t.setParam("anId",e.anId):e.advEntityId&&t.setParam("advEntityId",e.advEntityId),t.setParam("asId",e.asid),t.setParam("tv",n),this.reportEvent(t.toString())}catch(e){}}}class d extends a{constructor({contextNode:e}){super({storeModelName:"jsConfigRequest"}),this.url="",this.contentType="",this.verificationParameters={},this.contentType="",this.contextNode=e,this.buildRequestUrlFromParameters({contextNode:e})}buildRequestUrlFromParameters({contextNode:e,omidParameters:t}){this.setParameters({contextNode:e,omidParameters:t}),this.buildRequestUrl({contextNode:e})}setParameters({contextNode:t,omidParameters:n}){if(n)if("string"==typeof n)try{const e=JSON.parse(n);this.set("verificationParameters",e,{locked:!1})}catch(e){}else this.set("verificationParameters",n,{locked:!1});else{const n=null==t?void 0:t.dataAttributes,r=(null==n?void 0:n.iasParameters)||e.iasParameters;if("string"==typeof r)try{this.set("verificationParameters",JSON.parse(r),{locked:!1})}catch(e){}else void 0!==r&&this.set("verificationParameters",r,{locked:!1})}this.set("contentType",this.verificationParameters.contentType||"",{locked:!1})}buildRequestUrl({contextNode:t}={}){const n=(({contextNode:t,verificationParameters:n}={})=>{var r;const i=null==t?void 0:t.queryParameters,o=null==i?void 0:i.get("iasConfigHost");let a=null;const s=null==n?void 0:n.config;if(s)a=/iasProxyPartnerId=([\d]+)/g.exec(s);else try{const e=(null===(r=null==t?void 0:t.srcUrl)||void 0===r?void 0:r.href)||"";a=/iasProxyPartnerId=([\d]+)/g.exec(e),a||(a=/iasProxyPartnerId%3D([\d]+)/g.exec(e))}catch(e){}const c=null==a?void 0:a[1];return e.proxyPartnerId=c,(null==n?void 0:n.host)||o||{37103:"https://vfw.amazon-adsystem.com/ias/ivt/j",2:"https://g.bing.com/p/tpv-ias"}[c]||"https://jsconfig.adsafeprotected.com"})({contextNode:t,verificationParameters:this.verificationParameters}),r=(({contextNode:e,verificationParameters:t}={})=>{let n=null==t?void 0:t.config;if(!n)try{const t=null==e?void 0:e.srcUrl;if(t.href.includes("/jload")){const t=null==e?void 0:e.queryParameters,r=null==t?void 0:t.get("anId");r&&(n=`/jload/${r}`,t&&(n+=`?${t.toString()}`))}else{const e=/iasConfig=([^&#]*)/g.exec(t.href)||/config=([^&#]*)/g.exec(t.href);e&&"string"==typeof e[1]&&(n=decodeURIComponent(e[1]))}}catch(e){}return n})({contextNode:t,verificationParameters:this.verificationParameters});if(r){const i=(({host:e,path:t,queryParams:n,adSessionId:r})=>{const i=t.includes("?");let o=`${e}/jsconfig${t}`;return n&&(o+=`${i?"&":"?"}${n}`),r&&(o+=`&adSessionId=${r}`),o})({host:n,path:r,adSessionId:e.adSessionId,queryParams:null==t?void 0:t.staticFwjsMacros});this.set("url",i,{locked:!1})}}}var g,l,f;!function(e){e.Firewall="Firewall",e.FirewallMonitoring="FirewallMonitoring",e.FirewallBlocking="FirewallBlocking",e.CampaignMonitoring="CampaignMonitoring",e.Amt="Amt"}(g||(g={})),function(e){e.Rjss="rjss",e.Rjsi="rjsi",e.JsVid="jsvid",e.FwjsVid="fwjsvid",e.JsApi="jsapi",e.Jload="jload",e.Jss="jss",e.Jsi="jsi",e.Amt="amtjs"}(l||(l={})),function(e){e.AnId="anId",e.TagType="tagType",e.AdvEntityId="advEntityId",e.PubEntityId="pubEntityId",e.CreativeDomain="creativeDomain",e.CreativePath="creativePath",e.CreativeUrl="creativeUrl"}(f||(f={}));const p={[g.Firewall]:[l.Jss,l.Jsi,l.Rjss,l.Rjsi,l.FwjsVid,l.JsApi],[g.CampaignMonitoring]:[l.Jload,l.JsVid],[g.Amt]:[l.Amt]},m=({contextNode:e,measurementConfig:t})=>{let n=S({contextNode:e,measurementConfig:t});return n||(n=h({contextNode:e,measurementConfig:t})),n},h=({contextNode:e,measurementConfig:t})=>{let n=null;const r=I({contextNode:e,measurementConfig:t});return r&&(n=v({tagUrl:r})),n},v=({tagUrl:e})=>{let t,n=null,r=null,i=null;try{r=e?new URL(e):null,t=null==r?void 0:r.pathname,i=F({pathname:t})}catch(e){}return r&&t&&i===g.Firewall&&(n=P({parsedUrl:r})),r&&t&&i===g.CampaignMonitoring&&(n=M({parsedUrl:r})),r&&t&&i===g.Amt&&(n=V({parsedUrl:r})),n},I=({contextNode:e,measurementConfig:t})=>{let n=null;const{currentScript:r,isFrameInFrame:i,isLegacyTagRedirectedToStatic:o}=t;return n=i?A({currentScript:r}):E({contextNode:e}),n&&!(null==n?void 0:n.startsWith("http"))&&(n=R({url:n})),n},E=({contextNode:e})=>{let t=null;const n=null==e?void 0:e.src;return n&&(t=n),t},A=({currentScript:e})=>{let t=null;const n=null==e?void 0:e.getAttribute("src");return n&&(t=n),t},S=({contextNode:e,measurementConfig:t})=>{let n=null;const r=y({contextNode:e,measurementConfig:t});return r&&(n=O({configPath:r})),n},y=({contextNode:e,measurementConfig:t})=>{let n=null;const{isStaticMode:r,iasParameters:i,isSingleInstance:o,isStaticIframeTag:a}=t;return o?n=T({iasParameters:i}):(r||a)&&(n=D({contextNode:e})),n},T=({iasParameters:e})=>{let t=null;if(e){const n=_({jsonOrObject:e});if(n){const{config:e}=n;e&&(t=e)}}return t},D=({contextNode:e})=>{const t=w({contextNode:e});return(null==t?void 0:t.config)||null},O=({configPath:e})=>{let t=null;const n=(({configPath:e})=>{let t=null;const n=null==e?void 0:e.split("?"),r=Array.isArray(n)&&n[0],i=Array.isArray(n)&&n[1];if(r&&(t={pathname:r}),(null==t?void 0:t.pathname)&&i)try{const e=new URLSearchParams(i);t.search=`?${i}`,t.searchParams=e}catch(e){}return t})({configPath:e}),r=null==n?void 0:n.pathname,i=F({pathname:r});return r&&i===g.Firewall&&(t=P({parsedUrl:n})),r&&i===g.CampaignMonitoring&&(t=M({parsedUrl:n})),t},w=({contextNode:e})=>{let t={};const n=N({contextNode:e}),r=C({contextNode:e});return t=n||r,t},N=({contextNode:e})=>{var t;let n=null;const r=null===(t=null==e?void 0:e.dataAttributes)||void 0===t?void 0:t.iasParameters;if(r){const e=_({jsonOrObject:r});n=(null==e?void 0:e.config)?e:null}return n},C=({contextNode:e})=>{let t=null;if(null==e?void 0:e.queryParameters){const n=b({queryParams:e.queryParameters});t=(null==n?void 0:n.config)?n:null}return t},b=({queryParams:e})=>({config:e.get("config")||e.get("iasConfig"),host:e.get("host")||e.get("iasConfigHost"),contentType:e.get("iasConfigContentType"),sca:e.get("iasSca"),xsca:e.get("iasXsca"),h:e.get("iasHeight"),w:e.get("iasWidth")}),R=({url:e})=>`https:${e}`,_=({jsonOrObject:e})=>{let t=null;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){}else t=e;return t},M=({parsedUrl:e})=>{var t;let n;const r=e.pathname.split("/").splice(1),[i,o]=r;return n=o||(null===(t=e.searchParams)||void 0===t?void 0:t.get("anId")),{anId:n,tagType:i}},P=({parsedUrl:e})=>{const t=e.search,n=e.pathname.split("/").splice(1),[r,i,o,a,...s]=n,c=`/${s.join("/")}`;let u=i&&c?`//${i}${c}`:null;return t&&(u+=t),{tagType:r,advEntityId:o,pubEntityId:a,creativeDomain:i,creativePath:c,creativeUrl:u}},V=({parsedUrl:e})=>{var t,n,r,i;const o=e.pathname.split("/").splice(1),[a]=o;return{tagType:a,advEntityId:(null===(t=e.searchParams)||void 0===t?void 0:t.get("ias_aeId"))||"",pubEntityId:(null===(n=e.searchParams)||void 0===n?void 0:n.get("ias_peId"))||"",contractId:(null===(r=e.searchParams)||void 0===r?void 0:r.get("ias_cId"))||"",tagId:(null===(i=e.searchParams)||void 0===i?void 0:i.get("ias_tId"))||""}},F=function({pathname:e}){let t=null;const n=Object.keys(p).find((t=>p[t].some((t=>null==e?void 0:e.includes(t)))));return n&&(t=n),t};class x extends a{constructor({isDomless:t,contextNode:n,measurementConfig:r}){super({storeModelName:"adTag"}),this.anId=null,this.pubEntityId=null,this.advEntityId=null,this.tagId=null,this.contractId=null,this.tagType=null,this.creativeDomain=null,this.creativePath=null,this.creativeUrl=null,this.staticTagParams=null;const i=(({isDomless:e,contextNode:t,measurementConfig:n})=>{let r=null;return e||(r=m({contextNode:t,measurementConfig:n})),r})({isDomless:t,contextNode:n,measurementConfig:r});this.anId=null==i?void 0:i.anId,this.pubEntityId=null==i?void 0:i.pubEntityId,this.advEntityId=null==i?void 0:i.advEntityId,this.tagId=null==i?void 0:i.tagId,this.contractId=null==i?void 0:i.contractId,this.tagType=(null==i?void 0:i.tagType)||e.mode,this.creativeDomain=null==i?void 0:i.creativeDomain,this.creativePath=null==i?void 0:i.creativePath,this.creativeUrl=null==i?void 0:i.creativeUrl}updateWithVerificationParameters({verificationParameters:e}){var t,n,r,i,o,a,s,c,u;const d=(({verificationParameters:e})=>{let t=null,n=null;const r=_({jsonOrObject:e});if(r){const{config:e}=r;e&&(t=e),t&&(n=O({configPath:t}))}return n})({verificationParameters:e});this.anId=null!==(t=this.anId)&&void 0!==t?t:null==d?void 0:d.anId,this.pubEntityId=null!==(n=this.pubEntityId)&&void 0!==n?n:null==d?void 0:d.pubEntityId,this.advEntityId=null!==(r=this.advEntityId)&&void 0!==r?r:null==d?void 0:d.advEntityId,this.tagId=null!==(i=this.tagId)&&void 0!==i?i:null==d?void 0:d.tagId,this.contractId=null!==(o=this.contractId)&&void 0!==o?o:null==d?void 0:d.contractId,this.tagType=null!==(a=this.tagType)&&void 0!==a?a:null==d?void 0:d.tagType,this.creativeDomain=null!==(s=this.creativeDomain)&&void 0!==s?s:null==d?void 0:d.creativeDomain,this.creativePath=null!==(c=this.creativePath)&&void 0!==c?c:null==d?void 0:d.creativePath,this.creativeUrl=null!==(u=this.creativeUrl)&&void 0!==u?u:null==d?void 0:d.creativeUrl}updateWithResolvedJsConfig({jsConfig:e,measurementConfig:t}){t.isStaticMode&&!this.tagType&&(this.tagType=null==e?void 0:e.mode)}}var L;!function(e){e.Iframe="i",e.Script="s"}(L||(L={}));class k extends a{constructor({isDomless:e,currentWindow:t,defaultBootstrapperConfig:n}){super({storeModelName:"measurementConfig"}),this.setDefaultProps(),this.setBaseProps({defaultBootstrapperConfig:n}),e||this.setDomOnlyProps({currentWindow:t,isStaticMode:this.isStaticMode,currentScript:this.currentScript})}setDefaultProps(){this.set("tagDeliveryType",L.Script,{locked:!1})}setBaseProps({defaultBootstrapperConfig:e}){this.set("adRefreshThreshold",e.adRefreshThreshold),this.set("birthdate",e.birthdate),this.set("isResolved",e.isResolved,{locked:!1}),this.set("perfBirth",e.perfBirth),this.set("staticMode",e.staticMode),this.set("useFIF",e.useFIF),this.set("currentScript",e.currentScript),this.set("iasParameters",e.iasParameters),this.set("jsDiag",!0),this.set("spImpJsInfoMinLength",200),this.set("spImpMaxLength",1e4),this.set("isStaticMode",e.staticMode,{locked:!1}),this.set("isFrameInFrame",e.useFIF),this.set("isStaticFrameInFrame",this.get("isStaticMode")&&this.get("isFrameInFrame")),this.setDebugProp()}setDomOnlyProps({currentWindow:e,isStaticMode:t,currentScript:n}){this.setSingleInstanceProps(),this.setTagDeliveryTypeProps({currentWindow:e}),this.setStaticRedirectProps({isStaticMode:t,currentScript:n})}setSingleInstanceProps(){try{this.set("adSlots",null===top||void 0===top?void 0:top.iasAdSlots,{locked:!1}),this.set("isSingleInstance",null===top||void 0===top?void 0:top.isSingleIASInstance,{locked:!1})}catch(e){}}setTagDeliveryTypeProps({currentWindow:e}){var t,n;const r=(null===(n=null===(t=null==e?void 0:e.location)||void 0===t?void 0:t.href)||void 0===n?void 0:n.includes("fw.html"))?L.Iframe:L.Script,i=r?r===L.Iframe:void 0,o=r?r===L.Script:void 0;this.set("tagDeliveryType",r),this.set("isStaticIframeTag",i,{locked:!1}),this.set("isStaticScriptTag",o,{locked:!1})}setStaticRedirectProps({isStaticMode:e,currentScript:t}){e&&(null==t?void 0:t.src)&&(t.src.includes("/jload")&&(this.set("isJloadRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)),t.src.includes("/jsvid")&&(this.set("isJsvidRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)),t.src.includes("/rjss")&&(this.set("isRjssRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)),t.src.includes("/fwjsvid")&&(this.set("isFwjsvidRedirect",!0),this.set("isLegacyTagRedirectedToStatic",!0)))}setDebugProp(){this.set("debug",!1)}}new class{constructor(){this.eventMap={}}on(e,t){this.eventMap[e]||(this.eventMap[e]=new Set),this.eventMap[e].add(t)}off(e,t){this.eventMap[e]&&this.eventMap[e].delete(t)}emit(e,...t){this.eventMap[e]&&this.eventMap[e].forEach((e=>e(...t)))}};const U=({url:e})=>{let t;const n=["config","iasConfig"];return e&&e.includes("fw.js")&&(n.forEach((t=>{e&&(e=(({url:e,queryParamName:t})=>{const n=new URL(e).search,r=new URLSearchParams(n);r.delete(t);const i=new URL(e);return i.search=r.toString(),i.toString()})({url:e,queryParamName:t}))})),e.includes("?")&&(t=e.split("?")[1])),t};class W extends a{constructor({contextNodeElement:e}){if(super({storeModelName:"contextNode"}),e){const t=new URL(e.src);this.set("element",e),this.set("srcUrl",t),this.set("src",t.href),this.set("path",t.pathname),this.set("protocol",t.protocol),this.set("dataAttributes",e.dataset),this.set("queryParameters",t.searchParams),this.set("staticFwjsMacros",U({url:t.href}))}}}const G=new class{addModel(e){try{Object.defineProperty(this,e.storeModelName,{value:e,writable:!1,configurable:!1,enumerable:!0})}catch(e){}return this[e.storeModelName]}getHistory(){return Object.keys(this).reduce(((e,t)=>{const n=this[t].getHistory();return e.concat(n)}),[])}logHistory(){}};function B(){"use strict";var t,n;e.executedContinueMain||(G.adTag.updateWithResolvedJsConfig({jsConfig:e,measurementConfig:G.measurementConfig}),e.executedContinueMain=!0,e.perf.markStart(ne),ge(e).verifyContextNode(),t=function(t,n,r,i,o,a,s,c,u,d,g){var l,f;try{new Xi({contextNode:e.contextNode,features:u,bootstrapper:e}).start()}catch(e){o.add(Q.ERROR_CODES.AD_SERVER_POST_IMPRESSION_MACRO)}e.perf.markStart(ie),e[De.B11]="1"===e[De.AdHeight]&&"1"===e.adWidth?"true":"false",e[De.CNod]=e[De.ContextNode]?"true":"false",z.getAggregator().trigger(Se.AddOutputItem,{output:G.measurementConfig.mainBirthdate},De.MainFunctionStartedNow,{type:Q.IMPRESSION_EVENT});var p=e.hasOwnProperty("origMobOrTab")?e.origMobOrTab:e.mobOrTab;z.getAggregator().trigger(Se.AddOutputItem,{output:p?"1":"0"},De.BootstrapperMobOrTab,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:e.app?"1":"0"},De.BootstrapperApp,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:e.mobAppWebview?"1":"0"},De.BootstrapperMobAppWebview,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:G.measurementConfig.tagDeliveryType},De.TagDeliveryType,{type:Q.IMPRESSION_EVENT});var m=Ze().getUserAgent(),h=z.getAggregator().request(Te.MobileApp);!(h&&h.isMobileAppEnvironment&&h.isMobileAppEnvironment())&&m.indexOf("IMDb-flg")>-1&&(z.getAggregator().trigger(Se.AddOutputItem,{output:"1"},De.MobileAppEnvironment,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:"a_imdb"},De.MatchedMobileAppDetectionRule,{type:Q.IMPRESSION_EVENT}));j(r,i,u,o),G&&G.fencedFrame&&G.fencedFrame.sendDt();try{a.isApplicable(s,d)&&a.start(),f=c.detectTopURL(),u.on("exch")&&(new ft).createInstance(o,i).parse(f),(l=Mi()).isApplicable(u)&&l.start(u),d.usesGroupMCustomMetric()&&Ce(),g.start()}catch(e){o.add(Q.ERROR_CODES.IMPRESSION_LEADUP)}return e.perf.markEnd(ie),f}((n=function(){var t,n,r,i,o,a,s,c,u,d,g,l={};e.perf.markStart(re);var f=z.getAggregator();(function(){var t,n,r;r=z.getAggregator().request(Te.OmidAdSessionContext),t=r.app&&r.isDisplay&&!r.isWeb,(n=e.mobFwUrl&&e.mobFwUrl.indexOf("/blocking/")>-1)&&r.isLimitedSandbox&&"1"===e.adWidth&&"1"===e[De.AdHeight]&&(r.isLimitedSandbox=!1);t&&n&&(r.delayingViewabilityEvents=!0);"app"!==r.environment&&!0!==e.mobAppWebview||(e.origMobOrTab=e[De.MobOrTab],e[De.MobOrTab]=!0)})(),l.mFeatures=f.request(Te.Features),l.mFeatures||(l.mFeatures=f.provide(Te.Features,ht()));e.integration&&l.mFeatures.setReportedBootstrapFeatures("intblk","integration");e.autotagSizeSet&&l.mFeatures.setReportedBootstrapFeatures("ats","autotagSizeSet");e.encodeInvalidUrlChars=!at.isDomless()&&l.mFeatures.on("encodeInvalidUrlChars"),f.provide(Te.MobileApp,(function(){return t=t||new Xr(l.mFeatures)})),f.provide(Te.Context,at),l.mBrowser=f.request(Te.Browser),l.mErrors=f.request(Te.Errors),l.mIds=f.request(Te.IDS),l.iOutput=Le(f),f.request(Te.JSONP),l.mComm=f.request(Te.Communication),l.viewabilityMeasurement=new Fn(xn(l.mIds),l.mFeatures,l.mBrowser).create(),function(e,t){if(e&&e.queuedOutputItems)for(var n=0;n<e.queuedOutputItems.length;n++)t.trigger(Se.AddOutputItem,{output:e.queuedOutputItems[n].value},e.queuedOutputItems[n].code,{type:Q.IMPRESSION_EVENT})}(f.request(Te.OmidAdSessionContext),f),l.mFeatures.on("swapids")&&(e.oid=e.asid,e.asid=l.mIds.unq);return l.mAdTalk=(new qt).createInstance(l.mFeatures),n=be(),r=Mt(f),i=f.provide(Te.Page,(new wt).createInstance()),l.mAncestorOrigins=f.request(Te.AncestorOrigins),l.mPageUrls=f.request(Te.PageURLS),l.mAncestorOrigins=Je(),l.mPageUrls=f.provide(Te.PageURLS,(new bt).createInstance(l.mAncestorOrigins,Ot)),o=f.provide(Te.ScreenEvents,Pt()),a=vt(l.mBrowser),g=function(t,n){return!at.isVideo()||at.isOmid()||at.isInMobiMraidVideo()?{}:pi(e.videoId,t,n)}(l.mFeatures,o),l.mVideo=f.provide(Te.Video,g),Ei(Si.build()),s=(new jr).createInstance(l.mErrors,a,l.mFeatures),c=(new Ue).createInstance(s,l.mErrors,i,at),u=f.provide(Te.JobFactory,St()),l.mDataTransfer=ut(s,l.mErrors,l.mFeatures,l.mIds,l.iOutput,l.mBrowser,o,n),d=Qe(l.mErrors,l.mFeatures,f,r),l.mMode=Dt(d,l.mFeatures,l.viewabilityMeasurement.isImmediate()),l.mViewability=f.provide(Te.Viewability,mr(_e(),l.viewabilityMeasurement,l.mBrowser,l.mDataTransfer,l.mFeatures,f,l.iOutput,c,o,l.mVideo)),function(t,n,r,i){var o=function(t){var n=new rr(t,at),r=new nr,i=new or(t,at),o=ir(t,at),a=new sr(e,at,t).resolve(),s=[n],c=[];o.applies()&&s.push(o);i.applies()&&s.push(i);r.applies(t,at)&&s.push(r);K(a).each((function(e,t){s.push(new ar(t,at)),c.push(t.id)})),c.length>0&&(z.getAggregator().trigger(Se.AddOutputItem,{output:c.join(".")},De.MetricIdEventCall,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:c},De.MetricIdList,{type:Q.DT_CODES.UNLOAD,asION:!0}));return s}(t);z.getAggregator().provide(Te.ViewabilityDefinitions,o),K(o).map(function(e,t,n,r){return function(i,o){var a,s,c,u=pr(o,t),d=tr(n,e,o.rts).getCallbacks(),g=Ve(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId));return o.sendOtherwiseInViewSignal&&(c=pr(o,t,o.sendOtherwiseInViewSignal),s=Ve(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId,o.sendOtherwiseInViewSignal))),o.rtsCallbacks=d,o.thresholdType===Q.GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE?a=fr(u,o,g,at.isVideo()):(a=lr(u,qe(o.minUnit),g),o.sendOtherwiseInViewSignal&&lr(c,qe(o.minUnit),s,o.sendOtherwiseInViewSignal).start()),a.start(),a}}(t,n,r,i))}(l.mFeatures,l.mViewability,r,u),l.loopDelay=an(),l.renderDetector=Ee(),l.mDataTransfer.setViewabilityMod(l.mViewability),e.perf.markEnd(re),l}()).mDataTransfer,n.mViewability,n.mAdTalk,n.iOutput,n.mErrors,n.mAncestorOrigins,n.mBrowser,n.mPageUrls,n.mFeatures,at,n.renderDetector),function(t,n,r,i,o,a,s,c,u){try{wi(t,n,r,i,o,a,s).send(c),K.isFunction(u.triggerInitializationEvents)&&u.triggerInitializationEvents()}catch(t){__IntegralASDiagnosticCall("impsend",t,e)}}(n.mErrors,n.mFeatures,n.mIds,n.mMode,n.iOutput,n.mBrowser,n.mViewability,t,n.mVideo),function(t,n,r,i,o,a,s,c,u,d,g,l,f){try{e.perf.markStart(oe),(p=hi()).start(),p.addFieldTypes([Q.DT_SLOT.IM,Q.DT_SLOT.FF,Q.DT_SLOT.ENVIRONMENT,Q.DT_SLOT.FF_EXP]),Ki(f),function(e,t,n,r){var i=dn(e,t,n);i.isApplicable(r)&&i.start()}(t,n,r,i),function(e,t,n,r,i,o){e.bootstrapOn("getTpl")&&e.on("usetpl")&&ze(t,n,r,i,o).init()}(i,o,a,s,n,c),function(t,n,r,i,o,a,s,c,u){var d;"true"!==e.minimizeCalls&&(d=(new Date).getTime(),Ot.execAtEndOfThread((function(){H(t,n,r,i,d,o,a,s,c,u)})))}(c,u,d,s,i,o,a,n,l),function(e){e&&e.start&&e.start()}(g),((e,t)=>{if(!e.isDomless()){const n=Fi();let r=["sca","xsca","rsrch"];e&&e.isAMZN()&&(r=[]),n.start(r,t)}})(f,i),Xe(),z.runTier(Q.TIERS.VIEWABILITY),function(t){var n=vi();n.isApplicable(t)&&(n.start(),Ti.recordBlockingTime(),e.perf.mark(ae),Ti.setupOnLoadTracking(),Ti.setupBrowserDelayTracking())}(i),e.perf.markEnd(oe)}catch(e){s.add(Q.ERROR_CODES.POST_IMPRESSION)}var p}(n.mBrowser,n.mIds,n.mViewability,n.mFeatures,n.mComm,n.mDataTransfer,n.mErrors,n.iOutput,n.loopDelay,n.mAdTalk,n.viewabilityMeasurement,n.mAncestorOrigins,at),G&&G.pageMetrics&&G.pageMetrics.sendPageMetricsData(),e.perf.markEnd(ne))}function H(t,n,r,i,o,a,s,c,u,d){try{if(e.perf.markStart(se),e.tpiLookupURL)Et(s,c).init(e.tpiLookupURL);at.isDomless()||d.isStarted()&&d.sendOriginList(),z.runAll(),Ot.execAtEndOfThread((function(){!function(t,n,r,i,o,a){var s;try{e.perf.markStart(ce),s={output:(new Date).getTime()-o},t.addItem(s,"sinceFw",{type:Q.DT_CODES.ADTALK}),K.isDef(n.loopStarted())&&t.addItem({output:n.loopStarted()},"readyFired",{type:Q.DT_CODES.ADTALK}),e.perf.markEnd(ce),e.isSplitMode&&(u=e.protocol+"://"+e.sp_cdnScripts.main,e.perf.markResource(ue,u)),e.impUrl&&e.perf.markResource(de,e.impUrl),c=e.perf.getData(),z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.IM,De.Performance,K(c).toION()),r.isApplicable(at)&&r.sendAdTalkCall()}catch(e){i.add(Q.ERROR_CODES.ADTALK_DELAY)}var c,u}(t,n,r,i,o)})),e.perf.markEnd(se)}catch(e){i.add(Q.ERROR_CODES.EVENT_LOOP_ONE)}}function j(e,t,n,r){var i;try{e.isApplicable(at)&&(e.start(),t.addItem(e.getFrameMap(),"fm"),n.on("fm2")&&t.addItem(e.getFrameMapIncludingPeerCase(),"fm2"),n.on("idMap")&&(i=e.getIdMap())&&t.addItem(i,"idMap"))}catch(e){r.add(Q.ERROR_CODES.ADTALK_GENERAL)}}function q(t){var n=t&&t.sca,r=t&&t.xsca,i=t&&t.w,o=t&&t.h;return function(t){z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticConfigResponseTime,{type:Q.IMPRESSION_EVENT});var a="string"==typeof t?JSON.parse(t):t;if(a.hasOwnProperty("creativeUrl")&&a.hasOwnProperty("nodeType")&&a.hasOwnProperty("didBlock")&&!1===a.didBlock){const{creativeUrl:e,nodeType:t}=a,n="unknown"===t?"script":t,r=G.measurementConfig.tagDeliveryType===L.Iframe?"iframe":n;z.getAggregator().trigger(Se.AddNode,r,e)}if(a.hasOwnProperty("config")&&(a=a.config),Object.assign)Object.assign(e,a);else for(var s in a)e[s]=a[s];G.measurementConfig.set("isResolved",!0),e.sp_cdnScripts=e.sp_cdnScripts||{},n&&(e.sp_cdnScripts.sca=n),r&&(e.sp_cdnScripts.xsca=r),i&&o&&(e.adWidth=i,e.adHeight=o,e.autotagSizeSet=!0),B()}}const Y=()=>{var e,t;const n=null===(e=G.jsConfigRequest)||void 0===e?void 0:e.verificationParameters,r=null===(t=G.jsConfigRequest)||void 0===t?void 0:t.contentType,i=(()=>{var e,t,n;const r=(null===(e=G.adTag)||void 0===e?void 0:e.advEntityId)||"",i=(null===(t=G.adTag)||void 0===t?void 0:t.pubEntityId)||"",o=(null===(n=G.adTag)||void 0===n?void 0:n.creativeUrl)||"",a=z.getAggregator().request(Te.IDS).getCacheBustId(),s=new URL("https://fw.adsafeprotected.com/event"),c=z.getAggregator().request(Te.AncestorOrigins);c.isApplicable(z.getAggregator().request(Te.Browser),at)&&c.start();const u=z.getAggregator().request(Te.PageURLS).detectTopURL(),d=_i(u,2e3,s.href.length,!0);return s.searchParams.append("advEntityId",r),s.searchParams.append("pubEntityId",i),s.searchParams.append("creativeUrl",o),s.searchParams.append("format","jsonp"),s.search+=`&${d.join("&")}`,s.searchParams.append("adsafe_jsinfo",`,c:${a},st:1,em:${at.embedded.toString()},fr:${at.friendly.toString()}`),s.href})();z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticConfigRequestTime,{type:"impression"}),z.getAggregator().trigger(Se.AddOutputItem,{output:1},De.StaticUsedConfigAndBlockingRequest,{type:"impression"}),"application/json"===r?z.getAggregator().trigger(Se.GetJSON,i,q(n)):z.getAggregator().trigger(Se.JSONP,i,q(n),!1,"cbName")};const X=()=>{var e,t,n;(null===(e=G.measurementConfig)||void 0===e?void 0:e.isResolved)?B():(null===(t=G.staticFeatures)||void 0===t?void 0:t.useSingleEvent)&&"rjss"===(null===(n=G.adTag)||void 0===n?void 0:n.tagType)?Y():(()=>{var e,t,n;const r=null===(e=G.jsConfigRequest)||void 0===e?void 0:e.url,i=null===(t=G.jsConfigRequest)||void 0===t?void 0:t.contentType,o=null===(n=G.jsConfigRequest)||void 0===n?void 0:n.verificationParameters;if(r){z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticConfigRequestTime,{type:Q.IMPRESSION_EVENT});const e="cbName";"application/json"===i?z.getAggregator().trigger(Se.GetJSON,r,q(o)):z.getAggregator().trigger(Se.JSONP,r,q(o),!1,e)}})()};var K=function(e){"use strict";return new J(e)},J=function(e){"use strict";this.iterable=e};J.prototype.isObj=function(e){"use strict";var t="object"==typeof this.iterable,n=null===this.iterable,r=t&&!n,i=!this.isArray()&&r;return e?r:i},J.prototype.isArray=function(){"use strict";return this.iterable instanceof Array},J.prototype.isEmpty=function(e){"use strict";return 0===this.keys(e).length},J.prototype.each=function(e,t){"use strict";var n=this.iterable;if(n.length===+n.length)for(var r=0,i=n.length;r<i;++r)e(r,n[r]);else for(var o in n)(n.hasOwnProperty(o)||t)&&e(o,n[o])},J.prototype.map=function(e,t){"use strict";var n=[];return this.each((function(r,i){var o=e(r,i);(void 0!==o||t)&&(n[n.length]=o)})),n},J.prototype.stringify=function(e,t){"use strict";t=t||",";var n=[];return this.each((function(t,r){var i=e(t,r);K.isDef(i)&&n.push(i)})),n.join(t)},J.prototype.toION=function(e,t){"use strict";var n,r="[",i="]";return t=t||0,e=e||{},++t>4?"object":!this.isObj(!0)||this.iterable.hasOwnProperty("toString")?""+this.iterable:(this.isArray()?n=this.map((function(n,r){return K(r).toION(e,t)})):(r="{",i="}",n=this.map((function(n,r){var i="string"==typeof n&&-1!==n.indexOf("NULL"),o=K(r).toION(e,t);return i?o:(e[n]||n)+":"+o}))),r+n.join(",")+i)},J.prototype.compareTo=function(e){"use strict";var t=!1;return this.each((function(n,r){e[n]!==r&&(t||(t={}),t[n]=r)})),t},J.prototype.toParams=function(e){"use strict";return this.stringify((function(e,t){return"string"==typeof e&&-1!==e.indexOf("NULL")?t:e+":"+t}),e)},J.prototype._privateMixin=function(e,t,n){"use strict";var r;for(r in t)K.isDef(t[r])&&(n||t.hasOwnProperty(r))&&(e[r]=t[r]);return e},J.prototype.mapToObj=function(e){"use strict";var t={},n=this;return this.each((function(r,i){var o=e(r,i);K(o).isObj()&&n._privateMixin(t,o)})),t},J.prototype.invert=function(){"use strict";return this.mapToObj((function(e,t){var n={};return n[t]=e,n}))},J.prototype.mixin=function(e,t){"use strict";return this._privateMixin(this.iterable,e,t)},J.prototype.find=function(e){"use strict";var t;return this.each((function(n,r){e(n,r)&&(t=r)})),t},J.prototype.findFirst=function(e){"use strict";var t,n;return this.each((function(r,i){!n&&e(r,i)&&(t=i,n=!0)})),t},J.prototype.keys=function(e){"use strict";var t=[];return this.each((function(e){t.push(e)}),e),t},J.prototype.asStrings=function(){"use strict";var e={};return this.each((function(t,n){e[t]=""+n})),e},J.prototype.selectProperties=function(e){"use strict";var t={},n=this;return K(e).each((function(e,r){K.isDef(n.iterable[r])&&(t[r]=n.iterable[r])})),t},J.prototype.filter=function(e,t){"use strict";return this.map((function(t,n){var r;return(K.isUndef(e)||K.resolve(e,t,n))&&(r=n),r}),t)},J.prototype.toArray=function(){"use strict";return this.map((function(e,t){return t}))},J.prototype.JSONStringify=function(){"use strict";var e,n,r=!1;return t.Prototype&&t.Prototype.Version&&-1===t.Prototype.Version.indexOf("1.7")&&(r=!0),r&&(n=Array.prototype.toJSON,delete Array.prototype.toJSON),e=JSON.stringify(this.iterable),r&&(Array.prototype.toJSON=n),e},J.prototype.contains=function(e){"use strict";var t=K(this.iterable).findFirst((function(t,n){return e===n}));return K.isDef(t)},K.toBase=function(e,t){"use strict";var n,r=e<0,i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),o=[];e=r?-e:e;do{n=e%t,o.push(i[n]),e=(e-n)/t}while(e>0);return o=o.reverse().join(""),r?"-"+o:o},K.isDef=function(e){"use strict";return void 0!==e},K.isUndef=function(e){"use strict";return!K.isDef(e)},K.isBool=function(e){"use strict";return"boolean"==typeof e},K.noop=function(){},K.identity=function(e){"use strict";return e},K.isFunction=function(e){"use strict";return"function"==typeof e},K.isStr=function(e){"use strict";return"string"==typeof e},K.useIfDef=function(e){"use strict";return!!K.isDef(e)&&e},K.stringifyTriState=function(e){"use strict";return!0===e?1:!1===e?0:"na"},K.getNum=function(e){"use strict";var t=parseInt(e);return isFinite(t)||(t=-1),t},K.resolve=function(e,...t){return K.isFunction(e)?e.apply({},t):e},K.flatJSONParse=function(e){"use strict";for(var t,n,r,i=/"(\w+)":(\d+|(?:"([^"]*)"))/g,o={},a=i.exec(e);a;)t=a[1],n=a[3],r=a[2],o[t]=n||+r,a=i.exec(e);return o},K.debounce=function(e,n,r){"use strict";var i,o=r||t;return function(...t){var r=this,a=t;o.clearTimeout(i),i=o.setTimeout((function(){i=null,e.apply(r,a)}),n)}},K.last=function(e){"use strict";return e[e.length-1]},K.collapseArgsIntoHash=function(e,t){"use strict";var n={};return t?n[e]=t:n=e,n},K.fromBoolToNum=function(e){"use strict";return e?1:0},K.isNumeric=function(e){"use strict";return K.isDef(e)&&null!==e&&!isNaN(e)},K.fromNodeListToArray=function(e){"use strict";return Array.prototype.slice.call(e)},K.encodeInvalidUrlChars=function(e,t){"use strict";var n={$:"%24","[":"%5B","]":"%5D","{":"%7B","}":"%7D","|":"%7C"},r=e;return t&&"string"==typeof e&&(r=(r=e.replace(/%(?![0-9A-F][0-9A-F])/gi,"%25")).replace(/\$|\[|\]|\{|\}|\|/gi,(function(e){return n[e]}))),r};var z=function(){"use strict";var e,t={},n=[],r=[],i=function(){var e={},t=K(arguments).toArray();return t.unshift(e),r.push(t),e},o=function(r,i,o,a,s){var c,u,d,g=function(){if(!c){var t=[];c=!0,i=["features","browser","context"],0===n.length&&(n=K(i).map((function(t,n){return e.request(n)}))),s.emits&&(r.events=new _e),s.applies&&!s.applies.apply(s,n)||(u=!0,(t=K(o).map((function(t,n){return e.request(n)}),!0)).push(r),K(r).mixin(a.apply({},t)))}var i};return d=(s=s||{}).tier,K.isDef(d)&&(t[d]=t[d]||new Pe,t[d].push(g)),e.provide(i,(function(){var e;return g(),u&&(e=r),e})),r};return i.runAll=function(){var e=K(t).keys().sort((function(e,t){return e-t}));K(e).each((function(e,t){i.runTier(t)}))},i.runTier=function(e){t[e].run(),delete t[e]},i.startSystem=function(){e=e||new Re,K(r).each((function(e,t){o.apply({},t)}))},i.getAggregator=function(){return e},i}();const Q={MRC_LARGE_AD_SIZE:242500,IN_VIEW:"inView",OUT_OF_VIEW:"outOfView",PARTIAL_VIEW_PLUS:"partialViewPlus",PARTIAL_VIEW_MINUS:"partialViewMinus",NA:"na",PIV_NA:-1,DT_CODES:{ADTALK:"a",DIAGNOSTIC:"b",PERFORMANCE:"e",THIRD_PARTY:"i",LARGE_BILLABLE:"l",VIDEO_EVENTS:"m",PING:"p",FULLY_INVIEW:"pf",QUARTILE_FULLY_INVIEW:"qf",SCA:"s",POS_INVIEW:"t",UNLOAD:"u",VIEWABILITY_READY:"v",EXTERNAL:"x",CUSTOM:"c",XSCA:"xs",ADSERVER_MACROS:"as"},DT_SLOT:{IM:"im",FF:"sca",FF_EXP:"xsca",ENVIRONMENT:"env"},DETECTION_METHODS:{AD_PLACEHOLDER:"s",AD_HUNT:"a",IFRAME:"i",VIDEO:"v",MRAID:"m",OMID:"o1",MUTATION:"c",SPECIFIED_AD:"sp",SPECIFIED_AD_COMPOUND:"spc",BUSTED_IFRAME_FLASHTALKING:"bf",BUSTED_IFRAME_YIELDMO:"by",BUSTED_IFRAME_SIZMEK:"bs",VENDOR_CELTRA:"vc"},ENGAGEMENT:{CLICKS:"clks",HOVER:"hov"},OUT_OF_VIEW_REASONS:{GEOM:"l",OBSTRUCTION:"o",FOCUS:"f",COLLAPSED:"c",HIDDEN:"h",RENDER:"r",VIDEO:"v",WINDOW:"w"},PERF_TIMELINE_TRACKER_CONFIG:{VANS:{TYPE:"vans",COUNT:4},WRAPPERS:{JS:{TYPE:"jswrapper",COUNT:15},AS:{TYPE:"flwrapper",COUNT:9}},RENDER:{TYPE:"render",COUNT:2,CODE:"tdr"}},ERROR_CODES:{GET_AD_DIMENSIONS:"a",AD_SLOT_ID:"A",AD_SERVER_POST_IMPRESSION_MACRO:"A2",BAPI_CALLBACK:"b",BROWSER_NOT_HTML5_COMPATIBLE:"B",ADTALK_GENERAL:"c",COCOA_GONE:"C",CLICK_TRACK:"Q",GET_SCREEN_LOC_GET_DIMENSIONS:"d",ADTALK_DUBIOUS:"D",IMPRESSION_PERFORMANCE:"e",POST_IMPRESSION:"E",ADTALK_DELAY:"f",VIDEO_IN_IFRAME_DIMS_CALC:"F",GDPR:"g",INIT_ADS_MANAGER:"G",PHONE_HOME:"h",FEATURE_SCRIPT:"H",HIDDEN:"H1",HIDDEN2:"H2",UID_GENERATION:"i",IMPRESSION_URLS:"I",NOT_VPAID_EVENT_OBJECT:"j",JSINFO:"J",KILL_IT:"k",NO_RESPONSE_XML:"K",LOCATION_DETAILS:"l",IMPRESSION_LEADUP:"L",MESSAGE_LISTENER:"m",MOBILE_APP:"M",AT_INIT:"N",AUTOPLAY_DETECTION:"n",ANCESTOR_ORIGINS:"o",EVENT_LOOP_ONE:"O",GET_SCREEN_LOC_PIV_CALC:"p",PLUGIN_PARSING:"P",NO_ORIGINAL_VAST:"q",AD_REFRESH:"r",AD_ERROR:"R",GET_ELEM_STYLE:"s",AT_SEND:"S",ADS_MANAGER_START_AD:"t",NO_COMPANION_AD_XML:"T",NO_VIDEO_AD_INTERFACE:"u",UNRECOGNIZED_EVENT_TYPE:"U",ENVIRONMENT:"v",CHECK_SCREEN_LOC:"V",GET_WIN_DIMENSIONS:"w",AC_WATCHER:"W",EXCHANGE_PARSING:"x",SCA:"X",BUSTED_IFRAME_IN_IO:"y",FLASH_API_ACCESS:"z",XSCA:"Z"},BROWSERS:{WEBKIT:"w",OPERA:"o",GECKO:"g",CHROME:"c",MSEDGE:"e",IE:"i",DOMLESS:"d"},MEDIA_TYPE_CODE:"mtp",MEDIA_TYPE:{DISPLAY:"display",DISPLAY_CODE:"d",VIDEO:"video",VIDEO_CODE:"v"},MEASUREMENT_STRATEGY:{DISPLAY:"display",VIDEO:"video"},TIERS:{PRE_IMPRESSION_FRAUD:4,VIEWABILITY:7,ENVIRONMENT:8},IMPRESSION_EVENT:"impression",DATA_TRANSFER_EVENT:"dt",CALLBACK_IDENTIFIER:"data-ias-callback",AD_IDENTIFIER:"data-integralas-id",IAS_DETECTOR:"iasdetector",CONTAINER_GEOMETRY_MEASUREMENT_CHANGED:"containerGeometryMeasurementChanged",OMID_GEOMETRY_MEASUREMENT_CHANGED:"omidGeometryChanged",VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER:[0,.01,.2,.25,.3,.5,.7,.75,.8,.99,1],VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID:[0,.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,1],GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE:"grpmMobPassThru",REFERRER_POLICY:"no-referrer-when-downgrade",RENDER:{CREATIVE_NODE_TYPES:["CANVAS","EMBED","IMG","OBJECT","PICTURE","SVG","VIDEO"],CONTAINER_NODE_TYPES:["A","DIV","IFRAME","INS"],WIDTH_THRESHOLD:20,HEIGHT_THRESHOLD:20,STATUS:{OTHER:"0",DETECTED:"1"},DETAILS:{ENVIRONMENT:"env",OTHER:"na"},DIAGNOSTIC:{BROKEN_IMAGE:"bi",UNQUALIFIED_SIZE:"us",QUALIFIED_SIZE:"qs",STYLED_NODE:"sn",TEXT_NODE:"tn",DOCUMENT_READY:"dr",LOAD_FIRED:"lf",CONTENT_STYLED:"cs",MRAID_DEFAULT:"md",MRAID_READY:"mr",MRAID_LOADING:"ml",MRAID_UNKNOWN:"mu",OMID_RENDERED:"or",OMID_UNRENDERED:"ou"}},RTS_KEY_FOR_VQ:"qiv",UNIQUE_ID_TOKEN:"[IAS_ASID]"};var $,Z,ee,te="mf",ne="cm",re="in",ie="pr",oe="po",ae="bl",se="lo",ce="lt",ue="md",de="id",ge=function(e){"use strict";return{verifyContextNode:function(){!(__IASScope.isDomless||e.contextNode&&null!==e.contextNode.parentNode)&&(e.contextNode=function(){var t,r=n.getElementsByTagName("script"),i=r.length,o=r[i-1],a=e.scriptUrl;try{for(;--i>=0;)if((t=r[i]).src&&0===t.src.indexOf(a)&&null===t.getAttribute("data-ias-script-tag")){o=t,t.setAttribute("data-ias-script-tag","found");break}}catch(e){}return o}())}}};!function(e){e.AddEventListener="addEventListener",e.GetTCData="getTCData",e.TcfApiReturn="__tcfapiReturn"}($||($={})),function(e){e.TcfApi="__tcfapi"}(Z||(Z={})),function(e){e.TcfApiLocator="__tcfapiLocator"}(ee||(ee={}));const le=({apiFunctionName:e,apiFrameLocatorName:t})=>{try{let n,r,i=Ot.getWindow();const o=Ot.getTop();try{n=null==o?void 0:o[e]}catch(e){for(;!r;){try{if(i.frames[t]){const e=i.frames[t];r=null==e?void 0:e.parent}}catch(e){}if(i===o)break;i=i.parent}}return n||r}catch(e){}};var fe={getMessageHandler:function(e,t){var n=fe.getCallId(),r=function(i){try{i&&i.data&&i.data[e]&&i.data[e].callId===n&&i.data[e].returnValue&&(t(i.data[e].returnValue),st.removeEvent(Ot.getWindow(),"message",r))}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.GDPR)}};return r},getCallId:function(){return"ias_"+e.asid},send:function(e,t){z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,e,t)}},pe={name:"CCPAConsentDetector",dependencies:[],creator:function(){"use strict";function e(e){e&&fe.send("ccd",K(e).toION())}!function(){const t=le({apiFunctionName:"__uspapi",apiFrameLocatorName:"__uspapiLocator"});fe.send("cca",!!t),t&&function(t){var n,r;K.isFunction(t)?t("getUSPData",1,e):(n={__uspapiCall:{command:"getUSPData",version:1,callId:fe.getCallId()}},r=fe.getMessageHandler("__uspapiReturn",e),st.addEvent(Ot.getWindow(),"message",r),t.postMessage(n,"*"))}(t)}()},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}},me={name:"GDPRConsentDetector",dependencies:[],creator:function(){"use strict";var e=278;function t(e){var t=K.isDef(e)&&K.isDef(e.vendorConsents)&&K.isDef(e.vendorConsents[278])?e.vendorConsents[278]:void 0,n={appl:K.stringifyTriState(e.gdprApplies),cnst:K.stringifyTriState(t),glbl:K.stringifyTriState(e.hasGlobalScope),mtdt:encodeURIComponent(e.metadata)},r=e&&e.tcString;z.getAggregator().provide(Te.TCString,(function(){return r})),fe.send("gcd",K(n).toION())}!function(){const n=le({apiFunctionName:"__cmp",apiFrameLocatorName:"__cmpLocator"});fe.send("gca",!!n),n&&function(n){var r,i;K.isFunction(n)?n("getVendorConsents",[e],t):(r={__cmpCall:{command:"getVendorConsents",parameter:[e],callId:fe.getCallId()}},i=fe.getMessageHandler("__cmpReturn",t),st.addEvent(Ot.getWindow(),"message",i),n.postMessage(r,"*"))}(n)}()},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}};const he={name:"GDPRV2ConsentDetector",dependencies:[],creator:()=>{const e=e=>{const t=K.isDef(e)&&K.isDef(e.vendor)&&K.isDef(e.vendor.consents)&&K.isDef(e.vendor.consents[278])?e.vendor.consents[278]:void 0,n={appl:K.stringifyTriState(null==e?void 0:e.gdprApplies),cnst:K.stringifyTriState(t)};fe.send("gcd2",K(n).toION())};(()=>{const t=Z.TcfApi,n=ee.TcfApiLocator,r=le({apiFunctionName:t,apiFrameLocatorName:n});fe.send("gca2",!!r),r&&(t=>{let n,r;if(K.isFunction(t))try{t($.AddEventListener,2,e)}catch(n){try{t($.GetTCData,2,e)}catch(e){}}else n={__tcfapiCall:{command:$.AddEventListener,callId:fe.getCallId(),version:2}},r=fe.getMessageHandler($.TcfApiReturn,e),st.addEvent(Ot.getWindow(),"message",r,!1),t.postMessage(n,"*")})(r)})()},settings:{tier:Q.TIERS.ENVIRONMENT,applies:(e,t,n)=>t.hasPostMessage()&&!n.isDomless()}};var ve=function(){"use strict";var t,n=["STYLE","SCRIPT","HEAD","META"],r=Q.RENDER.CREATIVE_NODE_TYPES.concat(Q.RENDER.CONTAINER_NODE_TYPES),i=0,o=G.measurementConfig.useFIF&&at.friendlyIframe||at.isSpecifiedAd(),a=0,s=[],c=function(t){var n,r,o=t,a=t,s=at.friendly?Ot.getTop().document.body:e.contextNode.ownerDocument.body;for(;i<3;){if(s&&o===s){a=o,i=3;break}gt.isWindow(o)&&(r=void 0,r="["+Q.AD_IDENTIFIER+"-"+e.asid+"]",n=gt.crossQuerySelector(r),o=K.isDef(n)?n:o),a=o=K.isDef(o)&&o.parentNode||o,i++}return a},u=function(e){var t=function(e){var t,i,o=[],a=e&&e.getElementsByTagName&&e.getElementsByTagName("*"),s=a&&a.length;if(a)for(var c=0;c<s;c++)i=(t=a[c])&&t.nodeName&&t.nodeName.toUpperCase(),!t.children||0!==t.children.length||K(r).contains(i)||K(n).contains(i)||K(o).contains(i)||o.push(i);return o}(e);return r.concat(t)},d=function(t){var n,r=o?c(t):t;return gt.isWindow(r)?n=function(t){var n;try{n=t.document}catch(t){n=e.contextNode.ownerDocument}return n}(r):"IFRAME"===gt.getNodeName(r)?(s.push(t),n=t.contentWindow.document):n=r,n},g=function(n){var r,i=gt.isNodeXDomainIframe(n)||gt.isNodeCreative(n),o=!n;if(t=o?e.contextNode.parentNode:n,i||o)(r=s.length)>0&&(a<r?a=r:(a=0,s=[])),z.getAggregator().trigger(Se.EvaluateCreativeFinderResult,n);else{var c=d(n),g=u(c);new Ie(g,s).searchDescendants(c)}};return z.getAggregator().on(Se.CreativeFinderBatchCompleted,g),{find:g,getClosestContainerName:function(){return gt.getNodeName(t)}}},Ie=function(t,n){"use strict";var r=t,i=function(e){var t=0,r=null,i=-1;function o(e){if(o=e,a=gt.getNodeName(o),s=gt.isNodeCreative(o)||"IFRAME"===a,a&&s&&!gt.isEmptyFriendlyFrame(e)){var t=gt.getNodeArea(e);t>i&&!K(n).contains(e)&&(r=e,i=t)}var o,a,s}e.length&&z.getAggregator().request(Te.UseYieldSearch)?function n(){do{o(e[t]),t+=1}while(t%500!=0&&t<e.length);t<e.length?Ot.execAtEndOfThread(n,0):z.getAggregator().trigger(Se.CreativeFinderBatchCompleted,r)}():function(){for(;t<e.length;t++)o(e[t]);z.getAggregator().trigger(Se.CreativeFinderBatchCompleted,r)}()};return{searchDescendants:function(t){var n=t||e.contextNode.parentNode,o=gt.collectCandidateElements(n,r);i(o)}}},Ee=function(){"use strict";var e,t=!1,n=!1,r=!1,i={status:Q.RENDER.STATUS.OTHER,details:Q.RENDER.DETAILS.OTHER},o={status:Q.RENDER.STATUS.DETECTED,details:Q.RENDER.DETAILS.ENVIRONMENT},a="rend",s="renddet",c=z.getAggregator().request(Te.OmidAdSessionContext),u=function(){var e=!1;return at.isOmid()&&c&&c.useOMID13Logic&&(e=!0),e},d=function(){t=!0,r=!0},g=function(n){var r=e.build(),o=n.status||i.status,c=r||i.details;o===Q.RENDER.STATUS.DETECTED&&z.getAggregator().trigger(Se.PerfCheckpoint,{type:Q.PERF_TIMELINE_TRACKER_CONFIG.RENDER.TYPE,timestamp:Ot.now(),code:Q.PERF_TIMELINE_TRACKER_CONFIG.RENDER.CODE}),t&&o===Q.RENDER.STATUS.DETECTED?(z.getAggregator().trigger(Se.AddThrottledOutputItem,a,o),z.getAggregator().trigger(Se.AddThrottledOutputItem,s,c)):(z.getAggregator().trigger(Se.AddOutputItem,{output:o},a),z.getAggregator().trigger(Se.AddOutputItem,{output:c},s))},l=function(){var t=c&&!!c.isVideo,r=!u()||c&&!!c.videoStartArrived,i=!u()||c&&!!c.geometryArrived,a=!c.omidEarlyExit||c.omidImpressionArrived,s=!(c.omidEarlyExit&&u())||c.omidLoadedArrived;return!(n||!i||!a||!s||t&&!r)&&(z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},"oren"),z.getAggregator().trigger(Se.EligibleRender),e.save(Q.RENDER.DETAILS.ENVIRONMENT),e.save(Q.RENDER.DIAGNOSTIC.OMID_RENDERED),z.getAggregator().trigger(Se.AdRendered),g(o),n=!0,!0)};return{start:function(){var t=!1;z.getAggregator().trigger(Se.PerfCheckpoint,{type:Q.PERF_TIMELINE_TRACKER_CONFIG.RENDER.TYPE,timestamp:Ot.now(),code:De.Initial}),z.getAggregator().on(Se.AdRendered,(function(){t=!0})),z.getAggregator().provide(Te.AdRenderStatus,(function(){return t})),z.getAggregator().provide(Te.UseYieldSearch,(function(){return r})),e=new Oe,new we,z.getAggregator().on(Se.ImpressionSent,d),u()||c.omidEarlyExit?l()||(e.save(Q.RENDER.DETAILS.ENVIRONMENT),e.save(Q.RENDER.DIAGNOSTIC.OMID_UNRENDERED),g(i),z.getAggregator().on(Se.OmidRendGeoUpdate,(function(){l()})),z.getAggregator().on(Se.OmidRendVideoStart,(function(){l()})),c.omidEarlyExit&&(z.getAggregator().on(Se.OmidImpressionArrived,(function(){l()})),z.getAggregator().on(Se.OmidLoadedArrived,(function(){l()})))):at.isOmid()||at.isVideo()?(z.getAggregator().trigger(Se.EligibleRender),e.save(o.details),z.getAggregator().trigger(Se.AdRendered),g(o)):(g(i),Ae(g,i,e))}}};const Ae=function(e,t,n){z.getAggregator().on(Se.PrimaryAdFound,(function(r){let i;const o=ve();let a=!0;const s="data-ias-rend-bi",c=function(e){e&&(e.status="1"),z.getAggregator().trigger(Se.AdRendered)},u=function(e){let t=!0;const r=K.isDef(e.naturalWidth)?e.naturalHeight*e.naturalWidth:0,i=getComputedStyle(e),o=0===e.src.length&&Vt.contains(i.content,"url"),a=e.getAttribute&&e.getAttribute(s);return r>0&&!o&&(t=!1),"false"===a&&(n.save("cs"),t=!1),o&&!a&&function(e,t){n.save("cs");const r=/url(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t.content),i=r&&r[1],o=gt.createImage(),a=e;o.onload=function(){o.naturalHeight*o.naturalWidth>0&&a.setAttribute&&a.setAttribute(s,!1)},o.src=i,a.setAttribute(s,!0)}(e,i),t},d=function(){i?Ot.clearInterval(i):a=!1};z.getAggregator().on(Se.EvaluateCreativeFinderResult,(function(r){let i;gt.isNodeXDomainIframe(r)?(d(),t=function(t){const r={},i="readystatechange",o="load",a=Ot.getDoc(),s="complete"===a.readyState,u=function(s){const d=s&&s.type;(d===i&&"complete"===s.target.readyState||d===o)&&(c(r),n.saveNode(t),"readystatechange"===d?n.save("dr"):"load"===d&&n.save("lf"),e(r),st.removeEvent(t,o,u),st.removeEvent(a,i,u))};return s?(c(r),n.saveNode(t),n.save("dr")):(st.addEvent(t,o,u,void 0),st.addEvent(a,i,u,void 0)),r}(r)):r?(function(e){let t=!1;const r=gt.getRect(e);return e&&"IMG"===gt.getNodeName(e)&&u(e)&&(t=!0,n.save("bi")),!t&&r.width>=20&&r.height>=20}(r)&&(c(t),d()),n.saveNode(r)):(i=o.getClosestContainerName()||n.getAdNodeName(r)||t.details,n.save(i)),e(t)}));const g=function(){const e=r&&r.getAdNode();try{o.find(e)}catch(e){z.getAggregator().trigger(Se.RenderDiag,e)}},l=z.getAggregator().request(Te.MobileApp);l&&l.isMobileAppEnvironment&&l.isMobileAppEnvironment()&&at.isMraid()?function(e,n){const r=Ot.getWindow().mraid,i=r&&r.getState&&r.getState(),o="ready",a=t,s=function(){st.removeEvent(r,o,s),n.save("env"),n.save("mr"),z.getAggregator().trigger(Se.AdRendered),e({status:"1"})};n.save("env"),"default"===i?(z.getAggregator().trigger(Se.AdRendered),n.save("md"),a.status="1"):"loading"===i?(st.addEvent(r,o,s,void 0),n.save("ml")):(st.addEvent(r,o,s,void 0),n.save("mu")),e(a)}(e,n):(g(),a&&(i=Ot.setInterval(g,500))),z.getAggregator().trigger(Se.EligibleRender)}))};var Se,ye,Te,De,Oe=function(){"use strict";var e=[],t=[],n=function(e){var t;if(gt.isWindow(e))t="WINDOW";else if(gt.isNodeXDomainIframe(e))t="XIFRAME";else try{t=gt.getNodeName(e)}catch(e){r("nen")}return t},r=function(t){e.push(t)};return{build:function(){var n=[];return K(t).each((function(e,t){n.push(t)})),K(e).each((function(e,t){n.push(t)})),t=[],e=[],n.join(".")},getAdNodeName:n,save:r,saveNode:function(e){try{var i=e&&n(e),o=e&&gt.getRect(e),a=e&&gt.hasBackgroundImage(e),s=e&&e.children&&0===e.children.length,c=e&&e.innerText&&e.innerText.length>0,u=s&&c,d=o&&o.width>=Q.RENDER.WIDTH_THRESHOLD&&o.height>=Q.RENDER.HEIGHT_THRESHOLD?Q.RENDER.DIAGNOSTIC.QUALIFIED_SIZE:Q.RENDER.DIAGNOSTIC.UNQUALIFIED_SIZE;t.push(i),t.push(d),a&&t.push(Q.RENDER.DIAGNOSTIC.STYLED_NODE),u&&t.push(Q.RENDER.DIAGNOSTIC.TEXT_NODE)}catch(e){r("sne")}}}},we=function(t){"use strict";var n,r=!1,i=!1,o="1",a="0",s=function(){r=!0,u()},c=function(e){n=e,u()},u=function(){z.getAggregator().trigger(Se.AddOutputItem,{output:!n&&r?o:a},De.MeasurableForRender),n&&n.message&&!i&&(__IntegralASDiagnosticCall("renderloop",n,e),z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,"rle",1),i=!0)};z.getAggregator().on(Se.EligibleRender,s),z.getAggregator().on(Se.RenderDiag,c),u()},Ne=function(){"use strict";return{applies:function(e,t){var n=z.getAggregator().request(Te.MobileApp);return(e.browserIs(Q.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(Q.BROWSERS.WEBKIT)||e.browserIs(Q.BROWSERS.MSEDGE))&&!n.isMobileAppEnvironment()&&e.hasIntersectionObserver()}}},Ce=function(){"use strict";var e,t,n=!1,r=z.getAggregator().request(Te.Page),i=function(){!n&&t&&e&&!r.isHidden()&&(n=!0,z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.LARGE_BILLABLE))};z.getAggregator().on(Se.PrimaryAdFound,(function(t){e=t.getDims().area()>=Q.MRC_LARGE_AD_SIZE,i()})),z.getAggregator().on(Se.ImpressionSent,(function(){t=!0,i()})),r.onHiddenChange(i)},be=function(){"use strict";var e=[],t={},n={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h",omidObstructions:"oobs"},r={omidObstructions:["sl","percentInView","reason"]};z.getAggregator().on(Se.NewScreenEvent,(function(r){var o=K(r).selectProperties(K(n).keys()),a=K(o).asStrings(),s=K(a).compareTo(t);(s=i(s))&&JSON.stringify(s)!==JSON.stringify({})&&(s.t=at.getTagTime(),e.push(s)),K(t).mixin(a)}));var i=function(e){return K(r).each((function(t,n){var r=!1;K(n).each((function(t,n){e[n]&&(r=!0)})),!1===r&&delete e[t]})),e};return{toString:function(){return K(e).toION(n)}}},Re=function(){"use strict";var e=new ke,t=new _e;return K(e).mixin(t)};!function(e){e.AdComponentAdded="adComponentAdded",e.AdComponentClicked="adComponentClicked",e.AdComponentTouchEnd="adComponentTouchEnd",e.AdComponentTouchStart="adComponentTouchStart",e.AdComponentMousedOver="adComponentMousedOver",e.AdComponentMousedOut="adComponentMousedOut",e.AdComponentPointerUp="adComponentPointerUp",e.AdComponentPointerDown="adComponentPointerDown",e.AdComponentRemoved="adComponentRemoved",e.AdImpression="adImpression",e.AdRendered="adRendered",e.AdSessionComplete="adSessionComplete",e.AdUserInteraction="adUserInteraction",e.AdVideoComplete="adVideoComplete",e.AdVideoStart="adVideoStart",e.AddNode="addNode",e.AddOutputItem="addOutputItem",e.AddThrottledOutputItem="addThrottledOutputItem",e.AddThrottledProp="addThrottledProp",e.AddToSpg="addToSpg",e.Blur="blur",e.CreativeFinderBatchCompleted="creativeFinderBatchCompleted",e.DeferredAdSessionReady="deferredAdSessionReady",e.DelayedViewabilityReady="delayedViewabilityReady",e.DelayedViewabilityReadyCallOnly="delayedViewabilityReadyCallOnly",e.DtEnterQueuingMode="dtEnterQueuingMode",e.DtExitQueuingMode="dtExitQueuingMode",e.DtReportDtsNotAllowed="dtReportDtsNotAllowed",e.EligibleRender="eligiblerender",e.EndAdSession="endAdSession",e.Error="error",e.EvaluateCreativeFinderResult="evaluateCreativeFinderResult",e.Exec="exec",e.GetJSON="getJSON",e.ImpressionSent="impressionsent",e.InternallyGeneratedGeometryEvent="internallyGeneratedGeometryEvent",e.IoPivChange="IOPivChange",e.JSONP="jsonp",e.MarkTime="markTime",e.Measurable="measurable",e.MeasureTime="measureTime",e.NewScreenEvent="newScreenEvent",e.NewState="newState",e.NodesAdded="nodesAdded",e.Notify="notify",e.OmidAdDuration="omidAdDuration",e.OmidImpressionArrived="omidimpressionarrived",e.OmidLoadedArrived="omidloadedarrived",e.OmidRendGeoUpdate="omidrendgeoupdate",e.OmidRendVideoStart="omidrendvideostart",e.PerfCheckpoint="perfCheckpoint",e.PreSendDt="preSendDt",e.PrimaryAdFound="primaryadfound",e.RenderDiag="renderdiag",e.Send="send",e.SendDiag="sendDiag",e.SendDt="sendDt",e.SendMinDt="sendMinDt",e.StartViewabilityLoop="startViewabilityLoop",e.StopAdTalk="stopAdTalk",e.Unload="unload",e.UpdateDtCount="updateDtCount",e.VideoBlockResult="videoBlockResult",e.VideoQuartileEvent="videoQuartileEvent"}(Se||(Se={})),function(e){e.BEFORE_UNLOAD="beforeunload"}(ye||(ye={})),function(e){e.AdNode="adNode",e.AdProxy="adProxy",e.AdRenderStatus="adRenderStatus",e.AdSlotIDs="adSlotIds",e.AdTalkEventAggregator="adTalkEventAggregator",e.AdTalkMessage="adTalkMessage",e.AdTalkMessageCollection="adTalkMessageCollection",e.AncestorOrigins="ancestorOrigins",e.Browser="browser",e.Communication="mComm",e.Context="context",e.Errors="mErrors",e.Features="features",e.FrameCollection="frameCollection",e.IDMapModule="idMapModule",e.IDS="ids",e.IframeCalculatorHelper="iframeCalculatorHelper",e.InterFrameQuerySelector="interFrameQuerySelector",e.IsFullyInViewProvider="isFullyInViewProvider",e.JobFactory="jobFactory",e.JSONP="mJsonp",e.MobileApp="mobileApp",e.OmidAdSessionContext="omidAdSessionContext",e.OmidAdSessionVerificationParameters="omidAdSessionVerificationParameters",e.OmidVerificationClient="omidVerificationClient",e.OmidVideoEventsString="omidVideoEventsString",e.Page="mPage",e.PageURLS="pageUrls",e.PerfActive="perfActive",e.ScreenEvents="mScreenEvents",e.TCString="tcString",e.UseYieldSearch="useYieldSearch",e.Video="video",e.VideoChannel="vc",e.VideoTranslator="videoTranslator",e.VideoVersion="videoVersion",e.Viewability="viewability",e.ViewabilityDefinitions="viewabilityDefinitions"}(Te||(Te={})),function(e){e.AdHeight="adHeight",e.AdWidth="adWidth",e.AppSDKsDetected="sdk",e.B11="b11",e.BadURLNoPeriod="bunp",e.BapiClient="bapiClient",e.BootstrapperApp="app",e.BootstrapperMobAppWebview="maw",e.BootstrapperMobOrTab="mot",e.BrowserIs="browserIs",e.CmpApi="cmpApi",e.CNod="cnod",e.ContextNode="contextNode",e.CustomMetricInViewReason="cmr",e.FencedFrame="ff",e.GeometryEventsReceived="og",e.Initial="initial",e.Length="length",e.MainFunctionStartedNow="mtim",e.Mapp1ExclusionListMatch="xlu",e.MatchedMobileAppDetectionRule="drul",e.MeasurableForRender="rmeas",e.MetricId="metricId",e.MetricIdEventCall="scm",e.MetricIdList="metricIdList",e.MismatchOfIntegratedBlockingTagTypes="smm",e.MobAppWebview="mobAppWebview",e.MobOrTab="mobOrTab",e.MobApp="app",e.MobileAppEnvironment="mapp",e.MobileFWURL="mobFwUrl",e.MRAIDInjectionStatus="mi",e.OMIDAppMeasurement="oam",e.OMIDRenderedIndication="oren",e.OMIDSessionError="oser",e.OMIDSessionFinish="osef",e.OriginalMobOrTab="origMobOrTab",e.Performance="prf",e.PluginDecoded="pd",e.PluginList="pl",e.SafeFrame="sf",e.SafeFrameHostURL="sfhu",e.SafeFrameInvalidHostURL="sfiv",e.Slid="slid",e.StaticConfigRequestTime="scq",e.StaticConfigResponseTime="scs",e.StaticImpressionRFWCallRequestTime="siq",e.StaticImpressionRFWCallResponseTime="sis",e.StaticUsedConfigAndBlockingRequest="scb",e.TagDeliveryType="tdt",e.ThirdPartyDataLookup="tpiLookup",e.VideoBreakPosition="vbp",e.VideoChannel="vc",e.VideoPlayerState="vps"}(De||(De={}));const _e=function(){"use strict";const e={},t={},n=function(e,n){t[e]=t[e]||[],t[e].push(n)},r=function(t,n){const r=e[t];r&&r.run.apply({},n)},i=function(e,n,r){let i=t[e];if(i&&0!==i)return r&&(i=i.slice(0,1)),K(i).each((function(e,t){n.apply({},t)})),!0},o=function(t,n,r){e[t]=e[t]||new Pe,e[t].push(n,r)};return{on:function(e,t){let n={};t?n[e]=t:n=e,K(n).each(o),K(n).each(i)},once:function(e,t){i(e,t,!0)||o(e,t,1)},trigger:function(e){const t=K(arguments).toArray();t.shift(),r(e,t)},persistentTrigger:function(e){const t=K(arguments).toArray();t.shift(),n(e,t),r(e,t)}}};var Me=function(){"use strict";var e=function(t,n,r){var i,o,a=n.length,s=gt.isWindow(t)?t.frames:gt.getChildWindowsOf(t);if(r&&r(t,n),s&&s.length){for(i=0;i<s.length;i++)(o=s[i])&&gt.isWindow(o)&&(n[a]=i,e(o,n,r));n.pop()}},t=function(t,n){try{e(n||top,[0],t)}catch(e){}};return{traverse:t,getFrames:function(e,n){var r=[];return t((function(e){gt.isWindow(e)&&function(e,t){var n,r=!0;for(n=0;n<e.length;n++)if(e[n]===t){r=!1;break}return r}(r,e)&&r.push(e)}),n),K(r).filter(e)}}};const Pe=function(){"use strict";const e=[];return{push:function(t,n){let r=0;n=n||Number.MAX_VALUE;e[e.length]=function(){r<n&&(r++,t.apply({},arguments))}},run:function(){const t=arguments;K(e).each((function(e,n){n.apply({},t)}))}}};var Ve=function(e){"use strict";var t={};return{doEligibleJobs:function(n){K(e).each((function(e,r){var i=r&&r.getTime();K.isDef(i)&&n>=i&&!t[i]&&(r.getTask().call(),t[i]=!0)}))}}},Fe=function(){"use strict";var e,n=new xe;return{listen:function(r,i,o){e=function(e){!function(e,t,r,i){var o,a,s,c;if(JSON&&JSON.parse)try{o=JSON.parse(e.data),a=e.source,c=K.noop,t(o)&&(i&&(s=i(a,o))&&(c=function(){n.send((function(){return s}),a)}),r(e,o,c))}catch(e){o&&z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.MESSAGE_LISTENER)}}(e,r,i,o)},st.addEvent(t,"message",e)},stop:function(){e&&st.removeEvent(t,"message",e),e=null}}},xe=function(){"use strict";return{send:function(e,t){if(JSON&&JSON.stringify){var n=function(e){return K(e).isObj()?[e]:(new Me).getFrames(e)}(t);K(n).each((function(t,n){var r,i=K.resolve(e,n)||{};i.sentTime=Ot.now(),r=function(e){return K(e).mapToObj((function(e,t){var n;return K.isFunction(t)||((n={})[e]=t),n}))}(i),n.postMessage(K(r).JSONStringify(),"*")}))}}}},Le=function(e){"use strict";var t=0,n={},r=function(e,n,r){if(K.isUndef(e.output))throw new Error("item with id "+n+' must have "output" method');this.item=e,this.id=n||++t,this.props=r||{},this.output=function(){var t=K.resolve(e.output);return this.props.asION&&(t=K(t).toION()),t}},i=function(e){var t,r,i=[];for(t in n)n.hasOwnProperty(t)&&(r=e(t,n[t]))&&i.push(r);return i},o=function(e,t,i){i="string"!=typeof(i=i||t)?i:{};var o=K(e.output).isObj()&&!i.asION,a=function(e,t,i){var o=new r(e,t,i);n[o.id]=o};o?K(e.output).each((function(e,t){a({output:t},e,i)})):a(e,t,i)};return e.on(Se.AddOutputItem,(function(e,t,n){o(e,t,n)})),{addItem:o,filterOutput:function(e,t){return i((function(n,r){var i,o=r.props;e(o)&&(i=r.output(),o.encode&&(n=encodeURIComponent(n),i=encodeURIComponent(i)),K.isFunction(t)?t(n,i):t[n]=i)}))},iterate:i,cleanup:function(){i((function(e,t){t.props.flagForRemoval&&delete n[e]}))},getItem:function(e){return n[e]}}};const ke=function(){"use strict";const e={},t=(t,n)=>{e[t]=n};return{request:function(t){let n;const r=e[t],i=K(arguments).toArray();return i.shift(),K.isUndef(r)||(n=K.isFunction(r)?r.apply({},i):r),n},provide:(e,n)=>(n?t(e,n):K(e).each(t),n)}};var Ue=function(){"use strict";return{createInstance:function(e,t,n,r){return at.isDomless()?new Ge:new We(e,t,n,r)}}},We=function(e,t,n,r){"use strict";var i,o=function(e,t){return{viewState:Q.NA,posViewState:Q.NA,embedded:at.embedded,winDimensions:e,adDimensions:t}};return{collect:function(){var t=e.find(),a=t.getOutOfViewReasons(),s=n.isHidden(),c=r.isDeviceTypeGroupMobile()&&i?i:dt(gt.calcWinDims()),u=t.getDims();return i=c,t.hasAd()&&c.hasValidDims()&&u.hasValidDims()?(!0===s&&a.push(Q.OUT_OF_VIEW_REASONS.FOCUS),{winDimensions:c,adDimensions:u,containerDimensions:t.getContainerDims(),method:t.getDetectionMethod(),viewState:a.length?Q.OUT_OF_VIEW:t.getViewState(),viewStateIgnoringRender:t.getViewStateIgnoringRender(),percentInView:t.getPercentInView(),percentInViewIgnoringRender:t.getPercentInViewIgnoringRender(),reason:a.join("."),obstructed:K.stringifyTriState(t.isObstructed()),isHidden:K.stringifyTriState(t.isHidden()),tabHidden:K.stringifyTriState(s),posViewState:t.getViewState(),adCompCount:t.getComponentCount(),sliceStatus:t.getSliceStatus()}):o(c,u)}}},Ge=function(){"use strict";return{collect:function(){return{}}}},Be=function(e){"use strict";e=e||K.identity;var t=[],n=Ot.now(),r=function(){var e=Ot.now();t.length&&(t[t.length-1].duration+=e-n,n=e)};return{clear:function(){r(),t=[]},fastForward:r,get:function(){return t},hasAlwaysBeen:function(e){return 1===t.length&&t[0].state===e},addState:function(n){var i=t[t.length-1],o=e(n);r(),0!==t.length&&o===i.state||t.push({state:o,duration:0})}}};const He=function(e,t){"use strict";const n=e||1;let r,i=0,o=0,a=0;return{start:()=>{i%n==0&&(r=Ot.now())},stop:()=>{const e=r||t;i%n==0&&(a+=Ot.now()-e,o++),i++},getTime:()=>a,getCount:()=>o}};var je=function(){"use strict";var e,t=0,n=0,r=new _e(!0),i=function(){e&&(t++,r.trigger(t),n>t?Ot.execAtEndOfThread(i):o())},o=function(){e=!1,t=0};return{onTick:function(e,t){var i=K.collapseArgsIntoHash(e,t);K(i).each((function(e,t){e=parseInt(e),n=e>n?e:n})),r.on(i)},start:function(){e||(e=!0,Ot.execAtEndOfThread(i))},kill:o,isActive:function(){return e}}},qe=function(e){"use strict";var t,n=0,r=at.getTagTime(),i=0,o=!1;return{getTotalTime:function(){return i},stop:function(){n=0,r=at.getTagTime(),o=!1},mark:function(){t=o?at.getTagTime()-r:0,(n+=t)>=e&&(i+=n-t<e?n:t),r=at.getTagTime(),o=!0}}};const Ye=function(t,n){"use strict";let r=t||e.adsafeSrc||e.requrl;r&&0===r.indexOf("http")||(r=0===r.indexOf("//")?e.protocol+":"+r:e.protocol+"://"+r);const i=/((http|https):\/\/(([^\/\.]*)\.([^\/]*)))(?:\/(.[^?]*)\??(.+)?)*/.exec(r)||[],o=i[1]?i[1]:"",a=i[2]?i[2]:"",s=i[3]?i[3]:"";let c=i[4]?i[4]:"",u=i[5]?i[5]:"",d=t&&i[6]?i[6]:"",g=i[7]&&n?i[7]:"";const l={},f=function(e){return"string"==typeof e&&(c=e),c},p=function(e){return"string"==typeof e&&(u=e),u},m=function(t,n){const r=t+"="+K(n).toION();return K.encodeInvalidUrlChars(r,e.encodeInvalidUrlChars)},h=function(){const e=K(l).isEmpty()?"":K(l).stringify(m,"&");return"?"+g+(g&&e?"&"+e:e)};g=g?g.replace(/&$/,""):"";return{appendToParamValue:function(e,t){let r,i,o,a;const s=l[e];s?l[e]=s+t:n&&g.length&&(r=g.split(e),a=r.length>1,a&&(i=r[1].split("&")[0],o=[r[0],i].join(e),g=g.replace(o,o+t)))},fullDom:o,hostname:s,sub:f,master:p,setParam:function(e,t){l[e]=l[e]||{},"string"==typeof t||"number"==typeof t?l[e]=t:K(l[e]).mixin(t)},path:function(e){d=e},toString:function(){const e=f()?f()+".":"",t=d?"/"+d:"",n=g||!K(l).isEmpty()?h():"";return a+"://"+e+p()+t+n}}};var Xe=function(){"use strict";var e=function(e){var t=[];return K(e).each((function(e,n){t.concat(n).join("").length<=400&&t.push(n)})),t},t=function(e){var t=gt.getAncestorNodes(e);return K(t).map(n)},n=function(e,t){var n;return t&&t.id&&(n=t.id.replace(/[^\w-_.>\/]/g,"")),n};return function(){var n,r;try{return at.friendly&&!at.isMobileApp()&&((n=z.getAggregator().request(Te.AdSlotIDs))?r=n:(n=function(){var n,r;return(n=gt.getOurNodeInTop())&&(r=t(n)),r&&e(r)}(),n&&(z.getAggregator().trigger(Se.AddOutputItem,{output:n},De.Slid,{type:Q.DT_CODES.ADTALK,asION:!0}),z.getAggregator().provide(Te.AdSlotIDs,n),r=n))),r}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.AD_SLOT_ID)}}()},Ke={name:"AdRefreshDetection",dependencies:[],creator:function(){"use strict";var t=[15,20,30,45,60,90],n={start:function(){var t=this,n=e.asid,r=t.parseQuery(),i=t.getCacheId(r);n&&r.chanId&&(this.recordAdSlotImpression(n,r.chanId,i,(function(e,n){e?z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.AD_REFRESH):t.sendRefreshSession(n)})),t.registerInternalViewabilityListener(r.chanId,i))},getCacheId:function(t){if(t&&t.cacheId)return t.cacheId;if(e&&e.contextNode){try{const n=e.contextNode.ownerDocument.querySelector("#ias-"+t.cb);if(n)return n.id}catch(e){}if(e.contextNode.nextSibling&&e.contextNode.nextSibling.id)return e.contextNode.nextSibling.id}return null},adRefreshIntervalIsValid:function(e){return-1!==t.indexOf(e)},parseQuery:function(){for(var t=e.reqquery.split("&"),n={},r=0;r<t.length;r+=1){var[i,o]=t[r].split("=",2);""!==i&&(n[i]=o)}return n},sendRefreshSession:function(e){var t=(0===e.refreshCount?"self":e.refreshSessionId)+"."+e.refreshCount;z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,"ar",t)},recordAdSlotImpression:function(e,t,n,r){var i=Ot.getTop(),o={requestTop:"recordAdSlotImpression",asid:e,adUnitId:t,cacheId:n};window.addEventListener("message",(function(e){if(/refreshSession/g.test(e.data))try{var t=e&&e.data&&JSON.parse(e.data);r(null,t)}catch(e){r(e)}}),!1),i.postMessage(JSON.stringify(o),"*")},registerInternalViewabilityListener:function(e,t){var n=this,r=G.measurementConfig.adRefreshThreshold&&parseInt(G.measurementConfig.adRefreshThreshold)||null,i=Ot.getTop();r&&this.adRefreshIntervalIsValid(r)&&z.getAggregator().on(Se.SendDt,(function(o,a){o!==Q.DT_CODES.PING&&o!==Q.DT_CODES.CUSTOM||a!==r||(Ot.execAtEndOfThread((function(){i.postMessage(JSON.stringify({requestTop:"refreshAd",adUnitId:e,cacheId:t}),"*")})),n.sendAutoRefreshProp(r))}))},sendAutoRefreshProp:function(e){z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,"ir",e),z.getAggregator().trigger(Se.AdSessionComplete)}};return at.isRefreshable((function(e,t){var r;if(!e&&t)try{(r=JSON.parse(t)).isRefreshable&&r.adServerName&&n.start()}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.AD_REFRESH)}})),n},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return n.isPossiblyRefreshable()}}},Je=function(){"use strict";var e,t,n=function(e,t){return-1!==t.indexOf("https")&&(t+="*"),t.replace(/^https?:\/\//,"")},r=function(){if(z.getAggregator().request(Te.AdNode))return parseFloat(z.getAggregator().request(Te.VideoVersion))};return{isApplicable:function(e,t){return!function(e){return e.isVideo()&&!(e.isMraid()||e.isOmid())&&r()<3.7}(t)&&e.hasAncestorOrigins&&e.hasAncestorOrigins()&&t.xDomainIframe},isStarted:function(){return!!t},start:function(){try{e=Ot.getWindow().location.ancestorOrigins,t=!0}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.ANCESTOR_ORIGINS)}},getMyFrameDepth:function(){return e&&e.length||0},getTopDomain:function(){return K.last(e)},sendOriginList:function(){var t;t="ao:"+(e?K(e).map(n).reverse():[]).join(","),z.getAggregator().trigger(Se.AddOutputItem,{output:t},De.ThirdPartyDataLookup,{type:Q.DT_CODES.THIRD_PARTY,standalone:!0,encode:!0}),z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.THIRD_PARTY)}}},ze=function(t,n,r,i,o){"use strict";var a=function(e,t,n){o.addItem({output:e+"."+t+"."+n},"ctpl")},s=function(e){try{n.diagnostic("c");var o=e.length,s=0,c=0;a(o,0,0),K(e).each((function(e,n){t.send(function(e){return e.replace("%%CBS%%",i.getCacheBustId())}(n),(function(){a(o,s,++c)}),!0),a(o,++s,c)}))}catch(e){r.add(Q.ERROR_CODES.AT_SEND)}};return{init:function(){try{var n=(new Ye).fullDom;"/"!==n.slice(-1)&&(n+="/"),n+="tpl?asId="+e.asid,t.jsonp(n,s)}catch(e){r.add(Q.ERROR_CODES.AT_INIT)}}}},Qe=function(t,n,r,i){"use strict";return{enabled:"true"===e.useBapiCallback,callback:function(n){r.trigger(Se.SendDiag);try{"true"===e.accountForSadImps&&i.measure(n),e._onAPIResult&&e._onAPIResult(n)}catch(e){t.add(Q.ERROR_CODES.BAPI_CALLBACK),r.trigger(Se.SendDiag,"bapiClient")}}}},$e=function(){"use strict";return{createInstance:function(e,t,n,r){return at.isDomless()?new et:new Ze}}},Ze=function(){"use strict";var e=Q.BROWSERS,t=function(){var t="u",n=Ot.getWindow();try{K.isDef(n.opr)&&n.opr.addons||K.isDef(n.opera)&&K.isDef(n.opera.buildNumber)?t=e.OPERA:K.isDef(n.mozInnerScreenY)?t=e.GECKO:K.isDef(n.chrome)&&K.isDef(n.chrome.csi)?t=e.CHROME:K.isDef(n.msWriteProfilerMark)&&K.isDef(n.crypto)?t=e.MSEDGE:K.isDef(n.WebKitPoint)?t=e.WEBKIT:(K.isDef(n.attachEvent)||K.isDef(n.msCrypto))&&(t=e.IE)}catch(e){}return t},n=function(){var e="";try{var t=Ot.getWindow();K.isDef(t.navigator)&&K.isDef(t.navigator.userAgent)&&(e=t.navigator.userAgent)}catch(e){}return e},r=function(){var t=n().toLowerCase();return t.indexOf(" opr/")>-1?e.OPERA:t.indexOf("firefox")>-1?e.GECKO:t.indexOf("edg")>-1?e.MSEDGE:t.indexOf("chrome")>-1?e.CHROME:t.indexOf("webkit")>-1?e.WEBKIT:t.indexOf("msie")>-1?e.IE:encodeURIComponent(t)||"_"};return{browserIs:function(e){return t()===e},hasIntersectionObserver:function(){return"function"==typeof IntersectionObserver},hasMutationObserver:function(){return"function"==typeof MutationObserver},hasResizeObserver:function(){return"function"==typeof ResizeObserver},hasAncestorOrigins:function(){var e=Ot.getWindow().location;return!(!e||!e.ancestorOrigins)},hasPostMessage:function(){var e=Ot.getWindow();return!(!e||!K.isFunction(e.postMessage))},getBrowserType:t,getBrowserTypeByUA:r,getUserAgent:n,params:function(){return{br:t(),bru:r(),an:(e=Q.NA,n=Ot.getWindow(),K.isDef(n.navigator)&&K.isDef(n.navigator.appName)&&(e=n.navigator.appName.toLowerCase()[0]),e)};var e,n},isAndroidWebViewBrowser:function(){var e=n();return Vt.contains(e,"Android")&&K(["Line","SamsungBrowser","FB_IAB","Silk"]).findFirst((function(t,n){return Vt.contains(e,n)}))},getIOSVersion:function(){var e,t,r,i=n();return i&&(e=i.match(/OS\s\d+/))&&e.length>0&&(r=(t=e.toString().match(/\d+/))&&t.length>0&&parseInt(t.toString())),r}}},et=function(){"use strict";var e=function(){return!1};return{getBrowserType:()=>"u",getBrowserTypeByUA:()=>"d",getIOSVersion:()=>{},params:()=>({br:"u",bru:"d",an:Q.NA}),browserIs:e,getUserAgent:e,hasPostMessage:e,hasAncestorOrigins:e,hasIntersectionObserver:e,hasMutationObserver:e,isAndroidWebViewBrowser:e}},tt=function(){"use strict";return{createInstance:function(e,t){return at.isDomless()?new it(t):new rt(e,t)}}},nt=function(){"use strict";var t;return{isApplicable:function(n){var r=!(!(t=z.getAggregator().request(Te.OmidAdSessionContext)).app||!t.isDisplay||t.isWeb),i=n&&n.indexOf("/blocking/")>-1&&!at.integratedBlockingApplies(n),o=1!=e.forceNoIframe;return r&&i&&o},deployBlockingScriptIntoIframe:function(n){t=z.getAggregator().request(Te.OmidAdSessionContext);var r,i="iasbi"+e.asid,o=function(t,n){var r,i,o,a=e[De.ContextNode].parentNode,s="about:blank",c=e.adWidth&&e.adWidth>0?e.adWidth:0,u=e[De.AdHeight]&&e[De.AdHeight]>0?e[De.AdHeight]:0,d=Ot.getDoc().getElementsByTagName("ins"),g=0,l=0;d&&d.length>0&&(o=d[0],g=parseInt(o.style.width),l=parseInt(o.style.height));var f=g||c||window.innerWidth,p=l||u||window.innerHeight;return"complete"===Ot.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?((r=Ot.getDoc().createElement("IFRAME")).id=t,r.src=s,a.appendChild(r)):Ot.getDoc().write('<iframe id="'+t+'" src="'+s+'"></iframe>'),(i=Ot.getDoc().getElementById(t))&&(i.style.width=f+"px",i.style.height=p+"px",i.scrolling="no",i.frameborder=0,i.style.position="absolute",i.style.padding=i.style.margin=i.style.border="0px"),i}(i);o&&(r=o.contentWindow.document)&&(r.open().write(function(e,t){var n,r="",i="",o=Ot.getDoc().getElementsByTagName("ins");if(o&&o.length>0){n=o[0],r="<ins";for(var a=0;a<n.attributes.length;a++)r+=" "+n.attributes[a].nodeName+'="'+n.attributes[a].nodeValue+'"';r+=">",i="</ins>"}return'<!doctype html><html><head></head><body style="margin:0px;border:0px;padding:0px;font-size:0px"><script>var IASid = "'+e+'", largestSize = 0;var IASmonitorDom = function () {  var DOM_MONITOR_PERIOD = 100;  var i, us, thisSize, thisWidth, thisHeight;  var elems = document.body.getElementsByTagName("*");  for (i = 0; i < elems.length; i++) {    if (elems[i].tagName && elems[i].tagName.toLowerCase() === "ins")      continue;    thisWidth = elems[i].offsetWidth;    thisHeight = elems[i].offsetHeight;    thisSize = thisWidth * thisHeight;    if (thisSize > largestSize) {      largestSize = thisSize;      us = parent.document.getElementById(IASid);      if (us) {        us.setAttribute("CreativeLoaded","true");        if (elems[i].style.left !== "") {          us.style.left = elems[i].style.left;          elems[i].style.left = "0px";        }        if (elems[i].style.top !== "") {          us.style.top = elems[i].style.top;          elems[i].style.top = "0px";        }      }    }  }  setTimeout(IASmonitorDom, DOM_MONITOR_PERIOD);};setTimeout(IASmonitorDom,50);<\/script>'+r+'<script src="'+t+'" referrerpolicy="'+Q.REFERRER_POLICY+'"><\/script>'+i+"</body></html>"}(i,n)),r.close())}}},rt=function(r,i){"use strict";var o=function(t,r,i,o){var a,s;const c=ot({url:r});r=c||r,"script"!==t?((s=n.createElement("DIV")).innerHTML=i,a=s.childNodes[0]):((a=n.createElement("SCRIPT")).src=r,o&&(a.onload=o)),e[De.ContextNode].parentNode.appendChild(a)},a=function(r,i,a){var s,c,u,d="",g=function(e){const t=ot({url:e});return' src="'+(e=t||e)+'"'}(i),l=' referrerpolicy="'+Q.REFERRER_POLICY+'"';at.doesPageAllowAppendedScripts()&&a&&(c="__IntegralASEventLoadHandler_"+e.asid.replace(/-/g,""),t[c]=a,d=function(e){return' onload="'+e+" && "+e+'()"'}(c)),u={script:['<script type="text/javascript"',d,g,l,"><\/script>"],iframe:['<iframe width="100%" height="100%" frameborder="0" vspace="0" hspace="0" scrolling="no" marginheight="0" marginwidth="0"',d,g,l,"></iframe>"],img:["<img",d,g,l,"/>"]}[r].join(""),at.isOmid()?(s=new nt).isApplicable(i)?s.deployBlockingScriptIntoIframe(i):o(r,i,u,a):("loading"!==Ot.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?o(r,i,u,a):n.write(u))},s=function(e,t,n){var r,i=!n&&st.getXHR2();const o=ot({url:e});e=o||e,i?(i.open("POST",e),i.onreadystatechange=function(){4===i.readyState&&200===i.status&&t&&t()},i.send()):(r=gt.createImage(),t&&(r.onload=t),r.src=e.toString())},c=function(e,t){var n=st.getXHR2();const r=ot({url:e});e=r||e,n&&(n.open("GET",e),n.onreadystatechange=function(){if(4===n.readyState&&200===n.status&&t)try{var e=JSON.parse(n.responseText);t(e)}catch(e){return}},n.send())},u=function(e,t,r,i){const{contextNode:o,measurementConfig:a}=G;var s="text/javascript",c=Ot.getDoc(),u=c&&"loading"===c.readyState,d=a&&a.isStaticMode,g=n.createElement("script");const l=ot({url:e}),f=o&&o.dataAttributes,p="true"===(f&&f.iasForceAppend);let m=o&&o.element&&o.element.parentNode;if(a&&a.isStaticFrameInFrame&&o&&o.element&&o.element.contentDocument&&(m=(c=o.element.contentDocument).body),r=r||m,e=l||e,g.type=s,g.src=e,g.referrerPolicy=Q.REFERRER_POLICY,t&&(g.onload=t),i&&(g.setAttribute("defer",""),g.setAttribute("async","")),d&&u&&!p){const t=`<script type="${s}" src="${e}"><\/script>`;c.write(t)}else K.isDef(r)&&r.appendChild(g)},d=function(t){if(K.isFunction(t))t({iasImpId:e.asid});else if(t&&"string"==typeof t){var n=new Ye(t,!0).toString();s(n,void 0,!0)}},g=function(e,t,n,r){u(i.wrap(e,t,n,r))};return z.getAggregator().on({[Se.AddNode]:a,[Se.Send]:s,[Se.Exec]:u,[Se.Notify]:d,[Se.GetJSON]:c,[Se.JSONP]:g}),{addNode:a,send:s,exec:u,notify:d,getJSON:c,jsonp:g}},it=function(t){"use strict";var n=function(e,t){t=t||e,e=arguments.length>1?e:"script";const n=ot({url:t});t=n||t,t=encodeURI(t);var r=z.getAggregator().request(Te.OmidVerificationClient);r["script"===e?"injectJavaScriptResource":"sendUrl"](t,(function(){}))},r=function(e,t){const n=ot({url:e});e=n||e,e=encodeURI(e),z.getAggregator().request(Te.OmidVerificationClient).sendUrl(e.toString(),t||function(){})},i=function(e,t){var n=z.getAggregator().request(Te.OmidVerificationClient);const r=ot({url:e});e=r||e,e=encodeURI(e),n.injectJavaScriptResource(e,t||function(){})},o=function(t){if(K.isFunction(t))t({iasImpId:e.asid});else if(t&&"string"==typeof t){var n=new Ye(t,!0).toString();r(n)}},a=function(e,n,r,o){i(t.wrap(e,n,r,o))};return z.getAggregator().on({[Se.AddNode]:n,[Se.Send]:r,[Se.Exec]:i,[Se.Notify]:o,[Se.JSONP]:a}),{addNode:n,send:r,exec:i,notify:o,jsonp:a}};const ot=({url:t})=>{const n=e.iasProxyPartnerDomain;let r,i,o;if("string"==typeof t)i=t;else try{i=t.toString()}catch(e){}if(i&&(o=i.includes("jsconfig.adsafeprotected.com/jsconfig"),at.isMSFT()&&!o&&n&&"string"==typeof n)){r=`https://${n}${encodeURIComponent(i)}`}return r};var at=function(t){"use strict";var n="undefined"==typeof window,r=function(){return n},i=void 0!==t&&"undefined"!=typeof top&&t!==top,o=function(){var e=!1;if(r())e=!0;else try{e=!!top.document}catch(e){}return e}(),a=function(){return r()||K.isDef(Ot.getWindow().mraid)},s=function(){return!r()&&K.isDef(Ot.getWindow().mraid)},c=function(){var e=!1;if(!r()){var t=Ot.getWindow().inmobi,n=t&&t.IASDocumentVideoBuffer,i=t&&n&&K.isFunction(n.addVideoEventListener);e=s()&&!!i}return e},u=function(){const t=e.mode&&e.mode.includes("jsvid")||G.adTag.tagType&&G.adTag.tagType.includes("jsvid"),n=(e.mode&&e.mode.includes("amtjs")||G.adTag.tagType&&G.adTag.tagType.includes("amtjs"))&&e.videoId&&""!==e.videoId;return Boolean(t||n||(r=z.getAggregator(),i=r.request(Te.OmidVerificationClient),o=!1,a=r.request(Te.OmidAdSessionContext),i&&a&&(o=a.mediaType===Q.MEDIA_TYPE.VIDEO),o)||c());var r,i,o,a},d=function(){return!1===e.fwMonitoring||"false"===e.fwMonitoring},g=function(){return e[De.MobOrTab]},l=function(t){if(!1===K(e.customViewability).isArray())return!1;return K(e.customViewability).filter((function(e,n){return Vt.contains(n.id,t)})).length>0},f=function(){return e.use100v},p=function(){return l("grpm")||f()},m=function(){return K.isStr(e.iasProxyPartnerDomain)&&-1!==e.iasProxyPartnerDomain.indexOf("bing")};return{embedded:i,friendly:o,isFriendlyToParent:function(e){var t,n;if(r())t=!0;else{try{n=Ye(e.document.referrer).hostname===e.location.hostname}catch(e){}t=n}return t},friendlyIframe:i&&o,xDomainIframe:i&&!o,getTagTime:function(){return Ot.now()-G.measurementConfig.birthdate},getPageTime:function(){var e=Q.NA;return!r()&&K.isDef(t.chrome)&&K.isDef(t.chrome.csi)&&K.isFunction(t.chrome.csi)&&(e=Ot.round(t.chrome.csi().pageT)),e},isVideo:u,isMobileApp:a,isSpecifiedAd:function(){var t=!1;if(!r()){var n=K.isFunction(e.contextNode.getAttribute)&&e.contextNode.getAttribute("data-ias-container")||e._cl_adpath;t=n&&K.isStr(n)}return t},isCompoundAd:function(){var t=!1;if(!r()){var n=e._cl_adpath,i=/\[(.*)\]/.exec(n);t=null!==i&&0!==i[1].length&&i[1].split(",").length>1}return t},isOmid:function(){var t=z.getAggregator().request(Te.OmidVerificationClient);return t&&t.isSupported()&&!e.videoId},isOmidNative:function(){return(new Xn).accepts()},isOmidSandboxedEnvironment:function(){return(new Xn).accepts()},isOmidForWeb:function(){return(new En).accepts()},isDomless:r,isBustedIframe:function(){var e=!1;return r()||(e=void 0!==br()),e},isMraid:s,isSafeFrame:function(){var e=!1;return r()||(e=K(Ot.getWindow().$sf).isObj(!1)&&K(Ot.getWindow().$sf.ext).isObj(!1)),e},isInMobiMraidVideo:c,isDeviceTypeGroupMobile:g,usesIASFullyInViewCustomMetric:function(){return l("fiv")||f()||!p()},usesGroupMCustomMetric:p,isCeltra:function(){var e=!1;return r()||(e=_r().isApplicable()),e},usesGroupMCustomMetricMobilePassThru:function(){return p()&&g()},usesZeroPivCustomMetric:function(){if(!1===K(e.customViewability).isArray())return!1;return K(e.customViewability).filter((function(e,t){return K(t.thresholds).findFirst((function(e,t){return 0===t.piv}))})).length>0},isRefreshable:function(e){try{var t=Ot.getTop();window.addEventListener("message",(function(t){/isRefreshable/g.test(t.data)&&e(null,t&&t.data)}),!1),t.postMessage(JSON.stringify({requestTop:"isRefreshable"}),"*")}catch(t){e(t)}},isPossiblyRefreshable:function(){return!r()&&!a()&&!u()&&i&&"jload"===G.adTag.tagType},integratedBlockingApplies:function(t){var n,r,i,o,a=!1;e.contextNode&&K.isFunction(e.contextNode.getAttribute)&&(n=e.contextNode.getAttribute("data-ias-check-tag"),r=e.contextNode.getAttribute("data-ias-check-done"),o=(i=e.contextNode.getAttribute(Q.CALLBACK_IDENTIFIER.toString()))&&K.isFunction(Ot.getWindow()[i]));var s=K.isDef(JSON)&&K.isFunction(JSON.parse),c=e.integration&&(t.indexOf("skeleton.js")>0||t.indexOf("/internal/")>0),u=!0===e.fwMonitoring||"true"===e.fwMonitoring;return s&&c&&("true"===n&&"true"!==r&&o?(a=!0,u&&z.getAggregator().trigger(Se.AddOutputItem,{output:"imgb"},De.MismatchOfIntegratedBlockingTagTypes,{type:"impression"})):(a=!1,u||z.getAggregator().trigger(Se.AddOutputItem,{output:"ibgm"},De.MismatchOfIntegratedBlockingTagTypes,{type:"impression"}))),a},isBlocking:d,isBlockingSizmekTag:function(){return d()&&Vt.contains(e.scriptUrl,"bs.serving-sys.com")},isAMZN:function(){return K.isStr(e.iasProxyPartnerDomain)&&-1!==e.iasProxyPartnerDomain.indexOf("amazon")},isMSFT:m,isPageOnShadowDomWhitelist:function(){var t=!1;return m()&&(t=!0),K.isStr(e.iasProxyPartnerDomain)&&-1!==e.iasProxyPartnerDomain.indexOf("integral.local")&&(t=!0),t},doesPageAllowAppendedScripts:function(){var e=!0;return m()&&(e=!1),e}}}(t),st={addEvent:function(e,t,n,r){"use strict";K.isDef(e.addEventListener)&&("mouseenter"===t?e.addEventListener("mouseover",st.mouseEnter(n),r):"mouseleave"===t?e.addEventListener("mouseout",st.mouseEnter(n),r):e.addEventListener(t,n,r))},removeEvent:function(e,t,n){"use strict";K.isDef(e.removeEventListener)&&("mouseenter"===t?(t="mouseover",n=st.mouseEnter):"mouseleave"===t&&(t="mouseout",n=st.mouseEnter),e.removeEventListener(t,n))},mouseEnter:function(e){"use strict";var t=this;return function(n){var r=n.relatedTarget;this===r||t.isAChildOf(this,r)||e.call(this,n)}},isAChildOf:function(e,t){"use strict";if(e===t)return!1;for(;t&&t!==e;)t=t.parentNode;return t===e},getStyle:function(e,t,r){"use strict";var i,o="";if(r=r||"",n.defaultView&&n.defaultView.getComputedStyle){try{i=n.defaultView.getComputedStyle(e,r)}catch(e){}o=i?i.getPropertyValue(t):o}else e.currentStyle&&(t=t.replace(/\-(\w)/g,(function(e,t){return t.toUpperCase()})),o=e.currentStyle[t]);return o},getXHR2:function(e,n){"use strict";var r,i;return K.isDef(t.XMLHttpRequest)?"withCredentials"in(i=new XMLHttpRequest)&&(r=i):K.isDef(XDomainRequest)&&(r=new XDomainRequest),r},whenReady:function(e,t){"use strict";if(at.isDomless())Ot.setTimeout((function(){e()}),50);else{var r,i,o=t||(at.xDomainIframe?n:Ot.getTop().document),a=this;r=e,i=function(){r(!0)},K.isFunction(n.addEventListener)?"complete"==o.readyState||"loaded"==o.readyState||"interactive"==o.readyState?Ot.execAtEndOfThread(i):a.addEvent(o,"DOMContentLoaded",i,!1):function(e){var t=Ot.setInterval((function(){o.body&&(Ot.clearInterval(t),e())}),50)}(r)}},isSandboxed:function(e){"use strict";var t,n=Ot.getWindow(),r=!1;if("sandbox"in Ot.getDoc().createElement("iframe")){try{t=n.frameElement}catch(e){}r=t?t.hasAttribute("sandbox"):function(){var t=!1,n=Ot.getDoc();if(e.browserIs(Q.BROWSERS.CHROME))try{n.domain="hol@#3+~"}catch(e){/Assignment is forbidden for sandboxed iframes/.test(e.message)&&(t=!0)}return t}()}return r},styleElement:function(e,t){"use strict";if(e&&K(e.style).isObj()&&K(t).isObj()){var n="";K(t).each((function(e,t){n+=e+": "+t+" !important;"})),e.style.cssText=n}},nodeIsAbsolutelyPositioned:function(e){"use strict";return"absolute"===st.getStyle(e,"position")||e.style&&"absolute"===e.style.position}},ct=function(e){"use strict";var t,n,r,i,o,a=ct.callTypeCounter,s=[Q.DT_CODES.ADTALK],c={UNLOAD:-1,ADTALK:-2,VIEWABILITY_READY:-3,VIDEO_EVENTS:-4,DIAGNOSTIC:-5,THIRD_PARTY:-6,QUARTILE_FULLY_INVIEW:-7,LARGE_BILLABLE:-8,SCA:-10,ADSERVER_MACROS:-11};return i=(t={},n=Q.DT_CODES,K(["UNLOAD","ADTALK","VIEWABILITY_READY","VIDEO_EVENTS","DIAGNOSTIC","THIRD_PARTY","QUARTILE_FULLY_INVIEW","LARGE_BILLABLE","SCA","ADSERVER_MACROS"]).each((function(e,r){t[n[r]]=c[r]})),t)[e],o=a&&a[e],K.isDef(o)&&0!==o&&K(s).contains(e)&&(i=i+"."+o),r=a[e],a[e]=K.isDef(r)?r+1:1,{callType:e,enumerator:i}};ct.callTypeCounter={};var ut=function(t,n,r,i,o,a,s,c){"use strict";var u,d=0,g=0,l=!1,f=!1,p=!1,m=function(t,n,a,c,m,h){a=a||!r.on("postDts");var v=t===Q.DT_CODES.DIAGNOSTIC||t===Q.DT_CODES.ADTALK||t===Q.DT_CODES.SCA||t===Q.DT_CODES.XSCA||t===Q.DT_CODES.EXTERNAL||t===Q.DT_CODES.LARGE_BILLABLE||t===Q.DT_CODES.ADSERVER_MACROS;if(i.impressionIsIdentifiable()&&(v||"n"!==s.getCurrentLoc()))try{var A=e.dtBaseURL,S=new Ye(A,!0),y=Ot.now();z.getAggregator().trigger(Se.PreSendDt,t),A||(S.path(Q.DATA_TRANSFER_EVENT),r.on("usedtdomain")&&S.sub(Q.DATA_TRANSFER_EVENT)),I(S,t,n),m&&m.field&&S.setParam(m.field,m.value),c||E(S,t),f?u.push({url:S,dtCallTime:Ot.now()-y,additionalCallback:h,useImg:a}):p||z.getAggregator().trigger(Se.Send,S,(function(){g+=1,d=Ot.now()-y,K.isFunction(h)&&h()}),a),t===Q.DT_CODES.UNLOAD&&(l=!0),o.cleanup()}catch(e){__IntegralASDiagnosticCall("dt-"+t,e),z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.PHONE_HOME)}},h=function(){if(!l){var e=Q.DT_CODES.UNLOAD;m(e,-1,!0)}},v=function(e,t){var n={bapi:"a",bapiClient:"b",jload:"c",jss:"d",jsi:"e"},i=n[e]||n[G.adTag.tagType];t=t||G.adTag.tagType+"Diag",r.on(t)&&i&&m(Q.DT_CODES.DIAGNOSTIC,-5,!0,!0,{field:"bkp",value:i})},I=function(t,n,r){var a=new ct(n),s=K.isDef(r)?r:a.enumerator;t.setParam("asId",e.asid);var c={c:i.getCacheBustId(),pingTime:s,time:at.getTagTime(),type:n};f&&(c.qd=1);o.filterOutput((function(e){var t=e.minDt&&(!e.type||e.type===n);return t&&e.oneTime&&(e.flagForRemoval=!0),t}),c),t.setParam("tv",c)},E=function(e,t){var i,u,l={};o.filterOutput((function(e){return e.standalone&&!e.minDt&&e.type===t}),(function(t,n){e.setParam(t,n.replace(/%3A/g,":"))})),s.fastForward(),function(e){return e===Q.DT_CODES.CUSTOM||e===Q.DT_CODES.UNLOAD||e===Q.DT_CODES.VIDEO_EVENTS||e===Q.DT_CODES.FULLY_INVIEW||e===Q.DT_CODES.PING||e===Q.DT_CODES.VIEWABILITY_READY||e===Q.DT_CODES.ADTALK}(t)&&(l.clog=c,at.isVideo()&&(u=at.isOmid()?"omidVideoEventsString":"videoEventsString",(i=z.getAggregator().request(u))&&!i.isEmpty()&&(l.ve=i))),t===Q.DT_CODES.UNLOAD&&(l.ndt=g),G.adTag&&-1!==G.adTag.tagType.indexOf("jsvid")&&(l.vv=z.getAggregator().request(Te.VideoVersion)),l.NULL1=r.output(),l.NULL2=s.stringify(10),l.em=at.embedded,l.fr=at.friendly,l.e=n.toString(),l.tt=G.adTag.tagType,l.dtt=d,o.filterOutput((function(e){var n=!(e.standalone||e.minDt||e.type&&e.type!==t);return n&&e.oneTime&&(e.flagForRemoval=!0),n}),l),e.setParam("tv",l),e.setParam("br",a.getBrowserType())};return z.getAggregator().on({[Se.SendDt]:function(e,t,n){var r;m(e,K.resolve(t),r,r,r,n)},[Se.SendMinDt]:function(e,t){m(e,t,void 0,!0)},[Se.SendDiag]:v,[Se.UpdateDtCount]:function(){g++},[Se.Unload]:h,[Se.DtEnterQueuingMode]:function(){u=[],f=!0},[Se.DtExitQueuingMode]:function(){u&&u.forEach((e=>{z.getAggregator().trigger(Se.Send,e.url,(function(){g+=1,d=e.dtCallTime,K.isFunction(e.additionalCallback)&&additionalCallback()}),e.useImg)})),f=!1,u=void 0},[Se.DtReportDtsNotAllowed]:function({tcfData:t,gdprApplies:n,canMeasure:r}){p=!0,f=!1,u=[];var i=`https://fw.adsafeprotected.com/tc-data/asId=${e.asid}&tcfData=${t}&gdprApplies=${n}&canMeasure=${r}`;z.getAggregator().trigger(Se.Send,i,!1,!0)}}),{send:m,unload:h,diagnostic:v,setViewabilityMod:function(e){e}}},dt=function(e){"use strict";var n,r={},i=!1,o=function(e){return 1===e.nodeType},a=function(){var t=o(e)?gt.nodeIsHidden(e):0===e.width||0===e.height;return!i&&t},s=function(){var e={};return K(r).each((function(t,n){e[t]=Ot.round(n)})),e},c=function(e){return K.isNumeric(e)||K.isUndef(e)},u=function(){return Ot.round(r.width)*Ot.round(r.height)};return e!==t.parent&&(o(e)?K.isDef(e.getBoundingClientRect)&&(n=gt.getRect(e),K(r).mixin({x:K.useIfDef(n.x)||n.scrX,y:K.useIfDef(n.y)||n.scrY,scrX:n.scrX,scrY:n.scrY,width:n.width,height:n.height})):r=e),{hasValidDims:function(){return c(r.scrX)&&c(r.scrY)&&K.isNumeric(r.width)&&K.isNumeric(r.height)},toString:function(){var e=s();return[e.scrX,e.scrY,e.width,e.height].join(".")},getRounded:s,getRoundedGeometry:function(){var e={};return K(r).each((function(t,n){e[t]="x"===t||"y"===t||"width"===t||"height"===t?Ot.round(n):n})),e},set:function(e,t){r[e]=t},isHidden:a,treatAsPlaceholder:function(){i=!0},area:u,isMrcLarge:function(){return u()>=Q.MRC_LARGE_AD_SIZE},isOneByOne:function(){return a()&&u()<=1}}},gt={findElementsWithSize:function(e){"use strict";var t=[],n=function(e){gt.getNodeArea(e)<1?K(e.children).each((function(e,t){n(t)})):t.push(e)};return n(e),t},nodeIsHidden:function(e){"use strict";var t=this.getRect(e),n=0!==parseInt(st.getStyle(e,"width"))&&0===t.width,r=0===t.width||0===t.height,i="hidden"===st.getStyle(e,"visibility");return n||r||i},calcWinDims:function(){"use strict";var e,t,n;try{t=gt.browserWindowPosition(),n=gt.windowSize(),e={scrX:Ot.round(t.scrX),scrY:Ot.round(t.scrY),width:Ot.round(n.width),height:Ot.round(n.height)}}catch(t){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.GET_WIN_DIMENSIONS),e={}}return e},windowSize:function(){"use strict";var e,n,r,i={};if(at.isDomless())return{width:0,height:0};if(at.friendly)if(n=(e=top.document).documentElement,r=e.body,K.isDef(top.innerWidth))i.width=top.innerWidth,i.height=top.innerHeight;else if(K.isDef(n.clientWidth))i.width=n.clientWidth,i.height=n.clientHeight;else{if(!K.isDef(r.clientWidth))throw i.width=i.height=0,"";i.width=r.clientWidth,i.height=r.clientHeight}else K.isDef(t.outerWidth)&&(i.width=t.outerWidth,i.height=t.outerHeight);return i},browserWindowPosition:function(){"use strict";var e=0,n=0;e=t.screenX,n=t.screenY;return z.getAggregator().request(Te.Browser).browserIs(Q.BROWSERS.GECKO)&&-8==e&&-8==n&&(e+=8,n+=8),{scrX:e,scrY:n}},getNodeArea:function(e){"use strict";var t=-1;if(e){var n=gt.getRect(e);t=n.width*n.height}return t},getRect:function(e){"use strict";var t={},n=gt.browserWindowPosition(),r=e.getBoundingClientRect();return K.isUndef(r.x)&&(t.x=r.left,t.y=r.top),K.isUndef(r.width)&&(t.width=r.right-r.left,t.height=r.bottom-r.top),K(t).mixin(r,!0),t.scrX=n.scrX+t.x,t.scrY=n.scrY+t.y,t},getPlaceholderSpan:function(){"use strict";var e=n.createElement("span");return K(e.style).mixin({width:"0px",height:"0px",display:"block",overflow:"hidden",visibiility:"hidden"}),e.innerHTML=".",e},createImage:function(){"use strict";var e=at.friendly&&Ot.getTop().Image;return K.isFunction(e)?new e:new Image},createHiddenIframe:function(e){"use strict";var t=Ot.getDoc().createElement("iframe"),n=e?{display:"none"}:{width:"0px",height:"0px",border:"0",position:"absolute",top:"-10000px",left:"-10000px"};return st.styleElement(t,n),t},tagNameIs:function(e,t){"use strict";return e.tagName.toUpperCase()===t.toUpperCase()},getClippedDimensions:function(e,t){"use strict";var r,i,o,a,s,c=1e4,u=1e4,d=st.nodeIsAbsolutelyPositioned(e);if(s=!gt.tagNameIs(e,"OBJECT"),null!==e.parentNode&&!d&&s&&!gt.tagNameIs(t,"BODY")){a=e;do{a=a.parentNode,i=!gt.tagNameIs(a,"OBJECT"),o="inline"!==st.getStyle(a,"display"),i&&o&&(c=(r=gt.getRect(a)).width<c?r.width:c,u=r.height<u?r.height:u)}while(a.parentNode!==n&&a!==t)}return{width:Ot.round(c),height:Ot.round(u)}},hasBackgroundImage:function(e){var t=st.getStyle(e,"background-image");return""!==t&&"none"!==t},isEmptyFriendlyFrame:function(e){try{var t,n=!1;if(e&&e.document){var r=e&&"IFRAME"===e.nodeName&&e.contentDocument;r&&((t=r.body)&&t.childElementCount<1)&&(n=!0)}return n}catch(e){return!1}},findChildWithLargestContent:function(e,t){var n=z.getAggregator().request(Te.MobileApp).isMobileAppEnvironment(),r=z.getAggregator().request(Te.OmidAdSessionContext),i=r&&r.hasOwnProperty("ignoreDivAsCandidate"),o=this.hasBackgroundImage,a=null,s=function(t){var n,r,a,s=null,c=-1;if(t.length)for(n=0,r=t.length;n<r;n++){var u=t[n],d=gt.getNodeArea(u),g=!((a=u).parentNode===e&&"DIV"===a.nodeName&&!o(a)&&("0"===st.getStyle(a,"opacity")||"hidden"===st.getStyle(a,"visibility")||function(){var e,t,n=a.childNodes;for(e=0;e<n.length;e++)1===n[e].nodeType&&(t=!0);return!t}()));g&&i&&"DIV"===u.nodeName&&(g=!1);var l=gt.isEmptyFriendlyFrame(u);d>c&&g&&!l&&(s=u,c=d)}return s&&(s.hasValidSizeForMobileApp=c>1),s}(gt.collectCandidateElements(e,t||"iframe,img,a,object,embed,div".split(",")));return s&&((a=function(t){for(var r,o,a=t;t.parentNode!==e&&"inline"!==st.getStyle(t.parentNode,"display");)(!n||(r=t.parentNode,o=void 0,o=!0,("visible"===st.getStyle(r,"overflow")||"visible"===st.getStyle(r,"overflowX")&&"visible"===st.getStyle(r,"overflowY"))&&(o=!1),o&&gt.getNodeArea(t.parentNode)>0))&&(n&&i&&"DIV"===t.parentNode.nodeName||(a=t.parentNode)),t=t.parentNode;return a}(s)).hasValidSizeForMobileApp=s.hasValidSizeForMobileApp),a},screenSize:function(){"use strict";if(at.isDomless())return{width:0,height:0};var e={width:-1,height:-1};try{K.isDef(t.screen)&&(e={width:t.screen.width,height:t.screen.height})}catch(e){}return e},calcMonDims:function(){"use strict";var e=K(gt.screenSize()).mixin({scrX:0,scrY:0});return K.isDef(screen.availLeft)&&(e={scrX:t.screen.availLeft,scrY:t.screen.availTop,width:t.screen.availWidth,height:t.screen.availHeight}),e},getOurIFrameInTop:function(){"use strict";for(var e,t=Ot.getTop(),n=Ot.getWindow();n!=t;)n=(e=n).parent;return e},getOurNodeInTop:function(){"use strict";var t,n;return at.friendly&&(t=at.embedded?(n=gt.getOurIFrameInTop())&&n.frameElement:e.contextNode),t},getAncestorNodes:function(e){"use strict";var t=[],n=e.ownerDocument&&e.ownerDocument.documentElement,r=e;if(n)for(;r.parentNode!==n;)t.push(r),r=r.parentNode;return t},getTagsNamed:function(e,t){"use strict";var n,r=t||Ot.getDoc();try{n=r.getElementsByTagName(e)}catch(e){n=null}return n},containsScriptTagWithSrc:function(e){"use strict";return!!K(gt.getTagsNamed("script")).findFirst((function(t,n){var r=n.src;return K.isFunction(e)?e(r):r===e}))},contains:function(e,t){"use strict";var n=!1;try{n=K.isDef(e)&&K.isFunction(e.contains)&&e.contains(t)}catch(e){}return n},querySelector:function(e,t){"use strict";var n;try{n=e.querySelector(t)}catch(e){n=null}return n},nodeIsInWindow:function(e,t){"use strict";return e.ownerDocument&&(e.ownerDocument.defaultView||e.ownerDocument.parentWindow)===t},setAttributeOf:function(e,t,n){"use strict";e&&K.isFunction(e.setAttribute)&&e.setAttribute(t,n)},removeAttributeOf:function(e,t){"use strict";e&&K.isFunction(e.removeAttribute)&&e.removeAttribute(t)},crossQuerySelector:function(t,n){"use strict";var r,i,o=[e.contextNode.parentNode,Ot.getDoc()];if(at.friendly&&o.push(Ot.getTop().document),n&&at.embedded)try{o.push(Ot.getWindow().frameElement.ownerDocument)}catch(e){}return K(o).each((function(e,n){try{i=gt.querySelector(n,t)}catch(e){}!r&&i&&(r=i)})),r},getNodeName:function(e){"use strict";return e&&e.nodeName},isWindow:function(e){"use strict";var t=!1;try{t=e&&"object"==typeof e&&"setInterval"in e}catch(e){t=!0}return!!t},getChildWindowsOf:function(e){"use strict";var t=[],n=gt.getTagsNamed("iframe",e);return n&&(t=K(n).map((function(e,t){return t.contentWindow}))),t},getFrameId:function(){"use strict";var e=Ot.getWindow().frameElement;return e&&e.id},isViewportVisible:function(e,t){"use strict";var n=e.innerWidth,r=e.innerHeight,i=n*r>t.width*t.height,o=n>t.width&&r>t.height;return i&&o},getTagName:function(e){"use strict";return e.tagName.toLowerCase()},getAttribute:function(e,t){"use strict";return e.getAttribute(t)},attributeMatches:function(e,t,n){"use strict";var r=e&&gt.getAttribute(e,t);return n.test(r)},isImageTag:function(e){"use strict";return e&&e.src&&gt.tagNameIs(e,"img")},getDimensionFromStyle:function(e){"use strict";var t,n=st.getStyle(e,"width"),r=st.getStyle(e,"height");return n&&r&&(t={width:K.getNum(n),height:K.getNum(r)}),t},getDimensionFromAttributes:function(e){"use strict";var t,n=gt.getAttribute(e,"width"),r=gt.getAttribute(e,"height");return n&&r&&(t={width:K.getNum(n),height:K.getNum(r)}),t},traverseAndFindFirstMatchingNode:function e(t,n){"use strict";var r,i,o;if(n(t))i=t;else if(o=t.children)for(r=0;r<o.length&&!(i=e(o[r],n));r++);return i},getFirstChildElement:function(e){"use strict";return e&&e.children&&e.children[0]},isClippable:function(e,t){"use strict";var n=!0,r="fixed"===st.getStyle(e,"position"),i=!("hidden"===st.getStyle(t,"overflow"))&&!r;return at.isSpecifiedAd()&&(r||i)&&(n=!1),n},isNodeCreative:function(e){"use strict";var t=gt.getNodeName(e),n=e&&e.children&&0===e.children.length,r=e&&e.innerText&&e.innerText.length>0,i=n&&r,o=t&&-1!==Q.RENDER.CREATIVE_NODE_TYPES.indexOf(t.toUpperCase());return!!t&&!!(o||gt.hasBackgroundImage(e)||i)},getElementsDocument:function(e){"use strict";return e.ownerDocument||e},getElementsWindow:function(e){"use strict";var t=gt.getElementsDocument(e);return t.defaultView||t.parentWindow||e},elementIsEmbedded:function(e){"use strict";return gt.getElementsWindow(e)!==Ot.getTop()},getParent:function(e){"use strict";return e.parentNode||e.parent},isNodeXDomainIframe:function(e){"use strict";var t=!1;if(e&&"IFRAME"===gt.getNodeName(e))try{t=!e.contentWindow.document}catch(e){t=!0}return t},isElement:function(e){"use strict";return 1===e.nodeType},collectCandidateElements:function(e,t){var n,r,i,o,a=[],s=t,c=at.isPageOnShadowDomWhitelist();for(n=0,r=s.length;n<r;n++){var u=s[n].toLowerCase(),d=e.getElementsByTagName&&e.getElementsByTagName(u);if(c){var g=e.querySelectorAll&&e.querySelectorAll(u);g&&g.values&&(d=[...new Set([...d,...g.values()])])}if(d&&d.length)for(i=0,o=d.length;i<o;i++)a.push(d[i])}return a}},lt=function(){"use strict";var e={},t=function(t){K.isDef(e[t])?e[t]++:e[t]=1};return z.getAggregator().on(Se.Error,(function(e){var n=K(e).isObj()?e.errorCode:e;t(n)})),{list:e,add:t,toString:function(){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n);return t},hasErrors:function(){for(var t in e)return!0;return!1}}},ft=function(){"use strict";return{createInstance:function(e,t){return at.isDomless()?new mt:new pt(e,t)}}},pt=function(t,n){"use strict";var r=function(t){var n=[];if(!(t&&t instanceof Array))throw new Error("Unexpected data type in ExchangeParser.getUrlList");return(n=K(t).map((function(e,t){return t.val}))).push(e.adsafeSrc,e.requrl,e.reqquery),n};return{parse:function(i){try{var o,a=r(i),s=a&&a.length&&a.join("|"),c=e.exchList;s&&(o=K(c).map((function(e,t){return s.indexOf(Vt.rot(t))>=0?e:void 0}))).length&&n.addItem({output:o.join(".")},"ex",{type:Q.IMPRESSION_EVENT})}catch(e){t.add(Q.ERROR_CODES.EXCHANGE_PARSING)}}}},mt=function(){"use strict";return{parse:function(e){}}};const ht=function(){"use strict";const t={},n=function(n){let r,i,o,a;return K.isUndef(t[n])&&(r=e.jsFeatures,t[n]=!1,-1!==r.indexOf(n)&&(i=new RegExp(n+"(?=$|,)|"+n+":(?!,|$)(.?\\d*(?=,|$))").exec(r),i&&(o=i[1],a=!o,t[n]=a||o>100*Ot.random()))),t[n]},r={es:"everySecond",sc:"usesca",ha:"usehaps",fgad:"forceKeepGoogleAdNode"},i={fif:"useFIF",gmnp:"groupm_native_publisher",for:"forceAppend",b11:De.B11,cnod:De.CNod},o=function(t){const n=e[t];return K(["integration"]).contains(t)?!!n:!0===n||"true"===n||K.isFunction(n)};K(r).each((function(e,t){n(t)}));return{on:n,bootstrapOn:o,bootstrapperHas:function(t){const n=K.isStr(t)?[t]:t;return K(n).map((function(t,n){const r=n;if(r&&K.isDef(e[r]))return 1})).length===n.length},getEnabledScriptUrl:function(t){const r=n("use"+t),i=e.sp_cdnScripts&&e.sp_cdnScripts[t];return r&&i},setReportedBootstrapFeatures:function(e,t){i[e]=t},reportedBootstrapFeatures:i,output:function(){return K(function(){const e=K(r).mapToObj((function(e,n){const r={};return r[e]=K.fromBoolToNum(t[n]),r})),n=K(i).mapToObj((function(e,t){const n={};return n[e]=K.fromBoolToNum(o(t)),n}));return n.gm=K.fromBoolToNum(at.usesGroupMCustomMetric()),K(e).mixin(n)}()).toParams()}}};var vt=function(){"use strict";Q.BROWSERS;var e=function(e,t){var n=e.getRounded(),r=t.getRounded(),i=Math.max(n.scrX,r.scrX),o=Math.max(n.scrY,r.scrY),a=Math.min(n.scrX+n.width,r.scrX+r.width)-i,s=Math.min(n.scrY+n.height,r.scrY+r.height)-o;return dt({scrX:i,scrY:o,width:a>0?a:0,height:s>0?s:0})};return{calcInitialViewState:function(e,t){var n,r=Q.NA;return n=t?{IN_VIEW:65,OUT_OF_VIEW:25,PARTIAL_VIEW:30}:{IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},K.isDef(e)&&e!==Q.NA&&e>-1&&(r=e>=n.IN_VIEW?Q.IN_VIEW:e<=n.OUT_OF_VIEW?Q.OUT_OF_VIEW:e>=n.PARTIAL_VIEW?Q.PARTIAL_VIEW_PLUS:Q.PARTIAL_VIEW_MINUS),r},calcPercentInView:function(t,n,r,i){var o=0,a=t;return t.hasValidDims()&&!t.isHidden()&&(K([n,r,i]).each((function(t,n){n.hasValidDims()&&(a=e(a,n))})),o=Ot.round(a.area()/t.area()*100)),o}}},It=function(){"use strict";var n,r,i,o=!1;r=function(){var e="";try{for(var n,r=t.Uint32Array&&t.crypto&&t.crypto.getRandomValues;e.length<32;)r?(n=new Uint32Array(1),t.crypto.getRandomValues(n),e+=n[0].toString(16)):e+=(16*Ot.random()|0).toString(16);e=e.slice(0,32)}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.UID_GENERATION)}return e}(),(i=[]).push(r.slice(0,8)),i.push(r.slice(8,12)),i.push(r.slice(12,16)),i.push(r.slice(16,20)),i.push(r.slice(20)),n=i.join("-");var a=function(){return G.adTag&&G.adTag.anId||""};return{getAsid:function(){return e.asid},getAnId:a,getCacheBustId:function(){var e=new Date,t=Date.parse("Jan 1 "+e.getFullYear()),n=e.getTime()-t;return K.toBase(n,62)},getFwId:function(){const e=G.adTag&&G.adTag.advEntityId||"",t=G.adTag&&G.adTag.pubEntityId||"";return a()||e+"-"+t},impressionIsIdentifiable:function(e){return e&&(o=!0),o},unq:n}},Et=function(e,t){"use strict";return{init:function(n){e.jsonp(n,(function(e){t.send(Q.DT_CODES.THIRD_PARTY,void 0,!1,!0,{field:"tpiLookup",value:e})}),!1,"callback")}}},At=function(e,n,r,i,o){"use strict";return{getTime:function(){return 1e3*e.getTimeInViewInSeconds()},getTask:function(){return o?function(){var t=z.getAggregator().request(Te.AdRenderStatus),r=i||n,o=e.getTimeInViewInSeconds();t||z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,"nr_"+r,o)}:function(){var o=e.getTimeInViewInSeconds(),a=e.getTimeInViewForRts();if(K.isDef(i)&&(z.getAggregator().trigger(Se.AddOutputItem,{output:i},De.MetricId,{type:n}),z.getAggregator().trigger(Se.AddOutputItem,{output:"t"},De.CustomMetricInViewReason,{type:n})),at.isMSFT()&&o>0)try{t.postMessage({name:"pingTime",origin:"ias",value:o},"*")}catch(e){}z.getAggregator().trigger(Se.SendDt,n,o),r[a]&&r[a]()}}}},St=function(){"use strict";return{createPingJobs:function(e,t,n,r,i){return K(t.getTimeThresholds()).map((function(t,o){return new At(o,e,n,r,i)}))}}},yt=function(){var e,t=[],n=function(e){var t="type",n="t",r="timestamp";return{type:e["tp"]||e[t]||"",time:e[n]||e[r]&&e[r]-G.measurementConfig.birthdate||""}},r=function(){e||(e=z.getAggregator().request(Te.ViewabilityDefinitions)),e&&0==t.length&&K(e).each((function(e,n){n.qivThreshold&&t.push(n)}))},i=function(e,t){z.getAggregator().trigger(Se.AddOutputItem,{output:e.metricId},De.MetricId,{type:Q.DT_CODES.CUSTOM}),z.getAggregator().trigger(Se.AddOutputItem,{output:"q"},De.CustomMetricInViewReason,{type:Q.DT_CODES.CUSTOM}),z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.CUSTOM,t),e.rtsCallbacks&&K.isFunction(e.rtsCallbacks[Q.RTS_KEY_FOR_VQ])&&e.rtsCallbacks[Q.RTS_KEY_FOR_VQ]()};return{init:function(){r(),z.getAggregator().on(Se.VideoQuartileEvent,(function(e){var o,a,s,c,u;r(),o=new n(e),s=(a=["_","firstQuartile","midpoint","thirdQuartile","complete"]).indexOf(K(a).findFirst((function(e,t){return-1!==o.type.toLowerCase().indexOf(t.toLowerCase())}))),c=z.getAggregator().request(Te.ScreenEvents).getCurrentEvent(),u=Math.floor(o.time/1e3),K(t).each((function(e,t){var n=t.qivThreshold.indexOf(s);-1!==n&&t.isInView(c)&&t.qivThreshold.length>0&&(t.qivThreshold.splice(n,1),0==t.qivThreshold.length&&i(t,u))}))}))}}},Tt=function(){"use strict";var n=function(){var t=e.asid;return"__IntegralAS_"+(t&&t.replace(/\-/g,"")||"")+"_"+Ot.round(1e4*Math.random())};return{wrap:function(e,r,i,o){var a,s,c,u=n();(function(e,t){return new RegExp(t).test(e)})(e=""+e,o=o||"ias_callback")&&(a=function(e,t){return new RegExp("("+t+"=)(.[^&]*)").exec(e)[0]}(e,o),s=a.split("=")[1],c=Vt.stringToFn(s),e=function(e,t){return-1!==e.indexOf(t+"&")&&(t+="&"),e.replace(t,"")}(e,a));var d=G.measurementConfig.isStaticFrameInFrame?G.contextNode.element.contentWindow:t;return d[u]=function(e){r(e),i&&c&&c(e),d[u]=void 0},e=function(e,t,n){var r=e.indexOf("?"),i=t+"="+n;return-1===r?e+"?"+i:(r++,e.slice(0,r)+i+"&"+e.slice(r))}(e,o,u),e},wrapToGlobal:function(e){var r=n();return t[r]=function(n){e(n),t[r]=void 0},r}}},Dt=function(t,n,r){"use strict";var i=function(t,n){var r,i=t;return n&&(r=","+K(n).stringify((function(e,t){return e+":"+t}),","),(i=Ye(t,!0)).appendToParamValue("adsafe_jsinfo",K.encodeInvalidUrlChars(r,e.encodeInvalidUrlChars)),i=i.toString()),i},o={jss:{isFW:!0,nodeType:at.doesPageAllowAppendedScripts()?"script":"img"},rjss:{isFW:!0,onloadCallback:Ni,impressionMethod:function(e){if(G.measurementConfig.staticMode&&G.staticFeatures.useSingleEvent)z.getAggregator().trigger(Se.JSONP,e+"&format=jsonp",(()=>{}),!1,"cbName");else if(at.isAMZN()&&at.isBlocking()&&G.measurementConfig.staticMode)z.getAggregator().trigger(Se.AddOutputItem,{output:!0},"ablk"),z.getAggregator().trigger(Se.JSONP,e+"&format=jsonp",(e=>{const{nodeType:t,creativeUrl:n}=e,r=G.measurementConfig.tagDeliveryType===L.Iframe?"iframe":"unknown"===t?"script":t;z.getAggregator().trigger(Se.AddNode,r,n)}),!1,"cbName");else{const t=G.measurementConfig.tagDeliveryType===L.Iframe?"iframe":at.doesPageAllowAppendedScripts()?"script":"img";z.getAggregator().trigger(Se.AddNode,t,e,Ni)}}},amtjs:{isFW:!0,nodeType:"img"},jsi:{isFW:!0,nodeType:"iframe"},rjsi:{isFW:!0,nodeType:"iframe"},jload:{impressionMethod:function(e){t.enabled?z.getAggregator().trigger(Se.JSONP,e,t.callback,!0):z.getAggregator().trigger(Se.Send,e,(function(){Ni(),z.getAggregator().trigger(Se.SendDiag)}),!n.on("postMon"))}},bapi:{impressionMethod:function(e){var n=t.enabled?t.callback:K.noop,r=!!t.enabled;z.getAggregator().trigger(Se.JSONP,e,n,r)}},jsapi:{isFW:!0,impressionMethod:function(e){var n=t.enabled?t.callback:K.noop,r=!!t.enabled;z.getAggregator().trigger(Se.JSONP,e,n,r)}},jsvid:{manualDefer:!0,impressionMethod:function(r){z.getAggregator().on(Se.AdImpression,(function(o,a){var s;try{s=i(r,a),t.enabled?z.getAggregator().trigger(Se.JSONP,s,t.callback,!0):z.getAggregator().trigger(Se.Send,s,K.noop,!n.on("postMon"))}catch(t){__IntegralASDiagnosticCall("jsvidimp",t,e)}}))}},fwjsvid:{isFW:!0,manualDefer:!0,impressionMethod:function(t){var n="false"===e.fwMonitoring;n&&z.getAggregator().trigger(Se.JSONP,function(e){var t=e.split("/");return at.isAMZN()?(t[6]="fw",t[7]="db2",t[8]="video"):(t[3]="db2",t[4]="video"),t.join("/")}(t),(function(e){z.getAggregator().trigger(Se.VideoBlockResult,e)})),z.getAggregator().on(Se.AdImpression,(function(r,o){var a,s;try{n&&((s=r)&&K.isBool(s.integral_didBlock)&&s.integral_timeToDecision>=0)&&(t=function(e){var n="$1$2,abc:"+(e.integral_didBlock?1:0)+",abct:"+e.integral_timeToDecision;return t.replace(/(adsafe_jsinfo=)([^&]*)/,n)}(r)),a=i(t,o),z.getAggregator().trigger(Se.Send,a,K.noop,!0)}catch(t){__IntegralASDiagnosticCall("fwjsvidimp",t,e)}}))}},jspix:{nodeType:"img"}};return new function(){var t=o[G.adTag.tagType],n=!!t.isFW,i=function(t){var n;return n=z.getAggregator().request(Te.MobileApp).isMobileAppEnvironment()&&e.mobFwUrl?e.mobFwUrl:t?e.adsafeSrc:e.requrl,t||(n+="?"+e.reqquery),n}(n),a=i.indexOf("BEGIN__ADSAFE"),s=-1!==a,c=s?i.slice(a):"";return{isFW:n,baseUrl:s?i.slice(0,a):function(e){var t=-1===e.indexOf("?")?"?":"&";return e+t}(i),macroUrl:c,sendImpression:function(e){var n=function(){z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticImpressionRFWCallRequestTime),t.nodeType?z.getAggregator().trigger(Se.AddNode,t.nodeType,e,t.onloadCallback):t.impressionMethod(e)};r||t.manualDefer?n():t.manualDefer||z.getAggregator().on(Se.AdImpression,(function(){n()}))}}}},Ot={execAtEndOfThread:function(e){"use strict";Ot.setTimeout(e,0)},now:function(){"use strict";return(new Date).getTime()},random:function(){"use strict";return Math.random()},round:function(e){"use strict";return Math.round(e)},ceil:function(e){"use strict";return Math.ceil(e)},floor:function(e){"use strict";return Math.floor(e)},min:function(){"use strict";return Math.min.apply(null,arguments)},max:function(){"use strict";return Math.max.apply(null,arguments)},getWindow:function(){"use strict";return t},getTimeoutScope:function(){"use strict";return at.isDomless()&&at.isOmid()?z.getAggregator().request(Te.OmidVerificationClient):t},setInterval:function(e,t){"use strict";return Ot.getTimeoutScope().setInterval(e,t)},setTimeout:function(e,t){"use strict";return Ot.getTimeoutScope().setTimeout(e,t)},clearInterval:function(e){"use strict";Ot.getTimeoutScope().clearInterval(e)},clearTimeout:function(e){"use strict";Ot.getTimeoutScope().clearTimeout(e)},getMaxNumber:function(){"use strict";return Number.MAX_VALUE},getTop:function(){"use strict";return at.isDomless(),top},getDoc:function(){"use strict";return at.isDomless(),n},getIntersectionObserver:function(e,t){"use strict";return at.isDomless(),new IntersectionObserver(e,t)},getMutationObserver:function(e){"use strict";return at.isDomless(),new MutationObserver(e)},getResizeObserver:function(e){"use strict";return at.isDomless(),new ResizeObserver(e)},pow:function(e,t){"use strict";return Math.pow(e,t)},getTopmostAccessibleWindow:function(){"use strict";let e=Ot.getWindow();const t=Ot.getTop();for(;e!==t;)try{const n=e.parent;if(n.document,e=n,e===t)break}catch(e){break}return e}},wt=function(){"use strict";return{createInstance:function(){return at.isDomless()?new Ct:new Nt}}},Nt=function(){"use strict";var e,t,n,r,i=!1,o=!1,a=(z.getAggregator().request(Te.Features),new Pe),s=function(){return K.isDef(e.prop)?Ot.getDoc()[e.prop]:null};return t="hidden",n="visibilitychange",r=Ot.getDoc(),K.isUndef(r.hidden)?K(["moz","ms","webkit"]).each((function(e,o){var a=o+"Hidden";K.isDef(r[a])&&(t=a,n=o+n,i=!0)})):i=!0,e=i?{prop:t,event:n}:{},{isHidden:s,onHiddenChange:function(t){var n,r;a.push(t),o||(o=!0,n=Ot.getWindow(),r=function(){a.run(s())},st.addEvent(n,"focus",r,!0),st.addEvent(n,"blur",r,!0),e.event&&st.addEvent(Ot.getDoc(),e.event,r,!0))},supportsVisAPI:function(){return i}}},Ct=function(){"use strict";return{isHidden:function(){return!1},onHiddenChange:function(e){},supportsVisAPI:function(){return!0}}},bt=function(){"use strict";return{createInstance:function(e,t){return at.isDomless()?new _t:new Rt(e,t)}}},Rt=function(n,r){"use strict";var i,o=function(e){var t=[["ab","about%3A"],["da","data%3A"],["js","javascript%3A"],["fi","file%3A"],["uu","uuid-in-package"],["cx","chrome-extension%3A"],["lo","http%3A%2F%2Flocalhost"],["lo","https%3A%2F%2Flocalhost"]];if("string"==typeof e&&"null"!==e&&""!==e&&"undefined"!==e){for(var n=0;n<t.length;n++)if(e.startsWith(t[n][1]))return"";if(-1===e.indexOf("."))return z.getAggregator().trigger(Se.AddOutputItem,{output:e.substring(0,40)},De.BadURLNoPeriod,{type:Q.IMPRESSION_EVENT}),""}return e},a=function(){var a={};try{a.a=encodeURIComponent(top.location.href)}catch(e){}try{a.b=encodeURIComponent(parent.location.href)}catch(e){}if(at.embedded){try{a.c=encodeURIComponent(parent.document.referrer)}catch(e){}try{a.e=encodeURIComponent(t.document.referrer)}catch(e){}}try{"jsi"!==G.adTag.tagType&&(a.d=encodeURIComponent(t.location.href))}catch(e){}try{a.f=encodeURIComponent(e.jsref)}catch(e){}try{var s=r.getWindow();a.q=encodeURIComponent(s.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.location.href||"")}catch(e){}try{n.isStarted()&&n.getMyFrameDepth()>1&&(a.g=encodeURIComponent(n.getTopDomain())),n.isStarted()&&at.xDomainIframe&&1===n.getMyFrameDepth()&&(a.y=encodeURIComponent(n.getTopDomain()))}catch(e){}var c="not-set";try{if(at.isSafeFrame()){var u=r.getWindow(),d=u&&u.$sf&&u.$sf.ext&&u.$sf.ext.hostURL,g="function"==typeof d&&d();if("string"==typeof g){c=encodeURIComponent(g);var l=!1;"function"==typeof URL?(new URL(g),l=!0):g.startsWith("http")&&(l=!0),l?(a.x=c,z.getAggregator().trigger(Se.AddOutputItem,{output:c},De.SafeFrameHostURL,{type:Q.IMPRESSION_EVENT})):z.getAggregator().trigger(Se.AddOutputItem,{output:c},De.SafeFrameInvalidHostURL,{type:Q.IMPRESSION_EVENT})}}}catch(e){z.getAggregator().trigger(Se.AddOutputItem,{output:c},De.SafeFrameInvalidHostURL,{type:Q.IMPRESSION_EVENT})}a=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=o(e[t]);(""===n||"null"===n||"undefined"===n||null===n||K.isUndef(n))&&delete e[t]}return e}(a),a=function(e){var t,n,r={};for(n in e)e.hasOwnProperty(n)&&(t=e[n],K.isUndef(r[t])?r[t]=n:r[t]+=n);var i={};for(n in r)r.hasOwnProperty(n)&&(i[t=r[n]]=n);return i}(a);var f=[];for(var p in a)a.hasOwnProperty(p)&&f.push({key:p,val:a[p]});return f.sort((function(e,t){return e.val.length>t.val.length?1:e.val.length<t.val.length?-1:0})),i=f,f};return{detectTopURL:a,getDetectedURLs:function(){return i||a()}}},_t=function(){"use strict";return{detectTopURL:function(){return[]},getDetectedURLs:function(){return[]}}},Mt=function(t){"use strict";var n=!1;return{measure:function(r){(n=0===r.rsa)&&t.trigger("notify",e._onSuspicious)},skipAsFraudulent:function(){return n}}},Pt=function(){"use strict";var e,t,n,r=[],i={},o={sl:"n"},a=0,s={i:0,o:0,n:0,pp:0,pm:0},c=function(e){var t=z.getAggregator().request(Te.Features);if(t&&t.on("recoverOmidLostTime")){var n=s.ri;s.ri=n?n+e:e}},u=function(e,t){var n=new Be(t);return i[e]=n,n},d=function(e,t){return(t=t||"")+{inView:"i",outOfView:"o",na:"n",partialViewMinus:"pm",partialViewPlus:"pp"}[e]},g=function(){K(o).each((function(e,t){var i=r.length?n-a:n;s[t]+=i})),a=n},l=function(e){r.length&&g(),K(e).each((function(e,t){var n,r;n=t,(r=o[e])!==n&&"n"===r&&(s[n]+=s.n),o[e]=t})),r.length||g()},f=function(e){Q.NA;var r,o=e.adDimensions?e.adDimensions.getRounded():{width:0,height:0},a=function(e){var t,n={},r=e.winDimensions,i=e.adDimensions;return K.isDef(r)&&r.hasValidDims()&&(n.wc=r),K.isDef(i)&&i.hasValidDims()&&(n.ac=i,n.am=e.method,n.cc=e.containerDimensions),K({piv:"percentInView",obst:"obstructed",th:"tabHidden",reas:"reason"}).each((function(t,r){var i=e[r];K.isDef(i)&&(n[t]=i)})),""===(t=K(n).toParams())?"":","+t}(e),s=e.omidObstructions,c={sl:d(e.viewState)};return n=at.getTagTime(),l(c),c.t=n,r=K({toString:function(){return K(i).each((function(e,t){t.fastForward()})),"{"+K(c).toParams()+this.details+this.breakdowns+"}"},details:a,breakdowns:{piv:[],as:[],toString:function(){var e="",t=function(e,t){return t.duration+"~"+t.state};return e+="piv:["+K(this.piv).stringify(t)+"]",",bkn:{"+(e+=",as:["+K(this.as).stringify(t)+"]")+"}"}}}).mixin(c),K(r).mixin(e),r.width=o.width,r.height=o.height,K.isUndef(r.percentInView)&&(r.percentInView=Q.PIV_NA),K.isUndef(r.reason)&&(r.reason=""),K.isDef(s)&&""!==s&&(r.omidObstructions=s),t=r,r};return function(){u("piv",(function(e){var t,n=e.percentInView,r=[1,25,30,50,75];return 100===n||0===n?t=n:(K(r).each((function(e,i){K.isUndef(t)&&n<i&&(t=r[e-1])})),K.isUndef(t)&&(t=r[r.length-1])),t})),u("as",(function(e){var t=Q.NA,n=e.adDimensions?e.adDimensions.getRounded():{width:t,height:t};return n.width+"."+n.height}));var e=z.getAggregator().request(Te.OmidAdSessionContext);e&&e.recoveredTime>-1&&c(e.recoveredTime)}(),{fastForward:function(){n=at.getTagTime(),g()},registerLocation:function(t){var n,a=!1;return o.sl==d(t.viewState)&&r.length?(n=new f(t),r[r.length-1].details=n.details):(n=new f(t),r.push(n),e=t.viewState,a=!0),z.getAggregator().trigger(Se.NewScreenEvent,n),K(i).each((function(e,t){-1!=="piv|as".indexOf(e)?(a&&t.clear(),t.addState(n),r[r.length-1].breakdowns[e]=t.get()):t.addState(n)})),n},stringify:function(e){var t="";return r.length&&(t=K({slTimes:"{"+K(s).toParams()+"}",slEvents:"["+r.slice(-e).join(",")+"]",slEventCount:r.length}).toParams()),t},createViewabilityTracker:u,getCurrentLoc:function(){return d(e)},getCurrentEvent:function(){return t},setRecoveredTimeInSlTimes:c}},Vt={hashCode:function(e){"use strict";var t,n,r=0;if(0===e.length)return r;for(t=0,n=e.length;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r},rot:function(e){"use strict";return e.replace(/[a-zA-Z]/g,(function(e){return String.fromCharCode((e<="Z"?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)}))},stringToFn:function(e){"use strict";var n,r,i=t,o=e.split(".");for(n=0;n<o.length;n++)if(r=i,i=i[o[n]],K.isUndef(i)||n===o.length-1&&!K.isFunction(i))return!1;return function(){i.apply(r,arguments)}},stringToProp:function(e){"use strict";var t,n=Ot.getWindow(),r=e.split(".");for(t=0;t<r.length&&(n,n=n[r[t]],!K.isUndef(n));t++);return n},contains:function(e,t){"use strict";return!!K.isStr(e)&&-1!==e.indexOf(t)},trim:function(e){"use strict";return K.isFunction(e.trim)?e.trim():e.replace(" ","")}};const Ft=function(){"use strict";const e=function(){const e=function(e){return e&&e.width&&e.width>30&&e.height&&e.height>30},t=function(t){const n=gt.getDimensionFromAttributes(t);return e(n)};return{hasValidDimensions:function(n){return t(n)||function(t){const n=gt.getDimensionFromStyle(t);return e(n)}(n)},hasValidDimentionAttributes:t}}(),t=/GoogleActiveViewElement/,n=/DfaVisibilityIdentifier_/,r=/doubleclick.net\/pcs\/click?/,i=/_blank/,o=function(e){const t=e&&gt.tagNameIs(e,"a"),n=gt.attributeMatches(e,"href",r),o=gt.attributeMatches(e,"target",i);return t&&n&&o},a=function(e){const r=gt.tagNameIs(e,"div"),i=gt.attributeMatches(e,"class",t),o=gt.attributeMatches(e,"id",n);return r&&i&&o};return{getDFPGoogleDiv:function(e){return gt.traverseAndFindFirstMatchingNode(e,a)},getClickableImage:function(t){let n,r;const i=gt.traverseAndFindFirstMatchingNode(t,o);return i&&(r=gt.getFirstChildElement(i),gt.isImageTag(r)&&e.hasValidDimentionAttributes(r)&&(n=r)),n},getNodeMatchingMinimumSize:function(t){return gt.traverseAndFindFirstMatchingNode(t,e.hasValidDimensions)}}},xt=function(){"use strict";const e=Ft(),t=function(e,t){t.tag=gt.getTagName(e),t.size=gt.getDimensionFromAttributes(e)||gt.getDimensionFromStyle(e)};return{getDFPValue:function(n){let r;const i=e.getDFPGoogleDiv(n);return r=i?function(n){let r,i;const o={type:0};return n&&(o.type=1,r=e.getClickableImage(n),r?(o.type=2,t(r,o)):(i=e.getNodeMatchingMinimumSize(n),i&&(o.type=3,t(i,o)))),o}(i):function(n){const r={type:0},i=e.getNodeMatchingMinimumSize(n);return i&&(r.type=4,t(i,r)),r}(n),r}}},Lt={name:"hB",dependencies:[],creator:function(){try{const e=Ze().getUserAgent(),t=e.length>0&&-1!==e.indexOf("HeadlessChrome"),n=Ot.getWindow(),r=Ot.getTop(),i=!(!r||!r.document)&&Object.getOwnPropertyNames(r),o=()=>{var e,t;const r=null==n?void 0:n.navigator,i=null===(e=null==r?void 0:r.userAgentData)||void 0===e?void 0:e.brands;return(null===(t=null==i?void 0:i.map((e=>null==e?void 0:e.brand)))||void 0===t?void 0:t.includes("HeadlessChrome"))||!1},a={cdcP:K.stringifyTriState(i&&-1!==i.indexOf("cdc_adoQpoasnfa76pfcZLmcfl_Promise")),cdcA:K.stringifyTriState(i&&-1!==i.indexOf("cdc_adoQpoasnfa76pfcZLmcfl_Array")),cdcS:K.stringifyTriState(i&&-1!==i.indexOf("cdc_adoQpoasnfa76pfcZLmcfl_Symbol")),cyp:K.stringifyTriState(i&&-1!==i.indexOf("Cypress")),wd:K.stringifyTriState(K.isDef(n.navigator.webdriver)&&!0===n.navigator.webdriver),uaHC:K.stringifyTriState(t),chHC:K.stringifyTriState(o())},s=1,c=e=>K(e).contains(s),u=function(e){z.getAggregator().trigger(Se.AddThrottledProp,"sca","hbs",K(e).toION())};c(a)&&u(a)}catch(e){}},settings:{tier:4,applies:function(){"use strict";return!0}}},kt={name:"viewport",dependencies:[],creator:function(){"use strict";const e={width:4,height:4},t=function(t){return!gt.isViewportVisible(t,e)},n=function(e,r){return e!==r&&t(e)?e:e!==r&&at.isFriendlyToParent(e)?n(e.parent,r):void 0},r=function(){const e=Ot.getWindow();return n(e,Ot.getWindow().top)},i=function(){return void 0!==r()};return{MIN_VISIBLE_DIM:e,isHidden:i,isCurrentIframeTheHiddenFrame:function(){let e;const n=Ot.getWindow();return t(n)?e=!0:i()&&(e=!1),e},getWindowWithHiddenViewport:r}}},Ut=function(e){"use strict";let t,n;const r=function(r){t=e.setInterval(r,100),n=e.setTimeout((function(){i()}),42e4)},i=function(){t&&(e.clearInterval(t),t=null),n&&(e.clearTimeout(n),n=null)};return{onResize:function(t){let n=e.innerWidth,o=e.innerHeight,a=!1;r((function(){const r=function(){const t=e.innerWidth,r=e.innerHeight;return t!==n||r!==o}();r&&(a=!0),a&&!r&&(t(),i(),a=!1),n=e.innerWidth,o=e.innerHeight}))}}},Wt={name:"AS_Finder",dependencies:["viewport"],creator:function(e,t){"use strict";let n;const r=function(){try{!function(r){let i;const o={};r!==n&&(i=K.stringifyTriState(r),o.res1=i,o.ps=i,o.ts=Ot.now(),o.psfr=K.stringifyTriState(e.isCurrentIframeTheHiddenFrame()),t.events.trigger("newState",o)),n=r}(e.isHidden())}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.HIDDEN2)}};return{start:function(){e.isHidden()&&(r(),function(){const t=e.getWindowWithHiddenViewport();t&&Ut(t).onResize(r)}())}}},settings:{emits:!0,applies:function(e,t,n){"use strict";return n.embedded&&!n.isBustedIframe()&&!n.isSpecifiedAd()}}},Gt={name:"hA",dependencies:["AS_Finder"],creator:function(t){"use strict";let n=0;const r=function(e,t){z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.FF,e,K(t).toION())},i=function(e){n<2&&r("ha1",e),n++};!function(){let n,o;if(at.embedded)try{o=e.contextNode.parentNode,n=xt().getDFPValue(o),r("dfp",function(e){const t={};return t.df=e.type,e.size&&(t.sz=e.size.width+"."+e.size.height),e.tag&&(t.dom=e.tag),t}(n)),n.size&&t&&(t.events.on("newState",i),t.start())}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.HIDDEN)}}()},settings:{tier:Q.TIERS.PRE_IMPRESSION_FRAUD,applies:function(e){"use strict";return e.on("usehaps")}}},Bt={name:"thresholdDetector",dependencies:[],creator:function(){"use strict";return{create:(e,t,n)=>{let r;let i=t();const o=()=>{const o=t();o!==i&&!0&&(n(e,o),Ot.clearInterval(r)),i=o};i&&(n(e,i),r=Ot.setInterval(o,50))}}}},Ht={name:"invisibleAds",dependencies:["thresholdDetector"],creator:function(t){"use strict";const n={width:4,height:4},r=()=>{const e=st.getStyle(Ot.getWindow().frameElement,"opacity");return parseFloat(e)<.2},i=()=>"hidden"===st.getStyle(Ot.getWindow().frameElement,"visibility"),o=(e,t)=>{const n={res1:K.stringifyTriState(t)};z.getAggregator().trigger(Se.AddThrottledProp,"sca",e,K(n).toION())};try{const a=e.contextNode.parentNode,s=xt().getDFPValue(a);gt.isViewportVisible(Ot.getWindow(),n)&&2===s.type&&(r()&&t.create("ha2",r,o),i()&&t.create("ha3",i,o))}catch(e){}},settings:{tier:4,applies:function(e,t,n){"use strict";return n.embedded&&!n.isBustedIframe()&&!n.isSpecifiedAd()}}};var jt={name:"BS_Browser",dependencies:[],creator:function(){"use strict";var e=Ot.getWindow().document,n=e.body?Math.round(gt.getNodeArea(e.body)):null;!z.getAggregator().request(Te.MobileApp).isMobileAppEnvironment()&&n&&function(e,n,r,i){var o,a,s=0,c=0,u=e&&e.body,d=!1,g=function(){if((o=Math.round(gt.getNodeArea(e.body)))>=i){for(var t,n,a=o+20*o/100,u=e.querySelectorAll("iframe"),d=K.fromNodeListToArray(u);d.length&&(c<a||s<r);)t=d.shift(),(n=Math.round(gt.getNodeArea(t)))>=i&&(s++,c+=n);c>=a&&s>=r&&l()}},l=function(){var e={va:o,bia:c,bin:s};z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.FF,n,K(e).toION()),d=!0};u&&(Ot.execAtEndOfThread(g),!d&&K.isDef(t.MutationObserver)&&(a=new MutationObserver((function(e){d?a.disconnect():Ot.execAtEndOfThread((function(){K(e).each((function(e,t){if(t.addedNodes.length){var n=t.addedNodes[0];n&&gt.isElement(n)&&gt.tagNameIs(n,"IFRAME")&&K.debounce(g,10)}}))}))}))).observe(e.body,{attributes:!1,childList:!0,characterData:!1}))}(e,"bs2",10,n)},settings:{tier:Q.TIERS.VIEWABILITY,applies:function(e,t,n){"use strict";var r=!e.bootstrapOn("app")&&!n.isDomless();return e.on("bbs")&&n.embedded&&r}}};var qt=function(){"use strict";return{createInstance:function(e){return at.isDomless()?new Xt:new Yt(e)}}},Yt=function(e){"use strict";var n,r,i,o=new Re,a=new Me,s=new Qt(o),c=new Jt,u=new rn,d=new tn(o,e),g=function(){return K.isUndef(i)&&(i=new Zt(o)),i};return{isApplicable:function(e){return K.isDef(t.JSON)&&K.isDef(t.postMessage)&&(!e.isOmidNative()||e.isOmidForWeb())},start:function(){o.provide({frameCollection:function(){return s},adProxy:function(){return u},adTalkMessage:function(e){return new Kt(e,o)},adTalkMessageCollection:function(){return c},idMapModule:g,interFrameQuerySelector:function(e){return new en(e)}}),a.traverse(s.addFrame),d.startListening(),d.sendToKnownFrames(),z.getAggregator().once(Se.StopAdTalk,(function(){d.stopListening()})),z.getAggregator().provide(Te.AdTalkEventAggregator,o)},sendAdTalkCall:d.sendAdTalkCall,getFrameMap:function(){return K.isUndef(n)&&(n=new $t(o)),n},getFrameMapIncludingPeerCase:function(){return K.isUndef(r)&&(r=new $t(o,!0)),r},getIdMap:g}};const Xt=function(){"use strict";return{isApplicable:()=>!1,start:()=>{}}};var Kt=function(t,n){"use strict";var r,i=n.request(Te.AdProxy).myIdCard,o=n.request(Te.FrameCollection).getMe().getStringifiedPosition();r=z.getAggregator().request(Te.Features).on("swapids")?e.oid:e.asid;var a,s;return{messageContent:t||{},srcAsid:e.asid,srcTagId:i.tagId,srcIsEmbedded:at.embedded,srcIsFriendly:at.friendly,srcBirthdate:G.measurementConfig.birthdate,iasCommonId:r.split("-")[2],nodeSelector:at.friendly?"["+Q.AD_IDENTIFIER+"-"+e.asid+"]":'iframe[src*="'+((s=(a=Ot.getWindow()).location&&a.location.href)&&s.replace(/^https?\:\/\//i,""))+'"]',positionStr:o,version:"0.1"}},Jt=function(){"use strict";var e={};return{add:function(t){var n=t&&t.srcAsid;n&&(e[n]=t)},map:function(t){return K(e).map(t)},has:function(t){var n=t&&t.srcAsid;return e[n]}}},zt=function(e,n,r,i){"use strict";var o,a=e==t;(o={position:n.slice(0),id:n.join("-"),isMe:a,isLeaf:!e.frames.length,adProxies:a?r:[],selfDescription:void 0,unifiedId:G.measurementConfig.birthdate,srcIsEmbedded:i?i.srcIsEmbedded:void 0,inbox:i?[i]:[]}).getDomObj=function(){return e},o.getStringifiedPosition=function(){return K(o.position).map((function(e,t){return K.toBase(Number(t)+1,36)})).join("")},o.isValidForMapping=function(){return o.isLeaf||o.isMe||K.isDef(o.selfDescription)};var s=function(e,t){return!K(e).find((function(e,n){return n.adSafeId&&n.adSafeId===t.adSafeId}))};return o.addInformationFromSrc=function(e,t){var n,r,i,a;n=t,r=o.adProxies,i=n.adProxies,a=[],r.length&&i.length?K(i).each((function(e,t){s(r,t)&&a.push(t)})):a=i,o.adProxies=r.concat(a),function(e){K(o.inbox).find((function(t,n){return n.srcAsid&&n.srcAsid===e.srcAsid}))||o.inbox.push(e)}(e),o.srcIsEmbedded=e.srcIsEmbedded,o.selfDescription=t},o},Qt=function(e){"use strict";var t=[],n={},r={noMe:!0};return{addFrame:function(i,o,a){var s=e.request(Te.AdProxy).getAll(),c=new zt(i,o,s,a);return t.push(c),n[c.id]=c,c.isMe&&(r=c),c},getFrame:function(e){return n[e]},list:t,dictionary:n,getMe:function(){return r}}},$t=function(t,n){"use strict";var r=function(e,t){var r=t.adProxies,a="";if(t.isValidForMapping())return a+=n?o(r,t.getStringifiedPosition()):i(r,t)},i=function(e,t){var n="";return n+=t.getStringifiedPosition(),n+=t.isMe?"*":"",n+=e.length?"."+e[0].tagId:""},o=function(e,t){var n="";return e.length?n+=K(e).stringify((function(e,n){return a(n,t)}),"|"):n+=t,n},a=function(t,n){return n+(e.asid===t.adSafeId?"*":"")+"."+t.tagId};return{output:function(){var e=t.request(Te.FrameCollection),n=K(e.list).stringify(r,"|");return K.toBase(e.getMe().unifiedId,62)+"+"+n}}},Zt=function(t){"use strict";var n=t.request(Te.FrameCollection).getMe().getStringifiedPosition(),r=e.contextNode.parentNode,i=t.request(Te.InterFrameQuerySelector,r),o=function(e){var t=!1,o=!at.embedded,a="BODY"!==gt.getNodeName(r)&&"HEAD"!==gt.getNodeName(r),s=e.srcIsEmbedded&&!function(e){var t="0.1"!==e.version,n=e.nodeSelector&&-1===e.nodeSelector.indexOf(Q.AD_IDENTIFIER);return t?n:!e.srcIsFriendly}(e);return t=o&&a&&!s?!!function(e){return i.queryFor(e.nodeSelector)}(e):!!function(e){var t=e.positionStr,r=e.srcIsEmbedded&&at.embedded,i=0===n.indexOf(t)||0===t.indexOf(n);return r&&i}(e),t};return{output:function(){var r,i,a=n+"*";return(i=t.request(Te.AdTalkMessageCollection).map((function(t,n){var r;return t!==e.asid&&o(n)&&(r=function(e){return e.positionStr+"."+e.srcAsid+"."+e.transferDuration+"_"+e.srcTagId}(n)),r}))).push(a),r=i.join("|"),r.length>120&&(r=function(e){return e&&e.substr(0,120)+".of"+e.length}(r),z.getAggregator().trigger(Se.StopAdTalk)),r},isCandidateForMyIdMap:o}},en=function(e){"use strict";var t=new Me,n=function(e,t){return gt.querySelector(function(e){var t=e,n="IFRAME"===gt.getNodeName(e),r=gt.isWindow(e);return n?t=e.contentWindow.document:r&&(t=e.document),t}(e),t)};return{queryFor:function(r){var i=null;return r&&(i=function(r,i){var o,a,s;try{(a=n(r,i))||(o=t.getFrames(!0,e),K(o).findFirst((function(e,t){return s=n(t,i)})))}catch(e){}return a||s||null}(e,r)),i}}},tn=function(t){"use strict";var n,r,i=!1,o=z.getAggregator().request(Te.Features);r=o.on("swapids")?e.oid:e.asid;var a=function(n){var i=r.split("-")[2],o=!t.request(Te.AdTalkMessageCollection).has(n)&&n.srcAsid!==e.asid;return n.hasOwnProperty("messageContent")&&i===n.iasCommonId&&o},s=function(){var e=t.request(Te.FrameCollection).getMe(),n={self:e,unifiedId:e.unifiedId};return t.request(Te.AdTalkMessage,n)},c=function(){var e=Q.DT_CODES.ADTALK;t.request(Te.FrameCollection);i||(i=!0),z.getAggregator().trigger(Se.SendDt,e)},u=function(e,n,r){var o,a,s,u,d,g,l;try{o=t.request(Te.FrameCollection),a=t.request(Te.AdTalkMessageCollection),s=n.messageContent.self,a.add(n),g=o.getMe(),l=s,g.unifiedId>l.unifiedId&&(g.unifiedId=l.unifiedId),n.transferDuration=function(e){return Ot.now()-e.sentTime}(n),u=o.getFrame(s.id),d=u,K.isUndef(d)||K.isUndef(d.selfDescription)?((u=u||o.addFrame(e.source,s.id.split("-"),n)).addInformationFromSrc(n,s),r()):u.addInformationFromSrc(n,s),i&&t.request(Te.IDMapModule).isCandidateForMyIdMap(n)&&c()}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:c,sendToKnownFrames:function(){(new xe).send(s)},startListening:function(){(n=new Fe).listen(a,u,s)},stopListening:function(){n&&n.stop()},validateMessage:a,processMessage:u,createMessage:s}},nn=function(){"use strict";var e=z.getAggregator().request(Te.IDS),t=e.getAsid();return{tagId:e.getFwId(),adSafeId:t}},rn=function(){"use strict";var e,t=[],n=function(e){var n=new nn(e);return t.push(n),n};return e=n(),{createNew:n,getAll:function(){return t},myIdCard:e}},on=function(e,t){"use strict";var n,r,i=Q.NA,o=i,a=!1,s=!1,c=!1,u=!t,d=z.getAggregator().request(Te.Browser),g=function(e,t){(function(e){var t=z.getAggregator().request(Te.MobileApp);return(e.browserIs(Q.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(Q.BROWSERS.WEBKIT)||e.browserIs(Q.BROWSERS.MSEDGE))&&!t.isMobileAppEnvironment()&&e.hasResizeObserver()})(d)&&Ot.getResizeObserver((function(n,r){var i=n.pop();i.contentRect.height*i.contentRect.width>0&&(t.unobserve(e),t.observe(e),r.disconnect())})).observe(e)},l=function(){var t=Ot.getIntersectionObserver((function(e,t){var r=e.pop(),a=r.intersectionRect.width*r.intersectionRect.height/(r.boundingClientRect.width*r.boundingClientRect.height)*100;isNaN(a)&&(g(r.target,t),a=0),i=Math.min(a,100),n=r.boundingClientRect,i!==o&&Ot.execAtEndOfThread((function(){z.getAggregator().trigger(Se.IoPivChange,i)})),o=i}),{threshold:Q.VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER});u&&Ot.execAtEndOfThread((function(){i===Q.NA&&(i=0)})),t.observe(f(e)),u&&Ot.execAtEndOfThread((function(){at.isBustedIframe()||z.getAggregator().trigger(Se.DelayedViewabilityReady)})),a=!0},f=function(t){if(!K.isUndef(t)){if(c){var n=e.document,i=n.createElement("div");K(i.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",zIndex:-999,top:"0px",left:"0px"}),i[Q.IAS_DETECTOR]=!0,n.body.appendChild(i),t=i}return r=t,t}};return{start:function(){var t=function(){var t;try{e.document&&(c=!0,t={bodyElement:e.document.body,document:e.document})}catch(e){s=!0}return t}();t&&null!==t.bodyElement?l():t&&t.document?st.whenReady(l,t.document):s?z.getAggregator().request(Te.Errors).add(Q.ERROR_CODES.BUSTED_IFRAME_IN_IO):l()},isReady:function(){return i!==Q.NA},isStarted:function(){return a},getAdNodeDimensions:function(){var e;return n&&(e=dt({scrX:void 0,scrY:void 0,width:n.width,height:n.height})),e},getObservedNode:function(){return r},getPiv:function(){return i}}},an=function(){"use strict";var e=!1;return st.whenReady((function(){z.getAggregator().trigger(Se.StartViewabilityLoop),e=!0})),{loopStarted:function(){return e}}},sn={name:"loopDelay",dependencies:[],creator:an,settings:{applies:function(e,t,n){"use strict";return e.bootstrapOn("allowViewability")},tier:Q.TIERS.VIEWABILITY}},cn=function(){"use strict";return{start:function(e){z.getAggregator().on(Se.Measurable,(function(){e()}))},isApplicable:function(e,t){return!t.browserIs(Q.BROWSERS.WEBKIT)||!e.isImmediatelyMeasurable()}}},un=function(){"use strict";return{start:function(e){e()},isApplicable:function(e){return e.isImmediatelyMeasurable()}}},dn=function(t,n,r){"use strict";var i=!1,o=function(){try{n.impressionIsIdentifiable()&&!i?(i=!0,z.getAggregator().trigger(Se.Notify,e._onMeasurable)):n.impressionIsIdentifiable()||__IntegralASDiagnosticCall("rtsmeas_imp_not_iden",{},e)}catch(t){__IntegralASDiagnosticCall("rtsmeas_send_noti_error",t,e)}};return{start:function(){try{var n,i=[ln(),gn(),un(),cn()];(n=K(i).findFirst((function(e,n){return n.isApplicable(r,t)})))?n.start(o):__IntegralASDiagnosticCall("rtsmeas_no_chosen_strategy",{},e)}catch(t){__IntegralASDiagnosticCall("rtsmeas_start_error",t,e)}},isApplicable:function(t){return t.bootstrapOn("useViewabilityNotification")&&K.isDef(e._onMeasurable)}}},gn=function(){"use strict";return{start:function(e){var t,n;(t=z.getAggregator(),n=[Se.AdImpression,Se.Measurable],{onAll:function(e){var r={};K(n).each((function(i,o){t.on(o,(function(){r[o]=1,K(r).keys().length===n.length&&(r={},e())}))}))}}).onAll((function(){e()}))},isApplicable:function(e,t){var n=t.getIOSVersion()>=9;return(!t.browserIs(Q.BROWSERS.WEBKIT)||n)&&at.isVideo()}}},ln=function(){"use strict";return{start:function(e){z.getAggregator().once(Se.AdImpression,(function(){e()}))},isApplicable:function(e){return e.isImmediatelyMeasurable()&&at.isVideo()}}},fn=function(e,t,n){"use strict";var r=[l.Rjss,l.Amt,l.Jss,l.Jload];return{accepts:function(){var e=K.isDef(K(r).find((function(e,t){return t===n})));return t.accepts()&&t.isMediaType(Q.MEDIA_TYPE.DISPLAY)&&e},isImmediate:function(){return!0},isMediaType:t.isMediaType,supportsAdContainerGeometry:function(){return t.supportsAdContainerGeometry()},start:function(){}}},pn=function(t){"use strict";var n=Ot.getWindow(),r=n&&n.omid3p,i=z.getAggregator().request(Te.OmidAdSessionContext),o=!!(t&&t.isSupported&&t.isSupported()),a=!!(r&&K.isFunction(r.registerSessionObserver)&&K.isFunction(r.addEventListener));return{accepts:function(){return(o||a)&&!e.videoId&&!e._cl_adpath},isMediaType:function(e){return e===i.mediaType},supportsAdContainerGeometry:function(){return!0}}},mn=function(e,t,n){"use strict";var r,i=z.getAggregator().request(Te.OmidAdSessionContext),o=i.isHtml&&i.isWeb,a=Ot.getWindow(),s=a&&a.omid3p,c=!!(s&&K.isFunction(s.registerSessionObserver)&&K.isFunction(s.addEventListener))?s:e;r=o?[l.Rjss,l.Amt,l.Jss,l.Jload,l.JsVid,l.FwjsVid]:[l.Rjss,l.Amt,l.Jss,l.Jload];return{accepts:function(){var e=K.isDef(K(r).find((function(e,t){return t===n})));return t.accepts()&&t.isMediaType(Q.MEDIA_TYPE.VIDEO)&&e},isImmediate:function(){return!0},isMediaType:t.isMediaType,supportsAdContainerGeometry:function(){return t.supportsAdContainerGeometry()},start:function(){c.addEventListener("start",(function(e){z.getAggregator().trigger(Se.AdImpression)}))}}},hn=function(e){"use strict";return{resolve:function(){return K(e).findFirst((function(e,t){return t.environment.accepts()}))}}},vn=function(n){"use strict";var r=!1,i=!1,o=!1,a=!1,s=z.getAggregator().request(Te.OmidAdSessionContext);s.queuedOutputItems=[],s.cachedEvents=[],s.cachedGeometryEventsReceived=!1,s.cachedVideoEventsReceived=!1,s.recoveredTime=-1;var c=new si,u=z.getAggregator().request(Te.OmidAdSessionVerificationParameters),d=z.getAggregator().request(Te.Features),g=Ot.getWindow(),l=g&&g.omid3p,f=!!(l&&K.isFunction(l.registerSessionObserver)&&K.isFunction(l.addEventListener))?l:n,p=!1;s.omidEarlyExit=!1,s.mediaType="display";var m=!1,h=function(){return u&&u.IAS&&Object.keys(u.IAS).length>0?u.IAS:u},v=function(e,t){s.queuedOutputItems.push({code:e,value:t})},I=function(e,t,n){z.getAggregator().trigger(e,t,n)},E=function(e){z.getAggregator().trigger(e)},A=function(){if(r&&i&&(!a||o)){t.omidSupported=!0,s.hasOwnProperty("impressionType")&&v("oiet",s.impressionType),s.hasOwnProperty("creativeType")&&v("oct",s.creativeType),s.underEvaluation&&v("oef",!0),s.exitedOASRS=!0,p=!0;const e=h();e&&G.adTag&&G.adTag.updateWithVerificationParameters({verificationParameters:e}),G&&G.jsConfigRequest&&G.jsConfigRequest.buildRequestUrlFromParameters&&G.jsConfigRequest.buildRequestUrlFromParameters({contextNode:G.contextNode,omidParameters:h()}),X()}},S=function(t){function n(){return at.isOmidForWeb()||t.data.hasOwnProperty("supportsLoadedEvent")&&("true"===t.data.supportsLoadedEvent||!0===t.data.supportsLoadedEvent)&&"string"==typeof t.data.creativeType&&""!==t.data.creativeType}var c="0";if("sessionStart"===t.type){s.adSessionType=t.data.context.adSessionType||"undefined",s.environment=t.data.context.environment,s.accessMode=t.data.context.accessMode||"limited",s.omidNativeInfo=t.data.context.omidNativeInfo,s.omidJsInfo=t.data.context.omidJsInfo,s.deviceInfo=t.data.context.deviceInfo,s.app=t.data.context.app,s.supports=t.data.context.supports,s.app&&"string"==typeof s.app.appId&&s.app.appId.toLowerCase().indexOf("pandora")>-1&&(s.ignoreDivAsCandidate=!0),t.data.hasOwnProperty("contentUrl")&&(s.contentUrl=t.data.contentUrl),t.data.context.hasOwnProperty("underEvaluation")&&(s.underEvaluation=t.data.context.underEvaluation),s.isJavaScript="javascript"===s.adSessionType,s.isNative="native"===s.adSessionType||"javascript"===s.adSessionType,s.isLimitedSandbox="app"===s.environment?at.embedded:"full"!==t.data.context.accessMode,s.isHtml="html"===t.data.context.adSessionType,s.isWeb="web"===t.data.context.environment,s.partnerName=s.omidNativeInfo&&s.omidNativeInfo.partnerName&&s.omidNativeInfo.partnerName.toLowerCase(),u=t.data.verificationParameters,s.isOmidForWebEnvironment=s.isHtml&&s.isWeb,s.element=t.data.context.videoElement||t.data.context.slotElement||null,n()?(a=!0,s.useOMID13Logic=!0,v("ohand","13"),f.addEventListener("video",T),f.addEventListener("media",T)):v("ohand","12"),e.omidLeaveEarly?(e&&e.mobFwUrl&&e.mobFwUrl.indexOf("xmtp=v")>-1?s.mediaType="video":s.mediaType="web"===s.environment?t.data.mediaType||"video":t.data.mediaType,s.mediaType&&t.data.creativeType&&(s.creativeType=t.data.creativeType,s.omidEarlyExit=!0,c="1",i=!0,o=!0,v("omtp",s.mediaType)),"video"===s.mediaType&&(s.isVideo=!0,s.isNativeVideo=s.isNative),s.isDisplay="display"===s.mediaType):(s.isOmidForWebEnvironment||(s.integratedBlocking=G.measurementConfig.isResolved&&at.integratedBlockingApplies(e.mobFwUrl),s.integratedBlocking&&d&&d.on("exitOASRSEarly")&&(s.omidEarlyExit=!0,c="1",s.omidEarlyExit&&e.mobFwUrl.indexOf("xmtp=v")>-1&&(s.mediaType="video")),!t.data.mediaType||"display"!==t.data.mediaType&&"video"!==t.data.mediaType||(s.mediaType=t.data.mediaType)),s.omidEarlyExit&&(i=!0,v("omtp",s.mediaType),n()&&(o=!0),"video"===s.mediaType&&(s.isVideo=!0),s.isNativeVideo=s.isNative&&s.isVideo,s.isDisplay="display"===s.mediaType)),"audio"===t.data.creativeType&&(s.accessMode="limited",s.isLimitedSandbox=!0);for(var g,l,m,h=[{root:"omidNativeInfo",code:"onpn",field:"partnerName"},{root:"omidNativeInfo",code:"onpv",field:"partnerVersion"},{root:"omidJsInfo",code:"ojpn",field:"partnerName"},{root:"omidJsInfo",code:"ojpv",field:"partnerVersion"},{root:"omidJsInfo",code:"osev",field:"serviceVersion"},{root:"omidJsInfo",code:"oscv",field:"sessionClientVersion"},{root:"app",code:"applv",field:"libraryVersion"},{root:"app",code:"appid",field:"appId"},{root:"deviceInfo",code:"dty",field:"deviceType"},{root:"deviceInfo",code:"osn",field:"os"},{root:"deviceInfo",code:"osv",field:"osVersion"}],E=0;E<h.length;E++)g=h[E].root,l=h[E].field,m=h[E].code,"object"==typeof s[g]&&void 0!==s[g][l]&&v(m,s[g][l]);v("oast",s.adSessionType),v("oacm",s.accessMode),v("oenv",s.environment),s.hasOwnProperty("contentUrl")&&v("ocon",encodeURIComponent(s.contentUrl||"")),v("oerl",c),v("oses",at.getTagTime()),r=!0,A()}if("sessionError"===t.type){var S="string"==typeof t.data.errorType?t.data.errorType:"NoErrType",y="string"==typeof t.data.message?t.data.message:"NoMessage",D=S+"_"+encodeURIComponent(y);p?I(Se.AddOutputItem,{output:D},De.OMIDSessionError):v(De.OMIDSessionError,D)}},y=function(e){e.type===Q.IMPRESSION_EVENT&&(s.omidImpressionArrived=!0,E(Se.OmidImpressionArrived),s.mediaType="web"===s.environment?e.data.mediaType||"video":e.data.mediaType,v("omtp",s.mediaType),"audio"===e.data.creativeType&&(s.accessMode="limited",s.isLimitedSandbox=!0),v("oimp",at.getTagTime()),"video"===e.data.mediaType&&(s.isVideo=!0),function(e){return e.data.adView&&(e.data.viewport||s.isWeb)}(e)&&(s.impressionViewabilityMeasurement={type:"geometryChange",data:{viewport:e.data.viewport,adView:e.data.adView},timestamp:e.timestamp},void 0===s.geometryArrived&&c.checkForViewAttachmentBasedOnAdSessionType(s,e.data.adView)&&(s.geometryArrived=!0,E(Se.OmidRendGeoUpdate))),e.data.hasOwnProperty("impressionType")&&!o&&(s.impressionType=e.data.impressionType),s.isNativeVideo=s.isNative&&"video"===e.data.mediaType,s.isDisplay="display"===e.data.mediaType,i=!0,A())},T=function(e){if(e&&"start"===e.type)return s.videoStartArrived=!0,void E(Se.OmidRendVideoStart);"loaded"!==e.type||s.omidLoadedArrived||(v("oloa",at.getTagTime()),o=!0,s.omidLoadedArrived=!0,E(Se.OmidLoadedArrived),e.data.hasOwnProperty("creativeType")&&(s.creativeType=e.data.creativeType),"audio"===s.creativeType&&(s.accessMode="limited",s.isLimitedSandbox=!0),e.data.hasOwnProperty("impressionType")&&(s.impressionType=e.data.impressionType),!0===s.omidEarlyExit&&(m||(I(Se.AddThrottledOutputItem,"oiet",s.impressionType),I(Se.AddThrottledOutputItem,"oct",s.creativeType),m=!0)),A())},D=function(e){e&&e.data&&e.data.interactionType&&"click"===e.data.interactionType&&_n.omid.trackClick()};return{start:function(){f.registerSessionObserver(S,"IAS"),f.addEventListener(Q.IMPRESSION_EVENT,y),f.addEventListener(Se.AdUserInteraction,D)}}},In=function(){"use strict";return{accepts:function(){return!0}}},En=function(){"use strict";var e=z.getAggregator().request(Te.OmidAdSessionContext),t=z.getAggregator().request(Te.OmidVerificationClient),n=new pn(t),r=e.isHtml&&e.isWeb;return{accepts:function(){return n.accepts()&&r}}},An=function(){"use strict";return{start:function(){X()}}};class Sn{static maxScrollDepth({maxScrollDepth:e}){z.getAggregator().trigger(Se.AddOutputItem,{output:e},"msd")}static pageHeight({pageHeight:e}){z.getAggregator().trigger(Se.AddOutputItem,{output:e},"ph")}static notAvailableOrApplicableMaxScrollDepth({reason:e}){z.getAggregator().trigger(Se.AddOutputItem,{output:e},"nmsd")}static notAvailableOrApplicablePageHeight({reason:e}){z.getAggregator().trigger(Se.AddOutputItem,{output:e},"nph")}}class yn extends a{constructor(){super({storeModelName:"pageMetrics"}),this.maxScrollDepth=0,this.ticking=!1,this.topWindow=(()=>{let e;try{at.friendly&&!at.isDomless()&&(e=Ot.getTop()||void 0)}catch(e){}return e})(),this.topWindow&&this.initScrollListener()}sendPageMetricsData(){const e=this.getPageMetrics({topWindow:this.topWindow});if(void 0!==e){const{pageHeight:t,maxScrollDepth:n}=e;void 0!==n&&Sn.maxScrollDepth({maxScrollDepth:n}),void 0!==t&&Sn.pageHeight({pageHeight:t})}else Sn.notAvailableOrApplicableMaxScrollDepth({reason:-1}),Sn.notAvailableOrApplicablePageHeight({reason:-1})}initScrollListener(){var e;try{null===(e=this.topWindow)||void 0===e||e.addEventListener("scroll",(()=>{var e;this.ticking||(null===(e=this.topWindow)||void 0===e||e.requestAnimationFrame((()=>{this.sendPageMetricsData(),this.ticking=!1})),this.ticking=!0)}))}catch(e){}}getPageMetrics({topWindow:e}){let t;if(e)try{const n=e.document.documentElement.scrollHeight,r=e.scrollY||e.document.documentElement.scrollTop;this.maxScrollDepth=Math.max(this.maxScrollDepth,Math.round(r)),t={pageHeight:n,maxScrollDepth:this.maxScrollDepth}}catch(e){Sn.notAvailableOrApplicableMaxScrollDepth({reason:-1}),Sn.notAvailableOrApplicablePageHeight({reason:-1})}return t}}const Tn=({jsInfoCode:e,output:t,errorCode:n})=>{try{z.getAggregator().trigger(Se.AddOutputItem,{output:t},e),z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.PERFORMANCE)}catch(e){z.getAggregator().trigger(Se.Error,n)}};class Dn{constructor(){this.mousedOver=!1,this.clicked=!1}mouseOver(){this.mousedOver=!0}mouseOut(){this.mousedOver=!1}click(){this.clicked=!0}isMousedOver(){return this.mousedOver}wasClicked(){return this.clicked}}class On{constructor({tagStartTime:e,adState:t}){this.initClickTracking=({clickSource:e})=>{this.clickData[e]||(this.clickData[e]=[])},this.getClicks=({clickSource:e})=>this.clickData[e],this.setupTrackAndBroadcastClick=({clientX:e,clientY:t,clickSource:n})=>{const r=[e,t,at.getTagTime()];this.getClicks({clickSource:n}).push(r),Tn({output:K(this.clickData).toION(),errorCode:"Q",jsInfoCode:"clks"})},this.trackClick=({event:e,clickSource:t})=>{const{clientX:n,clientY:r}=e;this.adState.click(),this.setupTrackAndBroadcastClick({clientX:n,clientY:r,clickSource:t})},this.trackBlur=({clickSource:e})=>{this.setupTrackAndBroadcastClick({clientX:-1,clientY:-1,clickSource:e})},this.trackTouch=({clientX:e,clientY:t,clickSource:n})=>{this.setupTrackAndBroadcastClick({clientX:e,clientY:t,clickSource:n})},this.trackOmidClick=()=>{this.initClickTracking({clickSource:"om"}),this.trackClick({event:{clientX:0,clientY:0},clickSource:"om"})},this.isProxyClick=()=>!this.adState.wasClicked()&&this.adState.isMousedOver()&&n.activeElement instanceof HTMLIFrameElement,this.trackBlurClick=()=>{if(this.isProxyClick()){const e="blr";this.adState.mouseOut(),this.initClickTracking({clickSource:e}),this.trackBlur({clickSource:e})}},this.trackAdComponentClick=e=>{this.initClickTracking({clickSource:"ac"}),this.trackClick({event:e,clickSource:"ac"})},this.trackMobileTouchStart=e=>{if(e.changedTouches&&e.changedTouches[0]){const t=e.changedTouches[0],{clientX:n,clientY:r}={clientX:Math.round(null==t?void 0:t.clientX),clientY:Math.round(null==t?void 0:t.clientY)};this.mobileClickVerify.trackMobileTimeAndCoords({clientX:n,clientY:r})}},this.trackMobileTouchEnd=e=>{if(e.changedTouches&&e.changedTouches[0]){const t=e.changedTouches[0],{clientX:n,clientY:r}={clientX:Math.round(t.clientX),clientY:Math.round(t.clientY)};if(this.mobileClickVerify.isMobileLinkClick({clientX:n,clientY:r})){const e="mt";this.initClickTracking({clickSource:e}),this.trackTouch({clientX:n,clientY:r,clickSource:e})}}},this.trackPointerUp=e=>{if("pen"===e.pointerType&&e.clientX&&e.clientY){const{clientX:t,clientY:n}={clientX:Math.round(e.clientX),clientY:Math.round(e.clientY)};if(this.mobileClickVerify.isMobileLinkClick({clientX:t,clientY:n})){const e="mt";this.initClickTracking({clickSource:e}),this.trackTouch({clientX:t,clientY:n,clickSource:e})}}},this.trackPointerDown=e=>{if("pen"===e.pointerType&&e.clientX&&e.clientY){const{clientX:t,clientY:n}={clientX:Math.round(e.clientX),clientY:Math.round(e.clientY)};this.mobileClickVerify.trackMobileTimeAndCoords({clientX:t,clientY:n})}},this.clickData={},this.tagStartTime=e,this.adState=t,this.mobileClickVerify=new wn}}class wn{constructor(){this.trackMobileTimeAndCoords=({clientX:e,clientY:t})=>{this.mobileTouchTimer.startTimer(),this.lastClientX=e,this.lastClientY=t},this.isMobileLinkClick=({clientX:e,clientY:t})=>{const n=this.mobileTouchTimer.endTimer();let r=!1;if(this.mobileTouchTimer.startTimer(),n&&n<=200&&this.lastClientX&&this.lastClientY){const n=Math.abs(e-this.lastClientX),i=Math.abs(t-this.lastClientY),o=10;n<=o&&i<=o&&(r=!0)}return r},this.mobileTouchTimer=new bn,this.mobileTouchTimer.startTimer()}}class Nn{constructor({adState:e,tagStartTime:t}){this.trackAdComponentMouseOver=()=>{this.adState.mouseOver(),this.hoverData.timeToFirstHover||(this.hoverData.timeToFirstHover=at.getTagTime()),this.hoverData.hoverCount+=1,this.hoverTimer.startTimer(),Tn({output:K(this.hoverData.getData()).toION(),errorCode:"he",jsInfoCode:"hov"})},this.trackAdComponentMouseOut=()=>{this.adState.mouseOut();const e=this.hoverTimer.endTimer();(e||0===e)&&(this.hoverData.totalHoverTime+=e,Tn({output:K(this.hoverData.getData()).toION(),errorCode:"he",jsInfoCode:"hov"}))},this.adState=e,this.tagStartTime=t,this.hoverData=new Cn,this.hoverTimer=new bn}}class Cn{constructor(){this.getData=()=>[this.timeToFirstHover,this.hoverCount,this.totalHoverTime],this.hoverCount=0,this.totalHoverTime=0,this.timeToFirstHover=0}}class bn{constructor(){this.startTime=0}startTimer(){this.startTime=(new Date).getTime()}endTimer(){let e;return this.startTime&&(e=(new Date).getTime()-this.startTime),this.startTime=0,e}}const{birthdate:Rn}=e,_n=new class{constructor({tagStartTime:e}){this.finalizeAllCollectedData=()=>{this.hover.trackAdComponentMouseOut()},this.adState=new Dn,this.tagStartTime=e,this.click=new On({tagStartTime:e,adState:this.adState}),this.hover=new Nn({tagStartTime:e,adState:this.adState})}get adComponent(){return{trackClick:this.click.trackAdComponentClick,trackBlur:this.click.trackBlurClick,trackMouseOver:this.hover.trackAdComponentMouseOver,trackMouseOut:this.hover.trackAdComponentMouseOut}}get mobile(){return{trackTouchEnd:this.click.trackMobileTouchEnd,trackTouchStart:this.click.trackMobileTouchStart,trackPointerUp:this.click.trackPointerUp,trackPointerDown:this.click.trackPointerDown}}get omid(){return{trackClick:this.click.trackOmidClick}}}({tagStartTime:Rn});var Mn=function(e,n){"use strict";var r="videoPlaybackEvent",i=[],o=(new Date).getTime(),a=0,s=1,c=0,u=!1,d=new yt,g=z.getAggregator().request(Te.OmidAdSessionContext),l=Ot.getWindow(),f=l&&l.omid3p,p=!!(f&&K.isFunction(f.registerSessionObserver)&&K.isFunction(f.addEventListener))?f:e,m=!1,h=!1,v={isEmpty:function(){return 0===i.length},toString:function(){for(var e="{vEventCount:"+i.length+",vEvents:[",t=0;t<i.length;t++){var n=i[t];e+=(t>0?",{":"{")+"t:"+n.t+",rt:"+n.rt+",tp:"+n.tp+",sl:"+n.sl+",ad_duration:"+n.ad_duration+",volume:"+n.volume+",devol:"+n.devol+"}"}return e+="]}"}},I=function(){u=!0},E=function(e){var d,l,f,p="start|firstQuartile|midpoint|thirdQuartile|resume|bufferFinish",v="complete|pause|bufferStart|skipped";if(-1!==("|"+p+"|"+v+"|playerStateChange|loaded|volumeChange|").indexOf("|"+e.type+"|"))try{var I,E="",A=e.hasOwnProperty("timestamp")?e.timestamp:(new Date).getTime(),S=A-(G.measurementConfig.birthdate||A+1),y="n",T=!1;switch(e.type){case"start":E=Se.AdVideoStart,g.videoStartArrived=!0,z.getAggregator().trigger(Se.OmidRendVideoStart),o=A,(c=e.data.duration||"0")>1e3&&(c/=1e3),a=null!=e.data.mediaPlayerVolume?e.data.mediaPlayerVolume:e.data.videoPlayerVolume,s=null!=e.data.deviceVolume?e.data.deviceVolume:1;break;case"volumeChange":E="volumeChanged",a=null!=e.data.mediaPlayerVolume?e.data.mediaPlayerVolume:e.data.videoPlayerVolume,s=null!=e.data.deviceVolume?e.data.deviceVolume:1;break;case"firstQuartile":case"midpoint":case"thirdQuartile":case"complete":E="adVideo"+e.type.substring(0,1).toUpperCase()+e.type.substring(1),T=!0,z.getAggregator().trigger(Se.VideoQuartileEvent,e);break;case"pause":case"bufferStart":E="pauseAd";break;case"resume":case"bufferFinish":E="resumeAd";break;case"skipped":E="adSkipped"}if(a=a>0&&a<.1?.1:parseInt(10*a)/10,s=s>0&&s<.1?.1:parseInt(10*s)/10,""!==E){var D=z.getAggregator().request(Te.ScreenEvents);D&&(y=D.getCurrentLoc()||y),i.push({t:A-o,rt:S,tp:E,sl:y,ad_duration:c,volume:a,devol:s})}if("loaded"===e.type&&K.isDef(e.data)){var O=["preroll","midroll","postroll","standalone"].indexOf(e.data.position),w=-1!==O?O+1:void 0,N=[];!0===e.data.autoPlay?N.push("autoplayed"):N.push("clicktoplay"),!0===e.data.skippable&&N.push("skippable"),"fullscreen"===e.data.state&&N.push("fullscreen");var C=N.join(".");!0===u?(K.isDef(w)&&z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,De.VideoBreakPosition,w),z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.ENVIRONMENT,De.VideoPlayerState,C)):(K.isDef(w)&&z.getAggregator().trigger(Se.AddOutputItem,{output:w},De.VideoBreakPosition,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:C},De.VideoPlayerState,{type:Q.IMPRESSION_EVENT}))}if("start"===e.type&&(z.getAggregator().trigger(Se.OmidAdDuration,{ad_duration:c}),g.adDuration=c),"playerStateChange"===e.type?I="fullscreen"===e.data.state?"AdEnteredFullscreen":"AdExitedFullscreen":-1!==p.indexOf(e.type)?(I="AdPlaying",h=!0):-1!==v.indexOf(e.type)&&(I="AdPaused",h=!1),"audio"===g.creativeType&&""!==E){var b=(d=Q.RENDER.WIDTH_THRESHOLD,l=Q.RENDER.HEIGHT_THRESHOLD,(f={type:"geometryChange",timestamp:A,internallyGenerated:!0,treatAsCached:m,data:{viewport:{width:d,height:l},adView:{measuringElement:!1,percentageInView:100,geometry:{x:0,y:0,width:d,height:l,obstructions:[],reasons:[]},reasons:[]}}}).data.adView.onScreenGeometry=f.data.adView.containerGeometry=f.data.adView.onScreenContainerGeometry=f.data.adView.geometry,f);h&&0!==s&&0!==a||(b.data.adView.geometry.width=b.data.adView.geometry.height=0,b.data.adView.percentageInView=0),z.getAggregator().trigger(Se.InternallyGeneratedGeometryEvent,b)}m&&"loaded"!==e.type&&(g.cachedVideoEventsReceived=!0,"start"===e.type&&(g.cachedStartEventIndex=g.cachedEvents.length),g.cachedEvents.push(e)),K.isDef(I)&&n.trigger(r,{eventType:I,eventData:null}),T&&z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.VIDEO_EVENTS)}catch(e){__IntegralASDiagnosticCall("omidvideo",e,t.bootstrapper)}};return{start:function(){z.getAggregator().on(Se.ImpressionSent,I),z.getAggregator().provide({[Te.OmidVideoEventsString]:v}),m=!0,"audio"===g.creativeType?p.addEventListener("media",E):p.addEventListener("video",E),m=!1,g.cachedVideoEventsChecked=!0,g.cachedVideoEventsReceived&&g.processCachedEvents(),d.init()},addVideoPlaybackEventListener:function(e){n.on(r,e)}}},Pn=function(e,t){"use strict";var n="measurementChanged",r=!1,i=function(e){return e>=50},o=function(e){var o=e.percentageInView;r=!0,e.viewState=function(e){return i(e)?Q.IN_VIEW:Q.OUT_OF_VIEW}(o),e.outOfViewReason=i(o)?"":Q.OUT_OF_VIEW_REASONS.GEOM,t.trigger(n,e)};return{start:function(){z.getAggregator().trigger(Se.AddOutputItem,{output:Q.MEDIA_TYPE.DISPLAY_CODE},Q.MEDIA_TYPE_CODE,{type:Q.IMPRESSION_EVENT}),e.addScreenLocationChangedListener(o),e.start()},getStrategyName:function(){return Q.MEASUREMENT_STRATEGY.DISPLAY},addMeasurementChangedListener:function(e){t.on(n,e)},isMeasurable:function(){return r}}},Vn=function(e,t,n){"use strict";var r=K.isDef(e)?e.environment:void 0,i=K.isDef(e)?e.measurementStrategy:void 0,o=function(){return K.isDef(i)};K.isDef(t)&&t.start();return{hasMeasurementStrategy:o,getScreenLocationInfo:function(e){return t.create(e)},isImmediate:function(){return!o()||r.isImmediate()},isMeasurable:function(){return!!o()&&i.isMeasurable()},isMediaType:function(e){return!!o()&&r.isMediaType(e)},supportsAdContainerGeometry:function(){return e.environment.supportsAdContainerGeometry()},start:function(){o()&&r.start()},requiresDelayedViewabilityEvent:function(){o()&&t.requiresDelayedViewabilityEvent()}}},Fn=function(e,t,n){"use strict";var r=z.getAggregator().request(Te.MobileApp);return{create:function(){var t=[];t=(t=t.concat(e.getOmidMeasurementStrategies())).concat(e.getMraidMeasurementStrategies());var n=new Ln(t).resolve();n||z.getAggregator().trigger(Se.AddOutputItem,{output:"0"},De.OMIDAppMeasurement,{type:Q.IMPRESSION_EVENT});var i=new kn(n);return new Vn(n,i,r.isMobileAppEnvironment())}}},xn=function(e){"use strict";var t=z.getAggregator().request(Te.MobileApp);return{getOmidMeasurementStrategies:function(){var e=z.getAggregator().request(Te.OmidVerificationClient),t=new pn(e),n=[];if(t.accepts()){var r=new Xn,i=new Jn,o=new En,a=z.getAggregator().request(Te.OmidAdSessionContext),s=new Yn(e,new _e),c=[{environment:r,measurementStrategy:new Kn(e,new _e)},{environment:o,measurementStrategy:new zn(new Dr,Ot.getWindow(),new _e)},{environment:i,measurementStrategy:new $n(new Mr,Ot.getWindow(),new _e)}],u=new Ln(c).resolve(),d=u?u.measurementStrategy:{},g=new Hn(new qn(new ti),new ti,a.isHtml),l=new fn(e,t,G.adTag.tagType),f=new jn(s,d,new _e,g),p=new mn(e,t,G.adTag.tagType),m=new Qn(s,d,new Mn(e,new _e),new _e,g);n.push({environment:l,measurementStrategy:f}),n.push({environment:p,measurementStrategy:m})}return n},getMraidMeasurementStrategies:function(){var e=[],n=t.isSafeToInjectMraid(),r=new Zn(Ot.getWindow(),n,t.isMobileAppEnvironment());if(r.accepts()){var i,o=z.getAggregator().request(Te.Context),a=new Wn(Ot.getWindow(),o),s=new er(Ot.getWindow(),new _e);if(a.accepts()){var c=new Gn(Ot.getWindow(),new _e);i={environment:a,measurementStrategy:new Un(s,c,new _e)}}else{i={environment:r,measurementStrategy:new Pn(s,new _e)}}e.push(i)}return e}}},Ln=function(e){"use strict";return{resolve:function(){var t=K(e).findFirst((function(e,t){return t.environment.accepts()}));if(K.isDef(t))return t}}},kn=function(e){"use strict";var t,n=!1,r={winDimensions:dt({scrX:0,scrY:0,width:0,height:0}),adDimensions:dt({scrX:0,scrY:0,width:0,height:0}),containerDimensions:dt({scrX:0,scrY:0,width:0,height:0}),method:Q.NA,viewState:Q.NA,percentInView:Q.PIV_NA,reason:"",obstructed:Q.NA,isHidden:Q.NA,tabHidden:Q.NA,posViewState:Q.NA,adCompCount:1},i=function(e){return e?new dt({scrX:e.x,scrY:e.y,width:e.width,height:e.height}):dt({scrX:0,scrY:0,width:0,height:0})},o=function(e){t={winDimensions:i(e.windowDimensions),adDimensions:i(e.adDimensions),containerDimensions:i(e.containerDimensions),method:e.detectionMethod||Q.NA,viewState:e.viewState||Q.NA,percentInView:K.isDef(e.percentageInView)?e.percentageInView:Q.PIV_NA,reason:e.outOfViewReason||"",obstructed:K.stringifyTriState(e.isObstructed),isHidden:Q.NA,tabHidden:Q.NA,posViewState:e.viewState||Q.NA,adCompCount:1,shouldDelegateToDomBasedViewability:e.shouldDelegateToDomBasedViewability,sliceStatus:e.sliceStatus,isVideoPlaying:e.isVideoPlaying,isVideoPlayingInFullscreen:e.isVideoPlayingInFullscreen,isSoundOn:e.isSoundOn};var r=e.omidObstructions;K.isDef(r)&&""!==r&&(t.omidObstructions=r),e.isMeasurable&&(!0,n&&(n=!1,z.getAggregator().trigger(Se.DelayedViewabilityReady)))};return{create:function(n){var i=r;return K.isDef(t)&&(e.environment.supportsAdContainerGeometry()?i=t:t.shouldDelegateToDomBasedViewability?(i=n).method=t.method:(0===t.percentInView||t.percentInView>=75)&&(i=t)),i},start:function(){var t;K.isDef(e)&&K.isDef(e.measurementStrategy)&&((t=e.measurementStrategy).addMeasurementChangedListener(o),t.start())},requiresDelayedViewabilityEvent:function(){n=!0}}},Un=function(e,t,n){"use strict";var r,i,o,a,s="measurementChanged",c=!1,u=!1,d=!1,g=function(e){return e<50},l=function(){if(!K.isUndef(i)){var e,t,l=[];c?(u?(t=!1,e=100):(t=a,e=o),g(e)&&l.push(Q.OUT_OF_VIEW_REASONS.GEOM)):(t=!1,e=0,l.push(Q.OUT_OF_VIEW_REASONS.VIDEO)),d=!0,i.shouldDelegateToDomBasedViewability=t,i.percentageInView=e,i.viewState=function(e){return g(e)?Q.OUT_OF_VIEW:Q.IN_VIEW}(e),i.outOfViewReason=l.join("."),r=i,n.trigger(s,r)}},f=function(e){i=e,o=e.percentageInView,a=e.shouldDelegateToDomBasedViewability,l()},p=function(e){var t=e.eventType;"AdEnteredFullscreen"===t?u=!0:"AdExitedFullscreen"===t?u=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(t)?c=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped".indexOf(t)&&(c=!1),l()};return{start:function(){z.getAggregator().trigger(Se.AddOutputItem,{output:Q.MEDIA_TYPE.VIDEO_CODE},Q.MEDIA_TYPE_CODE,{type:Q.IMPRESSION_EVENT}),e.addScreenLocationChangedListener(f),e.start(),t.addVideoPlaybackEventListener(p),t.start()},getStrategyName:function(){return Q.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(e){n.on(s,e)},isMeasurable:function(){return d}}},Wn=function(e,t){"use strict";return{accepts:function(){return t.isInMobiMraidVideo()},isImmediate:function(){return!1},supportsAdContainerGeometry:function(){return!1},start:function(){try{var t;e.inmobi.IASDocumentVideoBuffer.addVideoEventListener((function(e){"AdVideoStart"!==e.type||t||(t=!0,z.getAggregator().trigger(Se.AdImpression))}))}catch(e){}}}},Gn=function(e,t){"use strict";var n="inMobiMraidVideoPlaybackEvent",r=function(e){try{var r=e.type;t.trigger(n,{eventType:r})}catch(e){}};return{start:function(){try{e.inmobi.IASDocumentVideoBuffer.addVideoEventListener(r)}catch(e){}},addVideoPlaybackEventListener:function(e){t.on(n,e)}}};const Bn=(e,t)=>{let n=[],r=0,i=0;if(e&&t&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.width&&"number"==typeof e.height){const o=e.x,a=e.x+e.width,s=e.y,c=e.y+e.height;for(;r<t.length;r++){const u=t[r];if(u&&"number"==typeof u.x&&"number"==typeof u.y&&"number"==typeof u.width&&"number"==typeof u.height){const t=u.x,r=u.x+u.width,d=u.y,g=u.y+u.height;if(t>=a||r<=o||d>=c||g<=s)continue;t<o&&(u.x=e.x,u.width=u.width-(o-t)),r>a&&(u.width=u.width-(r-a)),d<s&&(u.y=e.y,u.height=u.height-(s-d)),g>c&&(u.height=u.height-(g-c)),n[i]=u,i++}}}else t&&(n=t);return n};var Hn=function(e,t,n){"use strict";var r=function(e,t){var n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),i=Math.min(e.x+e.width,t.x+t.width)-n,o=Math.min(e.y+e.height,t.y+t.height)-r;return{x:n,y:r,width:i>0?i:0,height:o>0?o:0}},i=function(e,t,n){var i=r(t,e);return r(n,{x:0,y:0,width:i.width,height:i.height})},o=function(e,t){var n=at.isOmidForWeb(),r=!at.isOmidSandboxedEnvironment(),i=n&&r;return{x:i?t.x:e.x+t.x,y:i?t.y:e.y+t.y,width:t.width,height:t.height}},a=function(e,t){return{x:t.x-e.x,y:t.y-e.y,width:t.width,height:t.height}};function s(e,t,n){var r=a(t,n),o=i(e,t,r);return o.width*o.height}var c=function(e){return u(e)?Q.IN_VIEW:Q.OUT_OF_VIEW},u=function(e){return e>=50};return{calculateGeometricMeasurement:function(r,d){if(K.isDef(r)&&K.isDef(d)){var g,l,f=r.viewport,p=r.computedAdContainer,m=p.obstructions,h=r.omidObstructions,v=m&&m.length>0,I=r.originalAdContainer,E=d.adGeometry,A=d.adFound,S=r.detectionMethod,y=0,T={x:0,y:0,width:f.width,height:f.height},D=o(I,E),O=r.outOfViewReason,w=0,N=0,C=v||!1,b=E.width*E.height<=1;return n&&b&&(O=function(e,t){var n=e||"";return t||-1!==n.indexOf(Q.OUT_OF_VIEW_REASONS.GEOM)||(n=Q.OUT_OF_VIEW_REASONS.GEOM+(""!==n?"."+n:"")),n}(O,A=!1)),A&&r.percentageInView>0?(w=s(T,p,D),N=v?function(t,n,r,s){var c=a(n,r),u=i(t,n,c),d=o(n,u);return e.calculateObstructedArea(d,s)}(T,p,D,m):0,y=Math.round((w-N)/(D.width*D.height)*100),v&&0===N&&(C=!1),l=function(n,r,i,o){var a,c,u,d,g=0,l=t.getConfig(i).numberOfSlices,f=Ot.floor(i.height/l)||1,p=[],m=o?e.getObstructionStatusBySlice(l):[];for(g=0;g<l;g++)d=i.y+f*g,g==l-1&&(f=i.y+i.height-d),c=s(n,r,a={x:i.x,y:d,width:i.width,height:f})/(a.width*a.height)==1,p.push(c);if(o)for(u=Ot.min(m.length,l),g=0;g<u;g++)p[g]=p[g]&&!m[g];return p}(T,p,new dt(D).getRoundedGeometry(),C)):l=t.getConfig(E).defaultSliceArray,g={windowDimensions:T,containerDimensions:I,adDimensions:D,percentageInView:y,viewState:c(y),outOfViewReason:u(y)?"":O||Q.OUT_OF_VIEW_REASONS.GEOM,detectionMethod:S,isObstructed:C,sliceStatus:l},K.isDef(h)&&""!==h&&(g.omidObstructions=h),g}}}},jn=function(e,t,n,r){"use strict";var i,o,a,s="geometryMeasurementChanged",c=function(){if(K.isDef(i)&&K.isDef(o)){var e=r.calculateGeometricMeasurement(i,o);e.isMeasurable=!0,a=!0,n.trigger(s,e)}},u=function(e){i=e,c()},d=function(e){o=e,c()};return{start:function(){z.getAggregator().trigger(Se.AddOutputItem,{output:Q.MEDIA_TYPE.DISPLAY_CODE},Q.MEDIA_TYPE_CODE,{type:Q.IMPRESSION_EVENT}),e.addAdContainerGeometryMeasurementChangedListener(u),e.start(),t.addAdGeometryMeasurementChangedListener(d),t.start()},addMeasurementChangedListener:function(e){n.on(s,e)},getStrategyName:function(){return Q.MEASUREMENT_STRATEGY.DISPLAY},isMeasurable:function(){return a}}},qn=function(e){"use strict";var t,n=[],r=function(e,t){for(var n=o(e,t),r=n.x-e.x,i=n.y-e.y,a=r+n.width,s=i+n.height,c=Math.round(r);c<Math.round(a);c++)for(var u=Math.round(i);u<Math.round(s);u++)void 0!==e.matrix[c]&&void 0===e.matrix[c][u]&&(e.matrix[c][u]=1,e.obscuredPixelCount+=1);return e},i=function(e){for(var t=Math.round(e.width),n=Math.round(e.height),r=new Array(t),i=0;i<t;i++)r[i]=new Array(n);return{matrix:r,obscuredPixelCount:0,x:Math.round(e.x),y:Math.round(e.y),width:t,height:n}},o=function(e,t){var n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),i=Math.min(e.x+e.width,t.x+t.width)-n,o=Math.min(e.y+e.height,t.y+t.height)-r;return{x:n,y:r,width:i>0?i:0,height:o>0?o:0}},a=function(e,t,n){return e+(t-n)},s=function(e,t,n,r){return e==t||n===r-1},c=function(t){if(K.isUndef(t.matrix)||0===t.matrix.length)return[];for(var n=0,r=!1,i=t.matrix[0].length,o=t.matrix.length,c=e.getConfig({height:i}).numberOfSlices,u=Ot.floor(i/c)||1,d=[],g=0;g<i;g++){r=!1;for(var l=0;l<o;l++)if(1===t.matrix[l][g]){r=!0;break}n++,r&&(g=a(g,u,n),n=u),s(n,u,g,i)&&(d.push(r),n=0,r=!1)}return d};return{calculateObstructedArea:function(e,o){var a,s=o&&o.length>0,u=s?i(e):{},d=0,g=0;if(s){for(;d<o.length;d++)a=o[d],u=r(u,a);g=u.obscuredPixelCount,t=c(u)}else t=n;return g},getObstructionStatusBySlice:function(){return t}}},Yn=function(t,n){"use strict";var r=z.getAggregator().request(Te.OmidAdSessionContext);r.geometryChangeEvents=[];var i=null,o=!1,a=Ot.getWindow(),s=a&&a.omid3p,c=!!(s&&K.isFunction(s.registerSessionObserver)&&K.isFunction(s.addEventListener))?s:t,u=new si,d=!1,g=!1,l=function(){var t=Ot.getDoc().getElementById("iasbi"+e.asid);t&&t.hasAttribute("CreativeLoaded")?(r.delayingViewabilityEvents=!1,o=!1,i&&(f(i),i=null)):Ot.setTimeout(l,50)},f=function(e){if(e&&"geometryChange"===e.type&&e.data&&e.data.adView){var t=e.data.adView;if(t.onScreenGeometry&&t.onScreenGeometry.obstructions&&t.onScreenGeometry.obstructions.length>0&&(t.onScreenGeometry.obstructions=Bn(t.geometry,t.onScreenGeometry.obstructions),0===t.onScreenGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),t.onScreenContainerGeometry&&t.onScreenContainerGeometry.obstructions&&t.onScreenContainerGeometry.obstructions.length>0&&(t.onScreenContainerGeometry.obstructions=Bn(t.geometry,t.onScreenContainerGeometry.obstructions),0===t.onScreenContainerGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),"audio"!==r.creativeType||e.internallyGenerated){var a=d||e.treatAsCached;a&&(r.cachedGeometryEventsReceived||(r.cachedFirstGeometricIndex=r.cachedEvents.length),r.cachedGeometryEventsReceived=!0,r.cachedEvents.push(e));var s=!!(t.measuringElement&&t.containerGeometry&&t.onScreenContainerGeometry),c=r.cachedStartEventIndex;if(!a&&r.unrecoveredPlayTime&&c>-1&&t.percentageInView>=50&&"audio"!==r.creativeType){var g=Ot.now()-r.cachedEvents[c].timestamp,f=z.getAggregator().request(Te.ScreenEvents);f&&f.setRecoveredTimeInSlTimes&&f.setRecoveredTimeInSlTimes(g)}if(r.geometryChangeEvents.length<10&&(r.geometryChangeEvents.push(e.timestamp-G.measurementConfig.birthdate+"."+t.percentageInView),z.getAggregator().trigger(Se.AddOutputItem,{output:r.geometryChangeEvents.join("_")},De.GeometryEventsReceived)),r.delayingViewabilityEvents)i=e,o||(o=!0,l());else{var m=[];t.onScreenGeometry&&t.onScreenGeometry.obstructions&&t.onScreenGeometry.obstructions.length>0&&(!s||t.onScreenContainerGeometry.obstructions&&0!==t.onScreenContainerGeometry.obstructions.length||(t.onScreenContainerGeometry.obstructions=t.onScreenGeometry.obstructions),t.reasons&&t.reasons.indexOf("obstructed")>-1&&t.percentageInView<100&&(t.onScreenGeometry.obstructions=t.onScreenGeometry.obstructions.slice(0,4),K(t.onScreenGeometry.obstructions).each((function(e,t){m.push(Math.round(t.x)+"."+Math.round(t.y)+"."+Math.round(t.width)+"."+Math.round(t.height))}))));var h=at.isOmidForWeb()?gt.calcWinDims():{width:0,height:0},v=new dt(e.data.viewport||h),I=new dt(s?t.containerGeometry:t.geometry||{x:0,y:0,width:0,height:0}),E=new dt(s?t.onScreenContainerGeometry:t.onScreenGeometry||{x:0,y:0,width:0,height:0}),A={viewport:v.getRoundedGeometry(),originalAdContainer:I.getRoundedGeometry(),computedAdContainer:E.getRoundedGeometry(),percentageInView:t.percentageInView,detectionMethod:Q.DETECTION_METHODS.OMID,outOfViewReason:p(t.reasons),omidObstructions:m.join("_")};void 0===r.geometryArrived&&u.checkForViewAttachmentBasedOnAdSessionType(r,e.data.adView)&&(r.geometryArrived=!0,z.getAggregator().trigger(Se.OmidRendGeoUpdate)),n.trigger(Q.CONTAINER_GEOMETRY_MEASUREMENT_CHANGED,A)}}}},p=function(e){var t={inactive:Q.OUT_OF_VIEW_REASONS.FOCUS,viewport:Q.OUT_OF_VIEW_REASONS.GEOM,clipped:Q.OUT_OF_VIEW_REASONS.GEOM,obstructed:Q.OUT_OF_VIEW_REASONS.OBSTRUCTION,backgrounded:Q.OUT_OF_VIEW_REASONS.FOCUS,notFound:Q.OUT_OF_VIEW_REASONS.HIDDEN,hidden:Q.OUT_OF_VIEW_REASONS.HIDDEN,noWindowFocus:Q.OUT_OF_VIEW_REASONS.WINDOW},n=[];return e?(K(e).each((function(e,r){var i=t[r];i&&n.indexOf(n)<0&&n.push(i)})),n.join(".")):""};r.processCachedEvents=function(){if(!g){var e="video"===r.mediaType,t=r.supports&&r.supports.join().indexOf("clid")>-1,n="limited"===r.accessMode,i="full"===r.accessMode,o=n||i&&t,a=!e||r.cachedVideoEventsChecked,s=r.cachedGeometryEventsChecked;if(o&&s&&a&&r.cachedEvents.length>0){var c="o",u="o",d=0,l=0,f=0,p=!e,m=!1,h=Ot.now();if(e){var v=r.cachedStartEventIndex,I=r.cachedFirstGeometricIndex,E=r.cachedEvents[I],A=r.cachedEvents[v];E&&A&&E.timestamp>A.timestamp&&(E.timestamp=A.timestamp)}for(var S=0;S<r.cachedEvents.length;S++){for(var y=h,T=-1,D=0;D<r.cachedEvents.length;D++)!r.cachedEvents[D].alreadyOrdered&&r.cachedEvents[D].timestamp<y&&(y=r.cachedEvents[D].timestamp,T=D);if(-1!==T){var O=r.cachedEvents[T];O.alreadyOrdered=!0,"geometryChange"===O.type&&O.data&&O.data.adView?(d=O.data.adView.percentageInView,m=!0):p="start|firstQuartile|midpoint|thirdQuartile|resume|bufferFinish".indexOf(O.type)>-1,u=d&&d>=50&&p?"i":"o","o"===c&&"i"===u?l=O.timestamp:"i"===c&&"o"===u?f+=O.timestamp-l:"i"===c&&"i"===u&&(f+=O.timestamp-l,l=O.timestamp),c=u}}if(g=!0,"i"===c?f+=h-l:e&&!m&&r.cachedStartEventIndex>-1&&(r.unrecoveredPlayTime=!0),f>0){"audio"===r.creativeType&&(f=Math.min(f,h-E.timestamp)),r.recoveredTime=f;var w=z.getAggregator().request(Te.ScreenEvents);w&&w.setRecoveredTimeInSlTimes&&(w.setRecoveredTimeInSlTimes(f),r.recoveredTime=-1)}}}};return{start:function(){d=!0,void 0!==r.impressionViewabilityMeasurement&&f(r.impressionViewabilityMeasurement),c.addEventListener("geometryChange",f),d=!1,r.cachedGeometryEventsChecked=!0,r.cachedGeometryEventsReceived&&r.processCachedEvents(),z.getAggregator().on(Se.InternallyGeneratedGeometryEvent,f)},addAdContainerGeometryMeasurementChangedListener:function(e){n.on(Q.CONTAINER_GEOMETRY_MEASUREMENT_CHANGED,e)},translateOmidOutOfViewReasons:p}},Xn=function(){"use strict";var e=z.getAggregator().request(Te.OmidAdSessionContext);return{accepts:function(){return e&&(e.isNative||e.isLimitedSandbox)}}},Kn=function(t,n){"use strict";var r=z.getAggregator().request(Te.OmidAdSessionContext),i=null,o=!1,a=Ot.getWindow(),s=a&&a.omid3p,c=!!(s&&K.isFunction(s.registerSessionObserver)&&K.isFunction(s.addEventListener))?s:t,u=new si,d=function(){var t=Ot.getDoc().getElementById("iasbi"+e.asid);t&&t.hasAttribute("CreativeLoaded")?(r.delayingViewabilityEvents=!1,o=!1,i&&(g(i),i=null)):Ot.setTimeout(d,50)},g=function(e){if(e&&"geometryChange"===e.type&&e.data&&e.data.adView&&("audio"!==r.creativeType||e.internallyGenerated)){var t=e.data.adView;if(t.onScreenGeometry&&t.onScreenGeometry.obstructions&&t.onScreenGeometry.obstructions.length>0&&(t.onScreenGeometry.obstructions=Bn(t.geometry,t.onScreenGeometry.obstructions),0===t.onScreenGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),t.onScreenContainerGeometry&&t.onScreenContainerGeometry.obstructions&&t.onScreenContainerGeometry.obstructions.length>0&&(t.onScreenContainerGeometry.obstructions=Bn(t.geometry,t.onScreenContainerGeometry.obstructions),0===t.onScreenContainerGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),r.delayingViewabilityEvents)i=e,o||(o=!0,d());else{var a=e.data.adView.geometry,s=e.data.adView.containerGeometry,c=!!a,g=e.data.adView.measuringElement&&!!s,l=new dt({x:c&&g?a.x-s.x:0,y:c&&g?a.y-s.y:0,width:c?a.width:0,height:c?a.height:0}).getRoundedGeometry();l,void 0===r.geometryArrived&&u.checkForViewAttachmentBasedOnAdSessionType(r,e.data.adView)&&(r.geometryArrived=!0,z.getAggregator().trigger(Se.OmidRendGeoUpdate)),n.trigger(Q.OMID_GEOMETRY_MEASUREMENT_CHANGED,{adGeometry:l,adFound:c})}}};return{start:function(){void 0!==r.impressionViewabilityMeasurement&&g(r.impressionViewabilityMeasurement),c.addEventListener("geometryChange",g),z.getAggregator().on(Se.InternallyGeneratedGeometryEvent,g)},addAdGeometryMeasurementChangedListener:function(e){n.on(Q.OMID_GEOMETRY_MEASUREMENT_CHANGED,e)}}},Jn=function(){"use strict";var e=z.getAggregator().request(Te.OmidAdSessionContext);return{accepts:function(){return e&&!e.isNative}}},zn=function(e,t,n){"use strict";var r;var i=function(){var t,i,o,a=e.find(),s=!1;K.isDef(a)&&null!==a?(o=!0,t={x:(i=a.getBoundingClientRect()).x||i.left,y:i.y||i.top,width:i.width,height:i.height},a.hasOwnProperty("adWasClipped")&&(t.adWasClipped=!0)):(r&&(s=!0,t={x:0,y:0,width:0,height:0}),o=!1),(o&&function(e){return!K.isDef(r)||!1!==K(e).compareTo(r)}(t)||s)&&(r=t,n.trigger(Q.OMID_GEOMETRY_MEASUREMENT_CHANGED,{adGeometry:t,adFound:o}))};return{start:function(){i(),t.setInterval(i,50)},addAdGeometryMeasurementChangedListener:function(e){n.on(Q.OMID_GEOMETRY_MEASUREMENT_CHANGED,e)}}},Qn=function(e,t,n,r,i){"use strict";var o,a,s,c,u,d="videoGeometryMeasurementChanged",g=!1,l=!1,f=function(){if(!(K.isUndef(a)||K.isUndef(s)||K.isUndef(c))){u=!0;var e=i.calculateGeometricMeasurement(a,s),t=g&&l,n=g&&e.percentageInView>=50,f={windowDimensions:e.windowDimensions,containerDimensions:e.containerDimensions,adDimensions:e.adDimensions,percentageInView:e.percentageInView,detectionMethod:e.detectionMethod,isMeasurable:!0,isObstructed:e.isObstructed,sliceStatus:e.sliceStatus,isVideoPlaying:g,isVideoPlayingInFullscreen:t,isSoundOn:!0},p=e.omidObstructions;K.isDef(p)&&""!==p&&(f.omidObstructions=p),t&&(f.percentageInView=100),t||n?f.viewState=Q.IN_VIEW:(f.viewState=Q.OUT_OF_VIEW,f.outOfViewReason=e.outOfViewReason||Q.OUT_OF_VIEW_REASONS.VIDEO),o=f,r.trigger(d,o)}},p=function(e){a=e,f()},m=function(e){s=e,f()},h=function(e){c=e;var t=e.eventType;"AdEnteredFullscreen"===t?l=!0:"AdExitedFullscreen"===t?l=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(t)?g=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped|AdError".indexOf(t)&&(g=!1),f()};return{start:function(){z.getAggregator().trigger(Se.AddOutputItem,{output:Q.MEDIA_TYPE.VIDEO_CODE},Q.MEDIA_TYPE_CODE,{type:Q.IMPRESSION_EVENT}),e.addAdContainerGeometryMeasurementChangedListener(p),e.start(),t.addAdGeometryMeasurementChangedListener(m),t.start(),n.addVideoPlaybackEventListener(h),n.start()},getStrategyName:function(){return Q.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(e){r.on(d,e)},isMeasurable:function(){return u}}},$n=function(e,t,n){"use strict";var r;var i=function(){var t,i,o,a=e.find(),s=!1;K.isDef(a)?(o=!0,t={x:(i=a.getBoundingClientRect()).left,y:i.top,width:i.width,height:i.height},a.hasOwnProperty("adWasClipped")&&(t.adWasClipped=!0)):(r&&(s=!0,t={x:0,y:0,width:0,height:0}),o=!1),(o&&function(e){return!K.isDef(r)||!1!==K(e).compareTo(r)}(t)||s)&&(r=t,n.trigger(Q.OMID_GEOMETRY_MEASUREMENT_CHANGED,{adGeometry:t,adFound:o}))};return{start:function(){i(),t.setInterval(i,50)},addAdGeometryMeasurementChangedListener:function(e){n.on(Q.OMID_GEOMETRY_MEASUREMENT_CHANGED,e)}}},Zn=function(e,t,n){"use strict";return{accepts:function(){var r=K(e.mraid).isObj();return n&&(r||t)},isImmediate:function(){return!0},supportsAdContainerGeometry:function(){return!1},start:function(){}}},er=function(e,t){"use strict";var n="mraidScreenLocationChanged",r="mraid.js",i=!1,o=function(){var r,i,o;try{r=e.mraid.isViewable()?100:0;var a={x:0,y:0,width:0,height:0};o=100===r?[!0]:[!1],i={windowDimensions:a,adDimensions:a,containerDimensions:a,shouldDelegateToDomBasedViewability:!1,isMeasurable:!0,isObstructed:!1,isHidden:!1,percentageInView:r,detectionMethod:Q.DETECTION_METHODS.MRAID,sliceStatus:o},t.trigger(n,i)}catch(e){}},a=function(){var t=e.mraid;!0,o(),t.addEventListener("viewableChange",o)},s=function(){var t=e.mraid;(function(){var t=e.mraid;return K(t).isObj()&&K.isFunction(t.isViewable)})()&&(i=!0,"loading"===t.getState()?t.addEventListener("ready",(function(){a()})):a())},c=function(){i||s()};return{start:function(){var t;t=!0,(K.isDef(e.mraid)||gt.containsScriptTagWithSrc(r))&&(t=!1),z.getAggregator().trigger(Se.AddOutputItem,{output:K.stringifyTriState(t)},De.MRAIDInjectionStatus,{type:Q.IMPRESSION_EVENT}),t?z.getAggregator().trigger(Se.Exec,r,c):s()},addScreenLocationChangedListener:function(e){t.on(n,e)}}},tr=function(e,t,n){"use strict";var r={};return n&&K(n).map((function(n,i){var o,a;r[n]=(o=i,a=K.noop,t.bootstrapOn("useViewabilityNotification")&&(a=function(){e.skipAsFraudulent()||z.getAggregator().trigger(Se.Notify,o)}),a)})),{getCallbacks:function(){return r}}},nr=function(){"use strict";var t=new cr({tiv:[1e4]}),n=K([Q.IN_VIEW,Q.PARTIAL_VIEW_PLUS]);return{timeInViewThresholds:t,type:Q.DT_CODES.FULLY_INVIEW,rts:{},isInView:function(e){var t=Ot.max(e.fullPercentInView||0,e.percentInView);return n.contains(e.viewState)&&100===t},applies:function(t,n){return t.on("abcAudit")&&925955==e.anId&&n.usesIASFullyInViewCustomMetric()},minUnit:1e3,shouldIncludeSound:!1}},rr=function(t,n){"use strict";var r,i,o,a=t.on("everySecond"),s=n.isVideo(),c=[1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3],u=[1e3,5e3,15e3,3e4,45e3,6e4,9e4],d=[2e3,5e3,15e3],g=function(e,t){var n=t?"viewStateIgnoringRender":"viewState";return-1!==(Q.IN_VIEW+"|"+Q.PARTIAL_VIEW_PLUS).indexOf(e[n])};return a?(r=new cr({tiv:c}),i=c[0]):s?(r=new cr({tiv:d}),i=d[0]):(r=new cr({tiv:u}),i=u[0]),(o={5e3:e._onInViewMRC5,15e3:e._onInViewMRC15})[i]=e._onInViewMRC,{timeInViewThresholds:r,type:Q.DT_CODES.PING,rts:o,isInView:g,isInViewIgnoringRender:function(e){return g(e,!0)},applies:!0,minUnit:1e3,shouldIncludeSound:!1,sendOtherwiseInViewSignal:!0}},ir=function(e,t){"use strict";var n,r=e.on("everySecond"),i=t.isVideo(),o=t.usesIASFullyInViewCustomMetric(),a=function(e){var t=Ot.max(e.fullPercentInView||0,e.percentInView);return-1!==(Q.IN_VIEW+"|"+Q.PARTIAL_VIEW_PLUS).indexOf(e.viewState)&&100===t};return n=new cr(r?{tiv:[1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3]}:i?{tiv:[2e3,5e3,15e3]}:{tiv:[1e3,5e3,15e3]}),z.getAggregator().provide(Te.IsFullyInViewProvider,{isFullyInView:a}),{timeInViewThresholds:n,type:Q.DT_CODES.FULLY_INVIEW,isInView:a,applies:function(){return o},minUnit:1e3,shouldIncludeSound:!1}},or=function(t,n){"use strict";return{timeInViewThresholds:new cr({tiv:[0]}),type:Q.DT_CODES.FULLY_INVIEW,rts:{0:e._onInViewFull},isInView:function(e){var t=Ot.max(e.fullPercentInView||0,e.percentInView);return-1!==(Q.IN_VIEW+"|"+Q.PARTIAL_VIEW_PLUS).indexOf(e.viewState)&&100===t},applies:function(){return n.usesGroupMCustomMetric()},minUnit:1e3,shouldIncludeSound:!1}},ar=function(t,n){"use strict";var r,i,o,a,s,c,u=Ot.getMaxNumber(),d=n.isVideo(),g=t.id,l=t.sound&&"on"===t.sound,f=!(t.soundExcl&&"groupm_native"===t.soundExcl&&e.groupm_native_publisher)&&l,p=function(e,n){if(!e.adDimensions)return!1;var r,i,o,a,s=n?"percentInViewIgnoringRender":"percentInView",c=e.adDimensions.area(),g=1===e.tabHidden,l=Ot.max(e.fullPercentInView||0,e[s]);return r=K(t.thresholds).findFirst((function(e,t){if(i=t.lb||0,o=t.ub||u,c>=i&&c<=o)return!0})),a=!g&&l>=r.piv,function(e){return e.method==Q.DETECTION_METHODS.AD_PLACEHOLDER}(e)&&function(e){return 0===e.tiv}(t)&&(a=!1),d&&(a=a&&e.isVideoPlaying,f&&(a=a&&e.isSoundOn)),a};return r=new cr(t),i=t.qiv,o={},K.isDef(e.rts)&&K.isDef(e.rts[g])&&(s=r&&K.isFunction(r.getTimeThresholds)&&r.getTimeThresholds()[0],c=K.isDef(s)?K.isFunction(s.getTimeInViewForRts)&&s.getTimeInViewForRts():Q.RTS_KEY_FOR_VQ,o[c]=e.rts[g]),a=t.minunit?1e3*t.minunit:1e3,{timeInViewThresholds:r,qivThreshold:i,type:Q.DT_CODES.CUSTOM,rts:o,isInView:p,isInViewIgnoringRender:function(e){return p(e,!0)},metricId:g,minUnit:a,thresholdType:t.thresholdType,shouldIncludeSound:f,sendOtherwiseInViewSignal:!0}},sr=function(e,t,n){"use strict";var r="groupmCM",i=t.isVideo()?"video":"display",o=t.isMobileApp()?"app":"web",a=t.isDeviceTypeGroupMobile()?"mobile":"desktop",s=K(e.customViewability).isArray()&&e.customViewability.length>0,c=n.on("customMetric"),u=n.on(r),d=function(e,t){var n,s,c,d;return n=K(t.mediaTypes).contains(i),s=K(t.distributionChannels).contains(o),c=!K.isDef(t.deviceGroups)||K(t.deviceGroups).contains(a),d=!Vt.contains(t.id,"fiv"),Vt.contains(t.id,r)&&(d=u),d&&n&&s&&c};return{resolve:function(){var t,n=[];return c&&s&&(t=K(e.customViewability).filter(d),K(t).each((function(e,t){n.push(t)}))),n}}},cr=function(e){"use strict";var t=1e3,n=[];if(K(e.tiv).isArray())K(e.tiv).each((function(e,t){n.push(new dr(t))}));else if("string"==typeof e.tiv){var r=e.tiv.split("|");if(2===r.length){var i=new ur;n.push(new gr(i,parseInt(r[1].replace("%")))),n.push(new dr(parseInt(r[0])*t))}else n.push(new dr(parseInt(e.tiv)*t))}else K.isDef(e.tiv)&&n.push(new dr(e.tiv*t));return{getTimeThresholds:function(){return n}}},ur=function(){"use strict";var e=z.getAggregator().request(Te.OmidAdSessionContext).adDuration||-1,t=function(t){if(!n()){var r=K.isDef(t.ad_duration)?t.ad_duration:t.adRemainingTime;(function(e){return void 0!==e&&e>0})(r)&&(e=Math.ceil(r))}},n=function(){return e>0};return z.getAggregator().on({omidAdDuration:t,adVideoStart:t,adDurationChange:t}),{getAdDuration:function(){return e},isVideoDurationResolved:n}},dr=function(e){"use strict";var t,n=0;return e>0&&(n=e/1e3),t=1e3*n,{getTimeInViewInSeconds:function(){return n},getTimeInViewForRts:function(){return t}}},gr=function(e,t){"use strict";var n=0,r=!1,i=function(e){n=0,t>0&&e>0&&(n=Ot.ceil(e*(t/100)))};return i(15),{getTimeInViewInSeconds:function(){return!r&&e.isVideoDurationResolved()&&(r=!0,i(e.getAdDuration())),n},getTimeInViewForRts:function(){return 0}}},lr=function(e,t,n,r){"use strict";var i=r?"isInViewIgnoringRender":"isInView",o=function(r){e[i](r)?(t.mark(),n.doEligibleJobs(t.getTotalTime())):t.stop()};return{start:function(){e.addMeasurementChangedListener(o)}}},fr=function(e,t,n,r){"use strict";var i,o,a,s,c,u,d=function(e,t){return!t&&e},g=function(e,t,n,r){return!!r||!t&&(e||r)&&n},l=function(e){var d,l=0,p=1===e.tabHidden,m=e.isVideoPlaying,h=e.isSoundOn,v=e.isVideoPlayingInFullscreen;K(e.sliceStatus).each((function(e,t){a(t,p,m,v)?i[e].mark():i[e].stop(),s[e]=i[e].getTotalTime()})),f("slcVt",s),r&&(K(e.sliceStatus).each((function(e,t){!function(e,t,n,r,i){return g(e,t,n,r)&&i}(t,p,m,v,h)?o[e].stop():o[e].mark(),c[e]=o[e].getTotalTime()})),f("slcVtVol",c)),u=r&&t&&t.shouldIncludeSound?c:s,d=K(u).findFirst((function(e,t){return l=Math.max(l,t),t<=0})),K.isUndef(d)&&n.doEligibleJobs(l)},f=function(e,t){var n={};n[e]=t,z.getAggregator().trigger(Se.AddOutputItem,{output:n},{minDt:!1})},p=function(e){K.isUndef(e.sliceStatus)||(i||function(e){!i&&e.sliceStatus&&(i=[],o=[],s=[],c=[],K(e.sliceStatus).each((function(e){i.push(new qe(1)),s.push(0),r&&(o.push(new qe(1)),c.push(0))})))}(e),l(e))};return{start:function(){a=r?g:d,e.addMeasurementChangedListener(p)}}},pr=function(e,t,n){"use strict";return{isInView:e.isInView,isInViewIgnoringRender:e.isInViewIgnoringRender,addMeasurementChangedListener:function(e){t.addMeasurementChangedListener(e,n)}}},mr=function(e,t,n,r,i,o,a,s,c,u){"use strict";var d="measurementChanged",g=!1,l=at.isVideo(),f=o.request(Te.MobileApp),p=Ne().applies(n,i),m=n.browserIs(Q.BROWSERS.GECKO)||p,h=at.xDomainIframe&&!m,v=new He(10),I=function(){i.on("viewabilityready")&&!g&&(r.send(Q.DT_CODES.VIEWABILITY_READY),o.trigger(Se.Measurable),g=!0)};o.on(Se.DelayedViewabilityReady,(function(){E(),I()})),o.on(Se.DelayedViewabilityReadyCallOnly,I);var E=function(n){n=n||!1;try{var r,i;v.start(),t.hasMeasurementStrategy()?i=(f.isMobileAppEnvironment()||at.isOmidNative())&&t.supportsAdContainerGeometry()?t.getScreenLocationInfo({},n):t.getScreenLocationInfo(s.collect(),n):(i=s.collect(),f.isMobileAppEnvironment()?(i.viewState=Q.NA,i.method=Q.NA,i.percentInView=Q.NA):h&&(i.viewState=Q.NA,i.percentInView=Q.PIV_NA),l&&u.setVideoSpecificScreenEventFields(i)),r=c.registerLocation(i),n||e.trigger(d,i),v.stop();var g=Ot.round(v.getTime()/v.getCount());return a.addItem({output:g},"lt",{type:Q.DT_CODES.UNLOAD}),r}catch(e){o.trigger(Se.Error,Q.ERROR_CODES.CHECK_SCREEN_LOC)}};return{checkScreenLoc:E,stringifyPingTimes:function(){return i.on("everySecond")?"1-2-3-4-5-6-7-8-9-10-11-12-13-14-15":l?"2-5-15":"1-5-15"},isImmediatelyMeasurable:function(){var e=at.xDomainIframe,r=e&&n.browserIs(Q.BROWSERS.WEBKIT),i=e&&n.browserIs(Q.BROWSERS.MSEDGE),o=!r&&!i&&!(e&&p);return f.isMobileAppEnvironment()?t.isMeasurable():o},requiresDelayedViewabilityEvent:function(){f.isMobileAppEnvironment()&&t.hasMeasurementStrategy()&&t.requiresDelayedViewabilityEvent()},addMeasurementChangedListener:function(t){e.on(d,t)}}},hr={name:"viewabilityLoopLifecycle",dependencies:[Te.Viewability,Te.Features,Te.Context,Te.Browser],creator:function(n,r,i,o){"use strict";var a,s=vr(i),c=[new Er,new Ir(s)],u=function(e){"sessionFinish"===e.type&&(z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.OMIDSessionFinish),z.getAggregator().trigger(Se.AdSessionComplete))},d=function(){var e,t=z.getAggregator().request(Te.MobileApp).isMobileAppEnvironment();z.getAggregator().request(Te.IDS).impressionIsIdentifiable()&&(a=function(e,t){var n,r=t,i=function(t){n||(t&&e(),n=Ot.setInterval(e,r))},o=function(t){n&&(t&&e(),Ot.clearInterval(n),n=null)};return{start:i,stop:o,updateFrequency:function(e,t){r=e,n&&(o(),i(t))}}}(n.checkScreenLoc,s.getPollingFrequency()),(e=K(c).findFirst((function(e,t){return t.applies(o,r,i)?t:void 0})))?e.start(a):a.start(!0),at.isOmid()?z.getAggregator().request(Te.OmidVerificationClient).registerSessionObserver(u,"IAS"):g(t?"MOBILE_APP_TEST_EVENT_AD_SESSION_COMPLETE":"beforeunload"))},g=function(e){st.addEvent(t,e,(function(){z.getAggregator().trigger(Se.AdSessionComplete)}),!1)},l=function(){i.isVideo()&&!i.isOmid()&&f(),z.getAggregator().trigger(Se.Unload),a&&a.stop(),z.getAggregator().trigger(Se.EndAdSession),z.getAggregator().trigger(Se.StopAdTalk)},f=function(){var t=new ct(Q.DT_CODES.VIDEO_EVENTS);z.getAggregator().trigger(Se.SendDt,t.callType,t.enumerator,(function(){var t={id:e.videoId,msg:"unloadComplete",messageType:"misc"};Ot.getWindow().postMessage(JSON.stringify(t),"*")}))};z.getAggregator().once(Se.StartViewabilityLoop,d),z.getAggregator().once(Se.AdSessionComplete,l)},settings:{tier:Q.TIERS.VIEWABILITY}},vr=function(e){"use strict";return{getPollingFrequency:function(){return e.isVideo()?200:100},getOptimizedPollingFrequency:function(){return 1e3}}},Ir=function(e){"use strict";var t,n,r,i,o,a=!0,s=function(c){if(r&&!o&&c<1)return o=!0,void Ot.setTimeout((function(){s(c)}),1e3);i=c<1,!n&&i?(n=!0,t.updateFrequency(e.getOptimizedPollingFrequency(),a)):n&&!i&&(n=!1,t.updateFrequency(e.getPollingFrequency(),a))},c=function(e){s(e.percentInView)};return{applies:function(e,t,n){var i=t.on("viewabilityOptimization");return r=n.usesZeroPivCustomMetric(),i},start:function(e){(t=e).start(a),z.getAggregator().on(Se.IoPivChange,s),z.getAggregator().on(Se.NewScreenEvent,c)}}},Er=function(){"use strict";var e,t,n,r=!0,i=!1,o=function(a){return n&&!i&&a<1?(i=!0,void Ot.setTimeout((function(){o(a)}),1e3)):(a<1?(e||t.stop(r),e=!0):e&&(e=!1,t.start(r)),e)},a=function(){t.start(r)};return{applies:function(e,t,r){n=r.usesZeroPivCustomMetric();var i=Ne();return t.on("viewabilityOptimization")&&i.applies(e,t,r)&&r.isDeviceTypeGroupMobile()},start:function(e){(t=e).start(r),z.getAggregator().on(Se.IoPivChange,o),z.getAggregator().on(Se.NodesAdded,a)}}},Ar=function(r,i,o,a,s,c){"use strict";var u,d,g,l,f,p,m,h,v,I,E=gt.getElementsWindow(i),A=(gt.getElementsDocument(i),z.getAggregator().provide(Te.IframeCalculatorHelper,Hr(E)),kr(i,a)),S=Q.AD_IDENTIFIER+"-"+e.asid,y=!1,T=dt({}),D=at.isDeviceTypeGroupMobile(),O=at.usesGroupMCustomMetricMobilePassThru(),w=function(){return u||(u=A.calcDims(i,a,g),e.autotagSizeSet&&e.adWidth>1&&e.adHeight>1&&(u.set("width",e.adWidth),u.set("height",e.adHeight)),N()?C(u):o===Q.DETECTION_METHODS.AD_PLACEHOLDER&&u.treatAsPlaceholder()),u},N=function(){return o===Q.DETECTION_METHODS.VIDEO&&at.embedded},C=function(e){var t=new dt(i).getRounded();try{e.set("width",t.width),e.set("height",t.height)}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}},b=function(){return!1},R=function(){var e,n=P(),i=A.getClippedDims&&(N()||at.isCeltra());return n?d=g.getPiv():K.isUndef(d)&&(e=!D&&(at.friendly||K.isDef(t.mozInnerScreenX))&&s.on("offscreen"),h=w(),m=new dt(gt.calcWinDims()),p=new dt(e?gt.calcMonDims():{}),v=i?A.getClippedDims():T,d=r.calcPercentInView(h,m,p,v)),d},_=function(){return r.calcInitialViewState(R())},M=function(){return i!==t&&w().isHidden()},P=function(){var e=at.xDomainIframe&&y,t=D&&y&&g.isReady();return at.isPageOnShadowDomWhitelist()||e||t};return function(){var e=Ot.getWindow(),t=Ot.getDoc(),n=i===e,a=t.body,s=z.getAggregator(),c=new Ne,u=s.request(Te.Browser),d=s.request(Te.Features),p=s.request(Te.Context),m=!at.xDomainIframe,h=n&&a?t.body:i;if(I=at.friendlyIframe?e.frameElement:h,st.addEvent(h,"pointerdown",(function(e){z.getAggregator().trigger(Se.AdComponentPointerDown,e)})),st.addEvent(h,"pointerup",(function(e){z.getAggregator().trigger(Se.AdComponentPointerUp,e)})),st.addEvent(h,"click",(function(e){z.getAggregator().trigger(Se.AdComponentClicked,e)})),st.addEvent(window,"blur",(function(e){z.getAggregator().trigger(Se.Blur,e)})),st.addEvent(h,"touchstart",(function(e){z.getAggregator().trigger(Se.AdComponentTouchStart,e)})),st.addEvent(h,"touchend",(function(e){z.getAggregator().trigger(Se.AdComponentTouchEnd,e)})),st.addEvent(h,"mouseover",(function(e){z.getAggregator().trigger(Se.AdComponentMousedOver,e)})),st.addEvent(h,"mouseout",(function(e){z.getAggregator().trigger(Se.AdComponentMousedOut,e)})),c.applies(u,d,p)){if((g=on(i,m)).start(),y=!0,O&&o!==Q.DETECTION_METHODS.AD_PLACEHOLDER){var v=new ei(w().getRounded()),E=new oi,A=new ai(g.getObservedNode(),E);l=new ni(v.getSlices(),A)}}else O&&(f=new ri(r))}(),{mark:function(){gt.setAttributeOf(I,S,"")},cleanup:function(){gt.removeAttributeOf(I,S)},isNode:function(e){return i===e},isHidden:M,isObstructed:b,getDims:w,getPercentInView:R,getLocationState:_,getOnPageViewability:function(){return M()?Q.OUT_OF_VIEW:_()},getDetectionMethod:function(){return o},getContainerDims:function(){return A.allowsOptimization?u:dt(a)},refresh:function(){u=void 0,d=void 0,p=void 0,m=void 0,h=void 0,v=void 0,c&&function(){var e,r;if(!at.isDomless()&&(r=i.parentNode)){for(;i!==t&&r&&r!==n&&!e;)e=r===a,r=r.parentNode;e||(a=i.parentNode)}}()},getAdNode:function(){return i},getSliceStatus:function(){var e;return l&&l.isReadyToMeasure()?e=l.getSliceStatus():at.friendly&&f&&K.isDef(h)&&(e=f.getSliceStatus(h,m,p,v)),e}}},Sr=function(e,t){"use strict";var n,r=[],i=K([]),o=function(){return r[0]&&r[0].getDetectionMethod()===Q.DETECTION_METHODS.AD_PLACEHOLDER},a=function(a,s,c,u){var d,g=o()||0===r.length,l=Ar(e,a,s,c,t,u);o()&&(d=r.shift(),i=K(r),d.cleanup(),n=void 0),r.push(l),i=K(r),g&&l.mark(),g&&s!==Q.DETECTION_METHODS.AD_PLACEHOLDER&&z.getAggregator().trigger(Se.PrimaryAdFound,l)},s=function(){if(n)return n;var e,t=!1,r=0,o=0;return i.each((function(n,i){var a,s=i.getDims();s.hasValidDims()&&(e=i.getPercentInView(),t=e!==Q.NA,a=s.area(),r+=a,o+=e/100*a)})),n={totalArea:r,totalInView:o,hasMeasurement:t}},c=function(e){var t=z.getAggregator().request(Te.AdRenderStatus);return!e&&!t},u=function(e){var t,n=s();return t=n.hasMeasurement?Ot.round(n.totalInView/n.totalArea*100):Q.PIV_NA,(isNaN(t)||c(e))&&(t=0),t},d=function(n){var r=t.bootstrapOn(De.MobOrTab),i=s().totalArea>=Q.MRC_LARGE_AD_SIZE&&t.on("largeAd")&&!r&&!at.isVideo();return e.calcInitialViewState(u(n),i)},g=function(e){var t=-1;return i.each((function(n,r){r.isNode(e)&&(t=n)})),t},l=function(e){return function(){return r[0]&&r[0][e]()}},f=function(e){K(e).each((function(e,t){const n=-1===g(t),r="object"==typeof t&&"IMG"===t.nodeName&&1===t.height&&1===t.width;n&&!r&&a(t,Q.DETECTION_METHODS.MUTATION)}))};return z.getAggregator().on(Se.AdComponentAdded,f),z.getAggregator().on(Se.AdComponentRemoved,(function(e){K(e).each((function(e,t){var n=g(t);n>-1&&r.splice(n,1)}))})),{addNodeToAdComponents:f,getDims:l("getDims"),isObstructed:l("isObstructed"),getDetectionMethod:l("getDetectionMethod"),getContainerDims:l("getContainerDims"),getViewState:d,getViewStateIgnoringRender:function(){return d(!0)},getPercentInView:u,getPercentInViewIgnoringRender:function(){return u(!0)},isHidden:l("isHidden"),isUsingPlaceholder:o,hasAd:function(){return!!r.length},refresh:function(){n=void 0,i.each((function(e,t){t.refresh()}))},addAdComponent:a,clearCollection:function(){i.each((function(e,t){t.cleanup()})),r=[],i=K([]),n=void 0},getOutOfViewReasons:function(e){var t,i=[],o=r[0],a=Q.OUT_OF_VIEW_REASONS;return o&&(t=n||d(),c(e)?i.push(a.RENDER):t!==Q.OUT_OF_VIEW&&t!==Q.PARTIAL_VIEW_MINUS||i.push(a.GEOM),o.isHidden()&&i.push(a.HIDDEN),o.isObstructed()&&i.push(a.OBSTRUCTION)),i},getComponentCount:function(){return r.length},getComponents:function(){return r},getSliceStatus:l("getSliceStatus")}},yr=function(){"use strict";var e,t,n,r=function(e){e?e&&n&&(Ot.execAtEndOfThread((function(){z.getAggregator().trigger(Se.DelayedViewabilityReadyCallOnly)})),n=!1):n=!0};return{detectionMethod:function(){return t&&t.detectionMethod},isApplicable:function(e){return e.isBustedIframe()},find:function(){t=t||br();var n=gt.crossQuerySelector(br().getCssSelector(),!0);return e=n?n.parentNode:e,r(n),n},getAdContainer:function(){return e},allowForAdContainerChange:!0}},Tr=function(t,n){"use strict";var r,i=t||e.contextNode.parentNode,o=gt.findChildWithLargestContent(i,n);return gt.getNodeArea(o)>1&&!o[Q.IAS_DETECTOR]&&(r=o),r},Dr=function(){"use strict";var e=z.getAggregator().request(Te.OmidAdSessionContext);return{usePlaceholder:!0,detectionMethod:Q.DETECTION_METHODS.OMID,isApplicable:function(){return at.isOmidForWeb()&&!at.isOmidNative()},find:function(){return e.element||e.queuedOutputItems.push({code:"oea",value:!0}),e.element},getAdContainer:function(){return e.element&&e.element.parentNode},allowForAdContainerChange:!0}},Or=function(){"use strict";return{detectionMethod:Q.DETECTION_METHODS.IFRAME,find:function(){return t},isApplicable:function(){return at.embedded},getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}},wr=function(){"use strict";var e,t=Ot.getDoc().scripts,n=function(){return e||(e=K(t).findFirst((function(e,t){return Vt.contains(t.src,"servedby.flashtalking")}))),e};return{detectionMethod:Q.DETECTION_METHODS.BUSTED_IFRAME_FLASHTALKING,isApplicable:function(e,t){return t.on("bustediframe")&&e.embedded&&void 0!==n()},getCssSelector:function(){var t,r=function(){var t,r=e||n();return r&&r.src&&(t=r.src.match(/;(\d+);/)[1]),t}(),i="#ftdiv"+r,o="#ftframe"+r;try{t=K([i,o]).findFirst((function(e,t){return gt.crossQuerySelector(t,true)}))}catch(e){}return t}}},Nr=function(){"use strict";var e="_tpi";return{isApplicable:function(t,n){var r;try{r=gt.getFrameId()}catch(e){}return n.on("yieldmo")&&r&&Vt.contains(r,e)&&gt.crossQuerySelector("[data-href*='ads.yieldmo.com']",!0)},getCssSelector:function(){return"[id='"+gt.getFrameId().replace(e,"")+"']"},detectionMethod:Q.DETECTION_METHODS.BUSTED_IFRAME_YIELDMO}},Cr=function(){"use strict";var e,t,n=Ot.getDoc(),r=function(){var t,r,i="ebDiv";return e||(r=(t=gt.querySelector(n,"div[id*='ebDiv']"))&&t.id,e=r&&r.split(i)[1]),e},i=function(){var e=gt.crossQuerySelector("iframe[id*='ebAd'][id$='"+r()+"']",!0);return e&&e.id},o=function(){var e,n;return t||(e=i()?i():(n=gt.crossQuerySelector("iframe[id*='ebBannerIFrame_'][id$='"+r()+"']",!0))&&n.id,t=e&&"#"+e),t};return{detectionMethod:Q.DETECTION_METHODS.BUSTED_IFRAME_SIZMEK,isApplicable:function(e,t){var n,i,a=Ot.getWindow(),s=e.friendlyIframe&&Ot.getWindow().frameElement,c=s&&dt(s).isOneByOne(),u=(n=["bs.serving-sys.com/BurstingPipe/adServer","secure-ds.serving-sys.com/BurstingCachedScripts"],i=Ot.getDoc().scripts,K(i).findFirst((function(e,t){return K(n).findFirst((function(e,n){return Vt.contains(t.src,n)}))}))),d=a.EBG&&a.EBG.ads&&!K(a.EBG.ads).isEmpty();return t.on("sizmek")&&u&&d&&c&&r()&&o()},getCssSelector:o}},br=function(){"use strict";var e,t=z.getAggregator().request(Te.Features);return e||(e=[Cr(),Nr(),wr()]),K(e).findFirst((function(e,n){return n.isApplicable(at,t)}))},Rr=function(){"use strict";var e,t=function(){Ot.execAtEndOfThread((function(){z.getAggregator().trigger(Se.DelayedViewabilityReadyCallOnly)}))};return{usePlaceholder:!1,detectionMethod:Q.DETECTION_METHODS.VENDOR_CELTRA,isApplicable:function(e,t){return t.on("celtra")&&e.isCeltra()},find:function(){var n,r=_r().find();return r&&r.celtra&&r.celtra.loaded&&(n=r.celtra.viewabilityObservee,e=gt.getElementsWindow(n).frameElement||n.parentNode,t()),n},getAdContainer:function(){return e},allowForAdContainerChange:!1}},_r=function(){"use strict";var t,n="celtra-ad-v3",r="celtra-ad-v4",i=function(){var i,o=e.contextNode.parentNode;return o&&(Vt.contains(o.className,n)||Vt.contains(o.className,r))?t=o:(i=o&&(gt.querySelector(o,".celtra-ad-v3")||gt.querySelector(o,".celtra-ad-v4")))&&(t=i),t};return{find:i,isApplicable:function(){return void 0!==i()}}},Mr=function(){"use strict";var t=z.getAggregator().request(Te.MobileApp);return{usePlaceholder:!0,detectionMethod:Q.DETECTION_METHODS.AD_HUNT,isApplicable:t.isMobileAppEnvironment,find:function(){return(e=gt.findChildWithLargestContent(Ot.getDoc().body))&&e.hasValidSizeForMobileApp&&!e[Q.IAS_DETECTOR]?e:void 0;var e},getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}};const Pr=new class{constructor(){this.cachedIsFoundOnPage=!1}getDocument(){let e;try{e=Ot.getDoc()}catch(e){}return e}get isIE11(){const e=this.getDocument();return e&&e.documentMode}hasBrowserSupport(){let e=!1;const t=this.getDocument(),n=!at.isDomless(),r=!(this.isIE11||!t||"function"!=typeof t.body.attachShadow);return n&&r&&(e=!0),e}isFoundOnPage(e){const t=Ot.getDoc(),n=e||t.body;let r=!1;if(this.cachedIsFoundOnPage)r=!0;else if(this.hasBrowserSupport())if(n.shadowRoot)r=!0,this.cachedIsFoundOnPage=!0;else{const e=n.querySelectorAll("*");for(let t=0;t<e.length;t++){const n=e[t];if(n&&n.shadowRoot){r=!0,this.cachedIsFoundOnPage=!0;break}}}else r=!1;return r}querySelector({customRootElement:e,selector:t}){const n=Ot.getDoc(),r=e||n.body;let i;const o=e=>{const n=t&&t.replace("#","");if(!i)for(let t=0;t<e.length;t++){const r=e[t];r&&r.id===n&&(i=r),r&&r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};return r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*")),i}};var Vr=function(){"use strict";var t,n=function(e){var t=K.isFunction(e.contextNode.getAttribute)&&e.contextNode.getAttribute("data-ias-container");return t&&"#"+t||e._cl_adpath},r=function(){var t=z.getAggregator().request(Te.Features),n=e&&4===e.integration;return!t.on("forceKeepGoogleAdNode")||!n};return{getAdSelectorId:n,detectionMethod:Q.DETECTION_METHODS.SPECIFIED_AD,isApplicable:function(){return at.isSpecifiedAd()},find:function(){var i=n(e),o=gt.crossQuerySelector(i),a=at.isPageOnShadowDomWhitelist(),s=function(e){return r()&&gt.getNodeArea(e)<1}(o);return o?(t=gt.getParent(o),s&&(t=o,o=gt.findElementsWithSize(o))):a&&Pr.isFoundOnPage()&&(o=Pr.querySelector({selector:i}),t=gt.getParent(o)),o},getAdContainer:function(){return t},allowForAdContainerChange:!0,shouldValidateAdNode:r}},Fr=function(){"use strict";var t;return{detectionMethod:Q.DETECTION_METHODS.SPECIFIED_AD_COMPOUND,isApplicable:function(){return at.isCompoundAd()},find:function(){var n,r,i=[];return(n=e._cl_adpath,/\[(.*)\]/.exec(n)[1].split(",")).forEach((function(e){(r=gt.crossQuerySelector(e))&&(t=gt.getParent(r),gt.getNodeArea(r)<1&&(t=r,r=gt.findElementsWithSize(r))),i.push(r)})),i},getAdContainer:function(){return t},allowForAdContainerChange:!0}},xr=function(){"use strict";return{usePlaceholder:!0,detectionMethod:Q.DETECTION_METHODS.AD_HUNT,isApplicable:function(){return!0},find:Tr,getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}},Lr=function(){"use strict";return{detectionMethod:Q.DETECTION_METHODS.VIDEO,find:z.getAggregator().request(Te.Video).findAdNode,isApplicable:at.isVideo,getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}},kr=function(e,t){"use strict";var n,r,i=[Gr(),Wr(),Ur()];return r=K(i).findFirst((function(n,r){return r.isApplicable(e,t)})),(n=Br()).isApplicable(t)&&(n.setBaseStrategy(r),r=n),r},Ur=function(){"use strict";return{calcDims:function(e,t){var n,r,i=new dt(e);return gt.isClippable(e,t)&&(n=gt.getClippedDimensions(e,t),r=i.getRounded(),i.set("height",n.height<r.height?n.height:r.height||1),i.set("width",n.width<r.width?n.width:r.width||1)),i},allowsOptimization:!1,isApplicable:function(e){var t=(at.isSpecifiedAd()||at.isBustedIframe())&&gt.nodeIsInWindow(e,Ot.getTop()),n=!gt.elementIsEmbedded(e);return t||n}}},Wr=function(){"use strict";var e=z.getAggregator().request(Te.IframeCalculatorHelper);return{calcDims:e.calcDims,getClippedDims:e.getClippedDims,allowsOptimization:!0,isApplicable:function(e){return!(at.isSpecifiedAd()||at.isBustedIframe())&&gt.elementIsEmbedded(e)}}},Gr=function(){"use strict";var e=z.getAggregator().request(Te.IframeCalculatorHelper);return{calcDims:function(t){var n=e.calcDims(),r=new dt(t).getRounded();return n.set("height",r.height),n.set("width",r.width),n},getClippedDims:e.getClippedDims,allowsOptimization:!1,isApplicable:function(e,t){var n=(at.isSpecifiedAd()||at.isBustedIframe())&&at.embedded&&!gt.nodeIsInWindow(t,Ot.getTop()),r=at.isCeltra()&&gt.elementIsEmbedded(e);return n||r}}},Br=function(){"use strict";var e;return{calcDims:function(t,n,r){var i=K.isDef(r)?r.getAdNodeDimensions():void 0;return e&&K.isUndef(i)&&(i=e.calcDims(t,n)),i},isApplicable:function(e){var t=Ne(),n=z.getAggregator(),r=n.request(Te.Browser),i=n.request(Te.Features),o=n.request(Te.Context),a=at.isPageOnShadowDomWhitelist();return(o.isDeviceTypeGroupMobile()||a)&&t.applies(r,i,o)},allowsOptimization:!1,setBaseStrategy:function(t){e=t}}},Hr=function(e){"use strict";e=e||Ot.getWindow();var t=function(n,r){n=n||e,r=r||{top:0,left:0,width:Ot.getMaxNumber(),height:Ot.getMaxNumber()};for(var i,o=n.parent.frames,a=!1,s=0,c=o.length;s<c;s++)if(o[s]==n){i=o[s],a=!0;break}if(a){var u=gt.getRect(i.frameElement);r.left+=u.left,r.top+=u.top;try{r.width=Ot.min(r.width,u.width),r.height=Ot.min(r.height,u.height)}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.GET_AD_DIMENSIONS)}n!==Ot.getTop()&&t(n.parent,r)}return r},n=function(){var n,r,i,o,a,s,c,u,d,g,l,f={};try{g=Ot.getMaxNumber(),l=Ot.getMaxNumber(),at.friendly?(s=(o=t()).left,c=o.top,g=o.width,l=o.height,u=(a=gt.browserWindowPosition()).scrX+s,d=a.scrY+c):K.isDef(e.mozInnerScreenX)&&(u=Ot.round(e.mozInnerScreenX),d=Ot.round(e.mozInnerScreenY)),f={scrX:u,scrY:d,iFrameClippingWidth:g,iFrameClippingHeight:l},K.isDef(e.innerWidth)?(r=e.innerWidth,i=e.innerHeight):e.frameElement&&K.isDef(e.frameElement.clientWidth)&&(r=e.frameElement.clientWidth,i=e.frameElement.clientHeight),n={width:r,height:i},f.height=n.height,f.width=n.width}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.GET_AD_DIMENSIONS)}return f};return{calcDims:function(){return new dt(n())},getClippedDims:function(){var e=n();return new dt({scrX:e.scrX,scrY:e.scrY,width:e.iFrameClippingWidth,height:e.iFrameClippingHeight})}}},jr=function(){"use strict";return{createInstance:function(e,t,n){return at.isDomless()?new Yr:new qr(e,t,n)}}},qr=function(r,i,o){"use strict";var a,s,c=z.getAggregator().request(Te.Browser),u=e&&e.contextNode&&e.contextNode.parentNode?e.contextNode.parentNode:null,d=Sr(i,o),g=function(){var e,t,n,r;a=a||function(e,t){var n=G&&G.measurementConfig&&G.measurementConfig.tagDeliveryType,r=e.isBustedIframe()&&n===L.Iframe,i=[Fr(),Vr()],o=[Dr(),Mr(),Lr(),yr(),Rr(),Or()],a=i.concat(o);return r?a.unshift(xr()):a.push(xr()),K(a).findFirst((function(n,r){return r.isApplicable(e,t)}))}(at,o),e=a.find(),at.friendlyIframe&&at.isBlockingSizmekTag()&&h(e),!e&&a.usePlaceholder?(l(),p()):e&&(n=K(e).isArray()?e:[e],t=a.getAdContainer(),r=a.allowForAdContainerChange,K(n).each((function(e,n){d.addAdComponent(n,K.resolve(a.detectionMethod),t,r)})))},l=function(){var t;d.hasAd()||(t=gt.getPlaceholderSpan(),u.insertBefore(t,e.contextNode.nextSibling),d.addAdComponent(t,Q.DETECTION_METHODS.AD_PLACEHOLDER,gt.getParent(t)))},f=function(e,t){var n=!1;K(e).each((function(e,t){t.addedNodes&&t.addedNodes.length>0&&(n=!0)})),n&&(z.getAggregator().trigger(Se.NodesAdded),t.disconnect())},p=function(){at.isDeviceTypeGroupMobile()&&c.hasMutationObserver()&&Ot.getMutationObserver(f).observe(u,{childList:!0})},m=function(e,t){var n,r=!1;K(e).each((function(e,t){switch(t.type){case"childList":K(t.addedNodes).each((function(e,t){t.nodeName&&"script"===t.nodeName.toLowerCase()&&(r=!0)}));break;case"attributes":t.target.height*t.target.width<=1&&(r=!0)}})),r&&((n=Cr()).isApplicable(at,o)&&(t.disconnect(),a=yr(),d.clearCollection(),z.getAggregator().trigger(Se.NodesAdded)),setTimeout((function(){n.isApplicable(at,o)&&(t.disconnect(),a=yr(),d.clearCollection(),z.getAggregator().trigger(Se.NodesAdded))}),0))},h=function(e){var t,n;if(!s&&c.hasMutationObserver()&&gt.isWindow(e))try{s=Ot.getMutationObserver(m),t=e&&e.frameElement,n=e&&e.document&&e.document.body,s.observe(t,{attributes:!0,attributeFilter:["height","width"]}),s.observe(n,{childList:!0,subtree:!0})}catch(e){}};return function(e){var r=!1;if(!K.isUndef(t.MutationObserver)){var i=new t.MutationObserver((function(e){Ot.execAtEndOfThread((function(){r&&K(e).each((function(e,t){t.addedNodes.length&&z.getAggregator().trigger(Se.AdComponentAdded,t.addedNodes),t.removedNodes.length&&z.getAggregator().trigger(Se.AdComponentRemoved,t.removedNodes)}))}))})),o=function(){r=!0,Ot.setTimeout((function(){r=!1}),40)};z.getAggregator().on(Se.AdComponentClicked,o),z.getAggregator().on(Se.AdComponentTouchEnd,o),z.getAggregator().on(Se.AdComponentMousedOver,o),z.getAggregator().on(Se.AdComponentClicked,_n.adComponent.trackClick),z.getAggregator().on(Se.AdComponentMousedOver,_n.adComponent.trackMouseOver),z.getAggregator().on(Se.AdComponentMousedOut,_n.adComponent.trackMouseOut),z.getAggregator().on(Se.AdComponentTouchEnd,_n.mobile.trackTouchEnd),z.getAggregator().on(Se.AdComponentTouchStart,_n.mobile.trackTouchStart),z.getAggregator().on(Se.Blur,_n.adComponent.trackBlur),z.getAggregator().on(Se.AdComponentPointerDown,_n.mobile.trackPointerDown),z.getAggregator().on(Se.AdComponentPointerUp,_n.mobile.trackPointerUp),st.addEvent(t,ye.BEFORE_UNLOAD,_n.finalizeAllCollectedData,!1),st.whenReady((function(){try{i.observe(n.body,{attributes:!0,childList:!0,characterData:!0})}catch(t){e.add(Q.ERROR_CODES.AC_WATCHER)}}),Ot.getDoc())}}(r),{find:function(){return d.isUsingPlaceholder()||!d.hasAd()?g():d.refresh(),d},getDetectionMethod:function(){}}},Yr=function(){"use strict";var e=function(){return null};return{find:e,getDetectionMethod:e}},Xr=function(e){"use strict";var t=new Qr,n=new $r,r=Ze().getUserAgent().toLowerCase(),i=function(){var e,t=["FBAN","FBAV","Twitter","Instagram","Flipboard","Snapchat","LinkedInApp","Pinterest"],n=!1;for(e=0;e<t.length;e++)if(r.indexOf(t[e].toLowerCase())>-1){n=!0,z.getAggregator().trigger(Se.AddOutputItem,{output:t[e].substring(0,2)},De.Mapp1ExclusionListMatch,{type:Q.IMPRESSION_EVENT});break}return n};return function(){var r="",o=z.getAggregator().request(Te.OmidAdSessionContext),a=at.isDomless()||o&&"app"===o.environment,s=o&&"web"===o.environment,c=e.bootstrapOn(De.MobOrTab),u=e.bootstrapOn(De.MobAppWebview),d=e.bootstrapOn(De.MobApp),g=c&&u||d;try{a||!s&&g&&!i()?(r=t.detect(),t.hasDetectedMobileApp()&&("s_serv"!==r&&"u_cars"!==r||(Zr[Zr.length-1].detectionRules.userAgent[0]="/"),n.detect(),z.getAggregator().trigger(Se.AddOutputItem,{output:"1"},De.MobileAppEnvironment,{type:Q.IMPRESSION_EVENT}),z.getAggregator().trigger(Se.AddOutputItem,{output:r},De.MatchedMobileAppDetectionRule,{type:Q.IMPRESSION_EVENT}))):s&&z.getAggregator().trigger(Se.AddOutputItem,{output:"a_oweb"},De.MatchedMobileAppDetectionRule,{type:Q.IMPRESSION_EVENT})}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.MOBILE_APP)}}(),{excludedByUserAgent:i,isMobileAppEnvironment:function(){return t.hasDetectedMobileApp()},isSafeToInjectMraid:function(){return n.isSafeToInjectMraid()}}};const Kr={url:{STRINGIFIED_METHOD:"u",detect:function(r){"use strict";var i;if(at.isDomless())return!1;const o=Ot.getWindow().location.href,a=[o];try{a.push(top.location.href)}catch(e){}try{a.push(parent.location.href)}catch(e){}if(at.embedded){try{a.push(parent.document.referrer)}catch(e){}try{a.push(n.referrer)}catch(e){}}try{"jsi"!==(null===(i=G.adTag)||void 0===i?void 0:i.tagType)&&a.push(t.location.href)}catch(e){}try{a.push(e.jsref)}catch(e){}return a.sort((function(e,t){return e.length>t.length?1:e.length<t.length?-1:0})),!!K(r).findFirst((function(e,t){let n,r,i=!1;const s="mobfox"===t?a:[o];for(r=0;r<s.length;r++){n=s[r];const e="string"==typeof t?[t]:t;if(K(e).isArray()&&e)for(let t=0;t<e.length&&(i=n.indexOf(e[t])>-1,!1!==i);t++);if(i)break}return i}))}},userAgent:{STRINGIFIED_METHOD:"a",detect:function(e){"use strict";return!at.isDomless()&&!!K(e).findFirst((function(e,t){let n=!1;const r=Ze().getUserAgent();return"string"==typeof t&&(n=-1!==r.indexOf(t)),n}))}},javascript:{STRINGIFIED_METHOD:"j",detect:function(e){"use strict";return!!K(e).findFirst((function(e,t){let n=!1;return n=K.isDef(Vt.stringToProp(t)),n}))}},scriptSrc:{STRINGIFIED_METHOD:"s",detect:function(e){"use strict";return!at.isDomless()&&!!K(e).findFirst((function(e,t){return gt.containsScriptTagWithSrc((function(e){let n=!1;return n=K.isDef(e)&&-1!==e.indexOf(t),n}))}))}}},Jr=function(){"use strict";const e=function(e,t){let n;const r=Kr[e];return r.detect(t)&&(n=r.STRINGIFIED_METHOD),n};return{process:function(t){return K(t).map(e).join("")}}};var zr=[{STRINGIFIED_APPDET:"omid",detectionRules:{javascript:["omidSupported"]}},{STRINGIFIED_APPDET:"file",detectionRules:{url:["file:"],scriptSrc:["file:"]}},{STRINGIFIED_APPDET:"cont",detectionRules:{url:["content:"]}},{STRINGIFIED_APPDET:"appl",detectionRules:{url:["applewebdata:"]}},{STRINGIFIED_APPDET:"adma",detectionRules:{javascript:["ADMARVEL"]}},{STRINGIFIED_APPDET:"admb",detectionRules:{userAgent:["afma-sdk"],url:["afma-sdk"]}},{STRINGIFIED_APPDET:"imbi",detectionRules:{javascript:["InmobiObj"]}},{STRINGIFIED_APPDET:"mopb",detectionRules:{url:["ads.mopub.com"],javascript:["mopubFinishLoad"]}},{STRINGIFIED_APPDET:"pand",detectionRules:{javascript:["PandoraApp"]}},{STRINGIFIED_APPDET:"sads",detectionRules:{javascript:["mraid.sasSendMessage"]}},{STRINGIFIED_APPDET:"ogry",detectionRules:{url:["ogury.io"],scriptSrc:["OguryFR"]}},{STRINGIFIED_APPDET:"cnvt",detectionRules:{url:["adsx.greystripe.com/openx/www/delivery/ia.php"]}},{STRINGIFIED_APPDET:"mobf",safeToInjectMraid:!0,detectionRules:{url:["mobfox"]}},{STRINGIFIED_APPDET:"innr",detectionRules:{url:["inner-active.mobi"]}},{STRINGIFIED_APPDET:"apnx",detectionRules:{javascript:["anjam"]}},{STRINGIFIED_APPDET:"aers",detectionRules:{userAgent:["AerServ"]}},{STRINGIFIED_APPDET:"tapj",detectionRules:{url:[["tapjoyads","app_id"]]}},{STRINGIFIED_APPDET:"quan",detectionRules:{userAgent:["QuantcastSDK"]}},{STRINGIFIED_APPDET:"cars",safeToInjectMraid:!0,detectionRules:{url:[["carsales",".android"],["carsales",".ios"]]}},{STRINGIFIED_APPDET:"mrai",detectionRules:{javascript:["mraid"]}}],Qr=function(){"use strict";var t,n=function(e,t){var n,r=Jr().process(t.detectionRules);return r&&(n=r+"_"+t.STRINGIFIED_APPDET),n};return{detect:function(){return""===(t=(t=K(zr).map(n)).length>0?t[0]:"")&&e.hasOwnProperty("serverSideAppDetection")&&0!==e.serverSideAppDetection.length&&(t="s_serv"),t},hasDetectedMobileApp:function(){return void 0!==t&&""!==t}}},$r=function(){"use strict";var e=[],t=[],n=function(t,n){var r,i=Jr().process(n.detectionRules);return i&&(e.push(n.STRINGIFIED_SDK+"*"+i),r=n),r};return{detect:function(){return(t=K(Zr).map(n)).length>0&&z.getAggregator().trigger(Se.AddOutputItem,{output:function(){return e.join(".")}},De.AppSDKsDetected,{type:Q.IMPRESSION_EVENT}),t.length>0},isSafeToInjectMraid:function(){return 1===t.length&&K.isDef(t[0].safeToInjectMraid)&&t[0].safeToInjectMraid}}},Zr=[{STRINGIFIED_SDK:"adma",safeToInjectMraid:!0,detectionRules:{javascript:["ADMARVEL"],url:["AdMarvel"]}},{STRINGIFIED_SDK:"admb",safeToInjectMraid:!0,detectionRules:{userAgent:["afma-sdk"],url:["afma-sdk"]}},{STRINGIFIED_SDK:"imbi",safeToInjectMraid:!0,detectionRules:{javascript:["InmobiObj"]}},{STRINGIFIED_SDK:"mmed",detectionRules:{url:["mmsdk"],scriptSrc:["mmsyscache"]}},{STRINGIFIED_SDK:"mopb",safeToInjectMraid:!0,detectionRules:{javascript:["mopubFinishLoad"],url:["ads.mopub.com"]}},{STRINGIFIED_SDK:"pand",detectionRules:{javascript:["PandoraApp"]}},{STRINGIFIED_SDK:"ambe",safeToInjectMraid:!0,detectionRules:{url:["amobee"]}},{STRINGIFIED_SDK:"smat",safeToInjectMraid:!0,detectionRules:{javascript:["smaato_bridge"]}},{STRINGIFIED_SDK:"afrm",safeToInjectMraid:!0,detectionRules:{javascript:["Adform"]}},{STRINGIFIED_SDK:"vrve",safeToInjectMraid:!0,detectionRules:{javascript:["vrvsdk"]}},{STRINGIFIED_SDK:"sads",detectionRules:{javascript:["mraid.sasSendMessage"],url:["smartadserver.com"]}},{STRINGIFIED_SDK:"ogry",safeToInjectMraid:!0,detectionRules:{url:["ogury.io"],scriptSrc:["OguryFR"]}},{STRINGIFIED_SDK:"cnvt",detectionRules:{url:["adsx.greystripe.com/openx/www/delivery/ia.php"]}},{STRINGIFIED_SDK:"mobf",safeToInjectMraid:!0,detectionRules:{url:["mobfox"]}},{STRINGIFIED_SDK:"innr",detectionRules:{url:["inner-active.mobi"]}},{STRINGIFIED_SDK:"apnx",detectionRules:{javascript:["anjam"]}},{STRINGIFIED_SDK:"aers",safeToInjectMraid:!0,detectionRules:{userAgent:["AerServ"]}},{STRINGIFIED_SDK:"tapj",detectionRules:{url:[["tapjoyads","app_id"]]}},{STRINGIFIED_SDK:"quan",detectionRules:{userAgent:["QuantcastSDK"]}},{STRINGIFIED_SDK:"mrad",safeToInjectMraid:!0,detectionRules:{userAgent:["unmatchabledetectionstring"]}}],ei=function(e){"use strict";var t=[],n=function(e,t,n){return new ii(0,e,n,n+t)};return function(){if(e.height<10)t.push({geometry:new ii(0,e.width,0,e.height),percentageInViewContribution:100,isInView:!1});else for(var r,i=Math.floor(e.height),o=i%10,a=(i-o)/10,s=0;s<10;s++){var c=s<o?a+1:a,u={geometry:n(e.width,c,r||0),percentageInViewContribution:10,isInView:!1};t.push(u),r=u.geometry.value().bottomY}}(),{getSlices:function(){return t}}},ti=function(){"use strict";var e,t=Q.VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID.length,n=Q.VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID,r=[];return{getConfig:function(i){if(e)return e;i.height<t&&(t=1,n=[100]);for(var o=0;o<t;o++)r.push(!1);return e={numberOfSlices:t,defaultSliceArray:r,percentInViewSliceArray:n}}}},ni=function(e,t){"use strict";var n={mbrd:!1,mbvs:[],mbe:"n",mbv:9,mbs:[],mbm:1,mbivs:[]},r=function(e,t){var n,r=0,i=function(e,t){var n=[],r=e.geometry.value();return K(t).each((function(t,i){if(e.geometry.doesIntersect(i)){var o=i.value(),a=Math.max(r.leftX,o.leftX),s=Math.min(r.rightX,o.rightX),c=Math.max(r.topY,o.topY),u=Math.min(r.bottomY,o.bottomY);n.push(new ii(a,s,c,u))}})),n}(e,t);return K(i).each((function(e,t){n=t.value(),r+=n.area})),r},i=function(t){K(e).each((function(e,n){n.isInView=r(n,t)>=n.geometry.value().area}))};return t.addListener(i),{getPercentInView:function(){var t=function(){var t=0;return n.mbs=[],K(e).each((function(e,r){n.mbs.push(r.isInView),r.isInView&&(t+=r.percentageInViewContribution)})),t}();return n.mbrd=1,t!==n.mbp&&n.mbivs.push([at.getTagTime(),t]),n.mbp=t,t},removePixels:function(){void 0!==t&&t.stop()},getPixelStateForDebug:function(){return n.mbm=1,n.mbpr=[],n.mbir=[],K(e).each((function(e,t){n.mbpr.push(Q.NA),n.mbir.push(!1)})),n},isReadyToMeasure:function(){return!0},getSliceStatus:function(){var t=[];return K(e).each((function(e,n){t.push(n.isInView)})),t}}},ri=function(e){"use strict";var t=ti();return{getSliceStatus:function(n,r,i,o){var a,s=[],c=n.getRounded(),u=c.height,d=c.scrY,g=new dt({scrX:c.scrX,width:c.width}),l=t.getConfig(c).numberOfSlices;g.set("height",Ot.floor(u/l));for(var f=0;f<l;f++)g.set("scrY",Ot.ceil(d+u/l*f)),a=100===e.calcPercentInView(g,r,i,o),s.push(a);return s}}},ii=function(e,t,n,r){"use strict";var i=Math.ceil(e),o=Math.ceil(t),a=Math.ceil(n),s=Math.ceil(r),c=o-i,u=s-a,d=c*u,g=function(){return{leftX:i,rightX:o,topY:a,bottomY:s,width:c,height:u,area:d}};return{value:g,doesIntersect:function(e){var t=g(),n=e.value();return n.leftX<t.rightX&&n.rightX>t.leftX&&n.topY<t.bottomY&&n.bottomY>t.topY}}},oi=function(){"use strict";return{createInstance:function(e,t){return new IntersectionObserver(e,t)}}},ai=function(e,t){"use strict";var n,r=[],i=[],o=function(e,t){-1===e.indexOf(t)&&e.push(t)},a=function(e){var t,n=function(){var e=[];return K(i).each((function(t,n){var r=n.value();o(e,r.topY),o(e,r.bottomY)})),e=e.sort((function(e,t){return e-t}))}();i=[];for(var r=0;n.length>r&&(t=r,n.length!==t+1);r++){var a=n[r],s=n[r+1];i.push(new ii(0,e,a,s))}},s=function(e,t){i.push(e),a(t),K(r).each((function(e,t){t(i)}))},c=function(){n.unobserve(e),n.disconnect()};return(n=t.createInstance((function(e){var t,n,r,i,o,a,u=e.pop(),d=u.boundingClientRect,g=d.width,l=u.intersectionRatio,f=u.intersectionRect,p=(t=d,r=(n=f).left-t.left,i=r+n.width,o=n.top-t.top,a=o+n.height,new ii(r,i,o,a));s(p,g),1===l&&c()}),{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})).observe(e),{addListener:function(e){r.push(e)}}},si=function(){"use strict";var e=function(e){var t=!1;return ci.forEach((function(n){e===n.PARTNER_NAME&&(t=!0)})),t},t=function(t,r){return t.omidNativeInfo&&t.omidNativeInfo.partnerName&&e(t.omidNativeInfo.partnerName)?r&&n(r.onScreenContainerGeometry):r&&n(r.onScreenGeometry)},n=function(e){return e&&e.hasOwnProperty("x")&&e.hasOwnProperty("y")&&e.hasOwnProperty("width")&&e.hasOwnProperty("height")};return{detect:e,checkAdViewGeometryBasedOnWhitelist:t,checkGeometryObject:n,checkForViewAttachmentBasedOnAdSessionType:function(e,n){if(n&&n.reasons&&n.reasons.indexOf("notFound")<0&&e.adSessionType&&(e.adSessionType.indexOf("native")>-1||e.adSessionType.indexOf("javascript")>-1||e.adSessionType.indexOf("html")>-1&&t(e,n)))return!0}}},ci=[{PARTNER_NAME:"IAB"},{PARTNER_NAME:"IAS"},{PARTNER_NAME:"com.integralads.omid.iassdk"}],ui=function(){"use strict";return{listenForResult:function(){z.getAggregator().on(Se.VideoBlockResult,(function(t){var n=z.getAggregator().request(Te.AdNode),r=!1,i="blockAd"+e.videoId;"failed"===t.action&&(r=!0),n&&K.isDef(n.blockAd)?n.blockAd(r):n&&K.isDef(n[i])&&n[i](r)}))}}};const di=function(){"use strict";const e=[];return{registerEvent:(t,n)=>{const r=function(e,t){var n;const r=z.getAggregator().request(Te.VideoTranslator).translate(e.messageType),i=(e=>{const t=e.eventData||{},n=K({}).mixin(t);return n.ext_passthrough&&delete n.ext_passthrough,n})(e),o=(e=>{let t;const n=e.eventData&&e.eventData.ext_passthrough,r=(e,t)=>{const n={};return n[`x_${e}`]=t,n};return n&&(t=K(n).mapToObj(r)),t})(e),a=null===(n=G.measurementConfig)||void 0===n?void 0:n.birthdate,s={t:e.time-a,tp:r,sl:t};K(s).mixin(i),K(s).mixin(o);const c=K({indicatesPlaying:()=>-1!=="showAd|adImpression|adVideoStart|resumeAd".indexOf(r),indicatesNotPlaying:()=>-1!=="adVideoComplete|adStopped|stopAd|pauseAd".indexOf(r),indicatesFullscreen:()=>{const e=Ot.getWindow();return!("resizeAd"!==r&&"initAd"!==r||"fullscreen"!==i.viewMode&&i.width!==e.screen.width)},indicatesNormalSize:()=>"resizeAd"===r&&"normal"===i.viewMode,indicatesQuartile:()=>-1!=="adVideoFirstQuartile|adVideoMidpoint|adVideoThirdQuartile|adVideoComplete".indexOf(r),indicatesCompletion:()=>-1!=="adStopped|adVideoComplete|adSkipped|adError".indexOf(r),getVolume:e=>e.getVolumeFromContext(i),updateScreenLoc:e=>{s.sl=e,c.sl=e},trigger:()=>{"adImpression"===r?z.getAggregator().persistentTrigger(r,i,o):z.getAggregator().trigger(r,i,o)},toString:()=>"{"+K(s).toParams()+"}"}).mixin(s);return c}(t,n);return e.push(r),r},toString:()=>"{"+K({vEventCount:e.length,vEvents:"["+e.join(",")+"]"}).toParams()+"}",isEmpty:()=>0===e.length}};var gi=function(){"use strict";var e,t,n,r=function(r){n=K.isDef(r)?0===r:n,t&&n&&e.addState({isFullyInView:function(){return!1}})},i=function(){e&&e.hasAlwaysBeen(!0)&&z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.QUARTILE_FULLY_INVIEW)},o=function(){t=!0,r()},a=function(e){var t=(new fi).getVolumeFromContext(e);r(t)};return{isApplicable:function(e){return e.usesGroupMCustomMetric()},start:function(n){z.getAggregator().on({adVideoStart:o,adImpression:o,volumeChanged:a,adVideoMidpoint:i}),e=n.createViewabilityTracker("mpt",(function(e){var n=z.getAggregator().request(Te.IsFullyInViewProvider);return!t||n&&n.isFullyInView(e)}))}}},li=function(){"use strict";var e={AdPaused:"pauseAd",AdVolumeChange:"volumeChanged",AdPlaying:"resumeAd"};return{translate:function(t){var n=t.charAt(0).toLowerCase()+t.slice(1);return t in e&&(n=e[t]),n}}};const fi=function(){"use strict";return{getVolumeFromContext:e=>{let t,n=-1;return K.isDef(e)&&(K.isDef(e.volume)?n=e.volume:K.isDef(e.adVolume)&&(n=e.adVolume)),-1!==n&&(t=n),t}}};var pi=function(t,n,r){"use strict";var i,o,a,s="IASid"+t,c="getIasVidBridgeVersion"+t,u=[],d=Q.OUT_OF_VIEW,g=!1,l=!1,f=!1,p=!0,m=new di,h=gi(),v=new ui,I=new fi,E=new yt,A=function(e){var t;return g=!0,t=S(e),u.push(t),a&&O(),t},S=function(e){var n,i,o={};try{o=JSON.parse(unescape(e&&e.data?e.data:e))}catch(e){o={}}return o.id==t&&((n=m.registerEvent(o,r.getCurrentLoc())).indicatesPlaying()?(l=!0,d=!!f&&Q.IN_VIEW):n.indicatesNotPlaying()?(l=!1,d=Q.OUT_OF_VIEW):n.indicatesFullscreen()?(f=!0,d=l?Q.IN_VIEW:Q.OUT_OF_VIEW):n.indicatesNormalSize()&&(f=!1,d=!l&&Q.OUT_OF_VIEW),(i=parseFloat(n.getVolume(I)))>0?p=!0:0===i&&(p=!1)),n},y=function(){i||(K(["*[data-integralas-vid-"+t+"]",".integral-vid-"+t,"ias-ad","object","embed"]).findFirst((function(e,t){var n=Ot.getDoc().querySelectorAll(t);return i=function(e){return K(K(e).toArray()).findFirst((function(e,t){return K.isFunction(t[s])}))}(n),i})),!i&&n.on("novidnodeerr")&&Math.random()<.1&&__IntegralASDiagnosticCall("novidnode",{message:"node not found*10"},e));return i},T=function(){var n=y();return n&&!g&&function(n){var r,i,o=Tt().wrapToGlobal(A);try{i=n[c]||n.getIasVidBridgeVersion,r=K.isFunction(i)&&"2"===i.call(n)?unescape(n[s].call(n,t,o)):unescape(n[s].call(n,t)),g=!0,function(e){K.isStr(e)&&(z.getAggregator().provide(Te.VideoChannel,(function(){return e})),z.getAggregator().trigger(Se.AddOutputItem,{output:e},De.VideoChannel,{type:Q.IMPRESSION_EVENT}))}(r||"n")}catch(t){__IntegralASDiagnosticCall("handshakefailure",t,e)}}(n),n},D=function(e){var t=I.getVolumeFromContext(e);p=!!K.isDef(t)&&t>0},O=function(){E.init(),K(u).each((function(e,t){t&&(K.isUndef(t.sl)&&t.updateScreenLoc(r.getCurrentLoc()),t.trigger(),t.indicatesCompletion()&&z.getAggregator().trigger(Se.AdSessionComplete),t.indicatesQuartile()&&(t.tp!==Se.AdVideoComplete&&z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.VIDEO_EVENTS),z.getAggregator().trigger(Se.VideoQuartileEvent,t)))})),u=[],a=!0},w=function(){return f&&l};return st.addEvent(Ot.getWindow(),"message",(function(e){A(e)})),z.getAggregator().on({volumeChanged:D}),z.getAggregator().provide({videoEventsString:m,videoVersion:function(){var e,t=T();try{e=t.getVersion()}catch(t){e=-1,z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.NO_VIDEO_AD_INTERFACE)}return e},videoTranslator:function(){return o=o||new li},adNode:T}),T(),v.listenForResult(),h.isApplicable(at)&&h.start(r),{findAdNode:T,getViewStateOverride:function(){return d},isHandshakeComplete:function(){return g},triggerInitializationEvents:O,setVideoSpecificScreenEventFields:function(e){var t=e.viewState===Q.NA;if(e.isVideoPlaying=!0,e.isSoundOn=p,e.isVideoPlayingInFullscreen=!1,d){if(d===Q.OUT_OF_VIEW){var n=e.reason?e.reason.split("."):[];n[n.length]=Q.OUT_OF_VIEW_REASONS.VIDEO,e.reason=n.join(".")}e.viewState=t?e.viewState:d,e.isVideoPlaying=d===Q.IN_VIEW}w()&&(e.percentInView=100,e.isVideoPlayingInFullscreen=!0)}}},mi=function(){"use strict";var e=Q.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.AS.COUNT;return new Ai(Q.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.AS.TYPE,e)},hi=function(){"use strict";var e,t,n={},r=0,i=function(n){(n||e)&&(r+=5,t.onTick(r,(function(){e?i():z.getAggregator().trigger(Se.SendDt,Q.DT_CODES.PERFORMANCE)})),e=!1)},o=function(){t=new je,r=0,i(!0),t.start()},a=function(r,i,a,s){var c=n[r];s?(K.isDef(c[i])||(c[i]=[]),c[i].push(a)):c[i]=a,t&&t.isActive()||o(),e=!0},s=function(n,r,i){z.getAggregator().trigger(Se.AddOutputItem,{output:r},n,i),t&&t.isActive()||o(),e=!0},c=function(t){K(n).each((function(r,i){!function(t,r){var i=n[t],o={type:r,oneTime:!0,minDt:!0,asION:!0};K(i).isEmpty()||(z.getAggregator().trigger(Se.AddOutputItem,{output:i},t,o),n[t]={}),e=!1}(r,t)}))};return{start:function(){z.getAggregator().on(Se.PreSendDt,(function(e){c(e),t&&t.kill()})),z.getAggregator().on(Se.AddThrottledProp,a),z.getAggregator().on(Se.AddThrottledOutputItem,s)},addFieldTypes:function(e){K(e).each((function(e,t){n[t]={}}))}}},vi=function(){"use strict";var e={},t=function(t){return!e[t]&&(e[t]=new He(1,G.measurementConfig.birthdate)),e[t]},n=function(e){t(e).start()},r=function(e){var n=t(e);n.stop(),z.getAggregator().trigger(Se.AddThrottledProp,"im",e,n.getTime())};return{start:function(){z.getAggregator().on({markTime:n,measureTime:r})},isApplicable:function(e){return e.on("pIntervals")}}},Ii=function(){"use strict";var e=Q.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.JS.COUNT;return new Ai(Q.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.JS.TYPE,e)},Ei=function(e){"use strict";var t={},n=e instanceof Array&&e.length>0;return n&&(K(e).each((function(e,n){var r;t[(r=n).getType()]=r})),z.getAggregator().on(Se.PerfCheckpoint,(function(e){var n=t[e.type];if(n)try{n.addPoint(e),n.isFinished()&&z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.IM,"pci",n.toString())}catch(e){}}))),z.getAggregator().provide(Te.PerfActive,(function(){return n})),{isActive:n}},Ai=function(e,t){"use strict";var n=0,r=[],i=function(){var e,t={};return r.sort((function(e,t){return e.timestamp-t.timestamp})),K(r).each((function(r,i){e&&(t[i.code]=i.timestamp-e),i.timestamp,r===n&&(e=i.timestamp)})),t};return{addPoint:function(e){r.push(e)},toString:function(){return K(i()).toION()},getType:function(){return e},setBaseOrdinal:function(e){n=e},isFinished:function(){return r.length===t}}},Si=function(){"use strict";function e(){}return e.build=function(){var e,t=[];t.push((e=Q.PERF_TIMELINE_TRACKER_CONFIG.RENDER.COUNT,new Ai(Q.PERF_TIMELINE_TRACKER_CONFIG.RENDER.TYPE,e)));var n,r=(n=z.getAggregator().request(Te.VideoChannel))?{jv3:yi,av3:yi,jvw:Ii,avw:mi}[n]:void 0;return r&&t.push(r()),t},e}(),yi=function(){"use strict";var e=Q.PERF_TIMELINE_TRACKER_CONFIG.VANS.COUNT;return new Ai(Q.PERF_TIMELINE_TRACKER_CONFIG.VANS.TYPE,e)},Ti={IDS:{BLOCK_TIME:"pBlk",ON_LOAD:"pLoad",IN_BROWSER_DELAY:"pWait"},recordBlockingTime:function(){"use strict";z.getAggregator().trigger(Se.MeasureTime,Ti.IDS.BLOCK_TIME)},setupOnLoadTracking:function(){"use strict";st.addEvent(t,"load",(function(){z.getAggregator().trigger(Se.MeasureTime,Ti.IDS.ON_LOAD)}))},setupBrowserDelayTracking:function(){"use strict";var e=new je;e.onTick({4:function(){z.getAggregator().trigger(Se.MarkTime,Ti.IDS.IN_BROWSER_DELAY)},5:function(){z.getAggregator().trigger(Se.MeasureTime,Ti.IDS.IN_BROWSER_DELAY)}}),e.start()}},Di={name:"postMessageDetector",dependencies:[],creator:function(){"use strict";var t,n=!1,r="pmdetector"+e.asid,i=function(e){(e&&e.data)===r&&(n=!0)};t=Ot.getWindow(),st.addEvent(t,"message",i),t.postMessage(r,"*"),Ot.execAtEndOfThread((function(){z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.IM,"pom",K.stringifyTriState(n)),st.removeEvent(t,"message",i)}))},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return e.on("pmdetect")&&t.hasPostMessage()}}},Oi={name:"safeFrameDetector",dependencies:[],creator:function(){"use strict";z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.IM,De.SafeFrame,K.stringifyTriState(at.isSafeFrame()))},settings:{tier:Q.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return e.on("sfdetect")}}},wi=function(t,n,r,i,o,a,s){"use strict";var c="adsafe_jsinfo=",u=function(e){return"&"===e.slice(-1)?"":"&"},d=function(d){var g=i.baseUrl,l=G.measurementConfig.spImpMaxLength;if(at.integratedBlockingApplies(g)&&(g=function(t){var n=z.getAggregator().request(Te.MobileApp),r=n&&n.isMobileAppEnvironment&&n.isMobileAppEnvironment(),i=t+"adContainerId="+e.contextNode.getAttribute("data-ias-container")+"&cbFunctionName="+e.contextNode.getAttribute(Q.CALLBACK_IDENTIFIER.toString());i=r?i.replace("monitoring","blocking"):i.replace("skeleton.js",e.integration+".js");var o=e.protocol+":"+e.staticServer+e.integration+"a.js",a=e.protocol+":"+e.staticServer+e.integration+".js";return i+"&true_pb="+encodeURIComponent(e.passback)+(r?"&redirectUrl="+encodeURIComponent(a):"")+(r?"&passback=":"&adsafe_pb=")+encodeURIComponent(o)+"&"}(g)),g=g.replace(Q.UNIQUE_ID_TOKEN,e.asid),g+=function(e,r,i){var o,a="";try{(o=r-e-G.measurementConfig.spImpJsInfoMinLength)>0&&(a+=_i(i,o,c.length,n.on("partialUrls")).join("&"))}catch(e){t.add(Q.ERROR_CODES.IMPRESSION_URLS)}return a}(g.length,l,d),g+=u(g),g+=function(e,i){var u="";try{u+=Ci(i-e,c,t,n,r,o,a,s,i)}catch(e){t.add(Q.ERROR_CODES.JSINFO),u+="adsafe_jsinfo=e:"+t.toString()}return u}(g.length,l),i.macroUrl&&(g+=u(g),g+=i.macroUrl),e.staticFwjsMacros&&(g+=u(g),g+=e.staticFwjsMacros),at.isAMZN()&&-1===g.indexOf("gdpr_consent")){var f=z.getAggregator().request(Te.TCString);K.isDef(f)&&(g+=u(g),g+="gdpr_consent="+f)}return g};return{send:function(t){try{var n=d(t);e.impUrl=n,i.sendImpression(n),z.getAggregator().trigger(Se.ImpressionSent),function(){if(e.rts&&e.rts.tracked){var t=e.rts.tracked;z.getAggregator().trigger(Se.Notify,t)}}()}catch(t){__IntegralASDiagnosticCall("impsend",t,e)}}}},Ni=function(){try{var n,r,i,o,a,s,c=e.perf;z.getAggregator().trigger(Se.AddOutputItem,{output:at.getTagTime()},De.StaticImpressionRFWCallResponseTime);c.markEnd("ec"),n=c.getEnd("ec"),r=t.performance&&"function"==typeof t.performance.getEntriesByName&&t.performance.getEntriesByName(e.impUrl)[0],i=function(t){var n=c.getStart("bd"),r=c.getStart(ue);return e.jsDoSplit?Math.round(t-n):Math.round(t-r)}(n),o=function(e){return Math.round(e&&e.duration)}(r),a=function(e,t){var n=t&&t.responseEnd;return Math.round(e-n)}(n,r),K.isNumeric(i)&&K.isNumeric(o)&&K.isNumeric(a)&&(s={ttecl:i,ecd:o,tsecr:a},z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.IM,"imprf",K(s).toION()))}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.IMPRESSION_PERFORMANCE)}};const Ci=(t,n,r,i,o,a,s,c,u)=>{"use strict";const d=e=>{let t="";return e&&(t=`,${e}`),t},g=(e,n)=>e.length+n.length+5<=t;return(t=>{let r="";const a=Z.TcfApi,s=ee.TcfApiLocator,c=!at.isDomless()&&(({apiFunctionName:e,apiFrameLocatorName:t})=>{let n=!1;try{n=!!le({apiFunctionName:e,apiFrameLocatorName:t})}catch(e){}return n})({apiFunctionName:a,apiFrameLocatorName:s});return c&&i.on("consentDetection")?r+=(e=>{let t=n;const{primary:r}=e,i=r.find((e=>e.includes("id:")));return t+=d(`${De.CmpApi}:1`),t+=d(i),o.impressionIsIdentifiable(!0),t})(t):r+=(t=>{const r=K.encodeInvalidUrlChars(t.primary.join(","),e.encodeInvalidUrlChars);let i=0,a=n;return g(a,r)?(a+=d(r),o.impressionIsIdentifiable(!0),K(t.secondary).each(((t,n)=>{const r=K.encodeInvalidUrlChars(n,e.encodeInvalidUrlChars);g(a,r)?a+=d(r):i+=1}))):i+=t.primary.length,a+=",ov:"+i})(t),r})((()=>{let e,t,n;return n=(()=>{const e={viewState:Q.NA};let t,n=e;return at.isDomless()?n=c.checkScreenLoc(!0)||e:i.on("impFailSafe")?Ot.getDoc().body&&(t=c.checkScreenLoc(!0),n=t||e):K.isDef(Ot.getDoc().body)&&(n=c.checkScreenLoc(!0)),c.isImmediatelyMeasurable()||c.requiresDelayedViewabilityEvent(),n})(),e=bi(n.viewState,o,i),t=Ri(n,r,i,o,a,s,c,u),z.getAggregator().trigger(Se.EligibleRender),{primary:e,secondary:t}})())};var bi=function(t,n,r){"use strict";var i=z.getAggregator().request(Te.Page);return["id:"+e.asid,"c:"+n.getCacheBustId(),"sl:"+t,"em:"+at.embedded,"fr:"+at.friendly,"thd:"+K.stringifyTriState(i.supportsVisAPI())]},Ri=function(t,n,r,i,o,a,s,c){"use strict";const{measurementConfig:u,fencedFrame:d}=G;var g,l="NotFound",f=[];f.push("mn:"+e.mn),f.push("rg:"+e.region),e.iasProxyPartnerDomain&&f.push("ipp:"+encodeURIComponent(e.iasProxyPartnerDomain)),f.push("pt:"+function(){var e=s.stringifyPingTimes();return t.viewState!==Q.NA&&(e+=t.details),e}()),f.push("mu:"+c),f.push(K(a.params()).toParams()),r.on("mrcAudit")&&!at.isDomless()&&f.push("dvs:"+Ot.getDoc().visibilityState),o.iterate((function(e,t){var n=!t.props||K.isUndef(t.props.type),r=!t.props||t.props.type===Q.IMPRESSION_EVENT;(n||r)&&f.push(e+":"+t.output())})),n.toString()&&f.push("e:"+n.toString()),f.push(r.output()),f.push("tt:"+G.adTag.tagType),f.push("et:"+(Ot.now()-u.birthdate)),e.perf.mark("si"),r.on("swapids")?f.push("oid:"+e.oid):f.push("uid:"+i.unq),f.push("v:19.8.557"),f.push("sp:"+(e.isSplitMode?1:0)),f.push("st:"+(u.staticMode?1:0)),f.push("fwm:"+("true"===e.fwMonitoring?1:0)),r.on("resolution")&&(f.push("wr:"+K(gt.windowSize()).toArray().join(".")),f.push("sr:"+K(gt.screenSize()).toArray().join(".")));var p=/iasProxyPartnerId=([\d]+)/g.exec(e.scriptUrl),m=p&&p[1],h=e.proxyPartnerId||m||"";return h&&f.push("ppi:"+h),g=function(){var t,n="ias_xpc",r=String(e.scriptUrl).toLowerCase(),i=r.indexOf(n);if(i>-1){var o=r.substring(i+n.length+1),a=o.indexOf("&");t=a>-1?o.substring(0,a):o}else t=l;return t||""}(),l!==g&&f.push("x_xpc:"+g),d&&d.isFencedFrame&&f.push(`${De.FencedFrame}:1`),f},_i=function(e,t,n,r){"use strict";var i,o,a="adsafe_url=",s="&adsafe_type=",c=[],u=function(e){return-1!==e.key.indexOf("q")||-1!==e.key.indexOf("g")},d=function(e){var i,o,u,d=e.val,g=e.key,l=(o=g,u=a.length+s.length+c.join("&").length+o.length+n,t-u);r&&l<d.length&&l>0&&(d=d.substr(0,l)),(d.length||""===e.val||""===e.type)&&function(e){var n=c.join("&").length;return e.length+n<=t}(i=a+d+s+g)&&c.push(i)};return e&&e.length&&(i=K(e).map((function(e,t){if(u(t))return t})),o=K(e).map((function(e,t){if(!u(t))return t})),K(i.concat(o)).each((function(e,t){d(t)}))),c},Mi=function(){"use strict";return{isApplicable:function(e){var t=Ot.getWindow();return!(!t.navigator||!t.navigator.plugins)},start:function(e){var t,n,r,i=Ot.getWindow(),o=xi(i.navigator.plugins),a=o.hash();n=a.join("."),z.getAggregator().trigger(Se.AddOutputItem,{output:n},De.PluginList,{type:Q.IMPRESSION_EVENT}),a.length&&(t=o.decode(a),r=t.join("."),z.getAggregator().trigger(Se.AddOutputItem,{output:r},De.PluginDecoded,{type:Q.DT_CODES.ADTALK}))}}},Pi=function(e,t){"use strict";return{start:function(){try{var n=Vi(),r=n.getMethodName(e),i=new Ye(t.getEnabledScriptUrl(e));new Li((o=Ot.getDoc()).body||o.head||o.documentElement,i).getWindow()[r]=n.getMethod(t)}catch(e){z.getAggregator().trigger(Se.Error,Q.ERROR_CODES.FEATURE_SCRIPT)}var o}}},Vi=function(){"use strict";var t=function(t,n,r){t===e.asid&&(r.unshift(n),z.getAggregator().trigger.apply(null,r))};return{getMethod:function(n){return function(r){var i={asid:e.asid,constant:Q,features:n,context:at,dtBaseURL:e.dtBaseURL,spg:ki};"function"==typeof r&&r(t,i)}},getMethodName:function(e){return"register_"+e}}},Fi=function(){"use strict";return{start:function(e,t){K(e).each((function(e,n){t.getEnabledScriptUrl(n)&&Pi(n,t).start()}))}}},xi=function(e){"use strict";var t=function(e){return e.filename.replace(/\.plugin$/,"")};return{hash:function(){for(var n,r,i,o=0,a=e.length,s=[];o<a;o++)r=t(e[o]),i=Vt.hashCode(r),n=K.toBase(i,62).slice(-4),s.push(n);return s},decode:function(n){var r,i;return r=Ot.floor(Ot.random()*n.length),i=encodeURIComponent(t(e[r])),[n[r],i]}}},Li=function(t,n){"use strict";var r,i=function(){return"about:blank"};return function(n){var o;(r=gt.createHiddenIframe()).setAttribute("src",i()),r.setAttribute("class","_ntnrjf7826-hj"),(t||e.contextNode.parentNode).appendChild(r),o=function(e){return e.contentWindow.document}(r);var a=["<head></head>",'<body onload="',"var d = document;","var s = d.createElement('script');","d.getElementsByTagName('head')[0].","appendChild(s).src","='"+n+"'\">"].join("");o.open().write(a),o.close()}(n),{getWindow:function(){return r.contentWindow}}},ki=function(t){"use strict";var n=new Fe;n.listen((function(n){return n&&n.scaInfoOriginatorASID&&n.scaInfoOriginatorASID!==e.asid&&n.cache&&t.allExpectedKeysPresent(n.cache)}),(function(e,r){n.stop(),Ot.setTimeout((function(){t.isDtCallAlreadySent()||(z.getAggregator().trigger(Se.AddThrottledProp,Q.DT_SLOT.FF,"spg",r.scaInfoOriginatorASID),K(r.cache).each((function(e,n){t.addToCache(e,n)})))}),Ot.round(1e3*Ot.random()))})),z.getAggregator().on(Se.AddToSpg,(function(e,n){t.addToCache(n,e),t.isFull()&&(t.sendToOtherTags(),Ot.setTimeout(t.sendToOtherTags,1300),Ot.setTimeout(t.sendToOtherTags,3200))}))},Ui={name:"spg",dependencies:["spgCache"],creator:ki,settings:{tier:Q.TIERS.PRE_IMPRESSION_FRAUD,applies:function(e,t,n){"use strict";return e.on("spg")}}},Wi={name:"spgCache",dependencies:[],creator:function(){"use strict";var t=["asp","ch","fsc","mvn","no","sd"],n={},r=!1,i=function(){return o(n)},o=function(e){return K(e).keys().sort().toString()===t.toString()},a=function(){r||(r=!0,K(n).each((function(e,t){z.getAggregator().trigger(Se.AddOutputItem,t,e,{type:Q.DT_CODES.SCA,minDt:!0,sendOnce:!0})})),z.getAggregator().trigger(Se.SendMinDt,Q.DT_CODES.SCA))};return{allExpectedKeysPresent:o,isDtCallAlreadySent:function(){return r},addToCache:function(e,t){t&&t.output&&!i()&&(n[e]=t),i()&&a()},isFull:i,sendToOtherTags:function(){(new xe).send({scaInfoOriginatorASID:e.asid,cache:n})}}},settings:{}},Gi=function(){for(var e=[me,pe,he,jt,Wt,Gt,Lt,Ht,Bt,kt,Di,Oi,Ke,sn,hr,Wi,Ui],t=0;t<e.length;t+=1)z(e[t].name,e[t].dependencies,e[t].creator,e[t].settings)};const Bi=new RegExp("^(ft|ftias)_?.*_(\\d+)$"),Hi="?iasend?",ji=({aggregator:e,ftInstance:t,macros:n})=>{try{const r=(({ftInstance:e,macros:t})=>{const n=Object.keys(t),r=n.map((e=>`${e}=${t[e]}`)).join("&")+Hi;let i=e.replaceMacros(r);const o=i.indexOf(Hi);return o>0&&(i=i.substring(0,o)),i.split("&").reduce(((e,t)=>{const r=t.split("="),i=r?r[0]:void 0,o=r?r[1]:void 0;return i&&n.includes(i)&&i&&o&&(e[i]=o),e}),{})})({ftInstance:t,macros:n});for(const[t,n]of Object.entries(r)){const r="string"==typeof n?n:"number"==typeof n?n.toString():n;e.trigger(Se.AddOutputItem,{output:r},t,{type:Q.DT_CODES.ADSERVER_MACROS,standalone:!0})}Object.keys(r).length>0&&e.trigger(Se.SendDt,Q.DT_CODES.ADSERVER_MACROS)}catch(e){}},qi=({checkInterval:e,collectorTimeout:t,aggregator:n,macros:r,contextNode:i,scopedWindow:o})=>{const a=Ot.setInterval((()=>{const e=(({contextNode:e,scopedWindow:t})=>{var n;const r=null===(n=null==e?void 0:e.getAttribute(Q.CALLBACK_IDENTIFIER.toString()))||void 0===n?void 0:n.match(Bi);if(!r||r.length<3)return;const i=r[2],o=t?t[`ft${i}`]:null;return o&&"function"==typeof o.replaceMacros?o:void 0})({contextNode:i,scopedWindow:o});e&&(Ot.clearInterval(a),ji({aggregator:n,ftInstance:e,macros:r}))}),e);Ot.setTimeout((()=>{Ot.clearInterval(a)}),t)};class Yi{constructor({macros:e,collectorTimeout:t,checkInterval:n,aggregator:r,scopedWindow:i}){this.macros={},this.collectorTimeout=5e3,this.checkInterval=500,this.aggregator=z.getAggregator(),this.collectorTimeout=null!=t?t:this.collectorTimeout,this.checkInterval=null!=n?n:this.checkInterval,this.aggregator=r||this.aggregator,this.scopedWindow=i||("undefined"!=typeof window?window:void 0),this.macros=e||this.macros}applies({contextNode:e,features:t}){var n;const r=null!=this.scopedWindow,i=null!=t&&1==t.on("ftPostRedirectMacros"),o=null!=e&&null!=e.getAttribute(Q.CALLBACK_IDENTIFIER.toString())&&Bi.test(null!==(n=null==e?void 0:e.getAttribute(Q.CALLBACK_IDENTIFIER.toString()))&&void 0!==n?n:"");return!!(r&&i&&o)}start({contextNode:e}){this.aggregator.on(Se.ImpressionSent,(()=>{qi({checkInterval:this.checkInterval,collectorTimeout:this.collectorTimeout,aggregator:this.aggregator,macros:this.macros,contextNode:e,scopedWindow:this.scopedWindow})}))}}class Xi{constructor({contextNode:e,features:t,bootstrapper:n,macroCollector:r}){this.contextNode=e,this.features=t,this.macroCollectors=r||[new Yi({macros:n.ftMacros})]}start(){for(const e of this.macroCollectors)e.applies({contextNode:this.contextNode,features:this.features})&&e.start({contextNode:this.contextNode})}}const Ki=e=>{try{new Ji(e)}catch(e){}};class Ji{constructor(e){this.context=e,this.extractSignalsTriggered=!1,z.getAggregator().on(Se.StartViewabilityLoop,(()=>{this.extractSignalsTriggered||(this.extractSignalsTriggered=!0,Ot.setTimeout((()=>{this.extractSignals()}),250))}))}extractSignals(){const e=this.detectEngine();this.executeDomlessSafeFunctions(),this.context.isDomless()||this.executeDomDependentFunctions(e)}executeDomlessSafeFunctions(){try{Qi()}catch(e){}}executeDomDependentFunctions(e){try{zi(e)}catch(e){}}detectEngine(){return ro(this.context.isDomless())}}const zi=e=>{const t=[()=>no(e),ao,co,lo,so,io,uo,go,po,fo],n=e=>{if(e>=t.length)return;const r=t[e];if(r)try{r()}catch(e){}Ot.setTimeout((()=>n(e+1)),10)};n(0)},Qi=()=>{oo()},$i=function(e,t){z.getAggregator().trigger(Se.AddThrottledProp,"sca",e,t)},Zi=(e,t)=>{try{const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&"function"==typeof n.get}catch(e){return!1}},eo=(e,t)=>{try{const n=e=>{try{return void Date.prototype.getYear.call(e)}catch(e){let t=e.message+"";t=t.replace(/\r?\n/g,"");const n=t.indexOf("function");return-1!==n?t.substring(n).trim():t.trim()}},r=n((function(){return!0}));if(!((null==r?void 0:r.includes("RANDOM_STRING"))||!1)){let n=Function.prototype.toString.call(e);return n=n.replace(/\r?\n/g,""),!t.test(n)}const i=n(e);return!(!i||t.test(i))}catch(e){return!1}},to=e=>e.replace(/[^A-Za-z0-9\-._~/|+*%]/g,""),no=function(e){try{let t,n=!1,r=!1;const i=function(){try{t=new Error,Object.defineProperty(t,"stack",{configurable:!1,enumerable:!1,get:function(){return n=!0,""}}),console.debug(t)}catch(e){}return n},o=function(){try{throw new Error("")}catch(e){(e.stack+"").includes("*")&&(r=!0)}return r},a={};"g"!==e&&(n=i(),n&&(a.cdp=K.stringifyTriState(n),$i("bdp",K(a).toION()))),"g"===e&&(r=o(),r&&(a.rdp=K.stringifyTriState(r),$i("bdp",K(a).toION())))}catch(e){}},ro=function(e){var t,n,r,i;let o;if(e)o="d";else{o="u";try{const e=Ot.getWindow(),a=Ot.getDoc();o=K.isDef(a.documentMode)?"t":K.isDef(e.netscape)&&"MozAppearance"in a.documentElement.style?"g":K.isDef(e.opera)||K.isDef(e.opr)||K.isDef(null===(t=e.chrome)||void 0===t?void 0:t.search)?"o":K.isDef(e.chrome)&&K.isDef(e.CryptoKeyPair)?"h":K.isDef(e.chrome)&&K.isDef(null===(n=e.external)||void 0===n?void 0:n.getHostEnvironmentValue)||K.isDef(null===(r=a.documentElement)||void 0===r?void 0:r.style)&&-1!==Object.getOwnPropertyNames(a.documentElement.style).indexOf("msHighContrastAdjust")?"e":(K.isDef(e.chrome)||K.isDef(e.PERSISTENT)||K.isDef(null===(i=e.google)||void 0===i?void 0:i.gears))&&-1===Object.prototype.toString.call(HTMLElement).indexOf("Constructor")?"b":"webkitAppearance"in a.documentElement.style?"w":"u"}catch(e){o="u"}}return $i("eng",o),o},io=()=>{const e={exs:(()=>{let e="";try{e=""+Ot.getWindow().external,e=""===e?"empty":e.replace(/[[\]\s]/g,""),e=to(e.substring(0,50))}catch(t){e="err"}return e})()};$i("exr",K(e).toION())},oo=()=>{const e={lts:(()=>{try{const e=new Date,t=e.getFullYear().toString(),n=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2),i=("0"+e.getHours()).slice(-2),o=("0"+e.getMinutes()).slice(-2);return`${t}-${n}-${r}${i}.${o}.${("0"+e.getSeconds()).slice(-2)}`}catch(e){return"err"}})(),tzo:(()=>{try{return(new Date).getTimezoneOffset()}catch(e){return-1}})(),tzn:(()=>{try{return to(Intl.DateTimeFormat().resolvedOptions().timeZone)}catch(e){return"err"}})()};$i("tss",K(e).toION())},ao=()=>{const e={ori:K.stringifyTriState((()=>{let e=!1;try{e=K.isDef(Ot.getWindow().orientation)}catch(t){e=!1}return e})()),ges:K.stringifyTriState((()=>{let e=!1;try{const t=Ot.getWindow();e=K.isDef(t.GestureEvent)}catch(t){e=!1}return e})()),tch:K.stringifyTriState((()=>{let e=!1;try{e=K.isDef(Ot.getWindow().ontouchstart)||navigator.maxTouchPoints>1}catch(t){e=!1}return e})())};$i("mob",K(e).toION())},so=()=>{const e=Ot.getWindow(),t=[{key:"not",check:()=>!(!e.Notification&&!e.webkitNotifications)},{key:"csi",check:()=>{var t;return!!(null===(t=e.chrome)||void 0===t?void 0:t.csi)}},{key:"msl",check:()=>!!navigator.msLaunchUri},{key:"hdl",check:()=>!!e.HTMLDataListElement},{key:"aps",check:()=>!!e.ApplePaySession},{key:"hae",check:()=>!!e.HTMLAudioElement},{key:"ito",check:()=>!!e.IntersectionObserver},{key:"sec",check:()=>!!e.isSecureContext},{key:"pha",check:()=>!(!e.callPhantom&&!e._phantom),sendIfTrue:!0},{key:"plr",check:()=>!(!e.__pwInitScripts&&!e.__playwright__binding__),sendIfTrue:!0}],n={};for(const{key:e,check:r,sendIfTrue:i}of t)try{const t=r();if(i&&!t)continue;n[e]=K.stringifyTriState(t)}catch(t){n[e]=K.stringifyTriState(!1)}$i("prp",K(n).toION())},co=function(){try{const e=()=>{try{const e=Object.getOwnPropertyDescriptor(Navigator.prototype,"appName");return!(!e||!e.get)&&(e.get.call(navigator),!1)}catch(e){return!0}},t={};navigator!==clientInformation&&(t.nci=String(K.stringifyTriState(!0))),e()&&(t.anc=String(K.stringifyTriState(!0))),function(e){try{return Date.prototype.getFullYear.call(e),!0}catch(e){return!!e.stack.includes("Proxy.getFullYear")}}(navigator)&&(t.npx=String(K.stringifyTriState(!0))),Object.keys(t).length>0&&$i("nic",K(t).toION())}catch(e){}},uo=function(){var e;let t,n=!1;try{const r=null===(e=Ot.getTop())||void 0===e?void 0:e.document,i=Object.getOwnPropertyDescriptor(r,"referrer");i&&"function"==typeof i.get&&(n=!0,t=i.get.toString().replace(/[\n\r]/g,"").substring(0,50),t=to(t))}catch(e){n=!1}const r={};n&&(r.tam=String(K.stringifyTriState(n)),t&&(r.ref=t)),Object.keys(r).length>0&&$i("ret",K(r).toION())},go=function(){try{const e=Ot.getDoc();let t=!1;t=Zi(e,"visibilityState");let n=!1;n=Zi(e,"hidden");let r=!1;if("undefined"!=typeof IntersectionObserverEntry){const e=Object.getOwnPropertyDescriptor(IntersectionObserverEntry.prototype,"isIntersecting");if(e&&"function"==typeof e.get){const t=/isIntersecting\s*\(\)\s*\{\s*\[native\s+code\]\s*\}/;r=eo(e.get,t)}}const i={};t&&(i.vis=String(K.stringifyTriState(t))),n&&(i.hid=String(K.stringifyTriState(n))),r&&(i.itt=String(K.stringifyTriState(r))),Object.keys(i).length>0&&$i("viw",K(i).toION())}catch(e){}},lo=function(){try{const e=()=>{try{const e=Object.getOwnPropertyDescriptor(Navigator.prototype,"webdriver");if(e&&"function"==typeof e.get){const t=/^function\s+(?:get\s+)?webdriver\(\)\s*{\s*\[native code\]\s*}$/;return eo(e.get,t)}return!1}catch(e){return!1}},t={};(()=>{try{return navigator.hasOwnProperty("webdriver")}catch(e){return!1}})()&&(t.wop=String(K.stringifyTriState(!0))),e()&&(t.wgt=String(K.stringifyTriState(!0))),Object.keys(t).length>0&&$i("wdt",K(t).toION())}catch(e){}},fo=function(){try{const e=function(e){let t=null;try{const r=Ot.getTopmostAccessibleWindow().document,i=r.createElement("div"),o={left:"-10000px",width:"100px",visibility:"hidden"};e&&(o.overflow="scroll"),st.styleElement(i,o),r.body.appendChild(i);const a=r.createElement("div"),s={width:"100%"};st.styleElement(a,s),i.appendChild(a),t=a.offsetWidth,n.body.removeChild(i)}catch(e){}return t},t=e(!0),r=e(!1);if(null!==t||null!==r){$i("dvw",K({wit:null!==t?t:"na",wot:null!==r?r:"na"}).toION())}}catch(e){}},po=function(){let e=0,t=0;try{let n=Ot.getWindow();const r=Ot.getTop();do{if(!n)break;if(n===r)break;const i=n.parent;e+=1;try{i.document}catch(e){t+=1}n=i}while(e<20)}catch(n){e=-2,t=-2}$i("ifr",K({act:e,eff:t}).toION())};try{!function(){"use strict";var t,n,r,i,o,a,s,g;try{(()=>{const t=at.isDomless(),n=Ot.getWindow(),r=new W({contextNodeElement:null==e?void 0:e.contextNode});G.addModel(r);const i=new k({isDomless:t,currentWindow:n,defaultBootstrapperConfig:e});G.addModel(i);const o=new c;G.addModel(o);const a=new x({isDomless:t,contextNode:r,measurementConfig:i});G.addModel(a);const s=i.isStaticFrameInFrame?new W({contextNodeElement:null==e?void 0:e.currentScript}):r,g=new d({contextNode:s});G.addModel(g);const l=new u;G.addModel(l);const f=new yn;G.addModel(f)})()}catch(e){}e.perf.markStart(te),G.measurementConfig.set("mainBirthdate",G.measurementConfig.birthdate?(new Date).getTime()-G.measurementConfig.birthdate:-1),Gi(),z.startSystem();var l=z.getAggregator();o={},a={},l.provide({[Te.OmidAdSessionContext]:o}),l.provide({[Te.OmidAdSessionVerificationParameters]:a}),G.measurementConfig.isResolved&&l.provide(Te.Features,ht()),l.provide(Te.Browser,(new $e).createInstance());var f=l.provide(Te.AncestorOrigins,Je());l.provide(Te.PageURLS,(new bt).createInstance(f,Ot)),t=lt(),n=Tt(),r=(new tt).createInstance(t,n),i=It(),l.provide({[Te.Errors]:t,[Te.JSONP]:n,[Te.Communication]:r,[Te.IDS]:i}),s=__IASOmidVerificationClient,l.provide({[Te.OmidVerificationClient]:s}),g=[{environment:pn(s),adSessionReadyStrategy:vn(s)},{environment:In(),adSessionReadyStrategy:An()}],new hn(g).resolve().adSessionReadyStrategy.start(),e.perf.markEnd(te)}()}catch(t){__IntegralASDiagnosticCall("main",t,e)}};try{!function(){var e=__IntegralASConfig.useFIF?__IASScope.parent:__IASScope;try{top.__IntegralASAdPush=function(t){(t||top.isSingleIASInstance&&top.iasAdSlots).forEach((function(t){__IntegralASConfig._cl_adpath=t.adSelector,__IntegralASConfig.iasParameters=t.iasParameters,__IntegralASConfig.initialize(__IntegralASConfig,e,e.document)}))},top.isSingleIASInstance&&top.iasAdSlots?top.__IntegralASAdPush():__IntegralASConfig.initialize(__IntegralASConfig,e,e.document)}catch(t){__IntegralASConfig.initialize(__IntegralASConfig,e,e.document)}}()}catch(e){__IntegralASDiagnosticCall("initialize",e,__IntegralASConfig)}
