@arkyn/components 1.3.8 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -19,16 +19,16 @@ function In() {
19
19
  if (Vt)
20
20
  return dt;
21
21
  Vt = 1;
22
- var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function h(u, p, o) {
24
- var y, T = {}, k = null, b = null;
25
- o !== void 0 && (k = "" + o), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (b = p.ref);
22
+ var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function h(c, p, o) {
24
+ var y, _ = {}, N = null, b = null;
25
+ o !== void 0 && (N = "" + o), p.key !== void 0 && (N = "" + p.key), p.ref !== void 0 && (b = p.ref);
26
26
  for (y in p)
27
- s.call(p, y) && !c.hasOwnProperty(y) && (T[y] = p[y]);
28
- if (u && u.defaultProps)
29
- for (y in p = u.defaultProps, p)
30
- T[y] === void 0 && (T[y] = p[y]);
31
- return { $$typeof: t, type: u, key: k, ref: b, props: T, _owner: l.current };
27
+ s.call(p, y) && !u.hasOwnProperty(y) && (_[y] = p[y]);
28
+ if (c && c.defaultProps)
29
+ for (y in p = c.defaultProps, p)
30
+ _[y] === void 0 && (_[y] = p[y]);
31
+ return { $$typeof: t, type: c, key: N, ref: b, props: _, _owner: l.current };
32
32
  }
33
33
  return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
34
34
  }
@@ -45,54 +45,54 @@ var ft = {};
45
45
  var Gt;
46
46
  function An() {
47
47
  return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), O = Symbol.iterator, P = "@@iterator";
49
- function W(r) {
48
+ var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
49
+ function U(r) {
50
50
  if (r === null || typeof r != "object")
51
51
  return null;
52
- var d = O && r[O] || r[P];
52
+ var d = P && r[P] || r[A];
53
53
  return typeof d == "function" ? d : null;
54
54
  }
55
- var _ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function w(r) {
55
+ var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function E(r) {
57
57
  {
58
- for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), S = 1; S < d; S++)
59
- g[S - 1] = arguments[S];
60
- C("error", r, g);
58
+ for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), T = 1; T < d; T++)
59
+ g[T - 1] = arguments[T];
60
+ L("error", r, g);
61
61
  }
62
62
  }
63
- function C(r, d, g) {
63
+ function L(r, d, g) {
64
64
  {
65
- var S = _.ReactDebugCurrentFrame, Y = S.getStackAddendum();
66
- Y !== "" && (d += "%s", g = g.concat([Y]));
65
+ var T = w.ReactDebugCurrentFrame, H = T.getStackAddendum();
66
+ H !== "" && (d += "%s", g = g.concat([H]));
67
67
  var e = g.map(function(f) {
68
68
  return String(f);
69
69
  });
70
70
  e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
71
71
  }
72
72
  }
73
- var H = !1, z = !1, q = !1, K = !1, J = !1, te;
74
- te = Symbol.for("react.module.reference");
75
- function V(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || J || r === l || r === o || r === y || K || r === b || H || z || q || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof === T || r.$$typeof === h || r.$$typeof === u || r.$$typeof === p || // This needs to include all possible module reference object
73
+ var W = !1, M = !1, X = !1, ee = !1, V = !1, re;
74
+ re = Symbol.for("react.module.reference");
75
+ function Y(r) {
76
+ return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || V || r === l || r === o || r === y || ee || r === b || W || M || X || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
- r.$$typeof === te || r.getModuleId !== void 0));
80
+ r.$$typeof === re || r.getModuleId !== void 0));
81
81
  }
82
- function F(r, d, g) {
83
- var S = r.displayName;
84
- if (S)
85
- return S;
86
- var Y = d.displayName || d.name || "";
87
- return Y !== "" ? g + "(" + Y + ")" : g;
82
+ function z(r, d, g) {
83
+ var T = r.displayName;
84
+ if (T)
85
+ return T;
86
+ var H = d.displayName || d.name || "";
87
+ return H !== "" ? g + "(" + H + ")" : g;
88
88
  }
89
- function ne(r) {
89
+ function ae(r) {
90
90
  return r.displayName || "Context";
91
91
  }
92
- function N(r) {
92
+ function k(r) {
93
93
  if (r == null)
94
94
  return null;
95
- if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
95
+ if (typeof r.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
96
96
  return r.displayName || r.name || null;
97
97
  if (typeof r == "string")
98
98
  return r;
@@ -101,7 +101,7 @@ function An() {
101
101
  return "Fragment";
102
102
  case a:
103
103
  return "Portal";
104
- case c:
104
+ case u:
105
105
  return "Profiler";
106
106
  case l:
107
107
  return "StrictMode";
@@ -112,21 +112,21 @@ function An() {
112
112
  }
113
113
  if (typeof r == "object")
114
114
  switch (r.$$typeof) {
115
- case u:
115
+ case c:
116
116
  var d = r;
117
- return ne(d) + ".Consumer";
117
+ return ae(d) + ".Consumer";
118
118
  case h:
119
119
  var g = r;
120
- return ne(g._context) + ".Provider";
120
+ return ae(g._context) + ".Provider";
121
121
  case p:
122
- return F(r, r.render, "ForwardRef");
123
- case T:
124
- var S = r.displayName || null;
125
- return S !== null ? S : N(r.type) || "Memo";
126
- case k: {
127
- var Y = r, e = Y._payload, f = Y._init;
122
+ return z(r, r.render, "ForwardRef");
123
+ case _:
124
+ var T = r.displayName || null;
125
+ return T !== null ? T : k(r.type) || "Memo";
126
+ case N: {
127
+ var H = r, e = H._payload, f = H._init;
128
128
  try {
129
- return N(f(e));
129
+ return k(f(e));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -134,18 +134,18 @@ function An() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var R = Object.assign, B = 0, Z, se, ee, ie, G, D, x;
138
- function U() {
137
+ var R = Object.assign, $ = 0, J, ie, Z, le, G, F, x;
138
+ function O() {
139
139
  }
140
- U.__reactDisabledLog = !0;
141
- function I() {
140
+ O.__reactDisabledLog = !0;
141
+ function j() {
142
142
  {
143
- if (B === 0) {
144
- Z = console.log, se = console.info, ee = console.warn, ie = console.error, G = console.group, D = console.groupCollapsed, x = console.groupEnd;
143
+ if ($ === 0) {
144
+ J = console.log, ie = console.info, Z = console.warn, le = console.error, G = console.group, F = console.groupCollapsed, x = console.groupEnd;
145
145
  var r = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: U,
148
+ value: O,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -158,12 +158,12 @@ function An() {
158
158
  groupEnd: r
159
159
  });
160
160
  }
161
- B++;
161
+ $++;
162
162
  }
163
163
  }
164
- function ue() {
164
+ function te() {
165
165
  {
166
- if (B--, B === 0) {
166
+ if ($--, $ === 0) {
167
167
  var r = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
@@ -171,43 +171,43 @@ function An() {
171
171
  };
172
172
  Object.defineProperties(console, {
173
173
  log: R({}, r, {
174
- value: Z
174
+ value: J
175
175
  }),
176
176
  info: R({}, r, {
177
- value: se
177
+ value: ie
178
178
  }),
179
179
  warn: R({}, r, {
180
- value: ee
180
+ value: Z
181
181
  }),
182
182
  error: R({}, r, {
183
- value: ie
183
+ value: le
184
184
  }),
185
185
  group: R({}, r, {
186
186
  value: G
187
187
  }),
188
188
  groupCollapsed: R({}, r, {
189
- value: D
189
+ value: F
190
190
  }),
191
191
  groupEnd: R({}, r, {
192
192
  value: x
193
193
  })
194
194
  });
195
195
  }
196
- B < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ $ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var M = _.ReactCurrentDispatcher, pe;
200
- function ve(r, d, g) {
199
+ var K = w.ReactCurrentDispatcher, ue;
200
+ function de(r, d, g) {
201
201
  {
202
- if (pe === void 0)
202
+ if (ue === void 0)
203
203
  try {
204
204
  throw Error();
205
- } catch (Y) {
206
- var S = Y.stack.trim().match(/\n( *(at )?)/);
207
- pe = S && S[1] || "";
205
+ } catch (H) {
206
+ var T = H.stack.trim().match(/\n( *(at )?)/);
207
+ ue = T && T[1] || "";
208
208
  }
209
209
  return `
210
- ` + pe + r;
210
+ ` + ue + r;
211
211
  }
212
212
  }
213
213
  var Ie = !1, we;
@@ -215,7 +215,7 @@ function An() {
215
215
  var Ae = typeof WeakMap == "function" ? WeakMap : Map;
216
216
  we = new Ae();
217
217
  }
218
- function fe(r, d) {
218
+ function pe(r, d) {
219
219
  if (!r || Ie)
220
220
  return "";
221
221
  {
@@ -223,12 +223,12 @@ function An() {
223
223
  if (g !== void 0)
224
224
  return g;
225
225
  }
226
- var S;
226
+ var T;
227
227
  Ie = !0;
228
- var Y = Error.prepareStackTrace;
228
+ var H = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var e;
231
- e = M.current, M.current = null, I();
231
+ e = K.current, K.current = null, j();
232
232
  try {
233
233
  if (d) {
234
234
  var f = function() {
@@ -241,111 +241,111 @@ function An() {
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
243
  Reflect.construct(f, []);
244
- } catch (X) {
245
- S = X;
244
+ } catch (q) {
245
+ T = q;
246
246
  }
247
247
  Reflect.construct(r, [], f);
248
248
  } else {
249
249
  try {
250
250
  f.call();
251
- } catch (X) {
252
- S = X;
251
+ } catch (q) {
252
+ T = q;
253
253
  }
254
254
  r.call(f.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (X) {
260
- S = X;
259
+ } catch (q) {
260
+ T = q;
261
261
  }
262
262
  r();
263
263
  }
264
- } catch (X) {
265
- if (X && S && typeof X.stack == "string") {
266
- for (var i = X.stack.split(`
267
- `), A = S.stack.split(`
268
- `), j = i.length - 1, L = A.length - 1; j >= 1 && L >= 0 && i[j] !== A[L]; )
269
- L--;
270
- for (; j >= 1 && L >= 0; j--, L--)
271
- if (i[j] !== A[L]) {
272
- if (j !== 1 || L !== 1)
264
+ } catch (q) {
265
+ if (q && T && typeof q.stack == "string") {
266
+ for (var i = q.stack.split(`
267
+ `), C = T.stack.split(`
268
+ `), D = i.length - 1, I = C.length - 1; D >= 1 && I >= 0 && i[D] !== C[I]; )
269
+ I--;
270
+ for (; D >= 1 && I >= 0; D--, I--)
271
+ if (i[D] !== C[I]) {
272
+ if (D !== 1 || I !== 1)
273
273
  do
274
- if (j--, L--, L < 0 || i[j] !== A[L]) {
275
- var le = `
276
- ` + i[j].replace(" at new ", " at ");
277
- return r.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, le), le;
274
+ if (D--, I--, I < 0 || i[D] !== C[I]) {
275
+ var ce = `
276
+ ` + i[D].replace(" at new ", " at ");
277
+ return r.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ce), ce;
278
278
  }
279
- while (j >= 1 && L >= 0);
279
+ while (D >= 1 && I >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Ie = !1, M.current = e, ue(), Error.prepareStackTrace = Y;
284
+ Ie = !1, K.current = e, te(), Error.prepareStackTrace = H;
285
285
  }
286
- var ge = r ? r.displayName || r.name : "", de = ge ? ve(ge) : "";
287
- return typeof r == "function" && we.set(r, de), de;
286
+ var ve = r ? r.displayName || r.name : "", me = ve ? de(ve) : "";
287
+ return typeof r == "function" && we.set(r, me), me;
288
288
  }
289
289
  function Xe(r, d, g) {
290
- return fe(r, !1);
290
+ return pe(r, !1);
291
291
  }
292
292
  function qe(r) {
293
293
  var d = r.prototype;
294
294
  return !!(d && d.isReactComponent);
295
295
  }
296
- function ae(r, d, g) {
296
+ function oe(r, d, g) {
297
297
  if (r == null)
298
298
  return "";
299
299
  if (typeof r == "function")
300
- return fe(r, qe(r));
300
+ return pe(r, qe(r));
301
301
  if (typeof r == "string")
302
- return ve(r);
302
+ return de(r);
303
303
  switch (r) {
304
304
  case o:
305
- return ve("Suspense");
305
+ return de("Suspense");
306
306
  case y:
307
- return ve("SuspenseList");
307
+ return de("SuspenseList");
308
308
  }
309
309
  if (typeof r == "object")
310
310
  switch (r.$$typeof) {
311
311
  case p:
312
312
  return Xe(r.render);
313
- case T:
314
- return ae(r.type, d, g);
315
- case k: {
316
- var S = r, Y = S._payload, e = S._init;
313
+ case _:
314
+ return oe(r.type, d, g);
315
+ case N: {
316
+ var T = r, H = T._payload, e = T._init;
317
317
  try {
318
- return ae(e(Y), d, g);
318
+ return oe(e(H), d, g);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var me = Object.prototype.hasOwnProperty, $e = {}, Je = _.ReactDebugCurrentFrame;
325
+ var he = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
326
326
  function Ne(r) {
327
327
  if (r) {
328
- var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
328
+ var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
329
329
  Je.setExtraStackFrame(g);
330
330
  } else
331
331
  Je.setExtraStackFrame(null);
332
332
  }
333
- function ot(r, d, g, S, Y) {
333
+ function ot(r, d, g, T, H) {
334
334
  {
335
- var e = Function.call.bind(me);
335
+ var e = Function.call.bind(he);
336
336
  for (var f in r)
337
337
  if (e(r, f)) {
338
338
  var i = void 0;
339
339
  try {
340
340
  if (typeof r[f] != "function") {
341
- var A = Error((S || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
- throw A.name = "Invariant Violation", A;
341
+ var C = Error((T || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw C.name = "Invariant Violation", C;
343
343
  }
344
- i = r[f](d, f, S, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (j) {
346
- i = j;
344
+ i = r[f](d, f, T, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ } catch (D) {
346
+ i = D;
347
347
  }
348
- i && !(i instanceof Error) && (Ne(Y), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(Y), w("Failed %s type: %s", g, i.message), Ne(null));
348
+ i && !(i instanceof Error) && (Ne(H), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(H), E("Failed %s type: %s", g, i.message), Ne(null));
349
349
  }
350
350
  }
351
351
  }
@@ -371,17 +371,17 @@ function An() {
371
371
  }
372
372
  function Ue(r) {
373
373
  if (Le(r))
374
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
374
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
375
375
  }
376
- var Me = _.ReactCurrentOwner, We = {
376
+ var Me = w.ReactCurrentOwner, We = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
380
380
  __source: !0
381
381
  }, He, Fe, Ce;
382
382
  Ce = {};
383
- function ce(r) {
384
- if (me.call(r, "ref")) {
383
+ function fe(r) {
384
+ if (he.call(r, "ref")) {
385
385
  var d = Object.getOwnPropertyDescriptor(r, "ref").get;
386
386
  if (d && d.isReactWarning)
387
387
  return !1;
@@ -389,7 +389,7 @@ function An() {
389
389
  return r.ref !== void 0;
390
390
  }
391
391
  function ze(r) {
392
- if (me.call(r, "key")) {
392
+ if (he.call(r, "key")) {
393
393
  var d = Object.getOwnPropertyDescriptor(r, "key").get;
394
394
  if (d && d.isReactWarning)
395
395
  return !1;
@@ -398,14 +398,14 @@ function An() {
398
398
  }
399
399
  function Ye(r, d) {
400
400
  if (typeof r.ref == "string" && Me.current && d && Me.current.stateNode !== d) {
401
- var g = N(Me.current.type);
402
- Ce[g] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(Me.current.type), r.ref), Ce[g] = !0);
401
+ var g = k(Me.current.type);
402
+ Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(Me.current.type), r.ref), Ce[g] = !0);
403
403
  }
404
404
  }
405
- function E(r, d) {
405
+ function S(r, d) {
406
406
  {
407
407
  var g = function() {
408
- He || (He = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
408
+ He || (He = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
409
409
  };
410
410
  g.isReactWarning = !0, Object.defineProperty(r, "key", {
411
411
  get: g,
@@ -413,10 +413,10 @@ function An() {
413
413
  });
414
414
  }
415
415
  }
416
- function oe(r, d) {
416
+ function se(r, d) {
417
417
  {
418
418
  var g = function() {
419
- Fe || (Fe = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
419
+ Fe || (Fe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
420
420
  };
421
421
  g.isReactWarning = !0, Object.defineProperty(r, "ref", {
422
422
  get: g,
@@ -424,7 +424,7 @@ function An() {
424
424
  });
425
425
  }
426
426
  }
427
- var Q = function(r, d, g, S, Y, e, f) {
427
+ var Q = function(r, d, g, T, H, e, f) {
428
428
  var i = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
430
  $$typeof: t,
@@ -445,39 +445,39 @@ function An() {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: S
448
+ value: T
449
449
  }), Object.defineProperty(i, "_source", {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
- value: Y
453
+ value: H
454
454
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
455
455
  };
456
- function Ee(r, d, g, S, Y) {
456
+ function Ee(r, d, g, T, H) {
457
457
  {
458
- var e, f = {}, i = null, A = null;
459
- g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), ce(d) && (A = d.ref, Ye(d, Y));
458
+ var e, f = {}, i = null, C = null;
459
+ g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), fe(d) && (C = d.ref, Ye(d, H));
460
460
  for (e in d)
461
- me.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
461
+ he.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
462
462
  if (r && r.defaultProps) {
463
- var j = r.defaultProps;
464
- for (e in j)
465
- f[e] === void 0 && (f[e] = j[e]);
463
+ var D = r.defaultProps;
464
+ for (e in D)
465
+ f[e] === void 0 && (f[e] = D[e]);
466
466
  }
467
- if (i || A) {
468
- var L = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
- i && E(f, L), A && oe(f, L);
467
+ if (i || C) {
468
+ var I = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
+ i && S(f, I), C && se(f, I);
470
470
  }
471
- return Q(r, i, A, Y, S, Me.current, f);
471
+ return Q(r, i, C, H, T, Me.current, f);
472
472
  }
473
473
  }
474
- var he = _.ReactCurrentOwner, re = _.ReactDebugCurrentFrame;
474
+ var ge = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
475
475
  function be(r) {
476
476
  if (r) {
477
- var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
478
- re.setExtraStackFrame(g);
477
+ var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
478
+ ne.setExtraStackFrame(g);
479
479
  } else
480
- re.setExtraStackFrame(null);
480
+ ne.setExtraStackFrame(null);
481
481
  }
482
482
  var st;
483
483
  st = !1;
@@ -486,8 +486,8 @@ function An() {
486
486
  }
487
487
  function tt() {
488
488
  {
489
- if (he.current) {
490
- var r = N(he.current.type);
489
+ if (ge.current) {
490
+ var r = k(ge.current.type);
491
491
  if (r)
492
492
  return `
493
493
 
@@ -529,8 +529,8 @@ Check the top-level render call using <` + g + ">.");
529
529
  if (it[g])
530
530
  return;
531
531
  it[g] = !0;
532
- var S = "";
533
- r && r._owner && r._owner !== he.current && (S = " It was passed a child from " + N(r._owner.type) + "."), be(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, S), be(null);
532
+ var T = "";
533
+ r && r._owner && r._owner !== ge.current && (T = " It was passed a child from " + k(r._owner.type) + "."), be(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, T), be(null);
534
534
  }
535
535
  }
536
536
  function ct(r, d) {
@@ -539,15 +539,15 @@ Check the top-level render call using <` + g + ">.");
539
539
  return;
540
540
  if (Se(r))
541
541
  for (var g = 0; g < r.length; g++) {
542
- var S = r[g];
543
- et(S) && lt(S, d);
542
+ var T = r[g];
543
+ et(T) && lt(T, d);
544
544
  }
545
545
  else if (et(r))
546
546
  r._store && (r._store.validated = !0);
547
547
  else if (r) {
548
- var Y = W(r);
549
- if (typeof Y == "function" && Y !== r.entries)
550
- for (var e = Y.call(r), f; !(f = e.next()).done; )
548
+ var H = U(r);
549
+ if (typeof H == "function" && H !== r.entries)
550
+ for (var e = H.call(r), f; !(f = e.next()).done; )
551
551
  et(f.value) && lt(f.value, d);
552
552
  }
553
553
  }
@@ -562,76 +562,76 @@ Check the top-level render call using <` + g + ">.");
562
562
  g = d.propTypes;
563
563
  else if (typeof d == "object" && (d.$$typeof === p || // Note: Memo only checks outer props here.
564
564
  // Inner props are checked in the reconciler.
565
- d.$$typeof === T))
565
+ d.$$typeof === _))
566
566
  g = d.propTypes;
567
567
  else
568
568
  return;
569
569
  if (g) {
570
- var S = N(d);
571
- ot(g, r.props, "prop", S, r);
570
+ var T = k(d);
571
+ ot(g, r.props, "prop", T, r);
572
572
  } else if (d.PropTypes !== void 0 && !st) {
573
573
  st = !0;
574
- var Y = N(d);
575
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
574
+ var H = k(d);
575
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
576
576
  }
577
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
579
579
  }
580
580
  function Ve(r) {
581
581
  {
582
582
  for (var d = Object.keys(r.props), g = 0; g < d.length; g++) {
583
- var S = d[g];
584
- if (S !== "children" && S !== "key") {
585
- be(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), be(null);
583
+ var T = d[g];
584
+ if (T !== "children" && T !== "key") {
585
+ be(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), be(null);
586
586
  break;
587
587
  }
588
588
  }
589
- r.ref !== null && (be(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
589
+ r.ref !== null && (be(r), E("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
590
590
  }
591
591
  }
592
592
  var nt = {};
593
- function ut(r, d, g, S, Y, e) {
593
+ function ut(r, d, g, T, H, e) {
594
594
  {
595
- var f = V(r);
595
+ var f = Y(r);
596
596
  if (!f) {
597
597
  var i = "";
598
598
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var A = vt(Y);
600
- A ? i += A : i += tt();
601
- var j;
602
- r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (N(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, i);
599
+ var C = vt(H);
600
+ C ? i += C : i += tt();
601
+ var D;
602
+ r === null ? D = "null" : Se(r) ? D = "array" : r !== void 0 && r.$$typeof === t ? (D = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : D = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, i);
603
603
  }
604
- var L = Ee(r, d, g, Y, e);
605
- if (L == null)
606
- return L;
604
+ var I = Ee(r, d, g, H, e);
605
+ if (I == null)
606
+ return I;
607
607
  if (f) {
608
- var le = d.children;
609
- if (le !== void 0)
610
- if (S)
611
- if (Se(le)) {
612
- for (var ge = 0; ge < le.length; ge++)
613
- ct(le[ge], r);
614
- Object.freeze && Object.freeze(le);
608
+ var ce = d.children;
609
+ if (ce !== void 0)
610
+ if (T)
611
+ if (Se(ce)) {
612
+ for (var ve = 0; ve < ce.length; ve++)
613
+ ct(ce[ve], r);
614
+ Object.freeze && Object.freeze(ce);
615
615
  } else
616
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
617
  else
618
- ct(le, r);
618
+ ct(ce, r);
619
619
  }
620
- if (me.call(d, "key")) {
621
- var de = N(r), X = Object.keys(d).filter(function(xn) {
620
+ if (he.call(d, "key")) {
621
+ var me = k(r), q = Object.keys(d).filter(function(xn) {
622
622
  return xn !== "key";
623
- }), rt = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
624
- if (!nt[de + rt]) {
625
- var xt = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
626
- w(`A props object containing a "key" prop is being spread into JSX:
623
+ }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!nt[me + rt]) {
625
+ var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
626
+ E(`A props object containing a "key" prop is being spread into JSX:
627
627
  let props = %s;
628
628
  <%s {...props} />
629
629
  React keys must be passed directly to JSX without using spread:
630
630
  let props = %s;
631
- <%s key={someKey} {...props} />`, rt, de, xt, de), nt[de + rt] = !0;
631
+ <%s key={someKey} {...props} />`, rt, me, xt, me), nt[me + rt] = !0;
632
632
  }
633
633
  }
634
- return r === s ? Ve(L) : It(L), L;
634
+ return r === s ? Ve(I) : It(I), I;
635
635
  }
636
636
  }
637
637
  function yt(r, d, g) {
@@ -655,16 +655,16 @@ function Ln(n) {
655
655
  scheme: a = "primary",
656
656
  size: s = "md",
657
657
  leftIcon: l,
658
- rightIcon: c,
658
+ rightIcon: u,
659
659
  className: h = "",
660
- children: u,
660
+ children: c,
661
661
  ...p
662
662
  } = n, y = { md: 12, lg: 14 }[s];
663
663
  return {
664
664
  className: `arkyn_badge ${t} ${a} ${s} ${h}`.trim(),
665
- children: u,
665
+ children: c,
666
666
  leftIcon: kt(y, l),
667
- rightIcon: kt(y, c),
667
+ rightIcon: kt(y, u),
668
668
  ...p
669
669
  };
670
670
  }
@@ -694,31 +694,31 @@ function On(n) {
694
694
  scheme: a = "primary",
695
695
  variant: s = "solid",
696
696
  loadingText: l,
697
- size: c = "md",
697
+ size: u = "md",
698
698
  leftIcon: h,
699
- rightIcon: u,
699
+ rightIcon: c,
700
700
  disabled: p,
701
701
  className: o = "",
702
702
  children: y,
703
- ...T
704
- } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[c];
703
+ ..._
704
+ } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
705
705
  return {
706
- className: `arkyn_button loading_text_${!!l} ${s} ${a} ${c} loading_${t} ${o}`.trim(),
706
+ className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${t} ${o}`.trim(),
707
707
  loadingText: l,
708
708
  children: y,
709
709
  iconSize: b,
710
710
  disabled: p || t,
711
711
  leftIcon: kt(b, h),
712
- rightIcon: kt(b, u),
713
- ...T
712
+ rightIcon: kt(b, c),
713
+ ..._
714
714
  };
715
715
  }
716
716
  function Zr(n) {
717
- const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: c, ...h } = On(n);
717
+ const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(n);
718
718
  return /* @__PURE__ */ m.jsxs("button", { ...h, children: [
719
719
  /* @__PURE__ */ m.jsxs("div", { className: "spinner", children: [
720
720
  /* @__PURE__ */ m.jsx(Qe, { size: s, strokeWidth: 2.5 }),
721
- c && c
721
+ u && u
722
722
  ] }),
723
723
  /* @__PURE__ */ m.jsxs("div", { className: "content", children: [
724
724
  t,
@@ -729,9 +729,9 @@ function Zr(n) {
729
729
  }
730
730
  const cn = Ct({});
731
731
  function Qr({ children: n, ...t }) {
732
- var u, p;
733
- const a = sn(), s = at(null), l = ((u = s.current) == null ? void 0 : u.name) || "", c = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = wn();
734
- return /* @__PURE__ */ m.jsx(cn.Provider, { value: { error: c, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
732
+ var c, p;
733
+ const a = sn(), s = at(null), l = ((c = s.current) == null ? void 0 : c.name) || "", u = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = wn();
734
+ return /* @__PURE__ */ m.jsx(cn.Provider, { value: { error: u, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
735
735
  }
736
736
  function Ke() {
737
737
  return gt(cn);
@@ -742,24 +742,24 @@ function ea(n) {
742
742
  className: a = "",
743
743
  size: s = "md",
744
744
  isError: l,
745
- defaultChecked: c = !1,
745
+ defaultChecked: u = !1,
746
746
  checked: h = null,
747
- onCheck: u,
747
+ onCheck: c,
748
748
  value: p,
749
749
  ...o
750
- } = n, { id: y, inputRef: T, error: k } = Ke(), b = l || !!k, [O, P] = De(c || !1), W = typeof h == "boolean" ? h : O, _ = `arkyn_checkbox ${s} ${b ? "error" : ""} ${W ? "checked" : ""} ${a}`;
751
- function w() {
752
- const C = O;
753
- P(!C), u && u(C ? "" : p || "checked");
750
+ } = n, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [P, A] = De(u || !1), U = typeof h == "boolean" ? h : P, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
751
+ function E() {
752
+ const L = P;
753
+ A(!L), c && c(L ? "" : p || "checked");
754
754
  }
755
- return /* @__PURE__ */ m.jsxs("div", { id: y, className: _, onClick: w, ...o, children: [
755
+ return /* @__PURE__ */ m.jsxs("div", { id: y, className: w, onClick: E, ...o, children: [
756
756
  /* @__PURE__ */ m.jsx(
757
757
  "input",
758
758
  {
759
759
  type: "hidden",
760
760
  name: t,
761
- ref: T,
762
- value: W ? p || "checked" : ""
761
+ ref: _,
762
+ value: U ? p || "checked" : ""
763
763
  }
764
764
  ),
765
765
  /* @__PURE__ */ m.jsx(on, {})
@@ -792,11 +792,11 @@ function ra(n) {
792
792
  scheme: a = "primary",
793
793
  variant: s = "solid",
794
794
  size: l = "md",
795
- icon: c,
795
+ icon: u,
796
796
  disabled: h,
797
- className: u = "",
797
+ className: c = "",
798
798
  ...p
799
- } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${u}`;
799
+ } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${c}`;
800
800
  return /* @__PURE__ */ m.jsxs(
801
801
  "button",
802
802
  {
@@ -805,7 +805,7 @@ function ra(n) {
805
805
  ...p,
806
806
  children: [
807
807
  /* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Kt[l], strokeWidth: 2.5 }) }),
808
- /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(c, { size: Kt[l], strokeWidth: 2.5 }) })
808
+ /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size: Kt[l], strokeWidth: 2.5 }) })
809
809
  ]
810
810
  }
811
811
  );
@@ -823,8 +823,8 @@ function Bt(n) {
823
823
  }
824
824
  function un(n, t) {
825
825
  let a = "", s = 0;
826
- return Array.from(n).forEach((l, c) => {
827
- t[c + s].match(/[0-9]/) || (a += t[c + s], s++), a += l;
826
+ return Array.from(n).forEach((l, u) => {
827
+ t[u + s].match(/[0-9]/) || (a += t[u + s], s++), a += l;
828
828
  }), a;
829
829
  }
830
830
  function dn(n) {
@@ -839,113 +839,113 @@ function jn(n, t) {
839
839
  isLoading: a,
840
840
  isError: s,
841
841
  size: l = "md",
842
- className: c = "",
842
+ className: u = "",
843
843
  variant: h = "solid",
844
- prefix: u,
844
+ prefix: c,
845
845
  sufix: p,
846
846
  leftIcon: o,
847
847
  rightIcon: y,
848
- disabled: T,
849
- defaultValue: k,
848
+ disabled: _,
849
+ defaultValue: N,
850
850
  readOnly: b,
851
- onFocus: O,
852
- onBlur: P,
853
- title: W,
854
- style: _,
855
- onChange: w,
856
- ...C
851
+ onFocus: P,
852
+ onBlur: A,
853
+ title: U,
854
+ style: w,
855
+ onChange: E,
856
+ ...L
857
857
  } = n;
858
- function H(R) {
859
- let B = Bt(R);
860
- const Z = dn(B);
861
- if (!(B.length > fn))
862
- return B = un(B, Ut[Z]), B;
858
+ function W(R) {
859
+ let $ = Bt(R);
860
+ const J = dn($);
861
+ if (!($.length > fn))
862
+ return $ = un($, Ut[J]), $;
863
863
  }
864
- const z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
864
+ const M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
865
865
  return {
866
866
  isLoading: a,
867
- className: F,
868
- prefix: Ge(u, N, "prefix"),
869
- sufix: Ge(p, N, "sufix"),
867
+ className: z,
868
+ prefix: Ge(c, k, "prefix"),
869
+ sufix: Ge(p, k, "sufix"),
870
870
  LeftIcon: o,
871
871
  RightIcon: y,
872
- defaultValue: H(k || ""),
873
- disabled: T,
872
+ defaultValue: W(N || ""),
873
+ disabled: _,
874
874
  readOnly: b,
875
- onFocus: O,
876
- onBlur: P,
877
- title: W,
878
- style: _,
879
- onChange: w,
880
- loadingPosition: z,
881
- iconSize: N,
882
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
883
- ...C
875
+ onFocus: P,
876
+ onBlur: A,
877
+ title: U,
878
+ style: w,
879
+ onChange: E,
880
+ loadingPosition: M,
881
+ iconSize: k,
882
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
883
+ ...L
884
884
  };
885
885
  }
886
886
  function Dn(n) {
887
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
887
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
888
888
  disabled: o,
889
889
  title: y,
890
- style: T,
891
- className: k,
890
+ style: _,
891
+ className: N,
892
892
  prefix: b,
893
- sufix: O,
894
- iconSize: P,
895
- loadingPosition: W,
896
- isLoading: _,
897
- LeftIcon: w,
898
- readOnly: C,
899
- onFocus: H,
900
- onBlur: z,
901
- RightIcon: q,
902
- Spinner: K,
903
- onChange: J,
904
- value: te,
905
- defaultValue: V,
906
- ...F
907
- } = jn({ ...n, id: c, isError: p }, t), [ne, N] = De(V), R = w && !_, B = q && !_, Z = W === "left" && _, se = W === "right" && _;
908
- function ee() {
909
- o || !(u != null && u.current) || (a(!0), u.current.focus());
893
+ sufix: P,
894
+ iconSize: A,
895
+ loadingPosition: U,
896
+ isLoading: w,
897
+ LeftIcon: E,
898
+ readOnly: L,
899
+ onFocus: W,
900
+ onBlur: M,
901
+ RightIcon: X,
902
+ Spinner: ee,
903
+ onChange: V,
904
+ value: re,
905
+ defaultValue: Y,
906
+ ...z
907
+ } = jn({ ...n, id: u, isError: p }, t), [ae, k] = De(Y), R = E && !w, $ = X && !w, J = U === "left" && w, ie = U === "right" && w;
908
+ function Z() {
909
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
910
910
  }
911
- function ie(x) {
912
- let U = Bt(x.target.value);
913
- const I = dn(U);
914
- U.length > fn || (U = un(U, Ut[I]), x.target.value = U, N(U), J && J(x));
911
+ function le(x) {
912
+ let O = Bt(x.target.value);
913
+ const j = dn(O);
914
+ O.length > fn || (O = un(O, Ut[j]), x.target.value = O, k(O), V && V(x));
915
915
  }
916
916
  function G(x) {
917
- a(!0), H && H(x);
917
+ a(!0), W && W(x);
918
918
  }
919
- function D(x) {
920
- a(!1), z && z(x);
919
+ function F(x) {
920
+ a(!1), M && M(x);
921
921
  }
922
922
  return /* @__PURE__ */ m.jsxs(
923
923
  "section",
924
924
  {
925
925
  title: y,
926
- style: T,
927
- onClick: ee,
928
- className: k,
926
+ style: _,
927
+ onClick: Z,
928
+ className: N,
929
929
  children: [
930
930
  b,
931
- Z && K,
932
- R && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
931
+ J && ee,
932
+ R && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
933
933
  /* @__PURE__ */ m.jsx(
934
934
  "input",
935
935
  {
936
- disabled: o || _,
937
- readOnly: C,
938
- ref: u,
939
- value: te || ne,
936
+ disabled: o || w,
937
+ readOnly: L,
938
+ ref: c,
939
+ value: re || ae,
940
940
  onFocus: G,
941
- onChange: ie,
942
- onBlur: D,
943
- ...F
941
+ onChange: le,
942
+ onBlur: F,
943
+ ...z
944
944
  }
945
945
  ),
946
- B && /* @__PURE__ */ m.jsx(q, { size: P, strokeWidth: 2.5 }),
947
- se && K,
948
- O
946
+ $ && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
947
+ ie && ee,
948
+ P
949
949
  ]
950
950
  }
951
951
  );
@@ -955,43 +955,43 @@ function Mn(n, t) {
955
955
  isLoading: a,
956
956
  isError: s,
957
957
  size: l = "md",
958
- className: c = "",
958
+ className: u = "",
959
959
  variant: h = "solid",
960
- prefix: u,
960
+ prefix: c,
961
961
  sufix: p,
962
962
  leftIcon: o,
963
963
  rightIcon: y,
964
- disabled: T,
965
- readOnly: k,
964
+ disabled: _,
965
+ readOnly: N,
966
966
  onFocus: b,
967
- onBlur: O,
968
- title: P,
969
- style: W,
970
- showCents: _ = !1,
971
- max: w = 1e9,
972
- onChange: C,
973
- ...H
974
- } = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
967
+ onBlur: P,
968
+ title: A,
969
+ style: U,
970
+ showCents: w = !1,
971
+ max: E = 1e9,
972
+ onChange: L,
973
+ ...W
974
+ } = n, M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
975
975
  return {
976
976
  isLoading: a,
977
- className: F,
978
- prefix: Ge(u, N, "prefix"),
979
- sufix: Ge(p, N, "sufix"),
977
+ className: z,
978
+ prefix: Ge(c, k, "prefix"),
979
+ sufix: Ge(p, k, "sufix"),
980
980
  LeftIcon: o,
981
981
  RightIcon: y,
982
- disabled: T,
983
- readOnly: k,
982
+ disabled: _,
983
+ readOnly: N,
984
984
  onFocus: b,
985
- onBlur: O,
986
- title: P,
987
- style: W,
988
- max: w,
989
- onChange: C,
990
- showCents: _,
991
- loadingPosition: z,
992
- iconSize: N,
993
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
994
- ...H
985
+ onBlur: P,
986
+ title: A,
987
+ style: U,
988
+ max: E,
989
+ onChange: L,
990
+ showCents: w,
991
+ loadingPosition: M,
992
+ iconSize: k,
993
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
994
+ ...W
995
995
  };
996
996
  }
997
997
  const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, Xt = 8;
@@ -1005,87 +1005,86 @@ function Fn(n, t) {
1005
1005
  return t ? a : a.replace("R$", "").trim();
1006
1006
  }
1007
1007
  function Bn(n) {
1008
- const { currencyValue: t, event: a, max: s, setCurrencyValue: l } = n, { key: c, keyCode: h } = a;
1009
- if (t === 0 && !zn.test(c) || t !== 0 && !$n.test(c) && h !== Xt)
1008
+ const { currencyValue: t, event: a, max: s, setCurrencyValue: l } = n, { key: u, keyCode: h } = a;
1009
+ if (t === 0 && !zn.test(u) || t !== 0 && !$n.test(u) && h !== Xt)
1010
1010
  return;
1011
- const u = t.toString();
1011
+ const c = t.toString();
1012
1012
  let p;
1013
1013
  if (h !== Xt) {
1014
- const o = t === 0 ? c : `${u}${c}`;
1014
+ const o = t === 0 ? u : `${c}${u}`;
1015
1015
  p = Number.parseInt(o, 10);
1016
1016
  } else {
1017
- const o = u.slice(0, -1);
1017
+ const o = c.slice(0, -1);
1018
1018
  p = o === "" ? 0 : Number.parseInt(o, 10);
1019
1019
  }
1020
1020
  p > Number(s) || l(p);
1021
1021
  }
1022
1022
  function Un(n) {
1023
- const [t, a] = De(!1), [s, l] = De(
1024
- n.defaultValue * 100 || 0
1025
- ), c = at(null), { inputRef: h, id: u, error: p } = Ke(), o = h || c, y = n.isError || !!p, {
1026
- disabled: T,
1027
- title: k,
1028
- style: b,
1029
- className: O,
1030
- prefix: P,
1031
- sufix: W,
1032
- iconSize: _,
1033
- loadingPosition: w,
1034
- isLoading: C,
1035
- LeftIcon: H,
1036
- readOnly: z,
1037
- onFocus: q,
1038
- onBlur: K,
1039
- RightIcon: J,
1040
- Spinner: te,
1023
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1024
+ disabled: o,
1025
+ title: y,
1026
+ style: _,
1027
+ className: N,
1028
+ prefix: b,
1029
+ sufix: P,
1030
+ iconSize: A,
1031
+ loadingPosition: U,
1032
+ isLoading: w,
1033
+ LeftIcon: E,
1034
+ readOnly: L,
1035
+ onFocus: W,
1036
+ onBlur: M,
1037
+ RightIcon: X,
1038
+ Spinner: ee,
1041
1039
  value: V,
1042
- max: F,
1043
- onKeyDown: ne,
1044
- onChange: N,
1045
- showCents: R,
1046
- ...B
1047
- } = Mn({ ...n, id: u, isError: y }, t), Z = H && !C, se = J && !C, ee = w === "left" && C, ie = w === "right" && C;
1048
- function G() {
1049
- T || !(o != null && o.current) || (a(!0), o.current.focus());
1040
+ max: re,
1041
+ onKeyDown: Y,
1042
+ onChange: z,
1043
+ showCents: ae,
1044
+ defaultValue: k,
1045
+ ...R
1046
+ } = Mn({ ...n, id: u, isError: p }, t), [$, J] = De(k * 100 || 0), ie = E && !w, Z = X && !w, le = U === "left" && w, G = U === "right" && w;
1047
+ function F() {
1048
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1050
1049
  }
1051
- function D(I) {
1052
- Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), N && N(s / 100), ne && ne(I);
1050
+ function x(te) {
1051
+ Bn({ currencyValue: $, event: te, max: re, setCurrencyValue: J }), z && z($ / 100), Y && Y(te);
1053
1052
  }
1054
- function x(I) {
1055
- a(!0), q && q(I);
1053
+ function O(te) {
1054
+ a(!0), W && W(te);
1056
1055
  }
1057
- function U(I) {
1058
- a(!1), K && K(I);
1056
+ function j(te) {
1057
+ a(!1), M && M(te);
1059
1058
  }
1060
1059
  return /* @__PURE__ */ m.jsxs(
1061
1060
  "section",
1062
1061
  {
1063
- title: k,
1064
- style: b,
1065
- onClick: G,
1066
- className: O,
1062
+ title: y,
1063
+ style: _,
1064
+ onClick: F,
1065
+ className: N,
1067
1066
  children: [
1068
- P,
1069
- ee && te,
1070
- Z && /* @__PURE__ */ m.jsx(H, { size: _, strokeWidth: 2.5 }),
1067
+ b,
1068
+ le && ee,
1069
+ ie && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1071
1070
  /* @__PURE__ */ m.jsx(
1072
1071
  "input",
1073
1072
  {
1074
- value: Fn(V || s, R),
1075
- onKeyDown: D,
1076
- disabled: T || C,
1077
- readOnly: z,
1078
- ref: o,
1079
- onFocus: x,
1080
- onBlur: U,
1073
+ value: Fn(V || $, ae),
1074
+ onKeyDown: x,
1075
+ disabled: o || w,
1076
+ readOnly: L,
1077
+ ref: c,
1078
+ onFocus: O,
1079
+ onBlur: j,
1081
1080
  onChange: () => {
1082
1081
  },
1083
- ...B
1082
+ ...R
1084
1083
  }
1085
1084
  ),
1086
- ie && te,
1087
- se && /* @__PURE__ */ m.jsx(J, { size: _, strokeWidth: 2.5 }),
1088
- W
1085
+ G && ee,
1086
+ Z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1087
+ P
1089
1088
  ]
1090
1089
  }
1091
1090
  );
@@ -1095,97 +1094,97 @@ function Wn(n, t) {
1095
1094
  isLoading: a,
1096
1095
  isError: s,
1097
1096
  size: l = "md",
1098
- className: c = "",
1097
+ className: u = "",
1099
1098
  variant: h = "solid",
1100
- prefix: u,
1099
+ prefix: c,
1101
1100
  sufix: p,
1102
1101
  leftIcon: o,
1103
1102
  rightIcon: y,
1104
- disabled: T,
1105
- readOnly: k,
1103
+ disabled: _,
1104
+ readOnly: N,
1106
1105
  onFocus: b,
1107
- onBlur: O,
1108
- title: P,
1109
- style: W,
1110
- onChange: _,
1111
- showMask: w = !1,
1112
- type: C,
1113
- ...H
1114
- } = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
1106
+ onBlur: P,
1107
+ title: A,
1108
+ style: U,
1109
+ onChange: w,
1110
+ showMask: E = !1,
1111
+ type: L,
1112
+ ...W
1113
+ } = n, M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1115
1114
  return {
1116
1115
  isLoading: a,
1117
- className: F,
1118
- prefix: Ge(u, N, "prefix"),
1119
- sufix: Ge(p, N, "sufix"),
1116
+ className: z,
1117
+ prefix: Ge(c, k, "prefix"),
1118
+ sufix: Ge(p, k, "sufix"),
1120
1119
  LeftIcon: o,
1121
1120
  RightIcon: y,
1122
- disabled: T,
1123
- readOnly: k,
1121
+ disabled: _,
1122
+ readOnly: N,
1124
1123
  onFocus: b,
1125
- onBlur: O,
1126
- title: P,
1127
- style: W,
1128
- onChange: _,
1129
- loadingPosition: z,
1130
- iconSize: N,
1131
- showMask: w,
1132
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
1133
- ...H
1124
+ onBlur: P,
1125
+ title: A,
1126
+ style: U,
1127
+ onChange: w,
1128
+ loadingPosition: M,
1129
+ iconSize: k,
1130
+ showMask: E,
1131
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
1132
+ ...W
1134
1133
  };
1135
1134
  }
1136
1135
  const Hn = En((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
1137
1136
  function Yn(n) {
1138
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
1137
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1139
1138
  disabled: o,
1140
1139
  title: y,
1141
- style: T,
1142
- className: k,
1140
+ style: _,
1141
+ className: N,
1143
1142
  prefix: b,
1144
- sufix: O,
1145
- iconSize: P,
1146
- loadingPosition: W,
1147
- isLoading: _,
1148
- LeftIcon: w,
1149
- readOnly: C,
1150
- onFocus: H,
1151
- onBlur: z,
1152
- RightIcon: q,
1153
- Spinner: K,
1154
- ...J
1155
- } = Wn({ ...n, id: c, isError: p }, t), te = w && !_, V = q && !_, F = W === "left" && _, ne = W === "right" && _;
1156
- function N() {
1157
- o || !(u != null && u.current) || (a(!0), u.current.focus());
1143
+ sufix: P,
1144
+ iconSize: A,
1145
+ loadingPosition: U,
1146
+ isLoading: w,
1147
+ LeftIcon: E,
1148
+ readOnly: L,
1149
+ onFocus: W,
1150
+ onBlur: M,
1151
+ RightIcon: X,
1152
+ Spinner: ee,
1153
+ ...V
1154
+ } = Wn({ ...n, id: u, isError: p }, t), re = E && !w, Y = X && !w, z = U === "left" && w, ae = U === "right" && w;
1155
+ function k() {
1156
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1158
1157
  }
1159
- function R(Z) {
1160
- a(!0), H && H(Z);
1158
+ function R(J) {
1159
+ a(!0), W && W(J);
1161
1160
  }
1162
- function B(Z) {
1163
- a(!1), z && z(Z);
1161
+ function $(J) {
1162
+ a(!1), M && M(J);
1164
1163
  }
1165
1164
  return /* @__PURE__ */ m.jsxs(
1166
1165
  "section",
1167
1166
  {
1168
1167
  title: y,
1169
- style: T,
1170
- onClick: N,
1171
- className: k,
1168
+ style: _,
1169
+ onClick: k,
1170
+ className: N,
1172
1171
  children: [
1173
1172
  b,
1174
- F && K,
1175
- te && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1173
+ z && ee,
1174
+ re && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1176
1175
  /* @__PURE__ */ m.jsx(
1177
1176
  kn,
1178
1177
  {
1179
1178
  component: Hn,
1180
- ref: u,
1179
+ ref: c,
1181
1180
  onFocus: R,
1182
- onBlur: B,
1183
- ...J
1181
+ onBlur: $,
1182
+ ...V
1184
1183
  }
1185
1184
  ),
1186
- V && /* @__PURE__ */ m.jsx(q, { size: P, strokeWidth: 2.5 }),
1187
- ne && K,
1188
- O
1185
+ Y && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1186
+ ae && ee,
1187
+ P
1189
1188
  ]
1190
1189
  }
1191
1190
  );
@@ -1195,96 +1194,96 @@ function Vn(n, t) {
1195
1194
  isLoading: a,
1196
1195
  isError: s,
1197
1196
  size: l = "md",
1198
- className: c = "",
1197
+ className: u = "",
1199
1198
  variant: h = "solid",
1200
- prefix: u,
1199
+ prefix: c,
1201
1200
  sufix: p,
1202
1201
  leftIcon: o,
1203
1202
  rightIcon: y,
1204
- disabled: T,
1205
- readOnly: k,
1203
+ disabled: _,
1204
+ readOnly: N,
1206
1205
  onFocus: b,
1207
- onBlur: O,
1208
- title: P,
1209
- style: W,
1210
- onChange: _,
1211
- ...w
1212
- } = n, C = y ? "right" : "left", te = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, F = { md: 20, lg: 20 }[l];
1206
+ onBlur: P,
1207
+ title: A,
1208
+ style: U,
1209
+ onChange: w,
1210
+ ...E
1211
+ } = n, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, z = { md: 20, lg: 20 }[l];
1213
1212
  return {
1214
1213
  isLoading: a,
1215
- className: te,
1216
- prefix: Ge(u, F, "prefix"),
1217
- sufix: Ge(p, F, "sufix"),
1214
+ className: re,
1215
+ prefix: Ge(c, z, "prefix"),
1216
+ sufix: Ge(p, z, "sufix"),
1218
1217
  LeftIcon: o,
1219
1218
  RightIcon: y,
1220
- disabled: T,
1221
- readOnly: k,
1219
+ disabled: _,
1220
+ readOnly: N,
1222
1221
  onFocus: b,
1223
- onBlur: O,
1224
- title: P,
1225
- style: W,
1226
- onChange: _,
1227
- loadingPosition: C,
1228
- iconSize: F,
1229
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: F, strokeWidth: 2.5 }),
1230
- ...w
1222
+ onBlur: P,
1223
+ title: A,
1224
+ style: U,
1225
+ onChange: w,
1226
+ loadingPosition: L,
1227
+ iconSize: z,
1228
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: z, strokeWidth: 2.5 }),
1229
+ ...E
1231
1230
  };
1232
1231
  }
1233
1232
  function Gn(n) {
1234
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
1233
+ const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1235
1234
  disabled: o,
1236
1235
  title: y,
1237
- style: T,
1238
- className: k,
1236
+ style: _,
1237
+ className: N,
1239
1238
  prefix: b,
1240
- sufix: O,
1241
- iconSize: P,
1242
- loadingPosition: W,
1243
- isLoading: _,
1244
- LeftIcon: w,
1245
- readOnly: C,
1246
- onFocus: H,
1247
- onBlur: z,
1248
- RightIcon: q,
1249
- type: K,
1250
- Spinner: J,
1251
- ...te
1252
- } = Vn({ ...n, id: c, isError: p }, t), V = w && !_, F = q && !_, ne = W === "left" && _, N = W === "right" && _;
1239
+ sufix: P,
1240
+ iconSize: A,
1241
+ loadingPosition: U,
1242
+ isLoading: w,
1243
+ LeftIcon: E,
1244
+ readOnly: L,
1245
+ onFocus: W,
1246
+ onBlur: M,
1247
+ RightIcon: X,
1248
+ type: ee,
1249
+ Spinner: V,
1250
+ ...re
1251
+ } = Vn({ ...n, id: u, isError: p }, t), Y = E && !w, z = X && !w, ae = U === "left" && w, k = U === "right" && w;
1253
1252
  function R() {
1254
- o || !(u != null && u.current) || (a(!0), u.current.focus());
1253
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1255
1254
  }
1256
- function B(se) {
1257
- a(!0), H && H(se);
1255
+ function $(ie) {
1256
+ a(!0), W && W(ie);
1258
1257
  }
1259
- function Z(se) {
1260
- a(!1), z && z(se);
1258
+ function J(ie) {
1259
+ a(!1), M && M(ie);
1261
1260
  }
1262
- return K === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ...te }) : /* @__PURE__ */ m.jsxs(
1261
+ return ee === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1263
1262
  "section",
1264
1263
  {
1265
1264
  title: y,
1266
- style: T,
1265
+ style: _,
1267
1266
  onClick: R,
1268
- className: k,
1267
+ className: N,
1269
1268
  children: [
1270
1269
  b,
1271
- ne && J,
1272
- V && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1270
+ ae && V,
1271
+ Y && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
1273
1272
  /* @__PURE__ */ m.jsx(
1274
1273
  "input",
1275
1274
  {
1276
- disabled: o || _,
1277
- readOnly: C,
1278
- ref: u,
1279
- onFocus: B,
1280
- onBlur: Z,
1281
- type: K,
1282
- ...te
1275
+ disabled: o || w,
1276
+ readOnly: L,
1277
+ ref: c,
1278
+ onFocus: $,
1279
+ onBlur: J,
1280
+ type: ee,
1281
+ ...re
1283
1282
  }
1284
1283
  ),
1285
- F && /* @__PURE__ */ m.jsx(q, { size: P, strokeWidth: 2.5 }),
1286
- N && J,
1287
- O
1284
+ z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
1285
+ k && V,
1286
+ P
1288
1287
  ]
1289
1288
  }
1290
1289
  );
@@ -1305,152 +1304,163 @@ function Xn(n, t) {
1305
1304
  isLoading: a,
1306
1305
  isError: s,
1307
1306
  size: l = "md",
1308
- className: c = "",
1307
+ className: u = "",
1309
1308
  variant: h = "solid",
1310
- prefix: u,
1309
+ prefix: c,
1311
1310
  leftIcon: p,
1312
1311
  disabled: o,
1313
1312
  readOnly: y,
1314
- onFocus: T,
1315
- onBlur: k,
1313
+ onFocus: _,
1314
+ onBlur: N,
1316
1315
  title: b,
1317
- style: O,
1318
- isSearchable: P = !1,
1319
- ...W
1320
- } = n, z = `arkyn_select ${u ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, K = { md: 20, lg: 20 }[l];
1316
+ style: P,
1317
+ isSearchable: A = !1,
1318
+ closeOnSelect: U = !0,
1319
+ ...w
1320
+ } = n, X = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, V = { md: 20, lg: 20 }[l];
1321
1321
  return {
1322
1322
  isLoading: a,
1323
- className: z,
1324
- prefix: Kn(u, K, "prefix"),
1323
+ className: X,
1324
+ prefix: Kn(c, V, "prefix"),
1325
1325
  LeftIcon: p,
1326
1326
  disabled: o,
1327
1327
  readOnly: y,
1328
- onFocus: T,
1329
- onBlur: k,
1328
+ onFocus: _,
1329
+ onBlur: N,
1330
1330
  title: b,
1331
- style: O,
1332
- isSearchable: P,
1333
- iconSize: K,
1334
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: K, strokeWidth: 2.5 }),
1335
- ...W
1331
+ closeOnSelect: U,
1332
+ style: P,
1333
+ isSearchable: A,
1334
+ iconSize: V,
1335
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: V, strokeWidth: 2.5 }),
1336
+ ...w
1336
1337
  };
1337
1338
  }
1338
1339
  function oa(n) {
1339
- var ue;
1340
- const [t, a] = De(!1), { inputRef: s, id: l, error: c } = Ke(), h = at(null), u = s || h, p = n.isError || !!c, {
1340
+ var K;
1341
+ const [t, a] = De(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = n.isError || !!u, {
1341
1342
  disabled: o,
1342
1343
  title: y,
1343
- style: T,
1344
- className: k,
1344
+ style: _,
1345
+ className: N,
1345
1346
  prefix: b,
1346
- iconSize: O,
1347
- isLoading: P,
1348
- LeftIcon: W,
1349
- value: _ = null,
1350
- defaultValue: w = "",
1351
- readOnly: C,
1352
- onFocus: H,
1353
- onBlur: z,
1354
- Spinner: q,
1355
- name: K,
1356
- isSearchable: J,
1357
- placeholder: te,
1358
- onSelect: V,
1359
- options: F,
1360
- optionMaxHeight: ne,
1361
- ...N
1362
- } = Xn({ ...n, id: l, isError: p }, t), [R, B] = De(w), [Z, se] = De("");
1363
- function ee() {
1364
- o || !(u != null && u.current) || (a(!0), u.current.focus());
1347
+ iconSize: P,
1348
+ isLoading: A,
1349
+ LeftIcon: U,
1350
+ value: w = null,
1351
+ defaultValue: E = "",
1352
+ readOnly: L,
1353
+ onFocus: W,
1354
+ onBlur: M,
1355
+ Spinner: X,
1356
+ name: ee,
1357
+ isSearchable: V,
1358
+ placeholder: re,
1359
+ onSelect: Y,
1360
+ options: z,
1361
+ optionMaxHeight: ae,
1362
+ closeOnSelect: k,
1363
+ ...R
1364
+ } = Xn({ ...n, id: l, isError: p }, t), [$, J] = De(E), [ie, Z] = De("");
1365
+ function le() {
1366
+ o || !(c != null && c.current) || (a(!0), c.current.focus());
1365
1367
  }
1366
- function ie(M) {
1367
- a(!0), H && H(M);
1368
+ function G(ue) {
1369
+ a(!0), W && W(ue);
1368
1370
  }
1369
- function G() {
1370
- a(!1), z && u.current && u.current.blur();
1371
+ function F() {
1372
+ a(!1), M && c.current && c.current.blur();
1371
1373
  }
1372
- const D = typeof _ == "string" ? _ : R, x = ((ue = F.find((M) => M.value === D)) == null ? void 0 : ue.label) || "", U = () => {
1373
- if (J) {
1374
- if (!t && x)
1374
+ const x = typeof w == "string" ? w : $, O = ((K = z.find((ue) => ue.value === x)) == null ? void 0 : K.label) || "", j = () => {
1375
+ if (V) {
1376
+ if (!t && O)
1375
1377
  return !0;
1376
- if (!t && !x || t)
1378
+ if (!t && !O || t)
1377
1379
  return !1;
1378
1380
  }
1379
- if (!J) {
1380
- if (!t && x)
1381
+ if (!V) {
1382
+ if (!t && O)
1381
1383
  return !0;
1382
- if (!t && !x)
1384
+ if (!t && !O)
1383
1385
  return !1;
1384
- if (t && x)
1386
+ if (t && O)
1385
1387
  return !0;
1386
- if (t && !x)
1388
+ if (t && !O)
1387
1389
  return !1;
1388
1390
  }
1389
- }, I = F.filter((M) => J ? M.label.toLowerCase().includes(Z.toLowerCase()) : !0);
1391
+ }, te = z.filter((ue) => V ? ue.label.toLowerCase().includes(ie.toLowerCase()) : !0);
1390
1392
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
1391
1393
  /* @__PURE__ */ m.jsxs(
1392
1394
  "section",
1393
1395
  {
1394
1396
  title: y,
1395
- style: T,
1396
- onClick: ee,
1397
- className: `${k} placeholder_dark_${U()}`,
1397
+ style: _,
1398
+ onClick: le,
1399
+ className: `${N} placeholder_dark_${j()}`,
1398
1400
  children: [
1399
1401
  b,
1400
- W && /* @__PURE__ */ m.jsx(W, { size: O, strokeWidth: 2.5 }),
1402
+ U && /* @__PURE__ */ m.jsx(U, { size: P, strokeWidth: 2.5 }),
1401
1403
  /* @__PURE__ */ m.jsx(
1402
1404
  "input",
1403
1405
  {
1404
- disabled: o || P,
1405
- readOnly: !J,
1406
- value: Z || "",
1407
- placeholder: x || te,
1408
- ref: u,
1409
- onFocus: ie,
1410
- onBlur: () => se(""),
1411
- ...N,
1412
- onChange: (M) => se(M.target.value)
1406
+ disabled: o || A,
1407
+ readOnly: !V,
1408
+ value: ie || "",
1409
+ placeholder: O || re,
1410
+ onFocus: G,
1411
+ onBlur: () => Z(""),
1412
+ ...R,
1413
+ onChange: (ue) => Z(ue.target.value)
1414
+ }
1415
+ ),
1416
+ /* @__PURE__ */ m.jsx(
1417
+ "input",
1418
+ {
1419
+ type: "hidden",
1420
+ ref: c,
1421
+ name: ee,
1422
+ value: x || "",
1423
+ readOnly: !0
1413
1424
  }
1414
1425
  ),
1415
- /* @__PURE__ */ m.jsx("input", { type: "hidden", name: K, value: D || "", readOnly: !0 }),
1416
1426
  t && /* @__PURE__ */ m.jsxs(
1417
1427
  "ul",
1418
1428
  {
1419
1429
  className: "arkyn_select_content",
1420
- style: { overflow: "auto", maxHeight: ne },
1430
+ style: { overflow: "auto", maxHeight: ae },
1421
1431
  children: [
1422
- I.map(({ label: M, value: pe }) => /* @__PURE__ */ m.jsxs(
1432
+ te.map(({ label: ue, value: de }) => /* @__PURE__ */ m.jsxs(
1423
1433
  "li",
1424
1434
  {
1425
- className: D === pe ? "active" : "",
1435
+ className: x === de ? "active" : "",
1426
1436
  onClick: () => {
1427
- B(R !== pe ? pe : ""), V && V({ label: M, value: pe });
1437
+ J($ !== de ? de : ""), Y && Y({ label: ue, value: de }), k && setTimeout(() => F(), 100);
1428
1438
  },
1429
1439
  children: [
1430
- M,
1440
+ ue,
1431
1441
  " ",
1432
1442
  /* @__PURE__ */ m.jsx(on, {})
1433
1443
  ]
1434
1444
  },
1435
- pe
1445
+ de
1436
1446
  )),
1437
- I.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1447
+ te.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
1438
1448
  ]
1439
1449
  }
1440
1450
  ),
1441
- !P && /* @__PURE__ */ m.jsx(
1451
+ !A && /* @__PURE__ */ m.jsx(
1442
1452
  Tn,
1443
1453
  {
1444
1454
  className: "arkyn_select_arrow",
1445
- size: O,
1455
+ size: P,
1446
1456
  strokeWidth: 2.5
1447
1457
  }
1448
1458
  ),
1449
- P && q
1459
+ A && X
1450
1460
  ]
1451
1461
  }
1452
1462
  ),
1453
- t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: G })
1463
+ t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: F })
1454
1464
  ] });
1455
1465
  }
1456
1466
  function qn(n) {
@@ -1462,13 +1472,13 @@ function Jn(n) {
1462
1472
  className: a = "",
1463
1473
  disabled: s = !1,
1464
1474
  to: l,
1465
- ...c
1466
- } = n, h = t === l ? "active" : "inactive", u = `arkyn_breadcrumb_link ${h} ${a}`;
1475
+ ...u
1476
+ } = n, h = t === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
1467
1477
  return {
1468
1478
  to: l,
1469
- className: u.trim(),
1479
+ className: c.trim(),
1470
1480
  disabled: s || h === "active",
1471
- ...c
1481
+ ...u
1472
1482
  };
1473
1483
  }
1474
1484
  function sa(n) {
@@ -1492,9 +1502,9 @@ function Zn(n) {
1492
1502
  makeInvisible: a,
1493
1503
  children: s,
1494
1504
  className: l = "",
1495
- ...c
1496
- } = n, u = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
1497
- return /* @__PURE__ */ m.jsx(mn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: u.trim(), ...c, children: [
1505
+ ...u
1506
+ } = n, c = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
1507
+ return /* @__PURE__ */ m.jsx(mn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: c.trim(), ...u, children: [
1498
1508
  /* @__PURE__ */ m.jsx(
1499
1509
  Yt.div,
1500
1510
  {
@@ -1524,10 +1534,10 @@ function Qn(n) {
1524
1534
  return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
1525
1535
  }
1526
1536
  function er(n) {
1527
- const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: c } = gt(mn), u = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1528
- return /* @__PURE__ */ m.jsxs("header", { className: u.trim(), ...l, children: [
1537
+ const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: u } = gt(mn), c = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1538
+ return /* @__PURE__ */ m.jsxs("header", { className: c.trim(), ...l, children: [
1529
1539
  s,
1530
- /* @__PURE__ */ m.jsx("button", { type: "button", onClick: c, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1540
+ /* @__PURE__ */ m.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1531
1541
  ] });
1532
1542
  }
1533
1543
  const la = { Container: Zn, Header: er, Footer: Qn };
@@ -1537,13 +1547,13 @@ function ca(n) {
1537
1547
  size: a = "lg",
1538
1548
  children: s,
1539
1549
  orientation: l = "top",
1540
- className: c,
1550
+ className: u,
1541
1551
  ...h
1542
1552
  } = n;
1543
1553
  return /* @__PURE__ */ m.jsxs(
1544
1554
  "div",
1545
1555
  {
1546
- className: `arkyn_tooltip ${a} ${l} ${c}`,
1556
+ className: `arkyn_tooltip ${a} ${l} ${u}`,
1547
1557
  ...h,
1548
1558
  children: [
1549
1559
  s,
@@ -1569,22 +1579,22 @@ function da(n) {
1569
1579
  modalData: a,
1570
1580
  modalIsOpen: s,
1571
1581
  openModal: l,
1572
- closeModal: c
1573
- } = t, h = s(n), u = a(n);
1574
- return { modalIsOpen: h, modalData: u, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => c(n) };
1582
+ closeModal: u
1583
+ } = t, h = s(n), c = a(n);
1584
+ return { modalIsOpen: h, modalData: c, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => u(n) };
1575
1585
  } else
1576
1586
  return t;
1577
1587
  }
1578
1588
  function fa(n = "") {
1579
- const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (c) => {
1580
- Object.entries(c).forEach(([h, u]) => {
1581
- u === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(u));
1589
+ const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (u) => {
1590
+ Object.entries(u).forEach(([h, c]) => {
1591
+ c === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(c));
1582
1592
  });
1583
1593
  };
1584
1594
  return {
1585
- getParam: (c) => a.get(`${s}${c}`),
1586
- getScopedSearch: (c) => {
1587
- l(c);
1595
+ getParam: (u) => a.get(`${s}${u}`),
1596
+ getScopedSearch: (u) => {
1597
+ l(u);
1588
1598
  let h = a.toString();
1589
1599
  return h && (h = "?" + h), h;
1590
1600
  }
@@ -1602,21 +1612,21 @@ function pa(n) {
1602
1612
  function l(p) {
1603
1613
  return !!a.some((o) => o.key === p);
1604
1614
  }
1605
- function c(p) {
1615
+ function u(p) {
1606
1616
  var o;
1607
1617
  return (o = a.find((y) => y.key === p)) == null ? void 0 : o.data;
1608
1618
  }
1609
1619
  function h(p, o) {
1610
1620
  const y = l(p);
1611
- s(y ? (T) => [...T.filter((b) => b.key !== p), { key: p, data: o }] : [...a, { key: p, data: o }]);
1621
+ s(y ? (_) => [..._.filter((b) => b.key !== p), { key: p, data: o }] : [...a, { key: p, data: o }]);
1612
1622
  }
1613
- function u(p) {
1623
+ function c(p) {
1614
1624
  s(a.filter((o) => o.key !== p));
1615
1625
  }
1616
1626
  return /* @__PURE__ */ m.jsx(
1617
1627
  Wt.Provider,
1618
1628
  {
1619
- value: { modalIsOpen: l, modalData: c, openModal: h, closeModal: u },
1629
+ value: { modalIsOpen: l, modalData: u, openModal: h, closeModal: c },
1620
1630
  children: t
1621
1631
  }
1622
1632
  );
@@ -1649,15 +1659,15 @@ function sr(n) {
1649
1659
  return $t(n, a);
1650
1660
  };
1651
1661
  }
1652
- function $(n, t) {
1662
+ function B(n, t) {
1653
1663
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
1654
1664
  qt && qt(n, null);
1655
1665
  let s = t.length;
1656
1666
  for (; s--; ) {
1657
1667
  let l = t[s];
1658
1668
  if (typeof l == "string") {
1659
- let c = a(l);
1660
- c !== l && (tr(t) || (t[s] = c), l = c);
1669
+ let u = a(l);
1670
+ u !== l && (tr(t) || (t[s] = u), l = u);
1661
1671
  }
1662
1672
  n[l] = !0;
1663
1673
  }
@@ -1699,10 +1709,10 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
1699
1709
  t && t.hasAttribute(s) && (a = t.getAttribute(s));
1700
1710
  let l = "dompurify" + (a ? "#" + a : "");
1701
1711
  try {
1702
- return n.createPolicy(l, { createHTML(c) {
1703
- return c;
1704
- }, createScriptURL(c) {
1705
- return c;
1712
+ return n.createPolicy(l, { createHTML(u) {
1713
+ return u;
1714
+ }, createScriptURL(u) {
1715
+ return u;
1706
1716
  } });
1707
1717
  } catch {
1708
1718
  return console.warn("TrustedTypes policy " + l + " could not be created."), null;
@@ -1712,33 +1722,33 @@ function bn() {
1712
1722
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1713
1723
  if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1714
1724
  return t.isSupported = !1, t;
1715
- let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: c, HTMLTemplateElement: h, Node: u, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: T, DOMParser: k, trustedTypes: b } = n, O = p.prototype, P = Et(O, "cloneNode"), W = Et(O, "nextSibling"), _ = Et(O, "childNodes"), w = Et(O, "parentNode");
1725
+ let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = n, P = p.prototype, A = Et(P, "cloneNode"), U = Et(P, "nextSibling"), w = Et(P, "childNodes"), E = Et(P, "parentNode");
1716
1726
  if (typeof h == "function") {
1717
1727
  let e = a.createElement("template");
1718
1728
  e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1719
1729
  }
1720
- let C, H = "", { implementation: z, createNodeIterator: q, createDocumentFragment: K, getElementsByTagName: J } = a, { importNode: te } = s, V = {};
1721
- t.isSupported = typeof hn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
1722
- let { MUSTACHE_EXPR: F, ERB_EXPR: ne, TMPLIT_EXPR: N, DATA_ATTR: R, ARIA_ATTR: B, IS_SCRIPT_OR_DATA: Z, ATTR_WHITESPACE: se, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: ie } = rn, G = null, D = $({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, U = $({}, [...tn, ...Dt, ...nn, ...St]), I = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), ue = null, M = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, ae = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = $({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", ce = "http://www.w3.org/1999/xhtml", ze = ce, Ye = !1, E = null, oe = $({}, [Fe, Ce, ce], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", re = null, be = null, st = a.createElement("form"), et = function(e) {
1730
+ let L, W = "", { implementation: M, createNodeIterator: X, createDocumentFragment: ee, getElementsByTagName: V } = a, { importNode: re } = s, Y = {};
1731
+ t.isSupported = typeof hn == "function" && typeof E == "function" && M && M.createHTMLDocument !== void 0;
1732
+ let { MUSTACHE_EXPR: z, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: R, ARIA_ATTR: $, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: Z } = rn, { IS_ALLOWED_URI: le } = rn, G = null, F = B({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, O = B({}, [...tn, ...Dt, ...nn, ...St]), j = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, K = null, ue = !0, de = !0, Ie = !1, we = !0, Ae = !1, pe = !1, Xe = !1, qe = !1, oe = !1, he = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml", ze = fe, Ye = !1, S = null, se = B({}, [Fe, Ce, fe], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], ge = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1723
1733
  return e instanceof RegExp || e instanceof Function;
1724
1734
  }, tt = function() {
1725
1735
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1726
1736
  if (!(be && be === e)) {
1727
- if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Q = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, re = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? $({}, e.ALLOWED_TAGS, re) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, re) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, re) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, re) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, re) : ke, ue = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, re) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, e.FORBID_ATTR, re) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, ae = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, ie = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || ce, I = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (ae = !0), ye && (G = $({}, en), x = [], ye.html === !0 && ($(G, Qt), $(x, tn)), ye.svg === !0 && ($(G, Ot), $(x, Dt), $(x, St)), ye.svgFilters === !0 && ($(G, Pt), $(x, Dt), $(x, St)), ye.mathMl === !0 && ($(G, jt), $(x, nn), $(x, St))), e.ADD_TAGS && (G === D && (G = Ze(G)), $(G, e.ADD_TAGS, re)), e.ADD_ATTR && (x === U && (x = Ze(x)), $(x, e.ADD_ATTR, re)), e.ADD_URI_SAFE_ATTR && $(We, e.ADD_URI_SAFE_ATTR, re), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), $(Le, e.FORBID_CONTENTS, re)), Be && (G["#text"] = !0), fe && $(G, ["html", "head", "body"]), G.table && ($(G, ["tbody"]), delete ue.tbody), e.TRUSTED_TYPES_POLICY) {
1737
+ if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Q = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? ge : e.PARSER_MEDIA_TYPE, ne = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? B({}, e.ALLOWED_TAGS, ne) : F, x = Pe(e, "ALLOWED_ATTR") ? B({}, e.ALLOWED_ATTR, ne) : O, S = Pe(e, "ALLOWED_NAMESPACES") ? B({}, e.ALLOWED_NAMESPACES, Lt) : se, We = Pe(e, "ADD_URI_SAFE_ATTR") ? B(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? B(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? B({}, e.FORBID_CONTENTS, ne) : ke, te = Pe(e, "FORBID_TAGS") ? B({}, e.FORBID_TAGS, ne) : {}, K = Pe(e, "FORBID_ATTR") ? B({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, ue = e.ALLOW_ARIA_ATTR !== !1, de = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, pe = e.WHOLE_DOCUMENT || !1, oe = e.RETURN_DOM || !1, he = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, le = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || fe, j = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (de = !1), he && (oe = !0), ye && (G = B({}, en), x = [], ye.html === !0 && (B(G, Qt), B(x, tn)), ye.svg === !0 && (B(G, Ot), B(x, Dt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Dt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, nn), B(x, St))), e.ADD_TAGS && (G === F && (G = Ze(G)), B(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === O && (x = Ze(x)), B(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && B(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), pe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), e.TRUSTED_TYPES_POLICY) {
1728
1738
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1729
1739
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1730
1740
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1731
1741
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1732
- C = e.TRUSTED_TYPES_POLICY, H = C.createHTML("");
1742
+ L = e.TRUSTED_TYPES_POLICY, W = L.createHTML("");
1733
1743
  } else
1734
- C === void 0 && (C = br(b, l)), C !== null && typeof H == "string" && (H = C.createHTML(""));
1744
+ L === void 0 && (L = br(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
1735
1745
  xe && xe(e), be = e;
1736
1746
  }
1737
- }, vt = $({}, ["mi", "mo", "mn", "ms", "mtext"]), it = $({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = $({}, ["title", "style", "font", "a", "script"]), lt = $({}, [...Ot, ...Pt, ...lr]), ct = $({}, [...jt, ...cr]), It = function(e) {
1738
- let f = w(e);
1747
+ }, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...lr]), ct = B({}, [...jt, ...cr]), It = function(e) {
1748
+ let f = E(e);
1739
1749
  (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1740
- let i = Nt(e.tagName), A = Nt(f.tagName);
1741
- return E[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === ce ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (A === "annotation-xml" || vt[A]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === ce ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[A] : !!ct[i] : e.namespaceURI === ce ? f.namespaceURI === Ce && !it[A] || f.namespaceURI === Fe && !vt[A] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && E[e.namespaceURI]) : !1;
1750
+ let i = Nt(e.tagName), C = Nt(f.tagName);
1751
+ return S[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === fe ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (C === "annotation-xml" || vt[C]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === fe ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[C] : !!ct[i] : e.namespaceURI === fe ? f.namespaceURI === Ce && !it[C] || f.namespaceURI === Fe && !vt[C] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && S[e.namespaceURI]) : !1;
1742
1752
  }, Ve = function(e) {
1743
1753
  mt(t.removed, { element: e });
1744
1754
  try {
@@ -1753,7 +1763,7 @@ function bn() {
1753
1763
  mt(t.removed, { attribute: null, from: f });
1754
1764
  }
1755
1765
  if (f.removeAttribute(e), e === "is" && !x[e])
1756
- if (ae || me)
1766
+ if (oe || he)
1757
1767
  try {
1758
1768
  Ve(f);
1759
1769
  } catch {
@@ -1768,116 +1778,116 @@ function bn() {
1768
1778
  if (qe)
1769
1779
  e = "<remove></remove>" + e;
1770
1780
  else {
1771
- let L = Zt(e, /^[\r\n\t ]+/);
1772
- i = L && L[0];
1781
+ let I = Zt(e, /^[\r\n\t ]+/);
1782
+ i = I && I[0];
1773
1783
  }
1774
- Q === "application/xhtml+xml" && ze === ce && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1775
- let A = C ? C.createHTML(e) : e;
1776
- if (ze === ce)
1784
+ Q === "application/xhtml+xml" && ze === fe && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1785
+ let C = L ? L.createHTML(e) : e;
1786
+ if (ze === fe)
1777
1787
  try {
1778
- f = new k().parseFromString(A, Q);
1788
+ f = new N().parseFromString(C, Q);
1779
1789
  } catch {
1780
1790
  }
1781
1791
  if (!f || !f.documentElement) {
1782
- f = z.createDocument(ze, "template", null);
1792
+ f = M.createDocument(ze, "template", null);
1783
1793
  try {
1784
- f.documentElement.innerHTML = Ye ? H : A;
1794
+ f.documentElement.innerHTML = Ye ? W : C;
1785
1795
  } catch {
1786
1796
  }
1787
1797
  }
1788
- let j = f.body || f.documentElement;
1789
- return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === ce ? J.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
1798
+ let D = f.body || f.documentElement;
1799
+ return e && i && D.insertBefore(a.createTextNode(i), D.childNodes[0] || null), ze === fe ? V.call(f, pe ? "html" : "body")[0] : pe ? f.documentElement : D;
1790
1800
  }, yt = function(e) {
1791
- return q.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1801
+ return X.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1792
1802
  }, At = function(e) {
1793
- return e instanceof T && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1803
+ return e instanceof _ && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1794
1804
  }, bt = function(e) {
1795
- return typeof u == "function" && e instanceof u;
1805
+ return typeof c == "function" && e instanceof c;
1796
1806
  }, Oe = function(e, f, i) {
1797
- V[e] && wt(V[e], (A) => {
1798
- A.call(t, f, i, be);
1807
+ Y[e] && wt(Y[e], (C) => {
1808
+ C.call(t, f, i, be);
1799
1809
  });
1800
1810
  }, r = function(e) {
1801
1811
  let f = null;
1802
1812
  if (Oe("beforeSanitizeElements", e, null), At(e))
1803
1813
  return Ve(e), !0;
1804
- let i = re(e.nodeName);
1814
+ let i = ne(e.nodeName);
1805
1815
  if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1806
1816
  return Ve(e), !0;
1807
- if (!G[i] || ue[i]) {
1808
- if (!ue[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
1817
+ if (!G[i] || te[i]) {
1818
+ if (!te[i] && g(i) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)))
1809
1819
  return !1;
1810
1820
  if (Be && !Le[i]) {
1811
- let A = w(e) || e.parentNode, j = _(e) || e.childNodes;
1812
- if (j && A) {
1813
- let L = j.length;
1814
- for (let le = L - 1; le >= 0; --le)
1815
- A.insertBefore(P(j[le], !0), W(e));
1821
+ let C = E(e) || e.parentNode, D = w(e) || e.childNodes;
1822
+ if (D && C) {
1823
+ let I = D.length;
1824
+ for (let ce = I - 1; ce >= 0; --ce)
1825
+ C.insertBefore(A(D[ce], !0), U(e));
1816
1826
  }
1817
1827
  }
1818
1828
  return Ve(e), !0;
1819
1829
  }
1820
- return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([F, ne, N], (A) => {
1821
- f = pt(f, A, " ");
1830
+ return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([z, ae, k], (C) => {
1831
+ f = pt(f, C, " ");
1822
1832
  }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1823
1833
  }, d = function(e, f, i) {
1824
1834
  if (Je && (f === "id" || f === "name") && (i in a || i in st))
1825
1835
  return !1;
1826
- if (!(ve && !M[f] && Te(R, f)) && !(pe && Te(B, f))) {
1827
- if (!x[f] || M[f]) {
1828
- if (!(g(e) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && Te(I.attributeNameCheck, f) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(f)) || f === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i))))
1836
+ if (!(de && !K[f] && Te(R, f)) && !(ue && Te($, f))) {
1837
+ if (!x[f] || K[f]) {
1838
+ if (!(g(e) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, e) || j.tagNameCheck instanceof Function && j.tagNameCheck(e)) && (j.attributeNameCheck instanceof RegExp && Te(j.attributeNameCheck, f) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(f)) || f === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i))))
1829
1839
  return !1;
1830
- } else if (!We[f] && !Te(ie, pt(i, se, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(Z, pt(i, se, ""))) && i)
1840
+ } else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(J, pt(i, ie, ""))) && i)
1831
1841
  return !1;
1832
1842
  }
1833
1843
  return !0;
1834
1844
  }, g = function(e) {
1835
- return e !== "annotation-xml" && Zt(e, ee);
1836
- }, S = function(e) {
1845
+ return e !== "annotation-xml" && Zt(e, Z);
1846
+ }, T = function(e) {
1837
1847
  Oe("beforeSanitizeAttributes", e, null);
1838
1848
  let { attributes: f } = e;
1839
1849
  if (!f)
1840
1850
  return;
1841
- let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, A = f.length;
1842
- for (; A--; ) {
1843
- let j = f[A], { name: L, namespaceURI: le, value: ge } = j, de = re(L), X = L === "value" ? ge : or(ge);
1844
- if (i.attrName = de, i.attrValue = X, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), X = i.attrValue, i.forceKeepAttr || (nt(L, e), !i.keepAttr))
1851
+ let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, C = f.length;
1852
+ for (; C--; ) {
1853
+ let D = f[C], { name: I, namespaceURI: ce, value: ve } = D, me = ne(I), q = I === "value" ? ve : or(ve);
1854
+ if (i.attrName = me, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), q = i.attrValue, i.forceKeepAttr || (nt(I, e), !i.keepAttr))
1845
1855
  continue;
1846
- if (!we && Te(/\/>/i, X)) {
1847
- nt(L, e);
1856
+ if (!we && Te(/\/>/i, q)) {
1857
+ nt(I, e);
1848
1858
  continue;
1849
1859
  }
1850
- Ae && wt([F, ne, N], (xt) => {
1851
- X = pt(X, xt, " ");
1860
+ Ae && wt([z, ae, k], (xt) => {
1861
+ q = pt(q, xt, " ");
1852
1862
  });
1853
- let rt = re(e.nodeName);
1854
- if (d(rt, de, X)) {
1855
- if (Ne && (de === "id" || de === "name") && (nt(L, e), X = ot + X), C && typeof b == "object" && typeof b.getAttributeType == "function" && !le)
1856
- switch (b.getAttributeType(rt, de)) {
1863
+ let rt = ne(e.nodeName);
1864
+ if (d(rt, me, q)) {
1865
+ if (Ne && (me === "id" || me === "name") && (nt(I, e), q = ot + q), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1866
+ switch (b.getAttributeType(rt, me)) {
1857
1867
  case "TrustedHTML": {
1858
- X = C.createHTML(X);
1868
+ q = L.createHTML(q);
1859
1869
  break;
1860
1870
  }
1861
1871
  case "TrustedScriptURL": {
1862
- X = C.createScriptURL(X);
1872
+ q = L.createScriptURL(q);
1863
1873
  break;
1864
1874
  }
1865
1875
  }
1866
1876
  try {
1867
- le ? e.setAttributeNS(le, L, X) : e.setAttribute(L, X), Jt(t.removed);
1877
+ ce ? e.setAttributeNS(ce, I, q) : e.setAttribute(I, q), Jt(t.removed);
1868
1878
  } catch {
1869
1879
  }
1870
1880
  }
1871
1881
  }
1872
1882
  Oe("afterSanitizeAttributes", e, null);
1873
- }, Y = function e(f) {
1874
- let i = null, A = yt(f);
1875
- for (Oe("beforeSanitizeShadowDOM", f, null); i = A.nextNode(); )
1876
- Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof c && e(i.content), S(i));
1883
+ }, H = function e(f) {
1884
+ let i = null, C = yt(f);
1885
+ for (Oe("beforeSanitizeShadowDOM", f, null); i = C.nextNode(); )
1886
+ Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && e(i.content), T(i));
1877
1887
  Oe("afterSanitizeShadowDOM", f, null);
1878
1888
  };
1879
1889
  return t.sanitize = function(e) {
1880
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, A = null, j = null, L = null;
1890
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, C = null, D = null, I = null;
1881
1891
  if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1882
1892
  if (typeof e.toString == "function") {
1883
1893
  if (e = e.toString(), typeof e != "string")
@@ -1888,37 +1898,37 @@ function bn() {
1888
1898
  return e;
1889
1899
  if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1890
1900
  if (e.nodeName) {
1891
- let de = re(e.nodeName);
1892
- if (!G[de] || ue[de])
1901
+ let me = ne(e.nodeName);
1902
+ if (!G[me] || te[me])
1893
1903
  throw ht("root node is forbidden and cannot be sanitized in-place");
1894
1904
  }
1895
- } else if (e instanceof u)
1896
- i = ut("<!---->"), A = i.ownerDocument.importNode(e, !0), A.nodeType === 1 && A.nodeName === "BODY" || A.nodeName === "HTML" ? i = A : i.appendChild(A);
1905
+ } else if (e instanceof c)
1906
+ i = ut("<!---->"), C = i.ownerDocument.importNode(e, !0), C.nodeType === 1 && C.nodeName === "BODY" || C.nodeName === "HTML" ? i = C : i.appendChild(C);
1897
1907
  else {
1898
- if (!ae && !Ae && !fe && e.indexOf("<") === -1)
1899
- return C && $e ? C.createHTML(e) : e;
1908
+ if (!oe && !Ae && !pe && e.indexOf("<") === -1)
1909
+ return L && $e ? L.createHTML(e) : e;
1900
1910
  if (i = ut(e), !i)
1901
- return ae ? null : $e ? H : "";
1911
+ return oe ? null : $e ? W : "";
1902
1912
  }
1903
1913
  i && qe && Ve(i.firstChild);
1904
- let le = yt(Se ? e : i);
1905
- for (; j = le.nextNode(); )
1906
- r(j) || (j.content instanceof c && Y(j.content), S(j));
1914
+ let ce = yt(Se ? e : i);
1915
+ for (; D = ce.nextNode(); )
1916
+ r(D) || (D.content instanceof u && H(D.content), T(D));
1907
1917
  if (Se)
1908
1918
  return e;
1909
- if (ae) {
1910
- if (me)
1911
- for (L = K.call(i.ownerDocument); i.firstChild; )
1912
- L.appendChild(i.firstChild);
1919
+ if (oe) {
1920
+ if (he)
1921
+ for (I = ee.call(i.ownerDocument); i.firstChild; )
1922
+ I.appendChild(i.firstChild);
1913
1923
  else
1914
- L = i;
1915
- return (x.shadowroot || x.shadowrootmode) && (L = te.call(s, L, !0)), L;
1916
- }
1917
- let ge = fe ? i.outerHTML : i.innerHTML;
1918
- return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1919
- ` + ge), Ae && wt([F, ne, N], (de) => {
1920
- ge = pt(ge, de, " ");
1921
- }), C && $e ? C.createHTML(ge) : ge;
1924
+ I = i;
1925
+ return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
1926
+ }
1927
+ let ve = pe ? i.outerHTML : i.innerHTML;
1928
+ return pe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1929
+ ` + ve), Ae && wt([z, ae, k], (me) => {
1930
+ ve = pt(ve, me, " ");
1931
+ }), L && $e ? L.createHTML(ve) : ve;
1922
1932
  }, t.setConfig = function() {
1923
1933
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1924
1934
  tt(e), Xe = !0;
@@ -1926,17 +1936,17 @@ function bn() {
1926
1936
  be = null, Xe = !1;
1927
1937
  }, t.isValidAttribute = function(e, f, i) {
1928
1938
  be || tt({});
1929
- let A = re(e), j = re(f);
1930
- return d(A, j, i);
1939
+ let C = ne(e), D = ne(f);
1940
+ return d(C, D, i);
1931
1941
  }, t.addHook = function(e, f) {
1932
- typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
1942
+ typeof f == "function" && (Y[e] = Y[e] || [], mt(Y[e], f));
1933
1943
  }, t.removeHook = function(e) {
1934
- if (V[e])
1935
- return Jt(V[e]);
1944
+ if (Y[e])
1945
+ return Jt(Y[e]);
1936
1946
  }, t.removeHooks = function(e) {
1937
- V[e] && (V[e] = []);
1947
+ Y[e] && (Y[e] = []);
1938
1948
  }, t.removeAllHooks = function() {
1939
- V = {};
1949
+ Y = {};
1940
1950
  }, t;
1941
1951
  }
1942
1952
  var xr = bn(), wr = (n) => {
@@ -1971,8 +1981,8 @@ var xr = bn(), wr = (n) => {
1971
1981
  this.publish(n), this.toasts = [...this.toasts, n];
1972
1982
  }, this.create = (n) => {
1973
1983
  var t;
1974
- let { message: a, ...s } = n, l = typeof (n == null ? void 0 : n.id) == "number" || ((t = n.id) == null ? void 0 : t.length) > 0 ? n.id : Ft++, c = this.toasts.find((u) => u.id === l), h = n.dismissible === void 0 ? !0 : n.dismissible;
1975
- return c ? this.toasts = this.toasts.map((u) => u.id === l ? (this.publish({ ...u, ...n, id: l, title: a }), { ...u, ...n, id: l, dismissible: h, title: a }) : u) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1984
+ let { message: a, ...s } = n, l = typeof (n == null ? void 0 : n.id) == "number" || ((t = n.id) == null ? void 0 : t.length) > 0 ? n.id : Ft++, u = this.toasts.find((c) => c.id === l), h = n.dismissible === void 0 ? !0 : n.dismissible;
1985
+ return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...n, id: l, title: a }), { ...c, ...n, id: l, dismissible: h, title: a }) : c) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1976
1986
  }, this.dismiss = (n) => (n || this.toasts.forEach((t) => {
1977
1987
  this.subscribers.forEach((a) => a({ id: t.id, dismiss: !0 }));
1978
1988
  }), this.subscribers.forEach((t) => t({ id: n, dismiss: !0 })), n), this.message = (n, t) => this.create({ ...t, message: n }), this.error = (n, t) => this.create({ ...t, message: n, type: "error" }), this.success = (n, t) => this.create({ ...t, type: "success", message: n }), this.info = (n, t) => this.create({ ...t, type: "info", message: n }), this.warning = (n, t) => this.create({ ...t, type: "warning", message: n }), this.loading = (n, t) => this.create({ ...t, type: "loading", message: n }), this.promise = (n, t) => {
@@ -1981,25 +1991,25 @@ var xr = bn(), wr = (n) => {
1981
1991
  let a;
1982
1992
  t.loading !== void 0 && (a = this.create({ ...t, promise: n, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
1983
1993
  let s = n instanceof Promise ? n : n(), l = a !== void 0;
1984
- return s.then((c) => {
1985
- if (c && typeof c.ok == "boolean" && !c.ok) {
1994
+ return s.then((u) => {
1995
+ if (u && typeof u.ok == "boolean" && !u.ok) {
1986
1996
  l = !1;
1987
- let h = typeof t.error == "function" ? t.error(`HTTP error! status: ${c.status}`) : t.error, u = typeof t.description == "function" ? t.description(`HTTP error! status: ${c.status}`) : t.description;
1988
- this.create({ id: a, type: "error", message: h, description: u });
1997
+ let h = typeof t.error == "function" ? t.error(`HTTP error! status: ${u.status}`) : t.error, c = typeof t.description == "function" ? t.description(`HTTP error! status: ${u.status}`) : t.description;
1998
+ this.create({ id: a, type: "error", message: h, description: c });
1989
1999
  } else if (t.success !== void 0) {
1990
2000
  l = !1;
1991
- let h = typeof t.success == "function" ? t.success(c) : t.success, u = typeof t.description == "function" ? t.description(c) : t.description;
1992
- this.create({ id: a, type: "success", message: h, description: u });
2001
+ let h = typeof t.success == "function" ? t.success(u) : t.success, c = typeof t.description == "function" ? t.description(u) : t.description;
2002
+ this.create({ id: a, type: "success", message: h, description: c });
1993
2003
  }
1994
- }).catch((c) => {
2004
+ }).catch((u) => {
1995
2005
  if (t.error !== void 0) {
1996
2006
  l = !1;
1997
- let h = typeof t.error == "function" ? t.error(c) : t.error, u = typeof t.description == "function" ? t.description(c) : t.description;
1998
- this.create({ id: a, type: "error", message: h, description: u });
2007
+ let h = typeof t.error == "function" ? t.error(u) : t.error, c = typeof t.description == "function" ? t.description(u) : t.description;
2008
+ this.create({ id: a, type: "error", message: h, description: c });
1999
2009
  }
2000
2010
  }).finally(() => {
2001
- var c;
2002
- l && (this.dismiss(a), a = void 0), (c = t.finally) == null || c.call(t);
2011
+ var u;
2012
+ l && (this.dismiss(a), a = void 0), (u = t.finally) == null || u.call(t);
2003
2013
  }), a;
2004
2014
  }, this.custom = (n, t) => {
2005
2015
  let a = (t == null ? void 0 : t.id) || Ft++;
@@ -2026,83 +2036,83 @@ function Fr(...n) {
2026
2036
  return n.filter(Boolean).join(" ");
2027
2037
  }
2028
2038
  var Br = (n) => {
2029
- var t, a, s, l, c, h, u;
2030
- let { invert: p, toast: o, unstyled: y, interacting: T, setHeights: k, visibleToasts: b, heights: O, index: P, toasts: W, expanded: _, removeToast: w, closeButton: C, style: H, cancelButtonStyle: z, actionButtonStyle: q, className: K = "", descriptionClassName: J = "", duration: te, position: V, gap: F, loadingIcon: ne, expandByDefault: N, classNames: R, icons: B, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: se, cn: ee } = n, [ie, G] = v.useState(!1), [D, x] = v.useState(!1), [U, I] = v.useState(!1), [ue, M] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = P === 0, qe = P + 1 <= b, ae = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((E) => E.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
2031
- var E;
2032
- return (E = o.closeButton) != null ? E : C;
2033
- }, [o.closeButton, C]), Be = v.useMemo(() => o.duration || te || jr, [o.duration, te]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = V.split("-"), We = v.useMemo(() => O.reduce((E, oe, Q) => Q >= Ne ? E : E + oe.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = ae === "loading";
2034
- ye.current = v.useMemo(() => Ne * F + We, [Ne, We]), v.useEffect(() => {
2039
+ var t, a, s, l, u, h, c;
2040
+ let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: P, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: W, cancelButtonStyle: M, actionButtonStyle: X, className: ee = "", descriptionClassName: V = "", duration: re, position: Y, gap: z, loadingIcon: ae, expandByDefault: k, classNames: R, icons: $, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: Z } = n, [le, G] = v.useState(!1), [F, x] = v.useState(!1), [O, j] = v.useState(!1), [te, K] = v.useState(!1), [ue, de] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), pe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, he = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => P.findIndex((S) => S.toastId === o.id) || 0, [P, o.id]), ot = v.useMemo(() => {
2041
+ var S;
2042
+ return (S = o.closeButton) != null ? S : L;
2043
+ }, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re || jr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = Y.split("-"), We = v.useMemo(() => P.reduce((S, se, Q) => Q >= Ne ? S : S + se.height, 0), [P, Ne]), He = Cr(), Fe = o.invert || p, Ce = oe === "loading";
2044
+ ye.current = v.useMemo(() => Ne * z + We, [Ne, We]), v.useEffect(() => {
2035
2045
  G(!0);
2036
2046
  }, []), v.useLayoutEffect(() => {
2037
- if (!ie)
2047
+ if (!le)
2038
2048
  return;
2039
- let E = fe.current, oe = E.style.height;
2040
- E.style.height = "auto";
2041
- let Q = E.getBoundingClientRect().height;
2042
- E.style.height = oe, we(Q), k((Ee) => Ee.find((he) => he.toastId === o.id) ? Ee.map((he) => he.toastId === o.id ? { ...he, height: Q } : he) : [{ toastId: o.id, height: Q, position: o.position }, ...Ee]);
2043
- }, [ie, o.title, o.description, k, o.id]);
2044
- let ce = v.useCallback(() => {
2045
- x(!0), ve(ye.current), k((E) => E.filter((oe) => oe.toastId !== o.id)), setTimeout(() => {
2046
- w(o);
2049
+ let S = pe.current, se = S.style.height;
2050
+ S.style.height = "auto";
2051
+ let Q = S.getBoundingClientRect().height;
2052
+ S.style.height = se, we(Q), N((Ee) => Ee.find((ge) => ge.toastId === o.id) ? Ee.map((ge) => ge.toastId === o.id ? { ...ge, height: Q } : ge) : [{ toastId: o.id, height: Q, position: o.position }, ...Ee]);
2053
+ }, [le, o.title, o.description, N, o.id]);
2054
+ let fe = v.useCallback(() => {
2055
+ x(!0), de(ye.current), N((S) => S.filter((se) => se.toastId !== o.id)), setTimeout(() => {
2056
+ E(o);
2047
2057
  }, $r);
2048
- }, [o, w, k, ye]);
2058
+ }, [o, E, N, ye]);
2049
2059
  v.useEffect(() => {
2050
- if (o.promise && ae === "loading" || o.duration === 1 / 0 || o.type === "loading")
2060
+ if (o.promise && oe === "loading" || o.duration === 1 / 0 || o.type === "loading")
2051
2061
  return;
2052
- let E, oe = Be;
2053
- return _ || T || se && He ? (() => {
2062
+ let S, se = Be;
2063
+ return w || _ || ie && He ? (() => {
2054
2064
  if (Le.current < Se.current) {
2055
2065
  let Q = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2056
- oe = oe - Q;
2066
+ se = se - Q;
2057
2067
  }
2058
2068
  Le.current = (/* @__PURE__ */ new Date()).getTime();
2059
- })() : oe !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), E = setTimeout(() => {
2069
+ })() : se !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), S = setTimeout(() => {
2060
2070
  var Q;
2061
- (Q = o.onAutoClose) == null || Q.call(o, o), ce();
2062
- }, oe)), () => clearTimeout(E);
2063
- }, [_, T, N, o, Be, ce, o.promise, ae, se, He]), v.useEffect(() => {
2064
- let E = fe.current;
2065
- if (E) {
2066
- let oe = E.getBoundingClientRect().height;
2067
- return we(oe), k((Q) => [{ toastId: o.id, height: oe, position: o.position }, ...Q]), () => k((Q) => Q.filter((Ee) => Ee.toastId !== o.id));
2068
- }
2069
- }, [k, o.id]), v.useEffect(() => {
2070
- o.delete && ce();
2071
- }, [ce, o.delete]);
2071
+ (Q = o.onAutoClose) == null || Q.call(o, o), fe();
2072
+ }, se)), () => clearTimeout(S);
2073
+ }, [w, _, k, o, Be, fe, o.promise, oe, ie, He]), v.useEffect(() => {
2074
+ let S = pe.current;
2075
+ if (S) {
2076
+ let se = S.getBoundingClientRect().height;
2077
+ return we(se), N((Q) => [{ toastId: o.id, height: se, position: o.position }, ...Q]), () => N((Q) => Q.filter((Ee) => Ee.toastId !== o.id));
2078
+ }
2079
+ }, [N, o.id]), v.useEffect(() => {
2080
+ o.delete && fe();
2081
+ }, [fe, o.delete]);
2072
2082
  function ze() {
2073
- return B != null && B.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, B.loading) : ne ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, ne) : v.createElement(Sr, { visible: ae === "loading" });
2083
+ return $ != null && $.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, $.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Sr, { visible: oe === "loading" });
2074
2084
  }
2075
- function Ye(E) {
2076
- return { __html: xr.sanitize(E) };
2085
+ function Ye(S) {
2086
+ return { __html: xr.sanitize(S) };
2077
2087
  }
2078
- return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(K, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": ie, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ue, "data-expanded": !!(_ || N && ie), style: { "--index": P, "--toasts-before": P, "--z-index": W.length - P, "--offset": `${D ? pe : ye.current}px`, "--initial-height": N ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (E) => {
2079
- Ce || !me || (Ae.current = /* @__PURE__ */ new Date(), ve(ye.current), E.target.setPointerCapture(E.pointerId), E.target.tagName !== "BUTTON" && (I(!0), ke.current = { x: E.clientX, y: E.clientY }));
2088
+ return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: pe, className: Z(ee, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": F, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": A, "data-front": Xe, "data-swiping": O, "data-dismissible": he, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${F ? ue : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...W, ...o.style }, onPointerDown: (S) => {
2089
+ Ce || !he || (Ae.current = /* @__PURE__ */ new Date(), de(ye.current), S.target.setPointerCapture(S.pointerId), S.target.tagName !== "BUTTON" && (j(!0), ke.current = { x: S.clientX, y: S.clientY }));
2080
2090
  }, onPointerUp: () => {
2081
- var E, oe, Q, Ee;
2082
- if (ue || !me)
2091
+ var S, se, Q, Ee;
2092
+ if (te || !he)
2083
2093
  return;
2084
2094
  ke.current = null;
2085
- let he = Number(((E = fe.current) == null ? void 0 : E.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), re = (/* @__PURE__ */ new Date()).getTime() - ((oe = Ae.current) == null ? void 0 : oe.getTime()), be = Math.abs(he) / re;
2086
- if (Math.abs(he) >= zr || be > 0.11) {
2087
- ve(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), ce(), M(!0);
2095
+ let ge = Number(((S = pe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(ge) / ne;
2096
+ if (Math.abs(ge) >= zr || be > 0.11) {
2097
+ de(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), fe(), K(!0);
2088
2098
  return;
2089
2099
  }
2090
- (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), I(!1);
2091
- }, onPointerMove: (E) => {
2092
- var oe;
2093
- if (!ke.current || !me)
2100
+ (Ee = pe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), j(!1);
2101
+ }, onPointerMove: (S) => {
2102
+ var se;
2103
+ if (!ke.current || !he)
2094
2104
  return;
2095
- let Q = E.clientY - ke.current.y, Ee = E.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Q), re = E.pointerType === "touch" ? 10 : 2;
2096
- Math.abs(he) > re ? (oe = fe.current) == null || oe.style.setProperty("--swipe-amount", `${Q}px`) : Math.abs(Ee) > re && (ke.current = null);
2097
- } }, ot && !o.jsx ? v.createElement("button", { "aria-label": Z, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2105
+ let Q = S.clientY - ke.current.y, Ee = S.clientX - ke.current.x, ge = (Ue === "top" ? Math.min : Math.max)(0, Q), ne = S.pointerType === "touch" ? 10 : 2;
2106
+ Math.abs(ge) > ne ? (se = pe.current) == null || se.style.setProperty("--swipe-amount", `${Q}px`) : Math.abs(Ee) > ne && (ke.current = null);
2107
+ } }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !he ? () => {
2098
2108
  } : () => {
2099
- var E;
2100
- ce(), (E = o.onDismiss) == null || E.call(o, o);
2101
- }, className: ee(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, ae || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: ee(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || (B == null ? void 0 : B[ae]) || wr(ae) : null) : null, v.createElement("div", { "data-content": "", className: ee(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: ee(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: ee(J, Je, R == null ? void 0 : R.description, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || z, onClick: (E) => {
2102
- _t(o.cancel) && me && (ce(), o.cancel.onClick(E));
2103
- }, className: ee(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || q, onClick: (E) => {
2104
- _t(o.action) && (o.action.onClick(E), !E.defaultPrevented && ce());
2105
- }, className: ee(R == null ? void 0 : R.actionButton, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.actionButton) }, o.action.label) : null));
2109
+ var S;
2110
+ fe(), (S = o.onDismiss) == null || S.call(o, o);
2111
+ }, className: Z(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: Z(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || ($ == null ? void 0 : $[oe]) || wr(oe) : null) : null, v.createElement("div", { "data-content": "", className: Z(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: Z(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: Z(V, Je, R == null ? void 0 : R.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || M, onClick: (S) => {
2112
+ _t(o.cancel) && he && (fe(), o.cancel.onClick(S));
2113
+ }, className: Z(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || X, onClick: (S) => {
2114
+ _t(o.action) && (o.action.onClick(S), !S.defaultPrevented && fe());
2115
+ }, className: Z(R == null ? void 0 : R.actionButton, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.actionButton) }, o.action.label) : null));
2106
2116
  };
2107
2117
  function an() {
2108
2118
  if (typeof window > "u" || typeof document > "u")
@@ -2111,55 +2121,55 @@ function an() {
2111
2121
  return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2112
2122
  }
2113
2123
  var Ur = (n) => {
2114
- let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style: T, visibleToasts: k = Or, toastOptions: b, dir: O = an(), gap: P = Mr, loadingIcon: W, icons: _, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C, cn: H = Fr } = n, [z, q] = v.useState([]), K = v.useMemo(() => Array.from(new Set([a].concat(z.filter((D) => D.position).map((D) => D.position)))), [z, a]), [J, te] = v.useState([]), [V, F] = v.useState(!1), [ne, N] = v.useState(!1), [R, B] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Z = v.useRef(null), se = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), ie = v.useRef(!1), G = v.useCallback((D) => q((x) => x.filter(({ id: U }) => U !== D.id)), []);
2115
- return v.useEffect(() => je.subscribe((D) => {
2116
- if (D.dismiss) {
2117
- q((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
2124
+ let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Or, toastOptions: b, dir: P = an(), gap: A = Mr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: W = Fr } = n, [M, X] = v.useState([]), ee = v.useMemo(() => Array.from(new Set([a].concat(M.filter((F) => F.position).map((F) => F.position)))), [M, a]), [V, re] = v.useState([]), [Y, z] = v.useState(!1), [ae, k] = v.useState(!1), [R, $] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = v.useRef(null), le = v.useRef(!1), G = v.useCallback((F) => X((x) => x.filter(({ id: O }) => O !== F.id)), []);
2125
+ return v.useEffect(() => je.subscribe((F) => {
2126
+ if (F.dismiss) {
2127
+ X((x) => x.map((O) => O.id === F.id ? { ...O, delete: !0 } : O));
2118
2128
  return;
2119
2129
  }
2120
2130
  setTimeout(() => {
2121
2131
  Rn.flushSync(() => {
2122
- q((x) => {
2123
- let U = x.findIndex((I) => I.id === D.id);
2124
- return U !== -1 ? [...x.slice(0, U), { ...x[U], ...D }, ...x.slice(U + 1)] : [D, ...x];
2132
+ X((x) => {
2133
+ let O = x.findIndex((j) => j.id === F.id);
2134
+ return O !== -1 ? [...x.slice(0, O), { ...x[O], ...F }, ...x.slice(O + 1)] : [F, ...x];
2125
2135
  });
2126
2136
  });
2127
2137
  });
2128
2138
  }), []), v.useEffect(() => {
2129
2139
  if (p !== "system") {
2130
- B(p);
2140
+ $(p);
2131
2141
  return;
2132
2142
  }
2133
- p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? B("dark") : B("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: D }) => {
2134
- B(D ? "dark" : "light");
2143
+ p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? $("dark") : $("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: F }) => {
2144
+ $(F ? "dark" : "light");
2135
2145
  });
2136
2146
  }, [p]), v.useEffect(() => {
2137
- z.length <= 1 && F(!1);
2138
- }, [z]), v.useEffect(() => {
2139
- let D = (x) => {
2140
- var U, I;
2141
- s.every((ue) => x[ue] || x.code === ue) && (F(!0), (U = Z.current) == null || U.focus()), x.code === "Escape" && (document.activeElement === Z.current || (I = Z.current) != null && I.contains(document.activeElement)) && F(!1);
2147
+ M.length <= 1 && z(!1);
2148
+ }, [M]), v.useEffect(() => {
2149
+ let F = (x) => {
2150
+ var O, j;
2151
+ s.every((te) => x[te] || x.code === te) && (z(!0), (O = J.current) == null || O.focus()), x.code === "Escape" && (document.activeElement === J.current || (j = J.current) != null && j.contains(document.activeElement)) && z(!1);
2142
2152
  };
2143
- return document.addEventListener("keydown", D), () => document.removeEventListener("keydown", D);
2153
+ return document.addEventListener("keydown", F), () => document.removeEventListener("keydown", F);
2144
2154
  }, [s]), v.useEffect(() => {
2145
- if (Z.current)
2155
+ if (J.current)
2146
2156
  return () => {
2147
- ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, ie.current = !1);
2157
+ Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, le.current = !1);
2148
2158
  };
2149
- }, [Z.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${se}`, tabIndex: -1 }, K.map((D, x) => {
2150
- var U;
2151
- let [I, ue] = D.split("-");
2152
- return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: Z, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ue, style: { "--front-toast-height": `${((U = J[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...T }, onBlur: (M) => {
2153
- ie.current && !M.currentTarget.contains(M.relatedTarget) && (ie.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2154
- }, onFocus: (M) => {
2155
- M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || ie.current || (ie.current = !0, ee.current = M.relatedTarget);
2156
- }, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
2157
- ne || F(!1);
2158
- }, onPointerDown: (M) => {
2159
- M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || N(!0);
2160
- }, onPointerUp: () => N(!1) }, z.filter((M) => !M.position && x === 0 || M.position === D).map((M, pe) => {
2161
- var ve, Ie;
2162
- return v.createElement(Br, { key: M.id, icons: _, index: pe, toast: M, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: k, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : c, interacting: ne, position: D, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: z.filter((we) => we.position == M.position), heights: J.filter((we) => we.position == M.position), setHeights: te, expandByDefault: l, gap: P, loadingIcon: W, expanded: V, pauseWhenPageIsHidden: C, cn: H });
2159
+ }, [J.current]), M.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, ee.map((F, x) => {
2160
+ var O;
2161
+ let [j, te] = F.split("-");
2162
+ return v.createElement("ol", { key: F, dir: P === "auto" ? an() : P, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": j, "data-x-position": te, style: { "--front-toast-height": `${((O = V[0]) == null ? void 0 : O.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Pr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (K) => {
2163
+ le.current && !K.currentTarget.contains(K.relatedTarget) && (le.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
2164
+ }, onFocus: (K) => {
2165
+ K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || le.current || (le.current = !0, Z.current = K.relatedTarget);
2166
+ }, onMouseEnter: () => z(!0), onMouseMove: () => z(!0), onMouseLeave: () => {
2167
+ ae || z(!1);
2168
+ }, onPointerDown: (K) => {
2169
+ K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || k(!0);
2170
+ }, onPointerUp: () => k(!1) }, M.filter((K) => !K.position && x === 0 || K.position === F).map((K, ue) => {
2171
+ var de, Ie;
2172
+ return v.createElement(Br, { key: K.id, icons: w, index: ue, toast: K, duration: (de = b == null ? void 0 : b.duration) != null ? de : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: F, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: M.filter((we) => we.position == K.position), heights: V.filter((we) => we.position == K.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: Y, pauseWhenPageIsHidden: L, cn: W });
2163
2173
  }));
2164
2174
  })) : null;
2165
2175
  };
@@ -2169,17 +2179,17 @@ dompurify/dist/purify.es.mjs:
2169
2179
  (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *)
2170
2180
  */
2171
2181
  function ha({ children: n }) {
2172
- function t(c) {
2173
- Tt.success(c);
2182
+ function t(u) {
2183
+ Tt.success(u);
2174
2184
  }
2175
- function a(c) {
2176
- Tt.info(c);
2185
+ function a(u) {
2186
+ Tt.info(u);
2177
2187
  }
2178
- function s(c) {
2179
- Tt.error(c);
2188
+ function s(u) {
2189
+ Tt.error(u);
2180
2190
  }
2181
- function l(c) {
2182
- Tt.warning(c);
2191
+ function l(u) {
2192
+ Tt.warning(u);
2183
2193
  }
2184
2194
  return /* @__PURE__ */ m.jsxs(
2185
2195
  pn.Provider,