@nizza/core 0.4.5-alpha.3 → 0.4.5-alpha.5

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
@@ -1,9 +1,10 @@
1
- var nn = Object.defineProperty;
2
- var an = (n, e, t) => e in n ? nn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var D = (n, e, t) => (an(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import * as U from "react";
5
- import Re, { createContext as bt, useReducer as sn, useEffect as Ce, useDebugValue as rn, useCallback as Ft, useContext as Te, useRef as Me, useMemo as Et } from "react";
1
+ var an = Object.defineProperty;
2
+ var sn = (n, e, t) => e in n ? an(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var x = (n, e, t) => (sn(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import * as M from "react";
5
+ import Ae, { createContext as Ot, useReducer as rn, useEffect as Se, useDebugValue as Rt, useCallback as xt, useContext as Pe, useRef as Re, useMemo as Tt } from "react";
6
6
  import { jsx as on } from "react/jsx-runtime";
7
+ var _ = { 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 };
7
8
  let ln = 0;
8
9
  function dn(n, e) {
9
10
  const t = `atom${++ln}`, i = {
@@ -18,271 +19,311 @@ function dn(n, e) {
18
19
  );
19
20
  }), e && (i.write = e), i;
20
21
  }
21
- const je = (n) => "init" in n, $e = (n) => !!n.write, de = /* @__PURE__ */ new WeakMap(), un = (n, e) => {
22
- de.set(n, e), n.catch(() => {
23
- }).finally(() => de.delete(n));
24
- }, ze = (n, e) => {
25
- const t = de.get(n);
26
- t && (de.delete(n), t(e));
27
- }, Be = (n, e) => {
22
+ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new WeakMap(), un = (n, e) => {
23
+ ue.set(n, e), n.catch(() => {
24
+ }).finally(() => ue.delete(n));
25
+ }, We = (n, e) => {
26
+ const t = ue.get(n);
27
+ t && (ue.delete(n), t(e));
28
+ }, Je = (n, e) => {
28
29
  n.status = "fulfilled", n.value = e;
29
- }, Ge = (n, e) => {
30
+ }, qe = (n, e) => {
30
31
  n.status = "rejected", n.reason = e;
31
- }, cn = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), Je = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, mn = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, se = (n) => {
32
+ }, cn = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), He = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), B = (n) => !!n && "v" in n && n.v instanceof Promise, mn = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, re = (n) => {
32
33
  if ("e" in n)
33
34
  throw n.e;
34
35
  return n.v;
35
- }, Ot = () => {
36
+ }, Dt = () => {
36
37
  const n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new Map();
37
38
  let i, a;
38
- const s = (p) => n.get(p), r = (p, m) => {
39
- const g = n.get(p);
40
- if (n.set(p, m), t.has(p) || t.set(p, g), z(g)) {
39
+ (_ ? "production" : void 0) !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
40
+ const s = (f) => n.get(f), r = (f, m) => {
41
+ (_ ? "production" : void 0) !== "production" && Object.freeze(m);
42
+ const g = n.get(f);
43
+ if (n.set(f, m), t.has(f) || t.set(f, g), B(g)) {
41
44
  const h = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
42
- g.v !== h && ze(g.v, h);
45
+ g.v !== h && We(g.v, h);
43
46
  }
44
- }, o = (p, m, g) => {
47
+ }, o = (f, m, g) => {
45
48
  const h = /* @__PURE__ */ new Map();
46
49
  let N = !1;
47
- g.forEach((O, b) => {
48
- !O && b === p && (O = m), O && (h.set(b, O), m.d.get(b) !== O && (N = !0));
50
+ g.forEach((C, b) => {
51
+ !C && b === f && (C = m), C ? (h.set(b, C), m.d.get(b) !== C && (N = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
49
52
  }), (N || m.d.size !== h.size) && (m.d = h);
50
- }, d = (p, m, g) => {
51
- const h = s(p), N = {
53
+ }, d = (f, m, g) => {
54
+ const h = s(f), N = {
52
55
  d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
53
56
  v: m
54
57
  };
55
- if (g && o(p, N, g), W(h, N) && h.d === N.d)
58
+ if (g && o(f, N, g), J(h, N) && h.d === N.d)
56
59
  return h;
57
- if (z(h) && z(N) && mn(h, N)) {
60
+ if (B(h) && B(N) && mn(h, N)) {
58
61
  if (h.d === N.d)
59
62
  return h;
60
63
  N.v = h.v;
61
64
  }
62
- return r(p, N), N;
63
- }, l = (p, m, g, h) => {
65
+ return r(f, N), N;
66
+ }, l = (f, m, g, h) => {
64
67
  if (cn(m)) {
65
68
  let N;
66
- const O = () => {
67
- const R = s(p);
68
- if (!z(R) || R.v !== b)
69
+ const C = () => {
70
+ const O = s(f);
71
+ if (!B(O) || O.v !== b)
69
72
  return;
70
73
  const T = d(
71
- p,
74
+ f,
72
75
  b,
73
76
  g
74
77
  );
75
- e.has(p) && R.d !== T.d && L(p, T, R.d);
76
- }, b = new Promise((R, T) => {
77
- let C = !1;
78
+ e.has(f) && O.d !== T.d && I(f, T, O.d);
79
+ }, b = new Promise((O, T) => {
80
+ let R = !1;
78
81
  m.then(
79
- (A) => {
80
- C || (C = !0, Be(b, A), R(A), O());
82
+ (D) => {
83
+ R || (R = !0, Je(b, D), O(D), C());
81
84
  },
82
- (A) => {
83
- C || (C = !0, Ge(b, A), T(A), O());
85
+ (D) => {
86
+ R || (R = !0, qe(b, D), T(D), C());
84
87
  }
85
- ), N = (A) => {
86
- C || (C = !0, A.then(
87
- (V) => Be(b, V),
88
- (V) => Ge(b, V)
89
- ), R(A));
88
+ ), N = (D) => {
89
+ R || (R = !0, D.then(
90
+ (V) => Je(b, V),
91
+ (V) => qe(b, V)
92
+ ), O(D));
90
93
  };
91
94
  });
92
- return b.orig = m, b.status = "pending", un(b, (R) => {
93
- R && N(R), h == null || h();
94
- }), d(p, b, g);
95
+ return b.orig = m, b.status = "pending", un(b, (O) => {
96
+ O && N(O), h == null || h();
97
+ }), d(f, b, g);
95
98
  }
96
- return d(p, m, g);
97
- }, u = (p, m, g) => {
98
- const h = s(p), N = {
99
+ return d(f, m, g);
100
+ }, u = (f, m, g) => {
101
+ const h = s(f), N = {
99
102
  d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
100
103
  e: m
101
104
  };
102
- return g && o(p, N, g), Je(h, N) && h.d === N.d ? h : (r(p, N), N);
103
- }, f = (p, m) => {
104
- const g = s(p);
105
- if (!m && g && (e.has(p) || Array.from(g.d).every(([C, A]) => {
106
- if (C === p)
105
+ return g && o(f, N, g), He(h, N) && h.d === N.d ? h : (r(f, N), N);
106
+ }, p = (f, m) => {
107
+ const g = s(f);
108
+ if (!m && g && (e.has(f) || Array.from(g.d).every(([R, D]) => {
109
+ if (R === f)
107
110
  return !0;
108
- const V = f(C);
109
- return V === A || W(V, A);
111
+ const V = p(R);
112
+ return V === D || J(V, D);
110
113
  })))
111
114
  return g;
112
115
  const h = /* @__PURE__ */ new Map();
113
116
  let N = !0;
114
- const O = (C) => {
115
- if (C === p) {
116
- const V = s(C);
117
+ const C = (R) => {
118
+ if (R === f) {
119
+ const V = s(R);
117
120
  if (V)
118
- return h.set(C, V), se(V);
119
- if (je(C))
120
- return h.set(C, void 0), C.init;
121
+ return h.set(R, V), re(V);
122
+ if (be(R))
123
+ return h.set(R, void 0), R.init;
121
124
  throw new Error("no atom init");
122
125
  }
123
- const A = f(C);
124
- return h.set(C, A), se(A);
126
+ const D = p(R);
127
+ return h.set(R, D), re(D);
125
128
  };
126
- let b, R;
129
+ let b, O;
127
130
  const T = {
128
131
  get signal() {
129
132
  return b || (b = new AbortController()), b.signal;
130
133
  },
131
134
  get setSelf() {
132
- return !R && $e(p) && (R = (...C) => {
133
- if (!N)
134
- return E(p, ...C);
135
- }), R;
135
+ return (_ ? "production" : void 0) !== "production" && !Fe(f) && console.warn("setSelf function cannot be used with read-only atom"), !O && Fe(f) && (O = (...R) => {
136
+ if ((_ ? "production" : void 0) !== "production" && N && console.warn("setSelf function cannot be called in sync"), !N)
137
+ return w(f, ...R);
138
+ }), O;
136
139
  }
137
140
  };
138
141
  try {
139
- const C = p.read(O, T);
142
+ const R = f.read(C, T);
140
143
  return l(
141
- p,
142
- C,
144
+ f,
145
+ R,
143
146
  h,
144
147
  () => b == null ? void 0 : b.abort()
145
148
  );
146
- } catch (C) {
147
- return u(p, C, h);
149
+ } catch (R) {
150
+ return u(f, R, h);
148
151
  } finally {
149
152
  N = !1;
150
153
  }
151
- }, c = (p) => se(f(p)), y = (p) => {
152
- let m = e.get(p);
153
- return m || (m = x(p)), m;
154
- }, v = (p, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(p)), k = (p) => {
155
- const m = e.get(p);
156
- m && v(p, m) && w(p);
157
- }, S = (p) => {
154
+ }, c = (f) => re(p(f)), v = (f) => {
155
+ let m = e.get(f);
156
+ return m || (m = L(f)), m;
157
+ }, S = (f, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(f)), k = (f) => {
158
+ const m = e.get(f);
159
+ m && S(f, m) && E(f);
160
+ }, y = (f) => {
158
161
  const m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new WeakMap(), h = (b) => {
159
- var R;
160
- const T = new Set((R = e.get(b)) == null ? void 0 : R.t);
161
- return t.forEach((C, A) => {
162
+ var O;
163
+ const T = new Set((O = e.get(b)) == null ? void 0 : O.t);
164
+ return t.forEach((R, D) => {
162
165
  var V;
163
- (V = s(A)) != null && V.d.has(b) && T.add(A);
166
+ (V = s(D)) != null && V.d.has(b) && T.add(D);
164
167
  }), T;
165
168
  }, N = (b) => {
166
- h(b).forEach((R) => {
167
- R !== b && (m.set(
168
- R,
169
- (m.get(R) || /* @__PURE__ */ new Set()).add(b)
170
- ), g.set(R, (g.get(R) || 0) + 1), N(R));
169
+ h(b).forEach((O) => {
170
+ O !== b && (m.set(
171
+ O,
172
+ (m.get(O) || /* @__PURE__ */ new Set()).add(b)
173
+ ), g.set(O, (g.get(O) || 0) + 1), N(O));
171
174
  });
172
175
  };
173
- N(p);
174
- const O = (b) => {
175
- h(b).forEach((R) => {
176
+ N(f);
177
+ const C = (b) => {
178
+ h(b).forEach((O) => {
176
179
  var T;
177
- if (R !== b) {
178
- let C = g.get(R);
179
- if (C && g.set(R, --C), !C) {
180
- let A = !!((T = m.get(R)) != null && T.size);
181
- if (A) {
182
- const V = s(R), ae = f(R, !0);
183
- A = !W(V, ae);
180
+ if (O !== b) {
181
+ let R = g.get(O);
182
+ if (R && g.set(O, --R), !R) {
183
+ let D = !!((T = m.get(O)) != null && T.size);
184
+ if (D) {
185
+ const V = s(O), se = p(O, !0);
186
+ D = !J(V, se);
184
187
  }
185
- A || m.forEach((V) => V.delete(R));
188
+ D || m.forEach((V) => V.delete(O));
186
189
  }
187
- O(R);
190
+ C(O);
188
191
  }
189
192
  });
190
193
  };
191
- O(p);
192
- }, F = (p, ...m) => {
194
+ C(f);
195
+ }, F = (f, ...m) => {
193
196
  let g = !0;
194
- const h = (b) => se(f(b)), N = (b, ...R) => {
197
+ const h = (b) => re(p(b)), N = (b, ...O) => {
195
198
  let T;
196
- if (b === p) {
197
- if (!je(b))
199
+ if (b === f) {
200
+ if (!be(b))
198
201
  throw new Error("atom not writable");
199
- const C = s(b), A = l(b, R[0]);
200
- W(C, A) || S(b);
202
+ const R = s(b), D = l(b, O[0]);
203
+ J(R, D) || y(b);
201
204
  } else
202
- T = F(b, ...R);
205
+ T = F(b, ...O);
203
206
  if (!g) {
204
- const C = I();
207
+ const R = P();
208
+ (_ ? "production" : void 0) !== "production" && i.forEach(
209
+ (D) => D({ type: "async-write", flushed: R })
210
+ );
205
211
  }
206
212
  return T;
207
- }, O = p.write(h, N, ...m);
208
- return g = !1, O;
209
- }, E = (p, ...m) => {
210
- const g = F(p, ...m), h = I();
211
- return g;
212
- }, x = (p, m, g) => {
213
+ }, C = f.write(h, N, ...m);
214
+ return g = !1, C;
215
+ }, w = (f, ...m) => {
216
+ const g = F(f, ...m), h = P();
217
+ return (_ ? "production" : void 0) !== "production" && i.forEach(
218
+ (N) => N({ type: "write", flushed: h })
219
+ ), g;
220
+ }, L = (f, m, g) => {
213
221
  var h;
214
222
  const N = g || [];
215
- (h = s(p)) == null || h.d.forEach((b, R) => {
216
- const T = e.get(R);
217
- T ? T.t.add(p) : R !== p && x(R, p, N);
218
- }), f(p);
219
- const O = {
223
+ (h = s(f)) == null || h.d.forEach((b, O) => {
224
+ const T = e.get(O);
225
+ T ? T.t.add(f) : O !== f && L(O, f, N);
226
+ }), p(f);
227
+ const C = {
220
228
  t: new Set(m && [m]),
221
229
  l: /* @__PURE__ */ new Set()
222
230
  };
223
- if (e.set(p, O), $e(p) && p.onMount) {
224
- const { onMount: b } = p;
231
+ if (e.set(f, C), (_ ? "production" : void 0) !== "production" && a.add(f), Fe(f) && f.onMount) {
232
+ const { onMount: b } = f;
225
233
  N.push(() => {
226
- const R = b((...T) => E(p, ...T));
227
- R && (O.u = R);
234
+ const O = b((...T) => w(f, ...T));
235
+ O && (C.u = O);
228
236
  });
229
237
  }
230
- return g || N.forEach((b) => b()), O;
231
- }, w = (p) => {
238
+ return g || N.forEach((b) => b()), C;
239
+ }, E = (f) => {
232
240
  var m;
233
- const g = (m = e.get(p)) == null ? void 0 : m.u;
234
- g && g(), e.delete(p);
235
- const h = s(p);
236
- h && (z(h) && ze(h.v), h.d.forEach((N, O) => {
237
- if (O !== p) {
238
- const b = e.get(O);
239
- b && (b.t.delete(p), v(O, b) && w(O));
241
+ const g = (m = e.get(f)) == null ? void 0 : m.u;
242
+ g && g(), e.delete(f), (_ ? "production" : void 0) !== "production" && a.delete(f);
243
+ const h = s(f);
244
+ h ? (B(h) && We(h.v), h.d.forEach((N, C) => {
245
+ if (C !== f) {
246
+ const b = e.get(C);
247
+ b && (b.t.delete(f), S(C, b) && E(C));
240
248
  }
241
- }));
242
- }, L = (p, m, g) => {
249
+ })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", f);
250
+ }, I = (f, m, g) => {
243
251
  const h = new Set(m.d.keys());
244
- g == null || g.forEach((N, O) => {
245
- if (h.has(O)) {
246
- h.delete(O);
252
+ g == null || g.forEach((N, C) => {
253
+ if (h.has(C)) {
254
+ h.delete(C);
247
255
  return;
248
256
  }
249
- const b = e.get(O);
250
- b && (b.t.delete(p), v(O, b) && w(O));
257
+ const b = e.get(C);
258
+ b && (b.t.delete(f), S(C, b) && E(C));
251
259
  }), h.forEach((N) => {
252
- const O = e.get(N);
253
- O ? O.t.add(p) : e.has(p) && x(N, p);
260
+ const C = e.get(N);
261
+ C ? C.t.add(f) : e.has(f) && L(N, f);
254
262
  });
255
- }, I = () => {
256
- let p;
257
- for (; t.size; ) {
263
+ }, P = () => {
264
+ let f;
265
+ for ((_ ? "production" : void 0) !== "production" && (f = /* @__PURE__ */ new Set()); t.size; ) {
258
266
  const m = Array.from(t);
259
267
  t.clear(), m.forEach(([g, h]) => {
260
268
  const N = s(g);
261
269
  if (N) {
262
- const O = e.get(g);
263
- O && N.d !== (h == null ? void 0 : h.d) && L(g, N, h == null ? void 0 : h.d), O && !// TODO This seems pretty hacky. Hope to fix it.
270
+ const C = e.get(g);
271
+ C && N.d !== (h == null ? void 0 : h.d) && I(g, N, h == null ? void 0 : h.d), C && !// TODO This seems pretty hacky. Hope to fix it.
264
272
  // Maybe we could `mountDependencies` in `setAtomState`?
265
- (!z(h) && (W(h, N) || Je(h, N))) && O.l.forEach((b) => b());
266
- }
273
+ (!B(h) && (J(h, N) || He(h, N))) && (C.l.forEach((b) => b()), (_ ? "production" : void 0) !== "production" && f.add(g));
274
+ } else
275
+ (_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
267
276
  });
268
277
  }
278
+ if ((_ ? "production" : void 0) !== "production")
279
+ return f;
280
+ }, A = (f, m) => {
281
+ const g = v(f), h = P(), N = g.l;
282
+ return N.add(m), (_ ? "production" : void 0) !== "production" && i.forEach(
283
+ (C) => C({ type: "sub", flushed: h })
284
+ ), () => {
285
+ N.delete(m), k(f), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
286
+ };
269
287
  };
270
- return {
288
+ return (_ ? "production" : void 0) !== "production" ? {
271
289
  get: c,
272
- set: E,
273
- sub: (p, m) => {
274
- const g = y(p), h = I(), N = g.l;
275
- return N.add(m), () => {
276
- N.delete(m), k(p);
290
+ set: w,
291
+ sub: A,
292
+ // store dev methods (these are tentative and subject to change without notice)
293
+ dev_subscribe_store: (f, m) => {
294
+ if (m !== 2)
295
+ throw new Error("The current StoreListener revision is 2.");
296
+ return i.add(f), () => {
297
+ i.delete(f);
277
298
  };
299
+ },
300
+ dev_get_mounted_atoms: () => a.values(),
301
+ dev_get_atom_state: (f) => n.get(f),
302
+ dev_get_mounted: (f) => e.get(f),
303
+ dev_restore_atoms: (f) => {
304
+ for (const [g, h] of f)
305
+ be(g) && (l(g, h), y(g));
306
+ const m = P();
307
+ i.forEach(
308
+ (g) => g({ type: "restore", flushed: m })
309
+ );
278
310
  }
311
+ } : {
312
+ get: c,
313
+ set: w,
314
+ sub: A
279
315
  };
280
316
  };
281
- let ve;
282
- const fn = () => (ve || (ve = Ot()), ve), pn = bt(void 0), wt = (n) => {
283
- const e = Te(pn);
317
+ let we;
318
+ (_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
319
+ const fn = () => (we || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
320
+ "Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
321
+ ), we = Dt()), we);
322
+ var pn = { 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 };
323
+ const hn = Ot(void 0), Lt = (n) => {
324
+ const e = Pe(hn);
284
325
  return (n == null ? void 0 : n.store) || e || fn();
285
- }, hn = (n) => typeof (n == null ? void 0 : n.then) == "function", gn = Re.use || ((n) => {
326
+ }, gn = (n) => typeof (n == null ? void 0 : n.then) == "function", kn = Ae.use || ((n) => {
286
327
  if (n.status === "pending")
287
328
  throw n;
288
329
  if (n.status === "fulfilled")
@@ -296,8 +337,8 @@ const fn = () => (ve || (ve = Ot()), ve), pn = bt(void 0), wt = (n) => {
296
337
  }
297
338
  ), n);
298
339
  });
299
- function kn(n, e) {
300
- const t = wt(e), [[i, a, s], r] = sn(
340
+ function vn(n, e) {
341
+ const t = Lt(e), [[i, a, s], r] = rn(
301
342
  (l) => {
302
343
  const u = t.get(n);
303
344
  return Object.is(l[0], u) && l[1] === t && l[2] === n ? l : [u, t, n];
@@ -308,7 +349,7 @@ function kn(n, e) {
308
349
  let o = i;
309
350
  (a !== t || s !== n) && (r(), o = t.get(n));
310
351
  const d = e == null ? void 0 : e.delay;
311
- return Ce(() => {
352
+ return Se(() => {
312
353
  const l = t.sub(n, () => {
313
354
  if (typeof d == "number") {
314
355
  setTimeout(r, d);
@@ -317,32 +358,37 @@ function kn(n, e) {
317
358
  r();
318
359
  });
319
360
  return r(), l;
320
- }, [t, n, d]), rn(o), hn(o) ? gn(o) : o;
361
+ }, [t, n, d]), Rt(o), gn(o) ? kn(o) : o;
321
362
  }
322
- function vn(n, e) {
323
- const t = wt(e);
324
- return Ft(
325
- (...a) => t.set(n, ...a),
363
+ function Sn(n, e) {
364
+ const t = Lt(e);
365
+ return xt(
366
+ (...a) => {
367
+ if ((pn ? "production" : void 0) !== "production" && !("write" in n))
368
+ throw new Error("not writable atom");
369
+ return t.set(n, ...a);
370
+ },
326
371
  [t, n]
327
372
  );
328
373
  }
329
- function Sn(n, e) {
374
+ function yn(n, e) {
330
375
  return [
331
- kn(n, e),
376
+ vn(n, e),
332
377
  // We do wrong type assertion here, which results in throwing an error.
333
- vn(n, e)
378
+ Sn(n, e)
334
379
  ];
335
380
  }
336
- const De = dn(null);
337
- De.debugLabel = "accountAtom";
381
+ const Ve = dn(null);
382
+ Ve.debugLabel = "accountAtom";
383
+ var Nn = { 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 };
338
384
  const {
339
- NZ_AWS_REGION: yn,
340
- NZ_BACKOFFICE_BACK_URL: Nn,
341
- NZ_CORE_SERVICES_GRAPHQL_URL: bn,
342
- NZ_CORE_SERVICES_REST_URL: Fn
343
- } = { 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 }, En = {
385
+ NZ_AWS_REGION: bn,
386
+ NZ_BACKOFFICE_BACK_URL: Fn,
387
+ NZ_CORE_SERVICES_GRAPHQL_URL: wn,
388
+ NZ_CORE_SERVICES_REST_URL: Cn
389
+ } = Nn, En = {
344
390
  AWS: {
345
- region: yn,
391
+ region: bn,
346
392
  cognito: {
347
393
  userPoolId: "us-east-1_knSlGEmJ0",
348
394
  userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
@@ -350,9 +396,9 @@ const {
350
396
  },
351
397
  // Back services
352
398
  apiUrls: {
353
- restV1: Nn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
354
- restV2: Fn || "https://core-services-dev.nizza.com/api",
355
- graphql: bn || "https://core-services-dev.nizza.com/graphql",
399
+ restV1: Fn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
+ restV2: Cn || "https://core-services-dev.nizza.com/api",
401
+ graphql: wn || "https://core-services-dev.nizza.com/graphql",
356
402
  corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
357
403
  },
358
404
  publicUrls: {
@@ -366,7 +412,7 @@ const {
366
412
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
367
413
  }
368
414
  };
369
- async function Rt(n) {
415
+ async function It(n) {
370
416
  const {
371
417
  url: e,
372
418
  method: t = "GET",
@@ -380,7 +426,7 @@ async function Rt(n) {
380
426
  }) : n.headers;
381
427
  try {
382
428
  const l = new AbortController(), { signal: u } = l;
383
- let f;
429
+ let p;
384
430
  const c = fetch(e, {
385
431
  method: t,
386
432
  headers: d,
@@ -388,24 +434,24 @@ async function Rt(n) {
388
434
  signal: u,
389
435
  ...o
390
436
  });
391
- r && (f = setTimeout(() => {
437
+ r && (p = setTimeout(() => {
392
438
  l.abort();
393
439
  }, r));
394
- const y = await c;
440
+ const v = await c;
395
441
  if (a)
396
- return y;
397
- const v = await y.json();
398
- if (clearTimeout(f), !y.ok) {
399
- const k = v ? JSON.stringify(v) : y.statusText;
442
+ return v;
443
+ const S = await v.json();
444
+ if (clearTimeout(p), !v.ok) {
445
+ const k = S ? JSON.stringify(S) : v.statusText;
400
446
  throw new Error(k);
401
447
  }
402
- return v;
448
+ return S;
403
449
  } catch (l) {
404
450
  throw console.error("[CustomFetch] ", l), l;
405
451
  }
406
452
  }
407
- const _s = (n) => Rt({ ...n, contentTypeJson: !1, raw: !1 });
408
- function Us(n, e, t) {
453
+ const Us = (n) => It({ ...n, contentTypeJson: !1, raw: !1 });
454
+ function Ms(n, e, t) {
409
455
  fetch(e).then((i) => i.blob()).then((i) => On(i, `${n}.${t}`));
410
456
  }
411
457
  const On = (n, e, t) => {
@@ -418,251 +464,47 @@ const On = (n, e, t) => {
418
464
  return r.style.display = "none", r.href = s, r.setAttribute("download", e), typeof r.download == "undefined" && r.setAttribute("target", "_blank"), document.body.appendChild(r), r.click(), setTimeout(() => {
419
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
420
466
  }, 200);
421
- };
422
- var Ct = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
423
- function Ae(n) {
424
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
425
- }
426
- var Tt = { exports: {} };
427
- (function(n) {
428
- (function(e, t) {
429
- n.exports ? n.exports = t() : e.prefix = t(e);
430
- })(Ct, function(e) {
431
- var t = function(u) {
432
- for (var f = 1, c = arguments.length, y; f < c; f++)
433
- for (y in arguments[f])
434
- Object.prototype.hasOwnProperty.call(arguments[f], y) && (u[y] = arguments[f][y]);
435
- return u;
436
- }, i = {
437
- template: "[%t] %l:",
438
- levelFormatter: function(u) {
439
- return u.toUpperCase();
440
- },
441
- nameFormatter: function(u) {
442
- return u || "root";
443
- },
444
- timestampFormatter: function(u) {
445
- return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
446
- },
447
- format: void 0
448
- }, a, s = {}, r = function(u) {
449
- if (!u || !u.getLogger)
450
- throw new TypeError("Argument is not a root logger");
451
- a = u;
452
- }, o = function(u, f) {
453
- if (!u || !u.setLevel)
454
- throw new TypeError("Argument is not a logger");
455
- var c = u.methodFactory, y = u.name || "", v = s[y] || s[""] || i;
456
- function k(S, F, E) {
457
- var x = c(S, F, E), w = s[E] || s[""], L = w.template.indexOf("%t") !== -1, I = w.template.indexOf("%l") !== -1, P = w.template.indexOf("%n") !== -1;
458
- return function() {
459
- for (var p = "", m = arguments.length, g = Array(m), h = 0; h < m; h++)
460
- g[h] = arguments[h];
461
- if (y || !s[E]) {
462
- var N = w.timestampFormatter(/* @__PURE__ */ new Date()), O = w.levelFormatter(S), b = w.nameFormatter(E);
463
- w.format ? p += w.format(O, b, N) : (p += w.template, L && (p = p.replace(/%t/, N)), I && (p = p.replace(/%l/, O)), P && (p = p.replace(/%n/, b))), g.length && typeof g[0] == "string" ? g[0] = p + " " + g[0] : g.unshift(p);
464
- }
465
- x.apply(void 0, g);
466
- };
467
- }
468
- return s[y] || (u.methodFactory = k), f = f || {}, f.template && (f.format = void 0), s[y] = t({}, v, f), u.setLevel(u.getLevel()), a || u.warn(
469
- "It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
470
- ), u;
471
- }, d = {
472
- reg: r,
473
- apply: o
474
- }, l;
475
- return e && (l = e.prefix, d.noConflict = function() {
476
- return e.prefix === d && (e.prefix = l), d;
477
- }), d;
478
- });
479
- })(Tt);
480
- var wn = Tt.exports;
481
- const Dt = /* @__PURE__ */ Ae(wn);
482
- var At = { exports: {} };
483
- (function(n) {
484
- (function(e, t) {
485
- n.exports ? n.exports = t() : e.log = t();
486
- })(Ct, function() {
487
- var e = function() {
488
- }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
489
- "trace",
490
- "debug",
491
- "info",
492
- "warn",
493
- "error"
494
- ];
495
- function s(k, S) {
496
- var F = k[S];
497
- if (typeof F.bind == "function")
498
- return F.bind(k);
499
- try {
500
- return Function.prototype.bind.call(F, k);
501
- } catch {
502
- return function() {
503
- return Function.prototype.apply.apply(F, [k, arguments]);
504
- };
505
- }
506
- }
507
- function r() {
508
- console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
509
- }
510
- function o(k) {
511
- return k === "debug" && (k = "log"), typeof console === t ? !1 : k === "trace" && i ? r : console[k] !== void 0 ? s(console, k) : console.log !== void 0 ? s(console, "log") : e;
512
- }
513
- function d(k, S) {
514
- for (var F = 0; F < a.length; F++) {
515
- var E = a[F];
516
- this[E] = F < k ? e : this.methodFactory(E, k, S);
517
- }
518
- this.log = this.debug;
519
- }
520
- function l(k, S, F) {
521
- return function() {
522
- typeof console !== t && (d.call(this, S, F), this[k].apply(this, arguments));
523
- };
524
- }
525
- function u(k, S, F) {
526
- return o(k) || l.apply(this, arguments);
527
- }
528
- function f(k, S, F) {
529
- var E = this, x;
530
- S = S == null ? "WARN" : S;
531
- var w = "loglevel";
532
- typeof k == "string" ? w += ":" + k : typeof k == "symbol" && (w = void 0);
533
- function L(m) {
534
- var g = (a[m] || "silent").toUpperCase();
535
- if (!(typeof window === t || !w)) {
536
- try {
537
- window.localStorage[w] = g;
538
- return;
539
- } catch {
540
- }
541
- try {
542
- window.document.cookie = encodeURIComponent(w) + "=" + g + ";";
543
- } catch {
544
- }
545
- }
546
- }
547
- function I() {
548
- var m;
549
- if (!(typeof window === t || !w)) {
550
- try {
551
- m = window.localStorage[w];
552
- } catch {
553
- }
554
- if (typeof m === t)
555
- try {
556
- var g = window.document.cookie, h = g.indexOf(
557
- encodeURIComponent(w) + "="
558
- );
559
- h !== -1 && (m = /^([^;]+)/.exec(g.slice(h))[1]);
560
- } catch {
561
- }
562
- return E.levels[m] === void 0 && (m = void 0), m;
563
- }
564
- }
565
- function P() {
566
- if (!(typeof window === t || !w)) {
567
- try {
568
- window.localStorage.removeItem(w);
569
- return;
570
- } catch {
571
- }
572
- try {
573
- window.document.cookie = encodeURIComponent(w) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
574
- } catch {
575
- }
576
- }
577
- }
578
- E.name = k, E.levels = {
579
- TRACE: 0,
580
- DEBUG: 1,
581
- INFO: 2,
582
- WARN: 3,
583
- ERROR: 4,
584
- SILENT: 5
585
- }, E.methodFactory = F || u, E.getLevel = function() {
586
- return x;
587
- }, E.setLevel = function(m, g) {
588
- if (typeof m == "string" && E.levels[m.toUpperCase()] !== void 0 && (m = E.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= E.levels.SILENT) {
589
- if (x = m, g !== !1 && L(m), d.call(E, m, k), typeof console === t && m < E.levels.SILENT)
590
- return "No console available for logging";
591
- } else
592
- throw "log.setLevel() called with invalid level: " + m;
593
- }, E.setDefaultLevel = function(m) {
594
- S = m, I() || E.setLevel(m, !1);
595
- }, E.resetLevel = function() {
596
- E.setLevel(S, !1), P();
597
- }, E.enableAll = function(m) {
598
- E.setLevel(E.levels.TRACE, m);
599
- }, E.disableAll = function(m) {
600
- E.setLevel(E.levels.SILENT, m);
601
- };
602
- var p = I();
603
- p == null && (p = S), E.setLevel(p, !1);
604
- }
605
- var c = new f(), y = {};
606
- c.getLogger = function(S) {
607
- if (typeof S != "symbol" && typeof S != "string" || S === "")
608
- throw new TypeError("You must supply a name when creating a logger.");
609
- var F = y[S];
610
- return F || (F = y[S] = new f(
611
- S,
612
- c.getLevel(),
613
- c.methodFactory
614
- )), F;
615
- };
616
- var v = typeof window !== t ? window.log : void 0;
617
- return c.noConflict = function() {
618
- return typeof window !== t && window.log === c && (window.log = v), c;
619
- }, c.getLoggers = function() {
620
- return y;
621
- }, c.default = c, c;
622
- });
623
- })(At);
624
- var Rn = At.exports;
625
- const Cn = /* @__PURE__ */ Ae(Rn), Tn = Symbol(), xe = Symbol(), K = "a", oe = "w";
626
- let Dn = (n, e) => new Proxy(n, e);
627
- const be = Object.getPrototypeOf, Fe = /* @__PURE__ */ new WeakMap(), xt = (n) => n && (Fe.has(n) ? Fe.get(n) : be(n) === Object.prototype || be(n) === Array.prototype), Qe = (n) => typeof n == "object" && n !== null, An = (n) => {
467
+ }, Rn = Symbol(), _e = Symbol(), q = "a", ne = "w";
468
+ let xn = (n, e) => new Proxy(n, e);
469
+ const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) => n && (Te.has(n) ? Te.get(n) : xe(n) === Object.prototype || xe(n) === Array.prototype), ce = (n) => typeof n == "object" && n !== null, Tn = (n) => {
628
470
  if (Array.isArray(n))
629
471
  return Array.from(n);
630
472
  const e = Object.getOwnPropertyDescriptors(n);
631
473
  return Object.values(e).forEach((t) => {
632
474
  t.configurable = !0;
633
- }), Object.create(be(n), e);
634
- }, Lt = (n) => n[xe] || n, Pt = (n, e, t, i) => {
635
- if (!xt(n))
475
+ }), Object.create(xe(n), e);
476
+ }, Ue = (n) => n[_e] || n, Pt = (n, e, t, i) => {
477
+ if (!At(n))
636
478
  return n;
637
479
  let a = i && i.get(n);
638
480
  if (!a) {
639
- const d = Lt(n);
640
- a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, An(d)] : [d], i == null || i.set(n, a);
481
+ const d = Ue(n);
482
+ a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, Tn(d)] : [d], i == null || i.set(n, a);
641
483
  }
642
484
  const [s, r] = a;
643
485
  let o = t && t.get(s);
644
486
  return o && o[1].f === !!r || (o = ((d, l) => {
645
487
  const u = { f: l };
646
- let f = !1;
647
- const c = (v, k) => {
648
- if (!f) {
649
- let S = u[K].get(d);
650
- if (S || (S = {}, u[K].set(d, S)), v === oe)
651
- S[oe] = !0;
488
+ let p = !1;
489
+ const c = (S, k) => {
490
+ if (!p) {
491
+ let y = u[q].get(d);
492
+ if (y || (y = {}, u[q].set(d, y)), S === ne)
493
+ y[ne] = !0;
652
494
  else {
653
- let F = S[v];
654
- F || (F = /* @__PURE__ */ new Set(), S[v] = F), F.add(k);
495
+ let F = y[S];
496
+ F || (F = /* @__PURE__ */ new Set(), y[S] = F), F.add(k);
655
497
  }
656
498
  }
657
- }, y = { get: (v, k) => k === xe ? d : (c("k", k), Pt(Reflect.get(v, k), u[K], u.c, u.t)), has: (v, k) => k === Tn ? (f = !0, u[K].delete(d), !0) : (c("h", k), Reflect.has(v, k)), getOwnPropertyDescriptor: (v, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(v, k)), ownKeys: (v) => (c(oe), Reflect.ownKeys(v)) };
658
- return l && (y.set = y.deleteProperty = () => !1), [y, u];
659
- })(s, !!r), o[1].p = Dn(r || s, o[0]), t && t.set(s, o)), o[1][K] = e, o[1].c = t, o[1].t = i, o[1].p;
660
- }, It = (n, e, t, i) => {
499
+ }, v = { get: (S, k) => k === _e ? d : (c("k", k), Pt(Reflect.get(S, k), u[q], u.c, u.t)), has: (S, k) => k === Rn ? (p = !0, u[q].delete(d), !0) : (c("h", k), Reflect.has(S, k)), getOwnPropertyDescriptor: (S, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(S, k)), ownKeys: (S) => (c(ne), Reflect.ownKeys(S)) };
500
+ return l && (v.set = v.deleteProperty = () => !1), [v, u];
501
+ })(s, !!r), o[1].p = xn(r || s, o[0]), t && t.set(s, o)), o[1][q] = e, o[1].c = t, o[1].t = i, o[1].p;
502
+ }, Vt = (n, e, t, i) => {
661
503
  if (Object.is(n, e))
662
504
  return !1;
663
- if (!Qe(n) || !Qe(e))
505
+ if (!ce(n) || !ce(e))
664
506
  return !0;
665
- const a = t.get(Lt(n));
507
+ const a = t.get(Ue(n));
666
508
  if (!a)
667
509
  return !0;
668
510
  if (i) {
@@ -676,10 +518,10 @@ const be = Object.getPrototypeOf, Fe = /* @__PURE__ */ new WeakMap(), xt = (n) =
676
518
  for (const r of a.h || [])
677
519
  if (s = Reflect.has(n, r) !== Reflect.has(e, r), s)
678
520
  return s;
679
- if (a[oe] === !0) {
521
+ if (a[ne] === !0) {
680
522
  if (s = ((r, o) => {
681
523
  const d = Reflect.ownKeys(r), l = Reflect.ownKeys(o);
682
- return d.length !== l.length || d.some((u, f) => u !== l[f]);
524
+ return d.length !== l.length || d.some((u, p) => u !== l[p]);
683
525
  })(n, e), s)
684
526
  return s;
685
527
  } else
@@ -687,16 +529,45 @@ const be = Object.getPrototypeOf, Fe = /* @__PURE__ */ new WeakMap(), xt = (n) =
687
529
  if (s = !!Reflect.getOwnPropertyDescriptor(n, r) != !!Reflect.getOwnPropertyDescriptor(e, r), s)
688
530
  return s;
689
531
  for (const r of a.k || [])
690
- if (s = It(n[r], e[r], t, i), s)
532
+ if (s = Vt(n[r], e[r], t, i), s)
691
533
  return s;
692
534
  return s === null && (s = !0), s;
693
535
  } finally {
694
536
  i && i.set(n, { n: e, g: s });
695
537
  }
696
- }, xn = (n) => xt(n) && n[xe] || null, We = (n, e = !0) => {
697
- Fe.set(n, e);
538
+ }, Dn = (n) => At(n) && n[_e] || null, Ze = (n, e = !0) => {
539
+ Te.set(n, e);
540
+ }, Ln = (n, e, t) => {
541
+ const i = [], a = /* @__PURE__ */ new WeakSet(), s = (r, o) => {
542
+ if (a.has(r))
543
+ return;
544
+ ce(r) && a.add(r);
545
+ const d = ce(r) && e.get(Ue(r));
546
+ if (d) {
547
+ var l, u;
548
+ if ((l = d.h) == null || l.forEach((c) => {
549
+ const v = `:has(${String(c)})`;
550
+ i.push(o ? [...o, v] : [v]);
551
+ }), d[ne] === !0) {
552
+ const c = ":ownKeys";
553
+ i.push(o ? [...o, c] : [c]);
554
+ } else {
555
+ var p;
556
+ (p = d.o) == null || p.forEach((c) => {
557
+ const v = `:hasOwn(${String(c)})`;
558
+ i.push(o ? [...o, v] : [v]);
559
+ });
560
+ }
561
+ (u = d.k) == null || u.forEach((c) => {
562
+ t && !("value" in (Object.getOwnPropertyDescriptor(r, c) || {})) || s(r[c], o ? [...o, c] : [c]);
563
+ });
564
+ } else
565
+ o && i.push(o);
566
+ };
567
+ return s(n), i;
698
568
  };
699
- const Se = (n) => typeof n == "object" && n !== null, j = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), Ln = (n = Object.is, e = (l, u) => new Proxy(l, u), t = (l) => Se(l) && !H.has(l) && (Array.isArray(l) || !(Symbol.iterator in l)) && !(l instanceof WeakMap) && !(l instanceof WeakSet) && !(l instanceof Error) && !(l instanceof Number) && !(l instanceof Date) && !(l instanceof String) && !(l instanceof RegExp) && !(l instanceof ArrayBuffer), i = (l) => {
569
+ var me = { 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 };
570
+ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), In = (n = Object.is, e = (l, u) => new Proxy(l, u), t = (l) => Ce(l) && !Y.has(l) && (Array.isArray(l) || !(Symbol.iterator in l)) && !(l instanceof WeakMap) && !(l instanceof WeakSet) && !(l instanceof Error) && !(l instanceof Number) && !(l instanceof Date) && !(l instanceof String) && !(l instanceof RegExp) && !(l instanceof ArrayBuffer), i = (l) => {
700
571
  switch (l.status) {
701
572
  case "fulfilled":
702
573
  return l.value;
@@ -705,121 +576,125 @@ const Se = (n) => typeof n == "object" && n !== null, j = /* @__PURE__ */ new We
705
576
  default:
706
577
  throw l;
707
578
  }
708
- }, a = /* @__PURE__ */ new WeakMap(), s = (l, u, f = i) => {
579
+ }, a = /* @__PURE__ */ new WeakMap(), s = (l, u, p = i) => {
709
580
  const c = a.get(l);
710
581
  if ((c == null ? void 0 : c[0]) === u)
711
582
  return c[1];
712
- const y = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l));
713
- return We(y, !0), a.set(l, [u, y]), Reflect.ownKeys(l).forEach((v) => {
714
- if (Object.getOwnPropertyDescriptor(y, v))
583
+ const v = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l));
584
+ return Ze(v, !0), a.set(l, [u, v]), Reflect.ownKeys(l).forEach((S) => {
585
+ if (Object.getOwnPropertyDescriptor(v, S))
715
586
  return;
716
- const k = Reflect.get(l, v), { enumerable: S } = Reflect.getOwnPropertyDescriptor(
587
+ const k = Reflect.get(l, S), { enumerable: y } = Reflect.getOwnPropertyDescriptor(
717
588
  l,
718
- v
589
+ S
719
590
  ), F = {
720
591
  value: k,
721
- enumerable: S,
592
+ enumerable: y,
722
593
  // This is intentional to avoid copying with proxy-compare.
723
594
  // It's still non-writable, so it avoids assigning a value.
724
595
  configurable: !0
725
596
  };
726
- if (H.has(k))
727
- We(k, !1);
597
+ if (Y.has(k))
598
+ Ze(k, !1);
728
599
  else if (k instanceof Promise)
729
- delete F.value, F.get = () => f(k);
730
- else if (j.has(k)) {
731
- const [E, x] = j.get(
600
+ delete F.value, F.get = () => p(k);
601
+ else if ($.has(k)) {
602
+ const [w, L] = $.get(
732
603
  k
733
604
  );
734
605
  F.value = s(
735
- E,
736
- x(),
737
- f
606
+ w,
607
+ L(),
608
+ p
738
609
  );
739
610
  }
740
- Object.defineProperty(y, v, F);
741
- }), Object.preventExtensions(y);
611
+ Object.defineProperty(v, S, F);
612
+ }), Object.preventExtensions(v);
742
613
  }, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
743
- if (!Se(l))
614
+ if (!Ce(l))
744
615
  throw new Error("object required");
745
616
  const u = r.get(l);
746
617
  if (u)
747
618
  return u;
748
- let f = o[0];
749
- const c = /* @__PURE__ */ new Set(), y = (m, g = ++o[0]) => {
750
- f !== g && (f = g, c.forEach((h) => h(m, g)));
619
+ let p = o[0];
620
+ const c = /* @__PURE__ */ new Set(), v = (m, g = ++o[0]) => {
621
+ p !== g && (p = g, c.forEach((h) => h(m, g)));
751
622
  };
752
- let v = o[1];
753
- const k = (m = ++o[1]) => (v !== m && !c.size && (v = m, F.forEach(([g]) => {
623
+ let S = o[1];
624
+ const k = (m = ++o[1]) => (S !== m && !c.size && (S = m, F.forEach(([g]) => {
754
625
  const h = g[1](m);
755
- h > f && (f = h);
756
- })), f), S = (m) => (g, h) => {
626
+ h > p && (p = h);
627
+ })), p), y = (m) => (g, h) => {
757
628
  const N = [...g];
758
- N[1] = [m, ...N[1]], y(N, h);
759
- }, F = /* @__PURE__ */ new Map(), E = (m, g) => {
629
+ N[1] = [m, ...N[1]], v(N, h);
630
+ }, F = /* @__PURE__ */ new Map(), w = (m, g) => {
631
+ if ((me ? "production" : void 0) !== "production" && F.has(m))
632
+ throw new Error("prop listener already exists");
760
633
  if (c.size) {
761
- const h = g[3](S(m));
634
+ const h = g[3](y(m));
762
635
  F.set(m, [g, h]);
763
636
  } else
764
637
  F.set(m, [g]);
765
- }, x = (m) => {
638
+ }, L = (m) => {
766
639
  var g;
767
640
  const h = F.get(m);
768
641
  h && (F.delete(m), (g = h[1]) == null || g.call(h));
769
- }, w = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], O) => {
770
- const b = h[3](S(O));
771
- F.set(O, [h, b]);
642
+ }, E = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], C) => {
643
+ if ((me ? "production" : void 0) !== "production" && N)
644
+ throw new Error("remove already exists");
645
+ const b = h[3](y(C));
646
+ F.set(C, [h, b]);
772
647
  }), () => {
773
- c.delete(m), c.size === 0 && F.forEach(([h, N], O) => {
774
- N && (N(), F.set(O, [h]));
648
+ c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
649
+ N && (N(), F.set(C, [h]));
775
650
  });
776
- }), L = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), P = e(L, {
651
+ }), I = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(I, {
777
652
  deleteProperty(m, g) {
778
653
  const h = Reflect.get(m, g);
779
- x(g);
654
+ L(g);
780
655
  const N = Reflect.deleteProperty(m, g);
781
- return N && y(["delete", [g], h]), N;
656
+ return N && v(["delete", [g], h]), N;
782
657
  },
783
658
  set(m, g, h, N) {
784
- const O = Reflect.has(m, g), b = Reflect.get(m, g, N);
785
- if (O && (n(b, h) || r.has(h) && n(b, r.get(h))))
659
+ const C = Reflect.has(m, g), b = Reflect.get(m, g, N);
660
+ if (C && (n(b, h) || r.has(h) && n(b, r.get(h))))
786
661
  return !0;
787
- x(g), Se(h) && (h = xn(h) || h);
788
- let R = h;
662
+ L(g), Ce(h) && (h = Dn(h) || h);
663
+ let O = h;
789
664
  if (h instanceof Promise)
790
665
  h.then((T) => {
791
- h.status = "fulfilled", h.value = T, y(["resolve", [g], T]);
666
+ h.status = "fulfilled", h.value = T, v(["resolve", [g], T]);
792
667
  }).catch((T) => {
793
- h.status = "rejected", h.reason = T, y(["reject", [g], T]);
668
+ h.status = "rejected", h.reason = T, v(["reject", [g], T]);
794
669
  });
795
670
  else {
796
- !j.has(h) && t(h) && (R = d(h));
797
- const T = !H.has(R) && j.get(R);
798
- T && E(g, T);
671
+ !$.has(h) && t(h) && (O = d(h));
672
+ const T = !Y.has(O) && $.get(O);
673
+ T && w(g, T);
799
674
  }
800
- return Reflect.set(m, g, R, N), y(["set", [g], h, b]), !0;
675
+ return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
801
676
  }
802
677
  });
803
- r.set(l, P);
804
- const p = [
805
- L,
678
+ r.set(l, A);
679
+ const f = [
680
+ I,
806
681
  k,
807
682
  s,
808
- w
683
+ E
809
684
  ];
810
- return j.set(P, p), Reflect.ownKeys(l).forEach((m) => {
685
+ return $.set(A, f), Reflect.ownKeys(l).forEach((m) => {
811
686
  const g = Object.getOwnPropertyDescriptor(
812
687
  l,
813
688
  m
814
689
  );
815
- "value" in g && (P[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(L, m, g);
816
- }), P;
690
+ "value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(I, m, g);
691
+ }), A;
817
692
  }) => [
818
693
  // public functions
819
694
  d,
820
695
  // shared state
821
- j,
822
- H,
696
+ $,
697
+ Y,
823
698
  // internal things
824
699
  n,
825
700
  e,
@@ -829,12 +704,13 @@ const Se = (n) => typeof n == "object" && n !== null, j = /* @__PURE__ */ new We
829
704
  s,
830
705
  r,
831
706
  o
832
- ], [Pn] = Ln();
833
- function In(n = {}) {
834
- return Pn(n);
707
+ ], [An] = In();
708
+ function Pn(n = {}) {
709
+ return An(n);
835
710
  }
836
711
  function Vn(n, e, t) {
837
- const i = j.get(n);
712
+ const i = $.get(n);
713
+ (me ? "production" : void 0) !== "production" && !i && console.warn("Please use proxy object");
838
714
  let a;
839
715
  const s = [], r = i[3];
840
716
  let o = !1;
@@ -851,14 +727,20 @@ function Vn(n, e, t) {
851
727
  o = !1, l();
852
728
  };
853
729
  }
854
- function Ke(n, e) {
855
- const t = j.get(n), [i, a, s] = t;
730
+ function Xe(n, e) {
731
+ const t = $.get(n);
732
+ (me ? "production" : void 0) !== "production" && !t && console.warn("Please use proxy object");
733
+ const [i, a, s] = t;
856
734
  return s(i, a(), e);
857
735
  }
858
- function Vt(n) {
859
- return H.add(n), n;
736
+ function _t(n) {
737
+ return Y.add(n), n;
738
+ }
739
+ var Ut = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
740
+ function Me(n) {
741
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
860
742
  }
861
- var _t = { exports: {} }, Ut = {};
743
+ var Mt = { exports: {} }, jt = {};
862
744
  /**
863
745
  * @license React
864
746
  * use-sync-external-store-shim.production.min.js
@@ -868,22 +750,22 @@ var _t = { exports: {} }, Ut = {};
868
750
  * This source code is licensed under the MIT license found in the
869
751
  * LICENSE file in the root directory of this source tree.
870
752
  */
871
- var Q = Re;
753
+ var W = Ae;
872
754
  function _n(n, e) {
873
755
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
874
756
  }
875
- var Un = typeof Object.is == "function" ? Object.is : _n, Mn = Q.useState, jn = Q.useEffect, $n = Q.useLayoutEffect, zn = Q.useDebugValue;
757
+ var Un = typeof Object.is == "function" ? Object.is : _n, Mn = W.useState, jn = W.useEffect, $n = W.useLayoutEffect, zn = W.useDebugValue;
876
758
  function Bn(n, e) {
877
759
  var t = e(), i = Mn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
878
760
  return $n(function() {
879
- a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
761
+ a.value = t, a.getSnapshot = e, Ee(a) && s({ inst: a });
880
762
  }, [n, t, e]), jn(function() {
881
- return ye(a) && s({ inst: a }), n(function() {
882
- ye(a) && s({ inst: a });
763
+ return Ee(a) && s({ inst: a }), n(function() {
764
+ Ee(a) && s({ inst: a });
883
765
  });
884
766
  }, [n]), zn(t), t;
885
767
  }
886
- function ye(n) {
768
+ function Ee(n) {
887
769
  var e = n.getSnapshot;
888
770
  n = n.value;
889
771
  try {
@@ -893,20 +775,26 @@ function ye(n) {
893
775
  return !0;
894
776
  }
895
777
  }
896
- function Gn(n, e) {
778
+ function Qn(n, e) {
897
779
  return e();
898
780
  }
899
- var Jn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Gn : Bn;
900
- Ut.useSyncExternalStore = Q.useSyncExternalStore !== void 0 ? Q.useSyncExternalStore : Jn;
901
- _t.exports = Ut;
902
- var Mt = _t.exports;
903
- const Qn = /* @__PURE__ */ Ae(Mt), { use: Ze } = Re, { useSyncExternalStore: Wn } = Qn;
904
- const Kn = /* @__PURE__ */ new WeakMap();
781
+ var Kn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Qn : Bn;
782
+ jt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : Kn;
783
+ Mt.exports = jt;
784
+ var $t = Mt.exports;
785
+ const Gn = /* @__PURE__ */ Me($t);
786
+ var Wn = { 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 };
787
+ const { use: Ye } = Ae, { useSyncExternalStore: Jn } = Gn, qn = (n, e) => {
788
+ const t = Re();
789
+ Se(() => {
790
+ t.current = Ln(n, e, !0);
791
+ }), Rt(t.current);
792
+ }, Hn = /* @__PURE__ */ new WeakMap();
905
793
  function Zn(n, e) {
906
- const t = e == null ? void 0 : e.sync, i = Me(), a = Me();
794
+ const t = e == null ? void 0 : e.sync, i = Re(), a = Re();
907
795
  let s = !0;
908
- const r = Wn(
909
- Ft(
796
+ const r = Jn(
797
+ xt(
910
798
  (l) => {
911
799
  const u = Vn(n, l, t);
912
800
  return l(), u;
@@ -914,9 +802,9 @@ function Zn(n, e) {
914
802
  [n, t]
915
803
  ),
916
804
  () => {
917
- const l = Ke(n, Ze);
805
+ const l = Xe(n, Ye);
918
806
  try {
919
- if (!s && i.current && a.current && !It(
807
+ if (!s && i.current && a.current && !Vt(
920
808
  i.current,
921
809
  l,
922
810
  a.current,
@@ -927,30 +815,30 @@ function Zn(n, e) {
927
815
  }
928
816
  return l;
929
817
  },
930
- () => Ke(n, Ze)
818
+ () => Xe(n, Ye)
931
819
  );
932
820
  s = !1;
933
821
  const o = /* @__PURE__ */ new WeakMap();
934
- Ce(() => {
822
+ Se(() => {
935
823
  i.current = r, a.current = o;
936
- });
937
- const d = Et(() => /* @__PURE__ */ new WeakMap(), []);
824
+ }), (Wn ? "production" : void 0) !== "production" && qn(r, o);
825
+ const d = Tt(() => /* @__PURE__ */ new WeakMap(), []);
938
826
  return Pt(
939
827
  r,
940
828
  o,
941
829
  d,
942
- Kn
830
+ Hn
943
831
  );
944
832
  }
945
- class qn {
833
+ class Xn {
946
834
  constructor() {
947
- D(this, "channel");
948
- D(this, "listeners", /* @__PURE__ */ new Map());
949
- D(this, "eventQueue", /* @__PURE__ */ new Map());
835
+ x(this, "channel");
836
+ x(this, "listeners", /* @__PURE__ */ new Map());
837
+ x(this, "eventQueue", /* @__PURE__ */ new Map());
950
838
  try {
951
- this.channel = new BroadcastChannel("nizza"), this.channel.onmessage = (e) => this.handleMessage(e), this.channel.onmessageerror = (e) => Y.error("NizzaBroadcastChannel:", e);
839
+ this.channel = new BroadcastChannel("nizza"), this.channel.onmessage = (e) => this.handleMessage(e), this.channel.onmessageerror = (e) => ee.error("NizzaBroadcastChannel:", e);
952
840
  } catch (e) {
953
- throw Y.error("Failed to create NizzaBroadcastChannel:", e), e;
841
+ throw ee.error("Failed to create NizzaBroadcastChannel:", e), e;
954
842
  }
955
843
  }
956
844
  /**
@@ -1011,7 +899,7 @@ class qn {
1011
899
  subscribeToEvent(e, t) {
1012
900
  if (typeof e != "string" || typeof t != "function") {
1013
901
  const i = new Error("Invalid arguments");
1014
- throw Y.error(i), i;
902
+ throw ee.error(i), i;
1015
903
  }
1016
904
  for (const [i, a] of this.listeners.entries())
1017
905
  if (this.matchWildcard(i, e)) {
@@ -1035,7 +923,7 @@ class qn {
1035
923
  emitEvent(e, t, i) {
1036
924
  if (typeof e != "string") {
1037
925
  const r = new Error("Invalid arguments");
1038
- throw Y.error(r), r;
926
+ throw ee.error(r), r;
1039
927
  }
1040
928
  const a = {
1041
929
  name: e,
@@ -1088,17 +976,235 @@ class qn {
1088
976
  return new RegExp(`^${i}$`).test(t);
1089
977
  }
1090
978
  }
1091
- let Xn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
1092
- const Hn = (n = 8) => Xn(n), Ms = (n) => {
979
+ let Yn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
980
+ const ei = (n = 8) => Yn(n), js = (n) => {
1093
981
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
1094
982
  return e ? `?${e}` : "";
1095
983
  };
1096
- function js() {
984
+ function $s() {
1097
985
  const n = new Error().stack.split(`
1098
986
  `);
1099
987
  return n.length < 3 ? "" : n[2].trim().substring(3);
1100
988
  }
1101
- const $ = In({
989
+ var zt = { exports: {} };
990
+ (function(n) {
991
+ (function(e, t) {
992
+ n.exports ? n.exports = t() : e.log = t();
993
+ })(Ut, function() {
994
+ var e = function() {
995
+ }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
996
+ "trace",
997
+ "debug",
998
+ "info",
999
+ "warn",
1000
+ "error"
1001
+ ];
1002
+ function s(k, y) {
1003
+ var F = k[y];
1004
+ if (typeof F.bind == "function")
1005
+ return F.bind(k);
1006
+ try {
1007
+ return Function.prototype.bind.call(F, k);
1008
+ } catch {
1009
+ return function() {
1010
+ return Function.prototype.apply.apply(F, [k, arguments]);
1011
+ };
1012
+ }
1013
+ }
1014
+ function r() {
1015
+ console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
1016
+ }
1017
+ function o(k) {
1018
+ return k === "debug" && (k = "log"), typeof console === t ? !1 : k === "trace" && i ? r : console[k] !== void 0 ? s(console, k) : console.log !== void 0 ? s(console, "log") : e;
1019
+ }
1020
+ function d(k, y) {
1021
+ for (var F = 0; F < a.length; F++) {
1022
+ var w = a[F];
1023
+ this[w] = F < k ? e : this.methodFactory(w, k, y);
1024
+ }
1025
+ this.log = this.debug;
1026
+ }
1027
+ function l(k, y, F) {
1028
+ return function() {
1029
+ typeof console !== t && (d.call(this, y, F), this[k].apply(this, arguments));
1030
+ };
1031
+ }
1032
+ function u(k, y, F) {
1033
+ return o(k) || l.apply(this, arguments);
1034
+ }
1035
+ function p(k, y, F) {
1036
+ var w = this, L;
1037
+ y = y == null ? "WARN" : y;
1038
+ var E = "loglevel";
1039
+ typeof k == "string" ? E += ":" + k : typeof k == "symbol" && (E = void 0);
1040
+ function I(m) {
1041
+ var g = (a[m] || "silent").toUpperCase();
1042
+ if (!(typeof window === t || !E)) {
1043
+ try {
1044
+ window.localStorage[E] = g;
1045
+ return;
1046
+ } catch {
1047
+ }
1048
+ try {
1049
+ window.document.cookie = encodeURIComponent(E) + "=" + g + ";";
1050
+ } catch {
1051
+ }
1052
+ }
1053
+ }
1054
+ function P() {
1055
+ var m;
1056
+ if (!(typeof window === t || !E)) {
1057
+ try {
1058
+ m = window.localStorage[E];
1059
+ } catch {
1060
+ }
1061
+ if (typeof m === t)
1062
+ try {
1063
+ var g = window.document.cookie, h = g.indexOf(
1064
+ encodeURIComponent(E) + "="
1065
+ );
1066
+ h !== -1 && (m = /^([^;]+)/.exec(g.slice(h))[1]);
1067
+ } catch {
1068
+ }
1069
+ return w.levels[m] === void 0 && (m = void 0), m;
1070
+ }
1071
+ }
1072
+ function A() {
1073
+ if (!(typeof window === t || !E)) {
1074
+ try {
1075
+ window.localStorage.removeItem(E);
1076
+ return;
1077
+ } catch {
1078
+ }
1079
+ try {
1080
+ window.document.cookie = encodeURIComponent(E) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
1081
+ } catch {
1082
+ }
1083
+ }
1084
+ }
1085
+ w.name = k, w.levels = {
1086
+ TRACE: 0,
1087
+ DEBUG: 1,
1088
+ INFO: 2,
1089
+ WARN: 3,
1090
+ ERROR: 4,
1091
+ SILENT: 5
1092
+ }, w.methodFactory = F || u, w.getLevel = function() {
1093
+ return L;
1094
+ }, w.setLevel = function(m, g) {
1095
+ if (typeof m == "string" && w.levels[m.toUpperCase()] !== void 0 && (m = w.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= w.levels.SILENT) {
1096
+ if (L = m, g !== !1 && I(m), d.call(w, m, k), typeof console === t && m < w.levels.SILENT)
1097
+ return "No console available for logging";
1098
+ } else
1099
+ throw "log.setLevel() called with invalid level: " + m;
1100
+ }, w.setDefaultLevel = function(m) {
1101
+ y = m, P() || w.setLevel(m, !1);
1102
+ }, w.resetLevel = function() {
1103
+ w.setLevel(y, !1), A();
1104
+ }, w.enableAll = function(m) {
1105
+ w.setLevel(w.levels.TRACE, m);
1106
+ }, w.disableAll = function(m) {
1107
+ w.setLevel(w.levels.SILENT, m);
1108
+ };
1109
+ var f = P();
1110
+ f == null && (f = y), w.setLevel(f, !1);
1111
+ }
1112
+ var c = new p(), v = {};
1113
+ c.getLogger = function(y) {
1114
+ if (typeof y != "symbol" && typeof y != "string" || y === "")
1115
+ throw new TypeError("You must supply a name when creating a logger.");
1116
+ var F = v[y];
1117
+ return F || (F = v[y] = new p(
1118
+ y,
1119
+ c.getLevel(),
1120
+ c.methodFactory
1121
+ )), F;
1122
+ };
1123
+ var S = typeof window !== t ? window.log : void 0;
1124
+ return c.noConflict = function() {
1125
+ return typeof window !== t && window.log === c && (window.log = S), c;
1126
+ }, c.getLoggers = function() {
1127
+ return v;
1128
+ }, c.default = c, c;
1129
+ });
1130
+ })(zt);
1131
+ var Bt = zt.exports;
1132
+ const oe = /* @__PURE__ */ Me(Bt);
1133
+ var Qt = { exports: {} };
1134
+ (function(n) {
1135
+ (function(e, t) {
1136
+ n.exports ? n.exports = t() : e.prefix = t(e);
1137
+ })(Ut, function(e) {
1138
+ var t = function(u) {
1139
+ for (var p = 1, c = arguments.length, v; p < c; p++)
1140
+ for (v in arguments[p])
1141
+ Object.prototype.hasOwnProperty.call(arguments[p], v) && (u[v] = arguments[p][v]);
1142
+ return u;
1143
+ }, i = {
1144
+ template: "[%t] %l:",
1145
+ levelFormatter: function(u) {
1146
+ return u.toUpperCase();
1147
+ },
1148
+ nameFormatter: function(u) {
1149
+ return u || "root";
1150
+ },
1151
+ timestampFormatter: function(u) {
1152
+ return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
1153
+ },
1154
+ format: void 0
1155
+ }, a, s = {}, r = function(u) {
1156
+ if (!u || !u.getLogger)
1157
+ throw new TypeError("Argument is not a root logger");
1158
+ a = u;
1159
+ }, o = function(u, p) {
1160
+ if (!u || !u.setLevel)
1161
+ throw new TypeError("Argument is not a logger");
1162
+ var c = u.methodFactory, v = u.name || "", S = s[v] || s[""] || i;
1163
+ function k(y, F, w) {
1164
+ var L = c(y, F, w), E = s[w] || s[""], I = E.template.indexOf("%t") !== -1, P = E.template.indexOf("%l") !== -1, A = E.template.indexOf("%n") !== -1;
1165
+ return function() {
1166
+ for (var f = "", m = arguments.length, g = Array(m), h = 0; h < m; h++)
1167
+ g[h] = arguments[h];
1168
+ if (v || !s[w]) {
1169
+ var N = E.timestampFormatter(/* @__PURE__ */ new Date()), C = E.levelFormatter(y), b = E.nameFormatter(w);
1170
+ E.format ? f += E.format(C, b, N) : (f += E.template, I && (f = f.replace(/%t/, N)), P && (f = f.replace(/%l/, C)), A && (f = f.replace(/%n/, b))), g.length && typeof g[0] == "string" ? g[0] = f + " " + g[0] : g.unshift(f);
1171
+ }
1172
+ L.apply(void 0, g);
1173
+ };
1174
+ }
1175
+ return s[v] || (u.methodFactory = k), p = p || {}, p.template && (p.format = void 0), s[v] = t({}, S, p), u.setLevel(u.getLevel()), a || u.warn(
1176
+ "It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
1177
+ ), u;
1178
+ }, d = {
1179
+ reg: r,
1180
+ apply: o
1181
+ }, l;
1182
+ return e && (l = e.prefix, d.noConflict = function() {
1183
+ return e.prefix === d && (e.prefix = l), d;
1184
+ }), d;
1185
+ });
1186
+ })(Qt);
1187
+ var ti = Qt.exports;
1188
+ const et = /* @__PURE__ */ Me(ti);
1189
+ let ni = class {
1190
+ constructor(e) {
1191
+ x(this, "defaultLevel", Bt.levels.INFO);
1192
+ x(this, "namePrefix");
1193
+ this.namePrefix = e ? `${e}-` : "", oe.setDefaultLevel(this.defaultLevel), et.reg(oe), et.apply(oe, {
1194
+ template: "[%t] %l (%n)",
1195
+ nameFormatter: (t) => {
1196
+ var i;
1197
+ return (i = t == null ? void 0 : t.toLowerCase()) != null ? i : "";
1198
+ },
1199
+ timestampFormatter: () => (/* @__PURE__ */ new Date()).toTimeString().slice(0, 8)
1200
+ });
1201
+ }
1202
+ createLogger(e) {
1203
+ const t = this.namePrefix + e.toLowerCase(), i = oe.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
1204
+ return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
1205
+ }
1206
+ };
1207
+ const z = Pn({
1102
1208
  config: null,
1103
1209
  get accountName() {
1104
1210
  var n;
@@ -1107,102 +1213,102 @@ const $ = In({
1107
1213
  get ok() {
1108
1214
  return !!this.account;
1109
1215
  }
1110
- }), Yn = async (n) => {
1216
+ }), ii = async (n) => {
1111
1217
  var e;
1112
1218
  try {
1113
- if ($.config = n, ((e = $.account) == null ? void 0 : e.account) !== n.account) {
1114
- const t = await ua(n.account);
1115
- $.account = t;
1219
+ if (z.config = n, ((e = z.account) == null ? void 0 : e.account) !== n.account) {
1220
+ const t = await ca(n.account);
1221
+ z.account = t;
1116
1222
  }
1117
1223
  if (n.getProductDataSource) {
1118
1224
  const t = await n.getProductDataSource();
1119
- $.productDataSource = Vt(t);
1225
+ z.productDataSource = _t(t);
1120
1226
  }
1121
1227
  } catch (t) {
1122
1228
  console.error("Error configuring NizzaStore:", t);
1123
1229
  }
1124
- }, ei = (n) => {
1125
- $.productDataSource = Vt(n);
1126
- }, qe = () => ({
1127
- log: Cn,
1128
- state: $,
1129
- configure: Yn,
1130
- setProductDataSource: ei,
1131
- instanceId: Hn(),
1132
- eventBus: new qn(),
1230
+ }, ai = (n) => {
1231
+ z.productDataSource = _t(n);
1232
+ }, tt = () => ({
1233
+ state: z,
1234
+ configure: ii,
1235
+ setProductDataSource: ai,
1236
+ instanceId: ei(),
1237
+ log: new ni("nz"),
1238
+ eventBus: new Xn(),
1133
1239
  get account() {
1134
- return $.account;
1240
+ return z.account;
1135
1241
  },
1136
1242
  get productDataSource() {
1137
- return $.productDataSource;
1243
+ return z.productDataSource;
1138
1244
  }
1139
- }), ti = () => {
1245
+ }), si = () => {
1140
1246
  if (typeof window != "undefined") {
1141
1247
  if (!window.nizza) {
1142
- const n = qe();
1248
+ const n = tt();
1143
1249
  window.nizza = n, window.nz = n;
1144
1250
  }
1145
1251
  return window.nizza;
1146
1252
  }
1147
- return qe();
1148
- }, jt = ti();
1149
- function J(n) {
1253
+ return tt();
1254
+ }, je = si(), Bs = je.log.createLogger("main"), ee = je.log.createLogger("core");
1255
+ function G(n) {
1150
1256
  return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1151
1257
  }
1152
- function le(n) {
1258
+ function de(n) {
1153
1259
  return function e(t) {
1154
- return arguments.length === 0 || J(t) ? e : n.apply(this, arguments);
1260
+ return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1155
1261
  };
1156
1262
  }
1157
- function Le(n) {
1263
+ function $e(n) {
1158
1264
  return function e(t, i) {
1159
1265
  switch (arguments.length) {
1160
1266
  case 0:
1161
1267
  return e;
1162
1268
  case 1:
1163
- return J(t) ? e : le(function(a) {
1269
+ return G(t) ? e : de(function(a) {
1164
1270
  return n(t, a);
1165
1271
  });
1166
1272
  default:
1167
- return J(t) && J(i) ? e : J(t) ? le(function(a) {
1273
+ return G(t) && G(i) ? e : G(t) ? de(function(a) {
1168
1274
  return n(a, i);
1169
- }) : J(i) ? le(function(a) {
1275
+ }) : G(i) ? de(function(a) {
1170
1276
  return n(t, a);
1171
1277
  }) : n(t, i);
1172
1278
  }
1173
1279
  };
1174
1280
  }
1175
- const ni = Number.isInteger || function(e) {
1281
+ const ri = Number.isInteger || function(e) {
1176
1282
  return e << 0 === e;
1177
1283
  };
1178
- function ii(n) {
1284
+ function oi(n) {
1179
1285
  return Object.prototype.toString.call(n) === "[object String]";
1180
1286
  }
1181
- var ai = /* @__PURE__ */ Le(function(e, t) {
1287
+ var li = /* @__PURE__ */ $e(function(e, t) {
1182
1288
  var i = e < 0 ? t.length + e : e;
1183
- return ii(t) ? t.charAt(i) : t[i];
1289
+ return oi(t) ? t.charAt(i) : t[i];
1184
1290
  });
1185
- const si = ai;
1186
- var ri = /* @__PURE__ */ le(function(e) {
1291
+ const di = li;
1292
+ var ui = /* @__PURE__ */ de(function(e) {
1187
1293
  return e == null;
1188
1294
  });
1189
- const oi = ri;
1190
- var li = /* @__PURE__ */ Le(function(e, t) {
1295
+ const ci = ui;
1296
+ var mi = /* @__PURE__ */ $e(function(e, t) {
1191
1297
  return e.map(function(i) {
1192
1298
  for (var a = t, s = 0, r; s < i.length; ) {
1193
1299
  if (a == null)
1194
1300
  return;
1195
- r = i[s], a = ni(r) ? si(r, a) : a[r], s += 1;
1301
+ r = i[s], a = ri(r) ? di(r, a) : a[r], s += 1;
1196
1302
  }
1197
1303
  return a;
1198
1304
  });
1199
1305
  });
1200
- const di = li;
1201
- var ui = /* @__PURE__ */ Le(function(e, t) {
1202
- return di([e], t)[0];
1306
+ const fi = mi;
1307
+ var pi = /* @__PURE__ */ $e(function(e, t) {
1308
+ return fi([e], t)[0];
1203
1309
  });
1204
- const ci = ui;
1205
- class ge extends Error {
1310
+ const hi = pi;
1311
+ class ye extends Error {
1206
1312
  constructor(e, t, i) {
1207
1313
  super(t), this.value = i, this.name = e;
1208
1314
  }
@@ -1214,7 +1320,7 @@ class ge extends Error {
1214
1320
  };
1215
1321
  }
1216
1322
  }
1217
- class mi extends ge {
1323
+ class gi extends ye {
1218
1324
  constructor(e) {
1219
1325
  super(
1220
1326
  "RESOURCE_NOT_FOUND_ERROR",
@@ -1223,7 +1329,7 @@ class mi extends ge {
1223
1329
  );
1224
1330
  }
1225
1331
  }
1226
- class fi extends ge {
1332
+ class ki extends ye {
1227
1333
  constructor(e) {
1228
1334
  var t;
1229
1335
  super(
@@ -1233,12 +1339,12 @@ class fi extends ge {
1233
1339
  );
1234
1340
  }
1235
1341
  }
1236
- class $s extends ge {
1342
+ class Qs extends ye {
1237
1343
  constructor() {
1238
1344
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1239
1345
  }
1240
1346
  }
1241
- class pi extends ge {
1347
+ class vi extends ye {
1242
1348
  constructor(e) {
1243
1349
  super(
1244
1350
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -1266,38 +1372,12 @@ class pi extends ge {
1266
1372
  );
1267
1373
  }
1268
1374
  }
1269
- function zs(n, e) {
1375
+ function Ks(n, e) {
1270
1376
  e.forEach((t) => {
1271
- if (oi(ci(t.split("."), n)))
1272
- throw new pi(t);
1377
+ if (ci(hi(t.split("."), n)))
1378
+ throw new vi(t);
1273
1379
  });
1274
1380
  }
1275
- const ie = jt.log, $t = ie.levels.INFO;
1276
- ie.setDefaultLevel($t);
1277
- Dt.reg(ie);
1278
- Dt.apply(ie, {
1279
- template: "[%t] %l (%n)",
1280
- nameFormatter: (n) => {
1281
- var e;
1282
- return (e = n == null ? void 0 : n.toLowerCase()) != null ? e : "";
1283
- },
1284
- timestampFormatter: () => (/* @__PURE__ */ new Date()).toTimeString().slice(0, 8)
1285
- });
1286
- const zt = {}, Bs = Bt("main"), Y = Bt("core");
1287
- function hi(n) {
1288
- const e = ie.getLogger(n);
1289
- return e.setLevel($t), e;
1290
- }
1291
- function gi(n, e) {
1292
- zt[n] = e;
1293
- }
1294
- function ki(n) {
1295
- return zt[n];
1296
- }
1297
- function Bt(n) {
1298
- const e = hi(n);
1299
- return gi(n, e), ki(n);
1300
- }
1301
1381
  function Gs() {
1302
1382
  var i, a, s;
1303
1383
  let n = null, e = null, t = null;
@@ -1313,7 +1393,7 @@ function Gs() {
1313
1393
  );
1314
1394
  e = `${o}${d}:${l}`;
1315
1395
  } catch {
1316
- Y.error("Error obtaining time zone or offset");
1396
+ ee.error("Error obtaining time zone or offset");
1317
1397
  }
1318
1398
  return {
1319
1399
  offset: e,
@@ -1324,10 +1404,10 @@ function Gs() {
1324
1404
  label: null
1325
1405
  };
1326
1406
  }
1327
- class vi {
1407
+ class Si {
1328
1408
  constructor(e) {
1329
- D(this, "aggregate");
1330
- D(this, "_numSetPropsApplied", 0);
1409
+ x(this, "aggregate");
1410
+ x(this, "_numSetPropsApplied", 0);
1331
1411
  this.aggregate = e;
1332
1412
  }
1333
1413
  setProps(e) {
@@ -1339,48 +1419,48 @@ class vi {
1339
1419
  return this._numSetPropsApplied === 1;
1340
1420
  }
1341
1421
  }
1342
- function Si(n) {
1343
- return new vi(n);
1422
+ function yi(n) {
1423
+ return new Si(n);
1344
1424
  }
1345
- class Js {
1425
+ class Ws {
1346
1426
  }
1347
- class Qs {
1427
+ class Js {
1348
1428
  constructor(e) {
1349
- D(this, "_value");
1429
+ x(this, "_value");
1350
1430
  e !== void 0 && (this._value = e);
1351
1431
  }
1352
1432
  get value() {
1353
1433
  return this._value;
1354
1434
  }
1355
1435
  }
1356
- var Gt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Gt || {}), yi = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(yi || {}), Jt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Jt || {}), Ni = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(Ni || {}), bi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(bi || {}), Fi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(Fi || {});
1357
- class Pe {
1436
+ var Kt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Kt || {}), Ni = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(Ni || {}), Gt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Gt || {}), bi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(bi || {}), Fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(Fi || {}), wi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(wi || {});
1437
+ class ze {
1358
1438
  constructor(e) {
1359
- D(this, "root", Si(this));
1360
- D(this, "id");
1361
- D(this, "account");
1362
- D(this, "accountType", Gt.UNKNOWN);
1363
- D(this, "username");
1364
- D(this, "currencyConfig");
1365
- D(this, "contractType");
1366
- D(this, "nextDateMetricRecord");
1367
- D(this, "spendedMinutes", 0);
1368
- D(this, "unlimitedService", !1);
1369
- D(this, "hoursAvailable", 0);
1370
- D(this, "contractStatus", Jt.ACTIVE);
1371
- D(this, "createdAt");
1372
- D(this, "installationDateApp");
1373
- D(this, "cxAccount");
1374
- D(this, "freeService", !1);
1375
- D(this, "subscriptionType", null);
1376
- D(this, "minutesAvailable", 0);
1377
- D(this, "globalPage");
1378
- D(this, "stripe");
1379
- D(this, "descriptionPlan");
1380
- D(this, "planType");
1381
- D(this, "selectFreeTrial");
1382
- D(this, "exceededFeatures");
1383
- D(this, "host", null);
1439
+ x(this, "root", yi(this));
1440
+ x(this, "id");
1441
+ x(this, "account");
1442
+ x(this, "accountType", Kt.UNKNOWN);
1443
+ x(this, "username");
1444
+ x(this, "currencyConfig");
1445
+ x(this, "contractType");
1446
+ x(this, "nextDateMetricRecord");
1447
+ x(this, "spendedMinutes", 0);
1448
+ x(this, "unlimitedService", !1);
1449
+ x(this, "hoursAvailable", 0);
1450
+ x(this, "contractStatus", Gt.ACTIVE);
1451
+ x(this, "createdAt");
1452
+ x(this, "installationDateApp");
1453
+ x(this, "cxAccount");
1454
+ x(this, "freeService", !1);
1455
+ x(this, "subscriptionType", null);
1456
+ x(this, "minutesAvailable", 0);
1457
+ x(this, "globalPage");
1458
+ x(this, "stripe");
1459
+ x(this, "descriptionPlan");
1460
+ x(this, "planType");
1461
+ x(this, "selectFreeTrial");
1462
+ x(this, "exceededFeatures");
1463
+ x(this, "host", null);
1384
1464
  this.root.setProps(e);
1385
1465
  }
1386
1466
  static toDomain(e) {
@@ -1389,7 +1469,7 @@ class Pe {
1389
1469
  username: i != null ? i : a.account,
1390
1470
  createdAt: new Date(Number(t))
1391
1471
  };
1392
- return new Pe(s);
1472
+ return new ze(s);
1393
1473
  }
1394
1474
  toPrimitives() {
1395
1475
  const { root: e, createdAt: t, ...i } = this;
@@ -1399,16 +1479,16 @@ class Pe {
1399
1479
  };
1400
1480
  }
1401
1481
  }
1402
- const Ei = `${En.apiUrls.restV1}/accounts/v2`;
1403
- class Oi {
1482
+ const Ci = `${En.apiUrls.restV1}/accounts/v2`;
1483
+ class Ei {
1404
1484
  async get(e) {
1405
- const t = `${Ei}/${e}`, { data: i } = await Rt({
1485
+ const t = `${Ci}/${e}`, { data: i } = await It({
1406
1486
  url: t
1407
1487
  });
1408
- return i ? Pe.toDomain(i) : null;
1488
+ return i ? ze.toDomain(i) : null;
1409
1489
  }
1410
1490
  }
1411
- class wi {
1491
+ class Oi {
1412
1492
  constructor(e) {
1413
1493
  this.accountRepository = e;
1414
1494
  }
@@ -1416,15 +1496,15 @@ class wi {
1416
1496
  try {
1417
1497
  const t = await this.accountRepository.get(e);
1418
1498
  if (!t)
1419
- throw new mi(e);
1499
+ throw new gi(e);
1420
1500
  return t;
1421
1501
  } catch (t) {
1422
- throw new fi(t);
1502
+ throw new ki(t);
1423
1503
  }
1424
1504
  }
1425
1505
  }
1426
- const Ri = new Oi(), Qt = new wi(Ri);
1427
- class Ie {
1506
+ const Ri = new Ei(), Wt = new Oi(Ri);
1507
+ class Be {
1428
1508
  constructor() {
1429
1509
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1430
1510
  }
@@ -1444,17 +1524,17 @@ class Ie {
1444
1524
  onUnsubscribe() {
1445
1525
  }
1446
1526
  }
1447
- const ue = typeof window == "undefined" || "Deno" in window;
1448
- function Ci() {
1527
+ const fe = typeof window == "undefined" || "Deno" in window;
1528
+ function xi() {
1449
1529
  }
1450
- function Xe(n) {
1530
+ function nt(n) {
1451
1531
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1452
1532
  }
1453
1533
  function Ti(n, e) {
1454
1534
  return Math.max(n + (e || 0) - Date.now(), 0);
1455
1535
  }
1456
1536
  function Di(n, e, t) {
1457
- return Ai(n) ? typeof e == "function" ? {
1537
+ return Li(n) ? typeof e == "function" ? {
1458
1538
  ...t,
1459
1539
  queryKey: n,
1460
1540
  queryFn: e
@@ -1463,22 +1543,22 @@ function Di(n, e, t) {
1463
1543
  queryKey: n
1464
1544
  } : n;
1465
1545
  }
1466
- function Wt(n, e) {
1546
+ function Jt(n, e) {
1467
1547
  if (n === e)
1468
1548
  return n;
1469
- const t = He(n) && He(e);
1470
- if (t || Ye(n) && Ye(e)) {
1549
+ const t = it(n) && it(e);
1550
+ if (t || at(n) && at(e)) {
1471
1551
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1472
1552
  let o = 0;
1473
1553
  for (let d = 0; d < s; d++) {
1474
1554
  const l = t ? d : a[d];
1475
- r[l] = Wt(n[l], e[l]), r[l] === n[l] && o++;
1555
+ r[l] = Jt(n[l], e[l]), r[l] === n[l] && o++;
1476
1556
  }
1477
1557
  return i === s && o === i ? n : r;
1478
1558
  }
1479
1559
  return e;
1480
1560
  }
1481
- function Ee(n, e) {
1561
+ function De(n, e) {
1482
1562
  if (n && !e || e && !n)
1483
1563
  return !1;
1484
1564
  for (const t in n)
@@ -1486,39 +1566,39 @@ function Ee(n, e) {
1486
1566
  return !1;
1487
1567
  return !0;
1488
1568
  }
1489
- function He(n) {
1569
+ function it(n) {
1490
1570
  return Array.isArray(n) && n.length === Object.keys(n).length;
1491
1571
  }
1492
- function Ye(n) {
1493
- if (!et(n))
1572
+ function at(n) {
1573
+ if (!st(n))
1494
1574
  return !1;
1495
1575
  const e = n.constructor;
1496
1576
  if (typeof e == "undefined")
1497
1577
  return !0;
1498
1578
  const t = e.prototype;
1499
- return !(!et(t) || !t.hasOwnProperty("isPrototypeOf"));
1579
+ return !(!st(t) || !t.hasOwnProperty("isPrototypeOf"));
1500
1580
  }
1501
- function et(n) {
1581
+ function st(n) {
1502
1582
  return Object.prototype.toString.call(n) === "[object Object]";
1503
1583
  }
1504
- function Ai(n) {
1584
+ function Li(n) {
1505
1585
  return Array.isArray(n);
1506
1586
  }
1507
- function xi(n) {
1587
+ function Ii(n) {
1508
1588
  return new Promise((e) => {
1509
1589
  setTimeout(e, n);
1510
1590
  });
1511
1591
  }
1512
- function tt(n) {
1513
- xi(0).then(n);
1592
+ function rt(n) {
1593
+ Ii(0).then(n);
1514
1594
  }
1515
- function nt(n, e, t) {
1516
- return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Wt(n, e) : e;
1595
+ function ot(n, e, t) {
1596
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Jt(n, e) : e;
1517
1597
  }
1518
- class Li extends Ie {
1598
+ class Ai extends Be {
1519
1599
  constructor() {
1520
1600
  super(), this.setup = (e) => {
1521
- if (!ue && window.addEventListener) {
1601
+ if (!fe && window.addEventListener) {
1522
1602
  const t = () => e();
1523
1603
  return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
1524
1604
  window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
@@ -1555,16 +1635,16 @@ class Li extends Ie {
1555
1635
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1556
1636
  }
1557
1637
  }
1558
- const Pi = new Li(), it = ["online", "offline"];
1559
- class Ii extends Ie {
1638
+ const Pi = new Ai(), lt = ["online", "offline"];
1639
+ class Vi extends Be {
1560
1640
  constructor() {
1561
1641
  super(), this.setup = (e) => {
1562
- if (!ue && window.addEventListener) {
1642
+ if (!fe && window.addEventListener) {
1563
1643
  const t = () => e();
1564
- return it.forEach((i) => {
1644
+ return lt.forEach((i) => {
1565
1645
  window.addEventListener(i, t, !1);
1566
1646
  }), () => {
1567
- it.forEach((i) => {
1647
+ lt.forEach((i) => {
1568
1648
  window.removeEventListener(i, t);
1569
1649
  });
1570
1650
  };
@@ -1600,47 +1680,47 @@ class Ii extends Ie {
1600
1680
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1601
1681
  }
1602
1682
  }
1603
- const Vi = new Ii();
1604
- function _i(n) {
1605
- return (n != null ? n : "online") === "online" ? Vi.isOnline() : !0;
1683
+ const _i = new Vi();
1684
+ function Ui(n) {
1685
+ return (n != null ? n : "online") === "online" ? _i.isOnline() : !0;
1606
1686
  }
1607
- class Ui {
1687
+ class Mi {
1608
1688
  constructor(e) {
1609
1689
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1610
1690
  }
1611
1691
  }
1612
- function Mi(n) {
1613
- return n instanceof Ui;
1692
+ function ji(n) {
1693
+ return n instanceof Mi;
1614
1694
  }
1615
- function ji() {
1695
+ function $i() {
1616
1696
  let n = [], e = 0, t = (u) => {
1617
1697
  u();
1618
1698
  }, i = (u) => {
1619
1699
  u();
1620
1700
  };
1621
1701
  const a = (u) => {
1622
- let f;
1702
+ let p;
1623
1703
  e++;
1624
1704
  try {
1625
- f = u();
1705
+ p = u();
1626
1706
  } finally {
1627
1707
  e--, e || o();
1628
1708
  }
1629
- return f;
1709
+ return p;
1630
1710
  }, s = (u) => {
1631
- e ? n.push(u) : tt(() => {
1711
+ e ? n.push(u) : rt(() => {
1632
1712
  t(u);
1633
1713
  });
1634
- }, r = (u) => (...f) => {
1714
+ }, r = (u) => (...p) => {
1635
1715
  s(() => {
1636
- u(...f);
1716
+ u(...p);
1637
1717
  });
1638
1718
  }, o = () => {
1639
1719
  const u = n;
1640
- n = [], u.length && tt(() => {
1720
+ n = [], u.length && rt(() => {
1641
1721
  i(() => {
1642
- u.forEach((f) => {
1643
- t(f);
1722
+ u.forEach((p) => {
1723
+ t(p);
1644
1724
  });
1645
1725
  });
1646
1726
  });
@@ -1657,8 +1737,8 @@ function ji() {
1657
1737
  }
1658
1738
  };
1659
1739
  }
1660
- const ee = ji();
1661
- class $i extends Ie {
1740
+ const te = $i();
1741
+ class zi extends Be {
1662
1742
  constructor(e, t) {
1663
1743
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1664
1744
  }
@@ -1666,23 +1746,23 @@ class $i extends Ie {
1666
1746
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1667
1747
  }
1668
1748
  onSubscribe() {
1669
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), at(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1749
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), dt(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1670
1750
  }
1671
1751
  onUnsubscribe() {
1672
1752
  this.hasListeners() || this.destroy();
1673
1753
  }
1674
1754
  shouldFetchOnReconnect() {
1675
- return Oe(this.currentQuery, this.options, this.options.refetchOnReconnect);
1755
+ return Le(this.currentQuery, this.options, this.options.refetchOnReconnect);
1676
1756
  }
1677
1757
  shouldFetchOnWindowFocus() {
1678
- return Oe(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1758
+ return Le(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1679
1759
  }
1680
1760
  destroy() {
1681
1761
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1682
1762
  }
1683
1763
  setOptions(e, t) {
1684
1764
  const i = this.options, a = this.currentQuery;
1685
- if (this.options = this.client.defaultQueryOptions(e), Ee(i, this.options) || this.client.getQueryCache().notify({
1765
+ if (this.options = this.client.defaultQueryOptions(e), De(i, this.options) || this.client.getQueryCache().notify({
1686
1766
  type: "observerOptionsUpdated",
1687
1767
  query: this.currentQuery,
1688
1768
  observer: this
@@ -1690,13 +1770,13 @@ class $i extends Ie {
1690
1770
  throw new Error("Expected enabled to be a boolean");
1691
1771
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1692
1772
  const s = this.hasListeners();
1693
- s && st(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
1773
+ s && ut(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
1694
1774
  const r = this.computeRefetchInterval();
1695
1775
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1696
1776
  }
1697
1777
  getOptimisticResult(e) {
1698
1778
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1699
- return Bi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1779
+ return Qi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1700
1780
  }
1701
1781
  getCurrentResult() {
1702
1782
  return this.currentResult;
@@ -1742,10 +1822,10 @@ class $i extends Ie {
1742
1822
  executeFetch(e) {
1743
1823
  this.updateQuery();
1744
1824
  let t = this.currentQuery.fetch(this.options, e);
1745
- return e != null && e.throwOnError || (t = t.catch(Ci)), t;
1825
+ return e != null && e.throwOnError || (t = t.catch(xi)), t;
1746
1826
  }
1747
1827
  updateStaleTimeout() {
1748
- if (this.clearStaleTimeout(), ue || this.currentResult.isStale || !Xe(this.options.staleTime))
1828
+ if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
1749
1829
  return;
1750
1830
  const t = Ti(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1751
1831
  this.staleTimeoutId = setTimeout(() => {
@@ -1757,7 +1837,7 @@ class $i extends Ie {
1757
1837
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1758
1838
  }
1759
1839
  updateRefetchInterval(e) {
1760
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(ue || this.options.enabled === !1 || !Xe(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1840
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(fe || this.options.enabled === !1 || !nt(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1761
1841
  (this.options.refetchIntervalInBackground || Pi.isFocused()) && this.executeFetch();
1762
1842
  }, this.currentRefetchInterval));
1763
1843
  }
@@ -1772,77 +1852,77 @@ class $i extends Ie {
1772
1852
  }
1773
1853
  createResult(e, t) {
1774
1854
  const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, d = e !== i, l = d ? e.state : this.currentQueryInitialState, u = d ? this.currentResult : this.previousQueryResult, {
1775
- state: f
1855
+ state: p
1776
1856
  } = e;
1777
1857
  let {
1778
1858
  dataUpdatedAt: c,
1779
- error: y,
1780
- errorUpdatedAt: v,
1859
+ error: v,
1860
+ errorUpdatedAt: S,
1781
1861
  fetchStatus: k,
1782
- status: S
1783
- } = f, F = !1, E = !1, x;
1862
+ status: y
1863
+ } = p, F = !1, w = !1, L;
1784
1864
  if (t._optimisticResults) {
1785
- const p = this.hasListeners(), m = !p && at(e, t), g = p && st(e, i, t, a);
1786
- (m || g) && (k = _i(e.options.networkMode) ? "fetching" : "paused", c || (S = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1787
- }
1788
- if (t.keepPreviousData && !f.dataUpdatedAt && u != null && u.isSuccess && S !== "error")
1789
- x = u.data, c = u.dataUpdatedAt, S = u.status, F = !0;
1790
- else if (t.select && typeof f.data != "undefined")
1791
- if (s && f.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1792
- x = this.selectResult;
1865
+ const f = this.hasListeners(), m = !f && dt(e, t), g = f && ut(e, i, t, a);
1866
+ (m || g) && (k = Ui(e.options.networkMode) ? "fetching" : "paused", c || (y = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1867
+ }
1868
+ if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && y !== "error")
1869
+ L = u.data, c = u.dataUpdatedAt, y = u.status, F = !0;
1870
+ else if (t.select && typeof p.data != "undefined")
1871
+ if (s && p.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1872
+ L = this.selectResult;
1793
1873
  else
1794
1874
  try {
1795
- this.selectFn = t.select, x = t.select(f.data), x = nt(s == null ? void 0 : s.data, x, t), this.selectResult = x, this.selectError = null;
1796
- } catch (p) {
1797
- this.selectError = p;
1875
+ this.selectFn = t.select, L = t.select(p.data), L = ot(s == null ? void 0 : s.data, L, t), this.selectResult = L, this.selectError = null;
1876
+ } catch (f) {
1877
+ this.selectError = f;
1798
1878
  }
1799
1879
  else
1800
- x = f.data;
1801
- if (typeof t.placeholderData != "undefined" && typeof x == "undefined" && S === "loading") {
1802
- let p;
1880
+ L = p.data;
1881
+ if (typeof t.placeholderData != "undefined" && typeof L == "undefined" && y === "loading") {
1882
+ let f;
1803
1883
  if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
1804
- p = s.data;
1805
- else if (p = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof p != "undefined")
1884
+ f = s.data;
1885
+ else if (f = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof f != "undefined")
1806
1886
  try {
1807
- p = t.select(p), this.selectError = null;
1887
+ f = t.select(f), this.selectError = null;
1808
1888
  } catch (m) {
1809
1889
  this.selectError = m;
1810
1890
  }
1811
- typeof p != "undefined" && (S = "success", x = nt(s == null ? void 0 : s.data, p, t), E = !0);
1891
+ typeof f != "undefined" && (y = "success", L = ot(s == null ? void 0 : s.data, f, t), w = !0);
1812
1892
  }
1813
- this.selectError && (y = this.selectError, x = this.selectResult, v = Date.now(), S = "error");
1814
- const w = k === "fetching", L = S === "loading", I = S === "error";
1893
+ this.selectError && (v = this.selectError, L = this.selectResult, S = Date.now(), y = "error");
1894
+ const E = k === "fetching", I = y === "loading", P = y === "error";
1815
1895
  return {
1816
- status: S,
1896
+ status: y,
1817
1897
  fetchStatus: k,
1818
- isLoading: L,
1819
- isSuccess: S === "success",
1820
- isError: I,
1821
- isInitialLoading: L && w,
1822
- data: x,
1898
+ isLoading: I,
1899
+ isSuccess: y === "success",
1900
+ isError: P,
1901
+ isInitialLoading: I && E,
1902
+ data: L,
1823
1903
  dataUpdatedAt: c,
1824
- error: y,
1825
- errorUpdatedAt: v,
1826
- failureCount: f.fetchFailureCount,
1827
- failureReason: f.fetchFailureReason,
1828
- errorUpdateCount: f.errorUpdateCount,
1829
- isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1830
- isFetchedAfterMount: f.dataUpdateCount > l.dataUpdateCount || f.errorUpdateCount > l.errorUpdateCount,
1831
- isFetching: w,
1832
- isRefetching: w && !L,
1833
- isLoadingError: I && f.dataUpdatedAt === 0,
1904
+ error: v,
1905
+ errorUpdatedAt: S,
1906
+ failureCount: p.fetchFailureCount,
1907
+ failureReason: p.fetchFailureReason,
1908
+ errorUpdateCount: p.errorUpdateCount,
1909
+ isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
1910
+ isFetchedAfterMount: p.dataUpdateCount > l.dataUpdateCount || p.errorUpdateCount > l.errorUpdateCount,
1911
+ isFetching: E,
1912
+ isRefetching: E && !I,
1913
+ isLoadingError: P && p.dataUpdatedAt === 0,
1834
1914
  isPaused: k === "paused",
1835
- isPlaceholderData: E,
1915
+ isPlaceholderData: w,
1836
1916
  isPreviousData: F,
1837
- isRefetchError: I && f.dataUpdatedAt !== 0,
1838
- isStale: Ve(e, t),
1917
+ isRefetchError: P && p.dataUpdatedAt !== 0,
1918
+ isStale: Qe(e, t),
1839
1919
  refetch: this.refetch,
1840
1920
  remove: this.remove
1841
1921
  };
1842
1922
  }
1843
1923
  updateResult(e) {
1844
1924
  const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1845
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, Ee(i, t))
1925
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, De(i, t))
1846
1926
  return;
1847
1927
  this.currentResult = i;
1848
1928
  const a = {
@@ -1875,10 +1955,10 @@ class $i extends Ie {
1875
1955
  }
1876
1956
  onQueryUpdate(e) {
1877
1957
  const t = {};
1878
- e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Mi(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1958
+ e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !ji(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1879
1959
  }
1880
1960
  notify(e) {
1881
- ee.batch(() => {
1961
+ te.batch(() => {
1882
1962
  if (e.onSuccess) {
1883
1963
  var t, i, a, s;
1884
1964
  (t = (i = this.options).onSuccess) == null || t.call(i, this.currentResult.data), (a = (s = this.options).onSettled) == null || a.call(s, this.currentResult.data, null);
@@ -1897,42 +1977,42 @@ class $i extends Ie {
1897
1977
  });
1898
1978
  }
1899
1979
  }
1900
- function zi(n, e) {
1980
+ function Bi(n, e) {
1901
1981
  return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1902
1982
  }
1903
- function at(n, e) {
1904
- return zi(n, e) || n.state.dataUpdatedAt > 0 && Oe(n, e, e.refetchOnMount);
1983
+ function dt(n, e) {
1984
+ return Bi(n, e) || n.state.dataUpdatedAt > 0 && Le(n, e, e.refetchOnMount);
1905
1985
  }
1906
- function Oe(n, e, t) {
1986
+ function Le(n, e, t) {
1907
1987
  if (e.enabled !== !1) {
1908
1988
  const i = typeof t == "function" ? t(n) : t;
1909
- return i === "always" || i !== !1 && Ve(n, e);
1989
+ return i === "always" || i !== !1 && Qe(n, e);
1910
1990
  }
1911
1991
  return !1;
1912
1992
  }
1913
- function st(n, e, t, i) {
1914
- return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Ve(n, t);
1993
+ function ut(n, e, t, i) {
1994
+ return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Qe(n, t);
1915
1995
  }
1916
- function Ve(n, e) {
1996
+ function Qe(n, e) {
1917
1997
  return n.isStaleByTime(e.staleTime);
1918
1998
  }
1919
- function Bi(n, e, t) {
1920
- return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !Ee(n.getCurrentResult(), e);
1999
+ function Qi(n, e, t) {
2000
+ return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !De(n.getCurrentResult(), e);
1921
2001
  }
1922
- const Gi = Mt.useSyncExternalStore, rt = /* @__PURE__ */ U.createContext(void 0), Ji = /* @__PURE__ */ U.createContext(!1);
1923
- function Qi(n, e) {
1924
- return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = rt), window.ReactQueryClientContext) : rt);
2002
+ const Ki = $t.useSyncExternalStore, ct = /* @__PURE__ */ M.createContext(void 0), Gi = /* @__PURE__ */ M.createContext(!1);
2003
+ function Wi(n, e) {
2004
+ return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = ct), window.ReactQueryClientContext) : ct);
1925
2005
  }
1926
- const Wi = ({
2006
+ const Ji = ({
1927
2007
  context: n
1928
2008
  } = {}) => {
1929
- const e = U.useContext(Qi(n, U.useContext(Ji)));
2009
+ const e = M.useContext(Wi(n, M.useContext(Gi)));
1930
2010
  if (!e)
1931
2011
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1932
2012
  return e;
1933
- }, Kt = /* @__PURE__ */ U.createContext(!1), Ki = () => U.useContext(Kt);
1934
- Kt.Provider;
1935
- function Zi() {
2013
+ }, qt = /* @__PURE__ */ M.createContext(!1), qi = () => M.useContext(qt);
2014
+ qt.Provider;
2015
+ function Hi() {
1936
2016
  let n = !1;
1937
2017
  return {
1938
2018
  clearReset: () => {
@@ -1944,47 +2024,47 @@ function Zi() {
1944
2024
  isReset: () => n
1945
2025
  };
1946
2026
  }
1947
- const qi = /* @__PURE__ */ U.createContext(Zi()), Xi = () => U.useContext(qi);
1948
- function Hi(n, e) {
2027
+ const Zi = /* @__PURE__ */ M.createContext(Hi()), Xi = () => M.useContext(Zi);
2028
+ function Yi(n, e) {
1949
2029
  return typeof n == "function" ? n(...e) : !!n;
1950
2030
  }
1951
- const Yi = (n, e) => {
2031
+ const ea = (n, e) => {
1952
2032
  (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
1953
- }, ea = (n) => {
1954
- U.useEffect(() => {
2033
+ }, ta = (n) => {
2034
+ M.useEffect(() => {
1955
2035
  n.clearReset();
1956
2036
  }, [n]);
1957
- }, ta = ({
2037
+ }, na = ({
1958
2038
  result: n,
1959
2039
  errorResetBoundary: e,
1960
2040
  useErrorBoundary: t,
1961
2041
  query: i
1962
- }) => n.isError && !e.isReset() && !n.isFetching && Hi(t, [n.error, i]), na = (n) => {
2042
+ }) => n.isError && !e.isReset() && !n.isFetching && Yi(t, [n.error, i]), ia = (n) => {
1963
2043
  n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
1964
- }, ia = (n, e) => n.isLoading && n.isFetching && !e, aa = (n, e, t) => (n == null ? void 0 : n.suspense) && ia(e, t), sa = (n, e, t) => e.fetchOptimistic(n).then(({
2044
+ }, aa = (n, e) => n.isLoading && n.isFetching && !e, sa = (n, e, t) => (n == null ? void 0 : n.suspense) && aa(e, t), ra = (n, e, t) => e.fetchOptimistic(n).then(({
1965
2045
  data: i
1966
2046
  }) => {
1967
2047
  n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
1968
2048
  }).catch((i) => {
1969
2049
  t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
1970
2050
  });
1971
- function ra(n, e) {
1972
- const t = Wi({
2051
+ function oa(n, e) {
2052
+ const t = Ji({
1973
2053
  context: n.context
1974
- }), i = Ki(), a = Xi(), s = t.defaultQueryOptions(n);
1975
- s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = ee.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = ee.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = ee.batchCalls(s.onSettled)), na(s), Yi(s, a), ea(a);
1976
- const [r] = U.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
1977
- if (Gi(U.useCallback((d) => {
2054
+ }), i = qi(), a = Xi(), s = t.defaultQueryOptions(n);
2055
+ s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = te.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = te.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = te.batchCalls(s.onSettled)), ia(s), ea(s, a), ta(a);
2056
+ const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
2057
+ if (Ki(M.useCallback((d) => {
1978
2058
  const l = i ? () => {
1979
- } : r.subscribe(ee.batchCalls(d));
2059
+ } : r.subscribe(te.batchCalls(d));
1980
2060
  return r.updateResult(), l;
1981
- }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), U.useEffect(() => {
2061
+ }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
1982
2062
  r.setOptions(s, {
1983
2063
  listeners: !1
1984
2064
  });
1985
- }, [s, r]), aa(s, o, i))
1986
- throw sa(s, r, a);
1987
- if (ta({
2065
+ }, [s, r]), sa(s, o, i))
2066
+ throw ra(s, r, a);
2067
+ if (na({
1988
2068
  result: o,
1989
2069
  errorResetBoundary: a,
1990
2070
  useErrorBoundary: s.useErrorBoundary,
@@ -1993,30 +2073,30 @@ function ra(n, e) {
1993
2073
  throw o.error;
1994
2074
  return s.notifyOnChangeProps ? o : r.trackResult(o);
1995
2075
  }
1996
- function oa(n, e, t) {
2076
+ function la(n, e, t) {
1997
2077
  const i = Di(n, e, t);
1998
- return ra(i, $i);
2078
+ return oa(i, zi);
1999
2079
  }
2000
- const la = () => ["account"], Ws = () => {
2001
- const { accountName: n } = Zn(jt.state), [e, t] = Sn(De), i = oa(la(), () => Qt.get(n), {
2080
+ const da = () => ["account"], qs = () => {
2081
+ const { accountName: n } = Zn(je.state), [e, t] = yn(Ve), i = la(da(), () => Wt.get(n), {
2002
2082
  enabled: !!n && !e,
2003
2083
  refetchOnWindowFocus: !1,
2004
2084
  refetchOnMount: !1
2005
2085
  });
2006
- return Ce(() => {
2086
+ return Se(() => {
2007
2087
  const a = i.data;
2008
2088
  !i.isSuccess || !a || t(a);
2009
2089
  }, [i.status]), {
2010
2090
  findQuery: i,
2011
2091
  account: e
2012
2092
  };
2013
- }, da = Ot();
2014
- async function ua(n) {
2015
- const e = await Qt.get(n);
2016
- return da.set(De, e), e;
2093
+ }, ua = Dt();
2094
+ async function ca(n) {
2095
+ const e = await Wt.get(n);
2096
+ return ua.set(Ve, e), e;
2017
2097
  }
2018
- var ca = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ca || {});
2019
- const Ks = {
2098
+ var ma = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ma || {});
2099
+ const Hs = {
2020
2100
  ALL: "*",
2021
2101
  CORE: "core:**",
2022
2102
  LIVE_STREAMING_EVENT: "event:**",
@@ -2031,8 +2111,8 @@ const Ks = {
2031
2111
  }, Zs = {
2032
2112
  EVENT_STATUS_CHANGED: "event:statusChanged"
2033
2113
  };
2034
- var ma = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ma || {}), fa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(fa || {}), pa = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n))(pa || {});
2035
- const ha = {
2114
+ var fa = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(fa || {}), pa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(pa || {}), ha = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n))(ha || {});
2115
+ const ga = {
2036
2116
  type: "logger",
2037
2117
  log(n) {
2038
2118
  this.output("log", n);
@@ -2047,14 +2127,14 @@ const ha = {
2047
2127
  console && console[n] && console[n].apply(console, e);
2048
2128
  }
2049
2129
  };
2050
- class ce {
2130
+ class pe {
2051
2131
  constructor(e) {
2052
2132
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2053
2133
  this.init(e, t);
2054
2134
  }
2055
2135
  init(e) {
2056
2136
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2057
- this.prefix = t.prefix || "i18next:", this.logger = e || ha, this.options = t, this.debug = t.debug;
2137
+ this.prefix = t.prefix || "i18next:", this.logger = e || ga, this.options = t, this.debug = t.debug;
2058
2138
  }
2059
2139
  log() {
2060
2140
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2080,17 +2160,17 @@ class ce {
2080
2160
  return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
2081
2161
  }
2082
2162
  create(e) {
2083
- return new ce(this.logger, {
2163
+ return new pe(this.logger, {
2084
2164
  prefix: `${this.prefix}:${e}:`,
2085
2165
  ...this.options
2086
2166
  });
2087
2167
  }
2088
2168
  clone(e) {
2089
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new ce(this.logger, e);
2169
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new pe(this.logger, e);
2090
2170
  }
2091
2171
  }
2092
- var M = new ce();
2093
- class ke {
2172
+ var j = new pe();
2173
+ class Ne {
2094
2174
  constructor() {
2095
2175
  this.observers = {};
2096
2176
  }
@@ -2118,22 +2198,22 @@ class ke {
2118
2198
  });
2119
2199
  }
2120
2200
  }
2121
- function Z() {
2201
+ function H() {
2122
2202
  let n, e;
2123
2203
  const t = new Promise((i, a) => {
2124
2204
  n = i, e = a;
2125
2205
  });
2126
2206
  return t.resolve = n, t.reject = e, t;
2127
2207
  }
2128
- function ot(n) {
2208
+ function mt(n) {
2129
2209
  return n == null ? "" : "" + n;
2130
2210
  }
2131
- function ga(n, e, t) {
2211
+ function ka(n, e, t) {
2132
2212
  n.forEach((i) => {
2133
2213
  e[i] && (t[i] = e[i]);
2134
2214
  });
2135
2215
  }
2136
- function _e(n, e, t) {
2216
+ function Ke(n, e, t) {
2137
2217
  function i(r) {
2138
2218
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2139
2219
  }
@@ -2152,41 +2232,41 @@ function _e(n, e, t) {
2152
2232
  k: i(s.shift())
2153
2233
  };
2154
2234
  }
2155
- function lt(n, e, t) {
2235
+ function ft(n, e, t) {
2156
2236
  const {
2157
2237
  obj: i,
2158
2238
  k: a
2159
- } = _e(n, e, Object);
2239
+ } = Ke(n, e, Object);
2160
2240
  i[a] = t;
2161
2241
  }
2162
- function ka(n, e, t, i) {
2242
+ function va(n, e, t, i) {
2163
2243
  const {
2164
2244
  obj: a,
2165
2245
  k: s
2166
- } = _e(n, e, Object);
2246
+ } = Ke(n, e, Object);
2167
2247
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2168
2248
  }
2169
- function me(n, e) {
2249
+ function he(n, e) {
2170
2250
  const {
2171
2251
  obj: t,
2172
2252
  k: i
2173
- } = _e(n, e);
2253
+ } = Ke(n, e);
2174
2254
  if (t)
2175
2255
  return t[i];
2176
2256
  }
2177
- function va(n, e, t) {
2178
- const i = me(n, t);
2179
- return i !== void 0 ? i : me(e, t);
2257
+ function Sa(n, e, t) {
2258
+ const i = he(n, t);
2259
+ return i !== void 0 ? i : he(e, t);
2180
2260
  }
2181
- function Zt(n, e, t) {
2261
+ function Ht(n, e, t) {
2182
2262
  for (const i in e)
2183
- i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Zt(n[i], e[i], t) : n[i] = e[i]);
2263
+ i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Ht(n[i], e[i], t) : n[i] = e[i]);
2184
2264
  return n;
2185
2265
  }
2186
- function B(n) {
2266
+ function Q(n) {
2187
2267
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2188
2268
  }
2189
- var Sa = {
2269
+ var ya = {
2190
2270
  "&": "&amp;",
2191
2271
  "<": "&lt;",
2192
2272
  ">": "&gt;",
@@ -2194,13 +2274,13 @@ var Sa = {
2194
2274
  "'": "&#39;",
2195
2275
  "/": "&#x2F;"
2196
2276
  };
2197
- function ya(n) {
2198
- return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Sa[e]) : n;
2277
+ function Na(n) {
2278
+ return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => ya[e]) : n;
2199
2279
  }
2200
- const Na = [" ", ",", "?", "!", ";"];
2201
- function ba(n, e, t) {
2280
+ const ba = [" ", ",", "?", "!", ";"];
2281
+ function Fa(n, e, t) {
2202
2282
  e = e || "", t = t || "";
2203
- const i = Na.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2283
+ const i = ba.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2204
2284
  if (i.length === 0)
2205
2285
  return !0;
2206
2286
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2211,7 +2291,7 @@ function ba(n, e, t) {
2211
2291
  }
2212
2292
  return s;
2213
2293
  }
2214
- function fe(n, e) {
2294
+ function ge(n, e) {
2215
2295
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
2216
2296
  if (!n)
2217
2297
  return;
@@ -2237,16 +2317,16 @@ function fe(n, e) {
2237
2317
  return d[o];
2238
2318
  }
2239
2319
  const l = i.slice(s + r).join(t);
2240
- return l ? fe(d, l, t) : void 0;
2320
+ return l ? ge(d, l, t) : void 0;
2241
2321
  }
2242
2322
  a = a[i[s]];
2243
2323
  }
2244
2324
  return a;
2245
2325
  }
2246
- function pe(n) {
2326
+ function ke(n) {
2247
2327
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2248
2328
  }
2249
- class dt extends ke {
2329
+ class pt extends Ne {
2250
2330
  constructor(e) {
2251
2331
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2252
2332
  ns: ["translation"],
@@ -2266,8 +2346,8 @@ class dt extends ke {
2266
2346
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
2267
2347
  let o = [e, t];
2268
2348
  i && typeof i != "string" && (o = o.concat(i)), i && typeof i == "string" && (o = o.concat(s ? i.split(s) : i)), e.indexOf(".") > -1 && (o = e.split("."));
2269
- const d = me(this.data, o);
2270
- return d || !r || typeof i != "string" ? d : fe(this.data && this.data[e] && this.data[e][t], i, s);
2349
+ const d = he(this.data, o);
2350
+ return d || !r || typeof i != "string" ? d : ge(this.data && this.data[e] && this.data[e][t], i, s);
2271
2351
  }
2272
2352
  addResource(e, t, i, a) {
2273
2353
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -2275,7 +2355,7 @@ class dt extends ke {
2275
2355
  };
2276
2356
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2277
2357
  let o = [e, t];
2278
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), lt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2358
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), ft(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2279
2359
  }
2280
2360
  addResources(e, t, i) {
2281
2361
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2292,11 +2372,11 @@ class dt extends ke {
2292
2372
  silent: !1
2293
2373
  }, o = [e, t];
2294
2374
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2295
- let d = me(this.data, o) || {};
2296
- a ? Zt(d, i, s) : d = {
2375
+ let d = he(this.data, o) || {};
2376
+ a ? Ht(d, i, s) : d = {
2297
2377
  ...d,
2298
2378
  ...i
2299
- }, lt(this.data, o, d), r.silent || this.emit("added", e, t, i);
2379
+ }, ft(this.data, o, d), r.silent || this.emit("added", e, t, i);
2300
2380
  }
2301
2381
  removeResourceBundle(e, t) {
2302
2382
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2320,7 +2400,7 @@ class dt extends ke {
2320
2400
  return this.data;
2321
2401
  }
2322
2402
  }
2323
- var qt = {
2403
+ var Zt = {
2324
2404
  processors: {},
2325
2405
  addPostProcessor(n) {
2326
2406
  this.processors[n.name] = n;
@@ -2331,11 +2411,11 @@ var qt = {
2331
2411
  }), e;
2332
2412
  }
2333
2413
  };
2334
- const ut = {};
2335
- class he extends ke {
2414
+ const ht = {};
2415
+ class ve extends Ne {
2336
2416
  constructor(e) {
2337
2417
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2338
- super(), ga(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = M.create("translator");
2418
+ super(), ka(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = j.create("translator");
2339
2419
  }
2340
2420
  changeLanguage(e) {
2341
2421
  e && (this.language = e);
@@ -2354,7 +2434,7 @@ class he extends ke {
2354
2434
  i === void 0 && (i = ":");
2355
2435
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2356
2436
  let s = t.ns || this.options.defaultNS || [];
2357
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ba(e, i, a);
2437
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Fa(e, i, a);
2358
2438
  if (r && !o) {
2359
2439
  const d = e.match(this.interpolator.nestingRegexp);
2360
2440
  if (d && d.length > 0)
@@ -2382,15 +2462,15 @@ class he extends ke {
2382
2462
  } = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], l = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2383
2463
  if (l && l.toLowerCase() === "cimode") {
2384
2464
  if (u) {
2385
- const w = t.nsSeparator || this.options.nsSeparator;
2465
+ const E = t.nsSeparator || this.options.nsSeparator;
2386
2466
  return a ? {
2387
- res: `${d}${w}${r}`,
2467
+ res: `${d}${E}${r}`,
2388
2468
  usedKey: r,
2389
2469
  exactUsedKey: r,
2390
2470
  usedLng: l,
2391
2471
  usedNS: d,
2392
2472
  usedParams: this.getUsedParamsDetails(t)
2393
- } : `${d}${w}${r}`;
2473
+ } : `${d}${E}${r}`;
2394
2474
  }
2395
2475
  return a ? {
2396
2476
  res: r,
@@ -2401,68 +2481,68 @@ class he extends ke {
2401
2481
  usedParams: this.getUsedParamsDetails(t)
2402
2482
  } : r;
2403
2483
  }
2404
- const f = this.resolve(e, t);
2405
- let c = f && f.res;
2406
- const y = f && f.usedKey || r, v = f && f.exactUsedKey || r, k = Object.prototype.toString.apply(c), S = ["[object Number]", "[object Function]", "[object RegExp]"], F = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject;
2407
- if (E && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && S.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
2484
+ const p = this.resolve(e, t);
2485
+ let c = p && p.res;
2486
+ const v = p && p.usedKey || r, S = p && p.exactUsedKey || r, k = Object.prototype.toString.apply(c), y = ["[object Number]", "[object Function]", "[object RegExp]"], F = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
2487
+ if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && y.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
2408
2488
  if (!t.returnObjects && !this.options.returnObjects) {
2409
2489
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2410
- const w = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, c, {
2490
+ const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
2411
2491
  ...t,
2412
2492
  ns: o
2413
2493
  }) : `key '${r} (${this.language})' returned an object instead of string.`;
2414
- return a ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
2494
+ return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
2415
2495
  }
2416
2496
  if (s) {
2417
- const w = k === "[object Array]", L = w ? [] : {}, I = w ? v : y;
2418
- for (const P in c)
2419
- if (Object.prototype.hasOwnProperty.call(c, P)) {
2420
- const p = `${I}${s}${P}`;
2421
- L[P] = this.translate(p, {
2497
+ const E = k === "[object Array]", I = E ? [] : {}, P = E ? S : v;
2498
+ for (const A in c)
2499
+ if (Object.prototype.hasOwnProperty.call(c, A)) {
2500
+ const f = `${P}${s}${A}`;
2501
+ I[A] = this.translate(f, {
2422
2502
  ...t,
2423
2503
  joinArrays: !1,
2424
2504
  ns: o
2425
- }), L[P] === p && (L[P] = c[P]);
2505
+ }), I[A] === f && (I[A] = c[A]);
2426
2506
  }
2427
- c = L;
2507
+ c = I;
2428
2508
  }
2429
- } else if (E && typeof F == "string" && k === "[object Array]")
2509
+ } else if (w && typeof F == "string" && k === "[object Array]")
2430
2510
  c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
2431
2511
  else {
2432
- let w = !1, L = !1;
2433
- const I = t.count !== void 0 && typeof t.count != "string", P = he.hasDefaultValue(t), p = I ? this.pluralResolver.getSuffix(l, t.count, t) : "", m = t.ordinal && I ? this.pluralResolver.getSuffix(l, t.count, {
2512
+ let E = !1, I = !1;
2513
+ const P = t.count !== void 0 && typeof t.count != "string", A = ve.hasDefaultValue(t), f = P ? this.pluralResolver.getSuffix(l, t.count, t) : "", m = t.ordinal && P ? this.pluralResolver.getSuffix(l, t.count, {
2434
2514
  ordinal: !1
2435
- }) : "", g = t[`defaultValue${p}`] || t[`defaultValue${m}`] || t.defaultValue;
2436
- !this.isValidLookup(c) && P && (w = !0, c = g), this.isValidLookup(c) || (L = !0, c = r);
2437
- const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : c, O = P && g !== c && this.options.updateMissing;
2438
- if (L || w || O) {
2439
- if (this.logger.log(O ? "updateKey" : "missingKey", l, d, r, O ? g : c), s) {
2440
- const C = this.resolve(r, {
2515
+ }) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
2516
+ !this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (I = !0, c = r);
2517
+ const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && g !== c && this.options.updateMissing;
2518
+ if (I || E || C) {
2519
+ if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
2520
+ const R = this.resolve(r, {
2441
2521
  ...t,
2442
2522
  keySeparator: !1
2443
2523
  });
2444
- C && C.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2524
+ R && R.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2445
2525
  }
2446
2526
  let b = [];
2447
- const R = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2448
- if (this.options.saveMissingTo === "fallback" && R && R[0])
2449
- for (let C = 0; C < R.length; C++)
2450
- b.push(R[C]);
2527
+ const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2528
+ if (this.options.saveMissingTo === "fallback" && O && O[0])
2529
+ for (let R = 0; R < O.length; R++)
2530
+ b.push(O[R]);
2451
2531
  else
2452
2532
  this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
2453
- const T = (C, A, V) => {
2454
- const ae = P && V !== c ? V : N;
2455
- this.options.missingKeyHandler ? this.options.missingKeyHandler(C, d, A, ae, O, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(C, d, A, ae, O, t), this.emit("missingKey", C, d, A, c);
2533
+ const T = (R, D, V) => {
2534
+ const se = A && V !== c ? V : N;
2535
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(R, d, D, se, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(R, d, D, se, C, t), this.emit("missingKey", R, d, D, c);
2456
2536
  };
2457
- this.options.saveMissing && (this.options.saveMissingPlurals && I ? b.forEach((C) => {
2458
- this.pluralResolver.getSuffixes(C, t).forEach((A) => {
2459
- T([C], r + A, t[`defaultValue${A}`] || g);
2537
+ this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
2538
+ this.pluralResolver.getSuffixes(R, t).forEach((D) => {
2539
+ T([R], r + D, t[`defaultValue${D}`] || g);
2460
2540
  });
2461
2541
  }) : T(b, r, g));
2462
2542
  }
2463
- c = this.extendTranslation(c, e, t, f, i), L && c === r && this.options.appendNamespaceToMissingKey && (c = `${d}:${r}`), (L || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${r}` : r, w ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2543
+ c = this.extendTranslation(c, e, t, p, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${d}:${r}`), (I || E) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${r}` : r, E ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2464
2544
  }
2465
- return a ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
2545
+ return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
2466
2546
  }
2467
2547
  extendTranslation(e, t, i, a, s) {
2468
2548
  var r = this;
@@ -2487,23 +2567,26 @@ class he extends ke {
2487
2567
  const c = e.match(this.interpolator.nestingRegexp);
2488
2568
  u = c && c.length;
2489
2569
  }
2490
- let f = i.replace && typeof i.replace != "string" ? i.replace : i;
2491
- if (this.options.interpolation.defaultVariables && (f = {
2570
+ let p = i.replace && typeof i.replace != "string" ? i.replace : i;
2571
+ if (this.options.interpolation.defaultVariables && (p = {
2492
2572
  ...this.options.interpolation.defaultVariables,
2493
- ...f
2494
- }), e = this.interpolator.interpolate(e, f, i.lng || this.language, i), l) {
2495
- const c = e.match(this.interpolator.nestingRegexp), y = c && c.length;
2496
- u < y && (i.nest = !1);
2573
+ ...p
2574
+ }), e = this.interpolator.interpolate(e, p, i.lng || this.language, i), l) {
2575
+ const c = e.match(this.interpolator.nestingRegexp), v = c && c.length;
2576
+ u < v && (i.nest = !1);
2497
2577
  }
2498
2578
  !i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
2499
- for (var c = arguments.length, y = new Array(c), v = 0; v < c; v++)
2500
- y[v] = arguments[v];
2501
- return s && s[0] === y[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${t[0]}`), null) : r.translate(...y, t);
2579
+ for (var c = arguments.length, v = new Array(c), S = 0; S < c; S++)
2580
+ v[S] = arguments[S];
2581
+ return s && s[0] === v[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`), null) : r.translate(...v, t);
2502
2582
  }, i)), i.interpolation && this.interpolator.reset();
2503
2583
  }
2504
2584
  const o = i.postProcess || this.options.postProcess, d = typeof o == "string" ? [o] : o;
2505
- return e != null && d && d.length && i.applyPostProcessor !== !1 && (e = qt.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
2506
- i18nResolved: a,
2585
+ return e != null && d && d.length && i.applyPostProcessor !== !1 && (e = Zt.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
2586
+ i18nResolved: {
2587
+ ...a,
2588
+ usedParams: this.getUsedParamsDetails(i)
2589
+ },
2507
2590
  ...i
2508
2591
  } : i, this)), e;
2509
2592
  }
@@ -2514,29 +2597,29 @@ class he extends ke {
2514
2597
  return;
2515
2598
  const l = this.extractFromKey(d, t), u = l.key;
2516
2599
  a = u;
2517
- let f = l.namespaces;
2518
- this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2519
- const c = t.count !== void 0 && typeof t.count != "string", y = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2520
- f.forEach((S) => {
2521
- this.isValidLookup(i) || (o = S, !ut[`${k[0]}-${S}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ut[`${k[0]}-${S}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((F) => {
2600
+ let p = l.namespaces;
2601
+ this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
2602
+ const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2603
+ p.forEach((y) => {
2604
+ this.isValidLookup(i) || (o = y, !ht[`${k[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ht[`${k[0]}-${y}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((F) => {
2522
2605
  if (this.isValidLookup(i))
2523
2606
  return;
2524
2607
  r = F;
2525
- const E = [u];
2608
+ const w = [u];
2526
2609
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
2527
- this.i18nFormat.addLookupKeys(E, u, F, S, t);
2610
+ this.i18nFormat.addLookupKeys(w, u, F, y, t);
2528
2611
  else {
2529
- let w;
2530
- c && (w = this.pluralResolver.getSuffix(F, t.count, t));
2531
- const L = `${this.options.pluralSeparator}zero`, I = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2532
- if (c && (E.push(u + w), t.ordinal && w.indexOf(I) === 0 && E.push(u + w.replace(I, this.options.pluralSeparator)), y && E.push(u + L)), v) {
2533
- const P = `${u}${this.options.contextSeparator}${t.context}`;
2534
- E.push(P), c && (E.push(P + w), t.ordinal && w.indexOf(I) === 0 && E.push(P + w.replace(I, this.options.pluralSeparator)), y && E.push(P + L));
2612
+ let E;
2613
+ c && (E = this.pluralResolver.getSuffix(F, t.count, t));
2614
+ const I = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2615
+ if (c && (w.push(u + E), t.ordinal && E.indexOf(P) === 0 && w.push(u + E.replace(P, this.options.pluralSeparator)), v && w.push(u + I)), S) {
2616
+ const A = `${u}${this.options.contextSeparator}${t.context}`;
2617
+ w.push(A), c && (w.push(A + E), t.ordinal && E.indexOf(P) === 0 && w.push(A + E.replace(P, this.options.pluralSeparator)), v && w.push(A + I));
2535
2618
  }
2536
2619
  }
2537
- let x;
2538
- for (; x = E.pop(); )
2539
- this.isValidLookup(i) || (s = x, i = this.getResource(F, S, x, t));
2620
+ let L;
2621
+ for (; L = w.pop(); )
2622
+ this.isValidLookup(i) || (s = L, i = this.getResource(F, y, L, t));
2540
2623
  }));
2541
2624
  });
2542
2625
  }), {
@@ -2578,21 +2661,21 @@ class he extends ke {
2578
2661
  return !1;
2579
2662
  }
2580
2663
  }
2581
- function Ne(n) {
2664
+ function Oe(n) {
2582
2665
  return n.charAt(0).toUpperCase() + n.slice(1);
2583
2666
  }
2584
- class ct {
2667
+ class gt {
2585
2668
  constructor(e) {
2586
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = M.create("languageUtils");
2669
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
2587
2670
  }
2588
2671
  getScriptPartFromCode(e) {
2589
- if (e = pe(e), !e || e.indexOf("-") < 0)
2672
+ if (e = ke(e), !e || e.indexOf("-") < 0)
2590
2673
  return null;
2591
2674
  const t = e.split("-");
2592
2675
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2593
2676
  }
2594
2677
  getLanguagePartFromCode(e) {
2595
- if (e = pe(e), !e || e.indexOf("-") < 0)
2678
+ if (e = ke(e), !e || e.indexOf("-") < 0)
2596
2679
  return e;
2597
2680
  const t = e.split("-");
2598
2681
  return this.formatLanguageCode(t[0]);
@@ -2601,7 +2684,7 @@ class ct {
2601
2684
  if (typeof e == "string" && e.indexOf("-") > -1) {
2602
2685
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
2603
2686
  let i = e.split("-");
2604
- return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ne(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ne(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Ne(i[2].toLowerCase()))), i.join("-");
2687
+ return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Oe(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Oe(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Oe(i[2].toLowerCase()))), i.join("-");
2605
2688
  }
2606
2689
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
2607
2690
  }
@@ -2650,7 +2733,7 @@ class ct {
2650
2733
  }), a;
2651
2734
  }
2652
2735
  }
2653
- let Fa = [{
2736
+ let wa = [{
2654
2737
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
2655
2738
  nr: [1, 2],
2656
2739
  fc: 1
@@ -2742,7 +2825,7 @@ let Fa = [{
2742
2825
  lngs: ["he", "iw"],
2743
2826
  nr: [1, 2, 20, 21],
2744
2827
  fc: 22
2745
- }], Ea = {
2828
+ }], Ca = {
2746
2829
  1: function(n) {
2747
2830
  return +(n > 1);
2748
2831
  },
@@ -2810,7 +2893,7 @@ let Fa = [{
2810
2893
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
2811
2894
  }
2812
2895
  };
2813
- const Oa = ["v1", "v2", "v3"], wa = ["v4"], mt = {
2896
+ const Ea = ["v1", "v2", "v3"], Oa = ["v4"], kt = {
2814
2897
  zero: 0,
2815
2898
  one: 1,
2816
2899
  two: 2,
@@ -2820,19 +2903,19 @@ const Oa = ["v1", "v2", "v3"], wa = ["v4"], mt = {
2820
2903
  };
2821
2904
  function Ra() {
2822
2905
  const n = {};
2823
- return Fa.forEach((e) => {
2906
+ return wa.forEach((e) => {
2824
2907
  e.lngs.forEach((t) => {
2825
2908
  n[t] = {
2826
2909
  numbers: e.nr,
2827
- plurals: Ea[e.fc]
2910
+ plurals: Ca[e.fc]
2828
2911
  };
2829
2912
  });
2830
2913
  }), n;
2831
2914
  }
2832
- class Ca {
2915
+ class xa {
2833
2916
  constructor(e) {
2834
2917
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2835
- this.languageUtils = e, this.options = t, this.logger = M.create("pluralResolver"), (!this.options.compatibilityJSON || wa.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ra();
2918
+ this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Oa.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ra();
2836
2919
  }
2837
2920
  addRule(e, t) {
2838
2921
  this.rules[e] = t;
@@ -2841,7 +2924,7 @@ class Ca {
2841
2924
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2842
2925
  if (this.shouldUseIntlApi())
2843
2926
  try {
2844
- return new Intl.PluralRules(pe(e), {
2927
+ return new Intl.PluralRules(ke(e), {
2845
2928
  type: t.ordinal ? "ordinal" : "cardinal"
2846
2929
  });
2847
2930
  } catch {
@@ -2861,7 +2944,7 @@ class Ca {
2861
2944
  getSuffixes(e) {
2862
2945
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2863
2946
  const i = this.getRule(e, t);
2864
- return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => mt[a] - mt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
2947
+ return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => kt[a] - kt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
2865
2948
  }
2866
2949
  getSuffix(e, t) {
2867
2950
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -2876,17 +2959,17 @@ class Ca {
2876
2959
  return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? s() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
2877
2960
  }
2878
2961
  shouldUseIntlApi() {
2879
- return !Oa.includes(this.options.compatibilityJSON);
2962
+ return !Ea.includes(this.options.compatibilityJSON);
2880
2963
  }
2881
2964
  }
2882
- function ft(n, e, t) {
2883
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = va(n, e, t);
2884
- return !s && a && typeof t == "string" && (s = fe(n, t, i), s === void 0 && (s = fe(e, t, i))), s;
2965
+ function vt(n, e, t) {
2966
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Sa(n, e, t);
2967
+ return !s && a && typeof t == "string" && (s = ge(n, t, i), s === void 0 && (s = ge(e, t, i))), s;
2885
2968
  }
2886
2969
  class Ta {
2887
2970
  constructor() {
2888
2971
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2889
- this.logger = M.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
2972
+ this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
2890
2973
  }
2891
2974
  init() {
2892
2975
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -2894,7 +2977,7 @@ class Ta {
2894
2977
  escapeValue: !0
2895
2978
  });
2896
2979
  const t = e.interpolation;
2897
- this.escape = t.escape !== void 0 ? t.escape : ya, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? B(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? B(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? B(t.nestingPrefix) : t.nestingPrefixEscaped || B("$t("), this.nestingSuffix = t.nestingSuffix ? B(t.nestingSuffix) : t.nestingSuffixEscaped || B(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
2980
+ this.escape = t.escape !== void 0 ? t.escape : Na, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? Q(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? Q(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? Q(t.nestingPrefix) : t.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = t.nestingSuffix ? Q(t.nestingSuffix) : t.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
2898
2981
  }
2899
2982
  reset() {
2900
2983
  this.options && this.init(this.options);
@@ -2910,39 +2993,39 @@ class Ta {
2910
2993
  interpolate(e, t, i, a) {
2911
2994
  let s, r, o;
2912
2995
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
2913
- function l(v) {
2914
- return v.replace(/\$/g, "$$$$");
2996
+ function l(S) {
2997
+ return S.replace(/\$/g, "$$$$");
2915
2998
  }
2916
- const u = (v) => {
2917
- if (v.indexOf(this.formatSeparator) < 0) {
2918
- const E = ft(t, d, v, this.options.keySeparator, this.options.ignoreJSONStructure);
2919
- return this.alwaysFormat ? this.format(E, void 0, i, {
2999
+ const u = (S) => {
3000
+ if (S.indexOf(this.formatSeparator) < 0) {
3001
+ const w = vt(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure);
3002
+ return this.alwaysFormat ? this.format(w, void 0, i, {
2920
3003
  ...a,
2921
3004
  ...t,
2922
- interpolationkey: v
2923
- }) : E;
3005
+ interpolationkey: S
3006
+ }) : w;
2924
3007
  }
2925
- const k = v.split(this.formatSeparator), S = k.shift().trim(), F = k.join(this.formatSeparator).trim();
2926
- return this.format(ft(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
3008
+ const k = S.split(this.formatSeparator), y = k.shift().trim(), F = k.join(this.formatSeparator).trim();
3009
+ return this.format(vt(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
2927
3010
  ...a,
2928
3011
  ...t,
2929
- interpolationkey: S
3012
+ interpolationkey: y
2930
3013
  });
2931
3014
  };
2932
3015
  this.resetRegExp();
2933
- const f = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3016
+ const p = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
2934
3017
  return [{
2935
3018
  regex: this.regexpUnescape,
2936
- safeValue: (v) => l(v)
3019
+ safeValue: (S) => l(S)
2937
3020
  }, {
2938
3021
  regex: this.regexp,
2939
- safeValue: (v) => this.escapeValue ? l(this.escape(v)) : l(v)
2940
- }].forEach((v) => {
2941
- for (o = 0; s = v.regex.exec(e); ) {
3022
+ safeValue: (S) => this.escapeValue ? l(this.escape(S)) : l(S)
3023
+ }].forEach((S) => {
3024
+ for (o = 0; s = S.regex.exec(e); ) {
2942
3025
  const k = s[1].trim();
2943
3026
  if (r = u(k), r === void 0)
2944
- if (typeof f == "function") {
2945
- const F = f(e, s, a);
3027
+ if (typeof p == "function") {
3028
+ const F = p(e, s, a);
2946
3029
  r = typeof F == "string" ? F : "";
2947
3030
  } else if (a && Object.prototype.hasOwnProperty.call(a, k))
2948
3031
  r = "";
@@ -2952,9 +3035,9 @@ class Ta {
2952
3035
  } else
2953
3036
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
2954
3037
  else
2955
- typeof r != "string" && !this.useRawValueToEscape && (r = ot(r));
2956
- const S = v.safeValue(r);
2957
- if (e = e.replace(s[0], S), c ? (v.regex.lastIndex += r.length, v.regex.lastIndex -= s[0].length) : v.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3038
+ typeof r != "string" && !this.useRawValueToEscape && (r = mt(r));
3039
+ const y = S.safeValue(r);
3040
+ if (e = e.replace(s[0], y), c ? (S.regex.lastIndex += r.length, S.regex.lastIndex -= s[0].length) : S.regex.lastIndex = 0, o++, o >= this.maxReplaces)
2958
3041
  break;
2959
3042
  }
2960
3043
  }), e;
@@ -2965,11 +3048,11 @@ class Ta {
2965
3048
  const u = this.nestingOptionsSeparator;
2966
3049
  if (d.indexOf(u) < 0)
2967
3050
  return d;
2968
- const f = d.split(new RegExp(`${u}[ ]*{`));
2969
- let c = `{${f[1]}`;
2970
- d = f[0], c = this.interpolate(c, r);
2971
- const y = c.match(/'/g), v = c.match(/"/g);
2972
- (y && y.length % 2 === 0 && !v || v.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3051
+ const p = d.split(new RegExp(`${u}[ ]*{`));
3052
+ let c = `{${p[1]}`;
3053
+ d = p[0], c = this.interpolate(c, r);
3054
+ const v = c.match(/'/g), S = c.match(/"/g);
3055
+ (v && v.length % 2 === 0 && !S || S.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
2973
3056
  try {
2974
3057
  r = JSON.parse(c), l && (r = {
2975
3058
  ...l,
@@ -2987,12 +3070,12 @@ class Ta {
2987
3070
  }, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
2988
3071
  let l = !1;
2989
3072
  if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
2990
- const u = a[1].split(this.formatSeparator).map((f) => f.trim());
3073
+ const u = a[1].split(this.formatSeparator).map((p) => p.trim());
2991
3074
  a[1] = u.shift(), d = u, l = !0;
2992
3075
  }
2993
3076
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
2994
3077
  return s;
2995
- typeof s != "string" && (s = ot(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), l && (s = d.reduce((u, f) => this.format(u, f, i.lng, {
3078
+ typeof s != "string" && (s = mt(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), l && (s = d.reduce((u, p) => this.format(u, p, i.lng, {
2996
3079
  ...i,
2997
3080
  interpolationkey: a[1].trim()
2998
3081
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3019,44 +3102,44 @@ function Da(n) {
3019
3102
  formatOptions: t
3020
3103
  };
3021
3104
  }
3022
- function G(n) {
3105
+ function K(n) {
3023
3106
  const e = {};
3024
3107
  return function(i, a, s) {
3025
3108
  const r = a + JSON.stringify(s);
3026
3109
  let o = e[r];
3027
- return o || (o = n(pe(a), s), e[r] = o), o(i);
3110
+ return o || (o = n(ke(a), s), e[r] = o), o(i);
3028
3111
  };
3029
3112
  }
3030
- class Aa {
3113
+ class La {
3031
3114
  constructor() {
3032
3115
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3033
- this.logger = M.create("formatter"), this.options = e, this.formats = {
3034
- number: G((t, i) => {
3116
+ this.logger = j.create("formatter"), this.options = e, this.formats = {
3117
+ number: K((t, i) => {
3035
3118
  const a = new Intl.NumberFormat(t, {
3036
3119
  ...i
3037
3120
  });
3038
3121
  return (s) => a.format(s);
3039
3122
  }),
3040
- currency: G((t, i) => {
3123
+ currency: K((t, i) => {
3041
3124
  const a = new Intl.NumberFormat(t, {
3042
3125
  ...i,
3043
3126
  style: "currency"
3044
3127
  });
3045
3128
  return (s) => a.format(s);
3046
3129
  }),
3047
- datetime: G((t, i) => {
3130
+ datetime: K((t, i) => {
3048
3131
  const a = new Intl.DateTimeFormat(t, {
3049
3132
  ...i
3050
3133
  });
3051
3134
  return (s) => a.format(s);
3052
3135
  }),
3053
- relativetime: G((t, i) => {
3136
+ relativetime: K((t, i) => {
3054
3137
  const a = new Intl.RelativeTimeFormat(t, {
3055
3138
  ...i
3056
3139
  });
3057
3140
  return (s) => a.format(s, i.range || "day");
3058
3141
  }),
3059
- list: G((t, i) => {
3142
+ list: K((t, i) => {
3060
3143
  const a = new Intl.ListFormat(t, {
3061
3144
  ...i
3062
3145
  });
@@ -3074,7 +3157,7 @@ class Aa {
3074
3157
  this.formats[e.toLowerCase().trim()] = t;
3075
3158
  }
3076
3159
  addCached(e, t) {
3077
- this.formats[e.toLowerCase().trim()] = G(t);
3160
+ this.formats[e.toLowerCase().trim()] = K(t);
3078
3161
  }
3079
3162
  format(e, t, i) {
3080
3163
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
@@ -3084,10 +3167,10 @@ class Aa {
3084
3167
  formatOptions: u
3085
3168
  } = Da(d);
3086
3169
  if (this.formats[l]) {
3087
- let f = o;
3170
+ let p = o;
3088
3171
  try {
3089
- const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, y = c.locale || c.lng || a.locale || a.lng || i;
3090
- f = this.formats[l](o, y, {
3172
+ const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, v = c.locale || c.lng || a.locale || a.lng || i;
3173
+ p = this.formats[l](o, v, {
3091
3174
  ...u,
3092
3175
  ...a,
3093
3176
  ...c
@@ -3095,28 +3178,28 @@ class Aa {
3095
3178
  } catch (c) {
3096
3179
  this.logger.warn(c);
3097
3180
  }
3098
- return f;
3181
+ return p;
3099
3182
  } else
3100
3183
  this.logger.warn(`there was no format function for ${l}`);
3101
3184
  return o;
3102
3185
  }, e);
3103
3186
  }
3104
3187
  }
3105
- function xa(n, e) {
3188
+ function Ia(n, e) {
3106
3189
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3107
3190
  }
3108
- class La extends ke {
3191
+ class Aa extends Ne {
3109
3192
  constructor(e, t, i) {
3110
3193
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3111
- super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = M.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
3194
+ super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = j.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
3112
3195
  }
3113
3196
  queueLoad(e, t, i, a) {
3114
3197
  const s = {}, r = {}, o = {}, d = {};
3115
3198
  return e.forEach((l) => {
3116
3199
  let u = !0;
3117
- t.forEach((f) => {
3118
- const c = `${l}|${f}`;
3119
- !i.reload && this.store.hasResourceBundle(l, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, u = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), d[f] === void 0 && (d[f] = !0)));
3200
+ t.forEach((p) => {
3201
+ const c = `${l}|${p}`;
3202
+ !i.reload && this.store.hasResourceBundle(l, p) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, u = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), d[p] === void 0 && (d[p] = !0)));
3120
3203
  }), u || (o[l] = !0);
3121
3204
  }), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
3122
3205
  pending: r,
@@ -3136,11 +3219,11 @@ class La extends ke {
3136
3219
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3137
3220
  const o = {};
3138
3221
  this.queue.forEach((d) => {
3139
- ka(d.loaded, [s], r), xa(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
3222
+ va(d.loaded, [s], r), Ia(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
3140
3223
  o[l] || (o[l] = {});
3141
3224
  const u = d.loaded[l];
3142
- u.length && u.forEach((f) => {
3143
- o[l][f] === void 0 && (o[l][f] = !0);
3225
+ u.length && u.forEach((p) => {
3226
+ o[l][p] === void 0 && (o[l][p] = !0);
3144
3227
  });
3145
3228
  }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
3146
3229
  }), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
@@ -3163,8 +3246,8 @@ class La extends ke {
3163
3246
  this.readingCalls++;
3164
3247
  const o = (l, u) => {
3165
3248
  if (this.readingCalls--, this.waitingReads.length > 0) {
3166
- const f = this.waitingReads.shift();
3167
- this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
3249
+ const p = this.waitingReads.shift();
3250
+ this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
3168
3251
  }
3169
3252
  if (l && u && a < this.maxRetries) {
3170
3253
  setTimeout(() => {
@@ -3228,7 +3311,7 @@ class La extends ke {
3228
3311
  if (l.length < 6)
3229
3312
  try {
3230
3313
  let u;
3231
- l.length === 5 ? u = l(e, t, i, a, d) : u = l(e, t, i, a), u && typeof u.then == "function" ? u.then((f) => o(null, f)).catch(o) : o(null, u);
3314
+ l.length === 5 ? u = l(e, t, i, a, d) : u = l(e, t, i, a), u && typeof u.then == "function" ? u.then((p) => o(null, p)).catch(o) : o(null, u);
3232
3315
  } catch (u) {
3233
3316
  o(u);
3234
3317
  }
@@ -3239,7 +3322,7 @@ class La extends ke {
3239
3322
  }
3240
3323
  }
3241
3324
  }
3242
- function pt() {
3325
+ function St() {
3243
3326
  return {
3244
3327
  debug: !1,
3245
3328
  initImmediate: !0,
@@ -3298,20 +3381,20 @@ function pt() {
3298
3381
  }
3299
3382
  };
3300
3383
  }
3301
- function ht(n) {
3384
+ function yt(n) {
3302
3385
  return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
3303
3386
  }
3304
- function re() {
3387
+ function le() {
3305
3388
  }
3306
3389
  function Pa(n) {
3307
3390
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3308
3391
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3309
3392
  });
3310
3393
  }
3311
- class te extends ke {
3394
+ class ie extends Ne {
3312
3395
  constructor() {
3313
3396
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3314
- if (super(), this.options = ht(e), this.services = {}, this.logger = M, this.modules = {
3397
+ if (super(), this.options = yt(e), this.services = {}, this.logger = j, this.modules = {
3315
3398
  external: []
3316
3399
  }, Pa(this), t && !this.isInitialized && !e.isClone) {
3317
3400
  if (!this.options.initImmediate)
@@ -3325,11 +3408,11 @@ class te extends ke {
3325
3408
  var e = this;
3326
3409
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3327
3410
  typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
3328
- const a = pt();
3411
+ const a = St();
3329
3412
  this.options = {
3330
3413
  ...a,
3331
3414
  ...this.options,
3332
- ...ht(t)
3415
+ ...yt(t)
3333
3416
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3334
3417
  ...a.interpolation,
3335
3418
  ...this.options.interpolation
@@ -3338,31 +3421,31 @@ class te extends ke {
3338
3421
  return u ? typeof u == "function" ? new u() : u : null;
3339
3422
  }
3340
3423
  if (!this.options.isClone) {
3341
- this.modules.logger ? M.init(s(this.modules.logger), this.options) : M.init(null, this.options);
3424
+ this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
3342
3425
  let u;
3343
- this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Aa);
3344
- const f = new ct(this.options);
3345
- this.store = new dt(this.options.resources, this.options);
3426
+ this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = La);
3427
+ const p = new gt(this.options);
3428
+ this.store = new pt(this.options.resources, this.options);
3346
3429
  const c = this.services;
3347
- c.logger = M, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Ca(f, {
3430
+ c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new xa(p, {
3348
3431
  prepend: this.options.pluralSeparator,
3349
3432
  compatibilityJSON: this.options.compatibilityJSON,
3350
3433
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3351
3434
  }), u && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Ta(this.options), c.utils = {
3352
3435
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3353
- }, c.backendConnector = new La(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(y) {
3354
- for (var v = arguments.length, k = new Array(v > 1 ? v - 1 : 0), S = 1; S < v; S++)
3355
- k[S - 1] = arguments[S];
3356
- e.emit(y, ...k);
3357
- }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new he(this.services, this.options), this.translator.on("*", function(y) {
3358
- for (var v = arguments.length, k = new Array(v > 1 ? v - 1 : 0), S = 1; S < v; S++)
3359
- k[S - 1] = arguments[S];
3360
- e.emit(y, ...k);
3361
- }), this.modules.external.forEach((y) => {
3362
- y.init && y.init(this);
3436
+ }, c.backendConnector = new Aa(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
3437
+ for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3438
+ k[y - 1] = arguments[y];
3439
+ e.emit(v, ...k);
3440
+ }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ve(this.services, this.options), this.translator.on("*", function(v) {
3441
+ for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3442
+ k[y - 1] = arguments[y];
3443
+ e.emit(v, ...k);
3444
+ }), this.modules.external.forEach((v) => {
3445
+ v.init && v.init(this);
3363
3446
  });
3364
3447
  }
3365
- if (this.format = this.options.interpolation.format, i || (i = re), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3448
+ if (this.format = this.options.interpolation.format, i || (i = le), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3366
3449
  const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3367
3450
  u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
3368
3451
  }
@@ -3375,9 +3458,9 @@ class te extends ke {
3375
3458
  return e.store[u](...arguments), e;
3376
3459
  };
3377
3460
  });
3378
- const d = Z(), l = () => {
3379
- const u = (f, c) => {
3380
- this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(c), i(f, c);
3461
+ const d = H(), l = () => {
3462
+ const u = (p, c) => {
3463
+ this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(c), i(p, c);
3381
3464
  };
3382
3465
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
3383
3466
  return u(null, this.t.bind(this));
@@ -3386,7 +3469,7 @@ class te extends ke {
3386
3469
  return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), d;
3387
3470
  }
3388
3471
  loadResources(e) {
3389
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : re;
3472
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3390
3473
  const a = typeof e == "string" ? e : this.language;
3391
3474
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
3392
3475
  if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
@@ -3405,8 +3488,8 @@ class te extends ke {
3405
3488
  i(null);
3406
3489
  }
3407
3490
  reloadResources(e, t, i) {
3408
- const a = Z();
3409
- return e || (e = this.languages), t || (t = this.options.ns), i || (i = re), this.services.backendConnector.reload(e, t, (s) => {
3491
+ const a = H();
3492
+ return e || (e = this.languages), t || (t = this.options.ns), i || (i = le), this.services.backendConnector.reload(e, t, (s) => {
3410
3493
  a.resolve(), i(s);
3411
3494
  }), a;
3412
3495
  }
@@ -3415,7 +3498,7 @@ class te extends ke {
3415
3498
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3416
3499
  if (!e.type)
3417
3500
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3418
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && qt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3501
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Zt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3419
3502
  }
3420
3503
  setResolvedLanguage(e) {
3421
3504
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3430,7 +3513,7 @@ class te extends ke {
3430
3513
  changeLanguage(e, t) {
3431
3514
  var i = this;
3432
3515
  this.isLanguageChangingTo = e;
3433
- const a = Z();
3516
+ const a = H();
3434
3517
  this.emit("languageChanging", e);
3435
3518
  const s = (d) => {
3436
3519
  this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
@@ -3454,8 +3537,8 @@ class te extends ke {
3454
3537
  const s = function(r, o) {
3455
3538
  let d;
3456
3539
  if (typeof o != "object") {
3457
- for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), f = 2; f < l; f++)
3458
- u[f - 2] = arguments[f];
3540
+ for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
3541
+ u[p - 2] = arguments[p];
3459
3542
  d = a.options.overloadTranslationOptionHandler([r, o].concat(u));
3460
3543
  } else
3461
3544
  d = {
@@ -3463,8 +3546,8 @@ class te extends ke {
3463
3546
  };
3464
3547
  d.lng = d.lng || s.lng, d.lngs = d.lngs || s.lngs, d.ns = d.ns || s.ns, d.keyPrefix = d.keyPrefix || i || s.keyPrefix;
3465
3548
  const c = a.options.keySeparator || ".";
3466
- let y;
3467
- return d.keyPrefix && Array.isArray(r) ? y = r.map((v) => `${d.keyPrefix}${c}${v}`) : y = d.keyPrefix ? `${d.keyPrefix}${c}${r}` : r, a.t(y, d);
3549
+ let v;
3550
+ return d.keyPrefix && Array.isArray(r) ? v = r.map((S) => `${d.keyPrefix}${c}${S}`) : v = d.keyPrefix ? `${d.keyPrefix}${c}${r}` : r, a.t(v, d);
3468
3551
  };
3469
3552
  return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
3470
3553
  }
@@ -3498,7 +3581,7 @@ class te extends ke {
3498
3581
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
3499
3582
  }
3500
3583
  loadNamespaces(e, t) {
3501
- const i = Z();
3584
+ const i = H();
3502
3585
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
3503
3586
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
3504
3587
  }), this.loadResources((a) => {
@@ -3506,7 +3589,7 @@ class te extends ke {
3506
3589
  }), i) : (t && t(), Promise.resolve());
3507
3590
  }
3508
3591
  loadLanguages(e, t) {
3509
- const i = Z();
3592
+ const i = H();
3510
3593
  typeof e == "string" && (e = [e]);
3511
3594
  const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
3512
3595
  return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
@@ -3516,29 +3599,29 @@ class te extends ke {
3516
3599
  dir(e) {
3517
3600
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3518
3601
  return "rtl";
3519
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new ct(pt());
3602
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new gt(St());
3520
3603
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3521
3604
  }
3522
3605
  static createInstance() {
3523
3606
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3524
- return new te(e, t);
3607
+ return new ie(e, t);
3525
3608
  }
3526
3609
  cloneInstance() {
3527
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : re;
3610
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3528
3611
  const i = e.forkResourceStore;
3529
3612
  i && delete e.forkResourceStore;
3530
3613
  const a = {
3531
3614
  ...this.options,
3532
3615
  ...e,
3533
3616
  isClone: !0
3534
- }, s = new te(a);
3617
+ }, s = new ie(a);
3535
3618
  return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
3536
3619
  s[o] = this[o];
3537
3620
  }), s.services = {
3538
3621
  ...this.services
3539
3622
  }, s.services.utils = {
3540
3623
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3541
- }, i && (s.store = new dt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new he(s.services, a), s.translator.on("*", function(o) {
3624
+ }, i && (s.store = new pt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ve(s.services, a), s.translator.on("*", function(o) {
3542
3625
  for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
3543
3626
  l[u - 1] = arguments[u];
3544
3627
  s.emit(o, ...l);
@@ -3556,89 +3639,89 @@ class te extends ke {
3556
3639
  };
3557
3640
  }
3558
3641
  }
3559
- const _ = te.createInstance();
3560
- _.createInstance = te.createInstance;
3561
- _.createInstance;
3562
- _.dir;
3563
- _.init;
3564
- _.loadResources;
3565
- _.reloadResources;
3566
- _.use;
3567
- _.changeLanguage;
3568
- _.getFixedT;
3569
- _.t;
3570
- _.exists;
3571
- _.setDefaultNamespace;
3572
- _.hasLoadedNamespace;
3573
- _.loadNamespaces;
3574
- _.loadLanguages;
3575
- function Ia(n) {
3642
+ const U = ie.createInstance();
3643
+ U.createInstance = ie.createInstance;
3644
+ U.createInstance;
3645
+ U.dir;
3646
+ U.init;
3647
+ U.loadResources;
3648
+ U.reloadResources;
3649
+ U.use;
3650
+ U.changeLanguage;
3651
+ U.getFixedT;
3652
+ U.t;
3653
+ U.exists;
3654
+ U.setDefaultNamespace;
3655
+ U.hasLoadedNamespace;
3656
+ U.loadNamespaces;
3657
+ U.loadLanguages;
3658
+ function Va(n) {
3576
3659
  const e = Object.values(n);
3577
3660
  return Object.assign({}, ...e);
3578
3661
  }
3579
- function Va(n) {
3662
+ function _a(n) {
3580
3663
  return Object.entries(n).reduce(
3581
3664
  (e, [t, i]) => {
3582
- const a = Ia(i);
3665
+ const a = Va(i);
3583
3666
  return { ...e, [t]: a };
3584
3667
  },
3585
3668
  {}
3586
3669
  );
3587
3670
  }
3588
- function qs(n) {
3589
- const e = Va(n);
3671
+ function Xs(n) {
3672
+ const e = _a(n);
3590
3673
  Object.entries(e).forEach(([t, i]) => {
3591
- _.addResourceBundle(t, "translation", i, !0);
3674
+ U.addResourceBundle(t, "translation", i, !0);
3592
3675
  });
3593
3676
  }
3594
- function _a(n, e) {
3677
+ function Ua(n, e) {
3595
3678
  if (!(n instanceof e))
3596
3679
  throw new TypeError("Cannot call a class as a function");
3597
3680
  }
3598
- function ne(n) {
3681
+ function ae(n) {
3599
3682
  "@babel/helpers - typeof";
3600
- return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3683
+ return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3601
3684
  return typeof e;
3602
3685
  } : function(e) {
3603
3686
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3604
- }, ne(n);
3687
+ }, ae(n);
3605
3688
  }
3606
- function Ua(n, e) {
3607
- if (ne(n) !== "object" || n === null)
3689
+ function Ma(n, e) {
3690
+ if (ae(n) !== "object" || n === null)
3608
3691
  return n;
3609
3692
  var t = n[Symbol.toPrimitive];
3610
3693
  if (t !== void 0) {
3611
3694
  var i = t.call(n, e || "default");
3612
- if (ne(i) !== "object")
3695
+ if (ae(i) !== "object")
3613
3696
  return i;
3614
3697
  throw new TypeError("@@toPrimitive must return a primitive value.");
3615
3698
  }
3616
3699
  return (e === "string" ? String : Number)(n);
3617
3700
  }
3618
- function Ma(n) {
3619
- var e = Ua(n, "string");
3620
- return ne(e) === "symbol" ? e : String(e);
3701
+ function ja(n) {
3702
+ var e = Ma(n, "string");
3703
+ return ae(e) === "symbol" ? e : String(e);
3621
3704
  }
3622
- function gt(n, e) {
3705
+ function Nt(n, e) {
3623
3706
  for (var t = 0; t < e.length; t++) {
3624
3707
  var i = e[t];
3625
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Ma(i.key), i);
3708
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ja(i.key), i);
3626
3709
  }
3627
3710
  }
3628
- function ja(n, e, t) {
3629
- return e && gt(n.prototype, e), t && gt(n, t), Object.defineProperty(n, "prototype", {
3711
+ function $a(n, e, t) {
3712
+ return e && Nt(n.prototype, e), t && Nt(n, t), Object.defineProperty(n, "prototype", {
3630
3713
  writable: !1
3631
3714
  }), n;
3632
3715
  }
3633
- var Xt = [], $a = Xt.forEach, za = Xt.slice;
3634
- function Ba(n) {
3635
- return $a.call(za.call(arguments, 1), function(e) {
3716
+ var Xt = [], za = Xt.forEach, Ba = Xt.slice;
3717
+ function Qa(n) {
3718
+ return za.call(Ba.call(arguments, 1), function(e) {
3636
3719
  if (e)
3637
3720
  for (var t in e)
3638
3721
  n[t] === void 0 && (n[t] = e[t]);
3639
3722
  }), n;
3640
3723
  }
3641
- var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3724
+ var bt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ka = function(e, t, i) {
3642
3725
  var a = i || {};
3643
3726
  a.path = a.path || "/";
3644
3727
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -3649,12 +3732,12 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3649
3732
  r += "; Max-Age=".concat(Math.floor(o));
3650
3733
  }
3651
3734
  if (a.domain) {
3652
- if (!kt.test(a.domain))
3735
+ if (!bt.test(a.domain))
3653
3736
  throw new TypeError("option domain is invalid");
3654
3737
  r += "; Domain=".concat(a.domain);
3655
3738
  }
3656
3739
  if (a.path) {
3657
- if (!kt.test(a.path))
3740
+ if (!bt.test(a.path))
3658
3741
  throw new TypeError("option path is invalid");
3659
3742
  r += "; Path=".concat(a.path);
3660
3743
  }
@@ -3683,13 +3766,13 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3683
3766
  }
3684
3767
  }
3685
3768
  return r;
3686
- }, vt = {
3769
+ }, Ft = {
3687
3770
  create: function(e, t, i, a) {
3688
3771
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
3689
3772
  path: "/",
3690
3773
  sameSite: "strict"
3691
3774
  };
3692
- i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = Ga(e, encodeURIComponent(t), s);
3775
+ i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = Ka(e, encodeURIComponent(t), s);
3693
3776
  },
3694
3777
  read: function(e) {
3695
3778
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -3703,20 +3786,20 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3703
3786
  remove: function(e) {
3704
3787
  this.create(e, "", -1);
3705
3788
  }
3706
- }, Ja = {
3789
+ }, Ga = {
3707
3790
  name: "cookie",
3708
3791
  lookup: function(e) {
3709
3792
  var t;
3710
3793
  if (e.lookupCookie && typeof document != "undefined") {
3711
- var i = vt.read(e.lookupCookie);
3794
+ var i = Ft.read(e.lookupCookie);
3712
3795
  i && (t = i);
3713
3796
  }
3714
3797
  return t;
3715
3798
  },
3716
3799
  cacheUserLanguage: function(e, t) {
3717
- t.lookupCookie && typeof document != "undefined" && vt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
3800
+ t.lookupCookie && typeof document != "undefined" && Ft.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
3718
3801
  }
3719
- }, Qa = {
3802
+ }, Wa = {
3720
3803
  name: "querystring",
3721
3804
  lookup: function(e) {
3722
3805
  var t;
@@ -3733,31 +3816,31 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3733
3816
  }
3734
3817
  return t;
3735
3818
  }
3736
- }, q = null, St = function() {
3737
- if (q !== null)
3738
- return q;
3819
+ }, Z = null, wt = function() {
3820
+ if (Z !== null)
3821
+ return Z;
3739
3822
  try {
3740
- q = window !== "undefined" && window.localStorage !== null;
3823
+ Z = window !== "undefined" && window.localStorage !== null;
3741
3824
  var e = "i18next.translate.boo";
3742
3825
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
3743
3826
  } catch {
3744
- q = !1;
3827
+ Z = !1;
3745
3828
  }
3746
- return q;
3747
- }, Wa = {
3829
+ return Z;
3830
+ }, Ja = {
3748
3831
  name: "localStorage",
3749
3832
  lookup: function(e) {
3750
3833
  var t;
3751
- if (e.lookupLocalStorage && St()) {
3834
+ if (e.lookupLocalStorage && wt()) {
3752
3835
  var i = window.localStorage.getItem(e.lookupLocalStorage);
3753
3836
  i && (t = i);
3754
3837
  }
3755
3838
  return t;
3756
3839
  },
3757
3840
  cacheUserLanguage: function(e, t) {
3758
- t.lookupLocalStorage && St() && window.localStorage.setItem(t.lookupLocalStorage, e);
3841
+ t.lookupLocalStorage && wt() && window.localStorage.setItem(t.lookupLocalStorage, e);
3759
3842
  }
3760
- }, X = null, yt = function() {
3843
+ }, X = null, Ct = function() {
3761
3844
  if (X !== null)
3762
3845
  return X;
3763
3846
  try {
@@ -3768,20 +3851,20 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3768
3851
  X = !1;
3769
3852
  }
3770
3853
  return X;
3771
- }, Ka = {
3854
+ }, qa = {
3772
3855
  name: "sessionStorage",
3773
3856
  lookup: function(e) {
3774
3857
  var t;
3775
- if (e.lookupSessionStorage && yt()) {
3858
+ if (e.lookupSessionStorage && Ct()) {
3776
3859
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
3777
3860
  i && (t = i);
3778
3861
  }
3779
3862
  return t;
3780
3863
  },
3781
3864
  cacheUserLanguage: function(e, t) {
3782
- t.lookupSessionStorage && yt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
3865
+ t.lookupSessionStorage && Ct() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
3783
3866
  }
3784
- }, Za = {
3867
+ }, Ha = {
3785
3868
  name: "navigator",
3786
3869
  lookup: function(e) {
3787
3870
  var t = [];
@@ -3793,7 +3876,7 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3793
3876
  }
3794
3877
  return t.length > 0 ? t : void 0;
3795
3878
  }
3796
- }, qa = {
3879
+ }, Za = {
3797
3880
  name: "htmlTag",
3798
3881
  lookup: function(e) {
3799
3882
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
@@ -3815,7 +3898,7 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3815
3898
  }
3816
3899
  return t;
3817
3900
  }
3818
- }, Ha = {
3901
+ }, Ya = {
3819
3902
  name: "subdomain",
3820
3903
  lookup: function(e) {
3821
3904
  var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, i = typeof window != "undefined" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
@@ -3823,7 +3906,7 @@ var kt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ga = function(e, t, i) {
3823
3906
  return i[t];
3824
3907
  }
3825
3908
  };
3826
- function Ya() {
3909
+ function es() {
3827
3910
  return {
3828
3911
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
3829
3912
  lookupQuerystring: "lng",
@@ -3840,20 +3923,20 @@ function Ya() {
3840
3923
  }
3841
3924
  };
3842
3925
  }
3843
- var Ht = /* @__PURE__ */ function() {
3926
+ var Yt = /* @__PURE__ */ function() {
3844
3927
  function n(e) {
3845
3928
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3846
- _a(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
3929
+ Ua(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
3847
3930
  }
3848
- return ja(n, [{
3931
+ return $a(n, [{
3849
3932
  key: "init",
3850
3933
  value: function(t) {
3851
3934
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3852
3935
  this.services = t || {
3853
3936
  languageUtils: {}
3854
- }, this.options = Ba(i, this.options || {}, Ya()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
3937
+ }, this.options = Qa(i, this.options || {}, es()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
3855
3938
  return s.replace("-", "_");
3856
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Ja), this.addDetector(Qa), this.addDetector(Wa), this.addDetector(Ka), this.addDetector(Za), this.addDetector(qa), this.addDetector(Xa), this.addDetector(Ha);
3939
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Ga), this.addDetector(Wa), this.addDetector(Ja), this.addDetector(qa), this.addDetector(Ha), this.addDetector(Za), this.addDetector(Xa), this.addDetector(Ya);
3857
3940
  }
3858
3941
  }, {
3859
3942
  key: "addDetector",
@@ -3885,8 +3968,8 @@ var Ht = /* @__PURE__ */ function() {
3885
3968
  }
3886
3969
  }]), n;
3887
3970
  }();
3888
- Ht.type = "languageDetector";
3889
- const es = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ts = {
3971
+ Yt.type = "languageDetector";
3972
+ const ts = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ns = {
3890
3973
  "&amp;": "&",
3891
3974
  "&#38;": "&",
3892
3975
  "&lt;": "<",
@@ -3907,8 +3990,8 @@ const es = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
3907
3990
  "&#8230;": "…",
3908
3991
  "&#x2F;": "/",
3909
3992
  "&#47;": "/"
3910
- }, ns = (n) => ts[n], is = (n) => n.replace(es, ns);
3911
- let Nt = {
3993
+ }, is = (n) => ns[n], as = (n) => n.replace(ts, is);
3994
+ let Et = {
3912
3995
  bindI18n: "languageChanged",
3913
3996
  bindI18nStore: "",
3914
3997
  transEmptyNodeValue: "",
@@ -3916,21 +3999,21 @@ let Nt = {
3916
3999
  transWrapTextNodes: "",
3917
4000
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
3918
4001
  useSuspense: !0,
3919
- unescape: is
4002
+ unescape: as
3920
4003
  };
3921
- function as() {
4004
+ function ss() {
3922
4005
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3923
- Nt = {
3924
- ...Nt,
4006
+ Et = {
4007
+ ...Et,
3925
4008
  ...n
3926
4009
  };
3927
4010
  }
3928
- const ss = {
4011
+ const rs = {
3929
4012
  type: "3rdParty",
3930
4013
  init(n) {
3931
- as(n.options.react);
4014
+ ss(n.options.react);
3932
4015
  }
3933
- }, Xs = _.use(ss).use(Ht).init({
4016
+ }, Ys = U.use(rs).use(Yt).init({
3934
4017
  resources: {},
3935
4018
  fallbackLng: "en",
3936
4019
  debug: !1,
@@ -3968,56 +4051,56 @@ const ss = {
3968
4051
  ]
3969
4052
  }
3970
4053
  });
3971
- let Ue = /* @__PURE__ */ new Map();
3972
- const we = bt(Ue), Hs = ({ children: n, stores: e }) => {
3973
- const t = Te(we), i = Et(() => {
4054
+ let Ge = /* @__PURE__ */ new Map();
4055
+ const Ie = Ot(Ge), er = ({ children: n, stores: e }) => {
4056
+ const t = Pe(Ie), i = Tt(() => {
3974
4057
  const a = /* @__PURE__ */ new Map();
3975
- return e.forEach((s) => a.set(s.class, s.value)), Ue = new Map([...t, ...a]);
4058
+ return e.forEach((s) => a.set(s.class, s.value)), Ge = new Map([...t, ...a]);
3976
4059
  }, []);
3977
- return /* @__PURE__ */ on(we.Provider, { value: i, children: n });
4060
+ return /* @__PURE__ */ on(Ie.Provider, { value: i, children: n });
3978
4061
  };
3979
- function Ys(n) {
3980
- return Te(we).get(n);
4062
+ function tr(n) {
4063
+ return Pe(Ie).get(n);
3981
4064
  }
3982
- function er(n) {
3983
- return Ue.get(n);
4065
+ function nr(n) {
4066
+ return Ge.get(n);
3984
4067
  }
3985
- var Yt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Yt || {}), en = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(en || {}), tn = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(tn || {});
3986
- const rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatMessageArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, Cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ts = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, As = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, xs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4068
+ var en = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(en || {}), tn = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(tn || {}), nn = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(nn || {});
4069
+ const os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatMessageArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, xs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ts = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, Is = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, As = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3987
4070
  __proto__: null,
3988
- AddCollectionDocument: rs,
3989
- AppendProductsToSnackVideoDocument: Os,
3990
- BlockUserDocument: hs,
3991
- ChangeAccountUsernameDocument: gs,
3992
- CreateSnackVideoBatchDocument: ws,
3993
- DeleteAllCustomizationDocument: Ns,
3994
- DeleteChatMessageDocument: ks,
3995
- DeleteCollectionDocument: os,
4071
+ AddCollectionDocument: os,
4072
+ AppendProductsToSnackVideoDocument: Es,
4073
+ BlockUserDocument: gs,
4074
+ ChangeAccountUsernameDocument: ks,
4075
+ CreateSnackVideoBatchDocument: Os,
4076
+ DeleteAllCustomizationDocument: bs,
4077
+ DeleteChatMessageDocument: vs,
4078
+ DeleteCollectionDocument: ls,
3996
4079
  DeleteRelationshipWithSnackVideoDocument: Rs,
3997
- DeleteSnackVideoDocument: Cs,
3998
- EventStatus: Yt,
3999
- FindByProductSnackVideoDocument: Ls,
4000
- FindCollectionDocument: ls,
4080
+ DeleteSnackVideoDocument: xs,
4081
+ EventStatus: en,
4082
+ FindByProductSnackVideoDocument: As,
4083
+ FindCollectionDocument: ds,
4001
4084
  FindManySnackVideosDocument: Ts,
4002
- FindMinimalEventDocument: fs,
4003
- GetAllChatMessageDocument: vs,
4004
- GetAllCollectionsDocument: ds,
4005
- GetAllCustomizationDocument: bs,
4085
+ FindMinimalEventDocument: ps,
4086
+ GetAllChatMessageDocument: Ss,
4087
+ GetAllCollectionsDocument: us,
4088
+ GetAllCustomizationDocument: Fs,
4006
4089
  GetAllSnackVideosDocument: Ds,
4007
- GetChatRoomTokenDocument: Ss,
4008
- GetSnackVideoRelationshipsDocument: As,
4009
- GetTimeLineDocument: Es,
4010
- ManageCollectionProductDocument: us,
4011
- Methods: en,
4012
- PinChatMessageDocument: ys,
4013
- SearchCollectionsDocument: cs,
4014
- SearchMinimalEventsDocument: ps,
4015
- SearchSnackVideosDocument: xs,
4016
- Status: tn,
4017
- UpdateCollectionDocument: ms,
4018
- UpdateCustomizationDocument: Fs
4090
+ GetChatRoomTokenDocument: ys,
4091
+ GetSnackVideoRelationshipsDocument: Ls,
4092
+ GetTimeLineDocument: Cs,
4093
+ ManageCollectionProductDocument: cs,
4094
+ Methods: tn,
4095
+ PinChatMessageDocument: Ns,
4096
+ SearchCollectionsDocument: ms,
4097
+ SearchMinimalEventsDocument: hs,
4098
+ SearchSnackVideosDocument: Is,
4099
+ Status: nn,
4100
+ UpdateCollectionDocument: fs,
4101
+ UpdateCustomizationDocument: ws
4019
4102
  }, Symbol.toStringTag, { value: "Module" }));
4020
- function nr(n) {
4103
+ function ar(n) {
4021
4104
  return {
4022
4105
  class: n,
4023
4106
  _value: null,
@@ -4027,58 +4110,55 @@ function nr(n) {
4027
4110
  };
4028
4111
  }
4029
4112
  export {
4030
- Jt as AccountContractStatusTypes,
4031
- yi as AccountContractTypes,
4032
- $s as AccountInvalidError,
4033
- bi as AccountPlanDescriptionTypes,
4034
- Oi as AccountRestRepository,
4035
- wi as AccountService,
4036
- Ni as AccountSubscriptionTypes,
4037
- Gt as AccountTypes,
4038
- vi as AggregateRoot,
4039
- tr as ApiGraphqlTypes,
4040
- Js as BaseMobxStore,
4041
- qn as BroadcastChannelEventBus,
4042
- ge as DomainError,
4043
- Ks as EventBusWildcards,
4113
+ Gt as AccountContractStatusTypes,
4114
+ Ni as AccountContractTypes,
4115
+ Qs as AccountInvalidError,
4116
+ Fi as AccountPlanDescriptionTypes,
4117
+ Ei as AccountRestRepository,
4118
+ Oi as AccountService,
4119
+ bi as AccountSubscriptionTypes,
4120
+ Kt as AccountTypes,
4121
+ Si as AggregateRoot,
4122
+ ir as ApiGraphqlTypes,
4123
+ Ws as BaseMobxStore,
4124
+ Xn as BroadcastChannelEventBus,
4125
+ ye as DomainError,
4126
+ Hs as EventBusWildcards,
4044
4127
  Zs as EventNames,
4045
- Fi as GlobalPageSectionTypes,
4046
- pi as InvalidNizzaGlobalObjectError,
4047
- ma as LanguageTypes,
4048
- Pe as NizzaAccount,
4049
- ca as NizzaEventStatus,
4050
- pa as NizzaProductRequestOriginTypes,
4051
- fa as NizzaVariationTypes,
4052
- mi as ResourceNotFoundError,
4053
- Hs as StoreProvider,
4054
- fi as UnexpectedError,
4055
- Qs as ValueObject,
4056
- De as accountAtom,
4057
- Qt as accountService,
4058
- _s as apiCall,
4059
- Y as coreLogger,
4060
- Si as createAggregateRoot,
4061
- hi as createLogger,
4062
- nr as createStore,
4063
- Rt as customFetch,
4064
- Us as downloadFile,
4065
- js as fileOrigin,
4066
- ua as getAccount,
4128
+ wi as GlobalPageSectionTypes,
4129
+ vi as InvalidNizzaGlobalObjectError,
4130
+ fa as LanguageTypes,
4131
+ ni as Logger,
4132
+ ze as NizzaAccount,
4133
+ ma as NizzaEventStatus,
4134
+ ha as NizzaProductRequestOriginTypes,
4135
+ pa as NizzaVariationTypes,
4136
+ gi as ResourceNotFoundError,
4137
+ er as StoreProvider,
4138
+ ki as UnexpectedError,
4139
+ Js as ValueObject,
4140
+ Ve as accountAtom,
4141
+ Wt as accountService,
4142
+ Us as apiCall,
4143
+ ee as coreLogger,
4144
+ yi as createAggregateRoot,
4145
+ ar as createStore,
4146
+ It as customFetch,
4147
+ Ms as downloadFile,
4148
+ $s as fileOrigin,
4149
+ ca as getAccount,
4067
4150
  Gs as getClientTimeZone,
4068
- ki as getLogger,
4069
- er as getStore,
4070
- da as globalAtomStore,
4071
- Xs as i18n,
4072
- Bt as initializeLogger,
4151
+ nr as getStore,
4152
+ ua as globalAtomStore,
4153
+ Ys as i18n,
4073
4154
  On as jsDownload,
4074
4155
  Bs as logger,
4075
- jt as nizza,
4076
- gi as registerLogger,
4077
- qs as registerTranslations,
4078
- Ms as searchParams,
4079
- Hn as shortId,
4080
- Ws as useAccount,
4081
- Ys as useStore,
4082
- zs as validateRequiredProps
4156
+ je as nizza,
4157
+ Xs as registerTranslations,
4158
+ js as searchParams,
4159
+ ei as shortId,
4160
+ qs as useAccount,
4161
+ tr as useStore,
4162
+ Ks as validateRequiredProps
4083
4163
  };
4084
4164
  //# sourceMappingURL=index.mjs.map