powered-ad-config 0.1.112 → 0.1.114

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.
@@ -240,7 +240,7 @@ var e = (e, t, n) => {
240
240
  }, N = () => {
241
241
  let e = k();
242
242
  if (!e) return;
243
- c(e, "0.1.112");
243
+ c(e, "0.1.114");
244
244
  let t = e.style;
245
245
  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();
246
246
  }, P = () => {
@@ -437,14 +437,14 @@ var e = (e, t, n) => {
437
437
  path: "/sport",
438
438
  headingText: "Sport",
439
439
  slotId: S
440
- }], D = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]), O = "__poweredAdConfigDynamicHeadingActive", k = "data-pac-dynamicheading-owner", A = "data-pac-reparented", j = (e, t) => {
440
+ }], D = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]), O = "__poweredAdConfigDynamicHeadingActive", k = "data-pac-dynamicheading-owner", A = "data-pac-reparented", j = 1020, M = 760, N = .875, P = .75, F = 2, I = 6, L = -12, R = (e, t) => {
441
441
  if (typeof e == "number" && Number.isFinite(e)) return `${e}px`;
442
442
  if (typeof e == "string") {
443
443
  let n = e.trim();
444
444
  return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : `${t}px`;
445
445
  }
446
446
  return `${t}px`;
447
- }, M = (e) => {
447
+ }, z = (e) => {
448
448
  if (!e || typeof e != "object") return null;
449
449
  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) : [];
450
450
  return !t || !n && !r ? null : {
@@ -454,66 +454,66 @@ var e = (e, t, n) => {
454
454
  slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : S,
455
455
  hostnames: i.length ? i : T
456
456
  };
457
- }, N = (e) => {
457
+ }, B = (e) => {
458
458
  if (!Array.isArray(e) || e.length === 0) return E;
459
- let t = e.map(M).filter(Boolean);
459
+ let t = e.map(z).filter(Boolean);
460
460
  return t.length ? t : E;
461
- }, P = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E, responsiveLayout: o = null } = {}) => {
462
- let s = window.frameElement || null;
463
- if (!s) return () => {};
464
- let c = window.parent;
465
- if (!c || c === window) return () => {};
466
- let l = null;
461
+ }, V = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E } = {}) => {
462
+ let o = window.frameElement || null;
463
+ if (!o) return () => {};
464
+ let s = window.parent;
465
+ if (!s || s === window) return () => {};
466
+ let c = null;
467
467
  try {
468
- l = c.document, c.location.href;
468
+ c = s.document, s.location.href;
469
469
  } catch {
470
470
  return () => {};
471
471
  }
472
- let u = c[O];
473
- if (u?.iframe === s && typeof u.cleanup == "function") return u.cleanup;
474
- if (u?.iframe?.isConnected && typeof u?.cleanup == "function") return () => {};
475
- typeof u?.cleanup == "function" && u.cleanup();
476
- let d = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, f = (e, t, n) => {
472
+ let l = s[O];
473
+ if (l?.iframe === o && typeof l.cleanup == "function") return l.cleanup;
474
+ if (l?.iframe?.isConnected && typeof l?.cleanup == "function") return () => {};
475
+ typeof l?.cleanup == "function" && l.cleanup();
476
+ let u = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, d = (e, t, n) => {
477
477
  e && e.style[t] !== n && (e.style[t] = n);
478
- }, p = () => {
478
+ }, f = () => {
479
479
  try {
480
480
  let e = window.location.hostname.toLowerCase();
481
481
  return D.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
482
482
  } catch {
483
483
  return !1;
484
484
  }
485
- }, m = (e = s.parentElement) => {
485
+ }, p = (e = o.parentElement) => {
486
486
  let t = e;
487
- for (; t && t !== l.body;) {
487
+ for (; t && t !== c.body;) {
488
488
  let e = t.id || "", n = t.getAttribute?.("data-testid") || "", r = t.getAttribute?.("type") || "";
489
489
  if (e.includes("adspot") || n.toLowerCase().includes("ad") || r) return t;
490
490
  t = t.parentElement;
491
491
  }
492
- return s.parentElement;
493
- }, h = () => {
492
+ return o.parentElement;
493
+ }, m = () => {
494
494
  try {
495
- let e = new URL(c.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
496
- return V.find((e) => {
495
+ let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
496
+ return K.find((e) => {
497
497
  let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
498
498
  return r && i;
499
499
  }) || null;
500
500
  } catch {
501
501
  return null;
502
502
  }
503
- }, S = () => {
504
- let e = r(l, "app") || l.getElementById("app") || l, t = r(e, "page-container") || e;
505
- return r(r(t, "container") || t, "main") || r(e, "main") || l.querySelector("#app main") || null;
506
- }, T = (e) => {
503
+ }, h = () => {
504
+ let e = r(c, "app") || c.getElementById("app") || c, t = r(e, "page-container") || e;
505
+ return r(r(t, "container") || t, "main") || r(e, "main") || c.querySelector("#app main") || null;
506
+ }, S = (e) => {
507
507
  if (!e || !e.isConnected) return !1;
508
508
  let t = e.getBoundingClientRect();
509
509
  if (t.width <= 0 || t.height <= 0) return !1;
510
- let n = c.getComputedStyle(e);
510
+ let n = s.getComputedStyle(e);
511
511
  return n.display !== "none" && n.visibility !== "hidden";
512
- }, M = () => {
513
- let e = S(), t = e ? [...e.querySelectorAll(y), ...e.querySelectorAll(b)] : [], n = t.length ? [] : Array.from(l.querySelectorAll(x));
514
- return Array.from(/* @__PURE__ */ new Set([...t, ...n])).filter(T);
515
- }, P = (e) => {
516
- let t = M();
512
+ }, T = () => {
513
+ let e = h(), t = e ? [...e.querySelectorAll(y), ...e.querySelectorAll(b)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(x));
514
+ return Array.from(/* @__PURE__ */ new Set([...t, ...n])).filter(S);
515
+ }, z = (e) => {
516
+ let t = T();
517
517
  if (!t.length) return null;
518
518
  let n = typeof e == "string" ? e.trim().toLowerCase() : "";
519
519
  if (n) {
@@ -521,96 +521,99 @@ var e = (e, t, n) => {
521
521
  if (e) return e;
522
522
  }
523
523
  return t.find((e) => e.tagName === "H1") || t[0] || null;
524
- }, F = null, I = null;
525
- p();
526
- let L = j(e, C), R = j(t, w), z = j(n, g), B = j(i, _), V = N(a), H = h();
527
- if (!H) return () => {};
528
- let U = m((H.slotId ? l.getElementById(H.slotId) : null) || s.parentElement);
529
- if (!U) return () => {};
530
- let W = U.getAttribute(k);
531
- if (W && W !== d) return () => {};
532
- let ee = {
533
- width: U.style.width,
534
- maxWidth: U.style.maxWidth,
535
- minWidth: U.style.minWidth,
536
- height: U.style.height,
537
- minHeight: U.style.minHeight,
538
- marginTop: U.style.marginTop,
539
- marginBottom: U.style.marginBottom,
540
- marginLeft: U.style.marginLeft,
541
- marginRight: U.style.marginRight,
542
- position: U.style.position,
543
- top: U.style.top,
544
- left: U.style.left,
545
- right: U.style.right,
546
- transform: U.style.transform,
547
- display: U.style.display,
548
- opacity: U.style.opacity,
549
- transition: U.style.transition,
550
- pointerEvents: U.style.pointerEvents,
551
- zIndex: U.style.zIndex,
552
- overflow: U.style.overflow
553
- }, te = {
554
- width: s.style.width,
555
- height: s.style.height,
556
- display: s.style.display,
557
- border: s.style.border,
558
- position: s.style.position,
559
- pointerEvents: s.style.pointerEvents
560
- }, G = [], K = parseFloat(z) || g, q = parseFloat(B) || _, J = parseFloat(L) || 0, ne = parseFloat(R) || 0, Y = () => {
561
- let e = {
562
- width: z,
563
- widthNumeric: K,
564
- height: B,
565
- heightNumeric: q,
566
- offsetTop: J,
567
- offsetLeft: ne
524
+ }, V = null, H = null, U = null;
525
+ f();
526
+ let ee = R(e, C), te = R(t, w), W = R(n, g), G = R(i, _), K = B(a), q = m();
527
+ if (!q) return () => {};
528
+ let J = p((q.slotId ? c.getElementById(q.slotId) : null) || o.parentElement);
529
+ if (!J) return () => {};
530
+ let ne = J.getAttribute(k);
531
+ if (ne && ne !== u) return () => {};
532
+ let re = {
533
+ width: J.style.width,
534
+ maxWidth: J.style.maxWidth,
535
+ minWidth: J.style.minWidth,
536
+ height: J.style.height,
537
+ minHeight: J.style.minHeight,
538
+ marginTop: J.style.marginTop,
539
+ marginBottom: J.style.marginBottom,
540
+ marginLeft: J.style.marginLeft,
541
+ marginRight: J.style.marginRight,
542
+ position: J.style.position,
543
+ top: J.style.top,
544
+ left: J.style.left,
545
+ right: J.style.right,
546
+ transform: J.style.transform,
547
+ display: J.style.display,
548
+ opacity: J.style.opacity,
549
+ transition: J.style.transition,
550
+ pointerEvents: J.style.pointerEvents,
551
+ zIndex: J.style.zIndex,
552
+ overflow: J.style.overflow
553
+ }, Y = {
554
+ width: o.style.width,
555
+ height: o.style.height,
556
+ display: o.style.display,
557
+ border: o.style.border,
558
+ position: o.style.position,
559
+ pointerEvents: o.style.pointerEvents
560
+ }, ie = [], ae = parseFloat(W) || g, oe = parseFloat(G) || _, se = parseFloat(ee) || 0, ce = parseFloat(te) || 0, le = () => {
561
+ let e = Number(s.innerWidth) || 0, t = e < M ? P : e < j ? N : 1;
562
+ return {
563
+ scale: t,
564
+ width: R(ae * t, ae),
565
+ widthNumeric: ae * t,
566
+ height: R(oe + (t < 1 ? F : 0), oe),
567
+ heightNumeric: oe + (t < 1 ? F : 0),
568
+ offsetTop: t === P ? se + L : se,
569
+ offsetLeft: t < 1 ? ce + I : ce
568
570
  };
569
- if (typeof o != "function") return e;
570
- try {
571
- let e = o({
572
- viewportWidth: c.innerWidth,
573
- document: l
574
- }) || {}, t = j(e.width, K), n = j(e.height, q), r = (e, t) => {
575
- let n = typeof e == "number" ? e : parseFloat(e);
576
- return Number.isFinite(n) ? n : t;
577
- };
578
- return {
579
- width: t,
580
- widthNumeric: r(t, K),
581
- height: n,
582
- heightNumeric: r(n, q),
583
- offsetTop: r(e.offsetTop, J),
584
- offsetLeft: r(e.offsetLeft, ne)
585
- };
586
- } catch {
587
- return e;
588
- }
589
571
  }, X = () => {
590
- let e = U.parentElement;
591
- for (; e && e !== l.body;) G.push({
572
+ let e = J.parentElement;
573
+ for (; e && e !== c.body;) ie.push({
592
574
  element: e,
593
575
  overflow: e.style.overflow
594
- }), f(e, "overflow", "visible"), e = e.parentElement;
595
- }, re = () => {
596
- f(U, "width", z), f(U, "maxWidth", z), f(U, "minWidth", z), f(U, "height", B), f(U, "minHeight", B), f(U, "display", "block"), f(U, "overflow", "hidden"), f(U, "pointerEvents", "none"), f(U, "zIndex", "0"), U.setAttribute(k, d), f(s, "width", z), f(s, "height", B), f(s, "display", "block"), f(s, "border", "0"), f(s, "position", "relative"), f(s, "pointerEvents", "auto");
597
- }, ie = (e = Y()) => {
598
- let t = U.parentElement;
599
- t && c.getComputedStyle(t).position === "static" && (t.style.position, f(t, "position", "relative")), f(U, "position", "absolute"), f(U, "top", `${e.offsetTop}px`), f(U, "left", `${e.offsetLeft}px`), f(U, "right", "auto"), f(U, "marginTop", "0px"), f(U, "marginBottom", `${v}px`), f(U, "marginLeft", "0px"), f(U, "marginRight", "0px"), f(U, "transform", "");
600
- }, ae = (e = K) => {
601
- let t = S();
576
+ }), d(e, "overflow", "visible"), e = e.parentElement;
577
+ }, ue = () => {
578
+ d(J, "width", W), d(J, "maxWidth", W), d(J, "minWidth", W), d(J, "height", G), d(J, "minHeight", G), d(J, "display", "block"), d(J, "overflow", "hidden"), d(J, "pointerEvents", "none"), d(J, "zIndex", "0"), J.setAttribute(k, u), d(o, "width", W), d(o, "height", G), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
579
+ }, de = (e = le()) => {
580
+ let t = J.parentElement;
581
+ t && s.getComputedStyle(t).position === "static" && (t.style.position, d(t, "position", "relative")), d(J, "position", "absolute"), d(J, "top", `${e.offsetTop}px`), d(J, "left", `${e.offsetLeft}px`), d(J, "right", "auto"), d(J, "marginTop", "0px"), d(J, "marginBottom", `${v}px`), d(J, "marginLeft", "0px"), d(J, "marginRight", "0px"), d(J, "transform", "");
582
+ }, fe = (e = ae) => {
583
+ let t = h();
602
584
  if (!t) return e;
603
585
  let n = t.getBoundingClientRect();
604
586
  if (n.width <= 0) return e;
605
- let i = r(l, "sidebar")?.getBoundingClientRect(), a = i && i.width > 0 && i.height > 0 && i.left >= n.right - 1 && i.top <= n.top + 1, o = l.documentElement?.clientWidth || l.body?.clientWidth || n.width;
587
+ let i = r(c, "sidebar")?.getBoundingClientRect(), a = i && i.width > 0 && i.height > 0 && i.left >= n.right - 1 && i.top <= n.top + 1, o = c.documentElement?.clientWidth || c.body?.clientWidth || n.width;
606
588
  return a ? e : Math.min(e, o);
607
- }, oe = () => {
608
- let e = Y(), t = `${ae(e.widthNumeric)}px`;
609
- f(U, "width", t), f(U, "maxWidth", t), f(U, "minWidth", t), f(U, "height", e.height), f(U, "minHeight", e.height), f(U, "top", `${e.offsetTop}px`), f(U, "left", `${e.offsetLeft}px`), f(s, "width", t), f(s, "height", e.height);
610
- }, se = (e) => {
589
+ }, pe = (e, t) => {
590
+ if (e.scale >= 1) return e.offsetLeft;
591
+ let n = h()?.getBoundingClientRect(), r = c.documentElement?.clientWidth || c.body?.clientWidth || 0;
592
+ if (!n || n.width <= 0 || r <= 0) return e.offsetLeft;
593
+ let i = n.left + e.offsetLeft, a = Math.max(0, r - t);
594
+ return Math.round(Math.min(Math.max(i, 0), a) - n.left);
595
+ }, me = () => {
596
+ let e = le(), t = fe(e.widthNumeric), n = `${t}px`, r = pe(e, t);
597
+ d(J, "width", n), d(J, "maxWidth", n), d(J, "minWidth", n), d(J, "height", e.height), d(J, "minHeight", e.height), d(J, "top", `${e.offsetTop}px`), d(J, "left", `${r}px`), d(o, "width", n), d(o, "height", e.height);
598
+ }, he = () => {
599
+ try {
600
+ let e = o.contentDocument?.getElementById("unit");
601
+ if (!e) return !1;
602
+ let t = le().scale;
603
+ return t === 1 ? (e.style.removeProperty("transform"), e.style.removeProperty("transform-origin")) : (d(e, "transform", `scale(${t})`), d(e, "transformOrigin", "left bottom")), !0;
604
+ } catch {
605
+ return !1;
606
+ }
607
+ }, Z = (e = 20) => {
608
+ if (he() || e <= 1) {
609
+ U = null;
610
+ return;
611
+ }
612
+ U = s.setTimeout(() => Z(e - 1), 100);
613
+ }, ge = (e) => {
611
614
  let t = null;
612
615
  try {
613
- let e = s.contentDocument;
616
+ let e = o.contentDocument;
614
617
  if (!e) return !1;
615
618
  let n = e.getElementById("unitContainer");
616
619
  if (!n) return !1;
@@ -623,54 +626,56 @@ var e = (e, t, n) => {
623
626
  return !1;
624
627
  }
625
628
  if (!t) return !1;
626
- s.setAttribute(A, "1");
629
+ o.setAttribute(A, "1");
627
630
  try {
628
- e.parentNode?.insertBefore(U, e);
631
+ e.parentNode?.insertBefore(J, e);
629
632
  } catch {
630
- return s.removeAttribute(A), !1;
633
+ return o.removeAttribute(A), !1;
631
634
  }
632
- X(), re(), ie();
635
+ X(), ue(), de(), Ce = () => Z(), o.addEventListener("load", Ce);
633
636
  try {
634
- s.srcdoc = t;
637
+ o.srcdoc = t;
635
638
  } catch {
636
639
  return !1;
637
640
  }
638
- return oe(), pe = () => oe(), c.addEventListener("resize", pe), !0;
639
- }, ce = () => {
640
- f(U, "position", "fixed"), f(U, "marginTop", "0px"), f(U, "marginBottom", "0px"), f(U, "marginLeft", "0px"), f(U, "marginRight", "0px"), f(U, "transform", "");
641
- }, Z = () => {
642
- f(U, "display", "none");
643
- }, le = () => {
644
- f(U, "display", "block"), f(U, "overflow", "hidden");
645
- }, Q = null, ue = () => {
646
- if ((!Q || !Q.isConnected) && (Q = P(H.headingText)), !Q) return;
647
- let e = Q.getBoundingClientRect(), t = e.top - q - v + J, n = e.left + ne;
648
- f(U, "top", `${t}px`), f(U, "left", `${n}px`), f(U, "right", "auto");
649
- }, de = null, fe = null, pe = null, $ = !1, me = (e = 12) => {
650
- if (Q = P(H.headingText), !Q) {
651
- e > 1 && (I = c.setTimeout(() => me(e - 1), 250));
641
+ return me(), Z(), Se = () => {
642
+ me(), Z();
643
+ }, s.addEventListener("resize", Se), !0;
644
+ }, _e = () => {
645
+ d(J, "position", "fixed"), d(J, "marginTop", "0px"), d(J, "marginBottom", "0px"), d(J, "marginLeft", "0px"), d(J, "marginRight", "0px"), d(J, "transform", "");
646
+ }, ve = () => {
647
+ d(J, "display", "none");
648
+ }, ye = () => {
649
+ d(J, "display", "block"), d(J, "overflow", "hidden");
650
+ }, Q = null, be = () => {
651
+ if ((!Q || !Q.isConnected) && (Q = z(q.headingText)), !Q) return;
652
+ let e = Q.getBoundingClientRect(), t = e.top - oe - v + se, n = e.left + ce;
653
+ d(J, "top", `${t}px`), d(J, "left", `${n}px`), d(J, "right", "auto");
654
+ }, $ = null, xe = null, Se = null, Ce = null, we = !1, Te = (e = 12) => {
655
+ if (Q = z(q.headingText), !Q) {
656
+ e > 1 && (H = s.setTimeout(() => Te(e - 1), 250));
652
657
  return;
653
658
  }
654
- se(Q) || ($ = !0, X(), re(), ce(), ue(), de = () => ue(), fe = () => ue(), c.addEventListener("scroll", de, { passive: !0 }), c.addEventListener("resize", fe));
659
+ ge(Q) || (we = !0, X(), ue(), _e(), be(), $ = () => be(), xe = () => be(), s.addEventListener("scroll", $, { passive: !0 }), s.addEventListener("resize", xe));
655
660
  };
656
- me();
657
- let he = () => {
658
- I &&= (c.clearTimeout(I), null), F &&= (c.clearTimeout(F), null), de &&= (c.removeEventListener("scroll", de), null), fe &&= (c.removeEventListener("resize", fe), null), pe &&= (c.removeEventListener("resize", pe), null), U.getAttribute(k) === d && U.removeAttribute(k), $ && (Object.entries(ee).forEach(([e, t]) => {
659
- U.style[e] = t;
660
- }), Object.entries(te).forEach(([e, t]) => {
661
- s.style[e] = t;
662
- }), G.forEach(({ element: e, overflow: t }) => {
661
+ Te();
662
+ let Ee = () => {
663
+ H &&= (s.clearTimeout(H), null), V &&= (s.clearTimeout(V), null), $ &&= (s.removeEventListener("scroll", $), null), xe &&= (s.removeEventListener("resize", xe), null), Se &&= (s.removeEventListener("resize", Se), null), Ce &&= (o.removeEventListener("load", Ce), null), U &&= (s.clearTimeout(U), null), J.getAttribute(k) === u && J.removeAttribute(k), we && (Object.entries(re).forEach(([e, t]) => {
664
+ J.style[e] = t;
665
+ }), Object.entries(Y).forEach(([e, t]) => {
666
+ o.style[e] = t;
667
+ }), ie.forEach(({ element: e, overflow: t }) => {
663
668
  e.style.overflow = t;
664
- })), c[O]?.instanceId === d && delete c[O];
669
+ })), s[O]?.instanceId === u && delete s[O];
665
670
  };
666
- return c[O] = {
667
- instanceId: d,
668
- iframe: s,
669
- cleanup: he,
670
- show: le,
671
- hide: Z
672
- }, he;
673
- }, F = (e, t, n) => {
671
+ return s[O] = {
672
+ instanceId: u,
673
+ iframe: o,
674
+ cleanup: Ee,
675
+ show: ye,
676
+ hide: ve
677
+ }, Ee;
678
+ }, H = (e, t, n) => {
674
679
  let r = window.frameElement ? window.frameElement : null;
675
680
  if (!r) return () => {};
676
681
  let i = window.parent;
@@ -908,11 +913,11 @@ var e = (e, t, n) => {
908
913
  return p(), () => {
909
914
  i.removeEventListener("scroll", y), S &&= (clearTimeout(S), null);
910
915
  };
911
- }, I = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
916
+ }, U = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
912
917
  if (e === 0 || e === 1) return e;
913
918
  let t = 2 * Math.PI / 3;
914
919
  return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
915
- }), L = (e = {}) => {
920
+ }), ee = (e = {}) => {
916
921
  let t = {
917
922
  adScrollHeight: "300vh",
918
923
  bandHeight: 24,
@@ -935,7 +940,7 @@ var e = (e, t, n) => {
935
940
  snapOverlap: 2,
936
941
  stretchOverlap: 20,
937
942
  snapDuration: .9,
938
- snapEase: I,
943
+ snapEase: U,
939
944
  onEnter: null,
940
945
  onExit: null,
941
946
  onProgress: null,
@@ -979,7 +984,7 @@ var e = (e, t, n) => {
979
984
  };
980
985
  (() => {
981
986
  let e = a.style;
982
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.112"), 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";
987
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.114"), 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";
983
988
  let o = a.parentElement;
984
989
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
985
990
  let t = r.getComputedStyle(o), n = !1;
@@ -1084,7 +1089,7 @@ var e = (e, t, n) => {
1084
1089
  e.style[t] = n || "";
1085
1090
  });
1086
1091
  };
1087
- }, R = (e = {}) => {
1092
+ }, te = (e = {}) => {
1088
1093
  let t = {
1089
1094
  adaptToWidth: "100%",
1090
1095
  maxWidth: "400px",
@@ -1117,7 +1122,7 @@ var e = (e, t, n) => {
1117
1122
  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;
1118
1123
  return (() => {
1119
1124
  let e = a.style;
1120
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.112"), c) {
1125
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.114"), c) {
1121
1126
  let e = c.style;
1122
1127
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1123
1128
  }
@@ -1132,7 +1137,7 @@ var e = (e, t, n) => {
1132
1137
  })(), () => {
1133
1138
  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);
1134
1139
  };
1135
- }, z = (e = {}) => {
1140
+ }, W = (e = {}) => {
1136
1141
  let t = {
1137
1142
  billboardHeight: 150,
1138
1143
  sideStripWidth: 10,
@@ -1310,7 +1315,7 @@ var e = (e, t, n) => {
1310
1315
  })(), 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) => ({
1311
1316
  el: e,
1312
1317
  orig: e.getAttribute("style")
1313
- })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, U = null, W = null, ee = null, te = null, G = null, K = null, q = [], J = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ne = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, Y = !!(t.sticky && (J || ne)), X = "pending", re = 0, ie = 0, ae = null, oe = null, se = null, ce = null, Z = null, le = null, Q = [], ue = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, de = {
1318
+ })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, U = null, ee = null, te = null, W = null, G = null, K = null, q = [], J = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ne = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, re = !!(t.sticky && (J || ne)), Y = "pending", ie = 0, ae = 0, oe = null, se = null, ce = null, le = null, X = null, ue = null, de = [], fe = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, pe = {
1314
1319
  FLOW_SYNCED_BODY: "flowSyncedBody",
1315
1320
  SPLIT_IN_FLOW: "splitInFlow",
1316
1321
  IN_FLOW: "inFlow"
@@ -1324,24 +1329,24 @@ var e = (e, t, n) => {
1324
1329
  }
1325
1330
  return null;
1326
1331
  })(), K = G ? G.getAttribute("style") : null;
1327
- 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) => {
1328
- if (!e || e === W || e === y || e === a) return !1;
1332
+ let me = !!(o && f !== u.afr && (G || p)), he = f === u.afr || x ? pe.FLOW_SYNCED_BODY : me ? pe.SPLIT_IN_FLOW : pe.IN_FLOW, Z = he === pe.FLOW_SYNCED_BODY, ge = (e) => {
1333
+ if (!e || e === ee || e === y || e === a) return !1;
1329
1334
  let t = e.firstElementChild;
1330
1335
  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;
1331
1336
  let n = r.getComputedStyle(e);
1332
1337
  return n.position === "fixed" || n.position === "sticky";
1333
- }, he = (e) => {
1338
+ }, _e = (e) => {
1334
1339
  !e?.parentElement || q.some((t) => t.shell === e) || (q.push({
1335
1340
  shell: e,
1336
1341
  parent: e.parentElement,
1337
1342
  nextSibling: e.nextSibling
1338
1343
  }), e.remove());
1339
- }, ge = () => {
1344
+ }, ve = () => {
1340
1345
  for (let e of i.querySelectorAll(".container")) {
1341
1346
  let t = e.parentElement;
1342
- me(t) && he(t);
1347
+ ge(t) && _e(t);
1343
1348
  }
1344
- }, _e = (e) => {
1349
+ }, ye = (e) => {
1345
1350
  let t = e?.parentElement;
1346
1351
  for (; t && t !== i.body && t !== i.documentElement;) {
1347
1352
  let e = r.getComputedStyle(t);
@@ -1350,10 +1355,10 @@ var e = (e, t, n) => {
1350
1355
  orig: t.getAttribute("style")
1351
1356
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1352
1357
  }
1353
- }, ve = () => {
1358
+ }, Q = () => {
1354
1359
  let e = i.createElement("div");
1355
1360
  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;
1356
- }, ye = () => {
1361
+ }, be = () => {
1357
1362
  if (!s || f !== u.wwos) return null;
1358
1363
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1359
1364
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1366,7 +1371,7 @@ var e = (e, t, n) => {
1366
1371
  };
1367
1372
  }).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");
1368
1373
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1369
- }, be = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1374
+ }, $ = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1370
1375
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1371
1376
  return {
1372
1377
  el: e,
@@ -1379,7 +1384,7 @@ var e = (e, t, n) => {
1379
1384
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1380
1385
  }, Ce = () => {
1381
1386
  let e = Se();
1382
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, ue || t.stickyTop);
1387
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
1383
1388
  }, we = () => {
1384
1389
  let e = Se();
1385
1390
  return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
@@ -1391,87 +1396,87 @@ var e = (e, t, n) => {
1391
1396
  remainingMs: Math.max(0, Math.round(n))
1392
1397
  }, "*");
1393
1398
  }, Ee = (e) => {
1394
- !e || Q.some((t) => t.el === e) || Q.push({
1399
+ !e || de.some((t) => t.el === e) || de.push({
1395
1400
  el: e,
1396
1401
  value: e.style.getPropertyValue("z-index"),
1397
1402
  priority: e.style.getPropertyPriority("z-index")
1398
1403
  });
1399
1404
  }, De = (e) => {
1400
- let t = new Set([be()].filter(Boolean));
1405
+ let t = new Set([$()].filter(Boolean));
1401
1406
  if (f === u.afr || G || p) {
1402
1407
  [
1403
1408
  a,
1404
1409
  y,
1405
1410
  c
1406
1411
  ].filter(Boolean).forEach((e) => t.add(e));
1407
- let e = be()?.parentElement;
1412
+ let e = $()?.parentElement;
1408
1413
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1409
1414
  }
1410
1415
  for (let n of t) Ee(n), n.style.setProperty("z-index", String(e), "important");
1411
- }, Oe = () => $ && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || be(), ke = () => {
1412
- if (!$ || !R) return;
1416
+ }, Oe = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), ke = () => {
1417
+ if (!Z || !R) return;
1413
1418
  let e = R.style;
1414
1419
  e.left = "0px", e.width = "100vw";
1415
1420
  }, Ae = () => {
1416
- if (!$ || !R || X === "active") return;
1421
+ if (!Z || !R || Y === "active") return;
1417
1422
  let e = Oe();
1418
1423
  if (!e) return;
1419
1424
  let t = e.getBoundingClientRect(), n = R.style;
1420
1425
  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");
1421
1426
  }, je = () => {
1422
- $ && (Ae(), se && r.cancelAnimationFrame(se), se = r.requestAnimationFrame(() => {
1423
- se = null, Ae();
1424
- }), ce && r.clearTimeout(ce), ce = r.setTimeout(() => {
1427
+ Z && (Ae(), ce && r.cancelAnimationFrame(ce), ce = r.requestAnimationFrame(() => {
1425
1428
  ce = null, Ae();
1429
+ }), le && r.clearTimeout(le), le = r.setTimeout(() => {
1430
+ le = null, Ae();
1426
1431
  }, 350));
1427
1432
  }, Me = () => {
1428
- for (let e = Q.length - 1; e >= 0; --e) {
1429
- let { el: t, value: n, priority: r } = Q[e];
1433
+ for (let e = de.length - 1; e >= 0; --e) {
1434
+ let { el: t, value: n, priority: r } = de[e];
1430
1435
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1431
1436
  }
1432
- Q.length = 0;
1437
+ de.length = 0;
1433
1438
  }, Ne = () => {
1434
1439
  if (!R) return;
1435
- _e(be());
1436
- let e = be().getBoundingClientRect(), t = we();
1440
+ ye($());
1441
+ let e = $().getBoundingClientRect(), t = we();
1437
1442
  De(t);
1438
1443
  let n = R.style;
1439
- 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", "");
1444
+ n.position = "fixed", n.top = `${Ce()}px`, Z ? 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", "");
1440
1445
  }, Pe = () => {
1441
1446
  if (!R) return;
1442
- if ($) {
1447
+ if (Z) {
1443
1448
  je(), Me();
1444
1449
  return;
1445
1450
  }
1446
1451
  let e = R.style;
1447
1452
  e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Me(), R.removeAttribute("data-mf-sticky-active");
1448
1453
  }, Fe = () => {
1449
- oe &&= (r.cancelAnimationFrame(oe), null);
1454
+ se &&= (r.cancelAnimationFrame(se), null);
1450
1455
  }, Ie = () => {
1451
- if (ae === null) {
1452
- let e = be().getBoundingClientRect();
1453
- ae = Math.max(0, r.scrollY + e.top - Ce());
1456
+ if (oe === null) {
1457
+ let e = $().getBoundingClientRect();
1458
+ oe = Math.max(0, r.scrollY + e.top - Ce());
1454
1459
  }
1455
- return ae;
1456
- }, Le = () => ie + (X === "active" ? Math.max(0, r.performance.now() - re) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1460
+ return oe;
1461
+ }, Le = () => ae + (Y === "active" ? Math.max(0, r.performance.now() - ie) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1457
1462
  let e = J ? Le() / t.stickyDurationMs : 0, n = ne ? Re() / t.stickyScrollDistance : 0;
1458
1463
  return Math.max(e, n);
1459
1464
  }, Be = () => J ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1460
- X === "active" && (ie = Le(), X = "paused", Fe(), Pe(), Te({
1465
+ Y === "active" && (ae = Le(), Y = "paused", Fe(), Pe(), Te({
1461
1466
  active: !1,
1462
1467
  progress: ze(),
1463
1468
  remainingMs: Be()
1464
1469
  }));
1465
1470
  }, Ue = () => {
1466
- X !== "paused" || Ve() || (X = "active", re = r.performance.now(), Ne(), Ge());
1471
+ Y !== "paused" || Ve() || (Y = "active", ie = r.performance.now(), Ne(), Ge());
1467
1472
  }, We = () => {
1468
- (X === "active" || X === "paused") && (X === "active" && (ie = Le()), X = "released", Fe(), Pe(), Te({
1473
+ (Y === "active" || Y === "paused") && (Y === "active" && (ae = Le()), Y = "released", Fe(), Pe(), Te({
1469
1474
  active: !1,
1470
1475
  progress: 1,
1471
1476
  remainingMs: 0
1472
1477
  }));
1473
1478
  }, Ge = () => {
1474
- if (X !== "active") return;
1479
+ if (Y !== "active") return;
1475
1480
  if (Ve()) {
1476
1481
  He();
1477
1482
  return;
@@ -1485,21 +1490,21 @@ var e = (e, t, n) => {
1485
1490
  We();
1486
1491
  return;
1487
1492
  }
1488
- oe = r.requestAnimationFrame(Ge);
1493
+ se = r.requestAnimationFrame(Ge);
1489
1494
  }, Ke = () => {
1490
- if (!Y || X !== "pending" || !R) return;
1491
- let e = be().getBoundingClientRect();
1492
- ae = Math.max(0, r.scrollY + e.top - Ce()), ie = 0, X = "active", re = r.performance.now(), Ne(), Ge();
1495
+ if (!re || Y !== "pending" || !R) return;
1496
+ let e = $().getBoundingClientRect();
1497
+ oe = Math.max(0, r.scrollY + e.top - Ce()), ae = 0, Y = "active", ie = r.performance.now(), Ne(), Ge();
1493
1498
  }, qe = () => {
1494
- !Y || X !== "pending" || !R || r.scrollY <= 0 || be().getBoundingClientRect().top <= Ce() && Ke();
1499
+ !re || Y !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= Ce() && Ke();
1495
1500
  }, Je = () => {
1496
- X === "pending" ? qe() : X === "active" && Ve() ? He() : X === "paused" && Ue(), X !== "active" && je();
1501
+ Y === "pending" ? qe() : Y === "active" && Ve() ? He() : Y === "paused" && Ue(), Y !== "active" && je();
1497
1502
  }, Ye = () => {
1498
- Je(), le && r.cancelAnimationFrame(le), le = r.requestAnimationFrame(() => {
1499
- le = null, Je();
1503
+ Je(), ue && r.cancelAnimationFrame(ue), ue = r.requestAnimationFrame(() => {
1504
+ ue = null, Je();
1500
1505
  });
1501
1506
  }, Xe = () => {
1502
- ge();
1507
+ ve();
1503
1508
  let e = n.parentElement;
1504
1509
  for (; e && e !== i.body && e !== i.documentElement;) {
1505
1510
  let t = r.getComputedStyle(e);
@@ -1520,7 +1525,7 @@ var e = (e, t, n) => {
1520
1525
  } catch (e) {
1521
1526
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1522
1527
  }
1523
- if (a.setAttribute("poweredAC", "0.1.112"), _) {
1528
+ if (a.setAttribute("poweredAC", "0.1.114"), _) {
1524
1529
  let e = _.style;
1525
1530
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1526
1531
  }
@@ -1781,34 +1786,34 @@ var e = (e, t, n) => {
1781
1786
  padding: 0 !important;
1782
1787
  }
1783
1788
  `, i.head.appendChild(L), f.setup && f.setup(i, a), f === u.wwos) {
1784
- let e = ye();
1789
+ let e = be();
1785
1790
  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%"));
1786
1791
  }
1787
- if (pe === de.SPLIT_IN_FLOW) {
1788
- if (G && (W = c || y), l && l !== "about:blank") {
1792
+ if (he === pe.SPLIT_IN_FLOW) {
1793
+ if (G && (ee = c || y), l && l !== "about:blank") {
1789
1794
  let e = new URL(l);
1790
1795
  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");
1791
1796
  let n = z.style;
1792
1797
  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);
1793
1798
  }
1794
- 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";
1799
+ 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 = Q(), 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";
1795
1800
  for (let { el: e } of M) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1796
- 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();
1801
+ 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"), ve();
1797
1802
  }
1798
- B || (B = ve(), a.appendChild(B));
1803
+ B || (B = Q(), a.appendChild(B));
1799
1804
  }, Ze = null, Qe = null, $e = !1, et = () => {
1800
1805
  let e = r.innerWidth, n = r.innerHeight;
1801
1806
  if (e > n) {
1802
1807
  let r = n / e, i = Math.round(t.billboardHeight * r);
1803
1808
  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");
1804
1809
  } 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");
1805
- X === "active" ? Ne() : je();
1810
+ Y === "active" ? Ne() : je();
1806
1811
  };
1807
1812
  if (Xe(), l && l !== "about:blank") try {
1808
1813
  let e = new URL(l);
1809
1814
  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");
1810
1815
  let n = R.style;
1811
- 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), Y && (Z = Ye, r.addEventListener("scroll", Z, { passive: !0 }), i.addEventListener("scroll", Z, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", Z, { passive: !0 }));
1816
+ n.position = Z ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Z ? "6" : "1", Z ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), re && (X = Ye, r.addEventListener("scroll", X, { passive: !0 }), i.addEventListener("scroll", X, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", X, { passive: !0 }));
1812
1817
  } catch (e) {
1813
1818
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1814
1819
  }
@@ -1832,7 +1837,7 @@ var e = (e, t, n) => {
1832
1837
  });
1833
1838
  let tt = () => {
1834
1839
  if (!$e) {
1835
- $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), le &&= (r.cancelAnimationFrame(le), null), Fe(), se &&= (r.cancelAnimationFrame(se), null), ce &&= (r.clearTimeout(ce), null), Te({
1840
+ $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), ue &&= (r.cancelAnimationFrame(ue), null), Fe(), ce &&= (r.cancelAnimationFrame(ce), null), le &&= (r.clearTimeout(le), null), Te({
1836
1841
  active: !1,
1837
1842
  progress: 1,
1838
1843
  remainingMs: 0
@@ -1846,13 +1851,13 @@ var e = (e, t, n) => {
1846
1851
  }
1847
1852
  q.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");
1848
1853
  for (let { el: e, orig: t } of V) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1849
- V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), W &&= (ee && (te && te.parentNode === ee ? ee.insertBefore(W, te) : ee.appendChild(W), ee = 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);
1854
+ V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), ee &&= (te && (W && W.parentNode === te ? te.insertBefore(ee, W) : te.appendChild(ee), te = null, W = 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);
1850
1855
  for (let { el: e, orig: t } of M) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1851
1856
  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"));
1852
1857
  }
1853
1858
  };
1854
1859
  return tt;
1855
- }, B = (e = {}) => {
1860
+ }, G = (e = {}) => {
1856
1861
  let t = {
1857
1862
  expandedHeight: 180,
1858
1863
  collapsedHeight: 50,
@@ -1977,7 +1982,7 @@ var e = (e, t, n) => {
1977
1982
  });
1978
1983
  }, U = (e) => {
1979
1984
  for (let t of B()) H(t), t.style.setProperty("padding-bottom", `${e}px`, "important"), V > 0 && t.style.setProperty("padding-top", `${V}px`, "important");
1980
- }, W = () => w || E, ee = () => W()?.contentWindow || null, te = (e) => {
1985
+ }, ee = () => w || E, te = () => ee()?.contentWindow || null, W = (e) => {
1981
1986
  if (!e) return;
1982
1987
  let n = e.style;
1983
1988
  n.display = "block", n.width = "100%", n.height = `${t.expandedHeight}px`, n.minHeight = `${t.expandedHeight}px`, n.maxHeight = `${t.expandedHeight}px`, n.border = "none", n.margin = "0", n.padding = "0", n.position = "absolute", n.left = "0", n.right = "0", n.bottom = "0", n.top = "auto", n.maxWidth = "none", n.overflow = "hidden", n.background = "transparent", e.setAttribute("height", String(t.expandedHeight));
@@ -1995,7 +2000,7 @@ var e = (e, t, n) => {
1995
2000
  if (!C) return;
1996
2001
  k = e;
1997
2002
  let r = I();
1998
- n ? C.style.transition = `height ${t.collapseTransitionMs}ms ease` : C.style.transition = "none", C.style.height = `${e}px`, C.style.bottom = `${r}px`, te(W()), U(e);
2003
+ n ? C.style.transition = `height ${t.collapseTransitionMs}ms ease` : C.style.transition = "none", C.style.height = `${e}px`, C.style.bottom = `${r}px`, W(ee()), U(e);
1999
2004
  }, ne = (e) => {
2000
2005
  let n = e.progress ?? L(), r = {
2001
2006
  type: "bottomscroller:progress",
@@ -2005,9 +2010,9 @@ var e = (e, t, n) => {
2005
2010
  height: k,
2006
2011
  active: n > 0 && n < 1,
2007
2012
  ...e
2008
- }, i = ee();
2013
+ }, i = te();
2009
2014
  i && i.postMessage(r, "*"), typeof window < "u" && window.postMessage && window.postMessage(r, "*"), typeof t.onProgress == "function" && t.onProgress(r);
2010
- }, Y = ({ animate: e = !1 } = {}) => {
2015
+ }, re = ({ animate: e = !1 } = {}) => {
2011
2016
  let t = L(), n = R(t);
2012
2017
  J(n, e), ne({
2013
2018
  phase: z(t),
@@ -2015,13 +2020,13 @@ var e = (e, t, n) => {
2015
2020
  remainingMs: 0,
2016
2021
  active: t > 0 && t < 1
2017
2022
  });
2018
- }, X = () => {
2019
- A = !0, Y({ animate: !0 });
2020
- }, re = () => {
2021
- Y(), M && s.cancelAnimationFrame(M), M = s.requestAnimationFrame(() => {
2022
- M = null, Y();
2023
- });
2023
+ }, Y = () => {
2024
+ A = !0, re({ animate: !0 });
2024
2025
  }, ie = () => {
2026
+ re(), M && s.cancelAnimationFrame(M), M = s.requestAnimationFrame(() => {
2027
+ M = null, re();
2028
+ });
2029
+ }, ae = () => {
2025
2030
  let e = l.parentElement;
2026
2031
  for (; e && e !== c.body && e !== c.documentElement;) {
2027
2032
  let t = s.getComputedStyle(e);
@@ -2033,7 +2038,7 @@ var e = (e, t, n) => {
2033
2038
  orig: e.getAttribute("style")
2034
2039
  }), e.style.overflow = "visible"), e = e.parentElement;
2035
2040
  }
2036
- }, ae = () => {
2041
+ }, oe = () => {
2037
2042
  if (!(!a || a === "about:blank")) try {
2038
2043
  let e = new URL(a, s.location.href);
2039
2044
  e.searchParams.set(n, i), T = c.createElement("iframe"), T.src = e.href, T.setAttribute("data-bottomscroller-banner-iframe", ""), T.setAttribute("scrolling", "no"), T.setAttribute("frameborder", "0"), G(T), (_ || u).appendChild(T);
@@ -2042,7 +2047,7 @@ var e = (e, t, n) => {
2042
2047
  }
2043
2048
  };
2044
2049
  return (() => {
2045
- if (u.setAttribute("poweredAC", "0.1.112"), m.setup && m.setup(c, u), K(), ae(), ie(), C = c.createElement("div"), C.id = "bottomscroller-shell", C.setAttribute("data-bottomscroller-shell", ""), Object.assign(C.style, {
2050
+ if (u.setAttribute("poweredAC", "0.1.114"), m.setup && m.setup(c, u), K(), oe(), ae(), C = c.createElement("div"), C.id = "bottomscroller-shell", C.setAttribute("data-bottomscroller-shell", ""), Object.assign(C.style, {
2046
2051
  position: "fixed",
2047
2052
  left: "0",
2048
2053
  bottom: "0",
@@ -2057,28 +2062,28 @@ var e = (e, t, n) => {
2057
2062
  background: "transparent"
2058
2063
  }), a && a !== "about:blank") try {
2059
2064
  let e = new URL(a, s.location.href);
2060
- e.searchParams.set(n, r), w = c.createElement("iframe"), w.src = e.href, w.setAttribute("data-bottomscroller-display-iframe", ""), w.setAttribute("scrolling", "no"), w.setAttribute("frameborder", "0"), te(w), w.addEventListener("load", () => {
2061
- q(), Y();
2065
+ e.searchParams.set(n, r), w = c.createElement("iframe"), w.src = e.href, w.setAttribute("data-bottomscroller-display-iframe", ""), w.setAttribute("scrolling", "no"), w.setAttribute("frameborder", "0"), W(w), w.addEventListener("load", () => {
2066
+ q(), re();
2062
2067
  }, { once: !0 }), C.appendChild(w);
2063
2068
  } catch (e) {
2064
2069
  console.warn("[bottomscroller] Could not create display iframe:", e);
2065
2070
  }
2066
- w || (D = E.parentElement, O = E.nextSibling, te(E), E.style.visibility = "", E.style.pointerEvents = "", E.style.position = "relative", C.appendChild(E), q()), c.body.appendChild(C), Y(), N = (e) => {
2067
- e?.data?.type === "bottomscroller:collapse" && X();
2068
- }, s.addEventListener("message", N), j = re, s.addEventListener("scroll", j, { passive: !0 }), c.addEventListener("scroll", j, { passive: !0 }), c.scrollingElement?.addEventListener("scroll", j, { passive: !0 }), s.visualViewport?.addEventListener("resize", re, { passive: !0 });
2071
+ w || (D = E.parentElement, O = E.nextSibling, W(E), E.style.visibility = "", E.style.pointerEvents = "", E.style.position = "relative", C.appendChild(E), q()), c.body.appendChild(C), re(), N = (e) => {
2072
+ e?.data?.type === "bottomscroller:collapse" && Y();
2073
+ }, s.addEventListener("message", N), j = ie, s.addEventListener("scroll", j, { passive: !0 }), c.addEventListener("scroll", j, { passive: !0 }), c.scrollingElement?.addEventListener("scroll", j, { passive: !0 }), s.visualViewport?.addEventListener("resize", ie, { passive: !0 });
2069
2074
  })(), () => {
2070
- N &&= (s.removeEventListener("message", N), null), j &&= (s.removeEventListener("scroll", j), c.removeEventListener("scroll", j), c.scrollingElement?.removeEventListener("scroll", j), null), M &&= (s.cancelAnimationFrame(M), null), s.visualViewport?.removeEventListener("resize", re), w &&= (w.remove(), null), T &&= (T.remove(), null), C &&= (D && E.parentElement === C && (O ? D.insertBefore(E, O) : D.appendChild(E)), C.remove(), null);
2075
+ N &&= (s.removeEventListener("message", N), null), j &&= (s.removeEventListener("scroll", j), c.removeEventListener("scroll", j), c.scrollingElement?.removeEventListener("scroll", j), null), M &&= (s.cancelAnimationFrame(M), null), s.visualViewport?.removeEventListener("resize", ie), w &&= (w.remove(), null), T &&= (T.remove(), null), C &&= (D && E.parentElement === C && (O ? D.insertBefore(E, O) : D.appendChild(E)), C.remove(), null);
2071
2076
  for (let { el: e, orig: t } of x) t ? e.setAttribute("style", t) : e.removeAttribute("style");
2072
2077
  x.length = 0;
2073
2078
  for (let { el: e, paddingBottom: t, paddingBottomPriority: n, paddingTop: r, paddingTopPriority: i } of S) t ? e.style.setProperty("padding-bottom", t, n) : e.style.removeProperty("padding-bottom"), r ? e.style.setProperty("padding-top", r, i) : e.style.removeProperty("padding-top");
2074
2079
  S.length = 0, h ? u.setAttribute("style", h) : u.removeAttribute("style"), g ? l.setAttribute("style", g) : l.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), y && (b ? y.setAttribute("style", b) : y.removeAttribute("style"));
2075
2080
  };
2076
- }, V = () => {};
2077
- function H({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2078
- typeof V == "function" && V();
2081
+ }, K = () => {};
2082
+ function q({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2083
+ typeof K == "function" && K();
2079
2084
  let o = () => {};
2080
- 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;
2085
+ return e === "fireplace" ? o = m(t) : e === "fireplace-collant" ? o = h(t) : e === "logomorph" ? o = H(n, r, i) : e === "dynamicheading" ? o = V(a) : e === "interscroller" ? o = ee(a) : e === "liquidframe" ? o = te(a) : e === "mobilefireplace" ? o = W(a) : e === "bottomscroller" ? o = G(a) : console.warn("[powered-ad-config] Unknown ad format:", e), K = typeof o == "function" ? o : () => {}, K;
2081
2086
  }
2082
- H.version = "0.1.112";
2087
+ q.version = "0.1.114";
2083
2088
  //#endregion
2084
- export { H as default };
2089
+ export { q as default };