@arkyn/components 3.0.1-beta.50 → 3.0.1-beta.51

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
@@ -1,22 +1,22 @@
1
- import { jsx as f, jsxs as k, Fragment as ke } from "react/jsx-runtime";
1
+ import { jsx as f, jsxs as k, Fragment as Ce } from "react/jsx-runtime";
2
2
  import * as ee from "react";
3
- import Tr, { createContext as Fe, useContext as Ae, useState as F, useRef as oe, useEffect as Ce, cloneElement as Da, useId as Ie, useSyncExternalStore as $a, forwardRef as gn, Children as La, useCallback as tt } from "react";
4
- import { Info as ja, AlertTriangle as Ba, XCircle as za, CheckCircle2 as Ha, Pause as Ga, Play as Va, Loader2 as Oe, RefreshCw as hn, Check as pn, X as yn, FileImage as Ua, FileAudio as qa, FileArchive as Wa, File as Ka, ChevronDown as Or, Search as Xa } from "lucide-react";
5
- import { AnimatePresence as Pr, motion as ft } from "framer-motion";
3
+ import Tr, { createContext as Se, useContext as Re, useState as F, useRef as ie, useEffect as be, cloneElement as $a, useId as Me, useSyncExternalStore as La, forwardRef as gn, Children as ja, useCallback as nt } from "react";
4
+ import { Info as Ba, AlertTriangle as za, XCircle as Ha, CheckCircle2 as Ga, Pause as Va, Play as Ua, Loader2 as Ae, RefreshCw as hn, Check as pn, X as yn, FileImage as qa, FileAudio as Wa, FileArchive as Ka, File as Xa, ChevronDown as Or, Search as Ya } from "lucide-react";
5
+ import { AnimatePresence as Pr, motion as dt } from "framer-motion";
6
6
  import { InputMask as Ar } from "@react-input/mask";
7
- function Ya(e) {
7
+ function Za(e) {
8
8
  const { className: t, ...n } = e, r = `arkynAlertTitle ${t}`;
9
9
  return /* @__PURE__ */ f("div", { className: r.trim(), ...n });
10
10
  }
11
- const Ir = Fe({});
12
- function Za() {
13
- return Ae(Ir);
11
+ const Ir = Se({});
12
+ function Ja() {
13
+ return Re(Ir);
14
14
  }
15
15
  function yc(e) {
16
16
  const { schema: t, children: n, className: r, ...a } = e, i = !((l) => {
17
17
  let u = !1;
18
18
  const d = (_) => {
19
- Array.isArray(_) ? _.forEach(d) : _ && typeof _ == "object" && "type" in _ && (_.type === Ya ? u = !0 : _.props && typeof _.props == "object" && _.props !== null && "children" in _.props && d(_.props.children));
19
+ Array.isArray(_) ? _.forEach(d) : _ && typeof _ == "object" && "type" in _ && (_.type === Za ? u = !0 : _.props && typeof _.props == "object" && _.props !== null && "children" in _.props && d(_.props.children));
20
20
  };
21
21
  return d(l), u;
22
22
  })(n) ? "nonExistsAlertTitle" : "existsAlertTitle", c = `arkynAlertContainer ${t} ${i} ${r}`;
@@ -31,19 +31,19 @@ function kc(e) {
31
31
  return /* @__PURE__ */ f("div", { className: r.trim(), ...n });
32
32
  }
33
33
  function Cc(e) {
34
- const { className: t, ...n } = e, { schema: r } = Za(), a = `arkynAlertIcon ${r} ${t}`;
34
+ const { className: t, ...n } = e, { schema: r } = Ja(), a = `arkynAlertIcon ${r} ${t}`;
35
35
  switch (r) {
36
36
  case "success":
37
- return /* @__PURE__ */ f(Ha, { className: a, ...n });
37
+ return /* @__PURE__ */ f(Ga, { className: a, ...n });
38
38
  case "danger":
39
- return /* @__PURE__ */ f(za, { className: a, ...n });
39
+ return /* @__PURE__ */ f(Ha, { className: a, ...n });
40
40
  case "warning":
41
- return /* @__PURE__ */ f(Ba, { className: a, ...n });
41
+ return /* @__PURE__ */ f(za, { className: a, ...n });
42
42
  case "info":
43
- return /* @__PURE__ */ f(ja, { className: a, ...n });
43
+ return /* @__PURE__ */ f(Ba, { className: a, ...n });
44
44
  }
45
45
  }
46
- function Ja(e) {
46
+ function Qa(e) {
47
47
  function t() {
48
48
  return !e || e <= 0 ? 0 : e >= 100 ? 100 : e;
49
49
  }
@@ -53,7 +53,7 @@ function Ja(e) {
53
53
  }
54
54
  return [n, a];
55
55
  }
56
- function Qa(e) {
56
+ function es(e) {
57
57
  const {
58
58
  onChange: t,
59
59
  value: n,
@@ -61,7 +61,7 @@ function Qa(e) {
61
61
  onDragging: a,
62
62
  className: s = "",
63
63
  ...o
64
- } = e, [i, c] = F(!1), l = oe(null), u = () => c(!0), d = () => c(!1), _ = (C) => {
64
+ } = e, [i, c] = F(!1), l = ie(null), u = () => c(!0), d = () => c(!1), _ = (C) => {
65
65
  if (r || !i || !l.current) return;
66
66
  const x = l.current.getBoundingClientRect(), v = C.clientX - x.left, w = Math.min(Math.max(v / x.width * 100, 0), 100);
67
67
  t(w);
@@ -70,7 +70,7 @@ function Qa(e) {
70
70
  const x = l.current.getBoundingClientRect(), v = C.clientX - x.left, w = Math.min(Math.max(v / x.width * 100, 0), 100);
71
71
  t(w);
72
72
  };
73
- Ce(() => (i ? (a && a(!0), document.addEventListener("mousemove", _), document.addEventListener("mouseup", d)) : (a && a(!1), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", d)), () => {
73
+ be(() => (i ? (a && a(!0), document.addEventListener("mousemove", _), document.addEventListener("mouseup", d)) : (a && a(!1), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", d)), () => {
74
74
  document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", d);
75
75
  }), [i]);
76
76
  const y = `arkynSliderTrack ${i ? "isDragging" : "isNotDragging"} ${r ? "isDisabled" : "isEnabled"} ${s}`;
@@ -89,9 +89,9 @@ function Qa(e) {
89
89
  }
90
90
  );
91
91
  }
92
- function es(e) {
93
- var L, T, G, S;
94
- const { onPlayAudio: t, onPauseAudio: n, disabled: r, ...a } = e, [s, o] = Ja(0), [i, c] = F(!1), [l, u] = F(!1), d = oe(null), _ = (L = d.current) == null ? void 0 : L.currentTime, h = (T = d.current) == null ? void 0 : T.duration, m = C(_), g = C(h), y = {
92
+ function ts(e) {
93
+ var j, O, H, A;
94
+ const { onPlayAudio: t, onPauseAudio: n, disabled: r, ...a } = e, [s, o] = Qa(0), [i, c] = F(!1), [l, u] = F(!1), d = ie(null), _ = (j = d.current) == null ? void 0 : j.currentTime, h = (O = d.current) == null ? void 0 : O.duration, m = C(_), g = C(h), y = {
95
95
  totalTime: h,
96
96
  currentTime: _,
97
97
  formattedCurrentTime: m,
@@ -99,8 +99,8 @@ function es(e) {
99
99
  };
100
100
  function C(b) {
101
101
  if (!b) return "00:00";
102
- const O = Math.floor(b / 60), M = Math.floor(b % 60), P = String(O).padStart(2, "0"), j = String(M).padStart(2, "0");
103
- return `${P}:${j}`;
102
+ const S = Math.floor(b / 60), M = Math.floor(b % 60), I = String(S).padStart(2, "0"), L = String(M).padStart(2, "0");
103
+ return `${I}:${L}`;
104
104
  }
105
105
  function x() {
106
106
  const b = d.current;
@@ -113,21 +113,21 @@ function es(e) {
113
113
  function w() {
114
114
  i ? v() : x();
115
115
  }
116
- function H(b) {
117
- const O = d.current;
118
- if (!O) return;
119
- const M = O.duration, P = b / 100 * M;
120
- O.currentTime = P;
116
+ function z(b) {
117
+ const S = d.current;
118
+ if (!S) return;
119
+ const M = S.duration, I = b / 100 * M;
120
+ S.currentTime = I;
121
121
  }
122
- return l || !i ? (G = d.current) == null || G.pause() : i && ((S = d.current) == null || S.play()), Ce(() => {
122
+ return l || !i ? (H = d.current) == null || H.pause() : i && ((A = d.current) == null || A.play()), be(() => {
123
123
  const b = d.current;
124
124
  if (!b) return;
125
- const O = () => {
126
- const M = b.duration, j = b.currentTime / M * 100;
127
- o(j);
125
+ const S = () => {
126
+ const M = b.duration, L = b.currentTime / M * 100;
127
+ o(L);
128
128
  };
129
- return b.addEventListener("timeupdate", O), () => {
130
- b.removeEventListener("timeupdate", O);
129
+ return b.addEventListener("timeupdate", S), () => {
130
+ b.removeEventListener("timeupdate", S);
131
131
  };
132
132
  }, []), /* @__PURE__ */ k("div", { className: "arkynAudioPlayer", children: [
133
133
  /* @__PURE__ */ f(
@@ -140,15 +140,15 @@ function es(e) {
140
140
  }
141
141
  ),
142
142
  /* @__PURE__ */ k("button", { type: "button", disabled: r, onClick: w, children: [
143
- i && /* @__PURE__ */ f(Ga, {}),
144
- !i && /* @__PURE__ */ f(Va, {})
143
+ i && /* @__PURE__ */ f(Va, {}),
144
+ !i && /* @__PURE__ */ f(Ua, {})
145
145
  ] }),
146
146
  /* @__PURE__ */ f("p", { children: m }),
147
147
  /* @__PURE__ */ f(
148
- Qa,
148
+ es,
149
149
  {
150
150
  value: s,
151
- onChange: H,
151
+ onChange: z,
152
152
  onDragging: u,
153
153
  disabled: r
154
154
  }
@@ -156,22 +156,22 @@ function es(e) {
156
156
  /* @__PURE__ */ f("p", { children: g })
157
157
  ] });
158
158
  }
159
- const Rr = Fe({});
159
+ const Rr = Se({});
160
160
  function bc(e) {
161
161
  const { children: t, fieldErrors: n, form: r } = e;
162
162
  return /* @__PURE__ */ k(Rr.Provider, { value: { fieldErrors: n }, children: [
163
163
  !r && t,
164
- r && Da(r, r.props, t)
164
+ r && $a(r, r.props, t)
165
165
  ] });
166
166
  }
167
- function be() {
168
- return Ae(Rr);
167
+ function xe() {
168
+ return Re(Rr);
169
169
  }
170
- function xe(e) {
170
+ function Ee(e) {
171
171
  const { children: t, className: n, ...r } = e, a = `arkynFieldError ${n}`;
172
- return t ? /* @__PURE__ */ f("strong", { className: a.trim(), ...r, children: t }) : /* @__PURE__ */ f(ke, {});
172
+ return t ? /* @__PURE__ */ f("strong", { className: a.trim(), ...r, children: t }) : /* @__PURE__ */ f(Ce, {});
173
173
  }
174
- function pe(e) {
174
+ function ye(e) {
175
175
  const {
176
176
  showAsterisk: t = !1,
177
177
  className: n = "",
@@ -179,7 +179,7 @@ function pe(e) {
179
179
  } = e, s = `arkynFieldLabel ${t ? "asteriskTrue" : "asteriskFalse"} ${n}`;
180
180
  return /* @__PURE__ */ f("label", { className: s.trim(), ...r });
181
181
  }
182
- function ye(e) {
182
+ function ve(e) {
183
183
  const {
184
184
  children: t,
185
185
  className: n,
@@ -190,9 +190,9 @@ function ye(e) {
190
190
  }
191
191
  function K(e) {
192
192
  const { iconSize: t, icon: n, className: r, show: a = !0 } = e;
193
- return a ? n ? typeof n == "string" ? /* @__PURE__ */ f("p", { className: r, children: n }) : /* @__PURE__ */ f("p", { className: r, children: /* @__PURE__ */ f(n, { size: t, strokeWidth: 2.5 }) }) : /* @__PURE__ */ f(ke, {}) : /* @__PURE__ */ f(ke, {});
193
+ return a ? n ? typeof n == "string" ? /* @__PURE__ */ f("p", { className: r, children: n }) : /* @__PURE__ */ f("p", { className: r, children: /* @__PURE__ */ f(n, { size: t, strokeWidth: 2.5 }) }) : /* @__PURE__ */ f(Ce, {}) : /* @__PURE__ */ f(Ce, {});
194
194
  }
195
- function at(e) {
195
+ function st(e) {
196
196
  const {
197
197
  isLoading: t = !1,
198
198
  scheme: n = "primary",
@@ -208,7 +208,7 @@ function at(e) {
208
208
  } = e, h = { xs: 12, sm: 16, md: 20, lg: 24 }[s], y = `arkynButton ${t ? "loadingTrue" : "loadingFalse"} ${r} ${n} ${s} ${a ? "loadingTextTrue" : "loadingTextFalse"} ${l}`;
209
209
  return /* @__PURE__ */ k("button", { className: y, disabled: c || t, ...d, children: [
210
210
  /* @__PURE__ */ k("div", { className: "arkynButtonSpinner", children: [
211
- /* @__PURE__ */ f(Oe, { size: h, strokeWidth: 2.5 }),
211
+ /* @__PURE__ */ f(Ae, { size: h, strokeWidth: 2.5 }),
212
212
  a && a
213
213
  ] }),
214
214
  /* @__PURE__ */ k("div", { className: "arkynButtonContent", children: [
@@ -244,7 +244,7 @@ function kn(e) {
244
244
  className: d.trim(),
245
245
  ...c,
246
246
  children: [
247
- /* @__PURE__ */ f("div", { className: "arkynIconButtonSpinner", children: /* @__PURE__ */ f(Oe, { size: l[a], strokeWidth: 2.5 }) }),
247
+ /* @__PURE__ */ f("div", { className: "arkynIconButtonSpinner", children: /* @__PURE__ */ f(Ae, { size: l[a], strokeWidth: 2.5 }) }),
248
248
  /* @__PURE__ */ f("div", { className: "arkynIconButtonContent", children: /* @__PURE__ */ f(s, { size: l[a], strokeWidth: 2.5 }) })
249
249
  ]
250
250
  }
@@ -258,8 +258,8 @@ function Cn(e) {
258
258
  orientation: a = "top",
259
259
  className: s = "",
260
260
  ...o
261
- } = e, i = Ie(), c = oe(null), [l, u] = F(a);
262
- Ce(() => {
261
+ } = e, i = Me(), c = ie(null), [l, u] = F(a);
262
+ be(() => {
263
263
  const _ = () => {
264
264
  if (!c.current) return;
265
265
  const g = document.getElementById(i);
@@ -290,7 +290,7 @@ function Cn(e) {
290
290
  )
291
291
  ] });
292
292
  }
293
- function ts(e) {
293
+ function ns(e) {
294
294
  const {
295
295
  filePath: t,
296
296
  disabled: n,
@@ -310,7 +310,7 @@ function ts(e) {
310
310
  }, l.click();
311
311
  }
312
312
  return /* @__PURE__ */ k("div", { className: "arkynAudioUploadHasFileContentContainer", children: [
313
- /* @__PURE__ */ f(es, { src: t }),
313
+ /* @__PURE__ */ f(ts, { src: t }),
314
314
  /* @__PURE__ */ f(vn, {}),
315
315
  /* @__PURE__ */ k("div", { className: "arkynAudioUploadButtonsContainer", children: [
316
316
  !!o && /* @__PURE__ */ f(Cn, { orientation: "bottom", text: "Reenviar áudio", children: /* @__PURE__ */ f(
@@ -328,7 +328,7 @@ function ts(e) {
328
328
  }
329
329
  ) }),
330
330
  /* @__PURE__ */ f(
331
- at,
331
+ st,
332
332
  {
333
333
  isLoading: s,
334
334
  onClick: c,
@@ -342,7 +342,7 @@ function ts(e) {
342
342
  ] })
343
343
  ] });
344
344
  }
345
- function ns(e) {
345
+ function rs(e) {
346
346
  const {
347
347
  dropAudioText: t,
348
348
  isLoading: n,
@@ -368,7 +368,7 @@ function ns(e) {
368
368
  }
369
369
  return /* @__PURE__ */ k("div", { onDrop: i, className: "arkynAudioUploadNoFileContent", children: [
370
370
  /* @__PURE__ */ f(
371
- at,
371
+ st,
372
372
  {
373
373
  isLoading: n,
374
374
  onClick: c,
@@ -398,56 +398,56 @@ function xc(e) {
398
398
  defaultValue: _ = "",
399
399
  showAsterisk: h = !1,
400
400
  disabled: m = !1
401
- } = e, { fieldErrors: g } = be(), y = g == null ? void 0 : g[t], [C, x] = F(_), [v, w] = F(""), [H, L] = F(null), [T, G] = F(_), [S, b] = F(!1);
402
- async function O(I) {
401
+ } = e, { fieldErrors: g } = xe(), y = g == null ? void 0 : g[t], [C, x] = F(_), [v, w] = F(""), [z, j] = F(null), [O, H] = F(_), [A, b] = F(!1);
402
+ async function S(T) {
403
403
  if (m) return;
404
- b(!0), L(I), w("");
405
- const Z = new FormData();
406
- Z.append(r, I), await fetch(d, { method: a, body: Z }).then(async (E) => await E.json()).then((E) => {
404
+ b(!0), j(T), w("");
405
+ const Y = new FormData();
406
+ Y.append(r, T), await fetch(d, { method: a, body: Y }).then(async (E) => await E.json()).then((E) => {
407
407
  E != null && E.error ? w(E.error) : x(E == null ? void 0 : E[o]), s && s(E == null ? void 0 : E[o]);
408
408
  }).catch((E) => {
409
409
  console.error(E), w("Erro ao enviar audio");
410
410
  }).finally(() => b(!1));
411
411
  }
412
- function M(I) {
412
+ function M(T) {
413
413
  if (!m) {
414
- if (I.type.indexOf("audio") === -1) {
414
+ if (T.type.indexOf("audio") === -1) {
415
415
  w("O arquivo selecionado não é um arquivo de áudio");
416
416
  return;
417
417
  }
418
- G(URL.createObjectURL(I)), O(I);
418
+ H(URL.createObjectURL(T)), S(T);
419
419
  }
420
420
  }
421
- const P = y || v;
422
- return /* @__PURE__ */ k(ye, { children: [
423
- n && /* @__PURE__ */ f(pe, { showAsterisk: h, children: n }),
424
- /* @__PURE__ */ k("div", { className: `arkynAudioUpload ${P ? "hasError" : "noHasError"} ${T ? "hasAudio" : "noHasAudio"}`, children: [
421
+ const I = y || v;
422
+ return /* @__PURE__ */ k(ve, { children: [
423
+ n && /* @__PURE__ */ f(ye, { showAsterisk: h, children: n }),
424
+ /* @__PURE__ */ k("div", { className: `arkynAudioUpload ${I ? "hasError" : "noHasError"} ${O ? "hasAudio" : "noHasAudio"}`, children: [
425
425
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: C || "" }),
426
- !T && /* @__PURE__ */ f(
427
- ns,
426
+ !O && /* @__PURE__ */ f(
427
+ rs,
428
428
  {
429
429
  disabled: m,
430
- isLoading: S,
430
+ isLoading: A,
431
431
  acceptAudio: u,
432
432
  dropAudioText: c,
433
433
  handleSelectFile: M,
434
434
  selectAudioButtonText: i
435
435
  }
436
436
  ),
437
- T && /* @__PURE__ */ f(
438
- ts,
437
+ O && /* @__PURE__ */ f(
438
+ ns,
439
439
  {
440
- filePath: T,
440
+ filePath: O,
441
441
  acceptAudio: u,
442
442
  changeAudioButtonText: l,
443
443
  disabled: m,
444
444
  handleSelectFile: M,
445
- isLoading: S,
446
- reSendAudio: P && H ? () => O(H) : void 0
445
+ isLoading: A,
446
+ reSendAudio: I && z ? () => S(z) : void 0
447
447
  }
448
448
  )
449
449
  ] }),
450
- P && /* @__PURE__ */ f(xe, { children: P })
450
+ I && /* @__PURE__ */ f(Ee, { children: I })
451
451
  ] });
452
452
  }
453
453
  function Ec(e) {
@@ -467,11 +467,11 @@ function Ec(e) {
467
467
  /* @__PURE__ */ f(K, { iconSize: u, icon: s })
468
468
  ] });
469
469
  }
470
- const Mr = Fe({});
471
- function rs() {
472
- return Ae(Mr);
470
+ const Mr = Se({});
471
+ function as() {
472
+ return Re(Mr);
473
473
  }
474
- function as(e) {
474
+ function ss(e) {
475
475
  return /* @__PURE__ */ f(Mr.Provider, { value: e, children: e.children });
476
476
  }
477
477
  function wc(e) {
@@ -482,7 +482,7 @@ function wc(e) {
482
482
  onClick: a,
483
483
  value: s,
484
484
  ...o
485
- } = e, { disabled: i, currentTab: c, changeCurrentTab: l } = rs(), u = i || n, h = `arkynCardTabButton ${u ? "isDisabled" : ""} ${c === s && s ? "isActive" : ""} ${r}`;
485
+ } = e, { disabled: i, currentTab: c, changeCurrentTab: l } = as(), u = i || n, h = `arkynCardTabButton ${u ? "isDisabled" : ""} ${c === s && s ? "isActive" : ""} ${r}`;
486
486
  function m(g) {
487
487
  l(s), a && a(g);
488
488
  }
@@ -511,7 +511,7 @@ function Nc(e) {
511
511
  c(d), n && n(d);
512
512
  }
513
513
  return /* @__PURE__ */ f(
514
- as,
514
+ ss,
515
515
  {
516
516
  disabled: a,
517
517
  currentTab: i,
@@ -534,20 +534,20 @@ function Fc(e) {
534
534
  orientation: u,
535
535
  value: d,
536
536
  ..._
537
- } = e, { fieldErrors: h } = be(), m = oe(null), g = t || Ie(), y = s || (h == null ? void 0 : h[n]), C = !!y, [x, v] = F(o || !1), w = typeof c == "boolean" ? c : x, T = `arkynCheckbox ${a} ${C ? "errorTrue" : "errorFalse"} ${w ? "checkedTrue" : "checkedFalse"} ${r}`;
538
- function G() {
539
- const S = x;
540
- v(!S), l && l(S ? "" : d || "checked");
537
+ } = e, { fieldErrors: h } = xe(), m = ie(null), g = t || Me(), y = s || (h == null ? void 0 : h[n]), C = !!y, [x, v] = F(o || !1), w = typeof c == "boolean" ? c : x, O = `arkynCheckbox ${a} ${C ? "errorTrue" : "errorFalse"} ${w ? "checkedTrue" : "checkedFalse"} ${r}`;
538
+ function H() {
539
+ const A = x;
540
+ v(!A), l && l(A ? "" : d || "checked");
541
541
  }
542
- return /* @__PURE__ */ k(ye, { orientation: u, children: [
543
- i && /* @__PURE__ */ f(pe, { children: i }),
542
+ return /* @__PURE__ */ k(ve, { orientation: u, children: [
543
+ i && /* @__PURE__ */ f(ye, { children: i }),
544
544
  /* @__PURE__ */ k(
545
545
  "button",
546
546
  {
547
547
  id: g,
548
548
  type: "button",
549
- className: T,
550
- onClick: G,
549
+ className: O,
550
+ onClick: H,
551
551
  ..._,
552
552
  children: [
553
553
  /* @__PURE__ */ f(
@@ -563,25 +563,25 @@ function Fc(e) {
563
563
  ]
564
564
  }
565
565
  ),
566
- y && /* @__PURE__ */ f(xe, { children: y })
566
+ y && /* @__PURE__ */ f(Ee, { children: y })
567
567
  ] });
568
568
  }
569
- function ss() {
569
+ function os() {
570
570
  return () => {
571
571
  };
572
572
  }
573
- function os() {
574
- return $a(
575
- ss,
573
+ function is() {
574
+ return La(
575
+ os,
576
576
  () => !0,
577
577
  () => !1
578
578
  );
579
579
  }
580
580
  function Sc(e) {
581
581
  const { children: t, fallback: n = null } = e;
582
- return os() ? /* @__PURE__ */ f(ke, { children: t() }) : /* @__PURE__ */ f(ke, { children: n });
582
+ return is() ? /* @__PURE__ */ f(Ce, { children: t() }) : /* @__PURE__ */ f(Ce, { children: n });
583
583
  }
584
- const tn = (e) => e.replace(/[^0-9]/g, ""), nt = [
584
+ const tn = (e) => e.replace(/[^0-9]/g, ""), rt = [
585
585
  {
586
586
  name: "Afghanistan",
587
587
  code: "+93",
@@ -2557,25 +2557,25 @@ const tn = (e) => e.replace(/[^0-9]/g, ""), nt = [
2557
2557
  TRY: { countryLanguage: "tr-TR", countryCurrency: "TRY" },
2558
2558
  IDR: { countryLanguage: "id-ID", countryCurrency: "IDR" },
2559
2559
  THB: { countryLanguage: "th-TH", countryCurrency: "THB" }
2560
- }, is = (e) => e.replace(new RegExp("(?:R\\$|\\p{Sc}|[$€¥£])", "gu"), "").trim(), Un = (e, t, n = { showPrefix: !0 }) => {
2560
+ }, cs = (e) => e.replace(new RegExp("(?:R\\$|\\p{Sc}|[$€¥£])", "gu"), "").trim(), Un = (e, t, n = { showPrefix: !0 }) => {
2561
2561
  if (!Vn[t])
2562
2562
  throw new Error("Unsupported currency code");
2563
2563
  const { countryCurrency: r, countryLanguage: a } = Vn[t], s = new Intl.NumberFormat(a, {
2564
2564
  style: "currency",
2565
2565
  currency: r
2566
2566
  }).format(e);
2567
- return n.showPrefix ? s.replace(/\s/g, " ") : is(s).replace(/\s/g, " ");
2568
- }, cs = {
2567
+ return n.showPrefix ? s.replace(/\s/g, " ") : cs(s).replace(/\s/g, " ");
2568
+ }, ls = {
2569
2569
  NINE: "(99) 99999-9999"
2570
2570
  };
2571
- tn(cs.NINE).length;
2572
- function ls(e) {
2571
+ tn(ls.NINE).length;
2572
+ function Dr(e) {
2573
2573
  let t = e;
2574
2574
  return typeof e == "string" ? (t = +tn(e), t % 1 !== 0 && (t = t.toFixed(2))) : t = Number.isInteger(e) ? Number(e) * 10 ** 2 : e.toFixed(2), +tn(String(t)) / 10 ** 2;
2575
2575
  }
2576
2576
  function Yt(e, t) {
2577
2577
  if (!e) return [0, Un(0, t)];
2578
- const n = ls(e), r = Un(n, t);
2578
+ const n = Dr(e), r = Un(n, t);
2579
2579
  return [n, r];
2580
2580
  }
2581
2581
  function Tc(e) {
@@ -2589,7 +2589,7 @@ function Tc(e) {
2589
2589
  className: i = "",
2590
2590
  value: c,
2591
2591
  defaultValue: l,
2592
- max: u,
2592
+ max: u = 1e9,
2593
2593
  locale: d,
2594
2594
  onChange: _,
2595
2595
  prefix: h,
@@ -2600,95 +2600,104 @@ function Tc(e) {
2600
2600
  onFocus: x,
2601
2601
  onBlur: v,
2602
2602
  errorMessage: w,
2603
- showAsterisk: H,
2604
- rightIcon: L,
2605
- size: T = "md",
2606
- id: G,
2607
- ...S
2608
- } = e, { fieldErrors: b } = be(), [O, M] = F(!1), [P, j] = F("0"), D = oe(null), B = G || Ie(), I = w || (b == null ? void 0 : b[t]), Z = !!I, E = n || g, te = { md: 20, lg: 20 }[T], J = L ? "right" : "left", ve = J === "left" && g, ce = J === "right" && g;
2609
- function re() {
2603
+ showAsterisk: z,
2604
+ rightIcon: j,
2605
+ size: O = "md",
2606
+ id: H,
2607
+ ...A
2608
+ } = e, { fieldErrors: b } = xe(), [S, M] = F(!1), [I, L] = F("0"), D = ie(null), B = H || Me(), T = w || (b == null ? void 0 : b[t]), Y = !!T, E = n || g, X = { md: 20, lg: 20 }[O], Z = j ? "right" : "left", he = Z === "left" && g, ce = Z === "right" && g;
2609
+ function se() {
2610
2610
  E || !(D != null && D.current) || (M(!0), D.current.focus());
2611
2611
  }
2612
- function ae(fe) {
2613
- M(!0), x && x(fe);
2612
+ function te(ue) {
2613
+ M(!0), x && x(ue);
2614
2614
  }
2615
- function $(fe) {
2616
- M(!1), v && v(fe);
2615
+ function $(ue) {
2616
+ M(!1), v && v(ue);
2617
2617
  }
2618
- const X = (fe) => {
2619
- const [De, He] = Yt(
2620
- fe,
2618
+ const ne = (ue) => {
2619
+ const [Le, Ve] = Yt(
2620
+ ue,
2621
2621
  d
2622
2622
  );
2623
- return !u || De <= u ? (j(He), [De, He]) : Yt(fe, d);
2624
- }, Re = (fe) => {
2625
- fe.preventDefault();
2626
- const [De, He] = X(fe.target.value);
2627
- _ && _(fe, String(De), String(He));
2623
+ return !u || Le <= u ? (L(Ve), [Le, Ve]) : Yt(ue, d);
2624
+ }, Te = (ue) => {
2625
+ ue.preventDefault();
2626
+ const [Le, Ve] = ne(ue.target.value);
2627
+ _ && _(ue, String(Le), String(Ve));
2628
2628
  };
2629
- Ce(() => {
2630
- const fe = c || +l || void 0, [, De] = Yt(fe, d);
2631
- j(De);
2629
+ be(() => {
2630
+ const ue = c || +l || void 0, [, Le] = Yt(ue, d);
2631
+ L(Le);
2632
2632
  }, [d, l, c]);
2633
- const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${T} ${E || C || g ? "opacity" : ""} ${Z ? "errored" : ""} ${O ? "focused" : ""} ${i}`;
2634
- return /* @__PURE__ */ k(ye, { children: [
2635
- o && /* @__PURE__ */ f(pe, { showAsterisk: H, htmlFor: B, children: o }),
2633
+ const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${O} ${E || C || g ? "opacity" : ""} ${Y ? "errored" : ""} ${S ? "focused" : ""} ${i}`;
2634
+ return /* @__PURE__ */ k(ve, { children: [
2635
+ o && /* @__PURE__ */ f(ye, { showAsterisk: z, htmlFor: B, children: o }),
2636
2636
  /* @__PURE__ */ k(
2637
2637
  "section",
2638
2638
  {
2639
2639
  title: r,
2640
2640
  style: a,
2641
- onClick: re,
2641
+ onClick: se,
2642
2642
  className: qt,
2643
2643
  children: [
2644
- /* @__PURE__ */ f(K, { iconSize: te, icon: h, className: "prefix" }),
2644
+ /* @__PURE__ */ f(K, { iconSize: X, icon: h, className: "prefix" }),
2645
2645
  /* @__PURE__ */ f(
2646
2646
  K,
2647
2647
  {
2648
- show: ve,
2649
- iconSize: te,
2648
+ show: he,
2649
+ iconSize: X,
2650
2650
  className: "spinner",
2651
- icon: Oe
2651
+ icon: Ae
2652
2652
  }
2653
2653
  ),
2654
- /* @__PURE__ */ f(K, { show: !g, icon: y, iconSize: te }),
2654
+ /* @__PURE__ */ f(K, { show: !g, icon: y, iconSize: X }),
2655
2655
  /* @__PURE__ */ f(
2656
2656
  "input",
2657
2657
  {
2658
- value: P,
2659
2658
  disabled: E,
2660
2659
  readOnly: C,
2661
2660
  ref: D,
2662
- onFocus: ae,
2661
+ onFocus: te,
2663
2662
  onBlur: $,
2664
- onChange: Re,
2663
+ onChange: Te,
2665
2664
  id: B,
2665
+ placeholder: E ? I : void 0,
2666
+ value: E ? void 0 : I,
2667
+ ...A
2668
+ }
2669
+ ),
2670
+ /* @__PURE__ */ f(
2671
+ "input",
2672
+ {
2673
+ type: "hidden",
2666
2674
  name: t,
2667
- ...S
2675
+ value: Dr(I),
2676
+ readOnly: !0
2668
2677
  }
2669
2678
  ),
2670
- /* @__PURE__ */ f(K, { show: !g, icon: L, iconSize: te }),
2679
+ /* @__PURE__ */ f(K, { show: !g, icon: j, iconSize: X }),
2671
2680
  /* @__PURE__ */ f(
2672
2681
  K,
2673
2682
  {
2674
2683
  show: ce,
2675
- iconSize: te,
2684
+ iconSize: X,
2676
2685
  className: "spinner",
2677
- icon: Oe
2686
+ icon: Ae
2678
2687
  }
2679
2688
  ),
2680
- /* @__PURE__ */ f(K, { iconSize: te, icon: m, className: "suffix" })
2689
+ /* @__PURE__ */ f(K, { iconSize: X, icon: m, className: "suffix" })
2681
2690
  ]
2682
2691
  }
2683
2692
  ),
2684
- I && /* @__PURE__ */ f(xe, { children: I })
2693
+ T && /* @__PURE__ */ f(Ee, { children: T })
2685
2694
  ] });
2686
2695
  }
2687
2696
  function us() {
2688
2697
  return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
2689
2698
  }
2690
- function pt(e) {
2691
- Ce(() => {
2699
+ function yt(e) {
2700
+ be(() => {
2692
2701
  if (e) {
2693
2702
  const t = document.body.style.overflow, n = document.body.style.paddingRight, r = us();
2694
2703
  if (r > 0) {
@@ -2701,12 +2710,12 @@ function pt(e) {
2701
2710
  }
2702
2711
  }, [e]);
2703
2712
  }
2704
- const Dr = Fe({});
2713
+ const $r = Se({});
2705
2714
  function fs(e) {
2706
- return /* @__PURE__ */ f(Dr.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
2715
+ return /* @__PURE__ */ f($r.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
2707
2716
  }
2708
2717
  function ds() {
2709
- return Ae(Dr);
2718
+ return Re($r);
2710
2719
  }
2711
2720
  function Oc(e) {
2712
2721
  const {
@@ -2717,11 +2726,11 @@ function Oc(e) {
2717
2726
  className: s,
2718
2727
  ...o
2719
2728
  } = e;
2720
- pt(t);
2729
+ yt(t);
2721
2730
  const i = r === "left" ? "-100%" : "100%", l = `arkynDrawerContainer ${r} ${t ? "visibleTrue" : "visibleFalse"} ${s}`;
2722
2731
  return /* @__PURE__ */ f(fs, { makeInvisible: n, children: /* @__PURE__ */ f(Pr, { children: t && /* @__PURE__ */ k("aside", { className: l.trim(), ...o, children: [
2723
2732
  /* @__PURE__ */ f(
2724
- ft.div,
2733
+ dt.div,
2725
2734
  {
2726
2735
  className: "arkynDrawerContainerOverlay",
2727
2736
  transition: { duration: 0.15, ease: "easeOut" },
@@ -2732,7 +2741,7 @@ function Oc(e) {
2732
2741
  }
2733
2742
  ),
2734
2743
  /* @__PURE__ */ f(
2735
- ft.div,
2744
+ dt.div,
2736
2745
  {
2737
2746
  className: "arkynDrawerContainerContent",
2738
2747
  transition: { ease: "easeOut", duration: 0.15 },
@@ -2785,7 +2794,7 @@ function _s(e) {
2785
2794
  }, u.click();
2786
2795
  }
2787
2796
  function l() {
2788
- return n.type.startsWith("image/") ? /* @__PURE__ */ f(Ua, {}) : n.type.startsWith("audio/") ? /* @__PURE__ */ f(qa, {}) : n.type.startsWith("application/zip") ? /* @__PURE__ */ f(Wa, {}) : /* @__PURE__ */ f(Ka, {});
2797
+ return n.type.startsWith("image/") ? /* @__PURE__ */ f(qa, {}) : n.type.startsWith("audio/") ? /* @__PURE__ */ f(Wa, {}) : n.type.startsWith("application/zip") ? /* @__PURE__ */ f(Ka, {}) : /* @__PURE__ */ f(Xa, {});
2789
2798
  }
2790
2799
  return /* @__PURE__ */ k("div", { className: "arkynFileUploadHasFileContent", children: [
2791
2800
  /* @__PURE__ */ k("section", { className: "arkynFileUploadFileContainer", children: [
@@ -2809,7 +2818,7 @@ function _s(e) {
2809
2818
  }
2810
2819
  ) }),
2811
2820
  /* @__PURE__ */ f(
2812
- at,
2821
+ st,
2813
2822
  {
2814
2823
  isLoading: r,
2815
2824
  onClick: c,
@@ -2849,7 +2858,7 @@ function ms(e) {
2849
2858
  }
2850
2859
  return /* @__PURE__ */ k("div", { onDrop: i, className: "arkynFileUploadNoFileContent", children: [
2851
2860
  /* @__PURE__ */ f(
2852
- at,
2861
+ st,
2853
2862
  {
2854
2863
  isLoading: n,
2855
2864
  onClick: c,
@@ -2878,33 +2887,33 @@ function Ac(e) {
2878
2887
  dropFileText: d = "Ou arraste e solte o arquivo aqui",
2879
2888
  onChange: _,
2880
2889
  disabled: h = !1
2881
- } = e, { fieldErrors: m } = be(), g = m == null ? void 0 : m[t], [y, C] = F(""), [x, v] = F(""), [w, H] = F(null), [L, T] = F(!1);
2882
- async function G(j) {
2890
+ } = e, { fieldErrors: m } = xe(), g = m == null ? void 0 : m[t], [y, C] = F(""), [x, v] = F(""), [w, z] = F(null), [j, O] = F(!1);
2891
+ async function H(L) {
2883
2892
  if (h) return;
2884
- T(!0), H(j), v("");
2893
+ O(!0), z(L), v("");
2885
2894
  const D = new FormData();
2886
- D.append(s, j), await fetch(a, { method: o, body: D }).then(async (B) => await B.json()).then((B) => {
2895
+ D.append(s, L), await fetch(a, { method: o, body: D }).then(async (B) => await B.json()).then((B) => {
2887
2896
  B != null && B.error ? v(B.error) : C(B == null ? void 0 : B[c]), _ && _(B == null ? void 0 : B[c]);
2888
2897
  }).catch((B) => {
2889
2898
  console.error(B), v("Erro ao enviar o arquivo");
2890
- }).finally(() => T(!1));
2899
+ }).finally(() => O(!1));
2891
2900
  }
2892
- function S(j) {
2893
- h || G(j);
2901
+ function A(L) {
2902
+ h || H(L);
2894
2903
  }
2895
2904
  const b = g || x;
2896
- return /* @__PURE__ */ k(ye, { children: [
2897
- n && /* @__PURE__ */ f(pe, { showAsterisk: r, children: n }),
2905
+ return /* @__PURE__ */ k(ve, { children: [
2906
+ n && /* @__PURE__ */ f(ye, { showAsterisk: r, children: n }),
2898
2907
  /* @__PURE__ */ k("div", { className: `arkynFileUpload ${b ? "hasError" : "noHasError"} ${w ? "hasFile" : "noHasFile"}`, children: [
2899
2908
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: y || "" }),
2900
2909
  !w && /* @__PURE__ */ f(
2901
2910
  ms,
2902
2911
  {
2903
2912
  disabled: h,
2904
- isLoading: L,
2913
+ isLoading: j,
2905
2914
  acceptFile: i,
2906
2915
  dropFileText: d,
2907
- handleSelectFile: S,
2916
+ handleSelectFile: A,
2908
2917
  selectFileButtonText: u
2909
2918
  }
2910
2919
  ),
@@ -2912,16 +2921,16 @@ function Ac(e) {
2912
2921
  _s,
2913
2922
  {
2914
2923
  disabled: h,
2915
- isLoading: L,
2924
+ isLoading: j,
2916
2925
  acceptFile: i,
2917
2926
  file: w,
2918
- handleSelectFile: S,
2927
+ handleSelectFile: A,
2919
2928
  changeFileButtonText: l,
2920
- reSendFile: b && w ? () => G(w) : void 0
2929
+ reSendFile: b && w ? () => H(w) : void 0
2921
2930
  }
2922
2931
  )
2923
2932
  ] }),
2924
- b && /* @__PURE__ */ f(xe, { children: b })
2933
+ b && /* @__PURE__ */ f(Ee, { children: b })
2925
2934
  ] });
2926
2935
  }
2927
2936
  function gs(e) {
@@ -2964,7 +2973,7 @@ function gs(e) {
2964
2973
  }
2965
2974
  ) }),
2966
2975
  /* @__PURE__ */ f(
2967
- at,
2976
+ st,
2968
2977
  {
2969
2978
  isLoading: r,
2970
2979
  onClick: c,
@@ -3005,7 +3014,7 @@ function hs(e) {
3005
3014
  }
3006
3015
  return /* @__PURE__ */ k("div", { onDrop: i, className: "arkynImageUploadNoFileContent", children: [
3007
3016
  /* @__PURE__ */ f(
3008
- at,
3017
+ st,
3009
3018
  {
3010
3019
  isLoading: n,
3011
3020
  onClick: c,
@@ -3035,50 +3044,50 @@ function Ic(e) {
3035
3044
  dropImageText: _ = "Ou arraste e solte a imagem aqui",
3036
3045
  onChange: h,
3037
3046
  disabled: m = !1
3038
- } = e, { fieldErrors: g } = be(), y = g == null ? void 0 : g[t], [C, x] = F(n), [v, w] = F(""), [H, L] = F(null), [T, G] = F(n), [S, b] = F(!1);
3039
- async function O(I) {
3047
+ } = e, { fieldErrors: g } = xe(), y = g == null ? void 0 : g[t], [C, x] = F(n), [v, w] = F(""), [z, j] = F(null), [O, H] = F(n), [A, b] = F(!1);
3048
+ async function S(T) {
3040
3049
  if (m) return;
3041
- b(!0), L(I), w("");
3042
- const Z = new FormData();
3043
- Z.append(o, I), await fetch(s, { method: i, body: Z }).then(async (E) => await E.json()).then((E) => {
3050
+ b(!0), j(T), w("");
3051
+ const Y = new FormData();
3052
+ Y.append(o, T), await fetch(s, { method: i, body: Y }).then(async (E) => await E.json()).then((E) => {
3044
3053
  E != null && E.error ? w(E.error) : x(E == null ? void 0 : E[l]), h && h(E == null ? void 0 : E[l]);
3045
3054
  }).catch((E) => {
3046
3055
  console.error(E), w("Erro ao enviar imagem");
3047
3056
  }).finally(() => b(!1));
3048
3057
  }
3049
- function M(I) {
3050
- m || (G(URL.createObjectURL(I)), O(I));
3058
+ function M(T) {
3059
+ m || (H(URL.createObjectURL(T)), S(T));
3051
3060
  }
3052
- const P = y || v;
3053
- return /* @__PURE__ */ k(ye, { children: [
3054
- r && /* @__PURE__ */ f(pe, { showAsterisk: a, children: r }),
3055
- /* @__PURE__ */ k("div", { className: `arkynImageUpload ${P ? "hasError" : "noHasError"} ${T ? "hasImage" : "noHasImage"}`, children: [
3061
+ const I = y || v;
3062
+ return /* @__PURE__ */ k(ve, { children: [
3063
+ r && /* @__PURE__ */ f(ye, { showAsterisk: a, children: r }),
3064
+ /* @__PURE__ */ k("div", { className: `arkynImageUpload ${I ? "hasError" : "noHasError"} ${O ? "hasImage" : "noHasImage"}`, children: [
3056
3065
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: C || "" }),
3057
- !T && /* @__PURE__ */ f(
3066
+ !O && /* @__PURE__ */ f(
3058
3067
  hs,
3059
3068
  {
3060
3069
  disabled: m,
3061
- isLoading: S,
3070
+ isLoading: A,
3062
3071
  acceptImage: c,
3063
3072
  dropImageText: _,
3064
3073
  handleSelectFile: M,
3065
3074
  selectImageButtonText: d
3066
3075
  }
3067
3076
  ),
3068
- T && /* @__PURE__ */ f(
3077
+ O && /* @__PURE__ */ f(
3069
3078
  gs,
3070
3079
  {
3071
3080
  disabled: m,
3072
- isLoading: S,
3081
+ isLoading: A,
3073
3082
  acceptImage: c,
3074
- filePath: T,
3083
+ filePath: O,
3075
3084
  handleSelectFile: M,
3076
3085
  changeImageButtonText: u,
3077
- reSendImage: P && H ? () => O(H) : void 0
3086
+ reSendImage: I && z ? () => S(z) : void 0
3078
3087
  }
3079
3088
  )
3080
3089
  ] }),
3081
- P && /* @__PURE__ */ f(xe, { children: P })
3090
+ I && /* @__PURE__ */ f(Ee, { children: I })
3082
3091
  ] });
3083
3092
  }
3084
3093
  function ps(e) {
@@ -3103,16 +3112,18 @@ function ps(e) {
3103
3112
  type: x = "text",
3104
3113
  size: v = "md",
3105
3114
  id: w,
3106
- ...H
3107
- } = e, { fieldErrors: L } = be(), [T, G] = F(!1), S = oe(null), b = w || Ie(), O = g || (L == null ? void 0 : L[t]), M = !!O, P = n || u, D = { md: 20, lg: 20 }[v], B = C ? "right" : "left", I = B === "left" && u, Z = B === "right" && u;
3108
- function E() {
3109
- P || !(S != null && S.current) || (G(!0), S.current.focus());
3115
+ value: z,
3116
+ placeholder: j,
3117
+ ...O
3118
+ } = e, { fieldErrors: H } = xe(), [A, b] = F(!1), S = ie(null), M = w || Me(), I = g || (H == null ? void 0 : H[t]), L = !!I, D = n || u, T = { md: 20, lg: 20 }[v], Y = C ? "right" : "left", E = Y === "left" && u, _e = Y === "right" && u;
3119
+ function X() {
3120
+ D || !(S != null && S.current) || (b(!0), S.current.focus());
3110
3121
  }
3111
- function ie(X) {
3112
- G(!0), h && h(X);
3122
+ function Z(ke) {
3123
+ b(!0), h && h(ke);
3113
3124
  }
3114
- function te(X) {
3115
- G(!1), m && m(X);
3125
+ function he(ke) {
3126
+ b(!1), m && m(ke);
3116
3127
  }
3117
3128
  if (x === "hidden")
3118
3129
  return /* @__PURE__ */ f(
@@ -3122,60 +3133,62 @@ function ps(e) {
3122
3133
  readOnly: !0,
3123
3134
  type: "text",
3124
3135
  ref: S,
3125
- ...H
3136
+ ...O
3126
3137
  }
3127
3138
  );
3128
- const $ = `arkynInput ${c ? "hasPrefix" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${P || _ || u ? "opacity" : ""} ${M ? "errored" : ""} ${T ? "focused" : ""} ${i}`;
3129
- return /* @__PURE__ */ k(ye, { children: [
3130
- o && /* @__PURE__ */ f(pe, { showAsterisk: y, htmlFor: b, children: o }),
3139
+ const De = `arkynInput ${c ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${D || _ || u ? "opacity" : ""} ${L ? "errored" : ""} ${A ? "focused" : ""} ${i}`;
3140
+ return /* @__PURE__ */ k(ve, { children: [
3141
+ o && /* @__PURE__ */ f(ye, { showAsterisk: y, htmlFor: M, children: o }),
3131
3142
  /* @__PURE__ */ k(
3132
3143
  "section",
3133
3144
  {
3134
3145
  title: r,
3135
3146
  style: a,
3136
- onClick: E,
3137
- className: $,
3147
+ onClick: X,
3148
+ className: De,
3138
3149
  children: [
3139
- /* @__PURE__ */ f(K, { iconSize: D, icon: c, className: "prefix" }),
3150
+ /* @__PURE__ */ f(K, { iconSize: T, icon: c, className: "prefix" }),
3140
3151
  /* @__PURE__ */ f(
3141
3152
  K,
3142
3153
  {
3143
- show: I,
3144
- iconSize: D,
3154
+ show: E,
3155
+ iconSize: T,
3145
3156
  className: "spinner",
3146
- icon: Oe
3157
+ icon: Ae
3147
3158
  }
3148
3159
  ),
3149
- /* @__PURE__ */ f(K, { show: !u, icon: d, iconSize: D }),
3160
+ /* @__PURE__ */ f(K, { show: !u, icon: d, iconSize: T }),
3150
3161
  /* @__PURE__ */ f(
3151
3162
  "input",
3152
3163
  {
3153
- disabled: P,
3164
+ disabled: D,
3154
3165
  readOnly: _,
3155
3166
  ref: S,
3156
- onFocus: ie,
3157
- onBlur: te,
3167
+ onFocus: Z,
3168
+ onBlur: he,
3158
3169
  type: x,
3159
- id: b,
3170
+ id: M,
3160
3171
  name: t,
3161
- ...H
3172
+ placeholder: D && z || j,
3173
+ value: D ? void 0 : z,
3174
+ ...O
3162
3175
  }
3163
3176
  ),
3164
- /* @__PURE__ */ f(K, { show: !u, icon: C, iconSize: D }),
3177
+ /* @__PURE__ */ f(K, { show: !u, icon: C, iconSize: T }),
3165
3178
  /* @__PURE__ */ f(
3166
3179
  K,
3167
3180
  {
3168
- show: Z,
3169
- iconSize: D,
3181
+ show: _e,
3182
+ iconSize: T,
3170
3183
  className: "spinner",
3171
- icon: Oe
3184
+ icon: Ae
3172
3185
  }
3173
3186
  ),
3174
- /* @__PURE__ */ f(K, { iconSize: D, icon: l, className: "suffix" })
3187
+ /* @__PURE__ */ f(K, { iconSize: T, icon: l, className: "suffix" })
3175
3188
  ]
3176
3189
  }
3177
3190
  ),
3178
- O && /* @__PURE__ */ f(xe, { children: O })
3191
+ I && /* @__PURE__ */ f(Ee, { children: I })
3179
3192
  ] });
3180
3193
  }
3181
3194
  const ys = gn((e, t) => /* @__PURE__ */ f("input", { ref: t, ...e }));
@@ -3201,43 +3214,45 @@ function Rc(e) {
3201
3214
  onBlur: x,
3202
3215
  errorMessage: v,
3203
3216
  defaultValue: w,
3204
- showAsterisk: H,
3205
- rightIcon: L,
3206
- size: T = "md",
3207
- id: G,
3217
+ showAsterisk: z,
3218
+ rightIcon: j,
3219
+ size: O = "md",
3220
+ id: H,
3221
+ value: A,
3222
+ placeholder: b,
3208
3223
  ...S
3209
- } = e, { fieldErrors: b } = be(), [O, M] = F(!1), P = oe(null), j = G || Ie(), D = v || (b == null ? void 0 : b[t]), B = !!D, I = n || m, E = { md: 20, lg: 20 }[T], ie = L ? "right" : "left", te = ie === "left" && m, J = ie === "right" && m;
3210
- function ve() {
3211
- I || !(P != null && P.current) || (M(!0), P.current.focus());
3224
+ } = e, { fieldErrors: M } = xe(), [I, L] = F(!1), D = ie(null), B = H || Me(), T = v || (M == null ? void 0 : M[t]), Y = !!T, E = n || m, X = { md: 20, lg: 20 }[O], Z = j ? "right" : "left", he = Z === "left" && m, ce = Z === "right" && m;
3225
+ function se() {
3226
+ E || !(D != null && D.current) || (L(!0), D.current.focus());
3212
3227
  }
3213
- function ce(z) {
3214
- M(!0), C && C(z);
3228
+ function te($e) {
3229
+ L(!0), C && C($e);
3215
3230
  }
3216
- function re(z) {
3217
- M(!1), x && x(z);
3231
+ function $($e) {
3232
+ L(!1), x && x($e);
3218
3233
  }
3219
- const Me = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${T} ${I || y || m ? "opacity" : ""} ${B ? "errored" : ""} ${O ? "focused" : ""} ${d}`;
3220
- return /* @__PURE__ */ k(ye, { children: [
3221
- u && /* @__PURE__ */ f(pe, { showAsterisk: H, htmlFor: j, children: u }),
3234
+ const re = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${O} ${E || y || m ? "opacity" : ""} ${Y ? "errored" : ""} ${I ? "focused" : ""} ${d}`;
3235
+ return /* @__PURE__ */ k(ve, { children: [
3236
+ u && /* @__PURE__ */ f(ye, { showAsterisk: z, htmlFor: B, children: u }),
3222
3237
  /* @__PURE__ */ k(
3223
3238
  "section",
3224
3239
  {
3225
3240
  title: r,
3226
3241
  style: a,
3227
- onClick: ve,
3228
- className: Me,
3242
+ onClick: se,
3243
+ className: re,
3229
3244
  children: [
3230
- /* @__PURE__ */ f(K, { iconSize: E, icon: _, className: "prefix" }),
3245
+ /* @__PURE__ */ f(K, { iconSize: X, icon: _, className: "prefix" }),
3231
3246
  /* @__PURE__ */ f(
3232
3247
  K,
3233
3248
  {
3234
- show: te,
3235
- iconSize: E,
3249
+ show: he,
3250
+ iconSize: X,
3236
3251
  className: "spinner",
3237
- icon: Oe
3252
+ icon: Ae
3238
3253
  }
3239
3254
  ),
3240
- /* @__PURE__ */ f(K, { show: !m, icon: g, iconSize: E }),
3255
+ /* @__PURE__ */ f(K, { show: !m, icon: g, iconSize: X }),
3241
3256
  /* @__PURE__ */ f(
3242
3257
  Ar,
3243
3258
  {
@@ -3246,39 +3261,41 @@ function Rc(e) {
3246
3261
  replacement: l,
3247
3262
  separate: o,
3248
3263
  showMask: c,
3249
- ref: P,
3250
- onFocus: ce,
3251
- onBlur: re,
3252
- disabled: I,
3264
+ ref: D,
3265
+ onFocus: te,
3266
+ onBlur: $,
3267
+ disabled: E,
3253
3268
  readOnly: y,
3254
- id: j,
3269
+ id: B,
3255
3270
  name: t,
3271
+ placeholder: E && A || b,
3272
+ value: E ? void 0 : A,
3256
3273
  ...S
3257
3274
  }
3258
3275
  ),
3259
- /* @__PURE__ */ f(K, { show: !m, icon: L, iconSize: E }),
3276
+ /* @__PURE__ */ f(K, { show: !m, icon: j, iconSize: X }),
3260
3277
  /* @__PURE__ */ f(
3261
3278
  K,
3262
3279
  {
3263
- show: J,
3264
- iconSize: E,
3280
+ show: ce,
3281
+ iconSize: X,
3265
3282
  className: "spinner",
3266
- icon: Oe
3283
+ icon: Ae
3267
3284
  }
3268
3285
  ),
3269
- /* @__PURE__ */ f(K, { iconSize: E, icon: h, className: "suffix" })
3286
+ /* @__PURE__ */ f(K, { iconSize: X, icon: h, className: "suffix" })
3270
3287
  ]
3271
3288
  }
3272
3289
  ),
3273
- D && /* @__PURE__ */ f(xe, { children: D })
3290
+ T && /* @__PURE__ */ f(Ee, { children: T })
3274
3291
  ] });
3275
3292
  }
3276
- const $r = Fe({});
3293
+ const Lr = Se({});
3277
3294
  function vs(e) {
3278
- return /* @__PURE__ */ f($r.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
3295
+ return /* @__PURE__ */ f(Lr.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
3279
3296
  }
3280
3297
  function ks() {
3281
- return Ae($r);
3298
+ return Re(Lr);
3282
3299
  }
3283
3300
  function Mc(e) {
3284
3301
  const {
@@ -3288,11 +3305,11 @@ function Mc(e) {
3288
3305
  className: a = "",
3289
3306
  ...s
3290
3307
  } = e;
3291
- pt(t);
3308
+ yt(t);
3292
3309
  const i = `arkynModalContainer ${t ? "visibleTrue" : "visibleFalse"} ${a}`;
3293
3310
  return /* @__PURE__ */ f(vs, { makeInvisible: n, children: /* @__PURE__ */ f(Pr, { children: t && /* @__PURE__ */ k("aside", { className: i.trim(), ...s, children: [
3294
3311
  /* @__PURE__ */ f(
3295
- ft.div,
3312
+ dt.div,
3296
3313
  {
3297
3314
  className: "arkynModalContainerOverlay",
3298
3315
  transition: { duration: 0.15, ease: "easeOut" },
@@ -3303,7 +3320,7 @@ function Mc(e) {
3303
3320
  }
3304
3321
  ),
3305
3322
  /* @__PURE__ */ f(
3306
- ft.div,
3323
+ dt.div,
3307
3324
  {
3308
3325
  className: "arkynModalContainerContent",
3309
3326
  transition: { duration: 0.15, ease: "easeOut" },
@@ -3342,7 +3359,7 @@ function $c(e) {
3342
3359
  }
3343
3360
  function Cs(e) {
3344
3361
  const { iconSize: t, isLoading: n, disabled: r, readOnly: a, isFocused: s } = e, c = `arkynMultiSelectChevron ${r || a ? "notAnimate" : ""} ${s ? "focused" : ""}`;
3345
- return n ? /* @__PURE__ */ f(ke, {}) : /* @__PURE__ */ f(Or, { className: c, size: t, strokeWidth: 2.5 });
3362
+ return n ? /* @__PURE__ */ f(Ce, {}) : /* @__PURE__ */ f(Or, { className: c, size: t, strokeWidth: 2.5 });
3346
3363
  }
3347
3364
  function bs(e) {
3348
3365
  const {
@@ -3399,8 +3416,8 @@ function ws(e) {
3399
3416
  ] });
3400
3417
  }
3401
3418
  function Ns(e) {
3402
- const { children: t, isFocused: n, isSearchable: r, search: a, onSearch: s } = e, o = oe(null), [i, c] = F("bottom");
3403
- pt(n), Ce(() => {
3419
+ const { children: t, isFocused: n, isSearchable: r, search: a, onSearch: s } = e, o = ie(null), [i, c] = F("bottom");
3420
+ yt(n), be(() => {
3404
3421
  if (!n) return;
3405
3422
  (() => {
3406
3423
  if (!o.current) return;
@@ -3425,7 +3442,7 @@ function Ns(e) {
3425
3442
  type: "search",
3426
3443
  name: "search-select",
3427
3444
  variant: "underline",
3428
- leftIcon: Xa,
3445
+ leftIcon: Ya,
3429
3446
  value: a,
3430
3447
  onChange: l
3431
3448
  }
@@ -3433,22 +3450,22 @@ function Ns(e) {
3433
3450
  t
3434
3451
  ]
3435
3452
  }
3436
- ) : /* @__PURE__ */ f(ke, {});
3453
+ ) : /* @__PURE__ */ f(Ce, {});
3437
3454
  }
3438
3455
  function Fs(e) {
3439
3456
  const { isFocused: t, handleBlur: n } = e;
3440
- return t ? /* @__PURE__ */ f("aside", { className: "arkynMultiSelectOverlay", onClick: n }) : /* @__PURE__ */ f(ke, {});
3457
+ return t ? /* @__PURE__ */ f("aside", { className: "arkynMultiSelectOverlay", onClick: n }) : /* @__PURE__ */ f(Ce, {});
3441
3458
  }
3442
3459
  function Ss(e) {
3443
3460
  const { iconSize: t, isLoading: n } = e;
3444
3461
  return n ? /* @__PURE__ */ f(
3445
- Oe,
3462
+ Ae,
3446
3463
  {
3447
3464
  className: "arkynMultiSelectSpinner",
3448
3465
  size: t,
3449
3466
  strokeWidth: 2.5
3450
3467
  }
3451
- ) : /* @__PURE__ */ f(ke, {});
3468
+ ) : /* @__PURE__ */ f(Ce, {});
3452
3469
  }
3453
3470
  function Lc(e) {
3454
3471
  const {
@@ -3472,93 +3489,93 @@ function Lc(e) {
3472
3489
  onBlur: x,
3473
3490
  notFoundText: v = "Sem opções disponíveis",
3474
3491
  onFocus: w,
3475
- disabled: H = !1,
3476
- prefix: L,
3477
- size: T = "md",
3478
- value: G,
3479
- variant: S = "solid"
3480
- } = e, { fieldErrors: b } = be(), O = oe(null), M = d || Ie(), P = i || (b == null ? void 0 : b[t]), j = !!P, D = H || c || l, I = { md: 20, lg: 20 }[T], [Z, E] = F(""), [ie, te] = F(!1), [J, ve] = F(o), ce = G || J;
3481
- function re(z) {
3482
- return ce.includes(z);
3483
- }
3484
- function ae(z) {
3485
- const le = n.find((vt) => vt.value === z);
3486
- return (le == null ? void 0 : le.label) || "";
3492
+ disabled: z = !1,
3493
+ prefix: j,
3494
+ size: O = "md",
3495
+ value: H,
3496
+ variant: A = "solid"
3497
+ } = e, { fieldErrors: b } = xe(), S = ie(null), M = d || Me(), I = i || (b == null ? void 0 : b[t]), L = !!I, D = z || c || l, T = { md: 20, lg: 20 }[O], [Y, E] = F(""), [_e, X] = F(!1), [Z, he] = F(o), ce = H || Z;
3498
+ function se(G) {
3499
+ return ce.includes(G);
3500
+ }
3501
+ function te(G) {
3502
+ const re = n.find(($e) => $e.value === G);
3503
+ return (re == null ? void 0 : re.label) || "";
3487
3504
  }
3488
3505
  function $() {
3489
- D || !(O != null && O.current) || ie || (te(!0), O.current.focus(), w && w());
3506
+ D || !(S != null && S.current) || _e || (X(!0), S.current.focus(), w && w());
3490
3507
  }
3491
- function X() {
3492
- te(!1), x && O.current && O.current.blur();
3508
+ function ne() {
3509
+ X(!1), x && S.current && S.current.blur();
3493
3510
  }
3494
- function Re(z) {
3495
- E(z), y && y(z);
3511
+ function Te(G) {
3512
+ E(G), y && y(G);
3496
3513
  }
3497
- function Ze(z) {
3498
- re(z) ? (ve(J.filter((le) => le !== z)), C && C(J.filter((le) => le !== z))) : (ve([...J, z]), C && C([...J, z])), s && X();
3514
+ function De(G) {
3515
+ se(G) ? (he(Z.filter((re) => re !== G)), C && C(Z.filter((re) => re !== G))) : (he([...Z, G]), C && C([...Z, G])), s && ne();
3499
3516
  }
3500
- const Me = n.filter((z) => !!(e.onSearch || !e.isSearchable || z.label.toLowerCase().includes(Z.toLowerCase())));
3501
- return /* @__PURE__ */ k(ye, { children: [
3502
- _ && /* @__PURE__ */ f(pe, { showAsterisk: m, children: _ }),
3517
+ const ke = n.filter((G) => !!(e.onSearch || !e.isSearchable || G.label.toLowerCase().includes(Y.toLowerCase())));
3518
+ return /* @__PURE__ */ k(ve, { children: [
3519
+ _ && /* @__PURE__ */ f(ye, { showAsterisk: m, children: _ }),
3503
3520
  /* @__PURE__ */ k(
3504
3521
  bs,
3505
3522
  {
3506
3523
  handleContainerFocus: $,
3507
3524
  disabled: D,
3508
- isError: j,
3509
- isFocused: ie,
3525
+ isError: L,
3526
+ isFocused: _e,
3510
3527
  isLoading: c,
3511
3528
  readOnly: l,
3512
- size: T,
3513
- variant: S,
3529
+ size: O,
3530
+ variant: A,
3514
3531
  className: r,
3515
- prefixExists: !!L,
3532
+ prefixExists: !!j,
3516
3533
  id: M,
3517
3534
  children: [
3518
3535
  /* @__PURE__ */ f(
3519
3536
  "input",
3520
3537
  {
3521
- ref: O,
3538
+ ref: S,
3522
3539
  name: t,
3523
3540
  value: JSON.stringify(ce),
3524
3541
  type: "hidden"
3525
3542
  }
3526
3543
  ),
3527
- /* @__PURE__ */ f(K, { iconSize: I, icon: L, className: "prefix" }),
3528
- g && /* @__PURE__ */ f(g, { size: I, strokeWidth: 2.5 }),
3529
- /* @__PURE__ */ k(xs, { size: T, children: [
3530
- ce.map((z) => /* @__PURE__ */ f(
3544
+ /* @__PURE__ */ f(K, { iconSize: T, icon: j, className: "prefix" }),
3545
+ g && /* @__PURE__ */ f(g, { size: T, strokeWidth: 2.5 }),
3546
+ /* @__PURE__ */ k(xs, { size: O, children: [
3547
+ ce.map((G) => /* @__PURE__ */ f(
3531
3548
  Es,
3532
3549
  {
3533
- label: ae(z),
3534
- value: z,
3535
- handleChangeValue: Ze,
3550
+ label: te(G),
3551
+ value: G,
3552
+ handleChangeValue: De,
3536
3553
  disabled: D
3537
3554
  },
3538
- z
3555
+ G
3539
3556
  )),
3540
3557
  ce.length <= 0 && /* @__PURE__ */ f("p", { children: a })
3541
3558
  ] }),
3542
3559
  /* @__PURE__ */ k(
3543
3560
  Ns,
3544
3561
  {
3545
- isFocused: ie,
3562
+ isFocused: _e,
3546
3563
  isSearchable: u,
3547
- search: Z,
3548
- onSearch: Re,
3564
+ search: Y,
3565
+ onSearch: Te,
3549
3566
  children: [
3550
- Me.map(({ label: z, value: le }) => /* @__PURE__ */ f(
3567
+ ke.map(({ label: G, value: re }) => /* @__PURE__ */ f(
3551
3568
  ws,
3552
3569
  {
3553
- label: z,
3554
- value: le,
3555
- size: T,
3556
- handleChangeValue: Ze,
3557
- optionHasSelected: re
3570
+ label: G,
3571
+ value: re,
3572
+ size: O,
3573
+ handleChangeValue: De,
3574
+ optionHasSelected: se
3558
3575
  },
3559
- le
3576
+ re
3560
3577
  )),
3561
- Me.length <= 0 && /* @__PURE__ */ f("p", { children: v })
3578
+ ke.length <= 0 && /* @__PURE__ */ f("p", { children: v })
3562
3579
  ]
3563
3580
  }
3564
3581
  ),
@@ -3566,18 +3583,18 @@ function Lc(e) {
3566
3583
  Cs,
3567
3584
  {
3568
3585
  disabled: D,
3569
- isFocused: ie,
3586
+ isFocused: _e,
3570
3587
  readOnly: l,
3571
- iconSize: I,
3588
+ iconSize: T,
3572
3589
  isLoading: c
3573
3590
  }
3574
3591
  ),
3575
- /* @__PURE__ */ f(Ss, { iconSize: I, isLoading: c }),
3576
- /* @__PURE__ */ f(Fs, { handleBlur: X, isFocused: ie })
3592
+ /* @__PURE__ */ f(Ss, { iconSize: T, isLoading: c }),
3593
+ /* @__PURE__ */ f(Fs, { handleBlur: ne, isFocused: _e })
3577
3594
  ]
3578
3595
  }
3579
3596
  ),
3580
- P && /* @__PURE__ */ f(xe, { children: P })
3597
+ I && /* @__PURE__ */ f(Ee, { children: I })
3581
3598
  ] });
3582
3599
  }
3583
3600
  function bn(e) {
@@ -3587,7 +3604,7 @@ const xn = {
3587
3604
  EIGHT: "(99) 9999-9999",
3588
3605
  NINE: "(99) 99999-9999"
3589
3606
  };
3590
- function Lr(e, t) {
3607
+ function jr(e, t) {
3591
3608
  let n = "", r = 0;
3592
3609
  for (let a = 0; a < t.length; a++)
3593
3610
  if (t[a] === "9")
@@ -3601,15 +3618,15 @@ function Lr(e, t) {
3601
3618
  break;
3602
3619
  return n;
3603
3620
  }
3604
- function jr(e) {
3621
+ function Br(e) {
3605
3622
  return e.length > 10 ? "NINE" : "EIGHT";
3606
3623
  }
3607
- const Br = bn(xn.NINE).length;
3624
+ const zr = bn(xn.NINE).length;
3608
3625
  function qn(e, t) {
3609
3626
  if (t.code === "+55") {
3610
3627
  let a = bn(e);
3611
- const s = jr(a);
3612
- return a.length > Br ? void 0 : (a = Lr(a, xn[s]), a);
3628
+ const s = Br(a);
3629
+ return a.length > zr ? void 0 : (a = jr(a, xn[s]), a);
3613
3630
  }
3614
3631
  let r = t.mask;
3615
3632
  if (t.prefix) {
@@ -3621,13 +3638,13 @@ function qn(e, t) {
3621
3638
  return r;
3622
3639
  }
3623
3640
  function Ts(e, t) {
3624
- const n = nt.find(
3641
+ const n = rt.find(
3625
3642
  (r) => r.code === e && r.prefix === t
3626
3643
  );
3627
3644
  return n || null;
3628
3645
  }
3629
3646
  function Os(e) {
3630
- const t = nt.find((n) => n.code === e);
3647
+ const t = rt.find((n) => n.code === e);
3631
3648
  return t || null;
3632
3649
  }
3633
3650
  function Ps(e) {
@@ -3663,7 +3680,7 @@ function As(e) {
3663
3680
  }
3664
3681
  function Is(e) {
3665
3682
  const { isOpen: t, onClick: n } = e;
3666
- return t ? /* @__PURE__ */ f("aside", { className: "arkynPhoneInputCountriesOverlay", onClick: n }) : /* @__PURE__ */ f(ke, {});
3683
+ return t ? /* @__PURE__ */ f("aside", { className: "arkynPhoneInputCountriesOverlay", onClick: n }) : /* @__PURE__ */ f(Ce, {});
3667
3684
  }
3668
3685
  function Rs(e) {
3669
3686
  const { country: t, isActive: n, handleChangeValue: r, size: a } = e, o = `arkynPhoneInputCountryOption ${a} ${n ? "active" : ""}`;
@@ -3676,11 +3693,11 @@ function Rs(e) {
3676
3693
  ] });
3677
3694
  }
3678
3695
  function Ms(e) {
3679
- const { children: t, isOpen: n, onSearch: r, search: a, placeholder: s } = e, o = oe(null), [i, c] = F("bottom");
3696
+ const { children: t, isOpen: n, onSearch: r, search: a, placeholder: s } = e, o = ie(null), [i, c] = F("bottom");
3680
3697
  function l(u) {
3681
3698
  r(u.target.value);
3682
3699
  }
3683
- return pt(n), Ce(() => {
3700
+ return yt(n), be(() => {
3684
3701
  if (!n) return;
3685
3702
  (() => {
3686
3703
  if (!o.current) return;
@@ -3710,7 +3727,7 @@ function Ms(e) {
3710
3727
  t
3711
3728
  ]
3712
3729
  }
3713
- ) : /* @__PURE__ */ f(ke, {});
3730
+ ) : /* @__PURE__ */ f(Ce, {});
3714
3731
  }
3715
3732
  function Ds(e) {
3716
3733
  const { currentCountry: t, onClick: n } = e;
@@ -3739,14 +3756,14 @@ const $s = gn((e, t) => /* @__PURE__ */ f("input", { ref: t, ...e })), Ls = gn(
3739
3756
  currentCountry: c,
3740
3757
  disabled: l
3741
3758
  } = e, [u, d] = F(!1);
3742
- Ce(() => {
3759
+ be(() => {
3743
3760
  u ? o(c.mask) : d(!0);
3744
3761
  }, [c]);
3745
3762
  const _ = `phoneInputMask ${s}`;
3746
3763
  function h(m) {
3747
3764
  let g = bn(m.target.value);
3748
- const y = jr(g);
3749
- g.length > Br || (g = Lr(g, xn[y]), m.target.value = g, o(g));
3765
+ const y = Br(g);
3766
+ g.length > zr || (g = jr(g, xn[y]), m.target.value = g, o(g));
3750
3767
  }
3751
3768
  return c.code === "+55" ? /* @__PURE__ */ f(
3752
3769
  "input",
@@ -3796,43 +3813,43 @@ function jc(e) {
3796
3813
  searchCountryPlaceholder: m = "Pesquisar país",
3797
3814
  notFoundCountryText: g = "Nenhum país encontrado",
3798
3815
  id: y
3799
- } = e, C = Ps(l), [x, v] = F(!1), [w, H] = F(""), [L, T] = F(!1), [G, S] = F(C.formattedNumber || ""), [b, O] = F(() => {
3816
+ } = e, C = Ps(l), [x, v] = F(!1), [w, z] = F(""), [j, O] = F(!1), [H, A] = F(C.formattedNumber || ""), [b, S] = F(() => {
3800
3817
  if (C.country) return C.country;
3801
- const $ = nt.find((X) => X.iso === t);
3802
- return $ || nt[30];
3803
- }), { fieldErrors: M } = be(), P = oe(null), j = y || Ie(), D = s || (M == null ? void 0 : M[_]), B = !!D, I = a || o, Z = oe(null);
3818
+ const $ = rt.find((ne) => ne.iso === t);
3819
+ return $ || rt[30];
3820
+ }), { fieldErrors: M } = xe(), I = ie(null), L = y || Me(), D = s || (M == null ? void 0 : M[_]), B = !!D, T = a || o, Y = ie(null);
3804
3821
  function E() {
3805
- I || x || L || (v(!0), Z.current && Z.current.focus());
3822
+ T || x || j || (v(!0), Y.current && Y.current.focus());
3806
3823
  }
3807
- function ie() {
3808
- T(!0), v(!0);
3824
+ function _e() {
3825
+ O(!0), v(!0);
3809
3826
  }
3810
- function te() {
3811
- T(!1), v(!1);
3827
+ function X() {
3828
+ O(!1), v(!1);
3812
3829
  }
3813
- function J() {
3830
+ function Z() {
3814
3831
  v(!0);
3815
3832
  }
3816
- function ve() {
3833
+ function he() {
3817
3834
  v(!1);
3818
3835
  }
3819
3836
  function ce($) {
3820
3837
  return $.name.toLowerCase().includes(w.toLowerCase());
3821
3838
  }
3822
- function re($) {
3839
+ function se($) {
3823
3840
  return b.prefix ? $.replace(b.prefix, "").replaceAll(" ", "").replaceAll("-", "").replaceAll("(", "").replaceAll(")", "").trim() : $.replaceAll(" ", "").replaceAll("-", "").replaceAll("(", "").replaceAll(")", "").trim();
3824
3841
  }
3825
- function ae($) {
3826
- let X = b.code;
3827
- return b.prefix && (X += `-${b.prefix}`), X += " ", X += re($ || G), X;
3842
+ function te($) {
3843
+ let ne = b.code;
3844
+ return b.prefix && (ne += `-${b.prefix}`), ne += " ", ne += se($ || H), ne;
3828
3845
  }
3829
- return /* @__PURE__ */ k(ye, { children: [
3830
- n && /* @__PURE__ */ f(pe, { showAsterisk: d, children: n }),
3846
+ return /* @__PURE__ */ k(ve, { children: [
3847
+ n && /* @__PURE__ */ f(ye, { showAsterisk: d, children: n }),
3831
3848
  /* @__PURE__ */ k(
3832
3849
  As,
3833
3850
  {
3834
- id: j,
3835
- disabled: I,
3851
+ id: L,
3852
+ disabled: T,
3836
3853
  isError: B,
3837
3854
  isLoading: o,
3838
3855
  isFocused: x,
@@ -3846,70 +3863,70 @@ function jc(e) {
3846
3863
  Ds,
3847
3864
  {
3848
3865
  currentCountry: b,
3849
- onClick: ie,
3866
+ onClick: _e,
3850
3867
  size: c
3851
3868
  }
3852
3869
  ),
3853
3870
  /* @__PURE__ */ k(
3854
3871
  Ms,
3855
3872
  {
3856
- isOpen: I || i ? !1 : L,
3873
+ isOpen: T || i ? !1 : j,
3857
3874
  search: w,
3858
3875
  placeholder: m,
3859
- onSearch: H,
3876
+ onSearch: z,
3860
3877
  children: [
3861
- nt.filter(($) => ce($)).map(($) => /* @__PURE__ */ f(
3878
+ rt.filter(($) => ce($)).map(($) => /* @__PURE__ */ f(
3862
3879
  Rs,
3863
3880
  {
3864
3881
  country: $,
3865
3882
  handleChangeValue: () => {
3866
- O($), T(!1), S($.mask);
3883
+ S($), O(!1), A($.mask);
3867
3884
  },
3868
3885
  isActive: $.iso === b.iso,
3869
3886
  size: c
3870
3887
  },
3871
3888
  $.iso
3872
3889
  )),
3873
- nt.filter(($) => ce($)).length === 0 && /* @__PURE__ */ f("p", { children: g })
3890
+ rt.filter(($) => ce($)).length === 0 && /* @__PURE__ */ f("p", { children: g })
3874
3891
  ]
3875
3892
  }
3876
3893
  ),
3877
3894
  /* @__PURE__ */ f(
3878
3895
  Is,
3879
3896
  {
3880
- isOpen: I || i ? !1 : L,
3881
- onClick: te
3897
+ isOpen: T || i ? !1 : j,
3898
+ onClick: X
3882
3899
  }
3883
3900
  ),
3884
3901
  /* @__PURE__ */ f(
3885
3902
  Ls,
3886
3903
  {
3887
- ref: Z,
3904
+ ref: Y,
3888
3905
  readonly: i,
3889
3906
  currentCountry: b,
3890
- value: G,
3891
- disabled: I,
3892
- onBlur: ve,
3893
- onFocus: J,
3907
+ value: H,
3908
+ disabled: T,
3909
+ onBlur: he,
3910
+ onFocus: Z,
3894
3911
  size: c,
3895
3912
  onChange: ($) => {
3896
- S($), h && h(ae($));
3913
+ A($), h && h(te($));
3897
3914
  }
3898
3915
  }
3899
3916
  ),
3900
3917
  /* @__PURE__ */ f(
3901
3918
  "input",
3902
3919
  {
3903
- ref: P,
3920
+ ref: I,
3904
3921
  type: "hidden",
3905
3922
  name: _,
3906
- value: ae()
3923
+ value: te()
3907
3924
  }
3908
3925
  )
3909
3926
  ]
3910
3927
  }
3911
3928
  ),
3912
- D && /* @__PURE__ */ f(xe, { children: D })
3929
+ D && /* @__PURE__ */ f(Ee, { children: D })
3913
3930
  ] });
3914
3931
  }
3915
3932
  function Bc(e) {
@@ -3923,10 +3940,10 @@ function Bc(e) {
3923
3940
  function u() {
3924
3941
  o || i(!0);
3925
3942
  }
3926
- return pt(o), /* @__PURE__ */ k("div", { className: l, onClick: u, children: [
3943
+ return yt(o), /* @__PURE__ */ k("div", { className: l, onClick: u, children: [
3927
3944
  n,
3928
3945
  /* @__PURE__ */ f(
3929
- ft.div,
3946
+ dt.div,
3930
3947
  {
3931
3948
  style: { visibility: o ? "visible" : "hidden" },
3932
3949
  transition: { ease: "easeOut", duration: 0 },
@@ -3941,13 +3958,13 @@ function Bc(e) {
3941
3958
  o && /* @__PURE__ */ f("div", { onClick: () => i(!1), className: "arkynPopoverOverlay" })
3942
3959
  ] });
3943
3960
  }
3944
- const zr = Fe({});
3961
+ const Hr = Se({});
3945
3962
  function js(e) {
3946
3963
  const { children: t, size: n, isError: r, handleChange: a, value: s } = e;
3947
- return /* @__PURE__ */ f(zr.Provider, { value: { handleChange: a, value: s, size: n, isError: r }, children: t });
3964
+ return /* @__PURE__ */ f(Hr.Provider, { value: { handleChange: a, value: s, size: n, isError: r }, children: t });
3948
3965
  }
3949
3966
  function Bs() {
3950
- return Ae(zr);
3967
+ return Re(Hr);
3951
3968
  }
3952
3969
  function zc(e) {
3953
3970
  const {
@@ -3984,13 +4001,13 @@ function Hc(e) {
3984
4001
  size: c = "md",
3985
4002
  className: l = "",
3986
4003
  ...u
3987
- } = e, [d, _] = F(t), { fieldErrors: h } = be();
4004
+ } = e, [d, _] = F(t), { fieldErrors: h } = xe();
3988
4005
  function m(x) {
3989
4006
  _(x), i && i(x);
3990
4007
  }
3991
4008
  const g = s || (h == null ? void 0 : h[n]), y = !!g, C = `arkynRadioGroup ${c} ${l}`;
3992
- return /* @__PURE__ */ k(ye, { children: [
3993
- r && /* @__PURE__ */ f(pe, { showAsterisk: a, children: r }),
4009
+ return /* @__PURE__ */ k(ve, { children: [
4010
+ r && /* @__PURE__ */ f(ye, { showAsterisk: a, children: r }),
3994
4011
  /* @__PURE__ */ k(
3995
4012
  js,
3996
4013
  {
@@ -4013,7 +4030,7 @@ function Hc(e) {
4013
4030
  ]
4014
4031
  }
4015
4032
  ),
4016
- g && /* @__PURE__ */ f(xe, { children: g })
4033
+ g && /* @__PURE__ */ f(Ee, { children: g })
4017
4034
  ] });
4018
4035
  }
4019
4036
  function Gc(e) {
@@ -4030,13 +4047,13 @@ function Gc(e) {
4030
4047
  id: u,
4031
4048
  orientation: d,
4032
4049
  ..._
4033
- } = e, h = oe(null), m = u || Ie(), [g, y] = F(r), C = typeof a == "boolean" ? a : g;
4050
+ } = e, h = ie(null), m = u || Me(), [g, y] = F(r), C = typeof a == "boolean" ? a : g;
4034
4051
  function x() {
4035
4052
  y(!g), l && l(C ? o : s || "checked");
4036
4053
  }
4037
4054
  const w = `arkynSwitch ${C ? "checkedTrue" : "checkedFalse"} ${n} ${c}`;
4038
- return /* @__PURE__ */ k(ye, { orientation: d, children: [
4039
- t && /* @__PURE__ */ f(pe, { children: t }),
4055
+ return /* @__PURE__ */ k(ve, { orientation: d, children: [
4056
+ t && /* @__PURE__ */ f(ye, { children: t }),
4040
4057
  /* @__PURE__ */ f(
4041
4058
  "button",
4042
4059
  {
@@ -4059,12 +4076,12 @@ function Gc(e) {
4059
4076
  )
4060
4077
  ] });
4061
4078
  }
4062
- const Hr = Fe({});
4079
+ const Gr = Se({});
4063
4080
  function zs() {
4064
- return Ae(Hr);
4081
+ return Re(Gr);
4065
4082
  }
4066
4083
  function Hs(e) {
4067
- return /* @__PURE__ */ f(Hr.Provider, { value: e, children: e.children });
4084
+ return /* @__PURE__ */ f(Gr.Provider, { value: e, children: e.children });
4068
4085
  }
4069
4086
  function Vc(e) {
4070
4087
  const {
@@ -4118,7 +4135,7 @@ function qc(e) {
4118
4135
  className: n,
4119
4136
  children: r,
4120
4137
  ...a
4121
- } = e, s = `arkynTableBody ${n}`, o = La.count(r) === 0;
4138
+ } = e, s = `arkynTableBody ${n}`, o = ja.count(r) === 0;
4122
4139
  return /* @__PURE__ */ f("tbody", { className: s.trim(), ...a, children: o ? /* @__PURE__ */ f("tr", { className: "arkynTableBodyEmptyLine", children: /* @__PURE__ */ f("td", { colSpan: 100, children: /* @__PURE__ */ f("div", { children: t }) }) }) : r });
4123
4140
  }
4124
4141
  function Wc(e) {
@@ -4160,24 +4177,24 @@ function Zc(e) {
4160
4177
  style: h,
4161
4178
  id: m,
4162
4179
  ...g
4163
- } = e, { fieldErrors: y } = be(), [C, x] = F(!1), v = oe(null), w = m || Ie(), H = a || (y == null ? void 0 : y[l]), b = `arkynTextarea ${t} ${n} ${s || o ? "opacityTrue" : "opacityFalse"} ${!!H ? "errorTrue" : "errorFalse"} ${C ? "focusedTrue" : "focusedFalse"} ${r}`;
4164
- function O() {
4180
+ } = e, { fieldErrors: y } = xe(), [C, x] = F(!1), v = ie(null), w = m || Me(), z = a || (y == null ? void 0 : y[l]), b = `arkynTextarea ${t} ${n} ${s || o ? "opacityTrue" : "opacityFalse"} ${!!z ? "errorTrue" : "errorFalse"} ${C ? "focusedTrue" : "focusedFalse"} ${r}`;
4181
+ function S() {
4165
4182
  s || !(v != null && v.current) || (x(!0), v.current.focus());
4166
4183
  }
4167
- function M(j) {
4168
- x(!0), u && u(j);
4184
+ function M(L) {
4185
+ x(!0), u && u(L);
4169
4186
  }
4170
- function P(j) {
4171
- x(!1), d && d(j);
4187
+ function I(L) {
4188
+ x(!1), d && d(L);
4172
4189
  }
4173
- return /* @__PURE__ */ k(ye, { children: [
4174
- i && /* @__PURE__ */ f(pe, { showAsterisk: c, children: i }),
4190
+ return /* @__PURE__ */ k(ve, { children: [
4191
+ i && /* @__PURE__ */ f(ye, { showAsterisk: c, children: i }),
4175
4192
  /* @__PURE__ */ f(
4176
4193
  "section",
4177
4194
  {
4178
4195
  title: _,
4179
4196
  style: h,
4180
- onClick: O,
4197
+ onClick: S,
4181
4198
  className: b,
4182
4199
  children: /* @__PURE__ */ f(
4183
4200
  "textarea",
@@ -4187,16 +4204,16 @@ function Zc(e) {
4187
4204
  readOnly: o,
4188
4205
  ref: v,
4189
4206
  onFocus: M,
4190
- onBlur: P,
4207
+ onBlur: I,
4191
4208
  ...g
4192
4209
  }
4193
4210
  )
4194
4211
  }
4195
4212
  ),
4196
- H && /* @__PURE__ */ f(xe, { children: H })
4213
+ z && /* @__PURE__ */ f(Ee, { children: z })
4197
4214
  ] });
4198
4215
  }
4199
- const Gr = Fe({});
4216
+ const Vr = Se({});
4200
4217
  function Jc(e) {
4201
4218
  const { children: t = !1 } = e, [n, r] = F([]);
4202
4219
  function a(c) {
@@ -4214,7 +4231,7 @@ function Jc(e) {
4214
4231
  r(n.filter((l) => l.key !== c));
4215
4232
  }
4216
4233
  return /* @__PURE__ */ f(
4217
- Gr.Provider,
4234
+ Vr.Provider,
4218
4235
  {
4219
4236
  value: { drawerIsOpen: a, drawerData: s, openDrawer: o, closeDrawer: i },
4220
4237
  children: t
@@ -4222,7 +4239,7 @@ function Jc(e) {
4222
4239
  );
4223
4240
  }
4224
4241
  function Qc(e) {
4225
- const t = Ae(Gr);
4242
+ const t = Re(Vr);
4226
4243
  if (Object.entries(t).length === 0)
4227
4244
  throw new Error("useDrawer must be used within a Provider");
4228
4245
  if (e) {
@@ -4236,7 +4253,7 @@ function Qc(e) {
4236
4253
  } else
4237
4254
  return t;
4238
4255
  }
4239
- const Vr = Fe({});
4256
+ const Ur = Se({});
4240
4257
  function el(e) {
4241
4258
  const { children: t = !1 } = e, [n, r] = F([]);
4242
4259
  function a(l) {
@@ -4257,7 +4274,7 @@ function el(e) {
4257
4274
  r([]);
4258
4275
  }
4259
4276
  return /* @__PURE__ */ f(
4260
- Vr.Provider,
4277
+ Ur.Provider,
4261
4278
  {
4262
4279
  value: { modalIsOpen: a, modalData: s, openModal: o, closeModal: i, closeAll: c },
4263
4280
  children: t
@@ -4265,7 +4282,7 @@ function el(e) {
4265
4282
  );
4266
4283
  }
4267
4284
  function tl(e) {
4268
- const t = Ae(Vr);
4285
+ const t = Re(Ur);
4269
4286
  if (Object.entries(t).length === 0)
4270
4287
  throw new Error("useModal must be used within a Provider");
4271
4288
  if (e) {
@@ -4294,43 +4311,43 @@ function nl(e, t = "") {
4294
4311
  }
4295
4312
  };
4296
4313
  }
4297
- let Gs = { data: "" }, Vs = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Gs, Us = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, qs = /\/\*[^]*?\*\/| +/g, Wn = /\n+/g, Le = (e, t) => {
4314
+ let Gs = { data: "" }, Vs = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Gs, Us = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, qs = /\/\*[^]*?\*\/| +/g, Wn = /\n+/g, Be = (e, t) => {
4298
4315
  let n = "", r = "", a = "";
4299
4316
  for (let s in e) {
4300
4317
  let o = e[s];
4301
- s[0] == "@" ? s[1] == "i" ? n = s + " " + o + ";" : r += s[1] == "f" ? Le(o, s) : s + "{" + Le(o, s[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += Le(o, t ? t.replace(/([^,])+/g, (i) => s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (c) => /&/.test(c) ? c.replace(/&/g, i) : i ? i + " " + c : c)) : s) : o != null && (s = /^--/.test(s) ? s : s.replace(/[A-Z]/g, "-$&").toLowerCase(), a += Le.p ? Le.p(s, o) : s + ":" + o + ";");
4318
+ s[0] == "@" ? s[1] == "i" ? n = s + " " + o + ";" : r += s[1] == "f" ? Be(o, s) : s + "{" + Be(o, s[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += Be(o, t ? t.replace(/([^,])+/g, (i) => s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (c) => /&/.test(c) ? c.replace(/&/g, i) : i ? i + " " + c : c)) : s) : o != null && (s = /^--/.test(s) ? s : s.replace(/[A-Z]/g, "-$&").toLowerCase(), a += Be.p ? Be.p(s, o) : s + ":" + o + ";");
4302
4319
  }
4303
4320
  return n + (t && a ? t + "{" + a + "}" : a) + r;
4304
- }, Se = {}, Ur = (e) => {
4321
+ }, Oe = {}, qr = (e) => {
4305
4322
  if (typeof e == "object") {
4306
4323
  let t = "";
4307
- for (let n in e) t += n + Ur(e[n]);
4324
+ for (let n in e) t += n + qr(e[n]);
4308
4325
  return t;
4309
4326
  }
4310
4327
  return e;
4311
4328
  }, Ws = (e, t, n, r, a) => {
4312
- let s = Ur(e), o = Se[s] || (Se[s] = ((c) => {
4329
+ let s = qr(e), o = Oe[s] || (Oe[s] = ((c) => {
4313
4330
  let l = 0, u = 11;
4314
4331
  for (; l < c.length; ) u = 101 * u + c.charCodeAt(l++) >>> 0;
4315
4332
  return "go" + u;
4316
4333
  })(s));
4317
- if (!Se[o]) {
4334
+ if (!Oe[o]) {
4318
4335
  let c = s !== e ? e : ((l) => {
4319
4336
  let u, d, _ = [{}];
4320
4337
  for (; u = Us.exec(l.replace(qs, "")); ) u[4] ? _.shift() : u[3] ? (d = u[3].replace(Wn, " ").trim(), _.unshift(_[0][d] = _[0][d] || {})) : _[0][u[1]] = u[2].replace(Wn, " ").trim();
4321
4338
  return _[0];
4322
4339
  })(e);
4323
- Se[o] = Le(a ? { ["@keyframes " + o]: c } : c, n ? "" : "." + o);
4340
+ Oe[o] = Be(a ? { ["@keyframes " + o]: c } : c, n ? "" : "." + o);
4324
4341
  }
4325
- let i = n && Se.g ? Se.g : null;
4326
- return n && (Se.g = Se[o]), ((c, l, u, d) => {
4342
+ let i = n && Oe.g ? Oe.g : null;
4343
+ return n && (Oe.g = Oe[o]), ((c, l, u, d) => {
4327
4344
  d ? l.data = l.data.replace(d, c) : l.data.indexOf(c) === -1 && (l.data = u ? c + l.data : l.data + c);
4328
- })(Se[o], t, r, i), o;
4345
+ })(Oe[o], t, r, i), o;
4329
4346
  }, Ks = (e, t, n) => e.reduce((r, a, s) => {
4330
4347
  let o = t[s];
4331
4348
  if (o && o.call) {
4332
4349
  let i = o(n), c = i && i.props && i.props.className || /^go/.test(i) && i;
4333
- o = c ? "." + c : i && typeof i == "object" ? i.props ? "" : Le(i, "") : i === !1 ? "" : i;
4350
+ o = c ? "." + c : i && typeof i == "object" ? i.props ? "" : Be(i, "") : i === !1 ? "" : i;
4334
4351
  }
4335
4352
  return r + a + (o ?? "");
4336
4353
  }, "");
@@ -4338,13 +4355,13 @@ function It(e) {
4338
4355
  let t = this || {}, n = e.call ? e(t.p) : e;
4339
4356
  return Ws(n.unshift ? n.raw ? Ks(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, a) => Object.assign(r, a && a.call ? a(t.p) : a), {}) : n, Vs(t.target), t.g, t.o, t.k);
4340
4357
  }
4341
- let qr, nn, rn;
4358
+ let Wr, nn, rn;
4342
4359
  It.bind({ g: 1 });
4343
- let Pe = It.bind({ k: 1 });
4360
+ let Ie = It.bind({ k: 1 });
4344
4361
  function Xs(e, t, n, r) {
4345
- Le.p = t, qr = e, nn = n, rn = r;
4362
+ Be.p = t, Wr = e, nn = n, rn = r;
4346
4363
  }
4347
- function je(e, t) {
4364
+ function ze(e, t) {
4348
4365
  let n = this || {};
4349
4366
  return function() {
4350
4367
  let r = arguments;
@@ -4352,7 +4369,7 @@ function je(e, t) {
4352
4369
  let i = Object.assign({}, s), c = i.className || a.className;
4353
4370
  n.p = Object.assign({ theme: nn && nn() }, i), n.o = / *go\d+/.test(c), i.className = It.apply(n, r) + (c ? " " + c : "");
4354
4371
  let l = e;
4355
- return e[0] && (l = i.as || e, delete i.as), rn && l[0] && rn(i), qr(l, i);
4372
+ return e[0] && (l = i.as || e, delete i.as), rn && l[0] && rn(i), Wr(l, i);
4356
4373
  }
4357
4374
  return a;
4358
4375
  };
@@ -4360,7 +4377,7 @@ function je(e, t) {
4360
4377
  var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /* @__PURE__ */ (() => {
4361
4378
  let e = 0;
4362
4379
  return () => (++e).toString();
4363
- })(), Wr = /* @__PURE__ */ (() => {
4380
+ })(), Kr = /* @__PURE__ */ (() => {
4364
4381
  let e;
4365
4382
  return () => {
4366
4383
  if (e === void 0 && typeof window < "u") {
@@ -4369,7 +4386,7 @@ var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /*
4369
4386
  }
4370
4387
  return e;
4371
4388
  };
4372
- })(), Js = 20, En = "default", Kr = (e, t) => {
4389
+ })(), Js = 20, En = "default", Xr = (e, t) => {
4373
4390
  let { toastLimit: n } = e.settings;
4374
4391
  switch (t.type) {
4375
4392
  case 0:
@@ -4378,7 +4395,7 @@ var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /*
4378
4395
  return { ...e, toasts: e.toasts.map((o) => o.id === t.toast.id ? { ...o, ...t.toast } : o) };
4379
4396
  case 2:
4380
4397
  let { toast: r } = t;
4381
- return Kr(e, { type: e.toasts.find((o) => o.id === r.id) ? 1 : 0, toast: r });
4398
+ return Xr(e, { type: e.toasts.find((o) => o.id === r.id) ? 1 : 0, toast: r });
4382
4399
  case 3:
4383
4400
  let { toastId: a } = t;
4384
4401
  return { ...e, toasts: e.toasts.map((o) => o.id === a || a === void 0 ? { ...o, dismissed: !0, visible: !1 } : o) };
@@ -4390,15 +4407,15 @@ var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /*
4390
4407
  let s = t.time - (e.pausedAt || 0);
4391
4408
  return { ...e, pausedAt: void 0, toasts: e.toasts.map((o) => ({ ...o, pauseDuration: o.pauseDuration + s })) };
4392
4409
  }
4393
- }, Ft = [], Xr = { toasts: [], pausedAt: void 0, settings: { toastLimit: Js } }, Ne = {}, Yr = (e, t = En) => {
4394
- Ne[t] = Kr(Ne[t] || Xr, e), Ft.forEach(([n, r]) => {
4395
- n === t && r(Ne[t]);
4410
+ }, Ft = [], Yr = { toasts: [], pausedAt: void 0, settings: { toastLimit: Js } }, Fe = {}, Zr = (e, t = En) => {
4411
+ Fe[t] = Xr(Fe[t] || Yr, e), Ft.forEach(([n, r]) => {
4412
+ n === t && r(Fe[t]);
4396
4413
  });
4397
- }, Zr = (e) => Object.keys(Ne).forEach((t) => Yr(e, t)), Qs = (e) => Object.keys(Ne).find((t) => Ne[t].toasts.some((n) => n.id === e)), Rt = (e = En) => (t) => {
4398
- Yr(t, e);
4414
+ }, Jr = (e) => Object.keys(Fe).forEach((t) => Zr(e, t)), Qs = (e) => Object.keys(Fe).find((t) => Fe[t].toasts.some((n) => n.id === e)), Rt = (e = En) => (t) => {
4415
+ Zr(t, e);
4399
4416
  }, eo = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, to = (e = {}, t = En) => {
4400
- let [n, r] = F(Ne[t] || Xr), a = oe(Ne[t]);
4401
- Ce(() => (a.current !== Ne[t] && r(Ne[t]), Ft.push([t, r]), () => {
4417
+ let [n, r] = F(Fe[t] || Yr), a = ie(Fe[t]);
4418
+ be(() => (a.current !== Fe[t] && r(Fe[t]), Ft.push([t, r]), () => {
4402
4419
  let o = Ft.findIndex(([i]) => i === t);
4403
4420
  o > -1 && Ft.splice(o, 1);
4404
4421
  }), [t]);
@@ -4407,22 +4424,22 @@ var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /*
4407
4424
  return { ...e, ...e[o.type], ...o, removeDelay: o.removeDelay || ((i = e[o.type]) == null ? void 0 : i.removeDelay) || (e == null ? void 0 : e.removeDelay), duration: o.duration || ((c = e[o.type]) == null ? void 0 : c.duration) || (e == null ? void 0 : e.duration) || eo[o.type], style: { ...e.style, ...(l = e[o.type]) == null ? void 0 : l.style, ...o.style } };
4408
4425
  });
4409
4426
  return { ...n, toasts: s };
4410
- }, no = (e, t = "blank", n) => ({ createdAt: Date.now(), visible: !0, dismissed: !1, type: t, ariaProps: { role: "status", "aria-live": "polite" }, message: e, pauseDuration: 0, ...n, id: (n == null ? void 0 : n.id) || Zs() }), yt = (e) => (t, n) => {
4427
+ }, no = (e, t = "blank", n) => ({ createdAt: Date.now(), visible: !0, dismissed: !1, type: t, ariaProps: { role: "status", "aria-live": "polite" }, message: e, pauseDuration: 0, ...n, id: (n == null ? void 0 : n.id) || Zs() }), vt = (e) => (t, n) => {
4411
4428
  let r = no(t, e, n);
4412
4429
  return Rt(r.toasterId || Qs(r.id))({ type: 2, toast: r }), r.id;
4413
- }, Q = (e, t) => yt("blank")(e, t);
4414
- Q.error = yt("error");
4415
- Q.success = yt("success");
4416
- Q.loading = yt("loading");
4417
- Q.custom = yt("custom");
4430
+ }, Q = (e, t) => vt("blank")(e, t);
4431
+ Q.error = vt("error");
4432
+ Q.success = vt("success");
4433
+ Q.loading = vt("loading");
4434
+ Q.custom = vt("custom");
4418
4435
  Q.dismiss = (e, t) => {
4419
4436
  let n = { type: 3, toastId: e };
4420
- t ? Rt(t)(n) : Zr(n);
4437
+ t ? Rt(t)(n) : Jr(n);
4421
4438
  };
4422
4439
  Q.dismissAll = (e) => Q.dismiss(void 0, e);
4423
4440
  Q.remove = (e, t) => {
4424
4441
  let n = { type: 4, toastId: e };
4425
- t ? Rt(t)(n) : Zr(n);
4442
+ t ? Rt(t)(n) : Jr(n);
4426
4443
  };
4427
4444
  Q.removeAll = (e) => Q.remove(void 0, e);
4428
4445
  Q.promise = (e, t, n) => {
@@ -4436,14 +4453,14 @@ Q.promise = (e, t, n) => {
4436
4453
  }), e;
4437
4454
  };
4438
4455
  var ro = 1e3, ao = (e, t = "default") => {
4439
- let { toasts: n, pausedAt: r } = to(e, t), a = oe(/* @__PURE__ */ new Map()).current, s = tt((d, _ = ro) => {
4456
+ let { toasts: n, pausedAt: r } = to(e, t), a = ie(/* @__PURE__ */ new Map()).current, s = nt((d, _ = ro) => {
4440
4457
  if (a.has(d)) return;
4441
4458
  let h = setTimeout(() => {
4442
4459
  a.delete(d), o({ type: 4, toastId: d });
4443
4460
  }, _);
4444
4461
  a.set(d, h);
4445
4462
  }, []);
4446
- Ce(() => {
4463
+ be(() => {
4447
4464
  if (r) return;
4448
4465
  let d = Date.now(), _ = n.map((h) => {
4449
4466
  if (h.duration === 1 / 0) return;
@@ -4458,17 +4475,17 @@ var ro = 1e3, ao = (e, t = "default") => {
4458
4475
  _.forEach((h) => h && clearTimeout(h));
4459
4476
  };
4460
4477
  }, [n, r, t]);
4461
- let o = tt(Rt(t), [t]), i = tt(() => {
4478
+ let o = nt(Rt(t), [t]), i = nt(() => {
4462
4479
  o({ type: 5, time: Date.now() });
4463
- }, [o]), c = tt((d, _) => {
4480
+ }, [o]), c = nt((d, _) => {
4464
4481
  o({ type: 1, toast: { id: d, height: _ } });
4465
- }, [o]), l = tt(() => {
4482
+ }, [o]), l = nt(() => {
4466
4483
  r && o({ type: 6, time: Date.now() });
4467
- }, [r, o]), u = tt((d, _) => {
4484
+ }, [r, o]), u = nt((d, _) => {
4468
4485
  let { reverseOrder: h = !1, gutter: m = 8, defaultPosition: g } = _ || {}, y = n.filter((v) => (v.position || g) === (d.position || g) && v.height), C = y.findIndex((v) => v.id === d.id), x = y.filter((v, w) => w < C && v.visible).length;
4469
4486
  return y.filter((v) => v.visible).slice(...h ? [x + 1] : [0, x]).reduce((v, w) => v + (w.height || 0) + m, 0);
4470
4487
  }, [n]);
4471
- return Ce(() => {
4488
+ return be(() => {
4472
4489
  n.forEach((d) => {
4473
4490
  if (d.dismissed) s(d.id, d.removeDelay);
4474
4491
  else {
@@ -4477,7 +4494,7 @@ var ro = 1e3, ao = (e, t = "default") => {
4477
4494
  }
4478
4495
  });
4479
4496
  }, [n, s]), { toasts: n, handlers: { updateHeight: c, startPause: i, endPause: l, calculateOffset: u } };
4480
- }, so = Pe`
4497
+ }, so = Ie`
4481
4498
  from {
4482
4499
  transform: scale(0) rotate(45deg);
4483
4500
  opacity: 0;
@@ -4485,7 +4502,7 @@ from {
4485
4502
  to {
4486
4503
  transform: scale(1) rotate(45deg);
4487
4504
  opacity: 1;
4488
- }`, oo = Pe`
4505
+ }`, oo = Ie`
4489
4506
  from {
4490
4507
  transform: scale(0);
4491
4508
  opacity: 0;
@@ -4493,7 +4510,7 @@ from {
4493
4510
  to {
4494
4511
  transform: scale(1);
4495
4512
  opacity: 1;
4496
- }`, io = Pe`
4513
+ }`, io = Ie`
4497
4514
  from {
4498
4515
  transform: scale(0) rotate(90deg);
4499
4516
  opacity: 0;
@@ -4501,7 +4518,7 @@ from {
4501
4518
  to {
4502
4519
  transform: scale(1) rotate(90deg);
4503
4520
  opacity: 1;
4504
- }`, co = je("div")`
4521
+ }`, co = ze("div")`
4505
4522
  width: 20px;
4506
4523
  opacity: 0;
4507
4524
  height: 20px;
@@ -4534,14 +4551,14 @@ to {
4534
4551
  animation-delay: 180ms;
4535
4552
  transform: rotate(90deg);
4536
4553
  }
4537
- `, lo = Pe`
4554
+ `, lo = Ie`
4538
4555
  from {
4539
4556
  transform: rotate(0deg);
4540
4557
  }
4541
4558
  to {
4542
4559
  transform: rotate(360deg);
4543
4560
  }
4544
- `, uo = je("div")`
4561
+ `, uo = ze("div")`
4545
4562
  width: 12px;
4546
4563
  height: 12px;
4547
4564
  box-sizing: border-box;
@@ -4550,7 +4567,7 @@ to {
4550
4567
  border-color: ${(e) => e.secondary || "#e0e0e0"};
4551
4568
  border-right-color: ${(e) => e.primary || "#616161"};
4552
4569
  animation: ${lo} 1s linear infinite;
4553
- `, fo = Pe`
4570
+ `, fo = Ie`
4554
4571
  from {
4555
4572
  transform: scale(0) rotate(45deg);
4556
4573
  opacity: 0;
@@ -4558,7 +4575,7 @@ from {
4558
4575
  to {
4559
4576
  transform: scale(1) rotate(45deg);
4560
4577
  opacity: 1;
4561
- }`, _o = Pe`
4578
+ }`, _o = Ie`
4562
4579
  0% {
4563
4580
  height: 0;
4564
4581
  width: 0;
@@ -4572,7 +4589,7 @@ to {
4572
4589
  100% {
4573
4590
  opacity: 1;
4574
4591
  height: 10px;
4575
- }`, mo = je("div")`
4592
+ }`, mo = ze("div")`
4576
4593
  width: 20px;
4577
4594
  opacity: 0;
4578
4595
  height: 20px;
@@ -4599,16 +4616,16 @@ to {
4599
4616
  height: 10px;
4600
4617
  width: 6px;
4601
4618
  }
4602
- `, go = je("div")`
4619
+ `, go = ze("div")`
4603
4620
  position: absolute;
4604
- `, ho = je("div")`
4621
+ `, ho = ze("div")`
4605
4622
  position: relative;
4606
4623
  display: flex;
4607
4624
  justify-content: center;
4608
4625
  align-items: center;
4609
4626
  min-width: 20px;
4610
4627
  min-height: 20px;
4611
- `, po = Pe`
4628
+ `, po = Ie`
4612
4629
  from {
4613
4630
  transform: scale(0.6);
4614
4631
  opacity: 0.4;
@@ -4616,7 +4633,7 @@ from {
4616
4633
  to {
4617
4634
  transform: scale(1);
4618
4635
  opacity: 1;
4619
- }`, yo = je("div")`
4636
+ }`, yo = ze("div")`
4620
4637
  position: relative;
4621
4638
  transform: scale(0.6);
4622
4639
  opacity: 0.4;
@@ -4632,7 +4649,7 @@ to {
4632
4649
  `, Co = (e) => `
4633
4650
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
4634
4651
  100% {transform: translate3d(0,${e * -150}%,-1px) scale(.6); opacity:0;}
4635
- `, bo = "0%{opacity:0;} 100%{opacity:1;}", xo = "0%{opacity:1;} 100%{opacity:0;}", Eo = je("div")`
4652
+ `, bo = "0%{opacity:0;} 100%{opacity:1;}", xo = "0%{opacity:1;} 100%{opacity:0;}", Eo = ze("div")`
4636
4653
  display: flex;
4637
4654
  align-items: center;
4638
4655
  background: #fff;
@@ -4644,7 +4661,7 @@ to {
4644
4661
  pointer-events: auto;
4645
4662
  padding: 8px 10px;
4646
4663
  border-radius: 8px;
4647
- `, wo = je("div")`
4664
+ `, wo = ze("div")`
4648
4665
  display: flex;
4649
4666
  justify-content: center;
4650
4667
  margin: 4px 10px;
@@ -4652,8 +4669,8 @@ to {
4652
4669
  flex: 1 1 auto;
4653
4670
  white-space: pre-line;
4654
4671
  `, No = (e, t) => {
4655
- let n = e.includes("top") ? 1 : -1, [r, a] = Wr() ? [bo, xo] : [ko(n), Co(n)];
4656
- return { animation: t ? `${Pe(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards` : `${Pe(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)` };
4672
+ let n = e.includes("top") ? 1 : -1, [r, a] = Kr() ? [bo, xo] : [ko(n), Co(n)];
4673
+ return { animation: t ? `${Ie(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards` : `${Ie(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)` };
4657
4674
  }, Fo = ee.memo(({ toast: e, position: t, style: n, children: r }) => {
4658
4675
  let a = e.height ? No(e.position || t || "top-center", e.visible) : { opacity: 0 }, s = ee.createElement(vo, { toast: e }), o = ee.createElement(wo, { ...e.ariaProps }, St(e.message, e));
4659
4676
  return ee.createElement(Eo, { className: e.className, style: { ...a, ...n, ...e.style } }, typeof r == "function" ? r({ icon: s, message: o }) : ee.createElement(ee.Fragment, null, s, o));
@@ -4672,7 +4689,7 @@ var So = ({ id: e, className: t, style: n, onHeightUpdate: r, children: a }) =>
4672
4689
  return ee.createElement("div", { ref: s, className: t, style: n }, a);
4673
4690
  }, To = (e, t) => {
4674
4691
  let n = e.includes("top"), r = n ? { top: 0 } : { bottom: 0 }, a = e.includes("center") ? { justifyContent: "center" } : e.includes("right") ? { justifyContent: "flex-end" } : {};
4675
- return { left: 0, right: 0, display: "flex", position: "absolute", transition: Wr() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (n ? 1 : -1)}px)`, ...r, ...a };
4692
+ return { left: 0, right: 0, display: "flex", position: "absolute", transition: Kr() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (n ? 1 : -1)}px)`, ...r, ...a };
4676
4693
  }, Oo = It`
4677
4694
  z-index: 9999;
4678
4695
  > * {
@@ -4685,7 +4702,7 @@ var So = ({ id: e, className: t, style: n, onHeightUpdate: r, children: a }) =>
4685
4702
  return ee.createElement(So, { id: u.id, key: u.id, onHeightUpdate: l.updateHeight, className: u.visible ? Oo : "", style: h }, u.type === "custom" ? St(u.message, u) : a ? a(u) : ee.createElement(Fo, { toast: u, position: d }));
4686
4703
  }));
4687
4704
  }, Kn = Q;
4688
- const Ao = Fe({});
4705
+ const Ao = Se({});
4689
4706
  function rl({ children: e }) {
4690
4707
  function t(n) {
4691
4708
  switch (n.type) {
@@ -4739,11 +4756,11 @@ function rl({ children: e }) {
4739
4756
  function Xn(e) {
4740
4757
  return Object.prototype.toString.call(e) === "[object Object]";
4741
4758
  }
4742
- function se(e) {
4759
+ function oe(e) {
4743
4760
  var t, n;
4744
4761
  return Xn(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(Xn(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
4745
4762
  }
4746
- var Jr = Symbol.for("immer-nothing"), Yn = Symbol.for("immer-draftable"), me = Symbol.for("immer-state"), Io = process.env.NODE_ENV !== "production" ? [
4763
+ var Qr = Symbol.for("immer-nothing"), Yn = Symbol.for("immer-draftable"), me = Symbol.for("immer-state"), Io = process.env.NODE_ENV !== "production" ? [
4747
4764
  // All error codes, starting by 0:
4748
4765
  function(e) {
4749
4766
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -4774,7 +4791,7 @@ var Jr = Symbol.for("immer-nothing"), Yn = Symbol.for("immer-draftable"), me = S
4774
4791
  // Note: if more errors are added, the errorOffset in Patches.ts should be increased
4775
4792
  // See Patches.ts for additional errors
4776
4793
  ] : [];
4777
- function de(e, ...t) {
4794
+ function fe(e, ...t) {
4778
4795
  if (process.env.NODE_ENV !== "production") {
4779
4796
  const n = Io[e], r = typeof n == "function" ? n.apply(null, t) : n;
4780
4797
  throw new Error(`[Immer] ${r}`);
@@ -4783,19 +4800,19 @@ function de(e, ...t) {
4783
4800
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
4784
4801
  );
4785
4802
  }
4786
- var rt = Object.getPrototypeOf;
4787
- function We(e) {
4803
+ var at = Object.getPrototypeOf;
4804
+ function Xe(e) {
4788
4805
  return !!e && !!e[me];
4789
4806
  }
4790
- function Ke(e) {
4807
+ function Ye(e) {
4791
4808
  var t;
4792
- return e ? Qr(e) || Array.isArray(e) || !!e[Yn] || !!((t = e.constructor) != null && t[Yn]) || Dt(e) || $t(e) : !1;
4809
+ return e ? ea(e) || Array.isArray(e) || !!e[Yn] || !!((t = e.constructor) != null && t[Yn]) || Dt(e) || $t(e) : !1;
4793
4810
  }
4794
4811
  var Ro = Object.prototype.constructor.toString();
4795
- function Qr(e) {
4812
+ function ea(e) {
4796
4813
  if (!e || typeof e != "object")
4797
4814
  return !1;
4798
- const t = rt(e);
4815
+ const t = at(e);
4799
4816
  if (t === null)
4800
4817
  return !0;
4801
4818
  const n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
@@ -4813,7 +4830,7 @@ function Mt(e) {
4813
4830
  function an(e, t) {
4814
4831
  return Mt(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
4815
4832
  }
4816
- function ea(e, t, n) {
4833
+ function ta(e, t, n) {
4817
4834
  const r = Mt(e);
4818
4835
  r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
4819
4836
  }
@@ -4826,7 +4843,7 @@ function Dt(e) {
4826
4843
  function $t(e) {
4827
4844
  return e instanceof Set;
4828
4845
  }
4829
- function Ue(e) {
4846
+ function We(e) {
4830
4847
  return e.copy_ || e.base_;
4831
4848
  }
4832
4849
  function sn(e, t) {
@@ -4836,7 +4853,7 @@ function sn(e, t) {
4836
4853
  return new Set(e);
4837
4854
  if (Array.isArray(e))
4838
4855
  return Array.prototype.slice.call(e);
4839
- const n = Qr(e);
4856
+ const n = ea(e);
4840
4857
  if (t === !0 || t === "class_only" && !n) {
4841
4858
  const r = Object.getOwnPropertyDescriptors(e);
4842
4859
  delete r[me];
@@ -4851,9 +4868,9 @@ function sn(e, t) {
4851
4868
  value: e[o]
4852
4869
  });
4853
4870
  }
4854
- return Object.create(rt(e), r);
4871
+ return Object.create(at(e), r);
4855
4872
  } else {
4856
- const r = rt(e);
4873
+ const r = at(e);
4857
4874
  if (r !== null && n)
4858
4875
  return { ...e };
4859
4876
  const a = Object.create(r);
@@ -4861,22 +4878,22 @@ function sn(e, t) {
4861
4878
  }
4862
4879
  }
4863
4880
  function wn(e, t = !1) {
4864
- return Lt(e) || We(e) || !Ke(e) || (Mt(e) > 1 && (e.set = e.add = e.clear = e.delete = Do), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => wn(r, !0))), e;
4881
+ return Lt(e) || Xe(e) || !Ye(e) || (Mt(e) > 1 && (e.set = e.add = e.clear = e.delete = Do), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => wn(r, !0))), e;
4865
4882
  }
4866
4883
  function Do() {
4867
- de(2);
4884
+ fe(2);
4868
4885
  }
4869
4886
  function Lt(e) {
4870
4887
  return Object.isFrozen(e);
4871
4888
  }
4872
4889
  var $o = {};
4873
- function Xe(e) {
4890
+ function Ze(e) {
4874
4891
  const t = $o[e];
4875
- return t || de(0, e), t;
4892
+ return t || fe(0, e), t;
4876
4893
  }
4877
- var dt;
4878
- function ta() {
4879
- return dt;
4894
+ var _t;
4895
+ function na() {
4896
+ return _t;
4880
4897
  }
4881
4898
  function Lo(e, t) {
4882
4899
  return {
@@ -4890,16 +4907,16 @@ function Lo(e, t) {
4890
4907
  };
4891
4908
  }
4892
4909
  function Zn(e, t) {
4893
- t && (Xe("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
4910
+ t && (Ze("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
4894
4911
  }
4895
4912
  function on(e) {
4896
4913
  cn(e), e.drafts_.forEach(jo), e.drafts_ = null;
4897
4914
  }
4898
4915
  function cn(e) {
4899
- e === dt && (dt = e.parent_);
4916
+ e === _t && (_t = e.parent_);
4900
4917
  }
4901
4918
  function Jn(e) {
4902
- return dt = Lo(dt, e);
4919
+ return _t = Lo(_t, e);
4903
4920
  }
4904
4921
  function jo(e) {
4905
4922
  const t = e[me];
@@ -4908,12 +4925,12 @@ function jo(e) {
4908
4925
  function Qn(e, t) {
4909
4926
  t.unfinalizedDrafts_ = t.drafts_.length;
4910
4927
  const n = t.drafts_[0];
4911
- return e !== void 0 && e !== n ? (n[me].modified_ && (on(t), de(4)), Ke(e) && (e = Ot(t, e), t.parent_ || Pt(t, e)), t.patches_ && Xe("Patches").generateReplacementPatches_(
4928
+ return e !== void 0 && e !== n ? (n[me].modified_ && (on(t), fe(4)), Ye(e) && (e = Ot(t, e), t.parent_ || Pt(t, e)), t.patches_ && Ze("Patches").generateReplacementPatches_(
4912
4929
  n[me].base_,
4913
4930
  e,
4914
4931
  t.patches_,
4915
4932
  t.inversePatches_
4916
- )) : e = Ot(t, n, []), on(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Jr ? e : void 0;
4933
+ )) : e = Ot(t, n, []), on(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Qr ? e : void 0;
4917
4934
  }
4918
4935
  function Ot(e, t, n) {
4919
4936
  if (Lt(t))
@@ -4935,7 +4952,7 @@ function Ot(e, t, n) {
4935
4952
  r.type_ === 3 && (s = new Set(a), a.clear(), o = !0), Tt(
4936
4953
  s,
4937
4954
  (i, c) => er(e, r, a, i, c, n, o)
4938
- ), Pt(e, a, !1), n && e.patches_ && Xe("Patches").generatePatches_(
4955
+ ), Pt(e, a, !1), n && e.patches_ && Ze("Patches").generatePatches_(
4939
4956
  r,
4940
4957
  n,
4941
4958
  e.patches_,
@@ -4945,15 +4962,15 @@ function Ot(e, t, n) {
4945
4962
  return r.copy_;
4946
4963
  }
4947
4964
  function er(e, t, n, r, a, s, o) {
4948
- if (process.env.NODE_ENV !== "production" && a === n && de(5), We(a)) {
4965
+ if (process.env.NODE_ENV !== "production" && a === n && fe(5), Xe(a)) {
4949
4966
  const i = s && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
4950
4967
  !an(t.assigned_, r) ? s.concat(r) : void 0, c = Ot(e, a, i);
4951
- if (ea(n, r, c), We(c))
4968
+ if (ta(n, r, c), Xe(c))
4952
4969
  e.canAutoFreeze_ = !1;
4953
4970
  else
4954
4971
  return;
4955
4972
  } else o && n.add(a);
4956
- if (Ke(a) && !Lt(a)) {
4973
+ if (Ye(a) && !Lt(a)) {
4957
4974
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
4958
4975
  return;
4959
4976
  Ot(e, a), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && Pt(e, a);
@@ -4966,7 +4983,7 @@ function Bo(e, t) {
4966
4983
  const n = Array.isArray(e), r = {
4967
4984
  type_: n ? 1 : 0,
4968
4985
  // Track which produce call this is associated with.
4969
- scope_: t ? t.scope_ : ta(),
4986
+ scope_: t ? t.scope_ : na(),
4970
4987
  // True for both shallow and deep changes.
4971
4988
  modified_: !1,
4972
4989
  // Used during finalization.
@@ -4987,7 +5004,7 @@ function Bo(e, t) {
4987
5004
  isManual_: !1
4988
5005
  };
4989
5006
  let a = r, s = Nn;
4990
- n && (a = [r], s = _t);
5007
+ n && (a = [r], s = mt);
4991
5008
  const { revoke: o, proxy: i } = Proxy.revocable(a, s);
4992
5009
  return r.draft_ = i, r.revoke_ = o, i;
4993
5010
  }
@@ -4995,24 +5012,24 @@ var Nn = {
4995
5012
  get(e, t) {
4996
5013
  if (t === me)
4997
5014
  return e;
4998
- const n = Ue(e);
5015
+ const n = We(e);
4999
5016
  if (!an(n, t))
5000
5017
  return zo(e, n, t);
5001
5018
  const r = n[t];
5002
- return e.finalized_ || !Ke(r) ? r : r === Zt(e.base_, t) ? (Jt(e), e.copy_[t] = un(r, e)) : r;
5019
+ return e.finalized_ || !Ye(r) ? r : r === Zt(e.base_, t) ? (Jt(e), e.copy_[t] = un(r, e)) : r;
5003
5020
  },
5004
5021
  has(e, t) {
5005
- return t in Ue(e);
5022
+ return t in We(e);
5006
5023
  },
5007
5024
  ownKeys(e) {
5008
- return Reflect.ownKeys(Ue(e));
5025
+ return Reflect.ownKeys(We(e));
5009
5026
  },
5010
5027
  set(e, t, n) {
5011
- const r = na(Ue(e), t);
5028
+ const r = ra(We(e), t);
5012
5029
  if (r != null && r.set)
5013
5030
  return r.set.call(e.draft_, n), !0;
5014
5031
  if (!e.modified_) {
5015
- const a = Zt(Ue(e), t), s = a == null ? void 0 : a[me];
5032
+ const a = Zt(We(e), t), s = a == null ? void 0 : a[me];
5016
5033
  if (s && s.base_ === n)
5017
5034
  return e.copy_[t] = n, e.assigned_[t] = !1, !0;
5018
5035
  if (Mo(n, a) && (n !== void 0 || an(e.base_, t)))
@@ -5029,7 +5046,7 @@ var Nn = {
5029
5046
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
5030
5047
  // the same guarantee in ES5 mode.
5031
5048
  getOwnPropertyDescriptor(e, t) {
5032
- const n = Ue(e), r = Reflect.getOwnPropertyDescriptor(n, t);
5049
+ const n = We(e), r = Reflect.getOwnPropertyDescriptor(n, t);
5033
5050
  return r && {
5034
5051
  writable: !0,
5035
5052
  configurable: e.type_ !== 1 || t !== "length",
@@ -5038,48 +5055,48 @@ var Nn = {
5038
5055
  };
5039
5056
  },
5040
5057
  defineProperty() {
5041
- de(11);
5058
+ fe(11);
5042
5059
  },
5043
5060
  getPrototypeOf(e) {
5044
- return rt(e.base_);
5061
+ return at(e.base_);
5045
5062
  },
5046
5063
  setPrototypeOf() {
5047
- de(12);
5064
+ fe(12);
5048
5065
  }
5049
- }, _t = {};
5066
+ }, mt = {};
5050
5067
  Tt(Nn, (e, t) => {
5051
- _t[e] = function() {
5068
+ mt[e] = function() {
5052
5069
  return arguments[0] = arguments[0][0], t.apply(this, arguments);
5053
5070
  };
5054
5071
  });
5055
- _t.deleteProperty = function(e, t) {
5056
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && de(13), _t.set.call(this, e, t, void 0);
5072
+ mt.deleteProperty = function(e, t) {
5073
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && fe(13), mt.set.call(this, e, t, void 0);
5057
5074
  };
5058
- _t.set = function(e, t, n) {
5059
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && de(14), Nn.set.call(this, e[0], t, n, e[0]);
5075
+ mt.set = function(e, t, n) {
5076
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && fe(14), Nn.set.call(this, e[0], t, n, e[0]);
5060
5077
  };
5061
5078
  function Zt(e, t) {
5062
5079
  const n = e[me];
5063
- return (n ? Ue(n) : e)[t];
5080
+ return (n ? We(n) : e)[t];
5064
5081
  }
5065
5082
  function zo(e, t, n) {
5066
5083
  var a;
5067
- const r = na(t, n);
5084
+ const r = ra(t, n);
5068
5085
  return r ? "value" in r ? r.value : (
5069
5086
  // This is a very special case, if the prop is a getter defined by the
5070
5087
  // prototype, we should invoke it with the draft as context!
5071
5088
  (a = r.get) == null ? void 0 : a.call(e.draft_)
5072
5089
  ) : void 0;
5073
5090
  }
5074
- function na(e, t) {
5091
+ function ra(e, t) {
5075
5092
  if (!(t in e))
5076
5093
  return;
5077
- let n = rt(e);
5094
+ let n = at(e);
5078
5095
  for (; n; ) {
5079
5096
  const r = Object.getOwnPropertyDescriptor(n, t);
5080
5097
  if (r)
5081
5098
  return r;
5082
- n = rt(n);
5099
+ n = at(n);
5083
5100
  }
5084
5101
  }
5085
5102
  function ln(e) {
@@ -5102,9 +5119,9 @@ var Ho = class {
5102
5119
  return o.produce(c, (u) => n.call(this, u, ...l));
5103
5120
  };
5104
5121
  }
5105
- typeof n != "function" && de(6), r !== void 0 && typeof r != "function" && de(7);
5122
+ typeof n != "function" && fe(6), r !== void 0 && typeof r != "function" && fe(7);
5106
5123
  let a;
5107
- if (Ke(t)) {
5124
+ if (Ye(t)) {
5108
5125
  const s = Jn(this), o = un(t, void 0);
5109
5126
  let i = !0;
5110
5127
  try {
@@ -5114,13 +5131,13 @@ var Ho = class {
5114
5131
  }
5115
5132
  return Zn(s, r), Qn(a, s);
5116
5133
  } else if (!t || typeof t != "object") {
5117
- if (a = n(t), a === void 0 && (a = t), a === Jr && (a = void 0), this.autoFreeze_ && wn(a, !0), r) {
5134
+ if (a = n(t), a === void 0 && (a = t), a === Qr && (a = void 0), this.autoFreeze_ && wn(a, !0), r) {
5118
5135
  const s = [], o = [];
5119
- Xe("Patches").generateReplacementPatches_(t, a, s, o), r(s, o);
5136
+ Ze("Patches").generateReplacementPatches_(t, a, s, o), r(s, o);
5120
5137
  }
5121
5138
  return a;
5122
5139
  } else
5123
- de(1, t);
5140
+ fe(1, t);
5124
5141
  }, this.produceWithPatches = (t, n) => {
5125
5142
  if (typeof t == "function")
5126
5143
  return (o, ...i) => this.produceWithPatches(o, (c) => t(c, ...i));
@@ -5131,13 +5148,13 @@ var Ho = class {
5131
5148
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
5132
5149
  }
5133
5150
  createDraft(e) {
5134
- Ke(e) || de(8), We(e) && (e = Go(e));
5151
+ Ye(e) || fe(8), Xe(e) && (e = Go(e));
5135
5152
  const t = Jn(this), n = un(e, void 0);
5136
5153
  return n[me].isManual_ = !0, cn(t), n;
5137
5154
  }
5138
5155
  finishDraft(e, t) {
5139
5156
  const n = e && e[me];
5140
- (!n || !n.isManual_) && de(9);
5157
+ (!n || !n.isManual_) && fe(9);
5141
5158
  const { scope_: r } = n;
5142
5159
  return Zn(r, t), Qn(void 0, r);
5143
5160
  }
@@ -5167,22 +5184,22 @@ var Ho = class {
5167
5184
  }
5168
5185
  }
5169
5186
  n > -1 && (t = t.slice(n + 1));
5170
- const r = Xe("Patches").applyPatches_;
5171
- return We(e) ? r(e, t) : this.produce(
5187
+ const r = Ze("Patches").applyPatches_;
5188
+ return Xe(e) ? r(e, t) : this.produce(
5172
5189
  e,
5173
5190
  (a) => r(a, t)
5174
5191
  );
5175
5192
  }
5176
5193
  };
5177
5194
  function un(e, t) {
5178
- const n = Dt(e) ? Xe("MapSet").proxyMap_(e, t) : $t(e) ? Xe("MapSet").proxySet_(e, t) : Bo(e, t);
5179
- return (t ? t.scope_ : ta()).drafts_.push(n), n;
5195
+ const n = Dt(e) ? Ze("MapSet").proxyMap_(e, t) : $t(e) ? Ze("MapSet").proxySet_(e, t) : Bo(e, t);
5196
+ return (t ? t.scope_ : na()).drafts_.push(n), n;
5180
5197
  }
5181
5198
  function Go(e) {
5182
- return We(e) || de(10, e), ra(e);
5199
+ return Xe(e) || fe(10, e), aa(e);
5183
5200
  }
5184
- function ra(e) {
5185
- if (!Ke(e) || Lt(e))
5201
+ function aa(e) {
5202
+ if (!Ye(e) || Lt(e))
5186
5203
  return e;
5187
5204
  const t = e[me];
5188
5205
  let n;
@@ -5193,7 +5210,7 @@ function ra(e) {
5193
5210
  } else
5194
5211
  n = sn(e, !0);
5195
5212
  return Tt(n, (r, a) => {
5196
- ea(n, r, ra(a));
5213
+ ta(n, r, aa(a));
5197
5214
  }), t && (t.finalized_ = !1), n;
5198
5215
  }
5199
5216
  var ge = new Ho(), Fn = ge.produce;
@@ -5379,29 +5396,29 @@ var tr = ge.createDraft.bind(ge), nr = ge.finishDraft.bind(ge), p = {
5379
5396
  return r;
5380
5397
  }
5381
5398
  };
5382
- function mt(e) {
5399
+ function gt(e) {
5383
5400
  "@babel/helpers - typeof";
5384
- return mt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
5401
+ return gt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
5385
5402
  return typeof t;
5386
5403
  } : function(t) {
5387
5404
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
5388
- }, mt(e);
5405
+ }, gt(e);
5389
5406
  }
5390
5407
  function Vo(e, t) {
5391
- if (mt(e) !== "object" || e === null) return e;
5408
+ if (gt(e) !== "object" || e === null) return e;
5392
5409
  var n = e[Symbol.toPrimitive];
5393
5410
  if (n !== void 0) {
5394
5411
  var r = n.call(e, t);
5395
- if (mt(r) !== "object") return r;
5412
+ if (gt(r) !== "object") return r;
5396
5413
  throw new TypeError("@@toPrimitive must return a primitive value.");
5397
5414
  }
5398
5415
  return (t === "string" ? String : Number)(e);
5399
5416
  }
5400
5417
  function Uo(e) {
5401
5418
  var t = Vo(e, "string");
5402
- return mt(t) === "symbol" ? t : String(t);
5419
+ return gt(t) === "symbol" ? t : String(t);
5403
5420
  }
5404
- function st(e, t, n) {
5421
+ function ot(e, t, n) {
5405
5422
  return t = Uo(t), t in e ? Object.defineProperty(e, t, {
5406
5423
  value: n,
5407
5424
  enumerable: !0,
@@ -5419,11 +5436,11 @@ function rr(e, t) {
5419
5436
  }
5420
5437
  return n;
5421
5438
  }
5422
- function ot(e) {
5439
+ function it(e) {
5423
5440
  for (var t = 1; t < arguments.length; t++) {
5424
5441
  var n = arguments[t] != null ? arguments[t] : {};
5425
5442
  t % 2 ? rr(Object(n), !0).forEach(function(r) {
5426
- st(e, r, n[r]);
5443
+ ot(e, r, n[r]);
5427
5444
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rr(Object(n)).forEach(function(r) {
5428
5445
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
5429
5446
  });
@@ -5460,136 +5477,136 @@ var qo = (e, t, n) => {
5460
5477
  case "merge_node": {
5461
5478
  var {
5462
5479
  path: C
5463
- } = n, x = N.get(e, C), v = p.previous(C), w = N.get(e, v), H = N.parent(e, C), L = C[C.length - 1];
5480
+ } = n, x = N.get(e, C), v = p.previous(C), w = N.get(e, v), z = N.parent(e, C), j = C[C.length - 1];
5464
5481
  if (W.isText(x) && W.isText(w))
5465
5482
  w.text += x.text;
5466
5483
  else if (!W.isText(x) && !W.isText(w))
5467
5484
  w.children.push(...x.children);
5468
5485
  else
5469
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C, "] to nodes of different interfaces: ").concat(we.stringify(x), " ").concat(we.stringify(w)));
5470
- if (H.children.splice(L, 1), t)
5471
- for (var [T, G] of R.points(t))
5472
- t[G] = U.transform(T, n);
5486
+ throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C, "] to nodes of different interfaces: ").concat(Ne.stringify(x), " ").concat(Ne.stringify(w)));
5487
+ if (z.children.splice(j, 1), t)
5488
+ for (var [O, H] of R.points(t))
5489
+ t[H] = U.transform(O, n);
5473
5490
  break;
5474
5491
  }
5475
5492
  case "move_node": {
5476
5493
  var {
5477
- path: S,
5494
+ path: A,
5478
5495
  newPath: b
5479
5496
  } = n;
5480
- if (p.isAncestor(S, b))
5481
- throw new Error("Cannot move a path [".concat(S, "] to new path [").concat(b, "] because the destination is inside itself."));
5482
- var O = N.get(e, S), M = N.parent(e, S), P = S[S.length - 1];
5483
- M.children.splice(P, 1);
5484
- var j = p.transform(S, n), D = N.get(e, p.parent(j)), B = j[j.length - 1];
5485
- if (D.children.splice(B, 0, O), t)
5486
- for (var [I, Z] of R.points(t))
5487
- t[Z] = U.transform(I, n);
5497
+ if (p.isAncestor(A, b))
5498
+ throw new Error("Cannot move a path [".concat(A, "] to new path [").concat(b, "] because the destination is inside itself."));
5499
+ var S = N.get(e, A), M = N.parent(e, A), I = A[A.length - 1];
5500
+ M.children.splice(I, 1);
5501
+ var L = p.transform(A, n), D = N.get(e, p.parent(L)), B = L[L.length - 1];
5502
+ if (D.children.splice(B, 0, S), t)
5503
+ for (var [T, Y] of R.points(t))
5504
+ t[Y] = U.transform(T, n);
5488
5505
  break;
5489
5506
  }
5490
5507
  case "remove_node": {
5491
5508
  var {
5492
5509
  path: E
5493
- } = n, ie = E[E.length - 1], te = N.parent(e, E);
5494
- if (te.children.splice(ie, 1), t)
5495
- for (var [J, ve] of R.points(t)) {
5496
- var ce = U.transform(J, n);
5510
+ } = n, _e = E[E.length - 1], X = N.parent(e, E);
5511
+ if (X.children.splice(_e, 1), t)
5512
+ for (var [Z, he] of R.points(t)) {
5513
+ var ce = U.transform(Z, n);
5497
5514
  if (t != null && ce != null)
5498
- t[ve] = ce;
5515
+ t[he] = ce;
5499
5516
  else {
5500
- var re = void 0, ae = void 0;
5501
- for (var [$, X] of N.texts(e))
5502
- if (p.compare(X, E) === -1)
5503
- re = [$, X];
5517
+ var se = void 0, te = void 0;
5518
+ for (var [$, ne] of N.texts(e))
5519
+ if (p.compare(ne, E) === -1)
5520
+ se = [$, ne];
5504
5521
  else {
5505
- ae = [$, X];
5522
+ te = [$, ne];
5506
5523
  break;
5507
5524
  }
5508
- var Re = !1;
5509
- re && ae && (p.equals(ae[1], E) ? Re = !p.hasPrevious(ae[1]) : Re = p.common(re[1], E).length < p.common(ae[1], E).length), re && !Re ? (J.path = re[1], J.offset = re[0].text.length) : ae ? (J.path = ae[1], J.offset = 0) : t = null;
5525
+ var Te = !1;
5526
+ se && te && (p.equals(te[1], E) ? Te = !p.hasPrevious(te[1]) : Te = p.common(se[1], E).length < p.common(te[1], E).length), se && !Te ? (Z.path = se[1], Z.offset = se[0].text.length) : te ? (Z.path = te[1], Z.offset = 0) : t = null;
5510
5527
  }
5511
5528
  }
5512
5529
  break;
5513
5530
  }
5514
5531
  case "remove_text": {
5515
5532
  var {
5516
- path: Ze,
5517
- offset: Me,
5518
- text: z
5533
+ path: De,
5534
+ offset: ke,
5535
+ text: G
5519
5536
  } = n;
5520
- if (z.length === 0) break;
5521
- var le = N.leaf(e, Ze), vt = le.text.slice(0, Me), qt = le.text.slice(Me + z.length);
5522
- if (le.text = vt + qt, t)
5523
- for (var [fe, De] of R.points(t))
5524
- t[De] = U.transform(fe, n);
5537
+ if (G.length === 0) break;
5538
+ var re = N.leaf(e, De), $e = re.text.slice(0, ke), qt = re.text.slice(ke + G.length);
5539
+ if (re.text = $e + qt, t)
5540
+ for (var [ue, Le] of R.points(t))
5541
+ t[Le] = U.transform(ue, n);
5525
5542
  break;
5526
5543
  }
5527
5544
  case "set_node": {
5528
5545
  var {
5529
- path: He,
5530
- properties: Fa,
5546
+ path: Ve,
5547
+ properties: Sa,
5531
5548
  newProperties: Wt
5532
5549
  } = n;
5533
- if (He.length === 0)
5550
+ if (Ve.length === 0)
5534
5551
  throw new Error("Cannot set properties on the root node!");
5535
- var Kt = N.get(e, He);
5536
- for (var Je in Wt) {
5537
- if (Je === "children" || Je === "text")
5538
- throw new Error('Cannot set the "'.concat(Je, '" property of nodes!'));
5539
- var Bn = Wt[Je];
5540
- Bn == null ? delete Kt[Je] : Kt[Je] = Bn;
5552
+ var Kt = N.get(e, Ve);
5553
+ for (var Qe in Wt) {
5554
+ if (Qe === "children" || Qe === "text")
5555
+ throw new Error('Cannot set the "'.concat(Qe, '" property of nodes!'));
5556
+ var Bn = Wt[Qe];
5557
+ Bn == null ? delete Kt[Qe] : Kt[Qe] = Bn;
5541
5558
  }
5542
- for (var zn in Fa)
5559
+ for (var zn in Sa)
5543
5560
  Wt.hasOwnProperty(zn) || delete Kt[zn];
5544
5561
  break;
5545
5562
  }
5546
5563
  case "set_selection": {
5547
5564
  var {
5548
- newProperties: Ge
5565
+ newProperties: Ue
5549
5566
  } = n;
5550
- if (Ge == null)
5551
- t = Ge;
5567
+ if (Ue == null)
5568
+ t = Ue;
5552
5569
  else {
5553
5570
  if (t == null) {
5554
- if (!R.isRange(Ge))
5555
- throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(we.stringify(Ge), " when there is no current selection."));
5556
- t = ot({}, Ge);
5571
+ if (!R.isRange(Ue))
5572
+ throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ne.stringify(Ue), " when there is no current selection."));
5573
+ t = it({}, Ue);
5557
5574
  }
5558
- for (var Qe in Ge) {
5559
- var Hn = Ge[Qe];
5575
+ for (var et in Ue) {
5576
+ var Hn = Ue[et];
5560
5577
  if (Hn == null) {
5561
- if (Qe === "anchor" || Qe === "focus")
5562
- throw new Error('Cannot remove the "'.concat(Qe, '" selection property'));
5563
- delete t[Qe];
5578
+ if (et === "anchor" || et === "focus")
5579
+ throw new Error('Cannot remove the "'.concat(et, '" selection property'));
5580
+ delete t[et];
5564
5581
  } else
5565
- t[Qe] = Hn;
5582
+ t[et] = Hn;
5566
5583
  }
5567
5584
  }
5568
5585
  break;
5569
5586
  }
5570
5587
  case "split_node": {
5571
5588
  var {
5572
- path: et,
5589
+ path: tt,
5573
5590
  position: kt,
5574
5591
  properties: Gn
5575
5592
  } = n;
5576
- if (et.length === 0)
5577
- throw new Error('Cannot apply a "split_node" operation at path ['.concat(et, "] because the root node cannot be split."));
5578
- var Ve = N.get(e, et), Sa = N.parent(e, et), Ta = et[et.length - 1], Xt;
5579
- if (W.isText(Ve)) {
5580
- var Oa = Ve.text.slice(0, kt), Pa = Ve.text.slice(kt);
5581
- Ve.text = Oa, Xt = ot(ot({}, Gn), {}, {
5582
- text: Pa
5593
+ if (tt.length === 0)
5594
+ throw new Error('Cannot apply a "split_node" operation at path ['.concat(tt, "] because the root node cannot be split."));
5595
+ var qe = N.get(e, tt), Ta = N.parent(e, tt), Oa = tt[tt.length - 1], Xt;
5596
+ if (W.isText(qe)) {
5597
+ var Pa = qe.text.slice(0, kt), Aa = qe.text.slice(kt);
5598
+ qe.text = Pa, Xt = it(it({}, Gn), {}, {
5599
+ text: Aa
5583
5600
  });
5584
5601
  } else {
5585
- var Aa = Ve.children.slice(0, kt), Ia = Ve.children.slice(kt);
5586
- Ve.children = Aa, Xt = ot(ot({}, Gn), {}, {
5587
- children: Ia
5602
+ var Ia = qe.children.slice(0, kt), Ra = qe.children.slice(kt);
5603
+ qe.children = Ia, Xt = it(it({}, Gn), {}, {
5604
+ children: Ra
5588
5605
  });
5589
5606
  }
5590
- if (Sa.children.splice(Ta + 1, 0, Xt), t)
5591
- for (var [Ra, Ma] of R.points(t))
5592
- t[Ma] = U.transform(Ra, n);
5607
+ if (Ta.children.splice(Oa + 1, 0, Xt), t)
5608
+ for (var [Ma, Da] of R.points(t))
5609
+ t[Da] = U.transform(Ma, n);
5593
5610
  break;
5594
5611
  }
5595
5612
  }
@@ -5601,7 +5618,7 @@ var qo = (e, t, n) => {
5601
5618
  try {
5602
5619
  n = qo(e, n, t);
5603
5620
  } finally {
5604
- e.children = nr(e.children), n ? e.selection = We(n) ? nr(n) : n : e.selection = null;
5621
+ e.children = nr(e.children), n ? e.selection = Xe(n) ? nr(n) : n : e.selection = null;
5605
5622
  }
5606
5623
  }
5607
5624
  }, Ko = {
@@ -5654,11 +5671,11 @@ var qo = (e, t, n) => {
5654
5671
  setSelection(e, t) {
5655
5672
  e.setSelection(t);
5656
5673
  }
5657
- }, aa = (e, t) => {
5674
+ }, sa = (e, t) => {
5658
5675
  for (var n in e) {
5659
5676
  var r = e[n], a = t[n];
5660
- if (se(r) && se(a)) {
5661
- if (!aa(r, a)) return !1;
5677
+ if (oe(r) && oe(a)) {
5678
+ if (!sa(r, a)) return !1;
5662
5679
  } else if (Array.isArray(r) && Array.isArray(a)) {
5663
5680
  if (r.length !== a.length) return !1;
5664
5681
  for (var s = 0; s < r.length; s++)
@@ -5678,7 +5695,7 @@ function Yo(e, t) {
5678
5695
  a = r[s], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
5679
5696
  return n;
5680
5697
  }
5681
- function gt(e, t) {
5698
+ function ht(e, t) {
5682
5699
  if (e == null) return {};
5683
5700
  var n = Yo(e, t), r, a;
5684
5701
  if (Object.getOwnPropertySymbols) {
@@ -5703,7 +5720,7 @@ function Jo(e) {
5703
5720
  for (var t = 1; t < arguments.length; t++) {
5704
5721
  var n = arguments[t] != null ? arguments[t] : {};
5705
5722
  t % 2 ? ar(Object(n), !0).forEach(function(r) {
5706
- st(e, r, n[r]);
5723
+ ot(e, r, n[r]);
5707
5724
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ar(Object(n)).forEach(function(r) {
5708
5725
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
5709
5726
  });
@@ -5738,7 +5755,7 @@ var R = {
5738
5755
  return U.isPoint(t) ? (c = U.compare(t, o) >= 0, l = U.compare(t, i) <= 0) : (c = p.compare(t, o.path) >= 0, l = p.compare(t, i.path) <= 0), c && l;
5739
5756
  },
5740
5757
  intersection(e, t) {
5741
- var n = gt(e, Zo), [r, a] = R.edges(e), [s, o] = R.edges(t), i = U.isBefore(r, s) ? s : r, c = U.isBefore(a, o) ? a : o;
5758
+ var n = ht(e, Zo), [r, a] = R.edges(e), [s, o] = R.edges(t), i = U.isBefore(r, s) ? s : r, c = U.isBefore(a, o) ? a : o;
5742
5759
  return U.isBefore(c, i) ? null : Jo({
5743
5760
  anchor: i,
5744
5761
  focus: c
@@ -5765,7 +5782,7 @@ var R = {
5765
5782
  return !R.isBackward(e);
5766
5783
  },
5767
5784
  isRange(e) {
5768
- return se(e) && U.isPoint(e.anchor) && U.isPoint(e.focus);
5785
+ return oe(e) && U.isPoint(e.anchor) && U.isPoint(e.focus);
5769
5786
  },
5770
5787
  *points(e) {
5771
5788
  yield [e.anchor, "anchor"], yield [e.focus, "focus"];
@@ -5796,13 +5813,13 @@ var R = {
5796
5813
  r.anchor = c, r.focus = l;
5797
5814
  });
5798
5815
  }
5799
- }, sr = (e) => se(e) && N.isNodeList(e.children) && !he.isEditor(e), $e = {
5816
+ }, sr = (e) => oe(e) && N.isNodeList(e.children) && !pe.isEditor(e), je = {
5800
5817
  isAncestor(e) {
5801
- return se(e) && N.isNodeList(e.children);
5818
+ return oe(e) && N.isNodeList(e.children);
5802
5819
  },
5803
5820
  isElement: sr,
5804
5821
  isElementList(e) {
5805
- return Array.isArray(e) && e.every((t) => $e.isElement(t));
5822
+ return Array.isArray(e) && e.every((t) => je.isElement(t));
5806
5823
  },
5807
5824
  isElementProps(e) {
5808
5825
  return e.children !== void 0;
@@ -5821,7 +5838,7 @@ var R = {
5821
5838
  ancestor(e, t) {
5822
5839
  var n = N.get(e, t);
5823
5840
  if (W.isText(n))
5824
- throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(we.stringify(n)));
5841
+ throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(Ne.stringify(n)));
5825
5842
  return n;
5826
5843
  },
5827
5844
  ancestors(e, t) {
@@ -5835,10 +5852,10 @@ var R = {
5835
5852
  },
5836
5853
  child(e, t) {
5837
5854
  if (W.isText(e))
5838
- throw new Error("Cannot get the child of a text node: ".concat(we.stringify(e)));
5855
+ throw new Error("Cannot get the child of a text node: ".concat(Ne.stringify(e)));
5839
5856
  var n = e.children[t];
5840
5857
  if (n == null)
5841
- throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(we.stringify(e)));
5858
+ throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(Ne.stringify(e)));
5842
5859
  return n;
5843
5860
  },
5844
5861
  children(e, t) {
@@ -5860,8 +5877,8 @@ var R = {
5860
5877
  },
5861
5878
  descendant(e, t) {
5862
5879
  var n = N.get(e, t);
5863
- if (he.isEditor(n))
5864
- throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(we.stringify(n)));
5880
+ if (pe.isEditor(n))
5881
+ throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(Ne.stringify(n)));
5865
5882
  return n;
5866
5883
  },
5867
5884
  descendants(e) {
@@ -5875,15 +5892,15 @@ var R = {
5875
5892
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5876
5893
  return function* () {
5877
5894
  for (var [n, r] of N.nodes(e, t))
5878
- $e.isElement(n) && (yield [n, r]);
5895
+ je.isElement(n) && (yield [n, r]);
5879
5896
  }();
5880
5897
  },
5881
5898
  extractProps(e) {
5882
- if ($e.isAncestor(e)) {
5883
- var t = gt(e, Qo);
5899
+ if (je.isAncestor(e)) {
5900
+ var t = ht(e, Qo);
5884
5901
  return t;
5885
5902
  } else {
5886
- var t = gt(e, ei);
5903
+ var t = ht(e, ei);
5887
5904
  return t;
5888
5905
  }
5889
5906
  },
@@ -5894,7 +5911,7 @@ var R = {
5894
5911
  },
5895
5912
  fragment(e, t) {
5896
5913
  if (W.isText(e))
5897
- throw new Error("Cannot get a fragment starting from a root text node: ".concat(we.stringify(e)));
5914
+ throw new Error("Cannot get a fragment starting from a root text node: ".concat(Ne.stringify(e)));
5898
5915
  var n = Fn({
5899
5916
  children: e.children
5900
5917
  }, (r) => {
@@ -5919,7 +5936,7 @@ var R = {
5919
5936
  d.text = d.text.slice(a.offset);
5920
5937
  }
5921
5938
  }
5922
- he.isEditor(r) && (r.selection = null);
5939
+ pe.isEditor(r) && (r.selection = null);
5923
5940
  });
5924
5941
  return n.children;
5925
5942
  },
@@ -5927,7 +5944,7 @@ var R = {
5927
5944
  for (var n = e, r = 0; r < t.length; r++) {
5928
5945
  var a = t[r];
5929
5946
  if (W.isText(n) || !n.children[a])
5930
- throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(we.stringify(e)));
5947
+ throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(Ne.stringify(e)));
5931
5948
  n = n.children[a];
5932
5949
  }
5933
5950
  return n;
@@ -5942,7 +5959,7 @@ var R = {
5942
5959
  return !0;
5943
5960
  },
5944
5961
  isNode(e) {
5945
- return W.isText(e) || $e.isElement(e) || he.isEditor(e);
5962
+ return W.isText(e) || je.isElement(e) || pe.isEditor(e);
5946
5963
  },
5947
5964
  isNodeList(e) {
5948
5965
  if (!Array.isArray(e))
@@ -5963,7 +5980,7 @@ var R = {
5963
5980
  leaf(e, t) {
5964
5981
  var n = N.get(e, t);
5965
5982
  if (!W.isText(n))
5966
- throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(we.stringify(n)));
5983
+ throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(Ne.stringify(n)));
5967
5984
  return n;
5968
5985
  },
5969
5986
  levels(e, t) {
@@ -5976,7 +5993,7 @@ var R = {
5976
5993
  }();
5977
5994
  },
5978
5995
  matches(e, t) {
5979
- return $e.isElement(e) && $e.isElementProps(t) && $e.matches(e, t) || W.isText(e) && W.isTextProps(t) && W.matches(e, t);
5996
+ return je.isElement(e) && je.isElementProps(t) && je.matches(e, t) || W.isText(e) && W.isTextProps(t) && W.matches(e, t);
5980
5997
  },
5981
5998
  nodes(e) {
5982
5999
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -6043,19 +6060,19 @@ function q(e) {
6043
6060
  for (var t = 1; t < arguments.length; t++) {
6044
6061
  var n = arguments[t] != null ? arguments[t] : {};
6045
6062
  t % 2 ? ir(Object(n), !0).forEach(function(r) {
6046
- st(e, r, n[r]);
6063
+ ot(e, r, n[r]);
6047
6064
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ir(Object(n)).forEach(function(r) {
6048
6065
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
6049
6066
  });
6050
6067
  }
6051
6068
  return e;
6052
6069
  }
6053
- var it = {
6070
+ var ct = {
6054
6071
  isNodeOperation(e) {
6055
- return it.isOperation(e) && e.type.endsWith("_node");
6072
+ return ct.isOperation(e) && e.type.endsWith("_node");
6056
6073
  },
6057
6074
  isOperation(e) {
6058
- if (!se(e))
6075
+ if (!oe(e))
6059
6076
  return !1;
6060
6077
  switch (e.type) {
6061
6078
  case "insert_node":
@@ -6063,7 +6080,7 @@ var it = {
6063
6080
  case "insert_text":
6064
6081
  return typeof e.offset == "number" && typeof e.text == "string" && p.isPath(e.path);
6065
6082
  case "merge_node":
6066
- return typeof e.position == "number" && p.isPath(e.path) && se(e.properties);
6083
+ return typeof e.position == "number" && p.isPath(e.path) && oe(e.properties);
6067
6084
  case "move_node":
6068
6085
  return p.isPath(e.path) && p.isPath(e.newPath);
6069
6086
  case "remove_node":
@@ -6071,23 +6088,23 @@ var it = {
6071
6088
  case "remove_text":
6072
6089
  return typeof e.offset == "number" && typeof e.text == "string" && p.isPath(e.path);
6073
6090
  case "set_node":
6074
- return p.isPath(e.path) && se(e.properties) && se(e.newProperties);
6091
+ return p.isPath(e.path) && oe(e.properties) && oe(e.newProperties);
6075
6092
  case "set_selection":
6076
- return e.properties === null && R.isRange(e.newProperties) || e.newProperties === null && R.isRange(e.properties) || se(e.properties) && se(e.newProperties);
6093
+ return e.properties === null && R.isRange(e.newProperties) || e.newProperties === null && R.isRange(e.properties) || oe(e.properties) && oe(e.newProperties);
6077
6094
  case "split_node":
6078
- return p.isPath(e.path) && typeof e.position == "number" && se(e.properties);
6095
+ return p.isPath(e.path) && typeof e.position == "number" && oe(e.properties);
6079
6096
  default:
6080
6097
  return !1;
6081
6098
  }
6082
6099
  },
6083
6100
  isOperationList(e) {
6084
- return Array.isArray(e) && e.every((t) => it.isOperation(t));
6101
+ return Array.isArray(e) && e.every((t) => ct.isOperation(t));
6085
6102
  },
6086
6103
  isSelectionOperation(e) {
6087
- return it.isOperation(e) && e.type.endsWith("_selection");
6104
+ return ct.isOperation(e) && e.type.endsWith("_selection");
6088
6105
  },
6089
6106
  isTextOperation(e) {
6090
- return it.isOperation(e) && e.type.endsWith("_text");
6107
+ return ct.isOperation(e) && e.type.endsWith("_text");
6091
6108
  },
6092
6109
  inverse(e) {
6093
6110
  switch (e.type) {
@@ -6167,11 +6184,11 @@ var it = {
6167
6184
  var t = cr.get(e);
6168
6185
  if (t !== void 0)
6169
6186
  return t;
6170
- if (!se(e))
6187
+ if (!oe(e))
6171
6188
  return !1;
6172
- var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || se(e.marks)) && (e.selection === null || R.isRange(e.selection)) && N.isNodeList(e.children) && it.isOperationList(e.operations);
6189
+ var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || oe(e.marks)) && (e.selection === null || R.isRange(e.selection)) && N.isNodeList(e.children) && ct.isOperationList(e.operations);
6173
6190
  return cr.set(e, n), n;
6174
- }, he = {
6191
+ }, pe = {
6175
6192
  above(e, t) {
6176
6193
  return e.above(t);
6177
6194
  },
@@ -6372,7 +6389,7 @@ function ur(e) {
6372
6389
  for (var t = 1; t < arguments.length; t++) {
6373
6390
  var n = arguments[t] != null ? arguments[t] : {};
6374
6391
  t % 2 ? lr(Object(n), !0).forEach(function(r) {
6375
- st(e, r, n[r]);
6392
+ ot(e, r, n[r]);
6376
6393
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lr(Object(n)).forEach(function(r) {
6377
6394
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
6378
6395
  });
@@ -6394,7 +6411,7 @@ var U = {
6394
6411
  return e.offset === t.offset && p.equals(e.path, t.path);
6395
6412
  },
6396
6413
  isPoint(e) {
6397
- return se(e) && typeof e.offset == "number" && p.isPath(e.path);
6414
+ return oe(e) && typeof e.offset == "number" && p.isPath(e.path);
6398
6415
  },
6399
6416
  transform(e, t) {
6400
6417
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -6445,7 +6462,7 @@ var U = {
6445
6462
  }
6446
6463
  });
6447
6464
  }
6448
- }, fr = void 0, we = {
6465
+ }, fr = void 0, Ne = {
6449
6466
  setScrubber(e) {
6450
6467
  fr = e;
6451
6468
  },
@@ -6463,11 +6480,11 @@ function dr(e, t) {
6463
6480
  }
6464
6481
  return n;
6465
6482
  }
6466
- function Te(e) {
6483
+ function Pe(e) {
6467
6484
  for (var t = 1; t < arguments.length; t++) {
6468
6485
  var n = arguments[t] != null ? arguments[t] : {};
6469
6486
  t % 2 ? dr(Object(n), !0).forEach(function(r) {
6470
- st(e, r, n[r]);
6487
+ ot(e, r, n[r]);
6471
6488
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dr(Object(n)).forEach(function(r) {
6472
6489
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
6473
6490
  });
@@ -6480,13 +6497,13 @@ var W = {
6480
6497
  loose: r = !1
6481
6498
  } = n;
6482
6499
  function a(s) {
6483
- var o = gt(s, ni);
6500
+ var o = ht(s, ni);
6484
6501
  return o;
6485
6502
  }
6486
- return aa(r ? a(e) : e, r ? a(t) : t);
6503
+ return sa(r ? a(e) : e, r ? a(t) : t);
6487
6504
  },
6488
6505
  isText(e) {
6489
- return se(e) && typeof e.text == "string";
6506
+ return oe(e) && typeof e.text == "string";
6490
6507
  },
6491
6508
  isTextList(e) {
6492
6509
  return Array.isArray(e) && e.every((t) => W.isText(t));
@@ -6501,9 +6518,9 @@ var W = {
6501
6518
  return !0;
6502
6519
  },
6503
6520
  decorations(e, t) {
6504
- var n = [Te({}, e)];
6521
+ var n = [Pe({}, e)];
6505
6522
  for (var r of t) {
6506
- var a = gt(r, ri), [s, o] = R.edges(r), i = [], c = 0, l = s.offset, u = o.offset;
6523
+ var a = ht(r, ri), [s, o] = R.edges(r), i = [], c = 0, l = s.offset, u = o.offset;
6507
6524
  for (var d of n) {
6508
6525
  var {
6509
6526
  length: _
@@ -6519,17 +6536,17 @@ var W = {
6519
6536
  var m = d, g = void 0, y = void 0;
6520
6537
  if (u < c) {
6521
6538
  var C = u - h;
6522
- y = Te(Te({}, m), {}, {
6539
+ y = Pe(Pe({}, m), {}, {
6523
6540
  text: m.text.slice(C)
6524
- }), m = Te(Te({}, m), {}, {
6541
+ }), m = Pe(Pe({}, m), {}, {
6525
6542
  text: m.text.slice(0, C)
6526
6543
  });
6527
6544
  }
6528
6545
  if (l > h) {
6529
6546
  var x = l - h;
6530
- g = Te(Te({}, m), {}, {
6547
+ g = Pe(Pe({}, m), {}, {
6531
6548
  text: m.text.slice(0, x)
6532
- }), m = Te(Te({}, m), {}, {
6549
+ }), m = Pe(Pe({}, m), {}, {
6533
6550
  text: m.text.slice(x)
6534
6551
  });
6535
6552
  }
@@ -6539,7 +6556,7 @@ var W = {
6539
6556
  }
6540
6557
  return n;
6541
6558
  }
6542
- }, ai = (e) => e.selection ? e.selection : e.children.length > 0 ? he.end(e, []) : [0], V;
6559
+ }, ai = (e) => e.selection ? e.selection : e.children.length > 0 ? pe.end(e, []) : [0], V;
6543
6560
  (function(e) {
6544
6561
  e[e.None = 0] = "None", e[e.Extend = 1] = "Extend", e[e.ZWJ = 2] = "ZWJ", e[e.RI = 4] = "RI", e[e.Prepend = 8] = "Prepend", e[e.SpacingMark = 16] = "SpacingMark", e[e.L = 32] = "L", e[e.V = 64] = "V", e[e.T = 128] = "T", e[e.LV = 256] = "LV", e[e.LVT = 512] = "LVT", e[e.ExtPict = 1024] = "ExtPict", e[e.Any = 2048] = "Any";
6545
6562
  })(V || (V = {}));
@@ -6553,22 +6570,22 @@ var si = {
6553
6570
  },
6554
6571
  insertText(e, t) {
6555
6572
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6556
- he.withoutNormalizing(e, () => {
6573
+ pe.withoutNormalizing(e, () => {
6557
6574
  var {
6558
6575
  voids: r = !1
6559
6576
  } = n, {
6560
6577
  at: a = ai(e)
6561
6578
  } = n;
6562
- if (p.isPath(a) && (a = he.range(e, a)), R.isRange(a))
6579
+ if (p.isPath(a) && (a = pe.range(e, a)), R.isRange(a))
6563
6580
  if (R.isCollapsed(a))
6564
6581
  a = a.anchor;
6565
6582
  else {
6566
6583
  var s = R.end(a);
6567
- if (!r && he.void(e, {
6584
+ if (!r && pe.void(e, {
6568
6585
  at: s
6569
6586
  }))
6570
6587
  return;
6571
- var o = R.start(a), i = he.pointRef(e, o), c = he.pointRef(e, s);
6588
+ var o = R.start(a), i = pe.pointRef(e, o), c = pe.pointRef(e, s);
6572
6589
  mr.delete(e, {
6573
6590
  at: a,
6574
6591
  voids: r
@@ -6579,9 +6596,9 @@ var si = {
6579
6596
  focus: a
6580
6597
  });
6581
6598
  }
6582
- if (!(!r && he.void(e, {
6599
+ if (!(!r && pe.void(e, {
6583
6600
  at: a
6584
- }) || he.elementReadOnly(e, {
6601
+ }) || pe.elementReadOnly(e, {
6585
6602
  at: a
6586
6603
  }))) {
6587
6604
  var {
@@ -6612,7 +6629,7 @@ function bt(e) {
6612
6629
  for (var t = 1; t < arguments.length; t++) {
6613
6630
  var n = arguments[t] != null ? arguments[t] : {};
6614
6631
  t % 2 ? _r(Object(n), !0).forEach(function(r) {
6615
- st(e, r, n[r]);
6632
+ ot(e, r, n[r]);
6616
6633
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _r(Object(n)).forEach(function(r) {
6617
6634
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
6618
6635
  });
@@ -6620,13 +6637,13 @@ function bt(e) {
6620
6637
  return e;
6621
6638
  }
6622
6639
  var mr = bt(bt(bt(bt({}, Wo), Ko), Xo), si);
6623
- function sa(e) {
6640
+ function oa(e) {
6624
6641
  if (W.isText(e)) {
6625
6642
  let t = e == null ? void 0 : e.text;
6626
6643
  return e != null && e.bold && (t = `<strong>${t}</strong>`), e != null && e.code && (t = `<code>${t}</code>`), e != null && e.italic && (t = `<em>${t}</em>`), e != null && e.underline && (t = `<u>${t}</u>`), t;
6627
6644
  }
6628
- if ($e.isElement(e)) {
6629
- const t = e.children.map((r) => sa(r)).join(""), n = e.align || "left";
6645
+ if (je.isElement(e)) {
6646
+ const t = e.children.map((r) => oa(r)).join(""), n = e.align || "left";
6630
6647
  switch (e.type) {
6631
6648
  case "image":
6632
6649
  return `<img src="${e.src}" class="align_${n}" />`;
@@ -6690,13 +6707,13 @@ function fn(e) {
6690
6707
  }
6691
6708
  }
6692
6709
  function al(e) {
6693
- return e.map((t) => sa(t)).join("");
6710
+ return e.map((t) => oa(t)).join("");
6694
6711
  }
6695
- var Y = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6712
+ var J = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6696
6713
  function oi(e) {
6697
6714
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6698
6715
  }
6699
- var oa = {}, Sn = {}, Tn = {}, Ye = {}, On = {}, Pn = {};
6716
+ var ia = {}, Sn = {}, Tn = {}, Je = {}, On = {}, Pn = {};
6700
6717
  (function(e) {
6701
6718
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
6702
6719
  var t;
@@ -6708,7 +6725,7 @@ var oa = {}, Sn = {}, Tn = {}, Ye = {}, On = {}, Pn = {};
6708
6725
  }
6709
6726
  e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
6710
6727
  })(Pn);
6711
- var A = {}, Be = Y && Y.__extends || /* @__PURE__ */ function() {
6728
+ var P = {}, He = J && J.__extends || /* @__PURE__ */ function() {
6712
6729
  var e = function(t, n) {
6713
6730
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, a) {
6714
6731
  r.__proto__ = a;
@@ -6725,18 +6742,18 @@ var A = {}, Be = Y && Y.__extends || /* @__PURE__ */ function() {
6725
6742
  }
6726
6743
  t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
6727
6744
  };
6728
- }(), lt = Y && Y.__assign || function() {
6729
- return lt = Object.assign || function(e) {
6745
+ }(), ut = J && J.__assign || function() {
6746
+ return ut = Object.assign || function(e) {
6730
6747
  for (var t, n = 1, r = arguments.length; n < r; n++) {
6731
6748
  t = arguments[n];
6732
6749
  for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
6733
6750
  }
6734
6751
  return e;
6735
- }, lt.apply(this, arguments);
6752
+ }, ut.apply(this, arguments);
6736
6753
  };
6737
- Object.defineProperty(A, "__esModule", { value: !0 });
6738
- A.cloneNode = A.hasChildren = A.isDocument = A.isDirective = A.isComment = A.isText = A.isCDATA = A.isTag = A.Element = A.Document = A.CDATA = A.NodeWithChildren = A.ProcessingInstruction = A.Comment = A.Text = A.DataNode = A.Node = void 0;
6739
- var _e = Pn, An = (
6754
+ Object.defineProperty(P, "__esModule", { value: !0 });
6755
+ P.cloneNode = P.hasChildren = P.isDocument = P.isDirective = P.isComment = P.isText = P.isCDATA = P.isTag = P.Element = P.Document = P.CDATA = P.NodeWithChildren = P.ProcessingInstruction = P.Comment = P.Text = P.DataNode = P.Node = void 0;
6756
+ var de = Pn, An = (
6740
6757
  /** @class */
6741
6758
  function() {
6742
6759
  function e() {
@@ -6787,11 +6804,11 @@ var _e = Pn, An = (
6787
6804
  }, e;
6788
6805
  }()
6789
6806
  );
6790
- A.Node = An;
6807
+ P.Node = An;
6791
6808
  var jt = (
6792
6809
  /** @class */
6793
6810
  function(e) {
6794
- Be(t, e);
6811
+ He(t, e);
6795
6812
  function t(n) {
6796
6813
  var r = e.call(this) || this;
6797
6814
  return r.data = n, r;
@@ -6812,14 +6829,14 @@ var jt = (
6812
6829
  }), t;
6813
6830
  }(An)
6814
6831
  );
6815
- A.DataNode = jt;
6816
- var ia = (
6832
+ P.DataNode = jt;
6833
+ var ca = (
6817
6834
  /** @class */
6818
6835
  function(e) {
6819
- Be(t, e);
6836
+ He(t, e);
6820
6837
  function t() {
6821
6838
  var n = e !== null && e.apply(this, arguments) || this;
6822
- return n.type = _e.ElementType.Text, n;
6839
+ return n.type = de.ElementType.Text, n;
6823
6840
  }
6824
6841
  return Object.defineProperty(t.prototype, "nodeType", {
6825
6842
  get: function() {
@@ -6830,14 +6847,14 @@ var ia = (
6830
6847
  }), t;
6831
6848
  }(jt)
6832
6849
  );
6833
- A.Text = ia;
6834
- var ca = (
6850
+ P.Text = ca;
6851
+ var la = (
6835
6852
  /** @class */
6836
6853
  function(e) {
6837
- Be(t, e);
6854
+ He(t, e);
6838
6855
  function t() {
6839
6856
  var n = e !== null && e.apply(this, arguments) || this;
6840
- return n.type = _e.ElementType.Comment, n;
6857
+ return n.type = de.ElementType.Comment, n;
6841
6858
  }
6842
6859
  return Object.defineProperty(t.prototype, "nodeType", {
6843
6860
  get: function() {
@@ -6848,14 +6865,14 @@ var ca = (
6848
6865
  }), t;
6849
6866
  }(jt)
6850
6867
  );
6851
- A.Comment = ca;
6852
- var la = (
6868
+ P.Comment = la;
6869
+ var ua = (
6853
6870
  /** @class */
6854
6871
  function(e) {
6855
- Be(t, e);
6872
+ He(t, e);
6856
6873
  function t(n, r) {
6857
6874
  var a = e.call(this, r) || this;
6858
- return a.name = n, a.type = _e.ElementType.Directive, a;
6875
+ return a.name = n, a.type = de.ElementType.Directive, a;
6859
6876
  }
6860
6877
  return Object.defineProperty(t.prototype, "nodeType", {
6861
6878
  get: function() {
@@ -6866,11 +6883,11 @@ var la = (
6866
6883
  }), t;
6867
6884
  }(jt)
6868
6885
  );
6869
- A.ProcessingInstruction = la;
6886
+ P.ProcessingInstruction = ua;
6870
6887
  var Bt = (
6871
6888
  /** @class */
6872
6889
  function(e) {
6873
- Be(t, e);
6890
+ He(t, e);
6874
6891
  function t(n) {
6875
6892
  var r = e.call(this) || this;
6876
6893
  return r.children = n, r;
@@ -6907,14 +6924,14 @@ var Bt = (
6907
6924
  }), t;
6908
6925
  }(An)
6909
6926
  );
6910
- A.NodeWithChildren = Bt;
6911
- var ua = (
6927
+ P.NodeWithChildren = Bt;
6928
+ var fa = (
6912
6929
  /** @class */
6913
6930
  function(e) {
6914
- Be(t, e);
6931
+ He(t, e);
6915
6932
  function t() {
6916
6933
  var n = e !== null && e.apply(this, arguments) || this;
6917
- return n.type = _e.ElementType.CDATA, n;
6934
+ return n.type = de.ElementType.CDATA, n;
6918
6935
  }
6919
6936
  return Object.defineProperty(t.prototype, "nodeType", {
6920
6937
  get: function() {
@@ -6925,14 +6942,14 @@ var ua = (
6925
6942
  }), t;
6926
6943
  }(Bt)
6927
6944
  );
6928
- A.CDATA = ua;
6929
- var fa = (
6945
+ P.CDATA = fa;
6946
+ var da = (
6930
6947
  /** @class */
6931
6948
  function(e) {
6932
- Be(t, e);
6949
+ He(t, e);
6933
6950
  function t() {
6934
6951
  var n = e !== null && e.apply(this, arguments) || this;
6935
- return n.type = _e.ElementType.Root, n;
6952
+ return n.type = de.ElementType.Root, n;
6936
6953
  }
6937
6954
  return Object.defineProperty(t.prototype, "nodeType", {
6938
6955
  get: function() {
@@ -6943,13 +6960,13 @@ var fa = (
6943
6960
  }), t;
6944
6961
  }(Bt)
6945
6962
  );
6946
- A.Document = fa;
6947
- var da = (
6963
+ P.Document = da;
6964
+ var _a = (
6948
6965
  /** @class */
6949
6966
  function(e) {
6950
- Be(t, e);
6967
+ He(t, e);
6951
6968
  function t(n, r, a, s) {
6952
- a === void 0 && (a = []), s === void 0 && (s = n === "script" ? _e.ElementType.Script : n === "style" ? _e.ElementType.Style : _e.ElementType.Tag);
6969
+ a === void 0 && (a = []), s === void 0 && (s = n === "script" ? de.ElementType.Script : n === "style" ? de.ElementType.Style : de.ElementType.Tag);
6953
6970
  var o = e.call(this, a) || this;
6954
6971
  return o.name = n, o.attribs = r, o.type = s, o;
6955
6972
  }
@@ -6991,65 +7008,65 @@ var da = (
6991
7008
  }), t;
6992
7009
  }(Bt)
6993
7010
  );
6994
- A.Element = da;
6995
- function _a(e) {
6996
- return (0, _e.isTag)(e);
6997
- }
6998
- A.isTag = _a;
7011
+ P.Element = _a;
6999
7012
  function ma(e) {
7000
- return e.type === _e.ElementType.CDATA;
7013
+ return (0, de.isTag)(e);
7001
7014
  }
7002
- A.isCDATA = ma;
7015
+ P.isTag = ma;
7003
7016
  function ga(e) {
7004
- return e.type === _e.ElementType.Text;
7017
+ return e.type === de.ElementType.CDATA;
7005
7018
  }
7006
- A.isText = ga;
7019
+ P.isCDATA = ga;
7007
7020
  function ha(e) {
7008
- return e.type === _e.ElementType.Comment;
7021
+ return e.type === de.ElementType.Text;
7009
7022
  }
7010
- A.isComment = ha;
7023
+ P.isText = ha;
7011
7024
  function pa(e) {
7012
- return e.type === _e.ElementType.Directive;
7025
+ return e.type === de.ElementType.Comment;
7013
7026
  }
7014
- A.isDirective = pa;
7027
+ P.isComment = pa;
7015
7028
  function ya(e) {
7016
- return e.type === _e.ElementType.Root;
7029
+ return e.type === de.ElementType.Directive;
7030
+ }
7031
+ P.isDirective = ya;
7032
+ function va(e) {
7033
+ return e.type === de.ElementType.Root;
7017
7034
  }
7018
- A.isDocument = ya;
7035
+ P.isDocument = va;
7019
7036
  function ii(e) {
7020
7037
  return Object.prototype.hasOwnProperty.call(e, "children");
7021
7038
  }
7022
- A.hasChildren = ii;
7039
+ P.hasChildren = ii;
7023
7040
  function In(e, t) {
7024
7041
  t === void 0 && (t = !1);
7025
7042
  var n;
7026
- if (ga(e))
7027
- n = new ia(e.data);
7028
- else if (ha(e))
7043
+ if (ha(e))
7029
7044
  n = new ca(e.data);
7030
- else if (_a(e)) {
7031
- var r = t ? Qt(e.children) : [], a = new da(e.name, lt({}, e.attribs), r);
7045
+ else if (pa(e))
7046
+ n = new la(e.data);
7047
+ else if (ma(e)) {
7048
+ var r = t ? Qt(e.children) : [], a = new _a(e.name, ut({}, e.attribs), r);
7032
7049
  r.forEach(function(c) {
7033
7050
  return c.parent = a;
7034
- }), e.namespace != null && (a.namespace = e.namespace), e["x-attribsNamespace"] && (a["x-attribsNamespace"] = lt({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (a["x-attribsPrefix"] = lt({}, e["x-attribsPrefix"])), n = a;
7035
- } else if (ma(e)) {
7036
- var r = t ? Qt(e.children) : [], s = new ua(r);
7051
+ }), e.namespace != null && (a.namespace = e.namespace), e["x-attribsNamespace"] && (a["x-attribsNamespace"] = ut({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (a["x-attribsPrefix"] = ut({}, e["x-attribsPrefix"])), n = a;
7052
+ } else if (ga(e)) {
7053
+ var r = t ? Qt(e.children) : [], s = new fa(r);
7037
7054
  r.forEach(function(l) {
7038
7055
  return l.parent = s;
7039
7056
  }), n = s;
7040
- } else if (ya(e)) {
7041
- var r = t ? Qt(e.children) : [], o = new fa(r);
7057
+ } else if (va(e)) {
7058
+ var r = t ? Qt(e.children) : [], o = new da(r);
7042
7059
  r.forEach(function(l) {
7043
7060
  return l.parent = o;
7044
7061
  }), e["x-mode"] && (o["x-mode"] = e["x-mode"]), n = o;
7045
- } else if (pa(e)) {
7046
- var i = new la(e.name, e.data);
7062
+ } else if (ya(e)) {
7063
+ var i = new ua(e.name, e.data);
7047
7064
  e["x-name"] != null && (i["x-name"] = e["x-name"], i["x-publicId"] = e["x-publicId"], i["x-systemId"] = e["x-systemId"]), n = i;
7048
7065
  } else
7049
7066
  throw new Error("Not implemented yet: ".concat(e.type));
7050
7067
  return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n;
7051
7068
  }
7052
- A.cloneNode = In;
7069
+ P.cloneNode = In;
7053
7070
  function Qt(e) {
7054
7071
  for (var t = e.map(function(r) {
7055
7072
  return In(r, !0);
@@ -7058,7 +7075,7 @@ function Qt(e) {
7058
7075
  return t;
7059
7076
  }
7060
7077
  (function(e) {
7061
- var t = Y && Y.__createBinding || (Object.create ? function(i, c, l, u) {
7078
+ var t = J && J.__createBinding || (Object.create ? function(i, c, l, u) {
7062
7079
  u === void 0 && (u = l);
7063
7080
  var d = Object.getOwnPropertyDescriptor(c, l);
7064
7081
  (!d || ("get" in d ? !c.__esModule : d.writable || d.configurable)) && (d = { enumerable: !0, get: function() {
@@ -7066,12 +7083,12 @@ function Qt(e) {
7066
7083
  } }), Object.defineProperty(i, u, d);
7067
7084
  } : function(i, c, l, u) {
7068
7085
  u === void 0 && (u = l), i[u] = c[l];
7069
- }), n = Y && Y.__exportStar || function(i, c) {
7086
+ }), n = J && J.__exportStar || function(i, c) {
7070
7087
  for (var l in i) l !== "default" && !Object.prototype.hasOwnProperty.call(c, l) && t(c, i, l);
7071
7088
  };
7072
7089
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
7073
- var r = Pn, a = A;
7074
- n(A, e);
7090
+ var r = Pn, a = P;
7091
+ n(P, e);
7075
7092
  var s = {
7076
7093
  withStartIndices: !1,
7077
7094
  withEndIndices: !1,
@@ -7135,7 +7152,7 @@ function Qt(e) {
7135
7152
  );
7136
7153
  e.DomHandler = o, e.default = o;
7137
7154
  })(On);
7138
- var va = {};
7155
+ var ka = {};
7139
7156
  (function(e) {
7140
7157
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
7141
7158
  "animateMotion",
@@ -7172,17 +7189,17 @@ var va = {};
7172
7189
  ], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t, n) {
7173
7190
  return t[n.toLowerCase()] = n, t;
7174
7191
  }, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(), "__"), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g");
7175
- })(va);
7176
- Object.defineProperty(Ye, "__esModule", { value: !0 });
7177
- Ye.formatAttributes = ka;
7178
- Ye.escapeSpecialCharacters = ui;
7179
- Ye.revertEscapedCharacters = Ca;
7180
- Ye.formatDOM = ba;
7181
- var xt = On, ht = va;
7192
+ })(ka);
7193
+ Object.defineProperty(Je, "__esModule", { value: !0 });
7194
+ Je.formatAttributes = Ca;
7195
+ Je.escapeSpecialCharacters = ui;
7196
+ Je.revertEscapedCharacters = ba;
7197
+ Je.formatDOM = xa;
7198
+ var xt = On, pt = ka;
7182
7199
  function ci(e) {
7183
- return ht.CASE_SENSITIVE_TAG_NAMES_MAP[e];
7200
+ return pt.CASE_SENSITIVE_TAG_NAMES_MAP[e];
7184
7201
  }
7185
- function ka(e) {
7202
+ function Ca(e) {
7186
7203
  for (var t = {}, n = 0, r = e.length; n < r; n++) {
7187
7204
  var a = e[n];
7188
7205
  t[a.name] = a.value;
@@ -7195,19 +7212,19 @@ function li(e) {
7195
7212
  return t || e;
7196
7213
  }
7197
7214
  function ui(e) {
7198
- return e.replace(ht.CARRIAGE_RETURN_REGEX, ht.CARRIAGE_RETURN_PLACEHOLDER);
7215
+ return e.replace(pt.CARRIAGE_RETURN_REGEX, pt.CARRIAGE_RETURN_PLACEHOLDER);
7199
7216
  }
7200
- function Ca(e) {
7201
- return e.replace(ht.CARRIAGE_RETURN_PLACEHOLDER_REGEX, ht.CARRIAGE_RETURN);
7217
+ function ba(e) {
7218
+ return e.replace(pt.CARRIAGE_RETURN_PLACEHOLDER_REGEX, pt.CARRIAGE_RETURN);
7202
7219
  }
7203
- function ba(e, t, n) {
7220
+ function xa(e, t, n) {
7204
7221
  t === void 0 && (t = null);
7205
7222
  for (var r = [], a, s = 0, o = e.length; s < o; s++) {
7206
7223
  var i = e[s];
7207
7224
  switch (i.nodeType) {
7208
7225
  case 1: {
7209
7226
  var c = li(i.nodeName);
7210
- a = new xt.Element(c, ka(i.attributes)), a.children = ba(
7227
+ a = new xt.Element(c, Ca(i.attributes)), a.children = xa(
7211
7228
  // template children are on content
7212
7229
  c === "template" ? i.content.childNodes : i.childNodes,
7213
7230
  a
@@ -7215,7 +7232,7 @@ function ba(e, t, n) {
7215
7232
  break;
7216
7233
  }
7217
7234
  case 3:
7218
- a = new xt.Text(Ca(i.nodeValue));
7235
+ a = new xt.Text(ba(i.nodeValue));
7219
7236
  break;
7220
7237
  case 8:
7221
7238
  a = new xt.Comment(i.nodeValue);
@@ -7230,7 +7247,7 @@ function ba(e, t, n) {
7230
7247
  }
7231
7248
  Object.defineProperty(Tn, "__esModule", { value: !0 });
7232
7249
  Tn.default = gi;
7233
- var fi = Ye, gr = "html", hr = "head", Et = "body", di = /<([a-zA-Z]+[0-9]?)/, pr = /<head[^]*>/i, yr = /<body[^]*>/i, At = function(e, t) {
7250
+ var fi = Je, gr = "html", hr = "head", Et = "body", di = /<([a-zA-Z]+[0-9]?)/, pr = /<head[^]*>/i, yr = /<body[^]*>/i, At = function(e, t) {
7234
7251
  throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
7235
7252
  }, dn = function(e, t) {
7236
7253
  throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
@@ -7285,12 +7302,12 @@ function gi(e) {
7285
7302
  }
7286
7303
  }
7287
7304
  }
7288
- var hi = Y && Y.__importDefault || function(e) {
7305
+ var hi = J && J.__importDefault || function(e) {
7289
7306
  return e && e.__esModule ? e : { default: e };
7290
7307
  };
7291
7308
  Object.defineProperty(Sn, "__esModule", { value: !0 });
7292
7309
  Sn.default = ki;
7293
- var pi = hi(Tn), yi = Ye, vi = /<(![a-zA-Z\s]+)>/;
7310
+ var pi = hi(Tn), yi = Je, vi = /<(![a-zA-Z\s]+)>/;
7294
7311
  function ki(e) {
7295
7312
  if (typeof e != "string")
7296
7313
  throw new TypeError("First argument must be a string");
@@ -7299,7 +7316,7 @@ function ki(e) {
7299
7316
  var t = e.match(vi), n = t ? t[1] : void 0;
7300
7317
  return (0, yi.formatDOM)((0, pi.default)(e), null, n);
7301
7318
  }
7302
- var zt = {}, Ee = {}, Ht = {}, Ci = 0;
7319
+ var zt = {}, we = {}, Ht = {}, Ci = 0;
7303
7320
  Ht.SAME = Ci;
7304
7321
  var bi = 1;
7305
7322
  Ht.CAMELCASE = bi;
@@ -7788,14 +7805,14 @@ Ht.possibleStandardNames = {
7788
7805
  z: 0,
7789
7806
  zoomAndPan: 1
7790
7807
  };
7791
- const xa = 0, ze = 1, Gt = 2, Vt = 3, Rn = 4, Ea = 5, wa = 6;
7808
+ const Ea = 0, Ge = 1, Gt = 2, Vt = 3, Rn = 4, wa = 5, Na = 6;
7792
7809
  function xi(e) {
7793
- return ne.hasOwnProperty(e) ? ne[e] : null;
7810
+ return ae.hasOwnProperty(e) ? ae[e] : null;
7794
7811
  }
7795
- function ue(e, t, n, r, a, s, o) {
7812
+ function le(e, t, n, r, a, s, o) {
7796
7813
  this.acceptsBooleans = t === Gt || t === Vt || t === Rn, this.attributeName = r, this.attributeNamespace = a, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = s, this.removeEmptyString = o;
7797
7814
  }
7798
- const ne = {}, Ei = [
7815
+ const ae = {}, Ei = [
7799
7816
  "children",
7800
7817
  "dangerouslySetInnerHTML",
7801
7818
  // TODO: This prevents the assignment of defaultValue to regular
@@ -7809,9 +7826,9 @@ const ne = {}, Ei = [
7809
7826
  "style"
7810
7827
  ];
7811
7828
  Ei.forEach((e) => {
7812
- ne[e] = new ue(
7829
+ ae[e] = new le(
7813
7830
  e,
7814
- xa,
7831
+ Ea,
7815
7832
  !1,
7816
7833
  // mustUseProperty
7817
7834
  e,
@@ -7830,9 +7847,9 @@ Ei.forEach((e) => {
7830
7847
  ["htmlFor", "for"],
7831
7848
  ["httpEquiv", "http-equiv"]
7832
7849
  ].forEach(([e, t]) => {
7833
- ne[e] = new ue(
7850
+ ae[e] = new le(
7834
7851
  e,
7835
- ze,
7852
+ Ge,
7836
7853
  !1,
7837
7854
  // mustUseProperty
7838
7855
  t,
@@ -7846,7 +7863,7 @@ Ei.forEach((e) => {
7846
7863
  );
7847
7864
  });
7848
7865
  ["contentEditable", "draggable", "spellCheck", "value"].forEach((e) => {
7849
- ne[e] = new ue(
7866
+ ae[e] = new le(
7850
7867
  e,
7851
7868
  Gt,
7852
7869
  !1,
@@ -7867,7 +7884,7 @@ Ei.forEach((e) => {
7867
7884
  "focusable",
7868
7885
  "preserveAlpha"
7869
7886
  ].forEach((e) => {
7870
- ne[e] = new ue(
7887
+ ae[e] = new le(
7871
7888
  e,
7872
7889
  Gt,
7873
7890
  !1,
@@ -7910,7 +7927,7 @@ Ei.forEach((e) => {
7910
7927
  // Microdata
7911
7928
  "itemScope"
7912
7929
  ].forEach((e) => {
7913
- ne[e] = new ue(
7930
+ ae[e] = new le(
7914
7931
  e,
7915
7932
  Vt,
7916
7933
  !1,
@@ -7936,7 +7953,7 @@ Ei.forEach((e) => {
7936
7953
  // you'll need to set attributeName to name.toLowerCase()
7937
7954
  // instead in the assignment below.
7938
7955
  ].forEach((e) => {
7939
- ne[e] = new ue(
7956
+ ae[e] = new le(
7940
7957
  e,
7941
7958
  Vt,
7942
7959
  !0,
@@ -7958,7 +7975,7 @@ Ei.forEach((e) => {
7958
7975
  // you'll need to set attributeName to name.toLowerCase()
7959
7976
  // instead in the assignment below.
7960
7977
  ].forEach((e) => {
7961
- ne[e] = new ue(
7978
+ ae[e] = new le(
7962
7979
  e,
7963
7980
  Rn,
7964
7981
  !1,
@@ -7982,9 +7999,9 @@ Ei.forEach((e) => {
7982
7999
  // you'll need to set attributeName to name.toLowerCase()
7983
8000
  // instead in the assignment below.
7984
8001
  ].forEach((e) => {
7985
- ne[e] = new ue(
8002
+ ae[e] = new le(
7986
8003
  e,
7987
- wa,
8004
+ Na,
7988
8005
  !1,
7989
8006
  // mustUseProperty
7990
8007
  e,
@@ -7998,9 +8015,9 @@ Ei.forEach((e) => {
7998
8015
  );
7999
8016
  });
8000
8017
  ["rowSpan", "start"].forEach((e) => {
8001
- ne[e] = new ue(
8018
+ ae[e] = new le(
8002
8019
  e,
8003
- Ea,
8020
+ wa,
8004
8021
  !1,
8005
8022
  // mustUseProperty
8006
8023
  e.toLowerCase(),
@@ -8093,9 +8110,9 @@ const Mn = /[\-\:]([a-z])/g, Dn = (e) => e[1].toUpperCase();
8093
8110
  // instead in the assignment below.
8094
8111
  ].forEach((e) => {
8095
8112
  const t = e.replace(Mn, Dn);
8096
- ne[t] = new ue(
8113
+ ae[t] = new le(
8097
8114
  t,
8098
- ze,
8115
+ Ge,
8099
8116
  !1,
8100
8117
  // mustUseProperty
8101
8118
  e,
@@ -8119,9 +8136,9 @@ const Mn = /[\-\:]([a-z])/g, Dn = (e) => e[1].toUpperCase();
8119
8136
  // instead in the assignment below.
8120
8137
  ].forEach((e) => {
8121
8138
  const t = e.replace(Mn, Dn);
8122
- ne[t] = new ue(
8139
+ ae[t] = new le(
8123
8140
  t,
8124
- ze,
8141
+ Ge,
8125
8142
  !1,
8126
8143
  // mustUseProperty
8127
8144
  e,
@@ -8141,9 +8158,9 @@ const Mn = /[\-\:]([a-z])/g, Dn = (e) => e[1].toUpperCase();
8141
8158
  // instead in the assignment below.
8142
8159
  ].forEach((e) => {
8143
8160
  const t = e.replace(Mn, Dn);
8144
- ne[t] = new ue(
8161
+ ae[t] = new le(
8145
8162
  t,
8146
- ze,
8163
+ Ge,
8147
8164
  !1,
8148
8165
  // mustUseProperty
8149
8166
  e,
@@ -8155,9 +8172,9 @@ const Mn = /[\-\:]([a-z])/g, Dn = (e) => e[1].toUpperCase();
8155
8172
  );
8156
8173
  });
8157
8174
  ["tabIndex", "crossOrigin"].forEach((e) => {
8158
- ne[e] = new ue(
8175
+ ae[e] = new le(
8159
8176
  e,
8160
- ze,
8177
+ Ge,
8161
8178
  !1,
8162
8179
  // mustUseProperty
8163
8180
  e.toLowerCase(),
@@ -8171,9 +8188,9 @@ const Mn = /[\-\:]([a-z])/g, Dn = (e) => e[1].toUpperCase();
8171
8188
  );
8172
8189
  });
8173
8190
  const wi = "xlinkHref";
8174
- ne[wi] = new ue(
8191
+ ae[wi] = new le(
8175
8192
  "xlinkHref",
8176
- ze,
8193
+ Ge,
8177
8194
  !1,
8178
8195
  // mustUseProperty
8179
8196
  "xlink:href",
@@ -8184,9 +8201,9 @@ ne[wi] = new ue(
8184
8201
  // removeEmptyString
8185
8202
  );
8186
8203
  ["src", "href", "action", "formAction"].forEach((e) => {
8187
- ne[e] = new ue(
8204
+ ae[e] = new le(
8188
8205
  e,
8189
- ze,
8206
+ Ge,
8190
8207
  !1,
8191
8208
  // mustUseProperty
8192
8209
  e.toLowerCase(),
@@ -8212,18 +8229,18 @@ const {
8212
8229
  const n = kr[t];
8213
8230
  return n === Fi ? e[t] = t : n === Ni ? e[t.toLowerCase()] = t : e[t] = n, e;
8214
8231
  }, {});
8215
- Ee.BOOLEAN = Vt;
8216
- Ee.BOOLEANISH_STRING = Gt;
8217
- Ee.NUMERIC = Ea;
8218
- Ee.OVERLOADED_BOOLEAN = Rn;
8219
- Ee.POSITIVE_NUMERIC = wa;
8220
- Ee.RESERVED = xa;
8221
- Ee.STRING = ze;
8222
- Ee.getPropertyInfo = xi;
8223
- Ee.isCustomAttribute = Oi;
8224
- Ee.possibleStandardNames = Pi;
8232
+ we.BOOLEAN = Vt;
8233
+ we.BOOLEANISH_STRING = Gt;
8234
+ we.NUMERIC = wa;
8235
+ we.OVERLOADED_BOOLEAN = Rn;
8236
+ we.POSITIVE_NUMERIC = Na;
8237
+ we.RESERVED = Ea;
8238
+ we.STRING = Ge;
8239
+ we.getPropertyInfo = xi;
8240
+ we.isCustomAttribute = Oi;
8241
+ we.possibleStandardNames = Pi;
8225
8242
  var $n = {}, Ln = {}, Cr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ai = /\n/g, Ii = /^\s*/, Ri = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Mi = /^:\s*/, Di = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, $i = /^[;\s]*/, Li = /^\s+|\s+$/g, ji = `
8226
- `, br = "/", xr = "*", qe = "", Bi = "comment", zi = "declaration", Hi = function(e, t) {
8243
+ `, br = "/", xr = "*", Ke = "", Bi = "comment", zi = "declaration", Hi = function(e, t) {
8227
8244
  if (typeof e != "string")
8228
8245
  throw new TypeError("First argument must be a string");
8229
8246
  if (!e) return [];
@@ -8270,9 +8287,9 @@ var $n = {}, Ln = {}, Cr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ai = /\n/g, Ii = /
8270
8287
  function d() {
8271
8288
  var m = s();
8272
8289
  if (!(br != e.charAt(0) || xr != e.charAt(1))) {
8273
- for (var g = 2; qe != e.charAt(g) && (xr != e.charAt(g) || br != e.charAt(g + 1)); )
8290
+ for (var g = 2; Ke != e.charAt(g) && (xr != e.charAt(g) || br != e.charAt(g + 1)); )
8274
8291
  ++g;
8275
- if (g += 2, qe === e.charAt(g - 1))
8292
+ if (g += 2, Ke === e.charAt(g - 1))
8276
8293
  return i("End of comment missing");
8277
8294
  var y = e.slice(2, g - 2);
8278
8295
  return r += 2, a(y), e = e.slice(g), r += 2, m({
@@ -8287,8 +8304,8 @@ var $n = {}, Ln = {}, Cr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ai = /\n/g, Ii = /
8287
8304
  if (d(), !c(Mi)) return i("property missing ':'");
8288
8305
  var y = c(Di), C = m({
8289
8306
  type: zi,
8290
- property: Er(g[0].replace(Cr, qe)),
8291
- value: y ? Er(y[0].replace(Cr, qe)) : qe
8307
+ property: Er(g[0].replace(Cr, Ke)),
8308
+ value: y ? Er(y[0].replace(Cr, Ke)) : Ke
8292
8309
  });
8293
8310
  return c($i), C;
8294
8311
  }
@@ -8303,9 +8320,9 @@ var $n = {}, Ln = {}, Cr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ai = /\n/g, Ii = /
8303
8320
  return l(), h();
8304
8321
  };
8305
8322
  function Er(e) {
8306
- return e ? e.replace(Li, qe) : qe;
8323
+ return e ? e.replace(Li, Ke) : Ke;
8307
8324
  }
8308
- var Gi = Y && Y.__importDefault || function(e) {
8325
+ var Gi = J && J.__importDefault || function(e) {
8309
8326
  return e && e.__esModule ? e : { default: e };
8310
8327
  };
8311
8328
  Object.defineProperty(Ln, "__esModule", { value: !0 });
@@ -8336,7 +8353,7 @@ var qi = /^--[a-zA-Z0-9_-]+$/, Wi = /-([a-z])/g, Ki = /^[^-]+$/, Xi = /^-(webkit
8336
8353
  return t === void 0 && (t = {}), Zi(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(Yi, wr) : e = e.replace(Xi, wr), e.replace(Wi, Ji));
8337
8354
  };
8338
8355
  Ut.camelCase = Qi;
8339
- var ec = Y && Y.__importDefault || function(e) {
8356
+ var ec = J && J.__importDefault || function(e) {
8340
8357
  return e && e.__esModule ? e : { default: e };
8341
8358
  }, tc = ec(Ln), nc = Ut;
8342
8359
  function mn(e, t) {
@@ -8348,7 +8365,7 @@ function mn(e, t) {
8348
8365
  mn.default = mn;
8349
8366
  var rc = mn;
8350
8367
  (function(e) {
8351
- var t = Y && Y.__importDefault || function(u) {
8368
+ var t = J && J.__importDefault || function(u) {
8352
8369
  return u && u.__esModule ? u : { default: u };
8353
8370
  };
8354
8371
  Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = s, e.setStyleProp = i;
@@ -8403,7 +8420,7 @@ var rc = mn;
8403
8420
  })($n);
8404
8421
  Object.defineProperty(zt, "__esModule", { value: !0 });
8405
8422
  zt.default = ic;
8406
- var ct = Ee, Nr = $n, ac = ["checked", "value"], sc = ["input", "select", "textarea"], oc = {
8423
+ var lt = we, Nr = $n, ac = ["checked", "value"], sc = ["input", "select", "textarea"], oc = {
8407
8424
  reset: !0,
8408
8425
  submit: !0
8409
8426
  };
@@ -8412,18 +8429,18 @@ function ic(e, t) {
8412
8429
  var n = {}, r = !!(e.type && oc[e.type]);
8413
8430
  for (var a in e) {
8414
8431
  var s = e[a];
8415
- if ((0, ct.isCustomAttribute)(a)) {
8432
+ if ((0, lt.isCustomAttribute)(a)) {
8416
8433
  n[a] = s;
8417
8434
  continue;
8418
8435
  }
8419
8436
  var o = a.toLowerCase(), i = Fr(o);
8420
8437
  if (i) {
8421
- var c = (0, ct.getPropertyInfo)(i);
8438
+ var c = (0, lt.getPropertyInfo)(i);
8422
8439
  switch (ac.includes(i) && sc.includes(t) && !r && (i = Fr("default" + o)), n[i] = s, c && c.type) {
8423
- case ct.BOOLEAN:
8440
+ case lt.BOOLEAN:
8424
8441
  n[i] = !0;
8425
8442
  break;
8426
- case ct.OVERLOADED_BOOLEAN:
8443
+ case lt.OVERLOADED_BOOLEAN:
8427
8444
  s === "" && (n[i] = !0);
8428
8445
  break;
8429
8446
  }
@@ -8434,21 +8451,21 @@ function ic(e, t) {
8434
8451
  return (0, Nr.setStyleProp)(e.style, n), n;
8435
8452
  }
8436
8453
  function Fr(e) {
8437
- return ct.possibleStandardNames[e];
8454
+ return lt.possibleStandardNames[e];
8438
8455
  }
8439
- var jn = {}, cc = Y && Y.__importDefault || function(e) {
8456
+ var jn = {}, cc = J && J.__importDefault || function(e) {
8440
8457
  return e && e.__esModule ? e : { default: e };
8441
8458
  };
8442
8459
  Object.defineProperty(jn, "__esModule", { value: !0 });
8443
- jn.default = Na;
8444
- var en = Tr, lc = cc(zt), ut = $n, uc = {
8460
+ jn.default = Fa;
8461
+ var en = Tr, lc = cc(zt), ft = $n, uc = {
8445
8462
  cloneElement: en.cloneElement,
8446
8463
  createElement: en.createElement,
8447
8464
  isValidElement: en.isValidElement
8448
8465
  };
8449
- function Na(e, t) {
8466
+ function Fa(e, t) {
8450
8467
  t === void 0 && (t = {});
8451
- for (var n = [], r = typeof t.replace == "function", a = t.transform || ut.returnFirstArg, s = t.library || uc, o = s.cloneElement, i = s.createElement, c = s.isValidElement, l = e.length, u = 0; u < l; u++) {
8468
+ for (var n = [], r = typeof t.replace == "function", a = t.transform || ft.returnFirstArg, s = t.library || uc, o = s.cloneElement, i = s.createElement, c = s.isValidElement, l = e.length, u = 0; u < l; u++) {
8452
8469
  var d = e[u];
8453
8470
  if (r) {
8454
8471
  var _ = t.replace(d, u);
@@ -8461,13 +8478,13 @@ function Na(e, t) {
8461
8478
  }
8462
8479
  if (d.type === "text") {
8463
8480
  var h = !d.data.trim().length;
8464
- if (h && d.parent && !(0, ut.canTextBeChildOfNode)(d.parent) || t.trim && h)
8481
+ if (h && d.parent && !(0, ft.canTextBeChildOfNode)(d.parent) || t.trim && h)
8465
8482
  continue;
8466
8483
  n.push(a(d.data, d, u));
8467
8484
  continue;
8468
8485
  }
8469
8486
  var m = d, g = {};
8470
- fc(m) ? ((0, ut.setStyleProp)(m.attribs.style, m.attribs), g = m.attribs) : m.attribs && (g = (0, lc.default)(m.attribs, m.name));
8487
+ fc(m) ? ((0, ft.setStyleProp)(m.attribs.style, m.attribs), g = m.attribs) : m.attribs && (g = (0, lc.default)(m.attribs, m.name));
8471
8488
  var y = void 0;
8472
8489
  switch (d.type) {
8473
8490
  case "script":
@@ -8477,7 +8494,7 @@ function Na(e, t) {
8477
8494
  });
8478
8495
  break;
8479
8496
  case "tag":
8480
- d.name === "textarea" && d.children[0] ? g.defaultValue = d.children[0].data : d.children && d.children.length && (y = Na(d.children, t));
8497
+ d.name === "textarea" && d.children[0] ? g.defaultValue = d.children[0].data : d.children && d.children.length && (y = Fa(d.children, t));
8481
8498
  break;
8482
8499
  default:
8483
8500
  continue;
@@ -8487,10 +8504,10 @@ function Na(e, t) {
8487
8504
  return n.length === 1 ? n[0] : n;
8488
8505
  }
8489
8506
  function fc(e) {
8490
- return ut.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && (0, ut.isCustomComponent)(e.name, e.attribs);
8507
+ return ft.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && (0, ft.isCustomComponent)(e.name, e.attribs);
8491
8508
  }
8492
8509
  (function(e) {
8493
- var t = Y && Y.__importDefault || function(c) {
8510
+ var t = J && J.__importDefault || function(c) {
8494
8511
  return c && c.__esModule ? c : { default: c };
8495
8512
  };
8496
8513
  Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = i;
@@ -8516,8 +8533,8 @@ function fc(e) {
8516
8533
  throw new TypeError("First argument must be a string");
8517
8534
  return c ? (0, a.default)((0, n.default)(c, (l == null ? void 0 : l.htmlparser2) || o), l) : [];
8518
8535
  }
8519
- })(oa);
8520
- const Sr = /* @__PURE__ */ oi(oa), dc = Sr.default || Sr;
8536
+ })(ia);
8537
+ const Sr = /* @__PURE__ */ oi(ia), dc = Sr.default || Sr;
8521
8538
  function sl(e) {
8522
8539
  const t = dc(e);
8523
8540
  return Array.isArray(t) ? t.map((n) => typeof n == "string" ? { text: n } : fn(n)) : typeof t == "string" ? [{ text: t }] : [fn(t)];
@@ -8527,11 +8544,11 @@ export {
8527
8544
  vc as AlertContent,
8528
8545
  kc as AlertDescription,
8529
8546
  Cc as AlertIcon,
8530
- Ya as AlertTitle,
8531
- es as AudioPlayer,
8547
+ Za as AlertTitle,
8548
+ ts as AudioPlayer,
8532
8549
  xc as AudioUpload,
8533
8550
  Ec as Badge,
8534
- at as Button,
8551
+ st as Button,
8535
8552
  wc as CardTabButton,
8536
8553
  Nc as CardTabContainer,
8537
8554
  Fc as Checkbox,
@@ -8541,9 +8558,9 @@ export {
8541
8558
  Oc as DrawerContainer,
8542
8559
  Pc as DrawerHeader,
8543
8560
  Jc as DrawerProvider,
8544
- xe as FieldError,
8545
- pe as FieldLabel,
8546
- ye as FieldWrapper,
8561
+ Ee as FieldError,
8562
+ ye as FieldLabel,
8563
+ ve as FieldWrapper,
8547
8564
  Ac as FileUpload,
8548
8565
  bc as FormProvider,
8549
8566
  kn as IconButton,
@@ -8559,7 +8576,7 @@ export {
8559
8576
  Bc as Popover,
8560
8577
  zc as RadioBox,
8561
8578
  Hc as RadioGroup,
8562
- Qa as Slider,
8579
+ es as Slider,
8563
8580
  Gc as Switch,
8564
8581
  Vc as TabButton,
8565
8582
  Uc as TabContainer,
@@ -8574,10 +8591,10 @@ export {
8574
8591
  al as toHtml,
8575
8592
  sl as toRichTextValue,
8576
8593
  Qc as useDrawer,
8577
- be as useForm,
8578
- os as useHydrated,
8594
+ xe as useForm,
8595
+ is as useHydrated,
8579
8596
  tl as useModal,
8580
8597
  nl as useScopedParams,
8581
- pt as useScrollLock,
8582
- Ja as useSlider
8598
+ yt as useScrollLock,
8599
+ Qa as useSlider
8583
8600
  };