powered-ad-config 0.1.78 → 0.1.79

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.
@@ -12,27 +12,35 @@ var e = (e, t, n) => {
12
12
  let r = e.getElementById(t);
13
13
  return r || (r = e.createElement("style"), r.id = t, e.head.appendChild(r)), r.textContent = n, r;
14
14
  }, r = (e, t) => {
15
+ if (!e || !t) return null;
16
+ let n = `[data-ad-target="${t}"]`;
17
+ return e.matches?.(n) ? e : e.querySelector?.(n) || null;
18
+ }, i = (e, t) => {
19
+ if (!e || !t) return [];
20
+ let n = `[data-ad-target="${t}"]`;
21
+ return (e.matches?.(n) ? [e] : []).concat(Array.from(e.querySelectorAll?.(n) || []));
22
+ }, a = (e) => Array.from(new Set(Array.from(e || []).filter(Boolean))), o = (e, t) => {
15
23
  if (!e || !t) return null;
16
24
  let n = t;
17
25
  for (; n && n.parentElement !== e;) n = n.parentElement;
18
26
  return n?.parentElement === e ? n : null;
19
- }, i = (e, t) => {
27
+ }, s = (e, t) => {
20
28
  let n = e?.previousElementSibling || null;
21
29
  return n?.tagName?.toLowerCase() === t.toLowerCase() ? n : null;
22
- }, a = (e, t) => {
30
+ }, c = (e, t) => {
23
31
  e && t && e.setAttribute("poweredAC", t);
24
- }, o = (o) => {
25
- let s = window.frameElement ? window.frameElement : null;
26
- if (!s) return () => {};
27
- let c = window.parent;
28
- if (!c || c === window) return () => {};
29
- let l = null;
32
+ }, l = (l) => {
33
+ let u = window.frameElement ? window.frameElement : null;
34
+ if (!u) return () => {};
35
+ let d = window.parent;
36
+ if (!d || d === window) return () => {};
37
+ let f = null;
30
38
  try {
31
- l = c.document, c.location.href;
39
+ f = d.document, d.location.href;
32
40
  } catch {
33
41
  return () => {};
34
42
  }
35
- let u = null, d = null, f = {
43
+ let p = null, m = null, h = {
36
44
  siteBackgroundColor: "#ffffff",
37
45
  fireplaceLeftMargin: 0,
38
46
  adNodeMarginTop: -24,
@@ -48,7 +56,7 @@ var e = (e, t, n) => {
48
56
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
49
57
  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[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");
50
58
  }
51
- }, p = {
59
+ }, g = {
52
60
  siteBackgroundColor: "#ffffff",
53
61
  fireplaceLeftMargin: 0,
54
62
  adNodeMarginTop: -24,
@@ -64,43 +72,48 @@ var e = (e, t, n) => {
64
72
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
65
73
  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("div[class*=\"ArticleContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:24px"), e.querySelector("div[class*=\"MyContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:24px");
66
74
  }
67
- }, m = () => {
68
- let e = l.querySelector("#app.nine, #app");
75
+ }, _ = (e, t = f) => r(t, e), v = (e, t = f) => i(t, e), y = () => _("app") || f.querySelector("#app.nine, #app"), b = () => {
76
+ let e = y();
69
77
  if (!e) return null;
70
- let t = l.querySelector("#desktop-header-ads"), n = e.querySelector(":scope > .sc-llJctl") || e.querySelector(":scope > header");
71
- return r(e, A()), t && t.parentElement === e && n ? {
78
+ let t = _("header-ad-desktop", e) || f.querySelector("#desktop-header-ads"), n = _("header", e) || _("tv-show-banner", e) || e.querySelector(":scope > .sc-llJctl") || e.querySelector(":scope > header"), r = o(e, t) || o(e, I()) || t;
79
+ return t && r && n ? {
72
80
  appRoot: e,
73
81
  headerShell: n,
74
82
  billboardContainer: t,
75
83
  desktopHeaderAds: t,
76
84
  variant: "full"
77
85
  } : null;
78
- }, h = () => m()?.appRoot || null, g = () => !!h(), _ = () => !!(l.querySelector("#app.wwos") && l.querySelector("#desktop-header-ads")), v = () => {
79
- if (g() || _()) return 0;
80
- let e = l.querySelector("nav");
86
+ }, x = () => b()?.appRoot || null, S = () => !!x(), C = () => !!(f.querySelector("#app.wwos") && f.querySelector("#desktop-header-ads")), w = () => {
87
+ if (S() || C()) return 0;
88
+ let e = f.querySelector("nav");
81
89
  if (!e) return 0;
82
- let t = c.getComputedStyle(e);
90
+ let t = d.getComputedStyle(e);
83
91
  if (t.position !== "fixed") return 0;
84
92
  let n = parseFloat(t.top || "0");
85
93
  return Number.isFinite(n) && Math.abs(n) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
86
- }, y = (e) => {
94
+ }, T = (e) => {
87
95
  if (!e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) return;
88
96
  let t = e.getElementById("powered-ac-tablet-takeover-static-fix");
89
97
  t || (t = e.createElement("style"), t.id = "powered-ac-tablet-takeover-static-fix", e.head.appendChild(t)), t.textContent = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ";
90
- }, b = () => {
91
- let r = window.parent.document, i = e, a = t, o = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], s = (e, t) => {
98
+ }, E = () => {
99
+ let r = window.parent.document, i = e, o = t, s = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], c = (e) => a([_("page-container", e), _("container", e)]), l = (e) => a([
100
+ ...v("main", e),
101
+ ...v("sidebar", e),
102
+ ...v("sidebar-sticky", e),
103
+ ...v("footer", e)
104
+ ]), u = (e, t) => {
92
105
  n(r, e, t);
93
- }, c = (e) => {
94
- a(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
106
+ }, d = (e) => {
107
+ o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
95
108
  };
96
109
  i(r.querySelector("section[data-section=\"marketing-banner\"]"), "position", "relative"), i(r.querySelector("div[data-testid=\"live-tv\"]")?.parentNode, "position", "relative"), i(r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode, "position", "relative"), i(r.querySelector("small"), "position", "inherit");
97
- let l = m(), u = l?.appRoot, d = l?.desktopHeaderAds, f = l?.billboardContainer;
98
- if (u) {
99
- let e = l.headerShell, t = Array.from(u.children).filter((e) => e.tagName !== "SCRIPT"), n = f ? t.indexOf(f) : -1, r = t.filter((e, t) => t < n), p = n >= 0 ? t.filter((t, r) => r > n && t !== e) : t.filter((t) => t !== d && t !== e);
100
- i(d, "height", "250px"), i(d, "padding", "0px"), d && c(d), a(r, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), s("powered-ac-nine-new-header-overrides", "\n #app > .sc-llJctl,\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085;\n }\n\n #app > .sc-llJctl > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app > .sc-llJctl header,\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n position: relative;\n }\n\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"],\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n\n #app > .sc-llJctl.FwHsm,\n #app > header[data-tv-show].FwHsm {\n z-index: 1086;\n }\n\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n\n #app > header[data-tv-show] {\n z-index: 1085;\n }\n "), a(p, [["position", "relative"], ["zIndex", "1071"]]), a(p.flatMap((e) => o(e)), [["position", "relative"], ["zIndex", "1072"]]);
110
+ let f = b(), p = f?.appRoot, m = f?.desktopHeaderAds, h = f?.billboardContainer;
111
+ if (p) {
112
+ let e = f.headerShell, t = _("header-nav", p), n = v("nav-dropdown", p), r = c(p), g = l(p), y = Array.from(p.children).filter((e) => e.tagName !== "SCRIPT"), b = h ? y.indexOf(h) : -1, x = y.filter((e, t) => t < b), S = r.length > 0 ? r : b >= 0 ? y.filter((t, n) => n > b && t !== e) : y.filter((t) => t !== m && t !== e);
113
+ i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(a([...x, e]), [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), o(n, [["position", "relative"], ["zIndex", "1088"]]), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"],\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > .sc-llJctl,\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1085;\n }\n\n #app [data-ad-target=\"nav-dropdown\"],\n #app > .sc-llJctl > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header,\n #app [data-ad-target=\"header-nav\"],\n #app > .sc-llJctl header,\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n position: relative;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app [data-ad-target=\"nav-dropdown\"],\n #app > .sc-llJctl header .bVJveH,\n #app > .sc-llJctl header [class*=\"sc-eFWqGm\"],\n #app > header[data-tv-show] .bVJveH,\n #app > header[data-tv-show] [class*=\"sc-eFWqGm\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n\n #app > [data-ad-target=\"header\"].FwHsm,\n #app > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app > .sc-llJctl.FwHsm,\n #app > header[data-tv-show].FwHsm {\n z-index: 1086;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n\n #app > header[data-tv-show] {\n z-index: 1085;\n }\n "), o(S, [["position", "relative"], ["zIndex", "1071"]]), o(a([...g, ...S.flatMap((e) => s(e))]), [["position", "relative"], ["zIndex", "1072"]]);
101
114
  }
102
- y(r);
103
- }, x = {
115
+ T(r);
116
+ }, D = {
104
117
  siteBackgroundColor: "#ffffff",
105
118
  fireplaceLeftMargin: 0,
106
119
  adNodeMarginTop: -24,
@@ -116,9 +129,9 @@ var e = (e, t, n) => {
116
129
  },
117
130
  zIndex: function() {
118
131
  let e = window.parent.document;
119
- 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"), y(e);
132
+ 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"), T(e);
120
133
  }
121
- }, S = {
134
+ }, O = {
122
135
  siteBackgroundColor: "#ffffff",
123
136
  fireplaceLeftMargin: 0,
124
137
  adNodeMarginTop: 0,
@@ -133,8 +146,8 @@ var e = (e, t, n) => {
133
146
  offset: 74,
134
147
  isSticky: !0
135
148
  },
136
- zIndex: b
137
- }, C = () => m()?.variant === "full" ? S : x, w = {
149
+ zIndex: E
150
+ }, k = () => b()?.variant === "full" ? O : D, A = {
138
151
  siteBackgroundColor: "#ffffff",
139
152
  fireplaceLeftMargin: 0,
140
153
  adNodeMarginTop: -24,
@@ -147,10 +160,10 @@ var e = (e, t, n) => {
147
160
  isSticky: !0
148
161
  },
149
162
  zIndex: function() {
150
- let e = window.parent.document, t = i(e.querySelector("footer"), "div");
151
- t && (t.style.position = "relative"), y(e);
163
+ let e = window.parent.document, t = s(e.querySelector("footer"), "div");
164
+ t && (t.style.position = "relative"), T(e);
152
165
  }
153
- }, T = {
166
+ }, j = {
154
167
  siteBackgroundColor: "#ffffff",
155
168
  fireplaceLeftMargin: 0,
156
169
  adNodeMarginTop: 0,
@@ -165,14 +178,19 @@ var e = (e, t, n) => {
165
178
  isSticky: !0
166
179
  },
167
180
  zIndex: function() {
168
- let r = window.parent.document, a = e, o = t, s = (e, t) => n(r, e, t), c = (e) => {
181
+ let r = window.parent.document, i = e, o = t, c = (e, t) => n(r, e, t), l = (e) => {
169
182
  o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
170
- }, l = r.querySelector("#app.wwos"), u = r.querySelector("#desktop-header-ads"), d = l ? Array.from(l.children) : [], f = l?.querySelector(":scope > .sc-llJctl") || l?.querySelector(":scope > header");
171
- u && (a(u, "height", "250px"), a(u, "padding", "0px"), c(u)), a(f, "position", "relative"), a(f, "zIndex", "1085"), s("powered-ac-wwos-new-header-overrides", "\n #app.wwos > .sc-llJctl,\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n position: relative;\n z-index: 1085 !important;\n }\n\n #app.wwos > .sc-llJctl > div:not(header),\n #app.wwos > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app.wwos > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] {\n position: static;\n }\n\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] > [class*=\"sc-eFWqGm\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] [class*=\"sc-eFWqGm\"] {\n position: absolute;\n top: 100%;\n left: 50%;\n right: auto;\n width: min(1190px, calc(100vw - 32px));\n transform: translateX(-50%);\n z-index: 1;\n }\n\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n "), o(d.filter((e) => e !== u && e !== f), [["position", "relative"], ["zIndex", "1071"]]), o(Array.from(r.querySelectorAll("main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*=\"adspot-desktop-banner-\"]")), [["position", "relative"], ["zIndex", "1072"]]);
172
- let p = i(r.querySelector("footer"), "div");
173
- p && (p.style.position = "relative"), y(r);
183
+ }, u = _("app") || r.querySelector("#app.wwos"), d = _("header-ad-desktop", u || r) || r.querySelector("#desktop-header-ads"), f = u ? Array.from(u.children) : [], p = _("header", u || r) || _("tv-show-banner", u || r) || u?.querySelector(":scope > .sc-llJctl") || u?.querySelector(":scope > header"), m = _("header-nav", u || r), h = v("nav-dropdown", u || r), g = a([_("page-container", u || r), _("container", u || r)]), y = a([
184
+ ...v("main", u || r),
185
+ ...v("sidebar", u || r),
186
+ ...v("sidebar-sticky", u || r),
187
+ ...v("footer", u || r)
188
+ ]);
189
+ d && (i(d, "height", "250px"), i(d, "padding", "0px"), l(d)), i(p, "position", "relative"), i(p, "zIndex", "1085"), i(m, "position", "relative"), i(m, "zIndex", "1086"), o(h, [["position", "relative"], ["zIndex", "1088"]]), c("powered-ac-wwos-new-header-overrides", "\n #app.wwos > [data-ad-target=\"header\"],\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > .sc-llJctl,\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n position: relative;\n z-index: 1085 !important;\n }\n\n #app.wwos [data-ad-target=\"nav-dropdown\"],\n #app.wwos > .sc-llJctl > div:not(header),\n #app.wwos > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app.wwos > [data-ad-target=\"header\"].FwHsm,\n #app.wwos > [data-ad-target=\"tv-show-banner\"].FwHsm,\n #app.wwos > .sc-llJctl.FwHsm {\n z-index: 1086;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] [role=\"menuitem\"][aria-haspopup=\"menu\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] {\n position: static;\n }\n\n #app.wwos [data-ad-target=\"nav-dropdown\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] > [class*=\"sc-eFWqGm\"],\n #app.wwos > .sc-llJctl [role=\"menuitem\"][aria-haspopup=\"menu\"] [class*=\"sc-eFWqGm\"] {\n position: absolute;\n top: 100%;\n left: 50%;\n right: auto;\n width: min(1190px, calc(100vw - 32px));\n transform: translateX(-50%);\n z-index: 1;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"],\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n "), o(g.length > 0 ? g : f.filter((e) => e !== d && e !== p), [["position", "relative"], ["zIndex", "1071"]]), o(a([...y, ...Array.from(r.querySelectorAll("main, aside, article, footer, .sc-kACOFj.bkaoXt, .sc-hpDagB.HUkOB, [id*=\"adspot-desktop-banner-\"]"))]), [["position", "relative"], ["zIndex", "1072"]]);
190
+ let b = s(r.querySelector("footer"), "div");
191
+ b && (b.style.position = "relative"), T(r);
174
192
  }
175
- }, E = () => _() ? T : w, D = {
193
+ }, M = () => C() ? j : A, N = {
176
194
  siteBackgroundColor: "#ffffff",
177
195
  fireplaceLeftMargin: 0,
178
196
  adNodeMarginTop: -32,
@@ -188,152 +206,152 @@ var e = (e, t, n) => {
188
206
  let e = window.parent.document;
189
207
  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);");
190
208
  }
191
- }, O = [
209
+ }, P = [
192
210
  {
193
211
  site: "https://www.nine.com.au/sport",
194
- config: E
212
+ config: M
195
213
  },
196
214
  {
197
215
  site: "https://www.nine.com.au/product-reviews",
198
- config: p
216
+ config: g
199
217
  },
200
218
  {
201
219
  site: "https://www.nine.com.au/property",
202
- config: p
220
+ config: g
203
221
  },
204
222
  {
205
223
  site: "https://www.nine.com.au/entertainment",
206
- config: C
224
+ config: k
207
225
  },
208
226
  {
209
227
  site: "https://staging.nine.com.au/sport",
210
- config: E
228
+ config: M
211
229
  },
212
230
  {
213
231
  site: "https://staging.nine.com.au/product-reviews",
214
- config: p
232
+ config: g
215
233
  },
216
234
  {
217
235
  site: "https://staging.nine.com.au/property",
218
- config: p
236
+ config: g
219
237
  },
220
238
  {
221
239
  site: "https://staging.nine.com.au/entertainment",
222
- config: C
240
+ config: k
223
241
  },
224
242
  {
225
243
  site: "https://render-web-nine-staging-v1.ffxblue.com.au",
226
- config: C
244
+ config: k
227
245
  },
228
246
  {
229
247
  site: "https://render-web-nine-production-v1.ffxblue.com.au",
230
- config: C
248
+ config: k
231
249
  },
232
250
  {
233
251
  site: "https://preview.nine.com.au/",
234
- config: C
252
+ config: k
235
253
  },
236
254
  {
237
255
  site: "https://www.nine",
238
- config: C
256
+ config: k
239
257
  },
240
258
  {
241
259
  site: "https://staging.nine",
242
- config: C
260
+ config: k
243
261
  },
244
262
  {
245
263
  site: "https://entertainment",
246
- config: f
264
+ config: h
247
265
  },
248
266
  {
249
267
  site: "https://celebrity",
250
- config: f
268
+ config: h
251
269
  },
252
270
  {
253
271
  site: "https://homes",
254
- config: f
272
+ config: h
255
273
  },
256
274
  {
257
275
  site: "https://travel",
258
- config: f
276
+ config: h
259
277
  },
260
278
  {
261
279
  site: "https://honey",
262
- config: f
280
+ config: h
263
281
  },
264
282
  {
265
283
  site: "https://style",
266
- config: f
284
+ config: h
267
285
  },
268
286
  {
269
287
  site: "https://coach",
270
- config: f
288
+ config: h
271
289
  },
272
290
  {
273
291
  site: "https://kitchen",
274
- config: f
292
+ config: h
275
293
  },
276
294
  {
277
295
  site: "https://finance",
278
- config: f
296
+ config: h
279
297
  },
280
298
  {
281
299
  site: "https://staging.wwos",
282
- config: E
300
+ config: M
283
301
  },
284
302
  {
285
303
  site: "https://www.9news",
286
- config: D
304
+ config: N
287
305
  },
288
306
  {
289
307
  site: "https://staging.9news",
290
- config: D
308
+ config: N
291
309
  },
292
310
  {
293
311
  site: "https://www.yourtv",
294
- config: f
312
+ config: h
295
313
  },
296
314
  {
297
315
  site: "https://staging.yourtv",
298
- config: f
316
+ config: h
299
317
  },
300
318
  {
301
319
  site: "https://9now",
302
- config: p
320
+ config: g
303
321
  },
304
322
  {
305
323
  site: "https://creative-preview-an.com",
306
- config: f
324
+ config: h
307
325
  }
308
- ], k = () => {
326
+ ], F = () => {
309
327
  let e = window.document.getElementById("nineContent");
310
- if (e && (e.style.backgroundColor = R.siteBackgroundColor), P(), N(), M(), c.addEventListener("scroll", L), z = setTimeout(L, 50), R === S || R === T) {
311
- let e = R === S ? m() : null, t = e?.appRoot || h() || l.body, n = e?.desktopHeaderAds || l.querySelector("#desktop-header-ads");
312
- t && c.MutationObserver && (d = new c.MutationObserver(() => {
313
- I();
314
- }), d.observe(t, {
328
+ if (e && (e.style.backgroundColor = W.siteBackgroundColor), B(), z(), R(), d.addEventListener("scroll", U), G = setTimeout(U, 50), W === O || W === j) {
329
+ let e = W === O ? b() : null, t = e?.appRoot || x() || f.body, n = e?.desktopHeaderAds || f.querySelector("#desktop-header-ads");
330
+ t && d.MutationObserver && (m = new d.MutationObserver(() => {
331
+ H();
332
+ }), m.observe(t, {
315
333
  childList: !0,
316
334
  subtree: !0
317
- }), n && n !== t && d.observe(n, {
335
+ }), n && n !== t && m.observe(n, {
318
336
  childList: !0,
319
337
  subtree: !0,
320
338
  attributes: !0,
321
339
  attributeFilter: ["class"]
322
- })), c.addEventListener("resize", I), I();
340
+ })), d.addEventListener("resize", H), H();
323
341
  }
324
- }, A = () => {
342
+ }, I = () => {
325
343
  let e = null;
326
- return e = l.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
327
- }, j = () => {
328
- let e = c.location.href;
329
- for (let t = 0; t < O.length; t += 1) if (e.indexOf(O[t].site) >= 0) return typeof O[t].config == "function" ? O[t].config() : O[t].config;
344
+ return e = f.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
345
+ }, L = () => {
346
+ let e = d.location.href;
347
+ for (let t = 0; t < P.length; t += 1) if (e.indexOf(P[t].site) >= 0) return typeof P[t].config == "function" ? P[t].config() : P[t].config;
330
348
  try {
331
349
  let t = new URL(e), n = t.hostname.toLowerCase(), r = t.pathname.toLowerCase();
332
- if (n === "creative-preview-an.com") return f;
333
- if (n.includes("9news")) return D;
334
- if (n.includes("yourtv")) return f;
335
- if (n.includes("9now")) return p;
336
- if (n === "www.nine.com.au" || n === "staging.nine.com.au" || n === "preview.nine.com.au" || n === "render-web-nine-staging-v1.ffxblue.com.au" || n === "render-web-nine-production-v1.ffxblue.com.au") return r.startsWith("/sport") ? E() : r.startsWith("/product-reviews") || r.startsWith("/property") ? p : C();
350
+ if (n === "creative-preview-an.com") return h;
351
+ if (n.includes("9news")) return N;
352
+ if (n.includes("yourtv")) return h;
353
+ if (n.includes("9now")) return g;
354
+ if (n === "www.nine.com.au" || n === "staging.nine.com.au" || n === "preview.nine.com.au" || n === "render-web-nine-staging-v1.ffxblue.com.au" || n === "render-web-nine-production-v1.ffxblue.com.au") return r.startsWith("/sport") ? M() : r.startsWith("/product-reviews") || r.startsWith("/property") ? g : k();
337
355
  if ([
338
356
  "entertainment",
339
357
  "celebrity",
@@ -344,68 +362,80 @@ var e = (e, t, n) => {
344
362
  "coach",
345
363
  "kitchen",
346
364
  "finance"
347
- ].some((e) => n.includes(e))) return f;
365
+ ].some((e) => n.includes(e))) return h;
348
366
  } catch {
349
- return C();
367
+ return k();
350
368
  }
351
- return C();
352
- }, M = () => {
369
+ return k();
370
+ }, R = () => {
353
371
  if (!window.parent) return;
354
- let e = l.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
372
+ let e = f.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
355
373
  if (!e) return;
356
374
  let t = e;
357
- for (let e = 0; e < 3; e++) if (t = t.parentNode, t && c.getComputedStyle(t).position === "sticky") {
358
- t.setAttribute("style", `top: ${R.stickyMargin.offset}px`);
375
+ for (let e = 0; e < 3; e++) if (t = t.parentNode, t && d.getComputedStyle(t).position === "sticky") {
376
+ t.setAttribute("style", `top: ${W.stickyMargin.offset}px`);
359
377
  break;
360
378
  }
361
- }, N = () => {
362
- if (!s) return;
363
- let e = s.style;
364
- e.width = R.iframeWidth || "100%", e.height = R.iframeHeight || "1000px", e.position = "fixed", R.iframeTop == null ? e.removeProperty("top") : e.top = R.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
365
- let t = s.parentElement;
366
- for (; t && t !== l.body && t !== l.documentElement;) {
367
- let e = c.getComputedStyle(t);
379
+ }, z = () => {
380
+ if (!u) return;
381
+ let e = u.style;
382
+ e.width = W.iframeWidth || "100%", e.height = W.iframeHeight || "1000px", e.position = "fixed", W.iframeTop == null ? e.removeProperty("top") : e.top = W.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
383
+ let t = u.parentElement;
384
+ for (; t && t !== f.body && t !== f.documentElement;) {
385
+ let e = d.getComputedStyle(t);
368
386
  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;
369
387
  }
370
- }, P = () => {
371
- let e = A();
388
+ }, B = () => {
389
+ let e = I();
372
390
  if (!e) return;
373
- a(e, "0.1.78");
391
+ c(e, "0.1.79");
374
392
  let t = e.style;
375
- e.className &&= "", t.minHeight = "250px", t.marginTop = R.adNodeMarginTop + "px", t.marginBottom = R.adNodeMarginBottom + "px", t.position = "static", t.display = "block", R.zIndex && R.zIndex();
376
- }, F = () => {
377
- let e = c.scrollY, t = s.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
378
- e >= 0 && e <= B ? (t.transform = `translate(-50%, ${-e}px)`, n.transform = "translateY(0)") : e > B && e <= V ? (t.transform = `translate(-50%, ${-B}px)`, n.transform = `translateY(${B - e}px)`) : e > V && (t.transform = `translate(-50%, ${-B}px)`, n.transform = "translateY(-250px)");
379
- }, I = () => {
380
- R !== S && R !== T || u || (u = c.requestAnimationFrame(() => {
381
- u = null, N(), P(), M(), F();
393
+ e.className &&= "", t.minHeight = "250px", t.marginTop = W.adNodeMarginTop + "px", t.marginBottom = W.adNodeMarginBottom + "px", t.position = "static", t.display = "block", W.zIndex && W.zIndex();
394
+ }, V = () => {
395
+ let e = d.scrollY, t = u.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
396
+ e >= 0 && e <= K ? (t.transform = `translate(-50%, ${-e}px)`, n.transform = "translateY(0)") : e > K && e <= q ? (t.transform = `translate(-50%, ${-K}px)`, n.transform = `translateY(${K - e}px)`) : e > q && (t.transform = `translate(-50%, ${-K}px)`, n.transform = "translateY(-250px)");
397
+ }, H = () => {
398
+ W !== O && W !== j || p || (p = d.requestAnimationFrame(() => {
399
+ p = null, z(), B(), R(), V();
382
400
  }));
383
- }, L = () => {
384
- F();
401
+ }, U = () => {
402
+ V();
385
403
  };
386
- A();
387
- let R = j();
388
- if (!R) return () => {};
389
- let z = null, B = -R.responsiveScroll + o + v(), V = B + 250;
390
- return k(), () => {
391
- c.removeEventListener("scroll", L), c.removeEventListener("resize", I), d &&= (d.disconnect(), null), u &&= (c.cancelAnimationFrame(u), null), z &&= (clearTimeout(z), null);
404
+ I();
405
+ let W = L();
406
+ if (!W) return () => {};
407
+ let G = null, K = -W.responsiveScroll + l + w(), q = K + 250;
408
+ return F(), () => {
409
+ d.removeEventListener("scroll", U), d.removeEventListener("resize", H), m &&= (m.disconnect(), null), p &&= (d.cancelAnimationFrame(p), null), G &&= (clearTimeout(G), null);
392
410
  };
393
- }, s = (e) => {
394
- let t = window.frameElement ? window.frameElement : null;
395
- if (!t) return () => {};
396
- let n = window.parent;
397
- if (!n || n === window) return () => {};
398
- let r = null;
411
+ }, u = (o) => {
412
+ let c = window.frameElement ? window.frameElement : null;
413
+ if (!c) return () => {};
414
+ let l = window.parent;
415
+ if (!l || l === window) return () => {};
416
+ let u = null;
399
417
  try {
400
- r = n.document, n.location.href;
418
+ u = l.document, l.location.href;
401
419
  } catch {
402
420
  return () => {};
403
421
  }
404
- let a = document.getElementById("nineMasthead"), o = a ? a.style : {}, s, c = (e) => {
422
+ let d = document.getElementById("nineMasthead"), f = d ? d.style : {}, p, m = (e) => {
405
423
  if (!e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) return;
406
424
  let t = e.getElementById("powered-ac-tablet-takeover-static-fix");
407
425
  t || (t = e.createElement("style"), t.id = "powered-ac-tablet-takeover-static-fix", e.head.appendChild(t)), t.textContent = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ";
408
- }, l = {
426
+ }, h = (e, t = u) => r(t, e), g = (e, t = u) => i(t, e), _ = () => h("app") || u.querySelector("#app.nine, #app.wwos, #app"), v = () => {
427
+ let r = _();
428
+ if (!r) return;
429
+ let i = h("header-ad-desktop", r) || u.querySelector("#desktop-header-ads");
430
+ if (!i) return;
431
+ let o = h("header", r) || h("tv-show-banner", r) || r.querySelector(":scope > .sc-llJctl") || r.querySelector(":scope > header"), s = h("header-nav", r), c = g("nav-dropdown", r), l = a([h("page-container", r), h("container", r)]), d = a([
432
+ ...g("main", r),
433
+ ...g("sidebar", r),
434
+ ...g("sidebar-sticky", r),
435
+ ...g("footer", r)
436
+ ]);
437
+ e(i, "height", "250px"), e(i, "padding", "0px"), e(o, "position", "relative"), e(o, "zIndex", "1085"), e(s, "position", "relative"), e(s, "zIndex", "1086"), t(c, [["position", "relative"], ["zIndex", "1088"]]), t(l, [["position", "relative"], ["zIndex", "1071"]]), t(d, [["position", "relative"], ["zIndex", "1072"]]), n(u, "powered-ac-collant-nine-new-overrides", "\n #app > [data-ad-target=\"header\"],\n #app > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > [data-ad-target=\"header\"],\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app > .sc-llJctl,\n #app.wwos > .sc-llJctl,\n #app > header[data-tv-show],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n position: relative;\n z-index: 1085 !important;\n }\n\n #app [data-ad-target=\"header-nav\"],\n #app.wwos [data-ad-target=\"header-nav\"],\n #app .sc-gicCDH.bNInIa,\n #app.wwos .sc-gicCDH.bNInIa {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n position: relative;\n z-index: 1086;\n }\n\n #app [data-ad-target=\"nav-dropdown\"],\n #app.wwos [data-ad-target=\"nav-dropdown\"] {\n position: relative !important;\n z-index: 1088 !important;\n }\n ");
438
+ }, y = {
409
439
  siteBackgroundColor: "#ffffff",
410
440
  fireplaceLeftMargin: 0,
411
441
  adNodeMarginTop: -24,
@@ -422,7 +452,7 @@ var e = (e, t, n) => {
422
452
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
423
453
  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");
424
454
  }
425
- }, u = {
455
+ }, b = {
426
456
  siteBackgroundColor: "#ffffff",
427
457
  fireplaceLeftMargin: 0,
428
458
  adNodeMarginTop: -24,
@@ -437,9 +467,9 @@ var e = (e, t, n) => {
437
467
  maskOffset: window.parent.document.querySelector("div[class*=\"video-index__MyContainer\"]") ? 248 : 298,
438
468
  zIndex: function() {
439
469
  let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
440
- 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("div[class*=\"ArticleContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:24px"), e.querySelector("div[class*=\"MyContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:24px");
470
+ 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("div[class*=\"ArticleContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:24px"), e.querySelector("div[class*=\"MyContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:24px"), v();
441
471
  }
442
- }, d = {
472
+ }, x = {
443
473
  siteBackgroundColor: "#ffffff",
444
474
  fireplaceLeftMargin: 0,
445
475
  adNodeMarginTop: -24,
@@ -454,9 +484,9 @@ var e = (e, t, n) => {
454
484
  maskOffset: 304,
455
485
  zIndex: function() {
456
486
  let e = window.parent.document;
457
- 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"), c(e);
487
+ 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();
458
488
  }
459
- }, f = {
489
+ }, S = {
460
490
  siteBackgroundColor: "#ffffff",
461
491
  fireplaceLeftMargin: 0,
462
492
  adNodeMarginTop: -24,
@@ -470,10 +500,10 @@ var e = (e, t, n) => {
470
500
  },
471
501
  maskOffset: 312,
472
502
  zIndex: function() {
473
- let e = window.parent.document, t = i(e.querySelector("footer"), "div");
474
- t && (t.style.position = "relative"), c(e);
503
+ let e = window.parent.document, t = s(e.querySelector("footer"), "div");
504
+ t && (t.style.position = "relative"), m(e), v();
475
505
  }
476
- }, p = {
506
+ }, C = {
477
507
  siteBackgroundColor: "#ffffff",
478
508
  fireplaceLeftMargin: 0,
479
509
  adNodeMarginTop: -25,
@@ -488,9 +518,9 @@ var e = (e, t, n) => {
488
518
  maskOffset: 274,
489
519
  zIndex: function() {
490
520
  let e = window.parent.document;
491
- 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"), e.querySelector(".score-strip")?.setAttribute("style", "display:none"), e.querySelector(".feed-header__breadcrumbs")?.setAttribute("style", "display:none"), e.querySelector(".layout.container")?.setAttribute("style", "padding:0"), e.querySelector(".empty-div")?.setAttribute("style", "display:none"), c(e);
521
+ 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"), e.querySelector(".score-strip")?.setAttribute("style", "display:none"), e.querySelector(".feed-header__breadcrumbs")?.setAttribute("style", "display:none"), e.querySelector(".layout.container")?.setAttribute("style", "padding:0"), e.querySelector(".empty-div")?.setAttribute("style", "display:none"), m(e);
492
522
  }
493
- }, m = {
523
+ }, w = {
494
524
  siteBackgroundColor: "#ffffff",
495
525
  fireplaceLeftMargin: 0,
496
526
  adNodeMarginTop: -32,
@@ -509,209 +539,209 @@ var e = (e, t, n) => {
509
539
  let t = e.querySelector("[class*=\"VideoIndexComponent\"]");
510
540
  t && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), t.style.maxWidth = "1190px", t.style.margin = "auto", t.style.position = "relative");
511
541
  }
512
- }, h = [
542
+ }, T = [
513
543
  {
514
544
  site: "https://www.nine.com.au/sport",
515
- config: f
545
+ config: S
516
546
  },
517
547
  {
518
548
  site: "https://www.nine.com.au/product-reviews",
519
- config: u
549
+ config: b
520
550
  },
521
551
  {
522
552
  site: "https://www.nine.com.au/property",
523
- config: u
553
+ config: b
524
554
  },
525
555
  {
526
556
  site: "https://www.nine.com.au/entertainment",
527
- config: u
557
+ config: b
528
558
  },
529
559
  {
530
560
  site: "https://staging.nine.com.au/sport",
531
- config: f
561
+ config: S
532
562
  },
533
563
  {
534
564
  site: "https://staging.nine.com.au/product-reviews",
535
- config: u
565
+ config: b
536
566
  },
537
567
  {
538
568
  site: "https://staging.nine.com.au/property",
539
- config: u
569
+ config: b
540
570
  },
541
571
  {
542
572
  site: "https://staging.nine.com.au/entertainment",
543
- config: u
573
+ config: b
544
574
  },
545
575
  {
546
576
  site: "https://render-web-nine-staging-v1.ffxblue.com.au",
547
- config: d
577
+ config: x
548
578
  },
549
579
  {
550
580
  site: "https://render-web-nine-production-v1.ffxblue.com.au",
551
- config: d
581
+ config: x
552
582
  },
553
583
  {
554
584
  site: "https://preview.nine.com.au/",
555
- config: d
585
+ config: x
556
586
  },
557
587
  {
558
588
  site: "https://www.nine",
559
- config: d
589
+ config: x
560
590
  },
561
591
  {
562
592
  site: "https://staging.nine",
563
- config: d
593
+ config: x
564
594
  },
565
595
  {
566
596
  site: "https://entertainment",
567
- config: l
597
+ config: y
568
598
  },
569
599
  {
570
600
  site: "https://celebrity",
571
- config: l
601
+ config: y
572
602
  },
573
603
  {
574
604
  site: "https://homes",
575
- config: l
605
+ config: y
576
606
  },
577
607
  {
578
608
  site: "https://travel",
579
- config: l
609
+ config: y
580
610
  },
581
611
  {
582
612
  site: "https://honey",
583
- config: l
613
+ config: y
584
614
  },
585
615
  {
586
616
  site: "https://style",
587
- config: l
617
+ config: y
588
618
  },
589
619
  {
590
620
  site: "https://coach",
591
- config: l
621
+ config: y
592
622
  },
593
623
  {
594
624
  site: "https://kitchen",
595
- config: l
625
+ config: y
596
626
  },
597
627
  {
598
628
  site: "https://finance",
599
- config: l
629
+ config: y
600
630
  },
601
631
  {
602
632
  site: "https://wwos",
603
- config: p
633
+ config: C
604
634
  },
605
635
  {
606
636
  site: "https://staging.wwos",
607
- config: f
637
+ config: S
608
638
  },
609
639
  {
610
640
  site: "https://www.9news",
611
- config: m
641
+ config: w
612
642
  },
613
643
  {
614
644
  site: "https://staging.9news",
615
- config: m
645
+ config: w
616
646
  },
617
647
  {
618
648
  site: "https://www.yourtv",
619
- config: l
649
+ config: y
620
650
  },
621
651
  {
622
652
  site: "https://staging.yourtv",
623
- config: l
653
+ config: y
624
654
  },
625
655
  {
626
656
  site: "https://9now",
627
- config: u
657
+ config: b
628
658
  },
629
659
  {
630
660
  site: "https://creative-preview-an.com",
631
- config: l
661
+ config: y
632
662
  }
633
- ], g = () => {
663
+ ], E = () => {
634
664
  let e = window.document.getElementById("nineContent");
635
- e && (e.style.backgroundColor = O.siteBackgroundColor), a && (o.setProperty("--masthead-height", "250px"), o.height = "var(--masthead-height)"), S(), x(), y(), C(), n.addEventListener("scroll", E, { passive: !0 }), k = setTimeout(E, 50);
636
- }, _ = () => {
665
+ e && (e.style.backgroundColor = R.siteBackgroundColor), d && (f.setProperty("--masthead-height", "250px"), f.height = "var(--masthead-height)"), M(), j(), k(), N(), l.addEventListener("scroll", I, { passive: !0 }), z = setTimeout(I, 50);
666
+ }, D = () => {
637
667
  let e = null;
638
- return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
639
- }, v = () => {
640
- let e = r.querySelector("nav");
641
- if (!e) return 0;
642
- let t = n.getComputedStyle(e);
668
+ return e = u.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
669
+ }, O = () => {
670
+ let e = u.querySelector("nav");
671
+ if (h("header-ad-desktop") || !e) return 0;
672
+ let t = l.getComputedStyle(e);
643
673
  if (t.position !== "fixed") return 0;
644
- let i = parseFloat(t.top || "0");
645
- return Number.isFinite(i) && Math.abs(i) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
646
- }, y = () => {
674
+ let n = parseFloat(t.top || "0");
675
+ return Number.isFinite(n) && Math.abs(n) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
676
+ }, k = () => {
647
677
  let e = null;
648
678
  if (!window.parent) return e;
649
- if (e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
679
+ if (e = u.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
650
680
  let t = e;
651
681
  for (let e = 0; e < 3; e++) if (t = t.parentNode, t && getComputedStyle(t).position === "sticky") {
652
- t.setAttribute("style", `top: ${O.stickyMargin.offset}px`);
682
+ t.setAttribute("style", `top: ${R.stickyMargin.offset}px`);
653
683
  break;
654
684
  }
655
- }, b = () => {
656
- let e = n.location.href;
657
- for (let t = 0; t < h.length; t += 1) if (e.indexOf(h[t].site) >= 0) return h[t].config;
658
- }, x = () => {
659
- if (!t) return;
660
- let e = t.style;
685
+ }, A = () => {
686
+ let e = l.location.href;
687
+ for (let t = 0; t < T.length; t += 1) if (e.indexOf(T[t].site) >= 0) return T[t].config;
688
+ }, j = () => {
689
+ if (!c) return;
690
+ let e = c.style;
661
691
  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)";
662
- }, S = () => {
663
- if (!D) return;
664
- let e = D.style;
665
- D.className = "", e.minHeight = "250px", e.marginTop = O.adNodeMarginTop + "px", e.marginBottom = O.adNodeMarginBottom + "px", e.position = "static", e.display = "block", O.zIndex && O.zIndex();
666
- }, C = () => {
667
- s = r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || r.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || r.querySelector("div[class*=\"__MyContainer\"]") || r.querySelector("div[class*=\"__ArticleContainer\"]") || r.querySelector("div[class*=\"__VideoIndexComponent\"]") || r.querySelector("div.container.layout") || r.querySelector("main.container.layout"), s && (s.style.willChange = "clip-path", s.style.transition = "none", s.style.webkitBackfaceVisibility = "hidden", s.style.backfaceVisibility = "hidden", s.style.transform = "translate3d(0,0,0)", s.style.backgroundColor = O.siteBackgroundColor, s.style.setProperty("--mask-inset", "0px"), s.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
668
- }, w = 0, T = 0, E = () => {
669
- let e = n.scrollY, r = e > w, i = e > j ? e - O.maskOffset : 0, a = Math.abs(i - T);
670
- if (s) if (r && i > T) if (a > 100) {
671
- let e = Math.max(0, i - 100);
672
- s.style.transition = "none", s.style.setProperty("--mask-inset", `${e}px`), s.offsetHeight, s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${i}px`);
673
- } else s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${i}px`);
674
- else s.style.transition = "none", s.style.setProperty("--mask-inset", `${i}px`);
675
- w = e, T = i, e > j ? (t.style.setProperty("--transform-y", `${-A}px`), o.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > A && e <= j ? (t.style.setProperty("--transform-y", `${-A}px`), o.setProperty("--masthead-height", `${250 + A - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= A && (t.style.setProperty("--transform-y", `${-e}px`), o.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
676
- }, D = _(), O = b();
677
- if (!O) return () => {};
678
- let k = null, A = -O.responsiveScroll + e + v(), j = A + 150;
679
- return g(), () => {
680
- n.removeEventListener("scroll", E), k &&= (clearTimeout(k), null);
692
+ }, M = () => {
693
+ if (!L) return;
694
+ let e = L.style;
695
+ L.className = "", e.minHeight = "250px", e.marginTop = R.adNodeMarginTop + "px", e.marginBottom = R.adNodeMarginBottom + "px", e.position = "static", e.display = "block", R.zIndex && R.zIndex();
696
+ }, N = () => {
697
+ 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 = R.siteBackgroundColor, p.style.setProperty("--mask-inset", "0px"), p.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
698
+ }, P = 0, F = 0, I = () => {
699
+ let e = l.scrollY, t = e > P, n = e > V ? e - R.maskOffset : 0, r = Math.abs(n - F);
700
+ if (p) if (t && n > F) if (r > 100) {
701
+ let e = Math.max(0, n - 100);
702
+ 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`);
703
+ } else p.style.transition = "clip-path 0.3s ease-out", p.style.setProperty("--mask-inset", `${n}px`);
704
+ else p.style.transition = "none", p.style.setProperty("--mask-inset", `${n}px`);
705
+ P = e, F = n, e > V ? (c.style.setProperty("--transform-y", `${-B}px`), f.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > B && e <= V ? (c.style.setProperty("--transform-y", `${-B}px`), f.setProperty("--masthead-height", `${250 + B - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= B && (c.style.setProperty("--transform-y", `${-e}px`), f.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
706
+ }, L = D(), R = A();
707
+ if (!R) return () => {};
708
+ let z = null, B = -R.responsiveScroll + o + O(), V = B + 150;
709
+ return E(), () => {
710
+ l.removeEventListener("scroll", I), z &&= (clearTimeout(z), null);
681
711
  };
682
- }, c = 866, l = 68, u = 16, d = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", f = "adspot-desktop-takeover-2-above", p = -24, m = -24, h = [
712
+ }, d = 866, f = 68, p = 16, m = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", h = "adspot-desktop-takeover-2-above", g = -24, _ = -24, v = [
683
713
  "www.nine.com.au",
684
714
  "staging.nine.com.au",
685
715
  "preview.nine.com.au",
686
716
  "render-web-nine-staging-v1.ffxblue.com.au",
687
717
  "render-web-nine-production-v1.ffxblue.com.au"
688
- ], g = [{
689
- hostnames: h,
718
+ ], y = [{
719
+ hostnames: v,
690
720
  path: "/sport",
691
721
  headingText: "Sport",
692
- slotId: f
693
- }], _ = new Set(["localhost", "127.0.0.1"]), v = "__poweredAdConfigDynamicHeadingActive", y = "data-pac-dynamicheading-owner", b = "data-pac-reparented", x = (e, t) => {
722
+ slotId: h
723
+ }], b = new Set(["localhost", "127.0.0.1"]), x = "__poweredAdConfigDynamicHeadingActive", S = "data-pac-dynamicheading-owner", C = "data-pac-reparented", w = (e, t) => {
694
724
  if (typeof e == "number" && Number.isFinite(e)) return `${e}px`;
695
725
  if (typeof e == "string") {
696
726
  let n = e.trim();
697
727
  return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : `${t}px`;
698
728
  }
699
729
  return `${t}px`;
700
- }, S = (e) => {
730
+ }, T = (e) => {
701
731
  if (!e || typeof e != "object") return null;
702
732
  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) : [];
703
733
  return !t || !n && !r ? null : {
704
734
  headingText: t,
705
735
  path: n || null,
706
736
  pathPrefix: r || null,
707
- slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : f,
708
- hostnames: i.length ? i : h
737
+ slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : h,
738
+ hostnames: i.length ? i : v
709
739
  };
710
- }, C = (e) => {
711
- if (!Array.isArray(e) || e.length === 0) return g;
712
- let t = e.map(S).filter(Boolean);
713
- return t.length ? t : g;
714
- }, w = ({ offsetTop: e = p, offsetLeft: t = m, width: n = c, height: r = l, pageTargets: i = g } = {}) => {
740
+ }, E = (e) => {
741
+ if (!Array.isArray(e) || e.length === 0) return y;
742
+ let t = e.map(T).filter(Boolean);
743
+ return t.length ? t : y;
744
+ }, D = ({ offsetTop: e = g, offsetLeft: t = _, width: n = d, height: r = f, pageTargets: i = y } = {}) => {
715
745
  let a = window.frameElement || null;
716
746
  if (!a) return () => {};
717
747
  let o = window.parent;
@@ -722,20 +752,20 @@ var e = (e, t, n) => {
722
752
  } catch {
723
753
  return () => {};
724
754
  }
725
- let f = o[v];
726
- if (f?.iframe === a && typeof f.cleanup == "function") return f.cleanup;
727
- if (f?.iframe?.isConnected && typeof f?.cleanup == "function") return () => {};
728
- typeof f?.cleanup == "function" && f.cleanup();
729
- let h = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, S = (e, t, n) => {
755
+ let c = o[x];
756
+ if (c?.iframe === a && typeof c.cleanup == "function") return c.cleanup;
757
+ if (c?.iframe?.isConnected && typeof c?.cleanup == "function") return () => {};
758
+ typeof c?.cleanup == "function" && c.cleanup();
759
+ let l = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = (e, t, n) => {
730
760
  e && e.style[t] !== n && (e.style[t] = n);
731
- }, w = () => {
761
+ }, h = () => {
732
762
  try {
733
763
  let e = window.location.hostname.toLowerCase();
734
- return _.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
764
+ return b.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
735
765
  } catch {
736
766
  return !1;
737
767
  }
738
- }, T = (e = a.parentElement) => {
768
+ }, v = (e = a.parentElement) => {
739
769
  let t = e;
740
770
  for (; t && t !== s.body;) {
741
771
  let e = t.id || "", n = t.getAttribute?.("data-testid") || "", r = t.getAttribute?.("type") || "";
@@ -743,7 +773,7 @@ var e = (e, t, n) => {
743
773
  t = t.parentElement;
744
774
  }
745
775
  return a.parentElement;
746
- }, E = () => {
776
+ }, T = () => {
747
777
  try {
748
778
  let e = new URL(o.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
749
779
  return P.find((e) => {
@@ -755,7 +785,7 @@ var e = (e, t, n) => {
755
785
  }
756
786
  return null;
757
787
  }, D = (e) => {
758
- let t = Array.from(s.querySelectorAll(d));
788
+ let t = Array.from(s.querySelectorAll(m));
759
789
  if (!t.length) return null;
760
790
  let n = typeof e == "string" ? e.trim().toLowerCase() : "";
761
791
  if (n) {
@@ -764,13 +794,13 @@ var e = (e, t, n) => {
764
794
  }
765
795
  return t.find((e) => e.tagName === "H1") || t[0] || null;
766
796
  }, O = null, k = null;
767
- w();
768
- let A = x(e, p), j = x(t, m), M = x(n, c), N = x(r, l), P = C(i), F = E();
797
+ h();
798
+ let A = w(e, g), j = w(t, _), M = w(n, d), N = w(r, f), P = E(i), F = T();
769
799
  if (!F) return () => {};
770
- let I = T((F.slotId ? s.getElementById(F.slotId) : null) || a.parentElement);
800
+ let I = v((F.slotId ? s.getElementById(F.slotId) : null) || a.parentElement);
771
801
  if (!I) return () => {};
772
- let L = I.getAttribute(y);
773
- if (L && L !== h) return () => {};
802
+ let L = I.getAttribute(S);
803
+ if (L && L !== l) return () => {};
774
804
  let R = {
775
805
  width: I.style.width,
776
806
  maxWidth: I.style.maxWidth,
@@ -799,21 +829,21 @@ var e = (e, t, n) => {
799
829
  border: a.style.border,
800
830
  position: a.style.position,
801
831
  pointerEvents: a.style.pointerEvents
802
- }, B = [], V = parseFloat(N) || l, H = parseFloat(A) || 0, ee = parseFloat(j) || 0, U = () => {
832
+ }, B = [], V = parseFloat(N) || f, H = parseFloat(A) || 0, U = parseFloat(j) || 0, W = () => {
803
833
  let e = I.parentElement;
804
834
  for (; e && e !== s.body;) B.push({
805
835
  element: e,
806
836
  overflow: e.style.overflow
807
- }), S(e, "overflow", "visible"), e = e.parentElement;
808
- }, te = () => {
809
- S(I, "width", M), S(I, "maxWidth", M), S(I, "minWidth", M), S(I, "height", N), S(I, "minHeight", N), S(I, "display", "block"), S(I, "overflow", "hidden"), S(I, "pointerEvents", "none"), S(I, "zIndex", "1080"), I.setAttribute(y, h), S(a, "width", M), S(a, "height", N), S(a, "display", "block"), S(a, "border", "0"), S(a, "position", "relative"), S(a, "pointerEvents", "auto");
810
- }, ne = {
837
+ }), u(e, "overflow", "visible"), e = e.parentElement;
838
+ }, G = () => {
839
+ u(I, "width", M), u(I, "maxWidth", M), u(I, "minWidth", M), u(I, "height", N), u(I, "minHeight", N), u(I, "display", "block"), u(I, "overflow", "hidden"), u(I, "pointerEvents", "none"), u(I, "zIndex", "1080"), I.setAttribute(S, l), u(a, "width", M), u(a, "height", N), u(a, "display", "block"), u(a, "border", "0"), u(a, "position", "relative"), u(a, "pointerEvents", "auto");
840
+ }, K = {
811
841
  element: null,
812
842
  position: ""
813
- }, re = () => {
843
+ }, q = () => {
814
844
  let e = I.parentElement;
815
- e && o.getComputedStyle(e).position === "static" && (ne.element = e, ne.position = e.style.position, S(e, "position", "relative")), S(I, "position", "absolute"), S(I, "top", `${H}px`), S(I, "left", `${ee}px`), S(I, "right", "auto"), S(I, "marginTop", "0px"), S(I, "marginBottom", `${u}px`), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
816
- }, ie = (e) => {
845
+ e && o.getComputedStyle(e).position === "static" && (K.element = e, K.position = e.style.position, u(e, "position", "relative")), u(I, "position", "absolute"), u(I, "top", `${H}px`), u(I, "left", `${U}px`), u(I, "right", "auto"), u(I, "marginTop", "0px"), u(I, "marginBottom", `${p}px`), u(I, "marginLeft", "0px"), u(I, "marginRight", "0px"), u(I, "transform", "");
846
+ }, ee = (e) => {
817
847
  let t = null;
818
848
  try {
819
849
  let e = a.contentDocument;
@@ -829,54 +859,54 @@ var e = (e, t, n) => {
829
859
  return !1;
830
860
  }
831
861
  if (!t) return !1;
832
- a.setAttribute(b, "1");
862
+ a.setAttribute(C, "1");
833
863
  try {
834
864
  e.parentNode?.insertBefore(I, e);
835
865
  } catch {
836
- return a.removeAttribute(b), !1;
866
+ return a.removeAttribute(C), !1;
837
867
  }
838
- U(), te(), re();
868
+ W(), G(), q();
839
869
  try {
840
870
  a.srcdoc = t;
841
871
  } catch {
842
872
  return !1;
843
873
  }
844
874
  return !0;
845
- }, ae = () => {
846
- S(I, "position", "fixed"), S(I, "marginTop", "0px"), S(I, "marginBottom", "0px"), S(I, "marginLeft", "0px"), S(I, "marginRight", "0px"), S(I, "transform", "");
847
- }, W = () => {
848
- S(I, "display", "none");
849
- }, oe = () => {
850
- S(I, "display", "block"), S(I, "overflow", "hidden");
851
- }, G = null, K = () => {
852
- if ((!G || !G.isConnected) && (G = D(F.headingText)), !G) return;
853
- let e = G.getBoundingClientRect(), t = e.top - V - u + H, n = e.left + ee;
854
- S(I, "top", `${t}px`), S(I, "left", `${n}px`), S(I, "right", "auto");
855
- }, q = null, J = null, Y = !1, X = (e = 12) => {
856
- if (G = D(F.headingText), !G) {
857
- e > 1 && (k = o.setTimeout(() => X(e - 1), 250));
875
+ }, te = () => {
876
+ u(I, "position", "fixed"), u(I, "marginTop", "0px"), u(I, "marginBottom", "0px"), u(I, "marginLeft", "0px"), u(I, "marginRight", "0px"), u(I, "transform", "");
877
+ }, J = () => {
878
+ u(I, "display", "none");
879
+ }, ne = () => {
880
+ u(I, "display", "block"), u(I, "overflow", "hidden");
881
+ }, Y = null, re = () => {
882
+ if ((!Y || !Y.isConnected) && (Y = D(F.headingText)), !Y) return;
883
+ let e = Y.getBoundingClientRect(), t = e.top - V - p + H, n = e.left + U;
884
+ u(I, "top", `${t}px`), u(I, "left", `${n}px`), u(I, "right", "auto");
885
+ }, ie = null, X = null, Z = !1, Q = (e = 12) => {
886
+ if (Y = D(F.headingText), !Y) {
887
+ e > 1 && (k = o.setTimeout(() => Q(e - 1), 250));
858
888
  return;
859
889
  }
860
- ie(G) || (Y = !0, U(), te(), ae(), K(), q = () => K(), J = () => K(), o.addEventListener("scroll", q, { passive: !0 }), o.addEventListener("resize", J));
890
+ ee(Y) || (Z = !0, W(), G(), te(), re(), ie = () => re(), X = () => re(), o.addEventListener("scroll", ie, { passive: !0 }), o.addEventListener("resize", X));
861
891
  };
862
- X();
863
- let se = () => {
864
- k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), q &&= (o.removeEventListener("scroll", q), null), J &&= (o.removeEventListener("resize", J), null), I.getAttribute(y) === h && I.removeAttribute(y), Y && (Object.entries(R).forEach(([e, t]) => {
892
+ Q();
893
+ let ae = () => {
894
+ k &&= (o.clearTimeout(k), null), O &&= (o.clearTimeout(O), null), ie &&= (o.removeEventListener("scroll", ie), null), X &&= (o.removeEventListener("resize", X), null), I.getAttribute(S) === l && I.removeAttribute(S), Z && (Object.entries(R).forEach(([e, t]) => {
865
895
  I.style[e] = t;
866
896
  }), Object.entries(z).forEach(([e, t]) => {
867
897
  a.style[e] = t;
868
898
  }), B.forEach(({ element: e, overflow: t }) => {
869
899
  e.style.overflow = t;
870
- })), o[v]?.instanceId === h && delete o[v];
900
+ })), o[x]?.instanceId === l && delete o[x];
871
901
  };
872
- return o[v] = {
873
- instanceId: h,
902
+ return o[x] = {
903
+ instanceId: l,
874
904
  iframe: a,
875
- cleanup: se,
876
- show: oe,
877
- hide: W
878
- }, se;
879
- }, T = (e, t, n) => {
905
+ cleanup: ae,
906
+ show: ne,
907
+ hide: J
908
+ }, ae;
909
+ }, O = (e, t, n) => {
880
910
  let r = window.frameElement ? window.frameElement : null;
881
911
  if (!r) return () => {};
882
912
  let i = window.parent;
@@ -1117,11 +1147,11 @@ var e = (e, t, n) => {
1117
1147
  return p(), () => {
1118
1148
  i.removeEventListener("scroll", y), w &&= (clearTimeout(w), null);
1119
1149
  };
1120
- }, E = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
1150
+ }, k = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
1121
1151
  if (e === 0 || e === 1) return e;
1122
1152
  let t = 2 * Math.PI / 3;
1123
1153
  return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
1124
- }), D = (e = {}) => {
1154
+ }), A = (e = {}) => {
1125
1155
  let t = {
1126
1156
  adScrollHeight: "300vh",
1127
1157
  bandHeight: 24,
@@ -1144,7 +1174,7 @@ var e = (e, t, n) => {
1144
1174
  snapOverlap: 2,
1145
1175
  stretchOverlap: 20,
1146
1176
  snapDuration: .9,
1147
- snapEase: E,
1177
+ snapEase: k,
1148
1178
  onEnter: null,
1149
1179
  onExit: null,
1150
1180
  onProgress: null,
@@ -1188,7 +1218,7 @@ var e = (e, t, n) => {
1188
1218
  };
1189
1219
  (() => {
1190
1220
  let e = a.style;
1191
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.78"), 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";
1221
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.79"), 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";
1192
1222
  let o = a.parentElement;
1193
1223
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
1194
1224
  let t = r.getComputedStyle(o), n = !1;
@@ -1293,7 +1323,7 @@ var e = (e, t, n) => {
1293
1323
  e.style[t] = n || "";
1294
1324
  });
1295
1325
  };
1296
- }, O = (e = {}) => {
1326
+ }, j = (e = {}) => {
1297
1327
  let t = {
1298
1328
  adaptToWidth: "100%",
1299
1329
  maxWidth: "400px",
@@ -1326,7 +1356,7 @@ var e = (e, t, n) => {
1326
1356
  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;
1327
1357
  return (() => {
1328
1358
  let e = a.style;
1329
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.78"), c) {
1359
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.79"), c) {
1330
1360
  let e = c.style;
1331
1361
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1332
1362
  }
@@ -1341,7 +1371,7 @@ var e = (e, t, n) => {
1341
1371
  })(), () => {
1342
1372
  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);
1343
1373
  };
1344
- }, k = (e = {}) => {
1374
+ }, M = (e = {}) => {
1345
1375
  let t = {
1346
1376
  billboardHeight: 150,
1347
1377
  sideStripWidth: 10,
@@ -1519,24 +1549,24 @@ var e = (e, t, n) => {
1519
1549
  })(), 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, k = o ? Array.from(o.children).map((e) => ({
1520
1550
  el: e,
1521
1551
  orig: e.getAttribute("style")
1522
- })) : [], A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = null, R = [], z = null, B = null, V = null, H = null, ee = null, U = null, te = null, ne = [], re = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ie = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, ae = !!(t.sticky && (re || ie)), W = "pending", oe = 0, G = 0, K = null, q = null, J = null, Y = null, X = null, se = null, ce = [], le = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, Z = f === u.afr, Q = null, ue = null, de = (e) => {
1552
+ })) : [], A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = null, R = [], z = null, B = null, V = null, H = null, U = null, W = null, G = null, K = [], q = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ee = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, te = !!(t.sticky && (q || ee)), J = "pending", ne = 0, Y = 0, re = null, ie = null, X = null, Z = null, Q = null, ae = null, oe = [], se = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, $ = f === u.afr, ce = null, le = null, ue = (e) => {
1523
1553
  if (!e || e === V || e === y || e === a) return !1;
1524
1554
  let t = e.firstElementChild;
1525
1555
  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;
1526
1556
  let n = r.getComputedStyle(e);
1527
1557
  return n.position === "fixed" || n.position === "sticky";
1528
- }, fe = (e) => {
1529
- !e?.parentElement || ne.some((t) => t.shell === e) || (ne.push({
1558
+ }, de = (e) => {
1559
+ !e?.parentElement || K.some((t) => t.shell === e) || (K.push({
1530
1560
  shell: e,
1531
1561
  parent: e.parentElement,
1532
1562
  nextSibling: e.nextSibling
1533
1563
  }), e.remove());
1534
- }, pe = () => {
1564
+ }, fe = () => {
1535
1565
  for (let e of i.querySelectorAll(".container")) {
1536
1566
  let t = e.parentElement;
1537
- de(t) && fe(t);
1567
+ ue(t) && de(t);
1538
1568
  }
1539
- }, me = (e) => {
1569
+ }, pe = (e) => {
1540
1570
  let t = e?.parentElement;
1541
1571
  for (; t && t !== i.body && t !== i.documentElement;) {
1542
1572
  let e = r.getComputedStyle(t);
@@ -1545,10 +1575,10 @@ var e = (e, t, n) => {
1545
1575
  orig: t.getAttribute("style")
1546
1576
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1547
1577
  }
1548
- }, he = () => {
1578
+ }, me = () => {
1549
1579
  let e = i.createElement("div");
1550
1580
  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;
1551
- }, ge = () => {
1581
+ }, he = () => {
1552
1582
  if (!s || f !== u.wwos) return null;
1553
1583
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1554
1584
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1561,7 +1591,7 @@ var e = (e, t, n) => {
1561
1591
  };
1562
1592
  }).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");
1563
1593
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1564
- }, $ = () => L || a, _e = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1594
+ }, ge = () => L || a, _e = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1565
1595
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1566
1596
  return {
1567
1597
  el: e,
@@ -1574,7 +1604,7 @@ var e = (e, t, n) => {
1574
1604
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1575
1605
  }, ye = () => {
1576
1606
  let e = ve();
1577
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, le || t.stickyTop);
1607
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, se || t.stickyTop);
1578
1608
  }, be = () => {
1579
1609
  let e = ve();
1580
1610
  return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex + 1) : t.stickyZIndex;
@@ -1586,102 +1616,102 @@ var e = (e, t, n) => {
1586
1616
  remainingMs: Math.max(0, Math.round(n))
1587
1617
  }, "*");
1588
1618
  }, Se = (e) => {
1589
- !e || ce.some((t) => t.el === e) || ce.push({
1619
+ !e || oe.some((t) => t.el === e) || oe.push({
1590
1620
  el: e,
1591
1621
  value: e.style.getPropertyValue("z-index"),
1592
1622
  priority: e.style.getPropertyPriority("z-index")
1593
1623
  });
1594
1624
  }, Ce = (e) => {
1595
- let t = new Set([$()].filter(Boolean));
1596
- if (f === u.afr || U || p) {
1625
+ let t = new Set([ge()].filter(Boolean));
1626
+ if (f === u.afr || W || p) {
1597
1627
  [
1598
1628
  a,
1599
1629
  y,
1600
1630
  c
1601
1631
  ].filter(Boolean).forEach((e) => t.add(e));
1602
- let e = $()?.parentElement;
1632
+ let e = ge()?.parentElement;
1603
1633
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1604
1634
  }
1605
1635
  for (let n of t) Se(n), n.style.setProperty("z-index", String(e), "important");
1606
- }, we = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), Te = () => {
1607
- if (!Z || !F) return;
1636
+ }, we = () => $ && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || ge(), Te = () => {
1637
+ if (!$ || !F) return;
1608
1638
  let e = F.style;
1609
1639
  e.left = "0px", e.width = "100vw";
1610
1640
  }, Ee = () => {
1611
- if (!Z || !F || W === "active") return;
1641
+ if (!$ || !F || J === "active") return;
1612
1642
  let e = we();
1613
1643
  if (!e) return;
1614
1644
  let t = e.getBoundingClientRect(), n = F.style;
1615
1645
  n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Te(), n.setProperty("z-index", "6", "important"), F.removeAttribute("data-mf-sticky-active");
1616
1646
  }, De = () => {
1617
- Z && (Ee(), Y && r.cancelAnimationFrame(Y), Y = r.requestAnimationFrame(() => {
1618
- Y = null, Ee();
1619
- }), X && r.clearTimeout(X), X = r.setTimeout(() => {
1620
- X = null, Ee();
1647
+ $ && (Ee(), Z && r.cancelAnimationFrame(Z), Z = r.requestAnimationFrame(() => {
1648
+ Z = null, Ee();
1649
+ }), Q && r.clearTimeout(Q), Q = r.setTimeout(() => {
1650
+ Q = null, Ee();
1621
1651
  }, 350));
1622
1652
  }, Oe = () => {
1623
- !Z || !F || F.parentElement === i.body || (Q = F.parentElement, ue = F.nextSibling, i.body.appendChild(F));
1653
+ !$ || !F || F.parentElement === i.body || (ce = F.parentElement, le = F.nextSibling, i.body.appendChild(F));
1624
1654
  }, ke = () => {
1625
- if (!Q || !F) {
1626
- Q = null, ue = null;
1655
+ if (!ce || !F) {
1656
+ ce = null, le = null;
1627
1657
  return;
1628
1658
  }
1629
- ue && ue.parentNode === Q ? Q.insertBefore(F, ue) : Q.appendChild(F), Q = null, ue = null;
1659
+ le && le.parentNode === ce ? ce.insertBefore(F, le) : ce.appendChild(F), ce = null, le = null;
1630
1660
  }, Ae = () => {
1631
- for (let e = ce.length - 1; e >= 0; --e) {
1632
- let { el: t, value: n, priority: r } = ce[e];
1661
+ for (let e = oe.length - 1; e >= 0; --e) {
1662
+ let { el: t, value: n, priority: r } = oe[e];
1633
1663
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1634
1664
  }
1635
- ce.length = 0;
1665
+ oe.length = 0;
1636
1666
  }, je = () => {
1637
1667
  if (!F) return;
1638
- me($());
1639
- let e = $().getBoundingClientRect(), t = be();
1668
+ pe(ge());
1669
+ let e = ge().getBoundingClientRect(), t = be();
1640
1670
  Ce(t), Oe();
1641
1671
  let n = F.style;
1642
- n.position = "fixed", n.top = `${ye()}px`, Z ? Te() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), F.setAttribute("data-mf-sticky-active", "");
1672
+ n.position = "fixed", n.top = `${ye()}px`, $ ? Te() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), F.setAttribute("data-mf-sticky-active", "");
1643
1673
  }, Me = () => {
1644
1674
  if (!F) return;
1645
- if (ke(), Z) {
1675
+ if (ke(), $) {
1646
1676
  De(), Ae();
1647
1677
  return;
1648
1678
  }
1649
1679
  let e = F.style;
1650
1680
  e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Ae(), F.removeAttribute("data-mf-sticky-active");
1651
1681
  }, Ne = () => {
1652
- q &&= (r.cancelAnimationFrame(q), null);
1682
+ ie &&= (r.cancelAnimationFrame(ie), null);
1653
1683
  }, Pe = () => {
1654
- J &&= (r.cancelAnimationFrame(J), null);
1684
+ X &&= (r.cancelAnimationFrame(X), null);
1655
1685
  }, Fe = () => {
1656
- if (K === null) {
1657
- let e = $().getBoundingClientRect();
1658
- K = Math.max(0, r.scrollY + e.top - t.stickyTop);
1686
+ if (re === null) {
1687
+ let e = ge().getBoundingClientRect();
1688
+ re = Math.max(0, r.scrollY + e.top - t.stickyTop);
1659
1689
  }
1660
- return K;
1661
- }, Ie = () => G + (W === "active" ? Math.max(0, r.performance.now() - oe) : 0), Le = () => Math.max(0, r.scrollY - Fe()), Re = () => {
1662
- let e = re ? Ie() / t.stickyDurationMs : 0, n = ie ? Le() / t.stickyScrollDistance : 0;
1690
+ return re;
1691
+ }, Ie = () => Y + (J === "active" ? Math.max(0, r.performance.now() - ne) : 0), Le = () => Math.max(0, r.scrollY - Fe()), Re = () => {
1692
+ let e = q ? Ie() / t.stickyDurationMs : 0, n = ee ? Le() / t.stickyScrollDistance : 0;
1663
1693
  return Math.max(e, n);
1664
- }, ze = () => re ? t.stickyDurationMs - Ie() : 0, Be = () => r.scrollY < Fe() - 1, Ve = () => {
1665
- W === "active" && (G = Ie(), W = "paused", Ne(), Me(), xe({
1694
+ }, ze = () => q ? t.stickyDurationMs - Ie() : 0, Be = () => r.scrollY < Fe() - 1, Ve = () => {
1695
+ J === "active" && (Y = Ie(), J = "paused", Ne(), Me(), xe({
1666
1696
  active: !1,
1667
1697
  progress: Re(),
1668
1698
  remainingMs: ze()
1669
1699
  }));
1670
1700
  }, He = () => {
1671
- W !== "paused" || Be() || (W = "active", oe = r.performance.now(), je(), We());
1701
+ J !== "paused" || Be() || (J = "active", ne = r.performance.now(), je(), We());
1672
1702
  }, Ue = () => {
1673
- W !== "active" && W !== "paused" || (W === "active" && (G = Ie()), W = "released", Ne(), Me(), xe({
1703
+ J !== "active" && J !== "paused" || (J === "active" && (Y = Ie()), J = "released", Ne(), Me(), xe({
1674
1704
  active: !1,
1675
1705
  progress: 1,
1676
1706
  remainingMs: 0
1677
1707
  }));
1678
1708
  }, We = () => {
1679
- if (W !== "active") return;
1709
+ if (J !== "active") return;
1680
1710
  if (Be()) {
1681
1711
  Ve();
1682
1712
  return;
1683
1713
  }
1684
- let e = Ie(), n = Le(), i = re ? e / t.stickyDurationMs : 0, a = ie ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = re ? t.stickyDurationMs - e : 0;
1714
+ let e = Ie(), n = Le(), i = q ? e / t.stickyDurationMs : 0, a = ee ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = q ? t.stickyDurationMs - e : 0;
1685
1715
  if (je(), xe({
1686
1716
  active: !0,
1687
1717
  progress: o,
@@ -1690,29 +1720,29 @@ var e = (e, t, n) => {
1690
1720
  Ue();
1691
1721
  return;
1692
1722
  }
1693
- q = r.requestAnimationFrame(We);
1723
+ ie = r.requestAnimationFrame(We);
1694
1724
  }, Ge = () => {
1695
- if (!ae || W !== "pending" || !F) return;
1725
+ if (!te || J !== "pending" || !F) return;
1696
1726
  Pe();
1697
- let e = $().getBoundingClientRect();
1698
- K = Math.max(0, r.scrollY + e.top - t.stickyTop), G = 0, W = "active", oe = r.performance.now(), je(), We();
1727
+ let e = ge().getBoundingClientRect();
1728
+ re = Math.max(0, r.scrollY + e.top - t.stickyTop), Y = 0, J = "active", ne = r.performance.now(), je(), We();
1699
1729
  }, Ke = () => {
1700
- !ae || W !== "pending" || !F || $().getBoundingClientRect().top <= t.stickyTop && Ge();
1730
+ !te || J !== "pending" || !F || ge().getBoundingClientRect().top <= t.stickyTop && Ge();
1701
1731
  }, qe = () => {
1702
- W === "pending" ? Ke() : W === "active" && Be() ? Ve() : W === "paused" && He(), W !== "active" && De();
1732
+ J === "pending" ? Ke() : J === "active" && Be() ? Ve() : J === "paused" && He(), J !== "active" && De();
1703
1733
  }, Je = () => {
1704
- if (!ae || W !== "pending" || !F) {
1705
- J = null;
1734
+ if (!te || J !== "pending" || !F) {
1735
+ X = null;
1706
1736
  return;
1707
1737
  }
1708
- Ke(), J = W === "pending" ? r.requestAnimationFrame(Je) : null;
1738
+ Ke(), X = J === "pending" ? r.requestAnimationFrame(Je) : null;
1709
1739
  }, Ye = () => {
1710
- pe();
1740
+ fe();
1711
1741
  let e = n.parentElement;
1712
1742
  for (; e && e !== i.body && e !== i.documentElement;) {
1713
1743
  let t = r.getComputedStyle(e);
1714
1744
  if (t.position === "fixed" || t.position === "sticky") {
1715
- U = e, te = e.getAttribute("style");
1745
+ W = e, G = e.getAttribute("style");
1716
1746
  break;
1717
1747
  }
1718
1748
  e = e.parentElement;
@@ -1737,7 +1767,7 @@ var e = (e, t, n) => {
1737
1767
  } catch (e) {
1738
1768
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1739
1769
  }
1740
- if (a.setAttribute("poweredAC", "0.1.78"), _) {
1770
+ if (a.setAttribute("poweredAC", "0.1.79"), _) {
1741
1771
  let e = _.style;
1742
1772
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1743
1773
  }
@@ -1909,34 +1939,34 @@ var e = (e, t, n) => {
1909
1939
  padding: 0 !important;
1910
1940
  }
1911
1941
  `, i.head.appendChild(P), f.setup && f.setup(i, a), f === u.wwos) {
1912
- let e = ge();
1942
+ let e = he();
1913
1943
  e && (A = e.el, j = A.getAttribute("style"), M = e.list, N = M ? M.getAttribute("style") : null, A.style.marginLeft = "10px", A.style.marginRight = "10px", A.style.width = "calc(100% - 20px)", M && (M.style.width = "100%"));
1914
1944
  }
1915
- if (o && f !== u.afr && (U || p)) {
1916
- if (U && (V = c || y), l && l !== "about:blank") {
1945
+ if (o && f !== u.afr && (W || p)) {
1946
+ if (W && (V = c || y), l && l !== "about:blank") {
1917
1947
  let e = new URL(l);
1918
1948
  e.searchParams.set("mfRole", "wallpaper"), I = i.createElement("iframe"), I.src = e.href, I.setAttribute("data-mf-wallpaper-iframe", ""), I.setAttribute("scrolling", "no"), I.setAttribute("frameborder", "0");
1919
1949
  let n = I.style;
1920
1950
  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(I, i.body.firstChild);
1921
1951
  }
1922
- 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", L = he(), o.parentElement.insertBefore(L, o), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.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";
1952
+ 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", L = me(), o.parentElement.insertBefore(L, o), W ? (W.style.position = "static", W.style.inset = "auto", W.style.height = "0", W.style.minHeight = "0", W.style.maxHeight = "0", W.style.overflow = "hidden", W.style.backgroundColor = "transparent", W.style.boxShadow = "none", W.style.border = "0", W.style.outline = "0", W.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";
1923
1953
  for (let { el: e } of k) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1924
- 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();
1954
+ 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"), fe();
1925
1955
  }
1926
- L || (L = he(), a.appendChild(L));
1956
+ L || (L = me(), a.appendChild(L));
1927
1957
  }, Xe = null, Ze = null, Qe = !1, $e = () => {
1928
1958
  let e = r.innerWidth, n = r.innerHeight;
1929
1959
  if (e > n) {
1930
1960
  let r = n / e, i = Math.round(t.billboardHeight * r);
1931
1961
  a.style.height = i + "px", a.style.minHeight = i + "px", L && (L.style.height = i + "px", L.style.minHeight = i + "px", L.style.maxHeight = i + "px"), F && (F.style.height = i + "px");
1932
1962
  } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", L && (L.style.height = t.billboardHeight + "px", L.style.minHeight = t.billboardHeight + "px", L.style.maxHeight = t.billboardHeight + "px"), F && (F.style.height = t.billboardHeight + "px");
1933
- W === "active" ? je() : De();
1963
+ J === "active" ? je() : De();
1934
1964
  };
1935
1965
  if (Ye(), l && l !== "about:blank") try {
1936
1966
  let e = new URL(l);
1937
1967
  e.searchParams.set("mfRole", "billboard"), F = i.createElement("iframe"), F.src = e.href, F.setAttribute("data-mf-billboard-iframe", ""), F.setAttribute("scrolling", "no"), F.setAttribute("frameborder", "0");
1938
1968
  let n = F.style;
1939
- n.position = Z ? "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 = Z ? "6" : "1", Z ? (F.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(F), Ee()) : (L || a).appendChild(F), ae && (se = qe, r.addEventListener("scroll", se, { passive: !0 }), J = r.requestAnimationFrame(Je));
1969
+ n.position = $ ? "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 = $ ? "6" : "1", $ ? (F.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(F), Ee()) : (L || a).appendChild(F), te && (ae = qe, r.addEventListener("scroll", ae, { passive: !0 }), X = r.requestAnimationFrame(Je));
1940
1970
  } catch (e) {
1941
1971
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1942
1972
  }
@@ -1960,32 +1990,32 @@ var e = (e, t, n) => {
1960
1990
  });
1961
1991
  let et = () => {
1962
1992
  if (!Qe) {
1963
- Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), se &&= (r.removeEventListener("scroll", se), null), Ne(), Pe(), Y &&= (r.cancelAnimationFrame(Y), null), X &&= (r.clearTimeout(X), null), xe({
1993
+ Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), ae &&= (r.removeEventListener("scroll", ae), null), Ne(), Pe(), Z &&= (r.cancelAnimationFrame(Z), null), Q &&= (r.clearTimeout(Q), null), xe({
1964
1994
  active: !1,
1965
1995
  progress: 1,
1966
1996
  remainingMs: 0
1967
- }), P && P.parentNode && (P.parentNode.removeChild(P), P = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null), Q = null, ue = null, L && L.parentNode && (L.parentNode.removeChild(L), L = null), I && I.parentNode && (I.parentNode.removeChild(I), I = null);
1997
+ }), P && P.parentNode && (P.parentNode.removeChild(P), P = null), F && F.parentNode && (F.parentNode.removeChild(F), F = null), ce = null, le = null, L && L.parentNode && (L.parentNode.removeChild(L), L = null), I && I.parentNode && (I.parentNode.removeChild(I), I = null);
1968
1998
  try {
1969
1999
  delete r.__mfBridge;
1970
2000
  } catch {}
1971
- for (let e = ne.length - 1; e >= 0; --e) {
1972
- let { shell: t, parent: n, nextSibling: r } = ne[e];
2001
+ for (let e = K.length - 1; e >= 0; --e) {
2002
+ let { shell: t, parent: n, nextSibling: r } = K[e];
1973
2003
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1974
2004
  }
1975
- ne.length = 0, z && (B && B.parentNode === z ? z.insertBefore(n, B) : z.appendChild(n), z = null, B = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
2005
+ K.length = 0, z && (B && B.parentNode === z ? z.insertBefore(n, B) : z.appendChild(n), z = null, B = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1976
2006
  for (let { el: e, orig: t } of R) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1977
- R.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), V &&= (H && (ee && ee.parentNode === H ? H.insertBefore(V, ee) : H.appendChild(V), H = null, ee = null), null), y && (y.removeAttribute("data-mf-slot"), b ? y.setAttribute("style", b) : y.removeAttribute("style")), U && (te ? U.setAttribute("style", te) : U.removeAttribute("style"), U = null, te = null);
2007
+ R.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), V &&= (H && (U && U.parentNode === H ? H.insertBefore(V, U) : H.appendChild(V), H = null, U = null), null), y && (y.removeAttribute("data-mf-slot"), b ? y.setAttribute("style", b) : y.removeAttribute("style")), W && (G ? W.setAttribute("style", G) : W.removeAttribute("style"), W = null, G = null);
1978
2008
  for (let { el: e, orig: t } of k) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1979
2009
  M && (N ? M.setAttribute("style", N) : M.removeAttribute("style"), M = null, N = null), A && (j ? A.setAttribute("style", j) : A.removeAttribute("style"), A = null, j = 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"));
1980
2010
  }
1981
2011
  };
1982
2012
  return et;
1983
- }, A = () => {};
1984
- function j({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
1985
- typeof A == "function" && A();
1986
- let c = () => {};
1987
- return e === "fireplace" ? c = o(t) : e === "fireplace-collant" ? c = s(t) : e === "logomorph" ? c = T(n, r, i) : e === "dynamicheading" ? c = w(a) : e === "interscroller" ? c = D(a) : e === "liquidframe" ? c = O(a) : e === "mobilefireplace" ? c = k(a) : console.warn("[powered-ad-config] Unknown ad format:", e), A = typeof c == "function" ? c : () => {}, A;
2013
+ }, N = () => {};
2014
+ function P({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2015
+ typeof N == "function" && N();
2016
+ let o = () => {};
2017
+ return e === "fireplace" ? o = l(t) : e === "fireplace-collant" ? o = u(t) : e === "logomorph" ? o = O(n, r, i) : e === "dynamicheading" ? o = D(a) : e === "interscroller" ? o = A(a) : e === "liquidframe" ? o = j(a) : e === "mobilefireplace" ? o = M(a) : console.warn("[powered-ad-config] Unknown ad format:", e), N = typeof o == "function" ? o : () => {}, N;
1988
2018
  }
1989
- j.version = "0.1.78";
2019
+ P.version = "0.1.79";
1990
2020
  //#endregion
1991
- export { j as default };
2021
+ export { P as default };