powered-ad-config 0.1.99 → 0.1.100

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.
@@ -29,14 +29,40 @@ var e = (e, t, n) => {
29
29
  return n?.tagName?.toLowerCase() === t.toLowerCase() ? n : null;
30
30
  }, c = (e, t) => {
31
31
  e && t && e.setAttribute("poweredAC", t);
32
- }, l = "1300px", u = "#ffffff", d = (d) => {
33
- let f = window.frameElement ? window.frameElement : null;
34
- if (!f) return () => {};
35
- let p = window.parent;
36
- if (!p || p === window) return () => {};
32
+ }, l = (e, t = window) => {
33
+ if (!e || !t) return null;
34
+ for (let n of e.querySelectorAll("iframe")) try {
35
+ if (n.contentWindow === t) return n;
36
+ } catch {}
37
+ return null;
38
+ }, u = (e) => !!(e?.body && (e.querySelector("#app") || e.querySelector("main") || e.querySelector("[id^=\"adspot-mobile-mbanner\"]") || e.querySelector("[data-ad-target=\"page-container\"]"))), d = (e = window) => {
39
+ let t = e, n = e.frameElement ?? null;
40
+ for (; t !== t.parent;) {
41
+ let e = t.parent, r;
42
+ try {
43
+ r = e.document, r.location.href;
44
+ } catch {
45
+ break;
46
+ }
47
+ if (u(r)) {
48
+ let i = n;
49
+ return (!i || i.ownerDocument !== r) && (i = l(r, t)), {
50
+ win: e,
51
+ doc: r,
52
+ iframe: i
53
+ };
54
+ }
55
+ n = l(r, t), t = e;
56
+ }
57
+ return null;
58
+ }, f = "1300px", p = "#ffffff", m = (l) => {
59
+ let u = window.frameElement ? window.frameElement : null;
60
+ if (!u) return () => {};
61
+ let d = window.parent;
62
+ if (!d || d === window) return () => {};
37
63
  let m = null;
38
64
  try {
39
- m = p.document, p.location.href;
65
+ m = d.document, d.location.href;
40
66
  } catch {
41
67
  return () => {};
42
68
  }
@@ -94,7 +120,7 @@ var e = (e, t, n) => {
94
120
  adNodeMarginTop: 0,
95
121
  adNodeMarginBottom: 0,
96
122
  iframeWidth: "100vw",
97
- iframeHeight: l,
123
+ iframeHeight: f,
98
124
  iframeTop: "0",
99
125
  responsiveScroll: -120,
100
126
  xPosHalfpage: 722,
@@ -110,7 +136,7 @@ var e = (e, t, n) => {
110
136
  adNodeMarginTop: 0,
111
137
  adNodeMarginBottom: 0,
112
138
  iframeWidth: "100vw",
113
- iframeHeight: l,
139
+ iframeHeight: f,
114
140
  responsiveScroll: -124,
115
141
  xPosHalfpage: 720,
116
142
  yPosHalfpage: 32,
@@ -164,9 +190,9 @@ var e = (e, t, n) => {
164
190
  }
165
191
  ], O = () => {
166
192
  let e = window.document.getElementById("nineContent");
167
- if (e && (e.style.backgroundColor = L.siteBackgroundColor), N(), M(), j(), p.addEventListener("scroll", I), R = setTimeout(I, 50), L === T || L === E) {
193
+ if (e && (e.style.backgroundColor = L.siteBackgroundColor), N(), M(), j(), d.addEventListener("scroll", I), R = setTimeout(I, 50), L === T || L === E) {
168
194
  let e = L === T || L === E ? x() : null, t = e?.appRoot || S() || m.body, n = e?.desktopHeaderAds || m.querySelector("#desktop-header-ads");
169
- t && p.MutationObserver && (g = new p.MutationObserver(() => {
195
+ t && d.MutationObserver && (g = new d.MutationObserver(() => {
170
196
  F();
171
197
  }), g.observe(t, {
172
198
  childList: !0,
@@ -176,13 +202,13 @@ var e = (e, t, n) => {
176
202
  subtree: !0,
177
203
  attributes: !0,
178
204
  attributeFilter: ["class"]
179
- })), p.addEventListener("resize", F), F();
205
+ })), d.addEventListener("resize", F), F();
180
206
  }
181
207
  }, k = () => {
182
208
  let e = null;
183
209
  return e = m.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
184
210
  }, A = () => {
185
- let e = p.location.href;
211
+ let e = d.location.href;
186
212
  for (let t = 0; t < D.length; t += 1) if (e.indexOf(D[t].site) >= 0) return D[t].config;
187
213
  try {
188
214
  let t = new URL(e), n = t.hostname.toLowerCase(), r = t.pathname.toLowerCase();
@@ -197,30 +223,30 @@ var e = (e, t, n) => {
197
223
  let e = m.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
198
224
  if (!e) return;
199
225
  let t = e;
200
- for (let e = 0; e < 6; e++) if (t = t.parentNode, t && p.getComputedStyle(t).position === "sticky") {
226
+ for (let e = 0; e < 6; e++) if (t = t.parentNode, t && d.getComputedStyle(t).position === "sticky") {
201
227
  t.style.top = `${L.stickyMargin.offset}px`;
202
228
  break;
203
229
  }
204
230
  }, M = () => {
205
- if (!f) return;
206
- let e = f.style;
207
- e.width = L.iframeWidth || "100%", e.height = L.iframeHeight || l, e.backgroundColor = L.iframeBackgroundColor || u, e.position = "fixed", L.iframeTop == null ? e.removeProperty("top") : e.top = L.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
208
- let t = f.parentElement;
231
+ if (!u) return;
232
+ let e = u.style;
233
+ e.width = L.iframeWidth || "100%", e.height = L.iframeHeight || f, e.backgroundColor = L.iframeBackgroundColor || p, e.position = "fixed", L.iframeTop == null ? e.removeProperty("top") : e.top = L.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
234
+ let t = u.parentElement;
209
235
  for (; t && t !== m.body && t !== m.documentElement;) {
210
- let e = p.getComputedStyle(t);
236
+ let e = d.getComputedStyle(t);
211
237
  e.transform && e.transform !== "none" && (t.style.transform = "none"), e.willChange && e.willChange !== "auto" && (t.style.willChange = "auto"), e.contain && e.contain !== "none" && (t.style.contain = "none"), e.filter && e.filter !== "none" && (t.style.filter = "none"), e.perspective && e.perspective !== "none" && (t.style.perspective = "none"), e.overflow !== "visible" && (t.style.overflow = "visible"), t = t.parentElement;
212
238
  }
213
239
  }, N = () => {
214
240
  let e = k();
215
241
  if (!e) return;
216
- c(e, "0.1.99");
242
+ c(e, "0.1.100");
217
243
  let t = e.style;
218
244
  e.className &&= "", t.minHeight = "250px", t.marginTop = L.adNodeMarginTop + "px", t.marginBottom = L.adNodeMarginBottom + "px", t.position = "static", t.display = "block", L.zIndex && L.zIndex();
219
245
  }, P = () => {
220
- let e = p.scrollY, t = f.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
246
+ let e = d.scrollY, t = u.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
221
247
  e >= 0 && e <= z ? (t.transform = `translate(-50%, ${-e}px)`, n.transform = "translateY(0)") : e > z && e <= B ? (t.transform = `translate(-50%, ${-z}px)`, n.transform = `translateY(${z - e}px)`) : e > B && (t.transform = `translate(-50%, ${-z}px)`, n.transform = "translateY(-250px)");
222
248
  }, F = () => {
223
- L !== T && L !== E || h || (h = p.requestAnimationFrame(() => {
249
+ L !== T && L !== E || h || (h = d.requestAnimationFrame(() => {
224
250
  h = null, M(), N(), j(), P();
225
251
  }));
226
252
  }, I = () => {
@@ -229,11 +255,11 @@ var e = (e, t, n) => {
229
255
  k();
230
256
  let L = A();
231
257
  if (!L) return () => {};
232
- let R = null, z = d, B = z + 250;
258
+ let R = null, z = l, B = z + 250;
233
259
  return O(), () => {
234
- p.removeEventListener("scroll", I), p.removeEventListener("resize", F), g &&= (g.disconnect(), null), h &&= (p.cancelAnimationFrame(h), null), R &&= (clearTimeout(R), null);
260
+ d.removeEventListener("scroll", I), d.removeEventListener("resize", F), g &&= (g.disconnect(), null), h &&= (d.cancelAnimationFrame(h), null), R &&= (clearTimeout(R), null);
235
261
  };
236
- }, f = (o) => {
262
+ }, h = (o) => {
237
263
  let c = window.frameElement ? window.frameElement : null;
238
264
  if (!c) return () => {};
239
265
  let l = window.parent;
@@ -396,39 +422,39 @@ var e = (e, t, n) => {
396
422
  return C(), () => {
397
423
  l.removeEventListener("scroll", N), I &&= (clearTimeout(I), null);
398
424
  };
399
- }, p = 866, m = 68, h = 16, g = ":scope > header h1, :scope > header h2, :scope > header h3", _ = "h1, h2, h3", v = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", y = "adspot-desktop-takeover-2-above", b = -24, x = -24, S = [
425
+ }, g = 866, _ = 68, v = 16, y = ":scope > header h1, :scope > header h2, :scope > header h3", b = "h1, h2, h3", x = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", S = "adspot-desktop-takeover-2-above", C = -24, w = -24, T = [
400
426
  "www.nine.com.au",
401
427
  "staging.nine.com.au",
402
428
  "preview.nine.com.au",
403
429
  "render-web-nine-staging-v1.ffxblue.com.au",
404
430
  "render-web-nine-production-v1.ffxblue.com.au"
405
- ], C = [{
406
- hostnames: S,
431
+ ], E = [{
432
+ hostnames: T,
407
433
  path: "/sport",
408
434
  headingText: "Sport",
409
- slotId: y
410
- }], w = new Set(["localhost", "127.0.0.1"]), T = "__poweredAdConfigDynamicHeadingActive", E = "data-pac-dynamicheading-owner", D = "data-pac-reparented", O = (e, t) => {
435
+ slotId: S
436
+ }], D = new Set(["localhost", "127.0.0.1"]), O = "__poweredAdConfigDynamicHeadingActive", k = "data-pac-dynamicheading-owner", A = "data-pac-reparented", j = (e, t) => {
411
437
  if (typeof e == "number" && Number.isFinite(e)) return `${e}px`;
412
438
  if (typeof e == "string") {
413
439
  let n = e.trim();
414
440
  return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : `${t}px`;
415
441
  }
416
442
  return `${t}px`;
417
- }, k = (e) => {
443
+ }, M = (e) => {
418
444
  if (!e || typeof e != "object") return null;
419
445
  let t = typeof e.headingText == "string" ? e.headingText.trim() : "", n = typeof e.path == "string" ? e.path.trim().toLowerCase() : "", r = typeof e.pathPrefix == "string" ? e.pathPrefix.trim().toLowerCase() : "", i = Array.isArray(e.hostnames) ? e.hostnames.map((e) => String(e).trim().toLowerCase()).filter(Boolean) : [];
420
446
  return !t || !n && !r ? null : {
421
447
  headingText: t,
422
448
  path: n || null,
423
449
  pathPrefix: r || null,
424
- slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : y,
425
- hostnames: i.length ? i : S
450
+ slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : S,
451
+ hostnames: i.length ? i : T
426
452
  };
427
- }, A = (e) => {
428
- if (!Array.isArray(e) || e.length === 0) return C;
429
- let t = e.map(k).filter(Boolean);
430
- return t.length ? t : C;
431
- }, j = ({ offsetTop: e = b, offsetLeft: t = x, width: n = p, height: i = m, pageTargets: a = C } = {}) => {
453
+ }, N = (e) => {
454
+ if (!Array.isArray(e) || e.length === 0) return E;
455
+ let t = e.map(M).filter(Boolean);
456
+ return t.length ? t : E;
457
+ }, P = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E } = {}) => {
432
458
  let o = window.frameElement || null;
433
459
  if (!o) return () => {};
434
460
  let s = window.parent;
@@ -439,7 +465,7 @@ var e = (e, t, n) => {
439
465
  } catch {
440
466
  return () => {};
441
467
  }
442
- let l = s[T];
468
+ let l = s[O];
443
469
  if (l?.iframe === o && typeof l.cleanup == "function") return l.cleanup;
444
470
  if (l?.iframe?.isConnected && typeof l?.cleanup == "function") return () => {};
445
471
  typeof l?.cleanup == "function" && l.cleanup();
@@ -448,11 +474,11 @@ var e = (e, t, n) => {
448
474
  }, f = () => {
449
475
  try {
450
476
  let e = window.location.hostname.toLowerCase();
451
- return w.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
477
+ return D.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
452
478
  } catch {
453
479
  return !1;
454
480
  }
455
- }, y = (e = o.parentElement) => {
481
+ }, p = (e = o.parentElement) => {
456
482
  let t = e;
457
483
  for (; t && t !== c.body;) {
458
484
  let e = t.id || "", n = t.getAttribute?.("data-testid") || "", r = t.getAttribute?.("type") || "";
@@ -460,7 +486,7 @@ var e = (e, t, n) => {
460
486
  t = t.parentElement;
461
487
  }
462
488
  return o.parentElement;
463
- }, S = () => {
489
+ }, m = () => {
464
490
  try {
465
491
  let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
466
492
  return B.find((e) => {
@@ -471,20 +497,20 @@ var e = (e, t, n) => {
471
497
  return null;
472
498
  }
473
499
  return null;
474
- }, k = () => {
500
+ }, h = () => {
475
501
  let e = r(c, "app") || c.getElementById("app") || c, t = r(e, "page-container") || e;
476
502
  return r(r(t, "container") || t, "main") || r(e, "main") || c.querySelector("#app main") || null;
477
- }, j = (e) => {
503
+ }, S = (e) => {
478
504
  if (!e || !e.isConnected) return !1;
479
505
  let t = e.getBoundingClientRect();
480
506
  if (t.width <= 0 || t.height <= 0) return !1;
481
507
  let n = s.getComputedStyle(e);
482
508
  return n.display !== "none" && n.visibility !== "hidden";
483
- }, M = () => {
484
- let e = k(), t = e ? [...e.querySelectorAll(g), ...e.querySelectorAll(_)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(v));
485
- return Array.from(new Set([...t, ...n])).filter(j);
486
- }, N = (e) => {
487
- let t = M();
509
+ }, T = () => {
510
+ let e = h(), t = e ? [...e.querySelectorAll(y), ...e.querySelectorAll(b)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(x));
511
+ return Array.from(new Set([...t, ...n])).filter(S);
512
+ }, M = (e) => {
513
+ let t = T();
488
514
  if (!t.length) return null;
489
515
  let n = typeof e == "string" ? e.trim().toLowerCase() : "";
490
516
  if (n) {
@@ -494,13 +520,13 @@ var e = (e, t, n) => {
494
520
  return t.find((e) => e.tagName === "H1") || t[0] || null;
495
521
  }, P = null, F = null;
496
522
  f();
497
- let I = O(e, b), L = O(t, x), R = O(n, p), z = O(i, m), B = A(a), V = S();
523
+ let I = j(e, C), L = j(t, w), R = j(n, g), z = j(i, _), B = N(a), V = m();
498
524
  if (!V) return () => {};
499
- let H = y((V.slotId ? c.getElementById(V.slotId) : null) || o.parentElement);
525
+ let H = p((V.slotId ? c.getElementById(V.slotId) : null) || o.parentElement);
500
526
  if (!H) return () => {};
501
- let U = H.getAttribute(E);
502
- if (U && U !== u) return () => {};
503
- let ee = {
527
+ let ee = H.getAttribute(k);
528
+ if (ee && ee !== u) return () => {};
529
+ let U = {
504
530
  width: H.style.width,
505
531
  maxWidth: H.style.maxWidth,
506
532
  minWidth: H.style.minWidth,
@@ -528,21 +554,21 @@ var e = (e, t, n) => {
528
554
  border: o.style.border,
529
555
  position: o.style.position,
530
556
  pointerEvents: o.style.pointerEvents
531
- }, G = [], K = parseFloat(z) || m, te = parseFloat(I) || 0, ne = parseFloat(L) || 0, re = () => {
557
+ }, te = [], G = parseFloat(z) || _, K = parseFloat(I) || 0, q = parseFloat(L) || 0, ne = () => {
532
558
  let e = H.parentElement;
533
- for (; e && e !== c.body;) G.push({
559
+ for (; e && e !== c.body;) te.push({
534
560
  element: e,
535
561
  overflow: e.style.overflow
536
562
  }), d(e, "overflow", "visible"), e = e.parentElement;
537
- }, ie = () => {
538
- d(H, "width", R), d(H, "maxWidth", R), d(H, "minWidth", R), d(H, "height", z), d(H, "minHeight", z), d(H, "display", "block"), d(H, "overflow", "hidden"), d(H, "pointerEvents", "none"), d(H, "zIndex", "1080"), H.setAttribute(E, u), d(o, "width", R), d(o, "height", z), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
539
- }, ae = {
563
+ }, re = () => {
564
+ d(H, "width", R), d(H, "maxWidth", R), d(H, "minWidth", R), d(H, "height", z), d(H, "minHeight", z), d(H, "display", "block"), d(H, "overflow", "hidden"), d(H, "pointerEvents", "none"), d(H, "zIndex", "1080"), H.setAttribute(k, u), d(o, "width", R), d(o, "height", z), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
565
+ }, ie = {
540
566
  element: null,
541
567
  position: ""
542
- }, q = () => {
568
+ }, J = () => {
543
569
  let e = H.parentElement;
544
- e && s.getComputedStyle(e).position === "static" && (ae.element = e, ae.position = e.style.position, d(e, "position", "relative")), d(H, "position", "absolute"), d(H, "top", `${te}px`), d(H, "left", `${ne}px`), d(H, "right", "auto"), d(H, "marginTop", "0px"), d(H, "marginBottom", `${h}px`), d(H, "marginLeft", "0px"), d(H, "marginRight", "0px"), d(H, "transform", "");
545
- }, oe = (e) => {
570
+ e && s.getComputedStyle(e).position === "static" && (ie.element = e, ie.position = e.style.position, d(e, "position", "relative")), d(H, "position", "absolute"), d(H, "top", `${K}px`), d(H, "left", `${q}px`), d(H, "right", "auto"), d(H, "marginTop", "0px"), d(H, "marginBottom", `${v}px`), d(H, "marginLeft", "0px"), d(H, "marginRight", "0px"), d(H, "transform", "");
571
+ }, ae = (e) => {
546
572
  let t = null;
547
573
  try {
548
574
  let e = o.contentDocument;
@@ -558,54 +584,54 @@ var e = (e, t, n) => {
558
584
  return !1;
559
585
  }
560
586
  if (!t) return !1;
561
- o.setAttribute(D, "1");
587
+ o.setAttribute(A, "1");
562
588
  try {
563
589
  e.parentNode?.insertBefore(H, e);
564
590
  } catch {
565
- return o.removeAttribute(D), !1;
591
+ return o.removeAttribute(A), !1;
566
592
  }
567
- re(), ie(), q();
593
+ ne(), re(), J();
568
594
  try {
569
595
  o.srcdoc = t;
570
596
  } catch {
571
597
  return !1;
572
598
  }
573
599
  return !0;
574
- }, se = () => {
600
+ }, oe = () => {
575
601
  d(H, "position", "fixed"), d(H, "marginTop", "0px"), d(H, "marginBottom", "0px"), d(H, "marginLeft", "0px"), d(H, "marginRight", "0px"), d(H, "transform", "");
576
- }, ce = () => {
602
+ }, se = () => {
577
603
  d(H, "display", "none");
578
- }, le = () => {
604
+ }, ce = () => {
579
605
  d(H, "display", "block"), d(H, "overflow", "hidden");
580
- }, J = null, Y = () => {
581
- if ((!J || !J.isConnected) && (J = N(V.headingText)), !J) return;
582
- let e = J.getBoundingClientRect(), t = e.top - K - h + te, n = e.left + ne;
606
+ }, Y = null, X = () => {
607
+ if ((!Y || !Y.isConnected) && (Y = M(V.headingText)), !Y) return;
608
+ let e = Y.getBoundingClientRect(), t = e.top - G - v + K, n = e.left + q;
583
609
  d(H, "top", `${t}px`), d(H, "left", `${n}px`), d(H, "right", "auto");
584
- }, X = null, Z = null, ue = !1, de = (e = 12) => {
585
- if (J = N(V.headingText), !J) {
586
- e > 1 && (F = s.setTimeout(() => de(e - 1), 250));
610
+ }, Z = null, Q = null, le = !1, ue = (e = 12) => {
611
+ if (Y = M(V.headingText), !Y) {
612
+ e > 1 && (F = s.setTimeout(() => ue(e - 1), 250));
587
613
  return;
588
614
  }
589
- oe(J) || (ue = !0, re(), ie(), se(), Y(), X = () => Y(), Z = () => Y(), s.addEventListener("scroll", X, { passive: !0 }), s.addEventListener("resize", Z));
615
+ ae(Y) || (le = !0, ne(), re(), oe(), X(), Z = () => X(), Q = () => X(), s.addEventListener("scroll", Z, { passive: !0 }), s.addEventListener("resize", Q));
590
616
  };
591
- de();
592
- let fe = () => {
593
- F &&= (s.clearTimeout(F), null), P &&= (s.clearTimeout(P), null), X &&= (s.removeEventListener("scroll", X), null), Z &&= (s.removeEventListener("resize", Z), null), H.getAttribute(E) === u && H.removeAttribute(E), ue && (Object.entries(ee).forEach(([e, t]) => {
617
+ ue();
618
+ let de = () => {
619
+ F &&= (s.clearTimeout(F), null), P &&= (s.clearTimeout(P), null), Z &&= (s.removeEventListener("scroll", Z), null), Q &&= (s.removeEventListener("resize", Q), null), H.getAttribute(k) === u && H.removeAttribute(k), le && (Object.entries(U).forEach(([e, t]) => {
594
620
  H.style[e] = t;
595
621
  }), Object.entries(W).forEach(([e, t]) => {
596
622
  o.style[e] = t;
597
- }), G.forEach(({ element: e, overflow: t }) => {
623
+ }), te.forEach(({ element: e, overflow: t }) => {
598
624
  e.style.overflow = t;
599
- })), s[T]?.instanceId === u && delete s[T];
625
+ })), s[O]?.instanceId === u && delete s[O];
600
626
  };
601
- return s[T] = {
627
+ return s[O] = {
602
628
  instanceId: u,
603
629
  iframe: o,
604
- cleanup: fe,
605
- show: le,
606
- hide: ce
607
- }, fe;
608
- }, M = (e, t, n) => {
630
+ cleanup: de,
631
+ show: ce,
632
+ hide: se
633
+ }, de;
634
+ }, F = (e, t, n) => {
609
635
  let r = window.frameElement ? window.frameElement : null;
610
636
  if (!r) return () => {};
611
637
  let i = window.parent;
@@ -850,11 +876,11 @@ var e = (e, t, n) => {
850
876
  return p(), () => {
851
877
  i.removeEventListener("scroll", y), w &&= (clearTimeout(w), null);
852
878
  };
853
- }, N = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
879
+ }, I = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
854
880
  if (e === 0 || e === 1) return e;
855
881
  let t = 2 * Math.PI / 3;
856
882
  return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
857
- }), P = (e = {}) => {
883
+ }), L = (e = {}) => {
858
884
  let t = {
859
885
  adScrollHeight: "300vh",
860
886
  bandHeight: 24,
@@ -877,7 +903,7 @@ var e = (e, t, n) => {
877
903
  snapOverlap: 2,
878
904
  stretchOverlap: 20,
879
905
  snapDuration: .9,
880
- snapEase: N,
906
+ snapEase: I,
881
907
  onEnter: null,
882
908
  onExit: null,
883
909
  onProgress: null,
@@ -921,7 +947,7 @@ var e = (e, t, n) => {
921
947
  };
922
948
  (() => {
923
949
  let e = a.style;
924
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.99"), 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";
950
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.100"), 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";
925
951
  let o = a.parentElement;
926
952
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
927
953
  let t = r.getComputedStyle(o), n = !1;
@@ -1026,7 +1052,7 @@ var e = (e, t, n) => {
1026
1052
  e.style[t] = n || "";
1027
1053
  });
1028
1054
  };
1029
- }, F = (e = {}) => {
1055
+ }, R = (e = {}) => {
1030
1056
  let t = {
1031
1057
  adaptToWidth: "100%",
1032
1058
  maxWidth: "400px",
@@ -1059,7 +1085,7 @@ var e = (e, t, n) => {
1059
1085
  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;
1060
1086
  return (() => {
1061
1087
  let e = a.style;
1062
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.99"), c) {
1088
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.100"), c) {
1063
1089
  let e = c.style;
1064
1090
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1065
1091
  }
@@ -1074,7 +1100,7 @@ var e = (e, t, n) => {
1074
1100
  })(), () => {
1075
1101
  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);
1076
1102
  };
1077
- }, I = (e = {}) => {
1103
+ }, z = (e = {}) => {
1078
1104
  let t = {
1079
1105
  billboardHeight: 150,
1080
1106
  sideStripWidth: 10,
@@ -1252,12 +1278,12 @@ var e = (e, t, n) => {
1252
1278
  })(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = a.closest("[data-ad-target=\"header-ad-mobile\"]"), x = !!(y && b && y === b), S = x ? r.getComputedStyle(y).marginTop : "", C = y ? y.getAttribute("style") : null, w = s ? s.getAttribute("style") : null, T = o ? o.getAttribute("style") : null, E = o ? o.querySelector("header") : null, D = E ? E.getAttribute("style") : null, O = E ? E.querySelector(".sc-5cbbddda-1") : null, k = O ? O.getAttribute("style") : null, A = i.querySelector("footer"), j = A ? A.getAttribute("style") : null, M = o ? Array.from(o.children).map((e) => ({
1253
1279
  el: e,
1254
1280
  orig: e.getAttribute("style")
1255
- })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, U = null, ee = null, W = null, G = null, K = null, te = null, ne = [], re = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ie = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, ae = !!(t.sticky && (re || ie)), q = "pending", oe = 0, se = 0, ce = null, le = null, J = null, Y = null, X = null, Z = null, ue = [], de = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, fe = {
1281
+ })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, ee = null, U = null, W = null, te = null, G = null, K = null, q = [], ne = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, re = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, ie = !!(t.sticky && (ne || re)), J = "pending", ae = 0, oe = 0, se = null, ce = null, Y = null, X = null, Z = null, Q = null, le = [], ue = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, de = {
1256
1282
  FLOW_SYNCED_BODY: "flowSyncedBody",
1257
1283
  SPLIT_IN_FLOW: "splitInFlow",
1258
1284
  IN_FLOW: "inFlow"
1259
1285
  };
1260
- K = (() => {
1286
+ G = (() => {
1261
1287
  let e = n.parentElement;
1262
1288
  for (; e && e !== i.body && e !== i.documentElement;) {
1263
1289
  let t = r.getComputedStyle(e);
@@ -1265,25 +1291,25 @@ var e = (e, t, n) => {
1265
1291
  e = e.parentElement;
1266
1292
  }
1267
1293
  return null;
1268
- })(), te = K ? K.getAttribute("style") : null;
1269
- let pe = !!(o && f !== u.afr && (K || p)), me = f === u.afr || x ? fe.FLOW_SYNCED_BODY : pe ? fe.SPLIT_IN_FLOW : fe.IN_FLOW, Q = me === fe.FLOW_SYNCED_BODY, he = (e) => {
1270
- if (!e || e === ee || e === y || e === a) return !1;
1294
+ })(), K = G ? G.getAttribute("style") : null;
1295
+ let fe = !!(o && f !== u.afr && (G || p)), pe = f === u.afr || x ? de.FLOW_SYNCED_BODY : fe ? de.SPLIT_IN_FLOW : de.IN_FLOW, $ = pe === de.FLOW_SYNCED_BODY, me = (e) => {
1296
+ if (!e || e === U || e === y || e === a) return !1;
1271
1297
  let t = e.firstElementChild;
1272
1298
  if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("[id^=\"adspot-mobile-mbanner-\"], iframe, [data-mf-slot], .adWrapper")) return !1;
1273
1299
  let n = r.getComputedStyle(e);
1274
1300
  return n.position === "fixed" || n.position === "sticky";
1275
- }, ge = (e) => {
1276
- !e?.parentElement || ne.some((t) => t.shell === e) || (ne.push({
1301
+ }, he = (e) => {
1302
+ !e?.parentElement || q.some((t) => t.shell === e) || (q.push({
1277
1303
  shell: e,
1278
1304
  parent: e.parentElement,
1279
1305
  nextSibling: e.nextSibling
1280
1306
  }), e.remove());
1281
- }, _e = () => {
1307
+ }, ge = () => {
1282
1308
  for (let e of i.querySelectorAll(".container")) {
1283
1309
  let t = e.parentElement;
1284
- he(t) && ge(t);
1310
+ me(t) && he(t);
1285
1311
  }
1286
- }, ve = (e) => {
1312
+ }, _e = (e) => {
1287
1313
  let t = e?.parentElement;
1288
1314
  for (; t && t !== i.body && t !== i.documentElement;) {
1289
1315
  let e = r.getComputedStyle(t);
@@ -1292,10 +1318,10 @@ var e = (e, t, n) => {
1292
1318
  orig: t.getAttribute("style")
1293
1319
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1294
1320
  }
1295
- }, ye = () => {
1321
+ }, ve = () => {
1296
1322
  let e = i.createElement("div");
1297
1323
  return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
1298
- }, be = () => {
1324
+ }, ye = () => {
1299
1325
  if (!s || f !== u.wwos) return null;
1300
1326
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1301
1327
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1308,7 +1334,7 @@ var e = (e, t, n) => {
1308
1334
  };
1309
1335
  }).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
1310
1336
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1311
- }, $ = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1337
+ }, be = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1312
1338
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1313
1339
  return {
1314
1340
  el: e,
@@ -1321,7 +1347,7 @@ var e = (e, t, n) => {
1321
1347
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1322
1348
  }, Ce = () => {
1323
1349
  let e = Se();
1324
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, de || t.stickyTop);
1350
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, ue || t.stickyTop);
1325
1351
  }, we = () => {
1326
1352
  let e = Se();
1327
1353
  return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
@@ -1333,92 +1359,92 @@ var e = (e, t, n) => {
1333
1359
  remainingMs: Math.max(0, Math.round(n))
1334
1360
  }, "*");
1335
1361
  }, Ee = (e) => {
1336
- !e || ue.some((t) => t.el === e) || ue.push({
1362
+ !e || le.some((t) => t.el === e) || le.push({
1337
1363
  el: e,
1338
1364
  value: e.style.getPropertyValue("z-index"),
1339
1365
  priority: e.style.getPropertyPriority("z-index")
1340
1366
  });
1341
1367
  }, De = (e) => {
1342
- let t = new Set([$()].filter(Boolean));
1343
- if (f === u.afr || K || p) {
1368
+ let t = new Set([be()].filter(Boolean));
1369
+ if (f === u.afr || G || p) {
1344
1370
  [
1345
1371
  a,
1346
1372
  y,
1347
1373
  c
1348
1374
  ].filter(Boolean).forEach((e) => t.add(e));
1349
- let e = $()?.parentElement;
1375
+ let e = be()?.parentElement;
1350
1376
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1351
1377
  }
1352
1378
  for (let n of t) Ee(n), n.style.setProperty("z-index", String(e), "important");
1353
- }, Oe = () => Q && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), ke = () => {
1354
- if (!Q || !R) return;
1379
+ }, Oe = () => $ && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || be(), ke = () => {
1380
+ if (!$ || !R) return;
1355
1381
  let e = R.style;
1356
1382
  e.left = "0px", e.width = "100vw";
1357
1383
  }, Ae = () => {
1358
- if (!Q || !R || q === "active") return;
1384
+ if (!$ || !R || J === "active") return;
1359
1385
  let e = Oe();
1360
1386
  if (!e) return;
1361
1387
  let t = e.getBoundingClientRect(), n = R.style;
1362
1388
  n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, ke(), n.setProperty("z-index", "6", "important"), R.removeAttribute("data-mf-sticky-active");
1363
1389
  }, je = () => {
1364
- Q && (Ae(), J && r.cancelAnimationFrame(J), J = r.requestAnimationFrame(() => {
1365
- J = null, Ae();
1366
- }), Y && r.clearTimeout(Y), Y = r.setTimeout(() => {
1390
+ $ && (Ae(), Y && r.cancelAnimationFrame(Y), Y = r.requestAnimationFrame(() => {
1367
1391
  Y = null, Ae();
1392
+ }), X && r.clearTimeout(X), X = r.setTimeout(() => {
1393
+ X = null, Ae();
1368
1394
  }, 350));
1369
1395
  }, Me = () => {
1370
- for (let e = ue.length - 1; e >= 0; --e) {
1371
- let { el: t, value: n, priority: r } = ue[e];
1396
+ for (let e = le.length - 1; e >= 0; --e) {
1397
+ let { el: t, value: n, priority: r } = le[e];
1372
1398
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1373
1399
  }
1374
- ue.length = 0;
1400
+ le.length = 0;
1375
1401
  }, Ne = () => {
1376
1402
  if (!R) return;
1377
- ve($());
1378
- let e = $().getBoundingClientRect(), t = we();
1403
+ _e(be());
1404
+ let e = be().getBoundingClientRect(), t = we();
1379
1405
  De(t);
1380
1406
  let n = R.style;
1381
- n.position = "fixed", n.top = `${Ce()}px`, Q ? ke() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), R.setAttribute("data-mf-sticky-active", "");
1407
+ n.position = "fixed", n.top = `${Ce()}px`, $ ? ke() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), R.setAttribute("data-mf-sticky-active", "");
1382
1408
  }, Pe = () => {
1383
1409
  if (!R) return;
1384
- if (Q) {
1410
+ if ($) {
1385
1411
  je(), Me();
1386
1412
  return;
1387
1413
  }
1388
1414
  let e = R.style;
1389
1415
  e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Me(), R.removeAttribute("data-mf-sticky-active");
1390
1416
  }, Fe = () => {
1391
- le &&= (r.cancelAnimationFrame(le), null);
1417
+ ce &&= (r.cancelAnimationFrame(ce), null);
1392
1418
  }, Ie = () => {
1393
- if (ce === null) {
1394
- let e = $().getBoundingClientRect();
1395
- ce = Math.max(0, r.scrollY + e.top - Ce());
1419
+ if (se === null) {
1420
+ let e = be().getBoundingClientRect();
1421
+ se = Math.max(0, r.scrollY + e.top - Ce());
1396
1422
  }
1397
- return ce;
1398
- }, Le = () => se + (q === "active" ? Math.max(0, r.performance.now() - oe) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1399
- let e = re ? Le() / t.stickyDurationMs : 0, n = ie ? Re() / t.stickyScrollDistance : 0;
1423
+ return se;
1424
+ }, Le = () => oe + (J === "active" ? Math.max(0, r.performance.now() - ae) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1425
+ let e = ne ? Le() / t.stickyDurationMs : 0, n = re ? Re() / t.stickyScrollDistance : 0;
1400
1426
  return Math.max(e, n);
1401
- }, Be = () => re ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1402
- q === "active" && (se = Le(), q = "paused", Fe(), Pe(), Te({
1427
+ }, Be = () => ne ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1428
+ J === "active" && (oe = Le(), J = "paused", Fe(), Pe(), Te({
1403
1429
  active: !1,
1404
1430
  progress: ze(),
1405
1431
  remainingMs: Be()
1406
1432
  }));
1407
1433
  }, Ue = () => {
1408
- q !== "paused" || Ve() || (q = "active", oe = r.performance.now(), Ne(), Ge());
1434
+ J !== "paused" || Ve() || (J = "active", ae = r.performance.now(), Ne(), Ge());
1409
1435
  }, We = () => {
1410
- q !== "active" && q !== "paused" || (q === "active" && (se = Le()), q = "released", Fe(), Pe(), Te({
1436
+ J !== "active" && J !== "paused" || (J === "active" && (oe = Le()), J = "released", Fe(), Pe(), Te({
1411
1437
  active: !1,
1412
1438
  progress: 1,
1413
1439
  remainingMs: 0
1414
1440
  }));
1415
1441
  }, Ge = () => {
1416
- if (q !== "active") return;
1442
+ if (J !== "active") return;
1417
1443
  if (Ve()) {
1418
1444
  He();
1419
1445
  return;
1420
1446
  }
1421
- let e = Le(), n = Re(), i = re ? e / t.stickyDurationMs : 0, a = ie ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = re ? t.stickyDurationMs - e : 0;
1447
+ let e = Le(), n = Re(), i = ne ? e / t.stickyDurationMs : 0, a = re ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = ne ? t.stickyDurationMs - e : 0;
1422
1448
  if (Ne(), Te({
1423
1449
  active: !0,
1424
1450
  progress: o,
@@ -1427,21 +1453,21 @@ var e = (e, t, n) => {
1427
1453
  We();
1428
1454
  return;
1429
1455
  }
1430
- le = r.requestAnimationFrame(Ge);
1456
+ ce = r.requestAnimationFrame(Ge);
1431
1457
  }, Ke = () => {
1432
- if (!ae || q !== "pending" || !R) return;
1433
- let e = $().getBoundingClientRect();
1434
- ce = Math.max(0, r.scrollY + e.top - Ce()), se = 0, q = "active", oe = r.performance.now(), Ne(), Ge();
1458
+ if (!ie || J !== "pending" || !R) return;
1459
+ let e = be().getBoundingClientRect();
1460
+ se = Math.max(0, r.scrollY + e.top - Ce()), oe = 0, J = "active", ae = r.performance.now(), Ne(), Ge();
1435
1461
  }, qe = () => {
1436
- !ae || q !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= Ce() && Ke();
1462
+ !ie || J !== "pending" || !R || r.scrollY <= 0 || be().getBoundingClientRect().top <= Ce() && Ke();
1437
1463
  }, Je = () => {
1438
- q === "pending" ? qe() : q === "active" && Ve() ? He() : q === "paused" && Ue(), q !== "active" && je();
1464
+ J === "pending" ? qe() : J === "active" && Ve() ? He() : J === "paused" && Ue(), J !== "active" && je();
1439
1465
  }, Ye = () => {
1440
- Je(), Z && r.cancelAnimationFrame(Z), Z = r.requestAnimationFrame(() => {
1441
- Z = null, Je();
1466
+ Je(), Q && r.cancelAnimationFrame(Q), Q = r.requestAnimationFrame(() => {
1467
+ Q = null, Je();
1442
1468
  });
1443
1469
  }, Xe = () => {
1444
- _e();
1470
+ ge();
1445
1471
  let e = n.parentElement;
1446
1472
  for (; e && e !== i.body && e !== i.documentElement;) {
1447
1473
  let t = r.getComputedStyle(e);
@@ -1462,7 +1488,7 @@ var e = (e, t, n) => {
1462
1488
  } catch (e) {
1463
1489
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1464
1490
  }
1465
- if (a.setAttribute("poweredAC", "0.1.99"), _) {
1491
+ if (a.setAttribute("poweredAC", "0.1.100"), _) {
1466
1492
  let e = _.style;
1467
1493
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1468
1494
  }
@@ -1723,34 +1749,34 @@ var e = (e, t, n) => {
1723
1749
  padding: 0 !important;
1724
1750
  }
1725
1751
  `, i.head.appendChild(L), f.setup && f.setup(i, a), f === u.wwos) {
1726
- let e = be();
1752
+ let e = ye();
1727
1753
  e && (N = e.el, P = N.getAttribute("style"), F = e.list, I = F ? F.getAttribute("style") : null, N.style.marginLeft = "10px", N.style.marginRight = "10px", N.style.width = "calc(100% - 20px)", F && (F.style.width = "100%"));
1728
1754
  }
1729
- if (me === fe.SPLIT_IN_FLOW) {
1730
- if (K && (ee = c || y), l && l !== "about:blank") {
1755
+ if (pe === de.SPLIT_IN_FLOW) {
1756
+ if (G && (U = c || y), l && l !== "about:blank") {
1731
1757
  let e = new URL(l);
1732
1758
  e.searchParams.set("mfRole", "wallpaper"), z = i.createElement("iframe"), z.src = e.href, z.setAttribute("data-mf-wallpaper-iframe", ""), z.setAttribute("scrolling", "no"), z.setAttribute("frameborder", "0");
1733
1759
  let n = z.style;
1734
1760
  n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(z, i.body.firstChild);
1735
1761
  }
1736
- n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", B = ye(), o.parentElement.insertBefore(B, o), K ? (K.style.position = "static", K.style.inset = "auto", K.style.height = "0", K.style.minHeight = "0", K.style.maxHeight = "0", K.style.overflow = "hidden", K.style.backgroundColor = "transparent", K.style.boxShadow = "none", K.style.border = "0", K.style.outline = "0", K.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), p.height = "0", p.minHeight = "0", p.width = "0", p.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1762
+ n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", B = ve(), o.parentElement.insertBefore(B, o), G ? (G.style.position = "static", G.style.inset = "auto", G.style.height = "0", G.style.minHeight = "0", G.style.maxHeight = "0", G.style.overflow = "hidden", G.style.backgroundColor = "transparent", G.style.boxShadow = "none", G.style.border = "0", G.style.outline = "0", G.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), p.height = "0", p.minHeight = "0", p.width = "0", p.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1737
1763
  for (let { el: e } of M) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1738
- E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), A && (A.style.marginLeft = "14px", A.style.marginRight = "14px", A.style.position = "relative", A.style.zIndex = "2"), _e();
1764
+ E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), A && (A.style.marginLeft = "14px", A.style.marginRight = "14px", A.style.position = "relative", A.style.zIndex = "2"), ge();
1739
1765
  }
1740
- B || (B = ye(), a.appendChild(B));
1766
+ B || (B = ve(), a.appendChild(B));
1741
1767
  }, Ze = null, Qe = null, $e = !1, et = () => {
1742
1768
  let e = r.innerWidth, n = r.innerHeight;
1743
1769
  if (e > n) {
1744
1770
  let r = n / e, i = Math.round(t.billboardHeight * r);
1745
1771
  a.style.height = i + "px", a.style.minHeight = i + "px", B && (B.style.height = i + "px", B.style.minHeight = i + "px", B.style.maxHeight = i + "px"), R && (R.style.height = i + "px");
1746
1772
  } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", B && (B.style.height = t.billboardHeight + "px", B.style.minHeight = t.billboardHeight + "px", B.style.maxHeight = t.billboardHeight + "px"), R && (R.style.height = t.billboardHeight + "px");
1747
- q === "active" ? Ne() : je();
1773
+ J === "active" ? Ne() : je();
1748
1774
  };
1749
1775
  if (Xe(), l && l !== "about:blank") try {
1750
1776
  let e = new URL(l);
1751
1777
  e.searchParams.set("mfRole", "billboard"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-billboard-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
1752
1778
  let n = R.style;
1753
- n.position = Q ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Q ? "6" : "1", Q ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), ae && (X = Ye, r.addEventListener("scroll", X, { passive: !0 }), i.addEventListener("scroll", X, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", X, { passive: !0 }));
1779
+ n.position = $ ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = $ ? "6" : "1", $ ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), ie && (Z = Ye, r.addEventListener("scroll", Z, { passive: !0 }), i.addEventListener("scroll", Z, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", Z, { passive: !0 }));
1754
1780
  } catch (e) {
1755
1781
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1756
1782
  }
@@ -1774,7 +1800,7 @@ var e = (e, t, n) => {
1774
1800
  });
1775
1801
  let tt = () => {
1776
1802
  if (!$e) {
1777
- $e = !0, Qe &&= (window.removeEventListener("pagehide", Qe), window.removeEventListener("beforeunload", Qe), null), Ze &&= (r.removeEventListener("resize", Ze), null), X &&= (r.removeEventListener("scroll", X), i.removeEventListener("scroll", X), i.scrollingElement?.removeEventListener("scroll", X), null), Z &&= (r.cancelAnimationFrame(Z), null), Fe(), J &&= (r.cancelAnimationFrame(J), null), Y &&= (r.clearTimeout(Y), null), Te({
1803
+ $e = !0, Qe &&= (window.removeEventListener("pagehide", Qe), window.removeEventListener("beforeunload", Qe), null), Ze &&= (r.removeEventListener("resize", Ze), null), Z &&= (r.removeEventListener("scroll", Z), i.removeEventListener("scroll", Z), i.scrollingElement?.removeEventListener("scroll", Z), null), Q &&= (r.cancelAnimationFrame(Q), null), Fe(), Y &&= (r.cancelAnimationFrame(Y), null), X &&= (r.clearTimeout(X), null), Te({
1778
1804
  active: !1,
1779
1805
  progress: 1,
1780
1806
  remainingMs: 0
@@ -1782,19 +1808,19 @@ var e = (e, t, n) => {
1782
1808
  try {
1783
1809
  delete r.__mfBridge;
1784
1810
  } catch {}
1785
- for (let e = ne.length - 1; e >= 0; --e) {
1786
- let { shell: t, parent: n, nextSibling: r } = ne[e];
1811
+ for (let e = q.length - 1; e >= 0; --e) {
1812
+ let { shell: t, parent: n, nextSibling: r } = q[e];
1787
1813
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1788
1814
  }
1789
- ne.length = 0, H && (U && U.parentNode === H ? H.insertBefore(n, U) : H.appendChild(n), H = null, U = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1815
+ q.length = 0, H && (ee && ee.parentNode === H ? H.insertBefore(n, ee) : H.appendChild(n), H = null, ee = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1790
1816
  for (let { el: e, orig: t } of V) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1791
- V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), ee &&= (W && (G && G.parentNode === W ? W.insertBefore(ee, G) : W.appendChild(ee), W = null, G = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), K && (te ? K.setAttribute("style", te) : K.removeAttribute("style"), K = null, te = null);
1817
+ V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), U &&= (W && (te && te.parentNode === W ? W.insertBefore(U, te) : W.appendChild(U), W = null, te = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), G && (K ? G.setAttribute("style", K) : G.removeAttribute("style"), G = null, K = null);
1792
1818
  for (let { el: e, orig: t } of M) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1793
1819
  F && (I ? F.setAttribute("style", I) : F.removeAttribute("style"), F = null, I = null), N && (P ? N.setAttribute("style", P) : N.removeAttribute("style"), N = null, P = null), o && (T ? o.setAttribute("style", T) : o.removeAttribute("style")), E && (D ? E.setAttribute("style", D) : E.removeAttribute("style")), O && (k ? O.setAttribute("style", k) : O.removeAttribute("style")), A && (j ? A.setAttribute("style", j) : A.removeAttribute("style")), s && (w ? s.setAttribute("style", w) : s.removeAttribute("style"));
1794
1820
  }
1795
1821
  };
1796
1822
  return tt;
1797
- }, L = (e = {}) => {
1823
+ }, B = (e = {}) => {
1798
1824
  let t = {
1799
1825
  expandedHeight: 180,
1800
1826
  collapsedHeight: 50,
@@ -1805,28 +1831,22 @@ var e = (e, t, n) => {
1805
1831
  onAdapt: null,
1806
1832
  onProgress: null,
1807
1833
  ...e
1808
- }, n = window.frameElement ?? null;
1809
- if (!n) return () => {};
1810
- let r = window.parent;
1811
- if (!r || r === window) return () => {};
1812
- let i = null;
1813
- try {
1814
- i = r.document, r.location.href;
1815
- } catch {
1816
- return () => {};
1817
- }
1818
- let a = (() => {
1819
- let e = i.querySelector("#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above");
1820
- if (e) return e;
1821
- let t = n.parentElement;
1822
- for (; t && t !== i.body;) {
1823
- if (t.id && t.id.includes("adspot")) return t;
1824
- t = t.parentElement;
1834
+ };
1835
+ if (!window.frameElement) return () => {};
1836
+ let n = d(window);
1837
+ if (!n?.doc || !n?.win) return console.warn("[bottomscroller] Could not resolve publisher document — aborting setup."), () => {};
1838
+ let r = n.win, i = n.doc, a = n.iframe || window.frameElement;
1839
+ if (!a) return console.warn("[bottomscroller] Could not resolve host iframe on publisher page."), () => {};
1840
+ let o = (() => {
1841
+ let e = a;
1842
+ for (; e && e !== i.body && e !== i.documentElement;) {
1843
+ if (e.id && e.id.includes("adspot")) return e;
1844
+ e = e.parentElement;
1825
1845
  }
1826
- return n.parentElement;
1846
+ return i.querySelector("#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above") || a.parentElement;
1827
1847
  })();
1828
- if (!a) return () => {};
1829
- let o = {
1848
+ if (!o) return () => {};
1849
+ let s = {
1830
1850
  nine: {
1831
1851
  getPaddingTargets(e) {
1832
1852
  let t = e.querySelector("#app");
@@ -1860,149 +1880,150 @@ var e = (e, t, n) => {
1860
1880
  (e.querySelector("main#content") || e.querySelector("main"))?.style.setProperty("position", "relative");
1861
1881
  }
1862
1882
  }
1863
- }, s = [
1883
+ }, c = [
1864
1884
  {
1865
1885
  site: "https://www.nine.com.au",
1866
- config: o.nine
1886
+ config: s.nine
1867
1887
  },
1868
1888
  {
1869
1889
  site: "https://staging.nine.com.au",
1870
- config: o.nine
1890
+ config: s.nine
1871
1891
  },
1872
1892
  {
1873
1893
  site: "https://preview.nine.com.au",
1874
- config: o.nine
1894
+ config: s.nine
1875
1895
  },
1876
1896
  {
1877
1897
  site: "https://creative-preview-an.com",
1878
- config: o.nine
1898
+ config: s.nine
1879
1899
  },
1880
1900
  {
1881
1901
  site: "https://www.smh",
1882
- config: o.smh
1902
+ config: s.smh
1883
1903
  },
1884
1904
  {
1885
1905
  site: "https://www.theage",
1886
- config: o.theage
1906
+ config: s.theage
1887
1907
  },
1888
1908
  {
1889
1909
  site: "https://www.afr.com.au",
1890
- config: o.afr
1910
+ config: s.afr
1891
1911
  },
1892
1912
  {
1893
1913
  site: "https://www.afr.com",
1894
- config: o.afr
1914
+ config: s.afr
1895
1915
  }
1896
- ], c = (() => {
1916
+ ], l = (() => {
1897
1917
  let e = r.location.href;
1898
- for (let t of s) if (e.indexOf(t.site) >= 0) return t.config;
1899
- return o.nine;
1900
- })(), l = a.getAttribute("style"), u = n.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 = a.closest("[data-ad-target=\"header-ad-mobile\"]"), g = !!(p && h && p === h), _ = [], v = [], y = null, b = null, x = null, S = t.expandedHeight, C = "idle", w = 0, T = 0, E = null, D = null, O = null, k = !1, A = Number.isFinite(t.collapseDurationMs) && t.collapseDurationMs > 0, j = Number.isFinite(t.collapseScrollDistance) && t.collapseScrollDistance > 0, M = () => r.visualViewport ? Math.round(r.innerHeight - (r.visualViewport.offsetTop + r.visualViewport.height)) : 0, N = () => C === "tracking" ? w + (r.performance.now() - T) : w, P = () => {
1901
- let e = N(), n = Math.max(0, r.scrollY), i = A ? e / t.collapseDurationMs : 0, a = j ? n / t.collapseScrollDistance : 0;
1918
+ for (let t of c) if (e.indexOf(t.site) >= 0) return t.config;
1919
+ return s.nine;
1920
+ })(), u = o.getAttribute("style"), f = a.getAttribute("style"), p = a.parentElement === o ? null : a.parentElement, m = p ? p.getAttribute("style") : null, h = o.parentElement, g = h ? h.getAttribute("style") : null, _ = o.closest("[data-ad-target=\"header-ad-mobile\"]"), v = !!(h && _ && h === _), y = [], b = [], x = null, S = null, C = null, w = t.expandedHeight, T = "idle", E = 0, D = 0, O = null, k = null, A = null, j = !1, M = Number.isFinite(t.collapseDurationMs) && t.collapseDurationMs > 0, N = Number.isFinite(t.collapseScrollDistance) && t.collapseScrollDistance > 0, P = () => r.visualViewport ? Math.round(r.innerHeight - (r.visualViewport.offsetTop + r.visualViewport.height)) : 0, F = () => T === "tracking" ? E + (r.performance.now() - D) : E, I = () => {
1921
+ let e = F(), n = Math.max(0, r.scrollY), i = M ? e / t.collapseDurationMs : 0, a = N ? n / t.collapseScrollDistance : 0;
1902
1922
  return Math.max(i, a);
1903
- }, F = () => A ? Math.max(0, t.collapseDurationMs - N()) : 0, I = () => {
1904
- let e = c.getPaddingTargets(i), t = [];
1923
+ }, L = () => M ? Math.max(0, t.collapseDurationMs - F()) : 0, R = () => {
1924
+ let e = l.getPaddingTargets(i), t = [];
1905
1925
  for (let n of e) t.includes(n) || t.push(n);
1906
1926
  return t;
1907
- }, L = (e) => {
1908
- !e || v.some((t) => t.el === e) || v.push({
1927
+ }, z = (e) => {
1928
+ !e || b.some((t) => t.el === e) || b.push({
1909
1929
  el: e,
1910
1930
  paddingBottom: e.style.getPropertyValue("padding-bottom"),
1911
1931
  paddingBottomPriority: e.style.getPropertyPriority("padding-bottom")
1912
1932
  });
1913
- }, R = (e) => {
1914
- for (let t of I()) L(t), t.style.setProperty("padding-bottom", `${e}px`, "important");
1915
- }, z = (e, r = !1) => {
1916
- if (!y) return;
1917
- S = e;
1918
- let i = M();
1919
- r ? y.style.transition = `height ${t.collapseTransitionMs}ms ease` : y.style.transition = "none", y.style.height = `${e}px`, y.style.bottom = `${i}px`, n.style.height = "100%", R(e);
1920
1933
  }, B = (e) => {
1921
- let r = {
1934
+ for (let t of R()) z(t), t.style.setProperty("padding-bottom", `${e}px`, "important");
1935
+ }, V = (e, n = !1) => {
1936
+ if (!x) return;
1937
+ w = e;
1938
+ let r = P();
1939
+ n ? x.style.transition = `height ${t.collapseTransitionMs}ms ease` : x.style.transition = "none", x.style.height = `${e}px`, x.style.bottom = `${r}px`, a.style.height = "100%", B(e);
1940
+ }, H = (e) => {
1941
+ let n = {
1922
1942
  type: "bottomscroller:progress",
1923
- phase: C,
1924
- progress: Math.max(0, Math.min(1, e.progress ?? P())),
1925
- remainingMs: Math.max(0, Math.round(e.remainingMs ?? F())),
1926
- height: S,
1927
- active: C === "tracking",
1943
+ phase: T,
1944
+ progress: Math.max(0, Math.min(1, e.progress ?? I())),
1945
+ remainingMs: Math.max(0, Math.round(e.remainingMs ?? L())),
1946
+ height: w,
1947
+ active: T === "tracking",
1928
1948
  ...e
1929
1949
  };
1930
- n.contentWindow && n.contentWindow.postMessage(r, "*"), typeof t.onProgress == "function" && t.onProgress(r);
1931
- }, V = () => {
1932
- C = "collapsed", H(), z(t.collapsedHeight, !0), B({
1950
+ a.contentWindow && a.contentWindow.postMessage(n, "*"), typeof window < "u" && window.postMessage && window.postMessage(n, "*"), typeof t.onProgress == "function" && t.onProgress(n);
1951
+ }, ee = () => {
1952
+ T = "collapsed", U(), V(t.collapsedHeight, !0), H({
1933
1953
  phase: "collapsed",
1934
1954
  progress: 1,
1935
1955
  remainingMs: 0,
1936
1956
  active: !1
1937
1957
  });
1938
- }, H = () => {
1939
- E &&= (r.cancelAnimationFrame(E), null);
1940
1958
  }, U = () => {
1941
- if (C !== "tracking") return;
1959
+ O &&= (r.cancelAnimationFrame(O), null);
1960
+ }, W = () => {
1961
+ if (T !== "tracking") return;
1942
1962
  if (r.scrollY <= 0) {
1943
- w = N(), C = "idle", H(), B({
1963
+ E = F(), T = "idle", U(), H({
1944
1964
  phase: "idle",
1945
1965
  active: !1
1946
1966
  });
1947
1967
  return;
1948
1968
  }
1949
- let e = P();
1950
- if (B({
1969
+ let e = I();
1970
+ if (H({
1951
1971
  phase: "tracking",
1952
1972
  progress: e,
1953
- remainingMs: F(),
1973
+ remainingMs: L(),
1954
1974
  active: !0
1955
1975
  }), e >= 1) {
1956
- V();
1976
+ ee();
1957
1977
  return;
1958
1978
  }
1959
- z(t.expandedHeight, !1), E = r.requestAnimationFrame(U);
1960
- }, ee = () => {
1961
- C !== "collapsed" && C === "idle" && (C = "tracking", T = r.performance.now(), B({
1979
+ V(t.expandedHeight, !1), O = r.requestAnimationFrame(W);
1980
+ }, te = () => {
1981
+ T !== "collapsed" && T === "idle" && (T = "tracking", D = r.performance.now(), H({
1962
1982
  phase: "tracking",
1963
- progress: P(),
1964
- remainingMs: F(),
1983
+ progress: I(),
1984
+ remainingMs: L(),
1965
1985
  active: !0
1966
- }), U());
1967
- }, W = () => {
1968
- if (C === "collapsed") {
1969
- z(t.collapsedHeight, !1);
1986
+ }), W());
1987
+ }, G = () => {
1988
+ if (T === "collapsed") {
1989
+ V(t.collapsedHeight, !1);
1970
1990
  return;
1971
1991
  }
1972
- r.scrollY > 0 ? C === "idle" ? ee() : C === "tracking" && U() : C === "tracking" && (w = N(), C = "idle", H(), B({
1992
+ r.scrollY > 0 ? T === "idle" ? te() : T === "tracking" && W() : T === "tracking" && (E = F(), T = "idle", U(), H({
1973
1993
  phase: "idle",
1974
1994
  active: !1,
1975
- progress: P(),
1976
- remainingMs: F()
1995
+ progress: I(),
1996
+ remainingMs: L()
1977
1997
  }));
1978
- }, G = () => {
1979
- W(), O && r.cancelAnimationFrame(O), O = r.requestAnimationFrame(() => {
1980
- O = null, W();
1981
- });
1982
1998
  }, K = () => {
1983
- let e = n.parentElement;
1999
+ G(), A && r.cancelAnimationFrame(A), A = r.requestAnimationFrame(() => {
2000
+ A = null, G();
2001
+ });
2002
+ }, q = () => {
2003
+ let e = a.parentElement;
1984
2004
  for (; e && e !== i.body && e !== i.documentElement;) {
1985
2005
  let t = r.getComputedStyle(e);
1986
- (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({
2006
+ (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") && (y.push({
1987
2007
  el: e,
1988
2008
  orig: e.getAttribute("style")
1989
- }), 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({
2009
+ }), e.style.transform = "none", e.style.willChange = "auto", e.style.contain = "none", e.style.filter = "none", e.style.perspective = "none"), t.overflow !== "visible" && (y.find((t) => t.el === e) || y.push({
1990
2010
  el: e,
1991
2011
  orig: e.getAttribute("style")
1992
2012
  }), e.style.overflow = "visible"), e = e.parentElement;
1993
2013
  }
1994
- }, te = () => {
1995
- let e = a.style;
1996
- if (e.height = "0", e.minHeight = "0", e.maxHeight = "0", e.overflow = "hidden", e.margin = "0", e.padding = "0", e.border = "none", e.lineHeight = "0", e.fontSize = "0", d) {
1997
- let e = d.style;
2014
+ }, ne = () => {
2015
+ let e = o.style;
2016
+ if (e.height = "0", e.minHeight = "0", e.maxHeight = "0", e.overflow = "hidden", e.margin = "0", e.padding = "0", e.border = "none", e.lineHeight = "0", e.fontSize = "0", p) {
2017
+ let e = p.style;
1998
2018
  e.width = "0", e.height = "0", e.minHeight = "0", e.maxHeight = "0", e.overflow = "hidden", e.margin = "0", e.padding = "0";
1999
2019
  }
2000
- g && p && (p.style.setProperty("height", "0", "important"), p.style.setProperty("min-height", "0", "important"), p.style.setProperty("max-height", "0", "important"), p.style.setProperty("margin", "0", "important"), p.style.setProperty("padding", "0", "important"), p.style.setProperty("overflow", "hidden", "important"));
2020
+ v && h && (h.style.setProperty("height", "0", "important"), h.style.setProperty("min-height", "0", "important"), h.style.setProperty("max-height", "0", "important"), h.style.setProperty("margin", "0", "important"), h.style.setProperty("padding", "0", "important"), h.style.setProperty("overflow", "hidden", "important"));
2001
2021
  };
2002
2022
  return (() => {
2003
- a.setAttribute("poweredAC", "0.1.99"), c.setup && c.setup(i, a), te(), K(), b = n.parentElement, x = n.nextSibling, y = i.createElement("div"), y.id = "bottomscroller-shell", y.setAttribute("data-bottomscroller-shell", ""), Object.assign(y.style, {
2023
+ o.setAttribute("poweredAC", "0.1.100"), l.setup && l.setup(i, o), ne(), q(), S = a.parentElement, C = a.nextSibling, x = i.createElement("div"), x.id = "bottomscroller-shell", x.setAttribute("data-bottomscroller-shell", ""), Object.assign(x.style, {
2004
2024
  position: "fixed",
2005
2025
  left: "0",
2026
+ bottom: "0",
2006
2027
  width: "100vw",
2007
2028
  height: `${t.expandedHeight}px`,
2008
2029
  zIndex: String(t.zIndex),
@@ -2012,26 +2033,26 @@ var e = (e, t, n) => {
2012
2033
  pointerEvents: "auto",
2013
2034
  boxSizing: "border-box"
2014
2035
  });
2015
- let e = n.style;
2016
- e.display = "block", e.width = "100%", e.height = "100%", e.border = "none", e.margin = "0", e.padding = "0", e.position = "relative", e.top = "", e.left = "", e.maxWidth = "none", y.appendChild(n), i.body.appendChild(y), z(t.expandedHeight, !1), B({
2036
+ let e = a.style;
2037
+ e.display = "block", e.width = "100%", e.height = "100%", e.border = "none", e.margin = "0", e.padding = "0", e.position = "relative", e.top = "", e.left = "", e.maxWidth = "none", x.appendChild(a), i.body.appendChild(x), V(t.expandedHeight, !1), H({
2017
2038
  phase: "idle",
2018
2039
  progress: 0,
2019
2040
  remainingMs: t.collapseDurationMs,
2020
2041
  active: !1
2021
- }), D = G, r.addEventListener("scroll", D, { passive: !0 }), i.addEventListener("scroll", D, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", D, { passive: !0 }), r.visualViewport?.addEventListener("resize", G, { passive: !0 }), k || (k = !0, t.onAdapt && t.onAdapt());
2042
+ }), k = K, r.addEventListener("scroll", k, { passive: !0 }), i.addEventListener("scroll", k, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", k, { passive: !0 }), r.visualViewport?.addEventListener("resize", K, { passive: !0 }), j || (j = !0, t.onAdapt && t.onAdapt());
2022
2043
  })(), () => {
2023
- H(), D &&= (r.removeEventListener("scroll", D), i.removeEventListener("scroll", D), i.scrollingElement?.removeEventListener("scroll", D), null), O &&= (r.cancelAnimationFrame(O), null), r.visualViewport?.removeEventListener("resize", G), y &&= (b && (x ? b.insertBefore(n, x) : b.appendChild(n)), y.remove(), null);
2024
- for (let { el: e, orig: t } of _) t ? e.setAttribute("style", t) : e.removeAttribute("style");
2025
- _.length = 0;
2026
- for (let { el: e, paddingBottom: t, paddingBottomPriority: n } of v) t ? e.style.setProperty("padding-bottom", t, n) : e.style.removeProperty("padding-bottom");
2027
- v.length = 0, l ? a.setAttribute("style", l) : a.removeAttribute("style"), u ? n.setAttribute("style", u) : n.removeAttribute("style"), d && (f ? d.setAttribute("style", f) : d.removeAttribute("style")), p && (m ? p.setAttribute("style", m) : p.removeAttribute("style"));
2044
+ U(), k &&= (r.removeEventListener("scroll", k), i.removeEventListener("scroll", k), i.scrollingElement?.removeEventListener("scroll", k), null), A &&= (r.cancelAnimationFrame(A), null), r.visualViewport?.removeEventListener("resize", K), x &&= (S && (C ? S.insertBefore(a, C) : S.appendChild(a)), x.remove(), null);
2045
+ for (let { el: e, orig: t } of y) t ? e.setAttribute("style", t) : e.removeAttribute("style");
2046
+ y.length = 0;
2047
+ for (let { el: e, paddingBottom: t, paddingBottomPriority: n } of b) t ? e.style.setProperty("padding-bottom", t, n) : e.style.removeProperty("padding-bottom");
2048
+ b.length = 0, u ? o.setAttribute("style", u) : o.removeAttribute("style"), f ? a.setAttribute("style", f) : a.removeAttribute("style"), p && (m ? p.setAttribute("style", m) : p.removeAttribute("style")), h && (g ? h.setAttribute("style", g) : h.removeAttribute("style"));
2028
2049
  };
2029
- }, R = () => {};
2030
- function z({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2031
- typeof R == "function" && R();
2050
+ }, V = () => {};
2051
+ function H({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2052
+ typeof V == "function" && V();
2032
2053
  let o = () => {};
2033
- return e === "fireplace" ? o = d(t) : e === "fireplace-collant" ? o = f(t) : e === "logomorph" ? o = M(n, r, i) : e === "dynamicheading" ? o = j(a) : e === "interscroller" ? o = P(a) : e === "liquidframe" ? o = F(a) : e === "mobilefireplace" ? o = I(a) : e === "bottomscroller" ? o = L(a) : console.warn("[powered-ad-config] Unknown ad format:", e), R = typeof o == "function" ? o : () => {}, R;
2054
+ return e === "fireplace" ? o = m(t) : e === "fireplace-collant" ? o = h(t) : e === "logomorph" ? o = F(n, r, i) : e === "dynamicheading" ? o = P(a) : e === "interscroller" ? o = L(a) : e === "liquidframe" ? o = R(a) : e === "mobilefireplace" ? o = z(a) : e === "bottomscroller" ? o = B(a) : console.warn("[powered-ad-config] Unknown ad format:", e), V = typeof o == "function" ? o : () => {}, V;
2034
2055
  }
2035
- z.version = "0.1.99";
2056
+ H.version = "0.1.100";
2036
2057
  //#endregion
2037
- export { z as default };
2058
+ export { H as default };