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