@frybynite/image-cloud 0.8.2 → 0.9.0

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.
@@ -4,11 +4,11 @@ const mt = Object.freeze({
4
4
  md: "0 4px 16px rgba(0,0,0,0.4)",
5
5
  lg: "0 8px 32px rgba(0,0,0,0.5)",
6
6
  glow: "0 0 30px rgba(255,255,255,0.6)"
7
- }), Rt = Object.freeze({
7
+ }), It = Object.freeze({
8
8
  energetic: Object.freeze({ overshoot: 0.25, bounces: 2, decayRatio: 0.5 }),
9
9
  playful: Object.freeze({ overshoot: 0.15, bounces: 1, decayRatio: 0.5 }),
10
10
  subtle: Object.freeze({ overshoot: 0.08, bounces: 1, decayRatio: 0.5 })
11
- }), It = Object.freeze({
11
+ }), Rt = Object.freeze({
12
12
  gentle: Object.freeze({ stiffness: 150, damping: 30, mass: 1, oscillations: 2 }),
13
13
  bouncy: Object.freeze({ stiffness: 300, damping: 15, mass: 1, oscillations: 4 }),
14
14
  wobbly: Object.freeze({ stiffness: 180, damping: 12, mass: 1.5, oscillations: 5 }),
@@ -50,16 +50,16 @@ const mt = Object.freeze({
50
50
  focused: Object.freeze({
51
51
  shadow: "none"
52
52
  })
53
- }), _t = Object.freeze({
54
- tightness: 1
55
53
  }), Ut = Object.freeze({
54
+ tightness: 1
55
+ }), Ht = Object.freeze({
56
56
  rows: 1,
57
57
  amplitude: 100,
58
58
  frequency: 2,
59
59
  phaseShift: 0,
60
60
  synchronization: "offset"
61
61
  // Note: Image rotation along wave is now controlled via image.rotation.mode = 'tangent'
62
- }), Ht = Object.freeze({
62
+ }), kt = Object.freeze({
63
63
  spacing: 0
64
64
  }), Nt = Object.freeze({
65
65
  mobile: Object.freeze({ maxWidth: 767 }),
@@ -94,7 +94,7 @@ const mt = Object.freeze({
94
94
  enabled: !1,
95
95
  centers: !1,
96
96
  loaders: !1
97
- }), E = Object.freeze({
97
+ }), Gt = Object.freeze({ maxAngle: 5, speed: 2e3, sync: "random" }), qt = Object.freeze({ minScale: 0.95, maxScale: 1.05, speed: 2400, sync: "random" }), Bt = Object.freeze({ onRatio: 0.7, speed: 3e3, style: "snap" }), Xt = Object.freeze({ speed: 4e3, direction: "clockwise" }), Dt = Object.freeze({ type: "none" }), E = Object.freeze({
98
98
  // Loader configuration (always an array, composite behavior is implicit)
99
99
  loaders: [],
100
100
  // Shared loader settings and debug config
@@ -168,7 +168,8 @@ const mt = Object.freeze({
168
168
  path: yt,
169
169
  rotation: vt,
170
170
  scale: wt
171
- })
171
+ }),
172
+ idle: Dt
172
173
  }),
173
174
  // Pattern-based interaction configuration
174
175
  interaction: Object.freeze({
@@ -220,7 +221,7 @@ function Z(o, t) {
220
221
  const i = { ...o };
221
222
  return t.border !== void 0 && (i.border = { ...o.border, ...t.border }), t.borderTop !== void 0 && (i.borderTop = { ...o.borderTop, ...t.borderTop }), t.borderRight !== void 0 && (i.borderRight = { ...o.borderRight, ...t.borderRight }), t.borderBottom !== void 0 && (i.borderBottom = { ...o.borderBottom, ...t.borderBottom }), t.borderLeft !== void 0 && (i.borderLeft = { ...o.borderLeft, ...t.borderLeft }), t.filter !== void 0 && (i.filter = { ...o.filter, ...t.filter }), t.outline !== void 0 && (i.outline = { ...o.outline, ...t.outline }), t.shadow !== void 0 && (i.shadow = t.shadow), t.clipPath !== void 0 && (i.clipPath = t.clipPath), t.opacity !== void 0 && (i.opacity = t.opacity), t.cursor !== void 0 && (i.cursor = t.cursor), t.className !== void 0 && (i.className = t.className), t.objectFit !== void 0 && (i.objectFit = t.objectFit), t.aspectRatio !== void 0 && (i.aspectRatio = t.aspectRatio), t.borderRadiusTopLeft !== void 0 && (i.borderRadiusTopLeft = t.borderRadiusTopLeft), t.borderRadiusTopRight !== void 0 && (i.borderRadiusTopRight = t.borderRadiusTopRight), t.borderRadiusBottomRight !== void 0 && (i.borderRadiusBottomRight = t.borderRadiusBottomRight), t.borderRadiusBottomLeft !== void 0 && (i.borderRadiusBottomLeft = t.borderRadiusBottomLeft), i;
222
223
  }
223
- function kt(o, t) {
224
+ function Yt(o, t) {
224
225
  if (!t) return { ...o };
225
226
  const i = Z(o.default, t.default), e = Z(
226
227
  Z(i, o.hover),
@@ -235,7 +236,7 @@ function kt(o, t) {
235
236
  focused: n
236
237
  };
237
238
  }
238
- function Gt(o, t) {
239
+ function Vt(o, t) {
239
240
  if (!t) return { ...o };
240
241
  const i = { ...o };
241
242
  if (t.sizing !== void 0 && (i.sizing = {
@@ -254,7 +255,7 @@ function Gt(o, t) {
254
255
  }
255
256
  return i;
256
257
  }
257
- function qt(o) {
258
+ function Jt(o) {
258
259
  const t = o.layout?.rotation;
259
260
  if (t && "enabled" in t)
260
261
  return {
@@ -264,7 +265,7 @@ function qt(o) {
264
265
  }
265
266
  };
266
267
  }
267
- function Xt(o) {
268
+ function Kt(o) {
268
269
  const t = o.layout?.sizing?.variance;
269
270
  if (t)
270
271
  return {
@@ -275,8 +276,8 @@ function Xt(o) {
275
276
  }
276
277
  };
277
278
  }
278
- function Yt(o = {}) {
279
- const t = qt(o), i = Xt(o);
279
+ function Zt(o = {}) {
280
+ const t = Jt(o), i = Kt(o);
280
281
  let e = o.image;
281
282
  (t || i) && (e = {
282
283
  ...i || {},
@@ -300,12 +301,12 @@ function Yt(o = {}) {
300
301
  }, s = {
301
302
  loaders: n,
302
303
  config: r,
303
- image: Gt(Ft, e),
304
+ image: Vt(Ft, e),
304
305
  layout: { ...E.layout },
305
306
  animation: { ...E.animation },
306
307
  interaction: { ...E.interaction },
307
308
  rendering: { ...E.rendering },
308
- styling: kt(Mt, o.styling)
309
+ styling: Yt(Mt, o.styling)
309
310
  };
310
311
  if (o.layout && (s.layout = {
311
312
  ...E.layout,
@@ -341,6 +342,9 @@ function Yt(o = {}) {
341
342
  path: o.animation.entry.path ? { ...yt, ...o.animation.entry.path } : E.animation.entry.path,
342
343
  rotation: o.animation.entry.rotation ? { ...vt, ...o.animation.entry.rotation } : E.animation.entry.rotation,
343
344
  scale: o.animation.entry.scale ? { ...wt, ...o.animation.entry.scale } : E.animation.entry.scale
345
+ }), o.animation.idle && (s.animation.idle = {
346
+ ...Dt,
347
+ ...o.animation.idle
344
348
  })), o.interaction && (s.interaction = {
345
349
  ...E.interaction,
346
350
  ...o.interaction
@@ -378,16 +382,16 @@ function Yt(o = {}) {
378
382
  }
379
383
  return s;
380
384
  }
381
- function Bt(o, t) {
382
- return { ...o ? Rt[o] : Rt.playful, ...t };
385
+ function Qt(o, t) {
386
+ return { ...o ? It[o] : It.playful, ...t };
383
387
  }
384
- function Vt(o, t) {
385
- return { ...o ? It[o] : It.gentle, ...t };
388
+ function te(o, t) {
389
+ return { ...o ? Rt[o] : Rt.gentle, ...t };
386
390
  }
387
- function Jt(o, t) {
391
+ function ee(o, t) {
388
392
  return { ...o ? Tt[o] : Tt.gentle, ...t };
389
393
  }
390
- class Kt {
394
+ class ie {
391
395
  constructor(t) {
392
396
  this.activeAnimations = /* @__PURE__ */ new Map(), this.animationIdCounter = 0, this.config = t;
393
397
  }
@@ -546,8 +550,8 @@ class Kt {
546
550
  function J(o, t, i) {
547
551
  return o + (t - o) * i;
548
552
  }
549
- function Zt(o, t, i, e) {
550
- const { overshoot: n, bounces: a, decayRatio: r } = e, s = i.x - t.x, c = i.y - t.y, l = Qt(a, r);
553
+ function ne(o, t, i, e) {
554
+ const { overshoot: n, bounces: a, decayRatio: r } = e, s = i.x - t.x, c = i.y - t.y, l = oe(a, r);
551
555
  let u = 0, h = 0, d = 1, f = n, b = !1;
552
556
  for (let g = 0; g < l.length; g++)
553
557
  if (o <= l[g].time) {
@@ -556,21 +560,21 @@ function Zt(o, t, i, e) {
556
560
  }
557
561
  const p = (o - h) / (d - h);
558
562
  if (b)
559
- u = 1 + f * nt(p);
563
+ u = 1 + f * ot(p);
560
564
  else if (h === 0)
561
- u = nt(p);
565
+ u = ot(p);
562
566
  else {
563
567
  const m = 1 + (l.find(
564
568
  (y, w) => y.time > h && w > 0 && l[w - 1].isOvershoot
565
569
  )?.overshoot || f);
566
- u = J(m, 1, nt(p));
570
+ u = J(m, 1, ot(p));
567
571
  }
568
572
  return {
569
573
  x: t.x + s * u,
570
574
  y: t.y + c * u
571
575
  };
572
576
  }
573
- function Qt(o, t) {
577
+ function oe(o, t) {
574
578
  const i = [];
575
579
  let e = 0.6;
576
580
  i.push({ time: e, overshoot: 0, isOvershoot: !1 });
@@ -580,7 +584,7 @@ function Qt(o, t) {
580
584
  e += r, i.push({ time: e, overshoot: n, isOvershoot: !0 }), e += r, i.push({ time: e, overshoot: n * t, isOvershoot: !1 }), n *= t;
581
585
  return i.push({ time: 1, overshoot: 0, isOvershoot: !1 }), i;
582
586
  }
583
- function te(o, t, i, e) {
587
+ function se(o, t, i, e) {
584
588
  const { stiffness: n, damping: a, mass: r, oscillations: s } = e, c = i.x - t.x, l = i.y - t.y, u = Math.sqrt(n / r), h = a / (2 * Math.sqrt(n * r));
585
589
  let d;
586
590
  if (h < 1) {
@@ -593,24 +597,24 @@ function te(o, t, i, e) {
593
597
  y: t.y + l * d
594
598
  };
595
599
  }
596
- function ee(o, t, i, e) {
597
- const { amplitude: n, frequency: a, decay: r, decayRate: s, phase: c } = e, l = i.x - t.x, u = i.y - t.y, h = Math.sqrt(l * l + u * u), d = h > 0 ? -u / h : 0, f = h > 0 ? l / h : 1, b = a * Math.PI * 2 * o + c, p = r ? Math.pow(1 - o, s) : 1, g = n * Math.sin(b) * p, m = ie(o);
600
+ function ae(o, t, i, e) {
601
+ const { amplitude: n, frequency: a, decay: r, decayRate: s, phase: c } = e, l = i.x - t.x, u = i.y - t.y, h = Math.sqrt(l * l + u * u), d = h > 0 ? -u / h : 0, f = h > 0 ? l / h : 1, b = a * Math.PI * 2 * o + c, p = r ? Math.pow(1 - o, s) : 1, g = n * Math.sin(b) * p, m = re(o);
598
602
  return {
599
603
  x: J(t.x, i.x, m) + g * d,
600
604
  y: J(t.y, i.y, m) + g * f
601
605
  };
602
606
  }
603
- function nt(o) {
607
+ function ot(o) {
604
608
  return 1 - (1 - o) * (1 - o);
605
609
  }
606
- function ie(o) {
610
+ function re(o) {
607
611
  return 1 - Math.pow(1 - o, 3);
608
612
  }
609
- function oe(o, t, i) {
613
+ function ce(o, t, i) {
610
614
  const { amplitude: e, frequency: n, decay: a } = i, r = Math.sin(o * n * Math.PI * 2), s = a ? Math.pow(1 - o, 2) : 1, c = e * r * s;
611
615
  return t + c;
612
616
  }
613
- function ne(o, t, i) {
617
+ function le(o, t, i) {
614
618
  const { overshoot: e, bounces: n } = i, a = [];
615
619
  a.push({ time: 0.5, scale: e });
616
620
  let r = e;
@@ -624,13 +628,13 @@ function ne(o, t, i) {
624
628
  let h = 1;
625
629
  for (let d = 0; d < a.length; d++)
626
630
  if (o <= a[d].time) {
627
- const f = d === 0 ? 0 : a[d - 1].time, b = d === 0 ? 1 : a[d - 1].scale, p = (o - f) / (a[d].time - f), g = nt(p);
631
+ const f = d === 0 ? 0 : a[d - 1].time, b = d === 0 ? 1 : a[d - 1].scale, p = (o - f) / (a[d].time - f), g = ot(p);
628
632
  h = b + (a[d].scale - b) * g;
629
633
  break;
630
634
  }
631
635
  return h * t;
632
636
  }
633
- function se(o) {
637
+ function he(o) {
634
638
  const {
635
639
  element: t,
636
640
  startPosition: i,
@@ -646,38 +650,38 @@ function se(o) {
646
650
  startRotation: d,
647
651
  scaleConfig: f,
648
652
  startScale: b
649
- } = o, p = n.type, g = d !== void 0 && d !== c, m = h?.mode === "wobble", y = h?.wobble || { amplitude: 15, frequency: 3, decay: !0 }, w = g || m, v = b !== void 0 && b !== l, R = f?.mode === "pop", x = f?.pop || { overshoot: 1.2, bounces: 1 };
650
- if ((p === "linear" || p === "arc") && !w && !(v || R)) {
653
+ } = o, p = n.type, g = d !== void 0 && d !== c, m = h?.mode === "wobble", y = h?.wobble || { amplitude: 15, frequency: 3, decay: !0 }, w = g || m, v = b !== void 0 && b !== l, I = f?.mode === "pop", x = f?.pop || { overshoot: 1.2, bounces: 1 };
654
+ if ((p === "linear" || p === "arc") && !w && !(v || I)) {
651
655
  u && u();
652
656
  return;
653
657
  }
654
658
  const z = performance.now(), L = -r / 2, _ = -s / 2;
655
659
  function O(H) {
656
- const N = H - z, T = Math.min(N / a, 1);
660
+ const k = H - z, T = Math.min(k / a, 1);
657
661
  let D;
658
662
  switch (p) {
659
663
  case "bounce": {
660
- const j = Bt(
664
+ const N = Qt(
661
665
  n.bouncePreset,
662
666
  n.bounce
663
667
  );
664
- D = Zt(T, i, e, j);
668
+ D = ne(T, i, e, N);
665
669
  break;
666
670
  }
667
671
  case "elastic": {
668
- const j = Vt(
672
+ const N = te(
669
673
  n.elasticPreset,
670
674
  n.elastic
671
675
  );
672
- D = te(T, i, e, j);
676
+ D = se(T, i, e, N);
673
677
  break;
674
678
  }
675
679
  case "wave": {
676
- const j = Jt(
680
+ const N = ee(
677
681
  n.wavePreset,
678
682
  n.wave
679
683
  );
680
- D = ee(T, i, e, j);
684
+ D = ae(T, i, e, N);
681
685
  break;
682
686
  }
683
687
  default:
@@ -688,16 +692,16 @@ function se(o) {
688
692
  }
689
693
  const G = D.x - e.x, U = D.y - e.y;
690
694
  let M;
691
- m ? M = oe(T, c, y) : g ? M = J(d, c, T) : M = c;
695
+ m ? M = ce(T, c, y) : g ? M = J(d, c, T) : M = c;
692
696
  let A;
693
- R ? A = ne(T, l, x) : v ? A = J(b, l, T) : A = l, t.style.transform = `translate(${L}px, ${_}px) translate(${G}px, ${U}px) rotate(${M}deg) scale(${A})`, T < 1 ? requestAnimationFrame(O) : (t.style.transform = `translate(${L}px, ${_}px) rotate(${c}deg) scale(${l})`, u && u());
697
+ I ? A = le(T, l, x) : v ? A = J(b, l, T) : A = l, t.style.transform = `translate(${L}px, ${_}px) translate(${G}px, ${U}px) rotate(${M}deg) scale(${A})`, T < 1 ? requestAnimationFrame(O) : (t.style.transform = `translate(${L}px, ${_}px) rotate(${c}deg) scale(${l})`, u && u());
694
698
  }
695
699
  requestAnimationFrame(O);
696
700
  }
697
- function ae(o) {
701
+ function de(o) {
698
702
  return o === "bounce" || o === "elastic" || o === "wave";
699
703
  }
700
- const re = {
704
+ const ue = {
701
705
  radial: "center",
702
706
  spiral: "center",
703
707
  grid: "top",
@@ -706,7 +710,7 @@ const re = {
706
710
  wave: "left",
707
711
  honeycomb: "center"
708
712
  };
709
- class ce {
713
+ class ge {
710
714
  constructor(t, i) {
711
715
  this.config = t, this.layoutAlgorithm = i, this.resolvedStartPosition = this.resolveStartPosition(), this.pathConfig = t.path || yt, this.rotationConfig = t.rotation || vt, this.scaleConfig = t.scale || wt;
712
716
  }
@@ -714,7 +718,7 @@ class ce {
714
718
  * Get the effective start position, considering layout-aware defaults
715
719
  */
716
720
  resolveStartPosition() {
717
- return this.config.start.position ? this.config.start.position : re[this.layoutAlgorithm] || "nearest-edge";
721
+ return this.config.start.position ? this.config.start.position : ue[this.layoutAlgorithm] || "nearest-edge";
718
722
  }
719
723
  /**
720
724
  * Calculate the starting position for an image's entry animation
@@ -859,7 +863,7 @@ class ce {
859
863
  * Check if the current path type requires JavaScript animation
860
864
  */
861
865
  requiresJSAnimation() {
862
- return ae(this.pathConfig.type);
866
+ return de(this.pathConfig.type);
863
867
  }
864
868
  /**
865
869
  * Get the path configuration
@@ -1050,7 +1054,193 @@ class ce {
1050
1054
  return 1 - (1 - t) * (1 - t);
1051
1055
  }
1052
1056
  }
1053
- class le {
1057
+ class fe {
1058
+ constructor(t, i = 600) {
1059
+ this.entries = /* @__PURE__ */ new Map(), this.togetherRafId = null, this.togetherSpeed = 0, this.config = t, this.entryDurationMs = i;
1060
+ }
1061
+ /**
1062
+ * Register an image element for idle animation.
1063
+ * Starts animation after entry duration completes.
1064
+ */
1065
+ register(t, i, e, n) {
1066
+ if (this.entries.has(t)) return;
1067
+ const a = n ?? this.entryDurationMs, r = this.config.startDelay ?? a, s = {
1068
+ element: t,
1069
+ index: i,
1070
+ totalImages: e,
1071
+ animation: null,
1072
+ blinkAnimation: null,
1073
+ customTeardown: null,
1074
+ paused: !1,
1075
+ stopped: !1,
1076
+ startTimer: null
1077
+ };
1078
+ this.entries.set(t, s), s.startTimer = setTimeout(() => {
1079
+ s.startTimer = null, !s.stopped && !s.paused && this._startAnimation(s);
1080
+ }, r);
1081
+ }
1082
+ /**
1083
+ * Pause idle animation for a specific image (set to neutral then pause).
1084
+ */
1085
+ pauseForImage(t) {
1086
+ const i = this.entries.get(t);
1087
+ i && (i.paused = !0, i.startTimer !== null && (clearTimeout(i.startTimer), i.startTimer = null), this._pauseEntry(i));
1088
+ }
1089
+ /**
1090
+ * Resume idle animation for a specific image by starting a fresh animation.
1091
+ * Always restarts rather than resuming, to avoid Web Animations API
1092
+ * quirks with negative-delay animations after pause/cancel.
1093
+ */
1094
+ resumeForImage(t) {
1095
+ const i = this.entries.get(t);
1096
+ !i || i.stopped || (i.paused = !1, this._startAnimation(i));
1097
+ }
1098
+ /**
1099
+ * Stop and remove idle animation for a specific image.
1100
+ */
1101
+ stopForImage(t) {
1102
+ const i = this.entries.get(t);
1103
+ i && (i.stopped = !0, i.startTimer !== null && (clearTimeout(i.startTimer), i.startTimer = null), this._cancelEntry(i), this.entries.delete(t));
1104
+ }
1105
+ pauseAll() {
1106
+ for (const t of this.entries.values())
1107
+ t.paused = !0, t.startTimer !== null && (clearTimeout(t.startTimer), t.startTimer = null), this._pauseEntry(t);
1108
+ }
1109
+ resumeAll() {
1110
+ for (const t of this.entries.values())
1111
+ t.stopped || (t.paused = !1, this._startAnimation(t));
1112
+ }
1113
+ stopAll() {
1114
+ for (const t of this.entries.values())
1115
+ t.stopped = !0, t.startTimer !== null && (clearTimeout(t.startTimer), t.startTimer = null), this._cancelEntry(t);
1116
+ this.entries.clear(), this._stopTogetherLoop();
1117
+ }
1118
+ // ──────────────────────────────────────────────────────────────────────────
1119
+ // Private helpers
1120
+ // ──────────────────────────────────────────────────────────────────────────
1121
+ _startAnimation(t) {
1122
+ const { type: i } = this.config;
1123
+ switch (i) {
1124
+ case "wiggle":
1125
+ this._startWiggle(t);
1126
+ break;
1127
+ case "pulse":
1128
+ this._startPulse(t);
1129
+ break;
1130
+ case "blink":
1131
+ this._startBlink(t);
1132
+ break;
1133
+ case "spin":
1134
+ this._startSpin(t);
1135
+ break;
1136
+ case "custom":
1137
+ this._startCustom(t);
1138
+ break;
1139
+ }
1140
+ }
1141
+ _startWiggle(t) {
1142
+ const i = { ...Gt, ...this.config.wiggle }, e = [
1143
+ { transform: "rotate(0deg)", offset: 0 },
1144
+ { transform: `rotate(${i.maxAngle}deg)`, offset: 0.25 },
1145
+ { transform: "rotate(0deg)", offset: 0.5 },
1146
+ { transform: `rotate(${-i.maxAngle}deg)`, offset: 0.75 },
1147
+ { transform: "rotate(0deg)", offset: 1 }
1148
+ ];
1149
+ i.sync === "together" ? (t.animation = t.element.animate(e, {
1150
+ duration: i.speed,
1151
+ iterations: 1 / 0,
1152
+ composite: "add",
1153
+ fill: "both"
1154
+ }), t.animation.pause(), this._startTogetherLoop(i.speed)) : t.animation = t.element.animate(e, {
1155
+ duration: i.speed,
1156
+ delay: -(Math.random() * i.speed),
1157
+ iterations: 1 / 0,
1158
+ composite: "add"
1159
+ });
1160
+ }
1161
+ _startPulse(t) {
1162
+ const i = { ...qt, ...this.config.pulse }, e = [
1163
+ { transform: "scale(1)", offset: 0 },
1164
+ { transform: `scale(${i.maxScale})`, offset: 0.25 },
1165
+ { transform: "scale(1)", offset: 0.5 },
1166
+ { transform: `scale(${i.minScale})`, offset: 0.75 },
1167
+ { transform: "scale(1)", offset: 1 }
1168
+ ];
1169
+ i.sync === "together" ? (t.animation = t.element.animate(e, {
1170
+ duration: i.speed,
1171
+ iterations: 1 / 0,
1172
+ composite: "add",
1173
+ fill: "both"
1174
+ }), t.animation.pause(), this._startTogetherLoop(i.speed)) : t.animation = t.element.animate(e, {
1175
+ duration: i.speed,
1176
+ delay: -(Math.random() * i.speed),
1177
+ iterations: 1 / 0,
1178
+ composite: "add"
1179
+ });
1180
+ }
1181
+ _startBlink(t) {
1182
+ const i = { ...Bt, ...this.config.blink }, e = -(Math.random() * i.speed), n = parseFloat(getComputedStyle(t.element).opacity) || 1;
1183
+ let a, r;
1184
+ i.style === "fade" ? (a = [
1185
+ { opacity: n, offset: 0 },
1186
+ { opacity: 0, offset: 0.5 },
1187
+ { opacity: n, offset: 1 }
1188
+ ], r = {
1189
+ duration: i.speed,
1190
+ delay: e,
1191
+ iterations: 1 / 0,
1192
+ easing: "ease-in-out"
1193
+ }) : (a = [
1194
+ { opacity: n, offset: 0 },
1195
+ { opacity: n, offset: i.onRatio },
1196
+ { opacity: 0, offset: Math.min(i.onRatio + 0.01, 0.99) },
1197
+ { opacity: 0, offset: 0.99 },
1198
+ { opacity: n, offset: 1 }
1199
+ ], r = {
1200
+ duration: i.speed,
1201
+ delay: e,
1202
+ iterations: 1 / 0
1203
+ }), t.blinkAnimation = t.element.animate(a, r);
1204
+ }
1205
+ _startSpin(t) {
1206
+ const i = { ...Xt, ...this.config.spin }, e = i.direction === "clockwise" ? 360 : -360;
1207
+ t.animation = t.element.animate(
1208
+ [{ transform: "rotate(0deg)" }, { transform: `rotate(${e}deg)` }],
1209
+ {
1210
+ duration: i.speed,
1211
+ iterations: 1 / 0,
1212
+ easing: "linear",
1213
+ composite: "add"
1214
+ }
1215
+ );
1216
+ }
1217
+ _startCustom(t) {
1218
+ const i = this.config.custom;
1219
+ if (!i) return;
1220
+ const e = i({ element: t.element, index: t.index, totalImages: t.totalImages });
1221
+ typeof e == "function" ? t.customTeardown = e : e && typeof e.play == "function" && (t.animation = e);
1222
+ }
1223
+ _startTogetherLoop(t) {
1224
+ if (this.togetherSpeed = t, this.togetherRafId !== null) return;
1225
+ const i = () => {
1226
+ const e = performance.now() % this.togetherSpeed;
1227
+ for (const n of this.entries.values())
1228
+ !n.stopped && !n.paused && n.animation && (n.animation.currentTime = e);
1229
+ this.togetherRafId = requestAnimationFrame(i);
1230
+ };
1231
+ this.togetherRafId = requestAnimationFrame(i);
1232
+ }
1233
+ _stopTogetherLoop() {
1234
+ this.togetherRafId !== null && (cancelAnimationFrame(this.togetherRafId), this.togetherRafId = null);
1235
+ }
1236
+ _pauseEntry(t) {
1237
+ t.animation && (t.animation.cancel(), t.animation = null), t.blinkAnimation && (t.blinkAnimation.cancel(), t.blinkAnimation = null);
1238
+ }
1239
+ _cancelEntry(t) {
1240
+ t.animation && (t.animation.cancel(), t.animation = null), t.blinkAnimation && (t.blinkAnimation.cancel(), t.blinkAnimation = null), t.customTeardown && (t.customTeardown(), t.customTeardown = null);
1241
+ }
1242
+ }
1243
+ class me {
1054
1244
  constructor(t, i = {}) {
1055
1245
  this.config = t, this.imageConfig = i;
1056
1246
  }
@@ -1062,11 +1252,11 @@ class le {
1062
1252
  * @returns Array of layout objects with position, rotation, scale
1063
1253
  */
1064
1254
  generate(t, i, e = {}) {
1065
- const n = [], { width: a, height: r } = i, s = this.config.spacing.padding, c = e.fixedHeight ?? 200, l = this.imageConfig.rotation?.mode ?? "none", u = this.imageConfig.rotation?.range?.min ?? -15, h = this.imageConfig.rotation?.range?.max ?? 15, d = this.imageConfig.sizing?.variance?.min ?? 1, f = this.imageConfig.sizing?.variance?.max ?? 1, b = d !== 1 || f !== 1, g = c * 1.5 / 2, m = c / 2, y = a - s - g, w = r - s - m, v = s + g, R = s + m;
1255
+ const n = [], { width: a, height: r } = i, s = this.config.spacing.padding, c = e.fixedHeight ?? 200, l = this.imageConfig.rotation?.mode ?? "none", u = this.imageConfig.rotation?.range?.min ?? -15, h = this.imageConfig.rotation?.range?.max ?? 15, d = this.imageConfig.sizing?.variance?.min ?? 1, f = this.imageConfig.sizing?.variance?.max ?? 1, b = d !== 1 || f !== 1, g = c * 1.5 / 2, m = c / 2, y = a - s - g, w = r - s - m, v = s + g, I = s + m;
1066
1256
  for (let x = 0; x < t; x++) {
1067
- const I = this.random(v, y), z = this.random(R, w), L = l === "random" ? this.random(u, h) : 0, _ = b ? this.random(d, f) : 1, O = c * _, H = {
1257
+ const R = this.random(v, y), z = this.random(I, w), L = l === "random" ? this.random(u, h) : 0, _ = b ? this.random(d, f) : 1, O = c * _, H = {
1068
1258
  id: x,
1069
- x: I,
1259
+ x: R,
1070
1260
  y: z,
1071
1261
  rotation: L,
1072
1262
  scale: _,
@@ -1086,7 +1276,7 @@ class le {
1086
1276
  return Math.random() * (i - t) + t;
1087
1277
  }
1088
1278
  }
1089
- class he {
1279
+ class pe {
1090
1280
  constructor(t, i = {}) {
1091
1281
  this.config = t, this.imageConfig = i;
1092
1282
  }
@@ -1099,9 +1289,9 @@ class he {
1099
1289
  */
1100
1290
  generate(t, i, e = {}) {
1101
1291
  const n = [], { width: a, height: r } = i, s = e.fixedHeight ?? 200, c = this.imageConfig.rotation?.mode ?? "none", l = this.imageConfig.rotation?.range?.min ?? -15, u = this.imageConfig.rotation?.range?.max ?? 15, h = this.imageConfig.sizing?.variance?.min ?? 1, d = this.imageConfig.sizing?.variance?.max ?? 1, f = h !== 1 || d !== 1, b = this.config.scaleDecay ?? 0, p = {
1102
- ..._t,
1292
+ ...Ut,
1103
1293
  ...this.config.radial
1104
- }, g = e.fixedHeight ?? s, m = a / 2, y = r / 2, w = Math.ceil(Math.sqrt(t)), v = this.config.spacing.padding ?? 50, R = Math.max(g * 0.8, Math.min(
1294
+ }, g = e.fixedHeight ?? s, m = a / 2, y = r / 2, w = Math.ceil(Math.sqrt(t)), v = this.config.spacing.padding ?? 50, I = Math.max(g * 0.8, Math.min(
1105
1295
  m - v - g / 2,
1106
1296
  y - v - g / 2
1107
1297
  ));
@@ -1119,32 +1309,32 @@ class he {
1119
1309
  // Center image is highest
1120
1310
  });
1121
1311
  }
1122
- let x = 1, I = 1;
1312
+ let x = 1, R = 1;
1123
1313
  for (; x < t; ) {
1124
- const z = I / w, L = b > 0 ? 1 - z * b * 0.5 : 1, _ = Math.max(g * 0.8, R / w * 1.5 / p.tightness), O = I * _, H = O * 1.5, N = Math.PI * (3 * (H + O) - Math.sqrt((3 * H + O) * (H + 3 * O))), T = this.estimateWidth(g), D = Math.floor(N / (T * 0.7));
1314
+ const z = R / w, L = b > 0 ? 1 - z * b * 0.5 : 1, _ = Math.max(g * 0.8, I / w * 1.5 / p.tightness), O = R * _, H = O * 1.5, k = Math.PI * (3 * (H + O) - Math.sqrt((3 * H + O) * (H + 3 * O))), T = this.estimateWidth(g), D = Math.floor(k / (T * 0.7));
1125
1315
  if (D === 0) {
1126
- I++;
1316
+ R++;
1127
1317
  continue;
1128
1318
  }
1129
- const G = 2 * Math.PI / D, U = I * (20 * Math.PI / 180);
1319
+ const G = 2 * Math.PI / D, U = R * (20 * Math.PI / 180);
1130
1320
  for (let M = 0; M < D && x < t; M++) {
1131
- const A = M * G + U, j = f ? this.random(h, d) : 1, X = L * j, C = g * X;
1321
+ const A = M * G + U, N = f ? this.random(h, d) : 1, B = L * N, C = g * B;
1132
1322
  let $ = m + Math.cos(A) * H, F = y + Math.sin(A) * O;
1133
- const P = C * 1.5 / 2, W = C / 2;
1134
- $ - P < v ? $ = v + P : $ + P > a - v && ($ = a - v - P), F - W < v ? F = v + W : F + W > r - v && (F = r - v - W);
1135
- const B = c === "random" ? this.random(l, u) : 0;
1323
+ const P = C * 1.5 / 2, j = C / 2;
1324
+ $ - P < v ? $ = v + P : $ + P > a - v && ($ = a - v - P), F - j < v ? F = v + j : F + j > r - v && (F = r - v - j);
1325
+ const Y = c === "random" ? this.random(l, u) : 0;
1136
1326
  n.push({
1137
1327
  id: x,
1138
1328
  x: $,
1139
1329
  y: F,
1140
- rotation: B,
1141
- scale: X,
1330
+ rotation: Y,
1331
+ scale: B,
1142
1332
  baseSize: C,
1143
- zIndex: Math.max(1, 100 - I)
1333
+ zIndex: Math.max(1, 100 - R)
1144
1334
  // Outer rings have lower z-index
1145
1335
  }), x++;
1146
1336
  }
1147
- I++;
1337
+ R++;
1148
1338
  }
1149
1339
  return n;
1150
1340
  }
@@ -1167,7 +1357,7 @@ class he {
1167
1357
  return Math.random() * (i - t) + t;
1168
1358
  }
1169
1359
  }
1170
- const de = {
1360
+ const be = {
1171
1361
  columns: "auto",
1172
1362
  rows: "auto",
1173
1363
  stagger: "none",
@@ -1195,7 +1385,7 @@ const de = {
1195
1385
  { x: 0, y: 1 }
1196
1386
  // down
1197
1387
  ];
1198
- class ue {
1388
+ class ye {
1199
1389
  constructor(t, i = {}) {
1200
1390
  this.config = t, this.imageConfig = i;
1201
1391
  }
@@ -1207,13 +1397,13 @@ class ue {
1207
1397
  * @returns Array of layout objects with position, rotation, scale
1208
1398
  */
1209
1399
  generate(t, i, e = {}) {
1210
- const n = [], { width: a, height: r } = i, s = { ...de, ...this.config.grid }, c = this.config.spacing.padding, l = e.fixedHeight ?? 200, u = this.imageConfig.rotation?.mode ?? "none", h = this.imageConfig.sizing?.variance?.min ?? 1, d = this.imageConfig.sizing?.variance?.max ?? 1, f = h !== 1 || d !== 1, b = a - 2 * c, p = r - 2 * c, { columns: g, rows: m } = this.calculateGridDimensions(
1400
+ const n = [], { width: a, height: r } = i, s = { ...be, ...this.config.grid }, c = this.config.spacing.padding, l = e.fixedHeight ?? 200, u = this.imageConfig.rotation?.mode ?? "none", h = this.imageConfig.sizing?.variance?.min ?? 1, d = this.imageConfig.sizing?.variance?.max ?? 1, f = h !== 1 || d !== 1, b = a - 2 * c, p = r - 2 * c, { columns: g, rows: m } = this.calculateGridDimensions(
1211
1401
  t,
1212
1402
  b,
1213
1403
  p,
1214
1404
  l,
1215
1405
  s
1216
- ), y = s.stagger === "row", w = s.stagger === "column", v = y ? g + 0.5 : g, R = w ? m + 0.5 : m, x = (b - s.gap * (g - 1)) / v, I = (p - s.gap * (m - 1)) / R, z = y ? x / 2 : 0, L = w ? I / 2 : 0, _ = 1 + s.overlap, O = Math.min(x, I) * _, H = e.fixedHeight ? Math.min(e.fixedHeight, O) : O, N = g * x + (g - 1) * s.gap + z, T = m * I + (m - 1) * s.gap + L, D = c + (b - N) / 2, G = c + (p - T) / 2, U = g * m, M = s.columns !== "auto" && s.rows !== "auto", A = M && t > U;
1406
+ ), y = s.stagger === "row", w = s.stagger === "column", v = y ? g + 0.5 : g, I = w ? m + 0.5 : m, x = (b - s.gap * (g - 1)) / v, R = (p - s.gap * (m - 1)) / I, z = y ? x / 2 : 0, L = w ? R / 2 : 0, _ = 1 + s.overlap, O = Math.min(x, R) * _, H = e.fixedHeight ? Math.min(e.fixedHeight, O) : O, k = g * x + (g - 1) * s.gap + z, T = m * R + (m - 1) * s.gap + L, D = c + (b - k) / 2, G = c + (p - T) / 2, U = g * m, M = s.columns !== "auto" && s.rows !== "auto", A = M && t > U;
1217
1407
  typeof window < "u" && (window.__gridOverflowDebug = {
1218
1408
  gridConfigColumns: s.columns,
1219
1409
  gridConfigRows: s.rows,
@@ -1224,43 +1414,43 @@ class ue {
1224
1414
  imageCount: t,
1225
1415
  isOverflowMode: A
1226
1416
  });
1227
- const j = A ? new Array(U).fill(0) : [], X = Math.min(x, I) * s.overflowOffset;
1417
+ const N = A ? new Array(U).fill(0) : [], B = Math.min(x, R) * s.overflowOffset;
1228
1418
  for (let C = 0; C < t; C++) {
1229
- let $, F, Y = 0;
1419
+ let $, F, X = 0;
1230
1420
  if (A && C >= U) {
1231
- const q = C - U, k = q % U;
1232
- Y = Math.floor(q / U) + 1, j[k]++, s.fillDirection === "row" ? ($ = k % g, F = Math.floor(k / g)) : (F = k % m, $ = Math.floor(k / m));
1421
+ const q = C - U, W = q % U;
1422
+ X = Math.floor(q / U) + 1, N[W]++, s.fillDirection === "row" ? ($ = W % g, F = Math.floor(W / g)) : (F = W % m, $ = Math.floor(W / m));
1233
1423
  } else
1234
1424
  s.fillDirection === "row" ? ($ = C % g, F = Math.floor(C / g)) : (F = C % m, $ = Math.floor(C / m));
1235
- let P = D + $ * (x + s.gap) + x / 2, W = G + F * (I + s.gap) + I / 2;
1236
- if (s.stagger === "row" && F % 2 === 1 ? P += x / 2 : s.stagger === "column" && $ % 2 === 1 && (W += I / 2), Y > 0) {
1237
- const q = (Y - 1) % At.length, k = At[q];
1238
- P += k.x * X, W += k.y * X;
1425
+ let P = D + $ * (x + s.gap) + x / 2, j = G + F * (R + s.gap) + R / 2;
1426
+ if (s.stagger === "row" && F % 2 === 1 ? P += x / 2 : s.stagger === "column" && $ % 2 === 1 && (j += R / 2), X > 0) {
1427
+ const q = (X - 1) % At.length, W = At[q];
1428
+ P += W.x * B, j += W.y * B;
1239
1429
  }
1240
1430
  if (s.jitter > 0) {
1241
- const q = x / 2 * s.jitter, k = I / 2 * s.jitter;
1242
- P += this.random(-q, q), W += this.random(-k, k);
1431
+ const q = x / 2 * s.jitter, W = R / 2 * s.jitter;
1432
+ P += this.random(-q, q), j += this.random(-W, W);
1243
1433
  }
1244
- let B = P, V = W;
1434
+ let Y = P, V = j;
1245
1435
  if (!A && s.fillDirection === "row") {
1246
1436
  const q = t % g || g;
1247
1437
  if (F === Math.floor((t - 1) / g) && q < g) {
1248
1438
  const St = q * x + (q - 1) * s.gap;
1249
1439
  let gt = 0;
1250
- s.alignment === "center" ? gt = (N - St) / 2 : s.alignment === "end" && (gt = N - St), B += gt;
1440
+ s.alignment === "center" ? gt = (k - St) / 2 : s.alignment === "end" && (gt = k - St), Y += gt;
1251
1441
  }
1252
1442
  }
1253
- const rt = f ? this.random(h, d) : 1, K = H * rt, it = K * 1.5 / 2, ot = K / 2, lt = c + it, ht = a - c - it, $t = c + ot, Pt = r - c - ot;
1254
- B = Math.max(lt, Math.min(B, ht)), V = Math.max($t, Math.min(V, Pt));
1443
+ const rt = f ? this.random(h, d) : 1, K = H * rt, it = K * 1.5 / 2, nt = K / 2, lt = c + it, ht = a - c - it, Pt = c + nt, _t = r - c - nt;
1444
+ Y = Math.max(lt, Math.min(Y, ht)), V = Math.max(Pt, Math.min(V, _t));
1255
1445
  let dt = 0;
1256
1446
  if (u === "random") {
1257
- const q = this.imageConfig.rotation?.range?.min ?? -15, k = this.imageConfig.rotation?.range?.max ?? 15;
1258
- s.jitter > 0 ? dt = this.random(q * s.jitter, k * s.jitter) : dt = this.random(q, k);
1447
+ const q = this.imageConfig.rotation?.range?.min ?? -15, W = this.imageConfig.rotation?.range?.max ?? 15;
1448
+ s.jitter > 0 ? dt = this.random(q * s.jitter, W * s.jitter) : dt = this.random(q, W);
1259
1449
  }
1260
1450
  let ut;
1261
- A && Y > 0 ? ut = 50 - Y : ut = A ? 100 + C : C + 1, n.push({
1451
+ A && X > 0 ? ut = 50 - X : ut = A ? 100 + C : C + 1, n.push({
1262
1452
  id: C,
1263
- x: B,
1453
+ x: Y,
1264
1454
  y: V,
1265
1455
  rotation: dt,
1266
1456
  scale: rt,
@@ -1295,14 +1485,14 @@ class ue {
1295
1485
  return Math.random() * (i - t) + t;
1296
1486
  }
1297
1487
  }
1298
- const ge = Math.PI * (3 - Math.sqrt(5)), fe = {
1488
+ const ve = Math.PI * (3 - Math.sqrt(5)), we = {
1299
1489
  spiralType: "golden",
1300
1490
  direction: "counterclockwise",
1301
1491
  tightness: 1,
1302
1492
  scaleDecay: 0,
1303
1493
  startAngle: 0
1304
1494
  };
1305
- class me {
1495
+ class xe {
1306
1496
  constructor(t, i = {}) {
1307
1497
  this.config = t, this.imageConfig = i;
1308
1498
  }
@@ -1314,36 +1504,36 @@ class me {
1314
1504
  * @returns Array of layout objects with position, rotation, scale
1315
1505
  */
1316
1506
  generate(t, i, e = {}) {
1317
- const n = [], { width: a, height: r } = i, s = { ...fe, ...this.config.spiral }, c = this.config.spacing.padding, l = e.fixedHeight ?? 200, u = this.imageConfig.rotation?.mode ?? "none", h = this.imageConfig.rotation?.range?.min ?? -15, d = this.imageConfig.rotation?.range?.max ?? 15, f = this.imageConfig.sizing?.variance?.min ?? 1, b = this.imageConfig.sizing?.variance?.max ?? 1, p = f !== 1 || b !== 1, g = this.config.scaleDecay ?? s.scaleDecay, m = a / 2, y = r / 2, w = Math.min(
1507
+ const n = [], { width: a, height: r } = i, s = { ...we, ...this.config.spiral }, c = this.config.spacing.padding, l = e.fixedHeight ?? 200, u = this.imageConfig.rotation?.mode ?? "none", h = this.imageConfig.rotation?.range?.min ?? -15, d = this.imageConfig.rotation?.range?.max ?? 15, f = this.imageConfig.sizing?.variance?.min ?? 1, b = this.imageConfig.sizing?.variance?.max ?? 1, p = f !== 1 || b !== 1, g = this.config.scaleDecay ?? s.scaleDecay, m = a / 2, y = r / 2, w = Math.min(
1318
1508
  m - c - l / 2,
1319
1509
  y - c - l / 2
1320
1510
  ), v = s.direction === "clockwise" ? -1 : 1;
1321
- for (let R = 0; R < t; R++) {
1322
- let x, I;
1511
+ for (let I = 0; I < t; I++) {
1512
+ let x, R;
1323
1513
  if (s.spiralType === "golden")
1324
- x = R * ge * v + s.startAngle, I = this.calculateGoldenRadius(R, t, w, s.tightness);
1514
+ x = I * ve * v + s.startAngle, R = this.calculateGoldenRadius(I, t, w, s.tightness);
1325
1515
  else if (s.spiralType === "archimedean") {
1326
- const P = R * 0.5 * s.tightness;
1327
- x = P * v + s.startAngle, I = this.calculateArchimedeanRadius(P, t, w, s.tightness);
1516
+ const P = I * 0.5 * s.tightness;
1517
+ x = P * v + s.startAngle, R = this.calculateArchimedeanRadius(P, t, w, s.tightness);
1328
1518
  } else {
1329
- const P = R * 0.3 * s.tightness;
1330
- x = P * v + s.startAngle, I = this.calculateLogarithmicRadius(P, t, w, s.tightness);
1519
+ const P = I * 0.3 * s.tightness;
1520
+ x = P * v + s.startAngle, R = this.calculateLogarithmicRadius(P, t, w, s.tightness);
1331
1521
  }
1332
- const z = m + Math.cos(x) * I, L = y + Math.sin(x) * I, _ = I / w, O = g > 0 ? 1 - _ * g * 0.5 : 1, H = p ? this.random(f, b) : 1, N = O * H, T = l * N, G = T * 1.5 / 2, U = T / 2, M = c + G, A = a - c - G, j = c + U, X = r - c - U, C = Math.max(M, Math.min(z, A)), $ = Math.max(j, Math.min(L, X));
1522
+ const z = m + Math.cos(x) * R, L = y + Math.sin(x) * R, _ = R / w, O = g > 0 ? 1 - _ * g * 0.5 : 1, H = p ? this.random(f, b) : 1, k = O * H, T = l * k, G = T * 1.5 / 2, U = T / 2, M = c + G, A = a - c - G, N = c + U, B = r - c - U, C = Math.max(M, Math.min(z, A)), $ = Math.max(N, Math.min(L, B));
1333
1523
  let F = 0;
1334
1524
  if (u === "random") {
1335
- const P = x * 180 / Math.PI % 360, W = this.random(h, d);
1336
- F = s.spiralType === "golden" ? W : P * 0.1 + W * 0.9;
1337
- } else u === "tangent" && (F = this.calculateSpiralTangent(x, I, s));
1338
- const Y = t - R;
1525
+ const P = x * 180 / Math.PI % 360, j = this.random(h, d);
1526
+ F = s.spiralType === "golden" ? j : P * 0.1 + j * 0.9;
1527
+ } else u === "tangent" && (F = this.calculateSpiralTangent(x, R, s));
1528
+ const X = t - I;
1339
1529
  n.push({
1340
- id: R,
1530
+ id: I,
1341
1531
  x: C,
1342
1532
  y: $,
1343
1533
  rotation: F,
1344
- scale: N,
1534
+ scale: k,
1345
1535
  baseSize: T,
1346
- zIndex: Y
1536
+ zIndex: X
1347
1537
  });
1348
1538
  }
1349
1539
  return n;
@@ -1396,7 +1586,7 @@ class me {
1396
1586
  return Math.random() * (i - t) + t;
1397
1587
  }
1398
1588
  }
1399
- const pe = {
1589
+ const Ee = {
1400
1590
  clusterCount: "auto",
1401
1591
  clusterSpread: 150,
1402
1592
  clusterSpacing: 200,
@@ -1404,7 +1594,7 @@ const pe = {
1404
1594
  overlap: 0.3,
1405
1595
  distribution: "gaussian"
1406
1596
  };
1407
- class be {
1597
+ class Se {
1408
1598
  constructor(t, i = {}) {
1409
1599
  this.config = t, this.imageConfig = i;
1410
1600
  }
@@ -1416,7 +1606,7 @@ class be {
1416
1606
  * @returns Array of layout objects with position, rotation, scale
1417
1607
  */
1418
1608
  generate(t, i, e = {}) {
1419
- const n = [], { width: a, height: r } = i, s = { ...pe, ...this.config.cluster }, c = this.config.spacing.padding, l = e.fixedHeight ?? 200, u = this.imageConfig.rotation?.mode ?? "none", h = this.imageConfig.rotation?.range?.min ?? -15, d = this.imageConfig.rotation?.range?.max ?? 15, f = this.imageConfig.sizing?.variance?.min ?? 1, b = this.imageConfig.sizing?.variance?.max ?? 1, p = f !== 1 || b !== 1, g = this.calculateClusterCount(
1609
+ const n = [], { width: a, height: r } = i, s = { ...Ee, ...this.config.cluster }, c = this.config.spacing.padding, l = e.fixedHeight ?? 200, u = this.imageConfig.rotation?.mode ?? "none", h = this.imageConfig.rotation?.range?.min ?? -15, d = this.imageConfig.rotation?.range?.max ?? 15, f = this.imageConfig.sizing?.variance?.min ?? 1, b = this.imageConfig.sizing?.variance?.max ?? 1, p = f !== 1 || b !== 1, g = this.calculateClusterCount(
1420
1610
  t,
1421
1611
  s.clusterCount,
1422
1612
  a,
@@ -1433,28 +1623,28 @@ class be {
1433
1623
  y[v % g]++;
1434
1624
  let w = 0;
1435
1625
  for (let v = 0; v < g; v++) {
1436
- const R = m[v], x = y[v];
1437
- for (let I = 0; I < x; I++) {
1626
+ const I = m[v], x = y[v];
1627
+ for (let R = 0; R < x; R++) {
1438
1628
  let z, L;
1439
1629
  if (s.distribution === "gaussian")
1440
- z = this.gaussianRandom() * R.spread, L = this.gaussianRandom() * R.spread;
1630
+ z = this.gaussianRandom() * I.spread, L = this.gaussianRandom() * I.spread;
1441
1631
  else {
1442
- const F = this.random(0, Math.PI * 2), Y = this.random(0, R.spread);
1443
- z = Math.cos(F) * Y, L = Math.sin(F) * Y;
1632
+ const F = this.random(0, Math.PI * 2), X = this.random(0, I.spread);
1633
+ z = Math.cos(F) * X, L = Math.sin(F) * X;
1444
1634
  }
1445
1635
  const _ = 1 + s.overlap * 0.5, O = 1 + s.overlap * 0.3;
1446
1636
  z /= _, L /= _;
1447
- const H = p ? this.random(f, b) : 1, N = O * H, T = l * N;
1448
- let D = R.x + z, G = R.y + L;
1637
+ const H = p ? this.random(f, b) : 1, k = O * H, T = l * k;
1638
+ let D = I.x + z, G = I.y + L;
1449
1639
  const M = T * 1.5 / 2, A = T / 2;
1450
1640
  D = Math.max(c + M, Math.min(D, a - c - M)), G = Math.max(c + A, Math.min(G, r - c - A));
1451
- const j = u === "random" ? this.random(h, d) : 0, C = Math.sqrt(z * z + L * L) / R.spread, $ = Math.round((1 - C) * 50) + 1;
1641
+ const N = u === "random" ? this.random(h, d) : 0, C = Math.sqrt(z * z + L * L) / I.spread, $ = Math.round((1 - C) * 50) + 1;
1452
1642
  n.push({
1453
1643
  id: w,
1454
1644
  x: D,
1455
1645
  y: G,
1456
- rotation: j,
1457
- scale: N,
1646
+ rotation: N,
1647
+ scale: k,
1458
1648
  baseSize: T,
1459
1649
  zIndex: $
1460
1650
  }), w++;
@@ -1488,8 +1678,8 @@ class be {
1488
1678
  };
1489
1679
  let m = 1 / 0;
1490
1680
  for (const y of r) {
1491
- const w = g.x - y.x, v = g.y - y.y, R = Math.sqrt(w * w + v * v);
1492
- m = Math.min(m, R);
1681
+ const w = g.x - y.x, v = g.y - y.y, I = Math.sqrt(w * w + v * v);
1682
+ m = Math.min(m, I);
1493
1683
  }
1494
1684
  if ((r.length === 0 || m > b) && (f = g, b = m), m >= a.clusterSpacing)
1495
1685
  break;
@@ -1522,7 +1712,7 @@ class be {
1522
1712
  return Math.random() * (i - t) + t;
1523
1713
  }
1524
1714
  }
1525
- class ye {
1715
+ class Ie {
1526
1716
  constructor(t, i = {}) {
1527
1717
  this.config = t, this.imageConfig = i;
1528
1718
  }
@@ -1535,26 +1725,26 @@ class ye {
1535
1725
  */
1536
1726
  generate(t, i, e = {}) {
1537
1727
  const n = [], { width: a, height: r } = i, s = e.fixedHeight ?? 200, c = this.config.spacing.padding ?? 50, l = this.imageConfig.rotation?.mode ?? "none", u = this.imageConfig.rotation?.range?.min ?? -15, h = this.imageConfig.rotation?.range?.max ?? 15, d = this.imageConfig.sizing?.variance?.min ?? 1, f = this.imageConfig.sizing?.variance?.max ?? 1, b = d !== 1 || f !== 1, p = e.fixedHeight ?? s, g = {
1538
- ...Ut,
1728
+ ...Ht,
1539
1729
  ...this.config.wave
1540
- }, { rows: m, amplitude: y, frequency: w, phaseShift: v, synchronization: R } = g, x = Math.ceil(t / m), L = p * 1.5 / 2, _ = c + L, O = a - c - L, H = O - _, N = x > 1 ? H / (x - 1) : 0, T = c + y + p / 2, D = r - c - y - p / 2, G = D - T, U = m > 1 ? G / (m - 1) : 0;
1730
+ }, { rows: m, amplitude: y, frequency: w, phaseShift: v, synchronization: I } = g, x = Math.ceil(t / m), L = p * 1.5 / 2, _ = c + L, O = a - c - L, H = O - _, k = x > 1 ? H / (x - 1) : 0, T = c + y + p / 2, D = r - c - y - p / 2, G = D - T, U = m > 1 ? G / (m - 1) : 0;
1541
1731
  let M = 0;
1542
1732
  for (let A = 0; A < m && M < t; A++) {
1543
- const j = m === 1 ? (T + D) / 2 : T + A * U;
1544
- let X = 0;
1545
- R === "offset" ? X = A * v : R === "alternating" && (X = A * Math.PI);
1733
+ const N = m === 1 ? (T + D) / 2 : T + A * U;
1734
+ let B = 0;
1735
+ I === "offset" ? B = A * v : I === "alternating" && (B = A * Math.PI);
1546
1736
  for (let C = 0; C < x && M < t; C++) {
1547
- const $ = x === 1 ? (_ + O) / 2 : _ + C * N, F = this.calculateWaveY($, a, y, w, X), Y = $, P = j + F, W = b ? this.random(d, f) : 1, B = p * W;
1737
+ const $ = x === 1 ? (_ + O) / 2 : _ + C * k, F = this.calculateWaveY($, a, y, w, B), X = $, P = N + F, j = b ? this.random(d, f) : 1, Y = p * j;
1548
1738
  let V = 0;
1549
- l === "tangent" ? V = this.calculateRotation($, a, y, w, X) : l === "random" && (V = this.random(u, h));
1550
- const K = B * 1.5 / 2, ct = B / 2, it = c + K, ot = a - c - K, lt = c + ct, ht = r - c - ct;
1739
+ l === "tangent" ? V = this.calculateRotation($, a, y, w, B) : l === "random" && (V = this.random(u, h));
1740
+ const K = Y * 1.5 / 2, ct = Y / 2, it = c + K, nt = a - c - K, lt = c + ct, ht = r - c - ct;
1551
1741
  n.push({
1552
1742
  id: M,
1553
- x: Math.max(it, Math.min(Y, ot)),
1743
+ x: Math.max(it, Math.min(X, nt)),
1554
1744
  y: Math.max(lt, Math.min(P, ht)),
1555
1745
  rotation: V,
1556
- scale: W,
1557
- baseSize: B,
1746
+ scale: j,
1747
+ baseSize: Y,
1558
1748
  zIndex: M + 1
1559
1749
  }), M++;
1560
1750
  }
@@ -1612,21 +1802,21 @@ const xt = 100, Q = 100 / Math.sqrt(3), Et = [
1612
1802
  // lower-left
1613
1803
  [0, 50]
1614
1804
  // left
1615
- ], ve = Et[1][0] / xt, we = Et[2][1] / xt;
1616
- function xe(o) {
1805
+ ], Re = Et[1][0] / xt, Te = Et[2][1] / xt;
1806
+ function Ae(o) {
1617
1807
  return {
1618
- colStep: ve * o,
1619
- rowOffset: we * o
1808
+ colStep: Re * o,
1809
+ rowOffset: Te * o
1620
1810
  };
1621
1811
  }
1622
- function Ee(o, t, i, e, n, a) {
1623
- const { colStep: r } = xe(a);
1812
+ function Ce(o, t, i, e, n, a) {
1813
+ const { colStep: r } = Ae(a);
1624
1814
  return {
1625
1815
  px: e + r * o,
1626
1816
  py: n + a * (t + o / 2)
1627
1817
  };
1628
1818
  }
1629
- const Se = [
1819
+ const Le = [
1630
1820
  [1, 0, -1],
1631
1821
  [0, 1, -1],
1632
1822
  [-1, 1, 0],
@@ -1634,16 +1824,16 @@ const Se = [
1634
1824
  [0, -1, 1],
1635
1825
  [1, -1, 0]
1636
1826
  ];
1637
- function Re(o) {
1827
+ function Me(o) {
1638
1828
  if (o === 0) return [[0, 0, 0]];
1639
1829
  const t = [];
1640
1830
  let [i, e, n] = [0, -o, o];
1641
- for (const [a, r, s] of Se)
1831
+ for (const [a, r, s] of Le)
1642
1832
  for (let c = 0; c < o; c++)
1643
1833
  t.push([i, e, n]), i += a, e += r, n += s;
1644
1834
  return t;
1645
1835
  }
1646
- class Ie {
1836
+ class Fe {
1647
1837
  // imageConfig intentionally not stored — honeycomb forces uniform sizing (rotation/variance
1648
1838
  // would break hex tiling). Kept as parameter for interface compatibility.
1649
1839
  constructor(t, i = {}) {
@@ -1651,15 +1841,15 @@ class Ie {
1651
1841
  }
1652
1842
  generate(t, i, e = {}) {
1653
1843
  const n = [], { width: a, height: r } = i, s = a / 2, c = r / 2, l = e.fixedHeight ?? 200, h = {
1654
- ...Ht,
1844
+ ...kt,
1655
1845
  ...this.config.honeycomb
1656
1846
  }.spacing ?? 0, d = l + h;
1657
1847
  let f = 0, b = 0;
1658
1848
  for (; f < t; ) {
1659
- const p = Re(b);
1849
+ const p = Me(b);
1660
1850
  for (const [g, m, y] of p) {
1661
1851
  if (f >= t) break;
1662
- const { px: w, py: v } = Ee(g, m, y, s, c, d);
1852
+ const { px: w, py: v } = Ce(g, m, y, s, c, d);
1663
1853
  n.push({
1664
1854
  id: f,
1665
1855
  x: w,
@@ -1676,7 +1866,7 @@ class Ie {
1676
1866
  return n;
1677
1867
  }
1678
1868
  }
1679
- class Te {
1869
+ class ze {
1680
1870
  constructor(t) {
1681
1871
  this.config = t.layout, this.imageConfig = t.image, this.layouts = /* @__PURE__ */ new Map(), this.placementLayout = this.initLayout();
1682
1872
  }
@@ -1687,19 +1877,19 @@ class Te {
1687
1877
  initLayout() {
1688
1878
  switch (this.config.algorithm) {
1689
1879
  case "radial":
1690
- return new he(this.config, this.imageConfig);
1880
+ return new pe(this.config, this.imageConfig);
1691
1881
  case "grid":
1692
- return new ue(this.config, this.imageConfig);
1882
+ return new ye(this.config, this.imageConfig);
1693
1883
  case "spiral":
1694
- return new me(this.config, this.imageConfig);
1884
+ return new xe(this.config, this.imageConfig);
1695
1885
  case "cluster":
1696
- return new be(this.config, this.imageConfig);
1886
+ return new Se(this.config, this.imageConfig);
1697
1887
  case "wave":
1698
- return new ye(this.config, this.imageConfig);
1699
- case "honeycomb":
1700
1888
  return new Ie(this.config, this.imageConfig);
1889
+ case "honeycomb":
1890
+ return new Fe(this.config, this.imageConfig);
1701
1891
  default:
1702
- return new le(this.config, this.imageConfig);
1892
+ return new me(this.config, this.imageConfig);
1703
1893
  }
1704
1894
  }
1705
1895
  /**
@@ -1821,7 +2011,7 @@ const Ct = {
1821
2011
  hexagon: "polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)",
1822
2012
  octagon: "polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",
1823
2013
  diamond: "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"
1824
- }, Ae = {
2014
+ }, Oe = {
1825
2015
  // Circle - uses radius in pixels (refHeight of 100px = 50px radius)
1826
2016
  circle: {
1827
2017
  refHeight: 100,
@@ -1859,12 +2049,12 @@ const Ct = {
1859
2049
  points: [[50, 0], [100, 50], [50, 100], [0, 50]]
1860
2050
  }
1861
2051
  };
1862
- function Ce(o) {
2052
+ function De(o) {
1863
2053
  if (o)
1864
2054
  return o in Ct ? Ct[o] : o;
1865
2055
  }
1866
- function Le(o, t, i) {
1867
- const e = Ae[o];
2056
+ function $e(o, t, i) {
2057
+ const e = Oe[o];
1868
2058
  if (!e) return "";
1869
2059
  const n = t / e.refHeight;
1870
2060
  if (o === "circle")
@@ -1875,13 +2065,13 @@ function Le(o, t, i) {
1875
2065
  return `${m}px ${y}px`;
1876
2066
  }).join(", ")})`;
1877
2067
  }
1878
- function Me(o) {
2068
+ function Pe(o) {
1879
2069
  return o in mt;
1880
2070
  }
1881
- function Fe(o) {
1882
- return o ? Me(o) ? mt[o] : o : mt.md;
2071
+ function _e(o) {
2072
+ return o ? Pe(o) ? mt[o] : o : mt.md;
1883
2073
  }
1884
- function ze(o) {
2074
+ function Ue(o) {
1885
2075
  if (!o) return "";
1886
2076
  const t = [];
1887
2077
  if (o.grayscale !== void 0 && t.push(`grayscale(${o.grayscale})`), o.blur !== void 0 && t.push(`blur(${o.blur}px)`), o.brightness !== void 0 && t.push(`brightness(${o.brightness})`), o.contrast !== void 0 && t.push(`contrast(${o.contrast})`), o.saturate !== void 0 && t.push(`saturate(${o.saturate})`), o.opacity !== void 0 && t.push(`opacity(${o.opacity})`), o.sepia !== void 0 && t.push(`sepia(${o.sepia})`), o.hueRotate !== void 0 && t.push(`hue-rotate(${o.hueRotate}deg)`), o.invert !== void 0 && t.push(`invert(${o.invert})`), o.dropShadow !== void 0)
@@ -1910,8 +2100,8 @@ function et(o, t, i) {
1910
2100
  const s = o.border || {}, c = { ...s, ...o.borderTop }, l = { ...s, ...o.borderRight }, u = { ...s, ...o.borderBottom }, h = { ...s, ...o.borderLeft };
1911
2101
  e.borderTop = tt(c), e.borderRight = tt(l), e.borderBottom = tt(u), e.borderLeft = tt(h);
1912
2102
  } else o.border && (e.border = tt(o.border));
1913
- o.shadow !== void 0 && (e.boxShadow = Fe(o.shadow));
1914
- const r = ze(o.filter);
2103
+ o.shadow !== void 0 && (e.boxShadow = _e(o.shadow));
2104
+ const r = Ue(o.filter);
1915
2105
  if (e.filter = r || "none", o.opacity !== void 0 && (e.opacity = String(o.opacity)), o.cursor !== void 0 && (e.cursor = o.cursor), o.outline && o.outline.style !== "none" && (o.outline.width ?? 0) > 0) {
1916
2106
  const s = o.outline.width ?? 0, c = o.outline.style ?? "solid", l = o.outline.color ?? "#000000";
1917
2107
  e.outline = `${s}px ${c} ${l}`, o.outline.offset !== void 0 && (e.outlineOffset = `${o.outline.offset}px`);
@@ -1920,33 +2110,33 @@ function et(o, t, i) {
1920
2110
  let s;
1921
2111
  const c = typeof o.clipPath == "object" && o.clipPath !== null && "shape" in o.clipPath, l = c ? o.clipPath : void 0;
1922
2112
  if (l?.mode === "height-relative" && t)
1923
- s = Le(l.shape, t, i);
2113
+ s = $e(l.shape, t, i);
1924
2114
  else {
1925
2115
  const u = c && l ? l.shape : o.clipPath;
1926
- s = Ce(u);
2116
+ s = De(u);
1927
2117
  }
1928
2118
  s && (s === "none" ? e.clipPath = "unset" : (e.clipPath = s, e.overflow = "hidden"));
1929
2119
  }
1930
2120
  return e;
1931
2121
  }
1932
- function Oe(o, t) {
2122
+ function He(o, t) {
1933
2123
  t.borderRadius !== void 0 && (o.style.borderRadius = t.borderRadius), t.borderTopLeftRadius !== void 0 && (o.style.borderTopLeftRadius = t.borderTopLeftRadius), t.borderTopRightRadius !== void 0 && (o.style.borderTopRightRadius = t.borderTopRightRadius), t.borderBottomRightRadius !== void 0 && (o.style.borderBottomRightRadius = t.borderBottomRightRadius), t.borderBottomLeftRadius !== void 0 && (o.style.borderBottomLeftRadius = t.borderBottomLeftRadius), t.border !== void 0 && (o.style.border = t.border), t.borderTop !== void 0 && (o.style.borderTop = t.borderTop), t.borderRight !== void 0 && (o.style.borderRight = t.borderRight), t.borderBottom !== void 0 && (o.style.borderBottom = t.borderBottom), t.borderLeft !== void 0 && (o.style.borderLeft = t.borderLeft), t.boxShadow !== void 0 && (o.style.boxShadow = t.boxShadow), t.filter !== void 0 && (o.style.filter = t.filter), t.opacity !== void 0 && (o.style.opacity = t.opacity), t.cursor !== void 0 && (o.style.cursor = t.cursor), t.outline !== void 0 && (o.style.outline = t.outline), t.outlineOffset !== void 0 && (o.style.outlineOffset = t.outlineOffset), t.objectFit !== void 0 && (o.style.objectFit = t.objectFit), t.aspectRatio !== void 0 && (o.style.aspectRatio = t.aspectRatio), t.clipPath !== void 0 && (o.style.clipPath = t.clipPath), t.overflow !== void 0 && (o.style.overflow = t.overflow);
1934
2124
  }
1935
2125
  function ft(o, t, i, e) {
1936
2126
  const n = et(t, i, e);
1937
- Oe(o, n);
2127
+ He(o, n);
1938
2128
  }
1939
- function Dt(o) {
2129
+ function $t(o) {
1940
2130
  return o ? Array.isArray(o) ? o.join(" ") : o : "";
1941
2131
  }
1942
2132
  function st(o, t) {
1943
- const i = Dt(t);
2133
+ const i = $t(t);
1944
2134
  i && i.split(" ").forEach((e) => {
1945
2135
  e.trim() && o.classList.add(e.trim());
1946
2136
  });
1947
2137
  }
1948
2138
  function pt(o, t) {
1949
- const i = Dt(t);
2139
+ const i = $t(t);
1950
2140
  i && i.split(" ").forEach((e) => {
1951
2141
  e.trim() && o.classList.remove(e.trim());
1952
2142
  });
@@ -1955,9 +2145,15 @@ const Lt = {
1955
2145
  UNFOCUSING: 999,
1956
2146
  FOCUSING: 1e3
1957
2147
  };
1958
- class De {
2148
+ class ke {
1959
2149
  constructor(t, i, e) {
1960
- this.state = S.IDLE, this.currentFocus = null, this.focusData = null, this.outgoing = null, this.incoming = null, this.focusGeneration = 0, this.config = t, this.animationEngine = i, this.styling = e, this.focusedClassName = e?.focused?.className;
2150
+ this.state = S.IDLE, this.currentFocus = null, this.focusData = null, this.outgoing = null, this.incoming = null, this.focusGeneration = 0, this.onUnfocusComplete = null, this.config = t, this.animationEngine = i, this.styling = e, this.focusedClassName = e?.focused?.className;
2151
+ }
2152
+ /**
2153
+ * Set callback to be fired when an unfocus animation fully completes.
2154
+ */
2155
+ setOnUnfocusCompleteCallback(t) {
2156
+ this.onUnfocusComplete = t;
1961
2157
  }
1962
2158
  /**
1963
2159
  * Get current state machine state
@@ -2236,7 +2432,11 @@ class De {
2236
2432
  this.waitForAnimation(this.incoming.animationHandle)
2237
2433
  ]), this.focusGeneration !== n)
2238
2434
  return;
2239
- this.outgoing && (this.removeFocusedStyling(this.outgoing.element, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null), this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2435
+ if (this.outgoing) {
2436
+ const a = this.outgoing.element;
2437
+ this.removeFocusedStyling(a, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null, this.onUnfocusComplete?.(a);
2438
+ }
2439
+ this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2240
2440
  break;
2241
2441
  case S.FOCUSING:
2242
2442
  if (this.incoming && (this.animationEngine.cancelAnimation(this.incoming.animationHandle, !1), this.resetElementInstantly(
@@ -2253,7 +2453,11 @@ class De {
2253
2453
  this.outgoing ? this.waitForAnimation(this.outgoing.animationHandle) : Promise.resolve(),
2254
2454
  this.waitForAnimation(this.incoming.animationHandle)
2255
2455
  ]), this.focusGeneration !== n) return;
2256
- this.outgoing && (this.removeFocusedStyling(this.outgoing.element, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null), this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2456
+ if (this.outgoing) {
2457
+ const a = this.outgoing.element;
2458
+ this.removeFocusedStyling(a, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null, this.onUnfocusComplete?.(a);
2459
+ }
2460
+ this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2257
2461
  break;
2258
2462
  case S.CROSS_ANIMATING:
2259
2463
  if (this.incoming?.element === t)
@@ -2274,7 +2478,11 @@ class De {
2274
2478
  this.outgoing ? this.waitForAnimation(this.outgoing.animationHandle) : Promise.resolve(),
2275
2479
  this.waitForAnimation(this.incoming.animationHandle)
2276
2480
  ]), this.focusGeneration !== n) return;
2277
- this.outgoing && (this.removeFocusedStyling(this.outgoing.element, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null), this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2481
+ if (this.outgoing) {
2482
+ const s = this.outgoing.element;
2483
+ this.removeFocusedStyling(s, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null, this.onUnfocusComplete?.(s);
2484
+ }
2485
+ this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2278
2486
  return;
2279
2487
  }
2280
2488
  if (this.outgoing && (this.animationEngine.cancelAnimation(this.outgoing.animationHandle, !1), this.resetElementInstantly(
@@ -2296,7 +2504,11 @@ class De {
2296
2504
  this.outgoing ? this.waitForAnimation(this.outgoing.animationHandle) : Promise.resolve(),
2297
2505
  this.waitForAnimation(this.incoming.animationHandle)
2298
2506
  ]), this.focusGeneration !== n) return;
2299
- this.outgoing && (this.removeFocusedStyling(this.outgoing.element, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null), this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2507
+ if (this.outgoing) {
2508
+ const a = this.outgoing.element;
2509
+ this.removeFocusedStyling(a, this.outgoing.originalState.zIndex?.toString() || ""), this.outgoing = null, this.onUnfocusComplete?.(a);
2510
+ }
2511
+ this.currentFocus = t, this.incoming = null, this.state = S.FOCUSED;
2300
2512
  break;
2301
2513
  }
2302
2514
  }
@@ -2316,7 +2528,8 @@ class De {
2316
2528
  a,
2317
2529
  r
2318
2530
  ), this.incoming = null, this.state = S.UNFOCUSING, await this.waitForAnimation(this.outgoing.animationHandle), this.focusGeneration !== t) return;
2319
- this.removeFocusedStyling(this.outgoing.element, this.focusData?.originalZIndex || ""), this.outgoing = null, this.focusData = null, this.state = S.IDLE;
2531
+ const s = this.outgoing.element;
2532
+ this.removeFocusedStyling(s, this.focusData?.originalZIndex || ""), this.outgoing = null, this.focusData = null, this.state = S.IDLE, this.onUnfocusComplete?.(s);
2320
2533
  }
2321
2534
  return;
2322
2535
  }
@@ -2333,12 +2546,15 @@ class De {
2333
2546
  this.outgoing ? this.waitForAnimation(this.outgoing.animationHandle) : Promise.resolve(),
2334
2547
  this.waitForAnimation(s.animationHandle)
2335
2548
  ]), this.focusGeneration !== t) return;
2336
- this.outgoing && this.removeFocusedStyling(this.outgoing.element, this.outgoing.originalState.zIndex?.toString() || ""), this.removeFocusedStyling(s.element, this.incoming.originalState.zIndex?.toString() || ""), this.outgoing = null, this.incoming = null, this.currentFocus = null, this.focusData = null, this.state = S.IDLE;
2549
+ let c = null;
2550
+ this.outgoing && (c = this.outgoing.element, this.removeFocusedStyling(c, this.outgoing.originalState.zIndex?.toString() || ""));
2551
+ const l = s.element;
2552
+ this.removeFocusedStyling(l, this.incoming.originalState.zIndex?.toString() || ""), this.outgoing = null, this.incoming = null, this.currentFocus = null, this.focusData = null, this.state = S.IDLE, c && this.onUnfocusComplete?.(c), this.onUnfocusComplete?.(l);
2337
2553
  return;
2338
2554
  }
2339
2555
  this.state = S.UNFOCUSING;
2340
2556
  const i = this.currentFocus, e = this.focusData.originalState, n = this.focusData.originalZIndex;
2341
- this.outgoing = this.startUnfocusAnimation(i, e), await this.waitForAnimation(this.outgoing.animationHandle), this.focusGeneration === t && (this.removeFocusedStyling(i, n), this.outgoing = null, this.currentFocus = null, this.focusData = null, this.state = S.IDLE);
2557
+ this.outgoing = this.startUnfocusAnimation(i, e), await this.waitForAnimation(this.outgoing.animationHandle), this.focusGeneration === t && (this.removeFocusedStyling(i, n), this.outgoing = null, this.currentFocus = null, this.focusData = null, this.state = S.IDLE, this.onUnfocusComplete?.(i));
2342
2558
  }
2343
2559
  /**
2344
2560
  * Swap focus from current image to a new one (alias for focusImage with cross-animation)
@@ -2420,7 +2636,7 @@ class De {
2420
2636
  ), this.state = S.IDLE, this.currentFocus = null, this.focusData = null, this.outgoing = null, this.incoming = null;
2421
2637
  }
2422
2638
  }
2423
- const $e = 50, Pe = 0.5, _e = 20, Ue = 0.3, He = 150, Ne = 30, at = class at {
2639
+ const Ne = 50, je = 0.5, We = 20, Ge = 0.3, qe = 150, Be = 30, at = class at {
2424
2640
  constructor(t, i) {
2425
2641
  this.enabled = !1, this.touchState = null, this.recentTouchTimestamp = 0, this.container = t, this.callbacks = i, this.boundTouchStart = this.handleTouchStart.bind(this), this.boundTouchMove = this.handleTouchMove.bind(this), this.boundTouchEnd = this.handleTouchEnd.bind(this), this.boundTouchCancel = this.handleTouchCancel.bind(this);
2426
2642
  }
@@ -2467,11 +2683,11 @@ const $e = 50, Pe = 0.5, _e = 20, Ue = 0.3, He = 150, Ne = 30, at = class at {
2467
2683
  const i = t.touches[0], e = i.clientX - this.touchState.startX, n = i.clientY - this.touchState.startY;
2468
2684
  if (this.touchState.isHorizontalSwipe === null && Math.sqrt(e * e + n * n) > 10) {
2469
2685
  const s = Math.atan2(Math.abs(n), Math.abs(e)) * (180 / Math.PI);
2470
- this.touchState.isHorizontalSwipe = s <= Ne;
2686
+ this.touchState.isHorizontalSwipe = s <= Be;
2471
2687
  }
2472
2688
  if (this.touchState.isHorizontalSwipe !== !1 && this.touchState.isHorizontalSwipe === !0) {
2473
2689
  t.preventDefault(), this.touchState.isDragging = !0, this.touchState.currentX = i.clientX;
2474
- const a = e * Ue;
2690
+ const a = e * Ge;
2475
2691
  this.callbacks.onDragOffset(a);
2476
2692
  }
2477
2693
  }
@@ -2480,7 +2696,7 @@ const $e = 50, Pe = 0.5, _e = 20, Ue = 0.3, He = 150, Ne = 30, at = class at {
2480
2696
  this.recentTouchTimestamp = Date.now();
2481
2697
  const i = this.touchState.currentX - this.touchState.startX, e = performance.now() - this.touchState.startTime, n = Math.abs(i) / e, a = Math.abs(i);
2482
2698
  let r = !1;
2483
- this.touchState.isHorizontalSwipe === !0 && this.touchState.isDragging && (a >= $e || n >= Pe && a >= _e) && (r = !0, i < 0 ? this.callbacks.onNext() : this.callbacks.onPrev()), this.touchState.isDragging && this.callbacks.onDragEnd(r), this.touchState = null;
2699
+ this.touchState.isHorizontalSwipe === !0 && this.touchState.isDragging && (a >= Ne || n >= je && a >= We) && (r = !0, i < 0 ? this.callbacks.onNext() : this.callbacks.onPrev()), this.touchState.isDragging && this.callbacks.onDragEnd(r), this.touchState = null;
2484
2700
  }
2485
2701
  handleTouchCancel(t) {
2486
2702
  this.touchState?.isDragging && this.callbacks.onDragEnd(!1), this.touchState = null;
@@ -2488,7 +2704,7 @@ const $e = 50, Pe = 0.5, _e = 20, Ue = 0.3, He = 150, Ne = 30, at = class at {
2488
2704
  };
2489
2705
  at.TOUCH_CLICK_DELAY = 300;
2490
2706
  let bt = at;
2491
- class je {
2707
+ class Xe {
2492
2708
  constructor(t) {
2493
2709
  if (this._prepared = !1, this._discoveredUrls = [], this.apiKey = t.apiKey ?? "", this.apiEndpoint = t.apiEndpoint ?? "https://www.googleapis.com/drive/v3/files", this.debugLogging = t.debugLogging ?? !1, this.sources = t.sources ?? [], !this.sources || this.sources.length === 0)
2494
2710
  throw new Error("GoogleDriveLoader requires at least one source to be configured");
@@ -2709,7 +2925,7 @@ class je {
2709
2925
  this.debugLogging && typeof console < "u" && console.log(...t);
2710
2926
  }
2711
2927
  }
2712
- class We {
2928
+ class Ye {
2713
2929
  constructor(t) {
2714
2930
  if (this._prepared = !1, this._discoveredUrls = [], this.validateUrls = t.validateUrls !== !1, this.validationTimeout = t.validationTimeout ?? 5e3, this.validationMethod = t.validationMethod ?? "head", this.debugLogging = t.debugLogging ?? !1, this.sources = t.sources ?? [], !this.sources || this.sources.length === 0)
2715
2931
  throw new Error("StaticImageLoader requires at least one source to be configured");
@@ -2889,7 +3105,7 @@ class We {
2889
3105
  this.debugLogging && typeof console < "u" && console.log(...t);
2890
3106
  }
2891
3107
  }
2892
- class ke {
3108
+ class Ve {
2893
3109
  constructor(t) {
2894
3110
  if (this._prepared = !1, this._discoveredUrls = [], this.loaders = t.loaders, this.debugLogging = t.debugLogging ?? !1, !this.loaders || this.loaders.length === 0)
2895
3111
  throw new Error("CompositeLoader requires at least one loader to be configured");
@@ -2946,7 +3162,7 @@ class ke {
2946
3162
  this.debugLogging && typeof console < "u" && console.log("[CompositeLoader]", ...t);
2947
3163
  }
2948
3164
  }
2949
- class Ge {
3165
+ class Je {
2950
3166
  /**
2951
3167
  * Create a new ImageFilter
2952
3168
  * @param extensions - Array of allowed file extensions (without dots)
@@ -2983,7 +3199,7 @@ class Ge {
2983
3199
  // isAllowedDate(date: Date): boolean
2984
3200
  // isAllowedDimensions(width: number, height: number): boolean
2985
3201
  }
2986
- const qe = `
3202
+ const Ke = `
2987
3203
  .fbn-ic-gallery {
2988
3204
  position: relative;
2989
3205
  width: 100%;
@@ -3033,31 +3249,38 @@ const qe = `
3033
3249
  display: none !important;
3034
3250
  }
3035
3251
  `;
3036
- function Xe() {
3252
+ function Ze() {
3037
3253
  if (typeof document > "u") return;
3038
3254
  const o = "fbn-ic-functional-styles";
3039
3255
  if (document.getElementById(o)) return;
3040
3256
  const t = document.createElement("style");
3041
- t.id = o, t.textContent = qe, document.head.appendChild(t);
3257
+ t.id = o, t.textContent = Ke, document.head.appendChild(t);
3042
3258
  }
3043
- class Ye {
3259
+ class Qe {
3044
3260
  constructor(t = {}) {
3045
- this.fullConfig = Yt(t), t.container instanceof HTMLElement ? (this.containerRef = t.container, this.containerId = null) : (this.containerRef = null, this.containerId = t.container || "imageCloud"), this.imagesLoaded = !1, this.imageElements = [], this.imageLayouts = [], this.currentImageHeight = 225, this.currentFocusIndex = null, this.hoveredImage = null, this.resizeTimeout = null, this.displayQueue = [], this.queueInterval = null, this.loadGeneration = 0, this.loadingElAutoCreated = !1, this.errorElAutoCreated = !1, this.counterEl = null, this.counterElAutoCreated = !1, this.animationEngine = new Kt(this.fullConfig.animation), this.layoutEngine = new Te({
3261
+ this.fullConfig = Zt(t), t.container instanceof HTMLElement ? (this.containerRef = t.container, this.containerId = null) : (this.containerRef = null, this.containerId = t.container || "imageCloud"), this.imagesLoaded = !1, this.imageElements = [], this.imageLayouts = [], this.currentImageHeight = 225, this.currentFocusIndex = null, this.hoveredImage = null, this.resizeTimeout = null, this.displayQueue = [], this.queueInterval = null, this.loadGeneration = 0, this.loadingElAutoCreated = !1, this.errorElAutoCreated = !1, this.counterEl = null, this.counterElAutoCreated = !1, this.animationEngine = new ie(this.fullConfig.animation), this.layoutEngine = new ze({
3046
3262
  layout: this.fullConfig.layout,
3047
3263
  image: this.fullConfig.image
3048
- }), this.zoomEngine = new De(this.fullConfig.interaction.focus, this.animationEngine, this.fullConfig.styling), this.defaultStyles = et(this.fullConfig.styling?.default), this.defaultClassName = this.fullConfig.styling?.default?.className, this.hoverClassName = this.fullConfig.styling?.hover?.className;
3264
+ }), this.zoomEngine = new ke(this.fullConfig.interaction.focus, this.animationEngine, this.fullConfig.styling), this.defaultStyles = et(this.fullConfig.styling?.default), this.defaultClassName = this.fullConfig.styling?.default?.className, this.hoverClassName = this.fullConfig.styling?.hover?.className;
3049
3265
  const i = this.fullConfig.animation.entry || E.animation.entry;
3050
- this.entryAnimationEngine = new ce(
3266
+ this.entryAnimationEngine = new ge(
3051
3267
  i,
3052
3268
  this.fullConfig.layout.algorithm
3053
- ), this.swipeEngine = null, this.imageFilter = this.createImageFilter(), this.imageLoader = this.createLoader(), this.containerEl = null, this.loadingEl = null, this.errorEl = null;
3269
+ );
3270
+ const e = this.fullConfig.animation.idle;
3271
+ e && e.type !== "none" ? this.idleAnimationEngine = new fe(
3272
+ e,
3273
+ i.timing?.duration ?? 600
3274
+ ) : this.idleAnimationEngine = null, this.zoomEngine.setOnUnfocusCompleteCallback((n) => {
3275
+ this.idleAnimationEngine?.resumeForImage(n);
3276
+ }), this.swipeEngine = null, this.imageFilter = this.createImageFilter(), this.imageLoader = this.createLoader(), this.containerEl = null, this.loadingEl = null, this.errorEl = null;
3054
3277
  }
3055
3278
  /**
3056
3279
  * Create image filter based on shared loader config
3057
3280
  */
3058
3281
  createImageFilter() {
3059
3282
  const t = this.fullConfig.config.loaders?.allowedExtensions;
3060
- return new Ge(t);
3283
+ return new Je(t);
3061
3284
  }
3062
3285
  /**
3063
3286
  * Create appropriate image loader based on config
@@ -3068,7 +3291,7 @@ class Ye {
3068
3291
  if (!t || t.length === 0)
3069
3292
  throw new Error("No loaders configured. Provide `images`, `loaders`, or both.");
3070
3293
  const e = t.map((n) => this.createLoaderFromEntry(n, i));
3071
- return e.length === 1 ? e[0] : new ke({
3294
+ return e.length === 1 ? e[0] : new Ve({
3072
3295
  loaders: e,
3073
3296
  debugLogging: this.fullConfig.config.debug?.loaders
3074
3297
  });
@@ -3086,14 +3309,14 @@ class Ye {
3086
3309
  allowedExtensions: e.allowedExtensions ?? i.allowedExtensions,
3087
3310
  debugLogging: e.debugLogging ?? this.fullConfig.config.debug?.loaders
3088
3311
  };
3089
- return new We(n);
3312
+ return new Ye(n);
3090
3313
  } else if ("googleDrive" in t) {
3091
3314
  const e = t.googleDrive, n = {
3092
3315
  ...e,
3093
3316
  allowedExtensions: e.allowedExtensions ?? i.allowedExtensions,
3094
3317
  debugLogging: e.debugLogging ?? this.fullConfig.config.debug?.loaders
3095
3318
  };
3096
- return new je(n);
3319
+ return new Xe(n);
3097
3320
  } else
3098
3321
  throw new Error(`Unknown loader entry: ${JSON.stringify(t)}`);
3099
3322
  }
@@ -3102,7 +3325,7 @@ class Ye {
3102
3325
  */
3103
3326
  async init() {
3104
3327
  try {
3105
- if (Xe(), this.containerRef)
3328
+ if (Ze(), this.containerRef)
3106
3329
  this.containerEl = this.containerRef;
3107
3330
  else if (this.containerEl = document.getElementById(this.containerId), !this.containerEl)
3108
3331
  throw new Error(`Container #${this.containerId} not found`);
@@ -3111,7 +3334,7 @@ class Ye {
3111
3334
  onPrev: () => this.navigateToPreviousImage(),
3112
3335
  onDragOffset: (t) => this.zoomEngine.setDragOffset(t),
3113
3336
  onDragEnd: (t) => {
3114
- t ? this.zoomEngine.clearDragOffset(!1) : this.zoomEngine.clearDragOffset(!0, He);
3337
+ t ? this.zoomEngine.clearDragOffset(!1) : this.zoomEngine.clearDragOffset(!0, qe);
3115
3338
  }
3116
3339
  }), this.setupUI(), this.setupEventListeners(), this.logDebug("ImageCloud initialized"), await this.loadImages();
3117
3340
  } catch (t) {
@@ -3242,7 +3465,7 @@ class Ye {
3242
3465
  x: parseFloat(l.dataset.endX),
3243
3466
  y: parseFloat(l.dataset.endY)
3244
3467
  }, b = parseFloat(l.dataset.imageWidth), p = parseFloat(l.dataset.imageHeight), g = parseFloat(l.dataset.rotation), m = parseFloat(l.dataset.scale), y = l.dataset.startRotation ? parseFloat(l.dataset.startRotation) : g, w = l.dataset.startScale ? parseFloat(l.dataset.startScale) : m, v = this.entryAnimationEngine.getTiming();
3245
- se({
3468
+ he({
3246
3469
  element: l,
3247
3470
  startPosition: d,
3248
3471
  endPosition: f,
@@ -3275,6 +3498,10 @@ class Ye {
3275
3498
  pathType: this.entryAnimationEngine.getPathType()
3276
3499
  });
3277
3500
  }
3501
+ if (this.idleAnimationEngine) {
3502
+ const d = this.entryAnimationEngine.getTiming().duration;
3503
+ this.idleAnimationEngine.register(l, h, this.imageElements.length, d);
3504
+ }
3278
3505
  }), r++);
3279
3506
  }, c = () => {
3280
3507
  if (this.logDebug("Starting queue processing, enabled:", this.fullConfig.animation.queue.enabled), !this.fullConfig.animation.queue.enabled) {
@@ -3342,7 +3569,7 @@ class Ye {
3342
3569
  d.scale,
3343
3570
  b,
3344
3571
  i
3345
- ), R = this.entryAnimationEngine.buildStartTransform(
3572
+ ), I = this.entryAnimationEngine.buildStartTransform(
3346
3573
  m,
3347
3574
  p,
3348
3575
  d.rotation,
@@ -3360,7 +3587,7 @@ class Ye {
3360
3587
  finalTransform: v,
3361
3588
  renderedWidth: b,
3362
3589
  renderedHeight: i
3363
- }), h.style.transform = R, h.dataset.finalTransform = v, (this.entryAnimationEngine.requiresJSAnimation() || this.entryAnimationEngine.requiresJSRotation() || this.entryAnimationEngine.requiresJSScale() || y !== d.rotation || w !== d.scale) && (h.dataset.startX = String(m.x), h.dataset.startY = String(m.y), h.dataset.endX = String(p.x), h.dataset.endY = String(p.y), h.dataset.imageWidth = String(b), h.dataset.imageHeight = String(i), h.dataset.rotation = String(d.rotation), h.dataset.scale = String(d.scale), h.dataset.startRotation = String(y), h.dataset.startScale = String(w)), this.displayQueue.push(h);
3590
+ }), h.style.transform = I, h.dataset.finalTransform = v, (this.entryAnimationEngine.requiresJSAnimation() || this.entryAnimationEngine.requiresJSRotation() || this.entryAnimationEngine.requiresJSScale() || y !== d.rotation || w !== d.scale) && (h.dataset.startX = String(m.x), h.dataset.startY = String(m.y), h.dataset.endX = String(p.x), h.dataset.endY = String(p.y), h.dataset.imageWidth = String(b), h.dataset.imageHeight = String(i), h.dataset.rotation = String(d.rotation), h.dataset.scale = String(d.scale), h.dataset.startRotation = String(y), h.dataset.startScale = String(w)), this.displayQueue.push(h);
3364
3591
  }, h.onerror = () => r++, h.src = l;
3365
3592
  });
3366
3593
  }
@@ -3373,6 +3600,7 @@ class Ye {
3373
3600
  if (e)
3374
3601
  await this.zoomEngine.unfocusImage(), this.currentFocusIndex = null, this.swipeEngine?.disable(), this.hideCounter();
3375
3602
  else {
3603
+ this.idleAnimationEngine?.pauseForImage(t);
3376
3604
  const a = t.dataset.imageId;
3377
3605
  this.currentFocusIndex = a !== void 0 ? parseInt(a, 10) : null, this.swipeEngine?.enable(), await this.zoomEngine.focusImage(t, n, i), this.currentFocusIndex !== null && this.updateCounter(this.currentFocusIndex);
3378
3606
  }
@@ -3381,7 +3609,7 @@ class Ye {
3381
3609
  * Clear the image cloud and reset state
3382
3610
  */
3383
3611
  clearImageCloud() {
3384
- this.queueInterval !== null && (clearInterval(this.queueInterval), this.queueInterval = null), this.loadGeneration++, this.displayQueue = [], this.containerEl && this.containerEl.querySelectorAll(".fbn-ic-image, .fbn-ic-debug-center").forEach((t) => t.remove()), this.imageElements = [], this.imageLayouts = [], this.currentFocusIndex = null, this.hoveredImage = null, this.layoutEngine.reset(), this.zoomEngine.reset(), this.imagesLoaded = !1;
3612
+ this.queueInterval !== null && (clearInterval(this.queueInterval), this.queueInterval = null), this.loadGeneration++, this.displayQueue = [], this.containerEl && this.containerEl.querySelectorAll(".fbn-ic-image, .fbn-ic-debug-center").forEach((t) => t.remove()), this.imageElements = [], this.imageLayouts = [], this.currentFocusIndex = null, this.hoveredImage = null, this.layoutEngine.reset(), this.zoomEngine.reset(), this.idleAnimationEngine?.stopAll(), this.imagesLoaded = !1;
3385
3613
  }
3386
3614
  showLoading(t) {
3387
3615
  !this.fullConfig.rendering.ui.showLoadingSpinner || !this.loadingEl || (t ? this.loadingEl.classList.remove("fbn-ic-hidden") : this.loadingEl.classList.add("fbn-ic-hidden"));
@@ -3402,34 +3630,34 @@ class Ye {
3402
3630
  * Destroy the gallery and clean up resources
3403
3631
  */
3404
3632
  destroy() {
3405
- this.clearImageCloud(), this.loadingElAutoCreated && this.loadingEl && (this.loadingEl.remove(), this.loadingEl = null), this.errorElAutoCreated && this.errorEl && (this.errorEl.remove(), this.errorEl = null), this.counterElAutoCreated && this.counterEl && (this.counterEl.remove(), this.counterEl = null), this.resizeTimeout !== null && clearTimeout(this.resizeTimeout), this.swipeEngine?.destroy();
3633
+ this.clearImageCloud(), this.loadingElAutoCreated && this.loadingEl && (this.loadingEl.remove(), this.loadingEl = null), this.errorElAutoCreated && this.errorEl && (this.errorEl.remove(), this.errorEl = null), this.counterElAutoCreated && this.counterEl && (this.counterEl.remove(), this.counterEl = null), this.resizeTimeout !== null && clearTimeout(this.resizeTimeout), this.swipeEngine?.destroy(), this.idleAnimationEngine?.stopAll(), this.idleAnimationEngine = null;
3406
3634
  }
3407
3635
  }
3408
3636
  export {
3409
- Kt as AnimationEngine,
3410
- Rt as BOUNCE_PRESETS,
3411
- be as ClusterPlacementLayout,
3412
- ke as CompositeLoader,
3637
+ ie as AnimationEngine,
3638
+ It as BOUNCE_PRESETS,
3639
+ Se as ClusterPlacementLayout,
3640
+ Ve as CompositeLoader,
3413
3641
  E as DEFAULT_CONFIG,
3414
3642
  zt as DEFAULT_SHARED_LOADER_CONFIG,
3415
- It as ELASTIC_PRESETS,
3416
- ce as EntryAnimationEngine,
3417
- qe as FUNCTIONAL_CSS,
3418
- je as GoogleDriveLoader,
3419
- ue as GridPlacementLayout,
3420
- Ye as ImageCloud,
3421
- Ge as ImageFilter,
3422
- Ye as ImageGallery,
3423
- Te as LayoutEngine,
3424
- he as RadialPlacementLayout,
3425
- le as RandomPlacementLayout,
3426
- me as SpiralPlacementLayout,
3427
- We as StaticImageLoader,
3643
+ Rt as ELASTIC_PRESETS,
3644
+ ge as EntryAnimationEngine,
3645
+ Ke as FUNCTIONAL_CSS,
3646
+ Xe as GoogleDriveLoader,
3647
+ ye as GridPlacementLayout,
3648
+ Qe as ImageCloud,
3649
+ Je as ImageFilter,
3650
+ Qe as ImageGallery,
3651
+ ze as LayoutEngine,
3652
+ pe as RadialPlacementLayout,
3653
+ me as RandomPlacementLayout,
3654
+ xe as SpiralPlacementLayout,
3655
+ Ye as StaticImageLoader,
3428
3656
  Tt as WAVE_PATH_PRESETS,
3429
- ye as WavePlacementLayout,
3430
- De as ZoomEngine,
3431
- se as animatePath,
3432
- Xe as injectFunctionalStyles,
3433
- ae as requiresJSAnimation
3657
+ Ie as WavePlacementLayout,
3658
+ ke as ZoomEngine,
3659
+ he as animatePath,
3660
+ Ze as injectFunctionalStyles,
3661
+ de as requiresJSAnimation
3434
3662
  };
3435
3663
  //# sourceMappingURL=image-cloud.js.map