@norbert_bodziony/bloub 0.2.1 → 0.4.1

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.
@@ -10,7 +10,7 @@ function C(e, t, n = 0) {
10
10
  let r = e / t * y;
11
11
  return .55 * Math.sin(r + n) + .3 * Math.sin(2 * r + n * 1.7 + 1.1) + .15 * Math.sin(3 * r + n * 2.3 + 2.4);
12
12
  }
13
- function w(e) {
13
+ function ee(e) {
14
14
  let t = e >>> 0;
15
15
  return () => {
16
16
  t = t + 1831565813 >>> 0;
@@ -18,10 +18,10 @@ function w(e) {
18
18
  return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
19
19
  };
20
20
  }
21
- var T = (e) => Math.round(e * 100) / 100;
21
+ var w = (e) => Math.round(e * 100) / 100;
22
22
  //#endregion
23
23
  //#region src/bot/decor.ts
24
- function E(e, t = .55, n = .62) {
24
+ function T(e, t = .55, n = .62) {
25
25
  let r = (e % 360 + 360) % 360, i = (1 - Math.abs(2 * n - 1)) * t, a = i * (1 - Math.abs(r / 60 % 2 - 1)), o = n - i / 2, [s, c, l] = r < 60 ? [
26
26
  i,
27
27
  a,
@@ -49,10 +49,10 @@ function E(e, t = .55, n = .62) {
49
49
  ], u = (e) => Math.round((e + o) * 255).toString(16).padStart(2, "0");
50
50
  return `#${u(s)}${u(c)}${u(l)}`;
51
51
  }
52
- function ee(e, t, n, r, i = 1) {
52
+ function te(e, t, n, r, i = 1) {
53
53
  let a = e.phase + t * e.speed * y, o = Math.cos(e.tilt), s = Math.sin(e.tilt), c = Math.sqrt(Math.max(0, 1 - e.k * e.k)), l = e.sweep * y, u = "", d = "", f = null;
54
54
  for (let t = 0; t <= 64; t++) {
55
- let r = a + t / 64 * l, i = Math.cos(r), p = Math.sin(r), m = e.a * (i * o + p * -s * e.k) + e.cx, h = e.a * (i * s + p * o * e.k) + e.cy, g = e.a * p * c < 0, _ = T(m * n), v = T(h * n), y = g === f ? "L" : "M";
55
+ let r = a + t / 64 * l, i = Math.cos(r), p = Math.sin(r), m = e.a * (i * o + p * -s * e.k) + e.cx, h = e.a * (i * s + p * o * e.k) + e.cy, g = e.a * p * c < 0, _ = w(m * n), v = w(h * n), y = g === f ? "L" : "M";
56
56
  g ? d += `${y}${_} ${v}` : u += `${y}${_} ${v}`, f = g;
57
57
  }
58
58
  let p = Math.cos(e.tilt) * e.a * n, m = Math.sin(e.tilt) * e.a * n;
@@ -63,31 +63,31 @@ function ee(e, t, n, r, i = 1) {
63
63
  width: e.width * n,
64
64
  opacity: i,
65
65
  grad: {
66
- x1: T(e.cx * n - p),
67
- y1: T(e.cy * n - m),
68
- x2: T(e.cx * n + p),
69
- y2: T(e.cy * n + m),
66
+ x1: w(e.cx * n - p),
67
+ y1: w(e.cy * n - m),
68
+ x2: w(e.cx * n + p),
69
+ y2: w(e.cy * n + m),
70
70
  stops: [
71
- E(e.hue),
72
- E(e.hue + e.hueSpan * .5),
73
- E(e.hue + e.hueSpan)
71
+ T(e.hue),
72
+ T(e.hue + e.hueSpan * .5),
73
+ T(e.hue + e.hueSpan)
74
74
  ]
75
75
  }
76
76
  };
77
77
  }
78
- var D = w(659918), O = Array.from({ length: 6 }, (e, t) => ({
79
- a: 1.3 + D() * .1,
80
- k: .05 + D() * .4,
81
- tilt: t / 6 * Math.PI + D() * .5,
82
- speed: 3 + D() * .7,
83
- phase: D() * y,
84
- sweep: .6 + D() * .25,
85
- hue: t * 360 / 6 + D() * 30,
86
- hueSpan: 60 + D() * 60,
87
- width: .05 + D() * .012,
78
+ var E = ee(659918), ne = Array.from({ length: 6 }, (e, t) => ({
79
+ a: 1.3 + E() * .1,
80
+ k: .05 + E() * .4,
81
+ tilt: t / 6 * Math.PI + E() * .5,
82
+ speed: 3 + E() * .7,
83
+ phase: E() * y,
84
+ sweep: .6 + E() * .25,
85
+ hue: t * 360 / 6 + E() * 30,
86
+ hueSpan: 60 + E() * 60,
87
+ width: .05 + E() * .012,
88
88
  cx: 0,
89
89
  cy: .1
90
- })), te = Array.from({ length: 4 }, (e, t) => ({
90
+ })), D = Array.from({ length: 4 }, (e, t) => ({
91
91
  a: .78 + t * .2,
92
92
  k: .05 + t * .02,
93
93
  tilt: -.62 + t * .05,
@@ -99,11 +99,11 @@ var D = w(659918), O = Array.from({ length: 6 }, (e, t) => ({
99
99
  width: .05,
100
100
  cx: 0,
101
101
  cy: -.12
102
- })), k = [
102
+ })), O = [
103
103
  -.557,
104
104
  -.013,
105
105
  .532
106
- ], ne = .165, re = 1.25, ie = w(48879), ae = Array.from({ length: 5 }, (e, t) => ({
106
+ ], k = .165, re = 1.25, ie = ee(48879), ae = Array.from({ length: 5 }, (e, t) => ({
107
107
  birth: t * .2,
108
108
  angle: ie() * y,
109
109
  rho: .58 + ie() * .18
@@ -124,7 +124,7 @@ function oe(e, t) {
124
124
  }
125
125
  return n;
126
126
  }
127
- var se = w(49383), ce = Array.from({ length: 4 }, (e, t) => {
127
+ var se = ee(49383), ce = Array.from({ length: 4 }, (e, t) => {
128
128
  let n = t - 1.5;
129
129
  return {
130
130
  a: .85 * (1 + n * .03),
@@ -139,12 +139,12 @@ var se = w(49383), ce = Array.from({ length: 4 }, (e, t) => {
139
139
  cx: 0,
140
140
  cy: 0
141
141
  };
142
- }), A = .129, le = "#2496e8", j = 1.003, ue = .15, de = 1.14, fe = .054, M = 15.46, N = .186, P = .412, pe = {
142
+ }), le = .129, ue = "#2496e8", A = 1.003, j = .15, de = 1.14, fe = .054, pe = 15.46, M = .186, N = .412, me = {
143
143
  yaw: 28.49,
144
144
  pitch: 28.62,
145
145
  roll: -13
146
- }, F = (e) => e * Math.PI / 180;
147
- function I(e, t, n) {
146
+ }, P = (e) => e * Math.PI / 180;
147
+ function F(e, t, n) {
148
148
  let r = Math.cos(n), i = Math.sin(n);
149
149
  return [[
150
150
  e[0] * r + t[0] * i,
@@ -156,7 +156,7 @@ function I(e, t, n) {
156
156
  t[2] * r - e[2] * i
157
157
  ]];
158
158
  }
159
- function me(e, t, n = M) {
159
+ function I(e, t, n = pe) {
160
160
  let r = [
161
161
  0,
162
162
  0,
@@ -170,9 +170,9 @@ function me(e, t, n = M) {
170
170
  1,
171
171
  0
172
172
  ];
173
- [r, i] = I(r, i, F(e.yaw)), [a, r] = I(a, r, F(e.pitch)), [i, a] = I(i, a, F(e.roll));
173
+ [r, i] = F(r, i, P(e.yaw)), [a, r] = F(a, r, P(e.pitch)), [i, a] = F(i, a, P(e.roll));
174
174
  let o = (e) => {
175
- let [o, s] = I(r, i, F(n * e));
175
+ let [o, s] = F(r, i, P(n * e));
176
176
  return {
177
177
  x: o[0] * t,
178
178
  y: o[1] * t,
@@ -185,16 +185,16 @@ function me(e, t, n = M) {
185
185
  };
186
186
  return [o(-1), o(1)];
187
187
  }
188
- var he = w(24301), L = (() => {
188
+ var he = ee(24301), ge = (() => {
189
189
  let e = [], t = 1.4;
190
190
  for (; t < 900;) e.push(t), t += 1.9 + he() * 2.7, he() < .18 && (e.push(t), t += .24);
191
191
  return e;
192
- })(), ge = .18;
193
- function _e(e) {
194
- for (let t = 0; t < L.length; t++) {
195
- let n = L[t];
192
+ })(), _e = .18;
193
+ function L(e) {
194
+ for (let t = 0; t < ge.length; t++) {
195
+ let n = ge[t];
196
196
  if (e < n) break;
197
- let r = (e - n) / ge;
197
+ let r = (e - n) / _e;
198
198
  if (r >= 0 && r <= 1) return r < .45 ? 1 - r / .45 : (r - .45) / .55;
199
199
  }
200
200
  return 1;
@@ -205,28 +205,28 @@ function ve(e, t = {}) {
205
205
  dYaw: (C(e, 11.3, .4) * 5.5 + C(e, 3.7, 2.1) * 1.6) * n,
206
206
  dPitch: (C(e, 9.1, 1.3) * 4.2 + C(e, 4.3, .7) * 1.3) * n,
207
207
  dRoll: C(e, 13.7, 3.2) * 2.2 * n,
208
- lid: r ? _e(e) : 1,
208
+ lid: r ? L(e) : 1,
209
209
  driftX: i ? C(e, 7.9, 1.9) * .006 : 0,
210
210
  driftY: i ? C(e, 5.3, .3) * .007 : 0,
211
211
  breath: i ? 1 + Math.sin(e / 3.4 * Math.PI * 2) * .005 : 1
212
212
  };
213
213
  }
214
- function R(e) {
214
+ function ye(e) {
215
215
  return .06 + .94 * b(e);
216
216
  }
217
217
  //#endregion
218
218
  //#region src/bot/expressions.ts
219
- var z = (e, t, n = 0, r = 1) => ({
219
+ var R = (e, t, n = 0, r = 1) => ({
220
220
  w: e,
221
221
  h: t,
222
222
  tilt: n,
223
223
  open: r
224
- }), B = (e, t, n = 0, r = 1) => [z(e, t, n, r), z(e, t, -n, r)], ye = [
224
+ }), z = (e, t, n = 0, r = 1) => [R(e, t, n, r), R(e, t, -n, r)], B = [
225
225
  {
226
226
  id: "neutre",
227
- gaze: { ...pe },
228
- split: M,
229
- eyes: [z(N, P), z(N, P)]
227
+ gaze: { ...me },
228
+ split: pe,
229
+ eyes: [R(M, N), R(M, N)]
230
230
  },
231
231
  {
232
232
  id: "attentif",
@@ -236,7 +236,7 @@ var z = (e, t, n = 0, r = 1) => ({
236
236
  roll: -4
237
237
  },
238
238
  split: 16,
239
- eyes: B(.21, .44)
239
+ eyes: z(.21, .44)
240
240
  },
241
241
  {
242
242
  id: "surpris",
@@ -246,7 +246,7 @@ var z = (e, t, n = 0, r = 1) => ({
246
246
  roll: 0
247
247
  },
248
248
  split: 19,
249
- eyes: B(.45, .47)
249
+ eyes: z(.45, .47)
250
250
  },
251
251
  {
252
252
  id: "excite",
@@ -256,7 +256,7 @@ var z = (e, t, n = 0, r = 1) => ({
256
256
  roll: 0
257
257
  },
258
258
  split: 19.5,
259
- eyes: B(.4, .56, -10)
259
+ eyes: z(.4, .56, -10)
260
260
  },
261
261
  {
262
262
  id: "heureux",
@@ -266,7 +266,7 @@ var z = (e, t, n = 0, r = 1) => ({
266
266
  roll: 0
267
267
  },
268
268
  split: 17,
269
- eyes: B(.27, .17, 14)
269
+ eyes: z(.27, .17, 14)
270
270
  },
271
271
  {
272
272
  id: "hilare",
@@ -276,7 +276,7 @@ var z = (e, t, n = 0, r = 1) => ({
276
276
  roll: 0
277
277
  },
278
278
  split: 18,
279
- eyes: B(.34, .13, 20)
279
+ eyes: z(.34, .13, 20)
280
280
  },
281
281
  {
282
282
  id: "colere",
@@ -286,7 +286,7 @@ var z = (e, t, n = 0, r = 1) => ({
286
286
  roll: 0
287
287
  },
288
288
  split: 17,
289
- eyes: B(.34, .15, 30)
289
+ eyes: z(.34, .15, 30)
290
290
  },
291
291
  {
292
292
  id: "triste",
@@ -296,7 +296,7 @@ var z = (e, t, n = 0, r = 1) => ({
296
296
  roll: 0
297
297
  },
298
298
  split: 16,
299
- eyes: B(.22, .4, -28)
299
+ eyes: z(.22, .4, -28)
300
300
  },
301
301
  {
302
302
  id: "effraye",
@@ -306,7 +306,7 @@ var z = (e, t, n = 0, r = 1) => ({
306
306
  roll: 0
307
307
  },
308
308
  split: 20.5,
309
- eyes: B(.4, .6)
309
+ eyes: z(.4, .6)
310
310
  },
311
311
  {
312
312
  id: "mefiant",
@@ -316,7 +316,7 @@ var z = (e, t, n = 0, r = 1) => ({
316
316
  roll: -6
317
317
  },
318
318
  split: 16,
319
- eyes: [z(.21, .4), z(.22, .15)]
319
+ eyes: [R(.21, .4), R(.22, .15)]
320
320
  },
321
321
  {
322
322
  id: "confus",
@@ -326,7 +326,7 @@ var z = (e, t, n = 0, r = 1) => ({
326
326
  roll: 8
327
327
  },
328
328
  split: 16.5,
329
- eyes: [z(.2, .44, -18), z(.28, .17, 14)]
329
+ eyes: [R(.2, .44, -18), R(.28, .17, 14)]
330
330
  },
331
331
  {
332
332
  id: "curieux",
@@ -336,7 +336,7 @@ var z = (e, t, n = 0, r = 1) => ({
336
336
  roll: -15
337
337
  },
338
338
  split: 16.5,
339
- eyes: [z(.24, .46, -8), z(.2, .38, -8)]
339
+ eyes: [R(.24, .46, -8), R(.2, .38, -8)]
340
340
  },
341
341
  {
342
342
  id: "fier",
@@ -346,7 +346,7 @@ var z = (e, t, n = 0, r = 1) => ({
346
346
  roll: 0
347
347
  },
348
348
  split: 17,
349
- eyes: B(.3, .15, 18)
349
+ eyes: z(.3, .15, 18)
350
350
  },
351
351
  {
352
352
  id: "timide",
@@ -356,7 +356,7 @@ var z = (e, t, n = 0, r = 1) => ({
356
356
  roll: -7
357
357
  },
358
358
  split: 14,
359
- eyes: B(.17, .3)
359
+ eyes: z(.17, .3)
360
360
  },
361
361
  {
362
362
  id: "blase",
@@ -366,7 +366,7 @@ var z = (e, t, n = 0, r = 1) => ({
366
366
  roll: 0
367
367
  },
368
368
  split: 16,
369
- eyes: B(.3, .12)
369
+ eyes: z(.3, .12)
370
370
  },
371
371
  {
372
372
  id: "somnolent",
@@ -376,9 +376,9 @@ var z = (e, t, n = 0, r = 1) => ({
376
376
  roll: -3
377
377
  },
378
378
  split: 16,
379
- eyes: B(.2, .42, 0, .42)
379
+ eyes: z(.2, .42, 0, .42)
380
380
  }
381
- ], be = new Map(ye.map((e) => [e.id, e])), xe = "neutre", Se = (e, t, n) => ({
381
+ ], be = new Map(B.map((e) => [e.id, e])), xe = "neutre", Se = (e, t, n) => ({
382
382
  w: x(e.w, t.w, n),
383
383
  h: x(e.h, t.h, n),
384
384
  tilt: x(e.tilt ?? 0, t.tilt ?? 0, n),
@@ -597,8 +597,8 @@ var we = {
597
597
  .733,
598
598
  .7528
599
599
  ]
600
- }, Te = Array.from({ length: 64 }, (e, t) => t / 64 * y), Ee = Te.map(Math.cos), De = Te.map(Math.sin);
601
- function Oe(e, t = {}) {
600
+ }, V = Array.from({ length: 64 }, (e, t) => t / 64 * y), H = V.map(Math.cos), U = V.map(Math.sin);
601
+ function Te(e, t = {}) {
602
602
  return {
603
603
  radii: [...we[e]],
604
604
  rot: 0,
@@ -609,7 +609,7 @@ function Oe(e, t = {}) {
609
609
  ...t
610
610
  };
611
611
  }
612
- function V(e, t = {}) {
612
+ function W(e, t = {}) {
613
613
  return {
614
614
  radii: Array(64).fill(e),
615
615
  rot: 0,
@@ -620,7 +620,7 @@ function V(e, t = {}) {
620
620
  ...t
621
621
  };
622
622
  }
623
- function ke(e, t, n, r) {
623
+ function Ee(e, t, n, r) {
624
624
  let i = r ?? {
625
625
  radii: Array(64),
626
626
  rot: 0,
@@ -635,10 +635,10 @@ function ke(e, t, n, r) {
635
635
  for (; a < -Math.PI;) a += y;
636
636
  return i.rot = e.rot + a * n, i.cx = x(e.cx, t.cx, n), i.cy = x(e.cy, t.cy, n), i.sx = x(e.sx, t.sx, n), i.sy = x(e.sy, t.sy, n), i;
637
637
  }
638
- function H(e, t, n = []) {
638
+ function De(e, t, n = []) {
639
639
  let r = Math.cos(e.rot), i = Math.sin(e.rot);
640
640
  for (let a = 0; a < 64; a++) {
641
- let o = e.radii[a] ?? 1, s = o * (Ee[a] ?? 0), c = o * (De[a] ?? 0), l = s * r - c * i, u = s * i + c * r, d = n[a] ?? {
641
+ let o = e.radii[a] ?? 1, s = o * (H[a] ?? 0), c = o * (U[a] ?? 0), l = s * r - c * i, u = s * i + c * r, d = n[a] ?? {
642
642
  x: 0,
643
643
  y: 0
644
644
  };
@@ -646,20 +646,20 @@ function H(e, t, n = []) {
646
646
  }
647
647
  return n.length = 64, n;
648
648
  }
649
- function Ae(e, t = 1 / 6) {
649
+ function Oe(e, t = 1 / 6) {
650
650
  let n = e.length;
651
651
  if (n < 3) return "";
652
- let r = e[0], i = `M${T(r.x)} ${T(r.y)}`;
652
+ let r = e[0], i = `M${w(r.x)} ${w(r.y)}`;
653
653
  for (let r = 0; r < n; r++) {
654
654
  let a = e[(r - 1 + n) % n], o = e[r], s = e[(r + 1) % n], c = e[(r + 2) % n], l = o.x + (s.x - a.x) * t, u = o.y + (s.y - a.y) * t, d = s.x - (c.x - o.x) * t, f = s.y - (c.y - o.y) * t;
655
- i += `C${T(l)} ${T(u)} ${T(d)} ${T(f)} ${T(s.x)} ${T(s.y)}`;
655
+ i += `C${w(l)} ${w(u)} ${w(d)} ${w(f)} ${w(s.x)} ${w(s.y)}`;
656
656
  }
657
657
  return `${i}Z`;
658
658
  }
659
- function U(e, t, n) {
659
+ function G(e, t, n) {
660
660
  let r = Array(64).fill(0), i = e.length;
661
661
  for (let a = 0; a < 64; a++) {
662
- let o = Ee[a] ?? 0, s = De[a] ?? 0, c = 0;
662
+ let o = H[a] ?? 0, s = U[a] ?? 0, c = 0;
663
663
  for (let r = 0; r < i; r++) {
664
664
  let a = e[r], l = e[(r + 1) % i], u = l.x - a.x, d = l.y - a.y, f = o * d - s * u;
665
665
  if (Math.abs(f) < 1e-9) continue;
@@ -670,7 +670,7 @@ function U(e, t, n) {
670
670
  }
671
671
  return r;
672
672
  }
673
- function W(e, t, n, r, i, a, o = 96) {
673
+ function K(e, t, n, r, i, a, o = 96) {
674
674
  let s = r - e, c = i - t, l = Math.hypot(s, c) || 1e-6, u = Math.atan2(c, s), d = Math.acos(Math.max(-1, Math.min(1, (n - a) / l))), f = [];
675
675
  for (let r = 0; r <= o / 2; r++) {
676
676
  let i = u + d + (y - 2 * d) * r / (o / 2);
@@ -688,17 +688,17 @@ function W(e, t, n, r, i, a, o = 96) {
688
688
  }
689
689
  return f;
690
690
  }
691
- function je(e, t) {
691
+ function ke(e, t) {
692
692
  let n = e.length, r = (t / y % 1 + 1) % 1 * n, i = Math.floor(r);
693
693
  return x(e[i % n] ?? 1, e[(i + 1) % n] ?? 1, r - i);
694
694
  }
695
- function G(e, t = 1, n = 1) {
696
- return Te.map((r, i) => (Math.abs((Ee[i] ?? 0) / t) ** e + Math.abs((De[i] ?? 0) / n) ** e) ** (-1 / e));
695
+ function Ae(e, t = 1, n = 1) {
696
+ return V.map((r, i) => (Math.abs((H[i] ?? 0) / t) ** e + Math.abs((U[i] ?? 0) / n) ** e) ** (-1 / e));
697
697
  }
698
- function Me(e) {
698
+ function je(e) {
699
699
  let t = Array(64).fill(0);
700
700
  for (let n = 0; n < 64; n++) {
701
- let r = Ee[n] ?? 0, i = De[n] ?? 0, a = 0;
701
+ let r = H[n] ?? 0, i = U[n] ?? 0, a = 0;
702
702
  for (let t of e) {
703
703
  let e = r * t.x + i * t.y, n = e * e - (t.x * t.x + t.y * t.y - t.r * t.r);
704
704
  if (n < 0) continue;
@@ -709,7 +709,7 @@ function Me(e) {
709
709
  }
710
710
  return t;
711
711
  }
712
- function Ne(e, t, n = 10) {
712
+ function Me(e, t, n = 10) {
713
713
  let r = e.length, i = [], a = (e, t) => {
714
714
  let n = t.x - e.x, r = t.y - e.y, i = Math.hypot(n, r) || 1;
715
715
  return Math.atan2(-n / i, r / i);
@@ -728,9 +728,9 @@ function Ne(e, t, n = 10) {
728
728
  }
729
729
  return i;
730
730
  }
731
- function Pe(e, t, n, r = 0) {
731
+ function Ne(e, t, n, r = 0) {
732
732
  let i = r * Math.PI / 180;
733
- return U(Ne(Array.from({ length: e }, (r, a) => {
733
+ return G(Me(Array.from({ length: e }, (r, a) => {
734
734
  let o = i + a / e * y;
735
735
  return {
736
736
  x: Math.cos(o) * (t - n),
@@ -738,28 +738,28 @@ function Pe(e, t, n, r = 0) {
738
738
  };
739
739
  }), n), 0, 0);
740
740
  }
741
- function Fe(e, t = 1) {
741
+ function Pe(e, t = 1) {
742
742
  if (e.length < 3) return "";
743
743
  let n = "";
744
744
  for (let r = 0; r < e.length; r++) {
745
745
  let i = e[r];
746
- n += `${r === 0 ? "M" : "L"}${T(i.x * t)} ${T(i.y * t)}`;
746
+ n += `${r === 0 ? "M" : "L"}${w(i.x * t)} ${w(i.y * t)}`;
747
747
  }
748
748
  return `${n}Z`;
749
749
  }
750
- function Ie(e, t) {
750
+ function Fe(e, t) {
751
751
  let n = Math.max(e, .01) / 2, r = Math.max(t, .01) / 2, i = Math.min(n, r);
752
- return `M${T(-n)} ${T(-r + i)}A${T(i)} ${T(i)} 0 0 1 ${T(-n + i)} ${T(-r)}L${T(n - i)} ${T(-r)}A${T(i)} ${T(i)} 0 0 1 ${T(n)} ${T(-r + i)}L${T(n)} ${T(r - i)}A${T(i)} ${T(i)} 0 0 1 ${T(n - i)} ${T(r)}L${T(-n + i)} ${T(r)}A${T(i)} ${T(i)} 0 0 1 ${T(-n)} ${T(r - i)}Z`;
752
+ return `M${w(-n)} ${w(-r + i)}A${w(i)} ${w(i)} 0 0 1 ${w(-n + i)} ${w(-r)}L${w(n - i)} ${w(-r)}A${w(i)} ${w(i)} 0 0 1 ${w(n)} ${w(-r + i)}L${w(n)} ${w(r - i)}A${w(i)} ${w(i)} 0 0 1 ${w(n - i)} ${w(r)}L${w(-n + i)} ${w(r)}A${w(i)} ${w(i)} 0 0 1 ${w(-n)} ${w(r - i)}Z`;
753
753
  }
754
754
  //#endregion
755
755
  //#region src/bot/skins.ts
756
- function K(e, t = 1) {
756
+ function Ie(e, t = 1) {
757
757
  let n = Math.max(...e);
758
758
  if (n <= 0) return e;
759
759
  let r = t / n;
760
760
  return e.map((e) => e * r);
761
761
  }
762
- var Le = K(Array.from({ length: 64 }, (e, t) => t / 64 * Math.PI * 2).map((e) => 1 + .075 * Math.cos(2 * e + .5) + .035 * Math.cos(3 * e + 2.1)), 1.02), q = K(Me([
762
+ var Le = Ie(Array.from({ length: 64 }, (e, t) => t / 64 * Math.PI * 2).map((e) => 1 + .075 * Math.cos(2 * e + .5) + .035 * Math.cos(3 * e + 2.1)), 1.02), q = Ie(je([
763
763
  {
764
764
  x: -.44,
765
765
  y: .2,
@@ -785,7 +785,7 @@ var Le = K(Array.from({ length: 64 }, (e, t) => t / 64 * Math.PI * 2).map((e) =>
785
785
  y: -.24,
786
786
  r: .44
787
787
  }
788
- ]), 1.02), Re = K(U(W(0, .28, .66, 0, -.96, .05), 0, 0), 1.04), ze = U(W(-.42, 0, .62, .42, 0, .62), 0, 0), J = [
788
+ ]), 1.02), Re = Ie(G(K(0, .28, .66, 0, -.96, .05), 0, 0), 1.04), J = G(K(-.42, 0, .62, .42, 0, .62), 0, 0), ze = [
789
789
  {
790
790
  id: "cercle",
791
791
  radii: Array(64).fill(1)
@@ -796,19 +796,19 @@ var Le = K(Array.from({ length: 64 }, (e, t) => t / 64 * Math.PI * 2).map((e) =>
796
796
  },
797
797
  {
798
798
  id: "squircle",
799
- radii: K(G(4.2), 1.15)
799
+ radii: Ie(Ae(4.2), 1.15)
800
800
  },
801
801
  {
802
802
  id: "capsule",
803
- radii: ze
803
+ radii: J
804
804
  },
805
805
  {
806
806
  id: "triangle",
807
- radii: Pe(3, 1.12, .34, -90)
807
+ radii: Ne(3, 1.12, .34, -90)
808
808
  },
809
809
  {
810
810
  id: "hexagone",
811
- radii: Pe(6, 1.04, .26, 0)
811
+ radii: Ne(6, 1.04, .26, 0)
812
812
  },
813
813
  {
814
814
  id: "nuage",
@@ -818,7 +818,7 @@ var Le = K(Array.from({ length: 64 }, (e, t) => t / 64 * Math.PI * 2).map((e) =>
818
818
  id: "goutte",
819
819
  radii: Re
820
820
  }
821
- ], Be = new Map(J.map((e) => [e.id, e])), Ve = "cercle", He = [
821
+ ], Be = new Map(ze.map((e) => [e.id, e])), Ve = "cercle", He = [
822
822
  {
823
823
  id: "encre",
824
824
  hex: "#0a0a0c"
@@ -892,12 +892,12 @@ var Y = (e, t) => [{
892
892
  }];
893
893
  function X(e = {}) {
894
894
  return {
895
- sil: V(1),
895
+ sil: W(1),
896
896
  offX: 0,
897
897
  offY: 0,
898
- gaze: { ...pe },
899
- split: M,
900
- eyes: Y(N, P),
898
+ gaze: { ...me },
899
+ split: pe,
900
+ eyes: Y(M, N),
901
901
  eyeAlpha: 1,
902
902
  bodyAlpha: 1,
903
903
  dots: [],
@@ -907,7 +907,7 @@ function X(e = {}) {
907
907
  ...e
908
908
  };
909
909
  }
910
- var Ke = -.1875, qe = U(W(0, -.505, .132, 0, .13, .075), 0, Ke), Je = U(W(0, -.2535, .1345, 0, .2535, .1345), 0, 0), Ye = (e = {}) => ({
910
+ var Ke = -.1875, qe = G(K(0, -.505, .132, 0, .13, .075), 0, Ke), Je = G(K(0, -.2535, .1345, 0, .2535, .1345), 0, 0), Ye = (e = {}) => ({
911
911
  radii: [...qe],
912
912
  rot: 0,
913
913
  cx: 0,
@@ -923,9 +923,9 @@ var Ke = -.1875, qe = U(W(0, -.505, .132, 0, .13, .075), 0, Ke), Je = U(W(0, -.2
923
923
  sx: 1,
924
924
  sy: 1,
925
925
  ...e
926
- }), Ze = Fe(W(0, 0, .118, 0, .172, .012)), Qe = .213;
926
+ }), Ze = Pe(K(0, 0, .118, 0, .172, .012)), Qe = .213;
927
927
  function $e(e) {
928
- return Oe("triangle", {
928
+ return Te("triangle", {
929
929
  rot: e,
930
930
  cx: -.213 * Math.sin(e),
931
931
  cy: Qe * Math.cos(e)
@@ -955,14 +955,14 @@ var tt = [
955
955
  pose: (e) => {
956
956
  let t = et(e, 1), n = .3 + .7 * S.easeOutCubic(b(e / .3));
957
957
  return X({
958
- sil: V(ne * (1 + (re - 1) * t), { cx: k[1] }),
958
+ sil: W(k * (1 + (re - 1) * t), { cx: O[1] }),
959
959
  eyeAlpha: 0,
960
960
  dots: [0, 2].map((t) => {
961
961
  let r = et(e, t);
962
962
  return {
963
- x: k[t] * n,
963
+ x: O[t] * n,
964
964
  y: 0,
965
- r: ne * (1 + (re - 1) * r),
965
+ r: k * (1 + (re - 1) * r),
966
966
  opacity: .55 + .45 * r
967
967
  };
968
968
  })
@@ -1047,7 +1047,7 @@ var tt = [
1047
1047
  baseFace: !1,
1048
1048
  baseBody: !0,
1049
1049
  pose: (e) => {
1050
- let t = b(e / .45), n = 1 + (de - 1) * Math.sin(t * Math.PI) * (1 - t * .35), r = ue * (t < 1 ? n : 1), i = -42 * Math.PI / 180;
1050
+ let t = b(e / .45), n = 1 + (de - 1) * Math.sin(t * Math.PI) * (1 - t * .35), r = j * (t < 1 ? n : 1), i = -42 * Math.PI / 180;
1051
1051
  return X({
1052
1052
  gaze: {
1053
1053
  yaw: -21.94,
@@ -1057,8 +1057,8 @@ var tt = [
1057
1057
  split: 18.89,
1058
1058
  eyes: Y(.505, .498),
1059
1059
  notif: {
1060
- x: Math.cos(i) * j,
1061
- y: Math.sin(i) * j,
1060
+ x: Math.cos(i) * A,
1061
+ y: Math.sin(i) * A,
1062
1062
  r,
1063
1063
  notch: r + fe
1064
1064
  }
@@ -1091,7 +1091,7 @@ var tt = [
1091
1091
  baseBody: !1,
1092
1092
  blinkIn: !1,
1093
1093
  pose: (e) => X({
1094
- sil: V(.1585, { cy: .11 + Math.sin(y / .6 * e) * .19 }),
1094
+ sil: W(.1585, { cy: .11 + Math.sin(y / .6 * e) * .19 }),
1095
1095
  eyeAlpha: 0
1096
1096
  })
1097
1097
  },
@@ -1103,7 +1103,7 @@ var tt = [
1103
1103
  baseBody: !1,
1104
1104
  blinkIn: !0,
1105
1105
  pose: () => X({
1106
- sil: Oe("egg"),
1106
+ sil: Te("egg"),
1107
1107
  gaze: {
1108
1108
  yaw: 19.97,
1109
1109
  pitch: 26.01,
@@ -1121,7 +1121,7 @@ var tt = [
1121
1121
  baseBody: !1,
1122
1122
  blinkIn: !0,
1123
1123
  pose: () => X({
1124
- sil: Oe("hexagon"),
1124
+ sil: Te("hexagon"),
1125
1125
  gaze: {
1126
1126
  yaw: 23.11,
1127
1127
  pitch: 24.42,
@@ -1149,7 +1149,7 @@ var tt = [
1149
1149
  },
1150
1150
  split: 15,
1151
1151
  eyes: Y(.18, .34),
1152
- arcs: te.map((n, r) => ({
1152
+ arcs: D.map((n, r) => ({
1153
1153
  id: `sw${r}`,
1154
1154
  seed: {
1155
1155
  ...n,
@@ -1170,7 +1170,7 @@ var tt = [
1170
1170
  baseBody: !1,
1171
1171
  blinkIn: !1,
1172
1172
  pose: (e) => {
1173
- let t = S.easeInOutCubic(b(e / .35)), n = -y * 1.25 * e * t, r = S.easeInOutCubic(b((e - 1.6) / .9)), i = $e(n), a = V(1, { rot: n }), o = {
1173
+ let t = S.easeInOutCubic(b(e / .35)), n = -y * 1.25 * e * t, r = S.easeInOutCubic(b((e - 1.6) / .9)), i = $e(n), a = W(1, { rot: n }), o = {
1174
1174
  radii: i.radii.map((e, t) => e + (a.radii[t] - e) * r),
1175
1175
  rot: n,
1176
1176
  cx: i.cx * (1 - r),
@@ -1181,12 +1181,12 @@ var tt = [
1181
1181
  return X({
1182
1182
  sil: o,
1183
1183
  gaze: {
1184
- yaw: pe.yaw + Math.sin(e * 6.5) * 65 * (1 - r),
1184
+ yaw: me.yaw + Math.sin(e * 6.5) * 65 * (1 - r),
1185
1185
  pitch: -4 + r * 32,
1186
1186
  roll: -13
1187
1187
  },
1188
1188
  eyes: Y(.18, .34 + r * .07),
1189
- arcs: O.map((t, n) => ({
1189
+ arcs: ne.map((t, n) => ({
1190
1190
  id: `rg${n}`,
1191
1191
  seed: t,
1192
1192
  t: e,
@@ -1203,7 +1203,7 @@ var tt = [
1203
1203
  baseFace: !0,
1204
1204
  baseBody: !0,
1205
1205
  blinkIn: !0,
1206
- pose: (e) => X({ arcs: O.slice(0, 3).map((t, n) => ({
1206
+ pose: (e) => X({ arcs: ne.slice(0, 3).map((t, n) => ({
1207
1207
  id: `sw${n}`,
1208
1208
  seed: t,
1209
1209
  t: e,
@@ -1221,7 +1221,7 @@ var tt = [
1221
1221
  pose: (e) => {
1222
1222
  let t = 1 - .834 * S.easeOutQuint(b(e / .7)), n = S.easeOutQuint(b((e - 1.7) / .7));
1223
1223
  return X({
1224
- sil: V(t + (1 - t) * n),
1224
+ sil: W(t + (1 - t) * n),
1225
1225
  eyeAlpha: b((e - 1.85) / .4),
1226
1226
  dots: oe(e, 1),
1227
1227
  dotsBehind: !0
@@ -1237,9 +1237,9 @@ var tt = [
1237
1237
  baseBody: !1,
1238
1238
  blinkIn: !1,
1239
1239
  pose: (e) => {
1240
- let t = 1 - (1 - A) * S.easeOutQuint(b(e / .55)), n = S.easeOutQuint(b((e - 1.85) / .6)), r = b((e - .15) / .25) * b((1.95 - e) / .3);
1240
+ let t = 1 - (1 - le) * S.easeOutQuint(b(e / .55)), n = S.easeOutQuint(b((e - 1.85) / .6)), r = b((e - .15) / .25) * b((1.95 - e) / .3);
1241
1241
  return X({
1242
- sil: V(t + (1 - t) * n, { cy: Math.sin(b(e / 1.7) * Math.PI) * .035 }),
1242
+ sil: W(t + (1 - t) * n, { cy: Math.sin(b(e / 1.7) * Math.PI) * .035 }),
1243
1243
  eyeAlpha: b((e - 2) / .35),
1244
1244
  arcs: ce.map((t, n) => ({
1245
1245
  id: `cm${n}`,
@@ -1283,11 +1283,11 @@ var tt = [
1283
1283
  "comet"
1284
1284
  ], Q = 100, it = 7.1, at = 5.5, ot = .006, st = .007;
1285
1285
  function ct(e, t, n) {
1286
- let r = [], i = me(e.gaze, Q, e.split);
1286
+ let r = [], i = I(e.gaze, Q, e.split);
1287
1287
  for (let a = 0; a < 2; a++) {
1288
1288
  let o = i[a];
1289
1289
  if (o.depth <= .02) continue;
1290
- let s = e.eyes[a], c = (s.tilt ?? 0) * Math.PI / 180, l = Math.cos(c), u = Math.sin(c), d = o.a * l + o.c * u, f = o.b * l + o.d * u, p = -o.a * u + o.c * l, m = -o.b * u + o.d * l, h = Math.max(s.w * Q, .01) / 2, g = Math.max(s.h * Q, .01) / 2, _ = Math.min(h, g), v = g > h, y = v ? g - _ : h - _, b = je(n, Math.atan2(o.y, o.x) - t.rot);
1290
+ let s = e.eyes[a], c = (s.tilt ?? 0) * Math.PI / 180, l = Math.cos(c), u = Math.sin(c), d = o.a * l + o.c * u, f = o.b * l + o.d * u, p = -o.a * u + o.c * l, m = -o.b * u + o.d * l, h = Math.max(s.w * Q, .01) / 2, g = Math.max(s.h * Q, .01) / 2, _ = Math.min(h, g), v = g > h, y = v ? g - _ : h - _, b = ke(n, Math.atan2(o.y, o.x) - t.rot);
1291
1291
  r.push({
1292
1292
  x: o.x * b,
1293
1293
  y: o.y * b,
@@ -1407,10 +1407,10 @@ function gt(e) {
1407
1407
  function _t(e, t, n) {
1408
1408
  let r = [];
1409
1409
  for (let i of gt(e)) {
1410
- let a = e.pose(i), o = H({
1410
+ let a = e.pose(i), o = De({
1411
1411
  ...a.sil,
1412
1412
  radii: t
1413
- }, Q), s = H(a.sil, Q), c = ht(e, a, n), l = [];
1413
+ }, Q), s = De(a.sil, Q), c = ht(e, a, n), l = [];
1414
1414
  for (let e of [-7.1, it]) for (let t of [-5.5, at]) l.push({
1415
1415
  ...c,
1416
1416
  gaze: {
@@ -1433,11 +1433,11 @@ var vt = {
1433
1433
  y: 0
1434
1434
  }, yt = (e, t) => `${e}|${t ?? ""}`;
1435
1435
  function bt() {
1436
- return new Map(J.map((e) => {
1436
+ return new Map(ze.map((e) => {
1437
1437
  let t = /* @__PURE__ */ new Map();
1438
1438
  for (let n of tt) {
1439
1439
  if (!n.baseBody) continue;
1440
- let r = n.baseFace ? [null, ...ye] : [null];
1440
+ let r = n.baseFace ? [null, ...B] : [null];
1441
1441
  for (let i of r) t.set(yt(n.id, i?.id ?? null), _t(n, e.radii, i));
1442
1442
  }
1443
1443
  return [e.radii, t];
@@ -1472,7 +1472,7 @@ var Ct = {
1472
1472
  function Et(e, t, n) {
1473
1473
  let r = 1 - n;
1474
1474
  return {
1475
- sil: ke(e.sil, t.sil, n),
1475
+ sil: Ee(e.sil, t.sil, n),
1476
1476
  offX: x(e.offX, t.offX, n),
1477
1477
  offY: x(e.offY, t.offY, n),
1478
1478
  gaze: {
@@ -1511,6 +1511,8 @@ var Dt = class e {
1511
1511
  departFige = null;
1512
1512
  tCur = 0;
1513
1513
  tPrev = 0;
1514
+ posePhase = 0;
1515
+ previousPosePhase = 0;
1514
1516
  blinkAt = -10;
1515
1517
  pts = [];
1516
1518
  shape = null;
@@ -1587,27 +1589,27 @@ var Dt = class e {
1587
1589
  return this.cur;
1588
1590
  }
1589
1591
  reset(e, t) {
1590
- this.cur = e, this.prev = null, this.departFige = null, this.tCur = t, this.tPrev = t, this.blinkAt = -10;
1592
+ this.cur = e, this.prev = null, this.departFige = null, this.tCur = t, this.tPrev = t, this.posePhase = 0, this.previousPosePhase = 0, this.blinkAt = -10;
1591
1593
  }
1592
1594
  origine(e, t, n) {
1593
1595
  if (this.departFige) return this.departFige;
1594
1596
  if (!this.prev) return null;
1595
1597
  let r = Z.get(this.prev);
1596
- return this.posed(r, Math.max(0, e - this.tPrev), t, n);
1598
+ return this.posed(r, Math.max(0, e - this.tPrev + this.previousPosePhase), t, n);
1597
1599
  }
1598
1600
  poseComposee(e) {
1599
- let t = Z.get(this.cur), n = this.shapeAtTime(e), r = this.exprAtTime(e), i = this.posed(t, Math.max(0, e - this.tCur), n, r), a = e - this.tCur;
1601
+ let t = Z.get(this.cur), n = this.shapeAtTime(e), r = this.exprAtTime(e), i = this.posed(t, Math.max(0, e - this.tCur + this.posePhase), n, r), a = e - this.tCur;
1600
1602
  if (a >= t.morph) return i;
1601
1603
  let o = this.origine(e, n, r);
1602
1604
  return o ? Et(o, i, S.easeOutQuint(b(a / t.morph))) : i;
1603
1605
  }
1604
- setState(e, t) {
1606
+ setState(e, t, n = 0) {
1605
1607
  if (e === this.cur) return;
1606
- let n = Z.get(this.cur).morph, r = this.prev !== null && t - this.tCur < n;
1607
- this.departFige = r ? this.poseComposee(t) : null, this.prev = this.cur, this.tPrev = this.tCur, this.cur = e, this.tCur = t, Z.get(e)?.blinkIn && (this.blinkAt = t);
1608
+ let r = Z.get(this.cur).morph, i = this.prev !== null && t - this.tCur < r;
1609
+ this.departFige = i ? this.poseComposee(t) : null, this.prev = this.cur, this.tPrev = this.tCur, this.previousPosePhase = this.posePhase, this.posePhase = n, this.cur = e, this.tCur = t, Z.get(e)?.blinkIn && (this.blinkAt = t);
1608
1610
  }
1609
1611
  sample(e) {
1610
- let t = this.scale, n = Z.get(this.cur), r = this.shapeAtTime(e), i = this.exprAtTime(e), a = this.posed(n, Math.max(0, e - this.tCur), r, i), o = this.decalageAtTime(e, this.cur), s = e - this.tCur, c = s < n.morph ? this.origine(e, r, i) : null;
1612
+ let t = this.scale, n = Z.get(this.cur), r = this.shapeAtTime(e), i = this.exprAtTime(e), a = this.posed(n, Math.max(0, e - this.tCur + this.posePhase), r, i), o = this.decalageAtTime(e, this.cur), s = e - this.tCur, c = s < n.morph ? this.origine(e, r, i) : null;
1611
1613
  if (c) {
1612
1614
  let t = S.easeOutQuint(b(s / n.morph));
1613
1615
  a = Et(c, a, t);
@@ -1627,48 +1629,48 @@ var Dt = class e {
1627
1629
  yaw: x(a.gaze.yaw, u.yaw, u.mix) + d.dYaw - u.spin,
1628
1630
  pitch: x(a.gaze.pitch, u.pitch, u.mix) + d.dPitch,
1629
1631
  roll: a.gaze.roll + d.dRoll
1630
- }, p = b((e - this.blinkAt) / .2), m = p < 1 ? Math.abs(p * 2 - 1) : 1, h = Math.min(d.lid, m), g = a.offX + d.driftX, _ = a.offY + d.driftY, v = Ae(H({
1632
+ }, p = b((e - this.blinkAt) / .2), m = p < 1 ? Math.abs(p * 2 - 1) : 1, h = Math.min(d.lid, m), g = a.offX + d.driftX, _ = a.offY + d.driftY, v = Oe(De({
1631
1633
  ...a.sil,
1632
1634
  cx: a.sil.cx + g,
1633
1635
  cy: a.sil.cy + _,
1634
1636
  sy: a.sil.sy * d.breath
1635
- }, t, this.pts)), y = (e, t) => je(a.sil.radii, Math.atan2(t, e) - a.sil.rot), C = [];
1637
+ }, t, this.pts)), y = (e, t) => ke(a.sil.radii, Math.atan2(t, e) - a.sil.rot), C = [];
1636
1638
  if (a.eyeAlpha > .01) {
1637
- let e = me(f, t, a.split);
1639
+ let e = I(f, t, a.split);
1638
1640
  for (let n = 0; n < 2; n++) {
1639
1641
  let r = e[n];
1640
1642
  if (r.depth <= .02) continue;
1641
- let i = a.eyes[n], s = y(r.x, r.y), c = (i.tilt ?? 0) * Math.PI / 180, l = Math.cos(c), u = Math.sin(c), d = r.a * l + r.c * u, f = r.b * l + r.d * u, p = -r.a * u + r.c * l, m = -r.b * u + r.d * l, v = R(Math.min(h, i.open));
1643
+ let i = a.eyes[n], s = y(r.x, r.y), c = (i.tilt ?? 0) * Math.PI / 180, l = Math.cos(c), u = Math.sin(c), d = r.a * l + r.c * u, f = r.b * l + r.d * u, p = -r.a * u + r.c * l, m = -r.b * u + r.d * l, v = ye(Math.min(h, i.open));
1642
1644
  C.push({
1643
- d: Ie(i.w * t, i.h * t),
1644
- matrix: `matrix(${T(d)},${T(f * v)},${T(p)},${T(m * v)},${T(r.x * s + (g + o.x) * t)},${T(r.y * s + (_ + o.y) * t)})`,
1645
+ d: Fe(i.w * t, i.h * t),
1646
+ matrix: `matrix(${w(d)},${w(f * v)},${w(p)},${w(m * v)},${w(r.x * s + (g + o.x) * t)},${w(r.y * s + (_ + o.y) * t)})`,
1645
1647
  alpha: a.eyeAlpha * b(r.depth / .12)
1646
1648
  });
1647
1649
  }
1648
1650
  }
1649
- let w = a.dots.filter((e) => e.opacity > .01 && e.r > 5e-4).map((e) => ({
1651
+ let ee = a.dots.filter((e) => e.opacity > .01 && e.r > 5e-4).map((e) => ({
1650
1652
  ...e,
1651
1653
  x: (e.x + g) * t,
1652
1654
  y: (e.y + _) * t,
1653
1655
  r: e.r * t
1654
- })), E = a.notif ? y(a.notif.x, a.notif.y) : 1, D = a.notif ? (a.notif.x * E + g) * t : 0, O = a.notif ? (a.notif.y * E + _) * t : 0, te = a.notif ? {
1655
- x: D,
1656
- y: O,
1656
+ })), T = a.notif ? y(a.notif.x, a.notif.y) : 1, E = a.notif ? (a.notif.x * T + g) * t : 0, ne = a.notif ? (a.notif.y * T + _) * t : 0, D = a.notif ? {
1657
+ x: E,
1658
+ y: ne,
1657
1659
  r: a.notif.r * t
1658
- } : null, k = a.notif ? {
1659
- x: D,
1660
- y: O,
1660
+ } : null, O = a.notif ? {
1661
+ x: E,
1662
+ y: ne,
1661
1663
  r: a.notif.notch * t
1662
1664
  } : null;
1663
1665
  return {
1664
1666
  bodyPath: v,
1665
1667
  bodyAlpha: a.bodyAlpha,
1666
1668
  eyes: C,
1667
- dots: w,
1669
+ dots: ee,
1668
1670
  dotsBehind: a.dotsBehind,
1669
- arcs: a.arcs.filter((e) => e.opacity > .01).map((e) => ee(e.seed, e.t, t, e.id, e.opacity)),
1670
- notif: te,
1671
- notch: k
1671
+ arcs: a.arcs.filter((e) => e.opacity > .01).map((e) => te(e.seed, e.t, t, e.id, e.opacity)),
1672
+ notif: D,
1673
+ notch: O
1672
1674
  };
1673
1675
  }
1674
1676
  }, Ot = 1.1, kt = 1.5, At = (e) => ({
@@ -1810,124 +1812,165 @@ function ln(l) {
1810
1812
  cycle: Vt().blocks,
1811
1813
  follow: !1,
1812
1814
  gaze: null,
1815
+ autoPause: !0,
1813
1816
  ariaLabel: "Animated Bloub avatar"
1814
- }, l), [x, C] = m(0), [w, T] = m("idle"), [E] = m(!1), [ee, D] = m(0), O = () => l.block ?? x(), te = () => l.state ?? w(), k = () => l.playing ?? E(), ne = () => l.elapsed ?? ee();
1815
- function re(e) {
1816
- l.block === void 0 && C(e), l.onBlockChange?.(e);
1817
- }
1817
+ }, l), x = v(() => {
1818
+ let e = y.initialPhase !== void 0 && y.frozenAt === void 0, t = e ? y.initialPhase : 0, n = e ? Wt(y.cycle, t) : {
1819
+ index: 0,
1820
+ elapsed: 0
1821
+ }, r = e ? y.cycle[n.index]?.state ?? "idle" : "idle";
1822
+ return {
1823
+ phased: e,
1824
+ phase: t,
1825
+ ...n,
1826
+ state: r
1827
+ };
1828
+ }), [C, ee] = m(x.index), [w, T] = m(x.state), [te] = m(!1), [E, ne] = m(x.elapsed), D = () => l.block ?? C(), O = () => l.state ?? w(), k = () => l.playing ?? te(), re = () => l.elapsed ?? E();
1818
1829
  function ie(e) {
1819
- l.state === void 0 && T(e), l.onStateChange?.(e);
1830
+ l.block === void 0 && ee(e), l.onBlockChange?.(e);
1820
1831
  }
1821
1832
  function ae(e) {
1822
- l.elapsed === void 0 && D(e), l.onElapsedChange?.(e);
1833
+ l.state === void 0 && T(e), l.onStateChange?.(e);
1823
1834
  }
1824
- let oe = p(() => Be.get(y.shape)?.radii ?? null), se = p(() => Ue.get(y.color)?.hex ?? "#0a0a0c"), ce = p(() => be.get(y.expression) ?? null), A = v(() => new Dt(100, te(), oe(), ce())), [j, ue] = m(v(() => A.sample(y.frozenAt ?? 0)), { equals: !1 }), de = h(), fe = `bot-mask-${de}`, M, N = 0, P = Infinity, pe = 0, F = 0, I = 0, me = 0, he = -1;
1825
- function L(e, t = 0) {
1826
- let n = y.cycle[e];
1827
- if (!n) {
1835
+ function oe(e) {
1836
+ l.elapsed === void 0 && ne(e), l.onElapsedChange?.(e);
1837
+ }
1838
+ let se = p(() => Be.get(y.shape)?.radii ?? null), ce = p(() => Ue.get(y.color)?.hex ?? "#0a0a0c"), le = p(() => be.get(y.expression) ?? null), A = v(() => {
1839
+ let e = new Dt(100, O(), se(), le());
1840
+ return x.phased && e.reset(O(), x.phase - x.elapsed), e;
1841
+ }), [j, de] = m(v(() => A.sample(y.frozenAt ?? x.phase)), { equals: !1 }), fe = h(), pe = `bot-mask-${fe}`, M, N = 0, me = -Infinity, P = Infinity, F = 0, I = x.phase, he = 0, ge = 0, _e = -1;
1842
+ function L(e, t = 0, n = 0) {
1843
+ let r = y.cycle[e];
1844
+ if (!r) {
1828
1845
  P = Infinity;
1829
1846
  return;
1830
1847
  }
1831
- I = F - t, ae(t), ie(n.state), A.setState(n.state, F), P = k() ? I + n.duration : Infinity;
1848
+ he = I - t, oe(t), ae(r.state), A.setState(r.state, I, n), P = k() ? he + r.duration : Infinity;
1832
1849
  }
1833
- function ge(e) {
1834
- re(e), L(e);
1850
+ function ve(e) {
1851
+ ie(e), L(e);
1835
1852
  }
1836
- function _e(e, t = 0) {
1837
- if (O() === e) {
1853
+ function ye(e, t = 0) {
1854
+ if (D() === e) {
1838
1855
  L(e, t);
1839
1856
  return;
1840
1857
  }
1841
- me = t, re(e);
1858
+ ge = t, ie(e);
1842
1859
  }
1843
- function ve(e) {
1860
+ function R(e) {
1844
1861
  let t = y.cycle;
1845
1862
  if (!t.length) return;
1846
1863
  let { index: n } = Wt(t, e);
1847
- if (n !== he) {
1864
+ if (n !== _e) {
1848
1865
  let e = t[n];
1849
- ie(e.state), n < he ? A.reset(e.state, Ut(t, n)) : A.setState(e.state, Ut(t, n)), he = n;
1866
+ ae(e.state), n < _e ? A.reset(e.state, Ut(t, n)) : A.setState(e.state, Ut(t, n)), _e = n;
1850
1867
  }
1851
- ue(A.sample(e));
1868
+ de(A.sample(e));
1852
1869
  }
1853
- let R = null, z = !1, B = 0, ye = 0, Se = !1, Ce = 1 / 60;
1854
- function we(e) {
1855
- e.pointerType !== "touch" && (R = {
1870
+ let z = null, B = !1, Se = 0, Ce = 0, we = !1, V = 1 / 60;
1871
+ function H(e) {
1872
+ e.pointerType !== "touch" && (z = {
1856
1873
  x: e.clientX,
1857
1874
  y: e.clientY
1858
1875
  });
1859
1876
  }
1860
- function Te() {
1861
- R = null;
1877
+ function U() {
1878
+ z = null;
1862
1879
  }
1863
- function Ee() {
1864
- z &&= (A.setLook(null, F, Ot), !1);
1880
+ function Te() {
1881
+ B &&= (A.setLook(null, I, Ot), !1);
1865
1882
  }
1866
- function De() {
1867
- if (!Z.get(te())?.baseFace) {
1868
- Ee();
1883
+ function W() {
1884
+ if (!Z.get(O())?.baseFace) {
1885
+ Te();
1869
1886
  return;
1870
1887
  }
1871
1888
  let e = M?.getBoundingClientRect();
1872
1889
  if (!e || e.width === 0 || e.height === 0) return;
1873
- z || (B = F);
1890
+ B || (Se = I);
1874
1891
  let t = Math.max(1, window.innerWidth / 2), n = Math.max(1, window.innerHeight / 2);
1875
1892
  A.setLook(jt({
1876
- nx: R ? b((R.x - (e.left + e.width / 2)) / t, -1, 1) : 0,
1877
- ny: R ? b((R.y - (e.top + e.height / 2)) / n, -1, 1) : 0,
1878
- tour: S.easeOutQuint(b((F - B) / Ot)),
1879
- pointer: R !== null
1880
- }), F), z = !0;
1893
+ nx: z ? b((z.x - (e.left + e.width / 2)) / t, -1, 1) : 0,
1894
+ ny: z ? b((z.y - (e.top + e.height / 2)) / n, -1, 1) : 0,
1895
+ tour: S.easeOutQuint(b((I - Se) / Ot)),
1896
+ pointer: z !== null
1897
+ }), I), B = !0;
1881
1898
  }
1882
- function Oe(e) {
1883
- A.setLook(e(F - ye), F, Ce);
1899
+ function Ee(e) {
1900
+ A.setLook(e(I - Ce), I, V);
1884
1901
  }
1885
- function V() {
1886
- window.removeEventListener("pointermove", we), document.removeEventListener("pointerleave", Te);
1902
+ function De() {
1903
+ window.removeEventListener("pointermove", H), document.removeEventListener("pointerleave", U);
1887
1904
  }
1888
- function ke(e) {
1889
- N = requestAnimationFrame(ke);
1890
- let t = pe ? Math.min((e - pe) / 1e3, .064) : 0;
1891
- pe = e, F += t, k() && (F >= P && y.cycle.length ? ge((O() + 1) % y.cycle.length) : ae(F - I)), y.follow ? De() : y.gaze && Oe(y.gaze), ue(A.sample(F));
1905
+ function Oe(e) {
1906
+ N = requestAnimationFrame(Oe);
1907
+ let t = F ? Math.min((e - F) / 1e3, .064) : 0;
1908
+ F = e, I += t;
1909
+ let n = y.fps && y.fps > 0 ? 1 / y.fps : 0;
1910
+ I - me < n || (me = I, k() && (I >= P && y.cycle.length ? ve((D() + 1) % y.cycle.length) : oe(I - he)), y.follow ? W() : y.gaze && Ee(y.gaze), de(A.sample(I)));
1892
1911
  }
1893
- function H() {
1894
- y.frozenAt !== void 0 && ue(A.sample(y.frozenAt));
1912
+ function G() {
1913
+ y.frozenAt !== void 0 && de(A.sample(y.frozenAt));
1895
1914
  }
1896
1915
  $(() => y.gaze, (e) => {
1897
- e ? (ye = F, Se = !0, A.setLook(e(0), F - Ce, Ce)) : Se &&= (A.setLook(null, F), !1);
1898
- }), $(O, (e) => {
1899
- L(e, me), me = 0;
1900
- }, { defer: !0 }), $(te, (e) => {
1901
- A.state !== e && (A.setState(e, F), H());
1916
+ e ? (Ce = I, we = !0, A.setLook(e(0), I - V, V)) : we &&= (A.setLook(null, I), !1);
1917
+ }), $(D, (e) => {
1918
+ L(e, ge), ge = 0;
1919
+ }, { defer: !0 }), $(O, (e) => {
1920
+ A.state !== e && (A.setState(e, I), G());
1902
1921
  }, { defer: !0 }), $(k, (e) => {
1903
- e ? L(O(), ne()) : P = Infinity;
1922
+ e ? L(D(), re()) : P = Infinity;
1904
1923
  }, { defer: !0 }), $(() => y.cycle, (e) => {
1905
1924
  if (!e.length) {
1906
1925
  P = Infinity;
1907
1926
  return;
1908
1927
  }
1909
- let t = Math.min(O(), e.length - 1);
1910
- t === O() ? P = k() ? I + e[t].duration : Infinity : ge(t);
1911
- }, { defer: !0 }), $(oe, (e) => {
1912
- A.setShape(e, F), H();
1913
- }, { defer: !0 }), $(ce, (e) => {
1914
- A.setExpression(e, F), H();
1915
- }, { defer: !0 }), $(() => y.frozenAt, H, { defer: !0 }), f(() => y.follow && y.frozenAt === void 0, (e) => {
1916
- e ? (window.addEventListener("pointermove", we), document.addEventListener("pointerleave", Te)) : (V(), Ee());
1928
+ let t = Math.min(D(), e.length - 1);
1929
+ if (t !== D()) ve(t);
1930
+ else if (e[t].state !== A.state) {
1931
+ let n = x.phase % e[t].duration;
1932
+ L(t, n, n);
1933
+ } else P = k() ? he + e[t].duration : Infinity;
1934
+ }, { defer: !0 }), $(se, (e) => {
1935
+ A.setShape(e, I), G();
1936
+ }, { defer: !0 }), $(le, (e) => {
1937
+ A.setExpression(e, I), G();
1938
+ }, { defer: !0 }), $(() => y.frozenAt, G, { defer: !0 }), f(() => y.follow && y.frozenAt === void 0, (e) => {
1939
+ e ? (window.addEventListener("pointermove", H), document.addEventListener("pointerleave", U)) : (De(), Te());
1940
+ });
1941
+ function K() {
1942
+ N || typeof requestAnimationFrame > "u" || (F = 0, N = requestAnimationFrame(Oe));
1943
+ }
1944
+ function ke() {
1945
+ N &&= (typeof cancelAnimationFrame < "u" && cancelAnimationFrame(N), 0);
1946
+ }
1947
+ let [Ae, je] = m(!0), [Me, Ne] = m(!0), [Pe, Fe] = m(!1);
1948
+ f(() => Pe() && y.frozenAt === void 0 && (!y.autoPause || Ae() && Me()), (e) => {
1949
+ e ? K() : ke();
1917
1950
  }), _(() => {
1918
- l.ref?.({
1951
+ if (l.ref?.({
1919
1952
  get svg() {
1920
1953
  return M;
1921
1954
  },
1922
- seek: _e,
1923
- renderAt: ve
1924
- }), y.frozenAt === void 0 && (L(O(), ne()), N = requestAnimationFrame(ke));
1955
+ seek: ye,
1956
+ renderAt: R
1957
+ }), y.frozenAt !== void 0) return;
1958
+ L(D(), re());
1959
+ let e = () => Ne(document.visibilityState !== "hidden");
1960
+ document.addEventListener("visibilitychange", e), e();
1961
+ let t = typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
1962
+ let t = e[e.length - 1];
1963
+ t && je(t.isIntersecting);
1964
+ });
1965
+ return t?.observe(M), Fe(!0), () => {
1966
+ document.removeEventListener("visibilitychange", e), t?.disconnect();
1967
+ };
1925
1968
  }), g(() => {
1926
- typeof cancelAnimationFrame < "u" && cancelAnimationFrame(N), typeof window < "u" && V();
1969
+ ke(), typeof window < "u" && De();
1927
1970
  });
1928
- function Ae(e) {
1971
+ function Ie(e) {
1929
1972
  let t = {
1930
- fill: e.color ?? (e.depth === void 0 ? se() : Ge(y.paper, se(), e.depth)),
1973
+ fill: e.color ?? (e.depth === void 0 ? ce() : Ge(y.paper, ce(), e.depth)),
1931
1974
  opacity: e.opacity
1932
1975
  };
1933
1976
  return e.d ? {
@@ -1941,30 +1984,32 @@ function ln(l) {
1941
1984
  r: e.r
1942
1985
  };
1943
1986
  }
1944
- let U = () => n(u, {
1987
+ let Le = () => n(u, {
1945
1988
  get each() {
1946
1989
  return j().dots;
1947
1990
  },
1991
+ keyed: !1,
1948
1992
  children: (t) => n(e, a({ get component() {
1949
- return t.d ? "path" : "circle";
1950
- } }, () => Ae(t)))
1993
+ return t().d ? "path" : "circle";
1994
+ } }, () => Ie(t())))
1951
1995
  });
1952
- var W = tn(), je = W.firstChild, G = je.firstChild, Me = G.firstChild, Ne = Me.nextSibling, Pe = Ne.nextSibling, Fe = je.nextSibling, Ie = Fe.nextSibling, K = Ie.firstChild, Le = K.nextSibling, q = Le.firstChild, Re = Ie.nextSibling, ze = Re.nextSibling, J = M;
1953
- return typeof J == "function" || Array.isArray(J) ? o(() => J, W) : M = W, s(W, "viewBox", "-158 -158 316 316"), s(G, "id", fe), s(G, "x", -158), s(G, "y", -158), s(G, "width", 316), s(G, "height", 316), i(G, n(u, {
1996
+ var q = tn(), Re = q.firstChild, J = Re.firstChild, ze = J.firstChild, He = ze.nextSibling, Y = He.nextSibling, X = Re.nextSibling, Ke = X.nextSibling, qe = Ke.firstChild, Je = qe.nextSibling, Ye = Je.firstChild, Xe = Ke.nextSibling, Ze = Xe.nextSibling, Qe = M;
1997
+ return typeof Qe == "function" || Array.isArray(Qe) ? o(() => Qe, q) : M = q, s(q, "viewBox", "-158 -158 316 316"), s(J, "id", pe), s(J, "x", -158), s(J, "y", -158), s(J, "width", 316), s(J, "height", 316), i(J, n(u, {
1954
1998
  get each() {
1955
1999
  return j().eyes;
1956
2000
  },
2001
+ keyed: !1,
1957
2002
  children: (e) => (() => {
1958
2003
  var t = nn();
1959
2004
  return r(() => ({
1960
- e: e.d,
1961
- t: e.matrix,
1962
- a: e.alpha
2005
+ e: e().d,
2006
+ t: e().matrix,
2007
+ a: e().alpha
1963
2008
  }), ({ e, t: n, a: r }, i) => {
1964
2009
  e !== i?.e && s(t, "d", e), n !== i?.t && s(t, "transform", n), r !== i?.a && s(t, "opacity", r);
1965
2010
  }), t;
1966
2011
  })()
1967
- }), Ne), i(G, n(d, {
2012
+ }), He), i(J, n(d, {
1968
2013
  get when() {
1969
2014
  return j().notch;
1970
2015
  },
@@ -1978,70 +2023,76 @@ function ln(l) {
1978
2023
  e !== i?.e && s(t, "cx", e), n !== i?.t && s(t, "cy", n), r !== i?.a && s(t, "r", r);
1979
2024
  }), t;
1980
2025
  })()
1981
- }), Pe), i(je, n(u, {
2026
+ }), Y), i(Re, n(u, {
1982
2027
  get each() {
1983
2028
  return j().arcs;
1984
2029
  },
2030
+ keyed: !1,
1985
2031
  children: (e) => (() => {
1986
2032
  var t = an();
1987
2033
  return i(t, n(u, {
1988
2034
  get each() {
1989
- return e.grad.stops;
2035
+ return e().grad.stops;
1990
2036
  },
2037
+ keyed: !1,
1991
2038
  children: (t, n) => (() => {
1992
2039
  var i = on();
1993
- return s(i, "stop-color", t), r(() => n() / (e.grad.stops.length - 1), (e) => {
1994
- s(i, "offset", e);
2040
+ return r(() => ({
2041
+ e: n / (e().grad.stops.length - 1),
2042
+ t: t()
2043
+ }), ({ e, t }, n) => {
2044
+ e !== n?.e && s(i, "offset", e), t !== n?.t && s(i, "stop-color", t);
1995
2045
  }), i;
1996
2046
  })()
1997
2047
  })), r(() => ({
1998
- e: `${de}-${e.id}`,
1999
- t: e.grad.x1,
2000
- a: e.grad.y1,
2001
- o: e.grad.x2,
2002
- i: e.grad.y2
2048
+ e: `${fe}-${e().id}`,
2049
+ t: e().grad.x1,
2050
+ a: e().grad.y1,
2051
+ o: e().grad.x2,
2052
+ i: e().grad.y2
2003
2053
  }), ({ e, t: n, a: r, o: i, i: a }, o) => {
2004
2054
  e !== o?.e && s(t, "id", e), n !== o?.t && s(t, "x1", n), r !== o?.a && s(t, "y1", r), i !== o?.o && s(t, "x2", i), a !== o?.i && s(t, "y2", a);
2005
2055
  }), t;
2006
2056
  })()
2007
- }), null), i(Fe, n(u, {
2057
+ }), null), i(X, n(u, {
2008
2058
  get each() {
2009
2059
  return j().arcs;
2010
2060
  },
2061
+ keyed: !1,
2011
2062
  children: (e) => (() => {
2012
2063
  var t = sn();
2013
2064
  return r(() => ({
2014
- e: e.back,
2015
- t: `url(#${de}-${e.id})`,
2016
- a: e.width,
2017
- o: e.opacity
2065
+ e: e().back,
2066
+ t: `url(#${fe}-${e().id})`,
2067
+ a: e().width,
2068
+ o: e().opacity
2018
2069
  }), ({ e, t: n, a: r, o: i }, a) => {
2019
2070
  e !== a?.e && s(t, "d", e), n !== a?.t && s(t, "stroke", n), r !== a?.a && s(t, "stroke-width", r), i !== a?.o && s(t, "opacity", i);
2020
2071
  }), t;
2021
2072
  })()
2022
- })), i(W, n(d, {
2073
+ })), i(q, n(d, {
2023
2074
  get when() {
2024
2075
  return j().dotsBehind;
2025
2076
  },
2026
2077
  get children() {
2027
2078
  var e = en();
2028
- return i(e, n(U, {})), e;
2079
+ return i(e, n(Le, {})), e;
2029
2080
  }
2030
- }), Fe.nextSibling), s(Le, "mask", `url(#${fe})`), s(q, "x", -158), s(q, "y", -158), s(q, "width", 316), s(q, "height", 316), i(W, n(d, {
2081
+ }), X.nextSibling), s(Je, "mask", `url(#${pe})`), s(Ye, "x", -158), s(Ye, "y", -158), s(Ye, "width", 316), s(Ye, "height", 316), i(q, n(d, {
2031
2082
  get when() {
2032
2083
  return !j().dotsBehind;
2033
2084
  },
2034
2085
  get children() {
2035
2086
  var e = en();
2036
- return i(e, n(U, {})), e;
2087
+ return i(e, n(Le, {})), e;
2037
2088
  }
2038
- }), Re), i(W, n(d, {
2089
+ }), Xe), i(q, n(d, {
2039
2090
  get when() {
2040
2091
  return j().notif;
2041
2092
  },
2042
2093
  children: (e) => (() => {
2043
2094
  var t = cn();
2044
- return s(t, "fill", le), r(() => ({
2095
+ return s(t, "fill", ue), r(() => ({
2045
2096
  e: e().x,
2046
2097
  t: e().y,
2047
2098
  a: e().r
@@ -2049,17 +2100,18 @@ function ln(l) {
2049
2100
  e !== i?.e && s(t, "cx", e), n !== i?.t && s(t, "cy", n), r !== i?.a && s(t, "r", r);
2050
2101
  }), t;
2051
2102
  })()
2052
- }), Re.nextSibling), i(ze, n(u, {
2103
+ }), Xe.nextSibling), i(Ze, n(u, {
2053
2104
  get each() {
2054
2105
  return j().arcs;
2055
2106
  },
2107
+ keyed: !1,
2056
2108
  children: (e) => (() => {
2057
2109
  var t = sn();
2058
2110
  return r(() => ({
2059
- e: e.front,
2060
- t: `url(#${de}-${e.id})`,
2061
- a: e.width,
2062
- o: e.opacity
2111
+ e: e().front,
2112
+ t: `url(#${fe}-${e().id})`,
2113
+ a: e().width,
2114
+ o: e().opacity
2063
2115
  }), ({ e, t: n, a: r, o: i }, a) => {
2064
2116
  e !== a?.e && s(t, "d", e), n !== a?.t && s(t, "stroke", n), r !== a?.a && s(t, "stroke-width", r), i !== a?.o && s(t, "opacity", i);
2065
2117
  }), t;
@@ -2074,10 +2126,10 @@ function ln(l) {
2074
2126
  s: j().bodyAlpha,
2075
2127
  h: j().bodyPath,
2076
2128
  r: y.paper,
2077
- d: se()
2129
+ d: ce()
2078
2130
  }), ({ e, t: n, a: r, o: i, i: a, n: o, s: l, h: u, r: d, d: f }, p) => {
2079
- e !== p?.e && s(W, "width", e), n !== p?.t && s(W, "height", n), r !== p?.a && s(W, "aria-label", r), t(W, i, p?.o), c(W, a, p?.i), o !== p?.n && s(Me, "d", o), l !== p?.s && s(Ie, "opacity", l), u !== p?.h && s(K, "d", u), d !== p?.r && s(K, "fill", d), f !== p?.d && s(q, "fill", f);
2080
- }), W;
2131
+ e !== p?.e && s(q, "width", e), n !== p?.t && s(q, "height", n), r !== p?.a && s(q, "aria-label", r), t(q, i, p?.o), c(q, a, p?.i), o !== p?.n && s(ze, "d", o), l !== p?.s && s(Ke, "opacity", l), u !== p?.h && s(qe, "d", u), d !== p?.r && s(qe, "fill", d), f !== p?.d && s(Ye, "fill", f);
2132
+ }), q;
2081
2133
  }
2082
2134
  //#endregion
2083
- export { ln as BloubBot, Dt as BotEngine, He as COLORS, Ue as COLOR_BY_ID, We as DEFAULT_COLOR, xe as DEFAULT_EXPRESSION, Ve as DEFAULT_SHAPE, $t as DEMI_VIEWBOX, ye as EXPRESSIONS, be as EXPRESSION_BY_ID, Nt as MAX_BLOCK, Pt as MAX_BLOCS, Ft as MAX_CYCLES, Mt as MIN_BLOCK, nt as POSES, Qt as RAYON, rt as SEQUENCE, J as SHAPES, Be as SHAPE_BY_ID, tt as STATES, Z as STATE_BY_ID, It as STEP, kt as TOUR_TIME, Ot as TURN_TIME, Ce as blendExpression, Wt as blockAt, Gt as blocksWith, zt as clampDuration, Vt as defaultCycle, jt as lookTarget, Bt as makeBlock, Rt as minDurationOf, Ge as mixHex, Kt as moveBlock, Jt as nextCycleId, Ut as offsetOf, Zt as parseCycles, Ht as totalDuration, At as tourLook, qt as uniqueName };
2135
+ export { ln as BloubBot, Dt as BotEngine, He as COLORS, Ue as COLOR_BY_ID, We as DEFAULT_COLOR, xe as DEFAULT_EXPRESSION, Ve as DEFAULT_SHAPE, $t as DEMI_VIEWBOX, B as EXPRESSIONS, be as EXPRESSION_BY_ID, Nt as MAX_BLOCK, Pt as MAX_BLOCS, Ft as MAX_CYCLES, Mt as MIN_BLOCK, nt as POSES, Qt as RAYON, rt as SEQUENCE, ze as SHAPES, Be as SHAPE_BY_ID, tt as STATES, Z as STATE_BY_ID, It as STEP, kt as TOUR_TIME, Ot as TURN_TIME, Ce as blendExpression, Wt as blockAt, Gt as blocksWith, zt as clampDuration, Vt as defaultCycle, jt as lookTarget, Bt as makeBlock, Rt as minDurationOf, Ge as mixHex, Kt as moveBlock, Jt as nextCycleId, Ut as offsetOf, Zt as parseCycles, Ht as totalDuration, At as tourLook, qt as uniqueName };