@sme.up/ketchup2 2.0.0-SNAPSHOT-20250616143804 → 2.0.0-SNAPSHOT-20250616144705

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.
@@ -48,15 +48,15 @@ var Ae = {};
48
48
  var Dt;
49
49
  function _r() {
50
50
  return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
51
- function r(p) {
52
- if (p == null) return null;
53
- if (typeof p == "function")
54
- return p.$$typeof === P ? null : p.displayName || p.name || null;
55
- if (typeof p == "string") return p;
56
- switch (p) {
51
+ function r(h) {
52
+ if (h == null) return null;
53
+ if (typeof h == "function")
54
+ return h.$$typeof === P ? null : h.displayName || h.name || null;
55
+ if (typeof h == "string") return h;
56
+ switch (h) {
57
57
  case g:
58
58
  return "Fragment";
59
- case w:
59
+ case S:
60
60
  return "Profiler";
61
61
  case x:
62
62
  return "StrictMode";
@@ -67,144 +67,144 @@ function _r() {
67
67
  case j:
68
68
  return "Activity";
69
69
  }
70
- if (typeof p == "object")
71
- switch (typeof p.tag == "number" && console.error(
70
+ if (typeof h == "object")
71
+ switch (typeof h.tag == "number" && console.error(
72
72
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
- ), p.$$typeof) {
73
+ ), h.$$typeof) {
74
74
  case m:
75
75
  return "Portal";
76
- case R:
77
- return (p.displayName || "Context") + ".Provider";
76
+ case O:
77
+ return (h.displayName || "Context") + ".Provider";
78
78
  case E:
79
- return (p._context.displayName || "Context") + ".Consumer";
80
- case S:
81
- var y = p.render;
82
- return p = p.displayName, p || (p = y.displayName || y.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
79
+ return (h._context.displayName || "Context") + ".Consumer";
80
+ case w:
81
+ var y = h.render;
82
+ return h = h.displayName, h || (h = y.displayName || y.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
83
83
  case C:
84
- return y = p.displayName || null, y !== null ? y : r(p.type) || "Memo";
84
+ return y = h.displayName || null, y !== null ? y : r(h.type) || "Memo";
85
85
  case Y:
86
- y = p._payload, p = p._init;
86
+ y = h._payload, h = h._init;
87
87
  try {
88
- return r(p(y));
88
+ return r(h(y));
89
89
  } catch {
90
90
  }
91
91
  }
92
92
  return null;
93
93
  }
94
- function e(p) {
95
- return "" + p;
94
+ function e(h) {
95
+ return "" + h;
96
96
  }
97
- function t(p) {
97
+ function t(h) {
98
98
  try {
99
- e(p);
99
+ e(h);
100
100
  var y = !1;
101
101
  } catch {
102
102
  y = !0;
103
103
  }
104
104
  if (y) {
105
105
  y = console;
106
- var T = y.error, $ = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
106
+ var T = y.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
107
107
  return T.call(
108
108
  y,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
110
  $
111
- ), e(p);
111
+ ), e(h);
112
112
  }
113
113
  }
114
- function n(p) {
115
- if (p === g) return "<>";
116
- if (typeof p == "object" && p !== null && p.$$typeof === Y)
114
+ function n(h) {
115
+ if (h === g) return "<>";
116
+ if (typeof h == "object" && h !== null && h.$$typeof === Y)
117
117
  return "<...>";
118
118
  try {
119
- var y = r(p);
119
+ var y = r(h);
120
120
  return y ? "<" + y + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
123
123
  }
124
124
  }
125
125
  function s() {
126
- var p = D.A;
127
- return p === null ? null : p.getOwner();
126
+ var h = D.A;
127
+ return h === null ? null : h.getOwner();
128
128
  }
129
129
  function a() {
130
130
  return Error("react-stack-top-frame");
131
131
  }
132
- function i(p) {
133
- if (_.call(p, "key")) {
134
- var y = Object.getOwnPropertyDescriptor(p, "key").get;
132
+ function i(h) {
133
+ if (_.call(h, "key")) {
134
+ var y = Object.getOwnPropertyDescriptor(h, "key").get;
135
135
  if (y && y.isReactWarning) return !1;
136
136
  }
137
- return p.key !== void 0;
137
+ return h.key !== void 0;
138
138
  }
139
- function o(p, y) {
139
+ function o(h, y) {
140
140
  function T() {
141
- q || (q = !0, console.error(
141
+ K || (K = !0, console.error(
142
142
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
143
143
  y
144
144
  ));
145
145
  }
146
- T.isReactWarning = !0, Object.defineProperty(p, "key", {
146
+ T.isReactWarning = !0, Object.defineProperty(h, "key", {
147
147
  get: T,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
- function c() {
152
- var p = r(this.type);
153
- return K[p] || (K[p] = !0, console.error(
151
+ function f() {
152
+ var h = r(this.type);
153
+ return z[h] || (z[h] = !0, console.error(
154
154
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
155
- )), p = this.props.ref, p !== void 0 ? p : null;
155
+ )), h = this.props.ref, h !== void 0 ? h : null;
156
156
  }
157
- function l(p, y, T, $, O, A, M, F) {
158
- return T = A.ref, p = {
159
- $$typeof: h,
160
- type: p,
157
+ function c(h, y, T, $, R, A, M, F) {
158
+ return T = A.ref, h = {
159
+ $$typeof: p,
160
+ type: h,
161
161
  key: y,
162
162
  props: A,
163
- _owner: O
164
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(p, "ref", {
163
+ _owner: R
164
+ }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(h, "ref", {
165
165
  enumerable: !1,
166
- get: c
167
- }) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
166
+ get: f
167
+ }) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
168
168
  configurable: !1,
169
169
  enumerable: !1,
170
170
  writable: !0,
171
171
  value: 0
172
- }), Object.defineProperty(p, "_debugInfo", {
172
+ }), Object.defineProperty(h, "_debugInfo", {
173
173
  configurable: !1,
174
174
  enumerable: !1,
175
175
  writable: !0,
176
176
  value: null
177
- }), Object.defineProperty(p, "_debugStack", {
177
+ }), Object.defineProperty(h, "_debugStack", {
178
178
  configurable: !1,
179
179
  enumerable: !1,
180
180
  writable: !0,
181
181
  value: M
182
- }), Object.defineProperty(p, "_debugTask", {
182
+ }), Object.defineProperty(h, "_debugTask", {
183
183
  configurable: !1,
184
184
  enumerable: !1,
185
185
  writable: !0,
186
186
  value: F
187
- }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
187
+ }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
188
188
  }
189
- function u(p, y, T, $, O, A, M, F) {
189
+ function u(h, y, T, $, R, A, M, F) {
190
190
  var N = y.children;
191
191
  if (N !== void 0)
192
192
  if ($)
193
193
  if (U(N)) {
194
194
  for ($ = 0; $ < N.length; $++)
195
- f(N[$]);
195
+ l(N[$]);
196
196
  Object.freeze && Object.freeze(N);
197
197
  } else
198
198
  console.error(
199
199
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
200
  );
201
- else f(N);
201
+ else l(N);
202
202
  if (_.call(y, "key")) {
203
- N = r(p);
204
- var z = Object.keys(y).filter(function(se) {
203
+ N = r(h);
204
+ var q = Object.keys(y).filter(function(se) {
205
205
  return se !== "key";
206
206
  });
207
- $ = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", L[N + $] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ $ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", L[N + $] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
208
208
  `A props object containing a "key" prop is being spread into JSX:
209
209
  let props = %s;
210
210
  <%s {...props} />
@@ -213,7 +213,7 @@ React keys must be passed directly to JSX without using spread:
213
213
  <%s key={someKey} {...props} />`,
214
214
  $,
215
215
  N,
216
- z,
216
+ q,
217
217
  N
218
218
  ), L[N + $] = !0);
219
219
  }
@@ -224,56 +224,56 @@ React keys must be passed directly to JSX without using spread:
224
224
  } else T = y;
225
225
  return N && o(
226
226
  T,
227
- typeof p == "function" ? p.displayName || p.name || "Unknown" : p
228
- ), l(
229
- p,
227
+ typeof h == "function" ? h.displayName || h.name || "Unknown" : h
228
+ ), c(
229
+ h,
230
230
  N,
231
231
  A,
232
- O,
232
+ R,
233
233
  s(),
234
234
  T,
235
235
  M,
236
236
  F
237
237
  );
238
238
  }
239
- function f(p) {
240
- typeof p == "object" && p !== null && p.$$typeof === h && p._store && (p._store.validated = 1);
239
+ function l(h) {
240
+ typeof h == "object" && h !== null && h.$$typeof === p && h._store && (h._store.validated = 1);
241
241
  }
242
- var d = hr, h = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), R = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), D = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _ = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
242
+ var d = hr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), D = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _ = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  d = {
246
- "react-stack-bottom-frame": function(p) {
247
- return p();
246
+ "react-stack-bottom-frame": function(h) {
247
+ return h();
248
248
  }
249
249
  };
250
- var q, K = {}, J = d["react-stack-bottom-frame"].bind(
250
+ var K, z = {}, J = d["react-stack-bottom-frame"].bind(
251
251
  d,
252
252
  a
253
253
  )(), W = H(n(a)), L = {};
254
- Ae.Fragment = g, Ae.jsx = function(p, y, T, $, O) {
254
+ Ae.Fragment = g, Ae.jsx = function(h, y, T, $, R) {
255
255
  var A = 1e4 > D.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
- p,
257
+ h,
258
258
  y,
259
259
  T,
260
260
  !1,
261
261
  $,
262
- O,
262
+ R,
263
263
  A ? Error("react-stack-top-frame") : J,
264
- A ? H(n(p)) : W
264
+ A ? H(n(h)) : W
265
265
  );
266
- }, Ae.jsxs = function(p, y, T, $, O) {
266
+ }, Ae.jsxs = function(h, y, T, $, R) {
267
267
  var A = 1e4 > D.recentlyCreatedOwnerStacks++;
268
268
  return u(
269
- p,
269
+ h,
270
270
  y,
271
271
  T,
272
272
  !0,
273
273
  $,
274
- O,
274
+ R,
275
275
  A ? Error("react-stack-top-frame") : J,
276
- A ? H(n(p)) : W
276
+ A ? H(n(h)) : W
277
277
  );
278
278
  };
279
279
  }()), Ae;
@@ -315,14 +315,14 @@ const ne = {
315
315
  k: ""
316
316
  };
317
317
  };
318
- class qe {
318
+ class Ke {
319
319
  constructor(e, t) {
320
320
  Se(this, "class");
321
321
  Se(this, "value");
322
322
  this.class = e, this.value = t;
323
323
  }
324
324
  static fromDataObj(e) {
325
- return new qe(e, e.k == "1" || e.k == "true");
325
+ return new Ke(e, e.k == "1" || e.k == "true");
326
326
  }
327
327
  getValue() {
328
328
  return this.value;
@@ -347,25 +347,25 @@ function Mr(r, e) {
347
347
  let s = "DDMMYYYY";
348
348
  e === "en" && (s = "MMDDYYYY");
349
349
  const a = s.indexOf("DD"), i = s.indexOf("MM");
350
- let o = 0, c = 0, l = "";
350
+ let o = 0, f = 0, c = "";
351
351
  switch (n.length) {
352
352
  case 1:
353
353
  case 2:
354
354
  return o = parseInt(n), t.setDate(o), Ve(t) ? t : r;
355
355
  case 3:
356
356
  case 4:
357
- return o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), i === 0 ? (t.setMonth(o - 1), t.setDate(c)) : a === 0 && (t.setMonth(c - 1), t.setDate(o)), Ve(t) ? t : r;
357
+ return o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), i === 0 ? (t.setMonth(o - 1), t.setDate(f)) : a === 0 && (t.setMonth(f - 1), t.setDate(o)), Ve(t) ? t : r;
358
358
  case 5:
359
359
  case 6: {
360
- o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? l = "19" + n.substring(4) : l = "20" + n.substring(4);
361
- let u = 0, f = 0;
362
- return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), ht(o, f, parseInt(l)) && Ve(t) ? t : r;
360
+ o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
361
+ let u = 0, l = 0;
362
+ return i === 0 ? (u = f, l = o - 1, t.setFullYear(parseInt(c), l, u)) : a === 0 && (u = o, l = f - 1, t.setFullYear(parseInt(c), l, u)), ht(o, l, parseInt(c)) && Ve(t) ? t : r;
363
363
  }
364
364
  case 7:
365
365
  case 8: {
366
- o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), l = n.substring(4);
367
- let u = 0, f = 0;
368
- return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), ht(u, f, parseInt(l)) && Ve(t) ? t : r;
366
+ o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), c = n.substring(4);
367
+ let u = 0, l = 0;
368
+ return i === 0 ? (u = f, l = o - 1, t.setFullYear(parseInt(c), l, u)) : a === 0 && (u = o, l = f - 1, t.setFullYear(parseInt(c), l, u)), ht(u, l, parseInt(c)) && Ve(t) ? t : r;
369
369
  }
370
370
  }
371
371
  return r;
@@ -417,7 +417,7 @@ function Yr(r) {
417
417
  const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
418
418
  return isNaN(e) || isNaN(Number(t)) || isNaN(Number(n)) ? r.toString() : `${e}-${t}-${n}`;
419
419
  }
420
- class ze {
420
+ class qe {
421
421
  constructor(e, t) {
422
422
  Se(this, "class");
423
423
  Se(this, "date");
@@ -426,7 +426,7 @@ class ze {
426
426
  static fromDataObj(e) {
427
427
  const t = Ct.get(`${e.t}${e.p}`);
428
428
  if (t)
429
- return new ze(e, t.legacyToIso(e.k));
429
+ return new qe(e, t.legacyToIso(e.k));
430
430
  throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
431
431
  }
432
432
  getLegacyValue() {
@@ -468,19 +468,19 @@ function St({
468
468
  enabled: e = !0
469
469
  }) {
470
470
  const t = ve(null), n = ve(null), [s, a] = Z(0), i = ye(() => {
471
- const o = t.current, c = n.current;
472
- if (!o || !c) return;
473
- const { top: l, left: u, width: f, height: d } = o.getBoundingClientRect();
474
- a(f);
475
- const h = c.offsetHeight, m = c.offsetWidth;
476
- if (m === 0 || h === 0) {
471
+ const o = t.current, f = n.current;
472
+ if (!o || !f) return;
473
+ const { top: c, left: u, width: l, height: d } = o.getBoundingClientRect();
474
+ a(l);
475
+ const p = f.offsetHeight, m = f.offsetWidth;
476
+ if (m === 0 || p === 0) {
477
477
  requestAnimationFrame(i);
478
478
  return;
479
479
  }
480
- let g = l + window.scrollY, x = u + window.scrollX;
480
+ let g = c + window.scrollY, x = u + window.scrollX;
481
481
  switch (r) {
482
482
  case "top":
483
- g -= h;
483
+ g -= p;
484
484
  break;
485
485
  case "bottom":
486
486
  g += d;
@@ -489,11 +489,11 @@ function St({
489
489
  x -= m;
490
490
  break;
491
491
  case "right":
492
- x += f;
492
+ x += l;
493
493
  break;
494
494
  }
495
495
  requestAnimationFrame(() => {
496
- c.style.transform = `translate(${x}px, ${g}px)`;
496
+ f.style.transform = `translate(${x}px, ${g}px)`;
497
497
  });
498
498
  }, [r]);
499
499
  return Ar(() => {
@@ -576,59 +576,59 @@ function Hr() {
576
576
  Pt = 1;
577
577
  var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
578
578
  Ye.format = i, Ye.parse = o;
579
- function i(f) {
580
- if (!f || typeof f != "object")
579
+ function i(l) {
580
+ if (!l || typeof l != "object")
581
581
  throw new TypeError("argument obj is required");
582
- var d = f.parameters, h = f.type;
583
- if (!h || !a.test(h))
582
+ var d = l.parameters, p = l.type;
583
+ if (!p || !a.test(p))
584
584
  throw new TypeError("invalid type");
585
- var m = h;
585
+ var m = p;
586
586
  if (d && typeof d == "object")
587
- for (var g, x = Object.keys(d).sort(), w = 0; w < x.length; w++) {
588
- if (g = x[w], !t.test(g))
587
+ for (var g, x = Object.keys(d).sort(), S = 0; S < x.length; S++) {
588
+ if (g = x[S], !t.test(g))
589
589
  throw new TypeError("invalid parameter name");
590
- m += "; " + g + "=" + l(d[g]);
590
+ m += "; " + g + "=" + c(d[g]);
591
591
  }
592
592
  return m;
593
593
  }
594
- function o(f) {
595
- if (!f)
594
+ function o(l) {
595
+ if (!l)
596
596
  throw new TypeError("argument string is required");
597
- var d = typeof f == "object" ? c(f) : f;
597
+ var d = typeof l == "object" ? f(l) : l;
598
598
  if (typeof d != "string")
599
599
  throw new TypeError("argument string is required to be a string");
600
- var h = d.indexOf(";"), m = h !== -1 ? d.slice(0, h).trim() : d.trim();
600
+ var p = d.indexOf(";"), m = p !== -1 ? d.slice(0, p).trim() : d.trim();
601
601
  if (!a.test(m))
602
602
  throw new TypeError("invalid media type");
603
603
  var g = new u(m.toLowerCase());
604
- if (h !== -1) {
605
- var x, w, E;
606
- for (r.lastIndex = h; w = r.exec(d); ) {
607
- if (w.index !== h)
604
+ if (p !== -1) {
605
+ var x, S, E;
606
+ for (r.lastIndex = p; S = r.exec(d); ) {
607
+ if (S.index !== p)
608
608
  throw new TypeError("invalid parameter format");
609
- h += w[0].length, x = w[1].toLowerCase(), E = w[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[x] = E;
609
+ p += S[0].length, x = S[1].toLowerCase(), E = S[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[x] = E;
610
610
  }
611
- if (h !== d.length)
611
+ if (p !== d.length)
612
612
  throw new TypeError("invalid parameter format");
613
613
  }
614
614
  return g;
615
615
  }
616
- function c(f) {
616
+ function f(l) {
617
617
  var d;
618
- if (typeof f.getHeader == "function" ? d = f.getHeader("content-type") : typeof f.headers == "object" && (d = f.headers && f.headers["content-type"]), typeof d != "string")
618
+ if (typeof l.getHeader == "function" ? d = l.getHeader("content-type") : typeof l.headers == "object" && (d = l.headers && l.headers["content-type"]), typeof d != "string")
619
619
  throw new TypeError("content-type header is missing from object");
620
620
  return d;
621
621
  }
622
- function l(f) {
623
- var d = String(f);
622
+ function c(l) {
623
+ var d = String(l);
624
624
  if (t.test(d))
625
625
  return d;
626
626
  if (d.length > 0 && !e.test(d))
627
627
  throw new TypeError("invalid parameter value");
628
628
  return '"' + d.replace(s, "\\$1") + '"';
629
629
  }
630
- function u(f) {
631
- this.parameters = /* @__PURE__ */ Object.create(null), this.type = f;
630
+ function u(l) {
631
+ this.parameters = /* @__PURE__ */ Object.create(null), this.type = l;
632
632
  }
633
633
  return Ye;
634
634
  }
@@ -669,13 +669,13 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
669
669
  for (var t = function(i, o) {
670
670
  setTimeout(function() {
671
671
  if (Array.isArray(xe[e])) {
672
- var c = Re.get(e), l = xe[e][i];
673
- c instanceof SVGSVGElement && l(null, gr(c)), c instanceof Error && l(c), i === xe[e].length - 1 && delete xe[e];
672
+ var f = Re.get(e), c = xe[e][i];
673
+ f instanceof SVGSVGElement && c(null, gr(f)), f instanceof Error && c(f), i === xe[e].length - 1 && delete xe[e];
674
674
  }
675
675
  }, 0);
676
676
  }, n = 0, s = xe[e].length; n < s; n++)
677
677
  t(n);
678
- }, Kr = function(e, t, n) {
678
+ }, zr = function(e, t, n) {
679
679
  if (Re.has(e)) {
680
680
  var s = Re.get(e);
681
681
  if (s === void 0) {
@@ -691,16 +691,16 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
691
691
  var o;
692
692
  a ? Re.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Re.set(e, i.responseXML.documentElement), Gr(e);
693
693
  });
694
- }, qr = function(e, t, n) {
694
+ }, Kr = function(e, t, n) {
695
695
  yr(e, t, function(s, a) {
696
696
  var i;
697
697
  s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
698
698
  });
699
- }, zr = 0, Jr = function() {
700
- return ++zr;
699
+ }, qr = 0, Jr = function() {
700
+ return ++qr;
701
701
  }, me = [], _t = {}, Xr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink", It = function(e, t, n, s, a, i, o) {
702
- var c = e.getAttribute("data-src") || e.getAttribute("src");
703
- if (!c) {
702
+ var f = e.getAttribute("data-src") || e.getAttribute("src");
703
+ if (!f) {
704
704
  o(new Error("Invalid data-src or src attribute"));
705
705
  return;
706
706
  }
@@ -709,31 +709,31 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
709
709
  return;
710
710
  }
711
711
  me.push(e), e.setAttribute("src", "");
712
- var l = s ? Kr : qr;
713
- l(c, a, function(u, f) {
714
- if (!f) {
712
+ var c = s ? zr : Kr;
713
+ c(f, a, function(u, l) {
714
+ if (!l) {
715
715
  me.splice(me.indexOf(e), 1), e = null, o(u);
716
716
  return;
717
717
  }
718
718
  var d = e.getAttribute("id");
719
- d && f.setAttribute("id", d);
720
- var h = e.getAttribute("title");
721
- h && f.setAttribute("title", h);
719
+ d && l.setAttribute("id", d);
720
+ var p = e.getAttribute("title");
721
+ p && l.setAttribute("title", p);
722
722
  var m = e.getAttribute("width");
723
- m && f.setAttribute("width", m);
723
+ m && l.setAttribute("width", m);
724
724
  var g = e.getAttribute("height");
725
- g && f.setAttribute("height", g);
726
- var x = Array.from(new Set(st(st(st([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
727
- f.setAttribute("class", x);
728
- var w = e.getAttribute("style");
729
- w && f.setAttribute("style", w), f.setAttribute("data-src", c);
725
+ g && l.setAttribute("height", g);
726
+ var x = Array.from(new Set(st(st(st([], (l.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
727
+ l.setAttribute("class", x);
728
+ var S = e.getAttribute("style");
729
+ S && l.setAttribute("style", S), l.setAttribute("data-src", f);
730
730
  var E = [].filter.call(e.attributes, function(W) {
731
731
  return /^data-\w[\w-]*$/.test(W.name);
732
732
  });
733
733
  if (Array.prototype.forEach.call(E, function(W) {
734
- W.name && W.value && f.setAttribute(W.name, W.value);
734
+ W.name && W.value && l.setAttribute(W.name, W.value);
735
735
  }), n) {
736
- var R = {
736
+ var O = {
737
737
  clipPath: ["clip-path"],
738
738
  "color-profile": ["color-profile"],
739
739
  cursor: ["cursor"],
@@ -744,58 +744,58 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
744
744
  path: [],
745
745
  pattern: ["fill", "stroke"],
746
746
  radialGradient: ["fill", "stroke"]
747
- }, S, b, k, C, Y;
748
- Object.keys(R).forEach(function(W) {
749
- S = W, k = R[W], b = f.querySelectorAll(S + "[id]");
750
- for (var L = function($, O) {
747
+ }, w, b, k, C, Y;
748
+ Object.keys(O).forEach(function(W) {
749
+ w = W, k = O[W], b = l.querySelectorAll(w + "[id]");
750
+ for (var L = function($, R) {
751
751
  C = b[$].id, Y = C + "-" + Jr();
752
752
  var A;
753
753
  Array.prototype.forEach.call(k, function(V) {
754
- A = f.querySelectorAll("[" + V + '*="' + C + '"]');
754
+ A = l.querySelectorAll("[" + V + '*="' + C + '"]');
755
755
  for (var X = 0, te = A.length; X < te; X++) {
756
756
  var re = A[X].getAttribute(V);
757
757
  re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) || A[X].setAttribute(V, "url(#" + Y + ")");
758
758
  }
759
759
  });
760
- for (var M = f.querySelectorAll("[*|href]"), F = [], N = 0, z = M.length; N < z; N++) {
760
+ for (var M = l.querySelectorAll("[*|href]"), F = [], N = 0, q = M.length; N < q; N++) {
761
761
  var B = M[N].getAttributeNS(at, "href");
762
762
  B && B.toString() === "#" + b[$].id && F.push(M[N]);
763
763
  }
764
764
  for (var se = 0, I = F.length; se < I; se++)
765
765
  F[se].setAttributeNS(at, "href", "#" + Y);
766
766
  b[$].id = Y;
767
- }, p = 0, y = b.length; p < y; p++)
768
- L(p);
767
+ }, h = 0, y = b.length; h < y; h++)
768
+ L(h);
769
769
  });
770
770
  }
771
- f.removeAttribute("xmlns:a");
772
- for (var j = f.querySelectorAll("script"), P = [], D, _, U = 0, H = j.length; U < H; U++)
773
- _ = j[U].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D), f.removeChild(j[U]));
774
- if (P.length > 0 && (t === "always" || t === "once" && !_t[c])) {
775
- for (var q = 0, K = P.length; q < K; q++)
776
- new Function(P[q])(window);
777
- _t[c] = !0;
771
+ l.removeAttribute("xmlns:a");
772
+ for (var j = l.querySelectorAll("script"), P = [], D, _, U = 0, H = j.length; U < H; U++)
773
+ _ = j[U].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D), l.removeChild(j[U]));
774
+ if (P.length > 0 && (t === "always" || t === "once" && !_t[f])) {
775
+ for (var K = 0, z = P.length; K < z; K++)
776
+ new Function(P[K])(window);
777
+ _t[f] = !0;
778
778
  }
779
- var J = f.querySelectorAll("style");
779
+ var J = l.querySelectorAll("style");
780
780
  if (Array.prototype.forEach.call(J, function(W) {
781
781
  W.textContent += "";
782
- }), f.setAttribute("xmlns", Xr), f.setAttribute("xmlns:xlink", at), i(f), !e.parentNode) {
782
+ }), l.setAttribute("xmlns", Xr), l.setAttribute("xmlns:xlink", at), i(l), !e.parentNode) {
783
783
  me.splice(me.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
784
784
  return;
785
785
  }
786
- e.parentNode.replaceChild(f, e), me.splice(me.indexOf(e), 1), e = null, o(null, f);
786
+ e.parentNode.replaceChild(l, e), me.splice(me.indexOf(e), 1), e = null, o(null, l);
787
787
  });
788
788
  }, Zr = function(e, t) {
789
789
  var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
790
790
  } : s, i = n.afterEach, o = i === void 0 ? function() {
791
- } : i, c = n.beforeEach, l = c === void 0 ? function() {
792
- } : c, u = n.cacheRequests, f = u === void 0 ? !0 : u, d = n.evalScripts, h = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
791
+ } : i, f = n.beforeEach, c = f === void 0 ? function() {
792
+ } : f, u = n.cacheRequests, l = u === void 0 ? !0 : u, d = n.evalScripts, p = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, S = x === void 0 ? !0 : x;
793
793
  if (e && "length" in e)
794
- for (var E = 0, R = 0, S = e.length; R < S; R++)
795
- It(e[R], h, w, f, g, l, function(b, k) {
794
+ for (var E = 0, O = 0, w = e.length; O < w; O++)
795
+ It(e[O], p, S, l, g, c, function(b, k) {
796
796
  o(b, k), e && "length" in e && e.length === ++E && a(E);
797
797
  });
798
- else e ? It(e, h, w, f, g, l, function(b, k) {
798
+ else e ? It(e, p, S, l, g, c, function(b, k) {
799
799
  o(b, k), a(1), e = null;
800
800
  }) : a(0);
801
801
  }, Ue = { exports: {} }, We = { exports: {} }, Q = {};
@@ -811,26 +811,26 @@ var kt;
811
811
  function Qr() {
812
812
  if (kt) return Q;
813
813
  kt = 1;
814
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
815
- function R(b) {
814
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, S = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
815
+ function O(b) {
816
816
  if (typeof b == "object" && b !== null) {
817
817
  var k = b.$$typeof;
818
818
  switch (k) {
819
819
  case e:
820
820
  switch (b = b.type, b) {
821
+ case f:
821
822
  case c:
822
- case l:
823
823
  case n:
824
824
  case a:
825
825
  case s:
826
- case f:
826
+ case l:
827
827
  return b;
828
828
  default:
829
829
  switch (b = b && b.$$typeof, b) {
830
830
  case o:
831
831
  case u:
832
832
  case m:
833
- case h:
833
+ case p:
834
834
  case i:
835
835
  return b;
836
836
  default:
@@ -842,36 +842,36 @@ function Qr() {
842
842
  }
843
843
  }
844
844
  }
845
- function S(b) {
846
- return R(b) === l;
845
+ function w(b) {
846
+ return O(b) === c;
847
847
  }
848
- return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = m, Q.Memo = h, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = f, Q.isAsyncMode = function(b) {
849
- return S(b) || R(b) === c;
850
- }, Q.isConcurrentMode = S, Q.isContextConsumer = function(b) {
851
- return R(b) === o;
848
+ return Q.AsyncMode = f, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = m, Q.Memo = p, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = l, Q.isAsyncMode = function(b) {
849
+ return w(b) || O(b) === f;
850
+ }, Q.isConcurrentMode = w, Q.isContextConsumer = function(b) {
851
+ return O(b) === o;
852
852
  }, Q.isContextProvider = function(b) {
853
- return R(b) === i;
853
+ return O(b) === i;
854
854
  }, Q.isElement = function(b) {
855
855
  return typeof b == "object" && b !== null && b.$$typeof === e;
856
856
  }, Q.isForwardRef = function(b) {
857
- return R(b) === u;
857
+ return O(b) === u;
858
858
  }, Q.isFragment = function(b) {
859
- return R(b) === n;
859
+ return O(b) === n;
860
860
  }, Q.isLazy = function(b) {
861
- return R(b) === m;
861
+ return O(b) === m;
862
862
  }, Q.isMemo = function(b) {
863
- return R(b) === h;
863
+ return O(b) === p;
864
864
  }, Q.isPortal = function(b) {
865
- return R(b) === t;
865
+ return O(b) === t;
866
866
  }, Q.isProfiler = function(b) {
867
- return R(b) === a;
867
+ return O(b) === a;
868
868
  }, Q.isStrictMode = function(b) {
869
- return R(b) === s;
869
+ return O(b) === s;
870
870
  }, Q.isSuspense = function(b) {
871
- return R(b) === f;
871
+ return O(b) === l;
872
872
  }, Q.isValidElementType = function(b) {
873
- return typeof b == "string" || typeof b == "function" || b === n || b === l || b === a || b === s || b === f || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === h || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof === w || b.$$typeof === E || b.$$typeof === g);
874
- }, Q.typeOf = R, Q;
873
+ return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === l || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof === S || b.$$typeof === E || b.$$typeof === g);
874
+ }, Q.typeOf = O, Q;
875
875
  }
876
876
  var ee = {};
877
877
  /** @license React v16.13.1
@@ -885,24 +885,24 @@ var ee = {};
885
885
  var Nt;
886
886
  function en() {
887
887
  return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
888
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
889
- function R(I) {
888
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, S = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
889
+ function O(I) {
890
890
  return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
891
- I === n || I === l || I === a || I === s || I === f || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === h || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof === w || I.$$typeof === E || I.$$typeof === g);
891
+ I === n || I === c || I === a || I === s || I === l || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === p || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof === S || I.$$typeof === E || I.$$typeof === g);
892
892
  }
893
- function S(I) {
893
+ function w(I) {
894
894
  if (typeof I == "object" && I !== null) {
895
895
  var V = I.$$typeof;
896
896
  switch (V) {
897
897
  case e:
898
898
  var X = I.type;
899
899
  switch (X) {
900
+ case f:
900
901
  case c:
901
- case l:
902
902
  case n:
903
903
  case a:
904
904
  case s:
905
- case f:
905
+ case l:
906
906
  return X;
907
907
  default:
908
908
  var te = X && X.$$typeof;
@@ -910,7 +910,7 @@ function en() {
910
910
  case o:
911
911
  case u:
912
912
  case m:
913
- case h:
913
+ case p:
914
914
  case i:
915
915
  return te;
916
916
  default:
@@ -922,47 +922,47 @@ function en() {
922
922
  }
923
923
  }
924
924
  }
925
- var b = c, k = l, C = o, Y = i, j = e, P = u, D = n, _ = m, U = h, H = t, q = a, K = s, J = f, W = !1;
925
+ var b = f, k = c, C = o, Y = i, j = e, P = u, D = n, _ = m, U = p, H = t, K = a, z = s, J = l, W = !1;
926
926
  function L(I) {
927
- return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(I) || S(I) === c;
927
+ return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(I) || w(I) === f;
928
928
  }
929
- function p(I) {
930
- return S(I) === l;
929
+ function h(I) {
930
+ return w(I) === c;
931
931
  }
932
932
  function y(I) {
933
- return S(I) === o;
933
+ return w(I) === o;
934
934
  }
935
935
  function T(I) {
936
- return S(I) === i;
936
+ return w(I) === i;
937
937
  }
938
938
  function $(I) {
939
939
  return typeof I == "object" && I !== null && I.$$typeof === e;
940
940
  }
941
- function O(I) {
942
- return S(I) === u;
941
+ function R(I) {
942
+ return w(I) === u;
943
943
  }
944
944
  function A(I) {
945
- return S(I) === n;
945
+ return w(I) === n;
946
946
  }
947
947
  function M(I) {
948
- return S(I) === m;
948
+ return w(I) === m;
949
949
  }
950
950
  function F(I) {
951
- return S(I) === h;
951
+ return w(I) === p;
952
952
  }
953
953
  function N(I) {
954
- return S(I) === t;
954
+ return w(I) === t;
955
955
  }
956
- function z(I) {
957
- return S(I) === a;
956
+ function q(I) {
957
+ return w(I) === a;
958
958
  }
959
959
  function B(I) {
960
- return S(I) === s;
960
+ return w(I) === s;
961
961
  }
962
962
  function se(I) {
963
- return S(I) === f;
963
+ return w(I) === l;
964
964
  }
965
- ee.AsyncMode = b, ee.ConcurrentMode = k, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = _, ee.Memo = U, ee.Portal = H, ee.Profiler = q, ee.StrictMode = K, ee.Suspense = J, ee.isAsyncMode = L, ee.isConcurrentMode = p, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = O, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = z, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = R, ee.typeOf = S;
965
+ ee.AsyncMode = b, ee.ConcurrentMode = k, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = _, ee.Memo = U, ee.Portal = H, ee.Profiler = K, ee.StrictMode = z, ee.Suspense = J, ee.isAsyncMode = L, ee.isConcurrentMode = h, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = R, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = q, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = O, ee.typeOf = w;
966
966
  }()), ee;
967
967
  }
968
968
  var Mt;
@@ -993,31 +993,31 @@ function tn() {
993
993
  return !1;
994
994
  for (var i = {}, o = 0; o < 10; o++)
995
995
  i["_" + String.fromCharCode(o)] = o;
996
- var c = Object.getOwnPropertyNames(i).map(function(u) {
996
+ var f = Object.getOwnPropertyNames(i).map(function(u) {
997
997
  return i[u];
998
998
  });
999
- if (c.join("") !== "0123456789")
999
+ if (f.join("") !== "0123456789")
1000
1000
  return !1;
1001
- var l = {};
1001
+ var c = {};
1002
1002
  return "abcdefghijklmnopqrst".split("").forEach(function(u) {
1003
- l[u] = u;
1004
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
1003
+ c[u] = u;
1004
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
1005
1005
  } catch {
1006
1006
  return !1;
1007
1007
  }
1008
1008
  }
1009
1009
  return it = s() ? Object.assign : function(a, i) {
1010
- for (var o, c = n(a), l, u = 1; u < arguments.length; u++) {
1010
+ for (var o, f = n(a), c, u = 1; u < arguments.length; u++) {
1011
1011
  o = Object(arguments[u]);
1012
- for (var f in o)
1013
- e.call(o, f) && (c[f] = o[f]);
1012
+ for (var l in o)
1013
+ e.call(o, l) && (f[l] = o[l]);
1014
1014
  if (r) {
1015
- l = r(o);
1016
- for (var d = 0; d < l.length; d++)
1017
- t.call(o, l[d]) && (c[l[d]] = o[l[d]]);
1015
+ c = r(o);
1016
+ for (var d = 0; d < c.length; d++)
1017
+ t.call(o, c[d]) && (f[c[d]] = o[c[d]]);
1018
1018
  }
1019
1019
  }
1020
- return c;
1020
+ return f;
1021
1021
  }, it;
1022
1022
  }
1023
1023
  var ot, Vt;
@@ -1048,29 +1048,29 @@ function rn() {
1048
1048
  }
1049
1049
  };
1050
1050
  }
1051
- function s(a, i, o, c, l) {
1051
+ function s(a, i, o, f, c) {
1052
1052
  if (process.env.NODE_ENV !== "production") {
1053
1053
  for (var u in a)
1054
1054
  if (n(a, u)) {
1055
- var f;
1055
+ var l;
1056
1056
  try {
1057
1057
  if (typeof a[u] != "function") {
1058
1058
  var d = Error(
1059
- (c || "React class") + ": " + o + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1059
+ (f || "React class") + ": " + o + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1060
1060
  );
1061
1061
  throw d.name = "Invariant Violation", d;
1062
1062
  }
1063
- f = a[u](i, u, c, o, null, e);
1063
+ l = a[u](i, u, f, o, null, e);
1064
1064
  } catch (m) {
1065
- f = m;
1065
+ l = m;
1066
1066
  }
1067
- if (f && !(f instanceof Error) && r(
1068
- (c || "React class") + ": type specification of " + o + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1069
- ), f instanceof Error && !(f.message in t)) {
1070
- t[f.message] = !0;
1071
- var h = l ? l() : "";
1067
+ if (l && !(l instanceof Error) && r(
1068
+ (f || "React class") + ": type specification of " + o + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1069
+ ), l instanceof Error && !(l.message in t)) {
1070
+ t[l.message] = !0;
1071
+ var p = c ? c() : "";
1072
1072
  r(
1073
- "Failed " + o + " type: " + f.message + (h ?? "")
1073
+ "Failed " + o + " type: " + l.message + (p ?? "")
1074
1074
  );
1075
1075
  }
1076
1076
  }
@@ -1087,35 +1087,35 @@ function nn() {
1087
1087
  var r = vr(), e = tn(), t = /* @__PURE__ */ wt(), n = /* @__PURE__ */ br(), s = /* @__PURE__ */ rn(), a = function() {
1088
1088
  };
1089
1089
  process.env.NODE_ENV !== "production" && (a = function(o) {
1090
- var c = "Warning: " + o;
1091
- typeof console < "u" && console.error(c);
1090
+ var f = "Warning: " + o;
1091
+ typeof console < "u" && console.error(f);
1092
1092
  try {
1093
- throw new Error(c);
1093
+ throw new Error(f);
1094
1094
  } catch {
1095
1095
  }
1096
1096
  });
1097
1097
  function i() {
1098
1098
  return null;
1099
1099
  }
1100
- return ut = function(o, c) {
1101
- var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
1102
- function f(p) {
1103
- var y = p && (l && p[l] || p[u]);
1100
+ return ut = function(o, f) {
1101
+ var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
1102
+ function l(h) {
1103
+ var y = h && (c && h[c] || h[u]);
1104
1104
  if (typeof y == "function")
1105
1105
  return y;
1106
1106
  }
1107
- var d = "<<anonymous>>", h = {
1108
- array: w("array"),
1109
- bigint: w("bigint"),
1110
- bool: w("boolean"),
1111
- func: w("function"),
1112
- number: w("number"),
1113
- object: w("object"),
1114
- string: w("string"),
1115
- symbol: w("symbol"),
1107
+ var d = "<<anonymous>>", p = {
1108
+ array: S("array"),
1109
+ bigint: S("bigint"),
1110
+ bool: S("boolean"),
1111
+ func: S("function"),
1112
+ number: S("number"),
1113
+ object: S("object"),
1114
+ string: S("string"),
1115
+ symbol: S("symbol"),
1116
1116
  any: E(),
1117
- arrayOf: R,
1118
- element: S(),
1117
+ arrayOf: O,
1118
+ element: w(),
1119
1119
  elementType: b(),
1120
1120
  instanceOf: k,
1121
1121
  node: P(),
@@ -1125,19 +1125,19 @@ function nn() {
1125
1125
  shape: _,
1126
1126
  exact: U
1127
1127
  };
1128
- function m(p, y) {
1129
- return p === y ? p !== 0 || 1 / p === 1 / y : p !== p && y !== y;
1128
+ function m(h, y) {
1129
+ return h === y ? h !== 0 || 1 / h === 1 / y : h !== h && y !== y;
1130
1130
  }
1131
- function g(p, y) {
1132
- this.message = p, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
1131
+ function g(h, y) {
1132
+ this.message = h, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
1133
1133
  }
1134
1134
  g.prototype = Error.prototype;
1135
- function x(p) {
1135
+ function x(h) {
1136
1136
  if (process.env.NODE_ENV !== "production")
1137
1137
  var y = {}, T = 0;
1138
- function $(A, M, F, N, z, B, se) {
1138
+ function $(A, M, F, N, q, B, se) {
1139
1139
  if (N = N || d, B = B || F, se !== t) {
1140
- if (c) {
1140
+ if (f) {
1141
1141
  var I = new Error(
1142
1142
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1143
1143
  );
@@ -1150,19 +1150,19 @@ function nn() {
1150
1150
  ), y[V] = !0, T++);
1151
1151
  }
1152
1152
  }
1153
- return M[F] == null ? A ? M[F] === null ? new g("The " + z + " `" + B + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + z + " `" + B + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : p(M, F, N, z, B);
1153
+ return M[F] == null ? A ? M[F] === null ? new g("The " + q + " `" + B + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + q + " `" + B + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : h(M, F, N, q, B);
1154
1154
  }
1155
- var O = $.bind(null, !1);
1156
- return O.isRequired = $.bind(null, !0), O;
1155
+ var R = $.bind(null, !1);
1156
+ return R.isRequired = $.bind(null, !0), R;
1157
1157
  }
1158
- function w(p) {
1159
- function y(T, $, O, A, M, F) {
1160
- var N = T[$], z = K(N);
1161
- if (z !== p) {
1158
+ function S(h) {
1159
+ function y(T, $, R, A, M, F) {
1160
+ var N = T[$], q = z(N);
1161
+ if (q !== h) {
1162
1162
  var B = J(N);
1163
1163
  return new g(
1164
- "Invalid " + A + " `" + M + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("`" + p + "`."),
1165
- { expectedType: p }
1164
+ "Invalid " + A + " `" + M + "` of type " + ("`" + B + "` supplied to `" + R + "`, expected ") + ("`" + h + "`."),
1165
+ { expectedType: h }
1166
1166
  );
1167
1167
  }
1168
1168
  return null;
@@ -1172,17 +1172,17 @@ function nn() {
1172
1172
  function E() {
1173
1173
  return x(i);
1174
1174
  }
1175
- function R(p) {
1176
- function y(T, $, O, A, M) {
1177
- if (typeof p != "function")
1178
- return new g("Property `" + M + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
1175
+ function O(h) {
1176
+ function y(T, $, R, A, M) {
1177
+ if (typeof h != "function")
1178
+ return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
1179
1179
  var F = T[$];
1180
1180
  if (!Array.isArray(F)) {
1181
- var N = K(F);
1182
- return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected an array."));
1181
+ var N = z(F);
1182
+ return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an array."));
1183
1183
  }
1184
- for (var z = 0; z < F.length; z++) {
1185
- var B = p(F, z, O, A, M + "[" + z + "]", t);
1184
+ for (var q = 0; q < F.length; q++) {
1185
+ var B = h(F, q, R, A, M + "[" + q + "]", t);
1186
1186
  if (B instanceof Error)
1187
1187
  return B;
1188
1188
  }
@@ -1190,65 +1190,65 @@ function nn() {
1190
1190
  }
1191
1191
  return x(y);
1192
1192
  }
1193
- function S() {
1194
- function p(y, T, $, O, A) {
1193
+ function w() {
1194
+ function h(y, T, $, R, A) {
1195
1195
  var M = y[T];
1196
1196
  if (!o(M)) {
1197
- var F = K(M);
1198
- return new g("Invalid " + O + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
1197
+ var F = z(M);
1198
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
1199
1199
  }
1200
1200
  return null;
1201
1201
  }
1202
- return x(p);
1202
+ return x(h);
1203
1203
  }
1204
1204
  function b() {
1205
- function p(y, T, $, O, A) {
1205
+ function h(y, T, $, R, A) {
1206
1206
  var M = y[T];
1207
1207
  if (!r.isValidElementType(M)) {
1208
- var F = K(M);
1209
- return new g("Invalid " + O + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1208
+ var F = z(M);
1209
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1210
1210
  }
1211
1211
  return null;
1212
1212
  }
1213
- return x(p);
1213
+ return x(h);
1214
1214
  }
1215
- function k(p) {
1216
- function y(T, $, O, A, M) {
1217
- if (!(T[$] instanceof p)) {
1218
- var F = p.name || d, N = L(T[$]);
1219
- return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected ") + ("instance of `" + F + "`."));
1215
+ function k(h) {
1216
+ function y(T, $, R, A, M) {
1217
+ if (!(T[$] instanceof h)) {
1218
+ var F = h.name || d, N = L(T[$]);
1219
+ return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("instance of `" + F + "`."));
1220
1220
  }
1221
1221
  return null;
1222
1222
  }
1223
1223
  return x(y);
1224
1224
  }
1225
- function C(p) {
1226
- if (!Array.isArray(p))
1225
+ function C(h) {
1226
+ if (!Array.isArray(h))
1227
1227
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1228
1228
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1229
1229
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1230
- function y(T, $, O, A, M) {
1231
- for (var F = T[$], N = 0; N < p.length; N++)
1232
- if (m(F, p[N]))
1230
+ function y(T, $, R, A, M) {
1231
+ for (var F = T[$], N = 0; N < h.length; N++)
1232
+ if (m(F, h[N]))
1233
1233
  return null;
1234
- var z = JSON.stringify(p, function(se, I) {
1234
+ var q = JSON.stringify(h, function(se, I) {
1235
1235
  var V = J(I);
1236
1236
  return V === "symbol" ? String(I) : I;
1237
1237
  });
1238
- return new g("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" + O + "`, expected one of " + z + "."));
1238
+ return new g("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" + R + "`, expected one of " + q + "."));
1239
1239
  }
1240
1240
  return x(y);
1241
1241
  }
1242
- function Y(p) {
1243
- function y(T, $, O, A, M) {
1244
- if (typeof p != "function")
1245
- return new g("Property `" + M + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
1246
- var F = T[$], N = K(F);
1242
+ function Y(h) {
1243
+ function y(T, $, R, A, M) {
1244
+ if (typeof h != "function")
1245
+ return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
1246
+ var F = T[$], N = z(F);
1247
1247
  if (N !== "object")
1248
- return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected an object."));
1249
- for (var z in F)
1250
- if (n(F, z)) {
1251
- var B = p(F, z, O, A, M + "." + z, t);
1248
+ return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an object."));
1249
+ for (var q in F)
1250
+ if (n(F, q)) {
1251
+ var B = h(F, q, R, A, M + "." + q, t);
1252
1252
  if (B instanceof Error)
1253
1253
  return B;
1254
1254
  }
@@ -1256,49 +1256,49 @@ function nn() {
1256
1256
  }
1257
1257
  return x(y);
1258
1258
  }
1259
- function j(p) {
1260
- if (!Array.isArray(p))
1259
+ function j(h) {
1260
+ if (!Array.isArray(h))
1261
1261
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1262
- for (var y = 0; y < p.length; y++) {
1263
- var T = p[y];
1262
+ for (var y = 0; y < h.length; y++) {
1263
+ var T = h[y];
1264
1264
  if (typeof T != "function")
1265
1265
  return a(
1266
1266
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(T) + " at index " + y + "."
1267
1267
  ), i;
1268
1268
  }
1269
- function $(O, A, M, F, N) {
1270
- for (var z = [], B = 0; B < p.length; B++) {
1271
- var se = p[B], I = se(O, A, M, F, N, t);
1269
+ function $(R, A, M, F, N) {
1270
+ for (var q = [], B = 0; B < h.length; B++) {
1271
+ var se = h[B], I = se(R, A, M, F, N, t);
1272
1272
  if (I == null)
1273
1273
  return null;
1274
- I.data && n(I.data, "expectedType") && z.push(I.data.expectedType);
1274
+ I.data && n(I.data, "expectedType") && q.push(I.data.expectedType);
1275
1275
  }
1276
- var V = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
1276
+ var V = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1277
1277
  return new g("Invalid " + F + " `" + N + "` supplied to " + ("`" + M + "`" + V + "."));
1278
1278
  }
1279
1279
  return x($);
1280
1280
  }
1281
1281
  function P() {
1282
- function p(y, T, $, O, A) {
1283
- return H(y[T]) ? null : new g("Invalid " + O + " `" + A + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1282
+ function h(y, T, $, R, A) {
1283
+ return H(y[T]) ? null : new g("Invalid " + R + " `" + A + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1284
1284
  }
1285
- return x(p);
1285
+ return x(h);
1286
1286
  }
1287
- function D(p, y, T, $, O) {
1287
+ function D(h, y, T, $, R) {
1288
1288
  return new g(
1289
- (p || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
1289
+ (h || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1290
1290
  );
1291
1291
  }
1292
- function _(p) {
1293
- function y(T, $, O, A, M) {
1294
- var F = T[$], N = K(F);
1292
+ function _(h) {
1293
+ function y(T, $, R, A, M) {
1294
+ var F = T[$], N = z(F);
1295
1295
  if (N !== "object")
1296
- return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + O + "`, expected `object`."));
1297
- for (var z in p) {
1298
- var B = p[z];
1296
+ return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
1297
+ for (var q in h) {
1298
+ var B = h[q];
1299
1299
  if (typeof B != "function")
1300
- return D(O, A, M, z, J(B));
1301
- var se = B(F, z, O, A, M + "." + z, t);
1300
+ return D(R, A, M, q, J(B));
1301
+ var se = B(F, q, R, A, M + "." + q, t);
1302
1302
  if (se)
1303
1303
  return se;
1304
1304
  }
@@ -1306,22 +1306,22 @@ function nn() {
1306
1306
  }
1307
1307
  return x(y);
1308
1308
  }
1309
- function U(p) {
1310
- function y(T, $, O, A, M) {
1311
- var F = T[$], N = K(F);
1309
+ function U(h) {
1310
+ function y(T, $, R, A, M) {
1311
+ var F = T[$], N = z(F);
1312
1312
  if (N !== "object")
1313
- return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + O + "`, expected `object`."));
1314
- var z = e({}, T[$], p);
1315
- for (var B in z) {
1316
- var se = p[B];
1317
- if (n(p, B) && typeof se != "function")
1318
- return D(O, A, M, B, J(se));
1313
+ return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
1314
+ var q = e({}, T[$], h);
1315
+ for (var B in q) {
1316
+ var se = h[B];
1317
+ if (n(h, B) && typeof se != "function")
1318
+ return D(R, A, M, B, J(se));
1319
1319
  if (!se)
1320
1320
  return new g(
1321
- "Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
1322
- Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1321
+ "Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
1322
+ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1323
1323
  );
1324
- var I = se(F, B, O, A, M + "." + B, t);
1324
+ var I = se(F, B, R, A, M + "." + B, t);
1325
1325
  if (I)
1326
1326
  return I;
1327
1327
  }
@@ -1329,30 +1329,30 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1329
1329
  }
1330
1330
  return x(y);
1331
1331
  }
1332
- function H(p) {
1333
- switch (typeof p) {
1332
+ function H(h) {
1333
+ switch (typeof h) {
1334
1334
  case "number":
1335
1335
  case "string":
1336
1336
  case "undefined":
1337
1337
  return !0;
1338
1338
  case "boolean":
1339
- return !p;
1339
+ return !h;
1340
1340
  case "object":
1341
- if (Array.isArray(p))
1342
- return p.every(H);
1343
- if (p === null || o(p))
1341
+ if (Array.isArray(h))
1342
+ return h.every(H);
1343
+ if (h === null || o(h))
1344
1344
  return !0;
1345
- var y = f(p);
1345
+ var y = l(h);
1346
1346
  if (y) {
1347
- var T = y.call(p), $;
1348
- if (y !== p.entries) {
1347
+ var T = y.call(h), $;
1348
+ if (y !== h.entries) {
1349
1349
  for (; !($ = T.next()).done; )
1350
1350
  if (!H($.value))
1351
1351
  return !1;
1352
1352
  } else
1353
1353
  for (; !($ = T.next()).done; ) {
1354
- var O = $.value;
1355
- if (O && !H(O[1]))
1354
+ var R = $.value;
1355
+ if (R && !H(R[1]))
1356
1356
  return !1;
1357
1357
  }
1358
1358
  } else
@@ -1362,27 +1362,27 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1362
1362
  return !1;
1363
1363
  }
1364
1364
  }
1365
- function q(p, y) {
1366
- return p === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1365
+ function K(h, y) {
1366
+ return h === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1367
1367
  }
1368
- function K(p) {
1369
- var y = typeof p;
1370
- return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : q(y, p) ? "symbol" : y;
1368
+ function z(h) {
1369
+ var y = typeof h;
1370
+ return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : K(y, h) ? "symbol" : y;
1371
1371
  }
1372
- function J(p) {
1373
- if (typeof p > "u" || p === null)
1374
- return "" + p;
1375
- var y = K(p);
1372
+ function J(h) {
1373
+ if (typeof h > "u" || h === null)
1374
+ return "" + h;
1375
+ var y = z(h);
1376
1376
  if (y === "object") {
1377
- if (p instanceof Date)
1377
+ if (h instanceof Date)
1378
1378
  return "date";
1379
- if (p instanceof RegExp)
1379
+ if (h instanceof RegExp)
1380
1380
  return "regexp";
1381
1381
  }
1382
1382
  return y;
1383
1383
  }
1384
- function W(p) {
1385
- var y = J(p);
1384
+ function W(h) {
1385
+ var y = J(h);
1386
1386
  switch (y) {
1387
1387
  case "array":
1388
1388
  case "object":
@@ -1395,10 +1395,10 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1395
1395
  return y;
1396
1396
  }
1397
1397
  }
1398
- function L(p) {
1399
- return !p.constructor || !p.constructor.name ? d : p.constructor.name;
1398
+ function L(h) {
1399
+ return !h.constructor || !h.constructor.name ? d : h.constructor.name;
1400
1400
  }
1401
- return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
1401
+ return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
1402
1402
  }, ut;
1403
1403
  }
1404
1404
  var ft, Ht;
@@ -1411,8 +1411,8 @@ function sn() {
1411
1411
  function t() {
1412
1412
  }
1413
1413
  return t.resetWarningCache = e, ft = function() {
1414
- function n(i, o, c, l, u, f) {
1415
- if (f !== r) {
1414
+ function n(i, o, f, c, u, l) {
1415
+ if (l !== r) {
1416
1416
  var d = new Error(
1417
1417
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1418
1418
  );
@@ -1486,11 +1486,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1486
1486
  return t.renderSVG = function() {
1487
1487
  var s = this;
1488
1488
  if (this.reactWrapper instanceof on(this.reactWrapper).Node) {
1489
- var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, u = a.src, f = a.title, d = a.useRequestCache, h = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, w, E;
1490
- x === "svg" ? (w = document.createElementNS(He, x), w.setAttribute("xmlns", He), w.setAttribute("xmlns:xlink", Gt), E = document.createElementNS(He, x)) : (w = document.createElement(x), E = document.createElement(x)), w.appendChild(E), E.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(w);
1491
- var R = function(C) {
1489
+ var a = this.props, i = a.desc, o = a.evalScripts, f = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, l = a.title, d = a.useRequestCache, p = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, S, E;
1490
+ x === "svg" ? (S = document.createElementNS(He, x), S.setAttribute("xmlns", He), S.setAttribute("xmlns:xlink", Gt), E = document.createElementNS(He, x)) : (S = document.createElement(x), E = document.createElement(x)), S.appendChild(E), E.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(S);
1491
+ var O = function(C) {
1492
1492
  if (s.removeSVG(), !s._isMounted) {
1493
- h(C);
1493
+ p(C);
1494
1494
  return;
1495
1495
  }
1496
1496
  s.setState(function() {
@@ -1499,11 +1499,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1499
1499
  isLoading: !1
1500
1500
  };
1501
1501
  }, function() {
1502
- h(C);
1502
+ p(C);
1503
1503
  });
1504
- }, S = function(C, Y) {
1504
+ }, w = function(C, Y) {
1505
1505
  if (C) {
1506
- R(C);
1506
+ O(C);
1507
1507
  return;
1508
1508
  }
1509
1509
  s._isMounted && s.setState(function() {
@@ -1514,7 +1514,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1514
1514
  try {
1515
1515
  g(Y);
1516
1516
  } catch (j) {
1517
- R(j);
1517
+ O(j);
1518
1518
  }
1519
1519
  });
1520
1520
  }, b = function(C) {
@@ -1524,25 +1524,25 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1524
1524
  var j = document.createElement("desc");
1525
1525
  j.innerHTML = i, C.prepend(j);
1526
1526
  }
1527
- if (f) {
1527
+ if (l) {
1528
1528
  var P = C.querySelector(":scope > title");
1529
1529
  P && C.removeChild(P);
1530
1530
  var D = document.createElement("title");
1531
- D.innerHTML = f, C.prepend(D);
1531
+ D.innerHTML = l, C.prepend(D);
1532
1532
  }
1533
1533
  try {
1534
1534
  m(C);
1535
1535
  } catch (_) {
1536
- R(_);
1536
+ O(_);
1537
1537
  }
1538
1538
  };
1539
1539
  Zr(E, {
1540
- afterEach: S,
1540
+ afterEach: w,
1541
1541
  beforeEach: b,
1542
1542
  cacheRequests: d,
1543
1543
  evalScripts: o,
1544
- httpRequestWithCredentials: c,
1545
- renumerateIRIElements: l
1544
+ httpRequestWithCredentials: f,
1545
+ renumerateIRIElements: c
1546
1546
  });
1547
1547
  }
1548
1548
  }, t.removeSVG = function() {
@@ -1566,8 +1566,8 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1566
1566
  s.httpRequestWithCredentials;
1567
1567
  var i = s.loading;
1568
1568
  s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
1569
- var o = s.wrapper, c = Ur(s, cn), l = o;
1570
- return /* @__PURE__ */ Me.createElement(l, Ze({}, c, {
1569
+ var o = s.wrapper, f = Ur(s, cn), c = o;
1570
+ return /* @__PURE__ */ Me.createElement(c, Ze({}, f, {
1571
1571
  ref: this.refCallback
1572
1572
  }, o === "svg" ? {
1573
1573
  xmlns: He,
@@ -1613,7 +1613,7 @@ let gt = {
1613
1613
  };
1614
1614
  const Ss = (r) => {
1615
1615
  gt = { ...gt, ...r };
1616
- }, Kt = (r) => `${gt.assets}/${r}`.replace(/\/+/g, "/"), ue = hr.memo(
1616
+ }, zt = (r) => `${gt.assets}/${r}`.replace(/\/+/g, "/"), ue = hr.memo(
1617
1617
  ({
1618
1618
  icon: r,
1619
1619
  width: e,
@@ -1623,33 +1623,33 @@ const Ss = (r) => {
1623
1623
  disabled: a,
1624
1624
  state: i = "base",
1625
1625
  rotated: o = !1,
1626
- onClick: c,
1627
- isInteractable: l = !1,
1626
+ onClick: f,
1627
+ isInteractable: c = !1,
1628
1628
  spin: u = !1,
1629
- title: f
1629
+ title: l
1630
1630
  }) => {
1631
- const [d, h] = Z(r), m = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), g = m && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), x = Kt(`assets/svg/${r}.svg`), w = Kt(
1631
+ const [d, p] = Z(r), m = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), g = m && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), x = zt(`assets/svg/${r}.svg`), S = zt(
1632
1632
  `assets/svg/${n}.svg`
1633
1633
  ), E = {
1634
- img: `${l ? "smp-image-interactable" : ""}`,
1635
- svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
1636
- }, R = () => {
1637
- !a && l && c && c();
1634
+ img: `${c ? "smp-image-interactable" : ""}`,
1635
+ svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
1636
+ }, O = () => {
1637
+ !a && c && f && f();
1638
1638
  };
1639
1639
  return /* @__PURE__ */ v.jsx(v.Fragment, { children: g ? /* @__PURE__ */ v.jsx(
1640
1640
  je,
1641
1641
  {
1642
1642
  src: r,
1643
- fallback: () => /* @__PURE__ */ v.jsx(je, { src: w, wrapper: "svg" }),
1643
+ fallback: () => /* @__PURE__ */ v.jsx(je, { src: S, wrapper: "svg" }),
1644
1644
  width: e || "1rem",
1645
1645
  height: t || "1rem",
1646
1646
  wrapper: "svg",
1647
- title: f,
1647
+ title: l,
1648
1648
  role: "application",
1649
1649
  fill: s,
1650
1650
  "aria-disabled": a,
1651
1651
  className: E.svg,
1652
- onClick: R
1652
+ onClick: O
1653
1653
  }
1654
1654
  ) : m ? (
1655
1655
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
@@ -1659,13 +1659,13 @@ const Ss = (r) => {
1659
1659
  src: d,
1660
1660
  width: e || "16px",
1661
1661
  height: t || "auto",
1662
- alt: f,
1663
- onError: () => h(w),
1664
- onClick: R,
1662
+ alt: l,
1663
+ onError: () => p(S),
1664
+ onClick: O,
1665
1665
  className: E.img,
1666
- title: f,
1667
- onKeyDown: (S) => {
1668
- (S.key === "Enter" || S.key === " ") && R();
1666
+ title: l,
1667
+ onKeyDown: (w) => {
1668
+ (w.key === "Enter" || w.key === " ") && O();
1669
1669
  }
1670
1670
  }
1671
1671
  )
@@ -1673,16 +1673,16 @@ const Ss = (r) => {
1673
1673
  je,
1674
1674
  {
1675
1675
  src: x,
1676
- fallback: () => /* @__PURE__ */ v.jsx(je, { src: w, wrapper: "svg" }),
1676
+ fallback: () => /* @__PURE__ */ v.jsx(je, { src: S, wrapper: "svg" }),
1677
1677
  width: e || "1rem",
1678
1678
  height: t || "1rem",
1679
1679
  wrapper: "svg",
1680
- title: f,
1680
+ title: l,
1681
1681
  role: "application",
1682
1682
  fill: s,
1683
1683
  "aria-disabled": a,
1684
1684
  className: E.svg,
1685
- onClick: R
1685
+ onClick: O
1686
1686
  }
1687
1687
  ) });
1688
1688
  }
@@ -1695,41 +1695,41 @@ const Ss = (r) => {
1695
1695
  placeholder: a,
1696
1696
  isEditable: i = !0,
1697
1697
  shapeIcon: o,
1698
- sizing: c,
1699
- state: l,
1698
+ sizing: f,
1699
+ state: c,
1700
1700
  variant: u,
1701
- rotatedShapeIcon: f = !1,
1701
+ rotatedShapeIcon: l = !1,
1702
1702
  onShapeIconClick: d,
1703
- ref: h,
1703
+ ref: p,
1704
1704
  inputRef: m,
1705
1705
  onKeyDown: g,
1706
1706
  inputType: x = "text",
1707
- ariaLabel: w = "input field",
1707
+ ariaLabel: S = "input field",
1708
1708
  label: E,
1709
- helperText: R = !1,
1710
- error: S,
1709
+ helperText: O = !1,
1710
+ error: w,
1711
1711
  appearance: b = "base",
1712
1712
  fullWidth: k = !1,
1713
1713
  _dataComponent: C = "textfield",
1714
1714
  width: Y
1715
1715
  }) => {
1716
- const j = bt(), P = `${j}-helper`, D = S ? "danger" : l, _ = S || l == "danger" ? "error" : o, U = R || !!S, H = (J) => {
1716
+ const j = bt(), P = `${j}-helper`, D = w ? "danger" : c, _ = w || c == "danger" ? "error" : o, U = O || !!w, H = (J) => {
1717
1717
  s == null || s(J.target.value);
1718
- }, q = {
1718
+ }, K = {
1719
1719
  wrapper: `smp-textfield-wrapper ${k ? "smp-textfield-fullWidth" : ""}`,
1720
- container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${c ? `smp-textfield-${c}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
1720
+ container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${f ? `smp-textfield-${f}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
1721
1721
  input: "smp-textfield-input "
1722
1722
  };
1723
- u && (u != "notSelectable" || i) && (q.container += `smp-textfield-variant-${u}`);
1724
- const K = Y ? { "--smp-textField-width-base": Y } : void 0;
1725
- return /* @__PURE__ */ v.jsxs("div", { className: q.wrapper, "data-component": C, children: [
1723
+ u && (u != "notSelectable" || i) && (K.container += `smp-textfield-variant-${u}`);
1724
+ const z = Y ? { "--smp-textField-width-base": Y } : void 0;
1725
+ return /* @__PURE__ */ v.jsxs("div", { className: K.wrapper, "data-component": C, children: [
1726
1726
  E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: j }),
1727
1727
  /* @__PURE__ */ v.jsxs(
1728
1728
  "div",
1729
1729
  {
1730
- className: q.container,
1731
- ref: h,
1732
- style: K,
1730
+ className: K.container,
1731
+ ref: p,
1732
+ style: z,
1733
1733
  children: [
1734
1734
  t && /* @__PURE__ */ v.jsx(ue, { icon: t, disabled: r }),
1735
1735
  /* @__PURE__ */ v.jsx(
@@ -1741,11 +1741,11 @@ const Ss = (r) => {
1741
1741
  placeholder: a,
1742
1742
  onChange: H,
1743
1743
  onBlur: n,
1744
- className: q.input,
1744
+ className: K.input,
1745
1745
  disabled: r,
1746
1746
  readOnly: !i,
1747
1747
  onKeyDown: g,
1748
- "aria-label": w,
1748
+ "aria-label": S,
1749
1749
  ref: m,
1750
1750
  "aria-describedby": U ? P : void 0
1751
1751
  }
@@ -1757,7 +1757,7 @@ const Ss = (r) => {
1757
1757
  disabled: r,
1758
1758
  state: D,
1759
1759
  onClick: d,
1760
- rotated: f,
1760
+ rotated: l,
1761
1761
  isInteractable: i
1762
1762
  }
1763
1763
  )
@@ -1767,7 +1767,7 @@ const Ss = (r) => {
1767
1767
  U && /* @__PURE__ */ v.jsx(
1768
1768
  mr,
1769
1769
  {
1770
- helperText: S,
1770
+ helperText: w,
1771
1771
  disabled: r,
1772
1772
  state: D,
1773
1773
  id: P
@@ -1781,23 +1781,23 @@ function xr({
1781
1781
  containerHeight: t,
1782
1782
  overscan: n = 5
1783
1783
  }) {
1784
- const [s, a] = Z(0), i = ve(null), o = r.length * e, c = Math.max(0, Math.floor(s / e) - n), l = Math.min(
1784
+ const [s, a] = Z(0), i = ve(null), o = r.length * e, f = Math.max(0, Math.floor(s / e) - n), c = Math.min(
1785
1785
  r.length - 1,
1786
1786
  Math.floor((s + t) / e) + n
1787
1787
  ), u = [];
1788
- for (let h = c; h <= l; h++)
1788
+ for (let p = f; p <= c; p++)
1789
1789
  u.push({
1790
- item: r[h],
1791
- index: h,
1792
- offsetTop: h * e
1790
+ item: r[p],
1791
+ index: p,
1792
+ offsetTop: p * e
1793
1793
  });
1794
- const f = ye((h) => {
1795
- const m = h.target.scrollTop;
1794
+ const l = ye((p) => {
1795
+ const m = p.target.scrollTop;
1796
1796
  a(m);
1797
- }, []), d = (h) => {
1797
+ }, []), d = (p) => {
1798
1798
  if (!i.current) return;
1799
- const m = h * e, g = m + e, x = i.current, w = x.scrollTop, E = w + t;
1800
- m < w ? x.scrollTop = m : g > E && (x.scrollTop = g - t);
1799
+ const m = p * e, g = m + e, x = i.current, S = x.scrollTop, E = S + t;
1800
+ m < S ? x.scrollTop = m : g > E && (x.scrollTop = g - t);
1801
1801
  };
1802
1802
  return {
1803
1803
  virtualItems: u,
@@ -1809,7 +1809,7 @@ function xr({
1809
1809
  position: "relative",
1810
1810
  willChange: "transform"
1811
1811
  },
1812
- onScroll: f
1812
+ onScroll: l
1813
1813
  },
1814
1814
  innerProps: {
1815
1815
  style: {
@@ -1822,8 +1822,8 @@ function xr({
1822
1822
  scrollTop: s,
1823
1823
  viewportHeight: t,
1824
1824
  totalHeight: o,
1825
- startIndex: c,
1826
- endIndex: l
1825
+ startIndex: f,
1826
+ endIndex: c
1827
1827
  },
1828
1828
  scrollToIndex: d
1829
1829
  };
@@ -1839,34 +1839,34 @@ const un = 10, Sr = ({
1839
1839
  activeIndex: i = [],
1840
1840
  // active element
1841
1841
  width: o,
1842
- onClick: c,
1843
- onKeyDown: l
1842
+ onClick: f,
1843
+ onKeyDown: c
1844
1844
  }) => {
1845
1845
  var P;
1846
- const [u, f] = Z(""), d = 24, [h, m] = Z(
1846
+ const [u, l] = Z(""), d = 24, [p, m] = Z(
1847
1847
  a !== null ? a : -1
1848
1848
  ), g = s !== void 0 ? s : e.length > un, x = u ? e.filter(
1849
1849
  (D) => D.label.toLowerCase().includes(u.toLowerCase())
1850
- ) : e, w = (D) => {
1851
- f(D);
1852
- }, { virtualItems: E, containerProps: R, innerProps: S, scrollToIndex: b } = xr({
1850
+ ) : e, S = (D) => {
1851
+ l(D);
1852
+ }, { virtualItems: E, containerProps: O, innerProps: w, scrollToIndex: b } = xr({
1853
1853
  items: x,
1854
1854
  itemHeight: d,
1855
1855
  containerHeight: 200,
1856
1856
  overscan: 5
1857
1857
  });
1858
1858
  oe(() => {
1859
- a !== null && a !== h && m(a);
1859
+ a !== null && a !== p && m(a);
1860
1860
  }, [a]), oe(() => {
1861
- h >= 0 && h < x.length && b(h);
1862
- }, [h, x]);
1861
+ p >= 0 && p < x.length && b(p);
1862
+ }, [p, x]);
1863
1863
  const k = (D) => {
1864
1864
  if (D.key === "ArrowDown" || D.key === "ArrowUp") {
1865
1865
  D.preventDefault();
1866
- let _ = h;
1867
- D.key === "ArrowDown" ? _ = h < x.length - 1 ? h + 1 : 0 : D.key === "ArrowUp" && (_ = h > 0 ? h - 1 : x.length - 1), m(_);
1868
- } else D.key === "Enter" ? h >= 0 && h < x.length && (c == null || c(x[h])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
1869
- l && l(D);
1866
+ let _ = p;
1867
+ D.key === "ArrowDown" ? _ = p < x.length - 1 ? p + 1 : 0 : D.key === "ArrowUp" && (_ = p > 0 ? p - 1 : x.length - 1), m(_);
1868
+ } else D.key === "Enter" ? p >= 0 && p < x.length && (f == null || f(x[p])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
1869
+ c && c(D);
1870
1870
  }, C = (D) => {
1871
1871
  k(D);
1872
1872
  }, Y = (D) => {
@@ -1893,21 +1893,21 @@ const un = 10, Sr = ({
1893
1893
  {
1894
1894
  bindValue: u,
1895
1895
  placeholder: "Search...",
1896
- onChange: w,
1896
+ onChange: S,
1897
1897
  onKeyDown: C
1898
1898
  }
1899
1899
  ),
1900
1900
  /* @__PURE__ */ v.jsx(
1901
1901
  "div",
1902
1902
  {
1903
- ...R,
1903
+ ...O,
1904
1904
  className: j.container,
1905
1905
  tabIndex: 0,
1906
1906
  role: "listbox",
1907
1907
  "aria-label": "List",
1908
1908
  onKeyDown: Y,
1909
- "aria-activedescendant": h >= 0 && h < x.length ? (P = x[h]) == null ? void 0 : P.id : void 0,
1910
- children: /* @__PURE__ */ v.jsx("div", { ...S, className: j.virtualScroll, children: E.map(({ item: D, index: _, offsetTop: U }) => {
1909
+ "aria-activedescendant": p >= 0 && p < x.length ? (P = x[p]) == null ? void 0 : P.id : void 0,
1910
+ children: /* @__PURE__ */ v.jsx("div", { ...w, className: j.virtualScroll, children: E.map(({ item: D, index: _, offsetTop: U }) => {
1911
1911
  const H = i.includes(D.id);
1912
1912
  return (
1913
1913
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -1916,9 +1916,9 @@ const un = 10, Sr = ({
1916
1916
  {
1917
1917
  role: "option",
1918
1918
  id: D.id,
1919
- "aria-selected": h === _ ? "true" : "false",
1919
+ "aria-selected": p === _ ? "true" : "false",
1920
1920
  tabIndex: -1,
1921
- className: `${j.listItem} ${h === _ ? "selected-item" : ""}`,
1921
+ className: `${j.listItem} ${p === _ ? "selected-item" : ""}`,
1922
1922
  "aria-label": D.id + "-" + D.label,
1923
1923
  style: {
1924
1924
  height: `${d}px`,
@@ -1927,7 +1927,7 @@ const un = 10, Sr = ({
1927
1927
  transform: `translateY(${U}px)`
1928
1928
  },
1929
1929
  onClick: () => {
1930
- c == null || c(D), m(_);
1930
+ f == null || f(D), m(_);
1931
1931
  },
1932
1932
  children: [
1933
1933
  Xe(D.id, D.label, t),
@@ -1977,40 +1977,40 @@ const un = 10, Sr = ({
1977
1977
  minimumChars: a = 3,
1978
1978
  isEditable: i = !0,
1979
1979
  placeholder: o,
1980
- fun: c,
1981
- _changeOnEnter: l = !1,
1980
+ fun: f,
1981
+ _changeOnEnter: c = !1,
1982
1982
  onChange: u,
1983
- onOptionsRequest: f,
1983
+ onOptionsRequest: l,
1984
1984
  _multiActiveIndex: d,
1985
- ...h
1985
+ ...p
1986
1986
  }) => {
1987
- const [m, g] = Z(r), [x, w] = Z(e), [E, R] = Z(!1), [S, b] = Z(t || []), [k, C] = Z(0), [Y, j] = Z([r]), { anchorRef: P, targetRef: D, anchorWidth: _ } = St({
1987
+ const [m, g] = Z(r), [x, S] = Z(e), [E, O] = Z(!1), [w, b] = Z(t || []), [k, C] = Z(0), [Y, j] = Z([r]), { anchorRef: P, targetRef: D, anchorWidth: _ } = St({
1988
1988
  position: "bottom",
1989
1989
  enabled: E
1990
1990
  });
1991
- Je(D, () => R(!1));
1991
+ Je(D, () => O(!1));
1992
1992
  const U = fn(400), H = (W) => {
1993
- W.length >= a ? c && f && U(async () => {
1994
- const L = await f(c, W);
1995
- b(L), C(L.length > 0 ? 0 : -1), R(!0);
1996
- }) : R(!1), g(W), w(e), l || u == null || u(W, e);
1997
- }, q = (W) => {
1998
- l ? (g(""), w("")) : (g(W.id), w(W.label)), u == null || u(W.id, W.label);
1999
- const L = S.findIndex((p) => p.id === W.id);
2000
- C(L), j([W.id]), R(!1);
1993
+ W.length >= a ? f && l && U(async () => {
1994
+ const L = await l(f, W);
1995
+ b(L), C(L.length > 0 ? 0 : -1), O(!0);
1996
+ }) : O(!1), g(W), S(e), c || u == null || u(W, e);
2001
1997
  }, K = (W) => {
2002
- W.key === "Escape" && (R(!1), C(-1));
1998
+ c ? (g(""), S("")) : (g(W.id), S(W.label)), u == null || u(W.id, W.label);
1999
+ const L = w.findIndex((h) => h.id === W.id);
2000
+ C(L), j([W.id]), O(!1);
2001
+ }, z = (W) => {
2002
+ W.key === "Escape" && (O(!1), C(-1));
2003
2003
  }, J = (W) => {
2004
2004
  if ((W.key === "ArrowDown" || W.key === "ArrowUp") && (W.preventDefault(), E)) {
2005
- const L = W.key === "ArrowDown" ? (k + 1) % S.length : (k - 1 + S.length) % S.length;
2005
+ const L = W.key === "ArrowDown" ? (k + 1) % w.length : (k - 1 + w.length) % w.length;
2006
2006
  C(L);
2007
2007
  }
2008
2008
  switch (W.key) {
2009
2009
  case "Enter":
2010
- k >= 0 && k < S.length ? q(S[k]) : l && (u == null || u(m, ""), R(!1), g(""), w(""));
2010
+ k >= 0 && k < w.length ? K(w[k]) : c && (u == null || u(m, ""), O(!1), g(""), S(""));
2011
2011
  break;
2012
2012
  case "Escape":
2013
- R(!1), C(-1);
2013
+ O(!1), C(-1);
2014
2014
  break;
2015
2015
  }
2016
2016
  };
@@ -2018,7 +2018,7 @@ const un = 10, Sr = ({
2018
2018
  /* @__PURE__ */ v.jsx(
2019
2019
  wr,
2020
2020
  {
2021
- ...h,
2021
+ ...p,
2022
2022
  bindValue: m,
2023
2023
  optionalDisplayValue: x,
2024
2024
  displayMode: n,
@@ -2034,25 +2034,25 @@ const un = 10, Sr = ({
2034
2034
  E && /* @__PURE__ */ v.jsx(
2035
2035
  Sr,
2036
2036
  {
2037
- options: S,
2037
+ options: w,
2038
2038
  displayMode: s,
2039
- onClick: q,
2039
+ onClick: K,
2040
2040
  ref: D,
2041
2041
  selectedIndex: k,
2042
2042
  activeIndex: d || Y,
2043
2043
  width: _,
2044
2044
  showFilter: !1,
2045
- onKeyDown: K
2045
+ onKeyDown: z
2046
2046
  }
2047
2047
  )
2048
2048
  ] });
2049
- }, qt = (r) => ({
2049
+ }, Kt = (r) => ({
2050
2050
  extraSmall: 12,
2051
2051
  small: 14,
2052
2052
  base: 18,
2053
2053
  large: 20,
2054
2054
  extraLarge: 24
2055
- })[r], zt = (r) => ({
2055
+ })[r], qt = (r) => ({
2056
2056
  primary: "onPrimary",
2057
2057
  danger: "onDanger",
2058
2058
  base: "base"
@@ -2065,12 +2065,12 @@ const un = 10, Sr = ({
2065
2065
  sizing: a = "base",
2066
2066
  variant: i = "primary",
2067
2067
  appearance: o = "raised",
2068
- showIcon: c = !0,
2069
- showText: l = !0,
2068
+ showIcon: f = !0,
2069
+ showText: c = !0,
2070
2070
  fullWidth: u = !1,
2071
- loading: f = !1,
2071
+ loading: l = !1,
2072
2072
  justify: d = "center",
2073
- title: h,
2073
+ title: p,
2074
2074
  optionalDisplayValue: m
2075
2075
  }) => {
2076
2076
  const g = {
@@ -2084,20 +2084,20 @@ const un = 10, Sr = ({
2084
2084
  onClick: e,
2085
2085
  "aria-label": t,
2086
2086
  disabled: s,
2087
- "aria-busy": f,
2088
- title: h || r || m,
2089
- children: f ? /* @__PURE__ */ v.jsx(ue, { icon: "spinner", state: zt(i), spin: !0 }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
2090
- n && c && /* @__PURE__ */ v.jsx(
2087
+ "aria-busy": l,
2088
+ title: p || r || m,
2089
+ children: l ? /* @__PURE__ */ v.jsx(ue, { icon: "spinner", state: qt(i), spin: !0 }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
2090
+ n && f && /* @__PURE__ */ v.jsx(
2091
2091
  ue,
2092
2092
  {
2093
2093
  icon: n,
2094
2094
  disabled: s,
2095
- state: zt(i),
2096
- width: qt(a),
2097
- height: qt(a)
2095
+ state: qt(i),
2096
+ width: Kt(a),
2097
+ height: Kt(a)
2098
2098
  }
2099
2099
  ),
2100
- l && m && /* @__PURE__ */ v.jsx("span", { children: m })
2100
+ c && m && /* @__PURE__ */ v.jsx("span", { children: m })
2101
2101
  ] })
2102
2102
  }
2103
2103
  );
@@ -2110,26 +2110,26 @@ const un = 10, Sr = ({
2110
2110
  variant: a,
2111
2111
  appearance: i,
2112
2112
  showText: o,
2113
- showIcon: c,
2114
- fullWidth: l,
2113
+ showIcon: f,
2114
+ fullWidth: c,
2115
2115
  disabled: u,
2116
- justify: f,
2116
+ justify: l,
2117
2117
  onClick: d,
2118
- onOptionsRequest: h
2118
+ onOptionsRequest: p
2119
2119
  }) => {
2120
2120
  const [m, g] = Z(r);
2121
2121
  oe(() => {
2122
- !m && h && e && h(e, void 0).then((E) => g(E)).catch((E) => {
2122
+ !m && p && e && p(e, void 0).then((E) => g(E)).catch((E) => {
2123
2123
  console.error(
2124
2124
  "Errore nel caricamento delle opzioni per ButtonList",
2125
2125
  E
2126
2126
  );
2127
2127
  });
2128
- }, [m, e, h]);
2128
+ }, [m, e, p]);
2129
2129
  const x = {
2130
2130
  container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
2131
- }, w = m == null ? void 0 : m.map((E, R) => {
2132
- const S = {
2131
+ }, S = m == null ? void 0 : m.map((E, O) => {
2132
+ const w = {
2133
2133
  bindValue: E.id,
2134
2134
  optionalDisplayValue: E.label,
2135
2135
  fun: E.fun,
@@ -2137,18 +2137,18 @@ const un = 10, Sr = ({
2137
2137
  variant: a,
2138
2138
  appearance: i,
2139
2139
  showText: o,
2140
- showIcon: c,
2141
- fullWidth: l,
2140
+ showIcon: f,
2141
+ fullWidth: c,
2142
2142
  disabled: u,
2143
2143
  sizing: s,
2144
- justify: f,
2144
+ justify: l,
2145
2145
  onClick: () => {
2146
2146
  d == null || d(E.id, E.fun);
2147
2147
  }
2148
2148
  };
2149
- return /* @__PURE__ */ v.jsx(De, { ...S }, `button-${R}`);
2149
+ return /* @__PURE__ */ v.jsx(De, { ...w }, `button-${O}`);
2150
2150
  });
2151
- return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: w });
2151
+ return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: S });
2152
2152
  }, pn = ({
2153
2153
  bindValue: r,
2154
2154
  _dataComponent: e = "checkbox",
@@ -2158,12 +2158,12 @@ const un = 10, Sr = ({
2158
2158
  onChange: a,
2159
2159
  onBlur: i
2160
2160
  }) => {
2161
- const o = (l) => {
2162
- s && a && a(l.target.checked);
2163
- }, c = {
2161
+ const o = (c) => {
2162
+ s && a && a(c.target.checked);
2163
+ }, f = {
2164
2164
  wrapper: "smp-checkbox-wrapper"
2165
2165
  };
2166
- return /* @__PURE__ */ v.jsxs("div", { className: c.wrapper, "data-component": e, children: [
2166
+ return /* @__PURE__ */ v.jsxs("div", { className: f.wrapper, "data-component": e, children: [
2167
2167
  n && /* @__PURE__ */ v.jsx($e, { label: n, disabled: t }),
2168
2168
  /* @__PURE__ */ v.jsx(
2169
2169
  "input",
@@ -2210,30 +2210,30 @@ const un = 10, Sr = ({
2210
2210
  backgroundColor: a,
2211
2211
  isDraggable: i = !1
2212
2212
  }) => {
2213
- const [o, c] = Z(null), l = {
2213
+ const [o, f] = Z(null), c = {
2214
2214
  container: `${["smp-chips-container"]}`,
2215
2215
  element: "smp-chips-element"
2216
- }, u = (h) => {
2217
- n == null || n(r.filter((m, g) => g !== h));
2218
- }, f = (h) => {
2219
- c(h);
2220
- }, d = (h) => {
2221
- if (o === null || o === h) return;
2216
+ }, u = (p) => {
2217
+ n == null || n(r.filter((m, g) => g !== p));
2218
+ }, l = (p) => {
2219
+ f(p);
2220
+ }, d = (p) => {
2221
+ if (o === null || o === p) return;
2222
2222
  const m = [...r], [g] = m.splice(o, 1);
2223
- m.splice(h, 0, g), n == null || n(m), c(null);
2223
+ m.splice(p, 0, g), n == null || n(m), f(null);
2224
2224
  };
2225
- return /* @__PURE__ */ v.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((h, m) => {
2225
+ return /* @__PURE__ */ v.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((p, m) => {
2226
2226
  const g = Xe(
2227
- h.bindValue,
2228
- h.optionalDisplayValue,
2227
+ p.bindValue,
2228
+ p.optionalDisplayValue,
2229
2229
  t
2230
2230
  ), x = /* @__PURE__ */ v.jsxs(
2231
2231
  "div",
2232
2232
  {
2233
- className: l.element,
2233
+ className: c.element,
2234
2234
  role: "listitem",
2235
2235
  draggable: i,
2236
- onDragStart: () => f(m),
2236
+ onDragStart: () => l(m),
2237
2237
  onDragOver: (E) => i && E.preventDefault(),
2238
2238
  onDrop: () => i && d(m),
2239
2239
  style: {
@@ -2254,7 +2254,7 @@ const un = 10, Sr = ({
2254
2254
  ]
2255
2255
  },
2256
2256
  `chip-${m}`
2257
- ), w = i && m < r.length - 1 ? /* @__PURE__ */ v.jsx(
2257
+ ), S = i && m < r.length - 1 ? /* @__PURE__ */ v.jsx(
2258
2258
  ue,
2259
2259
  {
2260
2260
  icon: "chevron-right",
@@ -2262,7 +2262,7 @@ const un = 10, Sr = ({
2262
2262
  },
2263
2263
  `separator-${m}`
2264
2264
  ) : null;
2265
- return [x, w].filter(Boolean);
2265
+ return [x, S].filter(Boolean);
2266
2266
  }) });
2267
2267
  };
2268
2268
  function Tr(r, e) {
@@ -2276,30 +2276,30 @@ function Tr(r, e) {
2276
2276
  n.querySelectorAll(
2277
2277
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2278
2278
  )
2279
- ).filter((l) => !l.hasAttribute("disabled") && l.offsetParent !== null) : [];
2279
+ ).filter((c) => !c.hasAttribute("disabled") && c.offsetParent !== null) : [];
2280
2280
  (() => {
2281
- const l = s();
2282
- l.length > 0 && requestAnimationFrame(() => l[0].focus());
2281
+ const c = s();
2282
+ c.length > 0 && requestAnimationFrame(() => c[0].focus());
2283
2283
  })();
2284
- const i = (l) => {
2285
- if (l.key === "Escape" || l.key !== "Tab") return;
2284
+ const i = (c) => {
2285
+ if (c.key === "Escape" || c.key !== "Tab") return;
2286
2286
  const u = s();
2287
2287
  if (u.length === 0) return;
2288
- const f = u[0], d = u[u.length - 1];
2289
- l.shiftKey && document.activeElement === f ? (l.preventDefault(), d.focus()) : !l.shiftKey && document.activeElement === d && (l.preventDefault(), f.focus());
2290
- }, o = (l) => {
2291
- if (n && !n.contains(l.target)) {
2292
- l.preventDefault();
2288
+ const l = u[0], d = u[u.length - 1];
2289
+ c.shiftKey && document.activeElement === l ? (c.preventDefault(), d.focus()) : !c.shiftKey && document.activeElement === d && (c.preventDefault(), l.focus());
2290
+ }, o = (c) => {
2291
+ if (n && !n.contains(c.target)) {
2292
+ c.preventDefault();
2293
2293
  const u = s();
2294
2294
  u.length > 0 && u[0].focus();
2295
2295
  }
2296
2296
  };
2297
2297
  document.addEventListener("keydown", i), document.addEventListener("mousedown", o);
2298
- const c = document.body.style.overflow;
2298
+ const f = document.body.style.overflow;
2299
2299
  return document.body.style.overflow = "hidden", () => {
2300
- document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = c, t.current && requestAnimationFrame(() => {
2301
- var l;
2302
- (l = t.current) == null || l.focus();
2300
+ document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = f, t.current && requestAnimationFrame(() => {
2301
+ var c;
2302
+ (c = t.current) == null || c.focus();
2303
2303
  });
2304
2304
  };
2305
2305
  }, [r, e]);
@@ -2313,25 +2313,25 @@ const mn = ({
2313
2313
  displayMode: a,
2314
2314
  listDisplayMode: i = "Both",
2315
2315
  fun: o,
2316
- onOptionsRequest: c,
2317
- multiActiveIndex: l,
2316
+ onOptionsRequest: f,
2317
+ multiActiveIndex: c,
2318
2318
  ...u
2319
2319
  }) => {
2320
- const [f, d] = Z(!1), [h, m] = Z(t), [g, x] = Z(-1), [w, E] = Z([r]), R = bt(), { anchorRef: S, targetRef: b, anchorWidth: k } = St({
2320
+ const [l, d] = Z(!1), [p, m] = Z(t), [g, x] = Z(-1), [S, E] = Z([r]), O = bt(), { anchorRef: w, targetRef: b, anchorWidth: k } = St({
2321
2321
  position: "bottom",
2322
- enabled: f
2322
+ enabled: l
2323
2323
  });
2324
- Je(b, () => d(!1)), Tr(f, b);
2324
+ Je(b, () => d(!1)), Tr(l, b);
2325
2325
  const C = (D) => {
2326
2326
  e == null || e(D.id, D.label);
2327
- const _ = h.findIndex((U) => U.id === D.id);
2327
+ const _ = p.findIndex((U) => U.id === D.id);
2328
2328
  x(_), E([D.id]), d(!1);
2329
2329
  }, Y = (D) => {
2330
2330
  D.key === "Escape" && (d(!1), x(-1));
2331
2331
  }, j = (D) => {
2332
2332
  (D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), P());
2333
2333
  }, P = () => {
2334
- o && c && c(o, void 0).then((D) => {
2334
+ o && f && f(o, void 0).then((D) => {
2335
2335
  m(D), x(D.length > 0 ? 0 : -1), d(!0);
2336
2336
  });
2337
2337
  };
@@ -2339,9 +2339,9 @@ const mn = ({
2339
2339
  "div",
2340
2340
  {
2341
2341
  role: "combobox",
2342
- "aria-expanded": f,
2343
- "aria-controls": R,
2344
- "aria-owns": R,
2342
+ "aria-expanded": l,
2343
+ "aria-controls": O,
2344
+ "aria-owns": O,
2345
2345
  "data-component": "combobox",
2346
2346
  children: [
2347
2347
  /* @__PURE__ */ v.jsx(
@@ -2354,22 +2354,22 @@ const mn = ({
2354
2354
  onShapeIconClick: P,
2355
2355
  onKeyDown: j,
2356
2356
  shapeIcon: "arrow_drop_down",
2357
- rotatedShapeIcon: f,
2357
+ rotatedShapeIcon: l,
2358
2358
  isEditable: s,
2359
- ref: S,
2359
+ ref: w,
2360
2360
  "aria-autocomplete": "list",
2361
2361
  variant: "notSelectable"
2362
2362
  }
2363
2363
  ),
2364
- f && /* @__PURE__ */ v.jsx(
2364
+ l && /* @__PURE__ */ v.jsx(
2365
2365
  Sr,
2366
2366
  {
2367
- id: R,
2368
- options: h,
2367
+ id: O,
2368
+ options: p,
2369
2369
  displayMode: i,
2370
2370
  ref: b,
2371
2371
  selectedIndex: g,
2372
- activeIndex: l || w,
2372
+ activeIndex: c || S,
2373
2373
  width: k,
2374
2374
  onClick: C,
2375
2375
  onKeyDown: Y
@@ -2476,11 +2476,11 @@ const En = [" ", ",", "?", "!", ";"], Tn = new wn(20), On = (r, e, t) => {
2476
2476
  if (!s || typeof s != "object")
2477
2477
  return;
2478
2478
  let i, o = "";
2479
- for (let c = a; c < n.length; ++c)
2480
- if (c !== a && (o += t), o += n[c], i = s[o], i !== void 0) {
2481
- if (["string", "number", "boolean"].indexOf(typeof i) > -1 && c < n.length - 1)
2479
+ for (let f = a; f < n.length; ++f)
2480
+ if (f !== a && (o += t), o += n[f], i = s[o], i !== void 0) {
2481
+ if (["string", "number", "boolean"].indexOf(typeof i) > -1 && f < n.length - 1)
2482
2482
  continue;
2483
- a += c - a + 1;
2483
+ a += f - a + 1;
2484
2484
  break;
2485
2485
  }
2486
2486
  s = i;
@@ -2580,12 +2580,12 @@ class er extends rt {
2580
2580
  t > -1 && this.options.ns.splice(t, 1);
2581
2581
  }
2582
2582
  getResource(e, t, n, s = {}) {
2583
- var l, u;
2583
+ var c, u;
2584
2584
  const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
2585
2585
  let o;
2586
2586
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : G(n) && a ? o.push(...n.split(a)) : o.push(n)));
2587
- const c = Qe(this.data, o);
2588
- return !c && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), c || !i || !G(n) ? c : yt((u = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : u[t], n, a);
2587
+ const f = Qe(this.data, o);
2588
+ return !f && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), f || !i || !G(n) ? f : yt((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], n, a);
2589
2589
  }
2590
2590
  addResource(e, t, n, s, a = {
2591
2591
  silent: !1
@@ -2609,11 +2609,11 @@ class er extends rt {
2609
2609
  }) {
2610
2610
  let o = [e, t];
2611
2611
  e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
2612
- let c = Qe(this.data, o) || {};
2613
- i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(c, n, a) : c = {
2614
- ...c,
2612
+ let f = Qe(this.data, o) || {};
2613
+ i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(f, n, a) : f = {
2614
+ ...f,
2615
2615
  ...n
2616
- }, Qt(this.data, o, c), i.silent || this.emit("added", e, t, n);
2616
+ }, Qt(this.data, o, f), i.silent || this.emit("added", e, t, n);
2617
2617
  }
2618
2618
  removeResourceBundle(e, t) {
2619
2619
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2672,14 +2672,14 @@ class tt extends rt {
2672
2672
  let a = t.ns || this.options.defaultNS || [];
2673
2673
  const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !On(e, n, s);
2674
2674
  if (i && !o) {
2675
- const c = e.match(this.interpolator.nestingRegexp);
2676
- if (c && c.length > 0)
2675
+ const f = e.match(this.interpolator.nestingRegexp);
2676
+ if (f && f.length > 0)
2677
2677
  return {
2678
2678
  key: e,
2679
2679
  namespaces: G(a) ? [a] : a
2680
2680
  };
2681
- const l = e.split(n);
2682
- (n !== s || n === s && this.options.ns.indexOf(l[0]) > -1) && (a = l.shift()), e = l.join(s);
2681
+ const c = e.split(n);
2682
+ (n !== s || n === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
2683
2683
  }
2684
2684
  return {
2685
2685
  key: e,
@@ -2696,70 +2696,70 @@ class tt extends rt {
2696
2696
  Array.isArray(e) || (e = [String(e)]);
2697
2697
  const a = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
2698
2698
  key: o,
2699
- namespaces: c
2700
- } = this.extractFromKey(e[e.length - 1], s), l = c[c.length - 1];
2699
+ namespaces: f
2700
+ } = this.extractFromKey(e[e.length - 1], s), c = f[f.length - 1];
2701
2701
  let u = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
2702
2702
  u === void 0 && (u = ":");
2703
- const f = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2704
- if ((f == null ? void 0 : f.toLowerCase()) === "cimode")
2703
+ const l = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2704
+ if ((l == null ? void 0 : l.toLowerCase()) === "cimode")
2705
2705
  return d ? a ? {
2706
- res: `${l}${u}${o}`,
2706
+ res: `${c}${u}${o}`,
2707
2707
  usedKey: o,
2708
2708
  exactUsedKey: o,
2709
- usedLng: f,
2710
- usedNS: l,
2709
+ usedLng: l,
2710
+ usedNS: c,
2711
2711
  usedParams: this.getUsedParamsDetails(s)
2712
- } : `${l}${u}${o}` : a ? {
2712
+ } : `${c}${u}${o}` : a ? {
2713
2713
  res: o,
2714
2714
  usedKey: o,
2715
2715
  exactUsedKey: o,
2716
- usedLng: f,
2717
- usedNS: l,
2716
+ usedLng: l,
2717
+ usedNS: c,
2718
2718
  usedParams: this.getUsedParamsDetails(s)
2719
2719
  } : o;
2720
- const h = this.resolve(e, s);
2721
- let m = h == null ? void 0 : h.res;
2722
- const g = (h == null ? void 0 : h.usedKey) || o, x = (h == null ? void 0 : h.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), k = S ? this.pluralResolver.getSuffix(f, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(f, s.count, {
2720
+ const p = this.resolve(e, s);
2721
+ let m = p == null ? void 0 : p.res;
2722
+ const g = (p == null ? void 0 : p.usedKey) || o, x = (p == null ? void 0 : p.exactUsedKey) || o, S = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, w = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), k = w ? this.pluralResolver.getSuffix(l, s.count, s) : "", C = s.ordinal && w ? this.pluralResolver.getSuffix(l, s.count, {
2723
2723
  ordinal: !1
2724
- }) : "", Y = S && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${k}`] || s[`defaultValue${C}`] || s.defaultValue;
2724
+ }) : "", Y = w && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${k}`] || s[`defaultValue${C}`] || s.defaultValue;
2725
2725
  let P = m;
2726
- R && !m && b && (P = j);
2726
+ O && !m && b && (P = j);
2727
2727
  const D = rr(P), _ = Object.prototype.toString.apply(P);
2728
- if (R && P && D && w.indexOf(_) < 0 && !(G(E) && Array.isArray(P))) {
2728
+ if (O && P && D && S.indexOf(_) < 0 && !(G(E) && Array.isArray(P))) {
2729
2729
  if (!s.returnObjects && !this.options.returnObjects) {
2730
2730
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2731
2731
  const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, P, {
2732
2732
  ...s,
2733
- ns: c
2733
+ ns: f
2734
2734
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
2735
- return a ? (h.res = U, h.usedParams = this.getUsedParamsDetails(s), h) : U;
2735
+ return a ? (p.res = U, p.usedParams = this.getUsedParamsDetails(s), p) : U;
2736
2736
  }
2737
2737
  if (i) {
2738
- const U = Array.isArray(P), H = U ? [] : {}, q = U ? x : g;
2739
- for (const K in P)
2740
- if (Object.prototype.hasOwnProperty.call(P, K)) {
2741
- const J = `${q}${i}${K}`;
2742
- b && !m ? H[K] = this.translate(J, {
2738
+ const U = Array.isArray(P), H = U ? [] : {}, K = U ? x : g;
2739
+ for (const z in P)
2740
+ if (Object.prototype.hasOwnProperty.call(P, z)) {
2741
+ const J = `${K}${i}${z}`;
2742
+ b && !m ? H[z] = this.translate(J, {
2743
2743
  ...s,
2744
- defaultValue: rr(j) ? j[K] : void 0,
2744
+ defaultValue: rr(j) ? j[z] : void 0,
2745
2745
  joinArrays: !1,
2746
- ns: c
2747
- }) : H[K] = this.translate(J, {
2746
+ ns: f
2747
+ }) : H[z] = this.translate(J, {
2748
2748
  ...s,
2749
2749
  joinArrays: !1,
2750
- ns: c
2751
- }), H[K] === J && (H[K] = P[K]);
2750
+ ns: f
2751
+ }), H[z] === J && (H[z] = P[z]);
2752
2752
  }
2753
2753
  m = H;
2754
2754
  }
2755
- } else if (R && G(E) && Array.isArray(m))
2755
+ } else if (O && G(E) && Array.isArray(m))
2756
2756
  m = m.join(E), m && (m = this.extendTranslation(m, e, s, n));
2757
2757
  else {
2758
2758
  let U = !1, H = !1;
2759
2759
  !this.isValidLookup(m) && b && (U = !0, m = j), this.isValidLookup(m) || (H = !0, m = o);
2760
- const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
2760
+ const z = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
2761
2761
  if (H || U || J) {
2762
- if (this.logger.log(J ? "updateKey" : "missingKey", f, l, o, J ? j : m), i) {
2762
+ if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? j : m), i) {
2763
2763
  const y = this.resolve(o, {
2764
2764
  ...s,
2765
2765
  keySeparator: !1
@@ -2772,25 +2772,25 @@ class tt extends rt {
2772
2772
  for (let y = 0; y < L.length; y++)
2773
2773
  W.push(L[y]);
2774
2774
  else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(s.lng || this.language) : W.push(s.lng || this.language);
2775
- const p = (y, T, $) => {
2775
+ const h = (y, T, $) => {
2776
2776
  var A;
2777
- const O = b && $ !== m ? $ : K;
2778
- this.options.missingKeyHandler ? this.options.missingKeyHandler(y, l, T, O, J, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(y, l, T, O, J, s), this.emit("missingKey", y, l, T, m);
2777
+ const R = b && $ !== m ? $ : z;
2778
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(y, c, T, R, J, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(y, c, T, R, J, s), this.emit("missingKey", y, c, T, m);
2779
2779
  };
2780
- this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((y) => {
2780
+ this.options.saveMissing && (this.options.saveMissingPlurals && w ? W.forEach((y) => {
2781
2781
  const T = this.pluralResolver.getSuffixes(y, s);
2782
2782
  Y && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach(($) => {
2783
- p([y], o + $, s[`defaultValue${$}`] || j);
2783
+ h([y], o + $, s[`defaultValue${$}`] || j);
2784
2784
  });
2785
- }) : p(W, o, j));
2785
+ }) : h(W, o, j));
2786
2786
  }
2787
- m = this.extendTranslation(m, e, s, h, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${o}` : o, U ? m : void 0, s));
2787
+ m = this.extendTranslation(m, e, s, p, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${c}${u}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${o}` : o, U ? m : void 0, s));
2788
2788
  }
2789
- return a ? (h.res = m, h.usedParams = this.getUsedParamsDetails(s), h) : m;
2789
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(s), p) : m;
2790
2790
  }
2791
2791
  extendTranslation(e, t, n, s, a) {
2792
- var c, l;
2793
- if ((c = this.i18nFormat) != null && c.parse)
2792
+ var f, c;
2793
+ if ((f = this.i18nFormat) != null && f.parse)
2794
2794
  e = this.i18nFormat.parse(e, {
2795
2795
  ...this.options.interpolation.defaultVariables,
2796
2796
  ...n
@@ -2805,21 +2805,21 @@ class tt extends rt {
2805
2805
  ...n.interpolation
2806
2806
  }
2807
2807
  });
2808
- const u = G(e) && (((l = n == null ? void 0 : n.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2809
- let f;
2808
+ const u = G(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2809
+ let l;
2810
2810
  if (u) {
2811
- const h = e.match(this.interpolator.nestingRegexp);
2812
- f = h && h.length;
2811
+ const p = e.match(this.interpolator.nestingRegexp);
2812
+ l = p && p.length;
2813
2813
  }
2814
2814
  let d = n.replace && !G(n.replace) ? n.replace : n;
2815
2815
  if (this.options.interpolation.defaultVariables && (d = {
2816
2816
  ...this.options.interpolation.defaultVariables,
2817
2817
  ...d
2818
2818
  }), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), u) {
2819
- const h = e.match(this.interpolator.nestingRegexp), m = h && h.length;
2820
- f < m && (n.nest = !1);
2819
+ const p = e.match(this.interpolator.nestingRegexp), m = p && p.length;
2820
+ l < m && (n.nest = !1);
2821
2821
  }
2822
- !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (a == null ? void 0 : a[0]) === h[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), n)), n.interpolation && this.interpolator.reset();
2822
+ !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...p) => (a == null ? void 0 : a[0]) === p[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : this.translate(...p, t), n)), n.interpolation && this.interpolator.reset();
2823
2823
  }
2824
2824
  const i = n.postProcess || this.options.postProcess, o = G(i) ? [i] : i;
2825
2825
  return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Rr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
@@ -2832,34 +2832,34 @@ class tt extends rt {
2832
2832
  }
2833
2833
  resolve(e, t = {}) {
2834
2834
  let n, s, a, i, o;
2835
- return G(e) && (e = [e]), e.forEach((c) => {
2835
+ return G(e) && (e = [e]), e.forEach((f) => {
2836
2836
  if (this.isValidLookup(n)) return;
2837
- const l = this.extractFromKey(c, t), u = l.key;
2837
+ const c = this.extractFromKey(f, t), u = c.key;
2838
2838
  s = u;
2839
- let f = l.namespaces;
2840
- this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2841
- const d = t.count !== void 0 && !G(t.count), h = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2842
- f.forEach((x) => {
2843
- var w, E;
2844
- this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (tr[`${g[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((R) => {
2839
+ let l = c.namespaces;
2840
+ this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2841
+ const d = t.count !== void 0 && !G(t.count), p = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2842
+ l.forEach((x) => {
2843
+ var S, E;
2844
+ this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((S = this.utils) != null && S.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (tr[`${g[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((O) => {
2845
2845
  var k;
2846
2846
  if (this.isValidLookup(n)) return;
2847
- i = R;
2848
- const S = [u];
2847
+ i = O;
2848
+ const w = [u];
2849
2849
  if ((k = this.i18nFormat) != null && k.addLookupKeys)
2850
- this.i18nFormat.addLookupKeys(S, u, R, x, t);
2850
+ this.i18nFormat.addLookupKeys(w, u, O, x, t);
2851
2851
  else {
2852
2852
  let C;
2853
- d && (C = this.pluralResolver.getSuffix(R, t.count, t));
2853
+ d && (C = this.pluralResolver.getSuffix(O, t.count, t));
2854
2854
  const Y = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2855
- if (d && (S.push(u + C), t.ordinal && C.indexOf(j) === 0 && S.push(u + C.replace(j, this.options.pluralSeparator)), h && S.push(u + Y)), m) {
2855
+ if (d && (w.push(u + C), t.ordinal && C.indexOf(j) === 0 && w.push(u + C.replace(j, this.options.pluralSeparator)), p && w.push(u + Y)), m) {
2856
2856
  const P = `${u}${this.options.contextSeparator}${t.context}`;
2857
- S.push(P), d && (S.push(P + C), t.ordinal && C.indexOf(j) === 0 && S.push(P + C.replace(j, this.options.pluralSeparator)), h && S.push(P + Y));
2857
+ w.push(P), d && (w.push(P + C), t.ordinal && C.indexOf(j) === 0 && w.push(P + C.replace(j, this.options.pluralSeparator)), p && w.push(P + Y));
2858
2858
  }
2859
2859
  }
2860
2860
  let b;
2861
- for (; b = S.pop(); )
2862
- this.isValidLookup(n) || (a = b, n = this.getResource(R, x, b, t));
2861
+ for (; b = w.pop(); )
2862
+ this.isValidLookup(n) || (a = b, n = this.getResource(O, x, b, t));
2863
2863
  }));
2864
2864
  });
2865
2865
  }), {
@@ -3003,8 +3003,8 @@ class jn {
3003
3003
  if (!Intl)
3004
3004
  return this.logger.error("No Intl support, please use an Intl polyfill!"), ar;
3005
3005
  if (!e.match(/-|_/)) return ar;
3006
- const c = this.languageUtils.getLanguagePartFromCode(e);
3007
- i = this.getRule(c, t);
3006
+ const f = this.languageUtils.getLanguagePartFromCode(e);
3007
+ i = this.getRule(f, t);
3008
3008
  }
3009
3009
  return this.pluralRulesCache[a] = i, i;
3010
3010
  }
@@ -3044,19 +3044,19 @@ class Dn {
3044
3044
  prefix: a,
3045
3045
  prefixEscaped: i,
3046
3046
  suffix: o,
3047
- suffixEscaped: c,
3048
- formatSeparator: l,
3047
+ suffixEscaped: f,
3048
+ formatSeparator: c,
3049
3049
  unescapeSuffix: u,
3050
- unescapePrefix: f,
3050
+ unescapePrefix: l,
3051
3051
  nestingPrefix: d,
3052
- nestingPrefixEscaped: h,
3052
+ nestingPrefixEscaped: p,
3053
3053
  nestingSuffix: m,
3054
3054
  nestingSuffixEscaped: g,
3055
3055
  nestingOptionsSeparator: x,
3056
- maxReplaces: w,
3056
+ maxReplaces: S,
3057
3057
  alwaysFormat: E
3058
3058
  } = e.interpolation;
3059
- this.escape = t !== void 0 ? t : Sn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : h || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
3059
+ this.escape = t !== void 0 ? t : Sn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) : f || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : p || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
3060
3060
  }
3061
3061
  reset() {
3062
3062
  this.options && this.init(this.options);
@@ -3066,26 +3066,26 @@ class Dn {
3066
3066
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
3067
3067
  }
3068
3068
  interpolate(e, t, n, s) {
3069
- var h;
3069
+ var p;
3070
3070
  let a, i, o;
3071
- const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (m) => {
3071
+ const f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
3072
3072
  if (m.indexOf(this.formatSeparator) < 0) {
3073
- const E = ir(t, c, m, this.options.keySeparator, this.options.ignoreJSONStructure);
3073
+ const E = ir(t, f, m, this.options.keySeparator, this.options.ignoreJSONStructure);
3074
3074
  return this.alwaysFormat ? this.format(E, void 0, n, {
3075
3075
  ...s,
3076
3076
  ...t,
3077
3077
  interpolationkey: m
3078
3078
  }) : E;
3079
3079
  }
3080
- const g = m.split(this.formatSeparator), x = g.shift().trim(), w = g.join(this.formatSeparator).trim();
3081
- return this.format(ir(t, c, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
3080
+ const g = m.split(this.formatSeparator), x = g.shift().trim(), S = g.join(this.formatSeparator).trim();
3081
+ return this.format(ir(t, f, x, this.options.keySeparator, this.options.ignoreJSONStructure), S, n, {
3082
3082
  ...s,
3083
3083
  ...t,
3084
3084
  interpolationkey: x
3085
3085
  });
3086
3086
  };
3087
3087
  this.resetRegExp();
3088
- const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3088
+ const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, l = ((p = s == null ? void 0 : s.interpolation) == null ? void 0 : p.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3089
3089
  return [{
3090
3090
  regex: this.regexpUnescape,
3091
3091
  safeValue: (m) => dt(m)
@@ -3095,56 +3095,56 @@ class Dn {
3095
3095
  }].forEach((m) => {
3096
3096
  for (o = 0; a = m.regex.exec(e); ) {
3097
3097
  const g = a[1].trim();
3098
- if (i = l(g), i === void 0)
3098
+ if (i = c(g), i === void 0)
3099
3099
  if (typeof u == "function") {
3100
- const w = u(e, a, s);
3101
- i = G(w) ? w : "";
3100
+ const S = u(e, a, s);
3101
+ i = G(S) ? S : "";
3102
3102
  } else if (s && Object.prototype.hasOwnProperty.call(s, g))
3103
3103
  i = "";
3104
- else if (f) {
3104
+ else if (l) {
3105
3105
  i = a[0];
3106
3106
  continue;
3107
3107
  } else
3108
3108
  this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`), i = "";
3109
3109
  else !G(i) && !this.useRawValueToEscape && (i = Jt(i));
3110
3110
  const x = m.safeValue(i);
3111
- if (e = e.replace(a[0], x), f ? (m.regex.lastIndex += i.length, m.regex.lastIndex -= a[0].length) : m.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3111
+ if (e = e.replace(a[0], x), l ? (m.regex.lastIndex += i.length, m.regex.lastIndex -= a[0].length) : m.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3112
3112
  break;
3113
3113
  }
3114
3114
  }), e;
3115
3115
  }
3116
3116
  nest(e, t, n = {}) {
3117
3117
  let s, a, i;
3118
- const o = (c, l) => {
3118
+ const o = (f, c) => {
3119
3119
  const u = this.nestingOptionsSeparator;
3120
- if (c.indexOf(u) < 0) return c;
3121
- const f = c.split(new RegExp(`${u}[ ]*{`));
3122
- let d = `{${f[1]}`;
3123
- c = f[0], d = this.interpolate(d, i);
3124
- const h = d.match(/'/g), m = d.match(/"/g);
3125
- (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
3120
+ if (f.indexOf(u) < 0) return f;
3121
+ const l = f.split(new RegExp(`${u}[ ]*{`));
3122
+ let d = `{${l[1]}`;
3123
+ f = l[0], d = this.interpolate(d, i);
3124
+ const p = d.match(/'/g), m = d.match(/"/g);
3125
+ (((p == null ? void 0 : p.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
3126
3126
  try {
3127
- i = JSON.parse(d), l && (i = {
3128
- ...l,
3127
+ i = JSON.parse(d), c && (i = {
3128
+ ...c,
3129
3129
  ...i
3130
3130
  });
3131
3131
  } catch (g) {
3132
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, g), `${c}${u}${d}`;
3132
+ return this.logger.warn(`failed parsing options string in nesting for key ${f}`, g), `${f}${u}${d}`;
3133
3133
  }
3134
- return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
3134
+ return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, f;
3135
3135
  };
3136
3136
  for (; s = this.nestingRegexp.exec(e); ) {
3137
- let c = [];
3137
+ let f = [];
3138
3138
  i = {
3139
3139
  ...n
3140
3140
  }, i = i.replace && !G(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
3141
- let l = !1;
3141
+ let c = !1;
3142
3142
  if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
3143
- const u = s[1].split(this.formatSeparator).map((f) => f.trim());
3144
- s[1] = u.shift(), c = u, l = !0;
3143
+ const u = s[1].split(this.formatSeparator).map((l) => l.trim());
3144
+ s[1] = u.shift(), f = u, c = !0;
3145
3145
  }
3146
3146
  if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !G(a)) return a;
3147
- G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), l && (a = c.reduce((u, f) => this.format(u, f, n.lng, {
3147
+ G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = f.reduce((u, l) => this.format(u, l, n.lng, {
3148
3148
  ...n,
3149
3149
  interpolationkey: s[1].trim()
3150
3150
  }), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
@@ -3161,8 +3161,8 @@ const $n = (r) => {
3161
3161
  const s = n[1].substring(0, n[1].length - 1);
3162
3162
  e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((i) => {
3163
3163
  if (i) {
3164
- const [o, ...c] = i.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""), u = o.trim();
3165
- t[u] || (t[u] = l), l === "false" && (t[u] = !1), l === "true" && (t[u] = !0), isNaN(l) || (t[u] = parseInt(l, 10));
3164
+ const [o, ...f] = i.split(":"), c = f.join(":").trim().replace(/^'+|'+$/g, ""), u = o.trim();
3165
+ t[u] || (t[u] = c), c === "false" && (t[u] = !1), c === "true" && (t[u] = !0), isNaN(c) || (t[u] = parseInt(c, 10));
3166
3166
  }
3167
3167
  });
3168
3168
  }
@@ -3235,30 +3235,30 @@ class Pn {
3235
3235
  format(e, t, n, s = {}) {
3236
3236
  const a = t.split(this.formatSeparator);
3237
3237
  if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
3238
- const o = a.findIndex((c) => c.indexOf(")") > -1);
3238
+ const o = a.findIndex((f) => f.indexOf(")") > -1);
3239
3239
  a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
3240
3240
  }
3241
- return a.reduce((o, c) => {
3242
- var f;
3241
+ return a.reduce((o, f) => {
3242
+ var l;
3243
3243
  const {
3244
- formatName: l,
3244
+ formatName: c,
3245
3245
  formatOptions: u
3246
- } = $n(c);
3247
- if (this.formats[l]) {
3246
+ } = $n(f);
3247
+ if (this.formats[c]) {
3248
3248
  let d = o;
3249
3249
  try {
3250
- const h = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, m = h.locale || h.lng || s.locale || s.lng || n;
3251
- d = this.formats[l](o, m, {
3250
+ const p = ((l = s == null ? void 0 : s.formatParams) == null ? void 0 : l[s.interpolationkey]) || {}, m = p.locale || p.lng || s.locale || s.lng || n;
3251
+ d = this.formats[c](o, m, {
3252
3252
  ...u,
3253
3253
  ...s,
3254
- ...h
3254
+ ...p
3255
3255
  });
3256
- } catch (h) {
3257
- this.logger.warn(h);
3256
+ } catch (p) {
3257
+ this.logger.warn(p);
3258
3258
  }
3259
3259
  return d;
3260
3260
  } else
3261
- this.logger.warn(`there was no format function for ${l}`);
3261
+ this.logger.warn(`there was no format function for ${c}`);
3262
3262
  return o;
3263
3263
  }, e);
3264
3264
  }
@@ -3272,13 +3272,13 @@ class Ln extends rt {
3272
3272
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = ge.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, n, s.backend, s);
3273
3273
  }
3274
3274
  queueLoad(e, t, n, s) {
3275
- const a = {}, i = {}, o = {}, c = {};
3276
- return e.forEach((l) => {
3275
+ const a = {}, i = {}, o = {}, f = {};
3276
+ return e.forEach((c) => {
3277
3277
  let u = !0;
3278
- t.forEach((f) => {
3279
- const d = `${l}|${f}`;
3280
- !n.reload && this.store.hasResourceBundle(l, f) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, u = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), c[f] === void 0 && (c[f] = !0)));
3281
- }), u || (o[l] = !0);
3278
+ t.forEach((l) => {
3279
+ const d = `${c}|${l}`;
3280
+ !n.reload && this.store.hasResourceBundle(c, l) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, u = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), f[l] === void 0 && (f[l] = !0)));
3281
+ }), u || (o[c] = !0);
3282
3282
  }), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
3283
3283
  pending: i,
3284
3284
  pendingCount: Object.keys(i).length,
@@ -3289,7 +3289,7 @@ class Ln extends rt {
3289
3289
  toLoad: Object.keys(a),
3290
3290
  pending: Object.keys(i),
3291
3291
  toLoadLanguages: Object.keys(o),
3292
- toLoadNamespaces: Object.keys(c)
3292
+ toLoadNamespaces: Object.keys(f)
3293
3293
  };
3294
3294
  }
3295
3295
  loaded(e, t, n) {
@@ -3298,15 +3298,15 @@ class Ln extends rt {
3298
3298
  skipCopy: !0
3299
3299
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3300
3300
  const o = {};
3301
- this.queue.forEach((c) => {
3302
- vn(c.loaded, [a], i), An(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
3303
- o[l] || (o[l] = {});
3304
- const u = c.loaded[l];
3305
- u.length && u.forEach((f) => {
3306
- o[l][f] === void 0 && (o[l][f] = !0);
3301
+ this.queue.forEach((f) => {
3302
+ vn(f.loaded, [a], i), An(f, e), t && f.errors.push(t), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach((c) => {
3303
+ o[c] || (o[c] = {});
3304
+ const u = f.loaded[c];
3305
+ u.length && u.forEach((l) => {
3306
+ o[c][l] === void 0 && (o[c][l] = !0);
3307
3307
  });
3308
- }), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
3309
- }), this.emit("loaded", o), this.queue = this.queue.filter((c) => !c.done);
3308
+ }), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
3309
+ }), this.emit("loaded", o), this.queue = this.queue.filter((f) => !f.done);
3310
3310
  }
3311
3311
  read(e, t, n, s = 0, a = this.retryTimeout, i) {
3312
3312
  if (!e.length) return i(null, {});
@@ -3322,29 +3322,29 @@ class Ln extends rt {
3322
3322
  return;
3323
3323
  }
3324
3324
  this.readingCalls++;
3325
- const o = (l, u) => {
3325
+ const o = (c, u) => {
3326
3326
  if (this.readingCalls--, this.waitingReads.length > 0) {
3327
- const f = this.waitingReads.shift();
3328
- this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
3327
+ const l = this.waitingReads.shift();
3328
+ this.read(l.lng, l.ns, l.fcName, l.tried, l.wait, l.callback);
3329
3329
  }
3330
- if (l && u && s < this.maxRetries) {
3330
+ if (c && u && s < this.maxRetries) {
3331
3331
  setTimeout(() => {
3332
3332
  this.read.call(this, e, t, n, s + 1, a * 2, i);
3333
3333
  }, a);
3334
3334
  return;
3335
3335
  }
3336
- i(l, u);
3337
- }, c = this.backend[n].bind(this.backend);
3338
- if (c.length === 2) {
3336
+ i(c, u);
3337
+ }, f = this.backend[n].bind(this.backend);
3338
+ if (f.length === 2) {
3339
3339
  try {
3340
- const l = c(e, t);
3341
- l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
3342
- } catch (l) {
3343
- o(l);
3340
+ const c = f(e, t);
3341
+ c && typeof c.then == "function" ? c.then((u) => o(null, u)).catch(o) : o(null, c);
3342
+ } catch (c) {
3343
+ o(c);
3344
3344
  }
3345
3345
  return;
3346
3346
  }
3347
- return c(e, t, o);
3347
+ return f(e, t, o);
3348
3348
  }
3349
3349
  prepareLoading(e, t, n = {}, s) {
3350
3350
  if (!this.backend)
@@ -3373,26 +3373,26 @@ class Ln extends rt {
3373
3373
  }
3374
3374
  saveMissing(e, t, n, s, a, i = {}, o = () => {
3375
3375
  }) {
3376
- var c, l, u, f, d;
3377
- if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((f = (u = this.services) == null ? void 0 : u.utils) != null && f.hasLoadedNamespace(t))) {
3376
+ var f, c, u, l, d;
3377
+ if ((c = (f = this.services) == null ? void 0 : f.utils) != null && c.hasLoadedNamespace && !((l = (u = this.services) == null ? void 0 : u.utils) != null && l.hasLoadedNamespace(t))) {
3378
3378
  this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
3379
3379
  return;
3380
3380
  }
3381
3381
  if (!(n == null || n === "")) {
3382
3382
  if ((d = this.backend) != null && d.create) {
3383
- const h = {
3383
+ const p = {
3384
3384
  ...i,
3385
3385
  isUpdate: a
3386
3386
  }, m = this.backend.create.bind(this.backend);
3387
3387
  if (m.length < 6)
3388
3388
  try {
3389
3389
  let g;
3390
- m.length === 5 ? g = m(e, t, n, s, h) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((x) => o(null, x)).catch(o) : o(null, g);
3390
+ m.length === 5 ? g = m(e, t, n, s, p) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((x) => o(null, x)).catch(o) : o(null, g);
3391
3391
  } catch (g) {
3392
3392
  o(g);
3393
3393
  }
3394
3394
  else
3395
- m(e, t, n, s, o, h);
3395
+ m(e, t, n, s, o, p);
3396
3396
  }
3397
3397
  !e || !e[0] || this.store.addResource(e[0], t, n, s);
3398
3398
  }
@@ -3487,44 +3487,44 @@ class Ne extends rt {
3487
3487
  ...n.interpolation,
3488
3488
  ...this.options.interpolation
3489
3489
  }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
3490
- const s = (l) => l ? typeof l == "function" ? new l() : l : null;
3490
+ const s = (c) => c ? typeof c == "function" ? new c() : c : null;
3491
3491
  if (!this.options.isClone) {
3492
3492
  this.modules.logger ? ge.init(s(this.modules.logger), this.options) : ge.init(null, this.options);
3493
- let l;
3494
- this.modules.formatter ? l = this.modules.formatter : l = Pn;
3493
+ let c;
3494
+ this.modules.formatter ? c = this.modules.formatter : c = Pn;
3495
3495
  const u = new nr(this.options);
3496
3496
  this.store = new er(this.options.resources, this.options);
3497
- const f = this.services;
3498
- f.logger = ge, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new jn(u, {
3497
+ const l = this.services;
3498
+ l.logger = ge, l.resourceStore = this.store, l.languageUtils = u, l.pluralResolver = new jn(u, {
3499
3499
  prepend: this.options.pluralSeparator,
3500
3500
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3501
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(l), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Dn(this.options), f.utils = {
3501
+ }), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Dn(this.options), l.utils = {
3502
3502
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3503
- }, f.backendConnector = new Ln(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
3504
- this.emit(d, ...h);
3505
- }), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (d, ...h) => {
3506
- this.emit(d, ...h);
3503
+ }, l.backendConnector = new Ln(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (d, ...p) => {
3504
+ this.emit(d, ...p);
3505
+ }), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (d, ...p) => {
3506
+ this.emit(d, ...p);
3507
3507
  }), this.modules.external.forEach((d) => {
3508
3508
  d.init && d.init(this);
3509
3509
  });
3510
3510
  }
3511
3511
  if (this.format = this.options.interpolation.format, t || (t = Be), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3512
- const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3513
- l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
3512
+ const c = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3513
+ c.length > 0 && c[0] !== "dev" && (this.options.lng = c[0]);
3514
3514
  }
3515
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((l) => {
3516
- this[l] = (...u) => this.store[l](...u);
3517
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
3518
- this[l] = (...u) => (this.store[l](...u), this);
3515
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((c) => {
3516
+ this[c] = (...u) => this.store[c](...u);
3517
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
3518
+ this[c] = (...u) => (this.store[c](...u), this);
3519
3519
  });
3520
- const o = Le(), c = () => {
3521
- const l = (u, f) => {
3522
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(f), t(u, f);
3520
+ const o = Le(), f = () => {
3521
+ const c = (u, l) => {
3522
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(l), t(u, l);
3523
3523
  };
3524
- if (this.languages && !this.isInitialized) return l(null, this.t.bind(this));
3525
- this.changeLanguage(this.options.lng, l);
3524
+ if (this.languages && !this.isInitialized) return c(null, this.t.bind(this));
3525
+ this.changeLanguage(this.options.lng, c);
3526
3526
  };
3527
- return this.options.resources || !this.options.initAsync ? c() : setTimeout(c, 0), o;
3527
+ return this.options.resources || !this.options.initAsync ? f() : setTimeout(f, 0), o;
3528
3528
  }
3529
3529
  loadResources(e, t = Be) {
3530
3530
  var a, i;
@@ -3532,14 +3532,14 @@ class Ne extends rt {
3532
3532
  const s = G(e) ? e : this.language;
3533
3533
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3534
3534
  if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3535
- const o = [], c = (l) => {
3536
- if (!l || l === "cimode") return;
3537
- this.services.languageUtils.toResolveHierarchy(l).forEach((f) => {
3538
- f !== "cimode" && o.indexOf(f) < 0 && o.push(f);
3535
+ const o = [], f = (c) => {
3536
+ if (!c || c === "cimode") return;
3537
+ this.services.languageUtils.toResolveHierarchy(c).forEach((l) => {
3538
+ l !== "cimode" && o.indexOf(l) < 0 && o.push(l);
3539
3539
  });
3540
3540
  };
3541
- s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => c(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (l) => c(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
3542
- !l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(l);
3541
+ s ? f(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => f(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (c) => f(c)), this.services.backendConnector.load(o, this.options.ns, (c) => {
3542
+ !c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(c);
3543
3543
  });
3544
3544
  } else
3545
3545
  n(null);
@@ -3573,27 +3573,27 @@ class Ne extends rt {
3573
3573
  this.emit("languageChanging", e);
3574
3574
  const s = (o) => {
3575
3575
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
3576
- }, a = (o, c) => {
3577
- c ? this.isLanguageChangingTo === e && (s(c), this.translator.changeLanguage(c), this.isLanguageChangingTo = void 0, this.emit("languageChanged", c), this.logger.log("languageChanged", c)) : this.isLanguageChangingTo = void 0, n.resolve((...l) => this.t(...l)), t && t(o, (...l) => this.t(...l));
3576
+ }, a = (o, f) => {
3577
+ f ? this.isLanguageChangingTo === e && (s(f), this.translator.changeLanguage(f), this.isLanguageChangingTo = void 0, this.emit("languageChanged", f), this.logger.log("languageChanged", f)) : this.isLanguageChangingTo = void 0, n.resolve((...c) => this.t(...c)), t && t(o, (...c) => this.t(...c));
3578
3578
  }, i = (o) => {
3579
- var u, f;
3579
+ var u, l;
3580
3580
  !e && !o && this.services.languageDetector && (o = []);
3581
- const c = G(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(c) ? c : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
3582
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (f = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || f.call(u, l)), this.loadResources(l, (d) => {
3583
- a(d, l);
3581
+ const f = G(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(f) ? f : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
3582
+ c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (l = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || l.call(u, c)), this.loadResources(c, (d) => {
3583
+ a(d, c);
3584
3584
  });
3585
3585
  };
3586
3586
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
3587
3587
  }
3588
3588
  getFixedT(e, t, n) {
3589
3589
  const s = (a, i, ...o) => {
3590
- let c;
3591
- typeof i != "object" ? c = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : c = {
3590
+ let f;
3591
+ typeof i != "object" ? f = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : f = {
3592
3592
  ...i
3593
- }, c.lng = c.lng || s.lng, c.lngs = c.lngs || s.lngs, c.ns = c.ns || s.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || s.keyPrefix);
3594
- const l = this.options.keySeparator || ".";
3593
+ }, f.lng = f.lng || s.lng, f.lngs = f.lngs || s.lngs, f.ns = f.ns || s.ns, f.keyPrefix !== "" && (f.keyPrefix = f.keyPrefix || n || s.keyPrefix);
3594
+ const c = this.options.keySeparator || ".";
3595
3595
  let u;
3596
- return c.keyPrefix && Array.isArray(a) ? u = a.map((f) => `${c.keyPrefix}${l}${f}`) : u = c.keyPrefix ? `${c.keyPrefix}${l}${a}` : a, this.t(u, c);
3596
+ return f.keyPrefix && Array.isArray(a) ? u = a.map((l) => `${f.keyPrefix}${c}${l}`) : u = f.keyPrefix ? `${f.keyPrefix}${c}${a}` : a, this.t(u, f);
3597
3597
  };
3598
3598
  return G(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
3599
3599
  }
@@ -3615,9 +3615,9 @@ class Ne extends rt {
3615
3615
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3616
3616
  const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
3617
3617
  if (n.toLowerCase() === "cimode") return !0;
3618
- const i = (o, c) => {
3619
- const l = this.services.backendConnector.state[`${o}|${c}`];
3620
- return l === -1 || l === 0 || l === 2;
3618
+ const i = (o, f) => {
3619
+ const c = this.services.backendConnector.state[`${o}|${f}`];
3620
+ return c === -1 || c === 0 || c === 2;
3621
3621
  };
3622
3622
  if (t.precheck) {
3623
3623
  const o = t.precheck(this, i);
@@ -3665,15 +3665,15 @@ class Ne extends rt {
3665
3665
  }, a.services.utils = {
3666
3666
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3667
3667
  }, n) {
3668
- const o = Object.keys(this.store.data).reduce((c, l) => (c[l] = {
3669
- ...this.store.data[l]
3670
- }, c[l] = Object.keys(c[l]).reduce((u, f) => (u[f] = {
3671
- ...c[l][f]
3672
- }, u), c[l]), c), {});
3668
+ const o = Object.keys(this.store.data).reduce((f, c) => (f[c] = {
3669
+ ...this.store.data[c]
3670
+ }, f[c] = Object.keys(f[c]).reduce((u, l) => (u[l] = {
3671
+ ...f[c][l]
3672
+ }, u), f[c]), f), {});
3673
3673
  a.store = new er(o, s), a.services.resourceStore = a.store;
3674
3674
  }
3675
- return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...c) => {
3676
- a.emit(o, ...c);
3675
+ return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...f) => {
3676
+ a.emit(o, ...f);
3677
3677
  }), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
3678
3678
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3679
3679
  }, a;
@@ -3736,8 +3736,8 @@ function Bn(r, e, t, n, s) {
3736
3736
  if (typeof a != "number") {
3737
3737
  let o;
3738
3738
  e && n === void 0 ? o = "," : o = ".";
3739
- const c = o == "." ? "," : ".";
3740
- a = a.replace(ur(c, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
3739
+ const f = o == "." ? "," : ".";
3740
+ a = a.replace(ur(f, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
3741
3741
  }
3742
3742
  const i = Number(a);
3743
3743
  return isNaN(i) ? NaN : i;
@@ -3789,19 +3789,19 @@ ae.init({
3789
3789
  }
3790
3790
  }
3791
3791
  });
3792
- const Kn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), qn = (r, e) => ae.t(r, e);
3792
+ const zn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), Kn = (r, e) => ae.t(r, e);
3793
3793
  function nt() {
3794
3794
  const r = ye(
3795
- (n, s, a, i) => Kn(n, s, a || void 0, i),
3795
+ (n, s, a, i) => zn(n, s, a || void 0, i),
3796
3796
  []
3797
3797
  ), e = ye(() => ae.languages[0], []), t = ye(
3798
- (n, s) => qn(n, s),
3798
+ (n, s) => Kn(n, s),
3799
3799
  []
3800
3800
  );
3801
3801
  return { format: r, getCurrentLanguage: e, translate: t };
3802
3802
  }
3803
3803
  var Tt = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r))(Tt || {}), le = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(le || {}), fe = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(fe || {}), vt = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))(vt || {});
3804
- function zn({
3804
+ function qn({
3805
3805
  selectedDate: r,
3806
3806
  onDateChange: e,
3807
3807
  disabledDateRanges: t = [],
@@ -3812,15 +3812,15 @@ function zn({
3812
3812
  if (!n) return;
3813
3813
  const L = new Date(n);
3814
3814
  return isNaN(L.getTime()) ? void 0 : L;
3815
- }, [o] = Z(/* @__PURE__ */ new Date()), [c, l] = Z(
3815
+ }, [o] = Z(/* @__PURE__ */ new Date()), [f, c] = Z(
3816
3816
  r || i() || /* @__PURE__ */ new Date()
3817
- ), [u, f] = Z(
3818
- c ? c.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3819
- ), [d, h] = Z(
3820
- c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3817
+ ), [u, l] = Z(
3818
+ f ? f.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3819
+ ), [d, p] = Z(
3820
+ f ? f.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3821
3821
  ), [m, g] = Z(
3822
- c ? c.getDate() : null
3823
- ), x = ve(null), w = ve([]), E = [
3822
+ f ? f.getDate() : null
3823
+ ), x = ve(null), S = ve([]), E = [
3824
3824
  a(fe.JANUARY),
3825
3825
  a(fe.FEBRUARY),
3826
3826
  a(fe.MARCH),
@@ -3833,7 +3833,7 @@ function zn({
3833
3833
  a(fe.OCTOBER),
3834
3834
  a(fe.NOVEMBER),
3835
3835
  a(fe.DECEMBER)
3836
- ], R = [
3836
+ ], O = [
3837
3837
  {
3838
3838
  value: a(le.SUNDAY_SHORT),
3839
3839
  full: a(le.SUNDAY)
@@ -3862,38 +3862,38 @@ function zn({
3862
3862
  value: a(le.SATURDAY_SHORT),
3863
3863
  full: a(le.SATURDAY)
3864
3864
  }
3865
- ], S = (L) => t.some((p) => {
3866
- const y = p.start.getTime(), T = p.end.getTime(), $ = L.getTime();
3865
+ ], w = (L) => t.some((h) => {
3866
+ const y = h.start.getTime(), T = h.end.getTime(), $ = L.getTime();
3867
3867
  return $ >= y && $ <= T;
3868
3868
  }), b = (L) => {
3869
- S(L) || (l(L), g(L.getDate()), e && e(Yr(L)));
3869
+ w(L) || (c(L), g(L.getDate()), e && e(Yr(L)));
3870
3870
  }, k = () => {
3871
- u === 0 ? (f(11), h(d - 1)) : f(u - 1), g(1);
3871
+ u === 0 ? (l(11), p(d - 1)) : l(u - 1), g(1);
3872
3872
  }, C = () => {
3873
- u === 11 ? (f(0), h(d + 1)) : f(u + 1), g(1);
3874
- }, Y = (L, p) => new Date(L, p + 1, 0).getDate(), j = (L, p) => new Date(L, p, 1).getDay(), P = (L) => {
3873
+ u === 11 ? (l(0), p(d + 1)) : l(u + 1), g(1);
3874
+ }, Y = (L, h) => new Date(L, h + 1, 0).getDate(), j = (L, h) => new Date(L, h, 1).getDay(), P = (L) => {
3875
3875
  var y;
3876
- const p = H.findIndex(
3876
+ const h = H.findIndex(
3877
3877
  (T) => T !== null && T.getDate() === L
3878
3878
  );
3879
- p !== -1 && w.current[p] && ((y = w.current[p]) == null || y.focus(), g(L));
3880
- }, D = (L, p) => {
3881
- const y = H[p];
3879
+ h !== -1 && S.current[h] && ((y = S.current[h]) == null || y.focus(), g(L));
3880
+ }, D = (L, h) => {
3881
+ const y = H[h];
3882
3882
  if (!y) return;
3883
3883
  const T = Y(d, u), $ = y.getDate();
3884
3884
  switch (L.key) {
3885
3885
  case "ArrowRight":
3886
3886
  L.preventDefault();
3887
3887
  {
3888
- let O = $ + 1, A = new Date(d, u, O);
3889
- if (O > T) {
3888
+ let R = $ + 1, A = new Date(d, u, R);
3889
+ if (R > T) {
3890
3890
  const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
3891
- O = 1, A = new Date(M, F, O), C(), setTimeout(() => {
3891
+ R = 1, A = new Date(M, F, R), C(), setTimeout(() => {
3892
3892
  _(1, "forward");
3893
3893
  }, 0);
3894
3894
  return;
3895
3895
  }
3896
- S(A) ? _(O, "forward") : P(O);
3896
+ w(A) ? _(R, "forward") : P(R);
3897
3897
  }
3898
3898
  break;
3899
3899
  case "Tab":
@@ -3901,43 +3901,43 @@ function zn({
3901
3901
  case "ArrowLeft":
3902
3902
  L.preventDefault();
3903
3903
  {
3904
- let O = $ - 1, A = new Date(d, u, O);
3905
- if (O < 1) {
3904
+ let R = $ - 1, A = new Date(d, u, R);
3905
+ if (R < 1) {
3906
3906
  const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1, N = Y(M, F);
3907
- O = N, A = new Date(M, F, O), k(), setTimeout(() => {
3907
+ R = N, A = new Date(M, F, R), k(), setTimeout(() => {
3908
3908
  _(N, "backward");
3909
3909
  }, 0);
3910
3910
  return;
3911
3911
  }
3912
- S(A) ? _(O, "backward") : P(O);
3912
+ w(A) ? _(R, "backward") : P(R);
3913
3913
  }
3914
3914
  break;
3915
3915
  case "ArrowUp":
3916
3916
  L.preventDefault();
3917
3917
  {
3918
- let O = $ - 7, A = new Date(d, u, O);
3919
- if (O < 1) {
3918
+ let R = $ - 7, A = new Date(d, u, R);
3919
+ if (R < 1) {
3920
3920
  const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1;
3921
- O = Y(M, F) + O, A = new Date(M, F, O), k(), setTimeout(() => {
3922
- _(O, "backward");
3921
+ R = Y(M, F) + R, A = new Date(M, F, R), k(), setTimeout(() => {
3922
+ _(R, "backward");
3923
3923
  }, 0);
3924
3924
  return;
3925
3925
  }
3926
- S(A) ? _(O, "backward") : P(O);
3926
+ w(A) ? _(R, "backward") : P(R);
3927
3927
  }
3928
3928
  break;
3929
3929
  case "ArrowDown":
3930
3930
  L.preventDefault();
3931
3931
  {
3932
- let O = $ + 7, A = new Date(d, u, O);
3933
- if (O > T) {
3932
+ let R = $ + 7, A = new Date(d, u, R);
3933
+ if (R > T) {
3934
3934
  const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
3935
- O = O - T, A = new Date(M, F, O), C(), setTimeout(() => {
3936
- _(O, "forward");
3935
+ R = R - T, A = new Date(M, F, R), C(), setTimeout(() => {
3936
+ _(R, "forward");
3937
3937
  }, 0);
3938
3938
  return;
3939
3939
  }
3940
- S(A) ? _(O, "forward") : P(O);
3940
+ w(A) ? _(R, "forward") : P(R);
3941
3941
  }
3942
3942
  break;
3943
3943
  case "Home":
@@ -3948,37 +3948,37 @@ function zn({
3948
3948
  break;
3949
3949
  case "PageUp":
3950
3950
  L.preventDefault(), k(), setTimeout(() => {
3951
- const O = Y(
3951
+ const R = Y(
3952
3952
  u === 0 ? d - 1 : d,
3953
3953
  u === 0 ? 11 : u - 1
3954
- ), A = Math.min($, O);
3954
+ ), A = Math.min($, R);
3955
3955
  _(A, "forward");
3956
3956
  }, 0);
3957
3957
  break;
3958
3958
  case "PageDown":
3959
3959
  L.preventDefault(), C(), setTimeout(() => {
3960
- const O = Y(
3960
+ const R = Y(
3961
3961
  u === 11 ? d + 1 : d,
3962
3962
  u === 11 ? 0 : u + 1
3963
- ), A = Math.min($, O);
3963
+ ), A = Math.min($, R);
3964
3964
  _(A, "forward");
3965
3965
  }, 0);
3966
3966
  break;
3967
3967
  case " ":
3968
3968
  case "Space":
3969
- if (S(y)) return;
3970
- g(y.getDate()), l(y);
3969
+ if (w(y)) return;
3970
+ g(y.getDate()), c(y);
3971
3971
  break;
3972
3972
  case "Enter":
3973
3973
  L.preventDefault(), b(y);
3974
3974
  break;
3975
3975
  }
3976
- }, _ = (L, p) => {
3976
+ }, _ = (L, h) => {
3977
3977
  const y = Y(d, u);
3978
- if (p === "forward") {
3978
+ if (h === "forward") {
3979
3979
  for (let T = L; T <= y; T++) {
3980
3980
  const $ = new Date(d, u, T);
3981
- if (!S($)) {
3981
+ if (!w($)) {
3982
3982
  P(T);
3983
3983
  return;
3984
3984
  }
@@ -3989,40 +3989,40 @@ function zn({
3989
3989
  } else {
3990
3990
  for (let A = L; A >= 1; A--) {
3991
3991
  const M = new Date(d, u, A);
3992
- if (!S(M)) {
3992
+ if (!w(M)) {
3993
3993
  P(A);
3994
3994
  return;
3995
3995
  }
3996
3996
  }
3997
- const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, O = Y(T, $);
3997
+ const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, R = Y(T, $);
3998
3998
  k(), setTimeout(() => {
3999
- _(O, "backward");
3999
+ _(R, "backward");
4000
4000
  }, 0);
4001
4001
  }
4002
4002
  }, H = (() => {
4003
- const L = Y(d, u), p = j(d, u), y = [];
4004
- for (let T = 0; T < p; T++)
4003
+ const L = Y(d, u), h = j(d, u), y = [];
4004
+ for (let T = 0; T < h; T++)
4005
4005
  y.push(null);
4006
4006
  for (let T = 1; T <= L; T++) {
4007
4007
  const $ = new Date(d, u, T);
4008
4008
  y.push($);
4009
4009
  }
4010
4010
  return y;
4011
- })(), q = [];
4012
- let K = [];
4013
- H.forEach((L, p) => {
4014
- if (K.push(L), K.length === 7 || p === H.length - 1) {
4015
- for (; K.length < 7; )
4016
- K.push(null);
4017
- q.push(K), K = [];
4011
+ })(), K = [];
4012
+ let z = [];
4013
+ H.forEach((L, h) => {
4014
+ if (z.push(L), z.length === 7 || h === H.length - 1) {
4015
+ for (; z.length < 7; )
4016
+ z.push(null);
4017
+ K.push(z), z = [];
4018
4018
  }
4019
4019
  }), oe(() => {
4020
4020
  var L;
4021
4021
  if (m !== null) {
4022
- const p = H.findIndex(
4022
+ const h = H.findIndex(
4023
4023
  (y) => y !== null && y.getDate() === m
4024
4024
  );
4025
- p !== -1 && w.current[p] && ((L = w.current[p]) == null || L.focus());
4025
+ h !== -1 && S.current[h] && ((L = S.current[h]) == null || L.focus());
4026
4026
  }
4027
4027
  }, [u, d, m, H]);
4028
4028
  const J = {
@@ -4031,9 +4031,9 @@ function zn({
4031
4031
  calendar: "smp-datepickercalendar",
4032
4032
  table: "smp-datepickercalendar-table",
4033
4033
  th: "smp-datepickercalendar-th",
4034
- td: (L, p, y, T) => `smp-datepickercalendar-td
4034
+ td: (L, h, y, T) => `smp-datepickercalendar-td
4035
4035
  ${L ? "smp-datepickercalendar-td-today" : ""}
4036
- ${p ? "smp-datepickercalendar-td-selected" : ""}
4036
+ ${h ? "smp-datepickercalendar-td-selected" : ""}
4037
4037
  ${y ? "smp-datepickercalendar-td-focused" : ""}
4038
4038
  ${T ? "smp-datepickercalendar-td-disabled" : ""}`
4039
4039
  }, W = () => `${E[u]} ${d.toString()}`;
@@ -4096,7 +4096,7 @@ function zn({
4096
4096
  "aria-label": `${a(Tt.CALENDAR_FOR)} ${E[u]} ${d}`,
4097
4097
  className: J.table,
4098
4098
  children: [
4099
- /* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: R.map((L) => /* @__PURE__ */ v.jsx(
4099
+ /* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: O.map((L) => /* @__PURE__ */ v.jsx(
4100
4100
  "th",
4101
4101
  {
4102
4102
  scope: "col",
@@ -4106,8 +4106,8 @@ function zn({
4106
4106
  },
4107
4107
  L.value
4108
4108
  )) }) }),
4109
- /* @__PURE__ */ v.jsx("tbody", { children: q.map((L, p) => /* @__PURE__ */ v.jsx("tr", { children: L.map((y, T) => {
4110
- const $ = p * 7 + T;
4109
+ /* @__PURE__ */ v.jsx("tbody", { children: K.map((L, h) => /* @__PURE__ */ v.jsx("tr", { children: L.map((y, T) => {
4110
+ const $ = h * 7 + T;
4111
4111
  if (y === null)
4112
4112
  return /* @__PURE__ */ v.jsx(
4113
4113
  "td",
@@ -4121,7 +4121,7 @@ function zn({
4121
4121
  },
4122
4122
  `empty-${T}`
4123
4123
  );
4124
- const O = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = c && y.getDate() === c.getDate() && y.getMonth() === c.getMonth() && y.getFullYear() === c.getFullYear(), M = m === y.getDate(), F = S(y);
4124
+ const R = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = f && y.getDate() === f.getDate() && y.getMonth() === f.getMonth() && y.getFullYear() === f.getFullYear(), M = m === y.getDate(), F = w(y);
4125
4125
  return /* @__PURE__ */ v.jsx(
4126
4126
  "td",
4127
4127
  {
@@ -4134,10 +4134,10 @@ function zn({
4134
4134
  "data-selected": A,
4135
4135
  "aria-disabled": F,
4136
4136
  ref: (N) => {
4137
- w.current[$] = N;
4137
+ S.current[$] = N;
4138
4138
  },
4139
4139
  className: J.td(
4140
- O,
4140
+ R,
4141
4141
  A,
4142
4142
  M,
4143
4143
  F
@@ -4146,7 +4146,7 @@ function zn({
4146
4146
  },
4147
4147
  `day-${T}`
4148
4148
  );
4149
- }) }, `week-${p}`)) })
4149
+ }) }, `week-${h}`)) })
4150
4150
  ]
4151
4151
  }
4152
4152
  )
@@ -4162,11 +4162,11 @@ const Jn = ({
4162
4162
  isEditable: s = !0,
4163
4163
  ...a
4164
4164
  }) => {
4165
- const [i, o] = Z(!1), [c, l] = Z(r || ""), [u, f] = Z(""), { anchorRef: d, targetRef: h } = St({
4165
+ const [i, o] = Z(!1), [f, c] = Z(r || ""), [u, l] = Z(""), { anchorRef: d, targetRef: p } = St({
4166
4166
  position: "bottom",
4167
4167
  enabled: i
4168
4168
  });
4169
- Je(h, () => {
4169
+ Je(p, () => {
4170
4170
  o(!1);
4171
4171
  }), Je(d, () => {
4172
4172
  if (
@@ -4176,7 +4176,7 @@ const Jn = ({
4176
4176
  const C = d.current.querySelector("input");
4177
4177
  C && C === document.activeElement && E();
4178
4178
  }
4179
- }), Tr(i, h);
4179
+ }), Tr(i, p);
4180
4180
  const { format: m, getCurrentLanguage: g } = nt(), x = ye(
4181
4181
  (C) => {
4182
4182
  const Y = C.length > 5 && Mr(C, g()) || C, j = m(Y, void 0, void 0, {
@@ -4193,19 +4193,19 @@ const Jn = ({
4193
4193
  );
4194
4194
  oe(() => {
4195
4195
  const { formattedDate: C, isoDate: Y, isValid: j } = x(r);
4196
- l(j && Y || r), f(j && C || r);
4196
+ c(j && Y || r), l(j && C || r);
4197
4197
  }, [r, m, x]);
4198
- const w = () => o((C) => !C), E = () => {
4199
- S(u);
4200
- }, R = (C) => {
4201
- S(C), o(!1);
4202
- }, S = (C) => {
4198
+ const S = () => o((C) => !C), E = () => {
4199
+ w(u);
4200
+ }, O = (C) => {
4201
+ w(C), o(!1);
4202
+ }, w = (C) => {
4203
4203
  const { isoDate: Y, isValid: j } = x(C);
4204
4204
  t && t(j && Y || C);
4205
4205
  }, b = (C) => {
4206
- f(C);
4206
+ l(C);
4207
4207
  }, k = (C) => {
4208
- C.key === "Enter" && (C.preventDefault(), S(u));
4208
+ C.key === "Enter" && (C.preventDefault(), w(u));
4209
4209
  };
4210
4210
  return /* @__PURE__ */ v.jsxs("div", { "data-component": "date-picker", children: [
4211
4211
  /* @__PURE__ */ v.jsx(
@@ -4217,19 +4217,19 @@ const Jn = ({
4217
4217
  onChange: b,
4218
4218
  onKeyDown: k,
4219
4219
  shapeIcon: "calendar",
4220
- onShapeIconClick: w,
4220
+ onShapeIconClick: S,
4221
4221
  ref: d,
4222
4222
  isEditable: s,
4223
4223
  ...a
4224
4224
  }
4225
4225
  ),
4226
4226
  i && /* @__PURE__ */ v.jsx(
4227
- zn,
4227
+ qn,
4228
4228
  {
4229
4229
  disabledDateRanges: n,
4230
- onDateChange: R,
4231
- initialValue: xt(c) && c || "",
4232
- targetRef: h
4230
+ onDateChange: O,
4231
+ initialValue: xt(f) && f || "",
4232
+ targetRef: p
4233
4233
  }
4234
4234
  )
4235
4235
  ] });
@@ -4242,31 +4242,31 @@ const Jn = ({
4242
4242
  placeholder: a,
4243
4243
  label: i,
4244
4244
  disabled: o,
4245
- fun: c,
4246
- onOptionsRequest: l,
4245
+ fun: f,
4246
+ onOptionsRequest: c,
4247
4247
  onChange: u
4248
4248
  }) => {
4249
- const f = r.map((m) => m.bindValue), d = (m, g) => {
4249
+ const l = r.map((m) => m.bindValue), d = (m, g) => {
4250
4250
  const x = [...r];
4251
4251
  if (m == "")
4252
4252
  x.pop();
4253
4253
  else {
4254
- const w = x.findIndex(
4254
+ const S = x.findIndex(
4255
4255
  (E) => E.bindValue === m && E.optionalDisplayValue === g
4256
4256
  );
4257
- w >= 0 ? x.splice(w, 1) : x.push({
4257
+ S >= 0 ? x.splice(S, 1) : x.push({
4258
4258
  bindValue: m,
4259
4259
  optionalDisplayValue: g
4260
4260
  });
4261
4261
  }
4262
4262
  u == null || u(x);
4263
- }, h = {
4263
+ }, p = {
4264
4264
  container: "smp-multipleAutocomplete-container"
4265
4265
  };
4266
4266
  return /* @__PURE__ */ v.jsxs(
4267
4267
  "div",
4268
4268
  {
4269
- className: h.container,
4269
+ className: p.container,
4270
4270
  "data-component": "multiple-autocomplete",
4271
4271
  children: [
4272
4272
  i && /* @__PURE__ */ v.jsx($e, { label: i, disabled: o }),
@@ -4285,15 +4285,15 @@ const Jn = ({
4285
4285
  Er,
4286
4286
  {
4287
4287
  bindValue: "",
4288
- fun: c,
4288
+ fun: f,
4289
4289
  isEditable: s,
4290
4290
  onChange: d,
4291
4291
  _changeOnEnter: !0,
4292
4292
  listDisplayMode: n,
4293
4293
  minimumChars: t,
4294
4294
  placeholder: a,
4295
- onOptionsRequest: l,
4296
- _multiActiveIndex: f
4295
+ onOptionsRequest: c,
4296
+ _multiActiveIndex: l
4297
4297
  }
4298
4298
  )
4299
4299
  ]
@@ -4414,34 +4414,34 @@ const Ge = (r, e, t) => ({
4414
4414
  appearance: a,
4415
4415
  isEditable: i,
4416
4416
  label: o,
4417
- ariaLabel: c,
4418
- helperText: l,
4417
+ ariaLabel: f,
4418
+ helperText: c,
4419
4419
  error: u,
4420
- onBlur: f,
4420
+ onBlur: l,
4421
4421
  onKeyDown: d
4422
4422
  }) => {
4423
- const h = bt(), m = `${h}-helper`, g = u ? "danger" : s, x = l || !!u, w = (R) => {
4424
- t == null || t(R.target.value);
4423
+ const p = bt(), m = `${p}-helper`, g = u ? "danger" : s, x = c || !!u, S = (O) => {
4424
+ t == null || t(O.target.value);
4425
4425
  }, E = {
4426
4426
  wrapper: "smp-textarea-wrapper",
4427
4427
  container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${g ? `smp-textarea-${g}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
4428
4428
  };
4429
4429
  return /* @__PURE__ */ v.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
4430
- o && /* @__PURE__ */ v.jsx($e, { htmlFor: h, label: o, disabled: r }),
4430
+ o && /* @__PURE__ */ v.jsx($e, { htmlFor: p, label: o, disabled: r }),
4431
4431
  /* @__PURE__ */ v.jsx(
4432
4432
  "textarea",
4433
4433
  {
4434
- id: h,
4434
+ id: p,
4435
4435
  value: e,
4436
4436
  placeholder: n,
4437
- onChange: w,
4438
- onBlur: f,
4437
+ onChange: S,
4438
+ onBlur: l,
4439
4439
  className: E.container,
4440
4440
  disabled: r,
4441
4441
  readOnly: !i,
4442
4442
  onKeyDown: d,
4443
- "aria-label": o ? void 0 : c,
4444
- "aria-labelledby": o ? h : void 0,
4443
+ "aria-label": o ? void 0 : f,
4444
+ "aria-labelledby": o ? p : void 0,
4445
4445
  "aria-describedby": x ? m : void 0
4446
4446
  }
4447
4447
  ),
@@ -4464,12 +4464,12 @@ const Ge = (r, e, t) => ({
4464
4464
  fun: a,
4465
4465
  placeholderIcon: i,
4466
4466
  label: o,
4467
- options: c,
4468
- onChange: l,
4467
+ options: f,
4468
+ onChange: c,
4469
4469
  onClick: u,
4470
- onEnter: f,
4470
+ onEnter: l,
4471
4471
  onBlur: d,
4472
- onOptionsRequest: h,
4472
+ onOptionsRequest: p,
4473
4473
  isEditable: m
4474
4474
  }) => {
4475
4475
  const g = {
@@ -4480,159 +4480,159 @@ const Ge = (r, e, t) => ({
4480
4480
  fun: a
4481
4481
  }, x = {
4482
4482
  onBlur: d,
4483
- onOptionsRequest: h,
4483
+ onOptionsRequest: p,
4484
4484
  fun: a,
4485
4485
  icon: s,
4486
4486
  label: o,
4487
4487
  isEditable: m,
4488
4488
  ...n
4489
- }, w = (S, b, k) => kr(t) ? Ge(S, new ze(t, b).getLegacyValue()) : Ge(S, b, k), E = (S) => Ge(g, new qe(t, S).getLegacyValue()), R = (S) => ts(g, S);
4489
+ }, S = (w, b, k) => kr(t) ? Ge(w, new qe(t, b).getLegacyValue()) : Ge(w, b, k), E = (w) => Ge(g, new Ke(t, w).getLegacyValue()), O = (w) => ts(g, w);
4490
4490
  switch (e) {
4491
4491
  case ne.AUTOCOMPLETE: {
4492
- const S = {
4492
+ const w = {
4493
4493
  ...x,
4494
4494
  bindValue: t.k,
4495
4495
  optionalDisplayValue: r,
4496
4496
  onChange: (b, k) => {
4497
- l == null || l(w(g, b, k));
4497
+ c == null || c(S(g, b, k));
4498
4498
  }
4499
4499
  };
4500
- return /* @__PURE__ */ v.jsx(Er, { ...S });
4500
+ return /* @__PURE__ */ v.jsx(Er, { ...w });
4501
4501
  }
4502
4502
  case ne.BUTTON: {
4503
- const S = {
4503
+ const w = {
4504
4504
  ...x,
4505
4505
  bindValue: t.k,
4506
4506
  optionalDisplayValue: r,
4507
4507
  onClick: () => {
4508
- u == null || u(w(g, t.k));
4508
+ u == null || u(S(g, t.k));
4509
4509
  }
4510
4510
  };
4511
- return /* @__PURE__ */ v.jsx(De, { ...S });
4511
+ return /* @__PURE__ */ v.jsx(De, { ...w });
4512
4512
  }
4513
4513
  case ne.BUTTON_LIST: {
4514
- const S = {
4514
+ const w = {
4515
4515
  ...x,
4516
- options: c,
4516
+ options: f,
4517
4517
  onClick: (b, k) => {
4518
4518
  const C = { ...g, fun: k };
4519
- u == null || u(w(C, b));
4519
+ u == null || u(S(C, b));
4520
4520
  }
4521
4521
  };
4522
- return /* @__PURE__ */ v.jsx(dn, { ...S });
4522
+ return /* @__PURE__ */ v.jsx(dn, { ...w });
4523
4523
  }
4524
4524
  case ne.COMBOBOX: {
4525
- const S = {
4525
+ const w = {
4526
4526
  ...x,
4527
4527
  bindValue: t.k,
4528
4528
  optionalDisplayValue: r,
4529
4529
  onChange: (b, k) => {
4530
- l == null || l(w(g, b, k));
4530
+ c == null || c(S(g, b, k));
4531
4531
  }
4532
4532
  };
4533
- return /* @__PURE__ */ v.jsx(mn, { ...S });
4533
+ return /* @__PURE__ */ v.jsx(mn, { ...w });
4534
4534
  }
4535
4535
  case ne.SWITCH:
4536
4536
  case ne.CHECKBOX: {
4537
- const S = {
4537
+ const w = {
4538
4538
  ...x,
4539
- bindValue: qe.fromDataObj(t).getValue(),
4539
+ bindValue: Ke.fromDataObj(t).getValue(),
4540
4540
  optionalDisplayValue: r,
4541
4541
  onChange: (b) => {
4542
- l == null || l(E(b));
4542
+ c == null || c(E(b));
4543
4543
  }
4544
4544
  };
4545
- return /* @__PURE__ */ v.jsx(pn, { ...S });
4545
+ return /* @__PURE__ */ v.jsx(pn, { ...w });
4546
4546
  }
4547
4547
  case ne.CHIP: {
4548
- const S = {
4548
+ const w = {
4549
4549
  ...x,
4550
4550
  elements: fr(g)
4551
4551
  };
4552
- return /* @__PURE__ */ v.jsx(Et, { ...S });
4552
+ return /* @__PURE__ */ v.jsx(Et, { ...w });
4553
4553
  }
4554
4554
  case ne.DATE: {
4555
- const S = {
4555
+ const w = {
4556
4556
  ...x,
4557
- bindValue: ze.fromDataObj(t).getValue(),
4557
+ bindValue: qe.fromDataObj(t).getValue(),
4558
4558
  onChange: (b) => {
4559
- l == null || l(w(g, b));
4559
+ c == null || c(S(g, b));
4560
4560
  }
4561
4561
  };
4562
- return /* @__PURE__ */ v.jsx(Jn, { ...S });
4562
+ return /* @__PURE__ */ v.jsx(Jn, { ...w });
4563
4563
  }
4564
4564
  case ne.ICON:
4565
4565
  case ne.IMAGE: {
4566
- const S = {
4566
+ const w = {
4567
4567
  ...x,
4568
4568
  icon: s,
4569
4569
  placeholderIcon: i,
4570
4570
  isInteractable: !!x.fun,
4571
4571
  onClick: () => {
4572
- u == null || u(w(g, t.k));
4572
+ u == null || u(S(g, t.k));
4573
4573
  }
4574
4574
  };
4575
- return /* @__PURE__ */ v.jsx(ue, { ...S });
4575
+ return /* @__PURE__ */ v.jsx(ue, { ...w });
4576
4576
  }
4577
4577
  case ne.MULTI_AUTOCOMPLETE: {
4578
- const S = {
4578
+ const w = {
4579
4579
  ...x,
4580
4580
  elements: fr(g),
4581
4581
  onChange: (b) => {
4582
- l == null || l(R(b));
4582
+ c == null || c(O(b));
4583
4583
  }
4584
4584
  };
4585
- return /* @__PURE__ */ v.jsx(Xn, { ...S });
4585
+ return /* @__PURE__ */ v.jsx(Xn, { ...w });
4586
4586
  }
4587
4587
  case ne.MEMO: {
4588
- const S = {
4588
+ const w = {
4589
4589
  ...x,
4590
4590
  bindValue: t.k,
4591
4591
  optionalDisplayValue: r,
4592
4592
  onChange: (b) => {
4593
- l == null || l(w(g, b));
4593
+ c == null || c(S(g, b));
4594
4594
  }
4595
4595
  };
4596
- return /* @__PURE__ */ v.jsx(rs, { ...S });
4596
+ return /* @__PURE__ */ v.jsx(rs, { ...w });
4597
4597
  }
4598
4598
  case ne.PASSWORD: {
4599
- const S = {
4599
+ const w = {
4600
4600
  ...x,
4601
4601
  bindValue: t.k,
4602
4602
  onChange: (b) => {
4603
- l == null || l(w(g, b));
4603
+ c == null || c(S(g, b));
4604
4604
  }
4605
4605
  };
4606
- return /* @__PURE__ */ v.jsx(Zn, { ...S });
4606
+ return /* @__PURE__ */ v.jsx(Zn, { ...w });
4607
4607
  }
4608
4608
  case ne.SPOTLIGHT: {
4609
- const S = {
4609
+ const w = {
4610
4610
  ...x,
4611
4611
  bindValue: t.k,
4612
4612
  onEnter: (b) => {
4613
- f == null || f(w(g, b));
4613
+ l == null || l(S(g, b));
4614
4614
  }
4615
4615
  };
4616
- return /* @__PURE__ */ v.jsx(Qn, { ...S });
4616
+ return /* @__PURE__ */ v.jsx(Qn, { ...w });
4617
4617
  }
4618
4618
  case ne.TEXT_FIELD: {
4619
- const S = {
4619
+ const w = {
4620
4620
  ...x,
4621
4621
  bindValue: t.k,
4622
4622
  optionalDisplayValue: r,
4623
4623
  onChange: (b) => {
4624
- l == null || l(w(g, b));
4624
+ c == null || c(S(g, b));
4625
4625
  }
4626
4626
  };
4627
- return /* @__PURE__ */ v.jsx(Ce, { ...S });
4627
+ return /* @__PURE__ */ v.jsx(Ce, { ...w });
4628
4628
  }
4629
4629
  default: {
4630
- const S = {
4630
+ const w = {
4631
4631
  ...x,
4632
4632
  bindValue: t.k,
4633
4633
  optionalDisplayValue: r
4634
4634
  };
4635
- return /* @__PURE__ */ v.jsx(es, { ...S });
4635
+ return /* @__PURE__ */ v.jsx(es, { ...w });
4636
4636
  }
4637
4637
  }
4638
4638
  }, ns = (r, e) => {
@@ -4650,13 +4650,13 @@ const Ge = (r, e, t) => ({
4650
4650
  };
4651
4651
  let n = t.sections, s = t.content;
4652
4652
  return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = ns(
4653
- t.content.filter((c) => !!e[c.id]),
4653
+ t.content.filter((f) => !!e[f.id]),
4654
4654
  +t.columns
4655
4655
  ).map(
4656
- (c, l) => ({
4656
+ (f, c) => ({
4657
4657
  ...t,
4658
- id: `${t.id}-${l}`,
4659
- content: c,
4658
+ id: `${t.id}-${c}`,
4659
+ content: f,
4660
4660
  gridCols: t.columns,
4661
4661
  horizontal: !0
4662
4662
  })
@@ -4685,96 +4685,106 @@ const Ge = (r, e, t) => ({
4685
4685
  "smp-grid-template-rows": "_smp-grid-template-rows_xrjwg_48",
4686
4686
  "smp-layout-section-with-title": "_smp-layout-section-with-title_xrjwg_52",
4687
4687
  "smp-layout-section-title": "_smp-layout-section-title_xrjwg_58"
4688
- }, Rt = ({ layout: r, cells: e }) => {
4689
- var f;
4690
- if (!((f = r.sections) != null && f.length))
4691
- return /* @__PURE__ */ v.jsx(v.Fragment, {});
4692
- const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(r.sections, e), a = (d) => d == null ? void 0 : d.reduce((h, m) => {
4693
- var R, S;
4694
- let g = "", x = {}, w = {}, E = "";
4695
- return (R = m.sections) != null && R.length ? (g = pe["smp-layout-section-grid"], x = a(m.sections), m.gridCols == null && (E = `${pe[m.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (m.horizontal || pr(m.sections)) && (w = dr(
4696
- m.sections,
4697
- m.horizontal ? t : n
4698
- )))) : (S = m.content) != null && S.length && (m.gridCols !== void 0 && m.gridCols > 0 ? (g = pe["smp-layout-section-grid"], E = `${pe["smp-grid-template-cols"]}`, w = {
4699
- [t]: `repeat(${m.gridCols}, 1fr)`
4700
- }) : g = pe["smp-layout-section-flex"]), {
4701
- ...h,
4702
- ...x,
4703
- [m.id]: {
4704
- classes: `${g} ${pe[m.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${E} ${m.justify ? `smp-justifyContent-${m.justify}` : ""} ${m.align ? `smp-alignItems-${m.align}` : ""}`,
4705
- styles: w
4688
+ }, Rt = ({
4689
+ cells: r,
4690
+ layout: e = {
4691
+ horizontal: !1,
4692
+ sections: [
4693
+ {
4694
+ id: "1",
4695
+ content: Object.keys(r).map((t) => ({
4696
+ id: t
4697
+ }))
4698
+ }
4699
+ ]
4700
+ }
4701
+ }) => {
4702
+ const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((d, p) => {
4703
+ var E, O;
4704
+ let m = "", g = {}, x = {}, S = "";
4705
+ return (E = p.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(p.sections), p.gridCols == null && (S = `${pe[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (p.horizontal || pr(p.sections)) && (x = dr(
4706
+ p.sections,
4707
+ p.horizontal ? t : n
4708
+ )))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (m = pe["smp-layout-section-grid"], S = `${pe["smp-grid-template-cols"]}`, x = {
4709
+ [t]: `repeat(${p.gridCols}, 1fr)`
4710
+ }) : m = pe["smp-layout-section-flex"]), {
4711
+ ...d,
4712
+ ...g,
4713
+ [p.id]: {
4714
+ classes: `${m} ${pe[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${S} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
4715
+ styles: x
4706
4716
  }
4707
4717
  };
4708
4718
  }, {}), i = a(s), o = {
4709
- container: `${pe["smp-layout"]} ${r.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]}`,
4719
+ container: `${pe["smp-layout"]} ${e.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]}`,
4710
4720
  sections: i
4711
- }, c = r.horizontal || pr(r.sections) ? dr(
4721
+ }, f = e.horizontal || pr(e.sections || []) ? dr(
4712
4722
  s,
4713
- r.horizontal ? t : n
4714
- ) : {}, l = (d) => {
4715
- var m;
4716
- const h = /* @__PURE__ */ v.jsx(
4723
+ e.horizontal ? t : n
4724
+ ) : {}, c = (l) => {
4725
+ var p;
4726
+ const d = /* @__PURE__ */ v.jsx(
4717
4727
  "div",
4718
4728
  {
4719
- "smp-id": "section-" + d.id,
4720
- className: o.sections[d.id].classes,
4721
- style: o.sections[d.id].styles,
4722
- children: (m = d.sections) != null && m.length ? d.sections.map((g) => l(g)) : d.content.map(
4723
- (g) => u(
4724
- g,
4725
- e[g.id],
4726
- d.justify,
4727
- d.align
4729
+ "smp-id": "section-" + l.id,
4730
+ className: o.sections[l.id].classes,
4731
+ style: o.sections[l.id].styles,
4732
+ children: (p = l.sections) != null && p.length ? l.sections.map((m) => c(m)) : l.content.map(
4733
+ (m) => u(
4734
+ m,
4735
+ r[m.id],
4736
+ l.justify,
4737
+ l.align
4728
4738
  )
4729
4739
  )
4730
4740
  },
4731
- "section-" + d.id
4741
+ "section-" + l.id
4732
4742
  );
4733
- return d.title ? /* @__PURE__ */ v.jsxs("div", { className: `${pe["smp-layout-section-with-title"]}`, children: [
4743
+ return l.title ? /* @__PURE__ */ v.jsxs("div", { className: `${pe["smp-layout-section-with-title"]}`, children: [
4734
4744
  /* @__PURE__ */ v.jsx(
4735
4745
  "span",
4736
4746
  {
4737
- className: `${pe["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
4738
- children: /* @__PURE__ */ v.jsx($e, { label: d.title })
4747
+ className: `${pe["smp-layout-section-title"]} ${l.justify ? `smp-justifyContent-${l.justify}` : ""} ${l.align ? `smp-alignItems-${l.align}` : ""}`,
4748
+ children: /* @__PURE__ */ v.jsx($e, { label: l.title })
4739
4749
  }
4740
4750
  ),
4741
- h
4742
- ] }) : h;
4743
- }, u = (d, h, m, g) => {
4744
- const x = d.colSpan !== void 0 ? d.colSpan > 0 ? d.colSpan : d.colStart !== void 0 && d.colStart < 1 ? 1 : null : null, w = x !== null ? `span ${x}` : d.colStart, E = d.colEnd !== void 0 && d.colEnd > 0 ? d.colEnd : "", R = {
4745
- gridColumnStart: w,
4746
- gridColumnEnd: E
4747
- }, S = `${pe["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${g ? `smp-alignItems-${g}` : ""}`;
4748
- return h ? /* @__PURE__ */ v.jsx(
4751
+ d
4752
+ ] }) : d;
4753
+ }, u = (l, d, p, m) => {
4754
+ const g = l.colSpan !== void 0 ? l.colSpan > 0 ? l.colSpan : l.colStart !== void 0 && l.colStart < 1 ? 1 : null : null, x = g !== null ? `span ${g}` : l.colStart, S = l.colEnd !== void 0 && l.colEnd > 0 ? l.colEnd : "", E = {
4755
+ gridColumnStart: x,
4756
+ gridColumnEnd: S
4757
+ }, O = `${pe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
4758
+ return d ? /* @__PURE__ */ v.jsx(
4749
4759
  "div",
4750
4760
  {
4751
- className: S,
4752
- style: { ...R },
4753
- "smp-id": d.id,
4754
- children: /* @__PURE__ */ v.jsx(Ot, { ...h })
4761
+ className: O,
4762
+ style: { ...E },
4763
+ "smp-id": l.id,
4764
+ children: /* @__PURE__ */ v.jsx(Ot, { ...d })
4755
4765
  },
4756
- d.id
4766
+ l.id
4757
4767
  ) : /* @__PURE__ */ v.jsx(v.Fragment, {});
4758
4768
  };
4759
- return /* @__PURE__ */ v.jsx("div", { className: o.container, style: c, "smp-id": "layout", children: s == null ? void 0 : s.map((d) => l(d)) });
4769
+ return /* @__PURE__ */ v.jsx("div", { className: o.container, style: f, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
4760
4770
  }, ws = ({ data: r, onClick: e, onEnter: t }) => {
4761
4771
  var i, o;
4762
4772
  const [n, s] = Z(), a = ye(
4763
- (c) => {
4764
- var u, f;
4765
- if (!((u = c.rows) != null && u.length) || !((f = c.columns) != null && f.length))
4773
+ (f) => {
4774
+ var u, l;
4775
+ if (!((u = f.rows) != null && u.length) || !((l = f.columns) != null && l.length))
4766
4776
  return {};
4767
- const l = c.rows[0];
4768
- return c.columns.filter((d) => d.visible).reduce((d, h) => {
4769
- const m = l.cells[h.name], g = {
4777
+ const c = f.rows[0];
4778
+ return f.columns.filter((d) => d.visible).reduce((d, p) => {
4779
+ const m = c.cells[p.name], g = {
4770
4780
  ...m,
4771
4781
  onChange: (x) => {
4772
- s((w) => w && {
4773
- ...w,
4774
- [h.name]: {
4775
- ...w[h.name],
4782
+ s((S) => S && {
4783
+ ...S,
4784
+ [p.name]: {
4785
+ ...S[p.name],
4776
4786
  obj: {
4777
- ...w[h.name].obj,
4787
+ ...S[p.name].obj,
4778
4788
  k: x.obj.k
4779
4789
  }
4780
4790
  }
@@ -4791,7 +4801,7 @@ const Ge = (r, e, t) => ({
4791
4801
  };
4792
4802
  return {
4793
4803
  ...d,
4794
- [h.name]: g
4804
+ [p.name]: g
4795
4805
  };
4796
4806
  }, {});
4797
4807
  },
@@ -4820,10 +4830,10 @@ const Ge = (r, e, t) => ({
4820
4830
  onClick: a,
4821
4831
  onEnter: i,
4822
4832
  onClose: o,
4823
- loadOptions: c
4833
+ loadOptions: f
4824
4834
  }) => {
4825
- var R, S;
4826
- const [l, u] = Z(), [f, d] = Z(t ?? !0), h = ve(null), m = s.trim() ? s : "100vh", g = ye(
4835
+ var O, w;
4836
+ const [c, u] = Z(), [l, d] = Z(t ?? !0), p = ve(null), m = s.trim() ? s : "100vh", g = ye(
4827
4837
  (b) => {
4828
4838
  var C, Y;
4829
4839
  if (!((C = b == null ? void 0 : b.rows) != null && C.length) || !((Y = b == null ? void 0 : b.columns) != null && Y.length))
@@ -4831,14 +4841,14 @@ const Ge = (r, e, t) => ({
4831
4841
  const k = b.rows[0];
4832
4842
  return b.columns.filter((j) => j.visible ?? !0).reduce((j, P) => {
4833
4843
  const D = k.cells[P.name];
4834
- if (!D || !f && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
4844
+ if (!D || !l && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
4835
4845
  return j;
4836
4846
  const _ = {
4837
4847
  ...D,
4838
4848
  onChange: (U) => {
4839
4849
  u((H) => {
4840
- const q = { ...H };
4841
- return q != null && q[P.name] && (q[P.name].obj.k = U.obj.k), q;
4850
+ const K = { ...H };
4851
+ return K != null && K[P.name] && (K[P.name].obj.k = U.obj.k), K;
4842
4852
  });
4843
4853
  },
4844
4854
  onClick: (U) => {
@@ -4848,9 +4858,9 @@ const Ge = (r, e, t) => ({
4848
4858
  i && i(U);
4849
4859
  }
4850
4860
  };
4851
- return c && D.shape == ne.BUTTON_LIST && (_.onOptionsRequest = (U, H) => c(U, H).then(
4852
- (q) => ss(q)
4853
- )), !f && ce(n) && (_.data = {
4861
+ return f && D.shape == ne.BUTTON_LIST && (_.onOptionsRequest = (U, H) => f(U, H).then(
4862
+ (K) => ss(K)
4863
+ )), !l && ce(n) && (_.data = {
4854
4864
  ..._.data,
4855
4865
  showText: !1,
4856
4866
  justify: "center"
@@ -4860,42 +4870,42 @@ const Ge = (r, e, t) => ({
4860
4870
  };
4861
4871
  }, {});
4862
4872
  },
4863
- [f, n, a, i, c]
4873
+ [l, n, a, i, f]
4864
4874
  ), x = ye(() => {
4865
4875
  o == null || o();
4866
- }, [o]), w = () => {
4876
+ }, [o]), S = () => {
4867
4877
  ce(n) ? d((b) => !b) : (d(!1), o == null || o());
4868
4878
  };
4869
4879
  if (oe(() => {
4870
4880
  u(g(r));
4871
4881
  }, [r]), oe(() => {
4872
- if (!h.current)
4882
+ if (!p.current)
4873
4883
  return;
4874
4884
  if (!ce(n)) {
4875
4885
  u(g(r));
4876
4886
  return;
4877
4887
  }
4878
- const b = getComputedStyle(h.current).getPropertyValue(
4888
+ const b = getComputedStyle(p.current).getPropertyValue(
4879
4889
  "--smp-drawer-slide-transition"
4880
4890
  );
4881
4891
  let k = Number(b);
4882
4892
  b.endsWith("ms") ? k = parseFloat(b) : b.endsWith("s") && (k = parseFloat(b) * 1e3), setTimeout(() => {
4883
4893
  u(g(r));
4884
4894
  }, k / 2);
4885
- }, [f, n]), oe(() => {
4895
+ }, [l, n]), oe(() => {
4886
4896
  t !== void 0 && !ce(n) && d(t);
4887
- }, [n, t]), !((R = r == null ? void 0 : r.rows) != null && R.length) || !((S = r.columns) != null && S.length))
4897
+ }, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((w = r.columns) != null && w.length))
4888
4898
  return null;
4889
4899
  const E = {
4890
- drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!ce(n) && !f ? "smp-drawer-no-border" : ""}`,
4900
+ drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${l ? "smp-drawer-open" : ""} ${!ce(n) && !l ? "smp-drawer-no-border" : ""}`,
4891
4901
  container: "smp-drawer-container",
4892
4902
  containerHeader: "smp-drawer-container-header",
4893
- containerIcon: `${f ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
4903
+ containerIcon: `${l ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
4894
4904
  containerLayout: "smp-drawer-container-layout",
4895
4905
  containerLogo: "smp-drawer-container-logo",
4896
- backdrop: `smp-drawer-backdrop ${f ? "smp-drawer-backdrop-open" : ""}`
4906
+ backdrop: `smp-drawer-backdrop ${l ? "smp-drawer-backdrop-open" : ""}`
4897
4907
  };
4898
- return l && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4908
+ return c && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4899
4909
  !ce(n) && /* @__PURE__ */ v.jsx(
4900
4910
  "div",
4901
4911
  {
@@ -4908,7 +4918,7 @@ const Ge = (r, e, t) => ({
4908
4918
  /* @__PURE__ */ v.jsx(
4909
4919
  "aside",
4910
4920
  {
4911
- ref: h,
4921
+ ref: p,
4912
4922
  className: E.drawer,
4913
4923
  style: { height: m },
4914
4924
  "aria-label": "Drawer",
@@ -4929,15 +4939,15 @@ const Ge = (r, e, t) => ({
4929
4939
  {
4930
4940
  icon: ce(n) ? "menu_close" : "close",
4931
4941
  title: "drawer_icon",
4932
- rotated: !f,
4942
+ rotated: !l,
4933
4943
  isInteractable: !0,
4934
- onClick: w,
4944
+ onClick: S,
4935
4945
  width: 20,
4936
4946
  height: 20
4937
4947
  }
4938
4948
  ) })
4939
4949
  ] }),
4940
- /* @__PURE__ */ v.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: l }) })
4950
+ /* @__PURE__ */ v.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: c }) })
4941
4951
  ] })
4942
4952
  }
4943
4953
  )
@@ -4951,22 +4961,22 @@ const Ge = (r, e, t) => ({
4951
4961
  Fillspace: a,
4952
4962
  FontSize: i,
4953
4963
  Horizontal: o,
4954
- ForceIcon: c,
4955
- IconColName: l,
4964
+ ForceIcon: f,
4965
+ IconColName: c,
4956
4966
  IconColor: u = "var(--smp-dashList-color-base)",
4957
- NumberFormat: f,
4967
+ NumberFormat: l,
4958
4968
  ForceUM: d,
4959
- UmColName: h,
4969
+ UmColName: p,
4960
4970
  UmColor: m = "var(--smp-dashList-color-base)",
4961
4971
  ForceValue: g,
4962
4972
  ValueColName: x,
4963
- ValueColor: w = "var(--smp-dashList-color-base)",
4973
+ ValueColor: S = "var(--smp-dashList-color-base)",
4964
4974
  SelectLayout: E = "1",
4965
- onClick: R
4975
+ onClick: O
4966
4976
  }) => {
4967
- const S = "N/A", b = (e == null ? void 0 : e.columns) || [], k = (e == null ? void 0 : e.rows) || [], C = k.length > 0, Y = "--smp-dashList-color", j = "smp-layout", P = "descr", D = "icon", _ = "um", U = "value", H = i || "1em", q = "18px", K = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
4977
+ const w = "N/A", b = (e == null ? void 0 : e.columns) || [], k = (e == null ? void 0 : e.rows) || [], C = k.length > 0, Y = "--smp-dashList-color", j = "smp-layout", P = "descr", D = "icon", _ = "um", U = "value", H = i || "1em", K = "18px", z = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
4968
4978
  dash: (V = "1") => {
4969
- const X = p(V), te = X, re = y(X, P), de = y(X, D), be = y(X, _), he = y(X, U);
4979
+ const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X, _), he = y(X, U);
4970
4980
  return {
4971
4981
  container: te,
4972
4982
  descr: re,
@@ -4977,7 +4987,7 @@ const Ge = (r, e, t) => ({
4977
4987
  },
4978
4988
  dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
4979
4989
  ${ce(o) ? "smp-dash-list-horizontal" : ""}`
4980
- }, { format: L } = nt(), p = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
4990
+ }, { format: L } = nt(), h = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
4981
4991
  const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
4982
4992
  if (X.test(V)) {
4983
4993
  const re = V.match(X) || [];
@@ -4985,9 +4995,9 @@ const Ge = (r, e, t) => ({
4985
4995
  return "rgb(" + re[1] + "," + re[2] + "," + re[3] + ")";
4986
4996
  }
4987
4997
  return V;
4988
- }, O = (V) => {
4989
- if (!f) return V;
4990
- const [X, te] = A(f).map(
4998
+ }, R = (V) => {
4999
+ if (!l) return V;
5000
+ const [X, te] = A(l).map(
4991
5001
  (Te) => parseInt(Te || "0")
4992
5002
  ), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = L(V, re, "it");
4993
5003
  if (!X) return de;
@@ -5005,12 +5015,12 @@ const Ge = (r, e, t) => ({
5005
5015
  };
5006
5016
  return {
5007
5017
  descr: t || X(n) || te(2) || "",
5008
- icon: c || X(l) || te(3) || "",
5009
- um: d || X(h) || te(1) || "",
5018
+ icon: f || X(c) || te(3) || "",
5019
+ um: d || X(p) || te(1) || "",
5010
5020
  value: g || X(x) || te(0) || ""
5011
5021
  };
5012
5022
  }, F = (V) => {
5013
- R == null || R(V);
5023
+ O == null || O(V);
5014
5024
  }, N = (V, X) => {
5015
5025
  (V.key === "Enter" || V.key === " ") && (V.preventDefault(), V.stopPropagation(), F(X));
5016
5026
  }, B = ((V) => {
@@ -5022,9 +5032,9 @@ const Ge = (r, e, t) => ({
5022
5032
  ue,
5023
5033
  {
5024
5034
  color: u,
5025
- height: q,
5035
+ height: K,
5026
5036
  icon: te,
5027
- width: q
5037
+ width: K
5028
5038
  }
5029
5039
  ) }, `${V}-${D}`),
5030
5040
  um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${_}`),
@@ -5034,8 +5044,8 @@ const Ge = (r, e, t) => ({
5034
5044
  const { descr: X, icon: te, um: re, value: de } = M(V), be = {
5035
5045
  [T(P)]: $(s),
5036
5046
  [T(_)]: $(m),
5037
- [T(U)]: $(w)
5038
- }, he = [], Te = O(de);
5047
+ [T(U)]: $(S)
5048
+ }, he = [], Te = R(de);
5039
5049
  switch (E) {
5040
5050
  case "2":
5041
5051
  te && he.push(B.icon(te)), he.push(B.descr(X)), he.push(
@@ -5062,10 +5072,10 @@ const Ge = (r, e, t) => ({
5062
5072
  V.rowId
5063
5073
  );
5064
5074
  }, I = {
5065
- [K]: String(r),
5075
+ [z]: String(r),
5066
5076
  [J]: H
5067
5077
  };
5068
- return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? k.map((V) => se(V)) : S });
5078
+ return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? k.map((V) => se(V)) : w });
5069
5079
  }, pt = {
5070
5080
  "smp-table": "_smp-table_8dmh0_1",
5071
5081
  "smp-headerCell": "_smp-headerCell_8dmh0_35",
@@ -5079,11 +5089,11 @@ const Ge = (r, e, t) => ({
5079
5089
  cell: us,
5080
5090
  leftSection: fs
5081
5091
  };
5082
- function Ke(r) {
5092
+ function ze(r) {
5083
5093
  return !!r && "children" in r;
5084
5094
  }
5085
5095
  function ds(r) {
5086
- return !Ke(r);
5096
+ return !ze(r);
5087
5097
  }
5088
5098
  function ps(r) {
5089
5099
  return JSON.stringify(r).split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0).toString();
@@ -5096,14 +5106,14 @@ const Dr = ({
5096
5106
  offsetTop: s
5097
5107
  }) => {
5098
5108
  var E;
5099
- const [a, i] = Z(!1), o = Ke(r) && !!((E = r.children) != null && E.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, u = t * 20, f = () => {
5109
+ const [a, i] = Z(!1), o = ze(r) && !!((E = r.children) != null && E.length), f = r.cells && Object.keys(r.cells).length > 0, c = o, u = t * 20, l = () => {
5100
5110
  o && i(!a);
5101
5111
  }, d = {
5102
5112
  content: `${we.rowContent} ${o ? we.clickable : ""}`,
5103
5113
  toggle: `${we.toggle}`,
5104
5114
  indent: `${we.indent}`,
5105
5115
  cell: `${we.cell}`
5106
- }, h = (R) => /* @__PURE__ */ v.jsx(Ot, { ...R }), m = () => /* @__PURE__ */ v.jsx("span", { className: d.toggle, children: l ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
5116
+ }, p = (O) => /* @__PURE__ */ v.jsx(Ot, { ...O }), m = () => /* @__PURE__ */ v.jsx("span", { className: d.toggle, children: c ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
5107
5117
  "span",
5108
5118
  {
5109
5119
  className: d.indent,
@@ -5111,21 +5121,21 @@ const Dr = ({
5111
5121
  "aria-hidden": "true"
5112
5122
  }
5113
5123
  ), x = () => {
5114
- const R = ds(r) ? "" : r.decode || (c ? "" : "Untitled"), S = s ?? n * t;
5124
+ const O = ds(r) ? "" : r.decode || (f ? "" : "Untitled"), w = s ?? n * t;
5115
5125
  return /* @__PURE__ */ v.jsxs(
5116
5126
  "tr",
5117
5127
  {
5118
5128
  className: d.content,
5119
- onClick: f,
5129
+ onClick: l,
5120
5130
  role: o ? "button" : "row",
5121
5131
  "aria-expanded": o ? !a : void 0,
5122
5132
  style: {
5123
5133
  height: `${n}px`,
5124
5134
  lineHeight: `calc(${n}px - 2*2px)`,
5125
- transform: `translateY(${S}px)`
5135
+ transform: `translateY(${w}px)`
5126
5136
  },
5127
5137
  children: [
5128
- Ke(r) && /* @__PURE__ */ v.jsxs(
5138
+ ze(r) && /* @__PURE__ */ v.jsxs(
5129
5139
  "td",
5130
5140
  {
5131
5141
  className: we.leftSection,
@@ -5135,7 +5145,7 @@ const Dr = ({
5135
5145
  children: [
5136
5146
  g(),
5137
5147
  m(),
5138
- /* @__PURE__ */ v.jsx("span", { className: we.rowLabel, children: R })
5148
+ /* @__PURE__ */ v.jsx("span", { className: we.rowLabel, children: O })
5139
5149
  ]
5140
5150
  }
5141
5151
  ),
@@ -5148,20 +5158,20 @@ const Dr = ({
5148
5158
  minWidth: e[b],
5149
5159
  height: `${n}px`
5150
5160
  },
5151
- children: h(k)
5161
+ children: p(k)
5152
5162
  },
5153
5163
  ps(k) || b
5154
5164
  ))
5155
5165
  ]
5156
5166
  }
5157
5167
  );
5158
- }, w = () => {
5159
- var R;
5160
- return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: Ke(r) && ((R = r.children) == null ? void 0 : R.map((S, b) => /* @__PURE__ */ v.jsx(Dr, { row: S, level: t + 1 }, `child-${b}`))) });
5168
+ }, S = () => {
5169
+ var O;
5170
+ return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: ze(r) && ((O = r.children) == null ? void 0 : O.map((w, b) => /* @__PURE__ */ v.jsx(Dr, { row: w, level: t + 1 }, `child-${b}`))) });
5161
5171
  };
5162
5172
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
5163
5173
  x(),
5164
- w()
5174
+ S()
5165
5175
  ] });
5166
5176
  }, hs = ({
5167
5177
  label: r,
@@ -5225,41 +5235,41 @@ function ys(r, e, t, n) {
5225
5235
  const s = [];
5226
5236
  let a = 0;
5227
5237
  return i(r, 0, []), { flatRows: s, offset: a };
5228
- function i(f, d, h) {
5238
+ function i(l, d, p) {
5229
5239
  if (d >= e.length) {
5230
- u(f);
5240
+ u(l);
5231
5241
  return;
5232
5242
  }
5233
- const m = e[d].column, g = o(f, m);
5234
- for (const [x, w] of g) {
5235
- const E = [...h, x], R = c(E, d), S = n.has(R);
5236
- s.push(l(x, R, d, S)), a += t, S && i(w, d + 1, E);
5243
+ const m = e[d].column, g = o(l, m);
5244
+ for (const [x, S] of g) {
5245
+ const E = [...p, x], O = f(E, d), w = n.has(O);
5246
+ s.push(c(x, O, d, w)), a += t, w && i(S, d + 1, E);
5237
5247
  }
5238
5248
  }
5239
- function o(f, d) {
5249
+ function o(l, d) {
5240
5250
  var m;
5241
- const h = /* @__PURE__ */ new Map();
5242
- for (const g of f) {
5251
+ const p = /* @__PURE__ */ new Map();
5252
+ for (const g of l) {
5243
5253
  const x = ((m = g.cells[d]) == null ? void 0 : m.decode) ?? "N/D";
5244
- h.has(x) || h.set(x, []), h.get(x).push(g);
5254
+ p.has(x) || p.set(x, []), p.get(x).push(g);
5245
5255
  }
5246
- return h;
5256
+ return p;
5247
5257
  }
5248
- function c(f, d) {
5249
- return `group-${f.join("-")}-${d}`;
5258
+ function f(l, d) {
5259
+ return `group-${l.join("-")}-${d}`;
5250
5260
  }
5251
- function l(f, d, h, m) {
5261
+ function c(l, d, p, m) {
5252
5262
  return {
5253
5263
  isGroup: !0,
5254
- value: f,
5264
+ value: l,
5255
5265
  cells: {},
5256
5266
  rowId: d,
5257
- level: h,
5267
+ level: p,
5258
5268
  isExpanded: m
5259
5269
  };
5260
5270
  }
5261
- function u(f) {
5262
- for (const d of f)
5271
+ function u(l) {
5272
+ for (const d of l)
5263
5273
  s.push(d), a += t;
5264
5274
  }
5265
5275
  }
@@ -5306,10 +5316,10 @@ const vs = ({
5306
5316
  showGroupBar: a = !0
5307
5317
  }) => {
5308
5318
  var Y;
5309
- const [i, o] = Z(r), [c, l] = Z(n || []), [u, f] = Z(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
5319
+ const [i, o] = Z(r), [f, c] = Z(n || []), [u, l] = Z(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
5310
5320
  i.columns.map((j) => [j.name, 120])
5311
5321
  // ADD col.width to manage existing col width
5312
- ) : {}, [h, m] = Z(d), g = ve(null);
5322
+ ) : {}, [p, m] = Z(d), g = ve(null);
5313
5323
  oe(() => {
5314
5324
  var D;
5315
5325
  if (!i || !i.columns || i.columns.length)
@@ -5335,14 +5345,14 @@ const vs = ({
5335
5345
  const U = Math.max(
5336
5346
  ...r.rows.map((W) => {
5337
5347
  var y;
5338
- const L = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[_.name], p = (L == null ? void 0 : L.decode) || (L == null ? void 0 : L.value);
5339
- return p ? String(p).length : 0;
5348
+ const L = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[_.name], h = (L == null ? void 0 : L.decode) || (L == null ? void 0 : L.value);
5349
+ return h ? String(h).length : 0;
5340
5350
  }),
5341
5351
  0
5342
- ), H = _.title ? _.title.length : 0, q = Math.max(U, H);
5352
+ ), H = _.title ? _.title.length : 0, K = Math.max(U, H);
5343
5353
  return [
5344
5354
  _.name,
5345
- Math.max(50, q * 8 + 16)
5355
+ Math.max(50, K * 8 + 16)
5346
5356
  ];
5347
5357
  })
5348
5358
  );
@@ -5350,36 +5360,36 @@ const vs = ({
5350
5360
  }
5351
5361
  m(P);
5352
5362
  }, [s, r, i]), oe(() => {
5353
- if (c != null && c.length && r.rows) {
5363
+ if (f != null && f.length && r.rows) {
5354
5364
  const { flatRows: j } = ys(
5355
5365
  r.rows,
5356
- c,
5366
+ f,
5357
5367
  e,
5358
5368
  u
5359
5369
  );
5360
5370
  o({ ...r, rows: j });
5361
5371
  } else
5362
5372
  o(r);
5363
- }, [r, c, u, e]);
5373
+ }, [r, f, u, e]);
5364
5374
  const x = (j) => {
5365
- l(gs(j, c));
5366
- }, w = (j) => {
5375
+ c(gs(j, f));
5376
+ }, S = (j) => {
5367
5377
  j.preventDefault();
5368
5378
  const P = j.dataTransfer.getData("text/plain");
5369
- if (!P || c.some((U) => U.column === P))
5379
+ if (!P || f.some((U) => U.column === P))
5370
5380
  return;
5371
- const _ = [...c, { column: P, visible: !0 }];
5372
- l(_);
5381
+ const _ = [...f, { column: P, visible: !0 }];
5382
+ c(_);
5373
5383
  }, E = (j) => {
5374
5384
  j.preventDefault();
5375
- }, { virtualItems: R, containerProps: S, innerProps: b } = xr({
5385
+ }, { virtualItems: O, containerProps: w, innerProps: b } = xr({
5376
5386
  items: (i == null ? void 0 : i.rows) || [],
5377
5387
  itemHeight: e,
5378
5388
  containerHeight: t,
5379
5389
  overscan: 5
5380
5390
  }), k = (j, P) => {
5381
- const D = j.clientX, _ = h[P], U = (q) => {
5382
- const K = q.clientX - D, J = Math.max(50, _ + K);
5391
+ const D = j.clientX, _ = p[P], U = (K) => {
5392
+ const z = K.clientX - D, J = Math.max(50, _ + z);
5383
5393
  m((W) => ({
5384
5394
  ...W,
5385
5395
  [P]: J
@@ -5397,16 +5407,16 @@ const vs = ({
5397
5407
  "div",
5398
5408
  {
5399
5409
  className: C.smpTable,
5400
- ...S,
5410
+ ...w,
5401
5411
  ref: g,
5402
5412
  children: /* @__PURE__ */ v.jsxs("table", { children: [
5403
5413
  /* @__PURE__ */ v.jsxs("thead", { children: [
5404
5414
  (n || a) && /* @__PURE__ */ v.jsx(
5405
5415
  vs,
5406
5416
  {
5407
- groups: c,
5417
+ groups: f,
5408
5418
  onChange: x,
5409
- onDrop: w,
5419
+ onDrop: S,
5410
5420
  onDragOver: E
5411
5421
  }
5412
5422
  ),
@@ -5420,9 +5430,9 @@ const vs = ({
5420
5430
  P.dataTransfer.setData("text/plain", j.name);
5421
5431
  },
5422
5432
  style: {
5423
- width: h[j.name],
5424
- minWidth: h[j.name],
5425
- maxWidth: h[j.name]
5433
+ width: p[j.name],
5434
+ minWidth: p[j.name],
5435
+ maxWidth: p[j.name]
5426
5436
  },
5427
5437
  children: [
5428
5438
  /* @__PURE__ */ v.jsx(
@@ -5446,7 +5456,7 @@ const vs = ({
5446
5456
  )
5447
5457
  )) })
5448
5458
  ] }),
5449
- /* @__PURE__ */ v.jsx("tbody", { ...b, children: R.map(
5459
+ /* @__PURE__ */ v.jsx("tbody", { ...b, children: O.map(
5450
5460
  ({ item: j, index: P, offsetTop: D }) => j.isGroup ? /* @__PURE__ */ v.jsx(
5451
5461
  hs,
5452
5462
  {
@@ -5456,7 +5466,7 @@ const vs = ({
5456
5466
  level: j.level,
5457
5467
  onClick: () => {
5458
5468
  const _ = j.rowId;
5459
- _ && f((U) => ms(U, _));
5469
+ _ && l((U) => ms(U, _));
5460
5470
  },
5461
5471
  isExpanded: j.isExpanded
5462
5472
  },
@@ -5465,7 +5475,7 @@ const vs = ({
5465
5475
  Dr,
5466
5476
  {
5467
5477
  row: j,
5468
- columnWidths: h,
5478
+ columnWidths: p,
5469
5479
  rowHeight: e,
5470
5480
  offsetTop: D,
5471
5481
  isGroup: !1
@@ -5486,25 +5496,25 @@ const vs = ({
5486
5496
  Label: a,
5487
5497
  LabelPosition: i = "Left",
5488
5498
  onBlur: o,
5489
- onClick: c,
5490
- onOptionsRequest: l
5499
+ onClick: f,
5500
+ onOptionsRequest: c
5491
5501
  }) => {
5492
- const [u, f] = Z();
5502
+ const [u, l] = Z();
5493
5503
  oe(() => {
5494
- f(() => {
5504
+ l(() => {
5495
5505
  if (!r)
5496
5506
  return;
5497
5507
  const g = { ...r };
5498
5508
  return e && (g.shape = e), g.shape == null && (g.shape = ne.TEXT_FIELD), s && (g.obj = Nr(s)), g;
5499
5509
  });
5500
5510
  }, [r, s, e]);
5501
- const h = {
5511
+ const p = {
5502
5512
  container: `smp-field-container ${ce(t) ? `smp-field-position-${n}` : ""}`
5503
5513
  }, m = () => {
5504
5514
  ce(t) || o == null || o(u);
5505
5515
  };
5506
5516
  if (u)
5507
- return /* @__PURE__ */ v.jsxs("div", { className: h.container, children: [
5517
+ return /* @__PURE__ */ v.jsxs("div", { className: p.container, children: [
5508
5518
  /* @__PURE__ */ v.jsx(
5509
5519
  "div",
5510
5520
  {
@@ -5518,8 +5528,8 @@ const vs = ({
5518
5528
  Ot,
5519
5529
  {
5520
5530
  ...u,
5521
- onChange: f,
5522
- onOptionsRequest: l,
5531
+ onChange: l,
5532
+ onOptionsRequest: c,
5523
5533
  fun: r == null ? void 0 : r.fun,
5524
5534
  onBlur: m,
5525
5535
  label: a,
@@ -5533,7 +5543,7 @@ const vs = ({
5533
5543
  De,
5534
5544
  {
5535
5545
  optionalDisplayValue: "Confirm",
5536
- onClick: () => c == null ? void 0 : c(u),
5546
+ onClick: () => f == null ? void 0 : f(u),
5537
5547
  bindValue: "Confirm"
5538
5548
  }
5539
5549
  )
@@ -5541,65 +5551,66 @@ const vs = ({
5541
5551
  }, js = ({
5542
5552
  data: r,
5543
5553
  readOnly: e = !1,
5544
- optionsHandler: t,
5545
- onSubmit: n
5554
+ hiddenSubmitButton: t = !1,
5555
+ optionsHandler: n,
5556
+ onSubmit: s
5546
5557
  }) => {
5547
- const [s, a] = Z({});
5558
+ const [a, i] = Z({});
5548
5559
  oe(() => {
5549
- a(o(r));
5560
+ i(f(r));
5550
5561
  }, [r]);
5551
- const i = () => {
5552
- const l = c();
5553
- n({
5554
- value: l
5562
+ const o = () => {
5563
+ const u = c();
5564
+ s({
5565
+ value: u
5555
5566
  });
5556
- }, o = (l) => {
5557
- var f, d, h;
5558
- if (!((f = l.rows) != null && f.length) || !((d = l.columns) != null && d.length))
5567
+ }, f = (u) => {
5568
+ var d, p, m;
5569
+ if (!((d = u.rows) != null && d.length) || !((p = u.columns) != null && p.length))
5559
5570
  return {};
5560
- const u = (h = l.rows) == null ? void 0 : h[0];
5561
- return l.columns.filter((m) => m.visible ?? !0).reduce((m, g) => {
5562
- const x = {
5563
- ...u.cells[g.name],
5564
- label: g.title,
5565
- onChange: (w) => {
5566
- a((E) => ({
5567
- ...E,
5568
- [g.name]: {
5569
- ...E[g.name],
5571
+ const l = (m = u.rows) == null ? void 0 : m[0];
5572
+ return u.columns.filter((g) => g.visible ?? !0).reduce((g, x) => {
5573
+ const S = {
5574
+ ...l.cells[x.name],
5575
+ label: x.title,
5576
+ onChange: (E) => {
5577
+ i((O) => ({
5578
+ ...O,
5579
+ [x.name]: {
5580
+ ...O[x.name],
5570
5581
  obj: {
5571
- ...E[g.name].obj,
5572
- k: w.obj.k
5582
+ ...O[x.name].obj,
5583
+ k: E.obj.k
5573
5584
  },
5574
- decode: w.decode
5585
+ decode: E.decode
5575
5586
  }
5576
5587
  }));
5577
5588
  }
5578
5589
  };
5579
- return x.fun && (x.shape == ne.AUTOCOMPLETE || x.shape == ne.MULTI_AUTOCOMPLETE || x.shape == ne.COMBOBOX) && (x.onOptionsRequest = (w, E) => t(w, E, r, g.name)), x.isEditable == null && (x.isEditable = !0), e && (x.isEditable = !1), x.isEditable && x.shape == null && (x.shape = ne.TEXT_FIELD), {
5580
- ...m,
5581
- [g.name]: x
5590
+ return S.fun && (S.shape == ne.AUTOCOMPLETE || S.shape == ne.MULTI_AUTOCOMPLETE || S.shape == ne.COMBOBOX) && (S.onOptionsRequest = (E, O) => n(E, O, r, x.name)), S.isEditable == null && (S.isEditable = !0), e && (S.isEditable = !1), S.isEditable && S.shape == null && (S.shape = ne.TEXT_FIELD), {
5591
+ ...g,
5592
+ [x.name]: S
5582
5593
  };
5583
5594
  }, {});
5584
5595
  }, c = () => {
5585
- const l = {
5596
+ const u = {
5586
5597
  columns: [...r.columns],
5587
5598
  rows: [{ cells: {} }]
5588
5599
  };
5589
- return Object.entries(s).forEach(([u, f]) => {
5590
- l.rows[0].cells[u] = {
5600
+ return Object.entries(a).forEach(([l, d]) => {
5601
+ u.rows[0].cells[l] = {
5591
5602
  obj: {
5592
- ...f.obj
5603
+ ...d.obj
5593
5604
  },
5594
- decode: f.decode,
5595
- shape: f.shape
5605
+ decode: d.decode,
5606
+ shape: d.shape
5596
5607
  };
5597
5608
  }), {
5598
5609
  before: r,
5599
- after: l
5610
+ after: u
5600
5611
  };
5601
5612
  };
5602
- return s && /* @__PURE__ */ v.jsxs(
5613
+ return a && /* @__PURE__ */ v.jsxs(
5603
5614
  "div",
5604
5615
  {
5605
5616
  "data-component": "input-panel",
@@ -5610,11 +5621,11 @@ const vs = ({
5610
5621
  padding: "2rem"
5611
5622
  },
5612
5623
  children: [
5613
- /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: s }),
5614
- /* @__PURE__ */ v.jsx(
5624
+ /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: a }),
5625
+ !t && /* @__PURE__ */ v.jsx(
5615
5626
  De,
5616
5627
  {
5617
- onClick: i,
5628
+ onClick: o,
5618
5629
  bindValue: "submit",
5619
5630
  optionalDisplayValue: "Submit"
5620
5631
  }