@ram_28/kf-ai-sdk 1.0.13 → 1.0.14
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/auth.cjs +1 -1
- package/dist/auth.mjs +90 -90
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +736 -1745
- package/dist/kanban.cjs +2 -2
- package/dist/kanban.mjs +469 -835
- package/dist/kanban.ui.cjs +1 -1
- package/dist/kanban.ui.mjs +27 -27
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/package.json +1 -1
- package/dist/jsx-runtime-BYECrxsp.cjs +0 -30
- package/dist/jsx-runtime-DGlMoOmv.js +0 -630
- package/dist/useQuery-BScHEo7x.cjs +0 -1
- package/dist/useQuery-KpZFg80c.js +0 -748
|
@@ -1,630 +0,0 @@
|
|
|
1
|
-
import Se from "react";
|
|
2
|
-
var X = { exports: {} }, k = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Te;
|
|
13
|
-
function lr() {
|
|
14
|
-
if (Te) return k;
|
|
15
|
-
Te = 1;
|
|
16
|
-
var V = Se, C = Symbol.for("react.element"), M = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function w(y, f, T) {
|
|
18
|
-
var p, _ = {}, b = null, I = null;
|
|
19
|
-
T !== void 0 && (b = "" + T), f.key !== void 0 && (b = "" + f.key), f.ref !== void 0 && (I = f.ref);
|
|
20
|
-
for (p in f) m.call(f, p) && !A.hasOwnProperty(p) && (_[p] = f[p]);
|
|
21
|
-
if (y && y.defaultProps) for (p in f = y.defaultProps, f) _[p] === void 0 && (_[p] = f[p]);
|
|
22
|
-
return { $$typeof: C, type: y, key: b, ref: I, props: _, _owner: F.current };
|
|
23
|
-
}
|
|
24
|
-
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
|
|
25
|
-
}
|
|
26
|
-
var D = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var Oe;
|
|
37
|
-
function fr() {
|
|
38
|
-
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var V = Se, C = Symbol.for("react.element"), M = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Pe = "@@iterator";
|
|
40
|
-
function Ce(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = H && e[H] || e[Pe];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var O = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function c(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
-
t[n - 1] = arguments[n];
|
|
51
|
-
we("error", e, t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function we(e, r, t) {
|
|
55
|
-
{
|
|
56
|
-
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
|
-
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
-
var u = t.map(function(i) {
|
|
59
|
-
return String(i);
|
|
60
|
-
});
|
|
61
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var je = !1, xe = !1, ke = !1, De = !1, Fe = !1, Z;
|
|
65
|
-
Z = Symbol.for("react.module.reference");
|
|
66
|
-
function Ae(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || Fe || e === F || e === T || e === p || De || e === I || je || xe || ke || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === _ || e.$$typeof === w || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ie(e, r, t) {
|
|
74
|
-
var n = e.displayName;
|
|
75
|
-
if (n)
|
|
76
|
-
return n;
|
|
77
|
-
var o = r.displayName || r.name || "";
|
|
78
|
-
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
-
}
|
|
80
|
-
function Q(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function E(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case m:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case M:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case A:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case F:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case T:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case p:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case y:
|
|
107
|
-
var r = e;
|
|
108
|
-
return Q(r) + ".Consumer";
|
|
109
|
-
case w:
|
|
110
|
-
var t = e;
|
|
111
|
-
return Q(t._context) + ".Provider";
|
|
112
|
-
case f:
|
|
113
|
-
return Ie(e, e.render, "ForwardRef");
|
|
114
|
-
case _:
|
|
115
|
-
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n : E(e.type) || "Memo";
|
|
117
|
-
case b: {
|
|
118
|
-
var o = e, u = o._payload, i = o._init;
|
|
119
|
-
try {
|
|
120
|
-
return E(i(u));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var h = Object.assign, j = 0, ee, re, te, ne, ae, ie, oe;
|
|
129
|
-
function ue() {
|
|
130
|
-
}
|
|
131
|
-
ue.__reactDisabledLog = !0;
|
|
132
|
-
function We() {
|
|
133
|
-
{
|
|
134
|
-
if (j === 0) {
|
|
135
|
-
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: ue,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
j++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function Ye() {
|
|
156
|
-
{
|
|
157
|
-
if (j--, j === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: h({}, e, {
|
|
165
|
-
value: ee
|
|
166
|
-
}),
|
|
167
|
-
info: h({}, e, {
|
|
168
|
-
value: re
|
|
169
|
-
}),
|
|
170
|
-
warn: h({}, e, {
|
|
171
|
-
value: te
|
|
172
|
-
}),
|
|
173
|
-
error: h({}, e, {
|
|
174
|
-
value: ne
|
|
175
|
-
}),
|
|
176
|
-
group: h({}, e, {
|
|
177
|
-
value: ae
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: h({}, e, {
|
|
180
|
-
value: ie
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: h({}, e, {
|
|
183
|
-
value: oe
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var U = O.ReactCurrentDispatcher, N;
|
|
191
|
-
function W(e, r, t) {
|
|
192
|
-
{
|
|
193
|
-
if (N === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (o) {
|
|
197
|
-
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
N = n && n[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + N + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var B = !1, Y;
|
|
205
|
-
{
|
|
206
|
-
var $e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
Y = new $e();
|
|
208
|
-
}
|
|
209
|
-
function se(e, r) {
|
|
210
|
-
if (!e || B)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var t = Y.get(e);
|
|
214
|
-
if (t !== void 0)
|
|
215
|
-
return t;
|
|
216
|
-
}
|
|
217
|
-
var n;
|
|
218
|
-
B = !0;
|
|
219
|
-
var o = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var u;
|
|
222
|
-
u = U.current, U.current = null, We();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var i = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(i, []);
|
|
235
|
-
} catch (d) {
|
|
236
|
-
n = d;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], i);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
i.call();
|
|
242
|
-
} catch (d) {
|
|
243
|
-
n = d;
|
|
244
|
-
}
|
|
245
|
-
e.call(i.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (d) {
|
|
251
|
-
n = d;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (d) {
|
|
256
|
-
if (d && n && typeof d.stack == "string") {
|
|
257
|
-
for (var a = d.stack.split(`
|
|
258
|
-
`), v = n.stack.split(`
|
|
259
|
-
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
260
|
-
l--;
|
|
261
|
-
for (; s >= 1 && l >= 0; s--, l--)
|
|
262
|
-
if (a[s] !== v[l]) {
|
|
263
|
-
if (s !== 1 || l !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
266
|
-
var g = `
|
|
267
|
-
` + a[s].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
|
|
269
|
-
}
|
|
270
|
-
while (s >= 1 && l >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
B = !1, U.current = u, Ye(), Error.prepareStackTrace = o;
|
|
276
|
-
}
|
|
277
|
-
var P = e ? e.displayName || e.name : "", R = P ? W(P) : "";
|
|
278
|
-
return typeof e == "function" && Y.set(e, R), R;
|
|
279
|
-
}
|
|
280
|
-
function Le(e, r, t) {
|
|
281
|
-
return se(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function Ve(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function $(e, r, t) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return se(e, Ve(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return W(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case T:
|
|
296
|
-
return W("Suspense");
|
|
297
|
-
case p:
|
|
298
|
-
return W("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case f:
|
|
303
|
-
return Le(e.render);
|
|
304
|
-
case _:
|
|
305
|
-
return $(e.type, r, t);
|
|
306
|
-
case b: {
|
|
307
|
-
var n = e, o = n._payload, u = n._init;
|
|
308
|
-
try {
|
|
309
|
-
return $(u(o), r, t);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var x = Object.prototype.hasOwnProperty, le = {}, fe = O.ReactDebugCurrentFrame;
|
|
317
|
-
function L(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
320
|
-
fe.setExtraStackFrame(t);
|
|
321
|
-
} else
|
|
322
|
-
fe.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Me(e, r, t, n, o) {
|
|
325
|
-
{
|
|
326
|
-
var u = Function.call.bind(x);
|
|
327
|
-
for (var i in e)
|
|
328
|
-
if (u(e, i)) {
|
|
329
|
-
var a = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[i] != "function") {
|
|
332
|
-
var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw v.name = "Invariant Violation", v;
|
|
334
|
-
}
|
|
335
|
-
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (s) {
|
|
337
|
-
a = s;
|
|
338
|
-
}
|
|
339
|
-
a && !(a instanceof Error) && (L(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var Ue = Array.isArray;
|
|
344
|
-
function J(e) {
|
|
345
|
-
return Ue(e);
|
|
346
|
-
}
|
|
347
|
-
function Ne(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return t;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function Be(e) {
|
|
354
|
-
try {
|
|
355
|
-
return ce(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function ce(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function ve(e) {
|
|
364
|
-
if (Be(e))
|
|
365
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ne(e)), ce(e);
|
|
366
|
-
}
|
|
367
|
-
var de = O.ReactCurrentOwner, Je = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, pe, ge;
|
|
373
|
-
function Ke(e) {
|
|
374
|
-
if (x.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function qe(e) {
|
|
382
|
-
if (x.call(e, "key")) {
|
|
383
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (r && r.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function Ge(e, r) {
|
|
390
|
-
typeof e.ref == "string" && de.current;
|
|
391
|
-
}
|
|
392
|
-
function ze(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var t = function() {
|
|
395
|
-
pe || (pe = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
396
|
-
};
|
|
397
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: t,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function Xe(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var t = function() {
|
|
406
|
-
ge || (ge = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
|
-
};
|
|
408
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: t,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var He = function(e, r, t, n, o, u, i) {
|
|
415
|
-
var a = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: C,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: t,
|
|
422
|
-
props: i,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: u
|
|
425
|
-
};
|
|
426
|
-
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(a, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: n
|
|
436
|
-
}), Object.defineProperty(a, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: o
|
|
441
|
-
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
|
-
};
|
|
443
|
-
function Ze(e, r, t, n, o) {
|
|
444
|
-
{
|
|
445
|
-
var u, i = {}, a = null, v = null;
|
|
446
|
-
t !== void 0 && (ve(t), a = "" + t), qe(r) && (ve(r.key), a = "" + r.key), Ke(r) && (v = r.ref, Ge(r, o));
|
|
447
|
-
for (u in r)
|
|
448
|
-
x.call(r, u) && !Je.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var s = e.defaultProps;
|
|
451
|
-
for (u in s)
|
|
452
|
-
i[u] === void 0 && (i[u] = s[u]);
|
|
453
|
-
}
|
|
454
|
-
if (a || v) {
|
|
455
|
-
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
a && ze(i, l), v && Xe(i, l);
|
|
457
|
-
}
|
|
458
|
-
return He(e, a, v, o, n, de.current, i);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var K = O.ReactCurrentOwner, _e = O.ReactDebugCurrentFrame;
|
|
462
|
-
function S(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
465
|
-
_e.setExtraStackFrame(t);
|
|
466
|
-
} else
|
|
467
|
-
_e.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var q;
|
|
470
|
-
q = !1;
|
|
471
|
-
function G(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
473
|
-
}
|
|
474
|
-
function Ee() {
|
|
475
|
-
{
|
|
476
|
-
if (K.current) {
|
|
477
|
-
var e = E(K.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function Qe(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var ye = {};
|
|
490
|
-
function er(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Ee();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
t && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + t + ">.");
|
|
498
|
-
}
|
|
499
|
-
return r;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function be(e, r) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var t = er(r);
|
|
508
|
-
if (ye[t])
|
|
509
|
-
return;
|
|
510
|
-
ye[t] = !0;
|
|
511
|
-
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function he(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (J(e))
|
|
520
|
-
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var n = e[t];
|
|
522
|
-
G(n) && be(n, r);
|
|
523
|
-
}
|
|
524
|
-
else if (G(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var o = Ce(e);
|
|
528
|
-
if (typeof o == "function" && o !== e.entries)
|
|
529
|
-
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
530
|
-
G(i.value) && be(i.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function rr(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var t;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === _))
|
|
545
|
-
t = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (t) {
|
|
549
|
-
var n = E(r);
|
|
550
|
-
Me(t, e.props, "prop", n, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !q) {
|
|
552
|
-
q = !0;
|
|
553
|
-
var o = E(r);
|
|
554
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function tr(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var n = r[t];
|
|
563
|
-
if (n !== "children" && n !== "key") {
|
|
564
|
-
S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var Re = {};
|
|
572
|
-
function me(e, r, t, n, o, u) {
|
|
573
|
-
{
|
|
574
|
-
var i = Ae(e);
|
|
575
|
-
if (!i) {
|
|
576
|
-
var a = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var v = Qe();
|
|
579
|
-
v ? a += v : a += Ee();
|
|
580
|
-
var s;
|
|
581
|
-
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === C ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
582
|
-
}
|
|
583
|
-
var l = Ze(e, r, t, o, u);
|
|
584
|
-
if (l == null)
|
|
585
|
-
return l;
|
|
586
|
-
if (i) {
|
|
587
|
-
var g = r.children;
|
|
588
|
-
if (g !== void 0)
|
|
589
|
-
if (n)
|
|
590
|
-
if (J(g)) {
|
|
591
|
-
for (var P = 0; P < g.length; P++)
|
|
592
|
-
he(g[P], e);
|
|
593
|
-
Object.freeze && Object.freeze(g);
|
|
594
|
-
} else
|
|
595
|
-
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
-
else
|
|
597
|
-
he(g, e);
|
|
598
|
-
}
|
|
599
|
-
if (x.call(r, "key")) {
|
|
600
|
-
var R = E(e), d = Object.keys(r).filter(function(sr) {
|
|
601
|
-
return sr !== "key";
|
|
602
|
-
}), z = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!Re[R + z]) {
|
|
604
|
-
var ur = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
c(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, z, R, ur, R), Re[R + z] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === m ? tr(l) : rr(l), l;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function nr(e, r, t) {
|
|
617
|
-
return me(e, r, t, !0);
|
|
618
|
-
}
|
|
619
|
-
function ar(e, r, t) {
|
|
620
|
-
return me(e, r, t, !1);
|
|
621
|
-
}
|
|
622
|
-
var ir = ar, or = nr;
|
|
623
|
-
D.Fragment = m, D.jsx = ir, D.jsxs = or;
|
|
624
|
-
}()), D;
|
|
625
|
-
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? X.exports = lr() : X.exports = fr();
|
|
627
|
-
var vr = X.exports;
|
|
628
|
-
export {
|
|
629
|
-
vr as j
|
|
630
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Te=e=>{throw TypeError(e)};var he=(e,t,s)=>t.has(e)||Te("Cannot "+s);var r=(e,t,s)=>(he(e,t,"read from private field"),s?s.call(e):t.get(e)),d=(e,t,s)=>t.has(e)?Te("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),o=(e,t,s,i)=>(he(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),y=(e,t,s)=>(he(e,t,"access private method"),s);const Ge=require("react");require("./jsx-runtime-BYECrxsp.cjs");function Xe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const C=Xe(Ge);var oe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ye={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},T,Q,xe,et=(xe=class{constructor(){d(this,T,Ye);d(this,Q,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&r(this,Q)&&e!==r(this,T)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:r(this,T),provider:e}),o(this,T,e),process.env.NODE_ENV!=="production"&&o(this,Q,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&o(this,Q,!0),r(this,T).setTimeout(e,t)}clearTimeout(e){r(this,T).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&o(this,Q,!0),r(this,T).setInterval(e,t)}clearInterval(e){r(this,T).clearInterval(e)}},T=new WeakMap,Q=new WeakMap,xe),se=new et;function tt(e){setTimeout(e,0)}var Z=typeof window>"u"||"Deno"in globalThis;function re(){}function Fe(e){return typeof e=="number"&&e>=0&&e!==1/0}function st(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $(e,t){return typeof e=="function"?e(t):e}function R(e,t){return typeof e=="function"?e(t):e}function rt(e){return JSON.stringify(e,(t,s)=>le(s)?Object.keys(s).sort().reduce((i,n)=>(i[n]=s[n],i),{}):s)}var it=Object.prototype.hasOwnProperty;function ie(e,t){if(e===t)return e;const s=Me(e)&&Me(t);if(!s&&!(le(e)&&le(t)))return t;const n=(s?e:Object.keys(e)).length,c=s?t:Object.keys(t),h=c.length,a=s?new Array(h):{};let v=0;for(let p=0;p<h;p++){const g=s?p:c[p],f=e[g],S=t[g];if(f===S){a[g]=f,(s?p<n:it.call(e,g))&&v++;continue}if(f===null||S===null||typeof f!="object"||typeof S!="object"){a[g]=S;continue}const b=ie(f,S);a[g]=b,b===f&&v++}return n===h&&v===n?e:a}function ne(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Me(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function le(e){if(!_e(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!_e(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _e(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e,t,s){if(typeof s.structuralSharing=="function")return s.structuralSharing(e,t);if(s.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return ie(e,t)}catch(i){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${i}`),i}return ie(e,t)}return t}function nt(e){return e}function Se(e,t){return typeof e=="function"?e(...t):!!e}var x,M,A,De,ot=(De=class extends oe{constructor(){super();d(this,x);d(this,M);d(this,A);o(this,A,t=>{if(!Z&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){r(this,M)||this.setEventListener(r(this,A))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,M))==null||t.call(this),o(this,M,void 0))}setEventListener(t){var s;o(this,A,t),(s=r(this,M))==null||s.call(this),o(this,M,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,x)!==t&&(o(this,x,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof r(this,x)=="boolean"?r(this,x):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},x=new WeakMap,M=new WeakMap,A=new WeakMap,De),at=new ot;function je(){let e,t;const s=new Promise((n,c)=>{e=n,t=c});s.status="pending",s.catch(()=>{});function i(n){Object.assign(s,n),delete s.resolve,delete s.reject}return s.resolve=n=>{i({status:"fulfilled",value:n}),e(n)},s.reject=n=>{i({status:"rejected",reason:n}),t(n)},s}var ut=tt;function ct(){let e=[],t=0,s=a=>{a()},i=a=>{a()},n=ut;const c=a=>{t?e.push(a):n(()=>{s(a)})},h=()=>{const a=e;e=[],a.length&&n(()=>{i(()=>{a.forEach(v=>{s(v)})})})};return{batch:a=>{let v;t++;try{v=a()}finally{t--,t||h()}return v},batchCalls:a=>(...v)=>{c(()=>{a(...v)})},schedule:c,setNotifyFunction:a=>{s=a},setBatchNotifyFunction:a=>{i=a},setScheduler:a=>{n=a}}}var Oe=ct(),B,_,q,Le,ht=(Le=class extends oe{constructor(){super();d(this,B,!0);d(this,_);d(this,q);o(this,q,t=>{if(!Z&&window.addEventListener){const s=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,_)||this.setEventListener(r(this,q))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,_))==null||t.call(this),o(this,_,void 0))}setEventListener(t){var s;o(this,q,t),(s=r(this,_))==null||s.call(this),o(this,_,t(this.setOnline.bind(this)))}setOnline(t){r(this,B)!==t&&(o(this,B,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,B)}},B=new WeakMap,_=new WeakMap,q=new WeakMap,Le),lt=new ht;function ft(e){return(e??"online")==="online"?lt.isOnline():!0}function dt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ft(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}var E,u,G,m,D,z,F,P,X,V,H,L,U,j,J,l,W,fe,de,pe,be,ye,ve,ge,Ae,Ue,ke=(Ue=class extends oe{constructor(t,s){super();d(this,l);d(this,E);d(this,u);d(this,G);d(this,m);d(this,D);d(this,z);d(this,F);d(this,P);d(this,X);d(this,V);d(this,H);d(this,L);d(this,U);d(this,j);d(this,J,new Set);this.options=s,o(this,E,t),o(this,P,null),o(this,F,je()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,u).addObserver(this),Ne(r(this,u),this.options)?y(this,l,W).call(this):this.updateResult(),y(this,l,be).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return me(r(this,u),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return me(r(this,u),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,l,ye).call(this),y(this,l,ve).call(this),r(this,u).removeObserver(this)}setOptions(t){const s=this.options,i=r(this,u);if(this.options=r(this,E).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R(this.options.enabled,r(this,u))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,l,ge).call(this),r(this,u).setOptions(this.options),s._defaulted&&!ne(this.options,s)&&r(this,E).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,u),observer:this});const n=this.hasListeners();n&&Qe(r(this,u),i,this.options,s)&&y(this,l,W).call(this),this.updateResult(),n&&(r(this,u)!==i||R(this.options.enabled,r(this,u))!==R(s.enabled,r(this,u))||$(this.options.staleTime,r(this,u))!==$(s.staleTime,r(this,u)))&&y(this,l,fe).call(this);const c=y(this,l,de).call(this);n&&(r(this,u)!==i||R(this.options.enabled,r(this,u))!==R(s.enabled,r(this,u))||c!==r(this,j))&&y(this,l,pe).call(this,c)}getOptimisticResult(t){const s=r(this,E).getQueryCache().build(r(this,E),t),i=this.createResult(s,t);return bt(this,i)&&(o(this,m,i),o(this,z,this.options),o(this,D,r(this,u).state)),i}getCurrentResult(){return r(this,m)}trackResult(t,s){return new Proxy(t,{get:(i,n)=>(this.trackProp(n),s==null||s(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&r(this,F).status==="pending"&&r(this,F).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,n))})}trackProp(t){r(this,J).add(t)}getCurrentQuery(){return r(this,u)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=r(this,E).defaultQueryOptions(t),i=r(this,E).getQueryCache().build(r(this,E),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(t){return y(this,l,W).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,m)))}createResult(t,s){var Ie;const i=r(this,u),n=this.options,c=r(this,m),h=r(this,D),a=r(this,z),p=t!==i?t.state:r(this,G),{state:g}=t;let f={...g},S=!1,b;if(s._optimisticResults){const w=this.hasListeners(),ee=!w&&Ne(t,s),k=w&&Qe(t,i,s,n);(ee||k)&&(f={...f,...dt(g.data,t.options)}),s._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:N,errorUpdatedAt:K,status:O}=f;b=f.data;let Y=!1;if(s.placeholderData!==void 0&&b===void 0&&O==="pending"){let w;c!=null&&c.isPlaceholderData&&s.placeholderData===(a==null?void 0:a.placeholderData)?(w=c.data,Y=!0):w=typeof s.placeholderData=="function"?s.placeholderData((Ie=r(this,H))==null?void 0:Ie.state.data,r(this,H)):s.placeholderData,w!==void 0&&(O="success",b=Pe(c==null?void 0:c.data,w,s),S=!0)}if(s.select&&b!==void 0&&!Y)if(c&&b===(h==null?void 0:h.data)&&s.select===r(this,X))b=r(this,V);else try{o(this,X,s.select),b=s.select(b),b=Pe(c==null?void 0:c.data,b,s),o(this,V,b),o(this,P,null)}catch(w){o(this,P,w)}r(this,P)&&(N=r(this,P),b=r(this,V),K=Date.now(),O="error");const ae=f.fetchStatus==="fetching",ue=O==="pending",ce=O==="error",Re=ue&&ae,Ce=b!==void 0,I={status:O,fetchStatus:f.fetchStatus,isPending:ue,isSuccess:O==="success",isError:ce,isInitialLoading:Re,isLoading:Re,data:b,dataUpdatedAt:f.dataUpdatedAt,error:N,errorUpdatedAt:K,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>p.dataUpdateCount||f.errorUpdateCount>p.errorUpdateCount,isFetching:ae,isRefetching:ae&&!ue,isLoadingError:ce&&!Ce,isPaused:f.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:ce&&Ce,isStale:we(t,s),refetch:this.refetch,promise:r(this,F),isEnabled:R(s.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const w=te=>{I.status==="error"?te.reject(I.error):I.data!==void 0&&te.resolve(I.data)},ee=()=>{const te=o(this,F,I.promise=je());w(te)},k=r(this,F);switch(k.status){case"pending":t.queryHash===i.queryHash&&w(k);break;case"fulfilled":(I.status==="error"||I.data!==k.value)&&ee();break;case"rejected":(I.status!=="error"||I.error!==k.reason)&&ee();break}}return I}updateResult(){const t=r(this,m),s=this.createResult(r(this,u),this.options);if(o(this,D,r(this,u).state),o(this,z,this.options),r(this,D).data!==void 0&&o(this,H,r(this,u)),ne(s,t))return;o(this,m,s);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,c=typeof n=="function"?n():n;if(c==="all"||!c&&!r(this,J).size)return!0;const h=new Set(c??r(this,J));return this.options.throwOnError&&h.add("error"),Object.keys(r(this,m)).some(a=>{const v=a;return r(this,m)[v]!==t[v]&&h.has(v)})};y(this,l,Ae).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,l,be).call(this)}},E=new WeakMap,u=new WeakMap,G=new WeakMap,m=new WeakMap,D=new WeakMap,z=new WeakMap,F=new WeakMap,P=new WeakMap,X=new WeakMap,V=new WeakMap,H=new WeakMap,L=new WeakMap,U=new WeakMap,j=new WeakMap,J=new WeakMap,l=new WeakSet,W=function(t){y(this,l,ge).call(this);let s=r(this,u).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(re)),s},fe=function(){y(this,l,ye).call(this);const t=$(this.options.staleTime,r(this,u));if(Z||r(this,m).isStale||!Fe(t))return;const i=st(r(this,m).dataUpdatedAt,t)+1;o(this,L,se.setTimeout(()=>{r(this,m).isStale||this.updateResult()},i))},de=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,u)):this.options.refetchInterval)??!1},pe=function(t){y(this,l,ve).call(this),o(this,j,t),!(Z||R(this.options.enabled,r(this,u))===!1||!Fe(r(this,j))||r(this,j)===0)&&o(this,U,se.setInterval(()=>{(this.options.refetchIntervalInBackground||at.isFocused())&&y(this,l,W).call(this)},r(this,j)))},be=function(){y(this,l,fe).call(this),y(this,l,pe).call(this,y(this,l,de).call(this))},ye=function(){r(this,L)&&(se.clearTimeout(r(this,L)),o(this,L,void 0))},ve=function(){r(this,U)&&(se.clearInterval(r(this,U)),o(this,U,void 0))},ge=function(){const t=r(this,E).getQueryCache().build(r(this,E),this.options);if(t===r(this,u))return;const s=r(this,u);o(this,u,t),o(this,G,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},Ae=function(t){Oe.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(r(this,m))}),r(this,E).getQueryCache().notify({query:r(this,u),type:"observerResultsUpdated"})})},Ue);function pt(e,t){return R(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ne(e,t){return pt(e,t)||e.state.data!==void 0&&me(e,t,t.refetchOnMount)}function me(e,t,s){if(R(t.enabled,e)!==!1&&$(t.staleTime,e)!=="static"){const i=typeof s=="function"?s(e):s;return i==="always"||i!==!1&&we(e,t)}return!1}function Qe(e,t,s,i){return(e!==t||R(i.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&we(e,s)}function we(e,t){return R(t.enabled,e)!==!1&&e.isStaleByTime($(t.staleTime,e))}function bt(e,t){return!ne(e.getCurrentResult(),t)}var yt=C.createContext(void 0),Be=e=>{const t=C.useContext(yt);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qe=C.createContext(!1),ze=()=>C.useContext(qe);qe.Provider;function vt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gt=C.createContext(vt()),Ve=()=>C.useContext(gt),He=(e,t,s)=>{const i=s!=null&&s.state.error&&typeof e.throwOnError=="function"?Se(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},Je=e=>{C.useEffect(()=>{e.clearReset()},[e])},Ke=({result:e,errorResetBoundary:t,throwOnError:s,query:i,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(n&&e.data===void 0||Se(s,[e.error,i])),We=e=>{if(e.suspense){const s=n=>n==="static"?n:Math.max(n??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...n)=>s(i(...n)):s(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},$e=(e,t)=>e.isLoading&&e.isFetching&&!t,Ze=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ee=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function mt(e,t,s){var S,b,N,K;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const i=ze(),n=Ve(),c=Be(),h=c.defaultQueryOptions(e);(b=(S=c.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||b.call(S,h);const a=c.getQueryCache().get(h.queryHash);process.env.NODE_ENV!=="production"&&(h.queryFn||console.error(`[${h.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),h._optimisticResults=i?"isRestoring":"optimistic",We(h),He(h,n,a),Je(n);const v=!c.getQueryCache().get(h.queryHash),[p]=C.useState(()=>new t(c,h)),g=p.getOptimisticResult(h),f=!i&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(O=>{const Y=f?p.subscribe(Oe.batchCalls(O)):re;return p.updateResult(),Y},[p,f]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),C.useEffect(()=>{p.setOptions(h)},[h,p]),Ze(h,g))throw Ee(h,p,n);if(Ke({result:g,errorResetBoundary:n,throwOnError:h.throwOnError,query:a,suspense:h.suspense}))throw g.error;if((K=(N=c.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||K.call(N,h,g),h.experimental_prefetchInRender&&!Z&&$e(g,i)){const O=v?Ee(h,p,n):a==null?void 0:a.promise;O==null||O.catch(re).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function Et(e,t){return mt(e,ke)}exports.QueryObserver=ke;exports.Subscribable=oe;exports.ensurePreventErrorBoundaryRetry=He;exports.ensureSuspenseTimers=We;exports.fetchOptimistic=Ee;exports.getHasError=Ke;exports.hashKey=rt;exports.keepPreviousData=nt;exports.noop=re;exports.notifyManager=Oe;exports.replaceEqualDeep=ie;exports.shallowEqualObjects=ne;exports.shouldSuspend=Ze;exports.shouldThrowError=Se;exports.useClearResetErrorBoundary=Je;exports.useIsRestoring=ze;exports.useQuery=Et;exports.useQueryClient=Be;exports.useQueryErrorResetBoundary=Ve;exports.willFetch=$e;
|