powered-ad-config 0.1.87 → 0.1.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -218,7 +218,7 @@ var e = (e, t, n) => {
218
218
  }, j = () => {
219
219
  let e = O();
220
220
  if (!e) return;
221
- c(e, "0.1.87");
221
+ c(e, "0.1.88");
222
222
  let t = e.style;
223
223
  e.className &&= "", t.minHeight = "250px", t.marginTop = F.adNodeMarginTop + "px", t.marginBottom = F.adNodeMarginBottom + "px", t.position = "static", t.display = "block", F.zIndex && F.zIndex();
224
224
  }, M = () => {
@@ -468,7 +468,7 @@ var e = (e, t, n) => {
468
468
  }, S = () => {
469
469
  try {
470
470
  let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
471
- return te.find((e) => {
471
+ return z.find((e) => {
472
472
  let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
473
473
  return r && i;
474
474
  }) || null;
@@ -499,33 +499,33 @@ var e = (e, t, n) => {
499
499
  return t.find((e) => e.tagName === "H1") || t[0] || null;
500
500
  }, N = null, P = null;
501
501
  f();
502
- let F = O(e, b), I = O(t, x), L = O(n, p), R = O(i, m), te = k(a), z = S();
503
- if (!z) return () => {};
504
- let B = y((z.slotId ? c.getElementById(z.slotId) : null) || o.parentElement);
502
+ let F = O(e, b), I = O(t, x), L = O(n, p), R = O(i, m), z = k(a), B = S();
505
503
  if (!B) return () => {};
506
- let ne = B.getAttribute(E);
507
- if (ne && ne !== u) return () => {};
508
- let V = {
509
- width: B.style.width,
510
- maxWidth: B.style.maxWidth,
511
- minWidth: B.style.minWidth,
512
- height: B.style.height,
513
- minHeight: B.style.minHeight,
514
- marginTop: B.style.marginTop,
515
- marginBottom: B.style.marginBottom,
516
- marginLeft: B.style.marginLeft,
517
- marginRight: B.style.marginRight,
518
- position: B.style.position,
519
- top: B.style.top,
520
- left: B.style.left,
521
- right: B.style.right,
522
- transform: B.style.transform,
523
- display: B.style.display,
524
- opacity: B.style.opacity,
525
- transition: B.style.transition,
526
- pointerEvents: B.style.pointerEvents,
527
- zIndex: B.style.zIndex,
528
- overflow: B.style.overflow
504
+ let V = y((B.slotId ? c.getElementById(B.slotId) : null) || o.parentElement);
505
+ if (!V) return () => {};
506
+ let te = V.getAttribute(E);
507
+ if (te && te !== u) return () => {};
508
+ let ne = {
509
+ width: V.style.width,
510
+ maxWidth: V.style.maxWidth,
511
+ minWidth: V.style.minWidth,
512
+ height: V.style.height,
513
+ minHeight: V.style.minHeight,
514
+ marginTop: V.style.marginTop,
515
+ marginBottom: V.style.marginBottom,
516
+ marginLeft: V.style.marginLeft,
517
+ marginRight: V.style.marginRight,
518
+ position: V.style.position,
519
+ top: V.style.top,
520
+ left: V.style.left,
521
+ right: V.style.right,
522
+ transform: V.style.transform,
523
+ display: V.style.display,
524
+ opacity: V.style.opacity,
525
+ transition: V.style.transition,
526
+ pointerEvents: V.style.pointerEvents,
527
+ zIndex: V.style.zIndex,
528
+ overflow: V.style.overflow
529
529
  }, re = {
530
530
  width: o.style.width,
531
531
  height: o.style.height,
@@ -533,21 +533,21 @@ var e = (e, t, n) => {
533
533
  border: o.style.border,
534
534
  position: o.style.position,
535
535
  pointerEvents: o.style.pointerEvents
536
- }, H = [], ie = parseFloat(R) || m, ae = parseFloat(F) || 0, oe = parseFloat(I) || 0, U = () => {
537
- let e = B.parentElement;
538
- for (; e && e !== c.body;) H.push({
536
+ }, ie = [], H = parseFloat(R) || m, ae = parseFloat(F) || 0, U = parseFloat(I) || 0, W = () => {
537
+ let e = V.parentElement;
538
+ for (; e && e !== c.body;) ie.push({
539
539
  element: e,
540
540
  overflow: e.style.overflow
541
541
  }), d(e, "overflow", "visible"), e = e.parentElement;
542
- }, se = () => {
543
- d(B, "width", L), d(B, "maxWidth", L), d(B, "minWidth", L), d(B, "height", R), d(B, "minHeight", R), d(B, "display", "block"), d(B, "overflow", "hidden"), d(B, "pointerEvents", "none"), d(B, "zIndex", "1080"), B.setAttribute(E, u), d(o, "width", L), d(o, "height", R), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
544
- }, W = {
542
+ }, oe = () => {
543
+ d(V, "width", L), d(V, "maxWidth", L), d(V, "minWidth", L), d(V, "height", R), d(V, "minHeight", R), d(V, "display", "block"), d(V, "overflow", "hidden"), d(V, "pointerEvents", "none"), d(V, "zIndex", "1080"), V.setAttribute(E, u), d(o, "width", L), d(o, "height", R), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
544
+ }, se = {
545
545
  element: null,
546
546
  position: ""
547
- }, ce = () => {
548
- let e = B.parentElement;
549
- e && s.getComputedStyle(e).position === "static" && (W.element = e, W.position = e.style.position, d(e, "position", "relative")), d(B, "position", "absolute"), d(B, "top", `${ae}px`), d(B, "left", `${oe}px`), d(B, "right", "auto"), d(B, "marginTop", "0px"), d(B, "marginBottom", `${h}px`), d(B, "marginLeft", "0px"), d(B, "marginRight", "0px"), d(B, "transform", "");
550
- }, le = (e) => {
547
+ }, G = () => {
548
+ let e = V.parentElement;
549
+ e && s.getComputedStyle(e).position === "static" && (se.element = e, se.position = e.style.position, d(e, "position", "relative")), d(V, "position", "absolute"), d(V, "top", `${ae}px`), d(V, "left", `${U}px`), d(V, "right", "auto"), d(V, "marginTop", "0px"), d(V, "marginBottom", `${h}px`), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
550
+ }, ce = (e) => {
551
551
  let t = null;
552
552
  try {
553
553
  let e = o.contentDocument;
@@ -565,51 +565,51 @@ var e = (e, t, n) => {
565
565
  if (!t) return !1;
566
566
  o.setAttribute(D, "1");
567
567
  try {
568
- e.parentNode?.insertBefore(B, e);
568
+ e.parentNode?.insertBefore(V, e);
569
569
  } catch {
570
570
  return o.removeAttribute(D), !1;
571
571
  }
572
- U(), se(), ce();
572
+ W(), oe(), G();
573
573
  try {
574
574
  o.srcdoc = t;
575
575
  } catch {
576
576
  return !1;
577
577
  }
578
578
  return !0;
579
- }, G = () => {
580
- d(B, "position", "fixed"), d(B, "marginTop", "0px"), d(B, "marginBottom", "0px"), d(B, "marginLeft", "0px"), d(B, "marginRight", "0px"), d(B, "transform", "");
581
- }, K = () => {
582
- d(B, "display", "none");
583
- }, q = () => {
584
- d(B, "display", "block"), d(B, "overflow", "hidden");
585
- }, J = null, Y = () => {
586
- if ((!J || !J.isConnected) && (J = M(z.headingText)), !J) return;
587
- let e = J.getBoundingClientRect(), t = e.top - ie - h + ae, n = e.left + oe;
588
- d(B, "top", `${t}px`), d(B, "left", `${n}px`), d(B, "right", "auto");
589
- }, ue = null, X = null, Z = !1, Q = (e = 12) => {
590
- if (J = M(z.headingText), !J) {
591
- e > 1 && (P = s.setTimeout(() => Q(e - 1), 250));
579
+ }, le = () => {
580
+ d(V, "position", "fixed"), d(V, "marginTop", "0px"), d(V, "marginBottom", "0px"), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
581
+ }, ue = () => {
582
+ d(V, "display", "none");
583
+ }, de = () => {
584
+ d(V, "display", "block"), d(V, "overflow", "hidden");
585
+ }, K = null, q = () => {
586
+ if ((!K || !K.isConnected) && (K = M(B.headingText)), !K) return;
587
+ let e = K.getBoundingClientRect(), t = e.top - H - h + ae, n = e.left + U;
588
+ d(V, "top", `${t}px`), d(V, "left", `${n}px`), d(V, "right", "auto");
589
+ }, J = null, Y = null, fe = !1, X = (e = 12) => {
590
+ if (K = M(B.headingText), !K) {
591
+ e > 1 && (P = s.setTimeout(() => X(e - 1), 250));
592
592
  return;
593
593
  }
594
- le(J) || (Z = !0, U(), se(), G(), Y(), ue = () => Y(), X = () => Y(), s.addEventListener("scroll", ue, { passive: !0 }), s.addEventListener("resize", X));
594
+ ce(K) || (fe = !0, W(), oe(), le(), q(), J = () => q(), Y = () => q(), s.addEventListener("scroll", J, { passive: !0 }), s.addEventListener("resize", Y));
595
595
  };
596
- Q();
597
- let de = () => {
598
- P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null), ue &&= (s.removeEventListener("scroll", ue), null), X &&= (s.removeEventListener("resize", X), null), B.getAttribute(E) === u && B.removeAttribute(E), Z && (Object.entries(V).forEach(([e, t]) => {
599
- B.style[e] = t;
596
+ X();
597
+ let Z = () => {
598
+ P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null), J &&= (s.removeEventListener("scroll", J), null), Y &&= (s.removeEventListener("resize", Y), null), V.getAttribute(E) === u && V.removeAttribute(E), fe && (Object.entries(ne).forEach(([e, t]) => {
599
+ V.style[e] = t;
600
600
  }), Object.entries(re).forEach(([e, t]) => {
601
601
  o.style[e] = t;
602
- }), H.forEach(({ element: e, overflow: t }) => {
602
+ }), ie.forEach(({ element: e, overflow: t }) => {
603
603
  e.style.overflow = t;
604
604
  })), s[T]?.instanceId === u && delete s[T];
605
605
  };
606
606
  return s[T] = {
607
607
  instanceId: u,
608
608
  iframe: o,
609
- cleanup: de,
610
- show: q,
611
- hide: K
612
- }, de;
609
+ cleanup: Z,
610
+ show: de,
611
+ hide: ue
612
+ }, Z;
613
613
  }, j = (e, t, n) => {
614
614
  let r = window.frameElement ? window.frameElement : null;
615
615
  if (!r) return () => {};
@@ -926,7 +926,7 @@ var e = (e, t, n) => {
926
926
  };
927
927
  (() => {
928
928
  let e = a.style;
929
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.87"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
929
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.88"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
930
930
  let o = a.parentElement;
931
931
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
932
932
  let t = r.getComputedStyle(o), n = !1;
@@ -1064,7 +1064,7 @@ var e = (e, t, n) => {
1064
1064
  let o = a.getAttribute("style"), s = n.getAttribute("style"), c = n.parentElement === a ? null : n.parentElement, l = c ? c.getAttribute("style") : null, u = a.parentElement, d = u ? r.getComputedStyle(u).paddingTop : null, f = null, p = parseInt(n.getAttribute("width"), 10) || 320, m = parseInt(n.getAttribute("height"), 10) || 50;
1065
1065
  return (() => {
1066
1066
  let e = a.style;
1067
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.87"), c) {
1067
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.88"), c) {
1068
1068
  let e = c.style;
1069
1069
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1070
1070
  }
@@ -1091,7 +1091,7 @@ var e = (e, t, n) => {
1091
1091
  stickyTop: 0,
1092
1092
  stickyZIndex: 1e4,
1093
1093
  stickyRespectHeader: !0,
1094
- stickyHeaderSelector: "body > header, body > * > header, [role=\"banner\"]",
1094
+ stickyHeaderSelector: "#app > [data-ad-target=\"header\"], [data-ad-target=\"header\"] [data-ad-target=\"header-nav\"], body > header, body > * > header, [role=\"banner\"]",
1095
1095
  stickyHeaderFallbackHeight: null,
1096
1096
  onAdapt: null,
1097
1097
  ...e
@@ -1106,7 +1106,7 @@ var e = (e, t, n) => {
1106
1106
  return () => {};
1107
1107
  }
1108
1108
  let a = (() => {
1109
- let e = i.querySelector("#adspot-mobile-mbanner-2-above");
1109
+ let e = i.querySelector("#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above");
1110
1110
  if (e) return e;
1111
1111
  let t = n.parentElement;
1112
1112
  for (; t && t !== i.body;) {
@@ -1254,39 +1254,39 @@ var e = (e, t, n) => {
1254
1254
  let e = r.location.href;
1255
1255
  for (let t of d) if (e.indexOf(t.site) >= 0) return t.config;
1256
1256
  return u.nine;
1257
- })(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = y ? y.getAttribute("style") : null, x = s ? s.getAttribute("style") : null, S = o ? o.getAttribute("style") : null, C = o ? o.querySelector("header") : null, w = C ? C.getAttribute("style") : null, T = C ? C.querySelector(".sc-5cbbddda-1") : null, E = T ? T.getAttribute("style") : null, D = i.querySelector("footer"), O = D ? D.getAttribute("style") : null, ee = o ? Array.from(o.children).map((e) => ({
1257
+ })(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = a.closest("[data-ad-target=\"header-ad-mobile\"]"), x = !!(y && b && y === b), S = x ? r.getComputedStyle(y).marginTop : "", C = y ? y.getAttribute("style") : null, w = s ? s.getAttribute("style") : null, T = o ? o.getAttribute("style") : null, E = o ? o.querySelector("header") : null, D = E ? E.getAttribute("style") : null, O = E ? E.querySelector(".sc-5cbbddda-1") : null, ee = O ? O.getAttribute("style") : null, k = i.querySelector("footer"), A = k ? k.getAttribute("style") : null, j = o ? Array.from(o.children).map((e) => ({
1258
1258
  el: e,
1259
1259
  orig: e.getAttribute("style")
1260
- })) : [], k = null, A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = [], R = null, te = null, z = null, B = null, ne = null, V = null, re = null, H = [], ie = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ae = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, oe = !!(t.sticky && (ie || ae)), U = "pending", se = 0, W = 0, ce = null, le = null, G = null, K = null, q = null, J = null, Y = [], ue = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, X = f === u.afr, Z = null, Q = null, de = (e) => {
1261
- if (!e || e === z || e === y || e === a) return !1;
1260
+ })) : [], M = null, N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = [], V = null, te = null, ne = null, re = null, ie = null, H = null, ae = null, U = [], W = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, oe = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, se = !!(t.sticky && (W || oe)), G = "pending", ce = 0, le = 0, ue = null, de = null, K = null, q = null, J = null, Y = [], fe = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, X = f === u.afr, Z = null, Q = null, pe = (e) => {
1261
+ if (!e || e === ne || e === y || e === a) return !1;
1262
1262
  let t = e.firstElementChild;
1263
- if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper")) return !1;
1263
+ if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("[id^=\"adspot-mobile-mbanner-\"], iframe, [data-mf-slot], .adWrapper")) return !1;
1264
1264
  let n = r.getComputedStyle(e);
1265
1265
  return n.position === "fixed" || n.position === "sticky";
1266
- }, fe = (e) => {
1267
- !e?.parentElement || H.some((t) => t.shell === e) || (H.push({
1266
+ }, me = (e) => {
1267
+ !e?.parentElement || U.some((t) => t.shell === e) || (U.push({
1268
1268
  shell: e,
1269
1269
  parent: e.parentElement,
1270
1270
  nextSibling: e.nextSibling
1271
1271
  }), e.remove());
1272
- }, pe = () => {
1272
+ }, he = () => {
1273
1273
  for (let e of i.querySelectorAll(".container")) {
1274
1274
  let t = e.parentElement;
1275
- de(t) && fe(t);
1275
+ pe(t) && me(t);
1276
1276
  }
1277
- }, me = (e) => {
1277
+ }, ge = (e) => {
1278
1278
  let t = e?.parentElement;
1279
1279
  for (; t && t !== i.body && t !== i.documentElement;) {
1280
1280
  let e = r.getComputedStyle(t);
1281
- (e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (L.find((e) => e.el === t) || L.push({
1281
+ (e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (B.find((e) => e.el === t) || B.push({
1282
1282
  el: t,
1283
1283
  orig: t.getAttribute("style")
1284
1284
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1285
1285
  }
1286
- }, he = () => {
1286
+ }, _e = () => {
1287
1287
  let e = i.createElement("div");
1288
1288
  return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
1289
- }, ge = () => {
1289
+ }, ve = () => {
1290
1290
  if (!s || f !== u.wwos) return null;
1291
1291
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1292
1292
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1299,7 +1299,7 @@ var e = (e, t, n) => {
1299
1299
  };
1300
1300
  }).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
1301
1301
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1302
- }, $ = () => I || a, _e = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1302
+ }, $ = () => z || a, ye = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1303
1303
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1304
1304
  return {
1305
1305
  el: e,
@@ -1307,31 +1307,31 @@ var e = (e, t, n) => {
1307
1307
  styles: n,
1308
1308
  zIndex: Number.isFinite(i) ? i : null
1309
1309
  };
1310
- }).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), ve = () => {
1311
- let e = _e().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
1310
+ }).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), be = () => {
1311
+ let e = ye().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
1312
1312
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1313
- }, ye = () => {
1314
- let e = ve();
1315
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, ue || t.stickyTop);
1316
- }, be = () => {
1317
- let e = ve();
1318
- return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex + 1) : t.stickyZIndex;
1319
- }, xe = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
1320
- P?.contentWindow && P.contentWindow.postMessage({
1313
+ }, xe = () => {
1314
+ let e = be();
1315
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
1316
+ }, Se = () => {
1317
+ let e = be();
1318
+ return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
1319
+ }, Ce = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
1320
+ L?.contentWindow && L.contentWindow.postMessage({
1321
1321
  type: "mobilefireplace:sticky",
1322
1322
  active: e,
1323
1323
  progress: Math.max(0, Math.min(1, t)),
1324
1324
  remainingMs: Math.max(0, Math.round(n))
1325
1325
  }, "*");
1326
- }, Se = (e) => {
1326
+ }, we = (e) => {
1327
1327
  !e || Y.some((t) => t.el === e) || Y.push({
1328
1328
  el: e,
1329
1329
  value: e.style.getPropertyValue("z-index"),
1330
1330
  priority: e.style.getPropertyPriority("z-index")
1331
1331
  });
1332
- }, Ce = (e) => {
1332
+ }, Te = (e) => {
1333
1333
  let t = new Set([$()].filter(Boolean));
1334
- if (f === u.afr || V || p) {
1334
+ if (f === u.afr || H || p) {
1335
1335
  [
1336
1336
  a,
1337
1337
  y,
@@ -1340,117 +1340,108 @@ var e = (e, t, n) => {
1340
1340
  let e = $()?.parentElement;
1341
1341
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1342
1342
  }
1343
- for (let n of t) Se(n), n.style.setProperty("z-index", String(e), "important");
1344
- }, we = () => X && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), Te = () => {
1345
- if (!X || !P) return;
1346
- let e = P.style;
1343
+ for (let n of t) we(n), n.style.setProperty("z-index", String(e), "important");
1344
+ }, Ee = () => X && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), De = () => {
1345
+ if (!X || !L) return;
1346
+ let e = L.style;
1347
1347
  e.left = "0px", e.width = "100vw";
1348
- }, Ee = () => {
1349
- if (!X || !P || U === "active") return;
1350
- let e = we();
1348
+ }, Oe = () => {
1349
+ if (!X || !L || G === "active") return;
1350
+ let e = Ee();
1351
1351
  if (!e) return;
1352
- let t = e.getBoundingClientRect(), n = P.style;
1353
- n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Te(), n.setProperty("z-index", "6", "important"), P.removeAttribute("data-mf-sticky-active");
1354
- }, De = () => {
1355
- X && (Ee(), K && r.cancelAnimationFrame(K), K = r.requestAnimationFrame(() => {
1356
- K = null, Ee();
1352
+ let t = e.getBoundingClientRect(), n = L.style;
1353
+ n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, De(), n.setProperty("z-index", "6", "important"), L.removeAttribute("data-mf-sticky-active");
1354
+ }, ke = () => {
1355
+ X && (Oe(), K && r.cancelAnimationFrame(K), K = r.requestAnimationFrame(() => {
1356
+ K = null, Oe();
1357
1357
  }), q && r.clearTimeout(q), q = r.setTimeout(() => {
1358
- q = null, Ee();
1358
+ q = null, Oe();
1359
1359
  }, 350));
1360
- }, Oe = () => {
1361
- !X || !P || P.parentElement === i.body || (Z = P.parentElement, Q = P.nextSibling, i.body.appendChild(P));
1362
- }, ke = () => {
1363
- if (!Z || !P) {
1360
+ }, Ae = () => {
1361
+ !X || !L || L.parentElement === i.body || (Z = L.parentElement, Q = L.nextSibling, i.body.appendChild(L));
1362
+ }, je = () => {
1363
+ if (!Z || !L) {
1364
1364
  Z = null, Q = null;
1365
1365
  return;
1366
1366
  }
1367
- Q && Q.parentNode === Z ? Z.insertBefore(P, Q) : Z.appendChild(P), Z = null, Q = null;
1368
- }, Ae = () => {
1367
+ Q && Q.parentNode === Z ? Z.insertBefore(L, Q) : Z.appendChild(L), Z = null, Q = null;
1368
+ }, Me = () => {
1369
1369
  for (let e = Y.length - 1; e >= 0; --e) {
1370
1370
  let { el: t, value: n, priority: r } = Y[e];
1371
1371
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1372
1372
  }
1373
1373
  Y.length = 0;
1374
- }, je = () => {
1375
- if (!P) return;
1376
- me($());
1377
- let e = $().getBoundingClientRect(), t = be();
1378
- Ce(t), Oe();
1379
- let n = P.style;
1380
- n.position = "fixed", n.top = `${ye()}px`, X ? Te() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), P.setAttribute("data-mf-sticky-active", "");
1381
- }, Me = () => {
1382
- if (!P) return;
1383
- if (ke(), X) {
1384
- De(), Ae();
1385
- return;
1386
- }
1387
- let e = P.style;
1388
- e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ae(), P.removeAttribute("data-mf-sticky-active");
1389
1374
  }, Ne = () => {
1390
- le &&= (r.cancelAnimationFrame(le), null);
1375
+ if (!L) return;
1376
+ ge($());
1377
+ let e = $().getBoundingClientRect(), t = Se();
1378
+ Te(t), Ae();
1379
+ let n = L.style;
1380
+ n.position = "fixed", n.top = `${xe()}px`, X ? De() : x ? (n.left = "0px", n.width = "100vw", n.setProperty("max-width", "100vw", "important")) : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), L.setAttribute("data-mf-sticky-active", "");
1391
1381
  }, Pe = () => {
1392
- G &&= (r.cancelAnimationFrame(G), null);
1382
+ if (!L) return;
1383
+ if (je(), X) {
1384
+ ke(), Me();
1385
+ return;
1386
+ }
1387
+ let e = L.style;
1388
+ e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Me(), L.removeAttribute("data-mf-sticky-active");
1393
1389
  }, Fe = () => {
1394
- if (ce === null) {
1390
+ de &&= (r.cancelAnimationFrame(de), null);
1391
+ }, Ie = () => {
1392
+ if (ue === null) {
1395
1393
  let e = $().getBoundingClientRect();
1396
- ce = Math.max(0, r.scrollY + e.top - t.stickyTop);
1394
+ ue = Math.max(0, r.scrollY + e.top - t.stickyTop);
1397
1395
  }
1398
- return ce;
1399
- }, Ie = () => W + (U === "active" ? Math.max(0, r.performance.now() - se) : 0), Le = () => Math.max(0, r.scrollY - Fe()), Re = () => {
1400
- let e = ie ? Ie() / t.stickyDurationMs : 0, n = ae ? Le() / t.stickyScrollDistance : 0;
1396
+ return ue;
1397
+ }, Le = () => le + (G === "active" ? Math.max(0, r.performance.now() - ce) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1398
+ let e = W ? Le() / t.stickyDurationMs : 0, n = oe ? Re() / t.stickyScrollDistance : 0;
1401
1399
  return Math.max(e, n);
1402
- }, ze = () => ie ? t.stickyDurationMs - Ie() : 0, Be = () => r.scrollY < Fe() - 1, Ve = () => {
1403
- U === "active" && (W = Ie(), U = "paused", Ne(), Me(), xe({
1400
+ }, Be = () => W ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1401
+ G === "active" && (le = Le(), G = "paused", Fe(), Pe(), Ce({
1404
1402
  active: !1,
1405
- progress: Re(),
1406
- remainingMs: ze()
1403
+ progress: ze(),
1404
+ remainingMs: Be()
1407
1405
  }));
1408
- }, He = () => {
1409
- U !== "paused" || Be() || (U = "active", se = r.performance.now(), je(), We());
1410
1406
  }, Ue = () => {
1411
- U !== "active" && U !== "paused" || (U === "active" && (W = Ie()), U = "released", Ne(), Me(), xe({
1407
+ G !== "paused" || Ve() || (G = "active", ce = r.performance.now(), Ne(), Ge());
1408
+ }, We = () => {
1409
+ G !== "active" && G !== "paused" || (G === "active" && (le = Le()), G = "released", Fe(), Pe(), Ce({
1412
1410
  active: !1,
1413
1411
  progress: 1,
1414
1412
  remainingMs: 0
1415
1413
  }));
1416
- }, We = () => {
1417
- if (U !== "active") return;
1418
- if (Be()) {
1419
- Ve();
1414
+ }, Ge = () => {
1415
+ if (G !== "active") return;
1416
+ if (Ve()) {
1417
+ He();
1420
1418
  return;
1421
1419
  }
1422
- let e = Ie(), n = Le(), i = ie ? e / t.stickyDurationMs : 0, a = ae ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = ie ? t.stickyDurationMs - e : 0;
1423
- if (je(), xe({
1420
+ let e = Le(), n = Re(), i = W ? e / t.stickyDurationMs : 0, a = oe ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = W ? t.stickyDurationMs - e : 0;
1421
+ if (Ne(), Ce({
1424
1422
  active: !0,
1425
1423
  progress: o,
1426
1424
  remainingMs: s
1427
1425
  }), i >= 1 || a >= 1) {
1428
- Ue();
1426
+ We();
1429
1427
  return;
1430
1428
  }
1431
- le = r.requestAnimationFrame(We);
1432
- }, Ge = () => {
1433
- if (!oe || U !== "pending" || !P) return;
1434
- Pe();
1435
- let e = $().getBoundingClientRect();
1436
- ce = Math.max(0, r.scrollY + e.top - t.stickyTop), W = 0, U = "active", se = r.performance.now(), je(), We();
1429
+ de = r.requestAnimationFrame(Ge);
1437
1430
  }, Ke = () => {
1438
- !oe || U !== "pending" || !P || $().getBoundingClientRect().top <= t.stickyTop && Ge();
1431
+ if (!se || G !== "pending" || !L) return;
1432
+ let e = $().getBoundingClientRect();
1433
+ ue = Math.max(0, r.scrollY + e.top - t.stickyTop), le = 0, G = "active", ce = r.performance.now(), Ne(), Ge();
1439
1434
  }, qe = () => {
1440
- U === "pending" ? Ke() : U === "active" && Be() ? Ve() : U === "paused" && He(), U !== "active" && De();
1435
+ !se || G !== "pending" || !L || $().getBoundingClientRect().top <= t.stickyTop && Ke();
1441
1436
  }, Je = () => {
1442
- if (!oe || U !== "pending" || !P) {
1443
- G = null;
1444
- return;
1445
- }
1446
- Ke(), G = U === "pending" ? r.requestAnimationFrame(Je) : null;
1437
+ G === "pending" ? qe() : G === "active" && Ve() ? He() : G === "paused" && Ue(), G !== "active" && ke();
1447
1438
  }, Ye = () => {
1448
- pe();
1439
+ he();
1449
1440
  let e = n.parentElement;
1450
1441
  for (; e && e !== i.body && e !== i.documentElement;) {
1451
1442
  let t = r.getComputedStyle(e);
1452
1443
  if (t.position === "fixed" || t.position === "sticky") {
1453
- V = e, re = e.getAttribute("style");
1444
+ H = e, ae = e.getAttribute("style");
1454
1445
  break;
1455
1446
  }
1456
1447
  e = e.parentElement;
@@ -1458,10 +1449,10 @@ var e = (e, t, n) => {
1458
1449
  let d = n.parentElement;
1459
1450
  for (; d && d !== i.body && d !== i.documentElement;) {
1460
1451
  let e = r.getComputedStyle(d);
1461
- (e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (L.push({
1452
+ (e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (B.push({
1462
1453
  el: d,
1463
1454
  orig: d.getAttribute("style")
1464
- }), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (L.find((e) => e.el === d) || L.push({
1455
+ }), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (B.find((e) => e.el === d) || B.push({
1465
1456
  el: d,
1466
1457
  orig: d.getAttribute("style")
1467
1458
  }), d.style.overflow = "visible"), d = d.parentElement;
@@ -1469,20 +1460,20 @@ var e = (e, t, n) => {
1469
1460
  let m = n.style;
1470
1461
  if (m.setProperty("position", f === u.afr ? "absolute" : "fixed", f === u.afr ? "important" : ""), m.setProperty("top", "0", f === u.afr ? "important" : ""), m.setProperty("left", "0", f === u.afr ? "important" : ""), m.setProperty("width", f === u.afr ? "0" : "100vw", f === u.afr ? "important" : ""), m.setProperty("height", f === u.afr ? "0" : "100dvh", f === u.afr ? "important" : ""), m.setProperty("z-index", f === u.afr ? "0" : String(t.zIndex), f === u.afr ? "important" : ""), m.setProperty("border", "none", f === u.afr ? "important" : ""), m.setProperty("margin", "0", f === u.afr ? "important" : ""), m.setProperty("padding", "0", f === u.afr ? "important" : ""), m.setProperty("display", "block", f === u.afr ? "important" : ""), m.setProperty("opacity", f === u.afr ? "0" : "1", f === u.afr ? "important" : ""), m.setProperty("pointer-events", "none", f === u.afr ? "important" : ""), f === u.afr && l && l !== "about:blank") try {
1471
1462
  let e = new URL(l);
1472
- e.searchParams.set("mfRole", "wallpaper"), F = i.createElement("iframe"), F.src = e.href, F.setAttribute("data-mf-wallpaper-iframe", ""), F.setAttribute("scrolling", "no"), F.setAttribute("frameborder", "0");
1473
- let t = F.style;
1474
- t.setProperty("position", "fixed", "important"), t.setProperty("top", "0", "important"), t.setProperty("left", "0", "important"), t.setProperty("width", "100vw", "important"), t.setProperty("height", "100dvh", "important"), t.setProperty("border", "none", "important"), t.setProperty("margin", "0", "important"), t.setProperty("padding", "0", "important"), t.setProperty("display", "block", "important"), t.setProperty("background", "transparent", "important"), t.setProperty("z-index", "0", "important"), t.setProperty("pointer-events", "none", "important"), i.body.insertBefore(F, i.body.firstChild);
1463
+ e.searchParams.set("mfRole", "wallpaper"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-wallpaper-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
1464
+ let t = R.style;
1465
+ t.setProperty("position", "fixed", "important"), t.setProperty("top", "0", "important"), t.setProperty("left", "0", "important"), t.setProperty("width", "100vw", "important"), t.setProperty("height", "100dvh", "important"), t.setProperty("border", "none", "important"), t.setProperty("margin", "0", "important"), t.setProperty("padding", "0", "important"), t.setProperty("display", "block", "important"), t.setProperty("background", "transparent", "important"), t.setProperty("z-index", "0", "important"), t.setProperty("pointer-events", "none", "important"), i.body.insertBefore(R, i.body.firstChild);
1475
1466
  } catch (e) {
1476
1467
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1477
1468
  }
1478
- if (a.setAttribute("poweredAC", "0.1.87"), _) {
1469
+ if (a.setAttribute("poweredAC", "0.1.88"), _) {
1479
1470
  let e = _.style;
1480
1471
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1481
1472
  }
1482
1473
  let h = a.style;
1483
- h.height = t.billboardHeight + "px", h.minHeight = t.billboardHeight + "px", h.background = "transparent", h.overflow = "visible", h.position = "relative", h.width = "100%", h.padding = "0", h.margin = "0", y && (y.style.overflow = "visible", y.style.position = "relative", y.style.backgroundColor = "transparent", y.style.height = t.billboardHeight + "px", y.style.minHeight = t.billboardHeight + "px", y.style.maxHeight = t.billboardHeight + "px", y.style.padding = "0", y.style.margin = "0", y.setAttribute("data-mf-slot", ""));
1474
+ h.height = t.billboardHeight + "px", h.minHeight = t.billboardHeight + "px", h.background = "transparent", h.overflow = "visible", h.position = "relative", h.width = "100%", h.padding = "0", h.margin = "0", y && (y.style.overflow = "visible", y.style.position = "relative", y.style.backgroundColor = "transparent", y.style.height = t.billboardHeight + "px", y.style.minHeight = t.billboardHeight + "px", y.style.maxHeight = t.billboardHeight + "px", y.style.padding = "0", y.style.margin = "0", x && S && S !== "0px" && (y.style.marginTop = S), y.setAttribute("data-mf-slot", ""));
1484
1475
  let g = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, v = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
1485
- if (N = i.createElement("style"), N.id = "mobilefireplace-pac", N.textContent = `
1476
+ if (I = i.createElement("style"), I.id = "mobilefireplace-pac", I.textContent = `
1486
1477
  /* Mobile Fireplace — powered-ad-config */
1487
1478
  html, body {
1488
1479
  background-color: transparent !important;
@@ -1505,6 +1496,11 @@ var e = (e, t, n) => {
1505
1496
  margin-right: ${v} !important;
1506
1497
  }
1507
1498
  /* Header, nav and network nav stay full-width — no side margin, keep own background */
1499
+ #app > [data-ad-target="header"],
1500
+ #app [data-ad-target="header-nav"],
1501
+ #app [data-ad-target="header-nav"] nav,
1502
+ #app > [data-ad-target="header-ad-desktop"],
1503
+ #app > [data-ad-target="header-ad-mobile"],
1508
1504
  body > * > header,
1509
1505
  body > * > nav,
1510
1506
  body > * > [data-network-nav],
@@ -1512,6 +1508,49 @@ var e = (e, t, n) => {
1512
1508
  margin-left: 0 !important;
1513
1509
  margin-right: 0 !important;
1514
1510
  }
1511
+ #app > [data-ad-target="header"] {
1512
+ left: 0 !important;
1513
+ right: auto !important;
1514
+ width: 100vw !important;
1515
+ max-width: 100vw !important;
1516
+ margin: 0 !important;
1517
+ transform: none !important;
1518
+ z-index: 1075 !important;
1519
+ box-sizing: border-box !important;
1520
+ }
1521
+ #app > [data-ad-target="header"] [data-ad-target="header-nav"] {
1522
+ width: 100% !important;
1523
+ max-width: 100% !important;
1524
+ box-sizing: border-box !important;
1525
+ }
1526
+ #app > [data-ad-target="header-ad-mobile"] {
1527
+ background-color: transparent !important;
1528
+ box-sizing: border-box !important;
1529
+ overflow: visible !important;
1530
+ width: 100% !important;
1531
+ max-width: 100% !important;
1532
+ z-index: 1 !important;
1533
+ }
1534
+ #app > [data-ad-target="page-container"],
1535
+ #app > [data-ad-target="footer"] {
1536
+ box-sizing: border-box !important;
1537
+ }
1538
+ #app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child {
1539
+ margin-left: -16px !important;
1540
+ margin-right: -16px !important;
1541
+ width: calc(100% + 32px) !important;
1542
+ max-width: calc(100% + 32px) !important;
1543
+ box-sizing: border-box !important;
1544
+ }
1545
+ #app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child > a {
1546
+ margin-left: 0 !important;
1547
+ margin-right: 0 !important;
1548
+ width: 100% !important;
1549
+ max-width: 100% !important;
1550
+ padding-left: 16px !important;
1551
+ padding-right: 16px !important;
1552
+ box-sizing: border-box !important;
1553
+ }
1515
1554
  iframe[id^="google_ads_iframe_"][style*="position: fixed"]:not([data-mf-billboard-iframe]),
1516
1555
  [data-mf-wallpaper-iframe] {
1517
1556
  z-index: 0 !important;
@@ -1623,16 +1662,24 @@ var e = (e, t, n) => {
1623
1662
  }
1624
1663
  ` : ""}
1625
1664
  /* The mobilefireplace slot wrapper — transparent, full-width, no margins */
1626
- [data-mf-slot],
1665
+ [data-mf-slot]:not([data-ad-target="header-ad-mobile"]),
1627
1666
  [data-mf-slot] > * {
1628
1667
  background-color: transparent !important;
1629
1668
  z-index: auto !important;
1630
1669
  margin: 0 !important;
1631
1670
  padding: 0 !important;
1632
1671
  }
1672
+ [data-mf-slot][data-ad-target="header-ad-mobile"] {
1673
+ background-color: transparent !important;
1674
+ z-index: 1 !important;
1675
+ margin-left: 0 !important;
1676
+ margin-right: 0 !important;
1677
+ margin-bottom: 0 !important;
1678
+ padding: 0 !important;
1679
+ }
1633
1680
  /* The ad slot itself stays transparent */
1634
- #adspot-mobile-mbanner-2-above,
1635
- #adspot-mobile-mbanner-2-above > * {
1681
+ [id^="adspot-mobile-mbanner-"],
1682
+ [id^="adspot-mobile-mbanner-"] > * {
1636
1683
  background-color: transparent !important;
1637
1684
  z-index: auto !important;
1638
1685
  margin: 0 !important;
@@ -1646,50 +1693,50 @@ var e = (e, t, n) => {
1646
1693
  margin: 0 !important;
1647
1694
  padding: 0 !important;
1648
1695
  }
1649
- `, i.head.appendChild(N), f.setup && f.setup(i, a), f === u.wwos) {
1650
- let e = ge();
1651
- e && (k = e.el, A = k.getAttribute("style"), j = e.list, M = j ? j.getAttribute("style") : null, k.style.marginLeft = "10px", k.style.marginRight = "10px", k.style.width = "calc(100% - 20px)", j && (j.style.width = "100%"));
1696
+ `, i.head.appendChild(I), f.setup && f.setup(i, a), f === u.wwos) {
1697
+ let e = ve();
1698
+ e && (M = e.el, N = M.getAttribute("style"), P = e.list, F = P ? P.getAttribute("style") : null, M.style.marginLeft = "10px", M.style.marginRight = "10px", M.style.width = "calc(100% - 20px)", P && (P.style.width = "100%"));
1652
1699
  }
1653
- if (o && f !== u.afr && (V || p)) {
1654
- if (V && (z = c || y), l && l !== "about:blank") {
1700
+ if (o && f !== u.afr && (H || p)) {
1701
+ if (H && (ne = c || y), l && l !== "about:blank") {
1655
1702
  let e = new URL(l);
1656
- e.searchParams.set("mfRole", "wallpaper"), F = i.createElement("iframe"), F.src = e.href, F.setAttribute("data-mf-wallpaper-iframe", ""), F.setAttribute("scrolling", "no"), F.setAttribute("frameborder", "0");
1657
- let n = F.style;
1658
- n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(F, i.body.firstChild);
1703
+ e.searchParams.set("mfRole", "wallpaper"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-wallpaper-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
1704
+ let n = R.style;
1705
+ n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(R, i.body.firstChild);
1659
1706
  }
1660
- n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", I = he(), o.parentElement.insertBefore(I, o), V ? (V.style.position = "static", V.style.inset = "auto", V.style.height = "0", V.style.minHeight = "0", V.style.maxHeight = "0", V.style.overflow = "hidden", V.style.backgroundColor = "transparent", V.style.boxShadow = "none", V.style.border = "0", V.style.outline = "0", V.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1661
- for (let { el: e } of ee) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1662
- C && (C.style.borderTop = "0", C.style.outline = "0", C.style.boxShadow = "none"), T && (T.style.borderBottom = "0"), D && (D.style.marginLeft = "14px", D.style.marginRight = "14px", D.style.position = "relative", D.style.zIndex = "2"), pe();
1707
+ n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", z = _e(), o.parentElement.insertBefore(z, o), H ? (H.style.position = "static", H.style.inset = "auto", H.style.height = "0", H.style.minHeight = "0", H.style.maxHeight = "0", H.style.overflow = "hidden", H.style.backgroundColor = "transparent", H.style.boxShadow = "none", H.style.border = "0", H.style.outline = "0", H.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1708
+ for (let { el: e } of j) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1709
+ E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), k && (k.style.marginLeft = "14px", k.style.marginRight = "14px", k.style.position = "relative", k.style.zIndex = "2"), he();
1663
1710
  }
1664
- I || (I = he(), a.appendChild(I));
1711
+ z || (z = _e(), a.appendChild(z));
1665
1712
  }, Xe = null, Ze = null, Qe = !1, $e = () => {
1666
1713
  let e = r.innerWidth, n = r.innerHeight;
1667
1714
  if (e > n) {
1668
1715
  let r = n / e, i = Math.round(t.billboardHeight * r);
1669
- a.style.height = i + "px", a.style.minHeight = i + "px", I && (I.style.height = i + "px", I.style.minHeight = i + "px", I.style.maxHeight = i + "px"), P && (P.style.height = i + "px");
1670
- } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", I && (I.style.height = t.billboardHeight + "px", I.style.minHeight = t.billboardHeight + "px", I.style.maxHeight = t.billboardHeight + "px"), P && (P.style.height = t.billboardHeight + "px");
1671
- U === "active" ? je() : De();
1716
+ a.style.height = i + "px", a.style.minHeight = i + "px", z && (z.style.height = i + "px", z.style.minHeight = i + "px", z.style.maxHeight = i + "px"), L && (L.style.height = i + "px");
1717
+ } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", z && (z.style.height = t.billboardHeight + "px", z.style.minHeight = t.billboardHeight + "px", z.style.maxHeight = t.billboardHeight + "px"), L && (L.style.height = t.billboardHeight + "px");
1718
+ G === "active" ? Ne() : ke();
1672
1719
  };
1673
1720
  if (Ye(), l && l !== "about:blank") try {
1674
1721
  let e = new URL(l);
1675
- e.searchParams.set("mfRole", "billboard"), P = i.createElement("iframe"), P.src = e.href, P.setAttribute("data-mf-billboard-iframe", ""), P.setAttribute("scrolling", "no"), P.setAttribute("frameborder", "0");
1676
- let n = P.style;
1677
- n.position = X ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = X ? "6" : "1", X ? (P.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(P), Ee()) : (I || a).appendChild(P), oe && (J = qe, r.addEventListener("scroll", J, { passive: !0 }), G = r.requestAnimationFrame(Je));
1722
+ e.searchParams.set("mfRole", "billboard"), L = i.createElement("iframe"), L.src = e.href, L.setAttribute("data-mf-billboard-iframe", ""), L.setAttribute("scrolling", "no"), L.setAttribute("frameborder", "0");
1723
+ let n = L.style;
1724
+ n.position = X ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = X ? "6" : "1", X ? (L.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(L), Oe()) : (z || a).appendChild(L), se && (J = Je, r.addEventListener("scroll", J, { passive: !0 }));
1678
1725
  } catch (e) {
1679
1726
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1680
1727
  }
1681
1728
  r.__mfBridge = {
1682
1729
  adapted: !1,
1683
- wallpaperWindow: F?.contentWindow || n.contentWindow,
1684
- billboardIframe: P,
1730
+ wallpaperWindow: R?.contentWindow || n.contentWindow,
1731
+ billboardIframe: L,
1685
1732
  billboardWindow: null
1686
- }, F && F.addEventListener("load", () => {
1733
+ }, R && R.addEventListener("load", () => {
1687
1734
  try {
1688
- r.__mfBridge && (r.__mfBridge.wallpaperWindow = F.contentWindow);
1735
+ r.__mfBridge && (r.__mfBridge.wallpaperWindow = R.contentWindow);
1689
1736
  } catch {}
1690
- }), P && P.addEventListener("load", () => {
1737
+ }), L && L.addEventListener("load", () => {
1691
1738
  try {
1692
- r.__mfBridge.billboardWindow = P.contentWindow;
1739
+ r.__mfBridge.billboardWindow = L.contentWindow;
1693
1740
  } catch {}
1694
1741
  }), Xe = $e, r.addEventListener("resize", Xe), $e(), Ze = () => {
1695
1742
  et();
@@ -1698,23 +1745,23 @@ var e = (e, t, n) => {
1698
1745
  });
1699
1746
  let et = () => {
1700
1747
  if (!Qe) {
1701
- Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), J &&= (r.removeEventListener("scroll", J), null), Ne(), Pe(), K &&= (r.cancelAnimationFrame(K), null), q &&= (r.clearTimeout(q), null), xe({
1748
+ Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), J &&= (r.removeEventListener("scroll", J), null), Fe(), K &&= (r.cancelAnimationFrame(K), null), q &&= (r.clearTimeout(q), null), Ce({
1702
1749
  active: !1,
1703
1750
  progress: 1,
1704
1751
  remainingMs: 0
1705
- }), N && N.parentNode && (N.parentNode.removeChild(N), N = null), P && P.parentNode && (P.parentNode.removeChild(P), P = null), Z = null, Q = null, I && I.parentNode && (I.parentNode.removeChild(I), I = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null);
1752
+ }), I && I.parentNode && (I.parentNode.removeChild(I), I = null), L && L.parentNode && (L.parentNode.removeChild(L), L = null), Z = null, Q = null, z && z.parentNode && (z.parentNode.removeChild(z), z = null), R && R.parentNode && (R.parentNode.removeChild(R), R = null);
1706
1753
  try {
1707
1754
  delete r.__mfBridge;
1708
1755
  } catch {}
1709
- for (let e = H.length - 1; e >= 0; --e) {
1710
- let { shell: t, parent: n, nextSibling: r } = H[e];
1756
+ for (let e = U.length - 1; e >= 0; --e) {
1757
+ let { shell: t, parent: n, nextSibling: r } = U[e];
1711
1758
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1712
1759
  }
1713
- H.length = 0, R && (te && te.parentNode === R ? R.insertBefore(n, te) : R.appendChild(n), R = null, te = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1714
- for (let { el: e, orig: t } of L) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1715
- L.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), z &&= (B && (ne && ne.parentNode === B ? B.insertBefore(z, ne) : B.appendChild(z), B = null, ne = null), null), y && (y.removeAttribute("data-mf-slot"), b ? y.setAttribute("style", b) : y.removeAttribute("style")), V && (re ? V.setAttribute("style", re) : V.removeAttribute("style"), V = null, re = null);
1716
- for (let { el: e, orig: t } of ee) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1717
- j && (M ? j.setAttribute("style", M) : j.removeAttribute("style"), j = null, M = null), k && (A ? k.setAttribute("style", A) : k.removeAttribute("style"), k = null, A = null), o && (S ? o.setAttribute("style", S) : o.removeAttribute("style")), C && (w ? C.setAttribute("style", w) : C.removeAttribute("style")), T && (E ? T.setAttribute("style", E) : T.removeAttribute("style")), D && (O ? D.setAttribute("style", O) : D.removeAttribute("style")), s && (x ? s.setAttribute("style", x) : s.removeAttribute("style"));
1760
+ U.length = 0, V && (te && te.parentNode === V ? V.insertBefore(n, te) : V.appendChild(n), V = null, te = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1761
+ for (let { el: e, orig: t } of B) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1762
+ B.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), ne &&= (re && (ie && ie.parentNode === re ? re.insertBefore(ne, ie) : re.appendChild(ne), re = null, ie = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), H && (ae ? H.setAttribute("style", ae) : H.removeAttribute("style"), H = null, ae = null);
1763
+ for (let { el: e, orig: t } of j) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1764
+ P && (F ? P.setAttribute("style", F) : P.removeAttribute("style"), P = null, F = null), M && (N ? M.setAttribute("style", N) : M.removeAttribute("style"), M = null, N = null), o && (T ? o.setAttribute("style", T) : o.removeAttribute("style")), E && (D ? E.setAttribute("style", D) : E.removeAttribute("style")), O && (ee ? O.setAttribute("style", ee) : O.removeAttribute("style")), k && (A ? k.setAttribute("style", A) : k.removeAttribute("style")), s && (w ? s.setAttribute("style", w) : s.removeAttribute("style"));
1718
1765
  }
1719
1766
  };
1720
1767
  return et;
@@ -1724,6 +1771,6 @@ function L({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight:
1724
1771
  let o = () => {};
1725
1772
  return e === "fireplace" ? o = d(t) : e === "fireplace-collant" ? o = f(t) : e === "logomorph" ? o = j(n, r, i) : e === "dynamicheading" ? o = A(a) : e === "interscroller" ? o = N(a) : e === "liquidframe" ? o = P(a) : e === "mobilefireplace" ? o = F(a) : console.warn("[powered-ad-config] Unknown ad format:", e), I = typeof o == "function" ? o : () => {}, I;
1726
1773
  }
1727
- L.version = "0.1.87";
1774
+ L.version = "0.1.88";
1728
1775
  //#endregion
1729
1776
  export { L as default };
@@ -128,7 +128,7 @@
128
128
  max-width: 100% !important;
129
129
  overflow: visible !important;
130
130
  }
131
- `),o(h.length>0?h:f.filter(e=>e!==d&&e!==p),[[`position`,`relative`],[`zIndex`,`1071`]]),o(a([...g,...Array.from(r.querySelectorAll(`main, aside, article, footer, [id*="adspot-desktop-banner-"]`))]),[[`position`,`relative`],[`zIndex`,`1072`]]),o(_,[[`zIndex`,`1072`]]);let b=s(r.querySelector(`footer`),`div`);b&&(b.style.position=`relative`),C(r)}},E=[{site:`https://www.nine.com.au/sport`,config:T},{site:`https://www.nine.com.au/entertainment`,config:w},{site:`https://staging.nine.com.au/sport`,config:T},{site:`https://staging.nine.com.au/entertainment`,config:w},{site:`https://www.nine.com.au`,config:w},{site:`https://www.nine`,config:w},{site:`https://staging.nine`,config:w},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_}],D=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=F.siteBackgroundColor),j(),A(),k(),p.addEventListener(`scroll`,P),I=setTimeout(P,50),F===w||F===T){let e=F===w?x():null,t=e?.appRoot||S()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&p.MutationObserver&&(g=new p.MutationObserver(()=>{N()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),p.addEventListener(`resize`,N),N()}},O=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},ee=()=>{let e=p.location.href;for(let t=0;t<E.length;t+=1)if(e.indexOf(E[t].site)>=0)return E[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n.includes(`yourtv`))return _;if(r.startsWith(`/sport`))return T}catch{return w}return w},k=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&p.getComputedStyle(t).position===`sticky`){t.style.top=`${F.stickyMargin.offset}px`;break}},A=()=>{if(!f)return;let e=f.style;e.width=F.iframeWidth||`100%`,e.height=F.iframeHeight||l,e.backgroundColor=F.iframeBackgroundColor||u,e.position=`fixed`,F.iframeTop==null?e.removeProperty(`top`):e.top=F.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=f.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=p.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},j=()=>{let e=O();if(!e)return;c(e,`0.1.87`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=F.adNodeMarginTop+`px`,t.marginBottom=F.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,F.zIndex&&F.zIndex()},M=()=>{let e=p.scrollY,t=f.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=L?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>L&&e<=R?(t.transform=`translate(-50%, ${-L}px)`,n.transform=`translateY(${L-e}px)`):e>R&&(t.transform=`translate(-50%, ${-L}px)`,n.transform=`translateY(-250px)`)},N=()=>{F!==w&&F!==T||h||(h=p.requestAnimationFrame(()=>{h=null,A(),j(),k(),M()}))},P=()=>{M()};O();let F=ee();if(!F)return()=>{};let I=null,L=d,R=L+250;return D(),()=>{p.removeEventListener(`scroll`,P),p.removeEventListener(`resize`,N),g&&=(g.disconnect(),null),h&&=(p.cancelAnimationFrame(h),null),I&&=(clearTimeout(I),null)}},f=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
131
+ `),o(h.length>0?h:f.filter(e=>e!==d&&e!==p),[[`position`,`relative`],[`zIndex`,`1071`]]),o(a([...g,...Array.from(r.querySelectorAll(`main, aside, article, footer, [id*="adspot-desktop-banner-"]`))]),[[`position`,`relative`],[`zIndex`,`1072`]]),o(_,[[`zIndex`,`1072`]]);let b=s(r.querySelector(`footer`),`div`);b&&(b.style.position=`relative`),C(r)}},E=[{site:`https://www.nine.com.au/sport`,config:T},{site:`https://www.nine.com.au/entertainment`,config:w},{site:`https://staging.nine.com.au/sport`,config:T},{site:`https://staging.nine.com.au/entertainment`,config:w},{site:`https://www.nine.com.au`,config:w},{site:`https://www.nine`,config:w},{site:`https://staging.nine`,config:w},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_}],D=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=F.siteBackgroundColor),j(),A(),k(),p.addEventListener(`scroll`,P),I=setTimeout(P,50),F===w||F===T){let e=F===w?x():null,t=e?.appRoot||S()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&p.MutationObserver&&(g=new p.MutationObserver(()=>{N()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),p.addEventListener(`resize`,N),N()}},O=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},ee=()=>{let e=p.location.href;for(let t=0;t<E.length;t+=1)if(e.indexOf(E[t].site)>=0)return E[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n.includes(`yourtv`))return _;if(r.startsWith(`/sport`))return T}catch{return w}return w},k=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&p.getComputedStyle(t).position===`sticky`){t.style.top=`${F.stickyMargin.offset}px`;break}},A=()=>{if(!f)return;let e=f.style;e.width=F.iframeWidth||`100%`,e.height=F.iframeHeight||l,e.backgroundColor=F.iframeBackgroundColor||u,e.position=`fixed`,F.iframeTop==null?e.removeProperty(`top`):e.top=F.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=f.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=p.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},j=()=>{let e=O();if(!e)return;c(e,`0.1.88`);let t=e.style;e.className&&=``,t.minHeight=`250px`,t.marginTop=F.adNodeMarginTop+`px`,t.marginBottom=F.adNodeMarginBottom+`px`,t.position=`static`,t.display=`block`,F.zIndex&&F.zIndex()},M=()=>{let e=p.scrollY,t=f.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=L?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>L&&e<=R?(t.transform=`translate(-50%, ${-L}px)`,n.transform=`translateY(${L-e}px)`):e>R&&(t.transform=`translate(-50%, ${-L}px)`,n.transform=`translateY(-250px)`)},N=()=>{F!==w&&F!==T||h||(h=p.requestAnimationFrame(()=>{h=null,A(),j(),k(),M()}))},P=()=>{M()};O();let F=ee();if(!F)return()=>{};let I=null,L=d,R=L+250;return D(),()=>{p.removeEventListener(`scroll`,P),p.removeEventListener(`resize`,N),g&&=(g.disconnect(),null),h&&=(p.cancelAnimationFrame(h),null),I&&=(clearTimeout(I),null)}},f=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
132
132
  div:has(#adspot-tablet-takeover-2-above) {
133
133
  position: static;
134
134
  }
@@ -191,9 +191,9 @@
191
191
  transform: translateX(-50%) !important;
192
192
  z-index: 1089 !important;
193
193
  }
194
- `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},S=[{site:`https://www.nine.com.au/sport`,config:x},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:x},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://www.nine.com.au`,config:b},{site:`https://www.nine`,config:b},{site:`https://staging.nine`,config:b},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y}],C=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=P.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),ee(),O(),E(),k(),l.addEventListener(`scroll`,M,{passive:!0}),F=setTimeout(M,50)},w=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},T=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},E=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${P.stickyMargin.offset}px`;break}},D=()=>{let e=l.location.href;for(let t=0;t<S.length;t+=1)if(e.indexOf(S[t].site)>=0)return S[t].config},O=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},ee=()=>{if(!N)return;let e=N.style;N.className=``,e.minHeight=`250px`,e.marginTop=P.adNodeMarginTop+`px`,e.marginBottom=P.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,P.zIndex&&P.zIndex()},k=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=P.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},A=0,j=0,M=()=>{let e=l.scrollY,t=e>A,n=e>L?e-P.maskOffset:0,r=Math.abs(n-j);if(p)if(t&&n>j)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);A=e,j=n,e>L?(c.style.setProperty(`--transform-y`,`${-I}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>I&&e<=L?(c.style.setProperty(`--transform-y`,`${-I}px`),f.setProperty(`--masthead-height`,`${250+I-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=I&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},N=w(),P=D();if(!P)return()=>{};let F=null,I=-P.responsiveScroll+o+T(),L=I+150;return C(),()=>{l.removeEventListener(`scroll`,M),F&&=(clearTimeout(F),null)}},p=866,m=68,h=16,g=`:scope > header h1, :scope > header h2, :scope > header h3`,_=`h1, h2, h3`,v=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,y=`adspot-desktop-takeover-2-above`,b=-24,x=-24,S=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],C=[{hostnames:S,path:`/sport`,headingText:`Sport`,slotId:y}],w=new Set([`localhost`,`127.0.0.1`]),T=`__poweredAdConfigDynamicHeadingActive`,E=`data-pac-dynamicheading-owner`,D=`data-pac-reparented`,O=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},ee=e=>{if(!e||typeof e!=`object`)return null;let t=typeof e.headingText==`string`?e.headingText.trim():``,n=typeof e.path==`string`?e.path.trim().toLowerCase():``,r=typeof e.pathPrefix==`string`?e.pathPrefix.trim().toLowerCase():``,i=Array.isArray(e.hostnames)?e.hostnames.map(e=>String(e).trim().toLowerCase()).filter(Boolean):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():y,hostnames:i.length?i:S}},k=e=>{if(!Array.isArray(e)||e.length===0)return C;let t=e.map(ee).filter(Boolean);return t.length?t:C},A=({offsetTop:e=b,offsetLeft:t=x,width:n=p,height:i=m,pageTargets:a=C}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[T];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return w.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},y=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},S=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return te.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}return null},ee=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},A=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},j=()=>{let e=ee(),t=e?[...e.querySelectorAll(g),...e.querySelectorAll(_)]:[],n=t.length?[]:Array.from(c.querySelectorAll(v));return Array.from(new Set([...t,...n])).filter(A)},M=e=>{let t=j();if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},N=null,P=null;f();let F=O(e,b),I=O(t,x),L=O(n,p),R=O(i,m),te=k(a),z=S();if(!z)return()=>{};let B=y((z.slotId?c.getElementById(z.slotId):null)||o.parentElement);if(!B)return()=>{};let ne=B.getAttribute(E);if(ne&&ne!==u)return()=>{};let V={width:B.style.width,maxWidth:B.style.maxWidth,minWidth:B.style.minWidth,height:B.style.height,minHeight:B.style.minHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom,marginLeft:B.style.marginLeft,marginRight:B.style.marginRight,position:B.style.position,top:B.style.top,left:B.style.left,right:B.style.right,transform:B.style.transform,display:B.style.display,opacity:B.style.opacity,transition:B.style.transition,pointerEvents:B.style.pointerEvents,zIndex:B.style.zIndex,overflow:B.style.overflow},re={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},H=[],ie=parseFloat(R)||m,ae=parseFloat(F)||0,oe=parseFloat(I)||0,U=()=>{let e=B.parentElement;for(;e&&e!==c.body;)H.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},se=()=>{d(B,`width`,L),d(B,`maxWidth`,L),d(B,`minWidth`,L),d(B,`height`,R),d(B,`minHeight`,R),d(B,`display`,`block`),d(B,`overflow`,`hidden`),d(B,`pointerEvents`,`none`),d(B,`zIndex`,`1080`),B.setAttribute(E,u),d(o,`width`,L),d(o,`height`,R),d(o,`display`,`block`),d(o,`border`,`0`),d(o,`position`,`relative`),d(o,`pointerEvents`,`auto`)},W={element:null,position:``},ce=()=>{let e=B.parentElement;e&&s.getComputedStyle(e).position===`static`&&(W.element=e,W.position=e.style.position,d(e,`position`,`relative`)),d(B,`position`,`absolute`),d(B,`top`,`${ae}px`),d(B,`left`,`${oe}px`),d(B,`right`,`auto`),d(B,`marginTop`,`0px`),d(B,`marginBottom`,`${h}px`),d(B,`marginLeft`,`0px`),d(B,`marginRight`,`0px`),d(B,`transform`,``)},le=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
194
+ `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},S=[{site:`https://www.nine.com.au/sport`,config:x},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:x},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://www.nine.com.au`,config:b},{site:`https://www.nine`,config:b},{site:`https://staging.nine`,config:b},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y}],C=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=P.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),ee(),O(),E(),k(),l.addEventListener(`scroll`,M,{passive:!0}),F=setTimeout(M,50)},w=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},T=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},E=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${P.stickyMargin.offset}px`;break}},D=()=>{let e=l.location.href;for(let t=0;t<S.length;t+=1)if(e.indexOf(S[t].site)>=0)return S[t].config},O=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},ee=()=>{if(!N)return;let e=N.style;N.className=``,e.minHeight=`250px`,e.marginTop=P.adNodeMarginTop+`px`,e.marginBottom=P.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,P.zIndex&&P.zIndex()},k=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=P.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},A=0,j=0,M=()=>{let e=l.scrollY,t=e>A,n=e>L?e-P.maskOffset:0,r=Math.abs(n-j);if(p)if(t&&n>j)if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`);else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`);A=e,j=n,e>L?(c.style.setProperty(`--transform-y`,`${-I}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>I&&e<=L?(c.style.setProperty(`--transform-y`,`${-I}px`),f.setProperty(`--masthead-height`,`${250+I-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=I&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},N=w(),P=D();if(!P)return()=>{};let F=null,I=-P.responsiveScroll+o+T(),L=I+150;return C(),()=>{l.removeEventListener(`scroll`,M),F&&=(clearTimeout(F),null)}},p=866,m=68,h=16,g=`:scope > header h1, :scope > header h2, :scope > header h3`,_=`h1, h2, h3`,v=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,y=`adspot-desktop-takeover-2-above`,b=-24,x=-24,S=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],C=[{hostnames:S,path:`/sport`,headingText:`Sport`,slotId:y}],w=new Set([`localhost`,`127.0.0.1`]),T=`__poweredAdConfigDynamicHeadingActive`,E=`data-pac-dynamicheading-owner`,D=`data-pac-reparented`,O=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},ee=e=>{if(!e||typeof e!=`object`)return null;let t=typeof e.headingText==`string`?e.headingText.trim():``,n=typeof e.path==`string`?e.path.trim().toLowerCase():``,r=typeof e.pathPrefix==`string`?e.pathPrefix.trim().toLowerCase():``,i=Array.isArray(e.hostnames)?e.hostnames.map(e=>String(e).trim().toLowerCase()).filter(Boolean):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():y,hostnames:i.length?i:S}},k=e=>{if(!Array.isArray(e)||e.length===0)return C;let t=e.map(ee).filter(Boolean);return t.length?t:C},A=({offsetTop:e=b,offsetLeft:t=x,width:n=p,height:i=m,pageTargets:a=C}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[T];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return w.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},y=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},S=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return z.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}return null},ee=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},A=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},j=()=>{let e=ee(),t=e?[...e.querySelectorAll(g),...e.querySelectorAll(_)]:[],n=t.length?[]:Array.from(c.querySelectorAll(v));return Array.from(new Set([...t,...n])).filter(A)},M=e=>{let t=j();if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},N=null,P=null;f();let F=O(e,b),I=O(t,x),L=O(n,p),R=O(i,m),z=k(a),B=S();if(!B)return()=>{};let V=y((B.slotId?c.getElementById(B.slotId):null)||o.parentElement);if(!V)return()=>{};let te=V.getAttribute(E);if(te&&te!==u)return()=>{};let ne={width:V.style.width,maxWidth:V.style.maxWidth,minWidth:V.style.minWidth,height:V.style.height,minHeight:V.style.minHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom,marginLeft:V.style.marginLeft,marginRight:V.style.marginRight,position:V.style.position,top:V.style.top,left:V.style.left,right:V.style.right,transform:V.style.transform,display:V.style.display,opacity:V.style.opacity,transition:V.style.transition,pointerEvents:V.style.pointerEvents,zIndex:V.style.zIndex,overflow:V.style.overflow},re={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},ie=[],H=parseFloat(R)||m,ae=parseFloat(F)||0,U=parseFloat(I)||0,W=()=>{let e=V.parentElement;for(;e&&e!==c.body;)ie.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},oe=()=>{d(V,`width`,L),d(V,`maxWidth`,L),d(V,`minWidth`,L),d(V,`height`,R),d(V,`minHeight`,R),d(V,`display`,`block`),d(V,`overflow`,`hidden`),d(V,`pointerEvents`,`none`),d(V,`zIndex`,`1080`),V.setAttribute(E,u),d(o,`width`,L),d(o,`height`,R),d(o,`display`,`block`),d(o,`border`,`0`),d(o,`position`,`relative`),d(o,`pointerEvents`,`auto`)},se={element:null,position:``},G=()=>{let e=V.parentElement;e&&s.getComputedStyle(e).position===`static`&&(se.element=e,se.position=e.style.position,d(e,`position`,`relative`)),d(V,`position`,`absolute`),d(V,`top`,`${ae}px`),d(V,`left`,`${U}px`),d(V,`right`,`auto`),d(V,`marginTop`,`0px`),d(V,`marginBottom`,`${h}px`),d(V,`marginLeft`,`0px`),d(V,`marginRight`,`0px`),d(V,`transform`,``)},ce=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
195
195
  `),i=Array.from(e.querySelectorAll(`script[src]`)).filter(e=>{let t=e.getAttribute(`src`)||``;return/(s0\.2mdn\.net|cdn\.jsdelivr\.net|players\.brightcove\.net)/.test(t)}).map(e=>e.outerHTML).join(`
196
- `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(D,`1`);try{e.parentNode?.insertBefore(B,e)}catch{return o.removeAttribute(D),!1}U(),se(),ce();try{o.srcdoc=t}catch{return!1}return!0},G=()=>{d(B,`position`,`fixed`),d(B,`marginTop`,`0px`),d(B,`marginBottom`,`0px`),d(B,`marginLeft`,`0px`),d(B,`marginRight`,`0px`),d(B,`transform`,``)},K=()=>{d(B,`display`,`none`)},q=()=>{d(B,`display`,`block`),d(B,`overflow`,`hidden`)},J=null,Y=()=>{if((!J||!J.isConnected)&&(J=M(z.headingText)),!J)return;let e=J.getBoundingClientRect(),t=e.top-ie-h+ae,n=e.left+oe;d(B,`top`,`${t}px`),d(B,`left`,`${n}px`),d(B,`right`,`auto`)},ue=null,X=null,Z=!1,Q=(e=12)=>{if(J=M(z.headingText),!J){e>1&&(P=s.setTimeout(()=>Q(e-1),250));return}le(J)||(Z=!0,U(),se(),G(),Y(),ue=()=>Y(),X=()=>Y(),s.addEventListener(`scroll`,ue,{passive:!0}),s.addEventListener(`resize`,X))};Q();let de=()=>{P&&=(s.clearTimeout(P),null),N&&=(s.clearTimeout(N),null),ue&&=(s.removeEventListener(`scroll`,ue),null),X&&=(s.removeEventListener(`resize`,X),null),B.getAttribute(E)===u&&B.removeAttribute(E),Z&&(Object.entries(V).forEach(([e,t])=>{B.style[e]=t}),Object.entries(re).forEach(([e,t])=>{o.style[e]=t}),H.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[T]?.instanceId===u&&delete s[T]};return s[T]={instanceId:u,iframe:o,cleanup:de,show:q,hide:K},de},j=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},M=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),N=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:M,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.87`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},P=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.87`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},F=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=y?y.getAttribute(`style`):null,x=s?s.getAttribute(`style`):null,S=o?o.getAttribute(`style`):null,C=o?o.querySelector(`header`):null,w=C?C.getAttribute(`style`):null,T=C?C.querySelector(`.sc-5cbbddda-1`):null,E=T?T.getAttribute(`style`):null,D=i.querySelector(`footer`),O=D?D.getAttribute(`style`):null,ee=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],k=null,A=null,j=null,M=null,N=null,P=null,F=null,I=null,L=[],R=null,te=null,z=null,B=null,ne=null,V=null,re=null,H=[],ie=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,ae=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,oe=!!(t.sticky&&(ie||ae)),U=`pending`,se=0,W=0,ce=null,le=null,G=null,K=null,q=null,J=null,Y=[],ue=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,X=f===u.afr,Z=null,Q=null,de=e=>{if(!e||e===z||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`#adspot-mobile-mbanner-2-above, iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},fe=e=>{!e?.parentElement||H.some(t=>t.shell===e)||(H.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},pe=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;de(t)&&fe(t)}},me=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(L.find(e=>e.el===t)||L.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},he=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},ge=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>I||a,_e=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),ve=()=>{let e=_e().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},ye=()=>{let e=ve();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,ue||t.stickyTop)},be=()=>{let e=ve();return e?.zIndex&&e.zIndex>2?Math.max(t.stickyZIndex,e.zIndex+1):t.stickyZIndex},xe=({active:e,progress:t=0,remainingMs:n=0})=>{P?.contentWindow&&P.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Se=e=>{!e||Y.some(t=>t.el===e)||Y.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},Ce=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||V||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Se(n),n.style.setProperty(`z-index`,String(e),`important`)},we=()=>X&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||$(),Te=()=>{if(!X||!P)return;let e=P.style;e.left=`0px`,e.width=`100vw`},Ee=()=>{if(!X||!P||U===`active`)return;let e=we();if(!e)return;let t=e.getBoundingClientRect(),n=P.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,Te(),n.setProperty(`z-index`,`6`,`important`),P.removeAttribute(`data-mf-sticky-active`)},De=()=>{X&&(Ee(),K&&r.cancelAnimationFrame(K),K=r.requestAnimationFrame(()=>{K=null,Ee()}),q&&r.clearTimeout(q),q=r.setTimeout(()=>{q=null,Ee()},350))},Oe=()=>{!X||!P||P.parentElement===i.body||(Z=P.parentElement,Q=P.nextSibling,i.body.appendChild(P))},ke=()=>{if(!Z||!P){Z=null,Q=null;return}Q&&Q.parentNode===Z?Z.insertBefore(P,Q):Z.appendChild(P),Z=null,Q=null},Ae=()=>{for(let e=Y.length-1;e>=0;--e){let{el:t,value:n,priority:r}=Y[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}Y.length=0},je=()=>{if(!P)return;me($());let e=$().getBoundingClientRect(),t=be();Ce(t),Oe();let n=P.style;n.position=`fixed`,n.top=`${ye()}px`,X?Te():(n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`),n.setProperty(`z-index`,String(t),`important`),P.setAttribute(`data-mf-sticky-active`,``)},Me=()=>{if(!P)return;if(ke(),X){De(),Ae();return}let e=P.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Ae(),P.removeAttribute(`data-mf-sticky-active`)},Ne=()=>{le&&=(r.cancelAnimationFrame(le),null)},Pe=()=>{G&&=(r.cancelAnimationFrame(G),null)},Fe=()=>{if(ce===null){let e=$().getBoundingClientRect();ce=Math.max(0,r.scrollY+e.top-t.stickyTop)}return ce},Ie=()=>W+(U===`active`?Math.max(0,r.performance.now()-se):0),Le=()=>Math.max(0,r.scrollY-Fe()),Re=()=>{let e=ie?Ie()/t.stickyDurationMs:0,n=ae?Le()/t.stickyScrollDistance:0;return Math.max(e,n)},ze=()=>ie?t.stickyDurationMs-Ie():0,Be=()=>r.scrollY<Fe()-1,Ve=()=>{U===`active`&&(W=Ie(),U=`paused`,Ne(),Me(),xe({active:!1,progress:Re(),remainingMs:ze()}))},He=()=>{U!==`paused`||Be()||(U=`active`,se=r.performance.now(),je(),We())},Ue=()=>{U!==`active`&&U!==`paused`||(U===`active`&&(W=Ie()),U=`released`,Ne(),Me(),xe({active:!1,progress:1,remainingMs:0}))},We=()=>{if(U!==`active`)return;if(Be()){Ve();return}let e=Ie(),n=Le(),i=ie?e/t.stickyDurationMs:0,a=ae?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=ie?t.stickyDurationMs-e:0;if(je(),xe({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){Ue();return}le=r.requestAnimationFrame(We)},Ge=()=>{if(!oe||U!==`pending`||!P)return;Pe();let e=$().getBoundingClientRect();ce=Math.max(0,r.scrollY+e.top-t.stickyTop),W=0,U=`active`,se=r.performance.now(),je(),We()},Ke=()=>{!oe||U!==`pending`||!P||$().getBoundingClientRect().top<=t.stickyTop&&Ge()},qe=()=>{U===`pending`?Ke():U===`active`&&Be()?Ve():U===`paused`&&He(),U!==`active`&&De()},Je=()=>{if(!oe||U!==`pending`||!P){G=null;return}Ke(),G=U===`pending`?r.requestAnimationFrame(Je):null},Ye=()=>{pe();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){V=e,re=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(L.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(L.find(e=>e.el===d)||L.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-wallpaper-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let t=F.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(F,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.87`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(N=i.createElement(`style`),N.id=`mobilefireplace-pac`,N.textContent=`
196
+ `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(D,`1`);try{e.parentNode?.insertBefore(V,e)}catch{return o.removeAttribute(D),!1}W(),oe(),G();try{o.srcdoc=t}catch{return!1}return!0},le=()=>{d(V,`position`,`fixed`),d(V,`marginTop`,`0px`),d(V,`marginBottom`,`0px`),d(V,`marginLeft`,`0px`),d(V,`marginRight`,`0px`),d(V,`transform`,``)},ue=()=>{d(V,`display`,`none`)},de=()=>{d(V,`display`,`block`),d(V,`overflow`,`hidden`)},K=null,q=()=>{if((!K||!K.isConnected)&&(K=M(B.headingText)),!K)return;let e=K.getBoundingClientRect(),t=e.top-H-h+ae,n=e.left+U;d(V,`top`,`${t}px`),d(V,`left`,`${n}px`),d(V,`right`,`auto`)},J=null,Y=null,fe=!1,X=(e=12)=>{if(K=M(B.headingText),!K){e>1&&(P=s.setTimeout(()=>X(e-1),250));return}ce(K)||(fe=!0,W(),oe(),le(),q(),J=()=>q(),Y=()=>q(),s.addEventListener(`scroll`,J,{passive:!0}),s.addEventListener(`resize`,Y))};X();let Z=()=>{P&&=(s.clearTimeout(P),null),N&&=(s.clearTimeout(N),null),J&&=(s.removeEventListener(`scroll`,J),null),Y&&=(s.removeEventListener(`resize`,Y),null),V.getAttribute(E)===u&&V.removeAttribute(E),fe&&(Object.entries(ne).forEach(([e,t])=>{V.style[e]=t}),Object.entries(re).forEach(([e,t])=>{o.style[e]=t}),ie.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[T]?.instanceId===u&&delete s[T]};return s[T]={instanceId:u,iframe:o,cleanup:Z,show:de,hide:ue},Z},j=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return e?window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1):(v(`big`),!0)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},M=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),N=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:M,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.88`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else !_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},P=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.88`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},F=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:8e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`#app > [data-ad-target="header"], [data-ad-target="header"] [data-ad-target="header-nav"], body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),p=f===u.smh||f===u.theage,m=n.getAttribute(`style`),h=n.hasAttribute(`data-mf-wallpaper-iframe`),g=a.getAttribute(`style`),_=n.parentElement===a?null:n.parentElement,v=_?_.getAttribute(`style`):null,y=a.parentElement,b=a.closest(`[data-ad-target="header-ad-mobile"]`),x=!!(y&&b&&y===b),S=x?r.getComputedStyle(y).marginTop:``,C=y?y.getAttribute(`style`):null,w=s?s.getAttribute(`style`):null,T=o?o.getAttribute(`style`):null,E=o?o.querySelector(`header`):null,D=E?E.getAttribute(`style`):null,O=E?E.querySelector(`.sc-5cbbddda-1`):null,ee=O?O.getAttribute(`style`):null,k=i.querySelector(`footer`),A=k?k.getAttribute(`style`):null,j=o?Array.from(o.children).map(e=>({el:e,orig:e.getAttribute(`style`)})):[],M=null,N=null,P=null,F=null,I=null,L=null,R=null,z=null,B=[],V=null,te=null,ne=null,re=null,ie=null,H=null,ae=null,U=[],W=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,oe=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,se=!!(t.sticky&&(W||oe)),G=`pending`,ce=0,le=0,ue=null,de=null,K=null,q=null,J=null,Y=[],fe=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,X=f===u.afr,Z=null,Q=null,pe=e=>{if(!e||e===ne||e===y||e===a)return!1;let t=e.firstElementChild;if(!t||t!==e.lastElementChild||!t.classList.contains(`container`)||t.children.length>0||t.textContent&&t.textContent.trim()||e.querySelector(`[id^="adspot-mobile-mbanner-"], iframe, [data-mf-slot], .adWrapper`))return!1;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},me=e=>{!e?.parentElement||U.some(t=>t.shell===e)||(U.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},he=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;pe(t)&&me(t)}},ge=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(B.find(e=>e.el===t)||B.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},_e=()=>{let e=i.createElement(`div`);return e.setAttribute(`data-mf-billboard-mount`,``),e.style.height=`${t.billboardHeight}px`,e.style.minHeight=`${t.billboardHeight}px`,e.style.maxHeight=`${t.billboardHeight}px`,e.style.background=`transparent`,e.style.overflow=`visible`,e.style.position=`relative`,e.style.width=`100%`,e.style.padding=`0`,e.style.margin=`0`,e},ve=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).filter(({rect:t,styles:n,list:r,listStyles:i})=>!r||!i||t.top<e-4||t.top>e+120||n.overflow!==`hidden`||parseFloat(n.borderTopLeftRadius)<4?!1:i.overflow===`auto`||i.overflowX===`auto`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>z||a,ye=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),be=()=>{let e=ye().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},xe=()=>{let e=be();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,fe||t.stickyTop)},Se=()=>{let e=be();return e?.zIndex&&e.zIndex>2?Math.max(1,Math.min(t.stickyZIndex,e.zIndex-1)):t.stickyZIndex},Ce=({active:e,progress:t=0,remainingMs:n=0})=>{L?.contentWindow&&L.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},we=e=>{!e||Y.some(t=>t.el===e)||Y.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},Te=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||H||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)we(n),n.style.setProperty(`z-index`,String(e),`important`)},Ee=()=>X&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||$(),De=()=>{if(!X||!L)return;let e=L.style;e.left=`0px`,e.width=`100vw`},Oe=()=>{if(!X||!L||G===`active`)return;let e=Ee();if(!e)return;let t=e.getBoundingClientRect(),n=L.style;n.position=`absolute`,n.top=`${Math.round(r.scrollY+t.top)}px`,De(),n.setProperty(`z-index`,`6`,`important`),L.removeAttribute(`data-mf-sticky-active`)},ke=()=>{X&&(Oe(),K&&r.cancelAnimationFrame(K),K=r.requestAnimationFrame(()=>{K=null,Oe()}),q&&r.clearTimeout(q),q=r.setTimeout(()=>{q=null,Oe()},350))},Ae=()=>{!X||!L||L.parentElement===i.body||(Z=L.parentElement,Q=L.nextSibling,i.body.appendChild(L))},je=()=>{if(!Z||!L){Z=null,Q=null;return}Q&&Q.parentNode===Z?Z.insertBefore(L,Q):Z.appendChild(L),Z=null,Q=null},Me=()=>{for(let e=Y.length-1;e>=0;--e){let{el:t,value:n,priority:r}=Y[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}Y.length=0},Ne=()=>{if(!L)return;ge($());let e=$().getBoundingClientRect(),t=Se();Te(t),Ae();let n=L.style;n.position=`fixed`,n.top=`${xe()}px`,X?De():x?(n.left=`0px`,n.width=`100vw`,n.setProperty(`max-width`,`100vw`,`important`)):(n.left=`${Math.round(e.left)}px`,n.width=`${Math.round(e.width)}px`),n.setProperty(`z-index`,String(t),`important`),L.setAttribute(`data-mf-sticky-active`,``)},Pe=()=>{if(!L)return;if(je(),X){ke(),Me();return}let e=L.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Me(),L.removeAttribute(`data-mf-sticky-active`)},Fe=()=>{de&&=(r.cancelAnimationFrame(de),null)},Ie=()=>{if(ue===null){let e=$().getBoundingClientRect();ue=Math.max(0,r.scrollY+e.top-t.stickyTop)}return ue},Le=()=>le+(G===`active`?Math.max(0,r.performance.now()-ce):0),Re=()=>Math.max(0,r.scrollY-Ie()),ze=()=>{let e=W?Le()/t.stickyDurationMs:0,n=oe?Re()/t.stickyScrollDistance:0;return Math.max(e,n)},Be=()=>W?t.stickyDurationMs-Le():0,Ve=()=>r.scrollY<Ie()-1,He=()=>{G===`active`&&(le=Le(),G=`paused`,Fe(),Pe(),Ce({active:!1,progress:ze(),remainingMs:Be()}))},Ue=()=>{G!==`paused`||Ve()||(G=`active`,ce=r.performance.now(),Ne(),Ge())},We=()=>{G!==`active`&&G!==`paused`||(G===`active`&&(le=Le()),G=`released`,Fe(),Pe(),Ce({active:!1,progress:1,remainingMs:0}))},Ge=()=>{if(G!==`active`)return;if(Ve()){He();return}let e=Le(),n=Re(),i=W?e/t.stickyDurationMs:0,a=oe?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=W?t.stickyDurationMs-e:0;if(Ne(),Ce({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){We();return}de=r.requestAnimationFrame(Ge)},Ke=()=>{if(!se||G!==`pending`||!L)return;let e=$().getBoundingClientRect();ue=Math.max(0,r.scrollY+e.top-t.stickyTop),le=0,G=`active`,ce=r.performance.now(),Ne(),Ge()},qe=()=>{!se||G!==`pending`||!L||$().getBoundingClientRect().top<=t.stickyTop&&Ke()},Je=()=>{G===`pending`?qe():G===`active`&&Ve()?He():G===`paused`&&Ue(),G!==`active`&&ke()},Ye=()=>{he();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`){H=e,ae=e.getAttribute(`style`);break}e=e.parentElement}let d=n.parentElement;for(;d&&d!==i.body&&d!==i.documentElement;){let e=r.getComputedStyle(d);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(B.push({el:d,orig:d.getAttribute(`style`)}),d.style.transform=`none`,d.style.willChange=`auto`,d.style.contain=`none`,d.style.filter=`none`,d.style.perspective=`none`),e.overflow!==`visible`&&(B.find(e=>e.el===d)||B.push({el:d,orig:d.getAttribute(`style`)}),d.style.overflow=`visible`),d=d.parentElement}let m=n.style;if(m.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),m.setProperty(`top`,`0`,f===u.afr?`important`:``),m.setProperty(`left`,`0`,f===u.afr?`important`:``),m.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),m.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),m.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),m.setProperty(`border`,`none`,f===u.afr?`important`:``),m.setProperty(`margin`,`0`,f===u.afr?`important`:``),m.setProperty(`padding`,`0`,f===u.afr?`important`:``),m.setProperty(`display`,`block`,f===u.afr?`important`:``),m.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),m.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),R=i.createElement(`iframe`),R.src=e.href,R.setAttribute(`data-mf-wallpaper-iframe`,``),R.setAttribute(`scrolling`,`no`),R.setAttribute(`frameborder`,`0`);let t=R.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(R,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.88`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let h=a.style;h.height=t.billboardHeight+`px`,h.minHeight=t.billboardHeight+`px`,h.background=`transparent`,h.overflow=`visible`,h.position=`relative`,h.width=`100%`,h.padding=`0`,h.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,x&&S&&S!==`0px`&&(y.style.marginTop=S),y.setAttribute(`data-mf-slot`,``));let g=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,v=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(I=i.createElement(`style`),I.id=`mobilefireplace-pac`,I.textContent=`
197
197
  /* Mobile Fireplace — powered-ad-config */
198
198
  html, body {
199
199
  background-color: transparent !important;
@@ -216,6 +216,11 @@
216
216
  margin-right: ${v} !important;
217
217
  }
218
218
  /* Header, nav and network nav stay full-width — no side margin, keep own background */
219
+ #app > [data-ad-target="header"],
220
+ #app [data-ad-target="header-nav"],
221
+ #app [data-ad-target="header-nav"] nav,
222
+ #app > [data-ad-target="header-ad-desktop"],
223
+ #app > [data-ad-target="header-ad-mobile"],
219
224
  body > * > header,
220
225
  body > * > nav,
221
226
  body > * > [data-network-nav],
@@ -223,6 +228,49 @@
223
228
  margin-left: 0 !important;
224
229
  margin-right: 0 !important;
225
230
  }
231
+ #app > [data-ad-target="header"] {
232
+ left: 0 !important;
233
+ right: auto !important;
234
+ width: 100vw !important;
235
+ max-width: 100vw !important;
236
+ margin: 0 !important;
237
+ transform: none !important;
238
+ z-index: 1075 !important;
239
+ box-sizing: border-box !important;
240
+ }
241
+ #app > [data-ad-target="header"] [data-ad-target="header-nav"] {
242
+ width: 100% !important;
243
+ max-width: 100% !important;
244
+ box-sizing: border-box !important;
245
+ }
246
+ #app > [data-ad-target="header-ad-mobile"] {
247
+ background-color: transparent !important;
248
+ box-sizing: border-box !important;
249
+ overflow: visible !important;
250
+ width: 100% !important;
251
+ max-width: 100% !important;
252
+ z-index: 1 !important;
253
+ }
254
+ #app > [data-ad-target="page-container"],
255
+ #app > [data-ad-target="footer"] {
256
+ box-sizing: border-box !important;
257
+ }
258
+ #app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child {
259
+ margin-left: -16px !important;
260
+ margin-right: -16px !important;
261
+ width: calc(100% + 32px) !important;
262
+ max-width: calc(100% + 32px) !important;
263
+ box-sizing: border-box !important;
264
+ }
265
+ #app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child > a {
266
+ margin-left: 0 !important;
267
+ margin-right: 0 !important;
268
+ width: 100% !important;
269
+ max-width: 100% !important;
270
+ padding-left: 16px !important;
271
+ padding-right: 16px !important;
272
+ box-sizing: border-box !important;
273
+ }
226
274
  iframe[id^="google_ads_iframe_"][style*="position: fixed"]:not([data-mf-billboard-iframe]),
227
275
  [data-mf-wallpaper-iframe] {
228
276
  z-index: 0 !important;
@@ -334,16 +382,24 @@
334
382
  }
335
383
  `:``}
336
384
  /* The mobilefireplace slot wrapper — transparent, full-width, no margins */
337
- [data-mf-slot],
385
+ [data-mf-slot]:not([data-ad-target="header-ad-mobile"]),
338
386
  [data-mf-slot] > * {
339
387
  background-color: transparent !important;
340
388
  z-index: auto !important;
341
389
  margin: 0 !important;
342
390
  padding: 0 !important;
343
391
  }
392
+ [data-mf-slot][data-ad-target="header-ad-mobile"] {
393
+ background-color: transparent !important;
394
+ z-index: 1 !important;
395
+ margin-left: 0 !important;
396
+ margin-right: 0 !important;
397
+ margin-bottom: 0 !important;
398
+ padding: 0 !important;
399
+ }
344
400
  /* The ad slot itself stays transparent */
345
- #adspot-mobile-mbanner-2-above,
346
- #adspot-mobile-mbanner-2-above > * {
401
+ [id^="adspot-mobile-mbanner-"],
402
+ [id^="adspot-mobile-mbanner-"] > * {
347
403
  background-color: transparent !important;
348
404
  z-index: auto !important;
349
405
  margin: 0 !important;
@@ -357,4 +413,4 @@
357
413
  margin: 0 !important;
358
414
  padding: 0 !important;
359
415
  }
360
- `,i.head.appendChild(N),f.setup&&f.setup(i,a),f===u.wwos){let e=ge();e&&(k=e.el,A=k.getAttribute(`style`),j=e.list,M=j?j.getAttribute(`style`):null,k.style.marginLeft=`10px`,k.style.marginRight=`10px`,k.style.width=`calc(100% - 20px)`,j&&(j.style.width=`100%`))}if(o&&f!==u.afr&&(V||p)){if(V&&(z=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),F=i.createElement(`iframe`),F.src=e.href,F.setAttribute(`data-mf-wallpaper-iframe`,``),F.setAttribute(`scrolling`,`no`),F.setAttribute(`frameborder`,`0`);let n=F.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(F,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,I=he(),o.parentElement.insertBefore(I,o),V?(V.style.position=`static`,V.style.inset=`auto`,V.style.height=`0`,V.style.minHeight=`0`,V.style.maxHeight=`0`,V.style.overflow=`hidden`,V.style.backgroundColor=`transparent`,V.style.boxShadow=`none`,V.style.border=`0`,V.style.outline=`0`,V.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of ee)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;C&&(C.style.borderTop=`0`,C.style.outline=`0`,C.style.boxShadow=`none`),T&&(T.style.borderBottom=`0`),D&&(D.style.marginLeft=`14px`,D.style.marginRight=`14px`,D.style.position=`relative`,D.style.zIndex=`2`),pe()}I||(I=he(),a.appendChild(I))},Xe=null,Ze=null,Qe=!1,$e=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,I&&(I.style.height=i+`px`,I.style.minHeight=i+`px`,I.style.maxHeight=i+`px`),P&&(P.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,I&&(I.style.height=t.billboardHeight+`px`,I.style.minHeight=t.billboardHeight+`px`,I.style.maxHeight=t.billboardHeight+`px`),P&&(P.style.height=t.billboardHeight+`px`);U===`active`?je():De()};if(Ye(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),P=i.createElement(`iframe`),P.src=e.href,P.setAttribute(`data-mf-billboard-iframe`,``),P.setAttribute(`scrolling`,`no`),P.setAttribute(`frameborder`,`0`);let n=P.style;n.position=X?`absolute`:`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=X?`6`:`1`,X?(P.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(P),Ee()):(I||a).appendChild(P),oe&&(J=qe,r.addEventListener(`scroll`,J,{passive:!0}),G=r.requestAnimationFrame(Je))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:F?.contentWindow||n.contentWindow,billboardIframe:P,billboardWindow:null},F&&F.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=F.contentWindow)}catch{}}),P&&P.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=P.contentWindow}catch{}}),Xe=$e,r.addEventListener(`resize`,Xe),$e(),Ze=()=>{et()},window.addEventListener(`pagehide`,Ze),window.addEventListener(`beforeunload`,Ze),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let et=()=>{if(!Qe){Qe=!0,Ze&&=(window.removeEventListener(`pagehide`,Ze),window.removeEventListener(`beforeunload`,Ze),null),Xe&&=(r.removeEventListener(`resize`,Xe),null),J&&=(r.removeEventListener(`scroll`,J),null),Ne(),Pe(),K&&=(r.cancelAnimationFrame(K),null),q&&=(r.clearTimeout(q),null),xe({active:!1,progress:1,remainingMs:0}),N&&N.parentNode&&(N.parentNode.removeChild(N),N=null),P&&P.parentNode&&(P.parentNode.removeChild(P),P=null),Z=null,Q=null,I&&I.parentNode&&(I.parentNode.removeChild(I),I=null),F&&F.parentNode&&(F.parentNode.removeChild(F),F=null);try{delete r.__mfBridge}catch{}for(let e=H.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=H[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}H.length=0,R&&(te&&te.parentNode===R?R.insertBefore(n,te):R.appendChild(n),R=null,te=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of L)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);L.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),z&&=(B&&(ne&&ne.parentNode===B?B.insertBefore(z,ne):B.appendChild(z),B=null,ne=null),null),y&&(y.removeAttribute(`data-mf-slot`),b?y.setAttribute(`style`,b):y.removeAttribute(`style`)),V&&(re?V.setAttribute(`style`,re):V.removeAttribute(`style`),V=null,re=null);for(let{el:e,orig:t}of ee)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);j&&(M?j.setAttribute(`style`,M):j.removeAttribute(`style`),j=null,M=null),k&&(A?k.setAttribute(`style`,A):k.removeAttribute(`style`),k=null,A=null),o&&(S?o.setAttribute(`style`,S):o.removeAttribute(`style`)),C&&(w?C.setAttribute(`style`,w):C.removeAttribute(`style`)),T&&(E?T.setAttribute(`style`,E):T.removeAttribute(`style`)),D&&(O?D.setAttribute(`style`,O):D.removeAttribute(`style`)),s&&(x?s.setAttribute(`style`,x):s.removeAttribute(`style`))}};return et},I=()=>{};function L({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof I==`function`&&I();let o=()=>{};return e===`fireplace`?o=d(t):e===`fireplace-collant`?o=f(t):e===`logomorph`?o=j(n,r,i):e===`dynamicheading`?o=A(a):e===`interscroller`?o=N(a):e===`liquidframe`?o=P(a):e===`mobilefireplace`?o=F(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),I=typeof o==`function`?o:()=>{},I}return L.version=`0.1.87`,L});
416
+ `,i.head.appendChild(I),f.setup&&f.setup(i,a),f===u.wwos){let e=ve();e&&(M=e.el,N=M.getAttribute(`style`),P=e.list,F=P?P.getAttribute(`style`):null,M.style.marginLeft=`10px`,M.style.marginRight=`10px`,M.style.width=`calc(100% - 20px)`,P&&(P.style.width=`100%`))}if(o&&f!==u.afr&&(H||p)){if(H&&(ne=c||y),l&&l!==`about:blank`){let e=new URL(l);e.searchParams.set(`mfRole`,`wallpaper`),R=i.createElement(`iframe`),R.src=e.href,R.setAttribute(`data-mf-wallpaper-iframe`,``),R.setAttribute(`scrolling`,`no`),R.setAttribute(`frameborder`,`0`);let n=R.style;n.position=`fixed`,n.top=`0`,n.left=`0`,n.width=`100vw`,n.height=`100dvh`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.background=`transparent`,n.zIndex=String(t.zIndex),n.pointerEvents=`none`,i.body.insertBefore(R,i.body.firstChild)}n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`0`,n.style.height=`0`,n.style.opacity=`0`,n.style.pointerEvents=`none`,n.style.zIndex=`-1`,z=_e(),o.parentElement.insertBefore(z,o),H?(H.style.position=`static`,H.style.inset=`auto`,H.style.height=`0`,H.style.minHeight=`0`,H.style.maxHeight=`0`,H.style.overflow=`hidden`,H.style.backgroundColor=`transparent`,H.style.boxShadow=`none`,H.style.border=`0`,H.style.outline=`0`,H.style.pointerEvents=`none`):y&&(y.style.height=`0`,y.style.minHeight=`0`,y.style.maxHeight=`0`,y.style.overflow=`hidden`,y.style.backgroundColor=`transparent`,y.style.border=`0`,y.style.outline=`0`),h.height=`0`,h.minHeight=`0`,h.width=`0`,h.overflow=`hidden`,s&&(s.style.backgroundColor=`transparent`,s.style.backgroundImage=`none`,s.style.position=`relative`,s.style.zIndex=`1`),o.style.marginLeft=`14px`,o.style.marginRight=`14px`,o.style.backgroundColor=`#ffffff`,o.style.position=`relative`,o.style.zIndex=`2`,o.style.overflowX=`clip`,o.style.isolation=`isolate`;for(let{el:e}of j)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;E&&(E.style.borderTop=`0`,E.style.outline=`0`,E.style.boxShadow=`none`),O&&(O.style.borderBottom=`0`),k&&(k.style.marginLeft=`14px`,k.style.marginRight=`14px`,k.style.position=`relative`,k.style.zIndex=`2`),he()}z||(z=_e(),a.appendChild(z))},Xe=null,Ze=null,Qe=!1,$e=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,z&&(z.style.height=i+`px`,z.style.minHeight=i+`px`,z.style.maxHeight=i+`px`),L&&(L.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,z&&(z.style.height=t.billboardHeight+`px`,z.style.minHeight=t.billboardHeight+`px`,z.style.maxHeight=t.billboardHeight+`px`),L&&(L.style.height=t.billboardHeight+`px`);G===`active`?Ne():ke()};if(Ye(),l&&l!==`about:blank`)try{let e=new URL(l);e.searchParams.set(`mfRole`,`billboard`),L=i.createElement(`iframe`),L.src=e.href,L.setAttribute(`data-mf-billboard-iframe`,``),L.setAttribute(`scrolling`,`no`),L.setAttribute(`frameborder`,`0`);let n=L.style;n.position=X?`absolute`:`relative`,n.width=`100%`,n.height=t.billboardHeight+`px`,n.border=`none`,n.margin=`0`,n.padding=`0`,n.display=`block`,n.overflow=`hidden`,n.background=`transparent`,n.zIndex=X?`6`:`1`,X?(L.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(L),Oe()):(z||a).appendChild(L),se&&(J=Je,r.addEventListener(`scroll`,J,{passive:!0}))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:R?.contentWindow||n.contentWindow,billboardIframe:L,billboardWindow:null},R&&R.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=R.contentWindow)}catch{}}),L&&L.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=L.contentWindow}catch{}}),Xe=$e,r.addEventListener(`resize`,Xe),$e(),Ze=()=>{et()},window.addEventListener(`pagehide`,Ze),window.addEventListener(`beforeunload`,Ze),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let et=()=>{if(!Qe){Qe=!0,Ze&&=(window.removeEventListener(`pagehide`,Ze),window.removeEventListener(`beforeunload`,Ze),null),Xe&&=(r.removeEventListener(`resize`,Xe),null),J&&=(r.removeEventListener(`scroll`,J),null),Fe(),K&&=(r.cancelAnimationFrame(K),null),q&&=(r.clearTimeout(q),null),Ce({active:!1,progress:1,remainingMs:0}),I&&I.parentNode&&(I.parentNode.removeChild(I),I=null),L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),Z=null,Q=null,z&&z.parentNode&&(z.parentNode.removeChild(z),z=null),R&&R.parentNode&&(R.parentNode.removeChild(R),R=null);try{delete r.__mfBridge}catch{}for(let e=U.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=U[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}U.length=0,V&&(te&&te.parentNode===V?V.insertBefore(n,te):V.appendChild(n),V=null,te=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of B)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);B.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),ne&&=(re&&(ie&&ie.parentNode===re?re.insertBefore(ne,ie):re.appendChild(ne),re=null,ie=null),null),y&&(y.removeAttribute(`data-mf-slot`),C?y.setAttribute(`style`,C):y.removeAttribute(`style`)),H&&(ae?H.setAttribute(`style`,ae):H.removeAttribute(`style`),H=null,ae=null);for(let{el:e,orig:t}of j)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);P&&(F?P.setAttribute(`style`,F):P.removeAttribute(`style`),P=null,F=null),M&&(N?M.setAttribute(`style`,N):M.removeAttribute(`style`),M=null,N=null),o&&(T?o.setAttribute(`style`,T):o.removeAttribute(`style`)),E&&(D?E.setAttribute(`style`,D):E.removeAttribute(`style`)),O&&(ee?O.setAttribute(`style`,ee):O.removeAttribute(`style`)),k&&(A?k.setAttribute(`style`,A):k.removeAttribute(`style`)),s&&(w?s.setAttribute(`style`,w):s.removeAttribute(`style`))}};return et},I=()=>{};function L({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof I==`function`&&I();let o=()=>{};return e===`fireplace`?o=d(t):e===`fireplace-collant`?o=f(t):e===`logomorph`?o=j(n,r,i):e===`dynamicheading`?o=A(a):e===`interscroller`?o=N(a):e===`liquidframe`?o=P(a):e===`mobilefireplace`?o=F(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),I=typeof o==`function`?o:()=>{},I}return L.version=`0.1.88`,L});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.87",
3
+ "version": "0.1.88",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",