@feedmepos/mf-menu 0.32.61-dev.3 → 0.32.63-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-TgWTfhbY.js → App-DhfTGlgM.js} +466 -461
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BeW-aCRL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C8il14gy.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-hnhpn9Of.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-DIubPG8Y.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-wXfspM5v.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-CR1cBZ3S.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlpZfbx-.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-DbG3cLfp.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DTzbprcr.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CMEdW613.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-aLcNgJLb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CnChdePY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-BBGzGfS2.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9CfZ7oA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-CLd4LEy4.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting-BuS9_e0y.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-2QPouAql.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-D-SiyoaP.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-nmlc3rrr.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DYn_bqcn.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-BgDSe1XP.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-BPa6wC-o.js → Products-Bly2ktEC.js} +82 -81
- package/dist/{Publish-DbI1wemN.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-CAgscHCL.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNG5WX4W.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DNk48PUl.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +313 -312
- package/dist/{Scheduler-C8TXHcb2.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-CQzQWvUA.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-gun4ZUQ4.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-CqcWpp94.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-DV_ND3Ts.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-DsRU9wBO.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DAwsbPs4.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYVBVDBy.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-BcPn6opY.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-Wkd9mHWk.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-CuOgqnZ3.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BsNMWUZ9.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-kS8tUq_w.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CHvHJGH9.js → linked-status-B2WLhKkV.js} +4 -4
- package/dist/assets/{menu-export-Bd2A9o3e.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-cifFGmrk.js → override-menu-cBe2aMY6.js} +4 -4
- package/dist/assets/{validate-menu-B8cp1kCt.js → validate-menu-BM-5GK85.js} +3 -3
- package/dist/{catalog-BxfmkFrE.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-ebS4mr1i.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-CUrfs4iN.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-BxvnAb0l.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-DccvCJln.js → jszip.min-Cc2eR4Cq.js} +52 -52
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-FatZi_6k.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-DcPMF0nf.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-CVo-19H-.js → menuV2-fTlJdjxi.js} +89 -87
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-CWDYwJcW.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-C58Ixr5m.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DwomOoC9.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-CJcxPgeF.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DjWt9SEm.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-KhTILQfe.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C5hn1NYM.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFUOqfDO.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-BM5m7MDE.js +0 -7
- package/dist/dayjs.min-X4vHGjJn.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-26-Gw7Ug.js +0 -9098
|
@@ -2,14 +2,15 @@ var tt = Object.defineProperty;
|
|
|
2
2
|
var At = (t, e, A) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[e] = A;
|
|
3
3
|
var Te = (t, e, A) => At(t, typeof e != "symbol" ? e + "" : e, A);
|
|
4
4
|
import { readonly, ref, defineComponent, watchEffect, computed, watch, createElementBlock, openBlock, normalizeStyle, onBeforeUnmount, createBlock, unref, resolveComponent, normalizeClass, createSlots, withCtx, createElementVNode, createVNode, toDisplayString, createCommentVNode, onUnmounted, onMounted, Fragment } from "vue";
|
|
5
|
-
import { u as useMenuStore, c as coreDartExports,
|
|
6
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, R as RouteName, u as useMenuNavigatorStatus } from "./app-
|
|
5
|
+
import { u as useMenuStore, c as coreDartExports, F as F_MENU_VERSION, a as coreExports, m as menuExports } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
6
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, R as RouteName, u as useMenuNavigatorStatus } from "./app-4yWs09Fr.js";
|
|
7
7
|
import { installBusinessQueryStatePlugin, useCoreStore, RestaurantSelector, useI18n, FeedMeAuth, useLocale } from "@feedmepos/mf-common";
|
|
8
8
|
import { useBreakpoints } from "@feedmepos/ui-library";
|
|
9
9
|
import { createRouter, createWebHistory, useRouter } from "vue-router";
|
|
10
|
-
import { _ as _sfc_main$7 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as _sfc_main$7 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js";
|
|
11
11
|
import { _ as _export_sfc$1 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { r as registerVersion, g as getApp, _ as _getProvider, a as getExperimentalSetting, b as getDefaultEmulatorHost, c as _isFirebaseServerApp, d as deepEqual, e as getModularInstance, f as getUA, E as ErrorFactory, i as isIE, h as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, j as isMobileCordova, k as isReactNative, l as base64Decode, L as Logger, m as LogLevel, n as isBrowserExtension, o as isCloudflareWorker, p as _registerComponent, C as Component, s as createSubscribe, t as getApps, u as initializeApp, v as getStorage } from "./item-Da3ArD-G.js";
|
|
13
|
+
import { u as useAppStore } from "./app-Deov1985.js";
|
|
13
14
|
var flagsmith$1 = { exports: {} }, flagsmith = flagsmith$1.exports, hasRequiredFlagsmith;
|
|
14
15
|
function requireFlagsmith() {
|
|
15
16
|
return hasRequiredFlagsmith || (hasRequiredFlagsmith = 1, function(t, e) {
|
|
@@ -24,57 +25,57 @@ function requireFlagsmith() {
|
|
|
24
25
|
}
|
|
25
26
|
}, getItem: function(V, b) {
|
|
26
27
|
var y = this;
|
|
27
|
-
return new Promise(function(
|
|
28
|
+
return new Promise(function(M, B) {
|
|
28
29
|
try {
|
|
29
30
|
var R = y.getItemSync(V);
|
|
30
|
-
b == null || b(null, R),
|
|
31
|
+
b == null || b(null, R), M(R);
|
|
31
32
|
} catch (N) {
|
|
32
|
-
b && b(N, null),
|
|
33
|
+
b && b(N, null), B(N);
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
36
|
}, setItem: function(V, b, y) {
|
|
36
|
-
return new Promise(function(
|
|
37
|
+
return new Promise(function(M, B) {
|
|
37
38
|
try {
|
|
38
|
-
localStorage.setItem(V, b), y && y(null, b),
|
|
39
|
+
localStorage.setItem(V, b), y && y(null, b), M(b);
|
|
39
40
|
} catch (R) {
|
|
40
|
-
y && y(R, null),
|
|
41
|
+
y && y(R, null), B(R);
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
} }, i = function() {
|
|
44
45
|
return i = Object.assign || function(V) {
|
|
45
|
-
for (var b, y = 1,
|
|
46
|
+
for (var b, y = 1, M = arguments.length; y < M; y++) for (var B in b = arguments[y]) Object.prototype.hasOwnProperty.call(b, B) && (V[B] = b[B]);
|
|
46
47
|
return V;
|
|
47
48
|
}, i.apply(this, arguments);
|
|
48
49
|
};
|
|
49
|
-
function s(V, b, y,
|
|
50
|
-
return new (y || (y = Promise))(function(
|
|
50
|
+
function s(V, b, y, M) {
|
|
51
|
+
return new (y || (y = Promise))(function(B, R) {
|
|
51
52
|
function N(K) {
|
|
52
53
|
try {
|
|
53
|
-
q(
|
|
54
|
+
q(M.next(K));
|
|
54
55
|
} catch (j) {
|
|
55
56
|
R(j);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
function U(K) {
|
|
59
60
|
try {
|
|
60
|
-
q(
|
|
61
|
+
q(M.throw(K));
|
|
61
62
|
} catch (j) {
|
|
62
63
|
R(j);
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
function q(K) {
|
|
66
67
|
var j;
|
|
67
|
-
K.done ?
|
|
68
|
+
K.done ? B(K.value) : (j = K.value, j instanceof y ? j : new y(function($) {
|
|
68
69
|
$(j);
|
|
69
70
|
})).then(N, U);
|
|
70
71
|
}
|
|
71
|
-
q((
|
|
72
|
+
q((M = M.apply(V, [])).next());
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
75
|
function n(V, b) {
|
|
75
|
-
var y,
|
|
76
|
-
if (1 &
|
|
77
|
-
return
|
|
76
|
+
var y, M, B, R, N = { label: 0, sent: function() {
|
|
77
|
+
if (1 & B[0]) throw B[1];
|
|
78
|
+
return B[1];
|
|
78
79
|
}, trys: [], ops: [] };
|
|
79
80
|
return R = { next: U(0), throw: U(1), return: U(2) }, typeof Symbol == "function" && (R[Symbol.iterator] = function() {
|
|
80
81
|
return this;
|
|
@@ -84,45 +85,45 @@ function requireFlagsmith() {
|
|
|
84
85
|
return function(j) {
|
|
85
86
|
if (y) throw new TypeError("Generator is already executing.");
|
|
86
87
|
for (; N; ) try {
|
|
87
|
-
if (y = 1,
|
|
88
|
-
switch (
|
|
88
|
+
if (y = 1, M && (B = 2 & j[0] ? M.return : j[0] ? M.throw || ((B = M.return) && B.call(M), 0) : M.next) && !(B = B.call(M, j[1])).done) return B;
|
|
89
|
+
switch (M = 0, B && (j = [2 & j[0], B.value]), j[0]) {
|
|
89
90
|
case 0:
|
|
90
91
|
case 1:
|
|
91
|
-
|
|
92
|
+
B = j;
|
|
92
93
|
break;
|
|
93
94
|
case 4:
|
|
94
95
|
return N.label++, { value: j[1], done: !1 };
|
|
95
96
|
case 5:
|
|
96
|
-
N.label++,
|
|
97
|
+
N.label++, M = j[1], j = [0];
|
|
97
98
|
continue;
|
|
98
99
|
case 7:
|
|
99
100
|
j = N.ops.pop(), N.trys.pop();
|
|
100
101
|
continue;
|
|
101
102
|
default:
|
|
102
|
-
if (
|
|
103
|
+
if (B = N.trys, !((B = B.length > 0 && B[B.length - 1]) || j[0] !== 6 && j[0] !== 2)) {
|
|
103
104
|
N = 0;
|
|
104
105
|
continue;
|
|
105
106
|
}
|
|
106
|
-
if (j[0] === 3 && (!
|
|
107
|
+
if (j[0] === 3 && (!B || j[1] > B[0] && j[1] < B[3])) {
|
|
107
108
|
N.label = j[1];
|
|
108
109
|
break;
|
|
109
110
|
}
|
|
110
|
-
if (j[0] === 6 && N.label <
|
|
111
|
-
N.label =
|
|
111
|
+
if (j[0] === 6 && N.label < B[1]) {
|
|
112
|
+
N.label = B[1], B = j;
|
|
112
113
|
break;
|
|
113
114
|
}
|
|
114
|
-
if (
|
|
115
|
-
N.label =
|
|
115
|
+
if (B && N.label < B[2]) {
|
|
116
|
+
N.label = B[2], N.ops.push(j);
|
|
116
117
|
break;
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
+
B[2] && N.ops.pop(), N.trys.pop();
|
|
119
120
|
continue;
|
|
120
121
|
}
|
|
121
122
|
j = b.call(V, N);
|
|
122
123
|
} catch ($) {
|
|
123
|
-
j = [6, $],
|
|
124
|
+
j = [6, $], M = 0;
|
|
124
125
|
} finally {
|
|
125
|
-
y =
|
|
126
|
+
y = B = 0;
|
|
126
127
|
}
|
|
127
128
|
if (5 & j[0]) throw j[1];
|
|
128
129
|
return { value: j[0] ? j[1] : void 0, done: !0 };
|
|
@@ -131,26 +132,26 @@ function requireFlagsmith() {
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
function o(V, b, y) {
|
|
134
|
-
for (var
|
|
135
|
-
return V.concat(
|
|
135
|
+
for (var M, B = 0, R = b.length; B < R; B++) !M && B in b || (M || (M = Array.prototype.slice.call(b, 0, B)), M[B] = b[B]);
|
|
136
|
+
return V.concat(M || Array.prototype.slice.call(b));
|
|
136
137
|
}
|
|
137
138
|
var a = function V(b, y) {
|
|
138
139
|
if (b === y) return !0;
|
|
139
140
|
if (b && y && typeof b == "object" && typeof y == "object") {
|
|
140
141
|
if (b.constructor !== y.constructor) return !1;
|
|
141
|
-
var
|
|
142
|
+
var M, B, R;
|
|
142
143
|
if (Array.isArray(b)) {
|
|
143
|
-
if ((
|
|
144
|
-
for (
|
|
144
|
+
if ((M = b.length) != y.length) return !1;
|
|
145
|
+
for (B = M; B-- != 0; ) if (!V(b[B], y[B])) return !1;
|
|
145
146
|
return !0;
|
|
146
147
|
}
|
|
147
148
|
if (b.constructor === RegExp) return b.source === y.source && b.flags === y.flags;
|
|
148
149
|
if (b.valueOf !== Object.prototype.valueOf) return b.valueOf() === y.valueOf();
|
|
149
150
|
if (b.toString !== Object.prototype.toString) return b.toString() === y.toString();
|
|
150
|
-
if ((
|
|
151
|
-
for (
|
|
152
|
-
for (
|
|
153
|
-
var N = R[
|
|
151
|
+
if ((M = (R = Object.keys(b)).length) !== Object.keys(y).length) return !1;
|
|
152
|
+
for (B = M; B-- != 0; ) if (!Object.prototype.hasOwnProperty.call(y, R[B])) return !1;
|
|
153
|
+
for (B = M; B-- != 0; ) {
|
|
154
|
+
var N = R[B];
|
|
154
155
|
if (!V(b[N], y[N])) return !1;
|
|
155
156
|
}
|
|
156
157
|
return !0;
|
|
@@ -158,26 +159,26 @@ function requireFlagsmith() {
|
|
|
158
159
|
return b != b && y != y;
|
|
159
160
|
};
|
|
160
161
|
function l(V, b) {
|
|
161
|
-
var y = Object.keys(b || {}).filter(function(
|
|
162
|
-
var
|
|
163
|
-
return !a(
|
|
162
|
+
var y = Object.keys(b || {}).filter(function(M) {
|
|
163
|
+
var B = V == null ? void 0 : V[M], R = b == null ? void 0 : b[M];
|
|
164
|
+
return !a(B, R);
|
|
164
165
|
});
|
|
165
|
-
return Object.keys(V || {}).filter(function(
|
|
166
|
-
Object.keys(b || {}).includes(
|
|
166
|
+
return Object.keys(V || {}).filter(function(M) {
|
|
167
|
+
Object.keys(b || {}).includes(M) || y.push(M);
|
|
167
168
|
}), Object.keys(y).length ? y : null;
|
|
168
169
|
}
|
|
169
170
|
var p, S;
|
|
170
171
|
function f(V, b, y) {
|
|
171
|
-
var
|
|
172
|
-
typeof y == "number" && (
|
|
172
|
+
var M = "shortString", B = !0;
|
|
173
|
+
typeof y == "number" && (M = "javaDouble", B = !1), V[M] = V[M] || {}, V[M][b] = B ? y + "" : y;
|
|
173
174
|
}
|
|
174
175
|
function C(V) {
|
|
175
176
|
return !!V && typeof V == "object" && V.value !== void 0;
|
|
176
177
|
}
|
|
177
178
|
function E(V) {
|
|
178
179
|
return Object.fromEntries(Object.entries(V).map(function(b) {
|
|
179
|
-
var y = b[0],
|
|
180
|
-
return [y, C(
|
|
180
|
+
var y = b[0], M = b[1];
|
|
181
|
+
return [y, C(M) ? M : { value: M }];
|
|
181
182
|
}));
|
|
182
183
|
}
|
|
183
184
|
function m(V) {
|
|
@@ -186,11 +187,11 @@ function requireFlagsmith() {
|
|
|
186
187
|
(function(V) {
|
|
187
188
|
V.NONE = "NONE", V.DEFAULT_FLAGS = "DEFAULT_FLAGS", V.CACHE = "CACHE", V.SERVER = "SERVER";
|
|
188
189
|
})(p || (p = {}));
|
|
189
|
-
var I, c = null, d = "FLAGSMITH_EVENT", u = d, g = "https://edge.api.flagsmith.com/api/v1/", x = "flagsmith_value_", k = "flagsmith_enabled_", T = "flagsmith_trait_",
|
|
190
|
+
var I, c = null, d = "FLAGSMITH_EVENT", u = d, g = "https://edge.api.flagsmith.com/api/v1/", x = "flagsmith_value_", k = "flagsmith_enabled_", T = "flagsmith_trait_", F = function() {
|
|
190
191
|
function V(b) {
|
|
191
192
|
var y = this;
|
|
192
193
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
193
|
-
var
|
|
194
|
+
var M = y, B = M.api, R = M.evaluationContext;
|
|
194
195
|
y.log("Get Flags"), y.isLoading = !0, y.loadingState.isFetching || y.setLoadingState(i(i({}, y.loadingState), { isFetching: !0 }));
|
|
195
196
|
var N = "".concat(y.getContext().identity), U = function(q) {
|
|
196
197
|
var K, j, $, Z;
|
|
@@ -228,77 +229,77 @@ function requireFlagsmith() {
|
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
};
|
|
231
|
-
return R.identity ? Promise.all([R.identity.traits && Object.keys(R.identity.traits).length || !R.identity.identifier ? y.getJSON(
|
|
232
|
+
return R.identity ? Promise.all([R.identity.traits && Object.keys(R.identity.traits).length || !R.identity.identifier ? y.getJSON(B + "identities/", "POST", JSON.stringify({ identifier: R.identity.identifier, transient: R.identity.transient, traits: Object.entries(R.identity.traits).map(function(q) {
|
|
232
233
|
var K = q[0], j = q[1];
|
|
233
234
|
return { trait_key: K, trait_value: j == null ? void 0 : j.value, transient: j == null ? void 0 : j.transient };
|
|
234
235
|
}).filter(function(q) {
|
|
235
236
|
return q.trait_value !== void 0 || (y.log("Warning - attempted to set an undefined trait value for key", q.trait_key), !1);
|
|
236
|
-
}) })) : y.getJSON(
|
|
237
|
+
}) })) : y.getJSON(B + "identities/?identifier=" + encodeURIComponent(R.identity.identifier) + (R.identity.transient ? "&transient=true" : ""))]).then(function(q) {
|
|
237
238
|
return y.evaluationContext.identity = i(i({}, y.evaluationContext.identity), { traits: {} }), U(q == null ? void 0 : q[0]);
|
|
238
239
|
}).catch(function(q) {
|
|
239
240
|
var K = q.message, j = new Error(K);
|
|
240
241
|
return Promise.reject(j);
|
|
241
|
-
}) : y.getJSON(
|
|
242
|
+
}) : y.getJSON(B + "flags/").then(function(q) {
|
|
242
243
|
return U({ flags: q, traits: void 0 });
|
|
243
244
|
});
|
|
244
245
|
}, this.analyticsFlags = function() {
|
|
245
|
-
var
|
|
246
|
-
if (y.evaluationEvent && y.evaluationContext.environment && y.evaluationEvent[y.evaluationContext.environment.apiKey]) return y.evaluationEvent && Object.getOwnPropertyNames(y.evaluationEvent).length !== 0 && Object.getOwnPropertyNames(y.evaluationEvent[y.evaluationContext.environment.apiKey]).length !== 0 ? y.getJSON(
|
|
246
|
+
var M = y.api;
|
|
247
|
+
if (y.evaluationEvent && y.evaluationContext.environment && y.evaluationEvent[y.evaluationContext.environment.apiKey]) return y.evaluationEvent && Object.getOwnPropertyNames(y.evaluationEvent).length !== 0 && Object.getOwnPropertyNames(y.evaluationEvent[y.evaluationContext.environment.apiKey]).length !== 0 ? y.getJSON(M + "analytics/flags/", "POST", JSON.stringify(y.evaluationEvent[y.evaluationContext.environment.apiKey])).then(function(B) {
|
|
247
248
|
if (y.evaluationContext.environment) {
|
|
248
249
|
var R = y.getState();
|
|
249
250
|
y.evaluationEvent || (y.evaluationEvent = {}), y.evaluationEvent[y.evaluationContext.environment.apiKey] = {}, y.setState(i(i({}, R), { evaluationEvent: y.evaluationEvent })), y.updateEventStorage();
|
|
250
251
|
}
|
|
251
|
-
}).catch(function(
|
|
252
|
-
y.log("Exception fetching evaluationEvent",
|
|
252
|
+
}).catch(function(B) {
|
|
253
|
+
y.log("Exception fetching evaluationEvent", B);
|
|
253
254
|
}) : void 0;
|
|
254
|
-
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: p.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(
|
|
255
|
-
var N = y.flags && y.flags[
|
|
256
|
-
if (N && (U = N.value),
|
|
257
|
-
if (
|
|
258
|
-
return U === null ? (y.log("Tried to parse null flag as JSON: " +
|
|
255
|
+
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: p.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(M, B, R) {
|
|
256
|
+
var N = y.flags && y.flags[M.toLowerCase().replace(/ /g, "_")], U = null;
|
|
257
|
+
if (N && (U = N.value), B != null && B.skipAnalytics || R || y.evaluateFlag(M, "VALUE"), U === null && (B == null ? void 0 : B.fallback) !== void 0) return B.fallback;
|
|
258
|
+
if (B != null && B.json) try {
|
|
259
|
+
return U === null ? (y.log("Tried to parse null flag as JSON: " + M), null) : JSON.parse(U);
|
|
259
260
|
} catch {
|
|
260
|
-
return
|
|
261
|
+
return B.fallback;
|
|
261
262
|
}
|
|
262
263
|
return U;
|
|
263
|
-
}, this.getTrait = function(
|
|
264
|
-
var
|
|
265
|
-
return ((
|
|
264
|
+
}, this.getTrait = function(M) {
|
|
265
|
+
var B, R;
|
|
266
|
+
return ((B = y.evaluationContext.identity) === null || B === void 0 ? void 0 : B.traits) && ((R = y.evaluationContext.identity.traits[M.toLowerCase().replace(/ /g, "_")]) === null || R === void 0 ? void 0 : R.value);
|
|
266
267
|
}, this.getAllTraits = function() {
|
|
267
|
-
var
|
|
268
|
-
return Object.fromEntries(Object.entries(((
|
|
269
|
-
var R =
|
|
268
|
+
var M;
|
|
269
|
+
return Object.fromEntries(Object.entries(((M = y.evaluationContext.identity) === null || M === void 0 ? void 0 : M.traits) || {}).map(function(B) {
|
|
270
|
+
var R = B[0], N = B[1];
|
|
270
271
|
return [R, N == null ? void 0 : N.value];
|
|
271
272
|
}));
|
|
272
|
-
}, this.setContext = function(
|
|
273
|
-
var
|
|
274
|
-
return y.evaluationContext = i(i({},
|
|
273
|
+
}, this.setContext = function(M) {
|
|
274
|
+
var B = m(M);
|
|
275
|
+
return y.evaluationContext = i(i({}, B), { environment: B.environment || y.evaluationContext.environment }), y.initialised ? y.getFlags() : Promise.resolve();
|
|
275
276
|
}, this.getContext = function() {
|
|
276
277
|
return y.evaluationContext;
|
|
277
|
-
}, this.updateContext = function(
|
|
278
|
-
return y.setContext(i(i({}, y.getContext()),
|
|
279
|
-
}, this.setTrait = function(
|
|
278
|
+
}, this.updateContext = function(M) {
|
|
279
|
+
return y.setContext(i(i({}, y.getContext()), M));
|
|
280
|
+
}, this.setTrait = function(M, B) {
|
|
280
281
|
var R;
|
|
281
|
-
if (y.api) return y.setContext(i(i({}, y.evaluationContext), { identity: i(i({}, y.evaluationContext.identity), { traits: i(i({}, (R = y.evaluationContext.identity) === null || R === void 0 ? void 0 : R.traits), E(Object.fromEntries([[
|
|
282
|
-
}, this.setTraits = function(
|
|
283
|
-
var
|
|
284
|
-
if (y.api) return y.setContext(i(i({}, y.evaluationContext), { identity: i(i({}, y.evaluationContext.identity), { traits: i(i({}, (
|
|
282
|
+
if (y.api) return y.setContext(i(i({}, y.evaluationContext), { identity: i(i({}, y.evaluationContext.identity), { traits: i(i({}, (R = y.evaluationContext.identity) === null || R === void 0 ? void 0 : R.traits), E(Object.fromEntries([[M, B]]))) }) }));
|
|
283
|
+
}, this.setTraits = function(M) {
|
|
284
|
+
var B;
|
|
285
|
+
if (y.api) return y.setContext(i(i({}, y.evaluationContext), { identity: i(i({}, y.evaluationContext.identity), { traits: i(i({}, (B = y.evaluationContext.identity) === null || B === void 0 ? void 0 : B.traits), Object.fromEntries(Object.entries(M).map(function(R) {
|
|
285
286
|
var N = R[0], U = R[1];
|
|
286
287
|
return [N, C(U) ? U : { value: U }];
|
|
287
288
|
}))) }) }));
|
|
288
289
|
console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
|
|
289
|
-
}, this.hasFeature = function(
|
|
290
|
-
var R = typeof
|
|
291
|
-
return !N && R &&
|
|
290
|
+
}, this.hasFeature = function(M, B) {
|
|
291
|
+
var R = typeof B == "object", N = y.flags && y.flags[M.toLowerCase().replace(/ /g, "_")], U = !1;
|
|
292
|
+
return !N && R && B.fallback !== void 0 ? U = B == null ? void 0 : B.fallback : N && N.enabled && (U = !0), (R && !B.skipAnalytics || !B) && y.evaluateFlag(M, "ENABLED"), U;
|
|
292
293
|
}, this.getStorageKey = function() {
|
|
293
|
-
var
|
|
294
|
-
return ((
|
|
295
|
-
}, this.getJSON = function(
|
|
294
|
+
var M, B;
|
|
295
|
+
return ((M = y.cacheOptions) === null || M === void 0 ? void 0 : M.storageKey) || "FLAGSMITH_DB_" + ((B = y.evaluationContext.environment) === null || B === void 0 ? void 0 : B.apiKey);
|
|
296
|
+
}, this.getJSON = function(M, B, R) {
|
|
296
297
|
var N, U = y;
|
|
297
298
|
U.evaluationContext;
|
|
298
|
-
var q = U.headers, K = { method:
|
|
299
|
-
y.evaluationContext.environment && (K.headers["X-Environment-Key"] = y.evaluationContext.environment.apiKey),
|
|
299
|
+
var q = U.headers, K = { method: B || "GET", body: R, cache: "no-cache", headers: {} };
|
|
300
|
+
y.evaluationContext.environment && (K.headers["X-Environment-Key"] = y.evaluationContext.environment.apiKey), B && B !== "GET" && (K.headers["Content-Type"] = "application/json; charset=utf-8"), q && Object.assign(K.headers, q), S || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
300
301
|
var j = "".concat((N = y.evaluationContext.identity) === null || N === void 0 ? void 0 : N.identifier);
|
|
301
|
-
return S(
|
|
302
|
+
return S(M, K).then(function($) {
|
|
302
303
|
var Z, te, Y = "".concat((Z = y.evaluationContext.identity) === null || Z === void 0 ? void 0 : Z.identifier);
|
|
303
304
|
if (j === Y) {
|
|
304
305
|
var z = (te = $.headers) === null || te === void 0 ? void 0 : te.get("x-flagsmith-document-updated-at");
|
|
@@ -309,7 +310,7 @@ function requireFlagsmith() {
|
|
|
309
310
|
} catch (ie) {
|
|
310
311
|
y.log(ie, "Failed to parse x-flagsmith-document-updated-at", z);
|
|
311
312
|
}
|
|
312
|
-
return y.log("Fetch response: " + $.status + " " + (
|
|
313
|
+
return y.log("Fetch response: " + $.status + " " + (B || "GET") + 0 + M), $.text().then(function(ie) {
|
|
313
314
|
var se = ie;
|
|
314
315
|
try {
|
|
315
316
|
se = JSON.parse(ie);
|
|
@@ -320,19 +321,19 @@ function requireFlagsmith() {
|
|
|
320
321
|
}
|
|
321
322
|
y.log("Received response with identity mismatch, ignoring response. Requested: ".concat(j, ", Current: ").concat(Y));
|
|
322
323
|
});
|
|
323
|
-
}, this.evaluateFlag = function(
|
|
324
|
-
if (y.datadogRum && (y.datadogRum.client.addFeatureFlagEvaluation ?
|
|
324
|
+
}, this.evaluateFlag = function(M, B) {
|
|
325
|
+
if (y.datadogRum && (y.datadogRum.client.addFeatureFlagEvaluation ? B === "VALUE" ? y.datadogRum.client.addFeatureFlagEvaluation(x + M, y.getValue(M, {}, !0)) : y.datadogRum.client.addFeatureFlagEvaluation(k + M, y.hasFeature(M, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), y.enableAnalytics) {
|
|
325
326
|
if (!y.evaluationEvent || !y.evaluationContext.environment) return;
|
|
326
|
-
y.evaluationEvent[y.evaluationContext.environment.apiKey] || (y.evaluationEvent[y.evaluationContext.environment.apiKey] = {}), y.evaluationEvent[y.evaluationContext.environment.apiKey][
|
|
327
|
+
y.evaluationEvent[y.evaluationContext.environment.apiKey] || (y.evaluationEvent[y.evaluationContext.environment.apiKey] = {}), y.evaluationEvent[y.evaluationContext.environment.apiKey][M] === void 0 && (y.evaluationEvent[y.evaluationContext.environment.apiKey][M] = 0), y.evaluationEvent[y.evaluationContext.environment.apiKey][M] += 1;
|
|
327
328
|
}
|
|
328
329
|
y.updateEventStorage();
|
|
329
|
-
}, this._onChange = function(
|
|
330
|
+
}, this._onChange = function(M, B, R) {
|
|
330
331
|
var N, U;
|
|
331
|
-
y.setLoadingState(R), (N = y.onChange) === null || N === void 0 || N.call(y,
|
|
332
|
+
y.setLoadingState(R), (N = y.onChange) === null || N === void 0 || N.call(y, M, B, y.loadingState), (U = y._trigger) === null || U === void 0 || U.call(y);
|
|
332
333
|
}, S = b.fetch ? b.fetch : typeof fetch < "u" ? fetch : commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.fetch, this.canUseStorage = typeof window < "u" || !!b.browserlessStorage, this.log("Constructing flagsmith instance " + b), b.eventSource && (I = b.eventSource), b.AsyncStorage && (c = b.AsyncStorage);
|
|
333
334
|
}
|
|
334
335
|
return V.prototype.init = function(b) {
|
|
335
|
-
var y,
|
|
336
|
+
var y, M, B;
|
|
336
337
|
return s(this, void 0, void 0, function() {
|
|
337
338
|
var R, N, U, q, K, j, $, Z, te, Y, z, re, ie, se, oe, he, le, ee, X, ce, ae, pe, ne, de, Se, be, Ee, $e, we, Pe, Ie, Ye, fe = this;
|
|
338
339
|
return n(this, function(Ve) {
|
|
@@ -442,12 +443,12 @@ function requireFlagsmith() {
|
|
|
442
443
|
return Ve.sent(), [3, 12];
|
|
443
444
|
case 11:
|
|
444
445
|
if (Y) this._onChange(null, { isFromServer: !1, flagsChanged: l({}, Y), traitsChanged: l({}, (y = R.identity) === null || y === void 0 ? void 0 : y.traits) }, this._loadedState(null, p.DEFAULT_FLAGS));
|
|
445
|
-
else if (this.flags && (Pe = null, Object.keys(this.flags).length === 0 && (Pe = Ee), this._onChange(null, { isFromServer: !1, flagsChanged: l({}, this.flags), traitsChanged: l({}, (
|
|
446
|
+
else if (this.flags && (Pe = null, Object.keys(this.flags).length === 0 && (Pe = Ee), this._onChange(null, { isFromServer: !1, flagsChanged: l({}, this.flags), traitsChanged: l({}, (M = R.identity) === null || M === void 0 ? void 0 : M.traits) }, this._loadedState(Pe, p.DEFAULT_FLAGS)), Pe)) throw new Error(Pe);
|
|
446
447
|
Ve.label = 12;
|
|
447
448
|
case 12:
|
|
448
449
|
return [3, 14];
|
|
449
450
|
case 13:
|
|
450
|
-
throw Ie = Ve.sent(), this.log("Error during initialisation ", Ie), Ye = Ie instanceof Error ? Ie : new Error("".concat(Ie)), (
|
|
451
|
+
throw Ie = Ve.sent(), this.log("Error during initialisation ", Ie), Ye = Ie instanceof Error ? Ie : new Error("".concat(Ie)), (B = this.onError) === null || B === void 0 || B.call(this, Ye), Ie;
|
|
451
452
|
case 14:
|
|
452
453
|
return [2];
|
|
453
454
|
}
|
|
@@ -455,9 +456,9 @@ function requireFlagsmith() {
|
|
|
455
456
|
});
|
|
456
457
|
}, V.prototype.getAllFlags = function() {
|
|
457
458
|
return this.flags;
|
|
458
|
-
}, V.prototype.identify = function(b, y,
|
|
459
|
-
return this.evaluationContext.identity = { identifier: b, transient:
|
|
460
|
-
var R =
|
|
459
|
+
}, V.prototype.identify = function(b, y, M) {
|
|
460
|
+
return this.evaluationContext.identity = { identifier: b, transient: M, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == b ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = b, this.log("Identify: " + this.evaluationContext.identity.identifier), y && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(y).map(function(B) {
|
|
461
|
+
var R = B[0], N = B[1];
|
|
461
462
|
return [R, C(N) ? N : { value: N }];
|
|
462
463
|
}))), this.initialised ? this.getFlags() : Promise.resolve();
|
|
463
464
|
}, V.prototype.getState = function() {
|
|
@@ -470,8 +471,8 @@ function requireFlagsmith() {
|
|
|
470
471
|
b === void 0 && (b = 1e3), this.getFlagInterval && clearInterval(this.getFlagInterval), this.getFlagInterval = setInterval(this.getFlags, b);
|
|
471
472
|
}, V.prototype.stopListening = function() {
|
|
472
473
|
this.getFlagInterval && (clearInterval(this.getFlagInterval), this.getFlagInterval = null);
|
|
473
|
-
}, V.prototype._loadedState = function(b, y,
|
|
474
|
-
return b === void 0 && (b = null),
|
|
474
|
+
}, V.prototype._loadedState = function(b, y, M) {
|
|
475
|
+
return b === void 0 && (b = null), M === void 0 && (M = !1), { error: b, isFetching: M, isLoading: !1, source: y };
|
|
475
476
|
}, V.prototype.log = function() {
|
|
476
477
|
for (var b = [], y = 0; y < arguments.length; y++) b[y] = arguments[y];
|
|
477
478
|
this.enableLogs && console.log.apply(this, o(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], b));
|
|
@@ -492,27 +493,27 @@ function requireFlagsmith() {
|
|
|
492
493
|
var y;
|
|
493
494
|
a(b, this.loadingState) || (this.loadingState = i({}, b), this.log("Loading state changed", b), (y = this._triggerLoadingState) === null || y === void 0 || y.call(this));
|
|
494
495
|
}, V.prototype.setupRealtime = function(b, y) {
|
|
495
|
-
var
|
|
496
|
-
I ? this.eventSource || (this.log("Creating event source with url " +
|
|
496
|
+
var M = this, B = b + "sse/environments/" + y + "/stream";
|
|
497
|
+
I ? this.eventSource || (this.log("Creating event source with url " + B), this.eventSource = new I(B), this.eventSource.addEventListener("environment_updated", function(R) {
|
|
497
498
|
var N;
|
|
498
499
|
try {
|
|
499
500
|
N = JSON.parse(R.data).updated_at;
|
|
500
501
|
} catch (U) {
|
|
501
|
-
|
|
502
|
+
M.log("Could not parse sse event", U);
|
|
502
503
|
}
|
|
503
|
-
N ? !
|
|
504
|
+
N ? !M.timestamp || N > M.timestamp ? M.isLoading ? M.log("updated_at is new, but flags are loading", R.data, M.timestamp) : (M.log("updated_at is new, fetching flags", R.data, M.timestamp), M.getFlags()) : M.log("updated_at is outdated, skipping get flags", R.data, M.timestamp) : M.log("No updated_at received, fetching flags", R);
|
|
504
505
|
})) : this.log("Error, EventSource is undefined");
|
|
505
506
|
}, V;
|
|
506
507
|
}();
|
|
507
508
|
function O(V) {
|
|
508
|
-
var b = V.fetch, y = V.AsyncStorage,
|
|
509
|
-
return new
|
|
509
|
+
var b = V.fetch, y = V.AsyncStorage, M = V.eventSource;
|
|
510
|
+
return new F({ fetch: b, AsyncStorage: y, eventSource: M });
|
|
510
511
|
}
|
|
511
512
|
var W, G = (W = function(V, b) {
|
|
512
|
-
return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y,
|
|
513
|
-
y.__proto__ =
|
|
514
|
-
} || function(y,
|
|
515
|
-
for (var
|
|
513
|
+
return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, M) {
|
|
514
|
+
y.__proto__ = M;
|
|
515
|
+
} || function(y, M) {
|
|
516
|
+
for (var B in M) Object.prototype.hasOwnProperty.call(M, B) && (y[B] = M[B]);
|
|
516
517
|
}, W(V, b);
|
|
517
518
|
}, function(V, b) {
|
|
518
519
|
if (typeof b != "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
@@ -521,31 +522,31 @@ function requireFlagsmith() {
|
|
|
521
522
|
}
|
|
522
523
|
W(V, b), V.prototype = b === null ? Object.create(b) : (y.prototype = b.prototype, new y());
|
|
523
524
|
}), Q = function(V) {
|
|
524
|
-
var b = typeof Symbol == "function" && Symbol.iterator, y = b && V[b],
|
|
525
|
+
var b = typeof Symbol == "function" && Symbol.iterator, y = b && V[b], M = 0;
|
|
525
526
|
if (y) return y.call(V);
|
|
526
527
|
if (V && typeof V.length == "number") return { next: function() {
|
|
527
|
-
return V &&
|
|
528
|
+
return V && M >= V.length && (V = void 0), { value: V && V[M++], done: !V };
|
|
528
529
|
} };
|
|
529
530
|
throw new TypeError(b ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
530
531
|
}, H = function(V, b) {
|
|
531
532
|
var y = typeof Symbol == "function" && V[Symbol.iterator];
|
|
532
533
|
if (!y) return V;
|
|
533
|
-
var
|
|
534
|
+
var M, B, R = y.call(V), N = [];
|
|
534
535
|
try {
|
|
535
|
-
for (; (b === void 0 || b-- > 0) && !(
|
|
536
|
+
for (; (b === void 0 || b-- > 0) && !(M = R.next()).done; ) N.push(M.value);
|
|
536
537
|
} catch (U) {
|
|
537
|
-
|
|
538
|
+
B = { error: U };
|
|
538
539
|
} finally {
|
|
539
540
|
try {
|
|
540
|
-
|
|
541
|
+
M && !M.done && (y = R.return) && y.call(R);
|
|
541
542
|
} finally {
|
|
542
|
-
if (
|
|
543
|
+
if (B) throw B.error;
|
|
543
544
|
}
|
|
544
545
|
}
|
|
545
546
|
return N;
|
|
546
547
|
}, J = function(V, b, y) {
|
|
547
|
-
if (arguments.length === 2) for (var
|
|
548
|
-
return V.concat(
|
|
548
|
+
if (arguments.length === 2) for (var M, B = 0, R = b.length; B < R; B++) !M && B in b || (M || (M = Array.prototype.slice.call(b, 0, B)), M[B] = b[B]);
|
|
549
|
+
return V.concat(M || Array.prototype.slice.call(b));
|
|
549
550
|
}, D = function(V) {
|
|
550
551
|
function b() {
|
|
551
552
|
return V.call(this, `EventSource not available.
|
|
@@ -554,22 +555,22 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
554
555
|
return G(b, V), b;
|
|
555
556
|
}(Error), P = function() {
|
|
556
557
|
function V(b, y) {
|
|
557
|
-
var
|
|
558
|
+
var M = this;
|
|
558
559
|
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = y != null ? Object.assign({}, y) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = b.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new D();
|
|
559
|
-
this._onevent_wrapped = function(
|
|
560
|
-
|
|
560
|
+
this._onevent_wrapped = function(B) {
|
|
561
|
+
M._onevent(B);
|
|
561
562
|
}, this._start();
|
|
562
563
|
}
|
|
563
564
|
return V.prototype.dispatchEvent = function(b) {
|
|
564
565
|
throw new Error("Method not implemented.");
|
|
565
566
|
}, V.prototype._start = function() {
|
|
566
|
-
var b, y,
|
|
567
|
-
this._lastEventId && (
|
|
568
|
-
|
|
567
|
+
var b, y, M = this, B = this.url;
|
|
568
|
+
this._lastEventId && (B.indexOf("?") === -1 ? B += "?" : B += "&", B += "lastEventId=" + encodeURIComponent(this._lastEventId)), this._eventSource = new this.eventSourceClass(B, this._configuration), this._eventSource.onopen = function(q) {
|
|
569
|
+
M._onopen(q);
|
|
569
570
|
}, this._eventSource.onerror = function(q) {
|
|
570
|
-
|
|
571
|
+
M._onerror(q);
|
|
571
572
|
}, this._eventSource.onmessage = function(q) {
|
|
572
|
-
|
|
573
|
+
M.onmessage(q);
|
|
573
574
|
};
|
|
574
575
|
try {
|
|
575
576
|
for (var R = Q(Object.keys(this._listeners)), N = R.next(); !N.done; N = R.next()) {
|
|
@@ -591,23 +592,23 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
591
592
|
var y = this;
|
|
592
593
|
if (this.readyState === 1 && (this.readyState = 0, this.onerror(b)), this._eventSource) {
|
|
593
594
|
this._eventSource.close(), this._eventSource = null;
|
|
594
|
-
var
|
|
595
|
+
var M = Math.round(this.max_retry_time * Math.random());
|
|
595
596
|
this._timer = setTimeout(function() {
|
|
596
597
|
return y._start();
|
|
597
|
-
},
|
|
598
|
+
}, M);
|
|
598
599
|
}
|
|
599
600
|
}, V.prototype._onevent = function(b) {
|
|
600
|
-
var y,
|
|
601
|
+
var y, M;
|
|
601
602
|
b && b.lastEventId && (this._lastEventId = b.lastEventId);
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
604
|
-
for (var R = Q(J([], H(
|
|
603
|
+
var B = this._listeners[b.type];
|
|
604
|
+
if (B != null) try {
|
|
605
|
+
for (var R = Q(J([], H(B), !1)), N = R.next(); !N.done; N = R.next())
|
|
605
606
|
N.value.call(this, b);
|
|
606
607
|
} catch (U) {
|
|
607
608
|
y = { error: U };
|
|
608
609
|
} finally {
|
|
609
610
|
try {
|
|
610
|
-
N && !N.done && (
|
|
611
|
+
N && !N.done && (M = R.return) && M.call(R);
|
|
611
612
|
} finally {
|
|
612
613
|
if (y) throw y.error;
|
|
613
614
|
}
|
|
@@ -618,27 +619,27 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
618
619
|
}, V.prototype.onmessage = function(b) {
|
|
619
620
|
}, V.prototype.close = function() {
|
|
620
621
|
this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
|
|
621
|
-
}, V.prototype.addEventListener = function(b, y,
|
|
622
|
+
}, V.prototype.addEventListener = function(b, y, M) {
|
|
622
623
|
this._listeners[b] == null && (this._listeners[b] = [], this._eventSource != null && this._eventSource.addEventListener(b, this._onevent_wrapped));
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
}, V.prototype.removeEventListener = function(b, y,
|
|
626
|
-
var
|
|
627
|
-
this._listeners[b] =
|
|
624
|
+
var B = this._listeners[b];
|
|
625
|
+
B.includes(y) || (this._listeners[b] = J(J([], H(B), !1), [y], !1));
|
|
626
|
+
}, V.prototype.removeEventListener = function(b, y, M) {
|
|
627
|
+
var B = this._listeners[b];
|
|
628
|
+
this._listeners[b] = B.filter(function(R) {
|
|
628
629
|
return R !== y;
|
|
629
630
|
});
|
|
630
631
|
}, V;
|
|
631
632
|
}();
|
|
632
633
|
globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
|
|
633
|
-
var
|
|
634
|
-
return b = b || {}, new Promise(function(y,
|
|
635
|
-
var
|
|
636
|
-
return { ok: (
|
|
637
|
-
return Promise.resolve(
|
|
634
|
+
var L = function(V, b) {
|
|
635
|
+
return b = b || {}, new Promise(function(y, M) {
|
|
636
|
+
var B = new XMLHttpRequest(), R = [], N = [], U = {}, q = function() {
|
|
637
|
+
return { ok: (B.status / 100 | 0) == 2, statusText: B.statusText, status: B.status, url: B.responseURL, text: function() {
|
|
638
|
+
return Promise.resolve(B.responseText);
|
|
638
639
|
}, json: function() {
|
|
639
|
-
return Promise.resolve(
|
|
640
|
+
return Promise.resolve(B.responseText).then(JSON.parse);
|
|
640
641
|
}, blob: function() {
|
|
641
|
-
return Promise.resolve(new Blob([
|
|
642
|
+
return Promise.resolve(new Blob([B.response]));
|
|
642
643
|
}, clone: q, headers: { keys: function() {
|
|
643
644
|
return R;
|
|
644
645
|
}, entries: function() {
|
|
@@ -649,16 +650,16 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
649
650
|
return j.toLowerCase() in U;
|
|
650
651
|
} } };
|
|
651
652
|
};
|
|
652
|
-
for (var K in
|
|
653
|
-
|
|
653
|
+
for (var K in B.open(b.method || "get", V, !0), B.onload = function() {
|
|
654
|
+
B.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, $, Z) {
|
|
654
655
|
R.push($ = $.toLowerCase()), N.push([$, Z]), U[$] = U[$] ? U[$] + "," + Z : Z;
|
|
655
656
|
}), y(q());
|
|
656
|
-
},
|
|
657
|
-
|
|
657
|
+
}, B.onerror = M, B.withCredentials = b.credentials == "include", b.headers) B.setRequestHeader(K, b.headers[K]);
|
|
658
|
+
B.send(b.body || null);
|
|
658
659
|
});
|
|
659
|
-
}, _ = O({ AsyncStorage: r, fetch:
|
|
660
|
+
}, _ = O({ AsyncStorage: r, fetch: L, eventSource: P });
|
|
660
661
|
typeof window < "u" && (window.flagsmith = _), A.createFlagsmithInstance = function() {
|
|
661
|
-
return O({ AsyncStorage: r, fetch:
|
|
662
|
+
return O({ AsyncStorage: r, fetch: L, eventSource: P });
|
|
662
663
|
}, A.default = _, Object.defineProperty(A, "__esModule", { value: !0 });
|
|
663
664
|
});
|
|
664
665
|
}(flagsmith$1, flagsmith$1.exports)), flagsmith$1.exports;
|
|
@@ -1144,43 +1145,43 @@ function requireLottie() {
|
|
|
1144
1145
|
r || (r = n(function(C) {
|
|
1145
1146
|
function E() {
|
|
1146
1147
|
function I(D, P) {
|
|
1147
|
-
var
|
|
1148
|
+
var L, _, V = D.length, b, y, M, B;
|
|
1148
1149
|
for (_ = 0; _ < V; _ += 1)
|
|
1149
|
-
if (
|
|
1150
|
-
if (
|
|
1151
|
-
var R =
|
|
1150
|
+
if (L = D[_], "ks" in L && !L.completed) {
|
|
1151
|
+
if (L.completed = !0, L.hasMask) {
|
|
1152
|
+
var R = L.masksProperties;
|
|
1152
1153
|
for (y = R.length, b = 0; b < y; b += 1)
|
|
1153
1154
|
if (R[b].pt.k.i)
|
|
1154
1155
|
x(R[b].pt.k);
|
|
1155
1156
|
else
|
|
1156
|
-
for (
|
|
1157
|
-
R[b].pt.k[
|
|
1157
|
+
for (B = R[b].pt.k.length, M = 0; M < B; M += 1)
|
|
1158
|
+
R[b].pt.k[M].s && x(R[b].pt.k[M].s[0]), R[b].pt.k[M].e && x(R[b].pt.k[M].e[0]);
|
|
1158
1159
|
}
|
|
1159
|
-
|
|
1160
|
+
L.ty === 0 ? (L.layers = u(L.refId, P), I(L.layers, P)) : L.ty === 4 ? g(L.shapes) : L.ty === 5 && H(L);
|
|
1160
1161
|
}
|
|
1161
1162
|
}
|
|
1162
1163
|
function c(D, P) {
|
|
1163
1164
|
if (D) {
|
|
1164
|
-
var
|
|
1165
|
-
for (
|
|
1166
|
-
D[
|
|
1165
|
+
var L = 0, _ = D.length;
|
|
1166
|
+
for (L = 0; L < _; L += 1)
|
|
1167
|
+
D[L].t === 1 && (D[L].data.layers = u(D[L].data.refId, P), I(D[L].data.layers, P));
|
|
1167
1168
|
}
|
|
1168
1169
|
}
|
|
1169
1170
|
function d(D, P) {
|
|
1170
|
-
for (var
|
|
1171
|
-
if (P[
|
|
1172
|
-
return P[
|
|
1173
|
-
|
|
1171
|
+
for (var L = 0, _ = P.length; L < _; ) {
|
|
1172
|
+
if (P[L].id === D)
|
|
1173
|
+
return P[L];
|
|
1174
|
+
L += 1;
|
|
1174
1175
|
}
|
|
1175
1176
|
return null;
|
|
1176
1177
|
}
|
|
1177
1178
|
function u(D, P) {
|
|
1178
|
-
var
|
|
1179
|
-
return
|
|
1179
|
+
var L = d(D, P);
|
|
1180
|
+
return L ? L.layers.__used ? JSON.parse(JSON.stringify(L.layers)) : (L.layers.__used = !0, L.layers) : null;
|
|
1180
1181
|
}
|
|
1181
1182
|
function g(D) {
|
|
1182
|
-
var P,
|
|
1183
|
-
for (P =
|
|
1183
|
+
var P, L = D.length, _, V;
|
|
1184
|
+
for (P = L - 1; P >= 0; P -= 1)
|
|
1184
1185
|
if (D[P].ty === "sh")
|
|
1185
1186
|
if (D[P].ks.k.i)
|
|
1186
1187
|
x(D[P].ks.k);
|
|
@@ -1190,13 +1191,13 @@ function requireLottie() {
|
|
|
1190
1191
|
else D[P].ty === "gr" && g(D[P].it);
|
|
1191
1192
|
}
|
|
1192
1193
|
function x(D) {
|
|
1193
|
-
var P,
|
|
1194
|
-
for (P = 0; P <
|
|
1194
|
+
var P, L = D.i.length;
|
|
1195
|
+
for (P = 0; P < L; P += 1)
|
|
1195
1196
|
D.i[P][0] += D.v[P][0], D.i[P][1] += D.v[P][1], D.o[P][0] += D.v[P][0], D.o[P][1] += D.v[P][1];
|
|
1196
1197
|
}
|
|
1197
1198
|
function k(D, P) {
|
|
1198
|
-
var
|
|
1199
|
-
return D[0] >
|
|
1199
|
+
var L = P ? P.split(".") : [100, 100, 100];
|
|
1200
|
+
return D[0] > L[0] ? !0 : L[0] > D[0] ? !1 : D[1] > L[1] ? !0 : L[1] > D[1] ? !1 : D[2] > L[2] ? !0 : L[2] > D[2] ? !1 : null;
|
|
1200
1201
|
}
|
|
1201
1202
|
var T = /* @__PURE__ */ function() {
|
|
1202
1203
|
var D = [4, 4, 14];
|
|
@@ -1209,25 +1210,25 @@ function requireLottie() {
|
|
|
1209
1210
|
}]
|
|
1210
1211
|
};
|
|
1211
1212
|
}
|
|
1212
|
-
function
|
|
1213
|
+
function L(_) {
|
|
1213
1214
|
var V, b = _.length;
|
|
1214
1215
|
for (V = 0; V < b; V += 1)
|
|
1215
1216
|
_[V].ty === 5 && P(_[V]);
|
|
1216
1217
|
}
|
|
1217
1218
|
return function(_) {
|
|
1218
|
-
if (k(D, _.v) && (
|
|
1219
|
+
if (k(D, _.v) && (L(_.layers), _.assets)) {
|
|
1219
1220
|
var V, b = _.assets.length;
|
|
1220
1221
|
for (V = 0; V < b; V += 1)
|
|
1221
|
-
_.assets[V].layers &&
|
|
1222
|
+
_.assets[V].layers && L(_.assets[V].layers);
|
|
1222
1223
|
}
|
|
1223
1224
|
};
|
|
1224
|
-
}(),
|
|
1225
|
+
}(), F = /* @__PURE__ */ function() {
|
|
1225
1226
|
var D = [4, 7, 99];
|
|
1226
1227
|
return function(P) {
|
|
1227
1228
|
if (P.chars && !k(D, P.v)) {
|
|
1228
|
-
var
|
|
1229
|
-
for (
|
|
1230
|
-
var V = P.chars[
|
|
1229
|
+
var L, _ = P.chars.length;
|
|
1230
|
+
for (L = 0; L < _; L += 1) {
|
|
1231
|
+
var V = P.chars[L];
|
|
1231
1232
|
V.data && V.data.shapes && (g(V.data.shapes), V.data.ip = 0, V.data.op = 99999, V.data.st = 0, V.data.sr = 1, V.data.ks = {
|
|
1232
1233
|
p: {
|
|
1233
1234
|
k: [0, 0],
|
|
@@ -1249,7 +1250,7 @@ function requireLottie() {
|
|
|
1249
1250
|
k: 100,
|
|
1250
1251
|
a: 0
|
|
1251
1252
|
}
|
|
1252
|
-
}, P.chars[
|
|
1253
|
+
}, P.chars[L].t || (V.data.shapes.push({
|
|
1253
1254
|
ty: "no"
|
|
1254
1255
|
}), V.data.shapes[0].it.push({
|
|
1255
1256
|
p: {
|
|
@@ -1300,88 +1301,88 @@ function requireLottie() {
|
|
|
1300
1301
|
k: V.r
|
|
1301
1302
|
});
|
|
1302
1303
|
}
|
|
1303
|
-
function
|
|
1304
|
+
function L(_) {
|
|
1304
1305
|
var V, b = _.length;
|
|
1305
1306
|
for (V = 0; V < b; V += 1)
|
|
1306
1307
|
_[V].ty === 5 && P(_[V]);
|
|
1307
1308
|
}
|
|
1308
1309
|
return function(_) {
|
|
1309
|
-
if (k(D, _.v) && (
|
|
1310
|
+
if (k(D, _.v) && (L(_.layers), _.assets)) {
|
|
1310
1311
|
var V, b = _.assets.length;
|
|
1311
1312
|
for (V = 0; V < b; V += 1)
|
|
1312
|
-
_.assets[V].layers &&
|
|
1313
|
+
_.assets[V].layers && L(_.assets[V].layers);
|
|
1313
1314
|
}
|
|
1314
1315
|
};
|
|
1315
1316
|
}(), W = /* @__PURE__ */ function() {
|
|
1316
1317
|
var D = [4, 1, 9];
|
|
1317
1318
|
function P(_) {
|
|
1318
|
-
var V, b = _.length, y,
|
|
1319
|
+
var V, b = _.length, y, M;
|
|
1319
1320
|
for (V = 0; V < b; V += 1)
|
|
1320
1321
|
if (_[V].ty === "gr")
|
|
1321
1322
|
P(_[V].it);
|
|
1322
1323
|
else if (_[V].ty === "fl" || _[V].ty === "st")
|
|
1323
1324
|
if (_[V].c.k && _[V].c.k[0].i)
|
|
1324
|
-
for (
|
|
1325
|
+
for (M = _[V].c.k.length, y = 0; y < M; y += 1)
|
|
1325
1326
|
_[V].c.k[y].s && (_[V].c.k[y].s[0] /= 255, _[V].c.k[y].s[1] /= 255, _[V].c.k[y].s[2] /= 255, _[V].c.k[y].s[3] /= 255), _[V].c.k[y].e && (_[V].c.k[y].e[0] /= 255, _[V].c.k[y].e[1] /= 255, _[V].c.k[y].e[2] /= 255, _[V].c.k[y].e[3] /= 255);
|
|
1326
1327
|
else
|
|
1327
1328
|
_[V].c.k[0] /= 255, _[V].c.k[1] /= 255, _[V].c.k[2] /= 255, _[V].c.k[3] /= 255;
|
|
1328
1329
|
}
|
|
1329
|
-
function
|
|
1330
|
+
function L(_) {
|
|
1330
1331
|
var V, b = _.length;
|
|
1331
1332
|
for (V = 0; V < b; V += 1)
|
|
1332
1333
|
_[V].ty === 4 && P(_[V].shapes);
|
|
1333
1334
|
}
|
|
1334
1335
|
return function(_) {
|
|
1335
|
-
if (k(D, _.v) && (
|
|
1336
|
+
if (k(D, _.v) && (L(_.layers), _.assets)) {
|
|
1336
1337
|
var V, b = _.assets.length;
|
|
1337
1338
|
for (V = 0; V < b; V += 1)
|
|
1338
|
-
_.assets[V].layers &&
|
|
1339
|
+
_.assets[V].layers && L(_.assets[V].layers);
|
|
1339
1340
|
}
|
|
1340
1341
|
};
|
|
1341
1342
|
}(), G = /* @__PURE__ */ function() {
|
|
1342
1343
|
var D = [4, 4, 18];
|
|
1343
1344
|
function P(_) {
|
|
1344
|
-
var V, b = _.length, y,
|
|
1345
|
+
var V, b = _.length, y, M;
|
|
1345
1346
|
for (V = b - 1; V >= 0; V -= 1)
|
|
1346
1347
|
if (_[V].ty === "sh")
|
|
1347
1348
|
if (_[V].ks.k.i)
|
|
1348
1349
|
_[V].ks.k.c = _[V].closed;
|
|
1349
1350
|
else
|
|
1350
|
-
for (
|
|
1351
|
+
for (M = _[V].ks.k.length, y = 0; y < M; y += 1)
|
|
1351
1352
|
_[V].ks.k[y].s && (_[V].ks.k[y].s[0].c = _[V].closed), _[V].ks.k[y].e && (_[V].ks.k[y].e[0].c = _[V].closed);
|
|
1352
1353
|
else _[V].ty === "gr" && P(_[V].it);
|
|
1353
1354
|
}
|
|
1354
|
-
function
|
|
1355
|
-
var V, b, y = _.length,
|
|
1355
|
+
function L(_) {
|
|
1356
|
+
var V, b, y = _.length, M, B, R, N;
|
|
1356
1357
|
for (b = 0; b < y; b += 1) {
|
|
1357
1358
|
if (V = _[b], V.hasMask) {
|
|
1358
1359
|
var U = V.masksProperties;
|
|
1359
|
-
for (
|
|
1360
|
-
if (U[
|
|
1361
|
-
U[
|
|
1360
|
+
for (B = U.length, M = 0; M < B; M += 1)
|
|
1361
|
+
if (U[M].pt.k.i)
|
|
1362
|
+
U[M].pt.k.c = U[M].cl;
|
|
1362
1363
|
else
|
|
1363
|
-
for (N = U[
|
|
1364
|
-
U[
|
|
1364
|
+
for (N = U[M].pt.k.length, R = 0; R < N; R += 1)
|
|
1365
|
+
U[M].pt.k[R].s && (U[M].pt.k[R].s[0].c = U[M].cl), U[M].pt.k[R].e && (U[M].pt.k[R].e[0].c = U[M].cl);
|
|
1365
1366
|
}
|
|
1366
1367
|
V.ty === 4 && P(V.shapes);
|
|
1367
1368
|
}
|
|
1368
1369
|
}
|
|
1369
1370
|
return function(_) {
|
|
1370
|
-
if (k(D, _.v) && (
|
|
1371
|
+
if (k(D, _.v) && (L(_.layers), _.assets)) {
|
|
1371
1372
|
var V, b = _.assets.length;
|
|
1372
1373
|
for (V = 0; V < b; V += 1)
|
|
1373
|
-
_.assets[V].layers &&
|
|
1374
|
+
_.assets[V].layers && L(_.assets[V].layers);
|
|
1374
1375
|
}
|
|
1375
1376
|
};
|
|
1376
1377
|
}();
|
|
1377
1378
|
function Q(D) {
|
|
1378
|
-
D.__complete || (W(D), T(D),
|
|
1379
|
+
D.__complete || (W(D), T(D), F(D), O(D), G(D), I(D.layers, D.assets), c(D.chars, D.assets), D.__complete = !0);
|
|
1379
1380
|
}
|
|
1380
1381
|
function H(D) {
|
|
1381
1382
|
D.t.a.length === 0 && "m" in D.t.p;
|
|
1382
1383
|
}
|
|
1383
1384
|
var J = {};
|
|
1384
|
-
return J.completeData = Q, J.checkColors = W, J.checkChars =
|
|
1385
|
+
return J.completeData = Q, J.checkColors = W, J.checkChars = F, J.checkPathProperties = O, J.checkShapes = G, J.completeLayers = I, J;
|
|
1385
1386
|
}
|
|
1386
1387
|
if (s.dataManager || (s.dataManager = E()), s.assetLoader || (s.assetLoader = /* @__PURE__ */ function() {
|
|
1387
1388
|
function I(d) {
|
|
@@ -1401,8 +1402,8 @@ function requireLottie() {
|
|
|
1401
1402
|
else
|
|
1402
1403
|
try {
|
|
1403
1404
|
k = I(T), g(k);
|
|
1404
|
-
} catch (
|
|
1405
|
-
x && x(
|
|
1405
|
+
} catch (F) {
|
|
1406
|
+
x && x(F);
|
|
1406
1407
|
}
|
|
1407
1408
|
};
|
|
1408
1409
|
try {
|
|
@@ -1931,10 +1932,10 @@ function requireLottie() {
|
|
|
1931
1932
|
var animationManager = function() {
|
|
1932
1933
|
var t = {}, e = [], A = 0, r = 0, i = 0, s = !0, n = !1;
|
|
1933
1934
|
function o(P) {
|
|
1934
|
-
for (var
|
|
1935
|
-
e[
|
|
1935
|
+
for (var L = 0, _ = P.target; L < r; )
|
|
1936
|
+
e[L].animation === _ && (e.splice(L, 1), L -= 1, r -= 1, _.isPaused || S()), L += 1;
|
|
1936
1937
|
}
|
|
1937
|
-
function a(P,
|
|
1938
|
+
function a(P, L) {
|
|
1938
1939
|
if (!P)
|
|
1939
1940
|
return null;
|
|
1940
1941
|
for (var _ = 0; _ < r; ) {
|
|
@@ -1943,11 +1944,11 @@ function requireLottie() {
|
|
|
1943
1944
|
_ += 1;
|
|
1944
1945
|
}
|
|
1945
1946
|
var V = new AnimationItem();
|
|
1946
|
-
return f(V, P), V.setData(P,
|
|
1947
|
+
return f(V, P), V.setData(P, L), V;
|
|
1947
1948
|
}
|
|
1948
1949
|
function l() {
|
|
1949
|
-
var P,
|
|
1950
|
-
for (P = 0; P <
|
|
1950
|
+
var P, L = e.length, _ = [];
|
|
1951
|
+
for (P = 0; P < L; P += 1)
|
|
1951
1952
|
_.push(e[P].animation);
|
|
1952
1953
|
return _;
|
|
1953
1954
|
}
|
|
@@ -1957,75 +1958,75 @@ function requireLottie() {
|
|
|
1957
1958
|
function S() {
|
|
1958
1959
|
i -= 1;
|
|
1959
1960
|
}
|
|
1960
|
-
function f(P,
|
|
1961
|
+
function f(P, L) {
|
|
1961
1962
|
P.addEventListener("destroy", o), P.addEventListener("_active", p), P.addEventListener("_idle", S), e.push({
|
|
1962
|
-
elem:
|
|
1963
|
+
elem: L,
|
|
1963
1964
|
animation: P
|
|
1964
1965
|
}), r += 1;
|
|
1965
1966
|
}
|
|
1966
1967
|
function C(P) {
|
|
1967
|
-
var
|
|
1968
|
-
return f(
|
|
1968
|
+
var L = new AnimationItem();
|
|
1969
|
+
return f(L, null), L.setParams(P), L;
|
|
1969
1970
|
}
|
|
1970
|
-
function E(P,
|
|
1971
|
+
function E(P, L) {
|
|
1971
1972
|
var _;
|
|
1972
1973
|
for (_ = 0; _ < r; _ += 1)
|
|
1973
|
-
e[_].animation.setSpeed(P,
|
|
1974
|
+
e[_].animation.setSpeed(P, L);
|
|
1974
1975
|
}
|
|
1975
|
-
function m(P,
|
|
1976
|
+
function m(P, L) {
|
|
1976
1977
|
var _;
|
|
1977
1978
|
for (_ = 0; _ < r; _ += 1)
|
|
1978
|
-
e[_].animation.setDirection(P,
|
|
1979
|
+
e[_].animation.setDirection(P, L);
|
|
1979
1980
|
}
|
|
1980
1981
|
function I(P) {
|
|
1981
|
-
var
|
|
1982
|
-
for (
|
|
1983
|
-
e[
|
|
1982
|
+
var L;
|
|
1983
|
+
for (L = 0; L < r; L += 1)
|
|
1984
|
+
e[L].animation.play(P);
|
|
1984
1985
|
}
|
|
1985
1986
|
function c(P) {
|
|
1986
|
-
var
|
|
1987
|
+
var L = P - A, _;
|
|
1987
1988
|
for (_ = 0; _ < r; _ += 1)
|
|
1988
|
-
e[_].animation.advanceTime(
|
|
1989
|
+
e[_].animation.advanceTime(L);
|
|
1989
1990
|
A = P, i && !n ? window.requestAnimationFrame(c) : s = !0;
|
|
1990
1991
|
}
|
|
1991
1992
|
function d(P) {
|
|
1992
1993
|
A = P, window.requestAnimationFrame(c);
|
|
1993
1994
|
}
|
|
1994
1995
|
function u(P) {
|
|
1995
|
-
var
|
|
1996
|
-
for (
|
|
1997
|
-
e[
|
|
1996
|
+
var L;
|
|
1997
|
+
for (L = 0; L < r; L += 1)
|
|
1998
|
+
e[L].animation.pause(P);
|
|
1998
1999
|
}
|
|
1999
|
-
function g(P,
|
|
2000
|
+
function g(P, L, _) {
|
|
2000
2001
|
var V;
|
|
2001
2002
|
for (V = 0; V < r; V += 1)
|
|
2002
|
-
e[V].animation.goToAndStop(P,
|
|
2003
|
+
e[V].animation.goToAndStop(P, L, _);
|
|
2003
2004
|
}
|
|
2004
2005
|
function x(P) {
|
|
2005
|
-
var
|
|
2006
|
-
for (
|
|
2007
|
-
e[
|
|
2006
|
+
var L;
|
|
2007
|
+
for (L = 0; L < r; L += 1)
|
|
2008
|
+
e[L].animation.stop(P);
|
|
2008
2009
|
}
|
|
2009
2010
|
function k(P) {
|
|
2010
|
-
var
|
|
2011
|
-
for (
|
|
2012
|
-
e[
|
|
2011
|
+
var L;
|
|
2012
|
+
for (L = 0; L < r; L += 1)
|
|
2013
|
+
e[L].animation.togglePause(P);
|
|
2013
2014
|
}
|
|
2014
2015
|
function T(P) {
|
|
2015
|
-
var
|
|
2016
|
-
for (
|
|
2017
|
-
e[
|
|
2016
|
+
var L;
|
|
2017
|
+
for (L = r - 1; L >= 0; L -= 1)
|
|
2018
|
+
e[L].animation.destroy(P);
|
|
2018
2019
|
}
|
|
2019
|
-
function
|
|
2020
|
+
function F(P, L, _) {
|
|
2020
2021
|
var V = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), b, y = V.length;
|
|
2021
2022
|
for (b = 0; b < y; b += 1)
|
|
2022
2023
|
_ && V[b].setAttribute("data-bm-type", _), a(V[b], P);
|
|
2023
|
-
if (
|
|
2024
|
+
if (L && y === 0) {
|
|
2024
2025
|
_ || (_ = "svg");
|
|
2025
|
-
var
|
|
2026
|
-
|
|
2027
|
-
var
|
|
2028
|
-
|
|
2026
|
+
var M = document.getElementsByTagName("body")[0];
|
|
2027
|
+
M.innerText = "";
|
|
2028
|
+
var B = createTag("div");
|
|
2029
|
+
B.style.width = "100%", B.style.height = "100%", B.setAttribute("data-bm-type", _), M.appendChild(B), a(B, P);
|
|
2029
2030
|
}
|
|
2030
2031
|
}
|
|
2031
2032
|
function O() {
|
|
@@ -2042,22 +2043,22 @@ function requireLottie() {
|
|
|
2042
2043
|
function Q() {
|
|
2043
2044
|
n = !1, W();
|
|
2044
2045
|
}
|
|
2045
|
-
function H(P,
|
|
2046
|
+
function H(P, L) {
|
|
2046
2047
|
var _;
|
|
2047
2048
|
for (_ = 0; _ < r; _ += 1)
|
|
2048
|
-
e[_].animation.setVolume(P,
|
|
2049
|
+
e[_].animation.setVolume(P, L);
|
|
2049
2050
|
}
|
|
2050
2051
|
function J(P) {
|
|
2051
|
-
var
|
|
2052
|
-
for (
|
|
2053
|
-
e[
|
|
2052
|
+
var L;
|
|
2053
|
+
for (L = 0; L < r; L += 1)
|
|
2054
|
+
e[L].animation.mute(P);
|
|
2054
2055
|
}
|
|
2055
2056
|
function D(P) {
|
|
2056
|
-
var
|
|
2057
|
-
for (
|
|
2058
|
-
e[
|
|
2057
|
+
var L;
|
|
2058
|
+
for (L = 0; L < r; L += 1)
|
|
2059
|
+
e[L].animation.unmute(P);
|
|
2059
2060
|
}
|
|
2060
|
-
return t.registerAnimation = a, t.loadAnimation = C, t.setSpeed = E, t.setDirection = m, t.play = I, t.pause = u, t.stop = x, t.togglePause = k, t.searchAnimations =
|
|
2061
|
+
return t.registerAnimation = a, t.loadAnimation = C, t.setSpeed = E, t.setDirection = m, t.play = I, t.pause = u, t.stop = x, t.togglePause = k, t.searchAnimations = F, t.resize = O, t.goToAndStop = g, t.destroy = T, t.freeze = G, t.unfreeze = Q, t.setVolume = H, t.mute = J, t.unmute = D, t.getRegisteredAnimations = l, t;
|
|
2061
2062
|
}(), BezierFactory = function() {
|
|
2062
2063
|
var t = {};
|
|
2063
2064
|
t.getBezierEasing = A;
|
|
@@ -2066,8 +2067,8 @@ function requireLottie() {
|
|
|
2066
2067
|
var T = k || ("bez_" + d + "_" + u + "_" + g + "_" + x).replace(/\./g, "p");
|
|
2067
2068
|
if (e[T])
|
|
2068
2069
|
return e[T];
|
|
2069
|
-
var
|
|
2070
|
-
return e[T] =
|
|
2070
|
+
var F = new c([d, u, g, x]);
|
|
2071
|
+
return e[T] = F, F;
|
|
2071
2072
|
}
|
|
2072
2073
|
var r = 4, i = 1e-3, s = 1e-7, n = 10, o = 11, a = 1 / (o - 1), l = typeof Float32Array == "function";
|
|
2073
2074
|
function p(d, u) {
|
|
@@ -2086,18 +2087,18 @@ function requireLottie() {
|
|
|
2086
2087
|
return 3 * p(u, g) * d * d + 2 * S(u, g) * d + f(u);
|
|
2087
2088
|
}
|
|
2088
2089
|
function m(d, u, g, x, k) {
|
|
2089
|
-
var T,
|
|
2090
|
+
var T, F, O = 0;
|
|
2090
2091
|
do
|
|
2091
|
-
|
|
2092
|
+
F = u + (g - u) / 2, T = C(F, x, k) - d, T > 0 ? g = F : u = F;
|
|
2092
2093
|
while (Math.abs(T) > s && ++O < n);
|
|
2093
|
-
return
|
|
2094
|
+
return F;
|
|
2094
2095
|
}
|
|
2095
2096
|
function I(d, u, g, x) {
|
|
2096
2097
|
for (var k = 0; k < r; ++k) {
|
|
2097
2098
|
var T = E(u, g, x);
|
|
2098
2099
|
if (T === 0) return u;
|
|
2099
|
-
var
|
|
2100
|
-
u -=
|
|
2100
|
+
var F = C(u, g, x) - d;
|
|
2101
|
+
u -= F / T;
|
|
2101
2102
|
}
|
|
2102
2103
|
return u;
|
|
2103
2104
|
}
|
|
@@ -2122,10 +2123,10 @@ function requireLottie() {
|
|
|
2122
2123
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
2123
2124
|
*/
|
|
2124
2125
|
_getTForX: function(u) {
|
|
2125
|
-
for (var g = this._p[0], x = this._p[2], k = this._mSampleValues, T = 0,
|
|
2126
|
+
for (var g = this._p[0], x = this._p[2], k = this._mSampleValues, T = 0, F = 1, O = o - 1; F !== O && k[F] <= u; ++F)
|
|
2126
2127
|
T += a;
|
|
2127
|
-
--
|
|
2128
|
-
var W = (u - k[
|
|
2128
|
+
--F;
|
|
2129
|
+
var W = (u - k[F]) / (k[F + 1] - k[F]), G = T + W * a, Q = E(G, g, x);
|
|
2129
2130
|
return Q >= i ? I(u, G, g, x) : Q === 0 ? G : m(u, T, T + a, g, x);
|
|
2130
2131
|
}
|
|
2131
2132
|
}, t;
|
|
@@ -2184,15 +2185,15 @@ function requireLottie() {
|
|
|
2184
2185
|
function A(f, C, E, m, I, c, d, u, g) {
|
|
2185
2186
|
if (E === 0 && c === 0 && g === 0)
|
|
2186
2187
|
return e(f, C, m, I, d, u);
|
|
2187
|
-
var x = t.sqrt(t.pow(m - f, 2) + t.pow(I - C, 2) + t.pow(c - E, 2)), k = t.sqrt(t.pow(d - f, 2) + t.pow(u - C, 2) + t.pow(g - E, 2)), T = t.sqrt(t.pow(d - m, 2) + t.pow(u - I, 2) + t.pow(g - c, 2)),
|
|
2188
|
-
return x > k ? x > T ?
|
|
2188
|
+
var x = t.sqrt(t.pow(m - f, 2) + t.pow(I - C, 2) + t.pow(c - E, 2)), k = t.sqrt(t.pow(d - f, 2) + t.pow(u - C, 2) + t.pow(g - E, 2)), T = t.sqrt(t.pow(d - m, 2) + t.pow(u - I, 2) + t.pow(g - c, 2)), F;
|
|
2189
|
+
return x > k ? x > T ? F = x - k - T : F = T - k - x : T > k ? F = T - k - x : F = k - x - T, F > -1e-4 && F < 1e-4;
|
|
2189
2190
|
}
|
|
2190
2191
|
var r = /* @__PURE__ */ function() {
|
|
2191
2192
|
return function(f, C, E, m) {
|
|
2192
|
-
var I = getDefaultCurveSegments(), c, d, u, g, x, k = 0, T,
|
|
2193
|
+
var I = getDefaultCurveSegments(), c, d, u, g, x, k = 0, T, F = [], O = [], W = bezierLengthPool.newElement();
|
|
2193
2194
|
for (u = E.length, c = 0; c < I; c += 1) {
|
|
2194
2195
|
for (x = c / (I - 1), T = 0, d = 0; d < u; d += 1)
|
|
2195
|
-
g = bmPow(1 - x, 3) * f[d] + 3 * bmPow(1 - x, 2) * x * E[d] + 3 * (1 - x) * bmPow(x, 2) * m[d] + bmPow(x, 3) * C[d],
|
|
2196
|
+
g = bmPow(1 - x, 3) * f[d] + 3 * bmPow(1 - x, 2) * x * E[d] + 3 * (1 - x) * bmPow(x, 2) * m[d] + bmPow(x, 3) * C[d], F[d] = g, O[d] !== null && (T += bmPow(F[d] - O[d], 2)), O[d] = F[d];
|
|
2196
2197
|
T && (T = bmSqrt(T), k += T), W.percents[c] = x, W.lengths[c] = k;
|
|
2197
2198
|
}
|
|
2198
2199
|
return W.addedLength = k, W;
|
|
@@ -2215,15 +2216,15 @@ function requireLottie() {
|
|
|
2215
2216
|
return function(C, E, m, I) {
|
|
2216
2217
|
var c = (C[0] + "_" + C[1] + "_" + E[0] + "_" + E[1] + "_" + m[0] + "_" + m[1] + "_" + I[0] + "_" + I[1]).replace(/\./g, "p");
|
|
2217
2218
|
if (!f[c]) {
|
|
2218
|
-
var d = getDefaultCurveSegments(), u, g, x, k, T,
|
|
2219
|
+
var d = getDefaultCurveSegments(), u, g, x, k, T, F = 0, O, W, G = null;
|
|
2219
2220
|
C.length === 2 && (C[0] !== E[0] || C[1] !== E[1]) && e(C[0], C[1], E[0], E[1], C[0] + m[0], C[1] + m[1]) && e(C[0], C[1], E[0], E[1], E[0] + I[0], E[1] + I[1]) && (d = 2);
|
|
2220
2221
|
var Q = new s(d);
|
|
2221
2222
|
for (x = m.length, u = 0; u < d; u += 1) {
|
|
2222
2223
|
for (W = createSizedArray(x), T = u / (d - 1), O = 0, g = 0; g < x; g += 1)
|
|
2223
2224
|
k = bmPow(1 - T, 3) * C[g] + 3 * bmPow(1 - T, 2) * T * (C[g] + m[g]) + 3 * (1 - T) * bmPow(T, 2) * (E[g] + I[g]) + bmPow(T, 3) * E[g], W[g] = k, G !== null && (O += bmPow(W[g] - G[g], 2));
|
|
2224
|
-
O = bmSqrt(O),
|
|
2225
|
+
O = bmSqrt(O), F += O, Q.points[u] = new n(O, W), G = W;
|
|
2225
2226
|
}
|
|
2226
|
-
Q.segmentLength =
|
|
2227
|
+
Q.segmentLength = F, f[c] = Q;
|
|
2227
2228
|
}
|
|
2228
2229
|
return f[c];
|
|
2229
2230
|
};
|
|
@@ -2249,9 +2250,9 @@ function requireLottie() {
|
|
|
2249
2250
|
I < 0 ? I = 0 : I > 1 && (I = 1);
|
|
2250
2251
|
var u = a(I, d);
|
|
2251
2252
|
c = c > 1 ? 1 : c;
|
|
2252
|
-
var g = a(c, d), x, k = f.length, T = 1 - u,
|
|
2253
|
+
var g = a(c, d), x, k = f.length, T = 1 - u, F = 1 - g, O = T * T * T, W = u * T * T * 3, G = u * u * T * 3, Q = u * u * u, H = T * T * F, J = u * T * F + T * u * F + T * T * g, D = u * u * F + T * u * g + u * T * g, P = u * u * g, L = T * F * F, _ = u * F * F + T * g * F + T * F * g, V = u * g * F + T * g * g + u * F * g, b = u * g * g, y = F * F * F, M = g * F * F + F * g * F + F * F * g, B = g * g * F + F * g * g + g * F * g, R = g * g * g;
|
|
2253
2254
|
for (x = 0; x < k; x += 1)
|
|
2254
|
-
p[x * 4] = t.round((O * f[x] + W * E[x] + G * m[x] + Q * C[x]) * 1e3) / 1e3, p[x * 4 + 1] = t.round((H * f[x] + J * E[x] + D * m[x] + P * C[x]) * 1e3) / 1e3, p[x * 4 + 2] = t.round((
|
|
2255
|
+
p[x * 4] = t.round((O * f[x] + W * E[x] + G * m[x] + Q * C[x]) * 1e3) / 1e3, p[x * 4 + 1] = t.round((H * f[x] + J * E[x] + D * m[x] + P * C[x]) * 1e3) / 1e3, p[x * 4 + 2] = t.round((L * f[x] + _ * E[x] + V * m[x] + b * C[x]) * 1e3) / 1e3, p[x * 4 + 3] = t.round((y * f[x] + M * E[x] + B * m[x] + R * C[x]) * 1e3) / 1e3;
|
|
2255
2256
|
return p;
|
|
2256
2257
|
}
|
|
2257
2258
|
return {
|
|
@@ -2289,20 +2290,20 @@ function requireLottie() {
|
|
|
2289
2290
|
r[S] = g.points[x].point[S];
|
|
2290
2291
|
} else {
|
|
2291
2292
|
p.__fnct ? I = p.__fnct : (I = BezierFactory.getBezierEasing(a.o.x, a.o.y, a.i.x, a.i.y, a.n).get, p.__fnct = I), C = I((t - d) / (c - d));
|
|
2292
|
-
var k = g.segmentLength * C, T,
|
|
2293
|
+
var k = g.segmentLength * C, T, F = e.lastFrame < t && e._lastKeyframeIndex === s ? e._lastAddedLength : 0;
|
|
2293
2294
|
for (m = e.lastFrame < t && e._lastKeyframeIndex === s ? e._lastPoint : 0, o = !0, E = g.points.length; o; ) {
|
|
2294
|
-
if (
|
|
2295
|
+
if (F += g.points[m].partialLength, k === 0 || C === 0 || m === g.points.length - 1) {
|
|
2295
2296
|
for (f = g.points[m].point.length, S = 0; S < f; S += 1)
|
|
2296
2297
|
r[S] = g.points[m].point[S];
|
|
2297
2298
|
break;
|
|
2298
|
-
} else if (k >=
|
|
2299
|
-
for (T = (k -
|
|
2299
|
+
} else if (k >= F && k < F + g.points[m + 1].partialLength) {
|
|
2300
|
+
for (T = (k - F) / g.points[m + 1].partialLength, f = g.points[m].point.length, S = 0; S < f; S += 1)
|
|
2300
2301
|
r[S] = g.points[m].point[S] + (g.points[m + 1].point[S] - g.points[m].point[S]) * T;
|
|
2301
2302
|
break;
|
|
2302
2303
|
}
|
|
2303
2304
|
m < E - 1 ? m += 1 : o = !1;
|
|
2304
2305
|
}
|
|
2305
|
-
e._lastPoint = m, e._lastAddedLength =
|
|
2306
|
+
e._lastPoint = m, e._lastAddedLength = F - g.points[m].partialLength, e._lastKeyframeIndex = s;
|
|
2306
2307
|
}
|
|
2307
2308
|
} else {
|
|
2308
2309
|
var O, W, G, Q, H;
|
|
@@ -2538,14 +2539,14 @@ function requireLottie() {
|
|
|
2538
2539
|
}(), ShapePropertyFactory = function() {
|
|
2539
2540
|
var t = -999999;
|
|
2540
2541
|
function e(c, d, u) {
|
|
2541
|
-
var g = u.lastIndex, x, k, T,
|
|
2542
|
+
var g = u.lastIndex, x, k, T, F, O, W, G, Q, H, J = this.keyframes;
|
|
2542
2543
|
if (c < J[0].t - this.offsetTime)
|
|
2543
2544
|
x = J[0].s[0], T = !0, g = 0;
|
|
2544
2545
|
else if (c >= J[J.length - 1].t - this.offsetTime)
|
|
2545
2546
|
x = J[J.length - 1].s ? J[J.length - 1].s[0] : J[J.length - 2].e[0], T = !0;
|
|
2546
2547
|
else {
|
|
2547
|
-
for (var D = g, P = J.length - 1,
|
|
2548
|
-
D < P - 1 ? D += 1 :
|
|
2548
|
+
for (var D = g, P = J.length - 1, L = !0, _, V, b; L && (_ = J[D], V = J[D + 1], !(V.t - this.offsetTime > c)); )
|
|
2549
|
+
D < P - 1 ? D += 1 : L = !1;
|
|
2549
2550
|
if (b = this.keyframesMetadata[D] || {}, T = _.h === 1, g = D, !T) {
|
|
2550
2551
|
if (c >= V.t - this.offsetTime)
|
|
2551
2552
|
Q = 1;
|
|
@@ -2559,9 +2560,9 @@ function requireLottie() {
|
|
|
2559
2560
|
}
|
|
2560
2561
|
x = _.s[0];
|
|
2561
2562
|
}
|
|
2562
|
-
for (W = d._length, G = x.i[0].length, u.lastIndex = g,
|
|
2563
|
+
for (W = d._length, G = x.i[0].length, u.lastIndex = g, F = 0; F < W; F += 1)
|
|
2563
2564
|
for (O = 0; O < G; O += 1)
|
|
2564
|
-
H = T ? x.i[
|
|
2565
|
+
H = T ? x.i[F][O] : x.i[F][O] + (k.i[F][O] - x.i[F][O]) * Q, d.i[F][O] = H, H = T ? x.o[F][O] : x.o[F][O] + (k.o[F][O] - x.o[F][O]) * Q, d.o[F][O] = H, H = T ? x.v[F][O] : x.v[F][O] + (k.v[F][O] - x.v[F][O]) * Q, d.v[F][O] = H;
|
|
2565
2566
|
}
|
|
2566
2567
|
function A() {
|
|
2567
2568
|
var c = this.comp.renderedFrame - this.offsetTime, d = this.keyframes[0].t - this.offsetTime, u = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, g = this._caching.lastFrame;
|
|
@@ -2630,8 +2631,8 @@ function requireLottie() {
|
|
|
2630
2631
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
2631
2632
|
},
|
|
2632
2633
|
convertEllToPath: function() {
|
|
2633
|
-
var g = this.p.v[0], x = this.p.v[1], k = this.s.v[0] / 2, T = this.s.v[1] / 2,
|
|
2634
|
-
O.v[0][0] = g, O.v[0][1] = x - T, O.v[1][0] =
|
|
2634
|
+
var g = this.p.v[0], x = this.p.v[1], k = this.s.v[0] / 2, T = this.s.v[1] / 2, F = this.d !== 3, O = this.v;
|
|
2635
|
+
O.v[0][0] = g, O.v[0][1] = x - T, O.v[1][0] = F ? g + k : g - k, O.v[1][1] = x, O.v[2][0] = g, O.v[2][1] = x + T, O.v[3][0] = F ? g - k : g + k, O.v[3][1] = x, O.i[0][0] = F ? g - k * c : g + k * c, O.i[0][1] = x - T, O.i[1][0] = F ? g + k : g - k, O.i[1][1] = x - T * c, O.i[2][0] = F ? g + k * c : g - k * c, O.i[2][1] = x + T, O.i[3][0] = F ? g - k : g + k, O.i[3][1] = x + T * c, O.o[0][0] = F ? g + k * c : g - k * c, O.o[0][1] = x - T, O.o[1][0] = F ? g + k : g - k, O.o[1][1] = x + T * c, O.o[2][0] = F ? g - k * c : g + k * c, O.o[2][1] = x + T, O.o[3][0] = F ? g - k : g + k, O.o[3][1] = x - T * c;
|
|
2635
2636
|
}
|
|
2636
2637
|
}, extendPrototype([DynamicPropertyContainer], d), d;
|
|
2637
2638
|
}(), S = function() {
|
|
@@ -2644,20 +2645,20 @@ function requireLottie() {
|
|
|
2644
2645
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
2645
2646
|
},
|
|
2646
2647
|
convertStarToPath: function() {
|
|
2647
|
-
var u = Math.floor(this.pt.v) * 2, g = Math.PI * 2 / u, x = !0, k = this.or.v, T = this.ir.v,
|
|
2648
|
+
var u = Math.floor(this.pt.v) * 2, g = Math.PI * 2 / u, x = !0, k = this.or.v, T = this.ir.v, F = this.os.v, O = this.is.v, W = 2 * Math.PI * k / (u * 2), G = 2 * Math.PI * T / (u * 2), Q, H, J, D, P = -Math.PI / 2;
|
|
2648
2649
|
P += this.r.v;
|
|
2649
|
-
var
|
|
2650
|
+
var L = this.data.d === 3 ? -1 : 1;
|
|
2650
2651
|
for (this.v._length = 0, Q = 0; Q < u; Q += 1) {
|
|
2651
|
-
H = x ? k : T, J = x ?
|
|
2652
|
+
H = x ? k : T, J = x ? F : O, D = x ? W : G;
|
|
2652
2653
|
var _ = H * Math.cos(P), V = H * Math.sin(P), b = _ === 0 && V === 0 ? 0 : V / Math.sqrt(_ * _ + V * V), y = _ === 0 && V === 0 ? 0 : -_ / Math.sqrt(_ * _ + V * V);
|
|
2653
|
-
_ += +this.p.v[0], V += +this.p.v[1], this.v.setTripleAt(_, V, _ - b * D * J *
|
|
2654
|
+
_ += +this.p.v[0], V += +this.p.v[1], this.v.setTripleAt(_, V, _ - b * D * J * L, V - y * D * J * L, _ + b * D * J * L, V + y * D * J * L, Q, !0), x = !x, P += g * L;
|
|
2654
2655
|
}
|
|
2655
2656
|
},
|
|
2656
2657
|
convertPolygonToPath: function() {
|
|
2657
|
-
var u = Math.floor(this.pt.v), g = Math.PI * 2 / u, x = this.or.v, k = this.os.v, T = 2 * Math.PI * x / (u * 4),
|
|
2658
|
-
for (O += this.r.v, this.v._length = 0,
|
|
2658
|
+
var u = Math.floor(this.pt.v), g = Math.PI * 2 / u, x = this.or.v, k = this.os.v, T = 2 * Math.PI * x / (u * 4), F, O = -Math.PI * 0.5, W = this.data.d === 3 ? -1 : 1;
|
|
2659
|
+
for (O += this.r.v, this.v._length = 0, F = 0; F < u; F += 1) {
|
|
2659
2660
|
var G = x * Math.cos(O), Q = x * Math.sin(O), H = G === 0 && Q === 0 ? 0 : Q / Math.sqrt(G * G + Q * Q), J = G === 0 && Q === 0 ? 0 : -G / Math.sqrt(G * G + Q * Q);
|
|
2660
|
-
G += +this.p.v[0], Q += +this.p.v[1], this.v.setTripleAt(G, Q, G - H * T * k * W, Q - J * T * k * W, G + H * T * k * W, Q + J * T * k * W,
|
|
2661
|
+
G += +this.p.v[0], Q += +this.p.v[1], this.v.setTripleAt(G, Q, G - H * T * k * W, Q - J * T * k * W, G + H * T * k * W, Q + J * T * k * W, F, !0), O += g * W;
|
|
2661
2662
|
}
|
|
2662
2663
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
2663
2664
|
}
|
|
@@ -2668,8 +2669,8 @@ function requireLottie() {
|
|
|
2668
2669
|
}
|
|
2669
2670
|
return c.prototype = {
|
|
2670
2671
|
convertRectToPath: function() {
|
|
2671
|
-
var u = this.p.v[0], g = this.p.v[1], x = this.s.v[0] / 2, k = this.s.v[1] / 2, T = bmMin(x, k, this.r.v),
|
|
2672
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(u + x, g - k + T, u + x, g - k + T, u + x, g - k +
|
|
2672
|
+
var u = this.p.v[0], g = this.p.v[1], x = this.s.v[0] / 2, k = this.s.v[1] / 2, T = bmMin(x, k, this.r.v), F = T * (1 - roundCorner);
|
|
2673
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(u + x, g - k + T, u + x, g - k + T, u + x, g - k + F, 0, !0), this.v.setTripleAt(u + x, g + k - T, u + x, g + k - F, u + x, g + k - T, 1, !0), T !== 0 ? (this.v.setTripleAt(u + x - T, g + k, u + x - T, g + k, u + x - F, g + k, 2, !0), this.v.setTripleAt(u - x + T, g + k, u - x + F, g + k, u - x + T, g + k, 3, !0), this.v.setTripleAt(u - x, g + k - T, u - x, g + k - T, u - x, g + k - F, 4, !0), this.v.setTripleAt(u - x, g - k + T, u - x, g - k + F, u - x, g - k + T, 5, !0), this.v.setTripleAt(u - x + T, g - k, u - x + T, g - k, u - x + F, g - k, 6, !0), this.v.setTripleAt(u + x - T, g - k, u + x - F, g - k, u + x - T, g - k, 7, !0)) : (this.v.setTripleAt(u - x, g + k, u - x + F, g + k, u - x, g + k, 2), this.v.setTripleAt(u - x, g - k, u - x, g - k + F, u - x, g - k, 3))) : (this.v.setTripleAt(u + x, g - k + T, u + x, g - k + F, u + x, g - k + T, 0, !0), T !== 0 ? (this.v.setTripleAt(u + x - T, g - k, u + x - T, g - k, u + x - F, g - k, 1, !0), this.v.setTripleAt(u - x + T, g - k, u - x + F, g - k, u - x + T, g - k, 2, !0), this.v.setTripleAt(u - x, g - k + T, u - x, g - k + T, u - x, g - k + F, 3, !0), this.v.setTripleAt(u - x, g + k - T, u - x, g + k - F, u - x, g + k - T, 4, !0), this.v.setTripleAt(u - x + T, g + k, u - x + T, g + k, u - x + F, g + k, 5, !0), this.v.setTripleAt(u + x - T, g + k, u + x - F, g + k, u + x - T, g + k, 6, !0), this.v.setTripleAt(u + x, g + k - T, u + x, g + k - T, u + x, g + k - F, 7, !0)) : (this.v.setTripleAt(u - x, g - k, u - x + F, g - k, u - x, g - k, 1, !0), this.v.setTripleAt(u - x, g + k, u - x, g + k - F, u - x, g + k, 2, !0), this.v.setTripleAt(u + x, g + k, u + x - F, g + k, u + x, g + k, 3, !0)));
|
|
2673
2674
|
},
|
|
2674
2675
|
getValue: function() {
|
|
2675
2676
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
@@ -2744,18 +2745,18 @@ function requireLottie() {
|
|
|
2744
2745
|
function f(_, V, b) {
|
|
2745
2746
|
return !b && b !== 0 && (b = 1), _ === 1 && V === 1 && b === 1 ? this : this._t(_, 0, 0, 0, 0, V, 0, 0, 0, 0, b, 0, 0, 0, 0, 1);
|
|
2746
2747
|
}
|
|
2747
|
-
function C(_, V, b, y,
|
|
2748
|
-
return this.props[0] = _, this.props[1] = V, this.props[2] = b, this.props[3] = y, this.props[4] =
|
|
2748
|
+
function C(_, V, b, y, M, B, R, N, U, q, K, j, $, Z, te, Y) {
|
|
2749
|
+
return this.props[0] = _, this.props[1] = V, this.props[2] = b, this.props[3] = y, this.props[4] = M, this.props[5] = B, this.props[6] = R, this.props[7] = N, this.props[8] = U, this.props[9] = q, this.props[10] = K, this.props[11] = j, this.props[12] = $, this.props[13] = Z, this.props[14] = te, this.props[15] = Y, this;
|
|
2749
2750
|
}
|
|
2750
2751
|
function E(_, V, b) {
|
|
2751
2752
|
return b = b || 0, _ !== 0 || V !== 0 || b !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, _, V, b, 1) : this;
|
|
2752
2753
|
}
|
|
2753
|
-
function m(_, V, b, y,
|
|
2754
|
+
function m(_, V, b, y, M, B, R, N, U, q, K, j, $, Z, te, Y) {
|
|
2754
2755
|
var z = this.props;
|
|
2755
|
-
if (_ === 1 && V === 0 && b === 0 && y === 0 &&
|
|
2756
|
-
return z[12] = z[12] * _ + z[15] * $, z[13] = z[13] *
|
|
2756
|
+
if (_ === 1 && V === 0 && b === 0 && y === 0 && M === 0 && B === 1 && R === 0 && N === 0 && U === 0 && q === 0 && K === 1 && j === 0)
|
|
2757
|
+
return z[12] = z[12] * _ + z[15] * $, z[13] = z[13] * B + z[15] * Z, z[14] = z[14] * K + z[15] * te, z[15] *= Y, this._identityCalculated = !1, this;
|
|
2757
2758
|
var re = z[0], ie = z[1], se = z[2], oe = z[3], he = z[4], le = z[5], ee = z[6], X = z[7], ce = z[8], ae = z[9], pe = z[10], ne = z[11], de = z[12], Se = z[13], be = z[14], Ee = z[15];
|
|
2758
|
-
return z[0] = re * _ + ie *
|
|
2759
|
+
return z[0] = re * _ + ie * M + se * U + oe * $, z[1] = re * V + ie * B + se * q + oe * Z, z[2] = re * b + ie * R + se * K + oe * te, z[3] = re * y + ie * N + se * j + oe * Y, z[4] = he * _ + le * M + ee * U + X * $, z[5] = he * V + le * B + ee * q + X * Z, z[6] = he * b + le * R + ee * K + X * te, z[7] = he * y + le * N + ee * j + X * Y, z[8] = ce * _ + ae * M + pe * U + ne * $, z[9] = ce * V + ae * B + pe * q + ne * Z, z[10] = ce * b + ae * R + pe * K + ne * te, z[11] = ce * y + ae * N + pe * j + ne * Y, z[12] = de * _ + Se * M + be * U + Ee * $, z[13] = de * V + Se * B + be * q + Ee * Z, z[14] = de * b + Se * R + be * K + Ee * te, z[15] = de * y + Se * N + be * j + Ee * Y, this._identityCalculated = !1, this;
|
|
2759
2760
|
}
|
|
2760
2761
|
function I(_) {
|
|
2761
2762
|
var V = _.props;
|
|
@@ -2796,12 +2797,12 @@ function requireLottie() {
|
|
|
2796
2797
|
function T(_, V, b) {
|
|
2797
2798
|
return _ * this.props[1] + V * this.props[5] + b * this.props[9] + this.props[13];
|
|
2798
2799
|
}
|
|
2799
|
-
function
|
|
2800
|
+
function F(_, V, b) {
|
|
2800
2801
|
return _ * this.props[2] + V * this.props[6] + b * this.props[10] + this.props[14];
|
|
2801
2802
|
}
|
|
2802
2803
|
function O() {
|
|
2803
|
-
var _ = this.props[0] * this.props[5] - this.props[1] * this.props[4], V = this.props[5] / _, b = -this.props[1] / _, y = -this.props[4] / _,
|
|
2804
|
-
return N.props[0] = V, N.props[1] = b, N.props[4] = y, N.props[5] =
|
|
2804
|
+
var _ = this.props[0] * this.props[5] - this.props[1] * this.props[4], V = this.props[5] / _, b = -this.props[1] / _, y = -this.props[4] / _, M = this.props[0] / _, B = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / _, R = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / _, N = new Matrix();
|
|
2805
|
+
return N.props[0] = V, N.props[1] = b, N.props[4] = y, N.props[5] = M, N.props[12] = B, N.props[13] = R, N;
|
|
2805
2806
|
}
|
|
2806
2807
|
function W(_) {
|
|
2807
2808
|
var V = this.getInverseMatrix();
|
|
@@ -2818,8 +2819,8 @@ function requireLottie() {
|
|
|
2818
2819
|
if (this.isIdentity())
|
|
2819
2820
|
y[0] = _[0], y[1] = _[1], y[2] = V[0], y[3] = V[1], y[4] = b[0], y[5] = b[1];
|
|
2820
2821
|
else {
|
|
2821
|
-
var
|
|
2822
|
-
y[0] = _[0] *
|
|
2822
|
+
var M = this.props[0], B = this.props[1], R = this.props[4], N = this.props[5], U = this.props[12], q = this.props[13];
|
|
2823
|
+
y[0] = _[0] * M + _[1] * R + U, y[1] = _[0] * B + _[1] * N + q, y[2] = V[0] * M + V[1] * R + U, y[3] = V[0] * B + V[1] * N + q, y[4] = b[0] * M + b[1] * R + U, y[5] = b[0] * B + b[1] * N + q;
|
|
2823
2824
|
}
|
|
2824
2825
|
return y;
|
|
2825
2826
|
}
|
|
@@ -2842,12 +2843,12 @@ function requireLottie() {
|
|
|
2842
2843
|
var V = 1e4;
|
|
2843
2844
|
return _ < 1e-6 && _ > 0 || _ > -1e-6 && _ < 0 ? r(_ * V) / V : _;
|
|
2844
2845
|
}
|
|
2845
|
-
function
|
|
2846
|
-
var _ = this.props, V = P(_[0]), b = P(_[1]), y = P(_[4]),
|
|
2847
|
-
return "matrix(" + V + "," + b + "," + y + "," +
|
|
2846
|
+
function L() {
|
|
2847
|
+
var _ = this.props, V = P(_[0]), b = P(_[1]), y = P(_[4]), M = P(_[5]), B = P(_[12]), R = P(_[13]);
|
|
2848
|
+
return "matrix(" + V + "," + b + "," + y + "," + M + "," + B + "," + R + ")";
|
|
2848
2849
|
}
|
|
2849
2850
|
return function() {
|
|
2850
|
-
this.reset = i, this.rotate = s, this.rotateX = n, this.rotateY = o, this.rotateZ = a, this.skew = p, this.skewFromAxis = S, this.shear = l, this.scale = f, this.setTransform = C, this.translate = E, this.transform = m, this.multiply = I, this.applyToPoint = x, this.applyToX = k, this.applyToY = T, this.applyToZ =
|
|
2851
|
+
this.reset = i, this.rotate = s, this.rotateX = n, this.rotateY = o, this.rotateZ = a, this.skew = p, this.skewFromAxis = S, this.shear = l, this.scale = f, this.setTransform = C, this.translate = E, this.transform = m, this.multiply = I, this.applyToPoint = x, this.applyToX = k, this.applyToY = T, this.applyToZ = F, this.applyToPointArray = H, this.applyToTriplePoints = Q, this.applyToPointStringified = J, this.toCSS = D, this.to2dCSS = L, this.clone = u, this.cloneFromProps = g, this.equals = d, this.inversePoints = G, this.inversePoint = W, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = c, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
2851
2852
|
};
|
|
2852
2853
|
}();
|
|
2853
2854
|
function _typeof$3(t) {
|
|
@@ -3671,46 +3672,46 @@ function requireLottie() {
|
|
|
3671
3672
|
A = A.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]);
|
|
3672
3673
|
var r = 127988, i = 917631, s = 917601, n = 917626, o = 65039, a = 8205, l = 127462, p = 127487, S = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
3673
3674
|
function f(P) {
|
|
3674
|
-
var
|
|
3675
|
+
var L = P.split(","), _, V = L.length, b = [];
|
|
3675
3676
|
for (_ = 0; _ < V; _ += 1)
|
|
3676
|
-
|
|
3677
|
+
L[_] !== "sans-serif" && L[_] !== "monospace" && b.push(L[_]);
|
|
3677
3678
|
return b.join(",");
|
|
3678
3679
|
}
|
|
3679
|
-
function C(P,
|
|
3680
|
+
function C(P, L) {
|
|
3680
3681
|
var _ = createTag("span");
|
|
3681
|
-
_.setAttribute("aria-hidden", !0), _.style.fontFamily =
|
|
3682
|
+
_.setAttribute("aria-hidden", !0), _.style.fontFamily = L;
|
|
3682
3683
|
var V = createTag("span");
|
|
3683
3684
|
V.innerText = "giItT1WQy@!-/#", _.style.position = "absolute", _.style.left = "-10000px", _.style.top = "-10000px", _.style.fontSize = "300px", _.style.fontVariant = "normal", _.style.fontStyle = "normal", _.style.fontWeight = "normal", _.style.letterSpacing = "0", _.appendChild(V), document.body.appendChild(_);
|
|
3684
3685
|
var b = V.offsetWidth;
|
|
3685
|
-
return V.style.fontFamily = f(P) + ", " +
|
|
3686
|
+
return V.style.fontFamily = f(P) + ", " + L, {
|
|
3686
3687
|
node: V,
|
|
3687
3688
|
w: b,
|
|
3688
3689
|
parent: _
|
|
3689
3690
|
};
|
|
3690
3691
|
}
|
|
3691
3692
|
function E() {
|
|
3692
|
-
var P,
|
|
3693
|
-
for (P = 0; P <
|
|
3693
|
+
var P, L = this.fonts.length, _, V, b = L;
|
|
3694
|
+
for (P = 0; P < L; P += 1)
|
|
3694
3695
|
this.fonts[P].loaded ? b -= 1 : this.fonts[P].fOrigin === "n" || this.fonts[P].origin === 0 ? this.fonts[P].loaded = !0 : (_ = this.fonts[P].monoCase.node, V = this.fonts[P].monoCase.w, _.offsetWidth !== V ? (b -= 1, this.fonts[P].loaded = !0) : (_ = this.fonts[P].sansCase.node, V = this.fonts[P].sansCase.w, _.offsetWidth !== V && (b -= 1, this.fonts[P].loaded = !0)), this.fonts[P].loaded && (this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent), this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));
|
|
3695
3696
|
b !== 0 && Date.now() - this.initTime < t ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
3696
3697
|
}
|
|
3697
|
-
function m(P,
|
|
3698
|
-
var _ = document.body &&
|
|
3698
|
+
function m(P, L) {
|
|
3699
|
+
var _ = document.body && L ? "svg" : "canvas", V, b = getFontProperties(P);
|
|
3699
3700
|
if (_ === "svg") {
|
|
3700
3701
|
var y = createNS("text");
|
|
3701
|
-
y.style.fontSize = "100px", y.setAttribute("font-family", P.fFamily), y.setAttribute("font-style", b.style), y.setAttribute("font-weight", b.weight), y.textContent = "1", P.fClass ? (y.style.fontFamily = "inherit", y.setAttribute("class", P.fClass)) : y.style.fontFamily = P.fFamily,
|
|
3702
|
+
y.style.fontSize = "100px", y.setAttribute("font-family", P.fFamily), y.setAttribute("font-style", b.style), y.setAttribute("font-weight", b.weight), y.textContent = "1", P.fClass ? (y.style.fontFamily = "inherit", y.setAttribute("class", P.fClass)) : y.style.fontFamily = P.fFamily, L.appendChild(y), V = y;
|
|
3702
3703
|
} else {
|
|
3703
|
-
var
|
|
3704
|
-
|
|
3704
|
+
var M = new OffscreenCanvas(500, 500).getContext("2d");
|
|
3705
|
+
M.font = b.style + " " + b.weight + " 100px " + P.fFamily, V = M;
|
|
3705
3706
|
}
|
|
3706
|
-
function
|
|
3707
|
+
function B(R) {
|
|
3707
3708
|
return _ === "svg" ? (V.textContent = R, V.getComputedTextLength()) : V.measureText(R).width;
|
|
3708
3709
|
}
|
|
3709
3710
|
return {
|
|
3710
|
-
measureText:
|
|
3711
|
+
measureText: B
|
|
3711
3712
|
};
|
|
3712
3713
|
}
|
|
3713
|
-
function I(P,
|
|
3714
|
+
function I(P, L) {
|
|
3714
3715
|
if (!P) {
|
|
3715
3716
|
this.isLoaded = !0;
|
|
3716
3717
|
return;
|
|
@@ -3727,93 +3728,93 @@ function requireLottie() {
|
|
|
3727
3728
|
}
|
|
3728
3729
|
var _ = P.list, V, b = _.length, y = b;
|
|
3729
3730
|
for (V = 0; V < b; V += 1) {
|
|
3730
|
-
var
|
|
3731
|
+
var M = !0, B, R;
|
|
3731
3732
|
if (_[V].loaded = !1, _[V].monoCase = C(_[V].fFamily, "monospace"), _[V].sansCase = C(_[V].fFamily, "sans-serif"), !_[V].fPath)
|
|
3732
3733
|
_[V].loaded = !0, y -= 1;
|
|
3733
3734
|
else if (_[V].fOrigin === "p" || _[V].origin === 3) {
|
|
3734
|
-
if (
|
|
3735
|
+
if (B = document.querySelectorAll('style[f-forigin="p"][f-family="' + _[V].fFamily + '"], style[f-origin="3"][f-family="' + _[V].fFamily + '"]'), B.length > 0 && (M = !1), M) {
|
|
3735
3736
|
var N = createTag("style");
|
|
3736
|
-
N.setAttribute("f-forigin", _[V].fOrigin), N.setAttribute("f-origin", _[V].origin), N.setAttribute("f-family", _[V].fFamily), N.type = "text/css", N.innerText = "@font-face {font-family: " + _[V].fFamily + "; font-style: normal; src: url('" + _[V].fPath + "');}",
|
|
3737
|
+
N.setAttribute("f-forigin", _[V].fOrigin), N.setAttribute("f-origin", _[V].origin), N.setAttribute("f-family", _[V].fFamily), N.type = "text/css", N.innerText = "@font-face {font-family: " + _[V].fFamily + "; font-style: normal; src: url('" + _[V].fPath + "');}", L.appendChild(N);
|
|
3737
3738
|
}
|
|
3738
3739
|
} else if (_[V].fOrigin === "g" || _[V].origin === 1) {
|
|
3739
|
-
for (
|
|
3740
|
-
|
|
3741
|
-
if (
|
|
3740
|
+
for (B = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), R = 0; R < B.length; R += 1)
|
|
3741
|
+
B[R].href.indexOf(_[V].fPath) !== -1 && (M = !1);
|
|
3742
|
+
if (M) {
|
|
3742
3743
|
var U = createTag("link");
|
|
3743
3744
|
U.setAttribute("f-forigin", _[V].fOrigin), U.setAttribute("f-origin", _[V].origin), U.type = "text/css", U.rel = "stylesheet", U.href = _[V].fPath, document.body.appendChild(U);
|
|
3744
3745
|
}
|
|
3745
3746
|
} else if (_[V].fOrigin === "t" || _[V].origin === 2) {
|
|
3746
|
-
for (
|
|
3747
|
-
_[V].fPath ===
|
|
3748
|
-
if (
|
|
3747
|
+
for (B = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), R = 0; R < B.length; R += 1)
|
|
3748
|
+
_[V].fPath === B[R].src && (M = !1);
|
|
3749
|
+
if (M) {
|
|
3749
3750
|
var q = createTag("link");
|
|
3750
|
-
q.setAttribute("f-forigin", _[V].fOrigin), q.setAttribute("f-origin", _[V].origin), q.setAttribute("rel", "stylesheet"), q.setAttribute("href", _[V].fPath),
|
|
3751
|
+
q.setAttribute("f-forigin", _[V].fOrigin), q.setAttribute("f-origin", _[V].origin), q.setAttribute("rel", "stylesheet"), q.setAttribute("href", _[V].fPath), L.appendChild(q);
|
|
3751
3752
|
}
|
|
3752
3753
|
}
|
|
3753
|
-
_[V].helper = m(_[V],
|
|
3754
|
+
_[V].helper = m(_[V], L), _[V].cache = {}, this.fonts.push(_[V]);
|
|
3754
3755
|
}
|
|
3755
3756
|
y === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
3756
3757
|
}
|
|
3757
3758
|
function c(P) {
|
|
3758
3759
|
if (P) {
|
|
3759
3760
|
this.chars || (this.chars = []);
|
|
3760
|
-
var
|
|
3761
|
-
for (
|
|
3761
|
+
var L, _ = P.length, V, b = this.chars.length, y;
|
|
3762
|
+
for (L = 0; L < _; L += 1) {
|
|
3762
3763
|
for (V = 0, y = !1; V < b; )
|
|
3763
|
-
this.chars[V].style === P[
|
|
3764
|
-
y || (this.chars.push(P[
|
|
3764
|
+
this.chars[V].style === P[L].style && this.chars[V].fFamily === P[L].fFamily && this.chars[V].ch === P[L].ch && (y = !0), V += 1;
|
|
3765
|
+
y || (this.chars.push(P[L]), b += 1);
|
|
3765
3766
|
}
|
|
3766
3767
|
}
|
|
3767
3768
|
}
|
|
3768
|
-
function d(P,
|
|
3769
|
+
function d(P, L, _) {
|
|
3769
3770
|
for (var V = 0, b = this.chars.length; V < b; ) {
|
|
3770
|
-
if (this.chars[V].ch === P && this.chars[V].style ===
|
|
3771
|
+
if (this.chars[V].ch === P && this.chars[V].style === L && this.chars[V].fFamily === _)
|
|
3771
3772
|
return this.chars[V];
|
|
3772
3773
|
V += 1;
|
|
3773
3774
|
}
|
|
3774
|
-
return (typeof P == "string" && P.charCodeAt(0) !== 13 || !P) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", P,
|
|
3775
|
+
return (typeof P == "string" && P.charCodeAt(0) !== 13 || !P) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", P, L, _)), e;
|
|
3775
3776
|
}
|
|
3776
|
-
function u(P,
|
|
3777
|
-
var V = this.getFontByName(
|
|
3777
|
+
function u(P, L, _) {
|
|
3778
|
+
var V = this.getFontByName(L), b = P;
|
|
3778
3779
|
if (!V.cache[b]) {
|
|
3779
3780
|
var y = V.helper;
|
|
3780
3781
|
if (P === " ") {
|
|
3781
|
-
var
|
|
3782
|
-
V.cache[b] = (
|
|
3782
|
+
var M = y.measureText("|" + P + "|"), B = y.measureText("||");
|
|
3783
|
+
V.cache[b] = (M - B) / 100;
|
|
3783
3784
|
} else
|
|
3784
3785
|
V.cache[b] = y.measureText(P) / 100;
|
|
3785
3786
|
}
|
|
3786
3787
|
return V.cache[b] * _;
|
|
3787
3788
|
}
|
|
3788
3789
|
function g(P) {
|
|
3789
|
-
for (var
|
|
3790
|
-
if (this.fonts[
|
|
3791
|
-
return this.fonts[
|
|
3792
|
-
|
|
3790
|
+
for (var L = 0, _ = this.fonts.length; L < _; ) {
|
|
3791
|
+
if (this.fonts[L].fName === P)
|
|
3792
|
+
return this.fonts[L];
|
|
3793
|
+
L += 1;
|
|
3793
3794
|
}
|
|
3794
3795
|
return this.fonts[0];
|
|
3795
3796
|
}
|
|
3796
3797
|
function x(P) {
|
|
3797
|
-
var
|
|
3798
|
+
var L = 0, _ = P.charCodeAt(0);
|
|
3798
3799
|
if (_ >= 55296 && _ <= 56319) {
|
|
3799
3800
|
var V = P.charCodeAt(1);
|
|
3800
|
-
V >= 56320 && V <= 57343 && (
|
|
3801
|
+
V >= 56320 && V <= 57343 && (L = (_ - 55296) * 1024 + V - 56320 + 65536);
|
|
3801
3802
|
}
|
|
3802
|
-
return
|
|
3803
|
+
return L;
|
|
3803
3804
|
}
|
|
3804
|
-
function k(P,
|
|
3805
|
-
var _ = P.toString(16) +
|
|
3805
|
+
function k(P, L) {
|
|
3806
|
+
var _ = P.toString(16) + L.toString(16);
|
|
3806
3807
|
return S.indexOf(_) !== -1;
|
|
3807
3808
|
}
|
|
3808
3809
|
function T(P) {
|
|
3809
3810
|
return P === a;
|
|
3810
3811
|
}
|
|
3811
|
-
function
|
|
3812
|
+
function F(P) {
|
|
3812
3813
|
return P === o;
|
|
3813
3814
|
}
|
|
3814
3815
|
function O(P) {
|
|
3815
|
-
var
|
|
3816
|
-
return
|
|
3816
|
+
var L = x(P);
|
|
3817
|
+
return L >= l && L <= p;
|
|
3817
3818
|
}
|
|
3818
3819
|
function W(P) {
|
|
3819
3820
|
return O(P.substr(0, 2)) && O(P.substr(2, 2));
|
|
@@ -3821,17 +3822,17 @@ function requireLottie() {
|
|
|
3821
3822
|
function G(P) {
|
|
3822
3823
|
return A.indexOf(P) !== -1;
|
|
3823
3824
|
}
|
|
3824
|
-
function Q(P,
|
|
3825
|
-
var _ = x(P.substr(
|
|
3825
|
+
function Q(P, L) {
|
|
3826
|
+
var _ = x(P.substr(L, 2));
|
|
3826
3827
|
if (_ !== r)
|
|
3827
3828
|
return !1;
|
|
3828
3829
|
var V = 0;
|
|
3829
|
-
for (
|
|
3830
|
-
if (_ = x(P.substr(
|
|
3830
|
+
for (L += 2; V < 5; ) {
|
|
3831
|
+
if (_ = x(P.substr(L, 2)), _ < s || _ > n)
|
|
3831
3832
|
return !1;
|
|
3832
|
-
V += 1,
|
|
3833
|
+
V += 1, L += 2;
|
|
3833
3834
|
}
|
|
3834
|
-
return x(P.substr(
|
|
3835
|
+
return x(P.substr(L, 2)) === i;
|
|
3835
3836
|
}
|
|
3836
3837
|
function H() {
|
|
3837
3838
|
this.isLoaded = !0;
|
|
@@ -3839,7 +3840,7 @@ function requireLottie() {
|
|
|
3839
3840
|
var J = function() {
|
|
3840
3841
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
3841
3842
|
};
|
|
3842
|
-
J.isModifier = k, J.isZeroWidthJoiner = T, J.isFlagEmoji = W, J.isRegionalCode = O, J.isCombinedCharacter = G, J.isRegionalFlag = Q, J.isVariationSelector =
|
|
3843
|
+
J.isModifier = k, J.isZeroWidthJoiner = T, J.isFlagEmoji = W, J.isRegionalCode = O, J.isCombinedCharacter = G, J.isRegionalFlag = Q, J.isVariationSelector = F, J.BLACK_FLAG_CODE_POINT = r;
|
|
3843
3844
|
var D = {
|
|
3844
3845
|
addChars: c,
|
|
3845
3846
|
addFonts: I,
|
|
@@ -4799,14 +4800,14 @@ function requireLottie() {
|
|
|
4799
4800
|
function s() {
|
|
4800
4801
|
}
|
|
4801
4802
|
function n(S, f, C) {
|
|
4802
|
-
var E, m, I, c, d, u, g = f.styles.length, x = f.lvl, k, T,
|
|
4803
|
+
var E, m, I, c, d, u, g = f.styles.length, x = f.lvl, k, T, F, O;
|
|
4803
4804
|
for (u = 0; u < g; u += 1) {
|
|
4804
4805
|
if (c = f.sh._mdf || C, f.styles[u].lvl < x) {
|
|
4805
|
-
for (T = e.reset(),
|
|
4806
|
-
c = f.transformers[O].mProps._mdf || c,
|
|
4806
|
+
for (T = e.reset(), F = x - f.styles[u].lvl, O = f.transformers.length - 1; !c && F > 0; )
|
|
4807
|
+
c = f.transformers[O].mProps._mdf || c, F -= 1, O -= 1;
|
|
4807
4808
|
if (c)
|
|
4808
|
-
for (
|
|
4809
|
-
T.multiply(f.transformers[O].mProps.v),
|
|
4809
|
+
for (F = x - f.styles[u].lvl, O = f.transformers.length - 1; F > 0; )
|
|
4810
|
+
T.multiply(f.transformers[O].mProps.v), F -= 1, O -= 1;
|
|
4810
4811
|
} else
|
|
4811
4812
|
T = t;
|
|
4812
4813
|
if (k = f.sh.paths, m = k._length, c) {
|
|
@@ -4835,17 +4836,17 @@ function requireLottie() {
|
|
|
4835
4836
|
var u = S.t === 1 ? "x1" : "cx", g = u === "x1" ? "y1" : "cy";
|
|
4836
4837
|
E.setAttribute(u, I[0]), E.setAttribute(g, I[1]), m && !f.g._collapsable && (f.of.setAttribute(u, I[0]), f.of.setAttribute(g, I[1]));
|
|
4837
4838
|
}
|
|
4838
|
-
var x, k, T,
|
|
4839
|
+
var x, k, T, F;
|
|
4839
4840
|
if (f.g._cmdf || C) {
|
|
4840
4841
|
x = f.cst;
|
|
4841
4842
|
var O = f.g.c;
|
|
4842
4843
|
for (T = x.length, k = 0; k < T; k += 1)
|
|
4843
|
-
|
|
4844
|
+
F = x[k], F.setAttribute("offset", O[k * 4] + "%"), F.setAttribute("stop-color", "rgb(" + O[k * 4 + 1] + "," + O[k * 4 + 2] + "," + O[k * 4 + 3] + ")");
|
|
4844
4845
|
}
|
|
4845
4846
|
if (m && (f.g._omdf || C)) {
|
|
4846
4847
|
var W = f.g.o;
|
|
4847
4848
|
for (f.g._collapsable ? x = f.cst : x = f.ost, T = x.length, k = 0; k < T; k += 1)
|
|
4848
|
-
|
|
4849
|
+
F = x[k], f.g._collapsable || F.setAttribute("offset", W[k * 2] + "%"), F.setAttribute("stop-opacity", W[k * 2 + 1]);
|
|
4849
4850
|
}
|
|
4850
4851
|
if (S.t === 1)
|
|
4851
4852
|
(f.e._mdf || C) && (E.setAttribute("x2", c[0]), E.setAttribute("y2", c[1]), m && !f.g._collapsable && (f.of.setAttribute("x2", c[0]), f.of.setAttribute("y2", c[1])));
|
|
@@ -5049,12 +5050,12 @@ function requireLottie() {
|
|
|
5049
5050
|
t.fWeight = x.weight, t.fStyle = x.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), s = t.finalText.length, t.finalLineHeight = t.lh;
|
|
5050
5051
|
var k = t.tr / 1e3 * t.finalSize, T;
|
|
5051
5052
|
if (t.sz)
|
|
5052
|
-
for (var
|
|
5053
|
+
for (var F = !0, O = t.sz[0], W = t.sz[1], G, Q; F; ) {
|
|
5053
5054
|
Q = this.buildFinalText(t.t), G = 0, E = 0, s = Q.length, k = t.tr / 1e3 * t.finalSize;
|
|
5054
5055
|
var H = -1;
|
|
5055
5056
|
for (i = 0; i < s; i += 1)
|
|
5056
5057
|
T = Q[i].charCodeAt(0), n = !1, Q[i] === " " ? H = i : (T === 13 || T === 3) && (E = 0, n = !0, G += t.finalLineHeight || t.finalSize * 1.2), e.chars ? (u = e.getCharData(Q[i], d.fStyle, d.fFamily), g = n ? 0 : u.w * t.finalSize / 100) : g = e.measureText(Q[i], t.f, t.finalSize), E + g > O && Q[i] !== " " ? (H === -1 ? s += 1 : i = H, G += t.finalLineHeight || t.finalSize * 1.2, Q.splice(i, H === i ? 1 : 0, "\r"), H = -1, E = 0) : (E += g, E += k);
|
|
5057
|
-
G += d.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && W < G ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = Q, s = t.finalText.length,
|
|
5058
|
+
G += d.ascent * t.finalSize / 100, this.canResize && t.finalSize > this.minimumFontSize && W < G ? (t.finalSize -= 1, t.finalLineHeight = t.finalSize * t.lh / t.s) : (t.finalText = Q, s = t.finalText.length, F = !1);
|
|
5058
5059
|
}
|
|
5059
5060
|
E = -k, g = 0;
|
|
5060
5061
|
var J = 0, D;
|
|
@@ -5096,17 +5097,17 @@ function requireLottie() {
|
|
|
5096
5097
|
t.justifyOffset = 0;
|
|
5097
5098
|
}
|
|
5098
5099
|
t.lineWidths = C;
|
|
5099
|
-
var P = A.a,
|
|
5100
|
+
var P = A.a, L, _;
|
|
5100
5101
|
c = P.length;
|
|
5101
5102
|
var V, b, y = [];
|
|
5102
5103
|
for (I = 0; I < c; I += 1) {
|
|
5103
|
-
for (
|
|
5104
|
-
_ = r[i], _.anIndexes[I] = b, (V == 1 && _.val !== "" || V == 2 && _.val !== "" && _.val !== " " || V == 3 && (_.n || _.val == " " || i == s - 1) || V == 4 && (_.n || i == s - 1)) && (
|
|
5104
|
+
for (L = P[I], L.a.sc && (t.strokeColorAnim = !0), L.a.sw && (t.strokeWidthAnim = !0), (L.a.fc || L.a.fh || L.a.fs || L.a.fb) && (t.fillColorAnim = !0), b = 0, V = L.s.b, i = 0; i < s; i += 1)
|
|
5105
|
+
_ = r[i], _.anIndexes[I] = b, (V == 1 && _.val !== "" || V == 2 && _.val !== "" && _.val !== " " || V == 3 && (_.n || _.val == " " || i == s - 1) || V == 4 && (_.n || i == s - 1)) && (L.s.rn === 1 && y.push(b), b += 1);
|
|
5105
5106
|
A.a[I].s.totalChars = b;
|
|
5106
|
-
var
|
|
5107
|
-
if (
|
|
5107
|
+
var M = -1, B;
|
|
5108
|
+
if (L.s.rn === 1)
|
|
5108
5109
|
for (i = 0; i < s; i += 1)
|
|
5109
|
-
_ = r[i],
|
|
5110
|
+
_ = r[i], M != _.anIndexes[I] && (M = _.anIndexes[I], B = y.splice(Math.floor(Math.random() * y.length), 1)[0]), _.anIndexes[I] = B;
|
|
5110
5111
|
}
|
|
5111
5112
|
t.yOffset = t.finalLineHeight || t.finalSize * 1.2, t.ls = t.ls || 0, t.ascent = d.ascent * t.finalSize / 100;
|
|
5112
5113
|
}, TextProperty.prototype.updateDocumentData = function(t, e) {
|
|
@@ -5229,7 +5230,7 @@ function requireLottie() {
|
|
|
5229
5230
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
5230
5231
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
5231
5232
|
this._isFirstFrame = !1;
|
|
5232
|
-
var A = this._moreOptions.alignment.v, r = this._animatorsData, i = this._textData, s = this.mHelper, n = this._renderType, o = this.renderedLetters.length, a, l, p, S, f = t.l, C, E, m, I, c, d, u, g, x, k, T,
|
|
5233
|
+
var A = this._moreOptions.alignment.v, r = this._animatorsData, i = this._textData, s = this.mHelper, n = this._renderType, o = this.renderedLetters.length, a, l, p, S, f = t.l, C, E, m, I, c, d, u, g, x, k, T, F, O, W, G;
|
|
5233
5234
|
if (this._hasMaskedPath) {
|
|
5234
5235
|
if (G = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
5235
5236
|
var Q = G.v;
|
|
@@ -5238,9 +5239,9 @@ function requireLottie() {
|
|
|
5238
5239
|
segments: []
|
|
5239
5240
|
}, S = Q._length - 1;
|
|
5240
5241
|
var H;
|
|
5241
|
-
for (
|
|
5242
|
-
H = bez.buildBezierData(Q.v[p], Q.v[p + 1], [Q.o[p][0] - Q.v[p][0], Q.o[p][1] - Q.v[p][1]], [Q.i[p + 1][0] - Q.v[p + 1][0], Q.i[p + 1][1] - Q.v[p + 1][1]]), C.tLength += H.segmentLength, C.segments.push(H),
|
|
5243
|
-
p = S, G.v.c && (H = bez.buildBezierData(Q.v[p], Q.v[0], [Q.o[p][0] - Q.v[p][0], Q.o[p][1] - Q.v[p][1]], [Q.i[0][0] - Q.v[0][0], Q.i[0][1] - Q.v[0][1]]), C.tLength += H.segmentLength, C.segments.push(H),
|
|
5242
|
+
for (F = 0, p = 0; p < S; p += 1)
|
|
5243
|
+
H = bez.buildBezierData(Q.v[p], Q.v[p + 1], [Q.o[p][0] - Q.v[p][0], Q.o[p][1] - Q.v[p][1]], [Q.i[p + 1][0] - Q.v[p + 1][0], Q.i[p + 1][1] - Q.v[p + 1][1]]), C.tLength += H.segmentLength, C.segments.push(H), F += H.segmentLength;
|
|
5244
|
+
p = S, G.v.c && (H = bez.buildBezierData(Q.v[p], Q.v[0], [Q.o[p][0] - Q.v[p][0], Q.o[p][1] - Q.v[p][1]], [Q.i[0][0] - Q.v[0][0], Q.i[0][1] - Q.v[0][1]]), C.tLength += H.segmentLength, C.segments.push(H), F += H.segmentLength), this._pathData.pi = C;
|
|
5244
5245
|
}
|
|
5245
5246
|
if (C = this._pathData.pi, E = this._pathData.f.v, u = 0, d = 1, I = 0, c = !0, k = C.segments, E < 0 && G.v.c)
|
|
5246
5247
|
for (C.tLength < Math.abs(E) && (E = -Math.abs(E) % C.tLength), u = k.length - 1, x = k[u].points, d = x.length - 1; E < 0; )
|
|
@@ -5248,9 +5249,9 @@ function requireLottie() {
|
|
|
5248
5249
|
x = k[u].points, g = x[d - 1], m = x[d], T = m.partialLength;
|
|
5249
5250
|
}
|
|
5250
5251
|
S = f.length, a = 0, l = 0;
|
|
5251
|
-
var J = t.finalSize * 1.2 * 0.714, D = !0, P,
|
|
5252
|
+
var J = t.finalSize * 1.2 * 0.714, D = !0, P, L, _, V, b;
|
|
5252
5253
|
V = r.length;
|
|
5253
|
-
var y,
|
|
5254
|
+
var y, M = -1, B, R, N, U = E, q = u, K = d, j = -1, $, Z, te, Y, z, re, ie, se, oe = "", he = this.defaultPropsArray, le;
|
|
5254
5255
|
if (t.j === 2 || t.j === 1) {
|
|
5255
5256
|
var ee = 0, X = 0, ce = t.j === 2 ? -0.5 : -1, ae = 0, pe = !0;
|
|
5256
5257
|
for (p = 0; p < S; p += 1)
|
|
@@ -5260,7 +5261,7 @@ function requireLottie() {
|
|
|
5260
5261
|
ee = 0, pe = !0;
|
|
5261
5262
|
} else {
|
|
5262
5263
|
for (_ = 0; _ < V; _ += 1)
|
|
5263
|
-
P = r[_].a, P.t.propType && (pe && t.j === 2 && (X += P.t.v * ce),
|
|
5264
|
+
P = r[_].a, P.t.propType && (pe && t.j === 2 && (X += P.t.v * ce), L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), y.length ? ee += P.t.v * y[0] * ce : ee += P.t.v * y * ce);
|
|
5264
5265
|
pe = !1;
|
|
5265
5266
|
}
|
|
5266
5267
|
for (ee && (ee += X); ae < p; )
|
|
@@ -5274,31 +5275,31 @@ function requireLottie() {
|
|
|
5274
5275
|
if (j !== f[p].line) {
|
|
5275
5276
|
switch (t.j) {
|
|
5276
5277
|
case 1:
|
|
5277
|
-
E +=
|
|
5278
|
+
E += F - t.lineWidths[f[p].line];
|
|
5278
5279
|
break;
|
|
5279
5280
|
case 2:
|
|
5280
|
-
E += (
|
|
5281
|
+
E += (F - t.lineWidths[f[p].line]) / 2;
|
|
5281
5282
|
break;
|
|
5282
5283
|
}
|
|
5283
5284
|
j = f[p].line;
|
|
5284
5285
|
}
|
|
5285
|
-
|
|
5286
|
+
M !== f[p].ind && (f[M] && (E += f[M].extra), E += f[p].an / 2, M = f[p].ind), E += A[0] * f[p].an * 5e-3;
|
|
5286
5287
|
var ne = 0;
|
|
5287
5288
|
for (_ = 0; _ < V; _ += 1)
|
|
5288
|
-
P = r[_].a, P.p.propType && (
|
|
5289
|
-
for (c = !0, this._pathData.a.v && (E = f[0].an * 0.5 + (
|
|
5289
|
+
P = r[_].a, P.p.propType && (L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), y.length ? ne += P.p.v[0] * y[0] : ne += P.p.v[0] * y), P.a.propType && (L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), y.length ? ne += P.a.v[0] * y[0] : ne += P.a.v[0] * y);
|
|
5290
|
+
for (c = !0, this._pathData.a.v && (E = f[0].an * 0.5 + (F - this._pathData.f.v - f[0].an * 0.5 - f[f.length - 1].an * 0.5) * M / (S - 1), E += this._pathData.f.v); c; )
|
|
5290
5291
|
I + T >= E + ne || !x ? (O = (E + ne - I) / m.partialLength, R = g.point[0] + (m.point[0] - g.point[0]) * O, N = g.point[1] + (m.point[1] - g.point[1]) * O, s.translate(-A[0] * f[p].an * 5e-3, -(A[1] * J) * 0.01), c = !1) : x && (I += m.partialLength, d += 1, d >= x.length && (d = 0, u += 1, k[u] ? x = k[u].points : G.v.c ? (d = 0, u = 0, x = k[u].points) : (I -= m.partialLength, x = null)), x && (g = m, m = x[d], T = m.partialLength));
|
|
5291
|
-
|
|
5292
|
+
B = f[p].an / 2 - f[p].add, s.translate(-B, 0, 0);
|
|
5292
5293
|
} else
|
|
5293
|
-
|
|
5294
|
+
B = f[p].an / 2 - f[p].add, s.translate(-B, 0, 0), s.translate(-A[0] * f[p].an * 5e-3, -A[1] * J * 0.01, 0);
|
|
5294
5295
|
for (_ = 0; _ < V; _ += 1)
|
|
5295
|
-
P = r[_].a, P.t.propType && (
|
|
5296
|
+
P = r[_].a, P.t.propType && (L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), (a !== 0 || t.j !== 0) && (this._hasMaskedPath ? y.length ? E += P.t.v * y[0] : E += P.t.v * y : y.length ? a += P.t.v * y[0] : a += P.t.v * y));
|
|
5296
5297
|
for (t.strokeWidthAnim && (te = t.sw || 0), t.strokeColorAnim && (t.sc ? Z = [t.sc[0], t.sc[1], t.sc[2]] : Z = [0, 0, 0]), t.fillColorAnim && t.fc && (Y = [t.fc[0], t.fc[1], t.fc[2]]), _ = 0; _ < V; _ += 1)
|
|
5297
|
-
P = r[_].a, P.a.propType && (
|
|
5298
|
+
P = r[_].a, P.a.propType && (L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), y.length ? s.translate(-P.a.v[0] * y[0], -P.a.v[1] * y[1], P.a.v[2] * y[2]) : s.translate(-P.a.v[0] * y, -P.a.v[1] * y, P.a.v[2] * y));
|
|
5298
5299
|
for (_ = 0; _ < V; _ += 1)
|
|
5299
|
-
P = r[_].a, P.s.propType && (
|
|
5300
|
+
P = r[_].a, P.s.propType && (L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), y.length ? s.scale(1 + (P.s.v[0] - 1) * y[0], 1 + (P.s.v[1] - 1) * y[1], 1) : s.scale(1 + (P.s.v[0] - 1) * y, 1 + (P.s.v[1] - 1) * y, 1));
|
|
5300
5301
|
for (_ = 0; _ < V; _ += 1) {
|
|
5301
|
-
if (P = r[_].a,
|
|
5302
|
+
if (P = r[_].a, L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), P.sk.propType && (y.length ? s.skewFromAxis(-P.sk.v * y[0], P.sa.v * y[1]) : s.skewFromAxis(-P.sk.v * y, P.sa.v * y)), P.r.propType && (y.length ? s.rotateZ(-P.r.v * y[2]) : s.rotateZ(-P.r.v * y)), P.ry.propType && (y.length ? s.rotateY(P.ry.v * y[1]) : s.rotateY(P.ry.v * y)), P.rx.propType && (y.length ? s.rotateX(P.rx.v * y[0]) : s.rotateX(P.rx.v * y)), P.o.propType && (y.length ? $ += (P.o.v * y[0] - $) * y[0] : $ += (P.o.v * y - $) * y), t.strokeWidthAnim && P.sw.propType && (y.length ? te += P.sw.v * y[0] : te += P.sw.v * y), t.strokeColorAnim && P.sc.propType)
|
|
5302
5303
|
for (z = 0; z < 3; z += 1)
|
|
5303
5304
|
y.length ? Z[z] += (P.sc.v[z] - Z[z]) * y[0] : Z[z] += (P.sc.v[z] - Z[z]) * y;
|
|
5304
5305
|
if (t.fillColorAnim && t.fc) {
|
|
@@ -5309,14 +5310,14 @@ function requireLottie() {
|
|
|
5309
5310
|
}
|
|
5310
5311
|
}
|
|
5311
5312
|
for (_ = 0; _ < V; _ += 1)
|
|
5312
|
-
P = r[_].a, P.p.propType && (
|
|
5313
|
+
P = r[_].a, P.p.propType && (L = r[_].s, y = L.getMult(f[p].anIndexes[_], i.a[_].s.totalChars), this._hasMaskedPath ? y.length ? s.translate(0, P.p.v[1] * y[0], -P.p.v[2] * y[1]) : s.translate(0, P.p.v[1] * y, -P.p.v[2] * y) : y.length ? s.translate(P.p.v[0] * y[0], P.p.v[1] * y[1], -P.p.v[2] * y[2]) : s.translate(P.p.v[0] * y, P.p.v[1] * y, -P.p.v[2] * y));
|
|
5313
5314
|
if (t.strokeWidthAnim && (re = te < 0 ? 0 : te), t.strokeColorAnim && (ie = "rgb(" + Math.round(Z[0] * 255) + "," + Math.round(Z[1] * 255) + "," + Math.round(Z[2] * 255) + ")"), t.fillColorAnim && t.fc && (se = "rgb(" + Math.round(Y[0] * 255) + "," + Math.round(Y[1] * 255) + "," + Math.round(Y[2] * 255) + ")"), this._hasMaskedPath) {
|
|
5314
5315
|
if (s.translate(0, -t.ls), s.translate(0, A[1] * J * 0.01 + l, 0), this._pathData.p.v) {
|
|
5315
5316
|
W = (m.point[1] - g.point[1]) / (m.point[0] - g.point[0]);
|
|
5316
5317
|
var de = Math.atan(W) * 180 / Math.PI;
|
|
5317
5318
|
m.point[0] < g.point[0] && (de += 180), s.rotate(-de * Math.PI / 180);
|
|
5318
5319
|
}
|
|
5319
|
-
s.translate(R, N, 0), E -= A[0] * f[p].an * 5e-3, f[p + 1] &&
|
|
5320
|
+
s.translate(R, N, 0), E -= A[0] * f[p].an * 5e-3, f[p + 1] && M !== f[p + 1].ind && (E += f[p].an / 2, E += t.tr * 1e-3 * t.finalSize);
|
|
5320
5321
|
} else {
|
|
5321
5322
|
switch (s.translate(a, l, 0), t.ps && s.translate(t.ps[0], t.ps[1] + t.ascent, 0), t.j) {
|
|
5322
5323
|
case 1:
|
|
@@ -5326,7 +5327,7 @@ function requireLottie() {
|
|
|
5326
5327
|
s.translate(f[p].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[f[p].line]) / 2, 0, 0);
|
|
5327
5328
|
break;
|
|
5328
5329
|
}
|
|
5329
|
-
s.translate(0, -t.ls), s.translate(
|
|
5330
|
+
s.translate(0, -t.ls), s.translate(B, 0, 0), s.translate(A[0] * f[p].an * 5e-3, A[1] * J * 0.01, 0), a += f[p].l + t.tr * 1e-3 * t.finalSize;
|
|
5330
5331
|
}
|
|
5331
5332
|
n === "html" ? oe = s.toCSS() : n === "svg" ? oe = s.to2dCSS() : he = [s.props[0], s.props[1], s.props[2], s.props[3], s.props[4], s.props[5], s.props[6], s.props[7], s.props[8], s.props[9], s.props[10], s.props[11], s.props[12], s.props[13], s.props[14], s.props[15]], le = $;
|
|
5332
5333
|
}
|
|
@@ -5454,8 +5455,8 @@ function requireLottie() {
|
|
|
5454
5455
|
g.data && g.data.shapes && (T = this.buildShapeData(g.data, A.finalSize)), k = new SVGShapeElement(T, this.globalData, this);
|
|
5455
5456
|
}
|
|
5456
5457
|
if (this.textSpans[t].glyph) {
|
|
5457
|
-
var
|
|
5458
|
-
this.textSpans[t].childSpan.removeChild(
|
|
5458
|
+
var F = this.textSpans[t].glyph;
|
|
5459
|
+
this.textSpans[t].childSpan.removeChild(F.layerElement), F.destroy();
|
|
5459
5460
|
}
|
|
5460
5461
|
this.textSpans[t].glyph = k, k._debug = !0, k.prepareFrame(0), k.renderFrame(), this.textSpans[t].childSpan.appendChild(k.layerElement), g.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + A.finalSize / 100 + "," + A.finalSize / 100 + ")");
|
|
5461
5462
|
} else
|
|
@@ -6075,12 +6076,12 @@ function requireLottie() {
|
|
|
6075
6076
|
var a, l, p, S, f, C, E, m, I, c, d = this.data.singleShape, u = t.tr * 1e-3 * t.finalSize, g = 0, x = 0, k = !0, T = 0;
|
|
6076
6077
|
for (i = 0; i < s; i += 1) {
|
|
6077
6078
|
a = this.globalData.fontManager.getCharData(t.finalText[i], r.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), l = a && a.data || {}, o.reset(), d && n[i].n && (g = -u, x += t.yOffset, x += k ? 1 : 0, k = !1), f = l.shapes ? l.shapes[0].it : [], E = f.length, o.scale(t.finalSize / 100, t.finalSize / 100), d && this.applyTextPropertiesToMatrix(t, o, n[i].line, g, x), I = createSizedArray(E - 1);
|
|
6078
|
-
var
|
|
6079
|
+
var F = 0;
|
|
6079
6080
|
for (C = 0; C < E; C += 1)
|
|
6080
6081
|
if (f[C].ty === "sh") {
|
|
6081
6082
|
for (S = f[C].ks.k.i.length, m = f[C].ks.k, c = [], p = 1; p < S; p += 1)
|
|
6082
6083
|
p === 1 && c.push(o.applyToX(m.v[0][0], m.v[0][1], 0), o.applyToY(m.v[0][0], m.v[0][1], 0)), c.push(o.applyToX(m.o[p - 1][0], m.o[p - 1][1], 0), o.applyToY(m.o[p - 1][0], m.o[p - 1][1], 0), o.applyToX(m.i[p][0], m.i[p][1], 0), o.applyToY(m.i[p][0], m.i[p][1], 0), o.applyToX(m.v[p][0], m.v[p][1], 0), o.applyToY(m.v[p][0], m.v[p][1], 0));
|
|
6083
|
-
c.push(o.applyToX(m.o[p - 1][0], m.o[p - 1][1], 0), o.applyToY(m.o[p - 1][0], m.o[p - 1][1], 0), o.applyToX(m.i[0][0], m.i[0][1], 0), o.applyToY(m.i[0][0], m.i[0][1], 0), o.applyToX(m.v[0][0], m.v[0][1], 0), o.applyToY(m.v[0][0], m.v[0][1], 0)), I[
|
|
6084
|
+
c.push(o.applyToX(m.o[p - 1][0], m.o[p - 1][1], 0), o.applyToY(m.o[p - 1][0], m.o[p - 1][1], 0), o.applyToX(m.i[0][0], m.i[0][1], 0), o.applyToY(m.i[0][0], m.i[0][1], 0), o.applyToX(m.v[0][0], m.v[0][1], 0), o.applyToY(m.v[0][0], m.v[0][1], 0)), I[F] = c, F += 1;
|
|
6084
6085
|
}
|
|
6085
6086
|
d && (g += n[i].l, g += u), this.textSpans[T] ? this.textSpans[T].elem = I : this.textSpans[T] = {
|
|
6086
6087
|
elem: I
|
|
@@ -6826,30 +6827,30 @@ function requireLottie() {
|
|
|
6826
6827
|
g = g === !0 ? {
|
|
6827
6828
|
entropy: !0
|
|
6828
6829
|
} : g || {};
|
|
6829
|
-
var T = I(m(g.entropy ? [u, d(t)] : u === null ? c() : u, 3), k),
|
|
6830
|
-
for (var G =
|
|
6831
|
-
G = (G + H) * r, Q *= r, H =
|
|
6830
|
+
var T = I(m(g.entropy ? [u, d(t)] : u === null ? c() : u, 3), k), F = new C(k), O = function() {
|
|
6831
|
+
for (var G = F.g(i), Q = o, H = 0; G < a; )
|
|
6832
|
+
G = (G + H) * r, Q *= r, H = F.g(1);
|
|
6832
6833
|
for (; G >= l; )
|
|
6833
6834
|
G /= 2, Q /= 2, H >>>= 1;
|
|
6834
6835
|
return (G + H) / Q;
|
|
6835
6836
|
};
|
|
6836
6837
|
return O.int32 = function() {
|
|
6837
|
-
return
|
|
6838
|
+
return F.g(4) | 0;
|
|
6838
6839
|
}, O.quick = function() {
|
|
6839
|
-
return
|
|
6840
|
-
}, O.double = O, I(d(
|
|
6841
|
-
return H && (H.S && E(H,
|
|
6842
|
-
return E(
|
|
6840
|
+
return F.g(4) / 4294967296;
|
|
6841
|
+
}, O.double = O, I(d(F.S), t), (g.pass || x || function(W, G, Q, H) {
|
|
6842
|
+
return H && (H.S && E(H, F), W.state = function() {
|
|
6843
|
+
return E(F, {});
|
|
6843
6844
|
}), Q ? (e[n] = W, G) : W;
|
|
6844
6845
|
})(O, T, "global" in g ? g.global : this == e, g.state);
|
|
6845
6846
|
}
|
|
6846
6847
|
e["seed" + n] = f;
|
|
6847
6848
|
function C(u) {
|
|
6848
|
-
var g, x = u.length, k = this, T = 0,
|
|
6849
|
+
var g, x = u.length, k = this, T = 0, F = k.i = k.j = 0, O = k.S = [];
|
|
6849
6850
|
for (x || (u = [x++]); T < r; )
|
|
6850
6851
|
O[T] = T++;
|
|
6851
6852
|
for (T = 0; T < r; T++)
|
|
6852
|
-
O[T] = O[
|
|
6853
|
+
O[T] = O[F = p & F + u[T % x] + (g = O[T])], O[F] = g;
|
|
6853
6854
|
k.g = function(W) {
|
|
6854
6855
|
for (var G, Q = 0, H = k.i, J = k.j, D = k.S; W--; )
|
|
6855
6856
|
G = D[H = p & H + 1], Q = Q * r + D[p & (D[H] = D[J = p & J + G]) + (D[J] = G)];
|
|
@@ -7723,16 +7724,16 @@ function requireLottie() {
|
|
|
7723
7724
|
}
|
|
7724
7725
|
function n(E, m, I) {
|
|
7725
7726
|
var c = propertyGroupFactory(T, I), d = propertyGroupFactory(k, c);
|
|
7726
|
-
function u(
|
|
7727
|
-
Object.defineProperty(k, E.d[
|
|
7728
|
-
get: ExpressionPropertyInterface(m.d.dataProps[
|
|
7727
|
+
function u(F) {
|
|
7728
|
+
Object.defineProperty(k, E.d[F].nm, {
|
|
7729
|
+
get: ExpressionPropertyInterface(m.d.dataProps[F].p)
|
|
7729
7730
|
});
|
|
7730
7731
|
}
|
|
7731
7732
|
var g, x = E.d ? E.d.length : 0, k = {};
|
|
7732
7733
|
for (g = 0; g < x; g += 1)
|
|
7733
7734
|
u(g), m.d.dataProps[g].p.setGroupProperty(d);
|
|
7734
|
-
function T(
|
|
7735
|
-
return
|
|
7735
|
+
function T(F) {
|
|
7736
|
+
return F === "Color" || F === "color" ? T.color : F === "Opacity" || F === "opacity" ? T.opacity : F === "Stroke Width" || F === "stroke width" ? T.strokeWidth : null;
|
|
7736
7737
|
}
|
|
7737
7738
|
return Object.defineProperties(T, {
|
|
7738
7739
|
color: {
|
|
@@ -8064,13 +8065,13 @@ function requireLottie() {
|
|
|
8064
8065
|
if (T % 2 !== 0)
|
|
8065
8066
|
return this.getValueAtTime((d - (m - u) % d + u) / this.comp.globalData.frameRate, 0);
|
|
8066
8067
|
} else if (f === "offset") {
|
|
8067
|
-
var
|
|
8068
|
+
var F = this.getValueAtTime(u / this.comp.globalData.frameRate, 0), O = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), W = this.getValueAtTime(((m - u) % d + u) / this.comp.globalData.frameRate, 0), G = Math.floor((m - u) / d);
|
|
8068
8069
|
if (this.pv.length) {
|
|
8069
|
-
for (k = new Array(
|
|
8070
|
-
k[g] = (O[g] -
|
|
8070
|
+
for (k = new Array(F.length), x = k.length, g = 0; g < x; g += 1)
|
|
8071
|
+
k[g] = (O[g] - F[g]) * G + W[g];
|
|
8071
8072
|
return k;
|
|
8072
8073
|
}
|
|
8073
|
-
return (O -
|
|
8074
|
+
return (O - F) * G + W;
|
|
8074
8075
|
} else if (f === "continue") {
|
|
8075
8076
|
var Q = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), H = this.getValueAtTime((c - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
8076
8077
|
if (this.pv.length) {
|
|
@@ -8097,13 +8098,13 @@ function requireLottie() {
|
|
|
8097
8098
|
if (T % 2 === 0)
|
|
8098
8099
|
return this.getValueAtTime(((c - m) % d + c) / this.comp.globalData.frameRate, 0);
|
|
8099
8100
|
} else if (f === "offset") {
|
|
8100
|
-
var
|
|
8101
|
+
var F = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), O = this.getValueAtTime(u / this.comp.globalData.frameRate, 0), W = this.getValueAtTime((d - (c - m) % d + c) / this.comp.globalData.frameRate, 0), G = Math.floor((c - m) / d) + 1;
|
|
8101
8102
|
if (this.pv.length) {
|
|
8102
|
-
for (k = new Array(
|
|
8103
|
-
k[g] = W[g] - (O[g] -
|
|
8103
|
+
for (k = new Array(F.length), x = k.length, g = 0; g < x; g += 1)
|
|
8104
|
+
k[g] = W[g] - (O[g] - F[g]) * G;
|
|
8104
8105
|
return k;
|
|
8105
8106
|
}
|
|
8106
|
-
return W - (O -
|
|
8107
|
+
return W - (O - F) * G;
|
|
8107
8108
|
} else if (f === "continue") {
|
|
8108
8109
|
var Q = this.getValueAtTime(c / this.comp.globalData.frameRate, 0), H = this.getValueAtTime((c + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
8109
8110
|
if (this.pv.length) {
|
|
@@ -8162,12 +8163,12 @@ function requireLottie() {
|
|
|
8162
8163
|
C.rotateZ(-u * this.rz.mult).rotateY(g * this.ry.mult).rotateX(x * this.rx.mult).rotateZ(-k[2] * this.or.mult).rotateY(k[1] * this.or.mult).rotateX(k[0] * this.or.mult);
|
|
8163
8164
|
}
|
|
8164
8165
|
if (this.data.p && this.data.p.s) {
|
|
8165
|
-
var T = this.px.getValueAtTime(f),
|
|
8166
|
+
var T = this.px.getValueAtTime(f), F = this.py.getValueAtTime(f);
|
|
8166
8167
|
if (this.data.p.z) {
|
|
8167
8168
|
var O = this.pz.getValueAtTime(f);
|
|
8168
|
-
C.translate(T * this.px.mult,
|
|
8169
|
+
C.translate(T * this.px.mult, F * this.py.mult, -O * this.pz.mult);
|
|
8169
8170
|
} else
|
|
8170
|
-
C.translate(T * this.px.mult,
|
|
8171
|
+
C.translate(T * this.px.mult, F * this.py.mult, 0);
|
|
8171
8172
|
} else {
|
|
8172
8173
|
var W = this.p.getValueAtTime(f);
|
|
8173
8174
|
C.translate(W[0] * this.p.mult, W[1] * this.p.mult, -W[2] * this.p.mult);
|
|
@@ -8230,8 +8231,8 @@ function requireLottie() {
|
|
|
8230
8231
|
E !== void 0 && (m = this.getValueAtTime(E, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(m));
|
|
8231
8232
|
for (var I = this._segmentsLength, c = I.lengths, d = I.totalLength * C, u = 0, g = c.length, x = 0, k; u < g; ) {
|
|
8232
8233
|
if (x + c[u].addedLength > d) {
|
|
8233
|
-
var T = u,
|
|
8234
|
-
k = bez.getPointInSegment(m.v[T], m.v[
|
|
8234
|
+
var T = u, F = m.c && u === g - 1 ? 0 : u + 1, O = (d - x) / c[u].addedLength;
|
|
8235
|
+
k = bez.getPointInSegment(m.v[T], m.v[F], m.o[T], m.i[F], O, c[u]);
|
|
8235
8236
|
break;
|
|
8236
8237
|
} else
|
|
8237
8238
|
x += c[u].addedLength;
|
|
@@ -8720,7 +8721,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
8720
8721
|
i == null || i.destroy(), i = null;
|
|
8721
8722
|
let k = t.autoPlay, T = t.loop;
|
|
8722
8723
|
t.playOnHover && (k = !1), typeof T == "number" && T > 0 && (T = T - 1), t.delay > 0 && (k = !1);
|
|
8723
|
-
const
|
|
8724
|
+
const F = {
|
|
8724
8725
|
container: A.value,
|
|
8725
8726
|
renderer: t.renderer,
|
|
8726
8727
|
loop: T,
|
|
@@ -8728,9 +8729,9 @@ const _sfc_main$6 = defineComponent({
|
|
|
8728
8729
|
animationData: r,
|
|
8729
8730
|
assetsPath: t.assetsPath
|
|
8730
8731
|
};
|
|
8731
|
-
es6(t.rendererSettings, {}) === !1 && (
|
|
8732
|
+
es6(t.rendererSettings, {}) === !1 && (F.rendererSettings = t.rendererSettings), t.scale !== 1 && (F.rendererSettings = __spreadProps(__spreadValues({}, F.rendererSettings), {
|
|
8732
8733
|
viewBoxOnly: !0
|
|
8733
|
-
})), i = Lottie.loadAnimation(
|
|
8734
|
+
})), i = Lottie.loadAnimation(F), setTimeout(() => {
|
|
8734
8735
|
k = t.autoPlay, t.playOnHover ? i == null || i.pause() : k ? i == null || i.play() : i == null || i.pause(), e("onAnimationLoaded");
|
|
8735
8736
|
}, t.delay), i.setSpeed(t.speed), t.direction === "reverse" && i.setDirection(-1), t.direction === "normal" && i.setDirection(1), (t.pauseAnimation || t.playOnHover) && i.pause(), i.addEventListener("loopComplete", () => {
|
|
8736
8737
|
t.direction === "alternate" && (i == null || i.stop(), s = s === -1 ? 1 : -1, i == null || i.setDirection(s), i == null || i.play()), e("onLoopComplete");
|
|
@@ -10027,7 +10028,7 @@ class UserImpl {
|
|
|
10027
10028
|
"internal-error"
|
|
10028
10029
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
10029
10030
|
);
|
|
10030
|
-
const
|
|
10031
|
+
const F = StsTokenManager.fromJSON(this.name, T);
|
|
10031
10032
|
_assert(
|
|
10032
10033
|
typeof u == "string",
|
|
10033
10034
|
e,
|
|
@@ -10054,7 +10055,7 @@ class UserImpl {
|
|
|
10054
10055
|
photoURL: E,
|
|
10055
10056
|
phoneNumber: C,
|
|
10056
10057
|
tenantId: m,
|
|
10057
|
-
stsTokenManager:
|
|
10058
|
+
stsTokenManager: F,
|
|
10058
10059
|
createdAt: c,
|
|
10059
10060
|
lastLoginAt: d
|
|
10060
10061
|
});
|
|
@@ -13487,43 +13488,47 @@ const _hoisted_1 = {
|
|
|
13487
13488
|
async function m(I) {
|
|
13488
13489
|
try {
|
|
13489
13490
|
if (!S.value) {
|
|
13490
|
-
const
|
|
13491
|
-
console.log(`Initialize feature flag with key *${
|
|
13491
|
+
const T = "MaGoXrEWuEJNpWgKTqseee";
|
|
13492
|
+
console.log(`Initialize feature flag with key *${T.slice(T.length - 4)}`), await p({ apiKey: T });
|
|
13492
13493
|
}
|
|
13493
13494
|
await f(I);
|
|
13494
|
-
let c = !1, d = !1, u = !1, g = {
|
|
13495
|
+
let c = !1, d = !1, u = !1, g = !1, x = {
|
|
13495
13496
|
app: !1,
|
|
13496
13497
|
pos: !1
|
|
13497
|
-
},
|
|
13498
|
-
C.value.forEach(({ enabled:
|
|
13499
|
-
if (
|
|
13498
|
+
}, k = unref(a).map((T) => T.code);
|
|
13499
|
+
C.value.forEach(({ enabled: T, value: F, feature: O }) => {
|
|
13500
|
+
if (T)
|
|
13500
13501
|
try {
|
|
13501
|
-
switch (
|
|
13502
|
+
switch (O.name) {
|
|
13502
13503
|
case "menu_unique_product_code":
|
|
13503
|
-
c =
|
|
13504
|
+
c = F === "true";
|
|
13504
13505
|
break;
|
|
13505
13506
|
case "portal_menu_schedule_publish_menu":
|
|
13506
|
-
d =
|
|
13507
|
+
d = F === "true";
|
|
13507
13508
|
break;
|
|
13508
13509
|
case "portal_menu_configurable_takeaway_config":
|
|
13509
|
-
|
|
13510
|
+
x = JSON.parse(F || "{}");
|
|
13510
13511
|
break;
|
|
13511
13512
|
case "portal_menu_supported_locales":
|
|
13512
|
-
|
|
13513
|
+
k = Array.isArray(F) ? F : JSON.parse(F || "[]");
|
|
13513
13514
|
break;
|
|
13514
13515
|
case "portal_menu_configurable_member_price":
|
|
13515
|
-
u =
|
|
13516
|
+
u = F === "true";
|
|
13517
|
+
break;
|
|
13518
|
+
case "menu_auto_generate_image_aspect_ratio":
|
|
13519
|
+
g = F === "true";
|
|
13516
13520
|
break;
|
|
13517
13521
|
}
|
|
13518
13522
|
} catch {
|
|
13519
|
-
console.error(`[FeatureFlag] Failed to cast value ${
|
|
13523
|
+
console.error(`[FeatureFlag] Failed to cast value ${O.name}: ${F}`);
|
|
13520
13524
|
}
|
|
13521
13525
|
}), r.updateFeatureFlags({
|
|
13522
13526
|
uniqueProductCode: c || !1,
|
|
13523
13527
|
schedulerPublish: d || !1,
|
|
13524
|
-
supportedLocales:
|
|
13525
|
-
showTakeawayAvailability:
|
|
13526
|
-
showMemberPriceSettings: u
|
|
13528
|
+
supportedLocales: k,
|
|
13529
|
+
showTakeawayAvailability: x,
|
|
13530
|
+
showMemberPriceSettings: u,
|
|
13531
|
+
autoGenerateImageAspectRatio: g || !1
|
|
13527
13532
|
});
|
|
13528
13533
|
} catch (c) {
|
|
13529
13534
|
console.error("Retrieve menu_unique_product_code failed", c);
|
|
@@ -13538,7 +13543,7 @@ const _hoisted_1 = {
|
|
|
13538
13543
|
I && I === F_MENU_VERSION.enum.v4 && router.addRoute({
|
|
13539
13544
|
path: "/serving-sequence",
|
|
13540
13545
|
name: "serving-sequence",
|
|
13541
|
-
component: () => import("./ServingSequence-
|
|
13546
|
+
component: () => import("./ServingSequence-BlcyW-dv.js")
|
|
13542
13547
|
});
|
|
13543
13548
|
}
|
|
13544
13549
|
), watch(
|