hanap-labs 7.5.0 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { computed as t, onBeforeUnmount as n, reactive as r,
|
|
2
|
+
import { computed as t, onBeforeUnmount as n, reactive as r, readonly as i, ref as a, unref as o, watch as s } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, f = Object.getPrototypeOf, p = Object.prototype.hasOwnProperty, m = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), h = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) l(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
10
|
+
return t || l(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, g = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = d(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !p.call(e, s) && s !== n && l(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = u(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, _ = (e, t, n) => (g(e, t, "default"), n && g(n, t, "default")), v = (e, t, n) => (n = e == null ? {} : c(f(e)), g(t || !e || !e.__esModule ? l(n, "default", {
|
|
18
18
|
value: e,
|
|
19
19
|
enumerable: !0
|
|
20
|
-
}) : n, e)),
|
|
20
|
+
}) : n, e)), y = [
|
|
21
21
|
{
|
|
22
22
|
name: "Default",
|
|
23
23
|
description: "Classic blue and violet palette",
|
|
@@ -290,12 +290,12 @@ var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescr
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
],
|
|
293
|
+
], b = "hanap-labs-theme", x = "hanap-labs-theme", S = "light", C = [
|
|
294
294
|
"light",
|
|
295
295
|
"dark",
|
|
296
296
|
"system"
|
|
297
|
-
],
|
|
298
|
-
function
|
|
297
|
+
], w = a(S), T = a(void 0), E = t(() => w.value === "system" ? A() === "dark" : w.value === "dark"), D = t(() => !E.value), O = !1;
|
|
298
|
+
function k(e) {
|
|
299
299
|
if (typeof document > "u") return null;
|
|
300
300
|
let t = `; ${document.cookie}`.split(`; ${e}=`);
|
|
301
301
|
if (t.length === 2) {
|
|
@@ -304,24 +304,24 @@ function O(e) {
|
|
|
304
304
|
}
|
|
305
305
|
return null;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function ee(e, t, n = {}) {
|
|
308
308
|
if (typeof document > "u") return;
|
|
309
309
|
let { path: r = "/", domain: i, secure: a, sameSite: o = "lax", maxAge: s = 31536e3 } = n, c = `${encodeURIComponent(e)}=${encodeURIComponent(t)}`;
|
|
310
310
|
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;
|
|
311
311
|
}
|
|
312
312
|
function A() {
|
|
313
|
-
return typeof window > "u" ?
|
|
313
|
+
return typeof window > "u" ? S : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function te(e) {
|
|
316
316
|
return typeof document > "u" ? null : e ? typeof e == "function" ? e() : "value" in e ? e.value : e : document.documentElement;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function ne(e) {
|
|
319
319
|
try {
|
|
320
320
|
if (!e) {
|
|
321
|
-
let e =
|
|
321
|
+
let e = te();
|
|
322
322
|
return e ? [...e.ownerDocument.querySelectorAll(".hanap-labs-theme")] : [];
|
|
323
323
|
}
|
|
324
|
-
let t =
|
|
324
|
+
let t = te(e);
|
|
325
325
|
if (!t) return [];
|
|
326
326
|
let n = [...t.querySelectorAll(".hanap-labs-theme")];
|
|
327
327
|
return t.classList.contains("hanap-labs-theme") && n.unshift(t), n;
|
|
@@ -329,23 +329,23 @@ function ee(e) {
|
|
|
329
329
|
return [];
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
let n =
|
|
332
|
+
function re(e, t = {}) {
|
|
333
|
+
let n = te(t.target);
|
|
334
334
|
if (!n) return;
|
|
335
335
|
let r = e === "system" ? A() : e, { applyMethod: i = "class", classPrefix: a = "", attributeName: o = "data-theme" } = t;
|
|
336
336
|
if (i === "class" || i === "both") {
|
|
337
337
|
n.classList.remove(`${a}light`, `${a}dark`), n.classList.add(`${a}${r}`);
|
|
338
|
-
let e =
|
|
338
|
+
let e = ne(t.target);
|
|
339
339
|
for (let t of e) t.classList.remove(`${a}light`, `${a}dark`), t.classList.add(`${a}${r}`);
|
|
340
340
|
}
|
|
341
341
|
if (i === "attribute" || i === "both") {
|
|
342
342
|
n.setAttribute(o, r);
|
|
343
|
-
let e =
|
|
343
|
+
let e = ne(t.target);
|
|
344
344
|
for (let t of e) t.setAttribute(o, r);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
let n =
|
|
347
|
+
function ie(e, t) {
|
|
348
|
+
let n = te(t);
|
|
349
349
|
if (!n) return;
|
|
350
350
|
let r = [
|
|
351
351
|
"primary",
|
|
@@ -360,42 +360,42 @@ function M(e, t) {
|
|
|
360
360
|
for (let e of r) t.style.removeProperty(`--${e}`);
|
|
361
361
|
return;
|
|
362
362
|
}
|
|
363
|
-
let n =
|
|
363
|
+
let n = y.find((t) => t.name === e);
|
|
364
364
|
if (!n) return;
|
|
365
|
-
let i =
|
|
365
|
+
let i = E.value;
|
|
366
366
|
for (let e of r) {
|
|
367
367
|
let r = n.colors[e];
|
|
368
368
|
t.style.setProperty(`--${e}`, i ? r.dark : r.light);
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
371
|
i(n);
|
|
372
|
-
let a =
|
|
372
|
+
let a = ne(t);
|
|
373
373
|
for (let e of a) i(e);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function ae(e) {
|
|
376
376
|
if (typeof window > "u") return null;
|
|
377
|
-
let { storageKey: t =
|
|
377
|
+
let { storageKey: t = b, cookieKey: n = x, storage: r = "both" } = e;
|
|
378
378
|
if (r === "cookie" || r === "both") {
|
|
379
|
-
let e =
|
|
380
|
-
if (e &&
|
|
379
|
+
let e = k(n);
|
|
380
|
+
if (e && C.includes(e)) return e;
|
|
381
381
|
}
|
|
382
382
|
if (r === "localStorage" || r === "both") {
|
|
383
383
|
let e = typeof localStorage < "u" ? localStorage.getItem(t) : null;
|
|
384
|
-
if (e &&
|
|
384
|
+
if (e && C.includes(e)) return e;
|
|
385
385
|
}
|
|
386
386
|
return null;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
390
|
-
|
|
388
|
+
function oe(e = {}) {
|
|
389
|
+
O || (O = !0, s(E, () => {
|
|
390
|
+
re(w.value, e), T.value && ie(T.value, e.target), e.onThemeChange && e.onThemeChange(w.value, E.value);
|
|
391
391
|
}));
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
let { defaultMode: r =
|
|
395
|
-
if (
|
|
393
|
+
function se(e = {}) {
|
|
394
|
+
let { defaultMode: r = S, preset: i, storageKey: a = b, cookieKey: o = x, cookieOptions: s, storage: c = "both", target: l } = e;
|
|
395
|
+
if (w.value = ae(e) ?? r, re(w.value, e), oe(e), i && (T.value = i, ie(i, l)), typeof MutationObserver < "u") {
|
|
396
396
|
let t = new MutationObserver((t) => {
|
|
397
397
|
for (let n of t) for (let t of n.addedNodes) if (t instanceof HTMLElement && (t.classList.contains("hanap-labs-theme") || t.querySelector(".hanap-labs-theme"))) {
|
|
398
|
-
|
|
398
|
+
re(w.value, e), T.value && ie(T.value, l);
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
}), r = document.body ?? document.documentElement;
|
|
@@ -404,37 +404,37 @@ function ie(e = {}) {
|
|
|
404
404
|
subtree: !0
|
|
405
405
|
}), n(() => t.disconnect());
|
|
406
406
|
}
|
|
407
|
-
let u = t(() =>
|
|
408
|
-
|
|
407
|
+
let u = t(() => w.value === "system" ? A() : w.value), d = (e) => {
|
|
408
|
+
w.value = e, (c === "localStorage" || c === "both") && typeof localStorage < "u" && localStorage.setItem(a, e), (c === "cookie" || c === "both") && ee(o, e, s);
|
|
409
409
|
};
|
|
410
410
|
return {
|
|
411
|
-
mode:
|
|
412
|
-
isDark:
|
|
413
|
-
isLight:
|
|
411
|
+
mode: w,
|
|
412
|
+
isDark: E,
|
|
413
|
+
isLight: D,
|
|
414
414
|
toggle: () => {
|
|
415
|
-
|
|
415
|
+
w.value === "light" ? d("dark") : w.value === "dark" ? d("light") : d(A() === "light" ? "dark" : "light");
|
|
416
416
|
},
|
|
417
417
|
setMode: d,
|
|
418
|
-
preset:
|
|
418
|
+
preset: T,
|
|
419
419
|
setPreset: (e) => {
|
|
420
|
-
|
|
420
|
+
T.value = e, ie(e, l);
|
|
421
421
|
},
|
|
422
422
|
activeTheme: u,
|
|
423
423
|
getThemeClasses: () => {
|
|
424
424
|
let { applyMethod: t = "class", classPrefix: n = "" } = e;
|
|
425
|
-
return t !== "class" && t !== "both" ? [] : [`${n}${
|
|
425
|
+
return t !== "class" && t !== "both" ? [] : [`${n}${w.value === "system" ? A() : w.value}`];
|
|
426
426
|
},
|
|
427
427
|
getThemeAttributes: () => {
|
|
428
428
|
let { applyMethod: t = "attribute", attributeName: n = "data-theme" } = e;
|
|
429
429
|
if (t !== "attribute" && t !== "both") return {};
|
|
430
|
-
let r =
|
|
430
|
+
let r = w.value === "system" ? A() : w.value;
|
|
431
431
|
return { [n]: r };
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
437
|
-
var
|
|
437
|
+
var j = class {
|
|
438
438
|
constructor() {
|
|
439
439
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
440
440
|
}
|
|
@@ -448,7 +448,7 @@ var N = class {
|
|
|
448
448
|
}
|
|
449
449
|
onSubscribe() {}
|
|
450
450
|
onUnsubscribe() {}
|
|
451
|
-
},
|
|
451
|
+
}, ce = new class extends j {
|
|
452
452
|
#e;
|
|
453
453
|
#t;
|
|
454
454
|
#n;
|
|
@@ -485,13 +485,13 @@ var N = class {
|
|
|
485
485
|
isFocused() {
|
|
486
486
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
487
487
|
}
|
|
488
|
-
}(),
|
|
488
|
+
}(), le = {
|
|
489
489
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
490
490
|
clearTimeout: (e) => clearTimeout(e),
|
|
491
491
|
setInterval: (e, t) => setInterval(e, t),
|
|
492
492
|
clearInterval: (e) => clearInterval(e)
|
|
493
|
-
},
|
|
494
|
-
#e =
|
|
493
|
+
}, M = new class {
|
|
494
|
+
#e = le;
|
|
495
495
|
#t = !1;
|
|
496
496
|
setTimeoutProvider(e) {
|
|
497
497
|
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.", {
|
|
@@ -512,34 +512,34 @@ var N = class {
|
|
|
512
512
|
this.#e.clearInterval(e);
|
|
513
513
|
}
|
|
514
514
|
}();
|
|
515
|
-
function
|
|
515
|
+
function ue(e) {
|
|
516
516
|
setTimeout(e, 0);
|
|
517
517
|
}
|
|
518
518
|
//#endregion
|
|
519
519
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
520
|
-
var
|
|
521
|
-
function
|
|
522
|
-
function
|
|
520
|
+
var de = typeof window > "u" || "Deno" in globalThis;
|
|
521
|
+
function N() {}
|
|
522
|
+
function fe(e, t) {
|
|
523
523
|
return typeof e == "function" ? e(t) : e;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function pe(e) {
|
|
526
526
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function me(e, t) {
|
|
529
529
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function P(e, t) {
|
|
532
532
|
return typeof e == "function" ? e(t) : e;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function F(e, t) {
|
|
535
535
|
return typeof e == "function" ? e(t) : e;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function he(e, t) {
|
|
538
538
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
539
539
|
if (o) {
|
|
540
540
|
if (r) {
|
|
541
|
-
if (t.queryHash !==
|
|
542
|
-
} else if (!
|
|
541
|
+
if (t.queryHash !== _e(o, t.options)) return !1;
|
|
542
|
+
} else if (!L(t.queryKey, o)) return !1;
|
|
543
543
|
}
|
|
544
544
|
if (n !== "all") {
|
|
545
545
|
let e = t.isActive();
|
|
@@ -547,98 +547,98 @@ function fe(e, t) {
|
|
|
547
547
|
}
|
|
548
548
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function ge(e, t) {
|
|
551
551
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
552
552
|
if (a) {
|
|
553
553
|
if (!t.options.mutationKey) return !1;
|
|
554
554
|
if (n) {
|
|
555
|
-
if (
|
|
556
|
-
} else if (!
|
|
555
|
+
if (I(t.options.mutationKey) !== I(a)) return !1;
|
|
556
|
+
} else if (!L(t.options.mutationKey, a)) return !1;
|
|
557
557
|
}
|
|
558
558
|
return !(r && t.state.status !== r || i && !i(t));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
return (t?.queryKeyHashFn ||
|
|
560
|
+
function _e(e, t) {
|
|
561
|
+
return (t?.queryKeyHashFn || I)(e);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return JSON.stringify(e, (e, t) =>
|
|
563
|
+
function I(e) {
|
|
564
|
+
return JSON.stringify(e, (e, t) => xe(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
566
|
+
function L(e, t) {
|
|
567
|
+
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;
|
|
568
568
|
}
|
|
569
|
-
var
|
|
570
|
-
function
|
|
569
|
+
var ve = Object.prototype.hasOwnProperty;
|
|
570
|
+
function ye(e, t, n = 0) {
|
|
571
571
|
if (e === t) return e;
|
|
572
572
|
if (n > 500) return t;
|
|
573
|
-
let r =
|
|
574
|
-
if (!r && !(
|
|
573
|
+
let r = be(e) && be(t);
|
|
574
|
+
if (!r && !(xe(e) && xe(t))) return t;
|
|
575
575
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
576
576
|
for (let l = 0; l < o; l++) {
|
|
577
577
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
578
578
|
if (u === d) {
|
|
579
|
-
s[o] = u, (r ? l < i :
|
|
579
|
+
s[o] = u, (r ? l < i : ve.call(e, o)) && c++;
|
|
580
580
|
continue;
|
|
581
581
|
}
|
|
582
582
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
583
583
|
s[o] = d;
|
|
584
584
|
continue;
|
|
585
585
|
}
|
|
586
|
-
let f =
|
|
586
|
+
let f = ye(u, d, n + 1);
|
|
587
587
|
s[o] = f, f === u && c++;
|
|
588
588
|
}
|
|
589
589
|
return i === o && c === i ? e : s;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function R(e, t) {
|
|
592
592
|
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
593
593
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
594
594
|
return !0;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function be(e) {
|
|
597
597
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
if (!
|
|
599
|
+
function xe(e) {
|
|
600
|
+
if (!Se(e)) return !1;
|
|
601
601
|
let t = e.constructor;
|
|
602
602
|
if (t === void 0) return !0;
|
|
603
603
|
let n = t.prototype;
|
|
604
|
-
return !(!
|
|
604
|
+
return !(!Se(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Se(e) {
|
|
607
607
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Ce(e) {
|
|
610
610
|
return new Promise((t) => {
|
|
611
|
-
|
|
611
|
+
M.setTimeout(t, e);
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function we(e, t, n) {
|
|
615
615
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
616
616
|
if (n.structuralSharing !== !1) {
|
|
617
617
|
if (process.env.NODE_ENV !== "production") try {
|
|
618
|
-
return
|
|
618
|
+
return ye(e, t);
|
|
619
619
|
} catch (e) {
|
|
620
620
|
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;
|
|
621
621
|
}
|
|
622
|
-
return
|
|
622
|
+
return ye(e, t);
|
|
623
623
|
}
|
|
624
624
|
return t;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Te(e, t, n = 0) {
|
|
627
627
|
let r = [...e, t];
|
|
628
628
|
return n && r.length > n ? r.slice(1) : r;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ee(e, t, n = 0) {
|
|
631
631
|
let r = [t, ...e];
|
|
632
632
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
633
633
|
}
|
|
634
|
-
var
|
|
635
|
-
function
|
|
636
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
634
|
+
var z = /* @__PURE__ */ Symbol();
|
|
635
|
+
function De(e, t) {
|
|
636
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === z && 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 === z ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Oe(e, t) {
|
|
639
639
|
return typeof e == "function" ? e(...t) : !!e;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function ke(e, t, n) {
|
|
642
642
|
let r = !1, i;
|
|
643
643
|
return Object.defineProperty(e, "signal", {
|
|
644
644
|
enumerable: !0,
|
|
@@ -647,8 +647,8 @@ function De(e, t, n) {
|
|
|
647
647
|
}
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
650
|
-
var
|
|
651
|
-
let e = () =>
|
|
650
|
+
var B = /* @__PURE__ */ (() => {
|
|
651
|
+
let e = () => de;
|
|
652
652
|
return {
|
|
653
653
|
isServer() {
|
|
654
654
|
return e();
|
|
@@ -660,7 +660,7 @@ var Oe = /* @__PURE__ */ (() => {
|
|
|
660
660
|
})();
|
|
661
661
|
//#endregion
|
|
662
662
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
663
|
-
function
|
|
663
|
+
function Ae() {
|
|
664
664
|
let e, t, n = new Promise((n, r) => {
|
|
665
665
|
e = n, t = r;
|
|
666
666
|
});
|
|
@@ -682,13 +682,13 @@ function ke() {
|
|
|
682
682
|
}
|
|
683
683
|
//#endregion
|
|
684
684
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
685
|
-
var
|
|
686
|
-
function
|
|
685
|
+
var je = ue;
|
|
686
|
+
function Me() {
|
|
687
687
|
let e = [], t = 0, n = (e) => {
|
|
688
688
|
e();
|
|
689
689
|
}, r = (e) => {
|
|
690
690
|
e();
|
|
691
|
-
}, i =
|
|
691
|
+
}, i = je, a = (r) => {
|
|
692
692
|
t ? e.push(r) : i(() => {
|
|
693
693
|
n(r);
|
|
694
694
|
});
|
|
@@ -730,7 +730,7 @@ function je() {
|
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
var V =
|
|
733
|
+
var V = Me(), H = new class extends j {
|
|
734
734
|
#e = !0;
|
|
735
735
|
#t;
|
|
736
736
|
#n;
|
|
@@ -764,28 +764,28 @@ var V = je(), H = new class extends N {
|
|
|
764
764
|
}();
|
|
765
765
|
//#endregion
|
|
766
766
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
767
|
-
function
|
|
767
|
+
function Ne(e) {
|
|
768
768
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Pe(e) {
|
|
771
771
|
return (e ?? "online") === "online" ? H.isOnline() : !0;
|
|
772
772
|
}
|
|
773
|
-
var
|
|
773
|
+
var Fe = class extends Error {
|
|
774
774
|
constructor(e) {
|
|
775
775
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
function
|
|
779
|
-
let t = !1, n = 0, r, i =
|
|
778
|
+
function Ie(e) {
|
|
779
|
+
let t = !1, n = 0, r, i = Ae(), a = () => i.status !== "pending", o = (t) => {
|
|
780
780
|
if (!a()) {
|
|
781
|
-
let n = new
|
|
781
|
+
let n = new Fe(t);
|
|
782
782
|
f(n), e.onCancel?.(n);
|
|
783
783
|
}
|
|
784
784
|
}, s = () => {
|
|
785
785
|
t = !0;
|
|
786
786
|
}, c = () => {
|
|
787
787
|
t = !1;
|
|
788
|
-
}, l = () =>
|
|
788
|
+
}, l = () => ce.isFocused() && (e.networkMode === "always" || H.isOnline()) && e.canRun(), u = () => Pe(e.networkMode) && e.canRun(), d = (e) => {
|
|
789
789
|
a() || (r?.(), i.resolve(e));
|
|
790
790
|
}, f = (e) => {
|
|
791
791
|
a() || (r?.(), i.reject(e));
|
|
@@ -805,12 +805,12 @@ function Fe(e) {
|
|
|
805
805
|
}
|
|
806
806
|
Promise.resolve(r).then(d).catch((r) => {
|
|
807
807
|
if (a()) return;
|
|
808
|
-
let i = e.retry ?? (
|
|
808
|
+
let i = e.retry ?? (B.isServer() ? 0 : 3), o = e.retryDelay ?? Ne, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
809
809
|
if (t || !c) {
|
|
810
810
|
f(r);
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
n++, e.onFail?.(n, r),
|
|
813
|
+
n++, e.onFail?.(n, r), Ce(s).then(() => l() ? void 0 : p()).then(() => {
|
|
814
814
|
t ? f(r) : m();
|
|
815
815
|
});
|
|
816
816
|
});
|
|
@@ -828,34 +828,34 @@ function Fe(e) {
|
|
|
828
828
|
}
|
|
829
829
|
//#endregion
|
|
830
830
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
831
|
-
var
|
|
831
|
+
var Le = class {
|
|
832
832
|
#e;
|
|
833
833
|
destroy() {
|
|
834
834
|
this.clearGcTimeout();
|
|
835
835
|
}
|
|
836
836
|
scheduleGc() {
|
|
837
|
-
this.clearGcTimeout(),
|
|
837
|
+
this.clearGcTimeout(), pe(this.gcTime) && (this.#e = M.setTimeout(() => {
|
|
838
838
|
this.optionalRemove();
|
|
839
839
|
}, this.gcTime));
|
|
840
840
|
}
|
|
841
841
|
updateGcTime(e) {
|
|
842
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
842
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (B.isServer() ? Infinity : 300 * 1e3));
|
|
843
843
|
}
|
|
844
844
|
clearGcTimeout() {
|
|
845
|
-
this.#e !== void 0 && (
|
|
845
|
+
this.#e !== void 0 && (M.clearTimeout(this.#e), this.#e = void 0);
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
848
|
//#endregion
|
|
849
849
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
850
|
-
function
|
|
850
|
+
function Re(e) {
|
|
851
851
|
return { onFetch: (t, n) => {
|
|
852
852
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
853
853
|
pages: [],
|
|
854
854
|
pageParams: []
|
|
855
855
|
}, c = 0, l = async () => {
|
|
856
856
|
let n = !1, l = (e) => {
|
|
857
|
-
|
|
858
|
-
}, u =
|
|
857
|
+
ke(e, () => t.signal, () => n = !0);
|
|
858
|
+
}, u = De(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
859
859
|
if (n) return Promise.reject(t.signal.reason);
|
|
860
860
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
861
861
|
let a = await u((() => {
|
|
@@ -867,14 +867,14 @@ function Le(e) {
|
|
|
867
867
|
meta: t.options.meta
|
|
868
868
|
};
|
|
869
869
|
return l(e), e;
|
|
870
|
-
})()), { maxPages: o } = t.options, s = i ?
|
|
870
|
+
})()), { maxPages: o } = t.options, s = i ? Ee : Te;
|
|
871
871
|
return {
|
|
872
872
|
pages: s(e.pages, a, o),
|
|
873
873
|
pageParams: s(e.pageParams, r, o)
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
if (i && a.length) {
|
|
877
|
-
let e = i === "backward", t = e ?
|
|
877
|
+
let e = i === "backward", t = e ? Be : ze, n = {
|
|
878
878
|
pages: a,
|
|
879
879
|
pageParams: o
|
|
880
880
|
};
|
|
@@ -882,7 +882,7 @@ function Le(e) {
|
|
|
882
882
|
} else {
|
|
883
883
|
let t = e ?? a.length;
|
|
884
884
|
do {
|
|
885
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
885
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : ze(r, s);
|
|
886
886
|
if (c > 0 && e == null) break;
|
|
887
887
|
s = await d(s, e), c++;
|
|
888
888
|
} while (c < t);
|
|
@@ -897,16 +897,16 @@ function Le(e) {
|
|
|
897
897
|
}, n) : t.fetchFn = l;
|
|
898
898
|
} };
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function ze(e, { pages: t, pageParams: n }) {
|
|
901
901
|
let r = t.length - 1;
|
|
902
902
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Be(e, { pages: t, pageParams: n }) {
|
|
905
905
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
906
906
|
}
|
|
907
907
|
//#endregion
|
|
908
908
|
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
909
|
-
var
|
|
909
|
+
var Ve = class extends Le {
|
|
910
910
|
#e;
|
|
911
911
|
#t;
|
|
912
912
|
#n;
|
|
@@ -916,7 +916,7 @@ var Be = class extends Ie {
|
|
|
916
916
|
#o;
|
|
917
917
|
#s;
|
|
918
918
|
constructor(e) {
|
|
919
|
-
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 =
|
|
919
|
+
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 = We(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
920
920
|
}
|
|
921
921
|
get meta() {
|
|
922
922
|
return this.options.meta;
|
|
@@ -932,15 +932,15 @@ var Be = class extends Ie {
|
|
|
932
932
|
...this.#o,
|
|
933
933
|
...e
|
|
934
934
|
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
935
|
-
let e =
|
|
936
|
-
e.data !== void 0 && (this.setState(
|
|
935
|
+
let e = We(this.options);
|
|
936
|
+
e.data !== void 0 && (this.setState(Ue(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
optionalRemove() {
|
|
940
940
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
941
941
|
}
|
|
942
942
|
setData(e, t) {
|
|
943
|
-
let n =
|
|
943
|
+
let n = we(this.state.data, e, this.options);
|
|
944
944
|
return this.#l({
|
|
945
945
|
data: n,
|
|
946
946
|
type: "success",
|
|
@@ -956,7 +956,7 @@ var Be = class extends Ie {
|
|
|
956
956
|
}
|
|
957
957
|
cancel(e) {
|
|
958
958
|
let t = this.#a?.promise;
|
|
959
|
-
return this.#a?.cancel(e), t ? t.then(
|
|
959
|
+
return this.#a?.cancel(e), t ? t.then(N).catch(N) : Promise.resolve();
|
|
960
960
|
}
|
|
961
961
|
destroy() {
|
|
962
962
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -968,22 +968,22 @@ var Be = class extends Ie {
|
|
|
968
968
|
this.destroy(), this.setState(this.resetState);
|
|
969
969
|
}
|
|
970
970
|
isActive() {
|
|
971
|
-
return this.observers.some((e) =>
|
|
971
|
+
return this.observers.some((e) => F(e.options.enabled, this) !== !1);
|
|
972
972
|
}
|
|
973
973
|
isDisabled() {
|
|
974
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
974
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === z || !this.isFetched();
|
|
975
975
|
}
|
|
976
976
|
isFetched() {
|
|
977
977
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
978
978
|
}
|
|
979
979
|
isStatic() {
|
|
980
|
-
return this.getObserversCount() > 0 ? this.observers.some((e) =>
|
|
980
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => P(e.options.staleTime, this) === "static") : !1;
|
|
981
981
|
}
|
|
982
982
|
isStale() {
|
|
983
983
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
984
984
|
}
|
|
985
985
|
isStaleByTime(e = 0) {
|
|
986
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
986
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !me(this.state.dataUpdatedAt, e);
|
|
987
987
|
}
|
|
988
988
|
onFocus() {
|
|
989
989
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
@@ -1030,7 +1030,7 @@ var Be = class extends Ie {
|
|
|
1030
1030
|
get: () => (this.#s = !0, n.signal)
|
|
1031
1031
|
});
|
|
1032
1032
|
}, i = () => {
|
|
1033
|
-
let e =
|
|
1033
|
+
let e = De(this.options, t), n = (() => {
|
|
1034
1034
|
let e = {
|
|
1035
1035
|
client: this.#i,
|
|
1036
1036
|
queryKey: this.queryKey,
|
|
@@ -1050,14 +1050,14 @@ var Be = class extends Ie {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
return r(e), e;
|
|
1052
1052
|
})();
|
|
1053
|
-
(this.#e === "infinite" ?
|
|
1053
|
+
(this.#e === "infinite" ? Re(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({
|
|
1054
1054
|
type: "fetch",
|
|
1055
1055
|
meta: a.fetchOptions?.meta
|
|
1056
|
-
}), this.#a =
|
|
1056
|
+
}), this.#a = Ie({
|
|
1057
1057
|
initialPromise: t?.initialPromise,
|
|
1058
1058
|
fn: a.fetchFn,
|
|
1059
1059
|
onCancel: (e) => {
|
|
1060
|
-
e instanceof
|
|
1060
|
+
e instanceof Fe && e.revert && this.setState({
|
|
1061
1061
|
...this.#n,
|
|
1062
1062
|
fetchStatus: "idle"
|
|
1063
1063
|
}), n.abort();
|
|
@@ -1085,7 +1085,7 @@ var Be = class extends Ie {
|
|
|
1085
1085
|
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`);
|
|
1086
1086
|
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
1087
1087
|
} catch (e) {
|
|
1088
|
-
if (e instanceof
|
|
1088
|
+
if (e instanceof Fe) {
|
|
1089
1089
|
if (e.silent) return this.#a.promise;
|
|
1090
1090
|
if (e.revert) {
|
|
1091
1091
|
if (this.state.data === void 0) throw e;
|
|
@@ -1118,13 +1118,13 @@ var Be = class extends Ie {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
case "fetch": return {
|
|
1120
1120
|
...t,
|
|
1121
|
-
...
|
|
1121
|
+
...He(t.data, this.options),
|
|
1122
1122
|
fetchMeta: e.meta ?? null
|
|
1123
1123
|
};
|
|
1124
1124
|
case "success":
|
|
1125
1125
|
let n = {
|
|
1126
1126
|
...t,
|
|
1127
|
-
...
|
|
1127
|
+
...Ue(e.data, e.dataUpdatedAt),
|
|
1128
1128
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
1129
1129
|
...!e.manual && {
|
|
1130
1130
|
fetchStatus: "idle",
|
|
@@ -1167,18 +1167,18 @@ var Be = class extends Ie {
|
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
1169
1169
|
};
|
|
1170
|
-
function
|
|
1170
|
+
function He(e, t) {
|
|
1171
1171
|
return {
|
|
1172
1172
|
fetchFailureCount: 0,
|
|
1173
1173
|
fetchFailureReason: null,
|
|
1174
|
-
fetchStatus:
|
|
1174
|
+
fetchStatus: Pe(t.networkMode) ? "fetching" : "paused",
|
|
1175
1175
|
...e === void 0 && {
|
|
1176
1176
|
error: null,
|
|
1177
1177
|
status: "pending"
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function Ue(e, t) {
|
|
1182
1182
|
return {
|
|
1183
1183
|
data: e,
|
|
1184
1184
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -1187,7 +1187,7 @@ function He(e, t) {
|
|
|
1187
1187
|
status: "success"
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function We(e) {
|
|
1191
1191
|
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;
|
|
1192
1192
|
return {
|
|
1193
1193
|
data: t,
|
|
@@ -1206,9 +1206,9 @@ function Ue(e) {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
//#endregion
|
|
1208
1208
|
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
1209
|
-
var
|
|
1209
|
+
var Ge = class extends j {
|
|
1210
1210
|
constructor(e, t) {
|
|
1211
|
-
super(), this.options = t, this.#e = e, this.#s = null, this.#o =
|
|
1211
|
+
super(), this.options = t, this.#e = e, this.#s = null, this.#o = Ae(), this.bindMethods(), this.setOptions(t);
|
|
1212
1212
|
}
|
|
1213
1213
|
#e;
|
|
1214
1214
|
#t = void 0;
|
|
@@ -1229,36 +1229,36 @@ var We = class extends N {
|
|
|
1229
1229
|
this.refetch = this.refetch.bind(this);
|
|
1230
1230
|
}
|
|
1231
1231
|
onSubscribe() {
|
|
1232
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1232
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), qe(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
1233
1233
|
}
|
|
1234
1234
|
onUnsubscribe() {
|
|
1235
1235
|
this.hasListeners() || this.destroy();
|
|
1236
1236
|
}
|
|
1237
1237
|
shouldFetchOnReconnect() {
|
|
1238
|
-
return
|
|
1238
|
+
return Je(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1239
1239
|
}
|
|
1240
1240
|
shouldFetchOnWindowFocus() {
|
|
1241
|
-
return
|
|
1241
|
+
return Je(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1242
1242
|
}
|
|
1243
1243
|
destroy() {
|
|
1244
1244
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1245
1245
|
}
|
|
1246
1246
|
setOptions(e) {
|
|
1247
1247
|
let t = this.options, n = this.#t;
|
|
1248
|
-
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
1249
|
-
this.#S(), this.#t.setOptions(this.options), t._defaulted && !
|
|
1248
|
+
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");
|
|
1249
|
+
this.#S(), this.#t.setOptions(this.options), t._defaulted && !R(this.options, t) && this.#e.getQueryCache().notify({
|
|
1250
1250
|
type: "observerOptionsUpdated",
|
|
1251
1251
|
query: this.#t,
|
|
1252
1252
|
observer: this
|
|
1253
1253
|
});
|
|
1254
1254
|
let r = this.hasListeners();
|
|
1255
|
-
r &&
|
|
1255
|
+
r && Ye(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();
|
|
1256
1256
|
let i = this.#_();
|
|
1257
|
-
r && (this.#t !== n ||
|
|
1257
|
+
r && (this.#t !== n || F(this.options.enabled, this.#t) !== F(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
|
|
1258
1258
|
}
|
|
1259
1259
|
getOptimisticResult(e) {
|
|
1260
1260
|
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
|
|
1261
|
-
return
|
|
1261
|
+
return Ze(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
|
|
1262
1262
|
}
|
|
1263
1263
|
getCurrentResult() {
|
|
1264
1264
|
return this.#r;
|
|
@@ -1288,14 +1288,14 @@ var We = class extends N {
|
|
|
1288
1288
|
#h(e) {
|
|
1289
1289
|
this.#S();
|
|
1290
1290
|
let t = this.#t.fetch(this.options, e);
|
|
1291
|
-
return e?.throwOnError || (t = t.catch(
|
|
1291
|
+
return e?.throwOnError || (t = t.catch(N)), t;
|
|
1292
1292
|
}
|
|
1293
1293
|
#g() {
|
|
1294
1294
|
this.#b();
|
|
1295
|
-
let e =
|
|
1296
|
-
if (
|
|
1297
|
-
let t =
|
|
1298
|
-
this.#d =
|
|
1295
|
+
let e = P(this.options.staleTime, this.#t);
|
|
1296
|
+
if (B.isServer() || this.#r.isStale || !pe(e)) return;
|
|
1297
|
+
let t = me(this.#r.dataUpdatedAt, e) + 1;
|
|
1298
|
+
this.#d = M.setTimeout(() => {
|
|
1299
1299
|
this.#r.isStale || this.updateResult();
|
|
1300
1300
|
}, t);
|
|
1301
1301
|
}
|
|
@@ -1303,26 +1303,26 @@ var We = class extends N {
|
|
|
1303
1303
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
1304
1304
|
}
|
|
1305
1305
|
#v(e) {
|
|
1306
|
-
this.#x(), this.#p = e, !(
|
|
1307
|
-
(this.options.refetchIntervalInBackground ||
|
|
1306
|
+
this.#x(), this.#p = e, !(B.isServer() || F(this.options.enabled, this.#t) === !1 || !pe(this.#p) || this.#p === 0) && (this.#f = M.setInterval(() => {
|
|
1307
|
+
(this.options.refetchIntervalInBackground || ce.isFocused()) && this.#h();
|
|
1308
1308
|
}, this.#p));
|
|
1309
1309
|
}
|
|
1310
1310
|
#y() {
|
|
1311
1311
|
this.#g(), this.#v(this.#_());
|
|
1312
1312
|
}
|
|
1313
1313
|
#b() {
|
|
1314
|
-
this.#d !== void 0 && (
|
|
1314
|
+
this.#d !== void 0 && (M.clearTimeout(this.#d), this.#d = void 0);
|
|
1315
1315
|
}
|
|
1316
1316
|
#x() {
|
|
1317
|
-
this.#f !== void 0 && (
|
|
1317
|
+
this.#f !== void 0 && (M.clearInterval(this.#f), this.#f = void 0);
|
|
1318
1318
|
}
|
|
1319
1319
|
createResult(e, t) {
|
|
1320
1320
|
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;
|
|
1321
1321
|
if (t._optimisticResults) {
|
|
1322
|
-
let i = this.hasListeners(), a = !i &&
|
|
1322
|
+
let i = this.hasListeners(), a = !i && qe(e, t), o = i && Ye(e, n, t, r);
|
|
1323
1323
|
(a || o) && (l = {
|
|
1324
1324
|
...l,
|
|
1325
|
-
...
|
|
1325
|
+
...He(c.data, e.options)
|
|
1326
1326
|
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
|
|
1327
1327
|
}
|
|
1328
1328
|
let { error: f, errorUpdatedAt: p, status: m } = l;
|
|
@@ -1330,11 +1330,11 @@ var We = class extends N {
|
|
|
1330
1330
|
let h = !1;
|
|
1331
1331
|
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
|
|
1332
1332
|
let e;
|
|
1333
|
-
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 =
|
|
1333
|
+
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 = we(i?.data, e, t), u = !0);
|
|
1334
1334
|
}
|
|
1335
1335
|
if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
|
|
1336
1336
|
else try {
|
|
1337
|
-
this.#c = t.select, d = t.select(d), d =
|
|
1337
|
+
this.#c = t.select, d = t.select(d), d = we(i?.data, d, t), this.#l = d, this.#s = null;
|
|
1338
1338
|
} catch (e) {
|
|
1339
1339
|
this.#s = e;
|
|
1340
1340
|
}
|
|
@@ -1362,16 +1362,16 @@ var We = class extends N {
|
|
|
1362
1362
|
isPaused: l.fetchStatus === "paused",
|
|
1363
1363
|
isPlaceholderData: u,
|
|
1364
1364
|
isRefetchError: v && b,
|
|
1365
|
-
isStale:
|
|
1365
|
+
isStale: Xe(e, t),
|
|
1366
1366
|
refetch: this.refetch,
|
|
1367
1367
|
promise: this.#o,
|
|
1368
|
-
isEnabled:
|
|
1368
|
+
isEnabled: F(t.enabled, e) !== !1
|
|
1369
1369
|
};
|
|
1370
1370
|
if (this.options.experimental_prefetchInRender) {
|
|
1371
1371
|
let t = x.data !== void 0, r = x.status === "error" && !t, i = (e) => {
|
|
1372
1372
|
r ? e.reject(x.error) : t && e.resolve(x.data);
|
|
1373
1373
|
}, a = () => {
|
|
1374
|
-
i(this.#o = x.promise =
|
|
1374
|
+
i(this.#o = x.promise = Ae());
|
|
1375
1375
|
}, o = this.#o;
|
|
1376
1376
|
switch (o.status) {
|
|
1377
1377
|
case "pending":
|
|
@@ -1389,7 +1389,7 @@ var We = class extends N {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
updateResult() {
|
|
1391
1391
|
let e = this.#r, t = this.createResult(this.#t, this.options);
|
|
1392
|
-
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !
|
|
1392
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !R(t, e) && (this.#r = t, this.#C({ listeners: (() => {
|
|
1393
1393
|
if (!e) return !0;
|
|
1394
1394
|
let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
|
|
1395
1395
|
if (n === "all" || !n && !this.#m.size) return !0;
|
|
@@ -1420,37 +1420,37 @@ var We = class extends N {
|
|
|
1420
1420
|
});
|
|
1421
1421
|
}
|
|
1422
1422
|
};
|
|
1423
|
-
function Ge(e, t) {
|
|
1424
|
-
return L(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && L(t.retryOnMount, e) === !1);
|
|
1425
|
-
}
|
|
1426
1423
|
function Ke(e, t) {
|
|
1427
|
-
return
|
|
1424
|
+
return F(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && F(t.retryOnMount, e) === !1);
|
|
1425
|
+
}
|
|
1426
|
+
function qe(e, t) {
|
|
1427
|
+
return Ke(e, t) || e.state.data !== void 0 && Je(e, t, t.refetchOnMount);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
if (
|
|
1429
|
+
function Je(e, t, n) {
|
|
1430
|
+
if (F(t.enabled, e) !== !1 && P(t.staleTime, e) !== "static") {
|
|
1431
1431
|
let r = typeof n == "function" ? n(e) : n;
|
|
1432
|
-
return r === "always" || r !== !1 &&
|
|
1432
|
+
return r === "always" || r !== !1 && Xe(e, t);
|
|
1433
1433
|
}
|
|
1434
1434
|
return !1;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return (e !== t ||
|
|
1438
|
-
}
|
|
1439
|
-
function Ye(e, t) {
|
|
1440
|
-
return L(t.enabled, e) !== !1 && e.isStaleByTime(I(t.staleTime, e));
|
|
1436
|
+
function Ye(e, t, n, r) {
|
|
1437
|
+
return (e !== t || F(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Xe(e, n);
|
|
1441
1438
|
}
|
|
1442
1439
|
function Xe(e, t) {
|
|
1443
|
-
return
|
|
1440
|
+
return F(t.enabled, e) !== !1 && e.isStaleByTime(P(t.staleTime, e));
|
|
1441
|
+
}
|
|
1442
|
+
function Ze(e, t) {
|
|
1443
|
+
return !R(e.getCurrentResult(), t);
|
|
1444
1444
|
}
|
|
1445
1445
|
//#endregion
|
|
1446
1446
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
1447
|
-
var
|
|
1447
|
+
var Qe = class extends Le {
|
|
1448
1448
|
#e;
|
|
1449
1449
|
#t;
|
|
1450
1450
|
#n;
|
|
1451
1451
|
#r;
|
|
1452
1452
|
constructor(e) {
|
|
1453
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
1453
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || $e(), this.setOptions(e.options), this.scheduleGc();
|
|
1454
1454
|
}
|
|
1455
1455
|
setOptions(e) {
|
|
1456
1456
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -1486,7 +1486,7 @@ var Ze = class extends Ie {
|
|
|
1486
1486
|
meta: this.options.meta,
|
|
1487
1487
|
mutationKey: this.options.mutationKey
|
|
1488
1488
|
};
|
|
1489
|
-
this.#r =
|
|
1489
|
+
this.#r = Ie({
|
|
1490
1490
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
1491
1491
|
onFail: (e, t) => {
|
|
1492
1492
|
this.#i({
|
|
@@ -1614,7 +1614,7 @@ var Ze = class extends Ie {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
1616
|
};
|
|
1617
|
-
function
|
|
1617
|
+
function $e() {
|
|
1618
1618
|
return {
|
|
1619
1619
|
context: void 0,
|
|
1620
1620
|
data: void 0,
|
|
@@ -1629,7 +1629,7 @@ function Qe() {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
//#endregion
|
|
1631
1631
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
1632
|
-
var
|
|
1632
|
+
var et = class extends j {
|
|
1633
1633
|
constructor(e = {}) {
|
|
1634
1634
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1635
1635
|
}
|
|
@@ -1637,7 +1637,7 @@ var $e = class extends N {
|
|
|
1637
1637
|
#t;
|
|
1638
1638
|
#n;
|
|
1639
1639
|
build(e, t, n) {
|
|
1640
|
-
let r = new
|
|
1640
|
+
let r = new Qe({
|
|
1641
1641
|
client: e,
|
|
1642
1642
|
mutationCache: this,
|
|
1643
1643
|
mutationId: ++this.#n,
|
|
@@ -1648,7 +1648,7 @@ var $e = class extends N {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
add(e) {
|
|
1650
1650
|
this.#e.add(e);
|
|
1651
|
-
let t =
|
|
1651
|
+
let t = tt(e);
|
|
1652
1652
|
if (typeof t == "string") {
|
|
1653
1653
|
let n = this.#t.get(t);
|
|
1654
1654
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -1660,7 +1660,7 @@ var $e = class extends N {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
remove(e) {
|
|
1662
1662
|
if (this.#e.delete(e)) {
|
|
1663
|
-
let t =
|
|
1663
|
+
let t = tt(e);
|
|
1664
1664
|
if (typeof t == "string") {
|
|
1665
1665
|
let n = this.#t.get(t);
|
|
1666
1666
|
if (n) if (n.length > 1) {
|
|
@@ -1675,14 +1675,14 @@ var $e = class extends N {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
canRun(e) {
|
|
1678
|
-
let t =
|
|
1678
|
+
let t = tt(e);
|
|
1679
1679
|
if (typeof t == "string") {
|
|
1680
1680
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1681
1681
|
return !n || n === e;
|
|
1682
1682
|
} else return !0;
|
|
1683
1683
|
}
|
|
1684
1684
|
runNext(e) {
|
|
1685
|
-
let t =
|
|
1685
|
+
let t = tt(e);
|
|
1686
1686
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1687
1687
|
}
|
|
1688
1688
|
clear() {
|
|
@@ -1703,10 +1703,10 @@ var $e = class extends N {
|
|
|
1703
1703
|
exact: !0,
|
|
1704
1704
|
...e
|
|
1705
1705
|
};
|
|
1706
|
-
return this.getAll().find((e) =>
|
|
1706
|
+
return this.getAll().find((e) => ge(t, e));
|
|
1707
1707
|
}
|
|
1708
1708
|
findAll(e = {}) {
|
|
1709
|
-
return this.getAll().filter((t) =>
|
|
1709
|
+
return this.getAll().filter((t) => ge(e, t));
|
|
1710
1710
|
}
|
|
1711
1711
|
notify(e) {
|
|
1712
1712
|
V.batch(() => {
|
|
@@ -1717,15 +1717,15 @@ var $e = class extends N {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
resumePausedMutations() {
|
|
1719
1719
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1720
|
-
return V.batch(() => Promise.all(e.map((e) => e.continue().catch(
|
|
1720
|
+
return V.batch(() => Promise.all(e.map((e) => e.continue().catch(N))));
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
function
|
|
1723
|
+
function tt(e) {
|
|
1724
1724
|
return e.options.scope?.id;
|
|
1725
1725
|
}
|
|
1726
1726
|
//#endregion
|
|
1727
1727
|
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
1728
|
-
var
|
|
1728
|
+
var nt = class extends j {
|
|
1729
1729
|
#e;
|
|
1730
1730
|
#t = void 0;
|
|
1731
1731
|
#n;
|
|
@@ -1738,11 +1738,11 @@ var et = class extends N {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
setOptions(e) {
|
|
1740
1740
|
let t = this.options;
|
|
1741
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
1741
|
+
this.options = this.#e.defaultMutationOptions(e), R(this.options, t) || this.#e.getMutationCache().notify({
|
|
1742
1742
|
type: "observerOptionsUpdated",
|
|
1743
1743
|
mutation: this.#n,
|
|
1744
1744
|
observer: this
|
|
1745
|
-
}), t?.mutationKey && this.options.mutationKey &&
|
|
1745
|
+
}), t?.mutationKey && this.options.mutationKey && I(t.mutationKey) !== I(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
|
|
1746
1746
|
}
|
|
1747
1747
|
onUnsubscribe() {
|
|
1748
1748
|
this.hasListeners() || this.#n?.removeObserver(this);
|
|
@@ -1760,7 +1760,7 @@ var et = class extends N {
|
|
|
1760
1760
|
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);
|
|
1761
1761
|
}
|
|
1762
1762
|
#i() {
|
|
1763
|
-
let e = this.#n?.state ??
|
|
1763
|
+
let e = this.#n?.state ?? $e();
|
|
1764
1764
|
this.#t = {
|
|
1765
1765
|
...e,
|
|
1766
1766
|
isPending: e.status === "pending",
|
|
@@ -1808,14 +1808,14 @@ var et = class extends N {
|
|
|
1808
1808
|
});
|
|
1809
1809
|
});
|
|
1810
1810
|
}
|
|
1811
|
-
},
|
|
1811
|
+
}, rt = class extends j {
|
|
1812
1812
|
constructor(e = {}) {
|
|
1813
1813
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1814
1814
|
}
|
|
1815
1815
|
#e;
|
|
1816
1816
|
build(e, t, n) {
|
|
1817
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
1818
|
-
return a || (a = new
|
|
1817
|
+
let r = t.queryKey, i = t.queryHash ?? _e(r, t), a = this.get(i);
|
|
1818
|
+
return a || (a = new Ve({
|
|
1819
1819
|
client: e,
|
|
1820
1820
|
queryKey: r,
|
|
1821
1821
|
queryHash: i,
|
|
@@ -1855,11 +1855,11 @@ var et = class extends N {
|
|
|
1855
1855
|
exact: !0,
|
|
1856
1856
|
...e
|
|
1857
1857
|
};
|
|
1858
|
-
return this.getAll().find((e) =>
|
|
1858
|
+
return this.getAll().find((e) => he(t, e));
|
|
1859
1859
|
}
|
|
1860
1860
|
findAll(e = {}) {
|
|
1861
1861
|
let t = this.getAll();
|
|
1862
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
1862
|
+
return Object.keys(e).length > 0 ? t.filter((t) => he(e, t)) : t;
|
|
1863
1863
|
}
|
|
1864
1864
|
notify(e) {
|
|
1865
1865
|
V.batch(() => {
|
|
@@ -1882,7 +1882,7 @@ var et = class extends N {
|
|
|
1882
1882
|
});
|
|
1883
1883
|
});
|
|
1884
1884
|
}
|
|
1885
|
-
},
|
|
1885
|
+
}, it = class {
|
|
1886
1886
|
#e;
|
|
1887
1887
|
#t;
|
|
1888
1888
|
#n;
|
|
@@ -1892,10 +1892,10 @@ var et = class extends N {
|
|
|
1892
1892
|
#o;
|
|
1893
1893
|
#s;
|
|
1894
1894
|
constructor(e = {}) {
|
|
1895
|
-
this.#e = e.queryCache || new
|
|
1895
|
+
this.#e = e.queryCache || new rt(), this.#t = e.mutationCache || new et(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1896
1896
|
}
|
|
1897
1897
|
mount() {
|
|
1898
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1898
|
+
this.#a++, this.#a === 1 && (this.#o = ce.subscribe(async (e) => {
|
|
1899
1899
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1900
1900
|
}), this.#s = H.subscribe(async (e) => {
|
|
1901
1901
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
@@ -1922,13 +1922,13 @@ var et = class extends N {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
ensureQueryData(e) {
|
|
1924
1924
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1925
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1925
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(P(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1926
1926
|
}
|
|
1927
1927
|
getQueriesData(e) {
|
|
1928
1928
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1929
1929
|
}
|
|
1930
1930
|
setQueryData(e, t, n) {
|
|
1931
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
1931
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = fe(t, i);
|
|
1932
1932
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1933
1933
|
...n,
|
|
1934
1934
|
manual: !0
|
|
@@ -1963,7 +1963,7 @@ var et = class extends N {
|
|
|
1963
1963
|
revert: !0,
|
|
1964
1964
|
...t
|
|
1965
1965
|
}, r = V.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1966
|
-
return Promise.all(r).then(
|
|
1966
|
+
return Promise.all(r).then(N).catch(N);
|
|
1967
1967
|
}
|
|
1968
1968
|
invalidateQueries(e, t = {}) {
|
|
1969
1969
|
return V.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
@@ -1979,24 +1979,24 @@ var et = class extends N {
|
|
|
1979
1979
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
1980
1980
|
}, r = V.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1981
1981
|
let t = e.fetch(void 0, n);
|
|
1982
|
-
return n.throwOnError || (t = t.catch(
|
|
1982
|
+
return n.throwOnError || (t = t.catch(N)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1983
1983
|
}));
|
|
1984
|
-
return Promise.all(r).then(
|
|
1984
|
+
return Promise.all(r).then(N);
|
|
1985
1985
|
}
|
|
1986
1986
|
fetchQuery(e) {
|
|
1987
1987
|
let t = this.defaultQueryOptions(e);
|
|
1988
1988
|
t.retry === void 0 && (t.retry = !1);
|
|
1989
1989
|
let n = this.#e.build(this, t);
|
|
1990
|
-
return n.isStaleByTime(
|
|
1990
|
+
return n.isStaleByTime(P(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1991
1991
|
}
|
|
1992
1992
|
prefetchQuery(e) {
|
|
1993
|
-
return this.fetchQuery(e).then(
|
|
1993
|
+
return this.fetchQuery(e).then(N).catch(N);
|
|
1994
1994
|
}
|
|
1995
1995
|
fetchInfiniteQuery(e) {
|
|
1996
1996
|
return e._type = "infinite", this.fetchQuery(e);
|
|
1997
1997
|
}
|
|
1998
1998
|
prefetchInfiniteQuery(e) {
|
|
1999
|
-
return this.fetchInfiniteQuery(e).then(
|
|
1999
|
+
return this.fetchInfiniteQuery(e).then(N).catch(N);
|
|
2000
2000
|
}
|
|
2001
2001
|
ensureInfiniteQueryData(e) {
|
|
2002
2002
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
@@ -2017,7 +2017,7 @@ var et = class extends N {
|
|
|
2017
2017
|
this.#n = e;
|
|
2018
2018
|
}
|
|
2019
2019
|
setQueryDefaults(e, t) {
|
|
2020
|
-
this.#r.set(
|
|
2020
|
+
this.#r.set(I(e), {
|
|
2021
2021
|
queryKey: e,
|
|
2022
2022
|
defaultOptions: t
|
|
2023
2023
|
});
|
|
@@ -2025,11 +2025,11 @@ var et = class extends N {
|
|
|
2025
2025
|
getQueryDefaults(e) {
|
|
2026
2026
|
let t = [...this.#r.values()], n = {};
|
|
2027
2027
|
return t.forEach((t) => {
|
|
2028
|
-
|
|
2028
|
+
L(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
2029
2029
|
}), n;
|
|
2030
2030
|
}
|
|
2031
2031
|
setMutationDefaults(e, t) {
|
|
2032
|
-
this.#i.set(
|
|
2032
|
+
this.#i.set(I(e), {
|
|
2033
2033
|
mutationKey: e,
|
|
2034
2034
|
defaultOptions: t
|
|
2035
2035
|
});
|
|
@@ -2037,7 +2037,7 @@ var et = class extends N {
|
|
|
2037
2037
|
getMutationDefaults(e) {
|
|
2038
2038
|
let t = [...this.#i.values()], n = {};
|
|
2039
2039
|
return t.forEach((t) => {
|
|
2040
|
-
|
|
2040
|
+
L(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
2041
2041
|
}), n;
|
|
2042
2042
|
}
|
|
2043
2043
|
defaultQueryOptions(e) {
|
|
@@ -2048,7 +2048,7 @@ var et = class extends N {
|
|
|
2048
2048
|
...e,
|
|
2049
2049
|
_defaulted: !0
|
|
2050
2050
|
};
|
|
2051
|
-
return t.queryHash ||=
|
|
2051
|
+
return t.queryHash ||= _e(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 === z && (t.enabled = !1), t;
|
|
2052
2052
|
}
|
|
2053
2053
|
defaultMutationOptions(e) {
|
|
2054
2054
|
return e?._defaulted ? e : {
|
|
@@ -2061,22 +2061,22 @@ var et = class extends N {
|
|
|
2061
2061
|
clear() {
|
|
2062
2062
|
this.#e.clear(), this.#t.clear();
|
|
2063
2063
|
}
|
|
2064
|
-
},
|
|
2064
|
+
}, U = /* @__PURE__ */ h({
|
|
2065
2065
|
Vue: () => e,
|
|
2066
2066
|
Vue2: () => void 0,
|
|
2067
|
-
del: () =>
|
|
2068
|
-
install: () =>
|
|
2067
|
+
del: () => ct,
|
|
2068
|
+
install: () => ot,
|
|
2069
2069
|
isVue2: () => !1,
|
|
2070
2070
|
isVue3: () => !0,
|
|
2071
|
-
set: () =>
|
|
2071
|
+
set: () => st
|
|
2072
2072
|
});
|
|
2073
|
-
import * as
|
|
2074
|
-
|
|
2075
|
-
function
|
|
2076
|
-
function
|
|
2073
|
+
import * as at from "vue";
|
|
2074
|
+
_(U, at);
|
|
2075
|
+
function ot() {}
|
|
2076
|
+
function st(e, t, n) {
|
|
2077
2077
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function ct(e, t) {
|
|
2080
2080
|
if (Array.isArray(e)) {
|
|
2081
2081
|
e.splice(t, 1);
|
|
2082
2082
|
return;
|
|
@@ -2085,113 +2085,113 @@ function ot(e, t) {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
//#endregion
|
|
2087
2087
|
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
2088
|
-
var
|
|
2089
|
-
function
|
|
2090
|
-
return `${
|
|
2088
|
+
var lt = "VUE_QUERY_CLIENT";
|
|
2089
|
+
function ut(e) {
|
|
2090
|
+
return `${lt}${e ? `:${e}` : ""}`;
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function dt(e, t) {
|
|
2093
2093
|
Object.keys(e).forEach((n) => {
|
|
2094
2094
|
e[n] = t[n];
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function ft(e, t, n = "", r = 0) {
|
|
2098
2098
|
if (t) {
|
|
2099
2099
|
let i = t(e, n, r);
|
|
2100
|
-
if (i === void 0 && (0,
|
|
2100
|
+
if (i === void 0 && (0, U.isRef)(e) || i !== void 0) return i;
|
|
2101
2101
|
}
|
|
2102
|
-
if (Array.isArray(e)) return e.map((e, n) =>
|
|
2103
|
-
if (typeof e == "object" &&
|
|
2104
|
-
let n = Object.entries(e).map(([e, n]) => [e,
|
|
2102
|
+
if (Array.isArray(e)) return e.map((e, n) => ft(e, t, String(n), r + 1));
|
|
2103
|
+
if (typeof e == "object" && mt(e)) {
|
|
2104
|
+
let n = Object.entries(e).map(([e, n]) => [e, ft(n, t, e, r + 1)]);
|
|
2105
2105
|
return Object.fromEntries(n);
|
|
2106
2106
|
}
|
|
2107
2107
|
return e;
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2110
|
-
return
|
|
2109
|
+
function pt(e, t) {
|
|
2110
|
+
return ft(e, t);
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2113
|
-
return
|
|
2114
|
-
if (r === 1 && n === "queryKey") return
|
|
2115
|
-
if (t &&
|
|
2116
|
-
if ((0,
|
|
2112
|
+
function W(e, t = !1) {
|
|
2113
|
+
return pt(e, (e, n, r) => {
|
|
2114
|
+
if (r === 1 && n === "queryKey") return W(e, !0);
|
|
2115
|
+
if (t && ht(e)) return W(e(), t);
|
|
2116
|
+
if ((0, U.isRef)(e)) return W((0, U.unref)(e), t);
|
|
2117
2117
|
});
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function mt(e) {
|
|
2120
2120
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
2121
2121
|
let t = Object.getPrototypeOf(e);
|
|
2122
2122
|
return t === null || t === Object.prototype;
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function ht(e) {
|
|
2125
2125
|
return typeof e == "function";
|
|
2126
2126
|
}
|
|
2127
2127
|
//#endregion
|
|
2128
2128
|
//#region node_modules/@tanstack/vue-query/build/modern/useQueryClient.js
|
|
2129
|
-
function
|
|
2130
|
-
if (!(0,
|
|
2131
|
-
let t = (0,
|
|
2129
|
+
function gt(e = "") {
|
|
2130
|
+
if (!(0, U.hasInjectionContext)()) throw Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");
|
|
2131
|
+
let t = (0, U.inject)(ut(e));
|
|
2132
2132
|
if (!t) throw Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");
|
|
2133
2133
|
return t;
|
|
2134
2134
|
}
|
|
2135
2135
|
//#endregion
|
|
2136
2136
|
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
2137
|
-
var
|
|
2137
|
+
var _t = class extends rt {
|
|
2138
2138
|
find(e) {
|
|
2139
|
-
return super.find(
|
|
2139
|
+
return super.find(W(e));
|
|
2140
2140
|
}
|
|
2141
2141
|
findAll(e = {}) {
|
|
2142
|
-
return super.findAll(
|
|
2142
|
+
return super.findAll(W(e));
|
|
2143
2143
|
}
|
|
2144
|
-
},
|
|
2144
|
+
}, vt = class extends et {
|
|
2145
2145
|
find(e) {
|
|
2146
|
-
return super.find(
|
|
2146
|
+
return super.find(W(e));
|
|
2147
2147
|
}
|
|
2148
2148
|
findAll(e = {}) {
|
|
2149
|
-
return super.findAll(
|
|
2149
|
+
return super.findAll(W(e));
|
|
2150
2150
|
}
|
|
2151
|
-
},
|
|
2151
|
+
}, yt = class extends it {
|
|
2152
2152
|
constructor(e = {}) {
|
|
2153
2153
|
let t = {
|
|
2154
2154
|
defaultOptions: e.defaultOptions,
|
|
2155
|
-
queryCache: e.queryCache || new
|
|
2156
|
-
mutationCache: e.mutationCache || new
|
|
2155
|
+
queryCache: e.queryCache || new _t(),
|
|
2156
|
+
mutationCache: e.mutationCache || new vt()
|
|
2157
2157
|
};
|
|
2158
|
-
super(t), this.isRestoring = (0,
|
|
2158
|
+
super(t), this.isRestoring = (0, U.ref)(!1);
|
|
2159
2159
|
}
|
|
2160
2160
|
isFetching(e = {}) {
|
|
2161
|
-
return super.isFetching(
|
|
2161
|
+
return super.isFetching(W(e));
|
|
2162
2162
|
}
|
|
2163
2163
|
isMutating(e = {}) {
|
|
2164
|
-
return super.isMutating(
|
|
2164
|
+
return super.isMutating(W(e));
|
|
2165
2165
|
}
|
|
2166
2166
|
getQueryData(e) {
|
|
2167
|
-
return super.getQueryData(
|
|
2167
|
+
return super.getQueryData(W(e));
|
|
2168
2168
|
}
|
|
2169
2169
|
ensureQueryData(e) {
|
|
2170
|
-
return super.ensureQueryData(
|
|
2170
|
+
return super.ensureQueryData(W(e));
|
|
2171
2171
|
}
|
|
2172
2172
|
getQueriesData(e) {
|
|
2173
|
-
return super.getQueriesData(
|
|
2173
|
+
return super.getQueriesData(W(e));
|
|
2174
2174
|
}
|
|
2175
2175
|
setQueryData(e, t, n = {}) {
|
|
2176
|
-
return super.setQueryData(
|
|
2176
|
+
return super.setQueryData(W(e), t, W(n));
|
|
2177
2177
|
}
|
|
2178
2178
|
setQueriesData(e, t, n = {}) {
|
|
2179
|
-
return super.setQueriesData(
|
|
2179
|
+
return super.setQueriesData(W(e), t, W(n));
|
|
2180
2180
|
}
|
|
2181
2181
|
getQueryState(e) {
|
|
2182
|
-
return super.getQueryState(
|
|
2182
|
+
return super.getQueryState(W(e));
|
|
2183
2183
|
}
|
|
2184
2184
|
removeQueries(e = {}) {
|
|
2185
|
-
return super.removeQueries(
|
|
2185
|
+
return super.removeQueries(W(e));
|
|
2186
2186
|
}
|
|
2187
2187
|
resetQueries(e = {}, t = {}) {
|
|
2188
|
-
return super.resetQueries(
|
|
2188
|
+
return super.resetQueries(W(e), W(t));
|
|
2189
2189
|
}
|
|
2190
2190
|
cancelQueries(e = {}, t = {}) {
|
|
2191
|
-
return super.cancelQueries(
|
|
2191
|
+
return super.cancelQueries(W(e), W(t));
|
|
2192
2192
|
}
|
|
2193
2193
|
invalidateQueries(e = {}, t = {}) {
|
|
2194
|
-
let n =
|
|
2194
|
+
let n = W(e), r = W(t);
|
|
2195
2195
|
if (super.invalidateQueries({
|
|
2196
2196
|
...n,
|
|
2197
2197
|
refetchType: "none"
|
|
@@ -2200,57 +2200,57 @@ var ht = class extends tt {
|
|
|
2200
2200
|
...n,
|
|
2201
2201
|
type: n.refetchType ?? n.type ?? "active"
|
|
2202
2202
|
};
|
|
2203
|
-
return (0,
|
|
2203
|
+
return (0, U.nextTick)().then(() => super.refetchQueries(i, r));
|
|
2204
2204
|
}
|
|
2205
2205
|
refetchQueries(e = {}, t = {}) {
|
|
2206
|
-
return super.refetchQueries(
|
|
2206
|
+
return super.refetchQueries(W(e), W(t));
|
|
2207
2207
|
}
|
|
2208
2208
|
fetchQuery(e) {
|
|
2209
|
-
return super.fetchQuery(
|
|
2209
|
+
return super.fetchQuery(W(e));
|
|
2210
2210
|
}
|
|
2211
2211
|
prefetchQuery(e) {
|
|
2212
|
-
return super.prefetchQuery(
|
|
2212
|
+
return super.prefetchQuery(W(e));
|
|
2213
2213
|
}
|
|
2214
2214
|
fetchInfiniteQuery(e) {
|
|
2215
|
-
return super.fetchInfiniteQuery(
|
|
2215
|
+
return super.fetchInfiniteQuery(W(e));
|
|
2216
2216
|
}
|
|
2217
2217
|
prefetchInfiniteQuery(e) {
|
|
2218
|
-
return super.prefetchInfiniteQuery(
|
|
2218
|
+
return super.prefetchInfiniteQuery(W(e));
|
|
2219
2219
|
}
|
|
2220
2220
|
setDefaultOptions(e) {
|
|
2221
|
-
super.setDefaultOptions(
|
|
2221
|
+
super.setDefaultOptions(W(e));
|
|
2222
2222
|
}
|
|
2223
2223
|
setQueryDefaults(e, t) {
|
|
2224
|
-
super.setQueryDefaults(
|
|
2224
|
+
super.setQueryDefaults(W(e), W(t));
|
|
2225
2225
|
}
|
|
2226
2226
|
getQueryDefaults(e) {
|
|
2227
|
-
return super.getQueryDefaults(
|
|
2227
|
+
return super.getQueryDefaults(W(e));
|
|
2228
2228
|
}
|
|
2229
2229
|
setMutationDefaults(e, t) {
|
|
2230
|
-
super.setMutationDefaults(
|
|
2230
|
+
super.setMutationDefaults(W(e), W(t));
|
|
2231
2231
|
}
|
|
2232
2232
|
getMutationDefaults(e) {
|
|
2233
|
-
return super.getMutationDefaults(
|
|
2233
|
+
return super.getMutationDefaults(W(e));
|
|
2234
2234
|
}
|
|
2235
2235
|
};
|
|
2236
2236
|
//#endregion
|
|
2237
2237
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2238
|
+
function bt() {
|
|
2239
|
+
return xt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function xt() {
|
|
2242
2242
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2243
2243
|
}
|
|
2244
|
-
var
|
|
2245
|
-
function
|
|
2246
|
-
return
|
|
2244
|
+
var St = typeof Proxy == "function", Ct = "devtools-plugin:setup", wt = "plugin:settings:set", G, Tt;
|
|
2245
|
+
function Et() {
|
|
2246
|
+
return G === void 0 && (typeof window < "u" && window.performance ? (G = !0, Tt = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (G = !0, Tt = globalThis.perf_hooks.performance) : G = !1), G;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2249
|
-
return
|
|
2248
|
+
function Dt() {
|
|
2249
|
+
return Et() ? Tt.now() : Date.now();
|
|
2250
2250
|
}
|
|
2251
2251
|
//#endregion
|
|
2252
2252
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
2253
|
-
var
|
|
2253
|
+
var Ot = class {
|
|
2254
2254
|
constructor(e, t) {
|
|
2255
2255
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
2256
2256
|
let n = {};
|
|
@@ -2271,9 +2271,9 @@ var Et = class {
|
|
|
2271
2271
|
i = e;
|
|
2272
2272
|
},
|
|
2273
2273
|
now() {
|
|
2274
|
-
return
|
|
2274
|
+
return Dt();
|
|
2275
2275
|
}
|
|
2276
|
-
}, t && t.on(
|
|
2276
|
+
}, t && t.on(wt, (e, t) => {
|
|
2277
2277
|
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
2278
2278
|
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
2279
2279
|
this.onQueue.push({
|
|
@@ -2300,11 +2300,11 @@ var Et = class {
|
|
|
2300
2300
|
};
|
|
2301
2301
|
//#endregion
|
|
2302
2302
|
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
2303
|
-
function
|
|
2304
|
-
let n = e, r =
|
|
2305
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(
|
|
2303
|
+
function kt(e, t) {
|
|
2304
|
+
let n = e, r = xt(), i = bt(), a = St && n.enableEarlyProxy;
|
|
2305
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Ct, e, t);
|
|
2306
2306
|
else {
|
|
2307
|
-
let e = a ? new
|
|
2307
|
+
let e = a ? new Ot(n, i) : null;
|
|
2308
2308
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2309
2309
|
pluginDescriptor: n,
|
|
2310
2310
|
setupFn: t,
|
|
@@ -2314,7 +2314,7 @@ function Dt(e, t) {
|
|
|
2314
2314
|
}
|
|
2315
2315
|
//#endregion
|
|
2316
2316
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
2317
|
-
var
|
|
2317
|
+
var At = {
|
|
2318
2318
|
À: "A",
|
|
2319
2319
|
Á: "A",
|
|
2320
2320
|
Â: "A",
|
|
@@ -2714,11 +2714,11 @@ var Ot = {
|
|
|
2714
2714
|
x̧: "x",
|
|
2715
2715
|
Z̧: "Z",
|
|
2716
2716
|
z̧: "z"
|
|
2717
|
-
},
|
|
2718
|
-
function
|
|
2719
|
-
return e.replace(
|
|
2717
|
+
}, jt = Object.keys(At).join("|"), Mt = new RegExp(jt, "g");
|
|
2718
|
+
function Nt(e) {
|
|
2719
|
+
return e.replace(Mt, (e) => At[e]);
|
|
2720
2720
|
}
|
|
2721
|
-
var
|
|
2721
|
+
var K = {
|
|
2722
2722
|
CASE_SENSITIVE_EQUAL: 7,
|
|
2723
2723
|
EQUAL: 6,
|
|
2724
2724
|
STARTS_WITH: 5,
|
|
@@ -2728,9 +2728,9 @@ var q = {
|
|
|
2728
2728
|
MATCHES: 1,
|
|
2729
2729
|
NO_MATCH: 0
|
|
2730
2730
|
};
|
|
2731
|
-
function
|
|
2732
|
-
if (n ||= {}, n.threshold = n.threshold ??
|
|
2733
|
-
let r =
|
|
2731
|
+
function Pt(e, t, n) {
|
|
2732
|
+
if (n ||= {}, n.threshold = n.threshold ?? K.MATCHES, !n.accessors) {
|
|
2733
|
+
let r = Ft(e, t, n);
|
|
2734
2734
|
return {
|
|
2735
2735
|
rankedValue: e,
|
|
2736
2736
|
rank: r,
|
|
@@ -2739,23 +2739,23 @@ function Mt(e, t, n) {
|
|
|
2739
2739
|
passed: r >= n.threshold
|
|
2740
2740
|
};
|
|
2741
2741
|
}
|
|
2742
|
-
let r =
|
|
2742
|
+
let r = Bt(e, n.accessors), i = {
|
|
2743
2743
|
rankedValue: e,
|
|
2744
|
-
rank:
|
|
2744
|
+
rank: K.NO_MATCH,
|
|
2745
2745
|
accessorIndex: -1,
|
|
2746
2746
|
accessorThreshold: n.threshold,
|
|
2747
2747
|
passed: !1
|
|
2748
2748
|
};
|
|
2749
2749
|
for (let e = 0; e < r.length; e++) {
|
|
2750
|
-
let a = r[e], o =
|
|
2751
|
-
o < s && o >=
|
|
2750
|
+
let a = r[e], o = Ft(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
2751
|
+
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);
|
|
2752
2752
|
}
|
|
2753
2753
|
return i;
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return e =
|
|
2755
|
+
function Ft(e, t, n) {
|
|
2756
|
+
return e = Rt(e, n), t = Rt(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 : It(e).includes(t) ? K.ACRONYM : Lt(e, t));
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function It(e) {
|
|
2759
2759
|
let t = "";
|
|
2760
2760
|
return e.split(" ").forEach((e) => {
|
|
2761
2761
|
e.split("-").forEach((e) => {
|
|
@@ -2763,7 +2763,7 @@ function Pt(e) {
|
|
|
2763
2763
|
});
|
|
2764
2764
|
}), t;
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2766
|
+
function Lt(e, t) {
|
|
2767
2767
|
let n = 0, r = 0;
|
|
2768
2768
|
function i(e, t, r) {
|
|
2769
2769
|
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
@@ -2771,31 +2771,31 @@ function Ft(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
function a(e) {
|
|
2773
2773
|
let r = 1 / e, i = n / t.length;
|
|
2774
|
-
return
|
|
2774
|
+
return K.MATCHES + i * r;
|
|
2775
2775
|
}
|
|
2776
2776
|
let o = i(t[0], e, 0);
|
|
2777
|
-
if (o < 0) return
|
|
2777
|
+
if (o < 0) return K.NO_MATCH;
|
|
2778
2778
|
r = o;
|
|
2779
2779
|
for (let n = 1, a = t.length; n < a; n++) {
|
|
2780
2780
|
let a = t[n];
|
|
2781
|
-
if (r = i(a, e, r), !(r > -1)) return
|
|
2781
|
+
if (r = i(a, e, r), !(r > -1)) return K.NO_MATCH;
|
|
2782
2782
|
}
|
|
2783
2783
|
return a(r - o);
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function Rt(e, t) {
|
|
2786
2786
|
let { keepDiacritics: n } = t;
|
|
2787
|
-
return e = `${e}`, n || (e =
|
|
2787
|
+
return e = `${e}`, n || (e = Nt(e)), e;
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function zt(e, t) {
|
|
2790
2790
|
let n = t;
|
|
2791
2791
|
typeof t == "object" && (n = t.accessor);
|
|
2792
2792
|
let r = n(e);
|
|
2793
2793
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function Bt(e, t) {
|
|
2796
2796
|
let n = [];
|
|
2797
2797
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
2798
|
-
let i = t[r], a =
|
|
2798
|
+
let i = t[r], a = Ht(i), o = zt(e, i);
|
|
2799
2799
|
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
2800
2800
|
itemValue: o[e],
|
|
2801
2801
|
attributes: a
|
|
@@ -2803,41 +2803,41 @@ function Rt(e, t) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
return n;
|
|
2805
2805
|
}
|
|
2806
|
-
var
|
|
2806
|
+
var Vt = {
|
|
2807
2807
|
maxRanking: Infinity,
|
|
2808
2808
|
minRanking: -Infinity
|
|
2809
2809
|
};
|
|
2810
|
-
function
|
|
2811
|
-
return typeof e == "function" ?
|
|
2812
|
-
...
|
|
2810
|
+
function Ht(e) {
|
|
2811
|
+
return typeof e == "function" ? Vt : {
|
|
2812
|
+
...Vt,
|
|
2813
2813
|
...e
|
|
2814
2814
|
};
|
|
2815
2815
|
}
|
|
2816
2816
|
//#endregion
|
|
2817
2817
|
//#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
|
|
2818
|
-
function
|
|
2818
|
+
function q(e) {
|
|
2819
2819
|
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2822
|
-
let t =
|
|
2821
|
+
function Ut(e) {
|
|
2822
|
+
let t = q(e);
|
|
2823
2823
|
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2826
|
-
return
|
|
2825
|
+
function Wt(e) {
|
|
2826
|
+
return q(e) === 2 ? 0 : 16777215;
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2829
|
-
let t =
|
|
2828
|
+
function Gt(e) {
|
|
2829
|
+
let t = q(e);
|
|
2830
2830
|
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
2831
2831
|
}
|
|
2832
|
-
var
|
|
2833
|
-
"Status > Last Updated": (e, t) =>
|
|
2834
|
-
"Query Hash":
|
|
2835
|
-
"Last Updated":
|
|
2836
|
-
},
|
|
2837
|
-
function
|
|
2838
|
-
|
|
2839
|
-
id:
|
|
2840
|
-
label:
|
|
2832
|
+
var Kt = (e, t) => e.queryHash.localeCompare(t.queryHash), qt = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Jt = {
|
|
2833
|
+
"Status > Last Updated": (e, t) => q(e) === q(t) ? qt(e, t) : q(e) > q(t) ? 1 : -1,
|
|
2834
|
+
"Query Hash": Kt,
|
|
2835
|
+
"Last Updated": qt
|
|
2836
|
+
}, J = "vue-query", Yt = "Vue Query";
|
|
2837
|
+
function Xt(e, t) {
|
|
2838
|
+
kt({
|
|
2839
|
+
id: J,
|
|
2840
|
+
label: Yt,
|
|
2841
2841
|
packageName: "vue-query",
|
|
2842
2842
|
homepage: "https://tanstack.com/query/latest",
|
|
2843
2843
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -2859,11 +2859,11 @@ function Jt(e, t) {
|
|
|
2859
2859
|
sortFn: {
|
|
2860
2860
|
type: "choice",
|
|
2861
2861
|
label: "Sort Function",
|
|
2862
|
-
options: Object.keys(
|
|
2862
|
+
options: Object.keys(Jt).map((e) => ({
|
|
2863
2863
|
label: e,
|
|
2864
2864
|
value: e
|
|
2865
2865
|
})),
|
|
2866
|
-
defaultValue: Object.keys(
|
|
2866
|
+
defaultValue: Object.keys(Jt)[0]
|
|
2867
2867
|
},
|
|
2868
2868
|
onlineMode: {
|
|
2869
2869
|
type: "choice",
|
|
@@ -2884,8 +2884,8 @@ function Jt(e, t) {
|
|
|
2884
2884
|
H.setOnline(!!n.onlineMode.valueOf());
|
|
2885
2885
|
let r = t.getQueryCache();
|
|
2886
2886
|
e.addInspector({
|
|
2887
|
-
id:
|
|
2888
|
-
label:
|
|
2887
|
+
id: J,
|
|
2888
|
+
label: Yt,
|
|
2889
2889
|
icon: "api",
|
|
2890
2890
|
nodeActions: [
|
|
2891
2891
|
{
|
|
@@ -2944,16 +2944,16 @@ function Jt(e, t) {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
]
|
|
2946
2946
|
}), e.addTimelineLayer({
|
|
2947
|
-
id:
|
|
2948
|
-
label:
|
|
2947
|
+
id: J,
|
|
2948
|
+
label: Yt,
|
|
2949
2949
|
color: 16767308
|
|
2950
2950
|
}), r.subscribe((t) => {
|
|
2951
|
-
e.sendInspectorTree(
|
|
2951
|
+
e.sendInspectorTree(J), e.sendInspectorState(J), [
|
|
2952
2952
|
"added",
|
|
2953
2953
|
"removed",
|
|
2954
2954
|
"updated"
|
|
2955
2955
|
].includes(t.type) && e.addTimelineEvent({
|
|
2956
|
-
layerId:
|
|
2956
|
+
layerId: J,
|
|
2957
2957
|
event: {
|
|
2958
2958
|
title: t.type,
|
|
2959
2959
|
subtitle: t.query.queryHash,
|
|
@@ -2967,23 +2967,23 @@ function Jt(e, t) {
|
|
|
2967
2967
|
}), e.on.setPluginSettings((e) => {
|
|
2968
2968
|
e.key === "onlineMode" && H.setOnline(!!e.newValue);
|
|
2969
2969
|
}), e.on.getInspectorTree((t) => {
|
|
2970
|
-
if (t.inspectorId ===
|
|
2970
|
+
if (t.inspectorId === J) {
|
|
2971
2971
|
let n = r.getAll(), i = e.getSettings();
|
|
2972
|
-
t.rootNodes = (t.filter ? n.filter((e) =>
|
|
2973
|
-
let t =
|
|
2972
|
+
t.rootNodes = (t.filter ? n.filter((e) => Pt(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Jt[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2973
|
+
let t = Ut(e);
|
|
2974
2974
|
return {
|
|
2975
2975
|
id: e.queryHash,
|
|
2976
2976
|
label: e.queryHash,
|
|
2977
2977
|
tags: [{
|
|
2978
2978
|
label: `${t} [${e.getObserversCount()}]`,
|
|
2979
|
-
textColor:
|
|
2980
|
-
backgroundColor:
|
|
2979
|
+
textColor: Wt(e),
|
|
2980
|
+
backgroundColor: Gt(e)
|
|
2981
2981
|
}]
|
|
2982
2982
|
};
|
|
2983
2983
|
});
|
|
2984
2984
|
}
|
|
2985
2985
|
}), e.on.getInspectorState((e) => {
|
|
2986
|
-
if (e.inspectorId ===
|
|
2986
|
+
if (e.inspectorId === J) {
|
|
2987
2987
|
let t = r.get(e.nodeId);
|
|
2988
2988
|
if (!t) return;
|
|
2989
2989
|
e.state = {
|
|
@@ -2994,7 +2994,7 @@ function Jt(e, t) {
|
|
|
2994
2994
|
},
|
|
2995
2995
|
{
|
|
2996
2996
|
key: "Query status",
|
|
2997
|
-
value:
|
|
2997
|
+
value: Ut(t)
|
|
2998
2998
|
},
|
|
2999
2999
|
{
|
|
3000
3000
|
key: "Observers",
|
|
@@ -3020,9 +3020,9 @@ function Jt(e, t) {
|
|
|
3020
3020
|
}
|
|
3021
3021
|
//#endregion
|
|
3022
3022
|
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
3023
|
-
var
|
|
3024
|
-
let n =
|
|
3025
|
-
r = "queryClient" in t && t.queryClient ? t.queryClient : new
|
|
3023
|
+
var Zt = { install: (e, t = {}) => {
|
|
3024
|
+
let n = ut(t.queryClientKey), r;
|
|
3025
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new yt("queryClientConfig" in t ? t.queryClientConfig : void 0), de || r.mount();
|
|
3026
3026
|
let i = () => {};
|
|
3027
3027
|
if (t.clientPersister) {
|
|
3028
3028
|
r.isRestoring && (r.isRestoring.value = !0);
|
|
@@ -3041,29 +3041,29 @@ var Yt = { install: (e, t = {}) => {
|
|
|
3041
3041
|
a(), t();
|
|
3042
3042
|
};
|
|
3043
3043
|
}
|
|
3044
|
-
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin &&
|
|
3044
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Xt(e, r);
|
|
3045
3045
|
} };
|
|
3046
3046
|
//#endregion
|
|
3047
3047
|
//#region node_modules/@tanstack/vue-query/build/modern/useBaseQuery.js
|
|
3048
|
-
function
|
|
3049
|
-
process.env.NODE_ENV === "development" && ((0,
|
|
3050
|
-
let r = n ||
|
|
3048
|
+
function Qt(e, t, n) {
|
|
3049
|
+
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."));
|
|
3050
|
+
let r = n || gt(), i = (0, U.computed)(() => {
|
|
3051
3051
|
let e = t;
|
|
3052
3052
|
typeof e == "function" && (e = e());
|
|
3053
|
-
let n =
|
|
3053
|
+
let n = W(e);
|
|
3054
3054
|
typeof n.enabled == "function" && (n.enabled = n.enabled());
|
|
3055
3055
|
let i = r.defaultQueryOptions(n);
|
|
3056
3056
|
return i._optimisticResults = r.isRestoring?.value ? "isRestoring" : "optimistic", i;
|
|
3057
|
-
}), a = new e(r, i.value), o = i.value.shallow ? (0,
|
|
3058
|
-
r.isRestoring && (0,
|
|
3057
|
+
}), a = new e(r, i.value), o = i.value.shallow ? (0, U.shallowReactive)(a.getCurrentResult()) : (0, U.reactive)(a.getCurrentResult()), s = () => {};
|
|
3058
|
+
r.isRestoring && (0, U.watch)(r.isRestoring, (e) => {
|
|
3059
3059
|
e || (s(), s = a.subscribe((e) => {
|
|
3060
|
-
|
|
3060
|
+
dt(o, e);
|
|
3061
3061
|
}));
|
|
3062
3062
|
}, { immediate: !0 });
|
|
3063
3063
|
let c = () => {
|
|
3064
|
-
a.setOptions(i.value),
|
|
3064
|
+
a.setOptions(i.value), dt(o, a.getCurrentResult());
|
|
3065
3065
|
};
|
|
3066
|
-
(0,
|
|
3066
|
+
(0, U.watch)(i, c), (0, U.onScopeDispose)(() => {
|
|
3067
3067
|
s();
|
|
3068
3068
|
});
|
|
3069
3069
|
let l = (...e) => (c(), o.refetch(...e)), u = () => new Promise((e, t) => {
|
|
@@ -3072,44 +3072,44 @@ function Xt(e, t, n) {
|
|
|
3072
3072
|
a.setOptions(i.value);
|
|
3073
3073
|
let r = a.getOptimisticResult(i.value);
|
|
3074
3074
|
r.isStale ? (n(), a.fetchOptimistic(i.value).then(e, (n) => {
|
|
3075
|
-
|
|
3075
|
+
Oe(i.value.throwOnError, [n, a.getCurrentQuery()]) ? t(n) : e(a.getCurrentResult());
|
|
3076
3076
|
})) : (n(), e(r));
|
|
3077
3077
|
}
|
|
3078
3078
|
};
|
|
3079
|
-
r(), n = (0,
|
|
3079
|
+
r(), n = (0, U.watch)(i, r);
|
|
3080
3080
|
});
|
|
3081
|
-
(0,
|
|
3082
|
-
if (o.isError && !o.isFetching &&
|
|
3081
|
+
(0, U.watch)(() => o.error, (e) => {
|
|
3082
|
+
if (o.isError && !o.isFetching && Oe(i.value.throwOnError, [e, a.getCurrentQuery()])) throw e;
|
|
3083
3083
|
});
|
|
3084
|
-
let d = (0,
|
|
3084
|
+
let d = (0, U.toRefs)(i.value.shallow ? (0, U.shallowReadonly)(o) : (0, U.readonly)(o));
|
|
3085
3085
|
for (let e in o) typeof o[e] == "function" && (d[e] = o[e]);
|
|
3086
3086
|
return d.suspense = u, d.refetch = l, d;
|
|
3087
3087
|
}
|
|
3088
3088
|
//#endregion
|
|
3089
3089
|
//#region node_modules/@tanstack/vue-query/build/modern/useQuery.js
|
|
3090
|
-
function
|
|
3091
|
-
return
|
|
3090
|
+
function $t(e, t) {
|
|
3091
|
+
return Qt(Ge, e, t);
|
|
3092
3092
|
}
|
|
3093
3093
|
//#endregion
|
|
3094
3094
|
//#region node_modules/@tanstack/vue-query/build/modern/useMutation.js
|
|
3095
|
-
function
|
|
3096
|
-
process.env.NODE_ENV === "development" && ((0,
|
|
3097
|
-
let n = t ||
|
|
3095
|
+
function en(e, t) {
|
|
3096
|
+
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."));
|
|
3097
|
+
let n = t || gt(), r = (0, U.computed)(() => {
|
|
3098
3098
|
let t = typeof e == "function" ? e() : e;
|
|
3099
|
-
return n.defaultMutationOptions(
|
|
3100
|
-
}), i = new
|
|
3101
|
-
|
|
3099
|
+
return n.defaultMutationOptions(W(t));
|
|
3100
|
+
}), i = new nt(n, r.value), a = r.value.shallow ? (0, U.shallowReactive)(i.getCurrentResult()) : (0, U.reactive)(i.getCurrentResult()), o = i.subscribe((e) => {
|
|
3101
|
+
dt(a, e);
|
|
3102
3102
|
}), s = (e, t) => {
|
|
3103
3103
|
i.mutate(e, t).catch(() => {});
|
|
3104
3104
|
};
|
|
3105
|
-
(0,
|
|
3105
|
+
(0, U.watch)(r, () => {
|
|
3106
3106
|
i.setOptions(r.value);
|
|
3107
|
-
}), (0,
|
|
3107
|
+
}), (0, U.onScopeDispose)(() => {
|
|
3108
3108
|
o();
|
|
3109
3109
|
});
|
|
3110
|
-
let c = (0,
|
|
3111
|
-
return (0,
|
|
3112
|
-
if (e &&
|
|
3110
|
+
let c = (0, U.toRefs)(r.value.shallow ? (0, U.shallowReadonly)(a) : (0, U.readonly)(a));
|
|
3111
|
+
return (0, U.watch)(() => a.error, (e) => {
|
|
3112
|
+
if (e && Oe(r.value.throwOnError, [e])) throw e;
|
|
3113
3113
|
}), {
|
|
3114
3114
|
...c,
|
|
3115
3115
|
mutate: s,
|
|
@@ -3119,29 +3119,29 @@ function Qt(e, t) {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
//#endregion
|
|
3121
3121
|
//#region src/composables/data/_internal.ts
|
|
3122
|
-
function
|
|
3123
|
-
return e;
|
|
3122
|
+
function Y(e) {
|
|
3123
|
+
return i(e);
|
|
3124
3124
|
}
|
|
3125
3125
|
//#endregion
|
|
3126
3126
|
//#region src/composables/data/useQuery.ts
|
|
3127
|
-
var
|
|
3127
|
+
var tn = {
|
|
3128
3128
|
retry: !1,
|
|
3129
3129
|
refetchOnMount: !0,
|
|
3130
3130
|
refetchOnReconnect: !1,
|
|
3131
3131
|
refetchOnWindowFocus: !1
|
|
3132
|
-
},
|
|
3133
|
-
function
|
|
3134
|
-
if (e !== void 0) return typeof e == "function" ? e() :
|
|
3132
|
+
}, nn = 0;
|
|
3133
|
+
function rn(e) {
|
|
3134
|
+
if (e !== void 0) return typeof e == "function" ? e() : o(e);
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3137
|
-
return
|
|
3136
|
+
function an() {
|
|
3137
|
+
return nn += 1, ["hanap-labs-query", nn];
|
|
3138
3138
|
}
|
|
3139
|
-
async function
|
|
3139
|
+
async function on(e) {
|
|
3140
3140
|
return (await e()).data;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function sn(e = {}) {
|
|
3143
3143
|
return function(n, r) {
|
|
3144
|
-
let i =
|
|
3144
|
+
let i = an(), a = [], c = t(() => r?.queryKey === void 0 ? i : typeof r.queryKey == "function" ? r.queryKey() : o(r.queryKey)), l = t(() => rn(r?.enabled)), u = $t(t(() => {
|
|
3145
3145
|
let { queryKey: t, onSuccess: i, onError: a, enabled: o, ...s } = r ?? {};
|
|
3146
3146
|
return {
|
|
3147
3147
|
queryKey: c.value,
|
|
@@ -3150,60 +3150,60 @@ function an(e = {}) {
|
|
|
3150
3150
|
signal: e.signal
|
|
3151
3151
|
}),
|
|
3152
3152
|
enabled: l.value,
|
|
3153
|
-
|
|
3153
|
+
...tn,
|
|
3154
3154
|
...e,
|
|
3155
3155
|
...s
|
|
3156
3156
|
};
|
|
3157
3157
|
}));
|
|
3158
|
-
|
|
3158
|
+
s(() => u.data.value, (e) => {
|
|
3159
3159
|
e !== void 0 && r?.onSuccess !== void 0 && r.onSuccess(e);
|
|
3160
|
-
}, { immediate: !1 }),
|
|
3160
|
+
}, { immediate: !1 }), s(() => u.error.value, (e) => {
|
|
3161
3161
|
if (e !== null) {
|
|
3162
3162
|
r?.onError !== void 0 && r.onError(e);
|
|
3163
|
-
for (let t of
|
|
3163
|
+
for (let t of a) t(e);
|
|
3164
3164
|
}
|
|
3165
3165
|
}, { immediate: !1 });
|
|
3166
|
-
let d = () =>
|
|
3167
|
-
data:
|
|
3168
|
-
error:
|
|
3169
|
-
isError:
|
|
3170
|
-
loading:
|
|
3171
|
-
initializing:
|
|
3172
|
-
isSuccess:
|
|
3173
|
-
onError: (e) => (
|
|
3166
|
+
let d = () => on(u.refetch), f = {
|
|
3167
|
+
data: Y(u.data),
|
|
3168
|
+
error: Y(u.error),
|
|
3169
|
+
isError: Y(u.isError),
|
|
3170
|
+
loading: Y(u.isFetching),
|
|
3171
|
+
initializing: Y(u.isLoading),
|
|
3172
|
+
isSuccess: Y(u.isSuccess),
|
|
3173
|
+
onError: (e) => (a.push(e), f),
|
|
3174
3174
|
refetch: d,
|
|
3175
3175
|
run: d,
|
|
3176
|
-
status:
|
|
3176
|
+
status: Y(u.status)
|
|
3177
3177
|
};
|
|
3178
3178
|
return f;
|
|
3179
3179
|
};
|
|
3180
3180
|
}
|
|
3181
|
-
var
|
|
3181
|
+
var cn = sn();
|
|
3182
3182
|
//#endregion
|
|
3183
3183
|
//#region src/composables/data/queryPlugin.ts
|
|
3184
|
-
function
|
|
3184
|
+
function ln(e = {}) {
|
|
3185
3185
|
return { install(t) {
|
|
3186
|
-
let n = new
|
|
3186
|
+
let n = new yt({ defaultOptions: {
|
|
3187
3187
|
queries: e.queries,
|
|
3188
3188
|
mutations: e.mutations
|
|
3189
3189
|
} });
|
|
3190
|
-
t.use(
|
|
3190
|
+
t.use(Zt, { queryClient: n });
|
|
3191
3191
|
} };
|
|
3192
3192
|
}
|
|
3193
3193
|
//#endregion
|
|
3194
3194
|
//#region src/composables/data/useMutation.ts
|
|
3195
|
-
function
|
|
3195
|
+
function un(e) {
|
|
3196
3196
|
return e[0];
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function dn(e, t) {
|
|
3199
3199
|
return e(t);
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function fn(e = {}) {
|
|
3202
3202
|
return function(t, n) {
|
|
3203
3203
|
let { onSuccess: r, onError: i, onMutate: a, onSettled: o, ...s } = n ?? {}, c = [], l = [], u = [], d = [];
|
|
3204
3204
|
r !== void 0 && c.push(r), i !== void 0 && l.push(i), a !== void 0 && u.push(a), o !== void 0 && d.push(o);
|
|
3205
|
-
let f =
|
|
3206
|
-
mutationFn: (e) =>
|
|
3205
|
+
let f = en({
|
|
3206
|
+
mutationFn: (e) => dn(t, e),
|
|
3207
3207
|
...e,
|
|
3208
3208
|
...s,
|
|
3209
3209
|
onMutate: async (e, t) => {
|
|
@@ -3221,69 +3221,69 @@ function un(e = {}) {
|
|
|
3221
3221
|
for (let i of d) await i(e, t, n, r);
|
|
3222
3222
|
}
|
|
3223
3223
|
}), p = {
|
|
3224
|
-
data:
|
|
3225
|
-
error:
|
|
3226
|
-
idle:
|
|
3227
|
-
isError:
|
|
3228
|
-
isSuccess:
|
|
3229
|
-
submitting:
|
|
3224
|
+
data: Y(f.data),
|
|
3225
|
+
error: Y(f.error),
|
|
3226
|
+
idle: Y(f.isIdle),
|
|
3227
|
+
isError: Y(f.isError),
|
|
3228
|
+
isSuccess: Y(f.isSuccess),
|
|
3229
|
+
submitting: Y(f.isPending),
|
|
3230
3230
|
onError: (e) => (l.push(e), p),
|
|
3231
3231
|
onMutate: (e) => (u.push(e), p),
|
|
3232
3232
|
onSettled: (e) => (d.push(e), p),
|
|
3233
3233
|
onSuccess: (e) => (c.push(e), p),
|
|
3234
3234
|
reset: f.reset,
|
|
3235
|
-
run: (...e) => f.mutateAsync(
|
|
3236
|
-
status:
|
|
3235
|
+
run: (...e) => f.mutateAsync(un(e)),
|
|
3236
|
+
status: Y(f.status)
|
|
3237
3237
|
};
|
|
3238
3238
|
return p;
|
|
3239
3239
|
};
|
|
3240
3240
|
}
|
|
3241
|
-
var
|
|
3241
|
+
var pn = fn(), mn = /* @__PURE__ */ m(((e, t) => {
|
|
3242
3242
|
function n() {
|
|
3243
3243
|
this.__data__ = [], this.size = 0;
|
|
3244
3244
|
}
|
|
3245
3245
|
t.exports = n;
|
|
3246
|
-
})),
|
|
3246
|
+
})), hn = /* @__PURE__ */ m(((e, t) => {
|
|
3247
3247
|
function n(e, t) {
|
|
3248
3248
|
return e === t || e !== e && t !== t;
|
|
3249
3249
|
}
|
|
3250
3250
|
t.exports = n;
|
|
3251
|
-
})),
|
|
3252
|
-
var n =
|
|
3251
|
+
})), gn = /* @__PURE__ */ m(((e, t) => {
|
|
3252
|
+
var n = hn();
|
|
3253
3253
|
function r(e, t) {
|
|
3254
3254
|
for (var r = e.length; r--;) if (n(e[r][0], t)) return r;
|
|
3255
3255
|
return -1;
|
|
3256
3256
|
}
|
|
3257
3257
|
t.exports = r;
|
|
3258
|
-
})),
|
|
3259
|
-
var n =
|
|
3258
|
+
})), _n = /* @__PURE__ */ m(((e, t) => {
|
|
3259
|
+
var n = gn(), r = Array.prototype.splice;
|
|
3260
3260
|
function i(e) {
|
|
3261
3261
|
var t = this.__data__, i = n(t, e);
|
|
3262
3262
|
return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
|
|
3263
3263
|
}
|
|
3264
3264
|
t.exports = i;
|
|
3265
|
-
})),
|
|
3266
|
-
var n =
|
|
3265
|
+
})), vn = /* @__PURE__ */ m(((e, t) => {
|
|
3266
|
+
var n = gn();
|
|
3267
3267
|
function r(e) {
|
|
3268
3268
|
var t = this.__data__, r = n(t, e);
|
|
3269
3269
|
return r < 0 ? void 0 : t[r][1];
|
|
3270
3270
|
}
|
|
3271
3271
|
t.exports = r;
|
|
3272
|
-
})),
|
|
3273
|
-
var n =
|
|
3272
|
+
})), yn = /* @__PURE__ */ m(((e, t) => {
|
|
3273
|
+
var n = gn();
|
|
3274
3274
|
function r(e) {
|
|
3275
3275
|
return n(this.__data__, e) > -1;
|
|
3276
3276
|
}
|
|
3277
3277
|
t.exports = r;
|
|
3278
|
-
})),
|
|
3279
|
-
var n =
|
|
3278
|
+
})), bn = /* @__PURE__ */ m(((e, t) => {
|
|
3279
|
+
var n = gn();
|
|
3280
3280
|
function r(e, t) {
|
|
3281
3281
|
var r = this.__data__, i = n(r, e);
|
|
3282
3282
|
return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
|
|
3283
3283
|
}
|
|
3284
3284
|
t.exports = r;
|
|
3285
|
-
})),
|
|
3286
|
-
var n =
|
|
3285
|
+
})), X = /* @__PURE__ */ m(((e, t) => {
|
|
3286
|
+
var n = mn(), r = _n(), i = vn(), a = yn(), o = bn();
|
|
3287
3287
|
function s(e) {
|
|
3288
3288
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3289
3289
|
for (this.clear(); ++t < n;) {
|
|
@@ -3292,37 +3292,37 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
3294
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3295
|
-
})),
|
|
3296
|
-
var n =
|
|
3295
|
+
})), xn = /* @__PURE__ */ m(((e, t) => {
|
|
3296
|
+
var n = X();
|
|
3297
3297
|
function r() {
|
|
3298
3298
|
this.__data__ = new n(), this.size = 0;
|
|
3299
3299
|
}
|
|
3300
3300
|
t.exports = r;
|
|
3301
|
-
})),
|
|
3301
|
+
})), Sn = /* @__PURE__ */ m(((e, t) => {
|
|
3302
3302
|
function n(e) {
|
|
3303
3303
|
var t = this.__data__, n = t.delete(e);
|
|
3304
3304
|
return this.size = t.size, n;
|
|
3305
3305
|
}
|
|
3306
3306
|
t.exports = n;
|
|
3307
|
-
})),
|
|
3307
|
+
})), Cn = /* @__PURE__ */ m(((e, t) => {
|
|
3308
3308
|
function n(e) {
|
|
3309
3309
|
return this.__data__.get(e);
|
|
3310
3310
|
}
|
|
3311
3311
|
t.exports = n;
|
|
3312
|
-
})),
|
|
3312
|
+
})), wn = /* @__PURE__ */ m(((e, t) => {
|
|
3313
3313
|
function n(e) {
|
|
3314
3314
|
return this.__data__.has(e);
|
|
3315
3315
|
}
|
|
3316
3316
|
t.exports = n;
|
|
3317
|
-
})),
|
|
3317
|
+
})), Tn = /* @__PURE__ */ m(((e, t) => {
|
|
3318
3318
|
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
3319
|
-
})), Z = /* @__PURE__ */
|
|
3320
|
-
var n =
|
|
3319
|
+
})), Z = /* @__PURE__ */ m(((e, t) => {
|
|
3320
|
+
var n = Tn(), r = typeof self == "object" && self && self.Object === Object && self;
|
|
3321
3321
|
t.exports = n || r || Function("return this")();
|
|
3322
|
-
})),
|
|
3322
|
+
})), En = /* @__PURE__ */ m(((e, t) => {
|
|
3323
3323
|
t.exports = Z().Symbol;
|
|
3324
|
-
})),
|
|
3325
|
-
var n =
|
|
3324
|
+
})), Dn = /* @__PURE__ */ m(((e, t) => {
|
|
3325
|
+
var n = En(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
|
|
3326
3326
|
function s(e) {
|
|
3327
3327
|
var t = i.call(e, o), n = e[o];
|
|
3328
3328
|
try {
|
|
@@ -3333,36 +3333,36 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3333
3333
|
return r && (t ? e[o] = n : delete e[o]), s;
|
|
3334
3334
|
}
|
|
3335
3335
|
t.exports = s;
|
|
3336
|
-
})),
|
|
3336
|
+
})), On = /* @__PURE__ */ m(((e, t) => {
|
|
3337
3337
|
var n = Object.prototype.toString;
|
|
3338
3338
|
function r(e) {
|
|
3339
3339
|
return n.call(e);
|
|
3340
3340
|
}
|
|
3341
3341
|
t.exports = r;
|
|
3342
|
-
})),
|
|
3343
|
-
var n =
|
|
3342
|
+
})), kn = /* @__PURE__ */ m(((e, t) => {
|
|
3343
|
+
var n = En(), r = Dn(), i = On(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
|
|
3344
3344
|
function c(e) {
|
|
3345
3345
|
return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
|
|
3346
3346
|
}
|
|
3347
3347
|
t.exports = c;
|
|
3348
|
-
})),
|
|
3348
|
+
})), An = /* @__PURE__ */ m(((e, t) => {
|
|
3349
3349
|
function n(e) {
|
|
3350
3350
|
var t = typeof e;
|
|
3351
3351
|
return e != null && (t == "object" || t == "function");
|
|
3352
3352
|
}
|
|
3353
3353
|
t.exports = n;
|
|
3354
|
-
})),
|
|
3355
|
-
var n =
|
|
3354
|
+
})), jn = /* @__PURE__ */ m(((e, t) => {
|
|
3355
|
+
var n = kn(), r = An(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
|
|
3356
3356
|
function c(e) {
|
|
3357
3357
|
if (!r(e)) return !1;
|
|
3358
3358
|
var t = n(e);
|
|
3359
3359
|
return t == a || t == o || t == i || t == s;
|
|
3360
3360
|
}
|
|
3361
3361
|
t.exports = c;
|
|
3362
|
-
})),
|
|
3362
|
+
})), Mn = /* @__PURE__ */ m(((e, t) => {
|
|
3363
3363
|
t.exports = Z()["__core-js_shared__"];
|
|
3364
|
-
})),
|
|
3365
|
-
var n =
|
|
3364
|
+
})), Nn = /* @__PURE__ */ m(((e, t) => {
|
|
3365
|
+
var n = Mn(), r = function() {
|
|
3366
3366
|
var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
|
|
3367
3367
|
return e ? "Symbol(src)_1." + e : "";
|
|
3368
3368
|
}();
|
|
@@ -3370,7 +3370,7 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3370
3370
|
return !!r && r in e;
|
|
3371
3371
|
}
|
|
3372
3372
|
t.exports = i;
|
|
3373
|
-
})),
|
|
3373
|
+
})), Pn = /* @__PURE__ */ m(((e, t) => {
|
|
3374
3374
|
var n = Function.prototype.toString;
|
|
3375
3375
|
function r(e) {
|
|
3376
3376
|
if (e != null) {
|
|
@@ -3384,42 +3384,42 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3384
3384
|
return "";
|
|
3385
3385
|
}
|
|
3386
3386
|
t.exports = r;
|
|
3387
|
-
})),
|
|
3388
|
-
var n =
|
|
3387
|
+
})), Fn = /* @__PURE__ */ m(((e, t) => {
|
|
3388
|
+
var n = jn(), r = Nn(), i = An(), a = Pn(), 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.*?") + "$");
|
|
3389
3389
|
function p(e) {
|
|
3390
3390
|
return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
|
|
3391
3391
|
}
|
|
3392
3392
|
t.exports = p;
|
|
3393
|
-
})),
|
|
3393
|
+
})), In = /* @__PURE__ */ m(((e, t) => {
|
|
3394
3394
|
function n(e, t) {
|
|
3395
3395
|
return e?.[t];
|
|
3396
3396
|
}
|
|
3397
3397
|
t.exports = n;
|
|
3398
|
-
})), Q = /* @__PURE__ */
|
|
3399
|
-
var n =
|
|
3398
|
+
})), Q = /* @__PURE__ */ m(((e, t) => {
|
|
3399
|
+
var n = Fn(), r = In();
|
|
3400
3400
|
function i(e, t) {
|
|
3401
3401
|
var i = r(e, t);
|
|
3402
3402
|
return n(i) ? i : void 0;
|
|
3403
3403
|
}
|
|
3404
3404
|
t.exports = i;
|
|
3405
|
-
})),
|
|
3405
|
+
})), Ln = /* @__PURE__ */ m(((e, t) => {
|
|
3406
3406
|
t.exports = Q()(Z(), "Map");
|
|
3407
|
-
})),
|
|
3407
|
+
})), Rn = /* @__PURE__ */ m(((e, t) => {
|
|
3408
3408
|
t.exports = Q()(Object, "create");
|
|
3409
|
-
})),
|
|
3410
|
-
var n =
|
|
3409
|
+
})), zn = /* @__PURE__ */ m(((e, t) => {
|
|
3410
|
+
var n = Rn();
|
|
3411
3411
|
function r() {
|
|
3412
3412
|
this.__data__ = n ? n(null) : {}, this.size = 0;
|
|
3413
3413
|
}
|
|
3414
3414
|
t.exports = r;
|
|
3415
|
-
})),
|
|
3415
|
+
})), Bn = /* @__PURE__ */ m(((e, t) => {
|
|
3416
3416
|
function n(e) {
|
|
3417
3417
|
var t = this.has(e) && delete this.__data__[e];
|
|
3418
3418
|
return this.size -= +!!t, t;
|
|
3419
3419
|
}
|
|
3420
3420
|
t.exports = n;
|
|
3421
|
-
})),
|
|
3422
|
-
var n =
|
|
3421
|
+
})), Vn = /* @__PURE__ */ m(((e, t) => {
|
|
3422
|
+
var n = Rn(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
|
|
3423
3423
|
function a(e) {
|
|
3424
3424
|
var t = this.__data__;
|
|
3425
3425
|
if (n) {
|
|
@@ -3429,22 +3429,22 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3429
3429
|
return i.call(t, e) ? t[e] : void 0;
|
|
3430
3430
|
}
|
|
3431
3431
|
t.exports = a;
|
|
3432
|
-
})),
|
|
3433
|
-
var n =
|
|
3432
|
+
})), Hn = /* @__PURE__ */ m(((e, t) => {
|
|
3433
|
+
var n = Rn(), r = Object.prototype.hasOwnProperty;
|
|
3434
3434
|
function i(e) {
|
|
3435
3435
|
var t = this.__data__;
|
|
3436
3436
|
return n ? t[e] !== void 0 : r.call(t, e);
|
|
3437
3437
|
}
|
|
3438
3438
|
t.exports = i;
|
|
3439
|
-
})),
|
|
3440
|
-
var n =
|
|
3439
|
+
})), Un = /* @__PURE__ */ m(((e, t) => {
|
|
3440
|
+
var n = Rn(), r = "__lodash_hash_undefined__";
|
|
3441
3441
|
function i(e, t) {
|
|
3442
3442
|
var i = this.__data__;
|
|
3443
3443
|
return this.size += +!this.has(e), i[e] = n && t === void 0 ? r : t, this;
|
|
3444
3444
|
}
|
|
3445
3445
|
t.exports = i;
|
|
3446
|
-
})),
|
|
3447
|
-
var n =
|
|
3446
|
+
})), Wn = /* @__PURE__ */ m(((e, t) => {
|
|
3447
|
+
var n = zn(), r = Bn(), i = Vn(), a = Hn(), o = Un();
|
|
3448
3448
|
function s(e) {
|
|
3449
3449
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3450
3450
|
for (this.clear(); ++t < n;) {
|
|
@@ -3453,8 +3453,8 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
3455
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3456
|
-
})),
|
|
3457
|
-
var n =
|
|
3456
|
+
})), Gn = /* @__PURE__ */ m(((e, t) => {
|
|
3457
|
+
var n = Wn(), r = X(), i = Ln();
|
|
3458
3458
|
function a() {
|
|
3459
3459
|
this.size = 0, this.__data__ = {
|
|
3460
3460
|
hash: new n(),
|
|
@@ -3463,47 +3463,47 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3463
3463
|
};
|
|
3464
3464
|
}
|
|
3465
3465
|
t.exports = a;
|
|
3466
|
-
})),
|
|
3466
|
+
})), Kn = /* @__PURE__ */ m(((e, t) => {
|
|
3467
3467
|
function n(e) {
|
|
3468
3468
|
var t = typeof e;
|
|
3469
3469
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3470
3470
|
}
|
|
3471
3471
|
t.exports = n;
|
|
3472
|
-
})),
|
|
3473
|
-
var n =
|
|
3472
|
+
})), qn = /* @__PURE__ */ m(((e, t) => {
|
|
3473
|
+
var n = Kn();
|
|
3474
3474
|
function r(e, t) {
|
|
3475
3475
|
var r = e.__data__;
|
|
3476
3476
|
return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
3477
3477
|
}
|
|
3478
3478
|
t.exports = r;
|
|
3479
|
-
})),
|
|
3480
|
-
var n =
|
|
3479
|
+
})), Jn = /* @__PURE__ */ m(((e, t) => {
|
|
3480
|
+
var n = qn();
|
|
3481
3481
|
function r(e) {
|
|
3482
3482
|
var t = n(this, e).delete(e);
|
|
3483
3483
|
return this.size -= +!!t, t;
|
|
3484
3484
|
}
|
|
3485
3485
|
t.exports = r;
|
|
3486
|
-
})),
|
|
3487
|
-
var n =
|
|
3486
|
+
})), Yn = /* @__PURE__ */ m(((e, t) => {
|
|
3487
|
+
var n = qn();
|
|
3488
3488
|
function r(e) {
|
|
3489
3489
|
return n(this, e).get(e);
|
|
3490
3490
|
}
|
|
3491
3491
|
t.exports = r;
|
|
3492
|
-
})),
|
|
3493
|
-
var n =
|
|
3492
|
+
})), Xn = /* @__PURE__ */ m(((e, t) => {
|
|
3493
|
+
var n = qn();
|
|
3494
3494
|
function r(e) {
|
|
3495
3495
|
return n(this, e).has(e);
|
|
3496
3496
|
}
|
|
3497
3497
|
t.exports = r;
|
|
3498
|
-
})),
|
|
3499
|
-
var n =
|
|
3498
|
+
})), Zn = /* @__PURE__ */ m(((e, t) => {
|
|
3499
|
+
var n = qn();
|
|
3500
3500
|
function r(e, t) {
|
|
3501
3501
|
var r = n(this, e), i = r.size;
|
|
3502
3502
|
return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
|
|
3503
3503
|
}
|
|
3504
3504
|
t.exports = r;
|
|
3505
|
-
})),
|
|
3506
|
-
var n =
|
|
3505
|
+
})), Qn = /* @__PURE__ */ m(((e, t) => {
|
|
3506
|
+
var n = Gn(), r = Jn(), i = Yn(), a = Xn(), o = Zn();
|
|
3507
3507
|
function s(e) {
|
|
3508
3508
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3509
3509
|
for (this.clear(); ++t < n;) {
|
|
@@ -3512,8 +3512,8 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
}
|
|
3514
3514
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3515
|
-
})),
|
|
3516
|
-
var n =
|
|
3515
|
+
})), $n = /* @__PURE__ */ m(((e, t) => {
|
|
3516
|
+
var n = X(), r = Ln(), i = Qn(), a = 200;
|
|
3517
3517
|
function o(e, t) {
|
|
3518
3518
|
var o = this.__data__;
|
|
3519
3519
|
if (o instanceof n) {
|
|
@@ -3524,44 +3524,44 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3524
3524
|
return o.set(e, t), this.size = o.size, this;
|
|
3525
3525
|
}
|
|
3526
3526
|
t.exports = o;
|
|
3527
|
-
})),
|
|
3528
|
-
var n =
|
|
3527
|
+
})), er = /* @__PURE__ */ m(((e, t) => {
|
|
3528
|
+
var n = X(), r = xn(), i = Sn(), a = Cn(), o = wn(), s = $n();
|
|
3529
3529
|
function c(e) {
|
|
3530
3530
|
var t = this.__data__ = new n(e);
|
|
3531
3531
|
this.size = t.size;
|
|
3532
3532
|
}
|
|
3533
3533
|
c.prototype.clear = r, c.prototype.delete = i, c.prototype.get = a, c.prototype.has = o, c.prototype.set = s, t.exports = c;
|
|
3534
|
-
})),
|
|
3534
|
+
})), tr = /* @__PURE__ */ m(((e, t) => {
|
|
3535
3535
|
var n = "__lodash_hash_undefined__";
|
|
3536
3536
|
function r(e) {
|
|
3537
3537
|
return this.__data__.set(e, n), this;
|
|
3538
3538
|
}
|
|
3539
3539
|
t.exports = r;
|
|
3540
|
-
})),
|
|
3540
|
+
})), nr = /* @__PURE__ */ m(((e, t) => {
|
|
3541
3541
|
function n(e) {
|
|
3542
3542
|
return this.__data__.has(e);
|
|
3543
3543
|
}
|
|
3544
3544
|
t.exports = n;
|
|
3545
|
-
})),
|
|
3546
|
-
var n =
|
|
3545
|
+
})), rr = /* @__PURE__ */ m(((e, t) => {
|
|
3546
|
+
var n = Qn(), r = tr(), i = nr();
|
|
3547
3547
|
function a(e) {
|
|
3548
3548
|
var t = -1, r = e == null ? 0 : e.length;
|
|
3549
3549
|
for (this.__data__ = new n(); ++t < r;) this.add(e[t]);
|
|
3550
3550
|
}
|
|
3551
3551
|
a.prototype.add = a.prototype.push = r, a.prototype.has = i, t.exports = a;
|
|
3552
|
-
})),
|
|
3552
|
+
})), ir = /* @__PURE__ */ m(((e, t) => {
|
|
3553
3553
|
function n(e, t) {
|
|
3554
3554
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
|
|
3555
3555
|
return !1;
|
|
3556
3556
|
}
|
|
3557
3557
|
t.exports = n;
|
|
3558
|
-
})),
|
|
3558
|
+
})), ar = /* @__PURE__ */ m(((e, t) => {
|
|
3559
3559
|
function n(e, t) {
|
|
3560
3560
|
return e.has(t);
|
|
3561
3561
|
}
|
|
3562
3562
|
t.exports = n;
|
|
3563
|
-
})),
|
|
3564
|
-
var n =
|
|
3563
|
+
})), or = /* @__PURE__ */ m(((e, t) => {
|
|
3564
|
+
var n = rr(), r = ir(), i = ar(), a = 1, o = 2;
|
|
3565
3565
|
function s(e, t, s, c, l, u) {
|
|
3566
3566
|
var d = s & a, f = e.length, p = t.length;
|
|
3567
3567
|
if (f != p && !(d && p > f)) return !1;
|
|
@@ -3591,9 +3591,9 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3591
3591
|
return u.delete(e), u.delete(t), _;
|
|
3592
3592
|
}
|
|
3593
3593
|
t.exports = s;
|
|
3594
|
-
})),
|
|
3594
|
+
})), sr = /* @__PURE__ */ m(((e, t) => {
|
|
3595
3595
|
t.exports = Z().Uint8Array;
|
|
3596
|
-
})),
|
|
3596
|
+
})), cr = /* @__PURE__ */ m(((e, t) => {
|
|
3597
3597
|
function n(e) {
|
|
3598
3598
|
var t = -1, n = Array(e.size);
|
|
3599
3599
|
return e.forEach(function(e, r) {
|
|
@@ -3601,7 +3601,7 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3601
3601
|
}), n;
|
|
3602
3602
|
}
|
|
3603
3603
|
t.exports = n;
|
|
3604
|
-
})),
|
|
3604
|
+
})), lr = /* @__PURE__ */ m(((e, t) => {
|
|
3605
3605
|
function n(e) {
|
|
3606
3606
|
var t = -1, n = Array(e.size);
|
|
3607
3607
|
return e.forEach(function(e) {
|
|
@@ -3609,8 +3609,8 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3609
3609
|
}), n;
|
|
3610
3610
|
}
|
|
3611
3611
|
t.exports = n;
|
|
3612
|
-
})),
|
|
3613
|
-
var n =
|
|
3612
|
+
})), ur = /* @__PURE__ */ m(((e, t) => {
|
|
3613
|
+
var n = En(), r = sr(), i = hn(), a = or(), o = cr(), s = lr(), 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;
|
|
3614
3614
|
function C(e, t, n, x, C, w, T) {
|
|
3615
3615
|
switch (n) {
|
|
3616
3616
|
case b:
|
|
@@ -3637,22 +3637,22 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3637
3637
|
return !1;
|
|
3638
3638
|
}
|
|
3639
3639
|
t.exports = C;
|
|
3640
|
-
})),
|
|
3640
|
+
})), dr = /* @__PURE__ */ m(((e, t) => {
|
|
3641
3641
|
function n(e, t) {
|
|
3642
3642
|
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
3643
3643
|
return e;
|
|
3644
3644
|
}
|
|
3645
3645
|
t.exports = n;
|
|
3646
|
-
})),
|
|
3646
|
+
})), fr = /* @__PURE__ */ m(((e, t) => {
|
|
3647
3647
|
t.exports = Array.isArray;
|
|
3648
|
-
})),
|
|
3649
|
-
var n =
|
|
3648
|
+
})), pr = /* @__PURE__ */ m(((e, t) => {
|
|
3649
|
+
var n = dr(), r = fr();
|
|
3650
3650
|
function i(e, t, i) {
|
|
3651
3651
|
var a = t(e);
|
|
3652
3652
|
return r(e) ? a : n(a, i(e));
|
|
3653
3653
|
}
|
|
3654
3654
|
t.exports = i;
|
|
3655
|
-
})),
|
|
3655
|
+
})), mr = /* @__PURE__ */ m(((e, t) => {
|
|
3656
3656
|
function n(e, t) {
|
|
3657
3657
|
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
|
|
3658
3658
|
var o = e[n];
|
|
@@ -3661,113 +3661,113 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3661
3661
|
return a;
|
|
3662
3662
|
}
|
|
3663
3663
|
t.exports = n;
|
|
3664
|
-
})),
|
|
3664
|
+
})), hr = /* @__PURE__ */ m(((e, t) => {
|
|
3665
3665
|
function n() {
|
|
3666
3666
|
return [];
|
|
3667
3667
|
}
|
|
3668
3668
|
t.exports = n;
|
|
3669
|
-
})),
|
|
3670
|
-
var n =
|
|
3669
|
+
})), gr = /* @__PURE__ */ m(((e, t) => {
|
|
3670
|
+
var n = mr(), r = hr(), i = Object.prototype.propertyIsEnumerable, a = Object.getOwnPropertySymbols;
|
|
3671
3671
|
t.exports = a ? function(e) {
|
|
3672
3672
|
return e == null ? [] : (e = Object(e), n(a(e), function(t) {
|
|
3673
3673
|
return i.call(e, t);
|
|
3674
3674
|
}));
|
|
3675
3675
|
} : r;
|
|
3676
|
-
})),
|
|
3676
|
+
})), _r = /* @__PURE__ */ m(((e, t) => {
|
|
3677
3677
|
function n(e, t) {
|
|
3678
3678
|
for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
|
|
3679
3679
|
return r;
|
|
3680
3680
|
}
|
|
3681
3681
|
t.exports = n;
|
|
3682
|
-
})),
|
|
3682
|
+
})), $ = /* @__PURE__ */ m(((e, t) => {
|
|
3683
3683
|
function n(e) {
|
|
3684
3684
|
return typeof e == "object" && !!e;
|
|
3685
3685
|
}
|
|
3686
3686
|
t.exports = n;
|
|
3687
|
-
})),
|
|
3688
|
-
var n =
|
|
3687
|
+
})), vr = /* @__PURE__ */ m(((e, t) => {
|
|
3688
|
+
var n = kn(), r = $(), i = "[object Arguments]";
|
|
3689
3689
|
function a(e) {
|
|
3690
3690
|
return r(e) && n(e) == i;
|
|
3691
3691
|
}
|
|
3692
3692
|
t.exports = a;
|
|
3693
|
-
})),
|
|
3694
|
-
var n =
|
|
3693
|
+
})), yr = /* @__PURE__ */ m(((e, t) => {
|
|
3694
|
+
var n = vr(), r = $(), i = Object.prototype, a = i.hasOwnProperty, o = i.propertyIsEnumerable;
|
|
3695
3695
|
t.exports = n(function() {
|
|
3696
3696
|
return arguments;
|
|
3697
3697
|
}()) ? n : function(e) {
|
|
3698
3698
|
return r(e) && a.call(e, "callee") && !o.call(e, "callee");
|
|
3699
3699
|
};
|
|
3700
|
-
})),
|
|
3700
|
+
})), br = /* @__PURE__ */ m(((e, t) => {
|
|
3701
3701
|
function n() {
|
|
3702
3702
|
return !1;
|
|
3703
3703
|
}
|
|
3704
3704
|
t.exports = n;
|
|
3705
|
-
})),
|
|
3706
|
-
var n = Z(), r =
|
|
3705
|
+
})), xr = /* @__PURE__ */ m(((e, t) => {
|
|
3706
|
+
var n = Z(), r = br(), 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;
|
|
3707
3707
|
t.exports = (o ? o.isBuffer : void 0) || r;
|
|
3708
|
-
})),
|
|
3708
|
+
})), Sr = /* @__PURE__ */ m(((e, t) => {
|
|
3709
3709
|
var n = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
|
|
3710
3710
|
function i(e, t) {
|
|
3711
3711
|
var i = typeof e;
|
|
3712
3712
|
return t ??= n, !!t && (i == "number" || i != "symbol" && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
3713
3713
|
}
|
|
3714
3714
|
t.exports = i;
|
|
3715
|
-
})),
|
|
3715
|
+
})), Cr = /* @__PURE__ */ m(((e, t) => {
|
|
3716
3716
|
var n = 9007199254740991;
|
|
3717
3717
|
function r(e) {
|
|
3718
3718
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= n;
|
|
3719
3719
|
}
|
|
3720
3720
|
t.exports = r;
|
|
3721
|
-
})),
|
|
3722
|
-
var n =
|
|
3721
|
+
})), wr = /* @__PURE__ */ m(((e, t) => {
|
|
3722
|
+
var n = kn(), r = Cr(), 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 = {};
|
|
3723
3723
|
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;
|
|
3724
|
-
function
|
|
3724
|
+
function ee(e) {
|
|
3725
3725
|
return i(e) && r(e.length) && !!k[n(e)];
|
|
3726
3726
|
}
|
|
3727
|
-
t.exports =
|
|
3728
|
-
})),
|
|
3727
|
+
t.exports = ee;
|
|
3728
|
+
})), Tr = /* @__PURE__ */ m(((e, t) => {
|
|
3729
3729
|
function n(e) {
|
|
3730
3730
|
return function(t) {
|
|
3731
3731
|
return e(t);
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
3734
|
t.exports = n;
|
|
3735
|
-
})),
|
|
3736
|
-
var n =
|
|
3735
|
+
})), Er = /* @__PURE__ */ m(((e, t) => {
|
|
3736
|
+
var n = Tn(), r = typeof e == "object" && e && !e.nodeType && e, i = r && typeof t == "object" && t && !t.nodeType && t, a = i && i.exports === r && n.process;
|
|
3737
3737
|
t.exports = function() {
|
|
3738
3738
|
try {
|
|
3739
3739
|
return i && i.require && i.require("util").types || a && a.binding && a.binding("util");
|
|
3740
3740
|
} catch {}
|
|
3741
3741
|
}();
|
|
3742
|
-
})),
|
|
3743
|
-
var n =
|
|
3742
|
+
})), Dr = /* @__PURE__ */ m(((e, t) => {
|
|
3743
|
+
var n = wr(), r = Tr(), i = Er(), a = i && i.isTypedArray;
|
|
3744
3744
|
t.exports = a ? r(a) : n;
|
|
3745
|
-
})),
|
|
3746
|
-
var n =
|
|
3745
|
+
})), Or = /* @__PURE__ */ m(((e, t) => {
|
|
3746
|
+
var n = _r(), r = yr(), i = fr(), a = xr(), o = Sr(), s = Dr(), c = Object.prototype.hasOwnProperty;
|
|
3747
3747
|
function l(e, t) {
|
|
3748
3748
|
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;
|
|
3749
3749
|
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);
|
|
3750
3750
|
return m;
|
|
3751
3751
|
}
|
|
3752
3752
|
t.exports = l;
|
|
3753
|
-
})),
|
|
3753
|
+
})), kr = /* @__PURE__ */ m(((e, t) => {
|
|
3754
3754
|
var n = Object.prototype;
|
|
3755
3755
|
function r(e) {
|
|
3756
3756
|
var t = e && e.constructor;
|
|
3757
3757
|
return e === (typeof t == "function" && t.prototype || n);
|
|
3758
3758
|
}
|
|
3759
3759
|
t.exports = r;
|
|
3760
|
-
})),
|
|
3760
|
+
})), Ar = /* @__PURE__ */ m(((e, t) => {
|
|
3761
3761
|
function n(e, t) {
|
|
3762
3762
|
return function(n) {
|
|
3763
3763
|
return e(t(n));
|
|
3764
3764
|
};
|
|
3765
3765
|
}
|
|
3766
3766
|
t.exports = n;
|
|
3767
|
-
})),
|
|
3768
|
-
t.exports =
|
|
3769
|
-
})),
|
|
3770
|
-
var n =
|
|
3767
|
+
})), jr = /* @__PURE__ */ m(((e, t) => {
|
|
3768
|
+
t.exports = Ar()(Object.keys, Object);
|
|
3769
|
+
})), Mr = /* @__PURE__ */ m(((e, t) => {
|
|
3770
|
+
var n = kr(), r = jr(), i = Object.prototype.hasOwnProperty;
|
|
3771
3771
|
function a(e) {
|
|
3772
3772
|
if (!n(e)) return r(e);
|
|
3773
3773
|
var t = [];
|
|
@@ -3775,26 +3775,26 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3775
3775
|
return t;
|
|
3776
3776
|
}
|
|
3777
3777
|
t.exports = a;
|
|
3778
|
-
})),
|
|
3779
|
-
var n =
|
|
3778
|
+
})), Nr = /* @__PURE__ */ m(((e, t) => {
|
|
3779
|
+
var n = jn(), r = Cr();
|
|
3780
3780
|
function i(e) {
|
|
3781
3781
|
return e != null && r(e.length) && !n(e);
|
|
3782
3782
|
}
|
|
3783
3783
|
t.exports = i;
|
|
3784
|
-
})),
|
|
3785
|
-
var n =
|
|
3784
|
+
})), Pr = /* @__PURE__ */ m(((e, t) => {
|
|
3785
|
+
var n = Or(), r = Mr(), i = Nr();
|
|
3786
3786
|
function a(e) {
|
|
3787
3787
|
return i(e) ? n(e) : r(e);
|
|
3788
3788
|
}
|
|
3789
3789
|
t.exports = a;
|
|
3790
|
-
})),
|
|
3791
|
-
var n =
|
|
3790
|
+
})), Fr = /* @__PURE__ */ m(((e, t) => {
|
|
3791
|
+
var n = pr(), r = gr(), i = Pr();
|
|
3792
3792
|
function a(e) {
|
|
3793
3793
|
return n(e, i, r);
|
|
3794
3794
|
}
|
|
3795
3795
|
t.exports = a;
|
|
3796
|
-
})),
|
|
3797
|
-
var n =
|
|
3796
|
+
})), Ir = /* @__PURE__ */ m(((e, t) => {
|
|
3797
|
+
var n = Fr(), r = 1, i = Object.prototype.hasOwnProperty;
|
|
3798
3798
|
function a(e, t, a, o, s, c) {
|
|
3799
3799
|
var l = a & r, u = n(e), d = u.length;
|
|
3800
3800
|
if (d != n(t).length && !l) return !1;
|
|
@@ -3823,16 +3823,16 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3823
3823
|
return c.delete(e), c.delete(t), g;
|
|
3824
3824
|
}
|
|
3825
3825
|
t.exports = a;
|
|
3826
|
-
})),
|
|
3826
|
+
})), Lr = /* @__PURE__ */ m(((e, t) => {
|
|
3827
3827
|
t.exports = Q()(Z(), "DataView");
|
|
3828
|
-
})),
|
|
3828
|
+
})), Rr = /* @__PURE__ */ m(((e, t) => {
|
|
3829
3829
|
t.exports = Q()(Z(), "Promise");
|
|
3830
|
-
})),
|
|
3830
|
+
})), zr = /* @__PURE__ */ m(((e, t) => {
|
|
3831
3831
|
t.exports = Q()(Z(), "Set");
|
|
3832
|
-
})),
|
|
3832
|
+
})), Br = /* @__PURE__ */ m(((e, t) => {
|
|
3833
3833
|
t.exports = Q()(Z(), "WeakMap");
|
|
3834
|
-
})),
|
|
3835
|
-
var n =
|
|
3834
|
+
})), Vr = /* @__PURE__ */ m(((e, t) => {
|
|
3835
|
+
var n = Lr(), r = Ln(), i = Rr(), a = zr(), o = Br(), s = kn(), c = Pn(), 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;
|
|
3836
3836
|
(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) {
|
|
3837
3837
|
var t = s(e), n = t == u ? e.constructor : void 0, r = n ? c(n) : "";
|
|
3838
3838
|
if (r) switch (r) {
|
|
@@ -3844,8 +3844,8 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3844
3844
|
}
|
|
3845
3845
|
return t;
|
|
3846
3846
|
}), t.exports = b;
|
|
3847
|
-
})),
|
|
3848
|
-
var n =
|
|
3847
|
+
})), Hr = /* @__PURE__ */ m(((e, t) => {
|
|
3848
|
+
var n = er(), r = or(), i = ur(), a = Ir(), o = Vr(), s = fr(), c = xr(), l = Dr(), u = 1, d = "[object Arguments]", f = "[object Array]", p = "[object Object]", m = Object.prototype.hasOwnProperty;
|
|
3849
3849
|
function h(e, t, h, g, _, v) {
|
|
3850
3850
|
var y = s(e), b = s(t), x = y ? f : o(e), S = b ? f : o(t);
|
|
3851
3851
|
x = x == d ? p : x, S = S == d ? p : S;
|
|
@@ -3865,32 +3865,32 @@ var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
|
3865
3865
|
return T ? (v ||= new n(), a(e, t, h, g, _, v)) : !1;
|
|
3866
3866
|
}
|
|
3867
3867
|
t.exports = h;
|
|
3868
|
-
})),
|
|
3869
|
-
var n =
|
|
3868
|
+
})), Ur = /* @__PURE__ */ m(((e, t) => {
|
|
3869
|
+
var n = Hr(), r = $();
|
|
3870
3870
|
function i(e, t, a, o, s) {
|
|
3871
3871
|
return e === t ? !0 : e == null || t == null || !r(e) && !r(t) ? e !== e && t !== t : n(e, t, a, o, i, s);
|
|
3872
3872
|
}
|
|
3873
3873
|
t.exports = i;
|
|
3874
|
-
})),
|
|
3875
|
-
var n =
|
|
3874
|
+
})), Wr = /* @__PURE__ */ v((/* @__PURE__ */ m(((e, t) => {
|
|
3875
|
+
var n = Ur();
|
|
3876
3876
|
function r(e, t) {
|
|
3877
3877
|
return n(e, t);
|
|
3878
3878
|
}
|
|
3879
3879
|
t.exports = r;
|
|
3880
|
-
})))(), 1),
|
|
3880
|
+
})))(), 1), Gr = (e) => {
|
|
3881
3881
|
let t = e.error.flatten().fieldErrors, n = {};
|
|
3882
3882
|
for (let [e, r] of Object.entries(t)) Array.isArray(r) && r.length > 0 && (n[e] = r);
|
|
3883
3883
|
return n;
|
|
3884
3884
|
};
|
|
3885
|
-
function
|
|
3886
|
-
let
|
|
3887
|
-
|
|
3885
|
+
function Kr(e, n) {
|
|
3886
|
+
let i = r({ ...e }), o = a({}), c = a({ ...e }), l = t(() => !(0, Wr.default)({ ...i }, c.value)), u = () => {
|
|
3887
|
+
o.value = {};
|
|
3888
3888
|
}, d = (e) => {
|
|
3889
|
-
|
|
3890
|
-
...
|
|
3889
|
+
o.value = {
|
|
3890
|
+
...o.value,
|
|
3891
3891
|
...e
|
|
3892
3892
|
};
|
|
3893
|
-
}, f = () => ({ ...
|
|
3893
|
+
}, f = () => ({ ...i }), p = () => {
|
|
3894
3894
|
if (!n) return u(), {
|
|
3895
3895
|
valid: !0,
|
|
3896
3896
|
data: f()
|
|
@@ -3899,21 +3899,21 @@ function Gr(e, n) {
|
|
|
3899
3899
|
return e.success ? (u(), {
|
|
3900
3900
|
valid: !0,
|
|
3901
3901
|
data: e.data
|
|
3902
|
-
}) : (
|
|
3902
|
+
}) : (o.value = Gr(e), {
|
|
3903
3903
|
valid: !1,
|
|
3904
|
-
errors:
|
|
3904
|
+
errors: o.value
|
|
3905
3905
|
});
|
|
3906
3906
|
}, m = (e) => {
|
|
3907
3907
|
if (!n) return;
|
|
3908
|
-
let t = n.safeParse(f()), r = e, { [r]: i, ...a } =
|
|
3908
|
+
let t = n.safeParse(f()), r = e, { [r]: i, ...a } = o.value;
|
|
3909
3909
|
if (t.success) {
|
|
3910
|
-
|
|
3910
|
+
o.value = a;
|
|
3911
3911
|
return;
|
|
3912
3912
|
}
|
|
3913
|
-
let
|
|
3914
|
-
|
|
3913
|
+
let s = t.error.flatten().fieldErrors[r];
|
|
3914
|
+
o.value = s?.length ? {
|
|
3915
3915
|
...a,
|
|
3916
|
-
[r]:
|
|
3916
|
+
[r]: s
|
|
3917
3917
|
} : a;
|
|
3918
3918
|
}, h = (e) => {
|
|
3919
3919
|
let t = {
|
|
@@ -3921,15 +3921,15 @@ function Gr(e, n) {
|
|
|
3921
3921
|
...e
|
|
3922
3922
|
};
|
|
3923
3923
|
c.value = { ...t };
|
|
3924
|
-
for (let e of Object.keys(t))
|
|
3924
|
+
for (let e of Object.keys(t)) i[e] = t[e];
|
|
3925
3925
|
u();
|
|
3926
3926
|
};
|
|
3927
|
-
|
|
3927
|
+
s(f, (e, t) => {
|
|
3928
3928
|
for (let n of Object.keys(e)) t?.[n] !== e[n] && m(n);
|
|
3929
3929
|
}, { deep: !0 });
|
|
3930
3930
|
let g = {
|
|
3931
|
-
form:
|
|
3932
|
-
errors:
|
|
3931
|
+
form: i,
|
|
3932
|
+
errors: o,
|
|
3933
3933
|
isDirty: l,
|
|
3934
3934
|
validate: p,
|
|
3935
3935
|
reset: h,
|
|
@@ -3949,4 +3949,4 @@ function Gr(e, n) {
|
|
|
3949
3949
|
};
|
|
3950
3950
|
}
|
|
3951
3951
|
//#endregion
|
|
3952
|
-
export {
|
|
3952
|
+
export { sn as a, y as c, ln as i, h as l, fn as n, cn as o, pn as r, se as s, Kr as t };
|