hanap-labs 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/components-Dg-DWzSo.js +5240 -0
- package/dist/chunks/composables-DKVarDSV.js +3600 -0
- package/dist/chunks/usePopup-DgM99GbC.js +1011 -0
- package/dist/components/index.js +1 -1
- package/dist/composables/index.js +3 -3
- package/dist/helpers/index.js +1 -1
- package/dist/index.js +11046 -7
- package/package.json +4 -18
- package/dist/chunks/components-Eyobrbab.js +0 -3260
- package/dist/chunks/composables-BGbskBoU.js +0 -261
- package/dist/chunks/usePopup-DyBxwBWk.js +0 -254
- /package/dist/chunks/{helpers-C1-KOauP.js → helpers-BjMDD0mP.js} +0 -0
|
@@ -0,0 +1,3600 @@
|
|
|
1
|
+
import * as e from "vue";
|
|
2
|
+
import { computed as t, reactive as n, ref as r, unref as i, watch as a } from "vue";
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
4
|
+
var o = Object.create, s = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, u = Object.getPrototypeOf, d = Object.prototype.hasOwnProperty, f = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), p = (e, t) => {
|
|
5
|
+
let n = {};
|
|
6
|
+
for (var r in e) s(n, r, {
|
|
7
|
+
get: e[r],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
return t || s(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, m = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = l(t), a = 0, o = i.length, u; a < o; a++) u = i[a], !d.call(e, u) && u !== n && s(e, u, {
|
|
13
|
+
get: ((e) => t[e]).bind(null, u),
|
|
14
|
+
enumerable: !(r = c(t, u)) || r.enumerable
|
|
15
|
+
});
|
|
16
|
+
return e;
|
|
17
|
+
}, h = (e, t, n) => (m(e, t, "default"), n && m(n, t, "default")), g = (e, t, n) => (n = e == null ? {} : o(u(e)), m(t || !e || !e.__esModule ? s(n, "default", {
|
|
18
|
+
value: e,
|
|
19
|
+
enumerable: !0
|
|
20
|
+
}) : n, e)), _ = "hanap-labs-theme", v = "hanap-labs-theme", y = "light", b = {}, x = !1, S = r(y), C = t(() => S.value === "system" ? D() === "dark" : S.value === "dark"), w = t(() => !C.value);
|
|
21
|
+
function T(e) {
|
|
22
|
+
if (typeof document > "u") return null;
|
|
23
|
+
let t = `; ${document.cookie}`.split(`; ${e}=`);
|
|
24
|
+
if (t.length === 2) {
|
|
25
|
+
let e = t.pop();
|
|
26
|
+
if (e) return e.split(";").shift() || null;
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
function E(e, t, n = {}) {
|
|
31
|
+
if (typeof document > "u") return;
|
|
32
|
+
let { path: r = "/", domain: i, secure: a, sameSite: o = "lax", maxAge: s = 31536e3 } = n, c = `${encodeURIComponent(e)}=${encodeURIComponent(t)}`;
|
|
33
|
+
r && (c += `; path=${r}`), i && (c += `; domain=${i}`), a && (c += "; secure"), o && (c += `; samesite=${o}`), s !== void 0 && (c += `; max-age=${s}`), document.cookie = c;
|
|
34
|
+
}
|
|
35
|
+
function D() {
|
|
36
|
+
return typeof window > "u" ? y : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
37
|
+
}
|
|
38
|
+
function O(e) {
|
|
39
|
+
if (typeof document > "u") return;
|
|
40
|
+
let t = document.documentElement;
|
|
41
|
+
t.classList.remove("light", "dark"), t.classList.add(e === "system" ? D() : e);
|
|
42
|
+
}
|
|
43
|
+
function k() {
|
|
44
|
+
if (typeof window > "u") return null;
|
|
45
|
+
let { storageKey: e = _, cookieKey: t = v } = b, n = T(t);
|
|
46
|
+
if (n && [
|
|
47
|
+
"light",
|
|
48
|
+
"dark",
|
|
49
|
+
"system"
|
|
50
|
+
].includes(n)) return n;
|
|
51
|
+
let r = typeof localStorage < "u" ? localStorage.getItem(e) : null;
|
|
52
|
+
return r && [
|
|
53
|
+
"light",
|
|
54
|
+
"dark",
|
|
55
|
+
"system"
|
|
56
|
+
].includes(r) ? r : null;
|
|
57
|
+
}
|
|
58
|
+
function ee() {
|
|
59
|
+
x || (x = !0, a(C, () => {
|
|
60
|
+
O(S.value);
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
function A(e) {
|
|
64
|
+
S.value = e;
|
|
65
|
+
let { storageKey: t = _, cookieKey: n = v, cookieOptions: r } = b;
|
|
66
|
+
typeof localStorage < "u" && localStorage.setItem(t, e), E(n, e, r);
|
|
67
|
+
}
|
|
68
|
+
function te() {
|
|
69
|
+
S.value === "light" ? A("dark") : S.value === "dark" ? A("light") : A(D() === "light" ? "dark" : "light");
|
|
70
|
+
}
|
|
71
|
+
function ne(e = {}) {
|
|
72
|
+
b = e;
|
|
73
|
+
let t = k();
|
|
74
|
+
if (t) S.value = t;
|
|
75
|
+
else {
|
|
76
|
+
let { defaultMode: e = y } = b;
|
|
77
|
+
S.value = e;
|
|
78
|
+
}
|
|
79
|
+
return O(S.value), ee(), {
|
|
80
|
+
mode: S,
|
|
81
|
+
isDark: C,
|
|
82
|
+
isLight: w,
|
|
83
|
+
toggle: te,
|
|
84
|
+
setMode: A
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
89
|
+
var j = class {
|
|
90
|
+
constructor() {
|
|
91
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
92
|
+
}
|
|
93
|
+
subscribe(e) {
|
|
94
|
+
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
95
|
+
this.listeners.delete(e), this.onUnsubscribe();
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
hasListeners() {
|
|
99
|
+
return this.listeners.size > 0;
|
|
100
|
+
}
|
|
101
|
+
onSubscribe() {}
|
|
102
|
+
onUnsubscribe() {}
|
|
103
|
+
}, re = new class extends j {
|
|
104
|
+
#e;
|
|
105
|
+
#t;
|
|
106
|
+
#n;
|
|
107
|
+
constructor() {
|
|
108
|
+
super(), this.#n = (e) => {
|
|
109
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
110
|
+
let t = () => e();
|
|
111
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
112
|
+
window.removeEventListener("visibilitychange", t);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
onSubscribe() {
|
|
118
|
+
this.#t || this.setEventListener(this.#n);
|
|
119
|
+
}
|
|
120
|
+
onUnsubscribe() {
|
|
121
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
122
|
+
}
|
|
123
|
+
setEventListener(e) {
|
|
124
|
+
this.#n = e, this.#t?.(), this.#t = e((e) => {
|
|
125
|
+
typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
setFocused(e) {
|
|
129
|
+
this.#e !== e && (this.#e = e, this.onFocus());
|
|
130
|
+
}
|
|
131
|
+
onFocus() {
|
|
132
|
+
let e = this.isFocused();
|
|
133
|
+
this.listeners.forEach((t) => {
|
|
134
|
+
t(e);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
isFocused() {
|
|
138
|
+
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
139
|
+
}
|
|
140
|
+
}(), ie = {
|
|
141
|
+
setTimeout: (e, t) => setTimeout(e, t),
|
|
142
|
+
clearTimeout: (e) => clearTimeout(e),
|
|
143
|
+
setInterval: (e, t) => setInterval(e, t),
|
|
144
|
+
clearInterval: (e) => clearInterval(e)
|
|
145
|
+
}, M = new class {
|
|
146
|
+
#e = ie;
|
|
147
|
+
#t = !1;
|
|
148
|
+
setTimeoutProvider(e) {
|
|
149
|
+
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
150
|
+
previous: this.#e,
|
|
151
|
+
provider: e
|
|
152
|
+
}), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
|
|
153
|
+
}
|
|
154
|
+
setTimeout(e, t) {
|
|
155
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
|
|
156
|
+
}
|
|
157
|
+
clearTimeout(e) {
|
|
158
|
+
this.#e.clearTimeout(e);
|
|
159
|
+
}
|
|
160
|
+
setInterval(e, t) {
|
|
161
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
|
|
162
|
+
}
|
|
163
|
+
clearInterval(e) {
|
|
164
|
+
this.#e.clearInterval(e);
|
|
165
|
+
}
|
|
166
|
+
}();
|
|
167
|
+
function ae(e) {
|
|
168
|
+
setTimeout(e, 0);
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
172
|
+
var oe = typeof window > "u" || "Deno" in globalThis;
|
|
173
|
+
function N() {}
|
|
174
|
+
function se(e, t) {
|
|
175
|
+
return typeof e == "function" ? e(t) : e;
|
|
176
|
+
}
|
|
177
|
+
function ce(e) {
|
|
178
|
+
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
179
|
+
}
|
|
180
|
+
function le(e, t) {
|
|
181
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
182
|
+
}
|
|
183
|
+
function P(e, t) {
|
|
184
|
+
return typeof e == "function" ? e(t) : e;
|
|
185
|
+
}
|
|
186
|
+
function F(e, t) {
|
|
187
|
+
return typeof e == "function" ? e(t) : e;
|
|
188
|
+
}
|
|
189
|
+
function ue(e, t) {
|
|
190
|
+
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
191
|
+
if (o) {
|
|
192
|
+
if (r) {
|
|
193
|
+
if (t.queryHash !== fe(o, t.options)) return !1;
|
|
194
|
+
} else if (!L(t.queryKey, o)) return !1;
|
|
195
|
+
}
|
|
196
|
+
if (n !== "all") {
|
|
197
|
+
let e = t.isActive();
|
|
198
|
+
if (n === "active" && !e || n === "inactive" && e) return !1;
|
|
199
|
+
}
|
|
200
|
+
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
201
|
+
}
|
|
202
|
+
function de(e, t) {
|
|
203
|
+
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
204
|
+
if (a) {
|
|
205
|
+
if (!t.options.mutationKey) return !1;
|
|
206
|
+
if (n) {
|
|
207
|
+
if (I(t.options.mutationKey) !== I(a)) return !1;
|
|
208
|
+
} else if (!L(t.options.mutationKey, a)) return !1;
|
|
209
|
+
}
|
|
210
|
+
return !(r && t.state.status !== r || i && !i(t));
|
|
211
|
+
}
|
|
212
|
+
function fe(e, t) {
|
|
213
|
+
return (t?.queryKeyHashFn || I)(e);
|
|
214
|
+
}
|
|
215
|
+
function I(e) {
|
|
216
|
+
return JSON.stringify(e, (e, t) => _e(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
217
|
+
}
|
|
218
|
+
function L(e, t) {
|
|
219
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => L(e[n], t[n])) : !1;
|
|
220
|
+
}
|
|
221
|
+
var pe = Object.prototype.hasOwnProperty;
|
|
222
|
+
function me(e, t, n = 0) {
|
|
223
|
+
if (e === t) return e;
|
|
224
|
+
if (n > 500) return t;
|
|
225
|
+
let r = ge(e) && ge(t);
|
|
226
|
+
if (!r && !(_e(e) && _e(t))) return t;
|
|
227
|
+
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
228
|
+
for (let l = 0; l < o; l++) {
|
|
229
|
+
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
230
|
+
if (u === d) {
|
|
231
|
+
s[o] = u, (r ? l < i : pe.call(e, o)) && c++;
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
235
|
+
s[o] = d;
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
let f = me(u, d, n + 1);
|
|
239
|
+
s[o] = f, f === u && c++;
|
|
240
|
+
}
|
|
241
|
+
return i === o && c === i ? e : s;
|
|
242
|
+
}
|
|
243
|
+
function he(e, t) {
|
|
244
|
+
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
245
|
+
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
246
|
+
return !0;
|
|
247
|
+
}
|
|
248
|
+
function ge(e) {
|
|
249
|
+
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
250
|
+
}
|
|
251
|
+
function _e(e) {
|
|
252
|
+
if (!ve(e)) return !1;
|
|
253
|
+
let t = e.constructor;
|
|
254
|
+
if (t === void 0) return !0;
|
|
255
|
+
let n = t.prototype;
|
|
256
|
+
return !(!ve(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
257
|
+
}
|
|
258
|
+
function ve(e) {
|
|
259
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
260
|
+
}
|
|
261
|
+
function ye(e) {
|
|
262
|
+
return new Promise((t) => {
|
|
263
|
+
M.setTimeout(t, e);
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
function be(e, t, n) {
|
|
267
|
+
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
268
|
+
if (n.structuralSharing !== !1) {
|
|
269
|
+
if (process.env.NODE_ENV !== "production") try {
|
|
270
|
+
return me(e, t);
|
|
271
|
+
} catch (e) {
|
|
272
|
+
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. [${n.queryHash}]: ${e}`), e;
|
|
273
|
+
}
|
|
274
|
+
return me(e, t);
|
|
275
|
+
}
|
|
276
|
+
return t;
|
|
277
|
+
}
|
|
278
|
+
function xe(e, t, n = 0) {
|
|
279
|
+
let r = [...e, t];
|
|
280
|
+
return n && r.length > n ? r.slice(1) : r;
|
|
281
|
+
}
|
|
282
|
+
function Se(e, t, n = 0) {
|
|
283
|
+
let r = [t, ...e];
|
|
284
|
+
return n && r.length > n ? r.slice(0, -1) : r;
|
|
285
|
+
}
|
|
286
|
+
var R = /* @__PURE__ */ Symbol();
|
|
287
|
+
function Ce(e, t) {
|
|
288
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === R && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === R ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
289
|
+
}
|
|
290
|
+
function we(e, t) {
|
|
291
|
+
return typeof e == "function" ? e(...t) : !!e;
|
|
292
|
+
}
|
|
293
|
+
function Te(e, t, n) {
|
|
294
|
+
let r = !1, i;
|
|
295
|
+
return Object.defineProperty(e, "signal", {
|
|
296
|
+
enumerable: !0,
|
|
297
|
+
get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
|
|
298
|
+
}), e;
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
302
|
+
var z = /* @__PURE__ */ (() => {
|
|
303
|
+
let e = () => oe;
|
|
304
|
+
return {
|
|
305
|
+
isServer() {
|
|
306
|
+
return e();
|
|
307
|
+
},
|
|
308
|
+
setIsServer(t) {
|
|
309
|
+
e = t;
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
})();
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
315
|
+
function Ee() {
|
|
316
|
+
let e, t, n = new Promise((n, r) => {
|
|
317
|
+
e = n, t = r;
|
|
318
|
+
});
|
|
319
|
+
n.status = "pending", n.catch(() => {});
|
|
320
|
+
function r(e) {
|
|
321
|
+
Object.assign(n, e), delete n.resolve, delete n.reject;
|
|
322
|
+
}
|
|
323
|
+
return n.resolve = (t) => {
|
|
324
|
+
r({
|
|
325
|
+
status: "fulfilled",
|
|
326
|
+
value: t
|
|
327
|
+
}), e(t);
|
|
328
|
+
}, n.reject = (e) => {
|
|
329
|
+
r({
|
|
330
|
+
status: "rejected",
|
|
331
|
+
reason: e
|
|
332
|
+
}), t(e);
|
|
333
|
+
}, n;
|
|
334
|
+
}
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
337
|
+
var De = ae;
|
|
338
|
+
function Oe() {
|
|
339
|
+
let e = [], t = 0, n = (e) => {
|
|
340
|
+
e();
|
|
341
|
+
}, r = (e) => {
|
|
342
|
+
e();
|
|
343
|
+
}, i = De, a = (r) => {
|
|
344
|
+
t ? e.push(r) : i(() => {
|
|
345
|
+
n(r);
|
|
346
|
+
});
|
|
347
|
+
}, o = () => {
|
|
348
|
+
let t = e;
|
|
349
|
+
e = [], t.length && i(() => {
|
|
350
|
+
r(() => {
|
|
351
|
+
t.forEach((e) => {
|
|
352
|
+
n(e);
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
return {
|
|
358
|
+
batch: (e) => {
|
|
359
|
+
let n;
|
|
360
|
+
t++;
|
|
361
|
+
try {
|
|
362
|
+
n = e();
|
|
363
|
+
} finally {
|
|
364
|
+
t--, t || o();
|
|
365
|
+
}
|
|
366
|
+
return n;
|
|
367
|
+
},
|
|
368
|
+
batchCalls: (e) => (...t) => {
|
|
369
|
+
a(() => {
|
|
370
|
+
e(...t);
|
|
371
|
+
});
|
|
372
|
+
},
|
|
373
|
+
schedule: a,
|
|
374
|
+
setNotifyFunction: (e) => {
|
|
375
|
+
n = e;
|
|
376
|
+
},
|
|
377
|
+
setBatchNotifyFunction: (e) => {
|
|
378
|
+
r = e;
|
|
379
|
+
},
|
|
380
|
+
setScheduler: (e) => {
|
|
381
|
+
i = e;
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
var B = Oe(), V = new class extends j {
|
|
386
|
+
#e = !0;
|
|
387
|
+
#t;
|
|
388
|
+
#n;
|
|
389
|
+
constructor() {
|
|
390
|
+
super(), this.#n = (e) => {
|
|
391
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
392
|
+
let t = () => e(!0), n = () => e(!1);
|
|
393
|
+
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
|
|
394
|
+
window.removeEventListener("online", t), window.removeEventListener("offline", n);
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
onSubscribe() {
|
|
400
|
+
this.#t || this.setEventListener(this.#n);
|
|
401
|
+
}
|
|
402
|
+
onUnsubscribe() {
|
|
403
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
404
|
+
}
|
|
405
|
+
setEventListener(e) {
|
|
406
|
+
this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
|
|
407
|
+
}
|
|
408
|
+
setOnline(e) {
|
|
409
|
+
this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
|
|
410
|
+
t(e);
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
isOnline() {
|
|
414
|
+
return this.#e;
|
|
415
|
+
}
|
|
416
|
+
}();
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
419
|
+
function ke(e) {
|
|
420
|
+
return Math.min(1e3 * 2 ** e, 3e4);
|
|
421
|
+
}
|
|
422
|
+
function Ae(e) {
|
|
423
|
+
return (e ?? "online") === "online" ? V.isOnline() : !0;
|
|
424
|
+
}
|
|
425
|
+
var je = class extends Error {
|
|
426
|
+
constructor(e) {
|
|
427
|
+
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
function Me(e) {
|
|
431
|
+
let t = !1, n = 0, r, i = Ee(), a = () => i.status !== "pending", o = (t) => {
|
|
432
|
+
if (!a()) {
|
|
433
|
+
let n = new je(t);
|
|
434
|
+
f(n), e.onCancel?.(n);
|
|
435
|
+
}
|
|
436
|
+
}, s = () => {
|
|
437
|
+
t = !0;
|
|
438
|
+
}, c = () => {
|
|
439
|
+
t = !1;
|
|
440
|
+
}, l = () => re.isFocused() && (e.networkMode === "always" || V.isOnline()) && e.canRun(), u = () => Ae(e.networkMode) && e.canRun(), d = (e) => {
|
|
441
|
+
a() || (r?.(), i.resolve(e));
|
|
442
|
+
}, f = (e) => {
|
|
443
|
+
a() || (r?.(), i.reject(e));
|
|
444
|
+
}, p = () => new Promise((t) => {
|
|
445
|
+
r = (e) => {
|
|
446
|
+
(a() || l()) && t(e);
|
|
447
|
+
}, e.onPause?.();
|
|
448
|
+
}).then(() => {
|
|
449
|
+
r = void 0, a() || e.onContinue?.();
|
|
450
|
+
}), m = () => {
|
|
451
|
+
if (a()) return;
|
|
452
|
+
let r, i = n === 0 ? e.initialPromise : void 0;
|
|
453
|
+
try {
|
|
454
|
+
r = i ?? e.fn();
|
|
455
|
+
} catch (e) {
|
|
456
|
+
r = Promise.reject(e);
|
|
457
|
+
}
|
|
458
|
+
Promise.resolve(r).then(d).catch((r) => {
|
|
459
|
+
if (a()) return;
|
|
460
|
+
let i = e.retry ?? (z.isServer() ? 0 : 3), o = e.retryDelay ?? ke, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
461
|
+
if (t || !c) {
|
|
462
|
+
f(r);
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
n++, e.onFail?.(n, r), ye(s).then(() => l() ? void 0 : p()).then(() => {
|
|
466
|
+
t ? f(r) : m();
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
return {
|
|
471
|
+
promise: i,
|
|
472
|
+
status: () => i.status,
|
|
473
|
+
cancel: o,
|
|
474
|
+
continue: () => (r?.(), i),
|
|
475
|
+
cancelRetry: s,
|
|
476
|
+
continueRetry: c,
|
|
477
|
+
canStart: u,
|
|
478
|
+
start: () => (u() ? m() : p().then(m), i)
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
483
|
+
var Ne = class {
|
|
484
|
+
#e;
|
|
485
|
+
destroy() {
|
|
486
|
+
this.clearGcTimeout();
|
|
487
|
+
}
|
|
488
|
+
scheduleGc() {
|
|
489
|
+
this.clearGcTimeout(), ce(this.gcTime) && (this.#e = M.setTimeout(() => {
|
|
490
|
+
this.optionalRemove();
|
|
491
|
+
}, this.gcTime));
|
|
492
|
+
}
|
|
493
|
+
updateGcTime(e) {
|
|
494
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (z.isServer() ? Infinity : 300 * 1e3));
|
|
495
|
+
}
|
|
496
|
+
clearGcTimeout() {
|
|
497
|
+
this.#e !== void 0 && (M.clearTimeout(this.#e), this.#e = void 0);
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
502
|
+
function Pe(e) {
|
|
503
|
+
return { onFetch: (t, n) => {
|
|
504
|
+
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
505
|
+
pages: [],
|
|
506
|
+
pageParams: []
|
|
507
|
+
}, c = 0, l = async () => {
|
|
508
|
+
let n = !1, l = (e) => {
|
|
509
|
+
Te(e, () => t.signal, () => n = !0);
|
|
510
|
+
}, u = Ce(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
511
|
+
if (n) return Promise.reject(t.signal.reason);
|
|
512
|
+
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
513
|
+
let a = await u((() => {
|
|
514
|
+
let e = {
|
|
515
|
+
client: t.client,
|
|
516
|
+
queryKey: t.queryKey,
|
|
517
|
+
pageParam: r,
|
|
518
|
+
direction: i ? "backward" : "forward",
|
|
519
|
+
meta: t.options.meta
|
|
520
|
+
};
|
|
521
|
+
return l(e), e;
|
|
522
|
+
})()), { maxPages: o } = t.options, s = i ? Se : xe;
|
|
523
|
+
return {
|
|
524
|
+
pages: s(e.pages, a, o),
|
|
525
|
+
pageParams: s(e.pageParams, r, o)
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
if (i && a.length) {
|
|
529
|
+
let e = i === "backward", t = e ? Ie : Fe, n = {
|
|
530
|
+
pages: a,
|
|
531
|
+
pageParams: o
|
|
532
|
+
};
|
|
533
|
+
s = await d(n, t(r, n), e);
|
|
534
|
+
} else {
|
|
535
|
+
let t = e ?? a.length;
|
|
536
|
+
do {
|
|
537
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Fe(r, s);
|
|
538
|
+
if (c > 0 && e == null) break;
|
|
539
|
+
s = await d(s, e), c++;
|
|
540
|
+
} while (c < t);
|
|
541
|
+
}
|
|
542
|
+
return s;
|
|
543
|
+
};
|
|
544
|
+
t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
|
|
545
|
+
client: t.client,
|
|
546
|
+
queryKey: t.queryKey,
|
|
547
|
+
meta: t.options.meta,
|
|
548
|
+
signal: t.signal
|
|
549
|
+
}, n) : t.fetchFn = l;
|
|
550
|
+
} };
|
|
551
|
+
}
|
|
552
|
+
function Fe(e, { pages: t, pageParams: n }) {
|
|
553
|
+
let r = t.length - 1;
|
|
554
|
+
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
555
|
+
}
|
|
556
|
+
function Ie(e, { pages: t, pageParams: n }) {
|
|
557
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
558
|
+
}
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
561
|
+
var Le = class extends Ne {
|
|
562
|
+
#e;
|
|
563
|
+
#t;
|
|
564
|
+
#n;
|
|
565
|
+
#r;
|
|
566
|
+
#i;
|
|
567
|
+
#a;
|
|
568
|
+
#o;
|
|
569
|
+
#s;
|
|
570
|
+
constructor(e) {
|
|
571
|
+
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Be(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
572
|
+
}
|
|
573
|
+
get meta() {
|
|
574
|
+
return this.options.meta;
|
|
575
|
+
}
|
|
576
|
+
get queryType() {
|
|
577
|
+
return this.#e;
|
|
578
|
+
}
|
|
579
|
+
get promise() {
|
|
580
|
+
return this.#a?.promise;
|
|
581
|
+
}
|
|
582
|
+
setOptions(e) {
|
|
583
|
+
if (this.options = {
|
|
584
|
+
...this.#o,
|
|
585
|
+
...e
|
|
586
|
+
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
587
|
+
let e = Be(this.options);
|
|
588
|
+
e.data !== void 0 && (this.setState(ze(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
optionalRemove() {
|
|
592
|
+
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
593
|
+
}
|
|
594
|
+
setData(e, t) {
|
|
595
|
+
let n = be(this.state.data, e, this.options);
|
|
596
|
+
return this.#l({
|
|
597
|
+
data: n,
|
|
598
|
+
type: "success",
|
|
599
|
+
dataUpdatedAt: t?.updatedAt,
|
|
600
|
+
manual: t?.manual
|
|
601
|
+
}), n;
|
|
602
|
+
}
|
|
603
|
+
setState(e) {
|
|
604
|
+
this.#l({
|
|
605
|
+
type: "setState",
|
|
606
|
+
state: e
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
cancel(e) {
|
|
610
|
+
let t = this.#a?.promise;
|
|
611
|
+
return this.#a?.cancel(e), t ? t.then(N).catch(N) : Promise.resolve();
|
|
612
|
+
}
|
|
613
|
+
destroy() {
|
|
614
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
615
|
+
}
|
|
616
|
+
get resetState() {
|
|
617
|
+
return this.#t;
|
|
618
|
+
}
|
|
619
|
+
reset() {
|
|
620
|
+
this.destroy(), this.setState(this.resetState);
|
|
621
|
+
}
|
|
622
|
+
isActive() {
|
|
623
|
+
return this.observers.some((e) => F(e.options.enabled, this) !== !1);
|
|
624
|
+
}
|
|
625
|
+
isDisabled() {
|
|
626
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === R || !this.isFetched();
|
|
627
|
+
}
|
|
628
|
+
isFetched() {
|
|
629
|
+
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
630
|
+
}
|
|
631
|
+
isStatic() {
|
|
632
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => P(e.options.staleTime, this) === "static") : !1;
|
|
633
|
+
}
|
|
634
|
+
isStale() {
|
|
635
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
636
|
+
}
|
|
637
|
+
isStaleByTime(e = 0) {
|
|
638
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !le(this.state.dataUpdatedAt, e);
|
|
639
|
+
}
|
|
640
|
+
onFocus() {
|
|
641
|
+
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
642
|
+
}
|
|
643
|
+
onOnline() {
|
|
644
|
+
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
645
|
+
}
|
|
646
|
+
addObserver(e) {
|
|
647
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
|
|
648
|
+
type: "observerAdded",
|
|
649
|
+
query: this,
|
|
650
|
+
observer: e
|
|
651
|
+
}));
|
|
652
|
+
}
|
|
653
|
+
removeObserver(e) {
|
|
654
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
|
|
655
|
+
type: "observerRemoved",
|
|
656
|
+
query: this,
|
|
657
|
+
observer: e
|
|
658
|
+
}));
|
|
659
|
+
}
|
|
660
|
+
getObserversCount() {
|
|
661
|
+
return this.observers.length;
|
|
662
|
+
}
|
|
663
|
+
#c() {
|
|
664
|
+
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
665
|
+
}
|
|
666
|
+
invalidate() {
|
|
667
|
+
this.state.isInvalidated || this.#l({ type: "invalidate" });
|
|
668
|
+
}
|
|
669
|
+
async fetch(e, t) {
|
|
670
|
+
if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
|
|
671
|
+
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
672
|
+
else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
|
|
673
|
+
}
|
|
674
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
675
|
+
let e = this.observers.find((e) => e.options.queryFn);
|
|
676
|
+
e && this.setOptions(e.options);
|
|
677
|
+
}
|
|
678
|
+
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
|
|
679
|
+
let n = new AbortController(), r = (e) => {
|
|
680
|
+
Object.defineProperty(e, "signal", {
|
|
681
|
+
enumerable: !0,
|
|
682
|
+
get: () => (this.#s = !0, n.signal)
|
|
683
|
+
});
|
|
684
|
+
}, i = () => {
|
|
685
|
+
let e = Ce(this.options, t), n = (() => {
|
|
686
|
+
let e = {
|
|
687
|
+
client: this.#i,
|
|
688
|
+
queryKey: this.queryKey,
|
|
689
|
+
meta: this.meta
|
|
690
|
+
};
|
|
691
|
+
return r(e), e;
|
|
692
|
+
})();
|
|
693
|
+
return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
694
|
+
}, a = (() => {
|
|
695
|
+
let e = {
|
|
696
|
+
fetchOptions: t,
|
|
697
|
+
options: this.options,
|
|
698
|
+
queryKey: this.queryKey,
|
|
699
|
+
client: this.#i,
|
|
700
|
+
state: this.state,
|
|
701
|
+
fetchFn: i
|
|
702
|
+
};
|
|
703
|
+
return r(e), e;
|
|
704
|
+
})();
|
|
705
|
+
(this.#e === "infinite" ? Pe(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
|
|
706
|
+
type: "fetch",
|
|
707
|
+
meta: a.fetchOptions?.meta
|
|
708
|
+
}), this.#a = Me({
|
|
709
|
+
initialPromise: t?.initialPromise,
|
|
710
|
+
fn: a.fetchFn,
|
|
711
|
+
onCancel: (e) => {
|
|
712
|
+
e instanceof je && e.revert && this.setState({
|
|
713
|
+
...this.#n,
|
|
714
|
+
fetchStatus: "idle"
|
|
715
|
+
}), n.abort();
|
|
716
|
+
},
|
|
717
|
+
onFail: (e, t) => {
|
|
718
|
+
this.#l({
|
|
719
|
+
type: "failed",
|
|
720
|
+
failureCount: e,
|
|
721
|
+
error: t
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
onPause: () => {
|
|
725
|
+
this.#l({ type: "pause" });
|
|
726
|
+
},
|
|
727
|
+
onContinue: () => {
|
|
728
|
+
this.#l({ type: "continue" });
|
|
729
|
+
},
|
|
730
|
+
retry: a.options.retry,
|
|
731
|
+
retryDelay: a.options.retryDelay,
|
|
732
|
+
networkMode: a.options.networkMode,
|
|
733
|
+
canRun: () => !0
|
|
734
|
+
});
|
|
735
|
+
try {
|
|
736
|
+
let e = await this.#a.start();
|
|
737
|
+
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
738
|
+
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
739
|
+
} catch (e) {
|
|
740
|
+
if (e instanceof je) {
|
|
741
|
+
if (e.silent) return this.#a.promise;
|
|
742
|
+
if (e.revert) {
|
|
743
|
+
if (this.state.data === void 0) throw e;
|
|
744
|
+
return this.state.data;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
throw this.#l({
|
|
748
|
+
type: "error",
|
|
749
|
+
error: e
|
|
750
|
+
}), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
|
|
751
|
+
} finally {
|
|
752
|
+
this.scheduleGc();
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
#l(e) {
|
|
756
|
+
let t = (t) => {
|
|
757
|
+
switch (e.type) {
|
|
758
|
+
case "failed": return {
|
|
759
|
+
...t,
|
|
760
|
+
fetchFailureCount: e.failureCount,
|
|
761
|
+
fetchFailureReason: e.error
|
|
762
|
+
};
|
|
763
|
+
case "pause": return {
|
|
764
|
+
...t,
|
|
765
|
+
fetchStatus: "paused"
|
|
766
|
+
};
|
|
767
|
+
case "continue": return {
|
|
768
|
+
...t,
|
|
769
|
+
fetchStatus: "fetching"
|
|
770
|
+
};
|
|
771
|
+
case "fetch": return {
|
|
772
|
+
...t,
|
|
773
|
+
...Re(t.data, this.options),
|
|
774
|
+
fetchMeta: e.meta ?? null
|
|
775
|
+
};
|
|
776
|
+
case "success":
|
|
777
|
+
let n = {
|
|
778
|
+
...t,
|
|
779
|
+
...ze(e.data, e.dataUpdatedAt),
|
|
780
|
+
dataUpdateCount: t.dataUpdateCount + 1,
|
|
781
|
+
...!e.manual && {
|
|
782
|
+
fetchStatus: "idle",
|
|
783
|
+
fetchFailureCount: 0,
|
|
784
|
+
fetchFailureReason: null
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
return this.#n = e.manual ? n : void 0, n;
|
|
788
|
+
case "error":
|
|
789
|
+
let r = e.error;
|
|
790
|
+
return {
|
|
791
|
+
...t,
|
|
792
|
+
error: r,
|
|
793
|
+
errorUpdateCount: t.errorUpdateCount + 1,
|
|
794
|
+
errorUpdatedAt: Date.now(),
|
|
795
|
+
fetchFailureCount: t.fetchFailureCount + 1,
|
|
796
|
+
fetchFailureReason: r,
|
|
797
|
+
fetchStatus: "idle",
|
|
798
|
+
status: "error",
|
|
799
|
+
isInvalidated: !0
|
|
800
|
+
};
|
|
801
|
+
case "invalidate": return {
|
|
802
|
+
...t,
|
|
803
|
+
isInvalidated: !0
|
|
804
|
+
};
|
|
805
|
+
case "setState": return {
|
|
806
|
+
...t,
|
|
807
|
+
...e.state
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
this.state = t(this.state), B.batch(() => {
|
|
812
|
+
this.observers.forEach((e) => {
|
|
813
|
+
e.onQueryUpdate();
|
|
814
|
+
}), this.#r.notify({
|
|
815
|
+
query: this,
|
|
816
|
+
type: "updated",
|
|
817
|
+
action: e
|
|
818
|
+
});
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
function Re(e, t) {
|
|
823
|
+
return {
|
|
824
|
+
fetchFailureCount: 0,
|
|
825
|
+
fetchFailureReason: null,
|
|
826
|
+
fetchStatus: Ae(t.networkMode) ? "fetching" : "paused",
|
|
827
|
+
...e === void 0 && {
|
|
828
|
+
error: null,
|
|
829
|
+
status: "pending"
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function ze(e, t) {
|
|
834
|
+
return {
|
|
835
|
+
data: e,
|
|
836
|
+
dataUpdatedAt: t ?? Date.now(),
|
|
837
|
+
error: null,
|
|
838
|
+
isInvalidated: !1,
|
|
839
|
+
status: "success"
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function Be(e) {
|
|
843
|
+
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
844
|
+
return {
|
|
845
|
+
data: t,
|
|
846
|
+
dataUpdateCount: 0,
|
|
847
|
+
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
848
|
+
error: null,
|
|
849
|
+
errorUpdateCount: 0,
|
|
850
|
+
errorUpdatedAt: 0,
|
|
851
|
+
fetchFailureCount: 0,
|
|
852
|
+
fetchFailureReason: null,
|
|
853
|
+
fetchMeta: null,
|
|
854
|
+
isInvalidated: !1,
|
|
855
|
+
status: n ? "success" : "pending",
|
|
856
|
+
fetchStatus: "idle"
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
//#endregion
|
|
860
|
+
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
861
|
+
var Ve = class extends j {
|
|
862
|
+
constructor(e, t) {
|
|
863
|
+
super(), this.options = t, this.#e = e, this.#s = null, this.#o = Ee(), this.bindMethods(), this.setOptions(t);
|
|
864
|
+
}
|
|
865
|
+
#e;
|
|
866
|
+
#t = void 0;
|
|
867
|
+
#n = void 0;
|
|
868
|
+
#r = void 0;
|
|
869
|
+
#i;
|
|
870
|
+
#a;
|
|
871
|
+
#o;
|
|
872
|
+
#s;
|
|
873
|
+
#c;
|
|
874
|
+
#l;
|
|
875
|
+
#u;
|
|
876
|
+
#d;
|
|
877
|
+
#f;
|
|
878
|
+
#p;
|
|
879
|
+
#m = /* @__PURE__ */ new Set();
|
|
880
|
+
bindMethods() {
|
|
881
|
+
this.refetch = this.refetch.bind(this);
|
|
882
|
+
}
|
|
883
|
+
onSubscribe() {
|
|
884
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Ue(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
885
|
+
}
|
|
886
|
+
onUnsubscribe() {
|
|
887
|
+
this.hasListeners() || this.destroy();
|
|
888
|
+
}
|
|
889
|
+
shouldFetchOnReconnect() {
|
|
890
|
+
return We(this.#t, this.options, this.options.refetchOnReconnect);
|
|
891
|
+
}
|
|
892
|
+
shouldFetchOnWindowFocus() {
|
|
893
|
+
return We(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
894
|
+
}
|
|
895
|
+
destroy() {
|
|
896
|
+
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
897
|
+
}
|
|
898
|
+
setOptions(e) {
|
|
899
|
+
let t = this.options, n = this.#t;
|
|
900
|
+
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof F(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
|
|
901
|
+
this.#S(), this.#t.setOptions(this.options), t._defaulted && !he(this.options, t) && this.#e.getQueryCache().notify({
|
|
902
|
+
type: "observerOptionsUpdated",
|
|
903
|
+
query: this.#t,
|
|
904
|
+
observer: this
|
|
905
|
+
});
|
|
906
|
+
let r = this.hasListeners();
|
|
907
|
+
r && Ge(this.#t, n, this.options, t) && this.#h(), this.updateResult(), r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(t.enabled, this.#t) || P(this.options.staleTime, this.#t) !== P(t.staleTime, this.#t)) && this.#g();
|
|
908
|
+
let i = this.#_();
|
|
909
|
+
r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
|
|
910
|
+
}
|
|
911
|
+
getOptimisticResult(e) {
|
|
912
|
+
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
|
|
913
|
+
return qe(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
|
|
914
|
+
}
|
|
915
|
+
getCurrentResult() {
|
|
916
|
+
return this.#r;
|
|
917
|
+
}
|
|
918
|
+
trackResult(e, t) {
|
|
919
|
+
return new Proxy(e, { get: (e, n) => (this.trackProp(n), t?.(n), n === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && this.#o.status === "pending" && this.#o.reject(/* @__PURE__ */ Error("experimental_prefetchInRender feature flag is not enabled"))), Reflect.get(e, n)) });
|
|
920
|
+
}
|
|
921
|
+
trackProp(e) {
|
|
922
|
+
this.#m.add(e);
|
|
923
|
+
}
|
|
924
|
+
getCurrentQuery() {
|
|
925
|
+
return this.#t;
|
|
926
|
+
}
|
|
927
|
+
refetch({ ...e } = {}) {
|
|
928
|
+
return this.fetch({ ...e });
|
|
929
|
+
}
|
|
930
|
+
fetchOptimistic(e) {
|
|
931
|
+
let t = this.#e.defaultQueryOptions(e), n = this.#e.getQueryCache().build(this.#e, t);
|
|
932
|
+
return n.fetch().then(() => this.createResult(n, t));
|
|
933
|
+
}
|
|
934
|
+
fetch(e) {
|
|
935
|
+
return this.#h({
|
|
936
|
+
...e,
|
|
937
|
+
cancelRefetch: e.cancelRefetch ?? !0
|
|
938
|
+
}).then(() => (this.updateResult(), this.#r));
|
|
939
|
+
}
|
|
940
|
+
#h(e) {
|
|
941
|
+
this.#S();
|
|
942
|
+
let t = this.#t.fetch(this.options, e);
|
|
943
|
+
return e?.throwOnError || (t = t.catch(N)), t;
|
|
944
|
+
}
|
|
945
|
+
#g() {
|
|
946
|
+
this.#b();
|
|
947
|
+
let e = P(this.options.staleTime, this.#t);
|
|
948
|
+
if (z.isServer() || this.#r.isStale || !ce(e)) return;
|
|
949
|
+
let t = le(this.#r.dataUpdatedAt, e) + 1;
|
|
950
|
+
this.#d = M.setTimeout(() => {
|
|
951
|
+
this.#r.isStale || this.updateResult();
|
|
952
|
+
}, t);
|
|
953
|
+
}
|
|
954
|
+
#_() {
|
|
955
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
956
|
+
}
|
|
957
|
+
#v(e) {
|
|
958
|
+
this.#x(), this.#p = e, !(z.isServer() || F(this.options.enabled, this.#t) === !1 || !ce(this.#p) || this.#p === 0) && (this.#f = M.setInterval(() => {
|
|
959
|
+
(this.options.refetchIntervalInBackground || re.isFocused()) && this.#h();
|
|
960
|
+
}, this.#p));
|
|
961
|
+
}
|
|
962
|
+
#y() {
|
|
963
|
+
this.#g(), this.#v(this.#_());
|
|
964
|
+
}
|
|
965
|
+
#b() {
|
|
966
|
+
this.#d !== void 0 && (M.clearTimeout(this.#d), this.#d = void 0);
|
|
967
|
+
}
|
|
968
|
+
#x() {
|
|
969
|
+
this.#f !== void 0 && (M.clearInterval(this.#f), this.#f = void 0);
|
|
970
|
+
}
|
|
971
|
+
createResult(e, t) {
|
|
972
|
+
let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
|
|
973
|
+
if (t._optimisticResults) {
|
|
974
|
+
let i = this.hasListeners(), a = !i && Ue(e, t), o = i && Ge(e, n, t, r);
|
|
975
|
+
(a || o) && (l = {
|
|
976
|
+
...l,
|
|
977
|
+
...Re(c.data, e.options)
|
|
978
|
+
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
|
|
979
|
+
}
|
|
980
|
+
let { error: f, errorUpdatedAt: p, status: m } = l;
|
|
981
|
+
d = l.data;
|
|
982
|
+
let h = !1;
|
|
983
|
+
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
|
|
984
|
+
let e;
|
|
985
|
+
i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#u?.state.data, this.#u) : t.placeholderData, e !== void 0 && (m = "success", d = be(i?.data, e, t), u = !0);
|
|
986
|
+
}
|
|
987
|
+
if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
|
|
988
|
+
else try {
|
|
989
|
+
this.#c = t.select, d = t.select(d), d = be(i?.data, d, t), this.#l = d, this.#s = null;
|
|
990
|
+
} catch (e) {
|
|
991
|
+
this.#s = e;
|
|
992
|
+
}
|
|
993
|
+
this.#s && (f = this.#s, d = this.#l, p = Date.now(), m = "error");
|
|
994
|
+
let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", y = _ && g, b = d !== void 0, x = {
|
|
995
|
+
status: m,
|
|
996
|
+
fetchStatus: l.fetchStatus,
|
|
997
|
+
isPending: _,
|
|
998
|
+
isSuccess: m === "success",
|
|
999
|
+
isError: v,
|
|
1000
|
+
isInitialLoading: y,
|
|
1001
|
+
isLoading: y,
|
|
1002
|
+
data: d,
|
|
1003
|
+
dataUpdatedAt: l.dataUpdatedAt,
|
|
1004
|
+
error: f,
|
|
1005
|
+
errorUpdatedAt: p,
|
|
1006
|
+
failureCount: l.fetchFailureCount,
|
|
1007
|
+
failureReason: l.fetchFailureReason,
|
|
1008
|
+
errorUpdateCount: l.errorUpdateCount,
|
|
1009
|
+
isFetched: e.isFetched(),
|
|
1010
|
+
isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
|
|
1011
|
+
isFetching: g,
|
|
1012
|
+
isRefetching: g && !_,
|
|
1013
|
+
isLoadingError: v && !b,
|
|
1014
|
+
isPaused: l.fetchStatus === "paused",
|
|
1015
|
+
isPlaceholderData: u,
|
|
1016
|
+
isRefetchError: v && b,
|
|
1017
|
+
isStale: Ke(e, t),
|
|
1018
|
+
refetch: this.refetch,
|
|
1019
|
+
promise: this.#o,
|
|
1020
|
+
isEnabled: F(t.enabled, e) !== !1
|
|
1021
|
+
};
|
|
1022
|
+
if (this.options.experimental_prefetchInRender) {
|
|
1023
|
+
let t = x.data !== void 0, r = x.status === "error" && !t, i = (e) => {
|
|
1024
|
+
r ? e.reject(x.error) : t && e.resolve(x.data);
|
|
1025
|
+
}, a = () => {
|
|
1026
|
+
i(this.#o = x.promise = Ee());
|
|
1027
|
+
}, o = this.#o;
|
|
1028
|
+
switch (o.status) {
|
|
1029
|
+
case "pending":
|
|
1030
|
+
e.queryHash === n.queryHash && i(o);
|
|
1031
|
+
break;
|
|
1032
|
+
case "fulfilled":
|
|
1033
|
+
(r || x.data !== o.value) && a();
|
|
1034
|
+
break;
|
|
1035
|
+
case "rejected":
|
|
1036
|
+
(!r || x.error !== o.reason) && a();
|
|
1037
|
+
break;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
return x;
|
|
1041
|
+
}
|
|
1042
|
+
updateResult() {
|
|
1043
|
+
let e = this.#r, t = this.createResult(this.#t, this.options);
|
|
1044
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !he(t, e) && (this.#r = t, this.#C({ listeners: (() => {
|
|
1045
|
+
if (!e) return !0;
|
|
1046
|
+
let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
|
|
1047
|
+
if (n === "all" || !n && !this.#m.size) return !0;
|
|
1048
|
+
let r = new Set(n ?? this.#m);
|
|
1049
|
+
return this.options.throwOnError && r.add("error"), Object.keys(this.#r).some((t) => {
|
|
1050
|
+
let n = t;
|
|
1051
|
+
return this.#r[n] !== e[n] && r.has(n);
|
|
1052
|
+
});
|
|
1053
|
+
})() }));
|
|
1054
|
+
}
|
|
1055
|
+
#S() {
|
|
1056
|
+
let e = this.#e.getQueryCache().build(this.#e, this.options);
|
|
1057
|
+
if (e === this.#t) return;
|
|
1058
|
+
let t = this.#t;
|
|
1059
|
+
this.#t = e, this.#n = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
|
|
1060
|
+
}
|
|
1061
|
+
onQueryUpdate() {
|
|
1062
|
+
this.updateResult(), this.hasListeners() && this.#y();
|
|
1063
|
+
}
|
|
1064
|
+
#C(e) {
|
|
1065
|
+
B.batch(() => {
|
|
1066
|
+
e.listeners && this.listeners.forEach((e) => {
|
|
1067
|
+
e(this.#r);
|
|
1068
|
+
}), this.#e.getQueryCache().notify({
|
|
1069
|
+
query: this.#t,
|
|
1070
|
+
type: "observerResultsUpdated"
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
function He(e, t) {
|
|
1076
|
+
return F(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && F(t.retryOnMount, e) === !1);
|
|
1077
|
+
}
|
|
1078
|
+
function Ue(e, t) {
|
|
1079
|
+
return He(e, t) || e.state.data !== void 0 && We(e, t, t.refetchOnMount);
|
|
1080
|
+
}
|
|
1081
|
+
function We(e, t, n) {
|
|
1082
|
+
if (F(t.enabled, e) !== !1 && P(t.staleTime, e) !== "static") {
|
|
1083
|
+
let r = typeof n == "function" ? n(e) : n;
|
|
1084
|
+
return r === "always" || r !== !1 && Ke(e, t);
|
|
1085
|
+
}
|
|
1086
|
+
return !1;
|
|
1087
|
+
}
|
|
1088
|
+
function Ge(e, t, n, r) {
|
|
1089
|
+
return (e !== t || F(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Ke(e, n);
|
|
1090
|
+
}
|
|
1091
|
+
function Ke(e, t) {
|
|
1092
|
+
return F(t.enabled, e) !== !1 && e.isStaleByTime(P(t.staleTime, e));
|
|
1093
|
+
}
|
|
1094
|
+
function qe(e, t) {
|
|
1095
|
+
return !he(e.getCurrentResult(), t);
|
|
1096
|
+
}
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
1099
|
+
var Je = class extends Ne {
|
|
1100
|
+
#e;
|
|
1101
|
+
#t;
|
|
1102
|
+
#n;
|
|
1103
|
+
#r;
|
|
1104
|
+
constructor(e) {
|
|
1105
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Ye(), this.setOptions(e.options), this.scheduleGc();
|
|
1106
|
+
}
|
|
1107
|
+
setOptions(e) {
|
|
1108
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
1109
|
+
}
|
|
1110
|
+
get meta() {
|
|
1111
|
+
return this.options.meta;
|
|
1112
|
+
}
|
|
1113
|
+
addObserver(e) {
|
|
1114
|
+
this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
1115
|
+
type: "observerAdded",
|
|
1116
|
+
mutation: this,
|
|
1117
|
+
observer: e
|
|
1118
|
+
}));
|
|
1119
|
+
}
|
|
1120
|
+
removeObserver(e) {
|
|
1121
|
+
this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
|
|
1122
|
+
type: "observerRemoved",
|
|
1123
|
+
mutation: this,
|
|
1124
|
+
observer: e
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
optionalRemove() {
|
|
1128
|
+
this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
|
|
1129
|
+
}
|
|
1130
|
+
continue() {
|
|
1131
|
+
return this.#r?.continue() ?? this.execute(this.state.variables);
|
|
1132
|
+
}
|
|
1133
|
+
async execute(e) {
|
|
1134
|
+
let t = () => {
|
|
1135
|
+
this.#i({ type: "continue" });
|
|
1136
|
+
}, n = {
|
|
1137
|
+
client: this.#e,
|
|
1138
|
+
meta: this.options.meta,
|
|
1139
|
+
mutationKey: this.options.mutationKey
|
|
1140
|
+
};
|
|
1141
|
+
this.#r = Me({
|
|
1142
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
1143
|
+
onFail: (e, t) => {
|
|
1144
|
+
this.#i({
|
|
1145
|
+
type: "failed",
|
|
1146
|
+
failureCount: e,
|
|
1147
|
+
error: t
|
|
1148
|
+
});
|
|
1149
|
+
},
|
|
1150
|
+
onPause: () => {
|
|
1151
|
+
this.#i({ type: "pause" });
|
|
1152
|
+
},
|
|
1153
|
+
onContinue: t,
|
|
1154
|
+
retry: this.options.retry ?? 0,
|
|
1155
|
+
retryDelay: this.options.retryDelay,
|
|
1156
|
+
networkMode: this.options.networkMode,
|
|
1157
|
+
canRun: () => this.#n.canRun(this)
|
|
1158
|
+
});
|
|
1159
|
+
let r = this.state.status === "pending", i = !this.#r.canStart();
|
|
1160
|
+
try {
|
|
1161
|
+
if (r) t();
|
|
1162
|
+
else {
|
|
1163
|
+
this.#i({
|
|
1164
|
+
type: "pending",
|
|
1165
|
+
variables: e,
|
|
1166
|
+
isPaused: i
|
|
1167
|
+
}), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
|
|
1168
|
+
let t = await this.options.onMutate?.(e, n);
|
|
1169
|
+
t !== this.state.context && this.#i({
|
|
1170
|
+
type: "pending",
|
|
1171
|
+
context: t,
|
|
1172
|
+
variables: e,
|
|
1173
|
+
isPaused: i
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
let a = await this.#r.start();
|
|
1177
|
+
return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
|
|
1178
|
+
type: "success",
|
|
1179
|
+
data: a
|
|
1180
|
+
}), a;
|
|
1181
|
+
} catch (t) {
|
|
1182
|
+
try {
|
|
1183
|
+
await this.#n.config.onError?.(t, e, this.state.context, this, n);
|
|
1184
|
+
} catch (e) {
|
|
1185
|
+
Promise.reject(e);
|
|
1186
|
+
}
|
|
1187
|
+
try {
|
|
1188
|
+
await this.options.onError?.(t, e, this.state.context, n);
|
|
1189
|
+
} catch (e) {
|
|
1190
|
+
Promise.reject(e);
|
|
1191
|
+
}
|
|
1192
|
+
try {
|
|
1193
|
+
await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
1194
|
+
} catch (e) {
|
|
1195
|
+
Promise.reject(e);
|
|
1196
|
+
}
|
|
1197
|
+
try {
|
|
1198
|
+
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
1199
|
+
} catch (e) {
|
|
1200
|
+
Promise.reject(e);
|
|
1201
|
+
}
|
|
1202
|
+
throw this.#i({
|
|
1203
|
+
type: "error",
|
|
1204
|
+
error: t
|
|
1205
|
+
}), t;
|
|
1206
|
+
} finally {
|
|
1207
|
+
this.#n.runNext(this);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
#i(e) {
|
|
1211
|
+
let t = (t) => {
|
|
1212
|
+
switch (e.type) {
|
|
1213
|
+
case "failed": return {
|
|
1214
|
+
...t,
|
|
1215
|
+
failureCount: e.failureCount,
|
|
1216
|
+
failureReason: e.error
|
|
1217
|
+
};
|
|
1218
|
+
case "pause": return {
|
|
1219
|
+
...t,
|
|
1220
|
+
isPaused: !0
|
|
1221
|
+
};
|
|
1222
|
+
case "continue": return {
|
|
1223
|
+
...t,
|
|
1224
|
+
isPaused: !1
|
|
1225
|
+
};
|
|
1226
|
+
case "pending": return {
|
|
1227
|
+
...t,
|
|
1228
|
+
context: e.context,
|
|
1229
|
+
data: void 0,
|
|
1230
|
+
failureCount: 0,
|
|
1231
|
+
failureReason: null,
|
|
1232
|
+
error: null,
|
|
1233
|
+
isPaused: e.isPaused,
|
|
1234
|
+
status: "pending",
|
|
1235
|
+
variables: e.variables,
|
|
1236
|
+
submittedAt: Date.now()
|
|
1237
|
+
};
|
|
1238
|
+
case "success": return {
|
|
1239
|
+
...t,
|
|
1240
|
+
data: e.data,
|
|
1241
|
+
failureCount: 0,
|
|
1242
|
+
failureReason: null,
|
|
1243
|
+
error: null,
|
|
1244
|
+
status: "success",
|
|
1245
|
+
isPaused: !1
|
|
1246
|
+
};
|
|
1247
|
+
case "error": return {
|
|
1248
|
+
...t,
|
|
1249
|
+
data: void 0,
|
|
1250
|
+
error: e.error,
|
|
1251
|
+
failureCount: t.failureCount + 1,
|
|
1252
|
+
failureReason: e.error,
|
|
1253
|
+
isPaused: !1,
|
|
1254
|
+
status: "error"
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
this.state = t(this.state), B.batch(() => {
|
|
1259
|
+
this.#t.forEach((t) => {
|
|
1260
|
+
t.onMutationUpdate(e);
|
|
1261
|
+
}), this.#n.notify({
|
|
1262
|
+
mutation: this,
|
|
1263
|
+
type: "updated",
|
|
1264
|
+
action: e
|
|
1265
|
+
});
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
function Ye() {
|
|
1270
|
+
return {
|
|
1271
|
+
context: void 0,
|
|
1272
|
+
data: void 0,
|
|
1273
|
+
error: null,
|
|
1274
|
+
failureCount: 0,
|
|
1275
|
+
failureReason: null,
|
|
1276
|
+
isPaused: !1,
|
|
1277
|
+
status: "idle",
|
|
1278
|
+
variables: void 0,
|
|
1279
|
+
submittedAt: 0
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
//#endregion
|
|
1283
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
1284
|
+
var Xe = class extends j {
|
|
1285
|
+
constructor(e = {}) {
|
|
1286
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1287
|
+
}
|
|
1288
|
+
#e;
|
|
1289
|
+
#t;
|
|
1290
|
+
#n;
|
|
1291
|
+
build(e, t, n) {
|
|
1292
|
+
let r = new Je({
|
|
1293
|
+
client: e,
|
|
1294
|
+
mutationCache: this,
|
|
1295
|
+
mutationId: ++this.#n,
|
|
1296
|
+
options: e.defaultMutationOptions(t),
|
|
1297
|
+
state: n
|
|
1298
|
+
});
|
|
1299
|
+
return this.add(r), r;
|
|
1300
|
+
}
|
|
1301
|
+
add(e) {
|
|
1302
|
+
this.#e.add(e);
|
|
1303
|
+
let t = H(e);
|
|
1304
|
+
if (typeof t == "string") {
|
|
1305
|
+
let n = this.#t.get(t);
|
|
1306
|
+
n ? n.push(e) : this.#t.set(t, [e]);
|
|
1307
|
+
}
|
|
1308
|
+
this.notify({
|
|
1309
|
+
type: "added",
|
|
1310
|
+
mutation: e
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
remove(e) {
|
|
1314
|
+
if (this.#e.delete(e)) {
|
|
1315
|
+
let t = H(e);
|
|
1316
|
+
if (typeof t == "string") {
|
|
1317
|
+
let n = this.#t.get(t);
|
|
1318
|
+
if (n) if (n.length > 1) {
|
|
1319
|
+
let t = n.indexOf(e);
|
|
1320
|
+
t !== -1 && n.splice(t, 1);
|
|
1321
|
+
} else n[0] === e && this.#t.delete(t);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
this.notify({
|
|
1325
|
+
type: "removed",
|
|
1326
|
+
mutation: e
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
canRun(e) {
|
|
1330
|
+
let t = H(e);
|
|
1331
|
+
if (typeof t == "string") {
|
|
1332
|
+
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1333
|
+
return !n || n === e;
|
|
1334
|
+
} else return !0;
|
|
1335
|
+
}
|
|
1336
|
+
runNext(e) {
|
|
1337
|
+
let t = H(e);
|
|
1338
|
+
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1339
|
+
}
|
|
1340
|
+
clear() {
|
|
1341
|
+
B.batch(() => {
|
|
1342
|
+
this.#e.forEach((e) => {
|
|
1343
|
+
this.notify({
|
|
1344
|
+
type: "removed",
|
|
1345
|
+
mutation: e
|
|
1346
|
+
});
|
|
1347
|
+
}), this.#e.clear(), this.#t.clear();
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
getAll() {
|
|
1351
|
+
return Array.from(this.#e);
|
|
1352
|
+
}
|
|
1353
|
+
find(e) {
|
|
1354
|
+
let t = {
|
|
1355
|
+
exact: !0,
|
|
1356
|
+
...e
|
|
1357
|
+
};
|
|
1358
|
+
return this.getAll().find((e) => de(t, e));
|
|
1359
|
+
}
|
|
1360
|
+
findAll(e = {}) {
|
|
1361
|
+
return this.getAll().filter((t) => de(e, t));
|
|
1362
|
+
}
|
|
1363
|
+
notify(e) {
|
|
1364
|
+
B.batch(() => {
|
|
1365
|
+
this.listeners.forEach((t) => {
|
|
1366
|
+
t(e);
|
|
1367
|
+
});
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
resumePausedMutations() {
|
|
1371
|
+
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1372
|
+
return B.batch(() => Promise.all(e.map((e) => e.continue().catch(N))));
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
function H(e) {
|
|
1376
|
+
return e.options.scope?.id;
|
|
1377
|
+
}
|
|
1378
|
+
//#endregion
|
|
1379
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
1380
|
+
var Ze = class extends j {
|
|
1381
|
+
#e;
|
|
1382
|
+
#t = void 0;
|
|
1383
|
+
#n;
|
|
1384
|
+
#r;
|
|
1385
|
+
constructor(e, t) {
|
|
1386
|
+
super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#i();
|
|
1387
|
+
}
|
|
1388
|
+
bindMethods() {
|
|
1389
|
+
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
1390
|
+
}
|
|
1391
|
+
setOptions(e) {
|
|
1392
|
+
let t = this.options;
|
|
1393
|
+
this.options = this.#e.defaultMutationOptions(e), he(this.options, t) || this.#e.getMutationCache().notify({
|
|
1394
|
+
type: "observerOptionsUpdated",
|
|
1395
|
+
mutation: this.#n,
|
|
1396
|
+
observer: this
|
|
1397
|
+
}), t?.mutationKey && this.options.mutationKey && I(t.mutationKey) !== I(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
|
|
1398
|
+
}
|
|
1399
|
+
onUnsubscribe() {
|
|
1400
|
+
this.hasListeners() || this.#n?.removeObserver(this);
|
|
1401
|
+
}
|
|
1402
|
+
onMutationUpdate(e) {
|
|
1403
|
+
this.#i(), this.#a(e);
|
|
1404
|
+
}
|
|
1405
|
+
getCurrentResult() {
|
|
1406
|
+
return this.#t;
|
|
1407
|
+
}
|
|
1408
|
+
reset() {
|
|
1409
|
+
this.#n?.removeObserver(this), this.#n = void 0, this.#i(), this.#a();
|
|
1410
|
+
}
|
|
1411
|
+
mutate(e, t) {
|
|
1412
|
+
return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
|
|
1413
|
+
}
|
|
1414
|
+
#i() {
|
|
1415
|
+
let e = this.#n?.state ?? Ye();
|
|
1416
|
+
this.#t = {
|
|
1417
|
+
...e,
|
|
1418
|
+
isPending: e.status === "pending",
|
|
1419
|
+
isSuccess: e.status === "success",
|
|
1420
|
+
isError: e.status === "error",
|
|
1421
|
+
isIdle: e.status === "idle",
|
|
1422
|
+
mutate: this.mutate,
|
|
1423
|
+
reset: this.reset
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
#a(e) {
|
|
1427
|
+
B.batch(() => {
|
|
1428
|
+
if (this.#r && this.hasListeners()) {
|
|
1429
|
+
let t = this.#t.variables, n = this.#t.context, r = {
|
|
1430
|
+
client: this.#e,
|
|
1431
|
+
meta: this.options.meta,
|
|
1432
|
+
mutationKey: this.options.mutationKey
|
|
1433
|
+
};
|
|
1434
|
+
if (e?.type === "success") {
|
|
1435
|
+
try {
|
|
1436
|
+
this.#r.onSuccess?.(e.data, t, n, r);
|
|
1437
|
+
} catch (e) {
|
|
1438
|
+
Promise.reject(e);
|
|
1439
|
+
}
|
|
1440
|
+
try {
|
|
1441
|
+
this.#r.onSettled?.(e.data, null, t, n, r);
|
|
1442
|
+
} catch (e) {
|
|
1443
|
+
Promise.reject(e);
|
|
1444
|
+
}
|
|
1445
|
+
} else if (e?.type === "error") {
|
|
1446
|
+
try {
|
|
1447
|
+
this.#r.onError?.(e.error, t, n, r);
|
|
1448
|
+
} catch (e) {
|
|
1449
|
+
Promise.reject(e);
|
|
1450
|
+
}
|
|
1451
|
+
try {
|
|
1452
|
+
this.#r.onSettled?.(void 0, e.error, t, n, r);
|
|
1453
|
+
} catch (e) {
|
|
1454
|
+
Promise.reject(e);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
this.listeners.forEach((e) => {
|
|
1459
|
+
e(this.#t);
|
|
1460
|
+
});
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
}, Qe = class extends j {
|
|
1464
|
+
constructor(e = {}) {
|
|
1465
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1466
|
+
}
|
|
1467
|
+
#e;
|
|
1468
|
+
build(e, t, n) {
|
|
1469
|
+
let r = t.queryKey, i = t.queryHash ?? fe(r, t), a = this.get(i);
|
|
1470
|
+
return a || (a = new Le({
|
|
1471
|
+
client: e,
|
|
1472
|
+
queryKey: r,
|
|
1473
|
+
queryHash: i,
|
|
1474
|
+
options: e.defaultQueryOptions(t),
|
|
1475
|
+
state: n,
|
|
1476
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
1477
|
+
}), this.add(a)), a;
|
|
1478
|
+
}
|
|
1479
|
+
add(e) {
|
|
1480
|
+
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
1481
|
+
type: "added",
|
|
1482
|
+
query: e
|
|
1483
|
+
}));
|
|
1484
|
+
}
|
|
1485
|
+
remove(e) {
|
|
1486
|
+
let t = this.#e.get(e.queryHash);
|
|
1487
|
+
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
|
|
1488
|
+
type: "removed",
|
|
1489
|
+
query: e
|
|
1490
|
+
}));
|
|
1491
|
+
}
|
|
1492
|
+
clear() {
|
|
1493
|
+
B.batch(() => {
|
|
1494
|
+
this.getAll().forEach((e) => {
|
|
1495
|
+
this.remove(e);
|
|
1496
|
+
});
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
get(e) {
|
|
1500
|
+
return this.#e.get(e);
|
|
1501
|
+
}
|
|
1502
|
+
getAll() {
|
|
1503
|
+
return [...this.#e.values()];
|
|
1504
|
+
}
|
|
1505
|
+
find(e) {
|
|
1506
|
+
let t = {
|
|
1507
|
+
exact: !0,
|
|
1508
|
+
...e
|
|
1509
|
+
};
|
|
1510
|
+
return this.getAll().find((e) => ue(t, e));
|
|
1511
|
+
}
|
|
1512
|
+
findAll(e = {}) {
|
|
1513
|
+
let t = this.getAll();
|
|
1514
|
+
return Object.keys(e).length > 0 ? t.filter((t) => ue(e, t)) : t;
|
|
1515
|
+
}
|
|
1516
|
+
notify(e) {
|
|
1517
|
+
B.batch(() => {
|
|
1518
|
+
this.listeners.forEach((t) => {
|
|
1519
|
+
t(e);
|
|
1520
|
+
});
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
onFocus() {
|
|
1524
|
+
B.batch(() => {
|
|
1525
|
+
this.getAll().forEach((e) => {
|
|
1526
|
+
e.onFocus();
|
|
1527
|
+
});
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
onOnline() {
|
|
1531
|
+
B.batch(() => {
|
|
1532
|
+
this.getAll().forEach((e) => {
|
|
1533
|
+
e.onOnline();
|
|
1534
|
+
});
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
}, $e = class {
|
|
1538
|
+
#e;
|
|
1539
|
+
#t;
|
|
1540
|
+
#n;
|
|
1541
|
+
#r;
|
|
1542
|
+
#i;
|
|
1543
|
+
#a;
|
|
1544
|
+
#o;
|
|
1545
|
+
#s;
|
|
1546
|
+
constructor(e = {}) {
|
|
1547
|
+
this.#e = e.queryCache || new Qe(), this.#t = e.mutationCache || new Xe(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1548
|
+
}
|
|
1549
|
+
mount() {
|
|
1550
|
+
this.#a++, this.#a === 1 && (this.#o = re.subscribe(async (e) => {
|
|
1551
|
+
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1552
|
+
}), this.#s = V.subscribe(async (e) => {
|
|
1553
|
+
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1554
|
+
}));
|
|
1555
|
+
}
|
|
1556
|
+
unmount() {
|
|
1557
|
+
this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
|
|
1558
|
+
}
|
|
1559
|
+
isFetching(e) {
|
|
1560
|
+
return this.#e.findAll({
|
|
1561
|
+
...e,
|
|
1562
|
+
fetchStatus: "fetching"
|
|
1563
|
+
}).length;
|
|
1564
|
+
}
|
|
1565
|
+
isMutating(e) {
|
|
1566
|
+
return this.#t.findAll({
|
|
1567
|
+
...e,
|
|
1568
|
+
status: "pending"
|
|
1569
|
+
}).length;
|
|
1570
|
+
}
|
|
1571
|
+
getQueryData(e) {
|
|
1572
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1573
|
+
return this.#e.get(t.queryHash)?.state.data;
|
|
1574
|
+
}
|
|
1575
|
+
ensureQueryData(e) {
|
|
1576
|
+
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1577
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(P(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1578
|
+
}
|
|
1579
|
+
getQueriesData(e) {
|
|
1580
|
+
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1581
|
+
}
|
|
1582
|
+
setQueryData(e, t, n) {
|
|
1583
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = se(t, i);
|
|
1584
|
+
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1585
|
+
...n,
|
|
1586
|
+
manual: !0
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
setQueriesData(e, t, n) {
|
|
1590
|
+
return B.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1591
|
+
}
|
|
1592
|
+
getQueryState(e) {
|
|
1593
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1594
|
+
return this.#e.get(t.queryHash)?.state;
|
|
1595
|
+
}
|
|
1596
|
+
removeQueries(e) {
|
|
1597
|
+
let t = this.#e;
|
|
1598
|
+
B.batch(() => {
|
|
1599
|
+
t.findAll(e).forEach((e) => {
|
|
1600
|
+
t.remove(e);
|
|
1601
|
+
});
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
resetQueries(e, t) {
|
|
1605
|
+
let n = this.#e;
|
|
1606
|
+
return B.batch(() => (n.findAll(e).forEach((e) => {
|
|
1607
|
+
e.reset();
|
|
1608
|
+
}), this.refetchQueries({
|
|
1609
|
+
type: "active",
|
|
1610
|
+
...e
|
|
1611
|
+
}, t)));
|
|
1612
|
+
}
|
|
1613
|
+
cancelQueries(e, t = {}) {
|
|
1614
|
+
let n = {
|
|
1615
|
+
revert: !0,
|
|
1616
|
+
...t
|
|
1617
|
+
}, r = B.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1618
|
+
return Promise.all(r).then(N).catch(N);
|
|
1619
|
+
}
|
|
1620
|
+
invalidateQueries(e, t = {}) {
|
|
1621
|
+
return B.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1622
|
+
e.invalidate();
|
|
1623
|
+
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1624
|
+
...e,
|
|
1625
|
+
type: e?.refetchType ?? e?.type ?? "active"
|
|
1626
|
+
}, t)));
|
|
1627
|
+
}
|
|
1628
|
+
refetchQueries(e, t = {}) {
|
|
1629
|
+
let n = {
|
|
1630
|
+
...t,
|
|
1631
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
1632
|
+
}, r = B.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1633
|
+
let t = e.fetch(void 0, n);
|
|
1634
|
+
return n.throwOnError || (t = t.catch(N)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1635
|
+
}));
|
|
1636
|
+
return Promise.all(r).then(N);
|
|
1637
|
+
}
|
|
1638
|
+
fetchQuery(e) {
|
|
1639
|
+
let t = this.defaultQueryOptions(e);
|
|
1640
|
+
t.retry === void 0 && (t.retry = !1);
|
|
1641
|
+
let n = this.#e.build(this, t);
|
|
1642
|
+
return n.isStaleByTime(P(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1643
|
+
}
|
|
1644
|
+
prefetchQuery(e) {
|
|
1645
|
+
return this.fetchQuery(e).then(N).catch(N);
|
|
1646
|
+
}
|
|
1647
|
+
fetchInfiniteQuery(e) {
|
|
1648
|
+
return e._type = "infinite", this.fetchQuery(e);
|
|
1649
|
+
}
|
|
1650
|
+
prefetchInfiniteQuery(e) {
|
|
1651
|
+
return this.fetchInfiniteQuery(e).then(N).catch(N);
|
|
1652
|
+
}
|
|
1653
|
+
ensureInfiniteQueryData(e) {
|
|
1654
|
+
return e._type = "infinite", this.ensureQueryData(e);
|
|
1655
|
+
}
|
|
1656
|
+
resumePausedMutations() {
|
|
1657
|
+
return V.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1658
|
+
}
|
|
1659
|
+
getQueryCache() {
|
|
1660
|
+
return this.#e;
|
|
1661
|
+
}
|
|
1662
|
+
getMutationCache() {
|
|
1663
|
+
return this.#t;
|
|
1664
|
+
}
|
|
1665
|
+
getDefaultOptions() {
|
|
1666
|
+
return this.#n;
|
|
1667
|
+
}
|
|
1668
|
+
setDefaultOptions(e) {
|
|
1669
|
+
this.#n = e;
|
|
1670
|
+
}
|
|
1671
|
+
setQueryDefaults(e, t) {
|
|
1672
|
+
this.#r.set(I(e), {
|
|
1673
|
+
queryKey: e,
|
|
1674
|
+
defaultOptions: t
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
getQueryDefaults(e) {
|
|
1678
|
+
let t = [...this.#r.values()], n = {};
|
|
1679
|
+
return t.forEach((t) => {
|
|
1680
|
+
L(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1681
|
+
}), n;
|
|
1682
|
+
}
|
|
1683
|
+
setMutationDefaults(e, t) {
|
|
1684
|
+
this.#i.set(I(e), {
|
|
1685
|
+
mutationKey: e,
|
|
1686
|
+
defaultOptions: t
|
|
1687
|
+
});
|
|
1688
|
+
}
|
|
1689
|
+
getMutationDefaults(e) {
|
|
1690
|
+
let t = [...this.#i.values()], n = {};
|
|
1691
|
+
return t.forEach((t) => {
|
|
1692
|
+
L(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1693
|
+
}), n;
|
|
1694
|
+
}
|
|
1695
|
+
defaultQueryOptions(e) {
|
|
1696
|
+
if (e._defaulted) return e;
|
|
1697
|
+
let t = {
|
|
1698
|
+
...this.#n.queries,
|
|
1699
|
+
...this.getQueryDefaults(e.queryKey),
|
|
1700
|
+
...e,
|
|
1701
|
+
_defaulted: !0
|
|
1702
|
+
};
|
|
1703
|
+
return t.queryHash ||= fe(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === R && (t.enabled = !1), t;
|
|
1704
|
+
}
|
|
1705
|
+
defaultMutationOptions(e) {
|
|
1706
|
+
return e?._defaulted ? e : {
|
|
1707
|
+
...this.#n.mutations,
|
|
1708
|
+
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
1709
|
+
...e,
|
|
1710
|
+
_defaulted: !0
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
clear() {
|
|
1714
|
+
this.#e.clear(), this.#t.clear();
|
|
1715
|
+
}
|
|
1716
|
+
}, U = /* @__PURE__ */ p({
|
|
1717
|
+
Vue: () => e,
|
|
1718
|
+
Vue2: () => void 0,
|
|
1719
|
+
del: () => rt,
|
|
1720
|
+
install: () => tt,
|
|
1721
|
+
isVue2: () => !1,
|
|
1722
|
+
isVue3: () => !0,
|
|
1723
|
+
set: () => nt
|
|
1724
|
+
});
|
|
1725
|
+
import * as et from "vue";
|
|
1726
|
+
h(U, et);
|
|
1727
|
+
function tt() {}
|
|
1728
|
+
function nt(e, t, n) {
|
|
1729
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1730
|
+
}
|
|
1731
|
+
function rt(e, t) {
|
|
1732
|
+
if (Array.isArray(e)) {
|
|
1733
|
+
e.splice(t, 1);
|
|
1734
|
+
return;
|
|
1735
|
+
}
|
|
1736
|
+
delete e[t];
|
|
1737
|
+
}
|
|
1738
|
+
//#endregion
|
|
1739
|
+
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
1740
|
+
var it = "VUE_QUERY_CLIENT";
|
|
1741
|
+
function at(e) {
|
|
1742
|
+
return `${it}${e ? `:${e}` : ""}`;
|
|
1743
|
+
}
|
|
1744
|
+
function ot(e, t) {
|
|
1745
|
+
Object.keys(e).forEach((n) => {
|
|
1746
|
+
e[n] = t[n];
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
function st(e, t, n = "", r = 0) {
|
|
1750
|
+
if (t) {
|
|
1751
|
+
let i = t(e, n, r);
|
|
1752
|
+
if (i === void 0 && (0, U.isRef)(e) || i !== void 0) return i;
|
|
1753
|
+
}
|
|
1754
|
+
if (Array.isArray(e)) return e.map((e, n) => st(e, t, String(n), r + 1));
|
|
1755
|
+
if (typeof e == "object" && lt(e)) {
|
|
1756
|
+
let n = Object.entries(e).map(([e, n]) => [e, st(n, t, e, r + 1)]);
|
|
1757
|
+
return Object.fromEntries(n);
|
|
1758
|
+
}
|
|
1759
|
+
return e;
|
|
1760
|
+
}
|
|
1761
|
+
function ct(e, t) {
|
|
1762
|
+
return st(e, t);
|
|
1763
|
+
}
|
|
1764
|
+
function W(e, t = !1) {
|
|
1765
|
+
return ct(e, (e, n, r) => {
|
|
1766
|
+
if (r === 1 && n === "queryKey") return W(e, !0);
|
|
1767
|
+
if (t && ut(e)) return W(e(), t);
|
|
1768
|
+
if ((0, U.isRef)(e)) return W((0, U.unref)(e), t);
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
function lt(e) {
|
|
1772
|
+
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1773
|
+
let t = Object.getPrototypeOf(e);
|
|
1774
|
+
return t === null || t === Object.prototype;
|
|
1775
|
+
}
|
|
1776
|
+
function ut(e) {
|
|
1777
|
+
return typeof e == "function";
|
|
1778
|
+
}
|
|
1779
|
+
//#endregion
|
|
1780
|
+
//#region node_modules/@tanstack/vue-query/build/modern/useQueryClient.js
|
|
1781
|
+
function dt(e = "") {
|
|
1782
|
+
if (!(0, U.hasInjectionContext)()) throw Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");
|
|
1783
|
+
let t = (0, U.inject)(at(e));
|
|
1784
|
+
if (!t) throw Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");
|
|
1785
|
+
return t;
|
|
1786
|
+
}
|
|
1787
|
+
//#endregion
|
|
1788
|
+
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
1789
|
+
var ft = class extends Qe {
|
|
1790
|
+
find(e) {
|
|
1791
|
+
return super.find(W(e));
|
|
1792
|
+
}
|
|
1793
|
+
findAll(e = {}) {
|
|
1794
|
+
return super.findAll(W(e));
|
|
1795
|
+
}
|
|
1796
|
+
}, pt = class extends Xe {
|
|
1797
|
+
find(e) {
|
|
1798
|
+
return super.find(W(e));
|
|
1799
|
+
}
|
|
1800
|
+
findAll(e = {}) {
|
|
1801
|
+
return super.findAll(W(e));
|
|
1802
|
+
}
|
|
1803
|
+
}, mt = class extends $e {
|
|
1804
|
+
constructor(e = {}) {
|
|
1805
|
+
let t = {
|
|
1806
|
+
defaultOptions: e.defaultOptions,
|
|
1807
|
+
queryCache: e.queryCache || new ft(),
|
|
1808
|
+
mutationCache: e.mutationCache || new pt()
|
|
1809
|
+
};
|
|
1810
|
+
super(t), this.isRestoring = (0, U.ref)(!1);
|
|
1811
|
+
}
|
|
1812
|
+
isFetching(e = {}) {
|
|
1813
|
+
return super.isFetching(W(e));
|
|
1814
|
+
}
|
|
1815
|
+
isMutating(e = {}) {
|
|
1816
|
+
return super.isMutating(W(e));
|
|
1817
|
+
}
|
|
1818
|
+
getQueryData(e) {
|
|
1819
|
+
return super.getQueryData(W(e));
|
|
1820
|
+
}
|
|
1821
|
+
ensureQueryData(e) {
|
|
1822
|
+
return super.ensureQueryData(W(e));
|
|
1823
|
+
}
|
|
1824
|
+
getQueriesData(e) {
|
|
1825
|
+
return super.getQueriesData(W(e));
|
|
1826
|
+
}
|
|
1827
|
+
setQueryData(e, t, n = {}) {
|
|
1828
|
+
return super.setQueryData(W(e), t, W(n));
|
|
1829
|
+
}
|
|
1830
|
+
setQueriesData(e, t, n = {}) {
|
|
1831
|
+
return super.setQueriesData(W(e), t, W(n));
|
|
1832
|
+
}
|
|
1833
|
+
getQueryState(e) {
|
|
1834
|
+
return super.getQueryState(W(e));
|
|
1835
|
+
}
|
|
1836
|
+
removeQueries(e = {}) {
|
|
1837
|
+
return super.removeQueries(W(e));
|
|
1838
|
+
}
|
|
1839
|
+
resetQueries(e = {}, t = {}) {
|
|
1840
|
+
return super.resetQueries(W(e), W(t));
|
|
1841
|
+
}
|
|
1842
|
+
cancelQueries(e = {}, t = {}) {
|
|
1843
|
+
return super.cancelQueries(W(e), W(t));
|
|
1844
|
+
}
|
|
1845
|
+
invalidateQueries(e = {}, t = {}) {
|
|
1846
|
+
let n = W(e), r = W(t);
|
|
1847
|
+
if (super.invalidateQueries({
|
|
1848
|
+
...n,
|
|
1849
|
+
refetchType: "none"
|
|
1850
|
+
}, r), n.refetchType === "none") return Promise.resolve();
|
|
1851
|
+
let i = {
|
|
1852
|
+
...n,
|
|
1853
|
+
type: n.refetchType ?? n.type ?? "active"
|
|
1854
|
+
};
|
|
1855
|
+
return (0, U.nextTick)().then(() => super.refetchQueries(i, r));
|
|
1856
|
+
}
|
|
1857
|
+
refetchQueries(e = {}, t = {}) {
|
|
1858
|
+
return super.refetchQueries(W(e), W(t));
|
|
1859
|
+
}
|
|
1860
|
+
fetchQuery(e) {
|
|
1861
|
+
return super.fetchQuery(W(e));
|
|
1862
|
+
}
|
|
1863
|
+
prefetchQuery(e) {
|
|
1864
|
+
return super.prefetchQuery(W(e));
|
|
1865
|
+
}
|
|
1866
|
+
fetchInfiniteQuery(e) {
|
|
1867
|
+
return super.fetchInfiniteQuery(W(e));
|
|
1868
|
+
}
|
|
1869
|
+
prefetchInfiniteQuery(e) {
|
|
1870
|
+
return super.prefetchInfiniteQuery(W(e));
|
|
1871
|
+
}
|
|
1872
|
+
setDefaultOptions(e) {
|
|
1873
|
+
super.setDefaultOptions(W(e));
|
|
1874
|
+
}
|
|
1875
|
+
setQueryDefaults(e, t) {
|
|
1876
|
+
super.setQueryDefaults(W(e), W(t));
|
|
1877
|
+
}
|
|
1878
|
+
getQueryDefaults(e) {
|
|
1879
|
+
return super.getQueryDefaults(W(e));
|
|
1880
|
+
}
|
|
1881
|
+
setMutationDefaults(e, t) {
|
|
1882
|
+
super.setMutationDefaults(W(e), W(t));
|
|
1883
|
+
}
|
|
1884
|
+
getMutationDefaults(e) {
|
|
1885
|
+
return super.getMutationDefaults(W(e));
|
|
1886
|
+
}
|
|
1887
|
+
};
|
|
1888
|
+
//#endregion
|
|
1889
|
+
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
1890
|
+
function ht() {
|
|
1891
|
+
return gt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1892
|
+
}
|
|
1893
|
+
function gt() {
|
|
1894
|
+
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1895
|
+
}
|
|
1896
|
+
var _t = typeof Proxy == "function", vt = "devtools-plugin:setup", yt = "plugin:settings:set", G, bt;
|
|
1897
|
+
function xt() {
|
|
1898
|
+
return G === void 0 && (typeof window < "u" && window.performance ? (G = !0, bt = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (G = !0, bt = globalThis.perf_hooks.performance) : G = !1), G;
|
|
1899
|
+
}
|
|
1900
|
+
function St() {
|
|
1901
|
+
return xt() ? bt.now() : Date.now();
|
|
1902
|
+
}
|
|
1903
|
+
//#endregion
|
|
1904
|
+
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
1905
|
+
var Ct = class {
|
|
1906
|
+
constructor(e, t) {
|
|
1907
|
+
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
1908
|
+
let n = {};
|
|
1909
|
+
if (e.settings) for (let t in e.settings) n[t] = e.settings[t].defaultValue;
|
|
1910
|
+
let r = `__vue-devtools-plugin-settings__${e.id}`, i = Object.assign({}, n);
|
|
1911
|
+
try {
|
|
1912
|
+
let e = localStorage.getItem(r), t = JSON.parse(e);
|
|
1913
|
+
Object.assign(i, t);
|
|
1914
|
+
} catch {}
|
|
1915
|
+
this.fallbacks = {
|
|
1916
|
+
getSettings() {
|
|
1917
|
+
return i;
|
|
1918
|
+
},
|
|
1919
|
+
setSettings(e) {
|
|
1920
|
+
try {
|
|
1921
|
+
localStorage.setItem(r, JSON.stringify(e));
|
|
1922
|
+
} catch {}
|
|
1923
|
+
i = e;
|
|
1924
|
+
},
|
|
1925
|
+
now() {
|
|
1926
|
+
return St();
|
|
1927
|
+
}
|
|
1928
|
+
}, t && t.on(yt, (e, t) => {
|
|
1929
|
+
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
1930
|
+
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
1931
|
+
this.onQueue.push({
|
|
1932
|
+
method: t,
|
|
1933
|
+
args: e
|
|
1934
|
+
});
|
|
1935
|
+
} }), this.proxiedTarget = new Proxy({}, { get: (e, t) => this.target ? this.target[t] : t === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(t) ? (...e) => (this.targetQueue.push({
|
|
1936
|
+
method: t,
|
|
1937
|
+
args: e,
|
|
1938
|
+
resolve: () => {}
|
|
1939
|
+
}), this.fallbacks[t](...e)) : (...e) => new Promise((n) => {
|
|
1940
|
+
this.targetQueue.push({
|
|
1941
|
+
method: t,
|
|
1942
|
+
args: e,
|
|
1943
|
+
resolve: n
|
|
1944
|
+
});
|
|
1945
|
+
}) });
|
|
1946
|
+
}
|
|
1947
|
+
async setRealTarget(e) {
|
|
1948
|
+
this.target = e;
|
|
1949
|
+
for (let e of this.onQueue) this.target.on[e.method](...e.args);
|
|
1950
|
+
for (let e of this.targetQueue) e.resolve(await this.target[e.method](...e.args));
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
//#endregion
|
|
1954
|
+
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
1955
|
+
function wt(e, t) {
|
|
1956
|
+
let n = e, r = gt(), i = ht(), a = _t && n.enableEarlyProxy;
|
|
1957
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(vt, e, t);
|
|
1958
|
+
else {
|
|
1959
|
+
let e = a ? new Ct(n, i) : null;
|
|
1960
|
+
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1961
|
+
pluginDescriptor: n,
|
|
1962
|
+
setupFn: t,
|
|
1963
|
+
proxy: e
|
|
1964
|
+
}), e && t(e.proxiedTarget);
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
//#endregion
|
|
1968
|
+
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
1969
|
+
var Tt = {
|
|
1970
|
+
À: "A",
|
|
1971
|
+
Á: "A",
|
|
1972
|
+
Â: "A",
|
|
1973
|
+
Ã: "A",
|
|
1974
|
+
Ä: "A",
|
|
1975
|
+
Å: "A",
|
|
1976
|
+
Ấ: "A",
|
|
1977
|
+
Ắ: "A",
|
|
1978
|
+
Ẳ: "A",
|
|
1979
|
+
Ẵ: "A",
|
|
1980
|
+
Ặ: "A",
|
|
1981
|
+
Æ: "AE",
|
|
1982
|
+
Ầ: "A",
|
|
1983
|
+
Ằ: "A",
|
|
1984
|
+
Ȃ: "A",
|
|
1985
|
+
Ç: "C",
|
|
1986
|
+
Ḉ: "C",
|
|
1987
|
+
È: "E",
|
|
1988
|
+
É: "E",
|
|
1989
|
+
Ê: "E",
|
|
1990
|
+
Ë: "E",
|
|
1991
|
+
Ế: "E",
|
|
1992
|
+
Ḗ: "E",
|
|
1993
|
+
Ề: "E",
|
|
1994
|
+
Ḕ: "E",
|
|
1995
|
+
Ḝ: "E",
|
|
1996
|
+
Ȇ: "E",
|
|
1997
|
+
Ì: "I",
|
|
1998
|
+
Í: "I",
|
|
1999
|
+
Î: "I",
|
|
2000
|
+
Ï: "I",
|
|
2001
|
+
Ḯ: "I",
|
|
2002
|
+
Ȋ: "I",
|
|
2003
|
+
Ð: "D",
|
|
2004
|
+
Ñ: "N",
|
|
2005
|
+
Ò: "O",
|
|
2006
|
+
Ó: "O",
|
|
2007
|
+
Ô: "O",
|
|
2008
|
+
Õ: "O",
|
|
2009
|
+
Ö: "O",
|
|
2010
|
+
Ø: "O",
|
|
2011
|
+
Ố: "O",
|
|
2012
|
+
Ṍ: "O",
|
|
2013
|
+
Ṓ: "O",
|
|
2014
|
+
Ȏ: "O",
|
|
2015
|
+
Ù: "U",
|
|
2016
|
+
Ú: "U",
|
|
2017
|
+
Û: "U",
|
|
2018
|
+
Ü: "U",
|
|
2019
|
+
Ý: "Y",
|
|
2020
|
+
à: "a",
|
|
2021
|
+
á: "a",
|
|
2022
|
+
â: "a",
|
|
2023
|
+
ã: "a",
|
|
2024
|
+
ä: "a",
|
|
2025
|
+
å: "a",
|
|
2026
|
+
ấ: "a",
|
|
2027
|
+
ắ: "a",
|
|
2028
|
+
ẳ: "a",
|
|
2029
|
+
ẵ: "a",
|
|
2030
|
+
ặ: "a",
|
|
2031
|
+
æ: "ae",
|
|
2032
|
+
ầ: "a",
|
|
2033
|
+
ằ: "a",
|
|
2034
|
+
ȃ: "a",
|
|
2035
|
+
ç: "c",
|
|
2036
|
+
ḉ: "c",
|
|
2037
|
+
è: "e",
|
|
2038
|
+
é: "e",
|
|
2039
|
+
ê: "e",
|
|
2040
|
+
ë: "e",
|
|
2041
|
+
ế: "e",
|
|
2042
|
+
ḗ: "e",
|
|
2043
|
+
ề: "e",
|
|
2044
|
+
ḕ: "e",
|
|
2045
|
+
ḝ: "e",
|
|
2046
|
+
ȇ: "e",
|
|
2047
|
+
ì: "i",
|
|
2048
|
+
í: "i",
|
|
2049
|
+
î: "i",
|
|
2050
|
+
ï: "i",
|
|
2051
|
+
ḯ: "i",
|
|
2052
|
+
ȋ: "i",
|
|
2053
|
+
ð: "d",
|
|
2054
|
+
ñ: "n",
|
|
2055
|
+
ò: "o",
|
|
2056
|
+
ó: "o",
|
|
2057
|
+
ô: "o",
|
|
2058
|
+
õ: "o",
|
|
2059
|
+
ö: "o",
|
|
2060
|
+
ø: "o",
|
|
2061
|
+
ố: "o",
|
|
2062
|
+
ṍ: "o",
|
|
2063
|
+
ṓ: "o",
|
|
2064
|
+
ȏ: "o",
|
|
2065
|
+
ù: "u",
|
|
2066
|
+
ú: "u",
|
|
2067
|
+
û: "u",
|
|
2068
|
+
ü: "u",
|
|
2069
|
+
ý: "y",
|
|
2070
|
+
ÿ: "y",
|
|
2071
|
+
Ā: "A",
|
|
2072
|
+
ā: "a",
|
|
2073
|
+
Ă: "A",
|
|
2074
|
+
ă: "a",
|
|
2075
|
+
Ą: "A",
|
|
2076
|
+
ą: "a",
|
|
2077
|
+
Ć: "C",
|
|
2078
|
+
ć: "c",
|
|
2079
|
+
Ĉ: "C",
|
|
2080
|
+
ĉ: "c",
|
|
2081
|
+
Ċ: "C",
|
|
2082
|
+
ċ: "c",
|
|
2083
|
+
Č: "C",
|
|
2084
|
+
č: "c",
|
|
2085
|
+
C̆: "C",
|
|
2086
|
+
c̆: "c",
|
|
2087
|
+
Ď: "D",
|
|
2088
|
+
ď: "d",
|
|
2089
|
+
Đ: "D",
|
|
2090
|
+
đ: "d",
|
|
2091
|
+
Ē: "E",
|
|
2092
|
+
ē: "e",
|
|
2093
|
+
Ĕ: "E",
|
|
2094
|
+
ĕ: "e",
|
|
2095
|
+
Ė: "E",
|
|
2096
|
+
ė: "e",
|
|
2097
|
+
Ę: "E",
|
|
2098
|
+
ę: "e",
|
|
2099
|
+
Ě: "E",
|
|
2100
|
+
ě: "e",
|
|
2101
|
+
Ĝ: "G",
|
|
2102
|
+
Ǵ: "G",
|
|
2103
|
+
ĝ: "g",
|
|
2104
|
+
ǵ: "g",
|
|
2105
|
+
Ğ: "G",
|
|
2106
|
+
ğ: "g",
|
|
2107
|
+
Ġ: "G",
|
|
2108
|
+
ġ: "g",
|
|
2109
|
+
Ģ: "G",
|
|
2110
|
+
ģ: "g",
|
|
2111
|
+
Ĥ: "H",
|
|
2112
|
+
ĥ: "h",
|
|
2113
|
+
Ħ: "H",
|
|
2114
|
+
ħ: "h",
|
|
2115
|
+
Ḫ: "H",
|
|
2116
|
+
ḫ: "h",
|
|
2117
|
+
Ĩ: "I",
|
|
2118
|
+
ĩ: "i",
|
|
2119
|
+
Ī: "I",
|
|
2120
|
+
ī: "i",
|
|
2121
|
+
Ĭ: "I",
|
|
2122
|
+
ĭ: "i",
|
|
2123
|
+
Į: "I",
|
|
2124
|
+
į: "i",
|
|
2125
|
+
İ: "I",
|
|
2126
|
+
ı: "i",
|
|
2127
|
+
IJ: "IJ",
|
|
2128
|
+
ij: "ij",
|
|
2129
|
+
Ĵ: "J",
|
|
2130
|
+
ĵ: "j",
|
|
2131
|
+
Ķ: "K",
|
|
2132
|
+
ķ: "k",
|
|
2133
|
+
Ḱ: "K",
|
|
2134
|
+
ḱ: "k",
|
|
2135
|
+
K̆: "K",
|
|
2136
|
+
k̆: "k",
|
|
2137
|
+
Ĺ: "L",
|
|
2138
|
+
ĺ: "l",
|
|
2139
|
+
Ļ: "L",
|
|
2140
|
+
ļ: "l",
|
|
2141
|
+
Ľ: "L",
|
|
2142
|
+
ľ: "l",
|
|
2143
|
+
Ŀ: "L",
|
|
2144
|
+
ŀ: "l",
|
|
2145
|
+
Ł: "l",
|
|
2146
|
+
ł: "l",
|
|
2147
|
+
Ḿ: "M",
|
|
2148
|
+
ḿ: "m",
|
|
2149
|
+
M̆: "M",
|
|
2150
|
+
m̆: "m",
|
|
2151
|
+
Ń: "N",
|
|
2152
|
+
ń: "n",
|
|
2153
|
+
Ņ: "N",
|
|
2154
|
+
ņ: "n",
|
|
2155
|
+
Ň: "N",
|
|
2156
|
+
ň: "n",
|
|
2157
|
+
ʼn: "n",
|
|
2158
|
+
N̆: "N",
|
|
2159
|
+
n̆: "n",
|
|
2160
|
+
Ō: "O",
|
|
2161
|
+
ō: "o",
|
|
2162
|
+
Ŏ: "O",
|
|
2163
|
+
ŏ: "o",
|
|
2164
|
+
Ő: "O",
|
|
2165
|
+
ő: "o",
|
|
2166
|
+
Œ: "OE",
|
|
2167
|
+
œ: "oe",
|
|
2168
|
+
P̆: "P",
|
|
2169
|
+
p̆: "p",
|
|
2170
|
+
Ŕ: "R",
|
|
2171
|
+
ŕ: "r",
|
|
2172
|
+
Ŗ: "R",
|
|
2173
|
+
ŗ: "r",
|
|
2174
|
+
Ř: "R",
|
|
2175
|
+
ř: "r",
|
|
2176
|
+
R̆: "R",
|
|
2177
|
+
r̆: "r",
|
|
2178
|
+
Ȓ: "R",
|
|
2179
|
+
ȓ: "r",
|
|
2180
|
+
Ś: "S",
|
|
2181
|
+
ś: "s",
|
|
2182
|
+
Ŝ: "S",
|
|
2183
|
+
ŝ: "s",
|
|
2184
|
+
Ş: "S",
|
|
2185
|
+
Ș: "S",
|
|
2186
|
+
ș: "s",
|
|
2187
|
+
ş: "s",
|
|
2188
|
+
Š: "S",
|
|
2189
|
+
š: "s",
|
|
2190
|
+
Ţ: "T",
|
|
2191
|
+
ţ: "t",
|
|
2192
|
+
ț: "t",
|
|
2193
|
+
Ț: "T",
|
|
2194
|
+
Ť: "T",
|
|
2195
|
+
ť: "t",
|
|
2196
|
+
Ŧ: "T",
|
|
2197
|
+
ŧ: "t",
|
|
2198
|
+
T̆: "T",
|
|
2199
|
+
t̆: "t",
|
|
2200
|
+
Ũ: "U",
|
|
2201
|
+
ũ: "u",
|
|
2202
|
+
Ū: "U",
|
|
2203
|
+
ū: "u",
|
|
2204
|
+
Ŭ: "U",
|
|
2205
|
+
ŭ: "u",
|
|
2206
|
+
Ů: "U",
|
|
2207
|
+
ů: "u",
|
|
2208
|
+
Ű: "U",
|
|
2209
|
+
ű: "u",
|
|
2210
|
+
Ų: "U",
|
|
2211
|
+
ų: "u",
|
|
2212
|
+
Ȗ: "U",
|
|
2213
|
+
ȗ: "u",
|
|
2214
|
+
V̆: "V",
|
|
2215
|
+
v̆: "v",
|
|
2216
|
+
Ŵ: "W",
|
|
2217
|
+
ŵ: "w",
|
|
2218
|
+
Ẃ: "W",
|
|
2219
|
+
ẃ: "w",
|
|
2220
|
+
X̆: "X",
|
|
2221
|
+
x̆: "x",
|
|
2222
|
+
Ŷ: "Y",
|
|
2223
|
+
ŷ: "y",
|
|
2224
|
+
Ÿ: "Y",
|
|
2225
|
+
Y̆: "Y",
|
|
2226
|
+
y̆: "y",
|
|
2227
|
+
Ź: "Z",
|
|
2228
|
+
ź: "z",
|
|
2229
|
+
Ż: "Z",
|
|
2230
|
+
ż: "z",
|
|
2231
|
+
Ž: "Z",
|
|
2232
|
+
ž: "z",
|
|
2233
|
+
ſ: "s",
|
|
2234
|
+
ƒ: "f",
|
|
2235
|
+
Ơ: "O",
|
|
2236
|
+
ơ: "o",
|
|
2237
|
+
Ư: "U",
|
|
2238
|
+
ư: "u",
|
|
2239
|
+
Ǎ: "A",
|
|
2240
|
+
ǎ: "a",
|
|
2241
|
+
Ǐ: "I",
|
|
2242
|
+
ǐ: "i",
|
|
2243
|
+
Ǒ: "O",
|
|
2244
|
+
ǒ: "o",
|
|
2245
|
+
Ǔ: "U",
|
|
2246
|
+
ǔ: "u",
|
|
2247
|
+
Ǖ: "U",
|
|
2248
|
+
ǖ: "u",
|
|
2249
|
+
Ǘ: "U",
|
|
2250
|
+
ǘ: "u",
|
|
2251
|
+
Ǚ: "U",
|
|
2252
|
+
ǚ: "u",
|
|
2253
|
+
Ǜ: "U",
|
|
2254
|
+
ǜ: "u",
|
|
2255
|
+
Ứ: "U",
|
|
2256
|
+
ứ: "u",
|
|
2257
|
+
Ṹ: "U",
|
|
2258
|
+
ṹ: "u",
|
|
2259
|
+
Ǻ: "A",
|
|
2260
|
+
ǻ: "a",
|
|
2261
|
+
Ǽ: "AE",
|
|
2262
|
+
ǽ: "ae",
|
|
2263
|
+
Ǿ: "O",
|
|
2264
|
+
ǿ: "o",
|
|
2265
|
+
Þ: "TH",
|
|
2266
|
+
þ: "th",
|
|
2267
|
+
Ṕ: "P",
|
|
2268
|
+
ṕ: "p",
|
|
2269
|
+
Ṥ: "S",
|
|
2270
|
+
ṥ: "s",
|
|
2271
|
+
X́: "X",
|
|
2272
|
+
x́: "x",
|
|
2273
|
+
Ѓ: "Г",
|
|
2274
|
+
ѓ: "г",
|
|
2275
|
+
Ќ: "К",
|
|
2276
|
+
ќ: "к",
|
|
2277
|
+
A̋: "A",
|
|
2278
|
+
a̋: "a",
|
|
2279
|
+
E̋: "E",
|
|
2280
|
+
e̋: "e",
|
|
2281
|
+
I̋: "I",
|
|
2282
|
+
i̋: "i",
|
|
2283
|
+
Ǹ: "N",
|
|
2284
|
+
ǹ: "n",
|
|
2285
|
+
Ồ: "O",
|
|
2286
|
+
ồ: "o",
|
|
2287
|
+
Ṑ: "O",
|
|
2288
|
+
ṑ: "o",
|
|
2289
|
+
Ừ: "U",
|
|
2290
|
+
ừ: "u",
|
|
2291
|
+
Ẁ: "W",
|
|
2292
|
+
ẁ: "w",
|
|
2293
|
+
Ỳ: "Y",
|
|
2294
|
+
ỳ: "y",
|
|
2295
|
+
Ȁ: "A",
|
|
2296
|
+
ȁ: "a",
|
|
2297
|
+
Ȅ: "E",
|
|
2298
|
+
ȅ: "e",
|
|
2299
|
+
Ȉ: "I",
|
|
2300
|
+
ȉ: "i",
|
|
2301
|
+
Ȍ: "O",
|
|
2302
|
+
ȍ: "o",
|
|
2303
|
+
Ȑ: "R",
|
|
2304
|
+
ȑ: "r",
|
|
2305
|
+
Ȕ: "U",
|
|
2306
|
+
ȕ: "u",
|
|
2307
|
+
B̌: "B",
|
|
2308
|
+
b̌: "b",
|
|
2309
|
+
Č̣: "C",
|
|
2310
|
+
č̣: "c",
|
|
2311
|
+
Ê̌: "E",
|
|
2312
|
+
ê̌: "e",
|
|
2313
|
+
F̌: "F",
|
|
2314
|
+
f̌: "f",
|
|
2315
|
+
Ǧ: "G",
|
|
2316
|
+
ǧ: "g",
|
|
2317
|
+
Ȟ: "H",
|
|
2318
|
+
ȟ: "h",
|
|
2319
|
+
J̌: "J",
|
|
2320
|
+
ǰ: "j",
|
|
2321
|
+
Ǩ: "K",
|
|
2322
|
+
ǩ: "k",
|
|
2323
|
+
M̌: "M",
|
|
2324
|
+
m̌: "m",
|
|
2325
|
+
P̌: "P",
|
|
2326
|
+
p̌: "p",
|
|
2327
|
+
Q̌: "Q",
|
|
2328
|
+
q̌: "q",
|
|
2329
|
+
Ř̩: "R",
|
|
2330
|
+
ř̩: "r",
|
|
2331
|
+
Ṧ: "S",
|
|
2332
|
+
ṧ: "s",
|
|
2333
|
+
V̌: "V",
|
|
2334
|
+
v̌: "v",
|
|
2335
|
+
W̌: "W",
|
|
2336
|
+
w̌: "w",
|
|
2337
|
+
X̌: "X",
|
|
2338
|
+
x̌: "x",
|
|
2339
|
+
Y̌: "Y",
|
|
2340
|
+
y̌: "y",
|
|
2341
|
+
A̧: "A",
|
|
2342
|
+
a̧: "a",
|
|
2343
|
+
B̧: "B",
|
|
2344
|
+
b̧: "b",
|
|
2345
|
+
Ḑ: "D",
|
|
2346
|
+
ḑ: "d",
|
|
2347
|
+
Ȩ: "E",
|
|
2348
|
+
ȩ: "e",
|
|
2349
|
+
Ɛ̧: "E",
|
|
2350
|
+
ɛ̧: "e",
|
|
2351
|
+
Ḩ: "H",
|
|
2352
|
+
ḩ: "h",
|
|
2353
|
+
I̧: "I",
|
|
2354
|
+
i̧: "i",
|
|
2355
|
+
Ɨ̧: "I",
|
|
2356
|
+
ɨ̧: "i",
|
|
2357
|
+
M̧: "M",
|
|
2358
|
+
m̧: "m",
|
|
2359
|
+
O̧: "O",
|
|
2360
|
+
o̧: "o",
|
|
2361
|
+
Q̧: "Q",
|
|
2362
|
+
q̧: "q",
|
|
2363
|
+
U̧: "U",
|
|
2364
|
+
u̧: "u",
|
|
2365
|
+
X̧: "X",
|
|
2366
|
+
x̧: "x",
|
|
2367
|
+
Z̧: "Z",
|
|
2368
|
+
z̧: "z"
|
|
2369
|
+
}, Et = Object.keys(Tt).join("|"), Dt = new RegExp(Et, "g");
|
|
2370
|
+
function Ot(e) {
|
|
2371
|
+
return e.replace(Dt, (e) => Tt[e]);
|
|
2372
|
+
}
|
|
2373
|
+
var K = {
|
|
2374
|
+
CASE_SENSITIVE_EQUAL: 7,
|
|
2375
|
+
EQUAL: 6,
|
|
2376
|
+
STARTS_WITH: 5,
|
|
2377
|
+
WORD_STARTS_WITH: 4,
|
|
2378
|
+
CONTAINS: 3,
|
|
2379
|
+
ACRONYM: 2,
|
|
2380
|
+
MATCHES: 1,
|
|
2381
|
+
NO_MATCH: 0
|
|
2382
|
+
};
|
|
2383
|
+
function kt(e, t, n) {
|
|
2384
|
+
if (n ||= {}, n.threshold = n.threshold ?? K.MATCHES, !n.accessors) {
|
|
2385
|
+
let r = At(e, t, n);
|
|
2386
|
+
return {
|
|
2387
|
+
rankedValue: e,
|
|
2388
|
+
rank: r,
|
|
2389
|
+
accessorIndex: -1,
|
|
2390
|
+
accessorThreshold: n.threshold,
|
|
2391
|
+
passed: r >= n.threshold
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
let r = Ft(e, n.accessors), i = {
|
|
2395
|
+
rankedValue: e,
|
|
2396
|
+
rank: K.NO_MATCH,
|
|
2397
|
+
accessorIndex: -1,
|
|
2398
|
+
accessorThreshold: n.threshold,
|
|
2399
|
+
passed: !1
|
|
2400
|
+
};
|
|
2401
|
+
for (let e = 0; e < r.length; e++) {
|
|
2402
|
+
let a = r[e], o = At(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
2403
|
+
o < s && o >= K.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
|
|
2404
|
+
}
|
|
2405
|
+
return i;
|
|
2406
|
+
}
|
|
2407
|
+
function At(e, t, n) {
|
|
2408
|
+
return e = Nt(e, n), t = Nt(t, n), t.length > e.length ? K.NO_MATCH : e === t ? K.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? K.EQUAL : e.startsWith(t) ? K.STARTS_WITH : e.includes(` ${t}`) ? K.WORD_STARTS_WITH : e.includes(t) ? K.CONTAINS : t.length === 1 ? K.NO_MATCH : jt(e).includes(t) ? K.ACRONYM : Mt(e, t));
|
|
2409
|
+
}
|
|
2410
|
+
function jt(e) {
|
|
2411
|
+
let t = "";
|
|
2412
|
+
return e.split(" ").forEach((e) => {
|
|
2413
|
+
e.split("-").forEach((e) => {
|
|
2414
|
+
t += e.substr(0, 1);
|
|
2415
|
+
});
|
|
2416
|
+
}), t;
|
|
2417
|
+
}
|
|
2418
|
+
function Mt(e, t) {
|
|
2419
|
+
let n = 0, r = 0;
|
|
2420
|
+
function i(e, t, r) {
|
|
2421
|
+
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
2422
|
+
return -1;
|
|
2423
|
+
}
|
|
2424
|
+
function a(e) {
|
|
2425
|
+
let r = 1 / e, i = n / t.length;
|
|
2426
|
+
return K.MATCHES + i * r;
|
|
2427
|
+
}
|
|
2428
|
+
let o = i(t[0], e, 0);
|
|
2429
|
+
if (o < 0) return K.NO_MATCH;
|
|
2430
|
+
r = o;
|
|
2431
|
+
for (let n = 1, a = t.length; n < a; n++) {
|
|
2432
|
+
let a = t[n];
|
|
2433
|
+
if (r = i(a, e, r), !(r > -1)) return K.NO_MATCH;
|
|
2434
|
+
}
|
|
2435
|
+
return a(r - o);
|
|
2436
|
+
}
|
|
2437
|
+
function Nt(e, t) {
|
|
2438
|
+
let { keepDiacritics: n } = t;
|
|
2439
|
+
return e = `${e}`, n || (e = Ot(e)), e;
|
|
2440
|
+
}
|
|
2441
|
+
function Pt(e, t) {
|
|
2442
|
+
let n = t;
|
|
2443
|
+
typeof t == "object" && (n = t.accessor);
|
|
2444
|
+
let r = n(e);
|
|
2445
|
+
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
2446
|
+
}
|
|
2447
|
+
function Ft(e, t) {
|
|
2448
|
+
let n = [];
|
|
2449
|
+
for (let r = 0, i = t.length; r < i; r++) {
|
|
2450
|
+
let i = t[r], a = Lt(i), o = Pt(e, i);
|
|
2451
|
+
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
2452
|
+
itemValue: o[e],
|
|
2453
|
+
attributes: a
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
return n;
|
|
2457
|
+
}
|
|
2458
|
+
var It = {
|
|
2459
|
+
maxRanking: Infinity,
|
|
2460
|
+
minRanking: -Infinity
|
|
2461
|
+
};
|
|
2462
|
+
function Lt(e) {
|
|
2463
|
+
return typeof e == "function" ? It : {
|
|
2464
|
+
...It,
|
|
2465
|
+
...e
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
//#endregion
|
|
2469
|
+
//#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
|
|
2470
|
+
function q(e) {
|
|
2471
|
+
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2472
|
+
}
|
|
2473
|
+
function Rt(e) {
|
|
2474
|
+
let t = q(e);
|
|
2475
|
+
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2476
|
+
}
|
|
2477
|
+
function zt(e) {
|
|
2478
|
+
return q(e) === 2 ? 0 : 16777215;
|
|
2479
|
+
}
|
|
2480
|
+
function Bt(e) {
|
|
2481
|
+
let t = q(e);
|
|
2482
|
+
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
2483
|
+
}
|
|
2484
|
+
var Vt = (e, t) => e.queryHash.localeCompare(t.queryHash), Ht = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Ut = {
|
|
2485
|
+
"Status > Last Updated": (e, t) => q(e) === q(t) ? Ht(e, t) : q(e) > q(t) ? 1 : -1,
|
|
2486
|
+
"Query Hash": Vt,
|
|
2487
|
+
"Last Updated": Ht
|
|
2488
|
+
}, J = "vue-query", Wt = "Vue Query";
|
|
2489
|
+
function Gt(e, t) {
|
|
2490
|
+
wt({
|
|
2491
|
+
id: J,
|
|
2492
|
+
label: Wt,
|
|
2493
|
+
packageName: "vue-query",
|
|
2494
|
+
homepage: "https://tanstack.com/query/latest",
|
|
2495
|
+
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
2496
|
+
app: e,
|
|
2497
|
+
settings: {
|
|
2498
|
+
baseSort: {
|
|
2499
|
+
type: "choice",
|
|
2500
|
+
component: "button-group",
|
|
2501
|
+
label: "Sort Cache Entries",
|
|
2502
|
+
options: [{
|
|
2503
|
+
label: "ASC",
|
|
2504
|
+
value: 1
|
|
2505
|
+
}, {
|
|
2506
|
+
label: "DESC",
|
|
2507
|
+
value: -1
|
|
2508
|
+
}],
|
|
2509
|
+
defaultValue: 1
|
|
2510
|
+
},
|
|
2511
|
+
sortFn: {
|
|
2512
|
+
type: "choice",
|
|
2513
|
+
label: "Sort Function",
|
|
2514
|
+
options: Object.keys(Ut).map((e) => ({
|
|
2515
|
+
label: e,
|
|
2516
|
+
value: e
|
|
2517
|
+
})),
|
|
2518
|
+
defaultValue: Object.keys(Ut)[0]
|
|
2519
|
+
},
|
|
2520
|
+
onlineMode: {
|
|
2521
|
+
type: "choice",
|
|
2522
|
+
component: "button-group",
|
|
2523
|
+
label: "Online mode",
|
|
2524
|
+
options: [{
|
|
2525
|
+
label: "Online",
|
|
2526
|
+
value: 1
|
|
2527
|
+
}, {
|
|
2528
|
+
label: "Offline",
|
|
2529
|
+
value: 0
|
|
2530
|
+
}],
|
|
2531
|
+
defaultValue: 1
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
}, (e) => {
|
|
2535
|
+
let n = e.getSettings();
|
|
2536
|
+
V.setOnline(!!n.onlineMode.valueOf());
|
|
2537
|
+
let r = t.getQueryCache();
|
|
2538
|
+
e.addInspector({
|
|
2539
|
+
id: J,
|
|
2540
|
+
label: Wt,
|
|
2541
|
+
icon: "api",
|
|
2542
|
+
nodeActions: [
|
|
2543
|
+
{
|
|
2544
|
+
icon: "file_download",
|
|
2545
|
+
tooltip: "Refetch",
|
|
2546
|
+
action: (e) => {
|
|
2547
|
+
r.get(e)?.fetch();
|
|
2548
|
+
}
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
icon: "alarm",
|
|
2552
|
+
tooltip: "Invalidate",
|
|
2553
|
+
action: (e) => {
|
|
2554
|
+
let n = r.get(e);
|
|
2555
|
+
t.invalidateQueries({
|
|
2556
|
+
queryKey: n.queryKey,
|
|
2557
|
+
exact: !0
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
icon: "settings_backup_restore",
|
|
2563
|
+
tooltip: "Reset",
|
|
2564
|
+
action: (e) => {
|
|
2565
|
+
r.get(e)?.reset();
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
icon: "delete",
|
|
2570
|
+
tooltip: "Remove",
|
|
2571
|
+
action: (e) => {
|
|
2572
|
+
let t = r.get(e);
|
|
2573
|
+
r.remove(t);
|
|
2574
|
+
}
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
icon: "hourglass_empty",
|
|
2578
|
+
tooltip: "Force loading",
|
|
2579
|
+
action: (e) => {
|
|
2580
|
+
r.get(e).setState({
|
|
2581
|
+
data: void 0,
|
|
2582
|
+
status: "pending"
|
|
2583
|
+
});
|
|
2584
|
+
}
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
icon: "error_outline",
|
|
2588
|
+
tooltip: "Force error",
|
|
2589
|
+
action: (e) => {
|
|
2590
|
+
r.get(e).setState({
|
|
2591
|
+
data: void 0,
|
|
2592
|
+
status: "error",
|
|
2593
|
+
error: /* @__PURE__ */ Error("Unknown error from devtools")
|
|
2594
|
+
});
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
]
|
|
2598
|
+
}), e.addTimelineLayer({
|
|
2599
|
+
id: J,
|
|
2600
|
+
label: Wt,
|
|
2601
|
+
color: 16767308
|
|
2602
|
+
}), r.subscribe((t) => {
|
|
2603
|
+
e.sendInspectorTree(J), e.sendInspectorState(J), [
|
|
2604
|
+
"added",
|
|
2605
|
+
"removed",
|
|
2606
|
+
"updated"
|
|
2607
|
+
].includes(t.type) && e.addTimelineEvent({
|
|
2608
|
+
layerId: J,
|
|
2609
|
+
event: {
|
|
2610
|
+
title: t.type,
|
|
2611
|
+
subtitle: t.query.queryHash,
|
|
2612
|
+
time: e.now(),
|
|
2613
|
+
data: {
|
|
2614
|
+
queryHash: t.query.queryHash,
|
|
2615
|
+
...t
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
});
|
|
2619
|
+
}), e.on.setPluginSettings((e) => {
|
|
2620
|
+
e.key === "onlineMode" && V.setOnline(!!e.newValue);
|
|
2621
|
+
}), e.on.getInspectorTree((t) => {
|
|
2622
|
+
if (t.inspectorId === J) {
|
|
2623
|
+
let n = r.getAll(), i = e.getSettings();
|
|
2624
|
+
t.rootNodes = (t.filter ? n.filter((e) => kt(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Ut[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2625
|
+
let t = Rt(e);
|
|
2626
|
+
return {
|
|
2627
|
+
id: e.queryHash,
|
|
2628
|
+
label: e.queryHash,
|
|
2629
|
+
tags: [{
|
|
2630
|
+
label: `${t} [${e.getObserversCount()}]`,
|
|
2631
|
+
textColor: zt(e),
|
|
2632
|
+
backgroundColor: Bt(e)
|
|
2633
|
+
}]
|
|
2634
|
+
};
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
}), e.on.getInspectorState((e) => {
|
|
2638
|
+
if (e.inspectorId === J) {
|
|
2639
|
+
let t = r.get(e.nodeId);
|
|
2640
|
+
if (!t) return;
|
|
2641
|
+
e.state = {
|
|
2642
|
+
" Query Details": [
|
|
2643
|
+
{
|
|
2644
|
+
key: "Query key",
|
|
2645
|
+
value: t.queryHash
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
key: "Query status",
|
|
2649
|
+
value: Rt(t)
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
key: "Observers",
|
|
2653
|
+
value: t.getObserversCount()
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
key: "Last Updated",
|
|
2657
|
+
value: new Date(t.state.dataUpdatedAt).toLocaleTimeString()
|
|
2658
|
+
}
|
|
2659
|
+
],
|
|
2660
|
+
"Data Explorer": [{
|
|
2661
|
+
key: "Data",
|
|
2662
|
+
value: t.state.data
|
|
2663
|
+
}],
|
|
2664
|
+
"Query Explorer": [{
|
|
2665
|
+
key: "Query",
|
|
2666
|
+
value: t
|
|
2667
|
+
}]
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
});
|
|
2671
|
+
});
|
|
2672
|
+
}
|
|
2673
|
+
//#endregion
|
|
2674
|
+
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
2675
|
+
var Kt = { install: (e, t = {}) => {
|
|
2676
|
+
let n = at(t.queryClientKey), r;
|
|
2677
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new mt("queryClientConfig" in t ? t.queryClientConfig : void 0), oe || r.mount();
|
|
2678
|
+
let i = () => {};
|
|
2679
|
+
if (t.clientPersister) {
|
|
2680
|
+
r.isRestoring && (r.isRestoring.value = !0);
|
|
2681
|
+
let [e, n] = t.clientPersister(r);
|
|
2682
|
+
i = e, n.then(() => {
|
|
2683
|
+
r.isRestoring && (r.isRestoring.value = !1), t.clientPersisterOnSuccess?.(r);
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
let a = () => {
|
|
2687
|
+
r.unmount(), i();
|
|
2688
|
+
};
|
|
2689
|
+
if (e.onUnmount) e.onUnmount(a);
|
|
2690
|
+
else {
|
|
2691
|
+
let t = e.unmount;
|
|
2692
|
+
e.unmount = function() {
|
|
2693
|
+
a(), t();
|
|
2694
|
+
};
|
|
2695
|
+
}
|
|
2696
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Gt(e, r);
|
|
2697
|
+
} };
|
|
2698
|
+
//#endregion
|
|
2699
|
+
//#region node_modules/@tanstack/vue-query/build/modern/useBaseQuery.js
|
|
2700
|
+
function qt(e, t, n) {
|
|
2701
|
+
process.env.NODE_ENV === "development" && ((0, U.getCurrentScope)() || console.warn("vue-query composable like \"useQuery()\" should only be used inside a \"setup()\" function or a running effect scope. They might otherwise lead to memory leaks."));
|
|
2702
|
+
let r = n || dt(), i = (0, U.computed)(() => {
|
|
2703
|
+
let e = t;
|
|
2704
|
+
typeof e == "function" && (e = e());
|
|
2705
|
+
let n = W(e);
|
|
2706
|
+
typeof n.enabled == "function" && (n.enabled = n.enabled());
|
|
2707
|
+
let i = r.defaultQueryOptions(n);
|
|
2708
|
+
return i._optimisticResults = r.isRestoring?.value ? "isRestoring" : "optimistic", i;
|
|
2709
|
+
}), a = new e(r, i.value), o = i.value.shallow ? (0, U.shallowReactive)(a.getCurrentResult()) : (0, U.reactive)(a.getCurrentResult()), s = () => {};
|
|
2710
|
+
r.isRestoring && (0, U.watch)(r.isRestoring, (e) => {
|
|
2711
|
+
e || (s(), s = a.subscribe((e) => {
|
|
2712
|
+
ot(o, e);
|
|
2713
|
+
}));
|
|
2714
|
+
}, { immediate: !0 });
|
|
2715
|
+
let c = () => {
|
|
2716
|
+
a.setOptions(i.value), ot(o, a.getCurrentResult());
|
|
2717
|
+
};
|
|
2718
|
+
(0, U.watch)(i, c), (0, U.onScopeDispose)(() => {
|
|
2719
|
+
s();
|
|
2720
|
+
});
|
|
2721
|
+
let l = (...e) => (c(), o.refetch(...e)), u = () => new Promise((e, t) => {
|
|
2722
|
+
let n = () => {}, r = () => {
|
|
2723
|
+
if (i.value.enabled !== !1) {
|
|
2724
|
+
a.setOptions(i.value);
|
|
2725
|
+
let r = a.getOptimisticResult(i.value);
|
|
2726
|
+
r.isStale ? (n(), a.fetchOptimistic(i.value).then(e, (n) => {
|
|
2727
|
+
we(i.value.throwOnError, [n, a.getCurrentQuery()]) ? t(n) : e(a.getCurrentResult());
|
|
2728
|
+
})) : (n(), e(r));
|
|
2729
|
+
}
|
|
2730
|
+
};
|
|
2731
|
+
r(), n = (0, U.watch)(i, r);
|
|
2732
|
+
});
|
|
2733
|
+
(0, U.watch)(() => o.error, (e) => {
|
|
2734
|
+
if (o.isError && !o.isFetching && we(i.value.throwOnError, [e, a.getCurrentQuery()])) throw e;
|
|
2735
|
+
});
|
|
2736
|
+
let d = (0, U.toRefs)(i.value.shallow ? (0, U.shallowReadonly)(o) : (0, U.readonly)(o));
|
|
2737
|
+
for (let e in o) typeof o[e] == "function" && (d[e] = o[e]);
|
|
2738
|
+
return d.suspense = u, d.refetch = l, d;
|
|
2739
|
+
}
|
|
2740
|
+
//#endregion
|
|
2741
|
+
//#region node_modules/@tanstack/vue-query/build/modern/useQuery.js
|
|
2742
|
+
function Jt(e, t) {
|
|
2743
|
+
return qt(Ve, e, t);
|
|
2744
|
+
}
|
|
2745
|
+
//#endregion
|
|
2746
|
+
//#region node_modules/@tanstack/vue-query/build/modern/useMutation.js
|
|
2747
|
+
function Yt(e, t) {
|
|
2748
|
+
process.env.NODE_ENV === "development" && ((0, U.getCurrentScope)() || console.warn("vue-query composable like \"useQuery()\" should only be used inside a \"setup()\" function or a running effect scope. They might otherwise lead to memory leaks."));
|
|
2749
|
+
let n = t || dt(), r = (0, U.computed)(() => {
|
|
2750
|
+
let t = typeof e == "function" ? e() : e;
|
|
2751
|
+
return n.defaultMutationOptions(W(t));
|
|
2752
|
+
}), i = new Ze(n, r.value), a = r.value.shallow ? (0, U.shallowReactive)(i.getCurrentResult()) : (0, U.reactive)(i.getCurrentResult()), o = i.subscribe((e) => {
|
|
2753
|
+
ot(a, e);
|
|
2754
|
+
}), s = (e, t) => {
|
|
2755
|
+
i.mutate(e, t).catch(() => {});
|
|
2756
|
+
};
|
|
2757
|
+
(0, U.watch)(r, () => {
|
|
2758
|
+
i.setOptions(r.value);
|
|
2759
|
+
}), (0, U.onScopeDispose)(() => {
|
|
2760
|
+
o();
|
|
2761
|
+
});
|
|
2762
|
+
let c = (0, U.toRefs)(r.value.shallow ? (0, U.shallowReadonly)(a) : (0, U.readonly)(a));
|
|
2763
|
+
return (0, U.watch)(() => a.error, (e) => {
|
|
2764
|
+
if (e && we(r.value.throwOnError, [e])) throw e;
|
|
2765
|
+
}), {
|
|
2766
|
+
...c,
|
|
2767
|
+
mutate: s,
|
|
2768
|
+
mutateAsync: a.mutate,
|
|
2769
|
+
reset: a.reset
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
//#endregion
|
|
2773
|
+
//#region src/composables/data/_internal.ts
|
|
2774
|
+
function Y(e) {
|
|
2775
|
+
return e;
|
|
2776
|
+
}
|
|
2777
|
+
//#endregion
|
|
2778
|
+
//#region src/composables/data/useQuery.ts
|
|
2779
|
+
var Xt = {
|
|
2780
|
+
retry: !1,
|
|
2781
|
+
refetchOnMount: !0,
|
|
2782
|
+
refetchOnReconnect: !1,
|
|
2783
|
+
refetchOnWindowFocus: !1
|
|
2784
|
+
}, Zt = 0;
|
|
2785
|
+
function Qt(e) {
|
|
2786
|
+
if (e !== void 0) return typeof e == "function" ? e() : i(e);
|
|
2787
|
+
}
|
|
2788
|
+
function $t() {
|
|
2789
|
+
return Zt += 1, ["hanap-labs-query", Zt];
|
|
2790
|
+
}
|
|
2791
|
+
async function en(e) {
|
|
2792
|
+
return (await e()).data;
|
|
2793
|
+
}
|
|
2794
|
+
function tn(e = {}) {
|
|
2795
|
+
return function(n, r) {
|
|
2796
|
+
let { queryKey: o, onSuccess: s, onError: c, enabled: l, ...u } = r ?? {}, d = $t(), f = [], p = [];
|
|
2797
|
+
s !== void 0 && f.push(s), c !== void 0 && p.push(c);
|
|
2798
|
+
let m = Jt({
|
|
2799
|
+
queryKey: t(() => o === void 0 ? d : typeof o == "function" ? o() : i(o)),
|
|
2800
|
+
queryFn: (e) => n({
|
|
2801
|
+
queryKey: e.queryKey,
|
|
2802
|
+
signal: e.signal
|
|
2803
|
+
}),
|
|
2804
|
+
enabled: t(() => Qt(l)),
|
|
2805
|
+
...Xt,
|
|
2806
|
+
...e,
|
|
2807
|
+
...u
|
|
2808
|
+
});
|
|
2809
|
+
f.length > 0 && a(() => m.data.value, (e) => {
|
|
2810
|
+
if (e !== void 0) for (let t of f) t(e);
|
|
2811
|
+
}, { immediate: !1 }), p.length > 0 && a(() => m.error.value, (e) => {
|
|
2812
|
+
if (e !== null) for (let t of p) t(e);
|
|
2813
|
+
}, { immediate: !1 });
|
|
2814
|
+
let h = () => en(m.refetch), g = {
|
|
2815
|
+
data: Y(m.data),
|
|
2816
|
+
error: Y(m.error),
|
|
2817
|
+
isError: Y(m.isError),
|
|
2818
|
+
loading: Y(m.isFetching),
|
|
2819
|
+
initializing: Y(m.isLoading),
|
|
2820
|
+
isSuccess: Y(m.isSuccess),
|
|
2821
|
+
onError: (e) => (p.push(e), g),
|
|
2822
|
+
refetch: h,
|
|
2823
|
+
run: h,
|
|
2824
|
+
status: Y(m.status)
|
|
2825
|
+
};
|
|
2826
|
+
return g;
|
|
2827
|
+
};
|
|
2828
|
+
}
|
|
2829
|
+
var nn = tn();
|
|
2830
|
+
//#endregion
|
|
2831
|
+
//#region src/composables/data/queryPlugin.ts
|
|
2832
|
+
function rn(e = {}) {
|
|
2833
|
+
return { install(t) {
|
|
2834
|
+
let n = new mt({ defaultOptions: {
|
|
2835
|
+
queries: e.queries,
|
|
2836
|
+
mutations: e.mutations
|
|
2837
|
+
} });
|
|
2838
|
+
t.use(Kt, { queryClient: n });
|
|
2839
|
+
} };
|
|
2840
|
+
}
|
|
2841
|
+
//#endregion
|
|
2842
|
+
//#region src/composables/data/useMutation.ts
|
|
2843
|
+
function an(e) {
|
|
2844
|
+
return e[0];
|
|
2845
|
+
}
|
|
2846
|
+
function on(e, t) {
|
|
2847
|
+
return e(t);
|
|
2848
|
+
}
|
|
2849
|
+
function sn(e = {}) {
|
|
2850
|
+
return function(t, n) {
|
|
2851
|
+
let { onSuccess: r, onError: i, onMutate: a, onSettled: o, ...s } = n ?? {}, c = [], l = [], u = [], d = [];
|
|
2852
|
+
r !== void 0 && c.push(r), i !== void 0 && l.push(i), a !== void 0 && u.push(a), o !== void 0 && d.push(o);
|
|
2853
|
+
let f = Yt({
|
|
2854
|
+
mutationFn: (e) => on(t, e),
|
|
2855
|
+
...e,
|
|
2856
|
+
...s,
|
|
2857
|
+
onMutate: async (e, t) => {
|
|
2858
|
+
let n;
|
|
2859
|
+
for (let t of u) n = await t(e);
|
|
2860
|
+
return n;
|
|
2861
|
+
},
|
|
2862
|
+
onSuccess: async (e, t, n) => {
|
|
2863
|
+
for (let r of c) await r(e, t, n);
|
|
2864
|
+
},
|
|
2865
|
+
onError: async (e, t, n) => {
|
|
2866
|
+
for (let r of l) await r(e, t, n);
|
|
2867
|
+
},
|
|
2868
|
+
onSettled: async (e, t, n, r) => {
|
|
2869
|
+
for (let i of d) await i(e, t, n, r);
|
|
2870
|
+
}
|
|
2871
|
+
}), p = {
|
|
2872
|
+
data: Y(f.data),
|
|
2873
|
+
error: Y(f.error),
|
|
2874
|
+
idle: Y(f.isIdle),
|
|
2875
|
+
isError: Y(f.isError),
|
|
2876
|
+
isSuccess: Y(f.isSuccess),
|
|
2877
|
+
submitting: Y(f.isPending),
|
|
2878
|
+
onError: (e) => (l.push(e), p),
|
|
2879
|
+
onMutate: (e) => (u.push(e), p),
|
|
2880
|
+
onSettled: (e) => (d.push(e), p),
|
|
2881
|
+
onSuccess: (e) => (c.push(e), p),
|
|
2882
|
+
reset: f.reset,
|
|
2883
|
+
run: (...e) => f.mutateAsync(an(e)),
|
|
2884
|
+
status: Y(f.status)
|
|
2885
|
+
};
|
|
2886
|
+
return p;
|
|
2887
|
+
};
|
|
2888
|
+
}
|
|
2889
|
+
var cn = sn(), ln = /* @__PURE__ */ f(((e, t) => {
|
|
2890
|
+
function n() {
|
|
2891
|
+
this.__data__ = [], this.size = 0;
|
|
2892
|
+
}
|
|
2893
|
+
t.exports = n;
|
|
2894
|
+
})), un = /* @__PURE__ */ f(((e, t) => {
|
|
2895
|
+
function n(e, t) {
|
|
2896
|
+
return e === t || e !== e && t !== t;
|
|
2897
|
+
}
|
|
2898
|
+
t.exports = n;
|
|
2899
|
+
})), dn = /* @__PURE__ */ f(((e, t) => {
|
|
2900
|
+
var n = un();
|
|
2901
|
+
function r(e, t) {
|
|
2902
|
+
for (var r = e.length; r--;) if (n(e[r][0], t)) return r;
|
|
2903
|
+
return -1;
|
|
2904
|
+
}
|
|
2905
|
+
t.exports = r;
|
|
2906
|
+
})), fn = /* @__PURE__ */ f(((e, t) => {
|
|
2907
|
+
var n = dn(), r = Array.prototype.splice;
|
|
2908
|
+
function i(e) {
|
|
2909
|
+
var t = this.__data__, i = n(t, e);
|
|
2910
|
+
return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
|
|
2911
|
+
}
|
|
2912
|
+
t.exports = i;
|
|
2913
|
+
})), pn = /* @__PURE__ */ f(((e, t) => {
|
|
2914
|
+
var n = dn();
|
|
2915
|
+
function r(e) {
|
|
2916
|
+
var t = this.__data__, r = n(t, e);
|
|
2917
|
+
return r < 0 ? void 0 : t[r][1];
|
|
2918
|
+
}
|
|
2919
|
+
t.exports = r;
|
|
2920
|
+
})), mn = /* @__PURE__ */ f(((e, t) => {
|
|
2921
|
+
var n = dn();
|
|
2922
|
+
function r(e) {
|
|
2923
|
+
return n(this.__data__, e) > -1;
|
|
2924
|
+
}
|
|
2925
|
+
t.exports = r;
|
|
2926
|
+
})), hn = /* @__PURE__ */ f(((e, t) => {
|
|
2927
|
+
var n = dn();
|
|
2928
|
+
function r(e, t) {
|
|
2929
|
+
var r = this.__data__, i = n(r, e);
|
|
2930
|
+
return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
|
|
2931
|
+
}
|
|
2932
|
+
t.exports = r;
|
|
2933
|
+
})), gn = /* @__PURE__ */ f(((e, t) => {
|
|
2934
|
+
var n = ln(), r = fn(), i = pn(), a = mn(), o = hn();
|
|
2935
|
+
function s(e) {
|
|
2936
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
2937
|
+
for (this.clear(); ++t < n;) {
|
|
2938
|
+
var r = e[t];
|
|
2939
|
+
this.set(r[0], r[1]);
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
2943
|
+
})), _n = /* @__PURE__ */ f(((e, t) => {
|
|
2944
|
+
var n = gn();
|
|
2945
|
+
function r() {
|
|
2946
|
+
this.__data__ = new n(), this.size = 0;
|
|
2947
|
+
}
|
|
2948
|
+
t.exports = r;
|
|
2949
|
+
})), vn = /* @__PURE__ */ f(((e, t) => {
|
|
2950
|
+
function n(e) {
|
|
2951
|
+
var t = this.__data__, n = t.delete(e);
|
|
2952
|
+
return this.size = t.size, n;
|
|
2953
|
+
}
|
|
2954
|
+
t.exports = n;
|
|
2955
|
+
})), yn = /* @__PURE__ */ f(((e, t) => {
|
|
2956
|
+
function n(e) {
|
|
2957
|
+
return this.__data__.get(e);
|
|
2958
|
+
}
|
|
2959
|
+
t.exports = n;
|
|
2960
|
+
})), bn = /* @__PURE__ */ f(((e, t) => {
|
|
2961
|
+
function n(e) {
|
|
2962
|
+
return this.__data__.has(e);
|
|
2963
|
+
}
|
|
2964
|
+
t.exports = n;
|
|
2965
|
+
})), xn = /* @__PURE__ */ f(((e, t) => {
|
|
2966
|
+
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
2967
|
+
})), X = /* @__PURE__ */ f(((e, t) => {
|
|
2968
|
+
var n = xn(), r = typeof self == "object" && self && self.Object === Object && self;
|
|
2969
|
+
t.exports = n || r || Function("return this")();
|
|
2970
|
+
})), Sn = /* @__PURE__ */ f(((e, t) => {
|
|
2971
|
+
t.exports = X().Symbol;
|
|
2972
|
+
})), Cn = /* @__PURE__ */ f(((e, t) => {
|
|
2973
|
+
var n = Sn(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
|
|
2974
|
+
function s(e) {
|
|
2975
|
+
var t = i.call(e, o), n = e[o];
|
|
2976
|
+
try {
|
|
2977
|
+
e[o] = void 0;
|
|
2978
|
+
var r = !0;
|
|
2979
|
+
} catch {}
|
|
2980
|
+
var s = a.call(e);
|
|
2981
|
+
return r && (t ? e[o] = n : delete e[o]), s;
|
|
2982
|
+
}
|
|
2983
|
+
t.exports = s;
|
|
2984
|
+
})), wn = /* @__PURE__ */ f(((e, t) => {
|
|
2985
|
+
var n = Object.prototype.toString;
|
|
2986
|
+
function r(e) {
|
|
2987
|
+
return n.call(e);
|
|
2988
|
+
}
|
|
2989
|
+
t.exports = r;
|
|
2990
|
+
})), Tn = /* @__PURE__ */ f(((e, t) => {
|
|
2991
|
+
var n = Sn(), r = Cn(), i = wn(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
|
|
2992
|
+
function c(e) {
|
|
2993
|
+
return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
|
|
2994
|
+
}
|
|
2995
|
+
t.exports = c;
|
|
2996
|
+
})), En = /* @__PURE__ */ f(((e, t) => {
|
|
2997
|
+
function n(e) {
|
|
2998
|
+
var t = typeof e;
|
|
2999
|
+
return e != null && (t == "object" || t == "function");
|
|
3000
|
+
}
|
|
3001
|
+
t.exports = n;
|
|
3002
|
+
})), Dn = /* @__PURE__ */ f(((e, t) => {
|
|
3003
|
+
var n = Tn(), r = En(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
|
|
3004
|
+
function c(e) {
|
|
3005
|
+
if (!r(e)) return !1;
|
|
3006
|
+
var t = n(e);
|
|
3007
|
+
return t == a || t == o || t == i || t == s;
|
|
3008
|
+
}
|
|
3009
|
+
t.exports = c;
|
|
3010
|
+
})), On = /* @__PURE__ */ f(((e, t) => {
|
|
3011
|
+
t.exports = X()["__core-js_shared__"];
|
|
3012
|
+
})), kn = /* @__PURE__ */ f(((e, t) => {
|
|
3013
|
+
var n = On(), r = function() {
|
|
3014
|
+
var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
|
|
3015
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
3016
|
+
}();
|
|
3017
|
+
function i(e) {
|
|
3018
|
+
return !!r && r in e;
|
|
3019
|
+
}
|
|
3020
|
+
t.exports = i;
|
|
3021
|
+
})), An = /* @__PURE__ */ f(((e, t) => {
|
|
3022
|
+
var n = Function.prototype.toString;
|
|
3023
|
+
function r(e) {
|
|
3024
|
+
if (e != null) {
|
|
3025
|
+
try {
|
|
3026
|
+
return n.call(e);
|
|
3027
|
+
} catch {}
|
|
3028
|
+
try {
|
|
3029
|
+
return e + "";
|
|
3030
|
+
} catch {}
|
|
3031
|
+
}
|
|
3032
|
+
return "";
|
|
3033
|
+
}
|
|
3034
|
+
t.exports = r;
|
|
3035
|
+
})), jn = /* @__PURE__ */ f(((e, t) => {
|
|
3036
|
+
var n = Dn(), r = kn(), i = En(), a = An(), o = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, c = Function.prototype, l = Object.prototype, u = c.toString, d = l.hasOwnProperty, f = RegExp("^" + u.call(d).replace(o, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
3037
|
+
function p(e) {
|
|
3038
|
+
return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
|
|
3039
|
+
}
|
|
3040
|
+
t.exports = p;
|
|
3041
|
+
})), Mn = /* @__PURE__ */ f(((e, t) => {
|
|
3042
|
+
function n(e, t) {
|
|
3043
|
+
return e?.[t];
|
|
3044
|
+
}
|
|
3045
|
+
t.exports = n;
|
|
3046
|
+
})), Z = /* @__PURE__ */ f(((e, t) => {
|
|
3047
|
+
var n = jn(), r = Mn();
|
|
3048
|
+
function i(e, t) {
|
|
3049
|
+
var i = r(e, t);
|
|
3050
|
+
return n(i) ? i : void 0;
|
|
3051
|
+
}
|
|
3052
|
+
t.exports = i;
|
|
3053
|
+
})), Nn = /* @__PURE__ */ f(((e, t) => {
|
|
3054
|
+
t.exports = Z()(X(), "Map");
|
|
3055
|
+
})), Pn = /* @__PURE__ */ f(((e, t) => {
|
|
3056
|
+
t.exports = Z()(Object, "create");
|
|
3057
|
+
})), Fn = /* @__PURE__ */ f(((e, t) => {
|
|
3058
|
+
var n = Pn();
|
|
3059
|
+
function r() {
|
|
3060
|
+
this.__data__ = n ? n(null) : {}, this.size = 0;
|
|
3061
|
+
}
|
|
3062
|
+
t.exports = r;
|
|
3063
|
+
})), In = /* @__PURE__ */ f(((e, t) => {
|
|
3064
|
+
function n(e) {
|
|
3065
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
3066
|
+
return this.size -= +!!t, t;
|
|
3067
|
+
}
|
|
3068
|
+
t.exports = n;
|
|
3069
|
+
})), Ln = /* @__PURE__ */ f(((e, t) => {
|
|
3070
|
+
var n = Pn(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
|
|
3071
|
+
function a(e) {
|
|
3072
|
+
var t = this.__data__;
|
|
3073
|
+
if (n) {
|
|
3074
|
+
var a = t[e];
|
|
3075
|
+
return a === r ? void 0 : a;
|
|
3076
|
+
}
|
|
3077
|
+
return i.call(t, e) ? t[e] : void 0;
|
|
3078
|
+
}
|
|
3079
|
+
t.exports = a;
|
|
3080
|
+
})), Rn = /* @__PURE__ */ f(((e, t) => {
|
|
3081
|
+
var n = Pn(), r = Object.prototype.hasOwnProperty;
|
|
3082
|
+
function i(e) {
|
|
3083
|
+
var t = this.__data__;
|
|
3084
|
+
return n ? t[e] !== void 0 : r.call(t, e);
|
|
3085
|
+
}
|
|
3086
|
+
t.exports = i;
|
|
3087
|
+
})), zn = /* @__PURE__ */ f(((e, t) => {
|
|
3088
|
+
var n = Pn(), r = "__lodash_hash_undefined__";
|
|
3089
|
+
function i(e, t) {
|
|
3090
|
+
var i = this.__data__;
|
|
3091
|
+
return this.size += +!this.has(e), i[e] = n && t === void 0 ? r : t, this;
|
|
3092
|
+
}
|
|
3093
|
+
t.exports = i;
|
|
3094
|
+
})), Bn = /* @__PURE__ */ f(((e, t) => {
|
|
3095
|
+
var n = Fn(), r = In(), i = Ln(), a = Rn(), o = zn();
|
|
3096
|
+
function s(e) {
|
|
3097
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
3098
|
+
for (this.clear(); ++t < n;) {
|
|
3099
|
+
var r = e[t];
|
|
3100
|
+
this.set(r[0], r[1]);
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3104
|
+
})), Vn = /* @__PURE__ */ f(((e, t) => {
|
|
3105
|
+
var n = Bn(), r = gn(), i = Nn();
|
|
3106
|
+
function a() {
|
|
3107
|
+
this.size = 0, this.__data__ = {
|
|
3108
|
+
hash: new n(),
|
|
3109
|
+
map: new (i || r)(),
|
|
3110
|
+
string: new n()
|
|
3111
|
+
};
|
|
3112
|
+
}
|
|
3113
|
+
t.exports = a;
|
|
3114
|
+
})), Hn = /* @__PURE__ */ f(((e, t) => {
|
|
3115
|
+
function n(e) {
|
|
3116
|
+
var t = typeof e;
|
|
3117
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3118
|
+
}
|
|
3119
|
+
t.exports = n;
|
|
3120
|
+
})), Q = /* @__PURE__ */ f(((e, t) => {
|
|
3121
|
+
var n = Hn();
|
|
3122
|
+
function r(e, t) {
|
|
3123
|
+
var r = e.__data__;
|
|
3124
|
+
return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
3125
|
+
}
|
|
3126
|
+
t.exports = r;
|
|
3127
|
+
})), Un = /* @__PURE__ */ f(((e, t) => {
|
|
3128
|
+
var n = Q();
|
|
3129
|
+
function r(e) {
|
|
3130
|
+
var t = n(this, e).delete(e);
|
|
3131
|
+
return this.size -= +!!t, t;
|
|
3132
|
+
}
|
|
3133
|
+
t.exports = r;
|
|
3134
|
+
})), Wn = /* @__PURE__ */ f(((e, t) => {
|
|
3135
|
+
var n = Q();
|
|
3136
|
+
function r(e) {
|
|
3137
|
+
return n(this, e).get(e);
|
|
3138
|
+
}
|
|
3139
|
+
t.exports = r;
|
|
3140
|
+
})), Gn = /* @__PURE__ */ f(((e, t) => {
|
|
3141
|
+
var n = Q();
|
|
3142
|
+
function r(e) {
|
|
3143
|
+
return n(this, e).has(e);
|
|
3144
|
+
}
|
|
3145
|
+
t.exports = r;
|
|
3146
|
+
})), Kn = /* @__PURE__ */ f(((e, t) => {
|
|
3147
|
+
var n = Q();
|
|
3148
|
+
function r(e, t) {
|
|
3149
|
+
var r = n(this, e), i = r.size;
|
|
3150
|
+
return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
|
|
3151
|
+
}
|
|
3152
|
+
t.exports = r;
|
|
3153
|
+
})), qn = /* @__PURE__ */ f(((e, t) => {
|
|
3154
|
+
var n = Vn(), r = Un(), i = Wn(), a = Gn(), o = Kn();
|
|
3155
|
+
function s(e) {
|
|
3156
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
3157
|
+
for (this.clear(); ++t < n;) {
|
|
3158
|
+
var r = e[t];
|
|
3159
|
+
this.set(r[0], r[1]);
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3163
|
+
})), Jn = /* @__PURE__ */ f(((e, t) => {
|
|
3164
|
+
var n = gn(), r = Nn(), i = qn(), a = 200;
|
|
3165
|
+
function o(e, t) {
|
|
3166
|
+
var o = this.__data__;
|
|
3167
|
+
if (o instanceof n) {
|
|
3168
|
+
var s = o.__data__;
|
|
3169
|
+
if (!r || s.length < a - 1) return s.push([e, t]), this.size = ++o.size, this;
|
|
3170
|
+
o = this.__data__ = new i(s);
|
|
3171
|
+
}
|
|
3172
|
+
return o.set(e, t), this.size = o.size, this;
|
|
3173
|
+
}
|
|
3174
|
+
t.exports = o;
|
|
3175
|
+
})), Yn = /* @__PURE__ */ f(((e, t) => {
|
|
3176
|
+
var n = gn(), r = _n(), i = vn(), a = yn(), o = bn(), s = Jn();
|
|
3177
|
+
function c(e) {
|
|
3178
|
+
var t = this.__data__ = new n(e);
|
|
3179
|
+
this.size = t.size;
|
|
3180
|
+
}
|
|
3181
|
+
c.prototype.clear = r, c.prototype.delete = i, c.prototype.get = a, c.prototype.has = o, c.prototype.set = s, t.exports = c;
|
|
3182
|
+
})), Xn = /* @__PURE__ */ f(((e, t) => {
|
|
3183
|
+
var n = "__lodash_hash_undefined__";
|
|
3184
|
+
function r(e) {
|
|
3185
|
+
return this.__data__.set(e, n), this;
|
|
3186
|
+
}
|
|
3187
|
+
t.exports = r;
|
|
3188
|
+
})), Zn = /* @__PURE__ */ f(((e, t) => {
|
|
3189
|
+
function n(e) {
|
|
3190
|
+
return this.__data__.has(e);
|
|
3191
|
+
}
|
|
3192
|
+
t.exports = n;
|
|
3193
|
+
})), Qn = /* @__PURE__ */ f(((e, t) => {
|
|
3194
|
+
var n = qn(), r = Xn(), i = Zn();
|
|
3195
|
+
function a(e) {
|
|
3196
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
3197
|
+
for (this.__data__ = new n(); ++t < r;) this.add(e[t]);
|
|
3198
|
+
}
|
|
3199
|
+
a.prototype.add = a.prototype.push = r, a.prototype.has = i, t.exports = a;
|
|
3200
|
+
})), $n = /* @__PURE__ */ f(((e, t) => {
|
|
3201
|
+
function n(e, t) {
|
|
3202
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
|
|
3203
|
+
return !1;
|
|
3204
|
+
}
|
|
3205
|
+
t.exports = n;
|
|
3206
|
+
})), er = /* @__PURE__ */ f(((e, t) => {
|
|
3207
|
+
function n(e, t) {
|
|
3208
|
+
return e.has(t);
|
|
3209
|
+
}
|
|
3210
|
+
t.exports = n;
|
|
3211
|
+
})), tr = /* @__PURE__ */ f(((e, t) => {
|
|
3212
|
+
var n = Qn(), r = $n(), i = er(), a = 1, o = 2;
|
|
3213
|
+
function s(e, t, s, c, l, u) {
|
|
3214
|
+
var d = s & a, f = e.length, p = t.length;
|
|
3215
|
+
if (f != p && !(d && p > f)) return !1;
|
|
3216
|
+
var m = u.get(e), h = u.get(t);
|
|
3217
|
+
if (m && h) return m == t && h == e;
|
|
3218
|
+
var g = -1, _ = !0, v = s & o ? new n() : void 0;
|
|
3219
|
+
for (u.set(e, t), u.set(t, e); ++g < f;) {
|
|
3220
|
+
var y = e[g], b = t[g];
|
|
3221
|
+
if (c) var x = d ? c(b, y, g, t, e, u) : c(y, b, g, e, t, u);
|
|
3222
|
+
if (x !== void 0) {
|
|
3223
|
+
if (x) continue;
|
|
3224
|
+
_ = !1;
|
|
3225
|
+
break;
|
|
3226
|
+
}
|
|
3227
|
+
if (v) {
|
|
3228
|
+
if (!r(t, function(e, t) {
|
|
3229
|
+
if (!i(v, t) && (y === e || l(y, e, s, c, u))) return v.push(t);
|
|
3230
|
+
})) {
|
|
3231
|
+
_ = !1;
|
|
3232
|
+
break;
|
|
3233
|
+
}
|
|
3234
|
+
} else if (!(y === b || l(y, b, s, c, u))) {
|
|
3235
|
+
_ = !1;
|
|
3236
|
+
break;
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
return u.delete(e), u.delete(t), _;
|
|
3240
|
+
}
|
|
3241
|
+
t.exports = s;
|
|
3242
|
+
})), nr = /* @__PURE__ */ f(((e, t) => {
|
|
3243
|
+
t.exports = X().Uint8Array;
|
|
3244
|
+
})), rr = /* @__PURE__ */ f(((e, t) => {
|
|
3245
|
+
function n(e) {
|
|
3246
|
+
var t = -1, n = Array(e.size);
|
|
3247
|
+
return e.forEach(function(e, r) {
|
|
3248
|
+
n[++t] = [r, e];
|
|
3249
|
+
}), n;
|
|
3250
|
+
}
|
|
3251
|
+
t.exports = n;
|
|
3252
|
+
})), ir = /* @__PURE__ */ f(((e, t) => {
|
|
3253
|
+
function n(e) {
|
|
3254
|
+
var t = -1, n = Array(e.size);
|
|
3255
|
+
return e.forEach(function(e) {
|
|
3256
|
+
n[++t] = e;
|
|
3257
|
+
}), n;
|
|
3258
|
+
}
|
|
3259
|
+
t.exports = n;
|
|
3260
|
+
})), ar = /* @__PURE__ */ f(((e, t) => {
|
|
3261
|
+
var n = Sn(), r = nr(), i = un(), a = tr(), o = rr(), s = ir(), c = 1, l = 2, u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Map]", m = "[object Number]", h = "[object RegExp]", g = "[object Set]", _ = "[object String]", v = "[object Symbol]", y = "[object ArrayBuffer]", b = "[object DataView]", x = n ? n.prototype : void 0, S = x ? x.valueOf : void 0;
|
|
3262
|
+
function C(e, t, n, x, C, w, T) {
|
|
3263
|
+
switch (n) {
|
|
3264
|
+
case b:
|
|
3265
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
3266
|
+
e = e.buffer, t = t.buffer;
|
|
3267
|
+
case y: return !(e.byteLength != t.byteLength || !w(new r(e), new r(t)));
|
|
3268
|
+
case u:
|
|
3269
|
+
case d:
|
|
3270
|
+
case m: return i(+e, +t);
|
|
3271
|
+
case f: return e.name == t.name && e.message == t.message;
|
|
3272
|
+
case h:
|
|
3273
|
+
case _: return e == t + "";
|
|
3274
|
+
case p: var E = o;
|
|
3275
|
+
case g:
|
|
3276
|
+
var D = x & c;
|
|
3277
|
+
if (E ||= s, e.size != t.size && !D) return !1;
|
|
3278
|
+
var O = T.get(e);
|
|
3279
|
+
if (O) return O == t;
|
|
3280
|
+
x |= l, T.set(e, t);
|
|
3281
|
+
var k = a(E(e), E(t), x, C, w, T);
|
|
3282
|
+
return T.delete(e), k;
|
|
3283
|
+
case v: if (S) return S.call(e) == S.call(t);
|
|
3284
|
+
}
|
|
3285
|
+
return !1;
|
|
3286
|
+
}
|
|
3287
|
+
t.exports = C;
|
|
3288
|
+
})), or = /* @__PURE__ */ f(((e, t) => {
|
|
3289
|
+
function n(e, t) {
|
|
3290
|
+
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
3291
|
+
return e;
|
|
3292
|
+
}
|
|
3293
|
+
t.exports = n;
|
|
3294
|
+
})), sr = /* @__PURE__ */ f(((e, t) => {
|
|
3295
|
+
t.exports = Array.isArray;
|
|
3296
|
+
})), cr = /* @__PURE__ */ f(((e, t) => {
|
|
3297
|
+
var n = or(), r = sr();
|
|
3298
|
+
function i(e, t, i) {
|
|
3299
|
+
var a = t(e);
|
|
3300
|
+
return r(e) ? a : n(a, i(e));
|
|
3301
|
+
}
|
|
3302
|
+
t.exports = i;
|
|
3303
|
+
})), lr = /* @__PURE__ */ f(((e, t) => {
|
|
3304
|
+
function n(e, t) {
|
|
3305
|
+
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
|
|
3306
|
+
var o = e[n];
|
|
3307
|
+
t(o, n, e) && (a[i++] = o);
|
|
3308
|
+
}
|
|
3309
|
+
return a;
|
|
3310
|
+
}
|
|
3311
|
+
t.exports = n;
|
|
3312
|
+
})), ur = /* @__PURE__ */ f(((e, t) => {
|
|
3313
|
+
function n() {
|
|
3314
|
+
return [];
|
|
3315
|
+
}
|
|
3316
|
+
t.exports = n;
|
|
3317
|
+
})), dr = /* @__PURE__ */ f(((e, t) => {
|
|
3318
|
+
var n = lr(), r = ur(), i = Object.prototype.propertyIsEnumerable, a = Object.getOwnPropertySymbols;
|
|
3319
|
+
t.exports = a ? function(e) {
|
|
3320
|
+
return e == null ? [] : (e = Object(e), n(a(e), function(t) {
|
|
3321
|
+
return i.call(e, t);
|
|
3322
|
+
}));
|
|
3323
|
+
} : r;
|
|
3324
|
+
})), fr = /* @__PURE__ */ f(((e, t) => {
|
|
3325
|
+
function n(e, t) {
|
|
3326
|
+
for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
|
|
3327
|
+
return r;
|
|
3328
|
+
}
|
|
3329
|
+
t.exports = n;
|
|
3330
|
+
})), $ = /* @__PURE__ */ f(((e, t) => {
|
|
3331
|
+
function n(e) {
|
|
3332
|
+
return typeof e == "object" && !!e;
|
|
3333
|
+
}
|
|
3334
|
+
t.exports = n;
|
|
3335
|
+
})), pr = /* @__PURE__ */ f(((e, t) => {
|
|
3336
|
+
var n = Tn(), r = $(), i = "[object Arguments]";
|
|
3337
|
+
function a(e) {
|
|
3338
|
+
return r(e) && n(e) == i;
|
|
3339
|
+
}
|
|
3340
|
+
t.exports = a;
|
|
3341
|
+
})), mr = /* @__PURE__ */ f(((e, t) => {
|
|
3342
|
+
var n = pr(), r = $(), i = Object.prototype, a = i.hasOwnProperty, o = i.propertyIsEnumerable;
|
|
3343
|
+
t.exports = n(function() {
|
|
3344
|
+
return arguments;
|
|
3345
|
+
}()) ? n : function(e) {
|
|
3346
|
+
return r(e) && a.call(e, "callee") && !o.call(e, "callee");
|
|
3347
|
+
};
|
|
3348
|
+
})), hr = /* @__PURE__ */ f(((e, t) => {
|
|
3349
|
+
function n() {
|
|
3350
|
+
return !1;
|
|
3351
|
+
}
|
|
3352
|
+
t.exports = n;
|
|
3353
|
+
})), gr = /* @__PURE__ */ f(((e, t) => {
|
|
3354
|
+
var n = X(), r = hr(), i = typeof e == "object" && e && !e.nodeType && e, a = i && typeof t == "object" && t && !t.nodeType && t, o = a && a.exports === i ? n.Buffer : void 0;
|
|
3355
|
+
t.exports = (o ? o.isBuffer : void 0) || r;
|
|
3356
|
+
})), _r = /* @__PURE__ */ f(((e, t) => {
|
|
3357
|
+
var n = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
|
|
3358
|
+
function i(e, t) {
|
|
3359
|
+
var i = typeof e;
|
|
3360
|
+
return t ??= n, !!t && (i == "number" || i != "symbol" && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
3361
|
+
}
|
|
3362
|
+
t.exports = i;
|
|
3363
|
+
})), vr = /* @__PURE__ */ f(((e, t) => {
|
|
3364
|
+
var n = 9007199254740991;
|
|
3365
|
+
function r(e) {
|
|
3366
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= n;
|
|
3367
|
+
}
|
|
3368
|
+
t.exports = r;
|
|
3369
|
+
})), yr = /* @__PURE__ */ f(((e, t) => {
|
|
3370
|
+
var n = Tn(), r = vr(), i = $(), a = "[object Arguments]", o = "[object Array]", s = "[object Boolean]", c = "[object Date]", l = "[object Error]", u = "[object Function]", d = "[object Map]", f = "[object Number]", p = "[object Object]", m = "[object RegExp]", h = "[object Set]", g = "[object String]", _ = "[object WeakMap]", v = "[object ArrayBuffer]", y = "[object DataView]", b = "[object Float32Array]", x = "[object Float64Array]", S = "[object Int8Array]", C = "[object Int16Array]", w = "[object Int32Array]", T = "[object Uint8Array]", E = "[object Uint8ClampedArray]", D = "[object Uint16Array]", O = "[object Uint32Array]", k = {};
|
|
3371
|
+
k[b] = k[x] = k[S] = k[C] = k[w] = k[T] = k[E] = k[D] = k[O] = !0, k[a] = k[o] = k[v] = k[s] = k[y] = k[c] = k[l] = k[u] = k[d] = k[f] = k[p] = k[m] = k[h] = k[g] = k[_] = !1;
|
|
3372
|
+
function ee(e) {
|
|
3373
|
+
return i(e) && r(e.length) && !!k[n(e)];
|
|
3374
|
+
}
|
|
3375
|
+
t.exports = ee;
|
|
3376
|
+
})), br = /* @__PURE__ */ f(((e, t) => {
|
|
3377
|
+
function n(e) {
|
|
3378
|
+
return function(t) {
|
|
3379
|
+
return e(t);
|
|
3380
|
+
};
|
|
3381
|
+
}
|
|
3382
|
+
t.exports = n;
|
|
3383
|
+
})), xr = /* @__PURE__ */ f(((e, t) => {
|
|
3384
|
+
var n = xn(), r = typeof e == "object" && e && !e.nodeType && e, i = r && typeof t == "object" && t && !t.nodeType && t, a = i && i.exports === r && n.process;
|
|
3385
|
+
t.exports = function() {
|
|
3386
|
+
try {
|
|
3387
|
+
return i && i.require && i.require("util").types || a && a.binding && a.binding("util");
|
|
3388
|
+
} catch {}
|
|
3389
|
+
}();
|
|
3390
|
+
})), Sr = /* @__PURE__ */ f(((e, t) => {
|
|
3391
|
+
var n = yr(), r = br(), i = xr(), a = i && i.isTypedArray;
|
|
3392
|
+
t.exports = a ? r(a) : n;
|
|
3393
|
+
})), Cr = /* @__PURE__ */ f(((e, t) => {
|
|
3394
|
+
var n = fr(), r = mr(), i = sr(), a = gr(), o = _r(), s = Sr(), c = Object.prototype.hasOwnProperty;
|
|
3395
|
+
function l(e, t) {
|
|
3396
|
+
var l = i(e), u = !l && r(e), d = !l && !u && a(e), f = !l && !u && !d && s(e), p = l || u || d || f, m = p ? n(e.length, String) : [], h = m.length;
|
|
3397
|
+
for (var g in e) (t || c.call(e, g)) && !(p && (g == "length" || d && (g == "offset" || g == "parent") || f && (g == "buffer" || g == "byteLength" || g == "byteOffset") || o(g, h))) && m.push(g);
|
|
3398
|
+
return m;
|
|
3399
|
+
}
|
|
3400
|
+
t.exports = l;
|
|
3401
|
+
})), wr = /* @__PURE__ */ f(((e, t) => {
|
|
3402
|
+
var n = Object.prototype;
|
|
3403
|
+
function r(e) {
|
|
3404
|
+
var t = e && e.constructor;
|
|
3405
|
+
return e === (typeof t == "function" && t.prototype || n);
|
|
3406
|
+
}
|
|
3407
|
+
t.exports = r;
|
|
3408
|
+
})), Tr = /* @__PURE__ */ f(((e, t) => {
|
|
3409
|
+
function n(e, t) {
|
|
3410
|
+
return function(n) {
|
|
3411
|
+
return e(t(n));
|
|
3412
|
+
};
|
|
3413
|
+
}
|
|
3414
|
+
t.exports = n;
|
|
3415
|
+
})), Er = /* @__PURE__ */ f(((e, t) => {
|
|
3416
|
+
t.exports = Tr()(Object.keys, Object);
|
|
3417
|
+
})), Dr = /* @__PURE__ */ f(((e, t) => {
|
|
3418
|
+
var n = wr(), r = Er(), i = Object.prototype.hasOwnProperty;
|
|
3419
|
+
function a(e) {
|
|
3420
|
+
if (!n(e)) return r(e);
|
|
3421
|
+
var t = [];
|
|
3422
|
+
for (var a in Object(e)) i.call(e, a) && a != "constructor" && t.push(a);
|
|
3423
|
+
return t;
|
|
3424
|
+
}
|
|
3425
|
+
t.exports = a;
|
|
3426
|
+
})), Or = /* @__PURE__ */ f(((e, t) => {
|
|
3427
|
+
var n = Dn(), r = vr();
|
|
3428
|
+
function i(e) {
|
|
3429
|
+
return e != null && r(e.length) && !n(e);
|
|
3430
|
+
}
|
|
3431
|
+
t.exports = i;
|
|
3432
|
+
})), kr = /* @__PURE__ */ f(((e, t) => {
|
|
3433
|
+
var n = Cr(), r = Dr(), i = Or();
|
|
3434
|
+
function a(e) {
|
|
3435
|
+
return i(e) ? n(e) : r(e);
|
|
3436
|
+
}
|
|
3437
|
+
t.exports = a;
|
|
3438
|
+
})), Ar = /* @__PURE__ */ f(((e, t) => {
|
|
3439
|
+
var n = cr(), r = dr(), i = kr();
|
|
3440
|
+
function a(e) {
|
|
3441
|
+
return n(e, i, r);
|
|
3442
|
+
}
|
|
3443
|
+
t.exports = a;
|
|
3444
|
+
})), jr = /* @__PURE__ */ f(((e, t) => {
|
|
3445
|
+
var n = Ar(), r = 1, i = Object.prototype.hasOwnProperty;
|
|
3446
|
+
function a(e, t, a, o, s, c) {
|
|
3447
|
+
var l = a & r, u = n(e), d = u.length;
|
|
3448
|
+
if (d != n(t).length && !l) return !1;
|
|
3449
|
+
for (var f = d; f--;) {
|
|
3450
|
+
var p = u[f];
|
|
3451
|
+
if (!(l ? p in t : i.call(t, p))) return !1;
|
|
3452
|
+
}
|
|
3453
|
+
var m = c.get(e), h = c.get(t);
|
|
3454
|
+
if (m && h) return m == t && h == e;
|
|
3455
|
+
var g = !0;
|
|
3456
|
+
c.set(e, t), c.set(t, e);
|
|
3457
|
+
for (var _ = l; ++f < d;) {
|
|
3458
|
+
p = u[f];
|
|
3459
|
+
var v = e[p], y = t[p];
|
|
3460
|
+
if (o) var b = l ? o(y, v, p, t, e, c) : o(v, y, p, e, t, c);
|
|
3461
|
+
if (!(b === void 0 ? v === y || s(v, y, a, o, c) : b)) {
|
|
3462
|
+
g = !1;
|
|
3463
|
+
break;
|
|
3464
|
+
}
|
|
3465
|
+
_ ||= p == "constructor";
|
|
3466
|
+
}
|
|
3467
|
+
if (g && !_) {
|
|
3468
|
+
var x = e.constructor, S = t.constructor;
|
|
3469
|
+
x != S && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof S == "function" && S instanceof S) && (g = !1);
|
|
3470
|
+
}
|
|
3471
|
+
return c.delete(e), c.delete(t), g;
|
|
3472
|
+
}
|
|
3473
|
+
t.exports = a;
|
|
3474
|
+
})), Mr = /* @__PURE__ */ f(((e, t) => {
|
|
3475
|
+
t.exports = Z()(X(), "DataView");
|
|
3476
|
+
})), Nr = /* @__PURE__ */ f(((e, t) => {
|
|
3477
|
+
t.exports = Z()(X(), "Promise");
|
|
3478
|
+
})), Pr = /* @__PURE__ */ f(((e, t) => {
|
|
3479
|
+
t.exports = Z()(X(), "Set");
|
|
3480
|
+
})), Fr = /* @__PURE__ */ f(((e, t) => {
|
|
3481
|
+
t.exports = Z()(X(), "WeakMap");
|
|
3482
|
+
})), Ir = /* @__PURE__ */ f(((e, t) => {
|
|
3483
|
+
var n = Mr(), r = Nn(), i = Nr(), a = Pr(), o = Fr(), s = Tn(), c = An(), l = "[object Map]", u = "[object Object]", d = "[object Promise]", f = "[object Set]", p = "[object WeakMap]", m = "[object DataView]", h = c(n), g = c(r), _ = c(i), v = c(a), y = c(o), b = s;
|
|
3484
|
+
(n && b(new n(/* @__PURE__ */ new ArrayBuffer(1))) != m || r && b(new r()) != l || i && b(i.resolve()) != d || a && b(new a()) != f || o && b(new o()) != p) && (b = function(e) {
|
|
3485
|
+
var t = s(e), n = t == u ? e.constructor : void 0, r = n ? c(n) : "";
|
|
3486
|
+
if (r) switch (r) {
|
|
3487
|
+
case h: return m;
|
|
3488
|
+
case g: return l;
|
|
3489
|
+
case _: return d;
|
|
3490
|
+
case v: return f;
|
|
3491
|
+
case y: return p;
|
|
3492
|
+
}
|
|
3493
|
+
return t;
|
|
3494
|
+
}), t.exports = b;
|
|
3495
|
+
})), Lr = /* @__PURE__ */ f(((e, t) => {
|
|
3496
|
+
var n = Yn(), r = tr(), i = ar(), a = jr(), o = Ir(), s = sr(), c = gr(), l = Sr(), u = 1, d = "[object Arguments]", f = "[object Array]", p = "[object Object]", m = Object.prototype.hasOwnProperty;
|
|
3497
|
+
function h(e, t, h, g, _, v) {
|
|
3498
|
+
var y = s(e), b = s(t), x = y ? f : o(e), S = b ? f : o(t);
|
|
3499
|
+
x = x == d ? p : x, S = S == d ? p : S;
|
|
3500
|
+
var C = x == p, w = S == p, T = x == S;
|
|
3501
|
+
if (T && c(e)) {
|
|
3502
|
+
if (!c(t)) return !1;
|
|
3503
|
+
y = !0, C = !1;
|
|
3504
|
+
}
|
|
3505
|
+
if (T && !C) return v ||= new n(), y || l(e) ? r(e, t, h, g, _, v) : i(e, t, x, h, g, _, v);
|
|
3506
|
+
if (!(h & u)) {
|
|
3507
|
+
var E = C && m.call(e, "__wrapped__"), D = w && m.call(t, "__wrapped__");
|
|
3508
|
+
if (E || D) {
|
|
3509
|
+
var O = E ? e.value() : e, k = D ? t.value() : t;
|
|
3510
|
+
return v ||= new n(), _(O, k, h, g, v);
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
return T ? (v ||= new n(), a(e, t, h, g, _, v)) : !1;
|
|
3514
|
+
}
|
|
3515
|
+
t.exports = h;
|
|
3516
|
+
})), Rr = /* @__PURE__ */ f(((e, t) => {
|
|
3517
|
+
var n = Lr(), r = $();
|
|
3518
|
+
function i(e, t, a, o, s) {
|
|
3519
|
+
return e === t ? !0 : e == null || t == null || !r(e) && !r(t) ? e !== e && t !== t : n(e, t, a, o, i, s);
|
|
3520
|
+
}
|
|
3521
|
+
t.exports = i;
|
|
3522
|
+
})), zr = /* @__PURE__ */ g((/* @__PURE__ */ f(((e, t) => {
|
|
3523
|
+
var n = Rr();
|
|
3524
|
+
function r(e, t) {
|
|
3525
|
+
return n(e, t);
|
|
3526
|
+
}
|
|
3527
|
+
t.exports = r;
|
|
3528
|
+
})))(), 1), Br = (e) => {
|
|
3529
|
+
let t = e.error.flatten().fieldErrors, n = {};
|
|
3530
|
+
for (let [e, r] of Object.entries(t)) Array.isArray(r) && r.length > 0 && (n[e] = r);
|
|
3531
|
+
return n;
|
|
3532
|
+
};
|
|
3533
|
+
function Vr(e, i) {
|
|
3534
|
+
let o = n({ ...e }), s = r({}), c = r({ ...e }), l = t(() => !(0, zr.default)({ ...o }, c.value)), u = () => {
|
|
3535
|
+
s.value = {};
|
|
3536
|
+
}, d = (e) => {
|
|
3537
|
+
s.value = {
|
|
3538
|
+
...s.value,
|
|
3539
|
+
...e
|
|
3540
|
+
};
|
|
3541
|
+
}, f = () => ({ ...o }), p = () => {
|
|
3542
|
+
if (!i) return u(), {
|
|
3543
|
+
valid: !0,
|
|
3544
|
+
data: f()
|
|
3545
|
+
};
|
|
3546
|
+
let e = i.safeParse(f());
|
|
3547
|
+
return e.success ? (u(), {
|
|
3548
|
+
valid: !0,
|
|
3549
|
+
data: e.data
|
|
3550
|
+
}) : (s.value = Br(e), {
|
|
3551
|
+
valid: !1,
|
|
3552
|
+
errors: s.value
|
|
3553
|
+
});
|
|
3554
|
+
}, m = (e) => {
|
|
3555
|
+
if (!i) return;
|
|
3556
|
+
let t = i.safeParse(f()), n = e, { [n]: r, ...a } = s.value;
|
|
3557
|
+
if (t.success) {
|
|
3558
|
+
s.value = a;
|
|
3559
|
+
return;
|
|
3560
|
+
}
|
|
3561
|
+
let o = t.error.flatten().fieldErrors[n];
|
|
3562
|
+
s.value = o?.length ? {
|
|
3563
|
+
...a,
|
|
3564
|
+
[n]: o
|
|
3565
|
+
} : a;
|
|
3566
|
+
}, h = (e) => {
|
|
3567
|
+
let t = {
|
|
3568
|
+
...c.value,
|
|
3569
|
+
...e
|
|
3570
|
+
};
|
|
3571
|
+
c.value = { ...t };
|
|
3572
|
+
for (let e of Object.keys(t)) o[e] = t[e];
|
|
3573
|
+
u();
|
|
3574
|
+
};
|
|
3575
|
+
a(f, (e, t) => {
|
|
3576
|
+
for (let n of Object.keys(e)) t?.[n] !== e[n] && m(n);
|
|
3577
|
+
}, { deep: !0 });
|
|
3578
|
+
let g = {
|
|
3579
|
+
form: o,
|
|
3580
|
+
errors: s,
|
|
3581
|
+
isDirty: l,
|
|
3582
|
+
validate: p,
|
|
3583
|
+
reset: h,
|
|
3584
|
+
clearErrors: u,
|
|
3585
|
+
setErrors: d
|
|
3586
|
+
};
|
|
3587
|
+
return {
|
|
3588
|
+
...g,
|
|
3589
|
+
onSubmit: (e) => ({
|
|
3590
|
+
...g,
|
|
3591
|
+
submit: async (t) => {
|
|
3592
|
+
t?.preventDefault();
|
|
3593
|
+
let n = p();
|
|
3594
|
+
if (n.valid) return await e(n.data, t);
|
|
3595
|
+
}
|
|
3596
|
+
})
|
|
3597
|
+
};
|
|
3598
|
+
}
|
|
3599
|
+
//#endregion
|
|
3600
|
+
export { tn as a, p as c, rn as i, sn as n, nn as o, cn as r, ne as s, Vr as t };
|