@nizza/core 0.4.0-alpha.7 → 0.4.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ var aa = Object.defineProperty;
2
2
  var sa = (e, t, i) => t in e ? aa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
3
  var G = (e, t, i) => (sa(e, typeof t != "symbol" ? t + "" : t, i), i);
4
4
  import * as le from "react";
5
- import Fi, { createContext as Ci, useReducer as oa, useEffect as vt, useDebugValue as ua, useCallback as la, useContext as wn, useMemo as ca, useState as da } from "react";
5
+ import Ci, { createContext as Ri, useReducer as oa, useEffect as vt, useDebugValue as ua, useCallback as la, useContext as wn, useMemo as ca, useState as da } from "react";
6
6
  import { jsx as fa } from "react/jsx-runtime";
7
7
  let ha = 0;
8
8
  function ma(e, t) {
@@ -17,18 +17,18 @@ function ma(e, t) {
17
17
  const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new WeakMap(), va = (e, t) => {
18
18
  Dt.set(e, t), e.catch(() => {
19
19
  }).finally(() => Dt.delete(e));
20
- }, Bn = (e, t) => {
20
+ }, Gn = (e, t) => {
21
21
  const i = Dt.get(e);
22
22
  i && (Dt.delete(e), i(t));
23
- }, Gn = (e, t) => {
24
- e.status = "fulfilled", e.value = t;
25
23
  }, zn = (e, t) => {
24
+ e.status = "fulfilled", e.value = t;
25
+ }, Kn = (e, t) => {
26
26
  e.status = "rejected", e.reason = t;
27
- }, Ft = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), Kn = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), on = (e) => "v" in e && e.v instanceof Promise, Ct = (e) => {
27
+ }, Ft = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), $n = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), on = (e) => "v" in e && e.v instanceof Promise, Ct = (e) => {
28
28
  if ("e" in e)
29
29
  throw e.e;
30
30
  return e.v;
31
- }, Ri = () => {
31
+ }, Ti = () => {
32
32
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map();
33
33
  let n, r;
34
34
  ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set());
@@ -37,7 +37,7 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
37
37
  const F = e.get(g);
38
38
  if (e.set(g, k), i.has(g) || i.set(g, F), F && on(F)) {
39
39
  const T = "v" in k ? k.v instanceof Promise ? k.v : Promise.resolve(k.v) : Promise.reject(k.e);
40
- Bn(F.v, T);
40
+ Gn(F.v, T);
41
41
  }
42
42
  }, o = (g, k, F) => {
43
43
  const T = /* @__PURE__ */ new Map();
@@ -65,7 +65,7 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
65
65
  V,
66
66
  F
67
67
  );
68
- Gn(V, H), B(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
68
+ zn(V, H), B(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
69
69
  }
70
70
  },
71
71
  (H) => {
@@ -76,13 +76,13 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
76
76
  V,
77
77
  F
78
78
  );
79
- zn(V, H), j(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
79
+ Kn(V, H), j(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
80
80
  }
81
81
  }
82
82
  ), I = (H) => {
83
83
  K || (K = !0, H.then(
84
- (u) => Gn(V, u),
85
- (u) => zn(V, u)
84
+ (u) => zn(V, u),
85
+ (u) => Kn(V, u)
86
86
  ), B(H));
87
87
  };
88
88
  });
@@ -96,7 +96,7 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
96
96
  d: (T == null ? void 0 : T.d) || /* @__PURE__ */ new Map(),
97
97
  e: k
98
98
  };
99
- return F && o(g, I, F), T && Kn(T, I) && T.d === I.d ? T : (s(g, I), I);
99
+ return F && o(g, I, F), T && $n(T, I) && T.d === I.d ? T : (s(g, I), I);
100
100
  }, v = (g) => {
101
101
  const k = a(g);
102
102
  if (k && (k.d.forEach((K, H) => {
@@ -193,7 +193,7 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
193
193
  const F = (k = t.get(g)) == null ? void 0 : k.u;
194
194
  F && F(), t.delete(g), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.delete(g);
195
195
  const T = a(g);
196
- T ? (on(T) && Bn(T.v), T.d.forEach((I, V) => {
196
+ T ? (on(T) && Gn(T.v), T.d.forEach((I, V) => {
197
197
  if (V !== g) {
198
198
  const B = t.get(V);
199
199
  B && (B.t.delete(g), R(V, B) && P(V));
@@ -222,7 +222,7 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
222
222
  const I = t.get(k);
223
223
  I && !// TODO This seems pretty hacky. Hope to fix it.
224
224
  // Maybe we could `mountDependencies` in `setAtomState`?
225
- (F && !on(F) && (Ft(F, T) || Kn(F, T))) && I.l.forEach((V) => V());
225
+ (F && !on(F) && (Ft(F, T) || $n(F, T))) && I.l.forEach((V) => V());
226
226
  } else
227
227
  ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] no atom state to flush");
228
228
  });
@@ -259,10 +259,10 @@ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new W
259
259
  };
260
260
  };
261
261
  let un;
262
- const pa = () => (un || (un = Ri()), un), ga = Ci(void 0), Ti = (e) => {
262
+ const pa = () => (un || (un = Ti()), un), ga = Ri(void 0), Li = (e) => {
263
263
  const t = wn(ga);
264
264
  return (e == null ? void 0 : e.store) || t || pa();
265
- }, ka = (e) => e instanceof Promise, ya = Fi.use || ((e) => {
265
+ }, ka = (e) => e instanceof Promise, ya = Ci.use || ((e) => {
266
266
  if (e.status === "pending")
267
267
  throw e;
268
268
  if (e.status === "fulfilled")
@@ -277,7 +277,7 @@ const pa = () => (un || (un = Ri()), un), ga = Ci(void 0), Ti = (e) => {
277
277
  ), e);
278
278
  });
279
279
  function _a(e, t) {
280
- const i = Ti(t), [[n, r, a], s] = oa(
280
+ const i = Li(t), [[n, r, a], s] = oa(
281
281
  (c) => {
282
282
  const f = i.get(e);
283
283
  return Object.is(c[0], f) && c[1] === i && c[2] === e ? c : [f, i, e];
@@ -300,7 +300,7 @@ function _a(e, t) {
300
300
  }, [i, e, l]), ua(o), ka(o) ? ya(o) : o;
301
301
  }
302
302
  function ba(e, t) {
303
- const i = Ti(t);
303
+ const i = Li(t);
304
304
  return la(
305
305
  (...r) => {
306
306
  if (({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in e))
@@ -317,7 +317,9 @@ function Sa(e, t) {
317
317
  ba(e, t)
318
318
  ];
319
319
  }
320
- const Li = ma(null), {
320
+ const En = ma(null);
321
+ En.debugLabel = "accountAtom";
322
+ const {
321
323
  NZ_AWS_REGION: Na,
322
324
  NZ_BACKOFFICE_BACK_URL: Oa,
323
325
  NZ_CORE_SERVICES_GRAPHQL_URL: wa,
@@ -626,8 +628,8 @@ function Ui() {
626
628
  }
627
629
  var Mi = Object.assign, It = Object.getOwnPropertyDescriptor, ve = Object.defineProperty, Wt = Object.prototype, pn = [];
628
630
  Object.freeze(pn);
629
- var En = {};
630
- Object.freeze(En);
631
+ var An = {};
632
+ Object.freeze(An);
631
633
  var Da = typeof Proxy != "undefined", Ia = /* @__PURE__ */ Object.toString();
632
634
  function Bi() {
633
635
  Da || W("Proxy not available");
@@ -726,14 +728,14 @@ var ja = Object.getOwnPropertyDescriptors || function(t) {
726
728
  i[n] = It(t, n);
727
729
  }), i;
728
730
  };
729
- function $n(e, t) {
731
+ function Wn(e, t) {
730
732
  for (var i = 0; i < t.length; i++) {
731
733
  var n = t[i];
732
734
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ba(n.key), n);
733
735
  }
734
736
  }
735
- function An(e, t, i) {
736
- return t && $n(e.prototype, t), i && $n(e, i), Object.defineProperty(e, "prototype", {
737
+ function Fn(e, t, i) {
738
+ return t && Wn(e.prototype, t), i && Wn(e, i), Object.defineProperty(e, "prototype", {
737
739
  writable: !1
738
740
  }), e;
739
741
  }
@@ -763,15 +765,15 @@ function ln(e) {
763
765
  function Ua(e, t) {
764
766
  if (e) {
765
767
  if (typeof e == "string")
766
- return Wn(e, t);
768
+ return Qn(e, t);
767
769
  var i = Object.prototype.toString.call(e).slice(8, -1);
768
770
  if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set")
769
771
  return Array.from(e);
770
772
  if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
771
- return Wn(e, t);
773
+ return Qn(e, t);
772
774
  }
773
775
  }
774
- function Wn(e, t) {
776
+ function Qn(e, t) {
775
777
  (t == null || t > e.length) && (t = e.length);
776
778
  for (var i = 0, n = new Array(t); i < t; i++)
777
779
  n[i] = e[i];
@@ -845,7 +847,7 @@ var M = /* @__PURE__ */ Symbol("mobx administration"), yt = /* @__PURE__ */ func
845
847
  }, t.toString = function() {
846
848
  return this.name_;
847
849
  }, e;
848
- }(), Fn = /* @__PURE__ */ Ve("Atom", yt);
850
+ }(), Cn = /* @__PURE__ */ Ve("Atom", yt);
849
851
  function qi(e, t, i) {
850
852
  t === void 0 && (t = Be), i === void 0 && (i = Be);
851
853
  var n = new yt(e);
@@ -855,10 +857,10 @@ function za(e, t) {
855
857
  return e === t;
856
858
  }
857
859
  function Ka(e, t) {
858
- return Dn(e, t);
860
+ return In(e, t);
859
861
  }
860
862
  function $a(e, t) {
861
- return Dn(e, t, 1);
863
+ return In(e, t, 1);
862
864
  }
863
865
  function Wa(e, t) {
864
866
  return Object.is ? Object.is(e, t) : e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
@@ -878,7 +880,7 @@ function Qe(e, t, i) {
878
880
  name: i
879
881
  }) : gt(e) ? ne.set(e, {
880
882
  name: i
881
- }) : typeof e == "function" && !Tn(e) && !Bt(e) ? zi(e) ? ct(e) : lt(i, e) : e;
883
+ }) : typeof e == "function" && !Ln(e) && !Bt(e) ? zi(e) ? ct(e) : lt(i, e) : e;
882
884
  }
883
885
  function Qa(e, t, i) {
884
886
  if (e == null || dt(e) || Zt(e) || je(e) || Ye(e))
@@ -908,7 +910,7 @@ function qt(e) {
908
910
  return e;
909
911
  }
910
912
  function qa(e, t) {
911
- return Dn(e, t) ? t : e;
913
+ return In(e, t) ? t : e;
912
914
  }
913
915
  var Ja = "override";
914
916
  function Ha(e) {
@@ -928,7 +930,7 @@ function Za(e, t, i, n) {
928
930
  return this.extend_(e, t, i, !1) === null ? 0 : 1;
929
931
  if (n === e.target_)
930
932
  return this.extend_(e, t, i, !1) === null ? 0 : 2;
931
- if (Tn(i.value))
933
+ if (Ln(i.value))
932
934
  return 1;
933
935
  var a = Ji(e, this, t, i, !1);
934
936
  return ve(n, t, a), 2;
@@ -1011,7 +1013,7 @@ function Zi(e, t, i, n, r, a) {
1011
1013
  writable: !a
1012
1014
  };
1013
1015
  }
1014
- function Cn(e, t) {
1016
+ function Rn(e, t) {
1015
1017
  return {
1016
1018
  annotationType_: e,
1017
1019
  options_: t,
@@ -1164,20 +1166,20 @@ var Ss = {
1164
1166
  shallow: /* @__PURE__ */ pe(ks),
1165
1167
  deep: tr,
1166
1168
  struct: /* @__PURE__ */ pe(ys)
1167
- }, ne = /* @__PURE__ */ Mi(nr, Ss), ir = "computed", Ns = "computed.struct", rr = /* @__PURE__ */ Cn(ir), Os = /* @__PURE__ */ Cn(Ns, {
1169
+ }, ne = /* @__PURE__ */ Mi(nr, Ss), ir = "computed", Ns = "computed.struct", rr = /* @__PURE__ */ Rn(ir), Os = /* @__PURE__ */ Rn(Ns, {
1168
1170
  equals: We.structural
1169
1171
  }), Ae = function(t, i) {
1170
1172
  if (Pe(i))
1171
1173
  return kt(t, i, rr);
1172
1174
  if (Se(t))
1173
- return pe(Cn(ir, t));
1175
+ return pe(Rn(ir, t));
1174
1176
  var n = Se(i) ? i : {};
1175
1177
  return n.get = t, n.name || (n.name = t.name || ""), new ut(n);
1176
1178
  };
1177
1179
  Object.assign(Ae, rr);
1178
1180
  Ae.struct = /* @__PURE__ */ pe(Os);
1179
- var Qn, qn, Vt = 0, ws = 1, Es = (Qn = (qn = /* @__PURE__ */ It(function() {
1180
- }, "name")) == null ? void 0 : qn.configurable) != null ? Qn : !1, Jn = {
1181
+ var qn, Jn, Vt = 0, ws = 1, Es = (qn = (Jn = /* @__PURE__ */ It(function() {
1182
+ }, "name")) == null ? void 0 : Jn.configurable) != null ? qn : !1, Hn = {
1181
1183
  value: "action",
1182
1184
  configurable: !0,
1183
1185
  writable: !1,
@@ -1188,7 +1190,7 @@ function qe(e, t, i, n) {
1188
1190
  function r() {
1189
1191
  return As(e, i, t, n || this, arguments);
1190
1192
  }
1191
- return r.isMobxAction = !0, Es && (Jn.value = e, ve(r, "name", Jn)), r;
1193
+ return r.isMobxAction = !0, Es && (Hn.value = e, ve(r, "name", Hn)), r;
1192
1194
  }
1193
1195
  function As(e, t, i, n, r) {
1194
1196
  var a = Fs(e, t);
@@ -1205,7 +1207,7 @@ function Fs(e, t, i, n) {
1205
1207
  ae();
1206
1208
  var l = x.allowStateChanges;
1207
1209
  o && (Xe(), l = bt(!0));
1208
- var c = Rn(!0), f = {
1210
+ var c = Tn(!0), f = {
1209
1211
  runAsAction_: o,
1210
1212
  prevDerivation_: s,
1211
1213
  prevAllowStateChanges_: l,
@@ -1355,7 +1357,7 @@ var ut = /* @__PURE__ */ function() {
1355
1357
  this.keepAlive_ || (yn(this), this.value_ = void 0);
1356
1358
  }, t.observe_ = function(n, r) {
1357
1359
  var a = this, s = !0, o = void 0;
1358
- return Ln(function() {
1360
+ return xn(function() {
1359
1361
  var l = a.get();
1360
1362
  if (!s || r) {
1361
1363
  var c = Xe();
@@ -1400,7 +1402,7 @@ function kn(e) {
1400
1402
  case $.STALE_:
1401
1403
  return !0;
1402
1404
  case $.POSSIBLY_STALE_: {
1403
- for (var t = Rn(!0), i = Xe(), n = e.observing_, r = n.length, a = 0; a < r; a++) {
1405
+ for (var t = Tn(!0), i = Xe(), n = e.observing_, r = n.length, a = 0; a < r; a++) {
1404
1406
  var s = n[a];
1405
1407
  if (Ht(s)) {
1406
1408
  if (x.disableErrorBoundaries)
@@ -1420,7 +1422,7 @@ function kn(e) {
1420
1422
  }
1421
1423
  }
1422
1424
  function ur(e, t, i) {
1423
- var n = Rn(!0);
1425
+ var n = Tn(!0);
1424
1426
  cr(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++x.runId;
1425
1427
  var r = x.trackingDerivation;
1426
1428
  x.trackingDerivation = e, x.inBatch++;
@@ -1472,7 +1474,7 @@ function Xe() {
1472
1474
  function Re(e) {
1473
1475
  x.trackingDerivation = e;
1474
1476
  }
1475
- function Rn(e) {
1477
+ function Tn(e) {
1476
1478
  var t = x.allowStateReads;
1477
1479
  return x.allowStateReads = e, t;
1478
1480
  }
@@ -1643,12 +1645,12 @@ var lt = /* @__PURE__ */ _r(!0);
1643
1645
  Object.assign(lt, yr);
1644
1646
  Fe.bound = /* @__PURE__ */ pe(Bs);
1645
1647
  lt.bound = /* @__PURE__ */ pe(Gs);
1646
- function Tn(e) {
1648
+ function Ln(e) {
1647
1649
  return he(e) && e.isMobxAction === !0;
1648
1650
  }
1649
- function Ln(e, t) {
1651
+ function xn(e, t) {
1650
1652
  var i, n;
1651
- t === void 0 && (t = En);
1653
+ t === void 0 && (t = An);
1652
1654
  var r = (i = (n = t) == null ? void 0 : n.name) != null ? i : "Autorun", a = !t.scheduler && !t.delay, s;
1653
1655
  if (a)
1654
1656
  s = new Ut(r, function() {
@@ -1677,7 +1679,7 @@ function br(e) {
1677
1679
  }
1678
1680
  function Ks(e, t, i) {
1679
1681
  var n;
1680
- i === void 0 && (i = En);
1682
+ i === void 0 && (i = An);
1681
1683
  var r = (n = i.name) != null ? n : "Reaction", a = Fe(r, i.onError ? $s(i.onError, t) : t), s = !i.scheduler && !i.delay, o = br(i), l = !0, c = !1, f, v, O = i.compareStructural ? We.structural : i.equals || We.default, A = new Ut(r, function() {
1682
1684
  l || s ? R() : c || (c = !0, o(R));
1683
1685
  }, i.onError, i.requiresObservable);
@@ -1739,11 +1741,11 @@ function wr() {
1739
1741
  this.message = "FLOW_CANCELLED";
1740
1742
  }
1741
1743
  wr.prototype = /* @__PURE__ */ Object.create(Error.prototype);
1742
- var Hn = /* @__PURE__ */ Hi("flow"), Hs = /* @__PURE__ */ Hi("flow.bound", {
1744
+ var Zn = /* @__PURE__ */ Hi("flow"), Hs = /* @__PURE__ */ Hi("flow.bound", {
1743
1745
  bound: !0
1744
1746
  }), ct = /* @__PURE__ */ Object.assign(function(t, i) {
1745
1747
  if (Pe(i))
1746
- return kt(t, i, Hn);
1748
+ return kt(t, i, Zn);
1747
1749
  var n = t, r = n.name || "<unnamed flow>", a = function() {
1748
1750
  var o = this, l = arguments, c = ++Js, f = Fe(r + " - runid: " + c + " - init", n).apply(o, l), v, O = void 0, A = new Promise(function(R, b) {
1749
1751
  var _ = 0;
@@ -1779,25 +1781,25 @@ var Hn = /* @__PURE__ */ Hi("flow"), Hs = /* @__PURE__ */ Hi("flow.bound", {
1779
1781
  });
1780
1782
  return A.cancel = Fe(r + " - runid: " + c + " - cancel", function() {
1781
1783
  try {
1782
- O && Zn(O);
1784
+ O && Xn(O);
1783
1785
  var R = f.return(void 0), b = Promise.resolve(R.value);
1784
- b.then(Be, Be), Zn(b), v(new wr());
1786
+ b.then(Be, Be), Xn(b), v(new wr());
1785
1787
  } catch (_) {
1786
1788
  v(_);
1787
1789
  }
1788
1790
  }), A;
1789
1791
  };
1790
1792
  return a.isMobXFlow = !0, a;
1791
- }, Hn);
1793
+ }, Zn);
1792
1794
  ct.bound = /* @__PURE__ */ pe(Hs);
1793
- function Zn(e) {
1795
+ function Xn(e) {
1794
1796
  he(e.cancel) && e.cancel();
1795
1797
  }
1796
1798
  function Bt(e) {
1797
1799
  return (e == null ? void 0 : e.isMobXFlow) === !0;
1798
1800
  }
1799
1801
  function Zs(e, t) {
1800
- return e ? t !== void 0 ? dt(e) ? e[M].values_.has(t) : !1 : dt(e) || !!e[M] || Fn(e) || Mt(e) || Ht(e) : !1;
1802
+ return e ? t !== void 0 ? dt(e) ? e[M].values_.has(t) : !1 : dt(e) || !!e[M] || Cn(e) || Mt(e) || Ht(e) : !1;
1801
1803
  }
1802
1804
  function Nt(e) {
1803
1805
  return Zs(e);
@@ -1938,7 +1940,7 @@ function io(e, t, i) {
1938
1940
  }
1939
1941
  return e;
1940
1942
  }
1941
- var Xn = "splice", ge = "update", ro = 1e4, ao = {
1943
+ var Yn = "splice", ge = "update", ro = 1e4, ao = {
1942
1944
  get: function(t, i) {
1943
1945
  var n = t[M];
1944
1946
  return i === M ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : be(Gt, i) ? Gt[i] : t[i];
@@ -1950,7 +1952,7 @@ var Xn = "splice", ge = "update", ro = 1e4, ao = {
1950
1952
  preventExtensions: function() {
1951
1953
  W(15);
1952
1954
  }
1953
- }, xn = /* @__PURE__ */ function() {
1955
+ }, Pn = /* @__PURE__ */ function() {
1954
1956
  function e(i, n, r, a) {
1955
1957
  i === void 0 && (i = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = r, this.legacyMode_ = a, this.atom_ = new yt(i), this.enhancer_ = function(s, o) {
1956
1958
  return n(s, o, "ObservableArray[..]");
@@ -1996,7 +1998,7 @@ var Xn = "splice", ge = "update", ro = 1e4, ao = {
1996
1998
  if (n === void 0 ? n = 0 : n > o ? n = o : n < 0 && (n = Math.max(0, o + n)), arguments.length === 1 ? r = o - n : r == null ? r = 0 : r = Math.max(0, Math.min(r, o - n)), a === void 0 && (a = pn), oe(this)) {
1997
1999
  var l = ue(this, {
1998
2000
  object: this.proxy_,
1999
- type: Xn,
2001
+ type: Yn,
2000
2002
  index: n,
2001
2003
  removedCount: r,
2002
2004
  added: a
@@ -2042,7 +2044,7 @@ var Xn = "splice", ge = "update", ro = 1e4, ao = {
2042
2044
  observableKind: "array",
2043
2045
  object: this.proxy_,
2044
2046
  debugObjectName: this.atom_.name_,
2045
- type: Xn,
2047
+ type: Yn,
2046
2048
  index: n,
2047
2049
  removed: a,
2048
2050
  added: r,
@@ -2084,7 +2086,7 @@ var Xn = "splice", ge = "update", ro = 1e4, ao = {
2084
2086
  }();
2085
2087
  function so(e, t, i, n) {
2086
2088
  i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Bi();
2087
- var r = new xn(i, t, n, !1);
2089
+ var r = new Pn(i, t, n, !1);
2088
2090
  Ki(r.values_, M, r);
2089
2091
  var a = new Proxy(r.values_, ao);
2090
2092
  if (r.proxy_ = a, e && e.length) {
@@ -2207,7 +2209,7 @@ function Er(e) {
2207
2209
  }, n[e].apply(n, arguments);
2208
2210
  };
2209
2211
  }
2210
- var oo = /* @__PURE__ */ Ve("ObservableArrayAdministration", xn);
2212
+ var oo = /* @__PURE__ */ Ve("ObservableArrayAdministration", Pn);
2211
2213
  function Zt(e) {
2212
2214
  return Qt(e) && oo(e[M]);
2213
2215
  }
@@ -2407,7 +2409,7 @@ var Cr = /* @__PURE__ */ function() {
2407
2409
  return wt(this, n);
2408
2410
  }, t.intercept_ = function(n) {
2409
2411
  return Ot(this, n);
2410
- }, An(e, [{
2412
+ }, Fn(e, [{
2411
2413
  key: "size",
2412
2414
  get: function() {
2413
2415
  return this.keysAtom_.reportObserved(), this.data_.size;
@@ -2557,7 +2559,7 @@ var Lr = /* @__PURE__ */ function() {
2557
2559
  return "[object ObservableSet]";
2558
2560
  }, t[Rr] = function() {
2559
2561
  return this.values();
2560
- }, An(e, [{
2562
+ }, Fn(e, [{
2561
2563
  key: "size",
2562
2564
  get: function() {
2563
2565
  return this.atom_.reportObserved(), this.data_.size;
@@ -2568,7 +2570,7 @@ var Lr = /* @__PURE__ */ function() {
2568
2570
  return "Set";
2569
2571
  }
2570
2572
  }]), e;
2571
- }(), Ye = /* @__PURE__ */ Ve("ObservableSet", Lr), Yn = /* @__PURE__ */ Object.create(null), ei = "remove", xr = /* @__PURE__ */ function() {
2573
+ }(), Ye = /* @__PURE__ */ Ve("ObservableSet", Lr), ei = /* @__PURE__ */ Object.create(null), ti = "remove", xr = /* @__PURE__ */ function() {
2572
2574
  function e(i, n, r, a) {
2573
2575
  n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = cs), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = i, this.values_ = n, this.name_ = r, this.defaultAnnotation_ = a, this.keysAtom_ = new yt("ObservableObject.keys"), this.isPlainObject_ = Se(this.target_);
2574
2576
  }
@@ -2637,13 +2639,13 @@ var Lr = /* @__PURE__ */ function() {
2637
2639
  }
2638
2640
  s = Object.getPrototypeOf(s);
2639
2641
  }
2640
- ni(this, r, n);
2642
+ ii(this, r, n);
2641
2643
  }
2642
2644
  }, t.extend_ = function(n, r, a, s) {
2643
2645
  if (s === void 0 && (s = !1), a === !0 && (a = this.defaultAnnotation_), a === !1)
2644
2646
  return this.defineProperty_(n, r, s);
2645
2647
  var o = a.extend_(this, n, r, s);
2646
- return o && ni(this, a, n), o;
2648
+ return o && ii(this, a, n), o;
2647
2649
  }, t.defineProperty_ = function(n, r, a) {
2648
2650
  a === void 0 && (a = !1);
2649
2651
  try {
@@ -2693,7 +2695,7 @@ var Lr = /* @__PURE__ */ function() {
2693
2695
  return null;
2694
2696
  r = l.newValue;
2695
2697
  }
2696
- var c = ti(n), f = {
2698
+ var c = ni(n), f = {
2697
2699
  configurable: x.safeDescriptors ? this.isPlainObject_ : !0,
2698
2700
  enumerable: !0,
2699
2701
  get: c.get,
@@ -2728,7 +2730,7 @@ var Lr = /* @__PURE__ */ function() {
2728
2730
  return null;
2729
2731
  }
2730
2732
  r.name || (r.name = "ObservableObject.key"), r.context = this.proxy_ || this.target_;
2731
- var l = ti(n), c = {
2733
+ var l = ni(n), c = {
2732
2734
  configurable: x.safeDescriptors ? this.isPlainObject_ : !0,
2733
2735
  enumerable: !1,
2734
2736
  get: l.get,
@@ -2751,7 +2753,7 @@ var Lr = /* @__PURE__ */ function() {
2751
2753
  var a = ue(this, {
2752
2754
  object: this.proxy_ || this.target_,
2753
2755
  name: n,
2754
- type: ei
2756
+ type: ti
2755
2757
  });
2756
2758
  if (!a)
2757
2759
  return null;
@@ -2771,7 +2773,7 @@ var Lr = /* @__PURE__ */ function() {
2771
2773
  delete this.target_[n];
2772
2774
  if (f && (this.values_.delete(n), f instanceof ze && (v = f.value_), mr(f)), this.keysAtom_.reportChanged(), (s = this.pendingKeys_) == null || (o = s.get(n)) == null || o.set(n in this.target_), l || c) {
2773
2775
  var A = {
2774
- type: ei,
2776
+ type: ti,
2775
2777
  observableKind: "object",
2776
2778
  object: this.proxy_ || this.target_,
2777
2779
  debugObjectName: this.name_,
@@ -2816,8 +2818,8 @@ function Et(e, t) {
2816
2818
  return pt(e, M, r), e;
2817
2819
  }
2818
2820
  var fo = /* @__PURE__ */ Ve("ObservableObjectAdministration", xr);
2819
- function ti(e) {
2820
- return Yn[e] || (Yn[e] = {
2821
+ function ni(e) {
2822
+ return ei[e] || (ei[e] = {
2821
2823
  get: function() {
2822
2824
  return this[M].getObservablePropValue_(e);
2823
2825
  },
@@ -2829,7 +2831,7 @@ function ti(e) {
2829
2831
  function dt(e) {
2830
2832
  return Qt(e) ? fo(e[M]) : !1;
2831
2833
  }
2832
- function ni(e, t, i) {
2834
+ function ii(e, t, i) {
2833
2835
  var n;
2834
2836
  (n = e.target_[me]) == null || delete n[i];
2835
2837
  }
@@ -2839,12 +2841,12 @@ function mo(e, t) {
2839
2841
  Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
2840
2842
  }
2841
2843
  mo(Pr, Array.prototype);
2842
- var Pn = /* @__PURE__ */ function(e, t, i) {
2844
+ var Dn = /* @__PURE__ */ function(e, t, i) {
2843
2845
  Qi(n, e);
2844
2846
  function n(a, s, o, l) {
2845
2847
  var c;
2846
2848
  o === void 0 && (o = "ObservableArray"), l === void 0 && (l = !1), c = e.call(this) || this;
2847
- var f = new xn(o, s, l, !0);
2849
+ var f = new Pn(o, s, l, !0);
2848
2850
  if (f.proxy_ = ln(c), Ki(ln(c), M, f), a && a.length) {
2849
2851
  var v = bt(!0);
2850
2852
  c.spliceWithArray(0, 0, a), St(v);
@@ -2876,7 +2878,7 @@ var Pn = /* @__PURE__ */ function(e, t, i) {
2876
2878
  };
2877
2879
  }
2878
2880
  });
2879
- }, An(n, [{
2881
+ }, Fn(n, [{
2880
2882
  key: "length",
2881
2883
  get: function() {
2882
2884
  return this[M].getArrayLength_();
@@ -2893,7 +2895,7 @@ var Pn = /* @__PURE__ */ function(e, t, i) {
2893
2895
  }(Pr, Symbol.toStringTag, Symbol.iterator);
2894
2896
  Object.entries(Gt).forEach(function(e) {
2895
2897
  var t = e[0], i = e[1];
2896
- t !== "concat" && pt(Pn.prototype, t, i);
2898
+ t !== "concat" && pt(Dn.prototype, t, i);
2897
2899
  });
2898
2900
  function Dr(e) {
2899
2901
  return {
@@ -2908,7 +2910,7 @@ function Dr(e) {
2908
2910
  };
2909
2911
  }
2910
2912
  function vo(e) {
2911
- ve(Pn.prototype, "" + e, Dr(e));
2913
+ ve(Dn.prototype, "" + e, Dr(e));
2912
2914
  }
2913
2915
  function Ir(e) {
2914
2916
  if (e > hn) {
@@ -2919,7 +2921,7 @@ function Ir(e) {
2919
2921
  }
2920
2922
  Ir(1e3);
2921
2923
  function po(e, t, i) {
2922
- return new Pn(e, t, i);
2924
+ return new Dn(e, t, i);
2923
2925
  }
2924
2926
  function De(e, t) {
2925
2927
  if (typeof e == "object" && e !== null) {
@@ -2939,7 +2941,7 @@ function De(e, t) {
2939
2941
  var n = e[M].values_.get(t);
2940
2942
  return n || W(27, t, _n(e)), n;
2941
2943
  }
2942
- if (Fn(e) || Ht(e) || Mt(e))
2944
+ if (Cn(e) || Ht(e) || Mt(e))
2943
2945
  return e;
2944
2946
  } else if (he(e) && Mt(e[M]))
2945
2947
  return e[M];
@@ -2948,7 +2950,7 @@ function De(e, t) {
2948
2950
  function Vr(e, t) {
2949
2951
  if (e || W(29), t !== void 0)
2950
2952
  return Vr(De(e, t));
2951
- if (Fn(e) || Ht(e) || Mt(e) || je(e) || Ye(e))
2953
+ if (Cn(e) || Ht(e) || Mt(e) || je(e) || Ye(e))
2952
2954
  return e;
2953
2955
  if (e[M])
2954
2956
  return e[M];
@@ -2959,14 +2961,14 @@ function _n(e, t) {
2959
2961
  if (t !== void 0)
2960
2962
  i = De(e, t);
2961
2963
  else {
2962
- if (Tn(e))
2964
+ if (Ln(e))
2963
2965
  return e.name;
2964
2966
  dt(e) || je(e) || Ye(e) ? i = Vr(e) : i = De(e);
2965
2967
  }
2966
2968
  return i.name_;
2967
2969
  }
2968
- var ii = Wt.toString;
2969
- function Dn(e, t, i) {
2970
+ var ri = Wt.toString;
2971
+ function In(e, t, i) {
2970
2972
  return i === void 0 && (i = -1), bn(e, t, i);
2971
2973
  }
2972
2974
  function bn(e, t, i, n, r) {
@@ -2979,8 +2981,8 @@ function bn(e, t, i, n, r) {
2979
2981
  var a = typeof e;
2980
2982
  if (a !== "function" && a !== "object" && typeof t != "object")
2981
2983
  return !1;
2982
- var s = ii.call(e);
2983
- if (s !== ii.call(t))
2984
+ var s = ri.call(e);
2985
+ if (s !== ri.call(t))
2984
2986
  return !1;
2985
2987
  switch (s) {
2986
2988
  case "[object RegExp]":
@@ -2998,7 +3000,7 @@ function bn(e, t, i, n, r) {
2998
3000
  i >= 0 && i++;
2999
3001
  break;
3000
3002
  }
3001
- e = ri(e), t = ri(t);
3003
+ e = ai(e), t = ai(t);
3002
3004
  var o = s === "[object Array]";
3003
3005
  if (!o) {
3004
3006
  if (typeof e != "object" || typeof t != "object")
@@ -3029,7 +3031,7 @@ function bn(e, t, i, n, r) {
3029
3031
  }
3030
3032
  return n.pop(), r.pop(), !0;
3031
3033
  }
3032
- function ri(e) {
3034
+ function ai(e) {
3033
3035
  return Zt(e) ? e.slice() : Ze(e) || je(e) || gt(e) || Ye(e) ? Array.from(e.entries()) : e;
3034
3036
  }
3035
3037
  function ft(e) {
@@ -3896,6 +3898,7 @@ class Oo {
3896
3898
  }
3897
3899
  }
3898
3900
  const Ee = class {
3901
+ // readonly globalAtomStore = createStore();
3899
3902
  constructor() {
3900
3903
  G(this, "_productDataSource", null);
3901
3904
  G(this, "_configManager", new So());
@@ -4000,7 +4003,7 @@ class oc {
4000
4003
  }
4001
4004
  }
4002
4005
  var Gr = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.VTEX_IO = "VTEX-IO", e.VTEX_CMS = "PORTAL-VTEX", e.PLATFORM = "PLATFORM", e.UNKNOWN = "UNKNOWN", e))(Gr || {}), To = /* @__PURE__ */ ((e) => (e.PLATFORM = "platform_module", e.ADENDA = "subscription_module", e.APP_STORE = "app_store", e))(To || {}), zr = /* @__PURE__ */ ((e) => (e.ACTIVE = "active_contract", e.INACTIVE = "inactive_contract", e))(zr || {}), Lo = /* @__PURE__ */ ((e) => (e.LITE = "lite", e.STANDARD = "standard", e.PRO = "pro", e))(Lo || {}), xo = /* @__PURE__ */ ((e) => (e.LITE = "PLAN_LITE", e.STANDARD = "PLAN_ESTANDAR", e.PRO = "PLAN_PRO", e.NONE = "NO_PLAN", e))(xo || {}), Po = /* @__PURE__ */ ((e) => (e.PAST = "past", e.LIVE = "live", e.FUTURE = "future", e))(Po || {});
4003
- class In {
4006
+ class Vn {
4004
4007
  constructor(t) {
4005
4008
  G(this, "root", Ro(this));
4006
4009
  G(this, "id");
@@ -4034,7 +4037,7 @@ class In {
4034
4037
  ...n,
4035
4038
  createdAt: new Date(Number(i))
4036
4039
  };
4037
- return new In(r);
4040
+ return new Vn(r);
4038
4041
  }
4039
4042
  toPrimitives() {
4040
4043
  const { root: t, createdAt: i, ...n } = this;
@@ -4050,7 +4053,7 @@ class Io {
4050
4053
  const i = `${Do}/${t}`, { data: n } = await xi({
4051
4054
  url: i
4052
4055
  });
4053
- return n ? In.toDomain(n) : null;
4056
+ return n ? Vn.toDomain(n) : null;
4054
4057
  }
4055
4058
  }
4056
4059
  class Vo {
@@ -4069,7 +4072,7 @@ class Vo {
4069
4072
  }
4070
4073
  }
4071
4074
  const jo = new Io(), Kr = new Vo(jo);
4072
- class Vn {
4075
+ class jn {
4073
4076
  constructor() {
4074
4077
  this.listeners = [], this.subscribe = this.subscribe.bind(this);
4075
4078
  }
@@ -4089,7 +4092,7 @@ class Vn {
4089
4092
  const Kt = typeof window == "undefined" || "Deno" in window;
4090
4093
  function Uo() {
4091
4094
  }
4092
- function ai(e) {
4095
+ function si(e) {
4093
4096
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
4094
4097
  }
4095
4098
  function Mo(e, t) {
@@ -4108,8 +4111,8 @@ function Bo(e, t, i) {
4108
4111
  function $r(e, t) {
4109
4112
  if (e === t)
4110
4113
  return e;
4111
- const i = oi(e) && oi(t);
4112
- if (i || ui(e) && ui(t)) {
4114
+ const i = ui(e) && ui(t);
4115
+ if (i || li(e) && li(t)) {
4113
4116
  const n = i ? e.length : Object.keys(e).length, r = i ? t : Object.keys(t), a = r.length, s = i ? [] : {};
4114
4117
  let o = 0;
4115
4118
  for (let l = 0; l < a; l++) {
@@ -4120,7 +4123,7 @@ function $r(e, t) {
4120
4123
  }
4121
4124
  return t;
4122
4125
  }
4123
- function si(e, t) {
4126
+ function oi(e, t) {
4124
4127
  if (e && !t || t && !e)
4125
4128
  return !1;
4126
4129
  for (const i in e)
@@ -4128,19 +4131,19 @@ function si(e, t) {
4128
4131
  return !1;
4129
4132
  return !0;
4130
4133
  }
4131
- function oi(e) {
4134
+ function ui(e) {
4132
4135
  return Array.isArray(e) && e.length === Object.keys(e).length;
4133
4136
  }
4134
- function ui(e) {
4135
- if (!li(e))
4137
+ function li(e) {
4138
+ if (!ci(e))
4136
4139
  return !1;
4137
4140
  const t = e.constructor;
4138
4141
  if (typeof t == "undefined")
4139
4142
  return !0;
4140
4143
  const i = t.prototype;
4141
- return !(!li(i) || !i.hasOwnProperty("isPrototypeOf"));
4144
+ return !(!ci(i) || !i.hasOwnProperty("isPrototypeOf"));
4142
4145
  }
4143
- function li(e) {
4146
+ function ci(e) {
4144
4147
  return Object.prototype.toString.call(e) === "[object Object]";
4145
4148
  }
4146
4149
  function Go(e) {
@@ -4151,13 +4154,13 @@ function zo(e) {
4151
4154
  setTimeout(t, e);
4152
4155
  });
4153
4156
  }
4154
- function ci(e) {
4157
+ function di(e) {
4155
4158
  zo(0).then(e);
4156
4159
  }
4157
- function di(e, t, i) {
4160
+ function fi(e, t, i) {
4158
4161
  return i.isDataEqual != null && i.isDataEqual(e, t) ? e : typeof i.structuralSharing == "function" ? i.structuralSharing(e, t) : i.structuralSharing !== !1 ? $r(e, t) : t;
4159
4162
  }
4160
- class Ko extends Vn {
4163
+ class Ko extends jn {
4161
4164
  constructor() {
4162
4165
  super(), this.setup = (t) => {
4163
4166
  if (!Kt && window.addEventListener) {
@@ -4196,7 +4199,7 @@ class Ko extends Vn {
4196
4199
  }
4197
4200
  }
4198
4201
  const $o = new Ko();
4199
- class Wo extends Vn {
4202
+ class Wo extends jn {
4200
4203
  constructor() {
4201
4204
  super(), this.setup = (t) => {
4202
4205
  if (!Kt && window.addEventListener) {
@@ -4262,7 +4265,7 @@ function Zo() {
4262
4265
  }
4263
4266
  return v;
4264
4267
  }, a = (f) => {
4265
- t ? e.push(f) : ci(() => {
4268
+ t ? e.push(f) : di(() => {
4266
4269
  i(f);
4267
4270
  });
4268
4271
  }, s = (f) => (...v) => {
@@ -4271,7 +4274,7 @@ function Zo() {
4271
4274
  });
4272
4275
  }, o = () => {
4273
4276
  const f = e;
4274
- e = [], f.length && ci(() => {
4277
+ e = [], f.length && di(() => {
4275
4278
  n(() => {
4276
4279
  f.forEach((v) => {
4277
4280
  i(v);
@@ -4292,7 +4295,7 @@ function Zo() {
4292
4295
  };
4293
4296
  }
4294
4297
  const at = Zo();
4295
- class Xo extends Vn {
4298
+ class Xo extends jn {
4296
4299
  constructor(t, i) {
4297
4300
  super(), this.client = t, this.options = i, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(i);
4298
4301
  }
@@ -4300,7 +4303,7 @@ class Xo extends Vn {
4300
4303
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
4301
4304
  }
4302
4305
  onSubscribe() {
4303
- this.listeners.length === 1 && (this.currentQuery.addObserver(this), fi(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
4306
+ this.listeners.length === 1 && (this.currentQuery.addObserver(this), hi(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
4304
4307
  }
4305
4308
  onUnsubscribe() {
4306
4309
  this.listeners.length || this.destroy();
@@ -4316,7 +4319,7 @@ class Xo extends Vn {
4316
4319
  }
4317
4320
  setOptions(t, i) {
4318
4321
  const n = this.options, r = this.currentQuery;
4319
- if (this.options = this.client.defaultQueryOptions(t), si(n, this.options) || this.client.getQueryCache().notify({
4322
+ if (this.options = this.client.defaultQueryOptions(t), oi(n, this.options) || this.client.getQueryCache().notify({
4320
4323
  type: "observerOptionsUpdated",
4321
4324
  query: this.currentQuery,
4322
4325
  observer: this
@@ -4324,7 +4327,7 @@ class Xo extends Vn {
4324
4327
  throw new Error("Expected enabled to be a boolean");
4325
4328
  this.options.queryKey || (this.options.queryKey = n.queryKey), this.updateQuery();
4326
4329
  const a = this.hasListeners();
4327
- a && hi(this.currentQuery, r, this.options, n) && this.executeFetch(), this.updateResult(i), a && (this.currentQuery !== r || this.options.enabled !== n.enabled || this.options.staleTime !== n.staleTime) && this.updateStaleTimeout();
4330
+ a && mi(this.currentQuery, r, this.options, n) && this.executeFetch(), this.updateResult(i), a && (this.currentQuery !== r || this.options.enabled !== n.enabled || this.options.staleTime !== n.staleTime) && this.updateStaleTimeout();
4328
4331
  const s = this.computeRefetchInterval();
4329
4332
  a && (this.currentQuery !== r || this.options.enabled !== n.enabled || s !== this.currentRefetchInterval) && this.updateRefetchInterval(s);
4330
4333
  }
@@ -4379,7 +4382,7 @@ class Xo extends Vn {
4379
4382
  return t != null && t.throwOnError || (i = i.catch(Uo)), i;
4380
4383
  }
4381
4384
  updateStaleTimeout() {
4382
- if (this.clearStaleTimeout(), Kt || this.currentResult.isStale || !ai(this.options.staleTime))
4385
+ if (this.clearStaleTimeout(), Kt || this.currentResult.isStale || !si(this.options.staleTime))
4383
4386
  return;
4384
4387
  const i = Mo(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
4385
4388
  this.staleTimeoutId = setTimeout(() => {
@@ -4391,7 +4394,7 @@ class Xo extends Vn {
4391
4394
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (t = this.options.refetchInterval) != null ? t : !1;
4392
4395
  }
4393
4396
  updateRefetchInterval(t) {
4394
- this.clearRefetchInterval(), this.currentRefetchInterval = t, !(Kt || this.options.enabled === !1 || !ai(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
4397
+ this.clearRefetchInterval(), this.currentRefetchInterval = t, !(Kt || this.options.enabled === !1 || !si(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
4395
4398
  (this.options.refetchIntervalInBackground || $o.isFocused()) && this.executeFetch();
4396
4399
  }, this.currentRefetchInterval));
4397
4400
  }
@@ -4416,7 +4419,7 @@ class Xo extends Vn {
4416
4419
  status: _
4417
4420
  } = v, C = !1, L = !1, U;
4418
4421
  if (i._optimisticResults) {
4419
- const g = this.hasListeners(), k = !g && fi(t, i), F = g && hi(t, n, i, r);
4422
+ const g = this.hasListeners(), k = !g && hi(t, i), F = g && mi(t, n, i, r);
4420
4423
  (k || F) && (b = qo(t.options.networkMode) ? "fetching" : "paused", O || (_ = "loading")), i._optimisticResults === "isRestoring" && (b = "idle");
4421
4424
  }
4422
4425
  if (i.keepPreviousData && !v.dataUpdatedAt && f != null && f.isSuccess && _ !== "error")
@@ -4426,7 +4429,7 @@ class Xo extends Vn {
4426
4429
  U = this.selectResult;
4427
4430
  else
4428
4431
  try {
4429
- this.selectFn = i.select, U = i.select(v.data), U = di(a == null ? void 0 : a.data, U, i), this.selectResult = U, this.selectError = null;
4432
+ this.selectFn = i.select, U = i.select(v.data), U = fi(a == null ? void 0 : a.data, U, i), this.selectResult = U, this.selectError = null;
4430
4433
  } catch (g) {
4431
4434
  this.selectError = g;
4432
4435
  }
@@ -4442,7 +4445,7 @@ class Xo extends Vn {
4442
4445
  } catch (k) {
4443
4446
  this.selectError = k;
4444
4447
  }
4445
- typeof g != "undefined" && (_ = "success", U = di(a == null ? void 0 : a.data, g, i), L = !0);
4448
+ typeof g != "undefined" && (_ = "success", U = fi(a == null ? void 0 : a.data, g, i), L = !0);
4446
4449
  }
4447
4450
  this.selectError && (A = this.selectError, U = this.selectResult, R = Date.now(), _ = "error");
4448
4451
  const P = b === "fetching", z = _ === "loading", Q = _ === "error";
@@ -4469,14 +4472,14 @@ class Xo extends Vn {
4469
4472
  isPlaceholderData: L,
4470
4473
  isPreviousData: C,
4471
4474
  isRefetchError: Q && v.dataUpdatedAt !== 0,
4472
- isStale: jn(t, i),
4475
+ isStale: Un(t, i),
4473
4476
  refetch: this.refetch,
4474
4477
  remove: this.remove
4475
4478
  };
4476
4479
  }
4477
4480
  updateResult(t) {
4478
4481
  const i = this.currentResult, n = this.createResult(this.currentQuery, this.options);
4479
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, si(n, i))
4482
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, oi(n, i))
4480
4483
  return;
4481
4484
  this.currentResult = n;
4482
4485
  const r = {
@@ -4532,20 +4535,20 @@ class Xo extends Vn {
4532
4535
  function Yo(e, t) {
4533
4536
  return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
4534
4537
  }
4535
- function fi(e, t) {
4538
+ function hi(e, t) {
4536
4539
  return Yo(e, t) || e.state.dataUpdatedAt > 0 && Sn(e, t, t.refetchOnMount);
4537
4540
  }
4538
4541
  function Sn(e, t, i) {
4539
4542
  if (t.enabled !== !1) {
4540
4543
  const n = typeof i == "function" ? i(e) : i;
4541
- return n === "always" || n !== !1 && jn(e, t);
4544
+ return n === "always" || n !== !1 && Un(e, t);
4542
4545
  }
4543
4546
  return !1;
4544
4547
  }
4545
- function hi(e, t, i, n) {
4546
- return i.enabled !== !1 && (e !== t || n.enabled === !1) && (!i.suspense || e.state.status !== "error") && jn(e, i);
4548
+ function mi(e, t, i, n) {
4549
+ return i.enabled !== !1 && (e !== t || n.enabled === !1) && (!i.suspense || e.state.status !== "error") && Un(e, i);
4547
4550
  }
4548
- function jn(e, t) {
4551
+ function Un(e, t) {
4549
4552
  return e.isStaleByTime(t.staleTime);
4550
4553
  }
4551
4554
  var Wr = { exports: {} }, Qr = {};
@@ -4558,7 +4561,7 @@ var Wr = { exports: {} }, Qr = {};
4558
4561
  * This source code is licensed under the MIT license found in the
4559
4562
  * LICENSE file in the root directory of this source tree.
4560
4563
  */
4561
- var Je = Fi;
4564
+ var Je = Ci;
4562
4565
  function eu(e, t) {
4563
4566
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
4564
4567
  }
@@ -4590,9 +4593,9 @@ var uu = typeof window == "undefined" || typeof window.document == "undefined" |
4590
4593
  Qr.useSyncExternalStore = Je.useSyncExternalStore !== void 0 ? Je.useSyncExternalStore : uu;
4591
4594
  Wr.exports = Qr;
4592
4595
  var lu = Wr.exports;
4593
- const cu = lu.useSyncExternalStore, mi = /* @__PURE__ */ le.createContext(void 0), du = /* @__PURE__ */ le.createContext(!1);
4596
+ const cu = lu.useSyncExternalStore, vi = /* @__PURE__ */ le.createContext(void 0), du = /* @__PURE__ */ le.createContext(!1);
4594
4597
  function fu(e, t) {
4595
- return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = mi), window.ReactQueryClientContext) : mi);
4598
+ return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = vi), window.ReactQueryClientContext) : vi);
4596
4599
  }
4597
4600
  const hu = ({
4598
4601
  context: e
@@ -4665,11 +4668,11 @@ function Au(e, t, i) {
4665
4668
  const n = Bo(e, t, i);
4666
4669
  return Eu(n, Xo);
4667
4670
  }
4668
- let Un = /* @__PURE__ */ new Map();
4669
- const Nn = Ci(Un), uc = ({ children: e, stores: t }) => {
4671
+ let Mn = /* @__PURE__ */ new Map();
4672
+ const Nn = Ri(Mn), uc = ({ children: e, stores: t }) => {
4670
4673
  const i = wn(Nn), n = ca(() => {
4671
4674
  const r = /* @__PURE__ */ new Map();
4672
- return t.forEach((a) => r.set(a.class, a.value)), Un = new Map([...i, ...r]);
4675
+ return t.forEach((a) => r.set(a.class, a.value)), Mn = new Map([...i, ...r]);
4673
4676
  }, []);
4674
4677
  return /* @__PURE__ */ fa(Nn.Provider, { value: n, children: e });
4675
4678
  };
@@ -4677,19 +4680,19 @@ function lc(e) {
4677
4680
  return wn(Nn).get(e);
4678
4681
  }
4679
4682
  function cc(e) {
4680
- return Un.get(e);
4683
+ return Mn.get(e);
4681
4684
  }
4682
4685
  function dc(e, t = []) {
4683
4686
  if (Array.isArray(t) && t.some((i) => Nt(i)))
4684
4687
  throw new Error("useEffect dependencies must not contain observables, ...");
4685
- vt(() => Ln(e), t);
4688
+ vt(() => xn(e), t);
4686
4689
  }
4687
4690
  function Fu(e, t = []) {
4688
4691
  if (Array.isArray(t) && t.some((r) => Nt(r)))
4689
4692
  throw new Error("useEffect dependencies must not contain observables, ...");
4690
4693
  const [i, n] = da();
4691
4694
  return vt(
4692
- () => Ln(() => {
4695
+ () => xn(() => {
4693
4696
  const r = e();
4694
4697
  n(r);
4695
4698
  }),
@@ -4705,7 +4708,7 @@ const Cu = () => ["account"], hc = () => {
4705
4708
  const e = Fu(() => {
4706
4709
  var r;
4707
4710
  return (r = Ur.config) == null ? void 0 : r.account;
4708
- }), [t, i] = Sa(Li), n = Au(
4711
+ }), [t, i] = Sa(En), n = Au(
4709
4712
  Cu(),
4710
4713
  () => Kr.get(e),
4711
4714
  {
@@ -4721,10 +4724,10 @@ const Cu = () => ["account"], hc = () => {
4721
4724
  findQuery: n,
4722
4725
  account: t
4723
4726
  };
4724
- }, Ru = Ri();
4727
+ }, Ru = Ti();
4725
4728
  async function Tu(e) {
4726
4729
  const t = await Kr.get(e);
4727
- return Ru.set(Li, t), t;
4730
+ return Ru.set(En, t), t;
4728
4731
  }
4729
4732
  var Lu = /* @__PURE__ */ ((e) => (e.CREATED = "CREATED", e.STARTING = "STARTING", e.LIVE = "LIVE", e.FINALIZED = "FINALIZED", e))(Lu || {});
4730
4733
  const mc = {
@@ -4789,14 +4792,14 @@ function Oe(e, t) {
4789
4792
  if (!(e instanceof t))
4790
4793
  throw new TypeError("Cannot call a class as a function");
4791
4794
  }
4792
- function vi(e, t) {
4795
+ function pi(e, t) {
4793
4796
  for (var i = 0; i < t.length; i++) {
4794
4797
  var n = t[i];
4795
4798
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Jr(n.key), n);
4796
4799
  }
4797
4800
  }
4798
4801
  function we(e, t, i) {
4799
- return t && vi(e.prototype, t), i && vi(e, i), Object.defineProperty(e, "prototype", {
4802
+ return t && pi(e.prototype, t), i && pi(e, i), Object.defineProperty(e, "prototype", {
4800
4803
  writable: !1
4801
4804
  }), e;
4802
4805
  }
@@ -4957,7 +4960,7 @@ function tt() {
4957
4960
  });
4958
4961
  return i.resolve = e, i.reject = t, i;
4959
4962
  }
4960
- function pi(e) {
4963
+ function gi(e) {
4961
4964
  return e == null ? "" : "" + e;
4962
4965
  }
4963
4966
  function Mu(e, t, i) {
@@ -4965,7 +4968,7 @@ function Mu(e, t, i) {
4965
4968
  t[n] && (i[n] = t[n]);
4966
4969
  });
4967
4970
  }
4968
- function Mn(e, t, i) {
4971
+ function Bn(e, t, i) {
4969
4972
  function n(o) {
4970
4973
  return o && o.indexOf("###") > -1 ? o.replace(/###/g, ".") : o;
4971
4974
  }
@@ -4983,20 +4986,20 @@ function Mn(e, t, i) {
4983
4986
  k: n(a.shift())
4984
4987
  };
4985
4988
  }
4986
- function gi(e, t, i) {
4987
- var n = Mn(e, t, Object), r = n.obj, a = n.k;
4989
+ function ki(e, t, i) {
4990
+ var n = Bn(e, t, Object), r = n.obj, a = n.k;
4988
4991
  r[a] = i;
4989
4992
  }
4990
4993
  function Bu(e, t, i, n) {
4991
- var r = Mn(e, t, Object), a = r.obj, s = r.k;
4994
+ var r = Bn(e, t, Object), a = r.obj, s = r.k;
4992
4995
  a[s] = a[s] || [], n && (a[s] = a[s].concat(i)), n || a[s].push(i);
4993
4996
  }
4994
4997
  function $t(e, t) {
4995
- var i = Mn(e, t), n = i.obj, r = i.k;
4998
+ var i = Bn(e, t), n = i.obj, r = i.k;
4996
4999
  if (n)
4997
5000
  return n[r];
4998
5001
  }
4999
- function ki(e, t, i) {
5002
+ function yi(e, t, i) {
5000
5003
  var n = $t(e, i);
5001
5004
  return n !== void 0 ? n : $t(t, i);
5002
5005
  }
@@ -5083,7 +5086,7 @@ var Ku = function(e) {
5083
5086
  }, l = this.options.keySeparator;
5084
5087
  l === void 0 && (l = ".");
5085
5088
  var c = [n, r];
5086
- a && (c = c.concat(l ? a.split(l) : a)), n.indexOf(".") > -1 && (c = n.split("."), s = r, r = c[1]), this.addNamespaces(r), gi(this.data, c, s), o.silent || this.emit("added", n, r, a, s);
5089
+ a && (c = c.concat(l ? a.split(l) : a)), n.indexOf(".") > -1 && (c = n.split("."), s = r, r = c[1]), this.addNamespaces(r), ki(this.data, c, s), o.silent || this.emit("added", n, r, a, s);
5087
5090
  }
5088
5091
  }, {
5089
5092
  key: "addResources",
@@ -5105,7 +5108,7 @@ var Ku = function(e) {
5105
5108
  }, c = [n, r];
5106
5109
  n.indexOf(".") > -1 && (c = n.split("."), s = a, a = r, r = c[1]), this.addNamespaces(r);
5107
5110
  var f = $t(this.data, c) || {};
5108
- s ? Hr(f, a, o) : f = X({}, f, a), gi(this.data, c, f), l.silent || this.emit("added", n, r, a);
5111
+ s ? Hr(f, a, o) : f = X({}, f, a), ki(this.data, c, f), l.silent || this.emit("added", n, r, a);
5109
5112
  }
5110
5113
  }, {
5111
5114
  key: "removeResourceBundle",
@@ -5144,7 +5147,7 @@ var Ku = function(e) {
5144
5147
  s.processors[o] && (i = s.processors[o].process(i, n, r, a));
5145
5148
  }), i;
5146
5149
  }
5147
- }, yi = {}, _i = function(e) {
5150
+ }, _i = {}, bi = function(e) {
5148
5151
  Yt(t, e);
5149
5152
  function t(i) {
5150
5153
  var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -5294,7 +5297,7 @@ var Ku = function(e) {
5294
5297
  r.options.fallbackNS && (R = R.concat(r.options.fallbackNS));
5295
5298
  var b = a.count !== void 0 && typeof a.count != "string", _ = a.context !== void 0 && (typeof a.context == "string" || typeof a.context == "number") && a.context !== "", C = a.lngs ? a.lngs : r.languageUtils.toResolveHierarchy(a.lng || r.language, a.fallbackLng);
5296
5299
  R.forEach(function(L) {
5297
- r.isValidLookup(s) || (f = L, !yi["".concat(C[0], "-").concat(L)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(f) && (yi["".concat(C[0], "-").concat(L)] = !0, r.logger.warn('key "'.concat(o, '" for languages "').concat(C.join(", "), `" won't get resolved as namespace "`).concat(f, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), C.forEach(function(U) {
5300
+ r.isValidLookup(s) || (f = L, !_i["".concat(C[0], "-").concat(L)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(f) && (_i["".concat(C[0], "-").concat(L)] = !0, r.logger.warn('key "'.concat(o, '" for languages "').concat(C.join(", "), `" won't get resolved as namespace "`).concat(f, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), C.forEach(function(U) {
5298
5301
  if (!r.isValidLookup(s)) {
5299
5302
  c = U;
5300
5303
  var P = A, z = [P];
@@ -5694,13 +5697,13 @@ var Ju = function() {
5694
5697
  }
5695
5698
  var O = function(C) {
5696
5699
  if (C.indexOf(s.formatSeparator) < 0) {
5697
- var L = ki(n, f, C);
5700
+ var L = yi(n, f, C);
5698
5701
  return s.alwaysFormat ? s.format(L, void 0, r, X({}, a, n, {
5699
5702
  interpolationkey: C
5700
5703
  })) : L;
5701
5704
  }
5702
5705
  var U = C.split(s.formatSeparator), P = U.shift().trim(), z = U.join(s.formatSeparator).trim();
5703
- return s.format(ki(n, f, P), z, r, X({}, a, n, {
5706
+ return s.format(yi(n, f, P), z, r, X({}, a, n, {
5704
5707
  interpolationkey: P
5705
5708
  }));
5706
5709
  };
@@ -5728,7 +5731,7 @@ var Ju = function() {
5728
5731
  } else
5729
5732
  s.logger.warn("missed to pass in variable ".concat(o[1], " for interpolating ").concat(i)), l = "";
5730
5733
  else
5731
- typeof l != "string" && !s.useRawValueToEscape && (l = pi(l));
5734
+ typeof l != "string" && !s.useRawValueToEscape && (l = gi(l));
5732
5735
  var L = _.safeValue(l);
5733
5736
  if (i = i.replace(o[0], L), R ? (_.regex.lastIndex += L.length, _.regex.lastIndex -= o[0].length) : _.regex.lastIndex = 0, c++, c >= s.maxReplaces)
5734
5737
  break;
@@ -5763,7 +5766,7 @@ var Ju = function() {
5763
5766
  }
5764
5767
  if (o = n(c.call(this, s[1].trim(), l), l), o && s[0] === i && typeof o != "string")
5765
5768
  return o;
5766
- typeof o != "string" && (o = pi(o)), o || (this.logger.warn("missed to resolve ".concat(s[1], " for nesting ").concat(i)), o = ""), v && (o = f.reduce(function(A, R) {
5769
+ typeof o != "string" && (o = gi(o)), o || (this.logger.warn("missed to resolve ".concat(s[1], " for nesting ").concat(i)), o = ""), v && (o = f.reduce(function(A, R) {
5767
5770
  return r.format(A, R, a.lng, X({}, a, {
5768
5771
  interpolationkey: s[1].trim()
5769
5772
  }));
@@ -5946,7 +5949,7 @@ function Yu() {
5946
5949
  }
5947
5950
  };
5948
5951
  }
5949
- function bi(e) {
5952
+ function Si(e) {
5950
5953
  return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
5951
5954
  }
5952
5955
  function Lt() {
@@ -5955,7 +5958,7 @@ var el = function(e) {
5955
5958
  Yt(t, e);
5956
5959
  function t() {
5957
5960
  var i, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
5958
- if (Oe(this, t), i = ht(this, He(t).call(this)), en && Te.call(Ie(i)), i.options = bi(n), i.services = {}, i.logger = _e, i.modules = {
5961
+ if (Oe(this, t), i = ht(this, He(t).call(this)), en && Te.call(Ie(i)), i.options = Si(n), i.services = {}, i.logger = _e, i.modules = {
5959
5962
  external: []
5960
5963
  }, r && !i.isInitialized && !n.isClone) {
5961
5964
  if (!i.options.initImmediate)
@@ -5970,7 +5973,7 @@ var el = function(e) {
5970
5973
  key: "init",
5971
5974
  value: function() {
5972
5975
  var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
5973
- typeof r == "function" && (a = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = X({}, Yu(), this.options, bi(r)), this.format = this.options.interpolation.format, a || (a = Lt);
5976
+ typeof r == "function" && (a = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = X({}, Yu(), this.options, Si(r)), this.format = this.options.interpolation.format, a || (a = Lt);
5974
5977
  function s(R) {
5975
5978
  return R ? typeof R == "function" ? new R() : R : null;
5976
5979
  }
@@ -5989,7 +5992,7 @@ var el = function(e) {
5989
5992
  for (var b = arguments.length, _ = new Array(b > 1 ? b - 1 : 0), C = 1; C < b; C++)
5990
5993
  _[C - 1] = arguments[C];
5991
5994
  n.emit.apply(n, [R].concat(_));
5992
- }), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new _i(this.services, this.options), this.translator.on("*", function(R) {
5995
+ }), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new bi(this.services, this.options), this.translator.on("*", function(R) {
5993
5996
  for (var b = arguments.length, _ = new Array(b > 1 ? b - 1 : 0), C = 1; C < b; C++)
5994
5997
  _[C - 1] = arguments[C];
5995
5998
  n.emit.apply(n, [R].concat(_));
@@ -6194,7 +6197,7 @@ var el = function(e) {
6194
6197
  o[c] = n[c];
6195
6198
  }), o.services = X({}, this.services), o.services.utils = {
6196
6199
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
6197
- }, o.translator = new _i(o.services, o.options), o.translator.on("*", function(c) {
6200
+ }, o.translator = new bi(o.services, o.options), o.translator.on("*", function(c) {
6198
6201
  for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), O = 1; O < f; O++)
6199
6202
  v[O - 1] = arguments[O];
6200
6203
  o.emit.apply(o, [c].concat(v));
@@ -6260,14 +6263,14 @@ function al(e) {
6260
6263
  var t = rl(e, "string");
6261
6264
  return mt(t) === "symbol" ? t : String(t);
6262
6265
  }
6263
- function Si(e, t) {
6266
+ function Ni(e, t) {
6264
6267
  for (var i = 0; i < t.length; i++) {
6265
6268
  var n = t[i];
6266
6269
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, al(n.key), n);
6267
6270
  }
6268
6271
  }
6269
6272
  function sl(e, t, i) {
6270
- return t && Si(e.prototype, t), i && Si(e, i), Object.defineProperty(e, "prototype", {
6273
+ return t && Ni(e.prototype, t), i && Ni(e, i), Object.defineProperty(e, "prototype", {
6271
6274
  writable: !1
6272
6275
  }), e;
6273
6276
  }
@@ -6279,7 +6282,7 @@ function ll(e) {
6279
6282
  e[i] === void 0 && (e[i] = t[i]);
6280
6283
  }), e;
6281
6284
  }
6282
- var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6285
+ var Oi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6283
6286
  var r = n || {};
6284
6287
  r.path = r.path || "/";
6285
6288
  var a = encodeURIComponent(i), s = "".concat(t, "=").concat(a);
@@ -6290,12 +6293,12 @@ var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6290
6293
  s += "; Max-Age=".concat(Math.floor(o));
6291
6294
  }
6292
6295
  if (r.domain) {
6293
- if (!Ni.test(r.domain))
6296
+ if (!Oi.test(r.domain))
6294
6297
  throw new TypeError("option domain is invalid");
6295
6298
  s += "; Domain=".concat(r.domain);
6296
6299
  }
6297
6300
  if (r.path) {
6298
- if (!Ni.test(r.path))
6301
+ if (!Oi.test(r.path))
6299
6302
  throw new TypeError("option path is invalid");
6300
6303
  s += "; Path=".concat(r.path);
6301
6304
  }
@@ -6324,7 +6327,7 @@ var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6324
6327
  }
6325
6328
  }
6326
6329
  return s;
6327
- }, Oi = {
6330
+ }, wi = {
6328
6331
  create: function(t, i, n, r) {
6329
6332
  var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
6330
6333
  path: "/",
@@ -6349,13 +6352,13 @@ var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6349
6352
  lookup: function(t) {
6350
6353
  var i;
6351
6354
  if (t.lookupCookie && typeof document != "undefined") {
6352
- var n = Oi.read(t.lookupCookie);
6355
+ var n = wi.read(t.lookupCookie);
6353
6356
  n && (i = n);
6354
6357
  }
6355
6358
  return i;
6356
6359
  },
6357
6360
  cacheUserLanguage: function(t, i) {
6358
- i.lookupCookie && typeof document != "undefined" && Oi.create(i.lookupCookie, t, i.cookieMinutes, i.cookieDomain, i.cookieOptions);
6361
+ i.lookupCookie && typeof document != "undefined" && wi.create(i.lookupCookie, t, i.cookieMinutes, i.cookieDomain, i.cookieOptions);
6359
6362
  }
6360
6363
  }, fl = {
6361
6364
  name: "querystring",
@@ -6374,7 +6377,7 @@ var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6374
6377
  }
6375
6378
  return i;
6376
6379
  }
6377
- }, nt = null, wi = function() {
6380
+ }, nt = null, Ei = function() {
6378
6381
  if (nt !== null)
6379
6382
  return nt;
6380
6383
  try {
@@ -6389,16 +6392,16 @@ var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6389
6392
  name: "localStorage",
6390
6393
  lookup: function(t) {
6391
6394
  var i;
6392
- if (t.lookupLocalStorage && wi()) {
6395
+ if (t.lookupLocalStorage && Ei()) {
6393
6396
  var n = window.localStorage.getItem(t.lookupLocalStorage);
6394
6397
  n && (i = n);
6395
6398
  }
6396
6399
  return i;
6397
6400
  },
6398
6401
  cacheUserLanguage: function(t, i) {
6399
- i.lookupLocalStorage && wi() && window.localStorage.setItem(i.lookupLocalStorage, t);
6402
+ i.lookupLocalStorage && Ei() && window.localStorage.setItem(i.lookupLocalStorage, t);
6400
6403
  }
6401
- }, it = null, Ei = function() {
6404
+ }, it = null, Ai = function() {
6402
6405
  if (it !== null)
6403
6406
  return it;
6404
6407
  try {
@@ -6413,14 +6416,14 @@ var Ni = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6413
6416
  name: "sessionStorage",
6414
6417
  lookup: function(t) {
6415
6418
  var i;
6416
- if (t.lookupSessionStorage && Ei()) {
6419
+ if (t.lookupSessionStorage && Ai()) {
6417
6420
  var n = window.sessionStorage.getItem(t.lookupSessionStorage);
6418
6421
  n && (i = n);
6419
6422
  }
6420
6423
  return i;
6421
6424
  },
6422
6425
  cacheUserLanguage: function(t, i) {
6423
- i.lookupSessionStorage && Ei() && window.sessionStorage.setItem(i.lookupSessionStorage, t);
6426
+ i.lookupSessionStorage && Ai() && window.sessionStorage.setItem(i.lookupSessionStorage, t);
6424
6427
  }
6425
6428
  }, vl = {
6426
6429
  name: "navigator",
@@ -6549,7 +6552,7 @@ const _l = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
6549
6552
  "&#x2F;": "/",
6550
6553
  "&#47;": "/"
6551
6554
  }, Sl = (e) => bl[e], Nl = (e) => e.replace(_l, Sl);
6552
- let Ai = {
6555
+ let Fi = {
6553
6556
  bindI18n: "languageChanged",
6554
6557
  bindI18nStore: "",
6555
6558
  transEmptyNodeValue: "",
@@ -6561,8 +6564,8 @@ let Ai = {
6561
6564
  };
6562
6565
  function Ol() {
6563
6566
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6564
- Ai = {
6565
- ...Ai,
6567
+ Fi = {
6568
+ ...Fi,
6566
6569
  ...e
6567
6570
  };
6568
6571
  }
@@ -6668,7 +6671,7 @@ export {
6668
6671
  Po as GlobalPageSectionTypes,
6669
6672
  _o as InvalidNizzaGlobalObjectError,
6670
6673
  xu as LanguageTypes,
6671
- In as NizzaAccount,
6674
+ Vn as NizzaAccount,
6672
6675
  Lu as NizzaEventStatus,
6673
6676
  Du as NizzaProductRequestOriginTypes,
6674
6677
  Pt as NizzaStore,
@@ -6677,7 +6680,7 @@ export {
6677
6680
  uc as StoreProvider,
6678
6681
  yo as UnexpectedError,
6679
6682
  oc as ValueObject,
6680
- Li as accountAtom,
6683
+ En as accountAtom,
6681
6684
  Kr as accountService,
6682
6685
  ec as apiCall,
6683
6686
  Ro as createAggregateRoot,