@smileid/web-components 11.5.0 → 11.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/esm/DocumentCaptureScreens-DjSTdVP-.js +5398 -0
  2. package/dist/esm/DocumentCaptureScreens-DjSTdVP-.js.map +1 -0
  3. package/dist/esm/{Navigation-Xg565kcu.js → Navigation-6DH3vF4-.js} +2 -2
  4. package/dist/esm/{Navigation-Xg565kcu.js.map → Navigation-6DH3vF4-.js.map} +1 -1
  5. package/dist/esm/{PoweredBySmileId-CxbaihMu.js → PoweredBySmileId-DoKwoPUd.js} +424 -6
  6. package/dist/esm/PoweredBySmileId-DoKwoPUd.js.map +1 -0
  7. package/dist/esm/{SelfieCaptureScreens-D3KuMzZA.js → SelfieCaptureScreens-CtX-4Tco.js} +5 -6
  8. package/dist/esm/SelfieCaptureScreens-CtX-4Tco.js.map +1 -0
  9. package/dist/esm/combobox.js +1 -1
  10. package/dist/esm/document.js +1 -1
  11. package/dist/esm/end-user-consent.js +713 -2
  12. package/dist/esm/end-user-consent.js.map +1 -1
  13. package/dist/esm/index-BqyuTk9f.js +1366 -0
  14. package/dist/esm/{index-CUwa6MPI.js.map → index-BqyuTk9f.js.map} +1 -1
  15. package/dist/esm/localisation.js +1 -1
  16. package/dist/esm/main.js +14 -14
  17. package/dist/esm/navigation.js +1 -1
  18. package/dist/esm/{package-BmVbDNny.js → package-CjZI-cNQ.js} +177 -172
  19. package/dist/esm/{package-BmVbDNny.js.map → package-CjZI-cNQ.js.map} +1 -1
  20. package/dist/esm/selfie.js +1 -1
  21. package/dist/esm/smart-camera-web.js +32 -18
  22. package/dist/esm/smart-camera-web.js.map +1 -1
  23. package/dist/esm/totp-consent.js +731 -2
  24. package/dist/esm/totp-consent.js.map +1 -1
  25. package/dist/esm/validate.js +31 -0
  26. package/dist/esm/validate.js.map +1 -0
  27. package/dist/smart-camera-web.js +696 -321
  28. package/dist/smart-camera-web.js.map +1 -1
  29. package/dist/types/main.d.ts +7 -1
  30. package/dist/types/validate.d.ts +21 -0
  31. package/lib/components/document/src/DocumentCaptureScreens.js +97 -18
  32. package/lib/components/document/src/assets/lottie.d.ts +12 -0
  33. package/lib/components/document/src/assets/svg-inline.d.ts +8 -0
  34. package/lib/components/document/src/document-auto-capture/DocumentAutoCapture.stories.js +75 -0
  35. package/lib/components/document/src/document-auto-capture/DocumentAutoCapture.tsx +1458 -0
  36. package/lib/components/document/src/document-auto-capture/README.md +73 -0
  37. package/lib/components/document/src/document-auto-capture/assets/Greenbook_Shimmer.svg +42 -0
  38. package/lib/components/document/src/document-auto-capture/assets/ID_Back_Shimmer.svg +8 -0
  39. package/lib/components/document/src/document-auto-capture/assets/ID_Front_Shimmer.svg +20 -0
  40. package/lib/components/document/src/document-auto-capture/assets/Passport-Shimmer.svg +143 -0
  41. package/lib/components/document/src/document-auto-capture/assets/shimmers.ts +21 -0
  42. package/lib/components/document/src/document-auto-capture/assets/svg-raw.d.ts +4 -0
  43. package/lib/components/document/src/document-auto-capture/components/CaptureButton.tsx +122 -0
  44. package/lib/components/document/src/document-auto-capture/components/Overlay.tsx +167 -0
  45. package/lib/components/document/src/document-auto-capture/components/TuningPanel.tsx +856 -0
  46. package/lib/components/document/src/document-auto-capture/constants/captureLayout.ts +58 -0
  47. package/lib/components/document/src/document-auto-capture/detection/cvErrorRecovery.ts +40 -0
  48. package/lib/components/document/src/document-auto-capture/detection/documentAspect.ts +20 -0
  49. package/lib/components/document/src/document-auto-capture/detection/qualityScoring.ts +35 -0
  50. package/lib/components/document/src/document-auto-capture/detection/seamRejection.ts +209 -0
  51. package/lib/components/document/src/document-auto-capture/detection/synthesisTiming.ts +10 -0
  52. package/lib/components/document/src/document-auto-capture/hooks/useCamera.ts +117 -0
  53. package/lib/components/document/src/document-auto-capture/hooks/useCardDetection.ts +3059 -0
  54. package/lib/components/document/src/document-auto-capture/index.ts +4 -0
  55. package/lib/components/document/src/document-auto-capture/theme.ts +40 -0
  56. package/lib/components/document/src/document-auto-capture/utils/debug.ts +25 -0
  57. package/lib/components/document/src/document-auto-capture/utils/opencvLoader.ts +86 -0
  58. package/lib/components/document/src/document-capture-instructions/DocumentCaptureInstructions.tsx +327 -244
  59. package/lib/components/document/src/document-capture-review/DocumentCaptureReview.js +153 -189
  60. package/lib/components/document/src/document-capture-submission/DocumentCaptureSubmission.tsx +432 -0
  61. package/lib/components/document/src/document-capture-submission/index.js +3 -0
  62. package/lib/components/selfie/README.md +13 -0
  63. package/lib/components/signature-pad/package.json +1 -1
  64. package/lib/components/smart-camera-web/src/README.md +11 -0
  65. package/lib/components/smart-camera-web/src/SmartCameraWeb.js +25 -1
  66. package/lib/components/totp-consent/src/TotpConsent.js +1 -1
  67. package/package.json +8 -4
  68. package/dist/esm/DocumentCaptureScreens-ucJDu5nH.js +0 -2232
  69. package/dist/esm/DocumentCaptureScreens-ucJDu5nH.js.map +0 -1
  70. package/dist/esm/EndUserConsent-CsiwoThZ.js +0 -717
  71. package/dist/esm/EndUserConsent-CsiwoThZ.js.map +0 -1
  72. package/dist/esm/PoweredBySmileId-CxbaihMu.js.map +0 -1
  73. package/dist/esm/SelfieCaptureScreens-D3KuMzZA.js.map +0 -1
  74. package/dist/esm/TotpConsent-CRtmtudl.js +0 -734
  75. package/dist/esm/TotpConsent-CRtmtudl.js.map +0 -1
  76. package/dist/esm/index-CUwa6MPI.js +0 -1363
  77. package/dist/esm/styles-BTEClL7R.js +0 -419
  78. package/dist/esm/styles-BTEClL7R.js.map +0 -1
  79. /package/lib/components/document/src/assets/lottie/{taking photo of green book passport.lottie → greenbook.lottie} +0 -0
  80. /package/lib/components/document/src/assets/lottie/{taking photo of ID FLIP 2D.lottie → id-card-flip.lottie} +0 -0
  81. /package/lib/components/document/src/assets/lottie/{taking photo of ID.lottie → id-card.lottie} +0 -0
  82. /package/lib/components/document/src/assets/lottie/{taking photo of passport 2.lottie → passport.lottie} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as K } from "./index-CUwa6MPI.js";
1
+ import { t as Y } from "./index-BqyuTk9f.js";
2
2
  const c4 = {
3
3
  /** ID_CARD_BACK_IMAGE_BASE64 Base64 encoded back of ID card image (.jpg or .png) */
4
4
  ID_CARD_BACK_IMAGE_BASE64: 7,
@@ -64,36 +64,36 @@ class z {
64
64
  switch (e.name) {
65
65
  case "NotAllowedError":
66
66
  case "SecurityError":
67
- return K("camera.error.notAllowed");
67
+ return Y("camera.error.notAllowed");
68
68
  case "AbortError":
69
- return K("camera.error.abort");
69
+ return Y("camera.error.abort");
70
70
  case "NotReadableError":
71
- return K("camera.error.notReadable");
71
+ return Y("camera.error.notReadable");
72
72
  case "NotFoundError":
73
- return K("camera.error.notFound");
73
+ return Y("camera.error.notFound");
74
74
  case "TypeError":
75
- return K("camera.error.insecure");
75
+ return Y("camera.error.insecure");
76
76
  default:
77
77
  return e.message;
78
78
  }
79
79
  }
80
80
  }
81
- var s1, v, n0, M0, N, F1, i0, s0, r0, E1, L1, C1, e1 = {}, a0 = [], I0 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, r1 = Array.isArray;
81
+ var s1, v, i0, M0, H, $1, s0, r0, a0, k1, C1, M1, n1 = {}, o0 = [], I0 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, r1 = Array.isArray;
82
82
  function $(t, e) {
83
83
  for (var n in e) t[n] = e[n];
84
84
  return t;
85
85
  }
86
- function k1(t) {
86
+ function x1(t) {
87
87
  t && t.parentNode && t.parentNode.removeChild(t);
88
88
  }
89
89
  function q(t, e, n) {
90
90
  var i, r, a, o = {};
91
91
  for (a in e) a == "key" ? i = e[a] : a == "ref" ? r = e[a] : o[a] = e[a];
92
92
  if (arguments.length > 2 && (o.children = arguments.length > 3 ? s1.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (a in t.defaultProps) o[a] === void 0 && (o[a] = t.defaultProps[a]);
93
- return Z(t, o, i, r, null);
93
+ return t1(t, o, i, r, null);
94
94
  }
95
- function Z(t, e, n, i, r) {
96
- var a = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r ?? ++n0, __i: -1, __u: 0 };
95
+ function t1(t, e, n, i, r) {
96
+ var a = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r ?? ++i0, __i: -1, __u: 0 };
97
97
  return r == null && v.vnode != null && v.vnode(a), a;
98
98
  }
99
99
  function p1(t) {
@@ -107,38 +107,38 @@ function j(t, e) {
107
107
  for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
108
108
  return typeof t.type == "function" ? j(t) : null;
109
109
  }
110
- function o0(t) {
110
+ function _0(t) {
111
111
  var e, n;
112
112
  if ((t = t.__) != null && t.__c != null) {
113
113
  for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) {
114
114
  t.__e = t.__c.base = n.__e;
115
115
  break;
116
116
  }
117
- return o0(t);
117
+ return _0(t);
118
118
  }
119
119
  }
120
- function $1(t) {
121
- (!t.__d && (t.__d = !0) && N.push(t) && !c1.__r++ || F1 != v.debounceRendering) && ((F1 = v.debounceRendering) || i0)(c1);
120
+ function T1(t) {
121
+ (!t.__d && (t.__d = !0) && H.push(t) && !c1.__r++ || $1 != v.debounceRendering) && (($1 = v.debounceRendering) || s0)(c1);
122
122
  }
123
123
  function c1() {
124
- for (var t, e, n, i, r, a, o, l = 1; N.length; ) N.length > l && N.sort(s0), t = N.shift(), l = N.length, t.__d && (n = void 0, i = void 0, r = (i = (e = t).__v).__e, a = [], o = [], e.__P && ((n = $({}, i)).__v = i.__v + 1, v.vnode && v.vnode(n), x1(e.__P, n, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [r] : null, a, r ?? j(i), !!(32 & i.__u), o), n.__v = i.__v, n.__.__k[n.__i] = n, d0(a, n, o), i.__e = i.__ = null, n.__e != r && o0(n)));
124
+ for (var t, e, n, i, r, a, o, l = 1; H.length; ) H.length > l && H.sort(r0), t = H.shift(), l = H.length, t.__d && (n = void 0, i = void 0, r = (i = (e = t).__v).__e, a = [], o = [], e.__P && ((n = $({}, i)).__v = i.__v + 1, v.vnode && v.vnode(n), P1(e.__P, n, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [r] : null, a, r ?? j(i), !!(32 & i.__u), o), n.__v = i.__v, n.__.__k[n.__i] = n, h0(a, n, o), i.__e = i.__ = null, n.__e != r && _0(n)));
125
125
  c1.__r = 0;
126
126
  }
127
- function _0(t, e, n, i, r, a, o, l, h, d, p) {
128
- var _, g, m, C, O, M, w, b = i && i.__k || a0, T = e.length;
129
- for (h = S0(n, e, b, h, T), _ = 0; _ < T; _++) (m = n.__k[_]) != null && (g = m.__i == -1 ? e1 : b[m.__i] || e1, m.__i = _, M = x1(t, m, g, r, a, o, l, h, d, p), C = m.__e, m.ref && g.ref != m.ref && (g.ref && P1(g.ref, null, m), p.push(m.ref, m.__c || C, m)), O == null && C != null && (O = C), (w = !!(4 & m.__u)) || g.__k === m.__k ? h = l0(m, h, t, w) : typeof m.type == "function" && M !== void 0 ? h = M : C && (h = C.nextSibling), m.__u &= -7);
127
+ function l0(t, e, n, i, r, a, o, l, h, d, p) {
128
+ var _, g, m, C, O, M, w, b = i && i.__k || o0, T = e.length;
129
+ for (h = S0(n, e, b, h, T), _ = 0; _ < T; _++) (m = n.__k[_]) != null && (g = m.__i == -1 ? n1 : b[m.__i] || n1, m.__i = _, M = P1(t, m, g, r, a, o, l, h, d, p), C = m.__e, m.ref && g.ref != m.ref && (g.ref && O1(g.ref, null, m), p.push(m.ref, m.__c || C, m)), O == null && C != null && (O = C), (w = !!(4 & m.__u)) || g.__k === m.__k ? h = d0(m, h, t, w) : typeof m.type == "function" && M !== void 0 ? h = M : C && (h = C.nextSibling), m.__u &= -7);
130
130
  return n.__e = O, h;
131
131
  }
132
132
  function S0(t, e, n, i, r) {
133
133
  var a, o, l, h, d, p = n.length, _ = p, g = 0;
134
- for (t.__k = new Array(r), a = 0; a < r; a++) (o = e[a]) != null && typeof o != "boolean" && typeof o != "function" ? (h = a + g, (o = t.__k[a] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Z(null, o, null, null, null) : r1(o) ? Z(p1, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Z(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = t, o.__b = t.__b + 1, l = null, (d = o.__i = k0(o, n, h, _)) != -1 && (_--, (l = n[d]) && (l.__u |= 2)), l == null || l.__v == null ? (d == -1 && (r > p ? g-- : r < p && g++), typeof o.type != "function" && (o.__u |= 4)) : d != h && (d == h - 1 ? g-- : d == h + 1 ? g++ : (d > h ? g-- : g++, o.__u |= 4))) : t.__k[a] = null;
135
- if (_) for (a = 0; a < p; a++) (l = n[a]) != null && (2 & l.__u) == 0 && (l.__e == i && (i = j(l)), c0(l, l));
134
+ for (t.__k = new Array(r), a = 0; a < r; a++) (o = e[a]) != null && typeof o != "boolean" && typeof o != "function" ? (h = a + g, (o = t.__k[a] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? t1(null, o, null, null, null) : r1(o) ? t1(p1, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? t1(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = t, o.__b = t.__b + 1, l = null, (d = o.__i = k0(o, n, h, _)) != -1 && (_--, (l = n[d]) && (l.__u |= 2)), l == null || l.__v == null ? (d == -1 && (r > p ? g-- : r < p && g++), typeof o.type != "function" && (o.__u |= 4)) : d != h && (d == h - 1 ? g-- : d == h + 1 ? g++ : (d > h ? g-- : g++, o.__u |= 4))) : t.__k[a] = null;
135
+ if (_) for (a = 0; a < p; a++) (l = n[a]) != null && (2 & l.__u) == 0 && (l.__e == i && (i = j(l)), u0(l, l));
136
136
  return i;
137
137
  }
138
- function l0(t, e, n, i) {
138
+ function d0(t, e, n, i) {
139
139
  var r, a;
140
140
  if (typeof t.type == "function") {
141
- for (r = t.__k, a = 0; r && a < r.length; a++) r[a] && (r[a].__ = t, e = l0(r[a], e, n, i));
141
+ for (r = t.__k, a = 0; r && a < r.length; a++) r[a] && (r[a].__ = t, e = d0(r[a], e, n, i));
142
142
  return e;
143
143
  }
144
144
  t.__e != e && (i && (e && t.type && !e.parentNode && (e = j(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
@@ -160,17 +160,17 @@ function k0(t, e, n, i) {
160
160
  }
161
161
  return -1;
162
162
  }
163
- function T1(t, e, n) {
163
+ function R1(t, e, n) {
164
164
  e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || I0.test(e) ? n : n + "px";
165
165
  }
166
166
  function _1(t, e, n, i, r) {
167
167
  var a, o;
168
168
  t: if (e == "style") if (typeof n == "string") t.style.cssText = n;
169
169
  else {
170
- if (typeof i == "string" && (t.style.cssText = i = ""), i) for (e in i) n && e in n || T1(t.style, e, "");
171
- if (n) for (e in n) i && n[e] == i[e] || T1(t.style, e, n[e]);
170
+ if (typeof i == "string" && (t.style.cssText = i = ""), i) for (e in i) n && e in n || R1(t.style, e, "");
171
+ if (n) for (e in n) i && n[e] == i[e] || R1(t.style, e, n[e]);
172
172
  }
173
- else if (e[0] == "o" && e[1] == "n") a = e != (e = e.replace(r0, "$1")), o = e.toLowerCase(), e = o in t || e == "onFocusOut" || e == "onFocusIn" ? o.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + a] = n, n ? i ? n.u = i.u : (n.u = E1, t.addEventListener(e, a ? C1 : L1, a)) : t.removeEventListener(e, a ? C1 : L1, a);
173
+ else if (e[0] == "o" && e[1] == "n") a = e != (e = e.replace(a0, "$1")), o = e.toLowerCase(), e = o in t || e == "onFocusOut" || e == "onFocusIn" ? o.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + a] = n, n ? i ? n.u = i.u : (n.u = k1, t.addEventListener(e, a ? M1 : C1, a)) : t.removeEventListener(e, a ? M1 : C1, a);
174
174
  else {
175
175
  if (r == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
176
176
  else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t) try {
@@ -181,18 +181,18 @@ function _1(t, e, n, i, r) {
181
181
  typeof n == "function" || (n == null || n === !1 && e[4] != "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && n == 1 ? "" : n));
182
182
  }
183
183
  }
184
- function R1(t) {
184
+ function z1(t) {
185
185
  return function(e) {
186
186
  if (this.l) {
187
187
  var n = this.l[e.type + t];
188
- if (e.t == null) e.t = E1++;
188
+ if (e.t == null) e.t = k1++;
189
189
  else if (e.t < n.u) return;
190
190
  return n(v.event ? v.event(e) : e);
191
191
  }
192
192
  };
193
193
  }
194
- function x1(t, e, n, i, r, a, o, l, h, d) {
195
- var p, _, g, m, C, O, M, w, b, T, R, a1, V, D1, o1, J, f1, F = e.type;
194
+ function P1(t, e, n, i, r, a, o, l, h, d) {
195
+ var p, _, g, m, C, O, M, w, b, T, R, a1, J, F1, o1, K, g1, F = e.type;
196
196
  if (e.constructor !== void 0) return null;
197
197
  128 & n.__u && (h = !!(32 & n.__u), a = [l = e.__e = n.__e]), (p = v.__b) && p(e);
198
198
  t: if (typeof F == "function") try {
@@ -209,32 +209,32 @@ function x1(t, e, n, i, r, a, o, l, h, d) {
209
209
  _.componentDidUpdate(m, C, O);
210
210
  });
211
211
  }
212
- if (_.context = R, _.props = w, _.__P = t, _.__e = !1, V = v.__r, D1 = 0, b) {
213
- for (_.state = _.__s, _.__d = !1, V && V(e), p = _.render(_.props, _.state, _.context), o1 = 0; o1 < _._sb.length; o1++) _.__h.push(_._sb[o1]);
212
+ if (_.context = R, _.props = w, _.__P = t, _.__e = !1, J = v.__r, F1 = 0, b) {
213
+ for (_.state = _.__s, _.__d = !1, J && J(e), p = _.render(_.props, _.state, _.context), o1 = 0; o1 < _._sb.length; o1++) _.__h.push(_._sb[o1]);
214
214
  _._sb = [];
215
215
  } else do
216
- _.__d = !1, V && V(e), p = _.render(_.props, _.state, _.context), _.state = _.__s;
217
- while (_.__d && ++D1 < 25);
218
- _.state = _.__s, _.getChildContext != null && (i = $($({}, i), _.getChildContext())), b && !g && _.getSnapshotBeforeUpdate != null && (O = _.getSnapshotBeforeUpdate(m, C)), J = p, p != null && p.type === p1 && p.key == null && (J = h0(p.props.children)), l = _0(t, r1(J) ? J : [J], e, n, i, r, a, o, l, h, d), _.base = e.__e, e.__u &= -161, _.__h.length && o.push(_), M && (_.__E = _.__ = null);
216
+ _.__d = !1, J && J(e), p = _.render(_.props, _.state, _.context), _.state = _.__s;
217
+ while (_.__d && ++F1 < 25);
218
+ _.state = _.__s, _.getChildContext != null && (i = $($({}, i), _.getChildContext())), b && !g && _.getSnapshotBeforeUpdate != null && (O = _.getSnapshotBeforeUpdate(m, C)), K = p, p != null && p.type === p1 && p.key == null && (K = c0(p.props.children)), l = l0(t, r1(K) ? K : [K], e, n, i, r, a, o, l, h, d), _.base = e.__e, e.__u &= -161, _.__h.length && o.push(_), M && (_.__E = _.__ = null);
219
219
  } catch (G) {
220
220
  if (e.__v = null, h || a != null) if (G.then) {
221
221
  for (e.__u |= h ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
222
222
  a[a.indexOf(l)] = null, e.__e = l;
223
223
  } else {
224
- for (f1 = a.length; f1--; ) k1(a[f1]);
225
- M1(e);
224
+ for (g1 = a.length; g1--; ) x1(a[g1]);
225
+ I1(e);
226
226
  }
227
- else e.__e = n.__e, e.__k = n.__k, G.then || M1(e);
227
+ else e.__e = n.__e, e.__k = n.__k, G.then || I1(e);
228
228
  v.__e(G, e, n);
229
229
  }
230
230
  else a == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : l = e.__e = x0(n.__e, e, n, i, r, a, o, h, d);
231
231
  return (p = v.diffed) && p(e), 128 & e.__u ? void 0 : l;
232
232
  }
233
- function M1(t) {
234
- t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(M1);
233
+ function I1(t) {
234
+ t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(I1);
235
235
  }
236
- function d0(t, e, n) {
237
- for (var i = 0; i < n.length; i++) P1(n[i], n[++i], n[++i]);
236
+ function h0(t, e, n) {
237
+ for (var i = 0; i < n.length; i++) O1(n[i], n[++i], n[++i]);
238
238
  v.__c && v.__c(e, t), t.some(function(r) {
239
239
  try {
240
240
  t = r.__h, r.__h = [], t.some(function(a) {
@@ -245,8 +245,8 @@ function d0(t, e, n) {
245
245
  }
246
246
  });
247
247
  }
248
- function h0(t) {
249
- return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : r1(t) ? t.map(h0) : $({}, t);
248
+ function c0(t) {
249
+ return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : r1(t) ? t.map(c0) : $({}, t);
250
250
  }
251
251
  function x0(t, e, n, i, r, a, o, l, h) {
252
252
  var d, p, _, g, m, C, O, M = n.props, w = e.props, b = e.type;
@@ -262,7 +262,7 @@ function x0(t, e, n, i, r, a, o, l, h) {
262
262
  }
263
263
  if (b == null) M === w || l && t.data == w || (t.data = w);
264
264
  else {
265
- if (a = a && s1.call(t.childNodes), M = n.props || e1, !l && a != null) for (M = {}, d = 0; d < t.attributes.length; d++) M[(m = t.attributes[d]).name] = m.value;
265
+ if (a = a && s1.call(t.childNodes), M = n.props || n1, !l && a != null) for (M = {}, d = 0; d < t.attributes.length; d++) M[(m = t.attributes[d]).name] = m.value;
266
266
  for (d in M) if (m = M[d], d != "children") {
267
267
  if (d == "dangerouslySetInnerHTML") _ = m;
268
268
  else if (!(d in w)) {
@@ -272,12 +272,12 @@ function x0(t, e, n, i, r, a, o, l, h) {
272
272
  }
273
273
  for (d in w) m = w[d], d == "children" ? g = m : d == "dangerouslySetInnerHTML" ? p = m : d == "value" ? C = m : d == "checked" ? O = m : l && typeof m != "function" || M[d] === m || _1(t, d, m, M[d], r);
274
274
  if (p) l || _ && (p.__html == _.__html || p.__html == t.innerHTML) || (t.innerHTML = p.__html), e.__k = [];
275
- else if (_ && (t.innerHTML = ""), _0(e.type == "template" ? t.content : t, r1(g) ? g : [g], e, n, i, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, a, o, a ? a[0] : n.__k && j(n, 0), l, h), a != null) for (d = a.length; d--; ) k1(a[d]);
275
+ else if (_ && (t.innerHTML = ""), l0(e.type == "template" ? t.content : t, r1(g) ? g : [g], e, n, i, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, a, o, a ? a[0] : n.__k && j(n, 0), l, h), a != null) for (d = a.length; d--; ) x1(a[d]);
276
276
  l || (d = "value", b == "progress" && C == null ? t.removeAttribute("value") : C != null && (C !== t[d] || b == "progress" && !C || b == "option" && C != M[d]) && _1(t, d, C, M[d], r), d = "checked", O != null && O != t[d] && _1(t, d, O, M[d], r));
277
277
  }
278
278
  return t;
279
279
  }
280
- function P1(t, e, n) {
280
+ function O1(t, e, n) {
281
281
  try {
282
282
  if (typeof t == "function") {
283
283
  var i = typeof t.__u == "function";
@@ -287,9 +287,9 @@ function P1(t, e, n) {
287
287
  v.__e(r, n);
288
288
  }
289
289
  }
290
- function c0(t, e, n) {
290
+ function u0(t, e, n) {
291
291
  var i, r;
292
- if (v.unmount && v.unmount(t), (i = t.ref) && (i.current && i.current != t.__e || P1(i, null, e)), (i = t.__c) != null) {
292
+ if (v.unmount && v.unmount(t), (i = t.ref) && (i.current && i.current != t.__e || O1(i, null, e)), (i = t.__c) != null) {
293
293
  if (i.componentWillUnmount) try {
294
294
  i.componentWillUnmount();
295
295
  } catch (a) {
@@ -297,41 +297,41 @@ function c0(t, e, n) {
297
297
  }
298
298
  i.base = i.__P = null;
299
299
  }
300
- if (i = t.__k) for (r = 0; r < i.length; r++) i[r] && c0(i[r], e, n || typeof t.type != "function");
301
- n || k1(t.__e), t.__c = t.__ = t.__e = void 0;
300
+ if (i = t.__k) for (r = 0; r < i.length; r++) i[r] && u0(i[r], e, n || typeof t.type != "function");
301
+ n || x1(t.__e), t.__c = t.__ = t.__e = void 0;
302
302
  }
303
303
  function P0(t, e, n) {
304
304
  return this.constructor(t, n);
305
305
  }
306
306
  function m1(t, e, n) {
307
307
  var i, r, a, o;
308
- e == document && (e = document.documentElement), v.__ && v.__(t, e), r = (i = typeof n == "function") ? null : n && n.__k || e.__k, a = [], o = [], x1(e, t = (!i && n || e).__k = q(p1, null, [t]), r || e1, e1, e.namespaceURI, !i && n ? [n] : r ? null : e.firstChild ? s1.call(e.childNodes) : null, a, !i && n ? n : r ? r.__e : e.firstChild, i, o), d0(a, t, o);
308
+ e == document && (e = document.documentElement), v.__ && v.__(t, e), r = (i = typeof n == "function") ? null : n && n.__k || e.__k, a = [], o = [], P1(e, t = (!i && n || e).__k = q(p1, null, [t]), r || n1, n1, e.namespaceURI, !i && n ? [n] : r ? null : e.firstChild ? s1.call(e.childNodes) : null, a, !i && n ? n : r ? r.__e : e.firstChild, i, o), h0(a, t, o);
309
309
  }
310
- function u0(t, e) {
311
- m1(t, e, u0);
310
+ function p0(t, e) {
311
+ m1(t, e, p0);
312
312
  }
313
- function p0(t, e, n) {
313
+ function m0(t, e, n) {
314
314
  var i, r, a, o, l = $({}, t.props);
315
315
  for (a in t.type && t.type.defaultProps && (o = t.type.defaultProps), e) a == "key" ? i = e[a] : a == "ref" ? r = e[a] : l[a] = e[a] === void 0 && o != null ? o[a] : e[a];
316
- return arguments.length > 2 && (l.children = arguments.length > 3 ? s1.call(arguments, 2) : n), Z(t.type, l, i || t.key, r || t.ref, null);
316
+ return arguments.length > 2 && (l.children = arguments.length > 3 ? s1.call(arguments, 2) : n), t1(t.type, l, i || t.key, r || t.ref, null);
317
317
  }
318
- s1 = a0.slice, v = { __e: function(t, e, n, i) {
318
+ s1 = o0.slice, v = { __e: function(t, e, n, i) {
319
319
  for (var r, a, o; e = e.__; ) if ((r = e.__c) && !r.__) try {
320
320
  if ((a = r.constructor) && a.getDerivedStateFromError != null && (r.setState(a.getDerivedStateFromError(t)), o = r.__d), r.componentDidCatch != null && (r.componentDidCatch(t, i || {}), o = r.__d), o) return r.__E = r;
321
321
  } catch (l) {
322
322
  t = l;
323
323
  }
324
324
  throw t;
325
- } }, n0 = 0, M0 = function(t) {
325
+ } }, i0 = 0, M0 = function(t) {
326
326
  return t != null && t.constructor === void 0;
327
327
  }, l1.prototype.setState = function(t, e) {
328
328
  var n;
329
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = $({}, this.state), typeof t == "function" && (t = t($({}, n), this.props)), t && $(n, t), t != null && this.__v && (e && this._sb.push(e), $1(this));
329
+ n = this.__s != null && this.__s != this.state ? this.__s : this.__s = $({}, this.state), typeof t == "function" && (t = t($({}, n), this.props)), t && $(n, t), t != null && this.__v && (e && this._sb.push(e), T1(this));
330
330
  }, l1.prototype.forceUpdate = function(t) {
331
- this.__v && (this.__e = !0, t && this.__h.push(t), $1(this));
332
- }, l1.prototype.render = p1, N = [], i0 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, s0 = function(t, e) {
331
+ this.__v && (this.__e = !0, t && this.__h.push(t), T1(this));
332
+ }, l1.prototype.render = p1, H = [], s0 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, r0 = function(t, e) {
333
333
  return t.__v.__b - e.__v.__b;
334
- }, c1.__r = 0, r0 = /(PointerCapture)$|Capture$/i, E1 = 0, L1 = R1(!1), C1 = R1(!0);
334
+ }, c1.__r = 0, a0 = /(PointerCapture)$|Capture$/i, k1 = 0, C1 = z1(!1), M1 = z1(!0);
335
335
  var O0 = 0;
336
336
  function p4(t, e, n, i, r, a) {
337
337
  e || (e = {});
@@ -341,8 +341,8 @@ function p4(t, e, n, i, r, a) {
341
341
  if (typeof t == "function" && (o = t.defaultProps)) for (l in o) h[l] === void 0 && (h[l] = o[l]);
342
342
  return v.vnode && v.vnode(d), d;
343
343
  }
344
- var n1, y, g1, z1, u1 = 0, m0 = [], L = v, U1 = L.__b, N1 = L.__r, H1 = L.diffed, B1 = L.__c, W1 = L.unmount, G1 = L.__;
345
- function O1(t, e) {
344
+ var V, y, v1, U1, u1 = 0, f0 = [], L = v, H1 = L.__b, N1 = L.__r, B1 = L.diffed, W1 = L.__c, G1 = L.unmount, q1 = L.__;
345
+ function f1(t, e) {
346
346
  L.__h && L.__h(y, t, u1 || e), u1 = 0;
347
347
  var n = y.__H || (y.__H = { __: [], __h: [] });
348
348
  return t >= n.__.length && n.__.push({}), n.__[t];
@@ -351,7 +351,7 @@ function m4(t) {
351
351
  return u1 = 1, A0(g0, t);
352
352
  }
353
353
  function A0(t, e, n) {
354
- var i = O1(n1++, 2);
354
+ var i = f1(V++, 2);
355
355
  if (i.t = t, !i.__c && (i.__ = [g0(void 0, e), function(l) {
356
356
  var h = i.__N ? i.__N[0] : i.__[0], d = i.t(h, l);
357
357
  h !== d && (i.__N = [d, i.__[1]], i.__c.setState({}));
@@ -385,55 +385,59 @@ function A0(t, e, n) {
385
385
  return i.__N || i.__;
386
386
  }
387
387
  function f4(t, e) {
388
- var n = O1(n1++, 3);
389
- !L.__s && f0(n.__H, e) && (n.__ = t, n.u = e, y.__H.__h.push(n));
388
+ var n = f1(V++, 3);
389
+ !L.__s && A1(n.__H, e) && (n.__ = t, n.u = e, y.__H.__h.push(n));
390
+ }
391
+ function g4(t, e) {
392
+ var n = f1(V++, 4);
393
+ !L.__s && A1(n.__H, e) && (n.__ = t, n.u = e, y.__h.push(n));
390
394
  }
391
- function g4(t) {
395
+ function v4(t) {
392
396
  return u1 = 5, D0(function() {
393
397
  return { current: t };
394
398
  }, []);
395
399
  }
396
400
  function D0(t, e) {
397
- var n = O1(n1++, 7);
398
- return f0(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
401
+ var n = f1(V++, 7);
402
+ return A1(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
399
403
  }
400
404
  function F0() {
401
- for (var t; t = m0.shift(); ) if (t.__P && t.__H) try {
402
- t.__H.__h.forEach(d1), t.__H.__h.forEach(I1), t.__H.__h = [];
405
+ for (var t; t = f0.shift(); ) if (t.__P && t.__H) try {
406
+ t.__H.__h.forEach(d1), t.__H.__h.forEach(S1), t.__H.__h = [];
403
407
  } catch (e) {
404
408
  t.__H.__h = [], L.__e(e, t.__v);
405
409
  }
406
410
  }
407
411
  L.__b = function(t) {
408
- y = null, U1 && U1(t);
412
+ y = null, H1 && H1(t);
409
413
  }, L.__ = function(t, e) {
410
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), G1 && G1(t, e);
414
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), q1 && q1(t, e);
411
415
  }, L.__r = function(t) {
412
- N1 && N1(t), n1 = 0;
416
+ N1 && N1(t), V = 0;
413
417
  var e = (y = t.__c).__H;
414
- e && (g1 === y ? (e.__h = [], y.__h = [], e.__.forEach(function(n) {
418
+ e && (v1 === y ? (e.__h = [], y.__h = [], e.__.forEach(function(n) {
415
419
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
416
- })) : (e.__h.forEach(d1), e.__h.forEach(I1), e.__h = [], n1 = 0)), g1 = y;
420
+ })) : (e.__h.forEach(d1), e.__h.forEach(S1), e.__h = [], V = 0)), v1 = y;
417
421
  }, L.diffed = function(t) {
418
- H1 && H1(t);
422
+ B1 && B1(t);
419
423
  var e = t.__c;
420
- e && e.__H && (e.__H.__h.length && (m0.push(e) !== 1 && z1 === L.requestAnimationFrame || ((z1 = L.requestAnimationFrame) || $0)(F0)), e.__H.__.forEach(function(n) {
424
+ e && e.__H && (e.__H.__h.length && (f0.push(e) !== 1 && U1 === L.requestAnimationFrame || ((U1 = L.requestAnimationFrame) || $0)(F0)), e.__H.__.forEach(function(n) {
421
425
  n.u && (n.__H = n.u), n.u = void 0;
422
- })), g1 = y = null;
426
+ })), v1 = y = null;
423
427
  }, L.__c = function(t, e) {
424
428
  e.some(function(n) {
425
429
  try {
426
430
  n.__h.forEach(d1), n.__h = n.__h.filter(function(i) {
427
- return !i.__ || I1(i);
431
+ return !i.__ || S1(i);
428
432
  });
429
433
  } catch (i) {
430
434
  e.some(function(r) {
431
435
  r.__h && (r.__h = []);
432
436
  }), e = [], L.__e(i, n.__v);
433
437
  }
434
- }), B1 && B1(t, e);
438
+ }), W1 && W1(t, e);
435
439
  }, L.unmount = function(t) {
436
- W1 && W1(t);
440
+ G1 && G1(t);
437
441
  var e, n = t.__c;
438
442
  n && n.__H && (n.__H.__.forEach(function(i) {
439
443
  try {
@@ -443,22 +447,22 @@ L.__b = function(t) {
443
447
  }
444
448
  }), n.__H = void 0, e && L.__e(e, n.__v));
445
449
  };
446
- var q1 = typeof requestAnimationFrame == "function";
450
+ var j1 = typeof requestAnimationFrame == "function";
447
451
  function $0(t) {
448
452
  var e, n = function() {
449
- clearTimeout(i), q1 && cancelAnimationFrame(e), setTimeout(t);
453
+ clearTimeout(i), j1 && cancelAnimationFrame(e), setTimeout(t);
450
454
  }, i = setTimeout(n, 35);
451
- q1 && (e = requestAnimationFrame(n));
455
+ j1 && (e = requestAnimationFrame(n));
452
456
  }
453
457
  function d1(t) {
454
458
  var e = y, n = t.__c;
455
459
  typeof n == "function" && (t.__c = void 0, n()), y = e;
456
460
  }
457
- function I1(t) {
461
+ function S1(t) {
458
462
  var e = y;
459
463
  t.__c = t.__(), y = e;
460
464
  }
461
- function f0(t, e) {
465
+ function A1(t, e) {
462
466
  return !t || t.length !== e.length || e.some(function(n, i) {
463
467
  return n !== t[i];
464
468
  });
@@ -466,8 +470,8 @@ function f0(t, e) {
466
470
  function g0(t, e) {
467
471
  return typeof e == "function" ? e(t) : e;
468
472
  }
469
- function A1() {
470
- return (A1 = Object.assign ? Object.assign.bind() : function(t) {
473
+ function D1() {
474
+ return (D1 = Object.assign ? Object.assign.bind() : function(t) {
471
475
  for (var e = 1; e < arguments.length; e++) {
472
476
  var n = arguments[e];
473
477
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
@@ -486,22 +490,22 @@ function R0(t) {
486
490
  for (o = 0; o < h.length; o++) r.indexOf(a = h[o]) >= 0 || (l[a] = i[a]);
487
491
  return l;
488
492
  })(t, T0);
489
- return p0(e, n);
493
+ return m0(e, n);
490
494
  }
491
495
  function z0() {
492
496
  var t = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
493
- this.dispatchEvent(t), this._vdom = q(R0, A1({}, this._props, { context: t.detail.context }), (function e(n, i) {
497
+ this.dispatchEvent(t), this._vdom = q(R0, D1({}, this._props, { context: t.detail.context }), (function e(n, i) {
494
498
  if (n.nodeType === 3) return n.data;
495
499
  if (n.nodeType !== 1) return null;
496
500
  var r = [], a = {}, o = 0, l = n.attributes, h = n.childNodes;
497
501
  for (o = l.length; o--; ) l[o].name !== "slot" && (a[l[o].name] = l[o].value, a[v0(l[o].name)] = l[o].value);
498
502
  for (o = h.length; o--; ) {
499
503
  var d = e(h[o], null), p = h[o].slot;
500
- p ? a[p] = q(j1, { name: p }, d) : r[o] = d;
504
+ p ? a[p] = q(V1, { name: p }, d) : r[o] = d;
501
505
  }
502
- var _ = i ? q(j1, null, r) : r;
506
+ var _ = i ? q(V1, null, r) : r;
503
507
  return q(i || n.nodeName.toLowerCase(), a, _);
504
- })(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? u0 : m1)(this._vdom, this._root);
508
+ })(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? p0 : m1)(this._vdom, this._root);
505
509
  }
506
510
  function v0(t) {
507
511
  return t.replace(/-(\w)/g, function(e, n) {
@@ -511,26 +515,26 @@ function v0(t) {
511
515
  function U0(t, e, n) {
512
516
  if (this._vdom) {
513
517
  var i = {};
514
- i[t] = n = n ?? void 0, i[v0(t)] = n, this._vdom = p0(this._vdom, i), m1(this._vdom, this._root);
518
+ i[t] = n = n ?? void 0, i[v0(t)] = n, this._vdom = m0(this._vdom, i), m1(this._vdom, this._root);
515
519
  }
516
520
  }
517
- function N0() {
521
+ function H0() {
518
522
  m1(this._vdom = null, this._root);
519
523
  }
520
- function j1(t, e) {
524
+ function V1(t, e) {
521
525
  var n = this;
522
- return q("slot", A1({}, t, { ref: function(i) {
526
+ return q("slot", D1({}, t, { ref: function(i) {
523
527
  i ? (n.ref = i, n._listener || (n._listener = function(r) {
524
528
  r.stopPropagation(), r.detail.context = e;
525
529
  }, i.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
526
530
  } }));
527
531
  }
528
- function v4(t, e, n, i) {
532
+ function w4(t, e, n, i) {
529
533
  function r() {
530
534
  var a = Reflect.construct(HTMLElement, [], r);
531
535
  return a._vdomComponent = t, a._root = i && i.shadow ? a.attachShadow({ mode: i.mode || "open" }) : a, a;
532
536
  }
533
- return (r.prototype = Object.create(HTMLElement.prototype)).constructor = r, r.prototype.connectedCallback = z0, r.prototype.attributeChangedCallback = U0, r.prototype.disconnectedCallback = N0, n = n || t.observedAttributes || Object.keys(t.propTypes || {}), r.observedAttributes = n, n.forEach(function(a) {
537
+ return (r.prototype = Object.create(HTMLElement.prototype)).constructor = r, r.prototype.connectedCallback = z0, r.prototype.attributeChangedCallback = U0, r.prototype.disconnectedCallback = H0, n = n || t.observedAttributes || Object.keys(t.propTypes || {}), r.observedAttributes = n, n.forEach(function(a) {
534
538
  Object.defineProperty(r.prototype, a, { get: function() {
535
539
  return this._vdom.props[a];
536
540
  }, set: function(o) {
@@ -548,7 +552,7 @@ function i1(t) {
548
552
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
549
553
  }, i1(t);
550
554
  }
551
- function H0(t, e) {
555
+ function N0(t, e) {
552
556
  if (i1(t) != "object" || !t) return t;
553
557
  var n = t[Symbol.toPrimitive];
554
558
  if (n !== void 0) {
@@ -559,7 +563,7 @@ function H0(t, e) {
559
563
  return (e === "string" ? String : Number)(t);
560
564
  }
561
565
  function B0(t) {
562
- var e = H0(t, "string");
566
+ var e = N0(t, "string");
563
567
  return i1(e) == "symbol" ? e : e + "";
564
568
  }
565
569
  function c(t, e, n) {
@@ -595,18 +599,18 @@ var W0 = class {
595
599
  this._strategy.cancelAnimationFrame(t);
596
600
  }
597
601
  };
598
- const I = typeof window < "u" && window.document !== void 0, v1 = new Uint8Array([80, 75, 3, 4]), j0 = ["v", "ip", "op", "layers", "fr", "w", "h"], V1 = "0.72.1", J1 = "@lottiefiles/dotlottie-web";
602
+ const I = typeof window < "u" && window.document !== void 0, w1 = new Uint8Array([80, 75, 3, 4]), j0 = ["v", "ip", "op", "layers", "fr", "w", "h"], J1 = "0.72.1", K1 = "@lottiefiles/dotlottie-web";
599
603
  let s;
600
604
  const w0 = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
601
605
  throw Error("TextDecoder not available");
602
606
  } };
603
607
  typeof TextDecoder < "u" && w0.decode();
604
- let Y = null;
605
- function t1() {
606
- return (Y === null || Y.byteLength === 0) && (Y = new Uint8Array(s.memory.buffer)), Y;
608
+ let Q = null;
609
+ function e1() {
610
+ return (Q === null || Q.byteLength === 0) && (Q = new Uint8Array(s.memory.buffer)), Q;
607
611
  }
608
612
  function E(t, e) {
609
- return t >>>= 0, w0.decode(t1().subarray(t, t + e));
613
+ return t >>>= 0, w0.decode(e1().subarray(t, t + e));
610
614
  }
611
615
  function b0(t) {
612
616
  let e = s.__externref_table_alloc_command_export();
@@ -632,9 +636,9 @@ const h1 = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () =>
632
636
  function f(t, e, n) {
633
637
  if (n === void 0) {
634
638
  let l = h1.encode(t), h = e(l.length, 1) >>> 0;
635
- return t1().subarray(h, h + l.length).set(l), u = l.length, h;
639
+ return e1().subarray(h, h + l.length).set(l), u = l.length, h;
636
640
  }
637
- let i = t.length, r = e(i, 1) >>> 0, a = t1(), o = 0;
641
+ let i = t.length, r = e(i, 1) >>> 0, a = e1(), o = 0;
638
642
  for (; o < i; o++) {
639
643
  let l = t.charCodeAt(o);
640
644
  if (l > 127) break;
@@ -642,49 +646,49 @@ function f(t, e, n) {
642
646
  }
643
647
  if (o !== i) {
644
648
  o !== 0 && (t = t.slice(o)), r = n(r, i, i = o + t.length * 3, 1) >>> 0;
645
- let l = t1().subarray(r + o, r + i), h = J0(t, l);
649
+ let l = e1().subarray(r + o, r + i), h = J0(t, l);
646
650
  o += h.written, r = n(r, i, o, 1) >>> 0;
647
651
  }
648
652
  return u = o, r;
649
653
  }
650
654
  let U = null;
651
- function Q() {
655
+ function X() {
652
656
  return (U === null || U.buffer.detached === !0 || U.buffer.detached === void 0 && U.buffer !== s.memory.buffer) && (U = new DataView(s.memory.buffer)), U;
653
657
  }
654
658
  function K0(t) {
655
659
  return t == null;
656
660
  }
657
- let X = null;
661
+ let Z = null;
658
662
  function Y0() {
659
- return (X === null || X.byteLength === 0) && (X = new Float32Array(s.memory.buffer)), X;
663
+ return (Z === null || Z.byteLength === 0) && (Z = new Float32Array(s.memory.buffer)), Z;
660
664
  }
661
665
  function Q0(t, e) {
662
666
  let n = e(t.length * 4, 4) >>> 0;
663
667
  return Y0().set(t, n / 4), u = t.length, n;
664
668
  }
665
- function S1(t, e) {
669
+ function E1(t, e) {
666
670
  let n = e(t.length * 1, 1) >>> 0;
667
- return t1().set(t, n / 1), u = t.length, n;
671
+ return e1().set(t, n / 1), u = t.length, n;
668
672
  }
669
673
  function X0(t, e) {
670
674
  let n = e(t.length * 4, 4) >>> 0;
671
675
  for (let i = 0; i < t.length; i++) {
672
676
  let r = b0(t[i]);
673
- Q().setUint32(n + 4 * i, r, !0);
677
+ X().setUint32(n + 4 * i, r, !0);
674
678
  }
675
679
  return u = t.length, n;
676
680
  }
677
681
  function Z0(t, e) {
678
- let n = f(t, s.__wbindgen_malloc_command_export, s.__wbindgen_realloc_command_export), i = u, r = S1(e, s.__wbindgen_malloc_command_export), a = u;
682
+ let n = f(t, s.__wbindgen_malloc_command_export, s.__wbindgen_realloc_command_export), i = u, r = E1(e, s.__wbindgen_malloc_command_export), a = u;
679
683
  return s.register_font(n, i, r, a) !== 0;
680
684
  }
681
- const B = Object.freeze({ Forward: 0, 0: "Forward", Reverse: 1, 1: "Reverse", Bounce: 2, 2: "Bounce", ReverseBounce: 3, 3: "ReverseBounce" }), K1 = typeof FinalizationRegistry > "u" ? { register: () => {
685
+ const B = Object.freeze({ Forward: 0, 0: "Forward", Reverse: 1, 1: "Reverse", Bounce: 2, 2: "Bounce", ReverseBounce: 3, 3: "ReverseBounce" }), Y1 = typeof FinalizationRegistry > "u" ? { register: () => {
682
686
  }, unregister: () => {
683
687
  } } : new FinalizationRegistry((t) => s.__wbg_dotlottieplayerwasm_free(t >>> 0, 1));
684
688
  var t4 = class {
685
689
  __destroy_into_raw() {
686
690
  let t = this.__wbg_ptr;
687
- return this.__wbg_ptr = 0, K1.unregister(this), t;
691
+ return this.__wbg_ptr = 0, Y1.unregister(this), t;
688
692
  }
689
693
  free() {
690
694
  let t = this.__destroy_into_raw();
@@ -948,7 +952,7 @@ var t4 = class {
948
952
  return s.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr, e, n) !== 0;
949
953
  }
950
954
  load_dotlottie_data(t) {
951
- let e = S1(t, s.__wbindgen_malloc_command_export), n = u;
955
+ let e = E1(t, s.__wbindgen_malloc_command_export), n = u;
952
956
  return s.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr, e, n) !== 0;
953
957
  }
954
958
  sm_get_string_input(t) {
@@ -1016,7 +1020,7 @@ var t4 = class {
1016
1020
  }
1017
1021
  constructor() {
1018
1022
  let t = s.dotlottieplayerwasm_new();
1019
- return this.__wbg_ptr = t >>> 0, K1.register(this, this.__wbg_ptr, this), this;
1023
+ return this.__wbg_ptr = t >>> 0, Y1.register(this, this.__wbg_ptr, this), this;
1020
1024
  }
1021
1025
  mode() {
1022
1026
  return s.dotlottieplayerwasm_mode(this.__wbg_ptr);
@@ -1085,7 +1089,7 @@ var t4 = class {
1085
1089
  return s.dotlottieplayerwasm_is_paused(this.__wbg_ptr) !== 0;
1086
1090
  }
1087
1091
  load_font(t, e) {
1088
- let n = f(t, s.__wbindgen_malloc_command_export, s.__wbindgen_realloc_command_export), i = u, r = S1(e, s.__wbindgen_malloc_command_export), a = u;
1092
+ let n = f(t, s.__wbindgen_malloc_command_export, s.__wbindgen_realloc_command_export), i = u, r = E1(e, s.__wbindgen_malloc_command_export), a = u;
1089
1093
  return s.dotlottieplayerwasm_load_font(this.__wbg_ptr, n, i, r, a) !== 0;
1090
1094
  }
1091
1095
  set_frame(t) {
@@ -1154,7 +1158,7 @@ function n4() {
1154
1158
  e[n >>> 0] = i;
1155
1159
  }, t.wbg.__wbg_stack_0ed75d68575b0f3c = function(e, n) {
1156
1160
  let i = n.stack, r = f(i, s.__wbindgen_malloc_command_export, s.__wbindgen_realloc_command_export), a = u;
1157
- Q().setInt32(e + 4, a, !0), Q().setInt32(e + 0, r, !0);
1161
+ X().setInt32(e + 4, a, !0), X().setInt32(e + 0, r, !0);
1158
1162
  }, t.wbg.__wbindgen_init_externref_table = function() {
1159
1163
  let e = s.__wbindgen_export_3, n = e.grow(4);
1160
1164
  e.set(0, void 0), e.set(n + 0, void 0), e.set(n + 1, null), e.set(n + 2, !0), e.set(n + 3, !1);
@@ -1165,7 +1169,7 @@ function n4() {
1165
1169
  }, t.wbg.__wbindgen_string_get = function(e, n) {
1166
1170
  let i = n, r = typeof i == "string" ? i : void 0;
1167
1171
  var a = K0(r) ? 0 : f(r, s.__wbindgen_malloc_command_export, s.__wbindgen_realloc_command_export), o = u;
1168
- Q().setInt32(e + 4, o, !0), Q().setInt32(e + 0, a, !0);
1172
+ X().setInt32(e + 4, o, !0), X().setInt32(e + 0, a, !0);
1169
1173
  }, t.wbg.__wbindgen_string_new = function(e, n) {
1170
1174
  return E(e, n);
1171
1175
  }, t.wbg.__wbindgen_throw = function(e, n) {
@@ -1173,7 +1177,7 @@ function n4() {
1173
1177
  }, t;
1174
1178
  }
1175
1179
  function i4(t, e) {
1176
- return s = t.exports, y0.__wbindgen_wasm_module = e, U = null, X = null, Y = null, s.__wbindgen_start(), s;
1180
+ return s = t.exports, y0.__wbindgen_wasm_module = e, U = null, Z = null, Q = null, s.__wbindgen_start(), s;
1177
1181
  }
1178
1182
  async function y0(t) {
1179
1183
  if (s !== void 0) return s;
@@ -1254,24 +1258,24 @@ function r4(t) {
1254
1258
  let e = t.replace("#", "");
1255
1259
  return e = e.length === 6 ? `${e}ff` : e, [parseInt(e.slice(0, 2), 16) / 255, parseInt(e.slice(2, 4), 16) / 255, parseInt(e.slice(4, 6), 16) / 255, parseInt(e.slice(6, 8), 16) / 255];
1256
1260
  }
1257
- function Y1(t) {
1261
+ function Q1(t) {
1258
1262
  if (t.byteLength < 4) return !1;
1259
- let e = new Uint8Array(t.slice(0, v1.byteLength));
1260
- for (let n = 0; n < v1.length; n += 1) if (v1[n] !== e[n]) return !1;
1263
+ let e = new Uint8Array(t.slice(0, w1.byteLength));
1264
+ for (let n = 0; n < w1.length; n += 1) if (w1[n] !== e[n]) return !1;
1261
1265
  return !0;
1262
1266
  }
1263
- function Q1(t) {
1267
+ function X1(t) {
1264
1268
  return j0.every((e) => Object.hasOwn(t, e));
1265
1269
  }
1266
- function X1(t) {
1270
+ function Z1(t) {
1267
1271
  if (typeof t == "string") try {
1268
- return Q1(JSON.parse(t));
1272
+ return X1(JSON.parse(t));
1269
1273
  } catch {
1270
1274
  return !1;
1271
1275
  }
1272
- else return Q1(t);
1276
+ else return X1(t);
1273
1277
  }
1274
- function H() {
1278
+ function N() {
1275
1279
  return 1 + ((I ? window.devicePixelRatio : 1) - 1) * 0.75;
1276
1280
  }
1277
1281
  function W(t) {
@@ -1339,7 +1343,7 @@ function a4(t, e, n) {
1339
1343
  l !== r && (r = l, i = null);
1340
1344
  } };
1341
1345
  }
1342
- const w1 = a4(y0, `https://cdn.jsdelivr.net/npm/${J1}@${V1}/dist/dotlottie-player.wasm`, `https://unpkg.com/${J1}@${V1}/dist/dotlottie-player.wasm`), b1 = (t) => {
1346
+ const b1 = a4(y0, `https://cdn.jsdelivr.net/npm/${K1}@${J1}/dist/dotlottie-player.wasm`, `https://unpkg.com/${K1}@${J1}/dist/dotlottie-player.wasm`), y1 = (t) => {
1343
1347
  switch (t) {
1344
1348
  case "reverse":
1345
1349
  return B.Reverse;
@@ -1350,7 +1354,7 @@ const w1 = a4(y0, `https://cdn.jsdelivr.net/npm/${J1}@${V1}/dist/dotlottie-playe
1350
1354
  default:
1351
1355
  return B.Forward;
1352
1356
  }
1353
- }, Z1 = (t) => {
1357
+ }, t0 = (t) => {
1354
1358
  switch (t) {
1355
1359
  case B.Reverse:
1356
1360
  return "reverse";
@@ -1379,16 +1383,16 @@ const w1 = a4(y0, `https://cdn.jsdelivr.net/npm/${J1}@${V1}/dist/dotlottie-playe
1379
1383
  return "contain";
1380
1384
  }
1381
1385
  };
1382
- var w4 = class {
1386
+ var b4 = class {
1383
1387
  constructor(t) {
1384
- c(this, "_canvas", null), c(this, "_pendingLoad", null), c(this, "_context", null), c(this, "_eventManager", void 0), c(this, "_animationFrameId", null), c(this, "_frameManager", void 0), c(this, "_boundAnimationLoop", void 0), c(this, "_dotLottieCore", null), c(this, "_stateMachineId", ""), c(this, "_stateMachineConfig", null), c(this, "_isStateMachineRunning", !1), c(this, "_renderConfig", {}), c(this, "_isFrozen", !1), c(this, "_backgroundColor", null), c(this, "_lastFrameTime", null), c(this, "_boundOnClick", null), c(this, "_boundOnPointerUp", null), c(this, "_boundOnPointerDown", null), c(this, "_boundOnPointerMove", null), c(this, "_boundOnPointerEnter", null), c(this, "_boundOnPointerLeave", null), c(this, "_bufferMismatchCount", 0), c(this, "_lastExpectedBufferSize", 0), c(this, "_cachedImageData", null), c(this, "_cachedImageDataBuffer", null), c(this, "_cachedImageDataByteOffset", 0), c(this, "_marker", ""), c(this, "_segment", null), this._canvas = t.canvas ?? null, this._eventManager = new L0(), this._frameManager = new q0(), this._boundAnimationLoop = this._animationLoop.bind(this), this._renderConfig = { ...t.renderConfig, devicePixelRatio: t.renderConfig?.devicePixelRatio || H(), freezeOnOffscreen: t.renderConfig?.freezeOnOffscreen ?? !0 }, this._initWasm().then(() => {
1385
- this._dotLottieCore = this._createCore(), this._dotLottieCore.set_autoplay(t.autoplay ?? !1), this._dotLottieCore.set_loop(t.loop ?? !1), this._dotLottieCore.set_loop_count(t.loopCount ?? 0), this._dotLottieCore.set_mode(b1(t.mode ?? "forward")), this._dotLottieCore.set_speed(t.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation ?? !0), t.segment && t.segment.length === 2 && (this._segment = [t.segment[0], t.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])), this._marker = t.marker ?? "", this._marker && this._dotLottieCore.set_marker(this._marker), this._dotLottieCore.set_layout(t.layout?.fit ?? "contain", t.layout?.align?.[0] ?? 0.5, t.layout?.align?.[1] ?? 0.5), this._stateMachineId = t.stateMachineId ?? "", this._stateMachineConfig = t.stateMachineConfig ?? null, this._onCoreCreated(), this._eventManager.dispatch({ type: "ready" }), t.data ? this._canvas ? this._loadFromData(t.data) : this._pendingLoad = { data: t.data } : t.src && (this._canvas ? this._loadFromSrc(t.src) : this._pendingLoad = { src: t.src }), t.backgroundColor && this.setBackgroundColor(t.backgroundColor);
1388
+ c(this, "_canvas", null), c(this, "_pendingLoad", null), c(this, "_context", null), c(this, "_eventManager", void 0), c(this, "_animationFrameId", null), c(this, "_frameManager", void 0), c(this, "_boundAnimationLoop", void 0), c(this, "_dotLottieCore", null), c(this, "_stateMachineId", ""), c(this, "_stateMachineConfig", null), c(this, "_isStateMachineRunning", !1), c(this, "_renderConfig", {}), c(this, "_isFrozen", !1), c(this, "_backgroundColor", null), c(this, "_lastFrameTime", null), c(this, "_boundOnClick", null), c(this, "_boundOnPointerUp", null), c(this, "_boundOnPointerDown", null), c(this, "_boundOnPointerMove", null), c(this, "_boundOnPointerEnter", null), c(this, "_boundOnPointerLeave", null), c(this, "_bufferMismatchCount", 0), c(this, "_lastExpectedBufferSize", 0), c(this, "_cachedImageData", null), c(this, "_cachedImageDataBuffer", null), c(this, "_cachedImageDataByteOffset", 0), c(this, "_marker", ""), c(this, "_segment", null), this._canvas = t.canvas ?? null, this._eventManager = new L0(), this._frameManager = new q0(), this._boundAnimationLoop = this._animationLoop.bind(this), this._renderConfig = { ...t.renderConfig, devicePixelRatio: t.renderConfig?.devicePixelRatio || N(), freezeOnOffscreen: t.renderConfig?.freezeOnOffscreen ?? !0 }, this._initWasm().then(() => {
1389
+ this._dotLottieCore = this._createCore(), this._dotLottieCore.set_autoplay(t.autoplay ?? !1), this._dotLottieCore.set_loop(t.loop ?? !1), this._dotLottieCore.set_loop_count(t.loopCount ?? 0), this._dotLottieCore.set_mode(y1(t.mode ?? "forward")), this._dotLottieCore.set_speed(t.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation ?? !0), t.segment && t.segment.length === 2 && (this._segment = [t.segment[0], t.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])), this._marker = t.marker ?? "", this._marker && this._dotLottieCore.set_marker(this._marker), this._dotLottieCore.set_layout(t.layout?.fit ?? "contain", t.layout?.align?.[0] ?? 0.5, t.layout?.align?.[1] ?? 0.5), this._stateMachineId = t.stateMachineId ?? "", this._stateMachineConfig = t.stateMachineConfig ?? null, this._onCoreCreated(), this._eventManager.dispatch({ type: "ready" }), t.data ? this._canvas ? this._loadFromData(t.data) : this._pendingLoad = { data: t.data } : t.src && (this._canvas ? this._loadFromSrc(t.src) : this._pendingLoad = { src: t.src }), t.backgroundColor && this.setBackgroundColor(t.backgroundColor);
1386
1390
  }).catch((e) => {
1387
1391
  console.error("[dotlottie-web] Initialization failed:", e), this._eventManager.dispatch({ type: "loadError", error: Error(`Failed to load wasm module: ${e}`) });
1388
1392
  });
1389
1393
  }
1390
1394
  async _initWasm() {
1391
- return w1.load();
1395
+ return b1.load();
1392
1396
  }
1393
1397
  _createCore() {
1394
1398
  return new t4();
@@ -1495,7 +1499,7 @@ var w4 = class {
1495
1499
  let e = await fetch(t);
1496
1500
  if (!e.ok) throw Error(`Failed to fetch animation data from URL: ${t}. ${e.status}: ${e.statusText}`);
1497
1501
  let n = await e.arrayBuffer();
1498
- return Y1(n) ? n : new TextDecoder().decode(n);
1502
+ return Q1(n) ? n : new TextDecoder().decode(n);
1499
1503
  }
1500
1504
  _loadFromData(t) {
1501
1505
  if (this._dotLottieCore === null) return;
@@ -1507,19 +1511,19 @@ var w4 = class {
1507
1511
  this._setupTarget(e, n);
1508
1512
  let i = !1;
1509
1513
  if (typeof t == "string") {
1510
- if (!X1(t)) {
1514
+ if (!Z1(t)) {
1511
1515
  this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");
1512
1516
  return;
1513
1517
  }
1514
1518
  i = this._dotLottieCore.load_animation(t);
1515
1519
  } else if (t instanceof ArrayBuffer) {
1516
- if (!Y1(t)) {
1520
+ if (!Q1(t)) {
1517
1521
  this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");
1518
1522
  return;
1519
1523
  }
1520
1524
  i = this._dotLottieCore.load_dotlottie_data(new Uint8Array(t));
1521
1525
  } else if (typeof t == "object") {
1522
- if (!X1(t)) {
1526
+ if (!Z1(t)) {
1523
1527
  this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");
1524
1528
  return;
1525
1529
  }
@@ -1535,7 +1539,7 @@ var w4 = class {
1535
1539
  if (i) {
1536
1540
  if (this._renderConfig.quality !== void 0 && this._dotLottieCore.set_quality(this._renderConfig.quality), I && this.resize(), this._drainPlayerEvents({ skipFrame: !!this._marker || !!this._segment }), this._marker && this._dotLottieCore.set_marker(this._marker), this._segment) {
1537
1541
  this._dotLottieCore.set_segment(this._segment[0], this._segment[1]);
1538
- let r = Z1(this._dotLottieCore.mode()), a = r === "reverse" || r === "reverse-bounce" ? this._segment[1] : this._segment[0];
1542
+ let r = t0(this._dotLottieCore.mode()), a = r === "reverse" || r === "reverse-bounce" ? this._segment[1] : this._segment[0];
1539
1543
  this._dotLottieCore.set_frame(a);
1540
1544
  }
1541
1545
  setTimeout(() => {
@@ -1581,7 +1585,7 @@ var w4 = class {
1581
1585
  return this._dotLottieCore?.loop_animation() ?? !1;
1582
1586
  }
1583
1587
  get mode() {
1584
- return this._dotLottieCore ? Z1(this._dotLottieCore.mode()) : "forward";
1588
+ return this._dotLottieCore ? t0(this._dotLottieCore.mode()) : "forward";
1585
1589
  }
1586
1590
  get isFrozen() {
1587
1591
  return this._isFrozen;
@@ -1632,7 +1636,7 @@ var w4 = class {
1632
1636
  return this._canvas;
1633
1637
  }
1634
1638
  load(t) {
1635
- this._dotLottieCore !== null && (this._stopAnimationLoop(), this._cleanupCanvas(), this._isFrozen = !1, this._dotLottieCore.set_autoplay(t.autoplay ?? !1), this._dotLottieCore.set_loop(t.loop ?? !1), this._dotLottieCore.set_loop_count(t.loopCount ?? 0), this._dotLottieCore.set_mode(b1(t.mode ?? "forward")), this._dotLottieCore.set_speed(t.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation ?? !0), t.segment && t.segment.length === 2 ? (this._segment = [t.segment[0], t.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])) : (this._segment = null, this._dotLottieCore.clear_segment()), this._marker = t.marker ?? "", this._marker ? this._dotLottieCore.set_marker(this._marker) : this._dotLottieCore.clear_marker(), this._dotLottieCore.set_layout(t.layout?.fit ?? "contain", t.layout?.align?.[0] ?? 0.5, t.layout?.align?.[1] ?? 0.5), t.data ? this._canvas ? this._loadFromData(t.data) : this._pendingLoad = { data: t.data } : t.src && (this._canvas ? this._loadFromSrc(t.src) : this._pendingLoad = { src: t.src }), t.backgroundColor && this.setBackgroundColor(t.backgroundColor));
1639
+ this._dotLottieCore !== null && (this._stopAnimationLoop(), this._cleanupCanvas(), this._isFrozen = !1, this._dotLottieCore.set_autoplay(t.autoplay ?? !1), this._dotLottieCore.set_loop(t.loop ?? !1), this._dotLottieCore.set_loop_count(t.loopCount ?? 0), this._dotLottieCore.set_mode(y1(t.mode ?? "forward")), this._dotLottieCore.set_speed(t.speed ?? 1), this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation ?? !0), t.segment && t.segment.length === 2 ? (this._segment = [t.segment[0], t.segment[1]], this._dotLottieCore.set_segment(this._segment[0], this._segment[1])) : (this._segment = null, this._dotLottieCore.clear_segment()), this._marker = t.marker ?? "", this._marker ? this._dotLottieCore.set_marker(this._marker) : this._dotLottieCore.clear_marker(), this._dotLottieCore.set_layout(t.layout?.fit ?? "contain", t.layout?.align?.[0] ?? 0.5, t.layout?.align?.[1] ?? 0.5), t.data ? this._canvas ? this._loadFromData(t.data) : this._pendingLoad = { data: t.data } : t.src && (this._canvas ? this._loadFromSrc(t.src) : this._pendingLoad = { src: t.src }), t.backgroundColor && this.setBackgroundColor(t.backgroundColor));
1636
1640
  }
1637
1641
  _draw() {
1638
1642
  if (this._dotLottieCore === null || this._canvas === null || (!this._context && "getContext" in this._canvas && typeof this._canvas.getContext == "function" && (typeof HTMLCanvasElement < "u" && this._canvas instanceof HTMLCanvasElement || typeof OffscreenCanvas < "u" && this._canvas instanceof OffscreenCanvas) && (this._context = this._canvas.getContext("2d")), !this._context)) return;
@@ -1786,11 +1790,11 @@ var w4 = class {
1786
1790
  this._dotLottieCore !== null && (this._segment = null, this._dotLottieCore.clear_segment());
1787
1791
  }
1788
1792
  setMode(t) {
1789
- this._dotLottieCore !== null && this._dotLottieCore.set_mode(b1(t));
1793
+ this._dotLottieCore !== null && this._dotLottieCore.set_mode(y1(t));
1790
1794
  }
1791
1795
  setRenderConfig(t) {
1792
1796
  let { devicePixelRatio: e, freezeOnOffscreen: n, quality: i, ...r } = t;
1793
- this._renderConfig = { ...this._renderConfig, ...r, devicePixelRatio: e || H(), freezeOnOffscreen: n ?? !0, ...i !== void 0 && { quality: i } }, i !== void 0 && this._dotLottieCore && this._dotLottieCore.set_quality(i), I && this._canvas instanceof HTMLCanvasElement && (this._renderConfig.autoResize ? D.observe(this._canvas, this) : D.unobserve(this._canvas), this._renderConfig.freezeOnOffscreen ? (A.observe(this._canvas, this), W(this._canvas) || this.freeze()) : (A.unobserve(this._canvas), this._isFrozen && this.unfreeze()));
1797
+ this._renderConfig = { ...this._renderConfig, ...r, devicePixelRatio: e || N(), freezeOnOffscreen: n ?? !0, ...i !== void 0 && { quality: i } }, i !== void 0 && this._dotLottieCore && this._dotLottieCore.set_quality(i), I && this._canvas instanceof HTMLCanvasElement && (this._renderConfig.autoResize ? D.observe(this._canvas, this) : D.unobserve(this._canvas), this._renderConfig.freezeOnOffscreen ? (A.observe(this._canvas, this), W(this._canvas) || this.freeze()) : (A.unobserve(this._canvas), this._isFrozen && this.unfreeze()));
1794
1798
  }
1795
1799
  loadAnimation(t) {
1796
1800
  this._dotLottieCore === null || this._dotLottieCore.animation_id() === t || !this._canvas || (this._setupTarget(this._canvas.width, this._canvas.height), this._dotLottieCore.load_animation_from_id(t) ? (this._renderConfig.quality !== void 0 && this._dotLottieCore.set_quality(this._renderConfig.quality), this.resize(), this._drainPlayerEvents(), this._dotLottieCore.render(), this._draw()) : this._dispatchError(`Failed to load animation with id: ${t}`));
@@ -1910,11 +1914,11 @@ var w4 = class {
1910
1914
  return this._dotLottieCore === null ? !1 : this._dotLottieCore.set_viewport(t, e, n, i);
1911
1915
  }
1912
1916
  static setWasmUrl(t) {
1913
- w1.setWasmUrl(t);
1917
+ b1.setWasmUrl(t);
1914
1918
  }
1915
1919
  static async registerFont(t, e) {
1916
1920
  try {
1917
- await w1.load();
1921
+ await b1.load();
1918
1922
  let n;
1919
1923
  if (typeof e == "string") {
1920
1924
  let r = await fetch(e);
@@ -2104,26 +2108,26 @@ var w4 = class {
2104
2108
  this._rpcHandlers.delete(t);
2105
2109
  }
2106
2110
  };
2107
- function t0(t, e) {
2111
+ function e0(t, e) {
2108
2112
  if (typeof HTMLCanvasElement < "u" && t instanceof HTMLCanvasElement) {
2109
2113
  let { height: n, width: i } = t.getBoundingClientRect();
2110
2114
  if (n !== 0 && i !== 0) return { width: i * e, height: n * e };
2111
2115
  }
2112
2116
  return { width: t.width, height: t.height };
2113
2117
  }
2114
- function y1() {
2118
+ function L1() {
2115
2119
  return Date.now().toString(36) + Math.random().toString(36).substr(2, 9);
2116
2120
  }
2117
- var e0 = class x {
2121
+ var n0 = class x {
2118
2122
  constructor(e) {
2119
- if (c(this, "_eventManager", new L0()), c(this, "_id", void 0), c(this, "_worker", void 0), c(this, "_canvas", void 0), c(this, "_dotLottieInstanceState", { loopCount: 0, markers: [], autoplay: !1, backgroundColor: "", currentFrame: 0, duration: 0, loop: !1, mode: "forward", segment: [0, 0], speed: 1, totalFrames: 0, isLoaded: !1, isPlaying: !1, isPaused: !1, isStopped: !0, isFrozen: !1, useFrameInterpolation: !1, renderConfig: { devicePixelRatio: H() }, activeAnimationId: "", activeThemeId: "", layout: void 0, marker: "", isReady: !1, manifest: null }), c(this, "_created", !1), c(this, "_boundOnClick", null), c(this, "_boundOnPointerUp", null), c(this, "_boundOnPointerDown", null), c(this, "_boundOnPointerMove", null), c(this, "_boundOnPointerEnter", null), c(this, "_boundOnPointerLeave", null), c(this, "_pendingConfig", null), e.canvas) {
2123
+ if (c(this, "_eventManager", new L0()), c(this, "_id", void 0), c(this, "_worker", void 0), c(this, "_canvas", void 0), c(this, "_dotLottieInstanceState", { loopCount: 0, markers: [], autoplay: !1, backgroundColor: "", currentFrame: 0, duration: 0, loop: !1, mode: "forward", segment: [0, 0], speed: 1, totalFrames: 0, isLoaded: !1, isPlaying: !1, isPaused: !1, isStopped: !0, isFrozen: !1, useFrameInterpolation: !1, renderConfig: { devicePixelRatio: N() }, activeAnimationId: "", activeThemeId: "", layout: void 0, marker: "", isReady: !1, manifest: null }), c(this, "_created", !1), c(this, "_boundOnClick", null), c(this, "_boundOnPointerUp", null), c(this, "_boundOnPointerDown", null), c(this, "_boundOnPointerMove", null), c(this, "_boundOnPointerEnter", null), c(this, "_boundOnPointerLeave", null), c(this, "_pendingConfig", null), e.canvas) {
2120
2124
  let r = typeof HTMLCanvasElement < "u" && e.canvas instanceof HTMLCanvasElement, a = typeof OffscreenCanvas < "u" && e.canvas instanceof OffscreenCanvas;
2121
2125
  if (!r && !a) throw Error("Worker-based DotLottie requires HTMLCanvasElement or OffscreenCanvas");
2122
2126
  }
2123
- this._canvas = e.canvas ?? null, this._id = `dotlottie-${y1()}`;
2127
+ this._canvas = e.canvas ?? null, this._id = `dotlottie-${L1()}`;
2124
2128
  let n = e.workerId || "defaultWorker";
2125
2129
  this._worker = x._workerManager.getWorker(n), x._workerManager.assignAnimationToWorker(this._id, n), x._wasmUrl && this._sendMessage("setWasmUrl", { url: x._wasmUrl });
2126
- let i = { ...e, renderConfig: { ...e.renderConfig, devicePixelRatio: e.renderConfig?.devicePixelRatio || H(), freezeOnOffscreen: e.renderConfig?.freezeOnOffscreen ?? !0 } };
2130
+ let i = { ...e, renderConfig: { ...e.renderConfig, devicePixelRatio: e.renderConfig?.devicePixelRatio || N(), freezeOnOffscreen: e.renderConfig?.freezeOnOffscreen ?? !0 } };
2127
2131
  this._pendingConfig = i, this._canvas && (this._create(i), this._pendingConfig = null), x._workerManager.registerEventHandler(this._id, this._handleWorkerEvent.bind(this));
2128
2132
  }
2129
2133
  async _handleWorkerEvent(e) {
@@ -2138,7 +2142,7 @@ var e0 = class x {
2138
2142
  if (!this._canvas) return;
2139
2143
  let n;
2140
2144
  n = this._canvas instanceof HTMLCanvasElement ? this._canvas.transferControlToOffscreen() : this._canvas;
2141
- let { instanceId: i } = await this._sendMessage("create", { instanceId: this._id, config: { ...e, canvas: n }, ...t0(this._canvas, e.renderConfig?.devicePixelRatio || H()) }, [n]);
2145
+ let { instanceId: i } = await this._sendMessage("create", { instanceId: this._id, config: { ...e, canvas: n }, ...e0(this._canvas, e.renderConfig?.devicePixelRatio || N()) }, [n]);
2142
2146
  if (i !== this._id) throw Error("Instance ID mismatch");
2143
2147
  this._created = !0, await this._updateDotLottieInstanceState();
2144
2148
  }
@@ -2249,7 +2253,7 @@ var e0 = class x {
2249
2253
  async setRenderConfig(e) {
2250
2254
  if (!this._created) return;
2251
2255
  let { devicePixelRatio: n, freezeOnOffscreen: i, quality: r, ...a } = e;
2252
- await this._sendMessage("setRenderConfig", { instanceId: this._id, renderConfig: { ...this._dotLottieInstanceState.renderConfig, ...a, devicePixelRatio: n || H(), freezeOnOffscreen: i ?? !0, ...r !== void 0 && { quality: r } } }), await this._updateDotLottieInstanceState(), I && this._canvas instanceof HTMLCanvasElement && (this._dotLottieInstanceState.renderConfig.autoResize ? D.observe(this._canvas, this) : D.unobserve(this._canvas), this._dotLottieInstanceState.renderConfig.freezeOnOffscreen ? (A.observe(this._canvas, this), W(this._canvas) || await this.freeze()) : (A.unobserve(this._canvas), this._dotLottieInstanceState.isFrozen && await this.unfreeze()));
2256
+ await this._sendMessage("setRenderConfig", { instanceId: this._id, renderConfig: { ...this._dotLottieInstanceState.renderConfig, ...a, devicePixelRatio: n || N(), freezeOnOffscreen: i ?? !0, ...r !== void 0 && { quality: r } } }), await this._updateDotLottieInstanceState(), I && this._canvas instanceof HTMLCanvasElement && (this._dotLottieInstanceState.renderConfig.autoResize ? D.observe(this._canvas, this) : D.unobserve(this._canvas), this._dotLottieInstanceState.renderConfig.freezeOnOffscreen ? (A.observe(this._canvas, this), W(this._canvas) || await this.freeze()) : (A.unobserve(this._canvas), this._dotLottieInstanceState.isFrozen && await this.unfreeze()));
2253
2257
  }
2254
2258
  async setUseFrameInterpolation(e) {
2255
2259
  this._created && (await this._sendMessage("setUseFrameInterpolation", { instanceId: this._id, useFrameInterpolation: e }), await this._updateDotLottieInstanceState());
@@ -2274,7 +2278,7 @@ var e0 = class x {
2274
2278
  }
2275
2279
  async resize() {
2276
2280
  if (!this._created || !this._canvas) return;
2277
- let { height: e, width: n } = t0(this._canvas, this._dotLottieInstanceState.renderConfig.devicePixelRatio || H());
2281
+ let { height: e, width: n } = e0(this._canvas, this._dotLottieInstanceState.renderConfig.devicePixelRatio || N());
2278
2282
  await this._sendMessage("resize", { height: e, instanceId: this._id, width: n }), await this._updateDotLottieInstanceState();
2279
2283
  }
2280
2284
  async destroy() {
@@ -2366,7 +2370,7 @@ var e0 = class x {
2366
2370
  if (this._created) return this._sendMessage("getTransform", { instanceId: this._id });
2367
2371
  }
2368
2372
  async _sendMessage(e, n, i) {
2369
- let r = { id: `dotlottie-request-${y1()}`, method: e, params: n };
2373
+ let r = { id: `dotlottie-request-${L1()}`, method: e, params: n };
2370
2374
  return new Promise((a, o) => {
2371
2375
  x._workerManager.registerRpcReplyHandler(r.id, (l) => {
2372
2376
  x._workerManager.unregisterRpcReplyHandler(r.id);
@@ -2386,7 +2390,7 @@ var e0 = class x {
2386
2390
  }
2387
2391
  static async registerFont(e, n) {
2388
2392
  try {
2389
- let i = y1();
2393
+ let i = L1();
2390
2394
  return x._workerManager.broadcastMessage({ id: i, method: "registerFont", params: { fontName: e, fontSource: n } }), !0;
2391
2395
  } catch (i) {
2392
2396
  return console.error(`Error broadcasting registerFont for "${e}":`, i), !1;
@@ -2508,28 +2512,29 @@ var e0 = class x {
2508
2512
  I && this._canvas instanceof HTMLCanvasElement && (this._boundOnClick && (this._canvas.removeEventListener("click", this._boundOnClick), this._boundOnClick = null), this._boundOnPointerUp && (this._canvas.removeEventListener("pointerup", this._boundOnPointerUp), this._boundOnPointerUp = null), this._boundOnPointerDown && (this._canvas.removeEventListener("pointerdown", this._boundOnPointerDown), this._boundOnPointerDown = null), this._boundOnPointerMove && (this._canvas.removeEventListener("pointermove", this._boundOnPointerMove), this._boundOnPointerMove = null), this._boundOnPointerEnter && (this._canvas.removeEventListener("pointerenter", this._boundOnPointerEnter), this._boundOnPointerEnter = null), this._boundOnPointerLeave && (this._canvas.removeEventListener("pointerleave", this._boundOnPointerLeave), this._boundOnPointerLeave = null));
2509
2513
  }
2510
2514
  };
2511
- c(e0, "_workerManager", new l4()), c(e0, "_wasmUrl", "");
2512
- const b4 = (t, e = !1) => typeof t == "boolean" ? t : typeof t == "string" ? t === "true" || t === "" : e, d4 = "11.5.0", y4 = {
2515
+ c(n0, "_workerManager", new l4()), c(n0, "_wasmUrl", "");
2516
+ const y4 = (t, e = !1) => typeof t == "boolean" ? t : typeof t == "string" ? t === "true" || t === "" : e, d4 = "11.6.0", L4 = {
2513
2517
  version: d4
2514
2518
  };
2515
2519
  export {
2516
- g4 as A,
2520
+ v4 as A,
2517
2521
  E0 as H,
2518
2522
  c4 as I,
2519
2523
  u4 as J,
2520
2524
  z as S,
2521
2525
  D0 as T,
2522
- q as _,
2523
- w4 as a,
2526
+ g4 as _,
2527
+ b4 as a,
2528
+ q as b,
2524
2529
  m4 as d,
2525
- b4 as g,
2530
+ y4 as g,
2526
2531
  p1 as k,
2527
2532
  v as l,
2528
- y4 as p,
2529
- v4 as r,
2533
+ L4 as p,
2534
+ w4 as r,
2530
2535
  M0 as t,
2531
2536
  p4 as u,
2532
2537
  l1 as x,
2533
2538
  f4 as y
2534
2539
  };
2535
- //# sourceMappingURL=package-BmVbDNny.js.map
2540
+ //# sourceMappingURL=package-CjZI-cNQ.js.map