@curiouslearning/gdl-player-core 1.2.0 → 1.2.2

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.
@@ -1,46 +1,48 @@
1
- import { a as e, c as t, n, o as r, s as i } from "./utils-D1e5mIt_.js";
1
+ "use client";
2
+ import { a as e, n as t } from "./utils-B8vKMuMn.js";
3
+ import n, { useCallback as r, useEffect as i, useRef as a } from "react";
4
+ import { Fragment as o, jsx as s } from "react/jsx-runtime";
2
5
  //#region node_modules/@lottiefiles/dotlottie-web/dist/index.js
3
- var a = /* @__PURE__ */ t(i(), 1);
4
- function o(e) {
6
+ function c(e) {
5
7
  "@babel/helpers - typeof";
6
- return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
+ return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
9
  return typeof e;
8
10
  } : function(e) {
9
11
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
- }, o(e);
12
+ }, c(e);
11
13
  }
12
- function s(e, t) {
13
- if (o(e) != "object" || !e) return e;
14
+ function l(e, t) {
15
+ if (c(e) != "object" || !e) return e;
14
16
  var n = e[Symbol.toPrimitive];
15
17
  if (n !== void 0) {
16
18
  var r = n.call(e, t || "default");
17
- if (o(r) != "object") return r;
19
+ if (c(r) != "object") return r;
18
20
  throw TypeError("@@toPrimitive must return a primitive value.");
19
21
  }
20
22
  return (t === "string" ? String : Number)(e);
21
23
  }
22
- function c(e) {
23
- var t = s(e, "string");
24
- return o(t) == "symbol" ? t : t + "";
24
+ function u(e) {
25
+ var t = l(e, "string");
26
+ return c(t) == "symbol" ? t : t + "";
25
27
  }
26
- function l(e, t, n) {
27
- return (t = c(t)) in e ? Object.defineProperty(e, t, {
28
+ function d(e, t, n) {
29
+ return (t = u(t)) in e ? Object.defineProperty(e, t, {
28
30
  value: n,
29
31
  enumerable: !0,
30
32
  configurable: !0,
31
33
  writable: !0
32
34
  }) : e[t] = n, e;
33
35
  }
34
- var u = class {
36
+ var f = class {
35
37
  requestAnimationFrame(e) {
36
38
  return requestAnimationFrame(e);
37
39
  }
38
40
  cancelAnimationFrame(e) {
39
41
  cancelAnimationFrame(e);
40
42
  }
41
- }, d = class {
43
+ }, p = class {
42
44
  constructor() {
43
- l(this, "_lastHandleId", 0), l(this, "_lastImmediate", null);
45
+ d(this, "_lastHandleId", 0), d(this, "_lastImmediate", null);
44
46
  }
45
47
  requestAnimationFrame(e) {
46
48
  return this._lastHandleId >= 2 ** 53 - 1 && (this._lastHandleId = 0), this._lastHandleId += 1, this._lastImmediate = setImmediate(() => {
@@ -50,9 +52,9 @@ var u = class {
50
52
  cancelAnimationFrame(e) {
51
53
  this._lastImmediate && clearImmediate(this._lastImmediate);
52
54
  }
53
- }, f = class {
55
+ }, m = class {
54
56
  constructor() {
55
- l(this, "_strategy", void 0), this._strategy = typeof requestAnimationFrame == "function" ? new u() : new d();
57
+ d(this, "_strategy", void 0), this._strategy = typeof requestAnimationFrame == "function" ? new f() : new p();
56
58
  }
57
59
  requestAnimationFrame(e) {
58
60
  return this._strategy.requestAnimationFrame(e);
@@ -60,12 +62,12 @@ var u = class {
60
62
  cancelAnimationFrame(e) {
61
63
  this._strategy.cancelAnimationFrame(e);
62
64
  }
63
- }, p = typeof window < "u" && window.document !== void 0, m = new Uint8Array([
65
+ }, h = typeof window < "u" && window.document !== void 0, g = new Uint8Array([
64
66
  80,
65
67
  75,
66
68
  3,
67
69
  4
68
- ]), h = [
70
+ ]), _ = [
69
71
  "v",
70
72
  "ip",
71
73
  "op",
@@ -73,49 +75,49 @@ var u = class {
73
75
  "fr",
74
76
  "w",
75
77
  "h"
76
- ], g = "0.74.0", _ = "@lottiefiles/dotlottie-web", v, y = typeof TextDecoder < "u" ? new TextDecoder("utf-8", {
78
+ ], v = "0.74.0", y = "@lottiefiles/dotlottie-web", b, x = typeof TextDecoder < "u" ? new TextDecoder("utf-8", {
77
79
  ignoreBOM: !0,
78
80
  fatal: !0
79
81
  }) : { decode: () => {
80
82
  throw Error("TextDecoder not available");
81
83
  } };
82
- typeof TextDecoder < "u" && y.decode();
83
- var b = null;
84
- function x() {
85
- return (b === null || b.byteLength === 0) && (b = new Uint8Array(v.memory.buffer)), b;
84
+ typeof TextDecoder < "u" && x.decode();
85
+ var S = null;
86
+ function C() {
87
+ return (S === null || S.byteLength === 0) && (S = new Uint8Array(b.memory.buffer)), S;
86
88
  }
87
- function S(e, t) {
88
- return e >>>= 0, y.decode(x().subarray(e, e + t));
89
+ function w(e, t) {
90
+ return e >>>= 0, x.decode(C().subarray(e, e + t));
89
91
  }
90
- function C(e) {
91
- let t = v.__externref_table_alloc_command_export();
92
- return v.__wbindgen_export_3.set(t, e), t;
92
+ function T(e) {
93
+ let t = b.__externref_table_alloc_command_export();
94
+ return b.__wbindgen_export_3.set(t, e), t;
93
95
  }
94
- function w(e, t) {
96
+ function E(e, t) {
95
97
  try {
96
98
  return e.apply(this, t);
97
99
  } catch (e) {
98
- let t = C(e);
99
- v.__wbindgen_exn_store_command_export(t);
100
+ let t = T(e);
101
+ b.__wbindgen_exn_store_command_export(t);
100
102
  }
101
103
  }
102
- var T = 0, E = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
104
+ var D = 0, O = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
103
105
  throw Error("TextEncoder not available");
104
- } }, D = typeof E.encodeInto == "function" ? function(e, t) {
105
- return E.encodeInto(e, t);
106
+ } }, k = typeof O.encodeInto == "function" ? function(e, t) {
107
+ return O.encodeInto(e, t);
106
108
  } : function(e, t) {
107
- let n = E.encode(e);
109
+ let n = O.encode(e);
108
110
  return t.set(n), {
109
111
  read: e.length,
110
112
  written: n.length
111
113
  };
112
114
  };
113
- function O(e, t, n) {
115
+ function A(e, t, n) {
114
116
  if (n === void 0) {
115
- let n = E.encode(e), r = t(n.length, 1) >>> 0;
116
- return x().subarray(r, r + n.length).set(n), T = n.length, r;
117
+ let n = O.encode(e), r = t(n.length, 1) >>> 0;
118
+ return C().subarray(r, r + n.length).set(n), D = n.length, r;
117
119
  }
118
- let r = e.length, i = t(r, 1) >>> 0, a = x(), o = 0;
120
+ let r = e.length, i = t(r, 1) >>> 0, a = C(), o = 0;
119
121
  for (; o < r; o++) {
120
122
  let t = e.charCodeAt(o);
121
123
  if (t > 127) break;
@@ -123,43 +125,43 @@ function O(e, t, n) {
123
125
  }
124
126
  if (o !== r) {
125
127
  o !== 0 && (e = e.slice(o)), i = n(i, r, r = o + e.length * 3, 1) >>> 0;
126
- let t = x().subarray(i + o, i + r), a = D(e, t);
128
+ let t = C().subarray(i + o, i + r), a = k(e, t);
127
129
  o += a.written, i = n(i, r, o, 1) >>> 0;
128
130
  }
129
- return T = o, i;
131
+ return D = o, i;
130
132
  }
131
- var k = null;
132
- function A() {
133
- return (k === null || k.buffer.detached === !0 || k.buffer.detached === void 0 && k.buffer !== v.memory.buffer) && (k = new DataView(v.memory.buffer)), k;
133
+ var j = null;
134
+ function M() {
135
+ return (j === null || j.buffer.detached === !0 || j.buffer.detached === void 0 && j.buffer !== b.memory.buffer) && (j = new DataView(b.memory.buffer)), j;
134
136
  }
135
137
  function ee(e) {
136
138
  return e == null;
137
139
  }
138
- var j = null;
140
+ var N = null;
139
141
  function te() {
140
- return (j === null || j.byteLength === 0) && (j = new Float32Array(v.memory.buffer)), j;
142
+ return (N === null || N.byteLength === 0) && (N = new Float32Array(b.memory.buffer)), N;
141
143
  }
142
144
  function ne(e, t) {
143
145
  let n = t(e.length * 4, 4) >>> 0;
144
- return te().set(e, n / 4), T = e.length, n;
146
+ return te().set(e, n / 4), D = e.length, n;
145
147
  }
146
- function M(e, t) {
148
+ function P(e, t) {
147
149
  let n = t(e.length * 1, 1) >>> 0;
148
- return x().set(e, n / 1), T = e.length, n;
150
+ return C().set(e, n / 1), D = e.length, n;
149
151
  }
150
152
  function re(e, t) {
151
153
  let n = t(e.length * 4, 4) >>> 0;
152
154
  for (let t = 0; t < e.length; t++) {
153
- let r = C(e[t]);
154
- A().setUint32(n + 4 * t, r, !0);
155
+ let r = T(e[t]);
156
+ M().setUint32(n + 4 * t, r, !0);
155
157
  }
156
- return T = e.length, n;
158
+ return D = e.length, n;
157
159
  }
158
160
  function ie(e, t) {
159
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T, i = M(t, v.__wbindgen_malloc_command_export), a = T;
160
- return v.register_font(n, r, i, a) !== 0;
161
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D, i = P(t, b.__wbindgen_malloc_command_export), a = D;
162
+ return b.register_font(n, r, i, a) !== 0;
161
163
  }
162
- var N = Object.freeze({
164
+ var F = Object.freeze({
163
165
  Forward: 0,
164
166
  0: "Forward",
165
167
  Reverse: 1,
@@ -168,437 +170,437 @@ var N = Object.freeze({
168
170
  2: "Bounce",
169
171
  ReverseBounce: 3,
170
172
  3: "ReverseBounce"
171
- }), P = typeof FinalizationRegistry > "u" ? {
173
+ }), ae = typeof FinalizationRegistry > "u" ? {
172
174
  register: () => {},
173
175
  unregister: () => {}
174
- } : new FinalizationRegistry((e) => v.__wbg_dotlottieplayerwasm_free(e >>> 0, 1)), ae = class {
176
+ } : new FinalizationRegistry((e) => b.__wbg_dotlottieplayerwasm_free(e >>> 0, 1)), oe = class {
175
177
  __destroy_into_raw() {
176
178
  let e = this.__wbg_ptr;
177
- return this.__wbg_ptr = 0, P.unregister(this), e;
179
+ return this.__wbg_ptr = 0, ae.unregister(this), e;
178
180
  }
179
181
  free() {
180
182
  let e = this.__destroy_into_raw();
181
- v.__wbg_dotlottieplayerwasm_free(e, 0);
183
+ b.__wbg_dotlottieplayerwasm_free(e, 0);
182
184
  }
183
185
  clear_slot(e) {
184
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
185
- return v.dotlottieplayerwasm_clear_slot(this.__wbg_ptr, t, n) !== 0;
186
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
187
+ return b.dotlottieplayerwasm_clear_slot(this.__wbg_ptr, t, n) !== 0;
186
188
  }
187
189
  is_playing() {
188
- return v.dotlottieplayerwasm_is_playing(this.__wbg_ptr) !== 0;
190
+ return b.dotlottieplayerwasm_is_playing(this.__wbg_ptr) !== 0;
189
191
  }
190
192
  is_stopped() {
191
- return v.dotlottieplayerwasm_is_stopped(this.__wbg_ptr) !== 0;
193
+ return b.dotlottieplayerwasm_is_stopped(this.__wbg_ptr) !== 0;
192
194
  }
193
195
  layout_fit() {
194
196
  let e, t;
195
197
  try {
196
- let n = v.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);
197
- return e = n[0], t = n[1], S(n[0], n[1]);
198
+ let n = b.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);
199
+ return e = n[0], t = n[1], w(n[0], n[1]);
198
200
  } finally {
199
- v.__wbindgen_free_command_export(e, t, 1);
201
+ b.__wbindgen_free_command_export(e, t, 1);
200
202
  }
201
203
  }
202
204
  loop_count() {
203
- return v.dotlottieplayerwasm_loop_count(this.__wbg_ptr) >>> 0;
205
+ return b.dotlottieplayerwasm_loop_count(this.__wbg_ptr) >>> 0;
204
206
  }
205
207
  poll_event() {
206
- return v.dotlottieplayerwasm_poll_event(this.__wbg_ptr);
208
+ return b.dotlottieplayerwasm_poll_event(this.__wbg_ptr);
207
209
  }
208
210
  reset_slot(e) {
209
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
210
- return v.dotlottieplayerwasm_reset_slot(this.__wbg_ptr, t, n) !== 0;
211
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
212
+ return b.dotlottieplayerwasm_reset_slot(this.__wbg_ptr, t, n) !== 0;
211
213
  }
212
214
  set_layout(e, t, n) {
213
- let r = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), i = T;
214
- return v.dotlottieplayerwasm_set_layout(this.__wbg_ptr, r, i, t, n) !== 0;
215
+ let r = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), i = D;
216
+ return b.dotlottieplayerwasm_set_layout(this.__wbg_ptr, r, i, t, n) !== 0;
215
217
  }
216
218
  set_marker(e) {
217
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
218
- v.dotlottieplayerwasm_set_marker(this.__wbg_ptr, t, n);
219
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
220
+ b.dotlottieplayerwasm_set_marker(this.__wbg_ptr, t, n);
219
221
  }
220
222
  clear_slots() {
221
- return v.dotlottieplayerwasm_clear_slots(this.__wbg_ptr) !== 0;
223
+ return b.dotlottieplayerwasm_clear_slots(this.__wbg_ptr) !== 0;
222
224
  }
223
225
  is_complete() {
224
- return v.dotlottieplayerwasm_is_complete(this.__wbg_ptr) !== 0;
226
+ return b.dotlottieplayerwasm_is_complete(this.__wbg_ptr) !== 0;
225
227
  }
226
228
  is_tweening() {
227
- return v.dotlottieplayerwasm_is_tweening(this.__wbg_ptr) !== 0;
229
+ return b.dotlottieplayerwasm_is_tweening(this.__wbg_ptr) !== 0;
228
230
  }
229
231
  reset_slots() {
230
- return v.dotlottieplayerwasm_reset_slots(this.__wbg_ptr) !== 0;
232
+ return b.dotlottieplayerwasm_reset_slots(this.__wbg_ptr) !== 0;
231
233
  }
232
234
  reset_theme() {
233
- return v.dotlottieplayerwasm_reset_theme(this.__wbg_ptr) !== 0;
235
+ return b.dotlottieplayerwasm_reset_theme(this.__wbg_ptr) !== 0;
234
236
  }
235
237
  segment_end() {
236
- return v.dotlottieplayerwasm_segment_end(this.__wbg_ptr);
238
+ return b.dotlottieplayerwasm_segment_end(this.__wbg_ptr);
237
239
  }
238
240
  set_quality(e) {
239
- return v.dotlottieplayerwasm_set_quality(this.__wbg_ptr, e) !== 0;
241
+ return b.dotlottieplayerwasm_set_quality(this.__wbg_ptr, e) !== 0;
240
242
  }
241
243
  set_segment(e, t) {
242
- return v.dotlottieplayerwasm_set_segment(this.__wbg_ptr, e, t) !== 0;
244
+ return b.dotlottieplayerwasm_set_segment(this.__wbg_ptr, e, t) !== 0;
243
245
  }
244
246
  static unload_font(e) {
245
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
246
- return v.dotlottieplayerwasm_unload_font(t, n) !== 0;
247
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
248
+ return b.dotlottieplayerwasm_unload_font(t, n) !== 0;
247
249
  }
248
250
  animation_id() {
249
- let e = v.dotlottieplayerwasm_animation_id(this.__wbg_ptr), t;
250
- return e[0] !== 0 && (t = S(e[0], e[1]).slice(), v.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
251
+ let e = b.dotlottieplayerwasm_animation_id(this.__wbg_ptr), t;
252
+ return e[0] !== 0 && (t = w(e[0], e[1]).slice(), b.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
251
253
  }
252
254
  audio_volume() {
253
- return v.dotlottieplayerwasm_audio_volume(this.__wbg_ptr);
255
+ return b.dotlottieplayerwasm_audio_volume(this.__wbg_ptr);
254
256
  }
255
257
  background_a() {
256
- return v.dotlottieplayerwasm_background_a(this.__wbg_ptr);
258
+ return b.dotlottieplayerwasm_background_a(this.__wbg_ptr);
257
259
  }
258
260
  background_b() {
259
- return v.dotlottieplayerwasm_background_b(this.__wbg_ptr);
261
+ return b.dotlottieplayerwasm_background_b(this.__wbg_ptr);
260
262
  }
261
263
  background_g() {
262
- return v.dotlottieplayerwasm_background_g(this.__wbg_ptr);
264
+ return b.dotlottieplayerwasm_background_g(this.__wbg_ptr);
263
265
  }
264
266
  background_r() {
265
- return v.dotlottieplayerwasm_background_r(this.__wbg_ptr);
267
+ return b.dotlottieplayerwasm_background_r(this.__wbg_ptr);
266
268
  }
267
269
  clear_marker() {
268
- v.dotlottieplayerwasm_clear_marker(this.__wbg_ptr);
270
+ b.dotlottieplayerwasm_clear_marker(this.__wbg_ptr);
269
271
  }
270
272
  emit_on_loop() {
271
- v.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr);
273
+ b.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr);
272
274
  }
273
275
  get_slot_ids() {
274
- return v.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr);
276
+ return b.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr);
275
277
  }
276
278
  get_slot_str(e) {
277
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T, r = v.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr, t, n), i;
278
- return r[0] !== 0 && (i = S(r[0], r[1]).slice(), v.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
279
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D, r = b.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr, t, n), i;
280
+ return r[0] !== 0 && (i = w(r[0], r[1]).slice(), b.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
279
281
  }
280
282
  marker_names() {
281
- return v.dotlottieplayerwasm_marker_names(this.__wbg_ptr);
283
+ return b.dotlottieplayerwasm_marker_names(this.__wbg_ptr);
282
284
  }
283
285
  set_autoplay(e) {
284
- v.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr, e);
286
+ b.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr, e);
285
287
  }
286
288
  set_slot_str(e, t) {
287
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T, i = O(t, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), a = T;
288
- return v.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr, n, r, i, a) !== 0;
289
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D, i = A(t, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), a = D;
290
+ return b.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr, n, r, i, a) !== 0;
289
291
  }
290
292
  set_viewport(e, t, n, r) {
291
- return v.dotlottieplayerwasm_set_viewport(this.__wbg_ptr, e, t, n, r) !== 0;
293
+ return b.dotlottieplayerwasm_set_viewport(this.__wbg_ptr, e, t, n, r) !== 0;
292
294
  }
293
295
  total_frames() {
294
- return v.dotlottieplayerwasm_total_frames(this.__wbg_ptr);
296
+ return b.dotlottieplayerwasm_total_frames(this.__wbg_ptr);
295
297
  }
296
298
  clear_segment() {
297
- return v.dotlottieplayerwasm_clear_segment(this.__wbg_ptr) !== 0;
299
+ return b.dotlottieplayerwasm_clear_segment(this.__wbg_ptr) !== 0;
298
300
  }
299
301
  current_frame() {
300
- return v.dotlottieplayerwasm_current_frame(this.__wbg_ptr);
302
+ return b.dotlottieplayerwasm_current_frame(this.__wbg_ptr);
301
303
  }
302
304
  get_slot_type(e) {
303
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T, r = v.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr, t, n), i;
304
- return r[0] !== 0 && (i = S(r[0], r[1]).slice(), v.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
305
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D, r = b.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr, t, n), i;
306
+ return r[0] !== 0 && (i = w(r[0], r[1]).slice(), b.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
305
307
  }
306
308
  get_slots_str() {
307
309
  let e, t;
308
310
  try {
309
- let n = v.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);
310
- return e = n[0], t = n[1], S(n[0], n[1]);
311
+ let n = b.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);
312
+ return e = n[0], t = n[1], w(n[0], n[1]);
311
313
  } finally {
312
- v.__wbindgen_free_command_export(e, t, 1);
314
+ b.__wbindgen_free_command_export(e, t, 1);
313
315
  }
314
316
  }
315
317
  get_transform() {
316
- return v.dotlottieplayerwasm_get_transform(this.__wbg_ptr);
318
+ return b.dotlottieplayerwasm_get_transform(this.__wbg_ptr);
317
319
  }
318
320
  segment_start() {
319
- return v.dotlottieplayerwasm_segment_start(this.__wbg_ptr);
321
+ return b.dotlottieplayerwasm_segment_start(this.__wbg_ptr);
320
322
  }
321
323
  set_slots_str(e) {
322
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
323
- return v.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr, t, n) !== 0;
324
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
325
+ return b.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr, t, n) !== 0;
324
326
  }
325
327
  set_text_slot(e, t) {
326
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T, i = O(t, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), a = T;
327
- return v.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr, n, r, i, a) !== 0;
328
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D, i = A(t, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), a = D;
329
+ return b.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr, n, r, i, a) !== 0;
328
330
  }
329
331
  set_transform(e) {
330
- let t = ne(e, v.__wbindgen_malloc_command_export), n = T;
331
- return v.dotlottieplayerwasm_set_transform(this.__wbg_ptr, t, n) !== 0;
332
+ let t = ne(e, b.__wbindgen_malloc_command_export), n = D;
333
+ return b.dotlottieplayerwasm_set_transform(this.__wbg_ptr, t, n) !== 0;
332
334
  }
333
335
  sm_get_inputs() {
334
- return v.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr);
336
+ return b.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr);
335
337
  }
336
338
  sm_poll_event() {
337
- return v.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr);
339
+ return b.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr);
338
340
  }
339
341
  sm_post_click(e, t) {
340
- v.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr, e, t);
342
+ b.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr, e, t);
341
343
  }
342
344
  animation_size() {
343
- return v.dotlottieplayerwasm_animation_size(this.__wbg_ptr);
345
+ return b.dotlottieplayerwasm_animation_size(this.__wbg_ptr);
344
346
  }
345
347
  current_marker() {
346
- let e = v.dotlottieplayerwasm_current_marker(this.__wbg_ptr), t;
347
- return e[0] !== 0 && (t = S(e[0], e[1]).slice(), v.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
348
+ let e = b.dotlottieplayerwasm_current_marker(this.__wbg_ptr), t;
349
+ return e[0] !== 0 && (t = w(e[0], e[1]).slice(), b.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
348
350
  }
349
351
  layout_align_x() {
350
- return v.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr);
352
+ return b.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr);
351
353
  }
352
354
  layout_align_y() {
353
- return v.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr);
355
+ return b.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr);
354
356
  }
355
357
  load_animation(e) {
356
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
357
- return v.dotlottieplayerwasm_load_animation(this.__wbg_ptr, t, n) !== 0;
358
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
359
+ return b.dotlottieplayerwasm_load_animation(this.__wbg_ptr, t, n) !== 0;
358
360
  }
359
361
  loop_animation() {
360
- return v.dotlottieplayerwasm_loop_animation(this.__wbg_ptr) !== 0;
362
+ return b.dotlottieplayerwasm_loop_animation(this.__wbg_ptr) !== 0;
361
363
  }
362
364
  set_background(e, t, n, r) {
363
- return v.dotlottieplayerwasm_set_background(this.__wbg_ptr, e, t, n, r) !== 0;
365
+ return b.dotlottieplayerwasm_set_background(this.__wbg_ptr, e, t, n, r) !== 0;
364
366
  }
365
367
  set_color_slot(e, t, n, r) {
366
- let i = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), a = T;
367
- return v.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr, i, a, t, n, r) !== 0;
368
+ let i = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), a = D;
369
+ return b.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr, i, a, t, n, r) !== 0;
368
370
  }
369
371
  set_loop_count(e) {
370
- v.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr, e);
372
+ b.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr, e);
371
373
  }
372
374
  set_theme_data(e) {
373
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
374
- return v.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr, t, n) !== 0;
375
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
376
+ return b.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr, t, n) !== 0;
375
377
  }
376
378
  sm_reset_input(e) {
377
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
378
- v.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr, t, n);
379
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
380
+ b.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr, t, n);
379
381
  }
380
382
  manifest_string() {
381
383
  let e, t;
382
384
  try {
383
- let n = v.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);
384
- return e = n[0], t = n[1], S(n[0], n[1]);
385
+ let n = b.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);
386
+ return e = n[0], t = n[1], w(n[0], n[1]);
385
387
  } finally {
386
- v.__wbindgen_free_command_export(e, t, 1);
388
+ b.__wbindgen_free_command_export(e, t, 1);
387
389
  }
388
390
  }
389
391
  set_scalar_slot(e, t) {
390
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T;
391
- return v.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr, n, r, t) !== 0;
392
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D;
393
+ return b.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr, n, r, t) !== 0;
392
394
  }
393
395
  set_vector_slot(e, t, n) {
394
- let r = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), i = T;
395
- return v.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr, r, i, t, n) !== 0;
396
+ let r = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), i = D;
397
+ return b.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr, r, i, t, n) !== 0;
396
398
  }
397
399
  setup_sw_target(e, t) {
398
- return v.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr, e, t) !== 0;
400
+ return b.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr, e, t) !== 0;
399
401
  }
400
402
  get_pixel_buffer() {
401
- return v.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr);
403
+ return b.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr);
402
404
  }
403
405
  set_audio_volume(e) {
404
- v.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr, e);
406
+ b.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr, e);
405
407
  }
406
408
  sm_current_state() {
407
409
  let e, t;
408
410
  try {
409
- let n = v.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);
410
- return e = n[0], t = n[1], S(n[0], n[1]);
411
+ let n = b.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);
412
+ return e = n[0], t = n[1], w(n[0], n[1]);
411
413
  } finally {
412
- v.__wbindgen_free_command_export(e, t, 1);
414
+ b.__wbindgen_free_command_export(e, t, 1);
413
415
  }
414
416
  }
415
417
  state_machine_id() {
416
- let e = v.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr), t;
417
- return e[0] !== 0 && (t = S(e[0], e[1]).slice(), v.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
418
+ let e = b.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr), t;
419
+ return e[0] !== 0 && (t = w(e[0], e[1]).slice(), b.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
418
420
  }
419
421
  get_state_machine(e) {
420
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T, r = v.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr, t, n), i;
421
- return r[0] !== 0 && (i = S(r[0], r[1]).slice(), v.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
422
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D, r = b.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr, t, n), i;
423
+ return r[0] !== 0 && (i = w(r[0], r[1]).slice(), b.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
422
424
  }
423
425
  set_position_slot(e, t, n) {
424
- let r = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), i = T;
425
- return v.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr, r, i, t, n) !== 0;
426
+ let r = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), i = D;
427
+ return b.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr, r, i, t, n) !== 0;
426
428
  }
427
429
  current_loop_count() {
428
- return v.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr) >>> 0;
430
+ return b.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr) >>> 0;
429
431
  }
430
432
  sm_framework_setup() {
431
- return v.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr);
433
+ return b.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr);
432
434
  }
433
435
  sm_post_pointer_up(e, t) {
434
- v.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr, e, t);
436
+ b.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr, e, t);
435
437
  }
436
438
  state_machine_load(e) {
437
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
438
- return v.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr, t, n) !== 0;
439
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
440
+ return b.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr, t, n) !== 0;
439
441
  }
440
442
  load_dotlottie_data(e) {
441
- let t = M(e, v.__wbindgen_malloc_command_export), n = T;
442
- return v.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr, t, n) !== 0;
443
+ let t = P(e, b.__wbindgen_malloc_command_export), n = D;
444
+ return b.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr, t, n) !== 0;
443
445
  }
444
446
  sm_get_string_input(e) {
445
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T, r = v.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr, t, n), i;
446
- return r[0] !== 0 && (i = S(r[0], r[1]).slice(), v.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
447
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D, r = b.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr, t, n), i;
448
+ return r[0] !== 0 && (i = w(r[0], r[1]).slice(), b.__wbindgen_free_command_export(r[0], r[1] * 1, 1)), i;
447
449
  }
448
450
  sm_set_string_input(e, t) {
449
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T, i = O(t, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), a = T;
450
- return v.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr, n, r, i, a) !== 0;
451
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D, i = A(t, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), a = D;
452
+ return b.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr, n, r, i, a) !== 0;
451
453
  }
452
454
  sm_get_boolean_input(e) {
453
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T, r = v.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr, t, n);
455
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D, r = b.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr, t, n);
454
456
  return r === 16777215 ? void 0 : r !== 0;
455
457
  }
456
458
  sm_get_numeric_input(e) {
457
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T, r = v.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr, t, n);
459
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D, r = b.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr, t, n);
458
460
  return r === 4294967297 ? void 0 : r;
459
461
  }
460
462
  sm_post_pointer_down(e, t) {
461
- v.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr, e, t);
463
+ b.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr, e, t);
462
464
  }
463
465
  sm_post_pointer_exit(e, t) {
464
- v.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr, e, t);
466
+ b.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr, e, t);
465
467
  }
466
468
  sm_post_pointer_move(e, t) {
467
- v.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr, e, t);
469
+ b.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr, e, t);
468
470
  }
469
471
  sm_set_boolean_input(e, t) {
470
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T;
471
- return v.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr, n, r, t) !== 0;
472
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D;
473
+ return b.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr, n, r, t) !== 0;
472
474
  }
473
475
  sm_set_numeric_input(e, t) {
474
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T;
475
- return v.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr, n, r, t) !== 0;
476
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D;
477
+ return b.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr, n, r, t) !== 0;
476
478
  }
477
479
  state_machine_unload() {
478
- v.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr);
480
+ b.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr);
479
481
  }
480
482
  sm_post_pointer_enter(e, t) {
481
- v.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr, e, t);
483
+ b.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr, e, t);
482
484
  }
483
485
  load_animation_from_id(e) {
484
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
485
- return v.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr, t, n) !== 0;
486
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
487
+ return b.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr, t, n) !== 0;
486
488
  }
487
489
  sm_poll_internal_event() {
488
- return v.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr);
490
+ return b.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr);
489
491
  }
490
492
  use_frame_interpolation() {
491
- return v.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr) !== 0;
493
+ return b.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr) !== 0;
492
494
  }
493
495
  reset_current_loop_count() {
494
- v.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr);
496
+ b.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr);
495
497
  }
496
498
  sm_override_current_state(e, t) {
497
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T;
498
- return v.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr, n, r, t) !== 0;
499
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D;
500
+ return b.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr, n, r, t) !== 0;
499
501
  }
500
502
  state_machine_load_from_id(e) {
501
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
502
- return v.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr, t, n) !== 0;
503
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
504
+ return b.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr, t, n) !== 0;
503
505
  }
504
506
  set_use_frame_interpolation(e) {
505
- v.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr, e);
507
+ b.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr, e);
506
508
  }
507
509
  constructor() {
508
- let e = v.dotlottieplayerwasm_new();
509
- return this.__wbg_ptr = e >>> 0, P.register(this, this.__wbg_ptr, this), this;
510
+ let e = b.dotlottieplayerwasm_new();
511
+ return this.__wbg_ptr = e >>> 0, ae.register(this, this.__wbg_ptr, this), this;
510
512
  }
511
513
  mode() {
512
- return v.dotlottieplayerwasm_mode(this.__wbg_ptr);
514
+ return b.dotlottieplayerwasm_mode(this.__wbg_ptr);
513
515
  }
514
516
  play() {
515
- return v.dotlottieplayerwasm_play(this.__wbg_ptr) !== 0;
517
+ return b.dotlottieplayerwasm_play(this.__wbg_ptr) !== 0;
516
518
  }
517
519
  stop() {
518
- return v.dotlottieplayerwasm_stop(this.__wbg_ptr) !== 0;
520
+ return b.dotlottieplayerwasm_stop(this.__wbg_ptr) !== 0;
519
521
  }
520
522
  tick(e) {
521
- return v.dotlottieplayerwasm_tick(this.__wbg_ptr, e) !== 0;
523
+ return b.dotlottieplayerwasm_tick(this.__wbg_ptr, e) !== 0;
522
524
  }
523
525
  pause() {
524
- return v.dotlottieplayerwasm_pause(this.__wbg_ptr) !== 0;
526
+ return b.dotlottieplayerwasm_pause(this.__wbg_ptr) !== 0;
525
527
  }
526
528
  speed() {
527
- return v.dotlottieplayerwasm_speed(this.__wbg_ptr);
529
+ return b.dotlottieplayerwasm_speed(this.__wbg_ptr);
528
530
  }
529
531
  width() {
530
- return v.dotlottieplayerwasm_width(this.__wbg_ptr) >>> 0;
532
+ return b.dotlottieplayerwasm_width(this.__wbg_ptr) >>> 0;
531
533
  }
532
534
  height() {
533
- return v.dotlottieplayerwasm_height(this.__wbg_ptr) >>> 0;
535
+ return b.dotlottieplayerwasm_height(this.__wbg_ptr) >>> 0;
534
536
  }
535
537
  render() {
536
- return v.dotlottieplayerwasm_render(this.__wbg_ptr) !== 0;
538
+ return b.dotlottieplayerwasm_render(this.__wbg_ptr) !== 0;
537
539
  }
538
540
  markers() {
539
- return v.dotlottieplayerwasm_markers(this.__wbg_ptr);
541
+ return b.dotlottieplayerwasm_markers(this.__wbg_ptr);
540
542
  }
541
543
  sm_fire(e) {
542
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
543
- return v.dotlottieplayerwasm_sm_fire(this.__wbg_ptr, t, n) !== 0;
544
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
545
+ return b.dotlottieplayerwasm_sm_fire(this.__wbg_ptr, t, n) !== 0;
544
546
  }
545
547
  sm_stop() {
546
- return v.dotlottieplayerwasm_sm_stop(this.__wbg_ptr) !== 0;
548
+ return b.dotlottieplayerwasm_sm_stop(this.__wbg_ptr) !== 0;
547
549
  }
548
550
  sm_tick(e) {
549
- return v.dotlottieplayerwasm_sm_tick(this.__wbg_ptr, e) !== 0;
551
+ return b.dotlottieplayerwasm_sm_tick(this.__wbg_ptr, e) !== 0;
550
552
  }
551
553
  autoplay() {
552
- return v.dotlottieplayerwasm_autoplay(this.__wbg_ptr) !== 0;
554
+ return b.dotlottieplayerwasm_autoplay(this.__wbg_ptr) !== 0;
553
555
  }
554
556
  duration() {
555
- return v.dotlottieplayerwasm_duration(this.__wbg_ptr);
557
+ return b.dotlottieplayerwasm_duration(this.__wbg_ptr);
556
558
  }
557
559
  set_loop(e) {
558
- v.dotlottieplayerwasm_set_loop(this.__wbg_ptr, e);
560
+ b.dotlottieplayerwasm_set_loop(this.__wbg_ptr, e);
559
561
  }
560
562
  set_mode(e) {
561
- v.dotlottieplayerwasm_set_mode(this.__wbg_ptr, e);
563
+ b.dotlottieplayerwasm_set_mode(this.__wbg_ptr, e);
562
564
  }
563
565
  sm_start(e, t) {
564
- let n = re(t, v.__wbindgen_malloc_command_export), r = T;
565
- return v.dotlottieplayerwasm_sm_start(this.__wbg_ptr, e, n, r) !== 0;
566
+ let n = re(t, b.__wbindgen_malloc_command_export), r = D;
567
+ return b.dotlottieplayerwasm_sm_start(this.__wbg_ptr, e, n, r) !== 0;
566
568
  }
567
569
  theme_id() {
568
- let e = v.dotlottieplayerwasm_theme_id(this.__wbg_ptr), t;
569
- return e[0] !== 0 && (t = S(e[0], e[1]).slice(), v.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
570
+ let e = b.dotlottieplayerwasm_theme_id(this.__wbg_ptr), t;
571
+ return e[0] !== 0 && (t = w(e[0], e[1]).slice(), b.__wbindgen_free_command_export(e[0], e[1] * 1, 1)), t;
570
572
  }
571
573
  is_loaded() {
572
- return v.dotlottieplayerwasm_is_loaded(this.__wbg_ptr) !== 0;
574
+ return b.dotlottieplayerwasm_is_loaded(this.__wbg_ptr) !== 0;
573
575
  }
574
576
  is_paused() {
575
- return v.dotlottieplayerwasm_is_paused(this.__wbg_ptr) !== 0;
577
+ return b.dotlottieplayerwasm_is_paused(this.__wbg_ptr) !== 0;
576
578
  }
577
579
  load_font(e, t) {
578
- let n = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), r = T, i = M(t, v.__wbindgen_malloc_command_export), a = T;
579
- return v.dotlottieplayerwasm_load_font(this.__wbg_ptr, n, r, i, a) !== 0;
580
+ let n = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), r = D, i = P(t, b.__wbindgen_malloc_command_export), a = D;
581
+ return b.dotlottieplayerwasm_load_font(this.__wbg_ptr, n, r, i, a) !== 0;
580
582
  }
581
583
  set_frame(e) {
582
- return v.dotlottieplayerwasm_set_frame(this.__wbg_ptr, e) !== 0;
584
+ return b.dotlottieplayerwasm_set_frame(this.__wbg_ptr, e) !== 0;
583
585
  }
584
586
  set_speed(e) {
585
- v.dotlottieplayerwasm_set_speed(this.__wbg_ptr, e);
587
+ b.dotlottieplayerwasm_set_speed(this.__wbg_ptr, e);
586
588
  }
587
589
  set_theme(e) {
588
- let t = O(e, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), n = T;
589
- return v.dotlottieplayerwasm_set_theme(this.__wbg_ptr, t, n) !== 0;
590
+ let t = A(e, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), n = D;
591
+ return b.dotlottieplayerwasm_set_theme(this.__wbg_ptr, t, n) !== 0;
590
592
  }
591
593
  sm_status() {
592
594
  let e, t;
593
595
  try {
594
- let n = v.dotlottieplayerwasm_sm_status(this.__wbg_ptr);
595
- return e = n[0], t = n[1], S(n[0], n[1]);
596
+ let n = b.dotlottieplayerwasm_sm_status(this.__wbg_ptr);
597
+ return e = n[0], t = n[1], w(n[0], n[1]);
596
598
  } finally {
597
- v.__wbindgen_free_command_export(e, t, 1);
599
+ b.__wbindgen_free_command_export(e, t, 1);
598
600
  }
599
601
  }
600
602
  };
601
- async function oe(e, t) {
603
+ async function se(e, t) {
602
604
  if (typeof Response == "function" && e instanceof Response) {
603
605
  if (typeof WebAssembly.instantiateStreaming == "function") try {
604
606
  return await WebAssembly.instantiateStreaming(e, t);
@@ -616,16 +618,16 @@ async function oe(e, t) {
616
618
  } : n;
617
619
  }
618
620
  }
619
- function se() {
621
+ function ce() {
620
622
  let e = {};
621
623
  return e.wbg = {}, e.wbg.__wbg_buffer_609cc3eee51ed158 = function(e) {
622
624
  return e.buffer;
623
625
  }, e.wbg.__wbg_error_7534b8e9a36f1ab4 = function(e, t) {
624
626
  let n, r;
625
627
  try {
626
- n = e, r = t, console.error(S(e, t));
628
+ n = e, r = t, console.error(w(e, t));
627
629
  } finally {
628
- v.__wbindgen_free_command_export(n, r, 1);
630
+ b.__wbindgen_free_command_export(n, r, 1);
629
631
  }
630
632
  }, e.wbg.__wbg_new_405e22f390576ce2 = function() {
631
633
  return {};
@@ -640,45 +642,45 @@ function se() {
640
642
  }, e.wbg.__wbg_push_737cfc8c1432c2c6 = function(e, t) {
641
643
  return e.push(t);
642
644
  }, e.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
643
- return w(function(e, t, n) {
645
+ return E(function(e, t, n) {
644
646
  return Reflect.set(e, t, n);
645
647
  }, arguments);
646
648
  }, e.wbg.__wbg_setindex_4e73afdcd9bb95cd = function(e, t, n) {
647
649
  e[t >>> 0] = n;
648
650
  }, e.wbg.__wbg_stack_0ed75d68575b0f3c = function(e, t) {
649
- let n = t.stack, r = O(n, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), i = T;
650
- A().setInt32(e + 4, i, !0), A().setInt32(e + 0, r, !0);
651
+ let n = t.stack, r = A(n, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), i = D;
652
+ M().setInt32(e + 4, i, !0), M().setInt32(e + 0, r, !0);
651
653
  }, e.wbg.__wbindgen_init_externref_table = function() {
652
- let e = v.__wbindgen_export_3, t = e.grow(4);
654
+ let e = b.__wbindgen_export_3, t = e.grow(4);
653
655
  e.set(0, void 0), e.set(t + 0, void 0), e.set(t + 1, null), e.set(t + 2, !0), e.set(t + 3, !1);
654
656
  }, e.wbg.__wbindgen_memory = function() {
655
- return v.memory;
657
+ return b.memory;
656
658
  }, e.wbg.__wbindgen_number_new = function(e) {
657
659
  return e;
658
660
  }, e.wbg.__wbindgen_string_get = function(e, t) {
659
661
  let n = t, r = typeof n == "string" ? n : void 0;
660
- var i = ee(r) ? 0 : O(r, v.__wbindgen_malloc_command_export, v.__wbindgen_realloc_command_export), a = T;
661
- A().setInt32(e + 4, a, !0), A().setInt32(e + 0, i, !0);
662
+ var i = ee(r) ? 0 : A(r, b.__wbindgen_malloc_command_export, b.__wbindgen_realloc_command_export), a = D;
663
+ M().setInt32(e + 4, a, !0), M().setInt32(e + 0, i, !0);
662
664
  }, e.wbg.__wbindgen_string_new = function(e, t) {
663
- return S(e, t);
665
+ return w(e, t);
664
666
  }, e.wbg.__wbindgen_throw = function(e, t) {
665
- throw Error(S(e, t));
667
+ throw Error(w(e, t));
666
668
  }, e;
667
669
  }
668
- function ce(e, t) {
669
- return v = e.exports, F.__wbindgen_wasm_module = t, k = null, j = null, b = null, v.__wbindgen_start(), v;
670
+ function le(e, t) {
671
+ return b = e.exports, I.__wbindgen_wasm_module = t, j = null, N = null, S = null, b.__wbindgen_start(), b;
670
672
  }
671
- async function F(e) {
672
- if (v !== void 0) return v;
673
+ async function I(e) {
674
+ if (b !== void 0) return b;
673
675
  if (e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module_or_path: e} = e : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), e === void 0) throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");
674
- let t = se();
676
+ let t = ce();
675
677
  (typeof e == "string" || typeof Request == "function" && e instanceof Request || typeof URL == "function" && e instanceof URL) && (e = fetch(e));
676
- let { instance: n, module: r } = await oe(await e, t);
677
- return ce(n, r);
678
+ let { instance: n, module: r } = await se(await e, t);
679
+ return le(n, r);
678
680
  }
679
- var I = class {
681
+ var L = class {
680
682
  constructor() {
681
- l(this, "_eventListeners", /* @__PURE__ */ new Map());
683
+ d(this, "_eventListeners", /* @__PURE__ */ new Map());
682
684
  }
683
685
  addEventListener(e, t) {
684
686
  let n = this._eventListeners.get(e);
@@ -694,7 +696,7 @@ var I = class {
694
696
  removeAllEventListeners() {
695
697
  this._eventListeners.clear();
696
698
  }
697
- }, L = class e {
699
+ }, R = class e {
698
700
  static _initializeObserver() {
699
701
  e._observer ||= new IntersectionObserver((t) => {
700
702
  t.forEach((t) => {
@@ -710,8 +712,8 @@ var I = class {
710
712
  e._observer?.unobserve(t), e._observedCanvases.delete(t), e._observedCanvases.size === 0 && (e._observer?.disconnect(), e._observer = null);
711
713
  }
712
714
  };
713
- l(L, "_observer", null), l(L, "_observedCanvases", /* @__PURE__ */ new Map());
714
- var R = class e {
715
+ d(R, "_observer", null), d(R, "_observedCanvases", /* @__PURE__ */ new Map());
716
+ var z = class e {
715
717
  static _initializeObserver() {
716
718
  e._observer ||= new ResizeObserver((t) => {
717
719
  t.forEach((t) => {
@@ -738,12 +740,12 @@ var R = class e {
738
740
  e._observer?.unobserve(t), e._observedCanvases.delete(t), !e._observedCanvases.size && e._observer && (e._observer.disconnect(), e._observer = null);
739
741
  }
740
742
  };
741
- l(R, "_observer", null), l(R, "_observedCanvases", /* @__PURE__ */ new Map());
742
- function le(e) {
743
+ d(z, "_observer", null), d(z, "_observedCanvases", /* @__PURE__ */ new Map());
744
+ function ue(e) {
743
745
  return /^#([\da-f]{6}|[\da-f]{8})$/iu.test(e);
744
746
  }
745
- function ue(e) {
746
- if (!le(e)) return [
747
+ function de(e) {
748
+ if (!ue(e)) return [
747
749
  0,
748
750
  0,
749
751
  0,
@@ -757,31 +759,31 @@ function ue(e) {
757
759
  parseInt(t.slice(6, 8), 16) / 255
758
760
  ];
759
761
  }
760
- function z(e) {
762
+ function B(e) {
761
763
  if (e.byteLength < 4) return !1;
762
- let t = new Uint8Array(e.slice(0, m.byteLength));
763
- for (let e = 0; e < m.length; e += 1) if (m[e] !== t[e]) return !1;
764
+ let t = new Uint8Array(e.slice(0, g.byteLength));
765
+ for (let e = 0; e < g.length; e += 1) if (g[e] !== t[e]) return !1;
764
766
  return !0;
765
767
  }
766
- function B(e) {
767
- return h.every((t) => Object.hasOwn(e, t));
768
- }
769
768
  function V(e) {
769
+ return _.every((t) => Object.hasOwn(e, t));
770
+ }
771
+ function H(e) {
770
772
  if (typeof e == "string") try {
771
- return B(JSON.parse(e));
773
+ return V(JSON.parse(e));
772
774
  } catch {
773
775
  return !1;
774
776
  }
775
- else return B(e);
777
+ else return V(e);
776
778
  }
777
- function H() {
778
- return 1 + ((p ? window.devicePixelRatio : 1) - 1) * .75;
779
+ function U() {
780
+ return 1 + ((h ? window.devicePixelRatio : 1) - 1) * .75;
779
781
  }
780
- function U(e) {
782
+ function W(e) {
781
783
  let t = e.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, r = window.innerWidth || document.documentElement.clientWidth;
782
784
  return !(t.bottom < 0 || t.top > n || t.right < 0 || t.left > r);
783
785
  }
784
- function W(e) {
786
+ function G(e) {
785
787
  let t = e.target;
786
788
  if (t instanceof HTMLCanvasElement) {
787
789
  let n = t.getBoundingClientRect();
@@ -794,11 +796,11 @@ function W(e) {
794
796
  }
795
797
  return null;
796
798
  }
797
- function G(e) {
799
+ function K(e) {
798
800
  let t = e.replace("OpenUrl: ", ""), n = t.indexOf(" | Target: "), r, i;
799
801
  n === -1 ? (r = t, i = "_blank") : (r = t.substring(0, n), i = t.substring(n + 11)), window.open(r, i);
800
802
  }
801
- function de(e, t, n) {
803
+ function fe(e, t, n) {
802
804
  let r = null, i = t;
803
805
  async function a(t) {
804
806
  await e({ module_or_path: t });
@@ -848,21 +850,21 @@ function de(e, t, n) {
848
850
  }
849
851
  };
850
852
  }
851
- var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm`, `https://unpkg.com/${_}@${g}/dist/dotlottie-player.wasm`), q = (e) => {
853
+ var q = fe(I, `https://cdn.jsdelivr.net/npm/${y}@${v}/dist/dotlottie-player.wasm`, `https://unpkg.com/${y}@${v}/dist/dotlottie-player.wasm`), J = (e) => {
852
854
  switch (e) {
853
- case "reverse": return N.Reverse;
854
- case "bounce": return N.Bounce;
855
- case "reverse-bounce": return N.ReverseBounce;
856
- default: return N.Forward;
855
+ case "reverse": return F.Reverse;
856
+ case "bounce": return F.Bounce;
857
+ case "reverse-bounce": return F.ReverseBounce;
858
+ default: return F.Forward;
857
859
  }
858
- }, J = (e) => {
860
+ }, Y = (e) => {
859
861
  switch (e) {
860
- case N.Reverse: return "reverse";
861
- case N.Bounce: return "bounce";
862
- case N.ReverseBounce: return "reverse-bounce";
862
+ case F.Reverse: return "reverse";
863
+ case F.Bounce: return "bounce";
864
+ case F.ReverseBounce: return "reverse-bounce";
863
865
  default: return "forward";
864
866
  }
865
- }, fe = (e) => {
867
+ }, pe = (e) => {
866
868
  switch (e) {
867
869
  case "contain": return "contain";
868
870
  case "cover": return "cover";
@@ -872,14 +874,14 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
872
874
  case "none": return "none";
873
875
  default: return "contain";
874
876
  }
875
- }, pe = class {
877
+ }, me = class {
876
878
  constructor(e) {
877
- l(this, "_canvas", null), l(this, "_pendingLoad", null), l(this, "_context", null), l(this, "_eventManager", void 0), l(this, "_animationFrameId", null), l(this, "_frameManager", void 0), l(this, "_boundAnimationLoop", void 0), l(this, "_dotLottieCore", null), l(this, "_stateMachineId", ""), l(this, "_stateMachineConfig", null), l(this, "_isStateMachineRunning", !1), l(this, "_renderConfig", {}), l(this, "_isFrozen", !1), l(this, "_backgroundColor", null), l(this, "_lastFrameTime", null), l(this, "_boundOnClick", null), l(this, "_boundOnPointerUp", null), l(this, "_boundOnPointerDown", null), l(this, "_boundOnPointerMove", null), l(this, "_boundOnPointerEnter", null), l(this, "_boundOnPointerLeave", null), l(this, "_bufferMismatchCount", 0), l(this, "_lastExpectedBufferSize", 0), l(this, "_cachedImageData", null), l(this, "_cachedImageDataBuffer", null), l(this, "_cachedImageDataByteOffset", 0), l(this, "_marker", ""), l(this, "_segment", null), this._canvas = e.canvas ?? null, this._eventManager = new I(), this._frameManager = new f(), this._boundAnimationLoop = this._animationLoop.bind(this), this._renderConfig = {
879
+ d(this, "_canvas", null), d(this, "_pendingLoad", null), d(this, "_context", null), d(this, "_eventManager", void 0), d(this, "_animationFrameId", null), d(this, "_frameManager", void 0), d(this, "_boundAnimationLoop", void 0), d(this, "_dotLottieCore", null), d(this, "_stateMachineId", ""), d(this, "_stateMachineConfig", null), d(this, "_isStateMachineRunning", !1), d(this, "_renderConfig", {}), d(this, "_isFrozen", !1), d(this, "_backgroundColor", null), d(this, "_lastFrameTime", null), d(this, "_boundOnClick", null), d(this, "_boundOnPointerUp", null), d(this, "_boundOnPointerDown", null), d(this, "_boundOnPointerMove", null), d(this, "_boundOnPointerEnter", null), d(this, "_boundOnPointerLeave", null), d(this, "_bufferMismatchCount", 0), d(this, "_lastExpectedBufferSize", 0), d(this, "_cachedImageData", null), d(this, "_cachedImageDataBuffer", null), d(this, "_cachedImageDataByteOffset", 0), d(this, "_marker", ""), d(this, "_segment", null), this._canvas = e.canvas ?? null, this._eventManager = new L(), this._frameManager = new m(), this._boundAnimationLoop = this._animationLoop.bind(this), this._renderConfig = {
878
880
  ...e.renderConfig,
879
- devicePixelRatio: e.renderConfig?.devicePixelRatio || H(),
881
+ devicePixelRatio: e.renderConfig?.devicePixelRatio || U(),
880
882
  freezeOnOffscreen: e.renderConfig?.freezeOnOffscreen ?? !0
881
883
  }, this._initWasm().then(() => {
882
- this._dotLottieCore = this._createCore(), this._dotLottieCore.set_autoplay(e.autoplay ?? !1), this._dotLottieCore.set_loop(e.loop ?? !1), this._dotLottieCore.set_loop_count(e.loopCount ?? 0), this._dotLottieCore.set_mode(q(e.mode ?? "forward")), this._dotLottieCore.set_speed(e.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation ?? !0), e.segment && e.segment.length === 2 && (this._segment = [e.segment[0], e.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])), this._marker = e.marker ?? "", this._marker && this._dotLottieCore.set_marker(this._marker), this._dotLottieCore.set_layout(e.layout?.fit ?? "contain", e.layout?.align?.[0] ?? .5, e.layout?.align?.[1] ?? .5), this._stateMachineId = e.stateMachineId ?? "", this._stateMachineConfig = e.stateMachineConfig ?? null, this._onCoreCreated(), this._eventManager.dispatch({ type: "ready" }), e.data ? this._canvas ? this._loadFromData(e.data) : this._pendingLoad = { data: e.data } : e.src && (this._canvas ? this._loadFromSrc(e.src) : this._pendingLoad = { src: e.src }), e.backgroundColor && this.setBackgroundColor(e.backgroundColor);
884
+ this._dotLottieCore = this._createCore(), this._dotLottieCore.set_autoplay(e.autoplay ?? !1), this._dotLottieCore.set_loop(e.loop ?? !1), this._dotLottieCore.set_loop_count(e.loopCount ?? 0), this._dotLottieCore.set_mode(J(e.mode ?? "forward")), this._dotLottieCore.set_speed(e.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation ?? !0), e.segment && e.segment.length === 2 && (this._segment = [e.segment[0], e.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])), this._marker = e.marker ?? "", this._marker && this._dotLottieCore.set_marker(this._marker), this._dotLottieCore.set_layout(e.layout?.fit ?? "contain", e.layout?.align?.[0] ?? .5, e.layout?.align?.[1] ?? .5), this._stateMachineId = e.stateMachineId ?? "", this._stateMachineConfig = e.stateMachineConfig ?? null, this._onCoreCreated(), this._eventManager.dispatch({ type: "ready" }), e.data ? this._canvas ? this._loadFromData(e.data) : this._pendingLoad = { data: e.data } : e.src && (this._canvas ? this._loadFromSrc(e.src) : this._pendingLoad = { src: e.src }), e.backgroundColor && this.setBackgroundColor(e.backgroundColor);
883
885
  }).catch((e) => {
884
886
  console.error("[dotlottie-web] Initialization failed:", e), this._eventManager.dispatch({
885
887
  type: "loadError",
@@ -888,10 +890,10 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
888
890
  });
889
891
  }
890
892
  async _initWasm() {
891
- return K.load();
893
+ return q.load();
892
894
  }
893
895
  _createCore() {
894
- return new ae();
896
+ return new oe();
895
897
  }
896
898
  _onCoreCreated() {}
897
899
  _setupTarget(e, t) {
@@ -1031,7 +1033,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1031
1033
  let e = t;
1032
1034
  if (e.type === "Message") {
1033
1035
  let t = e.message ?? "";
1034
- p && t.startsWith("OpenUrl: ") ? G(t) : this._eventManager.dispatch({
1036
+ h && t.startsWith("OpenUrl: ") ? K(t) : this._eventManager.dispatch({
1035
1037
  type: "stateMachineInternalMessage",
1036
1038
  message: t
1037
1039
  });
@@ -1048,7 +1050,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1048
1050
  let t = await fetch(e);
1049
1051
  if (!t.ok) throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);
1050
1052
  let n = await t.arrayBuffer();
1051
- return z(n) ? n : new TextDecoder().decode(n);
1053
+ return B(n) ? n : new TextDecoder().decode(n);
1052
1054
  }
1053
1055
  _loadFromData(e) {
1054
1056
  if (this._dotLottieCore === null) return;
@@ -1060,19 +1062,19 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1060
1062
  this._setupTarget(t, n);
1061
1063
  let r = !1;
1062
1064
  if (typeof e == "string") {
1063
- if (!V(e)) {
1065
+ if (!H(e)) {
1064
1066
  this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");
1065
1067
  return;
1066
1068
  }
1067
1069
  r = this._dotLottieCore.load_animation(e);
1068
1070
  } else if (e instanceof ArrayBuffer) {
1069
- if (!z(e)) {
1071
+ if (!B(e)) {
1070
1072
  this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");
1071
1073
  return;
1072
1074
  }
1073
1075
  r = this._dotLottieCore.load_dotlottie_data(new Uint8Array(e));
1074
1076
  } else if (typeof e == "object") {
1075
- if (!V(e)) {
1077
+ if (!H(e)) {
1076
1078
  this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");
1077
1079
  return;
1078
1080
  }
@@ -1086,9 +1088,9 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1086
1088
  return;
1087
1089
  }
1088
1090
  if (r) {
1089
- if (this._renderConfig.quality !== void 0 && this._dotLottieCore.set_quality(this._renderConfig.quality), p && this.resize(), this._drainPlayerEvents({ skipFrame: !!this._marker || !!this._segment }), this._marker && this._dotLottieCore.set_marker(this._marker), this._segment) {
1091
+ if (this._renderConfig.quality !== void 0 && this._dotLottieCore.set_quality(this._renderConfig.quality), h && this.resize(), this._drainPlayerEvents({ skipFrame: !!this._marker || !!this._segment }), this._marker && this._dotLottieCore.set_marker(this._marker), this._segment) {
1090
1092
  this._dotLottieCore.set_segment(this._segment[0], this._segment[1]);
1091
- let e = J(this._dotLottieCore.mode()), t = e === "reverse" || e === "reverse-bounce" ? this._segment[1] : this._segment[0];
1093
+ let e = Y(this._dotLottieCore.mode()), t = e === "reverse" || e === "reverse-bounce" ? this._segment[1] : this._segment[0];
1092
1094
  this._dotLottieCore.set_frame(t);
1093
1095
  }
1094
1096
  setTimeout(() => {
@@ -1096,7 +1098,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1096
1098
  type: "frame",
1097
1099
  currentFrame: this.currentFrame
1098
1100
  });
1099
- }, 0), this._dotLottieCore.render(), this._drainPlayerEvents(), this._draw(), this._stateMachineId ? this.stateMachineLoad(this._stateMachineId) && this.stateMachineStart() && this._startAnimationLoop() : this._dotLottieCore.is_playing() && this._startAnimationLoop(), p && this._canvas instanceof HTMLCanvasElement && (this._renderConfig.freezeOnOffscreen && (L.observe(this._canvas, this), U(this._canvas) || this.freeze()), this._renderConfig.autoResize && R.observe(this._canvas, this));
1101
+ }, 0), this._dotLottieCore.render(), this._drainPlayerEvents(), this._draw(), this._stateMachineId ? this.stateMachineLoad(this._stateMachineId) && this.stateMachineStart() && this._startAnimationLoop() : this._dotLottieCore.is_playing() && this._startAnimationLoop(), h && this._canvas instanceof HTMLCanvasElement && (this._renderConfig.freezeOnOffscreen && (R.observe(this._canvas, this), W(this._canvas) || this.freeze()), this._renderConfig.autoResize && z.observe(this._canvas, this));
1100
1102
  } else this._drainPlayerEvents();
1101
1103
  }
1102
1104
  _loadFromSrc(e) {
@@ -1114,7 +1116,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1114
1116
  get layout() {
1115
1117
  if (this._dotLottieCore) return {
1116
1118
  align: [this._dotLottieCore.layout_align_x(), this._dotLottieCore.layout_align_y()],
1117
- fit: fe(this._dotLottieCore.layout_fit())
1119
+ fit: pe(this._dotLottieCore.layout_fit())
1118
1120
  };
1119
1121
  }
1120
1122
  get marker() {
@@ -1140,7 +1142,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1140
1142
  return this._dotLottieCore?.loop_animation() ?? !1;
1141
1143
  }
1142
1144
  get mode() {
1143
- return this._dotLottieCore ? J(this._dotLottieCore.mode()) : "forward";
1145
+ return this._dotLottieCore ? Y(this._dotLottieCore.mode()) : "forward";
1144
1146
  }
1145
1147
  get isFrozen() {
1146
1148
  return this._isFrozen;
@@ -1191,7 +1193,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1191
1193
  return this._canvas;
1192
1194
  }
1193
1195
  load(e) {
1194
- this._dotLottieCore !== null && (this._stopAnimationLoop(), this._cleanupCanvas(), this._isFrozen = !1, this._dotLottieCore.set_autoplay(e.autoplay ?? !1), this._dotLottieCore.set_loop(e.loop ?? !1), this._dotLottieCore.set_loop_count(e.loopCount ?? 0), this._dotLottieCore.set_mode(q(e.mode ?? "forward")), this._dotLottieCore.set_speed(e.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation ?? !0), e.segment && e.segment.length === 2 ? (this._segment = [e.segment[0], e.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])) : (this._segment = null, this._dotLottieCore.clear_segment()), this._marker = e.marker ?? "", this._marker ? this._dotLottieCore.set_marker(this._marker) : this._dotLottieCore.clear_marker(), this._dotLottieCore.set_layout(e.layout?.fit ?? "contain", e.layout?.align?.[0] ?? .5, e.layout?.align?.[1] ?? .5), e.data ? this._canvas ? this._loadFromData(e.data) : this._pendingLoad = { data: e.data } : e.src && (this._canvas ? this._loadFromSrc(e.src) : this._pendingLoad = { src: e.src }), e.backgroundColor && this.setBackgroundColor(e.backgroundColor));
1196
+ this._dotLottieCore !== null && (this._stopAnimationLoop(), this._cleanupCanvas(), this._isFrozen = !1, this._dotLottieCore.set_autoplay(e.autoplay ?? !1), this._dotLottieCore.set_loop(e.loop ?? !1), this._dotLottieCore.set_loop_count(e.loopCount ?? 0), this._dotLottieCore.set_mode(J(e.mode ?? "forward")), this._dotLottieCore.set_speed(e.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation ?? !0), e.segment && e.segment.length === 2 ? (this._segment = [e.segment[0], e.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])) : (this._segment = null, this._dotLottieCore.clear_segment()), this._marker = e.marker ?? "", this._marker ? this._dotLottieCore.set_marker(this._marker) : this._dotLottieCore.clear_marker(), this._dotLottieCore.set_layout(e.layout?.fit ?? "contain", e.layout?.align?.[0] ?? .5, e.layout?.align?.[1] ?? .5), e.data ? this._canvas ? this._loadFromData(e.data) : this._pendingLoad = { data: e.data } : e.src && (this._canvas ? this._loadFromSrc(e.src) : this._pendingLoad = { src: e.src }), e.backgroundColor && this.setBackgroundColor(e.backgroundColor));
1195
1197
  }
1196
1198
  _draw() {
1197
1199
  if (this._dotLottieCore === null || this._canvas === null || (!this._context && "getContext" in this._canvas && typeof this._canvas.getContext == "function" && (typeof HTMLCanvasElement < "u" && this._canvas instanceof HTMLCanvasElement || typeof OffscreenCanvas < "u" && this._canvas instanceof OffscreenCanvas) && (this._context = this._canvas.getContext("2d")), !this._context)) return;
@@ -1217,10 +1219,10 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1217
1219
  this._context.putImageData(this._cachedImageData, 0, 0);
1218
1220
  }
1219
1221
  _cleanupCanvas() {
1220
- this._canvas && p && this._canvas instanceof HTMLCanvasElement && (L.unobserve(this._canvas), R.unobserve(this._canvas), this._cleanupStateMachineListeners());
1222
+ this._canvas && h && this._canvas instanceof HTMLCanvasElement && (R.unobserve(this._canvas), z.unobserve(this._canvas), this._cleanupStateMachineListeners());
1221
1223
  }
1222
1224
  _initializeCanvas() {
1223
- this._setupRendererOnCanvas(), this._canvas && p && this._canvas instanceof HTMLCanvasElement && this.isLoaded && (this._renderConfig.freezeOnOffscreen && (L.observe(this._canvas, this), U(this._canvas) || this.freeze()), this._renderConfig.autoResize && R.observe(this._canvas, this), this._isStateMachineRunning && this._setupStateMachineListeners()), this._canvas && this._dotLottieCore && this.isLoaded && this._setupTarget(this._canvas.width, this._canvas.height) && (this._dotLottieCore.render(), this._draw());
1225
+ this._setupRendererOnCanvas(), this._canvas && h && this._canvas instanceof HTMLCanvasElement && this.isLoaded && (this._renderConfig.freezeOnOffscreen && (R.observe(this._canvas, this), W(this._canvas) || this.freeze()), this._renderConfig.autoResize && z.observe(this._canvas, this), this._isStateMachineRunning && this._setupStateMachineListeners()), this._canvas && this._dotLottieCore && this.isLoaded && this._setupTarget(this._canvas.width, this._canvas.height) && (this._dotLottieCore.render(), this._draw());
1224
1226
  }
1225
1227
  _setupRendererOnCanvas() {
1226
1228
  this._context = null;
@@ -1256,7 +1258,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1256
1258
  if (this._dotLottieCore === null || !this.isLoaded) return;
1257
1259
  this._stopAnimationLoop();
1258
1260
  let e = this._dotLottieCore.play();
1259
- this._drainPlayerEvents(), (e || this._dotLottieCore.is_playing()) && (this._isFrozen = !1, this._startAnimationLoop()), this._canvas && p && this._canvas instanceof HTMLCanvasElement && this._renderConfig.freezeOnOffscreen && !U(this._canvas) && this.freeze();
1261
+ this._drainPlayerEvents(), (e || this._dotLottieCore.is_playing()) && (this._isFrozen = !1, this._startAnimationLoop()), this._canvas && h && this._canvas instanceof HTMLCanvasElement && this._renderConfig.freezeOnOffscreen && !W(this._canvas) && this.freeze();
1260
1262
  }
1261
1263
  pause() {
1262
1264
  this._dotLottieCore !== null && (this._dotLottieCore.pause(), this._drainPlayerEvents(), this._stopAnimationLoop());
@@ -1280,9 +1282,9 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1280
1282
  }
1281
1283
  setBackgroundColor(e) {
1282
1284
  if (this._dotLottieCore !== null) {
1283
- if (p && this._canvas instanceof HTMLCanvasElement) this._canvas.style.backgroundColor = e;
1285
+ if (h && this._canvas instanceof HTMLCanvasElement) this._canvas.style.backgroundColor = e;
1284
1286
  else {
1285
- let [t, n, r, i] = ue(e);
1287
+ let [t, n, r, i] = de(e);
1286
1288
  this._dotLottieCore.set_background(t, n, r, i);
1287
1289
  }
1288
1290
  this._backgroundColor = e;
@@ -1321,7 +1323,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1321
1323
  }
1322
1324
  resize() {
1323
1325
  if (!(!this._dotLottieCore || !this.isLoaded || !this._canvas)) {
1324
- if (p && this._canvas instanceof HTMLCanvasElement) {
1326
+ if (h && this._canvas instanceof HTMLCanvasElement) {
1325
1327
  let e = this._renderConfig.devicePixelRatio || window.devicePixelRatio || 1, { height: t, width: n } = this._canvas.getBoundingClientRect();
1326
1328
  t !== 0 && n !== 0 && (this._canvas.width = n * e, this._canvas.height = t * e);
1327
1329
  }
@@ -1351,17 +1353,17 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1351
1353
  this._dotLottieCore !== null && (this._segment = null, this._dotLottieCore.clear_segment());
1352
1354
  }
1353
1355
  setMode(e) {
1354
- this._dotLottieCore !== null && this._dotLottieCore.set_mode(q(e));
1356
+ this._dotLottieCore !== null && this._dotLottieCore.set_mode(J(e));
1355
1357
  }
1356
1358
  setRenderConfig(e) {
1357
1359
  let { devicePixelRatio: t, freezeOnOffscreen: n, quality: r, ...i } = e;
1358
1360
  this._renderConfig = {
1359
1361
  ...this._renderConfig,
1360
1362
  ...i,
1361
- devicePixelRatio: t || H(),
1363
+ devicePixelRatio: t || U(),
1362
1364
  freezeOnOffscreen: n ?? !0,
1363
1365
  ...r !== void 0 && { quality: r }
1364
- }, r !== void 0 && this._dotLottieCore && this._dotLottieCore.set_quality(r), p && this._canvas instanceof HTMLCanvasElement && (this._renderConfig.autoResize ? R.observe(this._canvas, this) : R.unobserve(this._canvas), this._renderConfig.freezeOnOffscreen ? (L.observe(this._canvas, this), U(this._canvas) || this.freeze()) : (L.unobserve(this._canvas), this._isFrozen && this.unfreeze()));
1366
+ }, r !== void 0 && this._dotLottieCore && this._dotLottieCore.set_quality(r), h && this._canvas instanceof HTMLCanvasElement && (this._renderConfig.autoResize ? z.observe(this._canvas, this) : z.unobserve(this._canvas), this._renderConfig.freezeOnOffscreen ? (R.observe(this._canvas, this), W(this._canvas) || this.freeze()) : (R.unobserve(this._canvas), this._isFrozen && this.unfreeze()));
1365
1367
  }
1366
1368
  loadAnimation(e) {
1367
1369
  this._dotLottieCore === null || this._dotLottieCore.animation_id() === e || !this._canvas || (this._setupTarget(this._canvas.width, this._canvas.height), this._dotLottieCore.load_animation_from_id(e) ? (this._renderConfig.quality !== void 0 && this._dotLottieCore.set_quality(this._renderConfig.quality), this.resize(), this._drainPlayerEvents(), this._dotLottieCore.render(), this._draw()) : this._dispatchError(`Failed to load animation with id: ${e}`));
@@ -1505,11 +1507,11 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1505
1507
  return this._dotLottieCore === null ? !1 : this._dotLottieCore.set_viewport(e, t, n, r);
1506
1508
  }
1507
1509
  static setWasmUrl(e) {
1508
- K.setWasmUrl(e);
1510
+ q.setWasmUrl(e);
1509
1511
  }
1510
1512
  static async registerFont(e, t) {
1511
1513
  try {
1512
- await K.load();
1514
+ await q.load();
1513
1515
  let n;
1514
1516
  if (typeof t == "string") {
1515
1517
  let e = await fetch(t);
@@ -1613,39 +1615,39 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
1613
1615
  this._dotLottieCore?.sm_post_pointer_exit(e, t);
1614
1616
  }
1615
1617
  _onClick(e) {
1616
- let t = W(e);
1618
+ let t = G(e);
1617
1619
  t && this.stateMachinePostClickEvent(t.x, t.y);
1618
1620
  }
1619
1621
  _onPointerUp(e) {
1620
- let t = W(e);
1622
+ let t = G(e);
1621
1623
  t && this.stateMachinePostPointerUpEvent(t.x, t.y);
1622
1624
  }
1623
1625
  _onPointerDown(e) {
1624
- let t = W(e);
1626
+ let t = G(e);
1625
1627
  t && this.stateMachinePostPointerDownEvent(t.x, t.y);
1626
1628
  }
1627
1629
  _onPointerMove(e) {
1628
- let t = W(e);
1630
+ let t = G(e);
1629
1631
  t && this.stateMachinePostPointerMoveEvent(t.x, t.y);
1630
1632
  }
1631
1633
  _onPointerEnter(e) {
1632
- let t = W(e);
1634
+ let t = G(e);
1633
1635
  t && this.stateMachinePostPointerEnterEvent(t.x, t.y);
1634
1636
  }
1635
1637
  _onPointerLeave(e) {
1636
- let t = W(e);
1638
+ let t = G(e);
1637
1639
  t && this.stateMachinePostPointerExitEvent(t.x, t.y);
1638
1640
  }
1639
1641
  _setupStateMachineListeners() {
1640
- if (p && this._canvas instanceof HTMLCanvasElement && this._dotLottieCore !== null && this.isLoaded) {
1642
+ if (h && this._canvas instanceof HTMLCanvasElement && this._dotLottieCore !== null && this.isLoaded) {
1641
1643
  let e = this.stateMachineGetListeners();
1642
1644
  this._cleanupStateMachineListeners(), e.includes("Click") && (this._boundOnClick = this._onClick.bind(this), this._canvas.addEventListener("click", this._boundOnClick)), e.includes("PointerUp") && (this._boundOnPointerUp = this._onPointerUp.bind(this), this._canvas.addEventListener("pointerup", this._boundOnPointerUp)), e.includes("PointerDown") && (this._boundOnPointerDown = this._onPointerDown.bind(this), this._canvas.addEventListener("pointerdown", this._boundOnPointerDown)), e.includes("PointerMove") && (this._boundOnPointerMove = this._onPointerMove.bind(this), this._canvas.addEventListener("pointermove", this._boundOnPointerMove)), e.includes("PointerEnter") && (this._boundOnPointerEnter = this._onPointerEnter.bind(this), this._canvas.addEventListener("pointerenter", this._boundOnPointerEnter)), e.includes("PointerExit") && (this._boundOnPointerLeave = this._onPointerLeave.bind(this), this._canvas.addEventListener("pointerleave", this._boundOnPointerLeave));
1643
1645
  }
1644
1646
  }
1645
1647
  _cleanupStateMachineListeners() {
1646
- p && this._canvas instanceof HTMLCanvasElement && (this._boundOnClick &&= (this._canvas.removeEventListener("click", this._boundOnClick), null), this._boundOnPointerUp &&= (this._canvas.removeEventListener("pointerup", this._boundOnPointerUp), null), this._boundOnPointerDown &&= (this._canvas.removeEventListener("pointerdown", this._boundOnPointerDown), null), this._boundOnPointerMove &&= (this._canvas.removeEventListener("pointermove", this._boundOnPointerMove), null), this._boundOnPointerEnter &&= (this._canvas.removeEventListener("pointerenter", this._boundOnPointerEnter), null), this._boundOnPointerLeave &&= (this._canvas.removeEventListener("pointerleave", this._boundOnPointerLeave), null));
1648
+ h && this._canvas instanceof HTMLCanvasElement && (this._boundOnClick &&= (this._canvas.removeEventListener("click", this._boundOnClick), null), this._boundOnPointerUp &&= (this._canvas.removeEventListener("pointerup", this._boundOnPointerUp), null), this._boundOnPointerDown &&= (this._canvas.removeEventListener("pointerdown", this._boundOnPointerDown), null), this._boundOnPointerMove &&= (this._canvas.removeEventListener("pointermove", this._boundOnPointerMove), null), this._boundOnPointerEnter &&= (this._canvas.removeEventListener("pointerenter", this._boundOnPointerEnter), null), this._boundOnPointerLeave &&= (this._canvas.removeEventListener("pointerleave", this._boundOnPointerLeave), null));
1647
1649
  }
1648
- }, me = class {
1650
+ }, he = class {
1649
1651
  constructor() {
1650
1652
  if (typeof Worker > "u") throw Error("Worker is not supported in this environment.");
1651
1653
  let e = new Blob([new Uint8Array([
@@ -70501,9 +70503,9 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
70501
70503
  ])], { type: "application/javascript" }), t = URL.createObjectURL(e), n = new Worker(t);
70502
70504
  return URL.revokeObjectURL(t), n;
70503
70505
  }
70504
- }, he = class {
70506
+ }, ge = class {
70505
70507
  constructor() {
70506
- l(this, "_workers", /* @__PURE__ */ new Map()), l(this, "_animationWorkerMap", /* @__PURE__ */ new Map()), l(this, "_eventHandlers", /* @__PURE__ */ new Map()), l(this, "_rpcHandlers", /* @__PURE__ */ new Map()), l(this, "_routeMessage", (e) => {
70508
+ d(this, "_workers", /* @__PURE__ */ new Map()), d(this, "_animationWorkerMap", /* @__PURE__ */ new Map()), d(this, "_eventHandlers", /* @__PURE__ */ new Map()), d(this, "_rpcHandlers", /* @__PURE__ */ new Map()), d(this, "_routeMessage", (e) => {
70507
70509
  let t = e.data;
70508
70510
  if (t.id) {
70509
70511
  let n = this._rpcHandlers.get(t.id);
@@ -70519,7 +70521,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
70519
70521
  }
70520
70522
  getWorker(e) {
70521
70523
  let t = this._workers.get(e);
70522
- return t || (t = new me(), t.addEventListener("message", this._routeMessage), this._workers.set(e, t)), t;
70524
+ return t || (t = new he(), t.addEventListener("message", this._routeMessage), this._workers.set(e, t)), t;
70523
70525
  }
70524
70526
  assignAnimationToWorker(e, t) {
70525
70527
  this._animationWorkerMap.set(e, t);
@@ -70552,7 +70554,7 @@ var K = de(F, `https://cdn.jsdelivr.net/npm/${_}@${g}/dist/dotlottie-player.wasm
70552
70554
  this._rpcHandlers.delete(e);
70553
70555
  }
70554
70556
  };
70555
- function Y(e, t) {
70557
+ function X(e, t) {
70556
70558
  if (typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement) {
70557
70559
  let { height: n, width: r } = e.getBoundingClientRect();
70558
70560
  if (n !== 0 && r !== 0) return {
@@ -70565,12 +70567,12 @@ function Y(e, t) {
70565
70567
  height: e.height
70566
70568
  };
70567
70569
  }
70568
- function X() {
70570
+ function Z() {
70569
70571
  return Date.now().toString(36) + Math.random().toString(36).substr(2, 9);
70570
70572
  }
70571
- var Z = class e {
70573
+ var Q = class e {
70572
70574
  constructor(t) {
70573
- if (l(this, "_eventManager", new I()), l(this, "_id", void 0), l(this, "_worker", void 0), l(this, "_canvas", void 0), l(this, "_dotLottieInstanceState", {
70575
+ if (d(this, "_eventManager", new L()), d(this, "_id", void 0), d(this, "_worker", void 0), d(this, "_canvas", void 0), d(this, "_dotLottieInstanceState", {
70574
70576
  loopCount: 0,
70575
70577
  markers: [],
70576
70578
  autoplay: !1,
@@ -70588,25 +70590,25 @@ var Z = class e {
70588
70590
  isStopped: !0,
70589
70591
  isFrozen: !1,
70590
70592
  useFrameInterpolation: !1,
70591
- renderConfig: { devicePixelRatio: H() },
70593
+ renderConfig: { devicePixelRatio: U() },
70592
70594
  activeAnimationId: "",
70593
70595
  activeThemeId: "",
70594
70596
  layout: void 0,
70595
70597
  marker: "",
70596
70598
  isReady: !1,
70597
70599
  manifest: null
70598
- }), l(this, "_created", !1), l(this, "_boundOnClick", null), l(this, "_boundOnPointerUp", null), l(this, "_boundOnPointerDown", null), l(this, "_boundOnPointerMove", null), l(this, "_boundOnPointerEnter", null), l(this, "_boundOnPointerLeave", null), l(this, "_pendingConfig", null), t.canvas) {
70600
+ }), d(this, "_created", !1), d(this, "_boundOnClick", null), d(this, "_boundOnPointerUp", null), d(this, "_boundOnPointerDown", null), d(this, "_boundOnPointerMove", null), d(this, "_boundOnPointerEnter", null), d(this, "_boundOnPointerLeave", null), d(this, "_pendingConfig", null), t.canvas) {
70599
70601
  let e = typeof HTMLCanvasElement < "u" && t.canvas instanceof HTMLCanvasElement, n = typeof OffscreenCanvas < "u" && t.canvas instanceof OffscreenCanvas;
70600
70602
  if (!e && !n) throw Error("Worker-based DotLottie requires HTMLCanvasElement or OffscreenCanvas");
70601
70603
  }
70602
- this._canvas = t.canvas ?? null, this._id = `dotlottie-${X()}`;
70604
+ this._canvas = t.canvas ?? null, this._id = `dotlottie-${Z()}`;
70603
70605
  let n = t.workerId || "defaultWorker";
70604
70606
  this._worker = e._workerManager.getWorker(n), e._workerManager.assignAnimationToWorker(this._id, n), e._wasmUrl && this._sendMessage("setWasmUrl", { url: e._wasmUrl });
70605
70607
  let r = {
70606
70608
  ...t,
70607
70609
  renderConfig: {
70608
70610
  ...t.renderConfig,
70609
- devicePixelRatio: t.renderConfig?.devicePixelRatio || H(),
70611
+ devicePixelRatio: t.renderConfig?.devicePixelRatio || U(),
70610
70612
  freezeOnOffscreen: t.renderConfig?.freezeOnOffscreen ?? !0
70611
70613
  }
70612
70614
  };
@@ -70614,10 +70616,10 @@ var Z = class e {
70614
70616
  }
70615
70617
  async _handleWorkerEvent(e) {
70616
70618
  let t = e.data;
70617
- if (!t.id && (t.method === "onLoad" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event), p && this._canvas instanceof HTMLCanvasElement && (this._dotLottieInstanceState.renderConfig.freezeOnOffscreen && (L.observe(this._canvas, this), U(this._canvas) || await this.freeze()), this._dotLottieInstanceState.renderConfig.autoResize && R.observe(this._canvas, this))), t.method === "onComplete" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onDestroy" && t.result.instanceId === this._id && this._eventManager.dispatch(t.result.event), t.method === "onUnfreeze" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._dotLottieInstanceState.isFrozen = !1, this._eventManager.dispatch(t.result.event)), t.method === "onFrame" && t.result.instanceId === this._id && (this._dotLottieInstanceState.currentFrame = t.result.event.currentFrame, this._eventManager.dispatch(t.result.event)), t.method === "onRender" && t.result.instanceId === this._id && this._eventManager.dispatch(t.result.event), t.method === "onFreeze" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onPause" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onPlay" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStop" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onLoadError" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onRenderError" && t.result.instanceId === this._id && this._eventManager.dispatch(t.result.event), t.method === "onReady" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onLoop" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStart" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._setupStateMachineListeners(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStop" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._cleanupStateMachineListeners(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineTransition" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStateEntered" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStateExit" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineCustomEvent" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineError" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineBooleanInputValueChange" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineNumericInputValueChange" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStringInputValueChange" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineInputFired" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineInternalMessage" && t.result.instanceId === this._id)) {
70619
+ if (!t.id && (t.method === "onLoad" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event), h && this._canvas instanceof HTMLCanvasElement && (this._dotLottieInstanceState.renderConfig.freezeOnOffscreen && (R.observe(this._canvas, this), W(this._canvas) || await this.freeze()), this._dotLottieInstanceState.renderConfig.autoResize && z.observe(this._canvas, this))), t.method === "onComplete" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onDestroy" && t.result.instanceId === this._id && this._eventManager.dispatch(t.result.event), t.method === "onUnfreeze" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._dotLottieInstanceState.isFrozen = !1, this._eventManager.dispatch(t.result.event)), t.method === "onFrame" && t.result.instanceId === this._id && (this._dotLottieInstanceState.currentFrame = t.result.event.currentFrame, this._eventManager.dispatch(t.result.event)), t.method === "onRender" && t.result.instanceId === this._id && this._eventManager.dispatch(t.result.event), t.method === "onFreeze" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onPause" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onPlay" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStop" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onLoadError" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onRenderError" && t.result.instanceId === this._id && this._eventManager.dispatch(t.result.event), t.method === "onReady" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onLoop" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStart" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._setupStateMachineListeners(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStop" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._cleanupStateMachineListeners(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineTransition" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStateEntered" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStateExit" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineCustomEvent" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineError" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineBooleanInputValueChange" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineNumericInputValueChange" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineStringInputValueChange" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineInputFired" && t.result.instanceId === this._id && (await this._updateDotLottieInstanceState(), this._eventManager.dispatch(t.result.event)), t.method === "onStateMachineInternalMessage" && t.result.instanceId === this._id)) {
70618
70620
  await this._updateDotLottieInstanceState();
70619
70621
  let e = t.result.event;
70620
- e.message.startsWith("OpenUrl: ") && G(e.message);
70622
+ e.message.startsWith("OpenUrl: ") && K(e.message);
70621
70623
  }
70622
70624
  }
70623
70625
  async _create(e) {
@@ -70630,7 +70632,7 @@ var Z = class e {
70630
70632
  ...e,
70631
70633
  canvas: t
70632
70634
  },
70633
- ...Y(this._canvas, e.renderConfig?.devicePixelRatio || H())
70635
+ ...X(this._canvas, e.renderConfig?.devicePixelRatio || U())
70634
70636
  }, [t]);
70635
70637
  if (n !== this._id) throw Error("Instance ID mismatch");
70636
70638
  this._created = !0, await this._updateDotLottieInstanceState();
@@ -70716,7 +70718,7 @@ var Z = class e {
70716
70718
  return this._dotLottieInstanceState.layout;
70717
70719
  }
70718
70720
  async play() {
70719
- this._created && (await this._sendMessage("play", { instanceId: this._id }), await this._updateDotLottieInstanceState(), p && this._canvas instanceof HTMLCanvasElement && this._dotLottieInstanceState.renderConfig.freezeOnOffscreen && !U(this._canvas) && await this.freeze());
70721
+ this._created && (await this._sendMessage("play", { instanceId: this._id }), await this._updateDotLottieInstanceState(), h && this._canvas instanceof HTMLCanvasElement && this._dotLottieInstanceState.renderConfig.freezeOnOffscreen && !W(this._canvas) && await this.freeze());
70720
70722
  }
70721
70723
  async pause() {
70722
70724
  this._created && (await this._sendMessage("pause", { instanceId: this._id }), await this._updateDotLottieInstanceState());
@@ -70759,11 +70761,11 @@ var Z = class e {
70759
70761
  renderConfig: {
70760
70762
  ...this._dotLottieInstanceState.renderConfig,
70761
70763
  ...i,
70762
- devicePixelRatio: t || H(),
70764
+ devicePixelRatio: t || U(),
70763
70765
  freezeOnOffscreen: n ?? !0,
70764
70766
  ...r !== void 0 && { quality: r }
70765
70767
  }
70766
- }), await this._updateDotLottieInstanceState(), p && this._canvas instanceof HTMLCanvasElement && (this._dotLottieInstanceState.renderConfig.autoResize ? R.observe(this._canvas, this) : R.unobserve(this._canvas), this._dotLottieInstanceState.renderConfig.freezeOnOffscreen ? (L.observe(this._canvas, this), U(this._canvas) || await this.freeze()) : (L.unobserve(this._canvas), this._dotLottieInstanceState.isFrozen && await this.unfreeze()));
70768
+ }), await this._updateDotLottieInstanceState(), h && this._canvas instanceof HTMLCanvasElement && (this._dotLottieInstanceState.renderConfig.autoResize ? z.observe(this._canvas, this) : z.unobserve(this._canvas), this._dotLottieInstanceState.renderConfig.freezeOnOffscreen ? (R.observe(this._canvas, this), W(this._canvas) || await this.freeze()) : (R.unobserve(this._canvas), this._dotLottieInstanceState.isFrozen && await this.unfreeze()));
70767
70769
  }
70768
70770
  async setUseFrameInterpolation(e) {
70769
70771
  this._created && (await this._sendMessage("setUseFrameInterpolation", {
@@ -70806,7 +70808,7 @@ var Z = class e {
70806
70808
  }
70807
70809
  async resize() {
70808
70810
  if (!this._created || !this._canvas) return;
70809
- let { height: e, width: t } = Y(this._canvas, this._dotLottieInstanceState.renderConfig.devicePixelRatio || H());
70811
+ let { height: e, width: t } = X(this._canvas, this._dotLottieInstanceState.renderConfig.devicePixelRatio || U());
70810
70812
  await this._sendMessage("resize", {
70811
70813
  height: e,
70812
70814
  instanceId: this._id,
@@ -70814,7 +70816,7 @@ var Z = class e {
70814
70816
  }), await this._updateDotLottieInstanceState();
70815
70817
  }
70816
70818
  async destroy() {
70817
- this._created && (this._created = !1, await this._sendMessage("destroy", { instanceId: this._id }), this._cleanupStateMachineListeners(), e._workerManager.unregisterEventHandler(this._id), e._workerManager.unassignAnimationFromWorker(this._id), this._eventManager.removeAllEventListeners(), p && this._canvas instanceof HTMLCanvasElement && (L.unobserve(this._canvas), R.unobserve(this._canvas)));
70819
+ this._created && (this._created = !1, await this._sendMessage("destroy", { instanceId: this._id }), this._cleanupStateMachineListeners(), e._workerManager.unregisterEventHandler(this._id), e._workerManager.unassignAnimationFromWorker(this._id), this._eventManager.removeAllEventListeners(), h && this._canvas instanceof HTMLCanvasElement && (R.unobserve(this._canvas), z.unobserve(this._canvas)));
70818
70820
  }
70819
70821
  async freeze() {
70820
70822
  this._created && (await this._sendMessage("freeze", { instanceId: this._id }), await this._updateDotLottieInstanceState());
@@ -70966,7 +70968,7 @@ var Z = class e {
70966
70968
  }
70967
70969
  async _sendMessage(t, n, r) {
70968
70970
  let i = {
70969
- id: `dotlottie-request-${X()}`,
70971
+ id: `dotlottie-request-${Z()}`,
70970
70972
  method: t,
70971
70973
  params: n
70972
70974
  };
@@ -70989,7 +70991,7 @@ var Z = class e {
70989
70991
  }
70990
70992
  static async registerFont(t, n) {
70991
70993
  try {
70992
- let r = X();
70994
+ let r = Z();
70993
70995
  return e._workerManager.broadcastMessage({
70994
70996
  id: r,
70995
70997
  method: "registerFont",
@@ -71148,7 +71150,7 @@ var Z = class e {
71148
71150
  });
71149
71151
  }
71150
71152
  _onClick(e) {
71151
- let t = W(e);
71153
+ let t = G(e);
71152
71154
  t && this._sendMessage("stateMachinePostClickEvent", {
71153
71155
  instanceId: this._id,
71154
71156
  x: t.x,
@@ -71156,7 +71158,7 @@ var Z = class e {
71156
71158
  });
71157
71159
  }
71158
71160
  _onPointerUp(e) {
71159
- let t = W(e);
71161
+ let t = G(e);
71160
71162
  t && this._sendMessage("stateMachinePostPointerUpEvent", {
71161
71163
  instanceId: this._id,
71162
71164
  x: t.x,
@@ -71164,7 +71166,7 @@ var Z = class e {
71164
71166
  });
71165
71167
  }
71166
71168
  _onPointerDown(e) {
71167
- let t = W(e);
71169
+ let t = G(e);
71168
71170
  t && this._sendMessage("stateMachinePostPointerDownEvent", {
71169
71171
  instanceId: this._id,
71170
71172
  x: t.x,
@@ -71172,7 +71174,7 @@ var Z = class e {
71172
71174
  });
71173
71175
  }
71174
71176
  _onPointerMove(e) {
71175
- let t = W(e);
71177
+ let t = G(e);
71176
71178
  t && this._sendMessage("stateMachinePostPointerMoveEvent", {
71177
71179
  instanceId: this._id,
71178
71180
  x: t.x,
@@ -71180,7 +71182,7 @@ var Z = class e {
71180
71182
  });
71181
71183
  }
71182
71184
  _onPointerEnter(e) {
71183
- let t = W(e);
71185
+ let t = G(e);
71184
71186
  t && this._sendMessage("stateMachinePostPointerEnterEvent", {
71185
71187
  instanceId: this._id,
71186
71188
  x: t.x,
@@ -71188,7 +71190,7 @@ var Z = class e {
71188
71190
  });
71189
71191
  }
71190
71192
  _onPointerLeave(e) {
71191
- let t = W(e);
71193
+ let t = G(e);
71192
71194
  t && this._sendMessage("stateMachinePostPointerExitEvent", {
71193
71195
  instanceId: this._id,
71194
71196
  x: t.x,
@@ -71196,135 +71198,135 @@ var Z = class e {
71196
71198
  });
71197
71199
  }
71198
71200
  async _setupStateMachineListeners() {
71199
- if (p && this._canvas instanceof HTMLCanvasElement && this.isLoaded) {
71201
+ if (h && this._canvas instanceof HTMLCanvasElement && this.isLoaded) {
71200
71202
  let e = await this._sendMessage("stateMachineGetListeners", { instanceId: this._id });
71201
71203
  if (e.length === 0) return;
71202
71204
  this._cleanupStateMachineListeners(), e.includes("Click") && (this._boundOnClick = this._onClick.bind(this), this._canvas.addEventListener("click", this._boundOnClick)), e.includes("PointerUp") && (this._boundOnPointerUp = this._onPointerUp.bind(this), this._canvas.addEventListener("pointerup", this._boundOnPointerUp)), e.includes("PointerDown") && (this._boundOnPointerDown = this._onPointerDown.bind(this), this._canvas.addEventListener("pointerdown", this._boundOnPointerDown)), e.includes("PointerMove") && (this._boundOnPointerMove = this._onPointerMove.bind(this), this._canvas.addEventListener("pointermove", this._boundOnPointerMove)), e.includes("PointerEnter") && (this._boundOnPointerEnter = this._onPointerEnter.bind(this), this._canvas.addEventListener("pointerenter", this._boundOnPointerEnter)), e.includes("PointerExit") && (this._boundOnPointerLeave = this._onPointerLeave.bind(this), this._canvas.addEventListener("pointerleave", this._boundOnPointerLeave));
71203
71205
  }
71204
71206
  }
71205
71207
  _cleanupStateMachineListeners() {
71206
- p && this._canvas instanceof HTMLCanvasElement && (this._boundOnClick &&= (this._canvas.removeEventListener("click", this._boundOnClick), null), this._boundOnPointerUp &&= (this._canvas.removeEventListener("pointerup", this._boundOnPointerUp), null), this._boundOnPointerDown &&= (this._canvas.removeEventListener("pointerdown", this._boundOnPointerDown), null), this._boundOnPointerMove &&= (this._canvas.removeEventListener("pointermove", this._boundOnPointerMove), null), this._boundOnPointerEnter &&= (this._canvas.removeEventListener("pointerenter", this._boundOnPointerEnter), null), this._boundOnPointerLeave &&= (this._canvas.removeEventListener("pointerleave", this._boundOnPointerLeave), null));
71208
+ h && this._canvas instanceof HTMLCanvasElement && (this._boundOnClick &&= (this._canvas.removeEventListener("click", this._boundOnClick), null), this._boundOnPointerUp &&= (this._canvas.removeEventListener("pointerup", this._boundOnPointerUp), null), this._boundOnPointerDown &&= (this._canvas.removeEventListener("pointerdown", this._boundOnPointerDown), null), this._boundOnPointerMove &&= (this._canvas.removeEventListener("pointermove", this._boundOnPointerMove), null), this._boundOnPointerEnter &&= (this._canvas.removeEventListener("pointerenter", this._boundOnPointerEnter), null), this._boundOnPointerLeave &&= (this._canvas.removeEventListener("pointerleave", this._boundOnPointerLeave), null));
71207
71209
  }
71208
71210
  };
71209
- l(Z, "_workerManager", new he()), l(Z, "_wasmUrl", "");
71211
+ d(Q, "_workerManager", new ge()), d(Q, "_wasmUrl", "");
71210
71212
  //#endregion
71211
71213
  //#region node_modules/@lottiefiles/dotlottie-react/dist/index.js
71212
- var Q = r(), ge = ({ animationId: e, autoplay: t, backgroundColor: n, className: r, createDotLottie: i, data: o, dotLottieRefCallback: s, layout: c, loop: l, mode: u, playOnHover: d, renderConfig: f, segment: p, speed: m, src: h, stateMachineConfig: g, stateMachineId: _, style: v, themeData: y, themeId: b, useFrameInterpolation: x, workerId: S, ...C }) => {
71213
- let w = (0, a.useRef)(null), T = (0, a.useRef)(null), E = (0, a.useRef)(s), D = {
71214
- speed: m,
71215
- mode: u,
71216
- loop: l,
71217
- useFrameInterpolation: x,
71218
- segment: p,
71214
+ var _e = ({ animationId: e, autoplay: t, backgroundColor: n, className: o, createDotLottie: c, data: l, dotLottieRefCallback: u, layout: d, loop: f, mode: p, playOnHover: m, renderConfig: h, segment: g, speed: _, src: v, stateMachineConfig: y, stateMachineId: b, style: x, themeData: S, themeId: C, useFrameInterpolation: w, workerId: T, ...E }) => {
71215
+ let D = a(null), O = a(null), k = a(u), A = {
71216
+ speed: _,
71217
+ mode: p,
71218
+ loop: f,
71219
+ useFrameInterpolation: w,
71220
+ segment: g,
71219
71221
  backgroundColor: n,
71220
71222
  autoplay: t,
71221
- themeId: b,
71222
- workerId: S,
71223
- src: h,
71224
- data: o,
71225
- layout: c,
71226
- renderConfig: f,
71223
+ themeId: C,
71224
+ workerId: T,
71225
+ src: v,
71226
+ data: l,
71227
+ layout: d,
71228
+ renderConfig: h,
71227
71229
  animationId: e,
71228
- stateMachineConfig: g,
71229
- stateMachineId: _
71230
- }, O = (0, a.useRef)(D);
71231
- E.current = s, O.current = D;
71232
- let k = (0, a.useCallback)((e) => {
71233
- T.current = e, e ? w.current = i({
71234
- ...O.current,
71230
+ stateMachineConfig: y,
71231
+ stateMachineId: b
71232
+ }, j = a(A);
71233
+ k.current = u, j.current = A;
71234
+ let M = r((e) => {
71235
+ O.current = e, e ? D.current = c({
71236
+ ...j.current,
71235
71237
  canvas: e
71236
- }) : (w.current?.destroy(), w.current = null), E.current?.(w.current);
71238
+ }) : (D.current?.destroy(), D.current = null), k.current?.(D.current);
71237
71239
  }, []);
71238
- return (0, a.useEffect)(() => {
71240
+ return i(() => {
71239
71241
  let e = (e) => {
71240
- d && (e.type === "mouseenter" && w.current?.play(), e.type === "mouseleave" && w.current?.pause());
71242
+ m && (e.type === "mouseenter" && D.current?.play(), e.type === "mouseleave" && D.current?.pause());
71241
71243
  };
71242
- return T.current?.addEventListener("mouseenter", e), T.current?.addEventListener("mouseleave", e), () => {
71243
- T.current?.removeEventListener("mouseenter", e), T.current?.removeEventListener("mouseleave", e);
71244
+ return O.current?.addEventListener("mouseenter", e), O.current?.addEventListener("mouseleave", e), () => {
71245
+ O.current?.removeEventListener("mouseenter", e), O.current?.removeEventListener("mouseleave", e);
71244
71246
  };
71245
- }, [d]), (0, a.useEffect)(() => {
71246
- w.current?.setSpeed(m ?? 1);
71247
- }, [m]), (0, a.useEffect)(() => {
71248
- w.current?.setMode(u ?? "forward");
71249
- }, [u]), (0, a.useEffect)(() => {
71250
- w.current?.setLoop(l ?? !1);
71251
- }, [l]), (0, a.useEffect)(() => {
71252
- w.current?.setUseFrameInterpolation(x ?? !0);
71253
- }, [x]), (0, a.useEffect)(() => {
71254
- typeof p?.[0] == "number" && typeof p[1] == "number" ? w.current?.setSegment(p[0], p[1]) : w.current?.resetSegment();
71255
- }, [p]), (0, a.useEffect)(() => {
71256
- w.current?.setBackgroundColor(n ?? "");
71257
- }, [n]), (0, a.useEffect)(() => {
71258
- w.current?.setRenderConfig(f ?? {});
71259
- }, [JSON.stringify(f)]), (0, a.useEffect)(() => {
71260
- typeof o != "string" && typeof o != "object" || w.current?.load({
71261
- data: o,
71262
- ...O.current
71247
+ }, [m]), i(() => {
71248
+ D.current?.setSpeed(_ ?? 1);
71249
+ }, [_]), i(() => {
71250
+ D.current?.setMode(p ?? "forward");
71251
+ }, [p]), i(() => {
71252
+ D.current?.setLoop(f ?? !1);
71253
+ }, [f]), i(() => {
71254
+ D.current?.setUseFrameInterpolation(w ?? !0);
71255
+ }, [w]), i(() => {
71256
+ typeof g?.[0] == "number" && typeof g[1] == "number" ? D.current?.setSegment(g[0], g[1]) : D.current?.resetSegment();
71257
+ }, [g]), i(() => {
71258
+ D.current?.setBackgroundColor(n ?? "");
71259
+ }, [n]), i(() => {
71260
+ D.current?.setRenderConfig(h ?? {});
71261
+ }, [JSON.stringify(h)]), i(() => {
71262
+ typeof l != "string" && typeof l != "object" || D.current?.load({
71263
+ data: l,
71264
+ ...j.current
71263
71265
  });
71264
- }, [o]), (0, a.useEffect)(() => {
71265
- typeof h == "string" && w.current?.load({
71266
- src: h,
71267
- ...O.current
71266
+ }, [l]), i(() => {
71267
+ typeof v == "string" && D.current?.load({
71268
+ src: v,
71269
+ ...j.current
71268
71270
  });
71269
- }, [h]), (0, a.useEffect)(() => {
71270
- w.current?.setMarker(C.marker ?? "");
71271
- }, [C.marker]), (0, a.useEffect)(() => {
71272
- w.current?.isLoaded && w.current.activeAnimationId !== e && w.current.loadAnimation(e ?? "");
71273
- }, [e]), (0, a.useEffect)(() => {
71274
- typeof b == "string" && w.current?.setTheme(b);
71275
- }, [b]), (0, a.useEffect)(() => {
71276
- w.current?.setThemeData(y ?? "");
71277
- }, [y]), (0, a.useEffect)(() => {
71278
- w.current?.setLayout(c ?? {});
71271
+ }, [v]), i(() => {
71272
+ D.current?.setMarker(E.marker ?? "");
71273
+ }, [E.marker]), i(() => {
71274
+ D.current?.isLoaded && D.current.activeAnimationId !== e && D.current.loadAnimation(e ?? "");
71275
+ }, [e]), i(() => {
71276
+ typeof C == "string" && D.current?.setTheme(C);
71277
+ }, [C]), i(() => {
71278
+ D.current?.setThemeData(S ?? "");
71279
+ }, [S]), i(() => {
71280
+ D.current?.setLayout(d ?? {});
71279
71281
  }, [
71280
- c?.fit,
71281
- c?.align?.[0],
71282
- c?.align?.[1]
71283
- ]), (0, a.useEffect)(() => {
71284
- w.current?.isLoaded && (typeof _ == "string" && _ ? w.current.stateMachineLoad(_) && w.current.stateMachineStart() : w.current.stateMachineStop());
71285
- }, [_]), (0, a.useEffect)(() => {
71286
- w.current?.stateMachineSetConfig(g ?? null);
71287
- }, [g]), (0, Q.jsx)("div", {
71288
- className: r,
71289
- ...!r && { style: {
71282
+ d?.fit,
71283
+ d?.align?.[0],
71284
+ d?.align?.[1]
71285
+ ]), i(() => {
71286
+ D.current?.isLoaded && (typeof b == "string" && b ? D.current.stateMachineLoad(b) && D.current.stateMachineStart() : D.current.stateMachineStop());
71287
+ }, [b]), i(() => {
71288
+ D.current?.stateMachineSetConfig(y ?? null);
71289
+ }, [y]), s("div", {
71290
+ className: o,
71291
+ ...!o && { style: {
71290
71292
  width: "100%",
71291
71293
  height: "100%",
71292
71294
  lineHeight: 0,
71293
- ...v
71295
+ ...x
71294
71296
  } },
71295
- children: (0, Q.jsx)("canvas", {
71296
- ref: k,
71297
+ children: s("canvas", {
71298
+ ref: M,
71297
71299
  style: {
71298
71300
  width: "100%",
71299
71301
  height: "100%"
71300
71302
  },
71301
- ...C
71303
+ ...E
71302
71304
  })
71303
71305
  });
71304
- }, _e = (e) => new pe(e), ve = (e) => (0, Q.jsx)(ge, {
71306
+ }, ve = (e) => new me(e), ye = (e) => s(_e, {
71305
71307
  ...e,
71306
- createDotLottie: _e
71307
- }), $ = a.memo(({ item: t, play: r = !1, setDotLottie: i }) => {
71308
+ createDotLottie: ve
71309
+ }), $ = n.memo(({ item: n, play: r = !1, setDotLottie: i }) => {
71308
71310
  let a = (e) => {
71309
71311
  i(e);
71310
- }, o = e(), { lottieConfig: s } = t;
71311
- return /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: /* @__PURE__ */ (0, Q.jsx)(ve, {
71312
- src: n(o, t),
71312
+ }, c = e(), { lottieConfig: l } = n;
71313
+ return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(ye, {
71314
+ src: t(c, n),
71313
71315
  style: {
71314
71316
  width: "auto",
71315
71317
  height: "auto"
71316
71318
  },
71317
71319
  width: "100%",
71318
71320
  height: "100%",
71319
- autoplay: s?.autoplay,
71320
- mode: s?.mode ? s.mode : "forward",
71321
- loop: s?.autoplay && s?.loop,
71321
+ autoplay: l?.autoplay,
71322
+ mode: l?.mode ? l.mode : "forward",
71323
+ loop: l?.autoplay && l?.loop,
71322
71324
  dotLottieRefCallback: a,
71323
- speed: s?.speed || 1,
71325
+ speed: l?.speed || 1,
71324
71326
  renderConfig: { freezeOnOffscreen: r === !1 }
71325
71327
  }) });
71326
71328
  });
71327
71329
  $.displayName = "LottieFile";
71328
- var ye = a.memo($);
71330
+ var be = n.memo($);
71329
71331
  //#endregion
71330
- export { $ as LottieFile, ye as default };
71332
+ export { $ as LottieFile, be as default };