powered-ad-config 0.0.87 → 0.0.89

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.
@@ -1,18 +1,18 @@
1
- const _ = (w) => {
1
+ const _ = (b) => {
2
2
  const i = window.frameElement ? window.frameElement : null;
3
3
  if (!i) return () => {
4
4
  };
5
- const u = window.parent;
6
- if (!u || u === window) return () => {
5
+ const y = window.parent;
6
+ if (!y || y === window) return () => {
7
7
  };
8
- let y = null;
8
+ let p = null;
9
9
  try {
10
- y = u.document, u.location.href;
10
+ p = y.document, y.location.href;
11
11
  } catch {
12
12
  return () => {
13
13
  };
14
14
  }
15
- const c = {
15
+ const l = {
16
16
  siteBackgroundColor: "#ffffff",
17
17
  fireplaceLeftMargin: 0,
18
18
  adNodeMarginTop: -24,
@@ -22,10 +22,10 @@ const _ = (w) => {
22
22
  yPosHalfpage: 72,
23
23
  stickyMargin: { offset: 72, isSticky: !0 },
24
24
  zIndex: function() {
25
- const o = window.parent.document, f = (v, t) => v.forEach((l) => t.forEach(([h, b]) => l.style[h] = b));
26
- o.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector("article")?.setAttribute("style", "position:relative"), o.querySelector("#article")?.setAttribute("style", "position:relative"), o.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), o.querySelector("#Index")?.setAttribute("style", "position:relative"), o.querySelector(".show")?.setAttribute("style", "position:relative"), o.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".column"), [["position", "relative"]]), f(o.querySelectorAll(".advert"), [["position", "relative"]]), f(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
25
+ const o = window.parent.document, d = (m, t) => m.forEach((r) => t.forEach(([h, S]) => r.style[h] = S));
26
+ o.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector("article")?.setAttribute("style", "position:relative"), o.querySelector("#article")?.setAttribute("style", "position:relative"), o.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), o.querySelector("#Index")?.setAttribute("style", "position:relative"), o.querySelector(".show")?.setAttribute("style", "position:relative"), o.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style", "position:relative"), d(o.querySelectorAll(".column"), [["position", "relative"]]), d(o.querySelectorAll(".advert"), [["position", "relative"]]), d(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
27
27
  }
28
- }, x = {
28
+ }, A = {
29
29
  siteBackgroundColor: "#ffffff",
30
30
  fireplaceLeftMargin: 0,
31
31
  adNodeMarginTop: -24,
@@ -35,8 +35,8 @@ const _ = (w) => {
35
35
  yPosHalfpage: 32,
36
36
  stickyMargin: { offset: 32, isSticky: !0 },
37
37
  zIndex: function() {
38
- const o = window.parent.document, f = (v, t) => v.forEach((l) => t.forEach(([h, b]) => l.style[h] = b));
39
- o.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector("article")?.setAttribute("style", "position:relative"), o.querySelector("#article")?.setAttribute("style", "position:relative"), o.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), o.querySelector("#Index")?.setAttribute("style", "position:relative"), o.querySelector(".show")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".column"), [["position", "relative"]]), f(o.querySelectorAll(".advert"), [["position", "relative"]]), f(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), o.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px"), o.querySelector('div[class*="MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px");
38
+ const o = window.parent.document, d = (m, t) => m.forEach((r) => t.forEach(([h, S]) => r.style[h] = S));
39
+ o.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector("article")?.setAttribute("style", "position:relative"), o.querySelector("#article")?.setAttribute("style", "position:relative"), o.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), o.querySelector("#Index")?.setAttribute("style", "position:relative"), o.querySelector(".show")?.setAttribute("style", "position:relative"), d(o.querySelectorAll(".column"), [["position", "relative"]]), d(o.querySelectorAll(".advert"), [["position", "relative"]]), d(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), o.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px"), o.querySelector('div[class*="MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px");
40
40
  }
41
41
  }, s = {
42
42
  siteBackgroundColor: "#ffffff",
@@ -50,15 +50,15 @@ const _ = (w) => {
50
50
  zIndex: function() {
51
51
  const o = window.parent.document;
52
52
  if (o.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style", "position:relative"), o.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style", "position:relative"), o.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style", "position:relative"), o.querySelector("small")?.setAttribute("style", "position:inherit"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
53
- let v = o.createElement("style");
54
- v.innerHTML = `
53
+ let m = o.createElement("style");
54
+ m.innerHTML = `
55
55
  div:has(#adspot-tablet-takeover-2-above) {
56
56
  position: static;
57
57
  }
58
- `, o.head.appendChild(v);
58
+ `, o.head.appendChild(m);
59
59
  }
60
60
  }
61
- }, d = {
61
+ }, u = {
62
62
  siteBackgroundColor: "#ffffff",
63
63
  fireplaceLeftMargin: 0,
64
64
  adNodeMarginTop: -24,
@@ -68,17 +68,17 @@ const _ = (w) => {
68
68
  yPosHalfpage: 32,
69
69
  stickyMargin: { offset: 104, isSticky: !0 },
70
70
  zIndex: function() {
71
- const o = window.parent.document, v = o.querySelector("footer").previousElementSibling;
72
- if (v && v.tagName.toLowerCase() === "div" && (v.style.position = "relative"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
73
- let l = o.createElement("style");
74
- l.innerHTML = `
71
+ const o = window.parent.document, m = o.querySelector("footer").previousElementSibling;
72
+ if (m && m.tagName.toLowerCase() === "div" && (m.style.position = "relative"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
73
+ let r = o.createElement("style");
74
+ r.innerHTML = `
75
75
  div:has(#adspot-tablet-takeover-2-above) {
76
76
  position: static;
77
77
  }
78
- `, o.head.appendChild(l);
78
+ `, o.head.appendChild(r);
79
79
  }
80
80
  }
81
- }, S = {
81
+ }, x = {
82
82
  siteBackgroundColor: "#f7f7f7",
83
83
  fireplaceLeftMargin: 0,
84
84
  adNodeMarginTop: -25,
@@ -88,8 +88,8 @@ const _ = (w) => {
88
88
  yPosHalfpage: 32,
89
89
  stickyMargin: { offset: 104, isSticky: !0 },
90
90
  zIndex: function() {
91
- const o = window.parent.document, f = (t, l) => t.forEach((h) => l.forEach(([b, e]) => h.style[b] = e));
92
- if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".advert"), [["position", "relative"]]), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
91
+ const o = window.parent.document, d = (t, r) => t.forEach((h) => r.forEach(([S, e]) => h.style[S] = e));
92
+ if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), d(o.querySelectorAll(".advert"), [["position", "relative"]]), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
93
93
  let t = o.createElement("style");
94
94
  t.innerHTML = `
95
95
  div:has(#adspot-tablet-takeover-2-above) {
@@ -98,7 +98,7 @@ const _ = (w) => {
98
98
  `, o.head.appendChild(t);
99
99
  }
100
100
  }
101
- }, A = {
101
+ }, q = {
102
102
  siteBackgroundColor: "#ffffff",
103
103
  fireplaceLeftMargin: 0,
104
104
  adNodeMarginTop: -32,
@@ -111,84 +111,84 @@ const _ = (w) => {
111
111
  const o = window.parent.document;
112
112
  o.querySelector(".header-wrapper")?.setAttribute("style", "height:124px"), o.querySelector(".weather-widget-wrapper")?.setAttribute("style", "bottom:0px"), o.querySelector(".content")?.setAttribute("style", "padding-top:32px"), o.querySelector(".layout")?.setAttribute("style", "position:relative;background-color:transparent;"), o.querySelector(".footer-ad")?.setAttribute("style", "position:relative"), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");
113
113
  }
114
- }, B = [
115
- { site: "https://www.nine.com.au/sport", config: d },
116
- { site: "https://www.nine.com.au/product-reviews", config: x },
117
- { site: "https://www.nine.com.au/property", config: x },
118
- { site: "https://www.nine.com.au/entertainment", config: x },
119
- { site: "https://staging.nine.com.au/sport", config: d },
120
- { site: "https://staging.nine.com.au/product-reviews", config: x },
121
- { site: "https://staging.nine.com.au/property", config: x },
122
- { site: "https://staging.nine.com.au/entertainment", config: x },
114
+ }, C = [
115
+ { site: "https://www.nine.com.au/sport", config: u },
116
+ { site: "https://www.nine.com.au/product-reviews", config: A },
117
+ { site: "https://www.nine.com.au/property", config: A },
118
+ { site: "https://www.nine.com.au/entertainment", config: A },
119
+ { site: "https://staging.nine.com.au/sport", config: u },
120
+ { site: "https://staging.nine.com.au/product-reviews", config: A },
121
+ { site: "https://staging.nine.com.au/property", config: A },
122
+ { site: "https://staging.nine.com.au/entertainment", config: A },
123
123
  { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: s },
124
124
  { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: s },
125
125
  { site: "https://preview.nine.com.au/", config: s },
126
126
  { site: "https://www.nine", config: s },
127
127
  { site: "https://staging.nine", config: s },
128
- { site: "https://entertainment", config: c },
129
- { site: "https://celebrity", config: c },
130
- { site: "https://homes", config: c },
131
- { site: "https://travel", config: c },
132
- { site: "https://honey", config: c },
133
- { site: "https://style", config: c },
134
- { site: "https://coach", config: c },
135
- { site: "https://kitchen", config: c },
136
- { site: "https://finance", config: c },
137
- { site: "https://wwos", config: S },
138
- { site: "https://staging.wwos", config: d },
139
- { site: "https://www.9news", config: A },
140
- { site: "https://staging.9news", config: A },
141
- { site: "https://www.yourtv", config: c },
142
- { site: "https://staging.yourtv", config: c },
143
- { site: "https://9now", config: x },
144
- { site: "https://creative-preview-an.com", config: c }
145
- ], I = () => {
128
+ { site: "https://entertainment", config: l },
129
+ { site: "https://celebrity", config: l },
130
+ { site: "https://homes", config: l },
131
+ { site: "https://travel", config: l },
132
+ { site: "https://honey", config: l },
133
+ { site: "https://style", config: l },
134
+ { site: "https://coach", config: l },
135
+ { site: "https://kitchen", config: l },
136
+ { site: "https://finance", config: l },
137
+ { site: "https://wwos", config: x },
138
+ { site: "https://staging.wwos", config: u },
139
+ { site: "https://www.9news", config: q },
140
+ { site: "https://staging.9news", config: q },
141
+ { site: "https://www.yourtv", config: l },
142
+ { site: "https://staging.yourtv", config: l },
143
+ { site: "https://9now", config: A },
144
+ { site: "https://creative-preview-an.com", config: l }
145
+ ], N = () => {
146
146
  const o = window.document.getElementById("nineContent");
147
- o && (o.style.backgroundColor = a.siteBackgroundColor), P(), T(), u.addEventListener("scroll", N), n = setTimeout(N, 50);
148
- }, k = () => {
147
+ o && (o.style.backgroundColor = a.siteBackgroundColor), D(), L(), y.addEventListener("scroll", I), n = setTimeout(I, 50);
148
+ }, E = () => {
149
149
  let o = null;
150
- return o = y.querySelector('div[id*="billboard"][id*="above"]'), o;
150
+ return o = p.querySelector('div[id*="billboard"][id*="above"]'), o;
151
151
  }, M = () => {
152
- const o = u.location.href;
153
- for (let f = 0; f < B.length; f += 1)
154
- if (o.indexOf(B[f].site) >= 0)
155
- return B[f].config;
156
- }, T = () => {
152
+ const o = y.location.href;
153
+ for (let d = 0; d < C.length; d += 1)
154
+ if (o.indexOf(C[d].site) >= 0)
155
+ return C[d].config;
156
+ }, L = () => {
157
157
  if (!i) return;
158
158
  const o = i.style;
159
159
  o.width = "100%", o.height = "1000px", o.position = "fixed", o.left = "50%", o.transform = "translate(-50%, 0)";
160
- }, P = () => {
161
- if (!C) return;
162
- const o = C.style;
163
- C.className = "", o.minHeight = "250px", o.marginTop = a.adNodeMarginTop + "px", o.marginBottom = a.adNodeMarginBottom + "px", o.position = "static", o.display = "block", a.zIndex && a.zIndex();
164
- }, N = () => {
165
- const o = u.scrollY, f = i.style, v = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
166
- o >= 0 && o <= m ? (f.transform = `translate(-50%, ${-o}px)`, v.transform = "translateY(0)") : o > m && o <= g ? (f.transform = `translate(-50%, ${-m}px)`, v.transform = `translateY(${m - o}px)`) : o > g && (f.transform = `translate(-50%, ${-m}px)`, v.transform = "translateY(-250px)");
167
- }, C = k(), a = M();
160
+ }, D = () => {
161
+ if (!B) return;
162
+ const o = B.style;
163
+ B.className = "", o.minHeight = "250px", o.marginTop = a.adNodeMarginTop + "px", o.marginBottom = a.adNodeMarginBottom + "px", o.position = "static", o.display = "block", a.zIndex && a.zIndex();
164
+ }, I = () => {
165
+ const o = y.scrollY, d = i.style, m = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
166
+ o >= 0 && o <= v ? (d.transform = `translate(-50%, ${-o}px)`, m.transform = "translateY(0)") : o > v && o <= g ? (d.transform = `translate(-50%, ${-v}px)`, m.transform = `translateY(${v - o}px)`) : o > g && (d.transform = `translate(-50%, ${-v}px)`, m.transform = "translateY(-250px)");
167
+ }, B = E(), a = M();
168
168
  if (!a) return () => {
169
169
  };
170
170
  let n = null;
171
- const m = -a.responsiveScroll + w, g = m + 250;
172
- return I(), () => {
173
- u.removeEventListener("scroll", N), n && (clearTimeout(n), n = null);
171
+ const v = -a.responsiveScroll + b, g = v + 250;
172
+ return N(), () => {
173
+ y.removeEventListener("scroll", I), n && (clearTimeout(n), n = null);
174
174
  };
175
- }, R = (w) => {
175
+ }, R = (b) => {
176
176
  const i = window.frameElement ? window.frameElement : null;
177
177
  if (!i) return () => {
178
178
  };
179
- const u = window.parent;
180
- if (!u || u === window) return () => {
179
+ const y = window.parent;
180
+ if (!y || y === window) return () => {
181
181
  };
182
- let y = null;
182
+ let p = null;
183
183
  try {
184
- y = u.document, u.location.href;
184
+ p = y.document, y.location.href;
185
185
  } catch {
186
186
  return () => {
187
187
  };
188
188
  }
189
- const c = document.getElementById("nineMasthead"), x = c ? c.style : {};
189
+ const l = document.getElementById("nineMasthead"), A = l ? l.style : {};
190
190
  let s;
191
- const d = {
191
+ const u = {
192
192
  siteBackgroundColor: "#ffffff",
193
193
  fireplaceLeftMargin: 0,
194
194
  adNodeMarginTop: -24,
@@ -199,10 +199,10 @@ const _ = (w) => {
199
199
  stickyMargin: { offset: 160, isSticky: !0 },
200
200
  maskOffset: 298,
201
201
  zIndex: function() {
202
- const e = window.parent.document, r = (p, q) => p.forEach((E) => q.forEach(([L, D]) => E.style[L] = D));
203
- 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"), r(e.querySelectorAll(".column"), [["position", "relative"]]), r(e.querySelectorAll(".advert"), [["position", "relative"]]), r(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
202
+ const e = window.parent.document, c = (f, k) => f.forEach((w) => k.forEach(([T, P]) => w.style[T] = P));
203
+ 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"), c(e.querySelectorAll(".column"), [["position", "relative"]]), c(e.querySelectorAll(".advert"), [["position", "relative"]]), c(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
204
204
  }
205
- }, S = {
205
+ }, x = {
206
206
  siteBackgroundColor: "#ffffff",
207
207
  fireplaceLeftMargin: 0,
208
208
  adNodeMarginTop: -24,
@@ -213,10 +213,10 @@ const _ = (w) => {
213
213
  stickyMargin: { offset: 160, isSticky: !0 },
214
214
  maskOffset: window.parent.document.querySelector('div[class*="video-index__MyContainer"]') ? 248 : 298,
215
215
  zIndex: function() {
216
- const e = window.parent.document, r = (p, q) => p.forEach((E) => q.forEach(([L, D]) => E.style[L] = D));
217
- 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"), r(e.querySelectorAll(".column"), [["position", "relative"]]), r(e.querySelectorAll(".advert"), [["position", "relative"]]), r(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");
216
+ const e = window.parent.document, c = (f, k) => f.forEach((w) => k.forEach(([T, P]) => w.style[T] = P));
217
+ 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"), c(e.querySelectorAll(".column"), [["position", "relative"]]), c(e.querySelectorAll(".advert"), [["position", "relative"]]), c(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");
218
218
  }
219
- }, A = {
219
+ }, q = {
220
220
  siteBackgroundColor: "#ffffff",
221
221
  fireplaceLeftMargin: 0,
222
222
  adNodeMarginTop: -24,
@@ -229,15 +229,15 @@ const _ = (w) => {
229
229
  zIndex: function() {
230
230
  const e = window.parent.document;
231
231
  if (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"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
232
- let p = e.createElement("style");
233
- p.innerHTML = `
232
+ let f = e.createElement("style");
233
+ f.innerHTML = `
234
234
  div:has(#adspot-tablet-takeover-2-above) {
235
235
  position: static;
236
236
  }
237
- `, e.head.appendChild(p);
237
+ `, e.head.appendChild(f);
238
238
  }
239
239
  }
240
- }, B = {
240
+ }, C = {
241
241
  siteBackgroundColor: "#ffffff",
242
242
  fireplaceLeftMargin: 0,
243
243
  adNodeMarginTop: -24,
@@ -248,17 +248,17 @@ const _ = (w) => {
248
248
  stickyMargin: { offset: 160, isSticky: !0 },
249
249
  maskOffset: 312,
250
250
  zIndex: function() {
251
- const e = window.parent.document, p = e.querySelector("footer").previousElementSibling;
252
- if (p && p.tagName.toLowerCase() === "div" && (p.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
253
- let E = e.createElement("style");
254
- E.innerHTML = `
251
+ const e = window.parent.document, f = e.querySelector("footer").previousElementSibling;
252
+ if (f && f.tagName.toLowerCase() === "div" && (f.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
253
+ let w = e.createElement("style");
254
+ w.innerHTML = `
255
255
  div:has(#adspot-tablet-takeover-2-above) {
256
256
  position: static;
257
257
  }
258
- `, e.head.appendChild(E);
258
+ `, e.head.appendChild(w);
259
259
  }
260
260
  }
261
- }, I = {
261
+ }, N = {
262
262
  siteBackgroundColor: "#ffffff",
263
263
  fireplaceLeftMargin: 0,
264
264
  adNodeMarginTop: -25,
@@ -269,17 +269,17 @@ const _ = (w) => {
269
269
  stickyMargin: { offset: 175, isSticky: !0 },
270
270
  maskOffset: 274,
271
271
  zIndex: function() {
272
- const e = window.parent.document, r = (q, E) => q.forEach((L) => E.forEach(([D, z]) => L.style[D] = z));
273
- if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(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"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
274
- let q = e.createElement("style");
275
- q.innerHTML = `
272
+ const e = window.parent.document, c = (k, w) => k.forEach((T) => w.forEach(([P, H]) => T.style[P] = H));
273
+ if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), c(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"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
274
+ let k = e.createElement("style");
275
+ k.innerHTML = `
276
276
  div:has(#adspot-tablet-takeover-2-above) {
277
277
  position: static;
278
278
  }
279
- `, e.head.appendChild(q);
279
+ `, e.head.appendChild(k);
280
280
  }
281
281
  }
282
- }, k = {
282
+ }, E = {
283
283
  siteBackgroundColor: "#ffffff",
284
284
  fireplaceLeftMargin: 0,
285
285
  adNodeMarginTop: -32,
@@ -292,103 +292,103 @@ const _ = (w) => {
292
292
  zIndex: function() {
293
293
  const e = window.parent.document;
294
294
  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);");
295
- const r = e.querySelector('[class*="VideoIndexComponent"]');
296
- r && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), r.style.maxWidth = "1190px", r.style.margin = "auto", r.style.position = "relative");
295
+ const c = e.querySelector('[class*="VideoIndexComponent"]');
296
+ c && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), c.style.maxWidth = "1190px", c.style.margin = "auto", c.style.position = "relative");
297
297
  }
298
298
  }, M = [
299
- { site: "https://www.nine.com.au/sport", config: B },
300
- { site: "https://www.nine.com.au/product-reviews", config: S },
301
- { site: "https://www.nine.com.au/property", config: S },
302
- { site: "https://www.nine.com.au/entertainment", config: S },
303
- { site: "https://staging.nine.com.au/sport", config: B },
304
- { site: "https://staging.nine.com.au/product-reviews", config: S },
305
- { site: "https://staging.nine.com.au/property", config: S },
306
- { site: "https://staging.nine.com.au/entertainment", config: S },
307
- { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: A },
308
- { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: A },
309
- { site: "https://preview.nine.com.au/", config: A },
310
- { site: "https://www.nine", config: A },
311
- { site: "https://staging.nine", config: A },
312
- { site: "https://entertainment", config: d },
313
- { site: "https://celebrity", config: d },
314
- { site: "https://homes", config: d },
315
- { site: "https://travel", config: d },
316
- { site: "https://honey", config: d },
317
- { site: "https://style", config: d },
318
- { site: "https://coach", config: d },
319
- { site: "https://kitchen", config: d },
320
- { site: "https://finance", config: d },
321
- { site: "https://wwos", config: I },
322
- { site: "https://staging.wwos", config: B },
323
- { site: "https://www.9news", config: k },
324
- { site: "https://staging.9news", config: k },
325
- { site: "https://www.yourtv", config: d },
326
- { site: "https://staging.yourtv", config: d },
327
- { site: "https://9now", config: S },
328
- { site: "https://creative-preview-an.com", config: d }
329
- ], T = () => {
299
+ { site: "https://www.nine.com.au/sport", config: C },
300
+ { site: "https://www.nine.com.au/product-reviews", config: x },
301
+ { site: "https://www.nine.com.au/property", config: x },
302
+ { site: "https://www.nine.com.au/entertainment", config: x },
303
+ { site: "https://staging.nine.com.au/sport", config: C },
304
+ { site: "https://staging.nine.com.au/product-reviews", config: x },
305
+ { site: "https://staging.nine.com.au/property", config: x },
306
+ { site: "https://staging.nine.com.au/entertainment", config: x },
307
+ { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: q },
308
+ { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: q },
309
+ { site: "https://preview.nine.com.au/", config: q },
310
+ { site: "https://www.nine", config: q },
311
+ { site: "https://staging.nine", config: q },
312
+ { site: "https://entertainment", config: u },
313
+ { site: "https://celebrity", config: u },
314
+ { site: "https://homes", config: u },
315
+ { site: "https://travel", config: u },
316
+ { site: "https://honey", config: u },
317
+ { site: "https://style", config: u },
318
+ { site: "https://coach", config: u },
319
+ { site: "https://kitchen", config: u },
320
+ { site: "https://finance", config: u },
321
+ { site: "https://wwos", config: N },
322
+ { site: "https://staging.wwos", config: C },
323
+ { site: "https://www.9news", config: E },
324
+ { site: "https://staging.9news", config: E },
325
+ { site: "https://www.yourtv", config: u },
326
+ { site: "https://staging.yourtv", config: u },
327
+ { site: "https://9now", config: x },
328
+ { site: "https://creative-preview-an.com", config: u }
329
+ ], L = () => {
330
330
  const e = window.document.getElementById("nineContent");
331
- e && (e.style.backgroundColor = t.siteBackgroundColor), c && (x.setProperty("--masthead-height", "250px"), x.height = "var(--masthead-height)"), n(), a(), N(), m(), u.addEventListener("scroll", f, { passive: !0 }), l = setTimeout(f, 50);
332
- }, P = () => {
331
+ e && (e.style.backgroundColor = t.siteBackgroundColor), l && (A.setProperty("--masthead-height", "250px"), A.height = "var(--masthead-height)"), n(), a(), I(), v(), y.addEventListener("scroll", d, { passive: !0 }), r = setTimeout(d, 50);
332
+ }, D = () => {
333
333
  let e = null;
334
- return e = y.querySelector('div[id*="billboard"][id*="above"]'), e;
335
- }, N = () => {
334
+ return e = p.querySelector('div[id*="billboard"][id*="above"]'), e;
335
+ }, I = () => {
336
336
  let e = null;
337
337
  if (!window.parent) return e;
338
- if (e = y.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
339
- let r = e;
340
- for (let p = 0; p < 3; p++)
341
- if (r = r.parentNode, r && getComputedStyle(r).position === "sticky") {
342
- r.setAttribute("style", `top: ${t.stickyMargin.offset}px`);
338
+ if (e = p.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
339
+ let c = e;
340
+ for (let f = 0; f < 3; f++)
341
+ if (c = c.parentNode, c && getComputedStyle(c).position === "sticky") {
342
+ c.setAttribute("style", `top: ${t.stickyMargin.offset}px`);
343
343
  break;
344
344
  }
345
- }, C = () => {
346
- const e = u.location.href;
347
- for (let r = 0; r < M.length; r += 1)
348
- if (e.indexOf(M[r].site) >= 0)
349
- return M[r].config;
345
+ }, B = () => {
346
+ const e = y.location.href;
347
+ for (let c = 0; c < M.length; c += 1)
348
+ if (e.indexOf(M[c].site) >= 0)
349
+ return M[c].config;
350
350
  }, a = () => {
351
351
  if (!i) return;
352
352
  const e = i.style;
353
353
  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)";
354
354
  }, n = () => {
355
- if (!v) return;
356
- const e = v.style;
357
- v.className = "", e.minHeight = "250px", e.marginTop = t.adNodeMarginTop + "px", e.marginBottom = t.adNodeMarginBottom + "px", e.position = "static", e.display = "block", t.zIndex && t.zIndex();
358
- }, m = () => {
359
- s = y.querySelector('div[data-contentunit-id="stan"]')?.parentNode || y.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || y.querySelector('div[class*="__MyContainer"]') || y.querySelector('div[class*="__ArticleContainer"]') || y.querySelector('div[class*="__VideoIndexComponent"]') || y.querySelector("div.container.layout") || y.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 = t.siteBackgroundColor, s.style.setProperty("--mask-inset", "0px"), s.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
355
+ if (!m) return;
356
+ const e = m.style;
357
+ m.className = "", e.minHeight = "250px", e.marginTop = t.adNodeMarginTop + "px", e.marginBottom = t.adNodeMarginBottom + "px", e.position = "static", e.display = "block", t.zIndex && t.zIndex();
358
+ }, v = () => {
359
+ s = p.querySelector('div[data-contentunit-id="stan"]')?.parentNode || p.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || p.querySelector('div[class*="__MyContainer"]') || p.querySelector('div[class*="__ArticleContainer"]') || p.querySelector('div[class*="__VideoIndexComponent"]') || p.querySelector("div.container.layout") || p.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 = t.siteBackgroundColor, s.style.setProperty("--mask-inset", "0px"), s.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
360
360
  };
361
361
  let g = 0, o = 0;
362
- const f = () => {
363
- const e = u.scrollY, r = e > g, p = e > b ? e - t.maskOffset : 0, q = Math.abs(p - o);
362
+ const d = () => {
363
+ const e = y.scrollY, c = e > g, f = e > S ? e - t.maskOffset : 0, k = Math.abs(f - o);
364
364
  if (s)
365
- if (r && p > o)
366
- if (q > 100) {
367
- const E = Math.max(0, p - 100);
368
- 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", `${p}px`);
365
+ if (c && f > o)
366
+ if (k > 100) {
367
+ const w = Math.max(0, f - 100);
368
+ s.style.transition = "none", s.style.setProperty("--mask-inset", `${w}px`), s.offsetHeight, s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${f}px`);
369
369
  } else
370
- s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${p}px`);
370
+ s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${f}px`);
371
371
  else
372
- s.style.transition = "none", s.style.setProperty("--mask-inset", `${p}px`);
373
- g = e, o = p, e > b ? (i.style.setProperty("--transform-y", `${-h}px`), x.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > h && e <= b ? (i.style.setProperty("--transform-y", `${-h}px`), x.setProperty("--masthead-height", `${250 + h - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= h && (i.style.setProperty("--transform-y", `${-e}px`), x.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
374
- }, v = P(), t = C();
372
+ s.style.transition = "none", s.style.setProperty("--mask-inset", `${f}px`);
373
+ g = e, o = f, e > S ? (i.style.setProperty("--transform-y", `${-h}px`), A.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > h && e <= S ? (i.style.setProperty("--transform-y", `${-h}px`), A.setProperty("--masthead-height", `${250 + h - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= h && (i.style.setProperty("--transform-y", `${-e}px`), A.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
374
+ }, m = D(), t = B();
375
375
  if (!t) return () => {
376
376
  };
377
- let l = null;
378
- const h = -t.responsiveScroll + w, b = h + 150;
379
- return T(), () => {
380
- u.removeEventListener("scroll", f), l && (clearTimeout(l), l = null);
377
+ let r = null;
378
+ const h = -t.responsiveScroll + b, S = h + 150;
379
+ return L(), () => {
380
+ y.removeEventListener("scroll", d), r && (clearTimeout(r), r = null);
381
381
  };
382
- }, O = (w, i, u) => {
383
- const y = window.frameElement ? window.frameElement : null;
384
- if (!y) return () => {
382
+ }, $ = (b, i, y) => {
383
+ const p = window.frameElement ? window.frameElement : null;
384
+ if (!p) return () => {
385
385
  };
386
- const c = window.parent;
387
- if (!c || c === window) return () => {
386
+ const l = window.parent;
387
+ if (!l || l === window) return () => {
388
388
  };
389
- let x = null;
389
+ let A = null;
390
390
  try {
391
- x = c.document, c.location.href;
391
+ A = l.document, l.location.href;
392
392
  } catch {
393
393
  return () => {
394
394
  };
@@ -402,10 +402,10 @@ const _ = (w) => {
402
402
  logoSmallTransform: "translateX(0px)",
403
403
  logoSmallFilter: "none",
404
404
  zIndex: function() {
405
- const t = window.parent.document, l = (h, b) => h.forEach((e) => b.forEach(([r, p]) => e.style[r] = p));
406
- t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), l(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
405
+ const t = window.parent.document, r = (h, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
406
+ t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
407
407
  }
408
- }, d = {
408
+ }, u = {
409
409
  siteBackgroundColor: "#ffffff",
410
410
  logoTop: "44px",
411
411
  logoLeft: "50%",
@@ -414,10 +414,10 @@ const _ = (w) => {
414
414
  logoSmallTransform: "translateX(-50%)",
415
415
  logoSmallFilter: "none",
416
416
  zIndex: function() {
417
- const t = window.parent.document, l = (h, b) => h.forEach((e) => b.forEach(([r, p]) => e.style[r] = p));
418
- t.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector("article")?.setAttribute("style", "position:relative"), t.querySelector("#article")?.setAttribute("style", "position:relative"), t.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), t.querySelector("#Index")?.setAttribute("style", "position:relative"), t.querySelector(".show")?.setAttribute("style", "position:relative"), l(t.querySelectorAll(".column"), [["position", "relative"]]), l(t.querySelectorAll(".advert"), [["position", "relative"]]), l(t.querySelectorAll("blockquote"), [["zIndex", "1"]]), t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
417
+ const t = window.parent.document, r = (h, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
418
+ t.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector("article")?.setAttribute("style", "position:relative"), t.querySelector("#article")?.setAttribute("style", "position:relative"), t.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), t.querySelector("#Index")?.setAttribute("style", "position:relative"), t.querySelector(".show")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".column"), [["position", "relative"]]), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(t.querySelectorAll("blockquote"), [["zIndex", "1"]]), t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
419
419
  }
420
- }, S = {
420
+ }, x = {
421
421
  siteBackgroundColor: "#ffffff",
422
422
  logoTop: "44px",
423
423
  logoLeft: "50%",
@@ -426,10 +426,10 @@ const _ = (w) => {
426
426
  logoSmallTransform: "translateX(-50%)",
427
427
  logoSmallFilter: "none",
428
428
  zIndex: function() {
429
- const t = window.parent.document, l = (h, b) => h.forEach((e) => b.forEach(([r, p]) => e.style[r] = p));
430
- t.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector("article")?.setAttribute("style", "position:relative"), t.querySelector("#article")?.setAttribute("style", "position:relative"), t.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), t.querySelector("#Index")?.setAttribute("style", "position:relative"), t.querySelector(".show")?.setAttribute("style", "position:relative"), l(t.querySelectorAll(".column"), [["position", "relative"]]), l(t.querySelectorAll(".advert"), [["position", "relative"]]), l(t.querySelectorAll("blockquote"), [["zIndex", "1"]]), t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style", "margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"), t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:0px"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
429
+ const t = window.parent.document, r = (h, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
430
+ t.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector("article")?.setAttribute("style", "position:relative"), t.querySelector("#article")?.setAttribute("style", "position:relative"), t.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), t.querySelector("#Index")?.setAttribute("style", "position:relative"), t.querySelector(".show")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".column"), [["position", "relative"]]), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(t.querySelectorAll("blockquote"), [["zIndex", "1"]]), t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style", "margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"), t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:0px"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
431
431
  }
432
- }, A = {
432
+ }, q = {
433
433
  siteBackgroundColor: "#ffffff",
434
434
  logoTop: "44px",
435
435
  logoLeft: "50%",
@@ -438,10 +438,10 @@ const _ = (w) => {
438
438
  logoSmallTransform: "translateX(-50%)",
439
439
  logoSmallFilter: "none",
440
440
  zIndex: function() {
441
- const t = window.parent.document, l = (h, b) => h.forEach((e) => b.forEach(([r, p]) => e.style[r] = p));
442
- t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style", "position:relative"), t.querySelector(".container--ads")?.setAttribute("style", "min-height:0"), t.getElementById("mastheadAnchorToggle")?.setAttribute("style", "display:none"), l(t.querySelectorAll(".advert"), [["position", "relative"]]), l(t.querySelectorAll("iframe"), [["position", "relative"]]), t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style", "position:relative"), t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style", "position:relative"), l(t.querySelectorAll("small"), [["position", "relative"]]), t.querySelector("small")?.setAttribute("style", "position:inherit"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
441
+ const t = window.parent.document, r = (h, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
442
+ t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style", "position:relative"), t.querySelector(".container--ads")?.setAttribute("style", "min-height:0"), t.getElementById("mastheadAnchorToggle")?.setAttribute("style", "display:none"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(t.querySelectorAll("iframe"), [["position", "relative"]]), t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style", "position:relative"), t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style", "position:relative"), r(t.querySelectorAll("small"), [["position", "relative"]]), t.querySelector("small")?.setAttribute("style", "position:inherit"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
443
443
  }
444
- }, B = {
444
+ }, C = {
445
445
  siteBackgroundColor: "#ffffff",
446
446
  logoTop: "-148px",
447
447
  logoLeft: "50%",
@@ -450,10 +450,10 @@ const _ = (w) => {
450
450
  logoSmallTransform: "translateX(-50%)",
451
451
  logoSmallFilter: "none",
452
452
  zIndex: function() {
453
- const t = window.parent.document, l = (h, b) => h.forEach((e) => b.forEach(([r, p]) => e.style[r] = p));
454
- t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), l(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
453
+ const t = window.parent.document, r = (h, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
454
+ t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
455
455
  }
456
- }, I = {
456
+ }, N = {
457
457
  siteBackgroundColor: "#ffffff",
458
458
  logoTop: "44px",
459
459
  logoLeft: "50%",
@@ -465,77 +465,77 @@ const _ = (w) => {
465
465
  const t = window.parent.document;
466
466
  t.querySelector(".header-wrapper")?.setAttribute("style", "height:124px"), t.querySelector(".weather-widget-wrapper")?.setAttribute("style", "bottom:0px"), t.querySelector(".content")?.setAttribute("style", "padding-top:32px"), t.querySelector(".layout")?.setAttribute("style", "position:relative;background-color:transparent;"), t.querySelector(".footer-ad")?.setAttribute("style", "position:relative"), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
467
467
  }
468
- }, k = [
468
+ }, E = [
469
469
  { site: "https://www.nine.com.au/sport", config: s },
470
- { site: "https://www.nine.com.au/product-reviews", config: S },
471
- { site: "https://www.nine.com.au/property", config: S },
472
- { site: "https://www.nine.com.au/entertainment", config: S },
470
+ { site: "https://www.nine.com.au/product-reviews", config: x },
471
+ { site: "https://www.nine.com.au/property", config: x },
472
+ { site: "https://www.nine.com.au/entertainment", config: x },
473
473
  { site: "https://staging.nine.com.au/sport", config: s },
474
- { site: "https://staging.nine.com.au/product-reviews", config: S },
475
- { site: "https://staging.nine.com.au/property", config: S },
476
- { site: "https://staging.nine.com.au/entertainment", config: S },
477
- { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: A },
478
- { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: A },
479
- { site: "https://preview.nine.com.au/", config: A },
480
- { site: "https://www.nine", config: A },
481
- { site: "https://staging.nine", config: A },
482
- { site: "https://entertainment", config: d },
483
- { site: "https://celebrity", config: d },
484
- { site: "https://homes", config: d },
485
- { site: "https://travel", config: d },
486
- { site: "https://honey", config: d },
487
- { site: "https://style", config: d },
488
- { site: "https://coach", config: d },
489
- { site: "https://kitchen", config: d },
490
- { site: "https://finance", config: d },
491
- { site: "https://wwos", config: B },
492
- { site: "https://staging.wwos", config: B },
493
- { site: "https://www.9news", config: I },
494
- { site: "https://staging.9news", config: I },
495
- { site: "https://www.yourtv", config: d },
496
- { site: "https://staging.yourtv", config: d },
497
- { site: "https://9now", config: S },
498
- { site: "https://creative-preview-an.com", config: d }
474
+ { site: "https://staging.nine.com.au/product-reviews", config: x },
475
+ { site: "https://staging.nine.com.au/property", config: x },
476
+ { site: "https://staging.nine.com.au/entertainment", config: x },
477
+ { site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: q },
478
+ { site: "https://render-web-nine-production-v1.ffxblue.com.au", config: q },
479
+ { site: "https://preview.nine.com.au/", config: q },
480
+ { site: "https://www.nine", config: q },
481
+ { site: "https://staging.nine", config: q },
482
+ { site: "https://entertainment", config: u },
483
+ { site: "https://celebrity", config: u },
484
+ { site: "https://homes", config: u },
485
+ { site: "https://travel", config: u },
486
+ { site: "https://honey", config: u },
487
+ { site: "https://style", config: u },
488
+ { site: "https://coach", config: u },
489
+ { site: "https://kitchen", config: u },
490
+ { site: "https://finance", config: u },
491
+ { site: "https://wwos", config: C },
492
+ { site: "https://staging.wwos", config: C },
493
+ { site: "https://www.9news", config: N },
494
+ { site: "https://staging.9news", config: N },
495
+ { site: "https://www.yourtv", config: u },
496
+ { site: "https://staging.yourtv", config: u },
497
+ { site: "https://9now", config: x },
498
+ { site: "https://creative-preview-an.com", config: u }
499
499
  ], M = () => {
500
500
  const t = window.document.getElementById("logo-small");
501
- t && (t.style.left = g.logoSmallLeft, t.style.transform = g.logoSmallTransform, t.style.filter = g.logoSmallFilter), C(), N(), c.addEventListener("scroll", n), o = setTimeout(n, 50);
502
- }, T = () => {
501
+ t && (t.style.left = g.logoSmallLeft, t.style.transform = g.logoSmallTransform, t.style.filter = g.logoSmallFilter), B(), I(), l.addEventListener("scroll", n), o = setTimeout(n, 50);
502
+ }, L = () => {
503
503
  let t = null;
504
- return t = x.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
505
- }, P = () => {
506
- const t = c.location.href;
507
- for (let l = 0; l < k.length; l += 1)
508
- if (t.indexOf(k[l].site) >= 0)
509
- return k[l].config;
510
- }, N = () => {
511
- if (!y) return;
512
- const t = y.style;
504
+ return t = A.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
505
+ }, D = () => {
506
+ const t = l.location.href;
507
+ for (let r = 0; r < E.length; r += 1)
508
+ if (t.indexOf(E[r].site) >= 0)
509
+ return E[r].config;
510
+ }, I = () => {
511
+ if (!p) return;
512
+ const t = p.style;
513
513
  t.width = "100%", t.height = `${i}px`, t.position = "relative";
514
- }, C = () => {
515
- if (!m) return;
516
- const t = m.style;
514
+ }, B = () => {
515
+ if (!v) return;
516
+ const t = v.style;
517
517
  t.maxHeight = `${i}px`, t.minHeight = `${i}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top = g.logoTop, t.left = g.logoLeft, t.transform = g.logoTransform, t.zIndex = "10000", t.pointerEvents = "none", g.zIndex && g.zIndex();
518
518
  }, a = (t) => {
519
- if (!m) return;
520
- const l = m.style;
521
- t === "big" && !window.bigActive ? (l.maxHeight = `${i}px`, l.minHeight = `${i}px`, l.position = "absolute", l.top = g.logoTop, l.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (l.maxHeight = `${u}px`, l.minHeight = `${u}px`, l.position = "fixed", l.top = "0px", l.zIndex = "100000", window.loadSmall());
519
+ if (!v) return;
520
+ const r = v.style;
521
+ t === "big" && !window.bigActive ? (r.maxHeight = `${i}px`, r.minHeight = `${i}px`, r.position = "absolute", r.top = g.logoTop, r.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (r.maxHeight = `${y}px`, r.minHeight = `${y}px`, r.position = "fixed", r.top = "0px", r.zIndex = "100000", window.loadSmall());
522
522
  }, n = () => {
523
- const t = c.scrollY;
524
- y.style, t >= 0 && t <= f ? a("big") : t > f && (t > v ? a("small") : a("big"), v = t <= 0 ? 0 : t);
525
- }, m = T(), g = P();
523
+ const t = l.scrollY;
524
+ p.style, t >= 0 && t <= d ? a("big") : t > d && (t > m ? a("small") : a("big"), m = t <= 0 ? 0 : t);
525
+ }, v = L(), g = D();
526
526
  if (!g) return () => {
527
527
  };
528
528
  let o = null;
529
- const f = w;
530
- let v = 0;
529
+ const d = b;
530
+ let m = 0;
531
531
  return M(), () => {
532
- c.removeEventListener("scroll", n), o && (clearTimeout(o), o = null);
532
+ l.removeEventListener("scroll", n), o && (clearTimeout(o), o = null);
533
533
  };
534
- }, $ = (w) => {
535
- if (w === 0 || w === 1) return w;
534
+ }, O = (b) => {
535
+ if (b === 0 || b === 1) return b;
536
536
  const i = 2 * Math.PI / 3;
537
- return Math.pow(2, -10 * w) * Math.sin((w * 10 - 0.75) * i) + 1;
538
- }, F = (w, i = 50) => `linear(${Array.from({ length: i + 1 }, (y, c) => w(c / i)).map((y) => +y.toFixed(4)).join(", ")})`, X = F($), U = (w = {}) => {
537
+ return Math.pow(2, -10 * b) * Math.sin((b * 10 - 0.75) * i) + 1;
538
+ }, V = (b, i = 50) => `linear(${Array.from({ length: i + 1 }, (p, l) => b(l / i)).map((p) => +p.toFixed(4)).join(", ")})`, F = V(O), X = (b = {}) => {
539
539
  const i = {
540
540
  // Ad scroll zone
541
541
  // How tall the ad container is — controls how long the ad stays in view.
@@ -555,9 +555,18 @@ const _ = (w) => {
555
555
  bandLetterSpacing: "1px",
556
556
  // Band labels
557
557
  labelTop: "Advertisement",
558
- labelBottomResume: "Content resumes in {n}px",
559
- // {n} is replaced with px count
560
- labelBottomNow: "Content resumes now ↓",
558
+ labelBottomResume: "Scroll to continue",
559
+ // shown from 0–20% ad progress
560
+ labelBottomMid: "Keep scrolling",
561
+ // shown from 20–75% ad progress
562
+ labelBottomLate: "Almost there",
563
+ // shown from 75–95% ad progress
564
+ labelBottomNow: "Content now ↓",
565
+ // shown when ad has cleared
566
+ // Progress bar (inside bottom band)
567
+ // Set to null or '' to disable the progress bar and fall back to text only.
568
+ progressBarColor: "rgba(255,255,255,0.35)",
569
+ // fill colour; sits above band background
561
570
  // Band z-index (should sit below page header)
562
571
  zIndexTop: 9,
563
572
  zIndexBottom: 8,
@@ -566,7 +575,7 @@ const _ = (w) => {
566
575
  // gap (px) at which the elastic snap fires
567
576
  snapOverlap: 2,
568
577
  // px — fires the snap this many px early (trigger timing)
569
- stretchOverlap: 2,
578
+ stretchOverlap: 4,
570
579
  // px — extends the band this many px past the touchpoint
571
580
  // during the stretch phase, eliminating the sub-pixel gap
572
581
  snapDuration: 0.9,
@@ -574,7 +583,7 @@ const _ = (w) => {
574
583
  // CSS timing function for the snap — any valid CSS transition-timing-function.
575
584
  // Default: easeOutElastic encoded as a CSS linear() function (50-point sample).
576
585
  // See: https://developer.mozilla.org/en-US/blog/custom-easing-in-css-with-linear/
577
- snapEase: X,
586
+ snapEase: F,
578
587
  // ── Scroll callbacks ───────────────────────────────────────────
579
588
  // Called once when the ad starts to reveal (top band visible, ad beginning to scroll).
580
589
  onEnter: null,
@@ -588,33 +597,33 @@ const _ = (w) => {
588
597
  // Example: [{ at: 0.2, onEnter: () => playVideo(), onLeave: () => pauseVideo() }]
589
598
  thresholds: [],
590
599
  // Merge caller-supplied options (overrides any default above)
591
- ...w
592
- }, u = window.frameElement ? window.frameElement : null;
593
- if (!u) return () => {
600
+ ...b
601
+ }, y = window.frameElement ? window.frameElement : null;
602
+ if (!y) return () => {
594
603
  };
595
- const y = window.parent;
596
- if (!y || y === window) return () => {
604
+ const p = window.parent;
605
+ if (!p || p === window) return () => {
597
606
  };
598
- let c = null;
607
+ let l = null;
599
608
  try {
600
- c = y.document, y.location.href;
609
+ l = p.document, p.location.href;
601
610
  } catch {
602
611
  return () => {
603
612
  };
604
613
  }
605
614
  const s = (() => {
606
- const a = c.querySelector("#adspot-mobile-mobile-3-above");
615
+ const a = l.querySelector("#adspot-mobile-mobile-3-above");
607
616
  if (a) return a;
608
- let n = u.parentElement;
609
- for (; n && n !== c.body; ) {
617
+ let n = y.parentElement;
618
+ for (; n && n !== l.body; ) {
610
619
  if (n.id && n.id.includes("adspot")) return n;
611
620
  n = n.parentElement;
612
621
  }
613
- return u.parentElement;
622
+ return y.parentElement;
614
623
  })();
615
624
  if (!s) return () => {
616
625
  };
617
- const d = s.getAttribute("style"), S = u.getAttribute("style"), A = {
626
+ const u = s.getAttribute("style"), x = y.getAttribute("style"), q = {
618
627
  width: "100vw",
619
628
  marginLeft: "calc(50% - 50vw)",
620
629
  height: i.bandHeight + "px",
@@ -632,58 +641,83 @@ const _ = (w) => {
632
641
  (() => {
633
642
  const a = s.style;
634
643
  a.height = i.adScrollHeight, a.position = "relative", a.clipPath = `inset(-${i.bandHeight}px 0 0 0)`, a.overflow = "visible", a.width = "100vw", a.maxWidth = "100vw", a.marginLeft = "calc(50% - 50vw)", a.marginRight = "0", a.marginTop = "0", a.marginBottom = "0", a.padding = "0", a.className = "";
635
- const n = u.style;
644
+ const n = y.style;
636
645
  n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100vh", n.maxWidth = "100vw", n.margin = "0", n.padding = "0", n.border = "none", n.zIndex = "1";
637
- const m = c.createElement("div");
638
- m.id = "interscroller-top-band", m.textContent = i.labelTop, Object.assign(m.style, A, {
646
+ const v = l.createElement("div");
647
+ v.id = "interscroller-top-band", v.textContent = i.labelTop, Object.assign(v.style, q, {
639
648
  position: "sticky",
640
649
  bottom: "0",
641
650
  zIndex: i.zIndexTop,
642
651
  transformOrigin: "top center"
643
652
  });
644
653
  const g = s.previousElementSibling;
645
- g ? g.appendChild(m) : s.parentElement.insertBefore(m, s);
646
- const o = c.createElement("div");
647
- o.id = "interscroller-bottom-band", o.textContent = i.labelBottomResume.replace("{n}", "…"), Object.assign(o.style, A, {
648
- position: "sticky",
654
+ g ? g.appendChild(v) : s.parentElement.insertBefore(v, s);
655
+ const o = l.createElement("div");
656
+ o.id = "interscroller-bottom-band", Object.assign(o.style, q, {
657
+ position: "relative",
658
+ // overridden per-scroll; needed so the fill div is contained
649
659
  top: "0",
650
660
  zIndex: i.zIndexBottom,
651
- display: "none"
652
- }), s.after(o);
661
+ display: "none",
662
+ overflow: "hidden"
663
+ // clips the progress fill to the band bounds
664
+ });
665
+ const d = l.createElement("span");
666
+ if (d.id = "interscroller-bottom-label", d.textContent = i.labelBottomResume, d.style.cssText = "position:relative;z-index:1;pointer-events:none;", o.appendChild(d), i.progressBarColor) {
667
+ const m = l.createElement("span");
668
+ m.id = "interscroller-bottom-progress", m.style.cssText = [
669
+ "position:absolute",
670
+ "inset:0",
671
+ "width:0%",
672
+ `background:${i.progressBarColor}`,
673
+ "transition:none",
674
+ "z-index:0",
675
+ "pointer-events:none"
676
+ ].join(";"), o.appendChild(m);
677
+ }
678
+ s.after(o);
653
679
  })();
654
- const I = i.bandHeight, k = i.snapPx;
655
- let M = !1, T = !1, P = !1;
656
- const N = (i.thresholds || []).map(() => !1), C = () => {
657
- const a = c.querySelector("#interscroller-top-band"), n = c.querySelector("#interscroller-bottom-band");
680
+ const N = i.bandHeight, E = i.snapPx;
681
+ let M = !1, L = !1, D = !1;
682
+ const I = (i.thresholds || []).map(() => !1), B = () => {
683
+ const a = l.querySelector("#interscroller-top-band"), n = l.querySelector("#interscroller-bottom-band");
658
684
  if (!n) return;
659
- const m = s.getBoundingClientRect(), g = y.innerHeight, o = m.top <= g, f = m.bottom <= g - I, v = s.offsetHeight, t = Math.min(1, Math.max(0, (g - m.top) / (v + g))), l = Math.min(1, Math.max(0, (g - m.top) / v)), h = Math.min(m.bottom, g) - Math.max(m.top - I, 0), b = Math.min(1, Math.max(0, h / g)), e = Math.max(0, Math.round(m.bottom - g));
660
- if (!T && o && i.onEnter && i.onEnter(), !P && f && i.onExit && i.onExit(), T = o, P = f, i.onProgress && i.onProgress({ scrollProgress: t, adExposure: l, viewportCoverage: b, pxRemaining: e }), (i.thresholds || []).forEach((r, p) => {
661
- const q = N[p], E = t >= r.at;
662
- !q && E ? (N[p] = !0, r.onEnter && r.onEnter(t)) : q && !E && (N[p] = !1, r.onLeave && r.onLeave(t));
663
- }), a && o && !f) {
664
- const r = g - m.top;
665
- if (!M && r <= k - i.snapOverlap) {
666
- const q = 1 + (Math.max(0, r / k) * k + i.stretchOverlap) / I;
667
- a.style.transition = "none", a.style.transform = `scaleY(${q})`;
668
- } else !M && r > k - i.snapOverlap && (M = !0, a.style.transition = `transform ${i.snapDuration}s ${i.snapEase}`, a.style.transform = "scaleY(1)");
685
+ const v = s.getBoundingClientRect(), g = p.innerHeight, o = v.top <= g, d = v.bottom <= g - N, m = s.offsetHeight, t = Math.min(1, Math.max(0, (g - v.top) / (m + g))), r = Math.min(1, Math.max(0, (g - v.top) / (m + N))), h = Math.min(1, Math.max(0, (g - v.top) / m)), S = Math.min(v.bottom, g) - Math.max(v.top - N, 0), e = Math.min(1, Math.max(0, S / g)), c = Math.max(0, Math.round(v.bottom - g));
686
+ if (!L && o && i.onEnter && i.onEnter(), !D && d && i.onExit && i.onExit(), L = o, D = d, i.onProgress && i.onProgress({ scrollProgress: t, adExposure: h, viewportCoverage: e, pxRemaining: c }), (i.thresholds || []).forEach((w, T) => {
687
+ const P = I[T], H = t >= w.at;
688
+ !P && H ? (I[T] = !0, w.onEnter && w.onEnter(t)) : P && !H && (I[T] = !1, w.onLeave && w.onLeave(t));
689
+ }), a && o && !d) {
690
+ const w = g - v.top;
691
+ if (!M && w <= E - i.snapOverlap) {
692
+ const P = 1 + (Math.max(0, w / E) * E + i.stretchOverlap) / N;
693
+ a.style.transition = "none", a.style.transform = `scaleY(${P})`;
694
+ } else !M && w > E - i.snapOverlap && (M = !0, a.style.transition = `transform ${i.snapDuration}s ${i.snapEase}`, a.style.transform = "scaleY(1)");
669
695
  } else a && !o && (M = !1, a.style.transition = "none", a.style.transform = "scaleY(1)");
670
- f ? (n.style.position = "sticky", n.style.top = "0", n.style.bottom = "", n.style.left = "", n.style.marginLeft = "calc(50% - 50vw)", n.style.width = "100vw", n.style.display = "flex", n.textContent = i.labelBottomNow) : o ? (n.textContent = e > 0 ? i.labelBottomResume.replace("{n}", e) : i.labelBottomNow, n.style.position = "fixed", n.style.bottom = "0", n.style.top = "", n.style.left = "0", n.style.marginLeft = "0", n.style.width = "100vw", n.style.display = "flex") : n.style.display = "none";
696
+ const f = l.querySelector("#interscroller-bottom-label"), k = l.querySelector("#interscroller-bottom-progress");
697
+ if (d)
698
+ n.style.position = "sticky", n.style.top = "0", n.style.bottom = "", n.style.left = "", n.style.marginLeft = "calc(50% - 50vw)", n.style.width = "100vw", n.style.display = "flex", f && (f.textContent = i.labelBottomNow), k && (k.style.width = "100%");
699
+ else if (o) {
700
+ f && (f.textContent = c > 0 ? r < 0.2 ? i.labelBottomResume : r < 0.75 ? i.labelBottomMid : i.labelBottomLate : i.labelBottomNow), k && (k.style.width = `${Math.round(r * 100)}%`), n.style.position = "fixed";
701
+ const w = p.visualViewport ? Math.round(p.innerHeight - (p.visualViewport.offsetTop + p.visualViewport.height)) : 0;
702
+ n.style.bottom = `${w}px`, n.style.top = "", n.style.left = "0", n.style.marginLeft = "0", n.style.width = "100vw", n.style.display = "flex";
703
+ } else
704
+ n.style.display = "none";
671
705
  };
672
- return C(), y.addEventListener("scroll", C, { passive: !0 }), () => {
673
- y.removeEventListener("scroll", C);
674
- const a = c.querySelector("#interscroller-top-band"), n = c.querySelector("#interscroller-bottom-band");
675
- a && a.remove(), n && n.remove(), d ? s.setAttribute("style", d) : s.removeAttribute("style"), S ? u.setAttribute("style", S) : u.removeAttribute("style");
706
+ return B(), p.addEventListener("scroll", B, { passive: !0 }), p.visualViewport?.addEventListener("resize", B, { passive: !0 }), () => {
707
+ p.removeEventListener("scroll", B), p.visualViewport?.removeEventListener("resize", B);
708
+ const a = l.querySelector("#interscroller-top-band"), n = l.querySelector("#interscroller-bottom-band");
709
+ a && a.remove(), n && n.remove(), u ? s.setAttribute("style", u) : s.removeAttribute("style"), x ? y.setAttribute("style", x) : y.removeAttribute("style");
676
710
  };
677
711
  };
678
- let H = () => {
712
+ let z = () => {
679
713
  };
680
- function V({ adFormat: w = "", stickyOffset: i = 0, logoPosX: u = 0, logoHeight: y = 0, logoSmallHeight: c = 0, ...x } = {}) {
681
- typeof H == "function" && H();
714
+ function U({ adFormat: b = "", stickyOffset: i = 0, logoPosX: y = 0, logoHeight: p = 0, logoSmallHeight: l = 0, ...A } = {}) {
715
+ typeof z == "function" && z();
682
716
  let s = () => {
683
717
  };
684
- return w === "fireplace" ? s = _(i) : w === "fireplace-collant" ? s = R(i) : w === "logomorph" ? s = O(u, y, c) : w === "interscroller" ? s = U(x) : console.warn("[powered-ad-config] Unknown ad format:", w), H = typeof s == "function" ? s : () => {
685
- }, H;
718
+ return b === "fireplace" ? s = _(i) : b === "fireplace-collant" ? s = R(i) : b === "logomorph" ? s = $(y, p, l) : b === "interscroller" ? s = X(A) : console.warn("[powered-ad-config] Unknown ad format:", b), z = typeof s == "function" ? s : () => {
719
+ }, z;
686
720
  }
687
721
  export {
688
- V as default
722
+ U as default
689
723
  };