@noxickon/onyx 0.0.1 → 0.0.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/chunks/Button-CLMaoxRW.js +11054 -0
- package/dist/chunks/Button-CZYAHivj.js +20 -0
- package/dist/chunks/Input-BQQT5eZ0.js +138 -0
- package/dist/chunks/Input-DJZcvJdP.js +1 -0
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.js +1 -0
- package/dist/chunks/constants-B1_n9ezb.js +1 -0
- package/dist/chunks/constants-CDXq37n6.js +4 -0
- package/dist/chunks/index-1-zQ3RaM.js +601 -0
- package/dist/chunks/index-BgUMV1hv.js +2129 -0
- package/dist/chunks/index-CjVXr8mh.js +2 -0
- package/dist/chunks/index-XTQUUzZ1.js +22 -0
- package/dist/chunks/isObject-BDHKUJKN.js +1 -0
- package/dist/chunks/isObject-vmP43YLW.js +6 -0
- package/dist/chunks/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/chunks/jsx-runtime-DUiatUiq.js +22 -0
- package/dist/chunks/useAuth-C-TIgBfr.js +61 -0
- package/dist/chunks/useAuth-CfKOZqhG.js +10 -0
- package/dist/chunks/useForm-BIKRbGHj.js +3085 -0
- package/dist/chunks/useForm-BZEaiRaa.js +26 -0
- package/dist/chunks/useQuery-B_ce5e8f.js +2 -0
- package/dist/chunks/useQuery-CJdYhuQu.js +1481 -0
- package/dist/context/context.cjs.js +1 -0
- package/dist/context/context.es.js +6 -0
- package/dist/context.d.ts +44 -0
- package/dist/hooks/hooks.cjs.js +6 -0
- package/dist/hooks/hooks.es.js +1917 -0
- package/dist/hooks.d.ts +130 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +148 -110
- package/dist/layout/layout.cjs.js +1 -0
- package/dist/layout/layout.es.js +264 -0
- package/dist/layout.d.ts +89 -0
- package/dist/onyx.cjs.js +12 -0
- package/dist/onyx.es.js +2523 -9494
- package/dist/pages/pages.cjs.js +7 -0
- package/dist/pages/pages.es.js +93 -0
- package/dist/pages.d.ts +14 -0
- package/dist/shared.css +104 -0
- package/package.json +41 -16
- package/dist/onyx.umd.js +0 -42
|
@@ -0,0 +1,601 @@
|
|
|
1
|
+
import { g as te } from "./_commonjsHelpers-C6fGbg64.js";
|
|
2
|
+
import re from "react";
|
|
3
|
+
function ne(t, e) {
|
|
4
|
+
for (var r = 0; r < e.length; r++) {
|
|
5
|
+
const n = e[r];
|
|
6
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
7
|
+
for (const o in n)
|
|
8
|
+
if (o !== "default" && !(o in t)) {
|
|
9
|
+
const i = Object.getOwnPropertyDescriptor(n, o);
|
|
10
|
+
i && Object.defineProperty(t, o, i.get ? i : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => n[o]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var N = function(t, e) {
|
|
20
|
+
return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
21
|
+
r.__proto__ = n;
|
|
22
|
+
} || function(r, n) {
|
|
23
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
24
|
+
}, N(t, e);
|
|
25
|
+
};
|
|
26
|
+
function B(t, e) {
|
|
27
|
+
if (typeof e != "function" && e !== null)
|
|
28
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
29
|
+
N(t, e);
|
|
30
|
+
function r() {
|
|
31
|
+
this.constructor = t;
|
|
32
|
+
}
|
|
33
|
+
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
|
|
34
|
+
}
|
|
35
|
+
var w = function() {
|
|
36
|
+
return w = Object.assign || function(e) {
|
|
37
|
+
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
38
|
+
r = arguments[n];
|
|
39
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}, w.apply(this, arguments);
|
|
43
|
+
};
|
|
44
|
+
function Te(t, e) {
|
|
45
|
+
var r = {};
|
|
46
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
47
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
48
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(t); o < n.length; o++)
|
|
49
|
+
e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (r[n[o]] = t[n[o]]);
|
|
50
|
+
return r;
|
|
51
|
+
}
|
|
52
|
+
function v(t, e, r) {
|
|
53
|
+
if (r || arguments.length === 2) for (var n = 0, o = e.length, i; n < o; n++)
|
|
54
|
+
(i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
|
|
55
|
+
return t.concat(i || Array.prototype.slice.call(e));
|
|
56
|
+
}
|
|
57
|
+
var S = "Invariant Violation", T = Object.setPrototypeOf, oe = T === void 0 ? function(t, e) {
|
|
58
|
+
return t.__proto__ = e, t;
|
|
59
|
+
} : T, J = (
|
|
60
|
+
/** @class */
|
|
61
|
+
function(t) {
|
|
62
|
+
B(e, t);
|
|
63
|
+
function e(r) {
|
|
64
|
+
r === void 0 && (r = S);
|
|
65
|
+
var n = t.call(this, typeof r == "number" ? S + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
66
|
+
return n.framesToPop = 1, n.name = S, oe(n, e.prototype), n;
|
|
67
|
+
}
|
|
68
|
+
return e;
|
|
69
|
+
}(Error)
|
|
70
|
+
);
|
|
71
|
+
function p(t, e) {
|
|
72
|
+
if (!t)
|
|
73
|
+
throw new J(e);
|
|
74
|
+
}
|
|
75
|
+
var $ = ["debug", "log", "warn", "error", "silent"], ie = $.indexOf("log");
|
|
76
|
+
function E(t) {
|
|
77
|
+
return function() {
|
|
78
|
+
if ($.indexOf(t) >= ie) {
|
|
79
|
+
var e = console[t] || console.log;
|
|
80
|
+
return e.apply(console, arguments);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
(function(t) {
|
|
85
|
+
t.debug = E("debug"), t.log = E("log"), t.warn = E("warn"), t.error = E("error");
|
|
86
|
+
})(p || (p = {}));
|
|
87
|
+
var Y = "3.13.8";
|
|
88
|
+
function c(t) {
|
|
89
|
+
try {
|
|
90
|
+
return t();
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const A = c(function() {
|
|
95
|
+
return globalThis;
|
|
96
|
+
}) || c(function() {
|
|
97
|
+
return window;
|
|
98
|
+
}) || c(function() {
|
|
99
|
+
return self;
|
|
100
|
+
}) || c(function() {
|
|
101
|
+
return global;
|
|
102
|
+
}) || // We don't expect the Function constructor ever to be invoked at runtime, as
|
|
103
|
+
// long as at least one of globalThis, window, self, or global is defined, so
|
|
104
|
+
// we are under no obligation to make it easy for static analysis tools to
|
|
105
|
+
// detect syntactic usage of the Function constructor. If you think you can
|
|
106
|
+
// improve your static analysis to detect this obfuscation, think again. This
|
|
107
|
+
// is an arms race you cannot win, at least not in JavaScript.
|
|
108
|
+
c(function() {
|
|
109
|
+
return c.constructor("return this")();
|
|
110
|
+
});
|
|
111
|
+
var L = /* @__PURE__ */ new Map();
|
|
112
|
+
function se(t) {
|
|
113
|
+
var e = L.get(t) || 1;
|
|
114
|
+
return L.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
|
|
115
|
+
}
|
|
116
|
+
function ae(t, e) {
|
|
117
|
+
var r = se("stringifyForDisplay");
|
|
118
|
+
return JSON.stringify(t, function(n, o) {
|
|
119
|
+
return o === void 0 ? r : o;
|
|
120
|
+
}, e).split(JSON.stringify(r)).join("<undefined>");
|
|
121
|
+
}
|
|
122
|
+
function O(t) {
|
|
123
|
+
return function(e) {
|
|
124
|
+
for (var r = [], n = 1; n < arguments.length; n++)
|
|
125
|
+
r[n - 1] = arguments[n];
|
|
126
|
+
if (typeof e == "number") {
|
|
127
|
+
var o = e;
|
|
128
|
+
e = C(o), e || (e = M(o, r), r = []);
|
|
129
|
+
}
|
|
130
|
+
t.apply(void 0, [e].concat(r));
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
var d = Object.assign(function(e, r) {
|
|
134
|
+
for (var n = [], o = 2; o < arguments.length; o++)
|
|
135
|
+
n[o - 2] = arguments[o];
|
|
136
|
+
e || p(e, C(r, n) || M(r, n));
|
|
137
|
+
}, {
|
|
138
|
+
debug: O(p.debug),
|
|
139
|
+
log: O(p.log),
|
|
140
|
+
warn: O(p.warn),
|
|
141
|
+
error: O(p.error)
|
|
142
|
+
});
|
|
143
|
+
function Le(t) {
|
|
144
|
+
for (var e = [], r = 1; r < arguments.length; r++)
|
|
145
|
+
e[r - 1] = arguments[r];
|
|
146
|
+
return new J(C(t, e) || M(t, e));
|
|
147
|
+
}
|
|
148
|
+
var P = Symbol.for("ApolloErrorMessageHandler_" + Y);
|
|
149
|
+
function X(t) {
|
|
150
|
+
if (typeof t == "string")
|
|
151
|
+
return t;
|
|
152
|
+
try {
|
|
153
|
+
return ae(t, 2).slice(0, 1e3);
|
|
154
|
+
} catch {
|
|
155
|
+
return "<non-serializable>";
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function C(t, e) {
|
|
159
|
+
if (e === void 0 && (e = []), !!t)
|
|
160
|
+
return A[P] && A[P](t, e.map(X));
|
|
161
|
+
}
|
|
162
|
+
function M(t, e) {
|
|
163
|
+
if (e === void 0 && (e = []), !!t)
|
|
164
|
+
return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
|
|
165
|
+
version: Y,
|
|
166
|
+
message: t,
|
|
167
|
+
args: e.map(X)
|
|
168
|
+
})));
|
|
169
|
+
}
|
|
170
|
+
var le = c(function() {
|
|
171
|
+
return navigator.product;
|
|
172
|
+
}) == "ReactNative", ue = typeof Symbol == "function" && typeof Symbol.for == "function", ce = typeof c(function() {
|
|
173
|
+
return window.document.createElement;
|
|
174
|
+
}) == "function", fe = (
|
|
175
|
+
// Following advice found in this comment from @domenic (maintainer of jsdom):
|
|
176
|
+
// https://github.com/jsdom/jsdom/issues/1537#issuecomment-229405327
|
|
177
|
+
//
|
|
178
|
+
// Since we control the version of Jest and jsdom used when running Apollo
|
|
179
|
+
// Client tests, and that version is recent enought to include " jsdom/x.y.z"
|
|
180
|
+
// at the end of the user agent string, I believe this case is all we need to
|
|
181
|
+
// check. Testing for "Node.js" was recommended for backwards compatibility
|
|
182
|
+
// with older version of jsdom, but we don't have that problem.
|
|
183
|
+
c(function() {
|
|
184
|
+
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
185
|
+
}) || !1
|
|
186
|
+
), Pe = (ce || le) && !fe;
|
|
187
|
+
function he(t) {
|
|
188
|
+
return t !== null && typeof t == "object";
|
|
189
|
+
}
|
|
190
|
+
function pe() {
|
|
191
|
+
}
|
|
192
|
+
class D {
|
|
193
|
+
constructor(e = 1 / 0, r = pe) {
|
|
194
|
+
this.max = e, this.dispose = r, this.map = /* @__PURE__ */ new Map(), this.newest = null, this.oldest = null;
|
|
195
|
+
}
|
|
196
|
+
has(e) {
|
|
197
|
+
return this.map.has(e);
|
|
198
|
+
}
|
|
199
|
+
get(e) {
|
|
200
|
+
const r = this.getNode(e);
|
|
201
|
+
return r && r.value;
|
|
202
|
+
}
|
|
203
|
+
get size() {
|
|
204
|
+
return this.map.size;
|
|
205
|
+
}
|
|
206
|
+
getNode(e) {
|
|
207
|
+
const r = this.map.get(e);
|
|
208
|
+
if (r && r !== this.newest) {
|
|
209
|
+
const { older: n, newer: o } = r;
|
|
210
|
+
o && (o.older = n), n && (n.newer = o), r.older = this.newest, r.older.newer = r, r.newer = null, this.newest = r, r === this.oldest && (this.oldest = o);
|
|
211
|
+
}
|
|
212
|
+
return r;
|
|
213
|
+
}
|
|
214
|
+
set(e, r) {
|
|
215
|
+
let n = this.getNode(e);
|
|
216
|
+
return n ? n.value = r : (n = {
|
|
217
|
+
key: e,
|
|
218
|
+
value: r,
|
|
219
|
+
newer: null,
|
|
220
|
+
older: this.newest
|
|
221
|
+
}, this.newest && (this.newest.newer = n), this.newest = n, this.oldest = this.oldest || n, this.map.set(e, n), n.value);
|
|
222
|
+
}
|
|
223
|
+
clean() {
|
|
224
|
+
for (; this.oldest && this.map.size > this.max; )
|
|
225
|
+
this.delete(this.oldest.key);
|
|
226
|
+
}
|
|
227
|
+
delete(e) {
|
|
228
|
+
const r = this.map.get(e);
|
|
229
|
+
return r ? (r === this.newest && (this.newest = r.older), r === this.oldest && (this.oldest = r.newer), r.newer && (r.newer.older = r.older), r.older && (r.older.newer = r.newer), this.map.delete(e), this.dispose(r.value, e), !0) : !1;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function z() {
|
|
233
|
+
}
|
|
234
|
+
const de = z, ge = typeof WeakRef < "u" ? WeakRef : function(t) {
|
|
235
|
+
return { deref: () => t };
|
|
236
|
+
}, ve = typeof WeakMap < "u" ? WeakMap : Map, ye = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
237
|
+
return {
|
|
238
|
+
register: z,
|
|
239
|
+
unregister: z
|
|
240
|
+
};
|
|
241
|
+
}, we = 10024;
|
|
242
|
+
class U {
|
|
243
|
+
constructor(e = 1 / 0, r = de) {
|
|
244
|
+
this.max = e, this.dispose = r, this.map = new ve(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
|
|
245
|
+
const n = this.unfinalizedNodes.values();
|
|
246
|
+
for (let o = 0; o < we; o++) {
|
|
247
|
+
const i = n.next().value;
|
|
248
|
+
if (!i)
|
|
249
|
+
break;
|
|
250
|
+
this.unfinalizedNodes.delete(i);
|
|
251
|
+
const s = i.key;
|
|
252
|
+
delete i.key, i.keyRef = new ge(s), this.registry.register(s, i, i);
|
|
253
|
+
}
|
|
254
|
+
this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
|
|
255
|
+
}, this.registry = new ye(this.deleteNode.bind(this));
|
|
256
|
+
}
|
|
257
|
+
has(e) {
|
|
258
|
+
return this.map.has(e);
|
|
259
|
+
}
|
|
260
|
+
get(e) {
|
|
261
|
+
const r = this.getNode(e);
|
|
262
|
+
return r && r.value;
|
|
263
|
+
}
|
|
264
|
+
getNode(e) {
|
|
265
|
+
const r = this.map.get(e);
|
|
266
|
+
if (r && r !== this.newest) {
|
|
267
|
+
const { older: n, newer: o } = r;
|
|
268
|
+
o && (o.older = n), n && (n.newer = o), r.older = this.newest, r.older.newer = r, r.newer = null, this.newest = r, r === this.oldest && (this.oldest = o);
|
|
269
|
+
}
|
|
270
|
+
return r;
|
|
271
|
+
}
|
|
272
|
+
set(e, r) {
|
|
273
|
+
let n = this.getNode(e);
|
|
274
|
+
return n ? n.value = r : (n = {
|
|
275
|
+
key: e,
|
|
276
|
+
value: r,
|
|
277
|
+
newer: null,
|
|
278
|
+
older: this.newest
|
|
279
|
+
}, this.newest && (this.newest.newer = n), this.newest = n, this.oldest = this.oldest || n, this.scheduleFinalization(n), this.map.set(e, n), this.size++, n.value);
|
|
280
|
+
}
|
|
281
|
+
clean() {
|
|
282
|
+
for (; this.oldest && this.size > this.max; )
|
|
283
|
+
this.deleteNode(this.oldest);
|
|
284
|
+
}
|
|
285
|
+
deleteNode(e) {
|
|
286
|
+
e === this.newest && (this.newest = e.older), e === this.oldest && (this.oldest = e.newer), e.newer && (e.newer.older = e.older), e.older && (e.older.newer = e.newer), this.size--;
|
|
287
|
+
const r = e.key || e.keyRef && e.keyRef.deref();
|
|
288
|
+
this.dispose(e.value, r), e.keyRef ? this.registry.unregister(e) : this.unfinalizedNodes.delete(e), r && this.map.delete(r);
|
|
289
|
+
}
|
|
290
|
+
delete(e) {
|
|
291
|
+
const r = this.map.get(e);
|
|
292
|
+
return r ? (this.deleteNode(r), !0) : !1;
|
|
293
|
+
}
|
|
294
|
+
scheduleFinalization(e) {
|
|
295
|
+
this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
var j = /* @__PURE__ */ new WeakSet();
|
|
299
|
+
function Z(t) {
|
|
300
|
+
t.size <= (t.max || -1) || j.has(t) || (j.add(t), setTimeout(function() {
|
|
301
|
+
t.clean(), j.delete(t);
|
|
302
|
+
}, 100));
|
|
303
|
+
}
|
|
304
|
+
var be = function(t, e) {
|
|
305
|
+
var r = new U(t, e);
|
|
306
|
+
return r.set = function(n, o) {
|
|
307
|
+
var i = U.prototype.set.call(this, n, o);
|
|
308
|
+
return Z(this), i;
|
|
309
|
+
}, r;
|
|
310
|
+
}, De = function(t, e) {
|
|
311
|
+
var r = new D(t, e);
|
|
312
|
+
return r.set = function(n, o) {
|
|
313
|
+
var i = D.prototype.set.call(this, n, o);
|
|
314
|
+
return Z(this), i;
|
|
315
|
+
}, r;
|
|
316
|
+
}, _e = Symbol.for("apollo.cacheSize"), Ee = w({}, A[_e]), Oe = {};
|
|
317
|
+
function me(t, e) {
|
|
318
|
+
Oe[t] = e;
|
|
319
|
+
}
|
|
320
|
+
function F() {
|
|
321
|
+
for (var t = [], e = 0; e < arguments.length; e++)
|
|
322
|
+
t[e] = arguments[e];
|
|
323
|
+
var r = /* @__PURE__ */ Object.create(null);
|
|
324
|
+
return t.forEach(function(n) {
|
|
325
|
+
n && Object.keys(n).forEach(function(o) {
|
|
326
|
+
var i = n[o];
|
|
327
|
+
i !== void 0 && (r[o] = i);
|
|
328
|
+
});
|
|
329
|
+
}), r;
|
|
330
|
+
}
|
|
331
|
+
function Ue(t, e) {
|
|
332
|
+
return F(t, e, e.variables && {
|
|
333
|
+
variables: F(w(w({}, t && t.variables), e.variables))
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function Fe(t) {
|
|
337
|
+
return t.hasOwnProperty("graphQLErrors");
|
|
338
|
+
}
|
|
339
|
+
var Se = function(t) {
|
|
340
|
+
var e = v(v(v([], t.graphQLErrors, !0), t.clientErrors, !0), t.protocolErrors, !0);
|
|
341
|
+
return t.networkError && e.push(t.networkError), e.map(function(r) {
|
|
342
|
+
return he(r) && r.message || "Error message not found.";
|
|
343
|
+
}).join(`
|
|
344
|
+
`);
|
|
345
|
+
}, We = (
|
|
346
|
+
/** @class */
|
|
347
|
+
function(t) {
|
|
348
|
+
B(e, t);
|
|
349
|
+
function e(r) {
|
|
350
|
+
var n = r.graphQLErrors, o = r.protocolErrors, i = r.clientErrors, s = r.networkError, a = r.errorMessage, u = r.extraInfo, l = t.call(this, a) || this;
|
|
351
|
+
return l.name = "ApolloError", l.graphQLErrors = n || [], l.protocolErrors = o || [], l.clientErrors = i || [], l.networkError = s || null, l.message = a || Se(l), l.extraInfo = u, l.cause = v(v(v([
|
|
352
|
+
s
|
|
353
|
+
], n || [], !0), o || [], !0), i || [], !0).find(function(b) {
|
|
354
|
+
return !!b;
|
|
355
|
+
}) || null, l.__proto__ = e.prototype, l;
|
|
356
|
+
}
|
|
357
|
+
return e;
|
|
358
|
+
}(Error)
|
|
359
|
+
);
|
|
360
|
+
const { toString: W, hasOwnProperty: je } = Object.prototype, q = Function.prototype.toString, x = /* @__PURE__ */ new Map();
|
|
361
|
+
function qe(t, e) {
|
|
362
|
+
try {
|
|
363
|
+
return R(t, e);
|
|
364
|
+
} finally {
|
|
365
|
+
x.clear();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
function R(t, e) {
|
|
369
|
+
if (t === e)
|
|
370
|
+
return !0;
|
|
371
|
+
const r = W.call(t), n = W.call(e);
|
|
372
|
+
if (r !== n)
|
|
373
|
+
return !1;
|
|
374
|
+
switch (r) {
|
|
375
|
+
case "[object Array]":
|
|
376
|
+
if (t.length !== e.length)
|
|
377
|
+
return !1;
|
|
378
|
+
// Fall through to object case...
|
|
379
|
+
case "[object Object]": {
|
|
380
|
+
if (K(t, e))
|
|
381
|
+
return !0;
|
|
382
|
+
const o = Q(t), i = Q(e), s = o.length;
|
|
383
|
+
if (s !== i.length)
|
|
384
|
+
return !1;
|
|
385
|
+
for (let a = 0; a < s; ++a)
|
|
386
|
+
if (!je.call(e, o[a]))
|
|
387
|
+
return !1;
|
|
388
|
+
for (let a = 0; a < s; ++a) {
|
|
389
|
+
const u = o[a];
|
|
390
|
+
if (!R(t[u], e[u]))
|
|
391
|
+
return !1;
|
|
392
|
+
}
|
|
393
|
+
return !0;
|
|
394
|
+
}
|
|
395
|
+
case "[object Error]":
|
|
396
|
+
return t.name === e.name && t.message === e.message;
|
|
397
|
+
case "[object Number]":
|
|
398
|
+
if (t !== t)
|
|
399
|
+
return e !== e;
|
|
400
|
+
// Fall through to shared +a === +b case...
|
|
401
|
+
case "[object Boolean]":
|
|
402
|
+
case "[object Date]":
|
|
403
|
+
return +t == +e;
|
|
404
|
+
case "[object RegExp]":
|
|
405
|
+
case "[object String]":
|
|
406
|
+
return t == `${e}`;
|
|
407
|
+
case "[object Map]":
|
|
408
|
+
case "[object Set]": {
|
|
409
|
+
if (t.size !== e.size)
|
|
410
|
+
return !1;
|
|
411
|
+
if (K(t, e))
|
|
412
|
+
return !0;
|
|
413
|
+
const o = t.entries(), i = r === "[object Map]";
|
|
414
|
+
for (; ; ) {
|
|
415
|
+
const s = o.next();
|
|
416
|
+
if (s.done)
|
|
417
|
+
break;
|
|
418
|
+
const [a, u] = s.value;
|
|
419
|
+
if (!e.has(a) || i && !R(u, e.get(a)))
|
|
420
|
+
return !1;
|
|
421
|
+
}
|
|
422
|
+
return !0;
|
|
423
|
+
}
|
|
424
|
+
case "[object Uint16Array]":
|
|
425
|
+
case "[object Uint8Array]":
|
|
426
|
+
// Buffer, in Node.js.
|
|
427
|
+
case "[object Uint32Array]":
|
|
428
|
+
case "[object Int32Array]":
|
|
429
|
+
case "[object Int8Array]":
|
|
430
|
+
case "[object Int16Array]":
|
|
431
|
+
case "[object ArrayBuffer]":
|
|
432
|
+
t = new Uint8Array(t), e = new Uint8Array(e);
|
|
433
|
+
// Fall through...
|
|
434
|
+
case "[object DataView]": {
|
|
435
|
+
let o = t.byteLength;
|
|
436
|
+
if (o === e.byteLength)
|
|
437
|
+
for (; o-- && t[o] === e[o]; )
|
|
438
|
+
;
|
|
439
|
+
return o === -1;
|
|
440
|
+
}
|
|
441
|
+
case "[object AsyncFunction]":
|
|
442
|
+
case "[object GeneratorFunction]":
|
|
443
|
+
case "[object AsyncGeneratorFunction]":
|
|
444
|
+
case "[object Function]": {
|
|
445
|
+
const o = q.call(t);
|
|
446
|
+
return o !== q.call(e) ? !1 : !Ae(o, Ne);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return !1;
|
|
450
|
+
}
|
|
451
|
+
function Q(t) {
|
|
452
|
+
return Object.keys(t).filter(ke, t);
|
|
453
|
+
}
|
|
454
|
+
function ke(t) {
|
|
455
|
+
return this[t] !== void 0;
|
|
456
|
+
}
|
|
457
|
+
const Ne = "{ [native code] }";
|
|
458
|
+
function Ae(t, e) {
|
|
459
|
+
const r = t.length - e.length;
|
|
460
|
+
return r >= 0 && t.indexOf(e, r) === r;
|
|
461
|
+
}
|
|
462
|
+
function K(t, e) {
|
|
463
|
+
let r = x.get(t);
|
|
464
|
+
if (r) {
|
|
465
|
+
if (r.has(e))
|
|
466
|
+
return !0;
|
|
467
|
+
} else
|
|
468
|
+
x.set(t, r = /* @__PURE__ */ new Set());
|
|
469
|
+
return r.add(e), !1;
|
|
470
|
+
}
|
|
471
|
+
var k = { exports: {} }, G;
|
|
472
|
+
function ze() {
|
|
473
|
+
return G || (G = 1, function(t) {
|
|
474
|
+
t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = void 0, t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, Object.assign(t.exports, re);
|
|
475
|
+
}(k)), k.exports;
|
|
476
|
+
}
|
|
477
|
+
var y = ze();
|
|
478
|
+
const xe = /* @__PURE__ */ te(y), Re = /* @__PURE__ */ ne({
|
|
479
|
+
__proto__: null,
|
|
480
|
+
default: xe
|
|
481
|
+
}, [y]);
|
|
482
|
+
var H = ue ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
483
|
+
function Ce() {
|
|
484
|
+
d("createContext" in Re, 54);
|
|
485
|
+
var t = y.createContext[H];
|
|
486
|
+
return t || (Object.defineProperty(y.createContext, H, {
|
|
487
|
+
value: t = y.createContext({}),
|
|
488
|
+
enumerable: !1,
|
|
489
|
+
writable: !1,
|
|
490
|
+
configurable: !0
|
|
491
|
+
}), t.displayName = "ApolloContext"), t;
|
|
492
|
+
}
|
|
493
|
+
function Qe(t) {
|
|
494
|
+
var e = y.useContext(Ce()), r = t || e.client;
|
|
495
|
+
return d(!!r, 58), r;
|
|
496
|
+
}
|
|
497
|
+
var f;
|
|
498
|
+
(function(t) {
|
|
499
|
+
t[t.Query = 0] = "Query", t[t.Mutation = 1] = "Mutation", t[t.Subscription = 2] = "Subscription";
|
|
500
|
+
})(f || (f = {}));
|
|
501
|
+
var g;
|
|
502
|
+
function V(t) {
|
|
503
|
+
var e;
|
|
504
|
+
switch (t) {
|
|
505
|
+
case f.Query:
|
|
506
|
+
e = "Query";
|
|
507
|
+
break;
|
|
508
|
+
case f.Mutation:
|
|
509
|
+
e = "Mutation";
|
|
510
|
+
break;
|
|
511
|
+
case f.Subscription:
|
|
512
|
+
e = "Subscription";
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
return e;
|
|
516
|
+
}
|
|
517
|
+
function ee(t) {
|
|
518
|
+
g || (g = new be(
|
|
519
|
+
Ee.parser || 1e3
|
|
520
|
+
/* defaultCacheSizes.parser */
|
|
521
|
+
));
|
|
522
|
+
var e = g.get(t);
|
|
523
|
+
if (e)
|
|
524
|
+
return e;
|
|
525
|
+
var r, n, o;
|
|
526
|
+
d(!!t && !!t.kind, 70, t);
|
|
527
|
+
for (var i = [], s = [], a = [], u = [], l = 0, b = t.definitions; l < b.length; l++) {
|
|
528
|
+
var h = b[l];
|
|
529
|
+
if (h.kind === "FragmentDefinition") {
|
|
530
|
+
i.push(h);
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
if (h.kind === "OperationDefinition")
|
|
534
|
+
switch (h.operation) {
|
|
535
|
+
case "query":
|
|
536
|
+
s.push(h);
|
|
537
|
+
break;
|
|
538
|
+
case "mutation":
|
|
539
|
+
a.push(h);
|
|
540
|
+
break;
|
|
541
|
+
case "subscription":
|
|
542
|
+
u.push(h);
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
d(!i.length || s.length || a.length || u.length, 71), d(
|
|
547
|
+
s.length + a.length + u.length <= 1,
|
|
548
|
+
72,
|
|
549
|
+
t,
|
|
550
|
+
s.length,
|
|
551
|
+
u.length,
|
|
552
|
+
a.length
|
|
553
|
+
), n = s.length ? f.Query : f.Mutation, !s.length && !a.length && (n = f.Subscription);
|
|
554
|
+
var m = s.length ? s : a.length ? a : u;
|
|
555
|
+
d(m.length === 1, 73, t, m.length);
|
|
556
|
+
var _ = m[0];
|
|
557
|
+
r = _.variableDefinitions || [], _.name && _.name.kind === "Name" ? o = _.name.value : o = "data";
|
|
558
|
+
var I = { name: o, type: n, variables: r };
|
|
559
|
+
return g.set(t, I), I;
|
|
560
|
+
}
|
|
561
|
+
ee.resetCache = function() {
|
|
562
|
+
g = void 0;
|
|
563
|
+
};
|
|
564
|
+
globalThis.__DEV__ !== !1 && me("parser", function() {
|
|
565
|
+
return g ? g.size : 0;
|
|
566
|
+
});
|
|
567
|
+
function Ke(t, e) {
|
|
568
|
+
var r = ee(t), n = V(e), o = V(r.type);
|
|
569
|
+
d(
|
|
570
|
+
r.type === e,
|
|
571
|
+
74,
|
|
572
|
+
n,
|
|
573
|
+
n,
|
|
574
|
+
o
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
export {
|
|
578
|
+
De as A,
|
|
579
|
+
f as D,
|
|
580
|
+
Re as R,
|
|
581
|
+
w as _,
|
|
582
|
+
he as a,
|
|
583
|
+
ue as b,
|
|
584
|
+
Ee as c,
|
|
585
|
+
Te as d,
|
|
586
|
+
qe as e,
|
|
587
|
+
B as f,
|
|
588
|
+
F as g,
|
|
589
|
+
Fe as h,
|
|
590
|
+
d as i,
|
|
591
|
+
We as j,
|
|
592
|
+
y as k,
|
|
593
|
+
Pe as l,
|
|
594
|
+
Ce as m,
|
|
595
|
+
Le as n,
|
|
596
|
+
Ue as o,
|
|
597
|
+
ce as p,
|
|
598
|
+
me as r,
|
|
599
|
+
Qe as u,
|
|
600
|
+
Ke as v
|
|
601
|
+
};
|