@empathyco/x-components 6.2.2 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,7 @@
1
- import { onMounted, openBlock, createElementBlock, createElementVNode } from 'vue';
1
+ import { openBlock, createElementBlock, createStaticVNode } from 'vue';
2
+ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
3
+
4
+ const _sfc_main = { };
2
5
 
3
6
  const _hoisted_1 = {
4
7
  id: "e4kx3Cn5VZF1",
@@ -6,2438 +9,15 @@ const _hoisted_1 = {
6
9
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
7
10
  viewBox: "0 0 300 300",
8
11
  "shape-rendering": "geometricPrecision",
9
- "text-rendering": "geometricPrecision",
10
- "project-id": "ed7a482c28644d8f89fe457c7d0d5863",
11
- "export-id": "aa93e86d47c04741a5fda6dcd27a8961",
12
- cached: "false"
12
+ "text-rendering": "geometricPrecision"
13
13
  };
14
14
 
15
- /* eslint-disable eslint-comments/no-unlimited-disable */
16
- /* eslint-disable */
17
-
18
- const _sfc_main = {
19
- __name: 'ai-spinner-icon',
20
- setup(__props) {
21
-
22
- onMounted(() => {
23
- !(function (t, e) {
24
- 'object' == typeof exports && 'undefined' != typeof module
25
- ? (module.exports = e())
26
- : 'function' == typeof __SVGATOR_DEFINE__ && __SVGATOR_DEFINE__.amd
27
- ? __SVGATOR_DEFINE__(e)
28
- : (((t = 'undefined' != typeof globalThis ? globalThis : t || self).__SVGATOR_PLAYER__ =
29
- t.__SVGATOR_PLAYER__ || {}),
30
- (t.__SVGATOR_PLAYER__['91c80d77'] = e()));
31
- })(this, function () {
32
- const t = n(Math.pow(10, -6)),
33
- e = n(Math.pow(10, -2));
34
- function n(t, e = 6) {
35
- return (function (t, e, n) {
36
- if (Number.isInteger(t)) return t
37
- const r = Math.pow(10, e);
38
- return Math[n]((+t + Number.EPSILON) * r) / r
39
- })(t, e, 'round')
40
- }
41
- function r(e, n, r = t) {
42
- return Math.abs(e - n) < r
43
- }
44
- const i = Math.PI / 180;
45
- function s(t) {
46
- return t * i
47
- }
48
- function o(t) {
49
- return t / i
50
- }
51
- function u(t) {
52
- return ('number' != typeof t && (t = Number(t)), isNaN(t) || !isFinite(t) ? 0 : t)
53
- }
54
- let l = { iD: false };
55
- function a(t) {
56
- return `${t}`.replace(/['"]/g, '')
57
- }
58
- function c(t, e = 'px') {
59
- return t.endsWith(e) ? t : `${t}${e}`
60
- }
61
- function f(t = '') {
62
- return l.iD ? t : void 0
63
- }
64
- function h(t) {
65
- const e = [
66
- '^',
67
- '\\s*',
68
- '(matrix\\()',
69
- '(?<a>-?[0-9]*\\.?[0-9]+)',
70
- '\\s*',
71
- ',?',
72
- '\\s*',
73
- '(?<b>-?[0-9]*\\.?[0-9]+)',
74
- '\\s*',
75
- ',?',
76
- '\\s*',
77
- '(?<c>-?[0-9]*\\.?[0-9]+)',
78
- '\\s*',
79
- ',?',
80
- '\\s*',
81
- '(?<d>-?[0-9]*\\.?[0-9]+)',
82
- '\\s*',
83
- ',?',
84
- '\\s*',
85
- '(?<e>-?[0-9]*\\.?[0-9]+)',
86
- '\\s*',
87
- ',?',
88
- '\\s*',
89
- '(?<f>-?[0-9]*\\.?[0-9]+)',
90
- '\\)',
91
- ].join(''),
92
- n = t.match(new RegExp(e, 'i'));
93
- if (n)
94
- return [
95
- u(n.groups.a),
96
- u(n.groups.b),
97
- u(n.groups.c),
98
- u(n.groups.d),
99
- u(n.groups.e),
100
- u(n.groups.f),
101
- ]
102
- }
103
- function d(t, e = 'inline') {
104
- return t && t !== e ? ((t = a(t)) === e ? f(e) : t) : f(e)
105
- }
106
- function g(t, e = '1px') {
107
- if (!t || t === e) return f(e)
108
- if (t.endsWith('px') || t.endsWith('%')) return t
109
- const r = c((t = `${n(u(t), 2)}`));
110
- return r === e ? f(e) : r
111
- }
112
- function p(t, e = 'none') {
113
- if (!t || t === e) return f(e)
114
- if ((t = a(t)) === e) return f(e)
115
- const n = t.match(/url\(#.+?\)/);
116
- return n
117
- ? n[0]
118
- : (function (t) {
119
- const e = ['^', '\\s*', 'url\\(', '#', '(?<maskId>[a-zA-Z0-9\\-_]+)', '\\)'].join(''),
120
- n = t.match(new RegExp(e, 'i'));
121
- if (n) return `url(#${n.groups.maskId})`
122
- })(t)
123
- }
124
- function y(t, e = 'rgb(0, 0, 0)') {
125
- if (!t || t === e) return f(e)
126
- if ((t = a(t)) === e) return f(e)
127
- if (t.startsWith('rgb')) return t
128
- const n = (function (t) {
129
- if ('string' != typeof t || '#' !== t[0]) return t
130
- const e = t.slice(1),
131
- n = e.length;
132
- if (3 !== n && 6 !== n) return t
133
- for (let r = 0; r < n; r++) {
134
- const n = e.charCodeAt(r);
135
- if (!((n >= 48 && n <= 57) || (n >= 65 && n <= 70) || (n >= 97 && n <= 102))) return t
136
- }
137
- if (3 === n)
138
- return `rgb(${parseInt(e[0] + e[0], 16)}, ${parseInt(e[1] + e[1], 16)}, ${parseInt(
139
- e[2] + e[2],
140
- 16,
141
- )})`
142
- return `rgb(${parseInt(e.slice(0, 2), 16)}, ${parseInt(e.slice(2, 4), 16)}, ${parseInt(
143
- e.slice(4, 6),
144
- 16,
145
- )})`
146
- })(t);
147
- return n === e ? f(e) : n
148
- }
149
- function m(t, e = '1') {
150
- return t && t !== e ? ((t = `${n(u(t), 3)}`) === e ? f(e) : t) : f(e)
151
- }
152
- let v = {};
153
- const b = {
154
- fill: 'none',
155
- stroke: 'none',
156
- opacity: '0.01',
157
- transform: 'matrix(0.001 0 0 0.001 -10000 -10000)',
158
- };
159
- function w({ element: t, tagType: e = 'path', property: n = 'd', attributeValue: r }) {
160
- return (
161
- v[r] ||
162
- (v[r] = (function ({
163
- element: t,
164
- tagType: e = 'path',
165
- property: n = 'd',
166
- attributeValue: r,
167
- }) {
168
- const i = t.ownerSVGElement,
169
- s = document.createElementNS(i.namespaceURI, e);
170
- s.setAttributeNS(null, n, r);
171
- for (const t in b) s.setAttributeNS(null, t, b[t]);
172
- i.appendChild(s);
173
- const o = getComputedStyle(s)[n];
174
- return (s.remove(), o)
175
- })({ element: t, tagType: e, property: n, attributeValue: r })),
176
- v[r]
177
- )
178
- }
179
- const x = () => {
180
- v = {};
181
- };
182
- 'object' == typeof window &&
183
- (window.removeEventListener('resize', x), window.addEventListener('resize', x));
184
- const A = {
185
- include: (t, e) => ['path'].includes(e),
186
- formatter: t =>
187
- (function (t, e = '') {
188
- return t && t !== e
189
- ? (t = a(t)) === e
190
- ? f(e)
191
- : t.startsWith('path(')
192
- ? t
193
- : `path('${t}')`
194
- : f(e)
195
- })(t),
196
- },
197
- _ = {
198
- include: (t, e) => ['rect', 'mask'].includes(e),
199
- formatter: (t, e, n) =>
200
- g(
201
- t,
202
- (function (t, e) {
203
- var n;
204
- return (
205
- (null ===
206
- (n = { mask: { x: '-150%', y: '-150%', width: '400%', height: '400%' } }[e]) ||
207
- void 0 === n
208
- ? void 0
209
- : n[t]) || (['x', 'y'].includes(t) ? '0px' : '100%')
210
- )
211
- })(e, n),
212
- ),
213
- },
214
- k = Object.freeze({
215
- d: A,
216
- display: t => d(t),
217
- height: _,
218
- fill: t => y(t),
219
- 'fill-opacity': t => m(t),
220
- filter: t => d(t, 'none'),
221
- mask: t => p(t),
222
- opacity: t => m(t),
223
- stroke: t => y(t, 'none'),
224
- 'stroke-opacity': t => m(t),
225
- 'stroke-width': t => g(t),
226
- transform: t =>
227
- (function (t, e = 'none') {
228
- if (!t || t === e) return f(e)
229
- const n = h(t);
230
- return n ? `matrix(${n.join(', ')})` : t
231
- })(t),
232
- 'transform-origin': t =>
233
- (function (t, e = '0px 0px') {
234
- if (!t || t === e) return f(e)
235
- const n = [
236
- '^',
237
- '\\s*',
238
- '(?<x>[0-9]+)',
239
- '(px)?',
240
- '\\s*',
241
- ',',
242
- '\\s*',
243
- '(?<y>[0-9]+)',
244
- '(px)?',
245
- ].join(''),
246
- r = t.match(new RegExp(n, 'i'));
247
- if (!r) return t
248
- let i = `${u(r.groups.x)}`;
249
- i = c(i);
250
- let s = `${u(r.groups.y)}`;
251
- s = c(s);
252
- const o = `${i} ${s}`;
253
- return o === e ? f(e) : o
254
- })(t),
255
- visibility: t => d(t, 'visible'),
256
- width: _,
257
- x: _,
258
- y: _,
259
- }),
260
- S = Object.keys(k),
261
- E = e;
262
- function I(t, e) {
263
- return r(((e - t) / (e || 1)) * 100, 0, E)
264
- }
265
- function O(t, e, n, r, i = window) {
266
- var s, o;
267
- const u = t.getAttribute(e),
268
- l = 'transform' === e ? 'none' : '',
269
- a =
270
- ((i.safari ||
271
- (function (t) {
272
- var e, n;
273
- const r = null == t ? void 0 : t.userAgent;
274
- return (
275
- (null == t ||
276
- null === (e = t.vendor) ||
277
- void 0 === e ||
278
- null === (n = e.indexOf) ||
279
- void 0 === n
280
- ? void 0
281
- : n.call(e, 'Apple')) > -1 &&
282
- r &&
283
- -1 === r.indexOf('CriOS') &&
284
- -1 === r.indexOf('FxiOS')
285
- )
286
- })(null == i ? void 0 : i.navigator) ||
287
- i.webkit) &&
288
- !i.chrome &&
289
- (null === (s = r.getPropertyValue) || void 0 === s ? void 0 : s.call(r, e)) === l) ||
290
- 'mask' === n
291
- ? u
292
- : null === (o = r.getPropertyValue) || void 0 === o
293
- ? void 0
294
- : o.call(r, e);
295
- if (u && a) {
296
- if (u === a) return u
297
- switch (e) {
298
- case 'transform':
299
- return (function (t, e) {
300
- const n = h(t),
301
- r = h(e);
302
- if ((null == n ? void 0 : n.length) === (null == r ? void 0 : r.length)) {
303
- for (let t = 0, e = n.length; t < e; t++)
304
- if (n[t] !== r[t] && !I(r[t], n[t])) return
305
- return t
306
- }
307
- })(u, a)
308
- case 'd':
309
- return (function (t, e, n) {
310
- return w({ element: t, attributeValue: e }) === n ? e : void 0
311
- })(t, u, a)
312
- default:
313
- return a
314
- }
315
- }
316
- }
317
- function M(t, e, n, r) {
318
- var i, s, o;
319
- const u =
320
- 'transform' === e ||
321
- (['mask', 'path'].includes(n) && ['x', 'y', 'width', 'height', 'd'].includes(e));
322
- return r && u
323
- ? O(t, e, n, r)
324
- : ((null === (i = r.getPropertyValue) || void 0 === i ? void 0 : i.call(r, e)) ??
325
- (null === (s = t.attrs) || void 0 === s || null === (s = s.style) || void 0 === s
326
- ? void 0
327
- : s[e]) ??
328
- (null === (o = t.attrs) || void 0 === o ? void 0 : o[e]))
329
- }
330
- function B(t, e, n = false) {
331
- l.iD = n;
332
- const r = 'undefined' != typeof window && getComputedStyle(t),
333
- i = {};
334
- for (let l = 0, a = S.length; l < a; l++) {
335
- var s, o, u;
336
- const a = S[l],
337
- c = t.type || t.nodeName;
338
- if (false === (null === (s = (o = k[a]).include) || void 0 === s ? void 0 : s.call(o, a, c)))
339
- continue
340
- const f = k[a].formatter || k[a];
341
- if (null != e && null !== (u = e[t.id]) && void 0 !== u && u[a]) continue
342
- const h = M(t, a, c, r);
343
- if (null == h && !n) continue
344
- const d = f.call(this, h, a, c);
345
- d && (i[a] = d);
346
- }
347
- return i
348
- }
349
- function N(t) {
350
- var e, n;
351
- if (null == t || null === (e = t.wD) || void 0 === e || !e.length) return
352
- this.h = t.wD.shift();
353
- const r = null === (n = t.rootId) || void 0 === n ? void 0 : n.slice(0, -1);
354
- this.wIs = t.wD.map(t => `${r}${t}`);
355
- }
356
- function j(t) {
357
- const e = new N(t),
358
- n = t.svg,
359
- r = e.wIs,
360
- i = t.originalAnimations[0].elements,
361
- s = e.h;
362
- function o(t, e, s) {
363
- var u;
364
- if (e[t]) return
365
- const l = n.querySelector('#' + t),
366
- a = null == l || null === (u = l.parentElement) || void 0 === u ? void 0 : u.id;
367
- if (l && a) {
368
- if (r.includes(a))
369
- return (
370
- e[a] || o(a, e, s),
371
- (e[a].children ??= []),
372
- (e[t] = B(l, i)),
373
- void e[a].children.push(e[t])
374
- )
375
- ;((e[t] = B(l, i)), s.push(e[t]));
376
- }
377
- }
378
- async function u() {
379
- const t = (function () {
380
- let t = [],
381
- e = {};
382
- for (let n = 0, i = r.length; n < i; n++) o(r[n], e, t);
383
- return t
384
- })();
385
- return await (async function (t) {
386
- var e;
387
- const n = JSON.stringify(t),
388
- r = new TextEncoder().encode(n),
389
- i = await (null === (e = window.crypto) ||
390
- void 0 === e ||
391
- null === (e = e.subtle) ||
392
- void 0 === e
393
- ? void 0
394
- : e.digest('SHA-256', r));
395
- return (
396
- (i &&
397
- Array.from(new Uint8Array(i))
398
- .map(t => t.toString(16).padStart(2, '0'))
399
- .join('')) ||
400
- s
401
- )
402
- })(t)
403
- }
404
- this.vH = async function () {
405
- (await u()) !== s && requestAnimationFrame(() => t.stop());
406
- };
407
- }
408
- function T(t) {
409
- let e = 0,
410
- n = 0;
411
- const r = new j(t);
412
- this.cF = function (i, s) {
413
- return t.wD
414
- ? (e++,
415
- (function (t) {
416
- return !(t - n < 300) && (t - n >= 500 || e >= 3)
417
- })(i)
418
- ? ((e = 0), (n = i), window.requestAnimationFrame(() => r.vH()), s())
419
- : s())
420
- : s()
421
- };
422
- }
423
- function P(t) {
424
- return t
425
- }
426
- function F(t, e, n) {
427
- const r = 1 - n;
428
- return 3 * n * r * (t * r + e * n) + n * n * n
429
- }
430
- function R(t = 0, e = 0, n = 1, i = 1) {
431
- return t < 0 || t > 1 || n < 0 || n > 1
432
- ? null
433
- : r(t, e) && r(n, i)
434
- ? P
435
- : s => {
436
- if (s <= 0) return t > 0 ? (s * e) / t : 0 === e && n > 0 ? (s * i) / n : 0
437
- if (s >= 1)
438
- return n < 1
439
- ? 1 + ((s - 1) * (i - 1)) / (n - 1)
440
- : 1 === n && t < 1
441
- ? 1 + ((s - 1) * (e - 1)) / (t - 1)
442
- : 1
443
- let o,
444
- u = 0,
445
- l = 1;
446
- for (; u < l; ) {
447
- o = (u + l) / 2;
448
- const e = F(t, n, o);
449
- if (r(s, e)) break
450
- e < s ? (u = o) : (l = o);
451
- }
452
- return F(e, i, o)
453
- }
454
- }
455
- function C() {
456
- return 1
457
- }
458
- function V(t) {
459
- return 1 === t ? 1 : 0
460
- }
461
- function D(t = 1, e = 0) {
462
- if (1 === t) {
463
- if (0 === e) return V
464
- if (1 === e) return C
465
- }
466
- const n = 1 / t;
467
- return t => (t >= 1 ? 1 : (t += e * n) - (t % n))
468
- }
469
- (Number.isInteger ||
470
- (Number.isInteger = function (t) {
471
- return 'number' == typeof t && isFinite(t) && Math.floor(t) === t
472
- }),
473
- Number.EPSILON || (Number.EPSILON = 2220446049250313e-31));
474
- const $ = Math.sin,
475
- q = Math.cos,
476
- L = Math.acos,
477
- z = Math.asin,
478
- G = Math.tan,
479
- W = Math.atan2,
480
- Y = Math.sqrt;
481
- function U(t, e) {
482
- return {
483
- a: t[0] * e[0] + t[2] * e[1],
484
- b: t[1] * e[0] + t[3] * e[1],
485
- c: t[0] * e[2] + t[2] * e[3],
486
- d: t[1] * e[2] + t[3] * e[3],
487
- tx: t[0] * e[4] + t[2] * e[5] + t[4],
488
- ty: t[1] * e[4] + t[3] * e[5] + t[5],
489
- }
490
- }
491
- function H(t, e, n) {
492
- return t >= 0.5 ? n : e
493
- }
494
- function J(t, e, n) {
495
- return 0 === t || e === n ? e : t * (n - e) + e
496
- }
497
- function X(t, e, n) {
498
- const r = J(t, e, n);
499
- return r <= 0 ? 0 : r
500
- }
501
- function K(t, e, n) {
502
- const r = J(t, e, n);
503
- return r <= 0 ? 0 : r >= 1 ? 1 : r
504
- }
505
- function Q(t, e, n) {
506
- return 0 === t ? e : 1 === t ? n : { x: J(t, e.x, n.x), y: J(t, e.y, n.y) }
507
- }
508
- function Z(t, e, n) {
509
- return 0 === t ? e : 1 === t ? n : { x: X(t, e.x, n.x), y: X(t, e.y, n.y) }
510
- }
511
- function tt(t, e, n) {
512
- const r = (function (t, e, n) {
513
- return Math.round(J(t, e, n))
514
- })(t, e, n);
515
- return r <= 0 ? 0 : r >= 255 ? 255 : r
516
- }
517
- function et(t, e, n) {
518
- return 0 === t
519
- ? e
520
- : 1 === t
521
- ? n
522
- : {
523
- r: tt(t, e.r, n.r),
524
- g: tt(t, e.g, n.g),
525
- b: tt(t, e.b, n.b),
526
- a: J(t, null == e.a ? 1 : e.a, null == n.a ? 1 : n.a),
527
- }
528
- }
529
- function nt(t, e, n) {
530
- let r = e.length;
531
- if (r !== n.length) return H(t, e, n)
532
- let i = new Array(r);
533
- for (let s = 0; s < r; s++) i[s] = J(t, e[s], n[s]);
534
- return i
535
- }
536
- function rt(t, e) {
537
- const n = [];
538
- for (let r = 0; r < t; r++) n.push(e);
539
- return n
540
- }
541
- function it(t, e) {
542
- if (--e <= 0) return t
543
- const n = (t = Object.assign([], t)).length;
544
- do {
545
- for (let e = 0; e < n; e++) t.push(t[e]);
546
- } while (--e > 0)
547
- return t
548
- }
549
- class st {
550
- constructor(t) {
551
- ((this.list = t), (this.length = t.length));
552
- }
553
- setAttribute(t, e) {
554
- const n = this.list;
555
- for (let r = 0; r < this.length; r++) n[r].setAttribute(t, e);
556
- }
557
- removeAttribute(t) {
558
- const e = this.list;
559
- for (let n = 0; n < this.length; n++) e[n].removeAttribute(t);
560
- }
561
- style(t, e) {
562
- const n = this.list;
563
- for (let r = 0; r < this.length; r++) n[r].style[t] = e;
564
- }
565
- }
566
- const ot = /-./g,
567
- ut = (t, e) => e.toUpperCase();
568
- let lt;
569
- function at(t) {
570
- return 'function' == typeof t ? t : H
571
- }
572
- function ct(t) {
573
- return t
574
- ? 'function' == typeof t
575
- ? t
576
- : Array.isArray(t)
577
- ? (function (t, e = P) {
578
- if (!Array.isArray(t)) return e
579
- switch (t.length) {
580
- case 1:
581
- return D(t[0]) || e
582
- case 2:
583
- return D(t[0], t[1]) || e
584
- case 4:
585
- return R(t[0], t[1], t[2], t[3]) || e
586
- }
587
- return e
588
- })(t, null)
589
- : (function (t, e, n = P) {
590
- switch (t) {
591
- case 'linear':
592
- return P
593
- case 'steps':
594
- return D(e.steps || 1, e.jump || 0) || n
595
- case 'bezier':
596
- case 'cubic-bezier':
597
- return R(e.x1 || 0, e.y1 || 0, e.x2 || 0, e.y2 || 0) || n
598
- }
599
- return n
600
- })(t.type, t.value, null)
601
- : null
602
- }
603
- function ft(t, e, n, r = false) {
604
- const i = e.length - 1;
605
- if (t <= e[0].t) return r ? [0, 0, e[0].v] : e[0].v
606
- if (t >= e[i].t) return r ? [i, 1, e[i].v] : e[i].v
607
- let s,
608
- o = e[0],
609
- u = null;
610
- for (s = 1; s <= i; s++) {
611
- if (!(t > e[s].t)) {
612
- u = e[s];
613
- break
614
- }
615
- o = e[s];
616
- }
617
- return null == u
618
- ? r
619
- ? [i, 1, e[i].v]
620
- : e[i].v
621
- : o.t === u.t
622
- ? r
623
- ? [s, 1, u.v]
624
- : u.v
625
- : ((t = (t - o.t) / (u.t - o.t)),
626
- o.e && (t = o.e(t)),
627
- r ? [s, t, n(t, o.v, u.v)] : n(t, o.v, u.v))
628
- }
629
- function ht(t, e, n = null) {
630
- return t && t.length
631
- ? 'function' != typeof e
632
- ? null
633
- : ('function' != typeof n && (n = null),
634
- r => {
635
- let i = ft(r, t, e);
636
- return (null != i && n && (i = n(i)), i)
637
- })
638
- : null
639
- }
640
- function dt(t, e) {
641
- return t.t - e.t
642
- }
643
- function gt(t, e, n, r, i) {
644
- const s = '@' === n[0],
645
- o = '#' === n[0];
646
- let u = lt[n],
647
- l = H;
648
- var a;
649
- switch (
650
- (s ? ((a = n.substr(1)), (n = a.replace(ot, ut))) : o && (n = n.substr(1)), typeof u)
651
- ) {
652
- case 'function':
653
- if (((l = u(r, i, ft, ct, n, s, e, t)), o)) return l
654
- break
655
- case 'string':
656
- l = ht(r, at(u));
657
- break
658
- case 'object':
659
- if (((l = ht(r, at(u.i), u.f)), l && 'function' == typeof u.u)) return u.u(e, l, n, s, t)
660
- }
661
- return l
662
- ? (function (t, e, n, r = false) {
663
- if (r) return t instanceof st ? r => t.style(e, n(r)) : r => (t.style[e] = n(r))
664
- if (Array.isArray(e)) {
665
- const r = e.length;
666
- return i => {
667
- const s = n(i);
668
- if (null == s) for (let n = 0; n < r; n++) t[n].removeAttribute(e);
669
- else for (let n = 0; n < r; n++) t[n].setAttribute(e, s);
670
- }
671
- }
672
- return r => {
673
- const i = n(r);
674
- null == i ? t.removeAttribute(e) : t.setAttribute(e, i);
675
- }
676
- })(e, n, l, s)
677
- : null
678
- }
679
- function pt(t, e, n, r) {
680
- if (!r || 'object' != typeof r) return null
681
- let i = null,
682
- s = null;
683
- return (
684
- Array.isArray(r)
685
- ? (s = (function (t) {
686
- if (!t || !t.length) return null
687
- for (let e = 0; e < t.length; e++) t[e].e && (t[e].e = ct(t[e].e));
688
- return t.sort(dt)
689
- })(r))
690
- : ((s = r.keys), (i = r.data || null)),
691
- s ? gt(t, e, n, s, i) : null
692
- )
693
- }
694
- function yt(t, e, n) {
695
- if (!n) return null
696
- const r = [];
697
- for (const i in n)
698
- if (n.hasOwnProperty(i)) {
699
- const s = pt(t, e, i, n[i]);
700
- s && r.push(s);
701
- }
702
- return r.length ? r : null
703
- }
704
- function mt(t, e) {
705
- if (!e.settings.duration || e.settings.duration < 0) return null
706
- const n = (function (t, e) {
707
- if (!e) return null
708
- let n = [];
709
- if (Array.isArray(e)) {
710
- const r = e.length;
711
- for (let i = 0; i < r; i++) {
712
- const r = e[i];
713
- if (2 !== r.length) continue
714
- let s = null;
715
- if ('string' == typeof r[0]) s = t.getElementById(r[0]);
716
- else if (Array.isArray(r[0])) {
717
- s = [];
718
- for (let e = 0; e < r[0].length; e++)
719
- if ('string' == typeof r[0][e]) {
720
- const n = t.getElementById(r[0][e]);
721
- n && s.push(n);
722
- }
723
- s = s.length ? (1 === s.length ? s[0] : new st(s)) : null;
724
- }
725
- if (!s) continue
726
- const o = yt(t, s, r[1]);
727
- o && (n = n.concat(o));
728
- }
729
- } else
730
- for (const r in e) {
731
- if (!e.hasOwnProperty(r)) continue
732
- const i = t.getElementById(r);
733
- if (!i) continue
734
- const s = yt(t, i, e[r]);
735
- s && (n = n.concat(s));
736
- }
737
- return n.length ? n : null
738
- })(t, e.elements);
739
- return n
740
- ? (function (t, e) {
741
- const n = e.duration,
742
- r = t.length;
743
- let i = null;
744
- return (s, o) => {
745
- const u = e.iterations || 1 / 0,
746
- l = (e.alternate && u % 2 == 0) ^ (e.direction > 0) ? n : 0;
747
- let a = s % n,
748
- c = 1 + (s - a) / n
749
- ;((o *= e.direction), e.alternate && c % 2 == 0 && (o = -o));
750
- let f = false;
751
- if (c > u) ((a = l), (f = true), -1 === e.fill && (a = e.direction > 0 ? 0 : n));
752
- else if ((o < 0 && (a = n - a), a === i)) return false
753
- i = a;
754
- for (let e = 0; e < r; e++) t[e](a);
755
- return f
756
- }
757
- })(n, e.settings)
758
- : null
759
- }
760
- function vt(t, e = document, n = 0) {
761
- const r = (function (t, e) {
762
- const n = e.querySelectorAll('svg');
763
- for (let e = 0; e < n.length; e++)
764
- if (n[e].id === t.root && !n[e].svgatorAnimation)
765
- return ((n[e].svgatorAnimation = true), n[e])
766
- return null
767
- })(t, e);
768
- if (r) return r
769
- if (n >= 20) return null
770
- const i = (function (t) {
771
- const e = t => t.shadowRoot;
772
- return document
773
- ? Array.from(
774
- t.querySelectorAll(
775
- ':not(' +
776
- [
777
- 'a',
778
- 'area',
779
- 'audio',
780
- 'br',
781
- 'canvas',
782
- 'circle',
783
- 'datalist',
784
- 'embed',
785
- 'g',
786
- 'head',
787
- 'hr',
788
- 'iframe',
789
- 'img',
790
- 'input',
791
- 'link',
792
- 'object',
793
- 'path',
794
- 'polygon',
795
- 'rect',
796
- 'script',
797
- 'source',
798
- 'style',
799
- 'svg',
800
- 'title',
801
- 'track',
802
- 'video',
803
- ].join() +
804
- ')',
805
- ),
806
- )
807
- .filter(e)
808
- .map(e)
809
- : []
810
- })(e);
811
- for (let e = 0; e < i.length; e++) {
812
- const r = vt(t, i[e], n + 1);
813
- if (r) return r
814
- }
815
- return null
816
- }
817
- function bt(t, e = null, n = Number, r = 'undefined' != typeof BigInt && BigInt) {
818
- const i = '0x' + (t.replace(/[^0-9a-fA-F]+/g, '') || 27);
819
- return e && r && n.isSafeInteger && !n.isSafeInteger(+i) ? (n(r(i)) % e) + e : +i
820
- }
821
- function wt(t, e = 27) {
822
- return !t || t % e ? t % e : [0, 1].includes(e) ? e : wt(t / e, e)
823
- }
824
- function xt(t, e, n) {
825
- if (!t || !t.length) return
826
- const r = bt(n),
827
- i = wt(r) + 5;
828
- let s = (function (t, e, n) {
829
- let r = '';
830
- for (; t && n && e <= t.length; )
831
- ((r += t.substring(0, e)), (t = t.substring(e + 1)), (e = n));
832
- return r + t
833
- })(t, wt(r, 5), i);
834
- return (
835
- (s = s.replace(/\x7c$/g, '==').replace(/\x2f$/g, '=')),
836
- (s = atob(s)),
837
- (s = s.replace(/[\x41-\x5A]/g, '')),
838
- (s = (function (t, e, n) {
839
- const r = +('0x' + t.substring(0, 4));
840
- t = t.substring(4);
841
- const i = (bt(e, r) % r) + (n % 27),
842
- s = [];
843
- for (let e = 0; e < t.length; e += 2) {
844
- if ('|' === t[e]) {
845
- const n = +('0x' + t.substring(e + 1, e + 1 + 4)) - i
846
- ;((e += 3), s.push(n));
847
- continue
848
- }
849
- const n = +('0x' + t[e] + t[e + 1]) - i;
850
- s.push(n);
851
- }
852
- return String.fromCharCode(...s)
853
- })(s, e, r)),
854
- (s = JSON.parse(s)),
855
- s
856
- )
857
- }
858
- const At = [
859
- { key: 'alternate', def: false },
860
- { key: 'fill', def: 1 },
861
- { key: 'iterations', def: 0 },
862
- { key: 'direction', def: 1 },
863
- { key: 'speed', def: 1 },
864
- { key: 'fps', def: 100 },
865
- ];
866
- let _t = class {
867
- _svg
868
- _rootId
869
- constructor(t) {
870
- ((this._id = 0),
871
- (this._running = false),
872
- (this._rollingBack = false),
873
- (this._animations = t.animations),
874
- (this._settings = t.animationSettings),
875
- t.version < '2022-05-02' && delete this._settings.speed,
876
- At.forEach(t => {
877
- this._settings[t.key] = this._settings[t.key] || t.def;
878
- }),
879
- (this.duration = t.animationSettings.duration),
880
- (this.offset = t.animationSettings.offset || 0),
881
- (this.rollbackStartOffset = 0),
882
- (this._rootId = t.root),
883
- (this._svg = t.svg),
884
- (this._originalAnimations = t.originalAnimations),
885
- (this._fTC = new T(this)));
886
- }
887
- get svg() {
888
- return this._svg
889
- }
890
- get rootId() {
891
- return this._rootId
892
- }
893
- get alternate() {
894
- return this._settings.alternate
895
- }
896
- get fill() {
897
- return this._settings.fill
898
- }
899
- get iterations() {
900
- return this._settings.iterations
901
- }
902
- get direction() {
903
- return this._settings.direction
904
- }
905
- get speed() {
906
- return this._settings.speed
907
- }
908
- get fps() {
909
- return this._settings.fps
910
- }
911
- get wD() {
912
- return this._settings.w
913
- }
914
- get originalAnimations() {
915
- return this._originalAnimations
916
- }
917
- get maxFiniteDuration() {
918
- return this.iterations > 0 ? this.iterations * this.duration : this.duration
919
- }
920
- static build(t, e) {
921
- if (
922
- (delete t.animationSettings,
923
- (t.options = xt(t.options, t.root, '91c80d77')),
924
- t.animations.map(e => {
925
- ((e.settings = xt(e.s, t.root, '91c80d77')),
926
- delete e.s,
927
- t.animationSettings || (t.animationSettings = e.settings));
928
- }),
929
- Object.assign(
930
- t,
931
- { originalAnimations: t.animations },
932
- (function (t, e) {
933
- if (((lt = e), !t || !t.root || !Array.isArray(t.animations))) return null
934
- const n = vt(t);
935
- if (!n) return null
936
- const r = t.animations.map(t => mt(n, t)).filter(t => !!t);
937
- return r.length ? { svg: n, animations: r } : null
938
- })(t, e),
939
- ),
940
- null == t || !t.svg)
941
- )
942
- return null
943
- const n = t.options || {},
944
- r = new this(t);
945
- return { el: t.svg, options: n, player: r }
946
- }
947
- static push(t) {
948
- return this.build(t)
949
- }
950
- static init() {
951
- const t = window.__SVGATOR_PLAYER__ && window.__SVGATOR_PLAYER__['91c80d77'];
952
- Array.isArray(t) && t.splice(0).forEach(t => this.build(t));
953
- }
954
- _apply(t, e = {}) {
955
- const n = this._animations,
956
- r = n.length;
957
- let i = 0;
958
- for (let s = 0; s < r; s++) e[s] ? i++ : ((e[s] = n[s](t, 1)), e[s] && i++);
959
- return i
960
- }
961
- _rollback(t) {
962
- let e = 1 / 0,
963
- n = null
964
- ;((this.rollbackStartOffset = t), (this._rollingBack = true), (this._running = true));
965
- const r = i => {
966
- if (!this._rollingBack) return
967
- null == n && (n = i);
968
- let s = Math.round(t - (i - n) * this.speed);
969
- if (s > this.duration && e !== 1 / 0) {
970
- const t = !!this.alternate && (s / this.duration) % 2 > 1;
971
- let e = s % this.duration
972
- ;((e += t ? this.duration : 0), (s = e || this.duration));
973
- }
974
- const o = (this.fps ? 1e3 / this.fps : 0) * this.speed,
975
- u = Math.max(0, s);
976
- u <= e - o && ((this.offset = u), (e = u), this._apply(u));
977
- const l = this.iterations > 0 && -1 === this.fill && s >= this.maxFiniteDuration
978
- ;((s <= 0 || this.offset < s || l) && this.stop(),
979
- (this._id = window.requestAnimationFrame(r)));
980
- };
981
- this._id = window.requestAnimationFrame(r);
982
- }
983
- _start(t = 0) {
984
- let e,
985
- n = -1 / 0;
986
- const r = {};
987
- this._running = true;
988
- const i = s => {
989
- e ??= s;
990
- const o = Math.round((s - e) * this.speed + t),
991
- u = (this.fps ? 1e3 / this.fps : 0) * this.speed
992
- ;(o >= n + u &&
993
- !this._rollingBack &&
994
- this._fTC.cF(s, () => {
995
- ((this.offset = o), (n = o));
996
- if (this._apply(o, r) === this._animations.length) return (this.pause(true), true)
997
- })) ||
998
- (this._id = window.requestAnimationFrame(i));
999
- };
1000
- this._id = window.requestAnimationFrame(i);
1001
- }
1002
- _pause() {
1003
- (this._id && window.cancelAnimationFrame(this._id), (this._running = false));
1004
- }
1005
- play() {
1006
- if (!this._running)
1007
- return this._rollingBack ? this._rollback(this.offset) : this._start(this.offset)
1008
- }
1009
- stop() {
1010
- (this._pause(),
1011
- (this.offset = 0),
1012
- (this.rollbackStartOffset = 0),
1013
- (this._rollingBack = false),
1014
- this._apply(0));
1015
- }
1016
- reachedToEnd() {
1017
- return this.iterations > 0 && this.offset >= this.iterations * this.duration
1018
- }
1019
- restart(t = false) {
1020
- (this.stop(t), this.play(t));
1021
- }
1022
- pause() {
1023
- this._pause();
1024
- }
1025
- toggle() {
1026
- return this._running ? this.pause() : this.reachedToEnd() ? this.restart() : this.play()
1027
- }
1028
- trigger(t, e) {}
1029
- _adjustOffset(t = false) {
1030
- const e = this.alternate ? 2 * this.duration : this.duration;
1031
- if (t) {
1032
- if (!this._rollingBack && 0 === this.offset) return void (this.offset = e)
1033
- this._rollingBack && (this.offset, this.maxFiniteDuration);
1034
- }
1035
- !this._rollingBack || this.rollbackStartOffset <= this.duration
1036
- ? 0 !== this.iterations && (this.offset = Math.min(this.offset, this.maxFiniteDuration))
1037
- : ((this.offset =
1038
- this.rollbackStartOffset - ((this.rollbackStartOffset - this.offset) % e)),
1039
- (this.rollbackStartOffset = 0));
1040
- }
1041
- reverse(t = false) {
1042
- if (!this._running)
1043
- return (
1044
- this._adjustOffset(t),
1045
- (this._rollingBack = !this._rollingBack),
1046
- t && this.play(false),
1047
- void this.trigger('reverse', this.offset)
1048
- )
1049
- ;(this.pause(false, false),
1050
- this._adjustOffset(),
1051
- (this._rollingBack = !this._rollingBack),
1052
- this.play(false),
1053
- this.trigger('reverse', this.offset));
1054
- }
1055
- };
1056
- function kt(t) {
1057
- return n(t) + ''
1058
- }
1059
- function St(t, e = ' ') {
1060
- return t && t.length ? t.map(kt).join(e) : ''
1061
- }
1062
- function Et(t) {
1063
- return kt(t.x) + ',' + kt(t.y)
1064
- }
1065
- function It(t) {
1066
- return t
1067
- ? null == t.a || t.a >= 1
1068
- ? (function (t) {
1069
- if (!t) return 'transparent'
1070
- const e = t => parseInt(t).toString(16).padStart(2, '0');
1071
- return (function (t) {
1072
- const e = [];
1073
- let n = '#' === t[0] ? e.push('#') : 0;
1074
- for (; n < t.length; n += 2) {
1075
- if (t[n] !== t[n + 1]) return t
1076
- e.push(t[n]);
1077
- }
1078
- return e.join('')
1079
- })('#' + e(t.r) + e(t.g) + e(t.b) + (null == t.a || t.a >= 1 ? '' : e(255 * t.a)))
1080
- })(t)
1081
- : 'rgba(' + t.r + ',' + t.g + ',' + t.b + ',' + t.a + ')'
1082
- : 'transparent'
1083
- }
1084
- function Ot(t) {
1085
- return t ? 'url(#' + t + ')' : 'none'
1086
- }
1087
- !(function () {
1088
- for (
1089
- var t = 0, e = ['ms', 'moz', 'webkit', 'o'], n = 0;
1090
- n < e.length && !window.requestAnimationFrame;
1091
- ++n
1092
- )
1093
- ((window.requestAnimationFrame = window[e[n] + 'RequestAnimationFrame']),
1094
- (window.cancelAnimationFrame =
1095
- window[e[n] + 'CancelAnimationFrame'] || window[e[n] + 'CancelRequestAnimationFrame']));
1096
- window.requestAnimationFrame ||
1097
- ((window.requestAnimationFrame = function (e) {
1098
- var n = Date.now(),
1099
- r = Math.max(0, 16 - (n - t)),
1100
- i = window.setTimeout(function () {
1101
- e(n + r);
1102
- }, r);
1103
- return ((t = n + r), i)
1104
- }),
1105
- (window.cancelAnimationFrame = window.clearTimeout));
1106
- })();
1107
- var Mt = {
1108
- f: null,
1109
- i: Z,
1110
- u: (t, e) => n => {
1111
- const r = e(n)
1112
- ;(t.setAttribute('rx', kt(r.x)), t.setAttribute('ry', kt(r.y)));
1113
- },
1114
- },
1115
- Bt = {
1116
- f: null,
1117
- i: function (t, e, n) {
1118
- return 0 === t
1119
- ? e
1120
- : 1 === t
1121
- ? n
1122
- : { width: X(t, e.width, n.width), height: X(t, e.height, n.height) }
1123
- },
1124
- u: (t, e) => n => {
1125
- const r = e(n)
1126
- ;(t.setAttribute('width', kt(r.width)), t.setAttribute('height', kt(r.height)));
1127
- },
1128
- };
1129
- let Nt = {},
1130
- jt = null;
1131
- function Tt(t) {
1132
- let e = (function () {
1133
- if (jt) return jt
1134
- if ('object' != typeof document || !document.createElementNS) return {}
1135
- let t = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
1136
- return t && t.style
1137
- ? ((t.style.position = 'absolute'),
1138
- (t.style.opacity = '0.01'),
1139
- (t.style.zIndex = '-9999'),
1140
- (t.style.left = '-9999px'),
1141
- (t.style.width = '1px'),
1142
- (t.style.height = '1px'),
1143
- (jt = { svg: t }),
1144
- jt)
1145
- : {}
1146
- })().svg;
1147
- if (!e)
1148
- return function (t) {
1149
- return null
1150
- }
1151
- let n = document.createElementNS(e.namespaceURI, 'path')
1152
- ;(n.setAttributeNS(null, 'd', t),
1153
- n.setAttributeNS(null, 'fill', 'none'),
1154
- n.setAttributeNS(null, 'stroke', 'none'),
1155
- e.appendChild(n));
1156
- let r = n.getTotalLength();
1157
- return function (t) {
1158
- let e = n.getPointAtLength(r * t);
1159
- return { x: e.x, y: e.y }
1160
- }
1161
- }
1162
- function Pt(t, e, n, r, i = 1) {
1163
- let s = (function (t) {
1164
- return Nt[t] ? Nt[t] : (Nt[t] = Tt(t))
1165
- })(
1166
- (function (t, e, n, r) {
1167
- if (!t || !r) return false
1168
- let i = ['M', t.x, t.y];
1169
- if (
1170
- (e && n && (i.push('C'), i.push(e.x), i.push(e.y), i.push(n.x), i.push(n.y)),
1171
- e ? !n : n)
1172
- ) {
1173
- let t = e || n
1174
- ;(i.push('Q'), i.push(t.x), i.push(t.y));
1175
- }
1176
- return (e || n || i.push('L'), i.push(r.x), i.push(r.y), i.join(' '))
1177
- })(t, e, n, r),
1178
- );
1179
- try {
1180
- return s(i)
1181
- } catch (t) {
1182
- return null
1183
- }
1184
- }
1185
- function Ft(t, e, n) {
1186
- return t + (e - t) * n
1187
- }
1188
- function Rt(t, e, n, r = false) {
1189
- const i = { x: Ft(t.x, e.x, n), y: Ft(t.y, e.y, n) };
1190
- return (
1191
- r &&
1192
- (i.a = (function (t, e) {
1193
- return Math.atan2(e.y - t.y, e.x - t.x)
1194
- })(t, e)),
1195
- i
1196
- )
1197
- }
1198
- function Ct(t, e, n, r) {
1199
- const i = 1 - r;
1200
- return i * i * t + 2 * i * r * e + r * r * n
1201
- }
1202
- function Vt(t, e, n, r) {
1203
- return 2 * (1 - r) * (e - t) + 2 * r * (n - e)
1204
- }
1205
- function Dt(t, e, n, r, i = false) {
1206
- let s = Pt(t, e, null, n, r);
1207
- return (
1208
- s || (s = { x: Ct(t.x, e.x, n.x, r), y: Ct(t.y, e.y, n.y, r) }),
1209
- i &&
1210
- (s.a = (function (t, e, n, r) {
1211
- return Math.atan2(Vt(t.y, e.y, n.y, r), Vt(t.x, e.x, n.x, r))
1212
- })(t, e, n, r)),
1213
- s
1214
- )
1215
- }
1216
- function $t(t, e, n, r, i) {
1217
- const s = i * i;
1218
- return i * s * (r - t + 3 * (e - n)) + 3 * s * (t + n - 2 * e) + 3 * i * (e - t) + t
1219
- }
1220
- function qt(t, e, n, r, i) {
1221
- const s = 1 - i;
1222
- return 3 * (s * s * (e - t) + 2 * s * i * (n - e) + i * i * (r - n))
1223
- }
1224
- function Lt(t, e, n, r, i, s = false) {
1225
- let o = Pt(t, e, n, r, i);
1226
- return (
1227
- o || (o = { x: $t(t.x, e.x, n.x, r.x, i), y: $t(t.y, e.y, n.y, r.y, i) }),
1228
- s &&
1229
- (o.a = (function (t, e, n, r, i) {
1230
- return Math.atan2(qt(t.y, e.y, n.y, r.y, i), qt(t.x, e.x, n.x, r.x, i))
1231
- })(t, e, n, r, i)),
1232
- o
1233
- )
1234
- }
1235
- function zt(t, e, n, r = false) {
1236
- if (Wt(e)) {
1237
- if (Yt(n)) return Dt(e, n.start, n, t, r)
1238
- } else if (Wt(n)) {
1239
- if (Ut(e)) return Dt(e, e.end, n, t, r)
1240
- } else {
1241
- if (Ut(e)) return Yt(n) ? Lt(e, e.end, n.start, n, t, r) : Dt(e, e.end, n, t, r)
1242
- if (Yt(n)) return Dt(e, n.start, n, t, r)
1243
- }
1244
- return Rt(e, n, t, r)
1245
- }
1246
- function Gt(t, e, n) {
1247
- const r = zt(t, e, n, true);
1248
- return (
1249
- (r.a = o(
1250
- (function (t, e = false) {
1251
- return e ? t + Math.PI : t
1252
- })(r.a),
1253
- )),
1254
- r
1255
- )
1256
- }
1257
- function Wt(t) {
1258
- return !t.type || 'corner' === t.type
1259
- }
1260
- function Yt(t) {
1261
- return null != t.start && !Wt(t)
1262
- }
1263
- function Ut(t) {
1264
- return null != t.end && !Wt(t)
1265
- }
1266
- const Ht = new (class {
1267
- constructor(t = 1, e = 0, n = 0, r = 1, i = 0, s = 0) {
1268
- ((this.m = [t, e, n, r, i, s]), (this.i = null), (this.w = null), (this.s = null));
1269
- }
1270
- get determinant() {
1271
- const t = this.m;
1272
- return t[0] * t[3] - t[1] * t[2]
1273
- }
1274
- get isIdentity() {
1275
- if (null === this.i) {
1276
- const t = this.m;
1277
- this.i = 1 === t[0] && 0 === t[1] && 0 === t[2] && 1 === t[3] && 0 === t[4] && 0 === t[5];
1278
- }
1279
- return this.i
1280
- }
1281
- point(t, e) {
1282
- const n = this.m;
1283
- return { x: n[0] * t + n[2] * e + n[4], y: n[1] * t + n[3] * e + n[5] }
1284
- }
1285
- translateSelf(t = 0, e = 0) {
1286
- if (!t && !e) return this
1287
- const n = this.m;
1288
- return (
1289
- (n[4] += n[0] * t + n[2] * e),
1290
- (n[5] += n[1] * t + n[3] * e),
1291
- (this.w = this.s = this.i = null),
1292
- this
1293
- )
1294
- }
1295
- rotateSelf(t = 0) {
1296
- if ((t %= 360)) {
1297
- t = s(t);
1298
- const e = $(t),
1299
- n = q(t),
1300
- r = this.m,
1301
- i = r[0],
1302
- o = r[1]
1303
- ;((r[0] = i * n + r[2] * e),
1304
- (r[1] = o * n + r[3] * e),
1305
- (r[2] = r[2] * n - i * e),
1306
- (r[3] = r[3] * n - o * e),
1307
- (this.w = this.s = this.i = null));
1308
- }
1309
- return this
1310
- }
1311
- scaleSelf(t = 1, e = 1) {
1312
- if (1 !== t || 1 !== e) {
1313
- const n = this.m
1314
- ;((n[0] *= t), (n[1] *= t), (n[2] *= e), (n[3] *= e), (this.w = this.s = this.i = null));
1315
- }
1316
- return this
1317
- }
1318
- skewSelf(t, e) {
1319
- if (((e %= 360), (t %= 360) || e)) {
1320
- const n = this.m,
1321
- r = n[0],
1322
- i = n[1],
1323
- o = n[2],
1324
- u = n[3]
1325
- ;(t && ((t = G(s(t))), (n[2] += r * t), (n[3] += i * t)),
1326
- e && ((e = G(s(e))), (n[0] += o * e), (n[1] += u * e)),
1327
- (this.w = this.s = this.i = null));
1328
- }
1329
- return this
1330
- }
1331
- resetSelf(t = 1, e = 0, n = 0, r = 1, i = 0, s = 0) {
1332
- const o = this.m;
1333
- return (
1334
- (o[0] = t),
1335
- (o[1] = e),
1336
- (o[2] = n),
1337
- (o[3] = r),
1338
- (o[4] = i),
1339
- (o[5] = s),
1340
- (this.w = this.s = this.i = null),
1341
- this
1342
- )
1343
- }
1344
- recomposeSelf(t = null, e = null, n = null, r = null, i = null) {
1345
- return (
1346
- this.isIdentity || this.resetSelf(),
1347
- t && (t.x || t.y) && this.translateSelf(t.x, t.y),
1348
- e && this.rotateSelf(e),
1349
- n && (n.x && this.skewSelf(n.x, 0), n.y && this.skewSelf(0, n.y)),
1350
- !r || (1 === r.x && 1 === r.y) || this.scaleSelf(r.x, r.y),
1351
- i && (i.x || i.y) && this.translateSelf(i.x, i.y),
1352
- this
1353
- )
1354
- }
1355
- decompose(t = 0, e = 0) {
1356
- const r = this.m,
1357
- i = r[0] * r[0] + r[1] * r[1],
1358
- s = [
1359
- [r[0], r[1]],
1360
- [r[2], r[3]],
1361
- ];
1362
- let u = Y(i);
1363
- if (0 === u)
1364
- return {
1365
- origin: { x: n(r[4]), y: n(r[5]) },
1366
- translate: { x: n(t), y: n(e) },
1367
- scale: { x: 0, y: 0 },
1368
- skew: { x: 0, y: 0 },
1369
- rotate: 0,
1370
- }
1371
- ;((s[0][0] /= u), (s[0][1] /= u));
1372
- const l = r[0] * r[3] - r[1] * r[2] < 0;
1373
- l && (u = -u);
1374
- let a = s[0][0] * s[1][0] + s[0][1] * s[1][1]
1375
- ;((s[1][0] -= s[0][0] * a), (s[1][1] -= s[0][1] * a));
1376
- let c,
1377
- f = Y(s[1][0] * s[1][0] + s[1][1] * s[1][1]);
1378
- return 0 === f
1379
- ? {
1380
- origin: { x: n(r[4]), y: n(r[5]) },
1381
- translate: { x: n(t), y: n(e) },
1382
- scale: { x: n(u), y: 0 },
1383
- skew: { x: 0, y: 0 },
1384
- rotate: 0,
1385
- }
1386
- : ((s[1][0] /= f),
1387
- (s[1][1] /= f),
1388
- (a /= f),
1389
- s[1][1] < 0 ? ((c = o(L(s[1][1]))), s[0][1] < 0 && (c = 360 - c)) : (c = o(z(s[0][1]))),
1390
- l && (c = -c),
1391
- (a = o(W(a, Y(s[0][0] * s[0][0] + s[0][1] * s[0][1])))),
1392
- l && (a = -a),
1393
- {
1394
- origin: { x: n(r[4]), y: n(r[5]) },
1395
- translate: { x: n(t), y: n(e) },
1396
- scale: { x: n(u), y: n(f) },
1397
- skew: { x: n(a), y: 0 },
1398
- rotate: n(c),
1399
- })
1400
- }
1401
- multiply(t) {
1402
- return this.clone().multiplySelf(t)
1403
- }
1404
- preMultiply(t) {
1405
- return t.multiply(this)
1406
- }
1407
- multiplySelf(t) {
1408
- const { a: e, b: n, c: r, d: i, tx: s, ty: o } = U(this.m, t.m);
1409
- return (this.resetSelf(e, n, r, i, s, o), this)
1410
- }
1411
- preMultiplySelf(t) {
1412
- const { a: e, b: n, c: r, d: i, tx: s, ty: o } = U(t.m, this.m);
1413
- return (this.resetSelf(e, n, r, i, s, o), this)
1414
- }
1415
- clone() {
1416
- const t = this.m;
1417
- return new this.constructor(t[0], t[1], t[2], t[3], t[4], t[5])
1418
- }
1419
- static create(t) {
1420
- return t
1421
- ? Array.isArray(t)
1422
- ? new this(...t)
1423
- : t instanceof this
1424
- ? t.clone()
1425
- : new this().recomposeSelf(t.origin, t.rotate, t.skew, t.scale, t.translate)
1426
- : new this()
1427
- }
1428
- toString(t = ' ', e = false) {
1429
- if (null === this.s) {
1430
- let r = this.m.map(t => n(t));
1431
- e || 1 !== r[0] || 0 !== r[1] || 0 !== r[2] || 1 !== r[3]
1432
- ? (this.s = 'matrix(' + r.join(t) + ')')
1433
- : (this.s = 'translate(' + r[4] + t + r[5] + ')');
1434
- }
1435
- return this.s
1436
- }
1437
- })();
1438
- var Jt = {
1439
- f: function (t) {
1440
- return t ? t.join(' ') : ''
1441
- },
1442
- i: function (t, e, n) {
1443
- if (0 === t) return e
1444
- if (1 === t) return n
1445
- let r = e.length;
1446
- if (r !== n.length) return H(t, e, n)
1447
- let i,
1448
- s = new Array(r);
1449
- for (let o = 0; o < r; o++) {
1450
- if (((i = typeof e[o]), i !== typeof n[o])) return H(t, e, n)
1451
- if ('number' === i) s[o] = J(t, e[o], n[o]);
1452
- else {
1453
- if (e[o] !== n[o]) return H(t, e, n)
1454
- s[o] = e[o];
1455
- }
1456
- }
1457
- return s
1458
- },
1459
- },
1460
- Xt = { f: St, i: nt },
1461
- Kt = {
1462
- f: null,
1463
- i: nt,
1464
- u: (t, e) => n => {
1465
- const r = e(n)
1466
- ;(t.setAttribute('x1', kt(r[0])),
1467
- t.setAttribute('y1', kt(r[1])),
1468
- t.setAttribute('x2', kt(r[2])),
1469
- t.setAttribute('y2', kt(r[3])));
1470
- },
1471
- },
1472
- Qt = { f: kt, i: J },
1473
- Zt = { f: kt, i: K },
1474
- te = {
1475
- f: function (t, e = ' ') {
1476
- return (t && t.length > 0 && (t = t.map(t => n(t, 4))), St(t, e))
1477
- },
1478
- i: function (t, e, r) {
1479
- let i = e.length,
1480
- s = r.length;
1481
- if (i !== s)
1482
- if (0 === i) ((i = s), (e = rt(i, 0)));
1483
- else if (0 === s) ((s = i), (r = rt(i, 0)));
1484
- else {
1485
- const t = (function (t, e) {
1486
- const n =
1487
- (t * e) /
1488
- (function (t, e) {
1489
- let n;
1490
- for (; e; ) ((n = e), (e = t % e), (t = n));
1491
- return t || 1
1492
- })(t, e);
1493
- return n < 0 ? -n : n
1494
- })(i, s)
1495
- ;((e = it(e, Math.floor(t / i))), (r = it(r, Math.floor(t / s))), (i = s = t));
1496
- }
1497
- let o = [];
1498
- for (let s = 0; s < i; s++) o.push(n(X(t, e[s], r[s])));
1499
- return o
1500
- },
1501
- },
1502
- ee = { f: kt, i: J };
1503
- function ne(t, e, r) {
1504
- return t.map(t =>
1505
- (function (t, e, r) {
1506
- let i = t.v;
1507
- if (!i || 'g' !== i.t || i.s || !i.v || !i.r) return t
1508
- const s = r.getElementById(i.r),
1509
- o = (s && s.querySelectorAll('stop')) || [];
1510
- return (
1511
- (i.s = i.v.map((t, e) => {
1512
- let r = o[e] && o[e].getAttribute('offset');
1513
- return ((r = n(parseInt(r) / 100)), { c: t, o: r })
1514
- })),
1515
- delete i.v,
1516
- t
1517
- )
1518
- })(t, 0, r),
1519
- )
1520
- }
1521
- const re = {
1522
- gt: 'gradientTransform',
1523
- c: { x: 'cx', y: 'cy' },
1524
- rd: 'r',
1525
- f: { x: 'x1', y: 'y1' },
1526
- to: { x: 'x2', y: 'y2' },
1527
- };
1528
- function ie(t, e, n, r, i, s, o, u) {
1529
- return (
1530
- ne(t, 0, u),
1531
- (e = (function (t, e, n) {
1532
- let r, i, s;
1533
- const o = t.length - 1,
1534
- u = {};
1535
- for (let l = 0; l <= o; l++)
1536
- ((r = t[l]),
1537
- r.e && (r.e = e(r.e)),
1538
- r.v &&
1539
- ((i = r.v),
1540
- 'g' === i.t &&
1541
- i.r &&
1542
- ((s = n.getElementById(i.r)),
1543
- s && (u[i.r] = { e: s, s: s.querySelectorAll('stop') }))));
1544
- return u
1545
- })(t, r, u)),
1546
- r => {
1547
- const i = n(r, t, se);
1548
- if (!i) return 'none'
1549
- if ('c' === i.t) return It(i.v)
1550
- if ('g' === i.t) {
1551
- if (!e[i.r]) return Ot(i.r)
1552
- const t = e[i.r];
1553
- return (
1554
- (function (t, e) {
1555
- let n = t.s;
1556
- for (let r = n.length; r < e.length; r++) {
1557
- const e = n[n.length - 1].cloneNode()
1558
- ;((e.id = le(e.id)), t.e.appendChild(e), (n = t.s = t.e.querySelectorAll('stop')));
1559
- }
1560
- for (let t = 0, r = n.length, i = e.length - 1; t < r; t++)
1561
- (n[t].setAttribute('stop-color', It(e[Math.min(t, i)].c)),
1562
- n[t].setAttribute('offset', e[Math.min(t, i)].o));
1563
- })(t, i.s),
1564
- Object.keys(re).forEach(e => {
1565
- if (void 0 === i[e]) return
1566
- if ('object' == typeof re[e])
1567
- return void Object.keys(re[e]).forEach(n => {
1568
- if (void 0 === i[e][n]) return
1569
- const r = i[e][n],
1570
- s = re[e][n];
1571
- t.e.setAttribute(s, r);
1572
- })
1573
- const n =
1574
- 'gt' === e
1575
- ? ((r = i[e]), Array.isArray(r) ? 'matrix(' + r.join(' ') + ')' : '')
1576
- : i[e];
1577
- var r;
1578
- const s = re[e];
1579
- t.e.setAttribute(s, n);
1580
- }),
1581
- Ot(i.r)
1582
- )
1583
- }
1584
- return 'none'
1585
- }
1586
- )
1587
- }
1588
- function se(t, e, n) {
1589
- if (0 === t) return e
1590
- if (1 === t) return n
1591
- if (e && n) {
1592
- const r = e.t;
1593
- if (r === n.t)
1594
- switch (e.t) {
1595
- case 'c':
1596
- return { t: r, v: et(t, e.v, n.v) }
1597
- case 'g':
1598
- if (e.r === n.r) {
1599
- const i = { t: r, s: oe(t, e.s, n.s), r: e.r };
1600
- return (
1601
- e.gt && n.gt && (i.gt = nt(t, e.gt, n.gt)),
1602
- e.c
1603
- ? ((i.c = Q(t, e.c, n.c)), (i.rd = X(t, e.rd, n.rd)))
1604
- : e.f && ((i.f = Q(t, e.f, n.f)), (i.to = Q(t, e.to, n.to))),
1605
- i
1606
- )
1607
- }
1608
- }
1609
- if (('c' === e.t && 'g' === n.t) || ('c' === n.t && 'g' === e.t)) {
1610
- const r = 'c' === e.t ? e : n,
1611
- i = 'g' === e.t ? { ...e } : { ...n },
1612
- s = i.s.map(t => ({ c: r.v, o: t.o }));
1613
- return ((i.s = 'c' === e.t ? oe(t, s, i.s) : oe(t, i.s, s)), i)
1614
- }
1615
- }
1616
- return H(t, e, n)
1617
- }
1618
- function oe(t, e, n) {
1619
- if (e.length === n.length) return e.map((e, r) => ue(t, e, n[r]))
1620
- const r = Math.max(e.length, n.length),
1621
- i = [];
1622
- for (let s = 0; s < r; s++) {
1623
- const r = ue(t, e[Math.min(s, e.length - 1)], n[Math.min(s, n.length - 1)]);
1624
- i.push(r);
1625
- }
1626
- return i
1627
- }
1628
- function ue(t, e, n) {
1629
- return { o: K(t, e.o, n.o || 0), c: et(t, e.c, n.c || {}) }
1630
- }
1631
- function le(t) {
1632
- return t.replace(/-fill-([0-9]+)$/, (t, e) => '-fill-' + (+e + 1))
1633
- }
1634
- function ae(t, e, n) {
1635
- return 0 === t
1636
- ? e
1637
- : 1 === t
1638
- ? n
1639
- : {
1640
- blur: Z(t, e.blur, n.blur),
1641
- offset: Q(t, e.offset, n.offset),
1642
- color: et(t, e.color, n.color),
1643
- }
1644
- }
1645
- const ce = {
1646
- blur: Z,
1647
- brightness: X,
1648
- contrast: X,
1649
- 'drop-shadow': ae,
1650
- 'inner-shadow': ae,
1651
- grayscale: X,
1652
- 'hue-rotate': J,
1653
- invert: X,
1654
- opacity: X,
1655
- saturate: X,
1656
- sepia: X,
1657
- };
1658
- function fe(t, e, n) {
1659
- if (0 === t) return e
1660
- if (1 === t) return n
1661
- const r = e.length;
1662
- if (r !== n.length) return H(t, e, n)
1663
- const i = [];
1664
- let s;
1665
- for (let o = 0; o < r; o++) {
1666
- if (e[o].type !== n[o].type) return e
1667
- if (((s = ce[e[o].type]), !s)) return H(t, e, n)
1668
- i.push({ type: e.type, value: s(t, e[o].value, n[o].value) });
1669
- }
1670
- return i
1671
- }
1672
- const he = {
1673
- blur: t =>
1674
- t
1675
- ? e => {
1676
- t.setAttribute('stdDeviation', Et(e));
1677
- }
1678
- : null,
1679
- brightness: (t, e, n) =>
1680
- (t = ge(n, e))
1681
- ? e => {
1682
- ((e = kt(e)), t.map(t => t.setAttribute('slope', e)));
1683
- }
1684
- : null,
1685
- contrast: (t, e, n) =>
1686
- (t = ge(n, e))
1687
- ? e => {
1688
- const n = kt((1 - e) / 2)
1689
- ;((e = kt(e)),
1690
- t.map(t => {
1691
- (t.setAttribute('slope', e), t.setAttribute('intercept', n));
1692
- }));
1693
- }
1694
- : null,
1695
- 'drop-shadow'(t, e, n) {
1696
- const r = n.getElementById(e + '-blur');
1697
- if (!r) return null
1698
- const i = n.getElementById(e + '-offset');
1699
- if (!i) return null
1700
- const s = n.getElementById(e + '-flood');
1701
- return s
1702
- ? t => {
1703
- (r.setAttribute('stdDeviation', Et(t.blur)),
1704
- i.setAttribute('dx', kt(t.offset.x)),
1705
- i.setAttribute('dy', kt(t.offset.y)),
1706
- s.setAttribute('flood-color', It(t.color)));
1707
- }
1708
- : null
1709
- },
1710
- 'inner-shadow'(t, e, n) {
1711
- const r = n.getElementById(e + '-blur');
1712
- if (!r) return null
1713
- const i = n.getElementById(e + '-offset');
1714
- if (!i) return null
1715
- const s = n.getElementById(e + '-color-matrix');
1716
- return s
1717
- ? t => {
1718
- (r.setAttribute('stdDeviation', Et(t.blur)),
1719
- i.setAttribute('dx', kt(t.offset.x)),
1720
- i.setAttribute('dy', kt(t.offset.y)));
1721
- const e = [
1722
- 0,
1723
- 0,
1724
- 0,
1725
- 0,
1726
- t.color.r / 255,
1727
- 0,
1728
- 0,
1729
- 0,
1730
- 0,
1731
- t.color.g / 255,
1732
- 0,
1733
- 0,
1734
- 0,
1735
- 0,
1736
- t.color.b / 255,
1737
- 0,
1738
- 0,
1739
- 0,
1740
- t.color.a,
1741
- 0,
1742
- ];
1743
- s.setAttribute('values', St(e));
1744
- }
1745
- : null
1746
- },
1747
- grayscale: t =>
1748
- t
1749
- ? e => {
1750
- t.setAttribute(
1751
- 'values',
1752
- St(
1753
- (function (t) {
1754
- return [
1755
- 0.2126 + 0.7874 * (t = 1 - t),
1756
- 0.7152 - 0.7152 * t,
1757
- 0.0722 - 0.0722 * t,
1758
- 0,
1759
- 0,
1760
- 0.2126 - 0.2126 * t,
1761
- 0.7152 + 0.2848 * t,
1762
- 0.0722 - 0.0722 * t,
1763
- 0,
1764
- 0,
1765
- 0.2126 - 0.2126 * t,
1766
- 0.7152 - 0.7152 * t,
1767
- 0.0722 + 0.9278 * t,
1768
- 0,
1769
- 0,
1770
- 0,
1771
- 0,
1772
- 0,
1773
- 1,
1774
- 0,
1775
- ]
1776
- })(e),
1777
- ),
1778
- );
1779
- }
1780
- : null,
1781
- 'hue-rotate': t => (t ? e => t.setAttribute('values', kt(e)) : null),
1782
- invert: (t, e, n) =>
1783
- (t = ge(n, e))
1784
- ? e => {
1785
- ((e = kt(e) + ' ' + kt(1 - e)), t.map(t => t.setAttribute('tableValues', e)));
1786
- }
1787
- : null,
1788
- opacity: (t, e, n) =>
1789
- (t = n.getElementById(e + '-A')) ? e => t.setAttribute('tableValues', '0 ' + kt(e)) : null,
1790
- saturate: t => (t ? e => t.setAttribute('values', kt(e)) : null),
1791
- sepia: t =>
1792
- t
1793
- ? e =>
1794
- t.setAttribute(
1795
- 'values',
1796
- St(
1797
- (function (t) {
1798
- return [
1799
- 0.393 + 0.607 * (t = 1 - t),
1800
- 0.769 - 0.769 * t,
1801
- 0.189 - 0.189 * t,
1802
- 0,
1803
- 0,
1804
- 0.349 - 0.349 * t,
1805
- 0.686 + 0.314 * t,
1806
- 0.168 - 0.168 * t,
1807
- 0,
1808
- 0,
1809
- 0.272 - 0.272 * t,
1810
- 0.534 - 0.534 * t,
1811
- 0.131 + 0.869 * t,
1812
- 0,
1813
- 0,
1814
- 0,
1815
- 0,
1816
- 0,
1817
- 1,
1818
- 0,
1819
- ]
1820
- })(e),
1821
- ),
1822
- )
1823
- : null,
1824
- };
1825
- const de = ['R', 'G', 'B'];
1826
- function ge(t, e) {
1827
- const n = de.map(n => t.getElementById(e + '-' + n) || null);
1828
- return -1 !== n.indexOf(null) ? null : n
1829
- }
1830
- var pe = {
1831
- fill: ie,
1832
- 'fill-opacity': Zt,
1833
- stroke: ie,
1834
- 'stroke-opacity': Zt,
1835
- 'stroke-width': Qt,
1836
- 'stroke-dashoffset': ee,
1837
- 'stroke-dasharray': te,
1838
- opacity: Zt,
1839
- transform: function (t, e, n, r) {
1840
- if (
1841
- !(t = (function (t, e) {
1842
- if (!t || 'object' != typeof t) return null
1843
- let n = false;
1844
- for (const r in t)
1845
- t.hasOwnProperty(r) &&
1846
- (t[r] && t[r].length
1847
- ? (t[r].forEach(t => {
1848
- t.e && (t.e = e(t.e));
1849
- }),
1850
- (n = true))
1851
- : delete t[r]);
1852
- return n ? t : null
1853
- })(t, r))
1854
- )
1855
- return null
1856
- const i = (r, i, s, o = null) => (t[r] ? n(i, t[r], s) : e && e[r] ? e[r] : o);
1857
- return e && e.a && t.o
1858
- ? e => {
1859
- const r = n(e, t.o, Gt);
1860
- return Ht.recomposeSelf(
1861
- r,
1862
- i('r', e, J, 0) + r.a,
1863
- i('k', e, Q),
1864
- i('s', e, Q),
1865
- i('t', e, Q),
1866
- ).toString()
1867
- }
1868
- : t =>
1869
- Ht.recomposeSelf(
1870
- i('o', t, zt, null),
1871
- i('r', t, J, 0),
1872
- i('k', t, Q),
1873
- i('s', t, Q),
1874
- i('t', t, Q),
1875
- ).toString()
1876
- },
1877
- '#filter': function (t, e, n, r, i, s, o, u) {
1878
- if (!e.items || !t || !t.length) return null
1879
- const l = (function (t, e) {
1880
- t = t.map(t =>
1881
- t && he[t[0]]
1882
- ? (e.getElementById(t[1]), he[t[0]](e.getElementById(t[1]), t[1], e))
1883
- : null,
1884
- );
1885
- const n = t.length;
1886
- return e => {
1887
- for (let r = 0; r < n; r++) t[r] && t[r](e[r].value);
1888
- }
1889
- })(e.items, u);
1890
- return l
1891
- ? ((t = (function (t, e) {
1892
- return t.map(t => ((t.e = e(t.e)), t))
1893
- })(t, r)),
1894
- e => {
1895
- l(n(e, t, fe));
1896
- })
1897
- : null
1898
- },
1899
- '#line': Kt,
1900
- points: Xt,
1901
- d: Jt,
1902
- r: Qt,
1903
- '#size': Bt,
1904
- '#radius': Mt,
1905
- _(t, e) {
1906
- if (Array.isArray(t)) for (let n = 0; n < t.length; n++) this[t[n]] = e;
1907
- else this[t] = e;
1908
- },
1909
- };
1910
- const ye = {
1911
- currentTime: 'offset',
1912
- duration: 'duration',
1913
- hasEnded: function () {
1914
- return this.reachedToEnd()
1915
- },
1916
- isAlternate: 'alternate',
1917
- isPlaying: '_running',
1918
- isRollingBack: '_rollingBack',
1919
- state: function (t, e) {
1920
- return e.isPlaying
1921
- ? e.isRollingBack
1922
- ? 'rollback'
1923
- : 'playing'
1924
- : e.hasEnded
1925
- ? 'ended'
1926
- : 'paused'
1927
- },
1928
- totalTime: 'maxFiniteDuration',
1929
- iterations: 'iterations',
1930
- direction: 'direction',
1931
- fill: 'fill',
1932
- isReversed: function (t, e) {
1933
- return -1 === e.direction
1934
- },
1935
- isBackwards: function (t, e) {
1936
- return -1 === e.fill
1937
- },
1938
- isInfinite: function (t, e) {
1939
- return 0 === e.iterations
1940
- },
1941
- speed: 'speed',
1942
- fps: 'fps',
1943
- },
1944
- me = {
1945
- destruct: 'destruct',
1946
- pause: 'pause',
1947
- play: function (t, e) {
1948
- return ve(t, e.hasEnded ? 'restart' : 'play', e)
1949
- },
1950
- restart: 'restart',
1951
- reverse: function (t, e) {
1952
- return ve(t, 'reverse', e, [true])
1953
- },
1954
- seek: 'seek',
1955
- seekBy: 'seekBy',
1956
- seekTo: 'seekTo',
1957
- stop: 'stop',
1958
- toggle: 'toggle',
1959
- togglePlay: 'toggle',
1960
- set: 'set',
1961
- };
1962
- function ve(t, e, n, r = []) {
1963
- return function () {
1964
- const i = [...arguments];
1965
- return (i.unshift(...r), t[e].call(t, ...i), n)
1966
- }
1967
- }
1968
- class be {
1969
- constructor(t) {
1970
- const e = {},
1971
- n = ['on', 'off'],
1972
- r = {
1973
- get: function (t, r, i) {
1974
- return ye[r]
1975
- ? 'function' == typeof ye[r]
1976
- ? ye[r].call(t, t, i)
1977
- : t[ye[r]]
1978
- : me[r]
1979
- ? 'function' == typeof me[r]
1980
- ? me[r].call(t, t, i)
1981
- : ve(t, me[r], i)
1982
- : -1 !== n.indexOf(r)
1983
- ? e[r]
1984
- : 'ready' === r
1985
- ? t => (t && t.call(i, i), i)
1986
- : void 0
1987
- },
1988
- set: function (t, r, i) {
1989
- return -1 !== n.indexOf(r) && (e[r] = i)
1990
- },
1991
- ownKeys: function (t) {
1992
- return Object.keys(ye)
1993
- },
1994
- has: function (t, e) {
1995
- return void 0 !== ye[e]
1996
- },
1997
- };
1998
- if ('function' == typeof Proxy) return new Proxy(t, r)
1999
- const i = Object.keys(ye).concat(Object.keys(me)).concat(n),
2000
- s = {};
2001
- return (
2002
- i.forEach(e => {
2003
- const i = { enumerable: false, configurable: false, get: () => r.get(t, e, s) }
2004
- ;(-1 !== n.indexOf(e) && (i.set = n => r.set(t, e, n)), Object.defineProperty(s, e, i));
2005
- }),
2006
- s
2007
- )
2008
- }
2009
- }
2010
- function we(t) {
2011
- t || (t = this);
2012
- let e = {}
2013
- ;((this.on = function (t, n, r = false) {
2014
- return (
2015
- 'function' == typeof n &&
2016
- (t
2017
- .split(/[, ]+/g)
2018
- .forEach(t => ((e[t] = e[t] || []), r ? e[t].unshift(n) : e[t].push(n))),
2019
- true)
2020
- )
2021
- }),
2022
- (this.off = function (t, n) {
2023
- for (let r in e)
2024
- if (e.hasOwnProperty(r) && r.substr(0, t.length) === t)
2025
- if (n) for (let t = 0; t < e[r].length; t++) e[r][t] === n && (e[r][t] = null);
2026
- else e[r] = null;
2027
- }),
2028
- (this.trigger = function () {
2029
- let n,
2030
- [r, ...i] = [...arguments];
2031
- t: for (let s in e)
2032
- if (e.hasOwnProperty(s) && e[s] && (s === r || s.substr(0, r.length + 1) === r + '.'))
2033
- for (let r = 0; r < (e[s] || []).length; r++)
2034
- if (e[s][r] && ((n = e[s][r].apply(t, i)), false === n)) break t
2035
- return n
2036
- }));
2037
- }
2038
- let xe = function (t, e, n = n) {
2039
- let r = false,
2040
- i = null;
2041
- return function (s) {
2042
- (r && clearTimeout(r),
2043
- (r = setTimeout(
2044
- () =>
2045
- (function () {
2046
- let s = 0,
2047
- o = n.innerHeight,
2048
- u = 0,
2049
- l = n.innerWidth,
2050
- a = t.parentNode;
2051
- for (; a instanceof Element; ) {
2052
- let t = n.getComputedStyle(a);
2053
- if ('visible' !== t.overflowY || 'visible' !== t.overflowX) {
2054
- let e = a.getBoundingClientRect()
2055
- ;('visible' !== t.overflowY &&
2056
- ((s = Math.max(s, e.top)), (o = Math.min(o, e.bottom))),
2057
- 'visible' !== t.overflowX &&
2058
- ((u = Math.max(u, e.left)), (l = Math.min(l, e.right))));
2059
- }
2060
- if (a === a.parentNode) break
2061
- a = a.parentNode;
2062
- }
2063
- r = false;
2064
- let c = t.getBoundingClientRect(),
2065
- f = Math.min(c.height, Math.max(0, s - c.top)),
2066
- h = Math.min(c.height, Math.max(0, c.bottom - o)),
2067
- d = Math.min(c.width, Math.max(0, u - c.left)),
2068
- g = Math.min(c.width, Math.max(0, c.right - l)),
2069
- p = (c.height - f - h) / c.height,
2070
- y = (c.width - d - g) / c.width,
2071
- m = Math.round(p * y * 100)
2072
- ;(null !== i && i === m) || ((i = m), e(m));
2073
- })(),
2074
- 100,
2075
- )));
2076
- }
2077
- };
2078
- class Ae {
2079
- constructor(t, e, n) {
2080
- const r = (function (t) {
2081
- var e;
2082
- const n =
2083
- t &&
2084
- 1 ===
2085
- (null === (e = t.ownerDocument) ||
2086
- void 0 === e ||
2087
- null === (e = e.childNodes) ||
2088
- void 0 === e
2089
- ? void 0
2090
- : e.length) &&
2091
- window.parent !== window,
2092
- r = { el: t, window: window };
2093
- if (!n) return r
2094
- let i;
2095
- try {
2096
- i = window.parent.document;
2097
- } catch (t) {
2098
- return r
2099
- }
2100
- return (
2101
- (r.window = window.parent),
2102
- (r.el =
2103
- Array.from(i.querySelectorAll('iframe,object')).filter(
2104
- t => t.contentWindow === window,
2105
- )[0] || r.el),
2106
- r
2107
- )
2108
- })(t)
2109
- ;((e = Math.max(1, e || 1)),
2110
- (e = Math.min(e, 100)),
2111
- (this.el = r.el),
2112
- (this._handlers = []),
2113
- (this.onThresholdChange = n && n.call ? n : () => {}),
2114
- (this.thresholdPercent = e || 1),
2115
- (this.currentVisibility = null),
2116
- (this.visibilityCalculator = xe(this.el, this.onVisibilityUpdate.bind(this), r.window)),
2117
- this.bindScrollWatchers(),
2118
- this.visibilityCalculator());
2119
- }
2120
- bindScrollWatchers() {
2121
- let t = this.el.parentNode;
2122
- for (
2123
- ;
2124
- t &&
2125
- (this._handlers.push({
2126
- element: t,
2127
- event: 'scroll',
2128
- handler: this.visibilityCalculator,
2129
- }),
2130
- t.addEventListener('scroll', this.visibilityCalculator),
2131
- t !== t.parentNode && t !== document);
2132
- )
2133
- t = t.parentNode;
2134
- }
2135
- onVisibilityUpdate(t) {
2136
- let e = this.currentVisibility >= this.thresholdPercent,
2137
- n = t >= this.thresholdPercent;
2138
- if (null === this.currentVisibility || e !== n)
2139
- return ((this.currentVisibility = t), void this.onThresholdChange(n))
2140
- this.currentVisibility = t;
2141
- }
2142
- destruct() {
2143
- this._handlers.forEach(t => {
2144
- t.element.removeEventListener(t.event, t.handler);
2145
- });
2146
- }
2147
- }
2148
- class _e {
2149
- static adjustLink(t) {
2150
- var e;
2151
- const n =
2152
- t &&
2153
- 1 ===
2154
- (null === (e = t.ownerDocument) ||
2155
- void 0 === e ||
2156
- null === (e = e.childNodes) ||
2157
- void 0 === e
2158
- ? void 0
2159
- : e.length) &&
2160
- window.parent !== window,
2161
- r = null == t ? void 0 : t.firstElementChild;
2162
- n &&
2163
- r &&
2164
- 'a' === r.tagName &&
2165
- !r.getAttribute('target') &&
2166
- r.setAttributeNS(null, 'target', '_parent');
2167
- }
2168
- static autoPlay(t, e, n, r = []) {
2169
- if ('click' === n.start) {
2170
- const i = () => {
2171
- switch (n.click) {
2172
- case 'freeze':
2173
- return !t._running && t.reachedToEnd() ? t.restart() : t.toggle()
2174
- case 'restart':
2175
- return t.offset > 0 ? t.restart() : t.play()
2176
- case 'reverse':
2177
- return t._running
2178
- ? t.reverse()
2179
- : t.reachedToEnd()
2180
- ? 1 === t.fill
2181
- ? t.reverse(true)
2182
- : t.restart()
2183
- : t.play()
2184
- default:
2185
- if (t._running) return
2186
- return t.reachedToEnd() ? t.restart() : t.play()
2187
- }
2188
- };
2189
- return (
2190
- r.push({ element: e, event: 'click', handler: i }),
2191
- void e.addEventListener('click', i)
2192
- )
2193
- }
2194
- if ('hover' === n.start) {
2195
- const i = () => (t.reachedToEnd() ? t.restart() : t._rollingBack ? t.reverse() : t.play())
2196
- ;(r.push({ element: e, event: 'mouseenter', handler: i }),
2197
- e.addEventListener('mouseenter', i));
2198
- const s = () => {
2199
- switch (n.hover) {
2200
- case 'freeze':
2201
- return t.pause()
2202
- case 'reset':
2203
- return t.stop()
2204
- case 'reverse':
2205
- if ((t.reverse(), t._running)) return
2206
- return t.play()
2207
- default:
2208
- return
2209
- }
2210
- };
2211
- return (
2212
- r.push({ element: e, event: 'mouseleave', handler: s }),
2213
- void e.addEventListener('mouseleave', s)
2214
- )
2215
- }
2216
- if ('scroll' === n.start) {
2217
- const i = new Ae(e, n.scroll || 25, function (e) {
2218
- e ? (t.reachedToEnd() ? t.restart() : t.play()) : t.pause();
2219
- });
2220
- return void r.push({ callback: () => i.destruct() })
2221
- }
2222
- 'programmatic' !== n.start && t.play();
2223
- }
2224
- }
2225
- const ke = true,
2226
- Se = ['iterations', 'speed', 'fps', 'direction', 'fill', 'alternate'];
2227
- class Ee extends _t {
2228
- constructor(t) {
2229
- (super(t), (this._handlers = []));
2230
- }
2231
- static build(t) {
2232
- var e, n;
2233
- let r = super.build(t, pe);
2234
- if (!r) return null
2235
- let { el: i, options: s, player: o } = r;
2236
- const u = new be(o),
2237
- l = new we(u)
2238
- ;((u.on = l.on), (u.off = l.off), (o.trigger = l.trigger));
2239
- const a =
2240
- null == i ||
2241
- null === (e = i.svgatorPlayer) ||
2242
- void 0 === e ||
2243
- null === (e = e.ready) ||
2244
- void 0 === e ||
2245
- null === (n = e.call) ||
2246
- void 0 === n
2247
- ? void 0
2248
- : n.call(e)
2249
- ;((i.svgatorPlayer = u),
2250
- _e.adjustLink(i),
2251
- _e.autoPlay(o, i, s, o._handlers),
2252
- (function (t, e, n) {
2253
- let r;
2254
- 'function' == typeof Event
2255
- ? (r = new Event('ready'))
2256
- : ((r = document.createEvent('Event')), r.initEvent('ready', true, true));
2257
- if ((t.dispatchEvent(r), !n || !n.length)) return
2258
- n.forEach(t => e.ready(t));
2259
- })(i, i.svgatorPlayer, a));
2260
- }
2261
- play(t = true) {
2262
- const e = super.play();
2263
- return (t === ke && this.trigger('play', this.offset), e)
2264
- }
2265
- pause(t = false, e = true) {
2266
- const n = super.pause();
2267
- return (e === ke && this.trigger(t ? 'end' : 'pause', this.offset), n)
2268
- }
2269
- restart() {
2270
- const t = super.restart(false);
2271
- return (this.trigger('restart', this.offset), t)
2272
- }
2273
- stop(t = true) {
2274
- const e = super.stop();
2275
- return (t === ke && this.trigger('stop', this.offset), e)
2276
- }
2277
- _apply(t, e = {}, n = true) {
2278
- const r = super._apply(t);
2279
- if (n === ke) {
2280
- const e = () => this.trigger('keyframe', t);
2281
- window.requestAnimationFrame(e);
2282
- }
2283
- return r
2284
- }
2285
- seekTo(t) {
2286
- const e = this._running;
2287
- var n, r, i
2288
- ;(e && this.pause(false, false),
2289
- (this.offset =
2290
- this.iterations > 0
2291
- ? ((n = t), (r = 0), (i = this.maxFiniteDuration), n < r ? r : n > i ? i : n)
2292
- : Math.max(t, 0)),
2293
- this._apply(this.offset),
2294
- e && this.play(false));
2295
- }
2296
- seek(t) {
2297
- return this.seekTo(Math.round((t / 100) * this.maxFiniteDuration))
2298
- }
2299
- seekBy(t) {
2300
- return this.seekTo(this.offset + t)
2301
- }
2302
- set(t, e) {
2303
- if (!Se.includes(t)) return
2304
- const n = this._running
2305
- ;(n && this.pause(false, false),
2306
- (this._settings[t] = e),
2307
- n ? this.play(false) : this._apply(this.offset, {}, false));
2308
- }
2309
- destruct() {
2310
- (this.stop(),
2311
- this._handlers.forEach(t => {
2312
- t.element
2313
- ? t.element.removeEventListener(t.event, t.handler)
2314
- : t.callback && t.callback.call && t.callback.call();
2315
- }));
2316
- const t = () => {},
2317
- e = Object.getOwnPropertyNames(Object.getPrototypeOf(this))
2318
- ;(e.push(...Object.getOwnPropertyNames(this)),
2319
- e.forEach(e => {
2320
- 'function' == typeof this[e] ? (this[e] = t) : delete this[e];
2321
- }));
2322
- }
2323
- }
2324
- return (Ee.init(), Ee)
2325
- })
2326
- ;(function (s, i, o, w, d, a, b) {
2327
- (a =
2328
- Array.from(d.querySelectorAll('svg#' + i.root)).filter(n => !n.svgatorPlayer)[0] ||
2329
- {}).svgatorPlayer = {
2330
- ready: (function (a) {
2331
- b = [];
2332
- return function (c) {
2333
- return c ? (b.push(c), a.svgatorPlayer) : b
2334
- }
2335
- })(a),
2336
- };
2337
- w[o] = w[o] || {};
2338
- w[o][s] = w[o][s] || [];
2339
- w[o][s].push(i);
2340
- })(
2341
- '91c80d77',
2342
- {
2343
- root: 'e4kx3Cn5VZF1',
2344
- version: '2025-04-07',
2345
- animations: [
2346
- {
2347
- elements: {
2348
- e4kx3Cn5VZF2: {
2349
- transform: {
2350
- data: {
2351
- o: { x: 150, y: 150, type: 'corner' },
2352
- t: { x: -27.535305, y: -27.535305 },
2353
- },
2354
- keys: {
2355
- r: [
2356
- { t: 0, v: 0 },
2357
- { t: 500, v: 190, e: [0, 0, 0.01, 0.995] },
2358
- { t: 1000, v: 175, e: [0, 0, 0.01, 0.995] },
2359
- { t: 1700, v: 180 },
2360
- { t: 2000, v: 180 },
2361
- { t: 2500, v: 360 },
2362
- ],
2363
- s: [
2364
- { t: 0, v: { x: 0, y: 0 } },
2365
- { t: 500, v: { x: 1, y: 1 } },
2366
- { t: 2000, v: { x: 1, y: 1 } },
2367
- { t: 2500, v: { x: 0, y: 0 } },
2368
- ],
2369
- },
2370
- },
2371
- },
2372
- e4kx3Cn5VZF3: {
2373
- transform: {
2374
- data: { t: { x: 0.697393, y: 0.697393 } },
2375
- keys: {
2376
- o: [
2377
- {
2378
- t: 400,
2379
- v: { x: 149.302607, y: 79.302607, type: 'corner' },
2380
- e: [0.25, 0.1, 0.25, 1],
2381
- },
2382
- {
2383
- t: 600,
2384
- v: { x: 219.302607, y: 79.302607, type: 'corner' },
2385
- e: [0.25, 0.1, 0.25, 1],
2386
- },
2387
- {
2388
- t: 1000,
2389
- v: { x: 212.068811, y: 79.302607, type: 'corner' },
2390
- e: [0, 0, 0.01, 0.995],
2391
- },
2392
- { t: 1700, v: { x: 219.302607, y: 79.302607, type: 'corner' } },
2393
- { t: 2000, v: { x: 219.302607, y: 79.302607, type: 'corner' } },
2394
- { t: 2500, v: { x: 150, y: 150, type: 'corner' } },
2395
- ],
2396
- s: [
2397
- { t: 400, v: { x: 0, y: 0 } },
2398
- { t: 700, v: { x: 1, y: 1 } },
2399
- { t: 2000, v: { x: 1, y: 1 } },
2400
- { t: 2200, v: { x: 0, y: 0 } },
2401
- ],
2402
- },
2403
- },
2404
- },
2405
- },
2406
- s: 'MDWA1ZEVhNTRjOAGU5ZjljOGI5DZTkzOTk5ODRRjNjQ1YzVmNWTE1YTU2NGM4ZMU85MzljOGY4XZFI5ZTkzOTkN5ODRjNjQ1YjPU2VDRjOTM5ZXThmOWM4YjllNOTM5OTk4OWQO0YzY0NWE1NjLRjOTA5Mzk2OCTY0YzY0NWI1KNjRjOGI5NjlBlUzhmOWM5ODIhiOWU4Zkk0YIzY0OTA4Yjk2UOWQ4ZjU2NGMV5ZDlhOGY4ZjWhlNGM2NDViRMDU2NGM5MDlhIOWQ0YzY0NWIC1YTVhYTc/',
2407
- },
2408
- ],
2409
- options: 'MDBAxMDgyMjk3YYTdiNjg3OTdiWMjlLNDEyOTcKzNzY2ODZiMjCk4NA|',
2410
- },
2411
- '__SVGATOR_PLAYER__',
2412
- window,
2413
- document,
2414
- );
2415
- });
2416
-
2417
- return (_ctx, _cache) => {
15
+ function _sfc_render(_ctx, _cache) {
2418
16
  return (openBlock(), createElementBlock("svg", _hoisted_1, [...(_cache[0] || (_cache[0] = [
2419
- createElementVNode("polygon", {
2420
- id: "e4kx3Cn5VZF2",
2421
- points: "27.535305,-72.464695 48.748508,6.322102 127.535305,27.535305 48.748508,48.748508 27.535305,127.535305 6.322102,48.748508 -72.464695,27.535305 6.322102,6.322102 27.535305,-72.464695",
2422
- transform: "matrix(0 0 0 0 150 150)",
2423
- fill: "#243d48",
2424
- stroke: "#243d48",
2425
- "stroke-width": "10",
2426
- "stroke-linejoin": "round"
2427
- }, null, -1 /* CACHED */),
2428
- createElementVNode("ellipse", {
2429
- id: "e4kx3Cn5VZF3",
2430
- rx: "27.5",
2431
- ry: "27.5",
2432
- transform: "matrix(0 0 0 0 149.302607 79.302607)",
2433
- fill: "#5e7782",
2434
- "stroke-width": "0"
2435
- }, null, -1 /* CACHED */)
17
+ createStaticVNode("<g transform=\"translate(150, 150)\"><polygon points=\"0,-100 21.213,-21.213 100,0 21.213,21.213 0,100 -21.213,21.213 -100,0 -21.213,-21.213\" fill=\"#243d48\" stroke=\"#243d48\" stroke-width=\"10\" stroke-linejoin=\"round\"><animateTransform attributeName=\"transform\" attributeType=\"XML\" type=\"scale\" values=\"0;1;1;0\" keyTimes=\"0;0.2;0.8;1\" calcMode=\"linear\" dur=\"2.5s\" repeatCount=\"indefinite\" additive=\"sum\"></animateTransform><animateTransform attributeName=\"transform\" attributeType=\"XML\" type=\"rotate\" values=\"0;180;180;360\" keyTimes=\"0;0.2;0.8;1\" calcMode=\"linear\" dur=\"2.5s\" repeatCount=\"indefinite\" additive=\"sum\"></animateTransform></polygon><ellipse id=\"e4kx3Cn5VZF3\" cx=\"70\" cy=\"-70\" rx=\"27.5\" ry=\"27.5\" fill=\"#5e7782\" stroke-width=\"0\"><animateTransform attributeName=\"transform\" attributeType=\"XML\" type=\"scale\" values=\"0;1;1;0\" keyTimes=\"0;0.2;0.80;1\" dur=\"2.5s\" begin=\"0.1s\" repeatCount=\"indefinite\" additive=\"sum\"></animateTransform><animateTransform attributeName=\"transform\" attributeType=\"XML\" type=\"translate\" values=\"-60,00;0,0;0,0;-60,-70\" keyTimes=\"0;0.2;0.80;1\" calcMode=\"linear\" dur=\"2.5s\" begin=\"0.1s\" repeatCount=\"indefinite\" additive=\"sum\"></animateTransform></ellipse></g>", 1)
2436
18
  ]))]))
2437
19
  }
2438
- }
2439
-
2440
- };
20
+ var aiSpinnerIcon = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
2441
21
 
2442
- export { _sfc_main as default };
22
+ export { aiSpinnerIcon as default };
2443
23
  //# sourceMappingURL=ai-spinner-icon.vue.js.map