@arthurzakharov/ui-kit 1.4.9 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,33 @@
1
- import { jsxs as ee, jsx as j } from "react/jsx-runtime";
2
- import Fe, { useRef as Se, useState as se, useCallback as re, useEffect as we } from "react";
3
- import { a as Be, g as Ne } from "../../_commonjsHelpers-CqEciG1_.js";
4
- import { useResizeObserver as Ue } from "usehooks-ts";
5
- import { RefreshCw as Ye, RotateCcw as He, Check as Ve } from "lucide-react";
6
- import Ee from "clsx";
1
+ import { jsxs as ee, jsx as I } from "react/jsx-runtime";
2
+ import ze, { useRef as Pe, useState as ie, useCallback as ne, useEffect as we } from "react";
3
+ import { a as Ne, g as Be } from "../../_commonjsHelpers-CqEciG1_.js";
4
+ import { useResizeObserver as Fe } from "usehooks-ts";
5
+ import { RefreshCw as Ue, RotateCcw as Ye, Check as He } from "lucide-react";
6
+ import de from "clsx";
7
7
  import { AnimationFadeScale as te } from "../../animations/animation-fade-scale/animation-fade-scale.component.js";
8
- import { AnimationFadeSlide as Xe } from "../../animations/animation-fade-slide/animation-fade-slide.component.js";
9
- import { ControlButton as Te } from "../../controls/control-button/control-button.component.js";
10
- import { ControlButtonText as ue } from "../../controls/control-button-text/control-button-text.component.js";
11
- import { Flex as oe } from "../flex/flex.component.js";
8
+ import { AnimationFadeSlide as Ve } from "../../animations/animation-fade-slide/animation-fade-slide.component.js";
9
+ import { ControlButton as Ee } from "../../controls/control-button/control-button.component.js";
10
+ import { ControlButtonText as se } from "../../controls/control-button-text/control-button-text.component.js";
12
11
  import { Text as he } from "../text/text.component.js";
13
- import { Loader as Je } from "../loader/loader.component.js";
14
- import '../../assets/signature-qHi3xUi4.css';var fe = { exports: {} }, ce = { exports: {} }, le = { exports: {} }, I = {};
15
- var Ce;
16
- function Ze() {
17
- if (Ce) return I;
18
- Ce = 1;
19
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = 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, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
20
- function $(f) {
12
+ import { Loader as Xe } from "../loader/loader.component.js";
13
+ import '../../assets/signature-EuXLu4YT.css';var le = { exports: {} }, ue = { exports: {} }, ce = { exports: {} }, q = {};
14
+ var Te;
15
+ function Je() {
16
+ if (Te) return q;
17
+ Te = 1;
18
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, S = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
19
+ function j(f) {
21
20
  if (typeof f == "object" && f !== null) {
22
21
  var X = f.$$typeof;
23
22
  switch (X) {
24
- case n:
23
+ case r:
25
24
  switch (f = f.type, f) {
26
25
  case d:
27
26
  case o:
28
27
  case t:
29
28
  case i:
30
29
  case a:
31
- case v:
30
+ case p:
32
31
  return f;
33
32
  default:
34
33
  switch (f = f && f.$$typeof, f) {
@@ -42,135 +41,135 @@ function Ze() {
42
41
  return X;
43
42
  }
44
43
  }
45
- case r:
44
+ case n:
46
45
  return X;
47
46
  }
48
47
  }
49
48
  }
50
49
  function k(f) {
51
- return $(f) === o;
50
+ return j(f) === o;
52
51
  }
53
- return I.AsyncMode = d, I.ConcurrentMode = o, I.ContextConsumer = u, I.ContextProvider = c, I.Element = n, I.ForwardRef = l, I.Fragment = t, I.Lazy = x, I.Memo = _, I.Portal = r, I.Profiler = i, I.StrictMode = a, I.Suspense = v, I.isAsyncMode = function(f) {
54
- return k(f) || $(f) === d;
55
- }, I.isConcurrentMode = k, I.isContextConsumer = function(f) {
56
- return $(f) === u;
57
- }, I.isContextProvider = function(f) {
58
- return $(f) === c;
59
- }, I.isElement = function(f) {
60
- return typeof f == "object" && f !== null && f.$$typeof === n;
61
- }, I.isForwardRef = function(f) {
62
- return $(f) === l;
63
- }, I.isFragment = function(f) {
64
- return $(f) === t;
65
- }, I.isLazy = function(f) {
66
- return $(f) === x;
67
- }, I.isMemo = function(f) {
68
- return $(f) === _;
69
- }, I.isPortal = function(f) {
70
- return $(f) === r;
71
- }, I.isProfiler = function(f) {
72
- return $(f) === i;
73
- }, I.isStrictMode = function(f) {
74
- return $(f) === a;
75
- }, I.isSuspense = function(f) {
76
- return $(f) === v;
77
- }, I.isValidElementType = function(f) {
78
- return typeof f == "string" || typeof f == "function" || f === t || f === o || f === i || f === a || f === v || f === m || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === u || f.$$typeof === l || f.$$typeof === P || f.$$typeof === g || f.$$typeof === W || f.$$typeof === b);
79
- }, I.typeOf = $, I;
52
+ return q.AsyncMode = d, q.ConcurrentMode = o, q.ContextConsumer = u, q.ContextProvider = c, q.Element = r, q.ForwardRef = l, q.Fragment = t, q.Lazy = x, q.Memo = _, q.Portal = n, q.Profiler = i, q.StrictMode = a, q.Suspense = p, q.isAsyncMode = function(f) {
53
+ return k(f) || j(f) === d;
54
+ }, q.isConcurrentMode = k, q.isContextConsumer = function(f) {
55
+ return j(f) === u;
56
+ }, q.isContextProvider = function(f) {
57
+ return j(f) === c;
58
+ }, q.isElement = function(f) {
59
+ return typeof f == "object" && f !== null && f.$$typeof === r;
60
+ }, q.isForwardRef = function(f) {
61
+ return j(f) === l;
62
+ }, q.isFragment = function(f) {
63
+ return j(f) === t;
64
+ }, q.isLazy = function(f) {
65
+ return j(f) === x;
66
+ }, q.isMemo = function(f) {
67
+ return j(f) === _;
68
+ }, q.isPortal = function(f) {
69
+ return j(f) === n;
70
+ }, q.isProfiler = function(f) {
71
+ return j(f) === i;
72
+ }, q.isStrictMode = function(f) {
73
+ return j(f) === a;
74
+ }, q.isSuspense = function(f) {
75
+ return j(f) === p;
76
+ }, q.isValidElementType = function(f) {
77
+ return typeof f == "string" || typeof f == "function" || f === t || f === o || f === i || f === a || f === p || f === m || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === u || f.$$typeof === l || f.$$typeof === S || f.$$typeof === y || f.$$typeof === W || f.$$typeof === b);
78
+ }, q.typeOf = j, q;
80
79
  }
81
- var z = {};
82
- var Re;
83
- function Ge() {
84
- return Re || (Re = 1, process.env.NODE_ENV !== "production" && (function() {
85
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = 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, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
86
- function $(p) {
87
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
88
- p === t || p === o || p === i || p === a || p === v || p === m || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === _ || p.$$typeof === c || p.$$typeof === u || p.$$typeof === l || p.$$typeof === P || p.$$typeof === g || p.$$typeof === W || p.$$typeof === b);
80
+ var L = {};
81
+ var Ce;
82
+ function Ze() {
83
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && (function() {
84
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, o = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, S = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
85
+ function j(v) {
86
+ return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
87
+ v === t || v === o || v === i || v === a || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === x || v.$$typeof === _ || v.$$typeof === c || v.$$typeof === u || v.$$typeof === l || v.$$typeof === S || v.$$typeof === y || v.$$typeof === W || v.$$typeof === b);
89
88
  }
90
- function k(p) {
91
- if (typeof p == "object" && p !== null) {
92
- var K = p.$$typeof;
89
+ function k(v) {
90
+ if (typeof v == "object" && v !== null) {
91
+ var K = v.$$typeof;
93
92
  switch (K) {
94
- case n:
95
- var ie = p.type;
96
- switch (ie) {
93
+ case r:
94
+ var oe = v.type;
95
+ switch (oe) {
97
96
  case d:
98
97
  case o:
99
98
  case t:
100
99
  case i:
101
100
  case a:
102
- case v:
103
- return ie;
101
+ case p:
102
+ return oe;
104
103
  default:
105
- var Pe = ie && ie.$$typeof;
106
- switch (Pe) {
104
+ var Se = oe && oe.$$typeof;
105
+ switch (Se) {
107
106
  case u:
108
107
  case l:
109
108
  case x:
110
109
  case _:
111
110
  case c:
112
- return Pe;
111
+ return Se;
113
112
  default:
114
113
  return K;
115
114
  }
116
115
  }
117
- case r:
116
+ case n:
118
117
  return K;
119
118
  }
120
119
  }
121
120
  }
122
- var f = d, X = o, ne = u, Q = c, O = n, S = l, B = t, F = x, y = _, G = r, U = i, Y = a, J = v, N = !1;
123
- function Z(p) {
124
- return N || (N = !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(p) || k(p) === d;
121
+ var f = d, X = o, re = u, Q = c, M = r, P = l, B = t, N = x, g = _, G = n, U = i, H = a, J = p, F = !1;
122
+ function Z(v) {
123
+ return F || (F = !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(v) || k(v) === d;
125
124
  }
126
- function s(p) {
127
- return k(p) === o;
125
+ function s(v) {
126
+ return k(v) === o;
128
127
  }
129
- function h(p) {
130
- return k(p) === u;
128
+ function h(v) {
129
+ return k(v) === u;
131
130
  }
132
- function w(p) {
133
- return k(p) === c;
131
+ function w(v) {
132
+ return k(v) === c;
134
133
  }
135
- function C(p) {
136
- return typeof p == "object" && p !== null && p.$$typeof === n;
134
+ function C(v) {
135
+ return typeof v == "object" && v !== null && v.$$typeof === r;
137
136
  }
138
- function E(p) {
139
- return k(p) === l;
137
+ function E(v) {
138
+ return k(v) === l;
140
139
  }
141
- function M(p) {
142
- return k(p) === t;
140
+ function O(v) {
141
+ return k(v) === t;
143
142
  }
144
- function T(p) {
145
- return k(p) === x;
143
+ function T(v) {
144
+ return k(v) === x;
146
145
  }
147
- function R(p) {
148
- return k(p) === _;
146
+ function R(v) {
147
+ return k(v) === _;
149
148
  }
150
- function A(p) {
151
- return k(p) === r;
149
+ function A(v) {
150
+ return k(v) === n;
152
151
  }
153
- function L(p) {
154
- return k(p) === i;
152
+ function $(v) {
153
+ return k(v) === i;
155
154
  }
156
- function D(p) {
157
- return k(p) === a;
155
+ function D(v) {
156
+ return k(v) === a;
158
157
  }
159
- function H(p) {
160
- return k(p) === v;
158
+ function V(v) {
159
+ return k(v) === p;
161
160
  }
162
- z.AsyncMode = f, z.ConcurrentMode = X, z.ContextConsumer = ne, z.ContextProvider = Q, z.Element = O, z.ForwardRef = S, z.Fragment = B, z.Lazy = F, z.Memo = y, z.Portal = G, z.Profiler = U, z.StrictMode = Y, z.Suspense = J, z.isAsyncMode = Z, z.isConcurrentMode = s, z.isContextConsumer = h, z.isContextProvider = w, z.isElement = C, z.isForwardRef = E, z.isFragment = M, z.isLazy = T, z.isMemo = R, z.isPortal = A, z.isProfiler = L, z.isStrictMode = D, z.isSuspense = H, z.isValidElementType = $, z.typeOf = k;
163
- })()), z;
161
+ L.AsyncMode = f, L.ConcurrentMode = X, L.ContextConsumer = re, L.ContextProvider = Q, L.Element = M, L.ForwardRef = P, L.Fragment = B, L.Lazy = N, L.Memo = g, L.Portal = G, L.Profiler = U, L.StrictMode = H, L.Suspense = J, L.isAsyncMode = Z, L.isConcurrentMode = s, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = C, L.isForwardRef = E, L.isFragment = O, L.isLazy = T, L.isMemo = R, L.isPortal = A, L.isProfiler = $, L.isStrictMode = D, L.isSuspense = V, L.isValidElementType = j, L.typeOf = k;
162
+ })()), L;
164
163
  }
165
- var Oe;
166
- function We() {
167
- return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? le.exports = Ze() : le.exports = Ge()), le.exports;
164
+ var Re;
165
+ function $e() {
166
+ return Re || (Re = 1, process.env.NODE_ENV === "production" ? ce.exports = Je() : ce.exports = Ze()), ce.exports;
168
167
  }
169
- var pe, Me;
170
- function Ke() {
171
- if (Me) return pe;
168
+ var ve, Me;
169
+ function Ge() {
170
+ if (Me) return ve;
172
171
  Me = 1;
173
- var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
172
+ var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
174
173
  function t(i) {
175
174
  if (i == null)
176
175
  throw new TypeError("Object.assign cannot be called with null or undefined");
@@ -198,39 +197,39 @@ function Ke() {
198
197
  return !1;
199
198
  }
200
199
  }
201
- return pe = a() ? Object.assign : function(i, c) {
200
+ return ve = a() ? Object.assign : function(i, c) {
202
201
  for (var u, d = t(i), o, l = 1; l < arguments.length; l++) {
203
202
  u = Object(arguments[l]);
204
- for (var v in u)
205
- n.call(u, v) && (d[v] = u[v]);
203
+ for (var p in u)
204
+ r.call(u, p) && (d[p] = u[p]);
206
205
  if (e) {
207
206
  o = e(u);
208
207
  for (var m = 0; m < o.length; m++)
209
- r.call(u, o[m]) && (d[o[m]] = u[o[m]]);
208
+ n.call(u, o[m]) && (d[o[m]] = u[o[m]]);
210
209
  }
211
210
  }
212
211
  return d;
213
- }, pe;
212
+ }, ve;
214
213
  }
215
- var ve, Ae;
214
+ var pe, Oe;
216
215
  function be() {
217
- if (Ae) return ve;
218
- Ae = 1;
216
+ if (Oe) return pe;
217
+ Oe = 1;
219
218
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
220
- return ve = e, ve;
219
+ return pe = e, pe;
221
220
  }
222
- var ye, De;
223
- function qe() {
224
- return De || (De = 1, ye = Function.call.bind(Object.prototype.hasOwnProperty)), ye;
221
+ var ge, Ae;
222
+ function We() {
223
+ return Ae || (Ae = 1, ge = Function.call.bind(Object.prototype.hasOwnProperty)), ge;
225
224
  }
226
- var me, ke;
227
- function Qe() {
228
- if (ke) return me;
229
- ke = 1;
225
+ var me, De;
226
+ function Ke() {
227
+ if (De) return me;
228
+ De = 1;
230
229
  var e = function() {
231
230
  };
232
231
  if (process.env.NODE_ENV !== "production") {
233
- var n = /* @__PURE__ */ be(), r = {}, t = /* @__PURE__ */ qe();
232
+ var r = /* @__PURE__ */ be(), n = {}, t = /* @__PURE__ */ We();
234
233
  e = function(i) {
235
234
  var c = "Warning: " + i;
236
235
  typeof console < "u" && console.error(c);
@@ -244,7 +243,7 @@ function Qe() {
244
243
  if (process.env.NODE_ENV !== "production") {
245
244
  for (var l in i)
246
245
  if (t(i, l)) {
247
- var v;
246
+ var p;
248
247
  try {
249
248
  if (typeof i[l] != "function") {
250
249
  var m = Error(
@@ -252,31 +251,31 @@ function Qe() {
252
251
  );
253
252
  throw m.name = "Invariant Violation", m;
254
253
  }
255
- v = i[l](c, l, d, u, null, n);
254
+ p = i[l](c, l, d, u, null, r);
256
255
  } catch (x) {
257
- v = x;
256
+ p = x;
258
257
  }
259
- if (v && !(v instanceof Error) && e(
260
- (d || "React class") + ": type specification of " + u + " `" + 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)."
261
- ), v instanceof Error && !(v.message in r)) {
262
- r[v.message] = !0;
258
+ if (p && !(p instanceof Error) && e(
259
+ (d || "React class") + ": type specification of " + u + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
260
+ ), p instanceof Error && !(p.message in n)) {
261
+ n[p.message] = !0;
263
262
  var _ = o ? o() : "";
264
263
  e(
265
- "Failed " + u + " type: " + v.message + (_ ?? "")
264
+ "Failed " + u + " type: " + p.message + (_ ?? "")
266
265
  );
267
266
  }
268
267
  }
269
268
  }
270
269
  }
271
270
  return a.resetWarningCache = function() {
272
- process.env.NODE_ENV !== "production" && (r = {});
271
+ process.env.NODE_ENV !== "production" && (n = {});
273
272
  }, me = a, me;
274
273
  }
275
- var ge, je;
276
- function et() {
277
- if (je) return ge;
278
- je = 1;
279
- var e = We(), n = Ke(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ qe(), a = /* @__PURE__ */ Qe(), i = function() {
274
+ var ye, ke;
275
+ function Qe() {
276
+ if (ke) return ye;
277
+ ke = 1;
278
+ var e = $e(), r = Ge(), n = /* @__PURE__ */ be(), t = /* @__PURE__ */ We(), a = /* @__PURE__ */ Ke(), i = function() {
280
279
  };
281
280
  process.env.NODE_ENV !== "production" && (i = function(u) {
282
281
  var d = "Warning: " + u;
@@ -289,33 +288,33 @@ function et() {
289
288
  function c() {
290
289
  return null;
291
290
  }
292
- return ge = function(u, d) {
291
+ return ye = function(u, d) {
293
292
  var o = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
294
- function v(s) {
293
+ function p(s) {
295
294
  var h = s && (o && s[o] || s[l]);
296
295
  if (typeof h == "function")
297
296
  return h;
298
297
  }
299
298
  var m = "<<anonymous>>", _ = {
300
- array: g("array"),
301
- bigint: g("bigint"),
302
- bool: g("boolean"),
303
- func: g("function"),
304
- number: g("number"),
305
- object: g("object"),
306
- string: g("string"),
307
- symbol: g("symbol"),
299
+ array: y("array"),
300
+ bigint: y("bigint"),
301
+ bool: y("boolean"),
302
+ func: y("function"),
303
+ number: y("number"),
304
+ object: y("object"),
305
+ string: y("string"),
306
+ symbol: y("symbol"),
308
307
  any: W(),
309
- arrayOf: $,
308
+ arrayOf: j,
310
309
  element: k(),
311
310
  elementType: f(),
312
311
  instanceOf: X,
313
- node: S(),
312
+ node: P(),
314
313
  objectOf: Q,
315
- oneOf: ne,
316
- oneOfType: O,
317
- shape: F,
318
- exact: y
314
+ oneOf: re,
315
+ oneOfType: M,
316
+ shape: N,
317
+ exact: g
319
318
  };
320
319
  function x(s, h) {
321
320
  return s === h ? s !== 0 || 1 / s === 1 / h : s !== s && h !== h;
@@ -324,16 +323,16 @@ function et() {
324
323
  this.message = s, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
325
324
  }
326
325
  b.prototype = Error.prototype;
327
- function P(s) {
326
+ function S(s) {
328
327
  if (process.env.NODE_ENV !== "production")
329
328
  var h = {}, w = 0;
330
- function C(M, T, R, A, L, D, H) {
331
- if (A = A || m, D = D || R, H !== r) {
329
+ function C(O, T, R, A, $, D, V) {
330
+ if (A = A || m, D = D || R, V !== n) {
332
331
  if (d) {
333
- var p = new Error(
332
+ var v = new Error(
334
333
  "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"
335
334
  );
336
- throw p.name = "Invariant Violation", p;
335
+ throw v.name = "Invariant Violation", v;
337
336
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
338
337
  var K = A + ":" + R;
339
338
  !h[K] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -342,184 +341,184 @@ function et() {
342
341
  ), h[K] = !0, w++);
343
342
  }
344
343
  }
345
- return T[R] == null ? M ? T[R] === null ? new b("The " + L + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new b("The " + L + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(T, R, A, L, D);
344
+ return T[R] == null ? O ? T[R] === null ? new b("The " + $ + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new b("The " + $ + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(T, R, A, $, D);
346
345
  }
347
346
  var E = C.bind(null, !1);
348
347
  return E.isRequired = C.bind(null, !0), E;
349
348
  }
350
- function g(s) {
351
- function h(w, C, E, M, T, R) {
352
- var A = w[C], L = Y(A);
353
- if (L !== s) {
349
+ function y(s) {
350
+ function h(w, C, E, O, T, R) {
351
+ var A = w[C], $ = H(A);
352
+ if ($ !== s) {
354
353
  var D = J(A);
355
354
  return new b(
356
- "Invalid " + M + " `" + T + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + s + "`."),
355
+ "Invalid " + O + " `" + T + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + s + "`."),
357
356
  { expectedType: s }
358
357
  );
359
358
  }
360
359
  return null;
361
360
  }
362
- return P(h);
361
+ return S(h);
363
362
  }
364
363
  function W() {
365
- return P(c);
364
+ return S(c);
366
365
  }
367
- function $(s) {
368
- function h(w, C, E, M, T) {
366
+ function j(s) {
367
+ function h(w, C, E, O, T) {
369
368
  if (typeof s != "function")
370
369
  return new b("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
371
370
  var R = w[C];
372
371
  if (!Array.isArray(R)) {
373
- var A = Y(R);
374
- return new b("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an array."));
372
+ var A = H(R);
373
+ return new b("Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an array."));
375
374
  }
376
- for (var L = 0; L < R.length; L++) {
377
- var D = s(R, L, E, M, T + "[" + L + "]", r);
375
+ for (var $ = 0; $ < R.length; $++) {
376
+ var D = s(R, $, E, O, T + "[" + $ + "]", n);
378
377
  if (D instanceof Error)
379
378
  return D;
380
379
  }
381
380
  return null;
382
381
  }
383
- return P(h);
382
+ return S(h);
384
383
  }
385
384
  function k() {
386
- function s(h, w, C, E, M) {
385
+ function s(h, w, C, E, O) {
387
386
  var T = h[w];
388
387
  if (!u(T)) {
389
- var R = Y(T);
390
- return new b("Invalid " + E + " `" + M + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
388
+ var R = H(T);
389
+ return new b("Invalid " + E + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
391
390
  }
392
391
  return null;
393
392
  }
394
- return P(s);
393
+ return S(s);
395
394
  }
396
395
  function f() {
397
- function s(h, w, C, E, M) {
396
+ function s(h, w, C, E, O) {
398
397
  var T = h[w];
399
398
  if (!e.isValidElementType(T)) {
400
- var R = Y(T);
401
- return new b("Invalid " + E + " `" + M + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
399
+ var R = H(T);
400
+ return new b("Invalid " + E + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
402
401
  }
403
402
  return null;
404
403
  }
405
- return P(s);
404
+ return S(s);
406
405
  }
407
406
  function X(s) {
408
- function h(w, C, E, M, T) {
407
+ function h(w, C, E, O, T) {
409
408
  if (!(w[C] instanceof s)) {
410
409
  var R = s.name || m, A = Z(w[C]);
411
- return new b("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected ") + ("instance of `" + R + "`."));
410
+ return new b("Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected ") + ("instance of `" + R + "`."));
412
411
  }
413
412
  return null;
414
413
  }
415
- return P(h);
414
+ return S(h);
416
415
  }
417
- function ne(s) {
416
+ function re(s) {
418
417
  if (!Array.isArray(s))
419
418
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
420
419
  "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])."
421
420
  ) : i("Invalid argument supplied to oneOf, expected an array.")), c;
422
- function h(w, C, E, M, T) {
421
+ function h(w, C, E, O, T) {
423
422
  for (var R = w[C], A = 0; A < s.length; A++)
424
423
  if (x(R, s[A]))
425
424
  return null;
426
- var L = JSON.stringify(s, function(H, p) {
427
- var K = J(p);
428
- return K === "symbol" ? String(p) : p;
425
+ var $ = JSON.stringify(s, function(V, v) {
426
+ var K = J(v);
427
+ return K === "symbol" ? String(v) : v;
429
428
  });
430
- return new b("Invalid " + M + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + E + "`, expected one of " + L + "."));
429
+ return new b("Invalid " + O + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + E + "`, expected one of " + $ + "."));
431
430
  }
432
- return P(h);
431
+ return S(h);
433
432
  }
434
433
  function Q(s) {
435
- function h(w, C, E, M, T) {
434
+ function h(w, C, E, O, T) {
436
435
  if (typeof s != "function")
437
436
  return new b("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
438
- var R = w[C], A = Y(R);
437
+ var R = w[C], A = H(R);
439
438
  if (A !== "object")
440
- return new b("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an object."));
441
- for (var L in R)
442
- if (t(R, L)) {
443
- var D = s(R, L, E, M, T + "." + L, r);
439
+ return new b("Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an object."));
440
+ for (var $ in R)
441
+ if (t(R, $)) {
442
+ var D = s(R, $, E, O, T + "." + $, n);
444
443
  if (D instanceof Error)
445
444
  return D;
446
445
  }
447
446
  return null;
448
447
  }
449
- return P(h);
448
+ return S(h);
450
449
  }
451
- function O(s) {
450
+ function M(s) {
452
451
  if (!Array.isArray(s))
453
452
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
454
453
  for (var h = 0; h < s.length; h++) {
455
454
  var w = s[h];
456
455
  if (typeof w != "function")
457
456
  return i(
458
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(w) + " at index " + h + "."
457
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(w) + " at index " + h + "."
459
458
  ), c;
460
459
  }
461
- function C(E, M, T, R, A) {
462
- for (var L = [], D = 0; D < s.length; D++) {
463
- var H = s[D], p = H(E, M, T, R, A, r);
464
- if (p == null)
460
+ function C(E, O, T, R, A) {
461
+ for (var $ = [], D = 0; D < s.length; D++) {
462
+ var V = s[D], v = V(E, O, T, R, A, n);
463
+ if (v == null)
465
464
  return null;
466
- p.data && t(p.data, "expectedType") && L.push(p.data.expectedType);
465
+ v.data && t(v.data, "expectedType") && $.push(v.data.expectedType);
467
466
  }
468
- var K = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
467
+ var K = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
469
468
  return new b("Invalid " + R + " `" + A + "` supplied to " + ("`" + T + "`" + K + "."));
470
469
  }
471
- return P(C);
470
+ return S(C);
472
471
  }
473
- function S() {
474
- function s(h, w, C, E, M) {
475
- return G(h[w]) ? null : new b("Invalid " + E + " `" + M + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
472
+ function P() {
473
+ function s(h, w, C, E, O) {
474
+ return G(h[w]) ? null : new b("Invalid " + E + " `" + O + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
476
475
  }
477
- return P(s);
476
+ return S(s);
478
477
  }
479
478
  function B(s, h, w, C, E) {
480
479
  return new b(
481
480
  (s || "React class") + ": " + h + " type `" + w + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
482
481
  );
483
482
  }
484
- function F(s) {
485
- function h(w, C, E, M, T) {
486
- var R = w[C], A = Y(R);
483
+ function N(s) {
484
+ function h(w, C, E, O, T) {
485
+ var R = w[C], A = H(R);
487
486
  if (A !== "object")
488
- return new b("Invalid " + M + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
489
- for (var L in s) {
490
- var D = s[L];
487
+ return new b("Invalid " + O + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
488
+ for (var $ in s) {
489
+ var D = s[$];
491
490
  if (typeof D != "function")
492
- return B(E, M, T, L, J(D));
493
- var H = D(R, L, E, M, T + "." + L, r);
494
- if (H)
495
- return H;
491
+ return B(E, O, T, $, J(D));
492
+ var V = D(R, $, E, O, T + "." + $, n);
493
+ if (V)
494
+ return V;
496
495
  }
497
496
  return null;
498
497
  }
499
- return P(h);
498
+ return S(h);
500
499
  }
501
- function y(s) {
502
- function h(w, C, E, M, T) {
503
- var R = w[C], A = Y(R);
500
+ function g(s) {
501
+ function h(w, C, E, O, T) {
502
+ var R = w[C], A = H(R);
504
503
  if (A !== "object")
505
- return new b("Invalid " + M + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
506
- var L = n({}, w[C], s);
507
- for (var D in L) {
508
- var H = s[D];
509
- if (t(s, D) && typeof H != "function")
510
- return B(E, M, T, D, J(H));
511
- if (!H)
504
+ return new b("Invalid " + O + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
505
+ var $ = r({}, w[C], s);
506
+ for (var D in $) {
507
+ var V = s[D];
508
+ if (t(s, D) && typeof V != "function")
509
+ return B(E, O, T, D, J(V));
510
+ if (!V)
512
511
  return new b(
513
- "Invalid " + M + " `" + T + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
512
+ "Invalid " + O + " `" + T + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
514
513
  Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
515
514
  );
516
- var p = H(R, D, E, M, T + "." + D, r);
517
- if (p)
518
- return p;
515
+ var v = V(R, D, E, O, T + "." + D, n);
516
+ if (v)
517
+ return v;
519
518
  }
520
519
  return null;
521
520
  }
522
- return P(h);
521
+ return S(h);
523
522
  }
524
523
  function G(s) {
525
524
  switch (typeof s) {
@@ -534,7 +533,7 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
534
533
  return s.every(G);
535
534
  if (s === null || u(s))
536
535
  return !0;
537
- var h = v(s);
536
+ var h = p(s);
538
537
  if (h) {
539
538
  var w = h.call(s), C;
540
539
  if (h !== s.entries) {
@@ -557,14 +556,14 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
557
556
  function U(s, h) {
558
557
  return s === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
559
558
  }
560
- function Y(s) {
559
+ function H(s) {
561
560
  var h = typeof s;
562
561
  return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : U(h, s) ? "symbol" : h;
563
562
  }
564
563
  function J(s) {
565
564
  if (typeof s > "u" || s === null)
566
565
  return "" + s;
567
- var h = Y(s);
566
+ var h = H(s);
568
567
  if (h === "object") {
569
568
  if (s instanceof Date)
570
569
  return "date";
@@ -573,7 +572,7 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
573
572
  }
574
573
  return h;
575
574
  }
576
- function N(s) {
575
+ function F(s) {
577
576
  var h = J(s);
578
577
  switch (h) {
579
578
  case "array":
@@ -591,20 +590,20 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
591
590
  return !s.constructor || !s.constructor.name ? m : s.constructor.name;
592
591
  }
593
592
  return _.checkPropTypes = a, _.resetWarningCache = a.resetWarningCache, _.PropTypes = _, _;
594
- }, ge;
593
+ }, ye;
595
594
  }
596
595
  var _e, Ie;
597
- function tt() {
596
+ function et() {
598
597
  if (Ie) return _e;
599
598
  Ie = 1;
600
599
  var e = /* @__PURE__ */ be();
601
- function n() {
602
- }
603
600
  function r() {
604
601
  }
605
- return r.resetWarningCache = n, _e = function() {
606
- function t(c, u, d, o, l, v) {
607
- if (v !== e) {
602
+ function n() {
603
+ }
604
+ return n.resetWarningCache = r, _e = function() {
605
+ function t(c, u, d, o, l, p) {
606
+ if (p !== e) {
608
607
  var m = new Error(
609
608
  "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"
610
609
  );
@@ -635,24 +634,24 @@ function tt() {
635
634
  oneOfType: a,
636
635
  shape: a,
637
636
  exact: a,
638
- checkPropTypes: r,
639
- resetWarningCache: n
637
+ checkPropTypes: n,
638
+ resetWarningCache: r
640
639
  };
641
640
  return i.PropTypes = i, i;
642
641
  }, _e;
643
642
  }
644
- var ze;
645
- function rt() {
646
- if (ze) return ce.exports;
647
- if (ze = 1, process.env.NODE_ENV !== "production") {
648
- var e = We(), n = !0;
649
- ce.exports = /* @__PURE__ */ et()(e.isElement, n);
643
+ var qe;
644
+ function tt() {
645
+ if (qe) return ue.exports;
646
+ if (qe = 1, process.env.NODE_ENV !== "production") {
647
+ var e = $e(), r = !0;
648
+ ue.exports = /* @__PURE__ */ Qe()(e.isElement, r);
650
649
  } else
651
- ce.exports = /* @__PURE__ */ tt()();
652
- return ce.exports;
650
+ ue.exports = /* @__PURE__ */ et()();
651
+ return ue.exports;
653
652
  }
654
- function ae(e, n, r) {
655
- this.x = e, this.y = n, this.time = r || (/* @__PURE__ */ new Date()).getTime();
653
+ function ae(e, r, n) {
654
+ this.x = e, this.y = r, this.time = n || (/* @__PURE__ */ new Date()).getTime();
656
655
  }
657
656
  ae.prototype.velocityFrom = function(e) {
658
657
  return this.time !== e.time ? this.distanceTo(e) / (this.time - e.time) : 1;
@@ -663,95 +662,95 @@ ae.prototype.distanceTo = function(e) {
663
662
  ae.prototype.equals = function(e) {
664
663
  return this.x === e.x && this.y === e.y && this.time === e.time;
665
664
  };
666
- function xe(e, n, r, t) {
667
- this.startPoint = e, this.control1 = n, this.control2 = r, this.endPoint = t;
665
+ function xe(e, r, n, t) {
666
+ this.startPoint = e, this.control1 = r, this.control2 = n, this.endPoint = t;
668
667
  }
669
668
  xe.prototype.length = function() {
670
- for (var e = 10, n = 0, r = void 0, t = void 0, a = 0; a <= e; a += 1) {
669
+ for (var e = 10, r = 0, n = void 0, t = void 0, a = 0; a <= e; a += 1) {
671
670
  var i = a / e, c = this._point(i, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), u = this._point(i, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
672
671
  if (a > 0) {
673
- var d = c - r, o = u - t;
674
- n += Math.sqrt(d * d + o * o);
672
+ var d = c - n, o = u - t;
673
+ r += Math.sqrt(d * d + o * o);
675
674
  }
676
- r = c, t = u;
675
+ n = c, t = u;
677
676
  }
678
- return n;
677
+ return r;
679
678
  };
680
- xe.prototype._point = function(e, n, r, t, a) {
681
- return n * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + a * e * e * e;
679
+ xe.prototype._point = function(e, r, n, t, a) {
680
+ return r * (1 - e) * (1 - e) * (1 - e) + 3 * n * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + a * e * e * e;
682
681
  };
683
- function nt(e, n, r) {
682
+ function nt(e, r, n) {
684
683
  var t, a, i, c = null, u = 0;
685
- r || (r = {});
684
+ n || (n = {});
686
685
  var d = function() {
687
- u = r.leading === !1 ? 0 : Date.now(), c = null, i = e.apply(t, a), c || (t = a = null);
686
+ u = n.leading === !1 ? 0 : Date.now(), c = null, i = e.apply(t, a), c || (t = a = null);
688
687
  };
689
688
  return function() {
690
689
  var o = Date.now();
691
- !u && r.leading === !1 && (u = o);
692
- var l = n - (o - u);
693
- return t = this, a = arguments, l <= 0 || l > n ? (c && (clearTimeout(c), c = null), u = o, i = e.apply(t, a), c || (t = a = null)) : !c && r.trailing !== !1 && (c = setTimeout(d, l)), i;
690
+ !u && n.leading === !1 && (u = o);
691
+ var l = r - (o - u);
692
+ return t = this, a = arguments, l <= 0 || l > r ? (c && (clearTimeout(c), c = null), u = o, i = e.apply(t, a), c || (t = a = null)) : !c && n.trailing !== !1 && (c = setTimeout(d, l)), i;
694
693
  };
695
694
  }
696
- function q(e, n) {
697
- var r = this, t = n || {};
698
- this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = nt(q.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = q.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
695
+ function z(e, r) {
696
+ var n = this, t = r || {};
697
+ this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = nt(z.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = z.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
699
698
  return (this.minWidth + this.maxWidth) / 2;
700
699
  }, this.penColor = t.penColor || "black", this.backgroundColor = t.backgroundColor || "rgba(0,0,0,0)", this.onBegin = t.onBegin, this.onEnd = t.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
701
- a.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(a));
700
+ a.which === 1 && (n._mouseButtonDown = !0, n._strokeBegin(a));
702
701
  }, this._handleMouseMove = function(a) {
703
- r._mouseButtonDown && r._strokeMoveUpdate(a);
702
+ n._mouseButtonDown && n._strokeMoveUpdate(a);
704
703
  }, this._handleMouseUp = function(a) {
705
- a.which === 1 && r._mouseButtonDown && (r._mouseButtonDown = !1, r._strokeEnd(a));
704
+ a.which === 1 && n._mouseButtonDown && (n._mouseButtonDown = !1, n._strokeEnd(a));
706
705
  }, this._handleTouchStart = function(a) {
707
706
  if (a.targetTouches.length === 1) {
708
707
  var i = a.changedTouches[0];
709
- r._strokeBegin(i);
708
+ n._strokeBegin(i);
710
709
  }
711
710
  }, this._handleTouchMove = function(a) {
712
711
  a.preventDefault();
713
712
  var i = a.targetTouches[0];
714
- r._strokeMoveUpdate(i);
713
+ n._strokeMoveUpdate(i);
715
714
  }, this._handleTouchEnd = function(a) {
716
- var i = a.target === r._canvas;
717
- i && (a.preventDefault(), r._strokeEnd(a));
715
+ var i = a.target === n._canvas;
716
+ i && (a.preventDefault(), n._strokeEnd(a));
718
717
  }, this.on();
719
718
  }
720
- q.prototype.clear = function() {
721
- var e = this._ctx, n = this._canvas;
722
- e.fillStyle = this.backgroundColor, e.clearRect(0, 0, n.width, n.height), e.fillRect(0, 0, n.width, n.height), this._data = [], this._reset(), this._isEmpty = !0;
719
+ z.prototype.clear = function() {
720
+ var e = this._ctx, r = this._canvas;
721
+ e.fillStyle = this.backgroundColor, e.clearRect(0, 0, r.width, r.height), e.fillRect(0, 0, r.width, r.height), this._data = [], this._reset(), this._isEmpty = !0;
723
722
  };
724
- q.prototype.fromDataURL = function(e) {
725
- var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = r.ratio || window.devicePixelRatio || 1, i = r.width || this._canvas.width / a, c = r.height || this._canvas.height / a;
723
+ z.prototype.fromDataURL = function(e) {
724
+ var r = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = n.ratio || window.devicePixelRatio || 1, i = n.width || this._canvas.width / a, c = n.height || this._canvas.height / a;
726
725
  this._reset(), t.src = e, t.onload = function() {
727
- n._ctx.drawImage(t, 0, 0, i, c);
726
+ r._ctx.drawImage(t, 0, 0, i, c);
728
727
  }, this._isEmpty = !1;
729
728
  };
730
- q.prototype.toDataURL = function(e) {
731
- var n;
729
+ z.prototype.toDataURL = function(e) {
730
+ var r;
732
731
  switch (e) {
733
732
  case "image/svg+xml":
734
733
  return this._toSVG();
735
734
  default:
736
- for (var r = arguments.length, t = Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
735
+ for (var n = arguments.length, t = Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
737
736
  t[a - 1] = arguments[a];
738
- return (n = this._canvas).toDataURL.apply(n, [e].concat(t));
737
+ return (r = this._canvas).toDataURL.apply(r, [e].concat(t));
739
738
  }
740
739
  };
741
- q.prototype.on = function() {
740
+ z.prototype.on = function() {
742
741
  this._handleMouseEvents(), this._handleTouchEvents();
743
742
  };
744
- q.prototype.off = function() {
743
+ z.prototype.off = function() {
745
744
  this._canvas.removeEventListener("mousedown", this._handleMouseDown), this._canvas.removeEventListener("mousemove", this._handleMouseMove), document.removeEventListener("mouseup", this._handleMouseUp), this._canvas.removeEventListener("touchstart", this._handleTouchStart), this._canvas.removeEventListener("touchmove", this._handleTouchMove), this._canvas.removeEventListener("touchend", this._handleTouchEnd);
746
745
  };
747
- q.prototype.isEmpty = function() {
746
+ z.prototype.isEmpty = function() {
748
747
  return this._isEmpty;
749
748
  };
750
- q.prototype._strokeBegin = function(e) {
749
+ z.prototype._strokeBegin = function(e) {
751
750
  this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
752
751
  };
753
- q.prototype._strokeUpdate = function(e) {
754
- var n = e.clientX, r = e.clientY, t = this._createPoint(n, r), a = this._data[this._data.length - 1], i = a && a[a.length - 1], c = i && t.distanceTo(i) < this.minDistance;
752
+ z.prototype._strokeUpdate = function(e) {
753
+ var r = e.clientX, n = e.clientY, t = this._createPoint(r, n), a = this._data[this._data.length - 1], i = a && a[a.length - 1], c = i && t.distanceTo(i) < this.minDistance;
755
754
  if (!(i && c)) {
756
755
  var u = this._addPoint(t), d = u.curve, o = u.widths;
757
756
  d && o && this._drawCurve(d, o.start, o.end), this._data[this._data.length - 1].push({
@@ -762,79 +761,79 @@ q.prototype._strokeUpdate = function(e) {
762
761
  });
763
762
  }
764
763
  };
765
- q.prototype._strokeEnd = function(e) {
766
- var n = this.points.length > 2, r = this.points[0];
767
- if (!n && r && this._drawDot(r), r) {
764
+ z.prototype._strokeEnd = function(e) {
765
+ var r = this.points.length > 2, n = this.points[0];
766
+ if (!r && n && this._drawDot(n), n) {
768
767
  var t = this._data[this._data.length - 1], a = t[t.length - 1];
769
- r.equals(a) || t.push({
770
- x: r.x,
771
- y: r.y,
772
- time: r.time,
768
+ n.equals(a) || t.push({
769
+ x: n.x,
770
+ y: n.y,
771
+ time: n.time,
773
772
  color: this.penColor
774
773
  });
775
774
  }
776
775
  typeof this.onEnd == "function" && this.onEnd(e);
777
776
  };
778
- q.prototype._handleMouseEvents = function() {
777
+ z.prototype._handleMouseEvents = function() {
779
778
  this._mouseButtonDown = !1, this._canvas.addEventListener("mousedown", this._handleMouseDown), this._canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
780
779
  };
781
- q.prototype._handleTouchEvents = function() {
780
+ z.prototype._handleTouchEvents = function() {
782
781
  this._canvas.style.msTouchAction = "none", this._canvas.style.touchAction = "none", this._canvas.addEventListener("touchstart", this._handleTouchStart), this._canvas.addEventListener("touchmove", this._handleTouchMove), this._canvas.addEventListener("touchend", this._handleTouchEnd);
783
782
  };
784
- q.prototype._reset = function() {
783
+ z.prototype._reset = function() {
785
784
  this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
786
785
  };
787
- q.prototype._createPoint = function(e, n, r) {
786
+ z.prototype._createPoint = function(e, r, n) {
788
787
  var t = this._canvas.getBoundingClientRect();
789
- return new ae(e - t.left, n - t.top, r || (/* @__PURE__ */ new Date()).getTime());
788
+ return new ae(e - t.left, r - t.top, n || (/* @__PURE__ */ new Date()).getTime());
790
789
  };
791
- q.prototype._addPoint = function(e) {
792
- var n = this.points, r = void 0;
793
- if (n.push(e), n.length > 2) {
794
- n.length === 3 && n.unshift(n[0]), r = this._calculateCurveControlPoints(n[0], n[1], n[2]);
795
- var t = r.c2;
796
- r = this._calculateCurveControlPoints(n[1], n[2], n[3]);
797
- var a = r.c1, i = new xe(n[1], t, a, n[2]), c = this._calculateCurveWidths(i);
798
- return n.shift(), { curve: i, widths: c };
790
+ z.prototype._addPoint = function(e) {
791
+ var r = this.points, n = void 0;
792
+ if (r.push(e), r.length > 2) {
793
+ r.length === 3 && r.unshift(r[0]), n = this._calculateCurveControlPoints(r[0], r[1], r[2]);
794
+ var t = n.c2;
795
+ n = this._calculateCurveControlPoints(r[1], r[2], r[3]);
796
+ var a = n.c1, i = new xe(r[1], t, a, r[2]), c = this._calculateCurveWidths(i);
797
+ return r.shift(), { curve: i, widths: c };
799
798
  }
800
799
  return {};
801
800
  };
802
- q.prototype._calculateCurveControlPoints = function(e, n, r) {
803
- var t = e.x - n.x, a = e.y - n.y, i = n.x - r.x, c = n.y - r.y, u = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = { x: (n.x + r.x) / 2, y: (n.y + r.y) / 2 }, o = Math.sqrt(t * t + a * a), l = Math.sqrt(i * i + c * c), v = u.x - d.x, m = u.y - d.y, _ = l / (o + l), x = { x: d.x + v * _, y: d.y + m * _ }, b = n.x - x.x, P = n.y - x.y;
801
+ z.prototype._calculateCurveControlPoints = function(e, r, n) {
802
+ var t = e.x - r.x, a = e.y - r.y, i = r.x - n.x, c = r.y - n.y, u = { x: (e.x + r.x) / 2, y: (e.y + r.y) / 2 }, d = { x: (r.x + n.x) / 2, y: (r.y + n.y) / 2 }, o = Math.sqrt(t * t + a * a), l = Math.sqrt(i * i + c * c), p = u.x - d.x, m = u.y - d.y, _ = l / (o + l), x = { x: d.x + p * _, y: d.y + m * _ }, b = r.x - x.x, S = r.y - x.y;
804
803
  return {
805
- c1: new ae(u.x + b, u.y + P),
806
- c2: new ae(d.x + b, d.y + P)
804
+ c1: new ae(u.x + b, u.y + S),
805
+ c2: new ae(d.x + b, d.y + S)
807
806
  };
808
807
  };
809
- q.prototype._calculateCurveWidths = function(e) {
810
- var n = e.startPoint, r = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * r.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity, i = this._strokeWidth(a);
808
+ z.prototype._calculateCurveWidths = function(e) {
809
+ var r = e.startPoint, n = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * n.velocityFrom(r) + (1 - this.velocityFilterWeight) * this._lastVelocity, i = this._strokeWidth(a);
811
810
  return t.start = this._lastWidth, t.end = i, this._lastVelocity = a, this._lastWidth = i, t;
812
811
  };
813
- q.prototype._strokeWidth = function(e) {
812
+ z.prototype._strokeWidth = function(e) {
814
813
  return Math.max(this.maxWidth / (e + 1), this.minWidth);
815
814
  };
816
- q.prototype._drawPoint = function(e, n, r) {
815
+ z.prototype._drawPoint = function(e, r, n) {
817
816
  var t = this._ctx;
818
- t.moveTo(e, n), t.arc(e, n, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
817
+ t.moveTo(e, r), t.arc(e, r, n, 0, 2 * Math.PI, !1), this._isEmpty = !1;
819
818
  };
820
- q.prototype._drawCurve = function(e, n, r) {
821
- var t = this._ctx, a = r - n, i = Math.floor(e.length());
819
+ z.prototype._drawCurve = function(e, r, n) {
820
+ var t = this._ctx, a = n - r, i = Math.floor(e.length());
822
821
  t.beginPath();
823
822
  for (var c = 0; c < i; c += 1) {
824
- var u = c / i, d = u * u, o = d * u, l = 1 - u, v = l * l, m = v * l, _ = m * e.startPoint.x;
825
- _ += 3 * v * u * e.control1.x, _ += 3 * l * d * e.control2.x, _ += o * e.endPoint.x;
823
+ var u = c / i, d = u * u, o = d * u, l = 1 - u, p = l * l, m = p * l, _ = m * e.startPoint.x;
824
+ _ += 3 * p * u * e.control1.x, _ += 3 * l * d * e.control2.x, _ += o * e.endPoint.x;
826
825
  var x = m * e.startPoint.y;
827
- x += 3 * v * u * e.control1.y, x += 3 * l * d * e.control2.y, x += o * e.endPoint.y;
828
- var b = n + o * a;
826
+ x += 3 * p * u * e.control1.y, x += 3 * l * d * e.control2.y, x += o * e.endPoint.y;
827
+ var b = r + o * a;
829
828
  this._drawPoint(_, x, b);
830
829
  }
831
830
  t.closePath(), t.fill();
832
831
  };
833
- q.prototype._drawDot = function(e) {
834
- var n = this._ctx, r = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
835
- n.beginPath(), this._drawPoint(e.x, e.y, r), n.closePath(), n.fill();
832
+ z.prototype._drawDot = function(e) {
833
+ var r = this._ctx, n = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
834
+ r.beginPath(), this._drawPoint(e.x, e.y, n), r.closePath(), r.fill();
836
835
  };
837
- q.prototype._fromData = function(e, n, r) {
836
+ z.prototype._fromData = function(e, r, n) {
838
837
  for (var t = 0; t < e.length; t += 1) {
839
838
  var a = e[t];
840
839
  if (a.length > 1)
@@ -843,99 +842,99 @@ q.prototype._fromData = function(e, n, r) {
843
842
  if (i === 0)
844
843
  this.penColor = d, this._reset(), this._addPoint(u);
845
844
  else if (i !== a.length - 1) {
846
- var o = this._addPoint(u), l = o.curve, v = o.widths;
847
- l && v && n(l, v, d);
845
+ var o = this._addPoint(u), l = o.curve, p = o.widths;
846
+ l && p && r(l, p, d);
848
847
  }
849
848
  }
850
849
  else {
851
850
  this._reset();
852
851
  var m = a[0];
853
- r(m);
852
+ n(m);
854
853
  }
855
854
  }
856
855
  };
857
- q.prototype._toSVG = function() {
858
- var e = this, n = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0, i = 0, c = r.width / t, u = r.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
859
- d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(n, function(g, W, $) {
856
+ z.prototype._toSVG = function() {
857
+ var e = this, r = this._data, n = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0, i = 0, c = n.width / t, u = n.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
858
+ d.setAttributeNS(null, "width", n.width), d.setAttributeNS(null, "height", n.height), this._fromData(r, function(y, W, j) {
860
859
  var k = document.createElement("path");
861
- if (!isNaN(g.control1.x) && !isNaN(g.control1.y) && !isNaN(g.control2.x) && !isNaN(g.control2.y)) {
862
- 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));
863
- k.setAttribute("d", f), k.setAttribute("stroke-width", (W.end * 2.25).toFixed(3)), k.setAttribute("stroke", $), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), d.appendChild(k);
860
+ if (!isNaN(y.control1.x) && !isNaN(y.control1.y) && !isNaN(y.control2.x) && !isNaN(y.control2.y)) {
861
+ var f = "M " + y.startPoint.x.toFixed(3) + "," + y.startPoint.y.toFixed(3) + " " + ("C " + y.control1.x.toFixed(3) + "," + y.control1.y.toFixed(3) + " ") + (y.control2.x.toFixed(3) + "," + y.control2.y.toFixed(3) + " ") + (y.endPoint.x.toFixed(3) + "," + y.endPoint.y.toFixed(3));
862
+ k.setAttribute("d", f), k.setAttribute("stroke-width", (W.end * 2.25).toFixed(3)), k.setAttribute("stroke", j), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), d.appendChild(k);
864
863
  }
865
- }, function(g) {
866
- var W = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
867
- W.setAttribute("r", $), W.setAttribute("cx", g.x), W.setAttribute("cy", g.y), W.setAttribute("fill", g.color), d.appendChild(W);
864
+ }, function(y) {
865
+ var W = document.createElement("circle"), j = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
866
+ W.setAttribute("r", j), W.setAttribute("cx", y.x), W.setAttribute("cy", y.y), W.setAttribute("fill", y.color), d.appendChild(W);
868
867
  });
869
- var o = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + i + " " + c + " " + u + '"') + (' width="' + c + '"') + (' height="' + u + '"') + ">", v = d.innerHTML;
870
- if (v === void 0) {
868
+ var o = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + i + " " + c + " " + u + '"') + (' width="' + c + '"') + (' height="' + u + '"') + ">", p = d.innerHTML;
869
+ if (p === void 0) {
871
870
  var m = document.createElement("dummy"), _ = d.childNodes;
872
871
  m.innerHTML = "";
873
872
  for (var x = 0; x < _.length; x += 1)
874
873
  m.appendChild(_[x].cloneNode(!0));
875
- v = m.innerHTML;
874
+ p = m.innerHTML;
876
875
  }
877
- var b = "</svg>", P = l + v + b;
878
- return o + btoa(P);
876
+ var b = "</svg>", S = l + p + b;
877
+ return o + btoa(S);
879
878
  };
880
- q.prototype.fromData = function(e) {
881
- var n = this;
882
- this.clear(), this._fromData(e, function(r, t) {
883
- return n._drawCurve(r, t.start, t.end);
884
- }, function(r) {
885
- return n._drawDot(r);
879
+ z.prototype.fromData = function(e) {
880
+ var r = this;
881
+ this.clear(), this._fromData(e, function(n, t) {
882
+ return r._drawCurve(n, t.start, t.end);
883
+ }, function(n) {
884
+ return r._drawDot(n);
886
885
  }), this._data = e;
887
886
  };
888
- q.prototype.toData = function() {
887
+ z.prototype.toData = function() {
889
888
  return this._data;
890
889
  };
891
- const at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
890
+ const rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
892
891
  __proto__: null,
893
- default: q
894
- }, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Be(at);
895
- var de = { exports: {} }, it = de.exports, $e;
896
- function st() {
897
- return $e || ($e = 1, (function(e, n) {
898
- (function(r, t) {
892
+ default: z
893
+ }, Symbol.toStringTag, { value: "Module" })), at = /* @__PURE__ */ Ne(rt);
894
+ var fe = { exports: {} }, ot = fe.exports, Le;
895
+ function it() {
896
+ return Le || (Le = 1, (function(e, r) {
897
+ (function(n, t) {
899
898
  e.exports = t();
900
- })(it, function() {
901
- return (function(r) {
899
+ })(ot, function() {
900
+ return (function(n) {
902
901
  function t(i) {
903
902
  if (a[i]) return a[i].exports;
904
903
  var c = a[i] = { exports: {}, id: i, loaded: !1 };
905
- return r[i].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
904
+ return n[i].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
906
905
  }
907
906
  var a = {};
908
- return t.m = r, t.c = a, t.p = "", t(0);
909
- })([function(r, t) {
907
+ return t.m = n, t.c = a, t.p = "", t(0);
908
+ })([function(n, t) {
910
909
  function a(o) {
911
- var l = o.getContext("2d"), v = o.width, m = o.height, _ = l.getImageData(0, 0, v, m).data, x = u(!0, v, m, _), b = u(!1, v, m, _), P = d(!0, v, m, _), g = d(!1, v, m, _), W = g - P + 1, $ = b - x + 1, k = l.getImageData(P, x, W, $);
912
- return o.width = W, o.height = $, l.clearRect(0, 0, W, $), l.putImageData(k, 0, 0), o;
910
+ var l = o.getContext("2d"), p = o.width, m = o.height, _ = l.getImageData(0, 0, p, m).data, x = u(!0, p, m, _), b = u(!1, p, m, _), S = d(!0, p, m, _), y = d(!1, p, m, _), W = y - S + 1, j = b - x + 1, k = l.getImageData(S, x, W, j);
911
+ return o.width = W, o.height = j, l.clearRect(0, 0, W, j), l.putImageData(k, 0, 0), o;
913
912
  }
914
- function i(o, l, v, m) {
915
- return { red: m[4 * (v * l + o)], green: m[4 * (v * l + o) + 1], blue: m[4 * (v * l + o) + 2], alpha: m[4 * (v * l + o) + 3] };
913
+ function i(o, l, p, m) {
914
+ return { red: m[4 * (p * l + o)], green: m[4 * (p * l + o) + 1], blue: m[4 * (p * l + o) + 2], alpha: m[4 * (p * l + o) + 3] };
916
915
  }
917
- function c(o, l, v, m) {
918
- return i(o, l, v, m).alpha;
916
+ function c(o, l, p, m) {
917
+ return i(o, l, p, m).alpha;
919
918
  }
920
- function u(o, l, v, m) {
921
- for (var _ = o ? 1 : -1, x = o ? 0 : v - 1, b = x; o ? b < v : b > -1; b += _) for (var P = 0; P < l; P++) if (c(P, b, l, m)) return b;
919
+ function u(o, l, p, m) {
920
+ for (var _ = o ? 1 : -1, x = o ? 0 : p - 1, b = x; o ? b < p : b > -1; b += _) for (var S = 0; S < l; S++) if (c(S, b, l, m)) return b;
922
921
  return null;
923
922
  }
924
- function d(o, l, v, m) {
925
- for (var _ = o ? 1 : -1, x = o ? 0 : l - 1, b = x; o ? b < l : b > -1; b += _) for (var P = 0; P < v; P++) if (c(b, P, l, m)) return b;
923
+ function d(o, l, p, m) {
924
+ for (var _ = o ? 1 : -1, x = o ? 0 : l - 1, b = x; o ? b < l : b > -1; b += _) for (var S = 0; S < p; S++) if (c(b, S, l, m)) return b;
926
925
  return null;
927
926
  }
928
927
  Object.defineProperty(t, "__esModule", { value: !0 }), t.default = a;
929
928
  }]);
930
929
  });
931
- })(de)), de.exports;
930
+ })(fe)), fe.exports;
932
931
  }
933
- var ut = fe.exports, Le;
934
- function ct() {
935
- return Le || (Le = 1, (function(e, n) {
936
- (function(r, t) {
937
- e.exports = t(/* @__PURE__ */ rt(), Fe, ot, st());
938
- })(ut, function(r, t, a, i) {
932
+ var st = le.exports, je;
933
+ function ut() {
934
+ return je || (je = 1, (function(e, r) {
935
+ (function(n, t) {
936
+ e.exports = t(/* @__PURE__ */ tt(), ze, at, it());
937
+ })(st, function(n, t, a, i) {
939
938
  return (function(c) {
940
939
  function u(o) {
941
940
  if (d[o]) return d[o].exports;
@@ -945,99 +944,99 @@ function ct() {
945
944
  var d = {};
946
945
  return u.m = c, u.c = d, u.p = "", u(0);
947
946
  })([function(c, u, d) {
948
- function o(O) {
949
- return O && O.__esModule ? O : { default: O };
947
+ function o(M) {
948
+ return M && M.__esModule ? M : { default: M };
950
949
  }
951
- function l(O, S) {
950
+ function l(M, P) {
952
951
  var B = {};
953
- for (var F in O) S.indexOf(F) >= 0 || Object.prototype.hasOwnProperty.call(O, F) && (B[F] = O[F]);
952
+ for (var N in M) P.indexOf(N) >= 0 || Object.prototype.hasOwnProperty.call(M, N) && (B[N] = M[N]);
954
953
  return B;
955
954
  }
956
- function v(O, S) {
957
- if (!(O instanceof S)) throw new TypeError("Cannot call a class as a function");
955
+ function p(M, P) {
956
+ if (!(M instanceof P)) throw new TypeError("Cannot call a class as a function");
958
957
  }
959
- function m(O, S) {
960
- if (!O) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
961
- return !S || typeof S != "object" && typeof S != "function" ? O : S;
958
+ function m(M, P) {
959
+ if (!M) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
960
+ return !P || typeof P != "object" && typeof P != "function" ? M : P;
962
961
  }
963
- function _(O, S) {
964
- if (typeof S != "function" && S !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof S);
965
- O.prototype = Object.create(S && S.prototype, { constructor: { value: O, enumerable: !1, writable: !0, configurable: !0 } }), S && (Object.setPrototypeOf ? Object.setPrototypeOf(O, S) : O.__proto__ = S);
962
+ function _(M, P) {
963
+ if (typeof P != "function" && P !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof P);
964
+ M.prototype = Object.create(P && P.prototype, { constructor: { value: M, enumerable: !1, writable: !0, configurable: !0 } }), P && (Object.setPrototypeOf ? Object.setPrototypeOf(M, P) : M.__proto__ = P);
966
965
  }
967
966
  Object.defineProperty(u, "__esModule", { value: !0 });
968
- var x = Object.assign || function(O) {
969
- for (var S = 1; S < arguments.length; S++) {
970
- var B = arguments[S];
971
- for (var F in B) Object.prototype.hasOwnProperty.call(B, F) && (O[F] = B[F]);
967
+ var x = Object.assign || function(M) {
968
+ for (var P = 1; P < arguments.length; P++) {
969
+ var B = arguments[P];
970
+ for (var N in B) Object.prototype.hasOwnProperty.call(B, N) && (M[N] = B[N]);
972
971
  }
973
- return O;
972
+ return M;
974
973
  }, b = /* @__PURE__ */ (function() {
975
- function O(S, B) {
976
- for (var F = 0; F < B.length; F++) {
977
- var y = B[F];
978
- y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(S, y.key, y);
974
+ function M(P, B) {
975
+ for (var N = 0; N < B.length; N++) {
976
+ var g = B[N];
977
+ g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(P, g.key, g);
979
978
  }
980
979
  }
981
- return function(S, B, F) {
982
- return B && O(S.prototype, B), F && O(S, F), S;
980
+ return function(P, B, N) {
981
+ return B && M(P.prototype, B), N && M(P, N), P;
983
982
  };
984
- })(), P = d(1), g = o(P), W = d(2), $ = o(W), k = d(3), f = o(k), X = d(4), ne = o(X), Q = (function(O) {
985
- function S() {
986
- var B, F, y, G;
987
- v(this, S);
988
- for (var U = arguments.length, Y = Array(U), J = 0; J < U; J++) Y[J] = arguments[J];
989
- return F = y = m(this, (B = S.__proto__ || Object.getPrototypeOf(S)).call.apply(B, [this].concat(Y))), y._sigPad = null, y._excludeOurProps = function() {
990
- var N = y.props, Z = (N.canvasProps, N.clearOnResize, l(N, ["canvasProps", "clearOnResize"]));
983
+ })(), S = d(1), y = o(S), W = d(2), j = o(W), k = d(3), f = o(k), X = d(4), re = o(X), Q = (function(M) {
984
+ function P() {
985
+ var B, N, g, G;
986
+ p(this, P);
987
+ for (var U = arguments.length, H = Array(U), J = 0; J < U; J++) H[J] = arguments[J];
988
+ return N = g = m(this, (B = P.__proto__ || Object.getPrototypeOf(P)).call.apply(B, [this].concat(H))), g._sigPad = null, g._excludeOurProps = function() {
989
+ var F = g.props, Z = (F.canvasProps, F.clearOnResize, l(F, ["canvasProps", "clearOnResize"]));
991
990
  return Z;
992
- }, y.getCanvas = function() {
993
- return y._canvas;
994
- }, y.getTrimmedCanvas = function() {
995
- var N = document.createElement("canvas");
996
- return N.width = y._canvas.width, N.height = y._canvas.height, N.getContext("2d").drawImage(y._canvas, 0, 0), (0, ne.default)(N);
997
- }, y.getSignaturePad = function() {
998
- return y._sigPad;
999
- }, y._checkClearOnResize = function() {
1000
- y.props.clearOnResize && y._resizeCanvas();
1001
- }, y._resizeCanvas = function() {
1002
- var N = y.props.canvasProps || {}, Z = N.width, s = N.height;
991
+ }, g.getCanvas = function() {
992
+ return g._canvas;
993
+ }, g.getTrimmedCanvas = function() {
994
+ var F = document.createElement("canvas");
995
+ return F.width = g._canvas.width, F.height = g._canvas.height, F.getContext("2d").drawImage(g._canvas, 0, 0), (0, re.default)(F);
996
+ }, g.getSignaturePad = function() {
997
+ return g._sigPad;
998
+ }, g._checkClearOnResize = function() {
999
+ g.props.clearOnResize && g._resizeCanvas();
1000
+ }, g._resizeCanvas = function() {
1001
+ var F = g.props.canvasProps || {}, Z = F.width, s = F.height;
1003
1002
  if (!Z || !s) {
1004
- var h = y._canvas, w = Math.max(window.devicePixelRatio || 1, 1);
1005
- Z || (h.width = h.offsetWidth * w), s || (h.height = h.offsetHeight * w), h.getContext("2d").scale(w, w), y.clear();
1003
+ var h = g._canvas, w = Math.max(window.devicePixelRatio || 1, 1);
1004
+ Z || (h.width = h.offsetWidth * w), s || (h.height = h.offsetHeight * w), h.getContext("2d").scale(w, w), g.clear();
1006
1005
  }
1007
- }, y.on = function() {
1008
- return window.addEventListener("resize", y._checkClearOnResize), y._sigPad.on();
1009
- }, y.off = function() {
1010
- return window.removeEventListener("resize", y._checkClearOnResize), y._sigPad.off();
1011
- }, y.clear = function() {
1012
- return y._sigPad.clear();
1013
- }, y.isEmpty = function() {
1014
- return y._sigPad.isEmpty();
1015
- }, y.fromDataURL = function(N, Z) {
1016
- return y._sigPad.fromDataURL(N, Z);
1017
- }, y.toDataURL = function(N, Z) {
1018
- return y._sigPad.toDataURL(N, Z);
1019
- }, y.fromData = function(N) {
1020
- return y._sigPad.fromData(N);
1021
- }, y.toData = function() {
1022
- return y._sigPad.toData();
1023
- }, G = F, m(y, G);
1006
+ }, g.on = function() {
1007
+ return window.addEventListener("resize", g._checkClearOnResize), g._sigPad.on();
1008
+ }, g.off = function() {
1009
+ return window.removeEventListener("resize", g._checkClearOnResize), g._sigPad.off();
1010
+ }, g.clear = function() {
1011
+ return g._sigPad.clear();
1012
+ }, g.isEmpty = function() {
1013
+ return g._sigPad.isEmpty();
1014
+ }, g.fromDataURL = function(F, Z) {
1015
+ return g._sigPad.fromDataURL(F, Z);
1016
+ }, g.toDataURL = function(F, Z) {
1017
+ return g._sigPad.toDataURL(F, Z);
1018
+ }, g.fromData = function(F) {
1019
+ return g._sigPad.fromData(F);
1020
+ }, g.toData = function() {
1021
+ return g._sigPad.toData();
1022
+ }, G = N, m(g, G);
1024
1023
  }
1025
- return _(S, O), b(S, [{ key: "componentDidMount", value: function() {
1024
+ return _(P, M), b(P, [{ key: "componentDidMount", value: function() {
1026
1025
  this._sigPad = new f.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
1027
1026
  } }, { key: "componentWillUnmount", value: function() {
1028
1027
  this.off();
1029
1028
  } }, { key: "componentDidUpdate", value: function() {
1030
1029
  Object.assign(this._sigPad, this._excludeOurProps());
1031
1030
  } }, { key: "render", value: function() {
1032
- var B = this, F = this.props.canvasProps;
1033
- return $.default.createElement("canvas", x({ ref: function(y) {
1034
- B._canvas = y;
1035
- } }, F));
1036
- } }]), S;
1031
+ var B = this, N = this.props.canvasProps;
1032
+ return j.default.createElement("canvas", x({ ref: function(g) {
1033
+ B._canvas = g;
1034
+ } }, N));
1035
+ } }]), P;
1037
1036
  })(W.Component);
1038
- Q.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 }, Q.defaultProps = { clearOnResize: !0 }, u.default = Q;
1037
+ Q.propTypes = { velocityFilterWeight: y.default.number, minWidth: y.default.number, maxWidth: y.default.number, minDistance: y.default.number, dotSize: y.default.oneOfType([y.default.number, y.default.func]), penColor: y.default.string, throttle: y.default.number, onEnd: y.default.func, onBegin: y.default.func, canvasProps: y.default.object, clearOnResize: y.default.bool }, Q.defaultProps = { clearOnResize: !0 }, u.default = Q;
1039
1038
  }, function(c, u) {
1040
- c.exports = r;
1039
+ c.exports = n;
1041
1040
  }, function(c, u) {
1042
1041
  c.exports = t;
1043
1042
  }, function(c, u) {
@@ -1046,144 +1045,151 @@ function ct() {
1046
1045
  c.exports = i;
1047
1046
  }]);
1048
1047
  });
1049
- })(fe)), fe.exports;
1048
+ })(le)), le.exports;
1050
1049
  }
1051
- var lt = ct();
1052
- const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMain_4mfzi_5", pt = "_SignatureMainAuto_4mfzi_15", vt = "_SignatureMainManual_4mfzi_19", yt = "_SignatureHeader_4mfzi_26", mt = "_SignatureHeaderReset_4mfzi_34", gt = "_SignatureManualPanel_4mfzi_41", _t = "_SignatureManualPanelPlaceholder_4mfzi_48", bt = "_SignatureManualPanelButton_4mfzi_52", xt = "_SignatureAutoPanelImage_4mfzi_67", Pt = "_SignatureAutoPanelLoader_4mfzi_72", St = "_SignatureAutoPanelNoteIcon_4mfzi_79", wt = "_SignatureAutoPanelButton_4mfzi_83", V = {
1053
- Signature: dt,
1054
- SignatureMain: ht,
1055
- SignatureMainAuto: pt,
1050
+ var ct = ut();
1051
+ const lt = /* @__PURE__ */ Be(ct), ft = "_Signature_qgimg_1", dt = "_SignatureMain_qgimg_5", ht = "_SignatureMainAuto_qgimg_15", vt = "_SignatureMainManual_qgimg_19", pt = "_Buttons_qgimg_24", gt = "_Header_qgimg_34", mt = "_HeaderManualDraw_qgimg_43", yt = "_HeaderNotManualDraw_qgimg_47", _t = "_Content_qgimg_51", bt = "_AutoContent_qgimg_57", xt = "_SignatureHeaderReset_qgimg_64", St = "_SignatureManualPanel_qgimg_71", Pt = "_SignatureManualPanelPlaceholder_qgimg_78", wt = "_SignatureManualPanelButton_qgimg_82", Et = "_SignatureAutoPanelImage_qgimg_97", Tt = "_SignatureAutoPanelLoader_qgimg_103", Ct = "_SignatureAutoPanelNoteIcon_qgimg_110", Rt = "_SignatureAutoPanelButton_qgimg_114", Mt = "_SignatureAutoLabel_qgimg_118", Ot = "_SignatureErrorLoading_qgimg_127", Y = {
1052
+ Signature: ft,
1053
+ SignatureMain: dt,
1054
+ SignatureMainAuto: ht,
1056
1055
  SignatureMainManual: vt,
1057
- SignatureHeader: yt,
1058
- SignatureHeaderReset: mt,
1059
- SignatureManualPanel: gt,
1060
- SignatureManualPanelPlaceholder: _t,
1061
- SignatureManualPanelButton: bt,
1062
- SignatureAutoPanelImage: xt,
1063
- SignatureAutoPanelLoader: Pt,
1064
- SignatureAutoPanelNoteIcon: St,
1065
- SignatureAutoPanelButton: wt
1066
- }, Lt = (e) => {
1067
- const { auto: n, manual: r, getSignature: t, onChangeManual: a, onChangeAuto: i, className: c = "" } = e, u = Se(null), d = Se(!1), [o, l] = se(null), [v, m] = se(r ? "manual" : "auto"), [_, x] = se(""), [b, P] = se(!1), { width: g = 0, height: W = 0 } = Ue({ ref: u, box: "border-box" }), $ = v === "auto" ? n ? "auto-generated" : "auto-loading" : _ ? "manual-drawn" : r ? "manual-stored" : "manual-blank", k = n !== "" || b, f = r || _, X = re(
1056
+ Buttons: pt,
1057
+ Header: gt,
1058
+ HeaderManualDraw: mt,
1059
+ HeaderNotManualDraw: yt,
1060
+ Content: _t,
1061
+ AutoContent: bt,
1062
+ SignatureHeaderReset: xt,
1063
+ SignatureManualPanel: St,
1064
+ SignatureManualPanelPlaceholder: Pt,
1065
+ SignatureManualPanelButton: wt,
1066
+ SignatureAutoPanelImage: Et,
1067
+ SignatureAutoPanelLoader: Tt,
1068
+ SignatureAutoPanelNoteIcon: Ct,
1069
+ SignatureAutoPanelButton: Rt,
1070
+ SignatureAutoLabel: Mt,
1071
+ SignatureErrorLoading: Ot
1072
+ }, Ft = (e) => {
1073
+ const { auto: r, manual: n, getSignature: t, onChangeManual: a, onChangeAuto: i, className: c = "" } = e, u = Pe(null), d = Pe(!1), [o, l] = ie(null), [p, m] = ie(n ? "manual" : "auto"), [_, x] = ie(""), [b, S] = ie(!1), { width: y = 0, height: W = 0 } = Fe({ ref: u, box: "border-box" }), j = p === "auto" ? r ? "auto-generated" : "auto-loading" : _ ? "manual-drawn" : n ? "manual-stored" : "manual-blank", k = r !== "" || b, f = n || _, X = ne(
1068
1074
  (U) => {
1069
- !o || !g || !W || !U || o.fromDataURL(U, {
1070
- width: +g.toFixed(),
1075
+ !o || !y || !W || !U || o.fromDataURL(U, {
1076
+ width: +y.toFixed(),
1071
1077
  height: +W.toFixed()
1072
1078
  });
1073
1079
  },
1074
- [o, g, W]
1075
- ), ne = re(() => {
1080
+ [o, y, W]
1081
+ ), re = ne(() => {
1076
1082
  if (!o) return;
1077
1083
  const U = o.getCanvas().toDataURL("image/png");
1078
1084
  x(U), a(U);
1079
- }, [o, a]), Q = re(() => {
1085
+ }, [o, a]), Q = ne(() => {
1080
1086
  o && (o.clear(), x(""), a(""));
1081
- }, [o, a]), O = re(() => {
1087
+ }, [o, a]), M = ne(() => {
1082
1088
  m("auto"), x("");
1083
- }, []), S = re(() => {
1089
+ }, []), P = ne(() => {
1084
1090
  m("manual");
1085
- }, []), B = re(() => {
1091
+ }, []), B = ne(() => {
1086
1092
  m("manual"), x(""), a("");
1087
- }, [a]), F = re(() => {
1093
+ }, [a]), N = ne(() => {
1088
1094
  _ && x("");
1089
- }, [_]), y = (U) => U.includes($);
1095
+ }, [_]), g = (U) => U.includes(j);
1090
1096
  we(() => {
1091
- v === "manual" && _ && g && W && X(_);
1092
- }, [v, _, g, W, X]), we(() => {
1093
- if (n) {
1097
+ p === "manual" && _ && y && W && X(_);
1098
+ }, [p, _, y, W, X]), we(() => {
1099
+ if (r) {
1094
1100
  d.current = !1;
1095
1101
  return;
1096
1102
  }
1097
1103
  d.current || (d.current = !0, t().then((U) => {
1098
- const Y = `data:image/png;base64,${U.signature}`;
1099
- P(!1), i(Y);
1104
+ const H = `data:image/png;base64,${U.signature}`;
1105
+ S(!1), i(H);
1100
1106
  }).catch(() => {
1101
- P(!0);
1107
+ S(!0);
1102
1108
  }));
1103
- }, [n, t, i]);
1104
- const G = re(() => {
1105
- P(!1), d.current = !0, t().then((U) => {
1106
- const Y = `data:image/png;base64,${U.signature}`;
1107
- P(!1), i(Y);
1109
+ }, [r, t, i]);
1110
+ const G = ne(() => {
1111
+ S(!1), d.current = !0, t().then((U) => {
1112
+ const H = `data:image/png;base64,${U.signature}`;
1113
+ S(!1), i(H);
1108
1114
  }).catch(() => {
1109
- P(!0);
1115
+ S(!0);
1110
1116
  });
1111
1117
  }, [t, i]);
1112
- return /* @__PURE__ */ ee("div", { className: Ee(V.Signature, c), children: [
1118
+ return /* @__PURE__ */ ee("div", { className: de(Y.Signature, c), children: [
1113
1119
  /* @__PURE__ */ ee(
1114
1120
  "div",
1115
1121
  {
1116
- className: Ee(
1117
- V.SignatureMain,
1118
- y(["auto-generated", "auto-loading"]) ? V.SignatureMainAuto : V.SignatureMainManual
1122
+ className: de(
1123
+ Y.SignatureMain,
1124
+ g(["auto-generated", "auto-loading"]) ? Y.SignatureMainAuto : Y.SignatureMainManual
1119
1125
  ),
1120
1126
  ref: u,
1121
1127
  children: [
1122
- /* @__PURE__ */ ee(oe, { direction: "row", justify: y(["manual-drawn"]) ? "end" : "center", className: V.SignatureHeader, children: [
1128
+ /* @__PURE__ */ ee("div", { className: de(Y.Header, g(["manual-drawn"]) ? Y.HeaderManualDraw : Y.HeaderNotManualDraw), children: [
1123
1129
  /* @__PURE__ */ ee(he, { tag: "h6", weight: "medium", align: "center", children: [
1124
- /* @__PURE__ */ j(te, { name: "generated-signature", condition: y(["auto-generated", "auto-loading"]), children: "Wir haben eine digitale Signature Sie generiert." }),
1125
- /* @__PURE__ */ j(te, { name: "create-signature", condition: y(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
1130
+ /* @__PURE__ */ I(te, { name: "generated-signature", condition: g(["auto-generated", "auto-loading"]), children: "Wir haben eine digitale Signature Sie generiert." }),
1131
+ /* @__PURE__ */ I(te, { name: "create-signature", condition: g(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
1126
1132
  ] }),
1127
- /* @__PURE__ */ j(Xe, { name: "reset", direction: "rtl", condition: y(["manual-drawn"]), children: /* @__PURE__ */ j("div", { className: V.SignatureHeaderReset, children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ j(Ye, {}), onClick: Q, children: "Neu starten" }) }) })
1133
+ /* @__PURE__ */ I(Ve, { name: "reset", direction: "rtl", condition: g(["manual-drawn"]), children: /* @__PURE__ */ I("div", { className: Y.SignatureHeaderReset, children: /* @__PURE__ */ I(se, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ I(Ue, {}), onClick: Q, children: "Neu starten" }) }) })
1128
1134
  ] }),
1129
- /* @__PURE__ */ j(oe, { direction: "row", align: "end", justify: "center", children: y(["auto-generated", "auto-loading"]) ? /* @__PURE__ */ ee(oe, { direction: "column", align: "center", justify: "start", children: [
1130
- /* @__PURE__ */ j(te, { name: "signature", condition: n !== "", children: /* @__PURE__ */ j("img", { className: V.SignatureAutoPanelImage, src: n, alt: "signature" }) }),
1131
- /* @__PURE__ */ j(te, { name: "signature", condition: n === "" && !b, children: /* @__PURE__ */ j("div", { className: V.SignatureAutoPanelLoader, style: { height: 142 }, children: /* @__PURE__ */ j(Je, { size: "sm", color: "accent-primary" }) }) }),
1132
- /* @__PURE__ */ j(te, { name: "auto-failed", condition: n === "" && b, children: /* @__PURE__ */ ee(oe, { direction: "column", align: "center", justify: "center", style: { height: 78 }, gap: "xs", children: [
1133
- /* @__PURE__ */ j(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Automatische Signatur konnte nicht geladen werden." }),
1134
- /* @__PURE__ */ j(
1135
- ue,
1135
+ /* @__PURE__ */ I("div", { className: Y.Content, children: g(["auto-generated", "auto-loading"]) ? /* @__PURE__ */ ee("div", { className: Y.AutoContent, children: [
1136
+ /* @__PURE__ */ I(te, { name: "signature", condition: r !== "", children: /* @__PURE__ */ I("img", { className: Y.SignatureAutoPanelImage, src: r, alt: "signature" }) }),
1137
+ /* @__PURE__ */ I(te, { name: "signature", condition: r === "" && !b, children: /* @__PURE__ */ I("div", { className: Y.SignatureAutoPanelLoader, style: { height: 142 }, children: /* @__PURE__ */ I(Xe, { size: "sm", color: "accent-primary" }) }) }),
1138
+ /* @__PURE__ */ I(te, { name: "auto-failed", condition: r === "" && b, children: /* @__PURE__ */ ee("div", { className: Y.SignatureErrorLoading, children: [
1139
+ /* @__PURE__ */ I(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Automatische Signatur konnte nicht geladen werden." }),
1140
+ /* @__PURE__ */ I(
1141
+ se,
1136
1142
  {
1137
1143
  blurAfterClick: !0,
1138
1144
  underlined: !0,
1139
1145
  size: "sm",
1140
1146
  iconPosition: "right",
1141
- icon: /* @__PURE__ */ j(He, {}),
1147
+ icon: /* @__PURE__ */ I(Ye, {}),
1142
1148
  onClick: G,
1143
1149
  children: "Erneut versuchen"
1144
1150
  }
1145
1151
  )
1146
1152
  ] }) }),
1147
- /* @__PURE__ */ j(te, { name: "auto-note", condition: n !== "", children: /* @__PURE__ */ ee(oe, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
1148
- /* @__PURE__ */ j(Ve, { size: 24, className: V.SignatureAutoPanelNoteIcon }),
1149
- /* @__PURE__ */ j(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Diese Unterschrift ist ausreichend" })
1153
+ /* @__PURE__ */ I(te, { name: "auto-note", condition: r !== "", children: /* @__PURE__ */ ee("div", { className: Y.SignatureAutoLabel, children: [
1154
+ /* @__PURE__ */ I(He, { size: 24, className: Y.SignatureAutoPanelNoteIcon }),
1155
+ /* @__PURE__ */ I(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Diese Unterschrift ist ausreichend" })
1150
1156
  ] }) }),
1151
- /* @__PURE__ */ j(te, { name: "manual-switch", condition: k, children: /* @__PURE__ */ j("div", { className: V.SignatureAutoPanelButton, children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, onClick: S, children: "per Hand/Maus unterschreiben" }) }) })
1152
- ] }) : /* @__PURE__ */ ee("div", { className: V.SignatureManualPanel, children: [
1153
- /* @__PURE__ */ j("div", { className: V.SignatureManualPanelPlaceholder }),
1154
- y(["manual-stored"]) ? /* @__PURE__ */ j("img", { width: g, height: W, alt: "signature", src: f }) : /* @__PURE__ */ j(
1155
- ft,
1157
+ /* @__PURE__ */ I(te, { name: "manual-switch", condition: k, children: /* @__PURE__ */ I("div", { className: Y.SignatureAutoPanelButton, children: /* @__PURE__ */ I(se, { blurAfterClick: !0, underlined: !0, onClick: P, children: "per Hand/Maus unterschreiben" }) }) })
1158
+ ] }) : /* @__PURE__ */ ee("div", { className: Y.SignatureManualPanel, children: [
1159
+ /* @__PURE__ */ I("div", { className: Y.SignatureManualPanelPlaceholder }),
1160
+ g(["manual-stored"]) ? /* @__PURE__ */ I("img", { width: y, height: W, alt: "signature", src: f }) : /* @__PURE__ */ I(
1161
+ lt,
1156
1162
  {
1157
1163
  penColor: "#262626",
1158
1164
  dotSize: 2,
1159
1165
  minWidth: 0.25,
1160
1166
  maxWidth: 2.75,
1161
1167
  throttle: 12,
1162
- canvasProps: { width: +(g || 0).toFixed(), height: +(W || 0).toFixed() },
1168
+ canvasProps: { width: +(y || 0).toFixed(), height: +(W || 0).toFixed() },
1163
1169
  ref: (U) => l(U),
1164
1170
  clearOnResize: !0,
1165
- onEnd: ne
1171
+ onEnd: re
1166
1172
  }
1167
1173
  ),
1168
- /* @__PURE__ */ j(
1174
+ /* @__PURE__ */ I(
1169
1175
  te,
1170
1176
  {
1171
1177
  name: "to-generated",
1172
- condition: y(["manual-stored"]),
1173
- className: V.SignatureManualPanelButton,
1174
- children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, onClick: B, children: "Zurücksetzen" })
1178
+ condition: g(["manual-stored"]),
1179
+ className: Y.SignatureManualPanelButton,
1180
+ children: /* @__PURE__ */ I(se, { blurAfterClick: !0, underlined: !0, onClick: B, children: "Zurücksetzen" })
1175
1181
  }
1176
1182
  )
1177
1183
  ] }) })
1178
1184
  ]
1179
1185
  }
1180
1186
  ),
1181
- /* @__PURE__ */ j(te, { name: "footer", condition: y(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee(oe, { direction: "row", grow: "equal", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
1182
- /* @__PURE__ */ j(Te, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: O, children: "Abbrechen" }),
1183
- /* @__PURE__ */ j(Te, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !_, onClick: F, children: "Speichern" })
1187
+ /* @__PURE__ */ I(te, { name: "footer", condition: g(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee("div", { className: Y.Buttons, children: [
1188
+ /* @__PURE__ */ I(Ee, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: M, children: "Abbrechen" }),
1189
+ /* @__PURE__ */ I(Ee, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !_, onClick: N, children: "Speichern" })
1184
1190
  ] }) })
1185
1191
  ] });
1186
1192
  };
1187
1193
  export {
1188
- Lt as Signature
1194
+ Ft as Signature
1189
1195
  };