@leatcom/portal-sessions 0.3.0-beta.16 → 0.3.0-beta.17

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.
Files changed (25) hide show
  1. package/dist/{calendar-BKW4pimf.js → calendar-CQCKPCYx.js} +5 -5
  2. package/dist/{camera-switch-BkZyr6vI.js → camera-switch-Czbsrijp.js} +4 -4
  3. package/dist/{caret-left-D84K4Mlj.js → caret-left-EjHNFYsQ.js} +5 -5
  4. package/dist/close-Bt38wAiS.js +21 -0
  5. package/dist/{crossBlack-BmHLMnIY.js → crossBlack-Dvwvhf8u.js} +5 -5
  6. package/dist/{dollar-BIRg4zOt.js → dollar-BjP6FXPC.js} +5 -5
  7. package/dist/{edit-DWzZLizG.js → edit-_Q8J9uno.js} +7 -7
  8. package/dist/{home-ogzNYC3_.js → home-DoCXOUdv.js} +5 -5
  9. package/dist/{information-D1CUyJdm.js → information-B92qY2eJ.js} +2 -2
  10. package/dist/{leat_logo-B-5Vhc5V.js → leat_logo-BvlVYep-.js} +2 -2
  11. package/dist/lib/modules/components/HandleContactIdentifier.d.ts +1 -1
  12. package/dist/lib/modules/components/auth/AuthenticateViaContactIdentifier.d.ts +0 -1
  13. package/dist/lib/modules/components/auth/AuthenticateViaEmail.d.ts +1 -1
  14. package/dist/{mail-B46RrLed.js → mail-z7TqFrRd.js} +5 -5
  15. package/dist/{notificationErrorV2-DmAHB6It.js → notificationErrorV2-BI-U8AkP.js} +2 -2
  16. package/dist/{notificationSuccessV2-DMqSWMMr.js → notificationSuccessV2-DXhg60oi.js} +6 -6
  17. package/dist/{notificationWarningV2-DHJv4esL.js → notificationWarningV2-C3BM9Bok.js} +4 -4
  18. package/dist/portal-sessions.es.js +310 -317
  19. package/dist/{qr-scanner-worker.min-DsBtK2pz.js → qr-scanner-worker.min-BAdWwcmi.js} +2 -2
  20. package/dist/{settings-DIsijBp6.js → settings-D1ysCdn8.js} +8 -8
  21. package/dist/{shopping-bag-D74f0MaJ.js → shopping-bag-DvvpPnlc.js} +2 -2
  22. package/dist/{star-BwUMoas4.js → star-BEaOMGYG.js} +2 -2
  23. package/dist/{user-C7pKbjnA.js → user-yJ0iuW2q.js} +2 -2
  24. package/package.json +1 -1
  25. package/dist/close-CamTutBh.js +0 -21
@@ -5,7 +5,7 @@ import Qw from "react-dom";
5
5
  (function() {
6
6
  try {
7
7
  var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
8
- t.SENTRY_RELEASE = { id: "b3e0ecec367ee867867d856794a947dccb239860" }, t._sentryModuleMetadata = t._sentryModuleMetadata || {}, t._sentryModuleMetadata[new t.Error().stack] = (function(n) {
8
+ t.SENTRY_RELEASE = { id: "5a952b7207681c43020b8843f40cb494afa5cc32" }, t._sentryModuleMetadata = t._sentryModuleMetadata || {}, t._sentryModuleMetadata[new t.Error().stack] = (function(n) {
9
9
  for (var r = 1; r < arguments.length; r++) {
10
10
  var o = arguments[r];
11
11
  if (o != null) for (var i in o) o.hasOwnProperty(i) && (n[i] = o[i]);
@@ -13,7 +13,7 @@ import Qw from "react-dom";
13
13
  return n;
14
14
  })({}, t._sentryModuleMetadata[new t.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
15
15
  var e = new t.Error().stack;
16
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "e62be814-cd28-499e-902e-896ae59ce7bb", t._sentryDebugIdIdentifier = "sentry-dbid-e62be814-cd28-499e-902e-896ae59ce7bb");
16
+ e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "c9e2661b-ce22-48b8-8e43-b6a3634bf34d", t._sentryDebugIdIdentifier = "sentry-dbid-c9e2661b-ce22-48b8-8e43-b6a3634bf34d");
17
17
  } catch {
18
18
  }
19
19
  })();
@@ -1255,11 +1255,11 @@ const TE = (t) => encodeURIComponent(t).replace(
1255
1255
  request: y
1256
1256
  };
1257
1257
  nm(
1258
- function(F) {
1259
- n(F), g();
1258
+ function(V) {
1259
+ n(V), g();
1260
1260
  },
1261
- function(F) {
1262
- r(F), g();
1261
+ function(V) {
1262
+ r(V), g();
1263
1263
  },
1264
1264
  D
1265
1265
  ), y = null;
@@ -1269,8 +1269,8 @@ const TE = (t) => encodeURIComponent(t).replace(
1269
1269
  }, y.onabort = function() {
1270
1270
  y && (r(new _e("Request aborted", _e.ECONNABORTED, t, y)), g(), y = null);
1271
1271
  }, y.onerror = function(T) {
1272
- const D = T && T.message ? T.message : "Network Error", V = new _e(D, _e.ERR_NETWORK, t, y);
1273
- V.event = T || null, r(V), g(), y = null;
1272
+ const D = T && T.message ? T.message : "Network Error", F = new _e(D, _e.ERR_NETWORK, t, y);
1273
+ F.event = T || null, r(F), g(), y = null;
1274
1274
  }, y.ontimeout = function() {
1275
1275
  let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1276
1276
  const D = o.transitional || lf;
@@ -1494,8 +1494,8 @@ const ff = "1.16.1", Vh = 64 * 1024, { isFunction: Rs } = G, Uh = (t, ...e) => {
1494
1494
  method: C,
1495
1495
  data: T,
1496
1496
  signal: D,
1497
- cancelToken: V,
1498
- timeout: F,
1497
+ cancelToken: F,
1498
+ timeout: V,
1499
1499
  onDownloadProgress: Q,
1500
1500
  onUploadProgress: J,
1501
1501
  responseType: ee,
@@ -1509,8 +1509,8 @@ const ff = "1.16.1", Vh = 64 * 1024, { isFunction: Rs } = G, Uh = (t, ...e) => {
1509
1509
  let B = o || fetch;
1510
1510
  ee = ee ? (ee + "").toLowerCase() : "text";
1511
1511
  let E = OE(
1512
- [D, V && V.toAbortSignal()],
1513
- F
1512
+ [D, F && F.toAbortSignal()],
1513
+ V
1514
1514
  ), S = null;
1515
1515
  const x = E && E.unsubscribe && (() => {
1516
1516
  E.unsubscribe();
@@ -2171,7 +2171,7 @@ function zr() {
2171
2171
  headers: {
2172
2172
  Authorization: `Bearer ${t}`,
2173
2173
  ...l.headers,
2174
- "X-SDK-Version": "0.3.0-beta.16"
2174
+ "X-SDK-Version": "0.3.0-beta.17"
2175
2175
  }
2176
2176
  });
2177
2177
  return d.interceptors.response.use(void 0, lm), d.request({
@@ -2672,9 +2672,9 @@ class Tc extends au {
2672
2672
  } : s;
2673
2673
  const h = this.resolve(e, o);
2674
2674
  let p = h?.res;
2675
- const g = h?.usedKey || s, y = h?.exactUsedKey || s, b = ["[object Number]", "[object Function]", "[object RegExp]"], _ = o.joinArrays !== void 0 ? o.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, T = o.count !== void 0 && !Le(o.count), D = Tc.hasDefaultValue(o), V = T ? this.pluralResolver.getSuffix(d, o.count, o) : "", F = o.ordinal && T ? this.pluralResolver.getSuffix(d, o.count, {
2675
+ const g = h?.usedKey || s, y = h?.exactUsedKey || s, b = ["[object Number]", "[object Function]", "[object RegExp]"], _ = o.joinArrays !== void 0 ? o.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, T = o.count !== void 0 && !Le(o.count), D = Tc.hasDefaultValue(o), F = T ? this.pluralResolver.getSuffix(d, o.count, o) : "", V = o.ordinal && T ? this.pluralResolver.getSuffix(d, o.count, {
2676
2676
  ordinal: !1
2677
- }) : "", Q = T && !o.ordinal && o.count === 0, J = Q && o[`defaultValue${this.options.pluralSeparator}zero`] || o[`defaultValue${V}`] || o[`defaultValue${F}`] || o.defaultValue;
2677
+ }) : "", Q = T && !o.ordinal && o.count === 0, J = Q && o[`defaultValue${this.options.pluralSeparator}zero`] || o[`defaultValue${F}`] || o[`defaultValue${V}`] || o.defaultValue;
2678
2678
  let ee = p;
2679
2679
  C && !p && D && (ee = J);
2680
2680
  const ue = hl(ee), ie = Object.prototype.toString.apply(ee);
@@ -2803,10 +2803,10 @@ class Tc extends au {
2803
2803
  else {
2804
2804
  let T;
2805
2805
  f && (T = this.pluralResolver.getSuffix(b, n.count, n));
2806
- const D = `${this.options.pluralSeparator}zero`, V = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2807
- if (f && (n.ordinal && T.startsWith(V) && _.push(l + T.replace(V, this.options.pluralSeparator)), _.push(l + T), h && _.push(l + D)), p) {
2808
- const F = `${l}${this.options.contextSeparator || "_"}${n.context}`;
2809
- _.push(F), f && (n.ordinal && T.startsWith(V) && _.push(F + T.replace(V, this.options.pluralSeparator)), _.push(F + T), h && _.push(F + D));
2806
+ const D = `${this.options.pluralSeparator}zero`, F = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2807
+ if (f && (n.ordinal && T.startsWith(F) && _.push(l + T.replace(F, this.options.pluralSeparator)), _.push(l + T), h && _.push(l + D)), p) {
2808
+ const V = `${l}${this.options.contextSeparator || "_"}${n.context}`;
2809
+ _.push(V), f && (n.ordinal && T.startsWith(F) && _.push(V + T.replace(F, this.options.pluralSeparator)), _.push(V + T), h && _.push(V + D));
2810
2810
  }
2811
2811
  }
2812
2812
  let C;
@@ -3993,15 +3993,15 @@ function kC(t) {
3993
3993
  }
3994
3994
  const BC = (t) => {
3995
3995
  var e, n, r, o, i, a, s, c, u;
3996
- const { invert: l, toast: d, unstyled: f, interacting: h, setHeights: p, visibleToasts: g, heights: y, index: b, toasts: _, expanded: C, removeToast: T, defaultRichColors: D, closeButton: V, style: F, cancelButtonStyle: Q, actionButtonStyle: J, className: ee = "", descriptionClassName: ue = "", duration: ie, position: le, gap: de, expandByDefault: be, classNames: me, icons: Y, closeButtonAriaLabel: B = "Close toast" } = t, [E, S] = se.useState(null), [x, N] = se.useState(null), [L, H] = se.useState(!1), [U, Z] = se.useState(!1), [ne, oe] = se.useState(!1), [Ee, ve] = se.useState(!1), [fe, K] = se.useState(!1), [Se, ke] = se.useState(0), [Pt, ft] = se.useState(0), Be = se.useRef(d.duration || ie || ap), je = se.useRef(null), Fe = se.useRef(null), Ne = b === 0, Ut = b + 1 <= g, Xe = d.type, Ae = d.dismissible !== !1, Ct = d.className || "", Mn = d.descriptionClassName || "", an = se.useMemo(() => y.findIndex((Oe) => Oe.toastId === d.id) || 0, [
3996
+ const { invert: l, toast: d, unstyled: f, interacting: h, setHeights: p, visibleToasts: g, heights: y, index: b, toasts: _, expanded: C, removeToast: T, defaultRichColors: D, closeButton: F, style: V, cancelButtonStyle: Q, actionButtonStyle: J, className: ee = "", descriptionClassName: ue = "", duration: ie, position: le, gap: de, expandByDefault: be, classNames: me, icons: Y, closeButtonAriaLabel: B = "Close toast" } = t, [E, S] = se.useState(null), [x, N] = se.useState(null), [L, H] = se.useState(!1), [U, Z] = se.useState(!1), [ne, oe] = se.useState(!1), [Ee, ve] = se.useState(!1), [fe, K] = se.useState(!1), [Se, ke] = se.useState(0), [Pt, ft] = se.useState(0), Be = se.useRef(d.duration || ie || ap), je = se.useRef(null), Fe = se.useRef(null), Ne = b === 0, Ut = b + 1 <= g, Xe = d.type, Ae = d.dismissible !== !1, Ct = d.className || "", Mn = d.descriptionClassName || "", an = se.useMemo(() => y.findIndex((Oe) => Oe.toastId === d.id) || 0, [
3997
3997
  y,
3998
3998
  d.id
3999
3999
  ]), tr = se.useMemo(() => {
4000
4000
  var Oe;
4001
- return (Oe = d.closeButton) != null ? Oe : V;
4001
+ return (Oe = d.closeButton) != null ? Oe : F;
4002
4002
  }, [
4003
4003
  d.closeButton,
4004
- V
4004
+ F
4005
4005
  ]), Mt = se.useMemo(() => d.duration || ie || ap, [
4006
4006
  d.duration,
4007
4007
  ie
@@ -4141,7 +4141,7 @@ const BC = (t) => {
4141
4141
  "--z-index": _.length - b,
4142
4142
  "--offset": `${U ? Se : vt.current}px`,
4143
4143
  "--initial-height": be ? "auto" : `${Pt}px`,
4144
- ...F,
4144
+ ...V,
4145
4145
  ...d.style
4146
4146
  },
4147
4147
  onDragEnd: () => {
@@ -4271,8 +4271,8 @@ const FC = /* @__PURE__ */ se.forwardRef(function(e, n) {
4271
4271
  const { id: r, invert: o, position: i = "bottom-right", hotkey: a = [
4272
4272
  "altKey",
4273
4273
  "KeyT"
4274
- ], expand: s, closeButton: c, className: u, offset: l, mobileOffset: d, theme: f = "light", richColors: h, duration: p, style: g, visibleToasts: y = RC, toastOptions: b, dir: _ = sp(), gap: C = DC, icons: T, containerAriaLabel: D = "Notifications" } = e, [V, F] = se.useState([]), Q = se.useMemo(() => r ? V.filter((L) => L.toasterId === r) : V.filter((L) => !L.toasterId), [
4275
- V,
4274
+ ], expand: s, closeButton: c, className: u, offset: l, mobileOffset: d, theme: f = "light", richColors: h, duration: p, style: g, visibleToasts: y = RC, toastOptions: b, dir: _ = sp(), gap: C = DC, icons: T, containerAriaLabel: D = "Notifications" } = e, [F, V] = se.useState([]), Q = se.useMemo(() => r ? F.filter((L) => L.toasterId === r) : F.filter((L) => !L.toasterId), [
4275
+ F,
4276
4276
  r
4277
4277
  ]), J = se.useMemo(() => Array.from(new Set([
4278
4278
  i
@@ -4280,7 +4280,7 @@ const FC = /* @__PURE__ */ se.forwardRef(function(e, n) {
4280
4280
  Q,
4281
4281
  i
4282
4282
  ]), [ee, ue] = se.useState([]), [ie, le] = se.useState(!1), [de, be] = se.useState(!1), [me, Y] = se.useState(f !== "system" ? f : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), B = se.useRef(null), E = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = se.useRef(null), x = se.useRef(!1), N = se.useCallback((L) => {
4283
- F((H) => {
4283
+ V((H) => {
4284
4284
  var U;
4285
4285
  return (U = H.find((Z) => Z.id === L.id)) != null && U.delete || Fn.dismiss(L.id), H.filter(({ id: Z }) => Z !== L.id);
4286
4286
  });
@@ -4288,7 +4288,7 @@ const FC = /* @__PURE__ */ se.forwardRef(function(e, n) {
4288
4288
  return se.useEffect(() => Fn.subscribe((L) => {
4289
4289
  if (L.dismiss) {
4290
4290
  requestAnimationFrame(() => {
4291
- F((H) => H.map((U) => U.id === L.id ? {
4291
+ V((H) => H.map((U) => U.id === L.id ? {
4292
4292
  ...U,
4293
4293
  delete: !0
4294
4294
  } : U));
@@ -4297,7 +4297,7 @@ const FC = /* @__PURE__ */ se.forwardRef(function(e, n) {
4297
4297
  }
4298
4298
  setTimeout(() => {
4299
4299
  Qw.flushSync(() => {
4300
- F((H) => {
4300
+ V((H) => {
4301
4301
  const U = H.findIndex((Z) => Z.id === L.id);
4302
4302
  return U !== -1 ? [
4303
4303
  ...H.slice(0, U),
@@ -4314,7 +4314,7 @@ const FC = /* @__PURE__ */ se.forwardRef(function(e, n) {
4314
4314
  });
4315
4315
  });
4316
4316
  }), [
4317
- V
4317
+ F
4318
4318
  ]), se.useEffect(() => {
4319
4319
  if (f !== "system") {
4320
4320
  Y(f);
@@ -4338,9 +4338,9 @@ const FC = /* @__PURE__ */ se.forwardRef(function(e, n) {
4338
4338
  }, [
4339
4339
  f
4340
4340
  ]), se.useEffect(() => {
4341
- V.length <= 1 && le(!1);
4341
+ F.length <= 1 && le(!1);
4342
4342
  }, [
4343
- V
4343
+ F
4344
4344
  ]), se.useEffect(() => {
4345
4345
  const L = (H) => {
4346
4346
  var U;
@@ -4706,7 +4706,7 @@ const i_ = (t, e) => {
4706
4706
  e.lng ? up(i, e.lng, d, J) : sd(i, d, J);
4707
4707
  }
4708
4708
  }, [i, e.lng, d, C, s, y]);
4709
- const T = i || {}, D = Ue(null), V = Ue(), F = (J) => {
4709
+ const T = i || {}, D = Ue(null), F = Ue(), V = (J) => {
4710
4710
  const ee = Object.getOwnPropertyDescriptors(J);
4711
4711
  ee.__original && delete ee.__original;
4712
4712
  const ue = Object.create(Object.getPrototypeOf(J), ee);
@@ -4724,7 +4724,7 @@ const i_ = (t, e) => {
4724
4724
  }, Q = wn(() => {
4725
4725
  const J = T, ee = J?.language;
4726
4726
  let ue = J;
4727
- J && (D.current && D.current.__original === J ? V.current !== ee ? (ue = F(J), D.current = ue, V.current = ee) : ue = D.current : (ue = F(J), D.current = ue, V.current = ee));
4727
+ J && (D.current && D.current.__original === J ? F.current !== ee ? (ue = V(J), D.current = ue, F.current = ee) : ue = D.current : (ue = V(J), D.current = ue, F.current = ee));
4728
4728
  const ie = !C && !s ? (...de) => (ad(i, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), _(...de)) : _, le = [ie, ue, C];
4729
4729
  return le.t = ie, le.i18n = ue, le.ready = C, le;
4730
4730
  }, [_, T, C, T.resolvedLanguage, T.language, T.languages]);
@@ -4897,7 +4897,7 @@ async function Im(...t) {
4897
4897
  };
4898
4898
  if (t.length < 3)
4899
4899
  return T();
4900
- let D = r, V, F = !1;
4900
+ let D = r, F, V = !1;
4901
4901
  const Q = yd();
4902
4902
  b[h] = [
4903
4903
  Q,
@@ -4911,19 +4911,19 @@ async function Im(...t) {
4911
4911
  try {
4912
4912
  D = D(le);
4913
4913
  } catch (de) {
4914
- V = de, F = !0;
4914
+ F = de, V = !0;
4915
4915
  }
4916
4916
  if (D && Am(D))
4917
4917
  if (D = await D.catch((de) => {
4918
- V = de, F = !0;
4918
+ F = de, V = !0;
4919
4919
  }), Q !== b[h][0]) {
4920
- if (F) throw V;
4920
+ if (V) throw F;
4921
4921
  return D;
4922
- } else F && J && u(V) && (a = !0, g({
4922
+ } else V && J && u(F) && (a = !0, g({
4923
4923
  data: le,
4924
4924
  _c: bn
4925
4925
  }));
4926
- if (a && !F)
4926
+ if (a && !V)
4927
4927
  if (Ar(a)) {
4928
4928
  const de = a(D, le);
4929
4929
  g({
@@ -4941,8 +4941,8 @@ async function Im(...t) {
4941
4941
  g({
4942
4942
  _c: bn
4943
4943
  });
4944
- }), F) {
4945
- if (l) throw V;
4944
+ }), V) {
4945
+ if (l) throw F;
4946
4946
  return;
4947
4947
  }
4948
4948
  return D;
@@ -5086,7 +5086,7 @@ const _l = se.use || // This extra generic is to avoid TypeScript mixing up the
5086
5086
  }), Sl = {
5087
5087
  dedupe: !0
5088
5088
  }, vp = Promise.resolve(bn), B_ = () => Vr, L_ = (t, e, n) => {
5089
- const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: u, refreshWhenHidden: l, refreshWhenOffline: d, keepPreviousData: f, strictServerPrefetchWarning: h } = n, [p, g, y, b] = Fr.get(r), [_, C] = wf(t), T = Ue(!1), D = Ue(!1), V = Ue(_), F = Ue(e), Q = Ue(n), J = () => Q.current, ee = () => J().isVisible() && J().isOnline(), [ue, ie, le, de] = Tm(r, _), be = Ue({}).current, me = et(a) ? et(n.fallback) ? bn : n.fallback[_] : a, Y = (Be, je) => {
5089
+ const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: u, refreshWhenHidden: l, refreshWhenOffline: d, keepPreviousData: f, strictServerPrefetchWarning: h } = n, [p, g, y, b] = Fr.get(r), [_, C] = wf(t), T = Ue(!1), D = Ue(!1), F = Ue(_), V = Ue(e), Q = Ue(n), J = () => Q.current, ee = () => J().isVisible() && J().isOnline(), [ue, ie, le, de] = Tm(r, _), be = Ue({}).current, me = et(a) ? et(n.fallback) ? bn : n.fallback[_] : a, Y = (Be, je) => {
5090
5090
  for (const Fe in be) {
5091
5091
  const Ne = Fe;
5092
5092
  if (Ne === "data") {
@@ -5138,11 +5138,11 @@ const _l = se.use || // This extra generic is to avoid TypeScript mixing up the
5138
5138
  h && Ee && !i && ne && console.warn(`Missing pre-initiated data for serialized key "${_}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
5139
5139
  const ve = !_ || !e || J().isPaused() || x && !et(H) ? !1 : B && !et(s) ? s : i ? et(L) ? !1 : c : et(L) || c, fe = B && ve, K = et(S.isValidating) ? fe : S.isValidating, Se = et(S.isLoading) ? fe : S.isLoading, ke = Zt(
5140
5140
  async (Be) => {
5141
- const je = F.current;
5141
+ const je = V.current;
5142
5142
  if (!_ || !je || D.current || J().isPaused())
5143
5143
  return !1;
5144
5144
  let Fe, Ne, Ut = !0;
5145
- const Xe = Be || {}, Ae = !y[_] || !Xe.dedupe, Ct = () => gp ? !D.current && _ === V.current && T.current : _ === V.current, Mn = {
5145
+ const Xe = Be || {}, Ae = !y[_] || !Xe.dedupe, Ct = () => gp ? !D.current && _ === F.current && T.current : _ === F.current, Mn = {
5146
5146
  isValidating: !1,
5147
5147
  isLoading: !1
5148
5148
  }, an = () => {
@@ -5201,12 +5201,12 @@ const _l = se.use || // This extra generic is to avoid TypeScript mixing up the
5201
5201
  ]
5202
5202
  ), Pt = Zt(
5203
5203
  // Use callback to make sure `keyRef.current` returns latest result every time
5204
- (...Be) => Im(r, V.current, ...Be),
5204
+ (...Be) => Im(r, F.current, ...Be),
5205
5205
  // eslint-disable-next-line react-hooks/exhaustive-deps
5206
5206
  []
5207
5207
  );
5208
5208
  if (bl(() => {
5209
- F.current = e, Q.current = n, et(N) || (U.current = N);
5209
+ V.current = e, Q.current = n, et(N) || (U.current = N);
5210
5210
  }), bl(() => {
5211
5211
  if (!_) return;
5212
5212
  const Be = ke.bind(bn, Sl);
@@ -5225,7 +5225,7 @@ const _l = se.use || // This extra generic is to avoid TypeScript mixing up the
5225
5225
  return ke(Xe);
5226
5226
  }
5227
5227
  });
5228
- return D.current = !1, V.current = _, T.current = !0, ie({
5228
+ return D.current = !1, F.current = _, T.current = !0, ie({
5229
5229
  _k: C
5230
5230
  }), ve && (y[_] || (et(L) || wi ? Be() : m_(Be))), () => {
5231
5231
  D.current = !0, Ne();
@@ -5252,7 +5252,7 @@ const _l = se.use || // This extra generic is to avoid TypeScript mixing up the
5252
5252
  ]), Ww(Z), i) {
5253
5253
  if (!gp && wi && ne)
5254
5254
  throw new Error("Fallback data is required when using Suspense in SSR.");
5255
- ne && (F.current = e, Q.current = n, D.current = !1);
5255
+ ne && (V.current = e, Q.current = n, D.current = !1);
5256
5256
  const Be = b[_], je = !et(Be) && ne ? Pt(Be) : vp;
5257
5257
  if (_l(je), !et(H) && ne)
5258
5258
  throw H;
@@ -5922,8 +5922,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5922
5922
  this.options.useTouchEvents ? K.ontouchstart = Se : K.onclick = Se, this.candidateBoxElement.appendChild(K), L.prepend(this.candidateBoxElement);
5923
5923
  } }], B && _(Y.prototype, B), Object.defineProperty(Y, "prototype", { writable: !1 }), Y;
5924
5924
  var Y, B;
5925
- })(), V = D;
5926
- function F(Y) {
5925
+ })(), F = D;
5926
+ function V(Y) {
5927
5927
  return (function(B) {
5928
5928
  if (Array.isArray(B)) return Q(B);
5929
5929
  })(Y) || (function(B) {
@@ -6023,7 +6023,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6023
6023
  return ve;
6024
6024
  })({ layoutName: "default", theme: "hg-theme-default", inputName: "default", preventMouseDownDefault: !1, enableLayoutCandidates: !0, excludeFromLayout: {} }, ne), this.keyboardPluginClasses = "", d.bindMethods(E, this);
6025
6025
  var oe = this.options.inputName, Ee = oe === void 0 ? this.defaultName : oe;
6026
- if (this.input = {}, this.input[Ee] = "", this.keyboardDOMClass = H, this.buttonElements = {}, window.SimpleKeyboardInstances || (window.SimpleKeyboardInstances = {}), this.currentInstanceName = this.utilities.camelCase(this.keyboardDOMClass), window.SimpleKeyboardInstances[this.currentInstanceName] = this, this.allKeyboardInstances = window.SimpleKeyboardInstances, this.keyboardInstanceNames = Object.keys(window.SimpleKeyboardInstances), this.isFirstKeyboardInstance = this.keyboardInstanceNames[0] === this.currentInstanceName, this.physicalKeyboard = new y({ dispatch: this.dispatch, getOptions: this.getOptions }), this.candidateBox = this.options.enableLayoutCandidates ? new V({ utilities: this.utilities, options: this.options }) : null, !this.keyboardDOM) throw console.warn('".'.concat(H, '" was not found in the DOM.')), new Error("KEYBOARD_DOM_ERROR");
6026
+ if (this.input = {}, this.input[Ee] = "", this.keyboardDOMClass = H, this.buttonElements = {}, window.SimpleKeyboardInstances || (window.SimpleKeyboardInstances = {}), this.currentInstanceName = this.utilities.camelCase(this.keyboardDOMClass), window.SimpleKeyboardInstances[this.currentInstanceName] = this, this.allKeyboardInstances = window.SimpleKeyboardInstances, this.keyboardInstanceNames = Object.keys(window.SimpleKeyboardInstances), this.isFirstKeyboardInstance = this.keyboardInstanceNames[0] === this.currentInstanceName, this.physicalKeyboard = new y({ dispatch: this.dispatch, getOptions: this.getOptions }), this.candidateBox = this.options.enableLayoutCandidates ? new F({ utilities: this.utilities, options: this.options }) : null, !this.keyboardDOM) throw console.warn('".'.concat(H, '" was not found in the DOM.')), new Error("KEYBOARD_DOM_ERROR");
6027
6027
  this.render(), this.modules = {}, this.loadModules();
6028
6028
  }
6029
6029
  }, B = [{ key: "setCaretPosition", value: function(E) {
@@ -6034,7 +6034,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6034
6034
  if (!N || J(N) !== "object") return {};
6035
6035
  var H = Object.keys(N).filter((function(ne) {
6036
6036
  var oe = E.substring(0, S.getCaretPositionEnd() || 0) || E, Ee = new RegExp("".concat(S.utilities.escapeRegex(ne), "$"), L ? "g" : "gi");
6037
- return !!F(oe.matchAll(Ee)).length;
6037
+ return !!V(oe.matchAll(Ee)).length;
6038
6038
  }));
6039
6039
  if (H.length > 1) {
6040
6040
  var U = H.sort((function(ne, oe) {
@@ -6125,7 +6125,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6125
6125
  }));
6126
6126
  } }, { key: "onSetOptions", value: function() {
6127
6127
  var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
6128
- E.includes("layoutName") && this.candidateBox && this.candidateBox.destroy(), (E.includes("layoutCandidatesPageSize") || E.includes("layoutCandidates")) && this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = new V({ utilities: this.utilities, options: this.options }));
6128
+ E.includes("layoutName") && this.candidateBox && this.candidateBox.destroy(), (E.includes("layoutCandidatesPageSize") || E.includes("layoutCandidates")) && this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = new F({ utilities: this.utilities, options: this.options }));
6129
6129
  } }, { key: "resetRows", value: function() {
6130
6130
  this.keyboardRowsDOM && this.keyboardRowsDOM.remove(), this.keyboardDOM.className = this.keyboardDOMClass, this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.buttonElements = {};
6131
6131
  } }, { key: "dispatch", value: function(E) {
@@ -6220,7 +6220,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6220
6220
  return Array.isArray(S) && S.forEach((function(N) {
6221
6221
  if (N && N.class && typeof N.class == "string" && N.buttons && typeof N.buttons == "string") {
6222
6222
  var L = N.class.split(" ");
6223
- N.buttons.split(" ").includes(E) && (x = [].concat(F(x), F(L)));
6223
+ N.buttons.split(" ").includes(E) && (x = [].concat(V(x), V(L)));
6224
6224
  } else console.warn('Incorrect "buttonTheme". Please check the documentation.', N);
6225
6225
  })), x;
6226
6226
  } }, { key: "setDOMButtonAttributes", value: function(E, S) {
@@ -6289,7 +6289,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6289
6289
  var ke, Pt = !U && typeof K == "string" && K.length > 1 && K.indexOf("[") === 0, ft = !U && typeof K == "string" && K.length > 1 && K.indexOf("]") === K.length - 1;
6290
6290
  Pt && (ve.push(Se), K = K.replace(/\[/g, "")), ft && (fe.push(Se), K = K.replace(/\]/g, ""));
6291
6291
  var Be = E.utilities.getButtonClass(K), je = E.utilities.getButtonDisplayName(K, E.options.display, E.options.mergeDisplay), Fe = E.options.useButtonTag ? "button" : "div", Ne = document.createElement(Fe);
6292
- Ne.className += "hg-button ".concat(Be), (ke = Ne.classList).add.apply(ke, F(E.getButtonThemeClasses(K))), E.setDOMButtonAttributes(K, (function(Ae, Ct) {
6292
+ Ne.className += "hg-button ".concat(Be), (ke = Ne.classList).add.apply(ke, V(E.getButtonThemeClasses(K))), E.setDOMButtonAttributes(K, (function(Ae, Ct) {
6293
6293
  Ne.setAttribute(Ae, Ct);
6294
6294
  })), E.activeButtonClass = "hg-activeButton", !E.utilities.pointerEventsSupported() || N || H ? N ? (Ne.ontouchstart = function(Ae) {
6295
6295
  E.handleButtonClicked(K, Ae), E.handleButtonMouseDown(K, Ae);
@@ -6497,13 +6497,13 @@ function $_({ enabled: t }) {
6497
6497
  }
6498
6498
  return a;
6499
6499
  }, b = () => {
6500
- const _ = document.querySelectorAll("#" + Mi), C = y(), T = [..._].map((F) => F.getBoundingClientRect()), D = o.current?.getBoundingClientRect();
6501
- T.push(D), T.sort((F, Q) => F.bottom > Q.bottom ? -1 : 1);
6502
- let V = 0;
6503
- return T.every((F) => {
6504
- if (C && C.top < F.bottom)
6505
- return V = F.bottom - C.top + 8, !1;
6506
- }), V;
6500
+ const _ = document.querySelectorAll("#" + Mi), C = y(), T = [..._].map((V) => V.getBoundingClientRect()), D = o.current?.getBoundingClientRect();
6501
+ T.push(D), T.sort((V, Q) => V.bottom > Q.bottom ? -1 : 1);
6502
+ let F = 0;
6503
+ return T.every((V) => {
6504
+ if (C && C.top < V.bottom)
6505
+ return F = V.bottom - C.top + 8, !1;
6506
+ }), F;
6507
6507
  };
6508
6508
  return t ? /* @__PURE__ */ m("div", { className: "relative", style: { height: c }, children: /* @__PURE__ */ m(
6509
6509
  "div",
@@ -9061,21 +9061,21 @@ function T0(t, e = {}) {
9061
9061
  trimIdleSpanEndTimestamp: f = !0
9062
9062
  } = e, h = dt();
9063
9063
  if (!h || !vr()) {
9064
- const F = new Nr(), Q = {
9064
+ const V = new Nr(), Q = {
9065
9065
  sample_rate: "0",
9066
9066
  sampled: "false",
9067
- ...ho(F)
9067
+ ...ho(V)
9068
9068
  };
9069
- return oc(F, Q), F;
9069
+ return oc(V, Q), V;
9070
9070
  }
9071
9071
  const p = St(), g = Jn(), y = $4(t);
9072
9072
  y.end = new Proxy(y.end, {
9073
- apply(F, Q, J) {
9073
+ apply(V, Q, J) {
9074
9074
  if (d && d(y), Q instanceof Nr)
9075
9075
  return;
9076
9076
  const [ee, ...ue] = J, ie = ee || nn(), le = Gr(ie), de = rc(y).filter((S) => S !== y), be = mt(y);
9077
9077
  if (!de.length || !f)
9078
- return V(le), Reflect.apply(F, Q, [le, ...ue]);
9078
+ return F(le), Reflect.apply(V, Q, [le, ...ue]);
9079
9079
  const me = h.getOptions().ignoreSpans, Y = de?.reduce((S, x) => {
9080
9080
  const N = mt(x);
9081
9081
  return !N.timestamp || me && Na(
@@ -9086,34 +9086,34 @@ function T0(t, e = {}) {
9086
9086
  B ? B + u / 1e3 : 1 / 0,
9087
9087
  Math.max(B || -1 / 0, Math.min(le, Y || 1 / 0))
9088
9088
  );
9089
- return V(E), Reflect.apply(F, Q, [E, ...ue]);
9089
+ return F(E), Reflect.apply(V, Q, [E, ...ue]);
9090
9090
  }
9091
9091
  });
9092
9092
  function b() {
9093
9093
  o && (clearTimeout(o), o = void 0);
9094
9094
  }
9095
- function _(F) {
9095
+ function _(V) {
9096
9096
  b(), o = setTimeout(() => {
9097
- !r && n.size === 0 && a && (i = q4, y.end(F));
9097
+ !r && n.size === 0 && a && (i = q4, y.end(V));
9098
9098
  }, c);
9099
9099
  }
9100
- function C(F) {
9100
+ function C(V) {
9101
9101
  o = setTimeout(() => {
9102
- !r && a && (i = G4, y.end(F));
9102
+ !r && a && (i = G4, y.end(V));
9103
9103
  }, l);
9104
9104
  }
9105
- function T(F) {
9106
- b(), n.set(F, !0);
9105
+ function T(V) {
9106
+ b(), n.set(V, !0);
9107
9107
  const Q = nn();
9108
9108
  C(Q + l / 1e3);
9109
9109
  }
9110
- function D(F) {
9111
- if (n.has(F) && n.delete(F), n.size === 0) {
9110
+ function D(V) {
9111
+ if (n.has(V) && n.delete(V), n.size === 0) {
9112
9112
  const Q = nn();
9113
9113
  _(Q + c / 1e3);
9114
9114
  }
9115
9115
  }
9116
- function V(F) {
9116
+ function F(V) {
9117
9117
  r = !0, n.clear(), s.forEach((de) => de()), Ia(p, g);
9118
9118
  const Q = mt(y), { start_timestamp: J } = Q;
9119
9119
  if (!J)
@@ -9124,8 +9124,8 @@ function T0(t, e = {}) {
9124
9124
  const ie = rc(y).filter((de) => de !== y);
9125
9125
  let le = 0;
9126
9126
  ie.forEach((de) => {
9127
- de.isRecording() && (de.setStatus({ code: cn, message: "cancelled" }), de.end(F), Ie && ge.log("[Tracing] Cancelling span since span ended early", JSON.stringify(de, void 0, 2)));
9128
- const be = mt(de), { timestamp: me = 0, start_timestamp: Y = 0 } = be, B = Y <= F, E = (u + c) / 1e3, S = me - Y <= E;
9127
+ de.isRecording() && (de.setStatus({ code: cn, message: "cancelled" }), de.end(V), Ie && ge.log("[Tracing] Cancelling span since span ended early", JSON.stringify(de, void 0, 2)));
9128
+ const be = mt(de), { timestamp: me = 0, start_timestamp: Y = 0 } = be, B = Y <= V, E = (u + c) / 1e3, S = me - Y <= E;
9129
9129
  if (Ie) {
9130
9130
  const x = JSON.stringify(de, void 0, 2);
9131
9131
  B ? S || ge.log("[Tracing] Discarding span since it finished after idle span final timeout", x) : ge.log("[Tracing] Discarding span since it happened after idle span was finished", x);
@@ -9134,18 +9134,18 @@ function T0(t, e = {}) {
9134
9134
  }), le > 0 && y.setAttribute("sentry.idle_span_discarded_spans", le);
9135
9135
  }
9136
9136
  return s.push(
9137
- h.on("spanStart", (F) => {
9138
- if (r || F === y || mt(F).timestamp || F instanceof hu && F.isStandaloneSpan())
9137
+ h.on("spanStart", (V) => {
9138
+ if (r || V === y || mt(V).timestamp || V instanceof hu && V.isStandaloneSpan())
9139
9139
  return;
9140
- rc(y).includes(F) && T(F.spanContext().spanId);
9140
+ rc(y).includes(V) && T(V.spanContext().spanId);
9141
9141
  })
9142
9142
  ), s.push(
9143
- h.on("spanEnd", (F) => {
9144
- r || D(F.spanContext().spanId);
9143
+ h.on("spanEnd", (V) => {
9144
+ r || D(V.spanContext().spanId);
9145
9145
  })
9146
9146
  ), s.push(
9147
- h.on("idleSpanEnableAutoFinish", (F) => {
9148
- F === y && (a = !0, _(), n.size && C());
9147
+ h.on("idleSpanEnableAutoFinish", (V) => {
9148
+ V === y && (a = !0, _(), n.size && C());
9149
9149
  })
9150
9150
  ), e.disableAutoFinish || _(), setTimeout(() => {
9151
9151
  r || (y.setStatus({ code: cn, message: "deadline_exceeded" }), i = W4, y.end());
@@ -13676,8 +13676,8 @@ const GT = {
13676
13676
  ignoreResourceSpans: C,
13677
13677
  ignorePerformanceApiSpans: T,
13678
13678
  instrumentPageLoad: D,
13679
- instrumentNavigation: V,
13680
- detectRedirects: F,
13679
+ instrumentNavigation: F,
13680
+ detectRedirects: V,
13681
13681
  linkPreviousTrace: Q,
13682
13682
  consistentTraceSampling: J,
13683
13683
  enableReportPageLoaded: ee,
@@ -13746,7 +13746,7 @@ const GT = {
13746
13746
  recordClsStandaloneSpans: E ? void 0 : s || !1,
13747
13747
  recordLcpStandaloneSpans: E ? void 0 : c || !1,
13748
13748
  client: B
13749
- }), E ? (i6(B), s6(B), r && u6()) : r && e6(), i && at.PerformanceObserver && PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame") ? L8() : o && B8(), a && F8(), F && n) {
13749
+ }), E ? (i6(B), s6(B), r && u6()) : r && e6(), i && at.PerformanceObserver && PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame") ? L8() : o && B8(), a && F8(), V && n) {
13750
13750
  const x = () => {
13751
13751
  be = nn();
13752
13752
  };
@@ -13821,13 +13821,13 @@ const GT = {
13821
13821
  }
13822
13822
  });
13823
13823
  }
13824
- V && Gf(({ to: S, from: x }) => {
13824
+ F && Gf(({ to: S, from: x }) => {
13825
13825
  if (x === void 0 && E?.indexOf(S) !== -1) {
13826
13826
  E = void 0;
13827
13827
  return;
13828
13828
  }
13829
13829
  E = void 0;
13830
- const N = O0(S), L = ka(B), H = L && F && $T(L, be);
13830
+ const N = O0(S), L = ka(B), H = L && V && $T(L, be);
13831
13831
  WT(
13832
13832
  B,
13833
13833
  {
@@ -14134,7 +14134,7 @@ const D1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, P1 = uI, r
14134
14134
  function dI(t) {
14135
14135
  const [e, n] = pe(null), r = async () => {
14136
14136
  try {
14137
- const o = (await sI(/* @__PURE__ */ Object.assign({ "../../assets/svg/calendar.svg": () => import("./calendar-BKW4pimf.js"), "../../assets/svg/camera-switch.svg": () => import("./camera-switch-BkZyr6vI.js"), "../../assets/svg/caret-left.svg": () => import("./caret-left-D84K4Mlj.js"), "../../assets/svg/close.svg": () => import("./close-CamTutBh.js"), "../../assets/svg/crossBlack.svg": () => import("./crossBlack-BmHLMnIY.js"), "../../assets/svg/dollar.svg": () => import("./dollar-BIRg4zOt.js"), "../../assets/svg/edit.svg": () => import("./edit-DWzZLizG.js"), "../../assets/svg/home.svg": () => import("./home-ogzNYC3_.js"), "../../assets/svg/information.svg": () => import("./information-D1CUyJdm.js"), "../../assets/svg/leat_logo.svg": () => import("./leat_logo-B-5Vhc5V.js"), "../../assets/svg/mail.svg": () => import("./mail-B46RrLed.js"), "../../assets/svg/notificationErrorV2.svg": () => import("./notificationErrorV2-DmAHB6It.js"), "../../assets/svg/notificationSuccessV2.svg": () => import("./notificationSuccessV2-DMqSWMMr.js"), "../../assets/svg/notificationWarningV2.svg": () => import("./notificationWarningV2-DHJv4esL.js"), "../../assets/svg/settings.svg": () => import("./settings-DIsijBp6.js"), "../../assets/svg/shopping-bag.svg": () => import("./shopping-bag-D74f0MaJ.js"), "../../assets/svg/star.svg": () => import("./star-BwUMoas4.js"), "../../assets/svg/user.svg": () => import("./user-C7pKbjnA.js") }), `../../assets/svg/${t}.svg`, 5)).default;
14137
+ const o = (await sI(/* @__PURE__ */ Object.assign({ "../../assets/svg/calendar.svg": () => import("./calendar-CQCKPCYx.js"), "../../assets/svg/camera-switch.svg": () => import("./camera-switch-Czbsrijp.js"), "../../assets/svg/caret-left.svg": () => import("./caret-left-EjHNFYsQ.js"), "../../assets/svg/close.svg": () => import("./close-Bt38wAiS.js"), "../../assets/svg/crossBlack.svg": () => import("./crossBlack-Dvwvhf8u.js"), "../../assets/svg/dollar.svg": () => import("./dollar-BjP6FXPC.js"), "../../assets/svg/edit.svg": () => import("./edit-_Q8J9uno.js"), "../../assets/svg/home.svg": () => import("./home-DoCXOUdv.js"), "../../assets/svg/information.svg": () => import("./information-B92qY2eJ.js"), "../../assets/svg/leat_logo.svg": () => import("./leat_logo-BvlVYep-.js"), "../../assets/svg/mail.svg": () => import("./mail-z7TqFrRd.js"), "../../assets/svg/notificationErrorV2.svg": () => import("./notificationErrorV2-BI-U8AkP.js"), "../../assets/svg/notificationSuccessV2.svg": () => import("./notificationSuccessV2-DXhg60oi.js"), "../../assets/svg/notificationWarningV2.svg": () => import("./notificationWarningV2-C3BM9Bok.js"), "../../assets/svg/settings.svg": () => import("./settings-D1ysCdn8.js"), "../../assets/svg/shopping-bag.svg": () => import("./shopping-bag-DvvpPnlc.js"), "../../assets/svg/star.svg": () => import("./star-BEaOMGYG.js"), "../../assets/svg/user.svg": () => import("./user-yJ0iuW2q.js") }), `../../assets/svg/${t}.svg`, 5)).default;
14138
14138
  n(() => o);
14139
14139
  } catch (o) {
14140
14140
  console.error(`Failed to import icon: ${t}`, o), n(null);
@@ -15748,15 +15748,15 @@ var W2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Y2 = z.forwardRef(
15748
15748
  }, g) {
15749
15749
  let { basename: y, navigator: b, useTransitions: _ } = z.useContext(Zn), C = typeof l == "string" && W2.test(l), T = x2(l, y);
15750
15750
  l = T.to;
15751
- let D = YI(l, { relative: o }), V = er(), F = null;
15751
+ let D = YI(l, { relative: o }), F = er(), V = null;
15752
15752
  if (s) {
15753
15753
  let be = wu(
15754
15754
  s,
15755
15755
  [],
15756
- V.mask ? V.mask.pathname : "/",
15756
+ F.mask ? F.mask.pathname : "/",
15757
15757
  !0
15758
15758
  );
15759
- y !== "/" && (be.pathname = be.pathname === "/" ? y : wr([y, be.pathname])), F = b.createHref(be);
15759
+ y !== "/" && (be.pathname = be.pathname === "/" ? y : wr([y, be.pathname])), V = b.createHref(be);
15760
15760
  }
15761
15761
  let [Q, J, ee] = RR(
15762
15762
  r,
@@ -15782,7 +15782,7 @@ var W2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Y2 = z.forwardRef(
15782
15782
  {
15783
15783
  ...p,
15784
15784
  ...ee,
15785
- href: (le ? F : void 0) || T.absoluteURL || D,
15785
+ href: (le ? V : void 0) || T.absoluteURL || D,
15786
15786
  onClick: le ? ie : e,
15787
15787
  ref: PR(g, J),
15788
15788
  target: u,
@@ -15811,18 +15811,18 @@ var Zf = z.forwardRef(
15811
15811
  HR(d) && s === !0, b = p.encodeLocation ? p.encodeLocation(d).pathname : d.pathname, _ = f.pathname, C = h && h.navigation && h.navigation.location ? h.navigation.location.pathname : null;
15812
15812
  n || (_ = _.toLowerCase(), C = C ? C.toLowerCase() : null, b = b.toLowerCase()), C && g && (C = $r(C, g) || C);
15813
15813
  const T = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
15814
- let D = _ === b || !o && _.startsWith(b) && _.charAt(T) === "/", V = C != null && (C === b || !o && C.startsWith(b) && C.charAt(b.length) === "/"), F = {
15814
+ let D = _ === b || !o && _.startsWith(b) && _.charAt(T) === "/", F = C != null && (C === b || !o && C.startsWith(b) && C.charAt(b.length) === "/"), V = {
15815
15815
  isActive: D,
15816
- isPending: V,
15816
+ isPending: F,
15817
15817
  isTransitioning: y
15818
15818
  }, Q = D ? e : void 0, J;
15819
- typeof r == "function" ? J = r(F) : J = [
15819
+ typeof r == "function" ? J = r(V) : J = [
15820
15820
  r,
15821
15821
  D ? "active" : null,
15822
- V ? "pending" : null,
15822
+ F ? "pending" : null,
15823
15823
  y ? "transitioning" : null
15824
15824
  ].filter(Boolean).join(" ");
15825
- let ee = typeof i == "function" ? i(F) : i;
15825
+ let ee = typeof i == "function" ? i(V) : i;
15826
15826
  return /* @__PURE__ */ z.createElement(
15827
15827
  Y2,
15828
15828
  {
@@ -15834,7 +15834,7 @@ var Zf = z.forwardRef(
15834
15834
  to: a,
15835
15835
  viewTransition: s
15836
15836
  },
15837
- typeof c == "function" ? c(F) : c
15837
+ typeof c == "function" ? c(V) : c
15838
15838
  );
15839
15839
  }
15840
15840
  );
@@ -15859,9 +15859,9 @@ var kR = z.forwardRef(
15859
15859
  let { useTransitions: g } = z.useContext(Zn), y = UR(), b = jR(s, { relative: u }), _ = a.toLowerCase() === "get" ? "get" : "post", C = typeof s == "string" && W2.test(s), T = (D) => {
15860
15860
  if (c && c(D), D.defaultPrevented) return;
15861
15861
  D.preventDefault();
15862
- let V = D.nativeEvent.submitter, F = V?.getAttribute("formmethod") || a, Q = () => y(V || D.currentTarget, {
15862
+ let F = D.nativeEvent.submitter, V = F?.getAttribute("formmethod") || a, Q = () => y(F || D.currentTarget, {
15863
15863
  fetcherKey: e,
15864
- method: F,
15864
+ method: V,
15865
15865
  navigate: n,
15866
15866
  replace: o,
15867
15867
  state: i,
@@ -16088,7 +16088,7 @@ function Er() {
16088
16088
  headers: {
16089
16089
  Authorization: `Bearer ${t}`,
16090
16090
  ...l.headers,
16091
- "X-SDK-Version": "0.3.0-beta.16"
16091
+ "X-SDK-Version": "0.3.0-beta.17"
16092
16092
  }
16093
16093
  });
16094
16094
  return d.interceptors.response.use(void 0, lm), d.request({
@@ -16332,14 +16332,14 @@ const Xo = ({
16332
16332
  onFocus: g,
16333
16333
  onBlur: y
16334
16334
  }) => {
16335
- const [b, _] = pe(l), C = Ue(null), [T, D] = pe(!1), { open: V, close: F } = Bm();
16335
+ const [b, _] = pe(l), C = Ue(null), [T, D] = pe(!1), { open: F, close: V } = Bm();
16336
16336
  qe(() => () => {
16337
- F();
16337
+ V();
16338
16338
  }, []);
16339
16339
  const Q = () => {
16340
- C.current && _(C.current.validationMessage), D(!1), F(), y?.();
16340
+ C.current && _(C.current.validationMessage), D(!1), V(), y?.();
16341
16341
  }, J = async (le) => {
16342
- D(!0), (async () => V(le))().then(
16342
+ D(!0), (async () => F(le))().then(
16343
16343
  () => C.current?.scrollIntoView({ behavior: "smooth", block: "center" })
16344
16344
  ), g?.();
16345
16345
  }, ee = (le) => {
@@ -16489,16 +16489,16 @@ function th() {
16489
16489
  } };
16490
16490
  }
16491
16491
  function ey({ onCancel: t, onSuccess: e }) {
16492
- const { t: n } = Qe(), { errorToast: r } = Vt(), [o, i] = pe(!1), { portalSession: a } = $e(), { findOrCreateContact: s } = eh(), { linkContactToSession: c } = th(), [u, l] = pe(!0), [d, f] = pe(""), h = async () => {
16492
+ const { t: n } = Qe(), { errorToast: r } = Vt(), [o, i] = pe(!1), { portalSession: a, mutate: s } = $e(), { findOrCreateContact: c } = eh(), { linkContactToSession: u } = th(), [l, d] = pe(!0), [f, h] = pe(""), p = async () => {
16493
16493
  i(!0);
16494
16494
  try {
16495
- const p = await s({
16496
- email: d,
16497
- createIfNotFound: u
16495
+ const g = await c({
16496
+ email: f,
16497
+ createIfNotFound: l
16498
16498
  });
16499
- await c(p), await e();
16500
- } catch (p) {
16501
- r(p);
16499
+ await u(g), await s(), e?.();
16500
+ } catch (g) {
16501
+ r(g);
16502
16502
  } finally {
16503
16503
  i(!1);
16504
16504
  }
@@ -16508,15 +16508,15 @@ function ey({ onCancel: t, onSuccess: e }) {
16508
16508
  /* @__PURE__ */ m(Tn, { children: n("authenticateViaEmail") }),
16509
16509
  /* @__PURE__ */ m(Dn, { children: `Type: ${a.type}` })
16510
16510
  ] }),
16511
- /* @__PURE__ */ M(qi, { onSubmit: h, children: [
16511
+ /* @__PURE__ */ M(qi, { onSubmit: p, children: [
16512
16512
  /* @__PURE__ */ M(zt, { children: [
16513
16513
  /* @__PURE__ */ m(
16514
16514
  Xo,
16515
16515
  {
16516
- value: d,
16516
+ value: f,
16517
16517
  placeholder: "john.doe@example.com",
16518
16518
  label: n("emailAddress"),
16519
- onChange: (p) => f(p.target.value),
16519
+ onChange: (g) => h(g.target.value),
16520
16520
  beforeIcon: "mail"
16521
16521
  }
16522
16522
  ),
@@ -16525,13 +16525,13 @@ function ey({ onCancel: t, onSuccess: e }) {
16525
16525
  {
16526
16526
  required: !0,
16527
16527
  label: n("createContactIfNotFound"),
16528
- defaultChecked: u,
16529
- onChange: (p) => l(p)
16528
+ defaultChecked: l,
16529
+ onChange: (g) => d(g)
16530
16530
  }
16531
16531
  )
16532
16532
  ] }),
16533
16533
  /* @__PURE__ */ m(Sn, { children: /* @__PURE__ */ M("div", { className: "flex flex-col gap-2", children: [
16534
- /* @__PURE__ */ m(rt, { type: "submit", className: "w-full", pending: o, disabled: !d, children: n("continue") }),
16534
+ /* @__PURE__ */ m(rt, { type: "submit", className: "w-full", pending: o, disabled: !f, children: n("continue") }),
16535
16535
  /* @__PURE__ */ m(rt, { className: "w-full", variant: "secondary", onClick: t, children: n("back") })
16536
16536
  ] }) })
16537
16537
  ] })
@@ -16613,52 +16613,52 @@ function XR() {
16613
16613
  } };
16614
16614
  }
16615
16615
  function ty(t) {
16616
- const { t: e } = Qe(), { id: n, onSuccess: r, onCancel: o } = t, { errorToast: i } = Vt(), [a, s] = pe(!1), { portalSession: c } = $e(), { findOrCreateContact: u } = eh(), { linkContactToSession: l } = th(), { linkIdentifierToContact: d } = XR(), [f, h] = pe(!0), [p, g] = pe(null), [y, b] = pe("");
16616
+ const { t: e } = Qe(), { id: n, onSuccess: r, onCancel: o } = t, { errorToast: i } = Vt(), [a, s] = pe(!1), { portalSession: c, mutate: u } = $e(), { findOrCreateContact: l } = eh(), { linkContactToSession: d } = th(), { linkIdentifierToContact: f } = XR(), [h, p] = pe(!0), [g, y] = pe(null), [b, _] = pe("");
16617
16617
  Cu({
16618
16618
  url: `${c.uuid}/contact-identifiers/${n}`,
16619
- dataSetter: g
16619
+ dataSetter: y
16620
16620
  });
16621
- const _ = async (D) => {
16621
+ const C = async (F) => {
16622
16622
  s(!0);
16623
16623
  try {
16624
- await l(D), await r();
16624
+ await d(F), await u(), r?.();
16625
16625
  } catch (V) {
16626
16626
  i(V);
16627
16627
  } finally {
16628
16628
  s(!1);
16629
16629
  }
16630
- }, C = async () => {
16631
- if (p) {
16630
+ }, T = async () => {
16631
+ if (g) {
16632
16632
  s(!0);
16633
16633
  try {
16634
- const D = await u({
16635
- email: y,
16636
- createIfNotFound: f
16634
+ const F = await l({
16635
+ email: b,
16636
+ createIfNotFound: h
16637
16637
  });
16638
- await d(p, D), await l(D), await r();
16639
- } catch (D) {
16640
- i(D);
16638
+ await f(g, F), await d(F), await u(), r();
16639
+ } catch (F) {
16640
+ i(F);
16641
16641
  } finally {
16642
16642
  s(!1);
16643
16643
  }
16644
16644
  }
16645
- }, T = p?.contact;
16645
+ }, D = g?.contact;
16646
16646
  return /* @__PURE__ */ m(Pr, { children: /* @__PURE__ */ M(ln, { children: [
16647
16647
  /* @__PURE__ */ M(on, { children: [
16648
16648
  /* @__PURE__ */ m(Tn, { children: e("linkIdentifier") }),
16649
- /* @__PURE__ */ m(Dn, { children: p?.value })
16649
+ /* @__PURE__ */ m(Dn, { children: g?.value })
16650
16650
  ] }),
16651
- /* @__PURE__ */ m(zt, { children: T ? /* @__PURE__ */ m(qc, { variant: "success", children: e("thisIdentifierIsLinkedToContact", {
16652
- contact: p.contact.email
16651
+ /* @__PURE__ */ m(zt, { children: D ? /* @__PURE__ */ m(qc, { variant: "success", children: e("thisIdentifierIsLinkedToContact", {
16652
+ contact: g.contact.email
16653
16653
  }) }) : /* @__PURE__ */ M("div", { children: [
16654
16654
  /* @__PURE__ */ m(qc, { children: "This identifier is not linked to a contact" }),
16655
16655
  /* @__PURE__ */ m(
16656
16656
  Xo,
16657
16657
  {
16658
- value: y,
16658
+ value: b,
16659
16659
  placeholder: "john.doe@example.com",
16660
16660
  label: e("emailAddress"),
16661
- onChange: (D) => b(D.target.value),
16661
+ onChange: (F) => _(F.target.value),
16662
16662
  beforeIcon: "mail"
16663
16663
  }
16664
16664
  ),
@@ -16667,17 +16667,17 @@ function ty(t) {
16667
16667
  {
16668
16668
  required: !0,
16669
16669
  label: e("createContactIfNotFound"),
16670
- defaultChecked: f,
16671
- onChange: (D) => h(D)
16670
+ defaultChecked: h,
16671
+ onChange: (F) => p(F)
16672
16672
  }
16673
16673
  )
16674
16674
  ] }) }),
16675
16675
  /* @__PURE__ */ m(Sn, { children: /* @__PURE__ */ M("div", { className: "flex flex-col gap-2", children: [
16676
- T ? /* @__PURE__ */ m(
16676
+ D ? /* @__PURE__ */ m(
16677
16677
  rt,
16678
16678
  {
16679
16679
  className: "w-full",
16680
- onClick: () => _(T),
16680
+ onClick: () => C(D),
16681
16681
  pending: a,
16682
16682
  children: e("continue")
16683
16683
  }
@@ -16685,10 +16685,10 @@ function ty(t) {
16685
16685
  rt,
16686
16686
  {
16687
16687
  className: "w-full",
16688
- onClick: C,
16688
+ onClick: T,
16689
16689
  pending: a,
16690
- disabled: !y,
16691
- children: e(f ? "createContactAndLink" : "findContactAndLink")
16690
+ disabled: !b,
16691
+ children: e(h ? "createContactAndLink" : "findContactAndLink")
16692
16692
  }
16693
16693
  ),
16694
16694
  /* @__PURE__ */ m(
@@ -16878,7 +16878,7 @@ let Yi = class ot {
16878
16878
  ot._postWorkerMessage(this._qrEnginePromise, "inversionMode", e);
16879
16879
  }
16880
16880
  static async createQrEngine(e) {
16881
- if (e && console.warn("Specifying a worker path is not required and not supported anymore."), e = () => import("./qr-scanner-worker.min-DsBtK2pz.js").then((r) => r.createWorker()), !(!ot._disableBarcodeDetector && "BarcodeDetector" in window && BarcodeDetector.getSupportedFormats && (await BarcodeDetector.getSupportedFormats()).includes("qr_code"))) return e();
16881
+ if (e && console.warn("Specifying a worker path is not required and not supported anymore."), e = () => import("./qr-scanner-worker.min-BAdWwcmi.js").then((r) => r.createWorker()), !(!ot._disableBarcodeDetector && "BarcodeDetector" in window && BarcodeDetector.getSupportedFormats && (await BarcodeDetector.getSupportedFormats()).includes("qr_code"))) return e();
16882
16882
  let n = navigator.userAgentData;
16883
16883
  return n && n.brands.some(({ brand: r }) => /Chromium/i.test(r)) && /mac ?OS/i.test(n.platform) && await n.getHighEntropyValues(["architecture", "platformVersion"]).then(({ architecture: r, platformVersion: o }) => /arm/i.test(r || "arm") && 13 <= parseInt(o || "13")).catch(() => !0) ? e() : new BarcodeDetector({ formats: ["qr_code"] });
16884
16884
  }
@@ -17014,7 +17014,7 @@ var we = {}, da = { exports: {} }, e5 = da.exports, j1;
17014
17014
  function t5() {
17015
17015
  return j1 || (j1 = 1, (function(t, e) {
17016
17016
  (function(n, r) {
17017
- var o = "1.0.41", i = "", a = "?", s = "function", c = "undefined", u = "object", l = "string", d = "major", f = "model", h = "name", p = "type", g = "vendor", y = "version", b = "architecture", _ = "console", C = "mobile", T = "tablet", D = "smarttv", V = "wearable", F = "embedded", Q = 500, J = "Amazon", ee = "Apple", ue = "ASUS", ie = "BlackBerry", le = "Browser", de = "Chrome", be = "Edge", me = "Firefox", Y = "Google", B = "Honor", E = "Huawei", S = "Lenovo", x = "LG", N = "Microsoft", L = "Motorola", H = "Nvidia", U = "OnePlus", Z = "Opera", ne = "OPPO", oe = "Samsung", Ee = "Sharp", ve = "Sony", fe = "Xiaomi", K = "Zebra", Se = "Facebook", ke = "Chromium OS", Pt = "Mac OS", ft = " Browser", Be = function(De, Pe) {
17017
+ var o = "1.0.41", i = "", a = "?", s = "function", c = "undefined", u = "object", l = "string", d = "major", f = "model", h = "name", p = "type", g = "vendor", y = "version", b = "architecture", _ = "console", C = "mobile", T = "tablet", D = "smarttv", F = "wearable", V = "embedded", Q = 500, J = "Amazon", ee = "Apple", ue = "ASUS", ie = "BlackBerry", le = "Browser", de = "Chrome", be = "Edge", me = "Firefox", Y = "Google", B = "Honor", E = "Huawei", S = "Lenovo", x = "LG", N = "Microsoft", L = "Motorola", H = "Nvidia", U = "OnePlus", Z = "Opera", ne = "OPPO", oe = "Samsung", Ee = "Sharp", ve = "Sony", fe = "Xiaomi", K = "Zebra", Se = "Facebook", ke = "Chromium OS", Pt = "Mac OS", ft = " Browser", Be = function(De, Pe) {
17018
17018
  var Te = {};
17019
17019
  for (var Je in De)
17020
17020
  Pe[Je] && Pe[Je].length % 2 === 0 ? Te[Je] = Pe[Je].concat(De[Je]) : Te[Je] = De[Je];
@@ -17050,7 +17050,7 @@ function t5() {
17050
17050
  } else if (Fe(Pe[Te], De))
17051
17051
  return Te === a ? r : Te;
17052
17052
  return Pe.hasOwnProperty("*") ? Pe["*"] : De;
17053
- }, Mn = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, an = { 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" }, tr = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [y, [h, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [y, [h, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [h, y], [/opios[\/ ]+([\w\.]+)/i], [y, [h, Z + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [y, [h, Z + " GX"]], [/\bopr\/([\w\.]+)/i], [y, [h, Z]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [y, [h, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [y, [h, "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], [h, y], [/quark(?:pc)?\/([-\w\.]+)/i], [y, [h, "Quark"]], [/\bddg\/([\w\.]+)/i], [y, [h, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [y, [h, "UC" + le]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [y, [h, "WeChat"]], [/konqueror\/([\w\.]+)/i], [y, [h, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [y, [h, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [y, [h, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [y, [h, "Smart Lenovo " + le]], [/(avast|avg)\/([\w\.]+)/i], [[h, /(.+)/, "$1 Secure " + le], y], [/\bfocus\/([\w\.]+)/i], [y, [h, me + " Focus"]], [/\bopt\/([\w\.]+)/i], [y, [h, Z + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [y, [h, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [y, [h, "Dolphin"]], [/coast\/([\w\.]+)/i], [y, [h, Z + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [y, [h, "MIUI" + ft]], [/fxios\/([\w\.-]+)/i], [y, [h, me]], [/\bqihoobrowser\/?([\w\.]*)/i], [y, [h, "360"]], [/\b(qq)\/([\w\.]+)/i], [[h, /(.+)/, "$1Browser"], y], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[h, /(.+)/, "$1" + ft], y], [/samsungbrowser\/([\w\.]+)/i], [y, [h, oe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [y, [h, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[h, "Sogou Mobile"], y], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [h, y], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [h], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [y, h], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[h, Se], y], [/(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], [h, y], [/\bgsa\/([\w\.]+) .*safari\//i], [y, [h, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [y, [h, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [y, [h, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[h, de + " WebView"], y], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [y, [h, "Android " + le]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [h, y], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [y, [h, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [y, h], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [h, [y, Ct, Mn]], [/(webkit|khtml)\/([\w\.]+)/i], [h, y], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[h, "Netscape"], y], [/(wolvic|librewolf)\/([\w\.]+)/i], [h, y], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [y, [h, me + " 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], [h, [y, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [h, [y, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[b, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[b, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[b, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[b, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[b, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[b, /ower/, i, Ne]], [/ sun4\w[;\)]/i], [[b, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[b, Ne]]], 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], [f, [g, oe], [p, T]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [f, [g, oe], [p, C]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [f, [g, ee], [p, C]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [f, [g, ee], [p, T]], [/(macintosh);/i], [f, [g, ee]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [f, [g, Ee], [p, C]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [f, [g, B], [p, T]], [/honor([-\w ]+)[;\)]/i], [f, [g, B], [p, C]], [/\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], [f, [g, E], [p, T]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [f, [g, E], [p, C]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[f, /_/g, " "], [g, fe], [p, T]], [/\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], [[f, /_/g, " "], [g, fe], [p, C]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [f, [g, ne], [p, C]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [f, [g, Ct, { OnePlus: ["304", "403", "203"], "*": ne }], [p, T]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [f, [g, "Vivo"], [p, C]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [f, [g, "Realme"], [p, C]], [/\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], [f, [g, L], [p, C]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [f, [g, L], [p, T]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [f, [g, x], [p, T]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [f, [g, x], [p, C]], [/(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], [f, [g, S], [p, T]], [/(nokia) (t[12][01])/i], [g, f, [p, T]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[f, /_/g, " "], [p, C], [g, "Nokia"]], [/(pixel (c|tablet))\b/i], [f, [g, Y], [p, T]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [f, [g, Y], [p, C]], [/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], [f, [g, ve], [p, C]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[f, "Xperia Tablet"], [g, ve], [p, T]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [f, [g, U], [p, C]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [f, [g, J], [p, T]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[f, /(.+)/g, "Fire Phone $1"], [g, J], [p, C]], [/(playbook);[-\w\),; ]+(rim)/i], [f, g, [p, T]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [f, [g, ie], [p, C]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [f, [g, ue], [p, T]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [f, [g, ue], [p, C]], [/(nexus 9)/i], [f, [g, "HTC"], [p, T]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [g, [f, /_/g, " "], [p, C]], [/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], [f, [g, "TCL"], [p, T]], [/(itel) ((\w+))/i], [[g, Ne], f, [p, Ct, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [f, [g, "Acer"], [p, T]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [f, [g, "Meizu"], [p, C]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [f, [g, "Ulefone"], [p, C]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [f, [g, "Energizer"], [p, C]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [f, [g, "Cat"], [p, C]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [f, [g, "Smartfren"], [p, C]], [/droid.+; (a(?:015|06[35]|142p?))/i], [f, [g, "Nothing"], [p, C]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [f, [g, "Archos"], [p, T]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [f, [g, "Archos"], [p, C]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [g, f, [p, T]], [/(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], [g, f, [p, C]], [/(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], [g, f, [p, T]], [/(surface duo)/i], [f, [g, N], [p, T]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [f, [g, "Fairphone"], [p, C]], [/(u304aa)/i], [f, [g, "AT&T"], [p, C]], [/\bsie-(\w*)/i], [f, [g, "Siemens"], [p, C]], [/\b(rct\w+) b/i], [f, [g, "RCA"], [p, T]], [/\b(venue[\d ]{2,7}) b/i], [f, [g, "Dell"], [p, T]], [/\b(q(?:mv|ta)\w+) b/i], [f, [g, "Verizon"], [p, T]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [f, [g, "Barnes & Noble"], [p, T]], [/\b(tm\d{3}\w+) b/i], [f, [g, "NuVision"], [p, T]], [/\b(k88) b/i], [f, [g, "ZTE"], [p, T]], [/\b(nx\d{3}j) b/i], [f, [g, "ZTE"], [p, C]], [/\b(gen\d{3}) b.+49h/i], [f, [g, "Swiss"], [p, C]], [/\b(zur\d{3}) b/i], [f, [g, "Swiss"], [p, T]], [/\b((zeki)?tb.*\b) b/i], [f, [g, "Zeki"], [p, T]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[g, "Dragon Touch"], f, [p, T]], [/\b(ns-?\w{0,9}) b/i], [f, [g, "Insignia"], [p, T]], [/\b((nxa|next)-?\w{0,9}) b/i], [f, [g, "NextBook"], [p, T]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[g, "Voice"], f, [p, C]], [/\b(lvtel\-)?(v1[12]) b/i], [[g, "LvTel"], f, [p, C]], [/\b(ph-1) /i], [f, [g, "Essential"], [p, C]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [f, [g, "Envizen"], [p, T]], [/\b(trio[-\w\. ]+) b/i], [f, [g, "MachSpeed"], [p, T]], [/\btu_(1491) b/i], [f, [g, "Rotor"], [p, T]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [f, [g, H], [p, T]], [/(sprint) (\w+)/i], [g, f, [p, C]], [/(kin\.[onetw]{3})/i], [[f, /\./g, " "], [g, N], [p, C]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [f, [g, K], [p, T]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [f, [g, K], [p, C]], [/smart-tv.+(samsung)/i], [g, [p, D]], [/hbbtv.+maple;(\d+)/i], [[f, /^/, "SmartTV"], [g, oe], [p, D]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[g, x], [p, D]], [/(apple) ?tv/i], [g, [f, ee + " TV"], [p, D]], [/crkey/i], [[f, de + "cast"], [g, Y], [p, D]], [/droid.+aft(\w+)( bui|\))/i], [f, [g, J], [p, D]], [/(shield \w+ tv)/i], [f, [g, H], [p, D]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [f, [g, Ee], [p, D]], [/(bravia[\w ]+)( bui|\))/i], [f, [g, ve], [p, D]], [/(mi(tv|box)-?\w+) bui/i], [f, [g, fe], [p, D]], [/Hbbtv.*(technisat) (.*);/i], [g, f, [p, D]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[g, Xe], [f, Xe], [p, D]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [f, [p, D]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, D]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [g, f, [p, _]], [/droid.+; (shield)( bui|\))/i], [f, [g, H], [p, _]], [/(playstation \w+)/i], [f, [g, ve], [p, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [f, [g, N], [p, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [f, [g, oe], [p, V]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [g, f, [p, V]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [f, [g, ne], [p, V]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [f, [g, ee], [p, V]], [/(opwwe\d{3})/i], [f, [g, U], [p, V]], [/(moto 360)/i], [f, [g, L], [p, V]], [/(smartwatch 3)/i], [f, [g, ve], [p, V]], [/(g watch r)/i], [f, [g, x], [p, V]], [/droid.+; (wt63?0{2,3})\)/i], [f, [g, K], [p, V]], [/droid.+; (glass) \d/i], [f, [g, Y], [p, V]], [/(pico) (4|neo3(?: link|pro)?)/i], [g, f, [p, V]], [/; (quest( \d| pro)?)/i], [f, [g, Se], [p, V]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [g, [p, F]], [/(aeobc)\b/i], [f, [g, J], [p, F]], [/(homepod).+mac os/i], [f, [g, ee], [p, F]], [/windows iot/i], [[p, F]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [f, [p, C]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [f, [p, T]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, T]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, C]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [f, [g, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [y, [h, be + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [h, y], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [y, [h, "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], [h, y], [/ladybird\//i], [[h, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [y, h]], os: [[/microsoft (windows) (vista|xp)/i], [h, y], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [h, [y, Ct, an]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[y, Ct, an], [h, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[y, /_/g, "."], [h, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[h, Pt], [y, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [y, h], [/(ubuntu) ([\w\.]+) like android/i], [[h, /(.+)/, "$1 Touch"], y], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [h, y], [/\(bb(10);/i], [y, [h, ie]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [y, [h, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [y, [h, me + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [y, [h, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [y, [h, "watchOS"]], [/crkey\/([\d\.]+)/i], [y, [h, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[h, ke], y], [/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], [h, y], [/(sunos) ?([\w\.\d]*)/i], [[h, "Solaris"], y], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [h, y]] }, Mt = function(De, Pe) {
17053
+ }, Mn = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, an = { 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" }, tr = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [y, [h, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [y, [h, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [h, y], [/opios[\/ ]+([\w\.]+)/i], [y, [h, Z + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [y, [h, Z + " GX"]], [/\bopr\/([\w\.]+)/i], [y, [h, Z]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [y, [h, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [y, [h, "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], [h, y], [/quark(?:pc)?\/([-\w\.]+)/i], [y, [h, "Quark"]], [/\bddg\/([\w\.]+)/i], [y, [h, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [y, [h, "UC" + le]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [y, [h, "WeChat"]], [/konqueror\/([\w\.]+)/i], [y, [h, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [y, [h, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [y, [h, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [y, [h, "Smart Lenovo " + le]], [/(avast|avg)\/([\w\.]+)/i], [[h, /(.+)/, "$1 Secure " + le], y], [/\bfocus\/([\w\.]+)/i], [y, [h, me + " Focus"]], [/\bopt\/([\w\.]+)/i], [y, [h, Z + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [y, [h, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [y, [h, "Dolphin"]], [/coast\/([\w\.]+)/i], [y, [h, Z + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [y, [h, "MIUI" + ft]], [/fxios\/([\w\.-]+)/i], [y, [h, me]], [/\bqihoobrowser\/?([\w\.]*)/i], [y, [h, "360"]], [/\b(qq)\/([\w\.]+)/i], [[h, /(.+)/, "$1Browser"], y], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[h, /(.+)/, "$1" + ft], y], [/samsungbrowser\/([\w\.]+)/i], [y, [h, oe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [y, [h, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[h, "Sogou Mobile"], y], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [h, y], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [h], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [y, h], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[h, Se], y], [/(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], [h, y], [/\bgsa\/([\w\.]+) .*safari\//i], [y, [h, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [y, [h, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [y, [h, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[h, de + " WebView"], y], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [y, [h, "Android " + le]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [h, y], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [y, [h, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [y, h], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [h, [y, Ct, Mn]], [/(webkit|khtml)\/([\w\.]+)/i], [h, y], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[h, "Netscape"], y], [/(wolvic|librewolf)\/([\w\.]+)/i], [h, y], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [y, [h, me + " 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], [h, [y, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [h, [y, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[b, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[b, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[b, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[b, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[b, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[b, /ower/, i, Ne]], [/ sun4\w[;\)]/i], [[b, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[b, Ne]]], 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], [f, [g, oe], [p, T]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [f, [g, oe], [p, C]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [f, [g, ee], [p, C]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [f, [g, ee], [p, T]], [/(macintosh);/i], [f, [g, ee]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [f, [g, Ee], [p, C]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [f, [g, B], [p, T]], [/honor([-\w ]+)[;\)]/i], [f, [g, B], [p, C]], [/\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], [f, [g, E], [p, T]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [f, [g, E], [p, C]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[f, /_/g, " "], [g, fe], [p, T]], [/\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], [[f, /_/g, " "], [g, fe], [p, C]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [f, [g, ne], [p, C]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [f, [g, Ct, { OnePlus: ["304", "403", "203"], "*": ne }], [p, T]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [f, [g, "Vivo"], [p, C]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [f, [g, "Realme"], [p, C]], [/\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], [f, [g, L], [p, C]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [f, [g, L], [p, T]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [f, [g, x], [p, T]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [f, [g, x], [p, C]], [/(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], [f, [g, S], [p, T]], [/(nokia) (t[12][01])/i], [g, f, [p, T]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[f, /_/g, " "], [p, C], [g, "Nokia"]], [/(pixel (c|tablet))\b/i], [f, [g, Y], [p, T]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [f, [g, Y], [p, C]], [/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], [f, [g, ve], [p, C]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[f, "Xperia Tablet"], [g, ve], [p, T]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [f, [g, U], [p, C]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [f, [g, J], [p, T]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[f, /(.+)/g, "Fire Phone $1"], [g, J], [p, C]], [/(playbook);[-\w\),; ]+(rim)/i], [f, g, [p, T]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [f, [g, ie], [p, C]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [f, [g, ue], [p, T]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [f, [g, ue], [p, C]], [/(nexus 9)/i], [f, [g, "HTC"], [p, T]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [g, [f, /_/g, " "], [p, C]], [/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], [f, [g, "TCL"], [p, T]], [/(itel) ((\w+))/i], [[g, Ne], f, [p, Ct, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [f, [g, "Acer"], [p, T]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [f, [g, "Meizu"], [p, C]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [f, [g, "Ulefone"], [p, C]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [f, [g, "Energizer"], [p, C]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [f, [g, "Cat"], [p, C]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [f, [g, "Smartfren"], [p, C]], [/droid.+; (a(?:015|06[35]|142p?))/i], [f, [g, "Nothing"], [p, C]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [f, [g, "Archos"], [p, T]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [f, [g, "Archos"], [p, C]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [g, f, [p, T]], [/(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], [g, f, [p, C]], [/(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], [g, f, [p, T]], [/(surface duo)/i], [f, [g, N], [p, T]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [f, [g, "Fairphone"], [p, C]], [/(u304aa)/i], [f, [g, "AT&T"], [p, C]], [/\bsie-(\w*)/i], [f, [g, "Siemens"], [p, C]], [/\b(rct\w+) b/i], [f, [g, "RCA"], [p, T]], [/\b(venue[\d ]{2,7}) b/i], [f, [g, "Dell"], [p, T]], [/\b(q(?:mv|ta)\w+) b/i], [f, [g, "Verizon"], [p, T]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [f, [g, "Barnes & Noble"], [p, T]], [/\b(tm\d{3}\w+) b/i], [f, [g, "NuVision"], [p, T]], [/\b(k88) b/i], [f, [g, "ZTE"], [p, T]], [/\b(nx\d{3}j) b/i], [f, [g, "ZTE"], [p, C]], [/\b(gen\d{3}) b.+49h/i], [f, [g, "Swiss"], [p, C]], [/\b(zur\d{3}) b/i], [f, [g, "Swiss"], [p, T]], [/\b((zeki)?tb.*\b) b/i], [f, [g, "Zeki"], [p, T]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[g, "Dragon Touch"], f, [p, T]], [/\b(ns-?\w{0,9}) b/i], [f, [g, "Insignia"], [p, T]], [/\b((nxa|next)-?\w{0,9}) b/i], [f, [g, "NextBook"], [p, T]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[g, "Voice"], f, [p, C]], [/\b(lvtel\-)?(v1[12]) b/i], [[g, "LvTel"], f, [p, C]], [/\b(ph-1) /i], [f, [g, "Essential"], [p, C]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [f, [g, "Envizen"], [p, T]], [/\b(trio[-\w\. ]+) b/i], [f, [g, "MachSpeed"], [p, T]], [/\btu_(1491) b/i], [f, [g, "Rotor"], [p, T]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [f, [g, H], [p, T]], [/(sprint) (\w+)/i], [g, f, [p, C]], [/(kin\.[onetw]{3})/i], [[f, /\./g, " "], [g, N], [p, C]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [f, [g, K], [p, T]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [f, [g, K], [p, C]], [/smart-tv.+(samsung)/i], [g, [p, D]], [/hbbtv.+maple;(\d+)/i], [[f, /^/, "SmartTV"], [g, oe], [p, D]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[g, x], [p, D]], [/(apple) ?tv/i], [g, [f, ee + " TV"], [p, D]], [/crkey/i], [[f, de + "cast"], [g, Y], [p, D]], [/droid.+aft(\w+)( bui|\))/i], [f, [g, J], [p, D]], [/(shield \w+ tv)/i], [f, [g, H], [p, D]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [f, [g, Ee], [p, D]], [/(bravia[\w ]+)( bui|\))/i], [f, [g, ve], [p, D]], [/(mi(tv|box)-?\w+) bui/i], [f, [g, fe], [p, D]], [/Hbbtv.*(technisat) (.*);/i], [g, f, [p, D]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[g, Xe], [f, Xe], [p, D]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [f, [p, D]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, D]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [g, f, [p, _]], [/droid.+; (shield)( bui|\))/i], [f, [g, H], [p, _]], [/(playstation \w+)/i], [f, [g, ve], [p, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [f, [g, N], [p, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [f, [g, oe], [p, F]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [g, f, [p, F]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [f, [g, ne], [p, F]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [f, [g, ee], [p, F]], [/(opwwe\d{3})/i], [f, [g, U], [p, F]], [/(moto 360)/i], [f, [g, L], [p, F]], [/(smartwatch 3)/i], [f, [g, ve], [p, F]], [/(g watch r)/i], [f, [g, x], [p, F]], [/droid.+; (wt63?0{2,3})\)/i], [f, [g, K], [p, F]], [/droid.+; (glass) \d/i], [f, [g, Y], [p, F]], [/(pico) (4|neo3(?: link|pro)?)/i], [g, f, [p, F]], [/; (quest( \d| pro)?)/i], [f, [g, Se], [p, F]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [g, [p, V]], [/(aeobc)\b/i], [f, [g, J], [p, V]], [/(homepod).+mac os/i], [f, [g, ee], [p, V]], [/windows iot/i], [[p, V]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [f, [p, C]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [f, [p, T]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, T]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, C]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [f, [g, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [y, [h, be + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [h, y], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [y, [h, "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], [h, y], [/ladybird\//i], [[h, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [y, h]], os: [[/microsoft (windows) (vista|xp)/i], [h, y], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [h, [y, Ct, an]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[y, Ct, an], [h, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[y, /_/g, "."], [h, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[h, Pt], [y, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [y, h], [/(ubuntu) ([\w\.]+) like android/i], [[h, /(.+)/, "$1 Touch"], y], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [h, y], [/\(bb(10);/i], [y, [h, ie]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [y, [h, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [y, [h, me + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [y, [h, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [y, [h, "watchOS"]], [/crkey\/([\d\.]+)/i], [y, [h, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[h, ke], y], [/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], [h, y], [/(sunos) ?([\w\.\d]*)/i], [[h, "Solaris"], y], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [h, y]] }, Mt = function(De, Pe) {
17054
17054
  if (typeof De === u && (Pe = De, De = r), !(this instanceof Mt))
17055
17055
  return new Mt(De, Pe).getResult();
17056
17056
  var Te = typeof n !== c && n.navigator ? n.navigator : r, Je = De || (Te && Te.userAgent ? Te.userAgent : i), dn = Te && Te.userAgentData ? Te.userAgentData : r, Ot = Pe ? Be(tr, Pe) : tr, He = Te && Te.userAgent == Je;
@@ -17077,7 +17077,7 @@ function t5() {
17077
17077
  return Je = typeof xe === l && xe.length > Q ? Xe(xe, Q) : xe, this;
17078
17078
  }, this.setUA(Je), this;
17079
17079
  };
17080
- Mt.VERSION = o, Mt.BROWSER = je([h, y, d]), Mt.CPU = je([b]), Mt.DEVICE = je([f, g, p, _, C, D, T, V, F]), Mt.ENGINE = Mt.OS = je([h, y]), t.exports && (e = t.exports = Mt), e.UAParser = Mt;
17080
+ Mt.VERSION = o, Mt.BROWSER = je([h, y, d]), Mt.CPU = je([b]), Mt.DEVICE = je([f, g, p, _, C, D, T, F, V]), Mt.ENGINE = Mt.OS = je([h, y]), t.exports && (e = t.exports = Mt), e.UAParser = Mt;
17081
17081
  var ut = typeof n !== c && (n.jQuery || n.Zepto);
17082
17082
  if (ut && !ut.ua) {
17083
17083
  var vt = new Mt();
@@ -17191,7 +17191,7 @@ function n5() {
17191
17191
  return q;
17192
17192
  }, D.apply(this, arguments);
17193
17193
  }
17194
- function V(q, O) {
17194
+ function F(q, O) {
17195
17195
  if (typeof O != "function" && O !== null)
17196
17196
  throw new TypeError("Super expression must either be null or a function");
17197
17197
  q.prototype = Object.create(O && O.prototype, {
@@ -17202,10 +17202,10 @@ function n5() {
17202
17202
  }
17203
17203
  }), O && Q(q, O);
17204
17204
  }
17205
- function F(q) {
17206
- return F = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
17205
+ function V(q) {
17206
+ return V = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
17207
17207
  return P.__proto__ || Object.getPrototypeOf(P);
17208
- }, F(q);
17208
+ }, V(q);
17209
17209
  }
17210
17210
  function Q(q, O) {
17211
17211
  return Q = Object.setPrototypeOf || function(te, ce) {
@@ -17658,10 +17658,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17658
17658
  };
17659
17659
  function Es(q) {
17660
17660
  return /* @__PURE__ */ (function(O) {
17661
- V(P, O);
17661
+ F(P, O);
17662
17662
  function P(te) {
17663
17663
  var ce;
17664
- return b(this, P), ce = ie(this, F(P).call(this, te)), ce.isEventListenerAdded = !1, ce.handleOrientationChange = ce.handleOrientationChange.bind(ue(ce)), ce.onOrientationChange = ce.onOrientationChange.bind(ue(ce)), ce.onPageLoad = ce.onPageLoad.bind(ue(ce)), ce.state = {
17664
+ return b(this, P), ce = ie(this, V(P).call(this, te)), ce.isEventListenerAdded = !1, ce.handleOrientationChange = ce.handleOrientationChange.bind(ue(ce)), ce.onOrientationChange = ce.onOrientationChange.bind(ue(ce)), ce.onPageLoad = ce.onPageLoad.bind(ue(ce)), ce.state = {
17665
17665
  isLandscape: !1,
17666
17666
  isPortrait: !1
17667
17667
  }, ce;
@@ -18674,8 +18674,8 @@ var jd, Vn = (function() {
18674
18674
  }
18675
18675
  var D = p >> 2 * e.BLOCK_SIZE_POWER;
18676
18676
  if (y - g <= e.MIN_DYNAMIC_RANGE && (D = g / 2, l > 0 && f > 0)) {
18677
- var V = (u[l - 1][f] + 2 * u[l][f - 1] + u[l - 1][f - 1]) / 4;
18678
- g < V && (D = V);
18677
+ var F = (u[l - 1][f] + 2 * u[l][f - 1] + u[l - 1][f - 1]) / 4;
18678
+ g < F && (D = F);
18679
18679
  }
18680
18680
  u[l][f] = D;
18681
18681
  }
@@ -19859,13 +19859,13 @@ var q1 = (function() {
19859
19859
  var D = null;
19860
19860
  for (T = 1; D === null && T < _; T++) D = this.getBlackPointOnSegment(e, r + T, e + T, r);
19861
19861
  if (D == null) throw new re();
19862
- var V = null;
19863
- for (T = 1; V === null && T < _; T++) V = this.getBlackPointOnSegment(n, r + T, n - T, r);
19864
- if (V == null) throw new re();
19865
19862
  var F = null;
19866
- for (T = 1; F === null && T < _; T++) F = this.getBlackPointOnSegment(n, o - T, n - T, o);
19863
+ for (T = 1; F === null && T < _; T++) F = this.getBlackPointOnSegment(n, r + T, n - T, r);
19867
19864
  if (F == null) throw new re();
19868
- return this.centerEdges(F, C, V, D);
19865
+ var V = null;
19866
+ for (T = 1; V === null && T < _; T++) V = this.getBlackPointOnSegment(n, o - T, n - T, o);
19867
+ if (V == null) throw new re();
19868
+ return this.centerEdges(V, C, F, D);
19869
19869
  }
19870
19870
  throw new re();
19871
19871
  }, t.prototype.getBlackPointOnSegment = function(e, n, r, o) {
@@ -20174,8 +20174,8 @@ var gn = (function() {
20174
20174
  for (var h = function(b) {
20175
20175
  if (b === 1 && (a.reverse(), n && n.get(At.NEED_RESULT_POINT_CALLBACK) === !0)) {
20176
20176
  var _ = /* @__PURE__ */ new Map();
20177
- n.forEach((function(D, V) {
20178
- return _.set(V, D);
20177
+ n.forEach((function(D, F) {
20178
+ return _.set(F, D);
20179
20179
  })), _.delete(At.NEED_RESULT_POINT_CALLBACK), n = _;
20180
20180
  }
20181
20181
  try {
@@ -20278,7 +20278,7 @@ var gn = (function() {
20278
20278
  default:
20279
20279
  throw new ye();
20280
20280
  }
20281
- for (var d = !1, f = !1, h = "", p = s[0], g = s[1], y = Int32Array.from([0, 0, 0, 0, 0, 0]), b = 0, _ = 0, C = c, T = 0, D = !0, V = !1, F = !1; !d; ) {
20281
+ for (var d = !1, f = !1, h = "", p = s[0], g = s[1], y = Int32Array.from([0, 0, 0, 0, 0, 0]), b = 0, _ = 0, C = c, T = 0, D = !0, F = !1, V = !1; !d; ) {
20282
20282
  var Q = f;
20283
20283
  switch (f = !1, b = _, _ = e.decodeCode(r, y, g), l[u++] = _, _ !== e.CODE_STOP && (D = !0), _ !== e.CODE_STOP && (C += ++T * _), p = g, g += y.reduce((function(Y, B) {
20284
20284
  return Y + B;
@@ -20290,8 +20290,8 @@ var gn = (function() {
20290
20290
  }
20291
20291
  switch (i) {
20292
20292
  case e.CODE_CODE_A:
20293
- if (_ < 64) h += F === V ? String.fromCharCode(32 + _) : String.fromCharCode(32 + _ + 128), F = !1;
20294
- else if (_ < 96) h += F === V ? String.fromCharCode(_ - 64) : String.fromCharCode(_ + 64), F = !1;
20293
+ if (_ < 64) h += V === F ? String.fromCharCode(32 + _) : String.fromCharCode(32 + _ + 128), V = !1;
20294
+ else if (_ < 96) h += V === F ? String.fromCharCode(_ - 64) : String.fromCharCode(_ + 64), V = !1;
20295
20295
  else switch (_ !== e.CODE_STOP && (D = !1), _) {
20296
20296
  case e.CODE_FNC_1:
20297
20297
  a && (h.length === 0 ? h += "]C1" : h += "");
@@ -20300,7 +20300,7 @@ var gn = (function() {
20300
20300
  case e.CODE_FNC_3:
20301
20301
  break;
20302
20302
  case e.CODE_FNC_4_A:
20303
- !V && F ? (V = !0, F = !1) : V && F ? (V = !1, F = !1) : F = !0;
20303
+ !F && V ? (F = !0, V = !1) : F && V ? (F = !1, V = !1) : V = !0;
20304
20304
  break;
20305
20305
  case e.CODE_SHIFT:
20306
20306
  f = !0, i = e.CODE_CODE_B;
@@ -20316,7 +20316,7 @@ var gn = (function() {
20316
20316
  }
20317
20317
  break;
20318
20318
  case e.CODE_CODE_B:
20319
- if (_ < 96) h += F === V ? String.fromCharCode(32 + _) : String.fromCharCode(32 + _ + 128), F = !1;
20319
+ if (_ < 96) h += V === F ? String.fromCharCode(32 + _) : String.fromCharCode(32 + _ + 128), V = !1;
20320
20320
  else switch (_ !== e.CODE_STOP && (D = !1), _) {
20321
20321
  case e.CODE_FNC_1:
20322
20322
  a && (h.length === 0 ? h += "]C1" : h += "");
@@ -20325,7 +20325,7 @@ var gn = (function() {
20325
20325
  case e.CODE_FNC_3:
20326
20326
  break;
20327
20327
  case e.CODE_FNC_4_B:
20328
- !V && F ? (V = !0, F = !1) : V && F ? (V = !1, F = !1) : F = !0;
20328
+ !F && V ? (F = !0, V = !1) : F && V ? (F = !1, V = !1) : V = !0;
20329
20329
  break;
20330
20330
  case e.CODE_SHIFT:
20331
20331
  f = !0, i = e.CODE_CODE_A;
@@ -20434,9 +20434,9 @@ var gn = (function() {
20434
20434
  }
20435
20435
  if (h !== p && 2 * (h - d - C) < C) throw new re();
20436
20436
  if (this.usingCheckDigit) {
20437
- for (var V = this.decodeRowResult.length - 1, F = 0, Q = 0; Q < V; Q++) F += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(Q));
20438
- if (this.decodeRowResult.charAt(V) !== e.ALPHABET_STRING.charAt(F % 43)) throw new en();
20439
- this.decodeRowResult = this.decodeRowResult.substring(0, V);
20437
+ for (var F = this.decodeRowResult.length - 1, V = 0, Q = 0; Q < F; Q++) V += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(Q));
20438
+ if (this.decodeRowResult.charAt(F) !== e.ALPHABET_STRING.charAt(V % 43)) throw new en();
20439
+ this.decodeRowResult = this.decodeRowResult.substring(0, F);
20440
20440
  }
20441
20441
  if (this.decodeRowResult.length === 0) throw new re();
20442
20442
  _ = this.extendedMode ? e.decodeExtended(this.decodeRowResult) : this.decodeRowResult;
@@ -20878,16 +20878,16 @@ var gn = (function() {
20878
20878
  var y = l.toString();
20879
20879
  if (y.length < 8) throw new ye();
20880
20880
  if (!e.checkChecksum(y)) throw new en();
20881
- var b = (i[1] + i[0]) / 2, _ = (f[1] + f[0]) / 2, C = this.getBarcodeFormat(), T = [new Re(b, n), new Re(_, n)], D = new Gn(y, null, 0, T, C, (/* @__PURE__ */ new Date()).getTime()), V = 0;
20881
+ var b = (i[1] + i[0]) / 2, _ = (f[1] + f[0]) / 2, C = this.getBarcodeFormat(), T = [new Re(b, n), new Re(_, n)], D = new Gn(y, null, 0, T, C, (/* @__PURE__ */ new Date()).getTime()), F = 0;
20882
20882
  try {
20883
- var F = W5.decodeRow(n, r, f[1]);
20884
- D.putMetadata(pn.UPC_EAN_EXTENSION, F.getText()), D.putAllMetadata(F.getResultMetadata()), D.addResultPoints(F.getResultPoints()), V = F.getText().length;
20883
+ var V = W5.decodeRow(n, r, f[1]);
20884
+ D.putMetadata(pn.UPC_EAN_EXTENSION, V.getText()), D.putAllMetadata(V.getResultMetadata()), D.addResultPoints(V.getResultPoints()), F = V.getText().length;
20885
20885
  } catch {
20886
20886
  }
20887
20887
  var Q = o == null ? null : o.get(At.ALLOWED_EAN_EXTENSIONS);
20888
20888
  if (Q != null) {
20889
20889
  var J = !1;
20890
- for (var ee in Q) if (V.toString() === ee) {
20890
+ for (var ee in Q) if (F.toString() === ee) {
20891
20891
  J = !0;
20892
20892
  break;
20893
20893
  }
@@ -21513,8 +21513,8 @@ var gn = (function() {
21513
21513
  try {
21514
21514
  for (var d = qs(t.TWO_DIGIT_DATA_LENGTH), f = d.next(); !f.done; f = d.next())
21515
21515
  if ((D = f.value)[0] === l) return D[1] === t.VARIABLE_LENGTH ? t.processVariableAI(2, D[2], e) : t.processFixedAI(2, D[1], e);
21516
- } catch (V) {
21517
- n = { error: V };
21516
+ } catch (F) {
21517
+ n = { error: F };
21518
21518
  } finally {
21519
21519
  try {
21520
21520
  f && !f.done && (r = d.return) && r.call(d);
@@ -21527,8 +21527,8 @@ var gn = (function() {
21527
21527
  try {
21528
21528
  for (var p = qs(t.THREE_DIGIT_DATA_LENGTH), g = p.next(); !g.done; g = p.next())
21529
21529
  if ((D = g.value)[0] === h) return D[1] === t.VARIABLE_LENGTH ? t.processVariableAI(3, D[2], e) : t.processFixedAI(3, D[1], e);
21530
- } catch (V) {
21531
- o = { error: V };
21530
+ } catch (F) {
21531
+ o = { error: F };
21532
21532
  } finally {
21533
21533
  try {
21534
21534
  g && !g.done && (i = p.return) && i.call(p);
@@ -21539,8 +21539,8 @@ var gn = (function() {
21539
21539
  try {
21540
21540
  for (var y = qs(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH), b = y.next(); !b.done; b = y.next())
21541
21541
  if ((D = b.value)[0] === h) return D[1] === t.VARIABLE_LENGTH ? t.processVariableAI(4, D[2], e) : t.processFixedAI(4, D[1], e);
21542
- } catch (V) {
21543
- a = { error: V };
21542
+ } catch (F) {
21543
+ a = { error: F };
21544
21544
  } finally {
21545
21545
  try {
21546
21546
  b && !b.done && (s = y.return) && s.call(y);
@@ -21555,8 +21555,8 @@ var gn = (function() {
21555
21555
  var D;
21556
21556
  if ((D = T.value)[0] === _) return D[1] === t.VARIABLE_LENGTH ? t.processVariableAI(4, D[2], e) : t.processFixedAI(4, D[1], e);
21557
21557
  }
21558
- } catch (V) {
21559
- c = { error: V };
21558
+ } catch (F) {
21559
+ c = { error: F };
21560
21560
  } finally {
21561
21561
  try {
21562
21562
  T && !T.done && (u = C.return) && u.call(C);
@@ -22455,17 +22455,17 @@ var gn = (function() {
22455
22455
  (1 & c) == 0 ? (h[C] = _, g[C] = b - _) : (p[C] = _, y[C] = b - _);
22456
22456
  }
22457
22457
  this.adjustOddEvenCounts(17);
22458
- var T = 4 * r.getValue() + (o ? 0 : 2) + (i ? 0 : 1) - 1, D = 0, V = 0;
22458
+ var T = 4 * r.getValue() + (o ? 0 : 2) + (i ? 0 : 1) - 1, D = 0, F = 0;
22459
22459
  for (c = h.length - 1; c >= 0; c--) {
22460
22460
  if (e.isNotA1left(r, o, i)) {
22461
- var F = e.WEIGHTS[T][2 * c];
22462
- V += h[c] * F;
22461
+ var V = e.WEIGHTS[T][2 * c];
22462
+ F += h[c] * V;
22463
22463
  }
22464
22464
  D += h[c];
22465
22465
  }
22466
22466
  var Q = 0;
22467
- for (c = p.length - 1; c >= 0; c--) e.isNotA1left(r, o, i) && (F = e.WEIGHTS[T][2 * c + 1], Q += p[c] * F);
22468
- var J = V + Q;
22467
+ for (c = p.length - 1; c >= 0; c--) e.isNotA1left(r, o, i) && (V = e.WEIGHTS[T][2 * c + 1], Q += p[c] * V);
22468
+ var J = F + Q;
22469
22469
  if ((1 & D) != 0 || D > 13 || D < 4) throw new re();
22470
22470
  var ee = (13 - D) / 2, ue = e.SYMBOL_WIDEST[ee], ie = 9 - ue, le = pi.getRSSvalue(h, ue, !0), de = pi.getRSSvalue(p, ie, !1), be = e.EVEN_TOTAL_SUBSET[ee], me = e.GSUM[ee];
22471
22471
  return new Yc(le * be + de + me, J);
@@ -22664,18 +22664,18 @@ var gn = (function() {
22664
22664
  this.adjustOddEvenCounts(o, l);
22665
22665
  var C = 0, T = 0;
22666
22666
  for (s = f.length - 1; s >= 0; s--) T *= 9, T += f[s], C += f[s];
22667
- var D = 0, V = 0;
22668
- for (s = h.length - 1; s >= 0; s--) D *= 9, D += h[s], V += h[s];
22669
- var F = T + 3 * D;
22667
+ var D = 0, F = 0;
22668
+ for (s = h.length - 1; s >= 0; s--) D *= 9, D += h[s], F += h[s];
22669
+ var V = T + 3 * D;
22670
22670
  if (o) {
22671
22671
  if ((1 & C) != 0 || C > 12 || C < 4) throw new re();
22672
22672
  var Q = (12 - C) / 2, J = 9 - (de = e.OUTSIDE_ODD_WIDEST[Q]), ee = pi.getRSSvalue(f, de, !1), ue = pi.getRSSvalue(h, J, !0), ie = e.OUTSIDE_EVEN_TOTAL_SUBSET[Q], le = e.OUTSIDE_GSUM[Q];
22673
- return new Yc(ee * ie + ue + le, F);
22673
+ return new Yc(ee * ie + ue + le, V);
22674
22674
  }
22675
- if ((1 & V) != 0 || V > 10 || V < 4) throw new re();
22676
- Q = (10 - V) / 2, J = 9 - (de = e.INSIDE_ODD_WIDEST[Q]), ee = pi.getRSSvalue(f, de, !0), ue = pi.getRSSvalue(h, J, !1);
22675
+ if ((1 & F) != 0 || F > 10 || F < 4) throw new re();
22676
+ Q = (10 - F) / 2, J = 9 - (de = e.INSIDE_ODD_WIDEST[Q]), ee = pi.getRSSvalue(f, de, !0), ue = pi.getRSSvalue(h, J, !1);
22677
22677
  var de, be = e.INSIDE_ODD_TOTAL_SUBSET[Q];
22678
- return le = e.INSIDE_GSUM[Q], new Yc(ue * be + ee + le, F);
22678
+ return le = e.INSIDE_GSUM[Q], new Yc(ue * be + ee + le, V);
22679
22679
  }, e.prototype.findFinderPattern = function(n, r) {
22680
22680
  var o = this.getDecodeFinderCounters();
22681
22681
  o[0] = 0, o[1] = 0, o[2] = 0, o[3] = 0;
@@ -22966,16 +22966,16 @@ var Xt, ng = function(t) {
22966
22966
  if (i) throw i.error;
22967
22967
  }
22968
22968
  }
22969
- var T = f[0].codewords.length - s.getECCodewords(), D = T - 1, V = 0;
22970
- for (b = 0; b < D; b++) for (var F = 0; F < h; F++) f[F].codewords[b] = e[V++];
22969
+ var T = f[0].codewords.length - s.getECCodewords(), D = T - 1, F = 0;
22970
+ for (b = 0; b < D; b++) for (var V = 0; V < h; V++) f[V].codewords[b] = e[F++];
22971
22971
  var Q = n.getVersionNumber() === 24, J = Q ? 8 : h;
22972
- for (F = 0; F < J; F++) f[F].codewords[T - 1] = e[V++];
22972
+ for (V = 0; V < J; V++) f[V].codewords[T - 1] = e[F++];
22973
22973
  var ee = f[0].codewords.length;
22974
- for (b = T; b < ee; b++) for (F = 0; F < h; F++) {
22975
- var ue = Q ? (F + 8) % h : F, ie = Q && ue > 7 ? b - 1 : b;
22976
- f[ue].codewords[ie] = e[V++];
22974
+ for (b = T; b < ee; b++) for (V = 0; V < h; V++) {
22975
+ var ue = Q ? (V + 8) % h : V, ie = Q && ue > 7 ? b - 1 : b;
22976
+ f[ue].codewords[ie] = e[F++];
22977
22977
  }
22978
- if (V !== e.length) throw new Ve();
22978
+ if (F !== e.length) throw new Ve();
22979
22979
  return f;
22980
22980
  }, t.prototype.getNumDataCodewords = function() {
22981
22981
  return this.numDataCodewords;
@@ -23687,15 +23687,15 @@ var ir, og = (function() {
23687
23687
  if (a) throw a.error;
23688
23688
  }
23689
23689
  }
23690
- for (var D = h[0].codewords.length, V = h.length - 1; V >= 0 && h[V].codewords.length !== D; )
23691
- V--;
23692
- V++;
23693
- var F = D - c.getECCodewordsPerBlock(), Q = 0;
23694
- for (_ = 0; _ < F; _++) for (var J = 0; J < p; J++) h[J].codewords[_] = e[Q++];
23695
- for (J = V; J < p; J++) h[J].codewords[F] = e[Q++];
23690
+ for (var D = h[0].codewords.length, F = h.length - 1; F >= 0 && h[F].codewords.length !== D; )
23691
+ F--;
23692
+ F++;
23693
+ var V = D - c.getECCodewordsPerBlock(), Q = 0;
23694
+ for (_ = 0; _ < V; _++) for (var J = 0; J < p; J++) h[J].codewords[_] = e[Q++];
23695
+ for (J = F; J < p; J++) h[J].codewords[V] = e[Q++];
23696
23696
  var ee = h[0].codewords.length;
23697
- for (_ = F; _ < ee; _++) for (J = 0; J < p; J++) {
23698
- var ue = J < V ? _ : _ + 1;
23697
+ for (_ = V; _ < ee; _++) for (J = 0; J < p; J++) {
23698
+ var ue = J < F ? _ : _ + 1;
23699
23699
  h[J].codewords[ue] = e[Q++];
23700
23700
  }
23701
23701
  return h;
@@ -23901,8 +23901,8 @@ var bt, Ws, zn = (function() {
23901
23901
  try {
23902
23902
  for (var f = ag(l), h = f.next(); !h.done; h = f.next())
23903
23903
  d += (_ = h.value).getNumDataCodewords();
23904
- } catch (V) {
23905
- r = { error: V };
23904
+ } catch (F) {
23905
+ r = { error: F };
23906
23906
  } finally {
23907
23907
  try {
23908
23908
  h && !h.done && (o = f.return) && o.call(f);
@@ -23917,8 +23917,8 @@ var bt, Ws, zn = (function() {
23917
23917
  this.correctErrors(C, T);
23918
23918
  for (var D = 0; D < T; D++) p[g++] = C[D];
23919
23919
  }
23920
- } catch (V) {
23921
- i = { error: V };
23920
+ } catch (F) {
23921
+ i = { error: F };
23922
23922
  } finally {
23923
23923
  try {
23924
23924
  b && !b.done && (a = y.return) && a.call(y);
@@ -24271,8 +24271,8 @@ var bt, Ws, zn = (function() {
24271
24271
  a = c / i;
24272
24272
  var h = Math.sqrt(u / i - a * a);
24273
24273
  s.sort((function(C, T) {
24274
- var D = Math.abs(T.getEstimatedModuleSize() - a), V = Math.abs(C.getEstimatedModuleSize() - a);
24275
- return D < V ? -1 : D > V ? 1 : 0;
24274
+ var D = Math.abs(T.getEstimatedModuleSize() - a), F = Math.abs(C.getEstimatedModuleSize() - a);
24275
+ return D < F ? -1 : D > F ? 1 : 0;
24276
24276
  }));
24277
24277
  for (var p = Math.max(0.2 * a, h), g = 0; g < s.length && s.length > 3; g++) {
24278
24278
  var y = s[g];
@@ -24295,8 +24295,8 @@ var bt, Ws, zn = (function() {
24295
24295
  }
24296
24296
  a = c / s.length, s.sort((function(C, T) {
24297
24297
  if (T.getCount() === C.getCount()) {
24298
- var D = Math.abs(T.getEstimatedModuleSize() - a), V = Math.abs(C.getEstimatedModuleSize() - a);
24299
- return D < V ? 1 : D > V ? -1 : 0;
24298
+ var D = Math.abs(T.getEstimatedModuleSize() - a), F = Math.abs(C.getEstimatedModuleSize() - a);
24299
+ return D < F ? 1 : D > F ? -1 : 0;
24300
24300
  }
24301
24301
  return T.getCount() - C.getCount();
24302
24302
  })), s.splice(3);
@@ -24753,11 +24753,11 @@ var bt, Ws, zn = (function() {
24753
24753
  if (o) throw o.error;
24754
24754
  }
24755
24755
  }
24756
- var b = new No(this.field, s), _ = this.runEuclideanAlgorithm(this.field.buildMonomial(n, 1), b, n), C = _[0], T = _[1], D = this.findErrorLocations(C), V = this.findErrorMagnitudes(T, C, D);
24756
+ var b = new No(this.field, s), _ = this.runEuclideanAlgorithm(this.field.buildMonomial(n, 1), b, n), C = _[0], T = _[1], D = this.findErrorLocations(C), F = this.findErrorMagnitudes(T, C, D);
24757
24757
  for (u = 0; u < D.length; u++) {
24758
- var F = e.length - 1 - this.field.log(D[u]);
24759
- if (F < 0) throw en.getChecksumInstance();
24760
- e[F] = this.field.subtract(e[F], V[u]);
24758
+ var V = e.length - 1 - this.field.log(D[u]);
24759
+ if (V < 0) throw en.getChecksumInstance();
24760
+ e[V] = this.field.subtract(e[V], F[u]);
24761
24761
  }
24762
24762
  return D.length;
24763
24763
  }, t.prototype.runEuclideanAlgorithm = function(e, n, r) {
@@ -25813,8 +25813,8 @@ var N9 = (function() {
25813
25813
  if (T === -1) continue;
25814
25814
  C = T;
25815
25815
  }
25816
- var V = t.detectCodeword(e, u.getMinX(), u.getMaxX(), g, C, D, a, s);
25817
- V != null && (_.setCodeword(D, V), T = C, a = Math.min(a, V.getWidth()), s = Math.max(s, V.getWidth()));
25816
+ var F = t.detectCodeword(e, u.getMinX(), u.getMaxX(), g, C, D, a, s);
25817
+ F != null && (_.setCodeword(D, F), T = C, a = Math.min(a, F.getWidth()), s = Math.max(s, F.getWidth()));
25818
25818
  }
25819
25819
  }
25820
25820
  }
@@ -27188,7 +27188,7 @@ var yi = function() {
27188
27188
  c.stop();
27189
27189
  }, streamVideoConstraintsApply: function(y, b) {
27190
27190
  return Gt(this, void 0, void 0, (function() {
27191
- var _, C, T, D, V, F;
27191
+ var _, C, T, D, F, V;
27192
27192
  return qt(this, (function(Q) {
27193
27193
  switch (Q.label) {
27194
27194
  case 0:
@@ -27204,12 +27204,12 @@ var yi = function() {
27204
27204
  case 5:
27205
27205
  return [3, 8];
27206
27206
  case 6:
27207
- return D = Q.sent(), V = { error: D }, [3, 8];
27207
+ return D = Q.sent(), F = { error: D }, [3, 8];
27208
27208
  case 7:
27209
27209
  try {
27210
- T && !T.done && (F = C.return) && F.call(C);
27210
+ T && !T.done && (V = C.return) && V.call(C);
27211
27211
  } finally {
27212
- if (V) throw V.error;
27212
+ if (F) throw F.error;
27213
27213
  }
27214
27214
  return [7];
27215
27215
  case 8:
@@ -28209,11 +28209,11 @@ async function vy(t = {}) {
28209
28209
  var v = Ts.buffer;
28210
28210
  S = new Int8Array(v), B = new Int16Array(v), o.HEAPU8 = U = new Uint8Array(v), L = new Uint16Array(v), E = new Int32Array(v), H = new Uint32Array(v), x = new Float32Array(v), N = new Float64Array(v);
28211
28211
  }
28212
- function V() {
28212
+ function F() {
28213
28213
  if (o.preRun) for (typeof o.preRun == "function" && (o.preRun = [o.preRun]); o.preRun.length; ) ve(o.preRun.shift());
28214
28214
  Z(Ee);
28215
28215
  }
28216
- function F() {
28216
+ function V() {
28217
28217
  T = !0, Is.Ba();
28218
28218
  }
28219
28219
  function Q() {
@@ -29619,10 +29619,10 @@ async function vy(t = {}) {
29619
29619
  }
29620
29620
  }
29621
29621
  function qw() {
29622
- V();
29622
+ F();
29623
29623
  function v() {
29624
29624
  var w, A;
29625
- o.calledRun = !0, !b && (F(), (w = _) == null || w(o), (A = o.onRuntimeInitialized) == null || A.call(o), Q());
29625
+ o.calledRun = !0, !b && (V(), (w = _) == null || w(o), (A = o.onRuntimeInitialized) == null || A.call(o), Q());
29626
29626
  }
29627
29627
  o.setStatus ? (o.setStatus("Running..."), setTimeout(() => {
29628
29628
  setTimeout(() => o.setStatus(""), 1), v();
@@ -31567,8 +31567,8 @@ function nN(t = {}) {
31567
31567
  try {
31568
31568
  await Promise.race([
31569
31569
  y.play(),
31570
- new Promise((D, V) => {
31571
- C = setTimeout(() => V(new Error(`Loading camera stream timed out after ${e} ms.`)), e);
31570
+ new Promise((D, F) => {
31571
+ C = setTimeout(() => F(new Error(`Loading camera stream timed out after ${e} ms.`)), e);
31572
31572
  })
31573
31573
  ]);
31574
31574
  } finally {
@@ -31589,8 +31589,8 @@ function nN(t = {}) {
31589
31589
  let C = null;
31590
31590
  r.current = r.current.then((D) => {
31591
31591
  if (D.type === "start") {
31592
- const { data: { videoEl: V, stream: F, constraints: Q } } = D;
31593
- return !_ && y === V && b === Q ? D : d(V, F).then(() => l(y, b));
31592
+ const { data: { videoEl: F, stream: V, constraints: Q } } = D;
31593
+ return !_ && y === F && b === Q ? D : d(F, V).then(() => l(y, b));
31594
31594
  }
31595
31595
  return l(y, b);
31596
31596
  }).catch((D) => (C = D, { type: "stop", data: {} }));
@@ -31683,23 +31683,23 @@ function aN(t) {
31683
31683
  const C = d.current;
31684
31684
  if (e.current === null || e.current.readyState <= 1 || C === null)
31685
31685
  return;
31686
- const { lastScan: T, contentBefore: D, lastScanHadContent: V } = b;
31686
+ const { lastScan: T, contentBefore: D, lastScanHadContent: F } = b;
31687
31687
  if (_ - T < i) {
31688
31688
  h.current = window.requestAnimationFrame(p(b));
31689
31689
  return;
31690
31690
  }
31691
- let F;
31691
+ let V;
31692
31692
  try {
31693
- F = await C.detect(e.current);
31693
+ V = await C.detect(e.current);
31694
31694
  } catch (de) {
31695
31695
  o?.(ga(de));
31696
31696
  return;
31697
31697
  }
31698
- const Q = F.some((de) => !D.has(de.rawValue)), J = F.length > 0;
31698
+ const Q = V.some((de) => !D.has(de.rawValue)), J = V.length > 0;
31699
31699
  let ee = b.lastOnScan;
31700
31700
  const ue = _ - ee >= a;
31701
- (Q || c && J && ue) && (u && f.current?.paused && f.current.play().catch((de) => console.error("Error playing the sound", de)), ee = _, n(F)), (J || V) && r(F);
31702
- const ie = Q ? new Set(F.map((de) => de.rawValue)) : D, le = {
31701
+ (Q || c && J && ue) && (u && f.current?.paused && f.current.play().catch((de) => console.error("Error playing the sound", de)), ee = _, n(V)), (J || F) && r(V);
31702
+ const ie = Q ? new Set(V.map((de) => de.rawValue)) : D, le = {
31703
31703
  lastScan: _,
31704
31704
  lastOnScan: ee,
31705
31705
  lastScanHadContent: J,
@@ -32040,14 +32040,14 @@ function AN(t, e, n, r) {
32040
32040
  x: Math.floor(C + h),
32041
32041
  y: Math.floor(T + p)
32042
32042
  }), b = t.map((C) => {
32043
- const { boundingBox: T, cornerPoints: D } = C, { x: V, y: F } = y(g({ x: T.x, y: T.y })), { x: Q, y: J } = g({
32043
+ const { boundingBox: T, cornerPoints: D } = C, { x: F, y: V } = y(g({ x: T.x, y: T.y })), { x: Q, y: J } = g({
32044
32044
  x: T.width,
32045
32045
  y: T.height
32046
32046
  });
32047
32047
  return {
32048
32048
  ...C,
32049
32049
  cornerPoints: D.map((ee) => y(g(ee))),
32050
- boundingBox: DOMRectReadOnly.fromRect({ x: V, y: F, width: Q, height: J })
32050
+ boundingBox: DOMRectReadOnly.fromRect({ x: F, y: V, width: Q, height: J })
32051
32051
  };
32052
32052
  });
32053
32053
  n.width = o, n.height = i;
@@ -32055,13 +32055,13 @@ function AN(t, e, n, r) {
32055
32055
  _ !== null && r(b, _);
32056
32056
  }
32057
32057
  const TN = af(function(e, n) {
32058
- const { onScan: r, constraints: o, formats: i = ["any"], paused: a = !1, components: s, tracker: c, children: u, styles: l, classNames: d, allowMultiple: f, scanDelay: h, retryDelay: p, onError: g, sound: y, startTimeoutMs: b, settleDelayMs: _ } = e, C = Ue(null), T = Ue(null), D = Ue(null), V = wn(() => {
32058
+ const { onScan: r, constraints: o, formats: i = ["any"], paused: a = !1, components: s, tracker: c, children: u, styles: l, classNames: d, allowMultiple: f, scanDelay: h, retryDelay: p, onError: g, sound: y, startTimeoutMs: b, settleDelayMs: _ } = e, C = Ue(null), T = Ue(null), D = Ue(null), F = wn(() => {
32059
32059
  const K = {
32060
32060
  ...cN,
32061
32061
  ...o
32062
32062
  };
32063
32063
  return o?.deviceId && delete K.facingMode, K;
32064
- }, [o]), F = wn(() => ({ ...sN, ...s }), [s]), Q = c ?? F.tracker, [J, ee] = pe(!1), [ue, ie] = pe(!1), [le, de] = pe(V), be = nN({ startTimeoutMs: b, settleDelayMs: _ }), me = Ue(be), Y = Ue(r), B = Ue(g), E = Ue(Q);
32064
+ }, [o]), V = wn(() => ({ ...sN, ...s }), [s]), Q = c ?? V.tracker, [J, ee] = pe(!1), [ue, ie] = pe(!1), [le, de] = pe(F), be = nN({ startTimeoutMs: b, settleDelayMs: _ }), me = Ue(be), Y = Ue(r), B = Ue(g), E = Ue(Q);
32065
32065
  qe(() => {
32066
32066
  me.current = be;
32067
32067
  }, [be]), qe(() => {
@@ -32091,8 +32091,8 @@ const TN = af(function(e, n) {
32091
32091
  qe(() => (ee(!0), () => {
32092
32092
  ee(!1);
32093
32093
  }), []), qe(() => {
32094
- tf(V, le) || de(V);
32095
- }, [V, le]);
32094
+ tf(F, le) || de(F);
32095
+ }, [F, le]);
32096
32096
  const Z = wn(() => ({
32097
32097
  constraints: le,
32098
32098
  shouldStream: J && !a
@@ -32128,7 +32128,7 @@ const TN = af(function(e, n) {
32128
32128
  ..._N,
32129
32129
  display: a ? "block" : "none"
32130
32130
  }), [a]);
32131
- return M("div", { style: Ee, className: d?.container, children: [m("video", { ref: C, style: ve, className: d?.video, autoPlay: !0, muted: !0, playsInline: !0 }), m("canvas", { ref: T, style: fe }), m("canvas", { ref: D, style: SN }), M("div", { style: CN, children: [F.finder && m(EN, { scanning: ue, capabilities: be.capabilities, onOff: F.onOff, zoom: F.zoom && be.settings.zoom ? {
32131
+ return M("div", { style: Ee, className: d?.container, children: [m("video", { ref: C, style: ve, className: d?.video, autoPlay: !0, muted: !0, playsInline: !0 }), m("canvas", { ref: T, style: fe }), m("canvas", { ref: D, style: SN }), M("div", { style: CN, children: [V.finder && m(EN, { scanning: ue, capabilities: be.capabilities, onOff: V.onOff, zoom: V.zoom && be.settings.zoom ? {
32132
32132
  value: be.settings.zoom,
32133
32133
  onChange: async (K) => {
32134
32134
  try {
@@ -32140,7 +32140,7 @@ const TN = af(function(e, n) {
32140
32140
  B.current?.(ga(Se));
32141
32141
  }
32142
32142
  }
32143
- } : void 0, torch: F.torch ? {
32143
+ } : void 0, torch: V.torch ? {
32144
32144
  status: be.settings.torch ?? !1,
32145
32145
  toggle: async (K) => {
32146
32146
  try {
@@ -32246,38 +32246,38 @@ const Ig = {
32246
32246
  contactOverview: "/portal/contact/data"
32247
32247
  };
32248
32248
  function IN() {
32249
- const { t } = Qe(), { errorToast: e, successToast: n } = Vt(), { portalSession: r } = $e(), [o, i] = pe(""), [a, s] = pe(!1), [c, u] = pe(null), [l, d] = pe(!1), f = Er(), h = zo(), p = (g) => {
32250
- s(!0), f.post(`${r.uuid}/check-code`, {
32251
- code: g
32252
- }).then((y) => {
32253
- const b = y.data.data;
32254
- if (b.type === "voucher") {
32255
- n(), h(`/voucher/${b.id}`);
32249
+ const { t } = Qe(), { errorToast: e, successToast: n } = Vt(), { portalSession: r, mutate: o } = $e(), [i, a] = pe(""), [s, c] = pe(!1), [u, l] = pe(null), [d, f] = pe(!1), h = Er(), p = zo(), g = (y) => {
32250
+ c(!0), h.post(`${r.uuid}/check-code`, {
32251
+ code: y
32252
+ }).then((b) => {
32253
+ const _ = b.data.data;
32254
+ if (_.type === "voucher") {
32255
+ n(), p(`/voucher/${_.id}`);
32256
32256
  return;
32257
32257
  }
32258
- if (b.type === "giftcard") {
32259
- n(), h(`/giftcard/${b.id}`);
32258
+ if (_.type === "giftcard") {
32259
+ n(), p(`/giftcard/${_.id}`);
32260
32260
  return;
32261
32261
  }
32262
- if (b.type === "identifier") {
32263
- n(), u(b.id);
32262
+ if (_.type === "identifier") {
32263
+ n(), l(_.id);
32264
32264
  return;
32265
32265
  }
32266
- console.error("Unsupported code type:", b);
32267
- }).catch(e).finally(() => s(!1));
32266
+ console.error("Unsupported code type:", _);
32267
+ }).catch(e).finally(() => c(!1));
32268
32268
  };
32269
- return c !== null ? /* @__PURE__ */ m(
32269
+ return u !== null ? /* @__PURE__ */ m(
32270
32270
  ty,
32271
32271
  {
32272
- id: c,
32273
- onSuccess: async () => h(Ig.contactOverview),
32274
- onCancel: () => u(null)
32272
+ id: u,
32273
+ onCancel: () => l(null),
32274
+ onSuccess: () => p(Ig.contactOverview)
32275
32275
  }
32276
- ) : l ? /* @__PURE__ */ m(
32276
+ ) : d ? /* @__PURE__ */ m(
32277
32277
  ey,
32278
32278
  {
32279
- onCancel: () => d(!1),
32280
- onSuccess: async () => h(Ig.contactOverview)
32279
+ onCancel: () => f(!1),
32280
+ onSuccess: () => p(Ig.contactOverview)
32281
32281
  }
32282
32282
  ) : /* @__PURE__ */ m(Pr, { children: /* @__PURE__ */ M(ln, { id: Mi, children: [
32283
32283
  /* @__PURE__ */ M(on, { children: [
@@ -32285,27 +32285,27 @@ function IN() {
32285
32285
  /* @__PURE__ */ m(Dn, { children: "Accepts codes from vouchers, giftcards and identifiers" }),
32286
32286
  /* @__PURE__ */ m(Dn, { children: `Type: ${r.type}` })
32287
32287
  ] }),
32288
- /* @__PURE__ */ m(zt, { children: /* @__PURE__ */ M(qi, { onSubmit: () => p(o), children: [
32288
+ /* @__PURE__ */ m(zt, { children: /* @__PURE__ */ M(qi, { onSubmit: () => g(i), children: [
32289
32289
  /* @__PURE__ */ m(
32290
32290
  ss,
32291
32291
  {
32292
- value: o,
32293
- onInputChange: i,
32294
- onScannerChange: (g) => {
32295
- i(g), p(g);
32292
+ value: i,
32293
+ onInputChange: a,
32294
+ onScannerChange: (y) => {
32295
+ a(y), g(y);
32296
32296
  },
32297
32297
  placeholder: "ABC-123-XYZ",
32298
32298
  label: t("code")
32299
32299
  }
32300
32300
  ),
32301
- /* @__PURE__ */ m(rt, { type: "submit", className: "w-full", pending: a, disabled: !o, children: t("continue") })
32301
+ /* @__PURE__ */ m(rt, { type: "submit", className: "w-full", pending: s, disabled: !i, children: t("continue") })
32302
32302
  ] }) }),
32303
32303
  /* @__PURE__ */ m(Sn, { children: r.input_data.enable_email_identification && /* @__PURE__ */ m(
32304
32304
  rt,
32305
32305
  {
32306
32306
  className: "w-full",
32307
32307
  variant: "secondary",
32308
- onClick: () => d(!0),
32308
+ onClick: () => f(!0),
32309
32309
  children: t("useEmail")
32310
32310
  }
32311
32311
  ) })
@@ -32609,7 +32609,7 @@ function ix() {
32609
32609
  const { t } = Qe(), { id: e } = V2(), { errorToast: n, successToast: r } = Vt(), [o, i] = pe(!1), { portalSession: a, mutate: s } = $e(), c = Er(), { formatAmountInCents: u, getSymbol: l } = mv(), { onUseGiftcard: d } = dr(), [f, h] = pe(0), [p, g] = pe(null), { post: y } = cs(), [b, _] = pe(null), C = Cu({
32610
32610
  url: `${a.uuid}/giftcards/${e}`,
32611
32611
  dataSetter: g
32612
- }), T = p?.amount_in_cents ?? 0, D = b === "redeem" ? Math.min(zs, T) : zs, V = b === "redeem", F = V ? -f : f, Q = !!b && f > 0 && f <= D && !o, J = (ue) => {
32612
+ }), T = p?.amount_in_cents ?? 0, D = b === "redeem" ? Math.min(zs, T) : zs, F = b === "redeem", V = F ? -f : f, Q = !!b && f > 0 && f <= D && !o, J = (ue) => {
32613
32613
  _(ue), h(
32614
32614
  (ie) => Math.min(
32615
32615
  ie,
@@ -32618,11 +32618,11 @@ function ix() {
32618
32618
  );
32619
32619
  }, ee = () => {
32620
32620
  !p || !Q || (i(!0), c.post(`${a.uuid}/giftcards/${p.id}/transaction`, {
32621
- amount_in_cents: F
32621
+ amount_in_cents: V
32622
32622
  }).then((ue) => {
32623
32623
  C.mutate(), s(), y(), d?.(ue.data.data), h(0), _(null), r(
32624
32624
  `${t("transactionSuccessful")}. ${t("amount")}: ${yf(
32625
- F,
32625
+ V,
32626
32626
  a.currency
32627
32627
  )}`
32628
32628
  );
@@ -32642,15 +32642,15 @@ function ix() {
32642
32642
  b !== null && /* @__PURE__ */ M(
32643
32643
  "div",
32644
32644
  {
32645
- className: `rounded-2xl border p-5 ${V ? "border-core-red-200 bg-core-red-50" : "border-core-primary-100 bg-core-primary-50"}`,
32645
+ className: `rounded-2xl border p-5 ${F ? "border-core-red-200 bg-core-red-50" : "border-core-primary-100 bg-core-primary-50"}`,
32646
32646
  children: [
32647
32647
  /* @__PURE__ */ M("div", { className: "mb-4 flex items-center justify-between gap-3", children: [
32648
32648
  /* @__PURE__ */ M("div", { children: [
32649
32649
  /* @__PURE__ */ m(
32650
32650
  "p",
32651
32651
  {
32652
- className: `font-semibold text-sm ${V ? "text-core-red-700" : "text-core-primary-700"}`,
32653
- children: t(V ? "redeem" : "topUp")
32652
+ className: `font-semibold text-sm ${F ? "text-core-red-700" : "text-core-primary-700"}`,
32653
+ children: t(F ? "redeem" : "topUp")
32654
32654
  }
32655
32655
  ),
32656
32656
  /* @__PURE__ */ M("p", { className: "text-gray-500 text-sm", children: [
@@ -32661,17 +32661,17 @@ function ix() {
32661
32661
  /* @__PURE__ */ M(
32662
32662
  "div",
32663
32663
  {
32664
- className: `rounded-full px-3 py-1 font-bold text-sm ${V ? "bg-core-red-100 text-core-red-700" : "bg-core-primary-100 text-core-primary-700"}`,
32664
+ className: `rounded-full px-3 py-1 font-bold text-sm ${F ? "bg-core-red-100 text-core-red-700" : "bg-core-primary-100 text-core-primary-700"}`,
32665
32665
  children: [
32666
- V ? "-" : "+",
32666
+ F ? "-" : "+",
32667
32667
  u(f)
32668
32668
  ]
32669
32669
  }
32670
32670
  )
32671
32671
  ] }),
32672
32672
  /* @__PURE__ */ M("div", { className: "flex items-center justify-center gap-1 rounded-xl bg-core-white-900 p-4 font-bold text-5xl shadow-sm", children: [
32673
- /* @__PURE__ */ M("p", { className: V ? "text-core-red-600" : "", children: [
32674
- V && "-",
32673
+ /* @__PURE__ */ M("p", { className: F ? "text-core-red-600" : "", children: [
32674
+ F && "-",
32675
32675
  l(a.currency)
32676
32676
  ] }),
32677
32677
  /* @__PURE__ */ m(
@@ -32805,17 +32805,17 @@ function sx() {
32805
32805
  }
32806
32806
  const Xs = 1e5;
32807
32807
  function cx() {
32808
- const { t } = Qe(), { errorToast: e, successToast: n } = Vt(), [r, o] = pe(!1), { portalSession: i, mutate: a } = $e(), s = Er(), { formatAmountInCents: c, getSymbol: u } = mv(), [l, d] = pe(0), { post: f } = cs(), [h, p] = pe(null), g = i.contact?.prepaid_balance.balance_in_cents ?? 0, y = h === "redeem" ? Math.min(Xs, g) : Xs, b = h === "redeem", _ = b ? -l : l, C = !!h && l > 0 && l <= y && !r, T = (V) => {
32809
- p(V), d(
32810
- (F) => Math.min(
32811
- F,
32812
- V === "redeem" ? Math.min(Xs, g) : Xs
32808
+ const { t } = Qe(), { errorToast: e, successToast: n } = Vt(), [r, o] = pe(!1), { portalSession: i, mutate: a } = $e(), s = Er(), { formatAmountInCents: c, getSymbol: u } = mv(), [l, d] = pe(0), { post: f } = cs(), [h, p] = pe(null), g = i.contact?.prepaid_balance.balance_in_cents ?? 0, y = h === "redeem" ? Math.min(Xs, g) : Xs, b = h === "redeem", _ = b ? -l : l, C = !!h && l > 0 && l <= y && !r, T = (F) => {
32809
+ p(F), d(
32810
+ (V) => Math.min(
32811
+ V,
32812
+ F === "redeem" ? Math.min(Xs, g) : Xs
32813
32813
  )
32814
32814
  );
32815
32815
  }, D = () => {
32816
32816
  C && (o(!0), s.post(`${i.uuid}/prepaid-transactions`, {
32817
32817
  amount_in_cents: _
32818
- }).then((V) => {
32818
+ }).then((F) => {
32819
32819
  a(), f(), d(0), p(null), n(
32820
32820
  `${t("transactionSuccessful")}! ${t("totalUpgradedAmount")}: ${yf(
32821
32821
  _,
@@ -32953,7 +32953,7 @@ function lx() {
32953
32953
  } finally {
32954
32954
  i(!1);
32955
32955
  }
32956
- }, V = async () => {
32956
+ }, F = async () => {
32957
32957
  if (g) {
32958
32958
  i(!0);
32959
32959
  try {
@@ -32968,16 +32968,16 @@ function lx() {
32968
32968
  i(!1);
32969
32969
  }
32970
32970
  }
32971
- }, F = g?.contact;
32971
+ }, V = g?.contact;
32972
32972
  return /* @__PURE__ */ m(Pr, { children: /* @__PURE__ */ M(ln, { children: [
32973
32973
  /* @__PURE__ */ M(on, { children: [
32974
32974
  /* @__PURE__ */ m(Jo, {}),
32975
32975
  /* @__PURE__ */ m(Tn, { children: t("voucher") }),
32976
32976
  /* @__PURE__ */ m(Dn, { children: g?.code })
32977
32977
  ] }),
32978
- /* @__PURE__ */ m(zt, { children: F ? /* @__PURE__ */ M("div", { className: "flex flex-col gap-4", children: [
32978
+ /* @__PURE__ */ m(zt, { children: V ? /* @__PURE__ */ M("div", { className: "flex flex-col gap-4", children: [
32979
32979
  /* @__PURE__ */ m(qc, { variant: "success", children: t("thisVoucherIsLinkedToContact", {
32980
- contact: F.email
32980
+ contact: V.email
32981
32981
  }) }),
32982
32982
  /* @__PURE__ */ M(
32983
32983
  "div",
@@ -33033,12 +33033,12 @@ function lx() {
33033
33033
  }
33034
33034
  )
33035
33035
  ] }) }),
33036
- /* @__PURE__ */ m(Sn, { children: F ? /* @__PURE__ */ m("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ m(
33036
+ /* @__PURE__ */ m(Sn, { children: V ? /* @__PURE__ */ m("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ m(
33037
33037
  rt,
33038
33038
  {
33039
33039
  className: "w-full",
33040
33040
  disabled: g.status !== so.ACTIVE || o || a.status !== Zc.ACTIVE,
33041
- onClick: () => D(F),
33041
+ onClick: () => D(V),
33042
33042
  pending: o,
33043
33043
  children: t("redeemVoucher")
33044
33044
  }
@@ -33046,7 +33046,7 @@ function lx() {
33046
33046
  rt,
33047
33047
  {
33048
33048
  className: "w-full",
33049
- onClick: V,
33049
+ onClick: F,
33050
33050
  pending: o,
33051
33051
  disabled: !b,
33052
33052
  children: t(h ? "createContactAndLink" : "findContactAndLink")
@@ -33097,8 +33097,7 @@ function fx(t) {
33097
33097
  ty,
33098
33098
  {
33099
33099
  id: u,
33100
- onCancel: () => l(null),
33101
- onSuccess: s
33100
+ onCancel: () => l(null)
33102
33101
  }
33103
33102
  ) : /* @__PURE__ */ m(Pr, { children: /* @__PURE__ */ M(ln, { children: [
33104
33103
  /* @__PURE__ */ m(on, { children: /* @__PURE__ */ m(Tn, { children: e("authenticateViaContactIdentifier") }) }),
@@ -33124,13 +33123,7 @@ function hx() {
33124
33123
  const { portalSession: t, mutate: e } = $e(), [n, r] = pe(
33125
33124
  t.input_data.primary_identification_method === sf.EMAIL
33126
33125
  );
33127
- return n ? /* @__PURE__ */ m(ey, { onCancel: () => r(!1), onSuccess: e }) : /* @__PURE__ */ m(
33128
- fx,
33129
- {
33130
- onCancel: () => r(!0),
33131
- onSuccess: e
33132
- }
33133
- );
33126
+ return n ? /* @__PURE__ */ m(ey, { onCancel: () => r(!1) }) : /* @__PURE__ */ m(fx, { onCancel: () => r(!0) });
33134
33127
  }
33135
33128
  function Jl(t) {
33136
33129
  const { portalSession: e } = $e();
@@ -34240,12 +34233,12 @@ function Vx() {
34240
34233
  }, [s]);
34241
34234
  const y = (C) => {
34242
34235
  o().then((T) => {
34243
- const V = T.data.data.events.filter(
34244
- (F) => F.type === Cc.REWARD_RECEPTION && F.data.reward.uuid === s.uuid
34236
+ const F = T.data.data.events.filter(
34237
+ (V) => V.type === Cc.REWARD_RECEPTION && V.data.reward.uuid === s.uuid
34245
34238
  ).reduce(
34246
- (F, Q) => new Date(F.created_at) > new Date(Q.created_at) ? F : Q
34239
+ (V, Q) => new Date(V.created_at) > new Date(Q.created_at) ? V : Q
34247
34240
  );
34248
- a?.(C, V.data.uuid);
34241
+ a?.(C, F.data.uuid);
34249
34242
  });
34250
34243
  }, b = () => {
34251
34244
  l(!0), g.post(`${r.uuid}/rewards/claim`, {