@epam/ai-dial-celebrations 1.2.0-dev.231 → 1.2.0-dev.232

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.
Files changed (29) hide show
  1. package/flying-characters-Czuzwf8T.js +40 -0
  2. package/halloween.js +1749 -1752
  3. package/index.css +1 -1
  4. package/lottie_light-DVla0_7m.js +4435 -0
  5. package/new-year/assets/gift-wrapping-elves.json.d.ts +4794 -0
  6. package/new-year/components/NewYear/types.d.ts +2 -0
  7. package/new-year/components/NewYear/types.d.ts.map +1 -1
  8. package/new-year/components/NewYearGiftWrapping/GiftWrappingArt.d.ts +13 -0
  9. package/new-year/components/NewYearGiftWrapping/GiftWrappingArt.d.ts.map +1 -0
  10. package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts +5 -0
  11. package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts.map +1 -0
  12. package/new-year/constants/labels.d.ts +8 -2
  13. package/new-year/constants/labels.d.ts.map +1 -1
  14. package/new-year/event.d.ts.map +1 -1
  15. package/new-year/models/labels.d.ts +2 -0
  16. package/new-year/models/labels.d.ts.map +1 -1
  17. package/new-year/utils/gift-wrapping-animation.d.ts +5 -0
  18. package/new-year/utils/gift-wrapping-animation.d.ts.map +1 -0
  19. package/new-year/utils/gift-wrapping-composition.d.ts +51 -0
  20. package/new-year/utils/gift-wrapping-composition.d.ts.map +1 -0
  21. package/new-year/utils/gift-wrapping-player.d.ts +8 -0
  22. package/new-year/utils/gift-wrapping-player.d.ts.map +1 -0
  23. package/new-year/utils/gift-wrapping-rig.d.ts +26 -0
  24. package/new-year/utils/gift-wrapping-rig.d.ts.map +1 -0
  25. package/new-year/utils/gift-wrapping-targets.d.ts +20 -0
  26. package/new-year/utils/gift-wrapping-targets.d.ts.map +1 -0
  27. package/new-year.js +1561 -97
  28. package/package.json +3 -2
  29. package/flying-characters-2UJGx5Nh.js +0 -36
@@ -0,0 +1,4435 @@
1
+ import { t as e } from "./new-year.js";
2
+ //#region ../../node_modules/lottie-web/build/player/lottie_light.js
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ typeof document < "u" && typeof navigator < "u" && (function(n, r) {
5
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.lottie = r());
6
+ })(e, (function() {
7
+ var n = "http://www.w3.org/2000/svg", r = "", i = !1, a = -999999, o = function(e) {
8
+ i = !!e;
9
+ }, s = function() {
10
+ return i;
11
+ }, c = function(e) {
12
+ r = e;
13
+ }, l = function() {
14
+ return r;
15
+ };
16
+ function u(e) {
17
+ return document.createElement(e);
18
+ }
19
+ function d(e, t) {
20
+ var n, r = e.length, i;
21
+ for (n = 0; n < r; n += 1) for (var a in i = e[n].prototype, i) Object.prototype.hasOwnProperty.call(i, a) && (t.prototype[a] = i[a]);
22
+ }
23
+ function f(e) {
24
+ function t() {}
25
+ return t.prototype = e, t;
26
+ }
27
+ var p = function() {
28
+ function e(e) {
29
+ this.audios = [], this.audioFactory = e, this._volume = 1, this._isMuted = !1;
30
+ }
31
+ return e.prototype = {
32
+ addAudio: function(e) {
33
+ this.audios.push(e);
34
+ },
35
+ pause: function() {
36
+ var e, t = this.audios.length;
37
+ for (e = 0; e < t; e += 1) this.audios[e].pause();
38
+ },
39
+ resume: function() {
40
+ var e, t = this.audios.length;
41
+ for (e = 0; e < t; e += 1) this.audios[e].resume();
42
+ },
43
+ setRate: function(e) {
44
+ var t, n = this.audios.length;
45
+ for (t = 0; t < n; t += 1) this.audios[t].setRate(e);
46
+ },
47
+ createAudio: function(e) {
48
+ return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ src: [e] }) : {
49
+ isPlaying: !1,
50
+ play: function() {
51
+ this.isPlaying = !0;
52
+ },
53
+ seek: function() {
54
+ this.isPlaying = !1;
55
+ },
56
+ playing: function() {},
57
+ rate: function() {},
58
+ setVolume: function() {}
59
+ };
60
+ },
61
+ setAudioFactory: function(e) {
62
+ this.audioFactory = e;
63
+ },
64
+ setVolume: function(e) {
65
+ this._volume = e, this._updateVolume();
66
+ },
67
+ mute: function() {
68
+ this._isMuted = !0, this._updateVolume();
69
+ },
70
+ unmute: function() {
71
+ this._isMuted = !1, this._updateVolume();
72
+ },
73
+ getVolume: function() {
74
+ return this._volume;
75
+ },
76
+ _updateVolume: function() {
77
+ var e, t = this.audios.length;
78
+ for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * +!this._isMuted);
79
+ }
80
+ }, function() {
81
+ return new e();
82
+ };
83
+ }(), m = function() {
84
+ function e(e, t) {
85
+ var n = 0, r = [], i;
86
+ switch (e) {
87
+ case "int16":
88
+ case "uint8c":
89
+ i = 1;
90
+ break;
91
+ default:
92
+ i = 1.1;
93
+ break;
94
+ }
95
+ for (n = 0; n < t; n += 1) r.push(i);
96
+ return r;
97
+ }
98
+ function t(t, n) {
99
+ return t === "float32" ? new Float32Array(n) : t === "int16" ? new Int16Array(n) : t === "uint8c" ? new Uint8ClampedArray(n) : e(t, n);
100
+ }
101
+ return typeof Uint8ClampedArray == "function" && typeof Float32Array == "function" ? t : e;
102
+ }();
103
+ function h(e) {
104
+ return Array.apply(null, { length: e });
105
+ }
106
+ function g(e) {
107
+ "@babel/helpers - typeof";
108
+ return g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
109
+ return typeof e;
110
+ } : function(e) {
111
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
112
+ }, g(e);
113
+ }
114
+ var _ = !0, v = null, y = null, b = "", x = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), S = Math.pow, C = Math.sqrt, w = Math.floor, T = Math.min, E = {};
115
+ (function() {
116
+ var e = /* @__PURE__ */ "abs.acos.acosh.asin.asinh.atan.atanh.atan2.ceil.cbrt.expm1.clz32.cos.cosh.exp.floor.fround.hypot.imul.log.log1p.log2.log10.max.min.pow.random.round.sign.sin.sinh.sqrt.tan.tanh.trunc.E.LN10.LN2.LOG10E.LOG2E.PI.SQRT1_2.SQRT2".split("."), t, n = e.length;
117
+ for (t = 0; t < n; t += 1) E[e[t]] = Math[e[t]];
118
+ })(), E.random = Math.random, E.abs = function(e) {
119
+ if (g(e) === "object" && e.length) {
120
+ var t = h(e.length), n, r = e.length;
121
+ for (n = 0; n < r; n += 1) t[n] = Math.abs(e[n]);
122
+ return t;
123
+ }
124
+ return Math.abs(e);
125
+ };
126
+ var D = 150, O = Math.PI / 180, k = .5519;
127
+ function A(e, t, n, r) {
128
+ this.type = e, this.currentTime = t, this.totalTime = n, this.direction = r < 0 ? -1 : 1;
129
+ }
130
+ function j(e, t) {
131
+ this.type = e, this.direction = t < 0 ? -1 : 1;
132
+ }
133
+ function M(e, t, n, r) {
134
+ this.type = e, this.currentLoop = n, this.totalLoops = t, this.direction = r < 0 ? -1 : 1;
135
+ }
136
+ function N(e, t, n) {
137
+ this.type = e, this.firstFrame = t, this.totalFrames = n;
138
+ }
139
+ function P(e, t) {
140
+ this.type = e, this.target = t;
141
+ }
142
+ function F(e, t) {
143
+ this.type = "renderFrameError", this.nativeError = e, this.currentTime = t;
144
+ }
145
+ function ee(e) {
146
+ this.type = "configError", this.nativeError = e;
147
+ }
148
+ var I = function() {
149
+ var e = 0;
150
+ return function() {
151
+ return e += 1, b + "__lottie_element_" + e;
152
+ };
153
+ }();
154
+ function te(e, t, n) {
155
+ var r, i, a, o = Math.floor(e * 6), s = e * 6 - o, c = n * (1 - t), l = n * (1 - s * t), u = n * (1 - (1 - s) * t);
156
+ switch (o % 6) {
157
+ case 0:
158
+ r = n, i = u, a = c;
159
+ break;
160
+ case 1:
161
+ r = l, i = n, a = c;
162
+ break;
163
+ case 2:
164
+ r = c, i = n, a = u;
165
+ break;
166
+ case 3:
167
+ r = c, i = l, a = n;
168
+ break;
169
+ case 4:
170
+ r = u, i = c, a = n;
171
+ break;
172
+ case 5:
173
+ r = n, i = c, a = l;
174
+ break;
175
+ default: break;
176
+ }
177
+ return [
178
+ r,
179
+ i,
180
+ a
181
+ ];
182
+ }
183
+ function ne(e, t, n) {
184
+ var r = Math.max(e, t, n), i = Math.min(e, t, n), a = r - i, o, s = r === 0 ? 0 : a / r, c = r / 255;
185
+ switch (r) {
186
+ case i:
187
+ o = 0;
188
+ break;
189
+ case e:
190
+ o = t - n + a * (t < n ? 6 : 0), o /= 6 * a;
191
+ break;
192
+ case t:
193
+ o = n - e + a * 2, o /= 6 * a;
194
+ break;
195
+ case n:
196
+ o = e - t + a * 4, o /= 6 * a;
197
+ break;
198
+ default: break;
199
+ }
200
+ return [
201
+ o,
202
+ s,
203
+ c
204
+ ];
205
+ }
206
+ function re(e, t) {
207
+ var n = ne(e[0] * 255, e[1] * 255, e[2] * 255);
208
+ return n[1] += t, n[1] > 1 ? n[1] = 1 : n[1] <= 0 && (n[1] = 0), te(n[0], n[1], n[2]);
209
+ }
210
+ function ie(e, t) {
211
+ var n = ne(e[0] * 255, e[1] * 255, e[2] * 255);
212
+ return n[2] += t, n[2] > 1 ? n[2] = 1 : n[2] < 0 && (n[2] = 0), te(n[0], n[1], n[2]);
213
+ }
214
+ function ae(e, t) {
215
+ var n = ne(e[0] * 255, e[1] * 255, e[2] * 255);
216
+ return n[0] += t / 360, n[0] > 1 ? --n[0] : n[0] < 0 && (n[0] += 1), te(n[0], n[1], n[2]);
217
+ }
218
+ (function() {
219
+ var e = [], t, n;
220
+ for (t = 0; t < 256; t += 1) n = t.toString(16), e[t] = n.length === 1 ? "0" + n : n;
221
+ return function(t, n, r) {
222
+ return t < 0 && (t = 0), n < 0 && (n = 0), r < 0 && (r = 0), "#" + e[t] + e[n] + e[r];
223
+ };
224
+ })();
225
+ var oe = function(e) {
226
+ _ = !!e;
227
+ }, se = function() {
228
+ return _;
229
+ }, ce = function(e) {
230
+ v = e;
231
+ }, le = function() {
232
+ return v;
233
+ }, ue = function() {
234
+ return y;
235
+ }, de = function(e) {
236
+ D = e;
237
+ }, fe = function() {
238
+ return D;
239
+ }, pe = function(e) {
240
+ b = e;
241
+ };
242
+ function L(e) {
243
+ return document.createElementNS(n, e);
244
+ }
245
+ function R(e) {
246
+ "@babel/helpers - typeof";
247
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
248
+ return typeof e;
249
+ } : function(e) {
250
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
251
+ }, R(e);
252
+ }
253
+ var z = function() {
254
+ var e = 1, t = [], n, r, i = {
255
+ onmessage: function() {},
256
+ postMessage: function(e) {
257
+ n({ data: e });
258
+ }
259
+ }, a = { postMessage: function(e) {
260
+ i.onmessage({ data: e });
261
+ } };
262
+ function o(e) {
263
+ if (window.Worker && window.Blob && s()) {
264
+ var t = new Blob(["var _workerSelf = self; self.onmessage = ", e.toString()], { type: "text/javascript" }), r = URL.createObjectURL(t);
265
+ return new Worker(r);
266
+ }
267
+ return n = e, i;
268
+ }
269
+ function c() {
270
+ r || (r = o(function(e) {
271
+ function t() {
272
+ function e(t, n) {
273
+ var o, s, c = t.length, l, u, d, f;
274
+ for (s = 0; s < c; s += 1) if (o = t[s], "ks" in o && !o.completed) {
275
+ if (o.completed = !0, o.hasMask) {
276
+ var m = o.masksProperties;
277
+ for (u = m.length, l = 0; l < u; l += 1) if (m[l].pt.k.i) a(m[l].pt.k);
278
+ else for (f = m[l].pt.k.length, d = 0; d < f; d += 1) m[l].pt.k[d].s && a(m[l].pt.k[d].s[0]), m[l].pt.k[d].e && a(m[l].pt.k[d].e[0]);
279
+ }
280
+ o.ty === 0 ? (o.layers = r(o.refId, n), e(o.layers, n)) : o.ty === 4 ? i(o.shapes) : o.ty === 5 && p(o);
281
+ }
282
+ }
283
+ function t(t, n) {
284
+ if (t) {
285
+ var i = 0, a = t.length;
286
+ for (i = 0; i < a; i += 1) t[i].t === 1 && (t[i].data.layers = r(t[i].data.refId, n), e(t[i].data.layers, n));
287
+ }
288
+ }
289
+ function n(e, t) {
290
+ for (var n = 0, r = t.length; n < r;) {
291
+ if (t[n].id === e) return t[n];
292
+ n += 1;
293
+ }
294
+ return null;
295
+ }
296
+ function r(e, t) {
297
+ var r = n(e, t);
298
+ return r ? r.layers.__used ? JSON.parse(JSON.stringify(r.layers)) : (r.layers.__used = !0, r.layers) : null;
299
+ }
300
+ function i(e) {
301
+ var t, n = e.length, r, o;
302
+ for (t = n - 1; t >= 0; --t) if (e[t].ty === "sh") if (e[t].ks.k.i) a(e[t].ks.k);
303
+ else for (o = e[t].ks.k.length, r = 0; r < o; r += 1) e[t].ks.k[r].s && a(e[t].ks.k[r].s[0]), e[t].ks.k[r].e && a(e[t].ks.k[r].e[0]);
304
+ else e[t].ty === "gr" && i(e[t].it);
305
+ }
306
+ function a(e) {
307
+ var t, n = e.i.length;
308
+ for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1];
309
+ }
310
+ function o(e, t) {
311
+ var n = t ? t.split(".") : [
312
+ 100,
313
+ 100,
314
+ 100
315
+ ];
316
+ return e[0] > n[0] ? !0 : n[0] > e[0] ? !1 : e[1] > n[1] ? !0 : n[1] > e[1] ? !1 : e[2] > n[2] ? !0 : n[2] > e[2] ? !1 : null;
317
+ }
318
+ var s = function() {
319
+ var e = [
320
+ 4,
321
+ 4,
322
+ 14
323
+ ];
324
+ function t(e) {
325
+ var t = e.t.d;
326
+ e.t.d = { k: [{
327
+ s: t,
328
+ t: 0
329
+ }] };
330
+ }
331
+ function n(e) {
332
+ var n, r = e.length;
333
+ for (n = 0; n < r; n += 1) e[n].ty === 5 && t(e[n]);
334
+ }
335
+ return function(t) {
336
+ if (o(e, t.v) && (n(t.layers), t.assets)) {
337
+ var r, i = t.assets.length;
338
+ for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
339
+ }
340
+ };
341
+ }(), c = function() {
342
+ var e = [
343
+ 4,
344
+ 7,
345
+ 99
346
+ ];
347
+ return function(t) {
348
+ if (t.chars && !o(e, t.v)) {
349
+ var n, r = t.chars.length;
350
+ for (n = 0; n < r; n += 1) {
351
+ var a = t.chars[n];
352
+ a.data && a.data.shapes && (i(a.data.shapes), a.data.ip = 0, a.data.op = 99999, a.data.st = 0, a.data.sr = 1, a.data.ks = {
353
+ p: {
354
+ k: [0, 0],
355
+ a: 0
356
+ },
357
+ s: {
358
+ k: [100, 100],
359
+ a: 0
360
+ },
361
+ a: {
362
+ k: [0, 0],
363
+ a: 0
364
+ },
365
+ r: {
366
+ k: 0,
367
+ a: 0
368
+ },
369
+ o: {
370
+ k: 100,
371
+ a: 0
372
+ }
373
+ }, t.chars[n].t || (a.data.shapes.push({ ty: "no" }), a.data.shapes[0].it.push({
374
+ p: {
375
+ k: [0, 0],
376
+ a: 0
377
+ },
378
+ s: {
379
+ k: [100, 100],
380
+ a: 0
381
+ },
382
+ a: {
383
+ k: [0, 0],
384
+ a: 0
385
+ },
386
+ r: {
387
+ k: 0,
388
+ a: 0
389
+ },
390
+ o: {
391
+ k: 100,
392
+ a: 0
393
+ },
394
+ sk: {
395
+ k: 0,
396
+ a: 0
397
+ },
398
+ sa: {
399
+ k: 0,
400
+ a: 0
401
+ },
402
+ ty: "tr"
403
+ })));
404
+ }
405
+ }
406
+ };
407
+ }(), l = function() {
408
+ var e = [
409
+ 5,
410
+ 7,
411
+ 15
412
+ ];
413
+ function t(e) {
414
+ var t = e.t.p;
415
+ typeof t.a == "number" && (t.a = {
416
+ a: 0,
417
+ k: t.a
418
+ }), typeof t.p == "number" && (t.p = {
419
+ a: 0,
420
+ k: t.p
421
+ }), typeof t.r == "number" && (t.r = {
422
+ a: 0,
423
+ k: t.r
424
+ });
425
+ }
426
+ function n(e) {
427
+ var n, r = e.length;
428
+ for (n = 0; n < r; n += 1) e[n].ty === 5 && t(e[n]);
429
+ }
430
+ return function(t) {
431
+ if (o(e, t.v) && (n(t.layers), t.assets)) {
432
+ var r, i = t.assets.length;
433
+ for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
434
+ }
435
+ };
436
+ }(), u = function() {
437
+ var e = [
438
+ 4,
439
+ 1,
440
+ 9
441
+ ];
442
+ function t(e) {
443
+ var n, r = e.length, i, a;
444
+ for (n = 0; n < r; n += 1) if (e[n].ty === "gr") t(e[n].it);
445
+ else if (e[n].ty === "fl" || e[n].ty === "st") if (e[n].c.k && e[n].c.k[0].i) for (a = e[n].c.k.length, i = 0; i < a; i += 1) e[n].c.k[i].s && (e[n].c.k[i].s[0] /= 255, e[n].c.k[i].s[1] /= 255, e[n].c.k[i].s[2] /= 255, e[n].c.k[i].s[3] /= 255), e[n].c.k[i].e && (e[n].c.k[i].e[0] /= 255, e[n].c.k[i].e[1] /= 255, e[n].c.k[i].e[2] /= 255, e[n].c.k[i].e[3] /= 255);
446
+ else e[n].c.k[0] /= 255, e[n].c.k[1] /= 255, e[n].c.k[2] /= 255, e[n].c.k[3] /= 255;
447
+ }
448
+ function n(e) {
449
+ var n, r = e.length;
450
+ for (n = 0; n < r; n += 1) e[n].ty === 4 && t(e[n].shapes);
451
+ }
452
+ return function(t) {
453
+ if (o(e, t.v) && (n(t.layers), t.assets)) {
454
+ var r, i = t.assets.length;
455
+ for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
456
+ }
457
+ };
458
+ }(), d = function() {
459
+ var e = [
460
+ 4,
461
+ 4,
462
+ 18
463
+ ];
464
+ function t(e) {
465
+ var n, r = e.length, i, a;
466
+ for (n = r - 1; n >= 0; --n) if (e[n].ty === "sh") if (e[n].ks.k.i) e[n].ks.k.c = e[n].closed;
467
+ else for (a = e[n].ks.k.length, i = 0; i < a; i += 1) e[n].ks.k[i].s && (e[n].ks.k[i].s[0].c = e[n].closed), e[n].ks.k[i].e && (e[n].ks.k[i].e[0].c = e[n].closed);
468
+ else e[n].ty === "gr" && t(e[n].it);
469
+ }
470
+ function n(e) {
471
+ var n, r, i = e.length, a, o, s, c;
472
+ for (r = 0; r < i; r += 1) {
473
+ if (n = e[r], n.hasMask) {
474
+ var l = n.masksProperties;
475
+ for (o = l.length, a = 0; a < o; a += 1) if (l[a].pt.k.i) l[a].pt.k.c = l[a].cl;
476
+ else for (c = l[a].pt.k.length, s = 0; s < c; s += 1) l[a].pt.k[s].s && (l[a].pt.k[s].s[0].c = l[a].cl), l[a].pt.k[s].e && (l[a].pt.k[s].e[0].c = l[a].cl);
477
+ }
478
+ n.ty === 4 && t(n.shapes);
479
+ }
480
+ }
481
+ return function(t) {
482
+ if (o(e, t.v) && (n(t.layers), t.assets)) {
483
+ var r, i = t.assets.length;
484
+ for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
485
+ }
486
+ };
487
+ }();
488
+ function f(n) {
489
+ n.__complete ||= (u(n), s(n), c(n), l(n), d(n), e(n.layers, n.assets), t(n.chars, n.assets), !0);
490
+ }
491
+ function p(e) {
492
+ e.t.a.length === 0 && "m" in e.t.p;
493
+ }
494
+ var m = {};
495
+ return m.completeData = f, m.checkColors = u, m.checkChars = c, m.checkPathProperties = l, m.checkShapes = d, m.completeLayers = e, m;
496
+ }
497
+ if (a.dataManager ||= t(), a.assetLoader ||= function() {
498
+ function e(e) {
499
+ var t = e.getResponseHeader("content-type");
500
+ return t && e.responseType === "json" && t.indexOf("json") !== -1 || e.response && R(e.response) === "object" ? e.response : e.response && typeof e.response == "string" ? JSON.parse(e.response) : e.responseText ? JSON.parse(e.responseText) : null;
501
+ }
502
+ function t(t, n, r, i) {
503
+ var a, o = new XMLHttpRequest();
504
+ try {
505
+ o.responseType = "json";
506
+ } catch {}
507
+ o.onreadystatechange = function() {
508
+ if (o.readyState === 4) if (o.status === 200) a = e(o), r(a);
509
+ else try {
510
+ a = e(o), r(a);
511
+ } catch (e) {
512
+ i && i(e);
513
+ }
514
+ };
515
+ try {
516
+ o.open([
517
+ "G",
518
+ "E",
519
+ "T"
520
+ ].join(""), t, !0);
521
+ } catch {
522
+ o.open([
523
+ "G",
524
+ "E",
525
+ "T"
526
+ ].join(""), n + "/" + t, !0);
527
+ }
528
+ o.send();
529
+ }
530
+ return { load: t };
531
+ }(), e.data.type === "loadAnimation") a.assetLoader.load(e.data.path, e.data.fullPath, function(t) {
532
+ a.dataManager.completeData(t), a.postMessage({
533
+ id: e.data.id,
534
+ payload: t,
535
+ status: "success"
536
+ });
537
+ }, function() {
538
+ a.postMessage({
539
+ id: e.data.id,
540
+ status: "error"
541
+ });
542
+ });
543
+ else if (e.data.type === "complete") {
544
+ var n = e.data.animation;
545
+ a.dataManager.completeData(n), a.postMessage({
546
+ id: e.data.id,
547
+ payload: n,
548
+ status: "success"
549
+ });
550
+ } else e.data.type === "loadData" && a.assetLoader.load(e.data.path, e.data.fullPath, function(t) {
551
+ a.postMessage({
552
+ id: e.data.id,
553
+ payload: t,
554
+ status: "success"
555
+ });
556
+ }, function() {
557
+ a.postMessage({
558
+ id: e.data.id,
559
+ status: "error"
560
+ });
561
+ });
562
+ }), r.onmessage = function(e) {
563
+ var n = e.data, r = n.id, i = t[r];
564
+ t[r] = null, n.status === "success" ? i.onComplete(n.payload) : i.onError && i.onError();
565
+ });
566
+ }
567
+ function l(n, r) {
568
+ e += 1;
569
+ var i = "processId_" + e;
570
+ return t[i] = {
571
+ onComplete: n,
572
+ onError: r
573
+ }, i;
574
+ }
575
+ function u(e, t, n) {
576
+ c();
577
+ var i = l(t, n);
578
+ r.postMessage({
579
+ type: "loadAnimation",
580
+ path: e,
581
+ fullPath: window.location.origin + window.location.pathname,
582
+ id: i
583
+ });
584
+ }
585
+ function d(e, t, n) {
586
+ c();
587
+ var i = l(t, n);
588
+ r.postMessage({
589
+ type: "loadData",
590
+ path: e,
591
+ fullPath: window.location.origin + window.location.pathname,
592
+ id: i
593
+ });
594
+ }
595
+ function f(e, t, n) {
596
+ c();
597
+ var i = l(t, n);
598
+ r.postMessage({
599
+ type: "complete",
600
+ animation: e,
601
+ id: i
602
+ });
603
+ }
604
+ return {
605
+ loadAnimation: u,
606
+ loadData: d,
607
+ completeAnimation: f
608
+ };
609
+ }(), me = function() {
610
+ var e = function() {
611
+ var e = u("canvas");
612
+ e.width = 1, e.height = 1;
613
+ var t = e.getContext("2d");
614
+ return t.fillStyle = "rgba(0,0,0,0)", t.fillRect(0, 0, 1, 1), e;
615
+ }();
616
+ function t() {
617
+ this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
618
+ }
619
+ function n() {
620
+ this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
621
+ }
622
+ function r(e, t, n) {
623
+ var r = "";
624
+ if (e.e) r = e.p;
625
+ else if (t) {
626
+ var i = e.p;
627
+ i.indexOf("images/") !== -1 && (i = i.split("/")[1]), r = t + i;
628
+ } else r = n, r += e.u ? e.u : "", r += e.p;
629
+ return r;
630
+ }
631
+ function i(e) {
632
+ var t = 0, n = setInterval(function() {
633
+ (e.getBBox().width || t > 500) && (this._imageLoaded(), clearInterval(n)), t += 1;
634
+ }.bind(this), 50);
635
+ }
636
+ function a(t) {
637
+ var n = r(t, this.assetsPath, this.path), i = L("image");
638
+ x ? this.testImageLoaded(i) : i.addEventListener("load", this._imageLoaded, !1), i.addEventListener("error", function() {
639
+ a.img = e, this._imageLoaded();
640
+ }.bind(this), !1), i.setAttributeNS("http://www.w3.org/1999/xlink", "href", n), this._elementHelper.append ? this._elementHelper.append(i) : this._elementHelper.appendChild(i);
641
+ var a = {
642
+ img: i,
643
+ assetData: t
644
+ };
645
+ return a;
646
+ }
647
+ function o(t) {
648
+ var n = r(t, this.assetsPath, this.path), i = u("img");
649
+ i.crossOrigin = "anonymous", i.addEventListener("load", this._imageLoaded, !1), i.addEventListener("error", function() {
650
+ a.img = e, this._imageLoaded();
651
+ }.bind(this), !1), i.src = n;
652
+ var a = {
653
+ img: i,
654
+ assetData: t
655
+ };
656
+ return a;
657
+ }
658
+ function s(e) {
659
+ var t = { assetData: e }, n = r(e, this.assetsPath, this.path);
660
+ return z.loadData(n, function(e) {
661
+ t.img = e, this._footageLoaded();
662
+ }.bind(this), function() {
663
+ t.img = {}, this._footageLoaded();
664
+ }.bind(this)), t;
665
+ }
666
+ function c(e, t) {
667
+ this.imagesLoadedCb = t;
668
+ var n, r = e.length;
669
+ for (n = 0; n < r; n += 1) e[n].layers || (!e[n].t || e[n].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(e[n]))) : e[n].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(e[n]))));
670
+ }
671
+ function l(e) {
672
+ this.path = e || "";
673
+ }
674
+ function d(e) {
675
+ this.assetsPath = e || "";
676
+ }
677
+ function f(e) {
678
+ for (var t = 0, n = this.images.length; t < n;) {
679
+ if (this.images[t].assetData === e) return this.images[t].img;
680
+ t += 1;
681
+ }
682
+ return null;
683
+ }
684
+ function p() {
685
+ this.imagesLoadedCb = null, this.images.length = 0;
686
+ }
687
+ function m() {
688
+ return this.totalImages === this.loadedAssets;
689
+ }
690
+ function h() {
691
+ return this.totalFootages === this.loadedFootagesCount;
692
+ }
693
+ function g(e, t) {
694
+ e === "svg" ? (this._elementHelper = t, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
695
+ }
696
+ function _() {
697
+ this._imageLoaded = t.bind(this), this._footageLoaded = n.bind(this), this.testImageLoaded = i.bind(this), this.createFootageData = s.bind(this), this.assetsPath = "", this.path = "", this.totalImages = 0, this.totalFootages = 0, this.loadedAssets = 0, this.loadedFootagesCount = 0, this.imagesLoadedCb = null, this.images = [];
698
+ }
699
+ return _.prototype = {
700
+ loadAssets: c,
701
+ setAssetsPath: d,
702
+ setPath: l,
703
+ loadedImages: m,
704
+ loadedFootages: h,
705
+ destroy: p,
706
+ getAsset: f,
707
+ createImgData: o,
708
+ createImageData: a,
709
+ imageLoaded: t,
710
+ footageLoaded: n,
711
+ setCacheType: g
712
+ }, _;
713
+ }();
714
+ function he() {}
715
+ he.prototype = {
716
+ triggerEvent: function(e, t) {
717
+ if (this._cbs[e]) for (var n = this._cbs[e], r = 0; r < n.length; r += 1) n[r](t);
718
+ },
719
+ addEventListener: function(e, t) {
720
+ return this._cbs[e] || (this._cbs[e] = []), this._cbs[e].push(t), function() {
721
+ this.removeEventListener(e, t);
722
+ }.bind(this);
723
+ },
724
+ removeEventListener: function(e, t) {
725
+ if (!t) this._cbs[e] = null;
726
+ else if (this._cbs[e]) {
727
+ for (var n = 0, r = this._cbs[e].length; n < r;) this._cbs[e][n] === t && (this._cbs[e].splice(n, 1), --n, --r), n += 1;
728
+ this._cbs[e].length || (this._cbs[e] = null);
729
+ }
730
+ }
731
+ };
732
+ var ge = function() {
733
+ function e(e) {
734
+ for (var t = e.split("\r\n"), n = {}, r, i = 0, a = 0; a < t.length; a += 1) r = t[a].split(":"), r.length === 2 && (n[r[0]] = r[1].trim(), i += 1);
735
+ if (i === 0) throw Error();
736
+ return n;
737
+ }
738
+ return function(t) {
739
+ for (var n = [], r = 0; r < t.length; r += 1) {
740
+ var i = t[r], a = {
741
+ time: i.tm,
742
+ duration: i.dr
743
+ };
744
+ try {
745
+ a.payload = JSON.parse(t[r].cm);
746
+ } catch {
747
+ try {
748
+ a.payload = e(t[r].cm);
749
+ } catch {
750
+ a.payload = { name: t[r].cm };
751
+ }
752
+ }
753
+ n.push(a);
754
+ }
755
+ return n;
756
+ };
757
+ }(), _e = function() {
758
+ function e(e) {
759
+ this.compositions.push(e);
760
+ }
761
+ return function() {
762
+ function t(e) {
763
+ for (var t = 0, n = this.compositions.length; t < n;) {
764
+ if (this.compositions[t].data && this.compositions[t].data.nm === e) return this.compositions[t].prepareFrame && this.compositions[t].data.xt && this.compositions[t].prepareFrame(this.currentFrame), this.compositions[t].compInterface;
765
+ t += 1;
766
+ }
767
+ return null;
768
+ }
769
+ return t.compositions = [], t.currentFrame = 0, t.registerComposition = e, t;
770
+ };
771
+ }(), ve = {}, ye = function(e, t) {
772
+ ve[e] = t;
773
+ };
774
+ function be(e) {
775
+ return ve[e];
776
+ }
777
+ function xe() {
778
+ if (ve.canvas) return "canvas";
779
+ for (var e in ve) if (ve[e]) return e;
780
+ return "";
781
+ }
782
+ function Se(e) {
783
+ "@babel/helpers - typeof";
784
+ return Se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
785
+ return typeof e;
786
+ } : function(e) {
787
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
788
+ }, Se(e);
789
+ }
790
+ var B = function() {
791
+ this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = I(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = se(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = _e(), this.imagePreloader = new me(), this.audioController = p(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new A("drawnFrame", 0, 0, 0), this.expressionsPlugin = le();
792
+ };
793
+ d([he], B), B.prototype.setParams = function(e) {
794
+ (e.wrapper || e.container) && (this.wrapper = e.wrapper || e.container);
795
+ var t = "svg";
796
+ e.animType ? t = e.animType : e.renderer && (t = e.renderer);
797
+ var n = be(t);
798
+ this.renderer = new n(this, e.rendererSettings), this.imagePreloader.setCacheType(t, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = t, e.loop === "" || e.loop === null || e.loop === void 0 || e.loop === !0 ? this.loop = !0 : e.loop === !1 ? this.loop = !1 : this.loop = parseInt(e.loop, 10), this.autoplay = "autoplay" in e ? e.autoplay : !0, this.name = e.name ? e.name : "", this.autoloadSegments = Object.prototype.hasOwnProperty.call(e, "autoloadSegments") ? e.autoloadSegments : !0, this.assetsPath = e.assetsPath, this.initialSegment = e.initialSegment, e.audioFactory && this.audioController.setAudioFactory(e.audioFactory), e.animationData ? this.setupAnimation(e.animationData) : e.path && (e.path.lastIndexOf("\\") === -1 ? this.path = e.path.substr(0, e.path.lastIndexOf("/") + 1) : this.path = e.path.substr(0, e.path.lastIndexOf("\\") + 1), this.fileName = e.path.substr(e.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), z.loadAnimation(e.path, this.configAnimation, this.onSetupError));
799
+ }, B.prototype.onSetupError = function() {
800
+ this.trigger("data_failed");
801
+ }, B.prototype.setupAnimation = function(e) {
802
+ z.completeAnimation(e, this.configAnimation);
803
+ }, B.prototype.setData = function(e, t) {
804
+ t && Se(t) !== "object" && (t = JSON.parse(t));
805
+ var n = {
806
+ wrapper: e,
807
+ animationData: t
808
+ }, r = e.attributes;
809
+ n.path = r.getNamedItem("data-animation-path") ? r.getNamedItem("data-animation-path").value : r.getNamedItem("data-bm-path") ? r.getNamedItem("data-bm-path").value : r.getNamedItem("bm-path") ? r.getNamedItem("bm-path").value : "", n.animType = r.getNamedItem("data-anim-type") ? r.getNamedItem("data-anim-type").value : r.getNamedItem("data-bm-type") ? r.getNamedItem("data-bm-type").value : r.getNamedItem("bm-type") ? r.getNamedItem("bm-type").value : r.getNamedItem("data-bm-renderer") ? r.getNamedItem("data-bm-renderer").value : r.getNamedItem("bm-renderer") ? r.getNamedItem("bm-renderer").value : xe() || "canvas";
810
+ var i = r.getNamedItem("data-anim-loop") ? r.getNamedItem("data-anim-loop").value : r.getNamedItem("data-bm-loop") ? r.getNamedItem("data-bm-loop").value : r.getNamedItem("bm-loop") ? r.getNamedItem("bm-loop").value : "";
811
+ i === "false" ? n.loop = !1 : i === "true" ? n.loop = !0 : i !== "" && (n.loop = parseInt(i, 10)), n.autoplay = (r.getNamedItem("data-anim-autoplay") ? r.getNamedItem("data-anim-autoplay").value : r.getNamedItem("data-bm-autoplay") ? r.getNamedItem("data-bm-autoplay").value : r.getNamedItem("bm-autoplay") ? r.getNamedItem("bm-autoplay").value : !0) !== "false", n.name = r.getNamedItem("data-name") ? r.getNamedItem("data-name").value : r.getNamedItem("data-bm-name") ? r.getNamedItem("data-bm-name").value : r.getNamedItem("bm-name") ? r.getNamedItem("bm-name").value : "", (r.getNamedItem("data-anim-prerender") ? r.getNamedItem("data-anim-prerender").value : r.getNamedItem("data-bm-prerender") ? r.getNamedItem("data-bm-prerender").value : r.getNamedItem("bm-prerender") ? r.getNamedItem("bm-prerender").value : "") === "false" && (n.prerender = !1), n.path ? this.setParams(n) : this.trigger("destroy");
812
+ }, B.prototype.includeLayers = function(e) {
813
+ e.op > this.animationData.op && (this.animationData.op = e.op, this.totalFrames = Math.floor(e.op - this.animationData.ip));
814
+ var t = this.animationData.layers, n, r = t.length, i = e.layers, a, o = i.length;
815
+ for (a = 0; a < o; a += 1) for (n = 0; n < r;) {
816
+ if (t[n].id === i[a].id) {
817
+ t[n] = i[a];
818
+ break;
819
+ }
820
+ n += 1;
821
+ }
822
+ if ((e.chars || e.fonts) && (this.renderer.globalData.fontManager.addChars(e.chars), this.renderer.globalData.fontManager.addFonts(e.fonts, this.renderer.globalData.defs)), e.assets) for (r = e.assets.length, n = 0; n < r; n += 1) this.animationData.assets.push(e.assets[n]);
823
+ this.animationData.__complete = !1, z.completeAnimation(this.animationData, this.onSegmentComplete);
824
+ }, B.prototype.onSegmentComplete = function(e) {
825
+ this.animationData = e;
826
+ var t = le();
827
+ t && t.initExpressions(this), this.loadNextSegment();
828
+ }, B.prototype.loadNextSegment = function() {
829
+ var e = this.animationData.segments;
830
+ if (!e || e.length === 0 || !this.autoloadSegments) {
831
+ this.trigger("data_ready"), this.timeCompleted = this.totalFrames;
832
+ return;
833
+ }
834
+ var t = e.shift();
835
+ this.timeCompleted = t.time * this.frameRate;
836
+ var n = this.path + this.fileName + "_" + this.segmentPos + ".json";
837
+ this.segmentPos += 1, z.loadData(n, this.includeLayers.bind(this), function() {
838
+ this.trigger("data_failed");
839
+ }.bind(this));
840
+ }, B.prototype.loadSegments = function() {
841
+ this.animationData.segments || (this.timeCompleted = this.totalFrames), this.loadNextSegment();
842
+ }, B.prototype.imagesLoaded = function() {
843
+ this.trigger("loaded_images"), this.checkLoaded();
844
+ }, B.prototype.preloadImages = function() {
845
+ this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
846
+ }, B.prototype.configAnimation = function(e) {
847
+ if (this.renderer) try {
848
+ this.animationData = e, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(e), e.assets ||= [], this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(e.assets), this.markers = ge(e.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
849
+ } catch (e) {
850
+ this.triggerConfigError(e);
851
+ }
852
+ }, B.prototype.waitForFontsLoaded = function() {
853
+ this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20));
854
+ }, B.prototype.checkLoaded = function() {
855
+ if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
856
+ this.isLoaded = !0;
857
+ var e = le();
858
+ e && e.initExpressions(this), this.renderer.initItems(), setTimeout(function() {
859
+ this.trigger("DOMLoaded");
860
+ }.bind(this), 0), this.gotoFrame(), this.autoplay && this.play();
861
+ }
862
+ }, B.prototype.resize = function(e, t) {
863
+ var n = typeof e == "number" ? e : void 0, r = typeof t == "number" ? t : void 0;
864
+ this.renderer.updateContainerSize(n, r);
865
+ }, B.prototype.setSubframe = function(e) {
866
+ this.isSubframeEnabled = !!e;
867
+ }, B.prototype.gotoFrame = function() {
868
+ this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame");
869
+ }, B.prototype.renderFrame = function() {
870
+ if (!(this.isLoaded === !1 || !this.renderer)) try {
871
+ this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
872
+ } catch (e) {
873
+ this.triggerRenderFrameError(e);
874
+ }
875
+ }, B.prototype.play = function(e) {
876
+ e && this.name !== e || this.isPaused === !0 && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")));
877
+ }, B.prototype.pause = function(e) {
878
+ e && this.name !== e || this.isPaused === !1 && (this.isPaused = !0, this.trigger("_pause"), this._idle = !0, this.trigger("_idle"), this.audioController.pause());
879
+ }, B.prototype.togglePause = function(e) {
880
+ e && this.name !== e || (this.isPaused === !0 ? this.play() : this.pause());
881
+ }, B.prototype.stop = function(e) {
882
+ e && this.name !== e || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0));
883
+ }, B.prototype.getMarkerData = function(e) {
884
+ for (var t, n = 0; n < this.markers.length; n += 1) if (t = this.markers[n], t.payload && t.payload.name === e) return t;
885
+ return null;
886
+ }, B.prototype.goToAndStop = function(e, t, n) {
887
+ if (!(n && this.name !== n)) {
888
+ var r = Number(e);
889
+ if (isNaN(r)) {
890
+ var i = this.getMarkerData(e);
891
+ i && this.goToAndStop(i.time, !0);
892
+ } else t ? this.setCurrentRawFrameValue(e) : this.setCurrentRawFrameValue(e * this.frameModifier);
893
+ this.pause();
894
+ }
895
+ }, B.prototype.goToAndPlay = function(e, t, n) {
896
+ if (!(n && this.name !== n)) {
897
+ var r = Number(e);
898
+ if (isNaN(r)) {
899
+ var i = this.getMarkerData(e);
900
+ i && (i.duration ? this.playSegments([i.time, i.time + i.duration], !0) : this.goToAndStop(i.time, !0));
901
+ } else this.goToAndStop(r, t, n);
902
+ this.play();
903
+ }
904
+ }, B.prototype.advanceTime = function(e) {
905
+ if (!(this.isPaused === !0 || this.isLoaded === !1)) {
906
+ var t = this.currentRawFrame + e * this.frameModifier, n = !1;
907
+ t >= this.totalFrames - 1 && this.frameModifier > 0 ? !this.loop || this.playCount === this.loop ? this.checkSegments(t > this.totalFrames ? t % this.totalFrames : 0) || (n = !0, t = this.totalFrames - 1) : t >= this.totalFrames ? (this.playCount += 1, this.checkSegments(t % this.totalFrames) || (this.setCurrentRawFrameValue(t % this.totalFrames), this._completedLoop = !0, this.trigger("loopComplete"))) : this.setCurrentRawFrameValue(t) : t < 0 ? this.checkSegments(t % this.totalFrames) || (this.loop && !(this.playCount-- <= 0 && this.loop !== !0) ? (this.setCurrentRawFrameValue(this.totalFrames + t % this.totalFrames), this._completedLoop ? this.trigger("loopComplete") : this._completedLoop = !0) : (n = !0, t = 0)) : this.setCurrentRawFrameValue(t), n && (this.setCurrentRawFrameValue(t), this.pause(), this.trigger("complete"));
908
+ }
909
+ }, B.prototype.adjustSegment = function(e, t) {
910
+ this.playCount = 0, e[1] < e[0] ? (this.frameModifier > 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(-1)), this.totalFrames = e[0] - e[1], this.timeCompleted = this.totalFrames, this.firstFrame = e[1], this.setCurrentRawFrameValue(this.totalFrames - .001 - t)) : e[1] > e[0] && (this.frameModifier < 0 && (this.playSpeed < 0 ? this.setSpeed(-this.playSpeed) : this.setDirection(1)), this.totalFrames = e[1] - e[0], this.timeCompleted = this.totalFrames, this.firstFrame = e[0], this.setCurrentRawFrameValue(.001 + t)), this.trigger("segmentStart");
911
+ }, B.prototype.setSegment = function(e, t) {
912
+ var n = -1;
913
+ this.isPaused && (this.currentRawFrame + this.firstFrame < e ? n = e : this.currentRawFrame + this.firstFrame > t && (n = t - e)), this.firstFrame = e, this.totalFrames = t - e, this.timeCompleted = this.totalFrames, n !== -1 && this.goToAndStop(n, !0);
914
+ }, B.prototype.playSegments = function(e, t) {
915
+ if (t && (this.segments.length = 0), Se(e[0]) === "object") {
916
+ var n, r = e.length;
917
+ for (n = 0; n < r; n += 1) this.segments.push(e[n]);
918
+ } else this.segments.push(e);
919
+ this.segments.length && t && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play();
920
+ }, B.prototype.resetSegments = function(e) {
921
+ this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), e && this.checkSegments(0);
922
+ }, B.prototype.checkSegments = function(e) {
923
+ return this.segments.length ? (this.adjustSegment(this.segments.shift(), e), !0) : !1;
924
+ }, B.prototype.destroy = function(e) {
925
+ e && this.name !== e || !this.renderer || (this.renderer.destroy(), this.imagePreloader.destroy(), this.trigger("destroy"), this._cbs = null, this.onEnterFrame = null, this.onLoopComplete = null, this.onComplete = null, this.onSegmentStart = null, this.onDestroy = null, this.renderer = null, this.expressionsPlugin = null, this.imagePreloader = null, this.projectInterface = null);
926
+ }, B.prototype.setCurrentRawFrameValue = function(e) {
927
+ this.currentRawFrame = e, this.gotoFrame();
928
+ }, B.prototype.setSpeed = function(e) {
929
+ this.playSpeed = e, this.updaFrameModifier();
930
+ }, B.prototype.setDirection = function(e) {
931
+ this.playDirection = e < 0 ? -1 : 1, this.updaFrameModifier();
932
+ }, B.prototype.setLoop = function(e) {
933
+ this.loop = e;
934
+ }, B.prototype.setVolume = function(e, t) {
935
+ t && this.name !== t || this.audioController.setVolume(e);
936
+ }, B.prototype.getVolume = function() {
937
+ return this.audioController.getVolume();
938
+ }, B.prototype.mute = function(e) {
939
+ e && this.name !== e || this.audioController.mute();
940
+ }, B.prototype.unmute = function(e) {
941
+ e && this.name !== e || this.audioController.unmute();
942
+ }, B.prototype.updaFrameModifier = function() {
943
+ this.frameModifier = this.frameMult * this.playSpeed * this.playDirection, this.audioController.setRate(this.playSpeed * this.playDirection);
944
+ }, B.prototype.getPath = function() {
945
+ return this.path;
946
+ }, B.prototype.getAssetsPath = function(e) {
947
+ var t = "";
948
+ if (e.e) t = e.p;
949
+ else if (this.assetsPath) {
950
+ var n = e.p;
951
+ n.indexOf("images/") !== -1 && (n = n.split("/")[1]), t = this.assetsPath + n;
952
+ } else t = this.path, t += e.u ? e.u : "", t += e.p;
953
+ return t;
954
+ }, B.prototype.getAssetData = function(e) {
955
+ for (var t = 0, n = this.assets.length; t < n;) {
956
+ if (e === this.assets[t].id) return this.assets[t];
957
+ t += 1;
958
+ }
959
+ return null;
960
+ }, B.prototype.hide = function() {
961
+ this.renderer.hide();
962
+ }, B.prototype.show = function() {
963
+ this.renderer.show();
964
+ }, B.prototype.getDuration = function(e) {
965
+ return e ? this.totalFrames : this.totalFrames / this.frameRate;
966
+ }, B.prototype.updateDocumentData = function(e, t, n) {
967
+ try {
968
+ this.renderer.getElementByPath(e).updateDocumentData(t, n);
969
+ } catch {}
970
+ }, B.prototype.trigger = function(e) {
971
+ if (this._cbs && this._cbs[e]) switch (e) {
972
+ case "enterFrame":
973
+ this.triggerEvent(e, new A(e, this.currentFrame, this.totalFrames, this.frameModifier));
974
+ break;
975
+ case "drawnFrame":
976
+ this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(e, this.drawnFrameEvent);
977
+ break;
978
+ case "loopComplete":
979
+ this.triggerEvent(e, new M(e, this.loop, this.playCount, this.frameMult));
980
+ break;
981
+ case "complete":
982
+ this.triggerEvent(e, new j(e, this.frameMult));
983
+ break;
984
+ case "segmentStart":
985
+ this.triggerEvent(e, new N(e, this.firstFrame, this.totalFrames));
986
+ break;
987
+ case "destroy":
988
+ this.triggerEvent(e, new P(e, this));
989
+ break;
990
+ default: this.triggerEvent(e);
991
+ }
992
+ e === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new A(e, this.currentFrame, this.totalFrames, this.frameMult)), e === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new M(e, this.loop, this.playCount, this.frameMult)), e === "complete" && this.onComplete && this.onComplete.call(this, new j(e, this.frameMult)), e === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new N(e, this.firstFrame, this.totalFrames)), e === "destroy" && this.onDestroy && this.onDestroy.call(this, new P(e, this));
993
+ }, B.prototype.triggerRenderFrameError = function(e) {
994
+ var t = new F(e, this.currentFrame);
995
+ this.triggerEvent("error", t), this.onError && this.onError.call(this, t);
996
+ }, B.prototype.triggerConfigError = function(e) {
997
+ var t = new ee(e, this.currentFrame);
998
+ this.triggerEvent("error", t), this.onError && this.onError.call(this, t);
999
+ };
1000
+ var V = function() {
1001
+ var e = {}, t = [], n = 0, r = 0, i = 0, a = !0, o = !1;
1002
+ function s(e) {
1003
+ for (var n = 0, i = e.target; n < r;) t[n].animation === i && (t.splice(n, 1), --n, --r, i.isPaused || f()), n += 1;
1004
+ }
1005
+ function c(e, n) {
1006
+ if (!e) return null;
1007
+ for (var i = 0; i < r;) {
1008
+ if (t[i].elem === e && t[i].elem !== null) return t[i].animation;
1009
+ i += 1;
1010
+ }
1011
+ var a = new B();
1012
+ return p(a, e), a.setData(e, n), a;
1013
+ }
1014
+ function l() {
1015
+ var e, n = t.length, r = [];
1016
+ for (e = 0; e < n; e += 1) r.push(t[e].animation);
1017
+ return r;
1018
+ }
1019
+ function d() {
1020
+ i += 1, D();
1021
+ }
1022
+ function f() {
1023
+ --i;
1024
+ }
1025
+ function p(e, n) {
1026
+ e.addEventListener("destroy", s), e.addEventListener("_active", d), e.addEventListener("_idle", f), t.push({
1027
+ elem: n,
1028
+ animation: e
1029
+ }), r += 1;
1030
+ }
1031
+ function m(e) {
1032
+ var t = new B();
1033
+ return p(t, null), t.setParams(e), t;
1034
+ }
1035
+ function h(e, n) {
1036
+ var i;
1037
+ for (i = 0; i < r; i += 1) t[i].animation.setSpeed(e, n);
1038
+ }
1039
+ function g(e, n) {
1040
+ var i;
1041
+ for (i = 0; i < r; i += 1) t[i].animation.setDirection(e, n);
1042
+ }
1043
+ function _(e) {
1044
+ var n;
1045
+ for (n = 0; n < r; n += 1) t[n].animation.play(e);
1046
+ }
1047
+ function v(e) {
1048
+ var s = e - n, c;
1049
+ for (c = 0; c < r; c += 1) t[c].animation.advanceTime(s);
1050
+ n = e, i && !o ? window.requestAnimationFrame(v) : a = !0;
1051
+ }
1052
+ function y(e) {
1053
+ n = e, window.requestAnimationFrame(v);
1054
+ }
1055
+ function b(e) {
1056
+ var n;
1057
+ for (n = 0; n < r; n += 1) t[n].animation.pause(e);
1058
+ }
1059
+ function x(e, n, i) {
1060
+ var a;
1061
+ for (a = 0; a < r; a += 1) t[a].animation.goToAndStop(e, n, i);
1062
+ }
1063
+ function S(e) {
1064
+ var n;
1065
+ for (n = 0; n < r; n += 1) t[n].animation.stop(e);
1066
+ }
1067
+ function C(e) {
1068
+ var n;
1069
+ for (n = 0; n < r; n += 1) t[n].animation.togglePause(e);
1070
+ }
1071
+ function w(e) {
1072
+ var n;
1073
+ for (n = r - 1; n >= 0; --n) t[n].animation.destroy(e);
1074
+ }
1075
+ function T(e, t, n) {
1076
+ var r = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), i, a = r.length;
1077
+ for (i = 0; i < a; i += 1) n && r[i].setAttribute("data-bm-type", n), c(r[i], e);
1078
+ if (t && a === 0) {
1079
+ n ||= "svg";
1080
+ var o = document.getElementsByTagName("body")[0];
1081
+ o.innerText = "";
1082
+ var s = u("div");
1083
+ s.style.width = "100%", s.style.height = "100%", s.setAttribute("data-bm-type", n), o.appendChild(s), c(s, e);
1084
+ }
1085
+ }
1086
+ function E() {
1087
+ var e;
1088
+ for (e = 0; e < r; e += 1) t[e].animation.resize();
1089
+ }
1090
+ function D() {
1091
+ !o && i && (a &&= (window.requestAnimationFrame(y), !1));
1092
+ }
1093
+ function O() {
1094
+ o = !0;
1095
+ }
1096
+ function k() {
1097
+ o = !1, D();
1098
+ }
1099
+ function A(e, n) {
1100
+ var i;
1101
+ for (i = 0; i < r; i += 1) t[i].animation.setVolume(e, n);
1102
+ }
1103
+ function j(e) {
1104
+ var n;
1105
+ for (n = 0; n < r; n += 1) t[n].animation.mute(e);
1106
+ }
1107
+ function M(e) {
1108
+ var n;
1109
+ for (n = 0; n < r; n += 1) t[n].animation.unmute(e);
1110
+ }
1111
+ return e.registerAnimation = c, e.loadAnimation = m, e.setSpeed = h, e.setDirection = g, e.play = _, e.pause = b, e.stop = S, e.togglePause = C, e.searchAnimations = T, e.resize = E, e.goToAndStop = x, e.destroy = w, e.freeze = O, e.unfreeze = k, e.setVolume = A, e.mute = j, e.unmute = M, e.getRegisteredAnimations = l, e;
1112
+ }(), Ce = function() {
1113
+ var e = {};
1114
+ e.getBezierEasing = n;
1115
+ var t = {};
1116
+ function n(e, n, r, i, a) {
1117
+ var o = a || ("bez_" + e + "_" + n + "_" + r + "_" + i).replace(/\./g, "p");
1118
+ if (t[o]) return t[o];
1119
+ var s = new _([
1120
+ e,
1121
+ n,
1122
+ r,
1123
+ i
1124
+ ]);
1125
+ return t[o] = s, s;
1126
+ }
1127
+ var r = 4, i = .001, a = 1e-7, o = 10, s = 11, c = 1 / (s - 1), l = typeof Float32Array == "function";
1128
+ function u(e, t) {
1129
+ return 1 - 3 * t + 3 * e;
1130
+ }
1131
+ function d(e, t) {
1132
+ return 3 * t - 6 * e;
1133
+ }
1134
+ function f(e) {
1135
+ return 3 * e;
1136
+ }
1137
+ function p(e, t, n) {
1138
+ return ((u(t, n) * e + d(t, n)) * e + f(t)) * e;
1139
+ }
1140
+ function m(e, t, n) {
1141
+ return 3 * u(t, n) * e * e + 2 * d(t, n) * e + f(t);
1142
+ }
1143
+ function h(e, t, n, r, i) {
1144
+ var s, c, l = 0;
1145
+ do
1146
+ c = t + (n - t) / 2, s = p(c, r, i) - e, s > 0 ? n = c : t = c;
1147
+ while (Math.abs(s) > a && ++l < o);
1148
+ return c;
1149
+ }
1150
+ function g(e, t, n, i) {
1151
+ for (var a = 0; a < r; ++a) {
1152
+ var o = m(t, n, i);
1153
+ if (o === 0) return t;
1154
+ var s = p(t, n, i) - e;
1155
+ t -= s / o;
1156
+ }
1157
+ return t;
1158
+ }
1159
+ function _(e) {
1160
+ this._p = e, this._mSampleValues = l ? new Float32Array(s) : Array(s), this._precomputed = !1, this.get = this.get.bind(this);
1161
+ }
1162
+ return _.prototype = {
1163
+ get: function(e) {
1164
+ var t = this._p[0], n = this._p[1], r = this._p[2], i = this._p[3];
1165
+ return this._precomputed || this._precompute(), t === n && r === i ? e : e === 0 ? 0 : e === 1 ? 1 : p(this._getTForX(e), n, i);
1166
+ },
1167
+ _precompute: function() {
1168
+ var e = this._p[0], t = this._p[1], n = this._p[2], r = this._p[3];
1169
+ this._precomputed = !0, (e !== t || n !== r) && this._calcSampleValues();
1170
+ },
1171
+ _calcSampleValues: function() {
1172
+ for (var e = this._p[0], t = this._p[2], n = 0; n < s; ++n) this._mSampleValues[n] = p(n * c, e, t);
1173
+ },
1174
+ _getTForX: function(e) {
1175
+ for (var t = this._p[0], n = this._p[2], r = this._mSampleValues, a = 0, o = 1, l = s - 1; o !== l && r[o] <= e; ++o) a += c;
1176
+ --o;
1177
+ var u = (e - r[o]) / (r[o + 1] - r[o]), d = a + u * c, f = m(d, t, n);
1178
+ return f >= i ? g(e, d, t, n) : f === 0 ? d : h(e, a, a + c, t, n);
1179
+ }
1180
+ }, e;
1181
+ }(), we = function() {
1182
+ function e(e) {
1183
+ return e.concat(h(e.length));
1184
+ }
1185
+ return { double: e };
1186
+ }(), Te = function() {
1187
+ return function(e, t, n) {
1188
+ var r = 0, i = e, a = h(i), o = {
1189
+ newElement: s,
1190
+ release: c
1191
+ };
1192
+ function s() {
1193
+ var e;
1194
+ return r ? (--r, e = a[r]) : e = t(), e;
1195
+ }
1196
+ function c(e) {
1197
+ r === i && (a = we.double(a), i *= 2), n && n(e), a[r] = e, r += 1;
1198
+ }
1199
+ return o;
1200
+ };
1201
+ }(), Ee = function() {
1202
+ function e() {
1203
+ return {
1204
+ addedLength: 0,
1205
+ percents: m("float32", fe()),
1206
+ lengths: m("float32", fe())
1207
+ };
1208
+ }
1209
+ return Te(8, e);
1210
+ }(), De = function() {
1211
+ function e() {
1212
+ return {
1213
+ lengths: [],
1214
+ totalLength: 0
1215
+ };
1216
+ }
1217
+ function t(e) {
1218
+ var t, n = e.lengths.length;
1219
+ for (t = 0; t < n; t += 1) Ee.release(e.lengths[t]);
1220
+ e.lengths.length = 0;
1221
+ }
1222
+ return Te(8, e, t);
1223
+ }();
1224
+ function Oe() {
1225
+ var e = Math;
1226
+ function t(e, t, n, r, i, a) {
1227
+ var o = e * r + t * i + n * a - i * r - a * e - n * t;
1228
+ return o > -.001 && o < .001;
1229
+ }
1230
+ function n(n, r, i, a, o, s, c, l, u) {
1231
+ if (i === 0 && s === 0 && u === 0) return t(n, r, a, o, c, l);
1232
+ var d = e.sqrt(e.pow(a - n, 2) + e.pow(o - r, 2) + e.pow(s - i, 2)), f = e.sqrt(e.pow(c - n, 2) + e.pow(l - r, 2) + e.pow(u - i, 2)), p = e.sqrt(e.pow(c - a, 2) + e.pow(l - o, 2) + e.pow(u - s, 2)), m = d > f ? d > p ? d - f - p : p - f - d : p > f ? p - f - d : f - d - p;
1233
+ return m > -1e-4 && m < 1e-4;
1234
+ }
1235
+ var r = function() {
1236
+ return function(e, t, n, r) {
1237
+ var i = fe(), a, o, s, c, l, u = 0, d, f = [], p = [], m = Ee.newElement();
1238
+ for (s = n.length, a = 0; a < i; a += 1) {
1239
+ for (l = a / (i - 1), d = 0, o = 0; o < s; o += 1) c = S(1 - l, 3) * e[o] + 3 * S(1 - l, 2) * l * n[o] + 3 * (1 - l) * S(l, 2) * r[o] + S(l, 3) * t[o], f[o] = c, p[o] !== null && (d += S(f[o] - p[o], 2)), p[o] = f[o];
1240
+ d && (d = C(d), u += d), m.percents[a] = l, m.lengths[a] = u;
1241
+ }
1242
+ return m.addedLength = u, m;
1243
+ };
1244
+ }();
1245
+ function i(e) {
1246
+ var t = De.newElement(), n = e.c, i = e.v, a = e.o, o = e.i, s, c = e._length, l = t.lengths, u = 0;
1247
+ for (s = 0; s < c - 1; s += 1) l[s] = r(i[s], i[s + 1], a[s], o[s + 1]), u += l[s].addedLength;
1248
+ return n && c && (l[s] = r(i[s], i[0], a[s], o[0]), u += l[s].addedLength), t.totalLength = u, t;
1249
+ }
1250
+ function a(e) {
1251
+ this.segmentLength = 0, this.points = Array(e);
1252
+ }
1253
+ function o(e, t) {
1254
+ this.partialLength = e, this.point = t;
1255
+ }
1256
+ var s = function() {
1257
+ var e = {};
1258
+ return function(n, r, i, s) {
1259
+ var c = (n[0] + "_" + n[1] + "_" + r[0] + "_" + r[1] + "_" + i[0] + "_" + i[1] + "_" + s[0] + "_" + s[1]).replace(/\./g, "p");
1260
+ if (!e[c]) {
1261
+ var l = fe(), u, d, f, p, m, g = 0, _, v, y = null;
1262
+ n.length === 2 && (n[0] !== r[0] || n[1] !== r[1]) && t(n[0], n[1], r[0], r[1], n[0] + i[0], n[1] + i[1]) && t(n[0], n[1], r[0], r[1], r[0] + s[0], r[1] + s[1]) && (l = 2);
1263
+ var b = new a(l);
1264
+ for (f = i.length, u = 0; u < l; u += 1) {
1265
+ for (v = h(f), m = u / (l - 1), _ = 0, d = 0; d < f; d += 1) p = S(1 - m, 3) * n[d] + 3 * S(1 - m, 2) * m * (n[d] + i[d]) + 3 * (1 - m) * S(m, 2) * (r[d] + s[d]) + S(m, 3) * r[d], v[d] = p, y !== null && (_ += S(v[d] - y[d], 2));
1266
+ _ = C(_), g += _, b.points[u] = new o(_, v), y = v;
1267
+ }
1268
+ b.segmentLength = g, e[c] = b;
1269
+ }
1270
+ return e[c];
1271
+ };
1272
+ }();
1273
+ function c(e, t) {
1274
+ var n = t.percents, r = t.lengths, i = n.length, a = w((i - 1) * e), o = e * t.addedLength, s = 0;
1275
+ if (a === i - 1 || a === 0 || o === r[a]) return n[a];
1276
+ for (var c = r[a] > o ? -1 : 1, l = !0; l;) if (r[a] <= o && r[a + 1] > o ? (s = (o - r[a]) / (r[a + 1] - r[a]), l = !1) : a += c, a < 0 || a >= i - 1) {
1277
+ if (a === i - 1) return n[a];
1278
+ l = !1;
1279
+ }
1280
+ return n[a] + (n[a + 1] - n[a]) * s;
1281
+ }
1282
+ function l(t, n, r, i, a, o) {
1283
+ var s = c(a, o), l = 1 - s;
1284
+ return [e.round((l * l * l * t[0] + (s * l * l + l * s * l + l * l * s) * r[0] + (s * s * l + l * s * s + s * l * s) * i[0] + s * s * s * n[0]) * 1e3) / 1e3, e.round((l * l * l * t[1] + (s * l * l + l * s * l + l * l * s) * r[1] + (s * s * l + l * s * s + s * l * s) * i[1] + s * s * s * n[1]) * 1e3) / 1e3];
1285
+ }
1286
+ var u = m("float32", 8);
1287
+ function d(t, n, r, i, a, o, s) {
1288
+ a < 0 ? a = 0 : a > 1 && (a = 1);
1289
+ var l = c(a, s);
1290
+ o = o > 1 ? 1 : o;
1291
+ var d = c(o, s), f, p = t.length, m = 1 - l, h = 1 - d, g = m * m * m, _ = l * m * m * 3, v = l * l * m * 3, y = l * l * l, b = m * m * h, x = l * m * h + m * l * h + m * m * d, S = l * l * h + m * l * d + l * m * d, C = l * l * d, w = m * h * h, T = l * h * h + m * d * h + m * h * d, E = l * d * h + m * d * d + l * h * d, D = l * d * d, O = h * h * h, k = d * h * h + h * d * h + h * h * d, A = d * d * h + h * d * d + d * h * d, j = d * d * d;
1292
+ for (f = 0; f < p; f += 1) u[f * 4] = e.round((g * t[f] + _ * r[f] + v * i[f] + y * n[f]) * 1e3) / 1e3, u[f * 4 + 1] = e.round((b * t[f] + x * r[f] + S * i[f] + C * n[f]) * 1e3) / 1e3, u[f * 4 + 2] = e.round((w * t[f] + T * r[f] + E * i[f] + D * n[f]) * 1e3) / 1e3, u[f * 4 + 3] = e.round((O * t[f] + k * r[f] + A * i[f] + j * n[f]) * 1e3) / 1e3;
1293
+ return u;
1294
+ }
1295
+ return {
1296
+ getSegmentsLength: i,
1297
+ getNewSegment: d,
1298
+ getPointInSegment: l,
1299
+ buildBezierData: s,
1300
+ pointOnLine2D: t,
1301
+ pointOnLine3D: n
1302
+ };
1303
+ }
1304
+ var ke = Oe(), Ae = a, je = Math.abs;
1305
+ function Me(e, t) {
1306
+ var n = this.offsetTime, r;
1307
+ this.propType === "multidimensional" && (r = m("float32", this.pv.length));
1308
+ for (var i = t.lastIndex, a = i, o = this.keyframes.length - 1, s = !0, c, l, u; s;) {
1309
+ if (c = this.keyframes[a], l = this.keyframes[a + 1], a === o - 1 && e >= l.t - n) {
1310
+ c.h && (c = l), i = 0;
1311
+ break;
1312
+ }
1313
+ if (l.t - n > e) {
1314
+ i = a;
1315
+ break;
1316
+ }
1317
+ a < o - 1 ? a += 1 : (i = 0, s = !1);
1318
+ }
1319
+ u = this.keyframesMetadata[a] || {};
1320
+ var d, f, p, h, g, _, v = l.t - n, y = c.t - n, b;
1321
+ if (c.to) {
1322
+ u.bezierData ||= ke.buildBezierData(c.s, l.s || c.e, c.to, c.ti);
1323
+ var x = u.bezierData;
1324
+ if (e >= v || e < y) {
1325
+ var S = e >= v ? x.points.length - 1 : 0;
1326
+ for (f = x.points[S].point.length, d = 0; d < f; d += 1) r[d] = x.points[S].point[d];
1327
+ } else {
1328
+ u.__fnct ? _ = u.__fnct : (_ = Ce.getBezierEasing(c.o.x, c.o.y, c.i.x, c.i.y, c.n).get, u.__fnct = _), p = _((e - y) / (v - y));
1329
+ var C = x.segmentLength * p, w, T = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
1330
+ for (g = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, s = !0, h = x.points.length; s;) {
1331
+ if (T += x.points[g].partialLength, C === 0 || p === 0 || g === x.points.length - 1) {
1332
+ for (f = x.points[g].point.length, d = 0; d < f; d += 1) r[d] = x.points[g].point[d];
1333
+ break;
1334
+ } else if (C >= T && C < T + x.points[g + 1].partialLength) {
1335
+ for (w = (C - T) / x.points[g + 1].partialLength, f = x.points[g].point.length, d = 0; d < f; d += 1) r[d] = x.points[g].point[d] + (x.points[g + 1].point[d] - x.points[g].point[d]) * w;
1336
+ break;
1337
+ }
1338
+ g < h - 1 ? g += 1 : s = !1;
1339
+ }
1340
+ t._lastPoint = g, t._lastAddedLength = T - x.points[g].partialLength, t._lastKeyframeIndex = a;
1341
+ }
1342
+ } else {
1343
+ var E, D, O, k, A;
1344
+ if (o = c.s.length, b = l.s || c.e, this.sh && c.h !== 1) if (e >= v) r[0] = b[0], r[1] = b[1], r[2] = b[2];
1345
+ else if (e <= y) r[0] = c.s[0], r[1] = c.s[1], r[2] = c.s[2];
1346
+ else {
1347
+ var j = Fe(c.s), M = Fe(b), N = (e - y) / (v - y);
1348
+ Pe(r, Ne(j, M, N));
1349
+ }
1350
+ else for (a = 0; a < o; a += 1) c.h !== 1 && (e >= v ? p = 1 : e < y ? p = 0 : (c.o.x.constructor === Array ? (u.__fnct ||= [], u.__fnct[a] ? _ = u.__fnct[a] : (E = c.o.x[a] === void 0 ? c.o.x[0] : c.o.x[a], D = c.o.y[a] === void 0 ? c.o.y[0] : c.o.y[a], O = c.i.x[a] === void 0 ? c.i.x[0] : c.i.x[a], k = c.i.y[a] === void 0 ? c.i.y[0] : c.i.y[a], _ = Ce.getBezierEasing(E, D, O, k).get, u.__fnct[a] = _)) : u.__fnct ? _ = u.__fnct : (E = c.o.x, D = c.o.y, O = c.i.x, k = c.i.y, _ = Ce.getBezierEasing(E, D, O, k).get, c.keyframeMetadata = _), p = _((e - y) / (v - y)))), b = l.s || c.e, A = c.h === 1 ? c.s[a] : c.s[a] + (b[a] - c.s[a]) * p, this.propType === "multidimensional" ? r[a] = A : r = A;
1351
+ }
1352
+ return t.lastIndex = i, r;
1353
+ }
1354
+ function Ne(e, t, n) {
1355
+ var r = [], i = e[0], a = e[1], o = e[2], s = e[3], c = t[0], l = t[1], u = t[2], d = t[3], f, p = i * c + a * l + o * u + s * d, m, h, g;
1356
+ return p < 0 && (p = -p, c = -c, l = -l, u = -u, d = -d), 1 - p > 1e-6 ? (f = Math.acos(p), m = Math.sin(f), h = Math.sin((1 - n) * f) / m, g = Math.sin(n * f) / m) : (h = 1 - n, g = n), r[0] = h * i + g * c, r[1] = h * a + g * l, r[2] = h * o + g * u, r[3] = h * s + g * d, r;
1357
+ }
1358
+ function Pe(e, t) {
1359
+ var n = t[0], r = t[1], i = t[2], a = t[3], o = Math.atan2(2 * r * a - 2 * n * i, 1 - 2 * r * r - 2 * i * i), s = Math.asin(2 * n * r + 2 * i * a), c = Math.atan2(2 * n * a - 2 * r * i, 1 - 2 * n * n - 2 * i * i);
1360
+ e[0] = o / O, e[1] = s / O, e[2] = c / O;
1361
+ }
1362
+ function Fe(e) {
1363
+ var t = e[0] * O, n = e[1] * O, r = e[2] * O, i = Math.cos(t / 2), a = Math.cos(n / 2), o = Math.cos(r / 2), s = Math.sin(t / 2), c = Math.sin(n / 2), l = Math.sin(r / 2), u = i * a * o - s * c * l;
1364
+ return [
1365
+ s * c * o + i * a * l,
1366
+ s * a * o + i * c * l,
1367
+ i * c * o - s * a * l,
1368
+ u
1369
+ ];
1370
+ }
1371
+ function Ie() {
1372
+ var e = this.comp.renderedFrame - this.offsetTime, t = this.keyframes[0].t - this.offsetTime, n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
1373
+ if (!(e === this._caching.lastFrame || this._caching.lastFrame !== Ae && (this._caching.lastFrame >= n && e >= n || this._caching.lastFrame < t && e < t))) {
1374
+ this._caching.lastFrame >= e && (this._caching._lastKeyframeIndex = -1, this._caching.lastIndex = 0);
1375
+ var r = this.interpolateValue(e, this._caching);
1376
+ this.pv = r;
1377
+ }
1378
+ return this._caching.lastFrame = e, this.pv;
1379
+ }
1380
+ function Le(e) {
1381
+ var t;
1382
+ if (this.propType === "unidimensional") t = e * this.mult, je(this.v - t) > 1e-5 && (this.v = t, this._mdf = !0);
1383
+ else for (var n = 0, r = this.v.length; n < r;) t = e[n] * this.mult, je(this.v[n] - t) > 1e-5 && (this.v[n] = t, this._mdf = !0), n += 1;
1384
+ }
1385
+ function Re() {
1386
+ if (!(this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length)) {
1387
+ if (this.lock) {
1388
+ this.setVValue(this.pv);
1389
+ return;
1390
+ }
1391
+ this.lock = !0, this._mdf = this._isFirstFrame;
1392
+ var e, t = this.effectsSequence.length, n = this.kf ? this.pv : this.data.k;
1393
+ for (e = 0; e < t; e += 1) n = this.effectsSequence[e](n);
1394
+ this.setVValue(n), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
1395
+ }
1396
+ }
1397
+ function ze(e) {
1398
+ this.effectsSequence.push(e), this.container.addDynamicProperty(this);
1399
+ }
1400
+ function Be(e, t, n, r) {
1401
+ this.propType = "unidimensional", this.mult = n || 1, this.data = t, this.v = n ? t.k * n : t.k, this.pv = t.k, this._mdf = !1, this.elem = e, this.container = r, this.comp = e.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue = Re, this.setVValue = Le, this.addEffect = ze;
1402
+ }
1403
+ function Ve(e, t, n, r) {
1404
+ this.propType = "multidimensional", this.mult = n || 1, this.data = t, this._mdf = !1, this.elem = e, this.container = r, this.comp = e.comp, this.k = !1, this.kf = !1, this.frameId = -1;
1405
+ var i, a = t.k.length;
1406
+ for (this.v = m("float32", a), this.pv = m("float32", a), this.vel = m("float32", a), i = 0; i < a; i += 1) this.v[i] = t.k[i] * this.mult, this.pv[i] = t.k[i];
1407
+ this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = Re, this.setVValue = Le, this.addEffect = ze;
1408
+ }
1409
+ function He(e, t, n, r) {
1410
+ this.propType = "unidimensional", this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.frameId = -1, this._caching = {
1411
+ lastFrame: Ae,
1412
+ lastIndex: 0,
1413
+ value: 0,
1414
+ _lastKeyframeIndex: -1
1415
+ }, this.k = !0, this.kf = !0, this.data = t, this.mult = n || 1, this.elem = e, this.container = r, this.comp = e.comp, this.v = Ae, this.pv = Ae, this._isFirstFrame = !0, this.getValue = Re, this.setVValue = Le, this.interpolateValue = Me, this.effectsSequence = [Ie.bind(this)], this.addEffect = ze;
1416
+ }
1417
+ function Ue(e, t, n, r) {
1418
+ this.propType = "multidimensional";
1419
+ var i, a = t.k.length, o, s, c, l;
1420
+ for (i = 0; i < a - 1; i += 1) t.k[i].to && t.k[i].s && t.k[i + 1] && t.k[i + 1].s && (o = t.k[i].s, s = t.k[i + 1].s, c = t.k[i].to, l = t.k[i].ti, (o.length === 2 && !(o[0] === s[0] && o[1] === s[1]) && ke.pointOnLine2D(o[0], o[1], s[0], s[1], o[0] + c[0], o[1] + c[1]) && ke.pointOnLine2D(o[0], o[1], s[0], s[1], s[0] + l[0], s[1] + l[1]) || o.length === 3 && !(o[0] === s[0] && o[1] === s[1] && o[2] === s[2]) && ke.pointOnLine3D(o[0], o[1], o[2], s[0], s[1], s[2], o[0] + c[0], o[1] + c[1], o[2] + c[2]) && ke.pointOnLine3D(o[0], o[1], o[2], s[0], s[1], s[2], s[0] + l[0], s[1] + l[1], s[2] + l[2])) && (t.k[i].to = null, t.k[i].ti = null), o[0] === s[0] && o[1] === s[1] && c[0] === 0 && c[1] === 0 && l[0] === 0 && l[1] === 0 && (o.length === 2 || o[2] === s[2] && c[2] === 0 && l[2] === 0) && (t.k[i].to = null, t.k[i].ti = null));
1421
+ this.effectsSequence = [Ie.bind(this)], this.data = t, this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = n || 1, this.elem = e, this.container = r, this.comp = e.comp, this.getValue = Re, this.setVValue = Le, this.interpolateValue = Me, this.frameId = -1;
1422
+ var u = t.k[0].s.length;
1423
+ for (this.v = m("float32", u), this.pv = m("float32", u), i = 0; i < u; i += 1) this.v[i] = Ae, this.pv[i] = Ae;
1424
+ this._caching = {
1425
+ lastFrame: Ae,
1426
+ lastIndex: 0,
1427
+ value: m("float32", u)
1428
+ }, this.addEffect = ze;
1429
+ }
1430
+ var H = function() {
1431
+ function e(e, t, n, r, i) {
1432
+ t.sid && (t = e.globalData.slotManager.getProp(t));
1433
+ var a;
1434
+ if (!t.k.length) a = new Be(e, t, r, i);
1435
+ else if (typeof t.k[0] == "number") a = new Ve(e, t, r, i);
1436
+ else switch (n) {
1437
+ case 0:
1438
+ a = new He(e, t, r, i);
1439
+ break;
1440
+ case 1:
1441
+ a = new Ue(e, t, r, i);
1442
+ break;
1443
+ default: break;
1444
+ }
1445
+ return a.effectsSequence.length && i.addDynamicProperty(a), a;
1446
+ }
1447
+ return { getProp: e };
1448
+ }();
1449
+ function U() {}
1450
+ U.prototype = {
1451
+ addDynamicProperty: function(e) {
1452
+ this.dynamicProperties.indexOf(e) === -1 && (this.dynamicProperties.push(e), this.container.addDynamicProperty(this), this._isAnimated = !0);
1453
+ },
1454
+ iterateDynamicProperties: function() {
1455
+ this._mdf = !1;
1456
+ var e, t = this.dynamicProperties.length;
1457
+ for (e = 0; e < t; e += 1) this.dynamicProperties[e].getValue(), this.dynamicProperties[e]._mdf && (this._mdf = !0);
1458
+ },
1459
+ initDynamicPropertyContainer: function(e) {
1460
+ this.container = e, this.dynamicProperties = [], this._mdf = !1, this._isAnimated = !1;
1461
+ }
1462
+ };
1463
+ var We = function() {
1464
+ function e() {
1465
+ return m("float32", 2);
1466
+ }
1467
+ return Te(8, e);
1468
+ }();
1469
+ function Ge() {
1470
+ this.c = !1, this._length = 0, this._maxLength = 8, this.v = h(this._maxLength), this.o = h(this._maxLength), this.i = h(this._maxLength);
1471
+ }
1472
+ Ge.prototype.setPathData = function(e, t) {
1473
+ this.c = e, this.setLength(t);
1474
+ for (var n = 0; n < t;) this.v[n] = We.newElement(), this.o[n] = We.newElement(), this.i[n] = We.newElement(), n += 1;
1475
+ }, Ge.prototype.setLength = function(e) {
1476
+ for (; this._maxLength < e;) this.doubleArrayLength();
1477
+ this._length = e;
1478
+ }, Ge.prototype.doubleArrayLength = function() {
1479
+ this.v = this.v.concat(h(this._maxLength)), this.i = this.i.concat(h(this._maxLength)), this.o = this.o.concat(h(this._maxLength)), this._maxLength *= 2;
1480
+ }, Ge.prototype.setXYAt = function(e, t, n, r, i) {
1481
+ var a;
1482
+ switch (this._length = Math.max(this._length, r + 1), this._length >= this._maxLength && this.doubleArrayLength(), n) {
1483
+ case "v":
1484
+ a = this.v;
1485
+ break;
1486
+ case "i":
1487
+ a = this.i;
1488
+ break;
1489
+ case "o":
1490
+ a = this.o;
1491
+ break;
1492
+ default:
1493
+ a = [];
1494
+ break;
1495
+ }
1496
+ (!a[r] || a[r] && !i) && (a[r] = We.newElement()), a[r][0] = e, a[r][1] = t;
1497
+ }, Ge.prototype.setTripleAt = function(e, t, n, r, i, a, o, s) {
1498
+ this.setXYAt(e, t, "v", o, s), this.setXYAt(n, r, "o", o, s), this.setXYAt(i, a, "i", o, s);
1499
+ }, Ge.prototype.reverse = function() {
1500
+ var e = new Ge();
1501
+ e.setPathData(this.c, this._length);
1502
+ var t = this.v, n = this.o, r = this.i, i = 0;
1503
+ this.c && (e.setTripleAt(t[0][0], t[0][1], r[0][0], r[0][1], n[0][0], n[0][1], 0, !1), i = 1);
1504
+ var a = this._length - 1, o = this._length, s;
1505
+ for (s = i; s < o; s += 1) e.setTripleAt(t[a][0], t[a][1], r[a][0], r[a][1], n[a][0], n[a][1], s, !1), --a;
1506
+ return e;
1507
+ }, Ge.prototype.length = function() {
1508
+ return this._length;
1509
+ };
1510
+ var W = function() {
1511
+ function e() {
1512
+ return new Ge();
1513
+ }
1514
+ function t(e) {
1515
+ var t = e._length, n;
1516
+ for (n = 0; n < t; n += 1) We.release(e.v[n]), We.release(e.i[n]), We.release(e.o[n]), e.v[n] = null, e.i[n] = null, e.o[n] = null;
1517
+ e._length = 0, e.c = !1;
1518
+ }
1519
+ function n(e) {
1520
+ var t = r.newElement(), n, i = e._length === void 0 ? e.v.length : e._length;
1521
+ for (t.setLength(i), t.c = e.c, n = 0; n < i; n += 1) t.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], n);
1522
+ return t;
1523
+ }
1524
+ var r = Te(4, e, t);
1525
+ return r.clone = n, r;
1526
+ }();
1527
+ function Ke() {
1528
+ this._length = 0, this._maxLength = 4, this.shapes = h(this._maxLength);
1529
+ }
1530
+ Ke.prototype.addShape = function(e) {
1531
+ this._length === this._maxLength && (this.shapes = this.shapes.concat(h(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = e, this._length += 1;
1532
+ }, Ke.prototype.releaseShapes = function() {
1533
+ var e;
1534
+ for (e = 0; e < this._length; e += 1) W.release(this.shapes[e]);
1535
+ this._length = 0;
1536
+ };
1537
+ var qe = function() {
1538
+ var e = {
1539
+ newShapeCollection: i,
1540
+ release: a
1541
+ }, t = 0, n = 4, r = h(n);
1542
+ function i() {
1543
+ var e;
1544
+ return t ? (--t, e = r[t]) : e = new Ke(), e;
1545
+ }
1546
+ function a(e) {
1547
+ var i, a = e._length;
1548
+ for (i = 0; i < a; i += 1) W.release(e.shapes[i]);
1549
+ e._length = 0, t === n && (r = we.double(r), n *= 2), r[t] = e, t += 1;
1550
+ }
1551
+ return e;
1552
+ }(), Je = function() {
1553
+ var e = -999999;
1554
+ function t(e, t, n) {
1555
+ var r = n.lastIndex, i, a, o, s, c, l, u, d, f, p = this.keyframes;
1556
+ if (e < p[0].t - this.offsetTime) i = p[0].s[0], o = !0, r = 0;
1557
+ else if (e >= p[p.length - 1].t - this.offsetTime) i = p[p.length - 1].s ? p[p.length - 1].s[0] : p[p.length - 2].e[0], o = !0;
1558
+ else {
1559
+ for (var m = r, h = p.length - 1, g = !0, _, v, y; g && (_ = p[m], v = p[m + 1], !(v.t - this.offsetTime > e));) m < h - 1 ? m += 1 : g = !1;
1560
+ if (y = this.keyframesMetadata[m] || {}, o = _.h === 1, r = m, !o) {
1561
+ if (e >= v.t - this.offsetTime) d = 1;
1562
+ else if (e < _.t - this.offsetTime) d = 0;
1563
+ else {
1564
+ var b;
1565
+ y.__fnct ? b = y.__fnct : (b = Ce.getBezierEasing(_.o.x, _.o.y, _.i.x, _.i.y).get, y.__fnct = b), d = b((e - (_.t - this.offsetTime)) / (v.t - this.offsetTime - (_.t - this.offsetTime)));
1566
+ }
1567
+ a = v.s ? v.s[0] : _.e[0];
1568
+ }
1569
+ i = _.s[0];
1570
+ }
1571
+ for (l = t._length, u = i.i[0].length, n.lastIndex = r, s = 0; s < l; s += 1) for (c = 0; c < u; c += 1) f = o ? i.i[s][c] : i.i[s][c] + (a.i[s][c] - i.i[s][c]) * d, t.i[s][c] = f, f = o ? i.o[s][c] : i.o[s][c] + (a.o[s][c] - i.o[s][c]) * d, t.o[s][c] = f, f = o ? i.v[s][c] : i.v[s][c] + (a.v[s][c] - i.v[s][c]) * d, t.v[s][c] = f;
1572
+ }
1573
+ function n() {
1574
+ var t = this.comp.renderedFrame - this.offsetTime, n = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, i = this._caching.lastFrame;
1575
+ return i !== e && (i < n && t < n || i > r && t > r) || (this._caching.lastIndex = i < t ? this._caching.lastIndex : 0, this.interpolateShape(t, this.pv, this._caching)), this._caching.lastFrame = t, this.pv;
1576
+ }
1577
+ function r() {
1578
+ this.paths = this.localShapeCollection;
1579
+ }
1580
+ function i(e, t) {
1581
+ if (e._length !== t._length || e.c !== t.c) return !1;
1582
+ var n, r = e._length;
1583
+ for (n = 0; n < r; n += 1) if (e.v[n][0] !== t.v[n][0] || e.v[n][1] !== t.v[n][1] || e.o[n][0] !== t.o[n][0] || e.o[n][1] !== t.o[n][1] || e.i[n][0] !== t.i[n][0] || e.i[n][1] !== t.i[n][1]) return !1;
1584
+ return !0;
1585
+ }
1586
+ function a(e) {
1587
+ i(this.v, e) || (this.v = W.clone(e), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
1588
+ }
1589
+ function o() {
1590
+ if (this.elem.globalData.frameId !== this.frameId) {
1591
+ if (!this.effectsSequence.length) {
1592
+ this._mdf = !1;
1593
+ return;
1594
+ }
1595
+ if (this.lock) {
1596
+ this.setVValue(this.pv);
1597
+ return;
1598
+ }
1599
+ this.lock = !0, this._mdf = !1;
1600
+ var e = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k, t, n = this.effectsSequence.length;
1601
+ for (t = 0; t < n; t += 1) e = this.effectsSequence[t](e);
1602
+ this.setVValue(e), this.lock = !1, this.frameId = this.elem.globalData.frameId;
1603
+ }
1604
+ }
1605
+ function s(e, t, n) {
1606
+ this.propType = "shape", this.comp = e.comp, this.container = e, this.elem = e, this.data = t, this.k = !1, this.kf = !1, this._mdf = !1;
1607
+ var i = n === 3 ? t.pt.k : t.ks.k;
1608
+ this.v = W.clone(i), this.pv = W.clone(this.v), this.localShapeCollection = qe.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = r, this.effectsSequence = [];
1609
+ }
1610
+ function c(e) {
1611
+ this.effectsSequence.push(e), this.container.addDynamicProperty(this);
1612
+ }
1613
+ s.prototype.interpolateShape = t, s.prototype.getValue = o, s.prototype.setVValue = a, s.prototype.addEffect = c;
1614
+ function l(t, i, a) {
1615
+ this.propType = "shape", this.comp = t.comp, this.elem = t, this.container = t, this.offsetTime = t.data.st, this.keyframes = a === 3 ? i.pt.k : i.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
1616
+ var o = this.keyframes[0].s[0].i.length;
1617
+ this.v = W.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, o), this.pv = W.clone(this.v), this.localShapeCollection = qe.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = e, this.reset = r, this._caching = {
1618
+ lastFrame: e,
1619
+ lastIndex: 0
1620
+ }, this.effectsSequence = [n.bind(this)];
1621
+ }
1622
+ l.prototype.getValue = o, l.prototype.interpolateShape = t, l.prototype.setVValue = a, l.prototype.addEffect = c;
1623
+ var u = function() {
1624
+ var e = k;
1625
+ function t(e, t) {
1626
+ this.v = W.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = qe.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = t.d, this.elem = e, this.comp = e.comp, this.frameId = -1, this.initDynamicPropertyContainer(e), this.p = H.getProp(e, t.p, 1, 0, this), this.s = H.getProp(e, t.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
1627
+ }
1628
+ return t.prototype = {
1629
+ reset: r,
1630
+ getValue: function() {
1631
+ this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
1632
+ },
1633
+ convertEllToPath: function() {
1634
+ var t = this.p.v[0], n = this.p.v[1], r = this.s.v[0] / 2, i = this.s.v[1] / 2, a = this.d !== 3, o = this.v;
1635
+ o.v[0][0] = t, o.v[0][1] = n - i, o.v[1][0] = a ? t + r : t - r, o.v[1][1] = n, o.v[2][0] = t, o.v[2][1] = n + i, o.v[3][0] = a ? t - r : t + r, o.v[3][1] = n, o.i[0][0] = a ? t - r * e : t + r * e, o.i[0][1] = n - i, o.i[1][0] = a ? t + r : t - r, o.i[1][1] = n - i * e, o.i[2][0] = a ? t + r * e : t - r * e, o.i[2][1] = n + i, o.i[3][0] = a ? t - r : t + r, o.i[3][1] = n + i * e, o.o[0][0] = a ? t + r * e : t - r * e, o.o[0][1] = n - i, o.o[1][0] = a ? t + r : t - r, o.o[1][1] = n + i * e, o.o[2][0] = a ? t - r * e : t + r * e, o.o[2][1] = n + i, o.o[3][0] = a ? t - r : t + r, o.o[3][1] = n - i * e;
1636
+ }
1637
+ }, d([U], t), t;
1638
+ }(), f = function() {
1639
+ function e(e, t) {
1640
+ this.v = W.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), t.sy === 1 ? (this.ir = H.getProp(e, t.ir, 0, 0, this), this.is = H.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = H.getProp(e, t.pt, 0, 0, this), this.p = H.getProp(e, t.p, 1, 0, this), this.r = H.getProp(e, t.r, 0, O, this), this.or = H.getProp(e, t.or, 0, 0, this), this.os = H.getProp(e, t.os, 0, .01, this), this.localShapeCollection = qe.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
1641
+ }
1642
+ return e.prototype = {
1643
+ reset: r,
1644
+ getValue: function() {
1645
+ this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
1646
+ },
1647
+ convertStarToPath: function() {
1648
+ var e = Math.floor(this.pt.v) * 2, t = Math.PI * 2 / e, n = !0, r = this.or.v, i = this.ir.v, a = this.os.v, o = this.is.v, s = 2 * Math.PI * r / (e * 2), c = 2 * Math.PI * i / (e * 2), l, u, d, f, p = -Math.PI / 2;
1649
+ p += this.r.v;
1650
+ var m = this.data.d === 3 ? -1 : 1;
1651
+ for (this.v._length = 0, l = 0; l < e; l += 1) {
1652
+ u = n ? r : i, d = n ? a : o, f = n ? s : c;
1653
+ var h = u * Math.cos(p), g = u * Math.sin(p), _ = h === 0 && g === 0 ? 0 : g / Math.sqrt(h * h + g * g), v = h === 0 && g === 0 ? 0 : -h / Math.sqrt(h * h + g * g);
1654
+ h += +this.p.v[0], g += +this.p.v[1], this.v.setTripleAt(h, g, h - _ * f * d * m, g - v * f * d * m, h + _ * f * d * m, g + v * f * d * m, l, !0), n = !n, p += t * m;
1655
+ }
1656
+ },
1657
+ convertPolygonToPath: function() {
1658
+ var e = Math.floor(this.pt.v), t = Math.PI * 2 / e, n = this.or.v, r = this.os.v, i = 2 * Math.PI * n / (e * 4), a, o = -Math.PI * .5, s = this.data.d === 3 ? -1 : 1;
1659
+ for (o += this.r.v, this.v._length = 0, a = 0; a < e; a += 1) {
1660
+ var c = n * Math.cos(o), l = n * Math.sin(o), u = c === 0 && l === 0 ? 0 : l / Math.sqrt(c * c + l * l), d = c === 0 && l === 0 ? 0 : -c / Math.sqrt(c * c + l * l);
1661
+ c += +this.p.v[0], l += +this.p.v[1], this.v.setTripleAt(c, l, c - u * i * r * s, l - d * i * r * s, c + u * i * r * s, l + d * i * r * s, a, !0), o += t * s;
1662
+ }
1663
+ this.paths.length = 0, this.paths[0] = this.v;
1664
+ }
1665
+ }, d([U], e), e;
1666
+ }(), p = function() {
1667
+ function e(e, t) {
1668
+ this.v = W.newElement(), this.v.c = !0, this.localShapeCollection = qe.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = e, this.comp = e.comp, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), this.p = H.getProp(e, t.p, 1, 0, this), this.s = H.getProp(e, t.s, 1, 0, this), this.r = H.getProp(e, t.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
1669
+ }
1670
+ return e.prototype = {
1671
+ convertRectToPath: function() {
1672
+ var e = this.p.v[0], t = this.p.v[1], n = this.s.v[0] / 2, r = this.s.v[1] / 2, i = T(n, r, this.r.v), a = i * (1 - k);
1673
+ this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(e + n, t - r + i, e + n, t - r + i, e + n, t - r + a, 0, !0), this.v.setTripleAt(e + n, t + r - i, e + n, t + r - a, e + n, t + r - i, 1, !0), i === 0 ? (this.v.setTripleAt(e - n, t + r, e - n + a, t + r, e - n, t + r, 2), this.v.setTripleAt(e - n, t - r, e - n, t - r + a, e - n, t - r, 3)) : (this.v.setTripleAt(e + n - i, t + r, e + n - i, t + r, e + n - a, t + r, 2, !0), this.v.setTripleAt(e - n + i, t + r, e - n + a, t + r, e - n + i, t + r, 3, !0), this.v.setTripleAt(e - n, t + r - i, e - n, t + r - i, e - n, t + r - a, 4, !0), this.v.setTripleAt(e - n, t - r + i, e - n, t - r + a, e - n, t - r + i, 5, !0), this.v.setTripleAt(e - n + i, t - r, e - n + i, t - r, e - n + a, t - r, 6, !0), this.v.setTripleAt(e + n - i, t - r, e + n - a, t - r, e + n - i, t - r, 7, !0))) : (this.v.setTripleAt(e + n, t - r + i, e + n, t - r + a, e + n, t - r + i, 0, !0), i === 0 ? (this.v.setTripleAt(e - n, t - r, e - n + a, t - r, e - n, t - r, 1, !0), this.v.setTripleAt(e - n, t + r, e - n, t + r - a, e - n, t + r, 2, !0), this.v.setTripleAt(e + n, t + r, e + n - a, t + r, e + n, t + r, 3, !0)) : (this.v.setTripleAt(e + n - i, t - r, e + n - i, t - r, e + n - a, t - r, 1, !0), this.v.setTripleAt(e - n + i, t - r, e - n + a, t - r, e - n + i, t - r, 2, !0), this.v.setTripleAt(e - n, t - r + i, e - n, t - r + i, e - n, t - r + a, 3, !0), this.v.setTripleAt(e - n, t + r - i, e - n, t + r - a, e - n, t + r - i, 4, !0), this.v.setTripleAt(e - n + i, t + r, e - n + i, t + r, e - n + a, t + r, 5, !0), this.v.setTripleAt(e + n - i, t + r, e + n - a, t + r, e + n - i, t + r, 6, !0), this.v.setTripleAt(e + n, t + r - i, e + n, t + r - i, e + n, t + r - a, 7, !0)));
1674
+ },
1675
+ getValue: function() {
1676
+ this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
1677
+ },
1678
+ reset: r
1679
+ }, d([U], e), e;
1680
+ }();
1681
+ function m(e, t, n) {
1682
+ var r;
1683
+ return n === 3 || n === 4 ? r = (n === 3 ? t.pt : t.ks).k.length ? new l(e, t, n) : new s(e, t, n) : n === 5 ? r = new p(e, t) : n === 6 ? r = new u(e, t) : n === 7 && (r = new f(e, t)), r.k && e.addDynamicProperty(r), r;
1684
+ }
1685
+ function h() {
1686
+ return s;
1687
+ }
1688
+ function g() {
1689
+ return l;
1690
+ }
1691
+ var _ = {};
1692
+ return _.getShapeProp = m, _.getConstructorFunction = h, _.getKeyframedConstructorFunction = g, _;
1693
+ }(), G = function() {
1694
+ var e = Math.cos, t = Math.sin, n = Math.tan, r = Math.round;
1695
+ function i() {
1696
+ return this.props[0] = 1, this.props[1] = 0, this.props[2] = 0, this.props[3] = 0, this.props[4] = 0, this.props[5] = 1, this.props[6] = 0, this.props[7] = 0, this.props[8] = 0, this.props[9] = 0, this.props[10] = 1, this.props[11] = 0, this.props[12] = 0, this.props[13] = 0, this.props[14] = 0, this.props[15] = 1, this;
1697
+ }
1698
+ function a(n) {
1699
+ if (n === 0) return this;
1700
+ var r = e(n), i = t(n);
1701
+ return this._t(r, -i, 0, 0, i, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1702
+ }
1703
+ function o(n) {
1704
+ if (n === 0) return this;
1705
+ var r = e(n), i = t(n);
1706
+ return this._t(1, 0, 0, 0, 0, r, -i, 0, 0, i, r, 0, 0, 0, 0, 1);
1707
+ }
1708
+ function s(n) {
1709
+ if (n === 0) return this;
1710
+ var r = e(n), i = t(n);
1711
+ return this._t(r, 0, i, 0, 0, 1, 0, 0, -i, 0, r, 0, 0, 0, 0, 1);
1712
+ }
1713
+ function c(n) {
1714
+ if (n === 0) return this;
1715
+ var r = e(n), i = t(n);
1716
+ return this._t(r, -i, 0, 0, i, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1717
+ }
1718
+ function l(e, t) {
1719
+ return this._t(1, t, e, 1, 0, 0);
1720
+ }
1721
+ function u(e, t) {
1722
+ return this.shear(n(e), n(t));
1723
+ }
1724
+ function d(r, i) {
1725
+ var a = e(i), o = t(i);
1726
+ return this._t(a, o, 0, 0, -o, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(r), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(a, -o, 0, 0, o, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1727
+ }
1728
+ function f(e, t, n) {
1729
+ return !n && n !== 0 && (n = 1), e === 1 && t === 1 && n === 1 ? this : this._t(e, 0, 0, 0, 0, t, 0, 0, 0, 0, n, 0, 0, 0, 0, 1);
1730
+ }
1731
+ function p(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
1732
+ return this.props[0] = e, this.props[1] = t, this.props[2] = n, this.props[3] = r, this.props[4] = i, this.props[5] = a, this.props[6] = o, this.props[7] = s, this.props[8] = c, this.props[9] = l, this.props[10] = u, this.props[11] = d, this.props[12] = f, this.props[13] = p, this.props[14] = m, this.props[15] = h, this;
1733
+ }
1734
+ function h(e, t, n) {
1735
+ return n ||= 0, e !== 0 || t !== 0 || n !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e, t, n, 1) : this;
1736
+ }
1737
+ function g(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
1738
+ var g = this.props;
1739
+ if (e === 1 && t === 0 && n === 0 && r === 0 && i === 0 && a === 1 && o === 0 && s === 0 && c === 0 && l === 0 && u === 1 && d === 0) return g[12] = g[12] * e + g[15] * f, g[13] = g[13] * a + g[15] * p, g[14] = g[14] * u + g[15] * m, g[15] *= h, this._identityCalculated = !1, this;
1740
+ var _ = g[0], v = g[1], y = g[2], b = g[3], x = g[4], S = g[5], C = g[6], w = g[7], T = g[8], E = g[9], D = g[10], O = g[11], k = g[12], A = g[13], j = g[14], M = g[15];
1741
+ return g[0] = _ * e + v * i + y * c + b * f, g[1] = _ * t + v * a + y * l + b * p, g[2] = _ * n + v * o + y * u + b * m, g[3] = _ * r + v * s + y * d + b * h, g[4] = x * e + S * i + C * c + w * f, g[5] = x * t + S * a + C * l + w * p, g[6] = x * n + S * o + C * u + w * m, g[7] = x * r + S * s + C * d + w * h, g[8] = T * e + E * i + D * c + O * f, g[9] = T * t + E * a + D * l + O * p, g[10] = T * n + E * o + D * u + O * m, g[11] = T * r + E * s + D * d + O * h, g[12] = k * e + A * i + j * c + M * f, g[13] = k * t + A * a + j * l + M * p, g[14] = k * n + A * o + j * u + M * m, g[15] = k * r + A * s + j * d + M * h, this._identityCalculated = !1, this;
1742
+ }
1743
+ function _(e) {
1744
+ var t = e.props;
1745
+ return this.transform(t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11], t[12], t[13], t[14], t[15]);
1746
+ }
1747
+ function v() {
1748
+ return this._identityCalculated ||= (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), !0), this._identity;
1749
+ }
1750
+ function y(e) {
1751
+ for (var t = 0; t < 16;) {
1752
+ if (e.props[t] !== this.props[t]) return !1;
1753
+ t += 1;
1754
+ }
1755
+ return !0;
1756
+ }
1757
+ function b(e) {
1758
+ var t;
1759
+ for (t = 0; t < 16; t += 1) e.props[t] = this.props[t];
1760
+ return e;
1761
+ }
1762
+ function x(e) {
1763
+ var t;
1764
+ for (t = 0; t < 16; t += 1) this.props[t] = e[t];
1765
+ }
1766
+ function S(e, t, n) {
1767
+ return {
1768
+ x: e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12],
1769
+ y: e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13],
1770
+ z: e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
1771
+ };
1772
+ }
1773
+ function C(e, t, n) {
1774
+ return e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12];
1775
+ }
1776
+ function w(e, t, n) {
1777
+ return e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13];
1778
+ }
1779
+ function T(e, t, n) {
1780
+ return e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14];
1781
+ }
1782
+ function E() {
1783
+ var e = this.props[0] * this.props[5] - this.props[1] * this.props[4], t = this.props[5] / e, n = -this.props[1] / e, r = -this.props[4] / e, i = this.props[0] / e, a = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / e, o = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / e, s = new G();
1784
+ return s.props[0] = t, s.props[1] = n, s.props[4] = r, s.props[5] = i, s.props[12] = a, s.props[13] = o, s;
1785
+ }
1786
+ function D(e) {
1787
+ return this.getInverseMatrix().applyToPointArray(e[0], e[1], e[2] || 0);
1788
+ }
1789
+ function O(e) {
1790
+ var t, n = e.length, r = [];
1791
+ for (t = 0; t < n; t += 1) r[t] = D(e[t]);
1792
+ return r;
1793
+ }
1794
+ function k(e, t, n) {
1795
+ var r = m("float32", 6);
1796
+ if (this.isIdentity()) r[0] = e[0], r[1] = e[1], r[2] = t[0], r[3] = t[1], r[4] = n[0], r[5] = n[1];
1797
+ else {
1798
+ var i = this.props[0], a = this.props[1], o = this.props[4], s = this.props[5], c = this.props[12], l = this.props[13];
1799
+ r[0] = e[0] * i + e[1] * o + c, r[1] = e[0] * a + e[1] * s + l, r[2] = t[0] * i + t[1] * o + c, r[3] = t[0] * a + t[1] * s + l, r[4] = n[0] * i + n[1] * o + c, r[5] = n[0] * a + n[1] * s + l;
1800
+ }
1801
+ return r;
1802
+ }
1803
+ function A(e, t, n) {
1804
+ return this.isIdentity() ? [
1805
+ e,
1806
+ t,
1807
+ n
1808
+ ] : [
1809
+ e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12],
1810
+ e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13],
1811
+ e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
1812
+ ];
1813
+ }
1814
+ function j(e, t) {
1815
+ if (this.isIdentity()) return e + "," + t;
1816
+ var n = this.props;
1817
+ return Math.round((e * n[0] + t * n[4] + n[12]) * 100) / 100 + "," + Math.round((e * n[1] + t * n[5] + n[13]) * 100) / 100;
1818
+ }
1819
+ function M() {
1820
+ for (var e = 0, t = this.props, n = "matrix3d(", i = 1e4; e < 16;) n += r(t[e] * i) / i, n += e === 15 ? ")" : ",", e += 1;
1821
+ return n;
1822
+ }
1823
+ function N(e) {
1824
+ var t = 1e4;
1825
+ return e < 1e-6 && e > 0 || e > -1e-6 && e < 0 ? r(e * t) / t : e;
1826
+ }
1827
+ function P() {
1828
+ var e = this.props, t = N(e[0]), n = N(e[1]), r = N(e[4]), i = N(e[5]), a = N(e[12]), o = N(e[13]);
1829
+ return "matrix(" + t + "," + n + "," + r + "," + i + "," + a + "," + o + ")";
1830
+ }
1831
+ return function() {
1832
+ this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = s, this.rotateZ = c, this.skew = u, this.skewFromAxis = d, this.shear = l, this.scale = f, this.setTransform = p, this.translate = h, this.transform = g, this.multiply = _, this.applyToPoint = S, this.applyToX = C, this.applyToY = w, this.applyToZ = T, this.applyToPointArray = A, this.applyToTriplePoints = k, this.applyToPointStringified = j, this.toCSS = M, this.to2dCSS = P, this.clone = b, this.cloneFromProps = x, this.equals = y, this.inversePoints = O, this.inversePoint = D, this.getInverseMatrix = E, this._t = this.transform, this.isIdentity = v, this._identity = !0, this._identityCalculated = !1, this.props = m("float32", 16), this.reset();
1833
+ };
1834
+ }();
1835
+ function Ye(e) {
1836
+ "@babel/helpers - typeof";
1837
+ return Ye = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1838
+ return typeof e;
1839
+ } : function(e) {
1840
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1841
+ }, Ye(e);
1842
+ }
1843
+ var K = {}, Xe = "__[STANDALONE]__", Ze = "__[ANIMATIONDATA]__", Qe = "";
1844
+ function $e(e) {
1845
+ c(e);
1846
+ }
1847
+ function et() {
1848
+ Xe === !0 ? V.searchAnimations(Ze, Xe, Qe) : V.searchAnimations();
1849
+ }
1850
+ function tt(e) {
1851
+ oe(e);
1852
+ }
1853
+ function nt(e) {
1854
+ pe(e);
1855
+ }
1856
+ function rt(e) {
1857
+ return Xe === !0 && (e.animationData = JSON.parse(Ze)), V.loadAnimation(e);
1858
+ }
1859
+ function it(e) {
1860
+ if (typeof e == "string") switch (e) {
1861
+ case "high":
1862
+ de(200);
1863
+ break;
1864
+ default:
1865
+ case "medium":
1866
+ de(50);
1867
+ break;
1868
+ case "low":
1869
+ de(10);
1870
+ break;
1871
+ }
1872
+ else !isNaN(e) && e > 1 && de(e);
1873
+ }
1874
+ function at() {
1875
+ return typeof navigator < "u";
1876
+ }
1877
+ function ot(e, t) {
1878
+ e === "expressions" && ce(t);
1879
+ }
1880
+ function st(e) {
1881
+ switch (e) {
1882
+ case "propertyFactory": return H;
1883
+ case "shapePropertyFactory": return Je;
1884
+ case "matrix": return G;
1885
+ default: return null;
1886
+ }
1887
+ }
1888
+ K.play = V.play, K.pause = V.pause, K.setLocationHref = $e, K.togglePause = V.togglePause, K.setSpeed = V.setSpeed, K.setDirection = V.setDirection, K.stop = V.stop, K.searchAnimations = et, K.registerAnimation = V.registerAnimation, K.loadAnimation = rt, K.setSubframeRendering = tt, K.resize = V.resize, K.goToAndStop = V.goToAndStop, K.destroy = V.destroy, K.setQuality = it, K.inBrowser = at, K.installPlugin = ot, K.freeze = V.freeze, K.unfreeze = V.unfreeze, K.setVolume = V.setVolume, K.mute = V.mute, K.unmute = V.unmute, K.getRegisteredAnimations = V.getRegisteredAnimations, K.useWebWorker = o, K.setIDPrefix = nt, K.__getFactory = st, K.version = "5.13.0";
1889
+ function ct() {
1890
+ document.readyState === "complete" && (clearInterval(pt), et());
1891
+ }
1892
+ function lt(e) {
1893
+ for (var t = ut.split("&"), n = 0; n < t.length; n += 1) {
1894
+ var r = t[n].split("=");
1895
+ if (decodeURIComponent(r[0]) == e) return decodeURIComponent(r[1]);
1896
+ }
1897
+ return null;
1898
+ }
1899
+ var ut = "";
1900
+ if (Xe) {
1901
+ var dt = document.getElementsByTagName("script"), ft = dt[dt.length - 1] || { src: "" };
1902
+ ut = ft.src ? ft.src.replace(/^[^\?]+\??/, "") : "", Qe = lt("renderer");
1903
+ }
1904
+ var pt = setInterval(ct, 100);
1905
+ try {
1906
+ !((e === void 0 ? "undefined" : Ye(e)) === "object" && t !== void 0) && !(typeof define == "function" && define.amd) && (window.bodymovin = K);
1907
+ } catch {}
1908
+ var mt = function() {
1909
+ var e = {}, t = {};
1910
+ e.registerModifier = n, e.getModifier = r;
1911
+ function n(e, n) {
1912
+ t[e] || (t[e] = n);
1913
+ }
1914
+ function r(e, n, r) {
1915
+ return new t[e](n, r);
1916
+ }
1917
+ return e;
1918
+ }();
1919
+ function q() {}
1920
+ q.prototype.initModifierProperties = function() {}, q.prototype.addShapeToModifier = function() {}, q.prototype.addShape = function(e) {
1921
+ if (!this.closed) {
1922
+ e.sh.container.addDynamicProperty(e.sh);
1923
+ var t = {
1924
+ shape: e.sh,
1925
+ data: e,
1926
+ localShapeCollection: qe.newShapeCollection()
1927
+ };
1928
+ this.shapes.push(t), this.addShapeToModifier(t), this._isAnimated && e.setAsAnimated();
1929
+ }
1930
+ }, q.prototype.init = function(e, t) {
1931
+ this.shapes = [], this.elem = e, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t), this.frameId = a, this.closed = !1, this.k = !1, this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
1932
+ }, q.prototype.processKeys = function() {
1933
+ this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties());
1934
+ }, d([U], q);
1935
+ function ht() {}
1936
+ d([q], ht), ht.prototype.initModifierProperties = function(e, t) {
1937
+ this.s = H.getProp(e, t.s, 0, .01, this), this.e = H.getProp(e, t.e, 0, .01, this), this.o = H.getProp(e, t.o, 0, 0, this), this.sValue = 0, this.eValue = 0, this.getValue = this.processKeys, this.m = t.m, this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length;
1938
+ }, ht.prototype.addShapeToModifier = function(e) {
1939
+ e.pathsData = [];
1940
+ }, ht.prototype.calculateShapeEdges = function(e, t, n, r, i) {
1941
+ var a = [];
1942
+ t <= 1 ? a.push({
1943
+ s: e,
1944
+ e: t
1945
+ }) : e >= 1 ? a.push({
1946
+ s: e - 1,
1947
+ e: t - 1
1948
+ }) : (a.push({
1949
+ s: e,
1950
+ e: 1
1951
+ }), a.push({
1952
+ s: 0,
1953
+ e: t - 1
1954
+ }));
1955
+ var o = [], s, c = a.length, l;
1956
+ for (s = 0; s < c; s += 1) if (l = a[s], !(l.e * i < r || l.s * i > r + n)) {
1957
+ var u = l.s * i <= r ? 0 : (l.s * i - r) / n, d = l.e * i >= r + n ? 1 : (l.e * i - r) / n;
1958
+ o.push([u, d]);
1959
+ }
1960
+ return o.length || o.push([0, 0]), o;
1961
+ }, ht.prototype.releasePathsData = function(e) {
1962
+ var t, n = e.length;
1963
+ for (t = 0; t < n; t += 1) De.release(e[t]);
1964
+ return e.length = 0, e;
1965
+ }, ht.prototype.processShapes = function(e) {
1966
+ var t, n;
1967
+ if (this._mdf || e) {
1968
+ var r = this.o.v % 360 / 360;
1969
+ if (r < 0 && (r += 1), t = this.s.v > 1 ? 1 + r : this.s.v < 0 ? 0 + r : this.s.v + r, n = this.e.v > 1 ? 1 + r : this.e.v < 0 ? 0 + r : this.e.v + r, t > n) {
1970
+ var i = t;
1971
+ t = n, n = i;
1972
+ }
1973
+ t = Math.round(t * 1e4) * 1e-4, n = Math.round(n * 1e4) * 1e-4, this.sValue = t, this.eValue = n;
1974
+ } else t = this.sValue, n = this.eValue;
1975
+ var a, o, s = this.shapes.length, c, l, u, d, f, p = 0;
1976
+ if (n === t) for (o = 0; o < s; o += 1) this.shapes[o].localShapeCollection.releaseShapes(), this.shapes[o].shape._mdf = !0, this.shapes[o].shape.paths = this.shapes[o].localShapeCollection, this._mdf && (this.shapes[o].pathsData.length = 0);
1977
+ else if (!(n === 1 && t === 0 || n === 0 && t === 1)) {
1978
+ var m = [], h, g;
1979
+ for (o = 0; o < s; o += 1) if (h = this.shapes[o], !h.shape._mdf && !this._mdf && !e && this.m !== 2) h.shape.paths = h.localShapeCollection;
1980
+ else {
1981
+ if (a = h.shape.paths, l = a._length, f = 0, !h.shape._mdf && h.pathsData.length) f = h.totalShapeLength;
1982
+ else {
1983
+ for (u = this.releasePathsData(h.pathsData), c = 0; c < l; c += 1) d = ke.getSegmentsLength(a.shapes[c]), u.push(d), f += d.totalLength;
1984
+ h.totalShapeLength = f, h.pathsData = u;
1985
+ }
1986
+ p += f, h.shape._mdf = !0;
1987
+ }
1988
+ var _ = t, v = n, y = 0, b;
1989
+ for (o = s - 1; o >= 0; --o) if (h = this.shapes[o], h.shape._mdf) {
1990
+ for (g = h.localShapeCollection, g.releaseShapes(), this.m === 2 && s > 1 ? (b = this.calculateShapeEdges(t, n, h.totalShapeLength, y, p), y += h.totalShapeLength) : b = [[_, v]], l = b.length, c = 0; c < l; c += 1) {
1991
+ _ = b[c][0], v = b[c][1], m.length = 0, v <= 1 ? m.push({
1992
+ s: h.totalShapeLength * _,
1993
+ e: h.totalShapeLength * v
1994
+ }) : _ >= 1 ? m.push({
1995
+ s: h.totalShapeLength * (_ - 1),
1996
+ e: h.totalShapeLength * (v - 1)
1997
+ }) : (m.push({
1998
+ s: h.totalShapeLength * _,
1999
+ e: h.totalShapeLength
2000
+ }), m.push({
2001
+ s: 0,
2002
+ e: h.totalShapeLength * (v - 1)
2003
+ }));
2004
+ var x = this.addShapes(h, m[0]);
2005
+ if (m[0].s !== m[0].e) {
2006
+ if (m.length > 1) if (h.shape.paths.shapes[h.shape.paths._length - 1].c) {
2007
+ var S = x.pop();
2008
+ this.addPaths(x, g), x = this.addShapes(h, m[1], S);
2009
+ } else this.addPaths(x, g), x = this.addShapes(h, m[1]);
2010
+ this.addPaths(x, g);
2011
+ }
2012
+ }
2013
+ h.shape.paths = g;
2014
+ }
2015
+ } else if (this._mdf) for (o = 0; o < s; o += 1) this.shapes[o].pathsData.length = 0, this.shapes[o].shape._mdf = !0;
2016
+ }, ht.prototype.addPaths = function(e, t) {
2017
+ var n, r = e.length;
2018
+ for (n = 0; n < r; n += 1) t.addShape(e[n]);
2019
+ }, ht.prototype.addSegment = function(e, t, n, r, i, a, o) {
2020
+ i.setXYAt(t[0], t[1], "o", a), i.setXYAt(n[0], n[1], "i", a + 1), o && i.setXYAt(e[0], e[1], "v", a), i.setXYAt(r[0], r[1], "v", a + 1);
2021
+ }, ht.prototype.addSegmentFromArray = function(e, t, n, r) {
2022
+ t.setXYAt(e[1], e[5], "o", n), t.setXYAt(e[2], e[6], "i", n + 1), r && t.setXYAt(e[0], e[4], "v", n), t.setXYAt(e[3], e[7], "v", n + 1);
2023
+ }, ht.prototype.addShapes = function(e, t, n) {
2024
+ var r = e.pathsData, i = e.shape.paths.shapes, a, o = e.shape.paths._length, s, c, l = 0, u, d, f, p, m = [], h, g = !0;
2025
+ for (n ? (d = n._length, h = n._length) : (n = W.newElement(), d = 0, h = 0), m.push(n), a = 0; a < o; a += 1) {
2026
+ for (f = r[a].lengths, n.c = i[a].c, c = i[a].c ? f.length : f.length + 1, s = 1; s < c; s += 1) if (u = f[s - 1], l + u.addedLength < t.s) l += u.addedLength, n.c = !1;
2027
+ else if (l > t.e) {
2028
+ n.c = !1;
2029
+ break;
2030
+ } else t.s <= l && t.e >= l + u.addedLength ? (this.addSegment(i[a].v[s - 1], i[a].o[s - 1], i[a].i[s], i[a].v[s], n, d, g), g = !1) : (p = ke.getNewSegment(i[a].v[s - 1], i[a].v[s], i[a].o[s - 1], i[a].i[s], (t.s - l) / u.addedLength, (t.e - l) / u.addedLength, f[s - 1]), this.addSegmentFromArray(p, n, d, g), g = !1, n.c = !1), l += u.addedLength, d += 1;
2031
+ if (i[a].c && f.length) {
2032
+ if (u = f[s - 1], l <= t.e) {
2033
+ var _ = f[s - 1].addedLength;
2034
+ t.s <= l && t.e >= l + _ ? (this.addSegment(i[a].v[s - 1], i[a].o[s - 1], i[a].i[0], i[a].v[0], n, d, g), g = !1) : (p = ke.getNewSegment(i[a].v[s - 1], i[a].v[0], i[a].o[s - 1], i[a].i[0], (t.s - l) / _, (t.e - l) / _, f[s - 1]), this.addSegmentFromArray(p, n, d, g), g = !1, n.c = !1);
2035
+ } else n.c = !1;
2036
+ l += u.addedLength, d += 1;
2037
+ }
2038
+ if (n._length && (n.setXYAt(n.v[h][0], n.v[h][1], "i", h), n.setXYAt(n.v[n._length - 1][0], n.v[n._length - 1][1], "o", n._length - 1)), l > t.e) break;
2039
+ a < o - 1 && (n = W.newElement(), g = !0, m.push(n), d = 0);
2040
+ }
2041
+ return m;
2042
+ };
2043
+ function gt() {}
2044
+ d([q], gt), gt.prototype.initModifierProperties = function(e, t) {
2045
+ this.getValue = this.processKeys, this.amount = H.getProp(e, t.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
2046
+ }, gt.prototype.processPath = function(e, t) {
2047
+ var n = t / 100, r = [0, 0], i = e._length, a = 0;
2048
+ for (a = 0; a < i; a += 1) r[0] += e.v[a][0], r[1] += e.v[a][1];
2049
+ r[0] /= i, r[1] /= i;
2050
+ var o = W.newElement();
2051
+ o.c = e.c;
2052
+ var s, c, l, u, d, f;
2053
+ for (a = 0; a < i; a += 1) s = e.v[a][0] + (r[0] - e.v[a][0]) * n, c = e.v[a][1] + (r[1] - e.v[a][1]) * n, l = e.o[a][0] + (r[0] - e.o[a][0]) * -n, u = e.o[a][1] + (r[1] - e.o[a][1]) * -n, d = e.i[a][0] + (r[0] - e.i[a][0]) * -n, f = e.i[a][1] + (r[1] - e.i[a][1]) * -n, o.setTripleAt(s, c, l, u, d, f, a);
2054
+ return o;
2055
+ }, gt.prototype.processShapes = function(e) {
2056
+ var t, n, r = this.shapes.length, i, a, o = this.amount.v;
2057
+ if (o !== 0) {
2058
+ var s, c;
2059
+ for (n = 0; n < r; n += 1) {
2060
+ if (s = this.shapes[n], c = s.localShapeCollection, !(!s.shape._mdf && !this._mdf && !e)) for (c.releaseShapes(), s.shape._mdf = !0, t = s.shape.paths.shapes, a = s.shape.paths._length, i = 0; i < a; i += 1) c.addShape(this.processPath(t[i], o));
2061
+ s.shape.paths = s.localShapeCollection;
2062
+ }
2063
+ }
2064
+ this.dynamicProperties.length || (this._mdf = !1);
2065
+ };
2066
+ var _t = function() {
2067
+ var e = [0, 0];
2068
+ function t(e) {
2069
+ var t = this._mdf;
2070
+ this.iterateDynamicProperties(), this._mdf = this._mdf || t, this.a && e.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && e.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && e.skewFromAxis(-this.sk.v, this.sa.v), this.r ? e.rotate(-this.r.v) : e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.data.p.s ? this.data.p.z ? e.translate(this.px.v, this.py.v, -this.pz.v) : e.translate(this.px.v, this.py.v, 0) : e.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
2071
+ }
2072
+ function n(t) {
2073
+ if (this.elem.globalData.frameId !== this.frameId) {
2074
+ if (this._isDirty &&= (this.precalculateMatrix(), !1), this.iterateDynamicProperties(), this._mdf || t) {
2075
+ var n;
2076
+ if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
2077
+ var r, i;
2078
+ if (n = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime) this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (r = this.p.getValueAtTime((this.p.keyframes[0].t + .01) / n, 0), i = this.p.getValueAtTime(this.p.keyframes[0].t / n, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (r = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / n, 0), i = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - .05) / n, 0)) : (r = this.p.pv, i = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - .01) / n, this.p.offsetTime));
2079
+ else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
2080
+ r = [], i = [];
2081
+ var a = this.px, o = this.py;
2082
+ a._caching.lastFrame + a.offsetTime <= a.keyframes[0].t ? (r[0] = a.getValueAtTime((a.keyframes[0].t + .01) / n, 0), r[1] = o.getValueAtTime((o.keyframes[0].t + .01) / n, 0), i[0] = a.getValueAtTime(a.keyframes[0].t / n, 0), i[1] = o.getValueAtTime(o.keyframes[0].t / n, 0)) : a._caching.lastFrame + a.offsetTime >= a.keyframes[a.keyframes.length - 1].t ? (r[0] = a.getValueAtTime(a.keyframes[a.keyframes.length - 1].t / n, 0), r[1] = o.getValueAtTime(o.keyframes[o.keyframes.length - 1].t / n, 0), i[0] = a.getValueAtTime((a.keyframes[a.keyframes.length - 1].t - .01) / n, 0), i[1] = o.getValueAtTime((o.keyframes[o.keyframes.length - 1].t - .01) / n, 0)) : (r = [a.pv, o.pv], i[0] = a.getValueAtTime((a._caching.lastFrame + a.offsetTime - .01) / n, a.offsetTime), i[1] = o.getValueAtTime((o._caching.lastFrame + o.offsetTime - .01) / n, o.offsetTime));
2083
+ } else i = e, r = i;
2084
+ this.v.rotate(-Math.atan2(r[1] - i[1], r[0] - i[0]));
2085
+ }
2086
+ this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
2087
+ }
2088
+ this.frameId = this.elem.globalData.frameId;
2089
+ }
2090
+ }
2091
+ function r() {
2092
+ if (this.appliedTransformations = 0, this.pre.reset(), !this.a.effectsSequence.length) this.pre.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations = 1;
2093
+ else return;
2094
+ if (!this.s.effectsSequence.length) this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.appliedTransformations = 2;
2095
+ else return;
2096
+ if (this.sk) if (!this.sk.effectsSequence.length && !this.sa.effectsSequence.length) this.pre.skewFromAxis(-this.sk.v, this.sa.v), this.appliedTransformations = 3;
2097
+ else return;
2098
+ this.r ? this.r.effectsSequence.length || (this.pre.rotate(-this.r.v), this.appliedTransformations = 4) : !this.rz.effectsSequence.length && !this.ry.effectsSequence.length && !this.rx.effectsSequence.length && !this.or.effectsSequence.length && (this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.appliedTransformations = 4);
2099
+ }
2100
+ function i() {}
2101
+ function a(e) {
2102
+ this._addDynamicProperty(e), this.elem.addDynamicProperty(e), this._isDirty = !0;
2103
+ }
2104
+ function o(e, t, n) {
2105
+ if (this.elem = e, this.frameId = -1, this.propType = "transform", this.data = t, this.v = new G(), this.pre = new G(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(n || e), t.p && t.p.s ? (this.px = H.getProp(e, t.p.x, 0, 0, this), this.py = H.getProp(e, t.p.y, 0, 0, this), t.p.z && (this.pz = H.getProp(e, t.p.z, 0, 0, this))) : this.p = H.getProp(e, t.p || { k: [
2106
+ 0,
2107
+ 0,
2108
+ 0
2109
+ ] }, 1, 0, this), t.rx) {
2110
+ if (this.rx = H.getProp(e, t.rx, 0, O, this), this.ry = H.getProp(e, t.ry, 0, O, this), this.rz = H.getProp(e, t.rz, 0, O, this), t.or.k[0].ti) {
2111
+ var r, i = t.or.k.length;
2112
+ for (r = 0; r < i; r += 1) t.or.k[r].to = null, t.or.k[r].ti = null;
2113
+ }
2114
+ this.or = H.getProp(e, t.or, 1, O, this), this.or.sh = !0;
2115
+ } else this.r = H.getProp(e, t.r || { k: 0 }, 0, O, this);
2116
+ t.sk && (this.sk = H.getProp(e, t.sk, 0, O, this), this.sa = H.getProp(e, t.sa, 0, O, this)), this.a = H.getProp(e, t.a || { k: [
2117
+ 0,
2118
+ 0,
2119
+ 0
2120
+ ] }, 1, 0, this), this.s = H.getProp(e, t.s || { k: [
2121
+ 100,
2122
+ 100,
2123
+ 100
2124
+ ] }, 1, .01, this), t.o ? this.o = H.getProp(e, t.o, 0, .01, e) : this.o = {
2125
+ _mdf: !1,
2126
+ v: 1
2127
+ }, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0);
2128
+ }
2129
+ o.prototype = {
2130
+ applyToMatrix: t,
2131
+ getValue: n,
2132
+ precalculateMatrix: r,
2133
+ autoOrient: i
2134
+ }, d([U], o), o.prototype.addDynamicProperty = a, o.prototype._addDynamicProperty = U.prototype.addDynamicProperty;
2135
+ function s(e, t, n) {
2136
+ return new o(e, t, n);
2137
+ }
2138
+ return { getTransformProperty: s };
2139
+ }();
2140
+ function vt() {}
2141
+ d([q], vt), vt.prototype.initModifierProperties = function(e, t) {
2142
+ this.getValue = this.processKeys, this.c = H.getProp(e, t.c, 0, null, this), this.o = H.getProp(e, t.o, 0, null, this), this.tr = _t.getTransformProperty(e, t.tr, this), this.so = H.getProp(e, t.tr.so, 0, .01, this), this.eo = H.getProp(e, t.tr.eo, 0, .01, this), this.data = t, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new G(), this.rMatrix = new G(), this.sMatrix = new G(), this.tMatrix = new G(), this.matrix = new G();
2143
+ }, vt.prototype.applyTransforms = function(e, t, n, r, i, a) {
2144
+ var o = a ? -1 : 1, s = r.s.v[0] + (1 - r.s.v[0]) * (1 - i), c = r.s.v[1] + (1 - r.s.v[1]) * (1 - i);
2145
+ e.translate(r.p.v[0] * o * i, r.p.v[1] * o * i, r.p.v[2]), t.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]), t.rotate(-r.r.v * o * i), t.translate(r.a.v[0], r.a.v[1], r.a.v[2]), n.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]), n.scale(a ? 1 / s : s, a ? 1 / c : c), n.translate(r.a.v[0], r.a.v[1], r.a.v[2]);
2146
+ }, vt.prototype.init = function(e, t, n, r) {
2147
+ for (this.elem = e, this.arr = t, this.pos = n, this.elemsData = r, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t[n]); n > 0;) --n, this._elements.unshift(t[n]);
2148
+ this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
2149
+ }, vt.prototype.resetElements = function(e) {
2150
+ var t, n = e.length;
2151
+ for (t = 0; t < n; t += 1) e[t]._processed = !1, e[t].ty === "gr" && this.resetElements(e[t].it);
2152
+ }, vt.prototype.cloneElements = function(e) {
2153
+ var t = JSON.parse(JSON.stringify(e));
2154
+ return this.resetElements(t), t;
2155
+ }, vt.prototype.changeGroupRender = function(e, t) {
2156
+ var n, r = e.length;
2157
+ for (n = 0; n < r; n += 1) e[n]._render = t, e[n].ty === "gr" && this.changeGroupRender(e[n].it, t);
2158
+ }, vt.prototype.processShapes = function(e) {
2159
+ var t, n, r, i, a, o = !1;
2160
+ if (this._mdf || e) {
2161
+ var s = Math.ceil(this.c.v);
2162
+ if (this._groups.length < s) {
2163
+ for (; this._groups.length < s;) {
2164
+ var c = {
2165
+ it: this.cloneElements(this._elements),
2166
+ ty: "gr"
2167
+ };
2168
+ c.it.push({
2169
+ a: {
2170
+ a: 0,
2171
+ ix: 1,
2172
+ k: [0, 0]
2173
+ },
2174
+ nm: "Transform",
2175
+ o: {
2176
+ a: 0,
2177
+ ix: 7,
2178
+ k: 100
2179
+ },
2180
+ p: {
2181
+ a: 0,
2182
+ ix: 2,
2183
+ k: [0, 0]
2184
+ },
2185
+ r: {
2186
+ a: 1,
2187
+ ix: 6,
2188
+ k: [{
2189
+ s: 0,
2190
+ e: 0,
2191
+ t: 0
2192
+ }, {
2193
+ s: 0,
2194
+ e: 0,
2195
+ t: 1
2196
+ }]
2197
+ },
2198
+ s: {
2199
+ a: 0,
2200
+ ix: 3,
2201
+ k: [100, 100]
2202
+ },
2203
+ sa: {
2204
+ a: 0,
2205
+ ix: 5,
2206
+ k: 0
2207
+ },
2208
+ sk: {
2209
+ a: 0,
2210
+ ix: 4,
2211
+ k: 0
2212
+ },
2213
+ ty: "tr"
2214
+ }), this.arr.splice(0, 0, c), this._groups.splice(0, 0, c), this._currentCopies += 1;
2215
+ }
2216
+ this.elem.reloadShapes(), o = !0;
2217
+ }
2218
+ a = 0;
2219
+ var l;
2220
+ for (r = 0; r <= this._groups.length - 1; r += 1) {
2221
+ if (l = a < s, this._groups[r]._render = l, this.changeGroupRender(this._groups[r].it, l), !l) {
2222
+ var u = this.elemsData[r].it, d = u[u.length - 1];
2223
+ d.transform.op.v === 0 ? d.transform.op._mdf = !1 : (d.transform.op._mdf = !0, d.transform.op.v = 0);
2224
+ }
2225
+ a += 1;
2226
+ }
2227
+ this._currentCopies = s;
2228
+ var f = this.o.v, p = f % 1, m = f > 0 ? Math.floor(f) : Math.ceil(f), h = this.pMatrix.props, g = this.rMatrix.props, _ = this.sMatrix.props;
2229
+ this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
2230
+ var v = 0;
2231
+ if (f > 0) {
2232
+ for (; v < m;) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), v += 1;
2233
+ p && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, p, !1), v += p);
2234
+ } else if (f < 0) {
2235
+ for (; v > m;) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), --v;
2236
+ p && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -p, !0), v -= p);
2237
+ }
2238
+ r = this.data.m === 1 ? 0 : this._currentCopies - 1, i = this.data.m === 1 ? 1 : -1, a = this._currentCopies;
2239
+ for (var y, b; a;) {
2240
+ if (t = this.elemsData[r].it, n = t[t.length - 1].transform.mProps.v.props, b = n.length, t[t.length - 1].transform.mProps._mdf = !0, t[t.length - 1].transform.op._mdf = !0, t[t.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (r / (this._currentCopies - 1)), v !== 0) {
2241
+ for ((r !== 0 && i === 1 || r !== this._currentCopies - 1 && i === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(g[0], g[1], g[2], g[3], g[4], g[5], g[6], g[7], g[8], g[9], g[10], g[11], g[12], g[13], g[14], g[15]), this.matrix.transform(_[0], _[1], _[2], _[3], _[4], _[5], _[6], _[7], _[8], _[9], _[10], _[11], _[12], _[13], _[14], _[15]), this.matrix.transform(h[0], h[1], h[2], h[3], h[4], h[5], h[6], h[7], h[8], h[9], h[10], h[11], h[12], h[13], h[14], h[15]), y = 0; y < b; y += 1) n[y] = this.matrix.props[y];
2242
+ this.matrix.reset();
2243
+ } else for (this.matrix.reset(), y = 0; y < b; y += 1) n[y] = this.matrix.props[y];
2244
+ v += 1, --a, r += i;
2245
+ }
2246
+ } else for (a = this._currentCopies, r = 0, i = 1; a;) t = this.elemsData[r].it, n = t[t.length - 1].transform.mProps.v.props, t[t.length - 1].transform.mProps._mdf = !1, t[t.length - 1].transform.op._mdf = !1, --a, r += i;
2247
+ return o;
2248
+ }, vt.prototype.addShape = function() {};
2249
+ function yt() {}
2250
+ d([q], yt), yt.prototype.initModifierProperties = function(e, t) {
2251
+ this.getValue = this.processKeys, this.rd = H.getProp(e, t.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
2252
+ }, yt.prototype.processPath = function(e, t) {
2253
+ var n = W.newElement();
2254
+ n.c = e.c;
2255
+ var r, i = e._length, a, o, s, c, l, u, d = 0, f, p, m, h, g, _;
2256
+ for (r = 0; r < i; r += 1) a = e.v[r], s = e.o[r], o = e.i[r], a[0] === s[0] && a[1] === s[1] && a[0] === o[0] && a[1] === o[1] ? (r === 0 || r === i - 1) && !e.c ? (n.setTripleAt(a[0], a[1], s[0], s[1], o[0], o[1], d), d += 1) : (c = r === 0 ? e.v[i - 1] : e.v[r - 1], l = Math.sqrt((a[0] - c[0]) ** 2 + (a[1] - c[1]) ** 2), u = l ? Math.min(l / 2, t) / l : 0, g = a[0] + (c[0] - a[0]) * u, f = g, _ = a[1] - (a[1] - c[1]) * u, p = _, m = f - (f - a[0]) * k, h = p - (p - a[1]) * k, n.setTripleAt(f, p, m, h, g, _, d), d += 1, c = r === i - 1 ? e.v[0] : e.v[r + 1], l = Math.sqrt((a[0] - c[0]) ** 2 + (a[1] - c[1]) ** 2), u = l ? Math.min(l / 2, t) / l : 0, m = a[0] + (c[0] - a[0]) * u, f = m, h = a[1] + (c[1] - a[1]) * u, p = h, g = f - (f - a[0]) * k, _ = p - (p - a[1]) * k, n.setTripleAt(f, p, m, h, g, _, d), d += 1) : (n.setTripleAt(e.v[r][0], e.v[r][1], e.o[r][0], e.o[r][1], e.i[r][0], e.i[r][1], d), d += 1);
2257
+ return n;
2258
+ }, yt.prototype.processShapes = function(e) {
2259
+ var t, n, r = this.shapes.length, i, a, o = this.rd.v;
2260
+ if (o !== 0) {
2261
+ var s, c;
2262
+ for (n = 0; n < r; n += 1) {
2263
+ if (s = this.shapes[n], c = s.localShapeCollection, !(!s.shape._mdf && !this._mdf && !e)) for (c.releaseShapes(), s.shape._mdf = !0, t = s.shape.paths.shapes, a = s.shape.paths._length, i = 0; i < a; i += 1) c.addShape(this.processPath(t[i], o));
2264
+ s.shape.paths = s.localShapeCollection;
2265
+ }
2266
+ }
2267
+ this.dynamicProperties.length || (this._mdf = !1);
2268
+ };
2269
+ function bt(e, t) {
2270
+ return Math.abs(e - t) * 1e5 <= Math.min(Math.abs(e), Math.abs(t));
2271
+ }
2272
+ function xt(e) {
2273
+ return Math.abs(e) <= 1e-5;
2274
+ }
2275
+ function St(e, t, n) {
2276
+ return e * (1 - n) + t * n;
2277
+ }
2278
+ function Ct(e, t, n) {
2279
+ return [St(e[0], t[0], n), St(e[1], t[1], n)];
2280
+ }
2281
+ function wt(e, t, n) {
2282
+ if (e === 0) return [];
2283
+ var r = t * t - 4 * e * n;
2284
+ if (r < 0) return [];
2285
+ var i = -t / (2 * e);
2286
+ if (r === 0) return [i];
2287
+ var a = Math.sqrt(r) / (2 * e);
2288
+ return [i - a, i + a];
2289
+ }
2290
+ function Tt(e, t, n, r) {
2291
+ return [
2292
+ -e + 3 * t - 3 * n + r,
2293
+ 3 * e - 6 * t + 3 * n,
2294
+ -3 * e + 3 * t,
2295
+ e
2296
+ ];
2297
+ }
2298
+ function Et(e) {
2299
+ return new J(e, e, e, e, !1);
2300
+ }
2301
+ function J(e, t, n, r, i) {
2302
+ i && It(e, t) && (t = Ct(e, r, 1 / 3)), i && It(n, r) && (n = Ct(e, r, 2 / 3));
2303
+ var a = Tt(e[0], t[0], n[0], r[0]), o = Tt(e[1], t[1], n[1], r[1]);
2304
+ this.a = [a[0], o[0]], this.b = [a[1], o[1]], this.c = [a[2], o[2]], this.d = [a[3], o[3]], this.points = [
2305
+ e,
2306
+ t,
2307
+ n,
2308
+ r
2309
+ ];
2310
+ }
2311
+ J.prototype.point = function(e) {
2312
+ return [((this.a[0] * e + this.b[0]) * e + this.c[0]) * e + this.d[0], ((this.a[1] * e + this.b[1]) * e + this.c[1]) * e + this.d[1]];
2313
+ }, J.prototype.derivative = function(e) {
2314
+ return [(3 * e * this.a[0] + 2 * this.b[0]) * e + this.c[0], (3 * e * this.a[1] + 2 * this.b[1]) * e + this.c[1]];
2315
+ }, J.prototype.tangentAngle = function(e) {
2316
+ var t = this.derivative(e);
2317
+ return Math.atan2(t[1], t[0]);
2318
+ }, J.prototype.normalAngle = function(e) {
2319
+ var t = this.derivative(e);
2320
+ return Math.atan2(t[0], t[1]);
2321
+ }, J.prototype.inflectionPoints = function() {
2322
+ var e = this.a[1] * this.b[0] - this.a[0] * this.b[1];
2323
+ if (xt(e)) return [];
2324
+ var t = -.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / e, n = t * t - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / e;
2325
+ if (n < 0) return [];
2326
+ var r = Math.sqrt(n);
2327
+ return xt(r) ? r > 0 && r < 1 ? [t] : [] : [t - r, t + r].filter(function(e) {
2328
+ return e > 0 && e < 1;
2329
+ });
2330
+ }, J.prototype.split = function(e) {
2331
+ if (e <= 0) return [Et(this.points[0]), this];
2332
+ if (e >= 1) return [this, Et(this.points[this.points.length - 1])];
2333
+ var t = Ct(this.points[0], this.points[1], e), n = Ct(this.points[1], this.points[2], e), r = Ct(this.points[2], this.points[3], e), i = Ct(t, n, e), a = Ct(n, r, e), o = Ct(i, a, e);
2334
+ return [new J(this.points[0], t, i, o, !0), new J(o, a, r, this.points[3], !0)];
2335
+ };
2336
+ function Dt(e, t) {
2337
+ var n = e.points[0][t], r = e.points[e.points.length - 1][t];
2338
+ if (n > r) {
2339
+ var i = r;
2340
+ r = n, n = i;
2341
+ }
2342
+ for (var a = wt(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < a.length; o += 1) if (a[o] > 0 && a[o] < 1) {
2343
+ var s = e.point(a[o])[t];
2344
+ s < n ? n = s : s > r && (r = s);
2345
+ }
2346
+ return {
2347
+ min: n,
2348
+ max: r
2349
+ };
2350
+ }
2351
+ J.prototype.bounds = function() {
2352
+ return {
2353
+ x: Dt(this, 0),
2354
+ y: Dt(this, 1)
2355
+ };
2356
+ }, J.prototype.boundingBox = function() {
2357
+ var e = this.bounds();
2358
+ return {
2359
+ left: e.x.min,
2360
+ right: e.x.max,
2361
+ top: e.y.min,
2362
+ bottom: e.y.max,
2363
+ width: e.x.max - e.x.min,
2364
+ height: e.y.max - e.y.min,
2365
+ cx: (e.x.max + e.x.min) / 2,
2366
+ cy: (e.y.max + e.y.min) / 2
2367
+ };
2368
+ };
2369
+ function Ot(e, t, n) {
2370
+ var r = e.boundingBox();
2371
+ return {
2372
+ cx: r.cx,
2373
+ cy: r.cy,
2374
+ width: r.width,
2375
+ height: r.height,
2376
+ bez: e,
2377
+ t: (t + n) / 2,
2378
+ t1: t,
2379
+ t2: n
2380
+ };
2381
+ }
2382
+ function kt(e) {
2383
+ var t = e.bez.split(.5);
2384
+ return [Ot(t[0], e.t1, e.t), Ot(t[1], e.t, e.t2)];
2385
+ }
2386
+ function At(e, t) {
2387
+ return Math.abs(e.cx - t.cx) * 2 < e.width + t.width && Math.abs(e.cy - t.cy) * 2 < e.height + t.height;
2388
+ }
2389
+ function jt(e, t, n, r, i, a) {
2390
+ if (At(e, t)) {
2391
+ if (n >= a || e.width <= r && e.height <= r && t.width <= r && t.height <= r) {
2392
+ i.push([e.t, t.t]);
2393
+ return;
2394
+ }
2395
+ var o = kt(e), s = kt(t);
2396
+ jt(o[0], s[0], n + 1, r, i, a), jt(o[0], s[1], n + 1, r, i, a), jt(o[1], s[0], n + 1, r, i, a), jt(o[1], s[1], n + 1, r, i, a);
2397
+ }
2398
+ }
2399
+ J.prototype.intersections = function(e, t, n) {
2400
+ t === void 0 && (t = 2), n === void 0 && (n = 7);
2401
+ var r = [];
2402
+ return jt(Ot(this, 0, 1), Ot(e, 0, 1), 0, t, r, n), r;
2403
+ }, J.shapeSegment = function(e, t) {
2404
+ var n = (t + 1) % e.length();
2405
+ return new J(e.v[t], e.o[t], e.i[n], e.v[n], !0);
2406
+ }, J.shapeSegmentInverted = function(e, t) {
2407
+ var n = (t + 1) % e.length();
2408
+ return new J(e.v[n], e.i[n], e.o[t], e.v[t], !0);
2409
+ };
2410
+ function Mt(e, t) {
2411
+ return [
2412
+ e[1] * t[2] - e[2] * t[1],
2413
+ e[2] * t[0] - e[0] * t[2],
2414
+ e[0] * t[1] - e[1] * t[0]
2415
+ ];
2416
+ }
2417
+ function Nt(e, t, n, r) {
2418
+ var i = [
2419
+ e[0],
2420
+ e[1],
2421
+ 1
2422
+ ], a = [
2423
+ t[0],
2424
+ t[1],
2425
+ 1
2426
+ ], o = [
2427
+ n[0],
2428
+ n[1],
2429
+ 1
2430
+ ], s = [
2431
+ r[0],
2432
+ r[1],
2433
+ 1
2434
+ ], c = Mt(Mt(i, a), Mt(o, s));
2435
+ return xt(c[2]) ? null : [c[0] / c[2], c[1] / c[2]];
2436
+ }
2437
+ function Pt(e, t, n) {
2438
+ return [e[0] + Math.cos(t) * n, e[1] - Math.sin(t) * n];
2439
+ }
2440
+ function Ft(e, t) {
2441
+ return Math.hypot(e[0] - t[0], e[1] - t[1]);
2442
+ }
2443
+ function It(e, t) {
2444
+ return bt(e[0], t[0]) && bt(e[1], t[1]);
2445
+ }
2446
+ function Lt() {}
2447
+ d([q], Lt), Lt.prototype.initModifierProperties = function(e, t) {
2448
+ this.getValue = this.processKeys, this.amplitude = H.getProp(e, t.s, 0, null, this), this.frequency = H.getProp(e, t.r, 0, null, this), this.pointsType = H.getProp(e, t.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
2449
+ };
2450
+ function Rt(e, t, n, r, i, a, o) {
2451
+ var s = n - Math.PI / 2, c = n + Math.PI / 2, l = t[0] + Math.cos(n) * r * i, u = t[1] - Math.sin(n) * r * i;
2452
+ e.setTripleAt(l, u, l + Math.cos(s) * a, u - Math.sin(s) * a, l + Math.cos(c) * o, u - Math.sin(c) * o, e.length());
2453
+ }
2454
+ function zt(e, t) {
2455
+ var n = [t[0] - e[0], t[1] - e[1]], r = -Math.PI * .5;
2456
+ return [Math.cos(r) * n[0] - Math.sin(r) * n[1], Math.sin(r) * n[0] + Math.cos(r) * n[1]];
2457
+ }
2458
+ function Bt(e, t) {
2459
+ var n = t === 0 ? e.length() - 1 : t - 1, r = (t + 1) % e.length(), i = e.v[n], a = e.v[r], o = zt(i, a);
2460
+ return Math.atan2(0, 1) - Math.atan2(o[1], o[0]);
2461
+ }
2462
+ function Vt(e, t, n, r, i, a, o) {
2463
+ var s = Bt(t, n), c = t.v[n % t._length], l = t.v[n === 0 ? t._length - 1 : n - 1], u = t.v[(n + 1) % t._length], d = a === 2 ? Math.sqrt((c[0] - l[0]) ** 2 + (c[1] - l[1]) ** 2) : 0, f = a === 2 ? Math.sqrt((c[0] - u[0]) ** 2 + (c[1] - u[1]) ** 2) : 0;
2464
+ Rt(e, t.v[n % t._length], s, o, r, f / ((i + 1) * 2), d / ((i + 1) * 2), a);
2465
+ }
2466
+ function Ht(e, t, n, r, i, a) {
2467
+ for (var o = 0; o < r; o += 1) {
2468
+ var s = (o + 1) / (r + 1), c = i === 2 ? Math.sqrt((t.points[3][0] - t.points[0][0]) ** 2 + (t.points[3][1] - t.points[0][1]) ** 2) : 0, l = t.normalAngle(s);
2469
+ Rt(e, t.point(s), l, a, n, c / ((r + 1) * 2), c / ((r + 1) * 2), i), a = -a;
2470
+ }
2471
+ return a;
2472
+ }
2473
+ Lt.prototype.processPath = function(e, t, n, r) {
2474
+ var i = e._length, a = W.newElement();
2475
+ if (a.c = e.c, e.c || --i, i === 0) return a;
2476
+ var o = -1, s = J.shapeSegment(e, 0);
2477
+ Vt(a, e, 0, t, n, r, o);
2478
+ for (var c = 0; c < i; c += 1) o = Ht(a, s, t, n, r, -o), s = c === i - 1 && !e.c ? null : J.shapeSegment(e, (c + 1) % i), Vt(a, e, c + 1, t, n, r, o);
2479
+ return a;
2480
+ }, Lt.prototype.processShapes = function(e) {
2481
+ var t, n, r = this.shapes.length, i, a, o = this.amplitude.v, s = Math.max(0, Math.round(this.frequency.v)), c = this.pointsType.v;
2482
+ if (o !== 0) {
2483
+ var l, u;
2484
+ for (n = 0; n < r; n += 1) {
2485
+ if (l = this.shapes[n], u = l.localShapeCollection, !(!l.shape._mdf && !this._mdf && !e)) for (u.releaseShapes(), l.shape._mdf = !0, t = l.shape.paths.shapes, a = l.shape.paths._length, i = 0; i < a; i += 1) u.addShape(this.processPath(t[i], o, s, c));
2486
+ l.shape.paths = l.localShapeCollection;
2487
+ }
2488
+ }
2489
+ this.dynamicProperties.length || (this._mdf = !1);
2490
+ };
2491
+ function Ut(e, t, n) {
2492
+ var r = Math.atan2(t[0] - e[0], t[1] - e[1]);
2493
+ return [Pt(e, r, n), Pt(t, r, n)];
2494
+ }
2495
+ function Wt(e, t) {
2496
+ var n, r, i, a, o, s, c = Ut(e.points[0], e.points[1], t);
2497
+ n = c[0], r = c[1], c = Ut(e.points[1], e.points[2], t), i = c[0], a = c[1], c = Ut(e.points[2], e.points[3], t), o = c[0], s = c[1];
2498
+ var l = Nt(n, r, i, a);
2499
+ l === null && (l = r);
2500
+ var u = Nt(o, s, i, a);
2501
+ return u === null && (u = o), new J(n, l, u, s);
2502
+ }
2503
+ function Gt(e, t, n, r, i) {
2504
+ var a = t.points[3], o = n.points[0];
2505
+ if (r === 3 || It(a, o)) return a;
2506
+ if (r === 2) {
2507
+ var s = -t.tangentAngle(1), c = -n.tangentAngle(0) + Math.PI, l = Nt(a, Pt(a, s + Math.PI / 2, 100), o, Pt(o, s + Math.PI / 2, 100)), u = l ? Ft(l, a) : Ft(a, o) / 2, d = Pt(a, s, 2 * u * k);
2508
+ return e.setXYAt(d[0], d[1], "o", e.length() - 1), d = Pt(o, c, 2 * u * k), e.setTripleAt(o[0], o[1], o[0], o[1], d[0], d[1], e.length()), o;
2509
+ }
2510
+ var f = Nt(It(a, t.points[2]) ? t.points[0] : t.points[2], a, o, It(o, n.points[1]) ? n.points[3] : n.points[1]);
2511
+ return f && Ft(f, a) < i ? (e.setTripleAt(f[0], f[1], f[0], f[1], f[0], f[1], e.length()), f) : a;
2512
+ }
2513
+ function Kt(e, t) {
2514
+ var n = e.intersections(t);
2515
+ return n.length && bt(n[0][0], 1) && n.shift(), n.length ? n[0] : null;
2516
+ }
2517
+ function qt(e, t) {
2518
+ var n = e.slice(), r = t.slice(), i = Kt(e[e.length - 1], t[0]);
2519
+ return i && (n[e.length - 1] = e[e.length - 1].split(i[0])[0], r[0] = t[0].split(i[1])[1]), e.length > 1 && t.length > 1 && (i = Kt(e[0], t[t.length - 1]), i) ? [[e[0].split(i[0])[0]], [t[t.length - 1].split(i[1])[1]]] : [n, r];
2520
+ }
2521
+ function Jt(e) {
2522
+ for (var t, n = 1; n < e.length; n += 1) t = qt(e[n - 1], e[n]), e[n - 1] = t[0], e[n] = t[1];
2523
+ return e.length > 1 && (t = qt(e[e.length - 1], e[0]), e[e.length - 1] = t[0], e[0] = t[1]), e;
2524
+ }
2525
+ function Yt(e, t) {
2526
+ var n = e.inflectionPoints(), r, i, a, o;
2527
+ if (n.length === 0) return [Wt(e, t)];
2528
+ if (n.length === 1 || bt(n[1], 1)) return a = e.split(n[0]), r = a[0], i = a[1], [Wt(r, t), Wt(i, t)];
2529
+ a = e.split(n[0]), r = a[0];
2530
+ var s = (n[1] - n[0]) / (1 - n[0]);
2531
+ return a = a[1].split(s), o = a[0], i = a[1], [
2532
+ Wt(r, t),
2533
+ Wt(o, t),
2534
+ Wt(i, t)
2535
+ ];
2536
+ }
2537
+ function Xt() {}
2538
+ d([q], Xt), Xt.prototype.initModifierProperties = function(e, t) {
2539
+ this.getValue = this.processKeys, this.amount = H.getProp(e, t.a, 0, null, this), this.miterLimit = H.getProp(e, t.ml, 0, null, this), this.lineJoin = t.lj, this._isAnimated = this.amount.effectsSequence.length !== 0;
2540
+ }, Xt.prototype.processPath = function(e, t, n, r) {
2541
+ var i = W.newElement();
2542
+ i.c = e.c;
2543
+ var a = e.length();
2544
+ e.c || --a;
2545
+ var o, s, c, l = [];
2546
+ for (o = 0; o < a; o += 1) c = J.shapeSegment(e, o), l.push(Yt(c, t));
2547
+ if (!e.c) for (o = a - 1; o >= 0; --o) c = J.shapeSegmentInverted(e, o), l.push(Yt(c, t));
2548
+ l = Jt(l);
2549
+ var u = null, d = null;
2550
+ for (o = 0; o < l.length; o += 1) {
2551
+ var f = l[o];
2552
+ for (d && (u = Gt(i, d, f[0], n, r)), d = f[f.length - 1], s = 0; s < f.length; s += 1) c = f[s], u && It(c.points[0], u) ? i.setXYAt(c.points[1][0], c.points[1][1], "o", i.length() - 1) : i.setTripleAt(c.points[0][0], c.points[0][1], c.points[1][0], c.points[1][1], c.points[0][0], c.points[0][1], i.length()), i.setTripleAt(c.points[3][0], c.points[3][1], c.points[3][0], c.points[3][1], c.points[2][0], c.points[2][1], i.length()), u = c.points[3];
2553
+ }
2554
+ return l.length && Gt(i, d, l[0][0], n, r), i;
2555
+ }, Xt.prototype.processShapes = function(e) {
2556
+ var t, n, r = this.shapes.length, i, a, o = this.amount.v, s = this.miterLimit.v, c = this.lineJoin;
2557
+ if (o !== 0) {
2558
+ var l, u;
2559
+ for (n = 0; n < r; n += 1) {
2560
+ if (l = this.shapes[n], u = l.localShapeCollection, !(!l.shape._mdf && !this._mdf && !e)) for (u.releaseShapes(), l.shape._mdf = !0, t = l.shape.paths.shapes, a = l.shape.paths._length, i = 0; i < a; i += 1) u.addShape(this.processPath(t[i], o, c, s));
2561
+ l.shape.paths = l.localShapeCollection;
2562
+ }
2563
+ }
2564
+ this.dynamicProperties.length || (this._mdf = !1);
2565
+ };
2566
+ function Zt(e) {
2567
+ for (var t = e.fStyle ? e.fStyle.split(" ") : [], n = "normal", r = "normal", i = t.length, a, o = 0; o < i; o += 1) switch (a = t[o].toLowerCase(), a) {
2568
+ case "italic":
2569
+ r = "italic";
2570
+ break;
2571
+ case "bold":
2572
+ n = "700";
2573
+ break;
2574
+ case "black":
2575
+ n = "900";
2576
+ break;
2577
+ case "medium":
2578
+ n = "500";
2579
+ break;
2580
+ case "regular":
2581
+ case "normal":
2582
+ n = "400";
2583
+ break;
2584
+ case "light":
2585
+ case "thin":
2586
+ n = "200";
2587
+ break;
2588
+ default: break;
2589
+ }
2590
+ return {
2591
+ style: r,
2592
+ weight: e.fWeight || n
2593
+ };
2594
+ }
2595
+ var Qt = function() {
2596
+ var e = 5e3, t = {
2597
+ w: 0,
2598
+ size: 0,
2599
+ shapes: [],
2600
+ data: { shapes: [] }
2601
+ }, n = [];
2602
+ n = n.concat([
2603
+ 2304,
2604
+ 2305,
2605
+ 2306,
2606
+ 2307,
2607
+ 2362,
2608
+ 2363,
2609
+ 2364,
2610
+ 2364,
2611
+ 2366,
2612
+ 2367,
2613
+ 2368,
2614
+ 2369,
2615
+ 2370,
2616
+ 2371,
2617
+ 2372,
2618
+ 2373,
2619
+ 2374,
2620
+ 2375,
2621
+ 2376,
2622
+ 2377,
2623
+ 2378,
2624
+ 2379,
2625
+ 2380,
2626
+ 2381,
2627
+ 2382,
2628
+ 2383,
2629
+ 2387,
2630
+ 2388,
2631
+ 2389,
2632
+ 2390,
2633
+ 2391,
2634
+ 2402,
2635
+ 2403
2636
+ ]);
2637
+ var r = 127988, i = 917631, a = 917601, o = 917626, s = 65039, c = 8205, l = 127462, d = 127487, f = [
2638
+ "d83cdffb",
2639
+ "d83cdffc",
2640
+ "d83cdffd",
2641
+ "d83cdffe",
2642
+ "d83cdfff"
2643
+ ];
2644
+ function p(e) {
2645
+ var t = e.split(","), n, r = t.length, i = [];
2646
+ for (n = 0; n < r; n += 1) t[n] !== "sans-serif" && t[n] !== "monospace" && i.push(t[n]);
2647
+ return i.join(",");
2648
+ }
2649
+ function m(e, t) {
2650
+ var n = u("span");
2651
+ n.setAttribute("aria-hidden", !0), n.style.fontFamily = t;
2652
+ var r = u("span");
2653
+ r.innerText = "giItT1WQy@!-/#", n.style.position = "absolute", n.style.left = "-10000px", n.style.top = "-10000px", n.style.fontSize = "300px", n.style.fontVariant = "normal", n.style.fontStyle = "normal", n.style.fontWeight = "normal", n.style.letterSpacing = "0", n.appendChild(r), document.body.appendChild(n);
2654
+ var i = r.offsetWidth;
2655
+ return r.style.fontFamily = p(e) + ", " + t, {
2656
+ node: r,
2657
+ w: i,
2658
+ parent: n
2659
+ };
2660
+ }
2661
+ function h() {
2662
+ var t, n = this.fonts.length, r, i, a = n;
2663
+ for (t = 0; t < n; t += 1) this.fonts[t].loaded ? --a : this.fonts[t].fOrigin === "n" || this.fonts[t].origin === 0 ? this.fonts[t].loaded = !0 : (r = this.fonts[t].monoCase.node, i = this.fonts[t].monoCase.w, r.offsetWidth === i ? (r = this.fonts[t].sansCase.node, i = this.fonts[t].sansCase.w, r.offsetWidth !== i && (--a, this.fonts[t].loaded = !0)) : (--a, this.fonts[t].loaded = !0), this.fonts[t].loaded && (this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent), this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));
2664
+ a !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
2665
+ }
2666
+ function g(e, t) {
2667
+ var n = document.body && t ? "svg" : "canvas", r, i = Zt(e);
2668
+ if (n === "svg") {
2669
+ var a = L("text");
2670
+ a.style.fontSize = "100px", a.setAttribute("font-family", e.fFamily), a.setAttribute("font-style", i.style), a.setAttribute("font-weight", i.weight), a.textContent = "1", e.fClass ? (a.style.fontFamily = "inherit", a.setAttribute("class", e.fClass)) : a.style.fontFamily = e.fFamily, t.appendChild(a), r = a;
2671
+ } else {
2672
+ var o = new OffscreenCanvas(500, 500).getContext("2d");
2673
+ o.font = i.style + " " + i.weight + " 100px " + e.fFamily, r = o;
2674
+ }
2675
+ function s(e) {
2676
+ return n === "svg" ? (r.textContent = e, r.getComputedTextLength()) : r.measureText(e).width;
2677
+ }
2678
+ return { measureText: s };
2679
+ }
2680
+ function _(e, t) {
2681
+ if (!e) {
2682
+ this.isLoaded = !0;
2683
+ return;
2684
+ }
2685
+ if (this.chars) {
2686
+ this.isLoaded = !0, this.fonts = e.list;
2687
+ return;
2688
+ }
2689
+ if (!document.body) {
2690
+ this.isLoaded = !0, e.list.forEach(function(e) {
2691
+ e.helper = g(e), e.cache = {};
2692
+ }), this.fonts = e.list;
2693
+ return;
2694
+ }
2695
+ var n = e.list, r, i = n.length, a = i;
2696
+ for (r = 0; r < i; r += 1) {
2697
+ var o = !0, s, c;
2698
+ if (n[r].loaded = !1, n[r].monoCase = m(n[r].fFamily, "monospace"), n[r].sansCase = m(n[r].fFamily, "sans-serif"), !n[r].fPath) n[r].loaded = !0, --a;
2699
+ else if (n[r].fOrigin === "p" || n[r].origin === 3) {
2700
+ if (s = document.querySelectorAll("style[f-forigin=\"p\"][f-family=\"" + n[r].fFamily + "\"], style[f-origin=\"3\"][f-family=\"" + n[r].fFamily + "\"]"), s.length > 0 && (o = !1), o) {
2701
+ var l = u("style");
2702
+ l.setAttribute("f-forigin", n[r].fOrigin), l.setAttribute("f-origin", n[r].origin), l.setAttribute("f-family", n[r].fFamily), l.type = "text/css", l.innerText = "@font-face {font-family: " + n[r].fFamily + "; font-style: normal; src: url('" + n[r].fPath + "');}", t.appendChild(l);
2703
+ }
2704
+ } else if (n[r].fOrigin === "g" || n[r].origin === 1) {
2705
+ for (s = document.querySelectorAll("link[f-forigin=\"g\"], link[f-origin=\"1\"]"), c = 0; c < s.length; c += 1) s[c].href.indexOf(n[r].fPath) !== -1 && (o = !1);
2706
+ if (o) {
2707
+ var d = u("link");
2708
+ d.setAttribute("f-forigin", n[r].fOrigin), d.setAttribute("f-origin", n[r].origin), d.type = "text/css", d.rel = "stylesheet", d.href = n[r].fPath, document.body.appendChild(d);
2709
+ }
2710
+ } else if (n[r].fOrigin === "t" || n[r].origin === 2) {
2711
+ for (s = document.querySelectorAll("script[f-forigin=\"t\"], script[f-origin=\"2\"]"), c = 0; c < s.length; c += 1) n[r].fPath === s[c].src && (o = !1);
2712
+ if (o) {
2713
+ var f = u("link");
2714
+ f.setAttribute("f-forigin", n[r].fOrigin), f.setAttribute("f-origin", n[r].origin), f.setAttribute("rel", "stylesheet"), f.setAttribute("href", n[r].fPath), t.appendChild(f);
2715
+ }
2716
+ }
2717
+ n[r].helper = g(n[r], t), n[r].cache = {}, this.fonts.push(n[r]);
2718
+ }
2719
+ a === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
2720
+ }
2721
+ function v(e) {
2722
+ if (e) {
2723
+ this.chars ||= [];
2724
+ var t, n = e.length, r, i = this.chars.length, a;
2725
+ for (t = 0; t < n; t += 1) {
2726
+ for (r = 0, a = !1; r < i;) this.chars[r].style === e[t].style && this.chars[r].fFamily === e[t].fFamily && this.chars[r].ch === e[t].ch && (a = !0), r += 1;
2727
+ a || (this.chars.push(e[t]), i += 1);
2728
+ }
2729
+ }
2730
+ }
2731
+ function y(e, n, r) {
2732
+ for (var i = 0, a = this.chars.length; i < a;) {
2733
+ if (this.chars[i].ch === e && this.chars[i].style === n && this.chars[i].fFamily === r) return this.chars[i];
2734
+ i += 1;
2735
+ }
2736
+ return (typeof e == "string" && e.charCodeAt(0) !== 13 || !e) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", e, n, r)), t;
2737
+ }
2738
+ function b(e, t, n) {
2739
+ var r = this.getFontByName(t), i = e;
2740
+ if (!r.cache[i]) {
2741
+ var a = r.helper;
2742
+ if (e === " ") {
2743
+ var o = a.measureText("|" + e + "|"), s = a.measureText("||");
2744
+ r.cache[i] = (o - s) / 100;
2745
+ } else r.cache[i] = a.measureText(e) / 100;
2746
+ }
2747
+ return r.cache[i] * n;
2748
+ }
2749
+ function x(e) {
2750
+ for (var t = 0, n = this.fonts.length; t < n;) {
2751
+ if (this.fonts[t].fName === e) return this.fonts[t];
2752
+ t += 1;
2753
+ }
2754
+ return this.fonts[0];
2755
+ }
2756
+ function S(e) {
2757
+ var t = 0, n = e.charCodeAt(0);
2758
+ if (n >= 55296 && n <= 56319) {
2759
+ var r = e.charCodeAt(1);
2760
+ r >= 56320 && r <= 57343 && (t = (n - 55296) * 1024 + r - 56320 + 65536);
2761
+ }
2762
+ return t;
2763
+ }
2764
+ function C(e, t) {
2765
+ var n = e.toString(16) + t.toString(16);
2766
+ return f.indexOf(n) !== -1;
2767
+ }
2768
+ function w(e) {
2769
+ return e === c;
2770
+ }
2771
+ function T(e) {
2772
+ return e === s;
2773
+ }
2774
+ function E(e) {
2775
+ var t = S(e);
2776
+ return t >= l && t <= d;
2777
+ }
2778
+ function D(e) {
2779
+ return E(e.substr(0, 2)) && E(e.substr(2, 2));
2780
+ }
2781
+ function O(e) {
2782
+ return n.indexOf(e) !== -1;
2783
+ }
2784
+ function k(e, t) {
2785
+ var n = S(e.substr(t, 2));
2786
+ if (n !== r) return !1;
2787
+ var s = 0;
2788
+ for (t += 2; s < 5;) {
2789
+ if (n = S(e.substr(t, 2)), n < a || n > o) return !1;
2790
+ s += 1, t += 2;
2791
+ }
2792
+ return S(e.substr(t, 2)) === i;
2793
+ }
2794
+ function A() {
2795
+ this.isLoaded = !0;
2796
+ }
2797
+ var j = function() {
2798
+ this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
2799
+ };
2800
+ return j.isModifier = C, j.isZeroWidthJoiner = w, j.isFlagEmoji = D, j.isRegionalCode = E, j.isCombinedCharacter = O, j.isRegionalFlag = k, j.isVariationSelector = T, j.BLACK_FLAG_CODE_POINT = r, j.prototype = {
2801
+ addChars: v,
2802
+ addFonts: _,
2803
+ getCharData: y,
2804
+ getFontByName: x,
2805
+ measureText: b,
2806
+ checkLoadedFonts: h,
2807
+ setIsLoaded: A
2808
+ }, j;
2809
+ }();
2810
+ function $t(e) {
2811
+ this.animationData = e;
2812
+ }
2813
+ $t.prototype.getProp = function(e) {
2814
+ return this.animationData.slots && this.animationData.slots[e.sid] ? Object.assign(e, this.animationData.slots[e.sid].p) : e;
2815
+ };
2816
+ function en(e) {
2817
+ return new $t(e);
2818
+ }
2819
+ function tn() {}
2820
+ tn.prototype = {
2821
+ initRenderable: function() {
2822
+ this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = [];
2823
+ },
2824
+ addRenderableComponent: function(e) {
2825
+ this.renderableComponents.indexOf(e) === -1 && this.renderableComponents.push(e);
2826
+ },
2827
+ removeRenderableComponent: function(e) {
2828
+ this.renderableComponents.indexOf(e) !== -1 && this.renderableComponents.splice(this.renderableComponents.indexOf(e), 1);
2829
+ },
2830
+ prepareRenderableFrame: function(e) {
2831
+ this.checkLayerLimits(e);
2832
+ },
2833
+ checkTransparency: function() {
2834
+ this.finalTransform.mProp.o.v <= 0 ? !this.isTransparent && this.globalData.renderConfig.hideOnTransparent && (this.isTransparent = !0, this.hide()) : this.isTransparent && (this.isTransparent = !1, this.show());
2835
+ },
2836
+ checkLayerLimits: function(e) {
2837
+ this.data.ip - this.data.st <= e && this.data.op - this.data.st > e ? this.isInRange !== !0 && (this.globalData._mdf = !0, this._mdf = !0, this.isInRange = !0, this.show()) : this.isInRange !== !1 && (this.globalData._mdf = !0, this.isInRange = !1, this.hide());
2838
+ },
2839
+ renderRenderable: function() {
2840
+ var e, t = this.renderableComponents.length;
2841
+ for (e = 0; e < t; e += 1) this.renderableComponents[e].renderFrame(this._isFirstFrame);
2842
+ },
2843
+ sourceRectAtTime: function() {
2844
+ return {
2845
+ top: 0,
2846
+ left: 0,
2847
+ width: 100,
2848
+ height: 100
2849
+ };
2850
+ },
2851
+ getLayerSize: function() {
2852
+ return this.data.ty === 5 ? {
2853
+ w: this.data.textData.width,
2854
+ h: this.data.textData.height
2855
+ } : {
2856
+ w: this.data.width,
2857
+ h: this.data.height
2858
+ };
2859
+ }
2860
+ };
2861
+ var nn = function() {
2862
+ var e = {
2863
+ 0: "source-over",
2864
+ 1: "multiply",
2865
+ 2: "screen",
2866
+ 3: "overlay",
2867
+ 4: "darken",
2868
+ 5: "lighten",
2869
+ 6: "color-dodge",
2870
+ 7: "color-burn",
2871
+ 8: "hard-light",
2872
+ 9: "soft-light",
2873
+ 10: "difference",
2874
+ 11: "exclusion",
2875
+ 12: "hue",
2876
+ 13: "saturation",
2877
+ 14: "color",
2878
+ 15: "luminosity"
2879
+ };
2880
+ return function(t) {
2881
+ return e[t] || "";
2882
+ };
2883
+ }();
2884
+ function rn(e, t, n) {
2885
+ this.p = H.getProp(t, e.v, 0, 0, n);
2886
+ }
2887
+ function an(e, t, n) {
2888
+ this.p = H.getProp(t, e.v, 0, 0, n);
2889
+ }
2890
+ function on(e, t, n) {
2891
+ this.p = H.getProp(t, e.v, 1, 0, n);
2892
+ }
2893
+ function sn(e, t, n) {
2894
+ this.p = H.getProp(t, e.v, 1, 0, n);
2895
+ }
2896
+ function cn(e, t, n) {
2897
+ this.p = H.getProp(t, e.v, 0, 0, n);
2898
+ }
2899
+ function ln(e, t, n) {
2900
+ this.p = H.getProp(t, e.v, 0, 0, n);
2901
+ }
2902
+ function un(e, t, n) {
2903
+ this.p = H.getProp(t, e.v, 0, 0, n);
2904
+ }
2905
+ function dn() {
2906
+ this.p = {};
2907
+ }
2908
+ function fn(e, t) {
2909
+ var n = e.ef || [];
2910
+ this.effectElements = [];
2911
+ var r, i = n.length, a;
2912
+ for (r = 0; r < i; r += 1) a = new pn(n[r], t), this.effectElements.push(a);
2913
+ }
2914
+ function pn(e, t) {
2915
+ this.init(e, t);
2916
+ }
2917
+ d([U], pn), pn.prototype.getValue = pn.prototype.iterateDynamicProperties, pn.prototype.init = function(e, t) {
2918
+ this.data = e, this.effectElements = [], this.initDynamicPropertyContainer(t);
2919
+ var n, r = this.data.ef.length, i, a = this.data.ef;
2920
+ for (n = 0; n < r; n += 1) {
2921
+ switch (i = null, a[n].ty) {
2922
+ case 0:
2923
+ i = new rn(a[n], t, this);
2924
+ break;
2925
+ case 1:
2926
+ i = new an(a[n], t, this);
2927
+ break;
2928
+ case 2:
2929
+ i = new on(a[n], t, this);
2930
+ break;
2931
+ case 3:
2932
+ i = new sn(a[n], t, this);
2933
+ break;
2934
+ case 4:
2935
+ case 7:
2936
+ i = new un(a[n], t, this);
2937
+ break;
2938
+ case 10:
2939
+ i = new cn(a[n], t, this);
2940
+ break;
2941
+ case 11:
2942
+ i = new ln(a[n], t, this);
2943
+ break;
2944
+ case 5:
2945
+ i = new fn(a[n], t, this);
2946
+ break;
2947
+ default:
2948
+ i = new dn(a[n], t, this);
2949
+ break;
2950
+ }
2951
+ i && this.effectElements.push(i);
2952
+ }
2953
+ };
2954
+ function mn() {}
2955
+ mn.prototype = {
2956
+ checkMasks: function() {
2957
+ if (!this.data.hasMask) return !1;
2958
+ for (var e = 0, t = this.data.masksProperties.length; e < t;) {
2959
+ if (this.data.masksProperties[e].mode !== "n" && this.data.masksProperties[e].cl !== !1) return !0;
2960
+ e += 1;
2961
+ }
2962
+ return !1;
2963
+ },
2964
+ initExpressions: function() {
2965
+ var e = ue();
2966
+ if (e) {
2967
+ var t = e("layer"), n = e("effects"), r = e("shape"), i = e("text"), a = e("comp");
2968
+ this.layerInterface = t(this), this.data.hasMask && this.maskManager && this.layerInterface.registerMaskInterface(this.maskManager);
2969
+ var o = n.createEffectsInterface(this, this.layerInterface);
2970
+ this.layerInterface.registerEffectsInterface(o), this.data.ty === 0 || this.data.xt ? this.compInterface = a(this) : this.data.ty === 4 ? (this.layerInterface.shapeInterface = r(this.shapesData, this.itemsData, this.layerInterface), this.layerInterface.content = this.layerInterface.shapeInterface) : this.data.ty === 5 && (this.layerInterface.textInterface = i(this), this.layerInterface.text = this.layerInterface.textInterface);
2971
+ }
2972
+ },
2973
+ setBlendMode: function() {
2974
+ var e = nn(this.data.bm), t = this.baseElement || this.layerElement;
2975
+ t.style["mix-blend-mode"] = e;
2976
+ },
2977
+ initBaseData: function(e, t, n) {
2978
+ this.globalData = t, this.comp = n, this.data = e, this.layerId = I(), this.data.sr || (this.data.sr = 1), this.effectsManager = new fn(this.data, this, this.dynamicProperties);
2979
+ },
2980
+ getType: function() {
2981
+ return this.type;
2982
+ },
2983
+ sourceRectAtTime: function() {}
2984
+ };
2985
+ function hn() {}
2986
+ hn.prototype = {
2987
+ initFrame: function() {
2988
+ this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1;
2989
+ },
2990
+ prepareProperties: function(e, t) {
2991
+ var n, r = this.dynamicProperties.length;
2992
+ for (n = 0; n < r; n += 1) (t || this._isParent && this.dynamicProperties[n].propType === "transform") && (this.dynamicProperties[n].getValue(), this.dynamicProperties[n]._mdf && (this.globalData._mdf = !0, this._mdf = !0));
2993
+ },
2994
+ addDynamicProperty: function(e) {
2995
+ this.dynamicProperties.indexOf(e) === -1 && this.dynamicProperties.push(e);
2996
+ }
2997
+ };
2998
+ function gn(e, t, n) {
2999
+ this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.footageData = t.imageLoader.getAsset(this.assetData), this.initBaseData(e, t, n);
3000
+ }
3001
+ gn.prototype.prepareFrame = function() {}, d([
3002
+ tn,
3003
+ mn,
3004
+ hn
3005
+ ], gn), gn.prototype.getBaseElement = function() {
3006
+ return null;
3007
+ }, gn.prototype.renderFrame = function() {}, gn.prototype.destroy = function() {}, gn.prototype.initExpressions = function() {
3008
+ var e = ue();
3009
+ if (e) {
3010
+ var t = e("footage");
3011
+ this.layerInterface = t(this);
3012
+ }
3013
+ }, gn.prototype.getFootageData = function() {
3014
+ return this.footageData;
3015
+ };
3016
+ function Y(e, t, n) {
3017
+ this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.initBaseData(e, t, n), this._isPlaying = !1, this._canPlay = !1;
3018
+ var r = this.globalData.getAssetsPath(this.assetData);
3019
+ this.audio = this.globalData.audioController.createAudio(r), this._currentTime = 0, this.globalData.audioController.addAudio(this), this._volumeMultiplier = 1, this._volume = 1, this._previousVolume = null, this.tm = e.tm ? H.getProp(this, e.tm, 0, t.frameRate, this) : { _placeholder: !0 }, this.lv = H.getProp(this, e.au && e.au.lv ? e.au.lv : { k: [100] }, 1, .01, this);
3020
+ }
3021
+ Y.prototype.prepareFrame = function(e) {
3022
+ if (this.prepareRenderableFrame(e, !0), this.prepareProperties(e, !0), this.tm._placeholder) this._currentTime = e / this.data.sr;
3023
+ else {
3024
+ var t = this.tm.v;
3025
+ this._currentTime = t;
3026
+ }
3027
+ this._volume = this.lv.v[0];
3028
+ var n = this._volume * this._volumeMultiplier;
3029
+ this._previousVolume !== n && (this._previousVolume = n, this.audio.volume(n));
3030
+ }, d([
3031
+ tn,
3032
+ mn,
3033
+ hn
3034
+ ], Y), Y.prototype.renderFrame = function() {
3035
+ this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > .1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0));
3036
+ }, Y.prototype.show = function() {}, Y.prototype.hide = function() {
3037
+ this.audio.pause(), this._isPlaying = !1;
3038
+ }, Y.prototype.pause = function() {
3039
+ this.audio.pause(), this._isPlaying = !1, this._canPlay = !1;
3040
+ }, Y.prototype.resume = function() {
3041
+ this._canPlay = !0;
3042
+ }, Y.prototype.setRate = function(e) {
3043
+ this.audio.rate(e);
3044
+ }, Y.prototype.volume = function(e) {
3045
+ this._volumeMultiplier = e, this._previousVolume = e * this._volume, this.audio.volume(this._previousVolume);
3046
+ }, Y.prototype.getBaseElement = function() {
3047
+ return null;
3048
+ }, Y.prototype.destroy = function() {}, Y.prototype.sourceRectAtTime = function() {}, Y.prototype.initExpressions = function() {};
3049
+ function X() {}
3050
+ X.prototype.checkLayers = function(e) {
3051
+ var t, n = this.layers.length, r;
3052
+ for (this.completeLayers = !0, t = n - 1; t >= 0; --t) this.elements[t] || (r = this.layers[t], r.ip - r.st <= e - this.layers[t].st && r.op - r.st > e - this.layers[t].st && this.buildItem(t)), this.completeLayers = this.elements[t] ? this.completeLayers : !1;
3053
+ this.checkPendingElements();
3054
+ }, X.prototype.createItem = function(e) {
3055
+ switch (e.ty) {
3056
+ case 2: return this.createImage(e);
3057
+ case 0: return this.createComp(e);
3058
+ case 1: return this.createSolid(e);
3059
+ case 3: return this.createNull(e);
3060
+ case 4: return this.createShape(e);
3061
+ case 5: return this.createText(e);
3062
+ case 6: return this.createAudio(e);
3063
+ case 13: return this.createCamera(e);
3064
+ case 15: return this.createFootage(e);
3065
+ default: return this.createNull(e);
3066
+ }
3067
+ }, X.prototype.createCamera = function() {
3068
+ throw Error("You're using a 3d camera. Try the html renderer.");
3069
+ }, X.prototype.createAudio = function(e) {
3070
+ return new Y(e, this.globalData, this);
3071
+ }, X.prototype.createFootage = function(e) {
3072
+ return new gn(e, this.globalData, this);
3073
+ }, X.prototype.buildAllItems = function() {
3074
+ var e, t = this.layers.length;
3075
+ for (e = 0; e < t; e += 1) this.buildItem(e);
3076
+ this.checkPendingElements();
3077
+ }, X.prototype.includeLayers = function(e) {
3078
+ this.completeLayers = !1;
3079
+ var t, n = e.length, r, i = this.layers.length;
3080
+ for (t = 0; t < n; t += 1) for (r = 0; r < i;) {
3081
+ if (this.layers[r].id === e[t].id) {
3082
+ this.layers[r] = e[t];
3083
+ break;
3084
+ }
3085
+ r += 1;
3086
+ }
3087
+ }, X.prototype.setProjectInterface = function(e) {
3088
+ this.globalData.projectInterface = e;
3089
+ }, X.prototype.initItems = function() {
3090
+ this.globalData.progressiveLoad || this.buildAllItems();
3091
+ }, X.prototype.buildElementParenting = function(e, t, n) {
3092
+ for (var r = this.elements, i = this.layers, a = 0, o = i.length; a < o;) i[a].ind == t && (!r[a] || r[a] === !0 ? (this.buildItem(a), this.addPendingElement(e)) : (n.push(r[a]), r[a].setAsParent(), i[a].parent === void 0 ? e.setHierarchy(n) : this.buildElementParenting(e, i[a].parent, n))), a += 1;
3093
+ }, X.prototype.addPendingElement = function(e) {
3094
+ this.pendingElements.push(e);
3095
+ }, X.prototype.searchExtraCompositions = function(e) {
3096
+ var t, n = e.length;
3097
+ for (t = 0; t < n; t += 1) if (e[t].xt) {
3098
+ var r = this.createComp(e[t]);
3099
+ r.initExpressions(), this.globalData.projectInterface.registerComposition(r);
3100
+ }
3101
+ }, X.prototype.getElementById = function(e) {
3102
+ var t, n = this.elements.length;
3103
+ for (t = 0; t < n; t += 1) if (this.elements[t].data.ind === e) return this.elements[t];
3104
+ return null;
3105
+ }, X.prototype.getElementByPath = function(e) {
3106
+ var t = e.shift(), n;
3107
+ if (typeof t == "number") n = this.elements[t];
3108
+ else {
3109
+ var r, i = this.elements.length;
3110
+ for (r = 0; r < i; r += 1) if (this.elements[r].data.nm === t) {
3111
+ n = this.elements[r];
3112
+ break;
3113
+ }
3114
+ }
3115
+ return e.length === 0 ? n : n.getElementByPath(e);
3116
+ }, X.prototype.setupGlobalData = function(e, t) {
3117
+ this.globalData.fontManager = new Qt(), this.globalData.slotManager = en(e), this.globalData.fontManager.addChars(e.chars), this.globalData.fontManager.addFonts(e.fonts, t), this.globalData.getAssetData = this.animationItem.getAssetData.bind(this.animationItem), this.globalData.getAssetsPath = this.animationItem.getAssetsPath.bind(this.animationItem), this.globalData.imageLoader = this.animationItem.imagePreloader, this.globalData.audioController = this.animationItem.audioController, this.globalData.frameId = 0, this.globalData.frameRate = e.fr, this.globalData.nm = e.nm, this.globalData.compSize = {
3118
+ w: e.w,
3119
+ h: e.h
3120
+ };
3121
+ };
3122
+ var _n = { TRANSFORM_EFFECT: "transformEFfect" };
3123
+ function vn() {}
3124
+ vn.prototype = {
3125
+ initTransform: function() {
3126
+ var e = new G();
3127
+ this.finalTransform = {
3128
+ mProp: this.data.ks ? _t.getTransformProperty(this, this.data.ks, this) : { o: 0 },
3129
+ _matMdf: !1,
3130
+ _localMatMdf: !1,
3131
+ _opMdf: !1,
3132
+ mat: e,
3133
+ localMat: e,
3134
+ localOpacity: 1
3135
+ }, this.data.ao && (this.finalTransform.mProp.autoOriented = !0), this.data.ty;
3136
+ },
3137
+ renderTransform: function() {
3138
+ if (this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame, this.finalTransform._matMdf = this.finalTransform.mProp._mdf || this._isFirstFrame, this.hierarchy) {
3139
+ var e, t = this.finalTransform.mat, n = 0, r = this.hierarchy.length;
3140
+ if (!this.finalTransform._matMdf) for (; n < r;) {
3141
+ if (this.hierarchy[n].finalTransform.mProp._mdf) {
3142
+ this.finalTransform._matMdf = !0;
3143
+ break;
3144
+ }
3145
+ n += 1;
3146
+ }
3147
+ if (this.finalTransform._matMdf) for (e = this.finalTransform.mProp.v.props, t.cloneFromProps(e), n = 0; n < r; n += 1) t.multiply(this.hierarchy[n].finalTransform.mProp.v);
3148
+ }
3149
+ (!this.localTransforms || this.finalTransform._matMdf) && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
3150
+ },
3151
+ renderLocalTransform: function() {
3152
+ if (this.localTransforms) {
3153
+ var e = 0, t = this.localTransforms.length;
3154
+ if (this.finalTransform._localMatMdf = this.finalTransform._matMdf, !this.finalTransform._localMatMdf || !this.finalTransform._opMdf) for (; e < t;) this.localTransforms[e]._mdf && (this.finalTransform._localMatMdf = !0), this.localTransforms[e]._opMdf && !this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v, this.finalTransform._opMdf = !0), e += 1;
3155
+ if (this.finalTransform._localMatMdf) {
3156
+ var n = this.finalTransform.localMat;
3157
+ for (this.localTransforms[0].matrix.clone(n), e = 1; e < t; e += 1) {
3158
+ var r = this.localTransforms[e].matrix;
3159
+ n.multiply(r);
3160
+ }
3161
+ n.multiply(this.finalTransform.mat);
3162
+ }
3163
+ if (this.finalTransform._opMdf) {
3164
+ var i = this.finalTransform.localOpacity;
3165
+ for (e = 0; e < t; e += 1) i *= this.localTransforms[e].opacity * .01;
3166
+ this.finalTransform.localOpacity = i;
3167
+ }
3168
+ }
3169
+ },
3170
+ searchEffectTransforms: function() {
3171
+ if (this.renderableEffectsManager) {
3172
+ var e = this.renderableEffectsManager.getEffects(_n.TRANSFORM_EFFECT);
3173
+ if (e.length) {
3174
+ this.localTransforms = [], this.finalTransform.localMat = new G();
3175
+ var t = 0, n = e.length;
3176
+ for (t = 0; t < n; t += 1) this.localTransforms.push(e[t]);
3177
+ }
3178
+ }
3179
+ },
3180
+ globalToLocal: function(e) {
3181
+ var t = [];
3182
+ t.push(this.finalTransform);
3183
+ for (var n = !0, r = this.comp; n;) r.finalTransform ? (r.data.hasMask && t.splice(0, 0, r.finalTransform), r = r.comp) : n = !1;
3184
+ var i, a = t.length, o;
3185
+ for (i = 0; i < a; i += 1) o = t[i].mat.applyToPointArray(0, 0, 0), e = [
3186
+ e[0] - o[0],
3187
+ e[1] - o[1],
3188
+ 0
3189
+ ];
3190
+ return e;
3191
+ },
3192
+ mHelper: new G()
3193
+ };
3194
+ function yn(e, t, n) {
3195
+ this.data = e, this.element = t, this.globalData = n, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
3196
+ var r = this.globalData.defs, i, a = this.masksProperties ? this.masksProperties.length : 0;
3197
+ this.viewData = h(a), this.solidPath = "";
3198
+ var o, s = this.masksProperties, c = 0, u = [], d, f, p = I(), m, g, _, v, y = "clipPath", b = "clip-path";
3199
+ for (i = 0; i < a; i += 1) if ((s[i].mode !== "a" && s[i].mode !== "n" || s[i].inv || s[i].o.k !== 100 || s[i].o.x) && (y = "mask", b = "mask"), (s[i].mode === "s" || s[i].mode === "i") && c === 0 ? (m = L("rect"), m.setAttribute("fill", "#ffffff"), m.setAttribute("width", this.element.comp.data.w || 0), m.setAttribute("height", this.element.comp.data.h || 0), u.push(m)) : m = null, o = L("path"), s[i].mode === "n") this.viewData[i] = {
3200
+ op: H.getProp(this.element, s[i].o, 0, .01, this.element),
3201
+ prop: Je.getShapeProp(this.element, s[i], 3),
3202
+ elem: o,
3203
+ lastPath: ""
3204
+ }, r.appendChild(o);
3205
+ else {
3206
+ c += 1, o.setAttribute("fill", s[i].mode === "s" ? "#000000" : "#ffffff"), o.setAttribute("clip-rule", "nonzero");
3207
+ var x;
3208
+ if (s[i].x.k === 0 ? (_ = null, v = null) : (y = "mask", b = "mask", v = H.getProp(this.element, s[i].x, 0, null, this.element), x = I(), g = L("filter"), g.setAttribute("id", x), _ = L("feMorphology"), _.setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), g.appendChild(_), r.appendChild(g), o.setAttribute("stroke", s[i].mode === "s" ? "#000000" : "#ffffff")), this.storedData[i] = {
3209
+ elem: o,
3210
+ x: v,
3211
+ expan: _,
3212
+ lastPath: "",
3213
+ lastOperator: "",
3214
+ filterId: x,
3215
+ lastRadius: 0
3216
+ }, s[i].mode === "i") {
3217
+ f = u.length;
3218
+ var S = L("g");
3219
+ for (d = 0; d < f; d += 1) S.appendChild(u[d]);
3220
+ var C = L("mask");
3221
+ C.setAttribute("mask-type", "alpha"), C.setAttribute("id", p + "_" + c), C.appendChild(o), r.appendChild(C), S.setAttribute("mask", "url(" + l() + "#" + p + "_" + c + ")"), u.length = 0, u.push(S);
3222
+ } else u.push(o);
3223
+ s[i].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[i] = {
3224
+ elem: o,
3225
+ lastPath: "",
3226
+ op: H.getProp(this.element, s[i].o, 0, .01, this.element),
3227
+ prop: Je.getShapeProp(this.element, s[i], 3),
3228
+ invRect: m
3229
+ }, this.viewData[i].prop.k || this.drawPath(s[i], this.viewData[i].prop.v, this.viewData[i]);
3230
+ }
3231
+ for (this.maskElement = L(y), a = u.length, i = 0; i < a; i += 1) this.maskElement.appendChild(u[i]);
3232
+ c > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(b, "url(" + l() + "#" + p + ")"), r.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
3233
+ }
3234
+ yn.prototype.getMaskProperty = function(e) {
3235
+ return this.viewData[e].prop;
3236
+ }, yn.prototype.renderFrame = function(e) {
3237
+ var t = this.element.finalTransform.mat, n, r = this.masksProperties.length;
3238
+ for (n = 0; n < r; n += 1) if ((this.viewData[n].prop._mdf || e) && this.drawPath(this.masksProperties[n], this.viewData[n].prop.v, this.viewData[n]), (this.viewData[n].op._mdf || e) && this.viewData[n].elem.setAttribute("fill-opacity", this.viewData[n].op.v), this.masksProperties[n].mode !== "n" && (this.viewData[n].invRect && (this.element.finalTransform.mProp._mdf || e) && this.viewData[n].invRect.setAttribute("transform", t.getInverseMatrix().to2dCSS()), this.storedData[n].x && (this.storedData[n].x._mdf || e))) {
3239
+ var i = this.storedData[n].expan;
3240
+ this.storedData[n].x.v < 0 ? (this.storedData[n].lastOperator !== "erode" && (this.storedData[n].lastOperator = "erode", this.storedData[n].elem.setAttribute("filter", "url(" + l() + "#" + this.storedData[n].filterId + ")")), i.setAttribute("radius", -this.storedData[n].x.v)) : (this.storedData[n].lastOperator !== "dilate" && (this.storedData[n].lastOperator = "dilate", this.storedData[n].elem.setAttribute("filter", null)), this.storedData[n].elem.setAttribute("stroke-width", this.storedData[n].x.v * 2));
3241
+ }
3242
+ }, yn.prototype.getMaskelement = function() {
3243
+ return this.maskElement;
3244
+ }, yn.prototype.createLayerSolidPath = function() {
3245
+ var e = "M0,0 ";
3246
+ return e += " h" + this.globalData.compSize.w, e += " v" + this.globalData.compSize.h, e += " h-" + this.globalData.compSize.w, e += " v-" + this.globalData.compSize.h + " ", e;
3247
+ }, yn.prototype.drawPath = function(e, t, n) {
3248
+ var r = " M" + t.v[0][0] + "," + t.v[0][1], i, a = t._length;
3249
+ for (i = 1; i < a; i += 1) r += " C" + t.o[i - 1][0] + "," + t.o[i - 1][1] + " " + t.i[i][0] + "," + t.i[i][1] + " " + t.v[i][0] + "," + t.v[i][1];
3250
+ if (t.c && a > 1 && (r += " C" + t.o[i - 1][0] + "," + t.o[i - 1][1] + " " + t.i[0][0] + "," + t.i[0][1] + " " + t.v[0][0] + "," + t.v[0][1]), n.lastPath !== r) {
3251
+ var o = "";
3252
+ n.elem && (t.c && (o = e.inv ? this.solidPath + r : r), n.elem.setAttribute("d", o)), n.lastPath = r;
3253
+ }
3254
+ }, yn.prototype.destroy = function() {
3255
+ this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null;
3256
+ };
3257
+ var bn = function() {
3258
+ var e = {};
3259
+ e.createFilter = t, e.createAlphaToLuminanceFilter = n;
3260
+ function t(e, t) {
3261
+ var n = L("filter");
3262
+ return n.setAttribute("id", e), t !== !0 && (n.setAttribute("filterUnits", "objectBoundingBox"), n.setAttribute("x", "0%"), n.setAttribute("y", "0%"), n.setAttribute("width", "100%"), n.setAttribute("height", "100%")), n;
3263
+ }
3264
+ function n() {
3265
+ var e = L("feColorMatrix");
3266
+ return e.setAttribute("type", "matrix"), e.setAttribute("color-interpolation-filters", "sRGB"), e.setAttribute("values", "0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"), e;
3267
+ }
3268
+ return e;
3269
+ }(), xn = function() {
3270
+ var e = {
3271
+ maskType: !0,
3272
+ svgLumaHidden: !0,
3273
+ offscreenCanvas: typeof OffscreenCanvas < "u"
3274
+ };
3275
+ return (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) && (e.maskType = !1), /firefox/i.test(navigator.userAgent) && (e.svgLumaHidden = !1), e;
3276
+ }(), Sn = {}, Cn = "filter_result_";
3277
+ function wn(e) {
3278
+ var t, n = "SourceGraphic", r = e.data.ef ? e.data.ef.length : 0, i = I(), a = bn.createFilter(i, !0), o = 0;
3279
+ this.filters = [];
3280
+ var s;
3281
+ for (t = 0; t < r; t += 1) {
3282
+ s = null;
3283
+ var c = e.data.ef[t].ty;
3284
+ if (Sn[c]) {
3285
+ var u = Sn[c].effect;
3286
+ s = new u(a, e.effectsManager.effectElements[t], e, Cn + o, n), n = Cn + o, Sn[c].countsAsEffect && (o += 1);
3287
+ }
3288
+ s && this.filters.push(s);
3289
+ }
3290
+ o && (e.globalData.defs.appendChild(a), e.layerElement.setAttribute("filter", "url(" + l() + "#" + i + ")")), this.filters.length && e.addRenderableComponent(this);
3291
+ }
3292
+ wn.prototype.renderFrame = function(e) {
3293
+ var t, n = this.filters.length;
3294
+ for (t = 0; t < n; t += 1) this.filters[t].renderFrame(e);
3295
+ }, wn.prototype.getEffects = function(e) {
3296
+ var t, n = this.filters.length, r = [];
3297
+ for (t = 0; t < n; t += 1) this.filters[t].type === e && r.push(this.filters[t]);
3298
+ return r;
3299
+ };
3300
+ function Tn() {}
3301
+ Tn.prototype = {
3302
+ initRendererElement: function() {
3303
+ this.layerElement = L("g");
3304
+ },
3305
+ createContainerElements: function() {
3306
+ this.matteElement = L("g"), this.transformedElement = this.layerElement, this.maskedElement = this.layerElement, this._sizeChanged = !1;
3307
+ var e = null;
3308
+ if (this.data.td) {
3309
+ this.matteMasks = {};
3310
+ var t = L("g");
3311
+ t.setAttribute("id", this.layerId), t.appendChild(this.layerElement), e = t, this.globalData.defs.appendChild(t);
3312
+ } else this.data.tt ? (this.matteElement.appendChild(this.layerElement), e = this.matteElement, this.baseElement = this.matteElement) : this.baseElement = this.layerElement;
3313
+ if (this.data.ln && this.layerElement.setAttribute("id", this.data.ln), this.data.cl && this.layerElement.setAttribute("class", this.data.cl), this.data.ty === 0 && !this.data.hd) {
3314
+ var n = L("clipPath"), r = L("path");
3315
+ r.setAttribute("d", "M0,0 L" + this.data.w + ",0 L" + this.data.w + "," + this.data.h + " L0," + this.data.h + "z");
3316
+ var i = I();
3317
+ if (n.setAttribute("id", i), n.appendChild(r), this.globalData.defs.appendChild(n), this.checkMasks()) {
3318
+ var a = L("g");
3319
+ a.setAttribute("clip-path", "url(" + l() + "#" + i + ")"), a.appendChild(this.layerElement), this.transformedElement = a, e ? e.appendChild(this.transformedElement) : this.baseElement = this.transformedElement;
3320
+ } else this.layerElement.setAttribute("clip-path", "url(" + l() + "#" + i + ")");
3321
+ }
3322
+ this.data.bm !== 0 && this.setBlendMode();
3323
+ },
3324
+ renderElement: function() {
3325
+ this.finalTransform._localMatMdf && this.transformedElement.setAttribute("transform", this.finalTransform.localMat.to2dCSS()), this.finalTransform._opMdf && this.transformedElement.setAttribute("opacity", this.finalTransform.localOpacity);
3326
+ },
3327
+ destroyBaseElement: function() {
3328
+ this.layerElement = null, this.matteElement = null, this.maskManager.destroy();
3329
+ },
3330
+ getBaseElement: function() {
3331
+ return this.data.hd ? null : this.baseElement;
3332
+ },
3333
+ createRenderableComponents: function() {
3334
+ this.maskManager = new yn(this.data, this, this.globalData), this.renderableEffectsManager = new wn(this), this.searchEffectTransforms();
3335
+ },
3336
+ getMatte: function(e) {
3337
+ if (this.matteMasks ||= {}, !this.matteMasks[e]) {
3338
+ var t = this.layerId + "_" + e, n, r, i, a;
3339
+ if (e === 1 || e === 3) {
3340
+ var o = L("mask");
3341
+ o.setAttribute("id", t), o.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), i = L("use"), i.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), o.appendChild(i), this.globalData.defs.appendChild(o), !xn.maskType && e === 1 && (o.setAttribute("mask-type", "luminance"), n = I(), r = bn.createFilter(n), this.globalData.defs.appendChild(r), r.appendChild(bn.createAlphaToLuminanceFilter()), a = L("g"), a.appendChild(i), o.appendChild(a), a.setAttribute("filter", "url(" + l() + "#" + n + ")"));
3342
+ } else if (e === 2) {
3343
+ var s = L("mask");
3344
+ s.setAttribute("id", t), s.setAttribute("mask-type", "alpha");
3345
+ var c = L("g");
3346
+ s.appendChild(c), n = I(), r = bn.createFilter(n);
3347
+ var u = L("feComponentTransfer");
3348
+ u.setAttribute("in", "SourceGraphic"), r.appendChild(u);
3349
+ var d = L("feFuncA");
3350
+ d.setAttribute("type", "table"), d.setAttribute("tableValues", "1.0 0.0"), u.appendChild(d), this.globalData.defs.appendChild(r);
3351
+ var f = L("rect");
3352
+ f.setAttribute("width", this.comp.data.w), f.setAttribute("height", this.comp.data.h), f.setAttribute("x", "0"), f.setAttribute("y", "0"), f.setAttribute("fill", "#ffffff"), f.setAttribute("opacity", "0"), c.setAttribute("filter", "url(" + l() + "#" + n + ")"), c.appendChild(f), i = L("use"), i.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(i), xn.maskType || (s.setAttribute("mask-type", "luminance"), r.appendChild(bn.createAlphaToLuminanceFilter()), a = L("g"), c.appendChild(f), a.appendChild(this.layerElement), c.appendChild(a)), this.globalData.defs.appendChild(s);
3353
+ }
3354
+ this.matteMasks[e] = t;
3355
+ }
3356
+ return this.matteMasks[e];
3357
+ },
3358
+ setMatte: function(e) {
3359
+ this.matteElement && this.matteElement.setAttribute("mask", "url(" + l() + "#" + e + ")");
3360
+ }
3361
+ };
3362
+ function En() {}
3363
+ En.prototype = {
3364
+ initHierarchy: function() {
3365
+ this.hierarchy = [], this._isParent = !1, this.checkParenting();
3366
+ },
3367
+ setHierarchy: function(e) {
3368
+ this.hierarchy = e;
3369
+ },
3370
+ setAsParent: function() {
3371
+ this._isParent = !0;
3372
+ },
3373
+ checkParenting: function() {
3374
+ this.data.parent !== void 0 && this.comp.buildElementParenting(this, this.data.parent, []);
3375
+ }
3376
+ };
3377
+ function Dn() {}
3378
+ (function() {
3379
+ d([tn, f({
3380
+ initElement: function(e, t, n) {
3381
+ this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide();
3382
+ },
3383
+ hide: function() {
3384
+ if (!this.hidden && (!this.isInRange || this.isTransparent)) {
3385
+ var e = this.baseElement || this.layerElement;
3386
+ e.style.display = "none", this.hidden = !0;
3387
+ }
3388
+ },
3389
+ show: function() {
3390
+ if (this.isInRange && !this.isTransparent) {
3391
+ if (!this.data.hd) {
3392
+ var e = this.baseElement || this.layerElement;
3393
+ e.style.display = "block";
3394
+ }
3395
+ this.hidden = !1, this._isFirstFrame = !0;
3396
+ }
3397
+ },
3398
+ renderFrame: function() {
3399
+ this.data.hd || this.hidden || (this.renderTransform(), this.renderRenderable(), this.renderLocalTransform(), this.renderElement(), this.renderInnerContent(), this._isFirstFrame &&= !1);
3400
+ },
3401
+ renderInnerContent: function() {},
3402
+ prepareFrame: function(e) {
3403
+ this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), this.checkTransparency();
3404
+ },
3405
+ destroy: function() {
3406
+ this.innerElem = null, this.destroyBaseElement();
3407
+ }
3408
+ })], Dn);
3409
+ })();
3410
+ function On(e, t, n) {
3411
+ this.assetData = t.getAssetData(e.refId), this.assetData && this.assetData.sid && (this.assetData = t.slotManager.getProp(this.assetData)), this.initElement(e, t, n), this.sourceRect = {
3412
+ top: 0,
3413
+ left: 0,
3414
+ width: this.assetData.w,
3415
+ height: this.assetData.h
3416
+ };
3417
+ }
3418
+ d([
3419
+ mn,
3420
+ vn,
3421
+ Tn,
3422
+ En,
3423
+ hn,
3424
+ Dn
3425
+ ], On), On.prototype.createContent = function() {
3426
+ var e = this.globalData.getAssetsPath(this.assetData);
3427
+ this.innerElem = L("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", e), this.layerElement.appendChild(this.innerElem);
3428
+ }, On.prototype.sourceRectAtTime = function() {
3429
+ return this.sourceRect;
3430
+ };
3431
+ function kn(e, t) {
3432
+ this.elem = e, this.pos = t;
3433
+ }
3434
+ function An() {}
3435
+ An.prototype = {
3436
+ addShapeToModifiers: function(e) {
3437
+ var t, n = this.shapeModifiers.length;
3438
+ for (t = 0; t < n; t += 1) this.shapeModifiers[t].addShape(e);
3439
+ },
3440
+ isShapeInAnimatedModifiers: function(e) {
3441
+ for (var t = 0, n = this.shapeModifiers.length; t < n;) if (this.shapeModifiers[t].isAnimatedWithShape(e)) return !0;
3442
+ return !1;
3443
+ },
3444
+ renderModifiers: function() {
3445
+ if (this.shapeModifiers.length) {
3446
+ var e, t = this.shapes.length;
3447
+ for (e = 0; e < t; e += 1) this.shapes[e].sh.reset();
3448
+ t = this.shapeModifiers.length;
3449
+ var n;
3450
+ for (e = t - 1; e >= 0 && (n = this.shapeModifiers[e].processShapes(this._isFirstFrame), !n); --e);
3451
+ }
3452
+ },
3453
+ searchProcessedElement: function(e) {
3454
+ for (var t = this.processedElements, n = 0, r = t.length; n < r;) {
3455
+ if (t[n].elem === e) return t[n].pos;
3456
+ n += 1;
3457
+ }
3458
+ return 0;
3459
+ },
3460
+ addProcessedElement: function(e, t) {
3461
+ for (var n = this.processedElements, r = n.length; r;) if (--r, n[r].elem === e) {
3462
+ n[r].pos = t;
3463
+ return;
3464
+ }
3465
+ n.push(new kn(e, t));
3466
+ },
3467
+ prepareFrame: function(e) {
3468
+ this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange);
3469
+ }
3470
+ };
3471
+ var jn = {
3472
+ 1: "butt",
3473
+ 2: "round",
3474
+ 3: "square"
3475
+ }, Mn = {
3476
+ 1: "miter",
3477
+ 2: "round",
3478
+ 3: "bevel"
3479
+ };
3480
+ function Nn(e, t, n) {
3481
+ this.caches = [], this.styles = [], this.transformers = e, this.lStr = "", this.sh = n, this.lvl = t, this._isAnimated = !!n.k;
3482
+ for (var r = 0, i = e.length; r < i;) {
3483
+ if (e[r].mProps.dynamicProperties.length) {
3484
+ this._isAnimated = !0;
3485
+ break;
3486
+ }
3487
+ r += 1;
3488
+ }
3489
+ }
3490
+ Nn.prototype.setAsAnimated = function() {
3491
+ this._isAnimated = !0;
3492
+ };
3493
+ function Pn(e, t) {
3494
+ this.data = e, this.type = e.ty, this.d = "", this.lvl = t, this._mdf = !1, this.closed = e.hd === !0, this.pElem = L("path"), this.msElem = null;
3495
+ }
3496
+ Pn.prototype.reset = function() {
3497
+ this.d = "", this._mdf = !1;
3498
+ };
3499
+ function Fn(e, t, n, r) {
3500
+ this.elem = e, this.frameId = -1, this.dataProps = h(t.length), this.renderer = n, this.k = !1, this.dashStr = "", this.dashArray = m("float32", t.length ? t.length - 1 : 0), this.dashoffset = m("float32", 1), this.initDynamicPropertyContainer(r);
3501
+ var i, a = t.length || 0, o;
3502
+ for (i = 0; i < a; i += 1) o = H.getProp(e, t[i].v, 0, 0, this), this.k = o.k || this.k, this.dataProps[i] = {
3503
+ n: t[i].n,
3504
+ p: o
3505
+ };
3506
+ this.k || this.getValue(!0), this._isAnimated = this.k;
3507
+ }
3508
+ Fn.prototype.getValue = function(e) {
3509
+ if (!(this.elem.globalData.frameId === this.frameId && !e) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || e, this._mdf)) {
3510
+ var t = 0, n = this.dataProps.length;
3511
+ for (this.renderer === "svg" && (this.dashStr = ""), t = 0; t < n; t += 1) this.dataProps[t].n === "o" ? this.dashoffset[0] = this.dataProps[t].p.v : this.renderer === "svg" ? this.dashStr += " " + this.dataProps[t].p.v : this.dashArray[t] = this.dataProps[t].p.v;
3512
+ }
3513
+ }, d([U], Fn);
3514
+ function In(e, t, n) {
3515
+ this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.o = H.getProp(e, t.o, 0, .01, this), this.w = H.getProp(e, t.w, 0, null, this), this.d = new Fn(e, t.d || {}, "svg", this), this.c = H.getProp(e, t.c, 1, 255, this), this.style = n, this._isAnimated = !!this._isAnimated;
3516
+ }
3517
+ d([U], In);
3518
+ function Ln(e, t, n) {
3519
+ this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.o = H.getProp(e, t.o, 0, .01, this), this.c = H.getProp(e, t.c, 1, 255, this), this.style = n;
3520
+ }
3521
+ d([U], Ln);
3522
+ function Rn(e, t, n) {
3523
+ this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.style = n;
3524
+ }
3525
+ d([U], Rn);
3526
+ function zn(e, t, n) {
3527
+ this.data = t, this.c = m("uint8c", t.p * 4);
3528
+ var r = t.k.k[0].s ? t.k.k[0].s.length - t.p * 4 : t.k.k.length - t.p * 4;
3529
+ this.o = m("float32", r), this._cmdf = !1, this._omdf = !1, this._collapsable = this.checkCollapsable(), this._hasOpacity = r, this.initDynamicPropertyContainer(n), this.prop = H.getProp(e, t.k, 1, null, this), this.k = this.prop.k, this.getValue(!0);
3530
+ }
3531
+ zn.prototype.comparePoints = function(e, t) {
3532
+ for (var n = 0, r = this.o.length / 2, i; n < r;) {
3533
+ if (i = Math.abs(e[n * 4] - e[t * 4 + n * 2]), i > .01) return !1;
3534
+ n += 1;
3535
+ }
3536
+ return !0;
3537
+ }, zn.prototype.checkCollapsable = function() {
3538
+ if (this.o.length / 2 != this.c.length / 4) return !1;
3539
+ if (this.data.k.k[0].s) for (var e = 0, t = this.data.k.k.length; e < t;) {
3540
+ if (!this.comparePoints(this.data.k.k[e].s, this.data.p)) return !1;
3541
+ e += 1;
3542
+ }
3543
+ else if (!this.comparePoints(this.data.k.k, this.data.p)) return !1;
3544
+ return !0;
3545
+ }, zn.prototype.getValue = function(e) {
3546
+ if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || e) {
3547
+ var t, n = this.data.p * 4, r, i;
3548
+ for (t = 0; t < n; t += 1) r = t % 4 == 0 ? 100 : 255, i = Math.round(this.prop.v[t] * r), this.c[t] !== i && (this.c[t] = i, this._cmdf = !e);
3549
+ if (this.o.length) for (n = this.prop.v.length, t = this.data.p * 4; t < n; t += 1) r = t % 2 == 0 ? 100 : 1, i = t % 2 == 0 ? Math.round(this.prop.v[t] * 100) : this.prop.v[t], this.o[t - this.data.p * 4] !== i && (this.o[t - this.data.p * 4] = i, this._omdf = !e);
3550
+ this._mdf = !e;
3551
+ }
3552
+ }, d([U], zn);
3553
+ function Bn(e, t, n) {
3554
+ this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.initGradientData(e, t, n);
3555
+ }
3556
+ Bn.prototype.initGradientData = function(e, t, n) {
3557
+ this.o = H.getProp(e, t.o, 0, .01, this), this.s = H.getProp(e, t.s, 1, null, this), this.e = H.getProp(e, t.e, 1, null, this), this.h = H.getProp(e, t.h || { k: 0 }, 0, .01, this), this.a = H.getProp(e, t.a || { k: 0 }, 0, O, this), this.g = new zn(e, t.g, this), this.style = n, this.stops = [], this.setGradientData(n.pElem, t), this.setGradientOpacity(t, n), this._isAnimated = !!this._isAnimated;
3558
+ }, Bn.prototype.setGradientData = function(e, t) {
3559
+ var n = I(), r = L(t.t === 1 ? "linearGradient" : "radialGradient");
3560
+ r.setAttribute("id", n), r.setAttribute("spreadMethod", "pad"), r.setAttribute("gradientUnits", "userSpaceOnUse");
3561
+ var i = [], a, o, s = t.g.p * 4;
3562
+ for (o = 0; o < s; o += 4) a = L("stop"), r.appendChild(a), i.push(a);
3563
+ e.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + l() + "#" + n + ")"), this.gf = r, this.cst = i;
3564
+ }, Bn.prototype.setGradientOpacity = function(e, t) {
3565
+ if (this.g._hasOpacity && !this.g._collapsable) {
3566
+ var n, r, i, a = L("mask"), o = L("path");
3567
+ a.appendChild(o);
3568
+ var s = I(), c = I();
3569
+ a.setAttribute("id", c);
3570
+ var u = L(e.t === 1 ? "linearGradient" : "radialGradient");
3571
+ u.setAttribute("id", s), u.setAttribute("spreadMethod", "pad"), u.setAttribute("gradientUnits", "userSpaceOnUse"), i = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length;
3572
+ var d = this.stops;
3573
+ for (r = e.g.p * 4; r < i; r += 2) n = L("stop"), n.setAttribute("stop-color", "rgb(255,255,255)"), u.appendChild(n), d.push(n);
3574
+ o.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + l() + "#" + s + ")"), e.ty === "gs" && (o.setAttribute("stroke-linecap", jn[e.lc || 2]), o.setAttribute("stroke-linejoin", Mn[e.lj || 2]), e.lj === 1 && o.setAttribute("stroke-miterlimit", e.ml)), this.of = u, this.ms = a, this.ost = d, this.maskId = c, t.msElem = o;
3575
+ }
3576
+ }, d([U], Bn);
3577
+ function Vn(e, t, n) {
3578
+ this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.w = H.getProp(e, t.w, 0, null, this), this.d = new Fn(e, t.d || {}, "svg", this), this.initGradientData(e, t, n), this._isAnimated = !!this._isAnimated;
3579
+ }
3580
+ d([Bn, U], Vn);
3581
+ function Hn() {
3582
+ this.it = [], this.prevViewData = [], this.gr = L("g");
3583
+ }
3584
+ function Un(e, t, n) {
3585
+ this.transform = {
3586
+ mProps: e,
3587
+ op: t,
3588
+ container: n
3589
+ }, this.elements = [], this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length;
3590
+ }
3591
+ var Wn = function(e, t, n, r) {
3592
+ if (t === 0) return "";
3593
+ var i = e.o, a = e.i, o = e.v, s, c = " M" + r.applyToPointStringified(o[0][0], o[0][1]);
3594
+ for (s = 1; s < t; s += 1) c += " C" + r.applyToPointStringified(i[s - 1][0], i[s - 1][1]) + " " + r.applyToPointStringified(a[s][0], a[s][1]) + " " + r.applyToPointStringified(o[s][0], o[s][1]);
3595
+ return n && t && (c += " C" + r.applyToPointStringified(i[s - 1][0], i[s - 1][1]) + " " + r.applyToPointStringified(a[0][0], a[0][1]) + " " + r.applyToPointStringified(o[0][0], o[0][1]), c += "z"), c;
3596
+ }, Gn = function() {
3597
+ var e = new G(), t = new G(), n = { createRenderFunction: r };
3598
+ function r(e) {
3599
+ switch (e.ty) {
3600
+ case "fl": return s;
3601
+ case "gf": return l;
3602
+ case "gs": return c;
3603
+ case "st": return u;
3604
+ case "sh":
3605
+ case "el":
3606
+ case "rc":
3607
+ case "sr": return o;
3608
+ case "tr": return i;
3609
+ case "no": return a;
3610
+ default: return null;
3611
+ }
3612
+ }
3613
+ function i(e, t, n) {
3614
+ (n || t.transform.op._mdf) && t.transform.container.setAttribute("opacity", t.transform.op.v), (n || t.transform.mProps._mdf) && t.transform.container.setAttribute("transform", t.transform.mProps.v.to2dCSS());
3615
+ }
3616
+ function a() {}
3617
+ function o(n, r, i) {
3618
+ var a, o, s, c, l, u, d = r.styles.length, f = r.lvl, p, m, h, g;
3619
+ for (u = 0; u < d; u += 1) {
3620
+ if (c = r.sh._mdf || i, r.styles[u].lvl < f) {
3621
+ for (m = t.reset(), h = f - r.styles[u].lvl, g = r.transformers.length - 1; !c && h > 0;) c = r.transformers[g].mProps._mdf || c, --h, --g;
3622
+ if (c) for (h = f - r.styles[u].lvl, g = r.transformers.length - 1; h > 0;) m.multiply(r.transformers[g].mProps.v), --h, --g;
3623
+ } else m = e;
3624
+ if (p = r.sh.paths, o = p._length, c) {
3625
+ for (s = "", a = 0; a < o; a += 1) l = p.shapes[a], l && l._length && (s += Wn(l, l._length, l.c, m));
3626
+ r.caches[u] = s;
3627
+ } else s = r.caches[u];
3628
+ r.styles[u].d += n.hd === !0 ? "" : s, r.styles[u]._mdf = c || r.styles[u]._mdf;
3629
+ }
3630
+ }
3631
+ function s(e, t, n) {
3632
+ var r = t.style;
3633
+ (t.c._mdf || n) && r.pElem.setAttribute("fill", "rgb(" + w(t.c.v[0]) + "," + w(t.c.v[1]) + "," + w(t.c.v[2]) + ")"), (t.o._mdf || n) && r.pElem.setAttribute("fill-opacity", t.o.v);
3634
+ }
3635
+ function c(e, t, n) {
3636
+ l(e, t, n), u(e, t, n);
3637
+ }
3638
+ function l(e, t, n) {
3639
+ var r = t.gf, i = t.g._hasOpacity, a = t.s.v, o = t.e.v;
3640
+ if (t.o._mdf || n) {
3641
+ var s = e.ty === "gf" ? "fill-opacity" : "stroke-opacity";
3642
+ t.style.pElem.setAttribute(s, t.o.v);
3643
+ }
3644
+ if (t.s._mdf || n) {
3645
+ var c = e.t === 1 ? "x1" : "cx", l = c === "x1" ? "y1" : "cy";
3646
+ r.setAttribute(c, a[0]), r.setAttribute(l, a[1]), i && !t.g._collapsable && (t.of.setAttribute(c, a[0]), t.of.setAttribute(l, a[1]));
3647
+ }
3648
+ var u, d, f, p;
3649
+ if (t.g._cmdf || n) {
3650
+ u = t.cst;
3651
+ var m = t.g.c;
3652
+ for (f = u.length, d = 0; d < f; d += 1) p = u[d], p.setAttribute("offset", m[d * 4] + "%"), p.setAttribute("stop-color", "rgb(" + m[d * 4 + 1] + "," + m[d * 4 + 2] + "," + m[d * 4 + 3] + ")");
3653
+ }
3654
+ if (i && (t.g._omdf || n)) {
3655
+ var h = t.g.o;
3656
+ for (u = t.g._collapsable ? t.cst : t.ost, f = u.length, d = 0; d < f; d += 1) p = u[d], t.g._collapsable || p.setAttribute("offset", h[d * 2] + "%"), p.setAttribute("stop-opacity", h[d * 2 + 1]);
3657
+ }
3658
+ if (e.t === 1) (t.e._mdf || n) && (r.setAttribute("x2", o[0]), r.setAttribute("y2", o[1]), i && !t.g._collapsable && (t.of.setAttribute("x2", o[0]), t.of.setAttribute("y2", o[1])));
3659
+ else {
3660
+ var g;
3661
+ if ((t.s._mdf || t.e._mdf || n) && (g = Math.sqrt((a[0] - o[0]) ** 2 + (a[1] - o[1]) ** 2), r.setAttribute("r", g), i && !t.g._collapsable && t.of.setAttribute("r", g)), t.s._mdf || t.e._mdf || t.h._mdf || t.a._mdf || n) {
3662
+ g ||= Math.sqrt((a[0] - o[0]) ** 2 + (a[1] - o[1]) ** 2);
3663
+ var _ = Math.atan2(o[1] - a[1], o[0] - a[0]), v = t.h.v;
3664
+ v >= 1 ? v = .99 : v <= -1 && (v = -.99);
3665
+ var y = g * v, b = Math.cos(_ + t.a.v) * y + a[0], x = Math.sin(_ + t.a.v) * y + a[1];
3666
+ r.setAttribute("fx", b), r.setAttribute("fy", x), i && !t.g._collapsable && (t.of.setAttribute("fx", b), t.of.setAttribute("fy", x));
3667
+ }
3668
+ }
3669
+ }
3670
+ function u(e, t, n) {
3671
+ var r = t.style, i = t.d;
3672
+ i && (i._mdf || n) && i.dashStr && (r.pElem.setAttribute("stroke-dasharray", i.dashStr), r.pElem.setAttribute("stroke-dashoffset", i.dashoffset[0])), t.c && (t.c._mdf || n) && r.pElem.setAttribute("stroke", "rgb(" + w(t.c.v[0]) + "," + w(t.c.v[1]) + "," + w(t.c.v[2]) + ")"), (t.o._mdf || n) && r.pElem.setAttribute("stroke-opacity", t.o.v), (t.w._mdf || n) && (r.pElem.setAttribute("stroke-width", t.w.v), r.msElem && r.msElem.setAttribute("stroke-width", t.w.v));
3673
+ }
3674
+ return n;
3675
+ }();
3676
+ function Z(e, t, n) {
3677
+ this.shapes = [], this.shapesData = e.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(e, t, n), this.prevViewData = [];
3678
+ }
3679
+ d([
3680
+ mn,
3681
+ vn,
3682
+ Tn,
3683
+ An,
3684
+ En,
3685
+ hn,
3686
+ Dn
3687
+ ], Z), Z.prototype.initSecondaryElement = function() {}, Z.prototype.identityMatrix = new G(), Z.prototype.buildExpressionInterface = function() {}, Z.prototype.createContent = function() {
3688
+ this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes();
3689
+ }, Z.prototype.filterUniqueShapes = function() {
3690
+ var e, t = this.shapes.length, n, r, i = this.stylesList.length, a, o = [], s = !1;
3691
+ for (r = 0; r < i; r += 1) {
3692
+ for (a = this.stylesList[r], s = !1, o.length = 0, e = 0; e < t; e += 1) n = this.shapes[e], n.styles.indexOf(a) !== -1 && (o.push(n), s = n._isAnimated || s);
3693
+ o.length > 1 && s && this.setShapesAsAnimated(o);
3694
+ }
3695
+ }, Z.prototype.setShapesAsAnimated = function(e) {
3696
+ var t, n = e.length;
3697
+ for (t = 0; t < n; t += 1) e[t].setAsAnimated();
3698
+ }, Z.prototype.createStyleElement = function(e, t) {
3699
+ var n, r = new Pn(e, t), i = r.pElem;
3700
+ return e.ty === "st" ? n = new In(this, e, r) : e.ty === "fl" ? n = new Ln(this, e, r) : e.ty === "gf" || e.ty === "gs" ? (n = new (e.ty === "gf" ? Bn : Vn)(this, e, r), this.globalData.defs.appendChild(n.gf), n.maskId && (this.globalData.defs.appendChild(n.ms), this.globalData.defs.appendChild(n.of), i.setAttribute("mask", "url(" + l() + "#" + n.maskId + ")"))) : e.ty === "no" && (n = new Rn(this, e, r)), (e.ty === "st" || e.ty === "gs") && (i.setAttribute("stroke-linecap", jn[e.lc || 2]), i.setAttribute("stroke-linejoin", Mn[e.lj || 2]), i.setAttribute("fill-opacity", "0"), e.lj === 1 && i.setAttribute("stroke-miterlimit", e.ml)), e.r === 2 && i.setAttribute("fill-rule", "evenodd"), e.ln && i.setAttribute("id", e.ln), e.cl && i.setAttribute("class", e.cl), e.bm && (i.style["mix-blend-mode"] = nn(e.bm)), this.stylesList.push(r), this.addToAnimatedContents(e, n), n;
3701
+ }, Z.prototype.createGroupElement = function(e) {
3702
+ var t = new Hn();
3703
+ return e.ln && t.gr.setAttribute("id", e.ln), e.cl && t.gr.setAttribute("class", e.cl), e.bm && (t.gr.style["mix-blend-mode"] = nn(e.bm)), t;
3704
+ }, Z.prototype.createTransformElement = function(e, t) {
3705
+ var n = _t.getTransformProperty(this, e, this), r = new Un(n, n.o, t);
3706
+ return this.addToAnimatedContents(e, r), r;
3707
+ }, Z.prototype.createShapeElement = function(e, t, n) {
3708
+ var r = 4;
3709
+ e.ty === "rc" ? r = 5 : e.ty === "el" ? r = 6 : e.ty === "sr" && (r = 7);
3710
+ var i = new Nn(t, n, Je.getShapeProp(this, e, r, this));
3711
+ return this.shapes.push(i), this.addShapeToModifiers(i), this.addToAnimatedContents(e, i), i;
3712
+ }, Z.prototype.addToAnimatedContents = function(e, t) {
3713
+ for (var n = 0, r = this.animatedContents.length; n < r;) {
3714
+ if (this.animatedContents[n].element === t) return;
3715
+ n += 1;
3716
+ }
3717
+ this.animatedContents.push({
3718
+ fn: Gn.createRenderFunction(e),
3719
+ element: t,
3720
+ data: e
3721
+ });
3722
+ }, Z.prototype.setElementStyles = function(e) {
3723
+ var t = e.styles, n, r = this.stylesList.length;
3724
+ for (n = 0; n < r; n += 1) t.indexOf(this.stylesList[n]) === -1 && !this.stylesList[n].closed && t.push(this.stylesList[n]);
3725
+ }, Z.prototype.reloadShapes = function() {
3726
+ this._isFirstFrame = !0;
3727
+ var e, t = this.itemsData.length;
3728
+ for (e = 0; e < t; e += 1) this.prevViewData[e] = this.itemsData[e];
3729
+ for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes(), t = this.dynamicProperties.length, e = 0; e < t; e += 1) this.dynamicProperties[e].getValue();
3730
+ this.renderModifiers();
3731
+ }, Z.prototype.searchShapes = function(e, t, n, r, i, a, o) {
3732
+ var s = [].concat(a), c, l = e.length - 1, u, d, f = [], p = [], m, h, g;
3733
+ for (c = l; c >= 0; --c) {
3734
+ if (g = this.searchProcessedElement(e[c]), g ? t[c] = n[g - 1] : e[c]._render = o, e[c].ty === "fl" || e[c].ty === "st" || e[c].ty === "gf" || e[c].ty === "gs" || e[c].ty === "no") g ? t[c].style.closed = e[c].hd : t[c] = this.createStyleElement(e[c], i), e[c]._render && t[c].style.pElem.parentNode !== r && r.appendChild(t[c].style.pElem), f.push(t[c].style);
3735
+ else if (e[c].ty === "gr") {
3736
+ if (!g) t[c] = this.createGroupElement(e[c]);
3737
+ else for (d = t[c].it.length, u = 0; u < d; u += 1) t[c].prevViewData[u] = t[c].it[u];
3738
+ this.searchShapes(e[c].it, t[c].it, t[c].prevViewData, t[c].gr, i + 1, s, o), e[c]._render && t[c].gr.parentNode !== r && r.appendChild(t[c].gr);
3739
+ } else e[c].ty === "tr" ? (g || (t[c] = this.createTransformElement(e[c], r)), m = t[c].transform, s.push(m)) : e[c].ty === "sh" || e[c].ty === "rc" || e[c].ty === "el" || e[c].ty === "sr" ? (g || (t[c] = this.createShapeElement(e[c], s, i)), this.setElementStyles(t[c])) : e[c].ty === "tm" || e[c].ty === "rd" || e[c].ty === "ms" || e[c].ty === "pb" || e[c].ty === "zz" || e[c].ty === "op" ? (g ? (h = t[c], h.closed = !1) : (h = mt.getModifier(e[c].ty), h.init(this, e[c]), t[c] = h, this.shapeModifiers.push(h)), p.push(h)) : e[c].ty === "rp" && (g ? (h = t[c], h.closed = !0) : (h = mt.getModifier(e[c].ty), t[c] = h, h.init(this, e, c, t), this.shapeModifiers.push(h), o = !1), p.push(h));
3740
+ this.addProcessedElement(e[c], c + 1);
3741
+ }
3742
+ for (l = f.length, c = 0; c < l; c += 1) f[c].closed = !0;
3743
+ for (l = p.length, c = 0; c < l; c += 1) p[c].closed = !0;
3744
+ }, Z.prototype.renderInnerContent = function() {
3745
+ this.renderModifiers();
3746
+ var e, t = this.stylesList.length;
3747
+ for (e = 0; e < t; e += 1) this.stylesList[e].reset();
3748
+ for (this.renderShape(), e = 0; e < t; e += 1) (this.stylesList[e]._mdf || this._isFirstFrame) && (this.stylesList[e].msElem && (this.stylesList[e].msElem.setAttribute("d", this.stylesList[e].d), this.stylesList[e].d = "M0 0" + this.stylesList[e].d), this.stylesList[e].pElem.setAttribute("d", this.stylesList[e].d || "M0 0"));
3749
+ }, Z.prototype.renderShape = function() {
3750
+ var e, t = this.animatedContents.length, n;
3751
+ for (e = 0; e < t; e += 1) n = this.animatedContents[e], (this._isFirstFrame || n.element._isAnimated) && n.data !== !0 && n.fn(n.data, n.element, this._isFirstFrame);
3752
+ }, Z.prototype.destroy = function() {
3753
+ this.destroyBaseElement(), this.shapesData = null, this.itemsData = null;
3754
+ };
3755
+ function Kn(e, t, n, r, i, a) {
3756
+ this.o = e, this.sw = t, this.sc = n, this.fc = r, this.m = i, this.p = a, this._mdf = {
3757
+ o: !0,
3758
+ sw: !!t,
3759
+ sc: !!n,
3760
+ fc: !!r,
3761
+ m: !0,
3762
+ p: !0
3763
+ };
3764
+ }
3765
+ Kn.prototype.update = function(e, t, n, r, i, a) {
3766
+ this._mdf.o = !1, this._mdf.sw = !1, this._mdf.sc = !1, this._mdf.fc = !1, this._mdf.m = !1, this._mdf.p = !1;
3767
+ var o = !1;
3768
+ return this.o !== e && (this.o = e, this._mdf.o = !0, o = !0), this.sw !== t && (this.sw = t, this._mdf.sw = !0, o = !0), this.sc !== n && (this.sc = n, this._mdf.sc = !0, o = !0), this.fc !== r && (this.fc = r, this._mdf.fc = !0, o = !0), this.m !== i && (this.m = i, this._mdf.m = !0, o = !0), a.length && (this.p[0] !== a[0] || this.p[1] !== a[1] || this.p[4] !== a[4] || this.p[5] !== a[5] || this.p[12] !== a[12] || this.p[13] !== a[13]) && (this.p = a, this._mdf.p = !0, o = !0), o;
3769
+ };
3770
+ function Q(e, t) {
3771
+ this._frameId = a, this.pv = "", this.v = "", this.kf = !1, this._isFirstFrame = !0, this._mdf = !1, t.d && t.d.sid && (t.d = e.globalData.slotManager.getProp(t.d)), this.data = t, this.elem = e, this.comp = this.elem.comp, this.keysIndex = 0, this.canResize = !1, this.minimumFontSize = 1, this.effectsSequence = [], this.currentData = {
3772
+ ascent: 0,
3773
+ boxWidth: this.defaultBoxWidth,
3774
+ f: "",
3775
+ fStyle: "",
3776
+ fWeight: "",
3777
+ fc: "",
3778
+ j: "",
3779
+ justifyOffset: "",
3780
+ l: [],
3781
+ lh: 0,
3782
+ lineWidths: [],
3783
+ ls: "",
3784
+ of: "",
3785
+ s: "",
3786
+ sc: "",
3787
+ sw: 0,
3788
+ t: 0,
3789
+ tr: 0,
3790
+ sz: 0,
3791
+ ps: null,
3792
+ fillColorAnim: !1,
3793
+ strokeColorAnim: !1,
3794
+ strokeWidthAnim: !1,
3795
+ yOffset: 0,
3796
+ finalSize: 0,
3797
+ finalText: [],
3798
+ finalLineHeight: 0,
3799
+ __complete: !1
3800
+ }, this.copyData(this.currentData, this.data.d.k[0].s), this.searchProperty() || this.completeTextData(this.currentData);
3801
+ }
3802
+ Q.prototype.defaultBoxWidth = [0, 0], Q.prototype.copyData = function(e, t) {
3803
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
3804
+ return e;
3805
+ }, Q.prototype.setCurrentData = function(e) {
3806
+ e.__complete || this.completeTextData(e), this.currentData = e, this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth, this._mdf = !0;
3807
+ }, Q.prototype.searchProperty = function() {
3808
+ return this.searchKeyframes();
3809
+ }, Q.prototype.searchKeyframes = function() {
3810
+ return this.kf = this.data.d.k.length > 1, this.kf && this.addEffect(this.getKeyframeValue.bind(this)), this.kf;
3811
+ }, Q.prototype.addEffect = function(e) {
3812
+ this.effectsSequence.push(e), this.elem.addDynamicProperty(this);
3813
+ }, Q.prototype.getValue = function(e) {
3814
+ if (!((this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length) && !e)) {
3815
+ this.currentData.t = this.data.d.k[this.keysIndex].s.t;
3816
+ var t = this.currentData, n = this.keysIndex;
3817
+ if (this.lock) {
3818
+ this.setCurrentData(this.currentData);
3819
+ return;
3820
+ }
3821
+ this.lock = !0, this._mdf = !1;
3822
+ var r, i = this.effectsSequence.length, a = e || this.data.d.k[this.keysIndex].s;
3823
+ for (r = 0; r < i; r += 1) a = n === this.keysIndex ? this.effectsSequence[r](this.currentData, a.t) : this.effectsSequence[r](a, a.t);
3824
+ t !== a && this.setCurrentData(a), this.v = this.currentData, this.pv = this.v, this.lock = !1, this.frameId = this.elem.globalData.frameId;
3825
+ }
3826
+ }, Q.prototype.getKeyframeValue = function() {
3827
+ for (var e = this.data.d.k, t = this.elem.comp.renderedFrame, n = 0, r = e.length; n <= r - 1 && !(n === r - 1 || e[n + 1].t > t);) n += 1;
3828
+ return this.keysIndex !== n && (this.keysIndex = n), this.data.d.k[this.keysIndex].s;
3829
+ }, Q.prototype.buildFinalText = function(e) {
3830
+ for (var t = [], n = 0, r = e.length, i, a, o = !1, s = !1, c = ""; n < r;) o = s, s = !1, i = e.charCodeAt(n), c = e.charAt(n), Qt.isCombinedCharacter(i) ? o = !0 : i >= 55296 && i <= 56319 ? Qt.isRegionalFlag(e, n) ? c = e.substr(n, 14) : (a = e.charCodeAt(n + 1), a >= 56320 && a <= 57343 && (Qt.isModifier(i, a) ? (c = e.substr(n, 2), o = !0) : c = Qt.isFlagEmoji(e.substr(n, 4)) ? e.substr(n, 4) : e.substr(n, 2))) : i > 56319 ? (a = e.charCodeAt(n + 1), Qt.isVariationSelector(i) && (o = !0)) : Qt.isZeroWidthJoiner(i) && (o = !0, s = !0), o ? (t[t.length - 1] += c, o = !1) : t.push(c), n += c.length;
3831
+ return t;
3832
+ }, Q.prototype.completeTextData = function(e) {
3833
+ e.__complete = !0;
3834
+ var t = this.elem.globalData.fontManager, n = this.data, r = [], i, a, o, s = 0, c, l = n.m.g, u = 0, d = 0, f = 0, p = [], m = 0, h = 0, g, _, v = t.getFontByName(e.f), y, b = 0, x = Zt(v);
3835
+ e.fWeight = x.weight, e.fStyle = x.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
3836
+ var S = e.tr / 1e3 * e.finalSize, C;
3837
+ if (e.sz) for (var w = !0, T = e.sz[0], E = e.sz[1], D, O; w;) {
3838
+ O = this.buildFinalText(e.t), D = 0, m = 0, a = O.length, S = e.tr / 1e3 * e.finalSize;
3839
+ var k = -1;
3840
+ for (i = 0; i < a; i += 1) C = O[i].charCodeAt(0), o = !1, O[i] === " " ? k = i : (C === 13 || C === 3) && (m = 0, o = !0, D += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(O[i], v.fStyle, v.fFamily), b = o ? 0 : y.w * e.finalSize / 100) : b = t.measureText(O[i], e.f, e.finalSize), m + b > T && O[i] !== " " ? (k === -1 ? a += 1 : i = k, D += e.finalLineHeight || e.finalSize * 1.2, O.splice(i, +(k === i), "\r"), k = -1, m = 0) : (m += b, m += S);
3841
+ D += v.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && E < D ? (--e.finalSize, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = O, a = e.finalText.length, w = !1);
3842
+ }
3843
+ m = -S, b = 0;
3844
+ var A = 0, j;
3845
+ for (i = 0; i < a; i += 1) if (o = !1, j = e.finalText[i], C = j.charCodeAt(0), C === 13 || C === 3 ? (A = 0, p.push(m), h = m > h ? m : h, m = -2 * S, c = "", o = !0, f += 1) : c = j, t.chars ? (y = t.getCharData(j, v.fStyle, t.getFontByName(e.f).fFamily), b = o ? 0 : y.w * e.finalSize / 100) : b = t.measureText(c, e.f, e.finalSize), j === " " ? A += b + S : (m += b + S + A, A = 0), r.push({
3846
+ l: b,
3847
+ an: b,
3848
+ add: u,
3849
+ n: o,
3850
+ anIndexes: [],
3851
+ val: c,
3852
+ line: f,
3853
+ animatorJustifyOffset: 0
3854
+ }), l == 2) {
3855
+ if (u += b, c === "" || c === " " || i === a - 1) {
3856
+ for ((c === "" || c === " ") && (u -= b); d <= i;) r[d].an = u, r[d].ind = s, r[d].extra = b, d += 1;
3857
+ s += 1, u = 0;
3858
+ }
3859
+ } else if (l == 3) {
3860
+ if (u += b, c === "" || i === a - 1) {
3861
+ for (c === "" && (u -= b); d <= i;) r[d].an = u, r[d].ind = s, r[d].extra = b, d += 1;
3862
+ u = 0, s += 1;
3863
+ }
3864
+ } else r[s].ind = s, r[s].extra = 0, s += 1;
3865
+ if (e.l = r, h = m > h ? m : h, p.push(m), e.sz) e.boxWidth = e.sz[0], e.justifyOffset = 0;
3866
+ else switch (e.boxWidth = h, e.j) {
3867
+ case 1:
3868
+ e.justifyOffset = -e.boxWidth;
3869
+ break;
3870
+ case 2:
3871
+ e.justifyOffset = -e.boxWidth / 2;
3872
+ break;
3873
+ default: e.justifyOffset = 0;
3874
+ }
3875
+ e.lineWidths = p;
3876
+ var M = n.a, N, P;
3877
+ _ = M.length;
3878
+ var F, ee, I = [];
3879
+ for (g = 0; g < _; g += 1) {
3880
+ for (N = M[g], N.a.sc && (e.strokeColorAnim = !0), N.a.sw && (e.strokeWidthAnim = !0), (N.a.fc || N.a.fh || N.a.fs || N.a.fb) && (e.fillColorAnim = !0), ee = 0, F = N.s.b, i = 0; i < a; i += 1) P = r[i], P.anIndexes[g] = ee, (F == 1 && P.val !== "" || F == 2 && P.val !== "" && P.val !== " " || F == 3 && (P.n || P.val == " " || i == a - 1) || F == 4 && (P.n || i == a - 1)) && (N.s.rn === 1 && I.push(ee), ee += 1);
3881
+ n.a[g].s.totalChars = ee;
3882
+ var te = -1, ne;
3883
+ if (N.s.rn === 1) for (i = 0; i < a; i += 1) P = r[i], te != P.anIndexes[g] && (te = P.anIndexes[g], ne = I.splice(Math.floor(Math.random() * I.length), 1)[0]), P.anIndexes[g] = ne;
3884
+ }
3885
+ e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = v.ascent * e.finalSize / 100;
3886
+ }, Q.prototype.updateDocumentData = function(e, t) {
3887
+ t = t === void 0 ? this.keysIndex : t;
3888
+ var n = this.copyData({}, this.data.d.k[t].s);
3889
+ n = this.copyData(n, e), this.data.d.k[t].s = n, this.recalculate(t), this.setCurrentData(n), this.elem.addDynamicProperty(this);
3890
+ }, Q.prototype.recalculate = function(e) {
3891
+ var t = this.data.d.k[e].s;
3892
+ t.__complete = !1, this.keysIndex = 0, this._isFirstFrame = !0, this.getValue(t);
3893
+ }, Q.prototype.canResizeFont = function(e) {
3894
+ this.canResize = e, this.recalculate(this.keysIndex), this.elem.addDynamicProperty(this);
3895
+ }, Q.prototype.setMinimumFontSize = function(e) {
3896
+ this.minimumFontSize = Math.floor(e) || 1, this.recalculate(this.keysIndex), this.elem.addDynamicProperty(this);
3897
+ };
3898
+ var qn = function() {
3899
+ var e = Math.max, t = Math.min, n = Math.floor;
3900
+ function r(e, t) {
3901
+ this._currentTextLength = -1, this.k = !1, this.data = t, this.elem = e, this.comp = e.comp, this.finalS = 0, this.finalE = 0, this.initDynamicPropertyContainer(e), this.s = H.getProp(e, t.s || { k: 0 }, 0, 0, this), "e" in t ? this.e = H.getProp(e, t.e, 0, 0, this) : this.e = { v: 100 }, this.o = H.getProp(e, t.o || { k: 0 }, 0, 0, this), this.xe = H.getProp(e, t.xe || { k: 0 }, 0, 0, this), this.ne = H.getProp(e, t.ne || { k: 0 }, 0, 0, this), this.sm = H.getProp(e, t.sm || { k: 100 }, 0, 0, this), this.a = H.getProp(e, t.a, 0, .01, this), this.dynamicProperties.length || this.getValue();
3902
+ }
3903
+ r.prototype = {
3904
+ getMult: function(r) {
3905
+ this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
3906
+ var i = 0, a = 0, o = 1, s = 1;
3907
+ this.ne.v > 0 ? i = this.ne.v / 100 : a = -this.ne.v / 100, this.xe.v > 0 ? o = 1 - this.xe.v / 100 : s = 1 + this.xe.v / 100;
3908
+ var c = Ce.getBezierEasing(i, a, o, s).get, l = 0, u = this.finalS, d = this.finalE, f = this.data.sh;
3909
+ if (f === 2) l = d === u ? +(r >= d) : e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)), l = c(l);
3910
+ else if (f === 3) l = d === u ? r >= d ? 0 : 1 : 1 - e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)), l = c(l);
3911
+ else if (f === 4) d === u ? l = 0 : (l = e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)), l < .5 ? l *= 2 : l = 1 - 2 * (l - .5)), l = c(l);
3912
+ else if (f === 5) {
3913
+ if (d === u) l = 0;
3914
+ else {
3915
+ var p = d - u;
3916
+ r = t(e(0, r + .5 - u), d - u);
3917
+ var m = -p / 2 + r, h = p / 2;
3918
+ l = Math.sqrt(1 - m * m / (h * h));
3919
+ }
3920
+ l = c(l);
3921
+ } else f === 6 ? (d === u ? l = 0 : (r = t(e(0, r + .5 - u), d - u), l = (1 + Math.cos(Math.PI + Math.PI * 2 * r / (d - u))) / 2), l = c(l)) : (r >= n(u) && (l = r - u < 0 ? e(0, t(t(d, 1) - (u - r), 1)) : e(0, t(d - r, 1))), l = c(l));
3922
+ if (this.sm.v !== 100) {
3923
+ var g = this.sm.v * .01;
3924
+ g === 0 && (g = 1e-8);
3925
+ var _ = .5 - g * .5;
3926
+ l < _ ? l = 0 : (l = (l - _) / g, l > 1 && (l = 1));
3927
+ }
3928
+ return l * this.a.v;
3929
+ },
3930
+ getValue: function(e) {
3931
+ this.iterateDynamicProperties(), this._mdf = e || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, e && this.data.r === 2 && (this.e.v = this._currentTextLength);
3932
+ var t = this.data.r === 2 ? 1 : 100 / this.data.totalChars, n = this.o.v / t, r = this.s.v / t + n, i = this.e.v / t + n;
3933
+ if (r > i) {
3934
+ var a = r;
3935
+ r = i, i = a;
3936
+ }
3937
+ this.finalS = r, this.finalE = i;
3938
+ }
3939
+ }, d([U], r);
3940
+ function i(e, t, n) {
3941
+ return new r(e, t, n);
3942
+ }
3943
+ return { getTextSelectorProp: i };
3944
+ }();
3945
+ function Jn(e, t, n) {
3946
+ var r = { propType: !1 }, i = H.getProp, a = t.a;
3947
+ this.a = {
3948
+ r: a.r ? i(e, a.r, 0, O, n) : r,
3949
+ rx: a.rx ? i(e, a.rx, 0, O, n) : r,
3950
+ ry: a.ry ? i(e, a.ry, 0, O, n) : r,
3951
+ sk: a.sk ? i(e, a.sk, 0, O, n) : r,
3952
+ sa: a.sa ? i(e, a.sa, 0, O, n) : r,
3953
+ s: a.s ? i(e, a.s, 1, .01, n) : r,
3954
+ a: a.a ? i(e, a.a, 1, 0, n) : r,
3955
+ o: a.o ? i(e, a.o, 0, .01, n) : r,
3956
+ p: a.p ? i(e, a.p, 1, 0, n) : r,
3957
+ sw: a.sw ? i(e, a.sw, 0, 0, n) : r,
3958
+ sc: a.sc ? i(e, a.sc, 1, 0, n) : r,
3959
+ fc: a.fc ? i(e, a.fc, 1, 0, n) : r,
3960
+ fh: a.fh ? i(e, a.fh, 0, 0, n) : r,
3961
+ fs: a.fs ? i(e, a.fs, 0, .01, n) : r,
3962
+ fb: a.fb ? i(e, a.fb, 0, .01, n) : r,
3963
+ t: a.t ? i(e, a.t, 0, 0, n) : r
3964
+ }, this.s = qn.getTextSelectorProp(e, t.s, n), this.s.t = t.s.t;
3965
+ }
3966
+ function Yn(e, t, n) {
3967
+ this._isFirstFrame = !0, this._hasMaskedPath = !1, this._frameId = -1, this._textData = e, this._renderType = t, this._elem = n, this._animatorsData = h(this._textData.a.length), this._pathData = {}, this._moreOptions = { alignment: {} }, this.renderedLetters = [], this.lettersChangedFlag = !1, this.initDynamicPropertyContainer(n);
3968
+ }
3969
+ Yn.prototype.searchProperties = function() {
3970
+ var e, t = this._textData.a.length, n, r = H.getProp;
3971
+ for (e = 0; e < t; e += 1) n = this._textData.a[e], this._animatorsData[e] = new Jn(this._elem, n, this);
3972
+ this._textData.p && "m" in this._textData.p ? (this._pathData = {
3973
+ a: r(this._elem, this._textData.p.a, 0, 0, this),
3974
+ f: r(this._elem, this._textData.p.f, 0, 0, this),
3975
+ l: r(this._elem, this._textData.p.l, 0, 0, this),
3976
+ r: r(this._elem, this._textData.p.r, 0, 0, this),
3977
+ p: r(this._elem, this._textData.p.p, 0, 0, this),
3978
+ m: this._elem.maskManager.getMaskProperty(this._textData.p.m)
3979
+ }, this._hasMaskedPath = !0) : this._hasMaskedPath = !1, this._moreOptions.alignment = r(this._elem, this._textData.m.a, 1, 0, this);
3980
+ }, Yn.prototype.getMeasures = function(e, t) {
3981
+ if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
3982
+ this._isFirstFrame = !1;
3983
+ var n = this._moreOptions.alignment.v, r = this._animatorsData, i = this._textData, a = this.mHelper, o = this._renderType, s = this.renderedLetters.length, c, l, u, d, f = e.l, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D;
3984
+ if (this._hasMaskedPath) {
3985
+ if (D = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
3986
+ var O = D.v;
3987
+ this._pathData.r.v && (O = O.reverse()), p = {
3988
+ tLength: 0,
3989
+ segments: []
3990
+ }, d = O._length - 1;
3991
+ var k;
3992
+ for (w = 0, u = 0; u < d; u += 1) k = ke.buildBezierData(O.v[u], O.v[u + 1], [O.o[u][0] - O.v[u][0], O.o[u][1] - O.v[u][1]], [O.i[u + 1][0] - O.v[u + 1][0], O.i[u + 1][1] - O.v[u + 1][1]]), p.tLength += k.segmentLength, p.segments.push(k), w += k.segmentLength;
3993
+ u = d, D.v.c && (k = ke.buildBezierData(O.v[u], O.v[0], [O.o[u][0] - O.v[u][0], O.o[u][1] - O.v[u][1]], [O.i[0][0] - O.v[0][0], O.i[0][1] - O.v[0][1]]), p.tLength += k.segmentLength, p.segments.push(k), w += k.segmentLength), this._pathData.pi = p;
3994
+ }
3995
+ if (p = this._pathData.pi, m = this._pathData.f.v, y = 0, v = 1, g = 0, _ = !0, S = p.segments, m < 0 && D.v.c) for (p.tLength < Math.abs(m) && (m = -Math.abs(m) % p.tLength), y = S.length - 1, x = S[y].points, v = x.length - 1; m < 0;) m += x[v].partialLength, --v, v < 0 && (--y, x = S[y].points, v = x.length - 1);
3996
+ x = S[y].points, b = x[v - 1], h = x[v], C = h.partialLength;
3997
+ }
3998
+ d = f.length, c = 0, l = 0;
3999
+ var A = e.finalSize * 1.2 * .714, j = !0, M, N, P, F = r.length, ee, I, te = -1, ne, oe, se, ce = m, le = y, ue = v, de = -1, fe, pe, L, R, z, me, he, ge, _e = "", ve = this.defaultPropsArray, ye;
4000
+ if (e.j === 2 || e.j === 1) {
4001
+ var be = 0, xe = 0, Se = e.j === 2 ? -.5 : -1, B = 0, V = !0;
4002
+ for (u = 0; u < d; u += 1) if (f[u].n) {
4003
+ for (be && (be += xe); B < u;) f[B].animatorJustifyOffset = be, B += 1;
4004
+ be = 0, V = !0;
4005
+ } else {
4006
+ for (P = 0; P < F; P += 1) M = r[P].a, M.t.propType && (V && e.j === 2 && (xe += M.t.v * Se), N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? be += M.t.v * I[0] * Se : be += M.t.v * I * Se);
4007
+ V = !1;
4008
+ }
4009
+ for (be && (be += xe); B < u;) f[B].animatorJustifyOffset = be, B += 1;
4010
+ }
4011
+ for (u = 0; u < d; u += 1) {
4012
+ if (a.reset(), fe = 1, f[u].n) c = 0, l += e.yOffset, l += +!!j, m = ce, j = !1, this._hasMaskedPath && (y = le, v = ue, x = S[y].points, b = x[v - 1], h = x[v], C = h.partialLength, g = 0), _e = "", ge = "", me = "", ye = "", ve = this.defaultPropsArray;
4013
+ else {
4014
+ if (this._hasMaskedPath) {
4015
+ if (de !== f[u].line) {
4016
+ switch (e.j) {
4017
+ case 1:
4018
+ m += w - e.lineWidths[f[u].line];
4019
+ break;
4020
+ case 2:
4021
+ m += (w - e.lineWidths[f[u].line]) / 2;
4022
+ break;
4023
+ default: break;
4024
+ }
4025
+ de = f[u].line;
4026
+ }
4027
+ te !== f[u].ind && (f[te] && (m += f[te].extra), m += f[u].an / 2, te = f[u].ind), m += n[0] * f[u].an * .005;
4028
+ var Ce = 0;
4029
+ for (P = 0; P < F; P += 1) M = r[P].a, M.p.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? Ce += M.p.v[0] * I[0] : Ce += M.p.v[0] * I), M.a.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? Ce += M.a.v[0] * I[0] : Ce += M.a.v[0] * I);
4030
+ for (_ = !0, this._pathData.a.v && (m = f[0].an * .5 + (w - this._pathData.f.v - f[0].an * .5 - f[f.length - 1].an * .5) * te / (d - 1), m += this._pathData.f.v); _;) g + C >= m + Ce || !x ? (T = (m + Ce - g) / h.partialLength, oe = b.point[0] + (h.point[0] - b.point[0]) * T, se = b.point[1] + (h.point[1] - b.point[1]) * T, a.translate(-n[0] * f[u].an * .005, -(n[1] * A) * .01), _ = !1) : x && (g += h.partialLength, v += 1, v >= x.length && (v = 0, y += 1, S[y] ? x = S[y].points : D.v.c ? (v = 0, y = 0, x = S[y].points) : (g -= h.partialLength, x = null)), x && (b = h, h = x[v], C = h.partialLength));
4031
+ ne = f[u].an / 2 - f[u].add, a.translate(-ne, 0, 0);
4032
+ } else ne = f[u].an / 2 - f[u].add, a.translate(-ne, 0, 0), a.translate(-n[0] * f[u].an * .005, -n[1] * A * .01, 0);
4033
+ for (P = 0; P < F; P += 1) M = r[P].a, M.t.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? I.length ? m += M.t.v * I[0] : m += M.t.v * I : I.length ? c += M.t.v * I[0] : c += M.t.v * I));
4034
+ for (e.strokeWidthAnim && (L = e.sw || 0), e.strokeColorAnim && (pe = e.sc ? [
4035
+ e.sc[0],
4036
+ e.sc[1],
4037
+ e.sc[2]
4038
+ ] : [
4039
+ 0,
4040
+ 0,
4041
+ 0
4042
+ ]), e.fillColorAnim && e.fc && (R = [
4043
+ e.fc[0],
4044
+ e.fc[1],
4045
+ e.fc[2]
4046
+ ]), P = 0; P < F; P += 1) M = r[P].a, M.a.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? a.translate(-M.a.v[0] * I[0], -M.a.v[1] * I[1], M.a.v[2] * I[2]) : a.translate(-M.a.v[0] * I, -M.a.v[1] * I, M.a.v[2] * I));
4047
+ for (P = 0; P < F; P += 1) M = r[P].a, M.s.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? a.scale(1 + (M.s.v[0] - 1) * I[0], 1 + (M.s.v[1] - 1) * I[1], 1) : a.scale(1 + (M.s.v[0] - 1) * I, 1 + (M.s.v[1] - 1) * I, 1));
4048
+ for (P = 0; P < F; P += 1) {
4049
+ if (M = r[P].a, N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), M.sk.propType && (I.length ? a.skewFromAxis(-M.sk.v * I[0], M.sa.v * I[1]) : a.skewFromAxis(-M.sk.v * I, M.sa.v * I)), M.r.propType && (I.length ? a.rotateZ(-M.r.v * I[2]) : a.rotateZ(-M.r.v * I)), M.ry.propType && (I.length ? a.rotateY(M.ry.v * I[1]) : a.rotateY(M.ry.v * I)), M.rx.propType && (I.length ? a.rotateX(M.rx.v * I[0]) : a.rotateX(M.rx.v * I)), M.o.propType && (I.length ? fe += (M.o.v * I[0] - fe) * I[0] : fe += (M.o.v * I - fe) * I), e.strokeWidthAnim && M.sw.propType && (I.length ? L += M.sw.v * I[0] : L += M.sw.v * I), e.strokeColorAnim && M.sc.propType) for (z = 0; z < 3; z += 1) I.length ? pe[z] += (M.sc.v[z] - pe[z]) * I[0] : pe[z] += (M.sc.v[z] - pe[z]) * I;
4050
+ if (e.fillColorAnim && e.fc) {
4051
+ if (M.fc.propType) for (z = 0; z < 3; z += 1) I.length ? R[z] += (M.fc.v[z] - R[z]) * I[0] : R[z] += (M.fc.v[z] - R[z]) * I;
4052
+ M.fh.propType && (R = I.length ? ae(R, M.fh.v * I[0]) : ae(R, M.fh.v * I)), M.fs.propType && (R = I.length ? re(R, M.fs.v * I[0]) : re(R, M.fs.v * I)), M.fb.propType && (R = I.length ? ie(R, M.fb.v * I[0]) : ie(R, M.fb.v * I));
4053
+ }
4054
+ }
4055
+ for (P = 0; P < F; P += 1) M = r[P].a, M.p.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), this._hasMaskedPath ? I.length ? a.translate(0, M.p.v[1] * I[0], -M.p.v[2] * I[1]) : a.translate(0, M.p.v[1] * I, -M.p.v[2] * I) : I.length ? a.translate(M.p.v[0] * I[0], M.p.v[1] * I[1], -M.p.v[2] * I[2]) : a.translate(M.p.v[0] * I, M.p.v[1] * I, -M.p.v[2] * I));
4056
+ if (e.strokeWidthAnim && (me = L < 0 ? 0 : L), e.strokeColorAnim && (he = "rgb(" + Math.round(pe[0] * 255) + "," + Math.round(pe[1] * 255) + "," + Math.round(pe[2] * 255) + ")"), e.fillColorAnim && e.fc && (ge = "rgb(" + Math.round(R[0] * 255) + "," + Math.round(R[1] * 255) + "," + Math.round(R[2] * 255) + ")"), this._hasMaskedPath) {
4057
+ if (a.translate(0, -e.ls), a.translate(0, n[1] * A * .01 + l, 0), this._pathData.p.v) {
4058
+ E = (h.point[1] - b.point[1]) / (h.point[0] - b.point[0]);
4059
+ var we = Math.atan(E) * 180 / Math.PI;
4060
+ h.point[0] < b.point[0] && (we += 180), a.rotate(-we * Math.PI / 180);
4061
+ }
4062
+ a.translate(oe, se, 0), m -= n[0] * f[u].an * .005, f[u + 1] && te !== f[u + 1].ind && (m += f[u].an / 2, m += e.tr * .001 * e.finalSize);
4063
+ } else {
4064
+ switch (a.translate(c, l, 0), e.ps && a.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
4065
+ case 1:
4066
+ a.translate(f[u].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[f[u].line]), 0, 0);
4067
+ break;
4068
+ case 2:
4069
+ a.translate(f[u].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[f[u].line]) / 2, 0, 0);
4070
+ break;
4071
+ default: break;
4072
+ }
4073
+ a.translate(0, -e.ls), a.translate(ne, 0, 0), a.translate(n[0] * f[u].an * .005, n[1] * A * .01, 0), c += f[u].l + e.tr * .001 * e.finalSize;
4074
+ }
4075
+ o === "html" ? _e = a.toCSS() : o === "svg" ? _e = a.to2dCSS() : ve = [
4076
+ a.props[0],
4077
+ a.props[1],
4078
+ a.props[2],
4079
+ a.props[3],
4080
+ a.props[4],
4081
+ a.props[5],
4082
+ a.props[6],
4083
+ a.props[7],
4084
+ a.props[8],
4085
+ a.props[9],
4086
+ a.props[10],
4087
+ a.props[11],
4088
+ a.props[12],
4089
+ a.props[13],
4090
+ a.props[14],
4091
+ a.props[15]
4092
+ ], ye = fe;
4093
+ }
4094
+ s <= u ? (ee = new Kn(ye, me, he, ge, _e, ve), this.renderedLetters.push(ee), s += 1, this.lettersChangedFlag = !0) : (ee = this.renderedLetters[u], this.lettersChangedFlag = ee.update(ye, me, he, ge, _e, ve) || this.lettersChangedFlag);
4095
+ }
4096
+ }
4097
+ }, Yn.prototype.getValue = function() {
4098
+ this._elem.globalData.frameId !== this._frameId && (this._frameId = this._elem.globalData.frameId, this.iterateDynamicProperties());
4099
+ }, Yn.prototype.mHelper = new G(), Yn.prototype.defaultPropsArray = [], d([U], Yn);
4100
+ function Xn() {}
4101
+ Xn.prototype.initElement = function(e, t, n) {
4102
+ this.lettersChangedFlag = !0, this.initFrame(), this.initBaseData(e, t, n), this.textProperty = new Q(this, e.t, this.dynamicProperties), this.textAnimator = new Yn(e.t, this.renderType, this), this.initTransform(e, t, n), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide(), this.textAnimator.searchProperties(this.dynamicProperties);
4103
+ }, Xn.prototype.prepareFrame = function(e) {
4104
+ this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange);
4105
+ }, Xn.prototype.createPathShape = function(e, t) {
4106
+ var n, r = t.length, i, a = "";
4107
+ for (n = 0; n < r; n += 1) t[n].ty === "sh" && (i = t[n].ks.k, a += Wn(i, i.i.length, !0, e));
4108
+ return a;
4109
+ }, Xn.prototype.updateDocumentData = function(e, t) {
4110
+ this.textProperty.updateDocumentData(e, t);
4111
+ }, Xn.prototype.canResizeFont = function(e) {
4112
+ this.textProperty.canResizeFont(e);
4113
+ }, Xn.prototype.setMinimumFontSize = function(e) {
4114
+ this.textProperty.setMinimumFontSize(e);
4115
+ }, Xn.prototype.applyTextPropertiesToMatrix = function(e, t, n, r, i) {
4116
+ switch (e.ps && t.translate(e.ps[0], e.ps[1] + e.ascent, 0), t.translate(0, -e.ls, 0), e.j) {
4117
+ case 1:
4118
+ t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]), 0, 0);
4119
+ break;
4120
+ case 2:
4121
+ t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]) / 2, 0, 0);
4122
+ break;
4123
+ default: break;
4124
+ }
4125
+ t.translate(r, i, 0);
4126
+ }, Xn.prototype.buildColor = function(e) {
4127
+ return "rgb(" + Math.round(e[0] * 255) + "," + Math.round(e[1] * 255) + "," + Math.round(e[2] * 255) + ")";
4128
+ }, Xn.prototype.emptyProp = new Kn(), Xn.prototype.destroy = function() {}, Xn.prototype.validateText = function() {
4129
+ (this.textProperty._mdf || this.textProperty._isFirstFrame) && (this.buildNewText(), this.textProperty._isFirstFrame = !1, this.textProperty._mdf = !1);
4130
+ };
4131
+ var Zn = { shapes: [] };
4132
+ function Qn(e, t, n) {
4133
+ this.textSpans = [], this.renderType = "svg", this.initElement(e, t, n);
4134
+ }
4135
+ d([
4136
+ mn,
4137
+ vn,
4138
+ Tn,
4139
+ En,
4140
+ hn,
4141
+ Dn,
4142
+ Xn
4143
+ ], Qn), Qn.prototype.createContent = function() {
4144
+ this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = L("text"));
4145
+ }, Qn.prototype.buildTextContents = function(e) {
4146
+ for (var t = 0, n = e.length, r = [], i = ""; t < n;) e[t] === "\r" || e[t] === "" ? (r.push(i), i = "") : i += e[t], t += 1;
4147
+ return r.push(i), r;
4148
+ }, Qn.prototype.buildShapeData = function(e, t) {
4149
+ if (e.shapes && e.shapes.length) {
4150
+ var n = e.shapes[0];
4151
+ if (n.it) {
4152
+ var r = n.it[n.it.length - 1];
4153
+ r.s && (r.s.k[0] = t, r.s.k[1] = t);
4154
+ }
4155
+ }
4156
+ return e;
4157
+ }, Qn.prototype.buildNewText = function() {
4158
+ this.addDynamicProperty(this);
4159
+ var e, t, n = this.textProperty.currentData;
4160
+ this.renderedLetters = h(n ? n.l.length : 0), n.fc ? this.layerElement.setAttribute("fill", this.buildColor(n.fc)) : this.layerElement.setAttribute("fill", "rgba(0,0,0,0)"), n.sc && (this.layerElement.setAttribute("stroke", this.buildColor(n.sc)), this.layerElement.setAttribute("stroke-width", n.sw)), this.layerElement.setAttribute("font-size", n.finalSize);
4161
+ var r = this.globalData.fontManager.getFontByName(n.f);
4162
+ if (r.fClass) this.layerElement.setAttribute("class", r.fClass);
4163
+ else {
4164
+ this.layerElement.setAttribute("font-family", r.fFamily);
4165
+ var i = n.fWeight, a = n.fStyle;
4166
+ this.layerElement.setAttribute("font-style", a), this.layerElement.setAttribute("font-weight", i);
4167
+ }
4168
+ this.layerElement.setAttribute("aria-label", n.t);
4169
+ var o = n.l || [], s = !!this.globalData.fontManager.chars;
4170
+ t = o.length;
4171
+ var c, l = this.mHelper, u = "", d = this.data.singleShape, f = 0, p = 0, m = !0, g = n.tr * .001 * n.finalSize;
4172
+ if (d && !s && !n.sz) {
4173
+ var _ = this.textContainer, v = "start";
4174
+ switch (n.j) {
4175
+ case 1:
4176
+ v = "end";
4177
+ break;
4178
+ case 2:
4179
+ v = "middle";
4180
+ break;
4181
+ default:
4182
+ v = "start";
4183
+ break;
4184
+ }
4185
+ _.setAttribute("text-anchor", v), _.setAttribute("letter-spacing", g);
4186
+ var y = this.buildTextContents(n.finalText);
4187
+ for (t = y.length, p = n.ps ? n.ps[1] + n.ascent : 0, e = 0; e < t; e += 1) c = this.textSpans[e].span || L("tspan"), c.textContent = y[e], c.setAttribute("x", 0), c.setAttribute("y", p), c.style.display = "inherit", _.appendChild(c), this.textSpans[e] || (this.textSpans[e] = {
4188
+ span: null,
4189
+ glyph: null
4190
+ }), this.textSpans[e].span = c, p += n.finalLineHeight;
4191
+ this.layerElement.appendChild(_);
4192
+ } else {
4193
+ var b = this.textSpans.length, x;
4194
+ for (e = 0; e < t; e += 1) {
4195
+ if (this.textSpans[e] || (this.textSpans[e] = {
4196
+ span: null,
4197
+ childSpan: null,
4198
+ glyph: null
4199
+ }), !s || !d || e === 0) {
4200
+ if (c = b > e ? this.textSpans[e].span : L(s ? "g" : "text"), b <= e) {
4201
+ if (c.setAttribute("stroke-linecap", "butt"), c.setAttribute("stroke-linejoin", "round"), c.setAttribute("stroke-miterlimit", "4"), this.textSpans[e].span = c, s) {
4202
+ var S = L("g");
4203
+ c.appendChild(S), this.textSpans[e].childSpan = S;
4204
+ }
4205
+ this.textSpans[e].span = c, this.layerElement.appendChild(c);
4206
+ }
4207
+ c.style.display = "inherit";
4208
+ }
4209
+ if (l.reset(), d && (o[e].n && (f = -g, p += n.yOffset, p += +!!m, m = !1), this.applyTextPropertiesToMatrix(n, l, o[e].line, f, p), f += o[e].l || 0, f += g), s) {
4210
+ x = this.globalData.fontManager.getCharData(n.finalText[e], r.fStyle, this.globalData.fontManager.getFontByName(n.f).fFamily);
4211
+ var C;
4212
+ if (x.t === 1) C = new nr(x.data, this.globalData, this);
4213
+ else {
4214
+ var w = Zn;
4215
+ x.data && x.data.shapes && (w = this.buildShapeData(x.data, n.finalSize)), C = new Z(w, this.globalData, this);
4216
+ }
4217
+ if (this.textSpans[e].glyph) {
4218
+ var T = this.textSpans[e].glyph;
4219
+ this.textSpans[e].childSpan.removeChild(T.layerElement), T.destroy();
4220
+ }
4221
+ this.textSpans[e].glyph = C, C._debug = !0, C.prepareFrame(0), C.renderFrame(), this.textSpans[e].childSpan.appendChild(C.layerElement), x.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + n.finalSize / 100 + "," + n.finalSize / 100 + ")");
4222
+ } else d && c.setAttribute("transform", "translate(" + l.props[12] + "," + l.props[13] + ")"), c.textContent = o[e].val, c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
4223
+ }
4224
+ d && c && c.setAttribute("d", u);
4225
+ }
4226
+ for (; e < this.textSpans.length;) this.textSpans[e].span.style.display = "none", e += 1;
4227
+ this._sizeChanged = !0;
4228
+ }, Qn.prototype.sourceRectAtTime = function() {
4229
+ if (this.prepareFrame(this.comp.renderedFrame - this.data.st), this.renderInnerContent(), this._sizeChanged) {
4230
+ this._sizeChanged = !1;
4231
+ var e = this.layerElement.getBBox();
4232
+ this.bbox = {
4233
+ top: e.y,
4234
+ left: e.x,
4235
+ width: e.width,
4236
+ height: e.height
4237
+ };
4238
+ }
4239
+ return this.bbox;
4240
+ }, Qn.prototype.getValue = function() {
4241
+ var e, t = this.textSpans.length, n;
4242
+ for (this.renderedFrame = this.comp.renderedFrame, e = 0; e < t; e += 1) n = this.textSpans[e].glyph, n && (n.prepareFrame(this.comp.renderedFrame - this.data.st), n._mdf && (this._mdf = !0));
4243
+ }, Qn.prototype.renderInnerContent = function() {
4244
+ if (this.validateText(), (!this.data.singleShape || this._mdf) && (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), this.lettersChangedFlag || this.textAnimator.lettersChangedFlag)) {
4245
+ this._sizeChanged = !0;
4246
+ var e, t, n = this.textAnimator.renderedLetters, r = this.textProperty.currentData.l;
4247
+ t = r.length;
4248
+ var i, a, o;
4249
+ for (e = 0; e < t; e += 1) r[e].n || (i = n[e], a = this.textSpans[e].span, o = this.textSpans[e].glyph, o && o.renderFrame(), i._mdf.m && a.setAttribute("transform", i.m), i._mdf.o && a.setAttribute("opacity", i.o), i._mdf.sw && a.setAttribute("stroke-width", i.sw), i._mdf.sc && a.setAttribute("stroke", i.sc), i._mdf.fc && a.setAttribute("fill", i.fc));
4250
+ }
4251
+ };
4252
+ function $n(e, t, n) {
4253
+ this.initElement(e, t, n);
4254
+ }
4255
+ d([On], $n), $n.prototype.createContent = function() {
4256
+ var e = L("rect");
4257
+ e.setAttribute("width", this.data.sw), e.setAttribute("height", this.data.sh), e.setAttribute("fill", this.data.sc), this.layerElement.appendChild(e);
4258
+ };
4259
+ function er(e, t, n) {
4260
+ this.initFrame(), this.initBaseData(e, t, n), this.initFrame(), this.initTransform(e, t, n), this.initHierarchy();
4261
+ }
4262
+ er.prototype.prepareFrame = function(e) {
4263
+ this.prepareProperties(e, !0);
4264
+ }, er.prototype.renderFrame = function() {}, er.prototype.getBaseElement = function() {
4265
+ return null;
4266
+ }, er.prototype.destroy = function() {}, er.prototype.sourceRectAtTime = function() {}, er.prototype.hide = function() {}, d([
4267
+ mn,
4268
+ vn,
4269
+ En,
4270
+ hn
4271
+ ], er);
4272
+ function $() {}
4273
+ d([X], $), $.prototype.createNull = function(e) {
4274
+ return new er(e, this.globalData, this);
4275
+ }, $.prototype.createShape = function(e) {
4276
+ return new Z(e, this.globalData, this);
4277
+ }, $.prototype.createText = function(e) {
4278
+ return new Qn(e, this.globalData, this);
4279
+ }, $.prototype.createImage = function(e) {
4280
+ return new On(e, this.globalData, this);
4281
+ }, $.prototype.createSolid = function(e) {
4282
+ return new $n(e, this.globalData, this);
4283
+ }, $.prototype.configAnimation = function(e) {
4284
+ this.svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg"), this.svgElement.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), this.renderConfig.viewBoxSize ? this.svgElement.setAttribute("viewBox", this.renderConfig.viewBoxSize) : this.svgElement.setAttribute("viewBox", "0 0 " + e.w + " " + e.h), this.renderConfig.viewBoxOnly || (this.svgElement.setAttribute("width", e.w), this.svgElement.setAttribute("height", e.h), this.svgElement.style.width = "100%", this.svgElement.style.height = "100%", this.svgElement.style.transform = "translate3d(0,0,0)", this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility), this.renderConfig.width && this.svgElement.setAttribute("width", this.renderConfig.width), this.renderConfig.height && this.svgElement.setAttribute("height", this.renderConfig.height), this.renderConfig.className && this.svgElement.setAttribute("class", this.renderConfig.className), this.renderConfig.id && this.svgElement.setAttribute("id", this.renderConfig.id), this.renderConfig.focusable !== void 0 && this.svgElement.setAttribute("focusable", this.renderConfig.focusable), this.svgElement.setAttribute("preserveAspectRatio", this.renderConfig.preserveAspectRatio), this.animationItem.wrapper.appendChild(this.svgElement);
4285
+ var t = this.globalData.defs;
4286
+ this.setupGlobalData(e, t), this.globalData.progressiveLoad = this.renderConfig.progressiveLoad, this.data = e;
4287
+ var n = L("clipPath"), r = L("rect");
4288
+ r.setAttribute("width", e.w), r.setAttribute("height", e.h), r.setAttribute("x", 0), r.setAttribute("y", 0);
4289
+ var i = I();
4290
+ n.setAttribute("id", i), n.appendChild(r), this.layerElement.setAttribute("clip-path", "url(" + l() + "#" + i + ")"), t.appendChild(n), this.layers = e.layers, this.elements = h(e.layers.length);
4291
+ }, $.prototype.destroy = function() {
4292
+ this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), this.layerElement = null, this.globalData.defs = null;
4293
+ var e, t = this.layers ? this.layers.length : 0;
4294
+ for (e = 0; e < t; e += 1) this.elements[e] && this.elements[e].destroy && this.elements[e].destroy();
4295
+ this.elements.length = 0, this.destroyed = !0, this.animationItem = null;
4296
+ }, $.prototype.updateContainerSize = function() {}, $.prototype.findIndexByInd = function(e) {
4297
+ var t = 0, n = this.layers.length;
4298
+ for (t = 0; t < n; t += 1) if (this.layers[t].ind === e) return t;
4299
+ return -1;
4300
+ }, $.prototype.buildItem = function(e) {
4301
+ var t = this.elements;
4302
+ if (!(t[e] || this.layers[e].ty === 99)) {
4303
+ t[e] = !0;
4304
+ var n = this.createItem(this.layers[e]);
4305
+ if (t[e] = n, le() && (this.layers[e].ty === 0 && this.globalData.projectInterface.registerComposition(n), n.initExpressions()), this.appendElementInPos(n, e), this.layers[e].tt) {
4306
+ var r = "tp" in this.layers[e] ? this.findIndexByInd(this.layers[e].tp) : e - 1;
4307
+ if (r === -1) return;
4308
+ if (!this.elements[r] || this.elements[r] === !0) this.buildItem(r), this.addPendingElement(n);
4309
+ else {
4310
+ var i = t[r].getMatte(this.layers[e].tt);
4311
+ n.setMatte(i);
4312
+ }
4313
+ }
4314
+ }
4315
+ }, $.prototype.checkPendingElements = function() {
4316
+ for (; this.pendingElements.length;) {
4317
+ var e = this.pendingElements.pop();
4318
+ if (e.checkParenting(), e.data.tt) for (var t = 0, n = this.elements.length; t < n;) {
4319
+ if (this.elements[t] === e) {
4320
+ var r = "tp" in e.data ? this.findIndexByInd(e.data.tp) : t - 1, i = this.elements[r].getMatte(this.layers[t].tt);
4321
+ e.setMatte(i);
4322
+ break;
4323
+ }
4324
+ t += 1;
4325
+ }
4326
+ }
4327
+ }, $.prototype.renderFrame = function(e) {
4328
+ if (!(this.renderedFrame === e || this.destroyed)) {
4329
+ e === null ? e = this.renderedFrame : this.renderedFrame = e, this.globalData.frameNum = e, this.globalData.frameId += 1, this.globalData.projectInterface.currentFrame = e, this.globalData._mdf = !1;
4330
+ var t, n = this.layers.length;
4331
+ for (this.completeLayers || this.checkLayers(e), t = n - 1; t >= 0; --t) (this.completeLayers || this.elements[t]) && this.elements[t].prepareFrame(e - this.layers[t].st);
4332
+ if (this.globalData._mdf) for (t = 0; t < n; t += 1) (this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
4333
+ }
4334
+ }, $.prototype.appendElementInPos = function(e, t) {
4335
+ var n = e.getBaseElement();
4336
+ if (n) {
4337
+ for (var r = 0, i; r < t;) this.elements[r] && this.elements[r] !== !0 && this.elements[r].getBaseElement() && (i = this.elements[r].getBaseElement()), r += 1;
4338
+ i ? this.layerElement.insertBefore(n, i) : this.layerElement.appendChild(n);
4339
+ }
4340
+ }, $.prototype.hide = function() {
4341
+ this.layerElement.style.display = "none";
4342
+ }, $.prototype.show = function() {
4343
+ this.layerElement.style.display = "block";
4344
+ };
4345
+ function tr() {}
4346
+ d([
4347
+ mn,
4348
+ vn,
4349
+ En,
4350
+ hn,
4351
+ Dn
4352
+ ], tr), tr.prototype.initElement = function(e, t, n) {
4353
+ this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !t.progressiveLoad) && this.buildAllItems(), this.hide();
4354
+ }, tr.prototype.prepareFrame = function(e) {
4355
+ if (this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), !(!this.isInRange && !this.data.xt)) {
4356
+ if (this.tm._placeholder) this.renderedFrame = e / this.data.sr;
4357
+ else {
4358
+ var t = this.tm.v;
4359
+ t === this.data.op && (t = this.data.op - 1), this.renderedFrame = t;
4360
+ }
4361
+ var n, r = this.elements.length;
4362
+ for (this.completeLayers || this.checkLayers(this.renderedFrame), n = r - 1; n >= 0; --n) (this.completeLayers || this.elements[n]) && (this.elements[n].prepareFrame(this.renderedFrame - this.layers[n].st), this.elements[n]._mdf && (this._mdf = !0));
4363
+ }
4364
+ }, tr.prototype.renderInnerContent = function() {
4365
+ var e, t = this.layers.length;
4366
+ for (e = 0; e < t; e += 1) (this.completeLayers || this.elements[e]) && this.elements[e].renderFrame();
4367
+ }, tr.prototype.setElements = function(e) {
4368
+ this.elements = e;
4369
+ }, tr.prototype.getElements = function() {
4370
+ return this.elements;
4371
+ }, tr.prototype.destroyElements = function() {
4372
+ var e, t = this.layers.length;
4373
+ for (e = 0; e < t; e += 1) this.elements[e] && this.elements[e].destroy();
4374
+ }, tr.prototype.destroy = function() {
4375
+ this.destroyElements(), this.destroyBaseElement();
4376
+ };
4377
+ function nr(e, t, n) {
4378
+ this.layers = e.layers, this.supports3d = !0, this.completeLayers = !1, this.pendingElements = [], this.elements = this.layers ? h(this.layers.length) : [], this.initElement(e, t, n), this.tm = e.tm ? H.getProp(this, e.tm, 0, t.frameRate, this) : { _placeholder: !0 };
4379
+ }
4380
+ d([
4381
+ $,
4382
+ tr,
4383
+ Tn
4384
+ ], nr), nr.prototype.createComp = function(e) {
4385
+ return new nr(e, this.globalData, this);
4386
+ };
4387
+ function rr(e, t) {
4388
+ this.animationItem = e, this.layers = null, this.renderedFrame = -1, this.svgElement = L("svg");
4389
+ var n = "";
4390
+ if (t && t.title) {
4391
+ var r = L("title"), i = I();
4392
+ r.setAttribute("id", i), r.textContent = t.title, this.svgElement.appendChild(r), n += i;
4393
+ }
4394
+ if (t && t.description) {
4395
+ var a = L("desc"), o = I();
4396
+ a.setAttribute("id", o), a.textContent = t.description, this.svgElement.appendChild(a), n += " " + o;
4397
+ }
4398
+ n && this.svgElement.setAttribute("aria-labelledby", n);
4399
+ var s = L("defs");
4400
+ this.svgElement.appendChild(s);
4401
+ var c = L("g");
4402
+ this.svgElement.appendChild(c), this.layerElement = c, this.renderConfig = {
4403
+ preserveAspectRatio: t && t.preserveAspectRatio || "xMidYMid meet",
4404
+ imagePreserveAspectRatio: t && t.imagePreserveAspectRatio || "xMidYMid slice",
4405
+ contentVisibility: t && t.contentVisibility || "visible",
4406
+ progressiveLoad: t && t.progressiveLoad || !1,
4407
+ hideOnTransparent: !(t && t.hideOnTransparent === !1),
4408
+ viewBoxOnly: t && t.viewBoxOnly || !1,
4409
+ viewBoxSize: t && t.viewBoxSize || !1,
4410
+ className: t && t.className || "",
4411
+ id: t && t.id || "",
4412
+ focusable: t && t.focusable,
4413
+ filterSize: {
4414
+ width: t && t.filterSize && t.filterSize.width || "100%",
4415
+ height: t && t.filterSize && t.filterSize.height || "100%",
4416
+ x: t && t.filterSize && t.filterSize.x || "0%",
4417
+ y: t && t.filterSize && t.filterSize.y || "0%"
4418
+ },
4419
+ width: t && t.width,
4420
+ height: t && t.height,
4421
+ runExpressions: !t || t.runExpressions === void 0 || t.runExpressions
4422
+ }, this.globalData = {
4423
+ _mdf: !1,
4424
+ frameNum: -1,
4425
+ defs: s,
4426
+ renderConfig: this.renderConfig
4427
+ }, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
4428
+ }
4429
+ return d([$], rr), rr.prototype.createComp = function(e) {
4430
+ return new nr(e, this.globalData, this);
4431
+ }, ye("svg", rr), mt.registerModifier("tm", ht), mt.registerModifier("pb", gt), mt.registerModifier("rp", vt), mt.registerModifier("rd", yt), mt.registerModifier("zz", Lt), mt.registerModifier("op", Xt), K;
4432
+ }));
4433
+ }));
4434
+ //#endregion
4435
+ export default t();