powered-ad-config 0.1.7 → 0.1.8

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.
@@ -19,7 +19,7 @@ var e = (e) => {
19
19
  xPosHalfpage: 695,
20
20
  yPosHalfpage: 72,
21
21
  stickyMargin: {
22
- offset: 72,
22
+ offset: 74,
23
23
  isSticky: !0
24
24
  },
25
25
  zIndex: function() {
@@ -35,7 +35,7 @@ var e = (e) => {
35
35
  xPosHalfpage: 695,
36
36
  yPosHalfpage: 32,
37
37
  stickyMargin: {
38
- offset: 32,
38
+ offset: 74,
39
39
  isSticky: !0
40
40
  },
41
41
  zIndex: function() {
@@ -51,7 +51,7 @@ var e = (e) => {
51
51
  xPosHalfpage: 722,
52
52
  yPosHalfpage: 32,
53
53
  stickyMargin: {
54
- offset: 8,
54
+ offset: 74,
55
55
  isSticky: !0
56
56
  },
57
57
  zIndex: function() {
@@ -70,7 +70,7 @@ var e = (e) => {
70
70
  xPosHalfpage: 720,
71
71
  yPosHalfpage: 32,
72
72
  stickyMargin: {
73
- offset: 104,
73
+ offset: 94,
74
74
  isSticky: !0
75
75
  },
76
76
  zIndex: function() {
@@ -81,25 +81,6 @@ var e = (e) => {
81
81
  }
82
82
  }
83
83
  }, c = {
84
- siteBackgroundColor: "#f7f7f7",
85
- fireplaceLeftMargin: 0,
86
- adNodeMarginTop: -25,
87
- adNodeMarginBottom: 0,
88
- responsiveScroll: -124,
89
- xPosHalfpage: 720,
90
- yPosHalfpage: 32,
91
- stickyMargin: {
92
- offset: 104,
93
- isSticky: !0
94
- },
95
- zIndex: function() {
96
- let e = window.parent.document;
97
- if (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("div[id*=\"tablet\"][id*=\"takeover\"]")) {
98
- let t = e.createElement("style");
99
- t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
100
- }
101
- }
102
- }, l = {
103
84
  siteBackgroundColor: "#ffffff",
104
85
  fireplaceLeftMargin: 0,
105
86
  adNodeMarginTop: -32,
@@ -108,14 +89,14 @@ var e = (e) => {
108
89
  xPosHalfpage: 720,
109
90
  yPosHalfpage: 16,
110
91
  stickyMargin: {
111
- offset: 16,
92
+ offset: 74,
112
93
  isSticky: !0
113
94
  },
114
95
  zIndex: function() {
115
96
  let e = window.parent.document;
116
97
  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);");
117
98
  }
118
- }, u = [
99
+ }, l = [
119
100
  {
120
101
  site: "https://www.nine.com.au/sport",
121
102
  config: s
@@ -204,21 +185,17 @@ var e = (e) => {
204
185
  site: "https://finance",
205
186
  config: i
206
187
  },
207
- {
208
- site: "https://wwos",
209
- config: c
210
- },
211
188
  {
212
189
  site: "https://staging.wwos",
213
190
  config: s
214
191
  },
215
192
  {
216
193
  site: "https://www.9news",
217
- config: l
194
+ config: c
218
195
  },
219
196
  {
220
197
  site: "https://staging.9news",
221
- config: l
198
+ config: c
222
199
  },
223
200
  {
224
201
  site: "https://www.yourtv",
@@ -236,15 +213,24 @@ var e = (e) => {
236
213
  site: "https://creative-preview-an.com",
237
214
  config: i
238
215
  }
239
- ], d = () => {
216
+ ], u = () => {
240
217
  let e = window.document.getElementById("nineContent");
241
- e && (e.style.backgroundColor = v.siteBackgroundColor), h(), m(), n.addEventListener("scroll", g), y = setTimeout(g, 50);
242
- }, f = () => {
218
+ e && (e.style.backgroundColor = v.siteBackgroundColor), h(), m(), p(), n.addEventListener("scroll", g), y = setTimeout(g, 50);
219
+ }, d = () => {
243
220
  let e = null;
244
221
  return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
245
- }, p = () => {
222
+ }, f = () => {
246
223
  let e = n.location.href;
247
- for (let t = 0; t < u.length; t += 1) if (e.indexOf(u[t].site) >= 0) return u[t].config;
224
+ for (let t = 0; t < l.length; t += 1) if (e.indexOf(l[t].site) >= 0) return l[t].config;
225
+ }, p = () => {
226
+ if (!window.parent) return;
227
+ let e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
228
+ if (!e) return;
229
+ let t = e;
230
+ for (let e = 0; e < 3; e++) if (t = t.parentNode, t && n.getComputedStyle(t).position === "sticky") {
231
+ t.setAttribute("style", `top: ${v.stickyMargin.offset}px`);
232
+ break;
233
+ }
248
234
  }, m = () => {
249
235
  if (!t) return;
250
236
  let e = t.style;
@@ -256,10 +242,10 @@ var e = (e) => {
256
242
  }, g = () => {
257
243
  let e = n.scrollY, r = t.style, i = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
258
244
  e >= 0 && e <= b ? (r.transform = `translate(-50%, ${-e}px)`, i.transform = "translateY(0)") : e > b && e <= x ? (r.transform = `translate(-50%, ${-b}px)`, i.transform = `translateY(${b - e}px)`) : e > x && (r.transform = `translate(-50%, ${-b}px)`, i.transform = "translateY(-250px)");
259
- }, _ = f(), v = p();
245
+ }, _ = d(), v = f();
260
246
  if (!v) return () => {};
261
247
  let y = null, b = -v.responsiveScroll + e, x = b + 250;
262
- return d(), () => {
248
+ return u(), () => {
263
249
  n.removeEventListener("scroll", g), y &&= (clearTimeout(y), null);
264
250
  };
265
251
  }, t = (e) => {
@@ -861,7 +847,7 @@ var e = (e) => {
861
847
  };
862
848
  (() => {
863
849
  let e = o.style;
864
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", o.setAttribute("poweredAC", "0.1.7"), 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";
850
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", o.setAttribute("poweredAC", "0.1.8"), 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";
865
851
  let r = o.parentElement;
866
852
  for (let e = 0; e < 6 && r && r !== a.body; e++) {
867
853
  let t = i.getComputedStyle(r), n = !1;
@@ -993,7 +979,7 @@ var e = (e) => {
993
979
  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;
994
980
  return (() => {
995
981
  let e = a.style;
996
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.7"), c) {
982
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.8"), c) {
997
983
  let e = c.style;
998
984
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
999
985
  }
@@ -1141,7 +1127,7 @@ var e = (e) => {
1141
1127
  }), e.style.overflow = "visible"), e = e.parentElement;
1142
1128
  }
1143
1129
  let o = n.style;
1144
- if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.7"), d) {
1130
+ if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.8"), d) {
1145
1131
  let e = d.style;
1146
1132
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1147
1133
  }
@@ -1244,6 +1230,6 @@ function c({ adFormat: r = "", stickyOffset: c = 0, logoPosX: l = 0, logoHeight:
1244
1230
  let p = () => {};
1245
1231
  return r === "fireplace" ? p = e(c) : r === "fireplace-collant" ? p = t(c) : r === "logomorph" ? p = n(l, u, d) : r === "interscroller" ? p = i(f) : r === "liquidframe" ? p = a(f) : r === "mobilefireplace" ? p = o(f) : console.warn("[powered-ad-config] Unknown ad format:", r), s = typeof p == "function" ? p : () => {}, s;
1246
1232
  }
1247
- c.version = "0.1.7";
1233
+ c.version = "0.1.8";
1248
1234
  //#endregion
1249
1235
  export { c as default };
@@ -1,16 +1,12 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.poweredAdConfig=t())})(this,function(){var e=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:72,stickyMargin:{offset:72,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[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`)}},a={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:32,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`)}},o={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-55,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:8,isSticky:!0},zIndex:function(){let e=window.parent.document;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"]`)){let t=e.createElement(`style`);t.innerHTML=`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.poweredAdConfig=t())})(this,function(){var e=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:72,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[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`)}},a={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`),e.querySelector(`div[class*="MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:24px`)}},o={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-55,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document;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"]`)){let t=e.createElement(`style`);t.innerHTML=`
2
2
  div:has(#adspot-tablet-takeover-2-above) {
3
3
  position: static;
4
4
  }
5
- `,e.head.appendChild(t)}}},s={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){let e=window.parent.document,t=e.querySelector(`footer`).previousElementSibling;if(t&&t.tagName.toLowerCase()===`div`&&(t.style.position=`relative`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
5
+ `,e.head.appendChild(t)}}},s={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:94,isSticky:!0},zIndex:function(){let e=window.parent.document,t=e.querySelector(`footer`).previousElementSibling;if(t&&t.tagName.toLowerCase()===`div`&&(t.style.position=`relative`),e.querySelector(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
6
6
  div:has(#adspot-tablet-takeover-2-above) {
7
7
  position: static;
8
8
  }
9
- `,e.head.appendChild(t)}}},c={siteBackgroundColor:`#f7f7f7`,fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){let e=window.parent.document;if(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(`div[id*="tablet"][id*="takeover"]`)){let t=e.createElement(`style`);t.innerHTML=`
10
- div:has(#adspot-tablet-takeover-2-above) {
11
- position: static;
12
- }
13
- `,e.head.appendChild(t)}}},l={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:16,isSticky:!0},zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`)}},u=[{site:`https://www.nine.com.au/sport`,config:s},{site:`https://www.nine.com.au/product-reviews`,config:a},{site:`https://www.nine.com.au/property`,config:a},{site:`https://www.nine.com.au/entertainment`,config:a},{site:`https://staging.nine.com.au/sport`,config:s},{site:`https://staging.nine.com.au/product-reviews`,config:a},{site:`https://staging.nine.com.au/property`,config:a},{site:`https://staging.nine.com.au/entertainment`,config:a},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:o},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:o},{site:`https://preview.nine.com.au/`,config:o},{site:`https://www.nine`,config:o},{site:`https://staging.nine`,config:o},{site:`https://entertainment`,config:i},{site:`https://celebrity`,config:i},{site:`https://homes`,config:i},{site:`https://travel`,config:i},{site:`https://honey`,config:i},{site:`https://style`,config:i},{site:`https://coach`,config:i},{site:`https://kitchen`,config:i},{site:`https://finance`,config:i},{site:`https://wwos`,config:c},{site:`https://staging.wwos`,config:s},{site:`https://www.9news`,config:l},{site:`https://staging.9news`,config:l},{site:`https://www.yourtv`,config:i},{site:`https://staging.yourtv`,config:i},{site:`https://9now`,config:a},{site:`https://creative-preview-an.com`,config:i}],d=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=v.siteBackgroundColor),h(),m(),n.addEventListener(`scroll`,g),y=setTimeout(g,50)},f=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},p=()=>{let e=n.location.href;for(let t=0;t<u.length;t+=1)if(e.indexOf(u[t].site)>=0)return u[t].config},m=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.transform=`translate(-50%, 0)`},h=()=>{if(!_)return;let e=_.style;_.className=``,e.minHeight=`250px`,e.marginTop=v.adNodeMarginTop+`px`,e.marginBottom=v.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,v.zIndex&&v.zIndex()},g=()=>{let e=n.scrollY,r=t.style,i=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=b?(r.transform=`translate(-50%, ${-e}px)`,i.transform=`translateY(0)`):e>b&&e<=x?(r.transform=`translate(-50%, ${-b}px)`,i.transform=`translateY(${b-e}px)`):e>x&&(r.transform=`translate(-50%, ${-b}px)`,i.transform=`translateY(-250px)`)},_=f(),v=p();if(!v)return()=>{};let y=null,b=-v.responsiveScroll+e,x=b+250;return d(),()=>{n.removeEventListener(`scroll`,g),y&&=(clearTimeout(y),null)}},t=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i=document.getElementById(`nineMasthead`),a=i?i.style:{},o,s={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),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`)}},l={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;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"]`)){let t=e.createElement(`style`);t.innerHTML=`
9
+ `,e.head.appendChild(t)}}},c={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:74,isSticky:!0},zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`)}},l=[{site:`https://www.nine.com.au/sport`,config:s},{site:`https://www.nine.com.au/product-reviews`,config:a},{site:`https://www.nine.com.au/property`,config:a},{site:`https://www.nine.com.au/entertainment`,config:a},{site:`https://staging.nine.com.au/sport`,config:s},{site:`https://staging.nine.com.au/product-reviews`,config:a},{site:`https://staging.nine.com.au/property`,config:a},{site:`https://staging.nine.com.au/entertainment`,config:a},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:o},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:o},{site:`https://preview.nine.com.au/`,config:o},{site:`https://www.nine`,config:o},{site:`https://staging.nine`,config:o},{site:`https://entertainment`,config:i},{site:`https://celebrity`,config:i},{site:`https://homes`,config:i},{site:`https://travel`,config:i},{site:`https://honey`,config:i},{site:`https://style`,config:i},{site:`https://coach`,config:i},{site:`https://kitchen`,config:i},{site:`https://finance`,config:i},{site:`https://staging.wwos`,config:s},{site:`https://www.9news`,config:c},{site:`https://staging.9news`,config:c},{site:`https://www.yourtv`,config:i},{site:`https://staging.yourtv`,config:i},{site:`https://9now`,config:a},{site:`https://creative-preview-an.com`,config:i}],u=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=v.siteBackgroundColor),h(),m(),p(),n.addEventListener(`scroll`,g),y=setTimeout(g,50)},d=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},f=()=>{let e=n.location.href;for(let t=0;t<l.length;t+=1)if(e.indexOf(l[t].site)>=0)return l[t].config},p=()=>{if(!window.parent)return;let e=r.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&n.getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${v.stickyMargin.offset}px`);break}},m=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.transform=`translate(-50%, 0)`},h=()=>{if(!_)return;let e=_.style;_.className=``,e.minHeight=`250px`,e.marginTop=v.adNodeMarginTop+`px`,e.marginBottom=v.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,v.zIndex&&v.zIndex()},g=()=>{let e=n.scrollY,r=t.style,i=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=b?(r.transform=`translate(-50%, ${-e}px)`,i.transform=`translateY(0)`):e>b&&e<=x?(r.transform=`translate(-50%, ${-b}px)`,i.transform=`translateY(${b-e}px)`):e>x&&(r.transform=`translate(-50%, ${-b}px)`,i.transform=`translateY(-250px)`)},_=d(),v=f();if(!v)return()=>{};let y=null,b=-v.responsiveScroll+e,x=b+250;return u(),()=>{n.removeEventListener(`scroll`,g),y&&=(clearTimeout(y),null)}},t=e=>{let t=window.frameElement?window.frameElement:null;if(!t)return()=>{};let n=window.parent;if(!n||n===window)return()=>{};let r=null;try{r=n.document,n.location.href}catch{return()=>{}}let i=document.getElementById(`nineMasthead`),a=i?i.style:{},o,s={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="video-index__MyContainer"]`)?248:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),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`)}},l={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;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"]`)){let t=e.createElement(`style`);t.innerHTML=`
14
10
  div:has(#adspot-tablet-takeover-2-above) {
15
11
  position: static;
16
12
  }
@@ -22,7 +18,7 @@
22
18
  div:has(#adspot-tablet-takeover-2-above) {
23
19
  position: static;
24
20
  }
25
- `,e.head.appendChild(t)}}},f={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},p=[{site:`https://www.nine.com.au/sport`,config:u},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:u},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:d},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:f},{site:`https://staging.9news`,config:f},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],m=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=T.siteBackgroundColor),i&&(a.setProperty(`--masthead-height`,`250px`),a.height=`var(--masthead-height)`),y(),v(),g(),b(),n.addEventListener(`scroll`,C,{passive:!0}),E=setTimeout(C,50)},h=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},g=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${T.stickyMargin.offset}px`);break}},_=()=>{let e=n.location.href;for(let t=0;t<p.length;t+=1)if(e.indexOf(p[t].site)>=0)return p[t].config},v=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},y=()=>{if(!w)return;let e=w.style;w.className=``,e.minHeight=`250px`,e.marginTop=T.adNodeMarginTop+`px`,e.marginBottom=T.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,T.zIndex&&T.zIndex()},b=()=>{o=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`),o&&(o.style.willChange=`clip-path`,o.style.transition=`none`,o.style.webkitBackfaceVisibility=`hidden`,o.style.backfaceVisibility=`hidden`,o.style.transform=`translate3d(0,0,0)`,o.style.backgroundColor=T.siteBackgroundColor,o.style.setProperty(`--mask-inset`,`0px`),o.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},x=0,S=0,C=()=>{let e=n.scrollY,r=e>x,i=e>O?e-T.maskOffset:0,s=Math.abs(i-S);if(o)if(r&&i>S)if(s>100){let e=Math.max(0,i-100);o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${e}px`),o.offsetHeight,o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`)}else o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`);else o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${i}px`);x=e,S=i,e>O?(t.style.setProperty(`--transform-y`,`${-D}px`),a.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>D&&e<=O?(t.style.setProperty(`--transform-y`,`${-D}px`),a.setProperty(`--masthead-height`,`${250+D-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=D&&(t.style.setProperty(`--transform-y`,`${-e}px`),a.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},w=h(),T=_();if(!T)return()=>{};let E=null,D=-T.responsiveScroll+e,O=D+150;return m(),()=>{n.removeEventListener(`scroll`,C),E&&=(clearTimeout(E),null)}},n=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},r=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),i=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:r,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o=(()=>{let e=a.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==a.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!o)return()=>{};let s=o.getAttribute(`style`),c=n.getAttribute(`style`),l=[],u={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=o.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,o.setAttribute(`poweredAC`,`0.1.7`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let r=o.parentElement;for(let e=0;e<6&&r&&r!==a.body;e++){let t=i.getComputedStyle(r),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(l.push({el:r,prop:`overflow`,val:r.style.overflow}),l.push({el:r,prop:`overflowY`,val:r.style.overflowY}),r.style.overflow=`visible`,r.style.overflowY=`visible`,n=!0);let a=parseFloat(t.height);t.height!==`auto`&&!isNaN(a)&&a<600&&(l.push({el:r,prop:`height`,val:r.style.height}),r.style.height=`auto`,n=!0);let o=t.maxHeight;if(o&&o!==`none`&&(l.push({el:r,prop:`maxHeight`,val:r.style.maxHeight}),r.style.maxHeight=`none`,n=!0),!n&&e>1)break;r=r.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let c=a.createElement(`div`);c.id=`interscroller-top-band-wrapper`,Object.assign(c.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=a.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,u,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),c.appendChild(d),o.insertAdjacentElement(`beforebegin`,c);let f=a.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,u,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=a.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=a.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}o.after(f)})();let d=a.querySelector(`#interscroller-top-band`),f=a.querySelector(`#interscroller-top-band-wrapper`),p=a.querySelector(`#interscroller-bottom-band`),m=a.querySelector(`#interscroller-bottom-label`),h=a.querySelector(`#interscroller-bottom-progress`),g=t.bandHeight,_=t.snapPx,v=!1,y=!1,b=!1,x=!1,S=(t.thresholds||[]).map(()=>!1),C=()=>{if(!p)return;let e=o.getBoundingClientRect(),n=i.innerHeight,r=e.top<=n,a=e.bottom<=n-g,s=x?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=o.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),u=Math.min(1,Math.max(0,(n-e.top)/(c+g))),f=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-g,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!y&&r&&t.onEnter&&t.onEnter(),!b&&a&&t.onExit&&t.onExit(),y=r,b=a,x=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:f,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=S[t],r=l>=e.at;!n&&r?(S[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(S[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(d&&e.top<=E+t.stretchOverlap&&!a){let n=E-e.top;if(!v&&n<=_-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/g;d.style.transition=`none`,d.style.transform=`scaleY(${e})`}else !v&&n>_-t.snapOverlap&&(v=!0,d.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,d.style.transform=`scaleY(1)`)}else d&&e.top>E+t.stretchOverlap&&(v=!1,d.style.transition=`none`,d.style.transform=`scaleY(1)`);let D=i.visualViewport?Math.round(i.innerHeight-(i.visualViewport.offsetTop+i.visualViewport.height)):0;a?(p.style.transition=`none`,p.style.transform=`none`,p.style.position=`sticky`,p.style.top=`0`,p.style.bottom=``,p.style.left=``,p.style.marginLeft=`calc(50% - 50vw)`,p.style.width=`100vw`,m&&(m.textContent=t.labelBottomNow),h&&(h.style.width=`100%`)):s?(m&&(m.textContent=T>0?u<.2?t.labelBottomResume:u<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),h&&(h.style.width=`${Math.round(u*100)}%`),p.style.transition=`transform 0.3s ease`,p.style.transform=`translateY(0)`,p.style.position=`fixed`,p.style.bottom=`${D}px`,p.style.top=``,p.style.left=`0`,p.style.marginLeft=`0`,p.style.width=`100vw`):(p.style.transition=`transform 0.3s ease`,p.style.transform=`translateY(100%)`,p.style.position=`fixed`,p.style.bottom=`${D}px`,p.style.left=`0`,p.style.marginLeft=`0`,p.style.width=`100vw`)};return C(),i.addEventListener(`scroll`,C,{passive:!0}),i.visualViewport?.addEventListener(`resize`,C,{passive:!0}),()=>{i.removeEventListener(`scroll`,C),i.visualViewport?.removeEventListener(`resize`,C),f?f.remove():d&&d.remove(),p&&p.remove(),s?o.setAttribute(`style`,s):o.removeAttribute(`style`),c?n.setAttribute(`style`,c):n.removeAttribute(`style`),l.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},a=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.7`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},o=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}}},s=[{site:`https://www.nine.com.au/sport`,config:o.wwos},{site:`https://staging.nine.com.au/sport`,config:o.wwos},{site:`https://www.nine.com.au`,config:o.nine},{site:`https://staging.nine.com.au`,config:o.nine},{site:`https://preview.nine.com.au`,config:o.nine},{site:`https://www.9news`,config:o.nineNews},{site:`https://staging.9news`,config:o.nineNews},{site:`https://honey`,config:o.lifestyle},{site:`https://www.smh`,config:o.smh},{site:`https://www.theage`,config:o.theage},{site:`https://creative-preview-an.com`,config:o.nine}],c=(()=>{let e=r.location.href;for(let t of s)if(e.indexOf(t.site)>=0)return t.config;return o.nine})(),l=n.getAttribute(`style`),u=a.getAttribute(`style`),d=n.parentElement===a?null:n.parentElement,f=d?d.getAttribute(`style`):null,p=a.parentElement,m=p?p.getAttribute(`style`):null,h=null,g=null,_=[],v=()=>{let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(_.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(_.find(t=>t.el===e)||_.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}let o=n.style;if(o.position=`fixed`,o.top=`0`,o.left=`0`,o.width=`100vw`,o.height=`100dvh`,o.zIndex=String(t.zIndex),o.border=`none`,o.margin=`0`,o.padding=`0`,o.display=`block`,a.setAttribute(`poweredAC`,`0.1.7`),d){let e=d.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let s=a.style;s.height=t.billboardHeight+`px`,s.minHeight=t.billboardHeight+`px`,s.background=`transparent`,s.overflow=`visible`,s.position=`relative`,s.width=`100%`,s.padding=`0`,s.margin=`0`,p&&(p.style.overflow=`visible`,p.style.position=`relative`,p.style.backgroundColor=`transparent`,p.style.height=t.billboardHeight+`px`,p.style.minHeight=t.billboardHeight+`px`,p.style.maxHeight=t.billboardHeight+`px`,p.style.padding=`0`,p.style.margin=`0`,p.setAttribute(`data-mf-slot`,``));let l=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,u=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;h=i.createElement(`style`),h.id=`mobilefireplace-pac`,h.textContent=`
21
+ `,e.head.appendChild(t)}}},f={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector(`div[class*="VideoIndexComponent"]`)?324:292,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`);let t=e.querySelector(`[class*="VideoIndexComponent"]`);t&&(e.querySelector(`.breadcrumbs`)?.setAttribute(`style`,`display:none`),t.style.maxWidth=`1190px`,t.style.margin=`auto`,t.style.position=`relative`)}},p=[{site:`https://www.nine.com.au/sport`,config:u},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:u},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:d},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:f},{site:`https://staging.9news`,config:f},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],m=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=T.siteBackgroundColor),i&&(a.setProperty(`--masthead-height`,`250px`),a.height=`var(--masthead-height)`),y(),v(),g(),b(),n.addEventListener(`scroll`,C,{passive:!0}),E=setTimeout(C,50)},h=()=>{let e=null;return e=r.querySelector(`div[id*="billboard"][id*="above"]`),e},g=()=>{let e=null;if(!window.parent)return e;if(e=r.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<3;e++)if(t=t.parentNode,t&&getComputedStyle(t).position===`sticky`){t.setAttribute(`style`,`top: ${T.stickyMargin.offset}px`);break}},_=()=>{let e=n.location.href;for(let t=0;t<p.length;t+=1)if(e.indexOf(p[t].site)>=0)return p[t].config},v=()=>{if(!t)return;let e=t.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},y=()=>{if(!w)return;let e=w.style;w.className=``,e.minHeight=`250px`,e.marginTop=T.adNodeMarginTop+`px`,e.marginBottom=T.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,T.zIndex&&T.zIndex()},b=()=>{o=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`),o&&(o.style.willChange=`clip-path`,o.style.transition=`none`,o.style.webkitBackfaceVisibility=`hidden`,o.style.backfaceVisibility=`hidden`,o.style.transform=`translate3d(0,0,0)`,o.style.backgroundColor=T.siteBackgroundColor,o.style.setProperty(`--mask-inset`,`0px`),o.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},x=0,S=0,C=()=>{let e=n.scrollY,r=e>x,i=e>O?e-T.maskOffset:0,s=Math.abs(i-S);if(o)if(r&&i>S)if(s>100){let e=Math.max(0,i-100);o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${e}px`),o.offsetHeight,o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`)}else o.style.transition=`clip-path 0.3s ease-out`,o.style.setProperty(`--mask-inset`,`${i}px`);else o.style.transition=`none`,o.style.setProperty(`--mask-inset`,`${i}px`);x=e,S=i,e>O?(t.style.setProperty(`--transform-y`,`${-D}px`),a.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>D&&e<=O?(t.style.setProperty(`--transform-y`,`${-D}px`),a.setProperty(`--masthead-height`,`${250+D-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=D&&(t.style.setProperty(`--transform-y`,`${-e}px`),a.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},w=h(),T=_();if(!T)return()=>{};let E=null,D=-T.responsiveScroll+e,O=D+150;return m(),()=>{n.removeEventListener(`scroll`,C),E&&=(clearTimeout(E),null)}},n=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=C.logoSmallLeft,e.style.transform=C.logoSmallTransform,e.style.filter=C.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),w=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!S)return;let e=S.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=C.logoTop,e.left=C.logoLeft,e.transform=C.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,C.zIndex&&C.zIndex()},v=e=>{if(!S)return;let r=S.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=C.logoTop,r.zIndex=`10000`,window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=T?v(`big`):e>T&&(v(e>E?`small`:`big`),E=e<=0?0:e)},b=(e=4)=>{x()||e>1&&setTimeout(()=>{b(e-1)},20)},x=()=>{let e=a.querySelector(`header`);return window.getComputedStyle(e).top===`0px`?(v(`big`),!0):(v(`small`),!1)},S=m(),C=h();if(!C)return()=>{};let w=null,T=e,E=0;return p(),()=>{i.removeEventListener(`scroll`,y),w&&=(clearTimeout(w),null)}},r=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),i=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:r,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o=(()=>{let e=a.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==a.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!o)return()=>{};let s=o.getAttribute(`style`),c=n.getAttribute(`style`),l=[],u={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=o.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,o.setAttribute(`poweredAC`,`0.1.8`),e.clipPath=`inset(-${t.bandHeight-1}px 0 0 0)`,e.overflow=`visible`,e.width=`100vw`,e.maxWidth=`100vw`,e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`,e.marginTop=`0`,e.marginBottom=`0`,e.padding=`0`;let r=o.parentElement;for(let e=0;e<6&&r&&r!==a.body;e++){let t=i.getComputedStyle(r),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(l.push({el:r,prop:`overflow`,val:r.style.overflow}),l.push({el:r,prop:`overflowY`,val:r.style.overflowY}),r.style.overflow=`visible`,r.style.overflowY=`visible`,n=!0);let a=parseFloat(t.height);t.height!==`auto`&&!isNaN(a)&&a<600&&(l.push({el:r,prop:`height`,val:r.style.height}),r.style.height=`auto`,n=!0);let o=t.maxHeight;if(o&&o!==`none`&&(l.push({el:r,prop:`maxHeight`,val:r.style.maxHeight}),r.style.maxHeight=`none`,n=!0),!n&&e>1)break;r=r.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let c=a.createElement(`div`);c.id=`interscroller-top-band-wrapper`,Object.assign(c.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=a.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,u,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),c.appendChild(d),o.insertAdjacentElement(`beforebegin`,c);let f=a.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,u,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=a.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=a.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}o.after(f)})();let d=a.querySelector(`#interscroller-top-band`),f=a.querySelector(`#interscroller-top-band-wrapper`),p=a.querySelector(`#interscroller-bottom-band`),m=a.querySelector(`#interscroller-bottom-label`),h=a.querySelector(`#interscroller-bottom-progress`),g=t.bandHeight,_=t.snapPx,v=!1,y=!1,b=!1,x=!1,S=(t.thresholds||[]).map(()=>!1),C=()=>{if(!p)return;let e=o.getBoundingClientRect(),n=i.innerHeight,r=e.top<=n,a=e.bottom<=n-g,s=x?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=o.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),u=Math.min(1,Math.max(0,(n-e.top)/(c+g))),f=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-g,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!y&&r&&t.onEnter&&t.onEnter(),!b&&a&&t.onExit&&t.onExit(),y=r,b=a,x=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:f,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=S[t],r=l>=e.at;!n&&r?(S[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(S[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(d&&e.top<=E+t.stretchOverlap&&!a){let n=E-e.top;if(!v&&n<=_-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/g;d.style.transition=`none`,d.style.transform=`scaleY(${e})`}else !v&&n>_-t.snapOverlap&&(v=!0,d.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,d.style.transform=`scaleY(1)`)}else d&&e.top>E+t.stretchOverlap&&(v=!1,d.style.transition=`none`,d.style.transform=`scaleY(1)`);let D=i.visualViewport?Math.round(i.innerHeight-(i.visualViewport.offsetTop+i.visualViewport.height)):0;a?(p.style.transition=`none`,p.style.transform=`none`,p.style.position=`sticky`,p.style.top=`0`,p.style.bottom=``,p.style.left=``,p.style.marginLeft=`calc(50% - 50vw)`,p.style.width=`100vw`,m&&(m.textContent=t.labelBottomNow),h&&(h.style.width=`100%`)):s?(m&&(m.textContent=T>0?u<.2?t.labelBottomResume:u<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),h&&(h.style.width=`${Math.round(u*100)}%`),p.style.transition=`transform 0.3s ease`,p.style.transform=`translateY(0)`,p.style.position=`fixed`,p.style.bottom=`${D}px`,p.style.top=``,p.style.left=`0`,p.style.marginLeft=`0`,p.style.width=`100vw`):(p.style.transition=`transform 0.3s ease`,p.style.transform=`translateY(100%)`,p.style.position=`fixed`,p.style.bottom=`${D}px`,p.style.left=`0`,p.style.marginLeft=`0`,p.style.width=`100vw`)};return C(),i.addEventListener(`scroll`,C,{passive:!0}),i.visualViewport?.addEventListener(`resize`,C,{passive:!0}),()=>{i.removeEventListener(`scroll`,C),i.visualViewport?.removeEventListener(`resize`,C),f?f.remove():d&&d.remove(),p&&p.remove(),s?o.setAttribute(`style`,s):o.removeAttribute(`style`),c?n.setAttribute(`style`,c):n.removeAttribute(`style`),l.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},a=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=n.parentElement===a?null:n.parentElement,l=c?c.getAttribute(`style`):null,u=a.parentElement,d=u?r.getComputedStyle(u).paddingTop:null,f=null,p=parseInt(n.getAttribute(`width`),10)||320,m=parseInt(n.getAttribute(`height`),10)||50;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.8`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{f&&=(f.disconnect(),null),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c&&(l?c.setAttribute(`style`,l):c.removeAttribute(`style`)),u&&d&&d!==`0px`&&(u.style.paddingTop=d)}},o=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}}},s=[{site:`https://www.nine.com.au/sport`,config:o.wwos},{site:`https://staging.nine.com.au/sport`,config:o.wwos},{site:`https://www.nine.com.au`,config:o.nine},{site:`https://staging.nine.com.au`,config:o.nine},{site:`https://preview.nine.com.au`,config:o.nine},{site:`https://www.9news`,config:o.nineNews},{site:`https://staging.9news`,config:o.nineNews},{site:`https://honey`,config:o.lifestyle},{site:`https://www.smh`,config:o.smh},{site:`https://www.theage`,config:o.theage},{site:`https://creative-preview-an.com`,config:o.nine}],c=(()=>{let e=r.location.href;for(let t of s)if(e.indexOf(t.site)>=0)return t.config;return o.nine})(),l=n.getAttribute(`style`),u=a.getAttribute(`style`),d=n.parentElement===a?null:n.parentElement,f=d?d.getAttribute(`style`):null,p=a.parentElement,m=p?p.getAttribute(`style`):null,h=null,g=null,_=[],v=()=>{let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(_.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(_.find(t=>t.el===e)||_.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}let o=n.style;if(o.position=`fixed`,o.top=`0`,o.left=`0`,o.width=`100vw`,o.height=`100dvh`,o.zIndex=String(t.zIndex),o.border=`none`,o.margin=`0`,o.padding=`0`,o.display=`block`,a.setAttribute(`poweredAC`,`0.1.8`),d){let e=d.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let s=a.style;s.height=t.billboardHeight+`px`,s.minHeight=t.billboardHeight+`px`,s.background=`transparent`,s.overflow=`visible`,s.position=`relative`,s.width=`100%`,s.padding=`0`,s.margin=`0`,p&&(p.style.overflow=`visible`,p.style.position=`relative`,p.style.backgroundColor=`transparent`,p.style.height=t.billboardHeight+`px`,p.style.minHeight=t.billboardHeight+`px`,p.style.maxHeight=t.billboardHeight+`px`,p.style.padding=`0`,p.style.margin=`0`,p.setAttribute(`data-mf-slot`,``));let l=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,u=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;h=i.createElement(`style`),h.id=`mobilefireplace-pac`,h.textContent=`
26
22
  /* Mobile Fireplace — powered-ad-config */
27
23
  html, body {
28
24
  background-color: transparent !important;
@@ -74,4 +70,4 @@
74
70
  margin: 0 !important;
75
71
  padding: 0 !important;
76
72
  }
77
- `,i.head.appendChild(h),c.setup&&c.setup(i,a)},y=null,b=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,g&&(g.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,g&&(g.style.height=t.billboardHeight+`px`)};v();let x=t.creativeUrl||``;if(x&&x!==`about:blank`)try{let e=new URL(x);e.searchParams.set(`mfRole`,`billboard`),g=i.createElement(`iframe`),g.src=e.href,g.setAttribute(`data-mf-billboard-iframe`,``),g.setAttribute(`scrolling`,`no`),g.setAttribute(`frameborder`,`0`);let n=g.style;n.position=`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=`1`,a.appendChild(g)}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}return r.__mfBridge={adapted:!1,wallpaperWindow:n.contentWindow,billboardIframe:g,billboardWindow:null},g&&g.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=g.contentWindow}catch{}}),y=b,r.addEventListener(`resize`,y),b(),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()}),()=>{y&&=(r.removeEventListener(`resize`,y),null),h&&h.parentNode&&(h.parentNode.removeChild(h),h=null),g&&g.parentNode&&(g.parentNode.removeChild(g),g=null);try{delete r.__mfBridge}catch{}l?n.setAttribute(`style`,l):n.removeAttribute(`style`);for(let{el:e,orig:t}of _)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);_.length=0,u?a.setAttribute(`style`,u):a.removeAttribute(`style`),d&&(f?d.setAttribute(`style`,f):d.removeAttribute(`style`)),p&&(p.removeAttribute(`data-mf-slot`),m?p.setAttribute(`style`,m):p.removeAttribute(`style`))}},s=()=>{};function c({adFormat:r=``,stickyOffset:c=0,logoPosX:l=0,logoHeight:u=0,logoSmallHeight:d=0,...f}={}){typeof s==`function`&&s();let p=()=>{};return r===`fireplace`?p=e(c):r===`fireplace-collant`?p=t(c):r===`logomorph`?p=n(l,u,d):r===`interscroller`?p=i(f):r===`liquidframe`?p=a(f):r===`mobilefireplace`?p=o(f):console.warn(`[powered-ad-config] Unknown ad format:`,r),s=typeof p==`function`?p:()=>{},s}return c.version=`0.1.7`,c});
73
+ `,i.head.appendChild(h),c.setup&&c.setup(i,a)},y=null,b=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);a.style.height=i+`px`,a.style.minHeight=i+`px`,g&&(g.style.height=i+`px`)}else a.style.height=t.billboardHeight+`px`,a.style.minHeight=t.billboardHeight+`px`,g&&(g.style.height=t.billboardHeight+`px`)};v();let x=t.creativeUrl||``;if(x&&x!==`about:blank`)try{let e=new URL(x);e.searchParams.set(`mfRole`,`billboard`),g=i.createElement(`iframe`),g.src=e.href,g.setAttribute(`data-mf-billboard-iframe`,``),g.setAttribute(`scrolling`,`no`),g.setAttribute(`frameborder`,`0`);let n=g.style;n.position=`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=`1`,a.appendChild(g)}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}return r.__mfBridge={adapted:!1,wallpaperWindow:n.contentWindow,billboardIframe:g,billboardWindow:null},g&&g.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=g.contentWindow}catch{}}),y=b,r.addEventListener(`resize`,y),b(),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()}),()=>{y&&=(r.removeEventListener(`resize`,y),null),h&&h.parentNode&&(h.parentNode.removeChild(h),h=null),g&&g.parentNode&&(g.parentNode.removeChild(g),g=null);try{delete r.__mfBridge}catch{}l?n.setAttribute(`style`,l):n.removeAttribute(`style`);for(let{el:e,orig:t}of _)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);_.length=0,u?a.setAttribute(`style`,u):a.removeAttribute(`style`),d&&(f?d.setAttribute(`style`,f):d.removeAttribute(`style`)),p&&(p.removeAttribute(`data-mf-slot`),m?p.setAttribute(`style`,m):p.removeAttribute(`style`))}},s=()=>{};function c({adFormat:r=``,stickyOffset:c=0,logoPosX:l=0,logoHeight:u=0,logoSmallHeight:d=0,...f}={}){typeof s==`function`&&s();let p=()=>{};return r===`fireplace`?p=e(c):r===`fireplace-collant`?p=t(c):r===`logomorph`?p=n(l,u,d):r===`interscroller`?p=i(f):r===`liquidframe`?p=a(f):r===`mobilefireplace`?p=o(f):console.warn(`[powered-ad-config] Unknown ad format:`,r),s=typeof p==`function`?p:()=>{},s}return c.version=`0.1.8`,c});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",
@@ -20,7 +20,8 @@
20
20
  "build": "vite build",
21
21
  "preview": "vite preview",
22
22
  "postpublish": "node scripts/purge-cdn.js",
23
- "purge": "node scripts/purge-cdn.js"
23
+ "purge": "node scripts/purge-cdn.js",
24
+ "verify": "node scripts/purge-cdn.js --verify-only"
24
25
  },
25
26
  "devDependencies": {
26
27
  "vite": "^8.0.3"