@nizza/core 0.5.0-beta.0 → 0.5.0-beta.2

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,13 +1,13 @@
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);
1
+ var zt = Object.defineProperty;
2
+ var Bt = (n, e, t) => e in n ? zt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var R = (n, e, t) => (Bt(n, typeof e != "symbol" ? e + "" : e, t), t);
4
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
- import { jsx as on } from "react/jsx-runtime";
5
+ import fe, { createContext as pt, useReducer as Qt, useEffect as ht, useDebugValue as Gt, useCallback as Kt, useContext as Ce, useMemo as Wt } from "react";
6
+ import { jsx as Jt } from "react/jsx-runtime";
7
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 };
8
- let ln = 0;
9
- function dn(n, e) {
10
- const t = `atom${++ln}`, i = {
8
+ let qt = 0;
9
+ function Ht(n, e) {
10
+ const t = `atom${++qt}`, i = {
11
11
  toString: () => t
12
12
  };
13
13
  return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
@@ -19,311 +19,311 @@ function dn(n, e) {
19
19
  );
20
20
  }), e && (i.write = e), i;
21
21
  }
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) => {
22
+ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Zt = (n, e) => {
23
+ re.set(n, e), n.catch(() => {
24
+ }).finally(() => re.delete(n));
25
+ }, Ae = (n, e) => {
26
+ const t = re.get(n);
27
+ t && (re.delete(n), t(e));
28
+ }, Pe = (n, e) => {
29
29
  n.status = "fulfilled", n.value = e;
30
- }, qe = (n, e) => {
30
+ }, Ve = (n, e) => {
31
31
  n.status = "rejected", n.reason = e;
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
+ }, Xt = (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), _e = (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, Yt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
33
33
  if ("e" in n)
34
34
  throw n.e;
35
35
  return n.v;
36
- }, Dt = () => {
36
+ }, gt = () => {
37
37
  const n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new Map();
38
38
  let i, a;
39
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)) {
44
- const h = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
45
- g.v !== h && We(g.v, h);
46
- }
47
- }, o = (f, m, g) => {
48
- const h = /* @__PURE__ */ new Map();
49
- let N = !1;
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");
52
- }), (N || m.d.size !== h.size) && (m.d = h);
53
- }, d = (f, m, g) => {
54
- const h = s(f), N = {
55
- d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
56
- v: m
40
+ const s = (m) => n.get(m), r = (m, p) => {
41
+ (_ ? "production" : void 0) !== "production" && Object.freeze(p);
42
+ const h = n.get(m);
43
+ if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
44
+ const g = "v" in p ? p.v instanceof Promise ? p.v : Promise.resolve(p.v) : Promise.reject(p.e);
45
+ h.v !== g && Ae(h.v, g);
46
+ }
47
+ }, o = (m, p, h) => {
48
+ const g = /* @__PURE__ */ new Map();
49
+ let b = !1;
50
+ h.forEach((C, v) => {
51
+ !C && v === m && (C = p), C ? (g.set(v, C), p.d.get(v) !== C && (b = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
52
+ }), (b || p.d.size !== g.size) && (p.d = g);
53
+ }, l = (m, p, h) => {
54
+ const g = s(m), b = {
55
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
56
+ v: p
57
57
  };
58
- if (g && o(f, N, g), J(h, N) && h.d === N.d)
59
- return h;
60
- if (B(h) && B(N) && mn(h, N)) {
61
- if (h.d === N.d)
62
- return h;
63
- N.v = h.v;
64
- }
65
- return r(f, N), N;
66
- }, l = (f, m, g, h) => {
67
- if (cn(m)) {
68
- let N;
58
+ if (h && o(m, b, h), W(g, b) && g.d === b.d)
59
+ return g;
60
+ if (z(g) && z(b) && Yt(g, b)) {
61
+ if (g.d === b.d)
62
+ return g;
63
+ b.v = g.v;
64
+ }
65
+ return r(m, b), b;
66
+ }, u = (m, p, h, g) => {
67
+ if (Xt(p)) {
68
+ let b;
69
69
  const C = () => {
70
- const O = s(f);
71
- if (!B(O) || O.v !== b)
70
+ const E = s(m);
71
+ if (!z(E) || E.v !== v)
72
72
  return;
73
- const T = d(
74
- f,
75
- b,
76
- g
73
+ const P = l(
74
+ m,
75
+ v,
76
+ h
77
77
  );
78
- e.has(f) && O.d !== T.d && I(f, T, O.d);
79
- }, b = new Promise((O, T) => {
80
- let R = !1;
81
- m.then(
82
- (D) => {
83
- R || (R = !0, Je(b, D), O(D), C());
78
+ e.has(m) && E.d !== P.d && I(m, P, E.d);
79
+ }, v = new Promise((E, P) => {
80
+ let x = !1;
81
+ p.then(
82
+ (T) => {
83
+ x || (x = !0, Pe(v, T), E(T), C());
84
84
  },
85
- (D) => {
86
- R || (R = !0, qe(b, D), T(D), C());
85
+ (T) => {
86
+ x || (x = !0, Ve(v, T), P(T), C());
87
87
  }
88
- ), N = (D) => {
89
- R || (R = !0, D.then(
90
- (V) => Je(b, V),
91
- (V) => qe(b, V)
92
- ), O(D));
88
+ ), b = (T) => {
89
+ x || (x = !0, T.then(
90
+ (V) => Pe(v, V),
91
+ (V) => Ve(v, V)
92
+ ), E(T));
93
93
  };
94
94
  });
95
- return b.orig = m, b.status = "pending", un(b, (O) => {
96
- O && N(O), h == null || h();
97
- }), d(f, b, g);
98
- }
99
- return d(f, m, g);
100
- }, u = (f, m, g) => {
101
- const h = s(f), N = {
102
- d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
103
- e: m
95
+ return v.orig = p, v.status = "pending", Zt(v, (E) => {
96
+ E && b(E), g == null || g();
97
+ }), l(m, v, h);
98
+ }
99
+ return l(m, p, h);
100
+ }, d = (m, p, h) => {
101
+ const g = s(m), b = {
102
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
103
+ e: p
104
104
  };
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)
105
+ return h && o(m, b, h), _e(g, b) && g.d === b.d ? g : (r(m, b), b);
106
+ }, f = (m, p) => {
107
+ const h = s(m);
108
+ if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
109
+ if (x === m)
110
110
  return !0;
111
- const V = p(R);
112
- return V === D || J(V, D);
111
+ const V = f(x);
112
+ return V === T || W(V, T);
113
113
  })))
114
- return g;
115
- const h = /* @__PURE__ */ new Map();
116
- let N = !0;
117
- const C = (R) => {
118
- if (R === f) {
119
- const V = s(R);
114
+ return h;
115
+ const g = /* @__PURE__ */ new Map();
116
+ let b = !0;
117
+ const C = (x) => {
118
+ if (x === m) {
119
+ const V = s(x);
120
120
  if (V)
121
- return h.set(R, V), re(V);
122
- if (be(R))
123
- return h.set(R, void 0), R.init;
121
+ return g.set(x, V), ne(V);
122
+ if (ke(x))
123
+ return g.set(x, void 0), x.init;
124
124
  throw new Error("no atom init");
125
125
  }
126
- const D = p(R);
127
- return h.set(R, D), re(D);
126
+ const T = f(x);
127
+ return g.set(x, T), ne(T);
128
128
  };
129
- let b, O;
130
- const T = {
129
+ let v, E;
130
+ const P = {
131
131
  get signal() {
132
- return b || (b = new AbortController()), b.signal;
132
+ return v || (v = new AbortController()), v.signal;
133
133
  },
134
134
  get setSelf() {
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;
135
+ return (_ ? "production" : void 0) !== "production" && !ve(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ve(m) && (E = (...x) => {
136
+ if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
137
+ return F(m, ...x);
138
+ }), E;
139
139
  }
140
140
  };
141
141
  try {
142
- const R = f.read(C, T);
143
- return l(
144
- f,
145
- R,
146
- h,
147
- () => b == null ? void 0 : b.abort()
142
+ const x = m.read(C, P);
143
+ return u(
144
+ m,
145
+ x,
146
+ g,
147
+ () => v == null ? void 0 : v.abort()
148
148
  );
149
- } catch (R) {
150
- return u(f, R, h);
149
+ } catch (x) {
150
+ return d(m, x, g);
151
151
  } finally {
152
- N = !1;
153
- }
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) => {
161
- const m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new WeakMap(), h = (b) => {
162
- var O;
163
- const T = new Set((O = e.get(b)) == null ? void 0 : O.t);
164
- return t.forEach((R, D) => {
152
+ b = !1;
153
+ }
154
+ }, c = (m) => ne(f(m)), S = (m) => {
155
+ let p = e.get(m);
156
+ return p || (p = D(m)), p;
157
+ }, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
158
+ const p = e.get(m);
159
+ p && y(m, p) && w(m);
160
+ }, N = (m) => {
161
+ const p = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), g = (v) => {
162
+ var E;
163
+ const P = new Set((E = e.get(v)) == null ? void 0 : E.t);
164
+ return t.forEach((x, T) => {
165
165
  var V;
166
- (V = s(D)) != null && V.d.has(b) && T.add(D);
167
- }), T;
168
- }, N = (b) => {
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));
166
+ (V = s(T)) != null && V.d.has(v) && P.add(T);
167
+ }), P;
168
+ }, b = (v) => {
169
+ g(v).forEach((E) => {
170
+ E !== v && (p.set(
171
+ E,
172
+ (p.get(E) || /* @__PURE__ */ new Set()).add(v)
173
+ ), h.set(E, (h.get(E) || 0) + 1), b(E));
174
174
  });
175
175
  };
176
- N(f);
177
- const C = (b) => {
178
- h(b).forEach((O) => {
179
- var T;
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);
176
+ b(m);
177
+ const C = (v) => {
178
+ g(v).forEach((E) => {
179
+ var P;
180
+ if (E !== v) {
181
+ let x = h.get(E);
182
+ if (x && h.set(E, --x), !x) {
183
+ let T = !!((P = p.get(E)) != null && P.size);
184
+ if (T) {
185
+ const V = s(E), te = f(E, !0);
186
+ T = !W(V, te);
187
187
  }
188
- D || m.forEach((V) => V.delete(O));
188
+ T || p.forEach((V) => V.delete(E));
189
189
  }
190
- C(O);
190
+ C(E);
191
191
  }
192
192
  });
193
193
  };
194
- C(f);
195
- }, F = (f, ...m) => {
196
- let g = !0;
197
- const h = (b) => re(p(b)), N = (b, ...O) => {
198
- let T;
199
- if (b === f) {
200
- if (!be(b))
194
+ C(m);
195
+ }, O = (m, ...p) => {
196
+ let h = !0;
197
+ const g = (v) => ne(f(v)), b = (v, ...E) => {
198
+ let P;
199
+ if (v === m) {
200
+ if (!ke(v))
201
201
  throw new Error("atom not writable");
202
- const R = s(b), D = l(b, O[0]);
203
- J(R, D) || y(b);
202
+ const x = s(v), T = u(v, E[0]);
203
+ W(x, T) || N(v);
204
204
  } else
205
- T = F(b, ...O);
206
- if (!g) {
207
- const R = P();
205
+ P = O(v, ...E);
206
+ if (!h) {
207
+ const x = L();
208
208
  (_ ? "production" : void 0) !== "production" && i.forEach(
209
- (D) => D({ type: "async-write", flushed: R })
209
+ (T) => T({ type: "async-write", flushed: x })
210
210
  );
211
211
  }
212
- return T;
213
- }, C = f.write(h, N, ...m);
214
- return g = !1, C;
215
- }, w = (f, ...m) => {
216
- const g = F(f, ...m), h = P();
212
+ return P;
213
+ }, C = m.write(g, b, ...p);
214
+ return h = !1, C;
215
+ }, F = (m, ...p) => {
216
+ const h = O(m, ...p), g = L();
217
217
  return (_ ? "production" : void 0) !== "production" && i.forEach(
218
- (N) => N({ type: "write", flushed: h })
219
- ), g;
220
- }, L = (f, m, g) => {
221
- var h;
222
- const N = g || [];
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);
218
+ (b) => b({ type: "write", flushed: g })
219
+ ), h;
220
+ }, D = (m, p, h) => {
221
+ var g;
222
+ const b = h || [];
223
+ (g = s(m)) == null || g.d.forEach((v, E) => {
224
+ const P = e.get(E);
225
+ P ? P.t.add(m) : E !== m && D(E, m, b);
226
+ }), f(m);
227
227
  const C = {
228
- t: new Set(m && [m]),
228
+ t: new Set(p && [p]),
229
229
  l: /* @__PURE__ */ new Set()
230
230
  };
231
- if (e.set(f, C), (_ ? "production" : void 0) !== "production" && a.add(f), Fe(f) && f.onMount) {
232
- const { onMount: b } = f;
233
- N.push(() => {
234
- const O = b((...T) => w(f, ...T));
235
- O && (C.u = O);
231
+ if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ve(m) && m.onMount) {
232
+ const { onMount: v } = m;
233
+ b.push(() => {
234
+ const E = v((...P) => F(m, ...P));
235
+ E && (C.u = E);
236
236
  });
237
237
  }
238
- return g || N.forEach((b) => b()), C;
239
- }, E = (f) => {
240
- var m;
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));
238
+ return h || b.forEach((v) => v()), C;
239
+ }, w = (m) => {
240
+ var p;
241
+ const h = (p = e.get(m)) == null ? void 0 : p.u;
242
+ h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
243
+ const g = s(m);
244
+ g ? (z(g) && Ae(g.v), g.d.forEach((b, C) => {
245
+ if (C !== m) {
246
+ const v = e.get(C);
247
+ v && (v.t.delete(m), y(C, v) && w(C));
248
248
  }
249
- })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", f);
250
- }, I = (f, m, g) => {
251
- const h = new Set(m.d.keys());
252
- g == null || g.forEach((N, C) => {
253
- if (h.has(C)) {
254
- h.delete(C);
249
+ })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", m);
250
+ }, I = (m, p, h) => {
251
+ const g = new Set(p.d.keys());
252
+ h == null || h.forEach((b, C) => {
253
+ if (g.has(C)) {
254
+ g.delete(C);
255
255
  return;
256
256
  }
257
- const b = e.get(C);
258
- b && (b.t.delete(f), S(C, b) && E(C));
259
- }), h.forEach((N) => {
260
- const C = e.get(N);
261
- C ? C.t.add(f) : e.has(f) && L(N, f);
257
+ const v = e.get(C);
258
+ v && (v.t.delete(m), y(C, v) && w(C));
259
+ }), g.forEach((b) => {
260
+ const C = e.get(b);
261
+ C ? C.t.add(m) : e.has(m) && D(b, m);
262
262
  });
263
- }, P = () => {
264
- let f;
265
- for ((_ ? "production" : void 0) !== "production" && (f = /* @__PURE__ */ new Set()); t.size; ) {
266
- const m = Array.from(t);
267
- t.clear(), m.forEach(([g, h]) => {
268
- const N = s(g);
269
- if (N) {
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.
263
+ }, L = () => {
264
+ let m;
265
+ for ((_ ? "production" : void 0) !== "production" && (m = /* @__PURE__ */ new Set()); t.size; ) {
266
+ const p = Array.from(t);
267
+ t.clear(), p.forEach(([h, g]) => {
268
+ const b = s(h);
269
+ if (b) {
270
+ const C = e.get(h);
271
+ C && b.d !== (g == null ? void 0 : g.d) && I(h, b, g == null ? void 0 : g.d), C && !// TODO This seems pretty hacky. Hope to fix it.
272
272
  // Maybe we could `mountDependencies` in `setAtomState`?
273
- (!B(h) && (J(h, N) || He(h, N))) && (C.l.forEach((b) => b()), (_ ? "production" : void 0) !== "production" && f.add(g));
273
+ (!z(g) && (W(g, b) || _e(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
274
274
  } else
275
275
  (_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
276
276
  });
277
277
  }
278
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 })
279
+ return m;
280
+ }, A = (m, p) => {
281
+ const h = S(m), g = L(), b = h.l;
282
+ return b.add(p), (_ ? "production" : void 0) !== "production" && i.forEach(
283
+ (C) => C({ type: "sub", flushed: g })
284
284
  ), () => {
285
- N.delete(m), k(f), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
285
+ b.delete(p), k(m), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
286
286
  };
287
287
  };
288
288
  return (_ ? "production" : void 0) !== "production" ? {
289
289
  get: c,
290
- set: w,
290
+ set: F,
291
291
  sub: A,
292
292
  // store dev methods (these are tentative and subject to change without notice)
293
- dev_subscribe_store: (f, m) => {
294
- if (m !== 2)
293
+ dev_subscribe_store: (m, p) => {
294
+ if (p !== 2)
295
295
  throw new Error("The current StoreListener revision is 2.");
296
- return i.add(f), () => {
297
- i.delete(f);
296
+ return i.add(m), () => {
297
+ i.delete(m);
298
298
  };
299
299
  },
300
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();
301
+ dev_get_atom_state: (m) => n.get(m),
302
+ dev_get_mounted: (m) => e.get(m),
303
+ dev_restore_atoms: (m) => {
304
+ for (const [h, g] of m)
305
+ ke(h) && (u(h, g), N(h));
306
+ const p = L();
307
307
  i.forEach(
308
- (g) => g({ type: "restore", flushed: m })
308
+ (h) => h({ type: "restore", flushed: p })
309
309
  );
310
310
  }
311
311
  } : {
312
312
  get: c,
313
- set: w,
313
+ set: F,
314
314
  sub: A
315
315
  };
316
316
  };
317
- let we;
317
+ let Se;
318
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(
319
+ const en = () => (Se || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
320
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);
325
- return (n == null ? void 0 : n.store) || e || fn();
326
- }, gn = (n) => typeof (n == null ? void 0 : n.then) == "function", kn = Ae.use || ((n) => {
321
+ ), Se = gt()), Se);
322
+ var tn = { 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 nn = pt(void 0), kt = (n) => {
324
+ const e = Ce(nn);
325
+ return (n == null ? void 0 : n.store) || e || en();
326
+ }, an = (n) => typeof (n == null ? void 0 : n.then) == "function", sn = fe.use || ((n) => {
327
327
  if (n.status === "pending")
328
328
  throw n;
329
329
  if (n.status === "fulfilled")
@@ -337,58 +337,58 @@ const hn = Ot(void 0), Lt = (n) => {
337
337
  }
338
338
  ), n);
339
339
  });
340
- function vn(n, e) {
341
- const t = Lt(e), [[i, a, s], r] = rn(
342
- (l) => {
343
- const u = t.get(n);
344
- return Object.is(l[0], u) && l[1] === t && l[2] === n ? l : [u, t, n];
340
+ function rn(n, e) {
341
+ const t = kt(e), [[i, a, s], r] = Qt(
342
+ (u) => {
343
+ const d = t.get(n);
344
+ return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
345
345
  },
346
346
  void 0,
347
347
  () => [t.get(n), t, n]
348
348
  );
349
349
  let o = i;
350
350
  (a !== t || s !== n) && (r(), o = t.get(n));
351
- const d = e == null ? void 0 : e.delay;
352
- return Se(() => {
353
- const l = t.sub(n, () => {
354
- if (typeof d == "number") {
355
- setTimeout(r, d);
351
+ const l = e == null ? void 0 : e.delay;
352
+ return ht(() => {
353
+ const u = t.sub(n, () => {
354
+ if (typeof l == "number") {
355
+ setTimeout(r, l);
356
356
  return;
357
357
  }
358
358
  r();
359
359
  });
360
- return r(), l;
361
- }, [t, n, d]), Rt(o), gn(o) ? kn(o) : o;
360
+ return r(), u;
361
+ }, [t, n, l]), Gt(o), an(o) ? sn(o) : o;
362
362
  }
363
- function Sn(n, e) {
364
- const t = Lt(e);
365
- return xt(
363
+ function on(n, e) {
364
+ const t = kt(e);
365
+ return Kt(
366
366
  (...a) => {
367
- if ((pn ? "production" : void 0) !== "production" && !("write" in n))
367
+ if ((tn ? "production" : void 0) !== "production" && !("write" in n))
368
368
  throw new Error("not writable atom");
369
369
  return t.set(n, ...a);
370
370
  },
371
371
  [t, n]
372
372
  );
373
373
  }
374
- function yn(n, e) {
374
+ function ln(n, e) {
375
375
  return [
376
- vn(n, e),
376
+ rn(n, e),
377
377
  // We do wrong type assertion here, which results in throwing an error.
378
- Sn(n, e)
378
+ on(n, e)
379
379
  ];
380
380
  }
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 };
381
+ const Ee = Ht(null);
382
+ Ee.debugLabel = "accountAtom";
383
+ var dn = { 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 };
384
384
  const {
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 = {
385
+ NZ_AWS_REGION: un,
386
+ NZ_BACKOFFICE_BACK_URL: cn,
387
+ NZ_CORE_SERVICES_GRAPHQL_URL: mn,
388
+ NZ_CORE_SERVICES_REST_URL: fn
389
+ } = dn, pn = {
390
390
  AWS: {
391
- region: bn,
391
+ region: un,
392
392
  cognito: {
393
393
  userPoolId: "us-east-1_knSlGEmJ0",
394
394
  userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
@@ -396,9 +396,9 @@ const {
396
396
  },
397
397
  // Back services
398
398
  apiUrls: {
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",
399
+ restV1: cn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
+ restV2: fn || "https://core-services-dev.nizza.com/api",
401
+ graphql: mn || "https://core-services-dev.nizza.com/graphql",
402
402
  corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
403
403
  },
404
404
  publicUrls: {
@@ -412,7 +412,7 @@ const {
412
412
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
413
413
  }
414
414
  };
415
- async function It(n) {
415
+ async function vt(n) {
416
416
  const {
417
417
  url: e,
418
418
  method: t = "GET",
@@ -421,40 +421,40 @@ async function It(n) {
421
421
  contentTypeJson: s = !0,
422
422
  timeout: r,
423
423
  ...o
424
- } = n, d = s && !n.headers ? new Headers({
424
+ } = n, l = s && !n.headers ? new Headers({
425
425
  "content-type": "application/json"
426
426
  }) : n.headers;
427
427
  try {
428
- const l = new AbortController(), { signal: u } = l;
429
- let p;
428
+ const u = new AbortController(), { signal: d } = u;
429
+ let f;
430
430
  const c = fetch(e, {
431
431
  method: t,
432
- headers: d,
432
+ headers: l,
433
433
  body: i,
434
- signal: u,
434
+ signal: d,
435
435
  ...o
436
436
  });
437
- r && (p = setTimeout(() => {
438
- l.abort();
437
+ r && (f = setTimeout(() => {
438
+ u.abort();
439
439
  }, r));
440
- const v = await c;
440
+ const S = await c;
441
441
  if (a)
442
- return v;
443
- const S = await v.json();
444
- if (clearTimeout(p), !v.ok) {
445
- const k = S ? JSON.stringify(S) : v.statusText;
442
+ return S;
443
+ const y = await S.json();
444
+ if (clearTimeout(f), !S.ok) {
445
+ const k = y ? JSON.stringify(y) : S.statusText;
446
446
  throw new Error(k);
447
447
  }
448
- return S;
449
- } catch (l) {
450
- throw console.error("[CustomFetch] ", l), l;
448
+ return y;
449
+ } catch (u) {
450
+ throw console.error("[CustomFetch] ", u), u;
451
451
  }
452
452
  }
453
- const js = (n) => It({ ...n, contentTypeJson: !1, raw: !1 });
454
- function $s(n, e, t) {
455
- fetch(e).then((i) => i.blob()).then((i) => On(i, `${n}.${t}`));
453
+ const Ts = (n) => vt({ ...n, contentTypeJson: !1, raw: !1 });
454
+ function Ds(n, e, t) {
455
+ fetch(e).then((i) => i.blob()).then((i) => hn(i, `${n}.${t}`));
456
456
  }
457
- const On = (n, e, t) => {
457
+ const hn = (n, e, t) => {
458
458
  const i = [n], a = new Blob(i, {
459
459
  type: t != null ? t : "application/octet-stream"
460
460
  });
@@ -464,283 +464,28 @@ const On = (n, e, t) => {
464
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(() => {
465
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
466
466
  }, 200);
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) => {
470
- if (Array.isArray(n))
471
- return Array.from(n);
472
- const e = Object.getOwnPropertyDescriptors(n);
473
- return Object.values(e).forEach((t) => {
474
- t.configurable = !0;
475
- }), Object.create(xe(n), e);
476
- }, Ue = (n) => n[_e] || n, Pt = (n, e, t, i) => {
477
- if (!At(n))
478
- return n;
479
- let a = i && i.get(n);
480
- if (!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);
483
- }
484
- const [s, r] = a;
485
- let o = t && t.get(s);
486
- return o && o[1].f === !!r || (o = ((d, l) => {
487
- const u = { f: l };
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;
494
- else {
495
- let F = y[S];
496
- F || (F = /* @__PURE__ */ new Set(), y[S] = F), F.add(k);
497
- }
498
- }
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) => {
503
- if (Object.is(n, e))
504
- return !1;
505
- if (!ce(n) || !ce(e))
506
- return !0;
507
- const a = t.get(Ue(n));
508
- if (!a)
509
- return !0;
510
- if (i) {
511
- const r = i.get(n);
512
- if (r && r.n === e)
513
- return r.g;
514
- i.set(n, { n: e, g: !1 });
515
- }
516
- let s = null;
517
- try {
518
- for (const r of a.h || [])
519
- if (s = Reflect.has(n, r) !== Reflect.has(e, r), s)
520
- return s;
521
- if (a[ne] === !0) {
522
- if (s = ((r, o) => {
523
- const d = Reflect.ownKeys(r), l = Reflect.ownKeys(o);
524
- return d.length !== l.length || d.some((u, p) => u !== l[p]);
525
- })(n, e), s)
526
- return s;
527
- } else
528
- for (const r of a.o || [])
529
- if (s = !!Reflect.getOwnPropertyDescriptor(n, r) != !!Reflect.getOwnPropertyDescriptor(e, r), s)
530
- return s;
531
- for (const r of a.k || [])
532
- if (s = Vt(n[r], e[r], t, i), s)
533
- return s;
534
- return s === null && (s = !0), s;
535
- } finally {
536
- i && i.set(n, { n: e, g: s });
537
- }
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;
568
467
  };
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) => {
571
- switch (l.status) {
572
- case "fulfilled":
573
- return l.value;
574
- case "rejected":
575
- throw l.reason;
576
- default:
577
- throw l;
578
- }
579
- }, a = /* @__PURE__ */ new WeakMap(), s = (l, u, p = i) => {
580
- const c = a.get(l);
581
- if ((c == null ? void 0 : c[0]) === u)
582
- return c[1];
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))
586
- return;
587
- const k = Reflect.get(l, S), { enumerable: y } = Reflect.getOwnPropertyDescriptor(
588
- l,
589
- S
590
- ), F = {
591
- value: k,
592
- enumerable: y,
593
- // This is intentional to avoid copying with proxy-compare.
594
- // It's still non-writable, so it avoids assigning a value.
595
- configurable: !0
596
- };
597
- if (Y.has(k))
598
- Ze(k, !1);
599
- else if (k instanceof Promise)
600
- delete F.value, F.get = () => p(k);
601
- else if ($.has(k)) {
602
- const [w, L] = $.get(
603
- k
604
- );
605
- F.value = s(
606
- w,
607
- L(),
608
- p
609
- );
610
- }
611
- Object.defineProperty(v, S, F);
612
- }), Object.preventExtensions(v);
613
- }, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
614
- if (!Ce(l))
615
- throw new Error("object required");
616
- const u = r.get(l);
617
- if (u)
618
- return u;
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)));
622
- };
623
- let S = o[1];
624
- const k = (m = ++o[1]) => (S !== m && !c.size && (S = m, F.forEach(([g]) => {
625
- const h = g[1](m);
626
- h > p && (p = h);
627
- })), p), y = (m) => (g, h) => {
628
- const N = [...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");
633
- if (c.size) {
634
- const h = g[3](y(m));
635
- F.set(m, [g, h]);
636
- } else
637
- F.set(m, [g]);
638
- }, L = (m) => {
639
- var g;
640
- const h = F.get(m);
641
- h && (F.delete(m), (g = h[1]) == null || g.call(h));
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]);
647
- }), () => {
648
- c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
649
- N && (N(), F.set(C, [h]));
650
- });
651
- }), I = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(I, {
652
- deleteProperty(m, g) {
653
- const h = Reflect.get(m, g);
654
- L(g);
655
- const N = Reflect.deleteProperty(m, g);
656
- return N && v(["delete", [g], h]), N;
657
- },
658
- set(m, g, h, N) {
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))))
661
- return !0;
662
- L(g), Ce(h) && (h = Dn(h) || h);
663
- let O = h;
664
- if (h instanceof Promise)
665
- h.then((T) => {
666
- h.status = "fulfilled", h.value = T, v(["resolve", [g], T]);
667
- }).catch((T) => {
668
- h.status = "rejected", h.reason = T, v(["reject", [g], T]);
669
- });
670
- else {
671
- !$.has(h) && t(h) && (O = d(h));
672
- const T = !Y.has(O) && $.get(O);
673
- T && w(g, T);
674
- }
675
- return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
676
- }
677
- });
678
- r.set(l, A);
679
- const f = [
680
- I,
681
- k,
682
- s,
683
- E
684
- ];
685
- return $.set(A, f), Reflect.ownKeys(l).forEach((m) => {
686
- const g = Object.getOwnPropertyDescriptor(
687
- l,
688
- m
689
- );
690
- "value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(I, m, g);
691
- }), A;
692
- }) => [
693
- // public functions
694
- d,
695
- // shared state
696
- $,
697
- Y,
698
- // internal things
699
- n,
700
- e,
701
- t,
702
- i,
703
- a,
704
- s,
705
- r,
706
- o
707
- ], [An] = In();
708
- function Pn(n = {}) {
709
- return An(n);
710
- }
711
- function Vn(n, e, t) {
712
- const i = $.get(n);
713
- (me ? "production" : void 0) !== "production" && !i && console.warn("Please use proxy object");
714
- let a;
715
- const s = [], r = i[3];
716
- let o = !1;
717
- const l = r((u) => {
718
- if (s.push(u), t) {
719
- e(s.splice(0));
720
- return;
721
- }
722
- a || (a = Promise.resolve().then(() => {
723
- a = void 0, o && e(s.splice(0));
724
- }));
725
- });
726
- return o = !0, () => {
727
- o = !1, l();
728
- };
729
- }
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;
734
- return s(i, a(), e);
735
- }
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) {
468
+ var gn = { 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 };
469
+ const Ue = (n) => {
470
+ let e;
471
+ const t = /* @__PURE__ */ new Set(), i = (l, u) => {
472
+ const d = typeof l == "function" ? l(e) : l;
473
+ if (!Object.is(d, e)) {
474
+ const f = e;
475
+ e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
476
+ }
477
+ }, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
478
+ (gn ? "production" : void 0) !== "production" && console.warn(
479
+ "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
480
+ ), t.clear();
481
+ } };
482
+ return e = n(i, a, o), o;
483
+ }, kn = (n) => n ? Ue(n) : Ue;
484
+ var St = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
485
+ function xe(n) {
741
486
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
742
487
  }
743
- var Mt = { exports: {} }, jt = {};
488
+ var yt = { exports: {} }, Nt = {}, bt = { exports: {} }, Ft = {};
744
489
  /**
745
490
  * @license React
746
491
  * use-sync-external-store-shim.production.min.js
@@ -750,95 +495,121 @@ var Mt = { exports: {} }, jt = {};
750
495
  * This source code is licensed under the MIT license found in the
751
496
  * LICENSE file in the root directory of this source tree.
752
497
  */
753
- var W = Ae;
754
- function _n(n, e) {
498
+ var K = fe;
499
+ function vn(n, e) {
755
500
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
756
501
  }
757
- var Un = typeof Object.is == "function" ? Object.is : _n, Mn = W.useState, jn = W.useEffect, $n = W.useLayoutEffect, zn = W.useDebugValue;
758
- function Bn(n, e) {
759
- var t = e(), i = Mn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
760
- return $n(function() {
761
- a.value = t, a.getSnapshot = e, Ee(a) && s({ inst: a });
762
- }, [n, t, e]), jn(function() {
763
- return Ee(a) && s({ inst: a }), n(function() {
764
- Ee(a) && s({ inst: a });
502
+ var Sn = typeof Object.is == "function" ? Object.is : vn, yn = K.useState, Nn = K.useEffect, bn = K.useLayoutEffect, Fn = K.useDebugValue;
503
+ function wn(n, e) {
504
+ var t = e(), i = yn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
+ return bn(function() {
506
+ a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
507
+ }, [n, t, e]), Nn(function() {
508
+ return ye(a) && s({ inst: a }), n(function() {
509
+ ye(a) && s({ inst: a });
765
510
  });
766
- }, [n]), zn(t), t;
511
+ }, [n]), Fn(t), t;
767
512
  }
768
- function Ee(n) {
513
+ function ye(n) {
769
514
  var e = n.getSnapshot;
770
515
  n = n.value;
771
516
  try {
772
517
  var t = e();
773
- return !Un(n, t);
518
+ return !Sn(n, t);
774
519
  } catch {
775
520
  return !0;
776
521
  }
777
522
  }
778
- function Qn(n, e) {
523
+ function Cn(n, e) {
779
524
  return e();
780
525
  }
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();
793
- function Zn(n, e) {
794
- const t = e == null ? void 0 : e.sync, i = Re(), a = Re();
795
- let s = !0;
796
- const r = Jn(
797
- xt(
798
- (l) => {
799
- const u = Vn(n, l, t);
800
- return l(), u;
801
- },
802
- [n, t]
803
- ),
804
- () => {
805
- const l = Xe(n, Ye);
806
- try {
807
- if (!s && i.current && a.current && !Vt(
808
- i.current,
809
- l,
810
- a.current,
811
- /* @__PURE__ */ new WeakMap()
812
- ))
813
- return i.current;
814
- } catch {
526
+ var En = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Cn : wn;
527
+ Ft.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : En;
528
+ bt.exports = Ft;
529
+ var wt = bt.exports;
530
+ /**
531
+ * @license React
532
+ * use-sync-external-store-shim/with-selector.production.min.js
533
+ *
534
+ * Copyright (c) Facebook, Inc. and its affiliates.
535
+ *
536
+ * This source code is licensed under the MIT license found in the
537
+ * LICENSE file in the root directory of this source tree.
538
+ */
539
+ var pe = fe, xn = wt;
540
+ function On(n, e) {
541
+ return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
542
+ }
543
+ var Rn = typeof Object.is == "function" ? Object.is : On, Tn = xn.useSyncExternalStore, Dn = pe.useRef, In = pe.useEffect, Ln = pe.useMemo, An = pe.useDebugValue;
544
+ Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
+ var s = Dn(null);
546
+ if (s.current === null) {
547
+ var r = { hasValue: !1, value: null };
548
+ s.current = r;
549
+ } else
550
+ r = s.current;
551
+ s = Ln(function() {
552
+ function l(S) {
553
+ if (!u) {
554
+ if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
555
+ var y = r.value;
556
+ if (a(y, S))
557
+ return f = y;
558
+ }
559
+ return f = S;
815
560
  }
816
- return l;
817
- },
818
- () => Xe(n, Ye)
819
- );
820
- s = !1;
821
- const o = /* @__PURE__ */ new WeakMap();
822
- Se(() => {
823
- i.current = r, a.current = o;
824
- }), (Wn ? "production" : void 0) !== "production" && qn(r, o);
825
- const d = Tt(() => /* @__PURE__ */ new WeakMap(), []);
826
- return Pt(
827
- r,
828
- o,
829
- d,
830
- Hn
561
+ if (y = f, Rn(d, S))
562
+ return y;
563
+ var k = i(S);
564
+ return a !== void 0 && a(y, k) ? y : (d = S, f = k);
565
+ }
566
+ var u = !1, d, f, c = t === void 0 ? null : t;
567
+ return [function() {
568
+ return l(e());
569
+ }, c === null ? void 0 : function() {
570
+ return l(c());
571
+ }];
572
+ }, [e, t, i, a]);
573
+ var o = Tn(n, s[0], s[1]);
574
+ return In(function() {
575
+ r.hasValue = !0, r.value = o;
576
+ }, [o]), An(o), o;
577
+ };
578
+ yt.exports = Nt;
579
+ var Pn = yt.exports;
580
+ const Vn = /* @__PURE__ */ xe(Pn);
581
+ var Ct = { 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 };
582
+ const { useDebugValue: _n } = fe, { useSyncExternalStoreWithSelector: Un } = Vn;
583
+ let Me = !1;
584
+ function Mn(n, e = n.getState, t) {
585
+ (Ct ? "production" : void 0) !== "production" && t && !Me && (console.warn(
586
+ "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
587
+ ), Me = !0);
588
+ const i = Un(
589
+ n.subscribe,
590
+ n.getState,
591
+ n.getServerState || n.getState,
592
+ e,
593
+ t
831
594
  );
595
+ return _n(i), i;
832
596
  }
833
- class Xn {
597
+ const $e = (n) => {
598
+ (Ct ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
599
+ "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
600
+ );
601
+ const e = typeof n == "function" ? kn(n) : n, t = (i, a) => Mn(e, i, a);
602
+ return Object.assign(t, e), t;
603
+ }, $n = (n) => n ? $e(n) : $e;
604
+ class jn {
834
605
  constructor(e) {
835
- x(this, "channel");
836
- x(this, "listeners", /* @__PURE__ */ new Map());
837
- x(this, "eventQueue", /* @__PURE__ */ new Map());
606
+ R(this, "channel");
607
+ R(this, "listeners", /* @__PURE__ */ new Map());
608
+ R(this, "eventQueue", /* @__PURE__ */ new Map());
838
609
  try {
839
- this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => ee.error("NizzaBroadcastChannel:", t);
610
+ this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => Z.error("NizzaBroadcastChannel:", t);
840
611
  } catch (t) {
841
- throw ee.error("Failed to create NizzaBroadcastChannel:", t), t;
612
+ throw Z.error("Failed to create NizzaBroadcastChannel:", t), t;
842
613
  }
843
614
  }
844
615
  /**
@@ -899,7 +670,7 @@ class Xn {
899
670
  subscribeToEvent(e, t) {
900
671
  if (typeof e != "string" || typeof t != "function") {
901
672
  const i = new Error("Invalid arguments");
902
- throw ee.error(i), i;
673
+ throw Z.error(i), i;
903
674
  }
904
675
  for (const [i, a] of this.listeners.entries())
905
676
  if (this.matchWildcard(i, e)) {
@@ -923,7 +694,7 @@ class Xn {
923
694
  emitEvent(e, t, i) {
924
695
  if (typeof e != "string") {
925
696
  const r = new Error("Invalid arguments");
926
- throw ee.error(r), r;
697
+ throw Z.error(r), r;
927
698
  }
928
699
  const a = {
929
700
  name: e,
@@ -976,21 +747,21 @@ class Xn {
976
747
  return new RegExp(`^${i}$`).test(t);
977
748
  }
978
749
  }
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), zs = (n) => {
750
+ let zn = (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), "");
751
+ const Bn = (n = 8) => zn(n), Is = (n) => {
981
752
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
982
753
  return e ? `?${e}` : "";
983
754
  };
984
- function Bs() {
755
+ function Ls() {
985
756
  const n = new Error().stack.split(`
986
757
  `);
987
758
  return n.length < 3 ? "" : n[2].trim().substring(3);
988
759
  }
989
- var zt = { exports: {} };
760
+ var Et = { exports: {} };
990
761
  (function(n) {
991
762
  (function(e, t) {
992
763
  n.exports ? n.exports = t() : e.log = t();
993
- })(Ut, function() {
764
+ })(St, function() {
994
765
  var e = function() {
995
766
  }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
996
767
  "trace",
@@ -999,15 +770,15 @@ var zt = { exports: {} };
999
770
  "warn",
1000
771
  "error"
1001
772
  ];
1002
- function s(k, y) {
1003
- var F = k[y];
1004
- if (typeof F.bind == "function")
1005
- return F.bind(k);
773
+ function s(k, N) {
774
+ var O = k[N];
775
+ if (typeof O.bind == "function")
776
+ return O.bind(k);
1006
777
  try {
1007
- return Function.prototype.bind.call(F, k);
778
+ return Function.prototype.bind.call(O, k);
1008
779
  } catch {
1009
780
  return function() {
1010
- return Function.prototype.apply.apply(F, [k, arguments]);
781
+ return Function.prototype.apply.apply(O, [k, arguments]);
1011
782
  };
1012
783
  }
1013
784
  }
@@ -1017,180 +788,180 @@ var zt = { exports: {} };
1017
788
  function o(k) {
1018
789
  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
790
  }
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);
791
+ function l(k, N) {
792
+ for (var O = 0; O < a.length; O++) {
793
+ var F = a[O];
794
+ this[F] = O < k ? e : this.methodFactory(F, k, N);
1024
795
  }
1025
796
  this.log = this.debug;
1026
797
  }
1027
- function l(k, y, F) {
798
+ function u(k, N, O) {
1028
799
  return function() {
1029
- typeof console !== t && (d.call(this, y, F), this[k].apply(this, arguments));
800
+ typeof console !== t && (l.call(this, N, O), this[k].apply(this, arguments));
1030
801
  };
1031
802
  }
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)) {
803
+ function d(k, N, O) {
804
+ return o(k) || u.apply(this, arguments);
805
+ }
806
+ function f(k, N, O) {
807
+ var F = this, D;
808
+ N = N == null ? "WARN" : N;
809
+ var w = "loglevel";
810
+ typeof k == "string" ? w += ":" + k : typeof k == "symbol" && (w = void 0);
811
+ function I(p) {
812
+ var h = (a[p] || "silent").toUpperCase();
813
+ if (!(typeof window === t || !w)) {
1043
814
  try {
1044
- window.localStorage[E] = g;
815
+ window.localStorage[w] = h;
1045
816
  return;
1046
817
  } catch {
1047
818
  }
1048
819
  try {
1049
- window.document.cookie = encodeURIComponent(E) + "=" + g + ";";
820
+ window.document.cookie = encodeURIComponent(w) + "=" + h + ";";
1050
821
  } catch {
1051
822
  }
1052
823
  }
1053
824
  }
1054
- function P() {
1055
- var m;
1056
- if (!(typeof window === t || !E)) {
825
+ function L() {
826
+ var p;
827
+ if (!(typeof window === t || !w)) {
1057
828
  try {
1058
- m = window.localStorage[E];
829
+ p = window.localStorage[w];
1059
830
  } catch {
1060
831
  }
1061
- if (typeof m === t)
832
+ if (typeof p === t)
1062
833
  try {
1063
- var g = window.document.cookie, h = g.indexOf(
1064
- encodeURIComponent(E) + "="
834
+ var h = window.document.cookie, g = h.indexOf(
835
+ encodeURIComponent(w) + "="
1065
836
  );
1066
- h !== -1 && (m = /^([^;]+)/.exec(g.slice(h))[1]);
837
+ g !== -1 && (p = /^([^;]+)/.exec(h.slice(g))[1]);
1067
838
  } catch {
1068
839
  }
1069
- return w.levels[m] === void 0 && (m = void 0), m;
840
+ return F.levels[p] === void 0 && (p = void 0), p;
1070
841
  }
1071
842
  }
1072
843
  function A() {
1073
- if (!(typeof window === t || !E)) {
844
+ if (!(typeof window === t || !w)) {
1074
845
  try {
1075
- window.localStorage.removeItem(E);
846
+ window.localStorage.removeItem(w);
1076
847
  return;
1077
848
  } catch {
1078
849
  }
1079
850
  try {
1080
- window.document.cookie = encodeURIComponent(E) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
851
+ window.document.cookie = encodeURIComponent(w) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
1081
852
  } catch {
1082
853
  }
1083
854
  }
1084
855
  }
1085
- w.name = k, w.levels = {
856
+ F.name = k, F.levels = {
1086
857
  TRACE: 0,
1087
858
  DEBUG: 1,
1088
859
  INFO: 2,
1089
860
  WARN: 3,
1090
861
  ERROR: 4,
1091
862
  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)
863
+ }, F.methodFactory = O || d, F.getLevel = function() {
864
+ return D;
865
+ }, F.setLevel = function(p, h) {
866
+ if (typeof p == "string" && F.levels[p.toUpperCase()] !== void 0 && (p = F.levels[p.toUpperCase()]), typeof p == "number" && p >= 0 && p <= F.levels.SILENT) {
867
+ if (D = p, h !== !1 && I(p), l.call(F, p, k), typeof console === t && p < F.levels.SILENT)
1097
868
  return "No console available for logging";
1098
869
  } 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);
870
+ throw "log.setLevel() called with invalid level: " + p;
871
+ }, F.setDefaultLevel = function(p) {
872
+ N = p, L() || F.setLevel(p, !1);
873
+ }, F.resetLevel = function() {
874
+ F.setLevel(N, !1), A();
875
+ }, F.enableAll = function(p) {
876
+ F.setLevel(F.levels.TRACE, p);
877
+ }, F.disableAll = function(p) {
878
+ F.setLevel(F.levels.SILENT, p);
1108
879
  };
1109
- var f = P();
1110
- f == null && (f = y), w.setLevel(f, !1);
880
+ var m = L();
881
+ m == null && (m = N), F.setLevel(m, !1);
1111
882
  }
1112
- var c = new p(), v = {};
1113
- c.getLogger = function(y) {
1114
- if (typeof y != "symbol" && typeof y != "string" || y === "")
883
+ var c = new f(), S = {};
884
+ c.getLogger = function(N) {
885
+ if (typeof N != "symbol" && typeof N != "string" || N === "")
1115
886
  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,
887
+ var O = S[N];
888
+ return O || (O = S[N] = new f(
889
+ N,
1119
890
  c.getLevel(),
1120
891
  c.methodFactory
1121
- )), F;
892
+ )), O;
1122
893
  };
1123
- var S = typeof window !== t ? window.log : void 0;
894
+ var y = typeof window !== t ? window.log : void 0;
1124
895
  return c.noConflict = function() {
1125
- return typeof window !== t && window.log === c && (window.log = S), c;
896
+ return typeof window !== t && window.log === c && (window.log = y), c;
1126
897
  }, c.getLoggers = function() {
1127
- return v;
898
+ return S;
1128
899
  }, c.default = c, c;
1129
900
  });
1130
- })(zt);
1131
- var Bt = zt.exports;
1132
- const oe = /* @__PURE__ */ Me(Bt);
1133
- var Qt = { exports: {} };
901
+ })(Et);
902
+ var xt = Et.exports;
903
+ const ie = /* @__PURE__ */ xe(xt);
904
+ var Ot = { exports: {} };
1134
905
  (function(n) {
1135
906
  (function(e, t) {
1136
907
  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;
908
+ })(St, function(e) {
909
+ var t = function(d) {
910
+ for (var f = 1, c = arguments.length, S; f < c; f++)
911
+ for (S in arguments[f])
912
+ Object.prototype.hasOwnProperty.call(arguments[f], S) && (d[S] = arguments[f][S]);
913
+ return d;
1143
914
  }, i = {
1144
915
  template: "[%t] %l:",
1145
- levelFormatter: function(u) {
1146
- return u.toUpperCase();
916
+ levelFormatter: function(d) {
917
+ return d.toUpperCase();
1147
918
  },
1148
- nameFormatter: function(u) {
1149
- return u || "root";
919
+ nameFormatter: function(d) {
920
+ return d || "root";
1150
921
  },
1151
- timestampFormatter: function(u) {
1152
- return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
922
+ timestampFormatter: function(d) {
923
+ return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
1153
924
  },
1154
925
  format: void 0
1155
- }, a, s = {}, r = function(u) {
1156
- if (!u || !u.getLogger)
926
+ }, a, s = {}, r = function(d) {
927
+ if (!d || !d.getLogger)
1157
928
  throw new TypeError("Argument is not a root logger");
1158
- a = u;
1159
- }, o = function(u, p) {
1160
- if (!u || !u.setLevel)
929
+ a = d;
930
+ }, o = function(d, f) {
931
+ if (!d || !d.setLevel)
1161
932
  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;
933
+ var c = d.methodFactory, S = d.name || "", y = s[S] || s[""] || i;
934
+ function k(N, O, F) {
935
+ var D = c(N, O, F), w = s[F] || s[""], I = w.template.indexOf("%t") !== -1, L = w.template.indexOf("%l") !== -1, A = w.template.indexOf("%n") !== -1;
1165
936
  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);
937
+ for (var m = "", p = arguments.length, h = Array(p), g = 0; g < p; g++)
938
+ h[g] = arguments[g];
939
+ if (S || !s[F]) {
940
+ var b = w.timestampFormatter(/* @__PURE__ */ new Date()), C = w.levelFormatter(N), v = w.nameFormatter(F);
941
+ w.format ? m += w.format(C, v, b) : (m += w.template, I && (m = m.replace(/%t/, b)), L && (m = m.replace(/%l/, C)), A && (m = m.replace(/%n/, v))), h.length && typeof h[0] == "string" ? h[0] = m + " " + h[0] : h.unshift(m);
1171
942
  }
1172
- L.apply(void 0, g);
943
+ D.apply(void 0, h);
1173
944
  };
1174
945
  }
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(
946
+ return s[S] || (d.methodFactory = k), f = f || {}, f.template && (f.format = void 0), s[S] = t({}, y, f), d.setLevel(d.getLevel()), a || d.warn(
1176
947
  "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 = {
948
+ ), d;
949
+ }, l = {
1179
950
  reg: r,
1180
951
  apply: o
1181
- }, l;
1182
- return e && (l = e.prefix, d.noConflict = function() {
1183
- return e.prefix === d && (e.prefix = l), d;
1184
- }), d;
952
+ }, u;
953
+ return e && (u = e.prefix, l.noConflict = function() {
954
+ return e.prefix === l && (e.prefix = u), l;
955
+ }), l;
1185
956
  });
1186
- })(Qt);
1187
- var ti = Qt.exports;
1188
- const et = /* @__PURE__ */ Me(ti);
1189
- let ni = class {
957
+ })(Ot);
958
+ var Qn = Ot.exports;
959
+ const je = /* @__PURE__ */ xe(Qn);
960
+ let Gn = class {
1190
961
  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, {
962
+ R(this, "defaultLevel", xt.levels.INFO);
963
+ R(this, "namePrefix");
964
+ this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), je.reg(ie), je.apply(ie, {
1194
965
  template: "[%t] %l (%n)",
1195
966
  nameFormatter: (t) => {
1196
967
  var i;
@@ -1200,115 +971,106 @@ let ni = class {
1200
971
  });
1201
972
  }
1202
973
  createLogger(e) {
1203
- const t = this.namePrefix + e.toLowerCase(), i = oe.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
974
+ const t = this.namePrefix + e.toLowerCase(), i = ie.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
1204
975
  return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
1205
976
  }
1206
977
  };
1207
- const z = Pn({
1208
- config: null,
1209
- get accountName() {
1210
- var n;
1211
- return (n = this.config) == null ? void 0 : n.account;
1212
- },
1213
- get ok() {
1214
- return !!this.account;
1215
- }
1216
- }), ii = async (n) => {
1217
- var e;
978
+ const j = $n(() => ({
979
+ config: null
980
+ })), Kn = async (n) => {
1218
981
  try {
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;
982
+ const e = j.getState().account;
983
+ if ((e == null ? void 0 : e.account) !== n.account) {
984
+ const t = await ta(n.account);
985
+ j.setState({ account: t });
1222
986
  }
1223
987
  if (n.getProductDataSource) {
1224
988
  const t = await n.getProductDataSource();
1225
- z.productDataSource = _t(t);
1226
- }
1227
- } catch (t) {
1228
- console.error("Error configuring NizzaStore:", t);
1229
- }
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("nizza"),
1239
- get account() {
1240
- return z.account;
1241
- },
1242
- get productDataSource() {
1243
- return z.productDataSource;
1244
- }
1245
- }), si = () => {
989
+ j.setState({ productDataSource: t });
990
+ }
991
+ j.setState({ config: n });
992
+ } catch (e) {
993
+ console.error("Error configuring NizzaStore:", e);
994
+ }
995
+ }, Wn = (n) => {
996
+ j.setState({ productDataSource: n });
997
+ }, ze = () => ({
998
+ version: "1.0.0",
999
+ configure: Kn,
1000
+ setProductDataSource: Wn,
1001
+ instanceId: Bn(),
1002
+ log: new Gn("nz"),
1003
+ eventBus: new jn("nizza"),
1004
+ get state() {
1005
+ return j.getState();
1006
+ }
1007
+ }), Jn = () => {
1246
1008
  if (typeof window != "undefined") {
1247
1009
  if (!window.nizza) {
1248
- const n = tt();
1010
+ const n = ze();
1249
1011
  window.nizza = n, window.nz = n;
1250
1012
  }
1251
1013
  return window.nizza;
1252
1014
  }
1253
- return tt();
1254
- }, je = si(), Ks = je.log.createLogger("main"), ee = je.log.createLogger("core");
1015
+ return ze();
1016
+ }, Rt = Jn(), qn = j, Ps = Rt.log.createLogger("main"), Z = Rt.log.createLogger("core");
1255
1017
  function G(n) {
1256
1018
  return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1257
1019
  }
1258
- function de(n) {
1020
+ function se(n) {
1259
1021
  return function e(t) {
1260
1022
  return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1261
1023
  };
1262
1024
  }
1263
- function $e(n) {
1025
+ function Oe(n) {
1264
1026
  return function e(t, i) {
1265
1027
  switch (arguments.length) {
1266
1028
  case 0:
1267
1029
  return e;
1268
1030
  case 1:
1269
- return G(t) ? e : de(function(a) {
1031
+ return G(t) ? e : se(function(a) {
1270
1032
  return n(t, a);
1271
1033
  });
1272
1034
  default:
1273
- return G(t) && G(i) ? e : G(t) ? de(function(a) {
1035
+ return G(t) && G(i) ? e : G(t) ? se(function(a) {
1274
1036
  return n(a, i);
1275
- }) : G(i) ? de(function(a) {
1037
+ }) : G(i) ? se(function(a) {
1276
1038
  return n(t, a);
1277
1039
  }) : n(t, i);
1278
1040
  }
1279
1041
  };
1280
1042
  }
1281
- const ri = Number.isInteger || function(e) {
1043
+ const Hn = Number.isInteger || function(e) {
1282
1044
  return e << 0 === e;
1283
1045
  };
1284
- function oi(n) {
1046
+ function Zn(n) {
1285
1047
  return Object.prototype.toString.call(n) === "[object String]";
1286
1048
  }
1287
- var li = /* @__PURE__ */ $e(function(e, t) {
1049
+ var Xn = /* @__PURE__ */ Oe(function(e, t) {
1288
1050
  var i = e < 0 ? t.length + e : e;
1289
- return oi(t) ? t.charAt(i) : t[i];
1051
+ return Zn(t) ? t.charAt(i) : t[i];
1290
1052
  });
1291
- const di = li;
1292
- var ui = /* @__PURE__ */ de(function(e) {
1053
+ const Yn = Xn;
1054
+ var ei = /* @__PURE__ */ se(function(e) {
1293
1055
  return e == null;
1294
1056
  });
1295
- const ci = ui;
1296
- var mi = /* @__PURE__ */ $e(function(e, t) {
1057
+ const ti = ei;
1058
+ var ni = /* @__PURE__ */ Oe(function(e, t) {
1297
1059
  return e.map(function(i) {
1298
1060
  for (var a = t, s = 0, r; s < i.length; ) {
1299
1061
  if (a == null)
1300
1062
  return;
1301
- r = i[s], a = ri(r) ? di(r, a) : a[r], s += 1;
1063
+ r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
1302
1064
  }
1303
1065
  return a;
1304
1066
  });
1305
1067
  });
1306
- const fi = mi;
1307
- var pi = /* @__PURE__ */ $e(function(e, t) {
1308
- return fi([e], t)[0];
1068
+ const ii = ni;
1069
+ var ai = /* @__PURE__ */ Oe(function(e, t) {
1070
+ return ii([e], t)[0];
1309
1071
  });
1310
- const hi = pi;
1311
- class ye extends Error {
1072
+ const si = ai;
1073
+ class he extends Error {
1312
1074
  constructor(e, t, i) {
1313
1075
  super(t), this.value = i, this.name = e;
1314
1076
  }
@@ -1320,7 +1082,7 @@ class ye extends Error {
1320
1082
  };
1321
1083
  }
1322
1084
  }
1323
- class gi extends ye {
1085
+ class ri extends he {
1324
1086
  constructor(e) {
1325
1087
  super(
1326
1088
  "RESOURCE_NOT_FOUND_ERROR",
@@ -1329,7 +1091,7 @@ class gi extends ye {
1329
1091
  );
1330
1092
  }
1331
1093
  }
1332
- class ki extends ye {
1094
+ class oi extends he {
1333
1095
  constructor(e) {
1334
1096
  var t;
1335
1097
  super(
@@ -1339,12 +1101,12 @@ class ki extends ye {
1339
1101
  );
1340
1102
  }
1341
1103
  }
1342
- class Gs extends ye {
1104
+ class Vs extends he {
1343
1105
  constructor() {
1344
1106
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1345
1107
  }
1346
1108
  }
1347
- class vi extends ye {
1109
+ class li extends he {
1348
1110
  constructor(e) {
1349
1111
  super(
1350
1112
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -1372,28 +1134,28 @@ class vi extends ye {
1372
1134
  );
1373
1135
  }
1374
1136
  }
1375
- function Ws(n, e) {
1137
+ function _s(n, e) {
1376
1138
  e.forEach((t) => {
1377
- if (ci(hi(t.split("."), n)))
1378
- throw new vi(t);
1139
+ if (ti(si(t.split("."), n)))
1140
+ throw new li(t);
1379
1141
  });
1380
1142
  }
1381
- function Js() {
1143
+ function Us() {
1382
1144
  var i, a, s;
1383
1145
  let n = null, e = null, t = null;
1384
1146
  try {
1385
1147
  n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
1386
1148
  const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
1387
1149
  t = r;
1388
- const o = r >= 0 ? "+" : "-", d = String(
1150
+ const o = r >= 0 ? "+" : "-", l = String(
1389
1151
  Math.floor(Math.abs(r) / 60)
1390
- ).padStart(2, "0"), l = String(Math.abs(r) % 60).padStart(
1152
+ ).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
1391
1153
  2,
1392
1154
  "0"
1393
1155
  );
1394
- e = `${o}${d}:${l}`;
1156
+ e = `${o}${l}:${u}`;
1395
1157
  } catch {
1396
- ee.error("Error obtaining time zone or offset");
1158
+ Z.error("Error obtaining time zone or offset");
1397
1159
  }
1398
1160
  return {
1399
1161
  offset: e,
@@ -1404,10 +1166,10 @@ function Js() {
1404
1166
  label: null
1405
1167
  };
1406
1168
  }
1407
- class Si {
1169
+ class di {
1408
1170
  constructor(e) {
1409
- x(this, "aggregate");
1410
- x(this, "_numSetPropsApplied", 0);
1171
+ R(this, "aggregate");
1172
+ R(this, "_numSetPropsApplied", 0);
1411
1173
  this.aggregate = e;
1412
1174
  }
1413
1175
  setProps(e) {
@@ -1419,48 +1181,48 @@ class Si {
1419
1181
  return this._numSetPropsApplied === 1;
1420
1182
  }
1421
1183
  }
1422
- function yi(n) {
1423
- return new Si(n);
1184
+ function ui(n) {
1185
+ return new di(n);
1424
1186
  }
1425
- class qs {
1187
+ class Ms {
1426
1188
  }
1427
- class Hs {
1189
+ class $s {
1428
1190
  constructor(e) {
1429
- x(this, "_value");
1191
+ R(this, "_value");
1430
1192
  e !== void 0 && (this._value = e);
1431
1193
  }
1432
1194
  get value() {
1433
1195
  return this._value;
1434
1196
  }
1435
1197
  }
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 {
1198
+ var Tt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Tt || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Dt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Dt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
1199
+ class Re {
1438
1200
  constructor(e) {
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);
1201
+ R(this, "root", ui(this));
1202
+ R(this, "id");
1203
+ R(this, "account");
1204
+ R(this, "accountType", Tt.UNKNOWN);
1205
+ R(this, "username");
1206
+ R(this, "currencyConfig");
1207
+ R(this, "contractType");
1208
+ R(this, "nextDateMetricRecord");
1209
+ R(this, "spendedMinutes", 0);
1210
+ R(this, "unlimitedService", !1);
1211
+ R(this, "hoursAvailable", 0);
1212
+ R(this, "contractStatus", Dt.ACTIVE);
1213
+ R(this, "createdAt");
1214
+ R(this, "installationDateApp");
1215
+ R(this, "cxAccount");
1216
+ R(this, "freeService", !1);
1217
+ R(this, "subscriptionType", null);
1218
+ R(this, "minutesAvailable", 0);
1219
+ R(this, "globalPage");
1220
+ R(this, "stripe");
1221
+ R(this, "descriptionPlan");
1222
+ R(this, "planType");
1223
+ R(this, "selectFreeTrial");
1224
+ R(this, "exceededFeatures");
1225
+ R(this, "host", null);
1464
1226
  this.root.setProps(e);
1465
1227
  }
1466
1228
  static toDomain(e) {
@@ -1469,7 +1231,7 @@ class ze {
1469
1231
  username: i != null ? i : a.account,
1470
1232
  createdAt: new Date(Number(t))
1471
1233
  };
1472
- return new ze(s);
1234
+ return new Re(s);
1473
1235
  }
1474
1236
  toPrimitives() {
1475
1237
  const { root: e, createdAt: t, ...i } = this;
@@ -1479,16 +1241,16 @@ class ze {
1479
1241
  };
1480
1242
  }
1481
1243
  }
1482
- const Ci = `${En.apiUrls.restV1}/accounts/v2`;
1483
- class Ei {
1244
+ const hi = `${pn.apiUrls.restV1}/accounts/v2`;
1245
+ class gi {
1484
1246
  async get(e) {
1485
- const t = `${Ci}/${e}`, { data: i } = await It({
1247
+ const t = `${hi}/${e}`, { data: i } = await vt({
1486
1248
  url: t
1487
1249
  });
1488
- return i ? ze.toDomain(i) : null;
1250
+ return i ? Re.toDomain(i) : null;
1489
1251
  }
1490
1252
  }
1491
- class Oi {
1253
+ class ki {
1492
1254
  constructor(e) {
1493
1255
  this.accountRepository = e;
1494
1256
  }
@@ -1496,15 +1258,15 @@ class Oi {
1496
1258
  try {
1497
1259
  const t = await this.accountRepository.get(e);
1498
1260
  if (!t)
1499
- throw new gi(e);
1261
+ throw new ri(e);
1500
1262
  return t;
1501
1263
  } catch (t) {
1502
- throw new ki(t);
1264
+ throw new oi(t);
1503
1265
  }
1504
1266
  }
1505
1267
  }
1506
- const Ri = new Ei(), Wt = new Oi(Ri);
1507
- class Be {
1268
+ const vi = new gi(), It = new ki(vi);
1269
+ class Te {
1508
1270
  constructor() {
1509
1271
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1510
1272
  }
@@ -1524,17 +1286,17 @@ class Be {
1524
1286
  onUnsubscribe() {
1525
1287
  }
1526
1288
  }
1527
- const fe = typeof window == "undefined" || "Deno" in window;
1528
- function xi() {
1289
+ const oe = typeof window == "undefined" || "Deno" in window;
1290
+ function Si() {
1529
1291
  }
1530
- function nt(n) {
1292
+ function Be(n) {
1531
1293
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1532
1294
  }
1533
- function Ti(n, e) {
1295
+ function yi(n, e) {
1534
1296
  return Math.max(n + (e || 0) - Date.now(), 0);
1535
1297
  }
1536
- function Di(n, e, t) {
1537
- return Li(n) ? typeof e == "function" ? {
1298
+ function Ni(n, e, t) {
1299
+ return bi(n) ? typeof e == "function" ? {
1538
1300
  ...t,
1539
1301
  queryKey: n,
1540
1302
  queryFn: e
@@ -1543,22 +1305,22 @@ function Di(n, e, t) {
1543
1305
  queryKey: n
1544
1306
  } : n;
1545
1307
  }
1546
- function Jt(n, e) {
1308
+ function Lt(n, e) {
1547
1309
  if (n === e)
1548
1310
  return n;
1549
- const t = it(n) && it(e);
1550
- if (t || at(n) && at(e)) {
1311
+ const t = Qe(n) && Qe(e);
1312
+ if (t || Ge(n) && Ge(e)) {
1551
1313
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1552
1314
  let o = 0;
1553
- for (let d = 0; d < s; d++) {
1554
- const l = t ? d : a[d];
1555
- r[l] = Jt(n[l], e[l]), r[l] === n[l] && o++;
1315
+ for (let l = 0; l < s; l++) {
1316
+ const u = t ? l : a[l];
1317
+ r[u] = Lt(n[u], e[u]), r[u] === n[u] && o++;
1556
1318
  }
1557
1319
  return i === s && o === i ? n : r;
1558
1320
  }
1559
1321
  return e;
1560
1322
  }
1561
- function De(n, e) {
1323
+ function be(n, e) {
1562
1324
  if (n && !e || e && !n)
1563
1325
  return !1;
1564
1326
  for (const t in n)
@@ -1566,39 +1328,39 @@ function De(n, e) {
1566
1328
  return !1;
1567
1329
  return !0;
1568
1330
  }
1569
- function it(n) {
1331
+ function Qe(n) {
1570
1332
  return Array.isArray(n) && n.length === Object.keys(n).length;
1571
1333
  }
1572
- function at(n) {
1573
- if (!st(n))
1334
+ function Ge(n) {
1335
+ if (!Ke(n))
1574
1336
  return !1;
1575
1337
  const e = n.constructor;
1576
1338
  if (typeof e == "undefined")
1577
1339
  return !0;
1578
1340
  const t = e.prototype;
1579
- return !(!st(t) || !t.hasOwnProperty("isPrototypeOf"));
1341
+ return !(!Ke(t) || !t.hasOwnProperty("isPrototypeOf"));
1580
1342
  }
1581
- function st(n) {
1343
+ function Ke(n) {
1582
1344
  return Object.prototype.toString.call(n) === "[object Object]";
1583
1345
  }
1584
- function Li(n) {
1346
+ function bi(n) {
1585
1347
  return Array.isArray(n);
1586
1348
  }
1587
- function Ii(n) {
1349
+ function Fi(n) {
1588
1350
  return new Promise((e) => {
1589
1351
  setTimeout(e, n);
1590
1352
  });
1591
1353
  }
1592
- function rt(n) {
1593
- Ii(0).then(n);
1354
+ function We(n) {
1355
+ Fi(0).then(n);
1594
1356
  }
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;
1357
+ function Je(n, e, t) {
1358
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Lt(n, e) : e;
1597
1359
  }
1598
- class Ai extends Be {
1360
+ class wi extends Te {
1599
1361
  constructor() {
1600
1362
  super(), this.setup = (e) => {
1601
- if (!fe && window.addEventListener) {
1363
+ if (!oe && window.addEventListener) {
1602
1364
  const t = () => e();
1603
1365
  return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
1604
1366
  window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
@@ -1635,16 +1397,16 @@ class Ai extends Be {
1635
1397
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1636
1398
  }
1637
1399
  }
1638
- const Pi = new Ai(), lt = ["online", "offline"];
1639
- class Vi extends Be {
1400
+ const Ci = new wi(), qe = ["online", "offline"];
1401
+ class Ei extends Te {
1640
1402
  constructor() {
1641
1403
  super(), this.setup = (e) => {
1642
- if (!fe && window.addEventListener) {
1404
+ if (!oe && window.addEventListener) {
1643
1405
  const t = () => e();
1644
- return lt.forEach((i) => {
1406
+ return qe.forEach((i) => {
1645
1407
  window.addEventListener(i, t, !1);
1646
1408
  }), () => {
1647
- lt.forEach((i) => {
1409
+ qe.forEach((i) => {
1648
1410
  window.removeEventListener(i, t);
1649
1411
  });
1650
1412
  };
@@ -1680,47 +1442,47 @@ class Vi extends Be {
1680
1442
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1681
1443
  }
1682
1444
  }
1683
- const _i = new Vi();
1684
- function Ui(n) {
1685
- return (n != null ? n : "online") === "online" ? _i.isOnline() : !0;
1445
+ const xi = new Ei();
1446
+ function Oi(n) {
1447
+ return (n != null ? n : "online") === "online" ? xi.isOnline() : !0;
1686
1448
  }
1687
- class Mi {
1449
+ class Ri {
1688
1450
  constructor(e) {
1689
1451
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1690
1452
  }
1691
1453
  }
1692
- function ji(n) {
1693
- return n instanceof Mi;
1454
+ function Ti(n) {
1455
+ return n instanceof Ri;
1694
1456
  }
1695
- function $i() {
1696
- let n = [], e = 0, t = (u) => {
1697
- u();
1698
- }, i = (u) => {
1699
- u();
1457
+ function Di() {
1458
+ let n = [], e = 0, t = (d) => {
1459
+ d();
1460
+ }, i = (d) => {
1461
+ d();
1700
1462
  };
1701
- const a = (u) => {
1702
- let p;
1463
+ const a = (d) => {
1464
+ let f;
1703
1465
  e++;
1704
1466
  try {
1705
- p = u();
1467
+ f = d();
1706
1468
  } finally {
1707
1469
  e--, e || o();
1708
1470
  }
1709
- return p;
1710
- }, s = (u) => {
1711
- e ? n.push(u) : rt(() => {
1712
- t(u);
1471
+ return f;
1472
+ }, s = (d) => {
1473
+ e ? n.push(d) : We(() => {
1474
+ t(d);
1713
1475
  });
1714
- }, r = (u) => (...p) => {
1476
+ }, r = (d) => (...f) => {
1715
1477
  s(() => {
1716
- u(...p);
1478
+ d(...f);
1717
1479
  });
1718
1480
  }, o = () => {
1719
- const u = n;
1720
- n = [], u.length && rt(() => {
1481
+ const d = n;
1482
+ n = [], d.length && We(() => {
1721
1483
  i(() => {
1722
- u.forEach((p) => {
1723
- t(p);
1484
+ d.forEach((f) => {
1485
+ t(f);
1724
1486
  });
1725
1487
  });
1726
1488
  });
@@ -1729,16 +1491,16 @@ function $i() {
1729
1491
  batch: a,
1730
1492
  batchCalls: r,
1731
1493
  schedule: s,
1732
- setNotifyFunction: (u) => {
1733
- t = u;
1494
+ setNotifyFunction: (d) => {
1495
+ t = d;
1734
1496
  },
1735
- setBatchNotifyFunction: (u) => {
1736
- i = u;
1497
+ setBatchNotifyFunction: (d) => {
1498
+ i = d;
1737
1499
  }
1738
1500
  };
1739
1501
  }
1740
- const te = $i();
1741
- class zi extends Be {
1502
+ const X = Di();
1503
+ class Ii extends Te {
1742
1504
  constructor(e, t) {
1743
1505
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1744
1506
  }
@@ -1746,23 +1508,23 @@ class zi extends Be {
1746
1508
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1747
1509
  }
1748
1510
  onSubscribe() {
1749
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), dt(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1511
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), He(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1750
1512
  }
1751
1513
  onUnsubscribe() {
1752
1514
  this.hasListeners() || this.destroy();
1753
1515
  }
1754
1516
  shouldFetchOnReconnect() {
1755
- return Le(this.currentQuery, this.options, this.options.refetchOnReconnect);
1517
+ return Fe(this.currentQuery, this.options, this.options.refetchOnReconnect);
1756
1518
  }
1757
1519
  shouldFetchOnWindowFocus() {
1758
- return Le(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1520
+ return Fe(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1759
1521
  }
1760
1522
  destroy() {
1761
1523
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1762
1524
  }
1763
1525
  setOptions(e, t) {
1764
1526
  const i = this.options, a = this.currentQuery;
1765
- if (this.options = this.client.defaultQueryOptions(e), De(i, this.options) || this.client.getQueryCache().notify({
1527
+ if (this.options = this.client.defaultQueryOptions(e), be(i, this.options) || this.client.getQueryCache().notify({
1766
1528
  type: "observerOptionsUpdated",
1767
1529
  query: this.currentQuery,
1768
1530
  observer: this
@@ -1770,13 +1532,13 @@ class zi extends Be {
1770
1532
  throw new Error("Expected enabled to be a boolean");
1771
1533
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1772
1534
  const s = this.hasListeners();
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();
1535
+ s && Ze(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();
1774
1536
  const r = this.computeRefetchInterval();
1775
1537
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1776
1538
  }
1777
1539
  getOptimisticResult(e) {
1778
1540
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1779
- return Qi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1541
+ return Ai(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1780
1542
  }
1781
1543
  getCurrentResult() {
1782
1544
  return this.currentResult;
@@ -1822,12 +1584,12 @@ class zi extends Be {
1822
1584
  executeFetch(e) {
1823
1585
  this.updateQuery();
1824
1586
  let t = this.currentQuery.fetch(this.options, e);
1825
- return e != null && e.throwOnError || (t = t.catch(xi)), t;
1587
+ return e != null && e.throwOnError || (t = t.catch(Si)), t;
1826
1588
  }
1827
1589
  updateStaleTimeout() {
1828
- if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
1590
+ if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !Be(this.options.staleTime))
1829
1591
  return;
1830
- const t = Ti(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1592
+ const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1831
1593
  this.staleTimeoutId = setTimeout(() => {
1832
1594
  this.currentResult.isStale || this.updateResult();
1833
1595
  }, t);
@@ -1837,8 +1599,8 @@ class zi extends Be {
1837
1599
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1838
1600
  }
1839
1601
  updateRefetchInterval(e) {
1840
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(fe || this.options.enabled === !1 || !nt(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1841
- (this.options.refetchIntervalInBackground || Pi.isFocused()) && this.executeFetch();
1602
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !Be(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1603
+ (this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
1842
1604
  }, this.currentRefetchInterval));
1843
1605
  }
1844
1606
  updateTimers() {
@@ -1851,78 +1613,78 @@ class zi extends Be {
1851
1613
  this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
1852
1614
  }
1853
1615
  createResult(e, t) {
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, {
1855
- state: p
1616
+ const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, l = e !== i, u = l ? e.state : this.currentQueryInitialState, d = l ? this.currentResult : this.previousQueryResult, {
1617
+ state: f
1856
1618
  } = e;
1857
1619
  let {
1858
1620
  dataUpdatedAt: c,
1859
- error: v,
1860
- errorUpdatedAt: S,
1621
+ error: S,
1622
+ errorUpdatedAt: y,
1861
1623
  fetchStatus: k,
1862
- status: y
1863
- } = p, F = !1, w = !1, L;
1624
+ status: N
1625
+ } = f, O = !1, F = !1, D;
1864
1626
  if (t._optimisticResults) {
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;
1627
+ const m = this.hasListeners(), p = !m && He(e, t), h = m && Ze(e, i, t, a);
1628
+ (p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1629
+ }
1630
+ if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
1631
+ D = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
1632
+ else if (t.select && typeof f.data != "undefined")
1633
+ if (s && f.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1634
+ D = this.selectResult;
1873
1635
  else
1874
1636
  try {
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;
1637
+ this.selectFn = t.select, D = t.select(f.data), D = Je(s == null ? void 0 : s.data, D, t), this.selectResult = D, this.selectError = null;
1638
+ } catch (m) {
1639
+ this.selectError = m;
1878
1640
  }
1879
1641
  else
1880
- L = p.data;
1881
- if (typeof t.placeholderData != "undefined" && typeof L == "undefined" && y === "loading") {
1882
- let f;
1642
+ D = f.data;
1643
+ if (typeof t.placeholderData != "undefined" && typeof D == "undefined" && N === "loading") {
1644
+ let m;
1883
1645
  if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
1884
- f = s.data;
1885
- else if (f = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof f != "undefined")
1646
+ m = s.data;
1647
+ else if (m = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof m != "undefined")
1886
1648
  try {
1887
- f = t.select(f), this.selectError = null;
1888
- } catch (m) {
1889
- this.selectError = m;
1649
+ m = t.select(m), this.selectError = null;
1650
+ } catch (p) {
1651
+ this.selectError = p;
1890
1652
  }
1891
- typeof f != "undefined" && (y = "success", L = ot(s == null ? void 0 : s.data, f, t), w = !0);
1653
+ typeof m != "undefined" && (N = "success", D = Je(s == null ? void 0 : s.data, m, t), F = !0);
1892
1654
  }
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";
1655
+ this.selectError && (S = this.selectError, D = this.selectResult, y = Date.now(), N = "error");
1656
+ const w = k === "fetching", I = N === "loading", L = N === "error";
1895
1657
  return {
1896
- status: y,
1658
+ status: N,
1897
1659
  fetchStatus: k,
1898
1660
  isLoading: I,
1899
- isSuccess: y === "success",
1900
- isError: P,
1901
- isInitialLoading: I && E,
1902
- data: L,
1661
+ isSuccess: N === "success",
1662
+ isError: L,
1663
+ isInitialLoading: I && w,
1664
+ data: D,
1903
1665
  dataUpdatedAt: c,
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,
1666
+ error: S,
1667
+ errorUpdatedAt: y,
1668
+ failureCount: f.fetchFailureCount,
1669
+ failureReason: f.fetchFailureReason,
1670
+ errorUpdateCount: f.errorUpdateCount,
1671
+ isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1672
+ isFetchedAfterMount: f.dataUpdateCount > u.dataUpdateCount || f.errorUpdateCount > u.errorUpdateCount,
1673
+ isFetching: w,
1674
+ isRefetching: w && !I,
1675
+ isLoadingError: L && f.dataUpdatedAt === 0,
1914
1676
  isPaused: k === "paused",
1915
- isPlaceholderData: w,
1916
- isPreviousData: F,
1917
- isRefetchError: P && p.dataUpdatedAt !== 0,
1918
- isStale: Qe(e, t),
1677
+ isPlaceholderData: F,
1678
+ isPreviousData: O,
1679
+ isRefetchError: L && f.dataUpdatedAt !== 0,
1680
+ isStale: De(e, t),
1919
1681
  refetch: this.refetch,
1920
1682
  remove: this.remove
1921
1683
  };
1922
1684
  }
1923
1685
  updateResult(e) {
1924
1686
  const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1925
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, De(i, t))
1687
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, be(i, t))
1926
1688
  return;
1927
1689
  this.currentResult = i;
1928
1690
  const a = {
@@ -1935,10 +1697,10 @@ class zi extends Be {
1935
1697
  } = this.options, o = typeof r == "function" ? r() : r;
1936
1698
  if (o === "all" || !o && !this.trackedProps.size)
1937
1699
  return !0;
1938
- const d = new Set(o != null ? o : this.trackedProps);
1939
- return this.options.useErrorBoundary && d.add("error"), Object.keys(this.currentResult).some((l) => {
1940
- const u = l;
1941
- return this.currentResult[u] !== t[u] && d.has(u);
1700
+ const l = new Set(o != null ? o : this.trackedProps);
1701
+ return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
1702
+ const d = u;
1703
+ return this.currentResult[d] !== t[d] && l.has(d);
1942
1704
  });
1943
1705
  };
1944
1706
  (e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
@@ -1955,21 +1717,21 @@ class zi extends Be {
1955
1717
  }
1956
1718
  onQueryUpdate(e) {
1957
1719
  const t = {};
1958
- e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !ji(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1720
+ e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ti(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1959
1721
  }
1960
1722
  notify(e) {
1961
- te.batch(() => {
1723
+ X.batch(() => {
1962
1724
  if (e.onSuccess) {
1963
1725
  var t, i, a, s;
1964
1726
  (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);
1965
1727
  } else if (e.onError) {
1966
- var r, o, d, l;
1967
- (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (d = (l = this.options).onSettled) == null || d.call(l, void 0, this.currentResult.error);
1728
+ var r, o, l, u;
1729
+ (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (l = (u = this.options).onSettled) == null || l.call(u, void 0, this.currentResult.error);
1968
1730
  }
1969
1731
  e.listeners && this.listeners.forEach(({
1970
- listener: u
1732
+ listener: d
1971
1733
  }) => {
1972
- u(this.currentResult);
1734
+ d(this.currentResult);
1973
1735
  }), e.cache && this.client.getQueryCache().notify({
1974
1736
  query: this.currentQuery,
1975
1737
  type: "observerResultsUpdated"
@@ -1977,42 +1739,42 @@ class zi extends Be {
1977
1739
  });
1978
1740
  }
1979
1741
  }
1980
- function Bi(n, e) {
1742
+ function Li(n, e) {
1981
1743
  return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1982
1744
  }
1983
- function dt(n, e) {
1984
- return Bi(n, e) || n.state.dataUpdatedAt > 0 && Le(n, e, e.refetchOnMount);
1745
+ function He(n, e) {
1746
+ return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
1985
1747
  }
1986
- function Le(n, e, t) {
1748
+ function Fe(n, e, t) {
1987
1749
  if (e.enabled !== !1) {
1988
1750
  const i = typeof t == "function" ? t(n) : t;
1989
- return i === "always" || i !== !1 && Qe(n, e);
1751
+ return i === "always" || i !== !1 && De(n, e);
1990
1752
  }
1991
1753
  return !1;
1992
1754
  }
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);
1755
+ function Ze(n, e, t, i) {
1756
+ return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && De(n, t);
1995
1757
  }
1996
- function Qe(n, e) {
1758
+ function De(n, e) {
1997
1759
  return n.isStaleByTime(e.staleTime);
1998
1760
  }
1999
- function Qi(n, e, t) {
2000
- return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !De(n.getCurrentResult(), e);
1761
+ function Ai(n, e, t) {
1762
+ return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
2001
1763
  }
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);
1764
+ const Pi = wt.useSyncExternalStore, Xe = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
1765
+ function _i(n, e) {
1766
+ return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Xe), window.ReactQueryClientContext) : Xe);
2005
1767
  }
2006
- const Ji = ({
1768
+ const Ui = ({
2007
1769
  context: n
2008
1770
  } = {}) => {
2009
- const e = M.useContext(Wi(n, M.useContext(Gi)));
1771
+ const e = M.useContext(_i(n, M.useContext(Vi)));
2010
1772
  if (!e)
2011
1773
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
2012
1774
  return e;
2013
- }, qt = /* @__PURE__ */ M.createContext(!1), qi = () => M.useContext(qt);
2014
- qt.Provider;
2015
- function Hi() {
1775
+ }, At = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(At);
1776
+ At.Provider;
1777
+ function $i() {
2016
1778
  let n = !1;
2017
1779
  return {
2018
1780
  clearReset: () => {
@@ -2024,47 +1786,47 @@ function Hi() {
2024
1786
  isReset: () => n
2025
1787
  };
2026
1788
  }
2027
- const Zi = /* @__PURE__ */ M.createContext(Hi()), Xi = () => M.useContext(Zi);
2028
- function Yi(n, e) {
1789
+ const ji = /* @__PURE__ */ M.createContext($i()), zi = () => M.useContext(ji);
1790
+ function Bi(n, e) {
2029
1791
  return typeof n == "function" ? n(...e) : !!n;
2030
1792
  }
2031
- const ea = (n, e) => {
1793
+ const Qi = (n, e) => {
2032
1794
  (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
2033
- }, ta = (n) => {
1795
+ }, Gi = (n) => {
2034
1796
  M.useEffect(() => {
2035
1797
  n.clearReset();
2036
1798
  }, [n]);
2037
- }, na = ({
1799
+ }, Ki = ({
2038
1800
  result: n,
2039
1801
  errorResetBoundary: e,
2040
1802
  useErrorBoundary: t,
2041
1803
  query: i
2042
- }) => n.isError && !e.isReset() && !n.isFetching && Yi(t, [n.error, i]), ia = (n) => {
1804
+ }) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
2043
1805
  n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
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(({
1806
+ }, Ji = (n, e) => n.isLoading && n.isFetching && !e, qi = (n, e, t) => (n == null ? void 0 : n.suspense) && Ji(e, t), Hi = (n, e, t) => e.fetchOptimistic(n).then(({
2045
1807
  data: i
2046
1808
  }) => {
2047
1809
  n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
2048
1810
  }).catch((i) => {
2049
1811
  t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
2050
1812
  });
2051
- function oa(n, e) {
2052
- const t = Ji({
1813
+ function Zi(n, e) {
1814
+ const t = Ui({
2053
1815
  context: n.context
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);
1816
+ }), i = Mi(), a = zi(), s = t.defaultQueryOptions(n);
1817
+ s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)), Wi(s), Qi(s, a), Gi(a);
2056
1818
  const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
2057
- if (Ki(M.useCallback((d) => {
2058
- const l = i ? () => {
2059
- } : r.subscribe(te.batchCalls(d));
2060
- return r.updateResult(), l;
1819
+ if (Pi(M.useCallback((l) => {
1820
+ const u = i ? () => {
1821
+ } : r.subscribe(X.batchCalls(l));
1822
+ return r.updateResult(), u;
2061
1823
  }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
2062
1824
  r.setOptions(s, {
2063
1825
  listeners: !1
2064
1826
  });
2065
- }, [s, r]), sa(s, o, i))
2066
- throw ra(s, r, a);
2067
- if (na({
1827
+ }, [s, r]), qi(s, o, i))
1828
+ throw Hi(s, r, a);
1829
+ if (Ki({
2068
1830
  result: o,
2069
1831
  errorResetBoundary: a,
2070
1832
  useErrorBoundary: s.useErrorBoundary,
@@ -2073,30 +1835,33 @@ function oa(n, e) {
2073
1835
  throw o.error;
2074
1836
  return s.notifyOnChangeProps ? o : r.trackResult(o);
2075
1837
  }
2076
- function la(n, e, t) {
2077
- const i = Di(n, e, t);
2078
- return oa(i, zi);
1838
+ function Xi(n, e, t) {
1839
+ const i = Ni(n, e, t);
1840
+ return Zi(i, Ii);
2079
1841
  }
2080
- const da = () => ["account"], Zs = () => {
2081
- const { accountName: n } = Zn(je.state), [e, t] = yn(Ve), i = la(da(), () => Wt.get(n), {
1842
+ const Yi = () => ["account"], js = () => {
1843
+ const n = qn((a) => {
1844
+ var s;
1845
+ return (s = a.config) == null ? void 0 : s.account;
1846
+ }), [e, t] = ln(Ee), i = Xi(Yi(), () => It.get(n), {
2082
1847
  enabled: !!n && !e,
2083
1848
  refetchOnWindowFocus: !1,
2084
1849
  refetchOnMount: !1
2085
1850
  });
2086
- return Se(() => {
1851
+ return ht(() => {
2087
1852
  const a = i.data;
2088
1853
  !i.isSuccess || !a || t(a);
2089
1854
  }, [i.status]), {
2090
1855
  findQuery: i,
2091
1856
  account: e
2092
1857
  };
2093
- }, ua = Dt();
2094
- async function ca(n) {
2095
- const e = await Wt.get(n);
2096
- return ua.set(Ve, e), e;
1858
+ }, ea = gt();
1859
+ async function ta(n) {
1860
+ const e = await It.get(n);
1861
+ return ea.set(Ee, e), e;
2097
1862
  }
2098
- var ma = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ma || {});
2099
- const Xs = {
1863
+ var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
1864
+ const zs = {
2100
1865
  ALL: "*",
2101
1866
  CORE: "core:**",
2102
1867
  LIVE_STREAMING_EVENT: "event:**",
@@ -2108,77 +1873,77 @@ const Xs = {
2108
1873
  SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
2109
1874
  UI: "ui:**",
2110
1875
  UTILS: "utils:**"
2111
- }, Ys = {
1876
+ }, Bs = {
2112
1877
  EVENT_STATUS_CHANGED: "event:statusChanged"
2113
1878
  };
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.FAST_STORE = "faststore", n))(ha || {});
2115
- function ga(n) {
1879
+ var ia = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ia || {}), aa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(aa || {}), sa = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(sa || {});
1880
+ function ra(n) {
2116
1881
  const e = Object.values(n);
2117
1882
  return Object.assign({}, ...e);
2118
1883
  }
2119
- function ka(n) {
1884
+ function oa(n) {
2120
1885
  return Object.entries(n).reduce(
2121
1886
  (e, [t, i]) => {
2122
- const a = ga(i);
1887
+ const a = ra(i);
2123
1888
  return { ...e, [t]: a };
2124
1889
  },
2125
1890
  {}
2126
1891
  );
2127
1892
  }
2128
- function va(n, e) {
2129
- const t = ka(e);
1893
+ function la(n, e) {
1894
+ const t = oa(e);
2130
1895
  Object.entries(t).forEach(([i, a]) => {
2131
1896
  n.addResourceBundle(i, "translation", a, !0);
2132
1897
  });
2133
1898
  }
2134
- function Sa(n, e) {
1899
+ function da(n, e) {
2135
1900
  if (!(n instanceof e))
2136
1901
  throw new TypeError("Cannot call a class as a function");
2137
1902
  }
2138
- function ie(n) {
1903
+ function Y(n) {
2139
1904
  "@babel/helpers - typeof";
2140
- return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1905
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2141
1906
  return typeof e;
2142
1907
  } : function(e) {
2143
1908
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2144
- }, ie(n);
1909
+ }, Y(n);
2145
1910
  }
2146
- function ya(n, e) {
2147
- if (ie(n) !== "object" || n === null)
1911
+ function ua(n, e) {
1912
+ if (Y(n) !== "object" || n === null)
2148
1913
  return n;
2149
1914
  var t = n[Symbol.toPrimitive];
2150
1915
  if (t !== void 0) {
2151
1916
  var i = t.call(n, e || "default");
2152
- if (ie(i) !== "object")
1917
+ if (Y(i) !== "object")
2153
1918
  return i;
2154
1919
  throw new TypeError("@@toPrimitive must return a primitive value.");
2155
1920
  }
2156
1921
  return (e === "string" ? String : Number)(n);
2157
1922
  }
2158
- function Na(n) {
2159
- var e = ya(n, "string");
2160
- return ie(e) === "symbol" ? e : String(e);
1923
+ function ca(n) {
1924
+ var e = ua(n, "string");
1925
+ return Y(e) === "symbol" ? e : String(e);
2161
1926
  }
2162
- function mt(n, e) {
1927
+ function Ye(n, e) {
2163
1928
  for (var t = 0; t < e.length; t++) {
2164
1929
  var i = e[t];
2165
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Na(i.key), i);
1930
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
2166
1931
  }
2167
1932
  }
2168
- function ba(n, e, t) {
2169
- return e && mt(n.prototype, e), t && mt(n, t), Object.defineProperty(n, "prototype", {
1933
+ function ma(n, e, t) {
1934
+ return e && Ye(n.prototype, e), t && Ye(n, t), Object.defineProperty(n, "prototype", {
2170
1935
  writable: !1
2171
1936
  }), n;
2172
1937
  }
2173
- var Ht = [], Fa = Ht.forEach, wa = Ht.slice;
2174
- function Ca(n) {
2175
- return Fa.call(wa.call(arguments, 1), function(e) {
1938
+ var Pt = [], fa = Pt.forEach, pa = Pt.slice;
1939
+ function ha(n) {
1940
+ return fa.call(pa.call(arguments, 1), function(e) {
2176
1941
  if (e)
2177
1942
  for (var t in e)
2178
1943
  n[t] === void 0 && (n[t] = e[t]);
2179
1944
  }), n;
2180
1945
  }
2181
- var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
1946
+ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2182
1947
  var a = i || {};
2183
1948
  a.path = a.path || "/";
2184
1949
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -2189,12 +1954,12 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2189
1954
  r += "; Max-Age=".concat(Math.floor(o));
2190
1955
  }
2191
1956
  if (a.domain) {
2192
- if (!ft.test(a.domain))
1957
+ if (!et.test(a.domain))
2193
1958
  throw new TypeError("option domain is invalid");
2194
1959
  r += "; Domain=".concat(a.domain);
2195
1960
  }
2196
1961
  if (a.path) {
2197
- if (!ft.test(a.path))
1962
+ if (!et.test(a.path))
2198
1963
  throw new TypeError("option path is invalid");
2199
1964
  r += "; Path=".concat(a.path);
2200
1965
  }
@@ -2204,8 +1969,8 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2204
1969
  r += "; Expires=".concat(a.expires.toUTCString());
2205
1970
  }
2206
1971
  if (a.httpOnly && (r += "; HttpOnly"), a.secure && (r += "; Secure"), a.sameSite) {
2207
- var d = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
2208
- switch (d) {
1972
+ var l = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
1973
+ switch (l) {
2209
1974
  case !0:
2210
1975
  r += "; SameSite=Strict";
2211
1976
  break;
@@ -2223,13 +1988,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2223
1988
  }
2224
1989
  }
2225
1990
  return r;
2226
- }, pt = {
1991
+ }, tt = {
2227
1992
  create: function(e, t, i, a) {
2228
1993
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2229
1994
  path: "/",
2230
1995
  sameSite: "strict"
2231
1996
  };
2232
- i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = Ea(e, encodeURIComponent(t), s);
1997
+ 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);
2233
1998
  },
2234
1999
  read: function(e) {
2235
2000
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -2243,20 +2008,20 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2243
2008
  remove: function(e) {
2244
2009
  this.create(e, "", -1);
2245
2010
  }
2246
- }, Oa = {
2011
+ }, ka = {
2247
2012
  name: "cookie",
2248
2013
  lookup: function(e) {
2249
2014
  var t;
2250
2015
  if (e.lookupCookie && typeof document != "undefined") {
2251
- var i = pt.read(e.lookupCookie);
2016
+ var i = tt.read(e.lookupCookie);
2252
2017
  i && (t = i);
2253
2018
  }
2254
2019
  return t;
2255
2020
  },
2256
2021
  cacheUserLanguage: function(e, t) {
2257
- t.lookupCookie && typeof document != "undefined" && pt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2022
+ t.lookupCookie && typeof document != "undefined" && tt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2258
2023
  }
2259
- }, Ra = {
2024
+ }, va = {
2260
2025
  name: "querystring",
2261
2026
  lookup: function(e) {
2262
2027
  var t;
@@ -2266,62 +2031,62 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2266
2031
  for (var a = i.substring(1), s = a.split("&"), r = 0; r < s.length; r++) {
2267
2032
  var o = s[r].indexOf("=");
2268
2033
  if (o > 0) {
2269
- var d = s[r].substring(0, o);
2270
- d === e.lookupQuerystring && (t = s[r].substring(o + 1));
2034
+ var l = s[r].substring(0, o);
2035
+ l === e.lookupQuerystring && (t = s[r].substring(o + 1));
2271
2036
  }
2272
2037
  }
2273
2038
  }
2274
2039
  return t;
2275
2040
  }
2276
- }, H = null, ht = function() {
2277
- if (H !== null)
2278
- return H;
2041
+ }, J = null, nt = function() {
2042
+ if (J !== null)
2043
+ return J;
2279
2044
  try {
2280
- H = window !== "undefined" && window.localStorage !== null;
2045
+ J = window !== "undefined" && window.localStorage !== null;
2281
2046
  var e = "i18next.translate.boo";
2282
2047
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2283
2048
  } catch {
2284
- H = !1;
2049
+ J = !1;
2285
2050
  }
2286
- return H;
2287
- }, xa = {
2051
+ return J;
2052
+ }, Sa = {
2288
2053
  name: "localStorage",
2289
2054
  lookup: function(e) {
2290
2055
  var t;
2291
- if (e.lookupLocalStorage && ht()) {
2056
+ if (e.lookupLocalStorage && nt()) {
2292
2057
  var i = window.localStorage.getItem(e.lookupLocalStorage);
2293
2058
  i && (t = i);
2294
2059
  }
2295
2060
  return t;
2296
2061
  },
2297
2062
  cacheUserLanguage: function(e, t) {
2298
- t.lookupLocalStorage && ht() && window.localStorage.setItem(t.lookupLocalStorage, e);
2063
+ t.lookupLocalStorage && nt() && window.localStorage.setItem(t.lookupLocalStorage, e);
2299
2064
  }
2300
- }, Z = null, gt = function() {
2301
- if (Z !== null)
2302
- return Z;
2065
+ }, q = null, it = function() {
2066
+ if (q !== null)
2067
+ return q;
2303
2068
  try {
2304
- Z = window !== "undefined" && window.sessionStorage !== null;
2069
+ q = window !== "undefined" && window.sessionStorage !== null;
2305
2070
  var e = "i18next.translate.boo";
2306
2071
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2307
2072
  } catch {
2308
- Z = !1;
2073
+ q = !1;
2309
2074
  }
2310
- return Z;
2311
- }, Ta = {
2075
+ return q;
2076
+ }, ya = {
2312
2077
  name: "sessionStorage",
2313
2078
  lookup: function(e) {
2314
2079
  var t;
2315
- if (e.lookupSessionStorage && gt()) {
2080
+ if (e.lookupSessionStorage && it()) {
2316
2081
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
2317
2082
  i && (t = i);
2318
2083
  }
2319
2084
  return t;
2320
2085
  },
2321
2086
  cacheUserLanguage: function(e, t) {
2322
- t.lookupSessionStorage && gt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2087
+ t.lookupSessionStorage && it() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2323
2088
  }
2324
- }, Da = {
2089
+ }, Na = {
2325
2090
  name: "navigator",
2326
2091
  lookup: function(e) {
2327
2092
  var t = [];
@@ -2333,13 +2098,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2333
2098
  }
2334
2099
  return t.length > 0 ? t : void 0;
2335
2100
  }
2336
- }, La = {
2101
+ }, ba = {
2337
2102
  name: "htmlTag",
2338
2103
  lookup: function(e) {
2339
2104
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
2340
2105
  return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
2341
2106
  }
2342
- }, Ia = {
2107
+ }, Fa = {
2343
2108
  name: "path",
2344
2109
  lookup: function(e) {
2345
2110
  var t;
@@ -2355,7 +2120,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2355
2120
  }
2356
2121
  return t;
2357
2122
  }
2358
- }, Aa = {
2123
+ }, wa = {
2359
2124
  name: "subdomain",
2360
2125
  lookup: function(e) {
2361
2126
  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);
@@ -2363,7 +2128,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2363
2128
  return i[t];
2364
2129
  }
2365
2130
  };
2366
- function Pa() {
2131
+ function Ca() {
2367
2132
  return {
2368
2133
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2369
2134
  lookupQuerystring: "lng",
@@ -2380,20 +2145,20 @@ function Pa() {
2380
2145
  }
2381
2146
  };
2382
2147
  }
2383
- var Zt = /* @__PURE__ */ function() {
2148
+ var Vt = /* @__PURE__ */ function() {
2384
2149
  function n(e) {
2385
2150
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2386
- Sa(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2151
+ da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2387
2152
  }
2388
- return ba(n, [{
2153
+ return ma(n, [{
2389
2154
  key: "init",
2390
2155
  value: function(t) {
2391
2156
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2392
2157
  this.services = t || {
2393
2158
  languageUtils: {}
2394
- }, this.options = Ca(i, this.options || {}, Pa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2159
+ }, this.options = ha(i, this.options || {}, Ca()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2395
2160
  return s.replace("-", "_");
2396
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Oa), this.addDetector(Ra), this.addDetector(xa), this.addDetector(Ta), this.addDetector(Da), this.addDetector(La), this.addDetector(Ia), this.addDetector(Aa);
2161
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa), this.addDetector(wa);
2397
2162
  }
2398
2163
  }, {
2399
2164
  key: "addDetector",
@@ -2425,9 +2190,9 @@ var Zt = /* @__PURE__ */ function() {
2425
2190
  }
2426
2191
  }]), n;
2427
2192
  }();
2428
- Zt.type = "languageDetector";
2429
- function Va(n, e) {
2430
- n.use(e).use(Zt).init({
2193
+ Vt.type = "languageDetector";
2194
+ function Ea(n, e) {
2195
+ n.use(e).use(Vt).init({
2431
2196
  resources: {},
2432
2197
  fallbackLng: "en",
2433
2198
  debug: !1,
@@ -2466,7 +2231,7 @@ function Va(n, e) {
2466
2231
  }
2467
2232
  });
2468
2233
  }
2469
- const _a = {
2234
+ const xa = {
2470
2235
  type: "logger",
2471
2236
  log(n) {
2472
2237
  this.output("log", n);
@@ -2481,14 +2246,14 @@ const _a = {
2481
2246
  console && console[n] && console[n].apply(console, e);
2482
2247
  }
2483
2248
  };
2484
- class pe {
2249
+ class le {
2485
2250
  constructor(e) {
2486
2251
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2487
2252
  this.init(e, t);
2488
2253
  }
2489
2254
  init(e) {
2490
2255
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2491
- this.prefix = t.prefix || "i18next:", this.logger = e || _a, this.options = t, this.debug = t.debug;
2256
+ this.prefix = t.prefix || "i18next:", this.logger = e || xa, this.options = t, this.debug = t.debug;
2492
2257
  }
2493
2258
  log() {
2494
2259
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2514,17 +2279,17 @@ class pe {
2514
2279
  return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
2515
2280
  }
2516
2281
  create(e) {
2517
- return new pe(this.logger, {
2282
+ return new le(this.logger, {
2518
2283
  prefix: `${this.prefix}:${e}:`,
2519
2284
  ...this.options
2520
2285
  });
2521
2286
  }
2522
2287
  clone(e) {
2523
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new pe(this.logger, e);
2288
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new le(this.logger, e);
2524
2289
  }
2525
2290
  }
2526
- var j = new pe();
2527
- class Ne {
2291
+ var $ = new le();
2292
+ class ge {
2528
2293
  constructor() {
2529
2294
  this.observers = {};
2530
2295
  }
@@ -2552,22 +2317,22 @@ class Ne {
2552
2317
  });
2553
2318
  }
2554
2319
  }
2555
- function X() {
2320
+ function H() {
2556
2321
  let n, e;
2557
2322
  const t = new Promise((i, a) => {
2558
2323
  n = i, e = a;
2559
2324
  });
2560
2325
  return t.resolve = n, t.reject = e, t;
2561
2326
  }
2562
- function kt(n) {
2327
+ function at(n) {
2563
2328
  return n == null ? "" : "" + n;
2564
2329
  }
2565
- function Ua(n, e, t) {
2330
+ function Oa(n, e, t) {
2566
2331
  n.forEach((i) => {
2567
2332
  e[i] && (t[i] = e[i]);
2568
2333
  });
2569
2334
  }
2570
- function Ke(n, e, t) {
2335
+ function Ie(n, e, t) {
2571
2336
  function i(r) {
2572
2337
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2573
2338
  }
@@ -2586,41 +2351,41 @@ function Ke(n, e, t) {
2586
2351
  k: i(s.shift())
2587
2352
  };
2588
2353
  }
2589
- function vt(n, e, t) {
2354
+ function st(n, e, t) {
2590
2355
  const {
2591
2356
  obj: i,
2592
2357
  k: a
2593
- } = Ke(n, e, Object);
2358
+ } = Ie(n, e, Object);
2594
2359
  i[a] = t;
2595
2360
  }
2596
- function Ma(n, e, t, i) {
2361
+ function Ra(n, e, t, i) {
2597
2362
  const {
2598
2363
  obj: a,
2599
2364
  k: s
2600
- } = Ke(n, e, Object);
2365
+ } = Ie(n, e, Object);
2601
2366
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2602
2367
  }
2603
- function he(n, e) {
2368
+ function de(n, e) {
2604
2369
  const {
2605
2370
  obj: t,
2606
2371
  k: i
2607
- } = Ke(n, e);
2372
+ } = Ie(n, e);
2608
2373
  if (t)
2609
2374
  return t[i];
2610
2375
  }
2611
- function ja(n, e, t) {
2612
- const i = he(n, t);
2613
- return i !== void 0 ? i : he(e, t);
2376
+ function Ta(n, e, t) {
2377
+ const i = de(n, t);
2378
+ return i !== void 0 ? i : de(e, t);
2614
2379
  }
2615
- function Xt(n, e, t) {
2380
+ function _t(n, e, t) {
2616
2381
  for (const i in e)
2617
- 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]) : Xt(n[i], e[i], t) : n[i] = e[i]);
2382
+ 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]) : _t(n[i], e[i], t) : n[i] = e[i]);
2618
2383
  return n;
2619
2384
  }
2620
- function Q(n) {
2385
+ function B(n) {
2621
2386
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2622
2387
  }
2623
- var $a = {
2388
+ var Da = {
2624
2389
  "&": "&amp;",
2625
2390
  "<": "&lt;",
2626
2391
  ">": "&gt;",
@@ -2628,13 +2393,13 @@ var $a = {
2628
2393
  "'": "&#39;",
2629
2394
  "/": "&#x2F;"
2630
2395
  };
2631
- function za(n) {
2632
- return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => $a[e]) : n;
2396
+ function Ia(n) {
2397
+ return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Da[e]) : n;
2633
2398
  }
2634
- const Ba = [" ", ",", "?", "!", ";"];
2635
- function Qa(n, e, t) {
2399
+ const La = [" ", ",", "?", "!", ";"];
2400
+ function Aa(n, e, t) {
2636
2401
  e = e || "", t = t || "";
2637
- const i = Ba.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2402
+ const i = La.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2638
2403
  if (i.length === 0)
2639
2404
  return !0;
2640
2405
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2645,7 +2410,7 @@ function Qa(n, e, t) {
2645
2410
  }
2646
2411
  return s;
2647
2412
  }
2648
- function ge(n, e) {
2413
+ function ue(n, e) {
2649
2414
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
2650
2415
  if (!n)
2651
2416
  return;
@@ -2657,30 +2422,30 @@ function ge(n, e) {
2657
2422
  if (!a || typeof a[i[s]] == "string" && s + 1 < i.length)
2658
2423
  return;
2659
2424
  if (a[i[s]] === void 0) {
2660
- let r = 2, o = i.slice(s, s + r).join(t), d = a[o];
2661
- for (; d === void 0 && i.length > s + r; )
2662
- r++, o = i.slice(s, s + r).join(t), d = a[o];
2663
- if (d === void 0)
2425
+ let r = 2, o = i.slice(s, s + r).join(t), l = a[o];
2426
+ for (; l === void 0 && i.length > s + r; )
2427
+ r++, o = i.slice(s, s + r).join(t), l = a[o];
2428
+ if (l === void 0)
2664
2429
  return;
2665
- if (d === null)
2430
+ if (l === null)
2666
2431
  return null;
2667
2432
  if (e.endsWith(o)) {
2668
- if (typeof d == "string")
2669
- return d;
2670
- if (o && typeof d[o] == "string")
2671
- return d[o];
2433
+ if (typeof l == "string")
2434
+ return l;
2435
+ if (o && typeof l[o] == "string")
2436
+ return l[o];
2672
2437
  }
2673
- const l = i.slice(s + r).join(t);
2674
- return l ? ge(d, l, t) : void 0;
2438
+ const u = i.slice(s + r).join(t);
2439
+ return u ? ue(l, u, t) : void 0;
2675
2440
  }
2676
2441
  a = a[i[s]];
2677
2442
  }
2678
2443
  return a;
2679
2444
  }
2680
- function ke(n) {
2445
+ function ce(n) {
2681
2446
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2682
2447
  }
2683
- class St extends Ne {
2448
+ class rt extends ge {
2684
2449
  constructor(e) {
2685
2450
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2686
2451
  ns: ["translation"],
@@ -2700,8 +2465,8 @@ class St extends Ne {
2700
2465
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
2701
2466
  let o = [e, t];
2702
2467
  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("."));
2703
- const d = he(this.data, o);
2704
- return d || !r || typeof i != "string" ? d : ge(this.data && this.data[e] && this.data[e][t], i, s);
2468
+ const l = de(this.data, o);
2469
+ return l || !r || typeof i != "string" ? l : ue(this.data && this.data[e] && this.data[e][t], i, s);
2705
2470
  }
2706
2471
  addResource(e, t, i, a) {
2707
2472
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -2709,7 +2474,7 @@ class St extends Ne {
2709
2474
  };
2710
2475
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2711
2476
  let o = [e, t];
2712
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), vt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2477
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), st(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2713
2478
  }
2714
2479
  addResources(e, t, i) {
2715
2480
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2726,11 +2491,11 @@ class St extends Ne {
2726
2491
  silent: !1
2727
2492
  }, o = [e, t];
2728
2493
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2729
- let d = he(this.data, o) || {};
2730
- a ? Xt(d, i, s) : d = {
2731
- ...d,
2494
+ let l = de(this.data, o) || {};
2495
+ a ? _t(l, i, s) : l = {
2496
+ ...l,
2732
2497
  ...i
2733
- }, vt(this.data, o, d), r.silent || this.emit("added", e, t, i);
2498
+ }, st(this.data, o, l), r.silent || this.emit("added", e, t, i);
2734
2499
  }
2735
2500
  removeResourceBundle(e, t) {
2736
2501
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2754,7 +2519,7 @@ class St extends Ne {
2754
2519
  return this.data;
2755
2520
  }
2756
2521
  }
2757
- var Yt = {
2522
+ var Ut = {
2758
2523
  processors: {},
2759
2524
  addPostProcessor(n) {
2760
2525
  this.processors[n.name] = n;
@@ -2765,11 +2530,11 @@ var Yt = {
2765
2530
  }), e;
2766
2531
  }
2767
2532
  };
2768
- const yt = {};
2769
- class ve extends Ne {
2533
+ const ot = {};
2534
+ class me extends ge {
2770
2535
  constructor(e) {
2771
2536
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2772
- super(), Ua(["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");
2537
+ super(), Oa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
2773
2538
  }
2774
2539
  changeLanguage(e) {
2775
2540
  e && (this.language = e);
@@ -2788,16 +2553,16 @@ class ve extends Ne {
2788
2553
  i === void 0 && (i = ":");
2789
2554
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2790
2555
  let s = t.ns || this.options.defaultNS || [];
2791
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Qa(e, i, a);
2556
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Aa(e, i, a);
2792
2557
  if (r && !o) {
2793
- const d = e.match(this.interpolator.nestingRegexp);
2794
- if (d && d.length > 0)
2558
+ const l = e.match(this.interpolator.nestingRegexp);
2559
+ if (l && l.length > 0)
2795
2560
  return {
2796
2561
  key: e,
2797
2562
  namespaces: s
2798
2563
  };
2799
- const l = e.split(i);
2800
- (i !== a || i === a && this.options.ns.indexOf(l[0]) > -1) && (s = l.shift()), e = l.join(a);
2564
+ const u = e.split(i);
2565
+ (i !== a || i === a && this.options.ns.indexOf(u[0]) > -1) && (s = u.shift()), e = u.join(a);
2801
2566
  }
2802
2567
  return typeof s == "string" && (s = [s]), {
2803
2568
  key: e,
@@ -2813,90 +2578,90 @@ class ve extends Ne {
2813
2578
  const a = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
2814
2579
  key: r,
2815
2580
  namespaces: o
2816
- } = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], l = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2817
- if (l && l.toLowerCase() === "cimode") {
2818
- if (u) {
2819
- const E = t.nsSeparator || this.options.nsSeparator;
2581
+ } = this.extractFromKey(e[e.length - 1], t), l = o[o.length - 1], u = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2582
+ if (u && u.toLowerCase() === "cimode") {
2583
+ if (d) {
2584
+ const w = t.nsSeparator || this.options.nsSeparator;
2820
2585
  return a ? {
2821
- res: `${d}${E}${r}`,
2586
+ res: `${l}${w}${r}`,
2822
2587
  usedKey: r,
2823
2588
  exactUsedKey: r,
2824
- usedLng: l,
2825
- usedNS: d,
2589
+ usedLng: u,
2590
+ usedNS: l,
2826
2591
  usedParams: this.getUsedParamsDetails(t)
2827
- } : `${d}${E}${r}`;
2592
+ } : `${l}${w}${r}`;
2828
2593
  }
2829
2594
  return a ? {
2830
2595
  res: r,
2831
2596
  usedKey: r,
2832
2597
  exactUsedKey: r,
2833
- usedLng: l,
2834
- usedNS: d,
2598
+ usedLng: u,
2599
+ usedNS: l,
2835
2600
  usedParams: this.getUsedParamsDetails(t)
2836
2601
  } : r;
2837
2602
  }
2838
- const p = this.resolve(e, t);
2839
- let c = p && p.res;
2840
- 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;
2841
- if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && y.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
2603
+ const f = this.resolve(e, t);
2604
+ let c = f && f.res;
2605
+ const S = f && f.usedKey || r, y = f && f.exactUsedKey || r, k = Object.prototype.toString.apply(c), N = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject;
2606
+ if (F && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && N.indexOf(k) < 0 && !(typeof O == "string" && k === "[object Array]")) {
2842
2607
  if (!t.returnObjects && !this.options.returnObjects) {
2843
2608
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2844
- const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
2609
+ const w = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, c, {
2845
2610
  ...t,
2846
2611
  ns: o
2847
2612
  }) : `key '${r} (${this.language})' returned an object instead of string.`;
2848
- return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
2613
+ return a ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
2849
2614
  }
2850
2615
  if (s) {
2851
- const E = k === "[object Array]", I = E ? [] : {}, P = E ? S : v;
2616
+ const w = k === "[object Array]", I = w ? [] : {}, L = w ? y : S;
2852
2617
  for (const A in c)
2853
2618
  if (Object.prototype.hasOwnProperty.call(c, A)) {
2854
- const f = `${P}${s}${A}`;
2855
- I[A] = this.translate(f, {
2619
+ const m = `${L}${s}${A}`;
2620
+ I[A] = this.translate(m, {
2856
2621
  ...t,
2857
2622
  joinArrays: !1,
2858
2623
  ns: o
2859
- }), I[A] === f && (I[A] = c[A]);
2624
+ }), I[A] === m && (I[A] = c[A]);
2860
2625
  }
2861
2626
  c = I;
2862
2627
  }
2863
- } else if (w && typeof F == "string" && k === "[object Array]")
2864
- c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
2628
+ } else if (F && typeof O == "string" && k === "[object Array]")
2629
+ c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
2865
2630
  else {
2866
- let E = !1, I = !1;
2867
- 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, {
2631
+ let w = !1, I = !1;
2632
+ const L = t.count !== void 0 && typeof t.count != "string", A = me.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
2868
2633
  ordinal: !1
2869
- }) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
2870
- !this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (I = !0, c = r);
2871
- const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && g !== c && this.options.updateMissing;
2872
- if (I || E || C) {
2873
- if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
2874
- const R = this.resolve(r, {
2634
+ }) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
2635
+ !this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (I = !0, c = r);
2636
+ const b = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && h !== c && this.options.updateMissing;
2637
+ if (I || w || C) {
2638
+ if (this.logger.log(C ? "updateKey" : "missingKey", u, l, r, C ? h : c), s) {
2639
+ const x = this.resolve(r, {
2875
2640
  ...t,
2876
2641
  keySeparator: !1
2877
2642
  });
2878
- 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.");
2643
+ x && x.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.");
2879
2644
  }
2880
- let b = [];
2881
- const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2882
- if (this.options.saveMissingTo === "fallback" && O && O[0])
2883
- for (let R = 0; R < O.length; R++)
2884
- b.push(O[R]);
2645
+ let v = [];
2646
+ const E = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2647
+ if (this.options.saveMissingTo === "fallback" && E && E[0])
2648
+ for (let x = 0; x < E.length; x++)
2649
+ v.push(E[x]);
2885
2650
  else
2886
- this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
2887
- const T = (R, D, V) => {
2888
- const se = A && V !== c ? V : N;
2889
- 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);
2651
+ this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
2652
+ const P = (x, T, V) => {
2653
+ const te = A && V !== c ? V : b;
2654
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T, te, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(x, l, T, te, C, t), this.emit("missingKey", x, l, T, c);
2890
2655
  };
2891
- this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
2892
- this.pluralResolver.getSuffixes(R, t).forEach((D) => {
2893
- T([R], r + D, t[`defaultValue${D}`] || g);
2656
+ this.options.saveMissing && (this.options.saveMissingPlurals && L ? v.forEach((x) => {
2657
+ this.pluralResolver.getSuffixes(x, t).forEach((T) => {
2658
+ P([x], r + T, t[`defaultValue${T}`] || h);
2894
2659
  });
2895
- }) : T(b, r, g));
2660
+ }) : P(v, r, h));
2896
2661
  }
2897
- 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));
2662
+ c = this.extendTranslation(c, e, t, f, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${l}:${r}`), (I || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${r}` : r, w ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2898
2663
  }
2899
- return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
2664
+ return a ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
2900
2665
  }
2901
2666
  extendTranslation(e, t, i, a, s) {
2902
2667
  var r = this;
@@ -2915,28 +2680,28 @@ class ve extends Ne {
2915
2680
  ...i.interpolation
2916
2681
  }
2917
2682
  });
2918
- const l = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2919
- let u;
2920
- if (l) {
2683
+ const u = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2684
+ let d;
2685
+ if (u) {
2921
2686
  const c = e.match(this.interpolator.nestingRegexp);
2922
- u = c && c.length;
2687
+ d = c && c.length;
2923
2688
  }
2924
- let p = i.replace && typeof i.replace != "string" ? i.replace : i;
2925
- if (this.options.interpolation.defaultVariables && (p = {
2689
+ let f = i.replace && typeof i.replace != "string" ? i.replace : i;
2690
+ if (this.options.interpolation.defaultVariables && (f = {
2926
2691
  ...this.options.interpolation.defaultVariables,
2927
- ...p
2928
- }), e = this.interpolator.interpolate(e, p, i.lng || this.language, i), l) {
2929
- const c = e.match(this.interpolator.nestingRegexp), v = c && c.length;
2930
- u < v && (i.nest = !1);
2692
+ ...f
2693
+ }), e = this.interpolator.interpolate(e, f, i.lng || this.language, i), u) {
2694
+ const c = e.match(this.interpolator.nestingRegexp), S = c && c.length;
2695
+ d < S && (i.nest = !1);
2931
2696
  }
2932
2697
  !i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
2933
- for (var c = arguments.length, v = new Array(c), S = 0; S < c; S++)
2934
- v[S] = arguments[S];
2935
- 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);
2698
+ for (var c = arguments.length, S = new Array(c), y = 0; y < c; y++)
2699
+ S[y] = arguments[y];
2700
+ return s && s[0] === S[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${t[0]}`), null) : r.translate(...S, t);
2936
2701
  }, i)), i.interpolation && this.interpolator.reset();
2937
2702
  }
2938
- const o = i.postProcess || this.options.postProcess, d = typeof o == "string" ? [o] : o;
2939
- return e != null && d && d.length && i.applyPostProcessor !== !1 && (e = Yt.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
2703
+ const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
2704
+ return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Ut.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2940
2705
  i18nResolved: {
2941
2706
  ...a,
2942
2707
  usedParams: this.getUsedParamsDetails(i)
@@ -2946,34 +2711,34 @@ class ve extends Ne {
2946
2711
  }
2947
2712
  resolve(e) {
2948
2713
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, a, s, r, o;
2949
- return typeof e == "string" && (e = [e]), e.forEach((d) => {
2714
+ return typeof e == "string" && (e = [e]), e.forEach((l) => {
2950
2715
  if (this.isValidLookup(i))
2951
2716
  return;
2952
- const l = this.extractFromKey(d, t), u = l.key;
2953
- a = u;
2954
- let p = l.namespaces;
2955
- this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
2956
- 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);
2957
- p.forEach((y) => {
2958
- this.isValidLookup(i) || (o = y, !yt[`${k[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (yt[`${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) => {
2717
+ const u = this.extractFromKey(l, t), d = u.key;
2718
+ a = d;
2719
+ let f = u.namespaces;
2720
+ this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2721
+ const c = t.count !== void 0 && typeof t.count != "string", S = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = 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);
2722
+ f.forEach((N) => {
2723
+ this.isValidLookup(i) || (o = N, !ot[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ot[`${k[0]}-${N}`] = !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((O) => {
2959
2724
  if (this.isValidLookup(i))
2960
2725
  return;
2961
- r = F;
2962
- const w = [u];
2726
+ r = O;
2727
+ const F = [d];
2963
2728
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
2964
- this.i18nFormat.addLookupKeys(w, u, F, y, t);
2729
+ this.i18nFormat.addLookupKeys(F, d, O, N, t);
2965
2730
  else {
2966
- let E;
2967
- c && (E = this.pluralResolver.getSuffix(F, t.count, t));
2968
- const I = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2969
- 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) {
2970
- const A = `${u}${this.options.contextSeparator}${t.context}`;
2971
- 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));
2731
+ let w;
2732
+ c && (w = this.pluralResolver.getSuffix(O, t.count, t));
2733
+ const I = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2734
+ if (c && (F.push(d + w), t.ordinal && w.indexOf(L) === 0 && F.push(d + w.replace(L, this.options.pluralSeparator)), S && F.push(d + I)), y) {
2735
+ const A = `${d}${this.options.contextSeparator}${t.context}`;
2736
+ F.push(A), c && (F.push(A + w), t.ordinal && w.indexOf(L) === 0 && F.push(A + w.replace(L, this.options.pluralSeparator)), S && F.push(A + I));
2972
2737
  }
2973
2738
  }
2974
- let L;
2975
- for (; L = w.pop(); )
2976
- this.isValidLookup(i) || (s = L, i = this.getResource(F, y, L, t));
2739
+ let D;
2740
+ for (; D = F.pop(); )
2741
+ this.isValidLookup(i) || (s = D, i = this.getResource(O, N, D, t));
2977
2742
  }));
2978
2743
  });
2979
2744
  }), {
@@ -3015,21 +2780,21 @@ class ve extends Ne {
3015
2780
  return !1;
3016
2781
  }
3017
2782
  }
3018
- function Oe(n) {
2783
+ function Ne(n) {
3019
2784
  return n.charAt(0).toUpperCase() + n.slice(1);
3020
2785
  }
3021
- class Nt {
2786
+ class lt {
3022
2787
  constructor(e) {
3023
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
2788
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
3024
2789
  }
3025
2790
  getScriptPartFromCode(e) {
3026
- if (e = ke(e), !e || e.indexOf("-") < 0)
2791
+ if (e = ce(e), !e || e.indexOf("-") < 0)
3027
2792
  return null;
3028
2793
  const t = e.split("-");
3029
2794
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3030
2795
  }
3031
2796
  getLanguagePartFromCode(e) {
3032
- if (e = ke(e), !e || e.indexOf("-") < 0)
2797
+ if (e = ce(e), !e || e.indexOf("-") < 0)
3033
2798
  return e;
3034
2799
  const t = e.split("-");
3035
2800
  return this.formatLanguageCode(t[0]);
@@ -3038,7 +2803,7 @@ class Nt {
3038
2803
  if (typeof e == "string" && e.indexOf("-") > -1) {
3039
2804
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
3040
2805
  let i = e.split("-");
3041
- 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("-");
2806
+ 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("-");
3042
2807
  }
3043
2808
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
3044
2809
  }
@@ -3087,7 +2852,7 @@ class Nt {
3087
2852
  }), a;
3088
2853
  }
3089
2854
  }
3090
- let Ka = [{
2855
+ let Pa = [{
3091
2856
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
3092
2857
  nr: [1, 2],
3093
2858
  fc: 1
@@ -3179,7 +2944,7 @@ let Ka = [{
3179
2944
  lngs: ["he", "iw"],
3180
2945
  nr: [1, 2, 20, 21],
3181
2946
  fc: 22
3182
- }], Ga = {
2947
+ }], Va = {
3183
2948
  1: function(n) {
3184
2949
  return +(n > 1);
3185
2950
  },
@@ -3247,7 +3012,7 @@ let Ka = [{
3247
3012
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
3248
3013
  }
3249
3014
  };
3250
- const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3015
+ const _a = ["v1", "v2", "v3"], Ua = ["v4"], dt = {
3251
3016
  zero: 0,
3252
3017
  one: 1,
3253
3018
  two: 2,
@@ -3255,21 +3020,21 @@ const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3255
3020
  many: 4,
3256
3021
  other: 5
3257
3022
  };
3258
- function qa() {
3023
+ function Ma() {
3259
3024
  const n = {};
3260
- return Ka.forEach((e) => {
3025
+ return Pa.forEach((e) => {
3261
3026
  e.lngs.forEach((t) => {
3262
3027
  n[t] = {
3263
3028
  numbers: e.nr,
3264
- plurals: Ga[e.fc]
3029
+ plurals: Va[e.fc]
3265
3030
  };
3266
3031
  });
3267
3032
  }), n;
3268
3033
  }
3269
- class Ha {
3034
+ class $a {
3270
3035
  constructor(e) {
3271
3036
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3272
- this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Ja.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 = qa();
3037
+ this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Ua.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 = Ma();
3273
3038
  }
3274
3039
  addRule(e, t) {
3275
3040
  this.rules[e] = t;
@@ -3278,7 +3043,7 @@ class Ha {
3278
3043
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3279
3044
  if (this.shouldUseIntlApi())
3280
3045
  try {
3281
- return new Intl.PluralRules(ke(e), {
3046
+ return new Intl.PluralRules(ce(e), {
3282
3047
  type: t.ordinal ? "ordinal" : "cardinal"
3283
3048
  });
3284
3049
  } catch {
@@ -3298,7 +3063,7 @@ class Ha {
3298
3063
  getSuffixes(e) {
3299
3064
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3300
3065
  const i = this.getRule(e, t);
3301
- return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => bt[a] - bt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3066
+ return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => dt[a] - dt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3302
3067
  }
3303
3068
  getSuffix(e, t) {
3304
3069
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -3313,17 +3078,17 @@ class Ha {
3313
3078
  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();
3314
3079
  }
3315
3080
  shouldUseIntlApi() {
3316
- return !Wa.includes(this.options.compatibilityJSON);
3081
+ return !_a.includes(this.options.compatibilityJSON);
3317
3082
  }
3318
3083
  }
3319
- function Ft(n, e, t) {
3320
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = ja(n, e, t);
3321
- return !s && a && typeof t == "string" && (s = ge(n, t, i), s === void 0 && (s = ge(e, t, i))), s;
3084
+ function ut(n, e, t) {
3085
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ta(n, e, t);
3086
+ return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
3322
3087
  }
3323
- class Za {
3088
+ class ja {
3324
3089
  constructor() {
3325
3090
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3326
- this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3091
+ this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3327
3092
  }
3328
3093
  init() {
3329
3094
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -3331,7 +3096,7 @@ class Za {
3331
3096
  escapeValue: !0
3332
3097
  });
3333
3098
  const t = e.interpolation;
3334
- this.escape = t.escape !== void 0 ? t.escape : za, 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();
3099
+ this.escape = t.escape !== void 0 ? t.escape : Ia, 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();
3335
3100
  }
3336
3101
  reset() {
3337
3102
  this.options && this.init(this.options);
@@ -3346,41 +3111,41 @@ class Za {
3346
3111
  }
3347
3112
  interpolate(e, t, i, a) {
3348
3113
  let s, r, o;
3349
- const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3350
- function l(S) {
3351
- return S.replace(/\$/g, "$$$$");
3352
- }
3353
- const u = (S) => {
3354
- if (S.indexOf(this.formatSeparator) < 0) {
3355
- const w = Ft(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure);
3356
- return this.alwaysFormat ? this.format(w, void 0, i, {
3114
+ const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3115
+ function u(y) {
3116
+ return y.replace(/\$/g, "$$$$");
3117
+ }
3118
+ const d = (y) => {
3119
+ if (y.indexOf(this.formatSeparator) < 0) {
3120
+ const F = ut(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3121
+ return this.alwaysFormat ? this.format(F, void 0, i, {
3357
3122
  ...a,
3358
3123
  ...t,
3359
- interpolationkey: S
3360
- }) : w;
3124
+ interpolationkey: y
3125
+ }) : F;
3361
3126
  }
3362
- const k = S.split(this.formatSeparator), y = k.shift().trim(), F = k.join(this.formatSeparator).trim();
3363
- return this.format(Ft(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
3127
+ const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
3128
+ return this.format(ut(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3364
3129
  ...a,
3365
3130
  ...t,
3366
- interpolationkey: y
3131
+ interpolationkey: N
3367
3132
  });
3368
3133
  };
3369
3134
  this.resetRegExp();
3370
- const p = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3135
+ const f = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3371
3136
  return [{
3372
3137
  regex: this.regexpUnescape,
3373
- safeValue: (S) => l(S)
3138
+ safeValue: (y) => u(y)
3374
3139
  }, {
3375
3140
  regex: this.regexp,
3376
- safeValue: (S) => this.escapeValue ? l(this.escape(S)) : l(S)
3377
- }].forEach((S) => {
3378
- for (o = 0; s = S.regex.exec(e); ) {
3141
+ safeValue: (y) => this.escapeValue ? u(this.escape(y)) : u(y)
3142
+ }].forEach((y) => {
3143
+ for (o = 0; s = y.regex.exec(e); ) {
3379
3144
  const k = s[1].trim();
3380
- if (r = u(k), r === void 0)
3381
- if (typeof p == "function") {
3382
- const F = p(e, s, a);
3383
- r = typeof F == "string" ? F : "";
3145
+ if (r = d(k), r === void 0)
3146
+ if (typeof f == "function") {
3147
+ const O = f(e, s, a);
3148
+ r = typeof O == "string" ? O : "";
3384
3149
  } else if (a && Object.prototype.hasOwnProperty.call(a, k))
3385
3150
  r = "";
3386
3151
  else if (c) {
@@ -3389,47 +3154,47 @@ class Za {
3389
3154
  } else
3390
3155
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
3391
3156
  else
3392
- typeof r != "string" && !this.useRawValueToEscape && (r = kt(r));
3393
- const y = S.safeValue(r);
3394
- 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)
3157
+ typeof r != "string" && !this.useRawValueToEscape && (r = at(r));
3158
+ const N = y.safeValue(r);
3159
+ if (e = e.replace(s[0], N), c ? (y.regex.lastIndex += r.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3395
3160
  break;
3396
3161
  }
3397
3162
  }), e;
3398
3163
  }
3399
3164
  nest(e, t) {
3400
3165
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a, s, r;
3401
- function o(d, l) {
3402
- const u = this.nestingOptionsSeparator;
3403
- if (d.indexOf(u) < 0)
3404
- return d;
3405
- const p = d.split(new RegExp(`${u}[ ]*{`));
3406
- let c = `{${p[1]}`;
3407
- d = p[0], c = this.interpolate(c, r);
3408
- const v = c.match(/'/g), S = c.match(/"/g);
3409
- (v && v.length % 2 === 0 && !S || S.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3166
+ function o(l, u) {
3167
+ const d = this.nestingOptionsSeparator;
3168
+ if (l.indexOf(d) < 0)
3169
+ return l;
3170
+ const f = l.split(new RegExp(`${d}[ ]*{`));
3171
+ let c = `{${f[1]}`;
3172
+ l = f[0], c = this.interpolate(c, r);
3173
+ const S = c.match(/'/g), y = c.match(/"/g);
3174
+ (S && S.length % 2 === 0 && !y || y.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3410
3175
  try {
3411
- r = JSON.parse(c), l && (r = {
3412
- ...l,
3176
+ r = JSON.parse(c), u && (r = {
3177
+ ...u,
3413
3178
  ...r
3414
3179
  });
3415
3180
  } catch (k) {
3416
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, k), `${d}${u}${c}`;
3181
+ return this.logger.warn(`failed parsing options string in nesting for key ${l}`, k), `${l}${d}${c}`;
3417
3182
  }
3418
- return delete r.defaultValue, d;
3183
+ return delete r.defaultValue, l;
3419
3184
  }
3420
3185
  for (; a = this.nestingRegexp.exec(e); ) {
3421
- let d = [];
3186
+ let l = [];
3422
3187
  r = {
3423
3188
  ...i
3424
3189
  }, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
3425
- let l = !1;
3190
+ let u = !1;
3426
3191
  if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
3427
- const u = a[1].split(this.formatSeparator).map((p) => p.trim());
3428
- a[1] = u.shift(), d = u, l = !0;
3192
+ const d = a[1].split(this.formatSeparator).map((f) => f.trim());
3193
+ a[1] = d.shift(), l = d, u = !0;
3429
3194
  }
3430
3195
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
3431
3196
  return s;
3432
- typeof s != "string" && (s = kt(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, {
3197
+ typeof s != "string" && (s = at(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), u && (s = l.reduce((d, f) => this.format(d, f, i.lng, {
3433
3198
  ...i,
3434
3199
  interpolationkey: a[1].trim()
3435
3200
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3437,7 +3202,7 @@ class Za {
3437
3202
  return e;
3438
3203
  }
3439
3204
  }
3440
- function Xa(n) {
3205
+ function za(n) {
3441
3206
  let e = n.toLowerCase().trim();
3442
3207
  const t = {};
3443
3208
  if (n.indexOf("(") > -1) {
@@ -3447,8 +3212,8 @@ function Xa(n) {
3447
3212
  e === "currency" && a.indexOf(":") < 0 ? t.currency || (t.currency = a.trim()) : e === "relativetime" && a.indexOf(":") < 0 ? t.range || (t.range = a.trim()) : a.split(";").forEach((r) => {
3448
3213
  if (!r)
3449
3214
  return;
3450
- const [o, ...d] = r.split(":"), l = d.join(":").trim().replace(/^'+|'+$/g, "");
3451
- t[o.trim()] || (t[o.trim()] = l), l === "false" && (t[o.trim()] = !1), l === "true" && (t[o.trim()] = !0), isNaN(l) || (t[o.trim()] = parseInt(l, 10));
3215
+ const [o, ...l] = r.split(":"), u = l.join(":").trim().replace(/^'+|'+$/g, "");
3216
+ t[o.trim()] || (t[o.trim()] = u), u === "false" && (t[o.trim()] = !1), u === "true" && (t[o.trim()] = !0), isNaN(u) || (t[o.trim()] = parseInt(u, 10));
3452
3217
  });
3453
3218
  }
3454
3219
  return {
@@ -3456,44 +3221,44 @@ function Xa(n) {
3456
3221
  formatOptions: t
3457
3222
  };
3458
3223
  }
3459
- function K(n) {
3224
+ function Q(n) {
3460
3225
  const e = {};
3461
3226
  return function(i, a, s) {
3462
3227
  const r = a + JSON.stringify(s);
3463
3228
  let o = e[r];
3464
- return o || (o = n(ke(a), s), e[r] = o), o(i);
3229
+ return o || (o = n(ce(a), s), e[r] = o), o(i);
3465
3230
  };
3466
3231
  }
3467
- class Ya {
3232
+ class Ba {
3468
3233
  constructor() {
3469
3234
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3470
- this.logger = j.create("formatter"), this.options = e, this.formats = {
3471
- number: K((t, i) => {
3235
+ this.logger = $.create("formatter"), this.options = e, this.formats = {
3236
+ number: Q((t, i) => {
3472
3237
  const a = new Intl.NumberFormat(t, {
3473
3238
  ...i
3474
3239
  });
3475
3240
  return (s) => a.format(s);
3476
3241
  }),
3477
- currency: K((t, i) => {
3242
+ currency: Q((t, i) => {
3478
3243
  const a = new Intl.NumberFormat(t, {
3479
3244
  ...i,
3480
3245
  style: "currency"
3481
3246
  });
3482
3247
  return (s) => a.format(s);
3483
3248
  }),
3484
- datetime: K((t, i) => {
3249
+ datetime: Q((t, i) => {
3485
3250
  const a = new Intl.DateTimeFormat(t, {
3486
3251
  ...i
3487
3252
  });
3488
3253
  return (s) => a.format(s);
3489
3254
  }),
3490
- relativetime: K((t, i) => {
3255
+ relativetime: Q((t, i) => {
3491
3256
  const a = new Intl.RelativeTimeFormat(t, {
3492
3257
  ...i
3493
3258
  });
3494
3259
  return (s) => a.format(s, i.range || "day");
3495
3260
  }),
3496
- list: K((t, i) => {
3261
+ list: Q((t, i) => {
3497
3262
  const a = new Intl.ListFormat(t, {
3498
3263
  ...i
3499
3264
  });
@@ -3511,50 +3276,50 @@ class Ya {
3511
3276
  this.formats[e.toLowerCase().trim()] = t;
3512
3277
  }
3513
3278
  addCached(e, t) {
3514
- this.formats[e.toLowerCase().trim()] = K(t);
3279
+ this.formats[e.toLowerCase().trim()] = Q(t);
3515
3280
  }
3516
3281
  format(e, t, i) {
3517
3282
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3518
- return t.split(this.formatSeparator).reduce((o, d) => {
3283
+ return t.split(this.formatSeparator).reduce((o, l) => {
3519
3284
  const {
3520
- formatName: l,
3521
- formatOptions: u
3522
- } = Xa(d);
3523
- if (this.formats[l]) {
3524
- let p = o;
3285
+ formatName: u,
3286
+ formatOptions: d
3287
+ } = za(l);
3288
+ if (this.formats[u]) {
3289
+ let f = o;
3525
3290
  try {
3526
- const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, v = c.locale || c.lng || a.locale || a.lng || i;
3527
- p = this.formats[l](o, v, {
3528
- ...u,
3291
+ const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, S = c.locale || c.lng || a.locale || a.lng || i;
3292
+ f = this.formats[u](o, S, {
3293
+ ...d,
3529
3294
  ...a,
3530
3295
  ...c
3531
3296
  });
3532
3297
  } catch (c) {
3533
3298
  this.logger.warn(c);
3534
3299
  }
3535
- return p;
3300
+ return f;
3536
3301
  } else
3537
- this.logger.warn(`there was no format function for ${l}`);
3302
+ this.logger.warn(`there was no format function for ${u}`);
3538
3303
  return o;
3539
3304
  }, e);
3540
3305
  }
3541
3306
  }
3542
- function es(n, e) {
3307
+ function Qa(n, e) {
3543
3308
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3544
3309
  }
3545
- class ts extends Ne {
3310
+ class Ga extends ge {
3546
3311
  constructor(e, t, i) {
3547
3312
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3548
- 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);
3313
+ super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = $.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);
3549
3314
  }
3550
3315
  queueLoad(e, t, i, a) {
3551
- const s = {}, r = {}, o = {}, d = {};
3552
- return e.forEach((l) => {
3553
- let u = !0;
3554
- t.forEach((p) => {
3555
- const c = `${l}|${p}`;
3556
- !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)));
3557
- }), u || (o[l] = !0);
3316
+ const s = {}, r = {}, o = {}, l = {};
3317
+ return e.forEach((u) => {
3318
+ let d = !0;
3319
+ t.forEach((f) => {
3320
+ const c = `${u}|${f}`;
3321
+ !i.reload && this.store.hasResourceBundle(u, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, d = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), l[f] === void 0 && (l[f] = !0)));
3322
+ }), d || (o[u] = !0);
3558
3323
  }), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
3559
3324
  pending: r,
3560
3325
  pendingCount: Object.keys(r).length,
@@ -3565,22 +3330,22 @@ class ts extends Ne {
3565
3330
  toLoad: Object.keys(s),
3566
3331
  pending: Object.keys(r),
3567
3332
  toLoadLanguages: Object.keys(o),
3568
- toLoadNamespaces: Object.keys(d)
3333
+ toLoadNamespaces: Object.keys(l)
3569
3334
  };
3570
3335
  }
3571
3336
  loaded(e, t, i) {
3572
3337
  const a = e.split("|"), s = a[0], r = a[1];
3573
3338
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3574
3339
  const o = {};
3575
- this.queue.forEach((d) => {
3576
- Ma(d.loaded, [s], r), es(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
3577
- o[l] || (o[l] = {});
3578
- const u = d.loaded[l];
3579
- u.length && u.forEach((p) => {
3580
- o[l][p] === void 0 && (o[l][p] = !0);
3340
+ this.queue.forEach((l) => {
3341
+ Ra(l.loaded, [s], r), Qa(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3342
+ o[u] || (o[u] = {});
3343
+ const d = l.loaded[u];
3344
+ d.length && d.forEach((f) => {
3345
+ o[u][f] === void 0 && (o[u][f] = !0);
3581
3346
  });
3582
- }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
3583
- }), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
3347
+ }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
3348
+ }), this.emit("loaded", o), this.queue = this.queue.filter((l) => !l.done);
3584
3349
  }
3585
3350
  read(e, t, i) {
3586
3351
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, r = arguments.length > 5 ? arguments[5] : void 0;
@@ -3598,29 +3363,29 @@ class ts extends Ne {
3598
3363
  return;
3599
3364
  }
3600
3365
  this.readingCalls++;
3601
- const o = (l, u) => {
3366
+ const o = (u, d) => {
3602
3367
  if (this.readingCalls--, this.waitingReads.length > 0) {
3603
- const p = this.waitingReads.shift();
3604
- this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
3368
+ const f = this.waitingReads.shift();
3369
+ this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
3605
3370
  }
3606
- if (l && u && a < this.maxRetries) {
3371
+ if (u && d && a < this.maxRetries) {
3607
3372
  setTimeout(() => {
3608
3373
  this.read.call(this, e, t, i, a + 1, s * 2, r);
3609
3374
  }, s);
3610
3375
  return;
3611
3376
  }
3612
- r(l, u);
3613
- }, d = this.backend[i].bind(this.backend);
3614
- if (d.length === 2) {
3377
+ r(u, d);
3378
+ }, l = this.backend[i].bind(this.backend);
3379
+ if (l.length === 2) {
3615
3380
  try {
3616
- const l = d(e, t);
3617
- l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
3618
- } catch (l) {
3619
- o(l);
3381
+ const u = l(e, t);
3382
+ u && typeof u.then == "function" ? u.then((d) => o(null, d)).catch(o) : o(null, u);
3383
+ } catch (u) {
3384
+ o(u);
3620
3385
  }
3621
3386
  return;
3622
3387
  }
3623
- return d(e, t, o);
3388
+ return l(e, t, o);
3624
3389
  }
3625
3390
  prepareLoading(e, t) {
3626
3391
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
@@ -3658,25 +3423,25 @@ class ts extends Ne {
3658
3423
  }
3659
3424
  if (!(i == null || i === "")) {
3660
3425
  if (this.backend && this.backend.create) {
3661
- const d = {
3426
+ const l = {
3662
3427
  ...r,
3663
3428
  isUpdate: s
3664
- }, l = this.backend.create.bind(this.backend);
3665
- if (l.length < 6)
3429
+ }, u = this.backend.create.bind(this.backend);
3430
+ if (u.length < 6)
3666
3431
  try {
3667
- let u;
3668
- 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);
3669
- } catch (u) {
3670
- o(u);
3432
+ let d;
3433
+ u.length === 5 ? d = u(e, t, i, a, l) : d = u(e, t, i, a), d && typeof d.then == "function" ? d.then((f) => o(null, f)).catch(o) : o(null, d);
3434
+ } catch (d) {
3435
+ o(d);
3671
3436
  }
3672
3437
  else
3673
- l(e, t, i, a, o, d);
3438
+ u(e, t, i, a, o, l);
3674
3439
  }
3675
3440
  !e || !e[0] || this.store.addResource(e[0], t, i, a);
3676
3441
  }
3677
3442
  }
3678
3443
  }
3679
- function wt() {
3444
+ function ct() {
3680
3445
  return {
3681
3446
  debug: !1,
3682
3447
  initImmediate: !0,
@@ -3735,22 +3500,22 @@ function wt() {
3735
3500
  }
3736
3501
  };
3737
3502
  }
3738
- function Ct(n) {
3503
+ function mt(n) {
3739
3504
  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;
3740
3505
  }
3741
- function le() {
3506
+ function ae() {
3742
3507
  }
3743
- function ns(n) {
3508
+ function Ka(n) {
3744
3509
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3745
3510
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3746
3511
  });
3747
3512
  }
3748
- class ae extends Ne {
3513
+ class ee extends ge {
3749
3514
  constructor() {
3750
3515
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3751
- if (super(), this.options = Ct(e), this.services = {}, this.logger = j, this.modules = {
3516
+ if (super(), this.options = mt(e), this.services = {}, this.logger = $, this.modules = {
3752
3517
  external: []
3753
- }, ns(this), t && !this.isInitialized && !e.isClone) {
3518
+ }, Ka(this), t && !this.isInitialized && !e.isClone) {
3754
3519
  if (!this.options.initImmediate)
3755
3520
  return this.init(e, t), this;
3756
3521
  setTimeout(() => {
@@ -3762,68 +3527,68 @@ class ae extends Ne {
3762
3527
  var e = this;
3763
3528
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3764
3529
  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]));
3765
- const a = wt();
3530
+ const a = ct();
3766
3531
  this.options = {
3767
3532
  ...a,
3768
3533
  ...this.options,
3769
- ...Ct(t)
3534
+ ...mt(t)
3770
3535
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3771
3536
  ...a.interpolation,
3772
3537
  ...this.options.interpolation
3773
3538
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
3774
- function s(u) {
3775
- return u ? typeof u == "function" ? new u() : u : null;
3539
+ function s(d) {
3540
+ return d ? typeof d == "function" ? new d() : d : null;
3776
3541
  }
3777
3542
  if (!this.options.isClone) {
3778
- this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
3779
- let u;
3780
- this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Ya);
3781
- const p = new Nt(this.options);
3782
- this.store = new St(this.options.resources, this.options);
3543
+ this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
3544
+ let d;
3545
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
3546
+ const f = new lt(this.options);
3547
+ this.store = new rt(this.options.resources, this.options);
3783
3548
  const c = this.services;
3784
- c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new Ha(p, {
3549
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
3785
3550
  prepend: this.options.pluralSeparator,
3786
3551
  compatibilityJSON: this.options.compatibilityJSON,
3787
3552
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3788
- }), 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 Za(this.options), c.utils = {
3553
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new ja(this.options), c.utils = {
3789
3554
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3790
- }, c.backendConnector = new ts(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
3791
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3792
- k[y - 1] = arguments[y];
3793
- e.emit(v, ...k);
3794
- }), 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) {
3795
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3796
- k[y - 1] = arguments[y];
3797
- e.emit(v, ...k);
3798
- }), this.modules.external.forEach((v) => {
3799
- v.init && v.init(this);
3555
+ }, c.backendConnector = new Ga(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3556
+ for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3557
+ k[N - 1] = arguments[N];
3558
+ e.emit(S, ...k);
3559
+ }), 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 me(this.services, this.options), this.translator.on("*", function(S) {
3560
+ for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3561
+ k[N - 1] = arguments[N];
3562
+ e.emit(S, ...k);
3563
+ }), this.modules.external.forEach((S) => {
3564
+ S.init && S.init(this);
3800
3565
  });
3801
3566
  }
3802
- if (this.format = this.options.interpolation.format, i || (i = le), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3803
- const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3804
- u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
3567
+ if (this.format = this.options.interpolation.format, i || (i = ae), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3568
+ const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3569
+ d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
3805
3570
  }
3806
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((u) => {
3807
- this[u] = function() {
3808
- return e.store[u](...arguments);
3571
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((d) => {
3572
+ this[d] = function() {
3573
+ return e.store[d](...arguments);
3809
3574
  };
3810
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((u) => {
3811
- this[u] = function() {
3812
- return e.store[u](...arguments), e;
3575
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
3576
+ this[d] = function() {
3577
+ return e.store[d](...arguments), e;
3813
3578
  };
3814
3579
  });
3815
- const d = X(), l = () => {
3816
- const u = (p, c) => {
3817
- 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);
3580
+ const l = H(), u = () => {
3581
+ const d = (f, c) => {
3582
+ 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), l.resolve(c), i(f, c);
3818
3583
  };
3819
3584
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
3820
- return u(null, this.t.bind(this));
3821
- this.changeLanguage(this.options.lng, u);
3585
+ return d(null, this.t.bind(this));
3586
+ this.changeLanguage(this.options.lng, d);
3822
3587
  };
3823
- return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), d;
3588
+ return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l;
3824
3589
  }
3825
3590
  loadResources(e) {
3826
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3591
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
3827
3592
  const a = typeof e == "string" ? e : this.language;
3828
3593
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
3829
3594
  if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
@@ -3831,19 +3596,19 @@ class ae extends Ne {
3831
3596
  const s = [], r = (o) => {
3832
3597
  if (!o || o === "cimode")
3833
3598
  return;
3834
- this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
3835
- l !== "cimode" && s.indexOf(l) < 0 && s.push(l);
3599
+ this.services.languageUtils.toResolveHierarchy(o).forEach((u) => {
3600
+ u !== "cimode" && s.indexOf(u) < 0 && s.push(u);
3836
3601
  });
3837
3602
  };
3838
- a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => r(d)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
3603
+ a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => r(l)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
3839
3604
  !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(o);
3840
3605
  });
3841
3606
  } else
3842
3607
  i(null);
3843
3608
  }
3844
3609
  reloadResources(e, t, i) {
3845
- const a = X();
3846
- return e || (e = this.languages), t || (t = this.options.ns), i || (i = le), this.services.backendConnector.reload(e, t, (s) => {
3610
+ const a = H();
3611
+ return e || (e = this.languages), t || (t = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, t, (s) => {
3847
3612
  a.resolve(), i(s);
3848
3613
  }), a;
3849
3614
  }
@@ -3852,7 +3617,7 @@ class ae extends Ne {
3852
3617
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3853
3618
  if (!e.type)
3854
3619
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3855
- 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" && Yt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3620
+ 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" && Ut.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3856
3621
  }
3857
3622
  setResolvedLanguage(e) {
3858
3623
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3867,21 +3632,21 @@ class ae extends Ne {
3867
3632
  changeLanguage(e, t) {
3868
3633
  var i = this;
3869
3634
  this.isLanguageChangingTo = e;
3870
- const a = X();
3635
+ const a = H();
3871
3636
  this.emit("languageChanging", e);
3872
- const s = (d) => {
3873
- this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
3874
- }, r = (d, l) => {
3875
- l ? (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
3637
+ const s = (l) => {
3638
+ this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
3639
+ }, r = (l, u) => {
3640
+ u ? (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
3876
3641
  return i.t(...arguments);
3877
- }), t && t(d, function() {
3642
+ }), t && t(l, function() {
3878
3643
  return i.t(...arguments);
3879
3644
  });
3880
- }, o = (d) => {
3881
- !e && !d && this.services.languageDetector && (d = []);
3882
- const l = typeof d == "string" ? d : this.services.languageUtils.getBestMatchFromCodes(d);
3883
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (u) => {
3884
- r(u, l);
3645
+ }, o = (l) => {
3646
+ !e && !l && this.services.languageDetector && (l = []);
3647
+ const u = typeof l == "string" ? l : this.services.languageUtils.getBestMatchFromCodes(l);
3648
+ u && (this.language || s(u), this.translator.language || this.translator.changeLanguage(u), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(u)), this.loadResources(u, (d) => {
3649
+ r(d, u);
3885
3650
  });
3886
3651
  };
3887
3652
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), a;
@@ -3889,19 +3654,19 @@ class ae extends Ne {
3889
3654
  getFixedT(e, t, i) {
3890
3655
  var a = this;
3891
3656
  const s = function(r, o) {
3892
- let d;
3657
+ let l;
3893
3658
  if (typeof o != "object") {
3894
- for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
3895
- u[p - 2] = arguments[p];
3896
- d = a.options.overloadTranslationOptionHandler([r, o].concat(u));
3659
+ for (var u = arguments.length, d = new Array(u > 2 ? u - 2 : 0), f = 2; f < u; f++)
3660
+ d[f - 2] = arguments[f];
3661
+ l = a.options.overloadTranslationOptionHandler([r, o].concat(d));
3897
3662
  } else
3898
- d = {
3663
+ l = {
3899
3664
  ...o
3900
3665
  };
3901
- 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;
3666
+ l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix = l.keyPrefix || i || s.keyPrefix;
3902
3667
  const c = a.options.keySeparator || ".";
3903
- let v;
3904
- 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);
3668
+ let S;
3669
+ return l.keyPrefix && Array.isArray(r) ? S = r.map((y) => `${l.keyPrefix}${c}${y}`) : S = l.keyPrefix ? `${l.keyPrefix}${c}${r}` : r, a.t(S, l);
3905
3670
  };
3906
3671
  return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
3907
3672
  }
@@ -3923,9 +3688,9 @@ class ae extends Ne {
3923
3688
  const i = t.lng || this.resolvedLanguage || this.languages[0], a = this.options ? this.options.fallbackLng : !1, s = this.languages[this.languages.length - 1];
3924
3689
  if (i.toLowerCase() === "cimode")
3925
3690
  return !0;
3926
- const r = (o, d) => {
3927
- const l = this.services.backendConnector.state[`${o}|${d}`];
3928
- return l === -1 || l === 2;
3691
+ const r = (o, l) => {
3692
+ const u = this.services.backendConnector.state[`${o}|${l}`];
3693
+ return u === -1 || u === 2;
3929
3694
  };
3930
3695
  if (t.precheck) {
3931
3696
  const o = t.precheck(this, r);
@@ -3935,7 +3700,7 @@ class ae extends Ne {
3935
3700
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
3936
3701
  }
3937
3702
  loadNamespaces(e, t) {
3938
- const i = X();
3703
+ const i = H();
3939
3704
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
3940
3705
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
3941
3706
  }), this.loadResources((a) => {
@@ -3943,7 +3708,7 @@ class ae extends Ne {
3943
3708
  }), i) : (t && t(), Promise.resolve());
3944
3709
  }
3945
3710
  loadLanguages(e, t) {
3946
- const i = X();
3711
+ const i = H();
3947
3712
  typeof e == "string" && (e = [e]);
3948
3713
  const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
3949
3714
  return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
@@ -3953,32 +3718,32 @@ class ae extends Ne {
3953
3718
  dir(e) {
3954
3719
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3955
3720
  return "rtl";
3956
- 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 Nt(wt());
3721
+ 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 lt(ct());
3957
3722
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3958
3723
  }
3959
3724
  static createInstance() {
3960
3725
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3961
- return new ae(e, t);
3726
+ return new ee(e, t);
3962
3727
  }
3963
3728
  cloneInstance() {
3964
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3729
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
3965
3730
  const i = e.forkResourceStore;
3966
3731
  i && delete e.forkResourceStore;
3967
3732
  const a = {
3968
3733
  ...this.options,
3969
3734
  ...e,
3970
3735
  isClone: !0
3971
- }, s = new ae(a);
3736
+ }, s = new ee(a);
3972
3737
  return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
3973
3738
  s[o] = this[o];
3974
3739
  }), s.services = {
3975
3740
  ...this.services
3976
3741
  }, s.services.utils = {
3977
3742
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3978
- }, i && (s.store = new St(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ve(s.services, a), s.translator.on("*", function(o) {
3979
- for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
3980
- l[u - 1] = arguments[u];
3981
- s.emit(o, ...l);
3743
+ }, i && (s.store = new rt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
3744
+ for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
3745
+ u[d - 1] = arguments[d];
3746
+ s.emit(o, ...u);
3982
3747
  }), s.init(a, t), s.translator.options = a, s.translator.backendConnector.services.utils = {
3983
3748
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3984
3749
  }, s;
@@ -3993,8 +3758,8 @@ class ae extends Ne {
3993
3758
  };
3994
3759
  }
3995
3760
  }
3996
- const U = ae.createInstance();
3997
- U.createInstance = ae.createInstance;
3761
+ const U = ee.createInstance();
3762
+ U.createInstance = ee.createInstance;
3998
3763
  U.createInstance;
3999
3764
  U.dir;
4000
3765
  U.init;
@@ -4009,7 +3774,7 @@ U.setDefaultNamespace;
4009
3774
  U.hasLoadedNamespace;
4010
3775
  U.loadNamespaces;
4011
3776
  U.loadLanguages;
4012
- const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, as = {
3777
+ const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ja = {
4013
3778
  "&amp;": "&",
4014
3779
  "&#38;": "&",
4015
3780
  "&lt;": "<",
@@ -4030,8 +3795,8 @@ const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
4030
3795
  "&#8230;": "…",
4031
3796
  "&#x2F;": "/",
4032
3797
  "&#47;": "/"
4033
- }, ss = (n) => as[n], rs = (n) => n.replace(is, ss);
4034
- let Et = {
3798
+ }, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
3799
+ let ft = {
4035
3800
  bindI18n: "languageChanged",
4036
3801
  bindI18nStore: "",
4037
3802
  transEmptyNodeValue: "",
@@ -4039,73 +3804,73 @@ let Et = {
4039
3804
  transWrapTextNodes: "",
4040
3805
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
4041
3806
  useSuspense: !0,
4042
- unescape: rs
3807
+ unescape: Ha
4043
3808
  };
4044
- function os() {
3809
+ function Za() {
4045
3810
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4046
- Et = {
4047
- ...Et,
3811
+ ft = {
3812
+ ...ft,
4048
3813
  ...n
4049
3814
  };
4050
3815
  }
4051
- const ls = {
3816
+ const Xa = {
4052
3817
  type: "3rdParty",
4053
3818
  init(n) {
4054
- os(n.options.react);
3819
+ Za(n.options.react);
4055
3820
  }
4056
3821
  };
4057
- Va(U, ls);
4058
- const er = (n) => va(U, n);
4059
- let Ge = /* @__PURE__ */ new Map();
4060
- const Ie = Ot(Ge), tr = ({ children: n, stores: e }) => {
4061
- const t = Pe(Ie), i = Tt(() => {
3822
+ Ea(U, Xa);
3823
+ const Qs = (n) => la(U, n);
3824
+ let Le = /* @__PURE__ */ new Map();
3825
+ const we = pt(Le), Gs = ({ children: n, stores: e }) => {
3826
+ const t = Ce(we), i = Wt(() => {
4062
3827
  const a = /* @__PURE__ */ new Map();
4063
- return e.forEach((s) => a.set(s.class, s.value)), Ge = new Map([...t, ...a]);
3828
+ return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
4064
3829
  }, []);
4065
- return /* @__PURE__ */ on(Ie.Provider, { value: i, children: n });
3830
+ return /* @__PURE__ */ Jt(we.Provider, { value: i, children: n });
4066
3831
  };
4067
- function nr(n) {
4068
- return Pe(Ie).get(n);
3832
+ function Ks(n) {
3833
+ return Ce(we).get(n);
4069
3834
  }
4070
- function ir(n) {
4071
- return Ge.get(n);
3835
+ function Ws(n) {
3836
+ return Le.get(n);
4072
3837
  }
4073
- 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 || {});
4074
- const ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Os = { 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" } }] } }] } }] } }] }, Rs = { 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" } }] } }] } }] } }] }, xs = { 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" } }] } }] } }] } }] }, Ts = { 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" } }] } }] } }] } }] }, Ds = { 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" } }] } }] } }] } }] }, Ls = { 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" } }] } }] } }] } }] }, Is = { 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" } }] } }] } }] } }] } }] }, Ps = { 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" } }] } }] } }] } }] }, Vs = { 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" } }] } }] } }] } }] }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3838
+ var Mt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))($t || {}), jt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(jt || {});
3839
+ const Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4075
3840
  __proto__: null,
4076
- AddCollectionDocument: ds,
4077
- AppendProductsToSnackVideoDocument: Rs,
4078
- BlockUserDocument: vs,
4079
- ChangeAccountUsernameDocument: Ss,
4080
- CreateSnackVideoBatchDocument: xs,
4081
- DeleteAllCustomizationDocument: ws,
4082
- DeleteChatMessageDocument: ys,
4083
- DeleteCollectionDocument: us,
4084
- DeleteRelationshipWithSnackVideoDocument: Ts,
4085
- DeleteSnackVideoDocument: Ds,
4086
- EventStatus: en,
4087
- FindByProductSnackVideoDocument: Vs,
4088
- FindCollectionDocument: cs,
4089
- FindManySnackVideosDocument: Ls,
4090
- FindMinimalEventDocument: gs,
4091
- GetAllChatMessageDocument: Ns,
4092
- GetAllCollectionsDocument: ms,
4093
- GetAllCustomizationDocument: Cs,
4094
- GetAllSnackVideosDocument: Is,
4095
- GetChatRoomTokenDocument: bs,
4096
- GetSnackVideoRelationshipsDocument: As,
4097
- GetTimeLineDocument: Os,
4098
- ManageCollectionProductDocument: fs,
4099
- Methods: tn,
4100
- PinChatMessageDocument: Fs,
4101
- SearchCollectionsDocument: ps,
4102
- SearchMinimalEventsDocument: ks,
4103
- SearchSnackVideosDocument: Ps,
4104
- Status: nn,
4105
- UpdateCollectionDocument: hs,
4106
- UpdateCustomizationDocument: Es
3841
+ AddCollectionDocument: Ya,
3842
+ AppendProductsToSnackVideoDocument: vs,
3843
+ BlockUserDocument: ls,
3844
+ ChangeAccountUsernameDocument: ds,
3845
+ CreateSnackVideoBatchDocument: Ss,
3846
+ DeleteAllCustomizationDocument: ps,
3847
+ DeleteChatMessageDocument: us,
3848
+ DeleteCollectionDocument: es,
3849
+ DeleteRelationshipWithSnackVideoDocument: ys,
3850
+ DeleteSnackVideoDocument: Ns,
3851
+ EventStatus: Mt,
3852
+ FindByProductSnackVideoDocument: Es,
3853
+ FindCollectionDocument: ts,
3854
+ FindManySnackVideosDocument: bs,
3855
+ FindMinimalEventDocument: rs,
3856
+ GetAllChatMessageDocument: cs,
3857
+ GetAllCollectionsDocument: ns,
3858
+ GetAllCustomizationDocument: hs,
3859
+ GetAllSnackVideosDocument: Fs,
3860
+ GetChatRoomTokenDocument: ms,
3861
+ GetSnackVideoRelationshipsDocument: ws,
3862
+ GetTimeLineDocument: ks,
3863
+ ManageCollectionProductDocument: is,
3864
+ Methods: $t,
3865
+ PinChatMessageDocument: fs,
3866
+ SearchCollectionsDocument: as,
3867
+ SearchMinimalEventsDocument: os,
3868
+ SearchSnackVideosDocument: Cs,
3869
+ Status: jt,
3870
+ UpdateCollectionDocument: ss,
3871
+ UpdateCustomizationDocument: gs
4107
3872
  }, Symbol.toStringTag, { value: "Module" }));
4108
- function sr(n) {
3873
+ function qs(n) {
4109
3874
  return {
4110
3875
  class: n,
4111
3876
  _value: null,
@@ -4115,58 +3880,61 @@ function sr(n) {
4115
3880
  };
4116
3881
  }
4117
3882
  export {
4118
- Gt as AccountContractStatusTypes,
4119
- Ni as AccountContractTypes,
4120
- Gs as AccountInvalidError,
4121
- Fi as AccountPlanDescriptionTypes,
4122
- Ei as AccountRestRepository,
4123
- Oi as AccountService,
4124
- bi as AccountSubscriptionTypes,
4125
- Kt as AccountTypes,
4126
- Si as AggregateRoot,
4127
- ar as ApiGraphqlTypes,
4128
- qs as BaseMobxStore,
4129
- Xn as BroadcastChannelEventBus,
4130
- ye as DomainError,
4131
- Xs as EventBusWildcards,
4132
- Ys as EventNames,
4133
- wi as GlobalPageSectionTypes,
4134
- vi as InvalidNizzaGlobalObjectError,
4135
- fa as LanguageTypes,
4136
- ni as Logger,
4137
- ze as NizzaAccount,
4138
- ma as NizzaEventStatus,
4139
- ha as NizzaProductRequestOriginTypes,
4140
- pa as NizzaVariationTypes,
4141
- gi as ResourceNotFoundError,
4142
- tr as StoreProvider,
4143
- ki as UnexpectedError,
4144
- Hs as ValueObject,
4145
- Ve as accountAtom,
4146
- Wt as accountService,
4147
- js as apiCall,
4148
- ga as buildLanguageTranslations,
4149
- ka as buildTranslations,
4150
- ee as coreLogger,
4151
- yi as createAggregateRoot,
4152
- sr as createStore,
4153
- It as customFetch,
4154
- $s as downloadFile,
4155
- Bs as fileOrigin,
4156
- ca as getAccount,
4157
- Js as getClientTimeZone,
4158
- ir as getStore,
4159
- ua as globalAtomStore,
4160
- Va as i18Init,
4161
- On as jsDownload,
4162
- Ks as logger,
4163
- je as nizza,
4164
- er as registerTranslations,
4165
- va as registerTranslationsOf,
4166
- zs as searchParams,
4167
- ei as shortId,
4168
- Zs as useAccount,
4169
- nr as useStore,
4170
- Ws as validateRequiredProps
3883
+ Dt as AccountContractStatusTypes,
3884
+ ci as AccountContractTypes,
3885
+ Vs as AccountInvalidError,
3886
+ fi as AccountPlanDescriptionTypes,
3887
+ gi as AccountRestRepository,
3888
+ ki as AccountService,
3889
+ mi as AccountSubscriptionTypes,
3890
+ Tt as AccountTypes,
3891
+ di as AggregateRoot,
3892
+ Js as ApiGraphqlTypes,
3893
+ Ms as BaseMobxStore,
3894
+ jn as BroadcastChannelEventBus,
3895
+ he as DomainError,
3896
+ zs as EventBusWildcards,
3897
+ Bs as EventNames,
3898
+ pi as GlobalPageSectionTypes,
3899
+ li as InvalidNizzaGlobalObjectError,
3900
+ ia as LanguageTypes,
3901
+ Gn as Logger,
3902
+ Re as NizzaAccount,
3903
+ na as NizzaEventStatus,
3904
+ sa as NizzaProductRequestOriginTypes,
3905
+ aa as NizzaVariationTypes,
3906
+ ri as ResourceNotFoundError,
3907
+ Gs as StoreProvider,
3908
+ oi as UnexpectedError,
3909
+ $s as ValueObject,
3910
+ Ee as accountAtom,
3911
+ It as accountService,
3912
+ Ts as apiCall,
3913
+ ra as buildLanguageTranslations,
3914
+ oa as buildTranslations,
3915
+ Kn as configure,
3916
+ Z as coreLogger,
3917
+ ui as createAggregateRoot,
3918
+ qs as createStore,
3919
+ vt as customFetch,
3920
+ Ds as downloadFile,
3921
+ Ls as fileOrigin,
3922
+ ta as getAccount,
3923
+ Us as getClientTimeZone,
3924
+ Ws as getStore,
3925
+ ea as globalAtomStore,
3926
+ Ea as i18Init,
3927
+ hn as jsDownload,
3928
+ Ps as logger,
3929
+ Rt as nizza,
3930
+ Qs as registerTranslations,
3931
+ la as registerTranslationsOf,
3932
+ Is as searchParams,
3933
+ Wn as setProductDataSource,
3934
+ Bn as shortId,
3935
+ js as useAccount,
3936
+ qn as useNizza,
3937
+ Ks as useStore,
3938
+ _s as validateRequiredProps
4171
3939
  };
4172
3940
  //# sourceMappingURL=index.mjs.map