@regulaforensics/idv-gui 3.6.355-nightly → 3.6.357-nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -35,7 +35,7 @@ var De = (e, i, t) => new Promise((r, o) => {
35
35
  }, g = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(n, c);
36
36
  g((t = t.apply(e, i)).next());
37
37
  });
38
- var ai, te, Fn, jt, an, Bn, Vn, Ui, hi, Xt, Wn, or, Wi, Zi, Zn, mi = {}, Ei = [], aa = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ui = Array.isArray;
38
+ var ai, ie, Fn, jt, an, Bn, Vn, Ui, hi, Xt, Wn, or, Wi, Zi, Zn, mi = {}, Ei = [], aa = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ui = Array.isArray;
39
39
  function tt(e, i) {
40
40
  for (var t in i) e[t] = i[t];
41
41
  return e;
@@ -51,7 +51,7 @@ function rt(e, i, t) {
51
51
  }
52
52
  function Kt(e, i, t, r, o) {
53
53
  var n = { type: e, props: i, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o == null ? ++Fn : o, __i: -1, __u: 0 };
54
- return o == null && te.vnode != null && te.vnode(n), n;
54
+ return o == null && ie.vnode != null && ie.vnode(n), n;
55
55
  }
56
56
  function Hn() {
57
57
  return { current: null };
@@ -70,7 +70,7 @@ function Ft(e, i) {
70
70
  function ua(e) {
71
71
  if (e.__P && e.__d) {
72
72
  var i = e.__v, t = i.__e, r = [], o = [], n = tt({}, i);
73
- n.__v = i.__v + 1, te.vnode && te.vnode(n), ar(e.__P, n, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [t] : null, r, t == null ? Ft(i) : t, !!(32 & i.__u), o), n.__v = i.__v, n.__.__k[n.__i] = n, Xn(r, n, o), i.__e = i.__ = null, n.__e != t && Gn(n);
73
+ n.__v = i.__v + 1, ie.vnode && ie.vnode(n), ar(e.__P, n, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [t] : null, r, t == null ? Ft(i) : t, !!(32 & i.__u), o), n.__v = i.__v, n.__.__k[n.__i] = n, Xn(r, n, o), i.__e = i.__ = null, n.__e != t && Gn(n);
74
74
  }
75
75
  }
76
76
  function Gn(e) {
@@ -79,7 +79,7 @@ function Gn(e) {
79
79
  }), Gn(e);
80
80
  }
81
81
  function Hi(e) {
82
- (!e.__d && (e.__d = !0) && jt.push(e) && !wi.__r++ || an != te.debounceRendering) && ((an = te.debounceRendering) || Bn)(wi);
82
+ (!e.__d && (e.__d = !0) && jt.push(e) && !wi.__r++ || an != ie.debounceRendering) && ((an = ie.debounceRendering) || Bn)(wi);
83
83
  }
84
84
  function wi() {
85
85
  try {
@@ -151,20 +151,20 @@ function ln(e) {
151
151
  var t = this.l[i.type + e];
152
152
  if (i[hi] == null) i[hi] = or++;
153
153
  else if (i[hi] < t[Xt]) return;
154
- return t(te.event ? te.event(i) : i);
154
+ return t(ie.event ? ie.event(i) : i);
155
155
  }
156
156
  };
157
157
  }
158
158
  function ar(e, i, t, r, o, n, c, g, s, u) {
159
- var M, l, a, d, N, y, A, p, x, E, O, b, H, ie, V, K = i.type;
159
+ var M, l, a, d, N, y, A, p, x, E, O, b, $, re, P, H = i.type;
160
160
  if (i.constructor !== void 0) return null;
161
- 128 & t.__u && (s = !!(32 & t.__u), n = [g = i.__e = t.__e]), (M = te.__b) && M(i);
162
- e: if (typeof K == "function") try {
163
- if (p = i.props, x = K.prototype && K.prototype.render, E = (M = K.contextType) && r[M.__c], O = M ? E ? E.props.value : M.__ : r, t.__c ? A = (l = i.__c = t.__c).__ = l.__E : (x ? i.__c = l = new K(p, O) : (i.__c = l = new $e(p, O), l.constructor = K, l.render = ga), E && E.sub(l), l.state || (l.state = {}), l.__n = r, a = l.__d = !0, l.__h = [], l._sb = []), x && l.__s == null && (l.__s = l.state), x && K.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = tt({}, l.__s)), tt(l.__s, K.getDerivedStateFromProps(p, l.__s))), d = l.props, N = l.state, l.__v = i, a) x && K.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), x && l.componentDidMount != null && l.__h.push(l.componentDidMount);
161
+ 128 & t.__u && (s = !!(32 & t.__u), n = [g = i.__e = t.__e]), (M = ie.__b) && M(i);
162
+ e: if (typeof H == "function") try {
163
+ if (p = i.props, x = H.prototype && H.prototype.render, E = (M = H.contextType) && r[M.__c], O = M ? E ? E.props.value : M.__ : r, t.__c ? A = (l = i.__c = t.__c).__ = l.__E : (x ? i.__c = l = new H(p, O) : (i.__c = l = new $e(p, O), l.constructor = H, l.render = ga), E && E.sub(l), l.state || (l.state = {}), l.__n = r, a = l.__d = !0, l.__h = [], l._sb = []), x && l.__s == null && (l.__s = l.state), x && H.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = tt({}, l.__s)), tt(l.__s, H.getDerivedStateFromProps(p, l.__s))), d = l.props, N = l.state, l.__v = i, a) x && H.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), x && l.componentDidMount != null && l.__h.push(l.componentDidMount);
164
164
  else {
165
- if (x && K.getDerivedStateFromProps == null && p !== d && l.componentWillReceiveProps != null && l.componentWillReceiveProps(p, O), i.__v == t.__v || !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(p, l.__s, O) === !1) {
166
- i.__v != t.__v && (l.props = p, l.state = l.__s, l.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(U) {
167
- U && (U.__ = i);
165
+ if (x && H.getDerivedStateFromProps == null && p !== d && l.componentWillReceiveProps != null && l.componentWillReceiveProps(p, O), i.__v == t.__v || !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(p, l.__s, O) === !1) {
166
+ i.__v != t.__v && (l.props = p, l.state = l.__s, l.__d = !1), i.__e = t.__e, i.__k = t.__k, i.__k.some(function(k) {
167
+ k && (k.__ = i);
168
168
  }), Ei.push.apply(l.__h, l._sb), l._sb = [], l.__h.length && c.push(l);
169
169
  break e;
170
170
  }
@@ -172,37 +172,37 @@ function ar(e, i, t, r, o, n, c, g, s, u) {
172
172
  l.componentDidUpdate(d, N, y);
173
173
  });
174
174
  }
175
- if (l.context = O, l.props = p, l.__P = e, l.__e = !1, b = te.__r, H = 0, x) l.state = l.__s, l.__d = !1, b && b(i), M = l.render(l.props, l.state, l.context), Ei.push.apply(l.__h, l._sb), l._sb = [];
175
+ if (l.context = O, l.props = p, l.__P = e, l.__e = !1, b = ie.__r, $ = 0, x) l.state = l.__s, l.__d = !1, b && b(i), M = l.render(l.props, l.state, l.context), Ei.push.apply(l.__h, l._sb), l._sb = [];
176
176
  else do
177
177
  l.__d = !1, b && b(i), M = l.render(l.props, l.state, l.context), l.state = l.__s;
178
- while (l.__d && ++H < 25);
179
- l.state = l.__s, l.getChildContext != null && (r = tt(tt({}, r), l.getChildContext())), x && !a && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(d, N)), ie = M != null && M.type === be && M.key == null ? Kn(M.props.children) : M, g = $n(e, ui(ie) ? ie : [ie], i, t, r, o, n, c, g, s, u), l.base = i.__e, i.__u &= -161, l.__h.length && c.push(l), A && (l.__E = l.__ = null);
180
- } catch (U) {
181
- if (i.__v = null, s || n != null) if (U.then) {
178
+ while (l.__d && ++$ < 25);
179
+ l.state = l.__s, l.getChildContext != null && (r = tt(tt({}, r), l.getChildContext())), x && !a && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(d, N)), re = M != null && M.type === be && M.key == null ? Kn(M.props.children) : M, g = $n(e, ui(re) ? re : [re], i, t, r, o, n, c, g, s, u), l.base = i.__e, i.__u &= -161, l.__h.length && c.push(l), A && (l.__E = l.__ = null);
180
+ } catch (k) {
181
+ if (i.__v = null, s || n != null) if (k.then) {
182
182
  for (i.__u |= s ? 160 : 128; g && g.nodeType == 8 && g.nextSibling; ) g = g.nextSibling;
183
183
  n[n.indexOf(g)] = null, i.__e = g;
184
184
  } else {
185
- for (V = n.length; V--; ) sr(n[V]);
185
+ for (P = n.length; P--; ) sr(n[P]);
186
186
  Gi(i);
187
187
  }
188
- else i.__e = t.__e, i.__k = t.__k, U.then || Gi(i);
189
- te.__e(U, i, t);
188
+ else i.__e = t.__e, i.__k = t.__k, k.then || Gi(i);
189
+ ie.__e(k, i, t);
190
190
  }
191
191
  else n == null && i.__v == t.__v ? (i.__k = t.__k, i.__e = t.__e) : g = i.__e = Ma(t.__e, i, t, r, o, n, c, s, u);
192
- return (M = te.diffed) && M(i), 128 & i.__u ? void 0 : g;
192
+ return (M = ie.diffed) && M(i), 128 & i.__u ? void 0 : g;
193
193
  }
194
194
  function Gi(e) {
195
195
  e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(Gi));
196
196
  }
197
197
  function Xn(e, i, t) {
198
198
  for (var r = 0; r < t.length; r++) ur(t[r], t[++r], t[++r]);
199
- te.__c && te.__c(i, e), e.some(function(o) {
199
+ ie.__c && ie.__c(i, e), e.some(function(o) {
200
200
  try {
201
201
  e = o.__h, o.__h = [], e.some(function(n) {
202
202
  n.call(o);
203
203
  });
204
204
  } catch (n) {
205
- te.__e(n, o.__v);
205
+ ie.__e(n, o.__v);
206
206
  }
207
207
  });
208
208
  }
@@ -219,7 +219,7 @@ function Ma(e, i, t, r, o, n, c, g, s) {
219
219
  }
220
220
  if (e == null) {
221
221
  if (x == null) return document.createTextNode(p);
222
- e = document.createElementNS(o, x, p.is && p), g && (te.__m && te.__m(i, n), g = !1), n = null;
222
+ e = document.createElementNS(o, x, p.is && p), g && (ie.__m && ie.__m(i, n), g = !1), n = null;
223
223
  }
224
224
  if (x == null) A === p || g && e.data == p || (e.data = p);
225
225
  else {
@@ -239,16 +239,16 @@ function ur(e, i, t) {
239
239
  r && e.__u(), r && i == null || (e.__u = e(i));
240
240
  } else e.current = i;
241
241
  } catch (o) {
242
- te.__e(o, t);
242
+ ie.__e(o, t);
243
243
  }
244
244
  }
245
245
  function qn(e, i, t) {
246
246
  var r, o;
247
- if (te.unmount && te.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ur(r, null, i)), (r = e.__c) != null) {
247
+ if (ie.unmount && ie.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ur(r, null, i)), (r = e.__c) != null) {
248
248
  if (r.componentWillUnmount) try {
249
249
  r.componentWillUnmount();
250
250
  } catch (n) {
251
- te.__e(n, i);
251
+ ie.__e(n, i);
252
252
  }
253
253
  r.base = r.__P = null;
254
254
  }
@@ -260,7 +260,7 @@ function ga(e, i, t) {
260
260
  }
261
261
  function _t(e, i, t) {
262
262
  var r, o, n, c;
263
- i == document && (i = document.documentElement), te.__ && te.__(e, i), o = (r = typeof t == "function") ? null : t && t.__k || i.__k, n = [], c = [], ar(i, e = (!r && t || i).__k = rt(be, null, [e]), o || mi, mi, i.namespaceURI, !r && t ? [t] : o ? null : i.firstChild ? ai.call(i.childNodes) : null, n, !r && t ? t : o ? o.__e : i.firstChild, r, c), Xn(n, e, c);
263
+ i == document && (i = document.documentElement), ie.__ && ie.__(e, i), o = (r = typeof t == "function") ? null : t && t.__k || i.__k, n = [], c = [], ar(i, e = (!r && t || i).__k = rt(be, null, [e]), o || mi, mi, i.namespaceURI, !r && t ? [t] : o ? null : i.firstChild ? ai.call(i.childNodes) : null, n, !r && t ? t : o ? o.__e : i.firstChild, r, c), Xn(n, e, c);
264
264
  }
265
265
  function eo(e, i) {
266
266
  _t(e, i, eo);
@@ -293,7 +293,7 @@ function lr(e) {
293
293
  return t.children(r);
294
294
  }).contextType = i, i;
295
295
  }
296
- ai = Ei.slice, te = { __e: function(e, i, t, r) {
296
+ ai = Ei.slice, ie = { __e: function(e, i, t, r) {
297
297
  for (var o, n, c; i = i.__; ) if ((o = i.__c) && !o.__) try {
298
298
  if ((n = o.constructor) && n.getDerivedStateFromError != null && (o.setState(n.getDerivedStateFromError(e)), c = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), c = o.__d), c) return o.__E = o;
299
299
  } catch (g) {
@@ -315,7 +315,7 @@ function D(e, i, t, r, o, n) {
315
315
  if ("ref" in s) for (g in s = {}, i) g == "ref" ? c = i[g] : s[g] = i[g];
316
316
  var u = { type: e, props: s, key: t, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Na, __i: -1, __u: 0, __source: o, __self: n };
317
317
  if (typeof e == "function" && (c = e.defaultProps)) for (g in c) s[g] === void 0 && (s[g] = c[g]);
318
- return te.vnode && te.vnode(u), u;
318
+ return ie.vnode && ie.vnode(u), u;
319
319
  }
320
320
  class xt {
321
321
  constructor({
@@ -389,13 +389,13 @@ const fa = ["ar", "he"], ya = (e) => {
389
389
  const i = e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
390
390
  return fa.includes(i) ? "rtl" : "ltr";
391
391
  };
392
- var ct, Ie, Qi, cn, Bt = 0, to = [], he = te, Mn = he.__b, gn = he.__r, dn = he.diffed, Nn = he.__c, In = he.unmount, Dn = he.__;
392
+ var ct, Ie, Qi, cn, Bt = 0, to = [], he = ie, Mn = he.__b, gn = he.__r, dn = he.diffed, Nn = he.__c, In = he.unmount, Dn = he.__;
393
393
  function vt(e, i) {
394
394
  he.__h && he.__h(Ie, e, Bt || i), Bt = 0;
395
395
  var t = Ie.__H || (Ie.__H = { __: [], __h: [] });
396
396
  return e >= t.__.length && t.__.push({}), t.__[e];
397
397
  }
398
- function me(e) {
398
+ function Oe(e) {
399
399
  return Bt = 1, Si(io, e);
400
400
  }
401
401
  function Si(e, i, t) {
@@ -475,7 +475,7 @@ function gr(e, i) {
475
475
  he.useDebugValue && he.useDebugValue(i ? i(e) : e);
476
476
  }
477
477
  function ja(e) {
478
- var i = vt(ct++, 10), t = me();
478
+ var i = vt(ct++, 10), t = Oe();
479
479
  return i.__ = e, Ie.componentDidCatch || (Ie.componentDidCatch = function(r, o) {
480
480
  i.__ && i.__(r, o), t[1](r);
481
481
  }), [t[0], function() {
@@ -828,7 +828,7 @@ function Sa(e) {
828
828
  })).filter((i) => !!i.value);
829
829
  }
830
830
  const va = (e) => Array.isArray(e) ? e.length === 0 : e === 0 ? !1 : !e;
831
- function X(e) {
831
+ function q(e) {
832
832
  return e && /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e) ? e : void 0;
833
833
  }
834
834
  const La = (e, i) => e.reduce((t, r) => {
@@ -866,7 +866,7 @@ const La = (e, i) => e.reduce((t, r) => {
866
866
  return (e == null ? void 0 : e.name) === "NotAllowedError" ? "denied" : "error";
867
867
  }
868
868
  }), Ua = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Ce = (e) => {
869
- const O = e, { isFullSize: i = !1 } = O, t = yt(O, ["isFullSize"]), { failedAssets: r } = ro(), o = so(t, r), [n, c] = me(0), g = o[n];
869
+ const O = e, { isFullSize: i = !1 } = O, t = yt(O, ["isFullSize"]), { failedAssets: r } = ro(), o = so(t, r), [n, c] = Oe(0), g = o[n];
870
870
  if (!g) return null;
871
871
  const {
872
872
  imageId: s,
@@ -875,7 +875,7 @@ const La = (e, i) => e.reduce((t, r) => {
875
875
  contentMode: l = Pt.ASPECT_FILL,
876
876
  cornerRadius: a,
877
877
  backgroundColor: d
878
- } = g, [N, y] = me(!0), A = N && u, p = () => {
878
+ } = g, [N, y] = Oe(!0), A = N && u, p = () => {
879
879
  y(!1);
880
880
  }, x = () => {
881
881
  c((b) => b + 1);
@@ -887,7 +887,7 @@ const La = (e, i) => e.reduce((t, r) => {
887
887
  style: W(T({}, E), {
888
888
  objectFit: ni(l),
889
889
  borderRadius: a,
890
- backgroundColor: X(d) || "transparent",
890
+ backgroundColor: q(d) || "transparent",
891
891
  display: "block"
892
892
  }),
893
893
  src: M,
@@ -902,7 +902,7 @@ const La = (e, i) => e.reduce((t, r) => {
902
902
  type: b,
903
903
  contentMode: l,
904
904
  cornerRadius: a,
905
- backgroundColor: X(d) || "transparent",
905
+ backgroundColor: q(d) || "transparent",
906
906
  isFullSize: i
907
907
  }
908
908
  );
@@ -925,7 +925,7 @@ const La = (e, i) => e.reduce((t, r) => {
925
925
  style: W(T({}, E), {
926
926
  objectFit: ni(l),
927
927
  borderRadius: a,
928
- backgroundColor: X(d) || "transparent",
928
+ backgroundColor: q(d) || "transparent",
929
929
  display: A ? "none" : "block"
930
930
  }),
931
931
  src: u,
@@ -968,7 +968,7 @@ const La = (e, i) => e.reduce((t, r) => {
968
968
  highlightColor: c
969
969
  }) => {
970
970
  var a;
971
- const [g, s] = me(!1), u = g && c ? c : o, { perform: M } = Mt();
971
+ const [g, s] = Oe(!1), u = g && c ? c : o, { perform: M } = Mt();
972
972
  return /* @__PURE__ */ D(
973
973
  "button",
974
974
  {
@@ -981,7 +981,7 @@ const La = (e, i) => e.reduce((t, r) => {
981
981
  },
982
982
  className: "hover-button",
983
983
  style: W(T(T({}, Ra), n && { borderRadius: n }), {
984
- backgroundColor: (a = X(u)) != null ? a : "transparent"
984
+ backgroundColor: (a = q(u)) != null ? a : "transparent"
985
985
  }),
986
986
  onMouseEnter: () => s(!0),
987
987
  onMouseLeave: () => s(!1),
@@ -1033,9 +1033,9 @@ const La = (e, i) => e.reduce((t, r) => {
1033
1033
  fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
1034
1034
  fontSize: t
1035
1035
  }, M && { fontWeight: Ca(s) }), {
1036
- color: X(r) || "#000000",
1036
+ color: q(r) || "#000000",
1037
1037
  textAlign: d,
1038
- backgroundColor: X(n) || "transparent",
1038
+ backgroundColor: q(n) || "transparent",
1039
1039
  borderRadius: c
1040
1040
  }), M && Mi(g)), y = typeof e == "string" && e.trim() && oo(e);
1041
1041
  return u ? /* @__PURE__ */ D("label", { "data-ui": "gui-label", part: "gui-label", style: N, htmlFor: u, children: y }) : /* @__PURE__ */ D("div", { "data-ui": "gui-label", part: "gui-label", style: N, children: y });
@@ -1054,15 +1054,38 @@ const La = (e, i) => e.reduce((t, r) => {
1054
1054
  isGenericTemplate: l = !1,
1055
1055
  onClick: a
1056
1056
  }) => {
1057
- var O, b;
1058
- const [d, N] = me(!1), y = d && X(n) ? n : r, { perform: A } = Mt(), p = (H) => {
1057
+ var P;
1058
+ const [d, N] = Oe(!1), [y, A] = Oe(!1), x = (({
1059
+ isGenericTemplate: H,
1060
+ isPressed: k,
1061
+ isHovered: ee,
1062
+ backgroundColor: R,
1063
+ highlightColor: K
1064
+ }) => {
1065
+ const G = q(R) || "transparent", oe = q(K);
1066
+ return H && k ? oe || G : H && ee ? G : !H && ee && oe || G;
1067
+ })({
1068
+ isGenericTemplate: l,
1069
+ isPressed: y,
1070
+ isHovered: d,
1071
+ backgroundColor: r,
1072
+ highlightColor: n
1073
+ }), E = l ? {
1074
+ onPointerDown: () => A(!0),
1075
+ onPointerUp: () => A(!1),
1076
+ onPointerLeave: () => A(!1),
1077
+ onPointerCancel: () => A(!1)
1078
+ } : {
1079
+ onMouseEnter: () => N(!0),
1080
+ onMouseLeave: () => N(!1)
1081
+ }, { perform: O } = Mt(), b = (H) => {
1059
1082
  if (a && a(H), u !== "RESPONSE_BODY") return;
1060
- const ie = JSON.parse(JSON.stringify(t));
1061
- vi(ie), A(ie, li.DATA);
1062
- }, x = l ? T({}, Mi(M)) : {
1083
+ const k = JSON.parse(JSON.stringify(t));
1084
+ vi(k), O(k, li.DATA);
1085
+ }, $ = l ? T({}, Mi(M)) : {
1063
1086
  padding: "10px 16px",
1064
1087
  height: "50px"
1065
- }, E = T({
1088
+ }, re = T(T({
1066
1089
  width: "100%",
1067
1090
  textAlign: "center",
1068
1091
  fontSize: "16px",
@@ -1075,24 +1098,23 @@ const La = (e, i) => e.reduce((t, r) => {
1075
1098
  gap: 10,
1076
1099
  borderRadius: o || 0,
1077
1100
  borderStyle: g && s ? "solid" : void 0,
1078
- backgroundColor: (O = X(y)) != null ? O : "transparent",
1079
- borderColor: (b = X(g)) != null ? b : "none",
1101
+ backgroundColor: x,
1102
+ borderColor: (P = q(g)) != null ? P : "none",
1080
1103
  borderWidth: s != null ? s : 0,
1081
1104
  overflow: "hidden",
1082
1105
  transition: ".3s",
1083
1106
  outlineColor: gi
1084
- }, x);
1107
+ }, l && { WebkitTapHighlightColor: "transparent" }), $);
1085
1108
  return /* @__PURE__ */ D(
1086
1109
  "button",
1087
- {
1110
+ W(T({
1088
1111
  "data-ui": "gui-button",
1089
1112
  part: "gui-button",
1090
1113
  type: u === "FORM" ? "submit" : "button",
1091
1114
  "data-test": c,
1092
- onClick: p,
1093
- style: E,
1094
- onMouseEnter: () => N(!0),
1095
- onMouseLeave: () => N(!1),
1115
+ onClick: b,
1116
+ style: re
1117
+ }, E), {
1096
1118
  children: [
1097
1119
  i && /* @__PURE__ */ D(
1098
1120
  "div",
@@ -1117,7 +1139,7 @@ const La = (e, i) => e.reduce((t, r) => {
1117
1139
  }
1118
1140
  )
1119
1141
  ]
1120
- }
1142
+ })
1121
1143
  );
1122
1144
  }, Fa = (t) => {
1123
1145
  var r = t, { items: e } = r, i = yt(r, ["items"]);
@@ -1158,7 +1180,7 @@ const La = (e, i) => e.reduce((t, r) => {
1158
1180
  paddingInline: "20px",
1159
1181
  height: "100%",
1160
1182
  width: "100%",
1161
- backgroundColor: X(r)
1183
+ backgroundColor: q(r)
1162
1184
  };
1163
1185
  return /* @__PURE__ */ D(
1164
1186
  "div",
@@ -1217,9 +1239,9 @@ const La = (e, i) => e.reduce((t, r) => {
1217
1239
  fontFamily: [i, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
1218
1240
  fontSize: o,
1219
1241
  textAlign: ao(r),
1220
- color: X(t) || "#000000",
1242
+ color: q(t) || "#000000",
1221
1243
  borderRadius: c,
1222
- backgroundColor: X(n) || "transparent",
1244
+ backgroundColor: q(n) || "transparent",
1223
1245
  whiteSpace: "pre-line"
1224
1246
  },
1225
1247
  children: e && oo(e)
@@ -1233,7 +1255,7 @@ const La = (e, i) => e.reduce((t, r) => {
1233
1255
  buttons: n,
1234
1256
  backgroundColor: c
1235
1257
  }) => {
1236
- const g = Je(null), [s, u] = me(!1);
1258
+ const g = Je(null), [s, u] = Oe(!1);
1237
1259
  return Be(() => {
1238
1260
  g.current && u(g.current.scrollHeight > g.current.clientHeight + 2);
1239
1261
  }, []), /* @__PURE__ */ D(gt, { header: e, buttons: n, footer: i, backgroundColor: c, children: /* @__PURE__ */ D(
@@ -1341,7 +1363,7 @@ const La = (e, i) => e.reduce((t, r) => {
1341
1363
  height: "100%",
1342
1364
  width: "100%"
1343
1365
  },
1344
- children: /* @__PURE__ */ D(Ha, { indicatorColor: X(e == null ? void 0 : e.indicatorColor) || "#000000" })
1366
+ children: /* @__PURE__ */ D(Ha, { indicatorColor: q(e == null ? void 0 : e.indicatorColor) || "#000000" })
1345
1367
  }
1346
1368
  ) }), Ga = ({
1347
1369
  title: e,
@@ -1362,7 +1384,7 @@ const La = (e, i) => e.reduce((t, r) => {
1362
1384
  padding: "16px 0",
1363
1385
  gap: 16
1364
1386
  }), {
1365
- backgroundColor: X(r) || "transparent",
1387
+ backgroundColor: q(r) || "transparent",
1366
1388
  borderRadius: o
1367
1389
  }),
1368
1390
  children: [
@@ -1390,7 +1412,7 @@ const La = (e, i) => e.reduce((t, r) => {
1390
1412
  {
1391
1413
  className: "details",
1392
1414
  style: W(T({}, $a), {
1393
- backgroundColor: X(i) || "white",
1415
+ backgroundColor: q(i) || "white",
1394
1416
  borderRadius: t
1395
1417
  }),
1396
1418
  children: e.map((r, o) => /* @__PURE__ */ D(Ga, T({ isLastChild: o === e.length - 1 }, r), o))
@@ -1403,7 +1425,7 @@ const La = (e, i) => e.reduce((t, r) => {
1403
1425
  buttons: o,
1404
1426
  backgroundColor: n
1405
1427
  }) => {
1406
- const c = Je(null), [g, s] = me(!1);
1428
+ const c = Je(null), [g, s] = Oe(!1);
1407
1429
  return Be(() => {
1408
1430
  c.current && s(c.current.scrollHeight > c.current.clientHeight);
1409
1431
  }, []), /* @__PURE__ */ D(gt, { header: i, buttons: o, footer: t, backgroundColor: n, children: /* @__PURE__ */ D(
@@ -1435,7 +1457,7 @@ function Ki(e, i) {
1435
1457
  return !1;
1436
1458
  }
1437
1459
  function Dr(e, i) {
1438
- var t = i(), r = me({ t: { __: t, u: i } }), o = r[0].t, n = r[1];
1460
+ var t = i(), r = Oe({ t: { __: t, u: i } }), o = r[0].t, n = r[1];
1439
1461
  return ht(function() {
1440
1462
  o.__ = t, o.u = i, Yi(o) && n({ t: o });
1441
1463
  }, [e, t, i]), Be(function() {
@@ -1478,8 +1500,8 @@ function co(e, i) {
1478
1500
  (xi.prototype = new $e()).isPureReactComponent = !0, xi.prototype.shouldComponentUpdate = function(e, i) {
1479
1501
  return Ki(this.props, e) || Ki(this.state, i);
1480
1502
  };
1481
- var An = te.__b;
1482
- te.__b = function(e) {
1503
+ var An = ie.__b;
1504
+ ie.__b = function(e) {
1483
1505
  e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), An && An(e);
1484
1506
  };
1485
1507
  var Ka = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
@@ -1498,14 +1520,14 @@ var Tn = function(e, i) {
1498
1520
  var i = lt(e);
1499
1521
  if (i.length !== 1) throw "Children.only";
1500
1522
  return i[0];
1501
- }, toArray: lt }, qa = te.__e;
1502
- te.__e = function(e, i, t, r) {
1523
+ }, toArray: lt }, qa = ie.__e;
1524
+ ie.__e = function(e, i, t, r) {
1503
1525
  if (e.then) {
1504
1526
  for (var o, n = i; n = n.__; ) if ((o = n.__c) && o.__c) return i.__e == null && (i.__e = t.__e, i.__k = t.__k), o.__c(e, i);
1505
1527
  }
1506
1528
  qa(e, i, t, r);
1507
1529
  };
1508
- var hn = te.unmount;
1530
+ var hn = ie.unmount;
1509
1531
  function No(e, i, t) {
1510
1532
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
1511
1533
  typeof r.__c == "function" && r.__c();
@@ -1541,7 +1563,7 @@ function fo(e) {
1541
1563
  function Rt() {
1542
1564
  this.i = null, this.l = null;
1543
1565
  }
1544
- te.unmount = function(e) {
1566
+ ie.unmount = function(e) {
1545
1567
  var i = e.__c;
1546
1568
  i && (i.__z = !0), i && i.__R && i.__R(), i && 32 & e.__u && (e.type = null), hn && hn(e);
1547
1569
  }, (ei.prototype = new $e()).__c = function(e, i) {
@@ -1645,8 +1667,8 @@ $e.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceive
1645
1667
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: i });
1646
1668
  } });
1647
1669
  });
1648
- var On = te.event;
1649
- te.event = function(e) {
1670
+ var On = ie.event;
1671
+ ie.event = function(e) {
1650
1672
  return On && (e = On(e)), e.persist = function() {
1651
1673
  }, e.isPropagationStopped = function() {
1652
1674
  return this.cancelBubble;
@@ -1656,8 +1678,8 @@ te.event = function(e) {
1656
1678
  };
1657
1679
  var Tr, au = { configurable: !0, get: function() {
1658
1680
  return this.class;
1659
- } }, mn = te.vnode;
1660
- te.vnode = function(e) {
1681
+ } }, mn = ie.vnode;
1682
+ ie.vnode = function(e) {
1661
1683
  typeof e.type == "string" && (function(i) {
1662
1684
  var t = i.props, r = i.type, o = {}, n = r.indexOf("-") == -1;
1663
1685
  for (var c in t) {
@@ -1674,19 +1696,19 @@ te.vnode = function(e) {
1674
1696
  }))), t.class && !t.className ? (o.class = t.class, Object.defineProperty(o, "className", au)) : t.className && (o.class = o.className = t.className), i.props = o;
1675
1697
  })(e), e.$$typeof = jo, mn && mn(e);
1676
1698
  };
1677
- var En = te.__r;
1678
- te.__r = function(e) {
1699
+ var En = ie.__r;
1700
+ ie.__r = function(e) {
1679
1701
  En && En(e), Tr = e.__c;
1680
1702
  };
1681
- var wn = te.diffed;
1682
- te.diffed = function(e) {
1703
+ var wn = ie.diffed;
1704
+ ie.diffed = function(e) {
1683
1705
  wn && wn(e);
1684
1706
  var i = e.props, t = e.__e;
1685
1707
  t != null && e.type === "textarea" && "value" in i && i.value !== t.value && (t.value = i.value == null ? "" : i.value), Tr = null;
1686
1708
  };
1687
1709
  var ho = { ReactCurrentDispatcher: { current: { readContext: function(e) {
1688
1710
  return Tr.__n[e.__c].props.value;
1689
- }, useCallback: Mr, useContext: zt, useDebugValue: gr, useDeferredValue: yr, useEffect: Be, useId: dr, useImperativeHandle: cr, useInsertionEffect: Ar, useLayoutEffect: ht, useMemo: ci, useReducer: Si, useRef: Je, useState: me, useSyncExternalStore: Dr, useTransition: jr } } }, uu = "18.3.1";
1711
+ }, useCallback: Mr, useContext: zt, useDebugValue: gr, useDeferredValue: yr, useEffect: Be, useId: dr, useImperativeHandle: cr, useInsertionEffect: Ar, useLayoutEffect: ht, useMemo: ci, useReducer: Si, useRef: Je, useState: Oe, useSyncExternalStore: Dr, useTransition: jr } } }, uu = "18.3.1";
1690
1712
  function zo(e) {
1691
1713
  return rt.bind(null, e);
1692
1714
  }
@@ -1711,13 +1733,13 @@ function po(e) {
1711
1733
  var xo = function(e, i) {
1712
1734
  return e(i);
1713
1735
  }, Co = function(e, i) {
1714
- var t = te.debounceRendering;
1715
- te.debounceRendering = function(o) {
1736
+ var t = ie.debounceRendering;
1737
+ ie.debounceRendering = function(o) {
1716
1738
  return o();
1717
1739
  };
1718
1740
  var r = e(i);
1719
- return te.debounceRendering = t, r;
1720
- }, bo = Ni, B = { useState: me, useId: dr, useReducer: Si, useEffect: Be, useLayoutEffect: ht, useInsertionEffect: Ar, useTransition: jr, useDeferredValue: yr, useSyncExternalStore: Dr, startTransition: fr, useRef: Je, useImperativeHandle: cr, useMemo: ci, useCallback: Mr, useContext: zt, useDebugValue: gr, version: "18.3.1", Children: go, render: Ao, hydrate: To, unmountComponentAtNode: wo, createPortal: yo, createElement: rt, createContext: lr, createFactory: zo, cloneElement: Eo, createRef: Hn, Fragment: be, isValidElement: Ni, isElement: bo, isFragment: Oo, isMemo: mo, findDOMNode: po, Component: $e, PureComponent: xi, memo: co, forwardRef: Mo, flushSync: Co, unstable_batchedUpdates: xo, StrictMode: be, Suspense: ei, SuspenseList: Rt, lazy: fo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ho };
1741
+ return ie.debounceRendering = t, r;
1742
+ }, bo = Ni, V = { useState: Oe, useId: dr, useReducer: Si, useEffect: Be, useLayoutEffect: ht, useInsertionEffect: Ar, useTransition: jr, useDeferredValue: yr, useSyncExternalStore: Dr, startTransition: fr, useRef: Je, useImperativeHandle: cr, useMemo: ci, useCallback: Mr, useContext: zt, useDebugValue: gr, version: "18.3.1", Children: go, render: Ao, hydrate: To, unmountComponentAtNode: wo, createPortal: yo, createElement: rt, createContext: lr, createFactory: zo, cloneElement: Eo, createRef: Hn, Fragment: be, isValidElement: Ni, isElement: bo, isFragment: Oo, isMemo: mo, findDOMNode: po, Component: $e, PureComponent: xi, memo: co, forwardRef: Mo, flushSync: Co, unstable_batchedUpdates: xo, StrictMode: be, Suspense: ei, SuspenseList: Rt, lazy: fo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ho };
1721
1743
  const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1722
1744
  __proto__: null,
1723
1745
  Children: go,
@@ -1734,7 +1756,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1734
1756
  createFactory: zo,
1735
1757
  createPortal: yo,
1736
1758
  createRef: Hn,
1737
- default: B,
1759
+ default: V,
1738
1760
  findDOMNode: po,
1739
1761
  flushSync: Co,
1740
1762
  forwardRef: Mo,
@@ -1762,7 +1784,7 @@ const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1762
1784
  useMemo: ci,
1763
1785
  useReducer: Si,
1764
1786
  useRef: Je,
1765
- useState: me,
1787
+ useState: Oe,
1766
1788
  useSyncExternalStore: Dr,
1767
1789
  useTransition: jr,
1768
1790
  version: uu
@@ -1787,7 +1809,7 @@ function pe(e) {
1787
1809
  Object.prototype.hasOwnProperty.call(e, o) && (r[o] = pe(e[o]));
1788
1810
  return r;
1789
1811
  }
1790
- var Li = (e) => /^\w*$/.test(e), Ae = (e) => e === void 0, zr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Or = (e) => zr(e.replace(/["|']|\]/g, "").split(/\.|\[/)), k = (e, i, t) => {
1812
+ var Li = (e) => /^\w*$/.test(e), Ae = (e) => e === void 0, zr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Or = (e) => zr(e.replace(/["|']|\]/g, "").split(/\.|\[/)), U = (e, i, t) => {
1791
1813
  if (!i || !Ee(e))
1792
1814
  return t;
1793
1815
  const r = (Li(i) ? [i] : Or(i)).reduce((o, n) => Ye(o) ? o : o[n], e);
@@ -1828,9 +1850,9 @@ const At = {
1828
1850
  pattern: "pattern",
1829
1851
  required: "required",
1830
1852
  validate: "validate"
1831
- }, Pi = "form", Lo = "root", ko = B.createContext(null);
1853
+ }, Pi = "form", Lo = "root", ko = V.createContext(null);
1832
1854
  ko.displayName = "HookFormControlContext";
1833
- const mr = () => B.useContext(ko);
1855
+ const mr = () => V.useContext(ko);
1834
1856
  var Uo = (e, i, t, r = !0) => {
1835
1857
  const o = {
1836
1858
  defaultValues: i._defaultValues
@@ -1844,9 +1866,9 @@ var Uo = (e, i, t, r = !0) => {
1844
1866
  });
1845
1867
  return o;
1846
1868
  };
1847
- const Er = typeof window != "undefined" ? B.useLayoutEffect : B.useEffect;
1869
+ const Er = typeof window != "undefined" ? V.useLayoutEffect : V.useEffect;
1848
1870
  function Mu(e) {
1849
- const i = mr(), { control: t = i, disabled: r, name: o, exact: n } = e || {}, [c, g] = B.useState(t._formState), s = B.useRef({
1871
+ const i = mr(), { control: t = i, disabled: r, name: o, exact: n } = e || {}, [c, g] = V.useState(t._formState), s = V.useRef({
1850
1872
  isDirty: !1,
1851
1873
  isLoading: !1,
1852
1874
  dirtyFields: !1,
@@ -1863,11 +1885,11 @@ function Mu(e) {
1863
1885
  callback: (u) => {
1864
1886
  !r && g(T(T({}, t._formState), u));
1865
1887
  }
1866
- }), [o, r, n]), B.useEffect(() => {
1888
+ }), [o, r, n]), V.useEffect(() => {
1867
1889
  s.current.isValid && t._setValid(!0);
1868
- }, [t]), B.useMemo(() => Uo(c, t, s.current, !1), [c, t]);
1890
+ }, [t]), V.useMemo(() => Uo(c, t, s.current, !1), [c, t]);
1869
1891
  }
1870
- var Qe = (e) => typeof e == "string", qi = (e, i, t, r, o) => Qe(e) ? (r && i.watch.add(e), k(t, e, o)) : Array.isArray(e) ? e.map((n) => (r && i.watch.add(n), k(t, n))) : (r && (i.watchAll = !0), t), er = (e) => Ye(e) || !_o(e);
1892
+ var Qe = (e) => typeof e == "string", qi = (e, i, t, r, o) => Qe(e) ? (r && i.watch.add(e), U(t, e, o)) : Array.isArray(e) ? e.map((n) => (r && i.watch.add(n), U(t, n))) : (r && (i.watchAll = !0), t), er = (e) => Ye(e) || !_o(e);
1871
1893
  function Ge(e, i, t = /* @__PURE__ */ new WeakSet()) {
1872
1894
  if (er(e) || er(i))
1873
1895
  return Object.is(e, i);
@@ -1892,20 +1914,20 @@ function Ge(e, i, t = /* @__PURE__ */ new WeakSet()) {
1892
1914
  return !0;
1893
1915
  }
1894
1916
  function gu(e) {
1895
- const i = mr(), { control: t = i, name: r, defaultValue: o, disabled: n, exact: c, compute: g } = e || {}, s = B.useRef(o), u = B.useRef(g), M = B.useRef(void 0), l = B.useRef(t), a = B.useRef(r);
1917
+ const i = mr(), { control: t = i, name: r, defaultValue: o, disabled: n, exact: c, compute: g } = e || {}, s = V.useRef(o), u = V.useRef(g), M = V.useRef(void 0), l = V.useRef(t), a = V.useRef(r);
1896
1918
  u.current = g;
1897
- const [d, N] = B.useState(() => {
1919
+ const [d, N] = V.useState(() => {
1898
1920
  const O = t._getWatch(r, s.current);
1899
1921
  return u.current ? u.current(O) : O;
1900
- }), y = B.useCallback((O) => {
1922
+ }), y = V.useCallback((O) => {
1901
1923
  const b = qi(r, t._names, O || t._formValues, !1, s.current);
1902
1924
  return u.current ? u.current(b) : b;
1903
- }, [t._formValues, t._names, r]), A = B.useCallback((O) => {
1925
+ }, [t._formValues, t._names, r]), A = V.useCallback((O) => {
1904
1926
  if (!n) {
1905
1927
  const b = qi(r, t._names, O || t._formValues, !1, s.current);
1906
1928
  if (u.current) {
1907
- const H = u.current(b);
1908
- Ge(H, M.current) || (N(H), M.current = H);
1929
+ const $ = u.current(b);
1930
+ Ge($, M.current) || (N($), M.current = $);
1909
1931
  } else
1910
1932
  N(b);
1911
1933
  }
@@ -1919,8 +1941,8 @@ function gu(e) {
1919
1941
  callback: (O) => {
1920
1942
  A(O.values);
1921
1943
  }
1922
- })), [t, c, r, A]), B.useEffect(() => t._removeUnmounted());
1923
- const p = l.current !== t, x = a.current, E = B.useMemo(() => {
1944
+ })), [t, c, r, A]), V.useEffect(() => t._removeUnmounted());
1945
+ const p = l.current !== t, x = a.current, E = V.useMemo(() => {
1924
1946
  if (n)
1925
1947
  return null;
1926
1948
  const O = !p && !Ge(x, r);
@@ -1929,7 +1951,7 @@ function gu(e) {
1929
1951
  return E !== null ? E : d;
1930
1952
  }
1931
1953
  function du(e) {
1932
- const i = mr(), { name: t, disabled: r, control: o = i, shouldUnregister: n, defaultValue: c, exact: g = !0 } = e, s = vo(o._names.array, t), u = B.useMemo(() => k(o._formValues, t, k(o._defaultValues, t, c)), [o, t, c]), M = gu({
1954
+ const i = mr(), { name: t, disabled: r, control: o = i, shouldUnregister: n, defaultValue: c, exact: g = !0 } = e, s = vo(o._names.array, t), u = V.useMemo(() => U(o._formValues, t, U(o._defaultValues, t, c)), [o, t, c]), M = gu({
1933
1955
  control: o,
1934
1956
  name: t,
1935
1957
  defaultValue: u,
@@ -1938,52 +1960,52 @@ function du(e) {
1938
1960
  control: o,
1939
1961
  name: t,
1940
1962
  exact: g
1941
- }), a = B.useRef(e), d = B.useRef(void 0), N = B.useRef(o.register(t, T(W(T({}, e.rules), {
1963
+ }), a = V.useRef(e), d = V.useRef(void 0), N = V.useRef(o.register(t, T(W(T({}, e.rules), {
1942
1964
  value: M
1943
1965
  }), Fe(e.disabled) ? { disabled: e.disabled } : {})));
1944
1966
  a.current = e;
1945
- const y = B.useMemo(() => Object.defineProperties({}, {
1967
+ const y = V.useMemo(() => Object.defineProperties({}, {
1946
1968
  invalid: {
1947
1969
  enumerable: !0,
1948
- get: () => !!k(l.errors, t)
1970
+ get: () => !!U(l.errors, t)
1949
1971
  },
1950
1972
  isDirty: {
1951
1973
  enumerable: !0,
1952
- get: () => !!k(l.dirtyFields, t)
1974
+ get: () => !!U(l.dirtyFields, t)
1953
1975
  },
1954
1976
  isTouched: {
1955
1977
  enumerable: !0,
1956
- get: () => !!k(l.touchedFields, t)
1978
+ get: () => !!U(l.touchedFields, t)
1957
1979
  },
1958
1980
  isValidating: {
1959
1981
  enumerable: !0,
1960
- get: () => !!k(l.validatingFields, t)
1982
+ get: () => !!U(l.validatingFields, t)
1961
1983
  },
1962
1984
  error: {
1963
1985
  enumerable: !0,
1964
- get: () => k(l.errors, t)
1986
+ get: () => U(l.errors, t)
1965
1987
  }
1966
- }), [l, t]), A = B.useCallback((O) => N.current.onChange({
1988
+ }), [l, t]), A = V.useCallback((O) => N.current.onChange({
1967
1989
  target: {
1968
1990
  value: So(O),
1969
1991
  name: t
1970
1992
  },
1971
1993
  type: At.CHANGE
1972
- }), [t]), p = B.useCallback(() => N.current.onBlur({
1994
+ }), [t]), p = V.useCallback(() => N.current.onBlur({
1973
1995
  target: {
1974
- value: k(o._formValues, t),
1996
+ value: U(o._formValues, t),
1975
1997
  name: t
1976
1998
  },
1977
1999
  type: At.BLUR
1978
- }), [t, o._formValues]), x = B.useCallback((O) => {
1979
- const b = k(o._fields, t);
2000
+ }), [t, o._formValues]), x = V.useCallback((O) => {
2001
+ const b = U(o._fields, t);
1980
2002
  b && b._f && O && (b._f.ref = {
1981
2003
  focus: () => Ue(O.focus) && O.focus(),
1982
2004
  select: () => Ue(O.select) && O.select(),
1983
- setCustomValidity: (H) => Ue(O.setCustomValidity) && O.setCustomValidity(H),
2005
+ setCustomValidity: ($) => Ue(O.setCustomValidity) && O.setCustomValidity($),
1984
2006
  reportValidity: () => Ue(O.reportValidity) && O.reportValidity()
1985
2007
  });
1986
- }, [o._fields, t]), E = B.useMemo(() => W(T({
2008
+ }, [o._fields, t]), E = V.useMemo(() => W(T({
1987
2009
  name: t,
1988
2010
  value: M
1989
2011
  }, Fe(r) || l.disabled ? { disabled: l.disabled || r } : {}), {
@@ -1991,32 +2013,32 @@ function du(e) {
1991
2013
  onBlur: p,
1992
2014
  ref: x
1993
2015
  }), [t, r, l.disabled, A, p, x, M]);
1994
- return B.useEffect(() => {
2016
+ return V.useEffect(() => {
1995
2017
  const O = o._options.shouldUnregister || n, b = d.current;
1996
2018
  b && b !== t && !s && o.unregister(b), o.register(t, T(T({}, a.current.rules), Fe(a.current.disabled) ? { disabled: a.current.disabled } : {}));
1997
- const H = (ie, V) => {
1998
- const K = k(o._fields, ie);
1999
- K && K._f && (K._f.mount = V);
2019
+ const $ = (re, P) => {
2020
+ const H = U(o._fields, re);
2021
+ H && H._f && (H._f.mount = P);
2000
2022
  };
2001
- if (H(t, !0), O) {
2002
- const ie = pe(k(o._options.defaultValues, t, a.current.defaultValue));
2003
- Ne(o._defaultValues, t, ie), Ae(k(o._formValues, t)) && Ne(o._formValues, t, ie);
2023
+ if ($(t, !0), O) {
2024
+ const re = pe(U(o._options.defaultValues, t, a.current.defaultValue));
2025
+ Ne(o._defaultValues, t, re), Ae(U(o._formValues, t)) && Ne(o._formValues, t, re);
2004
2026
  }
2005
2027
  return !s && o.register(t), d.current = t, () => {
2006
- (s ? O && !o._state.action : O) ? o.unregister(t) : H(t, !1);
2028
+ (s ? O && !o._state.action : O) ? o.unregister(t) : $(t, !1);
2007
2029
  };
2008
- }, [t, o, s, n]), B.useEffect(() => {
2030
+ }, [t, o, s, n]), V.useEffect(() => {
2009
2031
  o._setDisabledField({
2010
2032
  disabled: r,
2011
2033
  name: t
2012
2034
  });
2013
- }, [r, t, o]), B.useMemo(() => ({
2035
+ }, [r, t, o]), V.useMemo(() => ({
2014
2036
  field: E,
2015
2037
  formState: l,
2016
2038
  fieldState: y
2017
2039
  }), [E, l, y]);
2018
2040
  }
2019
- const Qo = (e) => e.render(du(e)), Nu = B.createContext(null);
2041
+ const Qo = (e) => e.render(du(e)), Nu = V.createContext(null);
2020
2042
  Nu.displayName = "HookFormContext";
2021
2043
  var Iu = (e, i, t, r, o) => i ? W(T({}, t[e]), {
2022
2044
  types: W(T({}, t[e] && t[e].types ? t[e].types : {}), {
@@ -2138,7 +2160,7 @@ function _n(e) {
2138
2160
  var Au = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Tu = (e, i, t, r) => {
2139
2161
  const o = {};
2140
2162
  for (const n of e) {
2141
- const c = k(i, n);
2163
+ const c = U(i, n);
2142
2164
  c && Ne(o, n, c._f);
2143
2165
  }
2144
2166
  return {
@@ -2158,7 +2180,7 @@ const vn = "AsyncFunction";
2158
2180
  var hu = (e) => !!e && !!e.validate && !!(Ue(e.validate) && e.validate.constructor.name === vn || Ee(e.validate) && Object.values(e.validate).find((i) => i.constructor.name === vn)), zu = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Ln = (e, i, t) => !t && (i.watchAll || i.watch.has(e) || [...i.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
2159
2181
  const ii = (e, i, t, r) => {
2160
2182
  for (const n of t || Object.keys(e)) {
2161
- const c = k(e, n);
2183
+ const c = U(e, n);
2162
2184
  if (c) {
2163
2185
  const o = c, { _f: g } = o, s = yt(o, ["_f"]);
2164
2186
  if (g) {
@@ -2174,7 +2196,7 @@ const ii = (e, i, t, r) => {
2174
2196
  }
2175
2197
  };
2176
2198
  function kn(e, i, t) {
2177
- const r = k(e, t);
2199
+ const r = U(e, t);
2178
2200
  if (r || Li(t))
2179
2201
  return {
2180
2202
  error: r,
@@ -2182,7 +2204,7 @@ function kn(e, i, t) {
2182
2204
  };
2183
2205
  const o = t.split(".");
2184
2206
  for (; o.length; ) {
2185
- const n = o.join("."), c = k(i, n), g = k(e, n);
2207
+ const n = o.join("."), c = U(i, n), g = U(e, n);
2186
2208
  if (c && !Array.isArray(c) && t !== n)
2187
2209
  return { name: t };
2188
2210
  if (g && g.type)
@@ -2205,8 +2227,8 @@ var Ou = (e, i, t, r) => {
2205
2227
  t(e);
2206
2228
  const c = e, { name: o } = c, n = yt(c, ["name"]);
2207
2229
  return ke(n) || Object.keys(n).length >= Object.keys(i).length || Object.keys(n).find((g) => i[g] === (!r || He.all));
2208
- }, mu = (e, i, t) => !e || !i || e === i || ti(e).some((r) => r && (t ? r === i : r.startsWith(i) || i.startsWith(r))), Eu = (e, i, t, r, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(i || e) : (t ? r.isOnBlur : o.isOnBlur) ? !e : (t ? r.isOnChange : o.isOnChange) ? e : !0, wu = (e, i) => !zr(k(e, i)).length && xe(e, i), pu = (e, i, t) => {
2209
- const r = ti(k(e, t));
2230
+ }, mu = (e, i, t) => !e || !i || e === i || ti(e).some((r) => r && (t ? r === i : r.startsWith(i) || i.startsWith(r))), Eu = (e, i, t, r, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(i || e) : (t ? r.isOnBlur : o.isOnBlur) ? !e : (t ? r.isOnChange : o.isOnChange) ? e : !0, wu = (e, i) => !zr(U(e, i)).length && xe(e, i), pu = (e, i, t) => {
2231
+ const r = ti(U(e, t));
2210
2232
  return Ne(r, Lo, i[t]), Ne(e, t, r), e;
2211
2233
  };
2212
2234
  function Un(e, i, t = "validate") {
@@ -2221,71 +2243,71 @@ var Qt = (e) => Ee(e) && !bi(e) ? e : {
2221
2243
  value: e,
2222
2244
  message: ""
2223
2245
  }, Qn = (e, i, t, r, o, n) => De(null, null, function* () {
2224
- const { ref: c, refs: g, required: s, maxLength: u, minLength: M, min: l, max: a, pattern: d, validate: N, name: y, valueAsNumber: A, mount: p } = e._f, x = k(t, y);
2246
+ const { ref: c, refs: g, required: s, maxLength: u, minLength: M, min: l, max: a, pattern: d, validate: N, name: y, valueAsNumber: A, mount: p } = e._f, x = U(t, y);
2225
2247
  if (!p || i.has(y))
2226
2248
  return {};
2227
- const E = g ? g[0] : c, O = (Y) => {
2228
- o && E.reportValidity && (E.setCustomValidity(Fe(Y) ? "" : Y || ""), E.reportValidity());
2229
- }, b = {}, H = pr(c), ie = Ii(c), V = H || ie, K = (A || wr(c)) && Ae(c.value) && Ae(x) || Ci(c) && c.value === "" || x === "" || Array.isArray(x) && !x.length, U = Iu.bind(null, y, r, b), re = (Y, q, J, le = Ze.maxLength, fe = Ze.minLength) => {
2230
- const de = Y ? q : J;
2249
+ const E = g ? g[0] : c, O = (R) => {
2250
+ o && E.reportValidity && (E.setCustomValidity(Fe(R) ? "" : R || ""), E.reportValidity());
2251
+ }, b = {}, $ = pr(c), re = Ii(c), P = $ || re, H = (A || wr(c)) && Ae(c.value) && Ae(x) || Ci(c) && c.value === "" || x === "" || Array.isArray(x) && !x.length, k = Iu.bind(null, y, r, b), ee = (R, K, G, oe = Ze.maxLength, fe = Ze.minLength) => {
2252
+ const de = R ? K : G;
2231
2253
  b[y] = T({
2232
- type: Y ? le : fe,
2254
+ type: R ? oe : fe,
2233
2255
  message: de,
2234
2256
  ref: c
2235
- }, U(Y ? le : fe, de));
2257
+ }, k(R ? oe : fe, de));
2236
2258
  };
2237
- if (n ? !Array.isArray(x) || !x.length : s && (!V && (K || Ye(x)) || Fe(x) && !x || ie && !Fo(g).isValid || H && !Vo(g).isValid)) {
2238
- const { value: Y, message: q } = Qe(s) ? { value: !!s, message: s } : Qt(s);
2239
- if (Y && (b[y] = T({
2259
+ if (n ? !Array.isArray(x) || !x.length : s && (!P && (H || Ye(x)) || Fe(x) && !x || re && !Fo(g).isValid || $ && !Vo(g).isValid)) {
2260
+ const { value: R, message: K } = Qe(s) ? { value: !!s, message: s } : Qt(s);
2261
+ if (R && (b[y] = T({
2240
2262
  type: Ze.required,
2241
- message: q,
2263
+ message: K,
2242
2264
  ref: E
2243
- }, U(Ze.required, q)), !r))
2244
- return O(q), b;
2265
+ }, k(Ze.required, K)), !r))
2266
+ return O(K), b;
2245
2267
  }
2246
- if (!K && (!Ye(l) || !Ye(a))) {
2247
- let Y, q;
2248
- const J = Qt(a), le = Qt(l);
2268
+ if (!H && (!Ye(l) || !Ye(a))) {
2269
+ let R, K;
2270
+ const G = Qt(a), oe = Qt(l);
2249
2271
  if (!Ye(x) && !isNaN(x)) {
2250
2272
  const fe = c.valueAsNumber || x && +x;
2251
- Ye(J.value) || (Y = fe > J.value), Ye(le.value) || (q = fe < le.value);
2273
+ Ye(G.value) || (R = fe > G.value), Ye(oe.value) || (K = fe < oe.value);
2252
2274
  } else {
2253
- const fe = c.valueAsDate || new Date(x), de = (G) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + G), ve = c.type == "time", ce = c.type == "week";
2254
- Qe(J.value) && x && (Y = ve ? de(x) > de(J.value) : ce ? x > J.value : fe > new Date(J.value)), Qe(le.value) && x && (q = ve ? de(x) < de(le.value) : ce ? x < le.value : fe < new Date(le.value));
2275
+ const fe = c.valueAsDate || new Date(x), de = (J) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + J), ve = c.type == "time", ce = c.type == "week";
2276
+ Qe(G.value) && x && (R = ve ? de(x) > de(G.value) : ce ? x > G.value : fe > new Date(G.value)), Qe(oe.value) && x && (K = ve ? de(x) < de(oe.value) : ce ? x < oe.value : fe < new Date(oe.value));
2255
2277
  }
2256
- if ((Y || q) && (re(!!Y, J.message, le.message, Ze.max, Ze.min), !r))
2278
+ if ((R || K) && (ee(!!R, G.message, oe.message, Ze.max, Ze.min), !r))
2257
2279
  return O(b[y].message), b;
2258
2280
  }
2259
- if ((u || M) && !K && (Qe(x) || n && Array.isArray(x))) {
2260
- const Y = Qt(u), q = Qt(M), J = !Ye(Y.value) && x.length > +Y.value, le = !Ye(q.value) && x.length < +q.value;
2261
- if ((J || le) && (re(J, Y.message, q.message), !r))
2281
+ if ((u || M) && !H && (Qe(x) || n && Array.isArray(x))) {
2282
+ const R = Qt(u), K = Qt(M), G = !Ye(R.value) && x.length > +R.value, oe = !Ye(K.value) && x.length < +K.value;
2283
+ if ((G || oe) && (ee(G, R.message, K.message), !r))
2262
2284
  return O(b[y].message), b;
2263
2285
  }
2264
- if (d && !K && Qe(x)) {
2265
- const { value: Y, message: q } = Qt(d);
2266
- if (bi(Y) && !x.match(Y) && (b[y] = T({
2286
+ if (d && !H && Qe(x)) {
2287
+ const { value: R, message: K } = Qt(d);
2288
+ if (bi(R) && !x.match(R) && (b[y] = T({
2267
2289
  type: Ze.pattern,
2268
- message: q,
2290
+ message: K,
2269
2291
  ref: c
2270
- }, U(Ze.pattern, q)), !r))
2271
- return O(q), b;
2292
+ }, k(Ze.pattern, K)), !r))
2293
+ return O(K), b;
2272
2294
  }
2273
2295
  if (N) {
2274
2296
  if (Ue(N)) {
2275
- const Y = yield N(x, t), q = Un(Y, E);
2276
- if (q && (b[y] = T(T({}, q), U(Ze.validate, q.message)), !r))
2277
- return O(q.message), b;
2297
+ const R = yield N(x, t), K = Un(R, E);
2298
+ if (K && (b[y] = T(T({}, K), k(Ze.validate, K.message)), !r))
2299
+ return O(K.message), b;
2278
2300
  } else if (Ee(N)) {
2279
- let Y = {};
2280
- for (const q in N) {
2281
- if (!ke(Y) && !r)
2301
+ let R = {};
2302
+ for (const K in N) {
2303
+ if (!ke(R) && !r)
2282
2304
  break;
2283
- const J = Un(yield N[q](x, t), E, q);
2284
- J && (Y = T(T({}, J), U(q, J.message)), O(J.message), r && (b[y] = Y));
2305
+ const G = Un(yield N[K](x, t), E, K);
2306
+ G && (R = T(T({}, G), k(K, G.message)), O(G.message), r && (b[y] = R));
2285
2307
  }
2286
- if (!ke(Y) && (b[y] = T({
2308
+ if (!ke(R) && (b[y] = T({
2287
2309
  ref: E
2288
- }, Y), !r))
2310
+ }, R), !r))
2289
2311
  return b;
2290
2312
  }
2291
2313
  }
@@ -2343,7 +2365,7 @@ function Cu(e = {}) {
2343
2365
  }, A = (f) => De(null, null, function* () {
2344
2366
  if (!c.keepIsValid && !i.disabled && (l.isValid || a.isValid || f)) {
2345
2367
  let h;
2346
- i.resolver ? (h = ke((yield K()).errors), p()) : h = yield Y({
2368
+ i.resolver ? (h = ke((yield H()).errors), p()) : h = yield R({
2347
2369
  fields: r,
2348
2370
  onlyCheckValid: !0,
2349
2371
  eventType: At.VALID
@@ -2360,24 +2382,24 @@ function Cu(e = {}) {
2360
2382
  }));
2361
2383
  }, x = (f) => {
2362
2384
  const h = $t(o, n), m = Au(f);
2363
- Ne(t.dirtyFields, m, k(h, m));
2385
+ Ne(t.dirtyFields, m, U(h, m));
2364
2386
  }, E = (f, h = [], m, v, S = !0, _ = !0) => {
2365
2387
  if (v && m && !i.disabled) {
2366
- if (c.action = !0, _ && Array.isArray(k(r, f))) {
2367
- const R = m(k(r, f), v.argA, v.argB);
2368
- S && Ne(r, f, R);
2388
+ if (c.action = !0, _ && Array.isArray(U(r, f))) {
2389
+ const Y = m(U(r, f), v.argA, v.argB);
2390
+ S && Ne(r, f, Y);
2369
2391
  }
2370
- if (_ && Array.isArray(k(t.errors, f))) {
2371
- const R = m(k(t.errors, f), v.argA, v.argB);
2372
- S && Ne(t.errors, f, R), wu(t.errors, f);
2392
+ if (_ && Array.isArray(U(t.errors, f))) {
2393
+ const Y = m(U(t.errors, f), v.argA, v.argB);
2394
+ S && Ne(t.errors, f, Y), wu(t.errors, f);
2373
2395
  }
2374
- if ((l.touchedFields || a.touchedFields) && _ && Array.isArray(k(t.touchedFields, f))) {
2375
- const R = m(k(t.touchedFields, f), v.argA, v.argB);
2376
- S && Ne(t.touchedFields, f, R);
2396
+ if ((l.touchedFields || a.touchedFields) && _ && Array.isArray(U(t.touchedFields, f))) {
2397
+ const Y = m(U(t.touchedFields, f), v.argA, v.argB);
2398
+ S && Ne(t.touchedFields, f, Y);
2377
2399
  }
2378
2400
  (l.dirtyFields || a.dirtyFields) && x(f), d.state.next({
2379
2401
  name: f,
2380
- isDirty: J(f, h),
2402
+ isDirty: G(f, h),
2381
2403
  dirtyFields: t.dirtyFields,
2382
2404
  errors: t.errors,
2383
2405
  isValid: t.isValid
@@ -2393,52 +2415,52 @@ function Cu(e = {}) {
2393
2415
  errors: t.errors,
2394
2416
  isValid: !1
2395
2417
  });
2396
- }, H = (f, h, m, v) => {
2397
- const S = k(r, f);
2418
+ }, $ = (f, h, m, v) => {
2419
+ const S = U(r, f);
2398
2420
  if (S) {
2399
- const _ = k(n, f, Ae(m) ? k(o, f) : m);
2421
+ const _ = U(n, f, Ae(m) ? U(o, f) : m);
2400
2422
  Ae(_) || v && v.defaultChecked || h ? Ne(n, f, h ? _ : _n(S._f)) : de(f, _), c.mount && !c.action && A();
2401
2423
  }
2402
- }, ie = (f, h, m, v, S) => {
2403
- let _ = !1, R = !1;
2404
- const ee = {
2424
+ }, re = (f, h, m, v, S) => {
2425
+ let _ = !1, Y = !1;
2426
+ const te = {
2405
2427
  name: f
2406
2428
  };
2407
2429
  if (!i.disabled) {
2408
2430
  if (!m || v) {
2409
- (l.isDirty || a.isDirty) && (R = t.isDirty, t.isDirty = ee.isDirty = J(), _ = R !== ee.isDirty);
2410
- const L = Ge(k(o, f), h);
2411
- R = !!k(t.dirtyFields, f), L ? xe(t.dirtyFields, f) : Ne(t.dirtyFields, f, !0), ee.dirtyFields = t.dirtyFields, _ = _ || (l.dirtyFields || a.dirtyFields) && R !== !L;
2431
+ (l.isDirty || a.isDirty) && (Y = t.isDirty, t.isDirty = te.isDirty = G(), _ = Y !== te.isDirty);
2432
+ const L = Ge(U(o, f), h);
2433
+ Y = !!U(t.dirtyFields, f), L ? xe(t.dirtyFields, f) : Ne(t.dirtyFields, f, !0), te.dirtyFields = t.dirtyFields, _ = _ || (l.dirtyFields || a.dirtyFields) && Y !== !L;
2412
2434
  }
2413
2435
  if (m) {
2414
- const L = k(t.touchedFields, f);
2415
- L || (Ne(t.touchedFields, f, m), ee.touchedFields = t.touchedFields, _ = _ || (l.touchedFields || a.touchedFields) && L !== m);
2436
+ const L = U(t.touchedFields, f);
2437
+ L || (Ne(t.touchedFields, f, m), te.touchedFields = t.touchedFields, _ = _ || (l.touchedFields || a.touchedFields) && L !== m);
2416
2438
  }
2417
- _ && S && d.state.next(ee);
2439
+ _ && S && d.state.next(te);
2418
2440
  }
2419
- return _ ? ee : {};
2420
- }, V = (f, h, m, v) => {
2421
- const S = k(t.errors, f), _ = (l.isValid || a.isValid) && Fe(h) && t.isValid !== h;
2441
+ return _ ? te : {};
2442
+ }, P = (f, h, m, v) => {
2443
+ const S = U(t.errors, f), _ = (l.isValid || a.isValid) && Fe(h) && t.isValid !== h;
2422
2444
  if (i.delayError && m ? (s = y(() => O(f, m)), s(i.delayError)) : (clearTimeout(u), s = null, m ? Ne(t.errors, f, m) : xe(t.errors, f)), (m ? !Ge(S, m) : S) || !ke(v) || _) {
2423
- const R = W(T(T({}, v), _ && Fe(h) ? { isValid: h } : {}), {
2445
+ const Y = W(T(T({}, v), _ && Fe(h) ? { isValid: h } : {}), {
2424
2446
  errors: t.errors,
2425
2447
  name: f
2426
2448
  });
2427
- t = T(T({}, t), R), d.state.next(R);
2449
+ t = T(T({}, t), Y), d.state.next(Y);
2428
2450
  }
2429
- }, K = (f) => De(null, null, function* () {
2451
+ }, H = (f) => De(null, null, function* () {
2430
2452
  return p(f, !0), yield i.resolver(n, i.context, Tu(f || g.mount, r, i.criteriaMode, i.shouldUseNativeValidation));
2431
- }), U = (f) => De(null, null, function* () {
2432
- const { errors: h } = yield K(f);
2453
+ }), k = (f) => De(null, null, function* () {
2454
+ const { errors: h } = yield H(f);
2433
2455
  if (p(f), f)
2434
2456
  for (const m of f) {
2435
- const v = k(h, m);
2457
+ const v = U(h, m);
2436
2458
  v ? Ne(t.errors, m, v) : xe(t.errors, m);
2437
2459
  }
2438
2460
  else
2439
2461
  t.errors = h;
2440
2462
  return h;
2441
- }), re = (m) => De(null, [m], function* ({ name: f, eventType: h }) {
2463
+ }), ee = (m) => De(null, [m], function* ({ name: f, eventType: h }) {
2442
2464
  if (e.validate) {
2443
2465
  const v = yield e.validate({
2444
2466
  formValues: n,
@@ -2448,82 +2470,82 @@ function Cu(e = {}) {
2448
2470
  });
2449
2471
  if (Ee(v))
2450
2472
  for (const S in v)
2451
- v[S] && oe(`${Pi}.${S}`, {
2473
+ v[S] && se(`${Pi}.${S}`, {
2452
2474
  message: Qe(v.message) ? v.message : "",
2453
2475
  type: Ze.validate
2454
2476
  });
2455
- else Qe(v) || !v ? oe(Pi, {
2477
+ else Qe(v) || !v ? se(Pi, {
2456
2478
  message: v || "",
2457
2479
  type: Ze.validate
2458
- }) : P(Pi);
2480
+ }) : F(Pi);
2459
2481
  return v;
2460
2482
  }
2461
2483
  return !0;
2462
- }), Y = (_) => De(null, [_], function* ({ fields: f, onlyCheckValid: h, name: m, eventType: v, context: S = {
2484
+ }), R = (_) => De(null, [_], function* ({ fields: f, onlyCheckValid: h, name: m, eventType: v, context: S = {
2463
2485
  valid: !0,
2464
2486
  runRootValidation: !1
2465
2487
  } }) {
2466
- if (e.validate && (S.runRootValidation = !0, !(yield re({
2488
+ if (e.validate && (S.runRootValidation = !0, !(yield ee({
2467
2489
  name: m,
2468
2490
  eventType: v
2469
2491
  })) && (S.valid = !1, h)))
2470
2492
  return S.valid;
2471
- for (const ee in f) {
2472
- const L = f[ee];
2493
+ for (const te in f) {
2494
+ const L = f[te];
2473
2495
  if (L) {
2474
- const R = L, { _f: F } = R, Z = yt(R, ["_f"]);
2475
- if (F) {
2476
- const ne = g.array.has(F.name), Se = L._f && hu(L._f);
2477
- Se && l.validatingFields && p([F.name], !0);
2496
+ const Y = L, { _f: B } = Y, Z = yt(Y, ["_f"]);
2497
+ if (B) {
2498
+ const ne = g.array.has(B.name), Se = L._f && hu(L._f);
2499
+ Se && l.validatingFields && p([B.name], !0);
2478
2500
  const ye = yield Qn(L, g.disabled, n, N, i.shouldUseNativeValidation && !h, ne);
2479
- if (Se && l.validatingFields && p([F.name]), ye[F.name] && (S.valid = !1, h) || (!h && (k(ye, F.name) ? ne ? pu(t.errors, ye, F.name) : Ne(t.errors, F.name, ye[F.name]) : xe(t.errors, F.name)), e.shouldUseNativeValidation && ye[F.name]))
2501
+ if (Se && l.validatingFields && p([B.name]), ye[B.name] && (S.valid = !1, h) || (!h && (U(ye, B.name) ? ne ? pu(t.errors, ye, B.name) : Ne(t.errors, B.name, ye[B.name]) : xe(t.errors, B.name)), e.shouldUseNativeValidation && ye[B.name]))
2480
2502
  break;
2481
2503
  }
2482
- !ke(Z) && (yield Y({
2504
+ !ke(Z) && (yield R({
2483
2505
  context: S,
2484
2506
  onlyCheckValid: h,
2485
2507
  fields: Z,
2486
- name: ee,
2508
+ name: te,
2487
2509
  eventType: v
2488
2510
  }));
2489
2511
  }
2490
2512
  }
2491
2513
  return S.valid;
2492
- }), q = () => {
2514
+ }), K = () => {
2493
2515
  for (const f of g.unMount) {
2494
- const h = k(r, f);
2516
+ const h = U(r, f);
2495
2517
  h && (h._f.refs ? h._f.refs.every((m) => !Fi(m)) : !Fi(h._f.ref)) && Ve(f);
2496
2518
  }
2497
2519
  g.unMount = /* @__PURE__ */ new Set();
2498
- }, J = (f, h) => !i.disabled && (f && h && Ne(n, f, h), !Ge(Oe(), o)), le = (f, h, m) => qi(f, g, T({}, c.mount ? n : Ae(h) ? o : Qe(f) ? { [f]: h } : h), m, h), fe = (f) => zr(k(c.mount ? n : o, f, i.shouldUnregister ? k(o, f, []) : [])), de = (f, h, m = {}) => {
2499
- const v = k(r, f);
2520
+ }, G = (f, h) => !i.disabled && (f && h && Ne(n, f, h), !Ge(me(), o)), oe = (f, h, m) => qi(f, g, T({}, c.mount ? n : Ae(h) ? o : Qe(f) ? { [f]: h } : h), m, h), fe = (f) => zr(U(c.mount ? n : o, f, i.shouldUnregister ? U(o, f, []) : [])), de = (f, h, m = {}) => {
2521
+ const v = U(r, f);
2500
2522
  let S = h;
2501
2523
  if (v) {
2502
2524
  const _ = v._f;
2503
- _ && (!_.disabled && Ne(n, f, Bo(h, _)), S = Ci(_.ref) && Ye(h) ? "" : h, Yo(_.ref) ? [..._.ref.options].forEach((R) => R.selected = S.includes(R.value)) : _.refs ? Ii(_.ref) ? _.refs.forEach((R) => {
2504
- (!R.defaultChecked || !R.disabled) && (Array.isArray(S) ? R.checked = !!S.find((ee) => ee === R.value) : R.checked = S === R.value || !!S);
2505
- }) : _.refs.forEach((R) => R.checked = R.value === S) : wr(_.ref) ? _.ref.value = "" : (_.ref.value = S, _.ref.type || d.state.next({
2525
+ _ && (!_.disabled && Ne(n, f, Bo(h, _)), S = Ci(_.ref) && Ye(h) ? "" : h, Yo(_.ref) ? [..._.ref.options].forEach((Y) => Y.selected = S.includes(Y.value)) : _.refs ? Ii(_.ref) ? _.refs.forEach((Y) => {
2526
+ (!Y.defaultChecked || !Y.disabled) && (Array.isArray(S) ? Y.checked = !!S.find((te) => te === Y.value) : Y.checked = S === Y.value || !!S);
2527
+ }) : _.refs.forEach((Y) => Y.checked = Y.value === S) : wr(_.ref) ? _.ref.value = "" : (_.ref.value = S, _.ref.type || d.state.next({
2506
2528
  name: f,
2507
2529
  values: pe(n)
2508
2530
  })));
2509
2531
  }
2510
- (m.shouldDirty || m.shouldTouch) && ie(f, S, m.shouldTouch, m.shouldDirty, !0), m.shouldValidate && je(f);
2532
+ (m.shouldDirty || m.shouldTouch) && re(f, S, m.shouldTouch, m.shouldDirty, !0), m.shouldValidate && je(f);
2511
2533
  }, ve = (f, h, m) => {
2512
2534
  for (const v in h) {
2513
2535
  if (!h.hasOwnProperty(v))
2514
2536
  return;
2515
- const S = h[v], _ = f + "." + v, R = k(r, _);
2516
- (g.array.has(f) || Ee(S) || R && !R._f) && !Ct(S) ? ve(_, S, m) : de(_, S, m);
2537
+ const S = h[v], _ = f + "." + v, Y = U(r, _);
2538
+ (g.array.has(f) || Ee(S) || Y && !Y._f) && !Ct(S) ? ve(_, S, m) : de(_, S, m);
2517
2539
  }
2518
2540
  }, ce = (f, h, m = {}) => {
2519
- const v = k(r, f), S = g.array.has(f), _ = pe(h);
2541
+ const v = U(r, f), S = g.array.has(f), _ = pe(h);
2520
2542
  Ne(n, f, _), S ? (d.array.next({
2521
2543
  name: f,
2522
2544
  values: pe(n)
2523
2545
  }), (l.isDirty || l.dirtyFields || a.isDirty || a.dirtyFields) && m.shouldDirty && (x(f), d.state.next({
2524
2546
  name: f,
2525
2547
  dirtyFields: t.dirtyFields,
2526
- isDirty: J(f, _)
2548
+ isDirty: G(f, _)
2527
2549
  }))) : v && !v._f && !Ye(_) ? ve(f, _, m) : de(f, _, m), Ln(f, g) ? d.state.next(W(T({}, t), {
2528
2550
  name: f,
2529
2551
  values: pe(n)
@@ -2531,75 +2553,75 @@ function Cu(e = {}) {
2531
2553
  name: c.mount ? f : void 0,
2532
2554
  values: pe(n)
2533
2555
  });
2534
- }, G = (f) => De(null, null, function* () {
2556
+ }, J = (f) => De(null, null, function* () {
2535
2557
  c.mount = !0;
2536
2558
  const h = f.target;
2537
2559
  let m = h.name, v = !0;
2538
- const S = k(r, m), _ = (L) => {
2539
- v = Number.isNaN(L) || Ct(L) && isNaN(L.getTime()) || Ge(L, k(n, m, L));
2540
- }, R = Sn(i.mode), ee = Sn(i.reValidateMode);
2560
+ const S = U(r, m), _ = (L) => {
2561
+ v = Number.isNaN(L) || Ct(L) && isNaN(L.getTime()) || Ge(L, U(n, m, L));
2562
+ }, Y = Sn(i.mode), te = Sn(i.reValidateMode);
2541
2563
  if (S) {
2542
- let L, F;
2543
- const Z = h.type ? _n(S._f) : So(f), ne = f.type === At.BLUR || f.type === At.FOCUS_OUT, Se = !zu(S._f) && !e.validate && !i.resolver && !k(t.errors, m) && !S._f.deps || Eu(ne, k(t.touchedFields, m), t.isSubmitted, ee, R), ye = Ln(m, g, ne);
2564
+ let L, B;
2565
+ const Z = h.type ? _n(S._f) : So(f), ne = f.type === At.BLUR || f.type === At.FOCUS_OUT, Se = !zu(S._f) && !e.validate && !i.resolver && !U(t.errors, m) && !S._f.deps || Eu(ne, U(t.touchedFields, m), t.isSubmitted, te, Y), ye = Ln(m, g, ne);
2544
2566
  Ne(n, m, Z), ne ? (!h || !h.readOnly) && (S._f.onBlur && S._f.onBlur(f), s && s(0)) : S._f.onChange && S._f.onChange(f);
2545
- const se = ie(m, Z, ne), $ = !ke(se) || ye;
2567
+ const ae = re(m, Z, ne), X = !ke(ae) || ye;
2546
2568
  if (!ne && d.state.next({
2547
2569
  name: m,
2548
2570
  type: f.type,
2549
2571
  values: pe(n)
2550
2572
  }), Se)
2551
- return (l.isValid || a.isValid) && (i.mode === "onBlur" ? ne && A() : ne || A()), $ && d.state.next(T({ name: m }, ye ? {} : se));
2552
- if (!i.resolver && e.validate && (yield re({
2573
+ return (l.isValid || a.isValid) && (i.mode === "onBlur" ? ne && A() : ne || A()), X && d.state.next(T({ name: m }, ye ? {} : ae));
2574
+ if (!i.resolver && e.validate && (yield ee({
2553
2575
  name: m,
2554
2576
  eventType: f.type
2555
2577
  })), !ne && ye && d.state.next(T({}, t)), i.resolver) {
2556
- const { errors: Le } = yield K([m]);
2578
+ const { errors: Le } = yield H([m]);
2557
2579
  if (p([m]), _(Z), v) {
2558
2580
  const Dt = kn(t.errors, r, m), ft = kn(Le, r, Dt.name || m);
2559
- L = ft.error, m = ft.name, F = ke(Le);
2581
+ L = ft.error, m = ft.name, B = ke(Le);
2560
2582
  }
2561
2583
  } else
2562
- p([m], !0), L = (yield Qn(S, g.disabled, n, N, i.shouldUseNativeValidation))[m], p([m]), _(Z), v && (L ? F = !1 : (l.isValid || a.isValid) && (F = yield Y({
2584
+ p([m], !0), L = (yield Qn(S, g.disabled, n, N, i.shouldUseNativeValidation))[m], p([m]), _(Z), v && (L ? B = !1 : (l.isValid || a.isValid) && (B = yield R({
2563
2585
  fields: r,
2564
2586
  onlyCheckValid: !0,
2565
2587
  name: m,
2566
2588
  eventType: f.type
2567
2589
  })));
2568
- v && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && je(S._f.deps), V(m, F, L, se));
2590
+ v && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && je(S._f.deps), P(m, B, L, ae));
2569
2591
  }
2570
2592
  }), Me = (f, h) => {
2571
- if (k(t.errors, h) && f.focus)
2593
+ if (U(t.errors, h) && f.focus)
2572
2594
  return f.focus(), 1;
2573
2595
  }, je = (m, ...v) => De(null, [m, ...v], function* (f, h = {}) {
2574
2596
  let S, _;
2575
- const R = ti(f);
2597
+ const Y = ti(f);
2576
2598
  if (i.resolver) {
2577
- const ee = yield U(Ae(f) ? f : R);
2578
- S = ke(ee), _ = f ? !R.some((L) => k(ee, L)) : S;
2579
- } else f ? (_ = (yield Promise.all(R.map((ee) => De(null, null, function* () {
2580
- const L = k(r, ee);
2581
- return yield Y({
2582
- fields: L && L._f ? { [ee]: L } : L,
2599
+ const te = yield k(Ae(f) ? f : Y);
2600
+ S = ke(te), _ = f ? !Y.some((L) => U(te, L)) : S;
2601
+ } else f ? (_ = (yield Promise.all(Y.map((te) => De(null, null, function* () {
2602
+ const L = U(r, te);
2603
+ return yield R({
2604
+ fields: L && L._f ? { [te]: L } : L,
2583
2605
  eventType: At.TRIGGER
2584
2606
  });
2585
- })))).every(Boolean), !(!_ && !t.isValid) && A()) : _ = S = yield Y({
2607
+ })))).every(Boolean), !(!_ && !t.isValid) && A()) : _ = S = yield R({
2586
2608
  fields: r,
2587
2609
  name: f,
2588
2610
  eventType: At.TRIGGER
2589
2611
  });
2590
2612
  return d.state.next(W(T(T({}, !Qe(f) || (l.isValid || a.isValid) && S !== t.isValid ? {} : { name: f }), i.resolver || !f ? { isValid: S } : {}), {
2591
2613
  errors: t.errors
2592
- })), h.shouldFocus && !_ && ii(r, Me, f ? R : g.mount), _;
2593
- }), Oe = (f, h) => {
2614
+ })), h.shouldFocus && !_ && ii(r, Me, f ? Y : g.mount), _;
2615
+ }), me = (f, h) => {
2594
2616
  let m = T({}, c.mount ? n : o);
2595
- return h && (m = Ro(h.dirtyFields ? t.dirtyFields : t.touchedFields, m)), Ae(f) ? m : Qe(f) ? k(m, f) : f.map((v) => k(m, v));
2617
+ return h && (m = Ro(h.dirtyFields ? t.dirtyFields : t.touchedFields, m)), Ae(f) ? m : Qe(f) ? U(m, f) : f.map((v) => U(m, v));
2596
2618
  }, _e = (f, h) => ({
2597
- invalid: !!k((h || t).errors, f),
2598
- isDirty: !!k((h || t).dirtyFields, f),
2599
- error: k((h || t).errors, f),
2600
- isValidating: !!k(t.validatingFields, f),
2601
- isTouched: !!k((h || t).touchedFields, f)
2602
- }), P = (f) => {
2619
+ invalid: !!U((h || t).errors, f),
2620
+ isDirty: !!U((h || t).dirtyFields, f),
2621
+ error: U((h || t).errors, f),
2622
+ isValidating: !!U(t.validatingFields, f),
2623
+ isTouched: !!U((h || t).touchedFields, f)
2624
+ }), F = (f) => {
2603
2625
  const h = f ? ti(f) : void 0;
2604
2626
  h == null || h.forEach((m) => xe(t.errors, m)), h ? h.forEach((m) => {
2605
2627
  d.state.next({
@@ -2609,8 +2631,8 @@ function Cu(e = {}) {
2609
2631
  }) : d.state.next({
2610
2632
  errors: {}
2611
2633
  });
2612
- }, oe = (f, h, m) => {
2613
- const v = (k(r, f, { _f: {} })._f || {}).ref, F = k(t.errors, f) || {}, { ref: _, message: R, type: ee } = F, L = yt(F, ["ref", "message", "type"]);
2634
+ }, se = (f, h, m) => {
2635
+ const v = (U(r, f, { _f: {} })._f || {}).ref, B = U(t.errors, f) || {}, { ref: _, message: Y, type: te } = B, L = yt(B, ["ref", "message", "type"]);
2614
2636
  Ne(t.errors, f, W(T(T({}, L), h), {
2615
2637
  ref: v
2616
2638
  })), d.state.next({
@@ -2619,8 +2641,8 @@ function Cu(e = {}) {
2619
2641
  isValid: !1
2620
2642
  }), m && m.shouldFocus && v && v.focus && v.focus();
2621
2643
  }, nt = (f, h) => Ue(f) ? d.state.subscribe({
2622
- next: (m) => "values" in m && f(le(void 0, h), m)
2623
- }) : le(f, h, !0), Xe = (f) => d.state.subscribe({
2644
+ next: (m) => "values" in m && f(oe(void 0, h), m)
2645
+ }) : oe(f, h, !0), Xe = (f) => d.state.subscribe({
2624
2646
  next: (h) => {
2625
2647
  mu(f.name, h.name, f.exact) && Ou(h, f.formState || l, qe, f.reRenderRoot) && f.callback(W(T(T({
2626
2648
  values: T({}, n)
@@ -2635,14 +2657,14 @@ function Cu(e = {}) {
2635
2657
  g.mount.delete(m), g.array.delete(m), h.keepValue || (xe(r, m), xe(n, m)), !h.keepError && xe(t.errors, m), !h.keepDirty && xe(t.dirtyFields, m), !h.keepTouched && xe(t.touchedFields, m), !h.keepIsValidating && xe(t.validatingFields, m), !i.shouldUnregister && !h.keepDefaultValue && xe(o, m);
2636
2658
  d.state.next({
2637
2659
  values: pe(n)
2638
- }), d.state.next(T(T({}, t), h.keepDirty ? { isDirty: J() } : {})), !h.keepIsValid && A();
2660
+ }), d.state.next(T(T({}, t), h.keepDirty ? { isDirty: G() } : {})), !h.keepIsValid && A();
2639
2661
  }, dt = ({ disabled: f, name: h }) => {
2640
2662
  if (Fe(f) && c.mount || f || g.disabled.has(h)) {
2641
2663
  const S = g.disabled.has(h) !== !!f;
2642
2664
  f ? g.disabled.add(h) : g.disabled.delete(h), S && c.mount && !c.action && A();
2643
2665
  }
2644
2666
  }, ot = (f, h = {}) => {
2645
- let m = k(r, f);
2667
+ let m = U(r, f);
2646
2668
  const v = Fe(h.disabled) || Fe(i.disabled), S = !g.registerName.has(f) && m && !m._f.mount;
2647
2669
  return Ne(r, f, W(T({}, m || {}), {
2648
2670
  _f: T(W(T({}, m && m._f ? m._f : { ref: { name: f } }), {
@@ -2652,7 +2674,7 @@ function Cu(e = {}) {
2652
2674
  })), g.mount.add(f), m && !S ? dt({
2653
2675
  disabled: Fe(h.disabled) ? h.disabled : i.disabled,
2654
2676
  name: f
2655
- }) : H(f, !0, h.value), W(T(T({}, v ? { disabled: h.disabled || i.disabled } : {}), i.progressive ? {
2677
+ }) : $(f, !0, h.value), W(T(T({}, v ? { disabled: h.disabled || i.disabled } : {}), i.progressive ? {
2656
2678
  required: !!h.required,
2657
2679
  min: Ht(h.min),
2658
2680
  max: Ht(h.max),
@@ -2661,31 +2683,31 @@ function Cu(e = {}) {
2661
2683
  pattern: Ht(h.pattern)
2662
2684
  } : {}), {
2663
2685
  name: f,
2664
- onChange: G,
2665
- onBlur: G,
2686
+ onChange: J,
2687
+ onBlur: J,
2666
2688
  ref: (_) => {
2667
2689
  if (_) {
2668
- g.registerName.add(f), ot(f, h), g.registerName.delete(f), m = k(r, f);
2669
- const R = Ae(_.value) && _.querySelectorAll && _.querySelectorAll("input,select,textarea")[0] || _, ee = Du(R), L = m._f.refs || [];
2670
- if (ee ? L.find((F) => F === R) : R === m._f.ref)
2690
+ g.registerName.add(f), ot(f, h), g.registerName.delete(f), m = U(r, f);
2691
+ const Y = Ae(_.value) && _.querySelectorAll && _.querySelectorAll("input,select,textarea")[0] || _, te = Du(Y), L = m._f.refs || [];
2692
+ if (te ? L.find((B) => B === Y) : Y === m._f.ref)
2671
2693
  return;
2672
2694
  Ne(r, f, {
2673
- _f: T(T({}, m._f), ee ? {
2695
+ _f: T(T({}, m._f), te ? {
2674
2696
  refs: [
2675
2697
  ...L.filter(Fi),
2676
- R,
2677
- ...Array.isArray(k(o, f)) ? [{}] : []
2698
+ Y,
2699
+ ...Array.isArray(U(o, f)) ? [{}] : []
2678
2700
  ],
2679
- ref: { type: R.type, name: f }
2680
- } : { ref: R })
2681
- }), H(f, !1, void 0, R);
2701
+ ref: { type: Y.type, name: f }
2702
+ } : { ref: Y })
2703
+ }), $(f, !1, void 0, Y);
2682
2704
  } else
2683
- m = k(r, f, {}), m._f && (m._f.mount = !1), (i.shouldUnregister || h.shouldUnregister) && !(vo(g.array, f) && c.action) && g.unMount.add(f);
2705
+ m = U(r, f, {}), m._f && (m._f.mount = !1), (i.shouldUnregister || h.shouldUnregister) && !(vo(g.array, f) && c.action) && g.unMount.add(f);
2684
2706
  }
2685
2707
  });
2686
2708
  }, Nt = () => i.shouldFocusError && ii(r, Me, g.mount), Lt = (f) => {
2687
2709
  Fe(f) && (d.state.next({ disabled: f }), ii(r, (h, m) => {
2688
- const v = k(r, m);
2710
+ const v = U(r, m);
2689
2711
  v && (h.disabled = v._f.disabled || f, Array.isArray(v._f.refs) && v._f.refs.forEach((S) => {
2690
2712
  S.disabled = v._f.disabled || f;
2691
2713
  }));
@@ -2697,10 +2719,10 @@ function Cu(e = {}) {
2697
2719
  if (d.state.next({
2698
2720
  isSubmitting: !0
2699
2721
  }), i.resolver) {
2700
- const { errors: _, values: R } = yield K();
2701
- p(), t.errors = _, S = pe(R);
2722
+ const { errors: _, values: Y } = yield H();
2723
+ p(), t.errors = _, S = pe(Y);
2702
2724
  } else
2703
- yield Y({
2725
+ yield R({
2704
2726
  fields: r,
2705
2727
  eventType: At.SUBMIT
2706
2728
  });
@@ -2727,37 +2749,37 @@ function Cu(e = {}) {
2727
2749
  }), v)
2728
2750
  throw v;
2729
2751
  }), mt = (f, h = {}) => {
2730
- k(r, f) && (Ae(h.defaultValue) ? ce(f, pe(k(o, f))) : (ce(f, h.defaultValue), Ne(o, f, pe(h.defaultValue))), h.keepTouched || xe(t.touchedFields, f), h.keepDirty || (xe(t.dirtyFields, f), t.isDirty = h.defaultValue ? J(f, pe(k(o, f))) : J()), h.keepError || (xe(t.errors, f), l.isValid && A()), d.state.next(T({}, t)));
2752
+ U(r, f) && (Ae(h.defaultValue) ? ce(f, pe(U(o, f))) : (ce(f, h.defaultValue), Ne(o, f, pe(h.defaultValue))), h.keepTouched || xe(t.touchedFields, f), h.keepDirty || (xe(t.dirtyFields, f), t.isDirty = h.defaultValue ? G(f, pe(U(o, f))) : G()), h.keepError || (xe(t.errors, f), l.isValid && A()), d.state.next(T({}, t)));
2731
2753
  }, Et = (f, h = {}) => {
2732
2754
  const m = f ? pe(f) : o, v = pe(m), S = ke(f), _ = S ? o : v;
2733
2755
  if (h.keepDefaultValues || (o = m), !h.keepValues) {
2734
2756
  if (h.keepDirtyValues) {
2735
- const R = /* @__PURE__ */ new Set([
2757
+ const Y = /* @__PURE__ */ new Set([
2736
2758
  ...g.mount,
2737
2759
  ...Object.keys($t(o, n))
2738
2760
  ]);
2739
- for (const ee of Array.from(R)) {
2740
- const L = k(t.dirtyFields, ee), F = k(n, ee), Z = k(_, ee);
2741
- L && !Ae(F) ? Ne(_, ee, F) : !L && !Ae(Z) && ce(ee, Z);
2761
+ for (const te of Array.from(Y)) {
2762
+ const L = U(t.dirtyFields, te), B = U(n, te), Z = U(_, te);
2763
+ L && !Ae(B) ? Ne(_, te, B) : !L && !Ae(Z) && ce(te, Z);
2742
2764
  }
2743
2765
  } else {
2744
2766
  if (hr && Ae(f))
2745
- for (const R of g.mount) {
2746
- const ee = k(r, R);
2747
- if (ee && ee._f) {
2748
- const L = Array.isArray(ee._f.refs) ? ee._f.refs[0] : ee._f.ref;
2767
+ for (const Y of g.mount) {
2768
+ const te = U(r, Y);
2769
+ if (te && te._f) {
2770
+ const L = Array.isArray(te._f.refs) ? te._f.refs[0] : te._f.ref;
2749
2771
  if (Ci(L)) {
2750
- const F = L.closest("form");
2751
- if (F) {
2752
- F.reset();
2772
+ const B = L.closest("form");
2773
+ if (B) {
2774
+ B.reset();
2753
2775
  break;
2754
2776
  }
2755
2777
  }
2756
2778
  }
2757
2779
  }
2758
2780
  if (h.keepFieldsRef)
2759
- for (const R of g.mount)
2760
- ce(R, k(_, R));
2781
+ for (const Y of g.mount)
2782
+ ce(Y, U(_, Y));
2761
2783
  else
2762
2784
  r = {};
2763
2785
  }
@@ -2788,7 +2810,7 @@ function Cu(e = {}) {
2788
2810
  defaultValues: o
2789
2811
  });
2790
2812
  }, Ke = (f, h) => Et(Ue(f) ? f(n) : f, T(T({}, i.resetOptions), h)), st = (f, h = {}) => {
2791
- const m = k(r, f), v = m && m._f;
2813
+ const m = U(r, f), v = m && m._f;
2792
2814
  if (v) {
2793
2815
  const S = v.refs ? v.refs[0] : v.ref;
2794
2816
  S.focus && setTimeout(() => {
@@ -2803,13 +2825,13 @@ function Cu(e = {}) {
2803
2825
  unregister: Ve,
2804
2826
  getFieldState: _e,
2805
2827
  handleSubmit: It,
2806
- setError: oe,
2828
+ setError: se,
2807
2829
  _subscribe: Xe,
2808
- _runSchema: K,
2830
+ _runSchema: H,
2809
2831
  _updateIsValidating: p,
2810
2832
  _focusError: Nt,
2811
- _getWatch: le,
2812
- _getDirty: J,
2833
+ _getWatch: oe,
2834
+ _getDirty: G,
2813
2835
  _setValid: A,
2814
2836
  _setFieldArray: E,
2815
2837
  _setDisabledField: dt,
@@ -2821,7 +2843,7 @@ function Cu(e = {}) {
2821
2843
  isLoading: !1
2822
2844
  });
2823
2845
  }),
2824
- _removeUnmounted: q,
2846
+ _removeUnmounted: K,
2825
2847
  _disableForm: Lt,
2826
2848
  _subjects: d,
2827
2849
  _proxyFormState: l,
@@ -2862,12 +2884,12 @@ function Cu(e = {}) {
2862
2884
  handleSubmit: It,
2863
2885
  watch: nt,
2864
2886
  setValue: ce,
2865
- getValues: Oe,
2887
+ getValues: me,
2866
2888
  reset: Ke,
2867
2889
  resetField: mt,
2868
- clearErrors: P,
2890
+ clearErrors: F,
2869
2891
  unregister: Ve,
2870
- setError: oe,
2892
+ setError: se,
2871
2893
  setFocus: st,
2872
2894
  getFieldState: _e
2873
2895
  };
@@ -2876,7 +2898,7 @@ function Cu(e = {}) {
2876
2898
  });
2877
2899
  }
2878
2900
  function bu(e = {}) {
2879
- const i = B.useRef(void 0), t = B.useRef(void 0), [r, o] = B.useState({
2901
+ const i = V.useRef(void 0), t = V.useRef(void 0), [r, o] = V.useState({
2880
2902
  isDirty: !1,
2881
2903
  isValidating: !1,
2882
2904
  isLoading: Ue(e.defaultValues),
@@ -2914,29 +2936,29 @@ function bu(e = {}) {
2914
2936
  return o((s) => W(T({}, s), {
2915
2937
  isReady: !0
2916
2938
  })), n._formState.isReady = !0, g;
2917
- }, [n]), B.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), B.useEffect(() => {
2939
+ }, [n]), V.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), V.useEffect(() => {
2918
2940
  e.mode && (n._options.mode = e.mode), e.reValidateMode && (n._options.reValidateMode = e.reValidateMode);
2919
- }, [n, e.mode, e.reValidateMode]), B.useEffect(() => {
2941
+ }, [n, e.mode, e.reValidateMode]), V.useEffect(() => {
2920
2942
  e.errors && (n._setErrors(e.errors), n._focusError());
2921
- }, [n, e.errors]), B.useEffect(() => {
2943
+ }, [n, e.errors]), V.useEffect(() => {
2922
2944
  e.shouldUnregister && n._subjects.state.next({
2923
2945
  values: n._getWatch()
2924
2946
  });
2925
- }, [n, e.shouldUnregister]), B.useEffect(() => {
2947
+ }, [n, e.shouldUnregister]), V.useEffect(() => {
2926
2948
  if (n._proxyFormState.isDirty) {
2927
2949
  const g = n._getDirty();
2928
2950
  g !== r.isDirty && n._subjects.state.next({
2929
2951
  isDirty: g
2930
2952
  });
2931
2953
  }
2932
- }, [n, r.isDirty]), B.useEffect(() => {
2954
+ }, [n, r.isDirty]), V.useEffect(() => {
2933
2955
  var g;
2934
2956
  e.values && !Ge(e.values, t.current) ? (n._reset(e.values, T({
2935
2957
  keepFieldsRef: !0
2936
2958
  }, n._options.resetOptions)), !((g = n._options.resetOptions) === null || g === void 0) && g.keepIsValid || n._setValid(), t.current = e.values, o((s) => T({}, s))) : n._resetDefaultValues();
2937
- }, [n, e.values]), B.useEffect(() => {
2959
+ }, [n, e.values]), V.useEffect(() => {
2938
2960
  n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next(T({}, n._formState))), n._removeUnmounted();
2939
- }), i.current.formState = B.useMemo(() => Uo(r, n), [n, r]), i.current;
2961
+ }), i.current.formState = V.useMemo(() => Uo(r, n), [n, r]), i.current;
2940
2962
  }
2941
2963
  const Wt = (e, i) => {
2942
2964
  const t = {};
@@ -2979,10 +3001,10 @@ const Wt = (e, i) => {
2979
3001
  padding: "5px 8px",
2980
3002
  background: ((s, u) => {
2981
3003
  var M, l, a, d, N, y, A, p;
2982
- if (!s && !u) return (l = X((M = i.layout) == null ? void 0 : M.backgroundColor)) != null ? l : "transparent";
2983
- if (!s && u) return (d = X((a = i.layoutSelected) == null ? void 0 : a.backgroundColor)) != null ? d : "transparent";
2984
- if (s && !u) return (y = X((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? y : "#F4F4F4";
2985
- if (s && u) return (p = X((A = i.layoutSelected) == null ? void 0 : A.highlightColor)) != null ? p : "#F4F4F4";
3004
+ if (!s && !u) return (l = q((M = i.layout) == null ? void 0 : M.backgroundColor)) != null ? l : "transparent";
3005
+ if (!s && u) return (d = q((a = i.layoutSelected) == null ? void 0 : a.backgroundColor)) != null ? d : "transparent";
3006
+ if (s && !u) return (y = q((N = i.layout) == null ? void 0 : N.highlightColor)) != null ? y : "#F4F4F4";
3007
+ if (s && u) return (p = q((A = i.layoutSelected) == null ? void 0 : A.highlightColor)) != null ? p : "#F4F4F4";
2986
3008
  })(r, e),
2987
3009
  fontSize: 13,
2988
3010
  display: "flex",
@@ -3026,38 +3048,38 @@ const Wt = (e, i) => {
3026
3048
  controlLayout: M,
3027
3049
  pickerLayout: l
3028
3050
  }) => {
3029
- var Y, q, J, le, fe, de, ve, ce;
3030
- const [a, d] = me(!1), [N, y] = me(o), [A, p] = me("down"), [x, E] = me(null), O = Je(null), b = Je(null);
3051
+ var R, K, G, oe, fe, de, ve, ce;
3052
+ const [a, d] = Oe(!1), [N, y] = Oe(o), [A, p] = Oe("down"), [x, E] = Oe(null), O = Je(null), b = Je(null);
3031
3053
  ht(() => {
3032
- var _e, P, oe;
3054
+ var _e, F, se;
3033
3055
  if (!a) return;
3034
- const G = (_e = O.current) == null ? void 0 : _e.getBoundingClientRect(), Me = (P = b.current) == null ? void 0 : P.getBoundingClientRect(), je = (oe = u.current) == null ? void 0 : oe.getBoundingClientRect();
3035
- if (!G || !Me || !je) return;
3036
- const Oe = G.bottom + Me.height < je.bottom;
3037
- p(Oe ? "down" : "up");
3056
+ const J = (_e = O.current) == null ? void 0 : _e.getBoundingClientRect(), Me = (F = b.current) == null ? void 0 : F.getBoundingClientRect(), je = (se = u.current) == null ? void 0 : se.getBoundingClientRect();
3057
+ if (!J || !Me || !je) return;
3058
+ const me = J.bottom + Me.height < je.bottom;
3059
+ p(me ? "down" : "up");
3038
3060
  }, [a]), Be(() => {
3039
3061
  n(N);
3040
3062
  }, [N]);
3041
- const H = (G) => (Me) => {
3063
+ const $ = (J) => (Me) => {
3042
3064
  var je;
3043
- Me.stopPropagation(), (Me.type === "touchend" || ((je = Me.nativeEvent) == null ? void 0 : je.pointerType) === "touch") && E(null), g && d(!1), y((Oe) => t ? Oe.some((P) => P.value === G.value) ? Oe.filter((P) => P.value !== G.value) : [...Oe, G] : [G]);
3044
- }, ie = () => {
3065
+ Me.stopPropagation(), (Me.type === "touchend" || ((je = Me.nativeEvent) == null ? void 0 : je.pointerType) === "touch") && E(null), g && d(!1), y((me) => t ? me.some((F) => F.value === J.value) ? me.filter((F) => F.value !== J.value) : [...me, J] : [J]);
3066
+ }, re = () => {
3045
3067
  s && s(), d(!1);
3046
- }, V = (G) => (Me) => {
3047
- Me.stopPropagation(), y((je) => je.filter((Oe) => Oe.value !== G.value));
3048
- }, K = (G) => {
3049
- G.stopPropagation(), y([]);
3050
- }, U = (Y = X(M == null ? void 0 : M.borderColor)) != null ? Y : "#D9D9D9", re = (q = X(M == null ? void 0 : M.highlightBorderColor)) != null ? q : "#7E57C5";
3068
+ }, P = (J) => (Me) => {
3069
+ Me.stopPropagation(), y((je) => je.filter((me) => me.value !== J.value));
3070
+ }, H = (J) => {
3071
+ J.stopPropagation(), y([]);
3072
+ }, k = (R = q(M == null ? void 0 : M.borderColor)) != null ? R : "#D9D9D9", ee = (K = q(M == null ? void 0 : M.highlightBorderColor)) != null ? K : "#7E57C5";
3051
3073
  return /* @__PURE__ */ D("div", { "data-ui": "gui-custom-select", ref: O, children: /* @__PURE__ */ D(
3052
3074
  "div",
3053
3075
  {
3054
3076
  "data-ui": "gui-select-name-" + e,
3055
3077
  style: {
3056
- backgroundColor: X(M == null ? void 0 : M.backgroundColor),
3078
+ backgroundColor: q(M == null ? void 0 : M.backgroundColor),
3057
3079
  borderStyle: "solid",
3058
- borderColor: a ? re : U,
3059
- borderWidth: (J = M == null ? void 0 : M.borderWidth) != null ? J : 1,
3060
- borderRadius: (le = M == null ? void 0 : M.cornerRadius) != null ? le : 8,
3080
+ borderColor: a ? ee : k,
3081
+ borderWidth: (G = M == null ? void 0 : M.borderWidth) != null ? G : 1,
3082
+ borderRadius: (oe = M == null ? void 0 : M.cornerRadius) != null ? oe : 8,
3061
3083
  minHeight: "41px",
3062
3084
  position: "relative",
3063
3085
  zIndex: "auto",
@@ -3072,7 +3094,7 @@ const Wt = (e, i) => {
3072
3094
  gap: 10
3073
3095
  },
3074
3096
  tabIndex: 0,
3075
- onBlur: ie,
3097
+ onBlur: re,
3076
3098
  onClick: () => d(!a),
3077
3099
  children: [
3078
3100
  /* @__PURE__ */ D(
@@ -3098,10 +3120,10 @@ const Wt = (e, i) => {
3098
3120
  children: c
3099
3121
  }
3100
3122
  ),
3101
- N.map((G) => {
3102
- var Me, je, Oe, _e, P;
3123
+ N.map((J) => {
3124
+ var Me, je, me, _e, F;
3103
3125
  if (t) {
3104
- const oe = M == null ? void 0 : M.chip;
3126
+ const se = M == null ? void 0 : M.chip;
3105
3127
  return /* @__PURE__ */ D(
3106
3128
  "div",
3107
3129
  {
@@ -3109,17 +3131,17 @@ const Wt = (e, i) => {
3109
3131
  padding: "0px 5px",
3110
3132
  display: "flex",
3111
3133
  gap: 8,
3112
- backgroundColor: (Me = X(oe == null ? void 0 : oe.backgroundColor)) != null ? Me : "#F2F2F2",
3113
- borderRadius: (je = oe == null ? void 0 : oe.cornerRadius) != null ? je : 4,
3134
+ backgroundColor: (Me = q(se == null ? void 0 : se.backgroundColor)) != null ? Me : "#F2F2F2",
3135
+ borderRadius: (je = se == null ? void 0 : se.cornerRadius) != null ? je : 4,
3114
3136
  userSelect: "none",
3115
3137
  alignItems: "center"
3116
3138
  },
3117
3139
  children: [
3118
3140
  /* @__PURE__ */ D(
3119
3141
  Te,
3120
- W(T({}, oe == null ? void 0 : oe.title), {
3121
- fontSize: (_e = (Oe = oe == null ? void 0 : oe.title) == null ? void 0 : Oe.fontSize) != null ? _e : 13,
3122
- text: G.label
3142
+ W(T({}, se == null ? void 0 : se.title), {
3143
+ fontSize: (_e = (me = se == null ? void 0 : se.title) == null ? void 0 : me.fontSize) != null ? _e : 13,
3144
+ text: J.label
3123
3145
  })
3124
3146
  ),
3125
3147
  /* @__PURE__ */ D(
@@ -3132,16 +3154,16 @@ const Wt = (e, i) => {
3132
3154
  width: "16px",
3133
3155
  height: "16px"
3134
3156
  },
3135
- onClick: V(G),
3136
- children: oe != null && oe.removeImage ? /* @__PURE__ */ D(Ce, T({}, oe.removeImage)) : /* @__PURE__ */ D(Ce, { imageId: "cross" })
3157
+ onClick: P(J),
3158
+ children: se != null && se.removeImage ? /* @__PURE__ */ D(Ce, T({}, se.removeImage)) : /* @__PURE__ */ D(Ce, { imageId: "cross" })
3137
3159
  }
3138
3160
  )
3139
3161
  ]
3140
3162
  },
3141
- G.value
3163
+ J.value
3142
3164
  );
3143
3165
  } else {
3144
- const oe = M == null ? void 0 : M.title;
3166
+ const se = M == null ? void 0 : M.title;
3145
3167
  return /* @__PURE__ */ D(
3146
3168
  "div",
3147
3169
  {
@@ -3149,9 +3171,9 @@ const Wt = (e, i) => {
3149
3171
  display: "flex",
3150
3172
  userSelect: "none"
3151
3173
  },
3152
- children: /* @__PURE__ */ D(Te, W(T({}, oe), { fontSize: (P = oe == null ? void 0 : oe.fontSize) != null ? P : 13, text: G.label }))
3174
+ children: /* @__PURE__ */ D(Te, W(T({}, se), { fontSize: (F = se == null ? void 0 : se.fontSize) != null ? F : 13, text: J.label }))
3153
3175
  },
3154
- G.value
3176
+ J.value
3155
3177
  );
3156
3178
  }
3157
3179
  })
@@ -3169,7 +3191,7 @@ const Wt = (e, i) => {
3169
3191
  height: "16px",
3170
3192
  zIndex: 1
3171
3193
  },
3172
- onClick: K,
3194
+ onClick: H,
3173
3195
  children: M != null && M.clearButton ? /* @__PURE__ */ D(Ce, T({}, M.clearButton)) : /* @__PURE__ */ D(Ce, { imageId: "cross" })
3174
3196
  }
3175
3197
  ) : null,
@@ -3195,10 +3217,10 @@ const Wt = (e, i) => {
3195
3217
  insetInline: 0,
3196
3218
  border: "1px solid #e8e8e8",
3197
3219
  width: "100%",
3198
- backgroundColor: (fe = X(l == null ? void 0 : l.backgroundColor)) != null ? fe : "#ffffff",
3220
+ backgroundColor: (fe = q(l == null ? void 0 : l.backgroundColor)) != null ? fe : "#ffffff",
3199
3221
  borderRadius: (de = l == null ? void 0 : l.cornerRadius) != null ? de : 8,
3200
3222
  borderStyle: "solid",
3201
- borderColor: (ve = X(l == null ? void 0 : l.borderColor)) != null ? ve : "#D9D9D9",
3223
+ borderColor: (ve = q(l == null ? void 0 : l.borderColor)) != null ? ve : "#D9D9D9",
3202
3224
  borderWidth: (ce = l == null ? void 0 : l.borderWidth) != null ? ce : 1,
3203
3225
  maxHeight: "500px",
3204
3226
  overflow: "auto",
@@ -3210,20 +3232,20 @@ const Wt = (e, i) => {
3210
3232
  gap: "2px",
3211
3233
  cursor: "default"
3212
3234
  }),
3213
- onClick: (G) => G.stopPropagation(),
3214
- children: i.map((G) => {
3215
- const Me = N.some((je) => je.value === G.value);
3235
+ onClick: (J) => J.stopPropagation(),
3236
+ children: i.map((J) => {
3237
+ const Me = N.some((je) => je.value === J.value);
3216
3238
  return /* @__PURE__ */ D(
3217
3239
  Su,
3218
3240
  {
3219
3241
  isChosen: Me,
3220
- option: G,
3221
- onOptionClickCallback: H,
3222
- isHovered: x === G.value,
3223
- onHover: () => E(G.value),
3242
+ option: J,
3243
+ onOptionClickCallback: $,
3244
+ isHovered: x === J.value,
3245
+ onHover: () => E(J.value),
3224
3246
  onHoverEnd: () => E(null)
3225
3247
  },
3226
- G.label
3248
+ J.label
3227
3249
  );
3228
3250
  })
3229
3251
  }
@@ -3353,7 +3375,7 @@ const Wt = (e, i) => {
3353
3375
  }
3354
3376
  );
3355
3377
  }, Zo = () => {
3356
- const [e, i] = me(!1);
3378
+ const [e, i] = Oe(!1);
3357
3379
  return Be(() => {
3358
3380
  const t = () => i(!0), r = () => i(!1);
3359
3381
  return window.addEventListener("keydown", t), window.addEventListener("mousedown", r), () => {
@@ -3367,11 +3389,11 @@ const Wt = (e, i) => {
3367
3389
  register: r,
3368
3390
  watch: o
3369
3391
  }) => {
3370
- const [n, c] = me(!1), g = Zo(), s = String(t.id), M = o(s) === String(e.id), l = i.option, a = i.optionSelected, d = {
3371
- backgroundColor: X(a == null ? void 0 : a.backgroundColor),
3392
+ const [n, c] = Oe(!1), g = Zo(), s = String(t.id), M = o(s) === String(e.id), l = i.option, a = i.optionSelected, d = {
3393
+ backgroundColor: q(a == null ? void 0 : a.backgroundColor),
3372
3394
  borderRadius: a.cornerRadius
3373
3395
  }, N = {
3374
- backgroundColor: X(l == null ? void 0 : l.backgroundColor),
3396
+ backgroundColor: q(l == null ? void 0 : l.backgroundColor),
3375
3397
  borderRadius: l.cornerRadius
3376
3398
  }, y = n && g ? { filter: `drop-shadow(0 0 1px ${gi})` } : {};
3377
3399
  return /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(
@@ -3472,15 +3494,15 @@ const Wt = (e, i) => {
3472
3494
  register: r,
3473
3495
  watch: o
3474
3496
  }) => {
3475
- const [n, c] = me(!1), g = Zo(), s = String(t.id), M = o(s) === String(e.id), l = i.option, a = i.optionSelected, d = {
3497
+ const [n, c] = Oe(!1), g = Zo(), s = String(t.id), M = o(s) === String(e.id), l = i.option, a = i.optionSelected, d = {
3476
3498
  borderRadius: l == null ? void 0 : l.cornerRadius,
3477
- background: X(l == null ? void 0 : l.backgroundColor),
3478
- borderColor: X(l == null ? void 0 : l.borderColor),
3499
+ background: q(l == null ? void 0 : l.backgroundColor),
3500
+ borderColor: q(l == null ? void 0 : l.borderColor),
3479
3501
  borderWidth: l == null ? void 0 : l.borderWidth
3480
3502
  }, N = {
3481
3503
  borderRadius: a == null ? void 0 : a.cornerRadius,
3482
- background: X(a == null ? void 0 : a.backgroundColor),
3483
- borderColor: X(a == null ? void 0 : a.borderColor),
3504
+ background: q(a == null ? void 0 : a.backgroundColor),
3505
+ borderColor: q(a == null ? void 0 : a.borderColor),
3484
3506
  borderWidth: a == null ? void 0 : a.borderWidth
3485
3507
  }, y = n && g ? { outline: `2px solid ${gi}` } : {};
3486
3508
  return /* @__PURE__ */ D(
@@ -3584,12 +3606,12 @@ const Wt = (e, i) => {
3584
3606
  width: "100%",
3585
3607
  fontWeight: 300,
3586
3608
  lineHeight: "140%",
3587
- backgroundColor: X(i) || "transparent",
3609
+ backgroundColor: q(i) || "transparent",
3588
3610
  borderRadius: t,
3589
3611
  padding: "16px",
3590
3612
  boxSizing: "border-box",
3591
3613
  height: "auto"
3592
- }, r && T(T({}, X(n) && {
3614
+ }, r && T(T({}, q(n) && {
3593
3615
  borderColor: n,
3594
3616
  borderStyle: "solid"
3595
3617
  }), c && { borderWidth: c }));
@@ -3598,7 +3620,7 @@ const Wt = (e, i) => {
3598
3620
  "span",
3599
3621
  {
3600
3622
  style: {
3601
- color: X(n),
3623
+ color: q(n),
3602
3624
  position: "absolute",
3603
3625
  insetInlineStart: "6px",
3604
3626
  top: "18px"
@@ -3636,15 +3658,15 @@ const Wt = (e, i) => {
3636
3658
  style: {
3637
3659
  fontFamily: (g = (c = e == null ? void 0 : e.textField) == null ? void 0 : c.fontName) != null ? g : "sans-serif",
3638
3660
  fontSize: (u = (s = e == null ? void 0 : e.textField) == null ? void 0 : s.fontSize) != null ? u : 15,
3639
- color: (l = X((M = e == null ? void 0 : e.textField) == null ? void 0 : M.fontColor)) != null ? l : "#000000",
3661
+ color: (l = q((M = e == null ? void 0 : e.textField) == null ? void 0 : M.fontColor)) != null ? l : "#000000",
3640
3662
  height: "42px",
3641
3663
  borderWidth: (d = (a = e == null ? void 0 : e.textField) == null ? void 0 : a.borderWidth) != null ? d : 1,
3642
- borderColor: (y = X((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? y : "#d9d9d9",
3664
+ borderColor: (y = q((N = e == null ? void 0 : e.textField) == null ? void 0 : N.borderColor)) != null ? y : "#d9d9d9",
3643
3665
  borderStyle: "solid",
3644
3666
  borderRadius: (p = (A = e == null ? void 0 : e.textField) == null ? void 0 : A.cornerRadius) != null ? p : 8,
3645
3667
  padding: "11px",
3646
3668
  boxSizing: "border-box",
3647
- backgroundColor: (E = X((x = e == null ? void 0 : e.textField) == null ? void 0 : x.backgroundColor)) != null ? E : "#FFFFFF",
3669
+ backgroundColor: (E = q((x = e == null ? void 0 : e.textField) == null ? void 0 : x.backgroundColor)) != null ? E : "#FFFFFF",
3648
3670
  outlineColor: gi
3649
3671
  },
3650
3672
  placeholder: (O = i.placeholder) != null ? O : "",
@@ -3686,18 +3708,18 @@ const Wt = (e, i) => {
3686
3708
  style: {
3687
3709
  fontFamily: "sans-serif",
3688
3710
  fontSize: (c = (n = e == null ? void 0 : e.textField) == null ? void 0 : n.fontSize) != null ? c : 15,
3689
- color: (s = X((g = e == null ? void 0 : e.textField) == null ? void 0 : g.fontColor)) != null ? s : "#000000",
3711
+ color: (s = q((g = e == null ? void 0 : e.textField) == null ? void 0 : g.fontColor)) != null ? s : "#000000",
3690
3712
  resize: "none",
3691
3713
  overflow: "hidden",
3692
3714
  height: "42px",
3693
3715
  minHeight: "42px",
3694
3716
  borderWidth: (M = (u = e == null ? void 0 : e.textField) == null ? void 0 : u.borderWidth) != null ? M : 1,
3695
- borderColor: (a = X((l = e == null ? void 0 : e.textField) == null ? void 0 : l.borderColor)) != null ? a : "#d9d9d9",
3717
+ borderColor: (a = q((l = e == null ? void 0 : e.textField) == null ? void 0 : l.borderColor)) != null ? a : "#d9d9d9",
3696
3718
  borderStyle: "solid",
3697
3719
  borderRadius: (N = (d = e == null ? void 0 : e.textField) == null ? void 0 : d.cornerRadius) != null ? N : 8,
3698
3720
  padding: "11px",
3699
3721
  boxSizing: "border-box",
3700
- backgroundColor: (A = X((y = e == null ? void 0 : e.textField) == null ? void 0 : y.backgroundColor)) != null ? A : "#FFFFFF",
3722
+ backgroundColor: (A = q((y = e == null ? void 0 : e.textField) == null ? void 0 : y.backgroundColor)) != null ? A : "#FFFFFF",
3701
3723
  outlineColor: gi
3702
3724
  }
3703
3725
  })
@@ -3786,7 +3808,7 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
3786
3808
  width: "100%",
3787
3809
  overflow: "auto",
3788
3810
  position: "relative",
3789
- backgroundColor: X(o == null ? void 0 : o.backgroundColor) || "transparent"
3811
+ backgroundColor: q(o == null ? void 0 : o.backgroundColor) || "transparent"
3790
3812
  },
3791
3813
  ref: l,
3792
3814
  children: [
@@ -3799,82 +3821,82 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
3799
3821
  part: "gui-questions",
3800
3822
  style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
3801
3823
  children: n.questions.map((O) => {
3802
- var re;
3803
- const b = n.static, H = (Y, q) => q.find((J) => {
3804
- var le;
3805
- if ((le = J.questionIds) != null && le.length)
3806
- return J.questionIds.find((fe) => Y === fe);
3807
- }), ie = (Y, q) => q.find((J) => !J.questionIds && J.answerType === Y), V = b ? H(String(O.id), o.itemTypes) || ie(O.answerType, o.itemTypes) : o.itemTypes.find((Y) => Y.answerType === O.answerType);
3808
- if (!V) {
3809
- const Y = new Tt({
3824
+ var ee;
3825
+ const b = n.static, $ = (R, K) => K.find((G) => {
3826
+ var oe;
3827
+ if ((oe = G.questionIds) != null && oe.length)
3828
+ return G.questionIds.find((fe) => R === fe);
3829
+ }), re = (R, K) => K.find((G) => !G.questionIds && G.answerType === R), P = b ? $(String(O.id), o.itemTypes) || re(O.answerType, o.itemTypes) : o.itemTypes.find((R) => R.answerType === O.answerType);
3830
+ if (!P) {
3831
+ const R = new Tt({
3810
3832
  errorCode: bt.DECODING_FAILED,
3811
3833
  message: "The question template has not been found"
3812
3834
  });
3813
- u(Y);
3835
+ u(R);
3814
3836
  return;
3815
3837
  }
3816
- const K = V == null ? void 0 : V.displayType, U = O.id in N && ((re = N[O.id]) == null ? void 0 : re.types);
3838
+ const H = P == null ? void 0 : P.displayType, k = O.id in N && ((ee = N[O.id]) == null ? void 0 : ee.types);
3817
3839
  return (
3818
3840
  /** Question */
3819
3841
  /* @__PURE__ */ D(be, { children: [
3820
3842
  /* @__PURE__ */ D(
3821
3843
  Yu,
3822
3844
  {
3823
- backgroundColor: V == null ? void 0 : V.backgroundColor,
3824
- cornerRadius: V == null ? void 0 : V.cornerRadius,
3825
- isError: !!U,
3845
+ backgroundColor: P == null ? void 0 : P.backgroundColor,
3846
+ cornerRadius: P == null ? void 0 : P.cornerRadius,
3847
+ isError: !!k,
3826
3848
  isRequired: O.required,
3827
- validationBorderColor: V == null ? void 0 : V.validationBorderColor,
3828
- validationBorderWidth: V == null ? void 0 : V.validationBorderWidth,
3849
+ validationBorderColor: P == null ? void 0 : P.validationBorderColor,
3850
+ validationBorderWidth: P == null ? void 0 : P.validationBorderWidth,
3829
3851
  children: [
3830
- K === Ut.TEXT_EXPANDABLE && /* @__PURE__ */ D(
3852
+ H === Ut.TEXT_EXPANDABLE && /* @__PURE__ */ D(
3831
3853
  Bu,
3832
3854
  {
3833
- layout: V,
3855
+ layout: P,
3834
3856
  dataSourceQuestion: O,
3835
3857
  register: a
3836
3858
  }
3837
3859
  ),
3838
- K === Ut.TEXT_SINGLE_LINE && /* @__PURE__ */ D(
3860
+ H === Ut.TEXT_SINGLE_LINE && /* @__PURE__ */ D(
3839
3861
  Fu,
3840
3862
  {
3841
- layout: V,
3863
+ layout: P,
3842
3864
  dataSourceQuestion: O,
3843
3865
  register: a
3844
3866
  }
3845
3867
  ),
3846
- K === Ut.SELECTOR_OPTIONS && /* @__PURE__ */ D(
3868
+ H === Ut.SELECTOR_OPTIONS && /* @__PURE__ */ D(
3847
3869
  Uu,
3848
3870
  {
3849
- layout: V,
3871
+ layout: P,
3850
3872
  dataSourceQuestion: O,
3851
3873
  watch: A,
3852
3874
  register: a
3853
3875
  }
3854
3876
  ),
3855
- K === Ut.SELECTOR_BUTTONS && /* @__PURE__ */ D(
3877
+ H === Ut.SELECTOR_BUTTONS && /* @__PURE__ */ D(
3856
3878
  Ru,
3857
3879
  {
3858
- layout: V,
3880
+ layout: P,
3859
3881
  dataSourceQuestion: O,
3860
3882
  watch: A,
3861
3883
  register: a
3862
3884
  }
3863
3885
  ),
3864
- K === Ut.SELECTOR_DROPDOWN && /* @__PURE__ */ D(
3886
+ H === Ut.SELECTOR_DROPDOWN && /* @__PURE__ */ D(
3865
3887
  vu,
3866
3888
  {
3867
3889
  control: p,
3868
- layout: V,
3890
+ layout: P,
3869
3891
  dataSourceQuestion: O,
3870
3892
  parentElementRef: l
3871
3893
  }
3872
3894
  ),
3873
- K === Ut.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ D(
3895
+ H === Ut.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ D(
3874
3896
  Lu,
3875
3897
  {
3876
3898
  control: p,
3877
- layout: V,
3899
+ layout: P,
3878
3900
  dataSourceQuestion: O,
3879
3901
  parentElementRef: l
3880
3902
  }
@@ -3882,11 +3904,11 @@ const Vu = ({ header: e, title: i, buttons: t, footer: r, questions: o, dataSour
3882
3904
  ]
3883
3905
  }
3884
3906
  ),
3885
- U && /* @__PURE__ */ D(
3907
+ k && /* @__PURE__ */ D(
3886
3908
  Pu,
3887
3909
  {
3888
- validationErrorsTypes: U,
3889
- title: V.validationMessage
3910
+ validationErrorsTypes: k,
3911
+ title: P.validationMessage
3890
3912
  }
3891
3913
  )
3892
3914
  ] }, O.id)
@@ -4035,80 +4057,80 @@ var Jt = { exports: {} }, Xu = Jt.exports, Rn;
4035
4057
  function Ku() {
4036
4058
  return Rn || (Rn = 1, (function(e, i) {
4037
4059
  (function(t, r) {
4038
- var o = "1.0.41", n = "", c = "?", g = "function", s = "undefined", u = "object", M = "string", l = "major", a = "model", d = "name", N = "type", y = "vendor", A = "version", p = "architecture", x = "console", E = "mobile", O = "tablet", b = "smarttv", H = "wearable", ie = "embedded", V = 500, K = "Amazon", U = "Apple", re = "ASUS", Y = "BlackBerry", q = "Browser", J = "Chrome", le = "Edge", fe = "Firefox", de = "Google", ve = "Honor", ce = "Huawei", G = "Lenovo", Me = "LG", je = "Microsoft", Oe = "Motorola", _e = "Nvidia", P = "OnePlus", oe = "Opera", nt = "OPPO", Xe = "Samsung", Ot = "Sharp", Ve = "Sony", dt = "Xiaomi", ot = "Zebra", Nt = "Facebook", Lt = "Chromium OS", It = "Mac OS", mt = " Browser", Et = function(L, F) {
4060
+ var o = "1.0.41", n = "", c = "?", g = "function", s = "undefined", u = "object", M = "string", l = "major", a = "model", d = "name", N = "type", y = "vendor", A = "version", p = "architecture", x = "console", E = "mobile", O = "tablet", b = "smarttv", $ = "wearable", re = "embedded", P = 500, H = "Amazon", k = "Apple", ee = "ASUS", R = "BlackBerry", K = "Browser", G = "Chrome", oe = "Edge", fe = "Firefox", de = "Google", ve = "Honor", ce = "Huawei", J = "Lenovo", Me = "LG", je = "Microsoft", me = "Motorola", _e = "Nvidia", F = "OnePlus", se = "Opera", nt = "OPPO", Xe = "Samsung", Ot = "Sharp", Ve = "Sony", dt = "Xiaomi", ot = "Zebra", Nt = "Facebook", Lt = "Chromium OS", It = "Mac OS", mt = " Browser", Et = function(L, B) {
4039
4061
  var Z = {};
4040
4062
  for (var ne in L)
4041
- F[ne] && F[ne].length % 2 === 0 ? Z[ne] = F[ne].concat(L[ne]) : Z[ne] = L[ne];
4063
+ B[ne] && B[ne].length % 2 === 0 ? Z[ne] = B[ne].concat(L[ne]) : Z[ne] = L[ne];
4042
4064
  return Z;
4043
4065
  }, Ke = function(L) {
4044
- for (var F = {}, Z = 0; Z < L.length; Z++)
4045
- F[L[Z].toUpperCase()] = L[Z];
4046
- return F;
4047
- }, st = function(L, F) {
4048
- return typeof L === M ? qe(F).indexOf(qe(L)) !== -1 : !1;
4066
+ for (var B = {}, Z = 0; Z < L.length; Z++)
4067
+ B[L[Z].toUpperCase()] = L[Z];
4068
+ return B;
4069
+ }, st = function(L, B) {
4070
+ return typeof L === M ? qe(B).indexOf(qe(L)) !== -1 : !1;
4049
4071
  }, qe = function(L) {
4050
4072
  return L.toLowerCase();
4051
4073
  }, Zt = function(L) {
4052
4074
  return typeof L === M ? L.replace(/[^\d\.]/g, n).split(".")[0] : r;
4053
- }, at = function(L, F) {
4075
+ }, at = function(L, B) {
4054
4076
  if (typeof L === M)
4055
- return L = L.replace(/^\s\s*/, n), typeof F === s ? L : L.substring(0, V);
4056
- }, f = function(L, F) {
4057
- for (var Z = 0, ne, Se, ye, se, $, Le; Z < F.length && !$; ) {
4058
- var Dt = F[Z], ft = F[Z + 1];
4059
- for (ne = Se = 0; ne < Dt.length && !$ && Dt[ne]; )
4060
- if ($ = Dt[ne++].exec(L), $)
4077
+ return L = L.replace(/^\s\s*/, n), typeof B === s ? L : L.substring(0, P);
4078
+ }, f = function(L, B) {
4079
+ for (var Z = 0, ne, Se, ye, ae, X, Le; Z < B.length && !X; ) {
4080
+ var Dt = B[Z], ft = B[Z + 1];
4081
+ for (ne = Se = 0; ne < Dt.length && !X && Dt[ne]; )
4082
+ if (X = Dt[ne++].exec(L), X)
4061
4083
  for (ye = 0; ye < ft.length; ye++)
4062
- Le = $[++Se], se = ft[ye], typeof se === u && se.length > 0 ? se.length === 2 ? typeof se[1] == g ? this[se[0]] = se[1].call(this, Le) : this[se[0]] = se[1] : se.length === 3 ? typeof se[1] === g && !(se[1].exec && se[1].test) ? this[se[0]] = Le ? se[1].call(this, Le, se[2]) : r : this[se[0]] = Le ? Le.replace(se[1], se[2]) : r : se.length === 4 && (this[se[0]] = Le ? se[3].call(this, Le.replace(se[1], se[2])) : r) : this[se] = Le || r;
4084
+ Le = X[++Se], ae = ft[ye], typeof ae === u && ae.length > 0 ? ae.length === 2 ? typeof ae[1] == g ? this[ae[0]] = ae[1].call(this, Le) : this[ae[0]] = ae[1] : ae.length === 3 ? typeof ae[1] === g && !(ae[1].exec && ae[1].test) ? this[ae[0]] = Le ? ae[1].call(this, Le, ae[2]) : r : this[ae[0]] = Le ? Le.replace(ae[1], ae[2]) : r : ae.length === 4 && (this[ae[0]] = Le ? ae[3].call(this, Le.replace(ae[1], ae[2])) : r) : this[ae] = Le || r;
4063
4085
  Z += 2;
4064
4086
  }
4065
- }, h = function(L, F) {
4066
- for (var Z in F)
4067
- if (typeof F[Z] === u && F[Z].length > 0) {
4068
- for (var ne = 0; ne < F[Z].length; ne++)
4069
- if (st(F[Z][ne], L))
4087
+ }, h = function(L, B) {
4088
+ for (var Z in B)
4089
+ if (typeof B[Z] === u && B[Z].length > 0) {
4090
+ for (var ne = 0; ne < B[Z].length; ne++)
4091
+ if (st(B[Z][ne], L))
4070
4092
  return Z === c ? r : Z;
4071
- } else if (st(F[Z], L))
4093
+ } else if (st(B[Z], L))
4072
4094
  return Z === c ? r : Z;
4073
- return F.hasOwnProperty("*") ? F["*"] : L;
4074
- }, m = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, v = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, S = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [A, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [A, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, A], [/opios[\/ ]+([\w\.]+)/i], [A, [d, oe + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [A, [d, oe + " GX"]], [/\bopr\/([\w\.]+)/i], [A, [d, oe]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [A, [d, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [A, [d, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, A], [/quark(?:pc)?\/([-\w\.]+)/i], [A, [d, "Quark"]], [/\bddg\/([\w\.]+)/i], [A, [d, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [A, [d, "UC" + q]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [A, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [A, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [A, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [A, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [A, [d, "Smart Lenovo " + q]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + q], A], [/\bfocus\/([\w\.]+)/i], [A, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [A, [d, oe + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [A, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [A, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [A, [d, oe + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [A, [d, "MIUI" + mt]], [/fxios\/([\w\.-]+)/i], [A, [d, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [A, [d, "360"]], [/\b(qq)\/([\w\.]+)/i], [[d, /(.+)/, "$1Browser"], A], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1" + mt], A], [/samsungbrowser\/([\w\.]+)/i], [A, [d, Xe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [A, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], A], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [d, A], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [d], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [A, d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Nt], A], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, A], [/\bgsa\/([\w\.]+) .*safari\//i], [A, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [A, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [A, [d, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, J + " WebView"], A], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [A, [d, "Android " + q]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, A], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [A, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [A, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [A, h, m]], [/(webkit|khtml)\/([\w\.]+)/i], [d, A], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], A], [/(wolvic|librewolf)\/([\w\.]+)/i], [d, A], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [A, [d, fe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [d, [A, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [d, [A, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[p, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[p, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[p, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[p, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[p, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[p, /ower/, n, qe]], [/ sun4\w[;\)]/i], [[p, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[p, qe]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [y, Xe], [N, O]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [y, Xe], [N, E]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, U], [N, E]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, U], [N, O]], [/(macintosh);/i], [a, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Ot], [N, E]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, ve], [N, O]], [/honor([-\w ]+)[;\)]/i], [a, [y, ve], [N, E]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [y, ce], [N, O]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [N, E]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, dt], [N, O]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [y, dt], [N, E]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, nt], [N, E]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, h, { OnePlus: ["304", "403", "203"], "*": nt }], [N, O]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [N, E]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [N, E]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [y, Oe], [N, E]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, Oe], [N, O]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, Me], [N, O]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, Me], [N, E]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [y, G], [N, O]], [/(nokia) (t[12][01])/i], [y, a, [N, O]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, E], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, de], [N, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, de], [N, E]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [y, Ve], [N, E]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Ve], [N, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, P], [N, E]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, K], [N, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, K], [N, E]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [N, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, Y], [N, E]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, re], [N, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, re], [N, E]], [/(nexus 9)/i], [a, [y, "HTC"], [N, O]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [N, E]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [y, "TCL"], [N, O]], [/(itel) ((\w+))/i], [[y, qe], a, [N, h, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [N, O]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [N, E]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [N, E]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [N, E]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [N, E]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [N, E]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [N, E]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [N, O]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [N, E]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [N, O]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [y, a, [N, E]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [y, a, [N, O]], [/(surface duo)/i], [a, [y, je], [N, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [N, E]], [/(u304aa)/i], [a, [y, "AT&T"], [N, E]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [N, E]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [N, O]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [N, O]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [N, O]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [N, O]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [N, O]], [/\b(k88) b/i], [a, [y, "ZTE"], [N, O]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [N, E]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [N, E]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [N, O]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [N, O]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [N, O]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [N, O]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [N, O]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [N, E]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [N, E]], [/\b(ph-1) /i], [a, [y, "Essential"], [N, E]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [N, O]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [N, O]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [N, O]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, _e], [N, O]], [/(sprint) (\w+)/i], [y, a, [N, E]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, je], [N, E]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, ot], [N, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, ot], [N, E]], [/smart-tv.+(samsung)/i], [y, [N, b]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Xe], [N, b]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, Me], [N, b]], [/(apple) ?tv/i], [y, [a, U + " TV"], [N, b]], [/crkey/i], [[a, J + "cast"], [y, de], [N, b]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, K], [N, b]], [/(shield \w+ tv)/i], [a, [y, _e], [N, b]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Ot], [N, b]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Ve], [N, b]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, dt], [N, b]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [N, b]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, at], [a, at], [N, b]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, b]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, b]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [N, x]], [/droid.+; (shield)( bui|\))/i], [a, [y, _e], [N, x]], [/(playstation \w+)/i], [a, [y, Ve], [N, x]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, je], [N, x]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Xe], [N, H]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [N, H]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, nt], [N, H]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, U], [N, H]], [/(opwwe\d{3})/i], [a, [y, P], [N, H]], [/(moto 360)/i], [a, [y, Oe], [N, H]], [/(smartwatch 3)/i], [a, [y, Ve], [N, H]], [/(g watch r)/i], [a, [y, Me], [N, H]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, ot], [N, H]], [/droid.+; (glass) \d/i], [a, [y, de], [N, H]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [N, H]], [/; (quest( \d| pro)?)/i], [a, [y, Nt], [N, H]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [N, ie]], [/(aeobc)\b/i], [a, [y, K], [N, ie]], [/(homepod).+mac os/i], [a, [y, U], [N, ie]], [/windows iot/i], [[N, ie]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, E]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, O]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, O]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, E]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [A, [d, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [d, A], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [A, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, A], [/ladybird\//i], [[d, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [A, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, A], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [d, [A, h, v]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[A, h, v], [d, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[A, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, It], [A, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [A, d], [/(ubuntu) ([\w\.]+) like android/i], [[d, /(.+)/, "$1 Touch"], A], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [d, A], [/\(bb(10);/i], [A, [d, Y]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [A, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [A, [d, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [A, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [A, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [A, [d, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, Lt], A], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, A], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], A], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, A]] }, _ = function(L, F) {
4075
- if (typeof L === u && (F = L, L = r), !(this instanceof _))
4076
- return new _(L, F).getResult();
4077
- var Z = typeof t !== s && t.navigator ? t.navigator : r, ne = L || (Z && Z.userAgent ? Z.userAgent : n), Se = Z && Z.userAgentData ? Z.userAgentData : r, ye = F ? Et(S, F) : S, se = Z && Z.userAgent == ne;
4095
+ return B.hasOwnProperty("*") ? B["*"] : L;
4096
+ }, m = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, v = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, S = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [A, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [A, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, A], [/opios[\/ ]+([\w\.]+)/i], [A, [d, se + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [A, [d, se + " GX"]], [/\bopr\/([\w\.]+)/i], [A, [d, se]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [A, [d, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [A, [d, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, A], [/quark(?:pc)?\/([-\w\.]+)/i], [A, [d, "Quark"]], [/\bddg\/([\w\.]+)/i], [A, [d, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [A, [d, "UC" + K]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [A, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [A, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [A, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [A, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [A, [d, "Smart Lenovo " + K]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + K], A], [/\bfocus\/([\w\.]+)/i], [A, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [A, [d, se + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [A, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [A, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [A, [d, se + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [A, [d, "MIUI" + mt]], [/fxios\/([\w\.-]+)/i], [A, [d, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [A, [d, "360"]], [/\b(qq)\/([\w\.]+)/i], [[d, /(.+)/, "$1Browser"], A], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1" + mt], A], [/samsungbrowser\/([\w\.]+)/i], [A, [d, Xe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [A, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], A], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [d, A], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [d], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [A, d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Nt], A], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, A], [/\bgsa\/([\w\.]+) .*safari\//i], [A, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [A, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [A, [d, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, G + " WebView"], A], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [A, [d, "Android " + K]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, A], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [A, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [A, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [A, h, m]], [/(webkit|khtml)\/([\w\.]+)/i], [d, A], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], A], [/(wolvic|librewolf)\/([\w\.]+)/i], [d, A], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [A, [d, fe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [d, [A, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [d, [A, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[p, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[p, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[p, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[p, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[p, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[p, /ower/, n, qe]], [/ sun4\w[;\)]/i], [[p, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[p, qe]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [y, Xe], [N, O]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [y, Xe], [N, E]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, k], [N, E]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, k], [N, O]], [/(macintosh);/i], [a, [y, k]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Ot], [N, E]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, ve], [N, O]], [/honor([-\w ]+)[;\)]/i], [a, [y, ve], [N, E]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [y, ce], [N, O]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [N, E]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, dt], [N, O]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [y, dt], [N, E]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, nt], [N, E]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, h, { OnePlus: ["304", "403", "203"], "*": nt }], [N, O]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [N, E]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [N, E]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [y, me], [N, E]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, me], [N, O]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, Me], [N, O]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, Me], [N, E]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [y, J], [N, O]], [/(nokia) (t[12][01])/i], [y, a, [N, O]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [N, E], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, de], [N, O]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, de], [N, E]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [y, Ve], [N, E]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Ve], [N, O]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, F], [N, E]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, H], [N, O]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, H], [N, E]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [N, O]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, R], [N, E]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, ee], [N, O]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, ee], [N, E]], [/(nexus 9)/i], [a, [y, "HTC"], [N, O]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [N, E]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [y, "TCL"], [N, O]], [/(itel) ((\w+))/i], [[y, qe], a, [N, h, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [N, O]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [N, E]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [N, E]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [N, E]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [N, E]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [N, E]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [N, E]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [N, O]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [N, E]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [N, O]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [y, a, [N, E]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [y, a, [N, O]], [/(surface duo)/i], [a, [y, je], [N, O]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [N, E]], [/(u304aa)/i], [a, [y, "AT&T"], [N, E]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [N, E]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [N, O]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [N, O]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [N, O]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [N, O]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [N, O]], [/\b(k88) b/i], [a, [y, "ZTE"], [N, O]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [N, E]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [N, E]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [N, O]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [N, O]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [N, O]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [N, O]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [N, O]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [N, E]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [N, E]], [/\b(ph-1) /i], [a, [y, "Essential"], [N, E]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [N, O]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [N, O]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [N, O]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, _e], [N, O]], [/(sprint) (\w+)/i], [y, a, [N, E]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, je], [N, E]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, ot], [N, O]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, ot], [N, E]], [/smart-tv.+(samsung)/i], [y, [N, b]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Xe], [N, b]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, Me], [N, b]], [/(apple) ?tv/i], [y, [a, k + " TV"], [N, b]], [/crkey/i], [[a, G + "cast"], [y, de], [N, b]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, H], [N, b]], [/(shield \w+ tv)/i], [a, [y, _e], [N, b]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Ot], [N, b]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Ve], [N, b]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, dt], [N, b]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [N, b]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, at], [a, at], [N, b]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [N, b]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[N, b]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [N, x]], [/droid.+; (shield)( bui|\))/i], [a, [y, _e], [N, x]], [/(playstation \w+)/i], [a, [y, Ve], [N, x]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, je], [N, x]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Xe], [N, $]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [N, $]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, nt], [N, $]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, k], [N, $]], [/(opwwe\d{3})/i], [a, [y, F], [N, $]], [/(moto 360)/i], [a, [y, me], [N, $]], [/(smartwatch 3)/i], [a, [y, Ve], [N, $]], [/(g watch r)/i], [a, [y, Me], [N, $]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, ot], [N, $]], [/droid.+; (glass) \d/i], [a, [y, de], [N, $]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [N, $]], [/; (quest( \d| pro)?)/i], [a, [y, Nt], [N, $]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [N, re]], [/(aeobc)\b/i], [a, [y, H], [N, re]], [/(homepod).+mac os/i], [a, [y, k], [N, re]], [/windows iot/i], [[N, re]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [N, E]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [N, O]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[N, O]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[N, E]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [A, [d, oe + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [d, A], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [A, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, A], [/ladybird\//i], [[d, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [A, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, A], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [d, [A, h, v]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[A, h, v], [d, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[A, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, It], [A, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [A, d], [/(ubuntu) ([\w\.]+) like android/i], [[d, /(.+)/, "$1 Touch"], A], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [d, A], [/\(bb(10);/i], [A, [d, R]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [A, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [A, [d, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [A, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [A, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [A, [d, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, Lt], A], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, A], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], A], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, A]] }, _ = function(L, B) {
4097
+ if (typeof L === u && (B = L, L = r), !(this instanceof _))
4098
+ return new _(L, B).getResult();
4099
+ var Z = typeof t !== s && t.navigator ? t.navigator : r, ne = L || (Z && Z.userAgent ? Z.userAgent : n), Se = Z && Z.userAgentData ? Z.userAgentData : r, ye = B ? Et(S, B) : S, ae = Z && Z.userAgent == ne;
4078
4100
  return this.getBrowser = function() {
4079
- var $ = {};
4080
- return $[d] = r, $[A] = r, f.call($, ne, ye.browser), $[l] = Zt($[A]), se && Z && Z.brave && typeof Z.brave.isBrave == g && ($[d] = "Brave"), $;
4101
+ var X = {};
4102
+ return X[d] = r, X[A] = r, f.call(X, ne, ye.browser), X[l] = Zt(X[A]), ae && Z && Z.brave && typeof Z.brave.isBrave == g && (X[d] = "Brave"), X;
4081
4103
  }, this.getCPU = function() {
4082
- var $ = {};
4083
- return $[p] = r, f.call($, ne, ye.cpu), $;
4104
+ var X = {};
4105
+ return X[p] = r, f.call(X, ne, ye.cpu), X;
4084
4106
  }, this.getDevice = function() {
4085
- var $ = {};
4086
- return $[y] = r, $[a] = r, $[N] = r, f.call($, ne, ye.device), se && !$[N] && Se && Se.mobile && ($[N] = E), se && $[a] == "Macintosh" && Z && typeof Z.standalone !== s && Z.maxTouchPoints && Z.maxTouchPoints > 2 && ($[a] = "iPad", $[N] = O), $;
4107
+ var X = {};
4108
+ return X[y] = r, X[a] = r, X[N] = r, f.call(X, ne, ye.device), ae && !X[N] && Se && Se.mobile && (X[N] = E), ae && X[a] == "Macintosh" && Z && typeof Z.standalone !== s && Z.maxTouchPoints && Z.maxTouchPoints > 2 && (X[a] = "iPad", X[N] = O), X;
4087
4109
  }, this.getEngine = function() {
4088
- var $ = {};
4089
- return $[d] = r, $[A] = r, f.call($, ne, ye.engine), $;
4110
+ var X = {};
4111
+ return X[d] = r, X[A] = r, f.call(X, ne, ye.engine), X;
4090
4112
  }, this.getOS = function() {
4091
- var $ = {};
4092
- return $[d] = r, $[A] = r, f.call($, ne, ye.os), se && !$[d] && Se && Se.platform && Se.platform != "Unknown" && ($[d] = Se.platform.replace(/chrome os/i, Lt).replace(/macos/i, It)), $;
4113
+ var X = {};
4114
+ return X[d] = r, X[A] = r, f.call(X, ne, ye.os), ae && !X[d] && Se && Se.platform && Se.platform != "Unknown" && (X[d] = Se.platform.replace(/chrome os/i, Lt).replace(/macos/i, It)), X;
4093
4115
  }, this.getResult = function() {
4094
4116
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
4095
4117
  }, this.getUA = function() {
4096
4118
  return ne;
4097
- }, this.setUA = function($) {
4098
- return ne = typeof $ === M && $.length > V ? at($, V) : $, this;
4119
+ }, this.setUA = function(X) {
4120
+ return ne = typeof X === M && X.length > P ? at(X, P) : X, this;
4099
4121
  }, this.setUA(ne), this;
4100
4122
  };
4101
- _.VERSION = o, _.BROWSER = Ke([d, A, l]), _.CPU = Ke([p]), _.DEVICE = Ke([a, y, N, x, E, b, O, H, ie]), _.ENGINE = _.OS = Ke([d, A]), e.exports && (i = e.exports = _), i.UAParser = _;
4102
- var R = typeof t !== s && (t.jQuery || t.Zepto);
4103
- if (R && !R.ua) {
4104
- var ee = new _();
4105
- R.ua = ee.getResult(), R.ua.get = function() {
4106
- return ee.getUA();
4107
- }, R.ua.set = function(L) {
4108
- ee.setUA(L);
4109
- var F = ee.getResult();
4110
- for (var Z in F)
4111
- R.ua[Z] = F[Z];
4123
+ _.VERSION = o, _.BROWSER = Ke([d, A, l]), _.CPU = Ke([p]), _.DEVICE = Ke([a, y, N, x, E, b, O, $, re]), _.ENGINE = _.OS = Ke([d, A]), e.exports && (i = e.exports = _), i.UAParser = _;
4124
+ var Y = typeof t !== s && (t.jQuery || t.Zepto);
4125
+ if (Y && !Y.ua) {
4126
+ var te = new _();
4127
+ Y.ua = te.getResult(), Y.ua.get = function() {
4128
+ return te.getUA();
4129
+ }, Y.ua.set = function(L) {
4130
+ te.setUA(L);
4131
+ var B = te.getResult();
4132
+ for (var Z in B)
4133
+ Y.ua[Z] = B[Z];
4112
4134
  };
4113
4135
  }
4114
4136
  })(typeof window == "object" ? window : Xu);
@@ -4212,7 +4234,7 @@ function qu() {
4212
4234
  return z;
4213
4235
  }, b.apply(this, arguments);
4214
4236
  }
4215
- function H(z, I) {
4237
+ function $(z, I) {
4216
4238
  if (typeof I != "function" && I !== null)
4217
4239
  throw new TypeError("Super expression must either be null or a function");
4218
4240
  z.prototype = Object.create(I && I.prototype, {
@@ -4221,67 +4243,67 @@ function qu() {
4221
4243
  writable: !0,
4222
4244
  configurable: !0
4223
4245
  }
4224
- }), I && V(z, I);
4246
+ }), I && P(z, I);
4225
4247
  }
4226
- function ie(z) {
4227
- return ie = Object.setPrototypeOf ? Object.getPrototypeOf : function(j) {
4248
+ function re(z) {
4249
+ return re = Object.setPrototypeOf ? Object.getPrototypeOf : function(j) {
4228
4250
  return j.__proto__ || Object.getPrototypeOf(j);
4229
- }, ie(z);
4251
+ }, re(z);
4230
4252
  }
4231
- function V(z, I) {
4232
- return V = Object.setPrototypeOf || function(w, C) {
4253
+ function P(z, I) {
4254
+ return P = Object.setPrototypeOf || function(w, C) {
4233
4255
  return w.__proto__ = C, w;
4234
- }, V(z, I);
4256
+ }, P(z, I);
4235
4257
  }
4236
- function K(z, I) {
4258
+ function H(z, I) {
4237
4259
  if (z == null) return {};
4238
- var j = {}, w = Object.keys(z), C, ae;
4239
- for (ae = 0; ae < w.length; ae++)
4240
- C = w[ae], !(I.indexOf(C) >= 0) && (j[C] = z[C]);
4260
+ var j = {}, w = Object.keys(z), C, ue;
4261
+ for (ue = 0; ue < w.length; ue++)
4262
+ C = w[ue], !(I.indexOf(C) >= 0) && (j[C] = z[C]);
4241
4263
  return j;
4242
4264
  }
4243
- function U(z, I) {
4265
+ function k(z, I) {
4244
4266
  if (z == null) return {};
4245
- var j = K(z, I), w, C;
4267
+ var j = H(z, I), w, C;
4246
4268
  if (Object.getOwnPropertySymbols) {
4247
- var ae = Object.getOwnPropertySymbols(z);
4248
- for (C = 0; C < ae.length; C++)
4249
- w = ae[C], !(I.indexOf(w) >= 0) && Object.prototype.propertyIsEnumerable.call(z, w) && (j[w] = z[w]);
4269
+ var ue = Object.getOwnPropertySymbols(z);
4270
+ for (C = 0; C < ue.length; C++)
4271
+ w = ue[C], !(I.indexOf(w) >= 0) && Object.prototype.propertyIsEnumerable.call(z, w) && (j[w] = z[w]);
4250
4272
  }
4251
4273
  return j;
4252
4274
  }
4253
- function re(z) {
4275
+ function ee(z) {
4254
4276
  if (z === void 0)
4255
4277
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4256
4278
  return z;
4257
4279
  }
4258
- function Y(z, I) {
4280
+ function R(z, I) {
4259
4281
  if (I && (typeof I == "object" || typeof I == "function"))
4260
4282
  return I;
4261
4283
  if (I !== void 0)
4262
4284
  throw new TypeError("Derived constructors may only return object or undefined");
4263
- return re(z);
4285
+ return ee(z);
4264
4286
  }
4265
- function q(z, I) {
4266
- return J(z) || le(z, I) || fe(z, I) || ve();
4287
+ function K(z, I) {
4288
+ return G(z) || oe(z, I) || fe(z, I) || ve();
4267
4289
  }
4268
- function J(z) {
4290
+ function G(z) {
4269
4291
  if (Array.isArray(z)) return z;
4270
4292
  }
4271
- function le(z, I) {
4293
+ function oe(z, I) {
4272
4294
  var j = z == null ? null : typeof Symbol != "undefined" && z[Symbol.iterator] || z["@@iterator"];
4273
4295
  if (j != null) {
4274
- var w = [], C = !0, ae = !1, we, Re;
4296
+ var w = [], C = !0, ue = !1, we, Re;
4275
4297
  try {
4276
4298
  for (j = j.call(z); !(C = (we = j.next()).done) && (w.push(we.value), !(I && w.length === I)); C = !0)
4277
4299
  ;
4278
4300
  } catch (fi) {
4279
- ae = !0, Re = fi;
4301
+ ue = !0, Re = fi;
4280
4302
  } finally {
4281
4303
  try {
4282
4304
  !C && j.return != null && j.return();
4283
4305
  } finally {
4284
- if (ae) throw Re;
4306
+ if (ue) throw Re;
4285
4307
  }
4286
4308
  }
4287
4309
  return w;
@@ -4312,7 +4334,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4312
4334
  Wearable: "wearable",
4313
4335
  Embedded: "embedded",
4314
4336
  Browser: void 0
4315
- }, G = {
4337
+ }, J = {
4316
4338
  Chrome: "Chrome",
4317
4339
  Firefox: "Firefox",
4318
4340
  Opera: "Opera",
@@ -4339,7 +4361,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4339
4361
  isSmartTV: !1,
4340
4362
  isConsole: !1,
4341
4363
  isWearable: !1
4342
- }, Oe = function(I) {
4364
+ }, me = function(I) {
4343
4365
  switch (I) {
4344
4366
  case ce.Mobile:
4345
4367
  return {
@@ -4374,87 +4396,87 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4374
4396
  }
4375
4397
  }, _e = function(I) {
4376
4398
  return l(I);
4377
- }, P = function(I) {
4399
+ }, F = function(I) {
4378
4400
  var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
4379
4401
  return I || j;
4380
- }, oe = function() {
4402
+ }, se = function() {
4381
4403
  return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
4382
4404
  }, nt = function(I) {
4383
- var j = oe();
4405
+ var j = se();
4384
4406
  return j && j.platform && (j.platform.indexOf(I) !== -1 || j.platform === "MacIntel" && j.maxTouchPoints > 1 && !window.MSStream);
4385
- }, Xe = function(I, j, w, C, ae) {
4407
+ }, Xe = function(I, j, w, C, ue) {
4386
4408
  return {
4387
4409
  isBrowser: I,
4388
- browserMajorVersion: P(j.major),
4389
- browserFullVersion: P(j.version),
4390
- browserName: P(j.name),
4391
- engineName: P(w.name),
4392
- engineVersion: P(w.version),
4393
- osName: P(C.name),
4394
- osVersion: P(C.version),
4395
- userAgent: P(ae)
4410
+ browserMajorVersion: F(j.major),
4411
+ browserFullVersion: F(j.version),
4412
+ browserName: F(j.name),
4413
+ engineName: F(w.name),
4414
+ engineVersion: F(w.version),
4415
+ osName: F(C.name),
4416
+ osVersion: F(C.version),
4417
+ userAgent: F(ue)
4396
4418
  };
4397
4419
  }, Ot = function(I, j, w, C) {
4398
4420
  return y({}, I, {
4399
- vendor: P(j.vendor),
4400
- model: P(j.model),
4401
- os: P(w.name),
4402
- osVersion: P(w.version),
4403
- ua: P(C)
4421
+ vendor: F(j.vendor),
4422
+ model: F(j.model),
4423
+ os: F(w.name),
4424
+ osVersion: F(w.version),
4425
+ ua: F(C)
4404
4426
  });
4405
4427
  }, Ve = function(I, j, w, C) {
4406
4428
  return {
4407
4429
  isSmartTV: I,
4408
- engineName: P(j.name),
4409
- engineVersion: P(j.version),
4410
- osName: P(w.name),
4411
- osVersion: P(w.version),
4412
- userAgent: P(C)
4430
+ engineName: F(j.name),
4431
+ engineVersion: F(j.version),
4432
+ osName: F(w.name),
4433
+ osVersion: F(w.version),
4434
+ userAgent: F(C)
4413
4435
  };
4414
4436
  }, dt = function(I, j, w, C) {
4415
4437
  return {
4416
4438
  isConsole: I,
4417
- engineName: P(j.name),
4418
- engineVersion: P(j.version),
4419
- osName: P(w.name),
4420
- osVersion: P(w.version),
4421
- userAgent: P(C)
4439
+ engineName: F(j.name),
4440
+ engineVersion: F(j.version),
4441
+ osName: F(w.name),
4442
+ osVersion: F(w.version),
4443
+ userAgent: F(C)
4422
4444
  };
4423
4445
  }, ot = function(I, j, w, C) {
4424
4446
  return {
4425
4447
  isWearable: I,
4426
- engineName: P(j.name),
4427
- engineVersion: P(j.version),
4428
- osName: P(w.name),
4429
- osVersion: P(w.version),
4430
- userAgent: P(C)
4448
+ engineName: F(j.name),
4449
+ engineVersion: F(j.version),
4450
+ osName: F(w.name),
4451
+ osVersion: F(w.version),
4452
+ userAgent: F(C)
4431
4453
  };
4432
- }, Nt = function(I, j, w, C, ae) {
4454
+ }, Nt = function(I, j, w, C, ue) {
4433
4455
  return {
4434
4456
  isEmbedded: I,
4435
- vendor: P(j.vendor),
4436
- model: P(j.model),
4437
- engineName: P(w.name),
4438
- engineVersion: P(w.version),
4439
- osName: P(C.name),
4440
- osVersion: P(C.version),
4441
- userAgent: P(ae)
4457
+ vendor: F(j.vendor),
4458
+ model: F(j.model),
4459
+ engineName: F(w.name),
4460
+ engineVersion: F(w.version),
4461
+ osName: F(C.name),
4462
+ osVersion: F(C.version),
4463
+ userAgent: F(ue)
4442
4464
  };
4443
4465
  };
4444
4466
  function Lt(z) {
4445
- var I = z ? a(z) : d, j = I.device, w = I.browser, C = I.engine, ae = I.os, we = I.ua, Re = Oe(j.type), fi = Re.isBrowser, ia = Re.isMobile, ra = Re.isTablet, qr = Re.isSmartTV, en = Re.isConsole, tn = Re.isWearable, rn = Re.isEmbedded;
4467
+ var I = z ? a(z) : d, j = I.device, w = I.browser, C = I.engine, ue = I.os, we = I.ua, Re = me(j.type), fi = Re.isBrowser, ia = Re.isMobile, ra = Re.isTablet, qr = Re.isSmartTV, en = Re.isConsole, tn = Re.isWearable, rn = Re.isEmbedded;
4446
4468
  if (fi)
4447
- return Xe(fi, w, C, ae, we);
4469
+ return Xe(fi, w, C, ue, we);
4448
4470
  if (qr)
4449
- return Ve(qr, C, ae, we);
4471
+ return Ve(qr, C, ue, we);
4450
4472
  if (en)
4451
- return dt(en, C, ae, we);
4473
+ return dt(en, C, ue, we);
4452
4474
  if (ia || ra)
4453
- return Ot(Re, j, ae, we);
4475
+ return Ot(Re, j, ue, we);
4454
4476
  if (tn)
4455
- return ot(tn, C, ae, we);
4477
+ return ot(tn, C, ue, we);
4456
4478
  if (rn)
4457
- return Nt(rn, j, C, ae, we);
4479
+ return Nt(rn, j, C, ue, we);
4458
4480
  }
4459
4481
  var It = function(I) {
4460
4482
  var j = I.type;
@@ -4482,13 +4504,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4482
4504
  return j === ce.Embedded;
4483
4505
  }, f = function(I) {
4484
4506
  var j = I.vendor;
4485
- return P(j);
4507
+ return F(j);
4486
4508
  }, h = function(I) {
4487
4509
  var j = I.model;
4488
- return P(j);
4510
+ return F(j);
4489
4511
  }, m = function(I) {
4490
4512
  var j = I.type;
4491
- return P(j, "browser");
4513
+ return F(j, "browser");
4492
4514
  }, v = function(I) {
4493
4515
  var j = I.name;
4494
4516
  return j === Me.Android;
@@ -4498,73 +4520,73 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4498
4520
  }, _ = function(I) {
4499
4521
  var j = I.name;
4500
4522
  return j === Me.MAC_OS;
4501
- }, R = function(I) {
4523
+ }, Y = function(I) {
4502
4524
  var j = I.name;
4503
4525
  return j === Me.WindowsPhone;
4504
- }, ee = function(I) {
4526
+ }, te = function(I) {
4505
4527
  var j = I.name;
4506
4528
  return j === Me.IOS;
4507
4529
  }, L = function(I) {
4508
4530
  var j = I.version;
4509
- return P(j);
4510
- }, F = function(I) {
4531
+ return F(j);
4532
+ }, B = function(I) {
4511
4533
  var j = I.name;
4512
- return P(j);
4534
+ return F(j);
4513
4535
  }, Z = function(I) {
4514
4536
  var j = I.name;
4515
- return j === G.Chrome;
4537
+ return j === J.Chrome;
4516
4538
  }, ne = function(I) {
4517
4539
  var j = I.name;
4518
- return j === G.Firefox;
4540
+ return j === J.Firefox;
4519
4541
  }, Se = function(I) {
4520
4542
  var j = I.name;
4521
- return j === G.Chromium;
4543
+ return j === J.Chromium;
4522
4544
  }, ye = function(I) {
4523
4545
  var j = I.name;
4524
- return j === G.Edge;
4525
- }, se = function(I) {
4546
+ return j === J.Edge;
4547
+ }, ae = function(I) {
4526
4548
  var j = I.name;
4527
- return j === G.Yandex;
4528
- }, $ = function(I) {
4549
+ return j === J.Yandex;
4550
+ }, X = function(I) {
4529
4551
  var j = I.name;
4530
- return j === G.Safari || j === G.MobileSafari;
4552
+ return j === J.Safari || j === J.MobileSafari;
4531
4553
  }, Le = function(I) {
4532
4554
  var j = I.name;
4533
- return j === G.MobileSafari;
4555
+ return j === J.MobileSafari;
4534
4556
  }, Dt = function(I) {
4535
4557
  var j = I.name;
4536
- return j === G.Opera;
4558
+ return j === J.Opera;
4537
4559
  }, ft = function(I) {
4538
4560
  var j = I.name;
4539
- return j === G.InternetExplorer || j === G.Ie;
4561
+ return j === J.InternetExplorer || j === J.Ie;
4540
4562
  }, xr = function(I) {
4541
4563
  var j = I.name;
4542
- return j === G.MIUI;
4564
+ return j === J.MIUI;
4543
4565
  }, Cr = function(I) {
4544
4566
  var j = I.name;
4545
- return j === G.SamsungBrowser;
4567
+ return j === J.SamsungBrowser;
4546
4568
  }, br = function(I) {
4547
4569
  var j = I.version;
4548
- return P(j);
4570
+ return F(j);
4549
4571
  }, _r = function(I) {
4550
4572
  var j = I.major;
4551
- return P(j);
4573
+ return F(j);
4552
4574
  }, Sr = function(I) {
4553
4575
  var j = I.name;
4554
- return P(j);
4576
+ return F(j);
4555
4577
  }, vr = function(I) {
4556
4578
  var j = I.name;
4557
- return P(j);
4579
+ return F(j);
4558
4580
  }, Lr = function(I) {
4559
4581
  var j = I.version;
4560
- return P(j);
4582
+ return F(j);
4561
4583
  }, kr = function() {
4562
- var I = oe(), j = I && I.userAgent && I.userAgent.toLowerCase();
4584
+ var I = se(), j = I && I.userAgent && I.userAgent.toLowerCase();
4563
4585
  return typeof j == "string" ? /electron/.test(j) : !1;
4564
4586
  }, kt = function(I) {
4565
4587
  return typeof I == "string" && I.indexOf("Edg/") !== -1;
4566
4588
  }, Ur = function() {
4567
- var I = oe();
4589
+ var I = se();
4568
4590
  return I && (/iPad|iPhone|iPod/.test(I.platform) || I.platform === "MacIntel" && I.maxTouchPoints > 1) && !window.MSStream;
4569
4591
  }, et = function() {
4570
4592
  return nt("iPad");
@@ -4573,10 +4595,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4573
4595
  }, Rr = function() {
4574
4596
  return nt("iPod");
4575
4597
  }, Yr = function(I) {
4576
- return P(I);
4598
+ return F(I);
4577
4599
  };
4578
4600
  function Pr(z) {
4579
- var I = z || d, j = I.device, w = I.browser, C = I.os, ae = I.engine, we = I.ua;
4601
+ var I = z || d, j = I.device, w = I.browser, C = I.os, ue = I.engine, we = I.ua;
4580
4602
  return {
4581
4603
  isSmartTV: Ke(j),
4582
4604
  isConsole: Zt(j),
@@ -4590,25 +4612,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4590
4612
  isBrowser: st(j),
4591
4613
  isDesktop: st(j),
4592
4614
  isAndroid: v(C),
4593
- isWinPhone: R(C),
4594
- isIOS: ee(C) || et(),
4615
+ isWinPhone: Y(C),
4616
+ isIOS: te(C) || et(),
4595
4617
  isChrome: Z(w),
4596
4618
  isFirefox: ne(w),
4597
- isSafari: $(w),
4619
+ isSafari: X(w),
4598
4620
  isOpera: Dt(w),
4599
4621
  isIE: ft(w),
4600
4622
  osVersion: L(C),
4601
- osName: F(C),
4623
+ osName: B(C),
4602
4624
  fullBrowserVersion: br(w),
4603
4625
  browserVersion: _r(w),
4604
4626
  browserName: Sr(w),
4605
4627
  mobileVendor: f(j),
4606
4628
  mobileModel: h(j),
4607
- engineName: vr(ae),
4608
- engineVersion: Lr(ae),
4629
+ engineName: vr(ue),
4630
+ engineVersion: Lr(ue),
4609
4631
  getUA: Yr(we),
4610
4632
  isEdge: ye(w) || kt(we),
4611
- isYandex: se(w),
4633
+ isYandex: ae(w),
4612
4634
  deviceType: m(j),
4613
4635
  isIOS13: Ur(),
4614
4636
  isIPad13: et(),
@@ -4623,66 +4645,66 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4623
4645
  isSamsungBrowser: Cr(w)
4624
4646
  };
4625
4647
  }
4626
- var Fr = Ke(g), Br = Zt(g), Vr = qe(g), us = at(g), ls = Le(n) || et(), cs = Se(n), Di = Et(g) || et(), Wr = It(g), Zr = mt(g) || et(), Hr = st(g), Ms = st(g), Gr = v(u), $r = R(u), Jr = ee(u) || et(), gs = Z(n), ds = ne(n), Ns = $(n), Is = Dt(n), Xr = ft(n), Ds = L(u), fs = F(u), ys = br(n), js = _r(n), As = Sr(n), Ts = f(g), hs = h(g), zs = vr(s), Os = Lr(s), ms = Yr(M), Es = ye(n) || kt(M), ws = se(n), ps = m(g), xs = Ur(), Cs = et(), bs = Qr(), _s = Rr(), Ss = kr(), vs = kt(M), Ls = ye(n) && !kt(M), ks = S(u), Us = _(u), Qs = xr(n), Rs = Cr(n), Ys = function(I) {
4648
+ var Fr = Ke(g), Br = Zt(g), Vr = qe(g), us = at(g), ls = Le(n) || et(), cs = Se(n), Di = Et(g) || et(), Wr = It(g), Zr = mt(g) || et(), Hr = st(g), Ms = st(g), Gr = v(u), $r = Y(u), Jr = te(u) || et(), gs = Z(n), ds = ne(n), Ns = X(n), Is = Dt(n), Xr = ft(n), Ds = L(u), fs = B(u), ys = br(n), js = _r(n), As = Sr(n), Ts = f(g), hs = h(g), zs = vr(s), Os = Lr(s), ms = Yr(M), Es = ye(n) || kt(M), ws = ae(n), ps = m(g), xs = Ur(), Cs = et(), bs = Qr(), _s = Rr(), Ss = kr(), vs = kt(M), Ls = ye(n) && !kt(M), ks = S(u), Us = _(u), Qs = xr(n), Rs = Cr(n), Ys = function(I) {
4627
4649
  if (!I || typeof I != "string") {
4628
4650
  console.error("No valid user agent string was provided");
4629
4651
  return;
4630
4652
  }
4631
- var j = a(I), w = j.device, C = j.browser, ae = j.os, we = j.engine, Re = j.ua;
4653
+ var j = a(I), w = j.device, C = j.browser, ue = j.os, we = j.engine, Re = j.ua;
4632
4654
  return Pr({
4633
4655
  device: w,
4634
4656
  browser: C,
4635
- os: ae,
4657
+ os: ue,
4636
4658
  engine: we,
4637
4659
  ua: Re
4638
4660
  });
4639
4661
  }, Ps = function(I) {
4640
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4662
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4641
4663
  return Gr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4642
4664
  }, Fs = function(I) {
4643
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4665
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4644
4666
  return Hr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4645
4667
  }, Bs = function(I) {
4646
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4668
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4647
4669
  return Xr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4648
4670
  }, Vs = function(I) {
4649
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4671
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4650
4672
  return Jr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4651
4673
  }, Ws = function(I) {
4652
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4674
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4653
4675
  return Di ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4654
4676
  }, Zs = function(I) {
4655
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4677
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4656
4678
  return Zr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4657
4679
  }, Hs = function(I) {
4658
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4680
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4659
4681
  return $r ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4660
4682
  }, Gs = function(I) {
4661
4683
  var j = I.renderWithFragment, w = I.children;
4662
4684
  I.viewClassName, I.style;
4663
- var C = U(I, ["renderWithFragment", "children", "viewClassName", "style"]);
4685
+ var C = k(I, ["renderWithFragment", "children", "viewClassName", "style"]);
4664
4686
  return Wr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4665
4687
  }, $s = function(I) {
4666
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4688
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4667
4689
  return Fr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4668
4690
  }, Js = function(I) {
4669
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4691
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4670
4692
  return Br ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4671
4693
  }, Xs = function(I) {
4672
- var j = I.renderWithFragment, w = I.children, C = U(I, ["renderWithFragment", "children"]);
4694
+ var j = I.renderWithFragment, w = I.children, C = k(I, ["renderWithFragment", "children"]);
4673
4695
  return Vr ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", C, w) : null;
4674
4696
  }, Ks = function(I) {
4675
4697
  var j = I.renderWithFragment, w = I.children;
4676
4698
  I.viewClassName, I.style;
4677
- var C = I.condition, ae = U(I, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
4678
- return C ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", ae, w) : null;
4699
+ var C = I.condition, ue = k(I, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
4700
+ return C ? j ? t.createElement(i.Fragment, null, w) : t.createElement("div", ue, w) : null;
4679
4701
  };
4680
4702
  function qs(z) {
4681
4703
  return /* @__PURE__ */ (function(I) {
4682
- H(j, I);
4704
+ $(j, I);
4683
4705
  function j(w) {
4684
4706
  var C;
4685
- return p(this, j), C = Y(this, ie(j).call(this, w)), C.isEventListenerAdded = !1, C.handleOrientationChange = C.handleOrientationChange.bind(re(C)), C.onOrientationChange = C.onOrientationChange.bind(re(C)), C.onPageLoad = C.onPageLoad.bind(re(C)), C.state = {
4707
+ return p(this, j), C = R(this, re(j).call(this, w)), C.isEventListenerAdded = !1, C.handleOrientationChange = C.handleOrientationChange.bind(ee(C)), C.onOrientationChange = C.onOrientationChange.bind(ee(C)), C.onPageLoad = C.onPageLoad.bind(ee(C)), C.state = {
4686
4708
  isLandscape: !1,
4687
4709
  isPortrait: !1
4688
4710
  }, C;
@@ -4730,17 +4752,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4730
4752
  }
4731
4753
  function ea() {
4732
4754
  var z = i.useState(function() {
4733
- var ae = window.innerWidth > window.innerHeight ? 90 : 0;
4755
+ var ue = window.innerWidth > window.innerHeight ? 90 : 0;
4734
4756
  return {
4735
- isPortrait: ae === 0,
4736
- isLandscape: ae === 90,
4737
- orientation: ae === 0 ? "portrait" : "landscape"
4757
+ isPortrait: ue === 0,
4758
+ isLandscape: ue === 90,
4759
+ orientation: ue === 0 ? "portrait" : "landscape"
4738
4760
  };
4739
- }), I = q(z, 2), j = I[0], w = I[1], C = i.useCallback(function() {
4740
- var ae = window.innerWidth > window.innerHeight ? 90 : 0, we = {
4741
- isPortrait: ae === 0,
4742
- isLandscape: ae === 90,
4743
- orientation: ae === 0 ? "portrait" : "landscape"
4761
+ }), I = K(z, 2), j = I[0], w = I[1], C = i.useCallback(function() {
4762
+ var ue = window.innerWidth > window.innerHeight ? 90 : 0, we = {
4763
+ isPortrait: ue === 0,
4764
+ isLandscape: ue === 90,
4765
+ orientation: ue === 0 ? "portrait" : "landscape"
4744
4766
  };
4745
4767
  j.orientation !== we.orientation && w(we);
4746
4768
  }, [j.orientation]);
@@ -4758,7 +4780,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4758
4780
  var I = z || window.navigator.userAgent, j = Kr(I), w = Pr(j);
4759
4781
  return [w, j];
4760
4782
  }
4761
- return Q.AndroidView = Ps, Q.BrowserTypes = G, Q.BrowserView = Fs, Q.ConsoleView = Js, Q.CustomView = Ks, Q.IEView = Bs, Q.IOSView = Vs, Q.MobileOnlyView = Gs, Q.MobileView = Ws, Q.OsTypes = Me, Q.SmartTVView = $s, Q.TabletView = Zs, Q.WearableView = Xs, Q.WinPhoneView = Hs, Q.browserName = As, Q.browserVersion = js, Q.deviceDetect = Lt, Q.deviceType = ps, Q.engineName = zs, Q.engineVersion = Os, Q.fullBrowserVersion = ys, Q.getSelectorsByUserAgent = Ys, Q.getUA = ms, Q.isAndroid = Gr, Q.isBrowser = Hr, Q.isChrome = gs, Q.isChromium = cs, Q.isConsole = Br, Q.isDesktop = Ms, Q.isEdge = Es, Q.isEdgeChromium = vs, Q.isElectron = Ss, Q.isEmbedded = us, Q.isFirefox = ds, Q.isIE = Xr, Q.isIOS = Jr, Q.isIOS13 = xs, Q.isIPad13 = Cs, Q.isIPhone13 = bs, Q.isIPod13 = _s, Q.isLegacyEdge = Ls, Q.isMIUI = Qs, Q.isMacOs = Us, Q.isMobile = Di, Q.isMobileOnly = Wr, Q.isMobileSafari = ls, Q.isOpera = Is, Q.isSafari = Ns, Q.isSamsungBrowser = Rs, Q.isSmartTV = Fr, Q.isTablet = Zr, Q.isWearable = Vr, Q.isWinPhone = $r, Q.isWindows = ks, Q.isYandex = ws, Q.mobileModel = hs, Q.mobileVendor = Ts, Q.osName = fs, Q.osVersion = Ds, Q.parseUserAgent = a, Q.setUserAgent = _e, Q.useDeviceData = Kr, Q.useDeviceSelectors = ta, Q.useMobileOrientation = ea, Q.withOrientationChange = qs, Q;
4783
+ return Q.AndroidView = Ps, Q.BrowserTypes = J, Q.BrowserView = Fs, Q.ConsoleView = Js, Q.CustomView = Ks, Q.IEView = Bs, Q.IOSView = Vs, Q.MobileOnlyView = Gs, Q.MobileView = Ws, Q.OsTypes = Me, Q.SmartTVView = $s, Q.TabletView = Zs, Q.WearableView = Xs, Q.WinPhoneView = Hs, Q.browserName = As, Q.browserVersion = js, Q.deviceDetect = Lt, Q.deviceType = ps, Q.engineName = zs, Q.engineVersion = Os, Q.fullBrowserVersion = ys, Q.getSelectorsByUserAgent = Ys, Q.getUA = ms, Q.isAndroid = Gr, Q.isBrowser = Hr, Q.isChrome = gs, Q.isChromium = cs, Q.isConsole = Br, Q.isDesktop = Ms, Q.isEdge = Es, Q.isEdgeChromium = vs, Q.isElectron = Ss, Q.isEmbedded = us, Q.isFirefox = ds, Q.isIE = Xr, Q.isIOS = Jr, Q.isIOS13 = xs, Q.isIPad13 = Cs, Q.isIPhone13 = bs, Q.isIPod13 = _s, Q.isLegacyEdge = Ls, Q.isMIUI = Qs, Q.isMacOs = Us, Q.isMobile = Di, Q.isMobileOnly = Wr, Q.isMobileSafari = ls, Q.isOpera = Is, Q.isSafari = Ns, Q.isSamsungBrowser = Rs, Q.isSmartTV = Fr, Q.isTablet = Zr, Q.isWearable = Vr, Q.isWinPhone = $r, Q.isWindows = ks, Q.isYandex = ws, Q.mobileModel = hs, Q.mobileVendor = Ts, Q.osName = fs, Q.osVersion = Ds, Q.parseUserAgent = a, Q.setUserAgent = _e, Q.useDeviceData = Kr, Q.useDeviceSelectors = ta, Q.useMobileOrientation = ea, Q.withOrientationChange = qs, Q;
4762
4784
  }
4763
4785
  var wt = qu();
4764
4786
  const el = {
@@ -4994,14 +5016,14 @@ const el = {
4994
5016
  askEveryTime: s,
4995
5017
  getLocationTimeout: u
4996
5018
  }) => {
4997
- var V, K;
4998
- const M = li.FORM, { perform: l } = Mt(), { setIsProcessingCallback: a } = Oa(), [d, N] = me(!1), y = () => {
4999
- var U;
5000
- (U = p == null ? void 0 : p.popups) != null && U.system_restricted || N(!0);
5019
+ var P, H;
5020
+ const M = li.FORM, { perform: l } = Mt(), { setIsProcessingCallback: a } = Oa(), [d, N] = Oe(!1), y = () => {
5021
+ var k;
5022
+ (k = p == null ? void 0 : p.popups) != null && k.system_restricted || N(!0);
5001
5023
  }, A = () => {
5002
- var U;
5003
- (U = p == null ? void 0 : p.popups) != null && U.system_restricted || N(!1);
5004
- }, { devSettings: p } = za(), x = !!((K = (V = p == null ? void 0 : p.popups) == null ? void 0 : V.system_restricted) != null && K.isOpen);
5024
+ var k;
5025
+ (k = p == null ? void 0 : p.popups) != null && k.system_restricted || N(!1);
5026
+ }, { devSettings: p } = za(), x = !!((H = (P = p == null ? void 0 : p.popups) == null ? void 0 : P.system_restricted) != null && H.isOpen);
5005
5027
  Be(() => {
5006
5028
  p && N(x);
5007
5029
  }, [x, p]);
@@ -5009,29 +5031,29 @@ const el = {
5009
5031
  enableHighAccuracy: !0,
5010
5032
  timeout: typeof u == "number" && u > 0 ? u * 1e3 : 15e3,
5011
5033
  maximumAge: 6e4
5012
- }, O = g == null ? void 0 : g.find((U) => U.reason === ba.SYSTEM_RESTRICTED);
5034
+ }, O = g == null ? void 0 : g.find((k) => k.reason === ba.SYSTEM_RESTRICTED);
5013
5035
  ht(() => {
5014
5036
  wt.isSafari || s || a == null || a(!0);
5015
5037
  }, []), Be(() => {
5016
5038
  if (wt.isSafari || s) return;
5017
- let U = !0;
5039
+ let k = !0;
5018
5040
  return De(null, null, function* () {
5019
5041
  if ((yield Bi()) !== "granted") {
5020
5042
  a == null || a(!1);
5021
5043
  return;
5022
5044
  }
5023
- const Y = yield Gt(E);
5024
- U && l(Y, M);
5045
+ const R = yield Gt(E);
5046
+ k && l(R, M);
5025
5047
  }), () => {
5026
- wt.isSafari || s || (U = !1);
5048
+ wt.isSafari || s || (k = !1);
5027
5049
  };
5028
5050
  }, []), Be(() => {
5029
5051
  if (wt.isSafari) return;
5030
- let U = !0, re = null;
5052
+ let k = !0, ee = null;
5031
5053
  return De(null, null, function* () {
5032
- const Y = yield nl();
5033
- Y && (re = Y, Y.onchange = () => De(null, null, function* () {
5034
- if (Y.state === "denied" && (a == null || a(!0), l(
5054
+ const R = yield nl();
5055
+ R && (ee = R, R.onchange = () => De(null, null, function* () {
5056
+ if (R.state === "denied" && (a == null || a(!0), l(
5035
5057
  {
5036
5058
  location: {
5037
5059
  locationState: "application_location_restricted",
@@ -5041,38 +5063,38 @@ const el = {
5041
5063
  }
5042
5064
  },
5043
5065
  M
5044
- )), Y.state === "granted") {
5066
+ )), R.state === "granted") {
5045
5067
  a == null || a(!0);
5046
- const q = yield Gt(E);
5047
- if (!U) return;
5048
- l(q, M);
5068
+ const K = yield Gt(E);
5069
+ if (!k) return;
5070
+ l(K, M);
5049
5071
  }
5050
5072
  }));
5051
5073
  }), () => {
5052
- wt.isSafari || (U = !1, re && (re.onchange = null));
5074
+ wt.isSafari || (k = !1, ee && (ee.onchange = null));
5053
5075
  };
5054
5076
  }, []);
5055
- const b = (U) => De(null, null, function* () {
5056
- U.preventDefault();
5057
- const re = yield Bi();
5058
- if (re === "denied") {
5077
+ const b = (k) => De(null, null, function* () {
5078
+ k.preventDefault();
5079
+ const ee = yield Bi();
5080
+ if (ee === "denied") {
5059
5081
  y();
5060
5082
  return;
5061
5083
  }
5062
- if (re === "prompt" && (yield Gt()), re === "granted") {
5063
- const Y = yield Gt(E);
5064
- l(Y, M);
5084
+ if (ee === "prompt" && (yield Gt()), ee === "granted") {
5085
+ const R = yield Gt(E);
5086
+ l(R, M);
5065
5087
  }
5066
- }), H = (U) => De(null, null, function* () {
5067
- if (U.preventDefault(), (yield Bi()) === "denied") {
5088
+ }), $ = (k) => De(null, null, function* () {
5089
+ if (k.preventDefault(), (yield Bi()) === "denied") {
5068
5090
  y();
5069
5091
  return;
5070
5092
  }
5071
5093
  a == null || a(!0);
5072
- const Y = yield Gt(E);
5073
- l(Y, M);
5074
- }), ie = (U) => {
5075
- U.preventDefault(), A();
5094
+ const R = yield Gt(E);
5095
+ l(R, M);
5096
+ }), re = (k) => {
5097
+ k.preventDefault(), A();
5076
5098
  };
5077
5099
  return /* @__PURE__ */ D(gt, { header: i, footer: t, backgroundColor: c, children: [
5078
5100
  /* @__PURE__ */ D("div", { style: ol, children: [
@@ -5088,14 +5110,14 @@ const el = {
5088
5110
  display: "flex",
5089
5111
  flexDirection: "column"
5090
5112
  },
5091
- children: n.map((U, re) => /* @__PURE__ */ D("div", { style: { padding: "5px" }, children: /* @__PURE__ */ D(
5113
+ children: n.map((k, ee) => /* @__PURE__ */ D("div", { style: { padding: "5px" }, children: /* @__PURE__ */ D(
5092
5114
  si,
5093
5115
  T(T({
5094
5116
  dataTestId: "question-button"
5095
- }, U), U.type === "FORM" ? {
5096
- onClick: wt.isSafari ? H : b
5117
+ }, k), k.type === "FORM" ? {
5118
+ onClick: wt.isSafari ? $ : b
5097
5119
  } : {})
5098
- ) }, re))
5120
+ ) }, ee))
5099
5121
  }
5100
5122
  )
5101
5123
  ] }),
@@ -5103,8 +5125,8 @@ const el = {
5103
5125
  "div",
5104
5126
  {
5105
5127
  style: al,
5106
- onPointerDown: (U) => {
5107
- U.preventDefault(), U.stopPropagation(), A();
5128
+ onPointerDown: (k) => {
5129
+ k.preventDefault(), k.stopPropagation(), A();
5108
5130
  },
5109
5131
  children: /* @__PURE__ */ D(
5110
5132
  "div",
@@ -5120,7 +5142,7 @@ const el = {
5120
5142
  si,
5121
5143
  T(T({
5122
5144
  dataTestId: "question-button"
5123
- }, O.actionButton1), O.actionButton1.type === "FORM" ? { onClick: ie } : {})
5145
+ }, O.actionButton1), O.actionButton1.type === "FORM" ? { onClick: re } : {})
5124
5146
  ) })
5125
5147
  ]
5126
5148
  }
@@ -5160,7 +5182,7 @@ const el = {
5160
5182
  alignItems: i && ki[i] || yl,
5161
5183
  justifyContent: t && g[t] || s,
5162
5184
  // own styles
5163
- backgroundColor: X(r) || "transparent",
5185
+ backgroundColor: q(r) || "transparent",
5164
5186
  borderRadius: o
5165
5187
  }, Mi(n)),
5166
5188
  children: e == null ? void 0 : e.map((u) => {
@@ -5190,12 +5212,12 @@ const el = {
5190
5212
  style: {
5191
5213
  width: "100%",
5192
5214
  height: "100%",
5193
- backgroundColor: X(e) || "transparent",
5215
+ backgroundColor: q(e) || "transparent",
5194
5216
  borderRadius: i
5195
5217
  }
5196
5218
  }
5197
5219
  ), hl = (e) => {
5198
- const { image: i, responseBody: t, paddings: r } = e, { failedAssets: o } = ro(), n = so(i, o), [c, g] = me(0), s = n[c];
5220
+ const { image: i, responseBody: t, paddings: r } = e, { failedAssets: o } = ro(), n = so(i, o), [c, g] = Oe(0), s = n[c];
5199
5221
  if (!s) return null;
5200
5222
  const {
5201
5223
  imageId: u,
@@ -5204,45 +5226,45 @@ const el = {
5204
5226
  contentMode: a = Pt.ASPECT_FILL,
5205
5227
  cornerRadius: d,
5206
5228
  backgroundColor: N
5207
- } = s, { perform: y } = Mt(), [A, p] = me(!0), x = A && M, E = () => {
5229
+ } = s, { perform: y } = Mt(), [A, p] = Oe(!0), x = A && M, E = () => {
5208
5230
  p(!1);
5209
5231
  }, O = () => {
5210
- g((V) => V + 1);
5232
+ g((P) => P + 1);
5211
5233
  }, b = () => {
5212
- const V = JSON.parse(JSON.stringify(t));
5213
- vi(V), y(V, li.DATA);
5214
- }, H = { width: "100%", height: "100%" };
5215
- let ie;
5216
- if (l && (ie = /* @__PURE__ */ D(
5234
+ const P = JSON.parse(JSON.stringify(t));
5235
+ vi(P), y(P, li.DATA);
5236
+ }, $ = { width: "100%", height: "100%" };
5237
+ let re;
5238
+ if (l && (re = /* @__PURE__ */ D(
5217
5239
  "img",
5218
5240
  {
5219
- style: W(T({}, H), {
5241
+ style: W(T({}, $), {
5220
5242
  objectFit: ni(a),
5221
5243
  borderRadius: d,
5222
- backgroundColor: X(N) || "transparent",
5244
+ backgroundColor: q(N) || "transparent",
5223
5245
  display: "block"
5224
5246
  }),
5225
5247
  src: l,
5226
5248
  onError: O
5227
5249
  }
5228
5250
  )), u) {
5229
- const V = u in oi ? u : "default";
5230
- ie = /* @__PURE__ */ D(
5251
+ const P = u in oi ? u : "default";
5252
+ re = /* @__PURE__ */ D(
5231
5253
  Ir,
5232
5254
  {
5233
- type: V,
5255
+ type: P,
5234
5256
  contentMode: a,
5235
5257
  cornerRadius: d,
5236
- backgroundColor: X(N) || "transparent",
5258
+ backgroundColor: q(N) || "transparent",
5237
5259
  isFullSize: !0
5238
5260
  }
5239
5261
  );
5240
5262
  }
5241
- return M && (ie = /* @__PURE__ */ D(be, { children: [
5263
+ return M && (re = /* @__PURE__ */ D(be, { children: [
5242
5264
  x && /* @__PURE__ */ D(
5243
5265
  "div",
5244
5266
  {
5245
- style: W(T({}, H), {
5267
+ style: W(T({}, $), {
5246
5268
  backgroundColor: "#e0e0e0",
5247
5269
  borderRadius: d
5248
5270
  })
@@ -5251,10 +5273,10 @@ const el = {
5251
5273
  /* @__PURE__ */ D(
5252
5274
  "img",
5253
5275
  {
5254
- style: W(T({}, H), {
5276
+ style: W(T({}, $), {
5255
5277
  objectFit: ni(a),
5256
5278
  borderRadius: d,
5257
- backgroundColor: X(N) || "transparent",
5279
+ backgroundColor: q(N) || "transparent",
5258
5280
  display: x ? "none" : "block"
5259
5281
  }),
5260
5282
  src: M,
@@ -5278,7 +5300,7 @@ const el = {
5278
5300
  cursor: "pointer"
5279
5301
  }, Mi(r)),
5280
5302
  onClick: b,
5281
- children: ie
5303
+ children: re
5282
5304
  }
5283
5305
  );
5284
5306
  }, zl = {
@@ -5394,7 +5416,7 @@ const Oi = ({
5394
5416
  flexDirection: "column",
5395
5417
  alignItems: i && c[i] || g,
5396
5418
  // own styles
5397
- backgroundColor: X(t) || "transparent",
5419
+ backgroundColor: q(t) || "transparent",
5398
5420
  borderRadius: r
5399
5421
  }, Mi(o)),
5400
5422
  children: e == null ? void 0 : e.map((s) => {
@@ -5428,7 +5450,7 @@ const Oi = ({
5428
5450
  display: "flex",
5429
5451
  flexDirection: "column",
5430
5452
  height: "100%",
5431
- backgroundColor: X(r) || "transparent"
5453
+ backgroundColor: q(r) || "transparent"
5432
5454
  },
5433
5455
  children: [
5434
5456
  e && /* @__PURE__ */ D(
@@ -5452,7 +5474,7 @@ const Oi = ({
5452
5474
  minHeight: 0,
5453
5475
  overflowY: "auto",
5454
5476
  overflowX: "hidden",
5455
- backgroundColor: X(i.backgroundColor) || "transparent"
5477
+ backgroundColor: q(i.backgroundColor) || "transparent"
5456
5478
  },
5457
5479
  children: /* @__PURE__ */ D(
5458
5480
  "div",
@@ -5522,14 +5544,14 @@ var El = Object.defineProperty, _i = Object.getOwnPropertySymbols, Jo = Object.p
5522
5544
  };
5523
5545
  var St;
5524
5546
  ((e) => {
5525
- const i = class ue {
5547
+ const i = class le {
5526
5548
  /*-- Constructor (low level) and fields --*/
5527
5549
  // Creates a new QR Code with the given version number,
5528
5550
  // error correction level, data codeword bytes, and mask number.
5529
5551
  // This is a low-level API that most users should not use directly.
5530
5552
  // A mid-level API is the encodeSegments() function.
5531
5553
  constructor(s, u, M, l) {
5532
- if (this.version = s, this.errorCorrectionLevel = u, this.modules = [], this.isFunction = [], s < ue.MIN_VERSION || s > ue.MAX_VERSION)
5554
+ if (this.version = s, this.errorCorrectionLevel = u, this.modules = [], this.isFunction = [], s < le.MIN_VERSION || s > le.MAX_VERSION)
5533
5555
  throw new RangeError("Version value out of range");
5534
5556
  if (l < -1 || l > 7)
5535
5557
  throw new RangeError("Mask value out of range");
@@ -5559,7 +5581,7 @@ var St;
5559
5581
  // ecl argument if it can be done without increasing the version.
5560
5582
  static encodeText(s, u) {
5561
5583
  const M = e.QrSegment.makeSegments(s);
5562
- return ue.encodeSegments(M, u);
5584
+ return le.encodeSegments(M, u);
5563
5585
  }
5564
5586
  // Returns a QR Code representing the given binary data at the given error correction level.
5565
5587
  // This function always encodes using the binary segment mode, not any text mode. The maximum number of
@@ -5567,7 +5589,7 @@ var St;
5567
5589
  // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
5568
5590
  static encodeBinary(s, u) {
5569
5591
  const M = e.QrSegment.makeBytes(s);
5570
- return ue.encodeSegments([M], u);
5592
+ return le.encodeSegments([M], u);
5571
5593
  }
5572
5594
  /*-- Static factory functions (mid level) --*/
5573
5595
  // Returns a QR Code representing the given segments with the given encoding parameters.
@@ -5580,11 +5602,11 @@ var St;
5580
5602
  // between modes (such as alphanumeric and byte) to encode text in less space.
5581
5603
  // This is a mid-level API; the high-level API is encodeText() and encodeBinary().
5582
5604
  static encodeSegments(s, u, M = 1, l = 40, a = -1, d = !0) {
5583
- if (!(ue.MIN_VERSION <= M && M <= l && l <= ue.MAX_VERSION) || a < -1 || a > 7)
5605
+ if (!(le.MIN_VERSION <= M && M <= l && l <= le.MAX_VERSION) || a < -1 || a > 7)
5584
5606
  throw new RangeError("Invalid value");
5585
5607
  let N, y;
5586
5608
  for (N = M; ; N++) {
5587
- const E = ue.getNumDataCodewords(N, u) * 8, O = c.getTotalBits(s, N);
5609
+ const E = le.getNumDataCodewords(N, u) * 8, O = c.getTotalBits(s, N);
5588
5610
  if (O <= E) {
5589
5611
  y = O;
5590
5612
  break;
@@ -5592,8 +5614,8 @@ var St;
5592
5614
  if (N >= l)
5593
5615
  throw new RangeError("Data too long");
5594
5616
  }
5595
- for (const E of [ue.Ecc.MEDIUM, ue.Ecc.QUARTILE, ue.Ecc.HIGH])
5596
- d && y <= ue.getNumDataCodewords(N, E) * 8 && (u = E);
5617
+ for (const E of [le.Ecc.MEDIUM, le.Ecc.QUARTILE, le.Ecc.HIGH])
5618
+ d && y <= le.getNumDataCodewords(N, E) * 8 && (u = E);
5597
5619
  let A = [];
5598
5620
  for (const E of s) {
5599
5621
  t(E.mode.modeBits, 4, A), t(E.numChars, E.mode.numCharCountBits(N), A);
@@ -5601,14 +5623,14 @@ var St;
5601
5623
  A.push(O);
5602
5624
  }
5603
5625
  o(A.length == y);
5604
- const p = ue.getNumDataCodewords(N, u) * 8;
5626
+ const p = le.getNumDataCodewords(N, u) * 8;
5605
5627
  o(A.length <= p), t(0, Math.min(4, p - A.length), A), t(0, (8 - A.length % 8) % 8, A), o(A.length % 8 == 0);
5606
5628
  for (let E = 236; A.length < p; E ^= 253)
5607
5629
  t(E, 8, A);
5608
5630
  let x = [];
5609
5631
  for (; x.length * 8 < A.length; )
5610
5632
  x.push(0);
5611
- return A.forEach((E, O) => x[O >>> 3] |= E << 7 - (O & 7)), new ue(N, u, x, a);
5633
+ return A.forEach((E, O) => x[O >>> 3] |= E << 7 - (O & 7)), new le(N, u, x, a);
5612
5634
  }
5613
5635
  /*-- Accessor methods --*/
5614
5636
  // Returns the color of the module (pixel) at the given coordinates, which is false
@@ -5694,16 +5716,16 @@ var St;
5694
5716
  // codewords appended to it, based on this object's version and error correction level.
5695
5717
  addEccAndInterleave(s) {
5696
5718
  const u = this.version, M = this.errorCorrectionLevel;
5697
- if (s.length != ue.getNumDataCodewords(u, M))
5719
+ if (s.length != le.getNumDataCodewords(u, M))
5698
5720
  throw new RangeError("Invalid argument");
5699
- const l = ue.NUM_ERROR_CORRECTION_BLOCKS[M.ordinal][u], a = ue.ECC_CODEWORDS_PER_BLOCK[M.ordinal][u], d = Math.floor(ue.getNumRawDataModules(u) / 8), N = l - d % l, y = Math.floor(d / l);
5721
+ const l = le.NUM_ERROR_CORRECTION_BLOCKS[M.ordinal][u], a = le.ECC_CODEWORDS_PER_BLOCK[M.ordinal][u], d = Math.floor(le.getNumRawDataModules(u) / 8), N = l - d % l, y = Math.floor(d / l);
5700
5722
  let A = [];
5701
- const p = ue.reedSolomonComputeDivisor(a);
5723
+ const p = le.reedSolomonComputeDivisor(a);
5702
5724
  for (let E = 0, O = 0; E < l; E++) {
5703
5725
  let b = s.slice(O, O + y - a + (E < N ? 0 : 1));
5704
5726
  O += b.length;
5705
- const H = ue.reedSolomonComputeRemainder(b, p);
5706
- E < N && b.push(0), A.push(b.concat(H));
5727
+ const $ = le.reedSolomonComputeRemainder(b, p);
5728
+ E < N && b.push(0), A.push(b.concat($));
5707
5729
  }
5708
5730
  let x = [];
5709
5731
  for (let E = 0; E < A[0].length; E++)
@@ -5715,7 +5737,7 @@ var St;
5715
5737
  // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
5716
5738
  // data area of this QR Code. Function modules need to be marked off before this is called.
5717
5739
  drawCodewords(s) {
5718
- if (s.length != Math.floor(ue.getNumRawDataModules(this.version) / 8))
5740
+ if (s.length != Math.floor(le.getNumRawDataModules(this.version) / 8))
5719
5741
  throw new RangeError("Invalid argument");
5720
5742
  let u = 0;
5721
5743
  for (let M = this.size - 1; M >= 1; M -= 2) {
@@ -5777,25 +5799,25 @@ var St;
5777
5799
  for (let a = 0; a < this.size; a++) {
5778
5800
  let d = !1, N = 0, y = [0, 0, 0, 0, 0, 0, 0];
5779
5801
  for (let A = 0; A < this.size; A++)
5780
- this.modules[a][A] == d ? (N++, N == 5 ? s += ue.PENALTY_N1 : N > 5 && s++) : (this.finderPenaltyAddHistory(N, y), d || (s += this.finderPenaltyCountPatterns(y) * ue.PENALTY_N3), d = this.modules[a][A], N = 1);
5781
- s += this.finderPenaltyTerminateAndCount(d, N, y) * ue.PENALTY_N3;
5802
+ this.modules[a][A] == d ? (N++, N == 5 ? s += le.PENALTY_N1 : N > 5 && s++) : (this.finderPenaltyAddHistory(N, y), d || (s += this.finderPenaltyCountPatterns(y) * le.PENALTY_N3), d = this.modules[a][A], N = 1);
5803
+ s += this.finderPenaltyTerminateAndCount(d, N, y) * le.PENALTY_N3;
5782
5804
  }
5783
5805
  for (let a = 0; a < this.size; a++) {
5784
5806
  let d = !1, N = 0, y = [0, 0, 0, 0, 0, 0, 0];
5785
5807
  for (let A = 0; A < this.size; A++)
5786
- this.modules[A][a] == d ? (N++, N == 5 ? s += ue.PENALTY_N1 : N > 5 && s++) : (this.finderPenaltyAddHistory(N, y), d || (s += this.finderPenaltyCountPatterns(y) * ue.PENALTY_N3), d = this.modules[A][a], N = 1);
5787
- s += this.finderPenaltyTerminateAndCount(d, N, y) * ue.PENALTY_N3;
5808
+ this.modules[A][a] == d ? (N++, N == 5 ? s += le.PENALTY_N1 : N > 5 && s++) : (this.finderPenaltyAddHistory(N, y), d || (s += this.finderPenaltyCountPatterns(y) * le.PENALTY_N3), d = this.modules[A][a], N = 1);
5809
+ s += this.finderPenaltyTerminateAndCount(d, N, y) * le.PENALTY_N3;
5788
5810
  }
5789
5811
  for (let a = 0; a < this.size - 1; a++)
5790
5812
  for (let d = 0; d < this.size - 1; d++) {
5791
5813
  const N = this.modules[a][d];
5792
- N == this.modules[a][d + 1] && N == this.modules[a + 1][d] && N == this.modules[a + 1][d + 1] && (s += ue.PENALTY_N2);
5814
+ N == this.modules[a][d + 1] && N == this.modules[a + 1][d] && N == this.modules[a + 1][d + 1] && (s += le.PENALTY_N2);
5793
5815
  }
5794
5816
  let u = 0;
5795
5817
  for (const a of this.modules)
5796
5818
  u = a.reduce((d, N) => d + (N ? 1 : 0), u);
5797
5819
  const M = this.size * this.size, l = Math.ceil(Math.abs(u * 20 - M * 10) / M) - 1;
5798
- return o(0 <= l && l <= 9), s += l * ue.PENALTY_N4, o(0 <= s && s <= 2568888), s;
5820
+ return o(0 <= l && l <= 9), s += l * le.PENALTY_N4, o(0 <= s && s <= 2568888), s;
5799
5821
  }
5800
5822
  /*-- Private helper functions --*/
5801
5823
  // Returns an ascending list of positions of alignment patterns for this version number.
@@ -5816,7 +5838,7 @@ var St;
5816
5838
  // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
5817
5839
  // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
5818
5840
  static getNumRawDataModules(s) {
5819
- if (s < ue.MIN_VERSION || s > ue.MAX_VERSION)
5841
+ if (s < le.MIN_VERSION || s > le.MAX_VERSION)
5820
5842
  throw new RangeError("Version number out of range");
5821
5843
  let u = (16 * s + 128) * s + 64;
5822
5844
  if (s >= 2) {
@@ -5829,7 +5851,7 @@ var St;
5829
5851
  // QR Code of the given version number and error correction level, with remainder bits discarded.
5830
5852
  // This stateless pure function could be implemented as a (40*4)-cell lookup table.
5831
5853
  static getNumDataCodewords(s, u) {
5832
- return Math.floor(ue.getNumRawDataModules(s) / 8) - ue.ECC_CODEWORDS_PER_BLOCK[u.ordinal][s] * ue.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][s];
5854
+ return Math.floor(le.getNumRawDataModules(s) / 8) - le.ECC_CODEWORDS_PER_BLOCK[u.ordinal][s] * le.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][s];
5833
5855
  }
5834
5856
  // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
5835
5857
  // implemented as a lookup table over all possible parameter values, instead of as an algorithm.
@@ -5843,8 +5865,8 @@ var St;
5843
5865
  let M = 1;
5844
5866
  for (let l = 0; l < s; l++) {
5845
5867
  for (let a = 0; a < u.length; a++)
5846
- u[a] = ue.reedSolomonMultiply(u[a], M), a + 1 < u.length && (u[a] ^= u[a + 1]);
5847
- M = ue.reedSolomonMultiply(M, 2);
5868
+ u[a] = le.reedSolomonMultiply(u[a], M), a + 1 < u.length && (u[a] ^= u[a + 1]);
5869
+ M = le.reedSolomonMultiply(M, 2);
5848
5870
  }
5849
5871
  return u;
5850
5872
  }
@@ -5853,7 +5875,7 @@ var St;
5853
5875
  let M = u.map((l) => 0);
5854
5876
  for (const l of s) {
5855
5877
  const a = l ^ M.shift();
5856
- M.push(0), u.forEach((d, N) => M[N] ^= ue.reedSolomonMultiply(d, a));
5878
+ M.push(0), u.forEach((d, N) => M[N] ^= le.reedSolomonMultiply(d, a));
5857
5879
  }
5858
5880
  return M;
5859
5881
  }
@@ -6113,7 +6135,7 @@ function ss({
6113
6135
  size: c,
6114
6136
  boostLevel: g
6115
6137
  }) {
6116
- let s = B.useMemo(() => {
6138
+ let s = V.useMemo(() => {
6117
6139
  const N = (Array.isArray(e) ? e : [e]).reduce((y, A) => (y.push(...Yt.QrSegment.makeSegments(A)), y), []);
6118
6140
  return Yt.QrCode.encodeSegments(
6119
6141
  N,
@@ -6124,7 +6146,7 @@ function ss({
6124
6146
  g
6125
6147
  );
6126
6148
  }, [e, i, t, g]);
6127
- const { cells: u, margin: M, numCells: l, calculatedImageSettings: a } = B.useMemo(() => {
6149
+ const { cells: u, margin: M, numCells: l, calculatedImageSettings: a } = V.useMemo(() => {
6128
6150
  let d = s.getModules();
6129
6151
  const N = _l(r, o), y = d.length + N * 2, A = bl(
6130
6152
  d,
@@ -6154,7 +6176,7 @@ var Sl = (function() {
6154
6176
  return !1;
6155
6177
  }
6156
6178
  return !0;
6157
- })(), vl = B.forwardRef(
6179
+ })(), vl = V.forwardRef(
6158
6180
  function(i, t) {
6159
6181
  const r = i, {
6160
6182
  value: o,
@@ -6178,12 +6200,12 @@ var Sl = (function() {
6178
6200
  "boostLevel",
6179
6201
  "marginSize",
6180
6202
  "imageSettings"
6181
- ]), { style: A } = y, p = rr(y, ["style"]), x = d == null ? void 0 : d.src, E = B.useRef(null), O = B.useRef(null), b = B.useCallback(
6182
- (J) => {
6183
- E.current = J, typeof t == "function" ? t(J) : t && (t.current = J);
6203
+ ]), { style: A } = y, p = rr(y, ["style"]), x = d == null ? void 0 : d.src, E = V.useRef(null), O = V.useRef(null), b = V.useCallback(
6204
+ (G) => {
6205
+ E.current = G, typeof t == "function" ? t(G) : t && (t.current = G);
6184
6206
  },
6185
6207
  [t]
6186
- ), [H, ie] = B.useState(!1), { margin: V, cells: K, numCells: U, calculatedImageSettings: re } = ss({
6208
+ ), [$, re] = V.useState(!1), { margin: P, cells: H, numCells: k, calculatedImageSettings: ee } = ss({
6187
6209
  value: o,
6188
6210
  level: c,
6189
6211
  minVersion: M,
@@ -6193,63 +6215,63 @@ var Sl = (function() {
6193
6215
  imageSettings: d,
6194
6216
  size: n
6195
6217
  });
6196
- B.useEffect(() => {
6218
+ V.useEffect(() => {
6197
6219
  if (E.current != null) {
6198
- const J = E.current, le = J.getContext("2d");
6199
- if (!le)
6220
+ const G = E.current, oe = G.getContext("2d");
6221
+ if (!oe)
6200
6222
  return;
6201
- let fe = K;
6202
- const de = O.current, ve = re != null && de !== null && de.complete && de.naturalHeight !== 0 && de.naturalWidth !== 0;
6203
- ve && re.excavation != null && (fe = os(
6204
- K,
6205
- re.excavation
6223
+ let fe = H;
6224
+ const de = O.current, ve = ee != null && de !== null && de.complete && de.naturalHeight !== 0 && de.naturalWidth !== 0;
6225
+ ve && ee.excavation != null && (fe = os(
6226
+ H,
6227
+ ee.excavation
6206
6228
  ));
6207
6229
  const ce = window.devicePixelRatio || 1;
6208
- J.height = J.width = n * ce;
6209
- const G = n / U * ce;
6210
- le.scale(G, G), le.fillStyle = g, le.fillRect(0, 0, U, U), le.fillStyle = s, Sl ? le.fill(new Path2D(ns(fe, V))) : K.forEach(function(Me, je) {
6211
- Me.forEach(function(Oe, _e) {
6212
- Oe && le.fillRect(_e + V, je + V, 1, 1);
6230
+ G.height = G.width = n * ce;
6231
+ const J = n / k * ce;
6232
+ oe.scale(J, J), oe.fillStyle = g, oe.fillRect(0, 0, k, k), oe.fillStyle = s, Sl ? oe.fill(new Path2D(ns(fe, P))) : H.forEach(function(Me, je) {
6233
+ Me.forEach(function(me, _e) {
6234
+ me && oe.fillRect(_e + P, je + P, 1, 1);
6213
6235
  });
6214
- }), re && (le.globalAlpha = re.opacity), ve && le.drawImage(
6236
+ }), ee && (oe.globalAlpha = ee.opacity), ve && oe.drawImage(
6215
6237
  de,
6216
- re.x + V,
6217
- re.y + V,
6218
- re.w,
6219
- re.h
6238
+ ee.x + P,
6239
+ ee.y + P,
6240
+ ee.w,
6241
+ ee.h
6220
6242
  );
6221
6243
  }
6222
- }), B.useEffect(() => {
6223
- ie(!1);
6244
+ }), V.useEffect(() => {
6245
+ re(!1);
6224
6246
  }, [x]);
6225
- const Y = ir({ height: n, width: n }, A);
6226
- let q = null;
6227
- return x != null && (q = /* @__PURE__ */ B.createElement(
6247
+ const R = ir({ height: n, width: n }, A);
6248
+ let K = null;
6249
+ return x != null && (K = /* @__PURE__ */ V.createElement(
6228
6250
  "img",
6229
6251
  {
6230
6252
  src: x,
6231
6253
  key: x,
6232
6254
  style: { display: "none" },
6233
6255
  onLoad: () => {
6234
- ie(!0);
6256
+ re(!0);
6235
6257
  },
6236
6258
  ref: O,
6237
- crossOrigin: re == null ? void 0 : re.crossOrigin
6259
+ crossOrigin: ee == null ? void 0 : ee.crossOrigin
6238
6260
  }
6239
- )), /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(
6261
+ )), /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(
6240
6262
  "canvas",
6241
6263
  ir({
6242
- style: Y,
6264
+ style: R,
6243
6265
  height: n,
6244
6266
  width: n,
6245
6267
  ref: b,
6246
6268
  role: "img"
6247
6269
  }, p)
6248
- ), q);
6270
+ ), K);
6249
6271
  }
6250
6272
  );
6251
6273
  vl.displayName = "QRCodeCanvas";
6252
- var as = B.forwardRef(
6274
+ var as = V.forwardRef(
6253
6275
  function(i, t) {
6254
6276
  const r = i, {
6255
6277
  value: o,
@@ -6289,7 +6311,7 @@ var as = B.forwardRef(
6289
6311
  N != null && E != null && (E.excavation != null && (O = os(
6290
6312
  p,
6291
6313
  E.excavation
6292
- )), b = /* @__PURE__ */ B.createElement(
6314
+ )), b = /* @__PURE__ */ V.createElement(
6293
6315
  "image",
6294
6316
  {
6295
6317
  href: N.src,
@@ -6302,8 +6324,8 @@ var as = B.forwardRef(
6302
6324
  crossOrigin: E.crossOrigin
6303
6325
  }
6304
6326
  ));
6305
- const H = ns(O, A);
6306
- return /* @__PURE__ */ B.createElement(
6327
+ const $ = ns(O, A);
6328
+ return /* @__PURE__ */ V.createElement(
6307
6329
  "svg",
6308
6330
  ir({
6309
6331
  height: n,
@@ -6312,8 +6334,8 @@ var as = B.forwardRef(
6312
6334
  ref: t,
6313
6335
  role: "img"
6314
6336
  }, y),
6315
- !!a && /* @__PURE__ */ B.createElement("title", null, a),
6316
- /* @__PURE__ */ B.createElement(
6337
+ !!a && /* @__PURE__ */ V.createElement("title", null, a),
6338
+ /* @__PURE__ */ V.createElement(
6317
6339
  "path",
6318
6340
  {
6319
6341
  fill: g,
@@ -6321,7 +6343,7 @@ var as = B.forwardRef(
6321
6343
  shapeRendering: "crispEdges"
6322
6344
  }
6323
6345
  ),
6324
- /* @__PURE__ */ B.createElement("path", { fill: s, d: H, shapeRendering: "crispEdges" }),
6346
+ /* @__PURE__ */ V.createElement("path", { fill: s, d: $, shapeRendering: "crispEdges" }),
6325
6347
  b
6326
6348
  );
6327
6349
  }