hanap-labs 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +190 -0
  3. package/dist/auto-import/index.js +40 -0
  4. package/dist/chunks/components-BlNF7xT6.js +3951 -0
  5. package/dist/chunks/composables-C9eE_X8p.js +1393 -0
  6. package/dist/chunks/helpers-QkG7gR6t.js +6 -0
  7. package/dist/chunks/usePopup-zCvtcQsc.js +943 -0
  8. package/dist/components/index.js +2 -0
  9. package/dist/composables/index.js +3 -0
  10. package/dist/helpers/index.js +2 -0
  11. package/dist/index.js +6 -0
  12. package/dist/toolkit.css +2 -0
  13. package/dist/types/auto-import/index.d.ts +31 -0
  14. package/dist/types/components/hl-avatar/HLAvatar.types.d.ts +6 -0
  15. package/dist/types/components/hl-avatar/index.d.ts +2 -0
  16. package/dist/types/components/hl-breadcrumb/HLBreadcrumb.types.d.ts +24 -0
  17. package/dist/types/components/hl-breadcrumb/index.d.ts +2 -0
  18. package/dist/types/components/hl-breadcrumb/useBreadcrumb.d.ts +7 -0
  19. package/dist/types/components/hl-button/HLButton.types.d.ts +19 -0
  20. package/dist/types/components/hl-button/index.d.ts +2 -0
  21. package/dist/types/components/hl-checkbox/HLCheckbox.types.d.ts +17 -0
  22. package/dist/types/components/hl-checkbox/index.d.ts +2 -0
  23. package/dist/types/components/hl-icon/HLIcon.registry.d.ts +2 -0
  24. package/dist/types/components/hl-icon/HLIcon.types.d.ts +10 -0
  25. package/dist/types/components/hl-icon/index.d.ts +3 -0
  26. package/dist/types/components/hl-input/HLInput.types.d.ts +30 -0
  27. package/dist/types/components/hl-input/index.d.ts +2 -0
  28. package/dist/types/components/hl-label/HLLabel.types.d.ts +11 -0
  29. package/dist/types/components/hl-label/index.d.ts +2 -0
  30. package/dist/types/components/hl-menu-action/HLMenuAction.types.d.ts +23 -0
  31. package/dist/types/components/hl-menu-action/index.d.ts +2 -0
  32. package/dist/types/components/hl-notify/index.d.ts +12 -0
  33. package/dist/types/components/hl-popup/index.d.ts +12 -0
  34. package/dist/types/components/hl-select/HLSelect.types.d.ts +31 -0
  35. package/dist/types/components/hl-select/index.d.ts +2 -0
  36. package/dist/types/components/hl-skeleton/HLSkeleton.types.d.ts +3 -0
  37. package/dist/types/components/hl-skeleton/index.d.ts +2 -0
  38. package/dist/types/components/hl-table/HLTable.types.d.ts +35 -0
  39. package/dist/types/components/hl-table/index.d.ts +2 -0
  40. package/dist/types/components/hl-tabs/HLTabs.types.d.ts +9 -0
  41. package/dist/types/components/hl-tabs/index.d.ts +2 -0
  42. package/dist/types/components/hl-textarea/HLTextarea.types.d.ts +17 -0
  43. package/dist/types/components/hl-textarea/index.d.ts +2 -0
  44. package/dist/types/components/index.d.ts +15 -0
  45. package/dist/types/composables/data/useMutation.d.ts +12 -0
  46. package/dist/types/composables/data/useQuery.d.ts +18 -0
  47. package/dist/types/composables/form/useForm.d.ts +22 -0
  48. package/dist/types/composables/index.d.ts +9 -0
  49. package/dist/types/composables/ui/useFloat.d.ts +29 -0
  50. package/dist/types/composables/ui/useNotify.d.ts +25 -0
  51. package/dist/types/composables/ui/usePopup.d.ts +25 -0
  52. package/dist/types/helpers/formatLabel.d.ts +1 -0
  53. package/dist/types/helpers/index.d.ts +1 -0
  54. package/dist/types/index.d.ts +6 -0
  55. package/dist/types/types/index.d.ts +1 -0
  56. package/dist/types/types/ui.types.d.ts +5 -0
  57. package/package.json +97 -0
@@ -0,0 +1,1393 @@
1
+ import * as e from "vue";
2
+ import { computed as t, reactive as n, ref as r, watch as i } from "vue";
3
+ //#region \0rolldown/runtime.js
4
+ var a = Object.create, o = Object.defineProperty, s = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, l = Object.getPrototypeOf, u = Object.prototype.hasOwnProperty, d = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), f = (e, t) => {
5
+ let n = {};
6
+ for (var r in e) o(n, r, {
7
+ get: e[r],
8
+ enumerable: !0
9
+ });
10
+ return t || o(n, Symbol.toStringTag, { value: "Module" }), n;
11
+ }, p = (e, t, n, r) => {
12
+ if (t && typeof t == "object" || typeof t == "function") for (var i = c(t), a = 0, l = i.length, d; a < l; a++) d = i[a], !u.call(e, d) && d !== n && o(e, d, {
13
+ get: ((e) => t[e]).bind(null, d),
14
+ enumerable: !(r = s(t, d)) || r.enumerable
15
+ });
16
+ return e;
17
+ }, m = (e, t, n) => (p(e, t, "default"), n && p(n, t, "default")), h = (e, t, n) => (n = e == null ? {} : a(l(e)), p(t || !e || !e.__esModule ? o(n, "default", {
18
+ value: e,
19
+ enumerable: !0
20
+ }) : n, e)), g = class {
21
+ constructor() {
22
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
23
+ }
24
+ subscribe(e) {
25
+ return this.listeners.add(e), this.onSubscribe(), () => {
26
+ this.listeners.delete(e), this.onUnsubscribe();
27
+ };
28
+ }
29
+ hasListeners() {
30
+ return this.listeners.size > 0;
31
+ }
32
+ onSubscribe() {}
33
+ onUnsubscribe() {}
34
+ }, _ = new class extends g {
35
+ #e;
36
+ #t;
37
+ #n;
38
+ constructor() {
39
+ super(), this.#n = (e) => {
40
+ if (typeof window < "u" && window.addEventListener) {
41
+ let t = () => e();
42
+ return window.addEventListener("visibilitychange", t, !1), () => {
43
+ window.removeEventListener("visibilitychange", t);
44
+ };
45
+ }
46
+ };
47
+ }
48
+ onSubscribe() {
49
+ this.#t || this.setEventListener(this.#n);
50
+ }
51
+ onUnsubscribe() {
52
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
53
+ }
54
+ setEventListener(e) {
55
+ this.#n = e, this.#t?.(), this.#t = e((e) => {
56
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
57
+ });
58
+ }
59
+ setFocused(e) {
60
+ this.#e !== e && (this.#e = e, this.onFocus());
61
+ }
62
+ onFocus() {
63
+ let e = this.isFocused();
64
+ this.listeners.forEach((t) => {
65
+ t(e);
66
+ });
67
+ }
68
+ isFocused() {
69
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
70
+ }
71
+ }(), v = {
72
+ setTimeout: (e, t) => setTimeout(e, t),
73
+ clearTimeout: (e) => clearTimeout(e),
74
+ setInterval: (e, t) => setInterval(e, t),
75
+ clearInterval: (e) => clearInterval(e)
76
+ }, y = new class {
77
+ #e = v;
78
+ #t = !1;
79
+ setTimeoutProvider(e) {
80
+ 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.", {
81
+ previous: this.#e,
82
+ provider: e
83
+ }), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
84
+ }
85
+ setTimeout(e, t) {
86
+ return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
87
+ }
88
+ clearTimeout(e) {
89
+ this.#e.clearTimeout(e);
90
+ }
91
+ setInterval(e, t) {
92
+ return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
93
+ }
94
+ clearInterval(e) {
95
+ this.#e.clearInterval(e);
96
+ }
97
+ }();
98
+ function b(e) {
99
+ setTimeout(e, 0);
100
+ }
101
+ //#endregion
102
+ //#region node_modules/@tanstack/query-core/build/modern/utils.js
103
+ var x = typeof window > "u" || "Deno" in globalThis;
104
+ function S() {}
105
+ function C(e) {
106
+ return typeof e == "number" && e >= 0 && e !== Infinity;
107
+ }
108
+ function w(e, t) {
109
+ return Math.max(e + (t || 0) - Date.now(), 0);
110
+ }
111
+ function T(e, t) {
112
+ return typeof e == "function" ? e(t) : e;
113
+ }
114
+ function E(e, t) {
115
+ return typeof e == "function" ? e(t) : e;
116
+ }
117
+ var D = Object.prototype.hasOwnProperty;
118
+ function O(e, t, n = 0) {
119
+ if (e === t) return e;
120
+ if (n > 500) return t;
121
+ let r = A(e) && A(t);
122
+ if (!r && !(ee(e) && ee(t))) return t;
123
+ let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
124
+ for (let l = 0; l < o; l++) {
125
+ let o = r ? l : a[l], u = e[o], d = t[o];
126
+ if (u === d) {
127
+ s[o] = u, (r ? l < i : D.call(e, o)) && c++;
128
+ continue;
129
+ }
130
+ if (u === null || d === null || typeof u != "object" || typeof d != "object") {
131
+ s[o] = d;
132
+ continue;
133
+ }
134
+ let f = O(u, d, n + 1);
135
+ s[o] = f, f === u && c++;
136
+ }
137
+ return i === o && c === i ? e : s;
138
+ }
139
+ function k(e, t) {
140
+ if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
141
+ for (let n in e) if (e[n] !== t[n]) return !1;
142
+ return !0;
143
+ }
144
+ function A(e) {
145
+ return Array.isArray(e) && e.length === Object.keys(e).length;
146
+ }
147
+ function ee(e) {
148
+ if (!te(e)) return !1;
149
+ let t = e.constructor;
150
+ if (t === void 0) return !0;
151
+ let n = t.prototype;
152
+ return !(!te(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
153
+ }
154
+ function te(e) {
155
+ return Object.prototype.toString.call(e) === "[object Object]";
156
+ }
157
+ function j(e, t, n) {
158
+ if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
159
+ if (n.structuralSharing !== !1) {
160
+ if (process.env.NODE_ENV !== "production") try {
161
+ return O(e, t);
162
+ } catch (e) {
163
+ 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;
164
+ }
165
+ return O(e, t);
166
+ }
167
+ return t;
168
+ }
169
+ function M(e, t) {
170
+ return typeof e == "function" ? e(...t) : !!e;
171
+ }
172
+ //#endregion
173
+ //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
174
+ var N = /* @__PURE__ */ (() => {
175
+ let e = () => x;
176
+ return {
177
+ isServer() {
178
+ return e();
179
+ },
180
+ setIsServer(t) {
181
+ e = t;
182
+ }
183
+ };
184
+ })();
185
+ //#endregion
186
+ //#region node_modules/@tanstack/query-core/build/modern/thenable.js
187
+ function ne() {
188
+ let e, t, n = new Promise((n, r) => {
189
+ e = n, t = r;
190
+ });
191
+ n.status = "pending", n.catch(() => {});
192
+ function r(e) {
193
+ Object.assign(n, e), delete n.resolve, delete n.reject;
194
+ }
195
+ return n.resolve = (t) => {
196
+ r({
197
+ status: "fulfilled",
198
+ value: t
199
+ }), e(t);
200
+ }, n.reject = (e) => {
201
+ r({
202
+ status: "rejected",
203
+ reason: e
204
+ }), t(e);
205
+ }, n;
206
+ }
207
+ //#endregion
208
+ //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
209
+ var re = b;
210
+ function ie() {
211
+ let e = [], t = 0, n = (e) => {
212
+ e();
213
+ }, r = (e) => {
214
+ e();
215
+ }, i = re, a = (r) => {
216
+ t ? e.push(r) : i(() => {
217
+ n(r);
218
+ });
219
+ }, o = () => {
220
+ let t = e;
221
+ e = [], t.length && i(() => {
222
+ r(() => {
223
+ t.forEach((e) => {
224
+ n(e);
225
+ });
226
+ });
227
+ });
228
+ };
229
+ return {
230
+ batch: (e) => {
231
+ let n;
232
+ t++;
233
+ try {
234
+ n = e();
235
+ } finally {
236
+ t--, t || o();
237
+ }
238
+ return n;
239
+ },
240
+ batchCalls: (e) => (...t) => {
241
+ a(() => {
242
+ e(...t);
243
+ });
244
+ },
245
+ schedule: a,
246
+ setNotifyFunction: (e) => {
247
+ n = e;
248
+ },
249
+ setBatchNotifyFunction: (e) => {
250
+ r = e;
251
+ },
252
+ setScheduler: (e) => {
253
+ i = e;
254
+ }
255
+ };
256
+ }
257
+ var ae = ie(), oe = new class extends g {
258
+ #e = !0;
259
+ #t;
260
+ #n;
261
+ constructor() {
262
+ super(), this.#n = (e) => {
263
+ if (typeof window < "u" && window.addEventListener) {
264
+ let t = () => e(!0), n = () => e(!1);
265
+ return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
266
+ window.removeEventListener("online", t), window.removeEventListener("offline", n);
267
+ };
268
+ }
269
+ };
270
+ }
271
+ onSubscribe() {
272
+ this.#t || this.setEventListener(this.#n);
273
+ }
274
+ onUnsubscribe() {
275
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
276
+ }
277
+ setEventListener(e) {
278
+ this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
279
+ }
280
+ setOnline(e) {
281
+ this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
282
+ t(e);
283
+ }));
284
+ }
285
+ isOnline() {
286
+ return this.#e;
287
+ }
288
+ }();
289
+ //#endregion
290
+ //#region node_modules/@tanstack/query-core/build/modern/retryer.js
291
+ function se(e) {
292
+ return (e ?? "online") === "online" ? oe.isOnline() : !0;
293
+ }
294
+ //#endregion
295
+ //#region node_modules/@tanstack/query-core/build/modern/query.js
296
+ function ce(e, t) {
297
+ return {
298
+ fetchFailureCount: 0,
299
+ fetchFailureReason: null,
300
+ fetchStatus: se(t.networkMode) ? "fetching" : "paused",
301
+ ...e === void 0 && {
302
+ error: null,
303
+ status: "pending"
304
+ }
305
+ };
306
+ }
307
+ //#endregion
308
+ //#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
309
+ var le = class extends g {
310
+ constructor(e, t) {
311
+ super(), this.options = t, this.#e = e, this.#s = null, this.#o = ne(), this.bindMethods(), this.setOptions(t);
312
+ }
313
+ #e;
314
+ #t = void 0;
315
+ #n = void 0;
316
+ #r = void 0;
317
+ #i;
318
+ #a;
319
+ #o;
320
+ #s;
321
+ #c;
322
+ #l;
323
+ #u;
324
+ #d;
325
+ #f;
326
+ #p;
327
+ #m = /* @__PURE__ */ new Set();
328
+ bindMethods() {
329
+ this.refetch = this.refetch.bind(this);
330
+ }
331
+ onSubscribe() {
332
+ this.listeners.size === 1 && (this.#t.addObserver(this), de(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
333
+ }
334
+ onUnsubscribe() {
335
+ this.hasListeners() || this.destroy();
336
+ }
337
+ shouldFetchOnReconnect() {
338
+ return P(this.#t, this.options, this.options.refetchOnReconnect);
339
+ }
340
+ shouldFetchOnWindowFocus() {
341
+ return P(this.#t, this.options, this.options.refetchOnWindowFocus);
342
+ }
343
+ destroy() {
344
+ this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
345
+ }
346
+ setOptions(e) {
347
+ let t = this.options, n = this.#t;
348
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof E(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
349
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !k(this.options, t) && this.#e.getQueryCache().notify({
350
+ type: "observerOptionsUpdated",
351
+ query: this.#t,
352
+ observer: this
353
+ });
354
+ let r = this.hasListeners();
355
+ r && fe(this.#t, n, this.options, t) && this.#h(), this.updateResult(), r && (this.#t !== n || E(this.options.enabled, this.#t) !== E(t.enabled, this.#t) || T(this.options.staleTime, this.#t) !== T(t.staleTime, this.#t)) && this.#g();
356
+ let i = this.#_();
357
+ r && (this.#t !== n || E(this.options.enabled, this.#t) !== E(t.enabled, this.#t) || i !== this.#p) && this.#v(i);
358
+ }
359
+ getOptimisticResult(e) {
360
+ let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
361
+ return pe(this, n) && (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
362
+ }
363
+ getCurrentResult() {
364
+ return this.#r;
365
+ }
366
+ trackResult(e, t) {
367
+ return new Proxy(e, { get: (e, n) => (this.trackProp(n), t?.(n), n === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && this.#o.status === "pending" && this.#o.reject(/* @__PURE__ */ Error("experimental_prefetchInRender feature flag is not enabled"))), Reflect.get(e, n)) });
368
+ }
369
+ trackProp(e) {
370
+ this.#m.add(e);
371
+ }
372
+ getCurrentQuery() {
373
+ return this.#t;
374
+ }
375
+ refetch({ ...e } = {}) {
376
+ return this.fetch({ ...e });
377
+ }
378
+ fetchOptimistic(e) {
379
+ let t = this.#e.defaultQueryOptions(e), n = this.#e.getQueryCache().build(this.#e, t);
380
+ return n.fetch().then(() => this.createResult(n, t));
381
+ }
382
+ fetch(e) {
383
+ return this.#h({
384
+ ...e,
385
+ cancelRefetch: e.cancelRefetch ?? !0
386
+ }).then(() => (this.updateResult(), this.#r));
387
+ }
388
+ #h(e) {
389
+ this.#S();
390
+ let t = this.#t.fetch(this.options, e);
391
+ return e?.throwOnError || (t = t.catch(S)), t;
392
+ }
393
+ #g() {
394
+ this.#b();
395
+ let e = T(this.options.staleTime, this.#t);
396
+ if (N.isServer() || this.#r.isStale || !C(e)) return;
397
+ let t = w(this.#r.dataUpdatedAt, e) + 1;
398
+ this.#d = y.setTimeout(() => {
399
+ this.#r.isStale || this.updateResult();
400
+ }, t);
401
+ }
402
+ #_() {
403
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
404
+ }
405
+ #v(e) {
406
+ this.#x(), this.#p = e, !(N.isServer() || E(this.options.enabled, this.#t) === !1 || !C(this.#p) || this.#p === 0) && (this.#f = y.setInterval(() => {
407
+ (this.options.refetchIntervalInBackground || _.isFocused()) && this.#h();
408
+ }, this.#p));
409
+ }
410
+ #y() {
411
+ this.#g(), this.#v(this.#_());
412
+ }
413
+ #b() {
414
+ this.#d !== void 0 && (y.clearTimeout(this.#d), this.#d = void 0);
415
+ }
416
+ #x() {
417
+ this.#f !== void 0 && (y.clearInterval(this.#f), this.#f = void 0);
418
+ }
419
+ createResult(e, t) {
420
+ 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;
421
+ if (t._optimisticResults) {
422
+ let i = this.hasListeners(), a = !i && de(e, t), o = i && fe(e, n, t, r);
423
+ (a || o) && (l = {
424
+ ...l,
425
+ ...ce(c.data, e.options)
426
+ }), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
427
+ }
428
+ let { error: f, errorUpdatedAt: p, status: m } = l;
429
+ d = l.data;
430
+ let h = !1;
431
+ if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
432
+ let e;
433
+ 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 = j(i?.data, e, t), u = !0);
434
+ }
435
+ if (t.select && d !== void 0 && !h) if (i && d === a?.data && t.select === this.#c) d = this.#l;
436
+ else try {
437
+ this.#c = t.select, d = t.select(d), d = j(i?.data, d, t), this.#l = d, this.#s = null;
438
+ } catch (e) {
439
+ this.#s = e;
440
+ }
441
+ this.#s && (f = this.#s, d = this.#l, p = Date.now(), m = "error");
442
+ let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", y = _ && g, b = d !== void 0, x = {
443
+ status: m,
444
+ fetchStatus: l.fetchStatus,
445
+ isPending: _,
446
+ isSuccess: m === "success",
447
+ isError: v,
448
+ isInitialLoading: y,
449
+ isLoading: y,
450
+ data: d,
451
+ dataUpdatedAt: l.dataUpdatedAt,
452
+ error: f,
453
+ errorUpdatedAt: p,
454
+ failureCount: l.fetchFailureCount,
455
+ failureReason: l.fetchFailureReason,
456
+ errorUpdateCount: l.errorUpdateCount,
457
+ isFetched: e.isFetched(),
458
+ isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
459
+ isFetching: g,
460
+ isRefetching: g && !_,
461
+ isLoadingError: v && !b,
462
+ isPaused: l.fetchStatus === "paused",
463
+ isPlaceholderData: u,
464
+ isRefetchError: v && b,
465
+ isStale: F(e, t),
466
+ refetch: this.refetch,
467
+ promise: this.#o,
468
+ isEnabled: E(t.enabled, e) !== !1
469
+ };
470
+ if (this.options.experimental_prefetchInRender) {
471
+ let t = x.data !== void 0, r = x.status === "error" && !t, i = (e) => {
472
+ r ? e.reject(x.error) : t && e.resolve(x.data);
473
+ }, a = () => {
474
+ i(this.#o = x.promise = ne());
475
+ }, o = this.#o;
476
+ switch (o.status) {
477
+ case "pending":
478
+ e.queryHash === n.queryHash && i(o);
479
+ break;
480
+ case "fulfilled":
481
+ (r || x.data !== o.value) && a();
482
+ break;
483
+ case "rejected":
484
+ (!r || x.error !== o.reason) && a();
485
+ break;
486
+ }
487
+ }
488
+ return x;
489
+ }
490
+ updateResult() {
491
+ let e = this.#r, t = this.createResult(this.#t, this.options);
492
+ this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !k(t, e) && (this.#r = t, this.#C({ listeners: (() => {
493
+ if (!e) return !0;
494
+ let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
495
+ if (n === "all" || !n && !this.#m.size) return !0;
496
+ let r = new Set(n ?? this.#m);
497
+ return this.options.throwOnError && r.add("error"), Object.keys(this.#r).some((t) => {
498
+ let n = t;
499
+ return this.#r[n] !== e[n] && r.has(n);
500
+ });
501
+ })() }));
502
+ }
503
+ #S() {
504
+ let e = this.#e.getQueryCache().build(this.#e, this.options);
505
+ if (e === this.#t) return;
506
+ let t = this.#t;
507
+ this.#t = e, this.#n = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
508
+ }
509
+ onQueryUpdate() {
510
+ this.updateResult(), this.hasListeners() && this.#y();
511
+ }
512
+ #C(e) {
513
+ ae.batch(() => {
514
+ e.listeners && this.listeners.forEach((e) => {
515
+ e(this.#r);
516
+ }), this.#e.getQueryCache().notify({
517
+ query: this.#t,
518
+ type: "observerResultsUpdated"
519
+ });
520
+ });
521
+ }
522
+ };
523
+ function ue(e, t) {
524
+ return E(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && E(t.retryOnMount, e) === !1);
525
+ }
526
+ function de(e, t) {
527
+ return ue(e, t) || e.state.data !== void 0 && P(e, t, t.refetchOnMount);
528
+ }
529
+ function P(e, t, n) {
530
+ if (E(t.enabled, e) !== !1 && T(t.staleTime, e) !== "static") {
531
+ let r = typeof n == "function" ? n(e) : n;
532
+ return r === "always" || r !== !1 && F(e, t);
533
+ }
534
+ return !1;
535
+ }
536
+ function fe(e, t, n, r) {
537
+ return (e !== t || E(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && F(e, n);
538
+ }
539
+ function F(e, t) {
540
+ return E(t.enabled, e) !== !1 && e.isStaleByTime(T(t.staleTime, e));
541
+ }
542
+ function pe(e, t) {
543
+ return !k(e.getCurrentResult(), t);
544
+ }
545
+ //#endregion
546
+ //#region node_modules/@tanstack/vue-query/node_modules/vue-demi/lib/index.mjs
547
+ var I = /* @__PURE__ */ f({
548
+ Vue: () => e,
549
+ Vue2: () => void 0,
550
+ del: () => _e,
551
+ install: () => he,
552
+ isVue2: () => !1,
553
+ isVue3: () => !0,
554
+ set: () => ge
555
+ });
556
+ import * as me from "vue";
557
+ m(I, me);
558
+ function he() {}
559
+ function ge(e, t, n) {
560
+ return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
561
+ }
562
+ function _e(e, t) {
563
+ if (Array.isArray(e)) {
564
+ e.splice(t, 1);
565
+ return;
566
+ }
567
+ delete e[t];
568
+ }
569
+ //#endregion
570
+ //#region node_modules/@tanstack/vue-query/build/modern/utils.js
571
+ var ve = "VUE_QUERY_CLIENT";
572
+ function ye(e) {
573
+ return `${ve}${e ? `:${e}` : ""}`;
574
+ }
575
+ function L(e, t) {
576
+ Object.keys(e).forEach((n) => {
577
+ e[n] = t[n];
578
+ });
579
+ }
580
+ function R(e, t, n = "", r = 0) {
581
+ if (t) {
582
+ let i = t(e, n, r);
583
+ if (i === void 0 && (0, I.isRef)(e) || i !== void 0) return i;
584
+ }
585
+ if (Array.isArray(e)) return e.map((e, n) => R(e, t, String(n), r + 1));
586
+ if (typeof e == "object" && xe(e)) {
587
+ let n = Object.entries(e).map(([e, n]) => [e, R(n, t, e, r + 1)]);
588
+ return Object.fromEntries(n);
589
+ }
590
+ return e;
591
+ }
592
+ function be(e, t) {
593
+ return R(e, t);
594
+ }
595
+ function z(e, t = !1) {
596
+ return be(e, (e, n, r) => {
597
+ if (r === 1 && n === "queryKey") return z(e, !0);
598
+ if (t && Se(e)) return z(e(), t);
599
+ if ((0, I.isRef)(e)) return z((0, I.unref)(e), t);
600
+ });
601
+ }
602
+ function xe(e) {
603
+ if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
604
+ let t = Object.getPrototypeOf(e);
605
+ return t === null || t === Object.prototype;
606
+ }
607
+ function Se(e) {
608
+ return typeof e == "function";
609
+ }
610
+ //#endregion
611
+ //#region node_modules/@tanstack/vue-query/build/modern/useQueryClient.js
612
+ function Ce(e = "") {
613
+ if (!(0, I.hasInjectionContext)()) throw Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");
614
+ let t = (0, I.inject)(ye(e));
615
+ if (!t) throw Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");
616
+ return t;
617
+ }
618
+ //#endregion
619
+ //#region node_modules/@tanstack/vue-query/build/modern/useBaseQuery.js
620
+ function we(e, t, n) {
621
+ process.env.NODE_ENV === "development" && ((0, I.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."));
622
+ let r = n || Ce(), i = (0, I.computed)(() => {
623
+ let e = t;
624
+ typeof e == "function" && (e = e());
625
+ let n = z(e);
626
+ typeof n.enabled == "function" && (n.enabled = n.enabled());
627
+ let i = r.defaultQueryOptions(n);
628
+ return i._optimisticResults = r.isRestoring?.value ? "isRestoring" : "optimistic", i;
629
+ }), a = new e(r, i.value), o = i.value.shallow ? (0, I.shallowReactive)(a.getCurrentResult()) : (0, I.reactive)(a.getCurrentResult()), s = () => {};
630
+ r.isRestoring && (0, I.watch)(r.isRestoring, (e) => {
631
+ e || (s(), s = a.subscribe((e) => {
632
+ L(o, e);
633
+ }));
634
+ }, { immediate: !0 });
635
+ let c = () => {
636
+ a.setOptions(i.value), L(o, a.getCurrentResult());
637
+ };
638
+ (0, I.watch)(i, c), (0, I.onScopeDispose)(() => {
639
+ s();
640
+ });
641
+ let l = (...e) => (c(), o.refetch(...e)), u = () => new Promise((e, t) => {
642
+ let n = () => {}, r = () => {
643
+ if (i.value.enabled !== !1) {
644
+ a.setOptions(i.value);
645
+ let r = a.getOptimisticResult(i.value);
646
+ r.isStale ? (n(), a.fetchOptimistic(i.value).then(e, (n) => {
647
+ M(i.value.throwOnError, [n, a.getCurrentQuery()]) ? t(n) : e(a.getCurrentResult());
648
+ })) : (n(), e(r));
649
+ }
650
+ };
651
+ r(), n = (0, I.watch)(i, r);
652
+ });
653
+ (0, I.watch)(() => o.error, (e) => {
654
+ if (o.isError && !o.isFetching && M(i.value.throwOnError, [e, a.getCurrentQuery()])) throw e;
655
+ });
656
+ let d = (0, I.toRefs)(i.value.shallow ? (0, I.shallowReadonly)(o) : (0, I.readonly)(o));
657
+ for (let e in o) typeof o[e] == "function" && (d[e] = o[e]);
658
+ return d.suspense = u, d.refetch = l, d;
659
+ }
660
+ //#endregion
661
+ //#region node_modules/@tanstack/vue-query/build/modern/useQuery.js
662
+ function Te(e, t) {
663
+ return we(le, e, t);
664
+ }
665
+ //#endregion
666
+ //#region src/composables/data/useQuery.ts
667
+ var Ee = {
668
+ retry: !1,
669
+ retryOnMount: !0,
670
+ refetchOnMount: !0,
671
+ refetchOnReconnect: !1,
672
+ refetchOnWindowFocus: !1
673
+ };
674
+ function B(e = {}) {
675
+ return function(n, r) {
676
+ let { queryKey: a, onSuccess: o, onError: s, ...c } = r, l = Te({
677
+ queryKey: t(() => typeof a == "function" ? a() : a),
678
+ queryFn: n,
679
+ ...Ee,
680
+ ...e,
681
+ ...c
682
+ });
683
+ return o !== void 0 && i(() => l.data.value, (e) => {
684
+ e !== void 0 && o(e);
685
+ }, { immediate: !1 }), s !== void 0 && i(() => l.error.value, (e) => {
686
+ e !== null && s(e);
687
+ }, { immediate: !1 }), {
688
+ ...l,
689
+ run: l.refetch,
690
+ loading: l.isLoading
691
+ };
692
+ };
693
+ }
694
+ var De = B(), Oe = /* @__PURE__ */ d(((e, t) => {
695
+ function n() {
696
+ this.__data__ = [], this.size = 0;
697
+ }
698
+ t.exports = n;
699
+ })), ke = /* @__PURE__ */ d(((e, t) => {
700
+ function n(e, t) {
701
+ return e === t || e !== e && t !== t;
702
+ }
703
+ t.exports = n;
704
+ })), V = /* @__PURE__ */ d(((e, t) => {
705
+ var n = ke();
706
+ function r(e, t) {
707
+ for (var r = e.length; r--;) if (n(e[r][0], t)) return r;
708
+ return -1;
709
+ }
710
+ t.exports = r;
711
+ })), Ae = /* @__PURE__ */ d(((e, t) => {
712
+ var n = V(), r = Array.prototype.splice;
713
+ function i(e) {
714
+ var t = this.__data__, i = n(t, e);
715
+ return i < 0 ? !1 : (i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, !0);
716
+ }
717
+ t.exports = i;
718
+ })), je = /* @__PURE__ */ d(((e, t) => {
719
+ var n = V();
720
+ function r(e) {
721
+ var t = this.__data__, r = n(t, e);
722
+ return r < 0 ? void 0 : t[r][1];
723
+ }
724
+ t.exports = r;
725
+ })), Me = /* @__PURE__ */ d(((e, t) => {
726
+ var n = V();
727
+ function r(e) {
728
+ return n(this.__data__, e) > -1;
729
+ }
730
+ t.exports = r;
731
+ })), Ne = /* @__PURE__ */ d(((e, t) => {
732
+ var n = V();
733
+ function r(e, t) {
734
+ var r = this.__data__, i = n(r, e);
735
+ return i < 0 ? (++this.size, r.push([e, t])) : r[i][1] = t, this;
736
+ }
737
+ t.exports = r;
738
+ })), H = /* @__PURE__ */ d(((e, t) => {
739
+ var n = Oe(), r = Ae(), i = je(), a = Me(), o = Ne();
740
+ function s(e) {
741
+ var t = -1, n = e == null ? 0 : e.length;
742
+ for (this.clear(); ++t < n;) {
743
+ var r = e[t];
744
+ this.set(r[0], r[1]);
745
+ }
746
+ }
747
+ s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
748
+ })), Pe = /* @__PURE__ */ d(((e, t) => {
749
+ var n = H();
750
+ function r() {
751
+ this.__data__ = new n(), this.size = 0;
752
+ }
753
+ t.exports = r;
754
+ })), Fe = /* @__PURE__ */ d(((e, t) => {
755
+ function n(e) {
756
+ var t = this.__data__, n = t.delete(e);
757
+ return this.size = t.size, n;
758
+ }
759
+ t.exports = n;
760
+ })), Ie = /* @__PURE__ */ d(((e, t) => {
761
+ function n(e) {
762
+ return this.__data__.get(e);
763
+ }
764
+ t.exports = n;
765
+ })), Le = /* @__PURE__ */ d(((e, t) => {
766
+ function n(e) {
767
+ return this.__data__.has(e);
768
+ }
769
+ t.exports = n;
770
+ })), Re = /* @__PURE__ */ d(((e, t) => {
771
+ t.exports = typeof global == "object" && global && global.Object === Object && global;
772
+ })), U = /* @__PURE__ */ d(((e, t) => {
773
+ var n = Re(), r = typeof self == "object" && self && self.Object === Object && self;
774
+ t.exports = n || r || Function("return this")();
775
+ })), W = /* @__PURE__ */ d(((e, t) => {
776
+ t.exports = U().Symbol;
777
+ })), ze = /* @__PURE__ */ d(((e, t) => {
778
+ var n = W(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
779
+ function s(e) {
780
+ var t = i.call(e, o), n = e[o];
781
+ try {
782
+ e[o] = void 0;
783
+ var r = !0;
784
+ } catch {}
785
+ var s = a.call(e);
786
+ return r && (t ? e[o] = n : delete e[o]), s;
787
+ }
788
+ t.exports = s;
789
+ })), Be = /* @__PURE__ */ d(((e, t) => {
790
+ var n = Object.prototype.toString;
791
+ function r(e) {
792
+ return n.call(e);
793
+ }
794
+ t.exports = r;
795
+ })), G = /* @__PURE__ */ d(((e, t) => {
796
+ var n = W(), r = ze(), i = Be(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
797
+ function c(e) {
798
+ return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
799
+ }
800
+ t.exports = c;
801
+ })), Ve = /* @__PURE__ */ d(((e, t) => {
802
+ function n(e) {
803
+ var t = typeof e;
804
+ return e != null && (t == "object" || t == "function");
805
+ }
806
+ t.exports = n;
807
+ })), K = /* @__PURE__ */ d(((e, t) => {
808
+ var n = G(), r = Ve(), i = "[object AsyncFunction]", a = "[object Function]", o = "[object GeneratorFunction]", s = "[object Proxy]";
809
+ function c(e) {
810
+ if (!r(e)) return !1;
811
+ var t = n(e);
812
+ return t == a || t == o || t == i || t == s;
813
+ }
814
+ t.exports = c;
815
+ })), He = /* @__PURE__ */ d(((e, t) => {
816
+ t.exports = U()["__core-js_shared__"];
817
+ })), Ue = /* @__PURE__ */ d(((e, t) => {
818
+ var n = He(), r = function() {
819
+ var e = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "");
820
+ return e ? "Symbol(src)_1." + e : "";
821
+ }();
822
+ function i(e) {
823
+ return !!r && r in e;
824
+ }
825
+ t.exports = i;
826
+ })), We = /* @__PURE__ */ d(((e, t) => {
827
+ var n = Function.prototype.toString;
828
+ function r(e) {
829
+ if (e != null) {
830
+ try {
831
+ return n.call(e);
832
+ } catch {}
833
+ try {
834
+ return e + "";
835
+ } catch {}
836
+ }
837
+ return "";
838
+ }
839
+ t.exports = r;
840
+ })), Ge = /* @__PURE__ */ d(((e, t) => {
841
+ var n = K(), r = Ue(), i = Ve(), a = We(), 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.*?") + "$");
842
+ function p(e) {
843
+ return !i(e) || r(e) ? !1 : (n(e) ? f : s).test(a(e));
844
+ }
845
+ t.exports = p;
846
+ })), Ke = /* @__PURE__ */ d(((e, t) => {
847
+ function n(e, t) {
848
+ return e?.[t];
849
+ }
850
+ t.exports = n;
851
+ })), q = /* @__PURE__ */ d(((e, t) => {
852
+ var n = Ge(), r = Ke();
853
+ function i(e, t) {
854
+ var i = r(e, t);
855
+ return n(i) ? i : void 0;
856
+ }
857
+ t.exports = i;
858
+ })), J = /* @__PURE__ */ d(((e, t) => {
859
+ t.exports = q()(U(), "Map");
860
+ })), Y = /* @__PURE__ */ d(((e, t) => {
861
+ t.exports = q()(Object, "create");
862
+ })), qe = /* @__PURE__ */ d(((e, t) => {
863
+ var n = Y();
864
+ function r() {
865
+ this.__data__ = n ? n(null) : {}, this.size = 0;
866
+ }
867
+ t.exports = r;
868
+ })), Je = /* @__PURE__ */ d(((e, t) => {
869
+ function n(e) {
870
+ var t = this.has(e) && delete this.__data__[e];
871
+ return this.size -= +!!t, t;
872
+ }
873
+ t.exports = n;
874
+ })), Ye = /* @__PURE__ */ d(((e, t) => {
875
+ var n = Y(), r = "__lodash_hash_undefined__", i = Object.prototype.hasOwnProperty;
876
+ function a(e) {
877
+ var t = this.__data__;
878
+ if (n) {
879
+ var a = t[e];
880
+ return a === r ? void 0 : a;
881
+ }
882
+ return i.call(t, e) ? t[e] : void 0;
883
+ }
884
+ t.exports = a;
885
+ })), Xe = /* @__PURE__ */ d(((e, t) => {
886
+ var n = Y(), r = Object.prototype.hasOwnProperty;
887
+ function i(e) {
888
+ var t = this.__data__;
889
+ return n ? t[e] !== void 0 : r.call(t, e);
890
+ }
891
+ t.exports = i;
892
+ })), Ze = /* @__PURE__ */ d(((e, t) => {
893
+ var n = Y(), r = "__lodash_hash_undefined__";
894
+ function i(e, t) {
895
+ var i = this.__data__;
896
+ return this.size += +!this.has(e), i[e] = n && t === void 0 ? r : t, this;
897
+ }
898
+ t.exports = i;
899
+ })), Qe = /* @__PURE__ */ d(((e, t) => {
900
+ var n = qe(), r = Je(), i = Ye(), a = Xe(), o = Ze();
901
+ function s(e) {
902
+ var t = -1, n = e == null ? 0 : e.length;
903
+ for (this.clear(); ++t < n;) {
904
+ var r = e[t];
905
+ this.set(r[0], r[1]);
906
+ }
907
+ }
908
+ s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
909
+ })), $e = /* @__PURE__ */ d(((e, t) => {
910
+ var n = Qe(), r = H(), i = J();
911
+ function a() {
912
+ this.size = 0, this.__data__ = {
913
+ hash: new n(),
914
+ map: new (i || r)(),
915
+ string: new n()
916
+ };
917
+ }
918
+ t.exports = a;
919
+ })), et = /* @__PURE__ */ d(((e, t) => {
920
+ function n(e) {
921
+ var t = typeof e;
922
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
923
+ }
924
+ t.exports = n;
925
+ })), X = /* @__PURE__ */ d(((e, t) => {
926
+ var n = et();
927
+ function r(e, t) {
928
+ var r = e.__data__;
929
+ return n(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
930
+ }
931
+ t.exports = r;
932
+ })), tt = /* @__PURE__ */ d(((e, t) => {
933
+ var n = X();
934
+ function r(e) {
935
+ var t = n(this, e).delete(e);
936
+ return this.size -= +!!t, t;
937
+ }
938
+ t.exports = r;
939
+ })), nt = /* @__PURE__ */ d(((e, t) => {
940
+ var n = X();
941
+ function r(e) {
942
+ return n(this, e).get(e);
943
+ }
944
+ t.exports = r;
945
+ })), rt = /* @__PURE__ */ d(((e, t) => {
946
+ var n = X();
947
+ function r(e) {
948
+ return n(this, e).has(e);
949
+ }
950
+ t.exports = r;
951
+ })), it = /* @__PURE__ */ d(((e, t) => {
952
+ var n = X();
953
+ function r(e, t) {
954
+ var r = n(this, e), i = r.size;
955
+ return r.set(e, t), this.size += r.size == i ? 0 : 1, this;
956
+ }
957
+ t.exports = r;
958
+ })), at = /* @__PURE__ */ d(((e, t) => {
959
+ var n = $e(), r = tt(), i = nt(), a = rt(), o = it();
960
+ function s(e) {
961
+ var t = -1, n = e == null ? 0 : e.length;
962
+ for (this.clear(); ++t < n;) {
963
+ var r = e[t];
964
+ this.set(r[0], r[1]);
965
+ }
966
+ }
967
+ s.prototype.clear = n, s.prototype.delete = r, s.prototype.get = i, s.prototype.has = a, s.prototype.set = o, t.exports = s;
968
+ })), ot = /* @__PURE__ */ d(((e, t) => {
969
+ var n = H(), r = J(), i = at(), a = 200;
970
+ function o(e, t) {
971
+ var o = this.__data__;
972
+ if (o instanceof n) {
973
+ var s = o.__data__;
974
+ if (!r || s.length < a - 1) return s.push([e, t]), this.size = ++o.size, this;
975
+ o = this.__data__ = new i(s);
976
+ }
977
+ return o.set(e, t), this.size = o.size, this;
978
+ }
979
+ t.exports = o;
980
+ })), st = /* @__PURE__ */ d(((e, t) => {
981
+ var n = H(), r = Pe(), i = Fe(), a = Ie(), o = Le(), s = ot();
982
+ function c(e) {
983
+ var t = this.__data__ = new n(e);
984
+ this.size = t.size;
985
+ }
986
+ c.prototype.clear = r, c.prototype.delete = i, c.prototype.get = a, c.prototype.has = o, c.prototype.set = s, t.exports = c;
987
+ })), ct = /* @__PURE__ */ d(((e, t) => {
988
+ var n = "__lodash_hash_undefined__";
989
+ function r(e) {
990
+ return this.__data__.set(e, n), this;
991
+ }
992
+ t.exports = r;
993
+ })), lt = /* @__PURE__ */ d(((e, t) => {
994
+ function n(e) {
995
+ return this.__data__.has(e);
996
+ }
997
+ t.exports = n;
998
+ })), ut = /* @__PURE__ */ d(((e, t) => {
999
+ var n = at(), r = ct(), i = lt();
1000
+ function a(e) {
1001
+ var t = -1, r = e == null ? 0 : e.length;
1002
+ for (this.__data__ = new n(); ++t < r;) this.add(e[t]);
1003
+ }
1004
+ a.prototype.add = a.prototype.push = r, a.prototype.has = i, t.exports = a;
1005
+ })), dt = /* @__PURE__ */ d(((e, t) => {
1006
+ function n(e, t) {
1007
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
1008
+ return !1;
1009
+ }
1010
+ t.exports = n;
1011
+ })), ft = /* @__PURE__ */ d(((e, t) => {
1012
+ function n(e, t) {
1013
+ return e.has(t);
1014
+ }
1015
+ t.exports = n;
1016
+ })), pt = /* @__PURE__ */ d(((e, t) => {
1017
+ var n = ut(), r = dt(), i = ft(), a = 1, o = 2;
1018
+ function s(e, t, s, c, l, u) {
1019
+ var d = s & a, f = e.length, p = t.length;
1020
+ if (f != p && !(d && p > f)) return !1;
1021
+ var m = u.get(e), h = u.get(t);
1022
+ if (m && h) return m == t && h == e;
1023
+ var g = -1, _ = !0, v = s & o ? new n() : void 0;
1024
+ for (u.set(e, t), u.set(t, e); ++g < f;) {
1025
+ var y = e[g], b = t[g];
1026
+ if (c) var x = d ? c(b, y, g, t, e, u) : c(y, b, g, e, t, u);
1027
+ if (x !== void 0) {
1028
+ if (x) continue;
1029
+ _ = !1;
1030
+ break;
1031
+ }
1032
+ if (v) {
1033
+ if (!r(t, function(e, t) {
1034
+ if (!i(v, t) && (y === e || l(y, e, s, c, u))) return v.push(t);
1035
+ })) {
1036
+ _ = !1;
1037
+ break;
1038
+ }
1039
+ } else if (!(y === b || l(y, b, s, c, u))) {
1040
+ _ = !1;
1041
+ break;
1042
+ }
1043
+ }
1044
+ return u.delete(e), u.delete(t), _;
1045
+ }
1046
+ t.exports = s;
1047
+ })), mt = /* @__PURE__ */ d(((e, t) => {
1048
+ t.exports = U().Uint8Array;
1049
+ })), ht = /* @__PURE__ */ d(((e, t) => {
1050
+ function n(e) {
1051
+ var t = -1, n = Array(e.size);
1052
+ return e.forEach(function(e, r) {
1053
+ n[++t] = [r, e];
1054
+ }), n;
1055
+ }
1056
+ t.exports = n;
1057
+ })), gt = /* @__PURE__ */ d(((e, t) => {
1058
+ function n(e) {
1059
+ var t = -1, n = Array(e.size);
1060
+ return e.forEach(function(e) {
1061
+ n[++t] = e;
1062
+ }), n;
1063
+ }
1064
+ t.exports = n;
1065
+ })), _t = /* @__PURE__ */ d(((e, t) => {
1066
+ var n = W(), r = mt(), i = ke(), a = pt(), o = ht(), s = gt(), 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;
1067
+ function C(e, t, n, x, C, w, T) {
1068
+ switch (n) {
1069
+ case b:
1070
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
1071
+ e = e.buffer, t = t.buffer;
1072
+ case y: return !(e.byteLength != t.byteLength || !w(new r(e), new r(t)));
1073
+ case u:
1074
+ case d:
1075
+ case m: return i(+e, +t);
1076
+ case f: return e.name == t.name && e.message == t.message;
1077
+ case h:
1078
+ case _: return e == t + "";
1079
+ case p: var E = o;
1080
+ case g:
1081
+ var D = x & c;
1082
+ if (E ||= s, e.size != t.size && !D) return !1;
1083
+ var O = T.get(e);
1084
+ if (O) return O == t;
1085
+ x |= l, T.set(e, t);
1086
+ var k = a(E(e), E(t), x, C, w, T);
1087
+ return T.delete(e), k;
1088
+ case v: if (S) return S.call(e) == S.call(t);
1089
+ }
1090
+ return !1;
1091
+ }
1092
+ t.exports = C;
1093
+ })), vt = /* @__PURE__ */ d(((e, t) => {
1094
+ function n(e, t) {
1095
+ for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
1096
+ return e;
1097
+ }
1098
+ t.exports = n;
1099
+ })), Z = /* @__PURE__ */ d(((e, t) => {
1100
+ t.exports = Array.isArray;
1101
+ })), yt = /* @__PURE__ */ d(((e, t) => {
1102
+ var n = vt(), r = Z();
1103
+ function i(e, t, i) {
1104
+ var a = t(e);
1105
+ return r(e) ? a : n(a, i(e));
1106
+ }
1107
+ t.exports = i;
1108
+ })), bt = /* @__PURE__ */ d(((e, t) => {
1109
+ function n(e, t) {
1110
+ for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
1111
+ var o = e[n];
1112
+ t(o, n, e) && (a[i++] = o);
1113
+ }
1114
+ return a;
1115
+ }
1116
+ t.exports = n;
1117
+ })), xt = /* @__PURE__ */ d(((e, t) => {
1118
+ function n() {
1119
+ return [];
1120
+ }
1121
+ t.exports = n;
1122
+ })), St = /* @__PURE__ */ d(((e, t) => {
1123
+ var n = bt(), r = xt(), i = Object.prototype.propertyIsEnumerable, a = Object.getOwnPropertySymbols;
1124
+ t.exports = a ? function(e) {
1125
+ return e == null ? [] : (e = Object(e), n(a(e), function(t) {
1126
+ return i.call(e, t);
1127
+ }));
1128
+ } : r;
1129
+ })), Ct = /* @__PURE__ */ d(((e, t) => {
1130
+ function n(e, t) {
1131
+ for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
1132
+ return r;
1133
+ }
1134
+ t.exports = n;
1135
+ })), Q = /* @__PURE__ */ d(((e, t) => {
1136
+ function n(e) {
1137
+ return typeof e == "object" && !!e;
1138
+ }
1139
+ t.exports = n;
1140
+ })), wt = /* @__PURE__ */ d(((e, t) => {
1141
+ var n = G(), r = Q(), i = "[object Arguments]";
1142
+ function a(e) {
1143
+ return r(e) && n(e) == i;
1144
+ }
1145
+ t.exports = a;
1146
+ })), Tt = /* @__PURE__ */ d(((e, t) => {
1147
+ var n = wt(), r = Q(), i = Object.prototype, a = i.hasOwnProperty, o = i.propertyIsEnumerable;
1148
+ t.exports = n(function() {
1149
+ return arguments;
1150
+ }()) ? n : function(e) {
1151
+ return r(e) && a.call(e, "callee") && !o.call(e, "callee");
1152
+ };
1153
+ })), Et = /* @__PURE__ */ d(((e, t) => {
1154
+ function n() {
1155
+ return !1;
1156
+ }
1157
+ t.exports = n;
1158
+ })), Dt = /* @__PURE__ */ d(((e, t) => {
1159
+ var n = U(), r = Et(), 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;
1160
+ t.exports = (o ? o.isBuffer : void 0) || r;
1161
+ })), Ot = /* @__PURE__ */ d(((e, t) => {
1162
+ var n = 9007199254740991, r = /^(?:0|[1-9]\d*)$/;
1163
+ function i(e, t) {
1164
+ var i = typeof e;
1165
+ return t ??= n, !!t && (i == "number" || i != "symbol" && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
1166
+ }
1167
+ t.exports = i;
1168
+ })), kt = /* @__PURE__ */ d(((e, t) => {
1169
+ var n = 9007199254740991;
1170
+ function r(e) {
1171
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= n;
1172
+ }
1173
+ t.exports = r;
1174
+ })), At = /* @__PURE__ */ d(((e, t) => {
1175
+ var n = G(), r = kt(), i = Q(), 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 = {};
1176
+ 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;
1177
+ function A(e) {
1178
+ return i(e) && r(e.length) && !!k[n(e)];
1179
+ }
1180
+ t.exports = A;
1181
+ })), jt = /* @__PURE__ */ d(((e, t) => {
1182
+ function n(e) {
1183
+ return function(t) {
1184
+ return e(t);
1185
+ };
1186
+ }
1187
+ t.exports = n;
1188
+ })), Mt = /* @__PURE__ */ d(((e, t) => {
1189
+ var n = Re(), r = typeof e == "object" && e && !e.nodeType && e, i = r && typeof t == "object" && t && !t.nodeType && t, a = i && i.exports === r && n.process;
1190
+ t.exports = function() {
1191
+ try {
1192
+ return i && i.require && i.require("util").types || a && a.binding && a.binding("util");
1193
+ } catch {}
1194
+ }();
1195
+ })), $ = /* @__PURE__ */ d(((e, t) => {
1196
+ var n = At(), r = jt(), i = Mt(), a = i && i.isTypedArray;
1197
+ t.exports = a ? r(a) : n;
1198
+ })), Nt = /* @__PURE__ */ d(((e, t) => {
1199
+ var n = Ct(), r = Tt(), i = Z(), a = Dt(), o = Ot(), s = $(), c = Object.prototype.hasOwnProperty;
1200
+ function l(e, t) {
1201
+ 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;
1202
+ 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);
1203
+ return m;
1204
+ }
1205
+ t.exports = l;
1206
+ })), Pt = /* @__PURE__ */ d(((e, t) => {
1207
+ var n = Object.prototype;
1208
+ function r(e) {
1209
+ var t = e && e.constructor;
1210
+ return e === (typeof t == "function" && t.prototype || n);
1211
+ }
1212
+ t.exports = r;
1213
+ })), Ft = /* @__PURE__ */ d(((e, t) => {
1214
+ function n(e, t) {
1215
+ return function(n) {
1216
+ return e(t(n));
1217
+ };
1218
+ }
1219
+ t.exports = n;
1220
+ })), It = /* @__PURE__ */ d(((e, t) => {
1221
+ t.exports = Ft()(Object.keys, Object);
1222
+ })), Lt = /* @__PURE__ */ d(((e, t) => {
1223
+ var n = Pt(), r = It(), i = Object.prototype.hasOwnProperty;
1224
+ function a(e) {
1225
+ if (!n(e)) return r(e);
1226
+ var t = [];
1227
+ for (var a in Object(e)) i.call(e, a) && a != "constructor" && t.push(a);
1228
+ return t;
1229
+ }
1230
+ t.exports = a;
1231
+ })), Rt = /* @__PURE__ */ d(((e, t) => {
1232
+ var n = K(), r = kt();
1233
+ function i(e) {
1234
+ return e != null && r(e.length) && !n(e);
1235
+ }
1236
+ t.exports = i;
1237
+ })), zt = /* @__PURE__ */ d(((e, t) => {
1238
+ var n = Nt(), r = Lt(), i = Rt();
1239
+ function a(e) {
1240
+ return i(e) ? n(e) : r(e);
1241
+ }
1242
+ t.exports = a;
1243
+ })), Bt = /* @__PURE__ */ d(((e, t) => {
1244
+ var n = yt(), r = St(), i = zt();
1245
+ function a(e) {
1246
+ return n(e, i, r);
1247
+ }
1248
+ t.exports = a;
1249
+ })), Vt = /* @__PURE__ */ d(((e, t) => {
1250
+ var n = Bt(), r = 1, i = Object.prototype.hasOwnProperty;
1251
+ function a(e, t, a, o, s, c) {
1252
+ var l = a & r, u = n(e), d = u.length;
1253
+ if (d != n(t).length && !l) return !1;
1254
+ for (var f = d; f--;) {
1255
+ var p = u[f];
1256
+ if (!(l ? p in t : i.call(t, p))) return !1;
1257
+ }
1258
+ var m = c.get(e), h = c.get(t);
1259
+ if (m && h) return m == t && h == e;
1260
+ var g = !0;
1261
+ c.set(e, t), c.set(t, e);
1262
+ for (var _ = l; ++f < d;) {
1263
+ p = u[f];
1264
+ var v = e[p], y = t[p];
1265
+ if (o) var b = l ? o(y, v, p, t, e, c) : o(v, y, p, e, t, c);
1266
+ if (!(b === void 0 ? v === y || s(v, y, a, o, c) : b)) {
1267
+ g = !1;
1268
+ break;
1269
+ }
1270
+ _ ||= p == "constructor";
1271
+ }
1272
+ if (g && !_) {
1273
+ var x = e.constructor, S = t.constructor;
1274
+ x != S && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof S == "function" && S instanceof S) && (g = !1);
1275
+ }
1276
+ return c.delete(e), c.delete(t), g;
1277
+ }
1278
+ t.exports = a;
1279
+ })), Ht = /* @__PURE__ */ d(((e, t) => {
1280
+ t.exports = q()(U(), "DataView");
1281
+ })), Ut = /* @__PURE__ */ d(((e, t) => {
1282
+ t.exports = q()(U(), "Promise");
1283
+ })), Wt = /* @__PURE__ */ d(((e, t) => {
1284
+ t.exports = q()(U(), "Set");
1285
+ })), Gt = /* @__PURE__ */ d(((e, t) => {
1286
+ t.exports = q()(U(), "WeakMap");
1287
+ })), Kt = /* @__PURE__ */ d(((e, t) => {
1288
+ var n = Ht(), r = J(), i = Ut(), a = Wt(), o = Gt(), s = G(), c = We(), 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;
1289
+ (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) {
1290
+ var t = s(e), n = t == u ? e.constructor : void 0, r = n ? c(n) : "";
1291
+ if (r) switch (r) {
1292
+ case h: return m;
1293
+ case g: return l;
1294
+ case _: return d;
1295
+ case v: return f;
1296
+ case y: return p;
1297
+ }
1298
+ return t;
1299
+ }), t.exports = b;
1300
+ })), qt = /* @__PURE__ */ d(((e, t) => {
1301
+ var n = st(), r = pt(), i = _t(), a = Vt(), o = Kt(), s = Z(), c = Dt(), l = $(), u = 1, d = "[object Arguments]", f = "[object Array]", p = "[object Object]", m = Object.prototype.hasOwnProperty;
1302
+ function h(e, t, h, g, _, v) {
1303
+ var y = s(e), b = s(t), x = y ? f : o(e), S = b ? f : o(t);
1304
+ x = x == d ? p : x, S = S == d ? p : S;
1305
+ var C = x == p, w = S == p, T = x == S;
1306
+ if (T && c(e)) {
1307
+ if (!c(t)) return !1;
1308
+ y = !0, C = !1;
1309
+ }
1310
+ if (T && !C) return v ||= new n(), y || l(e) ? r(e, t, h, g, _, v) : i(e, t, x, h, g, _, v);
1311
+ if (!(h & u)) {
1312
+ var E = C && m.call(e, "__wrapped__"), D = w && m.call(t, "__wrapped__");
1313
+ if (E || D) {
1314
+ var O = E ? e.value() : e, k = D ? t.value() : t;
1315
+ return v ||= new n(), _(O, k, h, g, v);
1316
+ }
1317
+ }
1318
+ return T ? (v ||= new n(), a(e, t, h, g, _, v)) : !1;
1319
+ }
1320
+ t.exports = h;
1321
+ })), Jt = /* @__PURE__ */ d(((e, t) => {
1322
+ var n = qt(), r = Q();
1323
+ function i(e, t, a, o, s) {
1324
+ return e === t ? !0 : e == null || t == null || !r(e) && !r(t) ? e !== e && t !== t : n(e, t, a, o, i, s);
1325
+ }
1326
+ t.exports = i;
1327
+ })), Yt = /* @__PURE__ */ h((/* @__PURE__ */ d(((e, t) => {
1328
+ var n = Jt();
1329
+ function r(e, t) {
1330
+ return n(e, t);
1331
+ }
1332
+ t.exports = r;
1333
+ })))(), 1), Xt = (e) => {
1334
+ let t = e.error.flatten().fieldErrors, n = {};
1335
+ for (let [e, r] of Object.entries(t)) Array.isArray(r) && r.length > 0 && (n[e] = r);
1336
+ return n;
1337
+ };
1338
+ function Zt(e, a) {
1339
+ let o = n({ ...e }), s = r({}), c = r({ ...e }), l = t(() => !(0, Yt.default)({ ...o }, c.value)), u = () => {
1340
+ s.value = {};
1341
+ }, d = (e) => {
1342
+ s.value = {
1343
+ ...s.value,
1344
+ ...e
1345
+ };
1346
+ }, f = () => ({ ...o }), p = () => {
1347
+ if (!a) return u(), {
1348
+ valid: !0,
1349
+ data: f()
1350
+ };
1351
+ let e = a.safeParse(f());
1352
+ return e.success ? (u(), {
1353
+ valid: !0,
1354
+ data: e.data
1355
+ }) : (s.value = Xt(e), {
1356
+ valid: !1,
1357
+ errors: s.value
1358
+ });
1359
+ }, m = (e) => {
1360
+ if (!a) return;
1361
+ let t = a.safeParse(f()), n = e, { [n]: r, ...i } = s.value;
1362
+ if (t.success) {
1363
+ s.value = i;
1364
+ return;
1365
+ }
1366
+ let o = t.error.flatten().fieldErrors[n];
1367
+ s.value = o?.length ? {
1368
+ ...i,
1369
+ [n]: o
1370
+ } : i;
1371
+ };
1372
+ return i(f, (e, t) => {
1373
+ for (let n of Object.keys(e)) t?.[n] !== e[n] && m(n);
1374
+ }, { deep: !0 }), {
1375
+ form: o,
1376
+ errors: s,
1377
+ isDirty: l,
1378
+ validate: p,
1379
+ reset: (e) => {
1380
+ let t = {
1381
+ ...c.value,
1382
+ ...e
1383
+ };
1384
+ c.value = { ...t };
1385
+ for (let e of Object.keys(t)) o[e] = t[e];
1386
+ u();
1387
+ },
1388
+ clearErrors: u,
1389
+ setErrors: d
1390
+ };
1391
+ }
1392
+ //#endregion
1393
+ export { B as n, De as r, Zt as t };