@epam/ai-dial-celebrations 1.3.0-dev.16 → 1.3.0-dev.160

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.
package/halloween.js CHANGED
@@ -149,27 +149,27 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
149
149
  return c;
150
150
  }, D = 35e3, O = 35500, k = /* @__PURE__ */ function(e) {
151
151
  return e.Mummy = "mummy", e.Skeleton = "skeleton", e;
152
- }({}), A = (e, t, n) => e + (t - e) * n, j = (e, t, n) => Math.max(t, Math.min(e, n)), M = (e) => e / D, N = (e) => e.sort((e, t) => e.time - t.time).map((e) => ({
153
- offset: M(e.time),
152
+ }({}), A = (e, t, n) => e + (t - e) * n, ee = (e, t, n) => Math.max(t, Math.min(e, n)), j = (e) => e / D, M = (e) => e.sort((e, t) => e.time - t.time).map((e) => ({
153
+ offset: j(e.time),
154
154
  transform: `translate(${e.x}px, ${e.y}px) rotate(${e.angle ?? 0}deg)`,
155
155
  opacity: e.opacity ?? 1,
156
156
  easing: "linear"
157
- })), ee = (e) => e.sort((e, t) => e[0] - t[0]).map(([e, t]) => ({
158
- offset: M(e),
157
+ })), te = (e) => e.sort((e, t) => e[0] - t[0]).map(([e, t]) => ({
158
+ offset: j(e),
159
159
  transform: `rotate(${t}deg)`,
160
160
  easing: "ease-in-out"
161
- })), P = (e) => e.map(([e, t]) => ({
162
- offset: M(e),
161
+ })), N = (e) => e.map(([e, t]) => ({
162
+ offset: j(e),
163
163
  transform: `scaleX(${t})`,
164
164
  easing: "steps(1, end)"
165
- })), F = (e) => ({
165
+ })), P = (e) => ({
166
166
  x: 48 + 47 * Math.cos(e * Math.PI / 180),
167
167
  y: 30 + 47 * Math.sin(e * Math.PI / 180)
168
- }), I = {
168
+ }), F = {
169
169
  x: 18,
170
170
  y: 174
171
- }, L = (e, t) => {
172
- let { width: n, height: r, rtl: i } = e, a = Math.max(100, r - 22), o = t ? 9 : 11, s = t ? .64 : .8, c = t ? .5 : .76, l = Math.asin(j((90 - o / s - 30) / 47, -1, 1)) * 180 / Math.PI, u = F(l), d = t ? 12 : 18, f = t ? 4 : 6, p = [], m = e.surfaces.map((e, t) => ({
171
+ }, I = (e, t) => {
172
+ let { width: n, height: r, rtl: i } = e, a = Math.max(100, r - 22), o = t ? 9 : 11, s = t ? .64 : .8, c = t ? .5 : .76, l = Math.asin(ee((90 - o / s - 30) / 47, -1, 1)) * 180 / Math.PI, u = P(l), d = t ? 12 : 18, f = t ? 4 : 6, p = [], m = e.surfaces.map((e, t) => ({
173
173
  index: t,
174
174
  left: i ? n - e.rect.right : e.rect.left,
175
175
  right: i ? n - e.rect.left : e.rect.right,
@@ -255,7 +255,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
255
255
  y: a - o
256
256
  }, b, b + 420, 12), _.push(g);
257
257
  }
258
- let y = h[d - 1] + 18, b = n * .65, x = 10900, S = 12600, C = (e) => A(y, b, j((e - x) / (S - x), 0, 1));
258
+ let y = h[d - 1] + 18, b = n * .65, x = 10900, S = 12600, C = (e) => A(y, b, ee((e - x) / 1700, 0, 1));
259
259
  h.forEach((e, t) => {
260
260
  if (e < b) return;
261
261
  let n = A(x, S, (y - e) / (y - b));
@@ -398,10 +398,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
398
398
  S.push([t, -76]);
399
399
  };
400
400
  e < 2 && (C(4800 + d, 5900 + d), C(12800 + d, 14e3 + d)), C(15e3 + d, 20400 + d), C(27800 + d, 30300 + d), w.push({
401
- frames: N(y),
402
- head: ee(b),
403
- wing: ee(S),
404
- facing: P([
401
+ frames: M(y),
402
+ head: te(b),
403
+ wing: te(S),
404
+ facing: N([
405
405
  [0, 1],
406
406
  [12600, -1],
407
407
  [14500, 1],
@@ -412,9 +412,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
412
412
  ])
413
413
  });
414
414
  }
415
- let T = [], E = a - I.y * c, O = I.x * c, k = 28400, M = 32600, L = n * (t ? .66 : .74), R = (e) => A(k, M, (L - e) / (L - -70));
415
+ let T = [], E = a - F.y * c, O = F.x * c, k = 28400, j = 32600, I = n * (t ? .66 : .74), L = (e) => A(k, j, (I - e) / (I - -70));
416
416
  g.forEach((e, t) => {
417
- let n = R(e);
417
+ let n = L(e);
418
418
  p.push({
419
419
  time: n,
420
420
  x: e,
@@ -495,14 +495,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
495
495
  opacity: 1
496
496
  }, {
497
497
  time: 26600,
498
- x: L - O + r,
498
+ x: I - O + r,
499
499
  y: E
500
500
  }, {
501
501
  time: k,
502
- x: L - O + r,
502
+ x: I - O + r,
503
503
  y: E
504
504
  }, {
505
- time: M,
505
+ time: j,
506
506
  x: -70 - O + r,
507
507
  y: E
508
508
  }, {
@@ -527,10 +527,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
527
527
  };
528
528
  e === 0 && (c(9e3, 10500, 500), c(10900, 12600, 650), c(16400, 19400, 320)), c(i, 26600, 600), c(k, 34700, 600), T.push({
529
529
  kind: e === 0 ? "mummy" : "skeleton",
530
- frames: N(a),
531
- arms: ee(o),
532
- legs: s.map(ee),
533
- facing: P(e === 0 ? [
530
+ frames: M(a),
531
+ arms: te(o),
532
+ legs: s.map(te),
533
+ facing: N(e === 0 ? [
534
534
  [0, 1],
535
535
  [16500, -1],
536
536
  [2e4, 1],
@@ -546,7 +546,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
546
546
  janitorScale: c,
547
547
  peckAngle: l,
548
548
  sweets: _.map((e, t) => ({
549
- frames: N(e),
549
+ frames: M(e),
550
550
  floorX: g[t]
551
551
  })),
552
552
  birds: w,
@@ -554,7 +554,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
554
554
  contacts: p,
555
555
  animationLimit: t ? 60 : 80
556
556
  };
557
- }, R = 11500, te = 12e3, ne = 10450, re = 11400, ie = /* @__PURE__ */ function(e) {
557
+ }, L = 11500, ne = 12e3, re = 10450, ie = 11400, R = /* @__PURE__ */ function(e) {
558
558
  return e.Body = "body", e.Skull = "skull", e.Face = "face", e.ArmLeft = "arm-left", e.ArmRight = "arm-right", e.LegLeft = "leg-left", e.LegRight = "leg-right", e;
559
559
  }({}), z = {
560
560
  width: 100,
@@ -591,7 +591,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
591
591
  frames(e) {
592
592
  return [...this.keys].sort((e, t) => e.key[0] - t.key[0]).map(({ key: [t, ...n], easing: r }) => ({
593
593
  ...e(n),
594
- offset: t / R,
594
+ offset: t / L,
595
595
  easing: r
596
596
  }));
597
597
  }
@@ -636,7 +636,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
636
636
  time: e,
637
637
  kind: t,
638
638
  ...n
639
- }), w = new H(), T = new H(), E = new H(), D = new H(), O = new H(), k = new H(), A = new H(), j = new H(), M = new H(), N = new H(), ee = new H(), P = new H(), F = new H(), I = new H(), L = new H(), te = new H(), ie = new H();
639
+ }), w = new H(), T = new H(), E = new H(), D = new H(), O = new H(), k = new H(), A = new H(), ee = new H(), j = new H(), M = new H(), te = new H(), N = new H(), P = new H(), F = new H(), I = new H(), ne = new H(), R = new H();
640
640
  w.add("linear", [
641
641
  0,
642
642
  v,
@@ -653,7 +653,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
653
653
  }, {
654
654
  x: v,
655
655
  y: g
656
- }, 300, 1e3, 130 * o), N.add("linear", [
656
+ }, 300, 1e3, 130 * o), M.add("linear", [
657
657
  0,
658
658
  y,
659
659
  h,
@@ -663,7 +663,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
663
663
  y,
664
664
  h,
665
665
  1
666
- ]), Se(N, {
666
+ ]), Se(M, {
667
667
  x: y,
668
668
  y: h
669
669
  }, {
@@ -695,7 +695,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
695
695
  0,
696
696
  .97,
697
697
  1.04
698
- ]), E.add(B, [1320, 0]), P.add("linear", [0, 0], [
698
+ ]), E.add(B, [1320, 0]), N.add("linear", [0, 0], [
699
699
  1050,
700
700
  0,
701
701
  .94,
@@ -705,7 +705,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
705
705
  0,
706
706
  .94,
707
707
  1.08
708
- ]), P.add(V, [
708
+ ]), N.add(V, [
709
709
  1150,
710
710
  0,
711
711
  1.1,
@@ -715,22 +715,22 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
715
715
  0,
716
716
  .96,
717
717
  1.05
718
- ]), P.add(B, [1440, 0]), [
718
+ ]), N.add(B, [1440, 0]), [
719
+ ee,
719
720
  j,
720
- M,
721
- te,
722
- ie
721
+ ne,
722
+ R
723
723
  ].forEach((e, t) => e.add(B, [0, 0], [t < 2 ? 1e3 : 1150, t % 2 ? -9 : 9], [t < 2 ? 1300 : 1420, 0])), [
724
724
  k,
725
725
  A,
726
- I,
727
- L
726
+ F,
727
+ I
728
728
  ].forEach((e, t) => e.add(B, [0, 0], [t < 2 ? 850 : 1e3, t % 2 ? -35 : 35], [t < 2 ? 1250 : 1400, 0])), D.add("linear", [
729
729
  0,
730
730
  0,
731
731
  1,
732
732
  1
733
- ]), F.add("linear", [0, 0]), w.add(B, [
733
+ ]), P.add("linear", [0, 0]), w.add(B, [
734
734
  1400,
735
735
  v,
736
736
  g
@@ -746,7 +746,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
746
746
  3800,
747
747
  v + 8,
748
748
  g
749
- ]), N.add(me, [
749
+ ]), M.add(me, [
750
750
  1440,
751
751
  y,
752
752
  _
@@ -765,7 +765,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
765
765
  ]);
766
766
  for (let e = 0; e < 8; e++) {
767
767
  let t = 1400 + e * 400, n = e % 2 == 0;
768
- E.add(B, [t, 0], [t + 200, -4]), P.add(me, [t + 40, 0], [t + 200, -5]), D.add(B, [
768
+ E.add(B, [t, 0], [t + 200, -4]), N.add(me, [t + 40, 0], [t + 200, -5]), D.add(B, [
769
769
  t,
770
770
  0,
771
771
  1,
@@ -775,22 +775,22 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
775
775
  n ? 6 : -6,
776
776
  1,
777
777
  1
778
- ]), F.add(me, [t + 40, 0], [t + 200, n ? -8 : 8]), (n ? j : M).add(B, [t, 0], [t + 150, n ? 18 : -18], [t + 350, 0]), (n ? ie : te).add(me, [t + 40, 0], [t + 170, n ? -20 : 20], [t + 360, 0]), k.add(B, [t + 200, n ? 110 : 20]), A.add(B, [t + 200, n ? -20 : -110]), I.add(me, [t + 200, n ? 45 : -10]), L.add(me, [t + 200, n ? 10 : -45]);
778
+ ]), P.add(me, [t + 40, 0], [t + 200, n ? -8 : 8]), (n ? ee : j).add(B, [t, 0], [t + 150, n ? 18 : -18], [t + 350, 0]), (n ? R : ne).add(me, [t + 40, 0], [t + 170, n ? -20 : 20], [t + 360, 0]), k.add(B, [t + 200, n ? 110 : 20]), A.add(B, [t + 200, n ? -20 : -110]), F.add(me, [t + 200, n ? 45 : -10]), I.add(me, [t + 200, n ? 10 : -45]);
779
779
  }
780
780
  w.add(B, [
781
781
  4600,
782
782
  v,
783
783
  g
784
- ]), N.add("linear", [
784
+ ]), M.add("linear", [
785
785
  4600,
786
786
  y,
787
787
  _
788
788
  ]), [
789
789
  k,
790
790
  A,
791
- I,
792
- L
793
- ].forEach((e) => e.add(B, [4600, 0])), E.add(B, [4600, 0]), P.add(B, [4600, 0]), F.add(B, [4600, 0]), E.add(B, [4850, 4], [5050, -2]), E.add(V, [5200, 0], [5300, -5]), E.add(B, [5500, 0]), D.add(B, [
791
+ F,
792
+ I
793
+ ].forEach((e) => e.add(B, [4600, 0])), E.add(B, [4600, 0]), N.add(B, [4600, 0]), P.add(B, [4600, 0]), E.add(B, [4850, 4], [5050, -2]), E.add(V, [5200, 0], [5300, -5]), E.add(B, [5500, 0]), D.add(B, [
794
794
  4600,
795
795
  0,
796
796
  1,
@@ -820,14 +820,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
820
820
  0,
821
821
  1,
822
822
  0
823
- ]), O.add(ge, [0, 1], [5200, 0], [9950, 1], [R, 1]);
823
+ ]), O.add(ge, [0, 1], [5200, 0], [9950, 1], [L, 1]);
824
824
  let se = {
825
825
  x: v + 50 * o,
826
826
  y: g + z.skull.y * o
827
827
  };
828
828
  C(5200, "launch", se), k.add(V, [5200, 0], [5350, 140]), A.add(V, [5200, 0], [5350, -140]), k.add(B, [5650, 140], [5900, 80]), A.add(B, [5650, -140], [5900, -80]);
829
829
  for (let e = 6200, t = 0; e < 9200; e += 300, t++) k.add(B, [e, t % 2 ? 80 : 92]), A.add(B, [e, t % 2 ? -92 : -80]);
830
- k.add(B, [9300, 80], [9550, 0]), A.add(B, [9300, -80], [9550, 0]), T.add(ge, [0, 1], [5700, -1], [7e3, 1], [R, 1]), w.add(B, [
830
+ k.add(B, [9300, 80], [9550, 0]), A.add(B, [9300, -80], [9550, 0]), T.add(ge, [0, 1], [5700, -1], [7e3, 1], [L, 1]), w.add(B, [
831
831
  5900,
832
832
  v,
833
833
  g
@@ -847,7 +847,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
847
847
  9400,
848
848
  b,
849
849
  g
850
- ]), Ce([j, M], 5950, 6700, 360, 11), Ce([j, M], 7150, 8200, 360, 11), E.add("linear", [8600, 0], [9400, 0]);
850
+ ]), Ce([ee, j], 5950, 6700, 360, 11), Ce([ee, j], 7150, 8200, 360, 11), E.add("linear", [8600, 0], [9400, 0]);
851
851
  let we = new H(), Te = new H(), Ee = new H(), De = {
852
852
  x: p + .72 * m,
853
853
  y: d - c
@@ -912,7 +912,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
912
912
  ke.y + Me * .6,
913
913
  je + 20,
914
914
  1
915
- ]), Te.add(B, [0, 1], [5450, 1], [5550, 0], [5650, 1], [R, 1]), Ee.add(ge, [0, 1], [5550, 0], [R, 0]);
915
+ ]), Te.add(B, [0, 1], [5450, 1], [5550, 0], [5650, 1], [L, 1]), Ee.add(ge, [0, 1], [5550, 0], [L, 0]);
916
916
  let Ne = {
917
917
  x: ke.x + Me,
918
918
  y: ke.y + Me
@@ -936,16 +936,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
936
936
  x: Ie.x,
937
937
  y: Ie.y - c
938
938
  }, _, 0, -1, -30);
939
- C(7900, "catch", Ne), C(9400, "place", Ie), P.add(B, [5300, 0]), P.add(V, [5420, 12]), P.add(B, [5750, 0]), I.add(V, [5300, 0], [5420, 120]), L.add(V, [5300, 0], [5420, -120]), I.add(B, [5900, 0]), L.add(B, [5900, 0]), F.add(B, [5300, 0], [5450, -10], [6200, 0], [6500, 12]), F.add(B, [7200, 12], [7450, 0]), ee.add(ge, [0, -1], [6300, 1], [8300, -1], [R, -1]), P.add(B, [7200, 0], [7400, 10]), P.add(V, [7500, -4]), P.add(B, [7780, 0]), P.add("linear", [7880, 28], [7900, 28], [8250, 0], [9050, 0], [9200, 8], [9400, 0]), P.add(V, [
939
+ C(7900, "catch", Ne), C(9400, "place", Ie), N.add(B, [5300, 0]), N.add(V, [5420, 12]), N.add(B, [5750, 0]), F.add(V, [5300, 0], [5420, 120]), I.add(V, [5300, 0], [5420, -120]), F.add(B, [5900, 0]), I.add(B, [5900, 0]), P.add(B, [5300, 0], [5450, -10], [6200, 0], [6500, 12]), P.add(B, [7200, 12], [7450, 0]), te.add(ge, [0, -1], [6300, 1], [8300, -1], [L, -1]), N.add(B, [7200, 0], [7400, 10]), N.add(V, [7500, -4]), N.add(B, [7780, 0]), N.add("linear", [7880, 28], [7900, 28], [8250, 0], [9050, 0], [9200, 8], [9400, 0]), N.add(V, [
940
940
  9650,
941
941
  0,
942
942
  1.06,
943
943
  .92
944
- ]), P.add(B, [9800, 0]), N.add("linear", [
944
+ ]), N.add(B, [9800, 0]), M.add("linear", [
945
945
  7450,
946
946
  y,
947
947
  _
948
- ]), Se(N, {
948
+ ]), Se(M, {
949
949
  x: y,
950
950
  y: _
951
951
  }, {
@@ -953,7 +953,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
953
953
  y: _
954
954
  }, 7450, 7850, 22 * s);
955
955
  let Re = Le.y;
956
- N.add("linear", [
956
+ M.add("linear", [
957
957
  7900,
958
958
  Fe.x,
959
959
  _
@@ -977,17 +977,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
977
977
  9400,
978
978
  Le.x,
979
979
  Re
980
- ]), N.add(he, [
980
+ ]), M.add(he, [
981
981
  9400,
982
982
  Le.x,
983
983
  Re
984
- ]), N.add("linear", [
984
+ ]), M.add("linear", [
985
985
  9650,
986
986
  Le.x,
987
987
  _
988
988
  ]);
989
989
  let U = Le.x + 36 * s;
990
- N.add(B, [
990
+ M.add(B, [
991
991
  9800,
992
992
  Le.x,
993
993
  _
@@ -995,16 +995,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
995
995
  10050,
996
996
  U,
997
997
  _
998
- ]), Ce([te, ie], 9800, 10050, 250, 12), C(7850, "landing", {
998
+ ]), Ce([ne, R], 9800, 10050, 250, 12), C(7850, "landing", {
999
999
  x: Fe.x + 50 * s,
1000
1000
  y: d
1001
1001
  }), C(9650, "landing", {
1002
1002
  x: Le.x + 50 * s,
1003
1003
  y: d
1004
- }), L.add("linear", [7700, 0], [7850, Fe.direction - ce], [7900, Fe.direction - ce], [8250, le - ce], [9200, le - ce], [9400, -30 - ce]), L.add(B, [9650, 0]), I.add(B, [7450, -60], [7850, 30], [8300, 0]), I.add(B, [9200, 0], [9400, 40], [9650, 0]), Ce([te, ie], 7200, 7450, 250, 16), Ce([te, ie], 8300, 9050, 250, 14), [te, ie].forEach((e, t) => e.add(B, [7500, t ? -20 : 20], [7800, 0], [7880, t ? -14 : 14], [8250, 0], [9200, t ? -10 : 10], [9330, t ? 6 : -6], [9650, 0]));
1004
+ }), I.add("linear", [7700, 0], [7850, Fe.direction - ce], [7900, Fe.direction - ce], [8250, le - ce], [9200, le - ce], [9400, -30 - ce]), I.add(B, [9650, 0]), F.add(B, [7450, -60], [7850, 30], [8300, 0]), F.add(B, [9200, 0], [9400, 40], [9650, 0]), Ce([ne, R], 7200, 7450, 250, 16), Ce([ne, R], 8300, 9050, 250, 14), [ne, R].forEach((e, t) => e.add(B, [7500, t ? -20 : 20], [7800, 0], [7880, t ? -14 : 14], [8250, 0], [9200, t ? -10 : 10], [9330, t ? 6 : -6], [9650, 0]));
1005
1005
  let ze = [], Be = je + 20, W = Math.round(Be / 360) * 360;
1006
1006
  for (let e = 7900; e <= 9400; e += 50) {
1007
- let [t, n] = N.sample(e), [r] = P.sample(e), [i] = L.sample(e), a = ue({
1007
+ let [t, n] = M.sample(e), [r] = N.sample(e), [i] = I.sample(e), a = ue({
1008
1008
  x: t,
1009
1009
  y: n
1010
1010
  }, s, e < 8300 ? 1 : -1, r, i + ce), o = {
@@ -1030,7 +1030,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1030
1030
  W,
1031
1031
  0
1032
1032
  ]), we.add("linear", [
1033
- R,
1033
+ L,
1034
1034
  Ie.x,
1035
1035
  Ie.y,
1036
1036
  W,
@@ -1043,7 +1043,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1043
1043
  9700,
1044
1044
  x,
1045
1045
  g
1046
- ]), Ce([j, M], 9450, 9700, 250, 9), k.add(B, [9700, 35], [9850, 0]), A.add(B, [9700, -35], [9850, 0]), D.add("linear", [
1046
+ ]), Ce([ee, j], 9450, 9700, 250, 9), k.add(B, [9700, 35], [9850, 0]), A.add(B, [9700, -35], [9850, 0]), D.add("linear", [
1047
1047
  9400,
1048
1048
  0,
1049
1049
  1,
@@ -1073,7 +1073,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1073
1073
  0,
1074
1074
  1,
1075
1075
  1
1076
- ]), F.add(B, [9700, 0], [9850, -14], [10050, 0]), I.add(B, [9750, 0], [9880, 60], [10050, 0]);
1076
+ ]), P.add(B, [9700, 0], [9850, -14], [10050, 0]), F.add(B, [9750, 0], [9880, 60], [10050, 0]);
1077
1077
  let Ve = u ? e.word : void 0, He = Ve && {
1078
1078
  x: i ? n - Ve.rect.left - Ve.rect.width / 2 : Ve.rect.left + Ve.rect.width / 2,
1079
1079
  y: Ve.rect.top + Ve.rect.height / 2,
@@ -1110,7 +1110,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1110
1110
  0,
1111
1111
  .97,
1112
1112
  1.05
1113
- ]), E.add(B, [10450, 0], [R, 0]), Je) {
1113
+ ]), E.add(B, [10450, 0], [L, 0]), Je) {
1114
1114
  let { pose: e, box: t } = Je, n = x + G * 60;
1115
1115
  k.add(B, [10100, 0], [10250, 120], [10450, 20]), A.add(B, [10100, 0], [10250, -120], [10450, -20]), k.add(V, [10650, 20], [10780, 75]), A.add(V, [10650, -20], [10780, -75]), k.add(B, [11250, 40]), A.add(B, [11250, -40]), D.add(B, [
1116
1116
  10650,
@@ -1138,7 +1138,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1138
1138
  h + 20,
1139
1139
  0
1140
1140
  ]), w.add("linear", [
1141
- R,
1141
+ L,
1142
1142
  n,
1143
1143
  h + 20,
1144
1144
  0
@@ -1150,7 +1150,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1150
1150
  x: e.x + G * 60,
1151
1151
  y: h + 20
1152
1152
  };
1153
- ee.add(ge, [10100, G]), F.add(B, [10100, 0], [10220, -16], [10450, 0]), P.add(B, [10100, 0], [10250, 10]), P.add("linear", [10450, 0], [11150, 0], [R, 0]), N.add(B, [
1153
+ te.add(ge, [10100, G]), P.add(B, [10100, 0], [10220, -16], [10450, 0]), N.add(B, [10100, 0], [10250, 10]), N.add("linear", [10450, 0], [11150, 0], [L, 0]), M.add(B, [
1154
1154
  10100,
1155
1155
  U,
1156
1156
  _
@@ -1158,13 +1158,13 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1158
1158
  10250,
1159
1159
  U,
1160
1160
  _
1161
- ]), Se(N, {
1161
+ ]), Se(M, {
1162
1162
  x: U,
1163
1163
  y: _
1164
1164
  }, {
1165
1165
  x: e.x,
1166
1166
  y: e.y
1167
- }, 10250, 10450, 18 * s), N.add("linear", [
1167
+ }, 10250, 10450, 18 * s), M.add("linear", [
1168
1168
  10550,
1169
1169
  e.x,
1170
1170
  fe(e.y, _, .35)
@@ -1176,16 +1176,16 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1176
1176
  10800,
1177
1177
  e.x,
1178
1178
  _
1179
- ]), Se(N, {
1179
+ ]), Se(M, {
1180
1180
  x: e.x,
1181
1181
  y: _
1182
- }, r, 10800, 11150, 26 * s), N.add("linear", [
1182
+ }, r, 10800, 11150, 26 * s), M.add("linear", [
1183
1183
  11200,
1184
1184
  r.x,
1185
1185
  r.y,
1186
1186
  0
1187
- ]), N.add("linear", [
1188
- R,
1187
+ ]), M.add("linear", [
1188
+ L,
1189
1189
  r.x,
1190
1190
  r.y,
1191
1191
  0
@@ -1198,7 +1198,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1198
1198
  }), C(10700, "landing", {
1199
1199
  x: e.x + 50 * s,
1200
1200
  y: d
1201
- }), L.add(B, [10100, 0], [10250, 12]), L.add("linear", [10450, e.direction - ce], [10700, -12 - ce], [11150, -12 - ce]), I.add(B, [10250, 40], [10450, -30], [10800, 60], [11150, 30]), [te, ie].forEach((e, t) => e.add(B, [10250, t ? -12 : 12], [10450, t ? 8 : -8], [10700, 0], [10800, 0], [11e3, t ? -25 : 25], [R, t ? -25 : 25])), [j, M].forEach((e, t) => e.add(B, [10850, 0], [11050, t ? -25 : 25], [R, t ? -25 : 25]));
1201
+ }), I.add(B, [10100, 0], [10250, 12]), I.add("linear", [10450, e.direction - ce], [10700, -12 - ce], [11150, -12 - ce]), F.add(B, [10250, 40], [10450, -30], [10800, 60], [11150, 30]), [ne, R].forEach((e, t) => e.add(B, [10250, t ? -12 : 12], [10450, t ? 8 : -8], [10700, 0], [10800, 0], [11e3, t ? -25 : 25], [L, t ? -25 : 25])), [ee, j].forEach((e, t) => e.add(B, [10850, 0], [11050, t ? -25 : 25], [L, t ? -25 : 25]));
1202
1202
  let i = {
1203
1203
  x: t.x,
1204
1204
  y: t.y
@@ -1210,15 +1210,15 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1210
1210
  0,
1211
1211
  0
1212
1212
  ], [
1213
- ne,
1213
+ re,
1214
1214
  i.x,
1215
1215
  i.y,
1216
1216
  0,
1217
1217
  0
1218
1218
  ]);
1219
1219
  let a = i;
1220
- for (let e = ne; e <= 11100; e += 50) {
1221
- let [n, r] = N.sample(e), [i] = P.sample(e), [o] = L.sample(e), c = ue({
1220
+ for (let e = re; e <= 11100; e += 50) {
1221
+ let [n, r] = M.sample(e), [i] = N.sample(e), [o] = I.sample(e), c = ue({
1222
1222
  x: n,
1223
1223
  y: r
1224
1224
  }, s, G, i, o + ce);
@@ -1233,36 +1233,36 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1233
1233
  e,
1234
1234
  a.x,
1235
1235
  a.y,
1236
- 6 * Math.sin((e - ne) / 130),
1236
+ 6 * Math.sin((e - re) / 130),
1237
1237
  1
1238
1238
  ]);
1239
1239
  }
1240
- Se(Ye, a, i, 11100, re, 90 * o, (e) => [-360 * (1 - e), 1]), Ye.add("linear", [
1241
- re,
1240
+ Se(Ye, a, i, 11100, ie, 90 * o, (e) => [-360 * (1 - e), 1]), Ye.add("linear", [
1241
+ ie,
1242
1242
  i.x,
1243
1243
  i.y,
1244
1244
  0,
1245
1245
  0
1246
1246
  ], [
1247
- R,
1247
+ L,
1248
1248
  i.x,
1249
1249
  i.y,
1250
1250
  0,
1251
1251
  0
1252
1252
  ]);
1253
- } else N.add(B, [
1253
+ } else M.add(B, [
1254
1254
  10100,
1255
1255
  U,
1256
1256
  _
1257
- ]), N.add(V, [
1257
+ ]), M.add(V, [
1258
1258
  10250,
1259
1259
  U,
1260
1260
  _ - 14
1261
- ]), N.add(he, [
1261
+ ]), M.add(he, [
1262
1262
  10450,
1263
1263
  U,
1264
1264
  _
1265
- ]), P.add(B, [
1265
+ ]), N.add(B, [
1266
1266
  10100,
1267
1267
  0,
1268
1268
  1.06,
@@ -1272,13 +1272,13 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1272
1272
  0,
1273
1273
  .96,
1274
1274
  1.06
1275
- ]), P.add(B, [10450, 0], [R, 0]), [k, I].forEach((e) => e.add(B, [10100, 0], [10250, 120], [10450, 20], [11300, 30])), [A, L].forEach((e) => e.add(B, [10100, 0], [10250, -120], [10450, -20], [11300, -30])), Se(w, {
1275
+ ]), N.add(B, [10450, 0], [L, 0]), [k, F].forEach((e) => e.add(B, [10100, 0], [10250, 120], [10450, 20], [11300, 30])), [A, I].forEach((e) => e.add(B, [10100, 0], [10250, -120], [10450, -20], [11300, -30])), Se(w, {
1276
1276
  x,
1277
1277
  y: g
1278
1278
  }, {
1279
1279
  x: x - 40,
1280
1280
  y: h + 20
1281
- }, 10550, 11300, 30 * o), Se(N, {
1281
+ }, 10550, 11300, 30 * o), Se(M, {
1282
1282
  x: U,
1283
1283
  y: _
1284
1284
  }, {
@@ -1290,17 +1290,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1290
1290
  h + 20,
1291
1291
  0
1292
1292
  ]), w.add("linear", [
1293
- R,
1293
+ L,
1294
1294
  x - 40,
1295
1295
  h + 20,
1296
1296
  0
1297
- ]), N.add("linear", [
1297
+ ]), M.add("linear", [
1298
1298
  11350,
1299
1299
  U + 40,
1300
1300
  h + 20,
1301
1301
  0
1302
- ]), N.add("linear", [
1303
- R,
1302
+ ]), M.add("linear", [
1303
+ L,
1304
1304
  U + 40,
1305
1305
  h + 20,
1306
1306
  0
@@ -1308,19 +1308,19 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1308
1308
  x: x + 50 * o,
1309
1309
  y: d
1310
1310
  }), [
1311
+ ee,
1311
1312
  j,
1312
- M,
1313
- te,
1314
- ie
1315
- ].forEach((e, t) => e.add(B, [10500, 0], [10750, t % 2 ? -25 : 25], [R, t % 2 ? -25 : 25]));
1313
+ ne,
1314
+ R
1315
+ ].forEach((e, t) => e.add(B, [10500, 0], [10750, t % 2 ? -25 : 25], [L, t % 2 ? -25 : 25]));
1316
1316
  [
1317
1317
  k,
1318
1318
  A,
1319
+ F,
1319
1320
  I,
1320
- L,
1321
1321
  D,
1322
- F
1323
- ].forEach((e) => e.add("linear", [R, ...e.sample(R)]));
1322
+ P
1323
+ ].forEach((e) => e.add("linear", [L, ...e.sample(L)]));
1324
1324
  let Ze = new H();
1325
1325
  return Ze.add(B, [
1326
1326
  0,
@@ -1385,7 +1385,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1385
1385
  0,
1386
1386
  0
1387
1387
  ], [
1388
- R,
1388
+ L,
1389
1389
  0,
1390
1390
  0
1391
1391
  ]), {
@@ -1416,21 +1416,21 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1416
1416
  face: O.frames(xe),
1417
1417
  "arm-left": k.frames(ve),
1418
1418
  "arm-right": A.frames(ve),
1419
- "leg-left": j.frames(ve),
1420
- "leg-right": M.frames(ve)
1419
+ "leg-left": ee.frames(ve),
1420
+ "leg-right": j.frames(ve)
1421
1421
  }
1422
1422
  },
1423
1423
  partner: {
1424
1424
  scale: s,
1425
- root: N.frames(_e),
1426
- facing: ee.frames(be),
1425
+ root: M.frames(_e),
1426
+ facing: te.frames(be),
1427
1427
  parts: {
1428
- body: P.frames(ye),
1429
- skull: F.frames(ve),
1430
- "arm-left": I.frames(ve),
1431
- "arm-right": L.frames(ve),
1432
- "leg-left": te.frames(ve),
1433
- "leg-right": ie.frames(ve)
1428
+ body: N.frames(ye),
1429
+ skull: P.frames(ve),
1430
+ "arm-left": F.frames(ve),
1431
+ "arm-right": I.frames(ve),
1432
+ "leg-left": ne.frames(ve),
1433
+ "leg-right": R.frames(ve)
1434
1434
  }
1435
1435
  },
1436
1436
  skull: {
@@ -1487,7 +1487,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1487
1487
  [b.Ravens]: 13e3,
1488
1488
  [b.Candy]: O,
1489
1489
  [b.Footprints]: 12e3,
1490
- [b.Skeletons]: te,
1490
+ [b.Skeletons]: ne,
1491
1491
  [b.Cauldron]: 9e3,
1492
1492
  [b.Mimic]: 9e3,
1493
1493
  [b.Bowling]: 9e3,
@@ -1940,14 +1940,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1940
1940
  ], f = () => {
1941
1941
  c || (c = !0, clearTimeout(s), m.disconnect(), o?.(), a.forEach((e) => e.cancel()), u.forEach((e) => document.removeEventListener(e, p, !0)), window.removeEventListener("resize", f), i());
1942
1942
  }, p = (e) => {
1943
- e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || e.type === "visibilitychange" && !document.hidden || f();
1943
+ e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && f();
1944
1944
  }, m = new MutationObserver((e) => {
1945
- let n = e.filter((e) => t.contains(e.target) ? !1 : e.type === "childList" ? ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)) : !0);
1946
- if (d.some(({ element: e }) => !e.isConnected || n.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e)))) {
1947
- f();
1948
- return;
1949
- }
1950
- n.some((e) => e.type === "childList" && e.target instanceof Element && d.some(({ element: t }) => e.target.contains(t))) && d.some(({ element: e, rect: t }) => {
1945
+ let n = e.filter((e) => t.contains(e.target) ? !1 : e.type !== "childList" || ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)));
1946
+ (d.some(({ element: e }) => !e.isConnected || n.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e))) || n.some((e) => e.type === "childList" && e.target instanceof Element && d.some(({ element: t }) => e.target.contains(t))) && d.some(({ element: e, rect: t }) => {
1951
1947
  let n = e.getBoundingClientRect();
1952
1948
  return [
1953
1949
  "left",
@@ -1955,7 +1951,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
1955
1951
  "width",
1956
1952
  "height"
1957
1953
  ].some((e) => Math.abs(n[e] - t[e]) > .5);
1958
- }) && f();
1954
+ })) && f();
1959
1955
  }), h = (e, t) => {
1960
1956
  let n = e.animate(t.map((e) => ({
1961
1957
  easing: "ease-in-out",
@@ -2050,7 +2046,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
2050
2046
  let t = v[e].closest("li");
2051
2047
  t && _.push(t);
2052
2048
  }
2053
- let y = new Set([
2049
+ let y = /* @__PURE__ */ new Set([
2054
2050
  ...m,
2055
2051
  ...h,
2056
2052
  ..._,
@@ -2645,10 +2641,13 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
2645
2641
  })
2646
2642
  ]
2647
2643
  });
2648
- }, bt = s(() => /* @__PURE__ */ h(r, {
2649
- flights: d(() => vt(), []),
2650
- Character: yt
2651
- })), xt = () => {
2644
+ }, bt = s(() => {
2645
+ let e = d(() => vt(), []);
2646
+ return /* @__PURE__ */ h(r, {
2647
+ flights: e,
2648
+ Character: yt
2649
+ });
2650
+ }), xt = () => {
2652
2651
  let { isMobile: e, anchors: n } = t(), r = i(), [a] = p(() => ({
2653
2652
  isMobile: e,
2654
2653
  reducedMotion: r
@@ -2798,7 +2797,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
2798
2797
  let a = Math.max(e.top - r, r - e.bottom, 0);
2799
2798
  if (a >= i) return null;
2800
2799
  let o = Math.sqrt(i ** 2 - a ** 2), s = ((n < t ? e.right + o : e.left - o) - t) / (n - t);
2801
- return s < 0 || s > 1 ? null : wt + s * (Tt - wt);
2800
+ return s < 0 || s > 1 ? null : wt + s * .44000000000000006;
2802
2801
  }, Ot = (e, t, n) => {
2803
2802
  if (!e.length) {
2804
2803
  if (t < 96 || n < 96) return null;
@@ -3097,14 +3096,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3097
3096
  ], c = () => {
3098
3097
  i || (i = !0, clearTimeout(a), u.disconnect(), f.disconnect(), r.forEach((e) => e.cancel()), s.forEach((e) => document.removeEventListener(e, l, !0)), window.removeEventListener("resize", c), n());
3099
3098
  }, l = (e) => {
3100
- e.type === "visibilitychange" && !document.hidden || e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || c();
3099
+ (e.type !== "visibilitychange" || document.hidden) && (e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || c());
3101
3100
  }, u = new MutationObserver((e) => {
3102
3101
  let n = e.filter((e) => !t.contains(e.target) && !(e.type === "childList" && [...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e))));
3103
- if (o.some(({ element: e }) => !e.isConnected || n.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e)))) {
3104
- c();
3105
- return;
3106
- }
3107
- n.some((e) => e.type === "childList" && e.target instanceof Element && o.some(({ element: t }) => e.target.contains(t))) && o.some(({ element: e, rect: t }) => {
3102
+ (o.some(({ element: e }) => !e.isConnected || n.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e))) || n.some((e) => e.type === "childList" && e.target instanceof Element && o.some(({ element: t }) => e.target.contains(t))) && o.some(({ element: e, rect: t }) => {
3108
3103
  let n = e.getBoundingClientRect();
3109
3104
  return [
3110
3105
  "left",
@@ -3112,7 +3107,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3112
3107
  "width",
3113
3108
  "height"
3114
3109
  ].some((e) => Math.abs(n[e] - t[e]) > .5);
3115
- }) && c();
3110
+ })) && c();
3116
3111
  }), d = /* @__PURE__ */ new WeakSet(), f = new ResizeObserver((e) => {
3117
3112
  for (let t of e) {
3118
3113
  let e = o.find((e) => e.element === t.target), n = t.borderBoxSize?.[0];
@@ -3570,7 +3565,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3570
3565
  }, [o, x]), l(() => {
3571
3566
  if (S || _ || o || y.current) return;
3572
3567
  let t = !1, r = (e) => {
3573
- e.type === "visibilitychange" && !document.hidden || (t = !0, x());
3568
+ (e.type !== "visibilitychange" || document.hidden) && (t = !0, x());
3574
3569
  }, i = [
3575
3570
  "pointerdown",
3576
3571
  "keydown",
@@ -3583,7 +3578,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3583
3578
  "visibilitychange"
3584
3579
  ];
3585
3580
  return i.forEach((e) => window.addEventListener(e, r, !0)), Promise.resolve().then(() => {
3586
- !t && !y.current && d(L(Pt(e, n), n));
3581
+ !t && !y.current && d(I(Pt(e, n), n));
3587
3582
  }), () => {
3588
3583
  t = !0, i.forEach((e) => window.removeEventListener(e, r, !0));
3589
3584
  };
@@ -3610,7 +3605,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3610
3605
  x
3611
3606
  ]), /* @__PURE__ */ h("div", {
3612
3607
  ref: b,
3613
- className: "pointer-events-none absolute inset-0 select-none overflow-clip",
3608
+ className: "pointer-events-none absolute inset-0 overflow-clip select-none",
3614
3609
  "aria-hidden": "true",
3615
3610
  inert: !0,
3616
3611
  "data-halloween-scene": "candy",
@@ -3776,7 +3771,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3776
3771
  end: u.landing + f * 2
3777
3772
  };
3778
3773
  let p = pn(u.landing) + 80, m = Math.max(p + 800, pn(u.rebound.end)), h = [[m + 300, Math.min(m + 1900, $t)]];
3779
- $t - h[0][1] > 4e3 && h.push([$t - 1600, $t]);
3774
+ $t - h[0][1] > 4e3 && h.push([21100, $t]);
3780
3775
  let g = u.side, _ = yn(u, 1), v = {
3781
3776
  x: _.x - u.side * a * .14,
3782
3777
  y: _.y
@@ -3809,7 +3804,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3809
3804
  10500,
3810
3805
  18300,
3811
3806
  22950
3812
- ], A = (e) => ln(E, e, 120), j = (e) => ln(D, e, 130), M = (e) => mn(e, nn), N = (e) => {
3807
+ ], A = (e) => ln(E, e, 120), ee = (e) => ln(D, e, 130), j = (e) => mn(e, nn), M = (e) => {
3813
3808
  let t, r = 1, o = {
3814
3809
  x: l.foot.x,
3815
3810
  y: i.rect.top
@@ -3825,14 +3820,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3825
3820
  };
3826
3821
  } else if (e < Ht) t = s, r = 1 - sn(2750, 3e3, 3e3, Ht, e) * .16;
3827
3822
  else if (e < Ut) {
3828
- let n = rn((e - Ht) / (Ut - Ht), 0, 1);
3823
+ let n = rn((e - Ht) / 600, 0, 1);
3829
3824
  t = {
3830
3825
  x: an(s.x, o.x, n),
3831
3826
  y: an(s.y, o.y, n) - Math.sin(n * Math.PI) * a * .6
3832
3827
  };
3833
3828
  } else if (e < Wt) t = o, r = 1 - sn(Ut, 3760, 3800, 3960, e) * .16;
3834
3829
  else if (e < Gt) {
3835
- let n = rn((e - Wt) / (Gt - Wt), 0, 1);
3830
+ let n = rn((e - Wt) / 700, 0, 1);
3836
3831
  t = {
3837
3832
  x: l.foot.x,
3838
3833
  y: an(o.y, l.foot.y, n) - Math.sin(n * Math.PI) * a * .27
@@ -3861,12 +3856,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3861
3856
  }
3862
3857
  return t = {
3863
3858
  x: t.x,
3864
- y: t.y - Math.abs(M(e)) * a * .014 * A(e)
3859
+ y: t.y - Math.abs(j(e)) * a * .014 * A(e)
3865
3860
  }, {
3866
3861
  ...t,
3867
3862
  squash: r
3868
3863
  };
3869
- }, ee = c.flatMap((e, t) => {
3864
+ }, te = c.flatMap((e, t) => {
3870
3865
  let n = e.pushes[0], r = e.pushes[e.pushes.length - 1];
3871
3866
  return [
3872
3867
  {
@@ -3890,7 +3885,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3890
3885
  button: t,
3891
3886
  point: vn(e, n.time)
3892
3887
  }));
3893
- }), P = dn([
3888
+ }), N = dn([
3894
3889
  ...un(0, 1, Math.round(zt / 60)),
3895
3890
  ...[
3896
3891
  Vt,
@@ -3920,18 +3915,18 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3920
3915
  23880,
3921
3916
  tn
3922
3917
  ].map(Y),
3923
- ...ee.map(({ time: e }) => e),
3918
+ ...te.map(({ time: e }) => e),
3924
3919
  ...c.flatMap(({ pushes: e }) => e.flatMap((e) => [
3925
3920
  e.touch - Y(250),
3926
3921
  e.touch,
3927
3922
  ...un(e.start, e.end, 12)
3928
3923
  ]))
3929
3924
  ]);
3930
- s.active = !0, s.rest = l.foot, s.contacts = ee, s.frames = P.map((e) => {
3931
- let t = pn(e), n = N(t);
3925
+ s.active = !0, s.rest = l.foot, s.contacts = te, s.frames = N.map((e) => {
3926
+ let t = pn(e), n = M(t);
3932
3927
  return {
3933
3928
  offset: e,
3934
- opacity: t < 450 ? on(0, 450, t) : 1 - on(tn - 550, 24950, t),
3929
+ opacity: t < 450 ? on(0, 450, t) : 1 - on(24350, 24950, t),
3935
3930
  transform: `translate(${n.x}px, ${n.y}px) scale(${2 - n.squash}, ${n.squash})`,
3936
3931
  easing: "linear"
3937
3932
  };
@@ -3955,12 +3950,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3955
3950
  transform: `scaleX(${u.side})`
3956
3951
  }
3957
3952
  ];
3958
- let F = P.map((e) => {
3959
- let t = pn(e), n = A(t), r = -M(t) * 15 * n - j(t) * 18, i = -Math.max(0, M(t)) * 18 * n;
3953
+ let P = N.map((e) => {
3954
+ let t = pn(e), n = A(t), r = -j(t) * 15 * n - ee(t) * 18, i = -Math.max(0, j(t)) * 18 * n;
3960
3955
  for (let n of c) for (let a of n.pushes) {
3961
3956
  let s = sn(a.touch - Y(250), a.touch, a.end + Y(50), a.end + Y(320), e);
3962
3957
  if (!s) continue;
3963
- let c = vn(n, e), l = N(t), u = hn({
3958
+ let c = vn(n, e), l = M(t), u = hn({
3964
3959
  x: 80 + n.side * (c.x - l.x) / o,
3965
3960
  y: 120 + (c.y - l.y) / o
3966
3961
  });
@@ -3972,17 +3967,17 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
3972
3967
  });
3973
3968
  return [an(r, s[0], a), an(i, s[1], a)];
3974
3969
  });
3975
- s.parts.arm = P.map((e, t) => ({
3970
+ s.parts.arm = N.map((e, t) => ({
3976
3971
  offset: e,
3977
- transform: fn(F[t][0]),
3972
+ transform: fn(P[t][0]),
3978
3973
  easing: "linear"
3979
- })), s.parts.forearm = P.map((e, t) => ({
3974
+ })), s.parts.forearm = N.map((e, t) => ({
3980
3975
  offset: e,
3981
- transform: fn(F[t][1]),
3976
+ transform: fn(P[t][1]),
3982
3977
  easing: "linear"
3983
3978
  }));
3984
- for (let e of P) {
3985
- let t = pn(e), n = ln(w, t), r = ln(T, t, 120), i = ln(C, t) * (1 - Math.max(n, r)), a = sn(2550, 2750, 3e3, 3200, t), o = sn(p, p + 140, m, m + 600, t), c = ln(h, t, 280), l = j(t), u = A(t), d = M(t) * 17 * u, f = O.reduce((e, n) => Math.max(e, 1 - Math.abs(t - n) / 90), 0), g = k.reduce((e, n) => e + sn(n, n + 60, n + 120, n + 240, t), 0), _ = -i * 7 + n * 16 + r * 24 - a * 12 - o * 17 + c * (14 + mn(t, 1.8) * 3) + mn(t, nn * 2) * 1.5 * u;
3979
+ for (let e of N) {
3980
+ let t = pn(e), n = ln(w, t), r = ln(T, t, 120), i = ln(C, t) * (1 - Math.max(n, r)), a = sn(2550, 2750, 3e3, 3200, t), o = sn(p, p + 140, m, m + 600, t), c = ln(h, t, 280), l = ee(t), u = A(t), d = j(t) * 17 * u, f = O.reduce((e, n) => Math.max(e, 1 - Math.abs(t - n) / 90), 0), g = k.reduce((e, n) => e + sn(n, n + 60, n + 120, n + 240, t), 0), _ = -i * 7 + n * 16 + r * 24 - a * 12 - o * 17 + c * (14 + mn(t, 1.8) * 3) + mn(t, nn * 2) * 1.5 * u;
3986
3981
  s.parts.head.push({
3987
3982
  offset: e,
3988
3983
  transform: fn(_),
@@ -4055,14 +4050,14 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4055
4050
  rebound: e.rebound
4056
4051
  });
4057
4052
  }
4058
- s.anchors = [...new Set([
4053
+ s.anchors = [.../* @__PURE__ */ new Set([
4059
4054
  i,
4060
4055
  ...c.map(({ target: e }) => e),
4061
4056
  ...c.flatMap(({ support: e }) => e ? [e] : [])
4062
4057
  ])];
4063
- let I = c.filter(({ support: e }) => !e);
4064
- if (I.length) {
4065
- let e = Math.min(...I.map((e) => e.target.rect.left + gn(e, 1))), t = Math.max(...I.map((e) => e.target.rect.right + gn(e, 1)));
4058
+ let F = c.filter(({ support: e }) => !e);
4059
+ if (F.length) {
4060
+ let e = Math.min(...F.map((e) => e.target.rect.left + gn(e, 1))), t = Math.max(...F.map((e) => e.target.rect.right + gn(e, 1)));
4066
4061
  s.floor = {
4067
4062
  x: Math.max(0, e - 12),
4068
4063
  y: r - 2,
@@ -4084,14 +4079,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4084
4079
  ], f = () => {
4085
4080
  l || (l = !0, clearTimeout(c), m.disconnect(), s?.(), o.forEach((e) => e.cancel()), d.forEach((e) => document.removeEventListener(e, p, !0)), window.removeEventListener("resize", f), a());
4086
4081
  }, p = (e) => {
4087
- e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || e.type === "visibilitychange" && !document.hidden || f();
4082
+ e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && f();
4088
4083
  }, m = new MutationObserver((n) => {
4089
- let r = n.filter((e) => t.contains(e.target) ? !1 : e.type === "childList" ? ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)) : !0);
4090
- if (e.anchors.some(({ element: e }) => !e.isConnected || r.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e)))) {
4091
- f();
4092
- return;
4093
- }
4094
- r.some((t) => t.type === "childList" && t.target instanceof Element && e.anchors.some(({ element: e }) => t.target.contains(e))) && e.anchors.some(({ element: e, rect: t }) => {
4084
+ let r = n.filter((e) => t.contains(e.target) ? !1 : e.type !== "childList" || ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)));
4085
+ (e.anchors.some(({ element: e }) => !e.isConnected || r.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e))) || r.some((t) => t.type === "childList" && t.target instanceof Element && e.anchors.some(({ element: e }) => t.target.contains(e))) && e.anchors.some(({ element: e, rect: t }) => {
4095
4086
  let n = e.getBoundingClientRect();
4096
4087
  return [
4097
4088
  "left",
@@ -4099,7 +4090,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4099
4090
  "width",
4100
4091
  "height"
4101
4092
  ].some((e) => Math.abs(n[e] - t[e]) > .5);
4102
- }) && f();
4093
+ })) && f();
4103
4094
  }), h = (e, t) => {
4104
4095
  let n = e.animate(t.map((e) => ({
4105
4096
  easing: "ease-in-out",
@@ -4193,7 +4184,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4193
4184
  t && f(t).forEach((e) => m.add(e));
4194
4185
  }
4195
4186
  let _ = u.rect.left + u.rect.width / 2, v = ({ rect: e }) => Math.hypot(e.left + e.width / 2 - _, e.top + e.height / 2 - u.rect.bottom), y = [], b = [];
4196
- for (let e of new Set([...p, ...m])) {
4187
+ for (let e of /* @__PURE__ */ new Set([...p, ...m])) {
4197
4188
  if (e.contains(document.activeElement) || e.closest(`${wn}, ${Tn}`) || e.querySelector(`${wn}, ${Tn}`)) continue;
4198
4189
  let t = l(e);
4199
4190
  if (!t) continue;
@@ -4824,7 +4815,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4824
4815
  opacity: r,
4825
4816
  easing: i
4826
4817
  });
4827
- C(0, 0, 0, 0, "steps(1, end)"), C((Pn - .01) * Nn, 0, 0);
4818
+ C(0, 0, 0, 0, "steps(1, end)"), C(.22999999999999998 * Nn, 0, 0);
4828
4819
  for (let e = 0; e < o; e++) {
4829
4820
  let t = e / (o - 1), n = 3200 + t * 2e3, r = {
4830
4821
  x: Bn(m, h, t),
@@ -4872,27 +4863,27 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4872
4863
  ...O,
4873
4864
  y: O.y + 5
4874
4865
  }, 1);
4875
- let j = {
4866
+ let ee = {
4876
4867
  ...O,
4877
4868
  y: O.y + 8
4878
4869
  };
4879
- A(9280, j, 1);
4880
- let M = {
4870
+ A(9280, ee, 1);
4871
+ let j = {
4881
4872
  x: zn(E.x - p * 64, 62, n - 62),
4882
4873
  y: E.y - 61
4883
4874
  };
4884
4875
  for (let e = 0; e <= 16; e++) {
4885
4876
  let t = e / 16;
4886
4877
  A(Bn(9430, 10250, t), {
4887
- x: Bn(O.x, M.x, t),
4888
- y: Bn(j.y, M.y, t) - 168 * t * (1 - t)
4878
+ x: Bn(O.x, j.x, t),
4879
+ y: Bn(ee.y, j.y, t) - 168 * t * (1 - t)
4889
4880
  }, 1, -p * Math.sin(Math.PI * t) * 7, "linear");
4890
4881
  }
4891
4882
  A(10350, {
4892
- ...M,
4893
- y: M.y + 3
4894
- }, 1), A(10550, M, 1), A(11600, M, 1), A(11920, M, 0), A(12e3, M, 0);
4895
- let N = (e) => e.map(([e, t]) => ({
4883
+ ...j,
4884
+ y: j.y + 3
4885
+ }, 1), A(10550, j, 1), A(11600, j, 1), A(11920, j, 0), A(12e3, j, 0);
4886
+ let M = (e) => e.map(([e, t]) => ({
4896
4887
  offset: Vn(e),
4897
4888
  opacity: t,
4898
4889
  easing: Un
@@ -4906,7 +4897,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4906
4897
  surfaceFrames: i || c ? S : [],
4907
4898
  faceFrames: k,
4908
4899
  faceParts: {
4909
- eyes: N([
4900
+ eyes: M([
4910
4901
  [0, 1],
4911
4902
  [7100, 1],
4912
4903
  [7180, 0],
@@ -4932,7 +4923,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4932
4923
  transform: `translateX(${t}px)`,
4933
4924
  easing: Un
4934
4925
  })),
4935
- grin: N([
4926
+ grin: M([
4936
4927
  [0, 0],
4937
4928
  [7450, 0],
4938
4929
  [8100, 1],
@@ -4955,14 +4946,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4955
4946
  ], p = () => {
4956
4947
  u || (u = !0, clearTimeout(l), h.disconnect(), _.disconnect(), c?.(), s.forEach((e) => e.cancel()), f.forEach((e) => document.removeEventListener(e, m, !0)), window.removeEventListener("resize", p), o());
4957
4948
  }, m = (e) => {
4958
- e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || e.type === "visibilitychange" && !document.hidden || p();
4949
+ e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && p();
4959
4950
  }, h = new MutationObserver((n) => {
4960
- let r = n.filter((e) => t.contains(e.target) ? !1 : e.type === "childList" ? ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)) : !0);
4961
- if (e.anchors.some(({ element: e }) => !e.isConnected || r.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e)))) {
4962
- p();
4963
- return;
4964
- }
4965
- r.some((t) => t.type === "childList" && t.target instanceof Element && e.anchors.some(({ element: e }) => t.target.contains(e))) && e.anchors.some(({ element: e, rect: t }) => {
4951
+ let r = n.filter((e) => t.contains(e.target) ? !1 : e.type !== "childList" || ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)));
4952
+ (e.anchors.some(({ element: e }) => !e.isConnected || r.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e))) || r.some((t) => t.type === "childList" && t.target instanceof Element && e.anchors.some(({ element: e }) => t.target.contains(e))) && e.anchors.some(({ element: e, rect: t }) => {
4966
4953
  let n = e.getBoundingClientRect();
4967
4954
  return [
4968
4955
  "left",
@@ -4970,7 +4957,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
4970
4957
  "width",
4971
4958
  "height"
4972
4959
  ].some((e) => Math.abs(n[e] - t[e]) > .5);
4973
- }) && p();
4960
+ })) && p();
4974
4961
  }), g = /* @__PURE__ */ new WeakSet(), _ = new ResizeObserver((t) => {
4975
4962
  for (let n of t) {
4976
4963
  let t = e.anchors.find(({ element: e }) => e === n.target), r = n.borderBoxSize?.[0];
@@ -5106,7 +5093,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
5106
5093
  let t = !1, i = () => {
5107
5094
  t = !0, D();
5108
5095
  }, a = (e) => {
5109
- e.type === "scroll" && e.target instanceof Node && S.current?.contains(e.target) || e.type === "visibilitychange" && !document.hidden || i();
5096
+ e.type === "scroll" && e.target instanceof Node && S.current?.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && i();
5110
5097
  }, o = [
5111
5098
  "pointerdown",
5112
5099
  "keydown",
@@ -5174,7 +5161,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
5174
5161
  }, n) : null);
5175
5162
  return /* @__PURE__ */ g("div", {
5176
5163
  ref: S,
5177
- className: o(Xn.scene, "pointer-events-none absolute inset-0 select-none overflow-clip"),
5164
+ className: o(Xn.scene, "pointer-events-none absolute inset-0 overflow-clip select-none"),
5178
5165
  "aria-hidden": "true",
5179
5166
  inert: !0,
5180
5167
  "data-halloween-scene": b.Footprints,
@@ -5183,7 +5170,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
5183
5170
  "data-stationary": O,
5184
5171
  children: [/* @__PURE__ */ h("div", {
5185
5172
  ref: C,
5186
- className: "absolute inset-0 z-[1]"
5173
+ className: "absolute inset-0 z-1"
5187
5174
  }), O ? /* @__PURE__ */ g("div", {
5188
5175
  className: "absolute inset-x-0 top-1/3 flex items-center justify-center gap-3",
5189
5176
  "data-footprint-static": !0,
@@ -5200,12 +5187,12 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
5200
5187
  }, e)), /* @__PURE__ */ h($n, {})]
5201
5188
  }) : /* @__PURE__ */ g(m, { children: [
5202
5189
  /* @__PURE__ */ h("div", {
5203
- className: "absolute inset-0 z-[2]",
5190
+ className: "absolute inset-0 z-2",
5204
5191
  children: A(Ln.Page)
5205
5192
  }),
5206
5193
  k && !v && !s && /* @__PURE__ */ g("div", {
5207
5194
  ref: w,
5208
- className: "absolute z-[2] opacity-0",
5195
+ className: "absolute z-2 opacity-0",
5209
5196
  "data-footprint-surface": !0,
5210
5197
  style: {
5211
5198
  left: k.rect.left,
@@ -5223,7 +5210,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
5223
5210
  }),
5224
5211
  /* @__PURE__ */ h("div", {
5225
5212
  ref: T,
5226
- className: "absolute top-0 z-[3] size-0 opacity-0",
5213
+ className: "absolute top-0 z-3 size-0 opacity-0",
5227
5214
  "data-footprint-face": !0,
5228
5215
  style: {
5229
5216
  left: 0,
@@ -5648,7 +5635,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
5648
5635
  ], p = [...e.homes.map(({ target: e }) => e.element), ...e.pumpkin ? [e.pumpkin.element] : []], m = () => {
5649
5636
  u || (u = !0, clearTimeout(l), g.disconnect(), c?.(), s.forEach((e) => e.cancel()), f.forEach((e) => document.removeEventListener(e, h, !0)), window.removeEventListener("resize", m), o());
5650
5637
  }, h = (e) => {
5651
- e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || e.type === "visibilitychange" && !document.hidden || m();
5638
+ e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && m();
5652
5639
  }, g = new MutationObserver((e) => {
5653
5640
  p.some((t) => !t.isConnected || e.some((e) => t.contains(e.target) || e.type === "attributes" && e.target instanceof Element && e.target.contains(t))) && m();
5654
5641
  }), _ = (e, t) => {
@@ -6430,11 +6417,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
6430
6417
  }, l = (t) => r.some((e) => e === t || e.contains(t)) || t instanceof Element && !!t.closest(`.${e.sceneLayer}`), u = new MutationObserver((e) => {
6431
6418
  if (a) return;
6432
6419
  let t = e.filter((e) => !l(e.target) && (e.type !== "childList" || ![...e.addedNodes, ...e.removedNodes].every(l)));
6433
- if (i.some(({ element: e }) => !e.isConnected || t.some((t) => e.contains(t.target) || t.type === "attributes" && t.target.contains(e)))) {
6434
- s();
6435
- return;
6436
- }
6437
- t.some((e) => e.type === "childList" && i.some(({ element: t }) => e.target.contains(t))) && c();
6420
+ i.some(({ element: e }) => !e.isConnected || t.some((t) => e.contains(t.target) || t.type === "attributes" && t.target.contains(e))) ? s() : t.some((e) => e.type === "childList" && i.some(({ element: t }) => e.target.contains(t))) && c();
6438
6421
  }), d = typeof ResizeObserver == "function" ? new ResizeObserver(c) : void 0;
6439
6422
  return u.observe(document.documentElement, {
6440
6423
  subtree: !0,
@@ -6668,7 +6651,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
6668
6651
  l(() => {
6669
6652
  _(n || !a.current ? null : xr(kr(r), a.current.getBoundingClientRect()));
6670
6653
  }, [r, n]), l(() => {
6671
- if (y(!1), !(n || !m || !o.current || !s.current || !c.current || !d.current)) return Cr(m, o.current, s.current, c.current, () => y(!0), d.current);
6654
+ if (y(!1), !n && m && o.current && s.current && c.current && d.current) return Cr(m, o.current, s.current, c.current, () => y(!0), d.current);
6672
6655
  }, [m, n]);
6673
6656
  let S = m ? m.grab.height / 2 + 4 : 0, C = m ? Math.min(38, m.grab.width * .14) : 0, w = `M0 0 C${-C * 1.6} ${S * .3} ${-C * 1.8} ${-S * .6} ${-C * .8} ${-S} C${C * .1} ${-S - 7} ${C * .7} ${-S - 4} ${C * .9} ${-S + 3}`, T = `M${C * .9} ${-S + 3} C${C * 1.5} ${-S * .72} ${-C * .85} ${S * .28} ${-C * .7} ${S - 4} C${-C * .55} ${S + 8} ${C * .65} ${S + 8} ${C * .9} ${S - 3}`, E = `M${C * .9} ${S - 3} C${C * 1.2} ${S * .45} ${C * 1.1} ${S * .18} ${C * .65} ${S * .24} C${C * .3} ${S * .3} ${C * .6} ${S * .65} ${C * .82} ${S * .54}`;
6674
6657
  return /* @__PURE__ */ g("div", {
@@ -7649,7 +7632,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
7649
7632
  g,
7650
7633
  {
7651
7634
  ...g,
7652
- offset: qr - .001
7635
+ offset: .249
7653
7636
  },
7654
7637
  {
7655
7638
  ...g,
@@ -8085,7 +8068,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
8085
8068
  ], p = () => {
8086
8069
  l || (l = !0, clearTimeout(d), g.disconnect(), f.forEach((e) => document.removeEventListener(e, m, !0)), window.removeEventListener("resize", p), u.forEach((e) => e()), a?.replaceChildren(), s.forEach((e) => e.cancel()), o());
8087
8070
  }, m = (e) => {
8088
- e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || e.type === "visibilitychange" && !document.hidden || p();
8071
+ e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && p();
8089
8072
  }, h = e.anchors, g = new MutationObserver((e) => {
8090
8073
  h.some((t) => !t.isConnected || e.some((e) => t.contains(e.target) || e.type === "attributes" && e.target instanceof Element && e.target.contains(t))) && p();
8091
8074
  }), _ = (e, t) => {
@@ -9063,14 +9046,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9063
9046
  ], f = () => {
9064
9047
  i || (i = !0, clearTimeout(a), u(), m.disconnect(), g.disconnect(), r.forEach((e) => e.cancel()), d.forEach((e) => document.removeEventListener(e, p, !0)), window.removeEventListener("resize", f), n());
9065
9048
  }, p = (e) => {
9066
- e.type === "visibilitychange" && !document.hidden || e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || f();
9049
+ (e.type !== "visibilitychange" || document.hidden) && (e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || f());
9067
9050
  }, m = new MutationObserver((e) => {
9068
9051
  let n = e.filter((e) => !t.contains(e.target) && !(e.type === "childList" && [...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e))));
9069
- if (c.some(({ element: e }) => !e.isConnected || n.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e)))) {
9070
- f();
9071
- return;
9072
- }
9073
- n.some((e) => e.type === "childList" && e.target instanceof Element && c.some(({ element: t }) => e.target.contains(t))) && c.some(({ element: e, rect: t }) => {
9052
+ (c.some(({ element: e }) => !e.isConnected || n.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e))) || n.some((e) => e.type === "childList" && e.target instanceof Element && c.some(({ element: t }) => e.target.contains(t))) && c.some(({ element: e, rect: t }) => {
9074
9053
  let n = e.getBoundingClientRect();
9075
9054
  return [
9076
9055
  "left",
@@ -9078,7 +9057,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9078
9057
  "width",
9079
9058
  "height"
9080
9059
  ].some((e) => Math.abs(n[e] - t[e]) > .5);
9081
- }) && f();
9060
+ })) && f();
9082
9061
  }), h = /* @__PURE__ */ new WeakSet(), g = new ResizeObserver((e) => {
9083
9062
  for (let t of e) {
9084
9063
  let e = c.find(({ element: e }) => e === t.target), n = t.borderBoxSize?.[0];
@@ -9092,7 +9071,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9092
9071
  let i = t.querySelector(e);
9093
9072
  if (!i || n.length > 80 || r.length >= 22) throw Error("Skeleton artwork or animation budget unavailable");
9094
9073
  let a = i.animate(n, {
9095
- duration: R,
9074
+ duration: L,
9096
9075
  fill: "both"
9097
9076
  });
9098
9077
  r.push(a), _ !== void 0 && (a.startTime = _);
@@ -9116,7 +9095,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9116
9095
  "disabled",
9117
9096
  "aria-expanded"
9118
9097
  ]
9119
- }), c.forEach(({ element: e }) => g.observe(e, { box: "border-box" })), d.forEach((e) => document.addEventListener(e, p, !0)), window.addEventListener("resize", f), a = setTimeout(f, R), l && (o = setTimeout(() => CSS.highlights.set(gi, new Highlight(l.target.range)), l.hideAt), s = setTimeout(u, l.restoreAt));
9098
+ }), c.forEach(({ element: e }) => g.observe(e, { box: "border-box" })), d.forEach((e) => document.addEventListener(e, p, !0)), window.addEventListener("resize", f), a = setTimeout(f, L), l && (o = setTimeout(() => CSS.highlights.set(gi, new Highlight(l.target.range)), l.hideAt), s = setTimeout(u, l.restoreAt));
9120
9099
  } catch {
9121
9100
  f();
9122
9101
  }
@@ -9156,7 +9135,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9156
9135
  d: "M50 5Q46 11 52 15Q48 18 51 22"
9157
9136
  }),
9158
9137
  /* @__PURE__ */ g("g", {
9159
- "data-skeleton-part": ie.Face,
9138
+ "data-skeleton-part": R.Face,
9160
9139
  children: [
9161
9140
  /* @__PURE__ */ h("path", {
9162
9141
  className: Z.socket,
@@ -9202,7 +9181,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9202
9181
  ]
9203
9182
  }) }),
9204
9183
  /* @__PURE__ */ g("g", {
9205
- ...xi(ie.LegLeft, 42, 116),
9184
+ ...xi(R.LegLeft, 42, 116),
9206
9185
  children: [/* @__PURE__ */ h(Si, { d: "M42 116L37 137L33 156L21 158" }), /* @__PURE__ */ h("circle", {
9207
9186
  className: Z.joint,
9208
9187
  cx: "37",
@@ -9211,7 +9190,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9211
9190
  })]
9212
9191
  }),
9213
9192
  /* @__PURE__ */ g("g", {
9214
- ...xi(ie.LegRight, 58, 116),
9193
+ ...xi(R.LegRight, 58, 116),
9215
9194
  children: [/* @__PURE__ */ h(Si, { d: "M58 116L63 137L67 156L79 158" }), /* @__PURE__ */ h("circle", {
9216
9195
  className: Z.joint,
9217
9196
  cx: "63",
@@ -9220,7 +9199,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9220
9199
  })]
9221
9200
  }),
9222
9201
  /* @__PURE__ */ g("g", {
9223
- ...xi(ie.Body, 50, 158),
9202
+ ...xi(R.Body, 50, 158),
9224
9203
  children: [
9225
9204
  /* @__PURE__ */ h(Si, { d: "M50 46V110" }),
9226
9205
  /* @__PURE__ */ h("path", {
@@ -9243,7 +9222,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9243
9222
  d: "M50 49L41 44V54ZM50 49L59 44V54Z"
9244
9223
  }),
9245
9224
  /* @__PURE__ */ g("g", {
9246
- ...xi(ie.ArmLeft, 36, 58),
9225
+ ...xi(R.ArmLeft, 36, 58),
9247
9226
  children: [/* @__PURE__ */ h(Si, { d: "M36 58L27 78L22 96M22 96L18 102M22 96L22 103M22 96L26 101" }), /* @__PURE__ */ h("circle", {
9248
9227
  className: Z.joint,
9249
9228
  cx: "27",
@@ -9252,7 +9231,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9252
9231
  })]
9253
9232
  }),
9254
9233
  /* @__PURE__ */ g("g", {
9255
- ...xi(ie.ArmRight, 64, 58),
9234
+ ...xi(R.ArmRight, 64, 58),
9256
9235
  children: [/* @__PURE__ */ h(Si, { d: "M64 58L73 78L78 96M78 96L82 102M78 96L78 103M78 96L74 101" }), /* @__PURE__ */ h("circle", {
9257
9236
  className: Z.joint,
9258
9237
  cx: "73",
@@ -9261,7 +9240,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9261
9240
  })]
9262
9241
  }),
9263
9242
  /* @__PURE__ */ h("g", {
9264
- ...xi(ie.Skull, 50, 46),
9243
+ ...xi(R.Skull, 50, 46),
9265
9244
  opacity: t ? 0 : void 0,
9266
9245
  children: /* @__PURE__ */ h(Ci, { gradient: n })
9267
9246
  })
@@ -9307,7 +9286,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9307
9286
  }, [s, C]), l(() => {
9308
9287
  if (w || v || s || x.current) return;
9309
9288
  let t = !1, r = (e) => {
9310
- e.type === "visibilitychange" && !document.hidden || (t = !0, C());
9289
+ (e.type !== "visibilitychange" || document.hidden) && (t = !0, C());
9311
9290
  }, i = [
9312
9291
  "pointerdown",
9313
9292
  "keydown",
@@ -9363,7 +9342,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
9363
9342
  });
9364
9343
  return /* @__PURE__ */ h("div", {
9365
9344
  ref: S,
9366
- className: "pointer-events-none absolute inset-0 select-none overflow-clip",
9345
+ className: "pointer-events-none absolute inset-0 overflow-clip select-none",
9367
9346
  "aria-hidden": "true",
9368
9347
  inert: !0,
9369
9348
  "data-halloween-scene": b.Skeletons,
@@ -10799,9 +10778,9 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
10799
10778
  }, Yi = ({ soundtrackUrl: e }) => {
10800
10779
  let t = i(), n = f(null), r = f(null), a = f(null), [o, s] = p(null), [c, u] = p(!1), [d, m] = p(!1);
10801
10780
  l(() => {
10802
- s(null), m(!0), !(t || !n.current || typeof n.current.animate != "function") && (a.current = zi(), s(Bi(n.current.getBoundingClientRect(), document.documentElement.clientWidth, a.current?.getBoundingClientRect())));
10781
+ s(null), m(!0), !t && n.current && typeof n.current.animate == "function" && (a.current = zi(), s(Bi(n.current.getBoundingClientRect(), document.documentElement.clientWidth, a.current?.getBoundingClientRect())));
10803
10782
  }, [t]), l(() => {
10804
- if (u(!1), !(t || !o || !n.current || !r.current)) return Vi(o, {
10783
+ if (u(!1), !t && o && n.current && r.current) return Vi(o, {
10805
10784
  carrier: n.current,
10806
10785
  passenger: r.current,
10807
10786
  source: a.current
@@ -10916,7 +10895,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
10916
10895
  }
10917
10896
  }
10918
10897
  r && c.stroke(), o.clearRect(0, 0, t.width, t.height);
10919
- let i = n ? 1 : 1 - ea(e, Zi, Xi - Zi);
10898
+ let i = n ? 1 : 1 - ea(e, Zi, 2500);
10920
10899
  o.globalAlpha = i, o.drawImage(s, 0, 0, t.width, t.height), o.globalAlpha = i * .28, o.stroke();
10921
10900
  for (let [r, i] of t.webs.entries()) {
10922
10901
  if (!n && e < i.delayMs) continue;
@@ -11028,7 +11007,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
11028
11007
  });
11029
11008
  }
11030
11009
  }, ua = (e, t) => {
11031
- let n = Math.random() < .5 ? 5 : 6, r = Q(0, Math.PI * 2), i = Q(.08, .16), a = Q(0, Math.PI * 2), o = e.fan, s = o ? Math.PI / (2 * (aa - 1)) : Math.PI * 2 / aa, c = (e) => t * (.91 + .05 * Math.sin(e * 3 + a) + .035 * Math.cos(e * 5 + a)), l = (t, n) => ({
11010
+ let n = Math.random() < .5 ? 5 : 6, r = Q(0, Math.PI * 2), i = Q(.08, .16), a = Q(0, Math.PI * 2), o = e.fan, s = o ? Math.PI / 22 : Math.PI * 2 / aa, c = (e) => t * (.91 + .05 * Math.sin(e * 3 + a) + .035 * Math.cos(e * 5 + a)), l = (t, n) => ({
11032
11011
  x: e.x + Math.cos(t) * n * (o?.directionX ?? 1),
11033
11012
  y: e.y + Math.sin(t) * n * (o?.directionY ?? 1)
11034
11013
  }), u = Array.from({ length: aa }, (t, n) => {
@@ -11037,7 +11016,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
11037
11016
  x: e.x,
11038
11017
  y: e.y
11039
11018
  }, l(i, c(i))];
11040
- }), d = n * (o ? aa - 1 : aa) * oa;
11019
+ }), d = n * (o ? 11 : aa) * oa;
11041
11020
  return {
11042
11021
  spokes: u,
11043
11022
  silk: Array.from({ length: d + 1 }, (e, t) => {
@@ -11722,169 +11701,169 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
11722
11701
  ][t]}px)`,
11723
11702
  easing: "ease-in-out"
11724
11703
  }))
11725
- };
11704
+ }, o = e ? [
11705
+ {
11706
+ time: 0,
11707
+ x: n + a,
11708
+ y: t.y - 50,
11709
+ opacity: 0
11710
+ },
11711
+ ...Ia({
11712
+ time: 500,
11713
+ x: n + a,
11714
+ y: t.y - 50,
11715
+ angle: -5
11716
+ }, {
11717
+ time: 2800,
11718
+ ...t
11719
+ }, a * .2, !0),
11720
+ ...Ia({
11721
+ time: 17600,
11722
+ ...t
11723
+ }, {
11724
+ time: 19900,
11725
+ x: -a,
11726
+ y: t.y - 90,
11727
+ angle: -8,
11728
+ opacity: 0
11729
+ }, a * .35, !1),
11730
+ {
11731
+ time: 2e4,
11732
+ x: -a,
11733
+ y: t.y - 90,
11734
+ opacity: 0
11735
+ }
11736
+ ] : [
11737
+ {
11738
+ time: 0,
11739
+ x: -a,
11740
+ y: t.y - 40,
11741
+ opacity: 0
11742
+ },
11743
+ ...Ia({
11744
+ time: 300,
11745
+ x: -a,
11746
+ y: t.y - 40,
11747
+ angle: -8
11748
+ }, {
11749
+ time: 2100,
11750
+ x: t.x + 42,
11751
+ y: t.y - 10,
11752
+ angle: 12
11753
+ }, a * .48, !0),
11754
+ {
11755
+ time: 2490,
11756
+ x: t.x - 5,
11757
+ y: t.y + 3,
11758
+ angle: -4,
11759
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11760
+ },
11761
+ {
11762
+ time: 2950,
11763
+ ...t
11764
+ },
11765
+ {
11766
+ time: 9200,
11767
+ ...t
11768
+ },
11769
+ {
11770
+ time: 9660,
11771
+ x: t.x - 10,
11772
+ y: t.y - 6,
11773
+ angle: -6,
11774
+ easing: "cubic-bezier(0.55, 0, 1, 0.45)"
11775
+ },
11776
+ {
11777
+ time: 10300,
11778
+ ...f
11779
+ },
11780
+ {
11781
+ time: 10500,
11782
+ ...f,
11783
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11784
+ },
11785
+ {
11786
+ time: 11400,
11787
+ ...f,
11788
+ angle: -8
11789
+ },
11790
+ {
11791
+ time: 11900,
11792
+ ...f
11793
+ },
11794
+ {
11795
+ time: 12780,
11796
+ ...f,
11797
+ easing: "cubic-bezier(0.55, 0, 1, 0.45)"
11798
+ },
11799
+ {
11800
+ time: 13e3,
11801
+ x: f.x,
11802
+ y: f.y - 28,
11803
+ angle: -12,
11804
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11805
+ },
11806
+ {
11807
+ time: 13420,
11808
+ x: f.x + 8,
11809
+ y: f.y + 4,
11810
+ angle: 7,
11811
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11812
+ },
11813
+ {
11814
+ time: 13900,
11815
+ x: f.x + 6,
11816
+ y: f.y - 9,
11817
+ angle: -3
11818
+ },
11819
+ {
11820
+ time: 15100,
11821
+ ...t
11822
+ },
11823
+ {
11824
+ time: 17800,
11825
+ ...t,
11826
+ easing: "cubic-bezier(0.55, 0, 1, 0.45)"
11827
+ },
11828
+ {
11829
+ time: 18050,
11830
+ x: t.x + 14,
11831
+ y: t.y - 24,
11832
+ angle: -10,
11833
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11834
+ },
11835
+ {
11836
+ time: 18450,
11837
+ x: t.x + 28,
11838
+ y: t.y + 3,
11839
+ angle: 6,
11840
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11841
+ },
11842
+ ...Ia({
11843
+ time: 18800,
11844
+ x: t.x + 32,
11845
+ y: t.y,
11846
+ angle: 0
11847
+ }, {
11848
+ time: 19900,
11849
+ x: n + a,
11850
+ y: t.y - 85,
11851
+ angle: -5,
11852
+ opacity: 0
11853
+ }, a * .42, !1),
11854
+ {
11855
+ time: 2e4,
11856
+ x: n + a,
11857
+ y: t.y - 85,
11858
+ opacity: 0
11859
+ }
11860
+ ];
11726
11861
  return {
11727
11862
  mentor: e,
11728
11863
  size: a,
11729
11864
  facing: r,
11730
11865
  rest: t,
11731
- frames: Fa(e ? [
11732
- {
11733
- time: 0,
11734
- x: n + a,
11735
- y: t.y - 50,
11736
- opacity: 0
11737
- },
11738
- ...Ia({
11739
- time: 500,
11740
- x: n + a,
11741
- y: t.y - 50,
11742
- angle: -5
11743
- }, {
11744
- time: 2800,
11745
- ...t
11746
- }, a * .2, !0),
11747
- ...Ia({
11748
- time: 17600,
11749
- ...t
11750
- }, {
11751
- time: 19900,
11752
- x: -a,
11753
- y: t.y - 90,
11754
- angle: -8,
11755
- opacity: 0
11756
- }, a * .35, !1),
11757
- {
11758
- time: 2e4,
11759
- x: -a,
11760
- y: t.y - 90,
11761
- opacity: 0
11762
- }
11763
- ] : [
11764
- {
11765
- time: 0,
11766
- x: -a,
11767
- y: t.y - 40,
11768
- opacity: 0
11769
- },
11770
- ...Ia({
11771
- time: 300,
11772
- x: -a,
11773
- y: t.y - 40,
11774
- angle: -8
11775
- }, {
11776
- time: 2100,
11777
- x: t.x + 42,
11778
- y: t.y - 10,
11779
- angle: 12
11780
- }, a * .48, !0),
11781
- {
11782
- time: 2490,
11783
- x: t.x - 5,
11784
- y: t.y + 3,
11785
- angle: -4,
11786
- easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11787
- },
11788
- {
11789
- time: 2950,
11790
- ...t
11791
- },
11792
- {
11793
- time: 9200,
11794
- ...t
11795
- },
11796
- {
11797
- time: 9660,
11798
- x: t.x - 10,
11799
- y: t.y - 6,
11800
- angle: -6,
11801
- easing: "cubic-bezier(0.55, 0, 1, 0.45)"
11802
- },
11803
- {
11804
- time: 10300,
11805
- ...f
11806
- },
11807
- {
11808
- time: 10500,
11809
- ...f,
11810
- easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11811
- },
11812
- {
11813
- time: 11400,
11814
- ...f,
11815
- angle: -8
11816
- },
11817
- {
11818
- time: 11900,
11819
- ...f
11820
- },
11821
- {
11822
- time: 12780,
11823
- ...f,
11824
- easing: "cubic-bezier(0.55, 0, 1, 0.45)"
11825
- },
11826
- {
11827
- time: 13e3,
11828
- x: f.x,
11829
- y: f.y - 28,
11830
- angle: -12,
11831
- easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11832
- },
11833
- {
11834
- time: 13420,
11835
- x: f.x + 8,
11836
- y: f.y + 4,
11837
- angle: 7,
11838
- easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11839
- },
11840
- {
11841
- time: 13900,
11842
- x: f.x + 6,
11843
- y: f.y - 9,
11844
- angle: -3
11845
- },
11846
- {
11847
- time: 15100,
11848
- ...t
11849
- },
11850
- {
11851
- time: 17800,
11852
- ...t,
11853
- easing: "cubic-bezier(0.55, 0, 1, 0.45)"
11854
- },
11855
- {
11856
- time: 18050,
11857
- x: t.x + 14,
11858
- y: t.y - 24,
11859
- angle: -10,
11860
- easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11861
- },
11862
- {
11863
- time: 18450,
11864
- x: t.x + 28,
11865
- y: t.y + 3,
11866
- angle: 6,
11867
- easing: "cubic-bezier(0.22, 1, 0.36, 1)"
11868
- },
11869
- ...Ia({
11870
- time: 18800,
11871
- x: t.x + 32,
11872
- y: t.y,
11873
- angle: 0
11874
- }, {
11875
- time: 19900,
11876
- x: n + a,
11877
- y: t.y - 85,
11878
- angle: -5,
11879
- opacity: 0
11880
- }, a * .42, !1),
11881
- {
11882
- time: 2e4,
11883
- x: n + a,
11884
- y: t.y - 85,
11885
- opacity: 0
11886
- }
11887
- ]),
11866
+ frames: Fa(o),
11888
11867
  parts: i
11889
11868
  };
11890
11869
  }), m = (e, t, n, r) => ({
@@ -11940,14 +11919,10 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
11940
11919
  ], p = () => {
11941
11920
  u || (u = !0, clearTimeout(l), h.disconnect(), _.disconnect(), c?.(), s.forEach((e) => e.cancel()), f.forEach((e) => document.removeEventListener(e, m, !0)), window.removeEventListener("resize", p), o());
11942
11921
  }, m = (e) => {
11943
- e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || e.type === "visibilitychange" && !document.hidden || p();
11922
+ e.type === "scroll" && e.target instanceof Node && t.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && p();
11944
11923
  }, h = new MutationObserver((n) => {
11945
- let r = n.filter((e) => t.contains(e.target) ? !1 : e.type === "childList" ? ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)) : !0);
11946
- if (e.anchors.some(({ element: e }) => !e.isConnected || r.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e)))) {
11947
- p();
11948
- return;
11949
- }
11950
- r.some((t) => t.type === "childList" && t.target instanceof Element && e.anchors.some(({ element: e }) => t.target.contains(e))) && e.anchors.some(({ element: e, rect: t }) => {
11924
+ let r = n.filter((e) => t.contains(e.target) ? !1 : e.type !== "childList" || ![...e.addedNodes, ...e.removedNodes].every((e) => e === t || t.contains(e)));
11925
+ (e.anchors.some(({ element: e }) => !e.isConnected || r.some((t) => e.contains(t.target) || t.type === "attributes" && t.target instanceof Element && t.target.contains(e))) || r.some((t) => t.type === "childList" && t.target instanceof Element && e.anchors.some(({ element: e }) => t.target.contains(e))) && e.anchors.some(({ element: e, rect: t }) => {
11951
11926
  let n = e.getBoundingClientRect();
11952
11927
  return [
11953
11928
  "left",
@@ -11955,7 +11930,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
11955
11930
  "width",
11956
11931
  "height"
11957
11932
  ].some((e) => Math.abs(n[e] - t[e]) > .5);
11958
- }) && p();
11933
+ })) && p();
11959
11934
  }), g = /* @__PURE__ */ new WeakSet(), _ = new ResizeObserver((t) => {
11960
11935
  for (let n of t) {
11961
11936
  let t = e.anchors.find(({ element: e }) => e === n.target), r = n.borderBoxSize?.[0];
@@ -12339,7 +12314,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12339
12314
  let t = !1, i = () => {
12340
12315
  t = !0, E();
12341
12316
  }, a = (e) => {
12342
- e.type === "scroll" && e.target instanceof Node && x.current?.contains(e.target) || e.type === "visibilitychange" && !document.hidden || i();
12317
+ e.type === "scroll" && e.target instanceof Node && x.current?.contains(e.target) || (e.type !== "visibilitychange" || document.hidden) && i();
12343
12318
  }, o = [
12344
12319
  "pointerdown",
12345
12320
  "keydown",
@@ -12390,7 +12365,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12390
12365
  let D = r || !u;
12391
12366
  return /* @__PURE__ */ g("div", {
12392
12367
  ref: x,
12393
- className: o($.scene, "pointer-events-none absolute inset-0 select-none overflow-clip"),
12368
+ className: o($.scene, "pointer-events-none absolute inset-0 overflow-clip select-none"),
12394
12369
  "aria-hidden": "true",
12395
12370
  inert: !0,
12396
12371
  "data-halloween-scene": b.Witches,
@@ -12400,7 +12375,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12400
12375
  children: [
12401
12376
  /* @__PURE__ */ h("div", {
12402
12377
  ref: S,
12403
- className: "absolute inset-0 z-[2]"
12378
+ className: "absolute inset-0 z-2"
12404
12379
  }),
12405
12380
  !D && /* @__PURE__ */ h("div", {
12406
12381
  ref: C,
@@ -12421,7 +12396,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12421
12396
  ref: (e) => {
12422
12397
  w.current[t] = e;
12423
12398
  },
12424
- className: "absolute top-0 z-[3] size-0 opacity-0",
12399
+ className: "absolute top-0 z-3 size-0 opacity-0",
12425
12400
  "data-witch-actor": t,
12426
12401
  style: {
12427
12402
  left: 0,
@@ -12768,7 +12743,7 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12768
12743
  }, a[0].onfinish = () => {
12769
12744
  h = null, D();
12770
12745
  };
12771
- }, j = (e) => {
12746
+ }, ee = (e) => {
12772
12747
  let t = s.current, n = c.current;
12773
12748
  if (!t || !n) return;
12774
12749
  let r = {
@@ -12776,24 +12751,24 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12776
12751
  easing: "cubic-bezier(0.2, 0.9, 0.3, 1)"
12777
12752
  };
12778
12753
  t.animate([{ transform: ht(e) }, { transform: ht(Oo) }], r), n.animate([{ transform: `scaleY(${e.depth})` }, { transform: "scaleY(0)" }], r);
12779
- }, M = () => {
12754
+ }, j = () => {
12780
12755
  if (!h) return;
12781
12756
  let e = Number(h.animations[0].currentTime ?? 0), t = mt(h.depth, Math.min(1, e / je));
12782
12757
  h.animations.forEach((e) => {
12783
12758
  e.onfinish = null, e.cancel();
12784
- }), h = null, j(t), D();
12785
- }, N = (e = k) => {
12786
- E && (window.clearTimeout(g), g = window.setTimeout(ee, e));
12787
- }, ee = () => {
12759
+ }), h = null, ee(t), D();
12760
+ }, M = (e = k) => {
12761
+ E && (window.clearTimeout(g), g = window.setTimeout(te, e));
12762
+ }, te = () => {
12788
12763
  let e = Date.now() - b;
12789
12764
  if (e < k) {
12790
- N(k - e);
12765
+ M(k - e);
12791
12766
  return;
12792
12767
  }
12793
12768
  let t = a.current, n = s.current, o = c.current, l = r?.current, u = i?.current, d = u?.querySelector("[data-silk-cocoon]"), p = u?.querySelector("[data-silk-group]");
12794
12769
  if (!t || !n || !o || !l || !u || !d || !p || typeof n.animate != "function") return;
12795
12770
  if (h || y.current !== Do) {
12796
- N(1e3);
12771
+ M(1e3);
12797
12772
  return;
12798
12773
  }
12799
12774
  window.clearTimeout(f);
@@ -12817,32 +12792,32 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12817
12792
  }, {
12818
12793
  onMood: v,
12819
12794
  onEnd: () => {
12820
- _ = null, v(S.Idle), D(), N();
12795
+ _ = null, v(S.Idle), D(), M();
12821
12796
  }
12822
12797
  })
12823
12798
  };
12824
- }, P = () => {
12799
+ }, N = () => {
12825
12800
  if (!_) return;
12826
12801
  let e = _.plan.poseAt(_.playback.elapsed());
12827
- _.playback.abort(), _ = null, j(e), v(S.Idle), D();
12828
- }, F = () => {
12829
- b = Date.now(), P();
12830
- }, I = (e) => {
12831
- E && F();
12802
+ _.playback.abort(), _ = null, ee(e), v(S.Idle), D();
12803
+ }, P = () => {
12804
+ b = Date.now(), N();
12805
+ }, F = (e) => {
12806
+ E && P();
12832
12807
  let t = a.current;
12833
- T && (!t || !Ao(e.target) || (t.dataset.spiderTap = t.dataset.spiderTap === "a" ? "b" : "a", window.clearTimeout(C), C = window.setTimeout(() => {
12808
+ T && t && Ao(e.target) && (t.dataset.spiderTap = t.dataset.spiderTap === "a" ? "b" : "a", window.clearTimeout(C), C = window.setTimeout(() => {
12834
12809
  delete t.dataset.spiderTap;
12835
- }, 700)));
12810
+ }, 700));
12811
+ }, I = () => {
12812
+ document.hidden && P();
12836
12813
  }, L = () => {
12837
- document.hidden && F();
12838
- }, R = () => {
12839
12814
  y.current = Do, m(Do);
12840
- }, te = () => {
12815
+ }, ne = () => {
12841
12816
  if (o = 0, !e || !l) return;
12842
12817
  let t = l.x - (e.x + y.current.x), r = l.y - (e.y + y.current.y), i = Math.max(-1, Math.min(1, t / 320));
12843
12818
  u.current && (u.current.style.transform = `rotate(${(i * 28).toFixed(1)}deg)`), n?.style.setProperty("transform", `translate(${(i * 1.2).toFixed(2)}px, ${(Math.max(-1, Math.min(1, r / 200)) * 1.2).toFixed(2)}px)`);
12844
12819
  let a = Math.hypot(t, r) <= 240;
12845
- if (a !== p && (p = a, v(a ? S.Alert : S.Idle)), p && M(), !x) return;
12820
+ if (a !== p && (p = a, v(a ? S.Alert : S.Idle)), p && j(), !x) return;
12846
12821
  let s = ft({
12847
12822
  perch: e,
12848
12823
  pointer: l,
@@ -12851,18 +12826,18 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12851
12826
  fleeStep: 64,
12852
12827
  maxOffset: 104
12853
12828
  });
12854
- s != null && (y.current = s, m(s), window.clearTimeout(d), d = window.setTimeout(R, ke));
12855
- }, ne = (e) => {
12856
- E && F(), l = {
12829
+ s != null && (y.current = s, m(s), window.clearTimeout(d), d = window.setTimeout(L, ke));
12830
+ }, re = (e) => {
12831
+ E && P(), l = {
12857
12832
  x: e.clientX,
12858
12833
  y: e.clientY
12859
- }, o ||= window.requestAnimationFrame(te);
12834
+ }, o ||= window.requestAnimationFrame(ne);
12860
12835
  };
12861
- return window.addEventListener("pointermove", ne), window.addEventListener("resize", t), (T || E) && window.addEventListener("keydown", I, !0), E && (ko.forEach((e) => window.addEventListener(e, F, {
12836
+ return window.addEventListener("pointermove", re), window.addEventListener("resize", t), (T || E) && window.addEventListener("keydown", F, !0), E && (ko.forEach((e) => window.addEventListener(e, P, {
12862
12837
  capture: !0,
12863
12838
  passive: !0
12864
- })), document.addEventListener("visibilitychange", L)), D(), N(), () => {
12865
- window.removeEventListener("pointermove", ne), window.removeEventListener("resize", t), window.cancelAnimationFrame(o), window.clearTimeout(d), window.removeEventListener("keydown", I, !0), ko.forEach((e) => window.removeEventListener(e, F, !0)), document.removeEventListener("visibilitychange", L), window.clearTimeout(f), window.clearTimeout(g), window.clearTimeout(C), h?.animations.forEach((e) => e.cancel()), _?.playback.cancel();
12839
+ })), document.addEventListener("visibilitychange", I)), D(), M(), () => {
12840
+ window.removeEventListener("pointermove", re), window.removeEventListener("resize", t), window.cancelAnimationFrame(o), window.clearTimeout(d), window.removeEventListener("keydown", F, !0), ko.forEach((e) => window.removeEventListener(e, P, !0)), document.removeEventListener("visibilitychange", I), window.clearTimeout(f), window.clearTimeout(g), window.clearTimeout(C), h?.animations.forEach((e) => e.cancel()), _?.playback.cancel();
12866
12841
  };
12867
12842
  }, [
12868
12843
  w,
@@ -12933,21 +12908,21 @@ var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBo
12933
12908
  return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
12934
12909
  ref: i,
12935
12910
  "data-halloween-pumpkin-anchor": "true",
12936
- className: "absolute bottom-2 end-2 origin-bottom desktop:bottom-4 desktop:end-4",
12911
+ className: "absolute inset-e-2 bottom-2 origin-bottom desktop:inset-e-4 desktop:bottom-4",
12937
12912
  children: [/* @__PURE__ */ h(v, {
12938
12913
  appearance: _.Link,
12939
- className: o("focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-focus", q.pumpkinButton, e.trigger),
12914
+ className: o("focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-focus", q.pumpkinButton, e.trigger),
12940
12915
  icon: /* @__PURE__ */ h(Hi, {}),
12941
12916
  "aria-label": r.pumpkinLabel ?? eo.pumpkinLabel,
12942
12917
  onClick: n
12943
12918
  }), /* @__PURE__ */ h(Mo, { ref: a })]
12944
12919
  }), /* @__PURE__ */ h("div", {
12945
12920
  "aria-hidden": "true",
12946
- className: "pointer-events-none absolute inset-0 select-none overflow-hidden",
12921
+ className: "pointer-events-none absolute inset-0 overflow-hidden select-none",
12947
12922
  children: /* @__PURE__ */ g("div", {
12948
- className: "absolute end-0 top-0",
12923
+ className: "absolute inset-e-0 top-0",
12949
12924
  children: [/* @__PURE__ */ h(No, { className: "scale-x-[-1] rtl:scale-x-100" }), /* @__PURE__ */ h(jo, {
12950
- className: "end-[26%] top-[48%]",
12925
+ className: "inset-e-[26%] top-[48%]",
12951
12926
  pumpkinRef: i,
12952
12927
  silkRef: a
12953
12928
  })]