promogame-player 2.2.0 → 2.2.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/components/PromogameGame/index.js +336 -329
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as be, jsxs as da, Fragment as va } from "react/jsx-runtime";
|
|
2
2
|
import * as Wr from "react";
|
|
3
3
|
import pa, { useMemo as Ge, useEffect as Br } from "react";
|
|
4
4
|
import { graphql as br } from "../../gql/gql.js";
|
|
@@ -54,7 +54,7 @@ function H(t, e) {
|
|
|
54
54
|
e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (r[n[i]] = t[n[i]]);
|
|
55
55
|
return r;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function le(t, e, r, n) {
|
|
58
58
|
function i(a) {
|
|
59
59
|
return a instanceof r ? a : new r(function(o) {
|
|
60
60
|
o(a);
|
|
@@ -81,7 +81,7 @@ function fe(t, e, r, n) {
|
|
|
81
81
|
c((n = n.apply(t, e || [])).next());
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function he(t, e) {
|
|
85
85
|
var r = { label: 0, sent: function() {
|
|
86
86
|
if (a[0] & 1) throw a[1];
|
|
87
87
|
return a[1];
|
|
@@ -160,7 +160,7 @@ var jt = "Invariant Violation", Ur = Object.setPrototypeOf, ba = Ur === void 0 ?
|
|
|
160
160
|
return e;
|
|
161
161
|
}(Error)
|
|
162
162
|
);
|
|
163
|
-
function
|
|
163
|
+
function Ee(t, e) {
|
|
164
164
|
if (!t)
|
|
165
165
|
throw new Xn(e);
|
|
166
166
|
}
|
|
@@ -175,21 +175,21 @@ function pt(t) {
|
|
|
175
175
|
}
|
|
176
176
|
(function(t) {
|
|
177
177
|
t.debug = pt("debug"), t.log = pt("log"), t.warn = pt("warn"), t.error = pt("error");
|
|
178
|
-
})(
|
|
178
|
+
})(Ee || (Ee = {}));
|
|
179
179
|
var _r = "3.13.8";
|
|
180
|
-
function
|
|
180
|
+
function K(t) {
|
|
181
181
|
try {
|
|
182
182
|
return t();
|
|
183
183
|
} catch {
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
const Zt =
|
|
186
|
+
const Zt = K(function() {
|
|
187
187
|
return globalThis;
|
|
188
|
-
}) ||
|
|
188
|
+
}) || K(function() {
|
|
189
189
|
return window;
|
|
190
|
-
}) ||
|
|
190
|
+
}) || K(function() {
|
|
191
191
|
return self;
|
|
192
|
-
}) ||
|
|
192
|
+
}) || K(function() {
|
|
193
193
|
return global;
|
|
194
194
|
}) || // We don't expect the Function constructor ever to be invoked at runtime, as
|
|
195
195
|
// long as at least one of globalThis, window, self, or global is defined, so
|
|
@@ -197,8 +197,8 @@ const Zt = X(function() {
|
|
|
197
197
|
// detect syntactic usage of the Function constructor. If you think you can
|
|
198
198
|
// improve your static analysis to detect this obfuscation, think again. This
|
|
199
199
|
// is an arms race you cannot win, at least not in JavaScript.
|
|
200
|
-
|
|
201
|
-
return
|
|
200
|
+
K(function() {
|
|
201
|
+
return K.constructor("return this")();
|
|
202
202
|
});
|
|
203
203
|
var $r = /* @__PURE__ */ new Map();
|
|
204
204
|
function er(t) {
|
|
@@ -226,12 +226,12 @@ function yt(t) {
|
|
|
226
226
|
var S = Object.assign(function(e, r) {
|
|
227
227
|
for (var n = [], i = 2; i < arguments.length; i++)
|
|
228
228
|
n[i - 2] = arguments[i];
|
|
229
|
-
e ||
|
|
229
|
+
e || Ee(e, Er(r, n) || wr(r, n));
|
|
230
230
|
}, {
|
|
231
|
-
debug: yt(
|
|
232
|
-
log: yt(
|
|
233
|
-
warn: yt(
|
|
234
|
-
error: yt(
|
|
231
|
+
debug: yt(Ee.debug),
|
|
232
|
+
log: yt(Ee.log),
|
|
233
|
+
warn: yt(Ee.warn),
|
|
234
|
+
error: yt(Ee.error)
|
|
235
235
|
});
|
|
236
236
|
function B(t) {
|
|
237
237
|
for (var e = [], r = 1; r < arguments.length; r++)
|
|
@@ -367,41 +367,41 @@ function Oa(t, e) {
|
|
|
367
367
|
}
|
|
368
368
|
const Sa = 10, ri = 2;
|
|
369
369
|
function Ta(t) {
|
|
370
|
-
return
|
|
370
|
+
return kt(t, []);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function kt(t, e) {
|
|
373
373
|
switch (typeof t) {
|
|
374
374
|
case "string":
|
|
375
375
|
return JSON.stringify(t);
|
|
376
376
|
case "function":
|
|
377
377
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
378
378
|
case "object":
|
|
379
|
-
return
|
|
379
|
+
return Da(t, e);
|
|
380
380
|
default:
|
|
381
381
|
return String(t);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Da(t, e) {
|
|
385
385
|
if (t === null)
|
|
386
386
|
return "null";
|
|
387
387
|
if (e.includes(t))
|
|
388
388
|
return "[Circular]";
|
|
389
389
|
const r = [...e, t];
|
|
390
|
-
if (
|
|
390
|
+
if (ka(t)) {
|
|
391
391
|
const n = t.toJSON();
|
|
392
392
|
if (n !== t)
|
|
393
|
-
return typeof n == "string" ? n :
|
|
393
|
+
return typeof n == "string" ? n : kt(n, r);
|
|
394
394
|
} else if (Array.isArray(t))
|
|
395
395
|
return Fa(t, r);
|
|
396
396
|
return Ia(t, r);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ka(t) {
|
|
399
399
|
return typeof t.toJSON == "function";
|
|
400
400
|
}
|
|
401
401
|
function Ia(t, e) {
|
|
402
402
|
const r = Object.entries(t);
|
|
403
403
|
return r.length === 0 ? "{}" : e.length > ri ? "[" + Ra(t) + "]" : "{ " + r.map(
|
|
404
|
-
([i, a]) => i + ": " +
|
|
404
|
+
([i, a]) => i + ": " + kt(a, e)
|
|
405
405
|
).join(", ") + " }";
|
|
406
406
|
}
|
|
407
407
|
function Fa(t, e) {
|
|
@@ -411,7 +411,7 @@ function Fa(t, e) {
|
|
|
411
411
|
return "[Array]";
|
|
412
412
|
const r = Math.min(Sa, t.length), n = t.length - r, i = [];
|
|
413
413
|
for (let a = 0; a < r; ++a)
|
|
414
|
-
i.push(
|
|
414
|
+
i.push(kt(t[a], e));
|
|
415
415
|
return n === 1 ? i.push("... 1 more item") : n > 1 && i.push(`... ${n} more items`), "[" + i.join(", ") + "]";
|
|
416
416
|
}
|
|
417
417
|
function Ra(t) {
|
|
@@ -597,7 +597,7 @@ const Na = [
|
|
|
597
597
|
"\\u009E",
|
|
598
598
|
"\\u009F"
|
|
599
599
|
], It = Object.freeze({});
|
|
600
|
-
function
|
|
600
|
+
function Z(t, e, r = ti) {
|
|
601
601
|
const n = /* @__PURE__ */ new Map();
|
|
602
602
|
for (const v of Object.values(N))
|
|
603
603
|
n.set(v, Aa(e, v));
|
|
@@ -612,8 +612,8 @@ function K(t, e, r = ti) {
|
|
|
612
612
|
c = c.slice();
|
|
613
613
|
let w = 0;
|
|
614
614
|
for (const [O, E] of u) {
|
|
615
|
-
const
|
|
616
|
-
E === null ? (c.splice(
|
|
615
|
+
const D = O - w;
|
|
616
|
+
E === null ? (c.splice(D, 1), w++) : c[D] = E;
|
|
617
617
|
}
|
|
618
618
|
} else {
|
|
619
619
|
c = { ...c };
|
|
@@ -672,7 +672,7 @@ function Aa(t, e) {
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
function xa(t) {
|
|
675
|
-
return
|
|
675
|
+
return Z(t, qa);
|
|
676
676
|
}
|
|
677
677
|
const ja = 80, qa = {
|
|
678
678
|
Name: {
|
|
@@ -704,7 +704,7 @@ const ja = 80, qa = {
|
|
|
704
704
|
leave: ({ variable: t, type: e, defaultValue: r, directives: n }) => t + ": " + e + I(" = ", r) + I(" ", T(n, " "))
|
|
705
705
|
},
|
|
706
706
|
SelectionSet: {
|
|
707
|
-
leave: ({ selections: t }) =>
|
|
707
|
+
leave: ({ selections: t }) => X(t)
|
|
708
708
|
},
|
|
709
709
|
Field: {
|
|
710
710
|
leave({ alias: t, name: e, arguments: r, directives: n, selectionSet: i }) {
|
|
@@ -785,7 +785,7 @@ const ja = 80, qa = {
|
|
|
785
785
|
// Type System Definitions
|
|
786
786
|
SchemaDefinition: {
|
|
787
787
|
leave: ({ description: t, directives: e, operationTypes: r }) => I("", t, `
|
|
788
|
-
`) + T(["schema", T(e, " "),
|
|
788
|
+
`) + T(["schema", T(e, " "), X(r)], " ")
|
|
789
789
|
},
|
|
790
790
|
OperationTypeDefinition: {
|
|
791
791
|
leave: ({ operation: t, type: e }) => t + ": " + e
|
|
@@ -802,7 +802,7 @@ const ja = 80, qa = {
|
|
|
802
802
|
e,
|
|
803
803
|
I("implements ", T(r, " & ")),
|
|
804
804
|
T(n, " "),
|
|
805
|
-
|
|
805
|
+
X(i)
|
|
806
806
|
],
|
|
807
807
|
" "
|
|
808
808
|
)
|
|
@@ -829,7 +829,7 @@ const ja = 80, qa = {
|
|
|
829
829
|
e,
|
|
830
830
|
I("implements ", T(r, " & ")),
|
|
831
831
|
T(n, " "),
|
|
832
|
-
|
|
832
|
+
X(i)
|
|
833
833
|
],
|
|
834
834
|
" "
|
|
835
835
|
)
|
|
@@ -843,7 +843,7 @@ const ja = 80, qa = {
|
|
|
843
843
|
},
|
|
844
844
|
EnumTypeDefinition: {
|
|
845
845
|
leave: ({ description: t, name: e, directives: r, values: n }) => I("", t, `
|
|
846
|
-
`) + T(["enum", e, T(r, " "),
|
|
846
|
+
`) + T(["enum", e, T(r, " "), X(n)], " ")
|
|
847
847
|
},
|
|
848
848
|
EnumValueDefinition: {
|
|
849
849
|
leave: ({ description: t, name: e, directives: r }) => I("", t, `
|
|
@@ -851,7 +851,7 @@ const ja = 80, qa = {
|
|
|
851
851
|
},
|
|
852
852
|
InputObjectTypeDefinition: {
|
|
853
853
|
leave: ({ description: t, name: e, directives: r, fields: n }) => I("", t, `
|
|
854
|
-
`) + T(["input", e, T(r, " "),
|
|
854
|
+
`) + T(["input", e, T(r, " "), X(n)], " ")
|
|
855
855
|
},
|
|
856
856
|
DirectiveDefinition: {
|
|
857
857
|
leave: ({ description: t, name: e, arguments: r, repeatable: n, locations: i }) => I("", t, `
|
|
@@ -862,7 +862,7 @@ const ja = 80, qa = {
|
|
|
862
862
|
},
|
|
863
863
|
SchemaExtension: {
|
|
864
864
|
leave: ({ directives: t, operationTypes: e }) => T(
|
|
865
|
-
["extend schema", T(t, " "),
|
|
865
|
+
["extend schema", T(t, " "), X(e)],
|
|
866
866
|
" "
|
|
867
867
|
)
|
|
868
868
|
},
|
|
@@ -876,7 +876,7 @@ const ja = 80, qa = {
|
|
|
876
876
|
t,
|
|
877
877
|
I("implements ", T(e, " & ")),
|
|
878
878
|
T(r, " "),
|
|
879
|
-
|
|
879
|
+
X(n)
|
|
880
880
|
],
|
|
881
881
|
" "
|
|
882
882
|
)
|
|
@@ -888,7 +888,7 @@ const ja = 80, qa = {
|
|
|
888
888
|
t,
|
|
889
889
|
I("implements ", T(e, " & ")),
|
|
890
890
|
T(r, " "),
|
|
891
|
-
|
|
891
|
+
X(n)
|
|
892
892
|
],
|
|
893
893
|
" "
|
|
894
894
|
)
|
|
@@ -905,17 +905,17 @@ const ja = 80, qa = {
|
|
|
905
905
|
)
|
|
906
906
|
},
|
|
907
907
|
EnumTypeExtension: {
|
|
908
|
-
leave: ({ name: t, directives: e, values: r }) => T(["extend enum", t, T(e, " "),
|
|
908
|
+
leave: ({ name: t, directives: e, values: r }) => T(["extend enum", t, T(e, " "), X(r)], " ")
|
|
909
909
|
},
|
|
910
910
|
InputObjectTypeExtension: {
|
|
911
|
-
leave: ({ name: t, directives: e, fields: r }) => T(["extend input", t, T(e, " "),
|
|
911
|
+
leave: ({ name: t, directives: e, fields: r }) => T(["extend input", t, T(e, " "), X(r)], " ")
|
|
912
912
|
}
|
|
913
913
|
};
|
|
914
914
|
function T(t, e = "") {
|
|
915
915
|
var r;
|
|
916
916
|
return (r = t == null ? void 0 : t.filter((n) => n).join(e)) !== null && r !== void 0 ? r : "";
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function X(t) {
|
|
919
919
|
return I(`{
|
|
920
920
|
`, gt(T(t, `
|
|
921
921
|
`)), `
|
|
@@ -945,7 +945,7 @@ function ft(t, e) {
|
|
|
945
945
|
}
|
|
946
946
|
function ot(t, e, r) {
|
|
947
947
|
var n = new Set(t), i = n.size;
|
|
948
|
-
return
|
|
948
|
+
return Z(e, {
|
|
949
949
|
Directive: function(a) {
|
|
950
950
|
if (n.delete(a.name.value) && (!r || !n.size))
|
|
951
951
|
return It;
|
|
@@ -986,7 +986,7 @@ function za(t) {
|
|
|
986
986
|
return globalThis.__DEV__ !== !1 && i && (i.value.kind === N.VARIABLE ? globalThis.__DEV__ !== !1 && S.warn(82) : i.value.kind !== N.STRING ? globalThis.__DEV__ !== !1 && S.warn(83) : i.value.value !== "migrate" && globalThis.__DEV__ !== !1 && S.warn(84, i.value.value)), i && "value" in i.value && i.value.value === "migrate" ? "migrate" : "unmask";
|
|
987
987
|
}
|
|
988
988
|
const Wa = () => /* @__PURE__ */ Object.create(null), { forEach: Ba, slice: Zr } = Array.prototype, { hasOwnProperty: Ua } = Object.prototype;
|
|
989
|
-
class
|
|
989
|
+
class ue {
|
|
990
990
|
constructor(e = !0, r = Wa) {
|
|
991
991
|
this.weakness = e, this.makeData = r;
|
|
992
992
|
}
|
|
@@ -1023,7 +1023,7 @@ class se {
|
|
|
1023
1023
|
getChildTrie(e) {
|
|
1024
1024
|
const r = this.mapFor(e, !0);
|
|
1025
1025
|
let n = r.get(e);
|
|
1026
|
-
return n || r.set(e, n = new
|
|
1026
|
+
return n || r.set(e, n = new ue(this.weakness, this.makeData)), n;
|
|
1027
1027
|
}
|
|
1028
1028
|
mapFor(e, r) {
|
|
1029
1029
|
return this.weakness && $a(e) ? this.weak || (r ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (r ? this.strong = /* @__PURE__ */ new Map() : void 0);
|
|
@@ -1040,9 +1040,9 @@ function $a(t) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
return !1;
|
|
1042
1042
|
}
|
|
1043
|
-
var ni =
|
|
1043
|
+
var ni = K(function() {
|
|
1044
1044
|
return navigator.product;
|
|
1045
|
-
}) == "ReactNative",
|
|
1045
|
+
}) == "ReactNative", De = typeof WeakMap == "function" && !(ni && !global.HermesInternal), Or = typeof WeakSet == "function", Sr = typeof Symbol == "function" && typeof Symbol.for == "function", Ft = Sr && Symbol.asyncIterator, ii = typeof K(function() {
|
|
1046
1046
|
return window.document.createElement;
|
|
1047
1047
|
}) == "function", Ga = (
|
|
1048
1048
|
// Following advice found in this comment from @domenic (maintainer of jsdom):
|
|
@@ -1053,7 +1053,7 @@ var ni = X(function() {
|
|
|
1053
1053
|
// at the end of the user agent string, I believe this case is all we need to
|
|
1054
1054
|
// check. Testing for "Node.js" was recommended for backwards compatibility
|
|
1055
1055
|
// with older version of jsdom, but we don't have that problem.
|
|
1056
|
-
|
|
1056
|
+
K(function() {
|
|
1057
1057
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
1058
1058
|
}) || !1
|
|
1059
1059
|
), Ha = (ii || ni) && !Ga;
|
|
@@ -1116,7 +1116,7 @@ function Rt(t, e) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
function Ya(t) {
|
|
1118
1118
|
var e = !0;
|
|
1119
|
-
return
|
|
1119
|
+
return Z(t, {
|
|
1120
1120
|
FragmentSpread: function(r) {
|
|
1121
1121
|
if (e = !!r.directives && r.directives.some(function(n) {
|
|
1122
1122
|
return n.name.value === "unmask";
|
|
@@ -1251,9 +1251,9 @@ var Tr = function(t, e) {
|
|
|
1251
1251
|
var a = tr.prototype.set.call(this, n, i);
|
|
1252
1252
|
return ai(this), a;
|
|
1253
1253
|
}, r;
|
|
1254
|
-
}, io = Symbol.for("apollo.cacheSize"), ne = p({}, Zt[io]),
|
|
1255
|
-
function
|
|
1256
|
-
|
|
1254
|
+
}, io = Symbol.for("apollo.cacheSize"), ne = p({}, Zt[io]), _e = {};
|
|
1255
|
+
function Dr(t, e) {
|
|
1256
|
+
_e[t] = e;
|
|
1257
1257
|
}
|
|
1258
1258
|
var ao = globalThis.__DEV__ !== !1 ? co : void 0, oo = globalThis.__DEV__ !== !1 ? fo : void 0, so = globalThis.__DEV__ !== !1 ? oi : void 0;
|
|
1259
1259
|
function uo() {
|
|
@@ -1287,7 +1287,7 @@ function co() {
|
|
|
1287
1287
|
throw new Error("only supported in development mode");
|
|
1288
1288
|
return {
|
|
1289
1289
|
limits: uo(),
|
|
1290
|
-
sizes: p({ print: (t =
|
|
1290
|
+
sizes: p({ print: (t = _e.print) === null || t === void 0 ? void 0 : t.call(_e), parser: (e = _e.parser) === null || e === void 0 ? void 0 : e.call(_e), canonicalStringify: (r = _e.canonicalStringify) === null || r === void 0 ? void 0 : r.call(_e), links: ir(this.link), queryManager: {
|
|
1291
1291
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
1292
1292
|
documentTransforms: ui(this.queryManager.documentTransform)
|
|
1293
1293
|
} }, (i = (n = this.cache).getMemoryInternals) === null || i === void 0 ? void 0 : i.call(n))
|
|
@@ -1296,26 +1296,26 @@ function co() {
|
|
|
1296
1296
|
function oi() {
|
|
1297
1297
|
return {
|
|
1298
1298
|
cache: {
|
|
1299
|
-
fragmentQueryDocuments:
|
|
1299
|
+
fragmentQueryDocuments: de(this.getFragmentDoc)
|
|
1300
1300
|
}
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
1303
1303
|
function fo() {
|
|
1304
1304
|
var t = this.config.fragments;
|
|
1305
1305
|
return p(p({}, oi.apply(this)), { addTypenameDocumentTransform: ui(this.addTypenameTransform), inMemoryCache: {
|
|
1306
|
-
executeSelectionSet:
|
|
1307
|
-
executeSubSelectedArray:
|
|
1308
|
-
maybeBroadcastWatch:
|
|
1306
|
+
executeSelectionSet: de(this.storeReader.executeSelectionSet),
|
|
1307
|
+
executeSubSelectedArray: de(this.storeReader.executeSubSelectedArray),
|
|
1308
|
+
maybeBroadcastWatch: de(this.maybeBroadcastWatch)
|
|
1309
1309
|
}, fragmentRegistry: {
|
|
1310
|
-
findFragmentSpreads:
|
|
1311
|
-
lookup:
|
|
1312
|
-
transform:
|
|
1310
|
+
findFragmentSpreads: de(t == null ? void 0 : t.findFragmentSpreads),
|
|
1311
|
+
lookup: de(t == null ? void 0 : t.lookup),
|
|
1312
|
+
transform: de(t == null ? void 0 : t.transform)
|
|
1313
1313
|
} });
|
|
1314
1314
|
}
|
|
1315
1315
|
function lo(t) {
|
|
1316
1316
|
return !!t && "dirtyKey" in t;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function de(t) {
|
|
1319
1319
|
return lo(t) ? t.size : void 0;
|
|
1320
1320
|
}
|
|
1321
1321
|
function si(t) {
|
|
@@ -1328,7 +1328,7 @@ function ui(t) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
function nr(t) {
|
|
1330
1330
|
return t ? z(z([
|
|
1331
|
-
|
|
1331
|
+
de(t == null ? void 0 : t.performWork)
|
|
1332
1332
|
], nr(t == null ? void 0 : t.left), !0), nr(t == null ? void 0 : t.right), !0).filter(si) : [];
|
|
1333
1333
|
}
|
|
1334
1334
|
function ir(t) {
|
|
@@ -1337,7 +1337,7 @@ function ir(t) {
|
|
|
1337
1337
|
(e = t == null ? void 0 : t.getMemoryInternals) === null || e === void 0 ? void 0 : e.call(t)
|
|
1338
1338
|
], ir(t == null ? void 0 : t.left), !0), ir(t == null ? void 0 : t.right), !0).filter(si) : [];
|
|
1339
1339
|
}
|
|
1340
|
-
var
|
|
1340
|
+
var ve = Object.assign(function(e) {
|
|
1341
1341
|
return JSON.stringify(e, ho);
|
|
1342
1342
|
}, {
|
|
1343
1343
|
reset: function() {
|
|
@@ -1347,11 +1347,11 @@ var de = Object.assign(function(e) {
|
|
|
1347
1347
|
);
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
|
-
globalThis.__DEV__ !== !1 &&
|
|
1350
|
+
globalThis.__DEV__ !== !1 && Dr("canonicalStringify", function() {
|
|
1351
1351
|
return Fe.size;
|
|
1352
1352
|
});
|
|
1353
1353
|
var Fe;
|
|
1354
|
-
|
|
1354
|
+
ve.reset();
|
|
1355
1355
|
function ho(t, e) {
|
|
1356
1356
|
if (e && typeof e == "object") {
|
|
1357
1357
|
var r = Object.getPrototypeOf(e);
|
|
@@ -1451,7 +1451,7 @@ function To(t, e) {
|
|
|
1451
1451
|
return xe(n, a, o, e);
|
|
1452
1452
|
})), ci(t.name.value, n, r);
|
|
1453
1453
|
}
|
|
1454
|
-
var
|
|
1454
|
+
var Do = [
|
|
1455
1455
|
"connection",
|
|
1456
1456
|
"include",
|
|
1457
1457
|
"skip",
|
|
@@ -1459,7 +1459,7 @@ var ko = [
|
|
|
1459
1459
|
"rest",
|
|
1460
1460
|
"export",
|
|
1461
1461
|
"nonreactive"
|
|
1462
|
-
], He =
|
|
1462
|
+
], He = ve, ci = Object.assign(function(t, e, r) {
|
|
1463
1463
|
if (e && r && r.connection && r.connection.key)
|
|
1464
1464
|
if (r.connection.filter && r.connection.filter.length > 0) {
|
|
1465
1465
|
var n = r.connection.filter ? r.connection.filter : [];
|
|
@@ -1476,7 +1476,7 @@ var ko = [
|
|
|
1476
1476
|
a += "(".concat(o, ")");
|
|
1477
1477
|
}
|
|
1478
1478
|
return r && Object.keys(r).forEach(function(s) {
|
|
1479
|
-
|
|
1479
|
+
Do.indexOf(s) === -1 && (r[s] && Object.keys(r[s]).length ? a += "@".concat(s, "(").concat(He(r[s]), ")") : a += "@".concat(s));
|
|
1480
1480
|
}), a;
|
|
1481
1481
|
}, {
|
|
1482
1482
|
setStringify: function(t) {
|
|
@@ -1494,15 +1494,15 @@ function Ct(t, e) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
return null;
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function se(t) {
|
|
1498
1498
|
return t.alias ? t.alias.value : t.name.value;
|
|
1499
1499
|
}
|
|
1500
1500
|
function ar(t, e, r) {
|
|
1501
1501
|
for (var n, i = 0, a = e.selections; i < a.length; i++) {
|
|
1502
1502
|
var o = a[i];
|
|
1503
|
-
if (
|
|
1503
|
+
if (pe(o)) {
|
|
1504
1504
|
if (o.name.value === "__typename")
|
|
1505
|
-
return t[
|
|
1505
|
+
return t[se(o)];
|
|
1506
1506
|
} else n ? n.push(o) : n = [o];
|
|
1507
1507
|
}
|
|
1508
1508
|
if (typeof t.__typename == "string")
|
|
@@ -1514,10 +1514,10 @@ function ar(t, e, r) {
|
|
|
1514
1514
|
return c;
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function pe(t) {
|
|
1518
1518
|
return t.kind === "Field";
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function ko(t) {
|
|
1521
1521
|
return t.kind === "InlineFragment";
|
|
1522
1522
|
}
|
|
1523
1523
|
function Le(t) {
|
|
@@ -1531,7 +1531,7 @@ function Le(t) {
|
|
|
1531
1531
|
});
|
|
1532
1532
|
return S(e.length <= 1, 90, e.length), t;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function Se(t) {
|
|
1535
1535
|
return Le(t), t.definitions.filter(function(e) {
|
|
1536
1536
|
return e.kind === "OperationDefinition";
|
|
1537
1537
|
})[0];
|
|
@@ -1549,7 +1549,7 @@ function ze(t) {
|
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
1551
1551
|
function fi(t) {
|
|
1552
|
-
var e =
|
|
1552
|
+
var e = Se(t);
|
|
1553
1553
|
return S(e && e.operation === "query", 91), e;
|
|
1554
1554
|
}
|
|
1555
1555
|
function li(t) {
|
|
@@ -1572,7 +1572,7 @@ function lt(t) {
|
|
|
1572
1572
|
return e;
|
|
1573
1573
|
throw B(95);
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function kr(t) {
|
|
1576
1576
|
var e = /* @__PURE__ */ Object.create(null), r = t && t.variableDefinitions;
|
|
1577
1577
|
return r && r.length && r.forEach(function(n) {
|
|
1578
1578
|
n.defaultValue && xe(e, n.variable.name, n.defaultValue);
|
|
@@ -1717,7 +1717,7 @@ class Pt {
|
|
|
1717
1717
|
this.fn = e, this.parents = /* @__PURE__ */ new Set(), this.childValues = /* @__PURE__ */ new Map(), this.dirtyChildren = null, this.dirty = !0, this.recomputing = !1, this.value = [], this.deps = null, ++Pt.count;
|
|
1718
1718
|
}
|
|
1719
1719
|
peek() {
|
|
1720
|
-
if (this.value.length === 1 && !
|
|
1720
|
+
if (this.value.length === 1 && !ye(this))
|
|
1721
1721
|
return nn(this), this.value[0];
|
|
1722
1722
|
}
|
|
1723
1723
|
// This is the most important method of the Entry API, because it
|
|
@@ -1727,7 +1727,7 @@ class Pt {
|
|
|
1727
1727
|
// usually false, (2) this.dirtyChildren is usually null/empty, and thus
|
|
1728
1728
|
// (3) valueGet(this.value) is usually returned without recomputation.
|
|
1729
1729
|
recompute(e) {
|
|
1730
|
-
return je(!this.recomputing, "already recomputing"), nn(this),
|
|
1730
|
+
return je(!this.recomputing, "already recomputing"), nn(this), ye(this) ? Po(this, e) : di(this.value);
|
|
1731
1731
|
}
|
|
1732
1732
|
setDirty() {
|
|
1733
1733
|
this.dirty || (this.dirty = !0, pi(this), Fr(this));
|
|
@@ -1751,7 +1751,7 @@ Pt.count = 0;
|
|
|
1751
1751
|
function nn(t) {
|
|
1752
1752
|
const e = Mt.getValue();
|
|
1753
1753
|
if (e)
|
|
1754
|
-
return t.parents.add(e), e.childValues.has(t) || e.childValues.set(t, []),
|
|
1754
|
+
return t.parents.add(e), e.childValues.has(t) || e.childValues.set(t, []), ye(t) ? mi(e, t) : gi(e, t), e;
|
|
1755
1755
|
}
|
|
1756
1756
|
function Po(t, e) {
|
|
1757
1757
|
return _i(t), Mt.withValue(t, No, [t, e]), xo(t, e) && Ao(t), di(t.value);
|
|
@@ -1772,11 +1772,11 @@ function No(t, e) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
t.recomputing = !1;
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function ye(t) {
|
|
1776
1776
|
return t.dirty || !!(t.dirtyChildren && t.dirtyChildren.size);
|
|
1777
1777
|
}
|
|
1778
1778
|
function Ao(t) {
|
|
1779
|
-
t.dirty = !1, !
|
|
1779
|
+
t.dirty = !1, !ye(t) && yi(t);
|
|
1780
1780
|
}
|
|
1781
1781
|
function pi(t) {
|
|
1782
1782
|
Rr(t, mi);
|
|
@@ -1793,8 +1793,8 @@ function Rr(t, e) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
function mi(t, e) {
|
|
1796
|
-
je(t.childValues.has(e)), je(
|
|
1797
|
-
const r = !
|
|
1796
|
+
je(t.childValues.has(e)), je(ye(e));
|
|
1797
|
+
const r = !ye(t);
|
|
1798
1798
|
if (!t.dirtyChildren)
|
|
1799
1799
|
t.dirtyChildren = st.pop() || /* @__PURE__ */ new Set();
|
|
1800
1800
|
else if (t.dirtyChildren.has(e))
|
|
@@ -1802,9 +1802,9 @@ function mi(t, e) {
|
|
|
1802
1802
|
t.dirtyChildren.add(e), r && pi(t);
|
|
1803
1803
|
}
|
|
1804
1804
|
function gi(t, e) {
|
|
1805
|
-
je(t.childValues.has(e)), je(!
|
|
1805
|
+
je(t.childValues.has(e)), je(!ye(e));
|
|
1806
1806
|
const r = t.childValues.get(e);
|
|
1807
|
-
r.length === 0 ? t.childValues.set(e, vi(e.value)) : hi(r, e.value) || t.setDirty(), bi(t, e), !
|
|
1807
|
+
r.length === 0 ? t.childValues.set(e, vi(e.value)) : hi(r, e.value) || t.setDirty(), bi(t, e), !ye(t) && yi(t);
|
|
1808
1808
|
}
|
|
1809
1809
|
function bi(t, e) {
|
|
1810
1810
|
const r = t.dirtyChildren;
|
|
@@ -1852,7 +1852,7 @@ function wi(t) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
let an;
|
|
1854
1854
|
function qo(...t) {
|
|
1855
|
-
return (an || (an = new
|
|
1855
|
+
return (an || (an = new ue(typeof WeakMap == "function"))).lookupArray(t);
|
|
1856
1856
|
}
|
|
1857
1857
|
const Vt = /* @__PURE__ */ new Set();
|
|
1858
1858
|
function ut(t, { max: e = Math.pow(2, 16), keyArgs: r, makeCacheKey: n = qo, normalizeResult: i, subscribe: a, cache: o = tr } = /* @__PURE__ */ Object.create(null)) {
|
|
@@ -1926,7 +1926,7 @@ var Oi = (
|
|
|
1926
1926
|
}, t.prototype.resetCache = function() {
|
|
1927
1927
|
var e = this;
|
|
1928
1928
|
if (this.cached) {
|
|
1929
|
-
var r = new
|
|
1929
|
+
var r = new ue(De);
|
|
1930
1930
|
this.performWork = ut(t.prototype.performWork.bind(this), {
|
|
1931
1931
|
makeCacheKey: function(n) {
|
|
1932
1932
|
var i = e.getCacheKey(n);
|
|
@@ -1958,7 +1958,7 @@ var Oi = (
|
|
|
1958
1958
|
});
|
|
1959
1959
|
}, t;
|
|
1960
1960
|
}()
|
|
1961
|
-
), et,
|
|
1961
|
+
), et, we = Object.assign(function(t) {
|
|
1962
1962
|
var e = et.get(t);
|
|
1963
1963
|
return e || (e = xa(t), et.set(t, e)), e;
|
|
1964
1964
|
}, {
|
|
@@ -1969,8 +1969,8 @@ var Oi = (
|
|
|
1969
1969
|
);
|
|
1970
1970
|
}
|
|
1971
1971
|
});
|
|
1972
|
-
|
|
1973
|
-
globalThis.__DEV__ !== !1 &&
|
|
1972
|
+
we.reset();
|
|
1973
|
+
globalThis.__DEV__ !== !1 && Dr("print", function() {
|
|
1974
1974
|
return et ? et.size : 0;
|
|
1975
1975
|
});
|
|
1976
1976
|
var q = Array.isArray;
|
|
@@ -1990,7 +1990,7 @@ function Si(t, e) {
|
|
|
1990
1990
|
});
|
|
1991
1991
|
}
|
|
1992
1992
|
function Vo(t) {
|
|
1993
|
-
return Si(
|
|
1993
|
+
return Si(Se(t) || li(t), Ve(ze(t))) ? null : t;
|
|
1994
1994
|
}
|
|
1995
1995
|
function Lo(t) {
|
|
1996
1996
|
var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
@@ -2040,7 +2040,7 @@ function Ti(t, e) {
|
|
|
2040
2040
|
if (u(v.directives))
|
|
2041
2041
|
return f = !0, null;
|
|
2042
2042
|
}
|
|
2043
|
-
}, h =
|
|
2043
|
+
}, h = Z(e, {
|
|
2044
2044
|
// These two AST node types share the same implementation, defined above.
|
|
2045
2045
|
Field: l,
|
|
2046
2046
|
InlineFragment: l,
|
|
@@ -2122,7 +2122,7 @@ function Ti(t, e) {
|
|
|
2122
2122
|
return null;
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
-
return Vo(
|
|
2125
|
+
return Vo(Z(h, {
|
|
2126
2126
|
// If the fragment is going to be removed, then leaving any dangling
|
|
2127
2127
|
// FragmentSpread nodes with the same name would be a mistake.
|
|
2128
2128
|
FragmentSpread: g,
|
|
@@ -2145,18 +2145,18 @@ function Ti(t, e) {
|
|
|
2145
2145
|
}));
|
|
2146
2146
|
}
|
|
2147
2147
|
var Cr = Object.assign(function(t) {
|
|
2148
|
-
return
|
|
2148
|
+
return Z(t, {
|
|
2149
2149
|
SelectionSet: {
|
|
2150
2150
|
enter: function(e, r, n) {
|
|
2151
2151
|
if (!(n && n.kind === N.OPERATION_DEFINITION)) {
|
|
2152
2152
|
var i = e.selections;
|
|
2153
2153
|
if (i) {
|
|
2154
2154
|
var a = i.some(function(s) {
|
|
2155
|
-
return
|
|
2155
|
+
return pe(s) && (s.name.value === "__typename" || s.name.value.lastIndexOf("__", 0) === 0);
|
|
2156
2156
|
});
|
|
2157
2157
|
if (!a) {
|
|
2158
2158
|
var o = n;
|
|
2159
|
-
if (!(
|
|
2159
|
+
if (!(pe(o) && o.directives && o.directives.some(function(s) {
|
|
2160
2160
|
return s.name.value === "export";
|
|
2161
2161
|
})))
|
|
2162
2162
|
return p(p({}, e), { selections: z(z([], i, !0), [on], !1) });
|
|
@@ -2175,7 +2175,7 @@ function zo(t) {
|
|
|
2175
2175
|
var e = lt(t), r = e.operation;
|
|
2176
2176
|
if (r === "query")
|
|
2177
2177
|
return t;
|
|
2178
|
-
var n =
|
|
2178
|
+
var n = Z(t, {
|
|
2179
2179
|
OperationDefinition: {
|
|
2180
2180
|
enter: function(i) {
|
|
2181
2181
|
return p(p({}, i), { operation: "query" });
|
|
@@ -2184,7 +2184,7 @@ function zo(t) {
|
|
|
2184
2184
|
});
|
|
2185
2185
|
return n;
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function Di(t) {
|
|
2188
2188
|
Le(t);
|
|
2189
2189
|
var e = Ti([
|
|
2190
2190
|
{
|
|
@@ -2197,7 +2197,7 @@ function ki(t) {
|
|
|
2197
2197
|
return e;
|
|
2198
2198
|
}
|
|
2199
2199
|
function Wo(t) {
|
|
2200
|
-
return Le(t),
|
|
2200
|
+
return Le(t), Z(t, {
|
|
2201
2201
|
FragmentSpread: function(e) {
|
|
2202
2202
|
var r;
|
|
2203
2203
|
if (!(!((r = e.directives) === null || r === void 0) && r.some(function(n) {
|
|
@@ -2221,13 +2221,13 @@ function un() {
|
|
|
2221
2221
|
function Nt(t) {
|
|
2222
2222
|
var e = t[0] || {}, r = t.length;
|
|
2223
2223
|
if (r > 1)
|
|
2224
|
-
for (var n = new
|
|
2224
|
+
for (var n = new me(), i = 1; i < r; ++i)
|
|
2225
2225
|
e = n.merge(e, t[i]);
|
|
2226
2226
|
return e;
|
|
2227
2227
|
}
|
|
2228
2228
|
var Uo = function(t, e, r) {
|
|
2229
2229
|
return this.merge(t[r], e[r]);
|
|
2230
|
-
},
|
|
2230
|
+
}, me = (
|
|
2231
2231
|
/** @class */
|
|
2232
2232
|
function() {
|
|
2233
2233
|
function t(e) {
|
|
@@ -2299,7 +2299,7 @@ var Pr = function() {
|
|
|
2299
2299
|
return Nr(t) ? Symbol[t] : "@@" + t;
|
|
2300
2300
|
};
|
|
2301
2301
|
Pr() && !Nr("observable") && (Symbol.observable = Symbol("observable"));
|
|
2302
|
-
var Ho = Ar("iterator"), or = Ar("observable"),
|
|
2302
|
+
var Ho = Ar("iterator"), or = Ar("observable"), ki = Ar("species");
|
|
2303
2303
|
function Tt(t, e) {
|
|
2304
2304
|
var r = t[e];
|
|
2305
2305
|
if (r != null) {
|
|
@@ -2309,7 +2309,7 @@ function Tt(t, e) {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
function Je(t) {
|
|
2311
2311
|
var e = t.constructor;
|
|
2312
|
-
return e !== void 0 && (e = e[
|
|
2312
|
+
return e !== void 0 && (e = e[ki], e === null && (e = void 0)), e !== void 0 ? e : P;
|
|
2313
2313
|
}
|
|
2314
2314
|
function Jo(t) {
|
|
2315
2315
|
return t instanceof P;
|
|
@@ -2654,7 +2654,7 @@ var Xo = /* @__PURE__ */ function() {
|
|
|
2654
2654
|
});
|
|
2655
2655
|
});
|
|
2656
2656
|
}, Mr(t, null, [{
|
|
2657
|
-
key:
|
|
2657
|
+
key: ki,
|
|
2658
2658
|
get: function() {
|
|
2659
2659
|
return this;
|
|
2660
2660
|
}
|
|
@@ -2683,9 +2683,9 @@ function Zo(t) {
|
|
|
2683
2683
|
e = "@@observable";
|
|
2684
2684
|
return e;
|
|
2685
2685
|
}
|
|
2686
|
-
var
|
|
2687
|
-
typeof self < "u" ?
|
|
2688
|
-
Zo(
|
|
2686
|
+
var ke;
|
|
2687
|
+
typeof self < "u" ? ke = self : typeof window < "u" ? ke = window : typeof global < "u" ? ke = global : typeof module < "u" ? ke = module : ke = Function("return this")();
|
|
2688
|
+
Zo(ke);
|
|
2689
2689
|
var ln = P.prototype, hn = "@@observable";
|
|
2690
2690
|
ln[hn] || (ln[hn] = function() {
|
|
2691
2691
|
return this;
|
|
@@ -2881,7 +2881,7 @@ function os(t) {
|
|
|
2881
2881
|
return j(t) && "payload" in t;
|
|
2882
2882
|
}
|
|
2883
2883
|
function Mi(t, e) {
|
|
2884
|
-
var r = t, n = new
|
|
2884
|
+
var r = t, n = new me();
|
|
2885
2885
|
return Ne(e) && J(e.incremental) && e.incremental.forEach(function(i) {
|
|
2886
2886
|
for (var a = i.data, o = i.path, s = o.length - 1; s >= 0; --s) {
|
|
2887
2887
|
var u = o[s], c = !isNaN(+u), f = c ? [] : {};
|
|
@@ -2900,7 +2900,7 @@ function cr(t) {
|
|
|
2900
2900
|
r.errors && e.push.apply(e, r.errors);
|
|
2901
2901
|
}), e;
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function Te() {
|
|
2904
2904
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
2905
2905
|
t[e] = arguments[e];
|
|
2906
2906
|
var r = /* @__PURE__ */ Object.create(null);
|
|
@@ -2912,8 +2912,8 @@ function Se() {
|
|
|
2912
2912
|
}), r;
|
|
2913
2913
|
}
|
|
2914
2914
|
function rt(t, e) {
|
|
2915
|
-
return
|
|
2916
|
-
variables:
|
|
2915
|
+
return Te(t, e, e.variables && {
|
|
2916
|
+
variables: Te(p(p({}, t && t.variables), e.variables))
|
|
2917
2917
|
});
|
|
2918
2918
|
}
|
|
2919
2919
|
function Wt(t) {
|
|
@@ -2964,7 +2964,7 @@ function cs(t) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
function fs(t, e) {
|
|
2966
2966
|
var r = p({}, t), n = new Set(Object.keys(t));
|
|
2967
|
-
return
|
|
2967
|
+
return Z(e, {
|
|
2968
2968
|
Variable: function(i, a, o) {
|
|
2969
2969
|
o && o.kind !== "VariableDefinition" && n.delete(i.name.value);
|
|
2970
2970
|
}
|
|
@@ -3180,9 +3180,9 @@ var ws = function(t) {
|
|
|
3180
3180
|
}(Error)
|
|
3181
3181
|
), yn = Object.prototype.hasOwnProperty;
|
|
3182
3182
|
function Os(t, e) {
|
|
3183
|
-
return
|
|
3184
|
-
var r, n, i, a, o, s, u, c, f, l, h, d, y, m, g, v, b, _, w, O, E,
|
|
3185
|
-
return
|
|
3183
|
+
return le(this, void 0, void 0, function() {
|
|
3184
|
+
var r, n, i, a, o, s, u, c, f, l, h, d, y, m, g, v, b, _, w, O, E, D, k, R;
|
|
3185
|
+
return he(this, function(A) {
|
|
3186
3186
|
switch (A.label) {
|
|
3187
3187
|
case 0:
|
|
3188
3188
|
if (TextDecoder === void 0)
|
|
@@ -3193,10 +3193,10 @@ function Os(t, e) {
|
|
|
3193
3193
|
return c ? [4, u.next()] : [3, 3];
|
|
3194
3194
|
case 2:
|
|
3195
3195
|
for (f = A.sent(), l = f.value, h = f.done, d = typeof l == "string" ? l : r.decode(l), y = s.length - o.length + 1, c = !h, s += d, m = s.indexOf(o, y); m > -1; ) {
|
|
3196
|
-
if (g = void 0,
|
|
3196
|
+
if (g = void 0, D = [
|
|
3197
3197
|
s.slice(0, m),
|
|
3198
3198
|
s.slice(m + o.length)
|
|
3199
|
-
], g =
|
|
3199
|
+
], g = D[0], s = D[1], v = g.indexOf(`\r
|
|
3200
3200
|
\r
|
|
3201
3201
|
`), b = Ss(g.slice(0, v)), _ = b["content-type"], _ && _.toLowerCase().indexOf("application/json") === -1)
|
|
3202
3202
|
throw new Error("Unsupported patch content type: application/json is required.");
|
|
@@ -3211,7 +3211,7 @@ function Os(t, e) {
|
|
|
3211
3211
|
];
|
|
3212
3212
|
E = p({}, O.payload);
|
|
3213
3213
|
}
|
|
3214
|
-
"errors" in O && (E = p(p({}, E), { extensions: p(p({}, "extensions" in E ? E.extensions : null), (
|
|
3214
|
+
"errors" in O && (E = p(p({}, E), { extensions: p(p({}, "extensions" in E ? E.extensions : null), (k = {}, k[xr] = O.errors, k)) })), e(E);
|
|
3215
3215
|
} else
|
|
3216
3216
|
e(O);
|
|
3217
3217
|
else if (
|
|
@@ -3268,7 +3268,7 @@ function Ai(t, e) {
|
|
|
3268
3268
|
function Ts(t, e) {
|
|
3269
3269
|
t.result && t.result.errors && t.result.data && e.next(t.result), e.error(t);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3271
|
+
function Ds(t) {
|
|
3272
3272
|
return function(e) {
|
|
3273
3273
|
return e.text().then(function(r) {
|
|
3274
3274
|
return Ai(e, r);
|
|
@@ -3288,7 +3288,7 @@ var lr = function(t, e) {
|
|
|
3288
3288
|
throw n.parseError = i, n;
|
|
3289
3289
|
}
|
|
3290
3290
|
return r;
|
|
3291
|
-
},
|
|
3291
|
+
}, ks = {
|
|
3292
3292
|
includeQuery: !0,
|
|
3293
3293
|
includeExtensions: !1,
|
|
3294
3294
|
preserveHeaderCase: !1
|
|
@@ -3311,7 +3311,7 @@ var lr = function(t, e) {
|
|
|
3311
3311
|
}, Fs = {
|
|
3312
3312
|
method: "POST"
|
|
3313
3313
|
}, Rs = {
|
|
3314
|
-
http:
|
|
3314
|
+
http: ks,
|
|
3315
3315
|
headers: Is,
|
|
3316
3316
|
options: Fs
|
|
3317
3317
|
}, Cs = function(t, e) {
|
|
@@ -3325,7 +3325,7 @@ function Ms(t, e) {
|
|
|
3325
3325
|
i = p(p(p({}, i), l.options), { headers: p(p({}, i.headers), l.headers) }), l.credentials && (i.credentials = l.credentials), a = p(p({}, a), l.http);
|
|
3326
3326
|
}), i.headers && (i.headers = Ps(i.headers, a.preserveHeaderCase));
|
|
3327
3327
|
var o = t.operationName, s = t.extensions, u = t.variables, c = t.query, f = { operationName: o, variables: u };
|
|
3328
|
-
return a.includeExtensions && (f.extensions = s), a.includeQuery && (f.query = e(c,
|
|
3328
|
+
return a.includeExtensions && (f.extensions = s), a.includeQuery && (f.query = e(c, we)), {
|
|
3329
3329
|
options: i,
|
|
3330
3330
|
body: f
|
|
3331
3331
|
};
|
|
@@ -3383,7 +3383,7 @@ function xs(t, e) {
|
|
|
3383
3383
|
var c = s.indexOf("?") === -1 ? "?" : "&", f = s + c + r.join("&") + o;
|
|
3384
3384
|
return { newURI: f };
|
|
3385
3385
|
}
|
|
3386
|
-
var mn =
|
|
3386
|
+
var mn = K(function() {
|
|
3387
3387
|
return fetch;
|
|
3388
3388
|
}), xi = function(t) {
|
|
3389
3389
|
t === void 0 && (t = {});
|
|
@@ -3408,45 +3408,45 @@ var mn = X(function() {
|
|
|
3408
3408
|
headers: w
|
|
3409
3409
|
};
|
|
3410
3410
|
if (ot(["client"], d.query)) {
|
|
3411
|
-
var E =
|
|
3411
|
+
var E = Di(d.query);
|
|
3412
3412
|
if (!E)
|
|
3413
3413
|
return Wt(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
3414
3414
|
d.query = E;
|
|
3415
3415
|
}
|
|
3416
|
-
var
|
|
3416
|
+
var D = Ms(d, a, Rs, h, O), k = D.options, R = D.body;
|
|
3417
3417
|
R.variables && !f && (R.variables = fs(R.variables, d.query));
|
|
3418
3418
|
var A;
|
|
3419
|
-
!
|
|
3419
|
+
!k.signal && typeof AbortController < "u" && (A = new AbortController(), k.signal = A.signal);
|
|
3420
3420
|
var $ = function(W) {
|
|
3421
3421
|
return W.kind === "OperationDefinition" && W.operation === "mutation";
|
|
3422
3422
|
}, ae = function(W) {
|
|
3423
3423
|
return W.kind === "OperationDefinition" && W.operation === "subscription";
|
|
3424
3424
|
}, Q = ae(lt(d.query)), G = ot(["defer"], d.query);
|
|
3425
|
-
if (u && !d.query.definitions.some($) && (
|
|
3426
|
-
|
|
3427
|
-
var
|
|
3428
|
-
Q && G && globalThis.__DEV__ !== !1 && S.warn(41), Q ?
|
|
3425
|
+
if (u && !d.query.definitions.some($) && (k.method = "GET"), G || Q) {
|
|
3426
|
+
k.headers = k.headers || {};
|
|
3427
|
+
var oe = "multipart/mixed;";
|
|
3428
|
+
Q && G && globalThis.__DEV__ !== !1 && S.warn(41), Q ? oe += "boundary=graphql;subscriptionSpec=1.0,application/json" : G && (oe += "deferSpec=20220824,application/json"), k.headers.accept = oe;
|
|
3429
3429
|
}
|
|
3430
|
-
if (
|
|
3430
|
+
if (k.method === "GET") {
|
|
3431
3431
|
var Be = xs(y, R), dt = Be.newURI, Ue = Be.parseError;
|
|
3432
3432
|
if (Ue)
|
|
3433
3433
|
return Wt(Ue);
|
|
3434
3434
|
y = dt;
|
|
3435
3435
|
} else
|
|
3436
3436
|
try {
|
|
3437
|
-
|
|
3437
|
+
k.body = lr(R, "Payload");
|
|
3438
3438
|
} catch (W) {
|
|
3439
3439
|
return Wt(W);
|
|
3440
3440
|
}
|
|
3441
3441
|
return new P(function(W) {
|
|
3442
|
-
var vt = n ||
|
|
3442
|
+
var vt = n || K(function() {
|
|
3443
3443
|
return fetch;
|
|
3444
|
-
}) || mn,
|
|
3445
|
-
return vt(y,
|
|
3446
|
-
var
|
|
3444
|
+
}) || mn, ee = W.next.bind(W);
|
|
3445
|
+
return vt(y, k).then(function(U) {
|
|
3446
|
+
var ce;
|
|
3447
3447
|
d.setContext({ response: U });
|
|
3448
|
-
var
|
|
3449
|
-
return
|
|
3448
|
+
var Y = (ce = U.headers) === null || ce === void 0 ? void 0 : ce.get("content-type");
|
|
3449
|
+
return Y !== null && /^multipart\/mixed/i.test(Y) ? Os(U, ee) : Ds(d)(U).then(ee);
|
|
3450
3450
|
}).then(function() {
|
|
3451
3451
|
A = void 0, W.complete();
|
|
3452
3452
|
}).catch(function(U) {
|
|
@@ -3593,8 +3593,8 @@ function Et(t, e, r, n) {
|
|
|
3593
3593
|
return t.selections.every(function(a) {
|
|
3594
3594
|
if (i.has(a) || (i.add(a), !ft(a, n.variables)) || wn(a))
|
|
3595
3595
|
return !0;
|
|
3596
|
-
if (
|
|
3597
|
-
var o =
|
|
3596
|
+
if (pe(a)) {
|
|
3597
|
+
var o = se(a), s = e && e[o], u = r && r[o], c = a.selectionSet;
|
|
3598
3598
|
if (!c)
|
|
3599
3599
|
return C(s, u);
|
|
3600
3600
|
var f = Array.isArray(s), l = Array.isArray(u);
|
|
@@ -3632,7 +3632,7 @@ function wn(t) {
|
|
|
3632
3632
|
function zs(t) {
|
|
3633
3633
|
return t.name.value === "nonreactive";
|
|
3634
3634
|
}
|
|
3635
|
-
var qi =
|
|
3635
|
+
var qi = De ? WeakMap : Map, Qi = Or ? WeakSet : Set, jr = new ht(), On = !1;
|
|
3636
3636
|
function Vi() {
|
|
3637
3637
|
On || (On = !0, globalThis.__DEV__ !== !1 && S.warn(52));
|
|
3638
3638
|
}
|
|
@@ -3665,7 +3665,7 @@ function Ze(t, e, r, n, i) {
|
|
|
3665
3665
|
for (var y = 0, m = e.selections; y < m.length; y++) {
|
|
3666
3666
|
var g = m[y], v = void 0;
|
|
3667
3667
|
if (n && o.add(s), g.kind === N.FIELD) {
|
|
3668
|
-
var b =
|
|
3668
|
+
var b = se(g), _ = g.selectionSet;
|
|
3669
3669
|
if (v = s[b] || t[b], v === void 0)
|
|
3670
3670
|
continue;
|
|
3671
3671
|
if (_ && v !== null) {
|
|
@@ -3730,7 +3730,7 @@ function Us(t, e, r) {
|
|
|
3730
3730
|
var n;
|
|
3731
3731
|
if (!r.fragmentMatches)
|
|
3732
3732
|
return globalThis.__DEV__ !== !1 && Vi(), t;
|
|
3733
|
-
var i =
|
|
3733
|
+
var i = Se(e);
|
|
3734
3734
|
return S(i, 51), t == null ? t : Li(t, i.selectionSet, {
|
|
3735
3735
|
operationType: i.operation,
|
|
3736
3736
|
operationName: (n = i.name) === null || n === void 0 ? void 0 : n.value,
|
|
@@ -3867,7 +3867,7 @@ var $i = {
|
|
|
3867
3867
|
canonizeResults: !1
|
|
3868
3868
|
};
|
|
3869
3869
|
function $s(t) {
|
|
3870
|
-
return
|
|
3870
|
+
return Te($i, t);
|
|
3871
3871
|
}
|
|
3872
3872
|
function Gi(t) {
|
|
3873
3873
|
var e = t.canonizeResults;
|
|
@@ -3877,7 +3877,7 @@ function Gs(t, e) {
|
|
|
3877
3877
|
return M(e) ? t.get(e.__ref, "__typename") : e && e.__typename;
|
|
3878
3878
|
}
|
|
3879
3879
|
var Hi = /^[_a-z][_0-9a-z]*/i;
|
|
3880
|
-
function
|
|
3880
|
+
function ge(t) {
|
|
3881
3881
|
var e = t.match(Hi);
|
|
3882
3882
|
return e ? e[0] : t;
|
|
3883
3883
|
}
|
|
@@ -3885,8 +3885,8 @@ function vr(t, e, r) {
|
|
|
3885
3885
|
return j(e) ? q(e) ? e.every(function(n) {
|
|
3886
3886
|
return vr(t, n, r);
|
|
3887
3887
|
}) : t.selections.every(function(n) {
|
|
3888
|
-
if (
|
|
3889
|
-
var i =
|
|
3888
|
+
if (pe(n) && ft(n, r)) {
|
|
3889
|
+
var i = se(n);
|
|
3890
3890
|
return V.call(e, i) && (!n.selectionSet || vr(n.selectionSet, e[i], r));
|
|
3891
3891
|
}
|
|
3892
3892
|
return !0;
|
|
@@ -3896,7 +3896,7 @@ function Re(t) {
|
|
|
3896
3896
|
return j(t) && !M(t) && !q(t);
|
|
3897
3897
|
}
|
|
3898
3898
|
function Hs() {
|
|
3899
|
-
return new
|
|
3899
|
+
return new me();
|
|
3900
3900
|
}
|
|
3901
3901
|
function Ji(t, e) {
|
|
3902
3902
|
var r = Ve(ze(t));
|
|
@@ -3943,12 +3943,12 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
3943
3943
|
}
|
|
3944
3944
|
if (r === "__typename" && V.call(this.policies.rootTypenamesById, e))
|
|
3945
3945
|
return this.policies.rootTypenamesById[e];
|
|
3946
|
-
if (this instanceof
|
|
3946
|
+
if (this instanceof fe)
|
|
3947
3947
|
return this.parent.get(e, r);
|
|
3948
3948
|
}, t.prototype.lookup = function(e, r) {
|
|
3949
3949
|
if (r && this.group.depend(e, "__exists"), V.call(this.data, e))
|
|
3950
3950
|
return this.data[e];
|
|
3951
|
-
if (this instanceof
|
|
3951
|
+
if (this instanceof fe)
|
|
3952
3952
|
return this.parent.lookup(e, r);
|
|
3953
3953
|
if (this.policies.rootTypenamesById[e])
|
|
3954
3954
|
return /* @__PURE__ */ Object.create(null);
|
|
@@ -3958,14 +3958,14 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
3958
3958
|
var a = typeof e == "string" ? this.lookup(i = e) : e, o = typeof r == "string" ? this.lookup(i = r) : r;
|
|
3959
3959
|
if (o) {
|
|
3960
3960
|
S(typeof i == "string", 2);
|
|
3961
|
-
var s = new
|
|
3961
|
+
var s = new me(Ys).merge(a, o);
|
|
3962
3962
|
if (this.data[i] = s, s !== a && (delete this.refs[i], this.group.caching)) {
|
|
3963
3963
|
var u = /* @__PURE__ */ Object.create(null);
|
|
3964
3964
|
a || (u.__exists = 1), Object.keys(o).forEach(function(c) {
|
|
3965
3965
|
if (!a || a[c] !== s[c]) {
|
|
3966
3966
|
u[c] = 1;
|
|
3967
|
-
var f =
|
|
3968
|
-
f !== c && !n.policies.hasKeyArgs(s.__typename, f) && (u[f] = 1), s[c] === void 0 && !(n instanceof
|
|
3967
|
+
var f = ge(c);
|
|
3968
|
+
f !== c && !n.policies.hasKeyArgs(s.__typename, f) && (u[f] = 1), s[c] === void 0 && !(n instanceof fe) && delete s[c];
|
|
3969
3969
|
}
|
|
3970
3970
|
}), u.__typename && !(a && a.__typename) && // Since we return default root __typename strings
|
|
3971
3971
|
// automatically from store.get, we don't need to dirty the
|
|
@@ -3993,7 +3993,7 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
3993
3993
|
}
|
|
3994
3994
|
};
|
|
3995
3995
|
if (Object.keys(i).forEach(function(c) {
|
|
3996
|
-
var f =
|
|
3996
|
+
var f = ge(c), l = i[c];
|
|
3997
3997
|
if (l !== void 0) {
|
|
3998
3998
|
var h = typeof r == "function" ? r : r[c] || r[f];
|
|
3999
3999
|
if (h) {
|
|
@@ -4027,7 +4027,7 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
4027
4027
|
l !== void 0 && (s = !1);
|
|
4028
4028
|
}
|
|
4029
4029
|
}), o)
|
|
4030
|
-
return this.merge(e, a), s && (this instanceof
|
|
4030
|
+
return this.merge(e, a), s && (this instanceof fe ? this.data[e] = void 0 : delete this.data[e], this.group.dirty(e, "__exists")), !0;
|
|
4031
4031
|
}
|
|
4032
4032
|
return !1;
|
|
4033
4033
|
}, t.prototype.delete = function(e, r, n) {
|
|
@@ -4039,7 +4039,7 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
4039
4039
|
return !1;
|
|
4040
4040
|
}, t.prototype.evict = function(e, r) {
|
|
4041
4041
|
var n = !1;
|
|
4042
|
-
return e.id && (V.call(this.data, e.id) && (n = this.delete(e.id, e.fieldName, e.args)), this instanceof
|
|
4042
|
+
return e.id && (V.call(this.data, e.id) && (n = this.delete(e.id, e.fieldName, e.args)), this instanceof fe && this !== r && (n = this.parent.evict(e, r) || n), (e.fieldName || n) && this.group.dirty(e.id, e.fieldName || "__exists")), n;
|
|
4043
4043
|
}, t.prototype.clear = function() {
|
|
4044
4044
|
this.replace(null);
|
|
4045
4045
|
}, t.prototype.extract = function() {
|
|
@@ -4066,7 +4066,7 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
4066
4066
|
}
|
|
4067
4067
|
return 0;
|
|
4068
4068
|
}, t.prototype.getRootIdSet = function(e) {
|
|
4069
|
-
return e === void 0 && (e = /* @__PURE__ */ new Set()), Object.keys(this.rootIds).forEach(e.add, e), this instanceof
|
|
4069
|
+
return e === void 0 && (e = /* @__PURE__ */ new Set()), Object.keys(this.rootIds).forEach(e.add, e), this instanceof fe ? this.parent.getRootIdSet(e) : Object.keys(this.policies.rootTypenamesById).forEach(e.add, e), e;
|
|
4070
4070
|
}, t.prototype.gc = function() {
|
|
4071
4071
|
var e = this, r = this.getRootIdSet(), n = this.toObject();
|
|
4072
4072
|
r.forEach(function(o) {
|
|
@@ -4074,7 +4074,7 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
4074
4074
|
});
|
|
4075
4075
|
var i = Object.keys(n);
|
|
4076
4076
|
if (i.length) {
|
|
4077
|
-
for (var a = this; a instanceof
|
|
4077
|
+
for (var a = this; a instanceof fe; )
|
|
4078
4078
|
a = a.parent;
|
|
4079
4079
|
i.forEach(function(o) {
|
|
4080
4080
|
return a.delete(o);
|
|
@@ -4106,11 +4106,11 @@ var wt = /* @__PURE__ */ Object.create(null), Bt = function() {
|
|
|
4106
4106
|
r === void 0 && (r = null), this.caching = e, this.parent = r, this.d = null, this.resetCaching();
|
|
4107
4107
|
}
|
|
4108
4108
|
return t.prototype.resetCaching = function() {
|
|
4109
|
-
this.d = this.caching ? wi() : null, this.keyMaker = new
|
|
4109
|
+
this.d = this.caching ? wi() : null, this.keyMaker = new ue(De);
|
|
4110
4110
|
}, t.prototype.depend = function(e, r) {
|
|
4111
4111
|
if (this.d) {
|
|
4112
4112
|
this.d(Ut(e, r));
|
|
4113
|
-
var n =
|
|
4113
|
+
var n = ge(r);
|
|
4114
4114
|
n !== r && this.d(Ut(e, n)), this.parent && this.parent.depend(e, r);
|
|
4115
4115
|
}
|
|
4116
4116
|
}, t.prototype.dirty = function(e, r) {
|
|
@@ -4141,7 +4141,7 @@ function Tn(t, e) {
|
|
|
4141
4141
|
ie(n, r);
|
|
4142
4142
|
function n(i) {
|
|
4143
4143
|
var a = i.policies, o = i.resultCaching, s = o === void 0 ? !0 : o, u = i.seed, c = r.call(this, a, new Yi(s)) || this;
|
|
4144
|
-
return c.stump = new Js(c), c.storageTrie = new
|
|
4144
|
+
return c.stump = new Js(c), c.storageTrie = new ue(De), u && c.replace(u), c;
|
|
4145
4145
|
}
|
|
4146
4146
|
return n.prototype.addLayer = function(i, a) {
|
|
4147
4147
|
return this.stump.addLayer(i, a);
|
|
@@ -4154,7 +4154,7 @@ function Tn(t, e) {
|
|
|
4154
4154
|
);
|
|
4155
4155
|
t.Root = e;
|
|
4156
4156
|
})(ct || (ct = {}));
|
|
4157
|
-
var
|
|
4157
|
+
var fe = (
|
|
4158
4158
|
/** @class */
|
|
4159
4159
|
function(t) {
|
|
4160
4160
|
ie(e, t);
|
|
@@ -4202,7 +4202,7 @@ var ce = (
|
|
|
4202
4202
|
}, e.prototype.merge = function(r, n) {
|
|
4203
4203
|
return this.parent.merge(r, n);
|
|
4204
4204
|
}, e;
|
|
4205
|
-
}(
|
|
4205
|
+
}(fe)
|
|
4206
4206
|
);
|
|
4207
4207
|
function Ys(t, e, r) {
|
|
4208
4208
|
var n = t[r], i = e[r];
|
|
@@ -4217,11 +4217,11 @@ function Xs(t) {
|
|
|
4217
4217
|
function Ks(t) {
|
|
4218
4218
|
return j(t) ? q(t) ? t.slice(0) : p({ __proto__: Object.getPrototypeOf(t) }, t) : t;
|
|
4219
4219
|
}
|
|
4220
|
-
var
|
|
4220
|
+
var Dn = (
|
|
4221
4221
|
/** @class */
|
|
4222
4222
|
function() {
|
|
4223
4223
|
function t() {
|
|
4224
|
-
this.known = new (Or ? WeakSet : Set)(), this.pool = new
|
|
4224
|
+
this.known = new (Or ? WeakSet : Set)(), this.pool = new ue(De), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
|
|
4225
4225
|
}
|
|
4226
4226
|
return t.prototype.isKnown = function(e) {
|
|
4227
4227
|
return j(e) && this.known.has(e);
|
|
@@ -4278,7 +4278,7 @@ var kn = (
|
|
|
4278
4278
|
}, t;
|
|
4279
4279
|
}()
|
|
4280
4280
|
);
|
|
4281
|
-
function
|
|
4281
|
+
function kn(t) {
|
|
4282
4282
|
return [
|
|
4283
4283
|
t.selectionSet,
|
|
4284
4284
|
t.objectOrReference,
|
|
@@ -4293,11 +4293,11 @@ var Zs = (
|
|
|
4293
4293
|
function() {
|
|
4294
4294
|
function t(e) {
|
|
4295
4295
|
var r = this;
|
|
4296
|
-
this.knownResults = new (
|
|
4296
|
+
this.knownResults = new (De ? WeakMap : Map)(), this.config = Te(e, {
|
|
4297
4297
|
addTypename: e.addTypename !== !1,
|
|
4298
4298
|
canonizeResults: Gi(e)
|
|
4299
|
-
}), this.canon = e.canon || new
|
|
4300
|
-
var i, a = n.context.canonizeResults, o =
|
|
4299
|
+
}), this.canon = e.canon || new Dn(), this.executeSelectionSet = ut(function(n) {
|
|
4300
|
+
var i, a = n.context.canonizeResults, o = kn(n);
|
|
4301
4301
|
o[3] = !a;
|
|
4302
4302
|
var s = (i = r.executeSelectionSet).peek.apply(i, o);
|
|
4303
4303
|
return s ? a ? p(p({}, s), {
|
|
@@ -4307,7 +4307,7 @@ var Zs = (
|
|
|
4307
4307
|
}) : s : (Tn(n.context.store, n.enclosingRef.__ref), r.execSelectionSetImpl(n));
|
|
4308
4308
|
}, {
|
|
4309
4309
|
max: this.config.resultCacheMaxSize || ne["inMemoryCache.executeSelectionSet"] || 5e4,
|
|
4310
|
-
keyArgs:
|
|
4310
|
+
keyArgs: kn,
|
|
4311
4311
|
// Note that the parameters of makeCacheKey are determined by the
|
|
4312
4312
|
// array returned by keyArgs.
|
|
4313
4313
|
makeCacheKey: function(n, i, a, o) {
|
|
@@ -4326,15 +4326,15 @@ var Zs = (
|
|
|
4326
4326
|
});
|
|
4327
4327
|
}
|
|
4328
4328
|
return t.prototype.resetCanon = function() {
|
|
4329
|
-
this.canon = new
|
|
4329
|
+
this.canon = new Dn();
|
|
4330
4330
|
}, t.prototype.diffQueryAgainstStore = function(e) {
|
|
4331
4331
|
var r = e.store, n = e.query, i = e.rootId, a = i === void 0 ? "ROOT_QUERY" : i, o = e.variables, s = e.returnPartialData, u = s === void 0 ? !0 : s, c = e.canonizeResults, f = c === void 0 ? this.config.canonizeResults : c, l = this.config.cache.policies;
|
|
4332
|
-
o = p(p({},
|
|
4332
|
+
o = p(p({}, kr(fi(n))), o);
|
|
4333
4333
|
var h = Pe(a), d = this.executeSelectionSet({
|
|
4334
4334
|
selectionSet: lt(n).selectionSet,
|
|
4335
4335
|
objectOrReference: h,
|
|
4336
4336
|
enclosingRef: h,
|
|
4337
|
-
context: p({ store: r, query: n, policies: l, variables: o, varString:
|
|
4337
|
+
context: p({ store: r, query: n, policies: l, variables: o, varString: ve(o), canonizeResults: f }, Ji(n, this.config.fragments))
|
|
4338
4338
|
}), y;
|
|
4339
4339
|
if (d.missing && (y = [
|
|
4340
4340
|
new Bi(eu(d.missing), d.missing, n, o)
|
|
@@ -4367,7 +4367,7 @@ var Zs = (
|
|
|
4367
4367
|
result: this.canon.empty,
|
|
4368
4368
|
missing: "Dangling reference to missing ".concat(i.__ref, " object")
|
|
4369
4369
|
};
|
|
4370
|
-
var s = o.variables, u = o.policies, c = o.store, f = c.getFieldValue(i, "__typename"), l = [], h, d = new
|
|
4370
|
+
var s = o.variables, u = o.policies, c = o.store, f = c.getFieldValue(i, "__typename"), l = [], h, d = new me();
|
|
4371
4371
|
this.config.addTypename && typeof f == "string" && !u.rootIdsByTypename[f] && l.push({ __typename: f });
|
|
4372
4372
|
function y(_, w) {
|
|
4373
4373
|
var O;
|
|
@@ -4377,35 +4377,35 @@ var Zs = (
|
|
|
4377
4377
|
m.forEach(function(_) {
|
|
4378
4378
|
var w, O;
|
|
4379
4379
|
if (ft(_, s))
|
|
4380
|
-
if (
|
|
4380
|
+
if (pe(_)) {
|
|
4381
4381
|
var E = u.readField({
|
|
4382
4382
|
fieldName: _.name.value,
|
|
4383
4383
|
field: _,
|
|
4384
4384
|
variables: o.variables,
|
|
4385
4385
|
from: i
|
|
4386
|
-
}, o),
|
|
4387
|
-
E === void 0 ? Cr.added(_) || (h = d.merge(h, (w = {}, w[
|
|
4386
|
+
}, o), D = se(_);
|
|
4387
|
+
E === void 0 ? Cr.added(_) || (h = d.merge(h, (w = {}, w[D] = "Can't find field '".concat(_.name.value, "' on ").concat(M(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), w))) : q(E) ? E.length > 0 && (E = y(r.executeSubSelectedArray({
|
|
4388
4388
|
field: _,
|
|
4389
4389
|
array: E,
|
|
4390
4390
|
enclosingRef: a,
|
|
4391
4391
|
context: o
|
|
4392
|
-
}),
|
|
4392
|
+
}), D)) : _.selectionSet ? E != null && (E = y(r.executeSelectionSet({
|
|
4393
4393
|
selectionSet: _.selectionSet,
|
|
4394
4394
|
objectOrReference: E,
|
|
4395
4395
|
enclosingRef: M(E) ? E : a,
|
|
4396
4396
|
context: o
|
|
4397
|
-
}),
|
|
4397
|
+
}), D)) : o.canonizeResults && (E = r.canon.pass(E)), E !== void 0 && l.push((O = {}, O[D] = E, O));
|
|
4398
4398
|
} else {
|
|
4399
|
-
var
|
|
4400
|
-
if (!
|
|
4399
|
+
var k = Rt(_, o.lookupFragment);
|
|
4400
|
+
if (!k && _.kind === N.FRAGMENT_SPREAD)
|
|
4401
4401
|
throw B(10, _.name.value);
|
|
4402
|
-
|
|
4402
|
+
k && u.fragmentMatches(k, f) && k.selectionSet.selections.forEach(m.add, m);
|
|
4403
4403
|
}
|
|
4404
4404
|
});
|
|
4405
4405
|
var g = Nt(l), v = { result: g, missing: h }, b = o.canonizeResults ? this.canon.admit(v) : Qe(v);
|
|
4406
4406
|
return b.result && this.knownResults.set(b.result, n), b;
|
|
4407
4407
|
}, t.prototype.execSubSelectedArrayImpl = function(e) {
|
|
4408
|
-
var r = this, n = e.field, i = e.array, a = e.enclosingRef, o = e.context, s, u = new
|
|
4408
|
+
var r = this, n = e.field, i = e.array, a = e.enclosingRef, o = e.context, s, u = new me();
|
|
4409
4409
|
function c(f, l) {
|
|
4410
4410
|
var h;
|
|
4411
4411
|
return f.missing && (s = u.merge(s, (h = {}, h[l] = f.missing, h))), f.result;
|
|
@@ -4563,7 +4563,7 @@ function Mn(t) {
|
|
|
4563
4563
|
});
|
|
4564
4564
|
}
|
|
4565
4565
|
function Vr(t, e) {
|
|
4566
|
-
var r = new
|
|
4566
|
+
var r = new me();
|
|
4567
4567
|
return Xi(t).reduce(function(n, i) {
|
|
4568
4568
|
var a, o = e(i);
|
|
4569
4569
|
if (o !== void 0) {
|
|
@@ -4756,7 +4756,7 @@ var au = function() {
|
|
|
4756
4756
|
break;
|
|
4757
4757
|
}
|
|
4758
4758
|
}
|
|
4759
|
-
return a === void 0 && (a = e.field ? To(e.field, e.variables) : ci(n, pr(e))), a === !1 ? n : n ===
|
|
4759
|
+
return a === void 0 && (a = e.field ? To(e.field, e.variables) : ci(n, pr(e))), a === !1 ? n : n === ge(a) ? a : n + ":" + a;
|
|
4760
4760
|
}, t.prototype.readField = function(e, r) {
|
|
4761
4761
|
var n = e.from;
|
|
4762
4762
|
if (n) {
|
|
@@ -4766,7 +4766,7 @@ var au = function() {
|
|
|
4766
4766
|
var a = r.store.getFieldValue(n, "__typename");
|
|
4767
4767
|
a && (e.typename = a);
|
|
4768
4768
|
}
|
|
4769
|
-
var o = this.getStoreFieldName(e), s =
|
|
4769
|
+
var o = this.getStoreFieldName(e), s = ge(o), u = r.store.getFieldValue(n, o), c = this.getFieldPolicy(e.typename, s, !1), f = c && c.read;
|
|
4770
4770
|
if (f) {
|
|
4771
4771
|
var l = xn(this, n, e, r, r.store.getStorage(M(n) ? n.__ref : n, o));
|
|
4772
4772
|
return qr.withValue(this.cache, f, [
|
|
@@ -4812,7 +4812,7 @@ var au = function() {
|
|
|
4812
4812
|
}()
|
|
4813
4813
|
);
|
|
4814
4814
|
function xn(t, e, r, n, i) {
|
|
4815
|
-
var a = t.getStoreFieldName(r), o =
|
|
4815
|
+
var a = t.getStoreFieldName(r), o = ge(a), s = r.variables || n.variables, u = n.store, c = u.toReference, f = u.canRead;
|
|
4816
4816
|
return {
|
|
4817
4817
|
args: pr(r),
|
|
4818
4818
|
field: r.field || null,
|
|
@@ -4869,11 +4869,11 @@ var su = (
|
|
|
4869
4869
|
this.cache = e, this.reader = r, this.fragments = n;
|
|
4870
4870
|
}
|
|
4871
4871
|
return t.prototype.writeToStore = function(e, r) {
|
|
4872
|
-
var n = this, i = r.query, a = r.result, o = r.dataId, s = r.variables, u = r.overwrite, c =
|
|
4873
|
-
s = p(p({},
|
|
4872
|
+
var n = this, i = r.query, a = r.result, o = r.dataId, s = r.variables, u = r.overwrite, c = Se(i), f = Hs();
|
|
4873
|
+
s = p(p({}, kr(c)), s);
|
|
4874
4874
|
var l = p(p({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(d, y) {
|
|
4875
4875
|
return f.merge(d, y);
|
|
4876
|
-
}, variables: s, varString:
|
|
4876
|
+
}, variables: s, varString: ve(s) }, Ji(i, this.fragments)), { overwrite: !!u, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }), h = this.processSelectionSet({
|
|
4877
4877
|
result: a || /* @__PURE__ */ Object.create(null),
|
|
4878
4878
|
dataId: o,
|
|
4879
4879
|
selectionSet: c.selectionSet,
|
|
@@ -4892,17 +4892,17 @@ var su = (
|
|
|
4892
4892
|
}
|
|
4893
4893
|
if (globalThis.__DEV__ !== !1 && !l.overwrite) {
|
|
4894
4894
|
var w = /* @__PURE__ */ Object.create(null);
|
|
4895
|
-
v.forEach(function(
|
|
4896
|
-
|
|
4895
|
+
v.forEach(function(D) {
|
|
4896
|
+
D.selectionSet && (w[D.name.value] = !0);
|
|
4897
4897
|
});
|
|
4898
|
-
var O = function(
|
|
4899
|
-
return w[
|
|
4900
|
-
}, E = function(
|
|
4901
|
-
var
|
|
4902
|
-
return !!(
|
|
4898
|
+
var O = function(D) {
|
|
4899
|
+
return w[ge(D)] === !0;
|
|
4900
|
+
}, E = function(D) {
|
|
4901
|
+
var k = g && g.map.get(D);
|
|
4902
|
+
return !!(k && k.info && k.info.merge);
|
|
4903
4903
|
};
|
|
4904
|
-
Object.keys(m).forEach(function(
|
|
4905
|
-
O(
|
|
4904
|
+
Object.keys(m).forEach(function(D) {
|
|
4905
|
+
O(D) && !E(D) && uu(b, m, D, l.store);
|
|
4906
4906
|
});
|
|
4907
4907
|
}
|
|
4908
4908
|
e.merge(y, m);
|
|
@@ -4931,15 +4931,15 @@ var su = (
|
|
|
4931
4931
|
o,
|
|
4932
4932
|
f
|
|
4933
4933
|
).forEach(function(_, w) {
|
|
4934
|
-
var O, E =
|
|
4935
|
-
if (h.add(w),
|
|
4936
|
-
var
|
|
4934
|
+
var O, E = se(w), D = i[E];
|
|
4935
|
+
if (h.add(w), D !== void 0) {
|
|
4936
|
+
var k = u.getStoreFieldName({
|
|
4937
4937
|
typename: f,
|
|
4938
4938
|
fieldName: w.name.value,
|
|
4939
4939
|
field: w,
|
|
4940
4940
|
variables: _.variables
|
|
4941
|
-
}), R = jn(s,
|
|
4942
|
-
|
|
4941
|
+
}), R = jn(s, k), A = r.processFieldValue(
|
|
4942
|
+
D,
|
|
4943
4943
|
w,
|
|
4944
4944
|
// Reset context.clientOnly and context.deferred to their default
|
|
4945
4945
|
// values before processing nested selection sets.
|
|
@@ -4953,11 +4953,11 @@ var su = (
|
|
|
4953
4953
|
field: w,
|
|
4954
4954
|
typename: f,
|
|
4955
4955
|
merge: ae
|
|
4956
|
-
} : qn(s,
|
|
4956
|
+
} : qn(s, k), c = _.merge(c, (O = {}, O[k] = A, O));
|
|
4957
4957
|
} else globalThis.__DEV__ !== !1 && !_.clientOnly && !_.deferred && !Cr.added(w) && // If the field has a read function, it may be a synthetic field or
|
|
4958
4958
|
// provide a default value, so its absence from the written data should
|
|
4959
4959
|
// not be cause for alarm.
|
|
4960
|
-
!u.getReadFunction(f, w.name.value) && globalThis.__DEV__ !== !1 && S.error(13,
|
|
4960
|
+
!u.getReadFunction(f, w.name.value) && globalThis.__DEV__ !== !1 && S.error(13, se(w), i);
|
|
4961
4961
|
});
|
|
4962
4962
|
try {
|
|
4963
4963
|
var d = u.identify(i, {
|
|
@@ -4984,7 +4984,7 @@ var su = (
|
|
|
4984
4984
|
// Save a reference to mergeTree only if it is not empty, because
|
|
4985
4985
|
// empty MergeTrees may be recycled by maybeRecycleChildMergeTree and
|
|
4986
4986
|
// reused for entirely different parts of the result tree.
|
|
4987
|
-
mergeTree:
|
|
4987
|
+
mergeTree: Dt(s) ? void 0 : s,
|
|
4988
4988
|
fieldNodeSet: h
|
|
4989
4989
|
}), g;
|
|
4990
4990
|
}
|
|
@@ -5002,7 +5002,7 @@ var su = (
|
|
|
5002
5002
|
});
|
|
5003
5003
|
}, t.prototype.flattenFields = function(e, r, n, i) {
|
|
5004
5004
|
i === void 0 && (i = ar(r, e, n.fragmentMap));
|
|
5005
|
-
var a = /* @__PURE__ */ new Map(), o = this.cache.policies, s = new
|
|
5005
|
+
var a = /* @__PURE__ */ new Map(), o = this.cache.policies, s = new ue(!1);
|
|
5006
5006
|
return function u(c, f) {
|
|
5007
5007
|
var l = s.lookup(
|
|
5008
5008
|
c,
|
|
@@ -5026,7 +5026,7 @@ var su = (
|
|
|
5026
5026
|
var _ = Ct(v, n.variables);
|
|
5027
5027
|
(!_ || _.if !== !1) && (y = !0);
|
|
5028
5028
|
}
|
|
5029
|
-
}),
|
|
5029
|
+
}), pe(h)
|
|
5030
5030
|
) {
|
|
5031
5031
|
var m = a.get(h);
|
|
5032
5032
|
m && (d = d && m.clientOnly, y = y && m.deferred), a.set(h, $t(n, d, y));
|
|
@@ -5075,9 +5075,9 @@ function jn(t, e) {
|
|
|
5075
5075
|
return r.has(e) || r.set(e, ta.pop() || { map: /* @__PURE__ */ new Map() }), r.get(e);
|
|
5076
5076
|
}
|
|
5077
5077
|
function yr(t, e) {
|
|
5078
|
-
if (t === e || !e ||
|
|
5078
|
+
if (t === e || !e || Dt(e))
|
|
5079
5079
|
return t;
|
|
5080
|
-
if (!t ||
|
|
5080
|
+
if (!t || Dt(t))
|
|
5081
5081
|
return e;
|
|
5082
5082
|
var r = t.info && e.info ? p(p({}, t.info), e.info) : t.info || e.info, n = t.map.size && e.map.size, i = n ? /* @__PURE__ */ new Map() : t.map.size ? t.map : e.map, a = { info: r, map: i };
|
|
5083
5083
|
if (n) {
|
|
@@ -5090,12 +5090,12 @@ function yr(t, e) {
|
|
|
5090
5090
|
}
|
|
5091
5091
|
return a;
|
|
5092
5092
|
}
|
|
5093
|
-
function
|
|
5093
|
+
function Dt(t) {
|
|
5094
5094
|
return !t || !(t.info || t.map.size);
|
|
5095
5095
|
}
|
|
5096
5096
|
function qn(t, e) {
|
|
5097
5097
|
var r = t.map, n = r.get(e);
|
|
5098
|
-
n &&
|
|
5098
|
+
n && Dt(n) && (ta.push(n), r.delete(e));
|
|
5099
5099
|
}
|
|
5100
5100
|
var Qn = /* @__PURE__ */ new Set();
|
|
5101
5101
|
function uu(t, e, r, n) {
|
|
@@ -5108,7 +5108,7 @@ function uu(t, e, r, n) {
|
|
|
5108
5108
|
if (o && !M(a) && !C(a, o) && !Object.keys(a).every(function(l) {
|
|
5109
5109
|
return n.getFieldValue(o, l) !== void 0;
|
|
5110
5110
|
})) {
|
|
5111
|
-
var s = n.getFieldValue(t, "__typename") || n.getFieldValue(e, "__typename"), u =
|
|
5111
|
+
var s = n.getFieldValue(t, "__typename") || n.getFieldValue(e, "__typename"), u = ge(r), c = "".concat(s, ".").concat(u);
|
|
5112
5112
|
if (!Qn.has(c)) {
|
|
5113
5113
|
Qn.add(c);
|
|
5114
5114
|
var f = [];
|
|
@@ -5166,7 +5166,7 @@ var ra = (
|
|
|
5166
5166
|
// separation is to include c.callback in the cache key for
|
|
5167
5167
|
// maybeBroadcastWatch calls. See issue #5733.
|
|
5168
5168
|
o.callback,
|
|
5169
|
-
|
|
5169
|
+
ve({ optimistic: u, id: c, variables: f })
|
|
5170
5170
|
);
|
|
5171
5171
|
}
|
|
5172
5172
|
}
|
|
@@ -5210,7 +5210,7 @@ var ra = (
|
|
|
5210
5210
|
};
|
|
5211
5211
|
}, e.prototype.gc = function(r) {
|
|
5212
5212
|
var n;
|
|
5213
|
-
|
|
5213
|
+
ve.reset(), we.reset(), this.addTypenameTransform.resetCache(), (n = this.config.fragments) === null || n === void 0 || n.resetCaches();
|
|
5214
5214
|
var i = this.optimisticData.gc();
|
|
5215
5215
|
return r && !this.txCount && (r.resetResultCache ? this.resetResultCache(r.resetResultIdentities) : r.resetResultIdentities && this.storeReader.resetCanon()), i;
|
|
5216
5216
|
}, e.prototype.retain = function(r, n) {
|
|
@@ -5238,7 +5238,7 @@ var ra = (
|
|
|
5238
5238
|
}
|
|
5239
5239
|
}, e.prototype.reset = function(r) {
|
|
5240
5240
|
var n = this;
|
|
5241
|
-
return this.init(),
|
|
5241
|
+
return this.init(), ve.reset(), r && r.discardWatches ? (this.watches.forEach(function(i) {
|
|
5242
5242
|
return n.maybeBroadcastWatch.forget(i);
|
|
5243
5243
|
}), this.watches.clear(), Fn(this)) : this.broadcastWatches(), Promise.resolve();
|
|
5244
5244
|
}, e.prototype.removeOptimistic = function(r) {
|
|
@@ -5329,7 +5329,7 @@ var Vn = Object.assign, cu = Object.hasOwnProperty, at = (
|
|
|
5329
5329
|
// case options.fetchPolicy was not provided.
|
|
5330
5330
|
fetchPolicy: d
|
|
5331
5331
|
}), o.queryId = i.queryId || n.generateQueryId();
|
|
5332
|
-
var g =
|
|
5332
|
+
var g = Se(o.query);
|
|
5333
5333
|
return o.queryName = g && g.name && g.name.value, o;
|
|
5334
5334
|
}
|
|
5335
5335
|
return Object.defineProperty(e.prototype, "query", {
|
|
@@ -5497,7 +5497,7 @@ var Vn = Object.assign, cu = Object.hasOwnProperty, at = (
|
|
|
5497
5497
|
}, e.prototype.setOptions = function(r) {
|
|
5498
5498
|
return this.reobserve(r);
|
|
5499
5499
|
}, e.prototype.silentSetOptions = function(r) {
|
|
5500
|
-
var n =
|
|
5500
|
+
var n = Te(this.options, r || {});
|
|
5501
5501
|
Vn(this.options, n);
|
|
5502
5502
|
}, e.prototype.setVariables = function(r) {
|
|
5503
5503
|
return C(this.variables, r) ? this.observers.size ? this.result() : Promise.resolve() : (this.options.variables = r, this.observers.size ? this.reobserve({
|
|
@@ -5583,7 +5583,7 @@ var Vn = Object.assign, cu = Object.hasOwnProperty, at = (
|
|
|
5583
5583
|
n === F.fetchMore || // Polling uses a disposable Concast so the polling options (which force
|
|
5584
5584
|
// fetchPolicy to be "network-only" or "no-cache") won't override the original options.
|
|
5585
5585
|
n === F.poll
|
|
5586
|
-
), o = this.options.variables, s = this.options.fetchPolicy, u =
|
|
5586
|
+
), o = this.options.variables, s = this.options.fetchPolicy, u = Te(this.options, r || {}), c = a ? (
|
|
5587
5587
|
// Disposable Concast fetches receive a shallow copy of this.options
|
|
5588
5588
|
// (merged with newOptions), leaving this.options unmodified.
|
|
5589
5589
|
u
|
|
@@ -5682,7 +5682,7 @@ function na(t) {
|
|
|
5682
5682
|
function Gt(t) {
|
|
5683
5683
|
return t === "network-only" || t === "no-cache" || t === "standby";
|
|
5684
5684
|
}
|
|
5685
|
-
var Me = new (
|
|
5685
|
+
var Me = new (De ? WeakMap : Map)();
|
|
5686
5686
|
function Ht(t, e) {
|
|
5687
5687
|
var r = t[e];
|
|
5688
5688
|
typeof r == "function" && (t[e] = function() {
|
|
@@ -5773,7 +5773,7 @@ var Jt = (
|
|
|
5773
5773
|
// the cache will repair what was evicted.
|
|
5774
5774
|
n.dmCount === Me.get(this.cache) && C(r, n.variables) && C(e.data, n.result.data));
|
|
5775
5775
|
}, t.prototype.markResult = function(e, r, n, i) {
|
|
5776
|
-
var a = this, o, s = new
|
|
5776
|
+
var a = this, o, s = new me(), u = J(e.errors) ? e.errors.slice(0) : [];
|
|
5777
5777
|
if ((o = this.observableQuery) === null || o === void 0 || o.resetNotifications(), "incremental" in e && J(e.incremental)) {
|
|
5778
5778
|
var c = Mi(this.getDiff().result, e);
|
|
5779
5779
|
e.data = c;
|
|
@@ -5821,7 +5821,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
5821
5821
|
this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new Tr(
|
|
5822
5822
|
ne["queryManager.getDocumentInfo"] || 2e3
|
|
5823
5823
|
/* defaultCacheSizes["queryManager.getDocumentInfo"] */
|
|
5824
|
-
), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new
|
|
5824
|
+
), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new ue(!1), this.noCacheWarningsByQueryId = /* @__PURE__ */ new Set();
|
|
5825
5825
|
var n = new Oi(
|
|
5826
5826
|
function(a) {
|
|
5827
5827
|
return r.cache.transformDocument(a);
|
|
@@ -5843,9 +5843,9 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
5843
5843
|
return r(e);
|
|
5844
5844
|
}), this.fetchCancelFns.clear();
|
|
5845
5845
|
}, t.prototype.mutate = function(e) {
|
|
5846
|
-
return
|
|
5847
|
-
var n, i, a, o, s, u, c, f = r.mutation, l = r.variables, h = r.optimisticResponse, d = r.updateQueries, y = r.refetchQueries, m = y === void 0 ? [] : y, g = r.awaitRefetchQueries, v = g === void 0 ? !1 : g, b = r.update, _ = r.onQueryUpdated, w = r.fetchPolicy, O = w === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.fetchPolicy) || "network-only" : w, E = r.errorPolicy,
|
|
5848
|
-
return
|
|
5846
|
+
return le(this, arguments, void 0, function(r) {
|
|
5847
|
+
var n, i, a, o, s, u, c, f = r.mutation, l = r.variables, h = r.optimisticResponse, d = r.updateQueries, y = r.refetchQueries, m = y === void 0 ? [] : y, g = r.awaitRefetchQueries, v = g === void 0 ? !1 : g, b = r.update, _ = r.onQueryUpdated, w = r.fetchPolicy, O = w === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.fetchPolicy) || "network-only" : w, E = r.errorPolicy, D = E === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.errorPolicy) || "none" : E, k = r.keepRootFields, R = r.context;
|
|
5848
|
+
return he(this, function(A) {
|
|
5849
5849
|
switch (A.label) {
|
|
5850
5850
|
case 0:
|
|
5851
5851
|
return S(f, 28), S(O === "network-only" || O === "no-cache", 29), n = this.generateMutationId(), f = this.cache.transformForLink(this.transform(f)), i = this.getDocumentInfo(f).hasClientExports, l = this.getVariables(f, l), i ? [4, this.localState.addExportedVariables(f, l, R)] : [3, 2];
|
|
@@ -5862,26 +5862,26 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
5862
5862
|
document: f,
|
|
5863
5863
|
variables: l,
|
|
5864
5864
|
fetchPolicy: O,
|
|
5865
|
-
errorPolicy:
|
|
5865
|
+
errorPolicy: D,
|
|
5866
5866
|
context: R,
|
|
5867
5867
|
updateQueries: d,
|
|
5868
5868
|
update: b,
|
|
5869
|
-
keepRootFields:
|
|
5869
|
+
keepRootFields: k
|
|
5870
5870
|
}), this.broadcastQueries(), s = this, [2, new Promise(function($, ae) {
|
|
5871
5871
|
return zt(s.getObservableFromLink(f, p(p({}, R), { optimisticResponse: o ? h : void 0 }), l, {}, !1), function(Q) {
|
|
5872
|
-
if (_t(Q) &&
|
|
5872
|
+
if (_t(Q) && D === "none")
|
|
5873
5873
|
throw new te({
|
|
5874
5874
|
graphQLErrors: cr(Q)
|
|
5875
5875
|
});
|
|
5876
5876
|
a && (a.loading = !1, a.error = null);
|
|
5877
5877
|
var G = p({}, Q);
|
|
5878
|
-
return typeof m == "function" && (m = m(G)),
|
|
5878
|
+
return typeof m == "function" && (m = m(G)), D === "ignore" && _t(G) && delete G.errors, s.markMutationResult({
|
|
5879
5879
|
mutationId: n,
|
|
5880
5880
|
result: G,
|
|
5881
5881
|
document: f,
|
|
5882
5882
|
variables: l,
|
|
5883
5883
|
fetchPolicy: O,
|
|
5884
|
-
errorPolicy:
|
|
5884
|
+
errorPolicy: D,
|
|
5885
5885
|
context: R,
|
|
5886
5886
|
update: b,
|
|
5887
5887
|
updateQueries: d,
|
|
@@ -5889,7 +5889,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
5889
5889
|
refetchQueries: m,
|
|
5890
5890
|
removeOptimistic: o ? n : void 0,
|
|
5891
5891
|
onQueryUpdated: _,
|
|
5892
|
-
keepRootFields:
|
|
5892
|
+
keepRootFields: k
|
|
5893
5893
|
});
|
|
5894
5894
|
}).subscribe({
|
|
5895
5895
|
next: function(Q) {
|
|
@@ -6064,7 +6064,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6064
6064
|
{ name: "nonreactive" },
|
|
6065
6065
|
{ name: "unmask" }
|
|
6066
6066
|
], e),
|
|
6067
|
-
defaultVars:
|
|
6067
|
+
defaultVars: kr(Se(e)),
|
|
6068
6068
|
// Transform any mutation or subscription operations to query operations
|
|
6069
6069
|
// so we can read/write them from/to the cache.
|
|
6070
6070
|
asQuery: p(p({}, e), { definitions: e.definitions.map(function(i) {
|
|
@@ -6128,7 +6128,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6128
6128
|
if (typeof s == "string")
|
|
6129
6129
|
i.set(s, s), a.set(s, !1);
|
|
6130
6130
|
else if (po(s)) {
|
|
6131
|
-
var u =
|
|
6131
|
+
var u = we(r.transform(s));
|
|
6132
6132
|
i.set(u, Ke(s)), a.set(u, !1);
|
|
6133
6133
|
} else j(s) && s.query && o.add(s);
|
|
6134
6134
|
}), this.queries.forEach(function(s, u) {
|
|
@@ -6141,7 +6141,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6141
6141
|
var l = c.queryName, h = c.options.fetchPolicy;
|
|
6142
6142
|
if (h === "standby" || e === "active" && !c.hasObservers())
|
|
6143
6143
|
return;
|
|
6144
|
-
(e === "active" || l && a.has(l) || f && a.has(
|
|
6144
|
+
(e === "active" || l && a.has(l) || f && a.has(we(f))) && (n.set(u, c), l && a.set(l, !0), f && a.set(we(f), !0));
|
|
6145
6145
|
}
|
|
6146
6146
|
}), o.size && o.forEach(function(s) {
|
|
6147
6147
|
var u = er("legacyOneTimeQuery"), c = r.getOrCreateQuery(u).init({
|
|
@@ -6226,7 +6226,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6226
6226
|
extensions: i
|
|
6227
6227
|
};
|
|
6228
6228
|
if (r = m.context, a) {
|
|
6229
|
-
var g =
|
|
6229
|
+
var g = we(f), v = ve(n), b = d.lookup(g, v);
|
|
6230
6230
|
if (u = b.observable, !u) {
|
|
6231
6231
|
var _ = new Ie([
|
|
6232
6232
|
fr(y, m)
|
|
@@ -6281,8 +6281,8 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6281
6281
|
returnPartialData: d,
|
|
6282
6282
|
notifyOnNetworkStatusChange: m,
|
|
6283
6283
|
context: v
|
|
6284
|
-
}), _ = function(
|
|
6285
|
-
b.variables =
|
|
6284
|
+
}), _ = function(k) {
|
|
6285
|
+
b.variables = k;
|
|
6286
6286
|
var R = a.fetchQueryByPolicy(e, b, n);
|
|
6287
6287
|
return (
|
|
6288
6288
|
// If we're in standby, postpone advancing options.fetchPolicy using
|
|
@@ -6294,19 +6294,19 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6294
6294
|
}, w = function() {
|
|
6295
6295
|
return a.fetchCancelFns.delete(e.queryId);
|
|
6296
6296
|
};
|
|
6297
|
-
this.fetchCancelFns.set(e.queryId, function(
|
|
6297
|
+
this.fetchCancelFns.set(e.queryId, function(k) {
|
|
6298
6298
|
w(), setTimeout(function() {
|
|
6299
|
-
return O.cancel(
|
|
6299
|
+
return O.cancel(k);
|
|
6300
6300
|
});
|
|
6301
6301
|
});
|
|
6302
6302
|
var O, E;
|
|
6303
6303
|
if (this.getDocumentInfo(b.query).hasClientExports)
|
|
6304
|
-
O = new Ie(this.localState.addExportedVariables(b.query, b.variables, b.context).then(_).then(function(
|
|
6305
|
-
return
|
|
6304
|
+
O = new Ie(this.localState.addExportedVariables(b.query, b.variables, b.context).then(_).then(function(k) {
|
|
6305
|
+
return k.sources;
|
|
6306
6306
|
})), E = !0;
|
|
6307
6307
|
else {
|
|
6308
|
-
var
|
|
6309
|
-
E =
|
|
6308
|
+
var D = _(b.variables);
|
|
6309
|
+
E = D.fromLink, O = new Ie(D.sources);
|
|
6310
6310
|
}
|
|
6311
6311
|
return O.promise.then(w, w), {
|
|
6312
6312
|
concast: O,
|
|
@@ -6379,7 +6379,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6379
6379
|
}, t.prototype.maskOperation = function(e) {
|
|
6380
6380
|
var r, n, i, a = e.document, o = e.data;
|
|
6381
6381
|
if (globalThis.__DEV__ !== !1) {
|
|
6382
|
-
var s = e.fetchPolicy, u = e.id, c = (r =
|
|
6382
|
+
var s = e.fetchPolicy, u = e.id, c = (r = Se(a)) === null || r === void 0 ? void 0 : r.operation, f = ((n = c == null ? void 0 : c[0]) !== null && n !== void 0 ? n : "o") + u;
|
|
6383
6383
|
this.dataMasking && s === "no-cache" && !Ya(a) && !this.noCacheWarningsByQueryId.has(f) && (this.noCacheWarningsByQueryId.add(f), globalThis.__DEV__ !== !1 && S.warn(
|
|
6384
6384
|
37,
|
|
6385
6385
|
(i = Ke(a)) !== null && i !== void 0 ? i : "Unnamed ".concat(c ?? "operation")
|
|
@@ -6402,8 +6402,8 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6402
6402
|
O === void 0 && (O = e.networkStatus || F.loading);
|
|
6403
6403
|
var E = w.result;
|
|
6404
6404
|
globalThis.__DEV__ !== !1 && !f && !C(E, {}) && na(w.missing);
|
|
6405
|
-
var
|
|
6406
|
-
return P.of(p({ data:
|
|
6405
|
+
var D = function(k) {
|
|
6406
|
+
return P.of(p({ data: k, loading: Ce(O), networkStatus: O }, w.complete ? null : { partial: !0 }));
|
|
6407
6407
|
};
|
|
6408
6408
|
return E && i.getDocumentInfo(a).hasForcedResolvers ? i.localState.runResolvers({
|
|
6409
6409
|
document: a,
|
|
@@ -6411,9 +6411,9 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6411
6411
|
context: l,
|
|
6412
6412
|
variables: o,
|
|
6413
6413
|
onlyRunForcedResolvers: !0
|
|
6414
|
-
}).then(function(
|
|
6415
|
-
return k
|
|
6416
|
-
}) : c === "none" && O === F.refetch && Array.isArray(w.missing) ?
|
|
6414
|
+
}).then(function(k) {
|
|
6415
|
+
return D(k.data || void 0);
|
|
6416
|
+
}) : c === "none" && O === F.refetch && Array.isArray(w.missing) ? D(void 0) : D(E);
|
|
6417
6417
|
}, g = s === "no-cache" ? 0 : n === F.refetch && u !== "merge" ? 1 : 2, v = function() {
|
|
6418
6418
|
return i.getResultsFromLink(e, g, {
|
|
6419
6419
|
query: a,
|
|
@@ -6488,9 +6488,9 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6488
6488
|
}, t.prototype.getResolvers = function() {
|
|
6489
6489
|
return this.resolvers || {};
|
|
6490
6490
|
}, t.prototype.runResolvers = function(e) {
|
|
6491
|
-
return
|
|
6491
|
+
return le(this, arguments, void 0, function(r) {
|
|
6492
6492
|
var n = r.document, i = r.remoteResult, a = r.context, o = r.variables, s = r.onlyRunForcedResolvers, u = s === void 0 ? !1 : s;
|
|
6493
|
-
return
|
|
6493
|
+
return he(this, function(c) {
|
|
6494
6494
|
return n ? [2, this.resolveDocument(n, i.data, a, o, this.fragmentMatcher, u).then(function(f) {
|
|
6495
6495
|
return p(p({}, i), { data: f.result });
|
|
6496
6496
|
})] : [2, i];
|
|
@@ -6503,7 +6503,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6503
6503
|
}, t.prototype.clientQuery = function(e) {
|
|
6504
6504
|
return ot(["client"], e) && this.resolvers ? e : null;
|
|
6505
6505
|
}, t.prototype.serverQuery = function(e) {
|
|
6506
|
-
return
|
|
6506
|
+
return Di(e);
|
|
6507
6507
|
}, t.prototype.prepareContext = function(e) {
|
|
6508
6508
|
var r = this.cache;
|
|
6509
6509
|
return p(p({}, e), {
|
|
@@ -6514,8 +6514,8 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6514
6514
|
}
|
|
6515
6515
|
});
|
|
6516
6516
|
}, t.prototype.addExportedVariables = function(e) {
|
|
6517
|
-
return
|
|
6518
|
-
return n === void 0 && (n = {}), i === void 0 && (i = {}),
|
|
6517
|
+
return le(this, arguments, void 0, function(r, n, i) {
|
|
6518
|
+
return n === void 0 && (n = {}), i === void 0 && (i = {}), he(this, function(a) {
|
|
6519
6519
|
return r ? [2, this.resolveDocument(r, this.buildRootValueFromCache(r, n) || {}, this.prepareContext(i), n).then(function(o) {
|
|
6520
6520
|
return p(p({}, n), o.exportedVariables);
|
|
6521
6521
|
})] : [2, p({}, n)];
|
|
@@ -6523,7 +6523,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6523
6523
|
});
|
|
6524
6524
|
}, t.prototype.shouldForceResolvers = function(e) {
|
|
6525
6525
|
var r = !1;
|
|
6526
|
-
return
|
|
6526
|
+
return Z(e, {
|
|
6527
6527
|
Directive: {
|
|
6528
6528
|
enter: function(n) {
|
|
6529
6529
|
if (n.name.value === "client" && n.arguments && (r = n.arguments.some(function(i) {
|
|
@@ -6541,11 +6541,11 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6541
6541
|
optimistic: !1
|
|
6542
6542
|
}).result;
|
|
6543
6543
|
}, t.prototype.resolveDocument = function(e, r) {
|
|
6544
|
-
return
|
|
6544
|
+
return le(this, arguments, void 0, function(n, i, a, o, s, u) {
|
|
6545
6545
|
var c, f, l, h, d, y, m, g, v, b, _;
|
|
6546
6546
|
return a === void 0 && (a = {}), o === void 0 && (o = {}), s === void 0 && (s = function() {
|
|
6547
6547
|
return !0;
|
|
6548
|
-
}), u === void 0 && (u = !1),
|
|
6548
|
+
}), u === void 0 && (u = !1), he(this, function(w) {
|
|
6549
6549
|
return c = lt(n), f = ze(n), l = Ve(f), h = this.collectSelectionsToResolve(c, l), d = c.operation, y = d ? d.charAt(0).toUpperCase() + d.slice(1) : "Query", m = this, g = m.cache, v = m.client, b = {
|
|
6550
6550
|
fragmentMap: l,
|
|
6551
6551
|
context: p(p({}, a), { cache: g, client: v }),
|
|
@@ -6564,20 +6564,20 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6564
6564
|
});
|
|
6565
6565
|
});
|
|
6566
6566
|
}, t.prototype.resolveSelectionSet = function(e, r, n, i) {
|
|
6567
|
-
return
|
|
6567
|
+
return le(this, void 0, void 0, function() {
|
|
6568
6568
|
var a, o, s, u, c, f = this;
|
|
6569
|
-
return
|
|
6569
|
+
return he(this, function(l) {
|
|
6570
6570
|
return a = i.fragmentMap, o = i.context, s = i.variables, u = [n], c = function(h) {
|
|
6571
|
-
return
|
|
6571
|
+
return le(f, void 0, void 0, function() {
|
|
6572
6572
|
var d, y;
|
|
6573
|
-
return
|
|
6573
|
+
return he(this, function(m) {
|
|
6574
6574
|
return !r && !i.selectionsToResolve.has(h) ? [
|
|
6575
6575
|
2
|
|
6576
6576
|
/*return*/
|
|
6577
|
-
] : ft(h, s) ?
|
|
6577
|
+
] : ft(h, s) ? pe(h) ? [2, this.resolveField(h, r, n, i).then(function(g) {
|
|
6578
6578
|
var v;
|
|
6579
|
-
typeof g < "u" && u.push((v = {}, v[
|
|
6580
|
-
})] : (
|
|
6579
|
+
typeof g < "u" && u.push((v = {}, v[se(h)] = g, v));
|
|
6580
|
+
})] : (ko(h) ? d = h : (d = a[h.name.value], S(d, 19, h.name.value)), d && d.typeCondition && (y = d.typeCondition.name.value, i.fragmentMatcher(n, y, o)) ? [2, this.resolveSelectionSet(d.selectionSet, r, n, i).then(function(g) {
|
|
6581
6581
|
u.push(g);
|
|
6582
6582
|
})] : [
|
|
6583
6583
|
2
|
|
@@ -6594,10 +6594,10 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6594
6594
|
});
|
|
6595
6595
|
});
|
|
6596
6596
|
}, t.prototype.resolveField = function(e, r, n, i) {
|
|
6597
|
-
return
|
|
6597
|
+
return le(this, void 0, void 0, function() {
|
|
6598
6598
|
var a, o, s, u, c, f, l, h, d, y = this;
|
|
6599
|
-
return
|
|
6600
|
-
return n ? (a = i.variables, o = e.name.value, s =
|
|
6599
|
+
return he(this, function(m) {
|
|
6600
|
+
return n ? (a = i.variables, o = e.name.value, s = se(e), u = o !== s, c = n[s] || n[o], f = Promise.resolve(c), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (l = n.__typename || i.defaultOperationType, h = this.resolvers && this.resolvers[l], h && (d = h[u ? o : s], d && (f = Promise.resolve(
|
|
6601
6601
|
// In case the resolve function accesses reactive variables,
|
|
6602
6602
|
// set cacheSlot to the current cache instance.
|
|
6603
6603
|
qr.withValue(this.cache, d, [
|
|
@@ -6641,7 +6641,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6641
6641
|
function a(o) {
|
|
6642
6642
|
if (!i.has(o)) {
|
|
6643
6643
|
var s = /* @__PURE__ */ new Set();
|
|
6644
|
-
i.set(o, s),
|
|
6644
|
+
i.set(o, s), Z(o, {
|
|
6645
6645
|
Directive: function(u, c, f, l, h) {
|
|
6646
6646
|
u.name.value === "client" && h.forEach(function(d) {
|
|
6647
6647
|
n(d) && Kr(d) && s.add(d);
|
|
@@ -6671,7 +6671,7 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6671
6671
|
var r = this, n;
|
|
6672
6672
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache)
|
|
6673
6673
|
throw B(16);
|
|
6674
|
-
var i = e.uri, a = e.credentials, o = e.headers, s = e.cache, u = e.documentTransform, c = e.ssrMode, f = c === void 0 ? !1 : c, l = e.ssrForceFetchDelay, h = l === void 0 ? 0 : l, d = e.connectToDevTools, y = e.queryDeduplication, m = y === void 0 ? !0 : y, g = e.defaultOptions, v = e.defaultContext, b = e.assumeImmutableResults, _ = b === void 0 ? s.assumeImmutableResults : b, w = e.resolvers, O = e.typeDefs, E = e.fragmentMatcher,
|
|
6674
|
+
var i = e.uri, a = e.credentials, o = e.headers, s = e.cache, u = e.documentTransform, c = e.ssrMode, f = c === void 0 ? !1 : c, l = e.ssrForceFetchDelay, h = l === void 0 ? 0 : l, d = e.connectToDevTools, y = e.queryDeduplication, m = y === void 0 ? !0 : y, g = e.defaultOptions, v = e.defaultContext, b = e.assumeImmutableResults, _ = b === void 0 ? s.assumeImmutableResults : b, w = e.resolvers, O = e.typeDefs, E = e.fragmentMatcher, D = e.name, k = e.version, R = e.devtools, A = e.dataMasking, $ = e.link;
|
|
6675
6675
|
$ || ($ = i ? new js({ uri: i, credentials: a, headers: o }) : We.empty()), this.link = $, this.cache = s, this.disableNetworkFetches = f || h > 0, this.queryDeduplication = m, this.defaultOptions = g || /* @__PURE__ */ Object.create(null), this.typeDefs = O, this.devtoolsConfig = p(p({}, R), { enabled: (n = R == null ? void 0 : R.enabled) !== null && n !== void 0 ? n : d }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), h && setTimeout(function() {
|
|
6676
6676
|
return r.disableNetworkFetches = !1;
|
|
6677
6677
|
}, h), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = _r, this.localState = new du({
|
|
@@ -6689,8 +6689,8 @@ var lu = Object.prototype.hasOwnProperty, Ln = /* @__PURE__ */ Object.create(nul
|
|
|
6689
6689
|
ssrMode: f,
|
|
6690
6690
|
dataMasking: !!A,
|
|
6691
6691
|
clientAwareness: {
|
|
6692
|
-
name:
|
|
6693
|
-
version:
|
|
6692
|
+
name: D,
|
|
6693
|
+
version: k
|
|
6694
6694
|
},
|
|
6695
6695
|
localState: this.localState,
|
|
6696
6696
|
assumeImmutableResults: _,
|
|
@@ -6892,7 +6892,7 @@ var re;
|
|
|
6892
6892
|
(function(t) {
|
|
6893
6893
|
t[t.Query = 0] = "Query", t[t.Mutation = 1] = "Mutation", t[t.Subscription = 2] = "Subscription";
|
|
6894
6894
|
})(re || (re = {}));
|
|
6895
|
-
var
|
|
6895
|
+
var Oe;
|
|
6896
6896
|
function $n(t) {
|
|
6897
6897
|
var e;
|
|
6898
6898
|
switch (t) {
|
|
@@ -6909,11 +6909,11 @@ function $n(t) {
|
|
|
6909
6909
|
return e;
|
|
6910
6910
|
}
|
|
6911
6911
|
function sa(t) {
|
|
6912
|
-
|
|
6912
|
+
Oe || (Oe = new Tr(
|
|
6913
6913
|
ne.parser || 1e3
|
|
6914
6914
|
/* defaultCacheSizes.parser */
|
|
6915
6915
|
));
|
|
6916
|
-
var e =
|
|
6916
|
+
var e = Oe.get(t);
|
|
6917
6917
|
if (e)
|
|
6918
6918
|
return e;
|
|
6919
6919
|
var r, n, i;
|
|
@@ -6950,13 +6950,13 @@ function sa(t) {
|
|
|
6950
6950
|
var d = h[0];
|
|
6951
6951
|
r = d.variableDefinitions || [], d.name && d.name.kind === "Name" ? i = d.name.value : i = "data";
|
|
6952
6952
|
var y = { name: i, type: n, variables: r };
|
|
6953
|
-
return
|
|
6953
|
+
return Oe.set(t, y), y;
|
|
6954
6954
|
}
|
|
6955
6955
|
sa.resetCache = function() {
|
|
6956
|
-
|
|
6956
|
+
Oe = void 0;
|
|
6957
6957
|
};
|
|
6958
|
-
globalThis.__DEV__ !== !1 &&
|
|
6959
|
-
return
|
|
6958
|
+
globalThis.__DEV__ !== !1 && Dr("parser", function() {
|
|
6959
|
+
return Oe ? Oe.size : 0;
|
|
6960
6960
|
});
|
|
6961
6961
|
function ua(t, e) {
|
|
6962
6962
|
var r = sa(t), n = $n(e), i = $n(r.type);
|
|
@@ -6986,7 +6986,7 @@ function Ou(t, e) {
|
|
|
6986
6986
|
)(t, e);
|
|
6987
6987
|
}
|
|
6988
6988
|
function Su(t, e) {
|
|
6989
|
-
var r =
|
|
6989
|
+
var r = Du(t, e), n = r.result, i = r.obsQueryFields;
|
|
6990
6990
|
return x.useMemo(function() {
|
|
6991
6991
|
return p(p({}, n), i);
|
|
6992
6992
|
}, [n, i]);
|
|
@@ -7036,7 +7036,7 @@ function Tu(t, e, r, n, i) {
|
|
|
7036
7036
|
}
|
|
7037
7037
|
return [s, c];
|
|
7038
7038
|
}
|
|
7039
|
-
function
|
|
7039
|
+
function Du(t, e) {
|
|
7040
7040
|
var r = zr(e.client), n = x.useContext(oa()).renderPromises, i = !!n, a = r.disableNetworkFetches, o = e.ssr !== !1 && !e.skip, s = e.partialRefetch, u = Ru(r, t, e, i), c = Tu(r, t, e, n, u), f = c[0], l = f.observable, h = f.resultData, d = c[1], y = u(l);
|
|
7041
7041
|
Fu(
|
|
7042
7042
|
h,
|
|
@@ -7051,7 +7051,7 @@ function ku(t, e) {
|
|
|
7051
7051
|
return Nu(l);
|
|
7052
7052
|
}, [l]);
|
|
7053
7053
|
Iu(l, n, o);
|
|
7054
|
-
var g =
|
|
7054
|
+
var g = ku(h, l, r, e, y, a, s, i, {
|
|
7055
7055
|
onCompleted: e.onCompleted || Gn,
|
|
7056
7056
|
onError: e.onError || Gn
|
|
7057
7057
|
});
|
|
@@ -7064,7 +7064,7 @@ function ku(t, e) {
|
|
|
7064
7064
|
onQueryExecuted: d
|
|
7065
7065
|
};
|
|
7066
7066
|
}
|
|
7067
|
-
function
|
|
7067
|
+
function ku(t, e, r, n, i, a, o, s, u) {
|
|
7068
7068
|
var c = x.useRef(u);
|
|
7069
7069
|
x.useEffect(function() {
|
|
7070
7070
|
c.current = u;
|
|
@@ -7143,7 +7143,7 @@ function Ru(t, e, r, n) {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
function ca(t, e, r, n) {
|
|
7145
7145
|
var i = [], a = e.defaultOptions.watchQuery;
|
|
7146
|
-
return a && i.push(a), r.defaultOptions && i.push(r.defaultOptions), i.push(
|
|
7146
|
+
return a && i.push(a), r.defaultOptions && i.push(r.defaultOptions), i.push(Te(t && t.options, n)), i.reduce(rt);
|
|
7147
7147
|
}
|
|
7148
7148
|
function gr(t, e, r, n, i, a, o) {
|
|
7149
7149
|
var s = e.current;
|
|
@@ -7231,16 +7231,16 @@ function Yn(t, e) {
|
|
|
7231
7231
|
});
|
|
7232
7232
|
var m = ++o.current.mutationId, g = rt(d, c);
|
|
7233
7233
|
return y.mutate(g).then(function(v) {
|
|
7234
|
-
var b, _, w = v.data, O = v.errors, E = O && O.length > 0 ? new te({ graphQLErrors: O }) : void 0,
|
|
7235
|
-
if (E &&
|
|
7236
|
-
var
|
|
7234
|
+
var b, _, w = v.data, O = v.errors, E = O && O.length > 0 ? new te({ graphQLErrors: O }) : void 0, D = c.onError || ((b = o.current.options) === null || b === void 0 ? void 0 : b.onError);
|
|
7235
|
+
if (E && D && D(E, g), m === o.current.mutationId && !g.ignoreResults) {
|
|
7236
|
+
var k = {
|
|
7237
7237
|
called: !0,
|
|
7238
7238
|
loading: !1,
|
|
7239
7239
|
data: w,
|
|
7240
7240
|
error: E,
|
|
7241
7241
|
client: y
|
|
7242
7242
|
};
|
|
7243
|
-
o.current.isMounted && !C(o.current.result,
|
|
7243
|
+
o.current.isMounted && !C(o.current.result, k) && a(o.current.result = k);
|
|
7244
7244
|
}
|
|
7245
7245
|
var R = c.onCompleted || ((_ = o.current.options) === null || _ === void 0 ? void 0 : _.onCompleted);
|
|
7246
7246
|
return E || R == null || R(v.data, g), v;
|
|
@@ -7388,36 +7388,36 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7388
7388
|
a
|
|
7389
7389
|
]
|
|
7390
7390
|
), O = Ge(() => {
|
|
7391
|
-
const
|
|
7391
|
+
const ee = xi({
|
|
7392
7392
|
uri: n
|
|
7393
|
-
}), U = Au((
|
|
7393
|
+
}), U = Au((ce, { headers: Y }) => {
|
|
7394
7394
|
const $e = window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN;
|
|
7395
7395
|
return $e ? {
|
|
7396
7396
|
headers: {
|
|
7397
|
-
...
|
|
7397
|
+
...Y,
|
|
7398
7398
|
authorization: $e ? `Bearer ${$e}` : ""
|
|
7399
7399
|
}
|
|
7400
7400
|
} : {
|
|
7401
|
-
headers:
|
|
7401
|
+
headers: Y
|
|
7402
7402
|
};
|
|
7403
7403
|
});
|
|
7404
7404
|
return new ia({
|
|
7405
7405
|
cache: new ra(),
|
|
7406
|
-
link: U.concat(
|
|
7406
|
+
link: U.concat(ee)
|
|
7407
7407
|
});
|
|
7408
|
-
}, [n]), { data: E, error:
|
|
7408
|
+
}, [n]), { data: E, error: D } = Ou(xu, {
|
|
7409
7409
|
client: O,
|
|
7410
7410
|
variables: { id: e, zaloAppId: window == null ? void 0 : window.APP_ID, ticketCode: r },
|
|
7411
7411
|
skip: !(e || window != null && window.APP_ID || r)
|
|
7412
|
-
}),
|
|
7412
|
+
}), k = Ge(() => (E == null ? void 0 : E.campaign.endTime) && new Date(E.campaign.endTime) < /* @__PURE__ */ new Date(), [E]), R = Ge(() => (E == null ? void 0 : E.campaign.startTime) && new Date(E.campaign.startTime) > /* @__PURE__ */ new Date(), [E]), [A, $] = Wr.useState(!w), [ae] = Yn(ju, { client: O }), [Q] = Yn(qu, { client: O });
|
|
7413
7413
|
Br(() => (window.__PROMOGAME_API_URL = n, window != null && window.APP_ID && (window.ZaloMiniAppSDK = y), () => {
|
|
7414
7414
|
window.ZaloMiniAppSDK = null;
|
|
7415
7415
|
}), [y, n]), Br(() => {
|
|
7416
7416
|
E && (window.__PROMOGAME_CAMPAIGN_ID = E.campaign.id, window.__PROMOGAME_TICKET_CODE = r, w && (async () => {
|
|
7417
|
-
var
|
|
7417
|
+
var ee, U, ce;
|
|
7418
7418
|
if (!A && window)
|
|
7419
7419
|
try {
|
|
7420
|
-
const
|
|
7420
|
+
const Y = new URLSearchParams(window.location.search), $e = Object.fromEntries(Y.entries()), { data: At, errors: xt } = await ae({
|
|
7421
7421
|
variables: {
|
|
7422
7422
|
campaignId: window.__PROMOGAME_CAMPAIGN_ID,
|
|
7423
7423
|
externalUserId: u,
|
|
@@ -7428,7 +7428,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7428
7428
|
parameters: $e
|
|
7429
7429
|
}
|
|
7430
7430
|
});
|
|
7431
|
-
window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN = At == null ? void 0 : At.startAppSession.accessToken, window.__PROMOGAME_ERROR_CODE = (
|
|
7431
|
+
window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN = At == null ? void 0 : At.startAppSession.accessToken, window.__PROMOGAME_ERROR_CODE = (ce = (U = (ee = xt == null ? void 0 : xt[0]) == null ? void 0 : ee.extensions) == null ? void 0 : U.code) == null ? void 0 : ce.toString(), $(!0), Q({
|
|
7432
7432
|
variables: {
|
|
7433
7433
|
avatar: h,
|
|
7434
7434
|
phone: l,
|
|
@@ -7438,8 +7438,8 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7438
7438
|
}).then(() => {
|
|
7439
7439
|
console.log("Update info success");
|
|
7440
7440
|
});
|
|
7441
|
-
} catch (
|
|
7442
|
-
console.error("Failed to start session:",
|
|
7441
|
+
} catch (Y) {
|
|
7442
|
+
console.error("Failed to start session:", Y);
|
|
7443
7443
|
}
|
|
7444
7444
|
})());
|
|
7445
7445
|
}, [
|
|
@@ -7459,22 +7459,41 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7459
7459
|
f,
|
|
7460
7460
|
l
|
|
7461
7461
|
]);
|
|
7462
|
-
const G = (dt = (Be = E == null ? void 0 : E.campaign) == null ? void 0 : Be.game) == null ? void 0 : dt.gameLink,
|
|
7463
|
-
var
|
|
7464
|
-
if (
|
|
7465
|
-
return r ?
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7462
|
+
const G = (dt = (Be = E == null ? void 0 : E.campaign) == null ? void 0 : Be.game) == null ? void 0 : dt.gameLink, oe = Ge(() => {
|
|
7463
|
+
var ee, U;
|
|
7464
|
+
if (D && ((U = (ee = D.graphQLErrors) == null ? void 0 : ee[0].extensions) == null ? void 0 : U.code) === "CAMPAIGN_NOT_FOUND")
|
|
7465
|
+
return r ? {
|
|
7466
|
+
message: "Thẻ chưa được kích hoạt. Liên hệ để được hướng dẫn",
|
|
7467
|
+
action: y ? () => {
|
|
7468
|
+
y == null || y.openChat({
|
|
7469
|
+
type: "oa",
|
|
7470
|
+
id: "4252818184007274079",
|
|
7471
|
+
message: `Thẻ ${r} chưa được kích hoạt. Tôi cần hỗ trợ`
|
|
7472
|
+
});
|
|
7473
|
+
} : void 0,
|
|
7474
|
+
actionText: "Liên hệ"
|
|
7475
|
+
} : {
|
|
7476
|
+
message: "Chiến dịch không tồn tại."
|
|
7477
|
+
};
|
|
7478
|
+
if (k)
|
|
7479
|
+
return {
|
|
7480
|
+
message: `Sự kiện ${E == null ? void 0 : E.campaign.name} đã kết thúc. Cảm ơn bạn đã tham gia`
|
|
7481
|
+
};
|
|
7482
|
+
if (R) {
|
|
7483
|
+
const Y = new Date(E == null ? void 0 : E.campaign.startTime).toLocaleString("vi-VN", {
|
|
7470
7484
|
weekday: "long",
|
|
7471
7485
|
day: "numeric",
|
|
7472
7486
|
month: "long",
|
|
7487
|
+
year: "numeric",
|
|
7473
7488
|
hour: "2-digit",
|
|
7474
7489
|
minute: "2-digit"
|
|
7475
|
-
})
|
|
7476
|
-
|
|
7477
|
-
|
|
7490
|
+
});
|
|
7491
|
+
return {
|
|
7492
|
+
message: `Sự kiện ${E == null ? void 0 : E.campaign.name} sẽ bắt đầu vào ${Y}. Đừng bỏ lỡ nhé!`
|
|
7493
|
+
};
|
|
7494
|
+
}
|
|
7495
|
+
}, [E, k, R, D, r, y]);
|
|
7496
|
+
return oe ? /* @__PURE__ */ be(
|
|
7478
7497
|
"div",
|
|
7479
7498
|
{
|
|
7480
7499
|
style: {
|
|
@@ -7502,26 +7521,14 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7502
7521
|
boxShadow: "0 4px 20px rgba(0,0,0,0.2)"
|
|
7503
7522
|
},
|
|
7504
7523
|
children: [
|
|
7505
|
-
/* @__PURE__ */
|
|
7506
|
-
/* @__PURE__ */
|
|
7507
|
-
|
|
7508
|
-
"button",
|
|
7509
|
-
{
|
|
7510
|
-
type: "button",
|
|
7511
|
-
onClick: () => {
|
|
7512
|
-
y.openChat({
|
|
7513
|
-
type: "oa",
|
|
7514
|
-
id: "xxx"
|
|
7515
|
-
});
|
|
7516
|
-
},
|
|
7517
|
-
children: "Liên hệ"
|
|
7518
|
-
}
|
|
7519
|
-
) : void 0
|
|
7524
|
+
/* @__PURE__ */ be("div", { style: { fontWeight: "bold", fontSize: 16, marginBottom: 12 }, children: "Thông báo" }),
|
|
7525
|
+
/* @__PURE__ */ be("div", { style: { fontSize: 14, marginBottom: 16 }, children: oe.message }),
|
|
7526
|
+
oe.action ? /* @__PURE__ */ be("button", { type: "button", onClick: oe.action, children: oe.actionText }) : void 0
|
|
7520
7527
|
]
|
|
7521
7528
|
}
|
|
7522
7529
|
)
|
|
7523
7530
|
}
|
|
7524
|
-
) : G && A ? (vt = (W = (Ue = E == null ? void 0 : E.campaign) == null ? void 0 : Ue.game) == null ? void 0 : W.tags) != null && vt.includes("DEFOLD") ? /* @__PURE__ */
|
|
7531
|
+
) : G && A ? (vt = (W = (Ue = E == null ? void 0 : E.campaign) == null ? void 0 : Ue.game) == null ? void 0 : W.tags) != null && vt.includes("DEFOLD") ? /* @__PURE__ */ be(
|
|
7525
7532
|
ma,
|
|
7526
7533
|
{
|
|
7527
7534
|
campaign: E == null ? void 0 : E.campaign,
|
|
@@ -7531,7 +7538,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7531
7538
|
loadingComponent: o,
|
|
7532
7539
|
controlLoading: v
|
|
7533
7540
|
}
|
|
7534
|
-
) : /* @__PURE__ */
|
|
7541
|
+
) : /* @__PURE__ */ be(
|
|
7535
7542
|
ya,
|
|
7536
7543
|
{
|
|
7537
7544
|
campaign: E == null ? void 0 : E.campaign,
|
|
@@ -7543,7 +7550,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7543
7550
|
onEventReceived: g,
|
|
7544
7551
|
controlLoading: v
|
|
7545
7552
|
}
|
|
7546
|
-
) : /* @__PURE__ */
|
|
7553
|
+
) : /* @__PURE__ */ be(va, {});
|
|
7547
7554
|
}
|
|
7548
7555
|
);
|
|
7549
7556
|
export {
|