cecomponent 1.0.16 → 1.0.17
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.
|
@@ -156,7 +156,7 @@ function requireReactJsxRuntime_development() {
|
|
|
156
156
|
}
|
|
157
157
|
function c(_, F, B, N, G, W, K, X) {
|
|
158
158
|
return B = W.ref, _ = {
|
|
159
|
-
$$typeof:
|
|
159
|
+
$$typeof: E,
|
|
160
160
|
type: _,
|
|
161
161
|
key: F,
|
|
162
162
|
props: W,
|
|
@@ -192,13 +192,13 @@ function requireReactJsxRuntime_development() {
|
|
|
192
192
|
if (N)
|
|
193
193
|
if (H(Z)) {
|
|
194
194
|
for (N = 0; N < Z.length; N++)
|
|
195
|
-
|
|
195
|
+
b(Z[N]);
|
|
196
196
|
Object.freeze && Object.freeze(Z);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else
|
|
201
|
+
else b(Z);
|
|
202
202
|
if (V.call(F, "key")) {
|
|
203
203
|
Z = t(_);
|
|
204
204
|
var rt = Object.keys(F).filter(function(it) {
|
|
@@ -236,10 +236,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
X
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
typeof _ == "object" && _ !== null && _.$$typeof ===
|
|
239
|
+
function b(_) {
|
|
240
|
+
typeof _ == "object" && _ !== null && _.$$typeof === E && _._store && (_._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var f = React2__default,
|
|
242
|
+
var f = React2__default, E = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), m = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), $ = Symbol.for("react.client.reference"), O = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, H = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
f = {
|
|
@@ -291,11 +291,11 @@ function requireDist() {
|
|
|
291
291
|
};
|
|
292
292
|
return f.prototype = /* @__PURE__ */ Object.create(null), f;
|
|
293
293
|
})();
|
|
294
|
-
function a(f,
|
|
294
|
+
function a(f, E) {
|
|
295
295
|
const p = new n(), y = f.length;
|
|
296
296
|
if (y < 2)
|
|
297
297
|
return p;
|
|
298
|
-
const k = (
|
|
298
|
+
const k = (E == null ? void 0 : E.decode) || u;
|
|
299
299
|
let d = 0;
|
|
300
300
|
do {
|
|
301
301
|
const x = f.indexOf("=", d);
|
|
@@ -316,29 +316,29 @@ function requireDist() {
|
|
|
316
316
|
} while (d < y);
|
|
317
317
|
return p;
|
|
318
318
|
}
|
|
319
|
-
function l(f,
|
|
319
|
+
function l(f, E, p) {
|
|
320
320
|
do {
|
|
321
|
-
const y = f.charCodeAt(
|
|
321
|
+
const y = f.charCodeAt(E);
|
|
322
322
|
if (y !== 32 && y !== 9)
|
|
323
|
-
return
|
|
324
|
-
} while (++
|
|
323
|
+
return E;
|
|
324
|
+
} while (++E < p);
|
|
325
325
|
return p;
|
|
326
326
|
}
|
|
327
|
-
function o(f,
|
|
328
|
-
for (;
|
|
329
|
-
const y = f.charCodeAt(--
|
|
327
|
+
function o(f, E, p) {
|
|
328
|
+
for (; E > p; ) {
|
|
329
|
+
const y = f.charCodeAt(--E);
|
|
330
330
|
if (y !== 32 && y !== 9)
|
|
331
|
-
return
|
|
331
|
+
return E + 1;
|
|
332
332
|
}
|
|
333
333
|
return p;
|
|
334
334
|
}
|
|
335
|
-
function c(f,
|
|
335
|
+
function c(f, E, p) {
|
|
336
336
|
const y = (p == null ? void 0 : p.encode) || encodeURIComponent;
|
|
337
337
|
if (!t.test(f))
|
|
338
338
|
throw new TypeError(`argument name is invalid: ${f}`);
|
|
339
|
-
const k = y(
|
|
339
|
+
const k = y(E);
|
|
340
340
|
if (!e.test(k))
|
|
341
|
-
throw new TypeError(`argument val is invalid: ${
|
|
341
|
+
throw new TypeError(`argument val is invalid: ${E}`);
|
|
342
342
|
let d = f + "=" + k;
|
|
343
343
|
if (!p)
|
|
344
344
|
return d;
|
|
@@ -358,7 +358,7 @@ function requireDist() {
|
|
|
358
358
|
d += "; Path=" + p.path;
|
|
359
359
|
}
|
|
360
360
|
if (p.expires) {
|
|
361
|
-
if (!
|
|
361
|
+
if (!b(p.expires) || !Number.isFinite(p.expires.valueOf()))
|
|
362
362
|
throw new TypeError(`option expires is invalid: ${p.expires}`);
|
|
363
363
|
d += "; Expires=" + p.expires.toUTCString();
|
|
364
364
|
}
|
|
@@ -402,7 +402,7 @@ function requireDist() {
|
|
|
402
402
|
return f;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function b(f) {
|
|
406
406
|
return s.call(f) === "[object Date]";
|
|
407
407
|
}
|
|
408
408
|
return dist;
|
|
@@ -548,28 +548,28 @@ function compareIndexes(t, e) {
|
|
|
548
548
|
function matchRouteBranch(t, e, r = !1) {
|
|
549
549
|
let { routesMeta: i } = t, s = {}, n = "/", a = [];
|
|
550
550
|
for (let l = 0; l < i.length; ++l) {
|
|
551
|
-
let o = i[l], c = l === i.length - 1, u = n === "/" ? e : e.slice(n.length) || "/",
|
|
551
|
+
let o = i[l], c = l === i.length - 1, u = n === "/" ? e : e.slice(n.length) || "/", b = matchPath(
|
|
552
552
|
{ path: o.relativePath, caseSensitive: o.caseSensitive, end: c },
|
|
553
553
|
u
|
|
554
554
|
), f = o.route;
|
|
555
|
-
if (!
|
|
555
|
+
if (!b && c && r && !i[i.length - 1].route.index && (b = matchPath(
|
|
556
556
|
{
|
|
557
557
|
path: o.relativePath,
|
|
558
558
|
caseSensitive: o.caseSensitive,
|
|
559
559
|
end: !1
|
|
560
560
|
},
|
|
561
561
|
u
|
|
562
|
-
)), !
|
|
562
|
+
)), !b)
|
|
563
563
|
return null;
|
|
564
|
-
Object.assign(s,
|
|
564
|
+
Object.assign(s, b.params), a.push({
|
|
565
565
|
// TODO: Can this as be avoided?
|
|
566
566
|
params: s,
|
|
567
|
-
pathname: joinPaths([n,
|
|
567
|
+
pathname: joinPaths([n, b.pathname]),
|
|
568
568
|
pathnameBase: normalizePathname(
|
|
569
|
-
joinPaths([n,
|
|
569
|
+
joinPaths([n, b.pathnameBase])
|
|
570
570
|
),
|
|
571
571
|
route: f
|
|
572
|
-
}),
|
|
572
|
+
}), b.pathnameBase !== "/" && (n = joinPaths([n, b.pathnameBase]));
|
|
573
573
|
}
|
|
574
574
|
return a;
|
|
575
575
|
}
|
|
@@ -584,13 +584,13 @@ function matchPath(t, e) {
|
|
|
584
584
|
let n = s[0], a = n.replace(/(.)\/+$/, "$1"), l = s.slice(1);
|
|
585
585
|
return {
|
|
586
586
|
params: i.reduce(
|
|
587
|
-
(c, { paramName: u, isOptional:
|
|
587
|
+
(c, { paramName: u, isOptional: b }, f) => {
|
|
588
588
|
if (u === "*") {
|
|
589
589
|
let p = l[f] || "";
|
|
590
590
|
a = n.slice(0, n.length - p.length).replace(/(.)\/+$/, "$1");
|
|
591
591
|
}
|
|
592
|
-
const
|
|
593
|
-
return
|
|
592
|
+
const E = l[f];
|
|
593
|
+
return b && !E ? c[u] = void 0 : c[u] = (E || "").replace(/%2F/g, "/"), c;
|
|
594
594
|
},
|
|
595
595
|
{}
|
|
596
596
|
),
|
|
@@ -677,14 +677,14 @@ function resolveTo(t, e, r, i = !1) {
|
|
|
677
677
|
if (a == null)
|
|
678
678
|
l = r;
|
|
679
679
|
else {
|
|
680
|
-
let
|
|
680
|
+
let b = e.length - 1;
|
|
681
681
|
if (!i && a.startsWith("..")) {
|
|
682
682
|
let f = a.split("/");
|
|
683
683
|
for (; f[0] === ".."; )
|
|
684
|
-
f.shift(),
|
|
684
|
+
f.shift(), b -= 1;
|
|
685
685
|
s.pathname = f.join("/");
|
|
686
686
|
}
|
|
687
|
-
l =
|
|
687
|
+
l = b >= 0 ? e[b] : "/";
|
|
688
688
|
}
|
|
689
689
|
let o = resolvePath(s, l), c = a && a !== "/" && a.endsWith("/"), u = (n || a === ".") && r.endsWith("/");
|
|
690
690
|
return !o.pathname.endsWith("/") && (c || u) && (o.pathname += "/"), o;
|
|
@@ -835,12 +835,12 @@ function useRoutesImpl(t, e, r, i) {
|
|
|
835
835
|
Please change the parent <Route path="${d}"> to <Route path="${d === "/" ? "*" : `${d}/*`}">.`
|
|
836
836
|
);
|
|
837
837
|
}
|
|
838
|
-
let
|
|
839
|
-
f =
|
|
840
|
-
let
|
|
838
|
+
let b = useLocation(), f;
|
|
839
|
+
f = b;
|
|
840
|
+
let E = f.pathname || "/", p = E;
|
|
841
841
|
if (c !== "/") {
|
|
842
842
|
let d = c.replace(/^\//, "").split("/");
|
|
843
|
-
p = "/" +
|
|
843
|
+
p = "/" + E.replace(/^\//, "").split("/").slice(d.length).join("/");
|
|
844
844
|
}
|
|
845
845
|
let y = matchRoutes(t, { pathname: p });
|
|
846
846
|
return warning(
|
|
@@ -951,7 +951,7 @@ function _renderMatches(t, e = [], r = null, i = null) {
|
|
|
951
951
|
for (let o = 0; o < s.length; o++) {
|
|
952
952
|
let c = s[o];
|
|
953
953
|
if ((c.route.HydrateFallback || c.route.hydrateFallbackElement) && (l = o), c.route.id) {
|
|
954
|
-
let { loaderData: u, errors:
|
|
954
|
+
let { loaderData: u, errors: b } = r, f = c.route.loader && !u.hasOwnProperty(c.route.id) && (!b || b[c.route.id] === void 0);
|
|
955
955
|
if (c.route.lazy || f) {
|
|
956
956
|
a = !0, l >= 0 ? s = s.slice(0, l + 1) : s = [s[0]];
|
|
957
957
|
break;
|
|
@@ -959,15 +959,15 @@ function _renderMatches(t, e = [], r = null, i = null) {
|
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
return s.reduceRight((o, c, u) => {
|
|
962
|
-
let
|
|
963
|
-
r && (
|
|
962
|
+
let b, f = !1, E = null, p = null;
|
|
963
|
+
r && (b = n && c.route.id ? n[c.route.id] : void 0, E = c.route.errorElement || defaultErrorElement, a && (l < 0 && u === 0 ? (warningOnce(
|
|
964
964
|
"route-fallback",
|
|
965
965
|
!1,
|
|
966
966
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
967
967
|
), f = !0, p = null) : l === u && (f = !0, p = c.route.hydrateFallbackElement || null)));
|
|
968
968
|
let y = e.concat(s.slice(0, u + 1)), k = () => {
|
|
969
969
|
let d;
|
|
970
|
-
return
|
|
970
|
+
return b ? d = E : f ? d = p : c.route.Component ? d = /* @__PURE__ */ React2.createElement(c.route.Component, null) : c.route.element ? d = c.route.element : d = o, /* @__PURE__ */ React2.createElement(
|
|
971
971
|
RenderedRoute,
|
|
972
972
|
{
|
|
973
973
|
match: c,
|
|
@@ -985,8 +985,8 @@ function _renderMatches(t, e = [], r = null, i = null) {
|
|
|
985
985
|
{
|
|
986
986
|
location: r.location,
|
|
987
987
|
revalidation: r.revalidation,
|
|
988
|
-
component:
|
|
989
|
-
error:
|
|
988
|
+
component: E,
|
|
989
|
+
error: b,
|
|
990
990
|
children: k(),
|
|
991
991
|
routeContext: { outlet: null, matches: y, isDataRoute: !0 }
|
|
992
992
|
}
|
|
@@ -1120,11 +1120,11 @@ function getFormSubmissionInfo(t, e) {
|
|
|
1120
1120
|
);
|
|
1121
1121
|
let o = t.getAttribute("formaction") || l.getAttribute("action");
|
|
1122
1122
|
if (i = o ? stripBasename(o, e) : null, r = t.getAttribute("formmethod") || l.getAttribute("method") || defaultMethod, s = getFormEncType(t.getAttribute("formenctype")) || getFormEncType(l.getAttribute("enctype")) || defaultEncType, n = new FormData(l, t), !isFormDataSubmitterSupported()) {
|
|
1123
|
-
let { name: c, type: u, value:
|
|
1123
|
+
let { name: c, type: u, value: b } = t;
|
|
1124
1124
|
if (u === "image") {
|
|
1125
1125
|
let f = c ? `${c}.` : "";
|
|
1126
1126
|
n.append(`${f}x`, "0"), n.append(`${f}y`, "0");
|
|
1127
|
-
} else c && n.append(c,
|
|
1127
|
+
} else c && n.append(c, b);
|
|
1128
1128
|
}
|
|
1129
1129
|
} else {
|
|
1130
1130
|
if (isHtmlElement(t))
|
|
@@ -1189,7 +1189,7 @@ function getNewMatchesForLinks(t, e, r, i, s, n) {
|
|
|
1189
1189
|
return n === "assets" ? e.filter(
|
|
1190
1190
|
(o, c) => a(o, c) || l(o, c)
|
|
1191
1191
|
) : n === "data" ? e.filter((o, c) => {
|
|
1192
|
-
var
|
|
1192
|
+
var b;
|
|
1193
1193
|
let u = i.routes[o.route.id];
|
|
1194
1194
|
if (!u || !u.hasLoader)
|
|
1195
1195
|
return !1;
|
|
@@ -1201,7 +1201,7 @@ function getNewMatchesForLinks(t, e, r, i, s, n) {
|
|
|
1201
1201
|
s.pathname + s.search + s.hash,
|
|
1202
1202
|
window.origin
|
|
1203
1203
|
),
|
|
1204
|
-
currentParams: ((
|
|
1204
|
+
currentParams: ((b = r[0]) == null ? void 0 : b.params) || {},
|
|
1205
1205
|
nextUrl: new URL(t, window.origin),
|
|
1206
1206
|
nextParams: o.params,
|
|
1207
1207
|
defaultShouldRevalidate: !0
|
|
@@ -1273,7 +1273,7 @@ function useFrameworkContext() {
|
|
|
1273
1273
|
), t;
|
|
1274
1274
|
}
|
|
1275
1275
|
function usePrefetchBehavior(t, e) {
|
|
1276
|
-
let r = React2.useContext(FrameworkContext), [i, s] = React2.useState(!1), [n, a] = React2.useState(!1), { onFocus: l, onBlur: o, onMouseEnter: c, onMouseLeave: u, onTouchStart:
|
|
1276
|
+
let r = React2.useContext(FrameworkContext), [i, s] = React2.useState(!1), [n, a] = React2.useState(!1), { onFocus: l, onBlur: o, onMouseEnter: c, onMouseLeave: u, onTouchStart: b } = e, f = React2.useRef(null);
|
|
1277
1277
|
React2.useEffect(() => {
|
|
1278
1278
|
if (t === "render" && a(!0), t === "viewport") {
|
|
1279
1279
|
let y = (d) => {
|
|
@@ -1295,7 +1295,7 @@ function usePrefetchBehavior(t, e) {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
1297
|
}, [i]);
|
|
1298
|
-
let
|
|
1298
|
+
let E = () => {
|
|
1299
1299
|
s(!0);
|
|
1300
1300
|
}, p = () => {
|
|
1301
1301
|
s(!1), a(!1);
|
|
@@ -1304,11 +1304,11 @@ function usePrefetchBehavior(t, e) {
|
|
|
1304
1304
|
n,
|
|
1305
1305
|
f,
|
|
1306
1306
|
{
|
|
1307
|
-
onFocus: composeEventHandlers(l,
|
|
1307
|
+
onFocus: composeEventHandlers(l, E),
|
|
1308
1308
|
onBlur: composeEventHandlers(o, p),
|
|
1309
|
-
onMouseEnter: composeEventHandlers(c,
|
|
1309
|
+
onMouseEnter: composeEventHandlers(c, E),
|
|
1310
1310
|
onMouseLeave: composeEventHandlers(u, p),
|
|
1311
|
-
onTouchStart: composeEventHandlers(
|
|
1311
|
+
onTouchStart: composeEventHandlers(b, E)
|
|
1312
1312
|
}
|
|
1313
1313
|
] : [!1, f, {}];
|
|
1314
1314
|
}
|
|
@@ -1365,7 +1365,7 @@ function PrefetchPageLinksImpl({
|
|
|
1365
1365
|
"assets"
|
|
1366
1366
|
),
|
|
1367
1367
|
[t, e, o, s, i]
|
|
1368
|
-
),
|
|
1368
|
+
), b = React2.useMemo(() => {
|
|
1369
1369
|
if (t === i.pathname + i.search + i.hash)
|
|
1370
1370
|
return [];
|
|
1371
1371
|
let p = /* @__PURE__ */ new Set(), y = !1;
|
|
@@ -1392,8 +1392,8 @@ function PrefetchPageLinksImpl({
|
|
|
1392
1392
|
]), f = React2.useMemo(
|
|
1393
1393
|
() => getModuleLinkHrefs(u, s),
|
|
1394
1394
|
[u, s]
|
|
1395
|
-
),
|
|
1396
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null,
|
|
1395
|
+
), E = useKeyedPrefetchLinks(u);
|
|
1396
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, b.map((p) => /* @__PURE__ */ React2.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...r })), f.map((p) => /* @__PURE__ */ React2.createElement("link", { key: p, rel: "modulepreload", href: p, ...r })), E.map(({ key: p, link: y }) => (
|
|
1397
1397
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1398
1398
|
// already with their own props
|
|
1399
1399
|
/* @__PURE__ */ React2.createElement("link", { key: p, ...y })
|
|
@@ -1423,9 +1423,9 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1423
1423
|
target: o,
|
|
1424
1424
|
to: c,
|
|
1425
1425
|
preventScrollReset: u,
|
|
1426
|
-
viewTransition:
|
|
1426
|
+
viewTransition: b,
|
|
1427
1427
|
...f
|
|
1428
|
-
},
|
|
1428
|
+
}, E) {
|
|
1429
1429
|
let { basename: p } = React2.useContext(NavigationContext), y = typeof c == "string" && ABSOLUTE_URL_REGEX2.test(c), k, d = !1;
|
|
1430
1430
|
if (typeof c == "string" && y && (k = c, isBrowser))
|
|
1431
1431
|
try {
|
|
@@ -1446,7 +1446,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1446
1446
|
target: o,
|
|
1447
1447
|
preventScrollReset: u,
|
|
1448
1448
|
relative: s,
|
|
1449
|
-
viewTransition:
|
|
1449
|
+
viewTransition: b
|
|
1450
1450
|
});
|
|
1451
1451
|
function T(I) {
|
|
1452
1452
|
e && e(I), I.defaultPrevented || P(I);
|
|
@@ -1460,7 +1460,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1460
1460
|
...C,
|
|
1461
1461
|
href: k || x,
|
|
1462
1462
|
onClick: d || n ? e : T,
|
|
1463
|
-
ref: mergeRefs(
|
|
1463
|
+
ref: mergeRefs(E, g),
|
|
1464
1464
|
target: o,
|
|
1465
1465
|
"data-discover": !y && r === "render" ? "true" : void 0
|
|
1466
1466
|
}
|
|
@@ -1482,9 +1482,9 @@ var NavLink = React2.forwardRef(
|
|
|
1482
1482
|
children: o,
|
|
1483
1483
|
...c
|
|
1484
1484
|
}, u) {
|
|
1485
|
-
let
|
|
1485
|
+
let b = useResolvedPath(a, { relative: c.relative }), f = useLocation(), E = React2.useContext(DataRouterStateContext), { navigator: p, basename: y } = React2.useContext(NavigationContext), k = E != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1486
1486
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1487
|
-
useViewTransitionState(
|
|
1487
|
+
useViewTransitionState(b) && l === !0, d = p.encodeLocation ? p.encodeLocation(b).pathname : b.pathname, x = f.pathname, m = E && E.navigation && E.navigation.location ? E.navigation.location.pathname : null;
|
|
1488
1488
|
r || (x = x.toLowerCase(), m = m ? m.toLowerCase() : null, d = d.toLowerCase()), m && y && (m = stripBasename(m, y) || m);
|
|
1489
1489
|
const g = d !== "/" && d.endsWith("/") ? d.length - 1 : d.length;
|
|
1490
1490
|
let C = x === d || !s && x.startsWith(d) && x.charAt(g) === "/", P = m != null && (m === d || !s && m.startsWith(d) && m.charAt(d.length) === "/"), T = {
|
|
@@ -1528,9 +1528,9 @@ var Form = React2.forwardRef(
|
|
|
1528
1528
|
onSubmit: o,
|
|
1529
1529
|
relative: c,
|
|
1530
1530
|
preventScrollReset: u,
|
|
1531
|
-
viewTransition:
|
|
1531
|
+
viewTransition: b,
|
|
1532
1532
|
...f
|
|
1533
|
-
},
|
|
1533
|
+
}, E) => {
|
|
1534
1534
|
let p = useSubmit(), y = useFormAction(l, { relative: c }), k = a.toLowerCase() === "get" ? "get" : "post", d = typeof l == "string" && ABSOLUTE_URL_REGEX2.test(l), x = (m) => {
|
|
1535
1535
|
if (o && o(m), m.defaultPrevented) return;
|
|
1536
1536
|
m.preventDefault();
|
|
@@ -1543,13 +1543,13 @@ var Form = React2.forwardRef(
|
|
|
1543
1543
|
state: n,
|
|
1544
1544
|
relative: c,
|
|
1545
1545
|
preventScrollReset: u,
|
|
1546
|
-
viewTransition:
|
|
1546
|
+
viewTransition: b
|
|
1547
1547
|
});
|
|
1548
1548
|
};
|
|
1549
1549
|
return /* @__PURE__ */ React2.createElement(
|
|
1550
1550
|
"form",
|
|
1551
1551
|
{
|
|
1552
|
-
ref:
|
|
1552
|
+
ref: E,
|
|
1553
1553
|
method: k,
|
|
1554
1554
|
action: y,
|
|
1555
1555
|
onSubmit: i ? o : x,
|
|
@@ -1580,9 +1580,9 @@ function useLinkClickHandler(t, {
|
|
|
1580
1580
|
(u) => {
|
|
1581
1581
|
if (shouldProcessLinkClick(u, e)) {
|
|
1582
1582
|
u.preventDefault();
|
|
1583
|
-
let
|
|
1583
|
+
let b = r !== void 0 ? r : createPath(o) === createPath(c);
|
|
1584
1584
|
l(t, {
|
|
1585
|
-
replace:
|
|
1585
|
+
replace: b,
|
|
1586
1586
|
state: i,
|
|
1587
1587
|
preventScrollReset: s,
|
|
1588
1588
|
relative: n,
|
|
@@ -1651,7 +1651,7 @@ function useFormAction(t, { relative: e } = {}) {
|
|
|
1651
1651
|
n.search = a.search;
|
|
1652
1652
|
let l = new URLSearchParams(n.search), o = l.getAll("index");
|
|
1653
1653
|
if (o.some((u) => u === "")) {
|
|
1654
|
-
l.delete("index"), o.filter((
|
|
1654
|
+
l.delete("index"), o.filter((b) => b).forEach((b) => l.append("index", b));
|
|
1655
1655
|
let u = l.toString();
|
|
1656
1656
|
n.search = u ? `?${u}` : "";
|
|
1657
1657
|
}
|
|
@@ -1677,25 +1677,25 @@ function useViewTransitionState(t, e = {}) {
|
|
|
1677
1677
|
...NO_BODY_STATUS_CODES
|
|
1678
1678
|
];
|
|
1679
1679
|
const Breadcrumbs = ({ items: t, maxVisible: e = 4, onItemClick: r }) => {
|
|
1680
|
-
const [i, s] = useState(!1), n = () => s((f) => !f), a = (f,
|
|
1681
|
-
f && f(),
|
|
1682
|
-
}, l = t.length > e, o = t[0], c = t[t.length - 1], u = t.slice(1, t.length - 1),
|
|
1680
|
+
const [i, s] = useState(!1), n = () => s((f) => !f), a = (f, E) => {
|
|
1681
|
+
f && f(), E !== void 0 && (r == null || r(E)), s(!1);
|
|
1682
|
+
}, l = t.length > e, o = t[0], c = t[t.length - 1], u = t.slice(1, t.length - 1), b = l ? [] : u;
|
|
1683
1683
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: "breadcrumbs", children: [
|
|
1684
1684
|
o && renderLink(o, !1, 0, r),
|
|
1685
1685
|
l && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "breadcrumbs-menu", children: [
|
|
1686
1686
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: n, className: "breadcrumbs-collapse-button", children: "..." }),
|
|
1687
|
-
i && /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "breadcrumbs-dropdown", children: u.map((f,
|
|
1687
|
+
i && /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "breadcrumbs-dropdown", children: u.map((f, E) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1688
1688
|
Link,
|
|
1689
1689
|
{
|
|
1690
1690
|
to: f.href || "#",
|
|
1691
|
-
onClick: () => a(f.onClick,
|
|
1691
|
+
onClick: () => a(f.onClick, E + 1),
|
|
1692
1692
|
className: "breadcrumbs-item",
|
|
1693
1693
|
children: f.label
|
|
1694
1694
|
}
|
|
1695
|
-
) },
|
|
1695
|
+
) }, E)) })
|
|
1696
1696
|
] }),
|
|
1697
|
-
!l &&
|
|
1698
|
-
(f,
|
|
1697
|
+
!l && b.map(
|
|
1698
|
+
(f, E) => renderLink(f, !1, E + 1, r)
|
|
1699
1699
|
),
|
|
1700
1700
|
c && t.length > 1 && renderLink(c, !0, t.length - 1, r)
|
|
1701
1701
|
] });
|
|
@@ -2058,29 +2058,29 @@ function toFormData$1(t, e, r) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
return isVisitable(p) ? !0 : (e.append(renderKey(k, y, n), c(p)), !1);
|
|
2060
2060
|
}
|
|
2061
|
-
const
|
|
2061
|
+
const b = [], f = Object.assign(predicates, {
|
|
2062
2062
|
defaultVisitor: u,
|
|
2063
2063
|
convertValue: c,
|
|
2064
2064
|
isVisitable
|
|
2065
2065
|
});
|
|
2066
|
-
function
|
|
2066
|
+
function E(p, y) {
|
|
2067
2067
|
if (!utils$1.isUndefined(p)) {
|
|
2068
|
-
if (
|
|
2068
|
+
if (b.indexOf(p) !== -1)
|
|
2069
2069
|
throw Error("Circular reference detected in " + y.join("."));
|
|
2070
|
-
|
|
2070
|
+
b.push(p), utils$1.forEach(p, function(d, x) {
|
|
2071
2071
|
(!(utils$1.isUndefined(d) || d === null) && s.call(
|
|
2072
2072
|
e,
|
|
2073
2073
|
d,
|
|
2074
2074
|
utils$1.isString(x) ? x.trim() : x,
|
|
2075
2075
|
y,
|
|
2076
2076
|
f
|
|
2077
|
-
)) === !0 &&
|
|
2078
|
-
}),
|
|
2077
|
+
)) === !0 && E(d, y ? y.concat(x) : [x]);
|
|
2078
|
+
}), b.pop();
|
|
2079
2079
|
}
|
|
2080
2080
|
}
|
|
2081
2081
|
if (!utils$1.isObject(t))
|
|
2082
2082
|
throw new TypeError("data must be an object");
|
|
2083
|
-
return
|
|
2083
|
+
return E(t), e;
|
|
2084
2084
|
}
|
|
2085
2085
|
function encode$1(t) {
|
|
2086
2086
|
const e = {
|
|
@@ -2394,8 +2394,8 @@ let AxiosHeaders$1 = class {
|
|
|
2394
2394
|
const u = normalizeHeader(o);
|
|
2395
2395
|
if (!u)
|
|
2396
2396
|
throw new Error("header name must be a non-empty string");
|
|
2397
|
-
const
|
|
2398
|
-
(!
|
|
2397
|
+
const b = utils$1.findKey(s, u);
|
|
2398
|
+
(!b || s[b] === void 0 || c === !0 || c === void 0 && s[b] !== !1) && (s[b || o] = normalizeValue(l));
|
|
2399
2399
|
}
|
|
2400
2400
|
const a = (l, o) => utils$1.forEach(l, (c, u) => n(c, u, o));
|
|
2401
2401
|
if (utils$1.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -2550,13 +2550,13 @@ function speedometer(t, e) {
|
|
|
2550
2550
|
return e = e !== void 0 ? e : 1e3, function(o) {
|
|
2551
2551
|
const c = Date.now(), u = i[n];
|
|
2552
2552
|
a || (a = c), r[s] = o, i[s] = c;
|
|
2553
|
-
let
|
|
2554
|
-
for (;
|
|
2555
|
-
f += r[
|
|
2553
|
+
let b = n, f = 0;
|
|
2554
|
+
for (; b !== s; )
|
|
2555
|
+
f += r[b++], b = b % t;
|
|
2556
2556
|
if (s = (s + 1) % t, s === n && (n = (n + 1) % t), c - a < e)
|
|
2557
2557
|
return;
|
|
2558
|
-
const
|
|
2559
|
-
return
|
|
2558
|
+
const E = u && c - u;
|
|
2559
|
+
return E ? Math.round(f * 1e3 / E) : void 0;
|
|
2560
2560
|
};
|
|
2561
2561
|
}
|
|
2562
2562
|
function throttle(t, e) {
|
|
@@ -2565,10 +2565,10 @@ function throttle(t, e) {
|
|
|
2565
2565
|
r = u, s = null, n && (clearTimeout(n), n = null), t.apply(null, c);
|
|
2566
2566
|
};
|
|
2567
2567
|
return [(...c) => {
|
|
2568
|
-
const u = Date.now(),
|
|
2569
|
-
|
|
2568
|
+
const u = Date.now(), b = u - r;
|
|
2569
|
+
b >= i ? a(c, u) : (s = c, n || (n = setTimeout(() => {
|
|
2570
2570
|
n = null, a(s);
|
|
2571
|
-
}, i -
|
|
2571
|
+
}, i - b)));
|
|
2572
2572
|
}, () => s && a(s)];
|
|
2573
2573
|
}
|
|
2574
2574
|
const progressEventReducer = (t, e, r = 3) => {
|
|
@@ -2577,7 +2577,7 @@ const progressEventReducer = (t, e, r = 3) => {
|
|
|
2577
2577
|
return throttle((n) => {
|
|
2578
2578
|
const a = n.loaded, l = n.lengthComputable ? n.total : void 0, o = a - i, c = s(o), u = a <= l;
|
|
2579
2579
|
i = a;
|
|
2580
|
-
const
|
|
2580
|
+
const b = {
|
|
2581
2581
|
loaded: a,
|
|
2582
2582
|
total: l,
|
|
2583
2583
|
progress: l ? a / l : void 0,
|
|
@@ -2588,7 +2588,7 @@ const progressEventReducer = (t, e, r = 3) => {
|
|
|
2588
2588
|
lengthComputable: l != null,
|
|
2589
2589
|
[e ? "download" : "upload"]: !0
|
|
2590
2590
|
};
|
|
2591
|
-
t(
|
|
2591
|
+
t(b);
|
|
2592
2592
|
}, r);
|
|
2593
2593
|
}, progressEventDecorator = (t, e) => {
|
|
2594
2594
|
const r = t != null;
|
|
@@ -2641,14 +2641,14 @@ const headersToObject = (t) => t instanceof AxiosHeaders$1 ? { ...t } : t;
|
|
|
2641
2641
|
function mergeConfig$1(t, e) {
|
|
2642
2642
|
e = e || {};
|
|
2643
2643
|
const r = {};
|
|
2644
|
-
function i(c, u,
|
|
2644
|
+
function i(c, u, b, f) {
|
|
2645
2645
|
return utils$1.isPlainObject(c) && utils$1.isPlainObject(u) ? utils$1.merge.call({ caseless: f }, c, u) : utils$1.isPlainObject(u) ? utils$1.merge({}, u) : utils$1.isArray(u) ? u.slice() : u;
|
|
2646
2646
|
}
|
|
2647
|
-
function s(c, u,
|
|
2647
|
+
function s(c, u, b, f) {
|
|
2648
2648
|
if (utils$1.isUndefined(u)) {
|
|
2649
2649
|
if (!utils$1.isUndefined(c))
|
|
2650
|
-
return i(void 0, c,
|
|
2651
|
-
} else return i(c, u,
|
|
2650
|
+
return i(void 0, c, b, f);
|
|
2651
|
+
} else return i(c, u, b, f);
|
|
2652
2652
|
}
|
|
2653
2653
|
function n(c, u) {
|
|
2654
2654
|
if (!utils$1.isUndefined(u))
|
|
@@ -2660,10 +2660,10 @@ function mergeConfig$1(t, e) {
|
|
|
2660
2660
|
return i(void 0, c);
|
|
2661
2661
|
} else return i(void 0, u);
|
|
2662
2662
|
}
|
|
2663
|
-
function l(c, u,
|
|
2664
|
-
if (
|
|
2663
|
+
function l(c, u, b) {
|
|
2664
|
+
if (b in e)
|
|
2665
2665
|
return i(c, u);
|
|
2666
|
-
if (
|
|
2666
|
+
if (b in t)
|
|
2667
2667
|
return i(void 0, c);
|
|
2668
2668
|
}
|
|
2669
2669
|
const o = {
|
|
@@ -2695,11 +2695,11 @@ function mergeConfig$1(t, e) {
|
|
|
2695
2695
|
socketPath: a,
|
|
2696
2696
|
responseEncoding: a,
|
|
2697
2697
|
validateStatus: l,
|
|
2698
|
-
headers: (c, u,
|
|
2698
|
+
headers: (c, u, b) => s(headersToObject(c), headersToObject(u), b, !0)
|
|
2699
2699
|
};
|
|
2700
2700
|
return utils$1.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
|
2701
|
-
const
|
|
2702
|
-
utils$1.isUndefined(f) &&
|
|
2701
|
+
const b = o[u] || s, f = b(t[u], e[u], u);
|
|
2702
|
+
utils$1.isUndefined(f) && b !== l || (r[u] = f);
|
|
2703
2703
|
}), r;
|
|
2704
2704
|
}
|
|
2705
2705
|
const resolveConfig = (t) => {
|
|
@@ -2714,7 +2714,7 @@ const resolveConfig = (t) => {
|
|
|
2714
2714
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv)
|
|
2715
2715
|
a.setContentType(void 0);
|
|
2716
2716
|
else if ((o = a.getContentType()) !== !1) {
|
|
2717
|
-
const [c, ...u] = o ? o.split(";").map((
|
|
2717
|
+
const [c, ...u] = o ? o.split(";").map((b) => b.trim()).filter(Boolean) : [];
|
|
2718
2718
|
a.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
@@ -2728,9 +2728,9 @@ const resolveConfig = (t) => {
|
|
|
2728
2728
|
const s = resolveConfig(t);
|
|
2729
2729
|
let n = s.data;
|
|
2730
2730
|
const a = AxiosHeaders$1.from(s.headers).normalize();
|
|
2731
|
-
let { responseType: l, onUploadProgress: o, onDownloadProgress: c } = s, u,
|
|
2731
|
+
let { responseType: l, onUploadProgress: o, onDownloadProgress: c } = s, u, b, f, E, p;
|
|
2732
2732
|
function y() {
|
|
2733
|
-
|
|
2733
|
+
E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
2734
2734
|
}
|
|
2735
2735
|
let k = new XMLHttpRequest();
|
|
2736
2736
|
k.open(s.method.toUpperCase(), s.url, !0), k.timeout = s.timeout;
|
|
@@ -2770,7 +2770,7 @@ const resolveConfig = (t) => {
|
|
|
2770
2770
|
)), k = null;
|
|
2771
2771
|
}, n === void 0 && a.setContentType(null), "setRequestHeader" in k && utils$1.forEach(a.toJSON(), function(g, C) {
|
|
2772
2772
|
k.setRequestHeader(C, g);
|
|
2773
|
-
}), utils$1.isUndefined(s.withCredentials) || (k.withCredentials = !!s.withCredentials), l && l !== "json" && (k.responseType = s.responseType), c && ([f, p] = progressEventReducer(c, !0), k.addEventListener("progress", f)), o && k.upload && ([
|
|
2773
|
+
}), utils$1.isUndefined(s.withCredentials) || (k.withCredentials = !!s.withCredentials), l && l !== "json" && (k.responseType = s.responseType), c && ([f, p] = progressEventReducer(c, !0), k.addEventListener("progress", f)), o && k.upload && ([b, E] = progressEventReducer(o), k.upload.addEventListener("progress", b), k.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (m) => {
|
|
2774
2774
|
k && (i(!m || m.type ? new CanceledError$1(null, t, k) : m), k.abort(), k = null);
|
|
2775
2775
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
2776
2776
|
const x = parseProtocol(s.url);
|
|
@@ -2844,9 +2844,9 @@ const resolveConfig = (t) => {
|
|
|
2844
2844
|
l(), o.close();
|
|
2845
2845
|
return;
|
|
2846
2846
|
}
|
|
2847
|
-
let
|
|
2847
|
+
let b = u.byteLength;
|
|
2848
2848
|
if (r) {
|
|
2849
|
-
let f = n +=
|
|
2849
|
+
let f = n += b;
|
|
2850
2850
|
r(f);
|
|
2851
2851
|
}
|
|
2852
2852
|
o.enqueue(new Uint8Array(u));
|
|
@@ -2915,13 +2915,13 @@ const getBodyLength = async (t) => {
|
|
|
2915
2915
|
onUploadProgress: o,
|
|
2916
2916
|
responseType: c,
|
|
2917
2917
|
headers: u,
|
|
2918
|
-
withCredentials:
|
|
2918
|
+
withCredentials: b = "same-origin",
|
|
2919
2919
|
fetchOptions: f
|
|
2920
2920
|
} = resolveConfig(t);
|
|
2921
2921
|
c = c ? (c + "").toLowerCase() : "text";
|
|
2922
|
-
let
|
|
2923
|
-
const y =
|
|
2924
|
-
|
|
2922
|
+
let E = composeSignals([s, n && n.toAbortSignal()], a), p;
|
|
2923
|
+
const y = E && E.unsubscribe && (() => {
|
|
2924
|
+
E.unsubscribe();
|
|
2925
2925
|
});
|
|
2926
2926
|
let k;
|
|
2927
2927
|
try {
|
|
@@ -2939,16 +2939,16 @@ const getBodyLength = async (t) => {
|
|
|
2939
2939
|
i = trackStream(C.body, DEFAULT_CHUNK_SIZE, T, M);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
utils$1.isString(
|
|
2942
|
+
utils$1.isString(b) || (b = b ? "include" : "omit");
|
|
2943
2943
|
const d = "credentials" in Request.prototype;
|
|
2944
2944
|
p = new Request(e, {
|
|
2945
2945
|
...f,
|
|
2946
|
-
signal:
|
|
2946
|
+
signal: E,
|
|
2947
2947
|
method: r.toUpperCase(),
|
|
2948
2948
|
headers: u.normalize().toJSON(),
|
|
2949
2949
|
body: i,
|
|
2950
2950
|
duplex: "half",
|
|
2951
|
-
credentials: d ?
|
|
2951
|
+
credentials: d ? b : void 0
|
|
2952
2952
|
});
|
|
2953
2953
|
let x = await fetch(p);
|
|
2954
2954
|
const m = supportsResponseStream && (c === "stream" || c === "response");
|
|
@@ -3171,31 +3171,31 @@ let Axios$1 = class {
|
|
|
3171
3171
|
this.interceptors.response.forEach(function(y) {
|
|
3172
3172
|
c.push(y.fulfilled, y.rejected);
|
|
3173
3173
|
});
|
|
3174
|
-
let u,
|
|
3174
|
+
let u, b = 0, f;
|
|
3175
3175
|
if (!o) {
|
|
3176
3176
|
const p = [dispatchRequest.bind(this), void 0];
|
|
3177
|
-
for (p.unshift.apply(p, l), p.push.apply(p, c), f = p.length, u = Promise.resolve(r);
|
|
3178
|
-
u = u.then(p[
|
|
3177
|
+
for (p.unshift.apply(p, l), p.push.apply(p, c), f = p.length, u = Promise.resolve(r); b < f; )
|
|
3178
|
+
u = u.then(p[b++], p[b++]);
|
|
3179
3179
|
return u;
|
|
3180
3180
|
}
|
|
3181
3181
|
f = l.length;
|
|
3182
|
-
let
|
|
3183
|
-
for (
|
|
3184
|
-
const p = l[
|
|
3182
|
+
let E = r;
|
|
3183
|
+
for (b = 0; b < f; ) {
|
|
3184
|
+
const p = l[b++], y = l[b++];
|
|
3185
3185
|
try {
|
|
3186
|
-
|
|
3186
|
+
E = p(E);
|
|
3187
3187
|
} catch (k) {
|
|
3188
3188
|
y.call(this, k);
|
|
3189
3189
|
break;
|
|
3190
3190
|
}
|
|
3191
3191
|
}
|
|
3192
3192
|
try {
|
|
3193
|
-
u = dispatchRequest.call(this,
|
|
3193
|
+
u = dispatchRequest.call(this, E);
|
|
3194
3194
|
} catch (p) {
|
|
3195
3195
|
return Promise.reject(p);
|
|
3196
3196
|
}
|
|
3197
|
-
for (
|
|
3198
|
-
u = u.then(c[
|
|
3197
|
+
for (b = 0, f = c.length; b < f; )
|
|
3198
|
+
u = u.then(c[b++], c[b++]);
|
|
3199
3199
|
return u;
|
|
3200
3200
|
}
|
|
3201
3201
|
getUri(e) {
|
|
@@ -3427,15 +3427,15 @@ const {
|
|
|
3427
3427
|
if (f)
|
|
3428
3428
|
if (l) {
|
|
3429
3429
|
f.style.display = "block";
|
|
3430
|
-
const
|
|
3431
|
-
u({ maxHeight:
|
|
3430
|
+
const E = f.scrollHeight;
|
|
3431
|
+
u({ maxHeight: E });
|
|
3432
3432
|
const p = setTimeout(() => {
|
|
3433
3433
|
u({ maxHeight: "none" });
|
|
3434
3434
|
}, 300);
|
|
3435
3435
|
return () => clearTimeout(p);
|
|
3436
3436
|
} else {
|
|
3437
|
-
const
|
|
3438
|
-
u({ maxHeight:
|
|
3437
|
+
const E = f.scrollHeight;
|
|
3438
|
+
u({ maxHeight: E });
|
|
3439
3439
|
const p = setTimeout(() => {
|
|
3440
3440
|
u({ maxHeight: 0 });
|
|
3441
3441
|
}, 20), y = setTimeout(() => {
|
|
@@ -3446,7 +3446,7 @@ const {
|
|
|
3446
3446
|
};
|
|
3447
3447
|
}
|
|
3448
3448
|
}, [l]);
|
|
3449
|
-
const
|
|
3449
|
+
const b = () => {
|
|
3450
3450
|
i((f) => ({
|
|
3451
3451
|
...f,
|
|
3452
3452
|
[a]: !f[a]
|
|
@@ -3458,7 +3458,7 @@ const {
|
|
|
3458
3458
|
{
|
|
3459
3459
|
className: "drawer-item-header",
|
|
3460
3460
|
style: { paddingLeft: `${e * 20}px` },
|
|
3461
|
-
onClick: () => n ?
|
|
3461
|
+
onClick: () => n ? b() : s(t.title),
|
|
3462
3462
|
children: [
|
|
3463
3463
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "drawer-icon", children: n ? l ? "−" : "+" : "" }),
|
|
3464
3464
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "drawer-title", children: t.title })
|
|
@@ -3485,14 +3485,14 @@ const {
|
|
|
3485
3485
|
)
|
|
3486
3486
|
] });
|
|
3487
3487
|
}, CEDrawer = ({ jsonUrl: t, isOpen: e, onClose: r }) => {
|
|
3488
|
-
const i = useRef(null), [s, n] = useState(), [a, l] = useState([]), [o, c] = useState({}), [u,
|
|
3488
|
+
const i = useRef(null), [s, n] = useState(), [a, l] = useState([]), [o, c] = useState({}), [u, b] = useState(!0), [f, E] = useState(null);
|
|
3489
3489
|
useEffect(() => {
|
|
3490
3490
|
(async () => {
|
|
3491
3491
|
try {
|
|
3492
3492
|
const k = await axios.get(t);
|
|
3493
|
-
n(k.data.headerItem), l(k.data.menuItems || []),
|
|
3493
|
+
n(k.data.headerItem), l(k.data.menuItems || []), b(!1);
|
|
3494
3494
|
} catch {
|
|
3495
|
-
|
|
3495
|
+
E("Failed to load drawer data."), b(!1);
|
|
3496
3496
|
}
|
|
3497
3497
|
})();
|
|
3498
3498
|
}, [t]);
|
|
@@ -3592,7 +3592,7 @@ const {
|
|
|
3592
3592
|
}, []);
|
|
3593
3593
|
const [c, u] = useState(
|
|
3594
3594
|
i.map(() => !1)
|
|
3595
|
-
),
|
|
3595
|
+
), b = (g, C) => {
|
|
3596
3596
|
const P = [...l];
|
|
3597
3597
|
P[n][g] = C, o(P);
|
|
3598
3598
|
const T = [...c];
|
|
@@ -3600,7 +3600,7 @@ const {
|
|
|
3600
3600
|
}, f = (g) => i[g].fields.every((P) => {
|
|
3601
3601
|
var T;
|
|
3602
3602
|
return P.required ? ((T = l[g][P.name]) == null ? void 0 : T.trim()) !== "" : !0;
|
|
3603
|
-
}),
|
|
3603
|
+
}), E = () => {
|
|
3604
3604
|
const g = [...c];
|
|
3605
3605
|
g[n] = !0, u(g), a((C) => C < i.length - 1 ? C + 1 : C);
|
|
3606
3606
|
}, p = () => {
|
|
@@ -3612,7 +3612,7 @@ const {
|
|
|
3612
3612
|
{
|
|
3613
3613
|
fields: i[n].fields,
|
|
3614
3614
|
formData: l[n],
|
|
3615
|
-
onInputChange:
|
|
3615
|
+
onInputChange: b
|
|
3616
3616
|
}
|
|
3617
3617
|
) }), x = (g) => i.map((C, P) => {
|
|
3618
3618
|
const T = f(P), M = P === n, I = c[P] && !T, $ = T && c[P];
|
|
@@ -3629,7 +3629,7 @@ const {
|
|
|
3629
3629
|
] }, P);
|
|
3630
3630
|
}), m = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "step-actions", children: [
|
|
3631
3631
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: p, disabled: n === 0, children: "Back" }),
|
|
3632
|
-
n < i.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick:
|
|
3632
|
+
n < i.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: E, children: "Next" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: k, disabled: !y(), children: "Submit" })
|
|
3633
3633
|
] });
|
|
3634
3634
|
return !i || i.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No steps configured" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `stepper-container ${e}`, children: e === "vertical" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
3635
3635
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "vertical-left-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `stepper-header ${e}`, children: x(!0) }) }),
|
|
@@ -3973,29 +3973,29 @@ function requireLottie() {
|
|
|
3973
3973
|
var t = 1, e = [], r, i, s = {
|
|
3974
3974
|
onmessage: function() {
|
|
3975
3975
|
},
|
|
3976
|
-
postMessage: function(
|
|
3976
|
+
postMessage: function(E) {
|
|
3977
3977
|
r({
|
|
3978
|
-
data:
|
|
3978
|
+
data: E
|
|
3979
3979
|
});
|
|
3980
3980
|
}
|
|
3981
3981
|
}, n = {
|
|
3982
|
-
postMessage: function(
|
|
3982
|
+
postMessage: function(E) {
|
|
3983
3983
|
s.onmessage({
|
|
3984
|
-
data:
|
|
3984
|
+
data: E
|
|
3985
3985
|
});
|
|
3986
3986
|
}
|
|
3987
3987
|
};
|
|
3988
3988
|
function a(f) {
|
|
3989
3989
|
if (window.Worker && window.Blob && getWebWorker()) {
|
|
3990
|
-
var
|
|
3990
|
+
var E = new Blob(["var _workerSelf = self; self.onmessage = ", f.toString()], {
|
|
3991
3991
|
type: "text/javascript"
|
|
3992
|
-
}), p = URL.createObjectURL(
|
|
3992
|
+
}), p = URL.createObjectURL(E);
|
|
3993
3993
|
return new Worker(p);
|
|
3994
3994
|
}
|
|
3995
3995
|
return r = f, s;
|
|
3996
3996
|
}
|
|
3997
3997
|
function l() {
|
|
3998
|
-
i || (i = a(function(
|
|
3998
|
+
i || (i = a(function(E) {
|
|
3999
3999
|
function p() {
|
|
4000
4000
|
function k(L, A) {
|
|
4001
4001
|
var j, S, R = L.length, _, F, B, N;
|
|
@@ -4269,54 +4269,54 @@ function requireLottie() {
|
|
|
4269
4269
|
return {
|
|
4270
4270
|
load: d
|
|
4271
4271
|
};
|
|
4272
|
-
}()),
|
|
4273
|
-
n.assetLoader.load(
|
|
4272
|
+
}()), E.data.type === "loadAnimation")
|
|
4273
|
+
n.assetLoader.load(E.data.path, E.data.fullPath, function(k) {
|
|
4274
4274
|
n.dataManager.completeData(k), n.postMessage({
|
|
4275
|
-
id:
|
|
4275
|
+
id: E.data.id,
|
|
4276
4276
|
payload: k,
|
|
4277
4277
|
status: "success"
|
|
4278
4278
|
});
|
|
4279
4279
|
}, function() {
|
|
4280
4280
|
n.postMessage({
|
|
4281
|
-
id:
|
|
4281
|
+
id: E.data.id,
|
|
4282
4282
|
status: "error"
|
|
4283
4283
|
});
|
|
4284
4284
|
});
|
|
4285
|
-
else if (
|
|
4286
|
-
var y =
|
|
4285
|
+
else if (E.data.type === "complete") {
|
|
4286
|
+
var y = E.data.animation;
|
|
4287
4287
|
n.dataManager.completeData(y), n.postMessage({
|
|
4288
|
-
id:
|
|
4288
|
+
id: E.data.id,
|
|
4289
4289
|
payload: y,
|
|
4290
4290
|
status: "success"
|
|
4291
4291
|
});
|
|
4292
|
-
} else
|
|
4292
|
+
} else E.data.type === "loadData" && n.assetLoader.load(E.data.path, E.data.fullPath, function(k) {
|
|
4293
4293
|
n.postMessage({
|
|
4294
|
-
id:
|
|
4294
|
+
id: E.data.id,
|
|
4295
4295
|
payload: k,
|
|
4296
4296
|
status: "success"
|
|
4297
4297
|
});
|
|
4298
4298
|
}, function() {
|
|
4299
4299
|
n.postMessage({
|
|
4300
|
-
id:
|
|
4300
|
+
id: E.data.id,
|
|
4301
4301
|
status: "error"
|
|
4302
4302
|
});
|
|
4303
4303
|
});
|
|
4304
4304
|
}), i.onmessage = function(f) {
|
|
4305
|
-
var
|
|
4306
|
-
e[p] = null,
|
|
4305
|
+
var E = f.data, p = E.id, y = e[p];
|
|
4306
|
+
e[p] = null, E.status === "success" ? y.onComplete(E.payload) : y.onError && y.onError();
|
|
4307
4307
|
});
|
|
4308
4308
|
}
|
|
4309
|
-
function o(f,
|
|
4309
|
+
function o(f, E) {
|
|
4310
4310
|
t += 1;
|
|
4311
4311
|
var p = "processId_" + t;
|
|
4312
4312
|
return e[p] = {
|
|
4313
4313
|
onComplete: f,
|
|
4314
|
-
onError:
|
|
4314
|
+
onError: E
|
|
4315
4315
|
}, p;
|
|
4316
4316
|
}
|
|
4317
|
-
function c(f,
|
|
4317
|
+
function c(f, E, p) {
|
|
4318
4318
|
l();
|
|
4319
|
-
var y = o(
|
|
4319
|
+
var y = o(E, p);
|
|
4320
4320
|
i.postMessage({
|
|
4321
4321
|
type: "loadAnimation",
|
|
4322
4322
|
path: f,
|
|
@@ -4324,9 +4324,9 @@ function requireLottie() {
|
|
|
4324
4324
|
id: y
|
|
4325
4325
|
});
|
|
4326
4326
|
}
|
|
4327
|
-
function u(f,
|
|
4327
|
+
function u(f, E, p) {
|
|
4328
4328
|
l();
|
|
4329
|
-
var y = o(
|
|
4329
|
+
var y = o(E, p);
|
|
4330
4330
|
i.postMessage({
|
|
4331
4331
|
type: "loadData",
|
|
4332
4332
|
path: f,
|
|
@@ -4334,9 +4334,9 @@ function requireLottie() {
|
|
|
4334
4334
|
id: y
|
|
4335
4335
|
});
|
|
4336
4336
|
}
|
|
4337
|
-
function
|
|
4337
|
+
function b(f, E, p) {
|
|
4338
4338
|
l();
|
|
4339
|
-
var y = o(
|
|
4339
|
+
var y = o(E, p);
|
|
4340
4340
|
i.postMessage({
|
|
4341
4341
|
type: "complete",
|
|
4342
4342
|
animation: f,
|
|
@@ -4346,7 +4346,7 @@ function requireLottie() {
|
|
|
4346
4346
|
return {
|
|
4347
4347
|
loadAnimation: c,
|
|
4348
4348
|
loadData: u,
|
|
4349
|
-
completeAnimation:
|
|
4349
|
+
completeAnimation: b
|
|
4350
4350
|
};
|
|
4351
4351
|
}(), ImagePreloader = function() {
|
|
4352
4352
|
var t = function() {
|
|
@@ -4422,7 +4422,7 @@ function requireLottie() {
|
|
|
4422
4422
|
function u(d) {
|
|
4423
4423
|
this.assetsPath = d || "";
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4425
|
+
function b(d) {
|
|
4426
4426
|
for (var x = 0, m = this.images.length; x < m; ) {
|
|
4427
4427
|
if (this.images[x].assetData === d)
|
|
4428
4428
|
return this.images[x].img;
|
|
@@ -4433,7 +4433,7 @@ function requireLottie() {
|
|
|
4433
4433
|
function f() {
|
|
4434
4434
|
this.imagesLoadedCb = null, this.images.length = 0;
|
|
4435
4435
|
}
|
|
4436
|
-
function
|
|
4436
|
+
function E() {
|
|
4437
4437
|
return this.totalImages === this.loadedAssets;
|
|
4438
4438
|
}
|
|
4439
4439
|
function p() {
|
|
@@ -4449,10 +4449,10 @@ function requireLottie() {
|
|
|
4449
4449
|
loadAssets: o,
|
|
4450
4450
|
setAssetsPath: u,
|
|
4451
4451
|
setPath: c,
|
|
4452
|
-
loadedImages:
|
|
4452
|
+
loadedImages: E,
|
|
4453
4453
|
loadedFootages: p,
|
|
4454
4454
|
destroy: f,
|
|
4455
|
-
getAsset:
|
|
4455
|
+
getAsset: b,
|
|
4456
4456
|
createImgData: a,
|
|
4457
4457
|
createImageData: n,
|
|
4458
4458
|
imageLoaded: e,
|
|
@@ -4786,7 +4786,7 @@ function requireLottie() {
|
|
|
4786
4786
|
var t = {}, e = [], r = 0, i = 0, s = 0, n = !0, a = !1;
|
|
4787
4787
|
function l(A) {
|
|
4788
4788
|
for (var j = 0, S = A.target; j < i; )
|
|
4789
|
-
e[j].animation === S && (e.splice(j, 1), j -= 1, i -= 1, S.isPaused ||
|
|
4789
|
+
e[j].animation === S && (e.splice(j, 1), j -= 1, i -= 1, S.isPaused || b()), j += 1;
|
|
4790
4790
|
}
|
|
4791
4791
|
function o(A, j) {
|
|
4792
4792
|
if (!A)
|
|
@@ -4808,16 +4808,16 @@ function requireLottie() {
|
|
|
4808
4808
|
function u() {
|
|
4809
4809
|
s += 1, $();
|
|
4810
4810
|
}
|
|
4811
|
-
function
|
|
4811
|
+
function b() {
|
|
4812
4812
|
s -= 1;
|
|
4813
4813
|
}
|
|
4814
4814
|
function f(A, j) {
|
|
4815
|
-
A.addEventListener("destroy", l), A.addEventListener("_active", u), A.addEventListener("_idle",
|
|
4815
|
+
A.addEventListener("destroy", l), A.addEventListener("_active", u), A.addEventListener("_idle", b), e.push({
|
|
4816
4816
|
elem: j,
|
|
4817
4817
|
animation: A
|
|
4818
4818
|
}), i += 1;
|
|
4819
4819
|
}
|
|
4820
|
-
function
|
|
4820
|
+
function E(A) {
|
|
4821
4821
|
var j = new AnimationItem();
|
|
4822
4822
|
return f(j, null), j.setParams(A), j;
|
|
4823
4823
|
}
|
|
@@ -4911,7 +4911,7 @@ function requireLottie() {
|
|
|
4911
4911
|
for (j = 0; j < i; j += 1)
|
|
4912
4912
|
e[j].animation.unmute(A);
|
|
4913
4913
|
}
|
|
4914
|
-
return t.registerAnimation = o, t.loadAnimation =
|
|
4914
|
+
return t.registerAnimation = o, t.loadAnimation = E, t.setSpeed = p, t.setDirection = y, t.play = k, t.pause = m, t.stop = C, t.togglePause = P, t.searchAnimations = M, t.resize = I, t.goToAndStop = g, t.destroy = T, t.freeze = O, t.unfreeze = V, t.setVolume = H, t.mute = z, t.unmute = L, t.getRegisteredAnimations = c, t;
|
|
4915
4915
|
}(), BezierFactory = function() {
|
|
4916
4916
|
var t = {};
|
|
4917
4917
|
t.getBezierEasing = r;
|
|
@@ -4927,22 +4927,22 @@ function requireLottie() {
|
|
|
4927
4927
|
function u(x, m) {
|
|
4928
4928
|
return 1 - 3 * m + 3 * x;
|
|
4929
4929
|
}
|
|
4930
|
-
function
|
|
4930
|
+
function b(x, m) {
|
|
4931
4931
|
return 3 * m - 6 * x;
|
|
4932
4932
|
}
|
|
4933
4933
|
function f(x) {
|
|
4934
4934
|
return 3 * x;
|
|
4935
4935
|
}
|
|
4936
|
-
function
|
|
4937
|
-
return ((u(m, g) * x +
|
|
4936
|
+
function E(x, m, g) {
|
|
4937
|
+
return ((u(m, g) * x + b(m, g)) * x + f(m)) * x;
|
|
4938
4938
|
}
|
|
4939
4939
|
function p(x, m, g) {
|
|
4940
|
-
return 3 * u(m, g) * x * x + 2 *
|
|
4940
|
+
return 3 * u(m, g) * x * x + 2 * b(m, g) * x + f(m);
|
|
4941
4941
|
}
|
|
4942
4942
|
function y(x, m, g, C, P) {
|
|
4943
4943
|
var T, M, I = 0;
|
|
4944
4944
|
do
|
|
4945
|
-
M = m + (g - m) / 2, T =
|
|
4945
|
+
M = m + (g - m) / 2, T = E(M, C, P) - x, T > 0 ? g = M : m = M;
|
|
4946
4946
|
while (Math.abs(T) > n && ++I < a);
|
|
4947
4947
|
return M;
|
|
4948
4948
|
}
|
|
@@ -4950,7 +4950,7 @@ function requireLottie() {
|
|
|
4950
4950
|
for (var P = 0; P < i; ++P) {
|
|
4951
4951
|
var T = p(m, g, C);
|
|
4952
4952
|
if (T === 0) return m;
|
|
4953
|
-
var M =
|
|
4953
|
+
var M = E(m, g, C) - x;
|
|
4954
4954
|
m -= M / T;
|
|
4955
4955
|
}
|
|
4956
4956
|
return m;
|
|
@@ -4961,7 +4961,7 @@ function requireLottie() {
|
|
|
4961
4961
|
return d.prototype = {
|
|
4962
4962
|
get: function(m) {
|
|
4963
4963
|
var g = this._p[0], C = this._p[1], P = this._p[2], T = this._p[3];
|
|
4964
|
-
return this._precomputed || this._precompute(), g === C && P === T ? m : m === 0 ? 0 : m === 1 ? 1 :
|
|
4964
|
+
return this._precomputed || this._precompute(), g === C && P === T ? m : m === 0 ? 0 : m === 1 ? 1 : E(this._getTForX(m), C, T);
|
|
4965
4965
|
},
|
|
4966
4966
|
// Private part
|
|
4967
4967
|
_precompute: function() {
|
|
@@ -4970,7 +4970,7 @@ function requireLottie() {
|
|
|
4970
4970
|
},
|
|
4971
4971
|
_calcSampleValues: function() {
|
|
4972
4972
|
for (var m = this._p[0], g = this._p[2], C = 0; C < l; ++C)
|
|
4973
|
-
this._mSampleValues[C] =
|
|
4973
|
+
this._mSampleValues[C] = E(C * o, m, g);
|
|
4974
4974
|
},
|
|
4975
4975
|
/**
|
|
4976
4976
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
@@ -5031,50 +5031,50 @@ function requireLottie() {
|
|
|
5031
5031
|
}();
|
|
5032
5032
|
function bezFunction() {
|
|
5033
5033
|
var t = Math;
|
|
5034
|
-
function e(f,
|
|
5035
|
-
var x = f * y +
|
|
5034
|
+
function e(f, E, p, y, k, d) {
|
|
5035
|
+
var x = f * y + E * k + p * d - k * y - d * f - p * E;
|
|
5036
5036
|
return x > -1e-3 && x < 1e-3;
|
|
5037
5037
|
}
|
|
5038
|
-
function r(f,
|
|
5038
|
+
function r(f, E, p, y, k, d, x, m, g) {
|
|
5039
5039
|
if (p === 0 && d === 0 && g === 0)
|
|
5040
|
-
return e(f,
|
|
5041
|
-
var C = t.sqrt(t.pow(y - f, 2) + t.pow(k -
|
|
5040
|
+
return e(f, E, y, k, x, m);
|
|
5041
|
+
var C = t.sqrt(t.pow(y - f, 2) + t.pow(k - E, 2) + t.pow(d - p, 2)), P = t.sqrt(t.pow(x - f, 2) + t.pow(m - E, 2) + t.pow(g - p, 2)), T = t.sqrt(t.pow(x - y, 2) + t.pow(m - k, 2) + t.pow(g - d, 2)), M;
|
|
5042
5042
|
return C > P ? C > T ? M = C - P - T : M = T - P - C : T > P ? M = T - P - C : M = P - C - T, M > -1e-4 && M < 1e-4;
|
|
5043
5043
|
}
|
|
5044
5044
|
var i = /* @__PURE__ */ function() {
|
|
5045
|
-
return function(f,
|
|
5045
|
+
return function(f, E, p, y) {
|
|
5046
5046
|
var k = getDefaultCurveSegments(), d, x, m, g, C, P = 0, T, M = [], I = [], $ = bezierLengthPool.newElement();
|
|
5047
5047
|
for (m = p.length, d = 0; d < k; d += 1) {
|
|
5048
5048
|
for (C = d / (k - 1), T = 0, x = 0; x < m; x += 1)
|
|
5049
|
-
g = bmPow(1 - C, 3) * f[x] + 3 * bmPow(1 - C, 2) * C * p[x] + 3 * (1 - C) * bmPow(C, 2) * y[x] + bmPow(C, 3) *
|
|
5049
|
+
g = bmPow(1 - C, 3) * f[x] + 3 * bmPow(1 - C, 2) * C * p[x] + 3 * (1 - C) * bmPow(C, 2) * y[x] + bmPow(C, 3) * E[x], M[x] = g, I[x] !== null && (T += bmPow(M[x] - I[x], 2)), I[x] = M[x];
|
|
5050
5050
|
T && (T = bmSqrt(T), P += T), $.percents[d] = C, $.lengths[d] = P;
|
|
5051
5051
|
}
|
|
5052
5052
|
return $.addedLength = P, $;
|
|
5053
5053
|
};
|
|
5054
5054
|
}();
|
|
5055
5055
|
function s(f) {
|
|
5056
|
-
var
|
|
5056
|
+
var E = segmentsLengthPool.newElement(), p = f.c, y = f.v, k = f.o, d = f.i, x, m = f._length, g = E.lengths, C = 0;
|
|
5057
5057
|
for (x = 0; x < m - 1; x += 1)
|
|
5058
5058
|
g[x] = i(y[x], y[x + 1], k[x], d[x + 1]), C += g[x].addedLength;
|
|
5059
|
-
return p && m && (g[x] = i(y[x], y[0], k[x], d[0]), C += g[x].addedLength),
|
|
5059
|
+
return p && m && (g[x] = i(y[x], y[0], k[x], d[0]), C += g[x].addedLength), E.totalLength = C, E;
|
|
5060
5060
|
}
|
|
5061
5061
|
function n(f) {
|
|
5062
5062
|
this.segmentLength = 0, this.points = new Array(f);
|
|
5063
5063
|
}
|
|
5064
|
-
function a(f,
|
|
5065
|
-
this.partialLength = f, this.point =
|
|
5064
|
+
function a(f, E) {
|
|
5065
|
+
this.partialLength = f, this.point = E;
|
|
5066
5066
|
}
|
|
5067
5067
|
var l = /* @__PURE__ */ function() {
|
|
5068
5068
|
var f = {};
|
|
5069
|
-
return function(
|
|
5070
|
-
var d = (
|
|
5069
|
+
return function(E, p, y, k) {
|
|
5070
|
+
var d = (E[0] + "_" + E[1] + "_" + p[0] + "_" + p[1] + "_" + y[0] + "_" + y[1] + "_" + k[0] + "_" + k[1]).replace(/\./g, "p");
|
|
5071
5071
|
if (!f[d]) {
|
|
5072
5072
|
var x = getDefaultCurveSegments(), m, g, C, P, T, M = 0, I, $, O = null;
|
|
5073
|
-
|
|
5073
|
+
E.length === 2 && (E[0] !== p[0] || E[1] !== p[1]) && e(E[0], E[1], p[0], p[1], E[0] + y[0], E[1] + y[1]) && e(E[0], E[1], p[0], p[1], p[0] + k[0], p[1] + k[1]) && (x = 2);
|
|
5074
5074
|
var V = new n(x);
|
|
5075
5075
|
for (C = y.length, m = 0; m < x; m += 1) {
|
|
5076
5076
|
for ($ = createSizedArray(C), T = m / (x - 1), I = 0, g = 0; g < C; g += 1)
|
|
5077
|
-
P = bmPow(1 - T, 3) *
|
|
5077
|
+
P = bmPow(1 - T, 3) * E[g] + 3 * bmPow(1 - T, 2) * T * (E[g] + y[g]) + 3 * (1 - T) * bmPow(T, 2) * (p[g] + k[g]) + bmPow(T, 3) * p[g], $[g] = P, O !== null && (I += bmPow($[g] - O[g], 2));
|
|
5078
5078
|
I = bmSqrt(I), M += I, V.points[m] = new a(I, $), O = $;
|
|
5079
5079
|
}
|
|
5080
5080
|
V.segmentLength = M, f[d] = V;
|
|
@@ -5082,8 +5082,8 @@ function requireLottie() {
|
|
|
5082
5082
|
return f[d];
|
|
5083
5083
|
};
|
|
5084
5084
|
}();
|
|
5085
|
-
function o(f,
|
|
5086
|
-
var p =
|
|
5085
|
+
function o(f, E) {
|
|
5086
|
+
var p = E.percents, y = E.lengths, k = p.length, d = bmFloor((k - 1) * f), x = f * E.addedLength, m = 0;
|
|
5087
5087
|
if (d === k - 1 || d === 0 || x === y[d])
|
|
5088
5088
|
return p[d];
|
|
5089
5089
|
for (var g = y[d] > x ? -1 : 1, C = !0; C; )
|
|
@@ -5094,23 +5094,23 @@ function requireLottie() {
|
|
|
5094
5094
|
}
|
|
5095
5095
|
return p[d] + (p[d + 1] - p[d]) * m;
|
|
5096
5096
|
}
|
|
5097
|
-
function c(f,
|
|
5098
|
-
var x = o(k, d), m = 1 - x, g = t.round((m * m * m * f[0] + (x * m * m + m * x * m + m * m * x) * p[0] + (x * x * m + m * x * x + x * m * x) * y[0] + x * x * x *
|
|
5097
|
+
function c(f, E, p, y, k, d) {
|
|
5098
|
+
var x = o(k, d), m = 1 - x, g = t.round((m * m * m * f[0] + (x * m * m + m * x * m + m * m * x) * p[0] + (x * x * m + m * x * x + x * m * x) * y[0] + x * x * x * E[0]) * 1e3) / 1e3, C = t.round((m * m * m * f[1] + (x * m * m + m * x * m + m * m * x) * p[1] + (x * x * m + m * x * x + x * m * x) * y[1] + x * x * x * E[1]) * 1e3) / 1e3;
|
|
5099
5099
|
return [g, C];
|
|
5100
5100
|
}
|
|
5101
5101
|
var u = createTypedArray("float32", 8);
|
|
5102
|
-
function
|
|
5102
|
+
function b(f, E, p, y, k, d, x) {
|
|
5103
5103
|
k < 0 ? k = 0 : k > 1 && (k = 1);
|
|
5104
5104
|
var m = o(k, x);
|
|
5105
5105
|
d = d > 1 ? 1 : d;
|
|
5106
5106
|
var g = o(d, x), C, P = f.length, T = 1 - m, M = 1 - g, I = T * T * T, $ = m * T * T * 3, O = m * m * T * 3, V = m * m * m, H = T * T * M, z = m * T * M + T * m * M + T * T * g, L = m * m * M + T * m * g + m * T * g, A = m * m * g, j = T * M * M, S = m * M * M + T * g * M + T * M * g, R = m * g * M + T * g * g + m * M * g, _ = m * g * g, F = M * M * M, B = g * M * M + M * g * M + M * M * g, N = g * g * M + M * g * g + g * M * g, G = g * g * g;
|
|
5107
5107
|
for (C = 0; C < P; C += 1)
|
|
5108
|
-
u[C * 4] = t.round((I * f[C] + $ * p[C] + O * y[C] + V *
|
|
5108
|
+
u[C * 4] = t.round((I * f[C] + $ * p[C] + O * y[C] + V * E[C]) * 1e3) / 1e3, u[C * 4 + 1] = t.round((H * f[C] + z * p[C] + L * y[C] + A * E[C]) * 1e3) / 1e3, u[C * 4 + 2] = t.round((j * f[C] + S * p[C] + R * y[C] + _ * E[C]) * 1e3) / 1e3, u[C * 4 + 3] = t.round((F * f[C] + B * p[C] + N * y[C] + G * E[C]) * 1e3) / 1e3;
|
|
5109
5109
|
return u;
|
|
5110
5110
|
}
|
|
5111
5111
|
return {
|
|
5112
5112
|
getSegmentsLength: s,
|
|
5113
|
-
getNewSegment:
|
|
5113
|
+
getNewSegment: b,
|
|
5114
5114
|
getPointInSegment: c,
|
|
5115
5115
|
buildBezierData: l,
|
|
5116
5116
|
pointOnLine2D: e,
|
|
@@ -5133,25 +5133,25 @@ function requireLottie() {
|
|
|
5133
5133
|
n < a - 1 ? n += 1 : (s = 0, l = !1);
|
|
5134
5134
|
}
|
|
5135
5135
|
u = this.keyframesMetadata[n] || {};
|
|
5136
|
-
var
|
|
5136
|
+
var b, f, E, p, y, k, d = c.t - r, x = o.t - r, m;
|
|
5137
5137
|
if (o.to) {
|
|
5138
5138
|
u.bezierData || (u.bezierData = bez.buildBezierData(o.s, c.s || o.e, o.to, o.ti));
|
|
5139
5139
|
var g = u.bezierData;
|
|
5140
5140
|
if (t >= d || t < x) {
|
|
5141
5141
|
var C = t >= d ? g.points.length - 1 : 0;
|
|
5142
|
-
for (f = g.points[C].point.length,
|
|
5143
|
-
i[
|
|
5142
|
+
for (f = g.points[C].point.length, b = 0; b < f; b += 1)
|
|
5143
|
+
i[b] = g.points[C].point[b];
|
|
5144
5144
|
} else {
|
|
5145
|
-
u.__fnct ? k = u.__fnct : (k = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, u.__fnct = k),
|
|
5146
|
-
var P = g.segmentLength *
|
|
5145
|
+
u.__fnct ? k = u.__fnct : (k = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, u.__fnct = k), E = k((t - x) / (d - x));
|
|
5146
|
+
var P = g.segmentLength * E, T, M = e.lastFrame < t && e._lastKeyframeIndex === n ? e._lastAddedLength : 0;
|
|
5147
5147
|
for (y = e.lastFrame < t && e._lastKeyframeIndex === n ? e._lastPoint : 0, l = !0, p = g.points.length; l; ) {
|
|
5148
|
-
if (M += g.points[y].partialLength, P === 0 ||
|
|
5149
|
-
for (f = g.points[y].point.length,
|
|
5150
|
-
i[
|
|
5148
|
+
if (M += g.points[y].partialLength, P === 0 || E === 0 || y === g.points.length - 1) {
|
|
5149
|
+
for (f = g.points[y].point.length, b = 0; b < f; b += 1)
|
|
5150
|
+
i[b] = g.points[y].point[b];
|
|
5151
5151
|
break;
|
|
5152
5152
|
} else if (P >= M && P < M + g.points[y + 1].partialLength) {
|
|
5153
|
-
for (T = (P - M) / g.points[y + 1].partialLength, f = g.points[y].point.length,
|
|
5154
|
-
i[
|
|
5153
|
+
for (T = (P - M) / g.points[y + 1].partialLength, f = g.points[y].point.length, b = 0; b < f; b += 1)
|
|
5154
|
+
i[b] = g.points[y].point[b] + (g.points[y + 1].point[b] - g.points[y].point[b]) * T;
|
|
5155
5155
|
break;
|
|
5156
5156
|
}
|
|
5157
5157
|
y < p - 1 ? y += 1 : l = !1;
|
|
@@ -5171,21 +5171,21 @@ function requireLottie() {
|
|
|
5171
5171
|
}
|
|
5172
5172
|
else
|
|
5173
5173
|
for (n = 0; n < a; n += 1)
|
|
5174
|
-
o.h !== 1 && (t >= d ?
|
|
5174
|
+
o.h !== 1 && (t >= d ? E = 1 : t < x ? E = 0 : (o.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[n] ? k = u.__fnct[n] : (I = o.o.x[n] === void 0 ? o.o.x[0] : o.o.x[n], $ = o.o.y[n] === void 0 ? o.o.y[0] : o.o.y[n], O = o.i.x[n] === void 0 ? o.i.x[0] : o.i.x[n], V = o.i.y[n] === void 0 ? o.i.y[0] : o.i.y[n], k = BezierFactory.getBezierEasing(I, $, O, V).get, u.__fnct[n] = k)) : u.__fnct ? k = u.__fnct : (I = o.o.x, $ = o.o.y, O = o.i.x, V = o.i.y, k = BezierFactory.getBezierEasing(I, $, O, V).get, o.keyframeMetadata = k), E = k((t - x) / (d - x)))), m = c.s || o.e, H = o.h === 1 ? o.s[n] : o.s[n] + (m[n] - o.s[n]) * E, this.propType === "multidimensional" ? i[n] = H : i = H;
|
|
5175
5175
|
}
|
|
5176
5176
|
return e.lastIndex = s, i;
|
|
5177
5177
|
}
|
|
5178
5178
|
function slerp(t, e, r) {
|
|
5179
|
-
var i = [], s = t[0], n = t[1], a = t[2], l = t[3], o = e[0], c = e[1], u = e[2],
|
|
5180
|
-
return
|
|
5179
|
+
var i = [], s = t[0], n = t[1], a = t[2], l = t[3], o = e[0], c = e[1], u = e[2], b = e[3], f, E, p, y, k;
|
|
5180
|
+
return E = s * o + n * c + a * u + l * b, E < 0 && (E = -E, o = -o, c = -c, u = -u, b = -b), 1 - E > 1e-6 ? (f = Math.acos(E), p = Math.sin(f), y = Math.sin((1 - r) * f) / p, k = Math.sin(r * f) / p) : (y = 1 - r, k = r), i[0] = y * s + k * o, i[1] = y * n + k * c, i[2] = y * a + k * u, i[3] = y * l + k * b, i;
|
|
5181
5181
|
}
|
|
5182
5182
|
function quaternionToEuler(t, e) {
|
|
5183
5183
|
var r = e[0], i = e[1], s = e[2], n = e[3], a = Math.atan2(2 * i * n - 2 * r * s, 1 - 2 * i * i - 2 * s * s), l = Math.asin(2 * r * i + 2 * s * n), o = Math.atan2(2 * r * n - 2 * i * s, 1 - 2 * r * r - 2 * s * s);
|
|
5184
5184
|
t[0] = a / degToRads, t[1] = l / degToRads, t[2] = o / degToRads;
|
|
5185
5185
|
}
|
|
5186
5186
|
function createQuaternion(t) {
|
|
5187
|
-
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), n = Math.cos(r / 2), a = Math.cos(i / 2), l = Math.sin(e / 2), o = Math.sin(r / 2), c = Math.sin(i / 2), u = s * n * a - l * o * c,
|
|
5188
|
-
return [
|
|
5187
|
+
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), n = Math.cos(r / 2), a = Math.cos(i / 2), l = Math.sin(e / 2), o = Math.sin(r / 2), c = Math.sin(i / 2), u = s * n * a - l * o * c, b = l * o * a + s * n * c, f = l * n * a + s * o * c, E = s * o * a - l * n * c;
|
|
5188
|
+
return [b, f, E, u];
|
|
5189
5189
|
}
|
|
5190
5190
|
function getValueAtCurrentTime() {
|
|
5191
5191
|
var t = this.comp.renderedFrame - this.offsetTime, e = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -5488,7 +5488,7 @@ function requireLottie() {
|
|
|
5488
5488
|
I.v[0][0] = g, I.v[0][1] = C - T, I.v[1][0] = M ? g + P : g - P, I.v[1][1] = C, I.v[2][0] = g, I.v[2][1] = C + T, I.v[3][0] = M ? g - P : g + P, I.v[3][1] = C, I.i[0][0] = M ? g - P * d : g + P * d, I.i[0][1] = C - T, I.i[1][0] = M ? g + P : g - P, I.i[1][1] = C - T * d, I.i[2][0] = M ? g + P * d : g - P * d, I.i[2][1] = C + T, I.i[3][0] = M ? g - P : g + P, I.i[3][1] = C + T * d, I.o[0][0] = M ? g + P * d : g - P * d, I.o[0][1] = C - T, I.o[1][0] = M ? g + P : g - P, I.o[1][1] = C + T * d, I.o[2][0] = M ? g - P * d : g + P * d, I.o[2][1] = C + T, I.o[3][0] = M ? g - P : g + P, I.o[3][1] = C - T * d;
|
|
5489
5489
|
}
|
|
5490
5490
|
}, extendPrototype([DynamicPropertyContainer], x), x;
|
|
5491
|
-
}(),
|
|
5491
|
+
}(), b = function() {
|
|
5492
5492
|
function d(x, m) {
|
|
5493
5493
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = x, this.comp = x.comp, this.data = m, this.frameId = -1, this.d = m.d, this.initDynamicPropertyContainer(x), m.sy === 1 ? (this.ir = PropertyFactory.getProp(x, m.ir, 0, 0, this), this.is = PropertyFactory.getProp(x, m.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(x, m.pt, 0, 0, this), this.p = PropertyFactory.getProp(x, m.p, 1, 0, this), this.r = PropertyFactory.getProp(x, m.r, 0, degToRads, this), this.or = PropertyFactory.getProp(x, m.or, 0, 0, this), this.os = PropertyFactory.getProp(x, m.os, 0, 0.01, this), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
5494
5494
|
}
|
|
@@ -5531,12 +5531,12 @@ function requireLottie() {
|
|
|
5531
5531
|
reset: i
|
|
5532
5532
|
}, extendPrototype([DynamicPropertyContainer], d), d;
|
|
5533
5533
|
}();
|
|
5534
|
-
function
|
|
5534
|
+
function E(d, x, m) {
|
|
5535
5535
|
var g;
|
|
5536
5536
|
if (m === 3 || m === 4) {
|
|
5537
5537
|
var C = m === 3 ? x.pt : x.ks, P = C.k;
|
|
5538
5538
|
P.length ? g = new c(d, x, m) : g = new l(d, x, m);
|
|
5539
|
-
} else m === 5 ? g = new f(d, x) : m === 6 ? g = new u(d, x) : m === 7 && (g = new
|
|
5539
|
+
} else m === 5 ? g = new f(d, x) : m === 6 ? g = new u(d, x) : m === 7 && (g = new b(d, x));
|
|
5540
5540
|
return g.k && d.addDynamicProperty(g), g;
|
|
5541
5541
|
}
|
|
5542
5542
|
function p() {
|
|
@@ -5546,7 +5546,7 @@ function requireLottie() {
|
|
|
5546
5546
|
return c;
|
|
5547
5547
|
}
|
|
5548
5548
|
var k = {};
|
|
5549
|
-
return k.getShapeProp =
|
|
5549
|
+
return k.getShapeProp = E, k.getConstructorFunction = p, k.getKeyframedConstructorFunction = y, k;
|
|
5550
5550
|
}();
|
|
5551
5551
|
/*!
|
|
5552
5552
|
Transformation Matrix v2.0
|
|
@@ -5591,14 +5591,14 @@ function requireLottie() {
|
|
|
5591
5591
|
function u(S, R) {
|
|
5592
5592
|
return this.shear(r(S), r(R));
|
|
5593
5593
|
}
|
|
5594
|
-
function
|
|
5594
|
+
function b(S, R) {
|
|
5595
5595
|
var _ = t(R), F = e(R);
|
|
5596
5596
|
return this._t(_, F, 0, 0, -F, _, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(S), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(_, -F, 0, 0, F, _, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
5597
5597
|
}
|
|
5598
5598
|
function f(S, R, _) {
|
|
5599
5599
|
return !_ && _ !== 0 && (_ = 1), S === 1 && R === 1 && _ === 1 ? this : this._t(S, 0, 0, 0, 0, R, 0, 0, 0, 0, _, 0, 0, 0, 0, 1);
|
|
5600
5600
|
}
|
|
5601
|
-
function
|
|
5601
|
+
function E(S, R, _, F, B, N, G, W, K, X, Z, rt, nt, it, at, tt) {
|
|
5602
5602
|
return this.props[0] = S, this.props[1] = R, this.props[2] = _, this.props[3] = F, this.props[4] = B, this.props[5] = N, this.props[6] = G, this.props[7] = W, this.props[8] = K, this.props[9] = X, this.props[10] = Z, this.props[11] = rt, this.props[12] = nt, this.props[13] = it, this.props[14] = at, this.props[15] = tt, this;
|
|
5603
5603
|
}
|
|
5604
5604
|
function p(S, R, _) {
|
|
@@ -5701,7 +5701,7 @@ function requireLottie() {
|
|
|
5701
5701
|
return "matrix(" + R + "," + _ + "," + F + "," + B + "," + N + "," + G + ")";
|
|
5702
5702
|
}
|
|
5703
5703
|
return function() {
|
|
5704
|
-
this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = l, this.rotateZ = o, this.skew = u, this.skewFromAxis =
|
|
5704
|
+
this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = l, this.rotateZ = o, this.skew = u, this.skewFromAxis = b, this.shear = c, this.scale = f, this.setTransform = E, this.translate = p, this.transform = y, this.multiply = k, this.applyToPoint = C, this.applyToX = P, this.applyToY = T, this.applyToZ = M, this.applyToPointArray = H, this.applyToTriplePoints = V, this.applyToPointStringified = z, this.toCSS = L, this.to2dCSS = j, this.clone = m, this.cloneFromProps = g, this.equals = x, this.inversePoints = O, this.inversePoint = $, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = d, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
5705
5705
|
};
|
|
5706
5706
|
}();
|
|
5707
5707
|
function _typeof$3(t) {
|
|
@@ -5840,8 +5840,8 @@ function requireLottie() {
|
|
|
5840
5840
|
var a = [], l, o = n.length, c;
|
|
5841
5841
|
for (l = 0; l < o; l += 1)
|
|
5842
5842
|
if (c = n[l], !(c.e * s < i || c.s * s > i + r)) {
|
|
5843
|
-
var u,
|
|
5844
|
-
c.s * s <= i ? u = 0 : u = (c.s * s - i) / r, c.e * s >= i + r ?
|
|
5843
|
+
var u, b;
|
|
5844
|
+
c.s * s <= i ? u = 0 : u = (c.s * s - i) / r, c.e * s >= i + r ? b = 1 : b = (c.e * s - i) / r, a.push([u, b]);
|
|
5845
5845
|
}
|
|
5846
5846
|
return a.length || a.push([0, 0]), a;
|
|
5847
5847
|
}, TrimModifier.prototype.releasePathsData = function(t) {
|
|
@@ -5860,7 +5860,7 @@ function requireLottie() {
|
|
|
5860
5860
|
e = Math.round(e * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = e, this.eValue = r;
|
|
5861
5861
|
} else
|
|
5862
5862
|
e = this.sValue, r = this.eValue;
|
|
5863
|
-
var n, a, l = this.shapes.length, o, c, u,
|
|
5863
|
+
var n, a, l = this.shapes.length, o, c, u, b, f, E = 0;
|
|
5864
5864
|
if (r === e)
|
|
5865
5865
|
for (a = 0; a < l; a += 1)
|
|
5866
5866
|
this.shapes[a].localShapeCollection.releaseShapes(), this.shapes[a].shape._mdf = !0, this.shapes[a].shape.paths = this.shapes[a].localShapeCollection, this._mdf && (this.shapes[a].pathsData.length = 0);
|
|
@@ -5878,15 +5878,15 @@ function requireLottie() {
|
|
|
5878
5878
|
f = y.totalShapeLength;
|
|
5879
5879
|
else {
|
|
5880
5880
|
for (u = this.releasePathsData(y.pathsData), o = 0; o < c; o += 1)
|
|
5881
|
-
|
|
5881
|
+
b = bez.getSegmentsLength(n.shapes[o]), u.push(b), f += b.totalLength;
|
|
5882
5882
|
y.totalShapeLength = f, y.pathsData = u;
|
|
5883
5883
|
}
|
|
5884
|
-
|
|
5884
|
+
E += f, y.shape._mdf = !0;
|
|
5885
5885
|
}
|
|
5886
5886
|
var d = e, x = r, m = 0, g;
|
|
5887
5887
|
for (a = l - 1; a >= 0; a -= 1)
|
|
5888
5888
|
if (y = this.shapes[a], y.shape._mdf) {
|
|
5889
|
-
for (k = y.localShapeCollection, k.releaseShapes(), this.m === 2 && l > 1 ? (g = this.calculateShapeEdges(e, r, y.totalShapeLength, m,
|
|
5889
|
+
for (k = y.localShapeCollection, k.releaseShapes(), this.m === 2 && l > 1 ? (g = this.calculateShapeEdges(e, r, y.totalShapeLength, m, E), m += y.totalShapeLength) : g = [[d, x]], c = g.length, o = 0; o < c; o += 1) {
|
|
5890
5890
|
d = g[o][0], x = g[o][1], p.length = 0, x <= 1 ? p.push({
|
|
5891
5891
|
s: y.totalShapeLength * d,
|
|
5892
5892
|
e: y.totalShapeLength * x
|
|
@@ -5925,8 +5925,8 @@ function requireLottie() {
|
|
|
5925
5925
|
}, TrimModifier.prototype.addSegmentFromArray = function(t, e, r, i) {
|
|
5926
5926
|
e.setXYAt(t[1], t[5], "o", r), e.setXYAt(t[2], t[6], "i", r + 1), i && e.setXYAt(t[0], t[4], "v", r), e.setXYAt(t[3], t[7], "v", r + 1);
|
|
5927
5927
|
}, TrimModifier.prototype.addShapes = function(t, e, r) {
|
|
5928
|
-
var i = t.pathsData, s = t.shape.paths.shapes, n, a = t.shape.paths._length, l, o, c = 0, u,
|
|
5929
|
-
for (r ? (
|
|
5928
|
+
var i = t.pathsData, s = t.shape.paths.shapes, n, a = t.shape.paths._length, l, o, c = 0, u, b, f, E, p = [], y, k = !0;
|
|
5929
|
+
for (r ? (b = r._length, y = r._length) : (r = shapePool.newElement(), b = 0, y = 0), p.push(r), n = 0; n < a; n += 1) {
|
|
5930
5930
|
for (f = i[n].lengths, r.c = s[n].c, o = s[n].c ? f.length : f.length + 1, l = 1; l < o; l += 1)
|
|
5931
5931
|
if (u = f[l - 1], c + u.addedLength < e.s)
|
|
5932
5932
|
c += u.addedLength, r.c = !1;
|
|
@@ -5934,18 +5934,18 @@ function requireLottie() {
|
|
|
5934
5934
|
r.c = !1;
|
|
5935
5935
|
break;
|
|
5936
5936
|
} else
|
|
5937
|
-
e.s <= c && e.e >= c + u.addedLength ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[l], s[n].v[l], r,
|
|
5937
|
+
e.s <= c && e.e >= c + u.addedLength ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[l], s[n].v[l], r, b, k), k = !1) : (E = bez.getNewSegment(s[n].v[l - 1], s[n].v[l], s[n].o[l - 1], s[n].i[l], (e.s - c) / u.addedLength, (e.e - c) / u.addedLength, f[l - 1]), this.addSegmentFromArray(E, r, b, k), k = !1, r.c = !1), c += u.addedLength, b += 1;
|
|
5938
5938
|
if (s[n].c && f.length) {
|
|
5939
5939
|
if (u = f[l - 1], c <= e.e) {
|
|
5940
5940
|
var d = f[l - 1].addedLength;
|
|
5941
|
-
e.s <= c && e.e >= c + d ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[0], s[n].v[0], r,
|
|
5941
|
+
e.s <= c && e.e >= c + d ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[0], s[n].v[0], r, b, k), k = !1) : (E = bez.getNewSegment(s[n].v[l - 1], s[n].v[0], s[n].o[l - 1], s[n].i[0], (e.s - c) / d, (e.e - c) / d, f[l - 1]), this.addSegmentFromArray(E, r, b, k), k = !1, r.c = !1);
|
|
5942
5942
|
} else
|
|
5943
5943
|
r.c = !1;
|
|
5944
|
-
c += u.addedLength,
|
|
5944
|
+
c += u.addedLength, b += 1;
|
|
5945
5945
|
}
|
|
5946
5946
|
if (r._length && (r.setXYAt(r.v[y][0], r.v[y][1], "i", y), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)), c > e.e)
|
|
5947
5947
|
break;
|
|
5948
|
-
n < a - 1 && (r = shapePool.newElement(), k = !0, p.push(r),
|
|
5948
|
+
n < a - 1 && (r = shapePool.newElement(), k = !0, p.push(r), b = 0);
|
|
5949
5949
|
}
|
|
5950
5950
|
return p;
|
|
5951
5951
|
};
|
|
@@ -5960,9 +5960,9 @@ function requireLottie() {
|
|
|
5960
5960
|
i[0] /= s, i[1] /= s;
|
|
5961
5961
|
var a = shapePool.newElement();
|
|
5962
5962
|
a.c = t.c;
|
|
5963
|
-
var l, o, c, u,
|
|
5963
|
+
var l, o, c, u, b, f;
|
|
5964
5964
|
for (n = 0; n < s; n += 1)
|
|
5965
|
-
l = t.v[n][0] + (i[0] - t.v[n][0]) * r, o = t.v[n][1] + (i[1] - t.v[n][1]) * r, c = t.o[n][0] + (i[0] - t.o[n][0]) * -r, u = t.o[n][1] + (i[1] - t.o[n][1]) * -r,
|
|
5965
|
+
l = t.v[n][0] + (i[0] - t.v[n][0]) * r, o = t.v[n][1] + (i[1] - t.v[n][1]) * r, c = t.o[n][0] + (i[0] - t.o[n][0]) * -r, u = t.o[n][1] + (i[1] - t.o[n][1]) * -r, b = t.i[n][0] + (i[0] - t.i[n][0]) * -r, f = t.i[n][1] + (i[1] - t.i[n][1]) * -r, a.setTripleAt(l, o, c, u, b, f, n);
|
|
5966
5966
|
return a;
|
|
5967
5967
|
}, PuckerAndBloatModifier.prototype.processShapes = function(t) {
|
|
5968
5968
|
var e, r, i = this.shapes.length, s, n, a = this.amount.v;
|
|
@@ -5988,16 +5988,16 @@ function requireLottie() {
|
|
|
5988
5988
|
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || o) {
|
|
5989
5989
|
var c;
|
|
5990
5990
|
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) {
|
|
5991
|
-
var u,
|
|
5991
|
+
var u, b;
|
|
5992
5992
|
if (c = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
|
|
5993
|
-
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (u = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / c, 0),
|
|
5993
|
+
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (u = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / c, 0), b = this.p.getValueAtTime(this.p.keyframes[0].t / c, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (u = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / c, 0), b = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / c, 0)) : (u = this.p.pv, b = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / c, this.p.offsetTime));
|
|
5994
5994
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
5995
|
-
u = [],
|
|
5996
|
-
var f = this.px,
|
|
5997
|
-
f._caching.lastFrame + f.offsetTime <= f.keyframes[0].t ? (u[0] = f.getValueAtTime((f.keyframes[0].t + 0.01) / c, 0), u[1] =
|
|
5995
|
+
u = [], b = [];
|
|
5996
|
+
var f = this.px, E = this.py;
|
|
5997
|
+
f._caching.lastFrame + f.offsetTime <= f.keyframes[0].t ? (u[0] = f.getValueAtTime((f.keyframes[0].t + 0.01) / c, 0), u[1] = E.getValueAtTime((E.keyframes[0].t + 0.01) / c, 0), b[0] = f.getValueAtTime(f.keyframes[0].t / c, 0), b[1] = E.getValueAtTime(E.keyframes[0].t / c, 0)) : f._caching.lastFrame + f.offsetTime >= f.keyframes[f.keyframes.length - 1].t ? (u[0] = f.getValueAtTime(f.keyframes[f.keyframes.length - 1].t / c, 0), u[1] = E.getValueAtTime(E.keyframes[E.keyframes.length - 1].t / c, 0), b[0] = f.getValueAtTime((f.keyframes[f.keyframes.length - 1].t - 0.01) / c, 0), b[1] = E.getValueAtTime((E.keyframes[E.keyframes.length - 1].t - 0.01) / c, 0)) : (u = [f.pv, E.pv], b[0] = f.getValueAtTime((f._caching.lastFrame + f.offsetTime - 0.01) / c, f.offsetTime), b[1] = E.getValueAtTime((E._caching.lastFrame + E.offsetTime - 0.01) / c, E.offsetTime));
|
|
5998
5998
|
} else
|
|
5999
|
-
|
|
6000
|
-
this.v.rotate(-Math.atan2(u[1] -
|
|
5999
|
+
b = t, u = b;
|
|
6000
|
+
this.v.rotate(-Math.atan2(u[1] - b[1], u[0] - b[0]));
|
|
6001
6001
|
}
|
|
6002
6002
|
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]);
|
|
6003
6003
|
}
|
|
@@ -6030,9 +6030,9 @@ function requireLottie() {
|
|
|
6030
6030
|
k: [0, 0, 0]
|
|
6031
6031
|
}, 1, 0, this), c.rx) {
|
|
6032
6032
|
if (this.rx = PropertyFactory.getProp(o, c.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(o, c.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(o, c.rz, 0, degToRads, this), c.or.k[0].ti) {
|
|
6033
|
-
var
|
|
6034
|
-
for (
|
|
6035
|
-
c.or.k[
|
|
6033
|
+
var b, f = c.or.k.length;
|
|
6034
|
+
for (b = 0; b < f; b += 1)
|
|
6035
|
+
c.or.k[b].to = null, c.or.k[b].ti = null;
|
|
6036
6036
|
}
|
|
6037
6037
|
this.or = PropertyFactory.getProp(o, c.or, 1, degToRads, this), this.or.sh = !0;
|
|
6038
6038
|
} else
|
|
@@ -6147,23 +6147,23 @@ function requireLottie() {
|
|
|
6147
6147
|
var c;
|
|
6148
6148
|
for (i = 0; i <= this._groups.length - 1; i += 1) {
|
|
6149
6149
|
if (c = n < l, this._groups[i]._render = c, this.changeGroupRender(this._groups[i].it, c), !c) {
|
|
6150
|
-
var u = this.elemsData[i].it,
|
|
6151
|
-
|
|
6150
|
+
var u = this.elemsData[i].it, b = u[u.length - 1];
|
|
6151
|
+
b.transform.op.v !== 0 ? (b.transform.op._mdf = !0, b.transform.op.v = 0) : b.transform.op._mdf = !1;
|
|
6152
6152
|
}
|
|
6153
6153
|
n += 1;
|
|
6154
6154
|
}
|
|
6155
6155
|
this._currentCopies = l;
|
|
6156
|
-
var f = this.o.v,
|
|
6156
|
+
var f = this.o.v, E = f % 1, p = f > 0 ? Math.floor(f) : Math.ceil(f), y = this.pMatrix.props, k = this.rMatrix.props, d = this.sMatrix.props;
|
|
6157
6157
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
6158
6158
|
var x = 0;
|
|
6159
6159
|
if (f > 0) {
|
|
6160
6160
|
for (; x < p; )
|
|
6161
6161
|
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), x += 1;
|
|
6162
|
-
|
|
6162
|
+
E && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, E, !1), x += E);
|
|
6163
6163
|
} else if (f < 0) {
|
|
6164
6164
|
for (; x > p; )
|
|
6165
6165
|
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), x -= 1;
|
|
6166
|
-
|
|
6166
|
+
E && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -E, !0), x -= E);
|
|
6167
6167
|
}
|
|
6168
6168
|
i = this.data.m === 1 ? 0 : this._currentCopies - 1, s = this.data.m === 1 ? 1 : -1, n = this._currentCopies;
|
|
6169
6169
|
for (var m, g; n; ) {
|
|
@@ -6189,9 +6189,9 @@ function requireLottie() {
|
|
|
6189
6189
|
}, RoundCornersModifier.prototype.processPath = function(t, e) {
|
|
6190
6190
|
var r = shapePool.newElement();
|
|
6191
6191
|
r.c = t.c;
|
|
6192
|
-
var i, s = t._length, n, a, l, o, c, u,
|
|
6192
|
+
var i, s = t._length, n, a, l, o, c, u, b = 0, f, E, p, y, k, d;
|
|
6193
6193
|
for (i = 0; i < s; i += 1)
|
|
6194
|
-
n = t.v[i], l = t.o[i], a = t.i[i], n[0] === l[0] && n[1] === l[1] && n[0] === a[0] && n[1] === a[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(n[0], n[1], l[0], l[1], a[0], a[1],
|
|
6194
|
+
n = t.v[i], l = t.o[i], a = t.i[i], n[0] === l[0] && n[1] === l[1] && n[0] === a[0] && n[1] === a[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(n[0], n[1], l[0], l[1], a[0], a[1], b), b += 1) : (i === 0 ? o = t.v[s - 1] : o = t.v[i - 1], c = Math.sqrt(Math.pow(n[0] - o[0], 2) + Math.pow(n[1] - o[1], 2)), u = c ? Math.min(c / 2, e) / c : 0, k = n[0] + (o[0] - n[0]) * u, f = k, d = n[1] - (n[1] - o[1]) * u, E = d, p = f - (f - n[0]) * roundCorner, y = E - (E - n[1]) * roundCorner, r.setTripleAt(f, E, p, y, k, d, b), b += 1, i === s - 1 ? o = t.v[0] : o = t.v[i + 1], c = Math.sqrt(Math.pow(n[0] - o[0], 2) + Math.pow(n[1] - o[1], 2)), u = c ? Math.min(c / 2, e) / c : 0, p = n[0] + (o[0] - n[0]) * u, f = p, y = n[1] + (o[1] - n[1]) * u, E = y, k = f - (f - n[0]) * roundCorner, d = E - (E - n[1]) * roundCorner, r.setTripleAt(f, E, p, y, k, d, b), b += 1) : (r.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], b), b += 1);
|
|
6195
6195
|
return r;
|
|
6196
6196
|
}, RoundCornersModifier.prototype.processShapes = function(t) {
|
|
6197
6197
|
var e, r, i = this.shapes.length, s, n, a = this.rd.v;
|
|
@@ -6372,8 +6372,8 @@ function requireLottie() {
|
|
|
6372
6372
|
return Math.atan2(0, 1) - Math.atan2(a[1], a[0]);
|
|
6373
6373
|
}
|
|
6374
6374
|
function zigZagCorner(t, e, r, i, s, n, a) {
|
|
6375
|
-
var l = getProjectingAngle(e, r), o = e.v[r % e._length], c = e.v[r === 0 ? e._length - 1 : r - 1], u = e.v[(r + 1) % e._length],
|
|
6376
|
-
setPoint(t, e.v[r % e._length], l, a, i, f / ((s + 1) * 2),
|
|
6375
|
+
var l = getProjectingAngle(e, r), o = e.v[r % e._length], c = e.v[r === 0 ? e._length - 1 : r - 1], u = e.v[(r + 1) % e._length], b = n === 2 ? Math.sqrt(Math.pow(o[0] - c[0], 2) + Math.pow(o[1] - c[1], 2)) : 0, f = n === 2 ? Math.sqrt(Math.pow(o[0] - u[0], 2) + Math.pow(o[1] - u[1], 2)) : 0;
|
|
6376
|
+
setPoint(t, e.v[r % e._length], l, a, i, f / ((s + 1) * 2), b / ((s + 1) * 2));
|
|
6377
6377
|
}
|
|
6378
6378
|
function zigZagSegment(t, e, r, i, s, n) {
|
|
6379
6379
|
for (var a = 0; a < i; a += 1) {
|
|
@@ -6419,10 +6419,10 @@ function requireLottie() {
|
|
|
6419
6419
|
var n = e.points[3], a = r.points[0];
|
|
6420
6420
|
if (i === 3 || pointEqual(n, a)) return n;
|
|
6421
6421
|
if (i === 2) {
|
|
6422
|
-
var l = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, c = lineIntersection(n, polarOffset(n, l + Math.PI / 2, 100), a, polarOffset(a, l + Math.PI / 2, 100)), u = c ? pointDistance(c, n) : pointDistance(n, a) / 2,
|
|
6423
|
-
return t.setXYAt(
|
|
6422
|
+
var l = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, c = lineIntersection(n, polarOffset(n, l + Math.PI / 2, 100), a, polarOffset(a, l + Math.PI / 2, 100)), u = c ? pointDistance(c, n) : pointDistance(n, a) / 2, b = polarOffset(n, l, 2 * u * roundCorner);
|
|
6423
|
+
return t.setXYAt(b[0], b[1], "o", t.length() - 1), b = polarOffset(a, o, 2 * u * roundCorner), t.setTripleAt(a[0], a[1], a[0], a[1], b[0], b[1], t.length()), a;
|
|
6424
6424
|
}
|
|
6425
|
-
var f = pointEqual(n, e.points[2]) ? e.points[0] : e.points[2],
|
|
6425
|
+
var f = pointEqual(n, e.points[2]) ? e.points[0] : e.points[2], E = pointEqual(a, r.points[1]) ? r.points[3] : r.points[1], p = lineIntersection(f, n, a, E);
|
|
6426
6426
|
return p && pointDistance(p, n) < s ? (t.setTripleAt(p[0], p[1], p[0], p[1], p[0], p[1], t.length()), p) : n;
|
|
6427
6427
|
}
|
|
6428
6428
|
function getIntersection(t, e) {
|
|
@@ -6464,13 +6464,13 @@ function requireLottie() {
|
|
|
6464
6464
|
for (a = n - 1; a >= 0; a -= 1)
|
|
6465
6465
|
o = PolynomialBezier.shapeSegmentInverted(t, a), c.push(offsetSegmentSplit(o, e));
|
|
6466
6466
|
c = pruneIntersections(c);
|
|
6467
|
-
var u = null,
|
|
6467
|
+
var u = null, b = null;
|
|
6468
6468
|
for (a = 0; a < c.length; a += 1) {
|
|
6469
6469
|
var f = c[a];
|
|
6470
|
-
for (
|
|
6470
|
+
for (b && (u = joinLines(s, b, f[0], r, i)), b = f[f.length - 1], l = 0; l < f.length; l += 1)
|
|
6471
6471
|
o = f[l], u && pointEqual(o.points[0], u) ? s.setXYAt(o.points[1][0], o.points[1][1], "o", s.length() - 1) : s.setTripleAt(o.points[0][0], o.points[0][1], o.points[1][0], o.points[1][1], o.points[0][0], o.points[0][1], s.length()), s.setTripleAt(o.points[3][0], o.points[3][1], o.points[3][0], o.points[3][1], o.points[2][0], o.points[2][1], s.length()), u = o.points[3];
|
|
6472
6472
|
}
|
|
6473
|
-
return c.length && joinLines(s,
|
|
6473
|
+
return c.length && joinLines(s, b, c[0][0], r, i), s;
|
|
6474
6474
|
}, OffsetPathModifier.prototype.processShapes = function(t) {
|
|
6475
6475
|
var e, r, i = this.shapes.length, s, n, a = this.amount.v, l = this.miterLimit.v, o = this.lineJoin;
|
|
6476
6476
|
if (a !== 0) {
|
|
@@ -6523,14 +6523,14 @@ function requireLottie() {
|
|
|
6523
6523
|
}
|
|
6524
6524
|
}, r = [];
|
|
6525
6525
|
r = r.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
6526
|
-
var i = 127988, s = 917631, n = 917601, a = 917626, l = 65039, o = 8205, c = 127462, u = 127487,
|
|
6526
|
+
var i = 127988, s = 917631, n = 917601, a = 917626, l = 65039, o = 8205, c = 127462, u = 127487, b = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
6527
6527
|
function f(A) {
|
|
6528
6528
|
var j = A.split(","), S, R = j.length, _ = [];
|
|
6529
6529
|
for (S = 0; S < R; S += 1)
|
|
6530
6530
|
j[S] !== "sans-serif" && j[S] !== "monospace" && _.push(j[S]);
|
|
6531
6531
|
return _.join(",");
|
|
6532
6532
|
}
|
|
6533
|
-
function
|
|
6533
|
+
function E(A, j) {
|
|
6534
6534
|
var S = createTag("span");
|
|
6535
6535
|
S.setAttribute("aria-hidden", !0), S.style.fontFamily = j;
|
|
6536
6536
|
var R = createTag("span");
|
|
@@ -6582,7 +6582,7 @@ function requireLottie() {
|
|
|
6582
6582
|
var S = A.list, R, _ = S.length, F = _;
|
|
6583
6583
|
for (R = 0; R < _; R += 1) {
|
|
6584
6584
|
var B = !0, N, G;
|
|
6585
|
-
if (S[R].loaded = !1, S[R].monoCase =
|
|
6585
|
+
if (S[R].loaded = !1, S[R].monoCase = E(S[R].fFamily, "monospace"), S[R].sansCase = E(S[R].fFamily, "sans-serif"), !S[R].fPath)
|
|
6586
6586
|
S[R].loaded = !0, F -= 1;
|
|
6587
6587
|
else if (S[R].fOrigin === "p" || S[R].origin === 3) {
|
|
6588
6588
|
if (N = document.querySelectorAll('style[f-forigin="p"][f-family="' + S[R].fFamily + '"], style[f-origin="3"][f-family="' + S[R].fFamily + '"]'), N.length > 0 && (B = !1), B) {
|
|
@@ -6657,7 +6657,7 @@ function requireLottie() {
|
|
|
6657
6657
|
}
|
|
6658
6658
|
function P(A, j) {
|
|
6659
6659
|
var S = A.toString(16) + j.toString(16);
|
|
6660
|
-
return
|
|
6660
|
+
return b.indexOf(S) !== -1;
|
|
6661
6661
|
}
|
|
6662
6662
|
function T(A) {
|
|
6663
6663
|
return A === o;
|
|
@@ -7160,9 +7160,9 @@ function requireLottie() {
|
|
|
7160
7160
|
this.data = t, this.element = e, this.globalData = r, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
7161
7161
|
var i = this.globalData.defs, s, n = this.masksProperties ? this.masksProperties.length : 0;
|
|
7162
7162
|
this.viewData = createSizedArray(n), this.solidPath = "";
|
|
7163
|
-
var a, l = this.masksProperties, o = 0, c = [], u,
|
|
7163
|
+
var a, l = this.masksProperties, o = 0, c = [], u, b, f = createElementID(), E, p, y, k, d = "clipPath", x = "clip-path";
|
|
7164
7164
|
for (s = 0; s < n; s += 1)
|
|
7165
|
-
if ((l[s].mode !== "a" && l[s].mode !== "n" || l[s].inv || l[s].o.k !== 100 || l[s].o.x) && (d = "mask", x = "mask"), (l[s].mode === "s" || l[s].mode === "i") && o === 0 ? (
|
|
7165
|
+
if ((l[s].mode !== "a" && l[s].mode !== "n" || l[s].inv || l[s].o.k !== 100 || l[s].o.x) && (d = "mask", x = "mask"), (l[s].mode === "s" || l[s].mode === "i") && o === 0 ? (E = createNS("rect"), E.setAttribute("fill", "#ffffff"), E.setAttribute("width", this.element.comp.data.w || 0), E.setAttribute("height", this.element.comp.data.h || 0), c.push(E)) : E = null, a = createNS("path"), l[s].mode === "n")
|
|
7166
7166
|
this.viewData[s] = {
|
|
7167
7167
|
op: PropertyFactory.getProp(this.element, l[s].o, 0, 0.01, this.element),
|
|
7168
7168
|
prop: ShapePropertyFactory.getShapeProp(this.element, l[s], 3),
|
|
@@ -7181,9 +7181,9 @@ function requireLottie() {
|
|
|
7181
7181
|
filterId: m,
|
|
7182
7182
|
lastRadius: 0
|
|
7183
7183
|
}, l[s].mode === "i") {
|
|
7184
|
-
|
|
7184
|
+
b = c.length;
|
|
7185
7185
|
var g = createNS("g");
|
|
7186
|
-
for (u = 0; u <
|
|
7186
|
+
for (u = 0; u < b; u += 1)
|
|
7187
7187
|
g.appendChild(c[u]);
|
|
7188
7188
|
var C = createNS("mask");
|
|
7189
7189
|
C.setAttribute("mask-type", "alpha"), C.setAttribute("id", f + "_" + o), C.appendChild(a), i.appendChild(C), g.setAttribute("mask", "url(" + getLocationHref() + "#" + f + "_" + o + ")"), c.length = 0, c.push(g);
|
|
@@ -7194,7 +7194,7 @@ function requireLottie() {
|
|
|
7194
7194
|
lastPath: "",
|
|
7195
7195
|
op: PropertyFactory.getProp(this.element, l[s].o, 0, 0.01, this.element),
|
|
7196
7196
|
prop: ShapePropertyFactory.getShapeProp(this.element, l[s], 3),
|
|
7197
|
-
invRect:
|
|
7197
|
+
invRect: E
|
|
7198
7198
|
}, this.viewData[s].prop.k || this.drawPath(l[s], this.viewData[s].prop.v, this.viewData[s]);
|
|
7199
7199
|
}
|
|
7200
7200
|
for (this.maskElement = createNS(d), n = c.length, s = 0; s < n; s += 1)
|
|
@@ -7328,8 +7328,8 @@ function requireLottie() {
|
|
|
7328
7328
|
o.appendChild(c), i = createElementID(), s = filtersFactory.createFilter(i);
|
|
7329
7329
|
var u = createNS("feComponentTransfer");
|
|
7330
7330
|
u.setAttribute("in", "SourceGraphic"), s.appendChild(u);
|
|
7331
|
-
var
|
|
7332
|
-
|
|
7331
|
+
var b = createNS("feFuncA");
|
|
7332
|
+
b.setAttribute("type", "table"), b.setAttribute("tableValues", "1.0 0.0"), u.appendChild(b), this.globalData.defs.appendChild(s);
|
|
7333
7333
|
var f = createNS("rect");
|
|
7334
7334
|
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(" + getLocationHref() + "#" + i + ")"), c.appendChild(f), n = createNS("use"), n.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(n), featureSupport.maskType || (o.setAttribute("mask-type", "luminance"), s.appendChild(filtersFactory.createAlphaToLuminanceFilter()), a = createNS("g"), c.appendChild(f), a.appendChild(this.layerElement), c.appendChild(a)), this.globalData.defs.appendChild(o);
|
|
7335
7335
|
}
|
|
@@ -7624,8 +7624,8 @@ function requireLottie() {
|
|
|
7624
7624
|
var t = new Matrix(), e = new Matrix(), r = {
|
|
7625
7625
|
createRenderFunction: i
|
|
7626
7626
|
};
|
|
7627
|
-
function i(
|
|
7628
|
-
switch (
|
|
7627
|
+
function i(b) {
|
|
7628
|
+
switch (b.ty) {
|
|
7629
7629
|
case "fl":
|
|
7630
7630
|
return l;
|
|
7631
7631
|
case "gf":
|
|
@@ -7647,15 +7647,15 @@ function requireLottie() {
|
|
|
7647
7647
|
return null;
|
|
7648
7648
|
}
|
|
7649
7649
|
}
|
|
7650
|
-
function s(
|
|
7651
|
-
(
|
|
7650
|
+
function s(b, f, E) {
|
|
7651
|
+
(E || f.transform.op._mdf) && f.transform.container.setAttribute("opacity", f.transform.op.v), (E || f.transform.mProps._mdf) && f.transform.container.setAttribute("transform", f.transform.mProps.v.to2dCSS());
|
|
7652
7652
|
}
|
|
7653
7653
|
function n() {
|
|
7654
7654
|
}
|
|
7655
|
-
function a(
|
|
7655
|
+
function a(b, f, E) {
|
|
7656
7656
|
var p, y, k, d, x, m, g = f.styles.length, C = f.lvl, P, T, M, I;
|
|
7657
7657
|
for (m = 0; m < g; m += 1) {
|
|
7658
|
-
if (d = f.sh._mdf ||
|
|
7658
|
+
if (d = f.sh._mdf || E, f.styles[m].lvl < C) {
|
|
7659
7659
|
for (T = e.reset(), M = C - f.styles[m].lvl, I = f.transformers.length - 1; !d && M > 0; )
|
|
7660
7660
|
d = f.transformers[I].mProps._mdf || d, M -= 1, I -= 1;
|
|
7661
7661
|
if (d)
|
|
@@ -7669,43 +7669,43 @@ function requireLottie() {
|
|
|
7669
7669
|
f.caches[m] = k;
|
|
7670
7670
|
} else
|
|
7671
7671
|
k = f.caches[m];
|
|
7672
|
-
f.styles[m].d +=
|
|
7672
|
+
f.styles[m].d += b.hd === !0 ? "" : k, f.styles[m]._mdf = d || f.styles[m]._mdf;
|
|
7673
7673
|
}
|
|
7674
7674
|
}
|
|
7675
|
-
function l(
|
|
7675
|
+
function l(b, f, E) {
|
|
7676
7676
|
var p = f.style;
|
|
7677
|
-
(f.c._mdf ||
|
|
7677
|
+
(f.c._mdf || E) && p.pElem.setAttribute("fill", "rgb(" + bmFloor(f.c.v[0]) + "," + bmFloor(f.c.v[1]) + "," + bmFloor(f.c.v[2]) + ")"), (f.o._mdf || E) && p.pElem.setAttribute("fill-opacity", f.o.v);
|
|
7678
7678
|
}
|
|
7679
|
-
function o(
|
|
7680
|
-
c(
|
|
7679
|
+
function o(b, f, E) {
|
|
7680
|
+
c(b, f, E), u(b, f, E);
|
|
7681
7681
|
}
|
|
7682
|
-
function c(
|
|
7682
|
+
function c(b, f, E) {
|
|
7683
7683
|
var p = f.gf, y = f.g._hasOpacity, k = f.s.v, d = f.e.v;
|
|
7684
|
-
if (f.o._mdf ||
|
|
7685
|
-
var x =
|
|
7684
|
+
if (f.o._mdf || E) {
|
|
7685
|
+
var x = b.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
7686
7686
|
f.style.pElem.setAttribute(x, f.o.v);
|
|
7687
7687
|
}
|
|
7688
|
-
if (f.s._mdf ||
|
|
7689
|
-
var m =
|
|
7688
|
+
if (f.s._mdf || E) {
|
|
7689
|
+
var m = b.t === 1 ? "x1" : "cx", g = m === "x1" ? "y1" : "cy";
|
|
7690
7690
|
p.setAttribute(m, k[0]), p.setAttribute(g, k[1]), y && !f.g._collapsable && (f.of.setAttribute(m, k[0]), f.of.setAttribute(g, k[1]));
|
|
7691
7691
|
}
|
|
7692
7692
|
var C, P, T, M;
|
|
7693
|
-
if (f.g._cmdf ||
|
|
7693
|
+
if (f.g._cmdf || E) {
|
|
7694
7694
|
C = f.cst;
|
|
7695
7695
|
var I = f.g.c;
|
|
7696
7696
|
for (T = C.length, P = 0; P < T; P += 1)
|
|
7697
7697
|
M = C[P], M.setAttribute("offset", I[P * 4] + "%"), M.setAttribute("stop-color", "rgb(" + I[P * 4 + 1] + "," + I[P * 4 + 2] + "," + I[P * 4 + 3] + ")");
|
|
7698
7698
|
}
|
|
7699
|
-
if (y && (f.g._omdf ||
|
|
7699
|
+
if (y && (f.g._omdf || E)) {
|
|
7700
7700
|
var $ = f.g.o;
|
|
7701
7701
|
for (f.g._collapsable ? C = f.cst : C = f.ost, T = C.length, P = 0; P < T; P += 1)
|
|
7702
7702
|
M = C[P], f.g._collapsable || M.setAttribute("offset", $[P * 2] + "%"), M.setAttribute("stop-opacity", $[P * 2 + 1]);
|
|
7703
7703
|
}
|
|
7704
|
-
if (
|
|
7705
|
-
(f.e._mdf ||
|
|
7704
|
+
if (b.t === 1)
|
|
7705
|
+
(f.e._mdf || E) && (p.setAttribute("x2", d[0]), p.setAttribute("y2", d[1]), y && !f.g._collapsable && (f.of.setAttribute("x2", d[0]), f.of.setAttribute("y2", d[1])));
|
|
7706
7706
|
else {
|
|
7707
7707
|
var O;
|
|
7708
|
-
if ((f.s._mdf || f.e._mdf ||
|
|
7708
|
+
if ((f.s._mdf || f.e._mdf || E) && (O = Math.sqrt(Math.pow(k[0] - d[0], 2) + Math.pow(k[1] - d[1], 2)), p.setAttribute("r", O), y && !f.g._collapsable && f.of.setAttribute("r", O)), f.e._mdf || f.h._mdf || f.a._mdf || E) {
|
|
7709
7709
|
O || (O = Math.sqrt(Math.pow(k[0] - d[0], 2) + Math.pow(k[1] - d[1], 2)));
|
|
7710
7710
|
var V = Math.atan2(d[1] - k[1], d[0] - k[0]), H = f.h.v;
|
|
7711
7711
|
H >= 1 ? H = 0.99 : H <= -1 && (H = -0.99);
|
|
@@ -7714,9 +7714,9 @@ function requireLottie() {
|
|
|
7714
7714
|
}
|
|
7715
7715
|
}
|
|
7716
7716
|
}
|
|
7717
|
-
function u(
|
|
7717
|
+
function u(b, f, E) {
|
|
7718
7718
|
var p = f.style, y = f.d;
|
|
7719
|
-
y && (y._mdf ||
|
|
7719
|
+
y && (y._mdf || E) && y.dashStr && (p.pElem.setAttribute("stroke-dasharray", y.dashStr), p.pElem.setAttribute("stroke-dashoffset", y.dashoffset[0])), f.c && (f.c._mdf || E) && p.pElem.setAttribute("stroke", "rgb(" + bmFloor(f.c.v[0]) + "," + bmFloor(f.c.v[1]) + "," + bmFloor(f.c.v[2]) + ")"), (f.o._mdf || E) && p.pElem.setAttribute("stroke-opacity", f.o.v), (f.w._mdf || E) && (p.pElem.setAttribute("stroke-width", f.w.v), p.msElem && p.msElem.setAttribute("stroke-width", f.w.v));
|
|
7720
7720
|
}
|
|
7721
7721
|
return r;
|
|
7722
7722
|
}();
|
|
@@ -7784,7 +7784,7 @@ function requireLottie() {
|
|
|
7784
7784
|
this.dynamicProperties[t].getValue();
|
|
7785
7785
|
this.renderModifiers();
|
|
7786
7786
|
}, SVGShapeElement.prototype.searchShapes = function(t, e, r, i, s, n, a) {
|
|
7787
|
-
var l = [].concat(n), o, c = t.length - 1, u,
|
|
7787
|
+
var l = [].concat(n), o, c = t.length - 1, u, b, f = [], E = [], p, y, k;
|
|
7788
7788
|
for (o = c; o >= 0; o -= 1) {
|
|
7789
7789
|
if (k = this.searchProcessedElement(t[o]), k ? e[o] = r[k - 1] : t[o]._render = a, t[o].ty === "fl" || t[o].ty === "st" || t[o].ty === "gf" || t[o].ty === "gs" || t[o].ty === "no")
|
|
7790
7790
|
k ? e[o].style.closed = !1 : e[o] = this.createStyleElement(t[o], s), t[o]._render && e[o].style.pElem.parentNode !== i && i.appendChild(e[o].style.pElem), f.push(e[o].style);
|
|
@@ -7792,16 +7792,16 @@ function requireLottie() {
|
|
|
7792
7792
|
if (!k)
|
|
7793
7793
|
e[o] = this.createGroupElement(t[o]);
|
|
7794
7794
|
else
|
|
7795
|
-
for (
|
|
7795
|
+
for (b = e[o].it.length, u = 0; u < b; u += 1)
|
|
7796
7796
|
e[o].prevViewData[u] = e[o].it[u];
|
|
7797
7797
|
this.searchShapes(t[o].it, e[o].it, e[o].prevViewData, e[o].gr, s + 1, l, a), t[o]._render && e[o].gr.parentNode !== i && i.appendChild(e[o].gr);
|
|
7798
|
-
} else t[o].ty === "tr" ? (k || (e[o] = this.createTransformElement(t[o], i)), p = e[o].transform, l.push(p)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (k || (e[o] = this.createShapeElement(t[o], l, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (k ? (y = e[o], y.closed = !1) : (y = ShapeModifiers.getModifier(t[o].ty), y.init(this, t[o]), e[o] = y, this.shapeModifiers.push(y)),
|
|
7798
|
+
} else t[o].ty === "tr" ? (k || (e[o] = this.createTransformElement(t[o], i)), p = e[o].transform, l.push(p)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (k || (e[o] = this.createShapeElement(t[o], l, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (k ? (y = e[o], y.closed = !1) : (y = ShapeModifiers.getModifier(t[o].ty), y.init(this, t[o]), e[o] = y, this.shapeModifiers.push(y)), E.push(y)) : t[o].ty === "rp" && (k ? (y = e[o], y.closed = !0) : (y = ShapeModifiers.getModifier(t[o].ty), e[o] = y, y.init(this, t, o, e), this.shapeModifiers.push(y), a = !1), E.push(y));
|
|
7799
7799
|
this.addProcessedElement(t[o], o + 1);
|
|
7800
7800
|
}
|
|
7801
7801
|
for (c = f.length, o = 0; o < c; o += 1)
|
|
7802
7802
|
f[o].closed = !0;
|
|
7803
|
-
for (c =
|
|
7804
|
-
|
|
7803
|
+
for (c = E.length, o = 0; o < c; o += 1)
|
|
7804
|
+
E[o].closed = !0;
|
|
7805
7805
|
}, SVGShapeElement.prototype.renderInnerContent = function() {
|
|
7806
7806
|
this.renderModifiers();
|
|
7807
7807
|
var t, e = this.stylesList.length;
|
|
@@ -7899,7 +7899,7 @@ function requireLottie() {
|
|
|
7899
7899
|
return e;
|
|
7900
7900
|
}, TextProperty.prototype.completeTextData = function(t) {
|
|
7901
7901
|
t.__complete = !0;
|
|
7902
|
-
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, l = 0, o, c = r.m.g, u = 0,
|
|
7902
|
+
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, l = 0, o, c = r.m.g, u = 0, b = 0, f = 0, E = [], p = 0, y = 0, k, d, x = e.getFontByName(t.f), m, g = 0, C = getFontProperties(x);
|
|
7903
7903
|
t.fWeight = C.weight, t.fStyle = C.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), n = t.finalText.length, t.finalLineHeight = t.lh;
|
|
7904
7904
|
var P = t.tr / 1e3 * t.finalSize, T;
|
|
7905
7905
|
if (t.sz)
|
|
@@ -7913,7 +7913,7 @@ function requireLottie() {
|
|
|
7913
7913
|
p = -P, g = 0;
|
|
7914
7914
|
var z = 0, L;
|
|
7915
7915
|
for (s = 0; s < n; s += 1)
|
|
7916
|
-
if (a = !1, L = t.finalText[s], T = L.charCodeAt(0), T === 13 || T === 3 ? (z = 0,
|
|
7916
|
+
if (a = !1, L = t.finalText[s], T = L.charCodeAt(0), T === 13 || T === 3 ? (z = 0, E.push(p), y = p > y ? p : y, p = -2 * P, o = "", a = !0, f += 1) : o = L, e.chars ? (m = e.getCharData(L, x.fStyle, e.getFontByName(t.f).fFamily), g = a ? 0 : m.w * t.finalSize / 100) : g = e.measureText(o, t.f, t.finalSize), L === " " ? z += g + P : (p += g + P + z, z = 0), i.push({
|
|
7917
7917
|
l: g,
|
|
7918
7918
|
an: g,
|
|
7919
7919
|
add: u,
|
|
@@ -7924,19 +7924,19 @@ function requireLottie() {
|
|
|
7924
7924
|
animatorJustifyOffset: 0
|
|
7925
7925
|
}), c == 2) {
|
|
7926
7926
|
if (u += g, o === "" || o === " " || s === n - 1) {
|
|
7927
|
-
for ((o === "" || o === " ") && (u -= g);
|
|
7928
|
-
i[
|
|
7927
|
+
for ((o === "" || o === " ") && (u -= g); b <= s; )
|
|
7928
|
+
i[b].an = u, i[b].ind = l, i[b].extra = g, b += 1;
|
|
7929
7929
|
l += 1, u = 0;
|
|
7930
7930
|
}
|
|
7931
7931
|
} else if (c == 3) {
|
|
7932
7932
|
if (u += g, o === "" || s === n - 1) {
|
|
7933
|
-
for (o === "" && (u -= g);
|
|
7934
|
-
i[
|
|
7933
|
+
for (o === "" && (u -= g); b <= s; )
|
|
7934
|
+
i[b].an = u, i[b].ind = l, i[b].extra = g, b += 1;
|
|
7935
7935
|
u = 0, l += 1;
|
|
7936
7936
|
}
|
|
7937
7937
|
} else
|
|
7938
7938
|
i[l].ind = l, i[l].extra = 0, l += 1;
|
|
7939
|
-
if (t.l = i, y = p > y ? p : y,
|
|
7939
|
+
if (t.l = i, y = p > y ? p : y, E.push(p), t.sz)
|
|
7940
7940
|
t.boxWidth = t.sz[0], t.justifyOffset = 0;
|
|
7941
7941
|
else
|
|
7942
7942
|
switch (t.boxWidth = y, t.j) {
|
|
@@ -7949,7 +7949,7 @@ function requireLottie() {
|
|
|
7949
7949
|
default:
|
|
7950
7950
|
t.justifyOffset = 0;
|
|
7951
7951
|
}
|
|
7952
|
-
t.lineWidths =
|
|
7952
|
+
t.lineWidths = E;
|
|
7953
7953
|
var A = r.a, j, S;
|
|
7954
7954
|
d = A.length;
|
|
7955
7955
|
var R, _, F = [];
|
|
@@ -7997,24 +7997,24 @@ function requireLottie() {
|
|
|
7997
7997
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
7998
7998
|
var l = 0, o = 0, c = 1, u = 1;
|
|
7999
7999
|
this.ne.v > 0 ? l = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ? c = 1 - this.xe.v / 100 : u = 1 + this.xe.v / 100;
|
|
8000
|
-
var
|
|
8000
|
+
var b = BezierFactory.getBezierEasing(l, o, c, u).get, f = 0, E = this.finalS, p = this.finalE, y = this.data.sh;
|
|
8001
8001
|
if (y === 2)
|
|
8002
|
-
p ===
|
|
8002
|
+
p === E ? f = a >= p ? 1 : 0 : f = t(0, e(0.5 / (p - E) + (a - E) / (p - E), 1)), f = b(f);
|
|
8003
8003
|
else if (y === 3)
|
|
8004
|
-
p ===
|
|
8004
|
+
p === E ? f = a >= p ? 0 : 1 : f = 1 - t(0, e(0.5 / (p - E) + (a - E) / (p - E), 1)), f = b(f);
|
|
8005
8005
|
else if (y === 4)
|
|
8006
|
-
p ===
|
|
8006
|
+
p === E ? f = 0 : (f = t(0, e(0.5 / (p - E) + (a - E) / (p - E), 1)), f < 0.5 ? f *= 2 : f = 1 - 2 * (f - 0.5)), f = b(f);
|
|
8007
8007
|
else if (y === 5) {
|
|
8008
|
-
if (p ===
|
|
8008
|
+
if (p === E)
|
|
8009
8009
|
f = 0;
|
|
8010
8010
|
else {
|
|
8011
|
-
var k = p -
|
|
8012
|
-
a = e(t(0, a + 0.5 -
|
|
8011
|
+
var k = p - E;
|
|
8012
|
+
a = e(t(0, a + 0.5 - E), p - E);
|
|
8013
8013
|
var d = -k / 2 + a, x = k / 2;
|
|
8014
8014
|
f = Math.sqrt(1 - d * d / (x * x));
|
|
8015
8015
|
}
|
|
8016
|
-
f =
|
|
8017
|
-
} else y === 6 ? (p ===
|
|
8016
|
+
f = b(f);
|
|
8017
|
+
} else y === 6 ? (p === E ? f = 0 : (a = e(t(0, a + 0.5 - E), p - E), f = (1 + Math.cos(Math.PI + Math.PI * 2 * a / (p - E))) / 2), f = b(f)) : (a >= r(E) && (a - E < 0 ? f = t(0, e(e(p, 1) - (E - a), 1)) : f = t(0, e(p - a, 1))), f = b(f));
|
|
8018
8018
|
if (this.sm.v !== 100) {
|
|
8019
8019
|
var m = this.sm.v * 0.01;
|
|
8020
8020
|
m === 0 && (m = 1e-8);
|
|
@@ -8027,8 +8027,8 @@ function requireLottie() {
|
|
|
8027
8027
|
this.iterateDynamicProperties(), this._mdf = a || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, a && this.data.r === 2 && (this.e.v = this._currentTextLength);
|
|
8028
8028
|
var l = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / l, c = this.s.v / l + o, u = this.e.v / l + o;
|
|
8029
8029
|
if (c > u) {
|
|
8030
|
-
var
|
|
8031
|
-
c = u, u =
|
|
8030
|
+
var b = c;
|
|
8031
|
+
c = u, u = b;
|
|
8032
8032
|
}
|
|
8033
8033
|
this.finalS = c, this.finalE = u;
|
|
8034
8034
|
}
|
|
@@ -8083,31 +8083,31 @@ function requireLottie() {
|
|
|
8083
8083
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
8084
8084
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
8085
8085
|
this._isFirstFrame = !1;
|
|
8086
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, l = this.renderedLetters.length, o, c, u,
|
|
8086
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, l = this.renderedLetters.length, o, c, u, b, f = t.l, E, p, y, k, d, x, m, g, C, P, T, M, I, $, O;
|
|
8087
8087
|
if (this._hasMaskedPath) {
|
|
8088
8088
|
if (O = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
8089
8089
|
var V = O.v;
|
|
8090
|
-
this._pathData.r.v && (V = V.reverse()),
|
|
8090
|
+
this._pathData.r.v && (V = V.reverse()), E = {
|
|
8091
8091
|
tLength: 0,
|
|
8092
8092
|
segments: []
|
|
8093
|
-
},
|
|
8093
|
+
}, b = V._length - 1;
|
|
8094
8094
|
var H;
|
|
8095
|
-
for (M = 0, u = 0; u <
|
|
8096
|
-
H = bez.buildBezierData(V.v[u], V.v[u + 1], [V.o[u][0] - V.v[u][0], V.o[u][1] - V.v[u][1]], [V.i[u + 1][0] - V.v[u + 1][0], V.i[u + 1][1] - V.v[u + 1][1]]),
|
|
8097
|
-
u =
|
|
8095
|
+
for (M = 0, u = 0; u < b; u += 1)
|
|
8096
|
+
H = bez.buildBezierData(V.v[u], V.v[u + 1], [V.o[u][0] - V.v[u][0], V.o[u][1] - V.v[u][1]], [V.i[u + 1][0] - V.v[u + 1][0], V.i[u + 1][1] - V.v[u + 1][1]]), E.tLength += H.segmentLength, E.segments.push(H), M += H.segmentLength;
|
|
8097
|
+
u = b, O.v.c && (H = bez.buildBezierData(V.v[u], V.v[0], [V.o[u][0] - V.v[u][0], V.o[u][1] - V.v[u][1]], [V.i[0][0] - V.v[0][0], V.i[0][1] - V.v[0][1]]), E.tLength += H.segmentLength, E.segments.push(H), M += H.segmentLength), this._pathData.pi = E;
|
|
8098
8098
|
}
|
|
8099
|
-
if (
|
|
8100
|
-
for (
|
|
8099
|
+
if (E = this._pathData.pi, p = this._pathData.f.v, m = 0, x = 1, k = 0, d = !0, P = E.segments, p < 0 && O.v.c)
|
|
8100
|
+
for (E.tLength < Math.abs(p) && (p = -Math.abs(p) % E.tLength), m = P.length - 1, C = P[m].points, x = C.length - 1; p < 0; )
|
|
8101
8101
|
p += C[x].partialLength, x -= 1, x < 0 && (m -= 1, C = P[m].points, x = C.length - 1);
|
|
8102
8102
|
C = P[m].points, g = C[x - 1], y = C[x], T = y.partialLength;
|
|
8103
8103
|
}
|
|
8104
|
-
|
|
8104
|
+
b = f.length, o = 0, c = 0;
|
|
8105
8105
|
var z = t.finalSize * 1.2 * 0.714, L = !0, A, j, S, R, _;
|
|
8106
8106
|
R = i.length;
|
|
8107
8107
|
var F, B = -1, N, G, W, K = p, X = m, Z = x, rt = -1, nt, it, at, tt, D, q, U, J, Y = "", et = this.defaultPropsArray, Q;
|
|
8108
8108
|
if (t.j === 2 || t.j === 1) {
|
|
8109
8109
|
var st = 0, ot = 0, ct = t.j === 2 ? -0.5 : -1, lt = 0, ft = !0;
|
|
8110
|
-
for (u = 0; u <
|
|
8110
|
+
for (u = 0; u < b; u += 1)
|
|
8111
8111
|
if (f[u].n) {
|
|
8112
8112
|
for (st && (st += ot); lt < u; )
|
|
8113
8113
|
f[lt].animatorJustifyOffset = st, lt += 1;
|
|
@@ -8120,7 +8120,7 @@ function requireLottie() {
|
|
|
8120
8120
|
for (st && (st += ot); lt < u; )
|
|
8121
8121
|
f[lt].animatorJustifyOffset = st, lt += 1;
|
|
8122
8122
|
}
|
|
8123
|
-
for (u = 0; u <
|
|
8123
|
+
for (u = 0; u < b; u += 1) {
|
|
8124
8124
|
if (n.reset(), nt = 1, f[u].n)
|
|
8125
8125
|
o = 0, c += t.yOffset, c += L ? 1 : 0, p = K, L = !1, this._hasMaskedPath && (m = X, x = Z, C = P[m].points, g = C[x - 1], y = C[x], T = y.partialLength, k = 0), Y = "", J = "", q = "", Q = "", et = this.defaultPropsArray;
|
|
8126
8126
|
else {
|
|
@@ -8140,7 +8140,7 @@ function requireLottie() {
|
|
|
8140
8140
|
var ht = 0;
|
|
8141
8141
|
for (S = 0; S < R; S += 1)
|
|
8142
8142
|
A = i[S].a, A.p.propType && (j = i[S].s, F = j.getMult(f[u].anIndexes[S], s.a[S].s.totalChars), F.length ? ht += A.p.v[0] * F[0] : ht += A.p.v[0] * F), A.a.propType && (j = i[S].s, F = j.getMult(f[u].anIndexes[S], s.a[S].s.totalChars), F.length ? ht += A.a.v[0] * F[0] : ht += A.a.v[0] * F);
|
|
8143
|
-
for (d = !0, this._pathData.a.v && (p = f[0].an * 0.5 + (M - this._pathData.f.v - f[0].an * 0.5 - f[f.length - 1].an * 0.5) * B / (
|
|
8143
|
+
for (d = !0, this._pathData.a.v && (p = f[0].an * 0.5 + (M - this._pathData.f.v - f[0].an * 0.5 - f[f.length - 1].an * 0.5) * B / (b - 1), p += this._pathData.f.v); d; )
|
|
8144
8144
|
k + T >= p + ht || !C ? (I = (p + ht - k) / y.partialLength, G = g.point[0] + (y.point[0] - g.point[0]) * I, W = g.point[1] + (y.point[1] - g.point[1]) * I, n.translate(-r[0] * f[u].an * 5e-3, -(r[1] * z) * 0.01), d = !1) : C && (k += y.partialLength, x += 1, x >= C.length && (x = 0, m += 1, P[m] ? C = P[m].points : O.v.c ? (x = 0, m = 0, C = P[m].points) : (k -= y.partialLength, C = null)), C && (g = y, y = C[x], T = y.partialLength));
|
|
8145
8145
|
N = f[u].an / 2 - f[u].add, n.translate(-N, 0, 0);
|
|
8146
8146
|
} else
|
|
@@ -8259,8 +8259,8 @@ function requireLottie() {
|
|
|
8259
8259
|
this.layerElement.setAttribute("aria-label", r.t);
|
|
8260
8260
|
var a = r.l || [], l = !!this.globalData.fontManager.chars;
|
|
8261
8261
|
e = a.length;
|
|
8262
|
-
var o, c = this.mHelper, u = "",
|
|
8263
|
-
if (
|
|
8262
|
+
var o, c = this.mHelper, u = "", b = this.data.singleShape, f = 0, E = 0, p = !0, y = r.tr * 1e-3 * r.finalSize;
|
|
8263
|
+
if (b && !l && !r.sz) {
|
|
8264
8264
|
var k = this.textContainer, d = "start";
|
|
8265
8265
|
switch (r.j) {
|
|
8266
8266
|
case 1:
|
|
@@ -8275,11 +8275,11 @@ function requireLottie() {
|
|
|
8275
8275
|
}
|
|
8276
8276
|
k.setAttribute("text-anchor", d), k.setAttribute("letter-spacing", y);
|
|
8277
8277
|
var x = this.buildTextContents(r.finalText);
|
|
8278
|
-
for (e = x.length,
|
|
8279
|
-
o = this.textSpans[t].span || createNS("tspan"), o.textContent = x[t], o.setAttribute("x", 0), o.setAttribute("y",
|
|
8278
|
+
for (e = x.length, E = r.ps ? r.ps[1] + r.ascent : 0, t = 0; t < e; t += 1)
|
|
8279
|
+
o = this.textSpans[t].span || createNS("tspan"), o.textContent = x[t], o.setAttribute("x", 0), o.setAttribute("y", E), o.style.display = "inherit", k.appendChild(o), this.textSpans[t] || (this.textSpans[t] = {
|
|
8280
8280
|
span: null,
|
|
8281
8281
|
glyph: null
|
|
8282
|
-
}), this.textSpans[t].span = o,
|
|
8282
|
+
}), this.textSpans[t].span = o, E += r.finalLineHeight;
|
|
8283
8283
|
this.layerElement.appendChild(k);
|
|
8284
8284
|
} else {
|
|
8285
8285
|
var m = this.textSpans.length, g;
|
|
@@ -8288,7 +8288,7 @@ function requireLottie() {
|
|
|
8288
8288
|
span: null,
|
|
8289
8289
|
childSpan: null,
|
|
8290
8290
|
glyph: null
|
|
8291
|
-
}), !l || !
|
|
8291
|
+
}), !l || !b || t === 0) {
|
|
8292
8292
|
if (o = m > t ? this.textSpans[t].span : createNS(l ? "g" : "text"), m <= t) {
|
|
8293
8293
|
if (o.setAttribute("stroke-linecap", "butt"), o.setAttribute("stroke-linejoin", "round"), o.setAttribute("stroke-miterlimit", "4"), this.textSpans[t].span = o, l) {
|
|
8294
8294
|
var C = createNS("g");
|
|
@@ -8298,7 +8298,7 @@ function requireLottie() {
|
|
|
8298
8298
|
}
|
|
8299
8299
|
o.style.display = "inherit";
|
|
8300
8300
|
}
|
|
8301
|
-
if (c.reset(),
|
|
8301
|
+
if (c.reset(), b && (a[t].n && (f = -y, E += r.yOffset, E += p ? 1 : 0, p = !1), this.applyTextPropertiesToMatrix(r, c, a[t].line, f, E), f += a[t].l || 0, f += y), l) {
|
|
8302
8302
|
g = this.globalData.fontManager.getCharData(r.finalText[t], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
8303
8303
|
var P;
|
|
8304
8304
|
if (g.t === 1)
|
|
@@ -8313,9 +8313,9 @@ function requireLottie() {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
this.textSpans[t].glyph = P, P._debug = !0, P.prepareFrame(0), P.renderFrame(), this.textSpans[t].childSpan.appendChild(P.layerElement), g.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
8315
8315
|
} else
|
|
8316
|
-
|
|
8316
|
+
b && o.setAttribute("transform", "translate(" + c.props[12] + "," + c.props[13] + ")"), o.textContent = a[t].val, o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
8317
8317
|
}
|
|
8318
|
-
|
|
8318
|
+
b && o && o.setAttribute("d", u);
|
|
8319
8319
|
}
|
|
8320
8320
|
for (; t < this.textSpans.length; )
|
|
8321
8321
|
this.textSpans[t].span.style.display = "none", t += 1;
|
|
@@ -8811,18 +8811,18 @@ function requireLottie() {
|
|
|
8811
8811
|
for (e = 0; e < r; e += 1)
|
|
8812
8812
|
t[e].closed = !0;
|
|
8813
8813
|
}, CVShapeElement.prototype.searchShapes = function(t, e, r, i, s) {
|
|
8814
|
-
var n, a = t.length - 1, l, o, c = [], u = [],
|
|
8814
|
+
var n, a = t.length - 1, l, o, c = [], u = [], b, f, E, p = [].concat(s);
|
|
8815
8815
|
for (n = a; n >= 0; n -= 1) {
|
|
8816
|
-
if (
|
|
8817
|
-
|
|
8816
|
+
if (b = this.searchProcessedElement(t[n]), b ? e[n] = r[b - 1] : t[n]._shouldRender = i, t[n].ty === "fl" || t[n].ty === "st" || t[n].ty === "gf" || t[n].ty === "gs")
|
|
8817
|
+
b ? e[n].style.closed = !1 : e[n] = this.createStyleElement(t[n], p), c.push(e[n].style);
|
|
8818
8818
|
else if (t[n].ty === "gr") {
|
|
8819
|
-
if (!
|
|
8819
|
+
if (!b)
|
|
8820
8820
|
e[n] = this.createGroupElement(t[n]);
|
|
8821
8821
|
else
|
|
8822
8822
|
for (o = e[n].it.length, l = 0; l < o; l += 1)
|
|
8823
8823
|
e[n].prevViewData[l] = e[n].it[l];
|
|
8824
8824
|
this.searchShapes(t[n].it, e[n].it, e[n].prevViewData, i, p);
|
|
8825
|
-
} else t[n].ty === "tr" ? (
|
|
8825
|
+
} else t[n].ty === "tr" ? (b || (E = this.createTransformElement(t[n]), e[n] = E), p.push(e[n]), this.addTransformToStyleList(e[n])) : t[n].ty === "sh" || t[n].ty === "rc" || t[n].ty === "el" || t[n].ty === "sr" ? b || (e[n] = this.createShapeElement(t[n])) : t[n].ty === "tm" || t[n].ty === "rd" || t[n].ty === "pb" || t[n].ty === "zz" || t[n].ty === "op" ? (b ? (f = e[n], f.closed = !1) : (f = ShapeModifiers.getModifier(t[n].ty), f.init(this, t[n]), e[n] = f, this.shapeModifiers.push(f)), u.push(f)) : t[n].ty === "rp" && (b ? (f = e[n], f.closed = !0) : (f = ShapeModifiers.getModifier(t[n].ty), e[n] = f, f.init(this, t, n, e), this.shapeModifiers.push(f), i = !1), u.push(f));
|
|
8826
8826
|
this.addProcessedElement(t[n], n + 1);
|
|
8827
8827
|
}
|
|
8828
8828
|
for (this.removeTransformFromStyleList(), this.closeStyles(c), a = u.length, n = 0; n < a; n += 1)
|
|
@@ -8832,15 +8832,15 @@ function requireLottie() {
|
|
|
8832
8832
|
}, CVShapeElement.prototype.renderShapeTransform = function(t, e) {
|
|
8833
8833
|
(t._opMdf || e.op._mdf || this._isFirstFrame) && (e.opacity = t.opacity, e.opacity *= e.op.v, e._opMdf = !0);
|
|
8834
8834
|
}, CVShapeElement.prototype.drawLayer = function() {
|
|
8835
|
-
var t, e = this.stylesList.length, r, i, s, n, a, l, o = this.globalData.renderer, c = this.globalData.canvasContext, u,
|
|
8835
|
+
var t, e = this.stylesList.length, r, i, s, n, a, l, o = this.globalData.renderer, c = this.globalData.canvasContext, u, b;
|
|
8836
8836
|
for (t = 0; t < e; t += 1)
|
|
8837
|
-
if (
|
|
8838
|
-
for (o.save(), a =
|
|
8839
|
-
for ((u === "st" || u === "gs") && (c.beginPath(),
|
|
8837
|
+
if (b = this.stylesList[t], u = b.type, !((u === "st" || u === "gs") && b.wi === 0 || !b.data._shouldRender || b.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
|
|
8838
|
+
for (o.save(), a = b.elements, u === "st" || u === "gs" ? (o.ctxStrokeStyle(u === "st" ? b.co : b.grd), o.ctxLineWidth(b.wi), o.ctxLineCap(b.lc), o.ctxLineJoin(b.lj), o.ctxMiterLimit(b.ml || 0)) : o.ctxFillStyle(u === "fl" ? b.co : b.grd), o.ctxOpacity(b.coOp), u !== "st" && u !== "gs" && c.beginPath(), o.ctxTransform(b.preTransforms.finalTransform.props), i = a.length, r = 0; r < i; r += 1) {
|
|
8839
|
+
for ((u === "st" || u === "gs") && (c.beginPath(), b.da && (c.setLineDash(b.da), c.lineDashOffset = b.do)), l = a[r].trNodes, n = l.length, s = 0; s < n; s += 1)
|
|
8840
8840
|
l[s].t === "m" ? c.moveTo(l[s].p[0], l[s].p[1]) : l[s].t === "c" ? c.bezierCurveTo(l[s].pts[0], l[s].pts[1], l[s].pts[2], l[s].pts[3], l[s].pts[4], l[s].pts[5]) : c.closePath();
|
|
8841
|
-
(u === "st" || u === "gs") && (o.ctxStroke(),
|
|
8841
|
+
(u === "st" || u === "gs") && (o.ctxStroke(), b.da && c.setLineDash(this.dashResetter));
|
|
8842
8842
|
}
|
|
8843
|
-
u !== "st" && u !== "gs" && this.globalData.renderer.ctxFill(
|
|
8843
|
+
u !== "st" && u !== "gs" && this.globalData.renderer.ctxFill(b.r), o.restore();
|
|
8844
8844
|
}
|
|
8845
8845
|
}, CVShapeElement.prototype.renderShape = function(t, e, r, i) {
|
|
8846
8846
|
var s, n = e.length - 1, a;
|
|
@@ -8894,8 +8894,8 @@ function requireLottie() {
|
|
|
8894
8894
|
else {
|
|
8895
8895
|
var o = Math.sqrt(Math.pow(a[0] - l[0], 2) + Math.pow(a[1] - l[1], 2)), c = Math.atan2(l[1] - a[1], l[0] - a[0]), u = e.h.v;
|
|
8896
8896
|
u >= 1 ? u = 0.99 : u <= -1 && (u = -0.99);
|
|
8897
|
-
var
|
|
8898
|
-
s = n.createRadialGradient(f,
|
|
8897
|
+
var b = o * u, f = Math.cos(c + e.a.v) * b + a[0], E = Math.sin(c + e.a.v) * b + a[1];
|
|
8898
|
+
s = n.createRadialGradient(f, E, 0, a[0], a[1], o);
|
|
8899
8899
|
}
|
|
8900
8900
|
var p, y = t.g.p, k = e.g.c, d = 1;
|
|
8901
8901
|
for (p = 0; p < y; p += 1)
|
|
@@ -8926,13 +8926,13 @@ function requireLottie() {
|
|
|
8926
8926
|
t.sc && (r = !0, this.values.stroke = this.buildColor(t.sc), this.values.sWidth = t.sw);
|
|
8927
8927
|
var i = this.globalData.fontManager.getFontByName(t.f), s, n, a = t.l, l = this.mHelper;
|
|
8928
8928
|
this.stroke = r, this.values.fValue = t.finalSize + "px " + this.globalData.fontManager.getFontByName(t.f).fFamily, n = t.finalText.length;
|
|
8929
|
-
var o, c, u,
|
|
8929
|
+
var o, c, u, b, f, E, p, y, k, d, x = this.data.singleShape, m = t.tr * 1e-3 * t.finalSize, g = 0, C = 0, P = !0, T = 0;
|
|
8930
8930
|
for (s = 0; s < n; s += 1) {
|
|
8931
8931
|
o = this.globalData.fontManager.getCharData(t.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), c = o && o.data || {}, l.reset(), x && a[s].n && (g = -m, C += t.yOffset, C += P ? 1 : 0, P = !1), f = c.shapes ? c.shapes[0].it : [], p = f.length, l.scale(t.finalSize / 100, t.finalSize / 100), x && this.applyTextPropertiesToMatrix(t, l, a[s].line, g, C), k = createSizedArray(p - 1);
|
|
8932
8932
|
var M = 0;
|
|
8933
|
-
for (
|
|
8934
|
-
if (f[
|
|
8935
|
-
for (
|
|
8933
|
+
for (E = 0; E < p; E += 1)
|
|
8934
|
+
if (f[E].ty === "sh") {
|
|
8935
|
+
for (b = f[E].ks.k.i.length, y = f[E].ks.k, d = [], u = 1; u < b; u += 1)
|
|
8936
8936
|
u === 1 && d.push(l.applyToX(y.v[0][0], y.v[0][1], 0), l.applyToY(y.v[0][0], y.v[0][1], 0)), d.push(l.applyToX(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToY(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToX(y.i[u][0], y.i[u][1], 0), l.applyToY(y.i[u][0], y.i[u][1], 0), l.applyToX(y.v[u][0], y.v[u][1], 0), l.applyToY(y.v[u][0], y.v[u][1], 0));
|
|
8937
8937
|
d.push(l.applyToX(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToY(y.o[u - 1][0], y.o[u - 1][1], 0), l.applyToX(y.i[0][0], y.i[0][1], 0), l.applyToY(y.i[0][0], y.i[0][1], 0), l.applyToX(y.v[0][0], y.v[0][1], 0), l.applyToY(y.v[0][0], y.v[0][1], 0)), k[M] = d, M += 1;
|
|
8938
8938
|
}
|
|
@@ -8946,18 +8946,18 @@ function requireLottie() {
|
|
|
8946
8946
|
t.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
8947
8947
|
var e, r, i, s, n, a, l = this.textAnimator.renderedLetters, o = this.textProperty.currentData.l;
|
|
8948
8948
|
r = o.length;
|
|
8949
|
-
var c, u = null,
|
|
8949
|
+
var c, u = null, b = null, f = null, E, p, y = this.globalData.renderer;
|
|
8950
8950
|
for (e = 0; e < r; e += 1)
|
|
8951
8951
|
if (!o[e].n) {
|
|
8952
8952
|
if (c = l[e], c && (y.save(), y.ctxTransform(c.p), y.ctxOpacity(c.o)), this.fill) {
|
|
8953
|
-
for (c && c.fc ? u !== c.fc && (y.ctxFillStyle(c.fc), u = c.fc) : u !== this.values.fill && (u = this.values.fill, y.ctxFillStyle(this.values.fill)),
|
|
8954
|
-
for (p =
|
|
8953
|
+
for (c && c.fc ? u !== c.fc && (y.ctxFillStyle(c.fc), u = c.fc) : u !== this.values.fill && (u = this.values.fill, y.ctxFillStyle(this.values.fill)), E = this.textSpans[e].elem, s = E.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
8954
|
+
for (p = E[i], a = p.length, this.globalData.canvasContext.moveTo(p[0], p[1]), n = 2; n < a; n += 6)
|
|
8955
8955
|
this.globalData.canvasContext.bezierCurveTo(p[n], p[n + 1], p[n + 2], p[n + 3], p[n + 4], p[n + 5]);
|
|
8956
8956
|
this.globalData.canvasContext.closePath(), y.ctxFill();
|
|
8957
8957
|
}
|
|
8958
8958
|
if (this.stroke) {
|
|
8959
|
-
for (c && c.sw ? f !== c.sw && (f = c.sw, y.ctxLineWidth(c.sw)) : f !== this.values.sWidth && (f = this.values.sWidth, y.ctxLineWidth(this.values.sWidth)), c && c.sc ?
|
|
8960
|
-
for (p =
|
|
8959
|
+
for (c && c.sw ? f !== c.sw && (f = c.sw, y.ctxLineWidth(c.sw)) : f !== this.values.sWidth && (f = this.values.sWidth, y.ctxLineWidth(this.values.sWidth)), c && c.sc ? b !== c.sc && (b = c.sc, y.ctxStrokeStyle(c.sc)) : b !== this.values.stroke && (b = this.values.stroke, y.ctxStrokeStyle(this.values.stroke)), E = this.textSpans[e].elem, s = E.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
8960
|
+
for (p = E[i], a = p.length, this.globalData.canvasContext.moveTo(p[0], p[1]), n = 2; n < a; n += 6)
|
|
8961
8961
|
this.globalData.canvasContext.bezierCurveTo(p[n], p[n + 1], p[n + 2], p[n + 3], p[n + 4], p[n + 5]);
|
|
8962
8962
|
this.globalData.canvasContext.closePath(), y.ctxStroke();
|
|
8963
8963
|
}
|
|
@@ -9291,8 +9291,8 @@ function requireLottie() {
|
|
|
9291
9291
|
width: 0,
|
|
9292
9292
|
height: 0
|
|
9293
9293
|
}, HShapeElement.prototype.getBoundsOfCurve = function(t, e, r, i) {
|
|
9294
|
-
for (var s = [[t[0], i[0]], [t[1], i[1]]], n, a, l, o, c, u,
|
|
9295
|
-
a = 6 * t[f] - 12 * e[f] + 6 * r[f], n = -3 * t[f] + 9 * e[f] - 9 * r[f] + 3 * i[f], l = 3 * e[f] - 3 * t[f], a |= 0, n |= 0, l |= 0, n === 0 && a === 0 || (n === 0 ? (o = -l / a, o > 0 && o < 1 && s[f].push(this.calculateF(o, t, e, r, i, f))) : (c = a * a - 4 * l * n, c >= 0 && (u = (-a + bmSqrt(c)) / (2 * n), u > 0 && u < 1 && s[f].push(this.calculateF(u, t, e, r, i, f)),
|
|
9294
|
+
for (var s = [[t[0], i[0]], [t[1], i[1]]], n, a, l, o, c, u, b, f = 0; f < 2; ++f)
|
|
9295
|
+
a = 6 * t[f] - 12 * e[f] + 6 * r[f], n = -3 * t[f] + 9 * e[f] - 9 * r[f] + 3 * i[f], l = 3 * e[f] - 3 * t[f], a |= 0, n |= 0, l |= 0, n === 0 && a === 0 || (n === 0 ? (o = -l / a, o > 0 && o < 1 && s[f].push(this.calculateF(o, t, e, r, i, f))) : (c = a * a - 4 * l * n, c >= 0 && (u = (-a + bmSqrt(c)) / (2 * n), u > 0 && u < 1 && s[f].push(this.calculateF(u, t, e, r, i, f)), b = (-a - bmSqrt(c)) / (2 * n), b > 0 && b < 1 && s[f].push(this.calculateF(b, t, e, r, i, f)))));
|
|
9296
9296
|
this.shapeBoundingBox.left = bmMin.apply(null, s[0]), this.shapeBoundingBox.top = bmMin.apply(null, s[1]), this.shapeBoundingBox.right = bmMax.apply(null, s[0]), this.shapeBoundingBox.bottom = bmMax.apply(null, s[1]);
|
|
9297
9297
|
}, HShapeElement.prototype.calculateF = function(t, e, r, i, s, n) {
|
|
9298
9298
|
return bmPow(1 - t, 3) * e[n] + 3 * bmPow(1 - t, 2) * t * r[n] + 3 * (1 - t) * bmPow(t, 2) * i[n] + bmPow(t, 3) * s[n];
|
|
@@ -9358,22 +9358,22 @@ function requireLottie() {
|
|
|
9358
9358
|
}
|
|
9359
9359
|
var a, l, o = t.l;
|
|
9360
9360
|
l = o.length;
|
|
9361
|
-
var c, u,
|
|
9361
|
+
var c, u, b, f = this.mHelper, E, p = "", y = 0;
|
|
9362
9362
|
for (a = 0; a < l; a += 1) {
|
|
9363
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[y] ? c = this.textPaths[y] : (c = createNS("path"), c.setAttribute("stroke-linecap", lineCapEnum[1]), c.setAttribute("stroke-linejoin", lineJoinEnum[2]), c.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[y] ? (u = this.textSpans[y],
|
|
9363
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[y] ? c = this.textPaths[y] : (c = createNS("path"), c.setAttribute("stroke-linecap", lineCapEnum[1]), c.setAttribute("stroke-linejoin", lineJoinEnum[2]), c.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[y] ? (u = this.textSpans[y], b = u.children[0]) : (u = createTag("div"), u.style.lineHeight = 0, b = createNS("svg"), b.appendChild(c), styleDiv(u)))) : this.isMasked ? c = this.textPaths[y] ? this.textPaths[y] : createNS("text") : this.textSpans[y] ? (u = this.textSpans[y], c = this.textPaths[y]) : (u = createTag("span"), styleDiv(u), c = createTag("span"), styleDiv(c), u.appendChild(c)), this.globalData.fontManager.chars) {
|
|
9364
9364
|
var k = this.globalData.fontManager.getCharData(t.finalText[a], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), d;
|
|
9365
|
-
if (k ? d = k.data : d = null, f.reset(), d && d.shapes && d.shapes.length && (
|
|
9365
|
+
if (k ? d = k.data : d = null, f.reset(), d && d.shapes && d.shapes.length && (E = d.shapes[0].it, f.scale(t.finalSize / 100, t.finalSize / 100), p = this.createPathShape(f, E), c.setAttribute("d", p)), this.isMasked)
|
|
9366
9366
|
this.innerElem.appendChild(c);
|
|
9367
9367
|
else {
|
|
9368
9368
|
if (this.innerElem.appendChild(u), d && d.shapes) {
|
|
9369
|
-
document.body.appendChild(
|
|
9370
|
-
var x =
|
|
9371
|
-
|
|
9372
|
-
var m =
|
|
9369
|
+
document.body.appendChild(b);
|
|
9370
|
+
var x = b.getBBox();
|
|
9371
|
+
b.setAttribute("width", x.width + 2), b.setAttribute("height", x.height + 2), b.setAttribute("viewBox", x.x - 1 + " " + (x.y - 1) + " " + (x.width + 2) + " " + (x.height + 2));
|
|
9372
|
+
var m = b.style, g = "translate(" + (x.x - 1) + "px," + (x.y - 1) + "px)";
|
|
9373
9373
|
m.transform = g, m.webkitTransform = g, o[a].yOffset = x.y - 1;
|
|
9374
9374
|
} else
|
|
9375
|
-
|
|
9376
|
-
u.appendChild(
|
|
9375
|
+
b.setAttribute("width", 1), b.setAttribute("height", 1);
|
|
9376
|
+
u.appendChild(b);
|
|
9377
9377
|
}
|
|
9378
9378
|
} else if (c.textContent = o[a].val, c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
|
|
9379
9379
|
this.innerElem.appendChild(c);
|
|
@@ -9407,9 +9407,9 @@ function requireLottie() {
|
|
|
9407
9407
|
if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
|
|
9408
9408
|
var u = this.innerElem.getBBox();
|
|
9409
9409
|
this.currentBBox.w !== u.width && (this.currentBBox.w = u.width, this.svgElement.setAttribute("width", u.width)), this.currentBBox.h !== u.height && (this.currentBBox.h = u.height, this.svgElement.setAttribute("height", u.height));
|
|
9410
|
-
var
|
|
9411
|
-
if (this.currentBBox.w !== u.width +
|
|
9412
|
-
this.currentBBox.w = u.width +
|
|
9410
|
+
var b = 1;
|
|
9411
|
+
if (this.currentBBox.w !== u.width + b * 2 || this.currentBBox.h !== u.height + b * 2 || this.currentBBox.x !== u.x - b || this.currentBBox.y !== u.y - b) {
|
|
9412
|
+
this.currentBBox.w = u.width + b * 2, this.currentBBox.h = u.height + b * 2, this.currentBBox.x = u.x - b, this.currentBBox.y = u.y - b, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), t = this.svgElement.style;
|
|
9413
9413
|
var f = "translate(" + this.currentBBox.x + "px," + this.currentBBox.y + "px)";
|
|
9414
9414
|
t.transform = f, t.webkitTransform = f;
|
|
9415
9415
|
}
|
|
@@ -9459,14 +9459,14 @@ function requireLottie() {
|
|
|
9459
9459
|
var u = !this._prevMat.equals(this.mat);
|
|
9460
9460
|
if ((u || this.pe._mdf) && this.comp.threeDElements) {
|
|
9461
9461
|
r = this.comp.threeDElements.length;
|
|
9462
|
-
var
|
|
9462
|
+
var b, f, E;
|
|
9463
9463
|
for (e = 0; e < r; e += 1)
|
|
9464
|
-
if (
|
|
9464
|
+
if (b = this.comp.threeDElements[e], b.type === "3d") {
|
|
9465
9465
|
if (u) {
|
|
9466
9466
|
var p = this.mat.toCSS();
|
|
9467
|
-
|
|
9467
|
+
E = b.container.style, E.transform = p, E.webkitTransform = p;
|
|
9468
9468
|
}
|
|
9469
|
-
this.pe._mdf && (f =
|
|
9469
|
+
this.pe._mdf && (f = b.perspectiveElem.style, f.perspective = this.pe.v + "px", f.webkitPerspective = this.pe.v + "px");
|
|
9470
9470
|
}
|
|
9471
9471
|
this.mat.clone(this._prevMat);
|
|
9472
9472
|
}
|
|
@@ -9674,13 +9674,13 @@ function requireLottie() {
|
|
|
9674
9674
|
}, _typeof$2(t);
|
|
9675
9675
|
}
|
|
9676
9676
|
function seedRandom(t, e) {
|
|
9677
|
-
var r = this, i = 256, s = 6, n = 52, a = "random", l = e.pow(i, s), o = e.pow(2, n), c = o * 2, u = i - 1,
|
|
9677
|
+
var r = this, i = 256, s = 6, n = 52, a = "random", l = e.pow(i, s), o = e.pow(2, n), c = o * 2, u = i - 1, b;
|
|
9678
9678
|
function f(m, g, C) {
|
|
9679
9679
|
var P = [];
|
|
9680
9680
|
g = g === !0 ? {
|
|
9681
9681
|
entropy: !0
|
|
9682
9682
|
} : g || {};
|
|
9683
|
-
var T = k(y(g.entropy ? [m, x(t)] : m === null ? d() : m, 3), P), M = new
|
|
9683
|
+
var T = k(y(g.entropy ? [m, x(t)] : m === null ? d() : m, 3), P), M = new E(P), I = function() {
|
|
9684
9684
|
for (var O = M.g(s), V = l, H = 0; O < o; )
|
|
9685
9685
|
O = (O + H) * i, V *= i, H = M.g(1);
|
|
9686
9686
|
for (; O >= c; )
|
|
@@ -9698,7 +9698,7 @@ function requireLottie() {
|
|
|
9698
9698
|
})(I, T, "global" in g ? g.global : this == e, g.state);
|
|
9699
9699
|
}
|
|
9700
9700
|
e["seed" + a] = f;
|
|
9701
|
-
function
|
|
9701
|
+
function E(m) {
|
|
9702
9702
|
var g, C = m.length, P = this, T = 0, M = P.i = P.j = 0, I = P.S = [];
|
|
9703
9703
|
for (C || (m = [C++]); T < i; )
|
|
9704
9704
|
I[T] = T++;
|
|
@@ -10143,8 +10143,8 @@ function requireLottie() {
|
|
|
10143
10143
|
return 0;
|
|
10144
10144
|
var u = "";
|
|
10145
10145
|
"s" in l.keyframes[c - 1] ? u = l.keyframes[c - 1].s : "e" in l.keyframes[c - 2] ? u = l.keyframes[c - 2].e : u = l.keyframes[c - 2].s;
|
|
10146
|
-
var
|
|
10147
|
-
return
|
|
10146
|
+
var b = o === "unidimensional" ? new Number(u) : Object.assign({}, u);
|
|
10147
|
+
return b.time = l.keyframes[c - 1].t / l.elem.comp.globalData.frameRate, b.value = o === "unidimensional" ? u[0] : u, b;
|
|
10148
10148
|
}, a.valueAtTime = l.getValueAtTime, a.speedAtTime = l.getSpeedAtTime, a.velocityAtTime = l.getVelocityAtTime, a.propertyGroup = l.propertyGroup;
|
|
10149
10149
|
}
|
|
10150
10150
|
function i(a) {
|
|
@@ -10159,8 +10159,8 @@ function requireLottie() {
|
|
|
10159
10159
|
var l = 1 / a.mult, o = a.data && a.data.l || a.pv.length, c = createTypedArray("float32", o), u = createTypedArray("float32", o);
|
|
10160
10160
|
return c.value = u, r(c, a, "multidimensional"), function() {
|
|
10161
10161
|
a.k && a.getValue();
|
|
10162
|
-
for (var
|
|
10163
|
-
u[
|
|
10162
|
+
for (var b = 0; b < o; b += 1)
|
|
10163
|
+
u[b] = a.v[b] * l, c[b] = u[b];
|
|
10164
10164
|
return c;
|
|
10165
10165
|
};
|
|
10166
10166
|
}
|
|
@@ -10252,8 +10252,8 @@ function requireLottie() {
|
|
|
10252
10252
|
function t(c) {
|
|
10253
10253
|
var u = new Matrix();
|
|
10254
10254
|
if (c !== void 0) {
|
|
10255
|
-
var
|
|
10256
|
-
|
|
10255
|
+
var b = this._elem.finalTransform.mProp.getValueAtTime(c);
|
|
10256
|
+
b.clone(u);
|
|
10257
10257
|
} else {
|
|
10258
10258
|
var f = this._elem.finalTransform.mProp;
|
|
10259
10259
|
f.applyToMatrix(u);
|
|
@@ -10261,43 +10261,43 @@ function requireLottie() {
|
|
|
10261
10261
|
return u;
|
|
10262
10262
|
}
|
|
10263
10263
|
function e(c, u) {
|
|
10264
|
-
var
|
|
10265
|
-
return
|
|
10264
|
+
var b = this.getMatrix(u);
|
|
10265
|
+
return b.props[12] = 0, b.props[13] = 0, b.props[14] = 0, this.applyPoint(b, c);
|
|
10266
10266
|
}
|
|
10267
10267
|
function r(c, u) {
|
|
10268
|
-
var
|
|
10269
|
-
return this.applyPoint(
|
|
10268
|
+
var b = this.getMatrix(u);
|
|
10269
|
+
return this.applyPoint(b, c);
|
|
10270
10270
|
}
|
|
10271
10271
|
function i(c, u) {
|
|
10272
|
-
var
|
|
10273
|
-
return
|
|
10272
|
+
var b = this.getMatrix(u);
|
|
10273
|
+
return b.props[12] = 0, b.props[13] = 0, b.props[14] = 0, this.invertPoint(b, c);
|
|
10274
10274
|
}
|
|
10275
10275
|
function s(c, u) {
|
|
10276
|
-
var
|
|
10277
|
-
return this.invertPoint(
|
|
10276
|
+
var b = this.getMatrix(u);
|
|
10277
|
+
return this.invertPoint(b, c);
|
|
10278
10278
|
}
|
|
10279
10279
|
function n(c, u) {
|
|
10280
10280
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
10281
|
-
var
|
|
10282
|
-
for (
|
|
10283
|
-
this._elem.hierarchy[
|
|
10281
|
+
var b, f = this._elem.hierarchy.length;
|
|
10282
|
+
for (b = 0; b < f; b += 1)
|
|
10283
|
+
this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(c);
|
|
10284
10284
|
}
|
|
10285
10285
|
return c.applyToPointArray(u[0], u[1], u[2] || 0);
|
|
10286
10286
|
}
|
|
10287
10287
|
function a(c, u) {
|
|
10288
10288
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
10289
|
-
var
|
|
10290
|
-
for (
|
|
10291
|
-
this._elem.hierarchy[
|
|
10289
|
+
var b, f = this._elem.hierarchy.length;
|
|
10290
|
+
for (b = 0; b < f; b += 1)
|
|
10291
|
+
this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(c);
|
|
10292
10292
|
}
|
|
10293
10293
|
return c.inversePoint(u);
|
|
10294
10294
|
}
|
|
10295
10295
|
function l(c) {
|
|
10296
10296
|
var u = new Matrix();
|
|
10297
10297
|
if (u.reset(), this._elem.finalTransform.mProp.applyToMatrix(u), this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
10298
|
-
var
|
|
10299
|
-
for (
|
|
10300
|
-
this._elem.hierarchy[
|
|
10298
|
+
var b, f = this._elem.hierarchy.length;
|
|
10299
|
+
for (b = 0; b < f; b += 1)
|
|
10300
|
+
this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(u);
|
|
10301
10301
|
return u.inversePoint(c);
|
|
10302
10302
|
}
|
|
10303
10303
|
return u.inversePoint(c);
|
|
@@ -10307,18 +10307,18 @@ function requireLottie() {
|
|
|
10307
10307
|
}
|
|
10308
10308
|
return function(c) {
|
|
10309
10309
|
var u;
|
|
10310
|
-
function
|
|
10311
|
-
|
|
10310
|
+
function b(y) {
|
|
10311
|
+
E.mask = new MaskManagerInterface(y, c);
|
|
10312
10312
|
}
|
|
10313
10313
|
function f(y) {
|
|
10314
|
-
|
|
10314
|
+
E.effect = y;
|
|
10315
10315
|
}
|
|
10316
|
-
function
|
|
10316
|
+
function E(y) {
|
|
10317
10317
|
switch (y) {
|
|
10318
10318
|
case "ADBE Root Vectors Group":
|
|
10319
10319
|
case "Contents":
|
|
10320
10320
|
case 2:
|
|
10321
|
-
return
|
|
10321
|
+
return E.shapeInterface;
|
|
10322
10322
|
case 1:
|
|
10323
10323
|
case 6:
|
|
10324
10324
|
case "Transform":
|
|
@@ -10329,16 +10329,16 @@ function requireLottie() {
|
|
|
10329
10329
|
case "ADBE Effect Parade":
|
|
10330
10330
|
case "effects":
|
|
10331
10331
|
case "Effects":
|
|
10332
|
-
return
|
|
10332
|
+
return E.effect;
|
|
10333
10333
|
case "ADBE Text Properties":
|
|
10334
|
-
return
|
|
10334
|
+
return E.textInterface;
|
|
10335
10335
|
default:
|
|
10336
10336
|
return null;
|
|
10337
10337
|
}
|
|
10338
10338
|
}
|
|
10339
|
-
|
|
10339
|
+
E.getMatrix = t, E.invertPoint = a, E.applyPoint = n, E.toWorld = r, E.toWorldVec = e, E.fromWorld = s, E.fromWorldVec = i, E.toComp = r, E.fromComp = l, E.sampleImage = o, E.sourceRectAtTime = c.sourceRectAtTime.bind(c), E._elem = c, u = TransformExpressionInterface(c.finalTransform.mProp);
|
|
10340
10340
|
var p = getDescriptor(u, "anchorPoint");
|
|
10341
|
-
return Object.defineProperties(
|
|
10341
|
+
return Object.defineProperties(E, {
|
|
10342
10342
|
hasParent: {
|
|
10343
10343
|
get: function() {
|
|
10344
10344
|
return c.hierarchy.length;
|
|
@@ -10365,7 +10365,7 @@ function requireLottie() {
|
|
|
10365
10365
|
return c.isInRange;
|
|
10366
10366
|
}
|
|
10367
10367
|
}
|
|
10368
|
-
}),
|
|
10368
|
+
}), E.startTime = c.data.st, E.index = c.data.ind, E.source = c.data.refId, E.height = c.data.ty === 0 ? c.data.h : 100, E.width = c.data.ty === 0 ? c.data.w : 100, E.inPoint = c.data.ip / c.comp.globalData.frameRate, E.outPoint = c.data.op / c.comp.globalData.frameRate, E._name = c.data.nm, E.registerMaskInterface = b, E.registerEffectsInterface = f, E;
|
|
10369
10369
|
};
|
|
10370
10370
|
}(), propertyGroupFactory = /* @__PURE__ */ function() {
|
|
10371
10371
|
return function(t, e) {
|
|
@@ -10392,34 +10392,34 @@ function requireLottie() {
|
|
|
10392
10392
|
var a = [], l = s.data.ef, o, c = s.effectsManager.effectElements.length;
|
|
10393
10393
|
for (o = 0; o < c; o += 1)
|
|
10394
10394
|
a.push(r(l[o], s.effectsManager.effectElements[o], n, s));
|
|
10395
|
-
var u = s.data.ef || [],
|
|
10395
|
+
var u = s.data.ef || [], b = function(E) {
|
|
10396
10396
|
for (o = 0, c = u.length; o < c; ) {
|
|
10397
|
-
if (
|
|
10397
|
+
if (E === u[o].nm || E === u[o].mn || E === u[o].ix)
|
|
10398
10398
|
return a[o];
|
|
10399
10399
|
o += 1;
|
|
10400
10400
|
}
|
|
10401
10401
|
return null;
|
|
10402
10402
|
};
|
|
10403
|
-
return Object.defineProperty(
|
|
10403
|
+
return Object.defineProperty(b, "numProperties", {
|
|
10404
10404
|
get: function() {
|
|
10405
10405
|
return u.length;
|
|
10406
10406
|
}
|
|
10407
|
-
}),
|
|
10407
|
+
}), b;
|
|
10408
10408
|
}
|
|
10409
10409
|
return null;
|
|
10410
10410
|
}
|
|
10411
10411
|
function r(s, n, a, l) {
|
|
10412
|
-
function o(
|
|
10412
|
+
function o(E) {
|
|
10413
10413
|
for (var p = s.ef, y = 0, k = p.length; y < k; ) {
|
|
10414
|
-
if (
|
|
10414
|
+
if (E === p[y].nm || E === p[y].mn || E === p[y].ix)
|
|
10415
10415
|
return p[y].ty === 5 ? u[y] : u[y]();
|
|
10416
10416
|
y += 1;
|
|
10417
10417
|
}
|
|
10418
10418
|
throw new Error();
|
|
10419
10419
|
}
|
|
10420
|
-
var c = propertyGroupFactory(o, a), u = [],
|
|
10421
|
-
for (
|
|
10422
|
-
s.ef[
|
|
10420
|
+
var c = propertyGroupFactory(o, a), u = [], b, f = s.ef.length;
|
|
10421
|
+
for (b = 0; b < f; b += 1)
|
|
10422
|
+
s.ef[b].ty === 5 ? u.push(r(s.ef[b], n.effectElements[b], n.effectElements[b].propertyGroup, l)) : u.push(i(n.effectElements[b], s.ef[b].ty, l, c));
|
|
10423
10423
|
return s.mn === "ADBE Color Control" && Object.defineProperty(o, "color", {
|
|
10424
10424
|
get: function() {
|
|
10425
10425
|
return u[0]();
|
|
@@ -10485,7 +10485,7 @@ function requireLottie() {
|
|
|
10485
10485
|
function t(p, y, k) {
|
|
10486
10486
|
var d = [], x, m = p ? p.length : 0;
|
|
10487
10487
|
for (x = 0; x < m; x += 1)
|
|
10488
|
-
p[x].ty === "gr" ? d.push(r(p[x], y[x], k)) : p[x].ty === "fl" ? d.push(i(p[x], y[x], k)) : p[x].ty === "st" ? d.push(a(p[x], y[x], k)) : p[x].ty === "tm" ? d.push(l(p[x], y[x], k)) : p[x].ty === "tr" || (p[x].ty === "el" ? d.push(c(p[x], y[x], k)) : p[x].ty === "sr" ? d.push(u(p[x], y[x], k)) : p[x].ty === "sh" ? d.push(ShapePathInterface(p[x], y[x], k)) : p[x].ty === "rc" ? d.push(
|
|
10488
|
+
p[x].ty === "gr" ? d.push(r(p[x], y[x], k)) : p[x].ty === "fl" ? d.push(i(p[x], y[x], k)) : p[x].ty === "st" ? d.push(a(p[x], y[x], k)) : p[x].ty === "tm" ? d.push(l(p[x], y[x], k)) : p[x].ty === "tr" || (p[x].ty === "el" ? d.push(c(p[x], y[x], k)) : p[x].ty === "sr" ? d.push(u(p[x], y[x], k)) : p[x].ty === "sh" ? d.push(ShapePathInterface(p[x], y[x], k)) : p[x].ty === "rc" ? d.push(b(p[x], y[x], k)) : p[x].ty === "rd" ? d.push(f(p[x], y[x], k)) : p[x].ty === "rp" ? d.push(E(p[x], y[x], k)) : p[x].ty === "gf" ? d.push(s(p[x], y[x], k)) : d.push(n(p[x], y[x])));
|
|
10489
10489
|
return d;
|
|
10490
10490
|
}
|
|
10491
10491
|
function e(p, y, k) {
|
|
@@ -10714,7 +10714,7 @@ function requireLottie() {
|
|
|
10714
10714
|
}
|
|
10715
10715
|
}), d.mn = p.mn, d;
|
|
10716
10716
|
}
|
|
10717
|
-
function
|
|
10717
|
+
function b(p, y, k) {
|
|
10718
10718
|
function d(g) {
|
|
10719
10719
|
return p.p.ix === g ? d.position : p.r.ix === g ? d.roundness : p.s.ix === g || g === "Size" || g === "ADBE Vector Rect Size" ? d.size : null;
|
|
10720
10720
|
}
|
|
@@ -10748,7 +10748,7 @@ function requireLottie() {
|
|
|
10748
10748
|
}
|
|
10749
10749
|
}), d.mn = p.mn, d;
|
|
10750
10750
|
}
|
|
10751
|
-
function
|
|
10751
|
+
function E(p, y, k) {
|
|
10752
10752
|
function d(g) {
|
|
10753
10753
|
return p.c.ix === g || g === "Copies" ? d.copies : p.o.ix === g || g === "Offset" ? d.offset : null;
|
|
10754
10754
|
}
|
|
@@ -10866,9 +10866,9 @@ function requireLottie() {
|
|
|
10866
10866
|
function r(a) {
|
|
10867
10867
|
var l = -0.01, o = this.getValueAtTime(a), c = this.getValueAtTime(a + l), u = 0;
|
|
10868
10868
|
if (o.length) {
|
|
10869
|
-
var
|
|
10870
|
-
for (
|
|
10871
|
-
u += Math.pow(c[
|
|
10869
|
+
var b;
|
|
10870
|
+
for (b = 0; b < o.length; b += 1)
|
|
10871
|
+
u += Math.pow(c[b] - o[b], 2);
|
|
10872
10872
|
u = Math.sqrt(u) * 100;
|
|
10873
10873
|
} else
|
|
10874
10874
|
u = 0;
|
|
@@ -10880,9 +10880,9 @@ function requireLottie() {
|
|
|
10880
10880
|
var l = -1e-3, o = this.getValueAtTime(a), c = this.getValueAtTime(a + l), u;
|
|
10881
10881
|
if (o.length) {
|
|
10882
10882
|
u = createTypedArray("float32", o.length);
|
|
10883
|
-
var
|
|
10884
|
-
for (
|
|
10885
|
-
u[
|
|
10883
|
+
var b;
|
|
10884
|
+
for (b = 0; b < o.length; b += 1)
|
|
10885
|
+
u[b] = (c[b] - o[b]) / l;
|
|
10886
10886
|
} else
|
|
10887
10887
|
u = (c - o) / l;
|
|
10888
10888
|
return u;
|
|
@@ -10903,7 +10903,7 @@ function requireLottie() {
|
|
|
10903
10903
|
};
|
|
10904
10904
|
}();
|
|
10905
10905
|
function addPropertyDecorator() {
|
|
10906
|
-
function t(f,
|
|
10906
|
+
function t(f, E, p) {
|
|
10907
10907
|
if (!this.k || !this.keyframes)
|
|
10908
10908
|
return this.pv;
|
|
10909
10909
|
f = f ? f.toLowerCase() : "";
|
|
@@ -10911,7 +10911,7 @@ function requireLottie() {
|
|
|
10911
10911
|
if (y <= d)
|
|
10912
10912
|
return this.pv;
|
|
10913
10913
|
var x, m;
|
|
10914
|
-
p ? (
|
|
10914
|
+
p ? (E ? x = Math.abs(d - this.elem.comp.globalData.frameRate * E) : x = Math.max(0, d - this.elem.data.ip), m = d - x) : ((!E || E > k.length - 1) && (E = k.length - 1), m = k[k.length - 1 - E].t, x = d - m);
|
|
10915
10915
|
var g, C, P;
|
|
10916
10916
|
if (f === "pingpong") {
|
|
10917
10917
|
var T = Math.floor((y - m) / x);
|
|
@@ -10936,7 +10936,7 @@ function requireLottie() {
|
|
|
10936
10936
|
}
|
|
10937
10937
|
return this.getValueAtTime(((y - m) % x + m) / this.comp.globalData.frameRate, 0);
|
|
10938
10938
|
}
|
|
10939
|
-
function e(f,
|
|
10939
|
+
function e(f, E, p) {
|
|
10940
10940
|
if (!this.k)
|
|
10941
10941
|
return this.pv;
|
|
10942
10942
|
f = f ? f.toLowerCase() : "";
|
|
@@ -10944,7 +10944,7 @@ function requireLottie() {
|
|
|
10944
10944
|
if (y >= d)
|
|
10945
10945
|
return this.pv;
|
|
10946
10946
|
var x, m;
|
|
10947
|
-
p ? (
|
|
10947
|
+
p ? (E ? x = Math.abs(this.elem.comp.globalData.frameRate * E) : x = Math.max(0, this.elem.data.op - d), m = d + x) : ((!E || E > k.length - 1) && (E = k.length - 1), m = k[E].t, x = m - d);
|
|
10948
10948
|
var g, C, P;
|
|
10949
10949
|
if (f === "pingpong") {
|
|
10950
10950
|
var T = Math.floor((d - y) / x);
|
|
@@ -10969,14 +10969,14 @@ function requireLottie() {
|
|
|
10969
10969
|
}
|
|
10970
10970
|
return this.getValueAtTime((x - ((d - y) % x + d)) / this.comp.globalData.frameRate, 0);
|
|
10971
10971
|
}
|
|
10972
|
-
function r(f,
|
|
10972
|
+
function r(f, E) {
|
|
10973
10973
|
if (!this.k)
|
|
10974
10974
|
return this.pv;
|
|
10975
|
-
if (f = (f || 0.4) * 0.5,
|
|
10975
|
+
if (f = (f || 0.4) * 0.5, E = Math.floor(E || 5), E <= 1)
|
|
10976
10976
|
return this.pv;
|
|
10977
|
-
var p = this.comp.renderedFrame / this.comp.globalData.frameRate, y = p - f, k = p + f, d =
|
|
10977
|
+
var p = this.comp.renderedFrame / this.comp.globalData.frameRate, y = p - f, k = p + f, d = E > 1 ? (k - y) / (E - 1) : 1, x = 0, m = 0, g;
|
|
10978
10978
|
this.pv.length ? g = createTypedArray("float32", this.pv.length) : g = 0;
|
|
10979
|
-
for (var C; x <
|
|
10979
|
+
for (var C; x < E; ) {
|
|
10980
10980
|
if (C = this.getValueAtTime(y + x * d), this.pv.length)
|
|
10981
10981
|
for (m = 0; m < this.pv.length; m += 1)
|
|
10982
10982
|
g[m] += C[m];
|
|
@@ -10986,66 +10986,66 @@ function requireLottie() {
|
|
|
10986
10986
|
}
|
|
10987
10987
|
if (this.pv.length)
|
|
10988
10988
|
for (m = 0; m < this.pv.length; m += 1)
|
|
10989
|
-
g[m] /=
|
|
10989
|
+
g[m] /= E;
|
|
10990
10990
|
else
|
|
10991
|
-
g /=
|
|
10991
|
+
g /= E;
|
|
10992
10992
|
return g;
|
|
10993
10993
|
}
|
|
10994
10994
|
function i(f) {
|
|
10995
10995
|
this._transformCachingAtTime || (this._transformCachingAtTime = {
|
|
10996
10996
|
v: new Matrix()
|
|
10997
10997
|
});
|
|
10998
|
-
var
|
|
10999
|
-
if (
|
|
10998
|
+
var E = this._transformCachingAtTime.v;
|
|
10999
|
+
if (E.cloneFromProps(this.pre.props), this.appliedTransformations < 1) {
|
|
11000
11000
|
var p = this.a.getValueAtTime(f);
|
|
11001
|
-
|
|
11001
|
+
E.translate(-p[0] * this.a.mult, -p[1] * this.a.mult, p[2] * this.a.mult);
|
|
11002
11002
|
}
|
|
11003
11003
|
if (this.appliedTransformations < 2) {
|
|
11004
11004
|
var y = this.s.getValueAtTime(f);
|
|
11005
|
-
|
|
11005
|
+
E.scale(y[0] * this.s.mult, y[1] * this.s.mult, y[2] * this.s.mult);
|
|
11006
11006
|
}
|
|
11007
11007
|
if (this.sk && this.appliedTransformations < 3) {
|
|
11008
11008
|
var k = this.sk.getValueAtTime(f), d = this.sa.getValueAtTime(f);
|
|
11009
|
-
|
|
11009
|
+
E.skewFromAxis(-k * this.sk.mult, d * this.sa.mult);
|
|
11010
11010
|
}
|
|
11011
11011
|
if (this.r && this.appliedTransformations < 4) {
|
|
11012
11012
|
var x = this.r.getValueAtTime(f);
|
|
11013
|
-
|
|
11013
|
+
E.rotate(-x * this.r.mult);
|
|
11014
11014
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
11015
11015
|
var m = this.rz.getValueAtTime(f), g = this.ry.getValueAtTime(f), C = this.rx.getValueAtTime(f), P = this.or.getValueAtTime(f);
|
|
11016
|
-
|
|
11016
|
+
E.rotateZ(-m * this.rz.mult).rotateY(g * this.ry.mult).rotateX(C * this.rx.mult).rotateZ(-P[2] * this.or.mult).rotateY(P[1] * this.or.mult).rotateX(P[0] * this.or.mult);
|
|
11017
11017
|
}
|
|
11018
11018
|
if (this.data.p && this.data.p.s) {
|
|
11019
11019
|
var T = this.px.getValueAtTime(f), M = this.py.getValueAtTime(f);
|
|
11020
11020
|
if (this.data.p.z) {
|
|
11021
11021
|
var I = this.pz.getValueAtTime(f);
|
|
11022
|
-
|
|
11022
|
+
E.translate(T * this.px.mult, M * this.py.mult, -I * this.pz.mult);
|
|
11023
11023
|
} else
|
|
11024
|
-
|
|
11024
|
+
E.translate(T * this.px.mult, M * this.py.mult, 0);
|
|
11025
11025
|
} else {
|
|
11026
11026
|
var $ = this.p.getValueAtTime(f);
|
|
11027
|
-
|
|
11027
|
+
E.translate($[0] * this.p.mult, $[1] * this.p.mult, -$[2] * this.p.mult);
|
|
11028
11028
|
}
|
|
11029
|
-
return
|
|
11029
|
+
return E;
|
|
11030
11030
|
}
|
|
11031
11031
|
function s() {
|
|
11032
11032
|
return this.v.clone(new Matrix());
|
|
11033
11033
|
}
|
|
11034
11034
|
var n = TransformPropertyFactory.getTransformProperty;
|
|
11035
|
-
TransformPropertyFactory.getTransformProperty = function(f,
|
|
11036
|
-
var y = n(f,
|
|
11035
|
+
TransformPropertyFactory.getTransformProperty = function(f, E, p) {
|
|
11036
|
+
var y = n(f, E, p);
|
|
11037
11037
|
return y.dynamicProperties.length ? y.getValueAtTime = i.bind(y) : y.getValueAtTime = s.bind(y), y.setGroupProperty = expressionHelpers.setGroupProperty, y;
|
|
11038
11038
|
};
|
|
11039
11039
|
var a = PropertyFactory.getProp;
|
|
11040
|
-
PropertyFactory.getProp = function(f,
|
|
11041
|
-
var d = a(f,
|
|
11042
|
-
d.kf ? d.getValueAtTime = expressionHelpers.getValueAtTime.bind(d) : d.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(d), d.setGroupProperty = expressionHelpers.setGroupProperty, d.loopOut = t, d.loopIn = e, d.smooth = r, d.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(d), d.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(d), d.numKeys =
|
|
11040
|
+
PropertyFactory.getProp = function(f, E, p, y, k) {
|
|
11041
|
+
var d = a(f, E, p, y, k);
|
|
11042
|
+
d.kf ? d.getValueAtTime = expressionHelpers.getValueAtTime.bind(d) : d.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(d), d.setGroupProperty = expressionHelpers.setGroupProperty, d.loopOut = t, d.loopIn = e, d.smooth = r, d.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(d), d.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(d), d.numKeys = E.a === 1 ? E.k.length : 0, d.propertyIndex = E.ix;
|
|
11043
11043
|
var x = 0;
|
|
11044
|
-
return p !== 0 && (x = createTypedArray("float32",
|
|
11044
|
+
return p !== 0 && (x = createTypedArray("float32", E.a === 1 ? E.k[0].s.length : E.k.length)), d._cachingAtTime = {
|
|
11045
11045
|
lastFrame: initialDefaultFrame,
|
|
11046
11046
|
lastIndex: 0,
|
|
11047
11047
|
value: x
|
|
11048
|
-
}, expressionHelpers.searchExpressions(f,
|
|
11048
|
+
}, expressionHelpers.searchExpressions(f, E, d), d.k && k.addDynamicProperty(d), d;
|
|
11049
11049
|
};
|
|
11050
11050
|
function l(f) {
|
|
11051
11051
|
return this._cachingAtTime || (this._cachingAtTime = {
|
|
@@ -11058,31 +11058,31 @@ function requireLottie() {
|
|
|
11058
11058
|
function u() {
|
|
11059
11059
|
}
|
|
11060
11060
|
u.prototype = {
|
|
11061
|
-
vertices: function(
|
|
11061
|
+
vertices: function(E, p) {
|
|
11062
11062
|
this.k && this.getValue();
|
|
11063
11063
|
var y = this.v;
|
|
11064
11064
|
p !== void 0 && (y = this.getValueAtTime(p, 0));
|
|
11065
|
-
var k, d = y._length, x = y[
|
|
11065
|
+
var k, d = y._length, x = y[E], m = y.v, g = createSizedArray(d);
|
|
11066
11066
|
for (k = 0; k < d; k += 1)
|
|
11067
|
-
|
|
11067
|
+
E === "i" || E === "o" ? g[k] = [x[k][0] - m[k][0], x[k][1] - m[k][1]] : g[k] = [x[k][0], x[k][1]];
|
|
11068
11068
|
return g;
|
|
11069
11069
|
},
|
|
11070
|
-
points: function(
|
|
11071
|
-
return this.vertices("v",
|
|
11070
|
+
points: function(E) {
|
|
11071
|
+
return this.vertices("v", E);
|
|
11072
11072
|
},
|
|
11073
|
-
inTangents: function(
|
|
11074
|
-
return this.vertices("i",
|
|
11073
|
+
inTangents: function(E) {
|
|
11074
|
+
return this.vertices("i", E);
|
|
11075
11075
|
},
|
|
11076
|
-
outTangents: function(
|
|
11077
|
-
return this.vertices("o",
|
|
11076
|
+
outTangents: function(E) {
|
|
11077
|
+
return this.vertices("o", E);
|
|
11078
11078
|
},
|
|
11079
11079
|
isClosed: function() {
|
|
11080
11080
|
return this.v.c;
|
|
11081
11081
|
},
|
|
11082
|
-
pointOnPath: function(
|
|
11082
|
+
pointOnPath: function(E, p) {
|
|
11083
11083
|
var y = this.v;
|
|
11084
11084
|
p !== void 0 && (y = this.getValueAtTime(p, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(y));
|
|
11085
|
-
for (var k = this._segmentsLength, d = k.lengths, x = k.totalLength *
|
|
11085
|
+
for (var k = this._segmentsLength, d = k.lengths, x = k.totalLength * E, m = 0, g = d.length, C = 0, P; m < g; ) {
|
|
11086
11086
|
if (C + d[m].addedLength > x) {
|
|
11087
11087
|
var T = m, M = y.c && m === g - 1 ? 0 : m + 1, I = (x - C) / d[m].addedLength;
|
|
11088
11088
|
P = bez.getPointInSegment(y.v[T], y.v[M], y.o[T], y.i[M], I, d[m]);
|
|
@@ -11093,27 +11093,27 @@ function requireLottie() {
|
|
|
11093
11093
|
}
|
|
11094
11094
|
return P || (P = y.c ? [y.v[0][0], y.v[0][1]] : [y.v[y._length - 1][0], y.v[y._length - 1][1]]), P;
|
|
11095
11095
|
},
|
|
11096
|
-
vectorOnPath: function(
|
|
11097
|
-
|
|
11098
|
-
var k = this.pointOnPath(
|
|
11096
|
+
vectorOnPath: function(E, p, y) {
|
|
11097
|
+
E == 1 ? E = this.v.c : E == 0 && (E = 0.999);
|
|
11098
|
+
var k = this.pointOnPath(E, p), d = this.pointOnPath(E + 1e-3, p), x = d[0] - k[0], m = d[1] - k[1], g = Math.sqrt(Math.pow(x, 2) + Math.pow(m, 2));
|
|
11099
11099
|
if (g === 0)
|
|
11100
11100
|
return [0, 0];
|
|
11101
11101
|
var C = y === "tangent" ? [x / g, m / g] : [-m / g, x / g];
|
|
11102
11102
|
return C;
|
|
11103
11103
|
},
|
|
11104
|
-
tangentOnPath: function(
|
|
11105
|
-
return this.vectorOnPath(
|
|
11104
|
+
tangentOnPath: function(E, p) {
|
|
11105
|
+
return this.vectorOnPath(E, p, "tangent");
|
|
11106
11106
|
},
|
|
11107
|
-
normalOnPath: function(
|
|
11108
|
-
return this.vectorOnPath(
|
|
11107
|
+
normalOnPath: function(E, p) {
|
|
11108
|
+
return this.vectorOnPath(E, p, "normal");
|
|
11109
11109
|
},
|
|
11110
11110
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
11111
11111
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
11112
11112
|
}, extendPrototype([u], o), extendPrototype([u], c), c.prototype.getValueAtTime = l, c.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
11113
|
-
var
|
|
11114
|
-
ShapePropertyFactory.getShapeProp = function(f,
|
|
11115
|
-
var d =
|
|
11116
|
-
return d.propertyIndex =
|
|
11113
|
+
var b = ShapePropertyFactory.getShapeProp;
|
|
11114
|
+
ShapePropertyFactory.getShapeProp = function(f, E, p, y, k) {
|
|
11115
|
+
var d = b(f, E, p, y, k);
|
|
11116
|
+
return d.propertyIndex = E.ix, d.lock = !1, p === 3 ? expressionHelpers.searchExpressions(f, E.pt, d) : p === 4 && expressionHelpers.searchExpressions(f, E.ks, d), d.k && f.addDynamicProperty(d), d;
|
|
11117
11117
|
};
|
|
11118
11118
|
}
|
|
11119
11119
|
function initialize$1() {
|
|
@@ -11208,8 +11208,8 @@ function requireLottie() {
|
|
|
11208
11208
|
if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
|
|
11209
11209
|
var a = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, l = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, o = s.getTotalLength();
|
|
11210
11210
|
n = "0 0 0 " + o * a + " ";
|
|
11211
|
-
var c = o * (l - a), u = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01,
|
|
11212
|
-
for (f = 0; f <
|
|
11211
|
+
var c = o * (l - a), u = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, b = Math.floor(c / u), f;
|
|
11212
|
+
for (f = 0; f < b; f += 1)
|
|
11213
11213
|
n += "1 " + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + " ";
|
|
11214
11214
|
n += "0 " + o * 10 + " 0 0";
|
|
11215
11215
|
} else
|
|
@@ -11217,8 +11217,8 @@ function requireLottie() {
|
|
|
11217
11217
|
s.setAttribute("stroke-dasharray", n);
|
|
11218
11218
|
}
|
|
11219
11219
|
if ((t || this.filterManager.effectElements[4].p._mdf) && this.pathMasker.setAttribute("stroke-width", this.filterManager.effectElements[4].p.v * 2), (t || this.filterManager.effectElements[6].p._mdf) && this.pathMasker.setAttribute("opacity", this.filterManager.effectElements[6].p.v), (this.filterManager.effectElements[10].p.v === 1 || this.filterManager.effectElements[10].p.v === 2) && (t || this.filterManager.effectElements[3].p._mdf)) {
|
|
11220
|
-
var
|
|
11221
|
-
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(
|
|
11220
|
+
var E = this.filterManager.effectElements[3].p.v;
|
|
11221
|
+
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(E[0] * 255) + "," + bmFloor(E[1] * 255) + "," + bmFloor(E[2] * 255) + ")");
|
|
11222
11222
|
}
|
|
11223
11223
|
};
|
|
11224
11224
|
function SVGTritoneFilter(t, e, r, i) {
|
|
@@ -11251,8 +11251,8 @@ function requireLottie() {
|
|
|
11251
11251
|
}, SVGProLevelsFilter.prototype.getTableValue = function(t, e, r, i, s) {
|
|
11252
11252
|
for (var n = 0, a = 256, l, o = Math.min(t, e), c = Math.max(t, e), u = Array.call(null, {
|
|
11253
11253
|
length: a
|
|
11254
|
-
}),
|
|
11255
|
-
l = n / 256, l <= o ?
|
|
11254
|
+
}), b, f = 0, E = s - i, p = e - t; n <= 256; )
|
|
11255
|
+
l = n / 256, l <= o ? b = p < 0 ? s : i : l >= c ? b = p < 0 ? i : s : b = i + E * Math.pow((l - t) / p, 1 / r), u[f] = b, f += 1, n += 256 / (a - 1);
|
|
11256
11256
|
return u.join(" ");
|
|
11257
11257
|
}, SVGProLevelsFilter.prototype.renderFrame = function(t) {
|
|
11258
11258
|
if (t || this.filterManager._mdf) {
|
|
@@ -11271,8 +11271,8 @@ function requireLottie() {
|
|
|
11271
11271
|
c.setAttribute("flood-color", "#00ff00"), c.setAttribute("flood-opacity", "1"), c.setAttribute("result", i + "_drop_shadow_3"), this.feFlood = c, t.appendChild(c);
|
|
11272
11272
|
var u = createNS("feComposite");
|
|
11273
11273
|
u.setAttribute("in", i + "_drop_shadow_3"), u.setAttribute("in2", i + "_drop_shadow_2"), u.setAttribute("operator", "in"), u.setAttribute("result", i + "_drop_shadow_4"), t.appendChild(u);
|
|
11274
|
-
var
|
|
11275
|
-
t.appendChild(
|
|
11274
|
+
var b = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
|
|
11275
|
+
t.appendChild(b);
|
|
11276
11276
|
}
|
|
11277
11277
|
extendPrototype([SVGComposableEffect], SVGDropShadowEffect), SVGDropShadowEffect.prototype.renderFrame = function(t) {
|
|
11278
11278
|
if (t || this.filterManager._mdf) {
|
|
@@ -11464,7 +11464,7 @@ function _unsupportedIterableToArray(t, e) {
|
|
|
11464
11464
|
}
|
|
11465
11465
|
}
|
|
11466
11466
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function t(e, r) {
|
|
11467
|
-
var i = e.animationData, s = e.loop, n = e.autoplay, a = e.initialSegment, l = e.onComplete, o = e.onLoopComplete, c = e.onEnterFrame, u = e.onSegmentStart,
|
|
11467
|
+
var i = e.animationData, s = e.loop, n = e.autoplay, a = e.initialSegment, l = e.onComplete, o = e.onLoopComplete, c = e.onEnterFrame, u = e.onSegmentStart, b = e.onConfigReady, f = e.onDataReady, E = e.onDataFailed, p = e.onLoadedImages, y = e.onDOMLoaded, k = e.onDestroy;
|
|
11468
11468
|
e.lottieRef, e.renderer, e.name, e.assetsPath, e.rendererSettings;
|
|
11469
11469
|
var d = _objectWithoutProperties(e, _excluded$1), x = useState(!1), m = _slicedToArray(x, 2), g = m[0], C = m[1], P = useRef(), T = useRef(null), M = function() {
|
|
11470
11470
|
var B;
|
|
@@ -11542,13 +11542,13 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
11542
11542
|
handler: u
|
|
11543
11543
|
}, {
|
|
11544
11544
|
name: "config_ready",
|
|
11545
|
-
handler:
|
|
11545
|
+
handler: b
|
|
11546
11546
|
}, {
|
|
11547
11547
|
name: "data_ready",
|
|
11548
11548
|
handler: f
|
|
11549
11549
|
}, {
|
|
11550
11550
|
name: "data_failed",
|
|
11551
|
-
handler:
|
|
11551
|
+
handler: E
|
|
11552
11552
|
}, {
|
|
11553
11553
|
name: "loaded_images",
|
|
11554
11554
|
handler: p
|
|
@@ -11582,7 +11582,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
11582
11582
|
});
|
|
11583
11583
|
};
|
|
11584
11584
|
}
|
|
11585
|
-
}, [l, o, c, u,
|
|
11585
|
+
}, [l, o, c, u, b, f, E, p, y, k]);
|
|
11586
11586
|
var _ = /* @__PURE__ */ React2__default.createElement("div", _objectSpread2({
|
|
11587
11587
|
style: r,
|
|
11588
11588
|
ref: T
|
|
@@ -11623,22 +11623,22 @@ var useInitInteractivity = function t(e) {
|
|
|
11623
11623
|
if (!(!a || !i || !n.length)) {
|
|
11624
11624
|
i.stop();
|
|
11625
11625
|
var l = function() {
|
|
11626
|
-
var u = null,
|
|
11627
|
-
var
|
|
11626
|
+
var u = null, b = function() {
|
|
11627
|
+
var E = getContainerVisibility(a), p = n.find(function(k) {
|
|
11628
11628
|
var d = k.visibility;
|
|
11629
|
-
return d &&
|
|
11629
|
+
return d && E >= d[0] && E <= d[1];
|
|
11630
11630
|
});
|
|
11631
11631
|
if (p) {
|
|
11632
11632
|
if (p.type === "seek" && p.visibility && p.frames.length === 2) {
|
|
11633
|
-
var y = p.frames[0] + Math.ceil((
|
|
11633
|
+
var y = p.frames[0] + Math.ceil((E - p.visibility[0]) / (p.visibility[1] - p.visibility[0]) * p.frames[1]);
|
|
11634
11634
|
//! goToAndStop must be relative to the start of the current segment
|
|
11635
11635
|
i.goToAndStop(y - i.firstFrame - 1, !0);
|
|
11636
11636
|
}
|
|
11637
11637
|
p.type === "loop" && (u === null || u !== p.frames || i.isPaused) && (i.playSegments(p.frames, !0), u = p.frames), p.type === "play" && i.isPaused && (i.resetSegments(!0), i.play()), p.type === "stop" && i.goToAndStop(p.frames[0] - i.firstFrame - 1, !0);
|
|
11638
11638
|
}
|
|
11639
11639
|
};
|
|
11640
|
-
return document.addEventListener("scroll",
|
|
11641
|
-
document.removeEventListener("scroll",
|
|
11640
|
+
return document.addEventListener("scroll", b), function() {
|
|
11641
|
+
document.removeEventListener("scroll", b);
|
|
11642
11642
|
};
|
|
11643
11643
|
}, o = function() {
|
|
11644
11644
|
var u = function(p, y) {
|
|
@@ -11658,13 +11658,13 @@ var useInitInteractivity = function t(e) {
|
|
|
11658
11658
|
}
|
|
11659
11659
|
m.type === "loop" && i.playSegments(m.frames, !0), m.type === "play" && (i.isPaused && i.resetSegments(!1), i.playSegments(m.frames)), m.type === "stop" && i.goToAndStop(m.frames[0], !0);
|
|
11660
11660
|
}
|
|
11661
|
-
},
|
|
11661
|
+
}, b = function(p) {
|
|
11662
11662
|
u(p.clientX, p.clientY);
|
|
11663
11663
|
}, f = function() {
|
|
11664
11664
|
u(-1, -1);
|
|
11665
11665
|
};
|
|
11666
|
-
return a.addEventListener("mousemove",
|
|
11667
|
-
a.removeEventListener("mousemove",
|
|
11666
|
+
return a.addEventListener("mousemove", b), a.addEventListener("mouseout", f), function() {
|
|
11667
|
+
a.removeEventListener("mousemove", b), a.removeEventListener("mouseout", f);
|
|
11668
11668
|
};
|
|
11669
11669
|
};
|
|
11670
11670
|
switch (s) {
|
|
@@ -11684,13 +11684,13 @@ var useInitInteractivity = function t(e) {
|
|
|
11684
11684
|
wrapperRef: l
|
|
11685
11685
|
}), a;
|
|
11686
11686
|
}, _excluded = ["style", "interactivity"], Lottie = function t(e) {
|
|
11687
|
-
var r, i, s, n = e.style, a = e.interactivity, l = _objectWithoutProperties(e, _excluded), o = useLottie(l, n), c = o.View, u = o.play,
|
|
11687
|
+
var r, i, s, n = e.style, a = e.interactivity, l = _objectWithoutProperties(e, _excluded), o = useLottie(l, n), c = o.View, u = o.play, b = o.stop, f = o.pause, E = o.setSpeed, p = o.goToAndStop, y = o.goToAndPlay, k = o.setDirection, d = o.playSegments, x = o.setSubframe, m = o.getDuration, g = o.destroy, C = o.animationContainerRef, P = o.animationLoaded, T = o.animationItem;
|
|
11688
11688
|
return useEffect(function() {
|
|
11689
11689
|
e.lottieRef && (e.lottieRef.current = {
|
|
11690
11690
|
play: u,
|
|
11691
|
-
stop:
|
|
11691
|
+
stop: b,
|
|
11692
11692
|
pause: f,
|
|
11693
|
-
setSpeed:
|
|
11693
|
+
setSpeed: E,
|
|
11694
11694
|
goToAndPlay: y,
|
|
11695
11695
|
goToAndStop: p,
|
|
11696
11696
|
setDirection: k,
|
|
@@ -11706,9 +11706,9 @@ var useInitInteractivity = function t(e) {
|
|
|
11706
11706
|
lottieObj: {
|
|
11707
11707
|
View: c,
|
|
11708
11708
|
play: u,
|
|
11709
|
-
stop:
|
|
11709
|
+
stop: b,
|
|
11710
11710
|
pause: f,
|
|
11711
|
-
setSpeed:
|
|
11711
|
+
setSpeed: E,
|
|
11712
11712
|
goToAndStop: p,
|
|
11713
11713
|
goToAndPlay: y,
|
|
11714
11714
|
setDirection: k,
|
|
@@ -11781,7 +11781,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11781
11781
|
r && r(), e && e();
|
|
11782
11782
|
}, u = () => {
|
|
11783
11783
|
e && e();
|
|
11784
|
-
},
|
|
11784
|
+
}, b = {
|
|
11785
11785
|
success: {
|
|
11786
11786
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "success-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11787
11787
|
Lottie,
|
|
@@ -11820,8 +11820,8 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11820
11820
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CEButton, { className: "close-button", onClick: e ?? (() => {
|
|
11821
11821
|
}), children: "×" }),
|
|
11822
11822
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "modal-header", children: [
|
|
11823
|
-
|
|
11824
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children:
|
|
11823
|
+
b.icon,
|
|
11824
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: b.title })
|
|
11825
11825
|
] }),
|
|
11826
11826
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: s }) }),
|
|
11827
11827
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "modal-actions", children: [
|
|
@@ -11845,10 +11845,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11845
11845
|
width: o = "500px",
|
|
11846
11846
|
maxWidth: c = "90%",
|
|
11847
11847
|
maxHeight: u = "90vh",
|
|
11848
|
-
buttons:
|
|
11848
|
+
buttons: b,
|
|
11849
11849
|
classNames: f = {}
|
|
11850
11850
|
}) => {
|
|
11851
|
-
const [
|
|
11851
|
+
const [E, p] = useState(!1), [y, k] = useState(!1);
|
|
11852
11852
|
if (!t) return null;
|
|
11853
11853
|
const d = {
|
|
11854
11854
|
left: "flex-start",
|
|
@@ -11881,7 +11881,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11881
11881
|
CECheckBox,
|
|
11882
11882
|
{
|
|
11883
11883
|
label: s,
|
|
11884
|
-
checked:
|
|
11884
|
+
checked: E,
|
|
11885
11885
|
onChange: x
|
|
11886
11886
|
}
|
|
11887
11887
|
),
|
|
@@ -11892,11 +11892,11 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11892
11892
|
{
|
|
11893
11893
|
className: `dialog-actions ${f.button || ""}`,
|
|
11894
11894
|
style: { justifyContent: d[n] },
|
|
11895
|
-
children:
|
|
11895
|
+
children: b.map((m, g) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11896
11896
|
CEButton,
|
|
11897
11897
|
{
|
|
11898
11898
|
onClick: () => {
|
|
11899
|
-
if (l && !
|
|
11899
|
+
if (l && !E && !m.bypassCheckbox) {
|
|
11900
11900
|
k(!0);
|
|
11901
11901
|
return;
|
|
11902
11902
|
}
|
|
@@ -11987,7 +11987,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11987
11987
|
jsonUrl: t,
|
|
11988
11988
|
token: e
|
|
11989
11989
|
}) => {
|
|
11990
|
-
const [r, i] = useState({}), [s, n] = useState(!1), [a, l] = useState([]), [o, c] = useState(/* @__PURE__ */ new Set()), [u,
|
|
11990
|
+
const [r, i] = useState({}), [s, n] = useState(!1), [a, l] = useState([]), [o, c] = useState(/* @__PURE__ */ new Set()), [u, b] = useState(null), [f, E] = useState(!1), [p, y] = useState(""), [k, d] = useState("contains"), [x, m] = useState(""), [g, C] = useState(0), [P, T] = useState(10), [M, I] = useState(/* @__PURE__ */ new Set()), [$, O] = useState(""), [V, H] = useState(!1), [z, L] = useState(/* @__PURE__ */ new Set()), A = useRef(null), j = useRef(null), S = useRef(null), R = () => {
|
|
11991
11991
|
axios.get(t, {
|
|
11992
11992
|
headers: {
|
|
11993
11993
|
Authorization: `Bearer ${e}`
|
|
@@ -12034,22 +12034,22 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12034
12034
|
Y.startsWith(`${D}`) && J.delete(Y);
|
|
12035
12035
|
}), J.add(U)), I(J);
|
|
12036
12036
|
}, W = (D) => {
|
|
12037
|
-
|
|
12037
|
+
b(u === D ? null : D);
|
|
12038
12038
|
}, K = (D, q) => {
|
|
12039
12039
|
const U = [...a].sort((J, Y) => q === "asc" ? J[D] > Y[D] ? 1 : -1 : J[D] < Y[D] ? 1 : -1);
|
|
12040
|
-
l(U),
|
|
12040
|
+
l(U), b(null);
|
|
12041
12041
|
}, X = () => {
|
|
12042
12042
|
const D = a.filter((q) => {
|
|
12043
12043
|
var J;
|
|
12044
12044
|
const U = ((J = q[p]) == null ? void 0 : J.toString()) || "";
|
|
12045
12045
|
return k === "contains" ? U.includes(x) : k === "equals" ? U === x : k === "startsWith" ? U.startsWith(x) : k === "endsWith" ? U.endsWith(x) : k === "does not contain" ? !U.includes(x) : k === "does not equal" ? U !== x : k === "is empty" ? U.trim() === "" : k === "is not empty" ? U.trim() !== "" : k === "is any of" ? x.split(",").map((Y) => Y.trim()).includes(U) : !0;
|
|
12046
12046
|
});
|
|
12047
|
-
l(D),
|
|
12047
|
+
l(D), E(!1);
|
|
12048
12048
|
}, Z = (D) => {
|
|
12049
12049
|
D.key === "Enter" && X();
|
|
12050
12050
|
};
|
|
12051
12051
|
useEscapeKey(() => {
|
|
12052
|
-
|
|
12052
|
+
b(null), E(!1);
|
|
12053
12053
|
});
|
|
12054
12054
|
const [rt, nt] = useState(/* @__PURE__ */ new Set()), it = (D, q = "") => {
|
|
12055
12055
|
const U = (J) => {
|
|
@@ -12106,7 +12106,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12106
12106
|
};
|
|
12107
12107
|
useEffect(() => {
|
|
12108
12108
|
const D = (q) => {
|
|
12109
|
-
f && A.current && !A.current.contains(q.target) &&
|
|
12109
|
+
f && A.current && !A.current.contains(q.target) && E(!1);
|
|
12110
12110
|
};
|
|
12111
12111
|
return document.addEventListener("mousedown", D), () => {
|
|
12112
12112
|
document.removeEventListener("mousedown", D);
|
|
@@ -12261,7 +12261,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12261
12261
|
{
|
|
12262
12262
|
className: "dropdown-item",
|
|
12263
12263
|
onClick: () => {
|
|
12264
|
-
y(D.id),
|
|
12264
|
+
y(D.id), E(!0), b(null);
|
|
12265
12265
|
},
|
|
12266
12266
|
children: "Filter"
|
|
12267
12267
|
}
|
|
@@ -12415,7 +12415,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12415
12415
|
CEButton,
|
|
12416
12416
|
{
|
|
12417
12417
|
className: "close-button-close",
|
|
12418
|
-
onClick: () =>
|
|
12418
|
+
onClick: () => E(!1),
|
|
12419
12419
|
children: "×"
|
|
12420
12420
|
}
|
|
12421
12421
|
),
|
|
@@ -12477,10 +12477,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12477
12477
|
placeholder: n
|
|
12478
12478
|
}) => {
|
|
12479
12479
|
const a = useRef(null), l = (u) => {
|
|
12480
|
-
const
|
|
12481
|
-
if (
|
|
12482
|
-
if (
|
|
12483
|
-
const f = parseInt(
|
|
12480
|
+
const b = u.target.value.replace(/\D/g, "");
|
|
12481
|
+
if (b.length <= s) {
|
|
12482
|
+
if (b.length === 1) {
|
|
12483
|
+
const f = parseInt(b);
|
|
12484
12484
|
if (r === 12 && f > 1) {
|
|
12485
12485
|
e(`0${f}`);
|
|
12486
12486
|
return;
|
|
@@ -12490,12 +12490,12 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12490
12490
|
return;
|
|
12491
12491
|
}
|
|
12492
12492
|
}
|
|
12493
|
-
if (
|
|
12494
|
-
const f = parseInt(
|
|
12495
|
-
f >= i && f <= r && e(
|
|
12493
|
+
if (b.length === 2) {
|
|
12494
|
+
const f = parseInt(b);
|
|
12495
|
+
f >= i && f <= r && e(b);
|
|
12496
12496
|
return;
|
|
12497
12497
|
}
|
|
12498
|
-
e(
|
|
12498
|
+
e(b);
|
|
12499
12499
|
}
|
|
12500
12500
|
}, o = () => {
|
|
12501
12501
|
var u;
|
|
@@ -12518,7 +12518,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12518
12518
|
}
|
|
12519
12519
|
);
|
|
12520
12520
|
}, DateRangeIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%204.5H18V3.5C18%202.95%2017.55%202.5%2017%202.5C16.45%202.5%2016%202.95%2016%203.5V4.5H8V3.5C8%202.95%207.55%202.5%207%202.5C6.45%202.5%206%202.95%206%203.5V4.5H5C3.89%204.5%203.01%205.4%203.01%206.5L3%2020.5C3%2021.6%203.89%2022.5%205%2022.5H19C20.1%2022.5%2021%2021.6%2021%2020.5V6.5C21%205.4%2020.1%204.5%2019%204.5ZM19%2019.5C19%2020.05%2018.55%2020.5%2018%2020.5H6C5.45%2020.5%205%2020.05%205%2019.5V9.5H19V19.5ZM7%2011.5H9V13.5H7V11.5ZM11%2011.5H13V13.5H11V11.5ZM15%2011.5H17V13.5H15V11.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e", WEEKDAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], CEDatePicker = ({ onChange: t, label: e = "Calendar" }) => {
|
|
12521
|
-
const [r, i] = useState(!1), [s, n] = useState(null), [a, l] = useState(/* @__PURE__ */ new Date()), [o, c] = useState(!1), [u,
|
|
12521
|
+
const [r, i] = useState(!1), [s, n] = useState(null), [a, l] = useState(/* @__PURE__ */ new Date()), [o, c] = useState(!1), [u, b] = useState({ start: 2020, end: 2031 }), [f, E] = useState("left"), [p, y] = useState(0), k = useRef(null), [d, x] = useState(!1), [m, g] = useState(""), [C, P] = useState(""), [T, M] = useState(""), [I, $] = useState(!0), O = () => {
|
|
12522
12522
|
i(!1), !m && !C && !T && x(!1);
|
|
12523
12523
|
};
|
|
12524
12524
|
useEscapeKey(O);
|
|
@@ -12543,14 +12543,14 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12543
12543
|
const B = String(F.getMonth() + 1).padStart(2, "0"), N = String(F.getDate()).padStart(2, "0"), G = String(F.getFullYear());
|
|
12544
12544
|
g(B), P(N), M(G), $(!0), t(`${B}/${N}/${G}`), i(!1);
|
|
12545
12545
|
}, z = (_) => {
|
|
12546
|
-
|
|
12546
|
+
E(_ > 0 ? "left" : "right"), l((F) => {
|
|
12547
12547
|
const B = new Date(F.getFullYear(), F.getMonth() + _, 1);
|
|
12548
12548
|
return s && g(String(B.getMonth() + 1).padStart(2, "0")), y((N) => N + 1), B;
|
|
12549
12549
|
});
|
|
12550
12550
|
}, L = () => {
|
|
12551
12551
|
c((_) => !_);
|
|
12552
12552
|
}, A = (_) => {
|
|
12553
|
-
|
|
12553
|
+
b((F) => ({
|
|
12554
12554
|
start: F.start + _ * 10,
|
|
12555
12555
|
end: F.end + _ * 10
|
|
12556
12556
|
}));
|
|
@@ -12732,10 +12732,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12732
12732
|
quickActions: r = [],
|
|
12733
12733
|
recentSearches: i = []
|
|
12734
12734
|
}) => {
|
|
12735
|
-
const [s, n] = useState(!1), [a, l] = useState(""), [o, c] = useState(r), [u,
|
|
12736
|
-
p === "quickActions" ? c((k) => k.filter((d, x) => x !== y)) :
|
|
12737
|
-
},
|
|
12738
|
-
a.trim() !== "" && (
|
|
12735
|
+
const [s, n] = useState(!1), [a, l] = useState(""), [o, c] = useState(r), [u, b] = useState(i), f = (p, y) => {
|
|
12736
|
+
p === "quickActions" ? c((k) => k.filter((d, x) => x !== y)) : b((k) => k.filter((d, x) => x !== y));
|
|
12737
|
+
}, E = () => {
|
|
12738
|
+
a.trim() !== "" && (b((p) => [a, ...p]), l(""));
|
|
12739
12739
|
};
|
|
12740
12740
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ceui-search-bar", children: [
|
|
12741
12741
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12753,7 +12753,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12753
12753
|
setTimeout(() => n(!1), 200), e && e();
|
|
12754
12754
|
},
|
|
12755
12755
|
onKeyDown: (p) => {
|
|
12756
|
-
p.key === "Enter" &&
|
|
12756
|
+
p.key === "Enter" && E();
|
|
12757
12757
|
}
|
|
12758
12758
|
}
|
|
12759
12759
|
),
|
|
@@ -12908,20 +12908,22 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12908
12908
|
] }), CEHeader = ({
|
|
12909
12909
|
headerColor: t = "white",
|
|
12910
12910
|
logoSrc: e,
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12911
|
+
logoHeight: r,
|
|
12912
|
+
logoWidth: i,
|
|
12913
|
+
showSearchButton: s = !1,
|
|
12914
|
+
quickActions: n = [],
|
|
12915
|
+
recentSearches: a = [],
|
|
12916
|
+
showHelpButton: l = !1,
|
|
12917
|
+
showNotificationButton: o = !1,
|
|
12918
|
+
showAvatarMenu: c = !1,
|
|
12919
|
+
showUserInfo: u = !1,
|
|
12920
|
+
showHamburgerButton: b = !1,
|
|
12921
|
+
showDrawer: f = !1,
|
|
12920
12922
|
userInfoProps: E,
|
|
12921
|
-
onMenuClick:
|
|
12922
|
-
drawerJsonUrl:
|
|
12923
|
-
isDrawerOpen:
|
|
12924
|
-
onDrawerClose:
|
|
12923
|
+
onMenuClick: p,
|
|
12924
|
+
drawerJsonUrl: y = "",
|
|
12925
|
+
isDrawerOpen: k = !1,
|
|
12926
|
+
onDrawerClose: d
|
|
12925
12927
|
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
12926
12928
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("header", { className: "ceui-header", style: { backgroundColor: t }, children: [
|
|
12927
12929
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ceui-header-left", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12929,16 +12931,20 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12929
12931
|
{
|
|
12930
12932
|
src: e || "src/assets/connect_plus.svg",
|
|
12931
12933
|
alt: "Core Logo",
|
|
12932
|
-
style: {
|
|
12934
|
+
style: {
|
|
12935
|
+
height: r || 35,
|
|
12936
|
+
width: i || "auto",
|
|
12937
|
+
maxWidth: 120
|
|
12938
|
+
}
|
|
12933
12939
|
}
|
|
12934
12940
|
) }),
|
|
12935
12941
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ceui-header-right", children: [
|
|
12936
|
-
|
|
12942
|
+
s && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12937
12943
|
CESearchButton,
|
|
12938
12944
|
{
|
|
12939
12945
|
showSuggestions: !0,
|
|
12940
|
-
quickActions:
|
|
12941
|
-
recentSearches:
|
|
12946
|
+
quickActions: n,
|
|
12947
|
+
recentSearches: a,
|
|
12942
12948
|
value: "",
|
|
12943
12949
|
onChange: () => {
|
|
12944
12950
|
},
|
|
@@ -12946,18 +12952,18 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12946
12952
|
}
|
|
12947
12953
|
}
|
|
12948
12954
|
),
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12955
|
+
l && /* @__PURE__ */ jsxRuntimeExports.jsx(CEHelpButton, {}),
|
|
12956
|
+
o && /* @__PURE__ */ jsxRuntimeExports.jsx(CENotificationButton, {}),
|
|
12957
|
+
c && /* @__PURE__ */ jsxRuntimeExports.jsx(CEAvatarMenu, {}),
|
|
12958
|
+
u && E && /* @__PURE__ */ jsxRuntimeExports.jsx(CEUserInfo, { name: E.name, role: E.role })
|
|
12953
12959
|
] })
|
|
12954
12960
|
] }),
|
|
12955
|
-
|
|
12961
|
+
f && b && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12956
12962
|
CEDrawer,
|
|
12957
12963
|
{
|
|
12958
|
-
jsonUrl:
|
|
12959
|
-
isOpen:
|
|
12960
|
-
onClose:
|
|
12964
|
+
jsonUrl: y,
|
|
12965
|
+
isOpen: k,
|
|
12966
|
+
onClose: d || (() => {
|
|
12961
12967
|
})
|
|
12962
12968
|
}
|
|
12963
12969
|
)
|
|
@@ -13002,12 +13008,12 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13002
13008
|
errorMessage: o = "Invalid input",
|
|
13003
13009
|
showError: c = !0,
|
|
13004
13010
|
label: u,
|
|
13005
|
-
disabled:
|
|
13011
|
+
disabled: b = !1
|
|
13006
13012
|
}) => {
|
|
13007
|
-
const [f,
|
|
13008
|
-
|
|
13013
|
+
const [f, E] = useState(!1), p = (d) => {
|
|
13014
|
+
E(!0);
|
|
13009
13015
|
}, y = (d) => {
|
|
13010
|
-
|
|
13016
|
+
E(!1);
|
|
13011
13017
|
}, k = (d) => {
|
|
13012
13018
|
const x = d.target.value;
|
|
13013
13019
|
i === "number" && !/^\d*$/.test(x) || i === "alphanumeric" && !/^[a-zA-Z0-9]*$/.test(x) || e(x);
|
|
@@ -13030,7 +13036,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13030
13036
|
onBlur: y,
|
|
13031
13037
|
placeholder: r || " ",
|
|
13032
13038
|
className: "validated-input-field",
|
|
13033
|
-
disabled:
|
|
13039
|
+
disabled: b
|
|
13034
13040
|
}
|
|
13035
13041
|
),
|
|
13036
13042
|
c && !t && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "validated-input-error", children: o })
|
|
@@ -13044,12 +13050,12 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13044
13050
|
const [s, n] = useState(!1), [a, l] = useState(""), o = useRef(null), c = "src/assets/KeyboardArrowDownRounded.svg", u = (y) => {
|
|
13045
13051
|
const k = e.includes(y) ? e.filter((d) => d !== y) : [...e, y];
|
|
13046
13052
|
r(k), l("");
|
|
13047
|
-
},
|
|
13053
|
+
}, b = () => {
|
|
13048
13054
|
r([]);
|
|
13049
13055
|
}, f = (y) => {
|
|
13050
13056
|
const k = e.filter((d) => d !== y);
|
|
13051
13057
|
r(k);
|
|
13052
|
-
},
|
|
13058
|
+
}, E = t.filter(
|
|
13053
13059
|
(y) => y.label.toLowerCase().includes(a.toLowerCase())
|
|
13054
13060
|
);
|
|
13055
13061
|
useEffect(() => {
|
|
@@ -13103,7 +13109,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13103
13109
|
{
|
|
13104
13110
|
className: "clear-button",
|
|
13105
13111
|
onClick: (y) => {
|
|
13106
|
-
y.stopPropagation(),
|
|
13112
|
+
y.stopPropagation(), b(), l("");
|
|
13107
13113
|
},
|
|
13108
13114
|
children: "× "
|
|
13109
13115
|
}
|
|
@@ -13121,7 +13127,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13121
13127
|
) }),
|
|
13122
13128
|
s && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "options open", children: [
|
|
13123
13129
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "select-clear-container", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "select-all", onClick: p, children: e.length === t.length ? "Clear All" : "Select All" }) }),
|
|
13124
|
-
|
|
13130
|
+
E.map((y) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
13125
13131
|
"div",
|
|
13126
13132
|
{
|
|
13127
13133
|
className: "option",
|
|
@@ -13179,21 +13185,21 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13179
13185
|
r({});
|
|
13180
13186
|
});
|
|
13181
13187
|
const n = (o) => o.children && o.children.length > 0, a = (o) => o.some((c) => n(c)), l = (o, c = "") => !o || o.length === 0 ? null : /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: c ? "ce-submenu" : "ce-dropdown", children: o.map((u) => {
|
|
13182
|
-
const
|
|
13188
|
+
const b = c ? `${c}-${u.name}` : u.name, f = n(u);
|
|
13183
13189
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
13184
13190
|
"li",
|
|
13185
13191
|
{
|
|
13186
13192
|
className: `ce-dropdown-item ${f ? "has-submenu" : ""}`,
|
|
13187
|
-
onMouseEnter: () => f && i(
|
|
13188
|
-
onMouseLeave: () => f && i(
|
|
13193
|
+
onMouseEnter: () => f && i(b, !0),
|
|
13194
|
+
onMouseLeave: () => f && i(b, !1),
|
|
13189
13195
|
onClick: () => console.log(`Clicked: ${u.name}`),
|
|
13190
13196
|
children: [
|
|
13191
13197
|
u.name,
|
|
13192
13198
|
f && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ce-icon right", children: "▶" }),
|
|
13193
|
-
f && e[
|
|
13199
|
+
f && e[b] && l(u.children, b)
|
|
13194
13200
|
]
|
|
13195
13201
|
},
|
|
13196
|
-
|
|
13202
|
+
b
|
|
13197
13203
|
);
|
|
13198
13204
|
}) });
|
|
13199
13205
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-menu-bar", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-menu-container", children: t.map((o) => {
|
|
@@ -13273,7 +13279,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13273
13279
|
style: l = {},
|
|
13274
13280
|
editorStyle: o = {}
|
|
13275
13281
|
}) => {
|
|
13276
|
-
const c = useRef(null), [u,
|
|
13282
|
+
const c = useRef(null), [u, b] = useState("3"), [f, E] = useState("Arial"), [p, y] = useState({
|
|
13277
13283
|
bold: !1,
|
|
13278
13284
|
italic: !1,
|
|
13279
13285
|
underline: !1,
|
|
@@ -13324,7 +13330,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13324
13330
|
const H = `<img src="${V}" alt="image" style="max-width: 100%; height: auto;"/>`;
|
|
13325
13331
|
document.execCommand("insertHTML", !1, H);
|
|
13326
13332
|
}
|
|
13327
|
-
} else P === "fontSize" || P === "fontName" ? (restoreSelection(M), document.execCommand(P, !0, T), P === "fontSize" ?
|
|
13333
|
+
} else P === "fontSize" || P === "fontName" ? (restoreSelection(M), document.execCommand(P, !0, T), P === "fontSize" ? b(T) : E(T)) : (restoreSelection(M), document.execCommand(P, !1, T));
|
|
13328
13334
|
c.current && (e == null || e(c.current.innerHTML)), (O = c.current) == null || O.focus(), d();
|
|
13329
13335
|
}, [e, d]), m = (P) => {
|
|
13330
13336
|
if (P.key === "Tab" && (P.preventDefault(), document.execCommand("insertHTML", !1, " ")), P.ctrlKey || P.metaKey)
|
|
@@ -13565,7 +13571,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13565
13571
|
initialTime: r = "",
|
|
13566
13572
|
className: i = ""
|
|
13567
13573
|
}) => {
|
|
13568
|
-
const [s, n] = useState(!1), [a, l] = useState(r), [o, c] = useState("12"), [u,
|
|
13574
|
+
const [s, n] = useState(!1), [a, l] = useState(r), [o, c] = useState("12"), [u, b] = useState("00"), [f, E] = useState("AM"), [p, y] = useState(!1), [k, d] = useState(""), [x, m] = useState(""), g = useRef(null), C = Array.from({ length: 12 }, (L, A) => String(A + 1).padStart(2, "0")), P = Array.from({ length: 60 }, (L, A) => String(A).padStart(2, "0")), T = (L, A) => {
|
|
13569
13575
|
if (!L) return "";
|
|
13570
13576
|
const j = parseInt(L);
|
|
13571
13577
|
return A === "hours" ? j > 12 ? "12" : j === 0 ? "01" : L.padStart(2, "0") : j > 59 ? "59" : L.padStart(2, "0");
|
|
@@ -13613,7 +13619,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13613
13619
|
const N = A.substring(A.lastIndexOf(" ") + 1).toUpperCase();
|
|
13614
13620
|
N.startsWith("A") ? (_ = "AM", F = `${o}:${u} AM`) : N.startsWith("P") && (_ = "PM", F = `${o}:${u} PM`);
|
|
13615
13621
|
}
|
|
13616
|
-
c(S),
|
|
13622
|
+
c(S), b(R), E(_), l(F), n(!1), e == null || e(F);
|
|
13617
13623
|
}, I = (L) => {
|
|
13618
13624
|
if (![
|
|
13619
13625
|
"Backspace",
|
|
@@ -13656,7 +13662,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13656
13662
|
} else if (j >= 3 && j <= 5) {
|
|
13657
13663
|
if (x) {
|
|
13658
13664
|
const S = T(x, "minutes");
|
|
13659
|
-
|
|
13665
|
+
b(S), m(""), l(`${o}:${S} ${f}`);
|
|
13660
13666
|
}
|
|
13661
13667
|
L.currentTarget.setSelectionRange(6, 8);
|
|
13662
13668
|
}
|
|
@@ -13668,14 +13674,14 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13668
13674
|
n(!0), y(!0);
|
|
13669
13675
|
}, V = (L, A) => {
|
|
13670
13676
|
const j = L === "hours" ? A : o, S = L === "minutes" ? A : u, R = L === "period" ? A : f;
|
|
13671
|
-
c(j),
|
|
13677
|
+
c(j), b(S), E(R);
|
|
13672
13678
|
const _ = `${j}:${S} ${R}`;
|
|
13673
13679
|
l(_), e == null || e(_);
|
|
13674
13680
|
}, H = () => {
|
|
13675
13681
|
const L = `${o}:${u} ${f}`;
|
|
13676
13682
|
l(L), n(!1), e == null || e(L);
|
|
13677
13683
|
}, z = () => {
|
|
13678
|
-
l(""), c("12"),
|
|
13684
|
+
l(""), c("12"), b("00"), E("AM"), n(!1), y(!1);
|
|
13679
13685
|
};
|
|
13680
13686
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `time-picker-container ${i}`, children: [
|
|
13681
13687
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `time-picker-input ${s || p ? "active" : ""}`, children: [
|
|
@@ -13757,7 +13763,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13757
13763
|
boxClass: i = "",
|
|
13758
13764
|
buttonClass: s = ""
|
|
13759
13765
|
}) => {
|
|
13760
|
-
const [n, a] = useState([]), [l, o] = useState([]), [c, u] = useState(!0), [
|
|
13766
|
+
const [n, a] = useState([]), [l, o] = useState([]), [c, u] = useState(!0), [b, f] = useState(null), [E, p] = useState(/* @__PURE__ */ new Set()), [y, k] = useState(/* @__PURE__ */ new Set());
|
|
13761
13767
|
useEffect(() => {
|
|
13762
13768
|
(async () => {
|
|
13763
13769
|
var P, T;
|
|
@@ -13776,10 +13782,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13776
13782
|
}, []);
|
|
13777
13783
|
const d = (C) => {
|
|
13778
13784
|
if (C === "available") {
|
|
13779
|
-
const P = n.filter((M) =>
|
|
13785
|
+
const P = n.filter((M) => E.has(M.id)).sort((M, I) => {
|
|
13780
13786
|
const $ = parseInt(M.id.replace(/\D/g, "")), O = parseInt(I.id.replace(/\D/g, ""));
|
|
13781
13787
|
return $ - O;
|
|
13782
|
-
}), T = n.filter((M) => !
|
|
13788
|
+
}), T = n.filter((M) => !E.has(M.id));
|
|
13783
13789
|
a(T), o((M) => [...M, ...P].sort(($, O) => {
|
|
13784
13790
|
const V = parseInt($.id.replace(/\D/g, "")), H = parseInt(O.id.replace(/\D/g, ""));
|
|
13785
13791
|
return V - H;
|
|
@@ -13838,18 +13844,18 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13838
13844
|
)) })
|
|
13839
13845
|
] });
|
|
13840
13846
|
};
|
|
13841
|
-
return c ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }) :
|
|
13847
|
+
return c ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }) : b ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
13842
13848
|
"Error: ",
|
|
13843
|
-
|
|
13849
|
+
b
|
|
13844
13850
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `transfer-list-container ${r}`, children: [
|
|
13845
|
-
g(n,
|
|
13851
|
+
g(n, E, p, "Choices"),
|
|
13846
13852
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "transfer-buttons", children: [
|
|
13847
13853
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13848
13854
|
CETransferButton,
|
|
13849
13855
|
{
|
|
13850
13856
|
label: ">>",
|
|
13851
13857
|
onClick: () => d("available"),
|
|
13852
|
-
disabled:
|
|
13858
|
+
disabled: E.size === 0,
|
|
13853
13859
|
className: s
|
|
13854
13860
|
}
|
|
13855
13861
|
),
|