@arthurzakharov/ui-kit 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,28 @@
1
1
  import { jsxs as Q, jsx as z } from "react/jsx-runtime";
2
- import Le, { useRef as ze, useState as Se, useCallback as re, useEffect as de } from "react";
3
- import { g as Fe, a as qe } from "../../input.component-C5xcmnfu.js";
4
- import { useResizeObserver as Be } from "usehooks-ts";
5
- import { RefreshCw as Ue, Loader as Ne, Check as Ye } from "lucide-react";
6
- import He from "clsx";
2
+ import ze, { useRef as Fe, useState as Se, useCallback as re, useEffect as de } from "react";
3
+ import { g as qe, a as Be } from "../../input.component-C5xcmnfu.js";
4
+ import { useResizeObserver as Ue } from "usehooks-ts";
5
+ import { RefreshCw as Ne, Check as Ye } from "lucide-react";
6
+ import Pe from "clsx";
7
7
  import { Animation as ee } from "../../animations/animation.component.js";
8
8
  import { C as oe } from "../../control.component-B9Ao9mfl.js";
9
9
  import { Flex as ie } from "../flex/flex.component.js";
10
- import { Text as Pe } from "../text/text.component.js";
10
+ import { Text as we } from "../text/text.component.js";
11
+ import { Loader as He } from "../loader/loader.component.js";
11
12
  import '../../assets/signature-CLmBTe_C.css';var le = { exports: {} }, ue = { exports: {} }, ce = { exports: {} }, I = {};
12
- var we;
13
+ var Ee;
13
14
  function Ve() {
14
- if (we) return I;
15
- we = 1;
16
- var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, i = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
15
+ if (Ee) return I;
16
+ Ee = 1;
17
+ var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, u = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, i = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, x = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, C = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
17
18
  function $(f) {
18
19
  if (typeof f == "object" && f !== null) {
19
- var N = f.$$typeof;
20
- switch (N) {
20
+ var Z = f.$$typeof;
21
+ switch (Z) {
21
22
  case a:
22
23
  switch (f = f.type, f) {
23
- case d:
24
- case s:
24
+ case p:
25
+ case c:
25
26
  case t:
26
27
  case o:
27
28
  case n:
@@ -32,27 +33,27 @@ function Ve() {
32
33
  case i:
33
34
  case l:
34
35
  case b:
35
- case _:
36
- case c:
36
+ case x:
37
+ case u:
37
38
  return f;
38
39
  default:
39
- return N;
40
+ return Z;
40
41
  }
41
42
  }
42
43
  case r:
43
- return N;
44
+ return Z;
44
45
  }
45
46
  }
46
47
  }
47
- function D(f) {
48
- return $(f) === s;
48
+ function k(f) {
49
+ return $(f) === c;
49
50
  }
50
- return I.AsyncMode = d, I.ConcurrentMode = s, I.ContextConsumer = i, I.ContextProvider = c, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = b, I.Memo = _, I.Portal = r, I.Profiler = o, I.StrictMode = n, I.Suspense = v, I.isAsyncMode = function(f) {
51
- return D(f) || $(f) === d;
52
- }, I.isConcurrentMode = D, I.isContextConsumer = function(f) {
51
+ return I.AsyncMode = p, I.ConcurrentMode = c, I.ContextConsumer = i, I.ContextProvider = u, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = b, I.Memo = x, I.Portal = r, I.Profiler = o, I.StrictMode = n, I.Suspense = v, I.isAsyncMode = function(f) {
52
+ return k(f) || $(f) === p;
53
+ }, I.isConcurrentMode = k, I.isContextConsumer = function(f) {
53
54
  return $(f) === i;
54
55
  }, I.isContextProvider = function(f) {
55
- return $(f) === c;
56
+ return $(f) === u;
56
57
  }, I.isElement = function(f) {
57
58
  return typeof f == "object" && f !== null && f.$$typeof === a;
58
59
  }, I.isForwardRef = function(f) {
@@ -62,7 +63,7 @@ function Ve() {
62
63
  }, I.isLazy = function(f) {
63
64
  return $(f) === b;
64
65
  }, I.isMemo = function(f) {
65
- return $(f) === _;
66
+ return $(f) === x;
66
67
  }, I.isPortal = function(f) {
67
68
  return $(f) === r;
68
69
  }, I.isProfiler = function(f) {
@@ -72,27 +73,27 @@ function Ve() {
72
73
  }, I.isSuspense = function(f) {
73
74
  return $(f) === v;
74
75
  }, I.isValidElementType = function(f) {
75
- return typeof f == "string" || typeof f == "function" || f === t || f === s || f === o || f === n || f === v || f === y || typeof f == "object" && f !== null && (f.$$typeof === b || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === i || f.$$typeof === l || f.$$typeof === T || f.$$typeof === x || f.$$typeof === q || f.$$typeof === m);
76
+ return typeof f == "string" || typeof f == "function" || f === t || f === c || f === o || f === n || f === v || f === m || typeof f == "object" && f !== null && (f.$$typeof === b || f.$$typeof === x || f.$$typeof === u || f.$$typeof === i || f.$$typeof === l || f.$$typeof === C || f.$$typeof === g || f.$$typeof === q || f.$$typeof === y);
76
77
  }, I.typeOf = $, I;
77
78
  }
78
79
  var j = {};
79
- var Ee;
80
+ var Te;
80
81
  function Xe() {
81
- return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && (function() {
82
- var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, i = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
83
- function $(p) {
84
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
85
- p === t || p === s || p === o || p === n || p === v || p === y || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === _ || p.$$typeof === c || p.$$typeof === i || p.$$typeof === l || p.$$typeof === T || p.$$typeof === x || p.$$typeof === q || p.$$typeof === m);
82
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && (function() {
83
+ var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, u = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, i = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, x = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, C = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
84
+ function $(h) {
85
+ return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
86
+ h === t || h === c || h === o || h === n || h === v || h === m || typeof h == "object" && h !== null && (h.$$typeof === b || h.$$typeof === x || h.$$typeof === u || h.$$typeof === i || h.$$typeof === l || h.$$typeof === C || h.$$typeof === g || h.$$typeof === q || h.$$typeof === y);
86
87
  }
87
- function D(p) {
88
- if (typeof p == "object" && p !== null) {
89
- var G = p.$$typeof;
88
+ function k(h) {
89
+ if (typeof h == "object" && h !== null) {
90
+ var G = h.$$typeof;
90
91
  switch (G) {
91
92
  case a:
92
- var se = p.type;
93
+ var se = h.type;
93
94
  switch (se) {
94
- case d:
95
- case s:
95
+ case p:
96
+ case c:
96
97
  case t:
97
98
  case o:
98
99
  case n:
@@ -104,8 +105,8 @@ function Xe() {
104
105
  case i:
105
106
  case l:
106
107
  case b:
107
- case _:
108
- case c:
108
+ case x:
109
+ case u:
109
110
  return be;
110
111
  default:
111
112
  return G;
@@ -116,57 +117,57 @@ function Xe() {
116
117
  }
117
118
  }
118
119
  }
119
- var f = d, N = s, X = i, te = c, k = a, w = l, B = t, F = b, g = _, K = r, ae = o, H = n, J = v, U = !1;
120
- function Z(p) {
121
- return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), u(p) || D(p) === d;
120
+ var f = p, Z = c, te = i, N = u, E = a, w = l, B = t, F = b, _ = x, K = r, ae = o, H = n, X = v, U = !1;
121
+ function J(h) {
122
+ return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(h) || k(h) === p;
122
123
  }
123
- function u(p) {
124
- return D(p) === s;
124
+ function s(h) {
125
+ return k(h) === c;
125
126
  }
126
- function h(p) {
127
- return D(p) === i;
127
+ function d(h) {
128
+ return k(h) === i;
128
129
  }
129
- function S(p) {
130
- return D(p) === c;
130
+ function S(h) {
131
+ return k(h) === u;
131
132
  }
132
- function C(p) {
133
- return typeof p == "object" && p !== null && p.$$typeof === a;
133
+ function R(h) {
134
+ return typeof h == "object" && h !== null && h.$$typeof === a;
134
135
  }
135
- function P(p) {
136
- return D(p) === l;
136
+ function P(h) {
137
+ return k(h) === l;
137
138
  }
138
- function O(p) {
139
- return D(p) === t;
139
+ function M(h) {
140
+ return k(h) === t;
140
141
  }
141
- function E(p) {
142
- return D(p) === b;
142
+ function T(h) {
143
+ return k(h) === b;
143
144
  }
144
- function R(p) {
145
- return D(p) === _;
145
+ function O(h) {
146
+ return k(h) === x;
146
147
  }
147
- function M(p) {
148
- return D(p) === r;
148
+ function A(h) {
149
+ return k(h) === r;
149
150
  }
150
- function W(p) {
151
- return D(p) === o;
151
+ function W(h) {
152
+ return k(h) === o;
152
153
  }
153
- function A(p) {
154
- return D(p) === n;
154
+ function D(h) {
155
+ return k(h) === n;
155
156
  }
156
- function Y(p) {
157
- return D(p) === v;
157
+ function Y(h) {
158
+ return k(h) === v;
158
159
  }
159
- j.AsyncMode = f, j.ConcurrentMode = N, j.ContextConsumer = X, j.ContextProvider = te, j.Element = k, j.ForwardRef = w, j.Fragment = B, j.Lazy = F, j.Memo = g, j.Portal = K, j.Profiler = ae, j.StrictMode = H, j.Suspense = J, j.isAsyncMode = Z, j.isConcurrentMode = u, j.isContextConsumer = h, j.isContextProvider = S, j.isElement = C, j.isForwardRef = P, j.isFragment = O, j.isLazy = E, j.isMemo = R, j.isPortal = M, j.isProfiler = W, j.isStrictMode = A, j.isSuspense = Y, j.isValidElementType = $, j.typeOf = D;
160
+ j.AsyncMode = f, j.ConcurrentMode = Z, j.ContextConsumer = te, j.ContextProvider = N, j.Element = E, j.ForwardRef = w, j.Fragment = B, j.Lazy = F, j.Memo = _, j.Portal = K, j.Profiler = ae, j.StrictMode = H, j.Suspense = X, j.isAsyncMode = J, j.isConcurrentMode = s, j.isContextConsumer = d, j.isContextProvider = S, j.isElement = R, j.isForwardRef = P, j.isFragment = M, j.isLazy = T, j.isMemo = O, j.isPortal = A, j.isProfiler = W, j.isStrictMode = D, j.isSuspense = Y, j.isValidElementType = $, j.typeOf = k;
160
161
  })()), j;
161
162
  }
162
- var Te;
163
- function $e() {
164
- return Te || (Te = 1, process.env.NODE_ENV === "production" ? ce.exports = Ve() : ce.exports = Xe()), ce.exports;
163
+ var Ce;
164
+ function We() {
165
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? ce.exports = Ve() : ce.exports = Xe()), ce.exports;
165
166
  }
166
- var he, Ce;
167
+ var he, Re;
167
168
  function Je() {
168
- if (Ce) return he;
169
- Ce = 1;
169
+ if (Re) return he;
170
+ Re = 1;
170
171
  var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
171
172
  function t(o) {
172
173
  if (o == null)
@@ -180,86 +181,86 @@ function Je() {
180
181
  var o = new String("abc");
181
182
  if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
182
183
  return !1;
183
- for (var c = {}, i = 0; i < 10; i++)
184
- c["_" + String.fromCharCode(i)] = i;
185
- var d = Object.getOwnPropertyNames(c).map(function(l) {
186
- return c[l];
184
+ for (var u = {}, i = 0; i < 10; i++)
185
+ u["_" + String.fromCharCode(i)] = i;
186
+ var p = Object.getOwnPropertyNames(u).map(function(l) {
187
+ return u[l];
187
188
  });
188
- if (d.join("") !== "0123456789")
189
+ if (p.join("") !== "0123456789")
189
190
  return !1;
190
- var s = {};
191
+ var c = {};
191
192
  return "abcdefghijklmnopqrst".split("").forEach(function(l) {
192
- s[l] = l;
193
- }), Object.keys(Object.assign({}, s)).join("") === "abcdefghijklmnopqrst";
193
+ c[l] = l;
194
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
194
195
  } catch {
195
196
  return !1;
196
197
  }
197
198
  }
198
- return he = n() ? Object.assign : function(o, c) {
199
- for (var i, d = t(o), s, l = 1; l < arguments.length; l++) {
199
+ return he = n() ? Object.assign : function(o, u) {
200
+ for (var i, p = t(o), c, l = 1; l < arguments.length; l++) {
200
201
  i = Object(arguments[l]);
201
202
  for (var v in i)
202
- a.call(i, v) && (d[v] = i[v]);
203
+ a.call(i, v) && (p[v] = i[v]);
203
204
  if (e) {
204
- s = e(i);
205
- for (var y = 0; y < s.length; y++)
206
- r.call(i, s[y]) && (d[s[y]] = i[s[y]]);
205
+ c = e(i);
206
+ for (var m = 0; m < c.length; m++)
207
+ r.call(i, c[m]) && (p[c[m]] = i[c[m]]);
207
208
  }
208
209
  }
209
- return d;
210
+ return p;
210
211
  }, he;
211
212
  }
212
- var pe, Re;
213
+ var pe, Oe;
213
214
  function _e() {
214
- if (Re) return pe;
215
- Re = 1;
215
+ if (Oe) return pe;
216
+ Oe = 1;
216
217
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
217
218
  return pe = e, pe;
218
219
  }
219
- var ve, Oe;
220
- function We() {
221
- return Oe || (Oe = 1, ve = Function.call.bind(Object.prototype.hasOwnProperty)), ve;
220
+ var ve, Me;
221
+ function Le() {
222
+ return Me || (Me = 1, ve = Function.call.bind(Object.prototype.hasOwnProperty)), ve;
222
223
  }
223
- var ye, Me;
224
+ var ye, Ae;
224
225
  function Ze() {
225
- if (Me) return ye;
226
- Me = 1;
226
+ if (Ae) return ye;
227
+ Ae = 1;
227
228
  var e = function() {
228
229
  };
229
230
  if (process.env.NODE_ENV !== "production") {
230
- var a = /* @__PURE__ */ _e(), r = {}, t = /* @__PURE__ */ We();
231
+ var a = /* @__PURE__ */ _e(), r = {}, t = /* @__PURE__ */ Le();
231
232
  e = function(o) {
232
- var c = "Warning: " + o;
233
- typeof console < "u" && console.error(c);
233
+ var u = "Warning: " + o;
234
+ typeof console < "u" && console.error(u);
234
235
  try {
235
- throw new Error(c);
236
+ throw new Error(u);
236
237
  } catch {
237
238
  }
238
239
  };
239
240
  }
240
- function n(o, c, i, d, s) {
241
+ function n(o, u, i, p, c) {
241
242
  if (process.env.NODE_ENV !== "production") {
242
243
  for (var l in o)
243
244
  if (t(o, l)) {
244
245
  var v;
245
246
  try {
246
247
  if (typeof o[l] != "function") {
247
- var y = Error(
248
- (d || "React class") + ": " + i + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
248
+ var m = Error(
249
+ (p || "React class") + ": " + i + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
249
250
  );
250
- throw y.name = "Invariant Violation", y;
251
+ throw m.name = "Invariant Violation", m;
251
252
  }
252
- v = o[l](c, l, d, i, null, a);
253
+ v = o[l](u, l, p, i, null, a);
253
254
  } catch (b) {
254
255
  v = b;
255
256
  }
256
257
  if (v && !(v instanceof Error) && e(
257
- (d || "React class") + ": type specification of " + i + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
258
+ (p || "React class") + ": type specification of " + i + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
258
259
  ), v instanceof Error && !(v.message in r)) {
259
260
  r[v.message] = !0;
260
- var _ = s ? s() : "";
261
+ var x = c ? c() : "";
261
262
  e(
262
- "Failed " + i + " type: " + v.message + (_ ?? "")
263
+ "Failed " + i + " type: " + v.message + (x ?? "")
263
264
  );
264
265
  }
265
266
  }
@@ -269,278 +270,278 @@ function Ze() {
269
270
  process.env.NODE_ENV !== "production" && (r = {});
270
271
  }, ye = n, ye;
271
272
  }
272
- var me, Ae;
273
+ var me, De;
273
274
  function Ge() {
274
- if (Ae) return me;
275
- Ae = 1;
276
- var e = $e(), a = Je(), r = /* @__PURE__ */ _e(), t = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ze(), o = function() {
275
+ if (De) return me;
276
+ De = 1;
277
+ var e = We(), a = Je(), r = /* @__PURE__ */ _e(), t = /* @__PURE__ */ Le(), n = /* @__PURE__ */ Ze(), o = function() {
277
278
  };
278
279
  process.env.NODE_ENV !== "production" && (o = function(i) {
279
- var d = "Warning: " + i;
280
- typeof console < "u" && console.error(d);
280
+ var p = "Warning: " + i;
281
+ typeof console < "u" && console.error(p);
281
282
  try {
282
- throw new Error(d);
283
+ throw new Error(p);
283
284
  } catch {
284
285
  }
285
286
  });
286
- function c() {
287
+ function u() {
287
288
  return null;
288
289
  }
289
- return me = function(i, d) {
290
- var s = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
291
- function v(u) {
292
- var h = u && (s && u[s] || u[l]);
293
- if (typeof h == "function")
294
- return h;
290
+ return me = function(i, p) {
291
+ var c = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
292
+ function v(s) {
293
+ var d = s && (c && s[c] || s[l]);
294
+ if (typeof d == "function")
295
+ return d;
295
296
  }
296
- var y = "<<anonymous>>", _ = {
297
- array: x("array"),
298
- bigint: x("bigint"),
299
- bool: x("boolean"),
300
- func: x("function"),
301
- number: x("number"),
302
- object: x("object"),
303
- string: x("string"),
304
- symbol: x("symbol"),
297
+ var m = "<<anonymous>>", x = {
298
+ array: g("array"),
299
+ bigint: g("bigint"),
300
+ bool: g("boolean"),
301
+ func: g("function"),
302
+ number: g("number"),
303
+ object: g("object"),
304
+ string: g("string"),
305
+ symbol: g("symbol"),
305
306
  any: q(),
306
307
  arrayOf: $,
307
- element: D(),
308
+ element: k(),
308
309
  elementType: f(),
309
- instanceOf: N,
310
+ instanceOf: Z,
310
311
  node: w(),
311
- objectOf: te,
312
- oneOf: X,
313
- oneOfType: k,
312
+ objectOf: N,
313
+ oneOf: te,
314
+ oneOfType: E,
314
315
  shape: F,
315
- exact: g
316
+ exact: _
316
317
  };
317
- function b(u, h) {
318
- return u === h ? u !== 0 || 1 / u === 1 / h : u !== u && h !== h;
318
+ function b(s, d) {
319
+ return s === d ? s !== 0 || 1 / s === 1 / d : s !== s && d !== d;
319
320
  }
320
- function m(u, h) {
321
- this.message = u, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
321
+ function y(s, d) {
322
+ this.message = s, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
322
323
  }
323
- m.prototype = Error.prototype;
324
- function T(u) {
324
+ y.prototype = Error.prototype;
325
+ function C(s) {
325
326
  if (process.env.NODE_ENV !== "production")
326
- var h = {}, S = 0;
327
- function C(O, E, R, M, W, A, Y) {
328
- if (M = M || y, A = A || R, Y !== r) {
329
- if (d) {
330
- var p = new Error(
327
+ var d = {}, S = 0;
328
+ function R(M, T, O, A, W, D, Y) {
329
+ if (A = A || m, D = D || O, Y !== r) {
330
+ if (p) {
331
+ var h = new Error(
331
332
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
332
333
  );
333
- throw p.name = "Invariant Violation", p;
334
+ throw h.name = "Invariant Violation", h;
334
335
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
335
- var G = M + ":" + R;
336
- !h[G] && // Avoid spamming the console because they are often not actionable except for lib authors
336
+ var G = A + ":" + O;
337
+ !d[G] && // Avoid spamming the console because they are often not actionable except for lib authors
337
338
  S < 3 && (o(
338
- "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + M + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
339
- ), h[G] = !0, S++);
339
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
340
+ ), d[G] = !0, S++);
340
341
  }
341
342
  }
342
- return E[R] == null ? O ? E[R] === null ? new m("The " + W + " `" + A + "` is marked as required " + ("in `" + M + "`, but its value is `null`.")) : new m("The " + W + " `" + A + "` is marked as required in " + ("`" + M + "`, but its value is `undefined`.")) : null : u(E, R, M, W, A);
343
+ return T[O] == null ? M ? T[O] === null ? new y("The " + W + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new y("The " + W + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(T, O, A, W, D);
343
344
  }
344
- var P = C.bind(null, !1);
345
- return P.isRequired = C.bind(null, !0), P;
345
+ var P = R.bind(null, !1);
346
+ return P.isRequired = R.bind(null, !0), P;
346
347
  }
347
- function x(u) {
348
- function h(S, C, P, O, E, R) {
349
- var M = S[C], W = H(M);
350
- if (W !== u) {
351
- var A = J(M);
352
- return new m(
353
- "Invalid " + O + " `" + E + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + u + "`."),
354
- { expectedType: u }
348
+ function g(s) {
349
+ function d(S, R, P, M, T, O) {
350
+ var A = S[R], W = H(A);
351
+ if (W !== s) {
352
+ var D = X(A);
353
+ return new y(
354
+ "Invalid " + M + " `" + T + "` of type " + ("`" + D + "` supplied to `" + P + "`, expected ") + ("`" + s + "`."),
355
+ { expectedType: s }
355
356
  );
356
357
  }
357
358
  return null;
358
359
  }
359
- return T(h);
360
+ return C(d);
360
361
  }
361
362
  function q() {
362
- return T(c);
363
+ return C(u);
363
364
  }
364
- function $(u) {
365
- function h(S, C, P, O, E) {
366
- if (typeof u != "function")
367
- return new m("Property `" + E + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
368
- var R = S[C];
369
- if (!Array.isArray(R)) {
370
- var M = H(R);
371
- return new m("Invalid " + O + " `" + E + "` of type " + ("`" + M + "` supplied to `" + P + "`, expected an array."));
365
+ function $(s) {
366
+ function d(S, R, P, M, T) {
367
+ if (typeof s != "function")
368
+ return new y("Property `" + T + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
369
+ var O = S[R];
370
+ if (!Array.isArray(O)) {
371
+ var A = H(O);
372
+ return new y("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected an array."));
372
373
  }
373
- for (var W = 0; W < R.length; W++) {
374
- var A = u(R, W, P, O, E + "[" + W + "]", r);
375
- if (A instanceof Error)
376
- return A;
374
+ for (var W = 0; W < O.length; W++) {
375
+ var D = s(O, W, P, M, T + "[" + W + "]", r);
376
+ if (D instanceof Error)
377
+ return D;
377
378
  }
378
379
  return null;
379
380
  }
380
- return T(h);
381
+ return C(d);
381
382
  }
382
- function D() {
383
- function u(h, S, C, P, O) {
384
- var E = h[S];
385
- if (!i(E)) {
386
- var R = H(E);
387
- return new m("Invalid " + P + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
383
+ function k() {
384
+ function s(d, S, R, P, M) {
385
+ var T = d[S];
386
+ if (!i(T)) {
387
+ var O = H(T);
388
+ return new y("Invalid " + P + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected a single ReactElement."));
388
389
  }
389
390
  return null;
390
391
  }
391
- return T(u);
392
+ return C(s);
392
393
  }
393
394
  function f() {
394
- function u(h, S, C, P, O) {
395
- var E = h[S];
396
- if (!e.isValidElementType(E)) {
397
- var R = H(E);
398
- return new m("Invalid " + P + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
395
+ function s(d, S, R, P, M) {
396
+ var T = d[S];
397
+ if (!e.isValidElementType(T)) {
398
+ var O = H(T);
399
+ return new y("Invalid " + P + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected a single ReactElement type."));
399
400
  }
400
401
  return null;
401
402
  }
402
- return T(u);
403
+ return C(s);
403
404
  }
404
- function N(u) {
405
- function h(S, C, P, O, E) {
406
- if (!(S[C] instanceof u)) {
407
- var R = u.name || y, M = Z(S[C]);
408
- return new m("Invalid " + O + " `" + E + "` of type " + ("`" + M + "` supplied to `" + P + "`, expected ") + ("instance of `" + R + "`."));
405
+ function Z(s) {
406
+ function d(S, R, P, M, T) {
407
+ if (!(S[R] instanceof s)) {
408
+ var O = s.name || m, A = J(S[R]);
409
+ return new y("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("instance of `" + O + "`."));
409
410
  }
410
411
  return null;
411
412
  }
412
- return T(h);
413
+ return C(d);
413
414
  }
414
- function X(u) {
415
- if (!Array.isArray(u))
415
+ function te(s) {
416
+ if (!Array.isArray(s))
416
417
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
417
418
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
418
- ) : o("Invalid argument supplied to oneOf, expected an array.")), c;
419
- function h(S, C, P, O, E) {
420
- for (var R = S[C], M = 0; M < u.length; M++)
421
- if (b(R, u[M]))
419
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), u;
420
+ function d(S, R, P, M, T) {
421
+ for (var O = S[R], A = 0; A < s.length; A++)
422
+ if (b(O, s[A]))
422
423
  return null;
423
- var W = JSON.stringify(u, function(Y, p) {
424
- var G = J(p);
425
- return G === "symbol" ? String(p) : p;
424
+ var W = JSON.stringify(s, function(Y, h) {
425
+ var G = X(h);
426
+ return G === "symbol" ? String(h) : h;
426
427
  });
427
- return new m("Invalid " + O + " `" + E + "` of value `" + String(R) + "` " + ("supplied to `" + P + "`, expected one of " + W + "."));
428
+ return new y("Invalid " + M + " `" + T + "` of value `" + String(O) + "` " + ("supplied to `" + P + "`, expected one of " + W + "."));
428
429
  }
429
- return T(h);
430
+ return C(d);
430
431
  }
431
- function te(u) {
432
- function h(S, C, P, O, E) {
433
- if (typeof u != "function")
434
- return new m("Property `" + E + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
435
- var R = S[C], M = H(R);
436
- if (M !== "object")
437
- return new m("Invalid " + O + " `" + E + "` of type " + ("`" + M + "` supplied to `" + P + "`, expected an object."));
438
- for (var W in R)
439
- if (t(R, W)) {
440
- var A = u(R, W, P, O, E + "." + W, r);
441
- if (A instanceof Error)
442
- return A;
432
+ function N(s) {
433
+ function d(S, R, P, M, T) {
434
+ if (typeof s != "function")
435
+ return new y("Property `" + T + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
436
+ var O = S[R], A = H(O);
437
+ if (A !== "object")
438
+ return new y("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected an object."));
439
+ for (var W in O)
440
+ if (t(O, W)) {
441
+ var D = s(O, W, P, M, T + "." + W, r);
442
+ if (D instanceof Error)
443
+ return D;
443
444
  }
444
445
  return null;
445
446
  }
446
- return T(h);
447
+ return C(d);
447
448
  }
448
- function k(u) {
449
- if (!Array.isArray(u))
450
- return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
451
- for (var h = 0; h < u.length; h++) {
452
- var S = u[h];
449
+ function E(s) {
450
+ if (!Array.isArray(s))
451
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), u;
452
+ for (var d = 0; d < s.length; d++) {
453
+ var S = s[d];
453
454
  if (typeof S != "function")
454
455
  return o(
455
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(S) + " at index " + h + "."
456
- ), c;
456
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(S) + " at index " + d + "."
457
+ ), u;
457
458
  }
458
- function C(P, O, E, R, M) {
459
- for (var W = [], A = 0; A < u.length; A++) {
460
- var Y = u[A], p = Y(P, O, E, R, M, r);
461
- if (p == null)
459
+ function R(P, M, T, O, A) {
460
+ for (var W = [], D = 0; D < s.length; D++) {
461
+ var Y = s[D], h = Y(P, M, T, O, A, r);
462
+ if (h == null)
462
463
  return null;
463
- p.data && t(p.data, "expectedType") && W.push(p.data.expectedType);
464
+ h.data && t(h.data, "expectedType") && W.push(h.data.expectedType);
464
465
  }
465
466
  var G = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
466
- return new m("Invalid " + R + " `" + M + "` supplied to " + ("`" + E + "`" + G + "."));
467
+ return new y("Invalid " + O + " `" + A + "` supplied to " + ("`" + T + "`" + G + "."));
467
468
  }
468
- return T(C);
469
+ return C(R);
469
470
  }
470
471
  function w() {
471
- function u(h, S, C, P, O) {
472
- return K(h[S]) ? null : new m("Invalid " + P + " `" + O + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
472
+ function s(d, S, R, P, M) {
473
+ return K(d[S]) ? null : new y("Invalid " + P + " `" + M + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
473
474
  }
474
- return T(u);
475
+ return C(s);
475
476
  }
476
- function B(u, h, S, C, P) {
477
- return new m(
478
- (u || "React class") + ": " + h + " type `" + S + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
477
+ function B(s, d, S, R, P) {
478
+ return new y(
479
+ (s || "React class") + ": " + d + " type `" + S + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
479
480
  );
480
481
  }
481
- function F(u) {
482
- function h(S, C, P, O, E) {
483
- var R = S[C], M = H(R);
484
- if (M !== "object")
485
- return new m("Invalid " + O + " `" + E + "` of type `" + M + "` " + ("supplied to `" + P + "`, expected `object`."));
486
- for (var W in u) {
487
- var A = u[W];
488
- if (typeof A != "function")
489
- return B(P, O, E, W, J(A));
490
- var Y = A(R, W, P, O, E + "." + W, r);
482
+ function F(s) {
483
+ function d(S, R, P, M, T) {
484
+ var O = S[R], A = H(O);
485
+ if (A !== "object")
486
+ return new y("Invalid " + M + " `" + T + "` of type `" + A + "` " + ("supplied to `" + P + "`, expected `object`."));
487
+ for (var W in s) {
488
+ var D = s[W];
489
+ if (typeof D != "function")
490
+ return B(P, M, T, W, X(D));
491
+ var Y = D(O, W, P, M, T + "." + W, r);
491
492
  if (Y)
492
493
  return Y;
493
494
  }
494
495
  return null;
495
496
  }
496
- return T(h);
497
+ return C(d);
497
498
  }
498
- function g(u) {
499
- function h(S, C, P, O, E) {
500
- var R = S[C], M = H(R);
501
- if (M !== "object")
502
- return new m("Invalid " + O + " `" + E + "` of type `" + M + "` " + ("supplied to `" + P + "`, expected `object`."));
503
- var W = a({}, S[C], u);
504
- for (var A in W) {
505
- var Y = u[A];
506
- if (t(u, A) && typeof Y != "function")
507
- return B(P, O, E, A, J(Y));
499
+ function _(s) {
500
+ function d(S, R, P, M, T) {
501
+ var O = S[R], A = H(O);
502
+ if (A !== "object")
503
+ return new y("Invalid " + M + " `" + T + "` of type `" + A + "` " + ("supplied to `" + P + "`, expected `object`."));
504
+ var W = a({}, S[R], s);
505
+ for (var D in W) {
506
+ var Y = s[D];
507
+ if (t(s, D) && typeof Y != "function")
508
+ return B(P, M, T, D, X(Y));
508
509
  if (!Y)
509
- return new m(
510
- "Invalid " + O + " `" + E + "` key `" + A + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(S[C], null, " ") + `
511
- Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
510
+ return new y(
511
+ "Invalid " + M + " `" + T + "` key `" + D + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(S[R], null, " ") + `
512
+ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
512
513
  );
513
- var p = Y(R, A, P, O, E + "." + A, r);
514
- if (p)
515
- return p;
514
+ var h = Y(O, D, P, M, T + "." + D, r);
515
+ if (h)
516
+ return h;
516
517
  }
517
518
  return null;
518
519
  }
519
- return T(h);
520
+ return C(d);
520
521
  }
521
- function K(u) {
522
- switch (typeof u) {
522
+ function K(s) {
523
+ switch (typeof s) {
523
524
  case "number":
524
525
  case "string":
525
526
  case "undefined":
526
527
  return !0;
527
528
  case "boolean":
528
- return !u;
529
+ return !s;
529
530
  case "object":
530
- if (Array.isArray(u))
531
- return u.every(K);
532
- if (u === null || i(u))
531
+ if (Array.isArray(s))
532
+ return s.every(K);
533
+ if (s === null || i(s))
533
534
  return !0;
534
- var h = v(u);
535
- if (h) {
536
- var S = h.call(u), C;
537
- if (h !== u.entries) {
538
- for (; !(C = S.next()).done; )
539
- if (!K(C.value))
535
+ var d = v(s);
536
+ if (d) {
537
+ var S = d.call(s), R;
538
+ if (d !== s.entries) {
539
+ for (; !(R = S.next()).done; )
540
+ if (!K(R.value))
540
541
  return !1;
541
542
  } else
542
- for (; !(C = S.next()).done; ) {
543
- var P = C.value;
543
+ for (; !(R = S.next()).done; ) {
544
+ var P = R.value;
544
545
  if (P && !K(P[1]))
545
546
  return !1;
546
547
  }
@@ -551,61 +552,61 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
551
552
  return !1;
552
553
  }
553
554
  }
554
- function ae(u, h) {
555
- return u === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
555
+ function ae(s, d) {
556
+ return s === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
556
557
  }
557
- function H(u) {
558
- var h = typeof u;
559
- return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : ae(h, u) ? "symbol" : h;
558
+ function H(s) {
559
+ var d = typeof s;
560
+ return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : ae(d, s) ? "symbol" : d;
560
561
  }
561
- function J(u) {
562
- if (typeof u > "u" || u === null)
563
- return "" + u;
564
- var h = H(u);
565
- if (h === "object") {
566
- if (u instanceof Date)
562
+ function X(s) {
563
+ if (typeof s > "u" || s === null)
564
+ return "" + s;
565
+ var d = H(s);
566
+ if (d === "object") {
567
+ if (s instanceof Date)
567
568
  return "date";
568
- if (u instanceof RegExp)
569
+ if (s instanceof RegExp)
569
570
  return "regexp";
570
571
  }
571
- return h;
572
+ return d;
572
573
  }
573
- function U(u) {
574
- var h = J(u);
575
- switch (h) {
574
+ function U(s) {
575
+ var d = X(s);
576
+ switch (d) {
576
577
  case "array":
577
578
  case "object":
578
- return "an " + h;
579
+ return "an " + d;
579
580
  case "boolean":
580
581
  case "date":
581
582
  case "regexp":
582
- return "a " + h;
583
+ return "a " + d;
583
584
  default:
584
- return h;
585
+ return d;
585
586
  }
586
587
  }
587
- function Z(u) {
588
- return !u.constructor || !u.constructor.name ? y : u.constructor.name;
588
+ function J(s) {
589
+ return !s.constructor || !s.constructor.name ? m : s.constructor.name;
589
590
  }
590
- return _.checkPropTypes = n, _.resetWarningCache = n.resetWarningCache, _.PropTypes = _, _;
591
+ return x.checkPropTypes = n, x.resetWarningCache = n.resetWarningCache, x.PropTypes = x, x;
591
592
  }, me;
592
593
  }
593
- var ge, De;
594
+ var ge, ke;
594
595
  function Ke() {
595
- if (De) return ge;
596
- De = 1;
596
+ if (ke) return ge;
597
+ ke = 1;
597
598
  var e = /* @__PURE__ */ _e();
598
599
  function a() {
599
600
  }
600
601
  function r() {
601
602
  }
602
603
  return r.resetWarningCache = a, ge = function() {
603
- function t(c, i, d, s, l, v) {
604
+ function t(u, i, p, c, l, v) {
604
605
  if (v !== e) {
605
- var y = new Error(
606
+ var m = new Error(
606
607
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
607
608
  );
608
- throw y.name = "Invariant Violation", y;
609
+ throw m.name = "Invariant Violation", m;
609
610
  }
610
611
  }
611
612
  t.isRequired = t;
@@ -638,11 +639,11 @@ function Ke() {
638
639
  return o.PropTypes = o, o;
639
640
  }, ge;
640
641
  }
641
- var ke;
642
+ var Ie;
642
643
  function Qe() {
643
- if (ke) return ue.exports;
644
- if (ke = 1, process.env.NODE_ENV !== "production") {
645
- var e = $e(), a = !0;
644
+ if (Ie) return ue.exports;
645
+ if (Ie = 1, process.env.NODE_ENV !== "production") {
646
+ var e = We(), a = !0;
646
647
  ue.exports = /* @__PURE__ */ Ge()(e.isElement, a);
647
648
  } else
648
649
  ue.exports = /* @__PURE__ */ Ke()();
@@ -665,12 +666,12 @@ function xe(e, a, r, t) {
665
666
  }
666
667
  xe.prototype.length = function() {
667
668
  for (var e = 10, a = 0, r = void 0, t = void 0, n = 0; n <= e; n += 1) {
668
- var o = n / e, c = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), i = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
669
+ var o = n / e, u = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), i = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
669
670
  if (n > 0) {
670
- var d = c - r, s = i - t;
671
- a += Math.sqrt(d * d + s * s);
671
+ var p = u - r, c = i - t;
672
+ a += Math.sqrt(p * p + c * c);
672
673
  }
673
- r = c, t = i;
674
+ r = u, t = i;
674
675
  }
675
676
  return a;
676
677
  };
@@ -678,16 +679,16 @@ xe.prototype._point = function(e, a, r, t, n) {
678
679
  return a * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + n * e * e * e;
679
680
  };
680
681
  function et(e, a, r) {
681
- var t, n, o, c = null, i = 0;
682
+ var t, n, o, u = null, i = 0;
682
683
  r || (r = {});
683
- var d = function() {
684
- i = r.leading === !1 ? 0 : Date.now(), c = null, o = e.apply(t, n), c || (t = n = null);
684
+ var p = function() {
685
+ i = r.leading === !1 ? 0 : Date.now(), u = null, o = e.apply(t, n), u || (t = n = null);
685
686
  };
686
687
  return function() {
687
- var s = Date.now();
688
- !i && r.leading === !1 && (i = s);
689
- var l = a - (s - i);
690
- return t = this, n = arguments, l <= 0 || l > a ? (c && (clearTimeout(c), c = null), i = s, o = e.apply(t, n), c || (t = n = null)) : !c && r.trailing !== !1 && (c = setTimeout(d, l)), o;
688
+ var c = Date.now();
689
+ !i && r.leading === !1 && (i = c);
690
+ var l = a - (c - i);
691
+ return t = this, n = arguments, l <= 0 || l > a ? (u && (clearTimeout(u), u = null), i = c, o = e.apply(t, n), u || (t = n = null)) : !u && r.trailing !== !1 && (u = setTimeout(p, l)), o;
691
692
  };
692
693
  }
693
694
  function L(e, a) {
@@ -719,9 +720,9 @@ L.prototype.clear = function() {
719
720
  e.fillStyle = this.backgroundColor, e.clearRect(0, 0, a.width, a.height), e.fillRect(0, 0, a.width, a.height), this._data = [], this._reset(), this._isEmpty = !0;
720
721
  };
721
722
  L.prototype.fromDataURL = function(e) {
722
- var a = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), n = r.ratio || window.devicePixelRatio || 1, o = r.width || this._canvas.width / n, c = r.height || this._canvas.height / n;
723
+ var a = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), n = r.ratio || window.devicePixelRatio || 1, o = r.width || this._canvas.width / n, u = r.height || this._canvas.height / n;
723
724
  this._reset(), t.src = e, t.onload = function() {
724
- a._ctx.drawImage(t, 0, 0, o, c);
725
+ a._ctx.drawImage(t, 0, 0, o, u);
725
726
  }, this._isEmpty = !1;
726
727
  };
727
728
  L.prototype.toDataURL = function(e) {
@@ -748,10 +749,10 @@ L.prototype._strokeBegin = function(e) {
748
749
  this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
749
750
  };
750
751
  L.prototype._strokeUpdate = function(e) {
751
- var a = e.clientX, r = e.clientY, t = this._createPoint(a, r), n = this._data[this._data.length - 1], o = n && n[n.length - 1], c = o && t.distanceTo(o) < this.minDistance;
752
- if (!(o && c)) {
753
- var i = this._addPoint(t), d = i.curve, s = i.widths;
754
- d && s && this._drawCurve(d, s.start, s.end), this._data[this._data.length - 1].push({
752
+ var a = e.clientX, r = e.clientY, t = this._createPoint(a, r), n = this._data[this._data.length - 1], o = n && n[n.length - 1], u = o && t.distanceTo(o) < this.minDistance;
753
+ if (!(o && u)) {
754
+ var i = this._addPoint(t), p = i.curve, c = i.widths;
755
+ p && c && this._drawCurve(p, c.start, c.end), this._data[this._data.length - 1].push({
755
756
  x: t.x,
756
757
  y: t.y,
757
758
  time: t.time,
@@ -791,16 +792,16 @@ L.prototype._addPoint = function(e) {
791
792
  a.length === 3 && a.unshift(a[0]), r = this._calculateCurveControlPoints(a[0], a[1], a[2]);
792
793
  var t = r.c2;
793
794
  r = this._calculateCurveControlPoints(a[1], a[2], a[3]);
794
- var n = r.c1, o = new xe(a[1], t, n, a[2]), c = this._calculateCurveWidths(o);
795
- return a.shift(), { curve: o, widths: c };
795
+ var n = r.c1, o = new xe(a[1], t, n, a[2]), u = this._calculateCurveWidths(o);
796
+ return a.shift(), { curve: o, widths: u };
796
797
  }
797
798
  return {};
798
799
  };
799
800
  L.prototype._calculateCurveControlPoints = function(e, a, r) {
800
- var t = e.x - a.x, n = e.y - a.y, o = a.x - r.x, c = a.y - r.y, i = { x: (e.x + a.x) / 2, y: (e.y + a.y) / 2 }, d = { x: (a.x + r.x) / 2, y: (a.y + r.y) / 2 }, s = Math.sqrt(t * t + n * n), l = Math.sqrt(o * o + c * c), v = i.x - d.x, y = i.y - d.y, _ = l / (s + l), b = { x: d.x + v * _, y: d.y + y * _ }, m = a.x - b.x, T = a.y - b.y;
801
+ var t = e.x - a.x, n = e.y - a.y, o = a.x - r.x, u = a.y - r.y, i = { x: (e.x + a.x) / 2, y: (e.y + a.y) / 2 }, p = { x: (a.x + r.x) / 2, y: (a.y + r.y) / 2 }, c = Math.sqrt(t * t + n * n), l = Math.sqrt(o * o + u * u), v = i.x - p.x, m = i.y - p.y, x = l / (c + l), b = { x: p.x + v * x, y: p.y + m * x }, y = a.x - b.x, C = a.y - b.y;
801
802
  return {
802
- c1: new ne(i.x + m, i.y + T),
803
- c2: new ne(d.x + m, d.y + T)
803
+ c1: new ne(i.x + y, i.y + C),
804
+ c2: new ne(p.x + y, p.y + C)
804
805
  };
805
806
  };
806
807
  L.prototype._calculateCurveWidths = function(e) {
@@ -817,13 +818,13 @@ L.prototype._drawPoint = function(e, a, r) {
817
818
  L.prototype._drawCurve = function(e, a, r) {
818
819
  var t = this._ctx, n = r - a, o = Math.floor(e.length());
819
820
  t.beginPath();
820
- for (var c = 0; c < o; c += 1) {
821
- var i = c / o, d = i * i, s = d * i, l = 1 - i, v = l * l, y = v * l, _ = y * e.startPoint.x;
822
- _ += 3 * v * i * e.control1.x, _ += 3 * l * d * e.control2.x, _ += s * e.endPoint.x;
823
- var b = y * e.startPoint.y;
824
- b += 3 * v * i * e.control1.y, b += 3 * l * d * e.control2.y, b += s * e.endPoint.y;
825
- var m = a + s * n;
826
- this._drawPoint(_, b, m);
821
+ for (var u = 0; u < o; u += 1) {
822
+ var i = u / o, p = i * i, c = p * i, l = 1 - i, v = l * l, m = v * l, x = m * e.startPoint.x;
823
+ x += 3 * v * i * e.control1.x, x += 3 * l * p * e.control2.x, x += c * e.endPoint.x;
824
+ var b = m * e.startPoint.y;
825
+ b += 3 * v * i * e.control1.y, b += 3 * l * p * e.control2.y, b += c * e.endPoint.y;
826
+ var y = a + c * n;
827
+ this._drawPoint(x, b, y);
827
828
  }
828
829
  t.closePath(), t.fill();
829
830
  };
@@ -836,43 +837,43 @@ L.prototype._fromData = function(e, a, r) {
836
837
  var n = e[t];
837
838
  if (n.length > 1)
838
839
  for (var o = 0; o < n.length; o += 1) {
839
- var c = n[o], i = new ne(c.x, c.y, c.time), d = c.color;
840
+ var u = n[o], i = new ne(u.x, u.y, u.time), p = u.color;
840
841
  if (o === 0)
841
- this.penColor = d, this._reset(), this._addPoint(i);
842
+ this.penColor = p, this._reset(), this._addPoint(i);
842
843
  else if (o !== n.length - 1) {
843
- var s = this._addPoint(i), l = s.curve, v = s.widths;
844
- l && v && a(l, v, d);
844
+ var c = this._addPoint(i), l = c.curve, v = c.widths;
845
+ l && v && a(l, v, p);
845
846
  }
846
847
  }
847
848
  else {
848
849
  this._reset();
849
- var y = n[0];
850
- r(y);
850
+ var m = n[0];
851
+ r(m);
851
852
  }
852
853
  }
853
854
  };
854
855
  L.prototype._toSVG = function() {
855
- var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, o = 0, c = r.width / t, i = r.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
856
- d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(a, function(x, q, $) {
857
- var D = document.createElement("path");
858
- if (!isNaN(x.control1.x) && !isNaN(x.control1.y) && !isNaN(x.control2.x) && !isNaN(x.control2.y)) {
859
- var f = "M " + x.startPoint.x.toFixed(3) + "," + x.startPoint.y.toFixed(3) + " " + ("C " + x.control1.x.toFixed(3) + "," + x.control1.y.toFixed(3) + " ") + (x.control2.x.toFixed(3) + "," + x.control2.y.toFixed(3) + " ") + (x.endPoint.x.toFixed(3) + "," + x.endPoint.y.toFixed(3));
860
- D.setAttribute("d", f), D.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), D.setAttribute("stroke", $), D.setAttribute("fill", "none"), D.setAttribute("stroke-linecap", "round"), d.appendChild(D);
856
+ var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, o = 0, u = r.width / t, i = r.height / t, p = document.createElementNS("http://www.w3.org/2000/svg", "svg");
857
+ p.setAttributeNS(null, "width", r.width), p.setAttributeNS(null, "height", r.height), this._fromData(a, function(g, q, $) {
858
+ var k = document.createElement("path");
859
+ if (!isNaN(g.control1.x) && !isNaN(g.control1.y) && !isNaN(g.control2.x) && !isNaN(g.control2.y)) {
860
+ var f = "M " + g.startPoint.x.toFixed(3) + "," + g.startPoint.y.toFixed(3) + " " + ("C " + g.control1.x.toFixed(3) + "," + g.control1.y.toFixed(3) + " ") + (g.control2.x.toFixed(3) + "," + g.control2.y.toFixed(3) + " ") + (g.endPoint.x.toFixed(3) + "," + g.endPoint.y.toFixed(3));
861
+ k.setAttribute("d", f), k.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), k.setAttribute("stroke", $), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), p.appendChild(k);
861
862
  }
862
- }, function(x) {
863
+ }, function(g) {
863
864
  var q = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
864
- q.setAttribute("r", $), q.setAttribute("cx", x.x), q.setAttribute("cy", x.y), q.setAttribute("fill", x.color), d.appendChild(q);
865
+ q.setAttribute("r", $), q.setAttribute("cx", g.x), q.setAttribute("cy", g.y), q.setAttribute("fill", g.color), p.appendChild(q);
865
866
  });
866
- var s = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + n + " " + o + " " + c + " " + i + '"') + (' width="' + c + '"') + (' height="' + i + '"') + ">", v = d.innerHTML;
867
+ var c = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + n + " " + o + " " + u + " " + i + '"') + (' width="' + u + '"') + (' height="' + i + '"') + ">", v = p.innerHTML;
867
868
  if (v === void 0) {
868
- var y = document.createElement("dummy"), _ = d.childNodes;
869
- y.innerHTML = "";
870
- for (var b = 0; b < _.length; b += 1)
871
- y.appendChild(_[b].cloneNode(!0));
872
- v = y.innerHTML;
869
+ var m = document.createElement("dummy"), x = p.childNodes;
870
+ m.innerHTML = "";
871
+ for (var b = 0; b < x.length; b += 1)
872
+ m.appendChild(x[b].cloneNode(!0));
873
+ v = m.innerHTML;
873
874
  }
874
- var m = "</svg>", T = l + v + m;
875
- return s + btoa(T);
875
+ var y = "</svg>", C = l + v + y;
876
+ return c + btoa(C);
876
877
  };
877
878
  L.prototype.fromData = function(e) {
878
879
  var a = this;
@@ -888,38 +889,38 @@ L.prototype.toData = function() {
888
889
  const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
889
890
  __proto__: null,
890
891
  default: L
891
- }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ Fe(tt);
892
- var fe = { exports: {} }, nt = fe.exports, Ie;
892
+ }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ qe(tt);
893
+ var fe = { exports: {} }, nt = fe.exports, je;
893
894
  function at() {
894
- return Ie || (Ie = 1, (function(e, a) {
895
+ return je || (je = 1, (function(e, a) {
895
896
  (function(r, t) {
896
897
  e.exports = t();
897
898
  })(nt, function() {
898
899
  return (function(r) {
899
900
  function t(o) {
900
901
  if (n[o]) return n[o].exports;
901
- var c = n[o] = { exports: {}, id: o, loaded: !1 };
902
- return r[o].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
902
+ var u = n[o] = { exports: {}, id: o, loaded: !1 };
903
+ return r[o].call(u.exports, u, u.exports, t), u.loaded = !0, u.exports;
903
904
  }
904
905
  var n = {};
905
906
  return t.m = r, t.c = n, t.p = "", t(0);
906
907
  })([function(r, t) {
907
- function n(s) {
908
- var l = s.getContext("2d"), v = s.width, y = s.height, _ = l.getImageData(0, 0, v, y).data, b = i(!0, v, y, _), m = i(!1, v, y, _), T = d(!0, v, y, _), x = d(!1, v, y, _), q = x - T + 1, $ = m - b + 1, D = l.getImageData(T, b, q, $);
909
- return s.width = q, s.height = $, l.clearRect(0, 0, q, $), l.putImageData(D, 0, 0), s;
908
+ function n(c) {
909
+ var l = c.getContext("2d"), v = c.width, m = c.height, x = l.getImageData(0, 0, v, m).data, b = i(!0, v, m, x), y = i(!1, v, m, x), C = p(!0, v, m, x), g = p(!1, v, m, x), q = g - C + 1, $ = y - b + 1, k = l.getImageData(C, b, q, $);
910
+ return c.width = q, c.height = $, l.clearRect(0, 0, q, $), l.putImageData(k, 0, 0), c;
910
911
  }
911
- function o(s, l, v, y) {
912
- return { red: y[4 * (v * l + s)], green: y[4 * (v * l + s) + 1], blue: y[4 * (v * l + s) + 2], alpha: y[4 * (v * l + s) + 3] };
912
+ function o(c, l, v, m) {
913
+ return { red: m[4 * (v * l + c)], green: m[4 * (v * l + c) + 1], blue: m[4 * (v * l + c) + 2], alpha: m[4 * (v * l + c) + 3] };
913
914
  }
914
- function c(s, l, v, y) {
915
- return o(s, l, v, y).alpha;
915
+ function u(c, l, v, m) {
916
+ return o(c, l, v, m).alpha;
916
917
  }
917
- function i(s, l, v, y) {
918
- for (var _ = s ? 1 : -1, b = s ? 0 : v - 1, m = b; s ? m < v : m > -1; m += _) for (var T = 0; T < l; T++) if (c(T, m, l, y)) return m;
918
+ function i(c, l, v, m) {
919
+ for (var x = c ? 1 : -1, b = c ? 0 : v - 1, y = b; c ? y < v : y > -1; y += x) for (var C = 0; C < l; C++) if (u(C, y, l, m)) return y;
919
920
  return null;
920
921
  }
921
- function d(s, l, v, y) {
922
- for (var _ = s ? 1 : -1, b = s ? 0 : l - 1, m = b; s ? m < l : m > -1; m += _) for (var T = 0; T < v; T++) if (c(m, T, l, y)) return m;
922
+ function p(c, l, v, m) {
923
+ for (var x = c ? 1 : -1, b = c ? 0 : l - 1, y = b; c ? y < l : y > -1; y += x) for (var C = 0; C < v; C++) if (u(y, C, l, m)) return y;
923
924
  return null;
924
925
  }
925
926
  Object.defineProperty(t, "__esModule", { value: !0 }), t.default = n;
@@ -927,99 +928,99 @@ function at() {
927
928
  });
928
929
  })(fe)), fe.exports;
929
930
  }
930
- var ot = le.exports, je;
931
+ var ot = le.exports, $e;
931
932
  function it() {
932
- return je || (je = 1, (function(e, a) {
933
+ return $e || ($e = 1, (function(e, a) {
933
934
  (function(r, t) {
934
- e.exports = t(/* @__PURE__ */ Qe(), Le, rt, at());
935
+ e.exports = t(/* @__PURE__ */ Qe(), ze, rt, at());
935
936
  })(ot, function(r, t, n, o) {
936
- return (function(c) {
937
- function i(s) {
938
- if (d[s]) return d[s].exports;
939
- var l = d[s] = { exports: {}, id: s, loaded: !1 };
940
- return c[s].call(l.exports, l, l.exports, i), l.loaded = !0, l.exports;
937
+ return (function(u) {
938
+ function i(c) {
939
+ if (p[c]) return p[c].exports;
940
+ var l = p[c] = { exports: {}, id: c, loaded: !1 };
941
+ return u[c].call(l.exports, l, l.exports, i), l.loaded = !0, l.exports;
941
942
  }
942
- var d = {};
943
- return i.m = c, i.c = d, i.p = "", i(0);
944
- })([function(c, i, d) {
945
- function s(k) {
946
- return k && k.__esModule ? k : { default: k };
943
+ var p = {};
944
+ return i.m = u, i.c = p, i.p = "", i(0);
945
+ })([function(u, i, p) {
946
+ function c(E) {
947
+ return E && E.__esModule ? E : { default: E };
947
948
  }
948
- function l(k, w) {
949
+ function l(E, w) {
949
950
  var B = {};
950
- for (var F in k) w.indexOf(F) >= 0 || Object.prototype.hasOwnProperty.call(k, F) && (B[F] = k[F]);
951
+ for (var F in E) w.indexOf(F) >= 0 || Object.prototype.hasOwnProperty.call(E, F) && (B[F] = E[F]);
951
952
  return B;
952
953
  }
953
- function v(k, w) {
954
- if (!(k instanceof w)) throw new TypeError("Cannot call a class as a function");
954
+ function v(E, w) {
955
+ if (!(E instanceof w)) throw new TypeError("Cannot call a class as a function");
955
956
  }
956
- function y(k, w) {
957
- if (!k) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
958
- return !w || typeof w != "object" && typeof w != "function" ? k : w;
957
+ function m(E, w) {
958
+ if (!E) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
959
+ return !w || typeof w != "object" && typeof w != "function" ? E : w;
959
960
  }
960
- function _(k, w) {
961
+ function x(E, w) {
961
962
  if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof w);
962
- k.prototype = Object.create(w && w.prototype, { constructor: { value: k, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(k, w) : k.__proto__ = w);
963
+ E.prototype = Object.create(w && w.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(E, w) : E.__proto__ = w);
963
964
  }
964
965
  Object.defineProperty(i, "__esModule", { value: !0 });
965
- var b = Object.assign || function(k) {
966
+ var b = Object.assign || function(E) {
966
967
  for (var w = 1; w < arguments.length; w++) {
967
968
  var B = arguments[w];
968
- for (var F in B) Object.prototype.hasOwnProperty.call(B, F) && (k[F] = B[F]);
969
+ for (var F in B) Object.prototype.hasOwnProperty.call(B, F) && (E[F] = B[F]);
969
970
  }
970
- return k;
971
- }, m = /* @__PURE__ */ (function() {
972
- function k(w, B) {
971
+ return E;
972
+ }, y = /* @__PURE__ */ (function() {
973
+ function E(w, B) {
973
974
  for (var F = 0; F < B.length; F++) {
974
- var g = B[F];
975
- g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(w, g.key, g);
975
+ var _ = B[F];
976
+ _.enumerable = _.enumerable || !1, _.configurable = !0, "value" in _ && (_.writable = !0), Object.defineProperty(w, _.key, _);
976
977
  }
977
978
  }
978
979
  return function(w, B, F) {
979
- return B && k(w.prototype, B), F && k(w, F), w;
980
+ return B && E(w.prototype, B), F && E(w, F), w;
980
981
  };
981
- })(), T = d(1), x = s(T), q = d(2), $ = s(q), D = d(3), f = s(D), N = d(4), X = s(N), te = (function(k) {
982
+ })(), C = p(1), g = c(C), q = p(2), $ = c(q), k = p(3), f = c(k), Z = p(4), te = c(Z), N = (function(E) {
982
983
  function w() {
983
- var B, F, g, K;
984
+ var B, F, _, K;
984
985
  v(this, w);
985
- for (var ae = arguments.length, H = Array(ae), J = 0; J < ae; J++) H[J] = arguments[J];
986
- return F = g = y(this, (B = w.__proto__ || Object.getPrototypeOf(w)).call.apply(B, [this].concat(H))), g._sigPad = null, g._excludeOurProps = function() {
987
- var U = g.props, Z = (U.canvasProps, U.clearOnResize, l(U, ["canvasProps", "clearOnResize"]));
988
- return Z;
989
- }, g.getCanvas = function() {
990
- return g._canvas;
991
- }, g.getTrimmedCanvas = function() {
986
+ for (var ae = arguments.length, H = Array(ae), X = 0; X < ae; X++) H[X] = arguments[X];
987
+ return F = _ = m(this, (B = w.__proto__ || Object.getPrototypeOf(w)).call.apply(B, [this].concat(H))), _._sigPad = null, _._excludeOurProps = function() {
988
+ var U = _.props, J = (U.canvasProps, U.clearOnResize, l(U, ["canvasProps", "clearOnResize"]));
989
+ return J;
990
+ }, _.getCanvas = function() {
991
+ return _._canvas;
992
+ }, _.getTrimmedCanvas = function() {
992
993
  var U = document.createElement("canvas");
993
- return U.width = g._canvas.width, U.height = g._canvas.height, U.getContext("2d").drawImage(g._canvas, 0, 0), (0, X.default)(U);
994
- }, g.getSignaturePad = function() {
995
- return g._sigPad;
996
- }, g._checkClearOnResize = function() {
997
- g.props.clearOnResize && g._resizeCanvas();
998
- }, g._resizeCanvas = function() {
999
- var U = g.props.canvasProps || {}, Z = U.width, u = U.height;
1000
- if (!Z || !u) {
1001
- var h = g._canvas, S = Math.max(window.devicePixelRatio || 1, 1);
1002
- Z || (h.width = h.offsetWidth * S), u || (h.height = h.offsetHeight * S), h.getContext("2d").scale(S, S), g.clear();
994
+ return U.width = _._canvas.width, U.height = _._canvas.height, U.getContext("2d").drawImage(_._canvas, 0, 0), (0, te.default)(U);
995
+ }, _.getSignaturePad = function() {
996
+ return _._sigPad;
997
+ }, _._checkClearOnResize = function() {
998
+ _.props.clearOnResize && _._resizeCanvas();
999
+ }, _._resizeCanvas = function() {
1000
+ var U = _.props.canvasProps || {}, J = U.width, s = U.height;
1001
+ if (!J || !s) {
1002
+ var d = _._canvas, S = Math.max(window.devicePixelRatio || 1, 1);
1003
+ J || (d.width = d.offsetWidth * S), s || (d.height = d.offsetHeight * S), d.getContext("2d").scale(S, S), _.clear();
1003
1004
  }
1004
- }, g.on = function() {
1005
- return window.addEventListener("resize", g._checkClearOnResize), g._sigPad.on();
1006
- }, g.off = function() {
1007
- return window.removeEventListener("resize", g._checkClearOnResize), g._sigPad.off();
1008
- }, g.clear = function() {
1009
- return g._sigPad.clear();
1010
- }, g.isEmpty = function() {
1011
- return g._sigPad.isEmpty();
1012
- }, g.fromDataURL = function(U, Z) {
1013
- return g._sigPad.fromDataURL(U, Z);
1014
- }, g.toDataURL = function(U, Z) {
1015
- return g._sigPad.toDataURL(U, Z);
1016
- }, g.fromData = function(U) {
1017
- return g._sigPad.fromData(U);
1018
- }, g.toData = function() {
1019
- return g._sigPad.toData();
1020
- }, K = F, y(g, K);
1005
+ }, _.on = function() {
1006
+ return window.addEventListener("resize", _._checkClearOnResize), _._sigPad.on();
1007
+ }, _.off = function() {
1008
+ return window.removeEventListener("resize", _._checkClearOnResize), _._sigPad.off();
1009
+ }, _.clear = function() {
1010
+ return _._sigPad.clear();
1011
+ }, _.isEmpty = function() {
1012
+ return _._sigPad.isEmpty();
1013
+ }, _.fromDataURL = function(U, J) {
1014
+ return _._sigPad.fromDataURL(U, J);
1015
+ }, _.toDataURL = function(U, J) {
1016
+ return _._sigPad.toDataURL(U, J);
1017
+ }, _.fromData = function(U) {
1018
+ return _._sigPad.fromData(U);
1019
+ }, _.toData = function() {
1020
+ return _._sigPad.toData();
1021
+ }, K = F, m(_, K);
1021
1022
  }
1022
- return _(w, k), m(w, [{ key: "componentDidMount", value: function() {
1023
+ return x(w, E), y(w, [{ key: "componentDidMount", value: function() {
1023
1024
  this._sigPad = new f.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
1024
1025
  } }, { key: "componentWillUnmount", value: function() {
1025
1026
  this.off();
@@ -1027,26 +1028,26 @@ function it() {
1027
1028
  Object.assign(this._sigPad, this._excludeOurProps());
1028
1029
  } }, { key: "render", value: function() {
1029
1030
  var B = this, F = this.props.canvasProps;
1030
- return $.default.createElement("canvas", b({ ref: function(g) {
1031
- B._canvas = g;
1031
+ return $.default.createElement("canvas", b({ ref: function(_) {
1032
+ B._canvas = _;
1032
1033
  } }, F));
1033
1034
  } }]), w;
1034
1035
  })(q.Component);
1035
- te.propTypes = { velocityFilterWeight: x.default.number, minWidth: x.default.number, maxWidth: x.default.number, minDistance: x.default.number, dotSize: x.default.oneOfType([x.default.number, x.default.func]), penColor: x.default.string, throttle: x.default.number, onEnd: x.default.func, onBegin: x.default.func, canvasProps: x.default.object, clearOnResize: x.default.bool }, te.defaultProps = { clearOnResize: !0 }, i.default = te;
1036
- }, function(c, i) {
1037
- c.exports = r;
1038
- }, function(c, i) {
1039
- c.exports = t;
1040
- }, function(c, i) {
1041
- c.exports = n;
1042
- }, function(c, i) {
1043
- c.exports = o;
1036
+ N.propTypes = { velocityFilterWeight: g.default.number, minWidth: g.default.number, maxWidth: g.default.number, minDistance: g.default.number, dotSize: g.default.oneOfType([g.default.number, g.default.func]), penColor: g.default.string, throttle: g.default.number, onEnd: g.default.func, onBegin: g.default.func, canvasProps: g.default.object, clearOnResize: g.default.bool }, N.defaultProps = { clearOnResize: !0 }, i.default = N;
1037
+ }, function(u, i) {
1038
+ u.exports = r;
1039
+ }, function(u, i) {
1040
+ u.exports = t;
1041
+ }, function(u, i) {
1042
+ u.exports = n;
1043
+ }, function(u, i) {
1044
+ u.exports = o;
1044
1045
  }]);
1045
1046
  });
1046
1047
  })(le)), le.exports;
1047
1048
  }
1048
1049
  var st = it();
1049
- const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMain_mhdg5_5", ft = "_SignatureMainAuto_mhdg5_15", dt = "_SignatureMainManual_mhdg5_19", ht = "_SignatureHeader_mhdg5_26", pt = "_SignatureHeaderReset_mhdg5_34", vt = "_SignatureManualPanel_mhdg5_41", yt = "_SignatureManualPanelPlaceholder_mhdg5_48", mt = "_SignatureManualPanelButton_mhdg5_52", gt = "_SignatureAutoPanelImage_mhdg5_67", _t = "_SignatureAutoPanelLoader_mhdg5_72", xt = "_SignatureAutoPanelNoteIcon_mhdg5_77", bt = "_SignatureAutoPanelButton_mhdg5_81", V = {
1050
+ const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMain_mhdg5_5", ft = "_SignatureMainAuto_mhdg5_15", dt = "_SignatureMainManual_mhdg5_19", ht = "_SignatureHeader_mhdg5_26", pt = "_SignatureHeaderReset_mhdg5_34", vt = "_SignatureManualPanel_mhdg5_41", yt = "_SignatureManualPanelPlaceholder_mhdg5_48", mt = "_SignatureManualPanelButton_mhdg5_52", gt = "_SignatureAutoPanelImage_mhdg5_67", _t = "_SignatureAutoPanelLoader_mhdg5_72", xt = "_SignatureAutoPanelNoteIcon_mhdg5_77", bt = "_SignatureAutoPanelButton_mhdg5_81", V = {
1050
1051
  Signature: ct,
1051
1052
  SignatureMain: lt,
1052
1053
  SignatureMainAuto: ft,
@@ -1060,62 +1061,62 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1060
1061
  SignatureAutoPanelLoader: _t,
1061
1062
  SignatureAutoPanelNoteIcon: xt,
1062
1063
  SignatureAutoPanelButton: bt
1063
- }, Dt = (e) => {
1064
- const { modes: a, isInAutoMode: r, valueAuto: t, valueManual: n, onUpdateAuto: o, onUpdateManual: c, onChange: i } = e, d = ze(null), [s, l] = Se(null), [v, y] = Se("auto-generated"), { width: _ = 0, height: b = 0 } = Be({ ref: d, box: "border-box" }), m = re(() => {
1065
- s && _ && b && n && s.fromDataURL(n, {
1066
- width: +_.toFixed(),
1067
- height: +b.toFixed()
1064
+ }, kt = (e) => {
1065
+ const { modes: a, isInAutoMode: r, valueAuto: t, valueManual: n, onUpdateAuto: o, onUpdateManual: u, onChange: i, className: p = "" } = e, c = Fe(null), [l, v] = Se(null), [m, x] = Se("auto-generated"), { width: b = 0, height: y = 0 } = Ue({ ref: c, box: "border-box" }), C = r ? "auto-generated" : m === "manual-drawn" ? "manual-drawn" : n ? "manual-stored" : "manual-blank", g = re(() => {
1066
+ l && b && y && n && l.fromDataURL(n, {
1067
+ width: +b.toFixed(),
1068
+ height: +y.toFixed()
1068
1069
  });
1069
- }, [s, _, b, n]), T = re(() => {
1070
- if (s) {
1071
- const X = s.getCanvas().toDataURL("image/png");
1072
- y("manual-drawn"), c(X), i(X);
1070
+ }, [l, b, y, n]), q = re(() => {
1071
+ if (l) {
1072
+ const E = l.getCanvas().toDataURL("image/png");
1073
+ x("manual-drawn"), u(E), i(E);
1073
1074
  }
1074
- }, [s, i, c]), x = re(() => {
1075
- s && (s.clear(), c(""), i(""));
1076
- }, [s, i, c]), q = re(() => {
1077
- o(!0), y("auto-generated"), t && i(t);
1078
- }, [o, t, i]), $ = re(() => {
1079
- o(!1), y(n ? "manual-stored" : "manual-blank"), n ? (i(n), setTimeout(m, 0)) : i("");
1080
- }, [o, n, i, m]), D = re(() => {
1081
- o(!1), y("manual-blank"), c(""), i("");
1082
- }, [o, c, i]), f = re(() => {
1083
- y("manual-stored"), m();
1084
- }, [m]), N = (X) => X.includes(v);
1075
+ }, [l, i, u]), $ = re(() => {
1076
+ l && (l.clear(), u(""), i(""));
1077
+ }, [l, i, u]), k = re(() => {
1078
+ o(!0), x("auto-generated"), t && i(t);
1079
+ }, [o, t, i]), f = re(() => {
1080
+ o(!1), x(n ? "manual-stored" : "manual-blank"), n ? (i(n), setTimeout(g, 0)) : i("");
1081
+ }, [o, n, i, g]), Z = re(() => {
1082
+ o(!1), x("manual-blank"), u(""), i("");
1083
+ }, [o, u, i]), te = re(() => {
1084
+ x("manual-stored"), g();
1085
+ }, [g]), N = (E) => E.includes(C);
1085
1086
  return de(() => {
1086
1087
  !a.includes("auto") && r && o(!1);
1087
1088
  }, [a, r, o]), de(() => {
1088
- !r && n && _ && b && m();
1089
- }, [r, n, _, b, m]), de(() => {
1089
+ !r && n && b && y && g();
1090
+ }, [r, n, b, y, g]), de(() => {
1090
1091
  r && t ? i(t) : !r && !n && i("");
1091
- }, [r, t, n, i]), /* @__PURE__ */ Q("div", { className: V.Signature, children: [
1092
+ }, [r, t, n, i]), /* @__PURE__ */ Q("div", { className: Pe(V.Signature, p), children: [
1092
1093
  /* @__PURE__ */ Q(
1093
1094
  "div",
1094
1095
  {
1095
- className: He(
1096
+ className: Pe(
1096
1097
  V.SignatureMain,
1097
1098
  N(["auto-generated"]) ? V.SignatureMainAuto : V.SignatureMainManual
1098
1099
  ),
1099
- ref: d,
1100
+ ref: c,
1100
1101
  children: [
1101
1102
  /* @__PURE__ */ Q(ie, { direction: "row", justify: N(["manual-drawn"]) ? "end" : "center", className: V.SignatureHeader, children: [
1102
- /* @__PURE__ */ Q(Pe.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
1103
+ /* @__PURE__ */ Q(we.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
1103
1104
  /* @__PURE__ */ z(ee.FadeScale, { name: "generated-signature", condition: N(["auto-generated"]), children: "Wir haben eine digitale Signature Sie generiert." }),
1104
1105
  /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "create-signature", condition: N(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
1105
1106
  ] }),
1106
- /* @__PURE__ */ z(ee.FadeSlide, { flex: !0, name: "reset", direction: "rtl", condition: N(["manual-drawn"]), children: /* @__PURE__ */ z("div", { className: V.SignatureHeaderReset, children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ z(Ue, {}), onClick: x, children: "Neu starten" }) }) })
1107
+ /* @__PURE__ */ z(ee.FadeSlide, { flex: !0, name: "reset", direction: "rtl", condition: N(["manual-drawn"]), children: /* @__PURE__ */ z("div", { className: V.SignatureHeaderReset, children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ z(Ne, {}), onClick: $, children: "Neu starten" }) }) })
1107
1108
  ] }),
1108
1109
  /* @__PURE__ */ z(ie, { direction: "row", align: "end", justify: "center", children: N(["auto-generated"]) ? /* @__PURE__ */ Q(ie, { direction: "column", align: "center", justify: "start", children: [
1109
1110
  /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t !== "", children: /* @__PURE__ */ z("img", { className: V.SignatureAutoPanelImage, src: t, alt: "signature" }) }),
1110
- /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t === "", children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelLoader, children: /* @__PURE__ */ z(Ne, { size: "sm", color: "primary" }) }) }),
1111
+ /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t === "", children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelLoader, children: /* @__PURE__ */ z(He, { size: "sm", color: "primary" }) }) }),
1111
1112
  /* @__PURE__ */ Q(ie, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
1112
1113
  /* @__PURE__ */ z(Ye, { size: 24, className: V.SignatureAutoPanelNoteIcon }),
1113
- /* @__PURE__ */ z(Pe.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
1114
+ /* @__PURE__ */ z(we.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
1114
1115
  ] }),
1115
- /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: a.includes("manual"), children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelButton, children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: $, children: "per Hand/Maus unterschreiben" }) }) })
1116
+ /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: a.includes("manual"), children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelButton, children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: f, children: "per Hand/Maus unterschreiben" }) }) })
1116
1117
  ] }) : /* @__PURE__ */ Q("div", { className: V.SignatureManualPanel, children: [
1117
1118
  /* @__PURE__ */ z("div", { className: V.SignatureManualPanelPlaceholder }),
1118
- N(["manual-stored"]) ? /* @__PURE__ */ z("img", { width: _, height: b, alt: "signature", src: n }) : /* @__PURE__ */ z(
1119
+ N(["manual-stored"]) ? /* @__PURE__ */ z("img", { width: b, height: y, alt: "signature", src: n }) : /* @__PURE__ */ z(
1119
1120
  ut,
1120
1121
  {
1121
1122
  penColor: "#262626",
@@ -1123,10 +1124,10 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1123
1124
  minWidth: 0.25,
1124
1125
  maxWidth: 2.75,
1125
1126
  throttle: 12,
1126
- canvasProps: { width: +(_ || 0).toFixed(), height: +(b || 0).toFixed() },
1127
- ref: (X) => l(X),
1127
+ canvasProps: { width: +(b || 0).toFixed(), height: +(y || 0).toFixed() },
1128
+ ref: (E) => v(E),
1128
1129
  clearOnResize: !0,
1129
- onEnd: T
1130
+ onEnd: q
1130
1131
  }
1131
1132
  ),
1132
1133
  /* @__PURE__ */ z(
@@ -1135,7 +1136,7 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1135
1136
  name: "to-generated",
1136
1137
  condition: N(["manual-stored"]),
1137
1138
  className: V.SignatureManualPanelButton,
1138
- children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: D, children: "Zurücksetzen" })
1139
+ children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: Z, children: "Zurücksetzen" })
1139
1140
  }
1140
1141
  )
1141
1142
  ] }) })
@@ -1143,11 +1144,11 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1143
1144
  }
1144
1145
  ),
1145
1146
  /* @__PURE__ */ z(ee.FadeScale, { name: "footer", condition: N(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ Q(ie, { direction: "row", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
1146
- a.includes("auto") ? /* @__PURE__ */ z(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: q, children: "Abbrechen" }) : null,
1147
- /* @__PURE__ */ z(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !n, onClick: f, children: "Speichern" })
1147
+ a.includes("auto") ? /* @__PURE__ */ z(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: k, children: "Abbrechen" }) : null,
1148
+ /* @__PURE__ */ z(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !n, onClick: te, children: "Speichern" })
1148
1149
  ] }) })
1149
1150
  ] });
1150
1151
  };
1151
1152
  export {
1152
- Dt as Signature
1153
+ kt as Signature
1153
1154
  };