@sme.up/ketchup2 2.0.0-SNAPSHOT-20250630152637 → 2.0.0-SNAPSHOT-20250701082850

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.
@@ -52,7 +52,7 @@ function Kr() {
52
52
  function r(h) {
53
53
  if (h == null) return null;
54
54
  if (typeof h == "function")
55
- return h.$$typeof === _ ? null : h.displayName || h.name || null;
55
+ return h.$$typeof === R ? null : h.displayName || h.name || null;
56
56
  if (typeof h == "string") return h;
57
57
  switch (h) {
58
58
  case y:
@@ -61,11 +61,11 @@ function Kr() {
61
61
  return "Profiler";
62
62
  case S:
63
63
  return "StrictMode";
64
- case b:
64
+ case v:
65
65
  return "Suspense";
66
- case R:
66
+ case D:
67
67
  return "SuspenseList";
68
- case v:
68
+ case b:
69
69
  return "Activity";
70
70
  }
71
71
  if (typeof h == "object")
@@ -81,7 +81,7 @@ function Kr() {
81
81
  case O:
82
82
  var x = h.render;
83
83
  return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
84
- case N:
84
+ case k:
85
85
  return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
86
86
  case C:
87
87
  x = h._payload, h = h._init;
@@ -104,11 +104,11 @@ function Kr() {
104
104
  }
105
105
  if (x) {
106
106
  x = console;
107
- var D = x.error, L = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
108
- return D.call(
107
+ var _ = x.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
108
+ return _.call(
109
109
  x,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
- L
111
+ $
112
112
  ), e(h);
113
113
  }
114
114
  }
@@ -124,45 +124,45 @@ function Kr() {
124
124
  }
125
125
  }
126
126
  function s() {
127
- var h = k.A;
127
+ var h = N.A;
128
128
  return h === null ? null : h.getOwner();
129
129
  }
130
130
  function a() {
131
131
  return Error("react-stack-top-frame");
132
132
  }
133
133
  function i(h) {
134
- if ($.call(h, "key")) {
134
+ if (L.call(h, "key")) {
135
135
  var x = Object.getOwnPropertyDescriptor(h, "key").get;
136
136
  if (x && x.isReactWarning) return !1;
137
137
  }
138
138
  return h.key !== void 0;
139
139
  }
140
140
  function o(h, x) {
141
- function D() {
142
- A || (A = !0, console.error(
141
+ function _() {
142
+ I || (I = !0, console.error(
143
143
  "%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)",
144
144
  x
145
145
  ));
146
146
  }
147
- D.isReactWarning = !0, Object.defineProperty(h, "key", {
148
- get: D,
147
+ _.isReactWarning = !0, Object.defineProperty(h, "key", {
148
+ get: _,
149
149
  configurable: !0
150
150
  });
151
151
  }
152
152
  function l() {
153
153
  var h = r(this.type);
154
- return V[h] || (V[h] = !0, console.error(
154
+ return F[h] || (F[h] = !0, console.error(
155
155
  "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."
156
156
  )), h = this.props.ref, h !== void 0 ? h : null;
157
157
  }
158
- function c(h, x, D, L, j, P, W, B) {
159
- return D = P.ref, h = {
158
+ function c(h, x, _, $, j, P, U, B) {
159
+ return _ = P.ref, h = {
160
160
  $$typeof: m,
161
161
  type: h,
162
162
  key: x,
163
163
  props: P,
164
164
  _owner: j
165
- }, (D !== void 0 ? D : null) !== null ? Object.defineProperty(h, "ref", {
165
+ }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(h, "ref", {
166
166
  enumerable: !1,
167
167
  get: l
168
168
  }) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
@@ -179,7 +179,7 @@ function Kr() {
179
179
  configurable: !1,
180
180
  enumerable: !1,
181
181
  writable: !0,
182
- value: W
182
+ value: U
183
183
  }), Object.defineProperty(h, "_debugTask", {
184
184
  configurable: !1,
185
185
  enumerable: !1,
@@ -187,60 +187,60 @@ function Kr() {
187
187
  value: B
188
188
  }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
189
189
  }
190
- function f(h, x, D, L, j, P, W, B) {
191
- var U = x.children;
192
- if (U !== void 0)
193
- if (L)
194
- if (I(U)) {
195
- for (L = 0; L < U.length; L++)
196
- u(U[L]);
197
- Object.freeze && Object.freeze(U);
190
+ function f(h, x, _, $, j, P, U, B) {
191
+ var W = x.children;
192
+ if (W !== void 0)
193
+ if ($)
194
+ if (A(W)) {
195
+ for ($ = 0; $ < W.length; $++)
196
+ u(W[$]);
197
+ Object.freeze && Object.freeze(W);
198
198
  } else
199
199
  console.error(
200
200
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
201
  );
202
- else u(U);
203
- if ($.call(x, "key")) {
204
- U = r(h);
202
+ else u(W);
203
+ if (L.call(x, "key")) {
204
+ W = r(h);
205
205
  var X = Object.keys(x).filter(function(ae) {
206
206
  return ae !== "key";
207
207
  });
208
- L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[U + L] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ $ = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[W + $] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
209
209
  `A props object containing a "key" prop is being spread into JSX:
210
210
  let props = %s;
211
211
  <%s {...props} />
212
212
  React keys must be passed directly to JSX without using spread:
213
213
  let props = %s;
214
214
  <%s key={someKey} {...props} />`,
215
- L,
216
- U,
215
+ $,
216
+ W,
217
217
  X,
218
- U
219
- ), Y[U + L] = !0);
218
+ W
219
+ ), Y[W + $] = !0);
220
220
  }
221
- if (U = null, D !== void 0 && (t(D), U = "" + D), i(x) && (t(x.key), U = "" + x.key), "key" in x) {
222
- D = {};
223
- for (var q in x)
224
- q !== "key" && (D[q] = x[q]);
225
- } else D = x;
226
- return U && o(
227
- D,
221
+ if (W = null, _ !== void 0 && (t(_), W = "" + _), i(x) && (t(x.key), W = "" + x.key), "key" in x) {
222
+ _ = {};
223
+ for (var K in x)
224
+ K !== "key" && (_[K] = x[K]);
225
+ } else _ = x;
226
+ return W && o(
227
+ _,
228
228
  typeof h == "function" ? h.displayName || h.name || "Unknown" : h
229
229
  ), c(
230
230
  h,
231
- U,
231
+ W,
232
232
  P,
233
233
  j,
234
234
  s(),
235
- D,
236
- W,
235
+ _,
236
+ U,
237
237
  B
238
238
  );
239
239
  }
240
240
  function u(h) {
241
241
  typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
242
242
  }
243
- var p = at, m = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), v = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), k = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, I = Array.isArray, F = console.createTask ? console.createTask : function() {
243
+ var p = at, m = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), N = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, A = Array.isArray, V = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  p = {
@@ -248,33 +248,33 @@ React keys must be passed directly to JSX without using spread:
248
248
  return h();
249
249
  }
250
250
  };
251
- var A, V = {}, K = p["react-stack-bottom-frame"].bind(
251
+ var I, F = {}, z = p["react-stack-bottom-frame"].bind(
252
252
  p,
253
253
  a
254
- )(), J = F(n(a)), Y = {};
255
- Ye.Fragment = y, Ye.jsx = function(h, x, D, L, j) {
256
- var P = 1e4 > k.recentlyCreatedOwnerStacks++;
254
+ )(), J = V(n(a)), Y = {};
255
+ Ye.Fragment = y, Ye.jsx = function(h, x, _, $, j) {
256
+ var P = 1e4 > N.recentlyCreatedOwnerStacks++;
257
257
  return f(
258
258
  h,
259
259
  x,
260
- D,
260
+ _,
261
261
  !1,
262
- L,
262
+ $,
263
263
  j,
264
- P ? Error("react-stack-top-frame") : K,
265
- P ? F(n(h)) : J
264
+ P ? Error("react-stack-top-frame") : z,
265
+ P ? V(n(h)) : J
266
266
  );
267
- }, Ye.jsxs = function(h, x, D, L, j) {
268
- var P = 1e4 > k.recentlyCreatedOwnerStacks++;
267
+ }, Ye.jsxs = function(h, x, _, $, j) {
268
+ var P = 1e4 > N.recentlyCreatedOwnerStacks++;
269
269
  return f(
270
270
  h,
271
271
  x,
272
- D,
272
+ _,
273
273
  !0,
274
- L,
274
+ $,
275
275
  j,
276
- P ? Error("react-stack-top-frame") : K,
277
- P ? F(n(h)) : J
276
+ P ? Error("react-stack-top-frame") : z,
277
+ P ? V(n(h)) : J
278
278
  );
279
279
  };
280
280
  }()), Ye;
@@ -551,40 +551,40 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), Dr = function(e) {
551
551
  path: [],
552
552
  pattern: ["fill", "stroke"],
553
553
  radialGradient: ["fill", "stroke"]
554
- }, O, b, R, N, C;
554
+ }, O, v, D, k, C;
555
555
  Object.keys(w).forEach(function(J) {
556
- O = J, R = w[J], b = u.querySelectorAll(O + "[id]");
557
- for (var Y = function(L, j) {
558
- N = b[L].id, C = N + "-" + sn();
556
+ O = J, D = w[J], v = u.querySelectorAll(O + "[id]");
557
+ for (var Y = function($, j) {
558
+ k = v[$].id, C = k + "-" + sn();
559
559
  var P;
560
- Array.prototype.forEach.call(R, function(H) {
561
- P = u.querySelectorAll("[" + H + '*="' + N + '"]');
560
+ Array.prototype.forEach.call(D, function(H) {
561
+ P = u.querySelectorAll("[" + H + '*="' + k + '"]');
562
562
  for (var Z = 0, ne = P.length; Z < ne; Z++) {
563
563
  var se = P[Z].getAttribute(H);
564
- se && !se.match(new RegExp('url\\("?#' + N + '"?\\)')) || P[Z].setAttribute(H, "url(#" + C + ")");
564
+ se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || P[Z].setAttribute(H, "url(#" + C + ")");
565
565
  }
566
566
  });
567
- for (var W = u.querySelectorAll("[*|href]"), B = [], U = 0, X = W.length; U < X; U++) {
568
- var q = W[U].getAttributeNS(vt, "href");
569
- q && q.toString() === "#" + b[L].id && B.push(W[U]);
567
+ for (var U = u.querySelectorAll("[*|href]"), B = [], W = 0, X = U.length; W < X; W++) {
568
+ var K = U[W].getAttributeNS(vt, "href");
569
+ K && K.toString() === "#" + v[$].id && B.push(U[W]);
570
570
  }
571
571
  for (var ae = 0, M = B.length; ae < M; ae++)
572
572
  B[ae].setAttributeNS(vt, "href", "#" + C);
573
- b[L].id = C;
574
- }, h = 0, x = b.length; h < x; h++)
573
+ v[$].id = C;
574
+ }, h = 0, x = v.length; h < x; h++)
575
575
  Y(h);
576
576
  });
577
577
  }
578
578
  u.removeAttribute("xmlns:a");
579
- for (var v = u.querySelectorAll("script"), _ = [], k, $, I = 0, F = v.length; I < F; I++)
580
- $ = v[I].getAttribute("type"), (!$ || $ === "application/ecmascript" || $ === "application/javascript" || $ === "text/javascript") && (k = v[I].innerText || v[I].textContent, k && _.push(k), u.removeChild(v[I]));
581
- if (_.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
582
- for (var A = 0, V = _.length; A < V; A++)
583
- new Function(_[A])(window);
579
+ for (var b = u.querySelectorAll("script"), R = [], N, L, A = 0, V = b.length; A < V; A++)
580
+ L = b[A].getAttribute("type"), (!L || L === "application/ecmascript" || L === "application/javascript" || L === "text/javascript") && (N = b[A].innerText || b[A].textContent, N && R.push(N), u.removeChild(b[A]));
581
+ if (R.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
582
+ for (var I = 0, F = R.length; I < F; I++)
583
+ new Function(R[I])(window);
584
584
  Gt[l] = !0;
585
585
  }
586
- var K = u.querySelectorAll("style");
587
- if (Array.prototype.forEach.call(K, function(J) {
586
+ var z = u.querySelectorAll("style");
587
+ if (Array.prototype.forEach.call(z, function(J) {
588
588
  J.textContent += "";
589
589
  }), u.setAttribute("xmlns", an), u.setAttribute("xmlns:xlink", vt), i(u), !e.parentNode) {
590
590
  ve.splice(ve.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
@@ -599,11 +599,11 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), Dr = function(e) {
599
599
  } : l, f = n.cacheRequests, u = f === void 0 ? !0 : f, p = n.evalScripts, m = p === void 0 ? "never" : p, d = n.httpRequestWithCredentials, y = d === void 0 ? !1 : d, S = n.renumerateIRIElements, E = S === void 0 ? !0 : S;
600
600
  if (e && "length" in e)
601
601
  for (var T = 0, w = 0, O = e.length; w < O; w++)
602
- Kt(e[w], m, E, u, y, c, function(b, R) {
603
- o(b, R), e && "length" in e && e.length === ++T && a(T);
602
+ Kt(e[w], m, E, u, y, c, function(v, D) {
603
+ o(v, D), e && "length" in e && e.length === ++T && a(T);
604
604
  });
605
- else e ? Kt(e, m, E, u, y, c, function(b, R) {
606
- o(b, R), a(1), e = null;
605
+ else e ? Kt(e, m, E, u, y, c, function(v, D) {
606
+ o(v, D), a(1), e = null;
607
607
  }) : a(0);
608
608
  }, Je = { exports: {} }, Xe = { exports: {} }, Q = {};
609
609
  /** @license React v16.13.1
@@ -619,65 +619,65 @@ function ln() {
619
619
  if (qt) return Q;
620
620
  qt = 1;
621
621
  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, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, d = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, T = r ? Symbol.for("react.scope") : 60119;
622
- function w(b) {
623
- if (typeof b == "object" && b !== null) {
624
- var R = b.$$typeof;
625
- switch (R) {
622
+ function w(v) {
623
+ if (typeof v == "object" && v !== null) {
624
+ var D = v.$$typeof;
625
+ switch (D) {
626
626
  case e:
627
- switch (b = b.type, b) {
627
+ switch (v = v.type, v) {
628
628
  case l:
629
629
  case c:
630
630
  case n:
631
631
  case a:
632
632
  case s:
633
633
  case u:
634
- return b;
634
+ return v;
635
635
  default:
636
- switch (b = b && b.$$typeof, b) {
636
+ switch (v = v && v.$$typeof, v) {
637
637
  case o:
638
638
  case f:
639
639
  case d:
640
640
  case m:
641
641
  case i:
642
- return b;
642
+ return v;
643
643
  default:
644
- return R;
644
+ return D;
645
645
  }
646
646
  }
647
647
  case t:
648
- return R;
648
+ return D;
649
649
  }
650
650
  }
651
651
  }
652
- function O(b) {
653
- return w(b) === c;
654
- }
655
- return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = d, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(b) {
656
- return O(b) || w(b) === l;
657
- }, Q.isConcurrentMode = O, Q.isContextConsumer = function(b) {
658
- return w(b) === o;
659
- }, Q.isContextProvider = function(b) {
660
- return w(b) === i;
661
- }, Q.isElement = function(b) {
662
- return typeof b == "object" && b !== null && b.$$typeof === e;
663
- }, Q.isForwardRef = function(b) {
664
- return w(b) === f;
665
- }, Q.isFragment = function(b) {
666
- return w(b) === n;
667
- }, Q.isLazy = function(b) {
668
- return w(b) === d;
669
- }, Q.isMemo = function(b) {
670
- return w(b) === m;
671
- }, Q.isPortal = function(b) {
672
- return w(b) === t;
673
- }, Q.isProfiler = function(b) {
674
- return w(b) === a;
675
- }, Q.isStrictMode = function(b) {
676
- return w(b) === s;
677
- }, Q.isSuspense = function(b) {
678
- return w(b) === u;
679
- }, Q.isValidElementType = function(b) {
680
- return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === p || typeof b == "object" && b !== null && (b.$$typeof === d || b.$$typeof === m || b.$$typeof === i || b.$$typeof === o || b.$$typeof === f || b.$$typeof === S || b.$$typeof === E || b.$$typeof === T || b.$$typeof === y);
652
+ function O(v) {
653
+ return w(v) === c;
654
+ }
655
+ return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = d, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(v) {
656
+ return O(v) || w(v) === l;
657
+ }, Q.isConcurrentMode = O, Q.isContextConsumer = function(v) {
658
+ return w(v) === o;
659
+ }, Q.isContextProvider = function(v) {
660
+ return w(v) === i;
661
+ }, Q.isElement = function(v) {
662
+ return typeof v == "object" && v !== null && v.$$typeof === e;
663
+ }, Q.isForwardRef = function(v) {
664
+ return w(v) === f;
665
+ }, Q.isFragment = function(v) {
666
+ return w(v) === n;
667
+ }, Q.isLazy = function(v) {
668
+ return w(v) === d;
669
+ }, Q.isMemo = function(v) {
670
+ return w(v) === m;
671
+ }, Q.isPortal = function(v) {
672
+ return w(v) === t;
673
+ }, Q.isProfiler = function(v) {
674
+ return w(v) === a;
675
+ }, Q.isStrictMode = function(v) {
676
+ return w(v) === s;
677
+ }, Q.isSuspense = function(v) {
678
+ return w(v) === u;
679
+ }, Q.isValidElementType = function(v) {
680
+ return typeof v == "string" || typeof v == "function" || v === n || v === c || v === a || v === s || v === u || v === p || typeof v == "object" && v !== null && (v.$$typeof === d || v.$$typeof === m || v.$$typeof === i || v.$$typeof === o || v.$$typeof === f || v.$$typeof === S || v.$$typeof === E || v.$$typeof === T || v.$$typeof === y);
681
681
  }, Q.typeOf = w, Q;
682
682
  }
683
683
  var ee = {};
@@ -729,7 +729,7 @@ function cn() {
729
729
  }
730
730
  }
731
731
  }
732
- var b = l, R = c, N = o, C = i, v = e, _ = f, k = n, $ = d, I = m, F = t, A = a, V = s, K = u, J = !1;
732
+ var v = l, D = c, k = o, C = i, b = e, R = f, N = n, L = d, A = m, V = t, I = a, F = s, z = u, J = !1;
733
733
  function Y(M) {
734
734
  return J || (J = !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(M) || O(M) === l;
735
735
  }
@@ -739,10 +739,10 @@ function cn() {
739
739
  function x(M) {
740
740
  return O(M) === o;
741
741
  }
742
- function D(M) {
742
+ function _(M) {
743
743
  return O(M) === i;
744
744
  }
745
- function L(M) {
745
+ function $(M) {
746
746
  return typeof M == "object" && M !== null && M.$$typeof === e;
747
747
  }
748
748
  function j(M) {
@@ -751,25 +751,25 @@ function cn() {
751
751
  function P(M) {
752
752
  return O(M) === n;
753
753
  }
754
- function W(M) {
754
+ function U(M) {
755
755
  return O(M) === d;
756
756
  }
757
757
  function B(M) {
758
758
  return O(M) === m;
759
759
  }
760
- function U(M) {
760
+ function W(M) {
761
761
  return O(M) === t;
762
762
  }
763
763
  function X(M) {
764
764
  return O(M) === a;
765
765
  }
766
- function q(M) {
766
+ function K(M) {
767
767
  return O(M) === s;
768
768
  }
769
769
  function ae(M) {
770
770
  return O(M) === u;
771
771
  }
772
- ee.AsyncMode = b, ee.ConcurrentMode = R, ee.ContextConsumer = N, ee.ContextProvider = C, ee.Element = v, ee.ForwardRef = _, ee.Fragment = k, ee.Lazy = $, ee.Memo = I, ee.Portal = F, ee.Profiler = A, ee.StrictMode = V, ee.Suspense = K, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = D, ee.isElement = L, ee.isForwardRef = j, ee.isFragment = P, ee.isLazy = W, ee.isMemo = B, ee.isPortal = U, ee.isProfiler = X, ee.isStrictMode = q, ee.isSuspense = ae, ee.isValidElementType = w, ee.typeOf = O;
772
+ ee.AsyncMode = v, ee.ConcurrentMode = D, ee.ContextConsumer = k, ee.ContextProvider = C, ee.Element = b, ee.ForwardRef = R, ee.Fragment = N, ee.Lazy = L, ee.Memo = A, ee.Portal = V, ee.Profiler = I, ee.StrictMode = F, ee.Suspense = z, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = _, ee.isElement = $, ee.isForwardRef = j, ee.isFragment = P, ee.isLazy = U, ee.isMemo = B, ee.isPortal = W, ee.isProfiler = X, ee.isStrictMode = K, ee.isSuspense = ae, ee.isValidElementType = w, ee.typeOf = O;
773
773
  }()), ee;
774
774
  }
775
775
  var Jt;
@@ -828,7 +828,7 @@ function un() {
828
828
  }, xt;
829
829
  }
830
830
  var St, Zt;
831
- function It() {
831
+ function At() {
832
832
  if (Zt) return St;
833
833
  Zt = 1;
834
834
  var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -845,7 +845,7 @@ function fn() {
845
845
  var r = function() {
846
846
  };
847
847
  if (process.env.NODE_ENV !== "production") {
848
- var e = /* @__PURE__ */ It(), t = {}, n = /* @__PURE__ */ Cr();
848
+ var e = /* @__PURE__ */ At(), t = {}, n = /* @__PURE__ */ Cr();
849
849
  r = function(a) {
850
850
  var i = "Warning: " + a;
851
851
  typeof console < "u" && console.error(i);
@@ -891,7 +891,7 @@ var Tt, tr;
891
891
  function dn() {
892
892
  if (tr) return Tt;
893
893
  tr = 1;
894
- var r = $r(), e = un(), t = /* @__PURE__ */ It(), n = /* @__PURE__ */ Cr(), s = /* @__PURE__ */ fn(), a = function() {
894
+ var r = $r(), e = un(), t = /* @__PURE__ */ At(), n = /* @__PURE__ */ Cr(), s = /* @__PURE__ */ fn(), a = function() {
895
895
  };
896
896
  process.env.NODE_ENV !== "production" && (a = function(o) {
897
897
  var l = "Warning: " + o;
@@ -923,14 +923,14 @@ function dn() {
923
923
  any: T(),
924
924
  arrayOf: w,
925
925
  element: O(),
926
- elementType: b(),
927
- instanceOf: R,
928
- node: _(),
926
+ elementType: v(),
927
+ instanceOf: D,
928
+ node: R(),
929
929
  objectOf: C,
930
- oneOf: N,
931
- oneOfType: v,
932
- shape: $,
933
- exact: I
930
+ oneOf: k,
931
+ oneOfType: b,
932
+ shape: L,
933
+ exact: A
934
934
  };
935
935
  function d(h, x) {
936
936
  return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
@@ -941,34 +941,34 @@ function dn() {
941
941
  y.prototype = Error.prototype;
942
942
  function S(h) {
943
943
  if (process.env.NODE_ENV !== "production")
944
- var x = {}, D = 0;
945
- function L(P, W, B, U, X, q, ae) {
946
- if (U = U || p, q = q || B, ae !== t) {
944
+ var x = {}, _ = 0;
945
+ function $(P, U, B, W, X, K, ae) {
946
+ if (W = W || p, K = K || B, ae !== t) {
947
947
  if (l) {
948
948
  var M = new Error(
949
949
  "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"
950
950
  );
951
951
  throw M.name = "Invariant Violation", M;
952
952
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
953
- var H = U + ":" + B;
953
+ var H = W + ":" + B;
954
954
  !x[H] && // Avoid spamming the console because they are often not actionable except for lib authors
955
- D < 3 && (a(
956
- "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
957
- ), x[H] = !0, D++);
955
+ _ < 3 && (a(
956
+ "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
957
+ ), x[H] = !0, _++);
958
958
  }
959
959
  }
960
- return W[B] == null ? P ? W[B] === null ? new y("The " + X + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + X + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : h(W, B, U, X, q);
960
+ return U[B] == null ? P ? U[B] === null ? new y("The " + X + " `" + K + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new y("The " + X + " `" + K + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : h(U, B, W, X, K);
961
961
  }
962
- var j = L.bind(null, !1);
963
- return j.isRequired = L.bind(null, !0), j;
962
+ var j = $.bind(null, !1);
963
+ return j.isRequired = $.bind(null, !0), j;
964
964
  }
965
965
  function E(h) {
966
- function x(D, L, j, P, W, B) {
967
- var U = D[L], X = V(U);
966
+ function x(_, $, j, P, U, B) {
967
+ var W = _[$], X = F(W);
968
968
  if (X !== h) {
969
- var q = K(U);
969
+ var K = z(W);
970
970
  return new y(
971
- "Invalid " + P + " `" + W + "` of type " + ("`" + q + "` supplied to `" + j + "`, expected ") + ("`" + h + "`."),
971
+ "Invalid " + P + " `" + U + "` of type " + ("`" + K + "` supplied to `" + j + "`, expected ") + ("`" + h + "`."),
972
972
  { expectedType: h }
973
973
  );
974
974
  }
@@ -980,132 +980,132 @@ function dn() {
980
980
  return S(i);
981
981
  }
982
982
  function w(h) {
983
- function x(D, L, j, P, W) {
983
+ function x(_, $, j, P, U) {
984
984
  if (typeof h != "function")
985
- return new y("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
986
- var B = D[L];
985
+ return new y("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
986
+ var B = _[$];
987
987
  if (!Array.isArray(B)) {
988
- var U = V(B);
989
- return new y("Invalid " + P + " `" + W + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected an array."));
988
+ var W = F(B);
989
+ return new y("Invalid " + P + " `" + U + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an array."));
990
990
  }
991
991
  for (var X = 0; X < B.length; X++) {
992
- var q = h(B, X, j, P, W + "[" + X + "]", t);
993
- if (q instanceof Error)
994
- return q;
992
+ var K = h(B, X, j, P, U + "[" + X + "]", t);
993
+ if (K instanceof Error)
994
+ return K;
995
995
  }
996
996
  return null;
997
997
  }
998
998
  return S(x);
999
999
  }
1000
1000
  function O() {
1001
- function h(x, D, L, j, P) {
1002
- var W = x[D];
1003
- if (!o(W)) {
1004
- var B = V(W);
1005
- return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement."));
1001
+ function h(x, _, $, j, P) {
1002
+ var U = x[_];
1003
+ if (!o(U)) {
1004
+ var B = F(U);
1005
+ return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" + $ + "`, expected a single ReactElement."));
1006
1006
  }
1007
1007
  return null;
1008
1008
  }
1009
1009
  return S(h);
1010
1010
  }
1011
- function b() {
1012
- function h(x, D, L, j, P) {
1013
- var W = x[D];
1014
- if (!r.isValidElementType(W)) {
1015
- var B = V(W);
1016
- return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement type."));
1011
+ function v() {
1012
+ function h(x, _, $, j, P) {
1013
+ var U = x[_];
1014
+ if (!r.isValidElementType(U)) {
1015
+ var B = F(U);
1016
+ return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1017
1017
  }
1018
1018
  return null;
1019
1019
  }
1020
1020
  return S(h);
1021
1021
  }
1022
- function R(h) {
1023
- function x(D, L, j, P, W) {
1024
- if (!(D[L] instanceof h)) {
1025
- var B = h.name || p, U = Y(D[L]);
1026
- return new y("Invalid " + P + " `" + W + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected ") + ("instance of `" + B + "`."));
1022
+ function D(h) {
1023
+ function x(_, $, j, P, U) {
1024
+ if (!(_[$] instanceof h)) {
1025
+ var B = h.name || p, W = Y(_[$]);
1026
+ return new y("Invalid " + P + " `" + U + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + B + "`."));
1027
1027
  }
1028
1028
  return null;
1029
1029
  }
1030
1030
  return S(x);
1031
1031
  }
1032
- function N(h) {
1032
+ function k(h) {
1033
1033
  if (!Array.isArray(h))
1034
1034
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1035
1035
  "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])."
1036
1036
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1037
- function x(D, L, j, P, W) {
1038
- for (var B = D[L], U = 0; U < h.length; U++)
1039
- if (d(B, h[U]))
1037
+ function x(_, $, j, P, U) {
1038
+ for (var B = _[$], W = 0; W < h.length; W++)
1039
+ if (d(B, h[W]))
1040
1040
  return null;
1041
1041
  var X = JSON.stringify(h, function(ae, M) {
1042
- var H = K(M);
1042
+ var H = z(M);
1043
1043
  return H === "symbol" ? String(M) : M;
1044
1044
  });
1045
- return new y("Invalid " + P + " `" + W + "` of value `" + String(B) + "` " + ("supplied to `" + j + "`, expected one of " + X + "."));
1045
+ return new y("Invalid " + P + " `" + U + "` of value `" + String(B) + "` " + ("supplied to `" + j + "`, expected one of " + X + "."));
1046
1046
  }
1047
1047
  return S(x);
1048
1048
  }
1049
1049
  function C(h) {
1050
- function x(D, L, j, P, W) {
1050
+ function x(_, $, j, P, U) {
1051
1051
  if (typeof h != "function")
1052
- return new y("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
1053
- var B = D[L], U = V(B);
1054
- if (U !== "object")
1055
- return new y("Invalid " + P + " `" + W + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected an object."));
1052
+ return new y("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
1053
+ var B = _[$], W = F(B);
1054
+ if (W !== "object")
1055
+ return new y("Invalid " + P + " `" + U + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an object."));
1056
1056
  for (var X in B)
1057
1057
  if (n(B, X)) {
1058
- var q = h(B, X, j, P, W + "." + X, t);
1059
- if (q instanceof Error)
1060
- return q;
1058
+ var K = h(B, X, j, P, U + "." + X, t);
1059
+ if (K instanceof Error)
1060
+ return K;
1061
1061
  }
1062
1062
  return null;
1063
1063
  }
1064
1064
  return S(x);
1065
1065
  }
1066
- function v(h) {
1066
+ function b(h) {
1067
1067
  if (!Array.isArray(h))
1068
1068
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1069
1069
  for (var x = 0; x < h.length; x++) {
1070
- var D = h[x];
1071
- if (typeof D != "function")
1070
+ var _ = h[x];
1071
+ if (typeof _ != "function")
1072
1072
  return a(
1073
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(D) + " at index " + x + "."
1073
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(_) + " at index " + x + "."
1074
1074
  ), i;
1075
1075
  }
1076
- function L(j, P, W, B, U) {
1077
- for (var X = [], q = 0; q < h.length; q++) {
1078
- var ae = h[q], M = ae(j, P, W, B, U, t);
1076
+ function $(j, P, U, B, W) {
1077
+ for (var X = [], K = 0; K < h.length; K++) {
1078
+ var ae = h[K], M = ae(j, P, U, B, W, t);
1079
1079
  if (M == null)
1080
1080
  return null;
1081
1081
  M.data && n(M.data, "expectedType") && X.push(M.data.expectedType);
1082
1082
  }
1083
1083
  var H = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
1084
- return new y("Invalid " + B + " `" + U + "` supplied to " + ("`" + W + "`" + H + "."));
1084
+ return new y("Invalid " + B + " `" + W + "` supplied to " + ("`" + U + "`" + H + "."));
1085
1085
  }
1086
- return S(L);
1086
+ return S($);
1087
1087
  }
1088
- function _() {
1089
- function h(x, D, L, j, P) {
1090
- return F(x[D]) ? null : new y("Invalid " + j + " `" + P + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
1088
+ function R() {
1089
+ function h(x, _, $, j, P) {
1090
+ return V(x[_]) ? null : new y("Invalid " + j + " `" + P + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1091
1091
  }
1092
1092
  return S(h);
1093
1093
  }
1094
- function k(h, x, D, L, j) {
1094
+ function N(h, x, _, $, j) {
1095
1095
  return new y(
1096
- (h || "React class") + ": " + x + " type `" + D + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
1096
+ (h || "React class") + ": " + x + " type `" + _ + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
1097
1097
  );
1098
1098
  }
1099
- function $(h) {
1100
- function x(D, L, j, P, W) {
1101
- var B = D[L], U = V(B);
1102
- if (U !== "object")
1103
- return new y("Invalid " + P + " `" + W + "` of type `" + U + "` " + ("supplied to `" + j + "`, expected `object`."));
1099
+ function L(h) {
1100
+ function x(_, $, j, P, U) {
1101
+ var B = _[$], W = F(B);
1102
+ if (W !== "object")
1103
+ return new y("Invalid " + P + " `" + U + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
1104
1104
  for (var X in h) {
1105
- var q = h[X];
1106
- if (typeof q != "function")
1107
- return k(j, P, W, X, K(q));
1108
- var ae = q(B, X, j, P, W + "." + X, t);
1105
+ var K = h[X];
1106
+ if (typeof K != "function")
1107
+ return N(j, P, U, X, z(K));
1108
+ var ae = K(B, X, j, P, U + "." + X, t);
1109
1109
  if (ae)
1110
1110
  return ae;
1111
1111
  }
@@ -1113,22 +1113,22 @@ function dn() {
1113
1113
  }
1114
1114
  return S(x);
1115
1115
  }
1116
- function I(h) {
1117
- function x(D, L, j, P, W) {
1118
- var B = D[L], U = V(B);
1119
- if (U !== "object")
1120
- return new y("Invalid " + P + " `" + W + "` of type `" + U + "` " + ("supplied to `" + j + "`, expected `object`."));
1121
- var X = e({}, D[L], h);
1122
- for (var q in X) {
1123
- var ae = h[q];
1124
- if (n(h, q) && typeof ae != "function")
1125
- return k(j, P, W, q, K(ae));
1116
+ function A(h) {
1117
+ function x(_, $, j, P, U) {
1118
+ var B = _[$], W = F(B);
1119
+ if (W !== "object")
1120
+ return new y("Invalid " + P + " `" + U + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
1121
+ var X = e({}, _[$], h);
1122
+ for (var K in X) {
1123
+ var ae = h[K];
1124
+ if (n(h, K) && typeof ae != "function")
1125
+ return N(j, P, U, K, z(ae));
1126
1126
  if (!ae)
1127
1127
  return new y(
1128
- "Invalid " + P + " `" + W + "` key `" + q + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(D[L], null, " ") + `
1128
+ "Invalid " + P + " `" + U + "` key `" + K + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(_[$], null, " ") + `
1129
1129
  Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1130
1130
  );
1131
- var M = ae(B, q, j, P, W + "." + q, t);
1131
+ var M = ae(B, K, j, P, U + "." + K, t);
1132
1132
  if (M)
1133
1133
  return M;
1134
1134
  }
@@ -1136,7 +1136,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1136
1136
  }
1137
1137
  return S(x);
1138
1138
  }
1139
- function F(h) {
1139
+ function V(h) {
1140
1140
  switch (typeof h) {
1141
1141
  case "number":
1142
1142
  case "string":
@@ -1146,20 +1146,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1146
1146
  return !h;
1147
1147
  case "object":
1148
1148
  if (Array.isArray(h))
1149
- return h.every(F);
1149
+ return h.every(V);
1150
1150
  if (h === null || o(h))
1151
1151
  return !0;
1152
1152
  var x = u(h);
1153
1153
  if (x) {
1154
- var D = x.call(h), L;
1154
+ var _ = x.call(h), $;
1155
1155
  if (x !== h.entries) {
1156
- for (; !(L = D.next()).done; )
1157
- if (!F(L.value))
1156
+ for (; !($ = _.next()).done; )
1157
+ if (!V($.value))
1158
1158
  return !1;
1159
1159
  } else
1160
- for (; !(L = D.next()).done; ) {
1161
- var j = L.value;
1162
- if (j && !F(j[1]))
1160
+ for (; !($ = _.next()).done; ) {
1161
+ var j = $.value;
1162
+ if (j && !V(j[1]))
1163
1163
  return !1;
1164
1164
  }
1165
1165
  } else
@@ -1169,17 +1169,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1169
1169
  return !1;
1170
1170
  }
1171
1171
  }
1172
- function A(h, x) {
1172
+ function I(h, x) {
1173
1173
  return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
1174
1174
  }
1175
- function V(h) {
1175
+ function F(h) {
1176
1176
  var x = typeof h;
1177
- return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : A(x, h) ? "symbol" : x;
1177
+ return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : I(x, h) ? "symbol" : x;
1178
1178
  }
1179
- function K(h) {
1179
+ function z(h) {
1180
1180
  if (typeof h > "u" || h === null)
1181
1181
  return "" + h;
1182
- var x = V(h);
1182
+ var x = F(h);
1183
1183
  if (x === "object") {
1184
1184
  if (h instanceof Date)
1185
1185
  return "date";
@@ -1189,7 +1189,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1189
1189
  return x;
1190
1190
  }
1191
1191
  function J(h) {
1192
- var x = K(h);
1192
+ var x = z(h);
1193
1193
  switch (x) {
1194
1194
  case "array":
1195
1195
  case "object":
@@ -1212,7 +1212,7 @@ var Ot, rr;
1212
1212
  function pn() {
1213
1213
  if (rr) return Ot;
1214
1214
  rr = 1;
1215
- var r = /* @__PURE__ */ It();
1215
+ var r = /* @__PURE__ */ At();
1216
1216
  function e() {
1217
1217
  }
1218
1218
  function t() {
@@ -1295,9 +1295,9 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
1295
1295
  if (this.reactWrapper instanceof mn(this.reactWrapper).Node) {
1296
1296
  var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache, m = this.props.onError, d = this.props.beforeInjection, y = this.props.afterInjection, S = this.props.wrapper, E, T;
1297
1297
  S === "svg" ? (E = document.createElementNS(Ze, S), E.setAttribute("xmlns", Ze), E.setAttribute("xmlns:xlink", sr), T = document.createElementNS(Ze, S)) : (E = document.createElement(S), T = document.createElement(S)), E.appendChild(T), T.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(E);
1298
- var w = function(N) {
1298
+ var w = function(k) {
1299
1299
  if (s.removeSVG(), !s._isMounted) {
1300
- m(N);
1300
+ m(k);
1301
1301
  return;
1302
1302
  }
1303
1303
  s.setState(function() {
@@ -1306,11 +1306,11 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
1306
1306
  isLoading: !1
1307
1307
  };
1308
1308
  }, function() {
1309
- m(N);
1309
+ m(k);
1310
1310
  });
1311
- }, O = function(N, C) {
1312
- if (N) {
1313
- w(N);
1311
+ }, O = function(k, C) {
1312
+ if (k) {
1313
+ w(k);
1314
1314
  return;
1315
1315
  }
1316
1316
  s._isMounted && s.setState(function() {
@@ -1320,32 +1320,32 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
1320
1320
  }, function() {
1321
1321
  try {
1322
1322
  y(C);
1323
- } catch (v) {
1324
- w(v);
1323
+ } catch (b) {
1324
+ w(b);
1325
1325
  }
1326
1326
  });
1327
- }, b = function(N) {
1328
- if (N.setAttribute("role", "img"), i) {
1329
- var C = N.querySelector(":scope > desc");
1330
- C && N.removeChild(C);
1331
- var v = document.createElement("desc");
1332
- v.innerHTML = i, N.prepend(v);
1327
+ }, v = function(k) {
1328
+ if (k.setAttribute("role", "img"), i) {
1329
+ var C = k.querySelector(":scope > desc");
1330
+ C && k.removeChild(C);
1331
+ var b = document.createElement("desc");
1332
+ b.innerHTML = i, k.prepend(b);
1333
1333
  }
1334
1334
  if (u) {
1335
- var _ = N.querySelector(":scope > title");
1336
- _ && N.removeChild(_);
1337
- var k = document.createElement("title");
1338
- k.innerHTML = u, N.prepend(k);
1335
+ var R = k.querySelector(":scope > title");
1336
+ R && k.removeChild(R);
1337
+ var N = document.createElement("title");
1338
+ N.innerHTML = u, k.prepend(N);
1339
1339
  }
1340
1340
  try {
1341
- d(N);
1342
- } catch ($) {
1343
- w($);
1341
+ d(k);
1342
+ } catch (L) {
1343
+ w(L);
1344
1344
  }
1345
1345
  };
1346
1346
  on(T, {
1347
1347
  afterEach: O,
1348
- beforeEach: b,
1348
+ beforeEach: v,
1349
1349
  cacheRequests: p,
1350
1350
  evalScripts: o,
1351
1351
  httpRequestWithCredentials: l,
@@ -1443,8 +1443,8 @@ const ra = (r) => {
1443
1443
  svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
1444
1444
  }, O = () => {
1445
1445
  !a && c && l && l();
1446
- }, b = (R) => {
1447
- !a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), O());
1446
+ }, v = (D) => {
1447
+ !a && c && (D.key === "Enter" || D.key === " ") && (D.preventDefault(), O());
1448
1448
  };
1449
1449
  return /* @__PURE__ */ g.jsx(g.Fragment, { children: S ? /* @__PURE__ */ g.jsx(
1450
1450
  Me,
@@ -1460,7 +1460,7 @@ const ra = (r) => {
1460
1460
  "aria-disabled": a,
1461
1461
  className: w.svg,
1462
1462
  onClick: O,
1463
- onKeyDown: b,
1463
+ onKeyDown: v,
1464
1464
  tabIndex: p
1465
1465
  }
1466
1466
  ) : y ? (
@@ -1476,8 +1476,8 @@ const ra = (r) => {
1476
1476
  onClick: O,
1477
1477
  className: w.img,
1478
1478
  title: u,
1479
- onKeyDown: (R) => {
1480
- (R.key === "Enter" || R.key === " ") && O();
1479
+ onKeyDown: (D) => {
1480
+ (D.key === "Enter" || D.key === " ") && O();
1481
1481
  }
1482
1482
  }
1483
1483
  )
@@ -1495,7 +1495,7 @@ const ra = (r) => {
1495
1495
  "aria-disabled": a,
1496
1496
  className: w.svg,
1497
1497
  onClick: O,
1498
- onKeyDown: b,
1498
+ onKeyDown: v,
1499
1499
  tabIndex: p
1500
1500
  }
1501
1501
  ) });
@@ -1732,12 +1732,12 @@ const ra = (r) => {
1732
1732
  e.sections ?? [],
1733
1733
  Object.keys(s)
1734
1734
  ), l = (d) => d.reduce((y, S) => {
1735
- var b, R;
1735
+ var v, D;
1736
1736
  let E = "", T = {}, w = {}, O = "";
1737
- return (b = S.sections) != null && b.length ? (E = ge["smp-layout-section-grid"], T = l(S.sections), S.gridCols === void 0 && (O = ge[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (S.horizontal || Ut(S.sections)) && (w = Yt(
1737
+ return (v = S.sections) != null && v.length ? (E = ge["smp-layout-section-grid"], T = l(S.sections), S.gridCols === void 0 && (O = ge[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (S.horizontal || Ut(S.sections)) && (w = Yt(
1738
1738
  S.sections,
1739
1739
  S.horizontal ? a : i
1740
- )))) : (R = S.content) != null && R.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = ge["smp-layout-section-grid"], O = ge["smp-grid-template-cols"], w = {
1740
+ )))) : (D = S.content) != null && D.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = ge["smp-layout-section-grid"], O = ge["smp-grid-template-cols"], w = {
1741
1741
  [a]: `repeat(${S.gridCols}, 1fr)`
1742
1742
  }) : E = ge["smp-layout-section-flex"]), {
1743
1743
  ...y,
@@ -1879,7 +1879,7 @@ class lt {
1879
1879
  }
1880
1880
  }
1881
1881
  function En(r, e) {
1882
- if (Pt(r)) {
1882
+ if (It(r)) {
1883
1883
  const f = new Date(r);
1884
1884
  if (!isNaN(f.getTime()))
1885
1885
  return f;
@@ -1911,7 +1911,7 @@ function En(r, e) {
1911
1911
  }
1912
1912
  return r;
1913
1913
  }
1914
- function Pt(r) {
1914
+ function It(r) {
1915
1915
  return /^\d{4}-\d{2}-\d{2}$/.test(r) && r.length === 10;
1916
1916
  }
1917
1917
  function Qe(r) {
@@ -1990,7 +1990,7 @@ const lr = /* @__PURE__ */ new Map([
1990
1990
  return Tn(r) && `${r.substring(0, 4)}-${r.substring(4, 6)}-${r.substring(6, 8)}` || r;
1991
1991
  },
1992
1992
  isoToLegacy(r) {
1993
- return Pt(r) && r.replaceAll("-", "") || r;
1993
+ return It(r) && r.replaceAll("-", "") || r;
1994
1994
  }
1995
1995
  }
1996
1996
  ]
@@ -2068,130 +2068,132 @@ const Fe = (r, e, t) => {
2068
2068
  };
2069
2069
  return /* @__PURE__ */ g.jsx("label", { className: s.container, id: n, children: r });
2070
2070
  }, ye = {
2071
- "smp-textfield-wrapper": "_smp-textfield-wrapper_prxya_4",
2072
- "smp-textfield": "_smp-textfield_prxya_4",
2073
- "smp-textfield-extraSmall": "_smp-textfield-extraSmall_prxya_31",
2074
- "smp-textfield-small": "_smp-textfield-small_prxya_36",
2075
- "smp-textfield-medium": "_smp-textfield-medium_prxya_41",
2076
- "smp-textfield-large": "_smp-textfield-large_prxya_46",
2077
- "smp-textfield-extraLarge": "_smp-textfield-extraLarge_prxya_51",
2078
- "smp-textfield-input": "_smp-textfield-input_prxya_57",
2079
- "smp-textfield-outlined": "_smp-textfield-outlined_prxya_80",
2080
- "smp-textfield-danger": "_smp-textfield-danger_prxya_91",
2081
- "smp-textfield-readOnly": "_smp-textfield-readOnly_prxya_95",
2082
- "smp-textfield-variant-notSelectable": "_smp-textfield-variant-notSelectable_prxya_100",
2083
- "smp-textfield-disabled": "_smp-textfield-disabled_prxya_110",
2084
- "smp-textfield-fullWidth": "_smp-textfield-fullWidth_prxya_119",
2085
- "smp-textfield-top-right-indicator": "_smp-textfield-top-right-indicator_prxya_123"
2071
+ "smp-textfield-wrapper": "_smp-textfield-wrapper_ep1c3_4",
2072
+ "smp-textfield": "_smp-textfield_ep1c3_4",
2073
+ "smp-textfield-variant-notSelectable": "_smp-textfield-variant-notSelectable_ep1c3_29",
2074
+ "smp-textfield-extraSmall": "_smp-textfield-extraSmall_ep1c3_35",
2075
+ "smp-textfield-small": "_smp-textfield-small_ep1c3_40",
2076
+ "smp-textfield-medium": "_smp-textfield-medium_ep1c3_45",
2077
+ "smp-textfield-large": "_smp-textfield-large_ep1c3_50",
2078
+ "smp-textfield-extraLarge": "_smp-textfield-extraLarge_ep1c3_55",
2079
+ "smp-textfield-input": "_smp-textfield-input_ep1c3_61",
2080
+ "smp-textfield-outlined": "_smp-textfield-outlined_ep1c3_84",
2081
+ "smp-textfield-danger": "_smp-textfield-danger_ep1c3_95",
2082
+ "smp-textfield-readOnly": "_smp-textfield-readOnly_ep1c3_99",
2083
+ "smp-textfield-disabled": "_smp-textfield-disabled_ep1c3_114",
2084
+ "smp-textfield-fullWidth": "_smp-textfield-fullWidth_ep1c3_123",
2085
+ "smp-textfield-top-right-indicator": "_smp-textfield-top-right-indicator_ep1c3_127"
2086
2086
  }, Le = ({
2087
2087
  disabled: r,
2088
2088
  bindValue: e,
2089
2089
  icon: t,
2090
- onBlur: n,
2091
- onChange: s,
2092
- placeholder: a,
2093
- isEditable: i = !0,
2094
- shapeIcon: o,
2095
- sizing: l,
2096
- state: c,
2097
- variant: f,
2098
- tooltip: u = !1,
2099
- rotatedShapeIcon: p = !1,
2100
- onShapeIconClick: m,
2101
- ref: d,
2102
- inputRef: y,
2103
- onKeyDown: S,
2104
- inputType: E = "text",
2105
- ariaLabel: T = "input field",
2106
- label: w,
2107
- helperText: O = !1,
2108
- error: b,
2109
- appearance: R = "base",
2110
- fullWidth: N = !1,
2111
- _dataComponent: C = "textfield",
2090
+ placeholder: n,
2091
+ isEditable: s = !0,
2092
+ shapeIcon: a,
2093
+ sizing: i,
2094
+ state: o,
2095
+ variant: l,
2096
+ tooltip: c = !1,
2097
+ rotatedShapeIcon: f = !1,
2098
+ ref: u,
2099
+ inputRef: p,
2100
+ inputType: m = "text",
2101
+ ariaLabel: d = "input field",
2102
+ label: y,
2103
+ helperText: S = !1,
2104
+ error: E,
2105
+ appearance: T = "base",
2106
+ fullWidth: w = !1,
2107
+ _dataComponent: O = "textfield",
2112
2108
  min: v,
2113
- max: _,
2109
+ max: D,
2114
2110
  step: k,
2115
- inputMode: $ = "text",
2116
- width: I,
2117
- autocomplete: F,
2118
- size: A,
2119
- maxLength: V
2111
+ inputMode: C = "text",
2112
+ width: b,
2113
+ autocomplete: R,
2114
+ size: N,
2115
+ maxLength: L,
2116
+ onBlur: A,
2117
+ onChange: V,
2118
+ onKeyDown: I,
2119
+ onShapeIconClick: F,
2120
+ onClick: z
2120
2121
  }) => {
2121
- const K = Re(), J = `${K}-helper`, Y = b ? "danger" : c, h = b || c == "danger" ? "error" : o, x = O || !!b, D = (P) => {
2122
- s == null || s(P.target.value);
2123
- }, L = {
2124
- wrapper: `${ye["smp-textfield-wrapper"]} ${N ? ye["smp-textfield-fullWidth"] : ""}`,
2125
- container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${l ? ye[`smp-textfield-${l}`] : ""} ${Y ? ye[`smp-textfield-${Y}`] : ""} ${R ? ye[`smp-textfield-${R}`] : ""} ${i ? "" : ye["smp-textfield-readOnly"]} ${u ? ye["smp-textfield-top-right-indicator"] : ""}`,
2122
+ const J = Re(), Y = `${J}-helper`, h = E ? "danger" : o, x = E || o == "danger" ? "error" : a, _ = S || !!E, $ = (U) => {
2123
+ V == null || V(U.target.value);
2124
+ }, j = {
2125
+ wrapper: `${ye["smp-textfield-wrapper"]} ${w ? ye["smp-textfield-fullWidth"] : ""}`,
2126
+ container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${n ? ye["smp-textfield-placeholder"] : ""} ${i ? ye[`smp-textfield-${i}`] : ""} ${h ? ye[`smp-textfield-${h}`] : ""} ${T ? ye[`smp-textfield-${T}`] : ""} ${s ? "" : ye["smp-textfield-readOnly"]} ${c ? ye["smp-textfield-top-right-indicator"] : ""}`,
2126
2127
  input: `${ye["smp-textfield-input"]}`
2127
2128
  };
2128
- if (f && (f !== "notSelectable" || i)) {
2129
- const P = ye[`smp-textfield-variant-${f}`];
2130
- P && (L.container += ` ${P}`);
2129
+ if (l && (l !== "notSelectable" || s)) {
2130
+ const U = ye[`smp-textfield-variant-${l}`];
2131
+ U && (j.container += ` ${U}`);
2131
2132
  }
2132
- const j = I ? { "--smp-textField-width-base": I } : void 0;
2133
- return /* @__PURE__ */ g.jsxs("div", { className: L.wrapper, "data-component": C, children: [
2134
- w && /* @__PURE__ */ g.jsx(Ce, { label: w, disabled: r, htmlFor: K }),
2133
+ const P = b ? { "--smp-textField-width-base": b } : void 0;
2134
+ return /* @__PURE__ */ g.jsxs("div", { className: j.wrapper, "data-component": O, children: [
2135
+ y && /* @__PURE__ */ g.jsx(Ce, { label: y, disabled: r, htmlFor: J }),
2135
2136
  /* @__PURE__ */ g.jsxs(
2136
2137
  "div",
2137
2138
  {
2138
- className: L.container,
2139
- ref: d,
2140
- style: j,
2139
+ className: j.container,
2140
+ ref: u,
2141
+ style: P,
2141
2142
  children: [
2142
2143
  t && /* @__PURE__ */ g.jsx(le, { icon: t, disabled: r }),
2143
2144
  /* @__PURE__ */ g.jsx(
2144
2145
  "input",
2145
2146
  {
2146
- id: K,
2147
- type: E,
2147
+ id: J,
2148
+ type: m,
2148
2149
  value: e,
2149
- placeholder: a,
2150
- onChange: D,
2151
- onBlur: n,
2152
- className: L.input,
2150
+ placeholder: n,
2151
+ onChange: $,
2152
+ onBlur: A,
2153
+ className: j.input,
2153
2154
  disabled: r,
2154
- readOnly: !i,
2155
- onKeyDown: S,
2156
- "aria-label": T,
2157
- ref: y,
2158
- "aria-describedby": x ? J : void 0,
2155
+ readOnly: !s,
2156
+ onKeyDown: I,
2157
+ "aria-label": d,
2158
+ ref: p,
2159
+ "aria-describedby": _ ? Y : void 0,
2159
2160
  min: v,
2160
- max: _,
2161
+ max: D,
2161
2162
  step: k,
2162
- inputMode: $,
2163
- autoComplete: F,
2164
- size: A,
2165
- maxLength: V
2163
+ inputMode: C,
2164
+ autoComplete: R,
2165
+ size: N,
2166
+ maxLength: L,
2167
+ onClick: z
2166
2168
  }
2167
2169
  ),
2168
- h && /* @__PURE__ */ g.jsx(
2170
+ x && /* @__PURE__ */ g.jsx(
2169
2171
  le,
2170
2172
  {
2171
- icon: h,
2173
+ icon: x,
2172
2174
  disabled: r,
2173
- state: Y,
2174
- onClick: m,
2175
- rotated: p,
2176
- isInteractable: i,
2175
+ state: h,
2176
+ onClick: F,
2177
+ rotated: f,
2178
+ isInteractable: s,
2177
2179
  tabIndex: 0
2178
2180
  }
2179
2181
  )
2180
2182
  ]
2181
2183
  }
2182
2184
  ),
2183
- x && /* @__PURE__ */ g.jsx(
2185
+ _ && /* @__PURE__ */ g.jsx(
2184
2186
  Lr,
2185
2187
  {
2186
- helperText: b,
2188
+ helperText: E,
2187
2189
  disabled: r,
2188
- state: Y,
2189
- id: J
2190
+ state: h,
2191
+ id: Y
2190
2192
  }
2191
2193
  )
2192
2194
  ] });
2193
2195
  };
2194
- function Ir({
2196
+ function Ar({
2195
2197
  items: r,
2196
2198
  itemHeight: e,
2197
2199
  containerHeight: t,
@@ -2260,7 +2262,7 @@ function Rn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
2260
2262
  }
2261
2263
  return Math.ceil(i + n);
2262
2264
  }
2263
- const Dn = 10, Pr = ({
2265
+ const Dn = 10, Ir = ({
2264
2266
  id: r,
2265
2267
  options: e,
2266
2268
  displayMode: t = "Both",
@@ -2275,14 +2277,14 @@ const Dn = 10, Pr = ({
2275
2277
  onKeyDown: c,
2276
2278
  isOpen: f
2277
2279
  }) => {
2278
- var F;
2280
+ var V;
2279
2281
  const [u, p] = G(""), m = 40, [d, y] = G(
2280
2282
  a !== null ? a : -1
2281
2283
  ), [S, E] = G(o || 200), T = ce(null), w = s !== void 0 ? s : e.length > Dn, O = u ? e.filter(
2282
- (A) => A.label.toLowerCase().includes(u.toLowerCase())
2283
- ) : e, b = (A) => {
2284
- p(A);
2285
- }, { virtualItems: R, containerProps: N, innerProps: C, scrollToIndex: v } = Ir({
2284
+ (I) => I.label.toLowerCase().includes(u.toLowerCase())
2285
+ ) : e, v = (I) => {
2286
+ p(I);
2287
+ }, { virtualItems: D, containerProps: k, innerProps: C, scrollToIndex: b } = Ar({
2286
2288
  items: O,
2287
2289
  itemHeight: m,
2288
2290
  containerHeight: 200,
@@ -2291,25 +2293,25 @@ const Dn = 10, Pr = ({
2291
2293
  re(() => {
2292
2294
  a !== null && a !== d && y(a);
2293
2295
  }, [a]), re(() => {
2294
- d >= 0 && d < O.length && v(d);
2296
+ d >= 0 && d < O.length && b(d);
2295
2297
  }, [d, O]), re(() => {
2296
2298
  f && (T != null && T.current) && T.current.focus();
2297
2299
  }, [f, T]), re(() => {
2298
- const A = Rn(e, t);
2299
- E(A);
2300
+ const I = Rn(e, t);
2301
+ E(I);
2300
2302
  }, [e, t]);
2301
- const _ = (A) => {
2302
- if (A.key === "ArrowDown" || A.key === "ArrowUp") {
2303
- A.preventDefault();
2304
- let V = d;
2305
- A.key === "ArrowDown" ? V = d < O.length - 1 ? d + 1 : 0 : A.key === "ArrowUp" && (V = d > 0 ? d - 1 : O.length - 1), y(V);
2306
- } else A.key === "Enter" ? d >= 0 && d < O.length && (l == null || l(O[d])) : A.key === "Escape" && (A.preventDefault(), A.stopPropagation());
2307
- c && c(A);
2308
- }, k = (A) => {
2309
- _(A);
2310
- }, $ = (A) => {
2311
- _(A);
2312
- }, I = {
2303
+ const R = (I) => {
2304
+ if (I.key === "ArrowDown" || I.key === "ArrowUp") {
2305
+ I.preventDefault();
2306
+ let F = d;
2307
+ I.key === "ArrowDown" ? F = d < O.length - 1 ? d + 1 : 0 : I.key === "ArrowUp" && (F = d > 0 ? d - 1 : O.length - 1), y(F);
2308
+ } else I.key === "Enter" ? d >= 0 && d < O.length && (l == null || l(O[d])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
2309
+ c && c(I);
2310
+ }, N = (I) => {
2311
+ R(I);
2312
+ }, L = (I) => {
2313
+ R(I);
2314
+ }, A = {
2313
2315
  wrapper: `${et["smp-list"]}`,
2314
2316
  container: `${et["smp-list-container"]}`,
2315
2317
  virtualScroll: `${et["smp-list-virtualScroll"]}`,
@@ -2320,7 +2322,7 @@ const Dn = 10, Pr = ({
2320
2322
  {
2321
2323
  id: r,
2322
2324
  ref: n,
2323
- className: I.wrapper,
2325
+ className: A.wrapper,
2324
2326
  "data-component": "list",
2325
2327
  style: {
2326
2328
  width: S,
@@ -2333,49 +2335,49 @@ const Dn = 10, Pr = ({
2333
2335
  bindValue: u,
2334
2336
  placeholder: "Search...",
2335
2337
  fullWidth: !0,
2336
- onChange: b,
2337
- onKeyDown: k,
2338
+ onChange: v,
2339
+ onKeyDown: N,
2338
2340
  inputRef: T
2339
2341
  }
2340
2342
  ),
2341
2343
  /* @__PURE__ */ g.jsx(
2342
2344
  "div",
2343
2345
  {
2344
- ...N,
2345
- className: I.container,
2346
+ ...k,
2347
+ className: A.container,
2346
2348
  tabIndex: 0,
2347
2349
  role: "listbox",
2348
2350
  "aria-label": "List",
2349
- onKeyDown: $,
2350
- "aria-activedescendant": d >= 0 && d < O.length ? (F = O[d]) == null ? void 0 : F.id : void 0,
2351
- children: /* @__PURE__ */ g.jsx("div", { ...C, className: I.virtualScroll, children: R.map(({ item: A, index: V, offsetTop: K }) => {
2352
- const J = i.includes(A.id);
2351
+ onKeyDown: L,
2352
+ "aria-activedescendant": d >= 0 && d < O.length ? (V = O[d]) == null ? void 0 : V.id : void 0,
2353
+ children: /* @__PURE__ */ g.jsx("div", { ...C, className: A.virtualScroll, children: D.map(({ item: I, index: F, offsetTop: z }) => {
2354
+ const J = i.includes(I.id);
2353
2355
  return (
2354
2356
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
2355
2357
  /* @__PURE__ */ g.jsxs(
2356
2358
  "li",
2357
2359
  {
2358
2360
  role: "option",
2359
- id: A.id,
2360
- "aria-selected": d === V ? "true" : "false",
2361
+ id: I.id,
2362
+ "aria-selected": d === F ? "true" : "false",
2361
2363
  tabIndex: -1,
2362
- className: `${I.listItem} ${d === V ? "selected-item" : ""}`,
2363
- "aria-label": A.id + "-" + A.label,
2364
+ className: `${A.listItem} ${d === F ? "selected-item" : ""}`,
2365
+ "aria-label": I.id + "-" + I.label,
2364
2366
  style: {
2365
2367
  height: `${m}px`,
2366
2368
  lineHeight: `calc(${m}px - 2*2px)`,
2367
2369
  // lineHeight - 2*padding
2368
- transform: `translateY(${K}px)`
2370
+ transform: `translateY(${z}px)`
2369
2371
  },
2370
2372
  onClick: () => {
2371
- l == null || l(A), y(V);
2373
+ l == null || l(I), y(F);
2372
2374
  },
2373
2375
  children: [
2374
- Fe(A.id, A.label, t),
2376
+ Fe(I.id, I.label, t),
2375
2377
  J && /* @__PURE__ */ g.jsx(le, { icon: "check", width: 16 })
2376
2378
  ]
2377
2379
  },
2378
- A.id
2380
+ I.id
2379
2381
  )
2380
2382
  );
2381
2383
  }) })
@@ -2384,7 +2386,7 @@ const Dn = 10, Pr = ({
2384
2386
  ]
2385
2387
  }
2386
2388
  );
2387
- }, At = ({
2389
+ }, Pt = ({
2388
2390
  displayMode: r,
2389
2391
  bindValue: e,
2390
2392
  optionalDisplayValue: t,
@@ -2422,13 +2424,18 @@ const gt = (r, e, t) => {
2422
2424
  re(() => {
2423
2425
  if (!e) return;
2424
2426
  const n = (s) => {
2425
- typeof r == "object" && r !== null && "current" in r && r.current && !r.current.contains(s.target) && t();
2427
+ (r == null ? void 0 : r.some((i) => {
2428
+ if (typeof i == "object" && i !== null && "current" in i) {
2429
+ const o = i == null ? void 0 : i.current;
2430
+ return o && o.contains(s.target);
2431
+ }
2432
+ })) || t();
2426
2433
  };
2427
2434
  return document.addEventListener("mousedown", n), () => {
2428
2435
  document.removeEventListener("mousedown", n);
2429
2436
  };
2430
2437
  }, [r, t, e]);
2431
- }, z = (r) => typeof r == "string", Ue = () => {
2438
+ }, q = (r) => typeof r == "string", Ue = () => {
2432
2439
  let r, e;
2433
2440
  const t = new Promise((n, s) => {
2434
2441
  r = n, e = s;
@@ -2438,8 +2445,8 @@ const gt = (r, e, t) => {
2438
2445
  r.forEach((n) => {
2439
2446
  e[n] && (t[n] = e[n]);
2440
2447
  });
2441
- }, Cn = /###/g, ur = (r) => r && r.indexOf("###") > -1 ? r.replace(Cn, ".") : r, fr = (r) => !r || z(r), We = (r, e, t) => {
2442
- const n = z(e) ? e.split(".") : e;
2448
+ }, Cn = /###/g, ur = (r) => r && r.indexOf("###") > -1 ? r.replace(Cn, ".") : r, fr = (r) => !r || q(r), We = (r, e, t) => {
2449
+ const n = q(e) ? e.split(".") : e;
2443
2450
  let s = 0;
2444
2451
  for (; s < n.length - 1; ) {
2445
2452
  if (fr(r)) return {};
@@ -2476,15 +2483,15 @@ const gt = (r, e, t) => {
2476
2483
  } = We(r, e);
2477
2484
  if (t && Object.prototype.hasOwnProperty.call(t, n))
2478
2485
  return t[n];
2479
- }, In = (r, e, t) => {
2486
+ }, An = (r, e, t) => {
2480
2487
  const n = ut(r, t);
2481
2488
  return n !== void 0 ? n : ut(e, t);
2482
- }, Ar = (r, e, t) => {
2489
+ }, Pr = (r, e, t) => {
2483
2490
  for (const n in e)
2484
- n !== "__proto__" && n !== "constructor" && (n in r ? z(r[n]) || r[n] instanceof String || z(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Ar(r[n], e[n], t) : r[n] = e[n]);
2491
+ n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Pr(r[n], e[n], t) : r[n] = e[n]);
2485
2492
  return r;
2486
- }, Ae = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2487
- var Pn = {
2493
+ }, Pe = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2494
+ var In = {
2488
2495
  "&": "&amp;",
2489
2496
  "<": "&lt;",
2490
2497
  ">": "&gt;",
@@ -2492,7 +2499,7 @@ var Pn = {
2492
2499
  "'": "&#39;",
2493
2500
  "/": "&#x2F;"
2494
2501
  };
2495
- const An = (r) => z(r) ? r.replace(/[&<>"'\/]/g, (e) => Pn[e]) : r;
2502
+ const Pn = (r) => q(r) ? r.replace(/[&<>"'\/]/g, (e) => In[e]) : r;
2496
2503
  class Nn {
2497
2504
  constructor(e) {
2498
2505
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
@@ -2572,7 +2579,7 @@ class ft {
2572
2579
  return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
2573
2580
  }
2574
2581
  forward(e, t, n, s) {
2575
- return s && !this.debug ? null : (z(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
2582
+ return s && !this.debug ? null : (q(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
2576
2583
  }
2577
2584
  create(e) {
2578
2585
  return new ft(this.logger, {
@@ -2633,9 +2640,9 @@ class pr extends yt {
2633
2640
  var c, f;
2634
2641
  const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
2635
2642
  let o;
2636
- e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : z(n) && a ? o.push(...n.split(a)) : o.push(n)));
2643
+ e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : q(n) && a ? o.push(...n.split(a)) : o.push(n)));
2637
2644
  const l = ut(this.data, o);
2638
- return !l && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), l || !i || !z(n) ? l : $t((f = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : f[t], n, a);
2645
+ return !l && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), l || !i || !q(n) ? l : $t((f = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : f[t], n, a);
2639
2646
  }
2640
2647
  addResource(e, t, n, s, a = {
2641
2648
  silent: !1
@@ -2648,7 +2655,7 @@ class pr extends yt {
2648
2655
  silent: !1
2649
2656
  }) {
2650
2657
  for (const a in n)
2651
- (z(n[a]) || Array.isArray(n[a])) && this.addResource(e, t, a, n[a], {
2658
+ (q(n[a]) || Array.isArray(n[a])) && this.addResource(e, t, a, n[a], {
2652
2659
  silent: !0
2653
2660
  });
2654
2661
  s.silent || this.emit("added", e, t, n);
@@ -2660,7 +2667,7 @@ class pr extends yt {
2660
2667
  let o = [e, t];
2661
2668
  e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
2662
2669
  let l = ut(this.data, o) || {};
2663
- i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Ar(l, n, a) : l = {
2670
+ i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Pr(l, n, a) : l = {
2664
2671
  ...l,
2665
2672
  ...n
2666
2673
  }, dr(this.data, o, l), i.silent || this.emit("added", e, t, n);
@@ -2697,7 +2704,7 @@ var Nr = {
2697
2704
  }), e;
2698
2705
  }
2699
2706
  };
2700
- const hr = {}, mr = (r) => !z(r) && typeof r != "boolean" && typeof r != "number";
2707
+ const hr = {}, mr = (r) => !q(r) && typeof r != "boolean" && typeof r != "number";
2701
2708
  class dt extends yt {
2702
2709
  constructor(e, t = {}) {
2703
2710
  super(), $n(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Se.create("translator");
@@ -2726,14 +2733,14 @@ class dt extends yt {
2726
2733
  if (l && l.length > 0)
2727
2734
  return {
2728
2735
  key: e,
2729
- namespaces: z(a) ? [a] : a
2736
+ namespaces: q(a) ? [a] : a
2730
2737
  };
2731
2738
  const c = e.split(n);
2732
2739
  (n !== s || n === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
2733
2740
  }
2734
2741
  return {
2735
2742
  key: e,
2736
- namespaces: z(a) ? [a] : a
2743
+ namespaces: q(a) ? [a] : a
2737
2744
  };
2738
2745
  }
2739
2746
  translate(e, t, n) {
@@ -2769,47 +2776,47 @@ class dt extends yt {
2769
2776
  } : o;
2770
2777
  const m = this.resolve(e, s);
2771
2778
  let d = m == null ? void 0 : m.res;
2772
- const y = (m == null ? void 0 : m.usedKey) || o, S = (m == null ? void 0 : m.exactUsedKey) || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !z(s.count), b = dt.hasDefaultValue(s), R = O ? this.pluralResolver.getSuffix(u, s.count, s) : "", N = s.ordinal && O ? this.pluralResolver.getSuffix(u, s.count, {
2779
+ const y = (m == null ? void 0 : m.usedKey) || o, S = (m == null ? void 0 : m.exactUsedKey) || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !q(s.count), v = dt.hasDefaultValue(s), D = O ? this.pluralResolver.getSuffix(u, s.count, s) : "", k = s.ordinal && O ? this.pluralResolver.getSuffix(u, s.count, {
2773
2780
  ordinal: !1
2774
- }) : "", C = O && !s.ordinal && s.count === 0, v = C && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${N}`] || s.defaultValue;
2775
- let _ = d;
2776
- w && !d && b && (_ = v);
2777
- const k = mr(_), $ = Object.prototype.toString.apply(_);
2778
- if (w && _ && k && E.indexOf($) < 0 && !(z(T) && Array.isArray(_))) {
2781
+ }) : "", C = O && !s.ordinal && s.count === 0, b = C && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${D}`] || s[`defaultValue${k}`] || s.defaultValue;
2782
+ let R = d;
2783
+ w && !d && v && (R = b);
2784
+ const N = mr(R), L = Object.prototype.toString.apply(R);
2785
+ if (w && R && N && E.indexOf(L) < 0 && !(q(T) && Array.isArray(R))) {
2779
2786
  if (!s.returnObjects && !this.options.returnObjects) {
2780
2787
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2781
- const I = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, _, {
2788
+ const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, R, {
2782
2789
  ...s,
2783
2790
  ns: l
2784
2791
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
2785
- return a ? (m.res = I, m.usedParams = this.getUsedParamsDetails(s), m) : I;
2792
+ return a ? (m.res = A, m.usedParams = this.getUsedParamsDetails(s), m) : A;
2786
2793
  }
2787
2794
  if (i) {
2788
- const I = Array.isArray(_), F = I ? [] : {}, A = I ? S : y;
2789
- for (const V in _)
2790
- if (Object.prototype.hasOwnProperty.call(_, V)) {
2791
- const K = `${A}${i}${V}`;
2792
- b && !d ? F[V] = this.translate(K, {
2795
+ const A = Array.isArray(R), V = A ? [] : {}, I = A ? S : y;
2796
+ for (const F in R)
2797
+ if (Object.prototype.hasOwnProperty.call(R, F)) {
2798
+ const z = `${I}${i}${F}`;
2799
+ v && !d ? V[F] = this.translate(z, {
2793
2800
  ...s,
2794
- defaultValue: mr(v) ? v[V] : void 0,
2801
+ defaultValue: mr(b) ? b[F] : void 0,
2795
2802
  joinArrays: !1,
2796
2803
  ns: l
2797
- }) : F[V] = this.translate(K, {
2804
+ }) : V[F] = this.translate(z, {
2798
2805
  ...s,
2799
2806
  joinArrays: !1,
2800
2807
  ns: l
2801
- }), F[V] === K && (F[V] = _[V]);
2808
+ }), V[F] === z && (V[F] = R[F]);
2802
2809
  }
2803
- d = F;
2810
+ d = V;
2804
2811
  }
2805
- } else if (w && z(T) && Array.isArray(d))
2812
+ } else if (w && q(T) && Array.isArray(d))
2806
2813
  d = d.join(T), d && (d = this.extendTranslation(d, e, s, n));
2807
2814
  else {
2808
- let I = !1, F = !1;
2809
- !this.isValidLookup(d) && b && (I = !0, d = v), this.isValidLookup(d) || (F = !0, d = o);
2810
- const V = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : d, K = b && v !== d && this.options.updateMissing;
2811
- if (F || I || K) {
2812
- if (this.logger.log(K ? "updateKey" : "missingKey", u, c, o, K ? v : d), i) {
2815
+ let A = !1, V = !1;
2816
+ !this.isValidLookup(d) && v && (A = !0, d = b), this.isValidLookup(d) || (V = !0, d = o);
2817
+ const F = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && V ? void 0 : d, z = v && b !== d && this.options.updateMissing;
2818
+ if (V || A || z) {
2819
+ if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? b : d), i) {
2813
2820
  const x = this.resolve(o, {
2814
2821
  ...s,
2815
2822
  keySeparator: !1
@@ -2822,19 +2829,19 @@ class dt extends yt {
2822
2829
  for (let x = 0; x < Y.length; x++)
2823
2830
  J.push(Y[x]);
2824
2831
  else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(s.lng || this.language) : J.push(s.lng || this.language);
2825
- const h = (x, D, L) => {
2832
+ const h = (x, _, $) => {
2826
2833
  var P;
2827
- const j = b && L !== d ? L : V;
2828
- this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, D, j, K, s) : (P = this.backendConnector) != null && P.saveMissing && this.backendConnector.saveMissing(x, c, D, j, K, s), this.emit("missingKey", x, c, D, d);
2834
+ const j = v && $ !== d ? $ : F;
2835
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, _, j, z, s) : (P = this.backendConnector) != null && P.saveMissing && this.backendConnector.saveMissing(x, c, _, j, z, s), this.emit("missingKey", x, c, _, d);
2829
2836
  };
2830
2837
  this.options.saveMissing && (this.options.saveMissingPlurals && O ? J.forEach((x) => {
2831
- const D = this.pluralResolver.getSuffixes(x, s);
2832
- C && s[`defaultValue${this.options.pluralSeparator}zero`] && D.indexOf(`${this.options.pluralSeparator}zero`) < 0 && D.push(`${this.options.pluralSeparator}zero`), D.forEach((L) => {
2833
- h([x], o + L, s[`defaultValue${L}`] || v);
2838
+ const _ = this.pluralResolver.getSuffixes(x, s);
2839
+ C && s[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach(($) => {
2840
+ h([x], o + $, s[`defaultValue${$}`] || b);
2834
2841
  });
2835
- }) : h(J, o, v));
2842
+ }) : h(J, o, b));
2836
2843
  }
2837
- d = this.extendTranslation(d, e, s, m, n), F && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (F || I) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, I ? d : void 0, s));
2844
+ d = this.extendTranslation(d, e, s, m, n), V && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (V || A) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, A ? d : void 0, s));
2838
2845
  }
2839
2846
  return a ? (m.res = d, m.usedParams = this.getUsedParamsDetails(s), m) : d;
2840
2847
  }
@@ -2855,13 +2862,13 @@ class dt extends yt {
2855
2862
  ...n.interpolation
2856
2863
  }
2857
2864
  });
2858
- const f = z(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2865
+ const f = q(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2859
2866
  let u;
2860
2867
  if (f) {
2861
2868
  const m = e.match(this.interpolator.nestingRegexp);
2862
2869
  u = m && m.length;
2863
2870
  }
2864
- let p = n.replace && !z(n.replace) ? n.replace : n;
2871
+ let p = n.replace && !q(n.replace) ? n.replace : n;
2865
2872
  if (this.options.interpolation.defaultVariables && (p = {
2866
2873
  ...this.options.interpolation.defaultVariables,
2867
2874
  ...p
@@ -2871,7 +2878,7 @@ class dt extends yt {
2871
2878
  }
2872
2879
  !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
2873
2880
  }
2874
- const i = n.postProcess || this.options.postProcess, o = z(i) ? [i] : i;
2881
+ const i = n.postProcess || this.options.postProcess, o = q(i) ? [i] : i;
2875
2882
  return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Nr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2876
2883
  i18nResolved: {
2877
2884
  ...s,
@@ -2882,34 +2889,34 @@ class dt extends yt {
2882
2889
  }
2883
2890
  resolve(e, t = {}) {
2884
2891
  let n, s, a, i, o;
2885
- return z(e) && (e = [e]), e.forEach((l) => {
2892
+ return q(e) && (e = [e]), e.forEach((l) => {
2886
2893
  if (this.isValidLookup(n)) return;
2887
2894
  const c = this.extractFromKey(l, t), f = c.key;
2888
2895
  s = f;
2889
2896
  let u = c.namespaces;
2890
2897
  this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
2891
- const p = t.count !== void 0 && !z(t.count), m = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (z(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2898
+ const p = t.count !== void 0 && !q(t.count), m = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (q(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2892
2899
  u.forEach((S) => {
2893
2900
  var E, T;
2894
2901
  this.isValidLookup(n) || (o = S, !hr[`${y[0]}-${S}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((T = this.utils) != null && T.hasLoadedNamespace(o)) && (hr[`${y[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${y.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!!!")), y.forEach((w) => {
2895
- var R;
2902
+ var D;
2896
2903
  if (this.isValidLookup(n)) return;
2897
2904
  i = w;
2898
2905
  const O = [f];
2899
- if ((R = this.i18nFormat) != null && R.addLookupKeys)
2906
+ if ((D = this.i18nFormat) != null && D.addLookupKeys)
2900
2907
  this.i18nFormat.addLookupKeys(O, f, w, S, t);
2901
2908
  else {
2902
- let N;
2903
- p && (N = this.pluralResolver.getSuffix(w, t.count, t));
2904
- const C = `${this.options.pluralSeparator}zero`, v = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2905
- if (p && (O.push(f + N), t.ordinal && N.indexOf(v) === 0 && O.push(f + N.replace(v, this.options.pluralSeparator)), m && O.push(f + C)), d) {
2906
- const _ = `${f}${this.options.contextSeparator}${t.context}`;
2907
- O.push(_), p && (O.push(_ + N), t.ordinal && N.indexOf(v) === 0 && O.push(_ + N.replace(v, this.options.pluralSeparator)), m && O.push(_ + C));
2909
+ let k;
2910
+ p && (k = this.pluralResolver.getSuffix(w, t.count, t));
2911
+ const C = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2912
+ if (p && (O.push(f + k), t.ordinal && k.indexOf(b) === 0 && O.push(f + k.replace(b, this.options.pluralSeparator)), m && O.push(f + C)), d) {
2913
+ const R = `${f}${this.options.contextSeparator}${t.context}`;
2914
+ O.push(R), p && (O.push(R + k), t.ordinal && k.indexOf(b) === 0 && O.push(R + k.replace(b, this.options.pluralSeparator)), m && O.push(R + C));
2908
2915
  }
2909
2916
  }
2910
- let b;
2911
- for (; b = O.pop(); )
2912
- this.isValidLookup(n) || (a = b, n = this.getResource(w, S, b, t));
2917
+ let v;
2918
+ for (; v = O.pop(); )
2919
+ this.isValidLookup(n) || (a = v, n = this.getResource(w, S, v, t));
2913
2920
  }));
2914
2921
  });
2915
2922
  }), {
@@ -2928,7 +2935,7 @@ class dt extends yt {
2928
2935
  return (a = this.i18nFormat) != null && a.getResource ? this.i18nFormat.getResource(e, t, n, s) : this.resourceStore.getResource(e, t, n, s);
2929
2936
  }
2930
2937
  getUsedParamsDetails(e = {}) {
2931
- const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !z(e.replace);
2938
+ const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !q(e.replace);
2932
2939
  let s = n ? e.replace : e;
2933
2940
  if (n && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
2934
2941
  ...this.options.interpolation.defaultVariables,
@@ -2965,7 +2972,7 @@ class gr {
2965
2972
  return this.formatLanguageCode(t[0]);
2966
2973
  }
2967
2974
  formatLanguageCode(e) {
2968
- if (z(e) && e.indexOf("-") > -1) {
2975
+ if (q(e) && e.indexOf("-") > -1) {
2969
2976
  let t;
2970
2977
  try {
2971
2978
  t = Intl.getCanonicalLocales(e)[0];
@@ -3000,7 +3007,7 @@ class gr {
3000
3007
  }
3001
3008
  getFallbackCodes(e, t) {
3002
3009
  if (!e) return [];
3003
- if (typeof e == "function" && (e = e(t)), z(e) && (e = [e]), Array.isArray(e)) return e;
3010
+ if (typeof e == "function" && (e = e(t)), q(e) && (e = [e]), Array.isArray(e)) return e;
3004
3011
  if (!t) return e.default || [];
3005
3012
  let n = e[t];
3006
3013
  return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [];
@@ -3009,7 +3016,7 @@ class gr {
3009
3016
  const n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), s = [], a = (i) => {
3010
3017
  i && (this.isSupportedCode(i) ? s.push(i) : this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`));
3011
3018
  };
3012
- return z(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : z(e) && a(this.formatLanguageCode(e)), n.forEach((i) => {
3019
+ return q(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : q(e) && a(this.formatLanguageCode(e)), n.forEach((i) => {
3013
3020
  s.indexOf(i) < 0 && a(this.formatLanguageCode(i));
3014
3021
  }), s;
3015
3022
  }
@@ -3075,8 +3082,8 @@ class Yn {
3075
3082
  }
3076
3083
  }
3077
3084
  const vr = (r, e, t, n = ".", s = !0) => {
3078
- let a = In(r, e, t);
3079
- return !a && s && z(t) && (a = $t(r, t, n), a === void 0 && (a = $t(e, t, n))), a;
3085
+ let a = An(r, e, t);
3086
+ return !a && s && q(t) && (a = $t(r, t, n), a === void 0 && (a = $t(e, t, n))), a;
3080
3087
  }, _t = (r) => r.replace(/\$/g, "$$$$");
3081
3088
  class Un {
3082
3089
  constructor(e = {}) {
@@ -3106,7 +3113,7 @@ class Un {
3106
3113
  maxReplaces: E,
3107
3114
  alwaysFormat: T
3108
3115
  } = e.interpolation;
3109
- this.escape = t !== void 0 ? t : An, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ae(a) : i || "{{", this.suffix = o ? Ae(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Ae(p) : m || Ae("$t("), this.nestingSuffix = d ? Ae(d) : y || Ae(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp();
3116
+ this.escape = t !== void 0 ? t : Pn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : i || "{{", this.suffix = o ? Pe(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Pe(p) : m || Pe("$t("), this.nestingSuffix = d ? Pe(d) : y || Pe(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp();
3110
3117
  }
3111
3118
  reset() {
3112
3119
  this.options && this.init(this.options);
@@ -3148,7 +3155,7 @@ class Un {
3148
3155
  if (i = c(y), i === void 0)
3149
3156
  if (typeof f == "function") {
3150
3157
  const E = f(e, a, s);
3151
- i = z(E) ? E : "";
3158
+ i = q(E) ? E : "";
3152
3159
  } else if (s && Object.prototype.hasOwnProperty.call(s, y))
3153
3160
  i = "";
3154
3161
  else if (u) {
@@ -3156,7 +3163,7 @@ class Un {
3156
3163
  continue;
3157
3164
  } else
3158
3165
  this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), i = "";
3159
- else !z(i) && !this.useRawValueToEscape && (i = cr(i));
3166
+ else !q(i) && !this.useRawValueToEscape && (i = cr(i));
3160
3167
  const S = d.safeValue(i);
3161
3168
  if (e = e.replace(a[0], S), u ? (d.regex.lastIndex += i.length, d.regex.lastIndex -= a[0].length) : d.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3162
3169
  break;
@@ -3187,14 +3194,14 @@ class Un {
3187
3194
  let l = [];
3188
3195
  i = {
3189
3196
  ...n
3190
- }, i = i.replace && !z(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
3197
+ }, i = i.replace && !q(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
3191
3198
  let c = !1;
3192
3199
  if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
3193
3200
  const f = s[1].split(this.formatSeparator).map((u) => u.trim());
3194
3201
  s[1] = f.shift(), l = f, c = !0;
3195
3202
  }
3196
- if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !z(a)) return a;
3197
- z(a) || (a = cr(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = l.reduce((f, u) => this.format(f, u, n.lng, {
3203
+ if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !q(a)) return a;
3204
+ q(a) || (a = cr(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = l.reduce((f, u) => this.format(f, u, n.lng, {
3198
3205
  ...n,
3199
3206
  interpolationkey: s[1].trim()
3200
3207
  }), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
@@ -3399,7 +3406,7 @@ class Kn extends yt {
3399
3406
  prepareLoading(e, t, n = {}, s) {
3400
3407
  if (!this.backend)
3401
3408
  return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
3402
- z(e) && (e = this.languageUtils.toResolveHierarchy(e)), z(t) && (t = [t]);
3409
+ q(e) && (e = this.languageUtils.toResolveHierarchy(e)), q(t) && (t = [t]);
3403
3410
  const a = this.queueLoad(e, t, n, s);
3404
3411
  if (!a.toLoad.length)
3405
3412
  return a.pending.length || s(), null;
@@ -3483,7 +3490,7 @@ const Sr = () => ({
3483
3490
  appendNamespaceToCIMode: !1,
3484
3491
  overloadTranslationOptionHandler: (r) => {
3485
3492
  let e = {};
3486
- if (typeof r[1] == "object" && (e = r[1]), z(r[1]) && (e.defaultValue = r[1]), z(r[2]) && (e.tDescription = r[2]), typeof r[2] == "object" || typeof r[3] == "object") {
3493
+ if (typeof r[1] == "object" && (e = r[1]), q(r[1]) && (e.defaultValue = r[1]), q(r[2]) && (e.tDescription = r[2]), typeof r[2] == "object" || typeof r[3] == "object") {
3487
3494
  const t = r[3] || r[2];
3488
3495
  Object.keys(t).forEach((n) => {
3489
3496
  e[n] = t[n];
@@ -3507,7 +3514,7 @@ const Sr = () => ({
3507
3514
  cacheInBuiltFormats: !0
3508
3515
  }), wr = (r) => {
3509
3516
  var e, t;
3510
- return z(r.ns) && (r.ns = [r.ns]), z(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), z(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
3517
+ return q(r.ns) && (r.ns = [r.ns]), q(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), q(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
3511
3518
  }, tt = () => {
3512
3519
  }, qn = (r) => {
3513
3520
  Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
@@ -3527,7 +3534,7 @@ class He extends yt {
3527
3534
  }
3528
3535
  }
3529
3536
  init(e = {}, t) {
3530
- this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3537
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (q(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3531
3538
  const n = Sr();
3532
3539
  this.options = {
3533
3540
  ...n,
@@ -3579,7 +3586,7 @@ class He extends yt {
3579
3586
  loadResources(e, t = tt) {
3580
3587
  var a, i;
3581
3588
  let n = t;
3582
- const s = z(e) ? e : this.language;
3589
+ const s = q(e) ? e : this.language;
3583
3590
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3584
3591
  if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3585
3592
  const o = [], l = (c) => {
@@ -3628,7 +3635,7 @@ class He extends yt {
3628
3635
  }, i = (o) => {
3629
3636
  var f, u;
3630
3637
  !e && !o && this.services.languageDetector && (o = []);
3631
- const l = z(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(z(o) ? [o] : o);
3638
+ const l = q(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(q(o) ? [o] : o);
3632
3639
  c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (p) => {
3633
3640
  a(p, c);
3634
3641
  });
@@ -3645,7 +3652,7 @@ class He extends yt {
3645
3652
  let f;
3646
3653
  return l.keyPrefix && Array.isArray(a) ? f = a.map((u) => `${l.keyPrefix}${c}${u}`) : f = l.keyPrefix ? `${l.keyPrefix}${c}${a}` : a, this.t(f, l);
3647
3654
  };
3648
- return z(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
3655
+ return q(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
3649
3656
  }
3650
3657
  t(...e) {
3651
3658
  var t;
@@ -3677,7 +3684,7 @@ class He extends yt {
3677
3684
  }
3678
3685
  loadNamespaces(e, t) {
3679
3686
  const n = Ue();
3680
- return this.options.ns ? (z(e) && (e = [e]), e.forEach((s) => {
3687
+ return this.options.ns ? (q(e) && (e = [e]), e.forEach((s) => {
3681
3688
  this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
3682
3689
  }), this.loadResources((s) => {
3683
3690
  n.resolve(), t && t(s);
@@ -3685,7 +3692,7 @@ class He extends yt {
3685
3692
  }
3686
3693
  loadLanguages(e, t) {
3687
3694
  const n = Ue();
3688
- z(e) && (e = [e]);
3695
+ q(e) && (e = [e]);
3689
3696
  const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
3690
3697
  return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
3691
3698
  n.resolve(), t && t(i);
@@ -3866,7 +3873,7 @@ ie.init({
3866
3873
  }
3867
3874
  });
3868
3875
  const fs = (r, e, t, n) => ie.format(r, e, t || ie.language, n), ds = (r, e) => ie.t(r, e);
3869
- function Ie() {
3876
+ function Ae() {
3870
3877
  const r = ue(
3871
3878
  (n, s, a, i) => fs(n, s, a || void 0, i),
3872
3879
  []
@@ -3889,75 +3896,79 @@ const kr = ({
3889
3896
  _changeOnEnter: l = !1,
3890
3897
  onChange: c,
3891
3898
  onOptionsRequest: f,
3892
- _multiActiveIndex: u,
3893
- ...p
3899
+ onBlur: u,
3900
+ _multiActiveIndex: p,
3901
+ ...m
3894
3902
  }) => {
3895
- const m = ce(null), [d, y] = G(r), [S, E] = G(e), { translate: T } = Ie(), [w, O] = G(!1), [b, R] = G(t || []), [N, C] = G(0), [v, _] = G([r]), { anchorRef: k, targetRef: $, anchorWidth: I } = ht({
3903
+ const d = ce(null), [y, S] = G(r), [E, T] = G(e), { translate: w } = Ae(), [O, v] = G(!1), [D, k] = G(t || []), [C, b] = G(0), [R, N] = G([r]), { anchorRef: L, targetRef: A, anchorWidth: V } = ht({
3896
3904
  position: "bottom",
3897
- enabled: w
3898
- }), F = ue(() => {
3899
- var h;
3900
- O(!1), (h = m == null ? void 0 : m.current) == null || h.focus();
3905
+ enabled: O
3906
+ }), I = ue(() => {
3907
+ var _;
3908
+ v(!1), (_ = d == null ? void 0 : d.current) == null || _.focus();
3901
3909
  }, []);
3902
- gt($, w, () => F());
3903
- const A = jn(400), V = (h) => {
3904
- h.length >= a ? o && f && A(async () => {
3905
- const x = await f(o, h);
3906
- R(x), C(x.length > 0 ? 0 : -1), O(!0);
3907
- }) : F(), y(h), E(e), l || c == null || c(h, e);
3908
- }, K = (h) => {
3909
- l ? (y(""), E("")) : (y(h.id), E(h.label)), c == null || c(h.id, h.label);
3910
- const x = b.findIndex((D) => D.id === h.id);
3911
- C(x), _([h.id]), F();
3912
- }, J = (h) => {
3913
- h.key === "Escape" && (F(), C(-1));
3914
- }, Y = (h) => {
3915
- if ((h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(), w)) {
3916
- const x = h.key === "ArrowDown" ? (N + 1) % b.length : (N - 1 + b.length) % b.length;
3917
- C(x);
3918
- }
3919
- switch (h.key) {
3910
+ gt([A], O, () => I());
3911
+ const F = jn(400), z = (_) => {
3912
+ _.length >= a ? o && f && F(async () => {
3913
+ const $ = await f(o, _);
3914
+ k($), b($.length > 0 ? 0 : -1), v(!0);
3915
+ }) : I(), S(_), T(e), l || c == null || c(_, e);
3916
+ }, J = () => {
3917
+ O || u == null || u();
3918
+ }, Y = (_) => {
3919
+ l ? (S(""), T("")) : (S(_.id), T(_.label)), c == null || c(_.id, _.label);
3920
+ const $ = D.findIndex((j) => j.id === _.id);
3921
+ b($), N([_.id]), I();
3922
+ }, h = (_) => {
3923
+ _.key === "Escape" && (I(), b(-1));
3924
+ }, x = (_) => {
3925
+ if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), O)) {
3926
+ const $ = _.key === "ArrowDown" ? (C + 1) % D.length : (C - 1 + D.length) % D.length;
3927
+ b($);
3928
+ }
3929
+ switch (_.key) {
3920
3930
  case "Enter":
3921
- N >= 0 && N < b.length ? K(b[N]) : l && (c == null || c(d, ""), F(), y(""), E(""));
3931
+ C >= 0 && C < D.length ? Y(D[C]) : l && (c == null || c(y, ""), I(), S(""), T(""));
3922
3932
  break;
3923
3933
  case "Escape":
3924
- F(), C(-1);
3934
+ I(), b(-1);
3925
3935
  break;
3926
3936
  }
3927
3937
  };
3928
3938
  return /* @__PURE__ */ g.jsxs("div", { "data-component": "autocomplete", children: [
3929
3939
  /* @__PURE__ */ g.jsx(
3930
- At,
3940
+ Pt,
3931
3941
  {
3932
- ...p,
3933
- bindValue: d,
3934
- optionalDisplayValue: S,
3942
+ ...m,
3943
+ bindValue: y,
3944
+ optionalDisplayValue: E,
3935
3945
  displayMode: n,
3936
3946
  isEditable: i,
3937
3947
  shapeIcon: "magnify",
3938
- placeholder: T(
3948
+ placeholder: w(
3939
3949
  Oe.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
3940
3950
  ),
3941
- ref: k,
3942
- inputRef: m,
3943
- onChange: V,
3944
- onKeyDown: Y,
3951
+ ref: L,
3952
+ inputRef: d,
3953
+ onChange: z,
3954
+ onKeyDown: x,
3955
+ onBlur: J,
3945
3956
  "aria-autocomplete": "list"
3946
3957
  }
3947
3958
  ),
3948
- w && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
3949
- Pr,
3959
+ O && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
3960
+ Ir,
3950
3961
  {
3951
- options: b,
3962
+ options: D,
3952
3963
  displayMode: s,
3953
- onClick: K,
3954
- ref: $,
3955
- selectedIndex: N,
3956
- activeIndex: u || v,
3957
- width: I,
3964
+ onClick: Y,
3965
+ ref: A,
3966
+ selectedIndex: C,
3967
+ activeIndex: p || R,
3968
+ width: V,
3958
3969
  showFilter: !1,
3959
- onKeyDown: J,
3960
- isOpen: w
3970
+ onKeyDown: h,
3971
+ isOpen: O
3961
3972
  }
3962
3973
  ) })
3963
3974
  ] });
@@ -3990,7 +4001,7 @@ const kr = ({
3990
4001
  const E = {
3991
4002
  container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
3992
4003
  }, T = y == null ? void 0 : y.map((w, O) => {
3993
- const b = {
4004
+ const v = {
3994
4005
  bindValue: w.id,
3995
4006
  optionalDisplayValue: w.label,
3996
4007
  fun: w.fun,
@@ -4008,7 +4019,7 @@ const kr = ({
4008
4019
  m == null || m(w.id, w.fun);
4009
4020
  }
4010
4021
  };
4011
- return /* @__PURE__ */ g.jsx(De, { ...b }, `button-${O}`);
4022
+ return /* @__PURE__ */ g.jsx(De, { ...v }, `button-${O}`);
4012
4023
  });
4013
4024
  return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: T });
4014
4025
  }, hs = {
@@ -4159,26 +4170,26 @@ const gs = ({
4159
4170
  multiActiveIndex: c,
4160
4171
  ...f
4161
4172
  }) => {
4162
- const u = ce(null), [p, m] = G(!1), [d, y] = G(t), [S, E] = G(-1), [T, w] = G([r]), O = Re(), { anchorRef: b, targetRef: R, anchorWidth: N } = ht({
4173
+ const u = ce(null), [p, m] = G(!1), [d, y] = G(t), [S, E] = G(-1), [T, w] = G([r]), O = Re(), { anchorRef: v, targetRef: D, anchorWidth: k } = ht({
4163
4174
  position: "bottom",
4164
4175
  enabled: p
4165
4176
  }), C = ue(() => {
4166
- var I;
4167
- m(!1), (I = u == null ? void 0 : u.current) == null || I.focus();
4177
+ var A;
4178
+ m(!1), (A = u == null ? void 0 : u.current) == null || A.focus();
4168
4179
  }, []);
4169
- gt(R, p, () => C()), kt(p, R);
4170
- const v = (I) => {
4171
- e == null || e(I.id, I.label);
4172
- const F = d.findIndex((A) => A.id === I.id);
4173
- E(F), w([I.id]), C();
4174
- }, _ = (I) => {
4175
- I.key === "Escape" && (C(), E(-1));
4176
- }, k = (I) => {
4177
- (I.key === "ArrowDown" || I.key === "ArrowUp") && (I.preventDefault(), $());
4178
- }, $ = () => {
4179
- o && l && l(o, void 0).then((I) => {
4180
- y(I), E(I.length > 0 ? 0 : -1), m(!0);
4181
- });
4180
+ gt([D, v], p, () => C()), kt(p, D);
4181
+ const b = (A) => {
4182
+ e == null || e(A.id, A.label);
4183
+ const V = d.findIndex((I) => I.id === A.id);
4184
+ E(V), w([A.id]), C();
4185
+ }, R = (A) => {
4186
+ A.key === "Escape" && (C(), E(-1));
4187
+ }, N = (A) => {
4188
+ (A.key === "ArrowDown" || A.key === "ArrowUp") && (A.preventDefault(), L());
4189
+ }, L = () => {
4190
+ s && (o && l ? p ? m(!1) : l(o, void 0).then((A) => {
4191
+ y(A), E(A.length > 0 ? 0 : -1), m(!0);
4192
+ }) : m((A) => !A));
4182
4193
  };
4183
4194
  return /* @__PURE__ */ g.jsxs(
4184
4195
  "div",
@@ -4190,36 +4201,37 @@ const gs = ({
4190
4201
  "data-component": "combobox",
4191
4202
  children: [
4192
4203
  /* @__PURE__ */ g.jsx(
4193
- At,
4204
+ Pt,
4194
4205
  {
4195
4206
  ...f,
4196
4207
  bindValue: r,
4197
4208
  optionalDisplayValue: n,
4198
4209
  displayMode: a,
4199
- onShapeIconClick: $,
4200
- onKeyDown: k,
4210
+ onShapeIconClick: L,
4211
+ onKeyDown: N,
4212
+ onClick: L,
4201
4213
  shapeIcon: "arrow_drop_down",
4202
4214
  rotatedShapeIcon: p,
4203
4215
  isEditable: s,
4204
- ref: b,
4216
+ ref: v,
4205
4217
  inputRef: u,
4206
4218
  "aria-autocomplete": "list",
4207
4219
  variant: "notSelectable"
4208
4220
  }
4209
4221
  ),
4210
4222
  p && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
4211
- Pr,
4223
+ Ir,
4212
4224
  {
4213
4225
  id: O,
4214
4226
  options: d,
4215
4227
  displayMode: i,
4216
- ref: R,
4228
+ ref: D,
4217
4229
  isOpen: p,
4218
4230
  selectedIndex: S,
4219
4231
  activeIndex: c || T,
4220
- width: N,
4221
- onClick: v,
4222
- onKeyDown: _
4232
+ width: k,
4233
+ onClick: b,
4234
+ onKeyDown: R
4223
4235
  }
4224
4236
  ) })
4225
4237
  ]
@@ -4235,7 +4247,7 @@ function bs({
4235
4247
  initialValue: n,
4236
4248
  targetRef: s
4237
4249
  }) {
4238
- const { translate: a } = Ie(), i = () => {
4250
+ const { translate: a } = Ae(), i = () => {
4239
4251
  if (!n) return;
4240
4252
  const Y = new Date(n);
4241
4253
  return isNaN(Y.getTime()) ? void 0 : Y;
@@ -4290,37 +4302,37 @@ function bs({
4290
4302
  full: a(fe.SATURDAY)
4291
4303
  }
4292
4304
  ], O = (Y) => t.some((h) => {
4293
- const x = h.start.getTime(), D = h.end.getTime(), L = Y.getTime();
4294
- return L >= x && L <= D;
4295
- }), b = (Y) => {
4305
+ const x = h.start.getTime(), _ = h.end.getTime(), $ = Y.getTime();
4306
+ return $ >= x && $ <= _;
4307
+ }), v = (Y) => {
4296
4308
  O(Y) || (c(Y), y(Y.getDate()), e && e(_n(Y)));
4297
- }, R = () => {
4309
+ }, D = () => {
4298
4310
  f === 0 ? (u(11), m(p - 1)) : u(f - 1), y(1);
4299
- }, N = () => {
4311
+ }, k = () => {
4300
4312
  f === 11 ? (u(0), m(p + 1)) : u(f + 1), y(1);
4301
- }, C = (Y, h) => new Date(Y, h + 1, 0).getDate(), v = (Y, h) => new Date(Y, h, 1).getDay(), _ = (Y) => {
4313
+ }, C = (Y, h) => new Date(Y, h + 1, 0).getDate(), b = (Y, h) => new Date(Y, h, 1).getDay(), R = (Y) => {
4302
4314
  var x;
4303
- const h = F.findIndex(
4304
- (D) => D !== null && D.getDate() === Y
4315
+ const h = V.findIndex(
4316
+ (_) => _ !== null && _.getDate() === Y
4305
4317
  );
4306
4318
  h !== -1 && E.current[h] && ((x = E.current[h]) == null || x.focus(), y(Y));
4307
- }, k = (Y, h) => {
4308
- const x = F[h];
4319
+ }, N = (Y, h) => {
4320
+ const x = V[h];
4309
4321
  if (!x) return;
4310
- const D = C(p, f), L = x.getDate();
4322
+ const _ = C(p, f), $ = x.getDate();
4311
4323
  switch (Y.key) {
4312
4324
  case "ArrowRight":
4313
4325
  Y.preventDefault();
4314
4326
  {
4315
- let j = L + 1, P = new Date(p, f, j);
4316
- if (j > D) {
4317
- const W = f === 11 ? p + 1 : p, B = f === 11 ? 0 : f + 1;
4318
- j = 1, P = new Date(W, B, j), N(), setTimeout(() => {
4319
- $(1, "forward");
4327
+ let j = $ + 1, P = new Date(p, f, j);
4328
+ if (j > _) {
4329
+ const U = f === 11 ? p + 1 : p, B = f === 11 ? 0 : f + 1;
4330
+ j = 1, P = new Date(U, B, j), k(), setTimeout(() => {
4331
+ L(1, "forward");
4320
4332
  }, 0);
4321
4333
  return;
4322
4334
  }
4323
- O(P) ? $(j, "forward") : _(j);
4335
+ O(P) ? L(j, "forward") : R(j);
4324
4336
  }
4325
4337
  break;
4326
4338
  case "Tab":
@@ -4328,67 +4340,67 @@ function bs({
4328
4340
  case "ArrowLeft":
4329
4341
  Y.preventDefault();
4330
4342
  {
4331
- let j = L - 1, P = new Date(p, f, j);
4343
+ let j = $ - 1, P = new Date(p, f, j);
4332
4344
  if (j < 1) {
4333
- const W = f === 0 ? p - 1 : p, B = f === 0 ? 11 : f - 1, U = C(W, B);
4334
- j = U, P = new Date(W, B, j), R(), setTimeout(() => {
4335
- $(U, "backward");
4345
+ const U = f === 0 ? p - 1 : p, B = f === 0 ? 11 : f - 1, W = C(U, B);
4346
+ j = W, P = new Date(U, B, j), D(), setTimeout(() => {
4347
+ L(W, "backward");
4336
4348
  }, 0);
4337
4349
  return;
4338
4350
  }
4339
- O(P) ? $(j, "backward") : _(j);
4351
+ O(P) ? L(j, "backward") : R(j);
4340
4352
  }
4341
4353
  break;
4342
4354
  case "ArrowUp":
4343
4355
  Y.preventDefault();
4344
4356
  {
4345
- let j = L - 7, P = new Date(p, f, j);
4357
+ let j = $ - 7, P = new Date(p, f, j);
4346
4358
  if (j < 1) {
4347
- const W = f === 0 ? p - 1 : p, B = f === 0 ? 11 : f - 1;
4348
- j = C(W, B) + j, P = new Date(W, B, j), R(), setTimeout(() => {
4349
- $(j, "backward");
4359
+ const U = f === 0 ? p - 1 : p, B = f === 0 ? 11 : f - 1;
4360
+ j = C(U, B) + j, P = new Date(U, B, j), D(), setTimeout(() => {
4361
+ L(j, "backward");
4350
4362
  }, 0);
4351
4363
  return;
4352
4364
  }
4353
- O(P) ? $(j, "backward") : _(j);
4365
+ O(P) ? L(j, "backward") : R(j);
4354
4366
  }
4355
4367
  break;
4356
4368
  case "ArrowDown":
4357
4369
  Y.preventDefault();
4358
4370
  {
4359
- let j = L + 7, P = new Date(p, f, j);
4360
- if (j > D) {
4361
- const W = f === 11 ? p + 1 : p, B = f === 11 ? 0 : f + 1;
4362
- j = j - D, P = new Date(W, B, j), N(), setTimeout(() => {
4363
- $(j, "forward");
4371
+ let j = $ + 7, P = new Date(p, f, j);
4372
+ if (j > _) {
4373
+ const U = f === 11 ? p + 1 : p, B = f === 11 ? 0 : f + 1;
4374
+ j = j - _, P = new Date(U, B, j), k(), setTimeout(() => {
4375
+ L(j, "forward");
4364
4376
  }, 0);
4365
4377
  return;
4366
4378
  }
4367
- O(P) ? $(j, "forward") : _(j);
4379
+ O(P) ? L(j, "forward") : R(j);
4368
4380
  }
4369
4381
  break;
4370
4382
  case "Home":
4371
- Y.preventDefault(), $(1, "forward");
4383
+ Y.preventDefault(), L(1, "forward");
4372
4384
  break;
4373
4385
  case "End":
4374
- Y.preventDefault(), $(D, "backward");
4386
+ Y.preventDefault(), L(_, "backward");
4375
4387
  break;
4376
4388
  case "PageUp":
4377
- Y.preventDefault(), R(), setTimeout(() => {
4389
+ Y.preventDefault(), D(), setTimeout(() => {
4378
4390
  const j = C(
4379
4391
  f === 0 ? p - 1 : p,
4380
4392
  f === 0 ? 11 : f - 1
4381
- ), P = Math.min(L, j);
4382
- $(P, "forward");
4393
+ ), P = Math.min($, j);
4394
+ L(P, "forward");
4383
4395
  }, 0);
4384
4396
  break;
4385
4397
  case "PageDown":
4386
- Y.preventDefault(), N(), setTimeout(() => {
4398
+ Y.preventDefault(), k(), setTimeout(() => {
4387
4399
  const j = C(
4388
4400
  f === 11 ? p + 1 : p,
4389
4401
  f === 11 ? 0 : f + 1
4390
- ), P = Math.min(L, j);
4391
- $(P, "forward");
4402
+ ), P = Math.min($, j);
4403
+ L(P, "forward");
4392
4404
  }, 0);
4393
4405
  break;
4394
4406
  case " ":
@@ -4397,77 +4409,77 @@ function bs({
4397
4409
  y(x.getDate()), c(x);
4398
4410
  break;
4399
4411
  case "Enter":
4400
- Y.preventDefault(), b(x);
4412
+ Y.preventDefault(), v(x);
4401
4413
  break;
4402
4414
  }
4403
- }, $ = (Y, h) => {
4415
+ }, L = (Y, h) => {
4404
4416
  const x = C(p, f);
4405
4417
  if (h === "forward") {
4406
- for (let D = Y; D <= x; D++) {
4407
- const L = new Date(p, f, D);
4408
- if (!O(L)) {
4409
- _(D);
4418
+ for (let _ = Y; _ <= x; _++) {
4419
+ const $ = new Date(p, f, _);
4420
+ if (!O($)) {
4421
+ R(_);
4410
4422
  return;
4411
4423
  }
4412
4424
  }
4413
- N(), setTimeout(() => {
4414
- $(1, "forward");
4425
+ k(), setTimeout(() => {
4426
+ L(1, "forward");
4415
4427
  }, 0);
4416
4428
  } else {
4417
4429
  for (let P = Y; P >= 1; P--) {
4418
- const W = new Date(p, f, P);
4419
- if (!O(W)) {
4420
- _(P);
4430
+ const U = new Date(p, f, P);
4431
+ if (!O(U)) {
4432
+ R(P);
4421
4433
  return;
4422
4434
  }
4423
4435
  }
4424
- const D = f === 0 ? p - 1 : p, L = f === 0 ? 11 : f - 1, j = C(D, L);
4425
- R(), setTimeout(() => {
4426
- $(j, "backward");
4436
+ const _ = f === 0 ? p - 1 : p, $ = f === 0 ? 11 : f - 1, j = C(_, $);
4437
+ D(), setTimeout(() => {
4438
+ L(j, "backward");
4427
4439
  }, 0);
4428
4440
  }
4429
- }, F = (() => {
4430
- const Y = C(p, f), h = v(p, f), x = [];
4431
- for (let D = 0; D < h; D++)
4441
+ }, V = (() => {
4442
+ const Y = C(p, f), h = b(p, f), x = [];
4443
+ for (let _ = 0; _ < h; _++)
4432
4444
  x.push(null);
4433
- for (let D = 1; D <= Y; D++) {
4434
- const L = new Date(p, f, D);
4435
- x.push(L);
4445
+ for (let _ = 1; _ <= Y; _++) {
4446
+ const $ = new Date(p, f, _);
4447
+ x.push($);
4436
4448
  }
4437
4449
  return x;
4438
- })(), A = [];
4439
- let V = [];
4440
- F.forEach((Y, h) => {
4441
- if (V.push(Y), V.length === 7 || h === F.length - 1) {
4442
- for (; V.length < 7; )
4443
- V.push(null);
4444
- A.push(V), V = [];
4450
+ })(), I = [];
4451
+ let F = [];
4452
+ V.forEach((Y, h) => {
4453
+ if (F.push(Y), F.length === 7 || h === V.length - 1) {
4454
+ for (; F.length < 7; )
4455
+ F.push(null);
4456
+ I.push(F), F = [];
4445
4457
  }
4446
4458
  }), re(() => {
4447
4459
  var Y;
4448
4460
  if (d !== null) {
4449
- const h = F.findIndex(
4461
+ const h = V.findIndex(
4450
4462
  (x) => x !== null && x.getDate() === d
4451
4463
  );
4452
4464
  h !== -1 && E.current[h] && ((Y = E.current[h]) == null || Y.focus());
4453
4465
  }
4454
- }, [f, p, d, F]);
4455
- const K = {
4466
+ }, [f, p, d, V]);
4467
+ const z = {
4456
4468
  label: "smp-datepickercalendar-label",
4457
4469
  wrapper: `smp-datepickercalendar ${ys["smp-datepickercalendar-position"]}`,
4458
4470
  calendar: "smp-datepickercalendar",
4459
4471
  table: "smp-datepickercalendar-table",
4460
4472
  th: "smp-datepickercalendar-th",
4461
- td: (Y, h, x, D) => `smp-datepickercalendar-td
4473
+ td: (Y, h, x, _) => `smp-datepickercalendar-td
4462
4474
  ${Y ? "smp-datepickercalendar-td-today" : ""}
4463
4475
  ${h ? "smp-datepickercalendar-td-selected" : ""}
4464
4476
  ${x ? "smp-datepickercalendar-td-focused" : ""}
4465
- ${D ? "smp-datepickercalendar-td-disabled" : ""}`
4477
+ ${_ ? "smp-datepickercalendar-td-disabled" : ""}`
4466
4478
  }, J = () => `${T[f]} ${p.toString()}`;
4467
4479
  return /* @__PURE__ */ g.jsxs(
4468
4480
  "div",
4469
4481
  {
4470
- className: K.wrapper,
4482
+ className: z.wrapper,
4471
4483
  ref: s,
4472
4484
  role: "dialog",
4473
4485
  tabIndex: -1,
@@ -4487,7 +4499,7 @@ function bs({
4487
4499
  /* @__PURE__ */ g.jsx(
4488
4500
  De,
4489
4501
  {
4490
- onClick: R,
4502
+ onClick: D,
4491
4503
  ariaLabel: a(Ct.PREVIOUS_MONTH),
4492
4504
  optionalDisplayValue: "<",
4493
4505
  appearance: "ghost",
@@ -4499,14 +4511,14 @@ function bs({
4499
4511
  "div",
4500
4512
  {
4501
4513
  "aria-label": J(),
4502
- className: K.label,
4514
+ className: z.label,
4503
4515
  children: J()
4504
4516
  }
4505
4517
  ),
4506
4518
  /* @__PURE__ */ g.jsx(
4507
4519
  De,
4508
4520
  {
4509
- onClick: N,
4521
+ onClick: k,
4510
4522
  ariaLabel: a(Ct.NEXT_MONTH),
4511
4523
  bindValue: ">",
4512
4524
  optionalDisplayValue: ">",
@@ -4523,57 +4535,57 @@ function bs({
4523
4535
  ref: S,
4524
4536
  role: "grid",
4525
4537
  "aria-label": `${a(Oe.CALENDAR_FOR)} ${T[f]} ${p}`,
4526
- className: K.table,
4538
+ className: z.table,
4527
4539
  children: [
4528
4540
  /* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: w.map((Y) => /* @__PURE__ */ g.jsx(
4529
4541
  "th",
4530
4542
  {
4531
4543
  scope: "col",
4532
4544
  abbr: Y.full,
4533
- className: K.th,
4545
+ className: z.th,
4534
4546
  children: Y.value
4535
4547
  },
4536
4548
  Y.value
4537
4549
  )) }) }),
4538
- /* @__PURE__ */ g.jsx("tbody", { children: A.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((x, D) => {
4539
- const L = h * 7 + D;
4550
+ /* @__PURE__ */ g.jsx("tbody", { children: I.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((x, _) => {
4551
+ const $ = h * 7 + _;
4540
4552
  if (x === null)
4541
4553
  return /* @__PURE__ */ g.jsx(
4542
4554
  "td",
4543
4555
  {
4544
- className: K.td(
4556
+ className: z.td(
4545
4557
  !1,
4546
4558
  !1,
4547
4559
  !1,
4548
4560
  !0
4549
4561
  )
4550
4562
  },
4551
- `empty-${D}`
4563
+ `empty-${_}`
4552
4564
  );
4553
- const j = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), P = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), W = d === x.getDate(), B = O(x);
4565
+ const j = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), P = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), U = d === x.getDate(), B = O(x);
4554
4566
  return /* @__PURE__ */ g.jsx(
4555
4567
  "td",
4556
4568
  {
4557
4569
  role: "gridcell",
4558
4570
  "aria-selected": P,
4559
- tabIndex: W ? 0 : -1,
4560
- onClick: () => b(x),
4561
- onKeyDown: (U) => k(U, L),
4571
+ tabIndex: U ? 0 : -1,
4572
+ onClick: () => v(x),
4573
+ onKeyDown: (W) => N(W, $),
4562
4574
  "aria-label": `${x.getDate()} ${T[x.getMonth()]} ${x.getFullYear()}`,
4563
4575
  "data-selected": P,
4564
4576
  "aria-disabled": B,
4565
- ref: (U) => {
4566
- E.current[L] = U;
4577
+ ref: (W) => {
4578
+ E.current[$] = W;
4567
4579
  },
4568
- className: K.td(
4580
+ className: z.td(
4569
4581
  j,
4570
4582
  P,
4571
- W,
4583
+ U,
4572
4584
  B
4573
4585
  ),
4574
4586
  children: x.getDate()
4575
4587
  },
4576
- `day-${D}`
4588
+ `day-${_}`
4577
4589
  );
4578
4590
  }) }, `week-${h}`)) })
4579
4591
  ]
@@ -4595,41 +4607,41 @@ const vs = ({
4595
4607
  position: "bottom",
4596
4608
  enabled: o
4597
4609
  }), y = ue(() => {
4598
- var v;
4599
- l(!1), (v = i == null ? void 0 : i.current) == null || v.focus();
4610
+ var b;
4611
+ l(!1), (b = i == null ? void 0 : i.current) == null || b.focus();
4600
4612
  }, []);
4601
- gt(d, o, () => {
4613
+ gt([d, m], o, () => {
4602
4614
  y();
4603
4615
  }), kt(o, d);
4604
- const { format: S, getCurrentLanguage: E } = Ie(), T = ue(
4605
- (v) => {
4606
- const _ = v.length > 5 && En(v, E()) || v, k = S(_, void 0, void 0, {
4616
+ const { format: S, getCurrentLanguage: E } = Ae(), T = ue(
4617
+ (b) => {
4618
+ const R = b.length > 5 && En(b, E()) || b, N = S(R, void 0, void 0, {
4607
4619
  type: "date"
4608
- }), $ = typeof _ != "string", I = $ && _.toISOString().substring(0, 10) || "";
4620
+ }), L = typeof R != "string", A = L && R.toISOString().substring(0, 10) || "";
4609
4621
  return {
4610
- isValid: $,
4611
- formattedDate: k,
4612
- isoDate: I,
4613
- normalizedDate: _
4622
+ isValid: L,
4623
+ formattedDate: N,
4624
+ isoDate: A,
4625
+ normalizedDate: R
4614
4626
  };
4615
4627
  },
4616
4628
  [E, S]
4617
4629
  );
4618
4630
  re(() => {
4619
- const { formattedDate: v, isoDate: _, isValid: k } = T(r);
4620
- f(k && _ || r), p(k && v || r);
4631
+ const { formattedDate: b, isoDate: R, isValid: N } = T(r);
4632
+ f(N && R || r), p(N && b || r);
4621
4633
  }, [r, S, T]);
4622
- const w = () => l((v) => !v), O = () => {
4623
- R(u);
4624
- }, b = (v) => {
4625
- R(v), y();
4626
- }, R = (v) => {
4627
- const { isoDate: _, isValid: k } = T(v);
4628
- t && t(k && _ || v);
4629
- }, N = (v) => {
4630
- p(v);
4631
- }, C = (v) => {
4632
- v.key === "Enter" && (v.preventDefault(), R(u));
4634
+ const w = () => l((b) => !b), O = () => {
4635
+ D(u);
4636
+ }, v = (b) => {
4637
+ D(b), y();
4638
+ }, D = (b) => {
4639
+ const { isoDate: R, isValid: N } = T(b);
4640
+ t && t(N && R || b);
4641
+ }, k = (b) => {
4642
+ p(b);
4643
+ }, C = (b) => {
4644
+ b.key === "Enter" && (b.preventDefault(), D(u));
4633
4645
  };
4634
4646
  return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
4635
4647
  /* @__PURE__ */ g.jsx(
@@ -4639,7 +4651,7 @@ const vs = ({
4639
4651
  bindValue: u,
4640
4652
  placeholder: e,
4641
4653
  onBlur: O,
4642
- onChange: N,
4654
+ onChange: k,
4643
4655
  onKeyDown: C,
4644
4656
  shapeIcon: "calendar",
4645
4657
  onShapeIconClick: w,
@@ -4654,8 +4666,8 @@ const vs = ({
4654
4666
  bs,
4655
4667
  {
4656
4668
  disabledDateRanges: n,
4657
- onDateChange: b,
4658
- initialValue: Pt(c) && c || "",
4669
+ onDateChange: v,
4670
+ initialValue: It(c) && c || "",
4659
4671
  targetRef: d
4660
4672
  }
4661
4673
  ) })
@@ -4744,7 +4756,7 @@ const vs = ({
4744
4756
  }
4745
4757
  );
4746
4758
  }, ws = ({ ...r }) => {
4747
- const [e, t] = G(r.bindValue), { translate: n } = Ie(), s = (a) => {
4759
+ const [e, t] = G(r.bindValue), { translate: n } = Ae(), s = (a) => {
4748
4760
  var i;
4749
4761
  a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
4750
4762
  };
@@ -4847,49 +4859,49 @@ const ke = (r, e, t) => ({
4847
4859
  onEnter: o,
4848
4860
  ...l
4849
4861
  }) => {
4850
- const { getCurrentLanguage: c } = Ie(), f = ce(null), u = c(), { groupingChar: p, decimalChar: m } = Wr(
4862
+ const { getCurrentLanguage: c } = Ae(), f = ce(null), u = c(), { groupingChar: p, decimalChar: m } = Wr(
4851
4863
  () => as(u, s),
4852
4864
  [u, s]
4853
4865
  ), d = ue(
4854
- ($, I) => new Intl.NumberFormat(u, {
4855
- minimumFractionDigits: I,
4856
- maximumFractionDigits: I,
4866
+ (L, A) => new Intl.NumberFormat(u, {
4867
+ minimumFractionDigits: A,
4868
+ maximumFractionDigits: A,
4857
4869
  useGrouping: !0
4858
- }).format($),
4870
+ }).format(L),
4859
4871
  [u]
4860
- ), y = ue(ls, [p, m]), S = ue(ss, [r, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [T, w] = G(E), [O, b] = G(
4872
+ ), y = ue(ls, [p, m]), S = ue(ss, [r, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [T, w] = G(E), [O, v] = G(
4861
4873
  a != null ? d(a, T) : ""
4862
- ), R = ce(a ?? null);
4874
+ ), D = ce(a ?? null);
4863
4875
  re(() => {
4864
4876
  if (a == null) {
4865
- b(""), R.current = null;
4877
+ v(""), D.current = null;
4866
4878
  return;
4867
4879
  }
4868
- const $ = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, I = $ === 0 ? T : $;
4869
- I !== T && w(I), b(d(a, I)), R.current = a;
4880
+ const L = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, A = L === 0 ? T : L;
4881
+ A !== T && w(A), v(d(a, A)), D.current = a;
4870
4882
  }, [a, d]);
4871
- const N = ue(
4872
- ($, I = !1) => {
4873
- if ($.trim() === "") {
4874
- b(""), R.current = null, i == null || i(void 0, ""), I && (o == null || o(void 0));
4883
+ const k = ue(
4884
+ (L, A = !1) => {
4885
+ if (L.trim() === "") {
4886
+ v(""), D.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
4875
4887
  return;
4876
4888
  }
4877
- const F = y($, p, m);
4878
- if (isNaN(F))
4879
- if (R.current != null) {
4880
- const A = d(R.current, T);
4881
- b(A);
4889
+ const V = y(L, p, m);
4890
+ if (isNaN(V))
4891
+ if (D.current != null) {
4892
+ const I = d(D.current, T);
4893
+ v(I);
4882
4894
  } else
4883
- b("");
4895
+ v("");
4884
4896
  else {
4885
- const A = S(F, r, e), V = os(
4886
- $,
4897
+ const I = S(V, r, e), F = os(
4898
+ L,
4887
4899
  p,
4888
4900
  m
4889
4901
  );
4890
- w(V);
4891
- const K = d(A, V);
4892
- b(K), R.current = A, i == null || i(A, K), I && (o == null || o(A));
4902
+ w(F);
4903
+ const z = d(I, F);
4904
+ v(z), D.current = I, i == null || i(I, z), A && (o == null || o(I));
4893
4905
  }
4894
4906
  },
4895
4907
  [
@@ -4904,29 +4916,29 @@ const ke = (r, e, t) => ({
4904
4916
  o,
4905
4917
  T
4906
4918
  ]
4907
- ), C = ($) => b($), v = () => N(O), _ = ($) => {
4908
- if ($.key === "Enter") {
4909
- $.preventDefault(), N(O, !0);
4919
+ ), C = (L) => v(L), b = () => k(O), R = (L) => {
4920
+ if (L.key === "Enter") {
4921
+ L.preventDefault(), k(O, !0);
4910
4922
  return;
4911
4923
  }
4912
- if ($.key === "ArrowUp" || $.key === "ArrowDown") {
4913
- $.preventDefault();
4914
- const I = $.key === "ArrowUp" ? 1 : -1, F = R.current ?? 0, A = S(F + I * t, r, e);
4915
- N(d(A, T));
4924
+ if (L.key === "ArrowUp" || L.key === "ArrowDown") {
4925
+ L.preventDefault();
4926
+ const A = L.key === "ArrowUp" ? 1 : -1, V = D.current ?? 0, I = S(V + A * t, r, e);
4927
+ k(d(I, T));
4916
4928
  }
4917
- }, k = ($) => {
4918
- if (!$.currentTarget.contains(document.activeElement)) return;
4919
- $.preventDefault();
4920
- const I = $.deltaY < 0 ? 1 : -1, F = R.current ?? 0, A = S(F + I * t, r, e);
4921
- N(d(A, T));
4929
+ }, N = (L) => {
4930
+ if (!L.currentTarget.contains(document.activeElement)) return;
4931
+ L.preventDefault();
4932
+ const A = L.deltaY < 0 ? 1 : -1, V = D.current ?? 0, I = S(V + A * t, r, e);
4933
+ k(d(I, T));
4922
4934
  };
4923
- return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: k, children: /* @__PURE__ */ g.jsx(
4935
+ return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: N, children: /* @__PURE__ */ g.jsx(
4924
4936
  Le,
4925
4937
  {
4926
4938
  ...l,
4927
4939
  "aria-valuemin": r,
4928
4940
  "aria-valuemax": e,
4929
- "aria-valuenow": R.current ?? void 0,
4941
+ "aria-valuenow": D.current ?? void 0,
4930
4942
  bindValue: O,
4931
4943
  inputType: "text",
4932
4944
  inputMode: n,
@@ -4934,8 +4946,8 @@ const ke = (r, e, t) => ({
4934
4946
  max: e,
4935
4947
  step: t,
4936
4948
  onChange: C,
4937
- onBlur: v,
4938
- onKeyDown: _
4949
+ onBlur: b,
4950
+ onKeyDown: R
4939
4951
  }
4940
4952
  ) });
4941
4953
  };
@@ -4999,8 +5011,8 @@ const _s = ({
4999
5011
  rows: m = 10,
5000
5012
  cols: d = 150
5001
5013
  }) => {
5002
- const y = Re(), S = `${y}-helper`, E = f ? "danger" : s, T = c || !!f, w = (b) => {
5003
- t == null || t(b.target.value);
5014
+ const y = Re(), S = `${y}-helper`, E = f ? "danger" : s, T = c || !!f, w = (v) => {
5015
+ t == null || t(v.target.value);
5004
5016
  }, O = {
5005
5017
  wrapper: "smp-textarea-wrapper",
5006
5018
  container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${E ? `smp-textarea-${E}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
@@ -5169,41 +5181,41 @@ const rt = {
5169
5181
  position: "bottom",
5170
5182
  enabled: i
5171
5183
  }), d = ue(() => {
5172
- var b;
5173
- o(!1), (b = a == null ? void 0 : a.current) == null || b.focus();
5184
+ var v;
5185
+ o(!1), (v = a == null ? void 0 : a.current) == null || v.focus();
5174
5186
  }, []);
5175
- gt(m, i, () => o(!1)), kt(i, m), re(() => {
5176
- const b = r || "", R = Or(b) ? b : r || "";
5177
- c(b), u(R);
5187
+ gt([m, p], i, () => o(!1)), kt(i, m), re(() => {
5188
+ const v = r || "", D = Or(v) ? v : r || "";
5189
+ c(v), u(D);
5178
5190
  }, [r]), re(() => {
5179
- const b = (R) => {
5180
- R.key === "Escape" && o(!1);
5191
+ const v = (D) => {
5192
+ D.key === "Escape" && o(!1);
5181
5193
  };
5182
- return i && document.addEventListener("keydown", b), () => {
5183
- document.removeEventListener("keydown", b);
5194
+ return i && document.addEventListener("keydown", v), () => {
5195
+ document.removeEventListener("keydown", v);
5184
5196
  };
5185
5197
  }, [i]);
5186
5198
  const y = () => {
5187
- n && o((b) => !b);
5188
- }, S = (b) => {
5189
- u(b);
5190
- }, E = (b, R, N) => {
5191
- const C = $s(b, R, N);
5199
+ n && o((v) => !v);
5200
+ }, S = (v) => {
5201
+ u(v);
5202
+ }, E = (v, D, k) => {
5203
+ const C = $s(v, D, k);
5192
5204
  c(C), u(C), t == null || t(C), d();
5193
5205
  }, T = () => {
5194
5206
  O(f);
5195
- }, w = (b) => {
5196
- b.key === "Enter" && (b.preventDefault(), O(f));
5197
- }, O = (b) => {
5198
- if (b.trim() === "") {
5207
+ }, w = (v) => {
5208
+ v.key === "Enter" && (v.preventDefault(), O(f));
5209
+ }, O = (v) => {
5210
+ if (v.trim() === "") {
5199
5211
  c(""), u(""), t == null || t("");
5200
5212
  return;
5201
5213
  }
5202
- Or(b) ? (c(b), u(b), t == null || t(b)) : u(b);
5214
+ Or(v) ? (c(v), u(v), t == null || t(v)) : u(v);
5203
5215
  };
5204
5216
  return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
5205
5217
  /* @__PURE__ */ g.jsx(
5206
- At,
5218
+ Pt,
5207
5219
  {
5208
5220
  ...s,
5209
5221
  bindValue: f,
@@ -5268,7 +5280,7 @@ const _r = /* @__PURE__ */ new Map([
5268
5280
  }
5269
5281
  }
5270
5282
  ]
5271
- ]), Is = {
5283
+ ]), As = {
5272
5284
  "smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
5273
5285
  }, _e = ({
5274
5286
  decode: r,
@@ -5304,24 +5316,24 @@ const _r = /* @__PURE__ */ new Map([
5304
5316
  label: o,
5305
5317
  isEditable: S,
5306
5318
  ...n
5307
- }, w = (v, _, k) => xn(t) ? ke(v, new ct(t, _).getLegacyValue()) : Sn(t) ? ke(v, new pt(t, _).getLegacyValue()) : ke(v, _, k), O = (v, _) => ke(
5308
- v,
5309
- new Ge(t, _, ".").getLegacyValue()
5310
- ), b = (v) => ke(E, new lt(t, v).getLegacyValue()), R = (v) => Ts(E, v), N = () => {
5319
+ }, w = (b, R, N) => xn(t) ? ke(b, new ct(t, R).getLegacyValue()) : Sn(t) ? ke(b, new pt(t, R).getLegacyValue()) : ke(b, R, N), O = (b, R) => ke(
5320
+ b,
5321
+ new Ge(t, R, ".").getLegacyValue()
5322
+ ), v = (b) => ke(E, new lt(t, b).getLegacyValue()), D = (b) => Ts(E, b), k = () => {
5311
5323
  switch (e) {
5312
5324
  case te.AUTOCOMPLETE: {
5313
- const v = {
5325
+ const b = {
5314
5326
  ...T,
5315
5327
  bindValue: t.k,
5316
5328
  optionalDisplayValue: r,
5317
- onChange: (_, k) => {
5318
- f == null || f(w(E, _, k));
5329
+ onChange: (R, N) => {
5330
+ f == null || f(w(E, R, N));
5319
5331
  }
5320
5332
  };
5321
- return /* @__PURE__ */ g.jsx(kr, { ...v });
5333
+ return /* @__PURE__ */ g.jsx(kr, { ...b });
5322
5334
  }
5323
5335
  case te.BUTTON: {
5324
- const v = {
5336
+ const b = {
5325
5337
  ...T,
5326
5338
  bindValue: t.k,
5327
5339
  optionalDisplayValue: n != null && n.label && typeof n.label == "string" ? n.label : void 0,
@@ -5330,63 +5342,63 @@ const _r = /* @__PURE__ */ new Map([
5330
5342
  u == null || u(w(E, t.k));
5331
5343
  }
5332
5344
  };
5333
- return /* @__PURE__ */ g.jsx(De, { ...v });
5345
+ return /* @__PURE__ */ g.jsx(De, { ...b });
5334
5346
  }
5335
5347
  case te.BUTTON_LIST: {
5336
- const v = {
5348
+ const b = {
5337
5349
  ...T,
5338
5350
  options: c,
5339
- onClick: (_, k) => {
5340
- const $ = { ...E, fun: k };
5341
- u == null || u(w($, _));
5351
+ onClick: (R, N) => {
5352
+ const L = { ...E, fun: N };
5353
+ u == null || u(w(L, R));
5342
5354
  }
5343
5355
  };
5344
- return /* @__PURE__ */ g.jsx(ps, { ...v });
5356
+ return /* @__PURE__ */ g.jsx(ps, { ...b });
5345
5357
  }
5346
5358
  case te.CHIP: {
5347
- const v = {
5359
+ const b = {
5348
5360
  ...T,
5349
5361
  elements: Tr(E)
5350
5362
  };
5351
- return /* @__PURE__ */ g.jsx(Nt, { ...v });
5363
+ return /* @__PURE__ */ g.jsx(Nt, { ...b });
5352
5364
  }
5353
5365
  case te.CHECKBOX:
5354
5366
  case te.SWITCH: {
5355
- const v = e === te.SWITCH, _ = {
5367
+ const b = e === te.SWITCH, R = {
5356
5368
  ...T,
5357
5369
  bindValue: lt.fromDataObj(t).getValue(),
5358
5370
  optionalDisplayValue: r,
5359
- onChange: (k) => {
5360
- f == null || f(b(k));
5371
+ onChange: (N) => {
5372
+ f == null || f(v(N));
5361
5373
  },
5362
- ...v && { variant: "switch" }
5374
+ ...b && { variant: "switch" }
5363
5375
  };
5364
- return /* @__PURE__ */ g.jsx(ms, { ..._ });
5376
+ return /* @__PURE__ */ g.jsx(ms, { ...R });
5365
5377
  }
5366
5378
  case te.COMBOBOX: {
5367
- const v = {
5379
+ const b = {
5368
5380
  ...T,
5369
5381
  bindValue: t.k,
5370
5382
  optionalDisplayValue: r,
5371
- onChange: (_, k) => {
5372
- f == null || f(w(E, _, k));
5383
+ onChange: (R, N) => {
5384
+ f == null || f(w(E, R, N));
5373
5385
  }
5374
5386
  };
5375
- return /* @__PURE__ */ g.jsx(gs, { ...v });
5387
+ return /* @__PURE__ */ g.jsx(gs, { ...b });
5376
5388
  }
5377
5389
  case te.DATE: {
5378
- const v = {
5390
+ const b = {
5379
5391
  ...T,
5380
5392
  bindValue: ct.fromDataObj(t).getValue(),
5381
- onChange: (_) => {
5382
- f == null || f(w(E, _));
5393
+ onChange: (R) => {
5394
+ f == null || f(w(E, R));
5383
5395
  }
5384
5396
  };
5385
- return /* @__PURE__ */ g.jsx(vs, { ...v });
5397
+ return /* @__PURE__ */ g.jsx(vs, { ...b });
5386
5398
  }
5387
5399
  case te.ICON:
5388
5400
  case te.IMAGE: {
5389
- const v = {
5401
+ const b = {
5390
5402
  ...T,
5391
5403
  icon: s,
5392
5404
  placeholderIcon: i,
@@ -5395,110 +5407,110 @@ const _r = /* @__PURE__ */ new Map([
5395
5407
  u == null || u(w(E, t.k));
5396
5408
  }
5397
5409
  };
5398
- return /* @__PURE__ */ g.jsx(le, { ...v });
5410
+ return /* @__PURE__ */ g.jsx(le, { ...b });
5399
5411
  }
5400
5412
  case te.INPUT_NUMBER: {
5401
- const v = {
5413
+ const b = {
5402
5414
  ...T,
5403
5415
  bindValue: Ge.fromDataObj(t, ".").getValue(),
5404
- onChange: (_) => {
5405
- f == null || f(O(E, _));
5416
+ onChange: (R) => {
5417
+ f == null || f(O(E, R));
5406
5418
  }
5407
5419
  };
5408
- return /* @__PURE__ */ g.jsx(Os, { ...v });
5420
+ return /* @__PURE__ */ g.jsx(Os, { ...b });
5409
5421
  }
5410
5422
  case te.MEMO: {
5411
- const v = {
5423
+ const b = {
5412
5424
  ...T,
5413
5425
  bindValue: t.k,
5414
5426
  optionalDisplayValue: r,
5415
- onChange: (_) => {
5416
- f == null || f(w(E, _));
5427
+ onChange: (R) => {
5428
+ f == null || f(w(E, R));
5417
5429
  }
5418
5430
  };
5419
- return /* @__PURE__ */ g.jsx(_s, { ...v });
5431
+ return /* @__PURE__ */ g.jsx(_s, { ...b });
5420
5432
  }
5421
5433
  case te.MULTI_AUTOCOMPLETE: {
5422
- const v = {
5434
+ const b = {
5423
5435
  ...T,
5424
5436
  elements: Tr(E),
5425
- onChange: (_) => {
5426
- f == null || f(R(_));
5437
+ onChange: (R) => {
5438
+ f == null || f(D(R));
5427
5439
  }
5428
5440
  };
5429
- return /* @__PURE__ */ g.jsx(xs, { ...v });
5441
+ return /* @__PURE__ */ g.jsx(xs, { ...b });
5430
5442
  }
5431
5443
  case te.PASSWORD: {
5432
- const v = {
5444
+ const b = {
5433
5445
  ...T,
5434
5446
  bindValue: t.k,
5435
- onChange: (_) => {
5436
- f == null || f(w(E, _));
5447
+ onChange: (R) => {
5448
+ f == null || f(w(E, R));
5437
5449
  }
5438
5450
  };
5439
- return /* @__PURE__ */ g.jsx(Ss, { ...v });
5451
+ return /* @__PURE__ */ g.jsx(Ss, { ...b });
5440
5452
  }
5441
5453
  case te.RADIO: {
5442
- const v = {
5454
+ const b = {
5443
5455
  ...T,
5444
5456
  bindValue: t.k,
5445
- onChange: (_, k) => {
5446
- f == null || f(w(E, _, k));
5457
+ onChange: (R, N) => {
5458
+ f == null || f(w(E, R, N));
5447
5459
  }
5448
5460
  };
5449
- return /* @__PURE__ */ g.jsx(Rs, { ...v });
5461
+ return /* @__PURE__ */ g.jsx(Rs, { ...b });
5450
5462
  }
5451
5463
  case te.SPOTLIGHT: {
5452
- const v = {
5464
+ const b = {
5453
5465
  ...T,
5454
5466
  bindValue: t.k,
5455
- onEnter: (_) => {
5456
- p == null || p(w(E, _));
5467
+ onEnter: (R) => {
5468
+ p == null || p(w(E, R));
5457
5469
  }
5458
5470
  };
5459
- return /* @__PURE__ */ g.jsx(ws, { ...v });
5471
+ return /* @__PURE__ */ g.jsx(ws, { ...b });
5460
5472
  }
5461
5473
  case te.TEXT_FIELD: {
5462
- const v = {
5474
+ const b = {
5463
5475
  ...T,
5464
5476
  bindValue: t.k,
5465
5477
  optionalDisplayValue: r,
5466
- onChange: (_) => {
5467
- f == null || f(w(E, _));
5478
+ onChange: (R) => {
5479
+ f == null || f(w(E, R));
5468
5480
  }
5469
5481
  };
5470
- return /* @__PURE__ */ g.jsx(Le, { ...v });
5482
+ return /* @__PURE__ */ g.jsx(Le, { ...b });
5471
5483
  }
5472
5484
  case te.TIME: {
5473
- const v = {
5485
+ const b = {
5474
5486
  ...T,
5475
5487
  bindValue: pt.fromDataObj(t).getValue(),
5476
- onChange: (_) => {
5477
- f == null || f(w(E, _));
5488
+ onChange: (R) => {
5489
+ f == null || f(w(E, R));
5478
5490
  }
5479
5491
  };
5480
- return /* @__PURE__ */ g.jsx(Cs, { ...v });
5492
+ return /* @__PURE__ */ g.jsx(Cs, { ...b });
5481
5493
  }
5482
5494
  default: {
5483
- const v = {
5495
+ const b = {
5484
5496
  ...T,
5485
5497
  bindValue: t.k,
5486
5498
  optionalDisplayValue: r
5487
5499
  };
5488
- return /* @__PURE__ */ g.jsx(Es, { ...v });
5500
+ return /* @__PURE__ */ g.jsx(Es, { ...b });
5489
5501
  }
5490
5502
  }
5491
5503
  }, C = {
5492
- wrapper: `${Is["smp-cell-wrapper"]}`
5504
+ wrapper: `${As["smp-cell-wrapper"]}`
5493
5505
  };
5494
5506
  return /* @__PURE__ */ g.jsx(
5495
5507
  "span",
5496
5508
  {
5497
5509
  className: C.wrapper,
5498
- onContextMenu: (v) => {
5499
- y && l && (v.preventDefault(), y(E, v.currentTarget));
5510
+ onContextMenu: (b) => {
5511
+ y && l && (b.preventDefault(), y(E, b.currentTarget));
5500
5512
  },
5501
- children: N()
5513
+ children: k()
5502
5514
  }
5503
5515
  );
5504
5516
  }, na = ({
@@ -5553,7 +5565,7 @@ const _r = /* @__PURE__ */ new Map([
5553
5565
  return re(() => {
5554
5566
  r && a(i(r));
5555
5567
  }, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((l = r.columns) != null && l.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((c) => /* @__PURE__ */ g.jsx(_e, { ...c })) }) });
5556
- }, Ps = (r) => {
5568
+ }, Is = (r) => {
5557
5569
  var e;
5558
5570
  return (e = r.children) != null && e.length ? r.children.map((t) => {
5559
5571
  var n, s;
@@ -5576,46 +5588,46 @@ const _r = /* @__PURE__ */ new Map([
5576
5588
  loadOptions: l,
5577
5589
  onContextMenu: c
5578
5590
  }) => {
5579
- var O, b;
5591
+ var O, v;
5580
5592
  const [f, u] = G(), [p, m] = G(t ?? !0), d = ce(null), y = s.trim() ? s : "100vh", S = ue(
5581
- (R) => {
5582
- var C, v;
5583
- if (!((C = R == null ? void 0 : R.rows) != null && C.length) || !((v = R == null ? void 0 : R.columns) != null && v.length))
5593
+ (D) => {
5594
+ var C, b;
5595
+ if (!((C = D == null ? void 0 : D.rows) != null && C.length) || !((b = D == null ? void 0 : D.columns) != null && b.length))
5584
5596
  return {};
5585
- const N = R.rows[0];
5586
- return R.columns.filter((_) => _.visible ?? !0).reduce((_, k) => {
5587
- const $ = N.cells[k.name];
5588
- if (!$ || !p && de(n) && $.shape !== te.BUTTON && $.shape !== te.BUTTON_LIST)
5589
- return _;
5590
- const I = {
5591
- ...$,
5592
- id: k.name,
5593
- onChange: (F) => {
5594
- u((A) => {
5595
- const V = { ...A };
5596
- return V != null && V[k.name] && (V[k.name].obj.k = F.obj.k), V;
5597
+ const k = D.rows[0];
5598
+ return D.columns.filter((R) => R.visible ?? !0).reduce((R, N) => {
5599
+ const L = k.cells[N.name];
5600
+ if (!L || !p && de(n) && L.shape !== te.BUTTON && L.shape !== te.BUTTON_LIST)
5601
+ return R;
5602
+ const A = {
5603
+ ...L,
5604
+ id: N.name,
5605
+ onChange: (V) => {
5606
+ u((I) => {
5607
+ const F = { ...I };
5608
+ return F != null && F[N.name] && (F[N.name].obj.k = V.obj.k), F;
5597
5609
  });
5598
5610
  },
5599
- onClick: (F) => {
5600
- F.fun && a && a(F);
5611
+ onClick: (V) => {
5612
+ V.fun && a && a(V);
5601
5613
  },
5602
- onEnter: (F) => {
5603
- i && i(F);
5614
+ onEnter: (V) => {
5615
+ i && i(V);
5604
5616
  },
5605
- onContextMenu: (F, A) => {
5606
- c && c(F, A);
5617
+ onContextMenu: (V, I) => {
5618
+ c && c(V, I);
5607
5619
  }
5608
5620
  };
5609
- return l && $.shape == te.BUTTON_LIST && (I.onOptionsRequest = (F, A) => l(F, A).then(
5610
- (V) => Ps(V)
5611
- )), !p && de(n) && (I.data = {
5612
- ...I.data,
5621
+ return l && L.shape == te.BUTTON_LIST && (A.onOptionsRequest = (V, I) => l(V, I).then(
5622
+ (F) => Is(F)
5623
+ )), !p && de(n) && (A.data = {
5624
+ ...A.data,
5613
5625
  showText: !1,
5614
5626
  justify: "center",
5615
5627
  squared: !0
5616
5628
  }), {
5617
- ..._,
5618
- [k.name]: I
5629
+ ...R,
5630
+ [N.name]: A
5619
5631
  };
5620
5632
  }, {});
5621
5633
  },
@@ -5623,7 +5635,7 @@ const _r = /* @__PURE__ */ new Map([
5623
5635
  ), E = ue(() => {
5624
5636
  o == null || o();
5625
5637
  }, [o]), T = () => {
5626
- de(n) ? m((R) => !R) : (m(!1), o == null || o());
5638
+ de(n) ? m((D) => !D) : (m(!1), o == null || o());
5627
5639
  };
5628
5640
  if (re(() => {
5629
5641
  u(S(r));
@@ -5634,16 +5646,16 @@ const _r = /* @__PURE__ */ new Map([
5634
5646
  u(S(r));
5635
5647
  return;
5636
5648
  }
5637
- const R = getComputedStyle(d.current).getPropertyValue(
5649
+ const D = getComputedStyle(d.current).getPropertyValue(
5638
5650
  "--smp-drawer-slide-transition"
5639
5651
  );
5640
- let N = Number(R);
5641
- R.endsWith("ms") ? N = parseFloat(R) : R.endsWith("s") && (N = parseFloat(R) * 1e3), setTimeout(() => {
5652
+ let k = Number(D);
5653
+ D.endsWith("ms") ? k = parseFloat(D) : D.endsWith("s") && (k = parseFloat(D) * 1e3), setTimeout(() => {
5642
5654
  u(S(r));
5643
- }, N / 2);
5655
+ }, k / 2);
5644
5656
  }, [p, n]), re(() => {
5645
5657
  t !== void 0 && !de(n) && m(t);
5646
- }, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((b = r.columns) != null && b.length))
5658
+ }, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((v = r.columns) != null && v.length))
5647
5659
  return null;
5648
5660
  const w = {
5649
5661
  drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${p ? "smp-drawer-open" : ""} ${!de(n) && !p ? "smp-drawer-no-border" : ""}`,
@@ -5696,7 +5708,7 @@ const _r = /* @__PURE__ */ new Map([
5696
5708
  }
5697
5709
  ) })
5698
5710
  ] }),
5699
- /* @__PURE__ */ g.jsx("div", { className: w.containerLayout, children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((R) => /* @__PURE__ */ g.jsx(_e, { ...R })) }) })
5711
+ /* @__PURE__ */ g.jsx("div", { className: w.containerLayout, children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((D) => /* @__PURE__ */ g.jsx(_e, { ...D })) }) })
5700
5712
  ] })
5701
5713
  }
5702
5714
  )
@@ -5723,9 +5735,9 @@ const _r = /* @__PURE__ */ new Map([
5723
5735
  SelectLayout: T = "1",
5724
5736
  onClick: w
5725
5737
  }) => {
5726
- const O = "N/A", b = (e == null ? void 0 : e.columns) || [], R = (e == null ? void 0 : e.rows) || [], N = R.length > 0, C = "--smp-dashList-color", v = "smp-layout", _ = "descr", k = "icon", $ = "um", I = "value", F = i || "1em", A = "18px", V = "--smp-dashList-columns", K = "--smp-dashList-fontSize", J = {
5738
+ const O = "N/A", v = (e == null ? void 0 : e.columns) || [], D = (e == null ? void 0 : e.rows) || [], k = D.length > 0, C = "--smp-dashList-color", b = "smp-layout", R = "descr", N = "icon", L = "um", A = "value", V = i || "1em", I = "18px", F = "--smp-dashList-columns", z = "--smp-dashList-fontSize", J = {
5727
5739
  dash: (H = "1") => {
5728
- const Z = h(H), ne = Z, se = x(Z, _), he = x(Z, k), we = x(Z, $), be = x(Z, I);
5740
+ const Z = h(H), ne = Z, se = x(Z, R), he = x(Z, N), we = x(Z, L), be = x(Z, A);
5729
5741
  return {
5730
5742
  container: ne,
5731
5743
  descr: se,
@@ -5736,7 +5748,7 @@ const _r = /* @__PURE__ */ new Map([
5736
5748
  },
5737
5749
  dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
5738
5750
  ${de(o) ? "smp-dash-list-horizontal" : ""}`
5739
- }, { format: Y } = Ie(), h = (H) => `${v}-${H}`, x = (H, Z) => `${H}__${Z}`, D = (H) => `${C}-${H}`, L = (H) => {
5751
+ }, { format: Y } = Ae(), h = (H) => `${b}-${H}`, x = (H, Z) => `${H}__${Z}`, _ = (H) => `${C}-${H}`, $ = (H) => {
5740
5752
  const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
5741
5753
  if (Z.test(H)) {
5742
5754
  const se = H.match(Z) || [];
@@ -5747,20 +5759,20 @@ const _r = /* @__PURE__ */ new Map([
5747
5759
  }, j = (H) => {
5748
5760
  if (!u) return H;
5749
5761
  const [Z, ne] = P(u).map(
5750
- (Pe) => parseInt(Pe || "0")
5762
+ (Ie) => parseInt(Ie || "0")
5751
5763
  ), se = "0,0" + (ne ? "." + "0".repeat(ne) : ""), he = Y(H, se, "it");
5752
5764
  if (!Z) return he;
5753
5765
  const [we, be] = he.split(",");
5754
5766
  return we + (be ? `,${be}` : "");
5755
- }, P = (H) => H.includes(";") ? H.split(";") : [H], W = (H) => {
5767
+ }, P = (H) => H.includes(";") ? H.split(";") : [H], U = (H) => {
5756
5768
  const Z = (se) => {
5757
5769
  var he;
5758
5770
  if (se)
5759
5771
  return (he = H == null ? void 0 : H.cells[se]) == null ? void 0 : he.obj.k;
5760
5772
  }, ne = (se) => {
5761
5773
  var he, we;
5762
- if (!(b.length <= se))
5763
- return (we = (he = H == null ? void 0 : H.cells[b[se].name]) == null ? void 0 : he.obj) == null ? void 0 : we.k;
5774
+ if (!(v.length <= se))
5775
+ return (we = (he = H == null ? void 0 : H.cells[v[se].name]) == null ? void 0 : he.obj) == null ? void 0 : we.k;
5764
5776
  };
5765
5777
  return {
5766
5778
  descr: t || Z(n) || ne(2) || "",
@@ -5770,67 +5782,67 @@ const _r = /* @__PURE__ */ new Map([
5770
5782
  };
5771
5783
  }, B = (H) => {
5772
5784
  w == null || w(H);
5773
- }, U = (H, Z) => {
5785
+ }, W = (H, Z) => {
5774
5786
  (H.key === "Enter" || H.key === " ") && (H.preventDefault(), H.stopPropagation(), B(Z));
5775
- }, q = ((H) => {
5787
+ }, K = ((H) => {
5776
5788
  const Z = J.dash(H);
5777
5789
  return {
5778
5790
  className: Z,
5779
- descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${_}`),
5791
+ descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${R}`),
5780
5792
  icon: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
5781
5793
  le,
5782
5794
  {
5783
5795
  color: f,
5784
- height: A,
5796
+ height: I,
5785
5797
  icon: ne,
5786
- width: A
5798
+ width: I
5787
5799
  }
5788
- ) }, `${H}-${k}`),
5789
- um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${$}`),
5790
- value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${I}`)
5800
+ ) }, `${H}-${N}`),
5801
+ um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${L}`),
5802
+ value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${A}`)
5791
5803
  };
5792
5804
  })(T), ae = (H) => {
5793
- const { descr: Z, icon: ne, um: se, value: he } = W(H), we = {
5794
- [D(_)]: L(s),
5795
- [D($)]: L(d),
5796
- [D(I)]: L(E)
5797
- }, be = [], Pe = j(he);
5805
+ const { descr: Z, icon: ne, um: se, value: he } = U(H), we = {
5806
+ [_(R)]: $(s),
5807
+ [_(L)]: $(d),
5808
+ [_(A)]: $(E)
5809
+ }, be = [], Ie = j(he);
5798
5810
  switch (T) {
5799
5811
  case "2":
5800
- ne && be.push(q.icon(ne)), be.push(q.descr(Z)), be.push(
5801
- q.value(se ? Pe + " " + se : Pe)
5812
+ ne && be.push(K.icon(ne)), be.push(K.descr(Z)), be.push(
5813
+ K.value(se ? Ie + " " + se : Ie)
5802
5814
  );
5803
5815
  break;
5804
5816
  default:
5805
5817
  case "1":
5806
- be.push(q.descr(Z)), be.push(
5807
- q.value(se ? Pe + " " + se : Pe)
5818
+ be.push(K.descr(Z)), be.push(
5819
+ K.value(se ? Ie + " " + se : Ie)
5808
5820
  );
5809
5821
  }
5810
5822
  return /* @__PURE__ */ g.jsx(
5811
5823
  "div",
5812
5824
  {
5813
- className: q.className.container,
5825
+ className: K.className.container,
5814
5826
  role: "button",
5815
5827
  style: we,
5816
5828
  tabIndex: 0,
5817
5829
  onClick: () => B(H),
5818
- onKeyDown: (Fr) => U(Fr, H),
5830
+ onKeyDown: (Fr) => W(Fr, H),
5819
5831
  children: be
5820
5832
  },
5821
5833
  H.rowId
5822
5834
  );
5823
5835
  }, M = {
5824
- [V]: String(r),
5825
- [K]: F
5836
+ [F]: String(r),
5837
+ [z]: V
5826
5838
  };
5827
- return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: N ? R.map((H) => ae(H)) : O });
5839
+ return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: k ? D.map((H) => ae(H)) : O });
5828
5840
  }, nt = {
5829
5841
  "smp-table": "_smp-table_1qmju_1",
5830
5842
  "smp-headerCell": "_smp-headerCell_1qmju_35",
5831
5843
  "smp-resizer": "_smp-resizer_1qmju_44"
5832
- }, As = "_rowContent_20wit_2", Ns = "_clickable_20wit_21", ks = "_indent_20wit_26", Ms = "_toggle_20wit_32", Fs = "_cell_20wit_38", Vs = "_leftSection_20wit_46", Te = {
5833
- rowContent: As,
5844
+ }, Ps = "_rowContent_20wit_2", Ns = "_clickable_20wit_21", ks = "_indent_20wit_26", Ms = "_toggle_20wit_32", Fs = "_cell_20wit_38", Vs = "_leftSection_20wit_46", Te = {
5845
+ rowContent: Ps,
5834
5846
  clickable: Ns,
5835
5847
  indent: ks,
5836
5848
  toggle: Ms,
@@ -5908,28 +5920,28 @@ const Mr = ({
5908
5920
  ]
5909
5921
  }
5910
5922
  ),
5911
- r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, R]) => /* @__PURE__ */ g.jsx(
5923
+ r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, D]) => /* @__PURE__ */ g.jsx(
5912
5924
  "td",
5913
5925
  {
5914
5926
  className: p.cell,
5915
5927
  style: {
5916
- width: e[b],
5917
- minWidth: e[b],
5928
+ width: e[v],
5929
+ minWidth: e[v],
5918
5930
  height: `${n}px`
5919
5931
  },
5920
5932
  children: m({
5921
- ...R,
5922
- id: b
5933
+ ...D,
5934
+ id: v
5923
5935
  })
5924
5936
  },
5925
- Us(R) || b
5937
+ Us(D) || v
5926
5938
  ))
5927
5939
  ]
5928
5940
  }
5929
5941
  );
5930
5942
  }, E = () => {
5931
5943
  var w;
5932
- return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((w = r.children) == null ? void 0 : w.map((O, b) => /* @__PURE__ */ g.jsx(Mr, { row: O, level: t + 1 }, `child-${b}`))) });
5944
+ return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((w = r.children) == null ? void 0 : w.map((O, v) => /* @__PURE__ */ g.jsx(Mr, { row: O, level: t + 1 }, `child-${v}`))) });
5933
5945
  };
5934
5946
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
5935
5947
  S(),
@@ -6127,7 +6139,7 @@ const Ks = ({
6127
6139
  showGroupBar: a = !0
6128
6140
  // isEditable = false,
6129
6141
  }) => {
6130
- var N;
6142
+ var k;
6131
6143
  const [i, o] = G(
6132
6144
  r ?? { columns: [], rows: [] }
6133
6145
  ), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()), p = ce(null), [m, d] = zs({
@@ -6152,30 +6164,30 @@ const Ks = ({
6152
6164
  c(Hs(C, l));
6153
6165
  }, S = (C) => {
6154
6166
  C.preventDefault();
6155
- const v = C.dataTransfer.getData("text/plain");
6156
- if (!v || l.some(($) => $.column === v))
6167
+ const b = C.dataTransfer.getData("text/plain");
6168
+ if (!b || l.some((L) => L.column === b))
6157
6169
  return;
6158
- const k = [...l, { column: v, visible: !0 }];
6159
- c(k);
6170
+ const N = [...l, { column: b, visible: !0 }];
6171
+ c(N);
6160
6172
  }, E = (C) => {
6161
6173
  C.preventDefault();
6162
- }, { virtualItems: T, containerProps: w, innerProps: O } = Ir({
6174
+ }, { virtualItems: T, containerProps: w, innerProps: O } = Ar({
6163
6175
  items: (i == null ? void 0 : i.rows) ?? [],
6164
6176
  itemHeight: e,
6165
6177
  containerHeight: t,
6166
6178
  overscan: 5
6167
- }), b = (C, v) => {
6168
- const _ = C.clientX, k = m[v], $ = (F) => {
6169
- const A = F.clientX - _, V = Math.max(50, k + A);
6170
- d((K) => ({
6171
- ...K,
6172
- [v]: V
6179
+ }), v = (C, b) => {
6180
+ const R = C.clientX, N = m[b], L = (V) => {
6181
+ const I = V.clientX - R, F = Math.max(50, N + I);
6182
+ d((z) => ({
6183
+ ...z,
6184
+ [b]: F
6173
6185
  }));
6174
- }, I = () => {
6175
- window.removeEventListener("mousemove", $), window.removeEventListener("mouseup", I);
6186
+ }, A = () => {
6187
+ window.removeEventListener("mousemove", L), window.removeEventListener("mouseup", A);
6176
6188
  };
6177
- window.addEventListener("mousemove", $), window.addEventListener("mouseup", I);
6178
- }, R = {
6189
+ window.addEventListener("mousemove", L), window.addEventListener("mouseup", A);
6190
+ }, D = {
6179
6191
  smpTable: `${nt["smp-table"]}`,
6180
6192
  headerCell: `${nt["smp-headerCell"]}`,
6181
6193
  resizer: `${nt["smp-resizer"]}`
@@ -6183,7 +6195,7 @@ const Ks = ({
6183
6195
  return i && /* @__PURE__ */ g.jsx(
6184
6196
  "div",
6185
6197
  {
6186
- className: R.smpTable,
6198
+ className: D.smpTable,
6187
6199
  ...w,
6188
6200
  ref: p,
6189
6201
  children: /* @__PURE__ */ g.jsxs("table", { children: [
@@ -6197,14 +6209,14 @@ const Ks = ({
6197
6209
  onDragOver: E
6198
6210
  }
6199
6211
  ),
6200
- /* @__PURE__ */ g.jsx("tr", { children: i.columns && ((N = i.columns) == null ? void 0 : N.map(
6212
+ /* @__PURE__ */ g.jsx("tr", { children: i.columns && ((k = i.columns) == null ? void 0 : k.map(
6201
6213
  (C) => C.visible && /* @__PURE__ */ g.jsxs(
6202
6214
  "th",
6203
6215
  {
6204
- className: R.headerCell,
6216
+ className: D.headerCell,
6205
6217
  draggable: !0,
6206
- onDragStart: (v) => {
6207
- v.dataTransfer.setData("text/plain", C.name);
6218
+ onDragStart: (b) => {
6219
+ b.dataTransfer.setData("text/plain", C.name);
6208
6220
  },
6209
6221
  style: {
6210
6222
  width: m[C.name],
@@ -6222,8 +6234,8 @@ const Ks = ({
6222
6234
  /* @__PURE__ */ g.jsx(
6223
6235
  "div",
6224
6236
  {
6225
- className: R.resizer,
6226
- onMouseDown: (v) => b(v, C.name),
6237
+ className: D.resizer,
6238
+ onMouseDown: (b) => v(b, C.name),
6227
6239
  role: "region"
6228
6240
  }
6229
6241
  )
@@ -6233,32 +6245,32 @@ const Ks = ({
6233
6245
  )
6234
6246
  )) })
6235
6247
  ] }),
6236
- /* @__PURE__ */ g.jsx("tbody", { ...O, children: T.map(({ item: C, index: v, offsetTop: _ }) => {
6237
- const k = C.rowId || C.value || `${C.isGroup ? "group" : "row"}-${v}`;
6248
+ /* @__PURE__ */ g.jsx("tbody", { ...O, children: T.map(({ item: C, index: b, offsetTop: R }) => {
6249
+ const N = C.rowId || C.value || `${C.isGroup ? "group" : "row"}-${b}`;
6238
6250
  return C.isGroup ? /* @__PURE__ */ g.jsx(
6239
6251
  Ws,
6240
6252
  {
6241
6253
  label: C.value || "",
6242
6254
  rowHeight: e,
6243
- offsetTop: _,
6255
+ offsetTop: R,
6244
6256
  level: C.level,
6245
6257
  onClick: () => {
6246
- const $ = C.rowId;
6247
- $ && u((I) => Bs(I, $));
6258
+ const L = C.rowId;
6259
+ L && u((A) => Bs(A, L));
6248
6260
  },
6249
6261
  isExpanded: C.isExpanded
6250
6262
  },
6251
- `group-${k}`
6263
+ `group-${N}`
6252
6264
  ) : /* @__PURE__ */ g.jsx(
6253
6265
  Mr,
6254
6266
  {
6255
6267
  row: C,
6256
6268
  columnWidths: m,
6257
6269
  rowHeight: e,
6258
- offsetTop: _,
6270
+ offsetTop: R,
6259
6271
  isGroup: !1
6260
6272
  },
6261
- `row-${k}`
6273
+ `row-${N}`
6262
6274
  );
6263
6275
  }) }),
6264
6276
  /* @__PURE__ */ g.jsx(qs, { columns: i.columns, columnWidths: m })
@@ -6352,38 +6364,38 @@ const Ks = ({
6352
6364
  onContextMenu: f,
6353
6365
  onButtonClick: u
6354
6366
  }) => {
6355
- var N, C;
6356
- const [p, m] = G({}), { translate: d } = Ie(), y = Re();
6367
+ var k, C;
6368
+ const [p, m] = G({}), { translate: d } = Ae(), y = Re();
6357
6369
  re(() => {
6358
6370
  m(O(r));
6359
6371
  }, [r]);
6360
- const S = (v, _) => {
6361
- m((k) => ({
6362
- ...k,
6363
- [v]: {
6364
- ...k[v],
6372
+ const S = (b, R) => {
6373
+ m((N) => ({
6374
+ ...N,
6375
+ [b]: {
6376
+ ...N[b],
6365
6377
  obj: {
6366
- ...k[v].obj,
6367
- k: _.obj.k
6378
+ ...N[b].obj,
6379
+ k: R.obj.k
6368
6380
  },
6369
- decode: _.decode,
6381
+ decode: R.decode,
6370
6382
  data: {
6371
- ...k[v].data,
6383
+ ...N[b].data,
6372
6384
  error: void 0
6373
6385
  },
6374
6386
  // FIXME: remove this when webup.js will not use value
6375
- value: _.obj.k
6387
+ value: R.obj.k
6376
6388
  }
6377
- })), s && (_.shape == te.CHECKBOX || _.shape == te.SWITCH) && E();
6378
- }, E = (v) => {
6379
- const _ = b();
6389
+ })), s && (R.shape == te.CHECKBOX || R.shape == te.SWITCH) && E();
6390
+ }, E = (b) => {
6391
+ const R = v();
6380
6392
  o({
6381
- value: _,
6382
- cell: v
6393
+ value: R,
6394
+ cell: b
6383
6395
  });
6384
- }, T = (v, _) => {
6396
+ }, T = (b, R) => {
6385
6397
  u == null || u({
6386
- cellId: v,
6398
+ cellId: b,
6387
6399
  currentState: {
6388
6400
  type: "SmeupDataTable",
6389
6401
  columns: r.columns,
@@ -6393,53 +6405,53 @@ const Ks = ({
6393
6405
  }
6394
6406
  ]
6395
6407
  },
6396
- fun: _ || ""
6408
+ fun: R || ""
6397
6409
  });
6398
- }, w = async (v) => {
6399
- var _, k;
6400
- if (p[v].obj.k != r.rows[0].cells[v].obj.k && ((_ = p[v].inputSettings) != null && _.checkObject && c && ((await c({
6401
- obj: p[v].obj,
6402
- fun: p[v].fun,
6403
- cellId: v
6404
- })).valid || m((I) => ({
6405
- ...I,
6406
- [v]: {
6407
- ...I[v],
6410
+ }, w = async (b) => {
6411
+ var R, N;
6412
+ if (p[b].obj.k != r.rows[0].cells[b].obj.k && ((R = p[b].inputSettings) != null && R.checkObject && c && ((await c({
6413
+ obj: p[b].obj,
6414
+ fun: p[b].fun,
6415
+ cellId: b
6416
+ })).valid || m((A) => ({
6417
+ ...A,
6418
+ [b]: {
6419
+ ...A[b],
6408
6420
  data: {
6409
- ...I[v].data,
6421
+ ...A[b].data,
6410
6422
  error: d(Oe.CHECK_OBJECT_WRONG_VALIDATION)
6411
6423
  }
6412
6424
  }
6413
- }))), (k = p[v].inputSettings) != null && k.checkValueOnExit)) {
6414
- const $ = b();
6425
+ }))), (N = p[b].inputSettings) != null && N.checkValueOnExit)) {
6426
+ const L = v();
6415
6427
  l == null || l({
6416
- value: $,
6417
- cell: v
6428
+ value: L,
6429
+ cell: b
6418
6430
  });
6419
6431
  }
6420
- }, O = (v) => {
6421
- var k, $, I;
6422
- if (!((k = v.rows) != null && k.length) || !(($ = v.columns) != null && $.length))
6432
+ }, O = (b) => {
6433
+ var N, L, A;
6434
+ if (!((N = b.rows) != null && N.length) || !((L = b.columns) != null && L.length))
6423
6435
  return {};
6424
- const _ = (I = v.rows) == null ? void 0 : I[0];
6425
- return v.columns.filter((F) => F.visible ?? !0).reduce((F, A) => {
6426
- const V = {
6427
- ..._.cells[A.name],
6428
- id: A.name,
6429
- label: A.title,
6436
+ const R = (A = b.rows) == null ? void 0 : A[0];
6437
+ return b.columns.filter((V) => V.visible ?? !0).reduce((V, I) => {
6438
+ const F = {
6439
+ ...R.cells[I.name],
6440
+ id: I.name,
6441
+ label: I.title,
6430
6442
  data: {
6431
- ..._.cells[A.name].data,
6443
+ ...R.cells[I.name].data,
6432
6444
  dSep: a
6433
6445
  }
6434
6446
  };
6435
- return V.fun && (V.onOptionsRequest = async (K, J) => Zs(
6436
- await i(K, J, r, A.name)
6437
- )), V.isEditable == null && (V.isEditable = !0), t && (V.isEditable = !1), V.isEditable && V.shape == null && (V.shape = te.TEXT_FIELD), {
6438
- ...F,
6439
- [A.name]: V
6447
+ return F.fun && (F.onOptionsRequest = async (z, J) => Zs(
6448
+ await i(z, J, r, I.name)
6449
+ )), F.isEditable == null && (F.isEditable = !0), t && (F.isEditable = !1), F.isEditable && F.shape == null && (F.shape = te.TEXT_FIELD), {
6450
+ ...V,
6451
+ [I.name]: F
6440
6452
  };
6441
6453
  }, {});
6442
- }, b = () => ({
6454
+ }, v = () => ({
6443
6455
  before: r,
6444
6456
  after: {
6445
6457
  type: "SmeupDataTable",
@@ -6450,21 +6462,21 @@ const Ks = ({
6450
6462
  }
6451
6463
  ]
6452
6464
  }
6453
- }), R = ((C = (N = r.setup) == null ? void 0 : N.commands) == null ? void 0 : C.map((v, _) => /* @__PURE__ */ Br(
6465
+ }), D = ((C = (k = r.setup) == null ? void 0 : k.commands) == null ? void 0 : C.map((b, R) => /* @__PURE__ */ Br(
6454
6466
  _e,
6455
6467
  {
6456
- ...v,
6457
- decode: v.value,
6468
+ ...b,
6469
+ decode: b.value,
6458
6470
  data: {
6459
- label: v.value
6471
+ label: b.value
6460
6472
  },
6461
- id: `command-${_}`,
6462
- key: `command-${_}`,
6473
+ id: `command-${R}`,
6474
+ key: `command-${R}`,
6463
6475
  shape: te.BUTTON,
6464
- onClick: () => E(v.obj.k)
6476
+ onClick: () => E(b.obj.k)
6465
6477
  }
6466
6478
  ))) || [];
6467
- return n || R.unshift(
6479
+ return n || D.unshift(
6468
6480
  /* @__PURE__ */ g.jsx(
6469
6481
  _e,
6470
6482
  {
@@ -6488,8 +6500,8 @@ const Ks = ({
6488
6500
  {
6489
6501
  "data-component": "input-panel",
6490
6502
  id: e || y,
6491
- onSubmit: (v) => {
6492
- v.preventDefault(), E();
6503
+ onSubmit: (b) => {
6504
+ b.preventDefault(), E();
6493
6505
  },
6494
6506
  children: [
6495
6507
  /* @__PURE__ */ g.jsx(
@@ -6498,25 +6510,25 @@ const Ks = ({
6498
6510
  style: {
6499
6511
  padding: "1em 0"
6500
6512
  },
6501
- children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(p).map((v) => /* @__PURE__ */ g.jsx(
6513
+ children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(p).map((b) => /* @__PURE__ */ g.jsx(
6502
6514
  _e,
6503
6515
  {
6504
- ...v,
6505
- onChange: (_) => S(v.id, _),
6506
- onBlur: () => w(v.id),
6516
+ ...b,
6517
+ onChange: (R) => S(b.id, R),
6518
+ onBlur: () => w(b.id),
6507
6519
  onContextMenu: f,
6508
6520
  onClick: () => {
6509
- v.shape == "BTN" && T(v.id, v.fun);
6521
+ b.shape == "BTN" && T(b.id, b.fun);
6510
6522
  },
6511
6523
  data: {
6512
- ...v.data,
6524
+ ...b.data,
6513
6525
  autocomplete: "off"
6514
6526
  }
6515
6527
  }
6516
6528
  )) })
6517
6529
  }
6518
6530
  ),
6519
- R.length > 0 && /* @__PURE__ */ g.jsx(
6531
+ D.length > 0 && /* @__PURE__ */ g.jsx(
6520
6532
  ot,
6521
6533
  {
6522
6534
  layout: {
@@ -6525,13 +6537,13 @@ const Ks = ({
6525
6537
  id: "1",
6526
6538
  horizontal: !0,
6527
6539
  justify: "start",
6528
- content: R.map((v) => ({
6529
- id: v.props.id
6540
+ content: D.map((b) => ({
6541
+ id: b.props.id
6530
6542
  }))
6531
6543
  }
6532
6544
  ]
6533
6545
  },
6534
- children: R
6546
+ children: D
6535
6547
  }
6536
6548
  )
6537
6549
  ]