hanap-labs 6.2.0 → 6.4.0
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,
|
|
2
|
+
import { computed as t, onBeforeUnmount as n, reactive as r, ref as i, unref as a, watch as o } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, d = Object.getPrototypeOf, f = Object.prototype.hasOwnProperty, p = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), m = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) c(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 =
|
|
13
|
-
get: ((e) => t[e]).bind(null,
|
|
14
|
-
enumerable: !(r =
|
|
10
|
+
return t || c(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, h = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = u(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !f.call(e, s) && s !== n && c(e, s, {
|
|
13
|
+
get: ((e) => t[e]).bind(null, s),
|
|
14
|
+
enumerable: !(r = l(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, g = (e, t, n) => (h(e, t, "default"), n && h(n, t, "default")), _ = (e, t, n) => (n = e == null ? {} : s(d(e)), h(t || !e || !e.__esModule ? c(n, "default", {
|
|
18
18
|
value: e,
|
|
19
19
|
enumerable: !0
|
|
20
|
-
}) : n, e)),
|
|
20
|
+
}) : n, e)), v = [
|
|
21
21
|
{
|
|
22
22
|
name: "Default",
|
|
23
23
|
description: "Classic blue and violet palette",
|
|
@@ -290,12 +290,12 @@ var o = Object.create, s = Object.defineProperty, c = Object.getOwnPropertyDescr
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
],
|
|
293
|
+
], y = "hanap-labs-theme", b = "hanap-labs-theme", x = "light", S = [
|
|
294
294
|
"light",
|
|
295
295
|
"dark",
|
|
296
296
|
"system"
|
|
297
|
-
],
|
|
298
|
-
function
|
|
297
|
+
], C = i(x), w = i(void 0), T = t(() => C.value === "system" ? A() === "dark" : C.value === "dark"), E = t(() => !T.value), D = !1;
|
|
298
|
+
function O(e) {
|
|
299
299
|
if (typeof document > "u") return null;
|
|
300
300
|
let t = `; ${document.cookie}`.split(`; ${e}=`);
|
|
301
301
|
if (t.length === 2) {
|
|
@@ -304,22 +304,50 @@ function D(e) {
|
|
|
304
304
|
}
|
|
305
305
|
return null;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function k(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
|
-
function
|
|
313
|
-
return typeof window > "u" ?
|
|
312
|
+
function A() {
|
|
313
|
+
return typeof window > "u" ? x : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
314
|
+
}
|
|
315
|
+
function j(e) {
|
|
316
|
+
return typeof document > "u" ? null : e ? typeof e == "function" ? e() : "value" in e ? e.value : e : document.documentElement;
|
|
314
317
|
}
|
|
315
318
|
function ee(e) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
+
try {
|
|
320
|
+
if (!e) {
|
|
321
|
+
let e = j();
|
|
322
|
+
return e ? [...e.ownerDocument.querySelectorAll(".hanap-labs-theme")] : [];
|
|
323
|
+
}
|
|
324
|
+
let t = j(e);
|
|
325
|
+
if (!t) return [];
|
|
326
|
+
let n = [...t.querySelectorAll(".hanap-labs-theme")];
|
|
327
|
+
return t.classList.contains("hanap-labs-theme") && n.unshift(t), n;
|
|
328
|
+
} catch {
|
|
329
|
+
return [];
|
|
330
|
+
}
|
|
319
331
|
}
|
|
320
|
-
function te(e) {
|
|
321
|
-
|
|
322
|
-
|
|
332
|
+
function te(e, t = {}) {
|
|
333
|
+
let n = j(t.target);
|
|
334
|
+
if (!n) return;
|
|
335
|
+
let r = e === "system" ? A() : e, { applyMethod: i = "class", classPrefix: a = "", attributeName: o = "data-theme" } = t;
|
|
336
|
+
if (i === "class" || i === "both") {
|
|
337
|
+
n.classList.remove(`${a}light`, `${a}dark`), n.classList.add(`${a}${r}`);
|
|
338
|
+
let e = ee(t.target);
|
|
339
|
+
for (let t of e) t.classList.remove(`${a}light`, `${a}dark`), t.classList.add(`${a}${r}`);
|
|
340
|
+
}
|
|
341
|
+
if (i === "attribute" || i === "both") {
|
|
342
|
+
n.setAttribute(o, r);
|
|
343
|
+
let e = ee(t.target);
|
|
344
|
+
for (let t of e) t.setAttribute(o, r);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
function M(e, t) {
|
|
348
|
+
let n = j(t);
|
|
349
|
+
if (!n) return;
|
|
350
|
+
let r = [
|
|
323
351
|
"primary",
|
|
324
352
|
"secondary",
|
|
325
353
|
"tertiary",
|
|
@@ -327,54 +355,80 @@ function te(e) {
|
|
|
327
355
|
"danger",
|
|
328
356
|
"warning",
|
|
329
357
|
"info"
|
|
330
|
-
]
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
358
|
+
], i = (t) => {
|
|
359
|
+
if (!e) {
|
|
360
|
+
for (let e of r) t.style.removeProperty(`--${e}`);
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
let n = v.find((t) => t.name === e);
|
|
364
|
+
if (!n) return;
|
|
365
|
+
let i = T.value;
|
|
366
|
+
for (let e of r) {
|
|
367
|
+
let r = n.colors[e];
|
|
368
|
+
t.style.setProperty(`--${e}`, i ? r.dark : r.light);
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
i(n);
|
|
372
|
+
let a = ee(t);
|
|
373
|
+
for (let e of a) i(e);
|
|
342
374
|
}
|
|
343
375
|
function ne(e) {
|
|
344
376
|
if (typeof window > "u") return null;
|
|
345
|
-
let { storageKey: t =
|
|
346
|
-
if (r &&
|
|
377
|
+
let { storageKey: t = y, cookieKey: n = b } = e, r = O(n);
|
|
378
|
+
if (r && S.includes(r)) return r;
|
|
347
379
|
let i = typeof localStorage < "u" ? localStorage.getItem(t) : null;
|
|
348
|
-
return i &&
|
|
380
|
+
return i && S.includes(i) ? i : null;
|
|
349
381
|
}
|
|
350
|
-
function re() {
|
|
351
|
-
|
|
352
|
-
|
|
382
|
+
function re(e = {}) {
|
|
383
|
+
D || (D = !0, o(T, () => {
|
|
384
|
+
te(C.value, e), w.value && M(w.value, e.target), e.onThemeChange && e.onThemeChange(C.value, T.value);
|
|
353
385
|
}));
|
|
354
386
|
}
|
|
355
387
|
function ie(e = {}) {
|
|
356
|
-
let { defaultMode:
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
388
|
+
let { defaultMode: r = x, preset: i, storageKey: a = y, cookieKey: o = b, cookieOptions: s, target: c } = e;
|
|
389
|
+
if (C.value = ne(e) ?? r, te(C.value, e), re(e), i && (w.value = i, M(i, c)), typeof MutationObserver < "u") {
|
|
390
|
+
let t = new MutationObserver((t) => {
|
|
391
|
+
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"))) {
|
|
392
|
+
te(C.value, e), w.value && M(w.value, c);
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
}), r = document.body ?? document.documentElement;
|
|
396
|
+
t.observe(r, {
|
|
397
|
+
childList: !0,
|
|
398
|
+
subtree: !0
|
|
399
|
+
}), n(() => t.disconnect());
|
|
400
|
+
}
|
|
401
|
+
let l = t(() => C.value === "system" ? A() : C.value), u = (e) => {
|
|
402
|
+
C.value = e, typeof localStorage < "u" && localStorage.setItem(a, e), k(o, e, s);
|
|
360
403
|
};
|
|
361
404
|
return {
|
|
362
|
-
mode:
|
|
363
|
-
isDark:
|
|
364
|
-
isLight:
|
|
405
|
+
mode: C,
|
|
406
|
+
isDark: T,
|
|
407
|
+
isLight: E,
|
|
365
408
|
toggle: () => {
|
|
366
|
-
|
|
409
|
+
C.value === "light" ? u("dark") : C.value === "dark" ? u("light") : u(A() === "light" ? "dark" : "light");
|
|
367
410
|
},
|
|
368
|
-
setMode:
|
|
369
|
-
preset:
|
|
411
|
+
setMode: u,
|
|
412
|
+
preset: w,
|
|
370
413
|
setPreset: (e) => {
|
|
371
|
-
|
|
414
|
+
w.value = e, M(e, c);
|
|
415
|
+
},
|
|
416
|
+
activeTheme: l,
|
|
417
|
+
getThemeClasses: () => {
|
|
418
|
+
let { applyMethod: t = "class", classPrefix: n = "" } = e;
|
|
419
|
+
return t !== "class" && t !== "both" ? [] : [`${n}${C.value === "system" ? A() : C.value}`];
|
|
420
|
+
},
|
|
421
|
+
getThemeAttributes: () => {
|
|
422
|
+
let { applyMethod: t = "attribute", attributeName: n = "data-theme" } = e;
|
|
423
|
+
if (t !== "attribute" && t !== "both") return {};
|
|
424
|
+
let r = C.value === "system" ? A() : C.value;
|
|
425
|
+
return { [n]: r };
|
|
372
426
|
}
|
|
373
427
|
};
|
|
374
428
|
}
|
|
375
429
|
//#endregion
|
|
376
430
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
377
|
-
var
|
|
431
|
+
var N = class {
|
|
378
432
|
constructor() {
|
|
379
433
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
380
434
|
}
|
|
@@ -388,7 +442,7 @@ var A = class {
|
|
|
388
442
|
}
|
|
389
443
|
onSubscribe() {}
|
|
390
444
|
onUnsubscribe() {}
|
|
391
|
-
}, ae = new class extends
|
|
445
|
+
}, ae = new class extends N {
|
|
392
446
|
#e;
|
|
393
447
|
#t;
|
|
394
448
|
#n;
|
|
@@ -430,7 +484,7 @@ var A = class {
|
|
|
430
484
|
clearTimeout: (e) => clearTimeout(e),
|
|
431
485
|
setInterval: (e, t) => setInterval(e, t),
|
|
432
486
|
clearInterval: (e) => clearInterval(e)
|
|
433
|
-
},
|
|
487
|
+
}, P = new class {
|
|
434
488
|
#e = oe;
|
|
435
489
|
#t = !1;
|
|
436
490
|
setTimeoutProvider(e) {
|
|
@@ -458,7 +512,7 @@ function se(e) {
|
|
|
458
512
|
//#endregion
|
|
459
513
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
460
514
|
var ce = typeof window > "u" || "Deno" in globalThis;
|
|
461
|
-
function
|
|
515
|
+
function F() {}
|
|
462
516
|
function le(e, t) {
|
|
463
517
|
return typeof e == "function" ? e(t) : e;
|
|
464
518
|
}
|
|
@@ -468,10 +522,10 @@ function ue(e) {
|
|
|
468
522
|
function de(e, t) {
|
|
469
523
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
470
524
|
}
|
|
471
|
-
function
|
|
525
|
+
function I(e, t) {
|
|
472
526
|
return typeof e == "function" ? e(t) : e;
|
|
473
527
|
}
|
|
474
|
-
function
|
|
528
|
+
function L(e, t) {
|
|
475
529
|
return typeof e == "function" ? e(t) : e;
|
|
476
530
|
}
|
|
477
531
|
function fe(e, t) {
|
|
@@ -479,7 +533,7 @@ function fe(e, t) {
|
|
|
479
533
|
if (o) {
|
|
480
534
|
if (r) {
|
|
481
535
|
if (t.queryHash !== me(o, t.options)) return !1;
|
|
482
|
-
} else if (!
|
|
536
|
+
} else if (!z(t.queryKey, o)) return !1;
|
|
483
537
|
}
|
|
484
538
|
if (n !== "all") {
|
|
485
539
|
let e = t.isActive();
|
|
@@ -492,26 +546,26 @@ function pe(e, t) {
|
|
|
492
546
|
if (a) {
|
|
493
547
|
if (!t.options.mutationKey) return !1;
|
|
494
548
|
if (n) {
|
|
495
|
-
if (
|
|
496
|
-
} else if (!
|
|
549
|
+
if (R(t.options.mutationKey) !== R(a)) return !1;
|
|
550
|
+
} else if (!z(t.options.mutationKey, a)) return !1;
|
|
497
551
|
}
|
|
498
552
|
return !(r && t.state.status !== r || i && !i(t));
|
|
499
553
|
}
|
|
500
554
|
function me(e, t) {
|
|
501
|
-
return (t?.queryKeyHashFn ||
|
|
555
|
+
return (t?.queryKeyHashFn || R)(e);
|
|
502
556
|
}
|
|
503
|
-
function
|
|
504
|
-
return JSON.stringify(e, (e, t) =>
|
|
557
|
+
function R(e) {
|
|
558
|
+
return JSON.stringify(e, (e, t) => ve(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
505
559
|
}
|
|
506
|
-
function
|
|
507
|
-
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
560
|
+
function z(e, t) {
|
|
561
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => z(e[n], t[n])) : !1;
|
|
508
562
|
}
|
|
509
563
|
var he = Object.prototype.hasOwnProperty;
|
|
510
564
|
function ge(e, t, n = 0) {
|
|
511
565
|
if (e === t) return e;
|
|
512
566
|
if (n > 500) return t;
|
|
513
|
-
let r =
|
|
514
|
-
if (!r && !(
|
|
567
|
+
let r = _e(e) && _e(t);
|
|
568
|
+
if (!r && !(ve(e) && ve(t))) return t;
|
|
515
569
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
516
570
|
for (let l = 0; l < o; l++) {
|
|
517
571
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
@@ -528,30 +582,30 @@ function ge(e, t, n = 0) {
|
|
|
528
582
|
}
|
|
529
583
|
return i === o && c === i ? e : s;
|
|
530
584
|
}
|
|
531
|
-
function
|
|
585
|
+
function B(e, t) {
|
|
532
586
|
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
533
587
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
534
588
|
return !0;
|
|
535
589
|
}
|
|
536
|
-
function
|
|
590
|
+
function _e(e) {
|
|
537
591
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
538
592
|
}
|
|
539
|
-
function
|
|
540
|
-
if (!
|
|
593
|
+
function ve(e) {
|
|
594
|
+
if (!ye(e)) return !1;
|
|
541
595
|
let t = e.constructor;
|
|
542
596
|
if (t === void 0) return !0;
|
|
543
597
|
let n = t.prototype;
|
|
544
|
-
return !(!
|
|
598
|
+
return !(!ye(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
545
599
|
}
|
|
546
|
-
function
|
|
600
|
+
function ye(e) {
|
|
547
601
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
548
602
|
}
|
|
549
|
-
function
|
|
603
|
+
function be(e) {
|
|
550
604
|
return new Promise((t) => {
|
|
551
|
-
|
|
605
|
+
P.setTimeout(t, e);
|
|
552
606
|
});
|
|
553
607
|
}
|
|
554
|
-
function
|
|
608
|
+
function xe(e, t, n) {
|
|
555
609
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
556
610
|
if (n.structuralSharing !== !1) {
|
|
557
611
|
if (process.env.NODE_ENV !== "production") try {
|
|
@@ -563,17 +617,17 @@ function Se(e, t, n) {
|
|
|
563
617
|
}
|
|
564
618
|
return t;
|
|
565
619
|
}
|
|
566
|
-
function
|
|
620
|
+
function Se(e, t, n = 0) {
|
|
567
621
|
let r = [...e, t];
|
|
568
622
|
return n && r.length > n ? r.slice(1) : r;
|
|
569
623
|
}
|
|
570
|
-
function
|
|
624
|
+
function Ce(e, t, n = 0) {
|
|
571
625
|
let r = [t, ...e];
|
|
572
626
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
573
627
|
}
|
|
574
|
-
var
|
|
628
|
+
var we = /* @__PURE__ */ Symbol();
|
|
575
629
|
function Te(e, t) {
|
|
576
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
630
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === we && 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 === we ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
577
631
|
}
|
|
578
632
|
function Ee(e, t) {
|
|
579
633
|
return typeof e == "function" ? e(...t) : !!e;
|
|
@@ -587,7 +641,7 @@ function De(e, t, n) {
|
|
|
587
641
|
}
|
|
588
642
|
//#endregion
|
|
589
643
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
590
|
-
var
|
|
644
|
+
var Oe = /* @__PURE__ */ (() => {
|
|
591
645
|
let e = () => ce;
|
|
592
646
|
return {
|
|
593
647
|
isServer() {
|
|
@@ -600,7 +654,7 @@ var R = /* @__PURE__ */ (() => {
|
|
|
600
654
|
})();
|
|
601
655
|
//#endregion
|
|
602
656
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
603
|
-
function
|
|
657
|
+
function ke() {
|
|
604
658
|
let e, t, n = new Promise((n, r) => {
|
|
605
659
|
e = n, t = r;
|
|
606
660
|
});
|
|
@@ -622,13 +676,13 @@ function Oe() {
|
|
|
622
676
|
}
|
|
623
677
|
//#endregion
|
|
624
678
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
625
|
-
var
|
|
626
|
-
function
|
|
679
|
+
var Ae = se;
|
|
680
|
+
function je() {
|
|
627
681
|
let e = [], t = 0, n = (e) => {
|
|
628
682
|
e();
|
|
629
683
|
}, r = (e) => {
|
|
630
684
|
e();
|
|
631
|
-
}, i =
|
|
685
|
+
}, i = Ae, a = (r) => {
|
|
632
686
|
t ? e.push(r) : i(() => {
|
|
633
687
|
n(r);
|
|
634
688
|
});
|
|
@@ -670,7 +724,7 @@ function Ae() {
|
|
|
670
724
|
}
|
|
671
725
|
};
|
|
672
726
|
}
|
|
673
|
-
var
|
|
727
|
+
var V = je(), H = new class extends N {
|
|
674
728
|
#e = !0;
|
|
675
729
|
#t;
|
|
676
730
|
#n;
|
|
@@ -704,28 +758,28 @@ var z = Ae(), B = new class extends A {
|
|
|
704
758
|
}();
|
|
705
759
|
//#endregion
|
|
706
760
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
707
|
-
function
|
|
761
|
+
function Me(e) {
|
|
708
762
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
709
763
|
}
|
|
710
|
-
function
|
|
711
|
-
return (e ?? "online") === "online" ?
|
|
764
|
+
function Ne(e) {
|
|
765
|
+
return (e ?? "online") === "online" ? H.isOnline() : !0;
|
|
712
766
|
}
|
|
713
|
-
var
|
|
767
|
+
var Pe = class extends Error {
|
|
714
768
|
constructor(e) {
|
|
715
769
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
716
770
|
}
|
|
717
771
|
};
|
|
718
|
-
function
|
|
719
|
-
let t = !1, n = 0, r, i =
|
|
772
|
+
function Fe(e) {
|
|
773
|
+
let t = !1, n = 0, r, i = ke(), a = () => i.status !== "pending", o = (t) => {
|
|
720
774
|
if (!a()) {
|
|
721
|
-
let n = new
|
|
775
|
+
let n = new Pe(t);
|
|
722
776
|
f(n), e.onCancel?.(n);
|
|
723
777
|
}
|
|
724
778
|
}, s = () => {
|
|
725
779
|
t = !0;
|
|
726
780
|
}, c = () => {
|
|
727
781
|
t = !1;
|
|
728
|
-
}, l = () => ae.isFocused() && (e.networkMode === "always" ||
|
|
782
|
+
}, l = () => ae.isFocused() && (e.networkMode === "always" || H.isOnline()) && e.canRun(), u = () => Ne(e.networkMode) && e.canRun(), d = (e) => {
|
|
729
783
|
a() || (r?.(), i.resolve(e));
|
|
730
784
|
}, f = (e) => {
|
|
731
785
|
a() || (r?.(), i.reject(e));
|
|
@@ -745,12 +799,12 @@ function Pe(e) {
|
|
|
745
799
|
}
|
|
746
800
|
Promise.resolve(r).then(d).catch((r) => {
|
|
747
801
|
if (a()) return;
|
|
748
|
-
let i = e.retry ?? (
|
|
802
|
+
let i = e.retry ?? (Oe.isServer() ? 0 : 3), o = e.retryDelay ?? Me, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
749
803
|
if (t || !c) {
|
|
750
804
|
f(r);
|
|
751
805
|
return;
|
|
752
806
|
}
|
|
753
|
-
n++, e.onFail?.(n, r),
|
|
807
|
+
n++, e.onFail?.(n, r), be(s).then(() => l() ? void 0 : p()).then(() => {
|
|
754
808
|
t ? f(r) : m();
|
|
755
809
|
});
|
|
756
810
|
});
|
|
@@ -768,26 +822,26 @@ function Pe(e) {
|
|
|
768
822
|
}
|
|
769
823
|
//#endregion
|
|
770
824
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
771
|
-
var
|
|
825
|
+
var Ie = class {
|
|
772
826
|
#e;
|
|
773
827
|
destroy() {
|
|
774
828
|
this.clearGcTimeout();
|
|
775
829
|
}
|
|
776
830
|
scheduleGc() {
|
|
777
|
-
this.clearGcTimeout(), ue(this.gcTime) && (this.#e =
|
|
831
|
+
this.clearGcTimeout(), ue(this.gcTime) && (this.#e = P.setTimeout(() => {
|
|
778
832
|
this.optionalRemove();
|
|
779
833
|
}, this.gcTime));
|
|
780
834
|
}
|
|
781
835
|
updateGcTime(e) {
|
|
782
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
836
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (Oe.isServer() ? Infinity : 300 * 1e3));
|
|
783
837
|
}
|
|
784
838
|
clearGcTimeout() {
|
|
785
|
-
this.#e !== void 0 && (
|
|
839
|
+
this.#e !== void 0 && (P.clearTimeout(this.#e), this.#e = void 0);
|
|
786
840
|
}
|
|
787
841
|
};
|
|
788
842
|
//#endregion
|
|
789
843
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
790
|
-
function
|
|
844
|
+
function Le(e) {
|
|
791
845
|
return { onFetch: (t, n) => {
|
|
792
846
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
793
847
|
pages: [],
|
|
@@ -807,14 +861,14 @@ function Ie(e) {
|
|
|
807
861
|
meta: t.options.meta
|
|
808
862
|
};
|
|
809
863
|
return l(e), e;
|
|
810
|
-
})()), { maxPages: o } = t.options, s = i ?
|
|
864
|
+
})()), { maxPages: o } = t.options, s = i ? Ce : Se;
|
|
811
865
|
return {
|
|
812
866
|
pages: s(e.pages, a, o),
|
|
813
867
|
pageParams: s(e.pageParams, r, o)
|
|
814
868
|
};
|
|
815
869
|
};
|
|
816
870
|
if (i && a.length) {
|
|
817
|
-
let e = i === "backward", t = e ?
|
|
871
|
+
let e = i === "backward", t = e ? ze : Re, n = {
|
|
818
872
|
pages: a,
|
|
819
873
|
pageParams: o
|
|
820
874
|
};
|
|
@@ -822,7 +876,7 @@ function Ie(e) {
|
|
|
822
876
|
} else {
|
|
823
877
|
let t = e ?? a.length;
|
|
824
878
|
do {
|
|
825
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
879
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Re(r, s);
|
|
826
880
|
if (c > 0 && e == null) break;
|
|
827
881
|
s = await d(s, e), c++;
|
|
828
882
|
} while (c < t);
|
|
@@ -837,16 +891,16 @@ function Ie(e) {
|
|
|
837
891
|
}, n) : t.fetchFn = l;
|
|
838
892
|
} };
|
|
839
893
|
}
|
|
840
|
-
function
|
|
894
|
+
function Re(e, { pages: t, pageParams: n }) {
|
|
841
895
|
let r = t.length - 1;
|
|
842
896
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
843
897
|
}
|
|
844
|
-
function
|
|
898
|
+
function ze(e, { pages: t, pageParams: n }) {
|
|
845
899
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
846
900
|
}
|
|
847
901
|
//#endregion
|
|
848
902
|
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
849
|
-
var
|
|
903
|
+
var Be = class extends Ie {
|
|
850
904
|
#e;
|
|
851
905
|
#t;
|
|
852
906
|
#n;
|
|
@@ -856,7 +910,7 @@ var ze = class extends Fe {
|
|
|
856
910
|
#o;
|
|
857
911
|
#s;
|
|
858
912
|
constructor(e) {
|
|
859
|
-
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 =
|
|
913
|
+
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 = Ue(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
860
914
|
}
|
|
861
915
|
get meta() {
|
|
862
916
|
return this.options.meta;
|
|
@@ -872,15 +926,15 @@ var ze = class extends Fe {
|
|
|
872
926
|
...this.#o,
|
|
873
927
|
...e
|
|
874
928
|
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
875
|
-
let e =
|
|
876
|
-
e.data !== void 0 && (this.setState(
|
|
929
|
+
let e = Ue(this.options);
|
|
930
|
+
e.data !== void 0 && (this.setState(He(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
877
931
|
}
|
|
878
932
|
}
|
|
879
933
|
optionalRemove() {
|
|
880
934
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
881
935
|
}
|
|
882
936
|
setData(e, t) {
|
|
883
|
-
let n =
|
|
937
|
+
let n = xe(this.state.data, e, this.options);
|
|
884
938
|
return this.#l({
|
|
885
939
|
data: n,
|
|
886
940
|
type: "success",
|
|
@@ -896,7 +950,7 @@ var ze = class extends Fe {
|
|
|
896
950
|
}
|
|
897
951
|
cancel(e) {
|
|
898
952
|
let t = this.#a?.promise;
|
|
899
|
-
return this.#a?.cancel(e), t ? t.then(
|
|
953
|
+
return this.#a?.cancel(e), t ? t.then(F).catch(F) : Promise.resolve();
|
|
900
954
|
}
|
|
901
955
|
destroy() {
|
|
902
956
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -908,16 +962,16 @@ var ze = class extends Fe {
|
|
|
908
962
|
this.destroy(), this.setState(this.resetState);
|
|
909
963
|
}
|
|
910
964
|
isActive() {
|
|
911
|
-
return this.observers.some((e) =>
|
|
965
|
+
return this.observers.some((e) => L(e.options.enabled, this) !== !1);
|
|
912
966
|
}
|
|
913
967
|
isDisabled() {
|
|
914
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
968
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === we || !this.isFetched();
|
|
915
969
|
}
|
|
916
970
|
isFetched() {
|
|
917
971
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
918
972
|
}
|
|
919
973
|
isStatic() {
|
|
920
|
-
return this.getObserversCount() > 0 ? this.observers.some((e) =>
|
|
974
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => I(e.options.staleTime, this) === "static") : !1;
|
|
921
975
|
}
|
|
922
976
|
isStale() {
|
|
923
977
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
@@ -990,14 +1044,14 @@ var ze = class extends Fe {
|
|
|
990
1044
|
};
|
|
991
1045
|
return r(e), e;
|
|
992
1046
|
})();
|
|
993
|
-
(this.#e === "infinite" ?
|
|
1047
|
+
(this.#e === "infinite" ? Le(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({
|
|
994
1048
|
type: "fetch",
|
|
995
1049
|
meta: a.fetchOptions?.meta
|
|
996
|
-
}), this.#a =
|
|
1050
|
+
}), this.#a = Fe({
|
|
997
1051
|
initialPromise: t?.initialPromise,
|
|
998
1052
|
fn: a.fetchFn,
|
|
999
1053
|
onCancel: (e) => {
|
|
1000
|
-
e instanceof
|
|
1054
|
+
e instanceof Pe && e.revert && this.setState({
|
|
1001
1055
|
...this.#n,
|
|
1002
1056
|
fetchStatus: "idle"
|
|
1003
1057
|
}), n.abort();
|
|
@@ -1025,7 +1079,7 @@ var ze = class extends Fe {
|
|
|
1025
1079
|
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`);
|
|
1026
1080
|
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
1027
1081
|
} catch (e) {
|
|
1028
|
-
if (e instanceof
|
|
1082
|
+
if (e instanceof Pe) {
|
|
1029
1083
|
if (e.silent) return this.#a.promise;
|
|
1030
1084
|
if (e.revert) {
|
|
1031
1085
|
if (this.state.data === void 0) throw e;
|
|
@@ -1058,13 +1112,13 @@ var ze = class extends Fe {
|
|
|
1058
1112
|
};
|
|
1059
1113
|
case "fetch": return {
|
|
1060
1114
|
...t,
|
|
1061
|
-
...
|
|
1115
|
+
...Ve(t.data, this.options),
|
|
1062
1116
|
fetchMeta: e.meta ?? null
|
|
1063
1117
|
};
|
|
1064
1118
|
case "success":
|
|
1065
1119
|
let n = {
|
|
1066
1120
|
...t,
|
|
1067
|
-
...
|
|
1121
|
+
...He(e.data, e.dataUpdatedAt),
|
|
1068
1122
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
1069
1123
|
...!e.manual && {
|
|
1070
1124
|
fetchStatus: "idle",
|
|
@@ -1096,7 +1150,7 @@ var ze = class extends Fe {
|
|
|
1096
1150
|
};
|
|
1097
1151
|
}
|
|
1098
1152
|
};
|
|
1099
|
-
this.state = t(this.state),
|
|
1153
|
+
this.state = t(this.state), V.batch(() => {
|
|
1100
1154
|
this.observers.forEach((e) => {
|
|
1101
1155
|
e.onQueryUpdate();
|
|
1102
1156
|
}), this.#r.notify({
|
|
@@ -1107,18 +1161,18 @@ var ze = class extends Fe {
|
|
|
1107
1161
|
});
|
|
1108
1162
|
}
|
|
1109
1163
|
};
|
|
1110
|
-
function
|
|
1164
|
+
function Ve(e, t) {
|
|
1111
1165
|
return {
|
|
1112
1166
|
fetchFailureCount: 0,
|
|
1113
1167
|
fetchFailureReason: null,
|
|
1114
|
-
fetchStatus:
|
|
1168
|
+
fetchStatus: Ne(t.networkMode) ? "fetching" : "paused",
|
|
1115
1169
|
...e === void 0 && {
|
|
1116
1170
|
error: null,
|
|
1117
1171
|
status: "pending"
|
|
1118
1172
|
}
|
|
1119
1173
|
};
|
|
1120
1174
|
}
|
|
1121
|
-
function
|
|
1175
|
+
function He(e, t) {
|
|
1122
1176
|
return {
|
|
1123
1177
|
data: e,
|
|
1124
1178
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -1127,7 +1181,7 @@ function Ve(e, t) {
|
|
|
1127
1181
|
status: "success"
|
|
1128
1182
|
};
|
|
1129
1183
|
}
|
|
1130
|
-
function
|
|
1184
|
+
function Ue(e) {
|
|
1131
1185
|
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;
|
|
1132
1186
|
return {
|
|
1133
1187
|
data: t,
|
|
@@ -1146,9 +1200,9 @@ function He(e) {
|
|
|
1146
1200
|
}
|
|
1147
1201
|
//#endregion
|
|
1148
1202
|
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
|
|
1149
|
-
var
|
|
1203
|
+
var We = class extends N {
|
|
1150
1204
|
constructor(e, t) {
|
|
1151
|
-
super(), this.options = t, this.#e = e, this.#s = null, this.#o =
|
|
1205
|
+
super(), this.options = t, this.#e = e, this.#s = null, this.#o = ke(), this.bindMethods(), this.setOptions(t);
|
|
1152
1206
|
}
|
|
1153
1207
|
#e;
|
|
1154
1208
|
#t = void 0;
|
|
@@ -1169,36 +1223,36 @@ var Ue = class extends A {
|
|
|
1169
1223
|
this.refetch = this.refetch.bind(this);
|
|
1170
1224
|
}
|
|
1171
1225
|
onSubscribe() {
|
|
1172
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1226
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Ke(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
1173
1227
|
}
|
|
1174
1228
|
onUnsubscribe() {
|
|
1175
1229
|
this.hasListeners() || this.destroy();
|
|
1176
1230
|
}
|
|
1177
1231
|
shouldFetchOnReconnect() {
|
|
1178
|
-
return
|
|
1232
|
+
return qe(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1179
1233
|
}
|
|
1180
1234
|
shouldFetchOnWindowFocus() {
|
|
1181
|
-
return
|
|
1235
|
+
return qe(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1182
1236
|
}
|
|
1183
1237
|
destroy() {
|
|
1184
1238
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1185
1239
|
}
|
|
1186
1240
|
setOptions(e) {
|
|
1187
1241
|
let t = this.options, n = this.#t;
|
|
1188
|
-
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
1189
|
-
this.#S(), this.#t.setOptions(this.options), t._defaulted && !
|
|
1242
|
+
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof L(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
|
|
1243
|
+
this.#S(), this.#t.setOptions(this.options), t._defaulted && !B(this.options, t) && this.#e.getQueryCache().notify({
|
|
1190
1244
|
type: "observerOptionsUpdated",
|
|
1191
1245
|
query: this.#t,
|
|
1192
1246
|
observer: this
|
|
1193
1247
|
});
|
|
1194
1248
|
let r = this.hasListeners();
|
|
1195
|
-
r &&
|
|
1249
|
+
r && Je(this.#t, n, this.options, t) && this.#h(), this.updateResult(), r && (this.#t !== n || L(this.options.enabled, this.#t) !== L(t.enabled, this.#t) || I(this.options.staleTime, this.#t) !== I(t.staleTime, this.#t)) && this.#g();
|
|
1196
1250
|
let i = this.#_();
|
|
1197
|
-
r && (this.#t !== n ||
|
|
1251
|
+
r && (this.#t !== n || L(this.options.enabled, this.#t) !== L(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
|
|
1198
1252
|
}
|
|
1199
1253
|
getOptimisticResult(e) {
|
|
1200
1254
|
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
|
|
1201
|
-
return
|
|
1255
|
+
return Xe(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
|
|
1202
1256
|
}
|
|
1203
1257
|
getCurrentResult() {
|
|
1204
1258
|
return this.#r;
|
|
@@ -1228,14 +1282,14 @@ var Ue = class extends A {
|
|
|
1228
1282
|
#h(e) {
|
|
1229
1283
|
this.#S();
|
|
1230
1284
|
let t = this.#t.fetch(this.options, e);
|
|
1231
|
-
return e?.throwOnError || (t = t.catch(
|
|
1285
|
+
return e?.throwOnError || (t = t.catch(F)), t;
|
|
1232
1286
|
}
|
|
1233
1287
|
#g() {
|
|
1234
1288
|
this.#b();
|
|
1235
|
-
let e =
|
|
1236
|
-
if (
|
|
1289
|
+
let e = I(this.options.staleTime, this.#t);
|
|
1290
|
+
if (Oe.isServer() || this.#r.isStale || !ue(e)) return;
|
|
1237
1291
|
let t = de(this.#r.dataUpdatedAt, e) + 1;
|
|
1238
|
-
this.#d =
|
|
1292
|
+
this.#d = P.setTimeout(() => {
|
|
1239
1293
|
this.#r.isStale || this.updateResult();
|
|
1240
1294
|
}, t);
|
|
1241
1295
|
}
|
|
@@ -1243,7 +1297,7 @@ var Ue = class extends A {
|
|
|
1243
1297
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
1244
1298
|
}
|
|
1245
1299
|
#v(e) {
|
|
1246
|
-
this.#x(), this.#p = e, !(
|
|
1300
|
+
this.#x(), this.#p = e, !(Oe.isServer() || L(this.options.enabled, this.#t) === !1 || !ue(this.#p) || this.#p === 0) && (this.#f = P.setInterval(() => {
|
|
1247
1301
|
(this.options.refetchIntervalInBackground || ae.isFocused()) && this.#h();
|
|
1248
1302
|
}, this.#p));
|
|
1249
1303
|
}
|
|
@@ -1251,18 +1305,18 @@ var Ue = class extends A {
|
|
|
1251
1305
|
this.#g(), this.#v(this.#_());
|
|
1252
1306
|
}
|
|
1253
1307
|
#b() {
|
|
1254
|
-
this.#d !== void 0 && (
|
|
1308
|
+
this.#d !== void 0 && (P.clearTimeout(this.#d), this.#d = void 0);
|
|
1255
1309
|
}
|
|
1256
1310
|
#x() {
|
|
1257
|
-
this.#f !== void 0 && (
|
|
1311
|
+
this.#f !== void 0 && (P.clearInterval(this.#f), this.#f = void 0);
|
|
1258
1312
|
}
|
|
1259
1313
|
createResult(e, t) {
|
|
1260
1314
|
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;
|
|
1261
1315
|
if (t._optimisticResults) {
|
|
1262
|
-
let i = this.hasListeners(), a = !i &&
|
|
1316
|
+
let i = this.hasListeners(), a = !i && Ke(e, t), o = i && Je(e, n, t, r);
|
|
1263
1317
|
(a || o) && (l = {
|
|
1264
1318
|
...l,
|
|
1265
|
-
...
|
|
1319
|
+
...Ve(c.data, e.options)
|
|
1266
1320
|
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
|
|
1267
1321
|
}
|
|
1268
1322
|
let { error: f, errorUpdatedAt: p, status: m } = l;
|
|
@@ -1270,11 +1324,11 @@ var Ue = class extends A {
|
|
|
1270
1324
|
let h = !1;
|
|
1271
1325
|
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
|
|
1272
1326
|
let e;
|
|
1273
|
-
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 =
|
|
1327
|
+
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 = xe(i?.data, e, t), u = !0);
|
|
1274
1328
|
}
|
|
1275
1329
|
if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
|
|
1276
1330
|
else try {
|
|
1277
|
-
this.#c = t.select, d = t.select(d), d =
|
|
1331
|
+
this.#c = t.select, d = t.select(d), d = xe(i?.data, d, t), this.#l = d, this.#s = null;
|
|
1278
1332
|
} catch (e) {
|
|
1279
1333
|
this.#s = e;
|
|
1280
1334
|
}
|
|
@@ -1302,16 +1356,16 @@ var Ue = class extends A {
|
|
|
1302
1356
|
isPaused: l.fetchStatus === "paused",
|
|
1303
1357
|
isPlaceholderData: u,
|
|
1304
1358
|
isRefetchError: v && b,
|
|
1305
|
-
isStale:
|
|
1359
|
+
isStale: Ye(e, t),
|
|
1306
1360
|
refetch: this.refetch,
|
|
1307
1361
|
promise: this.#o,
|
|
1308
|
-
isEnabled:
|
|
1362
|
+
isEnabled: L(t.enabled, e) !== !1
|
|
1309
1363
|
};
|
|
1310
1364
|
if (this.options.experimental_prefetchInRender) {
|
|
1311
1365
|
let t = x.data !== void 0, r = x.status === "error" && !t, i = (e) => {
|
|
1312
1366
|
r ? e.reject(x.error) : t && e.resolve(x.data);
|
|
1313
1367
|
}, a = () => {
|
|
1314
|
-
i(this.#o = x.promise =
|
|
1368
|
+
i(this.#o = x.promise = ke());
|
|
1315
1369
|
}, o = this.#o;
|
|
1316
1370
|
switch (o.status) {
|
|
1317
1371
|
case "pending":
|
|
@@ -1329,7 +1383,7 @@ var Ue = class extends A {
|
|
|
1329
1383
|
}
|
|
1330
1384
|
updateResult() {
|
|
1331
1385
|
let e = this.#r, t = this.createResult(this.#t, this.options);
|
|
1332
|
-
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !
|
|
1386
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !B(t, e) && (this.#r = t, this.#C({ listeners: (() => {
|
|
1333
1387
|
if (!e) return !0;
|
|
1334
1388
|
let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
|
|
1335
1389
|
if (n === "all" || !n && !this.#m.size) return !0;
|
|
@@ -1350,7 +1404,7 @@ var Ue = class extends A {
|
|
|
1350
1404
|
this.updateResult(), this.hasListeners() && this.#y();
|
|
1351
1405
|
}
|
|
1352
1406
|
#C(e) {
|
|
1353
|
-
|
|
1407
|
+
V.batch(() => {
|
|
1354
1408
|
e.listeners && this.listeners.forEach((e) => {
|
|
1355
1409
|
e(this.#r);
|
|
1356
1410
|
}), this.#e.getQueryCache().notify({
|
|
@@ -1360,37 +1414,37 @@ var Ue = class extends A {
|
|
|
1360
1414
|
});
|
|
1361
1415
|
}
|
|
1362
1416
|
};
|
|
1363
|
-
function We(e, t) {
|
|
1364
|
-
return P(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && P(t.retryOnMount, e) === !1);
|
|
1365
|
-
}
|
|
1366
1417
|
function Ge(e, t) {
|
|
1367
|
-
return
|
|
1418
|
+
return L(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && L(t.retryOnMount, e) === !1);
|
|
1419
|
+
}
|
|
1420
|
+
function Ke(e, t) {
|
|
1421
|
+
return Ge(e, t) || e.state.data !== void 0 && qe(e, t, t.refetchOnMount);
|
|
1368
1422
|
}
|
|
1369
|
-
function
|
|
1370
|
-
if (
|
|
1423
|
+
function qe(e, t, n) {
|
|
1424
|
+
if (L(t.enabled, e) !== !1 && I(t.staleTime, e) !== "static") {
|
|
1371
1425
|
let r = typeof n == "function" ? n(e) : n;
|
|
1372
|
-
return r === "always" || r !== !1 &&
|
|
1426
|
+
return r === "always" || r !== !1 && Ye(e, t);
|
|
1373
1427
|
}
|
|
1374
1428
|
return !1;
|
|
1375
1429
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return (e !== t ||
|
|
1378
|
-
}
|
|
1379
|
-
function Je(e, t) {
|
|
1380
|
-
return P(t.enabled, e) !== !1 && e.isStaleByTime(N(t.staleTime, e));
|
|
1430
|
+
function Je(e, t, n, r) {
|
|
1431
|
+
return (e !== t || L(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Ye(e, n);
|
|
1381
1432
|
}
|
|
1382
1433
|
function Ye(e, t) {
|
|
1383
|
-
return
|
|
1434
|
+
return L(t.enabled, e) !== !1 && e.isStaleByTime(I(t.staleTime, e));
|
|
1435
|
+
}
|
|
1436
|
+
function Xe(e, t) {
|
|
1437
|
+
return !B(e.getCurrentResult(), t);
|
|
1384
1438
|
}
|
|
1385
1439
|
//#endregion
|
|
1386
1440
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
1387
|
-
var
|
|
1441
|
+
var Ze = class extends Ie {
|
|
1388
1442
|
#e;
|
|
1389
1443
|
#t;
|
|
1390
1444
|
#n;
|
|
1391
1445
|
#r;
|
|
1392
1446
|
constructor(e) {
|
|
1393
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
1447
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Qe(), this.setOptions(e.options), this.scheduleGc();
|
|
1394
1448
|
}
|
|
1395
1449
|
setOptions(e) {
|
|
1396
1450
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -1426,7 +1480,7 @@ var Xe = class extends Fe {
|
|
|
1426
1480
|
meta: this.options.meta,
|
|
1427
1481
|
mutationKey: this.options.mutationKey
|
|
1428
1482
|
};
|
|
1429
|
-
this.#r =
|
|
1483
|
+
this.#r = Fe({
|
|
1430
1484
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
1431
1485
|
onFail: (e, t) => {
|
|
1432
1486
|
this.#i({
|
|
@@ -1543,7 +1597,7 @@ var Xe = class extends Fe {
|
|
|
1543
1597
|
};
|
|
1544
1598
|
}
|
|
1545
1599
|
};
|
|
1546
|
-
this.state = t(this.state),
|
|
1600
|
+
this.state = t(this.state), V.batch(() => {
|
|
1547
1601
|
this.#t.forEach((t) => {
|
|
1548
1602
|
t.onMutationUpdate(e);
|
|
1549
1603
|
}), this.#n.notify({
|
|
@@ -1554,7 +1608,7 @@ var Xe = class extends Fe {
|
|
|
1554
1608
|
});
|
|
1555
1609
|
}
|
|
1556
1610
|
};
|
|
1557
|
-
function
|
|
1611
|
+
function Qe() {
|
|
1558
1612
|
return {
|
|
1559
1613
|
context: void 0,
|
|
1560
1614
|
data: void 0,
|
|
@@ -1569,7 +1623,7 @@ function Ze() {
|
|
|
1569
1623
|
}
|
|
1570
1624
|
//#endregion
|
|
1571
1625
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
1572
|
-
var
|
|
1626
|
+
var $e = class extends N {
|
|
1573
1627
|
constructor(e = {}) {
|
|
1574
1628
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1575
1629
|
}
|
|
@@ -1577,7 +1631,7 @@ var Qe = class extends A {
|
|
|
1577
1631
|
#t;
|
|
1578
1632
|
#n;
|
|
1579
1633
|
build(e, t, n) {
|
|
1580
|
-
let r = new
|
|
1634
|
+
let r = new Ze({
|
|
1581
1635
|
client: e,
|
|
1582
1636
|
mutationCache: this,
|
|
1583
1637
|
mutationId: ++this.#n,
|
|
@@ -1588,7 +1642,7 @@ var Qe = class extends A {
|
|
|
1588
1642
|
}
|
|
1589
1643
|
add(e) {
|
|
1590
1644
|
this.#e.add(e);
|
|
1591
|
-
let t =
|
|
1645
|
+
let t = U(e);
|
|
1592
1646
|
if (typeof t == "string") {
|
|
1593
1647
|
let n = this.#t.get(t);
|
|
1594
1648
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -1600,7 +1654,7 @@ var Qe = class extends A {
|
|
|
1600
1654
|
}
|
|
1601
1655
|
remove(e) {
|
|
1602
1656
|
if (this.#e.delete(e)) {
|
|
1603
|
-
let t =
|
|
1657
|
+
let t = U(e);
|
|
1604
1658
|
if (typeof t == "string") {
|
|
1605
1659
|
let n = this.#t.get(t);
|
|
1606
1660
|
if (n) if (n.length > 1) {
|
|
@@ -1615,18 +1669,18 @@ var Qe = class extends A {
|
|
|
1615
1669
|
});
|
|
1616
1670
|
}
|
|
1617
1671
|
canRun(e) {
|
|
1618
|
-
let t =
|
|
1672
|
+
let t = U(e);
|
|
1619
1673
|
if (typeof t == "string") {
|
|
1620
1674
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1621
1675
|
return !n || n === e;
|
|
1622
1676
|
} else return !0;
|
|
1623
1677
|
}
|
|
1624
1678
|
runNext(e) {
|
|
1625
|
-
let t =
|
|
1679
|
+
let t = U(e);
|
|
1626
1680
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1627
1681
|
}
|
|
1628
1682
|
clear() {
|
|
1629
|
-
|
|
1683
|
+
V.batch(() => {
|
|
1630
1684
|
this.#e.forEach((e) => {
|
|
1631
1685
|
this.notify({
|
|
1632
1686
|
type: "removed",
|
|
@@ -1649,7 +1703,7 @@ var Qe = class extends A {
|
|
|
1649
1703
|
return this.getAll().filter((t) => pe(e, t));
|
|
1650
1704
|
}
|
|
1651
1705
|
notify(e) {
|
|
1652
|
-
|
|
1706
|
+
V.batch(() => {
|
|
1653
1707
|
this.listeners.forEach((t) => {
|
|
1654
1708
|
t(e);
|
|
1655
1709
|
});
|
|
@@ -1657,15 +1711,15 @@ var Qe = class extends A {
|
|
|
1657
1711
|
}
|
|
1658
1712
|
resumePausedMutations() {
|
|
1659
1713
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1660
|
-
return
|
|
1714
|
+
return V.batch(() => Promise.all(e.map((e) => e.continue().catch(F))));
|
|
1661
1715
|
}
|
|
1662
1716
|
};
|
|
1663
|
-
function
|
|
1717
|
+
function U(e) {
|
|
1664
1718
|
return e.options.scope?.id;
|
|
1665
1719
|
}
|
|
1666
1720
|
//#endregion
|
|
1667
1721
|
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
|
|
1668
|
-
var
|
|
1722
|
+
var et = class extends N {
|
|
1669
1723
|
#e;
|
|
1670
1724
|
#t = void 0;
|
|
1671
1725
|
#n;
|
|
@@ -1678,11 +1732,11 @@ var $e = class extends A {
|
|
|
1678
1732
|
}
|
|
1679
1733
|
setOptions(e) {
|
|
1680
1734
|
let t = this.options;
|
|
1681
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
1735
|
+
this.options = this.#e.defaultMutationOptions(e), B(this.options, t) || this.#e.getMutationCache().notify({
|
|
1682
1736
|
type: "observerOptionsUpdated",
|
|
1683
1737
|
mutation: this.#n,
|
|
1684
1738
|
observer: this
|
|
1685
|
-
}), t?.mutationKey && this.options.mutationKey &&
|
|
1739
|
+
}), t?.mutationKey && this.options.mutationKey && R(t.mutationKey) !== R(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
|
|
1686
1740
|
}
|
|
1687
1741
|
onUnsubscribe() {
|
|
1688
1742
|
this.hasListeners() || this.#n?.removeObserver(this);
|
|
@@ -1700,7 +1754,7 @@ var $e = class extends A {
|
|
|
1700
1754
|
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);
|
|
1701
1755
|
}
|
|
1702
1756
|
#i() {
|
|
1703
|
-
let e = this.#n?.state ??
|
|
1757
|
+
let e = this.#n?.state ?? Qe();
|
|
1704
1758
|
this.#t = {
|
|
1705
1759
|
...e,
|
|
1706
1760
|
isPending: e.status === "pending",
|
|
@@ -1712,7 +1766,7 @@ var $e = class extends A {
|
|
|
1712
1766
|
};
|
|
1713
1767
|
}
|
|
1714
1768
|
#a(e) {
|
|
1715
|
-
|
|
1769
|
+
V.batch(() => {
|
|
1716
1770
|
if (this.#r && this.hasListeners()) {
|
|
1717
1771
|
let t = this.#t.variables, n = this.#t.context, r = {
|
|
1718
1772
|
client: this.#e,
|
|
@@ -1748,14 +1802,14 @@ var $e = class extends A {
|
|
|
1748
1802
|
});
|
|
1749
1803
|
});
|
|
1750
1804
|
}
|
|
1751
|
-
},
|
|
1805
|
+
}, tt = class extends N {
|
|
1752
1806
|
constructor(e = {}) {
|
|
1753
1807
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1754
1808
|
}
|
|
1755
1809
|
#e;
|
|
1756
1810
|
build(e, t, n) {
|
|
1757
1811
|
let r = t.queryKey, i = t.queryHash ?? me(r, t), a = this.get(i);
|
|
1758
|
-
return a || (a = new
|
|
1812
|
+
return a || (a = new Be({
|
|
1759
1813
|
client: e,
|
|
1760
1814
|
queryKey: r,
|
|
1761
1815
|
queryHash: i,
|
|
@@ -1778,7 +1832,7 @@ var $e = class extends A {
|
|
|
1778
1832
|
}));
|
|
1779
1833
|
}
|
|
1780
1834
|
clear() {
|
|
1781
|
-
|
|
1835
|
+
V.batch(() => {
|
|
1782
1836
|
this.getAll().forEach((e) => {
|
|
1783
1837
|
this.remove(e);
|
|
1784
1838
|
});
|
|
@@ -1802,27 +1856,27 @@ var $e = class extends A {
|
|
|
1802
1856
|
return Object.keys(e).length > 0 ? t.filter((t) => fe(e, t)) : t;
|
|
1803
1857
|
}
|
|
1804
1858
|
notify(e) {
|
|
1805
|
-
|
|
1859
|
+
V.batch(() => {
|
|
1806
1860
|
this.listeners.forEach((t) => {
|
|
1807
1861
|
t(e);
|
|
1808
1862
|
});
|
|
1809
1863
|
});
|
|
1810
1864
|
}
|
|
1811
1865
|
onFocus() {
|
|
1812
|
-
|
|
1866
|
+
V.batch(() => {
|
|
1813
1867
|
this.getAll().forEach((e) => {
|
|
1814
1868
|
e.onFocus();
|
|
1815
1869
|
});
|
|
1816
1870
|
});
|
|
1817
1871
|
}
|
|
1818
1872
|
onOnline() {
|
|
1819
|
-
|
|
1873
|
+
V.batch(() => {
|
|
1820
1874
|
this.getAll().forEach((e) => {
|
|
1821
1875
|
e.onOnline();
|
|
1822
1876
|
});
|
|
1823
1877
|
});
|
|
1824
1878
|
}
|
|
1825
|
-
},
|
|
1879
|
+
}, nt = class {
|
|
1826
1880
|
#e;
|
|
1827
1881
|
#t;
|
|
1828
1882
|
#n;
|
|
@@ -1832,12 +1886,12 @@ var $e = class extends A {
|
|
|
1832
1886
|
#o;
|
|
1833
1887
|
#s;
|
|
1834
1888
|
constructor(e = {}) {
|
|
1835
|
-
this.#e = e.queryCache || new
|
|
1889
|
+
this.#e = e.queryCache || new tt(), this.#t = e.mutationCache || new $e(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1836
1890
|
}
|
|
1837
1891
|
mount() {
|
|
1838
1892
|
this.#a++, this.#a === 1 && (this.#o = ae.subscribe(async (e) => {
|
|
1839
1893
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1840
|
-
}), this.#s =
|
|
1894
|
+
}), this.#s = H.subscribe(async (e) => {
|
|
1841
1895
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1842
1896
|
}));
|
|
1843
1897
|
}
|
|
@@ -1862,7 +1916,7 @@ var $e = class extends A {
|
|
|
1862
1916
|
}
|
|
1863
1917
|
ensureQueryData(e) {
|
|
1864
1918
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1865
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1919
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(I(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1866
1920
|
}
|
|
1867
1921
|
getQueriesData(e) {
|
|
1868
1922
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
@@ -1875,7 +1929,7 @@ var $e = class extends A {
|
|
|
1875
1929
|
});
|
|
1876
1930
|
}
|
|
1877
1931
|
setQueriesData(e, t, n) {
|
|
1878
|
-
return
|
|
1932
|
+
return V.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1879
1933
|
}
|
|
1880
1934
|
getQueryState(e) {
|
|
1881
1935
|
let t = this.defaultQueryOptions({ queryKey: e });
|
|
@@ -1883,7 +1937,7 @@ var $e = class extends A {
|
|
|
1883
1937
|
}
|
|
1884
1938
|
removeQueries(e) {
|
|
1885
1939
|
let t = this.#e;
|
|
1886
|
-
|
|
1940
|
+
V.batch(() => {
|
|
1887
1941
|
t.findAll(e).forEach((e) => {
|
|
1888
1942
|
t.remove(e);
|
|
1889
1943
|
});
|
|
@@ -1891,7 +1945,7 @@ var $e = class extends A {
|
|
|
1891
1945
|
}
|
|
1892
1946
|
resetQueries(e, t) {
|
|
1893
1947
|
let n = this.#e;
|
|
1894
|
-
return
|
|
1948
|
+
return V.batch(() => (n.findAll(e).forEach((e) => {
|
|
1895
1949
|
e.reset();
|
|
1896
1950
|
}), this.refetchQueries({
|
|
1897
1951
|
type: "active",
|
|
@@ -1902,11 +1956,11 @@ var $e = class extends A {
|
|
|
1902
1956
|
let n = {
|
|
1903
1957
|
revert: !0,
|
|
1904
1958
|
...t
|
|
1905
|
-
}, r =
|
|
1906
|
-
return Promise.all(r).then(
|
|
1959
|
+
}, r = V.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1960
|
+
return Promise.all(r).then(F).catch(F);
|
|
1907
1961
|
}
|
|
1908
1962
|
invalidateQueries(e, t = {}) {
|
|
1909
|
-
return
|
|
1963
|
+
return V.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1910
1964
|
e.invalidate();
|
|
1911
1965
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1912
1966
|
...e,
|
|
@@ -1917,32 +1971,32 @@ var $e = class extends A {
|
|
|
1917
1971
|
let n = {
|
|
1918
1972
|
...t,
|
|
1919
1973
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
1920
|
-
}, r =
|
|
1974
|
+
}, r = V.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1921
1975
|
let t = e.fetch(void 0, n);
|
|
1922
|
-
return n.throwOnError || (t = t.catch(
|
|
1976
|
+
return n.throwOnError || (t = t.catch(F)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1923
1977
|
}));
|
|
1924
|
-
return Promise.all(r).then(
|
|
1978
|
+
return Promise.all(r).then(F);
|
|
1925
1979
|
}
|
|
1926
1980
|
fetchQuery(e) {
|
|
1927
1981
|
let t = this.defaultQueryOptions(e);
|
|
1928
1982
|
t.retry === void 0 && (t.retry = !1);
|
|
1929
1983
|
let n = this.#e.build(this, t);
|
|
1930
|
-
return n.isStaleByTime(
|
|
1984
|
+
return n.isStaleByTime(I(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1931
1985
|
}
|
|
1932
1986
|
prefetchQuery(e) {
|
|
1933
|
-
return this.fetchQuery(e).then(
|
|
1987
|
+
return this.fetchQuery(e).then(F).catch(F);
|
|
1934
1988
|
}
|
|
1935
1989
|
fetchInfiniteQuery(e) {
|
|
1936
1990
|
return e._type = "infinite", this.fetchQuery(e);
|
|
1937
1991
|
}
|
|
1938
1992
|
prefetchInfiniteQuery(e) {
|
|
1939
|
-
return this.fetchInfiniteQuery(e).then(
|
|
1993
|
+
return this.fetchInfiniteQuery(e).then(F).catch(F);
|
|
1940
1994
|
}
|
|
1941
1995
|
ensureInfiniteQueryData(e) {
|
|
1942
1996
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
1943
1997
|
}
|
|
1944
1998
|
resumePausedMutations() {
|
|
1945
|
-
return
|
|
1999
|
+
return H.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1946
2000
|
}
|
|
1947
2001
|
getQueryCache() {
|
|
1948
2002
|
return this.#e;
|
|
@@ -1957,7 +2011,7 @@ var $e = class extends A {
|
|
|
1957
2011
|
this.#n = e;
|
|
1958
2012
|
}
|
|
1959
2013
|
setQueryDefaults(e, t) {
|
|
1960
|
-
this.#r.set(
|
|
2014
|
+
this.#r.set(R(e), {
|
|
1961
2015
|
queryKey: e,
|
|
1962
2016
|
defaultOptions: t
|
|
1963
2017
|
});
|
|
@@ -1965,11 +2019,11 @@ var $e = class extends A {
|
|
|
1965
2019
|
getQueryDefaults(e) {
|
|
1966
2020
|
let t = [...this.#r.values()], n = {};
|
|
1967
2021
|
return t.forEach((t) => {
|
|
1968
|
-
|
|
2022
|
+
z(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1969
2023
|
}), n;
|
|
1970
2024
|
}
|
|
1971
2025
|
setMutationDefaults(e, t) {
|
|
1972
|
-
this.#i.set(
|
|
2026
|
+
this.#i.set(R(e), {
|
|
1973
2027
|
mutationKey: e,
|
|
1974
2028
|
defaultOptions: t
|
|
1975
2029
|
});
|
|
@@ -1977,7 +2031,7 @@ var $e = class extends A {
|
|
|
1977
2031
|
getMutationDefaults(e) {
|
|
1978
2032
|
let t = [...this.#i.values()], n = {};
|
|
1979
2033
|
return t.forEach((t) => {
|
|
1980
|
-
|
|
2034
|
+
z(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1981
2035
|
}), n;
|
|
1982
2036
|
}
|
|
1983
2037
|
defaultQueryOptions(e) {
|
|
@@ -1988,7 +2042,7 @@ var $e = class extends A {
|
|
|
1988
2042
|
...e,
|
|
1989
2043
|
_defaulted: !0
|
|
1990
2044
|
};
|
|
1991
|
-
return t.queryHash ||= me(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 ===
|
|
2045
|
+
return t.queryHash ||= me(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 === we && (t.enabled = !1), t;
|
|
1992
2046
|
}
|
|
1993
2047
|
defaultMutationOptions(e) {
|
|
1994
2048
|
return e?._defaulted ? e : {
|
|
@@ -2001,22 +2055,22 @@ var $e = class extends A {
|
|
|
2001
2055
|
clear() {
|
|
2002
2056
|
this.#e.clear(), this.#t.clear();
|
|
2003
2057
|
}
|
|
2004
|
-
},
|
|
2058
|
+
}, W = /* @__PURE__ */ m({
|
|
2005
2059
|
Vue: () => e,
|
|
2006
2060
|
Vue2: () => void 0,
|
|
2007
|
-
del: () =>
|
|
2008
|
-
install: () =>
|
|
2061
|
+
del: () => ot,
|
|
2062
|
+
install: () => it,
|
|
2009
2063
|
isVue2: () => !1,
|
|
2010
2064
|
isVue3: () => !0,
|
|
2011
|
-
set: () =>
|
|
2065
|
+
set: () => at
|
|
2012
2066
|
});
|
|
2013
|
-
import * as
|
|
2014
|
-
|
|
2015
|
-
function
|
|
2016
|
-
function
|
|
2067
|
+
import * as rt from "vue";
|
|
2068
|
+
g(W, rt);
|
|
2069
|
+
function it() {}
|
|
2070
|
+
function at(e, t, n) {
|
|
2017
2071
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
2018
2072
|
}
|
|
2019
|
-
function
|
|
2073
|
+
function ot(e, t) {
|
|
2020
2074
|
if (Array.isArray(e)) {
|
|
2021
2075
|
e.splice(t, 1);
|
|
2022
2076
|
return;
|
|
@@ -2025,113 +2079,113 @@ function at(e, t) {
|
|
|
2025
2079
|
}
|
|
2026
2080
|
//#endregion
|
|
2027
2081
|
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
2028
|
-
var
|
|
2029
|
-
function
|
|
2030
|
-
return `${
|
|
2082
|
+
var st = "VUE_QUERY_CLIENT";
|
|
2083
|
+
function ct(e) {
|
|
2084
|
+
return `${st}${e ? `:${e}` : ""}`;
|
|
2031
2085
|
}
|
|
2032
|
-
function
|
|
2086
|
+
function lt(e, t) {
|
|
2033
2087
|
Object.keys(e).forEach((n) => {
|
|
2034
2088
|
e[n] = t[n];
|
|
2035
2089
|
});
|
|
2036
2090
|
}
|
|
2037
|
-
function
|
|
2091
|
+
function ut(e, t, n = "", r = 0) {
|
|
2038
2092
|
if (t) {
|
|
2039
2093
|
let i = t(e, n, r);
|
|
2040
|
-
if (i === void 0 && (0,
|
|
2094
|
+
if (i === void 0 && (0, W.isRef)(e) || i !== void 0) return i;
|
|
2041
2095
|
}
|
|
2042
|
-
if (Array.isArray(e)) return e.map((e, n) =>
|
|
2043
|
-
if (typeof e == "object" &&
|
|
2044
|
-
let n = Object.entries(e).map(([e, n]) => [e,
|
|
2096
|
+
if (Array.isArray(e)) return e.map((e, n) => ut(e, t, String(n), r + 1));
|
|
2097
|
+
if (typeof e == "object" && ft(e)) {
|
|
2098
|
+
let n = Object.entries(e).map(([e, n]) => [e, ut(n, t, e, r + 1)]);
|
|
2045
2099
|
return Object.fromEntries(n);
|
|
2046
2100
|
}
|
|
2047
2101
|
return e;
|
|
2048
2102
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return
|
|
2103
|
+
function dt(e, t) {
|
|
2104
|
+
return ut(e, t);
|
|
2051
2105
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
2054
|
-
if (r === 1 && n === "queryKey") return
|
|
2055
|
-
if (t &&
|
|
2056
|
-
if ((0,
|
|
2106
|
+
function G(e, t = !1) {
|
|
2107
|
+
return dt(e, (e, n, r) => {
|
|
2108
|
+
if (r === 1 && n === "queryKey") return G(e, !0);
|
|
2109
|
+
if (t && pt(e)) return G(e(), t);
|
|
2110
|
+
if ((0, W.isRef)(e)) return G((0, W.unref)(e), t);
|
|
2057
2111
|
});
|
|
2058
2112
|
}
|
|
2059
|
-
function
|
|
2113
|
+
function ft(e) {
|
|
2060
2114
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
2061
2115
|
let t = Object.getPrototypeOf(e);
|
|
2062
2116
|
return t === null || t === Object.prototype;
|
|
2063
2117
|
}
|
|
2064
|
-
function
|
|
2118
|
+
function pt(e) {
|
|
2065
2119
|
return typeof e == "function";
|
|
2066
2120
|
}
|
|
2067
2121
|
//#endregion
|
|
2068
2122
|
//#region node_modules/@tanstack/vue-query/build/modern/useQueryClient.js
|
|
2069
|
-
function
|
|
2070
|
-
if (!(0,
|
|
2071
|
-
let t = (0,
|
|
2123
|
+
function mt(e = "") {
|
|
2124
|
+
if (!(0, W.hasInjectionContext)()) throw Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");
|
|
2125
|
+
let t = (0, W.inject)(ct(e));
|
|
2072
2126
|
if (!t) throw Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");
|
|
2073
2127
|
return t;
|
|
2074
2128
|
}
|
|
2075
2129
|
//#endregion
|
|
2076
2130
|
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
2077
|
-
var
|
|
2131
|
+
var ht = class extends tt {
|
|
2078
2132
|
find(e) {
|
|
2079
|
-
return super.find(
|
|
2133
|
+
return super.find(G(e));
|
|
2080
2134
|
}
|
|
2081
2135
|
findAll(e = {}) {
|
|
2082
|
-
return super.findAll(
|
|
2136
|
+
return super.findAll(G(e));
|
|
2083
2137
|
}
|
|
2084
|
-
},
|
|
2138
|
+
}, gt = class extends $e {
|
|
2085
2139
|
find(e) {
|
|
2086
|
-
return super.find(
|
|
2140
|
+
return super.find(G(e));
|
|
2087
2141
|
}
|
|
2088
2142
|
findAll(e = {}) {
|
|
2089
|
-
return super.findAll(
|
|
2143
|
+
return super.findAll(G(e));
|
|
2090
2144
|
}
|
|
2091
|
-
},
|
|
2145
|
+
}, _t = class extends nt {
|
|
2092
2146
|
constructor(e = {}) {
|
|
2093
2147
|
let t = {
|
|
2094
2148
|
defaultOptions: e.defaultOptions,
|
|
2095
|
-
queryCache: e.queryCache || new
|
|
2096
|
-
mutationCache: e.mutationCache || new
|
|
2149
|
+
queryCache: e.queryCache || new ht(),
|
|
2150
|
+
mutationCache: e.mutationCache || new gt()
|
|
2097
2151
|
};
|
|
2098
|
-
super(t), this.isRestoring = (0,
|
|
2152
|
+
super(t), this.isRestoring = (0, W.ref)(!1);
|
|
2099
2153
|
}
|
|
2100
2154
|
isFetching(e = {}) {
|
|
2101
|
-
return super.isFetching(
|
|
2155
|
+
return super.isFetching(G(e));
|
|
2102
2156
|
}
|
|
2103
2157
|
isMutating(e = {}) {
|
|
2104
|
-
return super.isMutating(
|
|
2158
|
+
return super.isMutating(G(e));
|
|
2105
2159
|
}
|
|
2106
2160
|
getQueryData(e) {
|
|
2107
|
-
return super.getQueryData(
|
|
2161
|
+
return super.getQueryData(G(e));
|
|
2108
2162
|
}
|
|
2109
2163
|
ensureQueryData(e) {
|
|
2110
|
-
return super.ensureQueryData(
|
|
2164
|
+
return super.ensureQueryData(G(e));
|
|
2111
2165
|
}
|
|
2112
2166
|
getQueriesData(e) {
|
|
2113
|
-
return super.getQueriesData(
|
|
2167
|
+
return super.getQueriesData(G(e));
|
|
2114
2168
|
}
|
|
2115
2169
|
setQueryData(e, t, n = {}) {
|
|
2116
|
-
return super.setQueryData(
|
|
2170
|
+
return super.setQueryData(G(e), t, G(n));
|
|
2117
2171
|
}
|
|
2118
2172
|
setQueriesData(e, t, n = {}) {
|
|
2119
|
-
return super.setQueriesData(
|
|
2173
|
+
return super.setQueriesData(G(e), t, G(n));
|
|
2120
2174
|
}
|
|
2121
2175
|
getQueryState(e) {
|
|
2122
|
-
return super.getQueryState(
|
|
2176
|
+
return super.getQueryState(G(e));
|
|
2123
2177
|
}
|
|
2124
2178
|
removeQueries(e = {}) {
|
|
2125
|
-
return super.removeQueries(
|
|
2179
|
+
return super.removeQueries(G(e));
|
|
2126
2180
|
}
|
|
2127
2181
|
resetQueries(e = {}, t = {}) {
|
|
2128
|
-
return super.resetQueries(
|
|
2182
|
+
return super.resetQueries(G(e), G(t));
|
|
2129
2183
|
}
|
|
2130
2184
|
cancelQueries(e = {}, t = {}) {
|
|
2131
|
-
return super.cancelQueries(
|
|
2185
|
+
return super.cancelQueries(G(e), G(t));
|
|
2132
2186
|
}
|
|
2133
2187
|
invalidateQueries(e = {}, t = {}) {
|
|
2134
|
-
let n =
|
|
2188
|
+
let n = G(e), r = G(t);
|
|
2135
2189
|
if (super.invalidateQueries({
|
|
2136
2190
|
...n,
|
|
2137
2191
|
refetchType: "none"
|
|
@@ -2140,57 +2194,57 @@ var mt = class extends et {
|
|
|
2140
2194
|
...n,
|
|
2141
2195
|
type: n.refetchType ?? n.type ?? "active"
|
|
2142
2196
|
};
|
|
2143
|
-
return (0,
|
|
2197
|
+
return (0, W.nextTick)().then(() => super.refetchQueries(i, r));
|
|
2144
2198
|
}
|
|
2145
2199
|
refetchQueries(e = {}, t = {}) {
|
|
2146
|
-
return super.refetchQueries(
|
|
2200
|
+
return super.refetchQueries(G(e), G(t));
|
|
2147
2201
|
}
|
|
2148
2202
|
fetchQuery(e) {
|
|
2149
|
-
return super.fetchQuery(
|
|
2203
|
+
return super.fetchQuery(G(e));
|
|
2150
2204
|
}
|
|
2151
2205
|
prefetchQuery(e) {
|
|
2152
|
-
return super.prefetchQuery(
|
|
2206
|
+
return super.prefetchQuery(G(e));
|
|
2153
2207
|
}
|
|
2154
2208
|
fetchInfiniteQuery(e) {
|
|
2155
|
-
return super.fetchInfiniteQuery(
|
|
2209
|
+
return super.fetchInfiniteQuery(G(e));
|
|
2156
2210
|
}
|
|
2157
2211
|
prefetchInfiniteQuery(e) {
|
|
2158
|
-
return super.prefetchInfiniteQuery(
|
|
2212
|
+
return super.prefetchInfiniteQuery(G(e));
|
|
2159
2213
|
}
|
|
2160
2214
|
setDefaultOptions(e) {
|
|
2161
|
-
super.setDefaultOptions(
|
|
2215
|
+
super.setDefaultOptions(G(e));
|
|
2162
2216
|
}
|
|
2163
2217
|
setQueryDefaults(e, t) {
|
|
2164
|
-
super.setQueryDefaults(
|
|
2218
|
+
super.setQueryDefaults(G(e), G(t));
|
|
2165
2219
|
}
|
|
2166
2220
|
getQueryDefaults(e) {
|
|
2167
|
-
return super.getQueryDefaults(
|
|
2221
|
+
return super.getQueryDefaults(G(e));
|
|
2168
2222
|
}
|
|
2169
2223
|
setMutationDefaults(e, t) {
|
|
2170
|
-
super.setMutationDefaults(
|
|
2224
|
+
super.setMutationDefaults(G(e), G(t));
|
|
2171
2225
|
}
|
|
2172
2226
|
getMutationDefaults(e) {
|
|
2173
|
-
return super.getMutationDefaults(
|
|
2227
|
+
return super.getMutationDefaults(G(e));
|
|
2174
2228
|
}
|
|
2175
2229
|
};
|
|
2176
2230
|
//#endregion
|
|
2177
2231
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
2178
|
-
function _t() {
|
|
2179
|
-
return vt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2180
|
-
}
|
|
2181
2232
|
function vt() {
|
|
2182
|
-
return
|
|
2233
|
+
return yt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2183
2234
|
}
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
return W === void 0 && (typeof window < "u" && window.performance ? (W = !0, St = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (W = !0, St = globalThis.perf_hooks.performance) : W = !1), W;
|
|
2235
|
+
function yt() {
|
|
2236
|
+
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2187
2237
|
}
|
|
2238
|
+
var bt = typeof Proxy == "function", xt = "devtools-plugin:setup", St = "plugin:settings:set", K, Ct;
|
|
2188
2239
|
function wt() {
|
|
2189
|
-
return
|
|
2240
|
+
return K === void 0 && (typeof window < "u" && window.performance ? (K = !0, Ct = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (K = !0, Ct = globalThis.perf_hooks.performance) : K = !1), K;
|
|
2241
|
+
}
|
|
2242
|
+
function Tt() {
|
|
2243
|
+
return wt() ? Ct.now() : Date.now();
|
|
2190
2244
|
}
|
|
2191
2245
|
//#endregion
|
|
2192
2246
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
2193
|
-
var
|
|
2247
|
+
var Et = class {
|
|
2194
2248
|
constructor(e, t) {
|
|
2195
2249
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
2196
2250
|
let n = {};
|
|
@@ -2211,9 +2265,9 @@ var Tt = class {
|
|
|
2211
2265
|
i = e;
|
|
2212
2266
|
},
|
|
2213
2267
|
now() {
|
|
2214
|
-
return
|
|
2268
|
+
return Tt();
|
|
2215
2269
|
}
|
|
2216
|
-
}, t && t.on(
|
|
2270
|
+
}, t && t.on(St, (e, t) => {
|
|
2217
2271
|
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
2218
2272
|
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
2219
2273
|
this.onQueue.push({
|
|
@@ -2240,11 +2294,11 @@ var Tt = class {
|
|
|
2240
2294
|
};
|
|
2241
2295
|
//#endregion
|
|
2242
2296
|
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
2243
|
-
function
|
|
2244
|
-
let n = e, r =
|
|
2245
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(
|
|
2297
|
+
function Dt(e, t) {
|
|
2298
|
+
let n = e, r = yt(), i = vt(), a = bt && n.enableEarlyProxy;
|
|
2299
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(xt, e, t);
|
|
2246
2300
|
else {
|
|
2247
|
-
let e = a ? new
|
|
2301
|
+
let e = a ? new Et(n, i) : null;
|
|
2248
2302
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2249
2303
|
pluginDescriptor: n,
|
|
2250
2304
|
setupFn: t,
|
|
@@ -2254,7 +2308,7 @@ function Et(e, t) {
|
|
|
2254
2308
|
}
|
|
2255
2309
|
//#endregion
|
|
2256
2310
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
2257
|
-
var
|
|
2311
|
+
var Ot = {
|
|
2258
2312
|
À: "A",
|
|
2259
2313
|
Á: "A",
|
|
2260
2314
|
Â: "A",
|
|
@@ -2654,11 +2708,11 @@ var Dt = {
|
|
|
2654
2708
|
x̧: "x",
|
|
2655
2709
|
Z̧: "Z",
|
|
2656
2710
|
z̧: "z"
|
|
2657
|
-
},
|
|
2658
|
-
function
|
|
2659
|
-
return e.replace(
|
|
2711
|
+
}, kt = Object.keys(Ot).join("|"), At = new RegExp(kt, "g");
|
|
2712
|
+
function jt(e) {
|
|
2713
|
+
return e.replace(At, (e) => Ot[e]);
|
|
2660
2714
|
}
|
|
2661
|
-
var
|
|
2715
|
+
var q = {
|
|
2662
2716
|
CASE_SENSITIVE_EQUAL: 7,
|
|
2663
2717
|
EQUAL: 6,
|
|
2664
2718
|
STARTS_WITH: 5,
|
|
@@ -2668,9 +2722,9 @@ var G = {
|
|
|
2668
2722
|
MATCHES: 1,
|
|
2669
2723
|
NO_MATCH: 0
|
|
2670
2724
|
};
|
|
2671
|
-
function
|
|
2672
|
-
if (n ||= {}, n.threshold = n.threshold ??
|
|
2673
|
-
let r =
|
|
2725
|
+
function Mt(e, t, n) {
|
|
2726
|
+
if (n ||= {}, n.threshold = n.threshold ?? q.MATCHES, !n.accessors) {
|
|
2727
|
+
let r = Nt(e, t, n);
|
|
2674
2728
|
return {
|
|
2675
2729
|
rankedValue: e,
|
|
2676
2730
|
rank: r,
|
|
@@ -2679,23 +2733,23 @@ function jt(e, t, n) {
|
|
|
2679
2733
|
passed: r >= n.threshold
|
|
2680
2734
|
};
|
|
2681
2735
|
}
|
|
2682
|
-
let r =
|
|
2736
|
+
let r = Rt(e, n.accessors), i = {
|
|
2683
2737
|
rankedValue: e,
|
|
2684
|
-
rank:
|
|
2738
|
+
rank: q.NO_MATCH,
|
|
2685
2739
|
accessorIndex: -1,
|
|
2686
2740
|
accessorThreshold: n.threshold,
|
|
2687
2741
|
passed: !1
|
|
2688
2742
|
};
|
|
2689
2743
|
for (let e = 0; e < r.length; e++) {
|
|
2690
|
-
let a = r[e], o =
|
|
2691
|
-
o < s && o >=
|
|
2744
|
+
let a = r[e], o = Nt(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
2745
|
+
o < s && o >= q.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);
|
|
2692
2746
|
}
|
|
2693
2747
|
return i;
|
|
2694
2748
|
}
|
|
2695
|
-
function
|
|
2696
|
-
return e =
|
|
2749
|
+
function Nt(e, t, n) {
|
|
2750
|
+
return e = It(e, n), t = It(t, n), t.length > e.length ? q.NO_MATCH : e === t ? q.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? q.EQUAL : e.startsWith(t) ? q.STARTS_WITH : e.includes(` ${t}`) ? q.WORD_STARTS_WITH : e.includes(t) ? q.CONTAINS : t.length === 1 ? q.NO_MATCH : Pt(e).includes(t) ? q.ACRONYM : Ft(e, t));
|
|
2697
2751
|
}
|
|
2698
|
-
function
|
|
2752
|
+
function Pt(e) {
|
|
2699
2753
|
let t = "";
|
|
2700
2754
|
return e.split(" ").forEach((e) => {
|
|
2701
2755
|
e.split("-").forEach((e) => {
|
|
@@ -2703,7 +2757,7 @@ function Nt(e) {
|
|
|
2703
2757
|
});
|
|
2704
2758
|
}), t;
|
|
2705
2759
|
}
|
|
2706
|
-
function
|
|
2760
|
+
function Ft(e, t) {
|
|
2707
2761
|
let n = 0, r = 0;
|
|
2708
2762
|
function i(e, t, r) {
|
|
2709
2763
|
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
@@ -2711,31 +2765,31 @@ function Pt(e, t) {
|
|
|
2711
2765
|
}
|
|
2712
2766
|
function a(e) {
|
|
2713
2767
|
let r = 1 / e, i = n / t.length;
|
|
2714
|
-
return
|
|
2768
|
+
return q.MATCHES + i * r;
|
|
2715
2769
|
}
|
|
2716
2770
|
let o = i(t[0], e, 0);
|
|
2717
|
-
if (o < 0) return
|
|
2771
|
+
if (o < 0) return q.NO_MATCH;
|
|
2718
2772
|
r = o;
|
|
2719
2773
|
for (let n = 1, a = t.length; n < a; n++) {
|
|
2720
2774
|
let a = t[n];
|
|
2721
|
-
if (r = i(a, e, r), !(r > -1)) return
|
|
2775
|
+
if (r = i(a, e, r), !(r > -1)) return q.NO_MATCH;
|
|
2722
2776
|
}
|
|
2723
2777
|
return a(r - o);
|
|
2724
2778
|
}
|
|
2725
|
-
function
|
|
2779
|
+
function It(e, t) {
|
|
2726
2780
|
let { keepDiacritics: n } = t;
|
|
2727
|
-
return e = `${e}`, n || (e =
|
|
2781
|
+
return e = `${e}`, n || (e = jt(e)), e;
|
|
2728
2782
|
}
|
|
2729
|
-
function
|
|
2783
|
+
function Lt(e, t) {
|
|
2730
2784
|
let n = t;
|
|
2731
2785
|
typeof t == "object" && (n = t.accessor);
|
|
2732
2786
|
let r = n(e);
|
|
2733
2787
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
2734
2788
|
}
|
|
2735
|
-
function
|
|
2789
|
+
function Rt(e, t) {
|
|
2736
2790
|
let n = [];
|
|
2737
2791
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
2738
|
-
let i = t[r], a =
|
|
2792
|
+
let i = t[r], a = Bt(i), o = Lt(e, i);
|
|
2739
2793
|
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
2740
2794
|
itemValue: o[e],
|
|
2741
2795
|
attributes: a
|
|
@@ -2743,41 +2797,41 @@ function Lt(e, t) {
|
|
|
2743
2797
|
}
|
|
2744
2798
|
return n;
|
|
2745
2799
|
}
|
|
2746
|
-
var
|
|
2800
|
+
var zt = {
|
|
2747
2801
|
maxRanking: Infinity,
|
|
2748
2802
|
minRanking: -Infinity
|
|
2749
2803
|
};
|
|
2750
|
-
function
|
|
2751
|
-
return typeof e == "function" ?
|
|
2752
|
-
...
|
|
2804
|
+
function Bt(e) {
|
|
2805
|
+
return typeof e == "function" ? zt : {
|
|
2806
|
+
...zt,
|
|
2753
2807
|
...e
|
|
2754
2808
|
};
|
|
2755
2809
|
}
|
|
2756
2810
|
//#endregion
|
|
2757
2811
|
//#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
|
|
2758
|
-
function
|
|
2812
|
+
function J(e) {
|
|
2759
2813
|
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2760
2814
|
}
|
|
2761
|
-
function Bt(e) {
|
|
2762
|
-
let t = K(e);
|
|
2763
|
-
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2764
|
-
}
|
|
2765
2815
|
function Vt(e) {
|
|
2766
|
-
|
|
2816
|
+
let t = J(e);
|
|
2817
|
+
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2767
2818
|
}
|
|
2768
2819
|
function Ht(e) {
|
|
2769
|
-
|
|
2820
|
+
return J(e) === 2 ? 0 : 16777215;
|
|
2821
|
+
}
|
|
2822
|
+
function Ut(e) {
|
|
2823
|
+
let t = J(e);
|
|
2770
2824
|
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
2771
2825
|
}
|
|
2772
|
-
var
|
|
2773
|
-
"Status > Last Updated": (e, t) =>
|
|
2774
|
-
"Query Hash":
|
|
2775
|
-
"Last Updated":
|
|
2776
|
-
},
|
|
2777
|
-
function
|
|
2778
|
-
|
|
2779
|
-
id:
|
|
2780
|
-
label:
|
|
2826
|
+
var Wt = (e, t) => e.queryHash.localeCompare(t.queryHash), Gt = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Kt = {
|
|
2827
|
+
"Status > Last Updated": (e, t) => J(e) === J(t) ? Gt(e, t) : J(e) > J(t) ? 1 : -1,
|
|
2828
|
+
"Query Hash": Wt,
|
|
2829
|
+
"Last Updated": Gt
|
|
2830
|
+
}, Y = "vue-query", qt = "Vue Query";
|
|
2831
|
+
function Jt(e, t) {
|
|
2832
|
+
Dt({
|
|
2833
|
+
id: Y,
|
|
2834
|
+
label: qt,
|
|
2781
2835
|
packageName: "vue-query",
|
|
2782
2836
|
homepage: "https://tanstack.com/query/latest",
|
|
2783
2837
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -2799,11 +2853,11 @@ function qt(e, t) {
|
|
|
2799
2853
|
sortFn: {
|
|
2800
2854
|
type: "choice",
|
|
2801
2855
|
label: "Sort Function",
|
|
2802
|
-
options: Object.keys(
|
|
2856
|
+
options: Object.keys(Kt).map((e) => ({
|
|
2803
2857
|
label: e,
|
|
2804
2858
|
value: e
|
|
2805
2859
|
})),
|
|
2806
|
-
defaultValue: Object.keys(
|
|
2860
|
+
defaultValue: Object.keys(Kt)[0]
|
|
2807
2861
|
},
|
|
2808
2862
|
onlineMode: {
|
|
2809
2863
|
type: "choice",
|
|
@@ -2821,11 +2875,11 @@ function qt(e, t) {
|
|
|
2821
2875
|
}
|
|
2822
2876
|
}, (e) => {
|
|
2823
2877
|
let n = e.getSettings();
|
|
2824
|
-
|
|
2878
|
+
H.setOnline(!!n.onlineMode.valueOf());
|
|
2825
2879
|
let r = t.getQueryCache();
|
|
2826
2880
|
e.addInspector({
|
|
2827
|
-
id:
|
|
2828
|
-
label:
|
|
2881
|
+
id: Y,
|
|
2882
|
+
label: qt,
|
|
2829
2883
|
icon: "api",
|
|
2830
2884
|
nodeActions: [
|
|
2831
2885
|
{
|
|
@@ -2884,16 +2938,16 @@ function qt(e, t) {
|
|
|
2884
2938
|
}
|
|
2885
2939
|
]
|
|
2886
2940
|
}), e.addTimelineLayer({
|
|
2887
|
-
id:
|
|
2888
|
-
label:
|
|
2941
|
+
id: Y,
|
|
2942
|
+
label: qt,
|
|
2889
2943
|
color: 16767308
|
|
2890
2944
|
}), r.subscribe((t) => {
|
|
2891
|
-
e.sendInspectorTree(
|
|
2945
|
+
e.sendInspectorTree(Y), e.sendInspectorState(Y), [
|
|
2892
2946
|
"added",
|
|
2893
2947
|
"removed",
|
|
2894
2948
|
"updated"
|
|
2895
2949
|
].includes(t.type) && e.addTimelineEvent({
|
|
2896
|
-
layerId:
|
|
2950
|
+
layerId: Y,
|
|
2897
2951
|
event: {
|
|
2898
2952
|
title: t.type,
|
|
2899
2953
|
subtitle: t.query.queryHash,
|
|
@@ -2905,25 +2959,25 @@ function qt(e, t) {
|
|
|
2905
2959
|
}
|
|
2906
2960
|
});
|
|
2907
2961
|
}), e.on.setPluginSettings((e) => {
|
|
2908
|
-
e.key === "onlineMode" &&
|
|
2962
|
+
e.key === "onlineMode" && H.setOnline(!!e.newValue);
|
|
2909
2963
|
}), e.on.getInspectorTree((t) => {
|
|
2910
|
-
if (t.inspectorId ===
|
|
2964
|
+
if (t.inspectorId === Y) {
|
|
2911
2965
|
let n = r.getAll(), i = e.getSettings();
|
|
2912
|
-
t.rootNodes = (t.filter ? n.filter((e) =>
|
|
2913
|
-
let t =
|
|
2966
|
+
t.rootNodes = (t.filter ? n.filter((e) => Mt(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Kt[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2967
|
+
let t = Vt(e);
|
|
2914
2968
|
return {
|
|
2915
2969
|
id: e.queryHash,
|
|
2916
2970
|
label: e.queryHash,
|
|
2917
2971
|
tags: [{
|
|
2918
2972
|
label: `${t} [${e.getObserversCount()}]`,
|
|
2919
|
-
textColor:
|
|
2920
|
-
backgroundColor:
|
|
2973
|
+
textColor: Ht(e),
|
|
2974
|
+
backgroundColor: Ut(e)
|
|
2921
2975
|
}]
|
|
2922
2976
|
};
|
|
2923
2977
|
});
|
|
2924
2978
|
}
|
|
2925
2979
|
}), e.on.getInspectorState((e) => {
|
|
2926
|
-
if (e.inspectorId ===
|
|
2980
|
+
if (e.inspectorId === Y) {
|
|
2927
2981
|
let t = r.get(e.nodeId);
|
|
2928
2982
|
if (!t) return;
|
|
2929
2983
|
e.state = {
|
|
@@ -2934,7 +2988,7 @@ function qt(e, t) {
|
|
|
2934
2988
|
},
|
|
2935
2989
|
{
|
|
2936
2990
|
key: "Query status",
|
|
2937
|
-
value:
|
|
2991
|
+
value: Vt(t)
|
|
2938
2992
|
},
|
|
2939
2993
|
{
|
|
2940
2994
|
key: "Observers",
|
|
@@ -2960,9 +3014,9 @@ function qt(e, t) {
|
|
|
2960
3014
|
}
|
|
2961
3015
|
//#endregion
|
|
2962
3016
|
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
2963
|
-
var
|
|
2964
|
-
let n =
|
|
2965
|
-
r = "queryClient" in t && t.queryClient ? t.queryClient : new
|
|
3017
|
+
var Yt = { install: (e, t = {}) => {
|
|
3018
|
+
let n = ct(t.queryClientKey), r;
|
|
3019
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new _t("queryClientConfig" in t ? t.queryClientConfig : void 0), ce || r.mount();
|
|
2966
3020
|
let i = () => {};
|
|
2967
3021
|
if (t.clientPersister) {
|
|
2968
3022
|
r.isRestoring && (r.isRestoring.value = !0);
|
|
@@ -2981,29 +3035,29 @@ var Jt = { install: (e, t = {}) => {
|
|
|
2981
3035
|
a(), t();
|
|
2982
3036
|
};
|
|
2983
3037
|
}
|
|
2984
|
-
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin &&
|
|
3038
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Jt(e, r);
|
|
2985
3039
|
} };
|
|
2986
3040
|
//#endregion
|
|
2987
3041
|
//#region node_modules/@tanstack/vue-query/build/modern/useBaseQuery.js
|
|
2988
|
-
function
|
|
2989
|
-
process.env.NODE_ENV === "development" && ((0,
|
|
2990
|
-
let r = n ||
|
|
3042
|
+
function Xt(e, t, n) {
|
|
3043
|
+
process.env.NODE_ENV === "development" && ((0, W.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."));
|
|
3044
|
+
let r = n || mt(), i = (0, W.computed)(() => {
|
|
2991
3045
|
let e = t;
|
|
2992
3046
|
typeof e == "function" && (e = e());
|
|
2993
|
-
let n =
|
|
3047
|
+
let n = G(e);
|
|
2994
3048
|
typeof n.enabled == "function" && (n.enabled = n.enabled());
|
|
2995
3049
|
let i = r.defaultQueryOptions(n);
|
|
2996
3050
|
return i._optimisticResults = r.isRestoring?.value ? "isRestoring" : "optimistic", i;
|
|
2997
|
-
}), a = new e(r, i.value), o = i.value.shallow ? (0,
|
|
2998
|
-
r.isRestoring && (0,
|
|
3051
|
+
}), a = new e(r, i.value), o = i.value.shallow ? (0, W.shallowReactive)(a.getCurrentResult()) : (0, W.reactive)(a.getCurrentResult()), s = () => {};
|
|
3052
|
+
r.isRestoring && (0, W.watch)(r.isRestoring, (e) => {
|
|
2999
3053
|
e || (s(), s = a.subscribe((e) => {
|
|
3000
|
-
|
|
3054
|
+
lt(o, e);
|
|
3001
3055
|
}));
|
|
3002
3056
|
}, { immediate: !0 });
|
|
3003
3057
|
let c = () => {
|
|
3004
|
-
a.setOptions(i.value),
|
|
3058
|
+
a.setOptions(i.value), lt(o, a.getCurrentResult());
|
|
3005
3059
|
};
|
|
3006
|
-
(0,
|
|
3060
|
+
(0, W.watch)(i, c), (0, W.onScopeDispose)(() => {
|
|
3007
3061
|
s();
|
|
3008
3062
|
});
|
|
3009
3063
|
let l = (...e) => (c(), o.refetch(...e)), u = () => new Promise((e, t) => {
|
|
@@ -3016,39 +3070,39 @@ function Yt(e, t, n) {
|
|
|
3016
3070
|
})) : (n(), e(r));
|
|
3017
3071
|
}
|
|
3018
3072
|
};
|
|
3019
|
-
r(), n = (0,
|
|
3073
|
+
r(), n = (0, W.watch)(i, r);
|
|
3020
3074
|
});
|
|
3021
|
-
(0,
|
|
3075
|
+
(0, W.watch)(() => o.error, (e) => {
|
|
3022
3076
|
if (o.isError && !o.isFetching && Ee(i.value.throwOnError, [e, a.getCurrentQuery()])) throw e;
|
|
3023
3077
|
});
|
|
3024
|
-
let d = (0,
|
|
3078
|
+
let d = (0, W.toRefs)(i.value.shallow ? (0, W.shallowReadonly)(o) : (0, W.readonly)(o));
|
|
3025
3079
|
for (let e in o) typeof o[e] == "function" && (d[e] = o[e]);
|
|
3026
3080
|
return d.suspense = u, d.refetch = l, d;
|
|
3027
3081
|
}
|
|
3028
3082
|
//#endregion
|
|
3029
3083
|
//#region node_modules/@tanstack/vue-query/build/modern/useQuery.js
|
|
3030
|
-
function
|
|
3031
|
-
return
|
|
3084
|
+
function Zt(e, t) {
|
|
3085
|
+
return Xt(We, e, t);
|
|
3032
3086
|
}
|
|
3033
3087
|
//#endregion
|
|
3034
3088
|
//#region node_modules/@tanstack/vue-query/build/modern/useMutation.js
|
|
3035
|
-
function
|
|
3036
|
-
process.env.NODE_ENV === "development" && ((0,
|
|
3037
|
-
let n = t ||
|
|
3089
|
+
function Qt(e, t) {
|
|
3090
|
+
process.env.NODE_ENV === "development" && ((0, W.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."));
|
|
3091
|
+
let n = t || mt(), r = (0, W.computed)(() => {
|
|
3038
3092
|
let t = typeof e == "function" ? e() : e;
|
|
3039
|
-
return n.defaultMutationOptions(
|
|
3040
|
-
}), i = new
|
|
3041
|
-
|
|
3093
|
+
return n.defaultMutationOptions(G(t));
|
|
3094
|
+
}), i = new et(n, r.value), a = r.value.shallow ? (0, W.shallowReactive)(i.getCurrentResult()) : (0, W.reactive)(i.getCurrentResult()), o = i.subscribe((e) => {
|
|
3095
|
+
lt(a, e);
|
|
3042
3096
|
}), s = (e, t) => {
|
|
3043
3097
|
i.mutate(e, t).catch(() => {});
|
|
3044
3098
|
};
|
|
3045
|
-
(0,
|
|
3099
|
+
(0, W.watch)(r, () => {
|
|
3046
3100
|
i.setOptions(r.value);
|
|
3047
|
-
}), (0,
|
|
3101
|
+
}), (0, W.onScopeDispose)(() => {
|
|
3048
3102
|
o();
|
|
3049
3103
|
});
|
|
3050
|
-
let c = (0,
|
|
3051
|
-
return (0,
|
|
3104
|
+
let c = (0, W.toRefs)(r.value.shallow ? (0, W.shallowReadonly)(a) : (0, W.readonly)(a));
|
|
3105
|
+
return (0, W.watch)(() => a.error, (e) => {
|
|
3052
3106
|
if (e && Ee(r.value.throwOnError, [e])) throw e;
|
|
3053
3107
|
}), {
|
|
3054
3108
|
...c,
|
|
@@ -3059,87 +3113,87 @@ function Zt(e, t) {
|
|
|
3059
3113
|
}
|
|
3060
3114
|
//#endregion
|
|
3061
3115
|
//#region src/composables/data/_internal.ts
|
|
3062
|
-
function
|
|
3116
|
+
function X(e) {
|
|
3063
3117
|
return e;
|
|
3064
3118
|
}
|
|
3065
3119
|
//#endregion
|
|
3066
3120
|
//#region src/composables/data/useQuery.ts
|
|
3067
|
-
var
|
|
3121
|
+
var $t = {
|
|
3068
3122
|
retry: !1,
|
|
3069
3123
|
refetchOnMount: !0,
|
|
3070
3124
|
refetchOnReconnect: !1,
|
|
3071
3125
|
refetchOnWindowFocus: !1
|
|
3072
|
-
},
|
|
3073
|
-
function
|
|
3074
|
-
if (e !== void 0) return typeof e == "function" ? e() :
|
|
3126
|
+
}, en = 0;
|
|
3127
|
+
function tn(e) {
|
|
3128
|
+
if (e !== void 0) return typeof e == "function" ? e() : a(e);
|
|
3075
3129
|
}
|
|
3076
|
-
function
|
|
3077
|
-
return
|
|
3130
|
+
function nn() {
|
|
3131
|
+
return en += 1, ["hanap-labs-query", en];
|
|
3078
3132
|
}
|
|
3079
|
-
async function
|
|
3133
|
+
async function rn(e) {
|
|
3080
3134
|
return (await e()).data;
|
|
3081
3135
|
}
|
|
3082
|
-
function
|
|
3136
|
+
function an(e = {}) {
|
|
3083
3137
|
return function(n, r) {
|
|
3084
|
-
let { queryKey:
|
|
3138
|
+
let { queryKey: i, onSuccess: s, onError: c, enabled: l, ...u } = r ?? {}, d = nn(), f = [], p = [];
|
|
3085
3139
|
s !== void 0 && f.push(s), c !== void 0 && p.push(c);
|
|
3086
|
-
let m =
|
|
3087
|
-
queryKey: t(() =>
|
|
3140
|
+
let m = Zt({
|
|
3141
|
+
queryKey: t(() => i === void 0 ? d : typeof i == "function" ? i() : a(i)),
|
|
3088
3142
|
queryFn: (e) => n({
|
|
3089
3143
|
queryKey: e.queryKey,
|
|
3090
3144
|
signal: e.signal
|
|
3091
3145
|
}),
|
|
3092
|
-
enabled: t(() =>
|
|
3093
|
-
|
|
3146
|
+
enabled: t(() => tn(l)),
|
|
3147
|
+
...$t,
|
|
3094
3148
|
...e,
|
|
3095
3149
|
...u
|
|
3096
3150
|
});
|
|
3097
|
-
f.length > 0 &&
|
|
3151
|
+
f.length > 0 && o(() => m.data.value, (e) => {
|
|
3098
3152
|
if (e !== void 0) for (let t of f) t(e);
|
|
3099
|
-
}, { immediate: !1 }), p.length > 0 &&
|
|
3153
|
+
}, { immediate: !1 }), p.length > 0 && o(() => m.error.value, (e) => {
|
|
3100
3154
|
if (e !== null) for (let t of p) t(e);
|
|
3101
3155
|
}, { immediate: !1 });
|
|
3102
|
-
let h = () =>
|
|
3103
|
-
data:
|
|
3104
|
-
error:
|
|
3105
|
-
isError:
|
|
3106
|
-
loading:
|
|
3107
|
-
initializing:
|
|
3108
|
-
isSuccess:
|
|
3156
|
+
let h = () => rn(m.refetch), g = {
|
|
3157
|
+
data: X(m.data),
|
|
3158
|
+
error: X(m.error),
|
|
3159
|
+
isError: X(m.isError),
|
|
3160
|
+
loading: X(m.isFetching),
|
|
3161
|
+
initializing: X(m.isLoading),
|
|
3162
|
+
isSuccess: X(m.isSuccess),
|
|
3109
3163
|
onError: (e) => (p.push(e), g),
|
|
3110
3164
|
refetch: h,
|
|
3111
3165
|
run: h,
|
|
3112
|
-
status:
|
|
3166
|
+
status: X(m.status)
|
|
3113
3167
|
};
|
|
3114
3168
|
return g;
|
|
3115
3169
|
};
|
|
3116
3170
|
}
|
|
3117
|
-
var
|
|
3171
|
+
var on = an();
|
|
3118
3172
|
//#endregion
|
|
3119
3173
|
//#region src/composables/data/queryPlugin.ts
|
|
3120
|
-
function
|
|
3174
|
+
function sn(e = {}) {
|
|
3121
3175
|
return { install(t) {
|
|
3122
|
-
let n = new
|
|
3176
|
+
let n = new _t({ defaultOptions: {
|
|
3123
3177
|
queries: e.queries,
|
|
3124
3178
|
mutations: e.mutations
|
|
3125
3179
|
} });
|
|
3126
|
-
t.use(
|
|
3180
|
+
t.use(Yt, { queryClient: n });
|
|
3127
3181
|
} };
|
|
3128
3182
|
}
|
|
3129
3183
|
//#endregion
|
|
3130
3184
|
//#region src/composables/data/useMutation.ts
|
|
3131
|
-
function
|
|
3185
|
+
function cn(e) {
|
|
3132
3186
|
return e[0];
|
|
3133
3187
|
}
|
|
3134
|
-
function
|
|
3188
|
+
function ln(e, t) {
|
|
3135
3189
|
return e(t);
|
|
3136
3190
|
}
|
|
3137
|
-
function
|
|
3191
|
+
function un(e = {}) {
|
|
3138
3192
|
return function(t, n) {
|
|
3139
3193
|
let { onSuccess: r, onError: i, onMutate: a, onSettled: o, ...s } = n ?? {}, c = [], l = [], u = [], d = [];
|
|
3140
3194
|
r !== void 0 && c.push(r), i !== void 0 && l.push(i), a !== void 0 && u.push(a), o !== void 0 && d.push(o);
|
|
3141
|
-
let f =
|
|
3142
|
-
mutationFn: (e) =>
|
|
3195
|
+
let f = Qt({
|
|
3196
|
+
mutationFn: (e) => ln(t, e),
|
|
3143
3197
|
...e,
|
|
3144
3198
|
...s,
|
|
3145
3199
|
onMutate: async (e, t) => {
|
|
@@ -3157,69 +3211,69 @@ function ln(e = {}) {
|
|
|
3157
3211
|
for (let i of d) await i(e, t, n, r);
|
|
3158
3212
|
}
|
|
3159
3213
|
}), p = {
|
|
3160
|
-
data:
|
|
3161
|
-
error:
|
|
3162
|
-
idle:
|
|
3163
|
-
isError:
|
|
3164
|
-
isSuccess:
|
|
3165
|
-
submitting:
|
|
3214
|
+
data: X(f.data),
|
|
3215
|
+
error: X(f.error),
|
|
3216
|
+
idle: X(f.isIdle),
|
|
3217
|
+
isError: X(f.isError),
|
|
3218
|
+
isSuccess: X(f.isSuccess),
|
|
3219
|
+
submitting: X(f.isPending),
|
|
3166
3220
|
onError: (e) => (l.push(e), p),
|
|
3167
3221
|
onMutate: (e) => (u.push(e), p),
|
|
3168
3222
|
onSettled: (e) => (d.push(e), p),
|
|
3169
3223
|
onSuccess: (e) => (c.push(e), p),
|
|
3170
3224
|
reset: f.reset,
|
|
3171
|
-
run: (...e) => f.mutateAsync(
|
|
3172
|
-
status:
|
|
3225
|
+
run: (...e) => f.mutateAsync(cn(e)),
|
|
3226
|
+
status: X(f.status)
|
|
3173
3227
|
};
|
|
3174
3228
|
return p;
|
|
3175
3229
|
};
|
|
3176
3230
|
}
|
|
3177
|
-
var
|
|
3231
|
+
var dn = un(), fn = /* @__PURE__ */ p(((e, t) => {
|
|
3178
3232
|
function n() {
|
|
3179
3233
|
this.__data__ = [], this.size = 0;
|
|
3180
3234
|
}
|
|
3181
3235
|
t.exports = n;
|
|
3182
|
-
})),
|
|
3236
|
+
})), pn = /* @__PURE__ */ p(((e, t) => {
|
|
3183
3237
|
function n(e, t) {
|
|
3184
3238
|
return e === t || e !== e && t !== t;
|
|
3185
3239
|
}
|
|
3186
3240
|
t.exports = n;
|
|
3187
|
-
})),
|
|
3188
|
-
var n =
|
|
3241
|
+
})), mn = /* @__PURE__ */ p(((e, t) => {
|
|
3242
|
+
var n = pn();
|
|
3189
3243
|
function r(e, t) {
|
|
3190
3244
|
for (var r = e.length; r--;) if (n(e[r][0], t)) return r;
|
|
3191
3245
|
return -1;
|
|
3192
3246
|
}
|
|
3193
3247
|
t.exports = r;
|
|
3194
|
-
})),
|
|
3195
|
-
var n =
|
|
3248
|
+
})), hn = /* @__PURE__ */ p(((e, t) => {
|
|
3249
|
+
var n = mn(), r = Array.prototype.splice;
|
|
3196
3250
|
function i(e) {
|
|
3197
3251
|
var t = this.__data__, i = n(t, e);
|
|
3198
3252
|
return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
|
|
3199
3253
|
}
|
|
3200
3254
|
t.exports = i;
|
|
3201
|
-
})),
|
|
3202
|
-
var n =
|
|
3255
|
+
})), gn = /* @__PURE__ */ p(((e, t) => {
|
|
3256
|
+
var n = mn();
|
|
3203
3257
|
function r(e) {
|
|
3204
3258
|
var t = this.__data__, r = n(t, e);
|
|
3205
3259
|
return r < 0 ? void 0 : t[r][1];
|
|
3206
3260
|
}
|
|
3207
3261
|
t.exports = r;
|
|
3208
|
-
})),
|
|
3209
|
-
var n =
|
|
3262
|
+
})), _n = /* @__PURE__ */ p(((e, t) => {
|
|
3263
|
+
var n = mn();
|
|
3210
3264
|
function r(e) {
|
|
3211
3265
|
return n(this.__data__, e) > -1;
|
|
3212
3266
|
}
|
|
3213
3267
|
t.exports = r;
|
|
3214
|
-
})),
|
|
3215
|
-
var n =
|
|
3268
|
+
})), vn = /* @__PURE__ */ p(((e, t) => {
|
|
3269
|
+
var n = mn();
|
|
3216
3270
|
function r(e, t) {
|
|
3217
3271
|
var r = this.__data__, i = n(r, e);
|
|
3218
3272
|
return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
|
|
3219
3273
|
}
|
|
3220
3274
|
t.exports = r;
|
|
3221
|
-
})),
|
|
3222
|
-
var n =
|
|
3275
|
+
})), yn = /* @__PURE__ */ p(((e, t) => {
|
|
3276
|
+
var n = fn(), r = hn(), i = gn(), a = _n(), o = vn();
|
|
3223
3277
|
function s(e) {
|
|
3224
3278
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3225
3279
|
for (this.clear(); ++t < n;) {
|
|
@@ -3228,37 +3282,37 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3228
3282
|
}
|
|
3229
3283
|
}
|
|
3230
3284
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3231
|
-
})),
|
|
3232
|
-
var n =
|
|
3285
|
+
})), bn = /* @__PURE__ */ p(((e, t) => {
|
|
3286
|
+
var n = yn();
|
|
3233
3287
|
function r() {
|
|
3234
3288
|
this.__data__ = new n(), this.size = 0;
|
|
3235
3289
|
}
|
|
3236
3290
|
t.exports = r;
|
|
3237
|
-
})),
|
|
3291
|
+
})), xn = /* @__PURE__ */ p(((e, t) => {
|
|
3238
3292
|
function n(e) {
|
|
3239
3293
|
var t = this.__data__, n = t.delete(e);
|
|
3240
3294
|
return this.size = t.size, n;
|
|
3241
3295
|
}
|
|
3242
3296
|
t.exports = n;
|
|
3243
|
-
})),
|
|
3297
|
+
})), Sn = /* @__PURE__ */ p(((e, t) => {
|
|
3244
3298
|
function n(e) {
|
|
3245
3299
|
return this.__data__.get(e);
|
|
3246
3300
|
}
|
|
3247
3301
|
t.exports = n;
|
|
3248
|
-
})),
|
|
3302
|
+
})), Cn = /* @__PURE__ */ p(((e, t) => {
|
|
3249
3303
|
function n(e) {
|
|
3250
3304
|
return this.__data__.has(e);
|
|
3251
3305
|
}
|
|
3252
3306
|
t.exports = n;
|
|
3253
|
-
})),
|
|
3307
|
+
})), wn = /* @__PURE__ */ p(((e, t) => {
|
|
3254
3308
|
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
3255
|
-
})),
|
|
3256
|
-
var n =
|
|
3309
|
+
})), Z = /* @__PURE__ */ p(((e, t) => {
|
|
3310
|
+
var n = wn(), r = typeof self == "object" && self && self.Object === Object && self;
|
|
3257
3311
|
t.exports = n || r || Function("return this")();
|
|
3258
|
-
})),
|
|
3259
|
-
t.exports =
|
|
3260
|
-
})),
|
|
3261
|
-
var n =
|
|
3312
|
+
})), Tn = /* @__PURE__ */ p(((e, t) => {
|
|
3313
|
+
t.exports = Z().Symbol;
|
|
3314
|
+
})), En = /* @__PURE__ */ p(((e, t) => {
|
|
3315
|
+
var n = Tn(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
|
|
3262
3316
|
function s(e) {
|
|
3263
3317
|
var t = i.call(e, o), n = e[o];
|
|
3264
3318
|
try {
|
|
@@ -3269,36 +3323,36 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3269
3323
|
return r && (t ? e[o] = n : delete e[o]), s;
|
|
3270
3324
|
}
|
|
3271
3325
|
t.exports = s;
|
|
3272
|
-
})),
|
|
3326
|
+
})), Dn = /* @__PURE__ */ p(((e, t) => {
|
|
3273
3327
|
var n = Object.prototype.toString;
|
|
3274
3328
|
function r(e) {
|
|
3275
3329
|
return n.call(e);
|
|
3276
3330
|
}
|
|
3277
3331
|
t.exports = r;
|
|
3278
|
-
})),
|
|
3279
|
-
var n =
|
|
3332
|
+
})), On = /* @__PURE__ */ p(((e, t) => {
|
|
3333
|
+
var n = Tn(), r = En(), i = Dn(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
|
|
3280
3334
|
function c(e) {
|
|
3281
3335
|
return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
|
|
3282
3336
|
}
|
|
3283
3337
|
t.exports = c;
|
|
3284
|
-
})),
|
|
3338
|
+
})), kn = /* @__PURE__ */ p(((e, t) => {
|
|
3285
3339
|
function n(e) {
|
|
3286
3340
|
var t = typeof e;
|
|
3287
3341
|
return e != null && (t == "object" || t == "function");
|
|
3288
3342
|
}
|
|
3289
3343
|
t.exports = n;
|
|
3290
|
-
})),
|
|
3291
|
-
var n =
|
|
3344
|
+
})), An = /* @__PURE__ */ p(((e, t) => {
|
|
3345
|
+
var n = On(), r = kn(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
|
|
3292
3346
|
function c(e) {
|
|
3293
3347
|
if (!r(e)) return !1;
|
|
3294
3348
|
var t = n(e);
|
|
3295
3349
|
return t == a || t == o || t == i || t == s;
|
|
3296
3350
|
}
|
|
3297
3351
|
t.exports = c;
|
|
3298
|
-
})),
|
|
3299
|
-
t.exports =
|
|
3300
|
-
})),
|
|
3301
|
-
var n =
|
|
3352
|
+
})), jn = /* @__PURE__ */ p(((e, t) => {
|
|
3353
|
+
t.exports = Z()["__core-js_shared__"];
|
|
3354
|
+
})), Mn = /* @__PURE__ */ p(((e, t) => {
|
|
3355
|
+
var n = jn(), r = function() {
|
|
3302
3356
|
var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
|
|
3303
3357
|
return e ? "Symbol(src)_1." + e : "";
|
|
3304
3358
|
}();
|
|
@@ -3306,7 +3360,7 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3306
3360
|
return !!r && r in e;
|
|
3307
3361
|
}
|
|
3308
3362
|
t.exports = i;
|
|
3309
|
-
})),
|
|
3363
|
+
})), Nn = /* @__PURE__ */ p(((e, t) => {
|
|
3310
3364
|
var n = Function.prototype.toString;
|
|
3311
3365
|
function r(e) {
|
|
3312
3366
|
if (e != null) {
|
|
@@ -3320,42 +3374,42 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3320
3374
|
return "";
|
|
3321
3375
|
}
|
|
3322
3376
|
t.exports = r;
|
|
3323
|
-
})),
|
|
3324
|
-
var n =
|
|
3377
|
+
})), Pn = /* @__PURE__ */ p(((e, t) => {
|
|
3378
|
+
var n = An(), r = Mn(), i = kn(), a = Nn(), 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.*?") + "$");
|
|
3325
3379
|
function p(e) {
|
|
3326
3380
|
return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
|
|
3327
3381
|
}
|
|
3328
3382
|
t.exports = p;
|
|
3329
|
-
})),
|
|
3383
|
+
})), Fn = /* @__PURE__ */ p(((e, t) => {
|
|
3330
3384
|
function n(e, t) {
|
|
3331
3385
|
return e?.[t];
|
|
3332
3386
|
}
|
|
3333
3387
|
t.exports = n;
|
|
3334
|
-
})),
|
|
3335
|
-
var n =
|
|
3388
|
+
})), Q = /* @__PURE__ */ p(((e, t) => {
|
|
3389
|
+
var n = Pn(), r = Fn();
|
|
3336
3390
|
function i(e, t) {
|
|
3337
3391
|
var i = r(e, t);
|
|
3338
3392
|
return n(i) ? i : void 0;
|
|
3339
3393
|
}
|
|
3340
3394
|
t.exports = i;
|
|
3341
|
-
})),
|
|
3342
|
-
t.exports =
|
|
3343
|
-
})),
|
|
3344
|
-
t.exports =
|
|
3345
|
-
})),
|
|
3346
|
-
var n =
|
|
3395
|
+
})), In = /* @__PURE__ */ p(((e, t) => {
|
|
3396
|
+
t.exports = Q()(Z(), "Map");
|
|
3397
|
+
})), $ = /* @__PURE__ */ p(((e, t) => {
|
|
3398
|
+
t.exports = Q()(Object, "create");
|
|
3399
|
+
})), Ln = /* @__PURE__ */ p(((e, t) => {
|
|
3400
|
+
var n = $();
|
|
3347
3401
|
function r() {
|
|
3348
3402
|
this.__data__ = n ? n(null) : {}, this.size = 0;
|
|
3349
3403
|
}
|
|
3350
3404
|
t.exports = r;
|
|
3351
|
-
})),
|
|
3405
|
+
})), Rn = /* @__PURE__ */ p(((e, t) => {
|
|
3352
3406
|
function n(e) {
|
|
3353
3407
|
var t = this.has(e) && delete this.__data__[e];
|
|
3354
3408
|
return this.size -= +!!t, t;
|
|
3355
3409
|
}
|
|
3356
3410
|
t.exports = n;
|
|
3357
|
-
})),
|
|
3358
|
-
var n =
|
|
3411
|
+
})), zn = /* @__PURE__ */ p(((e, t) => {
|
|
3412
|
+
var n = $(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
|
|
3359
3413
|
function a(e) {
|
|
3360
3414
|
var t = this.__data__;
|
|
3361
3415
|
if (n) {
|
|
@@ -3365,22 +3419,22 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3365
3419
|
return i.call(t, e) ? t[e] : void 0;
|
|
3366
3420
|
}
|
|
3367
3421
|
t.exports = a;
|
|
3368
|
-
})),
|
|
3369
|
-
var n =
|
|
3422
|
+
})), Bn = /* @__PURE__ */ p(((e, t) => {
|
|
3423
|
+
var n = $(), r = Object.prototype.hasOwnProperty;
|
|
3370
3424
|
function i(e) {
|
|
3371
3425
|
var t = this.__data__;
|
|
3372
3426
|
return n ? t[e] !== void 0 : r.call(t, e);
|
|
3373
3427
|
}
|
|
3374
3428
|
t.exports = i;
|
|
3375
|
-
})),
|
|
3376
|
-
var n =
|
|
3429
|
+
})), Vn = /* @__PURE__ */ p(((e, t) => {
|
|
3430
|
+
var n = $(), r = "__lodash_hash_undefined__";
|
|
3377
3431
|
function i(e, t) {
|
|
3378
3432
|
var i = this.__data__;
|
|
3379
3433
|
return this.size += +!this.has(e), i[e] = n && t === void 0 ? r : t, this;
|
|
3380
3434
|
}
|
|
3381
3435
|
t.exports = i;
|
|
3382
|
-
})),
|
|
3383
|
-
var n =
|
|
3436
|
+
})), Hn = /* @__PURE__ */ p(((e, t) => {
|
|
3437
|
+
var n = Ln(), r = Rn(), i = zn(), a = Bn(), o = Vn();
|
|
3384
3438
|
function s(e) {
|
|
3385
3439
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3386
3440
|
for (this.clear(); ++t < n;) {
|
|
@@ -3389,8 +3443,8 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3389
3443
|
}
|
|
3390
3444
|
}
|
|
3391
3445
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3392
|
-
})),
|
|
3393
|
-
var n =
|
|
3446
|
+
})), Un = /* @__PURE__ */ p(((e, t) => {
|
|
3447
|
+
var n = Hn(), r = yn(), i = In();
|
|
3394
3448
|
function a() {
|
|
3395
3449
|
this.size = 0, this.__data__ = {
|
|
3396
3450
|
hash: new n(),
|
|
@@ -3399,47 +3453,47 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3399
3453
|
};
|
|
3400
3454
|
}
|
|
3401
3455
|
t.exports = a;
|
|
3402
|
-
})),
|
|
3456
|
+
})), Wn = /* @__PURE__ */ p(((e, t) => {
|
|
3403
3457
|
function n(e) {
|
|
3404
3458
|
var t = typeof e;
|
|
3405
3459
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3406
3460
|
}
|
|
3407
3461
|
t.exports = n;
|
|
3408
|
-
})),
|
|
3409
|
-
var n =
|
|
3462
|
+
})), Gn = /* @__PURE__ */ p(((e, t) => {
|
|
3463
|
+
var n = Wn();
|
|
3410
3464
|
function r(e, t) {
|
|
3411
3465
|
var r = e.__data__;
|
|
3412
3466
|
return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
3413
3467
|
}
|
|
3414
3468
|
t.exports = r;
|
|
3415
|
-
})),
|
|
3416
|
-
var n =
|
|
3469
|
+
})), Kn = /* @__PURE__ */ p(((e, t) => {
|
|
3470
|
+
var n = Gn();
|
|
3417
3471
|
function r(e) {
|
|
3418
3472
|
var t = n(this, e).delete(e);
|
|
3419
3473
|
return this.size -= +!!t, t;
|
|
3420
3474
|
}
|
|
3421
3475
|
t.exports = r;
|
|
3422
|
-
})),
|
|
3423
|
-
var n =
|
|
3476
|
+
})), qn = /* @__PURE__ */ p(((e, t) => {
|
|
3477
|
+
var n = Gn();
|
|
3424
3478
|
function r(e) {
|
|
3425
3479
|
return n(this, e).get(e);
|
|
3426
3480
|
}
|
|
3427
3481
|
t.exports = r;
|
|
3428
|
-
})),
|
|
3429
|
-
var n =
|
|
3482
|
+
})), Jn = /* @__PURE__ */ p(((e, t) => {
|
|
3483
|
+
var n = Gn();
|
|
3430
3484
|
function r(e) {
|
|
3431
3485
|
return n(this, e).has(e);
|
|
3432
3486
|
}
|
|
3433
3487
|
t.exports = r;
|
|
3434
|
-
})),
|
|
3435
|
-
var n =
|
|
3488
|
+
})), Yn = /* @__PURE__ */ p(((e, t) => {
|
|
3489
|
+
var n = Gn();
|
|
3436
3490
|
function r(e, t) {
|
|
3437
3491
|
var r = n(this, e), i = r.size;
|
|
3438
3492
|
return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
|
|
3439
3493
|
}
|
|
3440
3494
|
t.exports = r;
|
|
3441
|
-
})),
|
|
3442
|
-
var n =
|
|
3495
|
+
})), Xn = /* @__PURE__ */ p(((e, t) => {
|
|
3496
|
+
var n = Un(), r = Kn(), i = qn(), a = Jn(), o = Yn();
|
|
3443
3497
|
function s(e) {
|
|
3444
3498
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3445
3499
|
for (this.clear(); ++t < n;) {
|
|
@@ -3448,8 +3502,8 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3448
3502
|
}
|
|
3449
3503
|
}
|
|
3450
3504
|
s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
|
|
3451
|
-
})),
|
|
3452
|
-
var n =
|
|
3505
|
+
})), Zn = /* @__PURE__ */ p(((e, t) => {
|
|
3506
|
+
var n = yn(), r = In(), i = Xn(), a = 200;
|
|
3453
3507
|
function o(e, t) {
|
|
3454
3508
|
var o = this.__data__;
|
|
3455
3509
|
if (o instanceof n) {
|
|
@@ -3460,44 +3514,44 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3460
3514
|
return o.set(e, t), this.size = o.size, this;
|
|
3461
3515
|
}
|
|
3462
3516
|
t.exports = o;
|
|
3463
|
-
})),
|
|
3464
|
-
var n =
|
|
3517
|
+
})), Qn = /* @__PURE__ */ p(((e, t) => {
|
|
3518
|
+
var n = yn(), r = bn(), i = xn(), a = Sn(), o = Cn(), s = Zn();
|
|
3465
3519
|
function c(e) {
|
|
3466
3520
|
var t = this.__data__ = new n(e);
|
|
3467
3521
|
this.size = t.size;
|
|
3468
3522
|
}
|
|
3469
3523
|
c.prototype.clear = r, c.prototype.delete = i, c.prototype.get = a, c.prototype.has = o, c.prototype.set = s, t.exports = c;
|
|
3470
|
-
})),
|
|
3524
|
+
})), $n = /* @__PURE__ */ p(((e, t) => {
|
|
3471
3525
|
var n = "__lodash_hash_undefined__";
|
|
3472
3526
|
function r(e) {
|
|
3473
3527
|
return this.__data__.set(e, n), this;
|
|
3474
3528
|
}
|
|
3475
3529
|
t.exports = r;
|
|
3476
|
-
})),
|
|
3530
|
+
})), er = /* @__PURE__ */ p(((e, t) => {
|
|
3477
3531
|
function n(e) {
|
|
3478
3532
|
return this.__data__.has(e);
|
|
3479
3533
|
}
|
|
3480
3534
|
t.exports = n;
|
|
3481
|
-
})),
|
|
3482
|
-
var n =
|
|
3535
|
+
})), tr = /* @__PURE__ */ p(((e, t) => {
|
|
3536
|
+
var n = Xn(), r = $n(), i = er();
|
|
3483
3537
|
function a(e) {
|
|
3484
3538
|
var t = -1, r = e == null ? 0 : e.length;
|
|
3485
3539
|
for (this.__data__ = new n(); ++t < r;) this.add(e[t]);
|
|
3486
3540
|
}
|
|
3487
3541
|
a.prototype.add = a.prototype.push = r, a.prototype.has = i, t.exports = a;
|
|
3488
|
-
})),
|
|
3542
|
+
})), nr = /* @__PURE__ */ p(((e, t) => {
|
|
3489
3543
|
function n(e, t) {
|
|
3490
3544
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
|
|
3491
3545
|
return !1;
|
|
3492
3546
|
}
|
|
3493
3547
|
t.exports = n;
|
|
3494
|
-
})),
|
|
3548
|
+
})), rr = /* @__PURE__ */ p(((e, t) => {
|
|
3495
3549
|
function n(e, t) {
|
|
3496
3550
|
return e.has(t);
|
|
3497
3551
|
}
|
|
3498
3552
|
t.exports = n;
|
|
3499
|
-
})),
|
|
3500
|
-
var n =
|
|
3553
|
+
})), ir = /* @__PURE__ */ p(((e, t) => {
|
|
3554
|
+
var n = tr(), r = nr(), i = rr(), a = 1, o = 2;
|
|
3501
3555
|
function s(e, t, s, c, l, u) {
|
|
3502
3556
|
var d = s & a, f = e.length, p = t.length;
|
|
3503
3557
|
if (f != p && !(d && p > f)) return !1;
|
|
@@ -3527,9 +3581,9 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3527
3581
|
return u.delete(e), u.delete(t), _;
|
|
3528
3582
|
}
|
|
3529
3583
|
t.exports = s;
|
|
3530
|
-
})),
|
|
3531
|
-
t.exports =
|
|
3532
|
-
})),
|
|
3584
|
+
})), ar = /* @__PURE__ */ p(((e, t) => {
|
|
3585
|
+
t.exports = Z().Uint8Array;
|
|
3586
|
+
})), or = /* @__PURE__ */ p(((e, t) => {
|
|
3533
3587
|
function n(e) {
|
|
3534
3588
|
var t = -1, n = Array(e.size);
|
|
3535
3589
|
return e.forEach(function(e, r) {
|
|
@@ -3537,7 +3591,7 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3537
3591
|
}), n;
|
|
3538
3592
|
}
|
|
3539
3593
|
t.exports = n;
|
|
3540
|
-
})),
|
|
3594
|
+
})), sr = /* @__PURE__ */ p(((e, t) => {
|
|
3541
3595
|
function n(e) {
|
|
3542
3596
|
var t = -1, n = Array(e.size);
|
|
3543
3597
|
return e.forEach(function(e) {
|
|
@@ -3545,8 +3599,8 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3545
3599
|
}), n;
|
|
3546
3600
|
}
|
|
3547
3601
|
t.exports = n;
|
|
3548
|
-
})),
|
|
3549
|
-
var n =
|
|
3602
|
+
})), cr = /* @__PURE__ */ p(((e, t) => {
|
|
3603
|
+
var n = Tn(), r = ar(), i = pn(), a = ir(), o = or(), s = sr(), 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;
|
|
3550
3604
|
function C(e, t, n, x, C, w, T) {
|
|
3551
3605
|
switch (n) {
|
|
3552
3606
|
case b:
|
|
@@ -3573,22 +3627,22 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3573
3627
|
return !1;
|
|
3574
3628
|
}
|
|
3575
3629
|
t.exports = C;
|
|
3576
|
-
})),
|
|
3630
|
+
})), lr = /* @__PURE__ */ p(((e, t) => {
|
|
3577
3631
|
function n(e, t) {
|
|
3578
3632
|
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
|
|
3579
3633
|
return e;
|
|
3580
3634
|
}
|
|
3581
3635
|
t.exports = n;
|
|
3582
|
-
})),
|
|
3636
|
+
})), ur = /* @__PURE__ */ p(((e, t) => {
|
|
3583
3637
|
t.exports = Array.isArray;
|
|
3584
|
-
})),
|
|
3585
|
-
var n =
|
|
3638
|
+
})), dr = /* @__PURE__ */ p(((e, t) => {
|
|
3639
|
+
var n = lr(), r = ur();
|
|
3586
3640
|
function i(e, t, i) {
|
|
3587
3641
|
var a = t(e);
|
|
3588
3642
|
return r(e) ? a : n(a, i(e));
|
|
3589
3643
|
}
|
|
3590
3644
|
t.exports = i;
|
|
3591
|
-
})),
|
|
3645
|
+
})), fr = /* @__PURE__ */ p(((e, t) => {
|
|
3592
3646
|
function n(e, t) {
|
|
3593
3647
|
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
|
|
3594
3648
|
var o = e[n];
|
|
@@ -3597,113 +3651,113 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3597
3651
|
return a;
|
|
3598
3652
|
}
|
|
3599
3653
|
t.exports = n;
|
|
3600
|
-
})),
|
|
3654
|
+
})), pr = /* @__PURE__ */ p(((e, t) => {
|
|
3601
3655
|
function n() {
|
|
3602
3656
|
return [];
|
|
3603
3657
|
}
|
|
3604
3658
|
t.exports = n;
|
|
3605
|
-
})),
|
|
3606
|
-
var n =
|
|
3659
|
+
})), mr = /* @__PURE__ */ p(((e, t) => {
|
|
3660
|
+
var n = fr(), r = pr(), i = Object.prototype.propertyIsEnumerable, a = Object.getOwnPropertySymbols;
|
|
3607
3661
|
t.exports = a ? function(e) {
|
|
3608
3662
|
return e == null ? [] : (e = Object(e), n(a(e), function(t) {
|
|
3609
3663
|
return i.call(e, t);
|
|
3610
3664
|
}));
|
|
3611
3665
|
} : r;
|
|
3612
|
-
})),
|
|
3666
|
+
})), hr = /* @__PURE__ */ p(((e, t) => {
|
|
3613
3667
|
function n(e, t) {
|
|
3614
3668
|
for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
|
|
3615
3669
|
return r;
|
|
3616
3670
|
}
|
|
3617
3671
|
t.exports = n;
|
|
3618
|
-
})),
|
|
3672
|
+
})), gr = /* @__PURE__ */ p(((e, t) => {
|
|
3619
3673
|
function n(e) {
|
|
3620
3674
|
return typeof e == "object" && !!e;
|
|
3621
3675
|
}
|
|
3622
3676
|
t.exports = n;
|
|
3623
|
-
})),
|
|
3624
|
-
var n =
|
|
3677
|
+
})), _r = /* @__PURE__ */ p(((e, t) => {
|
|
3678
|
+
var n = On(), r = gr(), i = "[object Arguments]";
|
|
3625
3679
|
function a(e) {
|
|
3626
3680
|
return r(e) && n(e) == i;
|
|
3627
3681
|
}
|
|
3628
3682
|
t.exports = a;
|
|
3629
|
-
})),
|
|
3630
|
-
var n =
|
|
3683
|
+
})), vr = /* @__PURE__ */ p(((e, t) => {
|
|
3684
|
+
var n = _r(), r = gr(), i = Object.prototype, a = i.hasOwnProperty, o = i.propertyIsEnumerable;
|
|
3631
3685
|
t.exports = n(function() {
|
|
3632
3686
|
return arguments;
|
|
3633
3687
|
}()) ? n : function(e) {
|
|
3634
3688
|
return r(e) && a.call(e, "callee") && !o.call(e, "callee");
|
|
3635
3689
|
};
|
|
3636
|
-
})),
|
|
3690
|
+
})), yr = /* @__PURE__ */ p(((e, t) => {
|
|
3637
3691
|
function n() {
|
|
3638
3692
|
return !1;
|
|
3639
3693
|
}
|
|
3640
3694
|
t.exports = n;
|
|
3641
|
-
})),
|
|
3642
|
-
var n =
|
|
3695
|
+
})), br = /* @__PURE__ */ p(((e, t) => {
|
|
3696
|
+
var n = Z(), r = yr(), 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;
|
|
3643
3697
|
t.exports = (o ? o.isBuffer : void 0) || r;
|
|
3644
|
-
})),
|
|
3698
|
+
})), xr = /* @__PURE__ */ p(((e, t) => {
|
|
3645
3699
|
var n = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
|
|
3646
3700
|
function i(e, t) {
|
|
3647
3701
|
var i = typeof e;
|
|
3648
3702
|
return t ??= n, !!t && (i == "number" || i != "symbol" && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
3649
3703
|
}
|
|
3650
3704
|
t.exports = i;
|
|
3651
|
-
})),
|
|
3705
|
+
})), Sr = /* @__PURE__ */ p(((e, t) => {
|
|
3652
3706
|
var n = 9007199254740991;
|
|
3653
3707
|
function r(e) {
|
|
3654
3708
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= n;
|
|
3655
3709
|
}
|
|
3656
3710
|
t.exports = r;
|
|
3657
|
-
})),
|
|
3658
|
-
var n =
|
|
3711
|
+
})), Cr = /* @__PURE__ */ p(((e, t) => {
|
|
3712
|
+
var n = On(), r = Sr(), i = gr(), 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 = {};
|
|
3659
3713
|
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;
|
|
3660
|
-
function
|
|
3714
|
+
function A(e) {
|
|
3661
3715
|
return i(e) && r(e.length) && !!k[n(e)];
|
|
3662
3716
|
}
|
|
3663
|
-
t.exports =
|
|
3664
|
-
})),
|
|
3717
|
+
t.exports = A;
|
|
3718
|
+
})), wr = /* @__PURE__ */ p(((e, t) => {
|
|
3665
3719
|
function n(e) {
|
|
3666
3720
|
return function(t) {
|
|
3667
3721
|
return e(t);
|
|
3668
3722
|
};
|
|
3669
3723
|
}
|
|
3670
3724
|
t.exports = n;
|
|
3671
|
-
})),
|
|
3672
|
-
var n =
|
|
3725
|
+
})), Tr = /* @__PURE__ */ p(((e, t) => {
|
|
3726
|
+
var n = wn(), r = typeof e == "object" && e && !e.nodeType && e, i = r && typeof t == "object" && t && !t.nodeType && t, a = i && i.exports === r && n.process;
|
|
3673
3727
|
t.exports = function() {
|
|
3674
3728
|
try {
|
|
3675
3729
|
return i && i.require && i.require("util").types || a && a.binding && a.binding("util");
|
|
3676
3730
|
} catch {}
|
|
3677
3731
|
}();
|
|
3678
|
-
})),
|
|
3679
|
-
var n =
|
|
3732
|
+
})), Er = /* @__PURE__ */ p(((e, t) => {
|
|
3733
|
+
var n = Cr(), r = wr(), i = Tr(), a = i && i.isTypedArray;
|
|
3680
3734
|
t.exports = a ? r(a) : n;
|
|
3681
|
-
})),
|
|
3682
|
-
var n =
|
|
3735
|
+
})), Dr = /* @__PURE__ */ p(((e, t) => {
|
|
3736
|
+
var n = hr(), r = vr(), i = ur(), a = br(), o = xr(), s = Er(), c = Object.prototype.hasOwnProperty;
|
|
3683
3737
|
function l(e, t) {
|
|
3684
3738
|
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;
|
|
3685
3739
|
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);
|
|
3686
3740
|
return m;
|
|
3687
3741
|
}
|
|
3688
3742
|
t.exports = l;
|
|
3689
|
-
})),
|
|
3743
|
+
})), Or = /* @__PURE__ */ p(((e, t) => {
|
|
3690
3744
|
var n = Object.prototype;
|
|
3691
3745
|
function r(e) {
|
|
3692
3746
|
var t = e && e.constructor;
|
|
3693
3747
|
return e === (typeof t == "function" && t.prototype || n);
|
|
3694
3748
|
}
|
|
3695
3749
|
t.exports = r;
|
|
3696
|
-
})),
|
|
3750
|
+
})), kr = /* @__PURE__ */ p(((e, t) => {
|
|
3697
3751
|
function n(e, t) {
|
|
3698
3752
|
return function(n) {
|
|
3699
3753
|
return e(t(n));
|
|
3700
3754
|
};
|
|
3701
3755
|
}
|
|
3702
3756
|
t.exports = n;
|
|
3703
|
-
})),
|
|
3704
|
-
t.exports =
|
|
3705
|
-
})),
|
|
3706
|
-
var n =
|
|
3757
|
+
})), Ar = /* @__PURE__ */ p(((e, t) => {
|
|
3758
|
+
t.exports = kr()(Object.keys, Object);
|
|
3759
|
+
})), jr = /* @__PURE__ */ p(((e, t) => {
|
|
3760
|
+
var n = Or(), r = Ar(), i = Object.prototype.hasOwnProperty;
|
|
3707
3761
|
function a(e) {
|
|
3708
3762
|
if (!n(e)) return r(e);
|
|
3709
3763
|
var t = [];
|
|
@@ -3711,26 +3765,26 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3711
3765
|
return t;
|
|
3712
3766
|
}
|
|
3713
3767
|
t.exports = a;
|
|
3714
|
-
})),
|
|
3715
|
-
var n =
|
|
3768
|
+
})), Mr = /* @__PURE__ */ p(((e, t) => {
|
|
3769
|
+
var n = An(), r = Sr();
|
|
3716
3770
|
function i(e) {
|
|
3717
3771
|
return e != null && r(e.length) && !n(e);
|
|
3718
3772
|
}
|
|
3719
3773
|
t.exports = i;
|
|
3720
|
-
})),
|
|
3721
|
-
var n =
|
|
3774
|
+
})), Nr = /* @__PURE__ */ p(((e, t) => {
|
|
3775
|
+
var n = Dr(), r = jr(), i = Mr();
|
|
3722
3776
|
function a(e) {
|
|
3723
3777
|
return i(e) ? n(e) : r(e);
|
|
3724
3778
|
}
|
|
3725
3779
|
t.exports = a;
|
|
3726
|
-
})),
|
|
3727
|
-
var n =
|
|
3780
|
+
})), Pr = /* @__PURE__ */ p(((e, t) => {
|
|
3781
|
+
var n = dr(), r = mr(), i = Nr();
|
|
3728
3782
|
function a(e) {
|
|
3729
3783
|
return n(e, i, r);
|
|
3730
3784
|
}
|
|
3731
3785
|
t.exports = a;
|
|
3732
|
-
})),
|
|
3733
|
-
var n =
|
|
3786
|
+
})), Fr = /* @__PURE__ */ p(((e, t) => {
|
|
3787
|
+
var n = Pr(), r = 1, i = Object.prototype.hasOwnProperty;
|
|
3734
3788
|
function a(e, t, a, o, s, c) {
|
|
3735
3789
|
var l = a & r, u = n(e), d = u.length;
|
|
3736
3790
|
if (d != n(t).length && !l) return !1;
|
|
@@ -3759,16 +3813,16 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3759
3813
|
return c.delete(e), c.delete(t), g;
|
|
3760
3814
|
}
|
|
3761
3815
|
t.exports = a;
|
|
3762
|
-
})),
|
|
3763
|
-
t.exports =
|
|
3764
|
-
})),
|
|
3765
|
-
t.exports =
|
|
3766
|
-
})),
|
|
3767
|
-
t.exports =
|
|
3768
|
-
})),
|
|
3769
|
-
t.exports =
|
|
3770
|
-
})),
|
|
3771
|
-
var n =
|
|
3816
|
+
})), Ir = /* @__PURE__ */ p(((e, t) => {
|
|
3817
|
+
t.exports = Q()(Z(), "DataView");
|
|
3818
|
+
})), Lr = /* @__PURE__ */ p(((e, t) => {
|
|
3819
|
+
t.exports = Q()(Z(), "Promise");
|
|
3820
|
+
})), Rr = /* @__PURE__ */ p(((e, t) => {
|
|
3821
|
+
t.exports = Q()(Z(), "Set");
|
|
3822
|
+
})), zr = /* @__PURE__ */ p(((e, t) => {
|
|
3823
|
+
t.exports = Q()(Z(), "WeakMap");
|
|
3824
|
+
})), Br = /* @__PURE__ */ p(((e, t) => {
|
|
3825
|
+
var n = Ir(), r = In(), i = Lr(), a = Rr(), o = zr(), s = On(), c = Nn(), 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;
|
|
3772
3826
|
(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) {
|
|
3773
3827
|
var t = s(e), n = t == u ? e.constructor : void 0, r = n ? c(n) : "";
|
|
3774
3828
|
if (r) switch (r) {
|
|
@@ -3780,8 +3834,8 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3780
3834
|
}
|
|
3781
3835
|
return t;
|
|
3782
3836
|
}), t.exports = b;
|
|
3783
|
-
})),
|
|
3784
|
-
var n =
|
|
3837
|
+
})), Vr = /* @__PURE__ */ p(((e, t) => {
|
|
3838
|
+
var n = Qn(), r = ir(), i = cr(), a = Fr(), o = Br(), s = ur(), c = br(), l = Er(), u = 1, d = "[object Arguments]", f = "[object Array]", p = "[object Object]", m = Object.prototype.hasOwnProperty;
|
|
3785
3839
|
function h(e, t, h, g, _, v) {
|
|
3786
3840
|
var y = s(e), b = s(t), x = y ? f : o(e), S = b ? f : o(t);
|
|
3787
3841
|
x = x == d ? p : x, S = S == d ? p : S;
|
|
@@ -3801,55 +3855,55 @@ var un = ln(), dn = /* @__PURE__ */ f(((e, t) => {
|
|
|
3801
3855
|
return T ? (v ||= new n(), a(e, t, h, g, _, v)) : !1;
|
|
3802
3856
|
}
|
|
3803
3857
|
t.exports = h;
|
|
3804
|
-
})),
|
|
3805
|
-
var n =
|
|
3858
|
+
})), Hr = /* @__PURE__ */ p(((e, t) => {
|
|
3859
|
+
var n = Vr(), r = gr();
|
|
3806
3860
|
function i(e, t, a, o, s) {
|
|
3807
3861
|
return e === t ? !0 : e == null || t == null || !r(e) && !r(t) ? e !== e && t !== t : n(e, t, a, o, i, s);
|
|
3808
3862
|
}
|
|
3809
3863
|
t.exports = i;
|
|
3810
|
-
})),
|
|
3811
|
-
var n =
|
|
3864
|
+
})), Ur = /* @__PURE__ */ _((/* @__PURE__ */ p(((e, t) => {
|
|
3865
|
+
var n = Hr();
|
|
3812
3866
|
function r(e, t) {
|
|
3813
3867
|
return n(e, t);
|
|
3814
3868
|
}
|
|
3815
3869
|
t.exports = r;
|
|
3816
|
-
})))(), 1),
|
|
3870
|
+
})))(), 1), Wr = (e) => {
|
|
3817
3871
|
let t = e.error.flatten().fieldErrors, n = {};
|
|
3818
3872
|
for (let [e, r] of Object.entries(t)) Array.isArray(r) && r.length > 0 && (n[e] = r);
|
|
3819
3873
|
return n;
|
|
3820
3874
|
};
|
|
3821
|
-
function
|
|
3822
|
-
let
|
|
3875
|
+
function Gr(e, n) {
|
|
3876
|
+
let a = r({ ...e }), s = i({}), c = i({ ...e }), l = t(() => !(0, Ur.default)({ ...a }, c.value)), u = () => {
|
|
3823
3877
|
s.value = {};
|
|
3824
3878
|
}, d = (e) => {
|
|
3825
3879
|
s.value = {
|
|
3826
3880
|
...s.value,
|
|
3827
3881
|
...e
|
|
3828
3882
|
};
|
|
3829
|
-
}, f = () => ({ ...
|
|
3830
|
-
if (!
|
|
3883
|
+
}, f = () => ({ ...a }), p = () => {
|
|
3884
|
+
if (!n) return u(), {
|
|
3831
3885
|
valid: !0,
|
|
3832
3886
|
data: f()
|
|
3833
3887
|
};
|
|
3834
|
-
let e =
|
|
3888
|
+
let e = n.safeParse(f());
|
|
3835
3889
|
return e.success ? (u(), {
|
|
3836
3890
|
valid: !0,
|
|
3837
3891
|
data: e.data
|
|
3838
|
-
}) : (s.value =
|
|
3892
|
+
}) : (s.value = Wr(e), {
|
|
3839
3893
|
valid: !1,
|
|
3840
3894
|
errors: s.value
|
|
3841
3895
|
});
|
|
3842
3896
|
}, m = (e) => {
|
|
3843
|
-
if (!
|
|
3844
|
-
let t =
|
|
3897
|
+
if (!n) return;
|
|
3898
|
+
let t = n.safeParse(f()), r = e, { [r]: i, ...a } = s.value;
|
|
3845
3899
|
if (t.success) {
|
|
3846
3900
|
s.value = a;
|
|
3847
3901
|
return;
|
|
3848
3902
|
}
|
|
3849
|
-
let o = t.error.flatten().fieldErrors[
|
|
3903
|
+
let o = t.error.flatten().fieldErrors[r];
|
|
3850
3904
|
s.value = o?.length ? {
|
|
3851
3905
|
...a,
|
|
3852
|
-
[
|
|
3906
|
+
[r]: o
|
|
3853
3907
|
} : a;
|
|
3854
3908
|
}, h = (e) => {
|
|
3855
3909
|
let t = {
|
|
@@ -3857,14 +3911,14 @@ function Hr(e, i) {
|
|
|
3857
3911
|
...e
|
|
3858
3912
|
};
|
|
3859
3913
|
c.value = { ...t };
|
|
3860
|
-
for (let e of Object.keys(t))
|
|
3914
|
+
for (let e of Object.keys(t)) a[e] = t[e];
|
|
3861
3915
|
u();
|
|
3862
3916
|
};
|
|
3863
|
-
|
|
3917
|
+
o(f, (e, t) => {
|
|
3864
3918
|
for (let n of Object.keys(e)) t?.[n] !== e[n] && m(n);
|
|
3865
3919
|
}, { deep: !0 });
|
|
3866
3920
|
let g = {
|
|
3867
|
-
form:
|
|
3921
|
+
form: a,
|
|
3868
3922
|
errors: s,
|
|
3869
3923
|
isDirty: l,
|
|
3870
3924
|
validate: p,
|
|
@@ -3885,4 +3939,4 @@ function Hr(e, i) {
|
|
|
3885
3939
|
};
|
|
3886
3940
|
}
|
|
3887
3941
|
//#endregion
|
|
3888
|
-
export {
|
|
3942
|
+
export { an as a, v as c, sn as i, m as l, un as n, on as o, dn as r, ie as s, Gr as t };
|