@nizza/core 0.1.1-beta.1 → 0.1.1-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/environments/environment.d.ts +4 -4
- package/dist/index.es.js +367 -1007
- package/dist/lib/utils/customStorage/MemoryStorage.d.ts +12 -0
- package/dist/lib/utils/customStorage/index.d.ts +9 -0
- package/dist/lib/utils/customStorage/utils.d.ts +4 -0
- package/dist/lib/utils/index.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
n in this.aggregate && (this.aggregate[n] = r);
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
|
+
var U = (n, e, i) => e in n ? V(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
|
|
3
|
+
var s = (n, e, i) => (U(n, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import G, { createContext as L, useContext as I, useMemo as M, lazy as q, Suspense as z } from "react";
|
|
5
|
+
class $ {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
s(this, "aggregate");
|
|
8
|
+
s(this, "_numSetPropsApplied", 0);
|
|
9
|
+
this.aggregate = e;
|
|
10
|
+
}
|
|
11
|
+
setProps(e) {
|
|
12
|
+
for (const [i, a] of Object.entries(e))
|
|
13
|
+
i in this.aggregate && (this.aggregate[i] = a);
|
|
15
14
|
this._numSetPropsApplied++;
|
|
16
15
|
}
|
|
17
16
|
get isFirstSetProps() {
|
|
18
17
|
return this._numSetPropsApplied === 1;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
class
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
20
|
+
class y extends Error {
|
|
21
|
+
constructor(e, i, a) {
|
|
22
|
+
super(i), this.value = a, this.name = e;
|
|
24
23
|
}
|
|
25
24
|
toDTO() {
|
|
26
25
|
return {
|
|
@@ -30,666 +29,65 @@ class Ne extends Error {
|
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
|
-
class
|
|
34
|
-
constructor(
|
|
32
|
+
class Se extends y {
|
|
33
|
+
constructor(e) {
|
|
35
34
|
super(
|
|
36
35
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
37
|
-
`Resource with id '${
|
|
38
|
-
|
|
36
|
+
`Resource with id '${e}' not found.`,
|
|
37
|
+
e
|
|
39
38
|
);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
class
|
|
43
|
-
constructor(
|
|
44
|
-
var
|
|
41
|
+
class ge extends y {
|
|
42
|
+
constructor(e) {
|
|
43
|
+
var i;
|
|
45
44
|
super(
|
|
46
45
|
"APP_UNEXPECTED_ERROR",
|
|
47
|
-
(
|
|
48
|
-
|
|
46
|
+
(i = e.message) != null ? i : "An unexpected error occurred.",
|
|
47
|
+
e
|
|
49
48
|
);
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
|
-
class
|
|
51
|
+
class ye extends y {
|
|
53
52
|
constructor() {
|
|
54
53
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
|
-
var
|
|
58
|
-
return e && (t = (0, e[he(e)[0]])(e = 0)), t;
|
|
59
|
-
}, Se = (e, t) => function() {
|
|
60
|
-
return t || (0, e[he(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
61
|
-
}, fe = (e, t, n, r) => {
|
|
62
|
-
if (t && typeof t == "object" || typeof t == "function")
|
|
63
|
-
for (let i of he(t))
|
|
64
|
-
!Vn.call(e, i) && i !== n && Ke(e, i, { get: () => t[i], enumerable: !(r = Un(t, i)) || r.enumerable });
|
|
65
|
-
return e;
|
|
66
|
-
}, Ln = (e, t, n) => (fe(e, t, "default"), n && fe(n, t, "default")), $n = (e) => fe(Ke({}, "__esModule", { value: !0 }), e), Yn = Se({
|
|
67
|
-
"node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js"(e, t) {
|
|
68
|
-
var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
69
|
-
function o(m) {
|
|
70
|
-
if (m == null)
|
|
71
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
72
|
-
return Object(m);
|
|
73
|
-
}
|
|
74
|
-
function l() {
|
|
75
|
-
try {
|
|
76
|
-
if (!Object.assign)
|
|
77
|
-
return !1;
|
|
78
|
-
var m = new String("abc");
|
|
79
|
-
if (m[5] = "de", Object.getOwnPropertyNames(m)[0] === "5")
|
|
80
|
-
return !1;
|
|
81
|
-
for (var c = {}, k = 0; k < 10; k++)
|
|
82
|
-
c["_" + String.fromCharCode(k)] = k;
|
|
83
|
-
var N = Object.getOwnPropertyNames(c).map(function(S) {
|
|
84
|
-
return c[S];
|
|
85
|
-
});
|
|
86
|
-
if (N.join("") !== "0123456789")
|
|
87
|
-
return !1;
|
|
88
|
-
var C = {};
|
|
89
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(S) {
|
|
90
|
-
C[S] = S;
|
|
91
|
-
}), Object.keys(Object.assign({}, C)).join("") === "abcdefghijklmnopqrst";
|
|
92
|
-
} catch {
|
|
93
|
-
return !1;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
t.exports = l() ? Object.assign : function(m, c) {
|
|
97
|
-
for (var k, N = o(m), C, S = 1; S < arguments.length; S++) {
|
|
98
|
-
k = Object(arguments[S]);
|
|
99
|
-
for (var j in k)
|
|
100
|
-
r.call(k, j) && (N[j] = k[j]);
|
|
101
|
-
if (n) {
|
|
102
|
-
C = n(k);
|
|
103
|
-
for (var E = 0; E < C.length; E++)
|
|
104
|
-
i.call(k, C[E]) && (N[C[E]] = k[C[E]]);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return N;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}), xe = {}, Gn = Mn({
|
|
111
|
-
"external:react"() {
|
|
112
|
-
Ln(xe, On);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
56
|
+
var _ = { exports: {} }, u = {};
|
|
115
57
|
/*
|
|
116
58
|
object-assign
|
|
117
59
|
(c) Sindre Sorhus
|
|
118
60
|
@license MIT
|
|
119
61
|
*/
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
{
|
|
147
|
-
var s = W.ReactDebugCurrentFrame, p = s.getStackAddendum();
|
|
148
|
-
p !== "" && (d += "%s", u = u.concat([p]));
|
|
149
|
-
var g = u.map(function(f) {
|
|
150
|
-
return "" + f;
|
|
151
|
-
});
|
|
152
|
-
g.unshift("Warning: " + d), Function.prototype.apply.call(console[a], console, g);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
var tn = !1;
|
|
156
|
-
function rn(a) {
|
|
157
|
-
return !!(typeof a == "string" || typeof a == "function" || a === e.Fragment || a === l || a === $ || a === o || a === N || a === C || a === Y || tn || typeof a == "object" && a !== null && (a.$$typeof === j || a.$$typeof === S || a.$$typeof === m || a.$$typeof === c || a.$$typeof === k || a.$$typeof === L || a.$$typeof === E || a[0] === M));
|
|
158
|
-
}
|
|
159
|
-
function on(a, d, u) {
|
|
160
|
-
var s = d.displayName || d.name || "";
|
|
161
|
-
return a.displayName || (s !== "" ? u + "(" + s + ")" : u);
|
|
162
|
-
}
|
|
163
|
-
function Ce(a) {
|
|
164
|
-
return a.displayName || "Context";
|
|
165
|
-
}
|
|
166
|
-
function A(a) {
|
|
167
|
-
if (a == null)
|
|
168
|
-
return null;
|
|
169
|
-
if (typeof a.tag == "number" && P("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
170
|
-
return a.displayName || a.name || null;
|
|
171
|
-
if (typeof a == "string")
|
|
172
|
-
return a;
|
|
173
|
-
switch (a) {
|
|
174
|
-
case e.Fragment:
|
|
175
|
-
return "Fragment";
|
|
176
|
-
case i:
|
|
177
|
-
return "Portal";
|
|
178
|
-
case l:
|
|
179
|
-
return "Profiler";
|
|
180
|
-
case o:
|
|
181
|
-
return "StrictMode";
|
|
182
|
-
case N:
|
|
183
|
-
return "Suspense";
|
|
184
|
-
case C:
|
|
185
|
-
return "SuspenseList";
|
|
186
|
-
}
|
|
187
|
-
if (typeof a == "object")
|
|
188
|
-
switch (a.$$typeof) {
|
|
189
|
-
case c:
|
|
190
|
-
var d = a;
|
|
191
|
-
return Ce(d) + ".Consumer";
|
|
192
|
-
case m:
|
|
193
|
-
var u = a;
|
|
194
|
-
return Ce(u._context) + ".Provider";
|
|
195
|
-
case k:
|
|
196
|
-
return on(a, a.render, "ForwardRef");
|
|
197
|
-
case S:
|
|
198
|
-
return A(a.type);
|
|
199
|
-
case E:
|
|
200
|
-
return A(a._render);
|
|
201
|
-
case j: {
|
|
202
|
-
var s = a, p = s._payload, g = s._init;
|
|
203
|
-
try {
|
|
204
|
-
return A(g(p));
|
|
205
|
-
} catch {
|
|
206
|
-
return null;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return null;
|
|
211
|
-
}
|
|
212
|
-
var z = 0, Ee, Fe, be, Re, Te, we, Oe;
|
|
213
|
-
function Pe() {
|
|
214
|
-
}
|
|
215
|
-
Pe.__reactDisabledLog = !0;
|
|
216
|
-
function ln() {
|
|
217
|
-
{
|
|
218
|
-
if (z === 0) {
|
|
219
|
-
Ee = console.log, Fe = console.info, be = console.warn, Re = console.error, Te = console.group, we = console.groupCollapsed, Oe = console.groupEnd;
|
|
220
|
-
var a = {
|
|
221
|
-
configurable: !0,
|
|
222
|
-
enumerable: !0,
|
|
223
|
-
value: Pe,
|
|
224
|
-
writable: !0
|
|
225
|
-
};
|
|
226
|
-
Object.defineProperties(console, {
|
|
227
|
-
info: a,
|
|
228
|
-
log: a,
|
|
229
|
-
warn: a,
|
|
230
|
-
error: a,
|
|
231
|
-
group: a,
|
|
232
|
-
groupCollapsed: a,
|
|
233
|
-
groupEnd: a
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
z++;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
function dn() {
|
|
240
|
-
{
|
|
241
|
-
if (z--, z === 0) {
|
|
242
|
-
var a = {
|
|
243
|
-
configurable: !0,
|
|
244
|
-
enumerable: !0,
|
|
245
|
-
writable: !0
|
|
246
|
-
};
|
|
247
|
-
Object.defineProperties(console, {
|
|
248
|
-
log: n({}, a, {
|
|
249
|
-
value: Ee
|
|
250
|
-
}),
|
|
251
|
-
info: n({}, a, {
|
|
252
|
-
value: Fe
|
|
253
|
-
}),
|
|
254
|
-
warn: n({}, a, {
|
|
255
|
-
value: be
|
|
256
|
-
}),
|
|
257
|
-
error: n({}, a, {
|
|
258
|
-
value: Re
|
|
259
|
-
}),
|
|
260
|
-
group: n({}, a, {
|
|
261
|
-
value: Te
|
|
262
|
-
}),
|
|
263
|
-
groupCollapsed: n({}, a, {
|
|
264
|
-
value: we
|
|
265
|
-
}),
|
|
266
|
-
groupEnd: n({}, a, {
|
|
267
|
-
value: Oe
|
|
268
|
-
})
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
z < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
var ie = W.ReactCurrentDispatcher, oe;
|
|
275
|
-
function x(a, d, u) {
|
|
276
|
-
{
|
|
277
|
-
if (oe === void 0)
|
|
278
|
-
try {
|
|
279
|
-
throw Error();
|
|
280
|
-
} catch (p) {
|
|
281
|
-
var s = p.stack.trim().match(/\n( *(at )?)/);
|
|
282
|
-
oe = s && s[1] || "";
|
|
283
|
-
}
|
|
284
|
-
return `
|
|
285
|
-
` + oe + a;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
var le = !1, Q;
|
|
289
|
-
{
|
|
290
|
-
var un = typeof WeakMap == "function" ? WeakMap : Map;
|
|
291
|
-
Q = new un();
|
|
292
|
-
}
|
|
293
|
-
function je(a, d) {
|
|
294
|
-
if (!a || le)
|
|
295
|
-
return "";
|
|
296
|
-
{
|
|
297
|
-
var u = Q.get(a);
|
|
298
|
-
if (u !== void 0)
|
|
299
|
-
return u;
|
|
300
|
-
}
|
|
301
|
-
var s;
|
|
302
|
-
le = !0;
|
|
303
|
-
var p = Error.prepareStackTrace;
|
|
304
|
-
Error.prepareStackTrace = void 0;
|
|
305
|
-
var g;
|
|
306
|
-
g = ie.current, ie.current = null, ln();
|
|
307
|
-
try {
|
|
308
|
-
if (d) {
|
|
309
|
-
var f = function() {
|
|
310
|
-
throw Error();
|
|
311
|
-
};
|
|
312
|
-
if (Object.defineProperty(f.prototype, "props", {
|
|
313
|
-
set: function() {
|
|
314
|
-
throw Error();
|
|
315
|
-
}
|
|
316
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
317
|
-
try {
|
|
318
|
-
Reflect.construct(f, []);
|
|
319
|
-
} catch (I) {
|
|
320
|
-
s = I;
|
|
321
|
-
}
|
|
322
|
-
Reflect.construct(a, [], f);
|
|
323
|
-
} else {
|
|
324
|
-
try {
|
|
325
|
-
f.call();
|
|
326
|
-
} catch (I) {
|
|
327
|
-
s = I;
|
|
328
|
-
}
|
|
329
|
-
a.call(f.prototype);
|
|
330
|
-
}
|
|
331
|
-
} else {
|
|
332
|
-
try {
|
|
333
|
-
throw Error();
|
|
334
|
-
} catch (I) {
|
|
335
|
-
s = I;
|
|
336
|
-
}
|
|
337
|
-
a();
|
|
338
|
-
}
|
|
339
|
-
} catch (I) {
|
|
340
|
-
if (I && s && typeof I.stack == "string") {
|
|
341
|
-
for (var v = I.stack.split(`
|
|
342
|
-
`), O = s.stack.split(`
|
|
343
|
-
`), y = v.length - 1, _ = O.length - 1; y >= 1 && _ >= 0 && v[y] !== O[_]; )
|
|
344
|
-
_--;
|
|
345
|
-
for (; y >= 1 && _ >= 0; y--, _--)
|
|
346
|
-
if (v[y] !== O[_]) {
|
|
347
|
-
if (y !== 1 || _ !== 1)
|
|
348
|
-
do
|
|
349
|
-
if (y--, _--, _ < 0 || v[y] !== O[_]) {
|
|
350
|
-
var D = `
|
|
351
|
-
` + v[y].replace(" at new ", " at ");
|
|
352
|
-
return typeof a == "function" && Q.set(a, D), D;
|
|
353
|
-
}
|
|
354
|
-
while (y >= 1 && _ >= 0);
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
} finally {
|
|
359
|
-
le = !1, ie.current = g, dn(), Error.prepareStackTrace = p;
|
|
360
|
-
}
|
|
361
|
-
var q = a ? a.displayName || a.name : "", Be = q ? x(q) : "";
|
|
362
|
-
return typeof a == "function" && Q.set(a, Be), Be;
|
|
363
|
-
}
|
|
364
|
-
function Ae(a, d, u) {
|
|
365
|
-
return je(a, !1);
|
|
366
|
-
}
|
|
367
|
-
function sn(a) {
|
|
368
|
-
var d = a.prototype;
|
|
369
|
-
return !!(d && d.isReactComponent);
|
|
370
|
-
}
|
|
371
|
-
function X(a, d, u) {
|
|
372
|
-
if (a == null)
|
|
373
|
-
return "";
|
|
374
|
-
if (typeof a == "function")
|
|
375
|
-
return je(a, sn(a));
|
|
376
|
-
if (typeof a == "string")
|
|
377
|
-
return x(a);
|
|
378
|
-
switch (a) {
|
|
379
|
-
case N:
|
|
380
|
-
return x("Suspense");
|
|
381
|
-
case C:
|
|
382
|
-
return x("SuspenseList");
|
|
383
|
-
}
|
|
384
|
-
if (typeof a == "object")
|
|
385
|
-
switch (a.$$typeof) {
|
|
386
|
-
case k:
|
|
387
|
-
return Ae(a.render);
|
|
388
|
-
case S:
|
|
389
|
-
return X(a.type, d, u);
|
|
390
|
-
case E:
|
|
391
|
-
return Ae(a._render);
|
|
392
|
-
case j: {
|
|
393
|
-
var s = a, p = s._payload, g = s._init;
|
|
394
|
-
try {
|
|
395
|
-
return X(g(p), d, u);
|
|
396
|
-
} catch {
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return "";
|
|
401
|
-
}
|
|
402
|
-
var De = {}, Ie = W.ReactDebugCurrentFrame;
|
|
403
|
-
function J(a) {
|
|
404
|
-
if (a) {
|
|
405
|
-
var d = a._owner, u = X(a.type, a._source, d ? d.type : null);
|
|
406
|
-
Ie.setExtraStackFrame(u);
|
|
407
|
-
} else
|
|
408
|
-
Ie.setExtraStackFrame(null);
|
|
409
|
-
}
|
|
410
|
-
function cn(a, d, u, s, p) {
|
|
411
|
-
{
|
|
412
|
-
var g = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
413
|
-
for (var f in a)
|
|
414
|
-
if (g(a, f)) {
|
|
415
|
-
var v = void 0;
|
|
416
|
-
try {
|
|
417
|
-
if (typeof a[f] != "function") {
|
|
418
|
-
var O = Error((s || "React class") + ": " + u + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
419
|
-
throw O.name = "Invariant Violation", O;
|
|
420
|
-
}
|
|
421
|
-
v = a[f](d, f, s, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
422
|
-
} catch (y) {
|
|
423
|
-
v = y;
|
|
424
|
-
}
|
|
425
|
-
v && !(v instanceof Error) && (J(p), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", u, f, typeof v), J(null)), v instanceof Error && !(v.message in De) && (De[v.message] = !0, J(p), P("Failed %s type: %s", u, v.message), J(null));
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
var H = W.ReactCurrentOwner, de = Object.prototype.hasOwnProperty, mn = {
|
|
430
|
-
key: !0,
|
|
431
|
-
ref: !0,
|
|
432
|
-
__self: !0,
|
|
433
|
-
__source: !0
|
|
434
|
-
}, Ue, Ve, ue;
|
|
435
|
-
ue = {};
|
|
436
|
-
function vn(a) {
|
|
437
|
-
if (de.call(a, "ref")) {
|
|
438
|
-
var d = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
439
|
-
if (d && d.isReactWarning)
|
|
440
|
-
return !1;
|
|
441
|
-
}
|
|
442
|
-
return a.ref !== void 0;
|
|
443
|
-
}
|
|
444
|
-
function fn(a) {
|
|
445
|
-
if (de.call(a, "key")) {
|
|
446
|
-
var d = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
447
|
-
if (d && d.isReactWarning)
|
|
448
|
-
return !1;
|
|
449
|
-
}
|
|
450
|
-
return a.key !== void 0;
|
|
451
|
-
}
|
|
452
|
-
function kn(a, d) {
|
|
453
|
-
if (typeof a.ref == "string" && H.current && d && H.current.stateNode !== d) {
|
|
454
|
-
var u = A(H.current.type);
|
|
455
|
-
ue[u] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(H.current.type), a.ref), ue[u] = !0);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
function pn(a, d) {
|
|
459
|
-
{
|
|
460
|
-
var u = function() {
|
|
461
|
-
Ue || (Ue = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
462
|
-
};
|
|
463
|
-
u.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
464
|
-
get: u,
|
|
465
|
-
configurable: !0
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
function gn(a, d) {
|
|
470
|
-
{
|
|
471
|
-
var u = function() {
|
|
472
|
-
Ve || (Ve = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
473
|
-
};
|
|
474
|
-
u.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
475
|
-
get: u,
|
|
476
|
-
configurable: !0
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
var Nn = function(a, d, u, s, p, g, f) {
|
|
481
|
-
var v = {
|
|
482
|
-
$$typeof: r,
|
|
483
|
-
type: a,
|
|
484
|
-
key: d,
|
|
485
|
-
ref: u,
|
|
486
|
-
props: f,
|
|
487
|
-
_owner: g
|
|
488
|
-
};
|
|
489
|
-
return v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
490
|
-
configurable: !1,
|
|
491
|
-
enumerable: !1,
|
|
492
|
-
writable: !0,
|
|
493
|
-
value: !1
|
|
494
|
-
}), Object.defineProperty(v, "_self", {
|
|
495
|
-
configurable: !1,
|
|
496
|
-
enumerable: !1,
|
|
497
|
-
writable: !1,
|
|
498
|
-
value: s
|
|
499
|
-
}), Object.defineProperty(v, "_source", {
|
|
500
|
-
configurable: !1,
|
|
501
|
-
enumerable: !1,
|
|
502
|
-
writable: !1,
|
|
503
|
-
value: p
|
|
504
|
-
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
505
|
-
};
|
|
506
|
-
function hn(a, d, u, s, p) {
|
|
507
|
-
{
|
|
508
|
-
var g, f = {}, v = null, O = null;
|
|
509
|
-
u !== void 0 && (v = "" + u), fn(d) && (v = "" + d.key), vn(d) && (O = d.ref, kn(d, p));
|
|
510
|
-
for (g in d)
|
|
511
|
-
de.call(d, g) && !mn.hasOwnProperty(g) && (f[g] = d[g]);
|
|
512
|
-
if (a && a.defaultProps) {
|
|
513
|
-
var y = a.defaultProps;
|
|
514
|
-
for (g in y)
|
|
515
|
-
f[g] === void 0 && (f[g] = y[g]);
|
|
516
|
-
}
|
|
517
|
-
if (v || O) {
|
|
518
|
-
var _ = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
519
|
-
v && pn(f, _), O && gn(f, _);
|
|
520
|
-
}
|
|
521
|
-
return Nn(a, v, O, p, s, H.current, f);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
var se = W.ReactCurrentOwner, Me = W.ReactDebugCurrentFrame;
|
|
525
|
-
function B(a) {
|
|
526
|
-
if (a) {
|
|
527
|
-
var d = a._owner, u = X(a.type, a._source, d ? d.type : null);
|
|
528
|
-
Me.setExtraStackFrame(u);
|
|
529
|
-
} else
|
|
530
|
-
Me.setExtraStackFrame(null);
|
|
531
|
-
}
|
|
532
|
-
var ce;
|
|
533
|
-
ce = !1;
|
|
534
|
-
function me(a) {
|
|
535
|
-
return typeof a == "object" && a !== null && a.$$typeof === r;
|
|
536
|
-
}
|
|
537
|
-
function Le() {
|
|
538
|
-
{
|
|
539
|
-
if (se.current) {
|
|
540
|
-
var a = A(se.current.type);
|
|
541
|
-
if (a)
|
|
542
|
-
return `
|
|
543
|
-
|
|
544
|
-
Check the render method of \`` + a + "`.";
|
|
545
|
-
}
|
|
546
|
-
return "";
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
function Sn(a) {
|
|
550
|
-
{
|
|
551
|
-
if (a !== void 0) {
|
|
552
|
-
var d = a.fileName.replace(/^.*[\\\/]/, ""), u = a.lineNumber;
|
|
553
|
-
return `
|
|
554
|
-
|
|
555
|
-
Check your code at ` + d + ":" + u + ".";
|
|
556
|
-
}
|
|
557
|
-
return "";
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
var $e = {};
|
|
561
|
-
function yn(a) {
|
|
562
|
-
{
|
|
563
|
-
var d = Le();
|
|
564
|
-
if (!d) {
|
|
565
|
-
var u = typeof a == "string" ? a : a.displayName || a.name;
|
|
566
|
-
u && (d = `
|
|
567
|
-
|
|
568
|
-
Check the top-level render call using <` + u + ">.");
|
|
569
|
-
}
|
|
570
|
-
return d;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
function Ye(a, d) {
|
|
574
|
-
{
|
|
575
|
-
if (!a._store || a._store.validated || a.key != null)
|
|
576
|
-
return;
|
|
577
|
-
a._store.validated = !0;
|
|
578
|
-
var u = yn(d);
|
|
579
|
-
if ($e[u])
|
|
580
|
-
return;
|
|
581
|
-
$e[u] = !0;
|
|
582
|
-
var s = "";
|
|
583
|
-
a && a._owner && a._owner !== se.current && (s = " It was passed a child from " + A(a._owner.type) + "."), B(a), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, s), B(null);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
function Ge(a, d) {
|
|
587
|
-
{
|
|
588
|
-
if (typeof a != "object")
|
|
589
|
-
return;
|
|
590
|
-
if (Array.isArray(a))
|
|
591
|
-
for (var u = 0; u < a.length; u++) {
|
|
592
|
-
var s = a[u];
|
|
593
|
-
me(s) && Ye(s, d);
|
|
594
|
-
}
|
|
595
|
-
else if (me(a))
|
|
596
|
-
a._store && (a._store.validated = !0);
|
|
597
|
-
else if (a) {
|
|
598
|
-
var p = re(a);
|
|
599
|
-
if (typeof p == "function" && p !== a.entries)
|
|
600
|
-
for (var g = p.call(a), f; !(f = g.next()).done; )
|
|
601
|
-
me(f.value) && Ye(f.value, d);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
function _n(a) {
|
|
606
|
-
{
|
|
607
|
-
var d = a.type;
|
|
608
|
-
if (d == null || typeof d == "string")
|
|
609
|
-
return;
|
|
610
|
-
var u;
|
|
611
|
-
if (typeof d == "function")
|
|
612
|
-
u = d.propTypes;
|
|
613
|
-
else if (typeof d == "object" && (d.$$typeof === k || d.$$typeof === S))
|
|
614
|
-
u = d.propTypes;
|
|
615
|
-
else
|
|
616
|
-
return;
|
|
617
|
-
if (u) {
|
|
618
|
-
var s = A(d);
|
|
619
|
-
cn(u, a.props, "prop", s, a);
|
|
620
|
-
} else if (d.PropTypes !== void 0 && !ce) {
|
|
621
|
-
ce = !0;
|
|
622
|
-
var p = A(d);
|
|
623
|
-
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
624
|
-
}
|
|
625
|
-
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
function Cn(a) {
|
|
629
|
-
{
|
|
630
|
-
for (var d = Object.keys(a.props), u = 0; u < d.length; u++) {
|
|
631
|
-
var s = d[u];
|
|
632
|
-
if (s !== "children" && s !== "key") {
|
|
633
|
-
B(a), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), B(null);
|
|
634
|
-
break;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
a.ref !== null && (B(a), P("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
function We(a, d, u, s, p, g) {
|
|
641
|
-
{
|
|
642
|
-
var f = rn(a);
|
|
643
|
-
if (!f) {
|
|
644
|
-
var v = "";
|
|
645
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
646
|
-
var O = Sn(p);
|
|
647
|
-
O ? v += O : v += Le();
|
|
648
|
-
var y;
|
|
649
|
-
a === null ? y = "null" : Array.isArray(a) ? y = "array" : a !== void 0 && a.$$typeof === r ? (y = "<" + (A(a.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : y = typeof a, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, v);
|
|
650
|
-
}
|
|
651
|
-
var _ = hn(a, d, u, p, g);
|
|
652
|
-
if (_ == null)
|
|
653
|
-
return _;
|
|
654
|
-
if (f) {
|
|
655
|
-
var D = d.children;
|
|
656
|
-
if (D !== void 0)
|
|
657
|
-
if (s)
|
|
658
|
-
if (Array.isArray(D)) {
|
|
659
|
-
for (var q = 0; q < D.length; q++)
|
|
660
|
-
Ge(D[q], a);
|
|
661
|
-
Object.freeze && Object.freeze(D);
|
|
662
|
-
} else
|
|
663
|
-
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
664
|
-
else
|
|
665
|
-
Ge(D, a);
|
|
666
|
-
}
|
|
667
|
-
return a === e.Fragment ? Cn(_) : _n(_), _;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
function En(a, d, u) {
|
|
671
|
-
return We(a, d, u, !0);
|
|
672
|
-
}
|
|
673
|
-
function Fn(a, d, u) {
|
|
674
|
-
return We(a, d, u, !1);
|
|
675
|
-
}
|
|
676
|
-
var bn = Fn, Rn = En;
|
|
677
|
-
e.jsx = bn, e.jsxs = Rn;
|
|
678
|
-
})();
|
|
679
|
-
}
|
|
680
|
-
}), Bn = Se({
|
|
681
|
-
"node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"(e, t) {
|
|
682
|
-
t.exports = Wn();
|
|
62
|
+
var h = Object.getOwnPropertySymbols, W = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
63
|
+
function Q(n) {
|
|
64
|
+
if (n == null)
|
|
65
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
66
|
+
return Object(n);
|
|
67
|
+
}
|
|
68
|
+
function J() {
|
|
69
|
+
try {
|
|
70
|
+
if (!Object.assign)
|
|
71
|
+
return !1;
|
|
72
|
+
var n = new String("abc");
|
|
73
|
+
if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
|
|
74
|
+
return !1;
|
|
75
|
+
for (var e = {}, i = 0; i < 10; i++)
|
|
76
|
+
e["_" + String.fromCharCode(i)] = i;
|
|
77
|
+
var a = Object.getOwnPropertyNames(e).map(function(d) {
|
|
78
|
+
return e[d];
|
|
79
|
+
});
|
|
80
|
+
if (a.join("") !== "0123456789")
|
|
81
|
+
return !1;
|
|
82
|
+
var t = {};
|
|
83
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
84
|
+
t[d] = d;
|
|
85
|
+
}), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
|
|
86
|
+
} catch {
|
|
87
|
+
return !1;
|
|
683
88
|
}
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
* react-jsx-runtime.development.js
|
|
687
|
-
*
|
|
688
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
689
|
-
*
|
|
690
|
-
* This source code is licensed under the MIT license found in the
|
|
691
|
-
* LICENSE file in the root directory of this source tree.
|
|
692
|
-
*/
|
|
89
|
+
}
|
|
90
|
+
J();
|
|
693
91
|
/** @license React v17.0.2
|
|
694
92
|
* react-jsx-runtime.production.min.js
|
|
695
93
|
*
|
|
@@ -698,427 +96,389 @@ Check the top-level render call using <` + u + ">.");
|
|
|
698
96
|
* This source code is licensed under the MIT license found in the
|
|
699
97
|
* LICENSE file in the root directory of this source tree.
|
|
700
98
|
*/
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
99
|
+
var H = G, D = 60103;
|
|
100
|
+
u.Fragment = 60107;
|
|
101
|
+
if (typeof Symbol == "function" && Symbol.for) {
|
|
102
|
+
var C = Symbol.for;
|
|
103
|
+
D = C("react.element"), u.Fragment = C("react.fragment");
|
|
104
|
+
}
|
|
105
|
+
var X = H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Y = Object.prototype.hasOwnProperty, Z = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
106
|
+
function A(n, e, i) {
|
|
107
|
+
var a, t = {}, d = null, o = null;
|
|
108
|
+
i !== void 0 && (d = "" + i), e.key !== void 0 && (d = "" + e.key), e.ref !== void 0 && (o = e.ref);
|
|
109
|
+
for (a in e)
|
|
110
|
+
Y.call(e, a) && !Z.hasOwnProperty(a) && (t[a] = e[a]);
|
|
111
|
+
if (n && n.defaultProps)
|
|
112
|
+
for (a in e = n.defaultProps, e)
|
|
113
|
+
t[a] === void 0 && (t[a] = e[a]);
|
|
114
|
+
return { $$typeof: D, type: n, key: d, ref: o, props: t, _owner: X.current };
|
|
115
|
+
}
|
|
116
|
+
u.jsx = A;
|
|
117
|
+
u.jsxs = A;
|
|
118
|
+
(function(n) {
|
|
119
|
+
n.exports = u;
|
|
120
|
+
})(_);
|
|
121
|
+
const f = _.exports.jsx;
|
|
122
|
+
let F = /* @__PURE__ */ new Map();
|
|
123
|
+
const S = L(F), Fe = ({
|
|
124
|
+
children: n,
|
|
125
|
+
stores: e
|
|
709
126
|
}) => {
|
|
710
|
-
const
|
|
711
|
-
if (!
|
|
712
|
-
return
|
|
713
|
-
const
|
|
714
|
-
return
|
|
715
|
-
let
|
|
127
|
+
const i = I(S), a = M(() => {
|
|
128
|
+
if (!e.length)
|
|
129
|
+
return i;
|
|
130
|
+
const t = /* @__PURE__ */ new Map();
|
|
131
|
+
return e.forEach((d) => {
|
|
132
|
+
let o;
|
|
716
133
|
try {
|
|
717
|
-
|
|
134
|
+
o = d();
|
|
718
135
|
} catch {
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
}),
|
|
723
|
-
}, [
|
|
724
|
-
return /* @__PURE__ */
|
|
725
|
-
value:
|
|
726
|
-
children:
|
|
136
|
+
o = new d();
|
|
137
|
+
}
|
|
138
|
+
t.set(d, o);
|
|
139
|
+
}), F = new Map([...i, ...t]);
|
|
140
|
+
}, [e]);
|
|
141
|
+
return /* @__PURE__ */ f(S.Provider, {
|
|
142
|
+
value: a,
|
|
143
|
+
children: n
|
|
727
144
|
});
|
|
728
145
|
};
|
|
729
|
-
function
|
|
730
|
-
return
|
|
146
|
+
function he(n) {
|
|
147
|
+
return I(S).get(n);
|
|
731
148
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
149
|
+
function Ce(n) {
|
|
150
|
+
return F.get(n);
|
|
734
151
|
}
|
|
735
|
-
var
|
|
736
|
-
const zn = { 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" } }] } }] } }] } }] }, Hn = { 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" } }] } }] } }] } }] }, Kn = { 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" } }] } }] } }] } }] }, xn = { 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" } }] } }] } }] } }] }, Qn = { 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" } }] } }] } }] } }] }, Xn = { 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" } }] } }] } }] } }] }, Jn = { 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" } }] } }] } }] } }] }, Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152
|
+
var j = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(j || {}), x = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(x || {});
|
|
153
|
+
const K = { 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" } }] } }] } }] } }] }, ee = { 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" } }] } }] } }] } }] }, ne = { 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" } }] } }] } }] } }] }, ie = { 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" } }] } }] } }] } }] }, ae = { 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" } }] } }] } }] } }] }, te = { 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" } }] } }] } }] } }] }, de = { 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" } }] } }] } }] } }] }, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
737
154
|
__proto__: null,
|
|
738
|
-
Methods:
|
|
739
|
-
Status:
|
|
740
|
-
AddCollectionDocument:
|
|
741
|
-
DeleteCollectionDocument:
|
|
742
|
-
FindCollectionDocument:
|
|
743
|
-
GetAllCollectionsDocument:
|
|
744
|
-
ManageCollectionProductDocument:
|
|
745
|
-
SearchCollectionsDocument:
|
|
746
|
-
UpdateCollectionDocument:
|
|
155
|
+
Methods: j,
|
|
156
|
+
Status: x,
|
|
157
|
+
AddCollectionDocument: K,
|
|
158
|
+
DeleteCollectionDocument: ee,
|
|
159
|
+
FindCollectionDocument: ne,
|
|
160
|
+
GetAllCollectionsDocument: ie,
|
|
161
|
+
ManageCollectionProductDocument: ae,
|
|
162
|
+
SearchCollectionsDocument: te,
|
|
163
|
+
UpdateCollectionDocument: de
|
|
747
164
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
748
|
-
async function
|
|
749
|
-
url:
|
|
750
|
-
method:
|
|
751
|
-
raw:
|
|
752
|
-
...
|
|
165
|
+
async function we({
|
|
166
|
+
url: n,
|
|
167
|
+
method: e = "GET",
|
|
168
|
+
raw: i = !1,
|
|
169
|
+
...a
|
|
753
170
|
}) {
|
|
754
|
-
var
|
|
755
|
-
const
|
|
171
|
+
var l;
|
|
172
|
+
const t = {
|
|
756
173
|
"Content-Type": "application/json",
|
|
757
|
-
...
|
|
758
|
-
},
|
|
759
|
-
if (
|
|
760
|
-
return
|
|
761
|
-
const
|
|
762
|
-
if (!
|
|
763
|
-
const
|
|
764
|
-
throw new Error(
|
|
174
|
+
...a.headers
|
|
175
|
+
}, d = await fetch(n, { method: e, ...a, headers: t });
|
|
176
|
+
if (i)
|
|
177
|
+
return d;
|
|
178
|
+
const o = await d.json();
|
|
179
|
+
if (!d.ok) {
|
|
180
|
+
const m = (l = o == null ? void 0 : o.message) != null ? l : d.statusText;
|
|
181
|
+
throw new Error(m);
|
|
182
|
+
}
|
|
183
|
+
return o;
|
|
184
|
+
}
|
|
185
|
+
class b {
|
|
186
|
+
constructor() {
|
|
187
|
+
s(this, "store");
|
|
188
|
+
this.store = this.getStoreFromWindow();
|
|
189
|
+
}
|
|
190
|
+
getStoreFromWindow() {
|
|
191
|
+
let e = {};
|
|
192
|
+
try {
|
|
193
|
+
e = JSON.parse(window.self.name);
|
|
194
|
+
} catch {
|
|
195
|
+
return {};
|
|
196
|
+
}
|
|
197
|
+
return e && typeof e == "object" ? e : {};
|
|
765
198
|
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
770
|
-
let n = "";
|
|
771
|
-
const r = t.length;
|
|
772
|
-
for (let i = 0; i < e; i++)
|
|
773
|
-
n += t.charAt(Math.floor(Math.random() * r));
|
|
774
|
-
return n;
|
|
775
|
-
}
|
|
776
|
-
function Ua(e) {
|
|
777
|
-
return new In(e);
|
|
778
|
-
}
|
|
779
|
-
const Va = (e) => {
|
|
780
|
-
const t = Object.entries(e).map(([n, r]) => `${n}=${r}`).join("&");
|
|
781
|
-
return t ? `?${t}` : "";
|
|
782
|
-
}, Ma = (e, t, n = {
|
|
783
|
-
fallback: null
|
|
784
|
-
}) => {
|
|
785
|
-
let r = e;
|
|
786
|
-
t && (r = () => e().then((o) => ({
|
|
787
|
-
default: t(o)
|
|
788
|
-
})));
|
|
789
|
-
const i = An(r);
|
|
790
|
-
return (o) => /* @__PURE__ */ ke(Dn, {
|
|
791
|
-
fallback: n.fallback,
|
|
792
|
-
children: /* @__PURE__ */ ke(i, {
|
|
793
|
-
...o
|
|
794
|
-
})
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
class ae {
|
|
798
|
-
constructor(t, n, r) {
|
|
799
|
-
U(this, "isOk");
|
|
800
|
-
U(this, "isErr");
|
|
801
|
-
U(this, "error");
|
|
802
|
-
U(this, "_value");
|
|
803
|
-
if (t && n)
|
|
804
|
-
throw new Error(
|
|
805
|
-
"InvalidOperation: A result cannot be successful and contain an error"
|
|
806
|
-
);
|
|
807
|
-
if (!t && !n)
|
|
808
|
-
throw new Error(
|
|
809
|
-
"InvalidOperation: A failing result needs to contain an error message"
|
|
810
|
-
);
|
|
811
|
-
this.isOk = t, this.isErr = !t, this.error = n, this._value = r, Object.freeze(this);
|
|
199
|
+
setStoreToWindow(e) {
|
|
200
|
+
const i = JSON.stringify(e);
|
|
201
|
+
window.self.name = i;
|
|
812
202
|
}
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
throw new Error(
|
|
816
|
-
"Can't get the value of an error result. Use 'errorValue' instead."
|
|
817
|
-
);
|
|
818
|
-
return this._value;
|
|
203
|
+
setItem(e, i) {
|
|
204
|
+
this.store[e] = i, this.setStoreToWindow(this.store);
|
|
819
205
|
}
|
|
820
|
-
|
|
821
|
-
|
|
206
|
+
getItem(e) {
|
|
207
|
+
var i;
|
|
208
|
+
return (i = this.store[e]) != null ? i : null;
|
|
822
209
|
}
|
|
823
|
-
|
|
824
|
-
|
|
210
|
+
removeItem(e) {
|
|
211
|
+
delete this.store[e], this.setStoreToWindow(this.store);
|
|
825
212
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
if (n.isErr)
|
|
829
|
-
return n;
|
|
830
|
-
return ae.ok();
|
|
213
|
+
clear() {
|
|
214
|
+
this.setStoreToWindow({});
|
|
831
215
|
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
U(this, "value");
|
|
836
|
-
this.value = t;
|
|
216
|
+
key(e) {
|
|
217
|
+
var a;
|
|
218
|
+
return (a = Object.keys(this.store)[e]) != null ? a : null;
|
|
837
219
|
}
|
|
838
|
-
|
|
839
|
-
return
|
|
220
|
+
get length() {
|
|
221
|
+
return Object.keys(this.store).length;
|
|
840
222
|
}
|
|
841
|
-
|
|
223
|
+
}
|
|
224
|
+
function w(n) {
|
|
225
|
+
try {
|
|
226
|
+
const e = window[n], i = "__custom-storage__";
|
|
227
|
+
return e.setItem(i, i), e.removeItem(i), !0;
|
|
228
|
+
} catch {
|
|
842
229
|
return !1;
|
|
843
230
|
}
|
|
844
231
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
232
|
+
function O(n, e, i) {
|
|
233
|
+
const a = {
|
|
234
|
+
configurable: !1,
|
|
235
|
+
enumerable: !1,
|
|
236
|
+
writable: !1
|
|
237
|
+
};
|
|
238
|
+
typeof i < "u" && (a.value = i), Object.defineProperty(n, e, a);
|
|
239
|
+
}
|
|
240
|
+
class R {
|
|
241
|
+
static init() {
|
|
242
|
+
return new R();
|
|
849
243
|
}
|
|
850
|
-
|
|
851
|
-
|
|
244
|
+
constructor() {
|
|
245
|
+
window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
|
|
852
246
|
}
|
|
853
|
-
|
|
854
|
-
|
|
247
|
+
replaceStorages() {
|
|
248
|
+
if (!this.isAvailable.localStorage) {
|
|
249
|
+
const e = new b();
|
|
250
|
+
O(window, "localStorage", e), console.log(
|
|
251
|
+
"[CustomStorage] LocalStorage is not available, custom implementation is defined"
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
if (!this.isAvailable.sessionStorage) {
|
|
255
|
+
const e = new b();
|
|
256
|
+
O(window, "sessionStorage", e), console.log(
|
|
257
|
+
"[CustomStorage] SessionStorage is not available, custom implementation is defined"
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
get isAvailable() {
|
|
262
|
+
return {
|
|
263
|
+
localStorage: w("localStorage"),
|
|
264
|
+
sessionStorage: w("sessionStorage")
|
|
265
|
+
};
|
|
855
266
|
}
|
|
856
267
|
}
|
|
857
|
-
|
|
858
|
-
function
|
|
859
|
-
for (var
|
|
860
|
-
var
|
|
861
|
-
for (var
|
|
862
|
-
|
|
268
|
+
/*! js-cookie v3.0.1 | MIT */
|
|
269
|
+
function c(n) {
|
|
270
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
271
|
+
var i = arguments[e];
|
|
272
|
+
for (var a in i)
|
|
273
|
+
n[a] = i[a];
|
|
863
274
|
}
|
|
864
|
-
return
|
|
275
|
+
return n;
|
|
865
276
|
}
|
|
866
|
-
var
|
|
867
|
-
read: function(
|
|
868
|
-
return
|
|
277
|
+
var oe = {
|
|
278
|
+
read: function(n) {
|
|
279
|
+
return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
869
280
|
},
|
|
870
|
-
write: function(
|
|
871
|
-
return encodeURIComponent(
|
|
281
|
+
write: function(n) {
|
|
282
|
+
return encodeURIComponent(n).replace(
|
|
872
283
|
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
873
284
|
decodeURIComponent
|
|
874
285
|
);
|
|
875
286
|
}
|
|
876
287
|
};
|
|
877
|
-
function
|
|
878
|
-
function
|
|
288
|
+
function g(n, e) {
|
|
289
|
+
function i(t, d, o) {
|
|
879
290
|
if (!(typeof document > "u")) {
|
|
880
|
-
|
|
881
|
-
var
|
|
882
|
-
for (var
|
|
883
|
-
!
|
|
884
|
-
return document.cookie =
|
|
291
|
+
o = c({}, e, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
292
|
+
var l = "";
|
|
293
|
+
for (var m in o)
|
|
294
|
+
!o[m] || (l += "; " + m, o[m] !== !0 && (l += "=" + o[m].split(";")[0]));
|
|
295
|
+
return document.cookie = t + "=" + n.write(d, t) + l;
|
|
885
296
|
}
|
|
886
297
|
}
|
|
887
|
-
function
|
|
888
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
889
|
-
for (var
|
|
890
|
-
var
|
|
298
|
+
function a(t) {
|
|
299
|
+
if (!(typeof document > "u" || arguments.length && !t)) {
|
|
300
|
+
for (var d = document.cookie ? document.cookie.split("; ") : [], o = {}, l = 0; l < d.length; l++) {
|
|
301
|
+
var m = d[l].split("="), P = m.slice(1).join("=");
|
|
891
302
|
try {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
303
|
+
var p = decodeURIComponent(m[0]);
|
|
304
|
+
if (o[p] = n.read(P, p), t === p)
|
|
894
305
|
break;
|
|
895
306
|
} catch {
|
|
896
307
|
}
|
|
897
308
|
}
|
|
898
|
-
return
|
|
309
|
+
return t ? o[t] : o;
|
|
899
310
|
}
|
|
900
311
|
}
|
|
901
312
|
return Object.create(
|
|
902
313
|
{
|
|
903
|
-
set:
|
|
904
|
-
get:
|
|
905
|
-
remove: function(
|
|
906
|
-
|
|
907
|
-
|
|
314
|
+
set: i,
|
|
315
|
+
get: a,
|
|
316
|
+
remove: function(t, d) {
|
|
317
|
+
i(
|
|
318
|
+
t,
|
|
908
319
|
"",
|
|
909
|
-
|
|
320
|
+
c({}, d, {
|
|
910
321
|
expires: -1
|
|
911
322
|
})
|
|
912
323
|
);
|
|
913
324
|
},
|
|
914
|
-
withAttributes: function(
|
|
915
|
-
return
|
|
325
|
+
withAttributes: function(t) {
|
|
326
|
+
return g(this.converter, c({}, this.attributes, t));
|
|
916
327
|
},
|
|
917
|
-
withConverter: function(
|
|
918
|
-
return
|
|
328
|
+
withConverter: function(t) {
|
|
329
|
+
return g(c({}, this.converter, t), this.attributes);
|
|
919
330
|
}
|
|
920
331
|
},
|
|
921
332
|
{
|
|
922
|
-
attributes: { value: Object.freeze(
|
|
923
|
-
converter: { value: Object.freeze(
|
|
333
|
+
attributes: { value: Object.freeze(e) },
|
|
334
|
+
converter: { value: Object.freeze(n) }
|
|
924
335
|
}
|
|
925
336
|
);
|
|
926
337
|
}
|
|
927
|
-
var
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
function ia() {
|
|
931
|
-
if (!ee && (ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !ee))
|
|
338
|
+
var E = g(oe, { path: "/" }), k, le = new Uint8Array(16);
|
|
339
|
+
function re() {
|
|
340
|
+
if (!k && (k = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !k))
|
|
932
341
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
933
|
-
return
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
function
|
|
937
|
-
return typeof
|
|
938
|
-
}
|
|
939
|
-
var
|
|
940
|
-
for (
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
if (!Je(n))
|
|
342
|
+
return k(le);
|
|
343
|
+
}
|
|
344
|
+
const se = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
345
|
+
function me(n) {
|
|
346
|
+
return typeof n == "string" && se.test(n);
|
|
347
|
+
}
|
|
348
|
+
var r = [];
|
|
349
|
+
for (var N = 0; N < 256; ++N)
|
|
350
|
+
r.push((N + 256).toString(16).substr(1));
|
|
351
|
+
function ue(n) {
|
|
352
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (r[n[e + 0]] + r[n[e + 1]] + r[n[e + 2]] + r[n[e + 3]] + "-" + r[n[e + 4]] + r[n[e + 5]] + "-" + r[n[e + 6]] + r[n[e + 7]] + "-" + r[n[e + 8]] + r[n[e + 9]] + "-" + r[n[e + 10]] + r[n[e + 11]] + r[n[e + 12]] + r[n[e + 13]] + r[n[e + 14]] + r[n[e + 15]]).toLowerCase();
|
|
353
|
+
if (!me(i))
|
|
946
354
|
throw TypeError("Stringified UUID is invalid");
|
|
947
|
-
return
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
function
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
355
|
+
return i;
|
|
356
|
+
}
|
|
357
|
+
function ce(n, e, i) {
|
|
358
|
+
n = n || {};
|
|
359
|
+
var a = n.random || (n.rng || re)();
|
|
360
|
+
if (a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, e) {
|
|
361
|
+
i = i || 0;
|
|
362
|
+
for (var t = 0; t < 16; ++t)
|
|
363
|
+
e[i + t] = a[t];
|
|
364
|
+
return e;
|
|
365
|
+
}
|
|
366
|
+
return ue(a);
|
|
367
|
+
}
|
|
368
|
+
const T = "FINGERPRINT_LIVE_SHOPPING", Oe = () => {
|
|
369
|
+
let n = E.get(T);
|
|
370
|
+
return n || (n = ce(), E.set(T, n, { expires: 1 }), n);
|
|
371
|
+
};
|
|
372
|
+
function Ee(n = 8) {
|
|
373
|
+
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
374
|
+
let i = "";
|
|
375
|
+
const a = e.length;
|
|
376
|
+
for (let t = 0; t < n; t++)
|
|
377
|
+
i += e.charAt(Math.floor(Math.random() * a));
|
|
378
|
+
return i;
|
|
379
|
+
}
|
|
380
|
+
function Te(n) {
|
|
381
|
+
return new $(n);
|
|
382
|
+
}
|
|
383
|
+
const Ie = (n) => {
|
|
384
|
+
const e = Object.entries(n).map(([i, a]) => `${i}=${a}`).join("&");
|
|
385
|
+
return e ? `?${e}` : "";
|
|
386
|
+
}, _e = (n, e, i = {
|
|
387
|
+
fallback: null
|
|
388
|
+
}) => {
|
|
389
|
+
let a = n;
|
|
390
|
+
e && (a = () => n().then((d) => ({
|
|
391
|
+
default: e(d)
|
|
392
|
+
})));
|
|
393
|
+
const t = q(a);
|
|
394
|
+
return (d) => /* @__PURE__ */ f(z, {
|
|
395
|
+
fallback: i.fallback,
|
|
396
|
+
children: /* @__PURE__ */ f(t, {
|
|
397
|
+
...d
|
|
398
|
+
})
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
class v {
|
|
402
|
+
constructor(e, i, a) {
|
|
403
|
+
s(this, "isOk");
|
|
404
|
+
s(this, "isErr");
|
|
405
|
+
s(this, "error");
|
|
406
|
+
s(this, "_value");
|
|
407
|
+
if (e && i)
|
|
408
|
+
throw new Error(
|
|
409
|
+
"InvalidOperation: A result cannot be successful and contain an error"
|
|
410
|
+
);
|
|
411
|
+
if (!e && !i)
|
|
412
|
+
throw new Error(
|
|
413
|
+
"InvalidOperation: A failing result needs to contain an error message"
|
|
414
|
+
);
|
|
415
|
+
this.isOk = e, this.isErr = !e, this.error = i, this._value = a, Object.freeze(this);
|
|
976
416
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
417
|
+
get value() {
|
|
418
|
+
if (this.isErr)
|
|
419
|
+
throw new Error(
|
|
420
|
+
"Can't get the value of an error result. Use 'errorValue' instead."
|
|
421
|
+
);
|
|
422
|
+
return this._value;
|
|
980
423
|
}
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
function fa(e) {
|
|
984
|
-
if (typeof e == "string") {
|
|
985
|
-
var t = unescape(encodeURIComponent(e));
|
|
986
|
-
e = new Uint8Array(t.length);
|
|
987
|
-
for (var n = 0; n < t.length; ++n)
|
|
988
|
-
e[n] = t.charCodeAt(n);
|
|
424
|
+
static ok(e) {
|
|
425
|
+
return new v(!0, void 0, e);
|
|
989
426
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
function ka(e) {
|
|
993
|
-
for (var t = [], n = e.length * 32, r = "0123456789abcdef", i = 0; i < n; i += 8) {
|
|
994
|
-
var o = e[i >> 5] >>> i % 32 & 255, l = parseInt(r.charAt(o >>> 4 & 15) + r.charAt(o & 15), 16);
|
|
995
|
-
t.push(l);
|
|
427
|
+
static fail(e) {
|
|
428
|
+
return new v(!1, e);
|
|
996
429
|
}
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
function pa(e, t) {
|
|
1003
|
-
e[t >> 5] |= 128 << t % 32, e[nn(t) - 1] = t;
|
|
1004
|
-
for (var n = 1732584193, r = -271733879, i = -1732584194, o = 271733878, l = 0; l < e.length; l += 16) {
|
|
1005
|
-
var m = n, c = r, k = i, N = o;
|
|
1006
|
-
n = b(n, r, i, o, e[l], 7, -680876936), o = b(o, n, r, i, e[l + 1], 12, -389564586), i = b(i, o, n, r, e[l + 2], 17, 606105819), r = b(r, i, o, n, e[l + 3], 22, -1044525330), n = b(n, r, i, o, e[l + 4], 7, -176418897), o = b(o, n, r, i, e[l + 5], 12, 1200080426), i = b(i, o, n, r, e[l + 6], 17, -1473231341), r = b(r, i, o, n, e[l + 7], 22, -45705983), n = b(n, r, i, o, e[l + 8], 7, 1770035416), o = b(o, n, r, i, e[l + 9], 12, -1958414417), i = b(i, o, n, r, e[l + 10], 17, -42063), r = b(r, i, o, n, e[l + 11], 22, -1990404162), n = b(n, r, i, o, e[l + 12], 7, 1804603682), o = b(o, n, r, i, e[l + 13], 12, -40341101), i = b(i, o, n, r, e[l + 14], 17, -1502002290), r = b(r, i, o, n, e[l + 15], 22, 1236535329), n = R(n, r, i, o, e[l + 1], 5, -165796510), o = R(o, n, r, i, e[l + 6], 9, -1069501632), i = R(i, o, n, r, e[l + 11], 14, 643717713), r = R(r, i, o, n, e[l], 20, -373897302), n = R(n, r, i, o, e[l + 5], 5, -701558691), o = R(o, n, r, i, e[l + 10], 9, 38016083), i = R(i, o, n, r, e[l + 15], 14, -660478335), r = R(r, i, o, n, e[l + 4], 20, -405537848), n = R(n, r, i, o, e[l + 9], 5, 568446438), o = R(o, n, r, i, e[l + 14], 9, -1019803690), i = R(i, o, n, r, e[l + 3], 14, -187363961), r = R(r, i, o, n, e[l + 8], 20, 1163531501), n = R(n, r, i, o, e[l + 13], 5, -1444681467), o = R(o, n, r, i, e[l + 2], 9, -51403784), i = R(i, o, n, r, e[l + 7], 14, 1735328473), r = R(r, i, o, n, e[l + 12], 20, -1926607734), n = T(n, r, i, o, e[l + 5], 4, -378558), o = T(o, n, r, i, e[l + 8], 11, -2022574463), i = T(i, o, n, r, e[l + 11], 16, 1839030562), r = T(r, i, o, n, e[l + 14], 23, -35309556), n = T(n, r, i, o, e[l + 1], 4, -1530992060), o = T(o, n, r, i, e[l + 4], 11, 1272893353), i = T(i, o, n, r, e[l + 7], 16, -155497632), r = T(r, i, o, n, e[l + 10], 23, -1094730640), n = T(n, r, i, o, e[l + 13], 4, 681279174), o = T(o, n, r, i, e[l], 11, -358537222), i = T(i, o, n, r, e[l + 3], 16, -722521979), r = T(r, i, o, n, e[l + 6], 23, 76029189), n = T(n, r, i, o, e[l + 9], 4, -640364487), o = T(o, n, r, i, e[l + 12], 11, -421815835), i = T(i, o, n, r, e[l + 15], 16, 530742520), r = T(r, i, o, n, e[l + 2], 23, -995338651), n = w(n, r, i, o, e[l], 6, -198630844), o = w(o, n, r, i, e[l + 7], 10, 1126891415), i = w(i, o, n, r, e[l + 14], 15, -1416354905), r = w(r, i, o, n, e[l + 5], 21, -57434055), n = w(n, r, i, o, e[l + 12], 6, 1700485571), o = w(o, n, r, i, e[l + 3], 10, -1894986606), i = w(i, o, n, r, e[l + 10], 15, -1051523), r = w(r, i, o, n, e[l + 1], 21, -2054922799), n = w(n, r, i, o, e[l + 8], 6, 1873313359), o = w(o, n, r, i, e[l + 15], 10, -30611744), i = w(i, o, n, r, e[l + 6], 15, -1560198380), r = w(r, i, o, n, e[l + 13], 21, 1309151649), n = w(n, r, i, o, e[l + 4], 6, -145523070), o = w(o, n, r, i, e[l + 11], 10, -1120210379), i = w(i, o, n, r, e[l + 2], 15, 718787259), r = w(r, i, o, n, e[l + 9], 21, -343485551), n = V(n, m), r = V(r, c), i = V(i, k), o = V(o, N);
|
|
430
|
+
static combine(e) {
|
|
431
|
+
for (const i of e)
|
|
432
|
+
if (i.isErr)
|
|
433
|
+
return i;
|
|
434
|
+
return v.ok();
|
|
1007
435
|
}
|
|
1008
|
-
return [n, r, i, o];
|
|
1009
436
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
n[r >> 5] |= (e[r / 8] & 255) << r % 32;
|
|
1015
|
-
return n;
|
|
1016
|
-
}
|
|
1017
|
-
function V(e, t) {
|
|
1018
|
-
var n = (e & 65535) + (t & 65535), r = (e >> 16) + (t >> 16) + (n >> 16);
|
|
1019
|
-
return r << 16 | n & 65535;
|
|
1020
|
-
}
|
|
1021
|
-
function Na(e, t) {
|
|
1022
|
-
return e << t | e >>> 32 - t;
|
|
1023
|
-
}
|
|
1024
|
-
function te(e, t, n, r, i, o) {
|
|
1025
|
-
return V(Na(V(V(t, e), V(r, o)), i), n);
|
|
1026
|
-
}
|
|
1027
|
-
function b(e, t, n, r, i, o, l) {
|
|
1028
|
-
return te(t & n | ~t & r, e, t, i, o, l);
|
|
1029
|
-
}
|
|
1030
|
-
function R(e, t, n, r, i, o, l) {
|
|
1031
|
-
return te(t & r | n & ~r, e, t, i, o, l);
|
|
1032
|
-
}
|
|
1033
|
-
function T(e, t, n, r, i, o, l) {
|
|
1034
|
-
return te(t ^ n ^ r, e, t, i, o, l);
|
|
1035
|
-
}
|
|
1036
|
-
function w(e, t, n, r, i, o, l) {
|
|
1037
|
-
return te(n ^ (t | ~r), e, t, i, o, l);
|
|
1038
|
-
}
|
|
1039
|
-
var ha = fa;
|
|
1040
|
-
en("v3", 48, ha);
|
|
1041
|
-
function Sa(e, t, n) {
|
|
1042
|
-
e = e || {};
|
|
1043
|
-
var r = e.random || (e.rng || ia)();
|
|
1044
|
-
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
1045
|
-
n = n || 0;
|
|
1046
|
-
for (var i = 0; i < 16; ++i)
|
|
1047
|
-
t[n + i] = r[i];
|
|
1048
|
-
return t;
|
|
437
|
+
class ke {
|
|
438
|
+
constructor(e) {
|
|
439
|
+
s(this, "value");
|
|
440
|
+
this.value = e;
|
|
1049
441
|
}
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
case 0:
|
|
1056
|
-
return t & n ^ ~t & r;
|
|
1057
|
-
case 1:
|
|
1058
|
-
return t ^ n ^ r;
|
|
1059
|
-
case 2:
|
|
1060
|
-
return t & n ^ t & r ^ n & r;
|
|
1061
|
-
case 3:
|
|
1062
|
-
return t ^ n ^ r;
|
|
442
|
+
isErr() {
|
|
443
|
+
return !0;
|
|
444
|
+
}
|
|
445
|
+
isOk() {
|
|
446
|
+
return !1;
|
|
1063
447
|
}
|
|
1064
448
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
var t = [1518500249, 1859775393, 2400959708, 3395469782], n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
1070
|
-
if (typeof e == "string") {
|
|
1071
|
-
var r = unescape(encodeURIComponent(e));
|
|
1072
|
-
e = [];
|
|
1073
|
-
for (var i = 0; i < r.length; ++i)
|
|
1074
|
-
e.push(r.charCodeAt(i));
|
|
1075
|
-
} else
|
|
1076
|
-
Array.isArray(e) || (e = Array.prototype.slice.call(e));
|
|
1077
|
-
e.push(128);
|
|
1078
|
-
for (var o = e.length / 4 + 2, l = Math.ceil(o / 16), m = new Array(l), c = 0; c < l; ++c) {
|
|
1079
|
-
for (var k = new Uint32Array(16), N = 0; N < 16; ++N)
|
|
1080
|
-
k[N] = e[c * 64 + N * 4] << 24 | e[c * 64 + N * 4 + 1] << 16 | e[c * 64 + N * 4 + 2] << 8 | e[c * 64 + N * 4 + 3];
|
|
1081
|
-
m[c] = k;
|
|
449
|
+
class ve {
|
|
450
|
+
constructor(e) {
|
|
451
|
+
s(this, "value");
|
|
452
|
+
this.value = e;
|
|
1082
453
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
S[E] = ve(S[E - 3] ^ S[E - 8] ^ S[E - 14] ^ S[E - 16], 1);
|
|
1089
|
-
for (var M = n[0], L = n[1], $ = n[2], Y = n[3], h = n[4], G = 0; G < 80; ++G) {
|
|
1090
|
-
var K = Math.floor(G / 20), re = ve(M, 5) + _a(K, L, $, Y) + h + t[K] + S[G] >>> 0;
|
|
1091
|
-
h = Y, Y = $, $ = ve(L, 30) >>> 0, L = M, M = re;
|
|
1092
|
-
}
|
|
1093
|
-
n[0] = n[0] + M >>> 0, n[1] = n[1] + L >>> 0, n[2] = n[2] + $ >>> 0, n[3] = n[3] + Y >>> 0, n[4] = n[4] + h >>> 0;
|
|
454
|
+
isErr() {
|
|
455
|
+
return !1;
|
|
456
|
+
}
|
|
457
|
+
isOk() {
|
|
458
|
+
return !0;
|
|
1094
459
|
}
|
|
1095
|
-
return [n[0] >> 24 & 255, n[0] >> 16 & 255, n[0] >> 8 & 255, n[0] & 255, n[1] >> 24 & 255, n[1] >> 16 & 255, n[1] >> 8 & 255, n[1] & 255, n[2] >> 24 & 255, n[2] >> 16 & 255, n[2] >> 8 & 255, n[2] & 255, n[3] >> 24 & 255, n[3] >> 16 & 255, n[3] >> 8 & 255, n[3] & 255, n[4] >> 24 & 255, n[4] >> 16 & 255, n[4] >> 8 & 255, n[4] & 255];
|
|
1096
460
|
}
|
|
1097
|
-
|
|
1098
|
-
en("v5", 80, Ea);
|
|
1099
|
-
const ze = "FINGERPRINT_LIVE_SHOPPING", Ya = () => {
|
|
1100
|
-
let e = qe.get(ze);
|
|
1101
|
-
return e || (e = ya(), qe.set(ze, e, { expires: 1 }), e);
|
|
1102
|
-
};
|
|
461
|
+
const De = (n) => new ke(n), Ae = (n) => new ve(n);
|
|
1103
462
|
export {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
463
|
+
ye as AccountInvalidError,
|
|
464
|
+
$ as AggregateRoot,
|
|
465
|
+
be as ApiGraphqlTypes,
|
|
466
|
+
R as CustomStorage,
|
|
467
|
+
y as DomainError,
|
|
468
|
+
ke as Err,
|
|
469
|
+
ve as Ok,
|
|
470
|
+
Se as ResourceNotFoundError,
|
|
471
|
+
v as Result,
|
|
472
|
+
Fe as StoreProvider,
|
|
473
|
+
ge as UnexpectedError,
|
|
474
|
+
we as apiCall,
|
|
475
|
+
Te as createAggregateRoot,
|
|
476
|
+
Ae as err,
|
|
477
|
+
Oe as getFingerprint,
|
|
478
|
+
Ce as getStore,
|
|
479
|
+
_e as lazyLoad,
|
|
480
|
+
De as ok,
|
|
481
|
+
Ie as searchParams,
|
|
482
|
+
Ee as shortId,
|
|
483
|
+
he as useStore
|
|
1124
484
|
};
|