@ahoo-wang/fetcher-react 3.9.2 → 3.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +365 -0
- package/README.zh-CN.md +365 -0
- package/dist/api/apiHooks.d.ts +78 -0
- package/dist/api/apiHooks.d.ts.map +1 -0
- package/dist/api/createExecuteApiHooks.d.ts +105 -0
- package/dist/api/createExecuteApiHooks.d.ts.map +1 -0
- package/dist/api/createQueryApiHooks.d.ts +97 -0
- package/dist/api/createQueryApiHooks.d.ts.map +1 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/core/useExecutePromise.d.ts +1 -1
- package/dist/core/useExecutePromise.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +714 -630
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,313 +1,336 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var te = Object.defineProperty;
|
|
2
|
+
var o = (r, e) => te(r, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { c as S } from "react/compiler-runtime";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { nameGenerator as
|
|
7
|
-
import { produce as
|
|
8
|
-
import { fetcherRegistrar as
|
|
9
|
-
import { JsonEventStreamResultExtractor as
|
|
10
|
-
function
|
|
11
|
-
|
|
4
|
+
import { useRef as L, useEffect as q, useState as P, useCallback as Q, useMemo as U, useReducer as re, useSyncExternalStore as ne, createContext as ce, useContext as se } from "react";
|
|
5
|
+
import { jsx as A, Fragment as k } from "react/jsx-runtime";
|
|
6
|
+
import { nameGenerator as oe } from "@ahoo-wang/fetcher-eventbus";
|
|
7
|
+
import { produce as ue } from "immer";
|
|
8
|
+
import { fetcherRegistrar as le, getFetcher as ie, JsonResultExtractor as ae } from "@ahoo-wang/fetcher";
|
|
9
|
+
import { JsonEventStreamResultExtractor as fe } from "@ahoo-wang/fetcher-eventstream";
|
|
10
|
+
function K(r) {
|
|
11
|
+
if (!r || r.length === 0)
|
|
12
|
+
throw new Error("Method name cannot be empty");
|
|
13
|
+
return `use${r.charAt(0).toUpperCase() + r.slice(1)}`;
|
|
14
|
+
}
|
|
15
|
+
o(K, "methodNameToHookName");
|
|
16
|
+
function V(r) {
|
|
17
|
+
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ o((u) => {
|
|
18
|
+
Object.getOwnPropertyNames(u).forEach((c) => {
|
|
19
|
+
if (!t.has(c) && c !== "constructor") {
|
|
20
|
+
t.add(c);
|
|
21
|
+
const i = u[c];
|
|
22
|
+
typeof i == "function" && e.set(c, i.bind(r));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}, "processObject");
|
|
26
|
+
n(r);
|
|
27
|
+
let s = Object.getPrototypeOf(r);
|
|
28
|
+
for (; s && s !== Object.prototype; )
|
|
29
|
+
n(s), s = Object.getPrototypeOf(s);
|
|
30
|
+
return e;
|
|
31
|
+
}
|
|
32
|
+
o(V, "collectMethods");
|
|
33
|
+
function O(r) {
|
|
34
|
+
const e = L(r);
|
|
12
35
|
return e.current = r, e;
|
|
13
36
|
}
|
|
14
|
-
|
|
15
|
-
function
|
|
37
|
+
o(O, "useLatest");
|
|
38
|
+
function D(r, e) {
|
|
16
39
|
const t = S(19);
|
|
17
40
|
if (e.leading === !1 && e.trailing === !1)
|
|
18
41
|
throw new Error("useDebouncedCallback: at least one of leading or trailing must be true");
|
|
19
|
-
const n =
|
|
20
|
-
let
|
|
21
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
42
|
+
const n = L(void 0), s = L(null), u = L(null), c = O(r), i = O(e);
|
|
43
|
+
let l;
|
|
44
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ o(() => {
|
|
22
45
|
n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
|
|
23
|
-
}, "t0"), t[0] =
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
t[1] !==
|
|
27
|
-
const
|
|
46
|
+
}, "t0"), t[0] = l) : l = t[0];
|
|
47
|
+
const m = l;
|
|
48
|
+
let f;
|
|
49
|
+
t[1] !== i ? (f = /* @__PURE__ */ o((R) => u.current ? R - u.current >= i.current.delay : !0, "t1"), t[1] = i, t[2] = f) : f = t[2];
|
|
50
|
+
const a = f;
|
|
28
51
|
let d;
|
|
29
|
-
t[3] !== c ? (d = /* @__PURE__ */
|
|
30
|
-
u.current =
|
|
52
|
+
t[3] !== c ? (d = /* @__PURE__ */ o((R, _) => {
|
|
53
|
+
u.current = R, c.current(..._);
|
|
31
54
|
}, "t2"), t[3] = c, t[4] = d) : d = t[4];
|
|
32
|
-
const
|
|
33
|
-
let
|
|
34
|
-
t[5] !==
|
|
55
|
+
const h = d;
|
|
56
|
+
let y;
|
|
57
|
+
t[5] !== h || t[6] !== i ? (y = /* @__PURE__ */ o(() => {
|
|
35
58
|
n.current = setTimeout(() => {
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
|
|
59
|
+
if (s.current) {
|
|
60
|
+
const R = Date.now();
|
|
61
|
+
h(R, s.current);
|
|
39
62
|
}
|
|
40
63
|
n.current = void 0;
|
|
41
|
-
},
|
|
42
|
-
}, "t3"), t[5] =
|
|
43
|
-
const
|
|
44
|
-
let
|
|
45
|
-
t[8] !==
|
|
46
|
-
const
|
|
47
|
-
|
|
64
|
+
}, i.current.delay);
|
|
65
|
+
}, "t3"), t[5] = h, t[6] = i, t[7] = y) : y = t[7];
|
|
66
|
+
const E = y;
|
|
67
|
+
let x;
|
|
68
|
+
t[8] !== h || t[9] !== i || t[10] !== E || t[11] !== a ? (x = /* @__PURE__ */ o((...R) => {
|
|
69
|
+
const _ = R;
|
|
70
|
+
m();
|
|
48
71
|
const {
|
|
49
72
|
leading: N,
|
|
50
|
-
trailing:
|
|
51
|
-
} =
|
|
52
|
-
if (
|
|
53
|
-
|
|
73
|
+
trailing: j
|
|
74
|
+
} = i.current, H = N === void 0 ? !1 : N, B = j === void 0 ? !0 : j;
|
|
75
|
+
if (s.current = _, B && !H) {
|
|
76
|
+
E();
|
|
54
77
|
return;
|
|
55
78
|
}
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
|
|
79
|
+
const G = Date.now();
|
|
80
|
+
if (H && a(G)) {
|
|
81
|
+
h(G, _);
|
|
59
82
|
return;
|
|
60
83
|
}
|
|
61
|
-
|
|
62
|
-
}, "t4"), t[8] =
|
|
63
|
-
const
|
|
64
|
-
let
|
|
65
|
-
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
66
|
-
|
|
67
|
-
}, "t5"), t[13] =
|
|
68
|
-
const F =
|
|
69
|
-
let
|
|
70
|
-
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
84
|
+
B && E();
|
|
85
|
+
}, "t4"), t[8] = h, t[9] = i, t[10] = E, t[11] = a, t[12] = x) : x = t[12];
|
|
86
|
+
const g = x;
|
|
87
|
+
let b;
|
|
88
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ o(() => {
|
|
89
|
+
m(), s.current = null;
|
|
90
|
+
}, "t5"), t[13] = b) : b = t[13];
|
|
91
|
+
const F = b;
|
|
92
|
+
let w;
|
|
93
|
+
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o(() => n.current !== void 0, "t6"), t[14] = w) : w = t[14];
|
|
94
|
+
const v = w;
|
|
95
|
+
let p, C;
|
|
96
|
+
t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(() => () => {
|
|
74
97
|
F();
|
|
75
|
-
}, "t7"),
|
|
76
|
-
let
|
|
77
|
-
return t[17] !==
|
|
78
|
-
run:
|
|
98
|
+
}, "t7"), C = [F], t[15] = p, t[16] = C) : (p = t[15], C = t[16]), q(p, C);
|
|
99
|
+
let $;
|
|
100
|
+
return t[17] !== g ? ($ = {
|
|
101
|
+
run: g,
|
|
79
102
|
cancel: F,
|
|
80
|
-
isPending:
|
|
81
|
-
}, t[17] =
|
|
103
|
+
isPending: v
|
|
104
|
+
}, t[17] = g, t[18] = $) : $ = t[18], $;
|
|
82
105
|
}
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
const r = S(3), e =
|
|
106
|
+
o(D, "useDebouncedCallback");
|
|
107
|
+
function W() {
|
|
108
|
+
const r = S(3), e = L(!1);
|
|
86
109
|
let t;
|
|
87
|
-
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
110
|
+
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ o(() => e.current, "t0"), r[0] = t) : t = r[0];
|
|
88
111
|
const n = t;
|
|
89
|
-
let
|
|
90
|
-
return r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
112
|
+
let s, u;
|
|
113
|
+
return r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(() => (e.current = !0, () => {
|
|
91
114
|
e.current = !1;
|
|
92
|
-
}), "t1"), u = [], r[1] =
|
|
115
|
+
}), "t1"), u = [], r[1] = s, r[2] = u) : (s = r[1], u = r[2]), q(s, u), n;
|
|
93
116
|
}
|
|
94
|
-
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
const [e, t] =
|
|
117
|
+
o(W, "useMounted");
|
|
118
|
+
var de = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(de || {});
|
|
119
|
+
function me(r) {
|
|
120
|
+
const [e, t] = P(
|
|
98
121
|
r?.initialStatus ?? "idle"
|
|
99
122
|
/* IDLE */
|
|
100
|
-
), [n,
|
|
101
|
-
|
|
123
|
+
), [n, s] = P(void 0), [u, c] = P(void 0), i = W(), l = O(r), m = Q(() => {
|
|
124
|
+
i() && (t(
|
|
102
125
|
"loading"
|
|
103
126
|
/* LOADING */
|
|
104
127
|
), c(void 0));
|
|
105
|
-
}, [
|
|
106
|
-
if (
|
|
107
|
-
|
|
128
|
+
}, [i]), f = Q(async (h) => {
|
|
129
|
+
if (i()) {
|
|
130
|
+
s(h), t(
|
|
108
131
|
"success"
|
|
109
132
|
/* SUCCESS */
|
|
110
133
|
), c(void 0);
|
|
111
134
|
try {
|
|
112
|
-
await
|
|
113
|
-
} catch (
|
|
114
|
-
console.warn("PromiseState onSuccess callback error:",
|
|
135
|
+
await l.current?.onSuccess?.(h);
|
|
136
|
+
} catch (y) {
|
|
137
|
+
console.warn("PromiseState onSuccess callback error:", y);
|
|
115
138
|
}
|
|
116
139
|
}
|
|
117
|
-
}, [
|
|
118
|
-
if (
|
|
119
|
-
c(
|
|
140
|
+
}, [i, l]), a = Q(async (h) => {
|
|
141
|
+
if (i()) {
|
|
142
|
+
c(h), t(
|
|
120
143
|
"error"
|
|
121
144
|
/* ERROR */
|
|
122
|
-
),
|
|
145
|
+
), s(void 0);
|
|
123
146
|
try {
|
|
124
|
-
await
|
|
125
|
-
} catch (
|
|
126
|
-
console.warn("PromiseState onError callback error:",
|
|
147
|
+
await l.current?.onError?.(h);
|
|
148
|
+
} catch (y) {
|
|
149
|
+
console.warn("PromiseState onError callback error:", y);
|
|
127
150
|
}
|
|
128
151
|
}
|
|
129
|
-
}, [
|
|
130
|
-
|
|
152
|
+
}, [i, l]), d = Q(() => {
|
|
153
|
+
i() && (t(
|
|
131
154
|
"idle"
|
|
132
155
|
/* IDLE */
|
|
133
|
-
), c(void 0),
|
|
134
|
-
}, [
|
|
135
|
-
return
|
|
156
|
+
), c(void 0), s(void 0));
|
|
157
|
+
}, [i]);
|
|
158
|
+
return U(() => ({
|
|
136
159
|
status: e,
|
|
137
160
|
loading: e === "loading",
|
|
138
161
|
result: n,
|
|
139
162
|
error: u,
|
|
140
|
-
setLoading:
|
|
141
|
-
setSuccess:
|
|
142
|
-
setError:
|
|
163
|
+
setLoading: m,
|
|
164
|
+
setSuccess: f,
|
|
165
|
+
setError: a,
|
|
143
166
|
setIdle: d
|
|
144
|
-
}), [e, n, u,
|
|
167
|
+
}), [e, n, u, m, f, a, d]);
|
|
145
168
|
}
|
|
146
|
-
|
|
147
|
-
function
|
|
148
|
-
const r = S(6), e =
|
|
169
|
+
o(me, "usePromiseState");
|
|
170
|
+
function he() {
|
|
171
|
+
const r = S(6), e = L(0);
|
|
149
172
|
let t;
|
|
150
|
-
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
173
|
+
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ o(() => e.current = e.current + 1, "t0"), r[0] = t) : t = r[0];
|
|
151
174
|
const n = t;
|
|
152
|
-
let
|
|
153
|
-
r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
154
|
-
const u =
|
|
175
|
+
let s;
|
|
176
|
+
r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(() => e.current, "t1"), r[1] = s) : s = r[1];
|
|
177
|
+
const u = s;
|
|
155
178
|
let c;
|
|
156
|
-
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
179
|
+
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o((h) => h === e.current, "t2"), r[2] = c) : c = r[2];
|
|
180
|
+
const i = c;
|
|
181
|
+
let l;
|
|
182
|
+
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ o(() => {
|
|
160
183
|
e.current = e.current + 1;
|
|
161
|
-
}, "t3"), r[3] =
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
184
|
+
}, "t3"), r[3] = l) : l = r[3];
|
|
185
|
+
const m = l;
|
|
186
|
+
let f;
|
|
187
|
+
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ o(() => {
|
|
165
188
|
e.current = 0;
|
|
166
|
-
}, "t4"), r[4] =
|
|
167
|
-
const
|
|
189
|
+
}, "t4"), r[4] = f) : f = r[4];
|
|
190
|
+
const a = f;
|
|
168
191
|
let d;
|
|
169
192
|
return r[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
170
193
|
generate: n,
|
|
171
194
|
current: u,
|
|
172
|
-
isLatest:
|
|
173
|
-
invalidate:
|
|
174
|
-
reset:
|
|
195
|
+
isLatest: i,
|
|
196
|
+
invalidate: m,
|
|
197
|
+
reset: a
|
|
175
198
|
}, r[5] = d) : d = r[5], d;
|
|
176
199
|
}
|
|
177
|
-
|
|
178
|
-
function
|
|
200
|
+
o(he, "useRequestId");
|
|
201
|
+
function T(r) {
|
|
179
202
|
const {
|
|
180
203
|
loading: e,
|
|
181
204
|
result: t,
|
|
182
205
|
error: n,
|
|
183
|
-
status:
|
|
206
|
+
status: s,
|
|
184
207
|
setLoading: u,
|
|
185
208
|
setSuccess: c,
|
|
186
|
-
setError:
|
|
187
|
-
setIdle:
|
|
188
|
-
} =
|
|
209
|
+
setError: i,
|
|
210
|
+
setIdle: l
|
|
211
|
+
} = me(r), m = W(), f = he(), a = L(void 0), d = r?.propagateError, h = O(r?.onAbort), y = Q(async () => {
|
|
189
212
|
try {
|
|
190
|
-
await
|
|
191
|
-
} catch (
|
|
192
|
-
console.warn("useExecutePromise onAbort callback error:",
|
|
213
|
+
await h.current?.();
|
|
214
|
+
} catch (b) {
|
|
215
|
+
console.warn("useExecutePromise onAbort callback error:", b);
|
|
193
216
|
}
|
|
194
|
-
}, [
|
|
195
|
-
|
|
217
|
+
}, [h]), E = Q(async (b) => {
|
|
218
|
+
a.current && (a.current.abort(), await y());
|
|
196
219
|
const F = new AbortController();
|
|
197
|
-
|
|
198
|
-
const
|
|
220
|
+
a.current = F;
|
|
221
|
+
const w = f.generate();
|
|
199
222
|
u();
|
|
200
223
|
try {
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
} catch (
|
|
204
|
-
if (
|
|
205
|
-
|
|
224
|
+
const v = await b(F);
|
|
225
|
+
m() && f.isLatest(w) && await c(v);
|
|
226
|
+
} catch (v) {
|
|
227
|
+
if (v instanceof Error && v.name === "AbortError") {
|
|
228
|
+
m() && l();
|
|
206
229
|
return;
|
|
207
230
|
}
|
|
208
|
-
if (
|
|
209
|
-
throw
|
|
231
|
+
if (m() && f.isLatest(w) && await i(v), d)
|
|
232
|
+
throw v;
|
|
210
233
|
} finally {
|
|
211
|
-
|
|
234
|
+
a.current === F && (a.current = void 0);
|
|
212
235
|
}
|
|
213
|
-
}, [u, c,
|
|
214
|
-
|
|
215
|
-
}, [
|
|
216
|
-
|
|
217
|
-
}, [
|
|
218
|
-
return
|
|
219
|
-
|
|
220
|
-
}, [
|
|
236
|
+
}, [u, c, i, l, m, f, d, y]), x = Q(() => {
|
|
237
|
+
m() && l();
|
|
238
|
+
}, [l, m]), g = Q(async () => {
|
|
239
|
+
x(), a.current && (a.current.abort(), a.current = void 0, await y());
|
|
240
|
+
}, [x, y]);
|
|
241
|
+
return q(() => () => {
|
|
242
|
+
g();
|
|
243
|
+
}, [g]), U(() => ({
|
|
221
244
|
loading: e,
|
|
222
245
|
result: t,
|
|
223
246
|
error: n,
|
|
224
|
-
status:
|
|
225
|
-
execute:
|
|
226
|
-
reset:
|
|
227
|
-
abort:
|
|
228
|
-
}), [e, t, n,
|
|
247
|
+
status: s,
|
|
248
|
+
execute: E,
|
|
249
|
+
reset: x,
|
|
250
|
+
abort: g
|
|
251
|
+
}), [e, t, n, s, E, x, g]);
|
|
229
252
|
}
|
|
230
|
-
|
|
231
|
-
function
|
|
253
|
+
o(T, "useExecutePromise");
|
|
254
|
+
function Pe(r) {
|
|
232
255
|
const e = S(10), {
|
|
233
256
|
loading: t,
|
|
234
257
|
result: n,
|
|
235
|
-
error:
|
|
258
|
+
error: s,
|
|
236
259
|
execute: u,
|
|
237
260
|
reset: c,
|
|
238
|
-
abort:
|
|
239
|
-
status:
|
|
240
|
-
} =
|
|
241
|
-
run:
|
|
242
|
-
cancel:
|
|
243
|
-
isPending:
|
|
244
|
-
} =
|
|
261
|
+
abort: i,
|
|
262
|
+
status: l
|
|
263
|
+
} = T(r), {
|
|
264
|
+
run: m,
|
|
265
|
+
cancel: f,
|
|
266
|
+
isPending: a
|
|
267
|
+
} = D(u, r.debounce);
|
|
245
268
|
let d;
|
|
246
|
-
return e[0] !==
|
|
269
|
+
return e[0] !== i || e[1] !== f || e[2] !== s || e[3] !== a || e[4] !== t || e[5] !== c || e[6] !== n || e[7] !== m || e[8] !== l ? (d = {
|
|
247
270
|
loading: t,
|
|
248
271
|
result: n,
|
|
249
|
-
error:
|
|
250
|
-
status:
|
|
272
|
+
error: s,
|
|
273
|
+
status: l,
|
|
251
274
|
reset: c,
|
|
252
|
-
abort:
|
|
253
|
-
run:
|
|
254
|
-
cancel:
|
|
255
|
-
isPending:
|
|
256
|
-
}, e[0] =
|
|
275
|
+
abort: i,
|
|
276
|
+
run: m,
|
|
277
|
+
cancel: f,
|
|
278
|
+
isPending: a
|
|
279
|
+
}, e[0] = i, e[1] = f, e[2] = s, e[3] = a, e[4] = t, e[5] = c, e[6] = n, e[7] = m, e[8] = l, e[9] = d) : d = e[9], d;
|
|
257
280
|
}
|
|
258
|
-
|
|
259
|
-
function
|
|
281
|
+
o(Pe, "useDebouncedExecutePromise");
|
|
282
|
+
function ke(r) {
|
|
260
283
|
const e = S(22), t = r.autoExecute;
|
|
261
284
|
let n;
|
|
262
285
|
e[0] !== r ? (n = {
|
|
263
286
|
...r,
|
|
264
287
|
autoExecute: !1
|
|
265
288
|
}, e[0] = r, e[1] = n) : n = e[1];
|
|
266
|
-
const
|
|
289
|
+
const s = n, {
|
|
267
290
|
loading: u,
|
|
268
291
|
result: c,
|
|
269
|
-
error:
|
|
270
|
-
status:
|
|
271
|
-
execute:
|
|
272
|
-
reset:
|
|
273
|
-
abort:
|
|
292
|
+
error: i,
|
|
293
|
+
status: l,
|
|
294
|
+
execute: m,
|
|
295
|
+
reset: f,
|
|
296
|
+
abort: a,
|
|
274
297
|
getQuery: d,
|
|
275
|
-
setQuery:
|
|
276
|
-
} =
|
|
277
|
-
run:
|
|
278
|
-
cancel:
|
|
279
|
-
isPending:
|
|
280
|
-
} =
|
|
281
|
-
let
|
|
282
|
-
e[2] !== t || e[3] !==
|
|
283
|
-
|
|
284
|
-
}, "t1"), e[2] = t, e[3] =
|
|
285
|
-
const
|
|
286
|
-
let F,
|
|
287
|
-
e[6] !== t || e[7] !==
|
|
288
|
-
t &&
|
|
289
|
-
}, "t2"),
|
|
290
|
-
let
|
|
291
|
-
return e[10] !==
|
|
298
|
+
setQuery: h
|
|
299
|
+
} = I(s), {
|
|
300
|
+
run: y,
|
|
301
|
+
cancel: E,
|
|
302
|
+
isPending: x
|
|
303
|
+
} = D(m, r.debounce);
|
|
304
|
+
let g;
|
|
305
|
+
e[2] !== t || e[3] !== y || e[4] !== h ? (g = /* @__PURE__ */ o((p) => {
|
|
306
|
+
h(p), t && y();
|
|
307
|
+
}, "t1"), e[2] = t, e[3] = y, e[4] = h, e[5] = g) : g = e[5];
|
|
308
|
+
const b = g;
|
|
309
|
+
let F, w;
|
|
310
|
+
e[6] !== t || e[7] !== y ? (F = /* @__PURE__ */ o(() => {
|
|
311
|
+
t && y();
|
|
312
|
+
}, "t2"), w = [y, t], e[6] = t, e[7] = y, e[8] = F, e[9] = w) : (F = e[8], w = e[9]), q(F, w);
|
|
313
|
+
let v;
|
|
314
|
+
return e[10] !== a || e[11] !== E || e[12] !== i || e[13] !== d || e[14] !== x || e[15] !== u || e[16] !== f || e[17] !== c || e[18] !== y || e[19] !== b || e[20] !== l ? (v = {
|
|
292
315
|
loading: u,
|
|
293
316
|
result: c,
|
|
294
|
-
error:
|
|
295
|
-
status:
|
|
296
|
-
reset:
|
|
297
|
-
abort:
|
|
317
|
+
error: i,
|
|
318
|
+
status: l,
|
|
319
|
+
reset: f,
|
|
320
|
+
abort: a,
|
|
298
321
|
getQuery: d,
|
|
299
|
-
setQuery:
|
|
300
|
-
run:
|
|
301
|
-
cancel:
|
|
302
|
-
isPending:
|
|
303
|
-
}, e[10] =
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
function
|
|
322
|
+
setQuery: b,
|
|
323
|
+
run: y,
|
|
324
|
+
cancel: E,
|
|
325
|
+
isPending: x
|
|
326
|
+
}, e[10] = a, e[11] = E, e[12] = i, e[13] = d, e[14] = x, e[15] = u, e[16] = f, e[17] = c, e[18] = y, e[19] = b, e[20] = l, e[21] = v) : v = e[21], v;
|
|
327
|
+
}
|
|
328
|
+
o(ke, "useDebouncedQuery");
|
|
329
|
+
function ye() {
|
|
307
330
|
return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
|
|
308
331
|
}
|
|
309
|
-
|
|
310
|
-
async function
|
|
332
|
+
o(ye, "getFullscreenElement");
|
|
333
|
+
async function Ee(r) {
|
|
311
334
|
try {
|
|
312
335
|
if (r.requestFullscreen)
|
|
313
336
|
await r.requestFullscreen();
|
|
@@ -323,8 +346,8 @@ async function ye(r) {
|
|
|
323
346
|
throw console.error("Failed to enter fullscreen:", e), e;
|
|
324
347
|
}
|
|
325
348
|
}
|
|
326
|
-
|
|
327
|
-
async function
|
|
349
|
+
o(Ee, "enterFullscreen");
|
|
350
|
+
async function ge() {
|
|
328
351
|
try {
|
|
329
352
|
if (document.exitFullscreen)
|
|
330
353
|
await document.exitFullscreen();
|
|
@@ -340,615 +363,676 @@ async function he() {
|
|
|
340
363
|
throw console.error("Failed to exit fullscreen:", r), r;
|
|
341
364
|
}
|
|
342
365
|
}
|
|
343
|
-
|
|
344
|
-
function
|
|
366
|
+
o(ge, "exitFullscreen");
|
|
367
|
+
function xe(r) {
|
|
345
368
|
document.addEventListener("fullscreenchange", r), document.addEventListener("webkitfullscreenchange", r), document.addEventListener("mozfullscreenchange", r), document.addEventListener("MSFullscreenChange", r);
|
|
346
369
|
}
|
|
347
|
-
|
|
370
|
+
o(xe, "addFullscreenChangeListener");
|
|
348
371
|
function be(r) {
|
|
349
372
|
document.removeEventListener("fullscreenchange", r), document.removeEventListener("webkitfullscreenchange", r), document.removeEventListener("mozfullscreenchange", r), document.removeEventListener("MSFullscreenChange", r);
|
|
350
373
|
}
|
|
351
|
-
|
|
352
|
-
function
|
|
374
|
+
o(be, "removeFullscreenChangeListener");
|
|
375
|
+
function ze(r) {
|
|
353
376
|
const e = S(18);
|
|
354
377
|
let t;
|
|
355
378
|
e[0] !== r ? (t = r === void 0 ? {} : r, e[0] = r, e[1] = t) : t = e[1];
|
|
356
379
|
const n = t, {
|
|
357
|
-
target:
|
|
380
|
+
target: s,
|
|
358
381
|
onChange: u
|
|
359
|
-
} = n, [c,
|
|
360
|
-
let
|
|
361
|
-
e[2] !== c || e[3] !== u || e[4] !==
|
|
362
|
-
const F =
|
|
363
|
-
F !== c && (
|
|
364
|
-
}, "t2"), e[2] = c, e[3] = u, e[4] =
|
|
365
|
-
const
|
|
366
|
-
let
|
|
367
|
-
e[6] !==
|
|
368
|
-
be(
|
|
369
|
-
}), "t3"),
|
|
382
|
+
} = n, [c, i] = P(!1);
|
|
383
|
+
let l;
|
|
384
|
+
e[2] !== c || e[3] !== u || e[4] !== s ? (l = /* @__PURE__ */ o(() => {
|
|
385
|
+
const F = ye() === (s?.current || document.documentElement);
|
|
386
|
+
F !== c && (i(F), u?.(F));
|
|
387
|
+
}, "t2"), e[2] = c, e[3] = u, e[4] = s, e[5] = l) : l = e[5];
|
|
388
|
+
const m = l;
|
|
389
|
+
let f, a;
|
|
390
|
+
e[6] !== m ? (f = /* @__PURE__ */ o(() => (xe(m), () => {
|
|
391
|
+
be(m);
|
|
392
|
+
}), "t3"), a = [m], e[6] = m, e[7] = f, e[8] = a) : (f = e[7], a = e[8]), q(f, a);
|
|
370
393
|
let d;
|
|
371
|
-
e[9] !==
|
|
372
|
-
const
|
|
373
|
-
await
|
|
374
|
-
}, "t5"), e[9] =
|
|
375
|
-
const
|
|
394
|
+
e[9] !== s ? (d = /* @__PURE__ */ o(async () => {
|
|
395
|
+
const b = s?.current || document.documentElement;
|
|
396
|
+
await Ee(b);
|
|
397
|
+
}, "t5"), e[9] = s, e[10] = d) : d = e[10];
|
|
398
|
+
const h = d, y = Fe;
|
|
399
|
+
let E;
|
|
400
|
+
e[11] !== h || e[12] !== c ? (E = /* @__PURE__ */ o(async () => {
|
|
401
|
+
c ? await y() : await h();
|
|
402
|
+
}, "t6"), e[11] = h, e[12] = c, e[13] = E) : E = e[13];
|
|
403
|
+
const x = E;
|
|
376
404
|
let g;
|
|
377
|
-
e[
|
|
378
|
-
c ? await h() : await m();
|
|
379
|
-
}, "t6"), e[11] = m, e[12] = c, e[13] = g) : g = e[13];
|
|
380
|
-
const E = g;
|
|
381
|
-
let b;
|
|
382
|
-
return e[14] !== m || e[15] !== c || e[16] !== E ? (b = {
|
|
405
|
+
return e[14] !== h || e[15] !== c || e[16] !== x ? (g = {
|
|
383
406
|
isFullscreen: c,
|
|
384
|
-
toggle:
|
|
385
|
-
enter:
|
|
386
|
-
exit:
|
|
387
|
-
}, e[14] =
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
async function
|
|
391
|
-
await
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
function
|
|
395
|
-
const r =
|
|
396
|
-
d ? r.current.set(
|
|
407
|
+
toggle: x,
|
|
408
|
+
enter: h,
|
|
409
|
+
exit: y
|
|
410
|
+
}, e[14] = h, e[15] = c, e[16] = x, e[17] = g) : g = e[17], g;
|
|
411
|
+
}
|
|
412
|
+
o(ze, "useFullscreen");
|
|
413
|
+
async function Fe() {
|
|
414
|
+
await ge();
|
|
415
|
+
}
|
|
416
|
+
o(Fe, "_temp$1");
|
|
417
|
+
function De() {
|
|
418
|
+
const r = L(/* @__PURE__ */ new Map()), e = Q((a) => r.current.get(a), []), t = Q((a, d) => r.current.set(a, d), []), n = Q((a) => r.current.has(a), []), s = Q((a) => r.current.delete(a), []), u = Q(() => r.current.clear(), []), c = Q(() => r.current.keys(), []), i = Q(() => r.current.values(), []), l = Q(() => r.current.entries(), []), m = Q(() => r.current[Symbol.iterator](), []), f = Q((a) => (d) => {
|
|
419
|
+
d ? r.current.set(a, d) : r.current.delete(a);
|
|
397
420
|
}, []);
|
|
398
|
-
return
|
|
421
|
+
return q(() => () => {
|
|
399
422
|
r.current.clear();
|
|
400
|
-
}, []),
|
|
401
|
-
register:
|
|
423
|
+
}, []), U(() => ({
|
|
424
|
+
register: f,
|
|
402
425
|
get: e,
|
|
403
426
|
set: t,
|
|
404
427
|
has: n,
|
|
405
|
-
delete:
|
|
428
|
+
delete: s,
|
|
406
429
|
clear: u,
|
|
407
430
|
keys: c,
|
|
408
|
-
values:
|
|
409
|
-
entries:
|
|
431
|
+
values: i,
|
|
432
|
+
entries: l,
|
|
410
433
|
get size() {
|
|
411
434
|
return r.current.size;
|
|
412
435
|
},
|
|
413
|
-
[Symbol.iterator]:
|
|
414
|
-
}), [
|
|
436
|
+
[Symbol.iterator]: m
|
|
437
|
+
}), [f, e, t, n, s, u, c, i, l, m]);
|
|
415
438
|
}
|
|
416
|
-
|
|
417
|
-
function
|
|
418
|
-
const [, r] =
|
|
439
|
+
o(De, "useRefs");
|
|
440
|
+
function Te() {
|
|
441
|
+
const [, r] = re(we, 0);
|
|
419
442
|
return r;
|
|
420
443
|
}
|
|
421
|
-
|
|
422
|
-
function
|
|
444
|
+
o(Te, "useForceUpdate");
|
|
445
|
+
function we(r) {
|
|
423
446
|
return r + 1;
|
|
424
447
|
}
|
|
425
|
-
|
|
448
|
+
o(we, "_temp");
|
|
426
449
|
function J(r) {
|
|
427
450
|
const e = S(12), {
|
|
428
451
|
initialQuery: t,
|
|
429
452
|
query: n,
|
|
430
|
-
autoExecute:
|
|
453
|
+
autoExecute: s,
|
|
431
454
|
execute: u
|
|
432
|
-
} = r, c =
|
|
433
|
-
let y;
|
|
434
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ s(() => o.current, "t1"), e[0] = y) : y = e[0];
|
|
435
|
-
const a = y;
|
|
436
|
-
let i;
|
|
437
|
-
e[1] !== c || e[2] !== u ? (i = /* @__PURE__ */ s(() => {
|
|
438
|
-
const x = a();
|
|
439
|
-
c && D(x) && u(x);
|
|
440
|
-
}, "t2"), e[1] = c, e[2] = u, e[3] = i) : i = e[3];
|
|
441
|
-
const d = i;
|
|
455
|
+
} = r, c = s === void 0 ? !0 : s, l = L(n ?? t);
|
|
442
456
|
let m;
|
|
443
|
-
e[
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
let
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
457
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(() => l.current, "t1"), e[0] = m) : m = e[0];
|
|
458
|
+
const f = m;
|
|
459
|
+
let a;
|
|
460
|
+
e[1] !== c || e[2] !== u ? (a = /* @__PURE__ */ o(() => {
|
|
461
|
+
const b = f();
|
|
462
|
+
c && z(b) && u(b);
|
|
463
|
+
}, "t2"), e[1] = c, e[2] = u, e[3] = a) : a = e[3];
|
|
464
|
+
const d = a;
|
|
465
|
+
let h;
|
|
466
|
+
e[4] !== d ? (h = /* @__PURE__ */ o((b) => {
|
|
467
|
+
l.current = b, d();
|
|
468
|
+
}, "t3"), e[4] = d, e[5] = h) : h = e[5];
|
|
469
|
+
const y = h;
|
|
470
|
+
let E, x;
|
|
471
|
+
e[6] !== d || e[7] !== n ? (E = /* @__PURE__ */ o(() => {
|
|
472
|
+
z(n) && (l.current = n), d();
|
|
473
|
+
}, "t4"), x = [d, n], e[6] = d, e[7] = n, e[8] = E, e[9] = x) : (E = e[8], x = e[9]), q(E, x);
|
|
474
|
+
let g;
|
|
475
|
+
return e[10] !== y ? (g = {
|
|
476
|
+
getQuery: f,
|
|
477
|
+
setQuery: y
|
|
478
|
+
}, e[10] = y, e[11] = g) : g = e[11], g;
|
|
456
479
|
}
|
|
457
|
-
|
|
458
|
-
function
|
|
480
|
+
o(J, "useQueryState");
|
|
481
|
+
function z(r) {
|
|
459
482
|
return r !== void 0;
|
|
460
483
|
}
|
|
461
|
-
|
|
462
|
-
function
|
|
463
|
-
const e = S(21), t =
|
|
484
|
+
o(z, "isValidateQuery");
|
|
485
|
+
function I(r) {
|
|
486
|
+
const e = S(21), t = O(r), {
|
|
464
487
|
loading: n,
|
|
465
|
-
result:
|
|
488
|
+
result: s,
|
|
466
489
|
error: u,
|
|
467
490
|
status: c,
|
|
468
|
-
execute:
|
|
469
|
-
reset:
|
|
470
|
-
abort:
|
|
471
|
-
} =
|
|
472
|
-
let
|
|
473
|
-
e[0] !== t || e[1] !==
|
|
474
|
-
const
|
|
491
|
+
execute: i,
|
|
492
|
+
reset: l,
|
|
493
|
+
abort: m
|
|
494
|
+
} = T(r);
|
|
495
|
+
let f;
|
|
496
|
+
e[0] !== t || e[1] !== i ? (f = /* @__PURE__ */ o((b) => i(/* @__PURE__ */ o(async (w) => t.current.execute(b, t.current.attributes, w), "queryExecutor")), "t0"), e[0] = t, e[1] = i, e[2] = f) : f = e[2];
|
|
497
|
+
const a = f;
|
|
475
498
|
let d;
|
|
476
|
-
e[3] !==
|
|
499
|
+
e[3] !== a || e[4] !== r.autoExecute || e[5] !== r.initialQuery || e[6] !== r.query ? (d = {
|
|
477
500
|
initialQuery: r.initialQuery,
|
|
478
501
|
query: r.query,
|
|
479
502
|
autoExecute: r.autoExecute,
|
|
480
|
-
execute:
|
|
481
|
-
}, e[3] =
|
|
503
|
+
execute: a
|
|
504
|
+
}, e[3] = a, e[4] = r.autoExecute, e[5] = r.initialQuery, e[6] = r.query, e[7] = d) : d = e[7];
|
|
482
505
|
const {
|
|
483
|
-
getQuery:
|
|
484
|
-
setQuery:
|
|
506
|
+
getQuery: h,
|
|
507
|
+
setQuery: y
|
|
485
508
|
} = J(d);
|
|
509
|
+
let E;
|
|
510
|
+
e[8] !== a || e[9] !== h ? (E = /* @__PURE__ */ o(async () => {
|
|
511
|
+
const b = h();
|
|
512
|
+
if (z(b))
|
|
513
|
+
return await a(b);
|
|
514
|
+
}, "t2"), e[8] = a, e[9] = h, e[10] = E) : E = e[10];
|
|
515
|
+
const x = E;
|
|
486
516
|
let g;
|
|
487
|
-
e[
|
|
488
|
-
const x = m();
|
|
489
|
-
if (D(x))
|
|
490
|
-
return await i(x);
|
|
491
|
-
}, "t2"), e[8] = i, e[9] = m, e[10] = g) : g = e[10];
|
|
492
|
-
const E = g;
|
|
493
|
-
let b;
|
|
494
|
-
return e[11] !== y || e[12] !== u || e[13] !== E || e[14] !== m || e[15] !== n || e[16] !== o || e[17] !== l || e[18] !== h || e[19] !== c ? (b = {
|
|
517
|
+
return e[11] !== m || e[12] !== u || e[13] !== x || e[14] !== h || e[15] !== n || e[16] !== l || e[17] !== s || e[18] !== y || e[19] !== c ? (g = {
|
|
495
518
|
loading: n,
|
|
496
|
-
result:
|
|
519
|
+
result: s,
|
|
497
520
|
error: u,
|
|
498
521
|
status: c,
|
|
499
|
-
execute:
|
|
500
|
-
reset:
|
|
501
|
-
abort:
|
|
502
|
-
getQuery:
|
|
503
|
-
setQuery:
|
|
504
|
-
}, e[11] =
|
|
522
|
+
execute: x,
|
|
523
|
+
reset: l,
|
|
524
|
+
abort: m,
|
|
525
|
+
getQuery: h,
|
|
526
|
+
setQuery: y
|
|
527
|
+
}, e[11] = m, e[12] = u, e[13] = x, e[14] = h, e[15] = n, e[16] = l, e[17] = s, e[18] = y, e[19] = c, e[20] = g) : g = e[20], g;
|
|
505
528
|
}
|
|
506
|
-
|
|
529
|
+
o(I, "useQuery");
|
|
530
|
+
function ve(r, e) {
|
|
531
|
+
const t = S(10), n = T(e);
|
|
532
|
+
let s, u;
|
|
533
|
+
t[0] !== n ? ({
|
|
534
|
+
execute: s,
|
|
535
|
+
...u
|
|
536
|
+
} = n, t[0] = n, t[1] = s, t[2] = u) : (s = t[1], u = t[2]);
|
|
537
|
+
const c = O(e?.onBeforeExecute);
|
|
538
|
+
let i;
|
|
539
|
+
t[3] !== r || t[4] !== c || t[5] !== s ? (i = /* @__PURE__ */ o((...f) => {
|
|
540
|
+
const a = f;
|
|
541
|
+
return s((d) => (c.current && c.current(d, a), r(...a)));
|
|
542
|
+
}, "t1"), t[3] = r, t[4] = c, t[5] = s, t[6] = i) : i = t[6];
|
|
543
|
+
const l = i;
|
|
544
|
+
let m;
|
|
545
|
+
return t[7] !== l || t[8] !== u ? (m = {
|
|
546
|
+
...u,
|
|
547
|
+
execute: l
|
|
548
|
+
}, t[7] = l, t[8] = u, t[9] = m) : m = t[9], m;
|
|
549
|
+
}
|
|
550
|
+
o(ve, "useApiMethodExecute");
|
|
551
|
+
function Se(r) {
|
|
552
|
+
return /* @__PURE__ */ o(function(t) {
|
|
553
|
+
return ve(r, t);
|
|
554
|
+
}, "useApiMethod");
|
|
555
|
+
}
|
|
556
|
+
o(Se, "createHookForMethod");
|
|
557
|
+
function Ue(r) {
|
|
558
|
+
const {
|
|
559
|
+
api: e
|
|
560
|
+
} = r, t = {};
|
|
561
|
+
return V(e).forEach((s, u) => {
|
|
562
|
+
const c = K(u);
|
|
563
|
+
t[c] = Se(s);
|
|
564
|
+
}), t;
|
|
565
|
+
}
|
|
566
|
+
o(Ue, "createExecuteApiHooks");
|
|
567
|
+
function Qe(r) {
|
|
568
|
+
return /* @__PURE__ */ o(function(t) {
|
|
569
|
+
const n = O(t?.onBeforeExecute), s = Q(async (c, i, l) => (n.current && n.current(l, c), r(c, i, l)), [n]), u = {
|
|
570
|
+
...t,
|
|
571
|
+
execute: s
|
|
572
|
+
};
|
|
573
|
+
return I(u);
|
|
574
|
+
}, "useApiMethodQuery");
|
|
575
|
+
}
|
|
576
|
+
o(Qe, "createQueryHookForMethod");
|
|
577
|
+
function Ne(r) {
|
|
578
|
+
const {
|
|
579
|
+
api: e
|
|
580
|
+
} = r, t = {};
|
|
581
|
+
return V(e).forEach((s, u) => {
|
|
582
|
+
const c = K(u);
|
|
583
|
+
t[c] = Qe(s);
|
|
584
|
+
}), t;
|
|
585
|
+
}
|
|
586
|
+
o(Ne, "createQueryApiHooks");
|
|
507
587
|
function Y(r, e) {
|
|
508
588
|
const t = S(13);
|
|
509
589
|
let n;
|
|
510
|
-
t[0] !== r ? (n = /* @__PURE__ */
|
|
511
|
-
name:
|
|
512
|
-
handle:
|
|
590
|
+
t[0] !== r ? (n = /* @__PURE__ */ o((h) => r.addListener({
|
|
591
|
+
name: oe.generate("useKeyStorage"),
|
|
592
|
+
handle: h
|
|
513
593
|
}), "t0"), t[0] = r, t[1] = n) : n = t[1];
|
|
514
|
-
const
|
|
594
|
+
const s = n;
|
|
515
595
|
let u;
|
|
516
|
-
t[2] !== e || t[3] !== r ? (u = /* @__PURE__ */
|
|
517
|
-
const
|
|
518
|
-
return
|
|
596
|
+
t[2] !== e || t[3] !== r ? (u = /* @__PURE__ */ o(() => {
|
|
597
|
+
const h = r.get();
|
|
598
|
+
return h !== null ? h : e ?? null;
|
|
519
599
|
}, "t1"), t[2] = e, t[3] = r, t[4] = u) : u = t[4];
|
|
520
|
-
const c = u,
|
|
521
|
-
let
|
|
522
|
-
t[5] !== r ? (
|
|
523
|
-
const
|
|
524
|
-
let
|
|
525
|
-
t[7] !== r ? (
|
|
526
|
-
const
|
|
600
|
+
const c = u, i = ne(s, c, c);
|
|
601
|
+
let l;
|
|
602
|
+
t[5] !== r ? (l = /* @__PURE__ */ o((h) => r.set(h), "t2"), t[5] = r, t[6] = l) : l = t[6];
|
|
603
|
+
const m = l;
|
|
604
|
+
let f;
|
|
605
|
+
t[7] !== r ? (f = /* @__PURE__ */ o(() => r.remove(), "t3"), t[7] = r, t[8] = f) : f = t[8];
|
|
606
|
+
const a = f;
|
|
527
607
|
let d;
|
|
528
|
-
return t[9] !==
|
|
608
|
+
return t[9] !== a || t[10] !== m || t[11] !== i ? (d = [i, m, a], t[9] = a, t[10] = m, t[11] = i, t[12] = d) : d = t[12], d;
|
|
529
609
|
}
|
|
530
|
-
|
|
531
|
-
function
|
|
532
|
-
const t = S(8), [n,
|
|
610
|
+
o(Y, "useKeyStorage");
|
|
611
|
+
function je(r, e) {
|
|
612
|
+
const t = S(8), [n, s, u] = Y(r, e);
|
|
533
613
|
let c;
|
|
534
|
-
t[0] !== u || t[1] !==
|
|
535
|
-
const
|
|
536
|
-
if (
|
|
614
|
+
t[0] !== u || t[1] !== s || t[2] !== n ? (c = /* @__PURE__ */ o((m) => {
|
|
615
|
+
const f = ue(n, m);
|
|
616
|
+
if (f === null) {
|
|
537
617
|
u();
|
|
538
618
|
return;
|
|
539
619
|
}
|
|
540
|
-
return
|
|
541
|
-
}, "t0"), t[0] = u, t[1] =
|
|
542
|
-
const
|
|
543
|
-
let
|
|
544
|
-
return t[4] !== u || t[5] !==
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
const
|
|
620
|
+
return s(f);
|
|
621
|
+
}, "t0"), t[0] = u, t[1] = s, t[2] = n, t[3] = c) : c = t[3];
|
|
622
|
+
const i = c;
|
|
623
|
+
let l;
|
|
624
|
+
return t[4] !== u || t[5] !== i || t[6] !== n ? (l = [n, i, u], t[4] = u, t[5] = i, t[6] = n, t[7] = l) : l = t[7], l;
|
|
625
|
+
}
|
|
626
|
+
o(je, "useImmerKeyStorage");
|
|
627
|
+
const pe = {
|
|
548
628
|
jti: "",
|
|
549
629
|
sub: "anonymous",
|
|
550
630
|
iat: 0,
|
|
551
631
|
exp: 0
|
|
552
632
|
};
|
|
553
|
-
function
|
|
633
|
+
function Re(r, e) {
|
|
554
634
|
const t = S(13);
|
|
555
635
|
let n;
|
|
556
636
|
t[0] !== e ? (n = e === void 0 ? {} : e, t[0] = e, t[1] = n) : n = t[1];
|
|
557
|
-
const
|
|
558
|
-
let
|
|
559
|
-
t[2] !==
|
|
560
|
-
const
|
|
561
|
-
r.signIn(
|
|
562
|
-
}, "t2"), t[2] =
|
|
563
|
-
const
|
|
564
|
-
let
|
|
565
|
-
t[5] !==
|
|
566
|
-
c(),
|
|
567
|
-
}, "t3"), t[5] =
|
|
568
|
-
const
|
|
569
|
-
let
|
|
570
|
-
return t[8] !==
|
|
637
|
+
const s = n, [u, , c] = Y(r), i = O(s);
|
|
638
|
+
let l;
|
|
639
|
+
t[2] !== i || t[3] !== r ? (l = /* @__PURE__ */ o(async (E) => {
|
|
640
|
+
const x = typeof E == "function" ? await E() : E;
|
|
641
|
+
r.signIn(x), i.current.onSignIn?.();
|
|
642
|
+
}, "t2"), t[2] = i, t[3] = r, t[4] = l) : l = t[4];
|
|
643
|
+
const m = l;
|
|
644
|
+
let f;
|
|
645
|
+
t[5] !== i || t[6] !== c ? (f = /* @__PURE__ */ o(() => {
|
|
646
|
+
c(), i.current.onSignOut?.();
|
|
647
|
+
}, "t3"), t[5] = i, t[6] = c, t[7] = f) : f = t[7];
|
|
648
|
+
const a = f, d = u?.access?.payload ?? pe, h = u?.authenticated ?? !1;
|
|
649
|
+
let y;
|
|
650
|
+
return t[8] !== m || t[9] !== a || t[10] !== d || t[11] !== h ? (y = {
|
|
571
651
|
currentUser: d,
|
|
572
|
-
authenticated:
|
|
573
|
-
signIn:
|
|
574
|
-
signOut:
|
|
575
|
-
}, t[8] =
|
|
652
|
+
authenticated: h,
|
|
653
|
+
signIn: m,
|
|
654
|
+
signOut: a
|
|
655
|
+
}, t[8] = m, t[9] = a, t[10] = d, t[11] = h, t[12] = y) : y = t[12], y;
|
|
576
656
|
}
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
function
|
|
657
|
+
o(Re, "useSecurity");
|
|
658
|
+
const X = ce(void 0);
|
|
659
|
+
function He(r) {
|
|
580
660
|
const e = S(7);
|
|
581
|
-
let t, n,
|
|
661
|
+
let t, n, s;
|
|
582
662
|
e[0] !== r ? ({
|
|
583
663
|
tokenStorage: n,
|
|
584
664
|
children: t,
|
|
585
|
-
...
|
|
586
|
-
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] =
|
|
587
|
-
const u =
|
|
665
|
+
...s
|
|
666
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s) : (t = e[1], n = e[2], s = e[3]);
|
|
667
|
+
const u = Re(n, s);
|
|
588
668
|
let c;
|
|
589
|
-
return e[4] !== t || e[5] !== u ? (c = /* @__PURE__ */
|
|
669
|
+
return e[4] !== t || e[5] !== u ? (c = /* @__PURE__ */ A(X.Provider, { value: u, children: t }), e[4] = t, e[5] = u, e[6] = c) : c = e[6], c;
|
|
590
670
|
}
|
|
591
|
-
|
|
592
|
-
function
|
|
593
|
-
const r =
|
|
671
|
+
o(He, "SecurityProvider");
|
|
672
|
+
function Z() {
|
|
673
|
+
const r = se(X);
|
|
594
674
|
if (!r)
|
|
595
675
|
throw new Error("useSecurityContext must be used within a SecurityProvider");
|
|
596
676
|
return r;
|
|
597
677
|
}
|
|
598
|
-
|
|
599
|
-
function
|
|
678
|
+
o(Z, "useSecurityContext");
|
|
679
|
+
function Be(r) {
|
|
600
680
|
const e = S(2), {
|
|
601
681
|
children: t,
|
|
602
682
|
fallback: n,
|
|
603
|
-
onUnauthorized:
|
|
683
|
+
onUnauthorized: s
|
|
604
684
|
} = r, {
|
|
605
685
|
authenticated: u
|
|
606
|
-
} =
|
|
686
|
+
} = Z();
|
|
607
687
|
if (u) {
|
|
608
688
|
let c;
|
|
609
|
-
return e[0] !== t ? (c = /* @__PURE__ */
|
|
689
|
+
return e[0] !== t ? (c = /* @__PURE__ */ A(k, { children: t }), e[0] = t, e[1] = c) : c = e[1], c;
|
|
610
690
|
}
|
|
611
|
-
return
|
|
691
|
+
return s && s(), n;
|
|
612
692
|
}
|
|
613
|
-
|
|
614
|
-
function
|
|
693
|
+
o(Be, "RouteGuard");
|
|
694
|
+
function Ge(r) {
|
|
615
695
|
const e = S(14), {
|
|
616
696
|
children: t,
|
|
617
697
|
fallback: n,
|
|
618
|
-
refreshing:
|
|
698
|
+
refreshing: s,
|
|
619
699
|
tokenManager: u
|
|
620
700
|
} = r, {
|
|
621
701
|
authenticated: c
|
|
622
|
-
} =
|
|
623
|
-
let
|
|
624
|
-
e[0] !==
|
|
625
|
-
if (
|
|
702
|
+
} = Z(), i = u.isRefreshNeeded && u.isRefreshable;
|
|
703
|
+
let l;
|
|
704
|
+
e[0] !== i || e[1] !== u ? (l = /* @__PURE__ */ o(async () => {
|
|
705
|
+
if (i)
|
|
626
706
|
try {
|
|
627
707
|
await u.refresh();
|
|
628
|
-
} catch (
|
|
629
|
-
console.error(
|
|
708
|
+
} catch (E) {
|
|
709
|
+
console.error(E);
|
|
630
710
|
}
|
|
631
|
-
}, "t1"), e[0] =
|
|
632
|
-
const
|
|
633
|
-
let
|
|
634
|
-
if (e[3] !==
|
|
635
|
-
|
|
636
|
-
}, "t2"),
|
|
637
|
-
let
|
|
638
|
-
return e[6] !== t ? (
|
|
711
|
+
}, "t1"), e[0] = i, e[1] = u, e[2] = l) : l = e[2];
|
|
712
|
+
const m = l;
|
|
713
|
+
let f, a;
|
|
714
|
+
if (e[3] !== m ? (f = /* @__PURE__ */ o(() => {
|
|
715
|
+
m();
|
|
716
|
+
}, "t2"), a = [m], e[3] = m, e[4] = f, e[5] = a) : (f = e[4], a = e[5]), q(f, a), c) {
|
|
717
|
+
let E;
|
|
718
|
+
return e[6] !== t ? (E = /* @__PURE__ */ A(k, { children: t }), e[6] = t, e[7] = E) : E = e[7], E;
|
|
639
719
|
}
|
|
640
|
-
if (!
|
|
641
|
-
let
|
|
642
|
-
return e[8] !== n ? (
|
|
720
|
+
if (!i) {
|
|
721
|
+
let E;
|
|
722
|
+
return e[8] !== n ? (E = /* @__PURE__ */ A(k, { children: n }), e[8] = n, e[9] = E) : E = e[9], E;
|
|
643
723
|
}
|
|
644
724
|
let d;
|
|
645
|
-
e[10] !==
|
|
646
|
-
const
|
|
647
|
-
let
|
|
648
|
-
return e[12] !==
|
|
725
|
+
e[10] !== s ? (d = s ?? /* @__PURE__ */ A("p", { children: "Refreshing..." }), e[10] = s, e[11] = d) : d = e[11];
|
|
726
|
+
const h = d;
|
|
727
|
+
let y;
|
|
728
|
+
return e[12] !== h ? (y = /* @__PURE__ */ A(k, { children: h }), e[12] = h, e[13] = y) : y = e[13], y;
|
|
649
729
|
}
|
|
650
|
-
|
|
651
|
-
function
|
|
730
|
+
o(Ge, "RefreshableRouteGuard");
|
|
731
|
+
function ee(r) {
|
|
652
732
|
const e = S(21);
|
|
653
733
|
let t;
|
|
654
734
|
e[0] !== r ? (t = r || {}, e[0] = r, e[1] = t) : t = e[1];
|
|
655
735
|
const {
|
|
656
736
|
fetcher: n
|
|
657
|
-
} = t,
|
|
737
|
+
} = t, s = n === void 0 ? le.default : n, {
|
|
658
738
|
loading: u,
|
|
659
739
|
result: c,
|
|
660
|
-
error:
|
|
661
|
-
status:
|
|
662
|
-
execute:
|
|
663
|
-
reset:
|
|
664
|
-
abort:
|
|
665
|
-
} =
|
|
740
|
+
error: i,
|
|
741
|
+
status: l,
|
|
742
|
+
execute: m,
|
|
743
|
+
reset: f,
|
|
744
|
+
abort: a
|
|
745
|
+
} = T(r), [d, h] = P(void 0), y = O(r);
|
|
746
|
+
let E;
|
|
747
|
+
e[2] !== s ? (E = ie(s), e[2] = s, e[3] = E) : E = e[3];
|
|
748
|
+
const x = E;
|
|
666
749
|
let g;
|
|
667
|
-
e[
|
|
668
|
-
const E = g;
|
|
669
|
-
let b;
|
|
670
|
-
e[4] !== E || e[5] !== h || e[6] !== y ? (b = /* @__PURE__ */ s(async (O) => {
|
|
750
|
+
e[4] !== x || e[5] !== y || e[6] !== m ? (g = /* @__PURE__ */ o(async ($) => {
|
|
671
751
|
try {
|
|
672
|
-
await
|
|
673
|
-
|
|
674
|
-
const
|
|
675
|
-
return
|
|
752
|
+
await m(async (R) => {
|
|
753
|
+
$.abortController = R;
|
|
754
|
+
const _ = await x.exchange($, y.current);
|
|
755
|
+
return h(_), await _.extractResult();
|
|
676
756
|
});
|
|
677
|
-
} catch (
|
|
678
|
-
const
|
|
679
|
-
throw
|
|
757
|
+
} catch (R) {
|
|
758
|
+
const _ = R;
|
|
759
|
+
throw h(void 0), _;
|
|
680
760
|
}
|
|
681
|
-
}, "t3"), e[4] =
|
|
682
|
-
const
|
|
761
|
+
}, "t3"), e[4] = x, e[5] = y, e[6] = m, e[7] = g) : g = e[7];
|
|
762
|
+
const b = g;
|
|
683
763
|
let F;
|
|
684
|
-
e[8] !==
|
|
685
|
-
|
|
686
|
-
}, "t4"), e[8] =
|
|
687
|
-
const
|
|
688
|
-
let
|
|
689
|
-
e[10] !==
|
|
690
|
-
|
|
691
|
-
}, "t5"), e[10] =
|
|
692
|
-
const
|
|
693
|
-
let
|
|
694
|
-
return e[12] !==
|
|
764
|
+
e[8] !== f ? (F = /* @__PURE__ */ o(() => {
|
|
765
|
+
f(), h(void 0);
|
|
766
|
+
}, "t4"), e[8] = f, e[9] = F) : F = e[9];
|
|
767
|
+
const w = F;
|
|
768
|
+
let v;
|
|
769
|
+
e[10] !== a ? (v = /* @__PURE__ */ o(() => {
|
|
770
|
+
a(), h(void 0);
|
|
771
|
+
}, "t5"), e[10] = a, e[11] = v) : v = e[11];
|
|
772
|
+
const p = v;
|
|
773
|
+
let C;
|
|
774
|
+
return e[12] !== p || e[13] !== i || e[14] !== d || e[15] !== b || e[16] !== u || e[17] !== w || e[18] !== c || e[19] !== l ? (C = {
|
|
695
775
|
loading: u,
|
|
696
776
|
result: c,
|
|
697
|
-
error:
|
|
698
|
-
status:
|
|
777
|
+
error: i,
|
|
778
|
+
status: l,
|
|
699
779
|
exchange: d,
|
|
700
|
-
execute:
|
|
701
|
-
reset:
|
|
702
|
-
abort:
|
|
703
|
-
}, e[12] =
|
|
780
|
+
execute: b,
|
|
781
|
+
reset: w,
|
|
782
|
+
abort: p
|
|
783
|
+
}, e[12] = p, e[13] = i, e[14] = d, e[15] = b, e[16] = u, e[17] = w, e[18] = c, e[19] = l, e[20] = C) : C = e[20], C;
|
|
704
784
|
}
|
|
705
|
-
|
|
706
|
-
function
|
|
785
|
+
o(ee, "useFetcher");
|
|
786
|
+
function Ke(r) {
|
|
707
787
|
const e = S(11), {
|
|
708
788
|
loading: t,
|
|
709
789
|
result: n,
|
|
710
|
-
error:
|
|
790
|
+
error: s,
|
|
711
791
|
status: u,
|
|
712
792
|
exchange: c,
|
|
713
|
-
execute:
|
|
714
|
-
reset:
|
|
715
|
-
abort:
|
|
716
|
-
} =
|
|
717
|
-
run:
|
|
718
|
-
cancel:
|
|
793
|
+
execute: i,
|
|
794
|
+
reset: l,
|
|
795
|
+
abort: m
|
|
796
|
+
} = ee(r), {
|
|
797
|
+
run: f,
|
|
798
|
+
cancel: a,
|
|
719
799
|
isPending: d
|
|
720
|
-
} =
|
|
721
|
-
let
|
|
722
|
-
return e[0] !==
|
|
800
|
+
} = D(i, r.debounce);
|
|
801
|
+
let h;
|
|
802
|
+
return e[0] !== m || e[1] !== a || e[2] !== s || e[3] !== c || e[4] !== d || e[5] !== t || e[6] !== l || e[7] !== n || e[8] !== f || e[9] !== u ? (h = {
|
|
723
803
|
loading: t,
|
|
724
804
|
result: n,
|
|
725
|
-
error:
|
|
805
|
+
error: s,
|
|
726
806
|
status: u,
|
|
727
807
|
exchange: c,
|
|
728
|
-
reset:
|
|
729
|
-
abort:
|
|
730
|
-
run:
|
|
731
|
-
cancel:
|
|
808
|
+
reset: l,
|
|
809
|
+
abort: m,
|
|
810
|
+
run: f,
|
|
811
|
+
cancel: a,
|
|
732
812
|
isPending: d
|
|
733
|
-
}, e[0] =
|
|
813
|
+
}, e[0] = m, e[1] = a, e[2] = s, e[3] = c, e[4] = d, e[5] = t, e[6] = l, e[7] = n, e[8] = f, e[9] = u, e[10] = h) : h = e[10], h;
|
|
734
814
|
}
|
|
735
|
-
|
|
736
|
-
function
|
|
815
|
+
o(Ke, "useDebouncedFetcher");
|
|
816
|
+
function Ve(r) {
|
|
737
817
|
const e = S(22), t = r.autoExecute;
|
|
738
818
|
let n;
|
|
739
819
|
e[0] !== r ? (n = {
|
|
740
820
|
...r,
|
|
741
821
|
autoExecute: !1
|
|
742
822
|
}, e[0] = r, e[1] = n) : n = e[1];
|
|
743
|
-
const
|
|
823
|
+
const s = n, {
|
|
744
824
|
loading: u,
|
|
745
825
|
result: c,
|
|
746
|
-
error:
|
|
747
|
-
status:
|
|
748
|
-
execute:
|
|
749
|
-
reset:
|
|
750
|
-
abort:
|
|
826
|
+
error: i,
|
|
827
|
+
status: l,
|
|
828
|
+
execute: m,
|
|
829
|
+
reset: f,
|
|
830
|
+
abort: a,
|
|
751
831
|
getQuery: d,
|
|
752
|
-
setQuery:
|
|
753
|
-
} =
|
|
754
|
-
run:
|
|
755
|
-
cancel:
|
|
756
|
-
isPending:
|
|
757
|
-
} =
|
|
758
|
-
let
|
|
759
|
-
e[2] !== t || e[3] !==
|
|
760
|
-
|
|
761
|
-
}, "t1"), e[2] = t, e[3] =
|
|
762
|
-
const
|
|
763
|
-
let F,
|
|
764
|
-
e[6] !== t || e[7] !==
|
|
765
|
-
t &&
|
|
766
|
-
}, "t2"),
|
|
767
|
-
let
|
|
768
|
-
return e[10] !==
|
|
832
|
+
setQuery: h
|
|
833
|
+
} = M(s), {
|
|
834
|
+
run: y,
|
|
835
|
+
cancel: E,
|
|
836
|
+
isPending: x
|
|
837
|
+
} = D(m, r.debounce);
|
|
838
|
+
let g;
|
|
839
|
+
e[2] !== t || e[3] !== y || e[4] !== h ? (g = /* @__PURE__ */ o((p) => {
|
|
840
|
+
h(p), t && y();
|
|
841
|
+
}, "t1"), e[2] = t, e[3] = y, e[4] = h, e[5] = g) : g = e[5];
|
|
842
|
+
const b = g;
|
|
843
|
+
let F, w;
|
|
844
|
+
e[6] !== t || e[7] !== y ? (F = /* @__PURE__ */ o(() => {
|
|
845
|
+
t && y();
|
|
846
|
+
}, "t2"), w = [y, t], e[6] = t, e[7] = y, e[8] = F, e[9] = w) : (F = e[8], w = e[9]), q(F, w);
|
|
847
|
+
let v;
|
|
848
|
+
return e[10] !== a || e[11] !== E || e[12] !== i || e[13] !== d || e[14] !== x || e[15] !== u || e[16] !== f || e[17] !== c || e[18] !== y || e[19] !== b || e[20] !== l ? (v = {
|
|
769
849
|
loading: u,
|
|
770
850
|
result: c,
|
|
771
|
-
error:
|
|
772
|
-
status:
|
|
773
|
-
reset:
|
|
774
|
-
abort:
|
|
851
|
+
error: i,
|
|
852
|
+
status: l,
|
|
853
|
+
reset: f,
|
|
854
|
+
abort: a,
|
|
775
855
|
getQuery: d,
|
|
776
|
-
setQuery:
|
|
777
|
-
run:
|
|
778
|
-
cancel:
|
|
779
|
-
isPending:
|
|
780
|
-
}, e[10] =
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
function
|
|
856
|
+
setQuery: b,
|
|
857
|
+
run: y,
|
|
858
|
+
cancel: E,
|
|
859
|
+
isPending: x
|
|
860
|
+
}, e[10] = a, e[11] = E, e[12] = i, e[13] = d, e[14] = x, e[15] = u, e[16] = f, e[17] = c, e[18] = y, e[19] = b, e[20] = l, e[21] = v) : v = e[21], v;
|
|
861
|
+
}
|
|
862
|
+
o(Ve, "useDebouncedFetcherQuery");
|
|
863
|
+
function M(r) {
|
|
784
864
|
const e = S(23);
|
|
785
865
|
let t;
|
|
786
866
|
e[0] !== r ? (t = {
|
|
787
|
-
resultExtractor:
|
|
867
|
+
resultExtractor: ae,
|
|
788
868
|
...r
|
|
789
869
|
}, e[0] = r, e[1] = t) : t = e[1];
|
|
790
|
-
const n = t,
|
|
870
|
+
const n = t, s = O(n), {
|
|
791
871
|
loading: u,
|
|
792
872
|
result: c,
|
|
793
|
-
error:
|
|
794
|
-
status:
|
|
795
|
-
execute:
|
|
796
|
-
reset:
|
|
797
|
-
abort:
|
|
798
|
-
} =
|
|
873
|
+
error: i,
|
|
874
|
+
status: l,
|
|
875
|
+
execute: m,
|
|
876
|
+
reset: f,
|
|
877
|
+
abort: a
|
|
878
|
+
} = ee(n);
|
|
799
879
|
let d;
|
|
800
|
-
e[2] !==
|
|
801
|
-
const
|
|
802
|
-
url:
|
|
880
|
+
e[2] !== m || e[3] !== s ? (d = /* @__PURE__ */ o((w) => {
|
|
881
|
+
const v = {
|
|
882
|
+
url: s.current.url,
|
|
803
883
|
method: "POST",
|
|
804
|
-
body:
|
|
884
|
+
body: w
|
|
805
885
|
};
|
|
806
|
-
return
|
|
807
|
-
}, "t1"), e[2] =
|
|
808
|
-
const
|
|
809
|
-
let
|
|
810
|
-
e[5] !==
|
|
886
|
+
return m(v);
|
|
887
|
+
}, "t1"), e[2] = m, e[3] = s, e[4] = d) : d = e[4];
|
|
888
|
+
const h = d;
|
|
889
|
+
let y;
|
|
890
|
+
e[5] !== h || e[6] !== n.autoExecute || e[7] !== n.initialQuery || e[8] !== n.query ? (y = {
|
|
811
891
|
initialQuery: n.initialQuery,
|
|
812
892
|
query: n.query,
|
|
813
893
|
autoExecute: n.autoExecute,
|
|
814
|
-
execute:
|
|
815
|
-
}, e[5] =
|
|
894
|
+
execute: h
|
|
895
|
+
}, e[5] = h, e[6] = n.autoExecute, e[7] = n.initialQuery, e[8] = n.query, e[9] = y) : y = e[9];
|
|
816
896
|
const {
|
|
817
|
-
getQuery:
|
|
818
|
-
setQuery:
|
|
819
|
-
} = J(
|
|
820
|
-
let
|
|
821
|
-
e[10] !==
|
|
822
|
-
const
|
|
823
|
-
if (
|
|
824
|
-
return await
|
|
825
|
-
}, "t3"), e[10] =
|
|
826
|
-
const
|
|
897
|
+
getQuery: E,
|
|
898
|
+
setQuery: x
|
|
899
|
+
} = J(y);
|
|
900
|
+
let g;
|
|
901
|
+
e[10] !== h || e[11] !== E ? (g = /* @__PURE__ */ o(async () => {
|
|
902
|
+
const w = E();
|
|
903
|
+
if (z(w))
|
|
904
|
+
return await h(w);
|
|
905
|
+
}, "t3"), e[10] = h, e[11] = E, e[12] = g) : g = e[12];
|
|
906
|
+
const b = g;
|
|
827
907
|
let F;
|
|
828
|
-
return e[13] !==
|
|
908
|
+
return e[13] !== a || e[14] !== i || e[15] !== b || e[16] !== E || e[17] !== u || e[18] !== f || e[19] !== c || e[20] !== x || e[21] !== l ? (F = {
|
|
829
909
|
loading: u,
|
|
830
910
|
result: c,
|
|
831
|
-
error:
|
|
832
|
-
status:
|
|
833
|
-
execute:
|
|
834
|
-
reset:
|
|
835
|
-
abort:
|
|
836
|
-
getQuery:
|
|
837
|
-
setQuery:
|
|
838
|
-
}, e[13] =
|
|
911
|
+
error: i,
|
|
912
|
+
status: l,
|
|
913
|
+
execute: b,
|
|
914
|
+
reset: f,
|
|
915
|
+
abort: a,
|
|
916
|
+
getQuery: E,
|
|
917
|
+
setQuery: x
|
|
918
|
+
}, e[13] = a, e[14] = i, e[15] = b, e[16] = E, e[17] = u, e[18] = f, e[19] = c, e[20] = x, e[21] = l, e[22] = F) : F = e[22], F;
|
|
839
919
|
}
|
|
840
|
-
|
|
841
|
-
function
|
|
842
|
-
return
|
|
920
|
+
o(M, "useFetcherQuery");
|
|
921
|
+
function We(r) {
|
|
922
|
+
return M(r);
|
|
843
923
|
}
|
|
844
|
-
|
|
845
|
-
function
|
|
846
|
-
return
|
|
924
|
+
o(We, "useFetcherCountQuery");
|
|
925
|
+
function Je(r) {
|
|
926
|
+
return M(r);
|
|
847
927
|
}
|
|
848
|
-
|
|
849
|
-
function
|
|
928
|
+
o(Je, "useFetcherListQuery");
|
|
929
|
+
function Ye(r) {
|
|
850
930
|
const e = S(2);
|
|
851
931
|
let t;
|
|
852
932
|
return e[0] !== r ? (t = {
|
|
853
933
|
...r,
|
|
854
|
-
resultExtractor:
|
|
855
|
-
}, e[0] = r, e[1] = t) : t = e[1],
|
|
934
|
+
resultExtractor: fe
|
|
935
|
+
}, e[0] = r, e[1] = t) : t = e[1], M(t);
|
|
856
936
|
}
|
|
857
|
-
|
|
858
|
-
function
|
|
859
|
-
return
|
|
937
|
+
o(Ye, "useFetcherListStreamQuery");
|
|
938
|
+
function Xe(r) {
|
|
939
|
+
return M(r);
|
|
860
940
|
}
|
|
861
|
-
|
|
862
|
-
function
|
|
863
|
-
return
|
|
941
|
+
o(Xe, "useFetcherPagedQuery");
|
|
942
|
+
function Ze(r) {
|
|
943
|
+
return M(r);
|
|
864
944
|
}
|
|
865
|
-
|
|
866
|
-
function
|
|
867
|
-
return
|
|
945
|
+
o(Ze, "useFetcherSingleQuery");
|
|
946
|
+
function et(r) {
|
|
947
|
+
return I(r);
|
|
868
948
|
}
|
|
869
|
-
|
|
870
|
-
function
|
|
871
|
-
return
|
|
949
|
+
o(et, "useCountQuery");
|
|
950
|
+
function tt(r) {
|
|
951
|
+
return I(r);
|
|
872
952
|
}
|
|
873
|
-
|
|
874
|
-
function
|
|
875
|
-
return
|
|
953
|
+
o(tt, "useListQuery");
|
|
954
|
+
function rt(r) {
|
|
955
|
+
return I(r);
|
|
876
956
|
}
|
|
877
|
-
|
|
878
|
-
function
|
|
879
|
-
return
|
|
957
|
+
o(rt, "useListStreamQuery");
|
|
958
|
+
function nt(r) {
|
|
959
|
+
return I(r);
|
|
880
960
|
}
|
|
881
|
-
|
|
882
|
-
function
|
|
883
|
-
return
|
|
961
|
+
o(nt, "usePagedQuery");
|
|
962
|
+
function ct(r) {
|
|
963
|
+
return I(r);
|
|
884
964
|
}
|
|
885
|
-
|
|
886
|
-
function
|
|
965
|
+
o(ct, "useSingleQuery");
|
|
966
|
+
function st(r) {
|
|
887
967
|
const e = S(13), {
|
|
888
968
|
bus: t,
|
|
889
969
|
handler: n
|
|
890
970
|
} = r;
|
|
891
|
-
let
|
|
892
|
-
e[0] !== t || e[1] !== n ? (
|
|
893
|
-
const u =
|
|
971
|
+
let s;
|
|
972
|
+
e[0] !== t || e[1] !== n ? (s = /* @__PURE__ */ o(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = s) : s = e[2];
|
|
973
|
+
const u = s;
|
|
894
974
|
let c;
|
|
895
|
-
e[3] !== t || e[4] !== n.name ? (c = /* @__PURE__ */
|
|
896
|
-
const
|
|
897
|
-
let
|
|
898
|
-
e[6] !== t || e[7] !== n ? (
|
|
975
|
+
e[3] !== t || e[4] !== n.name ? (c = /* @__PURE__ */ o(() => t.off(n.name), "t1"), e[3] = t, e[4] = n.name, e[5] = c) : c = e[5];
|
|
976
|
+
const i = c;
|
|
977
|
+
let l, m;
|
|
978
|
+
e[6] !== t || e[7] !== n ? (l = /* @__PURE__ */ o(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
|
|
899
979
|
t.off(n.name);
|
|
900
|
-
}), "t2"),
|
|
901
|
-
let
|
|
902
|
-
return e[10] !== u || e[11] !==
|
|
980
|
+
}), "t2"), m = [t, n], e[6] = t, e[7] = n, e[8] = l, e[9] = m) : (l = e[8], m = e[9]), q(l, m);
|
|
981
|
+
let f;
|
|
982
|
+
return e[10] !== u || e[11] !== i ? (f = {
|
|
903
983
|
subscribe: u,
|
|
904
|
-
unsubscribe:
|
|
905
|
-
}, e[10] = u, e[11] =
|
|
984
|
+
unsubscribe: i
|
|
985
|
+
}, e[10] = u, e[11] = i, e[12] = f) : f = e[12], f;
|
|
906
986
|
}
|
|
907
|
-
|
|
987
|
+
o(st, "useEventSubscription");
|
|
908
988
|
export {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
989
|
+
pe as ANONYMOUS_USER,
|
|
990
|
+
de as PromiseStatus,
|
|
991
|
+
Ge as RefreshableRouteGuard,
|
|
992
|
+
Be as RouteGuard,
|
|
993
|
+
X as SecurityContext,
|
|
994
|
+
He as SecurityProvider,
|
|
995
|
+
xe as addFullscreenChangeListener,
|
|
996
|
+
V as collectMethods,
|
|
997
|
+
Ue as createExecuteApiHooks,
|
|
998
|
+
Ne as createQueryApiHooks,
|
|
999
|
+
Ee as enterFullscreen,
|
|
1000
|
+
ge as exitFullscreen,
|
|
1001
|
+
ye as getFullscreenElement,
|
|
1002
|
+
z as isValidateQuery,
|
|
1003
|
+
K as methodNameToHookName,
|
|
920
1004
|
be as removeFullscreenChangeListener,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
1005
|
+
et as useCountQuery,
|
|
1006
|
+
D as useDebouncedCallback,
|
|
1007
|
+
Pe as useDebouncedExecutePromise,
|
|
1008
|
+
Ke as useDebouncedFetcher,
|
|
1009
|
+
Ve as useDebouncedFetcherQuery,
|
|
1010
|
+
ke as useDebouncedQuery,
|
|
1011
|
+
st as useEventSubscription,
|
|
1012
|
+
T as useExecutePromise,
|
|
1013
|
+
ee as useFetcher,
|
|
1014
|
+
We as useFetcherCountQuery,
|
|
1015
|
+
Je as useFetcherListQuery,
|
|
1016
|
+
Ye as useFetcherListStreamQuery,
|
|
1017
|
+
Xe as useFetcherPagedQuery,
|
|
1018
|
+
M as useFetcherQuery,
|
|
1019
|
+
Ze as useFetcherSingleQuery,
|
|
1020
|
+
Te as useForceUpdate,
|
|
1021
|
+
ze as useFullscreen,
|
|
1022
|
+
je as useImmerKeyStorage,
|
|
939
1023
|
Y as useKeyStorage,
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1024
|
+
O as useLatest,
|
|
1025
|
+
tt as useListQuery,
|
|
1026
|
+
rt as useListStreamQuery,
|
|
1027
|
+
W as useMounted,
|
|
1028
|
+
nt as usePagedQuery,
|
|
1029
|
+
me as usePromiseState,
|
|
1030
|
+
I as useQuery,
|
|
947
1031
|
J as useQueryState,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1032
|
+
De as useRefs,
|
|
1033
|
+
he as useRequestId,
|
|
1034
|
+
Re as useSecurity,
|
|
1035
|
+
Z as useSecurityContext,
|
|
1036
|
+
ct as useSingleQuery
|
|
953
1037
|
};
|
|
954
1038
|
//# sourceMappingURL=index.es.js.map
|