@weng-lab/genomebrowser 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genomebrowser.es.js +792 -792
- package/dist/genomebrowser.es.js.map +1 -1
- package/package.json +1 -1
package/dist/genomebrowser.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import me, { createContext as cu, useContext as
|
|
1
|
+
import me, { createContext as cu, useContext as St, useMemo as Y, useEffect as pe, useRef as Te, useState as ce, useCallback as Be, createElement as Si, Fragment as uu, useLayoutEffect as lu } from "react";
|
|
2
2
|
import oa, { createPortal as sa } from "react-dom";
|
|
3
3
|
function fu(e, t) {
|
|
4
4
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -64,12 +64,12 @@ var Kt = {};
|
|
|
64
64
|
var uo;
|
|
65
65
|
function du() {
|
|
66
66
|
return uo || (uo = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
67
|
-
function e(
|
|
68
|
-
if (
|
|
69
|
-
if (typeof
|
|
70
|
-
return
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (
|
|
67
|
+
function e(T) {
|
|
68
|
+
if (T == null) return null;
|
|
69
|
+
if (typeof T == "function")
|
|
70
|
+
return T.$$typeof === j ? null : T.displayName || T.name || null;
|
|
71
|
+
if (typeof T == "string") return T;
|
|
72
|
+
switch (T) {
|
|
73
73
|
case y:
|
|
74
74
|
return "Fragment";
|
|
75
75
|
case g:
|
|
@@ -83,213 +83,213 @@ function du() {
|
|
|
83
83
|
case D:
|
|
84
84
|
return "Activity";
|
|
85
85
|
}
|
|
86
|
-
if (typeof
|
|
87
|
-
switch (typeof
|
|
86
|
+
if (typeof T == "object")
|
|
87
|
+
switch (typeof T.tag == "number" && console.error(
|
|
88
88
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
89
|
-
),
|
|
89
|
+
), T.$$typeof) {
|
|
90
90
|
case m:
|
|
91
91
|
return "Portal";
|
|
92
92
|
case E:
|
|
93
|
-
return (
|
|
93
|
+
return (T.displayName || "Context") + ".Provider";
|
|
94
94
|
case b:
|
|
95
|
-
return (
|
|
95
|
+
return (T._context.displayName || "Context") + ".Consumer";
|
|
96
96
|
case _:
|
|
97
|
-
var L =
|
|
98
|
-
return
|
|
97
|
+
var L = T.render;
|
|
98
|
+
return T = T.displayName, T || (T = L.displayName || L.name || "", T = T !== "" ? "ForwardRef(" + T + ")" : "ForwardRef"), T;
|
|
99
99
|
case w:
|
|
100
|
-
return L =
|
|
101
|
-
case
|
|
102
|
-
L =
|
|
100
|
+
return L = T.displayName || null, L !== null ? L : e(T.type) || "Memo";
|
|
101
|
+
case S:
|
|
102
|
+
L = T._payload, T = T._init;
|
|
103
103
|
try {
|
|
104
|
-
return e(
|
|
104
|
+
return e(T(L));
|
|
105
105
|
} catch {
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
110
|
-
function t(
|
|
111
|
-
return "" +
|
|
110
|
+
function t(T) {
|
|
111
|
+
return "" + T;
|
|
112
112
|
}
|
|
113
|
-
function r(
|
|
113
|
+
function r(T) {
|
|
114
114
|
try {
|
|
115
|
-
t(
|
|
115
|
+
t(T);
|
|
116
116
|
var L = !1;
|
|
117
117
|
} catch {
|
|
118
118
|
L = !0;
|
|
119
119
|
}
|
|
120
120
|
if (L) {
|
|
121
121
|
L = console;
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var P = L.error, B = typeof Symbol == "function" && Symbol.toStringTag && T[Symbol.toStringTag] || T.constructor.name || "Object";
|
|
123
|
+
return P.call(
|
|
124
124
|
L,
|
|
125
125
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
126
|
-
|
|
127
|
-
), t(
|
|
126
|
+
B
|
|
127
|
+
), t(T);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
function n(
|
|
131
|
-
if (
|
|
132
|
-
if (typeof
|
|
130
|
+
function n(T) {
|
|
131
|
+
if (T === y) return "<>";
|
|
132
|
+
if (typeof T == "object" && T !== null && T.$$typeof === S)
|
|
133
133
|
return "<...>";
|
|
134
134
|
try {
|
|
135
|
-
var L = e(
|
|
135
|
+
var L = e(T);
|
|
136
136
|
return L ? "<" + L + ">" : "<...>";
|
|
137
137
|
} catch {
|
|
138
138
|
return "<...>";
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
function i() {
|
|
142
|
-
var
|
|
143
|
-
return
|
|
142
|
+
var T = C.A;
|
|
143
|
+
return T === null ? null : T.getOwner();
|
|
144
144
|
}
|
|
145
145
|
function o() {
|
|
146
146
|
return Error("react-stack-top-frame");
|
|
147
147
|
}
|
|
148
|
-
function s(
|
|
149
|
-
if (
|
|
150
|
-
var L = Object.getOwnPropertyDescriptor(
|
|
148
|
+
function s(T) {
|
|
149
|
+
if (N.call(T, "key")) {
|
|
150
|
+
var L = Object.getOwnPropertyDescriptor(T, "key").get;
|
|
151
151
|
if (L && L.isReactWarning) return !1;
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return T.key !== void 0;
|
|
154
154
|
}
|
|
155
|
-
function a(
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
function a(T, L) {
|
|
156
|
+
function P() {
|
|
157
|
+
I || (I = !0, console.error(
|
|
158
158
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
159
159
|
L
|
|
160
160
|
));
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
get:
|
|
162
|
+
P.isReactWarning = !0, Object.defineProperty(T, "key", {
|
|
163
|
+
get: P,
|
|
164
164
|
configurable: !0
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
function c() {
|
|
168
|
-
var
|
|
169
|
-
return
|
|
168
|
+
var T = e(this.type);
|
|
169
|
+
return V[T] || (V[T] = !0, console.error(
|
|
170
170
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
171
|
-
)),
|
|
171
|
+
)), T = this.props.ref, T !== void 0 ? T : null;
|
|
172
172
|
}
|
|
173
|
-
function u(
|
|
174
|
-
return
|
|
173
|
+
function u(T, L, P, B, A, G, K, Z) {
|
|
174
|
+
return P = G.ref, T = {
|
|
175
175
|
$$typeof: p,
|
|
176
|
-
type:
|
|
176
|
+
type: T,
|
|
177
177
|
key: L,
|
|
178
178
|
props: G,
|
|
179
179
|
_owner: A
|
|
180
|
-
}, (
|
|
180
|
+
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(T, "ref", {
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
get: c
|
|
183
|
-
}) : Object.defineProperty(
|
|
183
|
+
}) : Object.defineProperty(T, "ref", { enumerable: !1, value: null }), T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
187
|
value: 0
|
|
188
|
-
}), Object.defineProperty(
|
|
188
|
+
}), Object.defineProperty(T, "_debugInfo", {
|
|
189
189
|
configurable: !1,
|
|
190
190
|
enumerable: !1,
|
|
191
191
|
writable: !0,
|
|
192
192
|
value: null
|
|
193
|
-
}), Object.defineProperty(
|
|
193
|
+
}), Object.defineProperty(T, "_debugStack", {
|
|
194
194
|
configurable: !1,
|
|
195
195
|
enumerable: !1,
|
|
196
196
|
writable: !0,
|
|
197
197
|
value: K
|
|
198
|
-
}), Object.defineProperty(
|
|
198
|
+
}), Object.defineProperty(T, "_debugTask", {
|
|
199
199
|
configurable: !1,
|
|
200
200
|
enumerable: !1,
|
|
201
201
|
writable: !0,
|
|
202
202
|
value: Z
|
|
203
|
-
}), Object.freeze && (Object.freeze(
|
|
203
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
204
204
|
}
|
|
205
|
-
function l(
|
|
205
|
+
function l(T, L, P, B, A, G, K, Z) {
|
|
206
206
|
var X = L.children;
|
|
207
207
|
if (X !== void 0)
|
|
208
|
-
if (
|
|
208
|
+
if (B)
|
|
209
209
|
if (F(X)) {
|
|
210
|
-
for (
|
|
211
|
-
h(X[
|
|
210
|
+
for (B = 0; B < X.length; B++)
|
|
211
|
+
h(X[B]);
|
|
212
212
|
Object.freeze && Object.freeze(X);
|
|
213
213
|
} else
|
|
214
214
|
console.error(
|
|
215
215
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
216
216
|
);
|
|
217
217
|
else h(X);
|
|
218
|
-
if (
|
|
219
|
-
X = e(
|
|
218
|
+
if (N.call(L, "key")) {
|
|
219
|
+
X = e(T);
|
|
220
220
|
var re = Object.keys(L).filter(function(Le) {
|
|
221
221
|
return Le !== "key";
|
|
222
222
|
});
|
|
223
|
-
|
|
223
|
+
B = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", Q[X + B] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
224
224
|
`A props object containing a "key" prop is being spread into JSX:
|
|
225
225
|
let props = %s;
|
|
226
226
|
<%s {...props} />
|
|
227
227
|
React keys must be passed directly to JSX without using spread:
|
|
228
228
|
let props = %s;
|
|
229
229
|
<%s key={someKey} {...props} />`,
|
|
230
|
-
|
|
230
|
+
B,
|
|
231
231
|
X,
|
|
232
232
|
re,
|
|
233
233
|
X
|
|
234
|
-
), Q[X +
|
|
234
|
+
), Q[X + B] = !0);
|
|
235
235
|
}
|
|
236
|
-
if (X = null,
|
|
237
|
-
|
|
236
|
+
if (X = null, P !== void 0 && (r(P), X = "" + P), s(L) && (r(L.key), X = "" + L.key), "key" in L) {
|
|
237
|
+
P = {};
|
|
238
238
|
for (var ne in L)
|
|
239
|
-
ne !== "key" && (
|
|
240
|
-
} else
|
|
239
|
+
ne !== "key" && (P[ne] = L[ne]);
|
|
240
|
+
} else P = L;
|
|
241
241
|
return X && a(
|
|
242
|
-
|
|
243
|
-
typeof
|
|
242
|
+
P,
|
|
243
|
+
typeof T == "function" ? T.displayName || T.name || "Unknown" : T
|
|
244
244
|
), u(
|
|
245
|
-
|
|
245
|
+
T,
|
|
246
246
|
X,
|
|
247
247
|
G,
|
|
248
248
|
A,
|
|
249
249
|
i(),
|
|
250
|
-
|
|
250
|
+
P,
|
|
251
251
|
K,
|
|
252
252
|
Z
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
function h(
|
|
256
|
-
typeof
|
|
255
|
+
function h(T) {
|
|
256
|
+
typeof T == "object" && T !== null && T.$$typeof === p && T._store && (T._store.validated = 1);
|
|
257
257
|
}
|
|
258
|
-
var f = me, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), E = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"),
|
|
258
|
+
var f = me, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), E = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), C = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, F = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
259
259
|
return null;
|
|
260
260
|
};
|
|
261
261
|
f = {
|
|
262
|
-
react_stack_bottom_frame: function(
|
|
263
|
-
return
|
|
262
|
+
react_stack_bottom_frame: function(T) {
|
|
263
|
+
return T();
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
var
|
|
266
|
+
var I, V = {}, U = f.react_stack_bottom_frame.bind(
|
|
267
267
|
f,
|
|
268
268
|
o
|
|
269
|
-
)(),
|
|
270
|
-
Kt.Fragment = y, Kt.jsx = function(
|
|
269
|
+
)(), ae = W(n(o)), Q = {};
|
|
270
|
+
Kt.Fragment = y, Kt.jsx = function(T, L, P, B, A) {
|
|
271
271
|
var G = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
272
272
|
return l(
|
|
273
|
-
|
|
273
|
+
T,
|
|
274
274
|
L,
|
|
275
|
-
|
|
275
|
+
P,
|
|
276
276
|
!1,
|
|
277
|
-
|
|
277
|
+
B,
|
|
278
278
|
A,
|
|
279
279
|
G ? Error("react-stack-top-frame") : U,
|
|
280
|
-
G ? W(n(
|
|
280
|
+
G ? W(n(T)) : ae
|
|
281
281
|
);
|
|
282
|
-
}, Kt.jsxs = function(
|
|
282
|
+
}, Kt.jsxs = function(T, L, P, B, A) {
|
|
283
283
|
var G = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
284
284
|
return l(
|
|
285
|
-
|
|
285
|
+
T,
|
|
286
286
|
L,
|
|
287
|
-
|
|
287
|
+
P,
|
|
288
288
|
!0,
|
|
289
|
-
|
|
289
|
+
B,
|
|
290
290
|
A,
|
|
291
291
|
G ? Error("react-stack-top-frame") : U,
|
|
292
|
-
G ? W(n(
|
|
292
|
+
G ? W(n(T)) : ae
|
|
293
293
|
);
|
|
294
294
|
};
|
|
295
295
|
})()), Kt;
|
|
@@ -437,7 +437,7 @@ var yn = "Invariant Violation", fo = Object.setPrototypeOf, mu = fo === void 0 ?
|
|
|
437
437
|
return t;
|
|
438
438
|
})(Error)
|
|
439
439
|
);
|
|
440
|
-
function
|
|
440
|
+
function yt(e, t) {
|
|
441
441
|
if (!e)
|
|
442
442
|
throw new ca(t);
|
|
443
443
|
}
|
|
@@ -452,7 +452,7 @@ function Dr(e) {
|
|
|
452
452
|
}
|
|
453
453
|
(function(e) {
|
|
454
454
|
e.debug = Dr("debug"), e.log = Dr("log"), e.warn = Dr("warn"), e.error = Dr("error");
|
|
455
|
-
})(
|
|
455
|
+
})(yt || (yt = {}));
|
|
456
456
|
var Ti = "3.14.0";
|
|
457
457
|
function Ae(e) {
|
|
458
458
|
try {
|
|
@@ -500,15 +500,15 @@ function Lr(e) {
|
|
|
500
500
|
e.apply(void 0, [t].concat(r));
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
var
|
|
503
|
+
var R = Object.assign(function(t, r) {
|
|
504
504
|
for (var n = [], i = 2; i < arguments.length; i++)
|
|
505
505
|
n[i - 2] = arguments[i];
|
|
506
|
-
t ||
|
|
506
|
+
t || yt(t, ki(r, n) || Oi(r, n));
|
|
507
507
|
}, {
|
|
508
|
-
debug: Lr(
|
|
509
|
-
log: Lr(
|
|
510
|
-
warn: Lr(
|
|
511
|
-
error: Lr(
|
|
508
|
+
debug: Lr(yt.debug),
|
|
509
|
+
log: Lr(yt.log),
|
|
510
|
+
warn: Lr(yt.warn),
|
|
511
|
+
error: Lr(yt.error)
|
|
512
512
|
});
|
|
513
513
|
function je(e) {
|
|
514
514
|
for (var t = [], r = 1; r < arguments.length; r++)
|
|
@@ -993,7 +993,7 @@ function ga(e) {
|
|
|
993
993
|
function ya(e) {
|
|
994
994
|
return e >= 56320 && e <= 57343;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Et(e, t) {
|
|
997
997
|
const r = e.source.body.codePointAt(t);
|
|
998
998
|
if (r === void 0)
|
|
999
999
|
return M.EOF;
|
|
@@ -1098,7 +1098,7 @@ function Lu(e, t) {
|
|
|
1098
1098
|
throw _e(
|
|
1099
1099
|
e.source,
|
|
1100
1100
|
i,
|
|
1101
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Ut(o) || nn(r, i) ? `Unexpected character: ${
|
|
1101
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Ut(o) || nn(r, i) ? `Unexpected character: ${Et(e, i)}.` : `Invalid character: ${Et(e, i)}.`
|
|
1102
1102
|
);
|
|
1103
1103
|
}
|
|
1104
1104
|
return Ee(e, M.EOF, n, n);
|
|
@@ -1133,7 +1133,7 @@ function ju(e, t, r) {
|
|
|
1133
1133
|
throw _e(
|
|
1134
1134
|
e.source,
|
|
1135
1135
|
i,
|
|
1136
|
-
`Invalid number, unexpected digit after 0: ${
|
|
1136
|
+
`Invalid number, unexpected digit after 0: ${Et(
|
|
1137
1137
|
e,
|
|
1138
1138
|
i
|
|
1139
1139
|
)}.`
|
|
@@ -1144,7 +1144,7 @@ function ju(e, t, r) {
|
|
|
1144
1144
|
throw _e(
|
|
1145
1145
|
e.source,
|
|
1146
1146
|
i,
|
|
1147
|
-
`Invalid number, expected digit but got: ${
|
|
1147
|
+
`Invalid number, expected digit but got: ${Et(
|
|
1148
1148
|
e,
|
|
1149
1149
|
i
|
|
1150
1150
|
)}.`
|
|
@@ -1162,7 +1162,7 @@ function bn(e, t, r) {
|
|
|
1162
1162
|
throw _e(
|
|
1163
1163
|
e.source,
|
|
1164
1164
|
t,
|
|
1165
|
-
`Invalid number, expected digit but got: ${
|
|
1165
|
+
`Invalid number, expected digit but got: ${Et(
|
|
1166
1166
|
e,
|
|
1167
1167
|
t
|
|
1168
1168
|
)}.`
|
|
@@ -1196,7 +1196,7 @@ function Ru(e, t) {
|
|
|
1196
1196
|
throw _e(
|
|
1197
1197
|
e.source,
|
|
1198
1198
|
i,
|
|
1199
|
-
`Invalid character within String: ${
|
|
1199
|
+
`Invalid character within String: ${Et(
|
|
1200
1200
|
e,
|
|
1201
1201
|
i
|
|
1202
1202
|
)}.`
|
|
@@ -1345,7 +1345,7 @@ function Au(e, t) {
|
|
|
1345
1345
|
throw _e(
|
|
1346
1346
|
e.source,
|
|
1347
1347
|
o,
|
|
1348
|
-
`Invalid character within String: ${
|
|
1348
|
+
`Invalid character within String: ${Et(
|
|
1349
1349
|
e,
|
|
1350
1350
|
o
|
|
1351
1351
|
)}.`
|
|
@@ -2861,17 +2861,17 @@ const rl = 80, nl = {
|
|
|
2861
2861
|
},
|
|
2862
2862
|
// Document
|
|
2863
2863
|
Document: {
|
|
2864
|
-
leave: (e) =>
|
|
2864
|
+
leave: (e) => z(e.definitions, `
|
|
2865
2865
|
|
|
2866
2866
|
`)
|
|
2867
2867
|
},
|
|
2868
2868
|
OperationDefinition: {
|
|
2869
2869
|
leave(e) {
|
|
2870
|
-
const t = ie("(",
|
|
2870
|
+
const t = ie("(", z(e.variableDefinitions, ", "), ")"), r = z(
|
|
2871
2871
|
[
|
|
2872
2872
|
e.operation,
|
|
2873
|
-
|
|
2874
|
-
|
|
2873
|
+
z([e.name, t]),
|
|
2874
|
+
z(e.directives, " ")
|
|
2875
2875
|
],
|
|
2876
2876
|
" "
|
|
2877
2877
|
);
|
|
@@ -2879,7 +2879,7 @@ const rl = 80, nl = {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
},
|
|
2881
2881
|
VariableDefinition: {
|
|
2882
|
-
leave: ({ variable: e, type: t, defaultValue: r, directives: n }) => e + ": " + t + ie(" = ", r) + ie(" ",
|
|
2882
|
+
leave: ({ variable: e, type: t, defaultValue: r, directives: n }) => e + ": " + t + ie(" = ", r) + ie(" ", z(n, " "))
|
|
2883
2883
|
},
|
|
2884
2884
|
SelectionSet: {
|
|
2885
2885
|
leave: ({ selections: e }) => Pe(e)
|
|
@@ -2887,11 +2887,11 @@ const rl = 80, nl = {
|
|
|
2887
2887
|
Field: {
|
|
2888
2888
|
leave({ alias: e, name: t, arguments: r, directives: n, selectionSet: i }) {
|
|
2889
2889
|
const o = ie("", e, ": ") + t;
|
|
2890
|
-
let s = o + ie("(",
|
|
2890
|
+
let s = o + ie("(", z(r, ", "), ")");
|
|
2891
2891
|
return s.length > rl && (s = o + ie(`(
|
|
2892
|
-
`, Vr(
|
|
2892
|
+
`, Vr(z(r, `
|
|
2893
2893
|
`)), `
|
|
2894
|
-
)`)),
|
|
2894
|
+
)`)), z([s, z(n, " "), i], " ");
|
|
2895
2895
|
}
|
|
2896
2896
|
},
|
|
2897
2897
|
Argument: {
|
|
@@ -2899,14 +2899,14 @@ const rl = 80, nl = {
|
|
|
2899
2899
|
},
|
|
2900
2900
|
// Fragments
|
|
2901
2901
|
FragmentSpread: {
|
|
2902
|
-
leave: ({ name: e, directives: t }) => "..." + e + ie(" ",
|
|
2902
|
+
leave: ({ name: e, directives: t }) => "..." + e + ie(" ", z(t, " "))
|
|
2903
2903
|
},
|
|
2904
2904
|
InlineFragment: {
|
|
2905
|
-
leave: ({ typeCondition: e, directives: t, selectionSet: r }) =>
|
|
2905
|
+
leave: ({ typeCondition: e, directives: t, selectionSet: r }) => z(
|
|
2906
2906
|
[
|
|
2907
2907
|
"...",
|
|
2908
2908
|
ie("on ", e),
|
|
2909
|
-
|
|
2909
|
+
z(t, " "),
|
|
2910
2910
|
r
|
|
2911
2911
|
],
|
|
2912
2912
|
" "
|
|
@@ -2915,7 +2915,7 @@ const rl = 80, nl = {
|
|
|
2915
2915
|
FragmentDefinition: {
|
|
2916
2916
|
leave: ({ name: e, typeCondition: t, variableDefinitions: r, directives: n, selectionSet: i }) => (
|
|
2917
2917
|
// or removed in the future.
|
|
2918
|
-
`fragment ${e}${ie("(",
|
|
2918
|
+
`fragment ${e}${ie("(", z(r, ", "), ")")} on ${t} ${ie("", z(n, " "), " ")}` + i
|
|
2919
2919
|
)
|
|
2920
2920
|
},
|
|
2921
2921
|
// Value
|
|
@@ -2938,17 +2938,17 @@ const rl = 80, nl = {
|
|
|
2938
2938
|
leave: ({ value: e }) => e
|
|
2939
2939
|
},
|
|
2940
2940
|
ListValue: {
|
|
2941
|
-
leave: ({ values: e }) => "[" +
|
|
2941
|
+
leave: ({ values: e }) => "[" + z(e, ", ") + "]"
|
|
2942
2942
|
},
|
|
2943
2943
|
ObjectValue: {
|
|
2944
|
-
leave: ({ fields: e }) => "{" +
|
|
2944
|
+
leave: ({ fields: e }) => "{" + z(e, ", ") + "}"
|
|
2945
2945
|
},
|
|
2946
2946
|
ObjectField: {
|
|
2947
2947
|
leave: ({ name: e, value: t }) => e + ": " + t
|
|
2948
2948
|
},
|
|
2949
2949
|
// Directive
|
|
2950
2950
|
Directive: {
|
|
2951
|
-
leave: ({ name: e, arguments: t }) => "@" + e + ie("(",
|
|
2951
|
+
leave: ({ name: e, arguments: t }) => "@" + e + ie("(", z(t, ", "), ")")
|
|
2952
2952
|
},
|
|
2953
2953
|
// Type
|
|
2954
2954
|
NamedType: {
|
|
@@ -2963,23 +2963,23 @@ const rl = 80, nl = {
|
|
|
2963
2963
|
// Type System Definitions
|
|
2964
2964
|
SchemaDefinition: {
|
|
2965
2965
|
leave: ({ description: e, directives: t, operationTypes: r }) => ie("", e, `
|
|
2966
|
-
`) +
|
|
2966
|
+
`) + z(["schema", z(t, " "), Pe(r)], " ")
|
|
2967
2967
|
},
|
|
2968
2968
|
OperationTypeDefinition: {
|
|
2969
2969
|
leave: ({ operation: e, type: t }) => e + ": " + t
|
|
2970
2970
|
},
|
|
2971
2971
|
ScalarTypeDefinition: {
|
|
2972
2972
|
leave: ({ description: e, name: t, directives: r }) => ie("", e, `
|
|
2973
|
-
`) +
|
|
2973
|
+
`) + z(["scalar", t, z(r, " ")], " ")
|
|
2974
2974
|
},
|
|
2975
2975
|
ObjectTypeDefinition: {
|
|
2976
2976
|
leave: ({ description: e, name: t, interfaces: r, directives: n, fields: i }) => ie("", e, `
|
|
2977
|
-
`) +
|
|
2977
|
+
`) + z(
|
|
2978
2978
|
[
|
|
2979
2979
|
"type",
|
|
2980
2980
|
t,
|
|
2981
|
-
ie("implements ",
|
|
2982
|
-
|
|
2981
|
+
ie("implements ", z(r, " & ")),
|
|
2982
|
+
z(n, " "),
|
|
2983
2983
|
Pe(i)
|
|
2984
2984
|
],
|
|
2985
2985
|
" "
|
|
@@ -2988,25 +2988,25 @@ const rl = 80, nl = {
|
|
|
2988
2988
|
FieldDefinition: {
|
|
2989
2989
|
leave: ({ description: e, name: t, arguments: r, type: n, directives: i }) => ie("", e, `
|
|
2990
2990
|
`) + t + (bo(r) ? ie(`(
|
|
2991
|
-
`, Vr(
|
|
2991
|
+
`, Vr(z(r, `
|
|
2992
2992
|
`)), `
|
|
2993
|
-
)`) : ie("(",
|
|
2993
|
+
)`) : ie("(", z(r, ", "), ")")) + ": " + n + ie(" ", z(i, " "))
|
|
2994
2994
|
},
|
|
2995
2995
|
InputValueDefinition: {
|
|
2996
2996
|
leave: ({ description: e, name: t, type: r, defaultValue: n, directives: i }) => ie("", e, `
|
|
2997
|
-
`) +
|
|
2998
|
-
[t + ": " + r, ie("= ", n),
|
|
2997
|
+
`) + z(
|
|
2998
|
+
[t + ": " + r, ie("= ", n), z(i, " ")],
|
|
2999
2999
|
" "
|
|
3000
3000
|
)
|
|
3001
3001
|
},
|
|
3002
3002
|
InterfaceTypeDefinition: {
|
|
3003
3003
|
leave: ({ description: e, name: t, interfaces: r, directives: n, fields: i }) => ie("", e, `
|
|
3004
|
-
`) +
|
|
3004
|
+
`) + z(
|
|
3005
3005
|
[
|
|
3006
3006
|
"interface",
|
|
3007
3007
|
t,
|
|
3008
|
-
ie("implements ",
|
|
3009
|
-
|
|
3008
|
+
ie("implements ", z(r, " & ")),
|
|
3009
|
+
z(n, " "),
|
|
3010
3010
|
Pe(i)
|
|
3011
3011
|
],
|
|
3012
3012
|
" "
|
|
@@ -3014,88 +3014,88 @@ const rl = 80, nl = {
|
|
|
3014
3014
|
},
|
|
3015
3015
|
UnionTypeDefinition: {
|
|
3016
3016
|
leave: ({ description: e, name: t, directives: r, types: n }) => ie("", e, `
|
|
3017
|
-
`) +
|
|
3018
|
-
["union", t,
|
|
3017
|
+
`) + z(
|
|
3018
|
+
["union", t, z(r, " "), ie("= ", z(n, " | "))],
|
|
3019
3019
|
" "
|
|
3020
3020
|
)
|
|
3021
3021
|
},
|
|
3022
3022
|
EnumTypeDefinition: {
|
|
3023
3023
|
leave: ({ description: e, name: t, directives: r, values: n }) => ie("", e, `
|
|
3024
|
-
`) +
|
|
3024
|
+
`) + z(["enum", t, z(r, " "), Pe(n)], " ")
|
|
3025
3025
|
},
|
|
3026
3026
|
EnumValueDefinition: {
|
|
3027
3027
|
leave: ({ description: e, name: t, directives: r }) => ie("", e, `
|
|
3028
|
-
`) +
|
|
3028
|
+
`) + z([t, z(r, " ")], " ")
|
|
3029
3029
|
},
|
|
3030
3030
|
InputObjectTypeDefinition: {
|
|
3031
3031
|
leave: ({ description: e, name: t, directives: r, fields: n }) => ie("", e, `
|
|
3032
|
-
`) +
|
|
3032
|
+
`) + z(["input", t, z(r, " "), Pe(n)], " ")
|
|
3033
3033
|
},
|
|
3034
3034
|
DirectiveDefinition: {
|
|
3035
3035
|
leave: ({ description: e, name: t, arguments: r, repeatable: n, locations: i }) => ie("", e, `
|
|
3036
3036
|
`) + "directive @" + t + (bo(r) ? ie(`(
|
|
3037
|
-
`, Vr(
|
|
3037
|
+
`, Vr(z(r, `
|
|
3038
3038
|
`)), `
|
|
3039
|
-
)`) : ie("(",
|
|
3039
|
+
)`) : ie("(", z(r, ", "), ")")) + (n ? " repeatable" : "") + " on " + z(i, " | ")
|
|
3040
3040
|
},
|
|
3041
3041
|
SchemaExtension: {
|
|
3042
|
-
leave: ({ directives: e, operationTypes: t }) =>
|
|
3043
|
-
["extend schema",
|
|
3042
|
+
leave: ({ directives: e, operationTypes: t }) => z(
|
|
3043
|
+
["extend schema", z(e, " "), Pe(t)],
|
|
3044
3044
|
" "
|
|
3045
3045
|
)
|
|
3046
3046
|
},
|
|
3047
3047
|
ScalarTypeExtension: {
|
|
3048
|
-
leave: ({ name: e, directives: t }) =>
|
|
3048
|
+
leave: ({ name: e, directives: t }) => z(["extend scalar", e, z(t, " ")], " ")
|
|
3049
3049
|
},
|
|
3050
3050
|
ObjectTypeExtension: {
|
|
3051
|
-
leave: ({ name: e, interfaces: t, directives: r, fields: n }) =>
|
|
3051
|
+
leave: ({ name: e, interfaces: t, directives: r, fields: n }) => z(
|
|
3052
3052
|
[
|
|
3053
3053
|
"extend type",
|
|
3054
3054
|
e,
|
|
3055
|
-
ie("implements ",
|
|
3056
|
-
|
|
3055
|
+
ie("implements ", z(t, " & ")),
|
|
3056
|
+
z(r, " "),
|
|
3057
3057
|
Pe(n)
|
|
3058
3058
|
],
|
|
3059
3059
|
" "
|
|
3060
3060
|
)
|
|
3061
3061
|
},
|
|
3062
3062
|
InterfaceTypeExtension: {
|
|
3063
|
-
leave: ({ name: e, interfaces: t, directives: r, fields: n }) =>
|
|
3063
|
+
leave: ({ name: e, interfaces: t, directives: r, fields: n }) => z(
|
|
3064
3064
|
[
|
|
3065
3065
|
"extend interface",
|
|
3066
3066
|
e,
|
|
3067
|
-
ie("implements ",
|
|
3068
|
-
|
|
3067
|
+
ie("implements ", z(t, " & ")),
|
|
3068
|
+
z(r, " "),
|
|
3069
3069
|
Pe(n)
|
|
3070
3070
|
],
|
|
3071
3071
|
" "
|
|
3072
3072
|
)
|
|
3073
3073
|
},
|
|
3074
3074
|
UnionTypeExtension: {
|
|
3075
|
-
leave: ({ name: e, directives: t, types: r }) =>
|
|
3075
|
+
leave: ({ name: e, directives: t, types: r }) => z(
|
|
3076
3076
|
[
|
|
3077
3077
|
"extend union",
|
|
3078
3078
|
e,
|
|
3079
|
-
|
|
3080
|
-
ie("= ",
|
|
3079
|
+
z(t, " "),
|
|
3080
|
+
ie("= ", z(r, " | "))
|
|
3081
3081
|
],
|
|
3082
3082
|
" "
|
|
3083
3083
|
)
|
|
3084
3084
|
},
|
|
3085
3085
|
EnumTypeExtension: {
|
|
3086
|
-
leave: ({ name: e, directives: t, values: r }) =>
|
|
3086
|
+
leave: ({ name: e, directives: t, values: r }) => z(["extend enum", e, z(t, " "), Pe(r)], " ")
|
|
3087
3087
|
},
|
|
3088
3088
|
InputObjectTypeExtension: {
|
|
3089
|
-
leave: ({ name: e, directives: t, fields: r }) =>
|
|
3089
|
+
leave: ({ name: e, directives: t, fields: r }) => z(["extend input", e, z(t, " "), Pe(r)], " ")
|
|
3090
3090
|
}
|
|
3091
3091
|
};
|
|
3092
|
-
function
|
|
3092
|
+
function z(e, t = "") {
|
|
3093
3093
|
var r;
|
|
3094
3094
|
return (r = e == null ? void 0 : e.filter((n) => n).join(t)) !== null && r !== void 0 ? r : "";
|
|
3095
3095
|
}
|
|
3096
3096
|
function Pe(e) {
|
|
3097
3097
|
return ie(`{
|
|
3098
|
-
`, Vr(
|
|
3098
|
+
`, Vr(z(e, `
|
|
3099
3099
|
`)), `
|
|
3100
3100
|
}`);
|
|
3101
3101
|
}
|
|
@@ -3118,7 +3118,7 @@ function Sr(e, t) {
|
|
|
3118
3118
|
var r = e.directives;
|
|
3119
3119
|
return !r || !r.length ? !0 : sl(r).every(function(n) {
|
|
3120
3120
|
var i = n.directive, o = n.ifArgument, s = !1;
|
|
3121
|
-
return o.value.kind === "Variable" ? (s = t && t[o.value.name.value],
|
|
3121
|
+
return o.value.kind === "Variable" ? (s = t && t[o.value.name.value], R(s !== void 0, 106, i.name.value)) : s = o.value.value, i.name.value === "skip" ? !s : s;
|
|
3122
3122
|
});
|
|
3123
3123
|
}
|
|
3124
3124
|
function yr(e, t, r) {
|
|
@@ -3142,11 +3142,11 @@ function sl(e) {
|
|
|
3142
3142
|
return e && e.length && e.forEach(function(r) {
|
|
3143
3143
|
if (ol(r)) {
|
|
3144
3144
|
var n = r.arguments, i = r.name.value;
|
|
3145
|
-
|
|
3145
|
+
R(n && n.length === 1, 107, i);
|
|
3146
3146
|
var o = n[0];
|
|
3147
|
-
|
|
3147
|
+
R(o.name && o.name.value === "if", 108, i);
|
|
3148
3148
|
var s = o.value;
|
|
3149
|
-
|
|
3149
|
+
R(s && (s.kind === "Variable" || s.kind === "BooleanValue"), 109, i), t.push({ directive: r, ifArgument: o });
|
|
3150
3150
|
}
|
|
3151
3151
|
}), t;
|
|
3152
3152
|
}
|
|
@@ -3161,7 +3161,7 @@ function al(e) {
|
|
|
3161
3161
|
var s = o.name;
|
|
3162
3162
|
return s.value === "mode";
|
|
3163
3163
|
});
|
|
3164
|
-
return globalThis.__DEV__ !== !1 && i && (i.value.kind === q.VARIABLE ? globalThis.__DEV__ !== !1 &&
|
|
3164
|
+
return globalThis.__DEV__ !== !1 && i && (i.value.kind === q.VARIABLE ? globalThis.__DEV__ !== !1 && R.warn(110) : i.value.kind !== q.STRING ? globalThis.__DEV__ !== !1 && R.warn(111) : i.value.value !== "migrate" && globalThis.__DEV__ !== !1 && R.warn(112, i.value.value)), i && "value" in i.value && i.value.value === "migrate" ? "migrate" : "unmask";
|
|
3165
3165
|
}
|
|
3166
3166
|
const cl = () => /* @__PURE__ */ Object.create(null), { forEach: ul, slice: Eo } = Array.prototype, { hasOwnProperty: ll } = Object.prototype;
|
|
3167
3167
|
class Ke {
|
|
@@ -3220,7 +3220,7 @@ function fl(e) {
|
|
|
3220
3220
|
}
|
|
3221
3221
|
var wa = Ae(function() {
|
|
3222
3222
|
return navigator.product;
|
|
3223
|
-
}) == "ReactNative",
|
|
3223
|
+
}) == "ReactNative", Tt = typeof WeakMap == "function" && !(wa && !global.HermesInternal), Li = typeof WeakSet == "function", Mi = typeof Symbol == "function" && typeof Symbol.for == "function", an = Mi && Symbol.asyncIterator, _a = typeof Ae(function() {
|
|
3224
3224
|
return window.document.createElement;
|
|
3225
3225
|
}) == "function", hl = (
|
|
3226
3226
|
// Following advice found in this comment from @domenic (maintainer of jsdom):
|
|
@@ -3248,7 +3248,7 @@ function pl(e, t) {
|
|
|
3248
3248
|
o.name ? " named '".concat(o.name.value, "'") : ""
|
|
3249
3249
|
);
|
|
3250
3250
|
o.kind === "FragmentDefinition" && n.push(o);
|
|
3251
|
-
}), typeof r > "u" && (
|
|
3251
|
+
}), typeof r > "u" && (R(n.length === 1, 114, n.length), r = n[0].name.value);
|
|
3252
3252
|
var i = k(k({}, e), { definitions: Ce([
|
|
3253
3253
|
{
|
|
3254
3254
|
kind: "OperationDefinition",
|
|
@@ -3286,7 +3286,7 @@ function cn(e, t) {
|
|
|
3286
3286
|
if (typeof t == "function")
|
|
3287
3287
|
return t(r);
|
|
3288
3288
|
var n = t && t[r];
|
|
3289
|
-
return
|
|
3289
|
+
return R(n, 115, r), n || null;
|
|
3290
3290
|
}
|
|
3291
3291
|
default:
|
|
3292
3292
|
return null;
|
|
@@ -3429,9 +3429,9 @@ var ji = function(e, t) {
|
|
|
3429
3429
|
var o = Jn.prototype.set.call(this, n, i);
|
|
3430
3430
|
return Sa(this), o;
|
|
3431
3431
|
}, r;
|
|
3432
|
-
}, _l = Symbol.for("apollo.cacheSize"), Qe = k({}, Yr[_l]),
|
|
3432
|
+
}, _l = Symbol.for("apollo.cacheSize"), Qe = k({}, Yr[_l]), gt = {};
|
|
3433
3433
|
function Ri(e, t) {
|
|
3434
|
-
|
|
3434
|
+
gt[e] = t;
|
|
3435
3435
|
}
|
|
3436
3436
|
var Sl = globalThis.__DEV__ !== !1 ? Cl : void 0, Tl = globalThis.__DEV__ !== !1 ? Dl : void 0, kl = globalThis.__DEV__ !== !1 ? Ta : void 0;
|
|
3437
3437
|
function Ol() {
|
|
@@ -3465,7 +3465,7 @@ function Cl() {
|
|
|
3465
3465
|
throw new Error("only supported in development mode");
|
|
3466
3466
|
return {
|
|
3467
3467
|
limits: Ol(),
|
|
3468
|
-
sizes: k({ print: (e =
|
|
3468
|
+
sizes: k({ print: (e = gt.print) === null || e === void 0 ? void 0 : e.call(gt), parser: (t = gt.parser) === null || t === void 0 ? void 0 : t.call(gt), canonicalStringify: (r = gt.canonicalStringify) === null || r === void 0 ? void 0 : r.call(gt), links: ei(this.link), queryManager: {
|
|
3469
3469
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
3470
3470
|
documentTransforms: Oa(this.queryManager.documentTransform)
|
|
3471
3471
|
} }, (i = (n = this.cache).getMemoryInternals) === null || i === void 0 ? void 0 : i.call(n))
|
|
@@ -3699,7 +3699,7 @@ function zl(e) {
|
|
|
3699
3699
|
return e.kind === "InlineFragment";
|
|
3700
3700
|
}
|
|
3701
3701
|
function Yt(e) {
|
|
3702
|
-
|
|
3702
|
+
R(e && e.kind === "Document", 116);
|
|
3703
3703
|
var t = e.definitions.filter(function(r) {
|
|
3704
3704
|
return r.kind !== "FragmentDefinition";
|
|
3705
3705
|
}).map(function(r) {
|
|
@@ -3707,9 +3707,9 @@ function Yt(e) {
|
|
|
3707
3707
|
throw je(117, r.kind);
|
|
3708
3708
|
return r;
|
|
3709
3709
|
});
|
|
3710
|
-
return
|
|
3710
|
+
return R(t.length <= 1, 118, t.length), e;
|
|
3711
3711
|
}
|
|
3712
|
-
function
|
|
3712
|
+
function wt(e) {
|
|
3713
3713
|
return Yt(e), e.definitions.filter(function(t) {
|
|
3714
3714
|
return t.kind === "OperationDefinition";
|
|
3715
3715
|
})[0];
|
|
@@ -3727,13 +3727,13 @@ function Gt(e) {
|
|
|
3727
3727
|
});
|
|
3728
3728
|
}
|
|
3729
3729
|
function Da(e) {
|
|
3730
|
-
var t =
|
|
3731
|
-
return
|
|
3730
|
+
var t = wt(e);
|
|
3731
|
+
return R(t && t.operation === "query", 119), t;
|
|
3732
3732
|
}
|
|
3733
3733
|
function La(e) {
|
|
3734
|
-
|
|
3734
|
+
R(e.kind === "Document", 120), R(e.definitions.length <= 1, 121);
|
|
3735
3735
|
var t = e.definitions[0];
|
|
3736
|
-
return
|
|
3736
|
+
return R(t.kind === "FragmentDefinition", 122), t;
|
|
3737
3737
|
}
|
|
3738
3738
|
function Tr(e) {
|
|
3739
3739
|
Yt(e);
|
|
@@ -4104,12 +4104,12 @@ var Ba = (
|
|
|
4104
4104
|
}, e.prototype.resetCache = function() {
|
|
4105
4105
|
var t = this;
|
|
4106
4106
|
if (this.cached) {
|
|
4107
|
-
var r = new Ke(
|
|
4107
|
+
var r = new Ke(Tt);
|
|
4108
4108
|
this.performWork = xr(e.prototype.performWork.bind(this), {
|
|
4109
4109
|
makeCacheKey: function(n) {
|
|
4110
4110
|
var i = t.getCacheKey(n);
|
|
4111
4111
|
if (i)
|
|
4112
|
-
return
|
|
4112
|
+
return R(Array.isArray(i), 105), r.lookupArray(i);
|
|
4113
4113
|
},
|
|
4114
4114
|
max: Qe["documentTransform.cache"],
|
|
4115
4115
|
cache: Gr
|
|
@@ -4136,7 +4136,7 @@ var Ba = (
|
|
|
4136
4136
|
});
|
|
4137
4137
|
}, e;
|
|
4138
4138
|
})()
|
|
4139
|
-
), fr,
|
|
4139
|
+
), fr, bt = Object.assign(function(e) {
|
|
4140
4140
|
var t = fr.get(e);
|
|
4141
4141
|
return t || (t = tl(e), fr.set(e, t)), t;
|
|
4142
4142
|
}, {
|
|
@@ -4147,7 +4147,7 @@ var Ba = (
|
|
|
4147
4147
|
);
|
|
4148
4148
|
}
|
|
4149
4149
|
});
|
|
4150
|
-
|
|
4150
|
+
bt.reset();
|
|
4151
4151
|
globalThis.__DEV__ !== !1 && Ri("print", function() {
|
|
4152
4152
|
return fr ? fr.size : 0;
|
|
4153
4153
|
});
|
|
@@ -4168,7 +4168,7 @@ function Wa(e, t) {
|
|
|
4168
4168
|
});
|
|
4169
4169
|
}
|
|
4170
4170
|
function of(e) {
|
|
4171
|
-
return Wa(
|
|
4171
|
+
return Wa(wt(e) || La(e), Ht(Gt(e))) ? null : e;
|
|
4172
4172
|
}
|
|
4173
4173
|
function sf(e) {
|
|
4174
4174
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
@@ -4206,7 +4206,7 @@ function Qa(e, t) {
|
|
|
4206
4206
|
if (E.kind === q.FRAGMENT_DEFINITION)
|
|
4207
4207
|
return n(E.name.value);
|
|
4208
4208
|
}
|
|
4209
|
-
return globalThis.__DEV__ !== !1 &&
|
|
4209
|
+
return globalThis.__DEV__ !== !1 && R.error(125), null;
|
|
4210
4210
|
}, o = 0, s = t.definitions.length - 1; s >= 0; --s)
|
|
4211
4211
|
t.definitions[s].kind === q.OPERATION_DEFINITION && ++o;
|
|
4212
4212
|
var a = sf(e), c = function(g) {
|
|
@@ -5078,7 +5078,7 @@ function oi(e) {
|
|
|
5078
5078
|
r.errors && t.push.apply(t, r.errors);
|
|
5079
5079
|
}), t;
|
|
5080
5080
|
}
|
|
5081
|
-
function
|
|
5081
|
+
function _t() {
|
|
5082
5082
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
5083
5083
|
e[t] = arguments[t];
|
|
5084
5084
|
var r = /* @__PURE__ */ Object.create(null);
|
|
@@ -5090,8 +5090,8 @@ function wt() {
|
|
|
5090
5090
|
}), r;
|
|
5091
5091
|
}
|
|
5092
5092
|
function Vt(e, t) {
|
|
5093
|
-
return
|
|
5094
|
-
variables:
|
|
5093
|
+
return _t(e, t, t.variables && {
|
|
5094
|
+
variables: _t(k(k({}, e && e.variables), t.variables))
|
|
5095
5095
|
});
|
|
5096
5096
|
}
|
|
5097
5097
|
function Tn(e) {
|
|
@@ -5161,7 +5161,7 @@ function Se(e) {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
function ve(e, t, r, n) {
|
|
5163
5163
|
n === void 0 && (n = "Please remove this option."), at(t, function() {
|
|
5164
|
-
t in e && globalThis.__DEV__ !== !1 &&
|
|
5164
|
+
t in e && globalThis.__DEV__ !== !1 && R.warn(104, r, t, n);
|
|
5165
5165
|
});
|
|
5166
5166
|
}
|
|
5167
5167
|
function at(e, t) {
|
|
@@ -5202,7 +5202,7 @@ var kr = (
|
|
|
5202
5202
|
}, e.concat = function(t, r) {
|
|
5203
5203
|
var n = tr(t);
|
|
5204
5204
|
if (jr(n))
|
|
5205
|
-
return globalThis.__DEV__ !== !1 &&
|
|
5205
|
+
return globalThis.__DEV__ !== !1 && R.warn(47, n), n;
|
|
5206
5206
|
var i = tr(r), o;
|
|
5207
5207
|
return jr(i) ? o = new e(function(s) {
|
|
5208
5208
|
return n.request(s, function(a) {
|
|
@@ -5221,12 +5221,12 @@ var kr = (
|
|
|
5221
5221
|
throw je(48);
|
|
5222
5222
|
}, e.prototype.onError = function(t, r) {
|
|
5223
5223
|
if (globalThis.__DEV__ !== !1 && at("onError", function() {
|
|
5224
|
-
globalThis.__DEV__ !== !1 &&
|
|
5224
|
+
globalThis.__DEV__ !== !1 && R.warn(49);
|
|
5225
5225
|
}), r && r.error)
|
|
5226
5226
|
return r.error(t), !1;
|
|
5227
5227
|
throw t;
|
|
5228
5228
|
}, e.prototype.setOnError = function(t) {
|
|
5229
|
-
return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 &&
|
|
5229
|
+
return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(50), this.onError = t, this;
|
|
5230
5230
|
}, e;
|
|
5231
5231
|
})()
|
|
5232
5232
|
), ai = kr.execute;
|
|
@@ -5378,18 +5378,18 @@ var Qf = function(e) {
|
|
|
5378
5378
|
), Ao = Object.prototype.hasOwnProperty;
|
|
5379
5379
|
function zf(e, t) {
|
|
5380
5380
|
return it(this, void 0, void 0, function() {
|
|
5381
|
-
var r, n, i, o, s, a, c, u, l, h, f, p, m, y, v, g, b, E, _, x, O, w,
|
|
5382
|
-
return ot(this, function(
|
|
5383
|
-
switch (
|
|
5381
|
+
var r, n, i, o, s, a, c, u, l, h, f, p, m, y, v, g, b, E, _, x, O, w, S, D;
|
|
5382
|
+
return ot(this, function(j) {
|
|
5383
|
+
switch (j.label) {
|
|
5384
5384
|
case 0:
|
|
5385
5385
|
if (TextDecoder === void 0)
|
|
5386
5386
|
throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");
|
|
5387
5387
|
r = new TextDecoder("utf-8"), n = (D = e.headers) === null || D === void 0 ? void 0 : D.get("content-type"), i = "boundary=", o = n != null && n.includes(i) ? n == null ? void 0 : n.substring((n == null ? void 0 : n.indexOf(i)) + i.length).replace(/['"]/g, "").replace(/\;(.*)/gm, "").trim() : "-", s = `\r
|
|
5388
|
-
--`.concat(o), a = "", c = Bf(e), u = !0,
|
|
5388
|
+
--`.concat(o), a = "", c = Bf(e), u = !0, j.label = 1;
|
|
5389
5389
|
case 1:
|
|
5390
5390
|
return u ? [4, c.next()] : [3, 3];
|
|
5391
5391
|
case 2:
|
|
5392
|
-
for (l =
|
|
5392
|
+
for (l = j.sent(), h = l.value, f = l.done, p = typeof h == "string" ? h : r.decode(h), m = a.length - s.length + 1, u = !f, a += p, y = a.indexOf(s, m); y > -1; ) {
|
|
5393
5393
|
if (v = void 0, w = [
|
|
5394
5394
|
a.slice(0, y),
|
|
5395
5395
|
a.slice(y + s.length)
|
|
@@ -5408,7 +5408,7 @@ function zf(e, t) {
|
|
|
5408
5408
|
];
|
|
5409
5409
|
O = k({}, x.payload);
|
|
5410
5410
|
}
|
|
5411
|
-
"errors" in x && (O = k(k({}, O), { extensions: k(k({}, "extensions" in O ? O.extensions : null), (
|
|
5411
|
+
"errors" in x && (O = k(k({}, O), { extensions: k(k({}, "extensions" in O ? O.extensions : null), (S = {}, S[Wi] = x.errors, S)) })), t(O);
|
|
5412
5412
|
} else
|
|
5413
5413
|
t(x);
|
|
5414
5414
|
else if (
|
|
@@ -5522,7 +5522,7 @@ function eh(e, t) {
|
|
|
5522
5522
|
i = k(k(k({}, i), h.options), { headers: k(k({}, i.headers), h.headers) }), h.credentials && (i.credentials = h.credentials), o = k(k({}, o), h.http);
|
|
5523
5523
|
}), i.headers && (i.headers = th(i.headers, o.preserveHeaderCase));
|
|
5524
5524
|
var s = e.operationName, a = e.extensions, c = e.variables, u = e.query, l = { operationName: s, variables: c };
|
|
5525
|
-
return o.includeExtensions && (l.extensions = a), o.includeQuery && (l.query = t(u,
|
|
5525
|
+
return o.includeExtensions && (l.extensions = a), o.includeQuery && (l.query = t(u, bt)), {
|
|
5526
5526
|
options: i,
|
|
5527
5527
|
body: l
|
|
5528
5528
|
};
|
|
@@ -5605,52 +5605,52 @@ var Fo = Ae(function() {
|
|
|
5605
5605
|
headers: _
|
|
5606
5606
|
};
|
|
5607
5607
|
if (yr(["client"], p.query)) {
|
|
5608
|
-
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 &&
|
|
5608
|
+
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(52);
|
|
5609
5609
|
var O = za(p.query);
|
|
5610
5610
|
if (!O)
|
|
5611
5611
|
return Tn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
5612
5612
|
p.query = O;
|
|
5613
5613
|
}
|
|
5614
|
-
var w = eh(p, o, Kf, f, x),
|
|
5614
|
+
var w = eh(p, o, Kf, f, x), S = w.options, D = w.body;
|
|
5615
5615
|
D.variables && !l && (D.variables = Df(D.variables, p.query));
|
|
5616
|
-
var
|
|
5617
|
-
!
|
|
5616
|
+
var j;
|
|
5617
|
+
!S.signal && typeof AbortController < "u" && (j = new AbortController(), S.signal = j.signal);
|
|
5618
5618
|
var C = function(Q) {
|
|
5619
5619
|
return Q.kind === "OperationDefinition" && Q.operation === "mutation";
|
|
5620
|
-
},
|
|
5620
|
+
}, N = function(Q) {
|
|
5621
5621
|
return Q.kind === "OperationDefinition" && Q.operation === "subscription";
|
|
5622
|
-
}, F =
|
|
5623
|
-
if (c && !p.query.definitions.some(C) && (
|
|
5624
|
-
|
|
5625
|
-
var
|
|
5626
|
-
F && W && globalThis.__DEV__ !== !1 &&
|
|
5627
|
-
}
|
|
5628
|
-
if (
|
|
5629
|
-
var
|
|
5630
|
-
if (
|
|
5631
|
-
return Tn(
|
|
5622
|
+
}, F = N(Tr(p.query)), W = yr(["defer"], p.query);
|
|
5623
|
+
if (c && !p.query.definitions.some(C) && (S.method = "GET"), W || F) {
|
|
5624
|
+
S.headers = S.headers || {};
|
|
5625
|
+
var I = "multipart/mixed;";
|
|
5626
|
+
F && W && globalThis.__DEV__ !== !1 && R.warn(53), F ? I += "boundary=graphql;subscriptionSpec=1.0,application/json" : W && (I += "deferSpec=20220824,application/json"), S.headers.accept = I;
|
|
5627
|
+
}
|
|
5628
|
+
if (S.method === "GET") {
|
|
5629
|
+
var V = ih(m, D), U = V.newURI, ae = V.parseError;
|
|
5630
|
+
if (ae)
|
|
5631
|
+
return Tn(ae);
|
|
5632
5632
|
m = U;
|
|
5633
5633
|
} else
|
|
5634
5634
|
try {
|
|
5635
|
-
|
|
5635
|
+
S.body = ci(D, "Payload");
|
|
5636
5636
|
} catch (Q) {
|
|
5637
5637
|
return Tn(Q);
|
|
5638
5638
|
}
|
|
5639
5639
|
return new de(function(Q) {
|
|
5640
|
-
var
|
|
5640
|
+
var T = n || Ae(function() {
|
|
5641
5641
|
return fetch;
|
|
5642
5642
|
}) || Fo, L = Q.next.bind(Q);
|
|
5643
|
-
return
|
|
5644
|
-
var
|
|
5645
|
-
p.setContext({ response:
|
|
5646
|
-
var A = (
|
|
5647
|
-
return A !== null && /^multipart\/mixed/i.test(A) ? zf(
|
|
5643
|
+
return T(m, S).then(function(P) {
|
|
5644
|
+
var B;
|
|
5645
|
+
p.setContext({ response: P });
|
|
5646
|
+
var A = (B = P.headers) === null || B === void 0 ? void 0 : B.get("content-type");
|
|
5647
|
+
return A !== null && /^multipart\/mixed/i.test(A) ? zf(P, L) : Yf(p)(P).then(L);
|
|
5648
5648
|
}).then(function() {
|
|
5649
|
-
|
|
5650
|
-
}).catch(function(
|
|
5651
|
-
|
|
5649
|
+
j = void 0, Q.complete();
|
|
5650
|
+
}).catch(function(P) {
|
|
5651
|
+
j = void 0, Hf(P, Q);
|
|
5652
5652
|
}), function() {
|
|
5653
|
-
|
|
5653
|
+
j && j.abort();
|
|
5654
5654
|
};
|
|
5655
5655
|
});
|
|
5656
5656
|
});
|
|
@@ -5830,9 +5830,9 @@ function Wo(e) {
|
|
|
5830
5830
|
function fh(e) {
|
|
5831
5831
|
return e.name.value === "nonreactive";
|
|
5832
5832
|
}
|
|
5833
|
-
var rc =
|
|
5833
|
+
var rc = Tt ? WeakMap : Map, nc = Li ? WeakSet : Set, Qi = new Xt(), Qo = !1;
|
|
5834
5834
|
function ic() {
|
|
5835
|
-
Qo || (Qo = !0, globalThis.__DEV__ !== !1 &&
|
|
5835
|
+
Qo || (Qo = !0, globalThis.__DEV__ !== !1 && R.warn(64));
|
|
5836
5836
|
}
|
|
5837
5837
|
function oc(e, t, r) {
|
|
5838
5838
|
return Qi.withValue(!0, function() {
|
|
@@ -5878,7 +5878,7 @@ function cr(e, t, r, n, i) {
|
|
|
5878
5878
|
}
|
|
5879
5879
|
if (v.kind === q.INLINE_FRAGMENT && (!v.typeCondition || r.cache.fragmentMatches(v, e.__typename)) && (g = cr(e, v.selectionSet, r, n, i)), v.kind === q.FRAGMENT_SPREAD) {
|
|
5880
5880
|
var _ = v.name.value, x = r.fragmentMap[_] || (r.fragmentMap[_] = r.cache.lookupFragment(_));
|
|
5881
|
-
|
|
5881
|
+
R(x, 59, _);
|
|
5882
5882
|
var O = al(v);
|
|
5883
5883
|
O !== "mask" && (g = cr(e, x.selectionSet, r, O === "migrate", i));
|
|
5884
5884
|
}
|
|
@@ -5888,7 +5888,7 @@ function cr(e, t, r, n, i) {
|
|
|
5888
5888
|
}
|
|
5889
5889
|
function dh(e, t, r, n, i) {
|
|
5890
5890
|
var o = function() {
|
|
5891
|
-
return Qi.getValue() || (globalThis.__DEV__ !== !1 &&
|
|
5891
|
+
return Qi.getValue() || (globalThis.__DEV__ !== !1 && R.warn(60, n ? "".concat(i, " '").concat(n, "'") : "anonymous ".concat(i), "".concat(r, ".").concat(e).replace(/^\./, "")), o = function() {
|
|
5892
5892
|
return t;
|
|
5893
5893
|
}), t;
|
|
5894
5894
|
};
|
|
@@ -5911,11 +5911,11 @@ function sc(e, t, r, n) {
|
|
|
5911
5911
|
var i = t.definitions.filter(function(s) {
|
|
5912
5912
|
return s.kind === q.FRAGMENT_DEFINITION;
|
|
5913
5913
|
});
|
|
5914
|
-
typeof n > "u" && (
|
|
5914
|
+
typeof n > "u" && (R(i.length === 1, 61, i.length), n = i[0].name.value);
|
|
5915
5915
|
var o = i.find(function(s) {
|
|
5916
5916
|
return s.name.value === n;
|
|
5917
5917
|
});
|
|
5918
|
-
return
|
|
5918
|
+
return R(!!o, 62, n), e == null || he(e, {}) ? e : oc(e, o.selectionSet, {
|
|
5919
5919
|
operationType: "fragment",
|
|
5920
5920
|
operationName: o.name.value,
|
|
5921
5921
|
fragmentMap: Ht(Gt(t)),
|
|
@@ -5928,8 +5928,8 @@ function ph(e, t, r) {
|
|
|
5928
5928
|
var n;
|
|
5929
5929
|
if (!r.fragmentMatches)
|
|
5930
5930
|
return globalThis.__DEV__ !== !1 && ic(), e;
|
|
5931
|
-
var i =
|
|
5932
|
-
return
|
|
5931
|
+
var i = wt(t);
|
|
5932
|
+
return R(i, 63), e == null ? e : oc(e, i.selectionSet, {
|
|
5933
5933
|
operationType: i.operation,
|
|
5934
5934
|
operationName: (n = i.name) === null || n === void 0 ? void 0 : n.value,
|
|
5935
5935
|
fragmentMap: Ht(Gt(t)),
|
|
@@ -5974,7 +5974,7 @@ var ac = (
|
|
|
5974
5974
|
var r = this, n = t.fragment, i = t.fragmentName, o = t.from, s = t.optimistic, a = s === void 0 ? !0 : s, c = Fe(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(n, i), l = typeof o > "u" || typeof o == "string" ? o : this.identify(o), h = !!t[Symbol.for("apollo.dataMasking")];
|
|
5975
5975
|
if (globalThis.__DEV__ !== !1) {
|
|
5976
5976
|
var f = i || La(n).name.value;
|
|
5977
|
-
l || globalThis.__DEV__ !== !1 &&
|
|
5977
|
+
l || globalThis.__DEV__ !== !1 && R.warn(1, f);
|
|
5978
5978
|
}
|
|
5979
5979
|
var p = k(k({}, c), { returnPartialData: !0, id: l, query: u, optimistic: a }), m;
|
|
5980
5980
|
return new de(function(y) {
|
|
@@ -6075,7 +6075,7 @@ var lc = {
|
|
|
6075
6075
|
canonizeResults: !1
|
|
6076
6076
|
};
|
|
6077
6077
|
function mh(e) {
|
|
6078
|
-
return
|
|
6078
|
+
return _t(lc, e);
|
|
6079
6079
|
}
|
|
6080
6080
|
function fc(e) {
|
|
6081
6081
|
var t = e.canonizeResults;
|
|
@@ -6165,7 +6165,7 @@ var Qr = /* @__PURE__ */ Object.create(null), kn = function() {
|
|
|
6165
6165
|
fe(t) && (t = t.__ref), fe(r) && (r = r.__ref);
|
|
6166
6166
|
var o = typeof t == "string" ? this.lookup(i = t) : t, s = typeof r == "string" ? this.lookup(i = r) : r;
|
|
6167
6167
|
if (s) {
|
|
6168
|
-
|
|
6168
|
+
R(typeof i == "string", 2);
|
|
6169
6169
|
var a = new ht(bh).merge(o, s);
|
|
6170
6170
|
if (this.data[i] = a, a !== o && (delete this.refs[i], this.group.caching)) {
|
|
6171
6171
|
var c = /* @__PURE__ */ Object.create(null);
|
|
@@ -6211,7 +6211,7 @@ var Qr = /* @__PURE__ */ Object.create(null), kn = function() {
|
|
|
6211
6211
|
else if (p === Qr && (p = void 0), p !== h && (o[u] = p, s = !0, h = p, globalThis.__DEV__ !== !1)) {
|
|
6212
6212
|
var m = function(x) {
|
|
6213
6213
|
if (n.lookup(x.__ref) === void 0)
|
|
6214
|
-
return globalThis.__DEV__ !== !1 &&
|
|
6214
|
+
return globalThis.__DEV__ !== !1 && R.warn(3, x), !0;
|
|
6215
6215
|
};
|
|
6216
6216
|
if (fe(p))
|
|
6217
6217
|
m(p);
|
|
@@ -6226,7 +6226,7 @@ var Qr = /* @__PURE__ */ Object.create(null), kn = function() {
|
|
|
6226
6226
|
_ && (v = E);
|
|
6227
6227
|
}
|
|
6228
6228
|
if (y && v !== void 0) {
|
|
6229
|
-
globalThis.__DEV__ !== !1 &&
|
|
6229
|
+
globalThis.__DEV__ !== !1 && R.warn(4, v);
|
|
6230
6230
|
break;
|
|
6231
6231
|
}
|
|
6232
6232
|
}
|
|
@@ -6314,7 +6314,7 @@ var Qr = /* @__PURE__ */ Object.create(null), kn = function() {
|
|
|
6314
6314
|
r === void 0 && (r = null), this.caching = t, this.parent = r, this.d = null, this.resetCaching();
|
|
6315
6315
|
}
|
|
6316
6316
|
return e.prototype.resetCaching = function() {
|
|
6317
|
-
this.d = this.caching ? $a() : null, this.keyMaker = new Ke(
|
|
6317
|
+
this.d = this.caching ? $a() : null, this.keyMaker = new Ke(Tt);
|
|
6318
6318
|
}, e.prototype.depend = function(t, r) {
|
|
6319
6319
|
if (this.d) {
|
|
6320
6320
|
this.d(On(t, r));
|
|
@@ -6349,7 +6349,7 @@ function Uo(e, t) {
|
|
|
6349
6349
|
Ue(n, r);
|
|
6350
6350
|
function n(i) {
|
|
6351
6351
|
var o = i.policies, s = i.resultCaching, a = s === void 0 ? !0 : s, c = i.seed, u = r.call(this, o, new pc(a)) || this;
|
|
6352
|
-
return u.stump = new yh(u), u.storageTrie = new Ke(
|
|
6352
|
+
return u.stump = new yh(u), u.storageTrie = new Ke(Tt), c && u.replace(c), u;
|
|
6353
6353
|
}
|
|
6354
6354
|
return n.prototype.addLayer = function(i, o) {
|
|
6355
6355
|
return this.stump.addLayer(i, o);
|
|
@@ -6426,7 +6426,7 @@ var Ho = (
|
|
|
6426
6426
|
/** @class */
|
|
6427
6427
|
(function() {
|
|
6428
6428
|
function e() {
|
|
6429
|
-
this.known = new (Li ? WeakSet : Set)(), this.pool = new Ke(
|
|
6429
|
+
this.known = new (Li ? WeakSet : Set)(), this.pool = new Ke(Tt), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
|
|
6430
6430
|
}
|
|
6431
6431
|
return e.prototype.isKnown = function(t) {
|
|
6432
6432
|
return ge(t) && this.known.has(t);
|
|
@@ -6498,7 +6498,7 @@ var Eh = (
|
|
|
6498
6498
|
(function() {
|
|
6499
6499
|
function e(t) {
|
|
6500
6500
|
var r = this;
|
|
6501
|
-
this.knownResults = new (
|
|
6501
|
+
this.knownResults = new (Tt ? WeakMap : Map)(), this.config = _t(t, {
|
|
6502
6502
|
addTypename: t.addTypename !== !1,
|
|
6503
6503
|
canonizeResults: fc(t)
|
|
6504
6504
|
}), this.canon = t.canon || new Ho(), this.executeSelectionSet = xr(function(n) {
|
|
@@ -6601,10 +6601,10 @@ var Eh = (
|
|
|
6601
6601
|
context: s
|
|
6602
6602
|
}), w)) : s.canonizeResults && (O = r.canon.pass(O)), O !== void 0 && h.push((x = {}, x[w] = O, x));
|
|
6603
6603
|
} else {
|
|
6604
|
-
var
|
|
6605
|
-
if (!
|
|
6604
|
+
var S = cn(E, s.lookupFragment);
|
|
6605
|
+
if (!S && E.kind === q.FRAGMENT_SPREAD)
|
|
6606
6606
|
throw je(10, E.name.value);
|
|
6607
|
-
|
|
6607
|
+
S && c.fragmentMatches(S, l) && S.selectionSet.selections.forEach(y.add, y);
|
|
6608
6608
|
}
|
|
6609
6609
|
});
|
|
6610
6610
|
var v = hn(h), g = { result: v, missing: f }, b = s.canonizeResults ? this.canon.admit(g) : zt(g);
|
|
@@ -6649,7 +6649,7 @@ function _h(e, t, r) {
|
|
|
6649
6649
|
if (!t.selectionSet) {
|
|
6650
6650
|
var n = /* @__PURE__ */ new Set([r]);
|
|
6651
6651
|
n.forEach(function(i) {
|
|
6652
|
-
ge(i) && (
|
|
6652
|
+
ge(i) && (R(
|
|
6653
6653
|
!fe(i),
|
|
6654
6654
|
11,
|
|
6655
6655
|
vh(e, i),
|
|
@@ -6728,7 +6728,7 @@ function Ko(e) {
|
|
|
6728
6728
|
// custom read functions.
|
|
6729
6729
|
i
|
|
6730
6730
|
);
|
|
6731
|
-
return a === void 0 && r !== n.storeObject && we.call(r, s[0]) && (a = $t(r, s, vc)),
|
|
6731
|
+
return a === void 0 && r !== n.storeObject && we.call(r, s[0]) && (a = $t(r, s, vc)), R(a !== void 0, 5, s.join("."), r), a;
|
|
6732
6732
|
});
|
|
6733
6733
|
return "".concat(n.typename, ":").concat(JSON.stringify(o));
|
|
6734
6734
|
});
|
|
@@ -6874,7 +6874,7 @@ var Oh = function() {
|
|
|
6874
6874
|
}, e.prototype.setRootTypename = function(t, r) {
|
|
6875
6875
|
r === void 0 && (r = t);
|
|
6876
6876
|
var n = "ROOT_" + t.toUpperCase(), i = this.rootTypenamesById[n];
|
|
6877
|
-
r !== i && (
|
|
6877
|
+
r !== i && (R(!i || i === t, 6, t), i && delete this.rootIdsByTypename[i], this.rootIdsByTypename[r] = n, this.rootTypenamesById[n] = r);
|
|
6878
6878
|
}, e.prototype.addPossibleTypes = function(t) {
|
|
6879
6879
|
var r = this;
|
|
6880
6880
|
this.usingPossibleTypes = !0, Object.keys(t).forEach(function(n) {
|
|
@@ -6928,7 +6928,7 @@ var Oh = function() {
|
|
|
6928
6928
|
}, l = !!(n && this.fuzzySubtypes.size), h = !1, f = 0; f < c.length; ++f) {
|
|
6929
6929
|
var p = c[f];
|
|
6930
6930
|
if (p.has(s))
|
|
6931
|
-
return a.has(s) || (h && globalThis.__DEV__ !== !1 &&
|
|
6931
|
+
return a.has(s) || (h && globalThis.__DEV__ !== !1 && R.warn(7, r, s), a.add(s)), !0;
|
|
6932
6932
|
p.forEach(u), l && // Start checking fuzzy subtypes only after exhausting all
|
|
6933
6933
|
// non-fuzzy subtypes (after the final iteration of the loop).
|
|
6934
6934
|
f === c.length - 1 && // We could wait to compare fragment.selectionSet to result
|
|
@@ -7043,7 +7043,7 @@ function Yi(e, t, r) {
|
|
|
7043
7043
|
// passed for the from parameter, not when undefined is explicitly
|
|
7044
7044
|
// passed as the second argument.
|
|
7045
7045
|
from: o > 1 ? i : t
|
|
7046
|
-
} : (s = k({}, n), we.call(s, "from") || (s.from = t)), globalThis.__DEV__ !== !1 && s.from === void 0 && globalThis.__DEV__ !== !1 &&
|
|
7046
|
+
} : (s = k({}, n), we.call(s, "from") || (s.from = t)), globalThis.__DEV__ !== !1 && s.from === void 0 && globalThis.__DEV__ !== !1 && R.warn(8, la(Array.from(e))), s.variables === void 0 && (s.variables = r), s;
|
|
7047
7047
|
}
|
|
7048
7048
|
function yc(e) {
|
|
7049
7049
|
return function(r, n) {
|
|
@@ -7074,7 +7074,7 @@ var Dh = (
|
|
|
7074
7074
|
this.cache = t, this.reader = r, this.fragments = n;
|
|
7075
7075
|
}
|
|
7076
7076
|
return e.prototype.writeToStore = function(t, r) {
|
|
7077
|
-
var n = this, i = r.query, o = r.result, s = r.dataId, a = r.variables, c = r.overwrite, u =
|
|
7077
|
+
var n = this, i = r.query, o = r.result, s = r.dataId, a = r.variables, c = r.overwrite, u = wt(i), l = gh();
|
|
7078
7078
|
a = k(k({}, Ii(u)), a);
|
|
7079
7079
|
var h = k(k({ store: t, written: /* @__PURE__ */ Object.create(null), merge: function(p, m) {
|
|
7080
7080
|
return l.merge(p, m);
|
|
@@ -7103,8 +7103,8 @@ var Dh = (
|
|
|
7103
7103
|
var x = function(w) {
|
|
7104
7104
|
return _[dt(w)] === !0;
|
|
7105
7105
|
}, O = function(w) {
|
|
7106
|
-
var
|
|
7107
|
-
return !!(
|
|
7106
|
+
var S = v && v.map.get(w);
|
|
7107
|
+
return !!(S && S.info && S.info.merge);
|
|
7108
7108
|
};
|
|
7109
7109
|
Object.keys(y).forEach(function(w) {
|
|
7110
7110
|
x(w) && !O(w) && Lh(b, y, w, h.store);
|
|
@@ -7138,12 +7138,12 @@ var Dh = (
|
|
|
7138
7138
|
).forEach(function(E, _) {
|
|
7139
7139
|
var x, O = Xe(_), w = i[O];
|
|
7140
7140
|
if (f.add(_), w !== void 0) {
|
|
7141
|
-
var
|
|
7141
|
+
var S = c.getStoreFieldName({
|
|
7142
7142
|
typename: l,
|
|
7143
7143
|
fieldName: _.name.value,
|
|
7144
7144
|
field: _,
|
|
7145
7145
|
variables: E.variables
|
|
7146
|
-
}), D = is(a,
|
|
7146
|
+
}), D = is(a, S), j = r.processFieldValue(
|
|
7147
7147
|
w,
|
|
7148
7148
|
_,
|
|
7149
7149
|
// Reset context.clientOnly and context.deferred to their default
|
|
@@ -7151,18 +7151,18 @@ var Dh = (
|
|
|
7151
7151
|
_.selectionSet ? Cn(E, !1, !1) : E,
|
|
7152
7152
|
D
|
|
7153
7153
|
), C = void 0;
|
|
7154
|
-
_.selectionSet && (fe(
|
|
7155
|
-
var
|
|
7156
|
-
|
|
7154
|
+
_.selectionSet && (fe(j) || It(j)) && (C = h("__typename", j));
|
|
7155
|
+
var N = c.getMergeFunction(l, _.name.value, C);
|
|
7156
|
+
N ? D.info = {
|
|
7157
7157
|
// TODO Check compatibility against any existing childTree.field?
|
|
7158
7158
|
field: _,
|
|
7159
7159
|
typename: l,
|
|
7160
|
-
merge:
|
|
7161
|
-
} : os(a,
|
|
7160
|
+
merge: N
|
|
7161
|
+
} : os(a, S), u = E.merge(u, (x = {}, x[S] = j, x));
|
|
7162
7162
|
} else globalThis.__DEV__ !== !1 && !E.clientOnly && !E.deferred && !Fi.added(_) && // If the field has a read function, it may be a synthetic field or
|
|
7163
7163
|
// provide a default value, so its absence from the written data should
|
|
7164
7164
|
// not be cause for alarm.
|
|
7165
|
-
!c.getReadFunction(l, _.name.value) && globalThis.__DEV__ !== !1 &&
|
|
7165
|
+
!c.getReadFunction(l, _.name.value) && globalThis.__DEV__ !== !1 && R.error(13, Xe(_), i);
|
|
7166
7166
|
});
|
|
7167
7167
|
try {
|
|
7168
7168
|
var p = c.identify(i, {
|
|
@@ -7265,7 +7265,7 @@ var Dh = (
|
|
|
7265
7265
|
if (y !== void 0) {
|
|
7266
7266
|
o && o.push(p);
|
|
7267
7267
|
var v = a.applyMerges(f, m, y, i, o);
|
|
7268
|
-
v !== y && (l = l || /* @__PURE__ */ new Map(), l.set(p, v)), o &&
|
|
7268
|
+
v !== y && (l = l || /* @__PURE__ */ new Map(), l.set(p, v)), o && R(o.pop() === p);
|
|
7269
7269
|
}
|
|
7270
7270
|
}), l && (n = ye(u) ? u.slice(0) : k({}, u), l.forEach(function(f, p) {
|
|
7271
7271
|
n[p] = f;
|
|
@@ -7320,7 +7320,7 @@ function Lh(e, t, r, n) {
|
|
|
7320
7320
|
!ye(o) && !ye(s) && [o, s].forEach(function(h) {
|
|
7321
7321
|
var f = n.getFieldValue(h, "__typename");
|
|
7322
7322
|
typeof f == "string" && !l.includes(f) && l.push(f);
|
|
7323
|
-
}), globalThis.__DEV__ !== !1 &&
|
|
7323
|
+
}), globalThis.__DEV__ !== !1 && R.warn(15, c, a, l.length ? "either ensure all objects of type " + l.join(" and ") + " have an ID or a custom merge function, or " : "", u, k({}, o), k({}, s));
|
|
7324
7324
|
}
|
|
7325
7325
|
}
|
|
7326
7326
|
}
|
|
@@ -7415,7 +7415,7 @@ var xc = (
|
|
|
7415
7415
|
n.watches.delete(r) && !n.watches.size && Xo(n), n.maybeBroadcastWatch.forget(r);
|
|
7416
7416
|
};
|
|
7417
7417
|
}, t.prototype.gc = function(r) {
|
|
7418
|
-
globalThis.__DEV__ !== !1 && ve(r || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), ut.reset(),
|
|
7418
|
+
globalThis.__DEV__ !== !1 && ve(r || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), ut.reset(), bt.reset();
|
|
7419
7419
|
var n = this.optimisticData.gc();
|
|
7420
7420
|
return r && !this.txCount && (r.resetResultCache ? this.resetResultCache(r.resetResultIdentities) : r.resetResultIdentities && this.storeReader.resetCanon()), n;
|
|
7421
7421
|
}, t.prototype.retain = function(r, n) {
|
|
@@ -7428,7 +7428,7 @@ var xc = (
|
|
|
7428
7428
|
try {
|
|
7429
7429
|
return this.policies.identify(r)[0];
|
|
7430
7430
|
} catch (n) {
|
|
7431
|
-
globalThis.__DEV__ !== !1 &&
|
|
7431
|
+
globalThis.__DEV__ !== !1 && R.warn(n);
|
|
7432
7432
|
}
|
|
7433
7433
|
}, t.prototype.evict = function(r) {
|
|
7434
7434
|
if (!r.id) {
|
|
@@ -7538,7 +7538,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7538
7538
|
// case options.fetchPolicy was not provided.
|
|
7539
7539
|
fetchPolicy: p
|
|
7540
7540
|
}), s.queryId = i.queryId || n.generateQueryId();
|
|
7541
|
-
var v =
|
|
7541
|
+
var v = wt(s.query);
|
|
7542
7542
|
return s.queryName = v && v.name && v.name.value, s;
|
|
7543
7543
|
}
|
|
7544
7544
|
return Object.defineProperty(t.prototype, "query", {
|
|
@@ -7565,7 +7565,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7565
7565
|
}), t.prototype.result = function() {
|
|
7566
7566
|
var r = this;
|
|
7567
7567
|
return globalThis.__DEV__ !== !1 && at("observableQuery.result", function() {
|
|
7568
|
-
globalThis.__DEV__ !== !1 &&
|
|
7568
|
+
globalThis.__DEV__ !== !1 && R.warn(23);
|
|
7569
7569
|
}), new Promise(function(n, i) {
|
|
7570
7570
|
var o = {
|
|
7571
7571
|
next: function(a) {
|
|
@@ -7612,18 +7612,18 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7612
7612
|
return i[r];
|
|
7613
7613
|
}, t.prototype.getLastResult = function(r) {
|
|
7614
7614
|
return globalThis.__DEV__ !== !1 && at("getLastResult", function() {
|
|
7615
|
-
globalThis.__DEV__ !== !1 &&
|
|
7615
|
+
globalThis.__DEV__ !== !1 && R.warn(24);
|
|
7616
7616
|
}), this.getLast("result", r);
|
|
7617
7617
|
}, t.prototype.getLastError = function(r) {
|
|
7618
7618
|
return globalThis.__DEV__ !== !1 && at("getLastError", function() {
|
|
7619
|
-
globalThis.__DEV__ !== !1 &&
|
|
7619
|
+
globalThis.__DEV__ !== !1 && R.warn(25);
|
|
7620
7620
|
}), this.getLast("error", r);
|
|
7621
7621
|
}, t.prototype.resetLastResults = function() {
|
|
7622
7622
|
globalThis.__DEV__ !== !1 && at("resetLastResults", function() {
|
|
7623
|
-
globalThis.__DEV__ !== !1 &&
|
|
7623
|
+
globalThis.__DEV__ !== !1 && R.warn(26);
|
|
7624
7624
|
}), delete this.last, this.isTornDown = !1;
|
|
7625
7625
|
}, t.prototype.resetQueryStoreErrors = function() {
|
|
7626
|
-
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 &&
|
|
7626
|
+
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(27), this.queryManager.resetErrors(this.queryId);
|
|
7627
7627
|
}, t.prototype.refetch = function(r) {
|
|
7628
7628
|
var n, i = {
|
|
7629
7629
|
// Always disable polling for refetches.
|
|
@@ -7633,7 +7633,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7633
7633
|
var s = Da(this.query), a = s.variableDefinitions;
|
|
7634
7634
|
(!a || !a.some(function(c) {
|
|
7635
7635
|
return c.variable.name.value === "variables";
|
|
7636
|
-
})) && globalThis.__DEV__ !== !1 &&
|
|
7636
|
+
})) && globalThis.__DEV__ !== !1 && R.warn(
|
|
7637
7637
|
28,
|
|
7638
7638
|
r,
|
|
7639
7639
|
((n = s.name) === null || n === void 0 ? void 0 : n.value) || s
|
|
@@ -7655,7 +7655,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7655
7655
|
var s = this.queryInfo, a = s.networkStatus;
|
|
7656
7656
|
s.networkStatus = se.fetchMore, i.notifyOnNetworkStatusChange && this.observe();
|
|
7657
7657
|
var c = /* @__PURE__ */ new Set(), u = r == null ? void 0 : r.updateQuery, l = this.options.fetchPolicy !== "no-cache";
|
|
7658
|
-
return l ||
|
|
7658
|
+
return l || R(u, 29), this.queryManager.fetchQuery(o, i, se.fetchMore).then(function(h) {
|
|
7659
7659
|
if (n.queryManager.removeQuery(o), s.networkStatus === se.fetchMore && (s.networkStatus = a), l)
|
|
7660
7660
|
n.queryManager.cache.batch({
|
|
7661
7661
|
update: function(m) {
|
|
@@ -7708,7 +7708,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7708
7708
|
r.onError(o);
|
|
7709
7709
|
return;
|
|
7710
7710
|
}
|
|
7711
|
-
globalThis.__DEV__ !== !1 &&
|
|
7711
|
+
globalThis.__DEV__ !== !1 && R.error(30, o);
|
|
7712
7712
|
}
|
|
7713
7713
|
});
|
|
7714
7714
|
return this.subscriptions.add(i), function() {
|
|
@@ -7716,10 +7716,10 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7716
7716
|
};
|
|
7717
7717
|
}, t.prototype.setOptions = function(r) {
|
|
7718
7718
|
return globalThis.__DEV__ !== !1 && (ve(r, "canonizeResults", "setOptions"), at("setOptions", function() {
|
|
7719
|
-
globalThis.__DEV__ !== !1 &&
|
|
7719
|
+
globalThis.__DEV__ !== !1 && R.warn(31);
|
|
7720
7720
|
})), this.reobserve(r);
|
|
7721
7721
|
}, t.prototype.silentSetOptions = function(r) {
|
|
7722
|
-
var n =
|
|
7722
|
+
var n = _t(this.options, r || {});
|
|
7723
7723
|
as(this.options, n);
|
|
7724
7724
|
}, t.prototype.setVariables = function(r) {
|
|
7725
7725
|
var n = this;
|
|
@@ -7773,7 +7773,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7773
7773
|
return;
|
|
7774
7774
|
}
|
|
7775
7775
|
if (!(i && i.interval === o)) {
|
|
7776
|
-
|
|
7776
|
+
R(o, 32);
|
|
7777
7777
|
var s = i || (this.pollingInfo = {});
|
|
7778
7778
|
s.interval = o;
|
|
7779
7779
|
var a = function() {
|
|
@@ -7811,7 +7811,7 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7811
7811
|
n === se.fetchMore || // Polling uses a disposable Concast so the polling options (which force
|
|
7812
7812
|
// fetchPolicy to be "network-only" or "no-cache") won't override the original options.
|
|
7813
7813
|
n === se.poll
|
|
7814
|
-
), s = this.options.variables, a = this.options.fetchPolicy, c =
|
|
7814
|
+
), s = this.options.variables, a = this.options.fetchPolicy, c = _t(this.options, r || {}), u = o ? (
|
|
7815
7815
|
// Disposable Concast fetches receive a shallow copy of this.options
|
|
7816
7816
|
// (merged with newOptions), leaving this.options unmodified.
|
|
7817
7817
|
c
|
|
@@ -7908,15 +7908,15 @@ var as = Object.assign, Mh = Object.hasOwnProperty, mr = (
|
|
|
7908
7908
|
);
|
|
7909
7909
|
Xa(mr);
|
|
7910
7910
|
function jh(e) {
|
|
7911
|
-
globalThis.__DEV__ !== !1 &&
|
|
7911
|
+
globalThis.__DEV__ !== !1 && R.error(33, e.message, e.stack);
|
|
7912
7912
|
}
|
|
7913
7913
|
function Ec(e) {
|
|
7914
|
-
globalThis.__DEV__ !== !1 && e && globalThis.__DEV__ !== !1 &&
|
|
7914
|
+
globalThis.__DEV__ !== !1 && e && globalThis.__DEV__ !== !1 && R.debug(34, e);
|
|
7915
7915
|
}
|
|
7916
7916
|
function Dn(e) {
|
|
7917
7917
|
return e === "network-only" || e === "no-cache" || e === "standby";
|
|
7918
7918
|
}
|
|
7919
|
-
var Pt = new (
|
|
7919
|
+
var Pt = new (Tt ? WeakMap : Map)();
|
|
7920
7920
|
function Ln(e, t) {
|
|
7921
7921
|
var r = e[t];
|
|
7922
7922
|
typeof r == "function" && (e[t] = function() {
|
|
@@ -8085,13 +8085,13 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8085
8085
|
}), this.fetchCancelFns.clear();
|
|
8086
8086
|
}, e.prototype.mutate = function(t) {
|
|
8087
8087
|
return it(this, arguments, void 0, function(r) {
|
|
8088
|
-
var n, i, o, s, a, c, u, l = r.mutation, h = r.variables, f = r.optimisticResponse, p = r.updateQueries, m = r.refetchQueries, y = m === void 0 ? [] : m, v = r.awaitRefetchQueries, g = v === void 0 ? !1 : v, b = r.update, E = r.onQueryUpdated, _ = r.fetchPolicy, x = _ === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.fetchPolicy) || "network-only" : _, O = r.errorPolicy, w = O === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.errorPolicy) || "none" : O,
|
|
8089
|
-
return ot(this, function(
|
|
8090
|
-
switch (
|
|
8088
|
+
var n, i, o, s, a, c, u, l = r.mutation, h = r.variables, f = r.optimisticResponse, p = r.updateQueries, m = r.refetchQueries, y = m === void 0 ? [] : m, v = r.awaitRefetchQueries, g = v === void 0 ? !1 : v, b = r.update, E = r.onQueryUpdated, _ = r.fetchPolicy, x = _ === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.fetchPolicy) || "network-only" : _, O = r.errorPolicy, w = O === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.errorPolicy) || "none" : O, S = r.keepRootFields, D = r.context;
|
|
8089
|
+
return ot(this, function(j) {
|
|
8090
|
+
switch (j.label) {
|
|
8091
8091
|
case 0:
|
|
8092
|
-
return
|
|
8092
|
+
return R(l, 36), R(x === "network-only" || x === "no-cache", 37), n = this.generateMutationId(), l = this.cache.transformForLink(this.transform(l)), i = this.getDocumentInfo(l).hasClientExports, h = this.getVariables(l, h), i ? [4, this.localState.addExportedVariables(l, h, D)] : [3, 2];
|
|
8093
8093
|
case 1:
|
|
8094
|
-
h =
|
|
8094
|
+
h = j.sent(), j.label = 2;
|
|
8095
8095
|
case 2:
|
|
8096
8096
|
return o = this.mutationStore && (this.mutationStore[n] = {
|
|
8097
8097
|
mutation: l,
|
|
@@ -8107,8 +8107,8 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8107
8107
|
context: D,
|
|
8108
8108
|
updateQueries: p,
|
|
8109
8109
|
update: b,
|
|
8110
|
-
keepRootFields:
|
|
8111
|
-
}), this.broadcastQueries(), a = this, [2, new Promise(function(C,
|
|
8110
|
+
keepRootFields: S
|
|
8111
|
+
}), this.broadcastQueries(), a = this, [2, new Promise(function(C, N) {
|
|
8112
8112
|
return Sn(a.getObservableFromLink(l, k(k({}, D), { optimisticResponse: s ? f : void 0 }), h, {}, !1), function(F) {
|
|
8113
8113
|
if (Br(F) && w === "none")
|
|
8114
8114
|
throw new Ye({
|
|
@@ -8130,7 +8130,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8130
8130
|
refetchQueries: y,
|
|
8131
8131
|
removeOptimistic: s ? n : void 0,
|
|
8132
8132
|
onQueryUpdated: E,
|
|
8133
|
-
keepRootFields:
|
|
8133
|
+
keepRootFields: S
|
|
8134
8134
|
});
|
|
8135
8135
|
}).subscribe({
|
|
8136
8136
|
next: function(F) {
|
|
@@ -8142,7 +8142,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8142
8142
|
}) }));
|
|
8143
8143
|
},
|
|
8144
8144
|
error: function(F) {
|
|
8145
|
-
o && (o.loading = !1, o.error = F), s && a.cache.removeOptimistic(n), a.broadcastQueries(),
|
|
8145
|
+
o && (o.loading = !1, o.error = F), s && a.cache.removeOptimistic(n), a.broadcastQueries(), N(F instanceof Ye ? F : new Ye({
|
|
8146
8146
|
networkError: F
|
|
8147
8147
|
}));
|
|
8148
8148
|
}
|
|
@@ -8265,7 +8265,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8265
8265
|
try {
|
|
8266
8266
|
n.markMutationResult(k(k({}, r), { result: { data: i } }), o);
|
|
8267
8267
|
} catch (s) {
|
|
8268
|
-
globalThis.__DEV__ !== !1 &&
|
|
8268
|
+
globalThis.__DEV__ !== !1 && R.error(s);
|
|
8269
8269
|
}
|
|
8270
8270
|
}, r.mutationId), !0);
|
|
8271
8271
|
}, e.prototype.fetchQuery = function(t, r, n) {
|
|
@@ -8305,7 +8305,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8305
8305
|
{ name: "nonreactive" },
|
|
8306
8306
|
{ name: "unmask" }
|
|
8307
8307
|
], t),
|
|
8308
|
-
defaultVars: Ii(
|
|
8308
|
+
defaultVars: Ii(wt(t)),
|
|
8309
8309
|
// Transform any mutation or subscription operations to query operations
|
|
8310
8310
|
// so we can read/write them from/to the cache.
|
|
8311
8311
|
asQuery: k(k({}, t), { definitions: t.definitions.map(function(i) {
|
|
@@ -8332,7 +8332,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8332
8332
|
}), i;
|
|
8333
8333
|
}, e.prototype.query = function(t, r) {
|
|
8334
8334
|
var n = this;
|
|
8335
|
-
r === void 0 && (r = this.generateQueryId()),
|
|
8335
|
+
r === void 0 && (r = this.generateQueryId()), R(t.query, 38), R(t.query.kind === "Document", 39), R(!t.returnPartialData, 40), R(!t.pollInterval, 41);
|
|
8336
8336
|
var i = this.transform(t.query);
|
|
8337
8337
|
return this.fetchQuery(r, k(k({}, t), { query: i })).then(function(o) {
|
|
8338
8338
|
return o && k(k({}, o), { data: n.maskOperation({
|
|
@@ -8369,7 +8369,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8369
8369
|
if (typeof a == "string")
|
|
8370
8370
|
i.set(a, a), o.set(a, !1);
|
|
8371
8371
|
else if (Rl(a)) {
|
|
8372
|
-
var c =
|
|
8372
|
+
var c = bt(r.transform(a));
|
|
8373
8373
|
i.set(c, ar(a)), o.set(c, !1);
|
|
8374
8374
|
} else ge(a) && a.query && s.add(a);
|
|
8375
8375
|
}), this.queries.forEach(function(a, c) {
|
|
@@ -8382,7 +8382,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8382
8382
|
var h = u.queryName, f = u.options.fetchPolicy;
|
|
8383
8383
|
if (f === "standby" || t === "active" && !u.hasObservers())
|
|
8384
8384
|
return;
|
|
8385
|
-
(t === "active" || h && o.has(h) || l && o.has(
|
|
8385
|
+
(t === "active" || h && o.has(h) || l && o.has(bt(l))) && (n.set(c, u), h && o.set(h, !0), l && o.set(bt(l), !0));
|
|
8386
8386
|
}
|
|
8387
8387
|
}), s.size && s.forEach(function(a) {
|
|
8388
8388
|
var c = Hn("legacyOneTimeQuery"), u = r.getOrCreateQuery(c).init({
|
|
@@ -8393,11 +8393,11 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8393
8393
|
queryInfo: u,
|
|
8394
8394
|
options: k(k({}, a), { fetchPolicy: "network-only" })
|
|
8395
8395
|
});
|
|
8396
|
-
|
|
8396
|
+
R(l.queryId === c), u.setObservableQuery(l), n.set(c, l);
|
|
8397
8397
|
}), globalThis.__DEV__ !== !1 && o.size && o.forEach(function(a, c) {
|
|
8398
8398
|
if (!a) {
|
|
8399
8399
|
var u = i.get(c);
|
|
8400
|
-
u ? globalThis.__DEV__ !== !1 &&
|
|
8400
|
+
u ? globalThis.__DEV__ !== !1 && R.warn(43, u) : globalThis.__DEV__ !== !1 && R.warn(44);
|
|
8401
8401
|
}
|
|
8402
8402
|
}), n;
|
|
8403
8403
|
}, e.prototype.reFetchObservableQueries = function(t) {
|
|
@@ -8469,7 +8469,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8469
8469
|
extensions: i
|
|
8470
8470
|
};
|
|
8471
8471
|
if (r = y.context, o) {
|
|
8472
|
-
var v =
|
|
8472
|
+
var v = bt(l), g = ut(n), b = p.lookup(v, g);
|
|
8473
8473
|
if (c = b.observable, !c) {
|
|
8474
8474
|
var E = new Lt([
|
|
8475
8475
|
ai(m, y)
|
|
@@ -8524,8 +8524,8 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8524
8524
|
returnPartialData: p,
|
|
8525
8525
|
notifyOnNetworkStatusChange: y,
|
|
8526
8526
|
context: g
|
|
8527
|
-
}), E = function(
|
|
8528
|
-
b.variables =
|
|
8527
|
+
}), E = function(S) {
|
|
8528
|
+
b.variables = S;
|
|
8529
8529
|
var D = o.fetchQueryByPolicy(t, b, n);
|
|
8530
8530
|
return (
|
|
8531
8531
|
// If we're in standby, postpone advancing options.fetchPolicy using
|
|
@@ -8537,15 +8537,15 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8537
8537
|
}, _ = function() {
|
|
8538
8538
|
return o.fetchCancelFns.delete(t.queryId);
|
|
8539
8539
|
};
|
|
8540
|
-
this.fetchCancelFns.set(t.queryId, function(
|
|
8540
|
+
this.fetchCancelFns.set(t.queryId, function(S) {
|
|
8541
8541
|
_(), setTimeout(function() {
|
|
8542
|
-
return x.cancel(
|
|
8542
|
+
return x.cancel(S);
|
|
8543
8543
|
});
|
|
8544
8544
|
});
|
|
8545
8545
|
var x, O;
|
|
8546
8546
|
if (this.getDocumentInfo(b.query).hasClientExports)
|
|
8547
|
-
x = new Lt(this.localState.addExportedVariables(b.query, b.variables, b.context).then(E).then(function(
|
|
8548
|
-
return
|
|
8547
|
+
x = new Lt(this.localState.addExportedVariables(b.query, b.variables, b.context).then(E).then(function(S) {
|
|
8548
|
+
return S.sources;
|
|
8549
8549
|
})), O = !0;
|
|
8550
8550
|
else {
|
|
8551
8551
|
var w = E(b.variables);
|
|
@@ -8624,8 +8624,8 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8624
8624
|
}, e.prototype.maskOperation = function(t) {
|
|
8625
8625
|
var r, n, i, o = t.document, s = t.data;
|
|
8626
8626
|
if (globalThis.__DEV__ !== !1) {
|
|
8627
|
-
var a = t.fetchPolicy, c = t.id, u = (r =
|
|
8628
|
-
this.dataMasking && a === "no-cache" && !ml(o) && !this.noCacheWarningsByQueryId.has(l) && (this.noCacheWarningsByQueryId.add(l), globalThis.__DEV__ !== !1 &&
|
|
8627
|
+
var a = t.fetchPolicy, c = t.id, u = (r = wt(o)) === null || r === void 0 ? void 0 : r.operation, l = ((n = u == null ? void 0 : u[0]) !== null && n !== void 0 ? n : "o") + c;
|
|
8628
|
+
this.dataMasking && a === "no-cache" && !ml(o) && !this.noCacheWarningsByQueryId.has(l) && (this.noCacheWarningsByQueryId.add(l), globalThis.__DEV__ !== !1 && R.warn(
|
|
8629
8629
|
45,
|
|
8630
8630
|
(i = ar(o)) !== null && i !== void 0 ? i : "Unnamed ".concat(u ?? "operation")
|
|
8631
8631
|
));
|
|
@@ -8647,8 +8647,8 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8647
8647
|
x === void 0 && (x = t.networkStatus || se.loading);
|
|
8648
8648
|
var O = _.result;
|
|
8649
8649
|
globalThis.__DEV__ !== !1 && !l && !he(O, {}) && Ec(_.missing);
|
|
8650
|
-
var w = function(
|
|
8651
|
-
return de.of(k({ data:
|
|
8650
|
+
var w = function(S) {
|
|
8651
|
+
return de.of(k({ data: S, loading: Nt(x), networkStatus: x }, _.complete ? null : { partial: !0 }));
|
|
8652
8652
|
};
|
|
8653
8653
|
return O && i.getDocumentInfo(o).hasForcedResolvers ? i.localState.runResolvers({
|
|
8654
8654
|
document: o,
|
|
@@ -8656,8 +8656,8 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8656
8656
|
context: h,
|
|
8657
8657
|
variables: s,
|
|
8658
8658
|
onlyRunForcedResolvers: !0
|
|
8659
|
-
}).then(function(
|
|
8660
|
-
return w(
|
|
8659
|
+
}).then(function(S) {
|
|
8660
|
+
return w(S.data || void 0);
|
|
8661
8661
|
}) : u === "none" && x === se.refetch && Array.isArray(_.missing) ? w(void 0) : w(O);
|
|
8662
8662
|
}, v = a === "no-cache" ? 0 : n === se.refetch && c !== "merge" ? 1 : 2, g = function() {
|
|
8663
8663
|
return i.getResultsFromLink(t, v, {
|
|
@@ -8822,7 +8822,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8822
8822
|
] : Sr(f, a) ? lt(f) ? [2, this.resolveField(f, r, n, i).then(function(v) {
|
|
8823
8823
|
var g;
|
|
8824
8824
|
typeof v < "u" && c.push((g = {}, g[Xe(f)] = v, g));
|
|
8825
|
-
})] : (zl(f) ? p = f : (p = o[f.name.value],
|
|
8825
|
+
})] : (zl(f) ? p = f : (p = o[f.name.value], R(p, 21, f.name.value)), p && p.typeCondition && (m = p.typeCondition.name.value, i.fragmentMatcher(n, m, s)) ? [2, this.resolveSelectionSet(p.selectionSet, r, n, i).then(function(v) {
|
|
8826
8826
|
c.push(v);
|
|
8827
8827
|
})] : [
|
|
8828
8828
|
2
|
|
@@ -8894,7 +8894,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8894
8894
|
},
|
|
8895
8895
|
FragmentSpread: function(c, u, l, h, f) {
|
|
8896
8896
|
var p = r[c.name.value];
|
|
8897
|
-
|
|
8897
|
+
R(p, 22, c.name.value);
|
|
8898
8898
|
var m = o(p);
|
|
8899
8899
|
m.size > 0 && (f.forEach(function(y) {
|
|
8900
8900
|
n(y) && xo(y) && a.add(y);
|
|
@@ -8916,16 +8916,16 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8916
8916
|
var r = this, n, i, o;
|
|
8917
8917
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !t.cache)
|
|
8918
8918
|
throw je(16);
|
|
8919
|
-
var s = t.uri, a = t.credentials, c = t.headers, u = t.cache, l = t.documentTransform, h = t.ssrMode, f = h === void 0 ? !1 : h, p = t.ssrForceFetchDelay, m = p === void 0 ? 0 : p, y = t.connectToDevTools, v = t.queryDeduplication, g = v === void 0 ? !0 : v, b = t.defaultOptions, E = t.defaultContext, _ = t.assumeImmutableResults, x = _ === void 0 ? u.assumeImmutableResults : _, O = t.resolvers, w = t.typeDefs,
|
|
8920
|
-
globalThis.__DEV__ !== !1 && (ve(t, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), ve(t, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), ve(t, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), ve(t, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), ve(t, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), ve(t, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), ve(t, "typeDefs", "ApolloClient"), t.link || globalThis.__DEV__ !== !1 &&
|
|
8919
|
+
var s = t.uri, a = t.credentials, c = t.headers, u = t.cache, l = t.documentTransform, h = t.ssrMode, f = h === void 0 ? !1 : h, p = t.ssrForceFetchDelay, m = p === void 0 ? 0 : p, y = t.connectToDevTools, v = t.queryDeduplication, g = v === void 0 ? !0 : v, b = t.defaultOptions, E = t.defaultContext, _ = t.assumeImmutableResults, x = _ === void 0 ? u.assumeImmutableResults : _, O = t.resolvers, w = t.typeDefs, S = t.fragmentMatcher, D = t.clientAwareness, j = t.name, C = t.version, N = t.devtools, F = t.dataMasking;
|
|
8920
|
+
globalThis.__DEV__ !== !1 && (ve(t, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), ve(t, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), ve(t, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), ve(t, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), ve(t, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), ve(t, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), ve(t, "typeDefs", "ApolloClient"), t.link || globalThis.__DEV__ !== !1 && R.warn(17));
|
|
8921
8921
|
var W = t.link;
|
|
8922
|
-
W || (W = s ? new sh({ uri: s, credentials: a, headers: c }) : kr.empty()), this.link = W, this.cache = u, this.disableNetworkFetches = f || m > 0, this.queryDeduplication = g, this.defaultOptions = b || /* @__PURE__ */ Object.create(null), this.typeDefs = w, this.devtoolsConfig = k(k({},
|
|
8922
|
+
W || (W = s ? new sh({ uri: s, credentials: a, headers: c }) : kr.empty()), this.link = W, this.cache = u, this.disableNetworkFetches = f || m > 0, this.queryDeduplication = g, this.defaultOptions = b || /* @__PURE__ */ Object.create(null), this.typeDefs = w, this.devtoolsConfig = k(k({}, N), { enabled: (n = N == null ? void 0 : N.enabled) !== null && n !== void 0 ? n : y }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), m && setTimeout(function() {
|
|
8923
8923
|
return r.disableNetworkFetches = !1;
|
|
8924
8924
|
}, m), 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 = Ti, this.localState = new Nh({
|
|
8925
8925
|
cache: u,
|
|
8926
8926
|
client: this,
|
|
8927
8927
|
resolvers: O,
|
|
8928
|
-
fragmentMatcher:
|
|
8928
|
+
fragmentMatcher: S
|
|
8929
8929
|
}), this.queryManager = new Ih({
|
|
8930
8930
|
cache: this.cache,
|
|
8931
8931
|
link: this.link,
|
|
@@ -8936,7 +8936,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8936
8936
|
ssrMode: f,
|
|
8937
8937
|
dataMasking: !!F,
|
|
8938
8938
|
clientAwareness: {
|
|
8939
|
-
name: (i = D == null ? void 0 : D.name) !== null && i !== void 0 ? i :
|
|
8939
|
+
name: (i = D == null ? void 0 : D.name) !== null && i !== void 0 ? i : j,
|
|
8940
8940
|
version: (o = D == null ? void 0 : D.version) !== null && o !== void 0 ? o : C
|
|
8941
8941
|
},
|
|
8942
8942
|
localState: this.localState,
|
|
@@ -8975,7 +8975,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8975
8975
|
(t[r] = t[r] || []).push(this), t.__APOLLO_CLIENT__ = this, !us && globalThis.__DEV__ !== !1 && (us = !0, window.document && window.top === window.self && /^(https?|file):$/.test(window.location.protocol) && setTimeout(function() {
|
|
8976
8976
|
if (!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8977
8977
|
var n = window.navigator, i = n && n.userAgent, o = void 0;
|
|
8978
|
-
typeof i == "string" && (i.indexOf("Chrome/") > -1 ? o = "https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm" : i.indexOf("Firefox/") > -1 && (o = "https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")), o && globalThis.__DEV__ !== !1 &&
|
|
8978
|
+
typeof i == "string" && (i.indexOf("Chrome/") > -1 ? o = "https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm" : i.indexOf("Firefox/") > -1 && (o = "https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")), o && globalThis.__DEV__ !== !1 && R.log("Download the Apollo DevTools for a better development experience: %s", o);
|
|
8979
8979
|
}
|
|
8980
8980
|
}, 1e4));
|
|
8981
8981
|
}
|
|
@@ -8995,7 +8995,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
8995
8995
|
}, e.prototype.watchQuery = function(t) {
|
|
8996
8996
|
return this.defaultOptions.watchQuery && (t = Vt(this.defaultOptions.watchQuery, t)), this.disableNetworkFetches && (t.fetchPolicy === "network-only" || t.fetchPolicy === "cache-and-network") && (t = k(k({}, t), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (ve(t, "canonizeResults", "client.watchQuery"), ve(t, "partialRefetch", "client.watchQuery")), this.queryManager.watchQuery(t);
|
|
8997
8997
|
}, e.prototype.query = function(t) {
|
|
8998
|
-
return this.defaultOptions.query && (t = Vt(this.defaultOptions.query, t)),
|
|
8998
|
+
return this.defaultOptions.query && (t = Vt(this.defaultOptions.query, t)), R(t.fetchPolicy !== "cache-and-network", 18), this.disableNetworkFetches && t.fetchPolicy === "network-only" && (t = k(k({}, t), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (ve(t, "canonizeResults", "client.query"), ve(t, "notifyOnNetworkStatusChange", "client.query", "This option does not affect `client.query` and can be safely removed."), t.fetchPolicy === "standby" && globalThis.__DEV__ !== !1 && R.warn(19)), this.queryManager.query(t);
|
|
8999
8999
|
}, e.prototype.mutate = function(t) {
|
|
9000
9000
|
return this.defaultOptions.mutate && (t = Vt(this.defaultOptions.mutate, t)), this.queryManager.mutate(t);
|
|
9001
9001
|
}, e.prototype.subscribe = function(t) {
|
|
@@ -9072,7 +9072,7 @@ var Rh = Object.prototype.hasOwnProperty, cs = /* @__PURE__ */ Object.create(nul
|
|
|
9072
9072
|
});
|
|
9073
9073
|
var o = Promise.all(i);
|
|
9074
9074
|
return o.queries = n, o.results = i, o.catch(function(s) {
|
|
9075
|
-
globalThis.__DEV__ !== !1 &&
|
|
9075
|
+
globalThis.__DEV__ !== !1 && R.debug(20, s);
|
|
9076
9076
|
}), o;
|
|
9077
9077
|
}, e.prototype.getObservableQueries = function(t) {
|
|
9078
9078
|
return t === void 0 && (t = "active"), this.queryManager.getObservableQueries(t);
|
|
@@ -9188,7 +9188,7 @@ const zh = /* @__PURE__ */ aa(oe), Tc = /* @__PURE__ */ fu({
|
|
|
9188
9188
|
}, [oe]);
|
|
9189
9189
|
var fs = Mi ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
9190
9190
|
function Gi() {
|
|
9191
|
-
|
|
9191
|
+
R("createContext" in Tc, 69);
|
|
9192
9192
|
var e = oe.createContext[fs];
|
|
9193
9193
|
return e || (Object.defineProperty(oe.createContext, fs, {
|
|
9194
9194
|
value: e = oe.createContext({}),
|
|
@@ -9201,18 +9201,18 @@ var Uh = function(e) {
|
|
|
9201
9201
|
var t = e.client, r = e.children, n = Gi(), i = oe.useContext(n), o = oe.useMemo(function() {
|
|
9202
9202
|
return k(k({}, i), { client: t || i.client });
|
|
9203
9203
|
}, [i, t]);
|
|
9204
|
-
return
|
|
9204
|
+
return R(o.client, 71), oe.createElement(n.Provider, { value: o }, r);
|
|
9205
9205
|
};
|
|
9206
9206
|
function kc(e) {
|
|
9207
9207
|
var t = oe.useContext(Gi()), r = e || t.client;
|
|
9208
|
-
return
|
|
9208
|
+
return R(!!r, 79), r;
|
|
9209
9209
|
}
|
|
9210
9210
|
var hs = !1, Hh = "useSyncExternalStore", Yh = Tc[Hh], Gh = Yh || (function(e, t, r) {
|
|
9211
9211
|
var n = t();
|
|
9212
9212
|
// DEVIATION: Using __DEV__
|
|
9213
9213
|
globalThis.__DEV__ !== !1 && !hs && // DEVIATION: Not using Object.is because we know our snapshots will never
|
|
9214
9214
|
// be exotic primitive values like NaN, which is !== itself.
|
|
9215
|
-
n !== t() && (hs = !0, globalThis.__DEV__ !== !1 &&
|
|
9215
|
+
n !== t() && (hs = !0, globalThis.__DEV__ !== !1 && R.error(92));
|
|
9216
9216
|
var i = oe.useState({
|
|
9217
9217
|
inst: { value: n, getSnapshot: t }
|
|
9218
9218
|
}), o = i[0].inst, s = i[1];
|
|
@@ -9236,7 +9236,7 @@ var Ge;
|
|
|
9236
9236
|
(function(e) {
|
|
9237
9237
|
e[e.Query = 0] = "Query", e[e.Mutation = 1] = "Mutation", e[e.Subscription = 2] = "Subscription";
|
|
9238
9238
|
})(Ge || (Ge = {}));
|
|
9239
|
-
var
|
|
9239
|
+
var xt;
|
|
9240
9240
|
function ds(e) {
|
|
9241
9241
|
var t;
|
|
9242
9242
|
switch (e) {
|
|
@@ -9254,16 +9254,16 @@ function ds(e) {
|
|
|
9254
9254
|
}
|
|
9255
9255
|
function Oc(e) {
|
|
9256
9256
|
at("parser", function() {
|
|
9257
|
-
globalThis.__DEV__ !== !1 &&
|
|
9258
|
-
}),
|
|
9257
|
+
globalThis.__DEV__ !== !1 && R.warn(94);
|
|
9258
|
+
}), xt || (xt = new ji(
|
|
9259
9259
|
Qe.parser || 1e3
|
|
9260
9260
|
/* defaultCacheSizes.parser */
|
|
9261
9261
|
));
|
|
9262
|
-
var t =
|
|
9262
|
+
var t = xt.get(e);
|
|
9263
9263
|
if (t)
|
|
9264
9264
|
return t;
|
|
9265
9265
|
var r, n, i;
|
|
9266
|
-
|
|
9266
|
+
R(!!e && !!e.kind, 95, e);
|
|
9267
9267
|
for (var o = [], s = [], a = [], c = [], u = 0, l = e.definitions; u < l.length; u++) {
|
|
9268
9268
|
var h = l[u];
|
|
9269
9269
|
if (h.kind === "FragmentDefinition") {
|
|
@@ -9283,7 +9283,7 @@ function Oc(e) {
|
|
|
9283
9283
|
break;
|
|
9284
9284
|
}
|
|
9285
9285
|
}
|
|
9286
|
-
|
|
9286
|
+
R(!o.length || s.length || a.length || c.length, 96), R(
|
|
9287
9287
|
s.length + a.length + c.length <= 1,
|
|
9288
9288
|
97,
|
|
9289
9289
|
e,
|
|
@@ -9292,21 +9292,21 @@ function Oc(e) {
|
|
|
9292
9292
|
a.length
|
|
9293
9293
|
), n = s.length ? Ge.Query : Ge.Mutation, !s.length && !a.length && (n = Ge.Subscription);
|
|
9294
9294
|
var f = s.length ? s : a.length ? a : c;
|
|
9295
|
-
|
|
9295
|
+
R(f.length === 1, 98, e, f.length);
|
|
9296
9296
|
var p = f[0];
|
|
9297
9297
|
r = p.variableDefinitions || [], p.name && p.name.kind === "Name" ? i = p.name.value : i = "data";
|
|
9298
9298
|
var m = { name: i, type: n, variables: r };
|
|
9299
|
-
return
|
|
9299
|
+
return xt.set(e, m), m;
|
|
9300
9300
|
}
|
|
9301
9301
|
Oc.resetCache = function() {
|
|
9302
|
-
|
|
9302
|
+
xt = void 0;
|
|
9303
9303
|
};
|
|
9304
9304
|
globalThis.__DEV__ !== !1 && Ri("parser", function() {
|
|
9305
|
-
return
|
|
9305
|
+
return xt ? xt.size : 0;
|
|
9306
9306
|
});
|
|
9307
9307
|
function Xh(e, t) {
|
|
9308
9308
|
var r = Se("parser", Oc, [e]), n = ds(t), i = ds(r.type);
|
|
9309
|
-
|
|
9309
|
+
R(
|
|
9310
9310
|
r.type === t,
|
|
9311
9311
|
99,
|
|
9312
9312
|
n,
|
|
@@ -9339,7 +9339,7 @@ function Ie(e, t, r, n) {
|
|
|
9339
9339
|
"use no memo";
|
|
9340
9340
|
n === void 0 && (n = "Please remove this option.");
|
|
9341
9341
|
var i = oe.useRef(!1);
|
|
9342
|
-
t in e && !i.current && (globalThis.__DEV__ !== !1 &&
|
|
9342
|
+
t in e && !i.current && (globalThis.__DEV__ !== !1 && R.warn(78, r, t, n), i.current = !0);
|
|
9343
9343
|
}
|
|
9344
9344
|
var ed = Symbol.for("apollo.hook.wrappers");
|
|
9345
9345
|
function td(e, t, r) {
|
|
@@ -9514,7 +9514,7 @@ function Dc(e, t, r, n) {
|
|
|
9514
9514
|
}
|
|
9515
9515
|
function Xi(e, t, r, n) {
|
|
9516
9516
|
var i = [], o = t.defaultOptions.watchQuery;
|
|
9517
|
-
return o && i.push(o), r.defaultOptions && i.push(r.defaultOptions), i.push(
|
|
9517
|
+
return o && i.push(o), r.defaultOptions && i.push(r.defaultOptions), i.push(_t(e && e.options, n)), i.reduce(Vt);
|
|
9518
9518
|
}
|
|
9519
9519
|
function vi(e, t, r, n, i, o, s) {
|
|
9520
9520
|
var a = t.current;
|
|
@@ -9526,7 +9526,7 @@ function ud(e, t, r) {
|
|
|
9526
9526
|
Promise.resolve().then(function() {
|
|
9527
9527
|
n ? r.onError(n) : e.data && t !== e.networkStatus && e.networkStatus === se.ready && r.onCompleted(e.data);
|
|
9528
9528
|
}).catch(function(i) {
|
|
9529
|
-
globalThis.__DEV__ !== !1 &&
|
|
9529
|
+
globalThis.__DEV__ !== !1 && R.warn(i);
|
|
9530
9530
|
});
|
|
9531
9531
|
}
|
|
9532
9532
|
}
|
|
@@ -9567,7 +9567,7 @@ function hd(e) {
|
|
|
9567
9567
|
reobserve: function() {
|
|
9568
9568
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
9569
9569
|
t[r] = arguments[r];
|
|
9570
|
-
return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 &&
|
|
9570
|
+
return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(84), e.reobserve.apply(e, t);
|
|
9571
9571
|
},
|
|
9572
9572
|
fetchMore: e.fetchMore.bind(e),
|
|
9573
9573
|
updateQuery: e.updateQuery.bind(e),
|
|
@@ -9604,7 +9604,7 @@ var dd = [
|
|
|
9604
9604
|
"returnPartialData",
|
|
9605
9605
|
"skipPollAttempt"
|
|
9606
9606
|
];
|
|
9607
|
-
function
|
|
9607
|
+
function vt(e, t) {
|
|
9608
9608
|
var r;
|
|
9609
9609
|
if (globalThis.__DEV__ !== !1) {
|
|
9610
9610
|
var n = {};
|
|
@@ -9615,35 +9615,35 @@ function mt(e, t) {
|
|
|
9615
9615
|
var u = k(k({}, a), { skip: !i.current }), l = Cc(c, u), h = l.obsQueryFields, f = l.result, p = l.client, m = l.resultData, y = l.observable, v = l.onQueryExecuted, g = y.options.initialFetchPolicy || gi(u.defaultOptions, p.defaultOptions), b = oe.useReducer(function(C) {
|
|
9616
9616
|
return C + 1;
|
|
9617
9617
|
}, 0)[1], E = oe.useMemo(function() {
|
|
9618
|
-
for (var C = {},
|
|
9619
|
-
var U = h[
|
|
9620
|
-
C[
|
|
9621
|
-
return globalThis.__DEV__ !== !1 &&
|
|
9618
|
+
for (var C = {}, N = function(V) {
|
|
9619
|
+
var U = h[V];
|
|
9620
|
+
C[V] = function() {
|
|
9621
|
+
return globalThis.__DEV__ !== !1 && V === "reobserve" && globalThis.__DEV__ !== !1 && R.warn(80), i.current || (i.current = /* @__PURE__ */ Object.create(null), b()), U.apply(this, arguments);
|
|
9622
9622
|
};
|
|
9623
9623
|
}, F = 0, W = dd; F < W.length; F++) {
|
|
9624
|
-
var
|
|
9625
|
-
|
|
9624
|
+
var I = W[F];
|
|
9625
|
+
N(I);
|
|
9626
9626
|
}
|
|
9627
9627
|
return C;
|
|
9628
9628
|
}, [b, h]), _ = !!i.current, x = oe.useMemo(function() {
|
|
9629
9629
|
return k(k(k({}, f), E), { called: _ });
|
|
9630
|
-
}, [f, E, _]), O = Zh(), w = oe.useRef(/* @__PURE__ */ new Set()),
|
|
9630
|
+
}, [f, E, _]), O = Zh(), w = oe.useRef(/* @__PURE__ */ new Set()), S = oe.useCallback(function(C) {
|
|
9631
9631
|
if (globalThis.__DEV__ !== !1) {
|
|
9632
|
-
O() && globalThis.__DEV__ !== !1 &&
|
|
9633
|
-
for (var
|
|
9634
|
-
var W = F[
|
|
9632
|
+
O() && globalThis.__DEV__ !== !1 && R.warn(81);
|
|
9633
|
+
for (var N = 0, F = pd; N < F.length; N++) {
|
|
9634
|
+
var W = F[N];
|
|
9635
9635
|
w.current.has(W) || (ve(C || {}, W, "useLazyQuery.execute"), w.current.add(W));
|
|
9636
9636
|
}
|
|
9637
|
-
for (var
|
|
9638
|
-
var U =
|
|
9637
|
+
for (var I = 0, V = md; I < V.length; I++) {
|
|
9638
|
+
var U = V[I];
|
|
9639
9639
|
w.current.has(U) || (ve(C || {}, U, "useLazyQuery.execute", "Please pass the option to the `useLazyQuery` hook instead."), w.current.add(U));
|
|
9640
9640
|
}
|
|
9641
9641
|
}
|
|
9642
9642
|
i.current = C ? k(k({}, C), { fetchPolicy: C.fetchPolicy || g }) : {
|
|
9643
9643
|
fetchPolicy: g
|
|
9644
9644
|
};
|
|
9645
|
-
var
|
|
9646
|
-
return Object.assign(
|
|
9645
|
+
var ae = Vt(o.current, k({ query: s.current }, i.current)), Q = vd(m, y, p, c, k(k({}, ae), { skip: !1 }), v).then(function(T) {
|
|
9646
|
+
return Object.assign(T, E);
|
|
9647
9647
|
});
|
|
9648
9648
|
return Q.catch(function() {
|
|
9649
9649
|
}), Q;
|
|
@@ -9656,16 +9656,16 @@ function mt(e, t) {
|
|
|
9656
9656
|
y,
|
|
9657
9657
|
m,
|
|
9658
9658
|
v
|
|
9659
|
-
]), D = oe.useRef(
|
|
9659
|
+
]), D = oe.useRef(S);
|
|
9660
9660
|
Jh(function() {
|
|
9661
|
-
D.current =
|
|
9661
|
+
D.current = S;
|
|
9662
9662
|
});
|
|
9663
|
-
var
|
|
9664
|
-
for (var C = [],
|
|
9665
|
-
C[
|
|
9663
|
+
var j = oe.useCallback(function() {
|
|
9664
|
+
for (var C = [], N = 0; N < arguments.length; N++)
|
|
9665
|
+
C[N] = arguments[N];
|
|
9666
9666
|
return D.current.apply(D, C);
|
|
9667
9667
|
}, []);
|
|
9668
|
-
return [
|
|
9668
|
+
return [j, x];
|
|
9669
9669
|
}
|
|
9670
9670
|
function vd(e, t, r, n, i, o) {
|
|
9671
9671
|
var s = i.query || n, a = Dc(r, s, i, !1)(t), c = t.reobserveAsConcast(Xi(t, r, i, a));
|
|
@@ -9690,43 +9690,43 @@ function gd({ children: e, value: t }) {
|
|
|
9690
9690
|
return /* @__PURE__ */ d.jsx(pt.Provider, { value: t, children: e });
|
|
9691
9691
|
}
|
|
9692
9692
|
function J(e) {
|
|
9693
|
-
const t =
|
|
9693
|
+
const t = St(pt);
|
|
9694
9694
|
if (!t)
|
|
9695
9695
|
throw new Error("useBrowserStore must be used within a Browser component");
|
|
9696
9696
|
return t.browserStore(e);
|
|
9697
9697
|
}
|
|
9698
9698
|
function te(e) {
|
|
9699
|
-
const t =
|
|
9699
|
+
const t = St(pt);
|
|
9700
9700
|
if (!t)
|
|
9701
9701
|
throw new Error("useTrackStore must be used within a Browser component");
|
|
9702
9702
|
return t.trackStore(e);
|
|
9703
9703
|
}
|
|
9704
9704
|
function We(e) {
|
|
9705
|
-
const t =
|
|
9705
|
+
const t = St(pt);
|
|
9706
9706
|
if (!t)
|
|
9707
9707
|
throw new Error("useDataStore must be used within a Browser component");
|
|
9708
9708
|
return t.dataStore(e);
|
|
9709
9709
|
}
|
|
9710
9710
|
function Mt(e) {
|
|
9711
|
-
const t =
|
|
9711
|
+
const t = St(pt);
|
|
9712
9712
|
if (!t)
|
|
9713
9713
|
throw new Error("useContextMenuStore must be used within a Browser component");
|
|
9714
9714
|
return t.contextMenuStore(e);
|
|
9715
9715
|
}
|
|
9716
9716
|
function ur(e) {
|
|
9717
|
-
const t =
|
|
9717
|
+
const t = St(pt);
|
|
9718
9718
|
if (!t)
|
|
9719
9719
|
throw new Error("useModalStore must be used within a Browser component");
|
|
9720
9720
|
return t.modalStore(e);
|
|
9721
9721
|
}
|
|
9722
9722
|
function At(e) {
|
|
9723
|
-
const t =
|
|
9723
|
+
const t = St(pt);
|
|
9724
9724
|
if (!t)
|
|
9725
9725
|
throw new Error("useTooltipStore must be used within a Browser component");
|
|
9726
9726
|
return t.tooltipStore(e);
|
|
9727
9727
|
}
|
|
9728
9728
|
function De(e) {
|
|
9729
|
-
const t =
|
|
9729
|
+
const t = St(pt);
|
|
9730
9730
|
if (!t)
|
|
9731
9731
|
throw new Error("useTheme must be used within a Browser component");
|
|
9732
9732
|
return t.themeStore(e);
|
|
@@ -10034,14 +10034,14 @@ function Ad(e, t) {
|
|
|
10034
10034
|
return r.push(...Ld(e, t.bigData, t.bigError)), r.push(...Md(e, t.geneData, t.geneError)), r.push(...jd(e, t.motifData, t.motifError)), r.push(...Rd(e, t.importanceData, t.importanceError)), r.push(...Id(e, t.bulkBedData, t.bulkBedError)), r.push(...Nd(e, t.methylCData, t.methylCError)), r.push(...Pd(e, t.ldData, t.ldError)), r;
|
|
10035
10035
|
}
|
|
10036
10036
|
function Fd() {
|
|
10037
|
-
const [e, { data: t, loading: r, error: n }] =
|
|
10038
|
-
O ||
|
|
10037
|
+
const [e, { data: t, loading: r, error: n }] = vt(Rr), [i, { data: o, loading: s, error: a }] = vt(bd), [c, { data: u, loading: l, error: h }] = vt(yd), [f, { data: p, loading: m, error: y }] = vt(Rr), [v, { data: g, loading: b, error: E }] = vt(Rr), [_, { data: x, loading: O, error: w }] = vt(Rr), [S, { data: D, loading: j, error: C }] = vt(xd), N = te((A) => A.tracks), F = te((A) => A.editTrack), W = J((A) => A.domain), I = J((A) => A.getExpandedDomain), V = J((A) => A.setDelta), U = We((A) => A.setDataById), ae = We((A) => A.setLoading), Q = We((A) => A.setFetching), T = J((A) => A.trackWidth), L = J((A) => A.multiplier), P = Y(() => T * L, [T, L]), B = Y(() => r || l || s || m || b || // snpLoading ||
|
|
10038
|
+
O || j, [r, l, s, m, b, O, j]);
|
|
10039
10039
|
return pe(() => {
|
|
10040
|
-
if (
|
|
10040
|
+
if (N.length === 0 || B)
|
|
10041
10041
|
return;
|
|
10042
10042
|
(async () => {
|
|
10043
10043
|
Q(!0);
|
|
10044
|
-
const G = Cd(
|
|
10044
|
+
const G = Cd(N, I(), W, P - 1), K = N.find((Z) => Z.trackType === ee.Transcript);
|
|
10045
10045
|
K && G.transcriptRequest && F(K.id, { refetch: c }), await Dd(G, {
|
|
10046
10046
|
fetchBigData: e,
|
|
10047
10047
|
fetchGene: c,
|
|
@@ -10049,14 +10049,14 @@ function Fd() {
|
|
|
10049
10049
|
fetchImportance: f,
|
|
10050
10050
|
fetchBulkBed: v,
|
|
10051
10051
|
fetchMethylC: _,
|
|
10052
|
-
fetchLD:
|
|
10052
|
+
fetchLD: S
|
|
10053
10053
|
});
|
|
10054
10054
|
})().catch((G) => {
|
|
10055
10055
|
console.error("Error fetching data:", G);
|
|
10056
10056
|
});
|
|
10057
|
-
}, [W.chromosome, W.start, W.end,
|
|
10058
|
-
if (
|
|
10059
|
-
Ad(
|
|
10057
|
+
}, [W.chromosome, W.start, W.end, N.length]), pe(() => {
|
|
10058
|
+
if (B) return;
|
|
10059
|
+
Ad(N, {
|
|
10060
10060
|
bigData: t,
|
|
10061
10061
|
geneData: u,
|
|
10062
10062
|
importanceData: p,
|
|
@@ -10075,7 +10075,7 @@ function Fd() {
|
|
|
10075
10075
|
ldError: C
|
|
10076
10076
|
}).forEach((G) => {
|
|
10077
10077
|
U(G.trackId, G.data, G.error);
|
|
10078
|
-
}),
|
|
10078
|
+
}), V(0), ae(!1), Q(!1);
|
|
10079
10079
|
}, [
|
|
10080
10080
|
t,
|
|
10081
10081
|
u,
|
|
@@ -10093,10 +10093,10 @@ function Fd() {
|
|
|
10093
10093
|
w,
|
|
10094
10094
|
D,
|
|
10095
10095
|
C,
|
|
10096
|
-
|
|
10096
|
+
B,
|
|
10097
10097
|
U,
|
|
10098
|
-
|
|
10099
|
-
|
|
10098
|
+
V,
|
|
10099
|
+
ae,
|
|
10100
10100
|
Q
|
|
10101
10101
|
]), null;
|
|
10102
10102
|
}
|
|
@@ -10122,9 +10122,9 @@ function $d(e, t = Vd) {
|
|
|
10122
10122
|
const gs = (e) => {
|
|
10123
10123
|
const t = qd(e), r = (n) => $d(t, n);
|
|
10124
10124
|
return Object.assign(r, t), r;
|
|
10125
|
-
},
|
|
10125
|
+
}, kt = ((e) => e ? gs(e) : gs);
|
|
10126
10126
|
function jc() {
|
|
10127
|
-
return
|
|
10127
|
+
return kt((e) => ({
|
|
10128
10128
|
data: /* @__PURE__ */ new Map(),
|
|
10129
10129
|
loading: !0,
|
|
10130
10130
|
fetching: !1,
|
|
@@ -10135,7 +10135,7 @@ function jc() {
|
|
|
10135
10135
|
}
|
|
10136
10136
|
const Bd = jc();
|
|
10137
10137
|
function Rc() {
|
|
10138
|
-
return
|
|
10138
|
+
return kt((e) => ({
|
|
10139
10139
|
open: !1,
|
|
10140
10140
|
id: null,
|
|
10141
10141
|
x: 0,
|
|
@@ -10145,7 +10145,7 @@ function Rc() {
|
|
|
10145
10145
|
}
|
|
10146
10146
|
Rc();
|
|
10147
10147
|
function Ic() {
|
|
10148
|
-
return
|
|
10148
|
+
return kt((e) => ({
|
|
10149
10149
|
id: "",
|
|
10150
10150
|
position: { x: 0, y: 0 },
|
|
10151
10151
|
open: !1,
|
|
@@ -10155,7 +10155,7 @@ function Ic() {
|
|
|
10155
10155
|
}
|
|
10156
10156
|
Ic();
|
|
10157
10157
|
function Nc() {
|
|
10158
|
-
return
|
|
10158
|
+
return kt((e) => ({
|
|
10159
10159
|
show: !1,
|
|
10160
10160
|
content: void 0,
|
|
10161
10161
|
x: 0,
|
|
@@ -10168,7 +10168,7 @@ function Nc() {
|
|
|
10168
10168
|
}
|
|
10169
10169
|
Nc();
|
|
10170
10170
|
function Pc() {
|
|
10171
|
-
return
|
|
10171
|
+
return kt((e) => ({
|
|
10172
10172
|
background: "#ffffff",
|
|
10173
10173
|
text: "#000000",
|
|
10174
10174
|
setBackground: (t) => {
|
|
@@ -10284,7 +10284,7 @@ const Xd = (e) => {
|
|
|
10284
10284
|
{ renderPoints: n, range: { max: -1 / 0, min: 1 / 0 } }
|
|
10285
10285
|
);
|
|
10286
10286
|
};
|
|
10287
|
-
function
|
|
10287
|
+
function mt(e) {
|
|
10288
10288
|
const t = J((a) => a.getExpandedDomain), [r, n] = ce(t()), i = We((a) => a.fetching);
|
|
10289
10289
|
pe(() => {
|
|
10290
10290
|
i == !1 && n(t());
|
|
@@ -10362,7 +10362,7 @@ function Vc({
|
|
|
10362
10362
|
onLeave: c,
|
|
10363
10363
|
tooltip: u
|
|
10364
10364
|
}) {
|
|
10365
|
-
const { totalWidth: l, sideWidth: h } = i, { x: f, reverseX: p } =
|
|
10365
|
+
const { totalWidth: l, sideWidth: h } = i, { x: f, reverseX: p } = mt(l), m = Y(() => Jd(t || [], f), [t, f]), y = De((E) => E.background), { handleClick: v, handleHover: g, handleLeave: b } = He({
|
|
10366
10366
|
onClick: s,
|
|
10367
10367
|
onHover: a,
|
|
10368
10368
|
onLeave: c,
|
|
@@ -10383,7 +10383,7 @@ function Vc({
|
|
|
10383
10383
|
y: w,
|
|
10384
10384
|
fill: E.color || n,
|
|
10385
10385
|
onClick: () => v(x),
|
|
10386
|
-
onMouseOver: (
|
|
10386
|
+
onMouseOver: (S) => g(x, E.name || "", S),
|
|
10387
10387
|
onMouseOut: () => b(x)
|
|
10388
10388
|
},
|
|
10389
10389
|
`${e}_${_}`
|
|
@@ -10468,10 +10468,10 @@ function t0(e, t, r, n) {
|
|
|
10468
10468
|
return { pos: { x: i[0], y: i[1] }, index: s };
|
|
10469
10469
|
}
|
|
10470
10470
|
function r0({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o }) {
|
|
10471
|
-
var
|
|
10471
|
+
var j;
|
|
10472
10472
|
const { sideWidth: s, viewWidth: a, totalWidth: c } = i, u = (c / a - 1) / 2, l = J((C) => C.multiplier), h = te((C) => C.editTrack), f = J((C) => C.delta), p = J((C) => C.marginWidth), m = J((C) => C.svgRef), y = Y(() => {
|
|
10473
|
-
const
|
|
10474
|
-
return Fc(
|
|
10473
|
+
const N = ((t == null ? void 0 : t.length) ?? 0) / l, F = Math.floor(u * N), W = Math.floor((u + 1) * N), I = t == null ? void 0 : t.slice(F, W);
|
|
10474
|
+
return Fc(I ?? []);
|
|
10475
10475
|
}, [t, l, u]);
|
|
10476
10476
|
pe(() => {
|
|
10477
10477
|
h(e, { range: y });
|
|
@@ -10490,14 +10490,14 @@ function r0({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o })
|
|
|
10490
10490
|
}, [r, g, y]), E = wr((C) => C.text), { mouseState: _, updateMouseState: x, clearMouseState: O } = Ji(m, c, p, s), w = Y(() => {
|
|
10491
10491
|
var C;
|
|
10492
10492
|
return (C = _.pos) != null && C.x ? _.pos.x - p + s : 0;
|
|
10493
|
-
}, [(
|
|
10493
|
+
}, [(j = _.pos) == null ? void 0 : j.x, p, s]), { handleHover: S, handleLeave: D } = He({
|
|
10494
10494
|
onClick: void 0,
|
|
10495
10495
|
onHover: void 0,
|
|
10496
10496
|
onLeave: void 0,
|
|
10497
10497
|
tooltip: o
|
|
10498
10498
|
});
|
|
10499
10499
|
return /* @__PURE__ */ d.jsxs("g", { width: c, height: n, transform: `translate(-${s}, 0)`, children: [
|
|
10500
|
-
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("linearGradient", { id: e, children: b.map((C,
|
|
10500
|
+
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("linearGradient", { id: e, children: b.map((C, N) => /* @__PURE__ */ d.jsx("stop", { offset: `${N}%`, stopColor: C }, `${e}_pt_${N}`)) }) }),
|
|
10501
10501
|
/* @__PURE__ */ d.jsx("rect", { width: c, x: 0, y: n / 3, height: n / 3, fill: `url('#${e}')` }),
|
|
10502
10502
|
!f && w && /* @__PURE__ */ d.jsx("line", { stroke: E, x1: w, x2: w, y1: 0, y2: n }),
|
|
10503
10503
|
/* @__PURE__ */ d.jsx(
|
|
@@ -10509,13 +10509,13 @@ function r0({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o })
|
|
|
10509
10509
|
fill: "transparent",
|
|
10510
10510
|
onMouseMove: (C) => {
|
|
10511
10511
|
if (x(C), _.index === null) return;
|
|
10512
|
-
const
|
|
10512
|
+
const N = t[_.index], F = N.max, W = N.min;
|
|
10513
10513
|
if (!(!F || !W)) {
|
|
10514
10514
|
if (F === W || !v) {
|
|
10515
|
-
|
|
10515
|
+
S(N, String(F.toFixed(2)), C);
|
|
10516
10516
|
return;
|
|
10517
10517
|
}
|
|
10518
|
-
|
|
10518
|
+
S(N, "max: " + String(F.toFixed(2)) + " min: " + String(W.toFixed(2)), C);
|
|
10519
10519
|
}
|
|
10520
10520
|
},
|
|
10521
10521
|
onMouseOut: () => {
|
|
@@ -10613,16 +10613,16 @@ var ws;
|
|
|
10613
10613
|
function i0() {
|
|
10614
10614
|
return ws || (ws = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
10615
10615
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
10616
|
-
function E(
|
|
10617
|
-
return typeof
|
|
10618
|
-
|
|
10616
|
+
function E($) {
|
|
10617
|
+
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10618
|
+
$ === n || $ === u || $ === o || $ === i || $ === h || $ === f || typeof $ == "object" && $ !== null && ($.$$typeof === m || $.$$typeof === p || $.$$typeof === s || $.$$typeof === a || $.$$typeof === l || $.$$typeof === v || $.$$typeof === g || $.$$typeof === b || $.$$typeof === y);
|
|
10619
10619
|
}
|
|
10620
|
-
function _(
|
|
10621
|
-
if (typeof
|
|
10622
|
-
var Ve =
|
|
10620
|
+
function _($) {
|
|
10621
|
+
if (typeof $ == "object" && $ !== null) {
|
|
10622
|
+
var Ve = $.$$typeof;
|
|
10623
10623
|
switch (Ve) {
|
|
10624
10624
|
case t:
|
|
10625
|
-
var Or =
|
|
10625
|
+
var Or = $.type;
|
|
10626
10626
|
switch (Or) {
|
|
10627
10627
|
case c:
|
|
10628
10628
|
case u:
|
|
@@ -10649,47 +10649,47 @@ function i0() {
|
|
|
10649
10649
|
}
|
|
10650
10650
|
}
|
|
10651
10651
|
}
|
|
10652
|
-
var x = c, O = u, w = a,
|
|
10653
|
-
function Q(
|
|
10654
|
-
return
|
|
10652
|
+
var x = c, O = u, w = a, S = s, D = t, j = l, C = n, N = m, F = p, W = r, I = o, V = i, U = h, ae = !1;
|
|
10653
|
+
function Q($) {
|
|
10654
|
+
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T($) || _($) === c;
|
|
10655
10655
|
}
|
|
10656
|
-
function
|
|
10657
|
-
return _(
|
|
10656
|
+
function T($) {
|
|
10657
|
+
return _($) === u;
|
|
10658
10658
|
}
|
|
10659
|
-
function L(
|
|
10660
|
-
return _(
|
|
10659
|
+
function L($) {
|
|
10660
|
+
return _($) === a;
|
|
10661
10661
|
}
|
|
10662
|
-
function
|
|
10663
|
-
return _(
|
|
10662
|
+
function P($) {
|
|
10663
|
+
return _($) === s;
|
|
10664
10664
|
}
|
|
10665
|
-
function $
|
|
10666
|
-
return typeof
|
|
10665
|
+
function B($) {
|
|
10666
|
+
return typeof $ == "object" && $ !== null && $.$$typeof === t;
|
|
10667
10667
|
}
|
|
10668
|
-
function A(
|
|
10669
|
-
return _(
|
|
10668
|
+
function A($) {
|
|
10669
|
+
return _($) === l;
|
|
10670
10670
|
}
|
|
10671
|
-
function G(
|
|
10672
|
-
return _(
|
|
10671
|
+
function G($) {
|
|
10672
|
+
return _($) === n;
|
|
10673
10673
|
}
|
|
10674
|
-
function K(
|
|
10675
|
-
return _(
|
|
10674
|
+
function K($) {
|
|
10675
|
+
return _($) === m;
|
|
10676
10676
|
}
|
|
10677
|
-
function Z(
|
|
10678
|
-
return _(
|
|
10677
|
+
function Z($) {
|
|
10678
|
+
return _($) === p;
|
|
10679
10679
|
}
|
|
10680
|
-
function X(
|
|
10681
|
-
return _(
|
|
10680
|
+
function X($) {
|
|
10681
|
+
return _($) === r;
|
|
10682
10682
|
}
|
|
10683
|
-
function re(
|
|
10684
|
-
return _(
|
|
10683
|
+
function re($) {
|
|
10684
|
+
return _($) === o;
|
|
10685
10685
|
}
|
|
10686
|
-
function ne(
|
|
10687
|
-
return _(
|
|
10686
|
+
function ne($) {
|
|
10687
|
+
return _($) === i;
|
|
10688
10688
|
}
|
|
10689
|
-
function Le(
|
|
10690
|
-
return _(
|
|
10689
|
+
function Le($) {
|
|
10690
|
+
return _($) === h;
|
|
10691
10691
|
}
|
|
10692
|
-
le.AsyncMode = x, le.ConcurrentMode = O, le.ContextConsumer = w, le.ContextProvider =
|
|
10692
|
+
le.AsyncMode = x, le.ConcurrentMode = O, le.ContextConsumer = w, le.ContextProvider = S, le.Element = D, le.ForwardRef = j, le.Fragment = C, le.Lazy = N, le.Memo = F, le.Portal = W, le.Profiler = I, le.StrictMode = V, le.Suspense = U, le.isAsyncMode = Q, le.isConcurrentMode = T, le.isContextConsumer = L, le.isContextProvider = P, le.isElement = B, le.isForwardRef = A, le.isFragment = G, le.isLazy = K, le.isMemo = Z, le.isPortal = X, le.isProfiler = re, le.isStrictMode = ne, le.isSuspense = Le, le.isValidElementType = E, le.typeOf = _;
|
|
10693
10693
|
})()), le;
|
|
10694
10694
|
}
|
|
10695
10695
|
var _s;
|
|
@@ -10826,8 +10826,8 @@ function a0() {
|
|
|
10826
10826
|
}
|
|
10827
10827
|
return Vn = function(a, c) {
|
|
10828
10828
|
var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
10829
|
-
function h(
|
|
10830
|
-
var L =
|
|
10829
|
+
function h(T) {
|
|
10830
|
+
var L = T && (u && T[u] || T[l]);
|
|
10831
10831
|
if (typeof L == "function")
|
|
10832
10832
|
return L;
|
|
10833
10833
|
}
|
|
@@ -10845,51 +10845,51 @@ function a0() {
|
|
|
10845
10845
|
element: _(),
|
|
10846
10846
|
elementType: x(),
|
|
10847
10847
|
instanceOf: O,
|
|
10848
|
-
node:
|
|
10849
|
-
objectOf:
|
|
10848
|
+
node: j(),
|
|
10849
|
+
objectOf: S,
|
|
10850
10850
|
oneOf: w,
|
|
10851
10851
|
oneOfType: D,
|
|
10852
|
-
shape:
|
|
10852
|
+
shape: N,
|
|
10853
10853
|
exact: F
|
|
10854
10854
|
};
|
|
10855
|
-
function m(
|
|
10856
|
-
return
|
|
10855
|
+
function m(T, L) {
|
|
10856
|
+
return T === L ? T !== 0 || 1 / T === 1 / L : T !== T && L !== L;
|
|
10857
10857
|
}
|
|
10858
|
-
function y(
|
|
10859
|
-
this.message =
|
|
10858
|
+
function y(T, L) {
|
|
10859
|
+
this.message = T, this.data = L && typeof L == "object" ? L : {}, this.stack = "";
|
|
10860
10860
|
}
|
|
10861
10861
|
y.prototype = Error.prototype;
|
|
10862
|
-
function v(
|
|
10862
|
+
function v(T) {
|
|
10863
10863
|
if (process.env.NODE_ENV !== "production")
|
|
10864
|
-
var L = {},
|
|
10865
|
-
function
|
|
10864
|
+
var L = {}, P = 0;
|
|
10865
|
+
function B(G, K, Z, X, re, ne, Le) {
|
|
10866
10866
|
if (X = X || f, ne = ne || Z, Le !== r) {
|
|
10867
10867
|
if (c) {
|
|
10868
|
-
var
|
|
10868
|
+
var $ = new Error(
|
|
10869
10869
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
10870
10870
|
);
|
|
10871
|
-
throw
|
|
10871
|
+
throw $.name = "Invariant Violation", $;
|
|
10872
10872
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
10873
10873
|
var Ve = X + ":" + Z;
|
|
10874
10874
|
!L[Ve] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
10875
|
-
|
|
10875
|
+
P < 3 && (o(
|
|
10876
10876
|
"You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
10877
|
-
), L[Ve] = !0,
|
|
10877
|
+
), L[Ve] = !0, P++);
|
|
10878
10878
|
}
|
|
10879
10879
|
}
|
|
10880
|
-
return K[Z] == null ? G ? K[Z] === null ? new y("The " + re + " `" + ne + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + re + " `" + ne + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null :
|
|
10880
|
+
return K[Z] == null ? G ? K[Z] === null ? new y("The " + re + " `" + ne + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + re + " `" + ne + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : T(K, Z, X, re, ne);
|
|
10881
10881
|
}
|
|
10882
|
-
var A =
|
|
10883
|
-
return A.isRequired =
|
|
10882
|
+
var A = B.bind(null, !1);
|
|
10883
|
+
return A.isRequired = B.bind(null, !0), A;
|
|
10884
10884
|
}
|
|
10885
|
-
function g(
|
|
10886
|
-
function L(
|
|
10887
|
-
var X =
|
|
10888
|
-
if (re !==
|
|
10885
|
+
function g(T) {
|
|
10886
|
+
function L(P, B, A, G, K, Z) {
|
|
10887
|
+
var X = P[B], re = V(X);
|
|
10888
|
+
if (re !== T) {
|
|
10889
10889
|
var ne = U(X);
|
|
10890
10890
|
return new y(
|
|
10891
|
-
"Invalid " + G + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + A + "`, expected ") + ("`" +
|
|
10892
|
-
{ expectedType:
|
|
10891
|
+
"Invalid " + G + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + A + "`, expected ") + ("`" + T + "`."),
|
|
10892
|
+
{ expectedType: T }
|
|
10893
10893
|
);
|
|
10894
10894
|
}
|
|
10895
10895
|
return null;
|
|
@@ -10899,17 +10899,17 @@ function a0() {
|
|
|
10899
10899
|
function b() {
|
|
10900
10900
|
return v(s);
|
|
10901
10901
|
}
|
|
10902
|
-
function E(
|
|
10903
|
-
function L(
|
|
10904
|
-
if (typeof
|
|
10902
|
+
function E(T) {
|
|
10903
|
+
function L(P, B, A, G, K) {
|
|
10904
|
+
if (typeof T != "function")
|
|
10905
10905
|
return new y("Property `" + K + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
10906
|
-
var Z =
|
|
10906
|
+
var Z = P[B];
|
|
10907
10907
|
if (!Array.isArray(Z)) {
|
|
10908
|
-
var X =
|
|
10908
|
+
var X = V(Z);
|
|
10909
10909
|
return new y("Invalid " + G + " `" + K + "` of type " + ("`" + X + "` supplied to `" + A + "`, expected an array."));
|
|
10910
10910
|
}
|
|
10911
10911
|
for (var re = 0; re < Z.length; re++) {
|
|
10912
|
-
var ne =
|
|
10912
|
+
var ne = T(Z, re, A, G, K + "[" + re + "]", r);
|
|
10913
10913
|
if (ne instanceof Error)
|
|
10914
10914
|
return ne;
|
|
10915
10915
|
}
|
|
@@ -10918,64 +10918,64 @@ function a0() {
|
|
|
10918
10918
|
return v(L);
|
|
10919
10919
|
}
|
|
10920
10920
|
function _() {
|
|
10921
|
-
function
|
|
10922
|
-
var K = L[
|
|
10921
|
+
function T(L, P, B, A, G) {
|
|
10922
|
+
var K = L[P];
|
|
10923
10923
|
if (!a(K)) {
|
|
10924
|
-
var Z =
|
|
10925
|
-
return new y("Invalid " + A + " `" + G + "` of type " + ("`" + Z + "` supplied to `" +
|
|
10924
|
+
var Z = V(K);
|
|
10925
|
+
return new y("Invalid " + A + " `" + G + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
10926
10926
|
}
|
|
10927
10927
|
return null;
|
|
10928
10928
|
}
|
|
10929
|
-
return v(
|
|
10929
|
+
return v(T);
|
|
10930
10930
|
}
|
|
10931
10931
|
function x() {
|
|
10932
|
-
function
|
|
10933
|
-
var K = L[
|
|
10932
|
+
function T(L, P, B, A, G) {
|
|
10933
|
+
var K = L[P];
|
|
10934
10934
|
if (!e.isValidElementType(K)) {
|
|
10935
|
-
var Z =
|
|
10936
|
-
return new y("Invalid " + A + " `" + G + "` of type " + ("`" + Z + "` supplied to `" +
|
|
10935
|
+
var Z = V(K);
|
|
10936
|
+
return new y("Invalid " + A + " `" + G + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
10937
10937
|
}
|
|
10938
10938
|
return null;
|
|
10939
10939
|
}
|
|
10940
|
-
return v(
|
|
10940
|
+
return v(T);
|
|
10941
10941
|
}
|
|
10942
|
-
function O(
|
|
10943
|
-
function L(
|
|
10944
|
-
if (!(
|
|
10945
|
-
var Z =
|
|
10942
|
+
function O(T) {
|
|
10943
|
+
function L(P, B, A, G, K) {
|
|
10944
|
+
if (!(P[B] instanceof T)) {
|
|
10945
|
+
var Z = T.name || f, X = Q(P[B]);
|
|
10946
10946
|
return new y("Invalid " + G + " `" + K + "` of type " + ("`" + X + "` supplied to `" + A + "`, expected ") + ("instance of `" + Z + "`."));
|
|
10947
10947
|
}
|
|
10948
10948
|
return null;
|
|
10949
10949
|
}
|
|
10950
10950
|
return v(L);
|
|
10951
10951
|
}
|
|
10952
|
-
function w(
|
|
10953
|
-
if (!Array.isArray(
|
|
10952
|
+
function w(T) {
|
|
10953
|
+
if (!Array.isArray(T))
|
|
10954
10954
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
10955
10955
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
10956
10956
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
10957
|
-
function L(
|
|
10958
|
-
for (var Z =
|
|
10959
|
-
if (m(Z,
|
|
10957
|
+
function L(P, B, A, G, K) {
|
|
10958
|
+
for (var Z = P[B], X = 0; X < T.length; X++)
|
|
10959
|
+
if (m(Z, T[X]))
|
|
10960
10960
|
return null;
|
|
10961
|
-
var re = JSON.stringify(
|
|
10962
|
-
var Ve = U(
|
|
10963
|
-
return Ve === "symbol" ? String(
|
|
10961
|
+
var re = JSON.stringify(T, function(Le, $) {
|
|
10962
|
+
var Ve = U($);
|
|
10963
|
+
return Ve === "symbol" ? String($) : $;
|
|
10964
10964
|
});
|
|
10965
10965
|
return new y("Invalid " + G + " `" + K + "` of value `" + String(Z) + "` " + ("supplied to `" + A + "`, expected one of " + re + "."));
|
|
10966
10966
|
}
|
|
10967
10967
|
return v(L);
|
|
10968
10968
|
}
|
|
10969
|
-
function T
|
|
10970
|
-
function L(
|
|
10971
|
-
if (typeof
|
|
10969
|
+
function S(T) {
|
|
10970
|
+
function L(P, B, A, G, K) {
|
|
10971
|
+
if (typeof T != "function")
|
|
10972
10972
|
return new y("Property `" + K + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
10973
|
-
var Z =
|
|
10973
|
+
var Z = P[B], X = V(Z);
|
|
10974
10974
|
if (X !== "object")
|
|
10975
10975
|
return new y("Invalid " + G + " `" + K + "` of type " + ("`" + X + "` supplied to `" + A + "`, expected an object."));
|
|
10976
10976
|
for (var re in Z)
|
|
10977
10977
|
if (n(Z, re)) {
|
|
10978
|
-
var ne =
|
|
10978
|
+
var ne = T(Z, re, A, G, K + "." + re, r);
|
|
10979
10979
|
if (ne instanceof Error)
|
|
10980
10980
|
return ne;
|
|
10981
10981
|
}
|
|
@@ -10983,46 +10983,46 @@ function a0() {
|
|
|
10983
10983
|
}
|
|
10984
10984
|
return v(L);
|
|
10985
10985
|
}
|
|
10986
|
-
function D(
|
|
10987
|
-
if (!Array.isArray(
|
|
10986
|
+
function D(T) {
|
|
10987
|
+
if (!Array.isArray(T))
|
|
10988
10988
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
10989
|
-
for (var L = 0; L <
|
|
10990
|
-
var
|
|
10991
|
-
if (typeof
|
|
10989
|
+
for (var L = 0; L < T.length; L++) {
|
|
10990
|
+
var P = T[L];
|
|
10991
|
+
if (typeof P != "function")
|
|
10992
10992
|
return o(
|
|
10993
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
10993
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(P) + " at index " + L + "."
|
|
10994
10994
|
), s;
|
|
10995
10995
|
}
|
|
10996
|
-
function
|
|
10997
|
-
for (var re = [], ne = 0; ne <
|
|
10998
|
-
var Le =
|
|
10999
|
-
if (
|
|
10996
|
+
function B(A, G, K, Z, X) {
|
|
10997
|
+
for (var re = [], ne = 0; ne < T.length; ne++) {
|
|
10998
|
+
var Le = T[ne], $ = Le(A, G, K, Z, X, r);
|
|
10999
|
+
if ($ == null)
|
|
11000
11000
|
return null;
|
|
11001
|
-
|
|
11001
|
+
$.data && n($.data, "expectedType") && re.push($.data.expectedType);
|
|
11002
11002
|
}
|
|
11003
11003
|
var Ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
|
|
11004
11004
|
return new y("Invalid " + Z + " `" + X + "` supplied to " + ("`" + K + "`" + Ve + "."));
|
|
11005
11005
|
}
|
|
11006
|
-
return v(
|
|
11006
|
+
return v(B);
|
|
11007
11007
|
}
|
|
11008
|
-
function
|
|
11009
|
-
function
|
|
11010
|
-
return W(L[
|
|
11008
|
+
function j() {
|
|
11009
|
+
function T(L, P, B, A, G) {
|
|
11010
|
+
return W(L[P]) ? null : new y("Invalid " + A + " `" + G + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
11011
11011
|
}
|
|
11012
|
-
return v(
|
|
11012
|
+
return v(T);
|
|
11013
11013
|
}
|
|
11014
|
-
function C(
|
|
11014
|
+
function C(T, L, P, B, A) {
|
|
11015
11015
|
return new y(
|
|
11016
|
-
(
|
|
11016
|
+
(T || "React class") + ": " + L + " type `" + P + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
11017
11017
|
);
|
|
11018
11018
|
}
|
|
11019
|
-
function
|
|
11020
|
-
function L(
|
|
11021
|
-
var Z =
|
|
11019
|
+
function N(T) {
|
|
11020
|
+
function L(P, B, A, G, K) {
|
|
11021
|
+
var Z = P[B], X = V(Z);
|
|
11022
11022
|
if (X !== "object")
|
|
11023
11023
|
return new y("Invalid " + G + " `" + K + "` of type `" + X + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
11024
|
-
for (var re in
|
|
11025
|
-
var ne =
|
|
11024
|
+
for (var re in T) {
|
|
11025
|
+
var ne = T[re];
|
|
11026
11026
|
if (typeof ne != "function")
|
|
11027
11027
|
return C(A, G, K, re, U(ne));
|
|
11028
11028
|
var Le = ne(Z, re, A, G, K + "." + re, r);
|
|
@@ -11033,52 +11033,52 @@ function a0() {
|
|
|
11033
11033
|
}
|
|
11034
11034
|
return v(L);
|
|
11035
11035
|
}
|
|
11036
|
-
function F(
|
|
11037
|
-
function L(
|
|
11038
|
-
var Z =
|
|
11036
|
+
function F(T) {
|
|
11037
|
+
function L(P, B, A, G, K) {
|
|
11038
|
+
var Z = P[B], X = V(Z);
|
|
11039
11039
|
if (X !== "object")
|
|
11040
11040
|
return new y("Invalid " + G + " `" + K + "` of type `" + X + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
11041
|
-
var re = t({},
|
|
11041
|
+
var re = t({}, P[B], T);
|
|
11042
11042
|
for (var ne in re) {
|
|
11043
|
-
var Le =
|
|
11044
|
-
if (n(
|
|
11043
|
+
var Le = T[ne];
|
|
11044
|
+
if (n(T, ne) && typeof Le != "function")
|
|
11045
11045
|
return C(A, G, K, ne, U(Le));
|
|
11046
11046
|
if (!Le)
|
|
11047
11047
|
return new y(
|
|
11048
|
-
"Invalid " + G + " `" + K + "` key `" + ne + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(
|
|
11049
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
11048
|
+
"Invalid " + G + " `" + K + "` key `" + ne + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(P[B], null, " ") + `
|
|
11049
|
+
Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
11050
11050
|
);
|
|
11051
|
-
var
|
|
11052
|
-
if (
|
|
11053
|
-
return
|
|
11051
|
+
var $ = Le(Z, ne, A, G, K + "." + ne, r);
|
|
11052
|
+
if ($)
|
|
11053
|
+
return $;
|
|
11054
11054
|
}
|
|
11055
11055
|
return null;
|
|
11056
11056
|
}
|
|
11057
11057
|
return v(L);
|
|
11058
11058
|
}
|
|
11059
|
-
function W(
|
|
11060
|
-
switch (typeof
|
|
11059
|
+
function W(T) {
|
|
11060
|
+
switch (typeof T) {
|
|
11061
11061
|
case "number":
|
|
11062
11062
|
case "string":
|
|
11063
11063
|
case "undefined":
|
|
11064
11064
|
return !0;
|
|
11065
11065
|
case "boolean":
|
|
11066
|
-
return !
|
|
11066
|
+
return !T;
|
|
11067
11067
|
case "object":
|
|
11068
|
-
if (Array.isArray(
|
|
11069
|
-
return
|
|
11070
|
-
if (
|
|
11068
|
+
if (Array.isArray(T))
|
|
11069
|
+
return T.every(W);
|
|
11070
|
+
if (T === null || a(T))
|
|
11071
11071
|
return !0;
|
|
11072
|
-
var L = h(
|
|
11072
|
+
var L = h(T);
|
|
11073
11073
|
if (L) {
|
|
11074
|
-
var
|
|
11075
|
-
if (L !==
|
|
11076
|
-
for (; !(
|
|
11077
|
-
if (!W(
|
|
11074
|
+
var P = L.call(T), B;
|
|
11075
|
+
if (L !== T.entries) {
|
|
11076
|
+
for (; !(B = P.next()).done; )
|
|
11077
|
+
if (!W(B.value))
|
|
11078
11078
|
return !1;
|
|
11079
11079
|
} else
|
|
11080
|
-
for (; !(
|
|
11081
|
-
var A =
|
|
11080
|
+
for (; !(B = P.next()).done; ) {
|
|
11081
|
+
var A = B.value;
|
|
11082
11082
|
if (A && !W(A[1]))
|
|
11083
11083
|
return !1;
|
|
11084
11084
|
}
|
|
@@ -11089,27 +11089,27 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
11089
11089
|
return !1;
|
|
11090
11090
|
}
|
|
11091
11091
|
}
|
|
11092
|
-
function
|
|
11093
|
-
return
|
|
11092
|
+
function I(T, L) {
|
|
11093
|
+
return T === "symbol" ? !0 : L ? L["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && L instanceof Symbol : !1;
|
|
11094
11094
|
}
|
|
11095
|
-
function
|
|
11096
|
-
var L = typeof
|
|
11097
|
-
return Array.isArray(
|
|
11095
|
+
function V(T) {
|
|
11096
|
+
var L = typeof T;
|
|
11097
|
+
return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : I(L, T) ? "symbol" : L;
|
|
11098
11098
|
}
|
|
11099
|
-
function U(
|
|
11100
|
-
if (typeof
|
|
11101
|
-
return "" +
|
|
11102
|
-
var L =
|
|
11099
|
+
function U(T) {
|
|
11100
|
+
if (typeof T > "u" || T === null)
|
|
11101
|
+
return "" + T;
|
|
11102
|
+
var L = V(T);
|
|
11103
11103
|
if (L === "object") {
|
|
11104
|
-
if (
|
|
11104
|
+
if (T instanceof Date)
|
|
11105
11105
|
return "date";
|
|
11106
|
-
if (
|
|
11106
|
+
if (T instanceof RegExp)
|
|
11107
11107
|
return "regexp";
|
|
11108
11108
|
}
|
|
11109
11109
|
return L;
|
|
11110
11110
|
}
|
|
11111
|
-
function
|
|
11112
|
-
var L = U(
|
|
11111
|
+
function ae(T) {
|
|
11112
|
+
var L = U(T);
|
|
11113
11113
|
switch (L) {
|
|
11114
11114
|
case "array":
|
|
11115
11115
|
case "object":
|
|
@@ -11122,8 +11122,8 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
11122
11122
|
return L;
|
|
11123
11123
|
}
|
|
11124
11124
|
}
|
|
11125
|
-
function Q(
|
|
11126
|
-
return !
|
|
11125
|
+
function Q(T) {
|
|
11126
|
+
return !T.constructor || !T.constructor.name ? f : T.constructor.name;
|
|
11127
11127
|
}
|
|
11128
11128
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
11129
11129
|
}, Vn;
|
|
@@ -11268,103 +11268,103 @@ function Zi() {
|
|
|
11268
11268
|
value: !0
|
|
11269
11269
|
}), be.addClassName = x, be.addEvent = s, be.addUserSelectStyles = b, be.createCSSTransform = p, be.createSVGTransform = m, be.getTouch = v, be.getTouchIdentifier = g, be.getTranslation = y, be.innerHeight = l, be.innerWidth = h, be.matchesSelector = i, be.matchesSelectorAndParentsTo = o, be.offsetXYFromParent = f, be.outerHeight = c, be.outerWidth = u, be.removeClassName = O, be.removeEvent = a, be.scheduleRemoveUserSelectStyles = E;
|
|
11270
11270
|
var e = pn(), t = r(l0());
|
|
11271
|
-
function r(w,
|
|
11272
|
-
if (typeof WeakMap == "function") var D = /* @__PURE__ */ new WeakMap(),
|
|
11273
|
-
return (r = function(C,
|
|
11274
|
-
if (!
|
|
11275
|
-
var F, W,
|
|
11276
|
-
if (C === null || typeof C != "object" && typeof C != "function") return
|
|
11277
|
-
if (F =
|
|
11271
|
+
function r(w, S) {
|
|
11272
|
+
if (typeof WeakMap == "function") var D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap();
|
|
11273
|
+
return (r = function(C, N) {
|
|
11274
|
+
if (!N && C && C.__esModule) return C;
|
|
11275
|
+
var F, W, I = { __proto__: null, default: C };
|
|
11276
|
+
if (C === null || typeof C != "object" && typeof C != "function") return I;
|
|
11277
|
+
if (F = N ? j : D) {
|
|
11278
11278
|
if (F.has(C)) return F.get(C);
|
|
11279
|
-
F.set(C,
|
|
11279
|
+
F.set(C, I);
|
|
11280
11280
|
}
|
|
11281
|
-
for (const
|
|
11282
|
-
return
|
|
11283
|
-
})(w,
|
|
11281
|
+
for (const V in C) V !== "default" && {}.hasOwnProperty.call(C, V) && ((W = (F = Object.defineProperty) && Object.getOwnPropertyDescriptor(C, V)) && (W.get || W.set) ? F(I, V, W) : I[V] = C[V]);
|
|
11282
|
+
return I;
|
|
11283
|
+
})(w, S);
|
|
11284
11284
|
}
|
|
11285
11285
|
let n = "";
|
|
11286
|
-
function i(w,
|
|
11286
|
+
function i(w, S) {
|
|
11287
11287
|
return n || (n = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(D) {
|
|
11288
11288
|
return (0, e.isFunction)(w[D]);
|
|
11289
|
-
})), (0, e.isFunction)(w[n]) ? w[n](
|
|
11289
|
+
})), (0, e.isFunction)(w[n]) ? w[n](S) : !1;
|
|
11290
11290
|
}
|
|
11291
|
-
function o(w,
|
|
11292
|
-
let
|
|
11291
|
+
function o(w, S, D) {
|
|
11292
|
+
let j = w;
|
|
11293
11293
|
do {
|
|
11294
|
-
if (i(
|
|
11295
|
-
if (
|
|
11296
|
-
|
|
11297
|
-
} while (
|
|
11294
|
+
if (i(j, S)) return !0;
|
|
11295
|
+
if (j === D) return !1;
|
|
11296
|
+
j = j.parentNode;
|
|
11297
|
+
} while (j);
|
|
11298
11298
|
return !1;
|
|
11299
11299
|
}
|
|
11300
|
-
function s(w,
|
|
11300
|
+
function s(w, S, D, j) {
|
|
11301
11301
|
if (!w) return;
|
|
11302
11302
|
const C = {
|
|
11303
11303
|
capture: !0,
|
|
11304
|
-
...
|
|
11304
|
+
...j
|
|
11305
11305
|
};
|
|
11306
|
-
w.addEventListener ? w.addEventListener(
|
|
11306
|
+
w.addEventListener ? w.addEventListener(S, D, C) : w.attachEvent ? w.attachEvent("on" + S, D) : w["on" + S] = D;
|
|
11307
11307
|
}
|
|
11308
|
-
function a(w,
|
|
11308
|
+
function a(w, S, D, j) {
|
|
11309
11309
|
if (!w) return;
|
|
11310
11310
|
const C = {
|
|
11311
11311
|
capture: !0,
|
|
11312
|
-
...
|
|
11312
|
+
...j
|
|
11313
11313
|
};
|
|
11314
|
-
w.removeEventListener ? w.removeEventListener(
|
|
11314
|
+
w.removeEventListener ? w.removeEventListener(S, D, C) : w.detachEvent ? w.detachEvent("on" + S, D) : w["on" + S] = null;
|
|
11315
11315
|
}
|
|
11316
11316
|
function c(w) {
|
|
11317
|
-
let
|
|
11317
|
+
let S = w.clientHeight;
|
|
11318
11318
|
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11319
|
-
return
|
|
11319
|
+
return S += (0, e.int)(D.borderTopWidth), S += (0, e.int)(D.borderBottomWidth), S;
|
|
11320
11320
|
}
|
|
11321
11321
|
function u(w) {
|
|
11322
|
-
let
|
|
11322
|
+
let S = w.clientWidth;
|
|
11323
11323
|
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11324
|
-
return
|
|
11324
|
+
return S += (0, e.int)(D.borderLeftWidth), S += (0, e.int)(D.borderRightWidth), S;
|
|
11325
11325
|
}
|
|
11326
11326
|
function l(w) {
|
|
11327
|
-
let
|
|
11327
|
+
let S = w.clientHeight;
|
|
11328
11328
|
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11329
|
-
return
|
|
11329
|
+
return S -= (0, e.int)(D.paddingTop), S -= (0, e.int)(D.paddingBottom), S;
|
|
11330
11330
|
}
|
|
11331
11331
|
function h(w) {
|
|
11332
|
-
let
|
|
11332
|
+
let S = w.clientWidth;
|
|
11333
11333
|
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11334
|
-
return
|
|
11334
|
+
return S -= (0, e.int)(D.paddingLeft), S -= (0, e.int)(D.paddingRight), S;
|
|
11335
11335
|
}
|
|
11336
|
-
function f(w,
|
|
11337
|
-
const C =
|
|
11336
|
+
function f(w, S, D) {
|
|
11337
|
+
const C = S === S.ownerDocument.body ? {
|
|
11338
11338
|
left: 0,
|
|
11339
11339
|
top: 0
|
|
11340
|
-
} :
|
|
11340
|
+
} : S.getBoundingClientRect(), N = (w.clientX + S.scrollLeft - C.left) / D, F = (w.clientY + S.scrollTop - C.top) / D;
|
|
11341
11341
|
return {
|
|
11342
|
-
x:
|
|
11342
|
+
x: N,
|
|
11343
11343
|
y: F
|
|
11344
11344
|
};
|
|
11345
11345
|
}
|
|
11346
|
-
function p(w,
|
|
11347
|
-
const D = y(w,
|
|
11346
|
+
function p(w, S) {
|
|
11347
|
+
const D = y(w, S, "px");
|
|
11348
11348
|
return {
|
|
11349
11349
|
[(0, t.browserPrefixToKey)("transform", t.default)]: D
|
|
11350
11350
|
};
|
|
11351
11351
|
}
|
|
11352
|
-
function m(w,
|
|
11353
|
-
return y(w,
|
|
11352
|
+
function m(w, S) {
|
|
11353
|
+
return y(w, S, "");
|
|
11354
11354
|
}
|
|
11355
|
-
function y(w,
|
|
11355
|
+
function y(w, S, D) {
|
|
11356
11356
|
let {
|
|
11357
|
-
x:
|
|
11357
|
+
x: j,
|
|
11358
11358
|
y: C
|
|
11359
|
-
} = w,
|
|
11360
|
-
if (
|
|
11361
|
-
const F = `${typeof
|
|
11362
|
-
|
|
11359
|
+
} = w, N = `translate(${j}${D},${C}${D})`;
|
|
11360
|
+
if (S) {
|
|
11361
|
+
const F = `${typeof S.x == "string" ? S.x : S.x + D}`, W = `${typeof S.y == "string" ? S.y : S.y + D}`;
|
|
11362
|
+
N = `translate(${F}, ${W})` + N;
|
|
11363
11363
|
}
|
|
11364
|
-
return
|
|
11364
|
+
return N;
|
|
11365
11365
|
}
|
|
11366
|
-
function v(w,
|
|
11367
|
-
return w.targetTouches && (0, e.findInArray)(w.targetTouches, (D) =>
|
|
11366
|
+
function v(w, S) {
|
|
11367
|
+
return w.targetTouches && (0, e.findInArray)(w.targetTouches, (D) => S === D.identifier) || w.changedTouches && (0, e.findInArray)(w.changedTouches, (D) => S === D.identifier);
|
|
11368
11368
|
}
|
|
11369
11369
|
function g(w) {
|
|
11370
11370
|
if (w.targetTouches && w.targetTouches[0]) return w.targetTouches[0].identifier;
|
|
@@ -11372,10 +11372,10 @@ function Zi() {
|
|
|
11372
11372
|
}
|
|
11373
11373
|
function b(w) {
|
|
11374
11374
|
if (!w) return;
|
|
11375
|
-
let
|
|
11376
|
-
|
|
11377
|
-
`,
|
|
11378
|
-
`, w.getElementsByTagName("head")[0].appendChild(
|
|
11375
|
+
let S = w.getElementById("react-draggable-style-el");
|
|
11376
|
+
S || (S = w.createElement("style"), S.type = "text/css", S.id = "react-draggable-style-el", S.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
11377
|
+
`, S.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
11378
|
+
`, w.getElementsByTagName("head")[0].appendChild(S)), w.body && x(w.body, "react-draggable-transparent-selection");
|
|
11379
11379
|
}
|
|
11380
11380
|
function E(w) {
|
|
11381
11381
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
@@ -11388,17 +11388,17 @@ function Zi() {
|
|
|
11388
11388
|
if (w.body && O(w.body, "react-draggable-transparent-selection"), w.selection)
|
|
11389
11389
|
w.selection.empty();
|
|
11390
11390
|
else {
|
|
11391
|
-
const
|
|
11392
|
-
|
|
11391
|
+
const S = (w.defaultView || window).getSelection();
|
|
11392
|
+
S && S.type !== "Caret" && S.removeAllRanges();
|
|
11393
11393
|
}
|
|
11394
11394
|
} catch {
|
|
11395
11395
|
}
|
|
11396
11396
|
}
|
|
11397
|
-
function x(w,
|
|
11398
|
-
w.classList ? w.classList.add(
|
|
11397
|
+
function x(w, S) {
|
|
11398
|
+
w.classList ? w.classList.add(S) : w.className.match(new RegExp(`(?:^|\\s)${S}(?!\\S)`)) || (w.className += ` ${S}`);
|
|
11399
11399
|
}
|
|
11400
|
-
function O(w,
|
|
11401
|
-
w.classList ? w.classList.remove(
|
|
11400
|
+
function O(w, S) {
|
|
11401
|
+
w.classList ? w.classList.remove(S) : w.className = w.className.replace(new RegExp(`(?:^|\\s)${S}(?!\\S)`, "g"), "");
|
|
11402
11402
|
}
|
|
11403
11403
|
return be;
|
|
11404
11404
|
}
|
|
@@ -11527,7 +11527,7 @@ function f0() {
|
|
|
11527
11527
|
if (x.has(E)) return x.get(E);
|
|
11528
11528
|
x.set(E, w);
|
|
11529
11529
|
}
|
|
11530
|
-
for (const
|
|
11530
|
+
for (const S in E) S !== "default" && {}.hasOwnProperty.call(E, S) && ((O = (x = Object.defineProperty) && Object.getOwnPropertyDescriptor(E, S)) && (O.get || O.set) ? x(w, S, O) : w[S] = E[S]);
|
|
11531
11531
|
return w;
|
|
11532
11532
|
})(y, v);
|
|
11533
11533
|
}
|
|
@@ -11614,8 +11614,8 @@ function f0() {
|
|
|
11614
11614
|
y: E
|
|
11615
11615
|
} = g;
|
|
11616
11616
|
if (Array.isArray(this.props.grid)) {
|
|
11617
|
-
let w = b - this.lastX || 0,
|
|
11618
|
-
[w,
|
|
11617
|
+
let w = b - this.lastX || 0, S = E - this.lastY || 0;
|
|
11618
|
+
[w, S] = (0, i.snapToGrid)(this.props.grid, w, S), b = this.lastX + w, E = this.lastY + S;
|
|
11619
11619
|
}
|
|
11620
11620
|
const _ = (0, i.createCoreData)(this, b, E);
|
|
11621
11621
|
if (this.props.onStop(v, _) === !1 || this.mounted === !1) return !1;
|
|
@@ -11827,13 +11827,13 @@ function h0() {
|
|
|
11827
11827
|
if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
11828
11828
|
return (h = function(x, O) {
|
|
11829
11829
|
if (!O && x && x.__esModule) return x;
|
|
11830
|
-
var w,
|
|
11830
|
+
var w, S, D = { __proto__: null, default: x };
|
|
11831
11831
|
if (x === null || typeof x != "object" && typeof x != "function") return D;
|
|
11832
11832
|
if (w = O ? _ : E) {
|
|
11833
11833
|
if (w.has(x)) return w.get(x);
|
|
11834
11834
|
w.set(x, D);
|
|
11835
11835
|
}
|
|
11836
|
-
for (const
|
|
11836
|
+
for (const j in x) j !== "default" && {}.hasOwnProperty.call(x, j) && ((S = (w = Object.defineProperty) && Object.getOwnPropertyDescriptor(x, j)) && (S.get || S.set) ? w(D, j, S) : D[j] = x[j]);
|
|
11837
11837
|
return D;
|
|
11838
11838
|
})(g, b);
|
|
11839
11839
|
}
|
|
@@ -11901,12 +11901,12 @@ function h0() {
|
|
|
11901
11901
|
};
|
|
11902
11902
|
if (this.props.bounds) {
|
|
11903
11903
|
const {
|
|
11904
|
-
x:
|
|
11904
|
+
x: S,
|
|
11905
11905
|
y: D
|
|
11906
11906
|
} = O;
|
|
11907
11907
|
O.x += this.state.slackX, O.y += this.state.slackY;
|
|
11908
|
-
const [
|
|
11909
|
-
O.x =
|
|
11908
|
+
const [j, C] = (0, s.getBoundPosition)(this, O.x, O.y);
|
|
11909
|
+
O.x = j, O.y = C, O.slackX = this.state.slackX + (S - O.x), O.slackY = this.state.slackY + (D - O.y), x.x = O.x, x.y = O.y, x.deltaX = O.x - this.state.x, x.deltaY = O.y - this.state.y;
|
|
11910
11910
|
}
|
|
11911
11911
|
if (this.props.onDrag(E, x) === !1) return !1;
|
|
11912
11912
|
this.setState(O);
|
|
@@ -11920,10 +11920,10 @@ function h0() {
|
|
|
11920
11920
|
};
|
|
11921
11921
|
if (!!this.props.position) {
|
|
11922
11922
|
const {
|
|
11923
|
-
x:
|
|
11923
|
+
x: S,
|
|
11924
11924
|
y: D
|
|
11925
11925
|
} = this.props.position;
|
|
11926
|
-
O.x =
|
|
11926
|
+
O.x = S, O.y = D;
|
|
11927
11927
|
}
|
|
11928
11928
|
this.setState(O);
|
|
11929
11929
|
}), this.state = {
|
|
@@ -11968,25 +11968,25 @@ function h0() {
|
|
|
11968
11968
|
defaultPosition: x,
|
|
11969
11969
|
defaultClassName: O,
|
|
11970
11970
|
defaultClassNameDragging: w,
|
|
11971
|
-
defaultClassNameDragged:
|
|
11971
|
+
defaultClassNameDragged: S,
|
|
11972
11972
|
position: D,
|
|
11973
|
-
positionOffset:
|
|
11973
|
+
positionOffset: j,
|
|
11974
11974
|
scale: C,
|
|
11975
|
-
...
|
|
11975
|
+
...N
|
|
11976
11976
|
} = this.props;
|
|
11977
11977
|
let F = {}, W = null;
|
|
11978
|
-
const
|
|
11978
|
+
const V = !!!D || this.state.dragging, U = D || x, ae = {
|
|
11979
11979
|
// Set left if horizontal drag is enabled
|
|
11980
|
-
x: (0, s.canDragX)(this) &&
|
|
11980
|
+
x: (0, s.canDragX)(this) && V ? this.state.x : U.x,
|
|
11981
11981
|
// Set top if vertical drag is enabled
|
|
11982
|
-
y: (0, s.canDragY)(this) &&
|
|
11982
|
+
y: (0, s.canDragY)(this) && V ? this.state.y : U.y
|
|
11983
11983
|
};
|
|
11984
|
-
this.state.isElementSVG ? W = (0, o.createSVGTransform)(
|
|
11984
|
+
this.state.isElementSVG ? W = (0, o.createSVGTransform)(ae, j) : F = (0, o.createCSSTransform)(ae, j);
|
|
11985
11985
|
const Q = (0, i.clsx)(_.props.className || "", O, {
|
|
11986
11986
|
[w]: this.state.dragging,
|
|
11987
|
-
[
|
|
11987
|
+
[S]: this.state.dragged
|
|
11988
11988
|
});
|
|
11989
|
-
return /* @__PURE__ */ t.createElement(c.default, f({},
|
|
11989
|
+
return /* @__PURE__ */ t.createElement(c.default, f({}, N, {
|
|
11990
11990
|
onStart: this.onDragStart,
|
|
11991
11991
|
onDrag: this.onDrag,
|
|
11992
11992
|
onStop: this.onDragStop
|
|
@@ -12283,25 +12283,25 @@ function y0({
|
|
|
12283
12283
|
onLeave: s,
|
|
12284
12284
|
verticalMargin: a
|
|
12285
12285
|
}) {
|
|
12286
|
-
const c = J((
|
|
12287
|
-
if (
|
|
12288
|
-
const C = h.current.getBoundingClientRect(),
|
|
12286
|
+
const c = J((j) => j.marginWidth), u = 10, l = ur((j) => j.showModal), h = Te(null), f = te((j) => j.getTrackIndex), p = te((j) => j.tracks.length), m = te((j) => j.shiftTracks), y = f(t), v = y > 0, g = y < p - 1, b = (j) => {
|
|
12287
|
+
if (j.stopPropagation(), h.current) {
|
|
12288
|
+
const C = h.current.getBoundingClientRect(), N = {
|
|
12289
12289
|
x: C.left,
|
|
12290
12290
|
y: C.top - 100
|
|
12291
12291
|
};
|
|
12292
|
-
l(t,
|
|
12292
|
+
l(t, N);
|
|
12293
12293
|
}
|
|
12294
|
-
}, E = (
|
|
12295
|
-
|
|
12296
|
-
}, _ = (
|
|
12297
|
-
|
|
12298
|
-
}, x = te((
|
|
12294
|
+
}, E = (j) => {
|
|
12295
|
+
j.stopPropagation(), m(t, 0);
|
|
12296
|
+
}, _ = (j) => {
|
|
12297
|
+
j.stopPropagation(), m(t, -1);
|
|
12298
|
+
}, x = te((j) => {
|
|
12299
12299
|
var C;
|
|
12300
|
-
return (C =
|
|
12301
|
-
}), w = te((
|
|
12300
|
+
return (C = j.getTrack(t)) == null ? void 0 : C.range;
|
|
12301
|
+
}), w = te((j) => {
|
|
12302
12302
|
var C;
|
|
12303
|
-
return (C =
|
|
12304
|
-
}) || x,
|
|
12303
|
+
return (C = j.getTrack(t)) == null ? void 0 : C.customRange;
|
|
12304
|
+
}) || x, S = De((j) => j.background), D = De((j) => j.text);
|
|
12305
12305
|
return /* @__PURE__ */ d.jsxs(
|
|
12306
12306
|
"g",
|
|
12307
12307
|
{
|
|
@@ -12319,7 +12319,7 @@ function y0({
|
|
|
12319
12319
|
y: 0,
|
|
12320
12320
|
width: c,
|
|
12321
12321
|
height: r,
|
|
12322
|
-
fill:
|
|
12322
|
+
fill: S,
|
|
12323
12323
|
style: { cursor: t === "ruler" ? "default" : i ? "grabbing" : "grab" }
|
|
12324
12324
|
}
|
|
12325
12325
|
),
|
|
@@ -12391,7 +12391,7 @@ function Vs({
|
|
|
12391
12391
|
}
|
|
12392
12392
|
const xe = 80;
|
|
12393
12393
|
function b0() {
|
|
12394
|
-
const e = J((h) => h.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = J((h) => h.getExpandedDomain), i = J((h) => h.getDomain), [o, s] = ce(n()), a = We((h) => h.fetching), { x: c } =
|
|
12394
|
+
const e = J((h) => h.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = J((h) => h.getExpandedDomain), i = J((h) => h.getDomain), [o, s] = ce(n()), a = We((h) => h.fetching), { x: c } = mt(r);
|
|
12395
12395
|
pe(() => {
|
|
12396
12396
|
a || s(n());
|
|
12397
12397
|
}, [a, n]);
|
|
@@ -12578,18 +12578,18 @@ function C0({
|
|
|
12578
12578
|
}
|
|
12579
12579
|
function Yc({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
12580
12580
|
const [o, s] = ce(!1), [a, c] = ce(!1), u = J((C) => C.marginWidth), l = J((C) => C.browserWidth), h = Y(() => l - u, [l, u]), f = te((C) => C.getDimensions), p = te((C) => C.createShortLabel), m = te((C) => {
|
|
12581
|
-
var
|
|
12582
|
-
return (
|
|
12581
|
+
var N;
|
|
12582
|
+
return (N = C.getTrack(r)) == null ? void 0 : N.color;
|
|
12583
12583
|
}) || "", y = te((C) => {
|
|
12584
|
-
var
|
|
12585
|
-
return (
|
|
12586
|
-
}) || "", { trackMargin: v, titleSize: g, totalVerticalMargin: b, wrapperHeight: E } = f(r), _ = p(r), x = E / 3, O = Mt((C) => C.setContextMenu), w = De((C) => C.text),
|
|
12584
|
+
var N;
|
|
12585
|
+
return (N = C.getTrack(r)) == null ? void 0 : N.title;
|
|
12586
|
+
}) || "", { trackMargin: v, titleSize: g, totalVerticalMargin: b, wrapperHeight: E } = f(r), _ = p(r), x = E / 3, O = Mt((C) => C.setContextMenu), w = De((C) => C.text), S = De((C) => C.background), D = Be(() => {
|
|
12587
12587
|
c(!0);
|
|
12588
|
-
}, []),
|
|
12588
|
+
}, []), j = Be(() => {
|
|
12589
12589
|
c(!1);
|
|
12590
12590
|
}, []);
|
|
12591
12591
|
return /* @__PURE__ */ d.jsx("g", { id: `wrapper-${r}`, transform: t, children: /* @__PURE__ */ d.jsxs(E0, { id: r, setSwapping: s, children: [
|
|
12592
|
-
/* @__PURE__ */ d.jsx("rect", { width: l, height: E, fill:
|
|
12592
|
+
/* @__PURE__ */ d.jsx("rect", { width: l, height: E, fill: S, style: { pointerEvents: "none" } }),
|
|
12593
12593
|
n && !i && /* @__PURE__ */ d.jsx(
|
|
12594
12594
|
"g",
|
|
12595
12595
|
{
|
|
@@ -12602,7 +12602,7 @@ function Yc({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12602
12602
|
{
|
|
12603
12603
|
transform: `translate(${u + (h - x) / 2},${(E - x) / 2})`,
|
|
12604
12604
|
children: [
|
|
12605
|
-
/* @__PURE__ */ d.jsx(C0, { outline: w, inside:
|
|
12605
|
+
/* @__PURE__ */ d.jsx(C0, { outline: w, inside: S, width: x, height: x }),
|
|
12606
12606
|
/* @__PURE__ */ d.jsx("g", { transform: `translate(${x / 2},${x + 10})`, children: /* @__PURE__ */ d.jsx("text", { fill: w, textAnchor: "middle", fontSize: `${g}px`, children: i }) })
|
|
12607
12607
|
]
|
|
12608
12608
|
}
|
|
@@ -12636,11 +12636,11 @@ function Yc({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12636
12636
|
id: r,
|
|
12637
12637
|
marginLabel: _,
|
|
12638
12638
|
height: E,
|
|
12639
|
-
color: m ||
|
|
12639
|
+
color: m || S,
|
|
12640
12640
|
swapping: o,
|
|
12641
12641
|
verticalMargin: b,
|
|
12642
12642
|
onHover: D,
|
|
12643
|
-
onLeave:
|
|
12643
|
+
onLeave: j
|
|
12644
12644
|
}
|
|
12645
12645
|
),
|
|
12646
12646
|
a && /* @__PURE__ */ d.jsx(
|
|
@@ -12673,7 +12673,7 @@ function D0({
|
|
|
12673
12673
|
onLeave: a,
|
|
12674
12674
|
tooltip: c
|
|
12675
12675
|
}) {
|
|
12676
|
-
const { totalWidth: u, sideWidth: l } = n, h = De((E) => E.background), { x: f, reverseX: p } =
|
|
12676
|
+
const { totalWidth: u, sideWidth: l } = n, h = De((E) => E.background), { x: f, reverseX: p } = mt(u), m = Y(() => {
|
|
12677
12677
|
const E = t ? [...t] : [];
|
|
12678
12678
|
return Kd(E, f);
|
|
12679
12679
|
}, [t, f]), y = vn(m.length, e), { handleClick: v, handleHover: g, handleLeave: b } = He({
|
|
@@ -12697,7 +12697,7 @@ function D0({
|
|
|
12697
12697
|
y: y * 0.2,
|
|
12698
12698
|
fill: x.color || i,
|
|
12699
12699
|
onClick: () => v(w),
|
|
12700
|
-
onMouseOver: (
|
|
12700
|
+
onMouseOver: (S) => g(w, w.name || "", S),
|
|
12701
12701
|
onMouseOut: () => b(w)
|
|
12702
12702
|
},
|
|
12703
12703
|
`${e}_${O}`
|
|
@@ -12828,9 +12828,9 @@ function A0({
|
|
|
12828
12828
|
onLeave: c,
|
|
12829
12829
|
tooltip: u
|
|
12830
12830
|
}) {
|
|
12831
|
-
const { totalWidth: l, sideWidth: h } = i, { x: f, reverseX: p } =
|
|
12832
|
-
() => v.map((w,
|
|
12833
|
-
y:
|
|
12831
|
+
const { totalWidth: l, sideWidth: h } = i, { x: f, reverseX: p } = mt(l), m = 10, y = Y(() => t == null ? void 0 : t.map((w) => M0(w, r)), [t, r]), v = Y(() => dn(y, f, m), [y, f, m]), g = vn(v.length, e), b = Y(
|
|
12832
|
+
() => v.map((w, S) => ({
|
|
12833
|
+
y: S * g,
|
|
12834
12834
|
transcripts: w.map((D) => Gc(D, f, g, l))
|
|
12835
12835
|
})),
|
|
12836
12836
|
[v, g, l, f]
|
|
@@ -12843,14 +12843,14 @@ function A0({
|
|
|
12843
12843
|
return /* @__PURE__ */ d.jsxs("g", { width: l, height: n, transform: `translate(-${h},0)`, children: [
|
|
12844
12844
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: n, fill: E }),
|
|
12845
12845
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Ot, { id: e, width: l, height: v.length * g }) }),
|
|
12846
|
-
b.map((w,
|
|
12846
|
+
b.map((w, S) => /* @__PURE__ */ d.jsx(
|
|
12847
12847
|
"g",
|
|
12848
12848
|
{
|
|
12849
12849
|
style: { clipPath: `url(#${e})` },
|
|
12850
12850
|
transform: `translate(0,${w.y})`,
|
|
12851
12851
|
height: g,
|
|
12852
12852
|
width: l,
|
|
12853
|
-
children: w.transcripts.map((D,
|
|
12853
|
+
children: w.transcripts.map((D, j) => {
|
|
12854
12854
|
const C = Xc(D.transcript, p);
|
|
12855
12855
|
return /* @__PURE__ */ d.jsxs("g", { children: [
|
|
12856
12856
|
/* @__PURE__ */ d.jsx(
|
|
@@ -12862,7 +12862,7 @@ function A0({
|
|
|
12862
12862
|
d: D.paths.introns + D.paths.exons,
|
|
12863
12863
|
style: { cursor: s ? "pointer" : "default" },
|
|
12864
12864
|
onClick: () => _(C),
|
|
12865
|
-
onMouseOver: (
|
|
12865
|
+
onMouseOver: (N) => x(C, C.name || "", N),
|
|
12866
12866
|
onMouseOut: () => O(C)
|
|
12867
12867
|
}
|
|
12868
12868
|
),
|
|
@@ -12885,10 +12885,10 @@ function A0({
|
|
|
12885
12885
|
children: D.transcript.name
|
|
12886
12886
|
}
|
|
12887
12887
|
)
|
|
12888
|
-
] }, `transcript_${
|
|
12888
|
+
] }, `transcript_${j}`);
|
|
12889
12889
|
})
|
|
12890
12890
|
},
|
|
12891
|
-
`row_${
|
|
12891
|
+
`row_${S}`
|
|
12892
12892
|
))
|
|
12893
12893
|
] });
|
|
12894
12894
|
}
|
|
@@ -12903,10 +12903,10 @@ function F0({
|
|
|
12903
12903
|
onLeave: a,
|
|
12904
12904
|
tooltip: c
|
|
12905
12905
|
}) {
|
|
12906
|
-
const { totalWidth: u, sideWidth: l } = n, { x: h, reverseX: f } =
|
|
12906
|
+
const { totalWidth: u, sideWidth: l } = n, { x: h, reverseX: f } = mt(u), p = 10, m = Y(() => I0(t || []), [t]), y = Y(() => dn(m, h, p), [m, h, p]), v = vn(y.length, e), g = Y(
|
|
12907
12907
|
() => y.map((O, w) => ({
|
|
12908
12908
|
y: w * v,
|
|
12909
|
-
transcripts: O.map((
|
|
12909
|
+
transcripts: O.map((S) => Gc(S, h, v, u))
|
|
12910
12910
|
})),
|
|
12911
12911
|
[y, v, u, h]
|
|
12912
12912
|
), b = De((O) => O.background), { handleClick: E, handleHover: _, handleLeave: x } = He({
|
|
@@ -12925,28 +12925,28 @@ function F0({
|
|
|
12925
12925
|
transform: `translate(0,${O.y})`,
|
|
12926
12926
|
height: v,
|
|
12927
12927
|
width: u,
|
|
12928
|
-
children: O.transcripts.map((
|
|
12929
|
-
const
|
|
12928
|
+
children: O.transcripts.map((S, D) => {
|
|
12929
|
+
const j = Xc(S.transcript, f);
|
|
12930
12930
|
return /* @__PURE__ */ d.jsxs("g", { children: [
|
|
12931
12931
|
/* @__PURE__ */ d.jsx(
|
|
12932
12932
|
"path",
|
|
12933
12933
|
{
|
|
12934
|
-
stroke:
|
|
12935
|
-
fill:
|
|
12934
|
+
stroke: S.transcript.color || i,
|
|
12935
|
+
fill: S.transcript.color || i,
|
|
12936
12936
|
strokeWidth: v / 16,
|
|
12937
|
-
d:
|
|
12937
|
+
d: S.paths.introns + S.paths.exons,
|
|
12938
12938
|
style: { cursor: o ? "pointer" : "default" },
|
|
12939
|
-
onClick: () => E(
|
|
12940
|
-
onMouseOver: (C) => _(
|
|
12941
|
-
onMouseOut: () => x(
|
|
12939
|
+
onClick: () => E(j),
|
|
12940
|
+
onMouseOver: (C) => _(j, j.name || "", C),
|
|
12941
|
+
onMouseOut: () => x(j)
|
|
12942
12942
|
}
|
|
12943
12943
|
),
|
|
12944
12944
|
/* @__PURE__ */ d.jsx(
|
|
12945
12945
|
"text",
|
|
12946
12946
|
{
|
|
12947
|
-
fill:
|
|
12947
|
+
fill: S.transcript.color || i,
|
|
12948
12948
|
fontSize: p,
|
|
12949
|
-
x:
|
|
12949
|
+
x: S.transcript.coordinates.end + 5,
|
|
12950
12950
|
y: v / 2,
|
|
12951
12951
|
dominantBaseline: "middle",
|
|
12952
12952
|
style: {
|
|
@@ -12957,7 +12957,7 @@ function F0({
|
|
|
12957
12957
|
msUserSelect: "none",
|
|
12958
12958
|
userSelect: "none"
|
|
12959
12959
|
},
|
|
12960
|
-
children:
|
|
12960
|
+
children: S.transcript.name
|
|
12961
12961
|
}
|
|
12962
12962
|
)
|
|
12963
12963
|
] }, `transcript_${D}`);
|
|
@@ -13736,7 +13736,7 @@ const am = ({
|
|
|
13736
13736
|
svgRef: x
|
|
13737
13737
|
}) => {
|
|
13738
13738
|
let O = null;
|
|
13739
|
-
const w = (t || n) && !p && !_ ? !m : !1,
|
|
13739
|
+
const w = (t || n) && !p && !_ ? !m : !1, S = w ? 0 : (p || 0) / a.length;
|
|
13740
13740
|
if (!e && !t && n) {
|
|
13741
13741
|
const Q = (E ? Em : xm)(
|
|
13742
13742
|
a,
|
|
@@ -13746,35 +13746,35 @@ const am = ({
|
|
|
13746
13746
|
}
|
|
13747
13747
|
const D = w && t && t.map(
|
|
13748
13748
|
(Q) => Q.reduce(
|
|
13749
|
-
(
|
|
13749
|
+
(T, L, P) => P === void 0 ? T : L + T,
|
|
13750
13750
|
0
|
|
13751
13751
|
)
|
|
13752
13752
|
).map(
|
|
13753
13753
|
(Q) => Q === 0 ? 0 : (a.length - 1) / (2 * Math.log(2) * Q)
|
|
13754
13754
|
);
|
|
13755
13755
|
if (!e && t && (e = t.map((Q) => {
|
|
13756
|
-
const
|
|
13757
|
-
return Q.map((L) => (L +
|
|
13756
|
+
const T = (O && _ ? O : Q.reduce((L, P) => L + P, 0) + S * a.length) || 1;
|
|
13757
|
+
return Q.map((L) => (L + S) / T);
|
|
13758
13758
|
})), !e || e && (e.length === 0 || e[0].length === 0))
|
|
13759
13759
|
return /* @__PURE__ */ d.jsx("div", {});
|
|
13760
|
-
let
|
|
13761
|
-
f || (f = e[0].map((Q) => 1 /
|
|
13760
|
+
let j = e[0].length;
|
|
13761
|
+
f || (f = e[0].map((Q) => 1 / j));
|
|
13762
13762
|
let C = r || (i !== Wn ? e.map(
|
|
13763
|
-
(Q,
|
|
13763
|
+
(Q, T) => hm(f)(Q, D ? D[T] : void 0)
|
|
13764
13764
|
) : e.map(
|
|
13765
|
-
(Q) => Q.map((
|
|
13765
|
+
(Q) => Q.map((T) => T * Math.log2(j))
|
|
13766
13766
|
));
|
|
13767
|
-
const
|
|
13767
|
+
const N = i === Wn ? [Math.log2(j)] : f.map((Q) => Math.log2(1 / (Q || 0.01))), F = y || Math.max(...N), W = Math.min(...N), I = W < 0 ? F / (F - W) : 1;
|
|
13768
13768
|
l = l && !isNaN(parseFloat(l.toString())) && isFinite(l) ? l : 1;
|
|
13769
|
-
let
|
|
13770
|
-
c =
|
|
13771
|
-
let U = C.length * c + 80,
|
|
13772
|
-
return u && (U >
|
|
13769
|
+
let V = 100 * F;
|
|
13770
|
+
c = V / 6 * (c || 1);
|
|
13771
|
+
let U = C.length * c + 80, ae = V + 18 * (lm(l, C.length) + 1);
|
|
13772
|
+
return u && (U > ae ? s = u : o = u), /* @__PURE__ */ d.jsxs(
|
|
13773
13773
|
"svg",
|
|
13774
13774
|
{
|
|
13775
13775
|
width: s,
|
|
13776
13776
|
height: o,
|
|
13777
|
-
viewBox: "0 0 " + U + " " +
|
|
13777
|
+
viewBox: "0 0 " + U + " " + ae,
|
|
13778
13778
|
ref: x,
|
|
13779
13779
|
children: [
|
|
13780
13780
|
h && /* @__PURE__ */ d.jsx(
|
|
@@ -13784,7 +13784,7 @@ const am = ({
|
|
|
13784
13784
|
maxrange: l + e.length,
|
|
13785
13785
|
xstart: 70,
|
|
13786
13786
|
width: U,
|
|
13787
|
-
height:
|
|
13787
|
+
height: V,
|
|
13788
13788
|
xaxis_y: 10,
|
|
13789
13789
|
numberofgridlines: 10 * C.length
|
|
13790
13790
|
}
|
|
@@ -13792,7 +13792,7 @@ const am = ({
|
|
|
13792
13792
|
/* @__PURE__ */ d.jsx(
|
|
13793
13793
|
mm,
|
|
13794
13794
|
{
|
|
13795
|
-
transform: "translate(80," + (
|
|
13795
|
+
transform: "translate(80," + (V + 20) + ")",
|
|
13796
13796
|
n: C.length,
|
|
13797
13797
|
glyphWidth: c,
|
|
13798
13798
|
startPos: l
|
|
@@ -13803,7 +13803,7 @@ const am = ({
|
|
|
13803
13803
|
{
|
|
13804
13804
|
transform: "translate(0,10)",
|
|
13805
13805
|
width: 65,
|
|
13806
|
-
height:
|
|
13806
|
+
height: V,
|
|
13807
13807
|
ticks: 2
|
|
13808
13808
|
}
|
|
13809
13809
|
) : /* @__PURE__ */ d.jsx(
|
|
@@ -13811,9 +13811,9 @@ const am = ({
|
|
|
13811
13811
|
{
|
|
13812
13812
|
transform: "translate(0,10)",
|
|
13813
13813
|
width: 65,
|
|
13814
|
-
height:
|
|
13814
|
+
height: V,
|
|
13815
13815
|
bits: F,
|
|
13816
|
-
zeroPoint:
|
|
13816
|
+
zeroPoint: I
|
|
13817
13817
|
}
|
|
13818
13818
|
),
|
|
13819
13819
|
/* @__PURE__ */ d.jsx("g", { transform: "translate(80,10)", children: /* @__PURE__ */ d.jsx(
|
|
@@ -13821,7 +13821,7 @@ const am = ({
|
|
|
13821
13821
|
{
|
|
13822
13822
|
values: C,
|
|
13823
13823
|
glyphWidth: c,
|
|
13824
|
-
stackHeight:
|
|
13824
|
+
stackHeight: V,
|
|
13825
13825
|
alphabet: a,
|
|
13826
13826
|
onSymbolMouseOver: v,
|
|
13827
13827
|
onSymbolMouseOut: g,
|
|
@@ -13978,7 +13978,7 @@ function Dm({
|
|
|
13978
13978
|
onLeave: c,
|
|
13979
13979
|
tooltip: u
|
|
13980
13980
|
}) {
|
|
13981
|
-
const { totalWidth: l, sideWidth: h } = n, { x: f } =
|
|
13981
|
+
const { totalWidth: l, sideWidth: h } = n, { x: f } = mt(l), p = Y(() => Xs(t.occurrenceRect, f), [t]), m = Y(() => Xs(t.peaks, f), [t]), { handleClick: y, handleHover: v, handleLeave: g } = He({
|
|
13982
13982
|
onClick: s,
|
|
13983
13983
|
onHover: a,
|
|
13984
13984
|
onLeave: c,
|
|
@@ -14030,7 +14030,7 @@ function Lm({
|
|
|
14030
14030
|
onLeave: c,
|
|
14031
14031
|
tooltip: u
|
|
14032
14032
|
}) {
|
|
14033
|
-
const { totalWidth: l, sideWidth: h } = n, { x: f } =
|
|
14033
|
+
const { totalWidth: l, sideWidth: h } = n, { x: f } = mt(l), p = Y(() => Gs(t.occurrenceRect, f), [t, f]), m = Y(() => Gs(t.peaks, f), [t, f]), y = vn(p.length, e), { handleClick: v, handleHover: g, handleLeave: b } = He({
|
|
14034
14034
|
onClick: s,
|
|
14035
14035
|
onHover: a,
|
|
14036
14036
|
onLeave: c,
|
|
@@ -14212,24 +14212,24 @@ function Im({ tooltipValues: e }) {
|
|
|
14212
14212
|
}
|
|
14213
14213
|
function Nm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, tooltip: s }) {
|
|
14214
14214
|
var O, w;
|
|
14215
|
-
const { sideWidth: a, totalWidth: c, viewWidth: u } = i, l = J((
|
|
14216
|
-
const
|
|
14215
|
+
const { sideWidth: a, totalWidth: c, viewWidth: u } = i, l = J((S) => S.svgRef), h = J((S) => S.delta), f = J((S) => S.marginWidth), p = De((S) => S.text), m = Y(() => {
|
|
14216
|
+
const S = t / 2;
|
|
14217
14217
|
return {
|
|
14218
|
-
cpgPlus: Ct(n[0],
|
|
14219
|
-
chgPlus: Ct(n[1],
|
|
14220
|
-
chhPlus: Ct(n[2],
|
|
14221
|
-
depthPlus: Js(n[3],
|
|
14222
|
-
cpgMinus: Ct(n[4],
|
|
14223
|
-
chgMinus: Ct(n[5],
|
|
14224
|
-
chhMinus: Ct(n[6],
|
|
14225
|
-
depthMinus: Js(n[7],
|
|
14218
|
+
cpgPlus: Ct(n[0], S, r.cpg, !1, o),
|
|
14219
|
+
chgPlus: Ct(n[1], S, r.chg, !1, o),
|
|
14220
|
+
chhPlus: Ct(n[2], S, r.chh, !1, o),
|
|
14221
|
+
depthPlus: Js(n[3], S, r.depth, !1, o),
|
|
14222
|
+
cpgMinus: Ct(n[4], S, r.cpg, !0, o),
|
|
14223
|
+
chgMinus: Ct(n[5], S, r.chg, !0, o),
|
|
14224
|
+
chhMinus: Ct(n[6], S, r.chh, !0, o),
|
|
14225
|
+
depthMinus: Js(n[7], S, r.depth, !0, o)
|
|
14226
14226
|
};
|
|
14227
14227
|
}, [n, t, r, o]), { mouseState: y, updateMouseState: v, clearMouseState: g } = Ji(l, c, f, a), b = Y(() => {
|
|
14228
|
-
var
|
|
14229
|
-
return (
|
|
14228
|
+
var S;
|
|
14229
|
+
return (S = y.pos) != null && S.x ? y.pos.x - f + a : 0;
|
|
14230
14230
|
}, [(O = y.pos) == null ? void 0 : O.x, f, a]), E = Y(() => {
|
|
14231
|
-
const
|
|
14232
|
-
return
|
|
14231
|
+
const S = y.index;
|
|
14232
|
+
return S === null ? [] : n.map((D) => D[S]);
|
|
14233
14233
|
}, [n, y.index]), { handleHover: _, handleLeave: x } = He({
|
|
14234
14234
|
onClick: void 0,
|
|
14235
14235
|
onHover: void 0,
|
|
@@ -14258,8 +14258,8 @@ function Nm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14258
14258
|
height: t,
|
|
14259
14259
|
transform: `translate(${a}, 0)`,
|
|
14260
14260
|
fill: "transparent",
|
|
14261
|
-
onMouseMove: (
|
|
14262
|
-
v(
|
|
14261
|
+
onMouseMove: (S) => {
|
|
14262
|
+
v(S), _({ tooltipValues: E }, "", S);
|
|
14263
14263
|
},
|
|
14264
14264
|
onMouseOut: () => {
|
|
14265
14265
|
g(), x({ tooltipValues: E });
|
|
@@ -14269,14 +14269,14 @@ function Nm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14269
14269
|
] });
|
|
14270
14270
|
}
|
|
14271
14271
|
function Pm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o, tooltip: s }) {
|
|
14272
|
-
var
|
|
14272
|
+
var j;
|
|
14273
14273
|
const { sideWidth: a, totalWidth: c, viewWidth: u } = o, l = J((C) => C.svgRef), h = J((C) => C.delta), f = J((C) => C.marginWidth), p = De((C) => C.background), m = Y(() => e.some((C) => C.min < 0), [e]), y = te((C) => C.editTrack), v = Y(() => {
|
|
14274
|
-
const C = e.slice(a, a + u),
|
|
14275
|
-
return y(r, { range:
|
|
14274
|
+
const C = e.slice(a, a + u), N = Fc(C);
|
|
14275
|
+
return y(r, { range: N }), N;
|
|
14276
14276
|
}, [e, a, u, r, y]), g = Y(() => Am(e, n, i, t || v, p), [e, n, i, t, v]), { mouseState: b, updateMouseState: E, clearMouseState: _ } = Ji(l, c, f, a), x = Y(() => {
|
|
14277
14277
|
var C;
|
|
14278
14278
|
return (C = b.pos) != null && C.x ? b.pos.x - f + a : 0;
|
|
14279
|
-
}, [(
|
|
14279
|
+
}, [(j = b.pos) == null ? void 0 : j.x, f, a]), O = De((C) => C.background), w = De((C) => C.text), { handleHover: S, handleLeave: D } = He({
|
|
14280
14280
|
onClick: void 0,
|
|
14281
14281
|
onHover: void 0,
|
|
14282
14282
|
onLeave: void 0,
|
|
@@ -14296,13 +14296,13 @@ function Pm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o
|
|
|
14296
14296
|
fill: "transparent",
|
|
14297
14297
|
onMouseMove: (C) => {
|
|
14298
14298
|
if (E(C), b.index === null) return;
|
|
14299
|
-
const
|
|
14299
|
+
const N = e[b.index], F = N.max, W = N.min;
|
|
14300
14300
|
if (!(!F || !W)) {
|
|
14301
14301
|
if (F === W || !m) {
|
|
14302
|
-
|
|
14302
|
+
S(N, String(F.toFixed(2)), C);
|
|
14303
14303
|
return;
|
|
14304
14304
|
}
|
|
14305
|
-
|
|
14305
|
+
S(N, "max: " + String(F.toFixed(2)) + " min: " + String(W.toFixed(2)), C);
|
|
14306
14306
|
}
|
|
14307
14307
|
},
|
|
14308
14308
|
onMouseOut: () => {
|
|
@@ -14330,140 +14330,140 @@ function Am(e, t, r, n, i) {
|
|
|
14330
14330
|
] });
|
|
14331
14331
|
}
|
|
14332
14332
|
function Fm({ id: e, data: t, height: r, color: n, dimensions: i, show: o, onClick: s, onHover: a, onLeave: c, tooltip: u }) {
|
|
14333
|
-
const { totalWidth: l, sideWidth: h } = i, f = wr((
|
|
14334
|
-
const
|
|
14335
|
-
const
|
|
14336
|
-
return
|
|
14333
|
+
const { totalWidth: l, sideWidth: h } = i, f = wr((I) => I.background), p = wr((I) => I.text), m = 4, y = J((I) => I.getExpandedDomain), v = te((I) => I.editTrack), { x: g } = mt(l), b = r / 3, E = 2 * r / 3, _ = Y(() => {
|
|
14334
|
+
const I = y(), V = t == null ? void 0 : t.filter((U) => {
|
|
14335
|
+
const ae = U.start >= I.start, Q = U.stop <= I.end, T = U.chromosome === I.chromosome;
|
|
14336
|
+
return ae && Q && T;
|
|
14337
14337
|
});
|
|
14338
|
-
return (
|
|
14339
|
-
...
|
|
14340
|
-
pixelStart: (
|
|
14341
|
-
pixelEnd: (
|
|
14338
|
+
return (V == null ? void 0 : V.map((U) => ({
|
|
14339
|
+
...U,
|
|
14340
|
+
pixelStart: g(U.start),
|
|
14341
|
+
pixelEnd: g(U.stop)
|
|
14342
14342
|
}))) || [];
|
|
14343
|
-
}, [t,
|
|
14343
|
+
}, [t, g]), { handleClick: x, handleHover: O, handleLeave: w } = He({
|
|
14344
14344
|
onClick: s,
|
|
14345
14345
|
onHover: a,
|
|
14346
14346
|
onLeave: c,
|
|
14347
14347
|
tooltip: u || qm
|
|
14348
|
-
}), [
|
|
14349
|
-
const
|
|
14350
|
-
return (
|
|
14351
|
-
}, [o,
|
|
14348
|
+
}), [S, D] = ce(null), [j, C] = ce([]), [N, F] = ce([]), W = Y(() => {
|
|
14349
|
+
const I = o || [], V = _.filter((ae) => I.includes(ae.snpid));
|
|
14350
|
+
return (S ? [...V, S] : V).filter((ae, Q, T) => Q === T.findIndex((L) => L.snpid === ae.snpid));
|
|
14351
|
+
}, [o, _, S]);
|
|
14352
14352
|
return pe(() => {
|
|
14353
|
-
const
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
const
|
|
14357
|
-
if (
|
|
14358
|
-
(
|
|
14353
|
+
const I = [], V = [];
|
|
14354
|
+
W.forEach((U) => {
|
|
14355
|
+
U.ldblocksnpid !== "Lead" && U.ldblocksnpid.split(",").map((T) => T.trim()).forEach((T) => {
|
|
14356
|
+
const L = _.find((P) => P.snpid === T);
|
|
14357
|
+
if (L && !I.find(
|
|
14358
|
+
(B) => B.snpid === L.snpid && B.sourceSnp === U.snpid && B.targetSnpId === T
|
|
14359
14359
|
)) {
|
|
14360
|
-
const
|
|
14361
|
-
|
|
14362
|
-
...
|
|
14363
|
-
sourceSnp:
|
|
14364
|
-
targetSnpId:
|
|
14365
|
-
rsquare:
|
|
14360
|
+
const B = ea(U, T);
|
|
14361
|
+
I.push({
|
|
14362
|
+
...L,
|
|
14363
|
+
sourceSnp: U.snpid,
|
|
14364
|
+
targetSnpId: T,
|
|
14365
|
+
rsquare: B
|
|
14366
14366
|
});
|
|
14367
14367
|
}
|
|
14368
|
-
}),
|
|
14369
|
-
if (!
|
|
14370
|
-
(
|
|
14368
|
+
}), _.filter((Q) => Q.snpid === U.snpid || Q.ldblocksnpid === "Lead" ? !1 : Q.ldblocksnpid.split(",").map((L) => L.trim()).includes(U.snpid)).forEach((Q) => {
|
|
14369
|
+
if (!V.find(
|
|
14370
|
+
(L) => L.snpid === Q.snpid && L.sourceSnp === U.snpid && L.targetSnpId === U.snpid
|
|
14371
14371
|
)) {
|
|
14372
|
-
const
|
|
14373
|
-
|
|
14374
|
-
...
|
|
14375
|
-
sourceSnp:
|
|
14376
|
-
targetSnpId:
|
|
14377
|
-
rsquare:
|
|
14372
|
+
const L = ea(Q, U.snpid);
|
|
14373
|
+
V.push({
|
|
14374
|
+
...Q,
|
|
14375
|
+
sourceSnp: U.snpid,
|
|
14376
|
+
targetSnpId: U.snpid,
|
|
14377
|
+
rsquare: L
|
|
14378
14378
|
});
|
|
14379
14379
|
}
|
|
14380
14380
|
});
|
|
14381
|
-
}),
|
|
14382
|
-
}, [
|
|
14381
|
+
}), C(I), F(V);
|
|
14382
|
+
}, [W, _]), /* @__PURE__ */ d.jsxs("g", { transform: `translate(-${h}, 0)`, children: [
|
|
14383
14383
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: f }),
|
|
14384
|
-
|
|
14385
|
-
const
|
|
14386
|
-
return
|
|
14384
|
+
j.map((I) => {
|
|
14385
|
+
const V = _.find((U) => U.snpid === I.sourceSnp);
|
|
14386
|
+
return V ? /* @__PURE__ */ d.jsx(
|
|
14387
14387
|
"path",
|
|
14388
14388
|
{
|
|
14389
|
-
d: Ks(
|
|
14389
|
+
d: Ks(V, I, r, E, b),
|
|
14390
14390
|
stroke: xs(n) ? Je(n, 0.5) : bs(n),
|
|
14391
|
-
strokeWidth: Zs(
|
|
14391
|
+
strokeWidth: Zs(I.rsquare),
|
|
14392
14392
|
fill: "none",
|
|
14393
14393
|
opacity: 0.5
|
|
14394
14394
|
},
|
|
14395
|
-
`reference-arc-${
|
|
14395
|
+
`reference-arc-${I.snpid}-${V.snpid}`
|
|
14396
14396
|
) : null;
|
|
14397
14397
|
}),
|
|
14398
|
-
|
|
14399
|
-
const
|
|
14400
|
-
return
|
|
14398
|
+
N.map((I) => {
|
|
14399
|
+
const V = _.find((U) => U.snpid === I.sourceSnp);
|
|
14400
|
+
return V ? /* @__PURE__ */ d.jsx(
|
|
14401
14401
|
"path",
|
|
14402
14402
|
{
|
|
14403
|
-
d: Ks(
|
|
14403
|
+
d: Ks(I, V, r, E, b),
|
|
14404
14404
|
stroke: xs(n) ? Je(n, 0.5) : bs(n),
|
|
14405
|
-
strokeWidth: Zs(
|
|
14405
|
+
strokeWidth: Zs(I.rsquare),
|
|
14406
14406
|
fill: "none",
|
|
14407
14407
|
opacity: 0.5
|
|
14408
14408
|
},
|
|
14409
|
-
`referencing-arc-${
|
|
14409
|
+
`referencing-arc-${I.snpid}-${V.snpid}`
|
|
14410
14410
|
) : null;
|
|
14411
14411
|
}),
|
|
14412
|
-
/* @__PURE__ */ d.jsx("g", { transform: `translate(0, ${r -
|
|
14413
|
-
const
|
|
14412
|
+
/* @__PURE__ */ d.jsx("g", { transform: `translate(0, ${r - b})`, children: _.map((I, V) => {
|
|
14413
|
+
const U = (o || []).includes(I.snpid);
|
|
14414
14414
|
return /* @__PURE__ */ d.jsx(
|
|
14415
14415
|
"rect",
|
|
14416
14416
|
{
|
|
14417
|
-
height: ct(
|
|
14418
|
-
width:
|
|
14419
|
-
x:
|
|
14420
|
-
y: ct(
|
|
14421
|
-
fill: $m(
|
|
14422
|
-
stroke:
|
|
14423
|
-
strokeWidth:
|
|
14417
|
+
height: ct(I) ? E : b,
|
|
14418
|
+
width: I.pixelEnd - I.pixelStart + m,
|
|
14419
|
+
x: I.pixelStart - m / 2,
|
|
14420
|
+
y: ct(I) ? -E + b : 0,
|
|
14421
|
+
fill: $m(I, n),
|
|
14422
|
+
stroke: U ? p : "none",
|
|
14423
|
+
strokeWidth: U ? 1 : 0,
|
|
14424
14424
|
onClick: () => {
|
|
14425
|
-
|
|
14426
|
-
const
|
|
14427
|
-
|
|
14425
|
+
x(I);
|
|
14426
|
+
const ae = o || [], Q = I.snpid;
|
|
14427
|
+
ae.includes(Q) ? v(e, { show: ae.filter((T) => T !== Q) }) : v(e, { show: [...ae, Q] });
|
|
14428
14428
|
},
|
|
14429
|
-
onMouseOver: (
|
|
14430
|
-
|
|
14429
|
+
onMouseOver: (ae) => {
|
|
14430
|
+
O(I, "", ae), D(I);
|
|
14431
14431
|
},
|
|
14432
14432
|
onMouseOut: () => {
|
|
14433
|
-
|
|
14433
|
+
w(I), D(null);
|
|
14434
14434
|
}
|
|
14435
14435
|
},
|
|
14436
|
-
`${e}_${
|
|
14436
|
+
`${e}_${V}`
|
|
14437
14437
|
);
|
|
14438
14438
|
}) }),
|
|
14439
|
-
|
|
14440
|
-
const
|
|
14439
|
+
j.map((I) => {
|
|
14440
|
+
const V = I.pixelStart + (I.pixelEnd - I.pixelStart) / 2, U = ct(I) ? r - E - 2 : r - b - 2;
|
|
14441
14441
|
return /* @__PURE__ */ d.jsx(
|
|
14442
14442
|
"text",
|
|
14443
14443
|
{
|
|
14444
|
-
x:
|
|
14445
|
-
y:
|
|
14444
|
+
x: V,
|
|
14445
|
+
y: U,
|
|
14446
14446
|
textAnchor: "middle",
|
|
14447
14447
|
fontSize: "10",
|
|
14448
14448
|
fill: p,
|
|
14449
|
-
children:
|
|
14449
|
+
children: I.rsquare
|
|
14450
14450
|
},
|
|
14451
|
-
`reference-label-${
|
|
14451
|
+
`reference-label-${I.snpid}-${I.sourceSnp}`
|
|
14452
14452
|
);
|
|
14453
14453
|
}),
|
|
14454
|
-
|
|
14455
|
-
const
|
|
14454
|
+
N.map((I) => {
|
|
14455
|
+
const V = I.pixelStart + (I.pixelEnd - I.pixelStart) / 2, U = ct(I) ? r - E - 2 : r - b - 2;
|
|
14456
14456
|
return /* @__PURE__ */ d.jsx(
|
|
14457
14457
|
"text",
|
|
14458
14458
|
{
|
|
14459
|
-
x:
|
|
14460
|
-
y:
|
|
14459
|
+
x: V,
|
|
14460
|
+
y: U,
|
|
14461
14461
|
textAnchor: "middle",
|
|
14462
14462
|
fontSize: "10",
|
|
14463
14463
|
fill: p,
|
|
14464
|
-
children:
|
|
14464
|
+
children: I.rsquare
|
|
14465
14465
|
},
|
|
14466
|
-
`referencing-label-${
|
|
14466
|
+
`referencing-label-${I.snpid}-${I.sourceSnp}`
|
|
14467
14467
|
);
|
|
14468
14468
|
})
|
|
14469
14469
|
] });
|
|
@@ -15524,7 +15524,7 @@ function Zv({ browserStore: e, trackStore: t, externalDataStore: r }) {
|
|
|
15524
15524
|
] });
|
|
15525
15525
|
}
|
|
15526
15526
|
function eg(e) {
|
|
15527
|
-
return
|
|
15527
|
+
return kt((t, r) => ({
|
|
15528
15528
|
domain: e.domain,
|
|
15529
15529
|
delta: 0,
|
|
15530
15530
|
svgRef: null,
|
|
@@ -15583,7 +15583,7 @@ function eg(e) {
|
|
|
15583
15583
|
}));
|
|
15584
15584
|
}
|
|
15585
15585
|
function tg(e = []) {
|
|
15586
|
-
return
|
|
15586
|
+
return kt((t, r) => ({
|
|
15587
15587
|
tracks: e,
|
|
15588
15588
|
ids: e.map((n) => n.id),
|
|
15589
15589
|
setTracks: (n) => t({ tracks: n, ids: n.map((i) => i.id) }),
|