@wexio/messenger-widget-react 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -150
- package/dist/{widget-react-BfPdgAQ-.js → widget-react-A2LiLuw0.js} +1151 -1006
- package/dist/{widget-react-DwL_rsx_.js → widget-react-B0fjhAJD.js} +72 -56
- package/dist/{widget-react-D-QrEVpv.js → widget-react-BC-2nOW4.js} +1 -1
- package/dist/{widget-react-CZs0xRrr.js → widget-react-BMpc2uNT2.js} +1 -1
- package/dist/widget-react-BNG2P8TD.js +337 -0
- package/dist/widget-react-BcPE3ZoY.js +337 -0
- package/dist/widget-react-BdgqHrUV.js +337 -0
- package/dist/widget-react-BdohGq4s2.js +337 -0
- package/dist/widget-react-BthaWcns.js +337 -0
- package/dist/widget-react-C-8yYmmX2.js +337 -0
- package/dist/widget-react-C2atp9Wc.js +337 -0
- package/dist/widget-react-C7J17SWR.js +337 -0
- package/dist/{widget-react-BAOIDvhV.js → widget-react-CB6Jxluy.js} +1362 -1328
- package/dist/widget-react-CKZ5tNDZ.js +337 -0
- package/dist/widget-react-CLRkytx8.js +337 -0
- package/dist/widget-react-CMvMg68M.js +337 -0
- package/dist/widget-react-COu0Pgwj2.js +337 -0
- package/dist/widget-react-CSqqxBrZ2.js +337 -0
- package/dist/widget-react-CVLlTbB_2.js +337 -0
- package/dist/{widget-react-DtOeNw5z.js → widget-react-CVx50FQP2.js} +18 -9
- package/dist/{widget-react-AgErOR36.js → widget-react-CYlAGnu_2.js} +19 -7
- package/dist/{widget-react-CPYwD6FR.js → widget-react-CdjAa7d12.js} +2 -2
- package/dist/widget-react-Cfgp7JeP.js +337 -0
- package/dist/widget-react-CozbWJT5.js +337 -0
- package/dist/widget-react-Crxd4qSM.js +337 -0
- package/dist/widget-react-D3ZFysG9.js +337 -0
- package/dist/widget-react-DAT3UgdW2.js +285 -0
- package/dist/widget-react-DRyfg-bL.js +337 -0
- package/dist/widget-react-DhC6mv1r.js +337 -0
- package/dist/widget-react-DiF8_rWm.js +337 -0
- package/dist/widget-react-DjXlAiu5.js +337 -0
- package/dist/widget-react-DkhMvmdX2.js +337 -0
- package/dist/{widget-react-CUuKGDZN.js → widget-react-DqRO9d652.js} +2 -2
- package/dist/widget-react-Dq_sYldT.js +337 -0
- package/dist/{widget-react-Cj_zbk_F.js → widget-react-Dr-NACA0.js} +19 -7
- package/dist/widget-react-DviuEPoq.js +337 -0
- package/dist/{widget-react-CDPzwV1i.js → widget-react-DxkbC0xE.js} +1823 -1833
- package/dist/widget-react-JOt2DXbR.js +337 -0
- package/dist/widget-react-L8PMkUr7.js +337 -0
- package/dist/widget-react-LWisk9g6.js +337 -0
- package/dist/{widget-react-DSw03RG7.js → widget-react-_xdGdTzK.js} +1 -1
- package/dist/widget-react-fNts-U3I2.js +337 -0
- package/dist/widget-react-iKCOmnGh.js +337 -0
- package/dist/{widget-react-C5COLy3m.js → widget-react-wTlmXnex2.js} +1 -1
- package/dist/widget-react-xzOjEdXk2.js +337 -0
- package/dist/widget-react.d.ts +10 -19
- package/dist/widget-react.js +4028 -3450
- package/package.json +1 -1
- package/dist/widget-react-AgErOR36.js.map +0 -1
- package/dist/widget-react-BAOIDvhV.js.map +0 -1
- package/dist/widget-react-BfPdgAQ-.js.map +0 -1
- package/dist/widget-react-BxvW64LH.js.map +0 -1
- package/dist/widget-react-C5COLy3m.js.map +0 -1
- package/dist/widget-react-CAWxn8I0.js +0 -247
- package/dist/widget-react-CAWxn8I0.js.map +0 -1
- package/dist/widget-react-CDPzwV1i.js.map +0 -1
- package/dist/widget-react-CPYwD6FR.js.map +0 -1
- package/dist/widget-react-CUBFPjaV.js.map +0 -1
- package/dist/widget-react-CUuKGDZN.js.map +0 -1
- package/dist/widget-react-CZs0xRrr.js.map +0 -1
- package/dist/widget-react-Cj_zbk_F.js.map +0 -1
- package/dist/widget-react-D-QrEVpv.js.map +0 -1
- package/dist/widget-react-D8TPnM9r.js.map +0 -1
- package/dist/widget-react-DE7AVrCo.js.map +0 -1
- package/dist/widget-react-DOX6j7_Q.js.map +0 -1
- package/dist/widget-react-DSw03RG7.js.map +0 -1
- package/dist/widget-react-Dew7YaLU.js.map +0 -1
- package/dist/widget-react-DtOeNw5z.js.map +0 -1
- package/dist/widget-react-DwL_rsx_.js.map +0 -1
- package/dist/widget-react.js.map +0 -1
|
@@ -2,210 +2,210 @@ import "react";
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom/client";
|
|
5
|
-
import { $ as e, $t as t,
|
|
6
|
-
import { n as
|
|
7
|
-
import * as
|
|
8
|
-
import { jsx as
|
|
5
|
+
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, Ct as o, Dt as s, Et as c, F as l, Ft as u, G as d, Gt as f, H as p, Ht as m, It as h, J as g, Jt as _, K as v, Kt as y, Lt as b, Mt as x, Nt as S, Ot as C, Pt as w, Q as T, Qt as E, Rt as ee, St as te, T as ne, Tt as re, U as ie, Ut as D, V as ae, Vt as oe, W as se, Wt as ce, Xt as le, Y as O, Yt as ue, Zt as de, _t as fe, an as pe, at as me, bt as he, cn as ge, ct as k, dn as A, dt as _e, en as ve, et as j, fn as M, ft as ye, g as be, gt as xe, ht as Se, in as N, it as Ce, jt as we, kt as P, ln as F, lt as I, mn as Te, mt as Ee, nt as De, on as Oe, ot as ke, pn as L, pt as Ae, q as je, qt as Me, rn as R, rt as Ne, sn as Pe, st as z, tn as B, tt as Fe, un as V, ut as Ie, vt as Le, w as Re, wt as ze, xt as Be, yt as Ve, z as H, zt as He } from "./widget-react-A2LiLuw0.js";
|
|
6
|
+
import { n as Ue, r as We } from "./widget-react-BxvW64LH.js";
|
|
7
|
+
import * as U from "react";
|
|
8
|
+
import { jsx as Ge } from "react/jsx-runtime";
|
|
9
9
|
//#region node_modules/graphql/language/printString.mjs
|
|
10
|
-
function
|
|
11
|
-
return `"${e.replace(
|
|
10
|
+
function Ke(e) {
|
|
11
|
+
return `"${e.replace(qe, Je)}"`;
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return
|
|
13
|
+
var qe = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
14
|
+
function Je(e) {
|
|
15
|
+
return Ye[e.charCodeAt(0)];
|
|
16
16
|
}
|
|
17
|
-
var
|
|
17
|
+
var Ye = /* @__PURE__ */ "\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F".split(".");
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region node_modules/graphql/language/printer.mjs
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function Xe(e) {
|
|
21
|
+
return t(e, Qe);
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var Ze = 80, Qe = {
|
|
24
24
|
Name: { leave: (e) => e.value },
|
|
25
25
|
Variable: { leave: (e) => "$" + e.name },
|
|
26
|
-
Document: { leave: (e) =>
|
|
26
|
+
Document: { leave: (e) => W(e.definitions, "\n\n") },
|
|
27
27
|
OperationDefinition: { leave(e) {
|
|
28
|
-
let t =
|
|
28
|
+
let t = et(e.variableDefinitions) ? K("(\n", W(e.variableDefinitions, "\n"), "\n)") : K("(", W(e.variableDefinitions, ", "), ")"), n = K("", e.description, "\n") + W([
|
|
29
29
|
e.operation,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
W([e.name, t]),
|
|
31
|
+
W(e.directives, " ")
|
|
32
32
|
], " ");
|
|
33
33
|
return (n === "query" ? "" : n + " ") + e.selectionSet;
|
|
34
34
|
} },
|
|
35
|
-
VariableDefinition: { leave: ({ variable: e, type: t, defaultValue: n, directives: r, description: i }) =>
|
|
36
|
-
SelectionSet: { leave: ({ selections: e }) =>
|
|
35
|
+
VariableDefinition: { leave: ({ variable: e, type: t, defaultValue: n, directives: r, description: i }) => K("", i, "\n") + e + ": " + t + K(" = ", n) + K(" ", W(r, " ")) },
|
|
36
|
+
SelectionSet: { leave: ({ selections: e }) => G(e) },
|
|
37
37
|
Field: { leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
|
|
38
|
-
let a =
|
|
39
|
-
return o.length >
|
|
38
|
+
let a = K("", e, ": ") + t, o = a + K("(", W(n, ", "), ")");
|
|
39
|
+
return o.length > Ze && (o = a + K("(\n", $e(W(n, "\n")), "\n)")), W([
|
|
40
40
|
o,
|
|
41
|
-
|
|
41
|
+
W(r, " "),
|
|
42
42
|
i
|
|
43
43
|
], " ");
|
|
44
44
|
} },
|
|
45
45
|
Argument: { leave: ({ name: e, value: t }) => e + ": " + t },
|
|
46
|
-
FragmentSpread: { leave: ({ name: e, directives: t }) => "..." + e +
|
|
47
|
-
InlineFragment: { leave: ({ typeCondition: e, directives: t, selectionSet: n }) =>
|
|
46
|
+
FragmentSpread: { leave: ({ name: e, directives: t }) => "..." + e + K(" ", W(t, " ")) },
|
|
47
|
+
InlineFragment: { leave: ({ typeCondition: e, directives: t, selectionSet: n }) => W([
|
|
48
48
|
"...",
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
K("on ", e),
|
|
50
|
+
W(t, " "),
|
|
51
51
|
n
|
|
52
52
|
], " ") },
|
|
53
|
-
FragmentDefinition: { leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: r, selectionSet: i, description: a }) =>
|
|
53
|
+
FragmentDefinition: { leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: r, selectionSet: i, description: a }) => K("", a, "\n") + `fragment ${e}${K("(", W(n, ", "), ")")} on ${t} ${K("", W(r, " "), " ")}` + i },
|
|
54
54
|
IntValue: { leave: ({ value: e }) => e },
|
|
55
55
|
FloatValue: { leave: ({ value: e }) => e },
|
|
56
|
-
StringValue: { leave: ({ value: e, block:
|
|
56
|
+
StringValue: { leave: ({ value: e, block: t }) => t ? ve(e) : Ke(e) },
|
|
57
57
|
BooleanValue: { leave: ({ value: e }) => e ? "true" : "false" },
|
|
58
58
|
NullValue: { leave: () => "null" },
|
|
59
59
|
EnumValue: { leave: ({ value: e }) => e },
|
|
60
|
-
ListValue: { leave: ({ values: e }) => "[" +
|
|
61
|
-
ObjectValue: { leave: ({ fields: e }) => "{" +
|
|
60
|
+
ListValue: { leave: ({ values: e }) => "[" + W(e, ", ") + "]" },
|
|
61
|
+
ObjectValue: { leave: ({ fields: e }) => "{" + W(e, ", ") + "}" },
|
|
62
62
|
ObjectField: { leave: ({ name: e, value: t }) => e + ": " + t },
|
|
63
|
-
Directive: { leave: ({ name: e, arguments: t }) => "@" + e +
|
|
63
|
+
Directive: { leave: ({ name: e, arguments: t }) => "@" + e + K("(", W(t, ", "), ")") },
|
|
64
64
|
NamedType: { leave: ({ name: e }) => e },
|
|
65
65
|
ListType: { leave: ({ type: e }) => "[" + e + "]" },
|
|
66
66
|
NonNullType: { leave: ({ type: e }) => e + "!" },
|
|
67
|
-
SchemaDefinition: { leave: ({ description: e, directives: t, operationTypes: n }) =>
|
|
67
|
+
SchemaDefinition: { leave: ({ description: e, directives: t, operationTypes: n }) => K("", e, "\n") + W([
|
|
68
68
|
"schema",
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
W(t, " "),
|
|
70
|
+
G(n)
|
|
71
71
|
], " ") },
|
|
72
72
|
OperationTypeDefinition: { leave: ({ operation: e, type: t }) => e + ": " + t },
|
|
73
|
-
ScalarTypeDefinition: { leave: ({ description: e, name: t, directives: n }) =>
|
|
73
|
+
ScalarTypeDefinition: { leave: ({ description: e, name: t, directives: n }) => K("", e, "\n") + W([
|
|
74
74
|
"scalar",
|
|
75
75
|
t,
|
|
76
|
-
|
|
76
|
+
W(n, " ")
|
|
77
77
|
], " ") },
|
|
78
|
-
ObjectTypeDefinition: { leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) =>
|
|
78
|
+
ObjectTypeDefinition: { leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => K("", e, "\n") + W([
|
|
79
79
|
"type",
|
|
80
80
|
t,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
K("implements ", W(n, " & ")),
|
|
82
|
+
W(r, " "),
|
|
83
|
+
G(i)
|
|
84
84
|
], " ") },
|
|
85
|
-
FieldDefinition: { leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) =>
|
|
86
|
-
InputValueDefinition: { leave: ({ description: e, name: t, type: n, defaultValue: r, directives: i }) =>
|
|
85
|
+
FieldDefinition: { leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => K("", e, "\n") + t + (et(n) ? K("(\n", $e(W(n, "\n")), "\n)") : K("(", W(n, ", "), ")")) + ": " + r + K(" ", W(i, " ")) },
|
|
86
|
+
InputValueDefinition: { leave: ({ description: e, name: t, type: n, defaultValue: r, directives: i }) => K("", e, "\n") + W([
|
|
87
87
|
t + ": " + n,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
K("= ", r),
|
|
89
|
+
W(i, " ")
|
|
90
90
|
], " ") },
|
|
91
|
-
InterfaceTypeDefinition: { leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) =>
|
|
91
|
+
InterfaceTypeDefinition: { leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => K("", e, "\n") + W([
|
|
92
92
|
"interface",
|
|
93
93
|
t,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
K("implements ", W(n, " & ")),
|
|
95
|
+
W(r, " "),
|
|
96
|
+
G(i)
|
|
97
97
|
], " ") },
|
|
98
|
-
UnionTypeDefinition: { leave: ({ description: e, name: t, directives: n, types: r }) =>
|
|
98
|
+
UnionTypeDefinition: { leave: ({ description: e, name: t, directives: n, types: r }) => K("", e, "\n") + W([
|
|
99
99
|
"union",
|
|
100
100
|
t,
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
W(n, " "),
|
|
102
|
+
K("= ", W(r, " | "))
|
|
103
103
|
], " ") },
|
|
104
|
-
EnumTypeDefinition: { leave: ({ description: e, name: t, directives: n, values: r }) =>
|
|
104
|
+
EnumTypeDefinition: { leave: ({ description: e, name: t, directives: n, values: r }) => K("", e, "\n") + W([
|
|
105
105
|
"enum",
|
|
106
106
|
t,
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
W(n, " "),
|
|
108
|
+
G(r)
|
|
109
109
|
], " ") },
|
|
110
|
-
EnumValueDefinition: { leave: ({ description: e, name: t, directives: n }) =>
|
|
111
|
-
InputObjectTypeDefinition: { leave: ({ description: e, name: t, directives: n, fields: r }) =>
|
|
110
|
+
EnumValueDefinition: { leave: ({ description: e, name: t, directives: n }) => K("", e, "\n") + W([t, W(n, " ")], " ") },
|
|
111
|
+
InputObjectTypeDefinition: { leave: ({ description: e, name: t, directives: n, fields: r }) => K("", e, "\n") + W([
|
|
112
112
|
"input",
|
|
113
113
|
t,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
W(n, " "),
|
|
115
|
+
G(r)
|
|
116
116
|
], " ") },
|
|
117
|
-
DirectiveDefinition: { leave: ({ description: e, name: t, arguments: n, directives: r, repeatable: i, locations: a }) =>
|
|
118
|
-
SchemaExtension: { leave: ({ directives: e, operationTypes: t }) =>
|
|
117
|
+
DirectiveDefinition: { leave: ({ description: e, name: t, arguments: n, directives: r, repeatable: i, locations: a }) => K("", e, "\n") + "directive @" + t + (et(n) ? K("(\n", $e(W(n, "\n")), "\n)") : K("(", W(n, ", "), ")")) + K(" ", W(r, " ")) + (i ? " repeatable" : "") + " on " + W(a, " | ") },
|
|
118
|
+
SchemaExtension: { leave: ({ directives: e, operationTypes: t }) => W([
|
|
119
119
|
"extend schema",
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
W(e, " "),
|
|
121
|
+
G(t)
|
|
122
122
|
], " ") },
|
|
123
|
-
ScalarTypeExtension: { leave: ({ name: e, directives: t }) =>
|
|
123
|
+
ScalarTypeExtension: { leave: ({ name: e, directives: t }) => W([
|
|
124
124
|
"extend scalar",
|
|
125
125
|
e,
|
|
126
|
-
|
|
126
|
+
W(t, " ")
|
|
127
127
|
], " ") },
|
|
128
|
-
ObjectTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) =>
|
|
128
|
+
ObjectTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => W([
|
|
129
129
|
"extend type",
|
|
130
130
|
e,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
K("implements ", W(t, " & ")),
|
|
132
|
+
W(n, " "),
|
|
133
|
+
G(r)
|
|
134
134
|
], " ") },
|
|
135
|
-
InterfaceTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) =>
|
|
135
|
+
InterfaceTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => W([
|
|
136
136
|
"extend interface",
|
|
137
137
|
e,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
K("implements ", W(t, " & ")),
|
|
139
|
+
W(n, " "),
|
|
140
|
+
G(r)
|
|
141
141
|
], " ") },
|
|
142
|
-
UnionTypeExtension: { leave: ({ name: e, directives: t, types: n }) =>
|
|
142
|
+
UnionTypeExtension: { leave: ({ name: e, directives: t, types: n }) => W([
|
|
143
143
|
"extend union",
|
|
144
144
|
e,
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
W(t, " "),
|
|
146
|
+
K("= ", W(n, " | "))
|
|
147
147
|
], " ") },
|
|
148
|
-
EnumTypeExtension: { leave: ({ name: e, directives: t, values: n }) =>
|
|
148
|
+
EnumTypeExtension: { leave: ({ name: e, directives: t, values: n }) => W([
|
|
149
149
|
"extend enum",
|
|
150
150
|
e,
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
W(t, " "),
|
|
152
|
+
G(n)
|
|
153
153
|
], " ") },
|
|
154
|
-
InputObjectTypeExtension: { leave: ({ name: e, directives: t, fields: n }) =>
|
|
154
|
+
InputObjectTypeExtension: { leave: ({ name: e, directives: t, fields: n }) => W([
|
|
155
155
|
"extend input",
|
|
156
156
|
e,
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
W(t, " "),
|
|
158
|
+
G(n)
|
|
159
159
|
], " ") },
|
|
160
|
-
DirectiveExtension: { leave: ({ name: e, directives: t }) =>
|
|
160
|
+
DirectiveExtension: { leave: ({ name: e, directives: t }) => W(["extend directive @" + e, W(t, " ")], " ") },
|
|
161
161
|
TypeCoordinate: { leave: ({ name: e }) => e },
|
|
162
|
-
MemberCoordinate: { leave: ({ name: e, memberName: t }) =>
|
|
163
|
-
ArgumentCoordinate: { leave: ({ name: e, fieldName: t, argumentName: n }) =>
|
|
162
|
+
MemberCoordinate: { leave: ({ name: e, memberName: t }) => W([e, K(".", t)]) },
|
|
163
|
+
ArgumentCoordinate: { leave: ({ name: e, fieldName: t, argumentName: n }) => W([
|
|
164
164
|
e,
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
K(".", t),
|
|
166
|
+
K("(", n, ":)")
|
|
167
167
|
]) },
|
|
168
|
-
DirectiveCoordinate: { leave: ({ name: e }) =>
|
|
169
|
-
DirectiveArgumentCoordinate: { leave: ({ name: e, argumentName: t }) =>
|
|
168
|
+
DirectiveCoordinate: { leave: ({ name: e }) => W(["@", e]) },
|
|
169
|
+
DirectiveArgumentCoordinate: { leave: ({ name: e, argumentName: t }) => W([
|
|
170
170
|
"@",
|
|
171
171
|
e,
|
|
172
|
-
|
|
172
|
+
K("(", t, ":)")
|
|
173
173
|
]) }
|
|
174
174
|
};
|
|
175
|
-
function
|
|
175
|
+
function W(e, t = "") {
|
|
176
176
|
return e?.filter((e) => e).join(t) ?? "";
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
178
|
+
function G(e) {
|
|
179
|
+
return K("{\n", $e(W(e, "\n")), "\n}");
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function K(e, t, n = "") {
|
|
182
182
|
return t != null && t !== "" ? e + t + n : "";
|
|
183
183
|
}
|
|
184
|
-
function Qe(e) {
|
|
185
|
-
return q(" ", e.replace(/\n/g, "\n "));
|
|
186
|
-
}
|
|
187
184
|
function $e(e) {
|
|
185
|
+
return K(" ", e.replace(/\n/g, "\n "));
|
|
186
|
+
}
|
|
187
|
+
function et(e) {
|
|
188
188
|
/* c8 ignore next */
|
|
189
189
|
return e?.some((e) => e.includes("\n")) ?? !1;
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region node_modules/graphql/language/predicates.mjs
|
|
193
|
-
function
|
|
194
|
-
return e.kind ===
|
|
193
|
+
function tt(e) {
|
|
194
|
+
return e.kind === B.FIELD || e.kind === B.FRAGMENT_SPREAD || e.kind === B.INLINE_FRAGMENT;
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
|
|
198
|
-
function
|
|
198
|
+
function nt(e) {
|
|
199
199
|
return e;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var rt = function() {
|
|
202
202
|
function e(e, t) {
|
|
203
|
-
t === void 0 && (t = Object.create(null)), this.resultCache =
|
|
203
|
+
t === void 0 && (t = Object.create(null)), this.resultCache = y ? /* @__PURE__ */ new WeakSet() : /* @__PURE__ */ new Set(), this.transform = e, t.getCacheKey && (this.getCacheKey = t.getCacheKey), this.cached = t.cache !== !1, this.resetCache();
|
|
204
204
|
}
|
|
205
205
|
return e.prototype.getCacheKey = function(e) {
|
|
206
206
|
return [e];
|
|
207
207
|
}, e.identity = function() {
|
|
208
|
-
return new e(
|
|
208
|
+
return new e(nt, { cache: !1 });
|
|
209
209
|
}, e.split = function(t, n, r) {
|
|
210
210
|
return r === void 0 && (r = e.identity()), Object.assign(new e(function(e) {
|
|
211
211
|
return (t(e) ? n : r).transformDocument(e);
|
|
@@ -216,18 +216,18 @@ var nt = function() {
|
|
|
216
216
|
}, e.prototype.resetCache = function() {
|
|
217
217
|
var t = this;
|
|
218
218
|
if (this.cached) {
|
|
219
|
-
var n = new
|
|
220
|
-
this.performWork =
|
|
219
|
+
var n = new Me(f);
|
|
220
|
+
this.performWork = Ie(e.prototype.performWork.bind(this), {
|
|
221
221
|
makeCacheKey: function(e) {
|
|
222
222
|
var r = t.getCacheKey(e);
|
|
223
223
|
if (r) return R(Array.isArray(r), 104), n.lookupArray(r);
|
|
224
224
|
},
|
|
225
|
-
max:
|
|
226
|
-
cache:
|
|
225
|
+
max: h["documentTransform.cache"],
|
|
226
|
+
cache: ee
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}, e.prototype.performWork = function(e) {
|
|
230
|
-
return
|
|
230
|
+
return Ae(e), this.transform(e);
|
|
231
231
|
}, e.prototype.transformDocument = function(e) {
|
|
232
232
|
if (this.resultCache.has(e)) return e;
|
|
233
233
|
var t = this.performWork(e);
|
|
@@ -241,33 +241,33 @@ var nt = function() {
|
|
|
241
241
|
right: t
|
|
242
242
|
});
|
|
243
243
|
}, e;
|
|
244
|
-
}(),
|
|
245
|
-
var t =
|
|
246
|
-
return t || (t =
|
|
244
|
+
}(), it, q = Object.assign(function(e) {
|
|
245
|
+
var t = it.get(e);
|
|
246
|
+
return t || (t = Xe(e), it.set(e, t)), t;
|
|
247
247
|
}, { reset: function() {
|
|
248
|
-
|
|
248
|
+
it = new b(h.print || 2e3);
|
|
249
249
|
} });
|
|
250
|
-
|
|
251
|
-
return
|
|
250
|
+
q.reset(), globalThis.__DEV__ !== !1 && u("print", function() {
|
|
251
|
+
return it ? it.size : 0;
|
|
252
252
|
});
|
|
253
253
|
//#endregion
|
|
254
254
|
//#region node_modules/@apollo/client/utilities/graphql/transform.js
|
|
255
|
-
var
|
|
256
|
-
kind:
|
|
255
|
+
var at = {
|
|
256
|
+
kind: B.FIELD,
|
|
257
257
|
name: {
|
|
258
|
-
kind:
|
|
258
|
+
kind: B.NAME,
|
|
259
259
|
value: "__typename"
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
function
|
|
262
|
+
function ot(e, t) {
|
|
263
263
|
return !e || e.selectionSet.selections.every(function(e) {
|
|
264
|
-
return e.kind ===
|
|
264
|
+
return e.kind === B.FRAGMENT_SPREAD && ot(t[e.name.value], t);
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function ot(e) {
|
|
268
|
-
return at(le(e) || Te(e), ee(ve(e))) ? null : e;
|
|
269
|
-
}
|
|
270
267
|
function st(e) {
|
|
268
|
+
return ot(Le(e) || Se(e), He(xe(e))) ? null : e;
|
|
269
|
+
}
|
|
270
|
+
function ct(e) {
|
|
271
271
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
272
272
|
return e.forEach(function(e) {
|
|
273
273
|
e && (e.name ? t.set(e.name, e) : e.test && n.set(e.test, e));
|
|
@@ -278,7 +278,7 @@ function st(e) {
|
|
|
278
278
|
}), r;
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function lt(e) {
|
|
282
282
|
var t = /* @__PURE__ */ new Map();
|
|
283
283
|
return function(n) {
|
|
284
284
|
n === void 0 && (n = e);
|
|
@@ -289,124 +289,124 @@ function ct(e) {
|
|
|
289
289
|
}), r;
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
|
|
294
|
-
for (var
|
|
295
|
-
for (var t = 0,
|
|
296
|
-
if (
|
|
297
|
-
if (
|
|
292
|
+
function ut(e, n) {
|
|
293
|
+
Ae(n);
|
|
294
|
+
for (var r = lt(""), i = lt(""), a = function(e) {
|
|
295
|
+
for (var t = 0, n = void 0; t < e.length && (n = e[t]); ++t) if (!k(n)) {
|
|
296
|
+
if (n.kind === B.OPERATION_DEFINITION) return r(n.name && n.name.value);
|
|
297
|
+
if (n.kind === B.FRAGMENT_DEFINITION) return i(n.name.value);
|
|
298
298
|
}
|
|
299
299
|
return globalThis.__DEV__ !== !1 && R.error(124), null;
|
|
300
|
-
},
|
|
301
|
-
var
|
|
302
|
-
return
|
|
300
|
+
}, o = 0, s = n.definitions.length - 1; s >= 0; --s) n.definitions[s].kind === B.OPERATION_DEFINITION && ++o;
|
|
301
|
+
var c = ct(e), l = function(e) {
|
|
302
|
+
return I(e) && e.map(c).some(function(e) {
|
|
303
303
|
return e && e.remove;
|
|
304
304
|
});
|
|
305
|
-
},
|
|
306
|
-
if (
|
|
307
|
-
} },
|
|
308
|
-
Field:
|
|
309
|
-
InlineFragment:
|
|
305
|
+
}, u = /* @__PURE__ */ new Map(), d = !1, f = { enter: function(e) {
|
|
306
|
+
if (l(e.directives)) return d = !0, null;
|
|
307
|
+
} }, p = t(n, {
|
|
308
|
+
Field: f,
|
|
309
|
+
InlineFragment: f,
|
|
310
310
|
VariableDefinition: { enter: function() {
|
|
311
311
|
return !1;
|
|
312
312
|
} },
|
|
313
|
-
Variable: { enter: function(e, t, n, r,
|
|
314
|
-
var o = i
|
|
313
|
+
Variable: { enter: function(e, t, n, r, i) {
|
|
314
|
+
var o = a(i);
|
|
315
315
|
o && o.variables.add(e.name.value);
|
|
316
316
|
} },
|
|
317
|
-
FragmentSpread: { enter: function(e, t, n, r,
|
|
318
|
-
if (
|
|
319
|
-
var o = i
|
|
317
|
+
FragmentSpread: { enter: function(e, t, n, r, i) {
|
|
318
|
+
if (l(e.directives)) return d = !0, null;
|
|
319
|
+
var o = a(i);
|
|
320
320
|
o && o.fragmentSpreads.add(e.name.value);
|
|
321
321
|
} },
|
|
322
322
|
FragmentDefinition: {
|
|
323
323
|
enter: function(e, t, n, r) {
|
|
324
|
-
|
|
324
|
+
u.set(JSON.stringify(r), e);
|
|
325
325
|
},
|
|
326
|
-
leave: function(e, t, n,
|
|
327
|
-
if (e ===
|
|
328
|
-
if (
|
|
329
|
-
return e.kind ===
|
|
330
|
-
})) return
|
|
326
|
+
leave: function(e, t, n, r) {
|
|
327
|
+
if (e === u.get(JSON.stringify(r))) return e;
|
|
328
|
+
if (o > 0 && e.selectionSet.selections.every(function(e) {
|
|
329
|
+
return e.kind === B.FIELD && e.name.value === "__typename";
|
|
330
|
+
})) return i(e.name.value).removed = !0, d = !0, null;
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
Directive: { leave: function(e) {
|
|
334
|
-
if (
|
|
334
|
+
if (c(e)) return d = !0, null;
|
|
335
335
|
} }
|
|
336
336
|
});
|
|
337
|
-
if (!
|
|
338
|
-
var
|
|
337
|
+
if (!d) return n;
|
|
338
|
+
var m = function(e) {
|
|
339
339
|
return e.transitiveVars || (e.transitiveVars = new Set(e.variables), e.removed || e.fragmentSpreads.forEach(function(t) {
|
|
340
|
-
|
|
340
|
+
m(i(t)).transitiveVars.forEach(function(t) {
|
|
341
341
|
e.transitiveVars.add(t);
|
|
342
342
|
});
|
|
343
343
|
})), e;
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
e.kind ===
|
|
347
|
-
|
|
348
|
-
}) : e.kind ===
|
|
349
|
-
}),
|
|
350
|
-
|
|
351
|
-
|
|
344
|
+
}, h = /* @__PURE__ */ new Set();
|
|
345
|
+
p.definitions.forEach(function(e) {
|
|
346
|
+
e.kind === B.OPERATION_DEFINITION ? m(r(e.name && e.name.value)).fragmentSpreads.forEach(function(e) {
|
|
347
|
+
h.add(e);
|
|
348
|
+
}) : e.kind === B.FRAGMENT_DEFINITION && o === 0 && !i(e.name.value).removed && h.add(e.name.value);
|
|
349
|
+
}), h.forEach(function(e) {
|
|
350
|
+
m(i(e)).fragmentSpreads.forEach(function(e) {
|
|
351
|
+
h.add(e);
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
|
-
var
|
|
355
|
-
return !!(!
|
|
356
|
-
},
|
|
357
|
-
if (
|
|
354
|
+
var g = function(e) {
|
|
355
|
+
return !!(!h.has(e) || i(e).removed);
|
|
356
|
+
}, _ = { enter: function(e) {
|
|
357
|
+
if (g(e.name.value)) return null;
|
|
358
358
|
} };
|
|
359
|
-
return
|
|
360
|
-
FragmentSpread:
|
|
361
|
-
FragmentDefinition:
|
|
359
|
+
return st(t(p, {
|
|
360
|
+
FragmentSpread: _,
|
|
361
|
+
FragmentDefinition: _,
|
|
362
362
|
OperationDefinition: { leave: function(e) {
|
|
363
363
|
if (e.variableDefinitions) {
|
|
364
|
-
var t =
|
|
365
|
-
if (t.size < e.variableDefinitions.length) return
|
|
364
|
+
var t = m(r(e.name && e.name.value)).transitiveVars;
|
|
365
|
+
if (t.size < e.variableDefinitions.length) return F(F({}, e), { variableDefinitions: e.variableDefinitions.filter(function(e) {
|
|
366
366
|
return t.has(e.variable.name.value);
|
|
367
367
|
}) });
|
|
368
368
|
}
|
|
369
369
|
} }
|
|
370
370
|
}));
|
|
371
371
|
}
|
|
372
|
-
var
|
|
373
|
-
return
|
|
374
|
-
if (!(n && n.kind ===
|
|
372
|
+
var dt = Object.assign(function(e) {
|
|
373
|
+
return t(e, { SelectionSet: { enter: function(e, t, n) {
|
|
374
|
+
if (!(n && n.kind === B.OPERATION_DEFINITION)) {
|
|
375
375
|
var r = e.selections;
|
|
376
376
|
if (r && !r.some(function(e) {
|
|
377
|
-
return
|
|
377
|
+
return re(e) && (e.name.value === "__typename" || e.name.value.lastIndexOf("__", 0) === 0);
|
|
378
378
|
})) {
|
|
379
379
|
var i = n;
|
|
380
|
-
if (!(
|
|
380
|
+
if (!(re(i) && i.directives && i.directives.some(function(e) {
|
|
381
381
|
return e.name.value === "export";
|
|
382
|
-
}))) return
|
|
382
|
+
}))) return F(F({}, e), { selections: Te(Te([], r, !0), [at], !1) });
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
} } });
|
|
386
386
|
}, { added: function(e) {
|
|
387
|
-
return e ===
|
|
387
|
+
return e === at;
|
|
388
388
|
} });
|
|
389
|
-
function
|
|
390
|
-
return
|
|
391
|
-
return
|
|
389
|
+
function ft(e) {
|
|
390
|
+
return fe(e).operation === "query" ? e : t(e, { OperationDefinition: { enter: function(e) {
|
|
391
|
+
return F(F({}, e), { operation: "query" });
|
|
392
392
|
} } });
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
394
|
+
function pt(e) {
|
|
395
|
+
return Ae(e), ut([{
|
|
396
396
|
test: function(e) {
|
|
397
397
|
return e.name.value === "client";
|
|
398
398
|
},
|
|
399
399
|
remove: !0
|
|
400
400
|
}], e);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
402
|
+
function mt(e) {
|
|
403
|
+
return Ae(e), t(e, { FragmentSpread: function(e) {
|
|
404
404
|
if (!e.directives?.some(function(e) {
|
|
405
405
|
return e.name.value === "unmask";
|
|
406
|
-
})) return
|
|
407
|
-
kind:
|
|
406
|
+
})) return F(F({}, e), { directives: Te(Te([], e.directives || [], !0), [{
|
|
407
|
+
kind: B.DIRECTIVE,
|
|
408
408
|
name: {
|
|
409
|
-
kind:
|
|
409
|
+
kind: B.NAME,
|
|
410
410
|
value: "nonreactive"
|
|
411
411
|
}
|
|
412
412
|
}], !1) });
|
|
@@ -414,28 +414,28 @@ function pt(e) {
|
|
|
414
414
|
}
|
|
415
415
|
//#endregion
|
|
416
416
|
//#region node_modules/@apollo/client/utilities/common/mergeDeep.js
|
|
417
|
-
var
|
|
418
|
-
function
|
|
419
|
-
return
|
|
417
|
+
var ht = Object.prototype.hasOwnProperty;
|
|
418
|
+
function gt() {
|
|
419
|
+
return _t([...arguments]);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function _t(e) {
|
|
422
422
|
var t = e[0] || {}, n = e.length;
|
|
423
|
-
if (n > 1) for (var r = new
|
|
423
|
+
if (n > 1) for (var r = new J(), i = 1; i < n; ++i) t = r.merge(t, e[i]);
|
|
424
424
|
return t;
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var vt = function(e, t, n) {
|
|
427
427
|
return this.merge(e[n], t[n]);
|
|
428
|
-
},
|
|
428
|
+
}, J = function() {
|
|
429
429
|
function e(e) {
|
|
430
|
-
e === void 0 && (e =
|
|
430
|
+
e === void 0 && (e = vt), this.reconciler = e, this.isObject = D, this.pastCopies = /* @__PURE__ */ new Set();
|
|
431
431
|
}
|
|
432
432
|
return e.prototype.merge = function(e, t) {
|
|
433
433
|
for (var n = this, r = [], i = 2; i < arguments.length; i++) r[i - 2] = arguments[i];
|
|
434
|
-
return
|
|
435
|
-
if (
|
|
434
|
+
return D(t) && D(e) ? (Object.keys(t).forEach(function(i) {
|
|
435
|
+
if (ht.call(e, i)) {
|
|
436
436
|
var a = e[i];
|
|
437
437
|
if (t[i] !== a) {
|
|
438
|
-
var o = n.reconciler.apply(n,
|
|
438
|
+
var o = n.reconciler.apply(n, Te([
|
|
439
439
|
e,
|
|
440
440
|
t,
|
|
441
441
|
i
|
|
@@ -445,12 +445,12 @@ var _t = function(e, t, n) {
|
|
|
445
445
|
} else e = n.shallowCopyForMerge(e), e[i] = t[i];
|
|
446
446
|
}), e) : t;
|
|
447
447
|
}, e.prototype.shallowCopyForMerge = function(e) {
|
|
448
|
-
return
|
|
448
|
+
return D(e) && (this.pastCopies.has(e) || (e = Array.isArray(e) ? e.slice(0) : F({ __proto__: Object.getPrototypeOf(e) }, e), this.pastCopies.add(e))), e;
|
|
449
449
|
}, e;
|
|
450
450
|
}();
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region node_modules/@apollo/client/utilities/observables/asyncMap.js
|
|
453
|
-
function
|
|
453
|
+
function yt(e, t, n) {
|
|
454
454
|
return new z(function(r) {
|
|
455
455
|
var i = { then: function(e) {
|
|
456
456
|
return new Promise(function(t) {
|
|
@@ -487,11 +487,11 @@ function vt(e, t, n) {
|
|
|
487
487
|
}
|
|
488
488
|
//#endregion
|
|
489
489
|
//#region node_modules/@apollo/client/utilities/observables/Concast.js
|
|
490
|
-
function
|
|
490
|
+
function bt(e) {
|
|
491
491
|
return e && typeof e.then == "function";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
|
|
493
|
+
var xt = function(e) {
|
|
494
|
+
A(t, e);
|
|
495
495
|
function t(t) {
|
|
496
496
|
var n = e.call(this, function(e) {
|
|
497
497
|
return n.addObserver(e), function() {
|
|
@@ -502,28 +502,28 @@ var bt = function(e) {
|
|
|
502
502
|
n.resolve = e, n.reject = t;
|
|
503
503
|
}), n.handlers = {
|
|
504
504
|
next: function(e) {
|
|
505
|
-
n.sub !== null && (n.latest = ["next", e], n.notify("next", e),
|
|
505
|
+
n.sub !== null && (n.latest = ["next", e], n.notify("next", e), Ce(n.observers, "next", e));
|
|
506
506
|
},
|
|
507
507
|
error: function(e) {
|
|
508
508
|
var t = n.sub;
|
|
509
509
|
t !== null && (t && setTimeout(function() {
|
|
510
510
|
return t.unsubscribe();
|
|
511
|
-
}), n.sub = null, n.latest = ["error", e], n.reject(e), n.notify("error", e),
|
|
511
|
+
}), n.sub = null, n.latest = ["error", e], n.reject(e), n.notify("error", e), Ce(n.observers, "error", e));
|
|
512
512
|
},
|
|
513
513
|
complete: function() {
|
|
514
514
|
var e = n, t = e.sub, r = e.sources, i = r === void 0 ? [] : r;
|
|
515
515
|
if (t !== null) {
|
|
516
516
|
var a = i.shift();
|
|
517
|
-
a ?
|
|
517
|
+
a ? bt(a) ? a.then(function(e) {
|
|
518
518
|
return n.sub = e.subscribe(n.handlers);
|
|
519
519
|
}, n.handlers.error) : n.sub = a.subscribe(n.handlers) : (t && setTimeout(function() {
|
|
520
520
|
return t.unsubscribe();
|
|
521
|
-
}), n.sub = null, n.latest && n.latest[0] === "next" ? n.resolve(n.latest[1]) : n.resolve(), n.notify("complete"),
|
|
521
|
+
}), n.sub = null, n.latest && n.latest[0] === "next" ? n.resolve(n.latest[1]) : n.resolve(), n.notify("complete"), Ce(n.observers, "complete"));
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
}, n.nextResultListeners = /* @__PURE__ */ new Set(), n.cancel = function(e) {
|
|
525
525
|
n.reject(e), n.sources = [], n.handlers.error(e);
|
|
526
|
-
}, n.promise.catch(function(e) {}), typeof t == "function" && (t = [new z(t)]),
|
|
526
|
+
}, n.promise.catch(function(e) {}), typeof t == "function" && (t = [new z(t)]), bt(t) ? t.then(function(e) {
|
|
527
527
|
return n.start(e);
|
|
528
528
|
}, n.handlers.error) : n.start(t), n;
|
|
529
529
|
}
|
|
@@ -550,24 +550,24 @@ var bt = function(e) {
|
|
|
550
550
|
});
|
|
551
551
|
}, t;
|
|
552
552
|
}(z);
|
|
553
|
-
|
|
553
|
+
Ne(xt);
|
|
554
554
|
//#endregion
|
|
555
555
|
//#region node_modules/@apollo/client/utilities/common/incrementalResult.js
|
|
556
|
-
function xt(e) {
|
|
557
|
-
return "incremental" in e;
|
|
558
|
-
}
|
|
559
556
|
function St(e) {
|
|
560
|
-
return "
|
|
557
|
+
return "incremental" in e;
|
|
561
558
|
}
|
|
562
559
|
function Ct(e) {
|
|
563
|
-
return
|
|
560
|
+
return "hasNext" in e && "data" in e;
|
|
564
561
|
}
|
|
565
562
|
function wt(e) {
|
|
566
|
-
return
|
|
563
|
+
return St(e) || Ct(e);
|
|
567
564
|
}
|
|
568
|
-
function Tt(e
|
|
569
|
-
|
|
570
|
-
|
|
565
|
+
function Tt(e) {
|
|
566
|
+
return D(e) && "payload" in e;
|
|
567
|
+
}
|
|
568
|
+
function Et(e, t) {
|
|
569
|
+
var n = e, r = new J();
|
|
570
|
+
return St(t) && I(t.incremental) && t.incremental.forEach(function(e) {
|
|
571
571
|
for (var t = e.data, i = e.path, a = i.length - 1; a >= 0; --a) {
|
|
572
572
|
var o = i[a], s = isNaN(+o) ? {} : [];
|
|
573
573
|
s[o] = t, t = s;
|
|
@@ -577,31 +577,31 @@ function Tt(e, t) {
|
|
|
577
577
|
}
|
|
578
578
|
//#endregion
|
|
579
579
|
//#region node_modules/@apollo/client/utilities/common/errorHandling.js
|
|
580
|
-
function Et(e) {
|
|
581
|
-
return N(Dt(e));
|
|
582
|
-
}
|
|
583
580
|
function Dt(e) {
|
|
584
|
-
|
|
585
|
-
|
|
581
|
+
return I(Ot(e));
|
|
582
|
+
}
|
|
583
|
+
function Ot(e) {
|
|
584
|
+
var t = I(e.errors) ? e.errors.slice(0) : [];
|
|
585
|
+
return St(e) && I(e.incremental) && e.incremental.forEach(function(e) {
|
|
586
586
|
e.errors && t.push.apply(t, e.errors);
|
|
587
587
|
}), t;
|
|
588
588
|
}
|
|
589
589
|
//#endregion
|
|
590
590
|
//#region node_modules/@apollo/client/link/utils/fromError.js
|
|
591
|
-
function
|
|
591
|
+
function kt(e) {
|
|
592
592
|
return new z(function(t) {
|
|
593
593
|
t.error(e);
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
596
|
//#endregion
|
|
597
597
|
//#region node_modules/@apollo/client/link/utils/throwServerError.js
|
|
598
|
-
var
|
|
598
|
+
var At = function(e, t, n) {
|
|
599
599
|
var r = Error(n);
|
|
600
600
|
throw r.name = "ServerError", r.response = e, r.statusCode = e.status, r.result = t, r;
|
|
601
601
|
};
|
|
602
602
|
//#endregion
|
|
603
603
|
//#region node_modules/@apollo/client/link/utils/validateOperation.js
|
|
604
|
-
function
|
|
604
|
+
function jt(e) {
|
|
605
605
|
for (var t = [
|
|
606
606
|
"query",
|
|
607
607
|
"operationName",
|
|
@@ -610,90 +610,90 @@ function At(e) {
|
|
|
610
610
|
"context"
|
|
611
611
|
], n = 0, r = Object.keys(e); n < r.length; n++) {
|
|
612
612
|
var i = r[n];
|
|
613
|
-
if (t.indexOf(i) < 0) throw
|
|
613
|
+
if (t.indexOf(i) < 0) throw N(58, i);
|
|
614
614
|
}
|
|
615
615
|
return e;
|
|
616
616
|
}
|
|
617
617
|
//#endregion
|
|
618
618
|
//#region node_modules/@apollo/client/link/utils/createOperation.js
|
|
619
|
-
function
|
|
620
|
-
var n =
|
|
619
|
+
function Mt(e, t) {
|
|
620
|
+
var n = F({}, e);
|
|
621
621
|
return Object.defineProperty(t, "setContext", {
|
|
622
622
|
enumerable: !1,
|
|
623
623
|
value: function(e) {
|
|
624
|
-
n = typeof e == "function" ?
|
|
624
|
+
n = typeof e == "function" ? F(F({}, n), e(n)) : F(F({}, n), e);
|
|
625
625
|
}
|
|
626
626
|
}), Object.defineProperty(t, "getContext", {
|
|
627
627
|
enumerable: !1,
|
|
628
628
|
value: function() {
|
|
629
|
-
return
|
|
629
|
+
return F({}, n);
|
|
630
630
|
}
|
|
631
631
|
}), t;
|
|
632
632
|
}
|
|
633
633
|
//#endregion
|
|
634
634
|
//#region node_modules/@apollo/client/link/utils/transformOperation.js
|
|
635
|
-
function
|
|
635
|
+
function Nt(e) {
|
|
636
636
|
var t = {
|
|
637
637
|
variables: e.variables || {},
|
|
638
638
|
extensions: e.extensions || {},
|
|
639
639
|
operationName: e.operationName,
|
|
640
640
|
query: e.query
|
|
641
641
|
};
|
|
642
|
-
return t.operationName || (t.operationName = typeof t.query == "string" ? "" :
|
|
642
|
+
return t.operationName || (t.operationName = typeof t.query == "string" ? "" : Ve(t.query) || void 0), t;
|
|
643
643
|
}
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region node_modules/@apollo/client/link/utils/filterOperationVariables.js
|
|
646
|
-
function
|
|
647
|
-
var
|
|
648
|
-
return
|
|
649
|
-
n && n.kind !== "VariableDefinition" &&
|
|
650
|
-
} }),
|
|
651
|
-
delete
|
|
652
|
-
}),
|
|
646
|
+
function Pt(e, n) {
|
|
647
|
+
var r = F({}, e), i = new Set(Object.keys(e));
|
|
648
|
+
return t(n, { Variable: function(e, t, n) {
|
|
649
|
+
n && n.kind !== "VariableDefinition" && i.delete(e.name.value);
|
|
650
|
+
} }), i.forEach(function(e) {
|
|
651
|
+
delete r[e];
|
|
652
|
+
}), r;
|
|
653
653
|
}
|
|
654
654
|
//#endregion
|
|
655
655
|
//#region node_modules/@apollo/client/link/core/ApolloLink.js
|
|
656
|
-
function
|
|
656
|
+
function Ft(e, t) {
|
|
657
657
|
return t ? t(e) : z.of();
|
|
658
658
|
}
|
|
659
|
-
function Ft(e) {
|
|
660
|
-
return typeof e == "function" ? new X(e) : e;
|
|
661
|
-
}
|
|
662
659
|
function It(e) {
|
|
660
|
+
return typeof e == "function" ? new Y(e) : e;
|
|
661
|
+
}
|
|
662
|
+
function Lt(e) {
|
|
663
663
|
return e.request.length <= 1;
|
|
664
664
|
}
|
|
665
|
-
var
|
|
666
|
-
function
|
|
665
|
+
var Y = function() {
|
|
666
|
+
function t(e) {
|
|
667
667
|
e && (this.request = e);
|
|
668
668
|
}
|
|
669
|
-
return
|
|
670
|
-
return new
|
|
669
|
+
return t.empty = function() {
|
|
670
|
+
return new t(function() {
|
|
671
671
|
return z.of();
|
|
672
672
|
});
|
|
673
|
-
},
|
|
674
|
-
return
|
|
673
|
+
}, t.from = function(e) {
|
|
674
|
+
return e.length === 0 ? t.empty() : e.map(It).reduce(function(e, t) {
|
|
675
675
|
return e.concat(t);
|
|
676
676
|
});
|
|
677
|
-
},
|
|
678
|
-
var i =
|
|
679
|
-
return t
|
|
680
|
-
}) : new
|
|
681
|
-
return t
|
|
677
|
+
}, t.split = function(e, n, r) {
|
|
678
|
+
var i = It(n), a = It(r || new t(Ft)), o = Lt(i) && Lt(a) ? new t(function(t) {
|
|
679
|
+
return e(t) ? i.request(t) || z.of() : a.request(t) || z.of();
|
|
680
|
+
}) : new t(function(t, n) {
|
|
681
|
+
return e(t) ? i.request(t, n) || z.of() : a.request(t, n) || z.of();
|
|
682
682
|
});
|
|
683
683
|
return Object.assign(o, {
|
|
684
684
|
left: i,
|
|
685
685
|
right: a
|
|
686
686
|
});
|
|
687
|
-
},
|
|
688
|
-
return e.request(
|
|
689
|
-
},
|
|
690
|
-
var r =
|
|
691
|
-
if (
|
|
692
|
-
var i =
|
|
687
|
+
}, t.execute = function(e, t) {
|
|
688
|
+
return e.request(Mt(t.context, Nt(jt(t)))) || z.of();
|
|
689
|
+
}, t.concat = function(e, n) {
|
|
690
|
+
var r = It(e);
|
|
691
|
+
if (Lt(r)) return globalThis.__DEV__ !== !1 && R.warn(47, r), r;
|
|
692
|
+
var i = It(n), a = Lt(i) ? new t(function(e) {
|
|
693
693
|
return r.request(e, function(e) {
|
|
694
694
|
return i.request(e) || z.of();
|
|
695
695
|
}) || z.of();
|
|
696
|
-
}) : new
|
|
696
|
+
}) : new t(function(e, t) {
|
|
697
697
|
return r.request(e, function(e) {
|
|
698
698
|
return i.request(e, t) || z.of();
|
|
699
699
|
}) || z.of();
|
|
@@ -702,24 +702,24 @@ var X = function() {
|
|
|
702
702
|
left: r,
|
|
703
703
|
right: i
|
|
704
704
|
});
|
|
705
|
-
},
|
|
706
|
-
return this.concat(
|
|
707
|
-
},
|
|
708
|
-
return
|
|
709
|
-
},
|
|
710
|
-
throw
|
|
711
|
-
},
|
|
712
|
-
if (globalThis.__DEV__ !== !1 &&
|
|
705
|
+
}, t.prototype.split = function(e, n, r) {
|
|
706
|
+
return this.concat(t.split(e, n, r || new t(Ft)));
|
|
707
|
+
}, t.prototype.concat = function(e) {
|
|
708
|
+
return t.concat(this, e);
|
|
709
|
+
}, t.prototype.request = function(e, t) {
|
|
710
|
+
throw N(48);
|
|
711
|
+
}, t.prototype.onError = function(t, n) {
|
|
712
|
+
if (globalThis.__DEV__ !== !1 && e("onError", function() {
|
|
713
713
|
globalThis.__DEV__ !== !1 && R.warn(49);
|
|
714
|
-
}),
|
|
715
|
-
throw
|
|
716
|
-
},
|
|
714
|
+
}), n && n.error) return n.error(t), !1;
|
|
715
|
+
throw t;
|
|
716
|
+
}, t.prototype.setOnError = function(e) {
|
|
717
717
|
return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(50), this.onError = e, this;
|
|
718
|
-
},
|
|
719
|
-
}(),
|
|
718
|
+
}, t;
|
|
719
|
+
}(), Rt = Y.from, zt = Y.execute;
|
|
720
720
|
//#endregion
|
|
721
721
|
//#region node_modules/@apollo/client/link/http/iterators/async.js
|
|
722
|
-
function
|
|
722
|
+
function Bt(e) {
|
|
723
723
|
var t, n = e[Symbol.asyncIterator]();
|
|
724
724
|
return t = { next: function() {
|
|
725
725
|
return n.next();
|
|
@@ -729,7 +729,7 @@ function zt(e) {
|
|
|
729
729
|
}
|
|
730
730
|
//#endregion
|
|
731
731
|
//#region node_modules/@apollo/client/link/http/iterators/nodeStream.js
|
|
732
|
-
function
|
|
732
|
+
function Vt(e) {
|
|
733
733
|
var t = null, n = null, r = !1, i = [], a = [];
|
|
734
734
|
function o(e) {
|
|
735
735
|
if (!n) {
|
|
@@ -776,13 +776,13 @@ function Bt(e) {
|
|
|
776
776
|
var u = { next: function() {
|
|
777
777
|
return l();
|
|
778
778
|
} };
|
|
779
|
-
return
|
|
779
|
+
return ce && (u[Symbol.asyncIterator] = function() {
|
|
780
780
|
return this;
|
|
781
781
|
}), u;
|
|
782
782
|
}
|
|
783
783
|
//#endregion
|
|
784
784
|
//#region node_modules/@apollo/client/link/http/iterators/promise.js
|
|
785
|
-
function
|
|
785
|
+
function Ht(e) {
|
|
786
786
|
var t = !1, n = { next: function() {
|
|
787
787
|
return t ? Promise.resolve({
|
|
788
788
|
value: void 0,
|
|
@@ -796,76 +796,76 @@ function Vt(e) {
|
|
|
796
796
|
}).catch(n);
|
|
797
797
|
}));
|
|
798
798
|
} };
|
|
799
|
-
return
|
|
799
|
+
return ce && (n[Symbol.asyncIterator] = function() {
|
|
800
800
|
return this;
|
|
801
801
|
}), n;
|
|
802
802
|
}
|
|
803
803
|
//#endregion
|
|
804
804
|
//#region node_modules/@apollo/client/link/http/iterators/reader.js
|
|
805
|
-
function
|
|
805
|
+
function Ut(e) {
|
|
806
806
|
var t = { next: function() {
|
|
807
807
|
return e.read();
|
|
808
808
|
} };
|
|
809
|
-
return
|
|
809
|
+
return ce && (t[Symbol.asyncIterator] = function() {
|
|
810
810
|
return this;
|
|
811
811
|
}), t;
|
|
812
812
|
}
|
|
813
813
|
//#endregion
|
|
814
814
|
//#region node_modules/@apollo/client/link/http/responseIterator.js
|
|
815
|
-
function Ut(e) {
|
|
816
|
-
return !!e.body;
|
|
817
|
-
}
|
|
818
815
|
function Wt(e) {
|
|
819
|
-
return !!e.
|
|
816
|
+
return !!e.body;
|
|
820
817
|
}
|
|
821
818
|
function Gt(e) {
|
|
822
|
-
return !!
|
|
819
|
+
return !!e.getReader;
|
|
823
820
|
}
|
|
824
821
|
function Kt(e) {
|
|
825
|
-
return !!e.
|
|
822
|
+
return !!(ce && e[Symbol.asyncIterator]);
|
|
826
823
|
}
|
|
827
824
|
function qt(e) {
|
|
828
|
-
return !!e.
|
|
825
|
+
return !!e.stream;
|
|
829
826
|
}
|
|
830
827
|
function Jt(e) {
|
|
831
|
-
return !!e.
|
|
828
|
+
return !!e.arrayBuffer;
|
|
832
829
|
}
|
|
833
830
|
function Yt(e) {
|
|
831
|
+
return !!e.pipe;
|
|
832
|
+
}
|
|
833
|
+
function Xt(e) {
|
|
834
834
|
var t = e;
|
|
835
|
-
if (
|
|
836
|
-
if (
|
|
837
|
-
if (
|
|
838
|
-
if (
|
|
839
|
-
if (
|
|
835
|
+
if (Wt(e) && (t = e.body), Kt(t)) return Bt(t);
|
|
836
|
+
if (Gt(t)) return Ut(t.getReader());
|
|
837
|
+
if (qt(t)) return Ut(t.stream().getReader());
|
|
838
|
+
if (Jt(t)) return Ht(t.arrayBuffer());
|
|
839
|
+
if (Yt(t)) return Vt(t);
|
|
840
840
|
throw Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
841
841
|
}
|
|
842
842
|
//#endregion
|
|
843
843
|
//#region node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
|
|
844
|
-
var
|
|
845
|
-
function
|
|
846
|
-
return
|
|
847
|
-
var n, r, i, a, o, s, c, l, d, f, p, m, h, g, _,
|
|
848
|
-
return
|
|
844
|
+
var Zt = Object.prototype.hasOwnProperty;
|
|
845
|
+
function Qt(e, t) {
|
|
846
|
+
return V(this, void 0, void 0, function() {
|
|
847
|
+
var n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, y, b, x, S, C, w, T;
|
|
848
|
+
return M(this, function(E) {
|
|
849
849
|
switch (E.label) {
|
|
850
850
|
case 0:
|
|
851
851
|
if (TextDecoder === void 0) throw Error("TextDecoder must be defined in the environment: please import a polyfill.");
|
|
852
852
|
n = new TextDecoder("utf-8"), r = e.headers?.get("content-type"), i = "boundary=", a = r?.includes(i) ? r?.substring(r?.indexOf(i) + i.length).replace(/['"]/g, "").replace(/\;(.*)/gm, "").trim() : "-", o = `\r
|
|
853
|
-
--${a}`, s = "", c =
|
|
853
|
+
--${a}`, s = "", c = Xt(e), l = !0, E.label = 1;
|
|
854
854
|
case 1: return l ? [4, c.next()] : [3, 3];
|
|
855
855
|
case 2:
|
|
856
|
-
for (
|
|
857
|
-
if (
|
|
858
|
-
if (x =
|
|
859
|
-
if (S =
|
|
856
|
+
for (u = E.sent(), d = u.value, f = u.done, p = typeof d == "string" ? d : n.decode(d), m = s.length - o.length + 1, l = !f, s += p, h = s.indexOf(o, m); h > -1;) {
|
|
857
|
+
if (g = void 0, w = [s.slice(0, h), s.slice(h + o.length)], g = w[0], s = w[1], _ = g.indexOf("\r\n\r\n"), y = $t(g.slice(0, _)), b = y["content-type"], b && b.toLowerCase().indexOf("application/json") === -1) throw Error("Unsupported patch content type: application/json is required.");
|
|
858
|
+
if (x = g.slice(_), x) {
|
|
859
|
+
if (S = en(e, x), Object.keys(S).length > 1 || "data" in S || "incremental" in S || "errors" in S || "payload" in S) if (Tt(S)) {
|
|
860
860
|
if (C = {}, "payload" in S) {
|
|
861
861
|
if (Object.keys(S).length === 1 && S.payload === null) return [2];
|
|
862
|
-
C =
|
|
862
|
+
C = F({}, S.payload);
|
|
863
863
|
}
|
|
864
|
-
"errors" in S && (C =
|
|
864
|
+
"errors" in S && (C = F(F({}, C), { extensions: F(F({}, "extensions" in C ? C.extensions : null), (T = {}, T[v] = S.errors, T)) })), t(C);
|
|
865
865
|
} else t(S);
|
|
866
866
|
else if (Object.keys(S).length === 1 && "hasNext" in S && !S.hasNext) return [2];
|
|
867
867
|
}
|
|
868
|
-
|
|
868
|
+
h = s.indexOf(o);
|
|
869
869
|
}
|
|
870
870
|
return [3, 1];
|
|
871
871
|
case 3: return [2];
|
|
@@ -873,7 +873,7 @@ function Zt(e, t) {
|
|
|
873
873
|
});
|
|
874
874
|
});
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function $t(e) {
|
|
877
877
|
var t = {};
|
|
878
878
|
return e.split("\n").forEach(function(e) {
|
|
879
879
|
var n = e.indexOf(":");
|
|
@@ -883,8 +883,8 @@ function Qt(e) {
|
|
|
883
883
|
}
|
|
884
884
|
}), t;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
e.status >= 300 &&
|
|
886
|
+
function en(e, t) {
|
|
887
|
+
e.status >= 300 && At(e, function() {
|
|
888
888
|
try {
|
|
889
889
|
return JSON.parse(t);
|
|
890
890
|
} catch {
|
|
@@ -898,15 +898,15 @@ function $t(e, t) {
|
|
|
898
898
|
throw n.name = "ServerParseError", n.response = e, n.statusCode = e.status, n.bodyText = t, n;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function tn(e, t) {
|
|
902
902
|
e.result && e.result.errors && e.result.data && t.next(e.result), t.error(e);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function nn(e) {
|
|
905
905
|
return function(t) {
|
|
906
906
|
return t.text().then(function(e) {
|
|
907
|
-
return
|
|
907
|
+
return en(t, e);
|
|
908
908
|
}).then(function(n) {
|
|
909
|
-
return !Array.isArray(n) && !
|
|
909
|
+
return !Array.isArray(n) && !Zt.call(n, "data") && !Zt.call(n, "errors") && At(t, n, `Server response was missing for query '${Array.isArray(e) ? e.map(function(e) {
|
|
910
910
|
return e.operationName;
|
|
911
911
|
}) : e.operationName}'.`), n;
|
|
912
912
|
});
|
|
@@ -914,16 +914,16 @@ function tn(e) {
|
|
|
914
914
|
}
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region node_modules/@apollo/client/link/http/serializeFetchParameter.js
|
|
917
|
-
var
|
|
917
|
+
var rn = function(e, t) {
|
|
918
918
|
var n;
|
|
919
919
|
try {
|
|
920
920
|
n = JSON.stringify(e);
|
|
921
921
|
} catch (e) {
|
|
922
|
-
var r =
|
|
922
|
+
var r = N(54, t, e.message);
|
|
923
923
|
throw r.parseError = e, r;
|
|
924
924
|
}
|
|
925
925
|
return n;
|
|
926
|
-
},
|
|
926
|
+
}, an = {
|
|
927
927
|
http: {
|
|
928
928
|
includeQuery: !0,
|
|
929
929
|
includeExtensions: !1,
|
|
@@ -934,24 +934,24 @@ var nn = function(e, t) {
|
|
|
934
934
|
"content-type": "application/json"
|
|
935
935
|
},
|
|
936
936
|
options: { method: "POST" }
|
|
937
|
-
},
|
|
937
|
+
}, on = function(e, t) {
|
|
938
938
|
return t(e);
|
|
939
939
|
};
|
|
940
|
-
function
|
|
940
|
+
function sn(e, t) {
|
|
941
941
|
var n = [...arguments].slice(2), r = {}, i = {};
|
|
942
942
|
n.forEach(function(e) {
|
|
943
|
-
r =
|
|
944
|
-
}), r.headers && (r.headers =
|
|
943
|
+
r = F(F(F({}, r), e.options), { headers: F(F({}, r.headers), e.headers) }), e.credentials && (r.credentials = e.credentials), i = F(F({}, i), e.http);
|
|
944
|
+
}), r.headers && (r.headers = cn(r.headers, i.preserveHeaderCase));
|
|
945
945
|
var a = e.operationName, o = e.extensions, s = e.variables, c = e.query, l = {
|
|
946
946
|
operationName: a,
|
|
947
947
|
variables: s
|
|
948
948
|
};
|
|
949
|
-
return i.includeExtensions && (l.extensions = o), i.includeQuery && (l.query = t(c,
|
|
949
|
+
return i.includeExtensions && (l.extensions = o), i.includeQuery && (l.query = t(c, q)), {
|
|
950
950
|
options: r,
|
|
951
951
|
body: l
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function cn(e, t) {
|
|
955
955
|
if (!t) {
|
|
956
956
|
var n = {};
|
|
957
957
|
return Object.keys(Object(e)).forEach(function(t) {
|
|
@@ -972,21 +972,21 @@ function sn(e, t) {
|
|
|
972
972
|
}
|
|
973
973
|
//#endregion
|
|
974
974
|
//#region node_modules/@apollo/client/link/http/checkFetcher.js
|
|
975
|
-
var
|
|
976
|
-
if (!e && typeof fetch > "u") throw
|
|
977
|
-
},
|
|
975
|
+
var ln = function(e) {
|
|
976
|
+
if (!e && typeof fetch > "u") throw N(51);
|
|
977
|
+
}, un = function(e, t) {
|
|
978
978
|
return e.getContext().uri || (typeof t == "function" ? t(e) : t || "/graphql");
|
|
979
979
|
};
|
|
980
980
|
//#endregion
|
|
981
981
|
//#region node_modules/@apollo/client/link/http/rewriteURIForGET.js
|
|
982
|
-
function
|
|
982
|
+
function dn(e, t) {
|
|
983
983
|
var n = [], r = function(e, t) {
|
|
984
984
|
n.push(`${e}=${encodeURIComponent(t)}`);
|
|
985
985
|
};
|
|
986
986
|
if ("query" in t && r("query", t.query), t.operationName && r("operationName", t.operationName), t.variables) {
|
|
987
987
|
var i = void 0;
|
|
988
988
|
try {
|
|
989
|
-
i =
|
|
989
|
+
i = rn(t.variables, "Variables map");
|
|
990
990
|
} catch (e) {
|
|
991
991
|
return { parseError: e };
|
|
992
992
|
}
|
|
@@ -995,7 +995,7 @@ function un(e, t) {
|
|
|
995
995
|
if (t.extensions) {
|
|
996
996
|
var a = void 0;
|
|
997
997
|
try {
|
|
998
|
-
a =
|
|
998
|
+
a = rn(t.extensions, "Extensions map");
|
|
999
999
|
} catch (e) {
|
|
1000
1000
|
return { parseError: e };
|
|
1001
1001
|
}
|
|
@@ -1008,11 +1008,11 @@ function un(e, t) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
//#endregion
|
|
1010
1010
|
//#region node_modules/@apollo/client/link/http/createHttpLink.js
|
|
1011
|
-
var
|
|
1011
|
+
var fn = Pe(function() {
|
|
1012
1012
|
return fetch;
|
|
1013
|
-
}),
|
|
1013
|
+
}), pn = function(e) {
|
|
1014
1014
|
e === void 0 && (e = {});
|
|
1015
|
-
var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, a = i === void 0 ?
|
|
1015
|
+
var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, a = i === void 0 ? on : i, o = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, l = e.includeUnusedVariables, u = l === void 0 ? !1 : l, d = L(e, [
|
|
1016
1016
|
"uri",
|
|
1017
1017
|
"fetch",
|
|
1018
1018
|
"print",
|
|
@@ -1021,7 +1021,7 @@ var dn = De(function() {
|
|
|
1021
1021
|
"useGETForQueries",
|
|
1022
1022
|
"includeUnusedVariables"
|
|
1023
1023
|
]);
|
|
1024
|
-
globalThis.__DEV__ !== !1 &&
|
|
1024
|
+
globalThis.__DEV__ !== !1 && ln(r || fn);
|
|
1025
1025
|
var f = {
|
|
1026
1026
|
http: {
|
|
1027
1027
|
includeExtensions: o,
|
|
@@ -1031,91 +1031,91 @@ var dn = De(function() {
|
|
|
1031
1031
|
credentials: d.credentials,
|
|
1032
1032
|
headers: d.headers
|
|
1033
1033
|
};
|
|
1034
|
-
return new
|
|
1035
|
-
var t =
|
|
1034
|
+
return new Y(function(e) {
|
|
1035
|
+
var t = un(e, n), i = e.getContext(), o = {};
|
|
1036
1036
|
if (i.clientAwareness) {
|
|
1037
1037
|
var s = i.clientAwareness, l = s.name, d = s.version;
|
|
1038
1038
|
l && (o["apollographql-client-name"] = l), d && (o["apollographql-client-version"] = d);
|
|
1039
1039
|
}
|
|
1040
|
-
var p =
|
|
1040
|
+
var p = F(F({}, o), i.headers), m = {
|
|
1041
1041
|
http: i.http,
|
|
1042
1042
|
options: i.fetchOptions,
|
|
1043
1043
|
credentials: i.credentials,
|
|
1044
1044
|
headers: p
|
|
1045
1045
|
};
|
|
1046
|
-
if (
|
|
1046
|
+
if (le(["client"], e.query)) {
|
|
1047
1047
|
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(52);
|
|
1048
|
-
var h =
|
|
1049
|
-
if (!h) return
|
|
1048
|
+
var h = pt(e.query);
|
|
1049
|
+
if (!h) return kt(/* @__PURE__ */ 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`."));
|
|
1050
1050
|
e.query = h;
|
|
1051
1051
|
}
|
|
1052
|
-
var g =
|
|
1053
|
-
v.variables && !u && (v.variables =
|
|
1052
|
+
var g = sn(e, a, an, f, m), _ = g.options, v = g.body;
|
|
1053
|
+
v.variables && !u && (v.variables = Pt(v.variables, e.query));
|
|
1054
1054
|
var y;
|
|
1055
1055
|
!_.signal && typeof AbortController < "u" && (y = new AbortController(), _.signal = y.signal);
|
|
1056
1056
|
var b = function(e) {
|
|
1057
1057
|
return e.kind === "OperationDefinition" && e.operation === "mutation";
|
|
1058
1058
|
}, x = function(e) {
|
|
1059
1059
|
return e.kind === "OperationDefinition" && e.operation === "subscription";
|
|
1060
|
-
}(
|
|
1060
|
+
}(fe(e.query)), S = le(["defer"], e.query);
|
|
1061
1061
|
if (c && !e.query.definitions.some(b) && (_.method = "GET"), S || x) {
|
|
1062
1062
|
_.headers = _.headers || {};
|
|
1063
1063
|
var C = "multipart/mixed;";
|
|
1064
1064
|
x && S && globalThis.__DEV__ !== !1 && R.warn(53), x ? C += "boundary=graphql;subscriptionSpec=1.0,application/json" : S && (C += "deferSpec=20220824,application/json"), _.headers.accept = C;
|
|
1065
1065
|
}
|
|
1066
1066
|
if (_.method === "GET") {
|
|
1067
|
-
var w =
|
|
1068
|
-
if (E) return
|
|
1067
|
+
var w = dn(t, v), T = w.newURI, E = w.parseError;
|
|
1068
|
+
if (E) return kt(E);
|
|
1069
1069
|
t = T;
|
|
1070
1070
|
} else try {
|
|
1071
|
-
_.body =
|
|
1071
|
+
_.body = rn(v, "Payload");
|
|
1072
1072
|
} catch (e) {
|
|
1073
|
-
return
|
|
1073
|
+
return kt(e);
|
|
1074
1074
|
}
|
|
1075
1075
|
return new z(function(n) {
|
|
1076
|
-
var i = r ||
|
|
1076
|
+
var i = r || Pe(function() {
|
|
1077
1077
|
return fetch;
|
|
1078
|
-
}) ||
|
|
1078
|
+
}) || fn, a = n.next.bind(n);
|
|
1079
1079
|
return i(t, _).then(function(t) {
|
|
1080
1080
|
e.setContext({ response: t });
|
|
1081
1081
|
var n = t.headers?.get("content-type");
|
|
1082
|
-
return n !== null && /^multipart\/mixed/i.test(n) ?
|
|
1082
|
+
return n !== null && /^multipart\/mixed/i.test(n) ? Qt(t, a) : nn(e)(t).then(a);
|
|
1083
1083
|
}).then(function() {
|
|
1084
1084
|
y = void 0, n.complete();
|
|
1085
1085
|
}).catch(function(e) {
|
|
1086
|
-
y = void 0,
|
|
1086
|
+
y = void 0, tn(e, n);
|
|
1087
1087
|
}), function() {
|
|
1088
1088
|
y && y.abort();
|
|
1089
1089
|
};
|
|
1090
1090
|
});
|
|
1091
1091
|
});
|
|
1092
|
-
},
|
|
1093
|
-
|
|
1092
|
+
}, mn = function(e) {
|
|
1093
|
+
A(t, e);
|
|
1094
1094
|
function t(t) {
|
|
1095
1095
|
t === void 0 && (t = {});
|
|
1096
|
-
var n = e.call(this,
|
|
1096
|
+
var n = e.call(this, pn(t).request) || this;
|
|
1097
1097
|
return n.options = t, n;
|
|
1098
1098
|
}
|
|
1099
1099
|
return t;
|
|
1100
|
-
}(
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1100
|
+
}(Y), hn = f ? WeakMap : Map, gn = y ? WeakSet : Set, _n = new ye(), vn = !1;
|
|
1101
|
+
function yn() {
|
|
1102
|
+
vn || (vn = !0, globalThis.__DEV__ !== !1 && R.warn(64));
|
|
1103
1103
|
}
|
|
1104
1104
|
//#endregion
|
|
1105
1105
|
//#region node_modules/@apollo/client/masking/maskDefinition.js
|
|
1106
|
-
function
|
|
1107
|
-
return
|
|
1108
|
-
var r =
|
|
1109
|
-
return Object.isFrozen(e) &&
|
|
1106
|
+
function bn(e, t, n) {
|
|
1107
|
+
return _n.withValue(!0, function() {
|
|
1108
|
+
var r = Sn(e, t, n, !1);
|
|
1109
|
+
return Object.isFrozen(e) && me(r), r;
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function xn(e, t) {
|
|
1113
1113
|
if (t.has(e)) return t.get(e);
|
|
1114
1114
|
var n = Array.isArray(e) ? [] : Object.create(null);
|
|
1115
1115
|
return t.set(e, n), n;
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
var a = n.knownChanged, o =
|
|
1117
|
+
function Sn(e, t, n, r, i) {
|
|
1118
|
+
var a = n.knownChanged, o = xn(e, n.mutableTargets);
|
|
1119
1119
|
if (Array.isArray(e)) {
|
|
1120
1120
|
for (var s = 0, c = Array.from(e.entries()); s < c.length; s++) {
|
|
1121
1121
|
var l = c[s], u = l[0], d = l[1];
|
|
@@ -1123,35 +1123,35 @@ function xn(e, t, n, r, i) {
|
|
|
1123
1123
|
o[u] = null;
|
|
1124
1124
|
continue;
|
|
1125
1125
|
}
|
|
1126
|
-
var f =
|
|
1126
|
+
var f = Sn(d, t, n, r, globalThis.__DEV__ === !1 ? void 0 : `${i || ""}[${u}]`);
|
|
1127
1127
|
a.has(f) && a.add(o), o[u] = f;
|
|
1128
1128
|
}
|
|
1129
1129
|
return a.has(o) ? o : e;
|
|
1130
1130
|
}
|
|
1131
1131
|
for (var p = 0, m = t.selections; p < m.length; p++) {
|
|
1132
1132
|
var h = m[p], g = void 0;
|
|
1133
|
-
if (r && a.add(o), h.kind ===
|
|
1134
|
-
var
|
|
1135
|
-
if (g = o[
|
|
1136
|
-
if (
|
|
1137
|
-
var f =
|
|
1133
|
+
if (r && a.add(o), h.kind === B.FIELD) {
|
|
1134
|
+
var v = P(h), y = h.selectionSet;
|
|
1135
|
+
if (g = o[v] || e[v], g === void 0) continue;
|
|
1136
|
+
if (y && g !== null) {
|
|
1137
|
+
var f = Sn(e[v], y, n, r, globalThis.__DEV__ === !1 ? void 0 : `${i || ""}.${v}`);
|
|
1138
1138
|
a.has(f) && (g = f);
|
|
1139
1139
|
}
|
|
1140
|
-
globalThis.__DEV__ === !1 && (o[
|
|
1140
|
+
globalThis.__DEV__ === !1 && (o[v] = g), globalThis.__DEV__ !== !1 && (r && v !== "__typename" && !Object.getOwnPropertyDescriptor(o, v)?.value ? Object.defineProperty(o, v, Cn(v, g, i || "", n.operationName, n.operationType)) : (delete o[v], o[v] = g));
|
|
1141
1141
|
}
|
|
1142
|
-
if (h.kind ===
|
|
1143
|
-
var
|
|
1144
|
-
R(
|
|
1145
|
-
var
|
|
1146
|
-
|
|
1142
|
+
if (h.kind === B.INLINE_FRAGMENT && (!h.typeCondition || n.cache.fragmentMatches(h, e.__typename)) && (g = Sn(e, h.selectionSet, n, r, i)), h.kind === B.FRAGMENT_SPREAD) {
|
|
1143
|
+
var b = h.name.value, x = n.fragmentMap[b] || (n.fragmentMap[b] = n.cache.lookupFragment(b));
|
|
1144
|
+
R(x, 59, b);
|
|
1145
|
+
var S = _(h);
|
|
1146
|
+
S !== "mask" && (g = Sn(e, x.selectionSet, n, S === "migrate", i));
|
|
1147
1147
|
}
|
|
1148
1148
|
a.has(g) && a.add(o);
|
|
1149
1149
|
}
|
|
1150
1150
|
return "__typename" in e && !("__typename" in o) && (o.__typename = e.__typename), Object.keys(o).length !== Object.keys(e).length && a.add(o), a.has(o) ? o : e;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Cn(e, t, n, r, i) {
|
|
1153
1153
|
var a = function() {
|
|
1154
|
-
return
|
|
1154
|
+
return _n.getValue() ? t : (globalThis.__DEV__ !== !1 && R.warn(60, r ? `${i} '${r}'` : `anonymous ${i}`, `${n}.${e}`.replace(/^\./, "")), a = function() {
|
|
1155
1155
|
return t;
|
|
1156
1156
|
}, t);
|
|
1157
1157
|
};
|
|
@@ -1170,123 +1170,123 @@ function Sn(e, t, n, r, i) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
//#endregion
|
|
1172
1172
|
//#region node_modules/@apollo/client/masking/maskFragment.js
|
|
1173
|
-
function
|
|
1174
|
-
if (!n.fragmentMatches) return globalThis.__DEV__ !== !1 &&
|
|
1173
|
+
function wn(e, t, n, r) {
|
|
1174
|
+
if (!n.fragmentMatches) return globalThis.__DEV__ !== !1 && yn(), e;
|
|
1175
1175
|
var i = t.definitions.filter(function(e) {
|
|
1176
|
-
return e.kind ===
|
|
1176
|
+
return e.kind === B.FRAGMENT_DEFINITION;
|
|
1177
1177
|
});
|
|
1178
1178
|
r === void 0 && (R(i.length === 1, 61, i.length), r = i[0].name.value);
|
|
1179
1179
|
var a = i.find(function(e) {
|
|
1180
1180
|
return e.name.value === r;
|
|
1181
1181
|
});
|
|
1182
|
-
return R(!!a, 62, r), e == null ||
|
|
1182
|
+
return R(!!a, 62, r), e == null || O(e, {}) ? e : bn(e, a.selectionSet, {
|
|
1183
1183
|
operationType: "fragment",
|
|
1184
1184
|
operationName: a.name.value,
|
|
1185
|
-
fragmentMap:
|
|
1185
|
+
fragmentMap: He(xe(t)),
|
|
1186
1186
|
cache: n,
|
|
1187
|
-
mutableTargets: new
|
|
1188
|
-
knownChanged: new
|
|
1187
|
+
mutableTargets: new hn(),
|
|
1188
|
+
knownChanged: new gn()
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
1191
|
//#endregion
|
|
1192
1192
|
//#region node_modules/@apollo/client/masking/maskOperation.js
|
|
1193
|
-
function
|
|
1194
|
-
if (!n.fragmentMatches) return globalThis.__DEV__ !== !1 &&
|
|
1195
|
-
var r =
|
|
1196
|
-
return R(r, 63), e == null ? e :
|
|
1193
|
+
function Tn(e, t, n) {
|
|
1194
|
+
if (!n.fragmentMatches) return globalThis.__DEV__ !== !1 && yn(), e;
|
|
1195
|
+
var r = Le(t);
|
|
1196
|
+
return R(r, 63), e == null ? e : bn(e, r.selectionSet, {
|
|
1197
1197
|
operationType: r.operation,
|
|
1198
1198
|
operationName: r.name?.value,
|
|
1199
|
-
fragmentMap:
|
|
1199
|
+
fragmentMap: He(xe(t)),
|
|
1200
1200
|
cache: n,
|
|
1201
|
-
mutableTargets: new
|
|
1202
|
-
knownChanged: new
|
|
1201
|
+
mutableTargets: new hn(),
|
|
1202
|
+
knownChanged: new gn()
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
//#region node_modules/@apollo/client/cache/core/cache.js
|
|
1207
|
-
var
|
|
1208
|
-
function
|
|
1209
|
-
this.assumeImmutableResults = !1, this.getFragmentDoc =
|
|
1210
|
-
max:
|
|
1211
|
-
cache:
|
|
1207
|
+
var En = function() {
|
|
1208
|
+
function e() {
|
|
1209
|
+
this.assumeImmutableResults = !1, this.getFragmentDoc = Ie(oe, {
|
|
1210
|
+
max: h["cache.fragmentQueryDocuments"] || 1e3,
|
|
1211
|
+
cache: ee
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
|
-
return
|
|
1214
|
+
return e.prototype.lookupFragment = function(e) {
|
|
1215
1215
|
return null;
|
|
1216
|
-
},
|
|
1216
|
+
}, e.prototype.batch = function(e) {
|
|
1217
1217
|
var t = this, n = typeof e.optimistic == "string" ? e.optimistic : e.optimistic === !1 ? null : void 0, r;
|
|
1218
1218
|
return this.performTransaction(function() {
|
|
1219
1219
|
return r = e.update(t);
|
|
1220
1220
|
}, n), r;
|
|
1221
|
-
},
|
|
1221
|
+
}, e.prototype.recordOptimisticTransaction = function(e, t) {
|
|
1222
1222
|
this.performTransaction(e, t);
|
|
1223
|
-
},
|
|
1223
|
+
}, e.prototype.transformDocument = function(e) {
|
|
1224
1224
|
return e;
|
|
1225
|
-
},
|
|
1225
|
+
}, e.prototype.transformForLink = function(e) {
|
|
1226
1226
|
return e;
|
|
1227
|
-
},
|
|
1227
|
+
}, e.prototype.identify = function(e) {}, e.prototype.gc = function() {
|
|
1228
1228
|
return [];
|
|
1229
|
-
},
|
|
1229
|
+
}, e.prototype.modify = function(e) {
|
|
1230
1230
|
return !1;
|
|
1231
|
-
},
|
|
1232
|
-
var
|
|
1233
|
-
return
|
|
1234
|
-
return
|
|
1235
|
-
rootId:
|
|
1236
|
-
optimistic:
|
|
1231
|
+
}, e.prototype.readQuery = function(e, t) {
|
|
1232
|
+
var n = this;
|
|
1233
|
+
return t === void 0 && (t = !!e.optimistic), globalThis.__DEV__ !== !1 && j(e, "canonizeResults", "cache.readQuery"), T("canonizeResults", function() {
|
|
1234
|
+
return n.read(F(F({}, e), {
|
|
1235
|
+
rootId: e.id || "ROOT_QUERY",
|
|
1236
|
+
optimistic: t
|
|
1237
1237
|
}));
|
|
1238
1238
|
});
|
|
1239
|
-
},
|
|
1240
|
-
var t = this, n = e.fragment, r = e.fragmentName, i = e.from, a = e.optimistic, o = a === void 0 ? !0 : a, s =
|
|
1239
|
+
}, e.prototype.watchFragment = function(e) {
|
|
1240
|
+
var t = this, n = e.fragment, r = e.fragmentName, i = e.from, a = e.optimistic, o = a === void 0 ? !0 : a, s = L(e, [
|
|
1241
1241
|
"fragment",
|
|
1242
1242
|
"fragmentName",
|
|
1243
1243
|
"from",
|
|
1244
1244
|
"optimistic"
|
|
1245
1245
|
]), c = this.getFragmentDoc(n, r), l = i === void 0 || typeof i == "string" ? i : this.identify(i), u = !!e[Symbol.for("apollo.dataMasking")];
|
|
1246
1246
|
if (globalThis.__DEV__ !== !1) {
|
|
1247
|
-
var d = r ||
|
|
1247
|
+
var d = r || Se(n).name.value;
|
|
1248
1248
|
l || globalThis.__DEV__ !== !1 && R.warn(1, d);
|
|
1249
1249
|
}
|
|
1250
|
-
var f =
|
|
1250
|
+
var f = F(F({}, s), {
|
|
1251
1251
|
returnPartialData: !0,
|
|
1252
1252
|
id: l,
|
|
1253
1253
|
query: c,
|
|
1254
1254
|
optimistic: o
|
|
1255
1255
|
}), p;
|
|
1256
1256
|
return new z(function(i) {
|
|
1257
|
-
return t.watch(
|
|
1257
|
+
return t.watch(F(F({}, f), {
|
|
1258
1258
|
immediate: !0,
|
|
1259
1259
|
callback: function(a) {
|
|
1260
|
-
var o = u ?
|
|
1261
|
-
if (!(p &&
|
|
1260
|
+
var o = u ? wn(a.result, n, t, r) : a.result;
|
|
1261
|
+
if (!(p && se(c, { data: p.result }, { data: o }, e.variables))) {
|
|
1262
1262
|
var s = {
|
|
1263
1263
|
data: o,
|
|
1264
1264
|
complete: !!a.complete
|
|
1265
1265
|
};
|
|
1266
|
-
a.missing && (s.missing =
|
|
1266
|
+
a.missing && (s.missing = _t(a.missing.map(function(e) {
|
|
1267
1267
|
return e.missing;
|
|
1268
|
-
}))), p =
|
|
1268
|
+
}))), p = F(F({}, a), { result: o }), i.next(s);
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
}));
|
|
1272
1272
|
});
|
|
1273
|
-
},
|
|
1274
|
-
var
|
|
1275
|
-
return
|
|
1276
|
-
return
|
|
1277
|
-
query:
|
|
1278
|
-
rootId:
|
|
1279
|
-
optimistic:
|
|
1273
|
+
}, e.prototype.readFragment = function(e, t) {
|
|
1274
|
+
var n = this;
|
|
1275
|
+
return t === void 0 && (t = !!e.optimistic), globalThis.__DEV__ !== !1 && j(e, "canonizeResults", "cache.readFragment"), T("canonizeResults", function() {
|
|
1276
|
+
return n.read(F(F({}, e), {
|
|
1277
|
+
query: n.getFragmentDoc(e.fragment, e.fragmentName),
|
|
1278
|
+
rootId: e.id,
|
|
1279
|
+
optimistic: t
|
|
1280
1280
|
}));
|
|
1281
1281
|
});
|
|
1282
|
-
},
|
|
1283
|
-
var t = e.id, n = e.data, r =
|
|
1282
|
+
}, e.prototype.writeQuery = function(e) {
|
|
1283
|
+
var t = e.id, n = e.data, r = L(e, ["id", "data"]);
|
|
1284
1284
|
return this.write(Object.assign(r, {
|
|
1285
1285
|
dataId: t || "ROOT_QUERY",
|
|
1286
1286
|
result: n
|
|
1287
1287
|
}));
|
|
1288
|
-
},
|
|
1289
|
-
var t = e.id, n = e.data, r = e.fragment, i = e.fragmentName, a =
|
|
1288
|
+
}, e.prototype.writeFragment = function(e) {
|
|
1289
|
+
var t = e.id, n = e.data, r = e.fragment, i = e.fragmentName, a = L(e, [
|
|
1290
1290
|
"id",
|
|
1291
1291
|
"data",
|
|
1292
1292
|
"fragment",
|
|
@@ -1297,27 +1297,27 @@ var Tn = function() {
|
|
|
1297
1297
|
dataId: t,
|
|
1298
1298
|
result: n
|
|
1299
1299
|
}));
|
|
1300
|
-
},
|
|
1301
|
-
return globalThis.__DEV__ !== !1 && e
|
|
1302
|
-
var r =
|
|
1303
|
-
return
|
|
1304
|
-
}), i =
|
|
1305
|
-
return i == null ? r : (
|
|
1300
|
+
}, e.prototype.updateQuery = function(e, t) {
|
|
1301
|
+
return globalThis.__DEV__ !== !1 && j(e, "canonizeResults", "cache.updateQuery"), this.batch({ update: function(n) {
|
|
1302
|
+
var r = T("canonizeResults", function() {
|
|
1303
|
+
return n.readQuery(e);
|
|
1304
|
+
}), i = t(r);
|
|
1305
|
+
return i == null ? r : (n.writeQuery(F(F({}, e), { data: i })), i);
|
|
1306
1306
|
} });
|
|
1307
|
-
},
|
|
1308
|
-
return globalThis.__DEV__ !== !1 && e
|
|
1309
|
-
var r =
|
|
1310
|
-
return
|
|
1311
|
-
}), i =
|
|
1312
|
-
return i == null ? r : (
|
|
1307
|
+
}, e.prototype.updateFragment = function(e, t) {
|
|
1308
|
+
return globalThis.__DEV__ !== !1 && j(e, "canonizeResults", "cache.updateFragment"), this.batch({ update: function(n) {
|
|
1309
|
+
var r = T("canonizeResults", function() {
|
|
1310
|
+
return n.readFragment(e);
|
|
1311
|
+
}), i = t(r);
|
|
1312
|
+
return i == null ? r : (n.writeFragment(F(F({}, e), { data: i })), i);
|
|
1313
1313
|
} });
|
|
1314
|
-
},
|
|
1314
|
+
}, e;
|
|
1315
1315
|
}();
|
|
1316
|
-
globalThis.__DEV__ !== !1 && (
|
|
1316
|
+
globalThis.__DEV__ !== !1 && (En.prototype.getMemoryInternals = x);
|
|
1317
1317
|
//#endregion
|
|
1318
1318
|
//#region node_modules/@apollo/client/cache/core/types/common.js
|
|
1319
|
-
var
|
|
1320
|
-
|
|
1319
|
+
var Dn = function(e) {
|
|
1320
|
+
A(t, e);
|
|
1321
1321
|
function t(n, r, i, a) {
|
|
1322
1322
|
var o, s = e.call(this, n) || this;
|
|
1323
1323
|
if (s.message = n, s.path = r, s.query = i, s.variables = a, Array.isArray(s.path)) {
|
|
@@ -1327,54 +1327,54 @@ var En = function(e) {
|
|
|
1327
1327
|
return s.__proto__ = t.prototype, s;
|
|
1328
1328
|
}
|
|
1329
1329
|
return t;
|
|
1330
|
-
}(Error),
|
|
1331
|
-
function
|
|
1330
|
+
}(Error), X = Object.prototype.hasOwnProperty;
|
|
1331
|
+
function On(e) {
|
|
1332
1332
|
return e == null;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function kn(e, t) {
|
|
1335
1335
|
var n = e.__typename, r = e.id, i = e._id;
|
|
1336
|
-
if (typeof n == "string" && (t && (t.keyObject =
|
|
1336
|
+
if (typeof n == "string" && (t && (t.keyObject = On(r) ? On(i) ? void 0 : { _id: i } : { id: r }), On(r) && !On(i) && (r = i), !On(r))) return `${n}:${typeof r == "number" || typeof r == "string" ? r : JSON.stringify(r)}`;
|
|
1337
1337
|
}
|
|
1338
|
-
var
|
|
1339
|
-
dataIdFromObject:
|
|
1338
|
+
var An = {
|
|
1339
|
+
dataIdFromObject: kn,
|
|
1340
1340
|
addTypename: !0,
|
|
1341
1341
|
resultCaching: !0,
|
|
1342
1342
|
canonizeResults: !1
|
|
1343
1343
|
};
|
|
1344
|
-
function An(e) {
|
|
1345
|
-
return Pe(kn, e);
|
|
1346
|
-
}
|
|
1347
1344
|
function jn(e) {
|
|
1345
|
+
return De(An, e);
|
|
1346
|
+
}
|
|
1347
|
+
function Mn(e) {
|
|
1348
1348
|
var t = e.canonizeResults;
|
|
1349
|
-
return t === void 0 ?
|
|
1349
|
+
return t === void 0 ? An.canonizeResults : t;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1351
|
+
function Nn(e, t) {
|
|
1352
|
+
return s(t) ? e.get(t.__ref, "__typename") : t && t.__typename;
|
|
1353
1353
|
}
|
|
1354
|
-
var
|
|
1355
|
-
function
|
|
1356
|
-
var t = e.match(
|
|
1354
|
+
var Pn = /^[_a-z][_0-9a-z]*/i;
|
|
1355
|
+
function Z(e) {
|
|
1356
|
+
var t = e.match(Pn);
|
|
1357
1357
|
return t ? t[0] : e;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1361
|
-
return
|
|
1359
|
+
function Fn(e, t, n) {
|
|
1360
|
+
return D(t) ? k(t) ? t.every(function(t) {
|
|
1361
|
+
return Fn(e, t, n);
|
|
1362
1362
|
}) : e.selections.every(function(e) {
|
|
1363
|
-
if (
|
|
1364
|
-
var r =
|
|
1365
|
-
return
|
|
1363
|
+
if (re(e) && de(e, n)) {
|
|
1364
|
+
var r = P(e);
|
|
1365
|
+
return X.call(t, r) && (!e.selectionSet || Fn(e.selectionSet, t[r], n));
|
|
1366
1366
|
}
|
|
1367
1367
|
return !0;
|
|
1368
1368
|
}) : !1;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1370
|
+
function In(e) {
|
|
1371
|
+
return D(e) && !s(e) && !k(e);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return new
|
|
1373
|
+
function Ln() {
|
|
1374
|
+
return new J();
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1377
|
-
var n =
|
|
1376
|
+
function Rn(e, t) {
|
|
1377
|
+
var n = He(xe(e));
|
|
1378
1378
|
return {
|
|
1379
1379
|
fragmentMap: n,
|
|
1380
1380
|
lookupFragment: function(e) {
|
|
@@ -1385,56 +1385,56 @@ function Ln(e, t) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
//#endregion
|
|
1387
1387
|
//#region node_modules/@apollo/client/cache/inmemory/entityStore.js
|
|
1388
|
-
var
|
|
1389
|
-
return
|
|
1390
|
-
},
|
|
1388
|
+
var zn = Object.create(null), Bn = function() {
|
|
1389
|
+
return zn;
|
|
1390
|
+
}, Vn = Object.create(null), Hn = function() {
|
|
1391
1391
|
function e(e, t) {
|
|
1392
1392
|
var n = this;
|
|
1393
1393
|
this.policies = e, this.group = t, this.data = Object.create(null), this.rootIds = Object.create(null), this.refs = Object.create(null), this.getFieldValue = function(e, t) {
|
|
1394
|
-
return
|
|
1394
|
+
return me(s(e) ? n.get(e.__ref, t) : e && e[t]);
|
|
1395
1395
|
}, this.canRead = function(e) {
|
|
1396
|
-
return
|
|
1396
|
+
return s(e) ? n.has(e.__ref) : typeof e == "object";
|
|
1397
1397
|
}, this.toReference = function(e, t) {
|
|
1398
|
-
if (typeof e == "string") return
|
|
1399
|
-
if (
|
|
1398
|
+
if (typeof e == "string") return C(e);
|
|
1399
|
+
if (s(e)) return e;
|
|
1400
1400
|
var r = n.policies.identify(e)[0];
|
|
1401
1401
|
if (r) {
|
|
1402
|
-
var i =
|
|
1402
|
+
var i = C(r);
|
|
1403
1403
|
return t && n.merge(r, e), i;
|
|
1404
1404
|
}
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
1407
|
return e.prototype.toObject = function() {
|
|
1408
|
-
return
|
|
1408
|
+
return F({}, this.data);
|
|
1409
1409
|
}, e.prototype.has = function(e) {
|
|
1410
1410
|
return this.lookup(e, !0) !== void 0;
|
|
1411
1411
|
}, e.prototype.get = function(e, t) {
|
|
1412
|
-
if (this.group.depend(e, t),
|
|
1412
|
+
if (this.group.depend(e, t), X.call(this.data, e)) {
|
|
1413
1413
|
var n = this.data[e];
|
|
1414
|
-
if (n &&
|
|
1414
|
+
if (n && X.call(n, t)) return n[t];
|
|
1415
1415
|
}
|
|
1416
|
-
if (t === "__typename" &&
|
|
1417
|
-
if (this instanceof
|
|
1416
|
+
if (t === "__typename" && X.call(this.policies.rootTypenamesById, e)) return this.policies.rootTypenamesById[e];
|
|
1417
|
+
if (this instanceof Q) return this.parent.get(e, t);
|
|
1418
1418
|
}, e.prototype.lookup = function(e, t) {
|
|
1419
|
-
if (t && this.group.depend(e, "__exists"),
|
|
1420
|
-
if (this instanceof
|
|
1419
|
+
if (t && this.group.depend(e, "__exists"), X.call(this.data, e)) return this.data[e];
|
|
1420
|
+
if (this instanceof Q) return this.parent.lookup(e, t);
|
|
1421
1421
|
if (this.policies.rootTypenamesById[e]) return Object.create(null);
|
|
1422
1422
|
}, e.prototype.merge = function(e, t) {
|
|
1423
1423
|
var n = this, r;
|
|
1424
|
-
|
|
1424
|
+
s(e) && (e = e.__ref), s(t) && (t = t.__ref);
|
|
1425
1425
|
var i = typeof e == "string" ? this.lookup(r = e) : e, a = typeof t == "string" ? this.lookup(r = t) : t;
|
|
1426
1426
|
if (a) {
|
|
1427
1427
|
R(typeof r == "string", 2);
|
|
1428
|
-
var o = new
|
|
1428
|
+
var o = new J(qn).merge(i, a);
|
|
1429
1429
|
if (this.data[r] = o, o !== i && (delete this.refs[r], this.group.caching)) {
|
|
1430
|
-
var
|
|
1431
|
-
i || (
|
|
1430
|
+
var c = Object.create(null);
|
|
1431
|
+
i || (c.__exists = 1), Object.keys(a).forEach(function(e) {
|
|
1432
1432
|
if (!i || i[e] !== o[e]) {
|
|
1433
|
-
|
|
1434
|
-
var t =
|
|
1435
|
-
t !== e && !n.policies.hasKeyArgs(o.__typename, t) && (
|
|
1433
|
+
c[e] = 1;
|
|
1434
|
+
var t = Z(e);
|
|
1435
|
+
t !== e && !n.policies.hasKeyArgs(o.__typename, t) && (c[t] = 1), o[e] === void 0 && !(n instanceof Q) && delete o[e];
|
|
1436
1436
|
}
|
|
1437
|
-
}),
|
|
1437
|
+
}), c.__typename && !(i && i.__typename) && this.policies.rootTypenamesById[r] === o.__typename && delete c.__typename, Object.keys(c).forEach(function(e) {
|
|
1438
1438
|
return n.group.dirty(r, e);
|
|
1439
1439
|
});
|
|
1440
1440
|
}
|
|
@@ -1442,38 +1442,38 @@ var Rn = Object.create(null), zn = function() {
|
|
|
1442
1442
|
}, e.prototype.modify = function(e, t) {
|
|
1443
1443
|
var n = this, r = this.lookup(e);
|
|
1444
1444
|
if (r) {
|
|
1445
|
-
var i = Object.create(null), a = !1, o = !0,
|
|
1446
|
-
DELETE:
|
|
1447
|
-
INVALIDATE:
|
|
1448
|
-
isReference:
|
|
1445
|
+
var i = Object.create(null), a = !1, o = !0, c = {
|
|
1446
|
+
DELETE: zn,
|
|
1447
|
+
INVALIDATE: Vn,
|
|
1448
|
+
isReference: s,
|
|
1449
1449
|
toReference: this.toReference,
|
|
1450
1450
|
canRead: this.canRead,
|
|
1451
1451
|
readField: function(t, r) {
|
|
1452
1452
|
return n.policies.readField(typeof t == "string" ? {
|
|
1453
1453
|
fieldName: t,
|
|
1454
|
-
from: r ||
|
|
1454
|
+
from: r || C(e)
|
|
1455
1455
|
} : t, { store: n });
|
|
1456
1456
|
}
|
|
1457
1457
|
};
|
|
1458
|
-
if (Object.keys(r).forEach(function(
|
|
1459
|
-
var u =
|
|
1458
|
+
if (Object.keys(r).forEach(function(l) {
|
|
1459
|
+
var u = Z(l), d = r[l];
|
|
1460
1460
|
if (d !== void 0) {
|
|
1461
|
-
var f = typeof t == "function" ? t : t[
|
|
1461
|
+
var f = typeof t == "function" ? t : t[l] || t[u];
|
|
1462
1462
|
if (f) {
|
|
1463
|
-
var p = f ===
|
|
1463
|
+
var p = f === Bn ? zn : f(me(d), F(F({}, c), {
|
|
1464
1464
|
fieldName: u,
|
|
1465
|
-
storeFieldName:
|
|
1466
|
-
storage: n.getStorage(e,
|
|
1465
|
+
storeFieldName: l,
|
|
1466
|
+
storage: n.getStorage(e, l)
|
|
1467
1467
|
}));
|
|
1468
|
-
if (p ===
|
|
1469
|
-
else if (p ===
|
|
1468
|
+
if (p === Vn) n.group.dirty(e, l);
|
|
1469
|
+
else if (p === zn && (p = void 0), p !== d && (i[l] = p, a = !0, d = p, globalThis.__DEV__ !== !1)) {
|
|
1470
1470
|
var m = function(e) {
|
|
1471
1471
|
if (n.lookup(e.__ref) === void 0) return globalThis.__DEV__ !== !1 && R.warn(3, e), !0;
|
|
1472
1472
|
};
|
|
1473
|
-
if (
|
|
1473
|
+
if (s(p)) m(p);
|
|
1474
1474
|
else if (Array.isArray(p)) for (var h = !1, g = void 0, _ = 0, v = p; _ < v.length; _++) {
|
|
1475
1475
|
var y = v[_];
|
|
1476
|
-
if (
|
|
1476
|
+
if (s(y)) {
|
|
1477
1477
|
if (h = !0, m(y)) break;
|
|
1478
1478
|
} else typeof y == "object" && y && n.policies.identify(y)[0] && (g = y);
|
|
1479
1479
|
if (h && g !== void 0) {
|
|
@@ -1485,7 +1485,7 @@ var Rn = Object.create(null), zn = function() {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
d !== void 0 && (o = !1);
|
|
1487
1487
|
}
|
|
1488
|
-
}), a) return this.merge(e, i), o && (this instanceof
|
|
1488
|
+
}), a) return this.merge(e, i), o && (this instanceof Q ? this.data[e] = void 0 : delete this.data[e], this.group.dirty(e, "__exists")), !0;
|
|
1489
1489
|
}
|
|
1490
1490
|
return !1;
|
|
1491
1491
|
}, e.prototype.delete = function(e, t, n) {
|
|
@@ -1496,25 +1496,25 @@ var Rn = Object.create(null), zn = function() {
|
|
|
1496
1496
|
fieldName: t,
|
|
1497
1497
|
args: n
|
|
1498
1498
|
}) : t;
|
|
1499
|
-
return this.modify(e, o ? (r = {}, r[o] =
|
|
1499
|
+
return this.modify(e, o ? (r = {}, r[o] = Bn, r) : Bn);
|
|
1500
1500
|
}
|
|
1501
1501
|
return !1;
|
|
1502
1502
|
}, e.prototype.evict = function(e, t) {
|
|
1503
1503
|
var n = !1;
|
|
1504
|
-
return e.id && (
|
|
1504
|
+
return e.id && (X.call(this.data, e.id) && (n = this.delete(e.id, e.fieldName, e.args)), this instanceof Q && this !== t && (n = this.parent.evict(e, t) || n), (e.fieldName || n) && this.group.dirty(e.id, e.fieldName || "__exists")), n;
|
|
1505
1505
|
}, e.prototype.clear = function() {
|
|
1506
1506
|
this.replace(null);
|
|
1507
1507
|
}, e.prototype.extract = function() {
|
|
1508
1508
|
var e = this, t = this.toObject(), n = [];
|
|
1509
1509
|
return this.getRootIdSet().forEach(function(t) {
|
|
1510
|
-
|
|
1510
|
+
X.call(e.policies.rootTypenamesById, t) || n.push(t);
|
|
1511
1511
|
}), n.length && (t.__META = { extraRootIds: n.sort() }), t;
|
|
1512
1512
|
}, e.prototype.replace = function(e) {
|
|
1513
1513
|
var t = this;
|
|
1514
1514
|
if (Object.keys(this.data).forEach(function(n) {
|
|
1515
|
-
e &&
|
|
1515
|
+
e && X.call(e, n) || t.delete(n);
|
|
1516
1516
|
}), e) {
|
|
1517
|
-
var n = e.__META, r =
|
|
1517
|
+
var n = e.__META, r = L(e, ["__META"]);
|
|
1518
1518
|
Object.keys(r).forEach(function(e) {
|
|
1519
1519
|
t.merge(e, r[e]);
|
|
1520
1520
|
}), n && n.extraRootIds.forEach(this.retain, this);
|
|
@@ -1528,29 +1528,29 @@ var Rn = Object.create(null), zn = function() {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
return 0;
|
|
1530
1530
|
}, e.prototype.getRootIdSet = function(e) {
|
|
1531
|
-
return e === void 0 && (e = /* @__PURE__ */ new Set()), Object.keys(this.rootIds).forEach(e.add, e), this instanceof
|
|
1531
|
+
return e === void 0 && (e = /* @__PURE__ */ new Set()), Object.keys(this.rootIds).forEach(e.add, e), this instanceof Q ? this.parent.getRootIdSet(e) : Object.keys(this.policies.rootTypenamesById).forEach(e.add, e), e;
|
|
1532
1532
|
}, e.prototype.gc = function() {
|
|
1533
1533
|
var e = this, t = this.getRootIdSet(), n = this.toObject();
|
|
1534
1534
|
t.forEach(function(r) {
|
|
1535
|
-
|
|
1535
|
+
X.call(n, r) && (Object.keys(e.findChildRefIds(r)).forEach(t.add, t), delete n[r]);
|
|
1536
1536
|
});
|
|
1537
1537
|
var r = Object.keys(n);
|
|
1538
1538
|
if (r.length) {
|
|
1539
|
-
for (var i = this; i instanceof
|
|
1539
|
+
for (var i = this; i instanceof Q;) i = i.parent;
|
|
1540
1540
|
r.forEach(function(e) {
|
|
1541
1541
|
return i.delete(e);
|
|
1542
1542
|
});
|
|
1543
1543
|
}
|
|
1544
1544
|
return r;
|
|
1545
1545
|
}, e.prototype.findChildRefIds = function(e) {
|
|
1546
|
-
if (!
|
|
1546
|
+
if (!X.call(this.refs, e)) {
|
|
1547
1547
|
var t = this.refs[e] = Object.create(null), n = this.data[e];
|
|
1548
1548
|
if (!n) return t;
|
|
1549
1549
|
var r = new Set([n]);
|
|
1550
1550
|
r.forEach(function(e) {
|
|
1551
|
-
|
|
1551
|
+
s(e) && (t[e.__ref] = !0), D(e) && Object.keys(e).forEach(function(t) {
|
|
1552
1552
|
var n = e[t];
|
|
1553
|
-
|
|
1553
|
+
D(n) && r.add(n);
|
|
1554
1554
|
});
|
|
1555
1555
|
});
|
|
1556
1556
|
}
|
|
@@ -1558,34 +1558,34 @@ var Rn = Object.create(null), zn = function() {
|
|
|
1558
1558
|
}, e.prototype.makeCacheKey = function() {
|
|
1559
1559
|
return this.group.keyMaker.lookupArray(arguments);
|
|
1560
1560
|
}, e;
|
|
1561
|
-
}(),
|
|
1561
|
+
}(), Un = function() {
|
|
1562
1562
|
function e(e, t) {
|
|
1563
1563
|
t === void 0 && (t = null), this.caching = e, this.parent = t, this.d = null, this.resetCaching();
|
|
1564
1564
|
}
|
|
1565
1565
|
return e.prototype.resetCaching = function() {
|
|
1566
|
-
this.d = this.caching ?
|
|
1566
|
+
this.d = this.caching ? _e() : null, this.keyMaker = new Me(f);
|
|
1567
1567
|
}, e.prototype.depend = function(e, t) {
|
|
1568
1568
|
if (this.d) {
|
|
1569
|
-
this.d(
|
|
1570
|
-
var n =
|
|
1571
|
-
n !== t && this.d(
|
|
1569
|
+
this.d(Wn(e, t));
|
|
1570
|
+
var n = Z(t);
|
|
1571
|
+
n !== t && this.d(Wn(e, n)), this.parent && this.parent.depend(e, t);
|
|
1572
1572
|
}
|
|
1573
1573
|
}, e.prototype.dirty = function(e, t) {
|
|
1574
|
-
this.d && this.d.dirty(
|
|
1574
|
+
this.d && this.d.dirty(Wn(e, t), t === "__exists" ? "forget" : "setDirty");
|
|
1575
1575
|
}, e;
|
|
1576
1576
|
}();
|
|
1577
|
-
function
|
|
1577
|
+
function Wn(e, t) {
|
|
1578
1578
|
return t + "#" + e;
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1581
|
-
|
|
1580
|
+
function Gn(e, t) {
|
|
1581
|
+
Jn(e) && e.group.depend(t, "__exists");
|
|
1582
1582
|
}
|
|
1583
1583
|
(function(e) {
|
|
1584
1584
|
e.Root = function(e) {
|
|
1585
|
-
|
|
1585
|
+
A(t, e);
|
|
1586
1586
|
function t(t) {
|
|
1587
|
-
var n = t.policies, r = t.resultCaching, i = r === void 0 ? !0 : r, a = t.seed, o = e.call(this, n, new
|
|
1588
|
-
return o.stump = new
|
|
1587
|
+
var n = t.policies, r = t.resultCaching, i = r === void 0 ? !0 : r, a = t.seed, o = e.call(this, n, new Un(i)) || this;
|
|
1588
|
+
return o.stump = new Kn(o), o.storageTrie = new Me(f), a && o.replace(a), o;
|
|
1589
1589
|
}
|
|
1590
1590
|
return t.prototype.addLayer = function(e, t) {
|
|
1591
1591
|
return this.stump.addLayer(e, t);
|
|
@@ -1595,9 +1595,9 @@ function Wn(e, t) {
|
|
|
1595
1595
|
return this.storageTrie.lookupArray(arguments);
|
|
1596
1596
|
}, t;
|
|
1597
1597
|
}(e);
|
|
1598
|
-
})(
|
|
1599
|
-
var
|
|
1600
|
-
|
|
1598
|
+
})(Hn || (Hn = {}));
|
|
1599
|
+
var Q = function(e) {
|
|
1600
|
+
A(t, e);
|
|
1601
1601
|
function t(t, n, r, i) {
|
|
1602
1602
|
var a = e.call(this, n.policies, i) || this;
|
|
1603
1603
|
return a.id = t, a.parent = n, a.replay = r, a.group = i, r(a), a;
|
|
@@ -1609,58 +1609,58 @@ var $ = function(e) {
|
|
|
1609
1609
|
return e === this.id ? (this.group.caching && Object.keys(this.data).forEach(function(e) {
|
|
1610
1610
|
var r = t.data[e], i = n.lookup(e);
|
|
1611
1611
|
i ? r ? r !== i && Object.keys(r).forEach(function(n) {
|
|
1612
|
-
|
|
1612
|
+
O(r[n], i[n]) || t.group.dirty(e, n);
|
|
1613
1613
|
}) : (t.group.dirty(e, "__exists"), Object.keys(i).forEach(function(n) {
|
|
1614
1614
|
t.group.dirty(e, n);
|
|
1615
1615
|
})) : t.delete(e);
|
|
1616
1616
|
}), n) : n === this.parent ? this : n.addLayer(this.id, this.replay);
|
|
1617
1617
|
}, t.prototype.toObject = function() {
|
|
1618
|
-
return
|
|
1618
|
+
return F(F({}, this.parent.toObject()), this.data);
|
|
1619
1619
|
}, t.prototype.findChildRefIds = function(t) {
|
|
1620
1620
|
var n = this.parent.findChildRefIds(t);
|
|
1621
|
-
return
|
|
1621
|
+
return X.call(this.data, t) ? F(F({}, n), e.prototype.findChildRefIds.call(this, t)) : n;
|
|
1622
1622
|
}, t.prototype.getStorage = function() {
|
|
1623
1623
|
for (var e = this.parent; e.parent;) e = e.parent;
|
|
1624
1624
|
return e.getStorage.apply(e, arguments);
|
|
1625
1625
|
}, t;
|
|
1626
|
-
}(
|
|
1627
|
-
|
|
1626
|
+
}(Hn), Kn = function(e) {
|
|
1627
|
+
A(t, e);
|
|
1628
1628
|
function t(t) {
|
|
1629
|
-
return e.call(this, "EntityStore.Stump", t, function() {}, new
|
|
1629
|
+
return e.call(this, "EntityStore.Stump", t, function() {}, new Un(t.group.caching, t.group)) || this;
|
|
1630
1630
|
}
|
|
1631
1631
|
return t.prototype.removeLayer = function() {
|
|
1632
1632
|
return this;
|
|
1633
1633
|
}, t.prototype.merge = function(e, t) {
|
|
1634
1634
|
return this.parent.merge(e, t);
|
|
1635
1635
|
}, t;
|
|
1636
|
-
}(
|
|
1637
|
-
function
|
|
1636
|
+
}(Q);
|
|
1637
|
+
function qn(e, t, n) {
|
|
1638
1638
|
var r = e[n], i = t[n];
|
|
1639
|
-
return
|
|
1639
|
+
return O(r, i) ? r : i;
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1642
|
-
return !!(e instanceof
|
|
1641
|
+
function Jn(e) {
|
|
1642
|
+
return !!(e instanceof Hn && e.group.caching);
|
|
1643
1643
|
}
|
|
1644
1644
|
//#endregion
|
|
1645
1645
|
//#region node_modules/@apollo/client/cache/inmemory/object-canon.js
|
|
1646
|
-
function
|
|
1647
|
-
return
|
|
1646
|
+
function Yn(e) {
|
|
1647
|
+
return D(e) ? k(e) ? e.slice(0) : F({ __proto__: Object.getPrototypeOf(e) }, e) : e;
|
|
1648
1648
|
}
|
|
1649
|
-
var
|
|
1649
|
+
var Xn = function() {
|
|
1650
1650
|
function e() {
|
|
1651
|
-
this.known = new (
|
|
1651
|
+
this.known = new (y ? WeakSet : Set)(), this.pool = new Me(f), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
|
|
1652
1652
|
}
|
|
1653
1653
|
return e.prototype.isKnown = function(e) {
|
|
1654
|
-
return
|
|
1654
|
+
return D(e) && this.known.has(e);
|
|
1655
1655
|
}, e.prototype.pass = function(e) {
|
|
1656
|
-
if (
|
|
1657
|
-
var t =
|
|
1656
|
+
if (D(e)) {
|
|
1657
|
+
var t = Yn(e);
|
|
1658
1658
|
return this.passes.set(t, e), t;
|
|
1659
1659
|
}
|
|
1660
1660
|
return e;
|
|
1661
1661
|
}, e.prototype.admit = function(e) {
|
|
1662
1662
|
var t = this;
|
|
1663
|
-
if (
|
|
1663
|
+
if (D(e)) {
|
|
1664
1664
|
var n = this.passes.get(e);
|
|
1665
1665
|
if (n) return n;
|
|
1666
1666
|
switch (Object.getPrototypeOf(e)) {
|
|
@@ -1703,7 +1703,7 @@ var Yn = function() {
|
|
|
1703
1703
|
}();
|
|
1704
1704
|
//#endregion
|
|
1705
1705
|
//#region node_modules/@apollo/client/cache/inmemory/readFromStore.js
|
|
1706
|
-
function
|
|
1706
|
+
function Zn(e) {
|
|
1707
1707
|
return [
|
|
1708
1708
|
e.selectionSet,
|
|
1709
1709
|
e.objectOrReference,
|
|
@@ -1711,115 +1711,115 @@ function Xn(e) {
|
|
|
1711
1711
|
e.context.canonizeResults
|
|
1712
1712
|
];
|
|
1713
1713
|
}
|
|
1714
|
-
var
|
|
1714
|
+
var Qn = function() {
|
|
1715
1715
|
function e(e) {
|
|
1716
1716
|
var t = this;
|
|
1717
|
-
this.knownResults = new (
|
|
1717
|
+
this.knownResults = new (f ? WeakMap : Map)(), this.config = De(e, {
|
|
1718
1718
|
addTypename: e.addTypename !== !1,
|
|
1719
|
-
canonizeResults:
|
|
1720
|
-
}), this.canon = e.canon || new
|
|
1721
|
-
var n, r = e.context.canonizeResults, i =
|
|
1719
|
+
canonizeResults: Mn(e)
|
|
1720
|
+
}), this.canon = e.canon || new Xn(), this.executeSelectionSet = Ie(function(e) {
|
|
1721
|
+
var n, r = e.context.canonizeResults, i = Zn(e);
|
|
1722
1722
|
i[3] = !r;
|
|
1723
1723
|
var a = (n = t.executeSelectionSet).peek.apply(n, i);
|
|
1724
|
-
return a ? r ?
|
|
1724
|
+
return a ? r ? F(F({}, a), { result: t.canon.admit(a.result) }) : a : (Gn(e.context.store, e.enclosingRef.__ref), t.execSelectionSetImpl(e));
|
|
1725
1725
|
}, {
|
|
1726
|
-
max: this.config.resultCacheMaxSize ||
|
|
1727
|
-
keyArgs:
|
|
1726
|
+
max: this.config.resultCacheMaxSize || h["inMemoryCache.executeSelectionSet"] || 5e4,
|
|
1727
|
+
keyArgs: Zn,
|
|
1728
1728
|
makeCacheKey: function(e, t, n, r) {
|
|
1729
|
-
if (
|
|
1729
|
+
if (Jn(n.store)) return n.store.makeCacheKey(e, s(t) ? t.__ref : t, n.varString, r);
|
|
1730
1730
|
}
|
|
1731
|
-
}), this.executeSubSelectedArray =
|
|
1732
|
-
return
|
|
1731
|
+
}), this.executeSubSelectedArray = Ie(function(e) {
|
|
1732
|
+
return Gn(e.context.store, e.enclosingRef.__ref), t.execSubSelectedArrayImpl(e);
|
|
1733
1733
|
}, {
|
|
1734
|
-
max: this.config.resultCacheMaxSize ||
|
|
1734
|
+
max: this.config.resultCacheMaxSize || h["inMemoryCache.executeSubSelectedArray"] || 1e4,
|
|
1735
1735
|
makeCacheKey: function(e) {
|
|
1736
1736
|
var t = e.field, n = e.array, r = e.context;
|
|
1737
|
-
if (
|
|
1737
|
+
if (Jn(r.store)) return r.store.makeCacheKey(t, n, r.varString);
|
|
1738
1738
|
}
|
|
1739
1739
|
});
|
|
1740
1740
|
}
|
|
1741
1741
|
return e.prototype.resetCanon = function() {
|
|
1742
|
-
this.canon = new
|
|
1742
|
+
this.canon = new Xn();
|
|
1743
1743
|
}, e.prototype.diffQueryAgainstStore = function(e) {
|
|
1744
|
-
var t = e.store,
|
|
1745
|
-
|
|
1746
|
-
var
|
|
1747
|
-
selectionSet:
|
|
1748
|
-
objectOrReference:
|
|
1749
|
-
enclosingRef:
|
|
1750
|
-
context:
|
|
1744
|
+
var t = e.store, n = e.query, r = e.rootId, i = r === void 0 ? "ROOT_QUERY" : r, a = e.variables, o = e.returnPartialData, s = o === void 0 ? !0 : o, c = e.canonizeResults, l = c === void 0 ? this.config.canonizeResults : c, u = this.config.cache.policies;
|
|
1745
|
+
a = F(F({}, Ee(he(n))), a);
|
|
1746
|
+
var d = C(i), f = this.executeSelectionSet({
|
|
1747
|
+
selectionSet: fe(n).selectionSet,
|
|
1748
|
+
objectOrReference: d,
|
|
1749
|
+
enclosingRef: d,
|
|
1750
|
+
context: F({
|
|
1751
1751
|
store: t,
|
|
1752
|
-
query:
|
|
1753
|
-
policies:
|
|
1754
|
-
variables:
|
|
1755
|
-
varString:
|
|
1756
|
-
canonizeResults:
|
|
1757
|
-
},
|
|
1758
|
-
}),
|
|
1759
|
-
if (
|
|
1752
|
+
query: n,
|
|
1753
|
+
policies: u,
|
|
1754
|
+
variables: a,
|
|
1755
|
+
varString: we(a),
|
|
1756
|
+
canonizeResults: l
|
|
1757
|
+
}, Rn(n, this.config.fragments))
|
|
1758
|
+
}), p;
|
|
1759
|
+
if (f.missing && (p = [new Dn($n(f.missing), f.missing, n, a)], !s)) throw p[0];
|
|
1760
1760
|
return {
|
|
1761
|
-
result:
|
|
1762
|
-
complete: !
|
|
1763
|
-
missing:
|
|
1761
|
+
result: f.result,
|
|
1762
|
+
complete: !p,
|
|
1763
|
+
missing: p
|
|
1764
1764
|
};
|
|
1765
1765
|
}, e.prototype.isFresh = function(e, t, n, r) {
|
|
1766
|
-
if (
|
|
1766
|
+
if (Jn(r.store) && this.knownResults.get(e) === n) {
|
|
1767
1767
|
var i = this.executeSelectionSet.peek(n, t, r, this.canon.isKnown(e));
|
|
1768
1768
|
if (i && e === i.result) return !0;
|
|
1769
1769
|
}
|
|
1770
1770
|
return !1;
|
|
1771
1771
|
}, e.prototype.execSelectionSetImpl = function(e) {
|
|
1772
|
-
var t = this, n = e.selectionSet, r = e.objectOrReference, i = e.enclosingRef,
|
|
1773
|
-
if (
|
|
1772
|
+
var t = this, n = e.selectionSet, r = e.objectOrReference, i = e.enclosingRef, o = e.context;
|
|
1773
|
+
if (s(r) && !o.policies.rootTypenamesById[r.__ref] && !o.store.has(r.__ref)) return {
|
|
1774
1774
|
result: this.canon.empty,
|
|
1775
1775
|
missing: `Dangling reference to missing ${r.__ref} object`
|
|
1776
1776
|
};
|
|
1777
|
-
var
|
|
1778
|
-
this.config.addTypename && typeof
|
|
1779
|
-
function
|
|
1777
|
+
var c = o.variables, l = o.policies, u = o.store.getFieldValue(r, "__typename"), d = [], f, p = new J();
|
|
1778
|
+
this.config.addTypename && typeof u == "string" && !l.rootIdsByTypename[u] && d.push({ __typename: u });
|
|
1779
|
+
function m(e, t) {
|
|
1780
1780
|
var n;
|
|
1781
|
-
return e.missing && (
|
|
1781
|
+
return e.missing && (f = p.merge(f, (n = {}, n[t] = e.missing, n))), e.result;
|
|
1782
1782
|
}
|
|
1783
|
-
var
|
|
1784
|
-
|
|
1785
|
-
var n,
|
|
1786
|
-
if (
|
|
1787
|
-
var
|
|
1783
|
+
var h = new Set(n.selections);
|
|
1784
|
+
h.forEach(function(e) {
|
|
1785
|
+
var n, g;
|
|
1786
|
+
if (de(e, c)) if (re(e)) {
|
|
1787
|
+
var _ = l.readField({
|
|
1788
1788
|
fieldName: e.name.value,
|
|
1789
1789
|
field: e,
|
|
1790
|
-
variables:
|
|
1790
|
+
variables: o.variables,
|
|
1791
1791
|
from: r
|
|
1792
|
-
},
|
|
1793
|
-
|
|
1792
|
+
}, o), v = P(e);
|
|
1793
|
+
_ === void 0 ? dt.added(e) || (f = p.merge(f, (n = {}, n[v] = `Can't find field '${e.name.value}' on ${s(r) ? r.__ref + " object" : "object " + JSON.stringify(r, null, 2)}`, n))) : k(_) ? _.length > 0 && (_ = m(t.executeSubSelectedArray({
|
|
1794
1794
|
field: e,
|
|
1795
|
-
array:
|
|
1795
|
+
array: _,
|
|
1796
1796
|
enclosingRef: i,
|
|
1797
|
-
context:
|
|
1798
|
-
}),
|
|
1797
|
+
context: o
|
|
1798
|
+
}), v)) : e.selectionSet ? _ != null && (_ = m(t.executeSelectionSet({
|
|
1799
1799
|
selectionSet: e.selectionSet,
|
|
1800
|
-
objectOrReference:
|
|
1801
|
-
enclosingRef:
|
|
1802
|
-
context:
|
|
1803
|
-
}),
|
|
1800
|
+
objectOrReference: _,
|
|
1801
|
+
enclosingRef: s(_) ? _ : i,
|
|
1802
|
+
context: o
|
|
1803
|
+
}), v)) : o.canonizeResults && (_ = t.canon.pass(_)), _ !== void 0 && d.push((g = {}, g[v] = _, g));
|
|
1804
1804
|
} else {
|
|
1805
|
-
var
|
|
1806
|
-
if (!
|
|
1807
|
-
|
|
1805
|
+
var y = a(e, o.lookupFragment);
|
|
1806
|
+
if (!y && e.kind === B.FRAGMENT_SPREAD) throw N(10, e.name.value);
|
|
1807
|
+
y && l.fragmentMatches(y, u) && y.selectionSet.selections.forEach(h.add, h);
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
|
-
var
|
|
1811
|
-
result:
|
|
1812
|
-
missing:
|
|
1813
|
-
},
|
|
1814
|
-
return
|
|
1810
|
+
var g = {
|
|
1811
|
+
result: _t(d),
|
|
1812
|
+
missing: f
|
|
1813
|
+
}, _ = o.canonizeResults ? this.canon.admit(g) : me(g);
|
|
1814
|
+
return _.result && this.knownResults.set(_.result, n), _;
|
|
1815
1815
|
}, e.prototype.execSubSelectedArrayImpl = function(e) {
|
|
1816
|
-
var t = this, n = e.field, r = e.array, i = e.enclosingRef, a = e.context, o,
|
|
1816
|
+
var t = this, n = e.field, r = e.array, i = e.enclosingRef, a = e.context, o, c = new J();
|
|
1817
1817
|
function l(e, t) {
|
|
1818
1818
|
var n;
|
|
1819
|
-
return e.missing && (o =
|
|
1819
|
+
return e.missing && (o = c.merge(o, (n = {}, n[t] = e.missing, n))), e.result;
|
|
1820
1820
|
}
|
|
1821
1821
|
return n.selectionSet && (r = r.filter(a.store.canRead)), r = r.map(function(e, r) {
|
|
1822
|
-
return e === null ? null :
|
|
1822
|
+
return e === null ? null : k(e) ? l(t.executeSubSelectedArray({
|
|
1823
1823
|
field: n,
|
|
1824
1824
|
array: e,
|
|
1825
1825
|
enclosingRef: i,
|
|
@@ -1827,16 +1827,16 @@ var Zn = function() {
|
|
|
1827
1827
|
}), r) : n.selectionSet ? l(t.executeSelectionSet({
|
|
1828
1828
|
selectionSet: n.selectionSet,
|
|
1829
1829
|
objectOrReference: e,
|
|
1830
|
-
enclosingRef:
|
|
1830
|
+
enclosingRef: s(e) ? e : i,
|
|
1831
1831
|
context: a
|
|
1832
|
-
}), r) : (globalThis.__DEV__ !== !1 &&
|
|
1832
|
+
}), r) : (globalThis.__DEV__ !== !1 && er(a.store, n, e), e);
|
|
1833
1833
|
}), {
|
|
1834
1834
|
result: a.canonizeResults ? this.canon.admit(r) : r,
|
|
1835
1835
|
missing: o
|
|
1836
1836
|
};
|
|
1837
1837
|
}, e;
|
|
1838
1838
|
}();
|
|
1839
|
-
function
|
|
1839
|
+
function $n(e) {
|
|
1840
1840
|
try {
|
|
1841
1841
|
JSON.stringify(e, function(e, t) {
|
|
1842
1842
|
if (typeof t == "string") throw t;
|
|
@@ -1846,40 +1846,40 @@ function Qn(e) {
|
|
|
1846
1846
|
return e;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function er(e, t, n) {
|
|
1850
1850
|
if (!t.selectionSet) {
|
|
1851
1851
|
var r = new Set([n]);
|
|
1852
1852
|
r.forEach(function(n) {
|
|
1853
|
-
|
|
1853
|
+
D(n) && (R(!s(n), 11, Nn(e, n), t.name.value), Object.values(n).forEach(r.add, r));
|
|
1854
1854
|
});
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
//#endregion
|
|
1858
1858
|
//#region node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
1859
|
-
var
|
|
1860
|
-
function
|
|
1861
|
-
var t =
|
|
1862
|
-
return t ||
|
|
1859
|
+
var tr = new ye(), nr = /* @__PURE__ */ new WeakMap();
|
|
1860
|
+
function rr(e) {
|
|
1861
|
+
var t = nr.get(e);
|
|
1862
|
+
return t || nr.set(e, t = {
|
|
1863
1863
|
vars: /* @__PURE__ */ new Set(),
|
|
1864
|
-
dep:
|
|
1864
|
+
dep: _e()
|
|
1865
1865
|
}), t;
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1868
|
-
|
|
1867
|
+
function ir(e) {
|
|
1868
|
+
rr(e).vars.forEach(function(t) {
|
|
1869
1869
|
return t.forgetCache(e);
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1873
|
-
|
|
1872
|
+
function ar(e) {
|
|
1873
|
+
rr(e).vars.forEach(function(t) {
|
|
1874
1874
|
return t.attachCache(e);
|
|
1875
1875
|
});
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function or(e) {
|
|
1878
1878
|
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = function(a) {
|
|
1879
1879
|
if (arguments.length > 0) {
|
|
1880
1880
|
if (e !== a) {
|
|
1881
1881
|
e = a, t.forEach(function(e) {
|
|
1882
|
-
|
|
1882
|
+
rr(e).dep.dirty(r), sr(e);
|
|
1883
1883
|
});
|
|
1884
1884
|
var o = Array.from(n);
|
|
1885
1885
|
n.clear(), o.forEach(function(t) {
|
|
@@ -1887,8 +1887,8 @@ function ar(e) {
|
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
1889
|
} else {
|
|
1890
|
-
var s =
|
|
1891
|
-
s && (i(s),
|
|
1890
|
+
var s = tr.getValue();
|
|
1891
|
+
s && (i(s), rr(s).dep(r));
|
|
1892
1892
|
}
|
|
1893
1893
|
return e;
|
|
1894
1894
|
};
|
|
@@ -1898,64 +1898,64 @@ function ar(e) {
|
|
|
1898
1898
|
};
|
|
1899
1899
|
};
|
|
1900
1900
|
var i = r.attachCache = function(e) {
|
|
1901
|
-
return t.add(e),
|
|
1901
|
+
return t.add(e), rr(e).vars.add(r), r;
|
|
1902
1902
|
};
|
|
1903
1903
|
return r.forgetCache = function(e) {
|
|
1904
1904
|
return t.delete(e);
|
|
1905
1905
|
}, r;
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function sr(e) {
|
|
1908
1908
|
e.broadcastWatches && e.broadcastWatches();
|
|
1909
1909
|
}
|
|
1910
1910
|
//#endregion
|
|
1911
1911
|
//#region node_modules/@apollo/client/cache/inmemory/key-extractor.js
|
|
1912
|
-
var
|
|
1913
|
-
function
|
|
1912
|
+
var cr = Object.create(null);
|
|
1913
|
+
function lr(e) {
|
|
1914
1914
|
var t = JSON.stringify(e);
|
|
1915
|
-
return
|
|
1915
|
+
return cr[t] || (cr[t] = Object.create(null));
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1918
|
-
var t =
|
|
1917
|
+
function ur(e) {
|
|
1918
|
+
var t = lr(e);
|
|
1919
1919
|
return t.keyFieldsFn || (t.keyFieldsFn = function(t, n) {
|
|
1920
1920
|
var r = function(e, t) {
|
|
1921
1921
|
return n.readField(t, e);
|
|
1922
|
-
}, i = n.keyObject =
|
|
1923
|
-
var i =
|
|
1924
|
-
return i === void 0 && t !== n.storeObject &&
|
|
1922
|
+
}, i = n.keyObject = fr(e, function(e) {
|
|
1923
|
+
var i = hr(n.storeObject, e, r);
|
|
1924
|
+
return i === void 0 && t !== n.storeObject && X.call(t, e[0]) && (i = hr(t, e, mr)), R(i !== void 0, 5, e.join("."), t), i;
|
|
1925
1925
|
});
|
|
1926
1926
|
return `${n.typename}:${JSON.stringify(i)}`;
|
|
1927
1927
|
});
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1930
|
-
var t =
|
|
1929
|
+
function dr(e) {
|
|
1930
|
+
var t = lr(e);
|
|
1931
1931
|
return t.keyArgsFn || (t.keyArgsFn = function(t, n) {
|
|
1932
|
-
var r = n.field, i = n.variables, a = n.fieldName, o =
|
|
1932
|
+
var r = n.field, i = n.variables, a = n.fieldName, o = fr(e, function(e) {
|
|
1933
1933
|
var n = e[0], a = n.charAt(0);
|
|
1934
1934
|
if (a === "@") {
|
|
1935
|
-
if (r &&
|
|
1935
|
+
if (r && I(r.directives)) {
|
|
1936
1936
|
var o = n.slice(1), s = r.directives.find(function(e) {
|
|
1937
1937
|
return e.name.value === o;
|
|
1938
|
-
}), c = s &&
|
|
1939
|
-
return c &&
|
|
1938
|
+
}), c = s && Be(s, i);
|
|
1939
|
+
return c && hr(c, e.slice(1));
|
|
1940
1940
|
}
|
|
1941
1941
|
return;
|
|
1942
1942
|
}
|
|
1943
1943
|
if (a === "$") {
|
|
1944
1944
|
var l = n.slice(1);
|
|
1945
|
-
if (i &&
|
|
1945
|
+
if (i && X.call(i, l)) {
|
|
1946
1946
|
var u = e.slice(0);
|
|
1947
|
-
return u[0] = l,
|
|
1947
|
+
return u[0] = l, hr(i, u);
|
|
1948
1948
|
}
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
1951
|
-
if (t) return
|
|
1951
|
+
if (t) return hr(t, e);
|
|
1952
1952
|
}), s = JSON.stringify(o);
|
|
1953
1953
|
return (t || s !== "{}") && (a += ":" + s), a;
|
|
1954
1954
|
});
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
var n = new
|
|
1958
|
-
return
|
|
1956
|
+
function fr(e, t) {
|
|
1957
|
+
var n = new J();
|
|
1958
|
+
return pr(e).reduce(function(e, r) {
|
|
1959
1959
|
var i, a = t(r);
|
|
1960
1960
|
if (a !== void 0) {
|
|
1961
1961
|
for (var o = r.length - 1; o >= 0; --o) a = (i = {}, i[r[o]] = a, i);
|
|
@@ -1964,67 +1964,67 @@ function dr(e, t) {
|
|
|
1964
1964
|
return e;
|
|
1965
1965
|
}, Object.create(null));
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1968
|
-
var t =
|
|
1967
|
+
function pr(e) {
|
|
1968
|
+
var t = lr(e);
|
|
1969
1969
|
if (!t.paths) {
|
|
1970
1970
|
var n = t.paths = [], r = [];
|
|
1971
1971
|
e.forEach(function(t, i) {
|
|
1972
|
-
|
|
1972
|
+
k(t) ? (pr(t).forEach(function(e) {
|
|
1973
1973
|
return n.push(r.concat(e));
|
|
1974
|
-
}), r.length = 0) : (r.push(t),
|
|
1974
|
+
}), r.length = 0) : (r.push(t), k(e[i + 1]) || (n.push(r.slice(0)), r.length = 0));
|
|
1975
1975
|
});
|
|
1976
1976
|
}
|
|
1977
1977
|
return t.paths;
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function mr(e, t) {
|
|
1980
1980
|
return e[t];
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1983
|
-
return n = n ||
|
|
1984
|
-
return
|
|
1982
|
+
function hr(e, t, n) {
|
|
1983
|
+
return n = n || mr, gr(t.reduce(function e(t, r) {
|
|
1984
|
+
return k(t) ? t.map(function(t) {
|
|
1985
1985
|
return e(t, r);
|
|
1986
1986
|
}) : t && n(t, r);
|
|
1987
1987
|
}, e));
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1990
|
-
return
|
|
1991
|
-
return
|
|
1989
|
+
function gr(e) {
|
|
1990
|
+
return D(e) ? k(e) ? e.map(gr) : fr(Object.keys(e).sort(), function(t) {
|
|
1991
|
+
return hr(e, t);
|
|
1992
1992
|
}) : e;
|
|
1993
1993
|
}
|
|
1994
1994
|
//#endregion
|
|
1995
1995
|
//#region node_modules/@apollo/client/cache/inmemory/policies.js
|
|
1996
|
-
function
|
|
1997
|
-
return e.args === void 0 ? e.field ?
|
|
1996
|
+
function _r(e) {
|
|
1997
|
+
return e.args === void 0 ? e.field ? Be(e.field, e.variables) : null : e.args;
|
|
1998
1998
|
}
|
|
1999
|
-
var
|
|
1999
|
+
var vr = function() {}, yr = function(e, t) {
|
|
2000
2000
|
return t.fieldName;
|
|
2001
|
-
},
|
|
2001
|
+
}, br = function(e, t, n) {
|
|
2002
2002
|
var r = n.mergeObjects;
|
|
2003
2003
|
return r(e, t);
|
|
2004
|
-
},
|
|
2004
|
+
}, xr = function(e, t) {
|
|
2005
2005
|
return t;
|
|
2006
|
-
},
|
|
2006
|
+
}, Sr = function() {
|
|
2007
2007
|
function e(e) {
|
|
2008
|
-
this.config = e, this.typePolicies = Object.create(null), this.toBeAdded = Object.create(null), this.supertypeMap = /* @__PURE__ */ new Map(), this.fuzzySubtypes = /* @__PURE__ */ new Map(), this.rootIdsByTypename = Object.create(null), this.rootTypenamesById = Object.create(null), this.usingPossibleTypes = !1, this.config =
|
|
2008
|
+
this.config = e, this.typePolicies = Object.create(null), this.toBeAdded = Object.create(null), this.supertypeMap = /* @__PURE__ */ new Map(), this.fuzzySubtypes = /* @__PURE__ */ new Map(), this.rootIdsByTypename = Object.create(null), this.rootTypenamesById = Object.create(null), this.usingPossibleTypes = !1, this.config = F({ dataIdFromObject: kn }, e), this.cache = this.config.cache, this.setRootTypename("Query"), this.setRootTypename("Mutation"), this.setRootTypename("Subscription"), e.possibleTypes && this.addPossibleTypes(e.possibleTypes), e.typePolicies && this.addTypePolicies(e.typePolicies);
|
|
2009
2009
|
}
|
|
2010
2010
|
return e.prototype.identify = function(e, t) {
|
|
2011
2011
|
var n = this, r = t && (t.typename || t.storeObject?.__typename) || e.__typename;
|
|
2012
2012
|
if (r === this.rootTypenamesById.ROOT_QUERY) return ["ROOT_QUERY"];
|
|
2013
|
-
var i = t && t.storeObject || e, a =
|
|
2013
|
+
var i = t && t.storeObject || e, a = F(F({}, t), {
|
|
2014
2014
|
typename: r,
|
|
2015
2015
|
storeObject: i,
|
|
2016
2016
|
readField: t && t.readField || function() {
|
|
2017
|
-
var e =
|
|
2017
|
+
var e = wr(arguments, i);
|
|
2018
2018
|
return n.readField(e, {
|
|
2019
2019
|
store: n.cache.data,
|
|
2020
2020
|
variables: e.variables
|
|
2021
2021
|
});
|
|
2022
2022
|
}
|
|
2023
2023
|
}), o, s = r && this.getTypePolicy(r), c = s && s.keyFn || this.config.dataIdFromObject;
|
|
2024
|
-
return
|
|
2024
|
+
return _n.withValue(!0, function() {
|
|
2025
2025
|
for (; c;) {
|
|
2026
|
-
var t = c(
|
|
2027
|
-
if (
|
|
2026
|
+
var t = c(F(F({}, e), i), a);
|
|
2027
|
+
if (k(t)) c = ur(t);
|
|
2028
2028
|
else {
|
|
2029
2029
|
o = t;
|
|
2030
2030
|
break;
|
|
@@ -2034,28 +2034,28 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2034
2034
|
}, e.prototype.addTypePolicies = function(e) {
|
|
2035
2035
|
var t = this;
|
|
2036
2036
|
Object.keys(e).forEach(function(n) {
|
|
2037
|
-
var r = e[n], i = r.queryType, a = r.mutationType, o = r.subscriptionType, s =
|
|
2037
|
+
var r = e[n], i = r.queryType, a = r.mutationType, o = r.subscriptionType, s = L(r, [
|
|
2038
2038
|
"queryType",
|
|
2039
2039
|
"mutationType",
|
|
2040
2040
|
"subscriptionType"
|
|
2041
2041
|
]);
|
|
2042
|
-
i && t.setRootTypename("Query", n), a && t.setRootTypename("Mutation", n), o && t.setRootTypename("Subscription", n),
|
|
2042
|
+
i && t.setRootTypename("Query", n), a && t.setRootTypename("Mutation", n), o && t.setRootTypename("Subscription", n), X.call(t.toBeAdded, n) ? t.toBeAdded[n].push(s) : t.toBeAdded[n] = [s];
|
|
2043
2043
|
});
|
|
2044
2044
|
}, e.prototype.updateTypePolicy = function(e, t, n) {
|
|
2045
2045
|
var r = this.getTypePolicy(e), i = t.keyFields, a = t.fields;
|
|
2046
2046
|
function o(e, t) {
|
|
2047
|
-
e.merge = typeof t == "function" ? t : t === !0 ?
|
|
2047
|
+
e.merge = typeof t == "function" ? t : t === !0 ? br : t === !1 ? xr : e.merge;
|
|
2048
2048
|
}
|
|
2049
|
-
o(r, t.merge), r.keyFn = i === !1 ?
|
|
2049
|
+
o(r, t.merge), r.keyFn = i === !1 ? vr : k(i) ? ur(i) : typeof i == "function" ? i : r.keyFn, a && Object.keys(a).forEach(function(t) {
|
|
2050
2050
|
var r = n[t];
|
|
2051
2051
|
(!r || r?.typename !== e) && (r = n[t] = { typename: e });
|
|
2052
2052
|
var i = a[t];
|
|
2053
2053
|
if (typeof i == "function") r.read = i;
|
|
2054
2054
|
else {
|
|
2055
2055
|
var s = i.keyArgs, c = i.read, l = i.merge;
|
|
2056
|
-
r.keyFn = s === !1 ?
|
|
2056
|
+
r.keyFn = s === !1 ? yr : k(s) ? dr(s) : typeof s == "function" ? s : r.keyFn, typeof c == "function" && (r.read = c), o(r, l);
|
|
2057
2057
|
}
|
|
2058
|
-
r.read && r.merge && (r.keyFn = r.keyFn ||
|
|
2058
|
+
r.read && r.merge && (r.keyFn = r.keyFn || yr);
|
|
2059
2059
|
});
|
|
2060
2060
|
}, e.prototype.setRootTypename = function(e, t) {
|
|
2061
2061
|
t === void 0 && (t = e);
|
|
@@ -2066,13 +2066,13 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2066
2066
|
this.usingPossibleTypes = !0, Object.keys(e).forEach(function(n) {
|
|
2067
2067
|
t.getSupertypeSet(n, !0), e[n].forEach(function(e) {
|
|
2068
2068
|
t.getSupertypeSet(e, !0).add(n);
|
|
2069
|
-
var r = e.match(
|
|
2069
|
+
var r = e.match(Pn);
|
|
2070
2070
|
(!r || r[0] !== e) && t.fuzzySubtypes.set(e, new RegExp(e));
|
|
2071
2071
|
});
|
|
2072
2072
|
});
|
|
2073
2073
|
}, e.prototype.getTypePolicy = function(e) {
|
|
2074
2074
|
var t = this;
|
|
2075
|
-
if (!
|
|
2075
|
+
if (!X.call(this.typePolicies, e)) {
|
|
2076
2076
|
var n = this.typePolicies[e] = Object.create(null);
|
|
2077
2077
|
n.fields = Object.create(null);
|
|
2078
2078
|
var r = this.supertypeMap.get(e);
|
|
@@ -2084,7 +2084,7 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2084
2084
|
});
|
|
2085
2085
|
}
|
|
2086
2086
|
})), r && r.size && r.forEach(function(e) {
|
|
2087
|
-
var r = t.getTypePolicy(e), i = r.fields, a =
|
|
2087
|
+
var r = t.getTypePolicy(e), i = r.fields, a = L(r, ["fields"]);
|
|
2088
2088
|
Object.assign(n, a), Object.assign(n.fields, i);
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
@@ -2109,7 +2109,7 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2109
2109
|
}, l = !!(n && this.fuzzySubtypes.size), u = !1, d = 0; d < s.length; ++d) {
|
|
2110
2110
|
var f = s[d];
|
|
2111
2111
|
if (f.has(a)) return o.has(a) || (u && globalThis.__DEV__ !== !1 && R.warn(7, t, a), o.add(a)), !0;
|
|
2112
|
-
f.forEach(c), l && d === s.length - 1 &&
|
|
2112
|
+
f.forEach(c), l && d === s.length - 1 && Fn(e.selectionSet, n, r) && (l = !1, u = !0, this.fuzzySubtypes.forEach(function(e, n) {
|
|
2113
2113
|
var r = t.match(e);
|
|
2114
2114
|
r && r[0] === t && c(n);
|
|
2115
2115
|
}));
|
|
@@ -2119,21 +2119,21 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2119
2119
|
var n = this.getFieldPolicy(e, t);
|
|
2120
2120
|
return !!(n && n.keyFn);
|
|
2121
2121
|
}, e.prototype.getStoreFieldName = function(e) {
|
|
2122
|
-
var t = e.typename, n = e.fieldName,
|
|
2123
|
-
if (
|
|
2122
|
+
var t = e.typename, n = e.fieldName, i = this.getFieldPolicy(t, n), a, o = i && i.keyFn;
|
|
2123
|
+
if (o && t) for (var s = {
|
|
2124
2124
|
typename: t,
|
|
2125
2125
|
fieldName: n,
|
|
2126
2126
|
field: e.field || null,
|
|
2127
2127
|
variables: e.variables
|
|
2128
|
-
},
|
|
2129
|
-
var
|
|
2130
|
-
if (
|
|
2128
|
+
}, c = _r(e); o;) {
|
|
2129
|
+
var l = o(c, s);
|
|
2130
|
+
if (k(l)) o = dr(l);
|
|
2131
2131
|
else {
|
|
2132
|
-
|
|
2132
|
+
a = l || n;
|
|
2133
2133
|
break;
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
|
-
return
|
|
2136
|
+
return a === void 0 && (a = e.field ? r(e.field, e.variables) : te(n, _r(e))), a === !1 ? n : n === Z(a) ? a : n + ":" + a;
|
|
2137
2137
|
}, e.prototype.readField = function(e, t) {
|
|
2138
2138
|
var n = e.from;
|
|
2139
2139
|
if (n && (e.field || e.fieldName)) {
|
|
@@ -2141,10 +2141,10 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2141
2141
|
var r = t.store.getFieldValue(n, "__typename");
|
|
2142
2142
|
r && (e.typename = r);
|
|
2143
2143
|
}
|
|
2144
|
-
var i = this.getStoreFieldName(e), a =
|
|
2144
|
+
var i = this.getStoreFieldName(e), a = Z(i), o = t.store.getFieldValue(n, i), c = this.getFieldPolicy(e.typename, a), l = c && c.read;
|
|
2145
2145
|
if (l) {
|
|
2146
|
-
var u =
|
|
2147
|
-
return
|
|
2146
|
+
var u = Cr(this, n, e, t, t.store.getStorage(s(n) ? n.__ref : n, i));
|
|
2147
|
+
return tr.withValue(this.cache, l, [o, u]);
|
|
2148
2148
|
}
|
|
2149
2149
|
return o;
|
|
2150
2150
|
}
|
|
@@ -2156,7 +2156,7 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2156
2156
|
return !i && n && (r = this.getTypePolicy(n), i = r && r.merge), i;
|
|
2157
2157
|
}, e.prototype.runMergeFunction = function(e, t, n, r, i) {
|
|
2158
2158
|
var a = n.field, o = n.typename, s = n.merge;
|
|
2159
|
-
return s ===
|
|
2159
|
+
return s === br ? Tr(r.store)(e, t) : s === xr ? t : (r.overwrite && (e = void 0), s(e, t, Cr(this, void 0, {
|
|
2160
2160
|
typename: o,
|
|
2161
2161
|
fieldName: a.name.value,
|
|
2162
2162
|
field: a,
|
|
@@ -2164,138 +2164,138 @@ var _r = function() {}, vr = function(e, t) {
|
|
|
2164
2164
|
}, r, i || Object.create(null))));
|
|
2165
2165
|
}, e;
|
|
2166
2166
|
}();
|
|
2167
|
-
function
|
|
2168
|
-
var a = e.getStoreFieldName(n), o =
|
|
2167
|
+
function Cr(e, t, n, r, i) {
|
|
2168
|
+
var a = e.getStoreFieldName(n), o = Z(a), c = n.variables || r.variables, l = r.store, u = l.toReference, d = l.canRead;
|
|
2169
2169
|
return {
|
|
2170
|
-
args:
|
|
2170
|
+
args: _r(n),
|
|
2171
2171
|
field: n.field || null,
|
|
2172
2172
|
fieldName: o,
|
|
2173
2173
|
storeFieldName: a,
|
|
2174
|
-
variables:
|
|
2175
|
-
isReference:
|
|
2174
|
+
variables: c,
|
|
2175
|
+
isReference: s,
|
|
2176
2176
|
toReference: u,
|
|
2177
2177
|
storage: i,
|
|
2178
2178
|
cache: e.cache,
|
|
2179
2179
|
canRead: d,
|
|
2180
2180
|
readField: function() {
|
|
2181
|
-
return e.readField(
|
|
2181
|
+
return e.readField(wr(arguments, t, c), r);
|
|
2182
2182
|
},
|
|
2183
|
-
mergeObjects:
|
|
2183
|
+
mergeObjects: Tr(r.store)
|
|
2184
2184
|
};
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function wr(e, t, n) {
|
|
2187
2187
|
var r = e[0], i = e[1], a = e.length, o;
|
|
2188
2188
|
return typeof r == "string" ? o = {
|
|
2189
2189
|
fieldName: r,
|
|
2190
2190
|
from: a > 1 ? i : t
|
|
2191
|
-
} : (o =
|
|
2191
|
+
} : (o = F({}, r), X.call(o, "from") || (o.from = t)), globalThis.__DEV__ !== !1 && o.from === void 0 && globalThis.__DEV__ !== !1 && R.warn(8, pe(Array.from(e))), o.variables === void 0 && (o.variables = n), o;
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Tr(e) {
|
|
2194
2194
|
return function(t, n) {
|
|
2195
|
-
if (
|
|
2196
|
-
if (
|
|
2195
|
+
if (k(t) || k(n)) throw N(9);
|
|
2196
|
+
if (D(t) && D(n)) {
|
|
2197
2197
|
var r = e.getFieldValue(t, "__typename"), i = e.getFieldValue(n, "__typename");
|
|
2198
2198
|
if (r && i && r !== i) return n;
|
|
2199
|
-
if (
|
|
2200
|
-
if (
|
|
2201
|
-
if (
|
|
2199
|
+
if (s(t) && In(n)) return e.merge(t.__ref, n), t;
|
|
2200
|
+
if (In(t) && s(n)) return e.merge(t, n.__ref), n;
|
|
2201
|
+
if (In(t) && In(n)) return F(F({}, t), n);
|
|
2202
2202
|
}
|
|
2203
2203
|
return n;
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
2206
|
//#endregion
|
|
2207
2207
|
//#region node_modules/@apollo/client/cache/inmemory/writeToStore.js
|
|
2208
|
-
function
|
|
2208
|
+
function Er(e, t, n) {
|
|
2209
2209
|
var r = `${t}${n}`, i = e.flavors.get(r);
|
|
2210
|
-
return i || e.flavors.set(r, i = e.clientOnly === t && e.deferred === n ? e :
|
|
2210
|
+
return i || e.flavors.set(r, i = e.clientOnly === t && e.deferred === n ? e : F(F({}, e), {
|
|
2211
2211
|
clientOnly: t,
|
|
2212
2212
|
deferred: n
|
|
2213
2213
|
})), i;
|
|
2214
2214
|
}
|
|
2215
|
-
var
|
|
2215
|
+
var Dr = function() {
|
|
2216
2216
|
function e(e, t, n) {
|
|
2217
2217
|
this.cache = e, this.reader = t, this.fragments = n;
|
|
2218
2218
|
}
|
|
2219
2219
|
return e.prototype.writeToStore = function(e, t) {
|
|
2220
|
-
var
|
|
2221
|
-
|
|
2222
|
-
var
|
|
2220
|
+
var n = this, r = t.query, i = t.result, a = t.dataId, o = t.variables, c = t.overwrite, l = Le(r), u = Ln();
|
|
2221
|
+
o = F(F({}, Ee(l)), o);
|
|
2222
|
+
var d = F(F({
|
|
2223
2223
|
store: e,
|
|
2224
2224
|
written: Object.create(null),
|
|
2225
2225
|
merge: function(e, t) {
|
|
2226
|
-
return
|
|
2226
|
+
return u.merge(e, t);
|
|
2227
2227
|
},
|
|
2228
|
-
variables:
|
|
2229
|
-
varString:
|
|
2230
|
-
},
|
|
2231
|
-
overwrite: !!
|
|
2228
|
+
variables: o,
|
|
2229
|
+
varString: we(o)
|
|
2230
|
+
}, Rn(r, this.fragments)), {
|
|
2231
|
+
overwrite: !!c,
|
|
2232
2232
|
incomingById: /* @__PURE__ */ new Map(),
|
|
2233
2233
|
clientOnly: !1,
|
|
2234
2234
|
deferred: !1,
|
|
2235
2235
|
flavors: /* @__PURE__ */ new Map()
|
|
2236
|
-
}),
|
|
2237
|
-
result:
|
|
2238
|
-
dataId:
|
|
2239
|
-
selectionSet:
|
|
2236
|
+
}), f = this.processSelectionSet({
|
|
2237
|
+
result: i || Object.create(null),
|
|
2238
|
+
dataId: a,
|
|
2239
|
+
selectionSet: l.selectionSet,
|
|
2240
2240
|
mergeTree: { map: /* @__PURE__ */ new Map() },
|
|
2241
|
-
context:
|
|
2241
|
+
context: d
|
|
2242
2242
|
});
|
|
2243
|
-
if (!
|
|
2244
|
-
return
|
|
2245
|
-
var i = t.storeObject, a = t.mergeTree, o = t.fieldNodeSet,
|
|
2243
|
+
if (!s(f)) throw N(12, i);
|
|
2244
|
+
return d.incomingById.forEach(function(t, r) {
|
|
2245
|
+
var i = t.storeObject, a = t.mergeTree, o = t.fieldNodeSet, c = C(r);
|
|
2246
2246
|
if (a && a.map.size) {
|
|
2247
|
-
var
|
|
2248
|
-
if (
|
|
2249
|
-
i =
|
|
2247
|
+
var l = n.applyMerges(a, c, i, d);
|
|
2248
|
+
if (s(l)) return;
|
|
2249
|
+
i = l;
|
|
2250
2250
|
}
|
|
2251
|
-
if (globalThis.__DEV__ !== !1 && !
|
|
2252
|
-
var
|
|
2251
|
+
if (globalThis.__DEV__ !== !1 && !d.overwrite) {
|
|
2252
|
+
var u = Object.create(null);
|
|
2253
2253
|
o.forEach(function(e) {
|
|
2254
|
-
e.selectionSet && (
|
|
2254
|
+
e.selectionSet && (u[e.name.value] = !0);
|
|
2255
2255
|
});
|
|
2256
2256
|
var f = function(e) {
|
|
2257
|
-
return
|
|
2258
|
-
},
|
|
2257
|
+
return u[Z(e)] === !0;
|
|
2258
|
+
}, p = function(e) {
|
|
2259
2259
|
var t = a && a.map.get(e);
|
|
2260
2260
|
return !!(t && t.info && t.info.merge);
|
|
2261
2261
|
};
|
|
2262
2262
|
Object.keys(i).forEach(function(e) {
|
|
2263
|
-
f(e) && !
|
|
2263
|
+
f(e) && !p(e) && Pr(c, i, e, d.store);
|
|
2264
2264
|
});
|
|
2265
2265
|
}
|
|
2266
|
-
e.merge(
|
|
2267
|
-
}), e.retain(
|
|
2266
|
+
e.merge(r, i);
|
|
2267
|
+
}), e.retain(f.__ref), f;
|
|
2268
2268
|
}, e.prototype.processSelectionSet = function(e) {
|
|
2269
|
-
var t = this, n = e.dataId, r = e.result, i = e.selectionSet, a = e.context,
|
|
2269
|
+
var t = this, n = e.dataId, r = e.result, i = e.selectionSet, a = e.context, c = e.mergeTree, l = this.cache.policies, u = Object.create(null), d = n && l.rootTypenamesById[n] || o(r, i, a.fragmentMap) || n && a.store.get(n, "__typename");
|
|
2270
2270
|
typeof d == "string" && (u.__typename = d);
|
|
2271
2271
|
var f = function() {
|
|
2272
|
-
var e =
|
|
2273
|
-
if (
|
|
2272
|
+
var e = wr(arguments, u, a.variables);
|
|
2273
|
+
if (s(e.from)) {
|
|
2274
2274
|
var t = a.incomingById.get(e.from.__ref);
|
|
2275
2275
|
if (t) {
|
|
2276
|
-
var n = l.readField(
|
|
2276
|
+
var n = l.readField(F(F({}, e), { from: t.storeObject }), a);
|
|
2277
2277
|
if (n !== void 0) return n;
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
2280
|
return l.readField(e, a);
|
|
2281
2281
|
}, p = /* @__PURE__ */ new Set();
|
|
2282
2282
|
this.flattenFields(i, r, a, d).forEach(function(e, n) {
|
|
2283
|
-
var i, a = r[
|
|
2283
|
+
var i, a = r[P(n)];
|
|
2284
2284
|
if (p.add(n), a !== void 0) {
|
|
2285
|
-
var
|
|
2285
|
+
var o = l.getStoreFieldName({
|
|
2286
2286
|
typename: d,
|
|
2287
2287
|
fieldName: n.name.value,
|
|
2288
2288
|
field: n,
|
|
2289
2289
|
variables: e.variables
|
|
2290
|
-
}), m =
|
|
2291
|
-
n.selectionSet && (
|
|
2290
|
+
}), m = kr(c, o), h = t.processFieldValue(a, n, n.selectionSet ? Er(e, !1, !1) : e, m), g = void 0;
|
|
2291
|
+
n.selectionSet && (s(h) || In(h)) && (g = f("__typename", h));
|
|
2292
2292
|
var _ = l.getMergeFunction(d, n.name.value, g);
|
|
2293
2293
|
_ ? m.info = {
|
|
2294
2294
|
field: n,
|
|
2295
2295
|
typename: d,
|
|
2296
2296
|
merge: _
|
|
2297
|
-
} :
|
|
2298
|
-
} else globalThis.__DEV__ !== !1 && !e.clientOnly && !e.deferred && !
|
|
2297
|
+
} : Mr(c, o), u = e.merge(u, (i = {}, i[o] = h, i));
|
|
2298
|
+
} else globalThis.__DEV__ !== !1 && !e.clientOnly && !e.deferred && !dt.added(n) && !l.getReadFunction(d, n.name.value) && globalThis.__DEV__ !== !1 && R.error(13, P(n), r);
|
|
2299
2299
|
});
|
|
2300
2300
|
try {
|
|
2301
2301
|
var m = l.identify(r, {
|
|
@@ -2310,23 +2310,23 @@ var Er = function() {
|
|
|
2310
2310
|
if (!n) throw e;
|
|
2311
2311
|
}
|
|
2312
2312
|
if (typeof n == "string") {
|
|
2313
|
-
var _ =
|
|
2313
|
+
var _ = C(n), v = a.written[n] || (a.written[n] = []);
|
|
2314
2314
|
if (v.indexOf(i) >= 0 || (v.push(i), this.reader && this.reader.isFresh(r, _, i, a))) return _;
|
|
2315
2315
|
var y = a.incomingById.get(n);
|
|
2316
|
-
return y ? (y.storeObject = a.merge(y.storeObject, u), y.mergeTree =
|
|
2316
|
+
return y ? (y.storeObject = a.merge(y.storeObject, u), y.mergeTree = Ar(y.mergeTree, c), p.forEach(function(e) {
|
|
2317
2317
|
return y.fieldNodeSet.add(e);
|
|
2318
2318
|
})) : a.incomingById.set(n, {
|
|
2319
2319
|
storeObject: u,
|
|
2320
|
-
mergeTree:
|
|
2320
|
+
mergeTree: jr(c) ? void 0 : c,
|
|
2321
2321
|
fieldNodeSet: p
|
|
2322
2322
|
}), _;
|
|
2323
2323
|
}
|
|
2324
2324
|
return u;
|
|
2325
2325
|
}, e.prototype.processFieldValue = function(e, t, n, r) {
|
|
2326
2326
|
var i = this;
|
|
2327
|
-
return !t.selectionSet || e === null ? globalThis.__DEV__ === !1 ? e :
|
|
2328
|
-
var o = i.processFieldValue(e, t, n,
|
|
2329
|
-
return
|
|
2327
|
+
return !t.selectionSet || e === null ? globalThis.__DEV__ === !1 ? e : ke(e) : k(e) ? e.map(function(e, a) {
|
|
2328
|
+
var o = i.processFieldValue(e, t, n, kr(r, a));
|
|
2329
|
+
return Mr(r, a), o;
|
|
2330
2330
|
}) : this.processSelectionSet({
|
|
2331
2331
|
result: e,
|
|
2332
2332
|
selectionSet: t.selectionSet,
|
|
@@ -2334,226 +2334,226 @@ var Er = function() {
|
|
|
2334
2334
|
mergeTree: r
|
|
2335
2335
|
});
|
|
2336
2336
|
}, e.prototype.flattenFields = function(e, t, n, r) {
|
|
2337
|
-
r === void 0 && (r =
|
|
2338
|
-
var i = /* @__PURE__ */ new Map(),
|
|
2339
|
-
return (function e(
|
|
2340
|
-
var
|
|
2341
|
-
|
|
2342
|
-
if (
|
|
2343
|
-
var
|
|
2344
|
-
if (!(
|
|
2337
|
+
r === void 0 && (r = o(t, e, n.fragmentMap));
|
|
2338
|
+
var i = /* @__PURE__ */ new Map(), s = this.cache.policies, c = new Me(!1);
|
|
2339
|
+
return (function e(o, l) {
|
|
2340
|
+
var u = c.lookup(o, l.clientOnly, l.deferred);
|
|
2341
|
+
u.visited || (u.visited = !0, o.selections.forEach(function(o) {
|
|
2342
|
+
if (de(o, n.variables)) {
|
|
2343
|
+
var c = l.clientOnly, u = l.deferred;
|
|
2344
|
+
if (!(c && u) && I(o.directives) && o.directives.forEach(function(e) {
|
|
2345
2345
|
var t = e.name.value;
|
|
2346
|
-
if (t === "client" && (
|
|
2347
|
-
var r =
|
|
2348
|
-
(!r || r.if !== !1) && (
|
|
2346
|
+
if (t === "client" && (c = !0), t === "defer") {
|
|
2347
|
+
var r = Be(e, n.variables);
|
|
2348
|
+
(!r || r.if !== !1) && (u = !0);
|
|
2349
2349
|
}
|
|
2350
|
-
}),
|
|
2351
|
-
var
|
|
2352
|
-
|
|
2350
|
+
}), re(o)) {
|
|
2351
|
+
var d = i.get(o);
|
|
2352
|
+
d && (c = c && d.clientOnly, u = u && d.deferred), i.set(o, Er(n, c, u));
|
|
2353
2353
|
} else {
|
|
2354
|
-
var
|
|
2355
|
-
if (!
|
|
2356
|
-
|
|
2354
|
+
var f = a(o, n.lookupFragment);
|
|
2355
|
+
if (!f && o.kind === B.FRAGMENT_SPREAD) throw N(14, o.name.value);
|
|
2356
|
+
f && s.fragmentMatches(f, r, t, n.variables) && e(f.selectionSet, Er(n, c, u));
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
}));
|
|
2360
2360
|
})(e, n), i;
|
|
2361
2361
|
}, e.prototype.applyMerges = function(e, t, n, r, i) {
|
|
2362
2362
|
var a, o = this;
|
|
2363
|
-
if (e.map.size && !
|
|
2364
|
-
var
|
|
2365
|
-
|
|
2363
|
+
if (e.map.size && !s(n)) {
|
|
2364
|
+
var c = !k(n) && (s(t) || In(t)) ? t : void 0, l = n;
|
|
2365
|
+
c && !i && (i = [s(c) ? c.__ref : c]);
|
|
2366
2366
|
var u, d = function(e, t) {
|
|
2367
|
-
return
|
|
2367
|
+
return k(e) ? typeof t == "number" ? e[t] : void 0 : r.store.getFieldValue(e, String(t));
|
|
2368
2368
|
};
|
|
2369
2369
|
e.map.forEach(function(e, t) {
|
|
2370
|
-
var n = d(
|
|
2370
|
+
var n = d(c, t), a = d(l, t);
|
|
2371
2371
|
if (a !== void 0) {
|
|
2372
2372
|
i && i.push(t);
|
|
2373
|
-
var
|
|
2374
|
-
|
|
2373
|
+
var s = o.applyMerges(e, n, a, r, i);
|
|
2374
|
+
s !== a && (u = u || /* @__PURE__ */ new Map(), u.set(t, s)), i && R(i.pop() === t);
|
|
2375
2375
|
}
|
|
2376
|
-
}), u && (n =
|
|
2376
|
+
}), u && (n = k(l) ? l.slice(0) : F({}, l), u.forEach(function(e, t) {
|
|
2377
2377
|
n[t] = e;
|
|
2378
2378
|
}));
|
|
2379
2379
|
}
|
|
2380
2380
|
return e.info ? this.cache.policies.runMergeFunction(t, n, e.info, r, i && (a = r.store).getStorage.apply(a, i)) : n;
|
|
2381
2381
|
}, e;
|
|
2382
|
-
}(),
|
|
2383
|
-
function
|
|
2382
|
+
}(), Or = [];
|
|
2383
|
+
function kr(e, t) {
|
|
2384
2384
|
var n = e.map;
|
|
2385
|
-
return n.has(t) || n.set(t,
|
|
2385
|
+
return n.has(t) || n.set(t, Or.pop() || { map: /* @__PURE__ */ new Map() }), n.get(t);
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2388
|
-
if (e === t || !t ||
|
|
2389
|
-
if (!e ||
|
|
2390
|
-
var n = e.info && t.info ?
|
|
2387
|
+
function Ar(e, t) {
|
|
2388
|
+
if (e === t || !t || jr(t)) return e;
|
|
2389
|
+
if (!e || jr(e)) return t;
|
|
2390
|
+
var n = e.info && t.info ? F(F({}, e.info), t.info) : e.info || t.info, r = e.map.size && t.map.size, i = {
|
|
2391
2391
|
info: n,
|
|
2392
2392
|
map: r ? /* @__PURE__ */ new Map() : e.map.size ? e.map : t.map
|
|
2393
2393
|
};
|
|
2394
2394
|
if (r) {
|
|
2395
2395
|
var a = new Set(t.map.keys());
|
|
2396
2396
|
e.map.forEach(function(e, n) {
|
|
2397
|
-
i.map.set(n,
|
|
2397
|
+
i.map.set(n, Ar(e, t.map.get(n))), a.delete(n);
|
|
2398
2398
|
}), a.forEach(function(n) {
|
|
2399
|
-
i.map.set(n,
|
|
2399
|
+
i.map.set(n, Ar(t.map.get(n), e.map.get(n)));
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
2402
|
return i;
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function jr(e) {
|
|
2405
2405
|
return !e || !(e.info || e.map.size);
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2407
|
+
function Mr(e, t) {
|
|
2408
2408
|
var n = e.map, r = n.get(t);
|
|
2409
|
-
r &&
|
|
2409
|
+
r && jr(r) && (Or.push(r), n.delete(t));
|
|
2410
2410
|
}
|
|
2411
|
-
var
|
|
2412
|
-
function
|
|
2411
|
+
var Nr = /* @__PURE__ */ new Set();
|
|
2412
|
+
function Pr(e, t, n, r) {
|
|
2413
2413
|
var i = function(e) {
|
|
2414
2414
|
var t = r.getFieldValue(e, n);
|
|
2415
2415
|
return typeof t == "object" && t;
|
|
2416
2416
|
}, a = i(e);
|
|
2417
2417
|
if (a) {
|
|
2418
2418
|
var o = i(t);
|
|
2419
|
-
if (o && !
|
|
2419
|
+
if (o && !s(a) && !O(a, o) && !Object.keys(a).every(function(e) {
|
|
2420
2420
|
return r.getFieldValue(o, e) !== void 0;
|
|
2421
2421
|
})) {
|
|
2422
|
-
var
|
|
2423
|
-
if (!
|
|
2424
|
-
|
|
2422
|
+
var c = r.getFieldValue(e, "__typename") || r.getFieldValue(t, "__typename"), l = Z(n), u = `${c}.${l}`;
|
|
2423
|
+
if (!Nr.has(u)) {
|
|
2424
|
+
Nr.add(u);
|
|
2425
2425
|
var d = [];
|
|
2426
|
-
!
|
|
2426
|
+
!k(a) && !k(o) && [a, o].forEach(function(e) {
|
|
2427
2427
|
var t = r.getFieldValue(e, "__typename");
|
|
2428
2428
|
typeof t == "string" && !d.includes(t) && d.push(t);
|
|
2429
|
-
}), globalThis.__DEV__ !== !1 && R.warn(15, l,
|
|
2429
|
+
}), globalThis.__DEV__ !== !1 && R.warn(15, l, c, d.length ? "either ensure all objects of type " + d.join(" and ") + " have an ID or a custom merge function, or " : "", u, F({}, a), F({}, o));
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
2434
|
//#endregion
|
|
2435
2435
|
//#region node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
|
|
2436
|
-
var
|
|
2437
|
-
|
|
2438
|
-
function
|
|
2439
|
-
|
|
2440
|
-
var
|
|
2441
|
-
return
|
|
2442
|
-
cache:
|
|
2443
|
-
dataIdFromObject:
|
|
2444
|
-
possibleTypes:
|
|
2445
|
-
typePolicies:
|
|
2446
|
-
}),
|
|
2436
|
+
var Fr = function(e) {
|
|
2437
|
+
A(t, e);
|
|
2438
|
+
function t(t) {
|
|
2439
|
+
t === void 0 && (t = {});
|
|
2440
|
+
var n = e.call(this) || this;
|
|
2441
|
+
return n.watches = /* @__PURE__ */ new Set(), n.addTypenameTransform = new rt(dt), n.assumeImmutableResults = !0, n.makeVar = or, n.txCount = 0, globalThis.__DEV__ !== !1 && (j(t, "addTypename", "InMemoryCache", "Please remove the `addTypename` option when initializing `InMemoryCache`."), j(t, "canonizeResults", "InMemoryCache", "Please remove the `canonizeResults` option when initializing `InMemoryCache`.")), n.config = jn(t), n.addTypename = !!n.config.addTypename, n.policies = new Sr({
|
|
2442
|
+
cache: n,
|
|
2443
|
+
dataIdFromObject: n.config.dataIdFromObject,
|
|
2444
|
+
possibleTypes: n.config.possibleTypes,
|
|
2445
|
+
typePolicies: n.config.typePolicies
|
|
2446
|
+
}), n.init(), n;
|
|
2447
2447
|
}
|
|
2448
|
-
return
|
|
2449
|
-
var e = this.data = new
|
|
2448
|
+
return t.prototype.init = function() {
|
|
2449
|
+
var e = this.data = new Hn.Root({
|
|
2450
2450
|
policies: this.policies,
|
|
2451
2451
|
resultCaching: this.config.resultCaching
|
|
2452
2452
|
});
|
|
2453
2453
|
this.optimisticData = e.stump, this.resetResultCache();
|
|
2454
|
-
},
|
|
2455
|
-
var t = this,
|
|
2456
|
-
this.addTypenameTransform.resetCache(),
|
|
2454
|
+
}, t.prototype.resetResultCache = function(e) {
|
|
2455
|
+
var t = this, n = this.storeReader, r = this.config.fragments;
|
|
2456
|
+
this.addTypenameTransform.resetCache(), r?.resetCaches(), this.storeWriter = new Dr(this, this.storeReader = new Qn({
|
|
2457
2457
|
cache: this,
|
|
2458
2458
|
addTypename: this.addTypename,
|
|
2459
2459
|
resultCacheMaxSize: this.config.resultCacheMaxSize,
|
|
2460
|
-
canonizeResults:
|
|
2461
|
-
canon: e ? void 0 :
|
|
2462
|
-
fragments:
|
|
2463
|
-
}),
|
|
2460
|
+
canonizeResults: Mn(this.config),
|
|
2461
|
+
canon: e ? void 0 : n && n.canon,
|
|
2462
|
+
fragments: r
|
|
2463
|
+
}), r), this.maybeBroadcastWatch = Ie(function(e, n) {
|
|
2464
2464
|
return t.broadcastWatch(e, n);
|
|
2465
2465
|
}, {
|
|
2466
|
-
max: this.config.resultCacheMaxSize ||
|
|
2466
|
+
max: this.config.resultCacheMaxSize || h["inMemoryCache.maybeBroadcastWatch"] || 5e3,
|
|
2467
2467
|
makeCacheKey: function(e) {
|
|
2468
|
-
var
|
|
2469
|
-
if (
|
|
2470
|
-
var
|
|
2471
|
-
return
|
|
2472
|
-
optimistic:
|
|
2473
|
-
id:
|
|
2474
|
-
variables:
|
|
2468
|
+
var n = e.optimistic ? t.optimisticData : t.data;
|
|
2469
|
+
if (Jn(n)) {
|
|
2470
|
+
var r = e.optimistic, i = e.id, a = e.variables;
|
|
2471
|
+
return n.makeCacheKey(e.query, e.callback, we({
|
|
2472
|
+
optimistic: r,
|
|
2473
|
+
id: i,
|
|
2474
|
+
variables: a
|
|
2475
2475
|
}));
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
2478
|
}), new Set([this.data.group, this.optimisticData.group]).forEach(function(e) {
|
|
2479
2479
|
return e.resetCaching();
|
|
2480
2480
|
});
|
|
2481
|
-
},
|
|
2481
|
+
}, t.prototype.restore = function(e) {
|
|
2482
2482
|
return this.init(), e && this.data.replace(e), this;
|
|
2483
|
-
},
|
|
2483
|
+
}, t.prototype.extract = function(e) {
|
|
2484
2484
|
return e === void 0 && (e = !1), (e ? this.optimisticData : this.data).extract();
|
|
2485
|
-
},
|
|
2486
|
-
globalThis.__DEV__ !== !1 && e
|
|
2487
|
-
var
|
|
2485
|
+
}, t.prototype.read = function(e) {
|
|
2486
|
+
globalThis.__DEV__ !== !1 && j(e, "canonizeResults", "cache.read");
|
|
2487
|
+
var t = e.returnPartialData, n = t === void 0 ? !1 : t;
|
|
2488
2488
|
try {
|
|
2489
|
-
return this.storeReader.diffQueryAgainstStore(
|
|
2490
|
-
store:
|
|
2489
|
+
return this.storeReader.diffQueryAgainstStore(F(F({}, e), {
|
|
2490
|
+
store: e.optimistic ? this.optimisticData : this.data,
|
|
2491
2491
|
config: this.config,
|
|
2492
|
-
returnPartialData:
|
|
2492
|
+
returnPartialData: n
|
|
2493
2493
|
})).result || null;
|
|
2494
2494
|
} catch (e) {
|
|
2495
|
-
if (e instanceof
|
|
2495
|
+
if (e instanceof Dn) return null;
|
|
2496
2496
|
throw e;
|
|
2497
2497
|
}
|
|
2498
|
-
},
|
|
2498
|
+
}, t.prototype.write = function(e) {
|
|
2499
2499
|
try {
|
|
2500
2500
|
return ++this.txCount, this.storeWriter.writeToStore(this.data, e);
|
|
2501
2501
|
} finally {
|
|
2502
2502
|
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2503
2503
|
}
|
|
2504
|
-
},
|
|
2505
|
-
if (
|
|
2504
|
+
}, t.prototype.modify = function(e) {
|
|
2505
|
+
if (X.call(e, "id") && !e.id) return !1;
|
|
2506
2506
|
var t = e.optimistic ? this.optimisticData : this.data;
|
|
2507
2507
|
try {
|
|
2508
2508
|
return ++this.txCount, t.modify(e.id || "ROOT_QUERY", e.fields);
|
|
2509
2509
|
} finally {
|
|
2510
2510
|
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2511
2511
|
}
|
|
2512
|
-
},
|
|
2513
|
-
return globalThis.__DEV__ !== !1 && e
|
|
2514
|
-
store:
|
|
2515
|
-
rootId:
|
|
2512
|
+
}, t.prototype.diff = function(e) {
|
|
2513
|
+
return globalThis.__DEV__ !== !1 && j(e, "canonizeResults", "cache.diff"), this.storeReader.diffQueryAgainstStore(F(F({}, e), {
|
|
2514
|
+
store: e.optimistic ? this.optimisticData : this.data,
|
|
2515
|
+
rootId: e.id || "ROOT_QUERY",
|
|
2516
2516
|
config: this.config
|
|
2517
2517
|
}));
|
|
2518
|
-
},
|
|
2518
|
+
}, t.prototype.watch = function(e) {
|
|
2519
2519
|
var t = this;
|
|
2520
|
-
return this.watches.size ||
|
|
2521
|
-
t.watches.delete(e) && !t.watches.size &&
|
|
2520
|
+
return this.watches.size || ar(this), this.watches.add(e), e.immediate && this.maybeBroadcastWatch(e), function() {
|
|
2521
|
+
t.watches.delete(e) && !t.watches.size && ir(t), t.maybeBroadcastWatch.forget(e);
|
|
2522
2522
|
};
|
|
2523
|
-
},
|
|
2524
|
-
globalThis.__DEV__ !== !1 && e
|
|
2525
|
-
var
|
|
2526
|
-
return
|
|
2527
|
-
},
|
|
2523
|
+
}, t.prototype.gc = function(e) {
|
|
2524
|
+
globalThis.__DEV__ !== !1 && j(e || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), we.reset(), q.reset();
|
|
2525
|
+
var t = this.optimisticData.gc();
|
|
2526
|
+
return e && !this.txCount && (e.resetResultCache ? this.resetResultCache(e.resetResultIdentities) : e.resetResultIdentities && this.storeReader.resetCanon()), t;
|
|
2527
|
+
}, t.prototype.retain = function(e, t) {
|
|
2528
2528
|
return (t ? this.optimisticData : this.data).retain(e);
|
|
2529
|
-
},
|
|
2529
|
+
}, t.prototype.release = function(e, t) {
|
|
2530
2530
|
return (t ? this.optimisticData : this.data).release(e);
|
|
2531
|
-
},
|
|
2532
|
-
if (
|
|
2531
|
+
}, t.prototype.identify = function(e) {
|
|
2532
|
+
if (s(e)) return e.__ref;
|
|
2533
2533
|
try {
|
|
2534
2534
|
return this.policies.identify(e)[0];
|
|
2535
2535
|
} catch (e) {
|
|
2536
2536
|
globalThis.__DEV__ !== !1 && R.warn(e);
|
|
2537
2537
|
}
|
|
2538
|
-
},
|
|
2538
|
+
}, t.prototype.evict = function(e) {
|
|
2539
2539
|
if (!e.id) {
|
|
2540
|
-
if (
|
|
2541
|
-
e =
|
|
2540
|
+
if (X.call(e, "id")) return !1;
|
|
2541
|
+
e = F(F({}, e), { id: "ROOT_QUERY" });
|
|
2542
2542
|
}
|
|
2543
2543
|
try {
|
|
2544
2544
|
return ++this.txCount, this.optimisticData.evict(e, this.data);
|
|
2545
2545
|
} finally {
|
|
2546
2546
|
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2547
2547
|
}
|
|
2548
|
-
},
|
|
2548
|
+
}, t.prototype.reset = function(e) {
|
|
2549
2549
|
var t = this;
|
|
2550
|
-
return this.init(),
|
|
2550
|
+
return this.init(), we.reset(), e && e.discardWatches ? (this.watches.forEach(function(e) {
|
|
2551
2551
|
return t.maybeBroadcastWatch.forget(e);
|
|
2552
|
-
}), this.watches.clear(),
|
|
2553
|
-
},
|
|
2552
|
+
}), this.watches.clear(), ir(this)) : this.broadcastWatches(), Promise.resolve();
|
|
2553
|
+
}, t.prototype.removeOptimistic = function(e) {
|
|
2554
2554
|
var t = this.optimisticData.removeLayer(e);
|
|
2555
2555
|
t !== this.optimisticData && (this.optimisticData = t, this.broadcastWatches());
|
|
2556
|
-
},
|
|
2556
|
+
}, t.prototype.batch = function(e) {
|
|
2557
2557
|
var t = this, n = e.update, r = e.optimistic, i = r === void 0 ? !0 : r, a = e.removeOptimistic, o = e.onWatchUpdated, s, c = function(e) {
|
|
2558
2558
|
var r = t, i = r.data, a = r.optimisticData;
|
|
2559
2559
|
++t.txCount, e && (t.data = t.optimisticData = e);
|
|
@@ -2563,61 +2563,61 @@ var Pr = function(t) {
|
|
|
2563
2563
|
--t.txCount, t.data = i, t.optimisticData = a;
|
|
2564
2564
|
}
|
|
2565
2565
|
}, l = /* @__PURE__ */ new Set();
|
|
2566
|
-
return o && !this.txCount && this.broadcastWatches(
|
|
2566
|
+
return o && !this.txCount && this.broadcastWatches(F(F({}, e), { onWatchUpdated: function(e) {
|
|
2567
2567
|
return l.add(e), !1;
|
|
2568
|
-
} })), typeof i == "string" ? this.optimisticData = this.optimisticData.addLayer(i, c) : i === !1 ? c(this.data) : c(), typeof a == "string" && (this.optimisticData = this.optimisticData.removeLayer(a)), o && l.size ? (this.broadcastWatches(
|
|
2568
|
+
} })), typeof i == "string" ? this.optimisticData = this.optimisticData.addLayer(i, c) : i === !1 ? c(this.data) : c(), typeof a == "string" && (this.optimisticData = this.optimisticData.removeLayer(a)), o && l.size ? (this.broadcastWatches(F(F({}, e), { onWatchUpdated: function(e, t) {
|
|
2569
2569
|
var n = o.call(this, e, t);
|
|
2570
2570
|
return n !== !1 && l.delete(e), n;
|
|
2571
2571
|
} })), l.size && l.forEach(function(e) {
|
|
2572
2572
|
return t.maybeBroadcastWatch.dirty(e);
|
|
2573
2573
|
})) : this.broadcastWatches(e), s;
|
|
2574
|
-
},
|
|
2574
|
+
}, t.prototype.performTransaction = function(e, t) {
|
|
2575
2575
|
return this.batch({
|
|
2576
2576
|
update: e,
|
|
2577
2577
|
optimistic: t || t !== null
|
|
2578
2578
|
});
|
|
2579
|
-
},
|
|
2579
|
+
}, t.prototype.transformDocument = function(e) {
|
|
2580
2580
|
return this.addTypenameToDocument(this.addFragmentsToDocument(e));
|
|
2581
|
-
},
|
|
2581
|
+
}, t.prototype.fragmentMatches = function(e, t) {
|
|
2582
2582
|
return this.policies.fragmentMatches(e, t);
|
|
2583
|
-
},
|
|
2583
|
+
}, t.prototype.lookupFragment = function(e) {
|
|
2584
2584
|
return this.config.fragments?.lookup(e) || null;
|
|
2585
|
-
},
|
|
2585
|
+
}, t.prototype.broadcastWatches = function(e) {
|
|
2586
2586
|
var t = this;
|
|
2587
2587
|
this.txCount || this.watches.forEach(function(n) {
|
|
2588
2588
|
return t.maybeBroadcastWatch(n, e);
|
|
2589
2589
|
});
|
|
2590
|
-
},
|
|
2590
|
+
}, t.prototype.addFragmentsToDocument = function(e) {
|
|
2591
2591
|
var t = this.config.fragments;
|
|
2592
2592
|
return t ? t.transform(e) : e;
|
|
2593
|
-
},
|
|
2593
|
+
}, t.prototype.addTypenameToDocument = function(e) {
|
|
2594
2594
|
return this.addTypename ? this.addTypenameTransform.transformDocument(e) : e;
|
|
2595
|
-
},
|
|
2596
|
-
var n = this, r = e.lastDiff, i =
|
|
2595
|
+
}, t.prototype.broadcastWatch = function(e, t) {
|
|
2596
|
+
var n = this, r = e.lastDiff, i = T("canonizeResults", function() {
|
|
2597
2597
|
return n.diff(e);
|
|
2598
2598
|
});
|
|
2599
|
-
t && (e.optimistic && typeof t.optimistic == "string" && (i.fromOptimisticTransaction = !0), t.onWatchUpdated && t.onWatchUpdated.call(this, e, i, r) === !1) || (!r || !
|
|
2600
|
-
},
|
|
2601
|
-
}(
|
|
2602
|
-
globalThis.__DEV__ !== !1 && (
|
|
2599
|
+
t && (e.optimistic && typeof t.optimistic == "string" && (i.fromOptimisticTransaction = !0), t.onWatchUpdated && t.onWatchUpdated.call(this, e, i, r) === !1) || (!r || !O(r.result, i.result)) && e.callback(e.lastDiff = i, r);
|
|
2600
|
+
}, t;
|
|
2601
|
+
}(En);
|
|
2602
|
+
globalThis.__DEV__ !== !1 && (Fr.prototype.getMemoryInternals = w);
|
|
2603
2603
|
//#endregion
|
|
2604
2604
|
//#region node_modules/@apollo/client/core/QueryInfo.js
|
|
2605
|
-
var
|
|
2606
|
-
function
|
|
2605
|
+
var Ir = new (f ? WeakMap : Map)();
|
|
2606
|
+
function Lr(e, t) {
|
|
2607
2607
|
var n = e[t];
|
|
2608
2608
|
typeof n == "function" && (e[t] = function() {
|
|
2609
|
-
return
|
|
2609
|
+
return Ir.set(e, (Ir.get(e) + 1) % 0x38d7ea4c68000), n.apply(this, arguments);
|
|
2610
2610
|
});
|
|
2611
2611
|
}
|
|
2612
|
-
var
|
|
2612
|
+
var Rr = function() {
|
|
2613
2613
|
function e(e, t) {
|
|
2614
2614
|
t === void 0 && (t = e.generateQueryId()), this.queryId = t, this.document = null, this.lastRequestId = 1, this.stopped = !1, this.observableQuery = null;
|
|
2615
2615
|
var n = this.cache = e.cache;
|
|
2616
|
-
|
|
2616
|
+
Ir.has(n) || (Ir.set(n, 0), Lr(n, "evict"), Lr(n, "modify"), Lr(n, "reset"));
|
|
2617
2617
|
}
|
|
2618
2618
|
return e.prototype.init = function(e) {
|
|
2619
|
-
var t = e.networkStatus ||
|
|
2620
|
-
return this.variables && this.networkStatus !==
|
|
2619
|
+
var t = e.networkStatus || p.loading;
|
|
2620
|
+
return this.variables && this.networkStatus !== p.loading && !O(this.variables, e.variables) && (t = p.setVariables), O(e.variables, this.variables) || (this.lastDiff = void 0, this.cancel()), Object.assign(this, {
|
|
2621
2621
|
document: e.document,
|
|
2622
2622
|
variables: e.variables,
|
|
2623
2623
|
networkError: null,
|
|
@@ -2628,11 +2628,11 @@ var Lr = function() {
|
|
|
2628
2628
|
this.lastDiff = void 0;
|
|
2629
2629
|
}, e.prototype.getDiff = function() {
|
|
2630
2630
|
var e = this, t = this.getDiffOptions();
|
|
2631
|
-
if (this.lastDiff &&
|
|
2631
|
+
if (this.lastDiff && O(t, this.lastDiff.options)) return this.lastDiff.diff;
|
|
2632
2632
|
this.updateWatch(this.variables);
|
|
2633
2633
|
var n = this.observableQuery;
|
|
2634
2634
|
if (n && n.options.fetchPolicy === "no-cache") return { complete: !1 };
|
|
2635
|
-
var r =
|
|
2635
|
+
var r = T("canonizeResults", function() {
|
|
2636
2636
|
return e.cache.diff(t);
|
|
2637
2637
|
});
|
|
2638
2638
|
return this.updateLastDiff(r, t), r;
|
|
@@ -2651,9 +2651,9 @@ var Lr = function() {
|
|
|
2651
2651
|
};
|
|
2652
2652
|
}, e.prototype.setDiff = function(e) {
|
|
2653
2653
|
var t = this, n, r = this.lastDiff && this.lastDiff.diff;
|
|
2654
|
-
e && !e.complete &&
|
|
2654
|
+
e && !e.complete && T("getLastError", function() {
|
|
2655
2655
|
return t.observableQuery?.getLastError();
|
|
2656
|
-
}) || (this.updateLastDiff(e),
|
|
2656
|
+
}) || (this.updateLastDiff(e), O(r && r.result, e && e.result) || (n = this.observableQuery) == null || n.scheduleNotify());
|
|
2657
2657
|
}, e.prototype.setObservableQuery = function(e) {
|
|
2658
2658
|
e !== this.observableQuery && (this.observableQuery = e, e && (e.queryInfo = this));
|
|
2659
2659
|
}, e.prototype.stop = function() {
|
|
@@ -2671,22 +2671,22 @@ var Lr = function() {
|
|
|
2671
2671
|
e === void 0 && (e = this.variables);
|
|
2672
2672
|
var n = this.observableQuery;
|
|
2673
2673
|
if (!(n && n.options.fetchPolicy === "no-cache")) {
|
|
2674
|
-
var r =
|
|
2674
|
+
var r = F(F({}, this.getDiffOptions(e)), {
|
|
2675
2675
|
watcher: this,
|
|
2676
2676
|
callback: function(e) {
|
|
2677
2677
|
return t.setDiff(e);
|
|
2678
2678
|
}
|
|
2679
2679
|
});
|
|
2680
|
-
(!this.lastWatch || !
|
|
2680
|
+
(!this.lastWatch || !O(r, this.lastWatch)) && (this.cancel(), this.cancelWatch = this.cache.watch(this.lastWatch = r));
|
|
2681
2681
|
}
|
|
2682
2682
|
}, e.prototype.resetLastWrite = function() {
|
|
2683
2683
|
this.lastWrite = void 0;
|
|
2684
2684
|
}, e.prototype.shouldWrite = function(e, t) {
|
|
2685
2685
|
var n = this.lastWrite;
|
|
2686
|
-
return !(n && n.dmCount ===
|
|
2686
|
+
return !(n && n.dmCount === Ir.get(this.cache) && O(t, n.variables) && O(e.data, n.result.data));
|
|
2687
2687
|
}, e.prototype.markResult = function(e, t, n, r) {
|
|
2688
|
-
var i = this, a, o = new
|
|
2689
|
-
if ((a = this.observableQuery) == null || a.resetNotifications(), "incremental" in e &&
|
|
2688
|
+
var i = this, a, o = new J(), s = I(e.errors) ? e.errors.slice(0) : [];
|
|
2689
|
+
if ((a = this.observableQuery) == null || a.resetNotifications(), "incremental" in e && I(e.incremental)) e.data = Et(this.getDiff().result, e);
|
|
2690
2690
|
else if ("hasNext" in e && e.hasNext) {
|
|
2691
2691
|
var c = this.getDiff();
|
|
2692
2692
|
e.data = o.merge(c.result, e.data);
|
|
@@ -2694,7 +2694,7 @@ var Lr = function() {
|
|
|
2694
2694
|
this.graphQLErrors = s, n.fetchPolicy === "no-cache" ? this.updateLastDiff({
|
|
2695
2695
|
result: e.data,
|
|
2696
2696
|
complete: !0
|
|
2697
|
-
}, this.getDiffOptions(n.variables)) : r !== 0 && (
|
|
2697
|
+
}, this.getDiffOptions(n.variables)) : r !== 0 && (zr(e, n.errorPolicy) ? this.cache.performTransaction(function(a) {
|
|
2698
2698
|
if (i.shouldWrite(e, n.variables)) a.writeQuery({
|
|
2699
2699
|
query: t,
|
|
2700
2700
|
data: e.data,
|
|
@@ -2703,36 +2703,36 @@ var Lr = function() {
|
|
|
2703
2703
|
}), i.lastWrite = {
|
|
2704
2704
|
result: e,
|
|
2705
2705
|
variables: n.variables,
|
|
2706
|
-
dmCount:
|
|
2706
|
+
dmCount: Ir.get(i.cache)
|
|
2707
2707
|
};
|
|
2708
2708
|
else if (i.lastDiff && i.lastDiff.diff.complete) {
|
|
2709
2709
|
e.data = i.lastDiff.diff.result;
|
|
2710
2710
|
return;
|
|
2711
2711
|
}
|
|
2712
|
-
var o = i.getDiffOptions(n.variables), s =
|
|
2712
|
+
var o = i.getDiffOptions(n.variables), s = T("canonizeResults", function() {
|
|
2713
2713
|
return a.diff(o);
|
|
2714
2714
|
});
|
|
2715
|
-
!i.stopped &&
|
|
2715
|
+
!i.stopped && O(i.variables, n.variables) && i.updateWatch(n.variables), i.updateLastDiff(s, o), s.complete && (e.data = s.result);
|
|
2716
2716
|
}) : this.lastWrite = void 0);
|
|
2717
2717
|
}, e.prototype.markReady = function() {
|
|
2718
|
-
return this.networkError = null, this.networkStatus =
|
|
2718
|
+
return this.networkError = null, this.networkStatus = p.ready;
|
|
2719
2719
|
}, e.prototype.markError = function(e) {
|
|
2720
2720
|
var t;
|
|
2721
|
-
return this.networkStatus =
|
|
2721
|
+
return this.networkStatus = p.error, this.lastWrite = void 0, (t = this.observableQuery) == null || t.resetNotifications(), e.graphQLErrors && (this.graphQLErrors = e.graphQLErrors), e.networkError && (this.networkError = e.networkError), e;
|
|
2722
2722
|
}, e;
|
|
2723
2723
|
}();
|
|
2724
|
-
function
|
|
2724
|
+
function zr(e, t) {
|
|
2725
2725
|
t === void 0 && (t = "none");
|
|
2726
|
-
var n = t === "ignore" || t === "all", r = !
|
|
2726
|
+
var n = t === "ignore" || t === "all", r = !Dt(e);
|
|
2727
2727
|
return !r && n && e.data && (r = !0), r;
|
|
2728
2728
|
}
|
|
2729
2729
|
//#endregion
|
|
2730
2730
|
//#region node_modules/@apollo/client/core/QueryManager.js
|
|
2731
|
-
var
|
|
2731
|
+
var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = function() {
|
|
2732
2732
|
function e(e) {
|
|
2733
2733
|
var t = this;
|
|
2734
|
-
this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new
|
|
2735
|
-
var n = new
|
|
2734
|
+
this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new b(h["queryManager.getDocumentInfo"] || 2e3), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new Me(!1), this.noCacheWarningsByQueryId = /* @__PURE__ */ new Set();
|
|
2735
|
+
var n = new rt(function(e) {
|
|
2736
2736
|
return t.cache.transformDocument(e);
|
|
2737
2737
|
}, { cache: !1 });
|
|
2738
2738
|
this.cache = e.cache, this.link = e.link, this.defaultOptions = e.defaultOptions, this.queryDeduplication = e.queryDeduplication, this.clientAwareness = e.clientAwareness, this.localState = e.localState, this.ssrMode = e.ssrMode, this.assumeImmutableResults = e.assumeImmutableResults, this.dataMasking = e.dataMasking;
|
|
@@ -2743,17 +2743,17 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2743
2743
|
var e = this;
|
|
2744
2744
|
this.queries.forEach(function(t, n) {
|
|
2745
2745
|
e.stopQueryNoBroadcast(n);
|
|
2746
|
-
}), this.cancelPendingFetches(
|
|
2746
|
+
}), this.cancelPendingFetches(N(35));
|
|
2747
2747
|
}, e.prototype.cancelPendingFetches = function(e) {
|
|
2748
2748
|
this.fetchCancelFns.forEach(function(t) {
|
|
2749
2749
|
return t(e);
|
|
2750
2750
|
}), this.fetchCancelFns.clear();
|
|
2751
2751
|
}, e.prototype.mutate = function(e) {
|
|
2752
|
-
return
|
|
2753
|
-
var t, n, r, i, a, o = e.mutation, s = e.variables, c = e.optimisticResponse, l = e.updateQueries, u = e.refetchQueries,
|
|
2754
|
-
return
|
|
2752
|
+
return V(this, arguments, void 0, function(e) {
|
|
2753
|
+
var t, n, r, i, a, o = e.mutation, s = e.variables, c = e.optimisticResponse, l = e.updateQueries, u = e.refetchQueries, f = u === void 0 ? [] : u, p = e.awaitRefetchQueries, m = p === void 0 ? !1 : p, h = e.update, g = e.onQueryUpdated, _ = e.fetchPolicy, v = _ === void 0 ? this.defaultOptions.mutate?.fetchPolicy || "network-only" : _, y = e.errorPolicy, b = y === void 0 ? this.defaultOptions.mutate?.errorPolicy || "none" : y, x = e.keepRootFields, S = e.context;
|
|
2754
|
+
return M(this, function(e) {
|
|
2755
2755
|
switch (e.label) {
|
|
2756
|
-
case 0: return R(o, 36), R(
|
|
2756
|
+
case 0: return R(o, 36), R(v === "network-only" || v === "no-cache", 37), t = this.generateMutationId(), o = this.cache.transformForLink(this.transform(o)), n = this.getDocumentInfo(o).hasClientExports, s = this.getVariables(o, s), n ? [4, this.localState.addExportedVariables(o, s, S)] : [3, 2];
|
|
2757
2757
|
case 1: s = e.sent(), e.label = 2;
|
|
2758
2758
|
case 2: return r = this.mutationStore && (this.mutationStore[t] = {
|
|
2759
2759
|
mutation: o,
|
|
@@ -2764,44 +2764,44 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2764
2764
|
mutationId: t,
|
|
2765
2765
|
document: o,
|
|
2766
2766
|
variables: s,
|
|
2767
|
-
fetchPolicy:
|
|
2768
|
-
errorPolicy:
|
|
2769
|
-
context:
|
|
2767
|
+
fetchPolicy: v,
|
|
2768
|
+
errorPolicy: b,
|
|
2769
|
+
context: S,
|
|
2770
2770
|
updateQueries: l,
|
|
2771
|
-
update:
|
|
2772
|
-
keepRootFields:
|
|
2771
|
+
update: h,
|
|
2772
|
+
keepRootFields: x
|
|
2773
2773
|
}), this.broadcastQueries(), a = this, [2, new Promise(function(e, n) {
|
|
2774
|
-
return
|
|
2775
|
-
if (
|
|
2774
|
+
return yt(a.getObservableFromLink(o, F(F({}, S), { optimisticResponse: i ? c : void 0 }), s, {}, !1), function(e) {
|
|
2775
|
+
if (Dt(e) && b === "none") throw new d({ graphQLErrors: Ot(e) });
|
|
2776
2776
|
r && (r.loading = !1, r.error = null);
|
|
2777
|
-
var n =
|
|
2778
|
-
return typeof
|
|
2777
|
+
var n = F({}, e);
|
|
2778
|
+
return typeof f == "function" && (f = f(n)), b === "ignore" && Dt(n) && delete n.errors, a.markMutationResult({
|
|
2779
2779
|
mutationId: t,
|
|
2780
2780
|
result: n,
|
|
2781
2781
|
document: o,
|
|
2782
2782
|
variables: s,
|
|
2783
|
-
fetchPolicy:
|
|
2784
|
-
errorPolicy:
|
|
2785
|
-
context:
|
|
2786
|
-
update:
|
|
2783
|
+
fetchPolicy: v,
|
|
2784
|
+
errorPolicy: b,
|
|
2785
|
+
context: S,
|
|
2786
|
+
update: h,
|
|
2787
2787
|
updateQueries: l,
|
|
2788
|
-
awaitRefetchQueries:
|
|
2789
|
-
refetchQueries:
|
|
2788
|
+
awaitRefetchQueries: m,
|
|
2789
|
+
refetchQueries: f,
|
|
2790
2790
|
removeOptimistic: i ? t : void 0,
|
|
2791
|
-
onQueryUpdated:
|
|
2792
|
-
keepRootFields:
|
|
2791
|
+
onQueryUpdated: g,
|
|
2792
|
+
keepRootFields: x
|
|
2793
2793
|
});
|
|
2794
2794
|
}).subscribe({
|
|
2795
2795
|
next: function(n) {
|
|
2796
|
-
a.broadcastQueries(), (!("hasNext" in n) || n.hasNext === !1) && e(
|
|
2796
|
+
a.broadcastQueries(), (!("hasNext" in n) || n.hasNext === !1) && e(F(F({}, n), { data: a.maskOperation({
|
|
2797
2797
|
document: o,
|
|
2798
2798
|
data: n.data,
|
|
2799
|
-
fetchPolicy:
|
|
2799
|
+
fetchPolicy: v,
|
|
2800
2800
|
id: t
|
|
2801
2801
|
}) }));
|
|
2802
2802
|
},
|
|
2803
2803
|
error: function(e) {
|
|
2804
|
-
r && (r.loading = !1, r.error = e), i && a.cache.removeOptimistic(t), a.broadcastQueries(), n(e instanceof
|
|
2804
|
+
r && (r.loading = !1, r.error = e), i && a.cache.removeOptimistic(t), a.broadcastQueries(), n(e instanceof d ? e : new d({ networkError: e }));
|
|
2805
2805
|
}
|
|
2806
2806
|
});
|
|
2807
2807
|
})];
|
|
@@ -2812,13 +2812,13 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2812
2812
|
var n = this;
|
|
2813
2813
|
t === void 0 && (t = this.cache);
|
|
2814
2814
|
var r = e.result, i = [], a = e.fetchPolicy === "no-cache";
|
|
2815
|
-
if (!a &&
|
|
2816
|
-
if (
|
|
2815
|
+
if (!a && zr(r, e.errorPolicy)) {
|
|
2816
|
+
if (St(r) || i.push({
|
|
2817
2817
|
result: r.data,
|
|
2818
2818
|
dataId: "ROOT_MUTATION",
|
|
2819
2819
|
query: e.document,
|
|
2820
2820
|
variables: e.variables
|
|
2821
|
-
}),
|
|
2821
|
+
}), St(r) && I(r.incremental)) {
|
|
2822
2822
|
var o = t.diff({
|
|
2823
2823
|
id: "ROOT_MUTATION",
|
|
2824
2824
|
query: this.getDocumentInfo(e.document).asQuery,
|
|
@@ -2826,7 +2826,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2826
2826
|
optimistic: !1,
|
|
2827
2827
|
returnPartialData: !0
|
|
2828
2828
|
}), s = void 0;
|
|
2829
|
-
o.result && (s =
|
|
2829
|
+
o.result && (s = Et(o.result, r)), s !== void 0 && (r.data = s, i.push({
|
|
2830
2830
|
result: s,
|
|
2831
2831
|
dataId: "ROOT_MUTATION",
|
|
2832
2832
|
query: e.document,
|
|
@@ -2836,7 +2836,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2836
2836
|
var c = e.updateQueries;
|
|
2837
2837
|
c && this.queries.forEach(function(e, a) {
|
|
2838
2838
|
var o = e.observableQuery, s = o && o.queryName;
|
|
2839
|
-
if (!(!s || !
|
|
2839
|
+
if (!(!s || !Br.call(c, s))) {
|
|
2840
2840
|
var l = c[s], u = n.queries.get(a), d = u.document, f = u.variables, p = t.diff({
|
|
2841
2841
|
query: d,
|
|
2842
2842
|
variables: f,
|
|
@@ -2846,7 +2846,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2846
2846
|
if (p.complete && m) {
|
|
2847
2847
|
var h = l(m, {
|
|
2848
2848
|
mutationResult: r,
|
|
2849
|
-
queryName: d &&
|
|
2849
|
+
queryName: d && Ve(d) || void 0,
|
|
2850
2850
|
queryVariables: f
|
|
2851
2851
|
});
|
|
2852
2852
|
h && i.push({
|
|
@@ -2866,7 +2866,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2866
2866
|
a || i.forEach(function(e) {
|
|
2867
2867
|
return t.write(e);
|
|
2868
2868
|
});
|
|
2869
|
-
var o = e.update, s = !
|
|
2869
|
+
var o = e.update, s = !wt(r) || St(r) && !r.hasNext;
|
|
2870
2870
|
if (o) {
|
|
2871
2871
|
if (!a) {
|
|
2872
2872
|
var c = t.diff({
|
|
@@ -2876,7 +2876,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2876
2876
|
optimistic: !1,
|
|
2877
2877
|
returnPartialData: !0
|
|
2878
2878
|
});
|
|
2879
|
-
c.complete && (r =
|
|
2879
|
+
c.complete && (r = F(F({}, r), { data: c.result }), "incremental" in r && delete r.incremental, "hasNext" in r && delete r.hasNext);
|
|
2880
2880
|
}
|
|
2881
2881
|
s && o(t, r, {
|
|
2882
2882
|
context: e.context,
|
|
@@ -2903,10 +2903,10 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2903
2903
|
}
|
|
2904
2904
|
return Promise.resolve(r);
|
|
2905
2905
|
}, e.prototype.markMutationOptimistic = function(e, t) {
|
|
2906
|
-
var n = this, r = typeof e == "function" ? e(t.variables, { IGNORE:
|
|
2907
|
-
return r ===
|
|
2906
|
+
var n = this, r = typeof e == "function" ? e(t.variables, { IGNORE: Vr }) : e;
|
|
2907
|
+
return r === Vr ? !1 : (this.cache.recordOptimisticTransaction(function(e) {
|
|
2908
2908
|
try {
|
|
2909
|
-
n.markMutationResult(
|
|
2909
|
+
n.markMutationResult(F(F({}, t), { result: { data: r } }), e);
|
|
2910
2910
|
} catch (e) {
|
|
2911
2911
|
globalThis.__DEV__ !== !1 && R.error(e);
|
|
2912
2912
|
}
|
|
@@ -2932,12 +2932,12 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2932
2932
|
var t = this.transformCache;
|
|
2933
2933
|
if (!t.has(e)) {
|
|
2934
2934
|
var n = {
|
|
2935
|
-
hasClientExports:
|
|
2935
|
+
hasClientExports: ue(e),
|
|
2936
2936
|
hasForcedResolvers: this.localState.shouldForceResolvers(e),
|
|
2937
|
-
hasNonreactiveDirective:
|
|
2938
|
-
nonReactiveQuery:
|
|
2937
|
+
hasNonreactiveDirective: le(["nonreactive"], e),
|
|
2938
|
+
nonReactiveQuery: mt(e),
|
|
2939
2939
|
clientQuery: this.localState.clientQuery(e),
|
|
2940
|
-
serverQuery:
|
|
2940
|
+
serverQuery: ut([
|
|
2941
2941
|
{
|
|
2942
2942
|
name: "client",
|
|
2943
2943
|
remove: !0
|
|
@@ -2946,25 +2946,25 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2946
2946
|
{ name: "nonreactive" },
|
|
2947
2947
|
{ name: "unmask" }
|
|
2948
2948
|
], e),
|
|
2949
|
-
defaultVars:
|
|
2950
|
-
asQuery:
|
|
2951
|
-
return e.kind === "OperationDefinition" && e.operation !== "query" ?
|
|
2949
|
+
defaultVars: Ee(Le(e)),
|
|
2950
|
+
asQuery: F(F({}, e), { definitions: e.definitions.map(function(e) {
|
|
2951
|
+
return e.kind === "OperationDefinition" && e.operation !== "query" ? F(F({}, e), { operation: "query" }) : e;
|
|
2952
2952
|
}) })
|
|
2953
2953
|
};
|
|
2954
2954
|
t.set(e, n);
|
|
2955
2955
|
}
|
|
2956
2956
|
return t.get(e);
|
|
2957
2957
|
}, e.prototype.getVariables = function(e, t) {
|
|
2958
|
-
return
|
|
2958
|
+
return F(F({}, this.getDocumentInfo(e).defaultVars), t);
|
|
2959
2959
|
}, e.prototype.watchQuery = function(e) {
|
|
2960
2960
|
var t = this.transform(e.query);
|
|
2961
|
-
e =
|
|
2962
|
-
var n = new
|
|
2961
|
+
e = F(F({}, e), { variables: this.getVariables(t, e.variables) }), e.notifyOnNetworkStatusChange === void 0 && (e.notifyOnNetworkStatusChange = !1);
|
|
2962
|
+
var n = new Rr(this), r = new i({
|
|
2963
2963
|
queryManager: this,
|
|
2964
2964
|
queryInfo: n,
|
|
2965
2965
|
options: e
|
|
2966
2966
|
});
|
|
2967
|
-
return r.lastQuery = t,
|
|
2967
|
+
return r.lastQuery = t, i.inactiveOnCreation.getValue() || this.queries.set(r.queryId, n), n.init({
|
|
2968
2968
|
document: t,
|
|
2969
2969
|
observableQuery: r,
|
|
2970
2970
|
variables: r.variables
|
|
@@ -2973,8 +2973,8 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2973
2973
|
var n = this;
|
|
2974
2974
|
t === void 0 && (t = this.generateQueryId()), R(e.query, 38), R(e.query.kind === "Document", 39), R(!e.returnPartialData, 40), R(!e.pollInterval, 41);
|
|
2975
2975
|
var r = this.transform(e.query);
|
|
2976
|
-
return this.fetchQuery(t,
|
|
2977
|
-
return i &&
|
|
2976
|
+
return this.fetchQuery(t, F(F({}, e), { query: r })).then(function(i) {
|
|
2977
|
+
return i && F(F({}, i), { data: n.maskOperation({
|
|
2978
2978
|
document: r,
|
|
2979
2979
|
data: i.data,
|
|
2980
2980
|
fetchPolicy: e.fetchPolicy,
|
|
@@ -2995,41 +2995,41 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
2995
2995
|
var t = this.queries.get(e);
|
|
2996
2996
|
t && t.stop();
|
|
2997
2997
|
}, e.prototype.clearStore = function(e) {
|
|
2998
|
-
return e === void 0 && (e = { discardWatches: !0 }), this.cancelPendingFetches(
|
|
2999
|
-
e.observableQuery ? e.networkStatus =
|
|
2998
|
+
return e === void 0 && (e = { discardWatches: !0 }), this.cancelPendingFetches(N(42)), this.queries.forEach(function(e) {
|
|
2999
|
+
e.observableQuery ? e.networkStatus = p.loading : e.stop();
|
|
3000
3000
|
}), this.mutationStore && (this.mutationStore = Object.create(null)), this.cache.reset(e);
|
|
3001
3001
|
}, e.prototype.getObservableQueries = function(e) {
|
|
3002
3002
|
var t = this;
|
|
3003
3003
|
e === void 0 && (e = "active");
|
|
3004
|
-
var n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(),
|
|
3004
|
+
var n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
|
|
3005
3005
|
return Array.isArray(e) && e.forEach(function(e) {
|
|
3006
|
-
if (typeof e == "string") r.set(e, e),
|
|
3007
|
-
else if (
|
|
3008
|
-
var n =
|
|
3009
|
-
r.set(n,
|
|
3010
|
-
} else
|
|
3006
|
+
if (typeof e == "string") r.set(e, e), a.set(e, !1);
|
|
3007
|
+
else if (ze(e)) {
|
|
3008
|
+
var n = q(t.transform(e));
|
|
3009
|
+
r.set(n, Ve(e)), a.set(n, !1);
|
|
3010
|
+
} else D(e) && e.query && o.add(e);
|
|
3011
3011
|
}), this.queries.forEach(function(t, r) {
|
|
3012
|
-
var
|
|
3013
|
-
if (
|
|
3012
|
+
var i = t.observableQuery, o = t.document;
|
|
3013
|
+
if (i) {
|
|
3014
3014
|
if (e === "all") {
|
|
3015
|
-
n.set(r,
|
|
3015
|
+
n.set(r, i);
|
|
3016
3016
|
return;
|
|
3017
3017
|
}
|
|
3018
|
-
var s =
|
|
3019
|
-
if (
|
|
3020
|
-
(e === "active" || s &&
|
|
3018
|
+
var s = i.queryName;
|
|
3019
|
+
if (i.options.fetchPolicy === "standby" || e === "active" && !i.hasObservers()) return;
|
|
3020
|
+
(e === "active" || s && a.has(s) || o && a.has(q(o))) && (n.set(r, i), s && a.set(s, !0), o && a.set(q(o), !0));
|
|
3021
3021
|
}
|
|
3022
|
-
}),
|
|
3023
|
-
var r =
|
|
3022
|
+
}), o.size && o.forEach(function(e) {
|
|
3023
|
+
var r = Oe("legacyOneTimeQuery"), a = t.getOrCreateQuery(r).init({
|
|
3024
3024
|
document: e.query,
|
|
3025
3025
|
variables: e.variables
|
|
3026
|
-
}),
|
|
3026
|
+
}), o = new i({
|
|
3027
3027
|
queryManager: t,
|
|
3028
|
-
queryInfo:
|
|
3029
|
-
options:
|
|
3028
|
+
queryInfo: a,
|
|
3029
|
+
options: F(F({}, e), { fetchPolicy: "network-only" })
|
|
3030
3030
|
});
|
|
3031
|
-
R(
|
|
3032
|
-
}), globalThis.__DEV__ !== !1 &&
|
|
3031
|
+
R(o.queryId === r), a.setObservableQuery(o), n.set(r, o);
|
|
3032
|
+
}), globalThis.__DEV__ !== !1 && a.size && a.forEach(function(e, t) {
|
|
3033
3033
|
if (!e) {
|
|
3034
3034
|
var n = r.get(t);
|
|
3035
3035
|
n ? globalThis.__DEV__ !== !1 && R.warn(43, n) : globalThis.__DEV__ !== !1 && R.warn(44);
|
|
@@ -3041,25 +3041,25 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3041
3041
|
var n = [];
|
|
3042
3042
|
return this.getObservableQueries(e ? "all" : "active").forEach(function(r, i) {
|
|
3043
3043
|
var a = r.options.fetchPolicy;
|
|
3044
|
-
|
|
3044
|
+
T("resetLastResults", function() {
|
|
3045
3045
|
return r.resetLastResults();
|
|
3046
3046
|
}), (e || a !== "standby" && a !== "cache-only") && n.push(r.refetch()), (t.queries.get(i) || r.queryInfo).setDiff(null);
|
|
3047
3047
|
}), this.broadcastQueries(), Promise.all(n);
|
|
3048
3048
|
}, e.prototype.startGraphQLSubscription = function(e) {
|
|
3049
|
-
var t = this, n = e.query, r = e.variables, i = e.fetchPolicy, a = e.errorPolicy, o = a === void 0 ? "none" : a, s = e.context, c = s === void 0 ? {} : s, l = e.extensions,
|
|
3049
|
+
var t = this, n = e.query, r = e.variables, i = e.fetchPolicy, a = e.errorPolicy, o = a === void 0 ? "none" : a, s = e.context, c = s === void 0 ? {} : s, l = e.extensions, u = l === void 0 ? {} : l;
|
|
3050
3050
|
n = this.transform(n), r = this.getVariables(n, r);
|
|
3051
3051
|
var f = function(e) {
|
|
3052
|
-
return t.getObservableFromLink(n, c, e,
|
|
3053
|
-
i !== "no-cache" && (
|
|
3052
|
+
return t.getObservableFromLink(n, c, e, u).map(function(r) {
|
|
3053
|
+
i !== "no-cache" && (zr(r, o) && t.cache.write({
|
|
3054
3054
|
query: n,
|
|
3055
3055
|
result: r.data,
|
|
3056
3056
|
dataId: "ROOT_SUBSCRIPTION",
|
|
3057
3057
|
variables: e
|
|
3058
3058
|
}), t.broadcastQueries());
|
|
3059
|
-
var a =
|
|
3059
|
+
var a = Dt(r), s = je(r);
|
|
3060
3060
|
if (a || s) {
|
|
3061
3061
|
var c = {};
|
|
3062
|
-
if (a && (c.graphQLErrors = r.errors), s && (c.protocolErrors = r.extensions[
|
|
3062
|
+
if (a && (c.graphQLErrors = r.errors), s && (c.protocolErrors = r.extensions[v]), o === "none" || s) throw new d(c);
|
|
3063
3063
|
}
|
|
3064
3064
|
return o === "ignore" && delete r.errors, r;
|
|
3065
3065
|
});
|
|
@@ -3089,91 +3089,91 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3089
3089
|
});
|
|
3090
3090
|
}, e.prototype.getLocalState = function() {
|
|
3091
3091
|
return this.localState;
|
|
3092
|
-
}, e.prototype.getObservableFromLink = function(e, t, r, i
|
|
3093
|
-
var
|
|
3094
|
-
|
|
3095
|
-
var
|
|
3096
|
-
if (
|
|
3097
|
-
var
|
|
3098
|
-
query:
|
|
3099
|
-
variables:
|
|
3100
|
-
operationName:
|
|
3101
|
-
context: this.prepareContext(
|
|
3102
|
-
extensions:
|
|
3092
|
+
}, e.prototype.getObservableFromLink = function(e, t, n, r, i) {
|
|
3093
|
+
var a = this;
|
|
3094
|
+
i === void 0 && (i = t?.queryDeduplication ?? this.queryDeduplication);
|
|
3095
|
+
var o, s = this.getDocumentInfo(e), c = s.serverQuery, l = s.clientQuery;
|
|
3096
|
+
if (c) {
|
|
3097
|
+
var u = this, d = u.inFlightLinkObservables, f = u.link, p = {
|
|
3098
|
+
query: c,
|
|
3099
|
+
variables: n,
|
|
3100
|
+
operationName: Ve(c) || void 0,
|
|
3101
|
+
context: this.prepareContext(F(F({}, t), { forceFetch: !i })),
|
|
3102
|
+
extensions: r
|
|
3103
3103
|
};
|
|
3104
|
-
if (t =
|
|
3105
|
-
var
|
|
3106
|
-
if (
|
|
3107
|
-
var
|
|
3108
|
-
|
|
3109
|
-
t === "next" && "hasNext" in n && n.hasNext ?
|
|
3104
|
+
if (t = p.context, i) {
|
|
3105
|
+
var m = q(c), h = we(n), g = d.lookup(m, h);
|
|
3106
|
+
if (o = g.observable, !o) {
|
|
3107
|
+
var _ = new xt([zt(f, p)]);
|
|
3108
|
+
o = g.observable = _, _.beforeNext(function e(t, n) {
|
|
3109
|
+
t === "next" && "hasNext" in n && n.hasNext ? _.beforeNext(e) : d.remove(m, h);
|
|
3110
3110
|
});
|
|
3111
3111
|
}
|
|
3112
|
-
} else
|
|
3113
|
-
} else
|
|
3114
|
-
return
|
|
3115
|
-
return
|
|
3116
|
-
document:
|
|
3112
|
+
} else o = new xt([zt(f, p)]);
|
|
3113
|
+
} else o = new xt([z.of({ data: {} })]), t = this.prepareContext(t);
|
|
3114
|
+
return l && (o = yt(o, function(e) {
|
|
3115
|
+
return a.localState.runResolvers({
|
|
3116
|
+
document: l,
|
|
3117
3117
|
remoteResult: e,
|
|
3118
3118
|
context: t,
|
|
3119
|
-
variables:
|
|
3119
|
+
variables: n
|
|
3120
3120
|
});
|
|
3121
|
-
})),
|
|
3121
|
+
})), o;
|
|
3122
3122
|
}, e.prototype.getResultsFromLink = function(e, t, n) {
|
|
3123
3123
|
var r = e.lastRequestId = this.generateRequestId(), i = this.cache.transformForLink(n.query);
|
|
3124
|
-
return
|
|
3125
|
-
var o =
|
|
3124
|
+
return yt(this.getObservableFromLink(i, n.context, n.variables), function(a) {
|
|
3125
|
+
var o = Ot(a), s = o.length > 0, c = n.errorPolicy;
|
|
3126
3126
|
if (r >= e.lastRequestId) {
|
|
3127
|
-
if (s && c === "none") throw e.markError(new
|
|
3127
|
+
if (s && c === "none") throw e.markError(new d({ graphQLErrors: o }));
|
|
3128
3128
|
e.markResult(a, i, n, t), e.markReady();
|
|
3129
3129
|
}
|
|
3130
3130
|
var l = {
|
|
3131
3131
|
data: a.data,
|
|
3132
3132
|
loading: !1,
|
|
3133
|
-
networkStatus:
|
|
3133
|
+
networkStatus: p.ready
|
|
3134
3134
|
};
|
|
3135
|
-
return s && c === "none" && (l.data = void 0), s && c !== "ignore" && (l.errors = o, l.networkStatus =
|
|
3135
|
+
return s && c === "none" && (l.data = void 0), s && c !== "ignore" && (l.errors = o, l.networkStatus = p.error), l;
|
|
3136
3136
|
}, function(t) {
|
|
3137
|
-
var n =
|
|
3137
|
+
var n = g(t) ? t : new d({ networkError: t });
|
|
3138
3138
|
throw r >= e.lastRequestId && e.markError(n), n;
|
|
3139
3139
|
});
|
|
3140
3140
|
}, e.prototype.fetchConcastWithInfo = function(e, t, n, r) {
|
|
3141
3141
|
var i = this;
|
|
3142
|
-
n === void 0 && (n =
|
|
3143
|
-
var a = this.getVariables(r, t.variables), o = this.defaultOptions.watchQuery, s = t.fetchPolicy, c = s === void 0 ? o && o.fetchPolicy || "cache-first" : s, l = t.errorPolicy, u = l === void 0 ? o && o.errorPolicy || "none" : l, d = t.returnPartialData, f = d === void 0 ? !1 : d,
|
|
3142
|
+
n === void 0 && (n = p.loading), r === void 0 && (r = t.query);
|
|
3143
|
+
var a = this.getVariables(r, t.variables), o = this.defaultOptions.watchQuery, s = t.fetchPolicy, c = s === void 0 ? o && o.fetchPolicy || "cache-first" : s, l = t.errorPolicy, u = l === void 0 ? o && o.errorPolicy || "none" : l, d = t.returnPartialData, f = d === void 0 ? !1 : d, m = t.notifyOnNetworkStatusChange, h = m === void 0 ? !1 : m, g = t.context, _ = Object.assign({}, t, {
|
|
3144
3144
|
query: r,
|
|
3145
3145
|
variables: a,
|
|
3146
3146
|
fetchPolicy: c,
|
|
3147
3147
|
errorPolicy: u,
|
|
3148
3148
|
returnPartialData: f,
|
|
3149
|
-
notifyOnNetworkStatusChange:
|
|
3150
|
-
context:
|
|
3151
|
-
}),
|
|
3152
|
-
|
|
3153
|
-
var a = i.fetchQueryByPolicy(e,
|
|
3154
|
-
return
|
|
3155
|
-
},
|
|
3149
|
+
notifyOnNetworkStatusChange: h,
|
|
3150
|
+
context: g === void 0 ? {} : g
|
|
3151
|
+
}), v = function(r) {
|
|
3152
|
+
_.variables = r;
|
|
3153
|
+
var a = i.fetchQueryByPolicy(e, _, n);
|
|
3154
|
+
return _.fetchPolicy !== "standby" && a.sources.length > 0 && e.observableQuery && e.observableQuery.applyNextFetchPolicy("after-fetch", t), a;
|
|
3155
|
+
}, y = function() {
|
|
3156
3156
|
return i.fetchCancelFns.delete(e.queryId);
|
|
3157
3157
|
};
|
|
3158
3158
|
this.fetchCancelFns.set(e.queryId, function(e) {
|
|
3159
|
-
|
|
3160
|
-
return
|
|
3159
|
+
y(), setTimeout(function() {
|
|
3160
|
+
return b.cancel(e);
|
|
3161
3161
|
});
|
|
3162
3162
|
});
|
|
3163
|
-
var
|
|
3164
|
-
if (this.getDocumentInfo(
|
|
3163
|
+
var b, x;
|
|
3164
|
+
if (this.getDocumentInfo(_.query).hasClientExports) b = new xt(this.localState.addExportedVariables(_.query, _.variables, _.context).then(v).then(function(e) {
|
|
3165
3165
|
return e.sources;
|
|
3166
|
-
})),
|
|
3166
|
+
})), x = !0;
|
|
3167
3167
|
else {
|
|
3168
|
-
var
|
|
3169
|
-
|
|
3168
|
+
var S = v(_.variables);
|
|
3169
|
+
x = S.fromLink, b = new xt(S.sources);
|
|
3170
3170
|
}
|
|
3171
|
-
return
|
|
3172
|
-
concast:
|
|
3173
|
-
fromLink:
|
|
3171
|
+
return b.promise.then(y, y), {
|
|
3172
|
+
concast: b,
|
|
3173
|
+
fromLink: x
|
|
3174
3174
|
};
|
|
3175
3175
|
}, e.prototype.refetchQueries = function(e) {
|
|
3176
|
-
var t = this, n = e.updateCache, r = e.include, i = e.optimistic, a = i === void 0 ? !1 : i, o = e.removeOptimistic, s = o === void 0 ? a ?
|
|
3176
|
+
var t = this, n = e.updateCache, r = e.include, i = e.optimistic, a = i === void 0 ? !1 : i, o = e.removeOptimistic, s = o === void 0 ? a ? Oe("refetchQueries") : void 0 : o, c = e.onQueryUpdated, l = /* @__PURE__ */ new Map();
|
|
3177
3177
|
r && this.getObservableQueries(r).forEach(function(e, n) {
|
|
3178
3178
|
l.set(n, {
|
|
3179
3179
|
oq: e,
|
|
@@ -3186,7 +3186,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3186
3186
|
optimistic: a && s || !1,
|
|
3187
3187
|
removeOptimistic: s,
|
|
3188
3188
|
onWatchUpdated: function(e, t, n) {
|
|
3189
|
-
var r = e.watcher instanceof
|
|
3189
|
+
var r = e.watcher instanceof Rr && e.watcher.observableQuery;
|
|
3190
3190
|
if (r) {
|
|
3191
3191
|
if (c) {
|
|
3192
3192
|
l.delete(r.queryId);
|
|
@@ -3202,98 +3202,98 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3202
3202
|
}
|
|
3203
3203
|
}), l.size && l.forEach(function(e, n) {
|
|
3204
3204
|
var r = e.oq, i = e.lastDiff, a = e.diff, o;
|
|
3205
|
-
c && (a || (a =
|
|
3205
|
+
c && (a || (a = T("canonizeResults", function() {
|
|
3206
3206
|
return t.cache.diff(r.queryInfo.getDiffOptions());
|
|
3207
3207
|
})), o = c(r, a, i)), (!c || o === !0) && (o = r.refetch()), o !== !1 && u.set(r, o), n.indexOf("legacyOneTimeQuery") >= 0 && t.stopQueryNoBroadcast(n);
|
|
3208
3208
|
}), s && this.cache.removeOptimistic(s), u;
|
|
3209
3209
|
}, e.prototype.maskOperation = function(e) {
|
|
3210
3210
|
var t = e.document, n = e.data;
|
|
3211
3211
|
if (globalThis.__DEV__ !== !1) {
|
|
3212
|
-
var r = e.fetchPolicy, i = e.id, a =
|
|
3213
|
-
this.dataMasking && r === "no-cache" && !
|
|
3212
|
+
var r = e.fetchPolicy, i = e.id, a = Le(t)?.operation, o = (a?.[0] ?? "o") + i;
|
|
3213
|
+
this.dataMasking && r === "no-cache" && !m(t) && !this.noCacheWarningsByQueryId.has(o) && (this.noCacheWarningsByQueryId.add(o), globalThis.__DEV__ !== !1 && R.warn(45, Ve(t) ?? `Unnamed ${a ?? "operation"}`));
|
|
3214
3214
|
}
|
|
3215
|
-
return this.dataMasking ?
|
|
3215
|
+
return this.dataMasking ? Tn(n, t, this.cache) : n;
|
|
3216
3216
|
}, e.prototype.maskFragment = function(e) {
|
|
3217
3217
|
var t = e.data, n = e.fragment, r = e.fragmentName;
|
|
3218
|
-
return this.dataMasking ?
|
|
3218
|
+
return this.dataMasking ? wn(t, n, this.cache, r) : t;
|
|
3219
3219
|
}, e.prototype.fetchQueryByPolicy = function(e, t, n) {
|
|
3220
|
-
var
|
|
3220
|
+
var r = this, i = t.query, a = t.variables, o = t.fetchPolicy, s = t.refetchWritePolicy, c = t.errorPolicy, l = t.returnPartialData, u = t.context, d = t.notifyOnNetworkStatusChange, f = e.networkStatus;
|
|
3221
3221
|
e.init({
|
|
3222
|
-
document:
|
|
3223
|
-
variables:
|
|
3222
|
+
document: i,
|
|
3223
|
+
variables: a,
|
|
3224
3224
|
networkStatus: n
|
|
3225
3225
|
});
|
|
3226
|
-
var
|
|
3226
|
+
var m = function() {
|
|
3227
3227
|
return e.getDiff();
|
|
3228
|
-
},
|
|
3229
|
-
n === void 0 && (n = e.networkStatus ||
|
|
3230
|
-
var
|
|
3231
|
-
globalThis.__DEV__ !== !1 && !
|
|
3232
|
-
var
|
|
3233
|
-
return z.of(
|
|
3228
|
+
}, h = function(t, n) {
|
|
3229
|
+
n === void 0 && (n = e.networkStatus || p.loading);
|
|
3230
|
+
var o = t.result;
|
|
3231
|
+
globalThis.__DEV__ !== !1 && !l && !O(o, {}) && ae(t.missing);
|
|
3232
|
+
var s = function(e) {
|
|
3233
|
+
return z.of(F({
|
|
3234
3234
|
data: e,
|
|
3235
|
-
loading:
|
|
3235
|
+
loading: ie(n),
|
|
3236
3236
|
networkStatus: n
|
|
3237
3237
|
}, t.complete ? null : { partial: !0 }));
|
|
3238
3238
|
};
|
|
3239
|
-
return
|
|
3240
|
-
document:
|
|
3241
|
-
remoteResult: { data:
|
|
3242
|
-
context:
|
|
3243
|
-
variables:
|
|
3239
|
+
return o && r.getDocumentInfo(i).hasForcedResolvers ? r.localState.runResolvers({
|
|
3240
|
+
document: i,
|
|
3241
|
+
remoteResult: { data: o },
|
|
3242
|
+
context: u,
|
|
3243
|
+
variables: a,
|
|
3244
3244
|
onlyRunForcedResolvers: !0
|
|
3245
3245
|
}).then(function(e) {
|
|
3246
|
-
return
|
|
3247
|
-
}) :
|
|
3248
|
-
},
|
|
3249
|
-
return
|
|
3250
|
-
query:
|
|
3251
|
-
variables:
|
|
3252
|
-
context:
|
|
3253
|
-
fetchPolicy:
|
|
3254
|
-
errorPolicy:
|
|
3246
|
+
return s(e.data || void 0);
|
|
3247
|
+
}) : c === "none" && n === p.refetch && Array.isArray(t.missing) ? s(void 0) : s(o);
|
|
3248
|
+
}, g = o === "no-cache" ? 0 : n === p.refetch && s !== "merge" ? 1 : 2, _ = function() {
|
|
3249
|
+
return r.getResultsFromLink(e, g, {
|
|
3250
|
+
query: i,
|
|
3251
|
+
variables: a,
|
|
3252
|
+
context: u,
|
|
3253
|
+
fetchPolicy: o,
|
|
3254
|
+
errorPolicy: c
|
|
3255
3255
|
});
|
|
3256
|
-
},
|
|
3257
|
-
switch (
|
|
3256
|
+
}, v = d && typeof f == "number" && f !== n && ie(n);
|
|
3257
|
+
switch (o) {
|
|
3258
3258
|
default:
|
|
3259
3259
|
case "cache-first":
|
|
3260
|
-
var
|
|
3261
|
-
return
|
|
3260
|
+
var y = m();
|
|
3261
|
+
return y.complete ? {
|
|
3262
3262
|
fromLink: !1,
|
|
3263
|
-
sources: [
|
|
3264
|
-
} :
|
|
3263
|
+
sources: [h(y, e.markReady())]
|
|
3264
|
+
} : l || v ? {
|
|
3265
3265
|
fromLink: !0,
|
|
3266
|
-
sources: [
|
|
3266
|
+
sources: [h(y), _()]
|
|
3267
3267
|
} : {
|
|
3268
3268
|
fromLink: !0,
|
|
3269
|
-
sources: [
|
|
3269
|
+
sources: [_()]
|
|
3270
3270
|
};
|
|
3271
3271
|
case "cache-and-network":
|
|
3272
|
-
var
|
|
3273
|
-
return
|
|
3272
|
+
var y = m();
|
|
3273
|
+
return y.complete || l || v ? {
|
|
3274
3274
|
fromLink: !0,
|
|
3275
|
-
sources: [
|
|
3275
|
+
sources: [h(y), _()]
|
|
3276
3276
|
} : {
|
|
3277
3277
|
fromLink: !0,
|
|
3278
|
-
sources: [
|
|
3278
|
+
sources: [_()]
|
|
3279
3279
|
};
|
|
3280
3280
|
case "cache-only": return {
|
|
3281
3281
|
fromLink: !1,
|
|
3282
|
-
sources: [
|
|
3282
|
+
sources: [h(m(), e.markReady())]
|
|
3283
3283
|
};
|
|
3284
|
-
case "network-only": return
|
|
3284
|
+
case "network-only": return v ? {
|
|
3285
3285
|
fromLink: !0,
|
|
3286
|
-
sources: [
|
|
3286
|
+
sources: [h(m()), _()]
|
|
3287
3287
|
} : {
|
|
3288
3288
|
fromLink: !0,
|
|
3289
|
-
sources: [
|
|
3289
|
+
sources: [_()]
|
|
3290
3290
|
};
|
|
3291
|
-
case "no-cache": return
|
|
3291
|
+
case "no-cache": return v ? {
|
|
3292
3292
|
fromLink: !0,
|
|
3293
|
-
sources: [
|
|
3293
|
+
sources: [h(e.getDiff()), _()]
|
|
3294
3294
|
} : {
|
|
3295
3295
|
fromLink: !0,
|
|
3296
|
-
sources: [
|
|
3296
|
+
sources: [_()]
|
|
3297
3297
|
};
|
|
3298
3298
|
case "standby": return {
|
|
3299
3299
|
fromLink: !1,
|
|
@@ -3301,13 +3301,13 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3301
3301
|
};
|
|
3302
3302
|
}
|
|
3303
3303
|
}, e.prototype.getOrCreateQuery = function(e) {
|
|
3304
|
-
return e && !this.queries.has(e) && this.queries.set(e, new
|
|
3304
|
+
return e && !this.queries.has(e) && this.queries.set(e, new Rr(this, e)), this.queries.get(e);
|
|
3305
3305
|
}, e.prototype.prepareContext = function(e) {
|
|
3306
3306
|
e === void 0 && (e = {});
|
|
3307
3307
|
var t = this.localState.prepareContext(e);
|
|
3308
|
-
return
|
|
3308
|
+
return F(F(F({}, this.defaultContext), t), { clientAwareness: this.clientAwareness });
|
|
3309
3309
|
}, e;
|
|
3310
|
-
}(),
|
|
3310
|
+
}(), Ur = function() {
|
|
3311
3311
|
function e(e) {
|
|
3312
3312
|
var t = e.cache, n = e.client, r = e.resolvers, i = e.fragmentMatcher;
|
|
3313
3313
|
this.selectionsToResolveCache = /* @__PURE__ */ new WeakMap(), this.cache = t, n && (this.client = n), r && this.addResolvers(r), i && this.setFragmentMatcher(i);
|
|
@@ -3315,18 +3315,18 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3315
3315
|
return e.prototype.addResolvers = function(e) {
|
|
3316
3316
|
var t = this;
|
|
3317
3317
|
this.resolvers = this.resolvers || {}, Array.isArray(e) ? e.forEach(function(e) {
|
|
3318
|
-
t.resolvers =
|
|
3319
|
-
}) : this.resolvers =
|
|
3318
|
+
t.resolvers = gt(t.resolvers, e);
|
|
3319
|
+
}) : this.resolvers = gt(this.resolvers, e);
|
|
3320
3320
|
}, e.prototype.setResolvers = function(e) {
|
|
3321
3321
|
this.resolvers = {}, this.addResolvers(e);
|
|
3322
3322
|
}, e.prototype.getResolvers = function() {
|
|
3323
3323
|
return this.resolvers || {};
|
|
3324
3324
|
}, e.prototype.runResolvers = function(e) {
|
|
3325
|
-
return
|
|
3325
|
+
return V(this, arguments, void 0, function(e) {
|
|
3326
3326
|
var t = e.document, n = e.remoteResult, r = e.context, i = e.variables, a = e.onlyRunForcedResolvers, o = a === void 0 ? !1 : a;
|
|
3327
|
-
return
|
|
3327
|
+
return M(this, function(e) {
|
|
3328
3328
|
return t ? [2, this.resolveDocument(t, n.data, r, i, this.fragmentMatcher, o).then(function(e) {
|
|
3329
|
-
return
|
|
3329
|
+
return F(F({}, n), { data: e.result });
|
|
3330
3330
|
})] : [2, n];
|
|
3331
3331
|
});
|
|
3332
3332
|
});
|
|
@@ -3335,48 +3335,48 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3335
3335
|
}, e.prototype.getFragmentMatcher = function() {
|
|
3336
3336
|
return this.fragmentMatcher;
|
|
3337
3337
|
}, e.prototype.clientQuery = function(e) {
|
|
3338
|
-
return
|
|
3338
|
+
return le(["client"], e) && this.resolvers ? e : null;
|
|
3339
3339
|
}, e.prototype.serverQuery = function(e) {
|
|
3340
|
-
return
|
|
3340
|
+
return pt(e);
|
|
3341
3341
|
}, e.prototype.prepareContext = function(e) {
|
|
3342
3342
|
var t = this.cache;
|
|
3343
|
-
return
|
|
3343
|
+
return F(F({}, e), {
|
|
3344
3344
|
cache: t,
|
|
3345
3345
|
getCacheKey: function(e) {
|
|
3346
3346
|
return t.identify(e);
|
|
3347
3347
|
}
|
|
3348
3348
|
});
|
|
3349
3349
|
}, e.prototype.addExportedVariables = function(e) {
|
|
3350
|
-
return
|
|
3351
|
-
return t === void 0 && (t = {}), n === void 0 && (n = {}),
|
|
3350
|
+
return V(this, arguments, void 0, function(e, t, n) {
|
|
3351
|
+
return t === void 0 && (t = {}), n === void 0 && (n = {}), M(this, function(r) {
|
|
3352
3352
|
return e ? [2, this.resolveDocument(e, this.buildRootValueFromCache(e, t) || {}, this.prepareContext(n), t).then(function(e) {
|
|
3353
|
-
return
|
|
3354
|
-
})] : [2,
|
|
3353
|
+
return F(F({}, t), e.exportedVariables);
|
|
3354
|
+
})] : [2, F({}, t)];
|
|
3355
3355
|
});
|
|
3356
3356
|
});
|
|
3357
3357
|
}, e.prototype.shouldForceResolvers = function(e) {
|
|
3358
|
-
var
|
|
3359
|
-
return
|
|
3360
|
-
if (e.name.value === "client" && e.arguments && (
|
|
3358
|
+
var n = !1;
|
|
3359
|
+
return t(e, { Directive: { enter: function(e) {
|
|
3360
|
+
if (e.name.value === "client" && e.arguments && (n = e.arguments.some(function(e) {
|
|
3361
3361
|
return e.name.value === "always" && e.value.kind === "BooleanValue" && e.value.value === !0;
|
|
3362
|
-
}),
|
|
3363
|
-
} } }),
|
|
3362
|
+
}), n)) return E;
|
|
3363
|
+
} } }), n;
|
|
3364
3364
|
}, e.prototype.buildRootValueFromCache = function(e, t) {
|
|
3365
3365
|
return this.cache.diff({
|
|
3366
|
-
query:
|
|
3366
|
+
query: ft(e),
|
|
3367
3367
|
variables: t,
|
|
3368
3368
|
returnPartialData: !0,
|
|
3369
3369
|
optimistic: !1
|
|
3370
3370
|
}).result;
|
|
3371
3371
|
}, e.prototype.resolveDocument = function(e, t) {
|
|
3372
|
-
return
|
|
3372
|
+
return V(this, arguments, void 0, function(e, t, n, r, i, a) {
|
|
3373
3373
|
var o, s, c, l, u, d, f, p, m, h, g;
|
|
3374
3374
|
return n === void 0 && (n = {}), r === void 0 && (r = {}), i === void 0 && (i = function() {
|
|
3375
3375
|
return !0;
|
|
3376
|
-
}), a === void 0 && (a = !1),
|
|
3377
|
-
return o =
|
|
3376
|
+
}), a === void 0 && (a = !1), M(this, function(_) {
|
|
3377
|
+
return o = fe(e), s = xe(e), c = He(s), l = this.collectSelectionsToResolve(o, c), u = o.operation, d = u ? u.charAt(0).toUpperCase() + u.slice(1) : "Query", f = this, p = f.cache, m = f.client, h = {
|
|
3378
3378
|
fragmentMap: c,
|
|
3379
|
-
context:
|
|
3379
|
+
context: F(F({}, n), {
|
|
3380
3380
|
cache: p,
|
|
3381
3381
|
client: m
|
|
3382
3382
|
}),
|
|
@@ -3395,33 +3395,33 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3395
3395
|
});
|
|
3396
3396
|
});
|
|
3397
3397
|
}, e.prototype.resolveSelectionSet = function(e, t, n, r) {
|
|
3398
|
-
return
|
|
3399
|
-
var i, a, o, s,
|
|
3400
|
-
return
|
|
3401
|
-
return i = r.fragmentMap, a = r.context, o = r.variables, s = [n],
|
|
3402
|
-
return
|
|
3403
|
-
var
|
|
3404
|
-
return
|
|
3405
|
-
return !t && !r.selectionsToResolve.has(e) || !
|
|
3398
|
+
return V(this, void 0, void 0, function() {
|
|
3399
|
+
var i, a, o, s, l, u = this;
|
|
3400
|
+
return M(this, function(d) {
|
|
3401
|
+
return i = r.fragmentMap, a = r.context, o = r.variables, s = [n], l = function(e) {
|
|
3402
|
+
return V(u, void 0, void 0, function() {
|
|
3403
|
+
var l, u;
|
|
3404
|
+
return M(this, function(d) {
|
|
3405
|
+
return !t && !r.selectionsToResolve.has(e) || !de(e, o) ? [2] : re(e) ? [2, this.resolveField(e, t, n, r).then(function(t) {
|
|
3406
3406
|
var n;
|
|
3407
|
-
t !== void 0 && s.push((n = {}, n[
|
|
3408
|
-
})] : (
|
|
3407
|
+
t !== void 0 && s.push((n = {}, n[P(e)] = t, n));
|
|
3408
|
+
})] : (c(e) ? l = e : (l = i[e.name.value], R(l, 21, e.name.value)), l && l.typeCondition && (u = l.typeCondition.name.value, r.fragmentMatcher(n, u, a)) ? [2, this.resolveSelectionSet(l.selectionSet, t, n, r).then(function(e) {
|
|
3409
3409
|
s.push(e);
|
|
3410
3410
|
})] : [2]);
|
|
3411
3411
|
});
|
|
3412
3412
|
});
|
|
3413
|
-
}, [2, Promise.all(e.selections.map(
|
|
3414
|
-
return
|
|
3413
|
+
}, [2, Promise.all(e.selections.map(l)).then(function() {
|
|
3414
|
+
return _t(s);
|
|
3415
3415
|
})];
|
|
3416
3416
|
});
|
|
3417
3417
|
});
|
|
3418
3418
|
}, e.prototype.resolveField = function(e, t, n, r) {
|
|
3419
|
-
return
|
|
3419
|
+
return V(this, void 0, void 0, function() {
|
|
3420
3420
|
var i, a, o, s, c, l, u, d, f, p = this;
|
|
3421
|
-
return
|
|
3422
|
-
return n ? (i = r.variables, a = e.name.value, o =
|
|
3421
|
+
return M(this, function(m) {
|
|
3422
|
+
return n ? (i = r.variables, a = e.name.value, o = P(e), s = a !== o, c = n[o] || n[a], l = Promise.resolve(c), (!r.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (u = n.__typename || r.defaultOperationType, d = this.resolvers && this.resolvers[u], d && (f = d[s ? a : o], f && (l = Promise.resolve(tr.withValue(this.cache, f, [
|
|
3423
3423
|
n,
|
|
3424
|
-
|
|
3424
|
+
Be(e, i),
|
|
3425
3425
|
r.context,
|
|
3426
3426
|
{
|
|
3427
3427
|
field: e,
|
|
@@ -3448,81 +3448,81 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3448
3448
|
if (Array.isArray(n)) return i.resolveSubSelectedArray(e, t, n, r);
|
|
3449
3449
|
if (e.selectionSet) return i.resolveSelectionSet(e.selectionSet, t, n, r);
|
|
3450
3450
|
}));
|
|
3451
|
-
}, e.prototype.collectSelectionsToResolve = function(e,
|
|
3452
|
-
var
|
|
3451
|
+
}, e.prototype.collectSelectionsToResolve = function(e, n) {
|
|
3452
|
+
var r = function(e) {
|
|
3453
3453
|
return !Array.isArray(e);
|
|
3454
|
-
},
|
|
3455
|
-
function
|
|
3456
|
-
if (!
|
|
3457
|
-
var
|
|
3458
|
-
|
|
3459
|
-
Directive: function(e, t,
|
|
3460
|
-
e.name.value === "client" &&
|
|
3461
|
-
|
|
3454
|
+
}, i = this.selectionsToResolveCache;
|
|
3455
|
+
function a(e) {
|
|
3456
|
+
if (!i.has(e)) {
|
|
3457
|
+
var o = /* @__PURE__ */ new Set();
|
|
3458
|
+
i.set(e, o), t(e, {
|
|
3459
|
+
Directive: function(e, t, n, i, a) {
|
|
3460
|
+
e.name.value === "client" && a.forEach(function(e) {
|
|
3461
|
+
r(e) && tt(e) && o.add(e);
|
|
3462
3462
|
});
|
|
3463
3463
|
},
|
|
3464
|
-
FragmentSpread: function(e,
|
|
3465
|
-
var l =
|
|
3464
|
+
FragmentSpread: function(e, t, i, s, c) {
|
|
3465
|
+
var l = n[e.name.value];
|
|
3466
3466
|
R(l, 22, e.name.value);
|
|
3467
|
-
var u =
|
|
3467
|
+
var u = a(l);
|
|
3468
3468
|
u.size > 0 && (c.forEach(function(e) {
|
|
3469
|
-
|
|
3470
|
-
}),
|
|
3471
|
-
|
|
3469
|
+
r(e) && tt(e) && o.add(e);
|
|
3470
|
+
}), o.add(e), u.forEach(function(e) {
|
|
3471
|
+
o.add(e);
|
|
3472
3472
|
}));
|
|
3473
3473
|
}
|
|
3474
3474
|
});
|
|
3475
3475
|
}
|
|
3476
|
-
return
|
|
3476
|
+
return i.get(e);
|
|
3477
3477
|
}
|
|
3478
|
-
return
|
|
3478
|
+
return a(e);
|
|
3479
3479
|
}, e;
|
|
3480
|
-
}(),
|
|
3481
|
-
function
|
|
3482
|
-
var
|
|
3483
|
-
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !
|
|
3484
|
-
var
|
|
3485
|
-
globalThis.__DEV__ !== !1 && (e
|
|
3486
|
-
var
|
|
3487
|
-
|
|
3488
|
-
uri:
|
|
3489
|
-
credentials:
|
|
3490
|
-
headers:
|
|
3491
|
-
}) :
|
|
3492
|
-
return
|
|
3493
|
-
},
|
|
3494
|
-
cache:
|
|
3480
|
+
}(), Wr = !1, Gr = function() {
|
|
3481
|
+
function e(e) {
|
|
3482
|
+
var t = this;
|
|
3483
|
+
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache) throw N(16);
|
|
3484
|
+
var n = e.uri, r = e.credentials, i = e.headers, a = e.cache, o = e.documentTransform, s = e.ssrMode, c = s === void 0 ? !1 : s, l = e.ssrForceFetchDelay, u = l === void 0 ? 0 : l, d = e.connectToDevTools, f = e.queryDeduplication, p = f === void 0 ? !0 : f, m = e.defaultOptions, h = e.defaultContext, g = e.assumeImmutableResults, _ = g === void 0 ? a.assumeImmutableResults : g, v = e.resolvers, y = e.typeDefs, b = e.fragmentMatcher, x = e.clientAwareness, S = e.name, C = e.version, w = e.devtools, T = e.dataMasking;
|
|
3485
|
+
globalThis.__DEV__ !== !1 && (j(e, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), j(e, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), j(e, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), j(e, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), j(e, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), j(e, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), j(e, "typeDefs", "ApolloClient"), e.link || globalThis.__DEV__ !== !1 && R.warn(17));
|
|
3486
|
+
var E = e.link;
|
|
3487
|
+
E || (E = n ? new mn({
|
|
3488
|
+
uri: n,
|
|
3489
|
+
credentials: r,
|
|
3490
|
+
headers: i
|
|
3491
|
+
}) : Y.empty()), this.link = E, this.cache = a, this.disableNetworkFetches = c || u > 0, this.queryDeduplication = p, this.defaultOptions = m || Object.create(null), this.typeDefs = y, this.devtoolsConfig = F(F({}, w), { enabled: w?.enabled ?? d }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), u && setTimeout(function() {
|
|
3492
|
+
return t.disableNetworkFetches = !1;
|
|
3493
|
+
}, u), 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 = ge, this.localState = new Ur({
|
|
3494
|
+
cache: a,
|
|
3495
3495
|
client: this,
|
|
3496
|
-
resolvers:
|
|
3497
|
-
fragmentMatcher:
|
|
3498
|
-
}), this.queryManager = new
|
|
3496
|
+
resolvers: v,
|
|
3497
|
+
fragmentMatcher: b
|
|
3498
|
+
}), this.queryManager = new Hr({
|
|
3499
3499
|
cache: this.cache,
|
|
3500
3500
|
link: this.link,
|
|
3501
3501
|
defaultOptions: this.defaultOptions,
|
|
3502
|
-
defaultContext:
|
|
3503
|
-
documentTransform:
|
|
3504
|
-
queryDeduplication:
|
|
3505
|
-
ssrMode:
|
|
3506
|
-
dataMasking: !!
|
|
3502
|
+
defaultContext: h,
|
|
3503
|
+
documentTransform: o,
|
|
3504
|
+
queryDeduplication: p,
|
|
3505
|
+
ssrMode: c,
|
|
3506
|
+
dataMasking: !!T,
|
|
3507
3507
|
clientAwareness: {
|
|
3508
|
-
name:
|
|
3509
|
-
version:
|
|
3508
|
+
name: x?.name ?? S,
|
|
3509
|
+
version: x?.version ?? C
|
|
3510
3510
|
},
|
|
3511
3511
|
localState: this.localState,
|
|
3512
|
-
assumeImmutableResults:
|
|
3512
|
+
assumeImmutableResults: _,
|
|
3513
3513
|
onBroadcast: this.devtoolsConfig.enabled ? function() {
|
|
3514
|
-
|
|
3514
|
+
t.devToolsHookCb && t.devToolsHookCb({
|
|
3515
3515
|
action: {},
|
|
3516
3516
|
state: {
|
|
3517
|
-
queries:
|
|
3518
|
-
mutations:
|
|
3517
|
+
queries: t.queryManager.getQueryStore(),
|
|
3518
|
+
mutations: t.queryManager.mutationStore || {}
|
|
3519
3519
|
},
|
|
3520
|
-
dataWithOptimisticResults:
|
|
3520
|
+
dataWithOptimisticResults: t.cache.extract(!0)
|
|
3521
3521
|
});
|
|
3522
3522
|
} : void 0
|
|
3523
3523
|
}), this.devtoolsConfig.enabled && this.connectToDevTools();
|
|
3524
3524
|
}
|
|
3525
|
-
return Object.defineProperty(
|
|
3525
|
+
return Object.defineProperty(e.prototype, "prioritizeCacheValues", {
|
|
3526
3526
|
get: function() {
|
|
3527
3527
|
return this.disableNetworkFetches;
|
|
3528
3528
|
},
|
|
@@ -3531,58 +3531,58 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3531
3531
|
},
|
|
3532
3532
|
enumerable: !1,
|
|
3533
3533
|
configurable: !0
|
|
3534
|
-
}),
|
|
3534
|
+
}), e.prototype.connectToDevTools = function() {
|
|
3535
3535
|
if (!(typeof window > "u")) {
|
|
3536
3536
|
var e = window, t = Symbol.for("apollo.devtools");
|
|
3537
|
-
(e[t] = e[t] || []).push(this), e.__APOLLO_CLIENT__ = this, !
|
|
3537
|
+
(e[t] = e[t] || []).push(this), e.__APOLLO_CLIENT__ = this, !Wr && globalThis.__DEV__ !== !1 && (Wr = !0, window.document && window.top === window.self && /^(https?|file):$/.test(window.location.protocol) && setTimeout(function() {
|
|
3538
3538
|
if (!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__) {
|
|
3539
3539
|
var e = window.navigator, t = e && e.userAgent, n = void 0;
|
|
3540
3540
|
typeof t == "string" && (t.indexOf("Chrome/") > -1 ? n = "https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm" : t.indexOf("Firefox/") > -1 && (n = "https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")), n && globalThis.__DEV__ !== !1 && R.log("Download the Apollo DevTools for a better development experience: %s", n);
|
|
3541
3541
|
}
|
|
3542
3542
|
}, 1e4));
|
|
3543
3543
|
}
|
|
3544
|
-
}, Object.defineProperty(
|
|
3544
|
+
}, Object.defineProperty(e.prototype, "documentTransform", {
|
|
3545
3545
|
get: function() {
|
|
3546
3546
|
return this.queryManager.documentTransform;
|
|
3547
3547
|
},
|
|
3548
3548
|
enumerable: !1,
|
|
3549
3549
|
configurable: !0
|
|
3550
|
-
}),
|
|
3550
|
+
}), e.prototype.stop = function() {
|
|
3551
3551
|
this.queryManager.stop();
|
|
3552
|
-
},
|
|
3553
|
-
return this.defaultOptions.watchQuery && (
|
|
3554
|
-
},
|
|
3555
|
-
return this.defaultOptions.query && (
|
|
3556
|
-
},
|
|
3557
|
-
return this.defaultOptions.mutate && (e =
|
|
3558
|
-
},
|
|
3552
|
+
}, e.prototype.watchQuery = function(e) {
|
|
3553
|
+
return this.defaultOptions.watchQuery && (e = Fe(this.defaultOptions.watchQuery, e)), this.disableNetworkFetches && (e.fetchPolicy === "network-only" || e.fetchPolicy === "cache-and-network") && (e = F(F({}, e), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (j(e, "canonizeResults", "client.watchQuery"), j(e, "partialRefetch", "client.watchQuery")), this.queryManager.watchQuery(e);
|
|
3554
|
+
}, e.prototype.query = function(e) {
|
|
3555
|
+
return this.defaultOptions.query && (e = Fe(this.defaultOptions.query, e)), R(e.fetchPolicy !== "cache-and-network", 18), this.disableNetworkFetches && e.fetchPolicy === "network-only" && (e = F(F({}, e), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (j(e, "canonizeResults", "client.query"), j(e, "notifyOnNetworkStatusChange", "client.query", "This option does not affect `client.query` and can be safely removed."), e.fetchPolicy === "standby" && globalThis.__DEV__ !== !1 && R.warn(19)), this.queryManager.query(e);
|
|
3556
|
+
}, e.prototype.mutate = function(e) {
|
|
3557
|
+
return this.defaultOptions.mutate && (e = Fe(this.defaultOptions.mutate, e)), this.queryManager.mutate(e);
|
|
3558
|
+
}, e.prototype.subscribe = function(e) {
|
|
3559
3559
|
var t = this, n = this.queryManager.generateQueryId();
|
|
3560
3560
|
return this.queryManager.startGraphQLSubscription(e).map(function(r) {
|
|
3561
|
-
return
|
|
3561
|
+
return F(F({}, r), { data: t.queryManager.maskOperation({
|
|
3562
3562
|
document: e.query,
|
|
3563
3563
|
data: r.data,
|
|
3564
3564
|
fetchPolicy: e.fetchPolicy,
|
|
3565
3565
|
id: n
|
|
3566
3566
|
}) });
|
|
3567
3567
|
});
|
|
3568
|
-
},
|
|
3568
|
+
}, e.prototype.readQuery = function(e, t) {
|
|
3569
3569
|
return t === void 0 && (t = !1), this.cache.readQuery(e, t);
|
|
3570
|
-
},
|
|
3570
|
+
}, e.prototype.watchFragment = function(e) {
|
|
3571
3571
|
var t;
|
|
3572
|
-
return this.cache.watchFragment(
|
|
3573
|
-
},
|
|
3572
|
+
return this.cache.watchFragment(F(F({}, e), (t = {}, t[Symbol.for("apollo.dataMasking")] = this.queryManager.dataMasking, t)));
|
|
3573
|
+
}, e.prototype.readFragment = function(e, t) {
|
|
3574
3574
|
return t === void 0 && (t = !1), this.cache.readFragment(e, t);
|
|
3575
|
-
},
|
|
3575
|
+
}, e.prototype.writeQuery = function(e) {
|
|
3576
3576
|
var t = this.cache.writeQuery(e);
|
|
3577
3577
|
return e.broadcast !== !1 && this.queryManager.broadcastQueries(), t;
|
|
3578
|
-
},
|
|
3578
|
+
}, e.prototype.writeFragment = function(e) {
|
|
3579
3579
|
var t = this.cache.writeFragment(e);
|
|
3580
3580
|
return e.broadcast !== !1 && this.queryManager.broadcastQueries(), t;
|
|
3581
|
-
},
|
|
3581
|
+
}, e.prototype.__actionHookForDevTools = function(e) {
|
|
3582
3582
|
this.devToolsHookCb = e;
|
|
3583
|
-
},
|
|
3584
|
-
return
|
|
3585
|
-
},
|
|
3583
|
+
}, e.prototype.__requestRaw = function(e) {
|
|
3584
|
+
return zt(this.link, e);
|
|
3585
|
+
}, e.prototype.resetStore = function() {
|
|
3586
3586
|
var e = this;
|
|
3587
3587
|
return Promise.resolve().then(function() {
|
|
3588
3588
|
return e.queryManager.clearStore({ discardWatches: !1 });
|
|
@@ -3593,7 +3593,7 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3593
3593
|
}).then(function() {
|
|
3594
3594
|
return e.reFetchObservableQueries();
|
|
3595
3595
|
});
|
|
3596
|
-
},
|
|
3596
|
+
}, e.prototype.clearStore = function() {
|
|
3597
3597
|
var e = this;
|
|
3598
3598
|
return Promise.resolve().then(function() {
|
|
3599
3599
|
return e.queryManager.clearStore({ discardWatches: !0 });
|
|
@@ -3602,23 +3602,23 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3602
3602
|
return e();
|
|
3603
3603
|
}));
|
|
3604
3604
|
});
|
|
3605
|
-
},
|
|
3605
|
+
}, e.prototype.onResetStore = function(e) {
|
|
3606
3606
|
var t = this;
|
|
3607
3607
|
return this.resetStoreCallbacks.push(e), function() {
|
|
3608
3608
|
t.resetStoreCallbacks = t.resetStoreCallbacks.filter(function(t) {
|
|
3609
3609
|
return t !== e;
|
|
3610
3610
|
});
|
|
3611
3611
|
};
|
|
3612
|
-
},
|
|
3612
|
+
}, e.prototype.onClearStore = function(e) {
|
|
3613
3613
|
var t = this;
|
|
3614
3614
|
return this.clearStoreCallbacks.push(e), function() {
|
|
3615
3615
|
t.clearStoreCallbacks = t.clearStoreCallbacks.filter(function(t) {
|
|
3616
3616
|
return t !== e;
|
|
3617
3617
|
});
|
|
3618
3618
|
};
|
|
3619
|
-
},
|
|
3619
|
+
}, e.prototype.reFetchObservableQueries = function(e) {
|
|
3620
3620
|
return this.queryManager.reFetchObservableQueries(e);
|
|
3621
|
-
},
|
|
3621
|
+
}, e.prototype.refetchQueries = function(e) {
|
|
3622
3622
|
var t = this.queryManager.refetchQueries(e), n = [], r = [];
|
|
3623
3623
|
t.forEach(function(e, t) {
|
|
3624
3624
|
n.push(t), r.push(e);
|
|
@@ -3627,36 +3627,36 @@ var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = functio
|
|
|
3627
3627
|
return i.queries = n, i.results = r, i.catch(function(e) {
|
|
3628
3628
|
globalThis.__DEV__ !== !1 && R.debug(20, e);
|
|
3629
3629
|
}), i;
|
|
3630
|
-
},
|
|
3630
|
+
}, e.prototype.getObservableQueries = function(e) {
|
|
3631
3631
|
return e === void 0 && (e = "active"), this.queryManager.getObservableQueries(e);
|
|
3632
|
-
},
|
|
3632
|
+
}, e.prototype.extract = function(e) {
|
|
3633
3633
|
return this.cache.extract(e);
|
|
3634
|
-
},
|
|
3634
|
+
}, e.prototype.restore = function(e) {
|
|
3635
3635
|
return this.cache.restore(e);
|
|
3636
|
-
},
|
|
3636
|
+
}, e.prototype.addResolvers = function(e) {
|
|
3637
3637
|
this.localState.addResolvers(e);
|
|
3638
|
-
},
|
|
3638
|
+
}, e.prototype.setResolvers = function(e) {
|
|
3639
3639
|
this.localState.setResolvers(e);
|
|
3640
|
-
},
|
|
3640
|
+
}, e.prototype.getResolvers = function() {
|
|
3641
3641
|
return this.localState.getResolvers();
|
|
3642
|
-
},
|
|
3642
|
+
}, e.prototype.setLocalStateFragmentMatcher = function(e) {
|
|
3643
3643
|
this.localState.setFragmentMatcher(e);
|
|
3644
|
-
},
|
|
3644
|
+
}, e.prototype.setLink = function(e) {
|
|
3645
3645
|
this.link = this.queryManager.link = e;
|
|
3646
|
-
}, Object.defineProperty(
|
|
3646
|
+
}, Object.defineProperty(e.prototype, "defaultContext", {
|
|
3647
3647
|
get: function() {
|
|
3648
3648
|
return this.queryManager.defaultContext;
|
|
3649
3649
|
},
|
|
3650
3650
|
enumerable: !1,
|
|
3651
3651
|
configurable: !0
|
|
3652
|
-
}),
|
|
3652
|
+
}), e;
|
|
3653
3653
|
}();
|
|
3654
|
-
globalThis.__DEV__ !== !1 && (
|
|
3654
|
+
globalThis.__DEV__ !== !1 && (Gr.prototype.getMemoryInternals = S);
|
|
3655
3655
|
//#endregion
|
|
3656
3656
|
//#region node_modules/@apollo/client/link/context/index.js
|
|
3657
|
-
function
|
|
3658
|
-
return new
|
|
3659
|
-
var r =
|
|
3657
|
+
function Kr(e) {
|
|
3658
|
+
return new Y(function(t, n) {
|
|
3659
|
+
var r = L(t, []);
|
|
3660
3660
|
return new z(function(i) {
|
|
3661
3661
|
var a, o = !1;
|
|
3662
3662
|
return Promise.resolve(r).then(function(n) {
|
|
@@ -3675,8 +3675,8 @@ function Gr(e) {
|
|
|
3675
3675
|
}
|
|
3676
3676
|
//#endregion
|
|
3677
3677
|
//#region node_modules/@apollo/client/link/error/index.js
|
|
3678
|
-
function
|
|
3679
|
-
return new
|
|
3678
|
+
function qr(e) {
|
|
3679
|
+
return new Y(function(t, n) {
|
|
3680
3680
|
return new z(function(r) {
|
|
3681
3681
|
var i, a, o;
|
|
3682
3682
|
try {
|
|
@@ -3687,8 +3687,8 @@ function Kr(e) {
|
|
|
3687
3687
|
response: i,
|
|
3688
3688
|
operation: t,
|
|
3689
3689
|
forward: n
|
|
3690
|
-
}) :
|
|
3691
|
-
protocolErrors: i.extensions[
|
|
3690
|
+
}) : je(i) && (o = e({
|
|
3691
|
+
protocolErrors: i.extensions[v],
|
|
3692
3692
|
response: i,
|
|
3693
3693
|
operation: t,
|
|
3694
3694
|
forward: n
|
|
@@ -3736,33 +3736,33 @@ function Kr(e) {
|
|
|
3736
3736
|
});
|
|
3737
3737
|
}
|
|
3738
3738
|
(function(e) {
|
|
3739
|
-
|
|
3739
|
+
A(t, e);
|
|
3740
3740
|
function t(t) {
|
|
3741
3741
|
var n = e.call(this) || this;
|
|
3742
|
-
return n.link =
|
|
3742
|
+
return n.link = qr(t), n;
|
|
3743
3743
|
}
|
|
3744
3744
|
return t.prototype.request = function(e, t) {
|
|
3745
3745
|
return this.link.request(e, t);
|
|
3746
3746
|
}, t;
|
|
3747
|
-
})(
|
|
3747
|
+
})(Y);
|
|
3748
3748
|
//#endregion
|
|
3749
3749
|
//#region lib/apollo-client.ts
|
|
3750
|
-
var
|
|
3751
|
-
function
|
|
3752
|
-
|
|
3750
|
+
var Jr = null, Yr = null;
|
|
3751
|
+
function Xr(e) {
|
|
3752
|
+
Jr = e;
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3755
|
-
return
|
|
3754
|
+
function Zr() {
|
|
3755
|
+
return Jr;
|
|
3756
3756
|
}
|
|
3757
|
-
var
|
|
3758
|
-
function
|
|
3759
|
-
|
|
3757
|
+
var Qr = null;
|
|
3758
|
+
function $r(e) {
|
|
3759
|
+
Qr = e;
|
|
3760
3760
|
}
|
|
3761
|
-
var
|
|
3762
|
-
function
|
|
3763
|
-
|
|
3761
|
+
var ei = null;
|
|
3762
|
+
function ti(e) {
|
|
3763
|
+
ei = e;
|
|
3764
3764
|
}
|
|
3765
|
-
var
|
|
3765
|
+
var ni = new Set([
|
|
3766
3766
|
"StartAnonymousVisitor",
|
|
3767
3767
|
"StartIdentifiedVisitor",
|
|
3768
3768
|
"VisitorPasskeyRegistrationOptions",
|
|
@@ -3770,27 +3770,27 @@ var ti = new Set([
|
|
|
3770
3770
|
"VisitorPasskeyAuthenticationOptions",
|
|
3771
3771
|
"VerifyVisitorPasskeyAuthentication"
|
|
3772
3772
|
]);
|
|
3773
|
-
function
|
|
3774
|
-
|
|
3773
|
+
function ri(e) {
|
|
3774
|
+
Yr = e;
|
|
3775
3775
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return
|
|
3776
|
+
function ii() {
|
|
3777
|
+
return Yr;
|
|
3778
3778
|
}
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3781
|
-
if (
|
|
3782
|
-
let e = new
|
|
3783
|
-
uri: `${
|
|
3779
|
+
var ai = null;
|
|
3780
|
+
function oi() {
|
|
3781
|
+
if (ai) return ai;
|
|
3782
|
+
let e = new mn({
|
|
3783
|
+
uri: `${ne()}/graphql`,
|
|
3784
3784
|
credentials: "omit"
|
|
3785
|
-
}), t =
|
|
3785
|
+
}), t = Kr((e, { headers: t }) => ({ headers: {
|
|
3786
3786
|
...t,
|
|
3787
|
-
...
|
|
3788
|
-
...
|
|
3787
|
+
...Yr ? { "x-web-public-key": Yr } : {},
|
|
3788
|
+
...Jr ? { authorization: `Bearer ${Jr}` } : {}
|
|
3789
3789
|
} }));
|
|
3790
|
-
return
|
|
3791
|
-
link:
|
|
3792
|
-
|
|
3793
|
-
if (
|
|
3790
|
+
return ai = new Gr({
|
|
3791
|
+
link: Rt([
|
|
3792
|
+
qr(({ operation: e, graphQLErrors: t, networkError: n }) => {
|
|
3793
|
+
if (ni.has(e.operationName)) return;
|
|
3794
3794
|
let r = n && "statusCode" in n ? n.statusCode : void 0;
|
|
3795
3795
|
if ((t ?? []).some((e) => {
|
|
3796
3796
|
let t = e.extensions;
|
|
@@ -3798,18 +3798,18 @@ function ai() {
|
|
|
3798
3798
|
let n = t?.response?.message;
|
|
3799
3799
|
return !!(typeof n == "string" && n.includes("webIntegrationMismatch") || Array.isArray(n) && n.some((e) => typeof e == "string" && e.includes("webIntegrationMismatch")));
|
|
3800
3800
|
})) {
|
|
3801
|
-
|
|
3801
|
+
ei?.();
|
|
3802
3802
|
return;
|
|
3803
3803
|
}
|
|
3804
3804
|
(r === 401 || (t ?? []).some((e) => {
|
|
3805
3805
|
let t = e.extensions;
|
|
3806
3806
|
return t?.code === "UNAUTHENTICATED" || t?.response?.statusCode === 401 || e.message === "Unauthorized";
|
|
3807
|
-
})) &&
|
|
3807
|
+
})) && Qr?.();
|
|
3808
3808
|
}),
|
|
3809
3809
|
t,
|
|
3810
3810
|
e
|
|
3811
3811
|
]),
|
|
3812
|
-
cache: new
|
|
3812
|
+
cache: new Fr({ typePolicies: {} }),
|
|
3813
3813
|
defaultOptions: {
|
|
3814
3814
|
watchQuery: {
|
|
3815
3815
|
errorPolicy: "all",
|
|
@@ -3821,25 +3821,25 @@ function ai() {
|
|
|
3821
3821
|
},
|
|
3822
3822
|
mutate: { errorPolicy: "all" }
|
|
3823
3823
|
}
|
|
3824
|
-
}),
|
|
3824
|
+
}), ai;
|
|
3825
3825
|
}
|
|
3826
3826
|
//#endregion
|
|
3827
3827
|
//#region dummy/help.ts
|
|
3828
|
-
var
|
|
3828
|
+
var si = [
|
|
3829
3829
|
"demo-cat-getting-started",
|
|
3830
3830
|
"demo-cat-automation",
|
|
3831
3831
|
"demo-cat-integrations",
|
|
3832
3832
|
"demo-cat-billing"
|
|
3833
3833
|
];
|
|
3834
|
-
function
|
|
3835
|
-
return
|
|
3834
|
+
function ci(e) {
|
|
3835
|
+
return si.map((t) => ({
|
|
3836
3836
|
id: t,
|
|
3837
|
-
articleCount:
|
|
3837
|
+
articleCount: li.filter((e) => e.categoryId === t).length,
|
|
3838
3838
|
title: e.raw(`help.categories.${t}.title`),
|
|
3839
3839
|
description: e.raw(`help.categories.${t}.description`)
|
|
3840
3840
|
}));
|
|
3841
3841
|
}
|
|
3842
|
-
var
|
|
3842
|
+
var li = [
|
|
3843
3843
|
{
|
|
3844
3844
|
id: "demo-article-install",
|
|
3845
3845
|
slug: "install-the-widget",
|
|
@@ -3913,13 +3913,13 @@ var ci = [
|
|
|
3913
3913
|
tagSlugs: ["productivity", "inbox"]
|
|
3914
3914
|
}
|
|
3915
3915
|
];
|
|
3916
|
-
function
|
|
3917
|
-
return
|
|
3916
|
+
function ui(e) {
|
|
3917
|
+
return li.map(({ authorIds: t, tagSlugs: n, ...r }) => ({
|
|
3918
3918
|
...r,
|
|
3919
3919
|
title: e.raw(`help.articles.${r.id}.title`),
|
|
3920
3920
|
excerpt: e.raw(`help.articles.${r.id}.excerpt`),
|
|
3921
3921
|
contentMarkdown: e.raw(`help.articles.${r.id}.body`),
|
|
3922
|
-
authors:
|
|
3922
|
+
authors: Re(t),
|
|
3923
3923
|
tags: n.map((t) => ({
|
|
3924
3924
|
_id: `demo-tag-${t}`,
|
|
3925
3925
|
slug: t,
|
|
@@ -3929,28 +3929,28 @@ function li(e) {
|
|
|
3929
3929
|
}
|
|
3930
3930
|
//#endregion
|
|
3931
3931
|
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3932
|
-
var
|
|
3933
|
-
function
|
|
3932
|
+
var di = Symbol.for("react.lazy"), fi = U.use;
|
|
3933
|
+
function pi(e) {
|
|
3934
3934
|
return typeof e == "object" && !!e && "then" in e;
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3937
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof ===
|
|
3936
|
+
function mi(e) {
|
|
3937
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === di && "_payload" in e && pi(e._payload);
|
|
3938
3938
|
}
|
|
3939
3939
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3940
|
-
function
|
|
3941
|
-
let t = /* @__PURE__ */
|
|
3940
|
+
function hi(e) {
|
|
3941
|
+
let t = /* @__PURE__ */ _i(e), n = U.forwardRef((e, n) => {
|
|
3942
3942
|
let { children: r, ...i } = e;
|
|
3943
|
-
|
|
3944
|
-
let a =
|
|
3943
|
+
mi(r) && typeof fi == "function" && (r = fi(r._payload));
|
|
3944
|
+
let a = U.Children.toArray(r), o = a.find(yi);
|
|
3945
3945
|
if (o) {
|
|
3946
|
-
let e = o.props.children, r = a.map((t) => t === o ?
|
|
3947
|
-
return /* @__PURE__ */
|
|
3946
|
+
let e = o.props.children, r = a.map((t) => t === o ? U.Children.count(e) > 1 ? U.Children.only(null) : U.isValidElement(e) ? e.props.children : null : t);
|
|
3947
|
+
return /* @__PURE__ */ Ge(t, {
|
|
3948
3948
|
...i,
|
|
3949
3949
|
ref: n,
|
|
3950
|
-
children:
|
|
3950
|
+
children: U.isValidElement(e) ? U.cloneElement(e, void 0, r) : null
|
|
3951
3951
|
});
|
|
3952
3952
|
}
|
|
3953
|
-
return /* @__PURE__ */
|
|
3953
|
+
return /* @__PURE__ */ Ge(t, {
|
|
3954
3954
|
...i,
|
|
3955
3955
|
ref: n,
|
|
3956
3956
|
children: r
|
|
@@ -3958,24 +3958,24 @@ function mi(e) {
|
|
|
3958
3958
|
});
|
|
3959
3959
|
return n.displayName = `${e}.Slot`, n;
|
|
3960
3960
|
}
|
|
3961
|
-
var
|
|
3961
|
+
var gi = /* @__PURE__ */ hi("Slot");
|
|
3962
3962
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3963
|
-
function
|
|
3964
|
-
let t =
|
|
3963
|
+
function _i(e) {
|
|
3964
|
+
let t = U.forwardRef((e, t) => {
|
|
3965
3965
|
let { children: n, ...r } = e;
|
|
3966
|
-
if (
|
|
3967
|
-
let e =
|
|
3968
|
-
return n.type !==
|
|
3966
|
+
if (mi(n) && typeof fi == "function" && (n = fi(n._payload)), U.isValidElement(n)) {
|
|
3967
|
+
let e = xi(n), i = bi(r, n.props);
|
|
3968
|
+
return n.type !== U.Fragment && (i.ref = t ? be(t, e) : e), U.cloneElement(n, i);
|
|
3969
3969
|
}
|
|
3970
|
-
return
|
|
3970
|
+
return U.Children.count(n) > 1 ? U.Children.only(null) : null;
|
|
3971
3971
|
});
|
|
3972
3972
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3973
3973
|
}
|
|
3974
|
-
var
|
|
3975
|
-
function
|
|
3976
|
-
return
|
|
3974
|
+
var vi = Symbol("radix.slottable");
|
|
3975
|
+
function yi(e) {
|
|
3976
|
+
return U.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === vi;
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3978
|
+
function bi(e, t) {
|
|
3979
3979
|
let n = { ...t };
|
|
3980
3980
|
for (let r in t) {
|
|
3981
3981
|
let i = e[r], a = t[r];
|
|
@@ -3992,24 +3992,24 @@ function yi(e, t) {
|
|
|
3992
3992
|
...n
|
|
3993
3993
|
};
|
|
3994
3994
|
}
|
|
3995
|
-
function
|
|
3995
|
+
function xi(e) {
|
|
3996
3996
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3997
3997
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3998
3998
|
}
|
|
3999
3999
|
//#endregion
|
|
4000
4000
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
4001
|
-
var
|
|
4002
|
-
if (t?.variants == null) return
|
|
4001
|
+
var Si = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ci = We, wi = ((e, t) => (n) => {
|
|
4002
|
+
if (t?.variants == null) return Ci(e, n?.class, n?.className);
|
|
4003
4003
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
4004
4004
|
let t = n?.[e], a = i?.[e];
|
|
4005
4005
|
if (t === null) return null;
|
|
4006
|
-
let o =
|
|
4006
|
+
let o = Si(t) || Si(a);
|
|
4007
4007
|
return r[e][o];
|
|
4008
4008
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
4009
4009
|
let [n, r] = t;
|
|
4010
4010
|
return r === void 0 || (e[n] = r), e;
|
|
4011
4011
|
}, {});
|
|
4012
|
-
return
|
|
4012
|
+
return Ci(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
4013
4013
|
let { class: n, className: r, ...a } = t;
|
|
4014
4014
|
return Object.entries(a).every((e) => {
|
|
4015
4015
|
let [t, n] = e;
|
|
@@ -4046,19 +4046,21 @@ var xi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Si = Ue, Ci
|
|
|
4046
4046
|
variant: "solid",
|
|
4047
4047
|
size: "md"
|
|
4048
4048
|
}
|
|
4049
|
-
}),
|
|
4049
|
+
}), Ti = U.forwardRef(({ className: e, variant: t, size: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ Ge(r ? gi : "button", {
|
|
4050
4050
|
ref: a,
|
|
4051
|
-
className:
|
|
4051
|
+
className: Ue(wi({
|
|
4052
4052
|
variant: t,
|
|
4053
4053
|
size: n,
|
|
4054
4054
|
className: e
|
|
4055
4055
|
})),
|
|
4056
4056
|
...i
|
|
4057
4057
|
}));
|
|
4058
|
-
|
|
4058
|
+
Ti.displayName = "Button";
|
|
4059
4059
|
//#endregion
|
|
4060
4060
|
//#region lib/graphql/queries/generated/help.generated.tsx
|
|
4061
|
-
var
|
|
4061
|
+
var $ = {}, Ei = /* @__PURE__ */ function(e) {
|
|
4062
|
+
return e.Popular = "POPULAR", e.Recent = "RECENT", e;
|
|
4063
|
+
}({}), Di = H`
|
|
4062
4064
|
query VisitorHelpFolders($parentId: ID, $locale: String) {
|
|
4063
4065
|
visitorHelpFolders(parentId: $parentId, locale: $locale) {
|
|
4064
4066
|
_id
|
|
@@ -4072,13 +4074,13 @@ var Ti = {}, Ei = D`
|
|
|
4072
4074
|
}
|
|
4073
4075
|
}
|
|
4074
4076
|
`;
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4077
|
-
|
|
4077
|
+
function Oi(e) {
|
|
4078
|
+
return l(Di, {
|
|
4079
|
+
...$,
|
|
4078
4080
|
...e
|
|
4079
4081
|
});
|
|
4080
4082
|
}
|
|
4081
|
-
|
|
4083
|
+
H`
|
|
4082
4084
|
query VisitorHelpTags($locale: String) {
|
|
4083
4085
|
visitorHelpTags(locale: $locale) {
|
|
4084
4086
|
_id
|
|
@@ -4088,7 +4090,7 @@ D`
|
|
|
4088
4090
|
}
|
|
4089
4091
|
}
|
|
4090
4092
|
`;
|
|
4091
|
-
var
|
|
4093
|
+
var ki = H`
|
|
4092
4094
|
query VisitorHelpList($args: VisitorHelpListArgs) {
|
|
4093
4095
|
visitorHelpList(args: $args) {
|
|
4094
4096
|
items {
|
|
@@ -4132,13 +4134,13 @@ var Oi = D`
|
|
|
4132
4134
|
}
|
|
4133
4135
|
}
|
|
4134
4136
|
`;
|
|
4135
|
-
function
|
|
4136
|
-
return
|
|
4137
|
-
|
|
4137
|
+
function Ai(e) {
|
|
4138
|
+
return l(ki, {
|
|
4139
|
+
...$,
|
|
4138
4140
|
...e
|
|
4139
4141
|
});
|
|
4140
4142
|
}
|
|
4141
|
-
var
|
|
4143
|
+
var ji = H`
|
|
4142
4144
|
query VisitorHelpArticle($args: VisitorHelpArticleArgs!) {
|
|
4143
4145
|
visitorHelpArticle(args: $args) {
|
|
4144
4146
|
_id
|
|
@@ -4184,13 +4186,13 @@ var Ai = D`
|
|
|
4184
4186
|
}
|
|
4185
4187
|
}
|
|
4186
4188
|
`;
|
|
4187
|
-
function
|
|
4188
|
-
return
|
|
4189
|
-
|
|
4189
|
+
function Mi(e) {
|
|
4190
|
+
return l(ji, {
|
|
4191
|
+
...$,
|
|
4190
4192
|
...e
|
|
4191
4193
|
});
|
|
4192
4194
|
}
|
|
4193
|
-
var
|
|
4195
|
+
var Ni = H`
|
|
4194
4196
|
query VisitorHelpArticlesByIds($ids: [ID!]!, $locale: String) {
|
|
4195
4197
|
visitorHelpArticlesByIds(ids: $ids, locale: $locale) {
|
|
4196
4198
|
_id
|
|
@@ -4205,13 +4207,13 @@ var Mi = D`
|
|
|
4205
4207
|
}
|
|
4206
4208
|
}
|
|
4207
4209
|
`;
|
|
4208
|
-
function
|
|
4209
|
-
return
|
|
4210
|
-
|
|
4210
|
+
function Pi(e) {
|
|
4211
|
+
return l(Ni, {
|
|
4212
|
+
...$,
|
|
4211
4213
|
...e
|
|
4212
4214
|
});
|
|
4213
4215
|
}
|
|
4214
|
-
var
|
|
4216
|
+
var Fi = H`
|
|
4215
4217
|
query VisitorHelpRelated($articleId: ID!, $limit: Int, $locale: String) {
|
|
4216
4218
|
visitorHelpRelated(articleId: $articleId, limit: $limit, locale: $locale) {
|
|
4217
4219
|
_id
|
|
@@ -4225,26 +4227,58 @@ var Pi = D`
|
|
|
4225
4227
|
}
|
|
4226
4228
|
}
|
|
4227
4229
|
`;
|
|
4228
|
-
function
|
|
4229
|
-
return
|
|
4230
|
-
|
|
4230
|
+
function Ii(e) {
|
|
4231
|
+
return l(Fi, {
|
|
4232
|
+
...$,
|
|
4231
4233
|
...e
|
|
4232
4234
|
});
|
|
4233
4235
|
}
|
|
4234
|
-
var
|
|
4236
|
+
var Li = H`
|
|
4235
4237
|
mutation RecordVisitorHelpView($articleId: String!) {
|
|
4236
4238
|
recordVisitorHelpView(articleId: $articleId) {
|
|
4237
4239
|
ok
|
|
4238
4240
|
}
|
|
4239
4241
|
}
|
|
4240
4242
|
`;
|
|
4241
|
-
function
|
|
4242
|
-
return
|
|
4243
|
-
|
|
4243
|
+
function Ri(e) {
|
|
4244
|
+
return n(Li, {
|
|
4245
|
+
...$,
|
|
4246
|
+
...e
|
|
4247
|
+
});
|
|
4248
|
+
}
|
|
4249
|
+
var zi = H`
|
|
4250
|
+
query VisitorHelpListSlim($args: VisitorHelpListArgs) {
|
|
4251
|
+
visitorHelpList(args: $args) {
|
|
4252
|
+
items {
|
|
4253
|
+
_id
|
|
4254
|
+
title
|
|
4255
|
+
slug
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
`;
|
|
4260
|
+
function Bi(e) {
|
|
4261
|
+
return l(zi, {
|
|
4262
|
+
...$,
|
|
4263
|
+
...e
|
|
4264
|
+
});
|
|
4265
|
+
}
|
|
4266
|
+
var Vi = H`
|
|
4267
|
+
query VisitorHelpArticlesByIdsSlim($ids: [ID!]!, $locale: String) {
|
|
4268
|
+
visitorHelpArticlesByIds(ids: $ids, locale: $locale) {
|
|
4269
|
+
_id
|
|
4270
|
+
title
|
|
4271
|
+
slug
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
`;
|
|
4275
|
+
function Hi(e) {
|
|
4276
|
+
return l(Vi, {
|
|
4277
|
+
...$,
|
|
4244
4278
|
...e
|
|
4245
4279
|
});
|
|
4246
4280
|
}
|
|
4247
4281
|
//#endregion
|
|
4248
|
-
export {
|
|
4282
|
+
export { ti as _, Hi as a, Xr as b, Bi as c, hi as d, ui as f, Zr as g, ii as h, Pi as i, Ii as l, oi as m, Ri as n, Oi as o, ci as p, Mi as r, Ai as s, Ei as t, Ti as u, $r as v, ri as y };
|
|
4249
4283
|
|
|
4250
|
-
//# sourceMappingURL=widget-react-
|
|
4284
|
+
//# sourceMappingURL=widget-react-CB6Jxluy.js.map
|