xmirror-components 1.0.3 → 1.0.4

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 (61) hide show
  1. package/build/dist/xmirror-components.js +1347 -523
  2. package/build/dist/xmirror-components.umd.cjs +12 -12
  3. package/build/es/hooks/index.d.ts +1 -0
  4. package/build/es/hooks/index.js +1 -0
  5. package/build/es/hooks/useRequest/index.d.ts +19 -0
  6. package/build/es/hooks/useRequest/index.js +28 -0
  7. package/build/{es/Button → lib/hooks}/index.js +3 -2
  8. package/build/lib/hooks/useRequest/index.js +30 -0
  9. package/build/package.json +1 -1
  10. package/package.json +1 -1
  11. package/build/es/Button/button.d.ts +0 -6
  12. package/build/es/Button/button.js +0 -22
  13. package/build/es/Button/index.d.ts +0 -3
  14. package/build/es/ChunkUploader/FileItem.d.ts +0 -13
  15. package/build/es/ChunkUploader/FileItem.js +0 -472
  16. package/build/es/ChunkUploader/UploaderContext.d.ts +0 -8
  17. package/build/es/ChunkUploader/UploaderContext.js +0 -65
  18. package/build/es/ChunkUploader/generateFileUniqueID.d.ts +0 -2
  19. package/build/es/ChunkUploader/generateFileUniqueID.js +0 -140
  20. package/build/es/ChunkUploader/index.d.ts +0 -4
  21. package/build/es/ChunkUploader/index.js +0 -259
  22. package/build/es/GlobalLoading/index.d.ts +0 -11
  23. package/build/es/GlobalLoading/index.js +0 -32
  24. package/build/es/LevelGroup/index.d.ts +0 -10
  25. package/build/es/LevelGroup/index.js +0 -33
  26. package/build/es/LevelTag/index.d.ts +0 -21
  27. package/build/es/LevelTag/index.js +0 -84
  28. package/build/es/SearchArea/Item/index.d.ts +0 -13
  29. package/build/es/SearchArea/Item/index.js +0 -38
  30. package/build/es/SearchArea/ToggleButton/index.d.ts +0 -9
  31. package/build/es/SearchArea/ToggleButton/index.js +0 -24
  32. package/build/es/SearchArea/index.d.ts +0 -13
  33. package/build/es/SearchArea/index.js +0 -153
  34. package/build/es/Table/Footer/index.d.ts +0 -3
  35. package/build/es/Table/Footer/index.js +0 -82
  36. package/build/es/Table/PopoverSetColumns/index.d.ts +0 -11
  37. package/build/es/Table/PopoverSetColumns/index.js +0 -164
  38. package/build/es/Table/index.d.ts +0 -4
  39. package/build/es/Table/index.js +0 -230
  40. package/build/es/Uploader/index.d.ts +0 -10
  41. package/build/es/Uploader/index.js +0 -175
  42. package/build/lib/Button/button.js +0 -22
  43. package/build/lib/Button/index.js +0 -7
  44. /package/build/es/{AntdApp → components/AntdApp}/index.d.ts +0 -0
  45. /package/build/es/{AntdApp → components/AntdApp}/index.js +0 -0
  46. /package/build/es/{CheckboxValue → components/CheckboxValue}/index.d.ts +0 -0
  47. /package/build/es/{CheckboxValue → components/CheckboxValue}/index.js +0 -0
  48. /package/build/es/{IconButton → components/IconButton}/index.d.ts +0 -0
  49. /package/build/es/{IconButton → components/IconButton}/index.js +0 -0
  50. /package/build/es/{IconFont → components/IconFont}/index.d.ts +0 -0
  51. /package/build/es/{IconFont → components/IconFont}/index.js +0 -0
  52. /package/build/es/{SwitchValue → components/SwitchValue}/index.d.ts +0 -0
  53. /package/build/es/{SwitchValue → components/SwitchValue}/index.js +0 -0
  54. /package/build/es/{index.d.ts → components/index.d.ts} +0 -0
  55. /package/build/es/{index.js → components/index.js} +0 -0
  56. /package/build/lib/{AntdApp → components/AntdApp}/index.js +0 -0
  57. /package/build/lib/{CheckboxValue → components/CheckboxValue}/index.js +0 -0
  58. /package/build/lib/{IconButton → components/IconButton}/index.js +0 -0
  59. /package/build/lib/{IconFont → components/IconFont}/index.js +0 -0
  60. /package/build/lib/{SwitchValue → components/SwitchValue}/index.js +0 -0
  61. /package/build/lib/{index.js → components/index.js} +0 -0
@@ -1,9 +1,10 @@
1
- import Oe, { useRef as R, useEffect as Re, useState as qe, useMemo as Ae, forwardRef as Ve, Fragment as Be } from "react";
2
- import { Checkbox as Ie, Button as ze, Tooltip as Ge, Switch as He, message as Je, notification as Xe, Modal as Ze, App as Qe } from "antd";
3
- function Ke(r) {
4
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1
+ import Pr, { useRef as j, useMemo as he, useEffect as J, useState as Ar, useCallback as Yr, forwardRef as Hr, Fragment as Ur } from "react";
2
+ import { Checkbox as zr, Button as Dr, Tooltip as Vr, Switch as Jr, message as Xr, notification as Zr, Modal as Qr, App as Kr } from "antd";
3
+ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
+ function Ye(e) {
5
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
6
  }
6
- var W = { exports: {} }, P = {};
7
+ var ve = { exports: {} }, te = {};
7
8
  /**
8
9
  * @license React
9
10
  * react-jsx-runtime.production.js
@@ -13,29 +14,29 @@ var W = { exports: {} }, P = {};
13
14
  * This source code is licensed under the MIT license found in the
14
15
  * LICENSE file in the root directory of this source tree.
15
16
  */
16
- var _e;
17
- function De() {
18
- if (_e) return P;
19
- _e = 1;
20
- var r = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
21
- function t(c, u, n) {
22
- var s = null;
23
- if (n !== void 0 && (s = "" + n), u.key !== void 0 && (s = "" + u.key), "key" in u) {
24
- n = {};
25
- for (var f in u)
26
- f !== "key" && (n[f] = u[f]);
27
- } else n = u;
28
- return u = n.ref, {
29
- $$typeof: r,
30
- type: c,
31
- key: s,
32
- ref: u !== void 0 ? u : null,
33
- props: n
17
+ var ur;
18
+ function et() {
19
+ if (ur) return te;
20
+ ur = 1;
21
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
22
+ function r(a, i, o) {
23
+ var c = null;
24
+ if (o !== void 0 && (c = "" + o), i.key !== void 0 && (c = "" + i.key), "key" in i) {
25
+ o = {};
26
+ for (var s in i)
27
+ s !== "key" && (o[s] = i[s]);
28
+ } else o = i;
29
+ return i = o.ref, {
30
+ $$typeof: e,
31
+ type: a,
32
+ key: c,
33
+ ref: i !== void 0 ? i : null,
34
+ props: o
34
35
  };
35
36
  }
36
- return P.Fragment = i, P.jsx = t, P.jsxs = t, P;
37
+ return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
37
38
  }
38
- var $ = {};
39
+ var ne = {};
39
40
  /**
40
41
  * @license React
41
42
  * react-jsx-runtime.development.js
@@ -45,740 +46,1563 @@ var $ = {};
45
46
  * This source code is licensed under the MIT license found in the
46
47
  * LICENSE file in the root directory of this source tree.
47
48
  */
48
- var he;
49
- function er() {
50
- return he || (he = 1, process.env.NODE_ENV !== "production" && function() {
51
- function r(e) {
52
- if (e == null) return null;
53
- if (typeof e == "function")
54
- return e.$$typeof === Ue ? null : e.displayName || e.name || null;
55
- if (typeof e == "string") return e;
56
- switch (e) {
57
- case V:
49
+ var cr;
50
+ function rt() {
51
+ return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
52
+ function e(n) {
53
+ if (n == null) return null;
54
+ if (typeof n == "function")
55
+ return n.$$typeof === Ir ? null : n.displayName || n.name || null;
56
+ if (typeof n == "string") return n;
57
+ switch (n) {
58
+ case B:
58
59
  return "Fragment";
59
- case Me:
60
+ case Y:
60
61
  return "Portal";
61
- case ne:
62
+ case P:
62
63
  return "Profiler";
63
- case te:
64
+ case $:
64
65
  return "StrictMode";
65
- case I:
66
+ case H:
66
67
  return "Suspense";
67
- case z:
68
+ case T:
68
69
  return "SuspenseList";
69
70
  }
70
- if (typeof e == "object")
71
- switch (typeof e.tag == "number" && console.error(
71
+ if (typeof n == "object")
72
+ switch (typeof n.tag == "number" && console.error(
72
73
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
- ), e.$$typeof) {
74
- case ae:
75
- return (e.displayName || "Context") + ".Provider";
76
- case oe:
77
- return (e._context.displayName || "Context") + ".Consumer";
78
- case B:
79
- var o = e.render;
80
- return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
81
- case G:
82
- return o = e.displayName || null, o !== null ? o : r(e.type) || "Memo";
83
- case H:
84
- o = e._payload, e = e._init;
74
+ ), n.$$typeof) {
75
+ case se:
76
+ return (n.displayName || "Context") + ".Provider";
77
+ case Q:
78
+ return (n._context.displayName || "Context") + ".Consumer";
79
+ case K:
80
+ var v = n.render;
81
+ return n = n.displayName, n || (n = v.displayName || v.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
82
+ case A:
83
+ return v = n.displayName || null, v !== null ? v : e(n.type) || "Memo";
84
+ case L:
85
+ v = n._payload, n = n._init;
85
86
  try {
86
- return r(e(o));
87
+ return e(n(v));
87
88
  } catch {
88
89
  }
89
90
  }
90
91
  return null;
91
92
  }
92
- function i(e) {
93
- return "" + e;
93
+ function t(n) {
94
+ return "" + n;
94
95
  }
95
- function t(e) {
96
+ function r(n) {
96
97
  try {
97
- i(e);
98
- var o = !1;
98
+ t(n);
99
+ var v = !1;
99
100
  } catch {
100
- o = !0;
101
+ v = !0;
101
102
  }
102
- if (o) {
103
- o = console;
104
- var a = o.error, v = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
105
- return a.call(
106
- o,
103
+ if (v) {
104
+ v = console;
105
+ var g = v.error, y = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
106
+ return g.call(
107
+ v,
107
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
- v
109
- ), i(e);
109
+ y
110
+ ), t(n);
110
111
  }
111
112
  }
112
- function c() {
113
+ function a() {
113
114
  }
114
- function u() {
115
- if (N === 0) {
116
- ie = console.log, ce = console.info, le = console.warn, fe = console.error, ve = console.group, de = console.groupCollapsed, be = console.groupEnd;
117
- var e = {
115
+ function i() {
116
+ if (ee === 0) {
117
+ Je = console.log, Xe = console.info, Ze = console.warn, Qe = console.error, Ke = console.group, er = console.groupCollapsed, rr = console.groupEnd;
118
+ var n = {
118
119
  configurable: !0,
119
120
  enumerable: !0,
120
- value: c,
121
+ value: a,
121
122
  writable: !0
122
123
  };
123
124
  Object.defineProperties(console, {
124
- info: e,
125
- log: e,
126
- warn: e,
127
- error: e,
128
- group: e,
129
- groupCollapsed: e,
130
- groupEnd: e
125
+ info: n,
126
+ log: n,
127
+ warn: n,
128
+ error: n,
129
+ group: n,
130
+ groupCollapsed: n,
131
+ groupEnd: n
131
132
  });
132
133
  }
133
- N++;
134
+ ee++;
134
135
  }
135
- function n() {
136
- if (N--, N === 0) {
137
- var e = { configurable: !0, enumerable: !0, writable: !0 };
136
+ function o() {
137
+ if (ee--, ee === 0) {
138
+ var n = { configurable: !0, enumerable: !0, writable: !0 };
138
139
  Object.defineProperties(console, {
139
- log: x({}, e, { value: ie }),
140
- info: x({}, e, { value: ce }),
141
- warn: x({}, e, { value: le }),
142
- error: x({}, e, { value: fe }),
143
- group: x({}, e, { value: ve }),
144
- groupCollapsed: x({}, e, { value: de }),
145
- groupEnd: x({}, e, { value: be })
140
+ log: z({}, n, { value: Je }),
141
+ info: z({}, n, { value: Xe }),
142
+ warn: z({}, n, { value: Ze }),
143
+ error: z({}, n, { value: Qe }),
144
+ group: z({}, n, { value: Ke }),
145
+ groupCollapsed: z({}, n, { value: er }),
146
+ groupEnd: z({}, n, { value: rr })
146
147
  });
147
148
  }
148
- 0 > N && console.error(
149
+ 0 > ee && console.error(
149
150
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
150
151
  );
151
152
  }
152
- function s(e) {
153
- if (X === void 0)
153
+ function c(n) {
154
+ if (Te === void 0)
154
155
  try {
155
156
  throw Error();
156
- } catch (a) {
157
- var o = a.stack.trim().match(/\n( *(at )?)/);
158
- X = o && o[1] || "", ge = -1 < a.stack.indexOf(`
159
- at`) ? " (<anonymous>)" : -1 < a.stack.indexOf("@") ? "@unknown:0:0" : "";
157
+ } catch (g) {
158
+ var v = g.stack.trim().match(/\n( *(at )?)/);
159
+ Te = v && v[1] || "", tr = -1 < g.stack.indexOf(`
160
+ at`) ? " (<anonymous>)" : -1 < g.stack.indexOf("@") ? "@unknown:0:0" : "";
160
161
  }
161
162
  return `
162
- ` + X + e + ge;
163
- }
164
- function f(e, o) {
165
- if (!e || Z) return "";
166
- var a = Q.get(e);
167
- if (a !== void 0) return a;
168
- Z = !0, a = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
169
- var v = null;
170
- v = w.H, w.H = null, u();
163
+ ` + Te + n + tr;
164
+ }
165
+ function s(n, v) {
166
+ if (!n || we) return "";
167
+ var g = je.get(n);
168
+ if (g !== void 0) return g;
169
+ we = !0, g = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
170
+ var y = null;
171
+ y = U.H, U.H = null, i();
171
172
  try {
172
- var E = {
173
+ var S = {
173
174
  DetermineComponentFrameRoot: function() {
174
175
  try {
175
- if (o) {
176
- var j = function() {
176
+ if (v) {
177
+ var G = function() {
177
178
  throw Error();
178
179
  };
179
- if (Object.defineProperty(j.prototype, "props", {
180
+ if (Object.defineProperty(G.prototype, "props", {
180
181
  set: function() {
181
182
  throw Error();
182
183
  }
183
184
  }), typeof Reflect == "object" && Reflect.construct) {
184
185
  try {
185
- Reflect.construct(j, []);
186
- } catch (T) {
187
- var M = T;
186
+ Reflect.construct(G, []);
187
+ } catch (I) {
188
+ var le = I;
188
189
  }
189
- Reflect.construct(e, [], j);
190
+ Reflect.construct(n, [], G);
190
191
  } else {
191
192
  try {
192
- j.call();
193
- } catch (T) {
194
- M = T;
193
+ G.call();
194
+ } catch (I) {
195
+ le = I;
195
196
  }
196
- e.call(j.prototype);
197
+ n.call(G.prototype);
197
198
  }
198
199
  } else {
199
200
  try {
200
201
  throw Error();
201
- } catch (T) {
202
- M = T;
202
+ } catch (I) {
203
+ le = I;
203
204
  }
204
- (j = e()) && typeof j.catch == "function" && j.catch(function() {
205
+ (G = n()) && typeof G.catch == "function" && G.catch(function() {
205
206
  });
206
207
  }
207
- } catch (T) {
208
- if (T && M && typeof T.stack == "string")
209
- return [T.stack, M.stack];
208
+ } catch (I) {
209
+ if (I && le && typeof I.stack == "string")
210
+ return [I.stack, le.stack];
210
211
  }
211
212
  return [null, null];
212
213
  }
213
214
  };
214
- E.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
215
- var g = Object.getOwnPropertyDescriptor(
216
- E.DetermineComponentFrameRoot,
215
+ S.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
+ var w = Object.getOwnPropertyDescriptor(
217
+ S.DetermineComponentFrameRoot,
217
218
  "name"
218
219
  );
219
- g && g.configurable && Object.defineProperty(
220
- E.DetermineComponentFrameRoot,
220
+ w && w.configurable && Object.defineProperty(
221
+ S.DetermineComponentFrameRoot,
221
222
  "name",
222
223
  { value: "DetermineComponentFrameRoot" }
223
224
  );
224
- var l = E.DetermineComponentFrameRoot(), h = l[0], O = l[1];
225
- if (h && O) {
226
- var m = h.split(`
227
- `), S = O.split(`
225
+ var h = S.DetermineComponentFrameRoot(), F = h[0], X = h[1];
226
+ if (F && X) {
227
+ var R = F.split(`
228
+ `), D = X.split(`
228
229
  `);
229
- for (l = g = 0; g < m.length && !m[g].includes(
230
+ for (h = w = 0; w < R.length && !R[w].includes(
230
231
  "DetermineComponentFrameRoot"
231
232
  ); )
232
- g++;
233
- for (; l < S.length && !S[l].includes(
233
+ w++;
234
+ for (; h < D.length && !D[h].includes(
234
235
  "DetermineComponentFrameRoot"
235
236
  ); )
236
- l++;
237
- if (g === m.length || l === S.length)
238
- for (g = m.length - 1, l = S.length - 1; 1 <= g && 0 <= l && m[g] !== S[l]; )
239
- l--;
240
- for (; 1 <= g && 0 <= l; g--, l--)
241
- if (m[g] !== S[l]) {
242
- if (g !== 1 || l !== 1)
237
+ h++;
238
+ if (w === R.length || h === D.length)
239
+ for (w = R.length - 1, h = D.length - 1; 1 <= w && 0 <= h && R[w] !== D[h]; )
240
+ h--;
241
+ for (; 1 <= w && 0 <= h; w--, h--)
242
+ if (R[w] !== D[h]) {
243
+ if (w !== 1 || h !== 1)
243
244
  do
244
- if (g--, l--, 0 > l || m[g] !== S[l]) {
245
- var C = `
246
- ` + m[g].replace(
245
+ if (w--, h--, 0 > h || R[w] !== D[h]) {
246
+ var re = `
247
+ ` + R[w].replace(
247
248
  " at new ",
248
249
  " at "
249
250
  );
250
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, C), C;
251
+ return n.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", n.displayName)), typeof n == "function" && je.set(n, re), re;
251
252
  }
252
- while (1 <= g && 0 <= l);
253
+ while (1 <= w && 0 <= h);
253
254
  break;
254
255
  }
255
256
  }
256
257
  } finally {
257
- Z = !1, w.H = v, n(), Error.prepareStackTrace = a;
258
+ we = !1, U.H = y, o(), Error.prepareStackTrace = g;
258
259
  }
259
- return m = (m = e ? e.displayName || e.name : "") ? s(m) : "", typeof e == "function" && Q.set(e, m), m;
260
- }
261
- function d(e) {
262
- if (e == null) return "";
263
- if (typeof e == "function") {
264
- var o = e.prototype;
265
- return f(
266
- e,
267
- !(!o || !o.isReactComponent)
260
+ return R = (R = n ? n.displayName || n.name : "") ? c(R) : "", typeof n == "function" && je.set(n, R), R;
261
+ }
262
+ function f(n) {
263
+ if (n == null) return "";
264
+ if (typeof n == "function") {
265
+ var v = n.prototype;
266
+ return s(
267
+ n,
268
+ !(!v || !v.isReactComponent)
268
269
  );
269
270
  }
270
- if (typeof e == "string") return s(e);
271
- switch (e) {
272
- case I:
273
- return s("Suspense");
274
- case z:
275
- return s("SuspenseList");
271
+ if (typeof n == "string") return c(n);
272
+ switch (n) {
273
+ case H:
274
+ return c("Suspense");
275
+ case T:
276
+ return c("SuspenseList");
276
277
  }
277
- if (typeof e == "object")
278
- switch (e.$$typeof) {
279
- case B:
280
- return e = f(e.render, !1), e;
281
- case G:
282
- return d(e.type);
283
- case H:
284
- o = e._payload, e = e._init;
278
+ if (typeof n == "object")
279
+ switch (n.$$typeof) {
280
+ case K:
281
+ return n = s(n.render, !1), n;
282
+ case A:
283
+ return f(n.type);
284
+ case L:
285
+ v = n._payload, n = n._init;
285
286
  try {
286
- return d(e(o));
287
+ return f(n(v));
287
288
  } catch {
288
289
  }
289
290
  }
290
291
  return "";
291
292
  }
292
- function b() {
293
- var e = w.A;
294
- return e === null ? null : e.getOwner();
293
+ function u() {
294
+ var n = U.A;
295
+ return n === null ? null : n.getOwner();
295
296
  }
296
- function p(e) {
297
- if (se.call(e, "key")) {
298
- var o = Object.getOwnPropertyDescriptor(e, "key").get;
299
- if (o && o.isReactWarning) return !1;
297
+ function d(n) {
298
+ if (Ve.call(n, "key")) {
299
+ var v = Object.getOwnPropertyDescriptor(n, "key").get;
300
+ if (v && v.isReactWarning) return !1;
300
301
  }
301
- return e.key !== void 0;
302
+ return n.key !== void 0;
302
303
  }
303
- function y(e, o) {
304
- function a() {
305
- Ee || (Ee = !0, console.error(
304
+ function l(n, v) {
305
+ function g() {
306
+ nr || (nr = !0, console.error(
306
307
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
307
- o
308
+ v
308
309
  ));
309
310
  }
310
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
311
- get: a,
311
+ g.isReactWarning = !0, Object.defineProperty(n, "key", {
312
+ get: g,
312
313
  configurable: !0
313
314
  });
314
315
  }
315
- function A() {
316
- var e = r(this.type);
317
- return me[e] || (me[e] = !0, console.error(
316
+ function p() {
317
+ var n = e(this.type);
318
+ return ar[n] || (ar[n] = !0, console.error(
318
319
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
319
- )), e = this.props.ref, e !== void 0 ? e : null;
320
- }
321
- function L(e, o, a, v, E, g) {
322
- return a = g.ref, e = {
323
- $$typeof: q,
324
- type: e,
325
- key: o,
326
- props: g,
327
- _owner: E
328
- }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
320
+ )), n = this.props.ref, n !== void 0 ? n : null;
321
+ }
322
+ function m(n, v, g, y, S, w) {
323
+ return g = w.ref, n = {
324
+ $$typeof: k,
325
+ type: n,
326
+ key: v,
327
+ props: w,
328
+ _owner: S
329
+ }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(n, "ref", {
329
330
  enumerable: !1,
330
- get: A
331
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
331
+ get: p
332
+ }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
332
333
  configurable: !1,
333
334
  enumerable: !1,
334
335
  writable: !0,
335
336
  value: 0
336
- }), Object.defineProperty(e, "_debugInfo", {
337
+ }), Object.defineProperty(n, "_debugInfo", {
337
338
  configurable: !1,
338
339
  enumerable: !1,
339
340
  writable: !0,
340
341
  value: null
341
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
342
- }
343
- function k(e, o, a, v, E, g) {
344
- if (typeof e == "string" || typeof e == "function" || e === V || e === ne || e === te || e === I || e === z || e === We || typeof e == "object" && e !== null && (e.$$typeof === H || e.$$typeof === G || e.$$typeof === ae || e.$$typeof === oe || e.$$typeof === B || e.$$typeof === Le || e.getModuleId !== void 0)) {
345
- var l = o.children;
346
- if (l !== void 0)
347
- if (v)
348
- if (J(l)) {
349
- for (v = 0; v < l.length; v++)
350
- ee(l[v], e);
351
- Object.freeze && Object.freeze(l);
342
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
343
+ }
344
+ function b(n, v, g, y, S, w) {
345
+ if (typeof n == "string" || typeof n == "function" || n === B || n === P || n === $ || n === H || n === T || n === fe || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === A || n.$$typeof === se || n.$$typeof === Q || n.$$typeof === K || n.$$typeof === Br || n.getModuleId !== void 0)) {
346
+ var h = v.children;
347
+ if (h !== void 0)
348
+ if (y)
349
+ if (Ee(h)) {
350
+ for (y = 0; y < h.length; y++)
351
+ E(h[y], n);
352
+ Object.freeze && Object.freeze(h);
352
353
  } else
353
354
  console.error(
354
355
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
355
356
  );
356
- else ee(l, e);
357
+ else E(h, n);
357
358
  } else
358
- l = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? v = "null" : J(e) ? v = "array" : e !== void 0 && e.$$typeof === q ? (v = "<" + (r(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, console.error(
359
+ h = "", (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), n === null ? y = "null" : Ee(n) ? y = "array" : n !== void 0 && n.$$typeof === k ? (y = "<" + (e(n.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : y = typeof n, console.error(
359
360
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
360
- v,
361
- l
361
+ y,
362
+ h
362
363
  );
363
- if (se.call(o, "key")) {
364
- l = r(e);
365
- var h = Object.keys(o).filter(function(m) {
366
- return m !== "key";
364
+ if (Ve.call(v, "key")) {
365
+ h = e(n);
366
+ var F = Object.keys(v).filter(function(R) {
367
+ return R !== "key";
367
368
  });
368
- v = 0 < h.length ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}", pe[l + v] || (h = 0 < h.length ? "{" + h.join(": ..., ") + ": ...}" : "{}", console.error(
369
+ y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", or[h + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
369
370
  `A props object containing a "key" prop is being spread into JSX:
370
371
  let props = %s;
371
372
  <%s {...props} />
372
373
  React keys must be passed directly to JSX without using spread:
373
374
  let props = %s;
374
375
  <%s key={someKey} {...props} />`,
375
- v,
376
- l,
376
+ y,
377
377
  h,
378
- l
379
- ), pe[l + v] = !0);
378
+ F,
379
+ h
380
+ ), or[h + y] = !0);
380
381
  }
381
- if (l = null, a !== void 0 && (t(a), l = "" + a), p(o) && (t(o.key), l = "" + o.key), "key" in o) {
382
- a = {};
383
- for (var O in o)
384
- O !== "key" && (a[O] = o[O]);
385
- } else a = o;
386
- return l && y(
387
- a,
388
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
389
- ), L(e, l, g, E, b(), a);
390
- }
391
- function ee(e, o) {
392
- if (typeof e == "object" && e && e.$$typeof !== Fe) {
393
- if (J(e))
394
- for (var a = 0; a < e.length; a++) {
395
- var v = e[a];
396
- F(v) && re(v, o);
382
+ if (h = null, g !== void 0 && (r(g), h = "" + g), d(v) && (r(v.key), h = "" + v.key), "key" in v) {
383
+ g = {};
384
+ for (var X in v)
385
+ X !== "key" && (g[X] = v[X]);
386
+ } else g = v;
387
+ return h && l(
388
+ g,
389
+ typeof n == "function" ? n.displayName || n.name || "Unknown" : n
390
+ ), m(n, h, w, S, u(), g);
391
+ }
392
+ function E(n, v) {
393
+ if (typeof n == "object" && n && n.$$typeof !== Gr) {
394
+ if (Ee(n))
395
+ for (var g = 0; g < n.length; g++) {
396
+ var y = n[g];
397
+ x(y) && M(y, v);
397
398
  }
398
- else if (F(e))
399
- e._store && (e._store.validated = 1);
400
- else if (e === null || typeof e != "object" ? a = null : (a = ue && e[ue] || e["@@iterator"], a = typeof a == "function" ? a : null), typeof a == "function" && a !== e.entries && (a = a.call(e), a !== e))
401
- for (; !(e = a.next()).done; )
402
- F(e.value) && re(e.value, o);
399
+ else if (x(n))
400
+ n._store && (n._store.validated = 1);
401
+ else if (n === null || typeof n != "object" ? g = null : (g = De && n[De] || n["@@iterator"], g = typeof g == "function" ? g : null), typeof g == "function" && g !== n.entries && (g = g.call(n), g !== n))
402
+ for (; !(n = g.next()).done; )
403
+ x(n.value) && M(n.value, v);
403
404
  }
404
405
  }
405
- function F(e) {
406
- return typeof e == "object" && e !== null && e.$$typeof === q;
407
- }
408
- function re(e, o) {
409
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, o = $e(o), !ye[o])) {
410
- ye[o] = !0;
411
- var a = "";
412
- e && e._owner != null && e._owner !== b() && (a = null, typeof e._owner.tag == "number" ? a = r(e._owner.type) : typeof e._owner.name == "string" && (a = e._owner.name), a = " It was passed a child from " + a + ".");
413
- var v = w.getCurrentStack;
414
- w.getCurrentStack = function() {
415
- var E = d(e.type);
416
- return v && (E += v() || ""), E;
406
+ function x(n) {
407
+ return typeof n == "object" && n !== null && n.$$typeof === k;
408
+ }
409
+ function M(n, v) {
410
+ if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, v = N(v), !ir[v])) {
411
+ ir[v] = !0;
412
+ var g = "";
413
+ n && n._owner != null && n._owner !== u() && (g = null, typeof n._owner.tag == "number" ? g = e(n._owner.type) : typeof n._owner.name == "string" && (g = n._owner.name), g = " It was passed a child from " + g + ".");
414
+ var y = U.getCurrentStack;
415
+ U.getCurrentStack = function() {
416
+ var S = f(n.type);
417
+ return y && (S += y() || ""), S;
417
418
  }, console.error(
418
419
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
419
- o,
420
- a
421
- ), w.getCurrentStack = v;
420
+ v,
421
+ g
422
+ ), U.getCurrentStack = y;
422
423
  }
423
424
  }
424
- function $e(e) {
425
- var o = "", a = b();
426
- return a && (a = r(a.type)) && (o = `
425
+ function N(n) {
426
+ var v = "", g = u();
427
+ return g && (g = e(g.type)) && (v = `
427
428
 
428
- Check the render method of \`` + a + "`."), o || (e = r(e)) && (o = `
429
+ Check the render method of \`` + g + "`."), v || (n = e(n)) && (v = `
429
430
 
430
- Check the top-level render call using <` + e + ">."), o;
431
- }
432
- var Ye = Oe, q = Symbol.for("react.transitional.element"), Me = Symbol.for("react.portal"), V = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), ne = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), ae = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), We = Symbol.for("react.offscreen"), ue = Symbol.iterator, Ue = Symbol.for("react.client.reference"), w = Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, x = Object.assign, Le = Symbol.for("react.client.reference"), J = Array.isArray, N = 0, ie, ce, le, fe, ve, de, be;
433
- c.__reactDisabledLog = !0;
434
- var X, ge, Z = !1, Q = new (typeof WeakMap == "function" ? WeakMap : Map)(), Fe = Symbol.for("react.client.reference"), Ee, me = {}, pe = {}, ye = {};
435
- $.Fragment = V, $.jsx = function(e, o, a, v, E) {
436
- return k(e, o, a, !1, v, E);
437
- }, $.jsxs = function(e, o, a, v, E) {
438
- return k(e, o, a, !0, v, E);
431
+ Check the top-level render call using <` + n + ">."), v;
432
+ }
433
+ var W = Pr, k = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), se = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), fe = Symbol.for("react.offscreen"), De = Symbol.iterator, Ir = Symbol.for("react.client.reference"), U = W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ve = Object.prototype.hasOwnProperty, z = Object.assign, Br = Symbol.for("react.client.reference"), Ee = Array.isArray, ee = 0, Je, Xe, Ze, Qe, Ke, er, rr;
434
+ a.__reactDisabledLog = !0;
435
+ var Te, tr, we = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Gr = Symbol.for("react.client.reference"), nr, ar = {}, or = {}, ir = {};
436
+ ne.Fragment = B, ne.jsx = function(n, v, g, y, S) {
437
+ return b(n, v, g, !1, y, S);
438
+ }, ne.jsxs = function(n, v, g, y, S) {
439
+ return b(n, v, g, !0, y, S);
439
440
  };
440
- }()), $;
441
- }
442
- var Te;
443
- function rr() {
444
- return Te || (Te = 1, process.env.NODE_ENV === "production" ? W.exports = De() : W.exports = er()), W.exports;
445
- }
446
- var _ = rr();
447
- const Lr = ({
448
- checked: r,
449
- onChange: i,
450
- trueValue: t = !0,
451
- falseValue: c = !1,
452
- trueLabel: u = "",
453
- falseLabel: n = "",
454
- children: s,
455
- ...f
441
+ }()), ne;
442
+ }
443
+ var sr;
444
+ function tt() {
445
+ return sr || (sr = 1, process.env.NODE_ENV === "production" ? ve.exports = et() : ve.exports = rt()), ve.exports;
446
+ }
447
+ var q = tt();
448
+ const jn = ({
449
+ checked: e,
450
+ onChange: t,
451
+ trueValue: r = !0,
452
+ falseValue: a = !1,
453
+ trueLabel: i = "",
454
+ falseLabel: o = "",
455
+ children: c,
456
+ ...s
456
457
  }) => {
457
- const d = r === t, b = (p) => {
458
- i == null || i(p.target.checked ? t : c, p);
458
+ const f = e === r, u = (d) => {
459
+ t == null || t(d.target.checked ? r : a, d);
459
460
  };
460
- return /* @__PURE__ */ _.jsx(
461
- Ie,
461
+ return /* @__PURE__ */ q.jsx(
462
+ zr,
462
463
  {
463
- checked: d,
464
- onChange: b,
465
- ...f,
466
- children: s || (d ? u : n)
464
+ checked: f,
465
+ onChange: u,
466
+ ...s,
467
+ children: c || (f ? i : o)
467
468
  }
468
469
  );
469
470
  };
470
- var tr = typeof global == "object" && global && global.Object === Object && global, nr = typeof self == "object" && self && self.Object === Object && self, or = tr || nr || Function("return this")(), U = or.Symbol, ke = Object.prototype, ar = ke.hasOwnProperty, ur = ke.toString, Y = U ? U.toStringTag : void 0;
471
- function sr(r) {
472
- var i = ar.call(r, Y), t = r[Y];
471
+ var nt = typeof global == "object" && global && global.Object === Object && global, at = typeof self == "object" && self && self.Object === Object && self, ot = nt || at || Function("return this")(), me = ot.Symbol, Cr = Object.prototype, it = Cr.hasOwnProperty, ut = Cr.toString, ae = me ? me.toStringTag : void 0;
472
+ function ct(e) {
473
+ var t = it.call(e, ae), r = e[ae];
473
474
  try {
474
- r[Y] = void 0;
475
- var c = !0;
475
+ e[ae] = void 0;
476
+ var a = !0;
476
477
  } catch {
477
478
  }
478
- var u = ur.call(r);
479
- return c && (i ? r[Y] = t : delete r[Y]), u;
479
+ var i = ut.call(e);
480
+ return a && (t ? e[ae] = r : delete e[ae]), i;
480
481
  }
481
- var ir = Object.prototype, cr = ir.toString;
482
- function lr(r) {
483
- return cr.call(r);
482
+ var st = Object.prototype, ft = st.toString;
483
+ function lt(e) {
484
+ return ft.call(e);
484
485
  }
485
- var fr = "[object Null]", vr = "[object Undefined]", je = U ? U.toStringTag : void 0;
486
- function dr(r) {
487
- return r == null ? r === void 0 ? vr : fr : je && je in Object(r) ? sr(r) : lr(r);
486
+ var dt = "[object Null]", vt = "[object Undefined]", fr = me ? me.toStringTag : void 0;
487
+ function gt(e) {
488
+ return e == null ? e === void 0 ? vt : dt : fr && fr in Object(e) ? ct(e) : lt(e);
488
489
  }
489
- function br(r) {
490
- return r != null && typeof r == "object";
490
+ function bt(e) {
491
+ return e != null && typeof e == "object";
491
492
  }
492
- var gr = Array.isArray;
493
- function Er() {
493
+ var mt = Array.isArray;
494
+ function ht() {
494
495
  }
495
- var mr = "[object String]";
496
- function pr(r) {
497
- return typeof r == "string" || !gr(r) && br(r) && dr(r) == mr;
496
+ var pt = "[object String]";
497
+ function yt(e) {
498
+ return typeof e == "string" || !mt(e) && bt(e) && gt(e) == pt;
498
499
  }
499
- var K = { exports: {} };
500
+ var _e = { exports: {} };
500
501
  /*!
501
502
  Copyright (c) 2018 Jed Watson.
502
503
  Licensed under the MIT License (MIT), see
503
504
  http://jedwatson.github.io/classnames
504
505
  */
505
- var we;
506
- function yr() {
507
- return we || (we = 1, function(r) {
506
+ var lr;
507
+ function Et() {
508
+ return lr || (lr = 1, function(e) {
508
509
  (function() {
509
- var i = {}.hasOwnProperty;
510
- function t() {
511
- for (var n = "", s = 0; s < arguments.length; s++) {
512
- var f = arguments[s];
513
- f && (n = u(n, c(f)));
510
+ var t = {}.hasOwnProperty;
511
+ function r() {
512
+ for (var o = "", c = 0; c < arguments.length; c++) {
513
+ var s = arguments[c];
514
+ s && (o = i(o, a(s)));
514
515
  }
515
- return n;
516
+ return o;
516
517
  }
517
- function c(n) {
518
- if (typeof n == "string" || typeof n == "number")
519
- return n;
520
- if (typeof n != "object")
518
+ function a(o) {
519
+ if (typeof o == "string" || typeof o == "number")
520
+ return o;
521
+ if (typeof o != "object")
521
522
  return "";
522
- if (Array.isArray(n))
523
- return t.apply(null, n);
524
- if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
525
- return n.toString();
526
- var s = "";
527
- for (var f in n)
528
- i.call(n, f) && n[f] && (s = u(s, f));
529
- return s;
523
+ if (Array.isArray(o))
524
+ return r.apply(null, o);
525
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
526
+ return o.toString();
527
+ var c = "";
528
+ for (var s in o)
529
+ t.call(o, s) && o[s] && (c = i(c, s));
530
+ return c;
530
531
  }
531
- function u(n, s) {
532
- return s ? n ? n + " " + s : n + s : n;
532
+ function i(o, c) {
533
+ return c ? o ? o + " " + c : o + c : o;
533
534
  }
534
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
535
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
535
536
  })();
536
- }(K)), K.exports;
537
- }
538
- var _r = yr();
539
- const hr = /* @__PURE__ */ Ke(_r);
540
- function D(r, i) {
541
- var t = typeof Symbol == "function" && r[Symbol.iterator];
542
- if (!t) return r;
543
- var c = t.call(r), u, n = [], s;
537
+ }(_e)), _e.exports;
538
+ }
539
+ var Tt = Et();
540
+ const wt = /* @__PURE__ */ Ye(Tt);
541
+ var jt = function(e) {
542
+ return function(t, r) {
543
+ var a = j(!1);
544
+ e(function() {
545
+ return function() {
546
+ a.current = !1;
547
+ };
548
+ }, []), e(function() {
549
+ if (!a.current)
550
+ a.current = !0;
551
+ else
552
+ return t();
553
+ }, r);
554
+ };
555
+ }, C = function() {
556
+ return C = Object.assign || function(t) {
557
+ for (var r, a = 1, i = arguments.length; a < i; a++) {
558
+ r = arguments[a];
559
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
560
+ }
561
+ return t;
562
+ }, C.apply(this, arguments);
563
+ };
564
+ function Nr(e, t) {
565
+ var r = {};
566
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
567
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
568
+ for (var i = 0, a = Object.getOwnPropertySymbols(e); i < a.length; i++)
569
+ t.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[i]) && (r[a[i]] = e[a[i]]);
570
+ return r;
571
+ }
572
+ function _t(e, t, r, a) {
573
+ function i(o) {
574
+ return o instanceof r ? o : new r(function(c) {
575
+ c(o);
576
+ });
577
+ }
578
+ return new (r || (r = Promise))(function(o, c) {
579
+ function s(d) {
580
+ try {
581
+ u(a.next(d));
582
+ } catch (l) {
583
+ c(l);
584
+ }
585
+ }
586
+ function f(d) {
587
+ try {
588
+ u(a.throw(d));
589
+ } catch (l) {
590
+ c(l);
591
+ }
592
+ }
593
+ function u(d) {
594
+ d.done ? o(d.value) : i(d.value).then(s, f);
595
+ }
596
+ u((a = a.apply(e, t || [])).next());
597
+ });
598
+ }
599
+ function St(e, t) {
600
+ var r = { label: 0, sent: function() {
601
+ if (o[0] & 1) throw o[1];
602
+ return o[1];
603
+ }, trys: [], ops: [] }, a, i, o, c = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
604
+ return c.next = s(0), c.throw = s(1), c.return = s(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
605
+ return this;
606
+ }), c;
607
+ function s(u) {
608
+ return function(d) {
609
+ return f([u, d]);
610
+ };
611
+ }
612
+ function f(u) {
613
+ if (a) throw new TypeError("Generator is already executing.");
614
+ for (; c && (c = 0, u[0] && (r = 0)), r; ) try {
615
+ if (a = 1, i && (o = u[0] & 2 ? i.return : u[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o;
616
+ switch (i = 0, o && (u = [u[0] & 2, o.value]), u[0]) {
617
+ case 0:
618
+ case 1:
619
+ o = u;
620
+ break;
621
+ case 4:
622
+ return r.label++, { value: u[1], done: !1 };
623
+ case 5:
624
+ r.label++, i = u[1], u = [0];
625
+ continue;
626
+ case 7:
627
+ u = r.ops.pop(), r.trys.pop();
628
+ continue;
629
+ default:
630
+ if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) {
631
+ r = 0;
632
+ continue;
633
+ }
634
+ if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) {
635
+ r.label = u[1];
636
+ break;
637
+ }
638
+ if (u[0] === 6 && r.label < o[1]) {
639
+ r.label = o[1], o = u;
640
+ break;
641
+ }
642
+ if (o && r.label < o[2]) {
643
+ r.label = o[2], r.ops.push(u);
644
+ break;
645
+ }
646
+ o[2] && r.ops.pop(), r.trys.pop();
647
+ continue;
648
+ }
649
+ u = t.call(e, r);
650
+ } catch (d) {
651
+ u = [6, d], i = 0;
652
+ } finally {
653
+ a = o = 0;
654
+ }
655
+ if (u[0] & 5) throw u[1];
656
+ return { value: u[0] ? u[1] : void 0, done: !0 };
657
+ }
658
+ }
659
+ function _(e, t) {
660
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
661
+ if (!r) return e;
662
+ var a = r.call(e), i, o = [], c;
544
663
  try {
545
- for (; (i === void 0 || i-- > 0) && !(u = c.next()).done; ) n.push(u.value);
546
- } catch (f) {
547
- s = { error: f };
664
+ for (; (t === void 0 || t-- > 0) && !(i = a.next()).done; ) o.push(i.value);
665
+ } catch (s) {
666
+ c = { error: s };
548
667
  } finally {
549
668
  try {
550
- u && !u.done && (t = c.return) && t.call(c);
669
+ i && !i.done && (r = a.return) && r.call(a);
551
670
  } finally {
552
- if (s) throw s.error;
671
+ if (c) throw c.error;
553
672
  }
554
673
  }
555
- return n;
556
- }
557
- var Ne = function(r) {
558
- return typeof r == "function";
559
- }, Tr = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
560
- function xe(r, i) {
561
- if (r === i) return !0;
562
- for (var t = 0; t < r.length; t++)
563
- if (!Object.is(r[t], i[t])) return !1;
674
+ return o;
675
+ }
676
+ function O(e, t, r) {
677
+ if (r || arguments.length === 2) for (var a = 0, i = t.length, o; a < i; a++)
678
+ (o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
679
+ return e.concat(o || Array.prototype.slice.call(t));
680
+ }
681
+ var ue = function(e) {
682
+ return typeof e == "function";
683
+ }, pe = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
684
+ function Z(e) {
685
+ pe && (ue(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
686
+ var t = j(e);
687
+ t.current = he(function() {
688
+ return e;
689
+ }, [e]);
690
+ var r = j();
691
+ return r.current || (r.current = function() {
692
+ for (var a = [], i = 0; i < arguments.length; i++)
693
+ a[i] = arguments[i];
694
+ return t.current.apply(this, a);
695
+ }), r.current;
696
+ }
697
+ const Be = jt(J);
698
+ var kr = function(e, t) {
699
+ var r = t.manual, a = t.ready, i = a === void 0 ? !0 : a, o = t.defaultParams, c = o === void 0 ? [] : o, s = t.refreshDeps, f = s === void 0 ? [] : s, u = t.refreshDepsAction, d = j(!1);
700
+ return d.current = !1, Be(function() {
701
+ !r && i && (d.current = !0, e.run.apply(e, O([], _(c), !1)));
702
+ }, [i]), Be(function() {
703
+ d.current || r || (d.current = !0, u ? u() : e.refresh());
704
+ }, O([], _(f), !1)), {
705
+ onBefore: function() {
706
+ if (!i)
707
+ return {
708
+ stopNow: !0
709
+ };
710
+ }
711
+ };
712
+ };
713
+ kr.onInit = function(e) {
714
+ var t = e.ready, r = t === void 0 ? !0 : t, a = e.manual;
715
+ return {
716
+ loading: !a && r
717
+ };
718
+ };
719
+ function Ge(e, t) {
720
+ if (e === t) return !0;
721
+ for (var r = 0; r < e.length; r++)
722
+ if (!Object.is(e[r], t[r])) return !1;
564
723
  return !0;
565
724
  }
566
- function Ce(r) {
567
- var i = R(r);
568
- return i.current = r, i;
725
+ function qr(e, t) {
726
+ var r = j({
727
+ deps: t,
728
+ obj: void 0,
729
+ initialized: !1
730
+ }).current;
731
+ return (r.initialized === !1 || !Ge(r.deps, t)) && (r.deps = t, r.obj = e(), r.initialized = !0), r.obj;
732
+ }
733
+ function He(e) {
734
+ var t = j(e);
735
+ return t.current = e, t;
736
+ }
737
+ var ye = function(e) {
738
+ pe && (ue(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
739
+ var t = He(e);
740
+ J(function() {
741
+ return function() {
742
+ t.current();
743
+ };
744
+ }, []);
745
+ }, ge = /* @__PURE__ */ new Map(), Ot = function(e, t, r) {
746
+ var a = ge.get(e);
747
+ a != null && a.timer && clearTimeout(a.timer);
748
+ var i = void 0;
749
+ t > -1 && (i = setTimeout(function() {
750
+ ge.delete(e);
751
+ }, t)), ge.set(e, C(C({}, r), {
752
+ timer: i
753
+ }));
754
+ }, Rt = function(e) {
755
+ return ge.get(e);
756
+ }, be = /* @__PURE__ */ new Map(), xt = function(e) {
757
+ return be.get(e);
758
+ }, Pt = function(e, t) {
759
+ be.set(e, t), t.then(function(r) {
760
+ return be.delete(e), r;
761
+ }).catch(function() {
762
+ be.delete(e);
763
+ });
764
+ }, V = {}, At = function(e, t) {
765
+ V[e] && V[e].forEach(function(r) {
766
+ return r(t);
767
+ });
768
+ }, Se = function(e, t) {
769
+ return V[e] || (V[e] = []), V[e].push(t), function() {
770
+ var a = V[e].indexOf(t);
771
+ V[e].splice(a, 1);
772
+ };
773
+ }, Ct = function(e, t) {
774
+ var r = t.cacheKey, a = t.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = t.staleTime, c = o === void 0 ? 0 : o, s = t.setCache, f = t.getCache, u = j(), d = j(), l = function(m, b) {
775
+ s ? s(b) : Ot(m, i, b), At(m, b.data);
776
+ }, p = function(m, b) {
777
+ return b === void 0 && (b = []), f ? f(b) : Rt(m);
778
+ };
779
+ return qr(function() {
780
+ if (r) {
781
+ var m = p(r);
782
+ m && Object.hasOwnProperty.call(m, "data") && (e.state.data = m.data, e.state.params = m.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - m.time <= c) && (e.state.loading = !1)), u.current = Se(r, function(b) {
783
+ e.setState({
784
+ data: b
785
+ });
786
+ });
787
+ }
788
+ }, []), ye(function() {
789
+ var m;
790
+ (m = u.current) === null || m === void 0 || m.call(u);
791
+ }), r ? {
792
+ onBefore: function(m) {
793
+ var b = p(r, m);
794
+ return !b || !Object.hasOwnProperty.call(b, "data") ? {} : c === -1 || (/* @__PURE__ */ new Date()).getTime() - b.time <= c ? {
795
+ loading: !1,
796
+ data: b == null ? void 0 : b.data,
797
+ error: void 0,
798
+ returnNow: !0
799
+ } : {
800
+ data: b == null ? void 0 : b.data,
801
+ error: void 0
802
+ };
803
+ },
804
+ onRequest: function(m, b) {
805
+ var E = xt(r);
806
+ return E && E !== d.current ? {
807
+ servicePromise: E
808
+ } : (E = m.apply(void 0, O([], _(b), !1)), d.current = E, Pt(r, E), {
809
+ servicePromise: E
810
+ });
811
+ },
812
+ onSuccess: function(m, b) {
813
+ var E;
814
+ r && ((E = u.current) === null || E === void 0 || E.call(u), l(r, {
815
+ data: m,
816
+ params: b,
817
+ time: (/* @__PURE__ */ new Date()).getTime()
818
+ }), u.current = Se(r, function(x) {
819
+ e.setState({
820
+ data: x
821
+ });
822
+ }));
823
+ },
824
+ onMutate: function(m) {
825
+ var b;
826
+ r && ((b = u.current) === null || b === void 0 || b.call(u), l(r, {
827
+ data: m,
828
+ params: e.state.params,
829
+ time: (/* @__PURE__ */ new Date()).getTime()
830
+ }), u.current = Se(r, function(E) {
831
+ e.setState({
832
+ data: E
833
+ });
834
+ }));
835
+ }
836
+ } : {};
837
+ }, Oe, dr;
838
+ function Ue() {
839
+ if (dr) return Oe;
840
+ dr = 1;
841
+ function e(t) {
842
+ var r = typeof t;
843
+ return t != null && (r == "object" || r == "function");
844
+ }
845
+ return Oe = e, Oe;
846
+ }
847
+ var Re, vr;
848
+ function Nt() {
849
+ if (vr) return Re;
850
+ vr = 1;
851
+ var e = typeof de == "object" && de && de.Object === Object && de;
852
+ return Re = e, Re;
853
+ }
854
+ var xe, gr;
855
+ function Mr() {
856
+ if (gr) return xe;
857
+ gr = 1;
858
+ var e = Nt(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
859
+ return xe = r, xe;
860
+ }
861
+ var Pe, br;
862
+ function kt() {
863
+ if (br) return Pe;
864
+ br = 1;
865
+ var e = Mr(), t = function() {
866
+ return e.Date.now();
867
+ };
868
+ return Pe = t, Pe;
869
+ }
870
+ var Ae, mr;
871
+ function qt() {
872
+ if (mr) return Ae;
873
+ mr = 1;
874
+ var e = /\s/;
875
+ function t(r) {
876
+ for (var a = r.length; a-- && e.test(r.charAt(a)); )
877
+ ;
878
+ return a;
879
+ }
880
+ return Ae = t, Ae;
881
+ }
882
+ var Ce, hr;
883
+ function Mt() {
884
+ if (hr) return Ce;
885
+ hr = 1;
886
+ var e = qt(), t = /^\s+/;
887
+ function r(a) {
888
+ return a && a.slice(0, e(a) + 1).replace(t, "");
889
+ }
890
+ return Ce = r, Ce;
891
+ }
892
+ var Ne, pr;
893
+ function Wr() {
894
+ if (pr) return Ne;
895
+ pr = 1;
896
+ var e = Mr(), t = e.Symbol;
897
+ return Ne = t, Ne;
898
+ }
899
+ var ke, yr;
900
+ function Wt() {
901
+ if (yr) return ke;
902
+ yr = 1;
903
+ var e = Wr(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, i = e ? e.toStringTag : void 0;
904
+ function o(c) {
905
+ var s = r.call(c, i), f = c[i];
906
+ try {
907
+ c[i] = void 0;
908
+ var u = !0;
909
+ } catch {
910
+ }
911
+ var d = a.call(c);
912
+ return u && (s ? c[i] = f : delete c[i]), d;
913
+ }
914
+ return ke = o, ke;
915
+ }
916
+ var qe, Er;
917
+ function $t() {
918
+ if (Er) return qe;
919
+ Er = 1;
920
+ var e = Object.prototype, t = e.toString;
921
+ function r(a) {
922
+ return t.call(a);
923
+ }
924
+ return qe = r, qe;
925
+ }
926
+ var Me, Tr;
927
+ function Lt() {
928
+ if (Tr) return Me;
929
+ Tr = 1;
930
+ var e = Wr(), t = Wt(), r = $t(), a = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
931
+ function c(s) {
932
+ return s == null ? s === void 0 ? i : a : o && o in Object(s) ? t(s) : r(s);
933
+ }
934
+ return Me = c, Me;
935
+ }
936
+ var We, wr;
937
+ function Ft() {
938
+ if (wr) return We;
939
+ wr = 1;
940
+ function e(t) {
941
+ return t != null && typeof t == "object";
942
+ }
943
+ return We = e, We;
944
+ }
945
+ var $e, jr;
946
+ function It() {
947
+ if (jr) return $e;
948
+ jr = 1;
949
+ var e = Lt(), t = Ft(), r = "[object Symbol]";
950
+ function a(i) {
951
+ return typeof i == "symbol" || t(i) && e(i) == r;
952
+ }
953
+ return $e = a, $e;
954
+ }
955
+ var Le, _r;
956
+ function Bt() {
957
+ if (_r) return Le;
958
+ _r = 1;
959
+ var e = Mt(), t = Ue(), r = It(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, s = parseInt;
960
+ function f(u) {
961
+ if (typeof u == "number")
962
+ return u;
963
+ if (r(u))
964
+ return a;
965
+ if (t(u)) {
966
+ var d = typeof u.valueOf == "function" ? u.valueOf() : u;
967
+ u = t(d) ? d + "" : d;
968
+ }
969
+ if (typeof u != "string")
970
+ return u === 0 ? u : +u;
971
+ u = e(u);
972
+ var l = o.test(u);
973
+ return l || c.test(u) ? s(u.slice(2), l ? 2 : 8) : i.test(u) ? a : +u;
974
+ }
975
+ return Le = f, Le;
976
+ }
977
+ var Fe, Sr;
978
+ function $r() {
979
+ if (Sr) return Fe;
980
+ Sr = 1;
981
+ var e = Ue(), t = kt(), r = Bt(), a = "Expected a function", i = Math.max, o = Math.min;
982
+ function c(s, f, u) {
983
+ var d, l, p, m, b, E, x = 0, M = !1, N = !1, W = !0;
984
+ if (typeof s != "function")
985
+ throw new TypeError(a);
986
+ f = r(f) || 0, e(u) && (M = !!u.leading, N = "maxWait" in u, p = N ? i(r(u.maxWait) || 0, f) : p, W = "trailing" in u ? !!u.trailing : W);
987
+ function k(T) {
988
+ var A = d, L = l;
989
+ return d = l = void 0, x = T, m = s.apply(L, A), m;
990
+ }
991
+ function Y(T) {
992
+ return x = T, b = setTimeout(P, f), M ? k(T) : m;
993
+ }
994
+ function B(T) {
995
+ var A = T - E, L = T - x, fe = f - A;
996
+ return N ? o(fe, p - L) : fe;
997
+ }
998
+ function $(T) {
999
+ var A = T - E, L = T - x;
1000
+ return E === void 0 || A >= f || A < 0 || N && L >= p;
1001
+ }
1002
+ function P() {
1003
+ var T = t();
1004
+ if ($(T))
1005
+ return Q(T);
1006
+ b = setTimeout(P, B(T));
1007
+ }
1008
+ function Q(T) {
1009
+ return b = void 0, W && d ? k(T) : (d = l = void 0, m);
1010
+ }
1011
+ function se() {
1012
+ b !== void 0 && clearTimeout(b), x = 0, d = E = l = b = void 0;
1013
+ }
1014
+ function K() {
1015
+ return b === void 0 ? m : Q(t());
1016
+ }
1017
+ function H() {
1018
+ var T = t(), A = $(T);
1019
+ if (d = arguments, l = this, E = T, A) {
1020
+ if (b === void 0)
1021
+ return Y(E);
1022
+ if (N)
1023
+ return clearTimeout(b), b = setTimeout(P, f), k(E);
1024
+ }
1025
+ return b === void 0 && (b = setTimeout(P, f)), m;
1026
+ }
1027
+ return H.cancel = se, H.flush = K, H;
1028
+ }
1029
+ return Fe = c, Fe;
1030
+ }
1031
+ var Gt = $r();
1032
+ const Yt = /* @__PURE__ */ Ye(Gt);
1033
+ var Ht = function(e, t) {
1034
+ var r = t.debounceWait, a = t.debounceLeading, i = t.debounceTrailing, o = t.debounceMaxWait, c = j(), s = he(function() {
1035
+ var f = {};
1036
+ return a !== void 0 && (f.leading = a), i !== void 0 && (f.trailing = i), o !== void 0 && (f.maxWait = o), f;
1037
+ }, [a, i, o]);
1038
+ return J(function() {
1039
+ if (r) {
1040
+ var f = e.runAsync.bind(e);
1041
+ return c.current = Yt(function(u) {
1042
+ u();
1043
+ }, r, s), e.runAsync = function() {
1044
+ for (var u = [], d = 0; d < arguments.length; d++)
1045
+ u[d] = arguments[d];
1046
+ return new Promise(function(l, p) {
1047
+ var m;
1048
+ (m = c.current) === null || m === void 0 || m.call(c, function() {
1049
+ f.apply(void 0, O([], _(u), !1)).then(l).catch(p);
1050
+ });
1051
+ });
1052
+ }, function() {
1053
+ var u;
1054
+ (u = c.current) === null || u === void 0 || u.cancel(), e.runAsync = f;
1055
+ };
1056
+ }
1057
+ }, [r, s]), r ? {
1058
+ onCancel: function() {
1059
+ var f;
1060
+ (f = c.current) === null || f === void 0 || f.cancel();
1061
+ }
1062
+ } : {};
1063
+ }, Ut = function(e, t) {
1064
+ var r = t.loadingDelay, a = t.ready, i = j();
1065
+ if (!r)
1066
+ return {};
1067
+ var o = function() {
1068
+ i.current && clearTimeout(i.current);
1069
+ };
1070
+ return {
1071
+ onBefore: function() {
1072
+ return o(), a !== !1 && (i.current = setTimeout(function() {
1073
+ e.setState({
1074
+ loading: !0
1075
+ });
1076
+ }, r)), {
1077
+ loading: !1
1078
+ };
1079
+ },
1080
+ onFinally: function() {
1081
+ o();
1082
+ },
1083
+ onCancel: function() {
1084
+ o();
1085
+ }
1086
+ };
1087
+ }, ce = !!(typeof window < "u" && window.document && window.document.createElement);
1088
+ function ze() {
1089
+ return ce ? document.visibilityState !== "hidden" : !0;
1090
+ }
1091
+ var oe = [];
1092
+ function zt(e) {
1093
+ return oe.push(e), function() {
1094
+ var r = oe.indexOf(e);
1095
+ oe.splice(r, 1);
1096
+ };
1097
+ }
1098
+ if (ce) {
1099
+ var Dt = function() {
1100
+ if (ze())
1101
+ for (var e = 0; e < oe.length; e++) {
1102
+ var t = oe[e];
1103
+ t();
1104
+ }
1105
+ };
1106
+ window.addEventListener("visibilitychange", Dt, !1);
1107
+ }
1108
+ var Vt = function(e, t) {
1109
+ var r = t.pollingInterval, a = t.pollingWhenHidden, i = a === void 0 ? !0 : a, o = t.pollingErrorRetryCount, c = o === void 0 ? -1 : o, s = j(), f = j(), u = j(0), d = function() {
1110
+ var l;
1111
+ s.current && clearTimeout(s.current), (l = f.current) === null || l === void 0 || l.call(f);
1112
+ };
1113
+ return Be(function() {
1114
+ r || d();
1115
+ }, [r]), r ? {
1116
+ onBefore: function() {
1117
+ d();
1118
+ },
1119
+ onError: function() {
1120
+ u.current += 1;
1121
+ },
1122
+ onSuccess: function() {
1123
+ u.current = 0;
1124
+ },
1125
+ onFinally: function() {
1126
+ c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
1127
+ c !== -1 && u.current <= c ? s.current = setTimeout(function() {
1128
+ !i && !ze() ? f.current = zt(function() {
1129
+ e.refresh();
1130
+ }) : e.refresh();
1131
+ }, r) : u.current = 0;
1132
+ },
1133
+ onCancel: function() {
1134
+ d();
1135
+ }
1136
+ } : {};
1137
+ };
1138
+ function Jt(e, t) {
1139
+ var r = !1;
1140
+ return function() {
1141
+ for (var a = [], i = 0; i < arguments.length; i++)
1142
+ a[i] = arguments[i];
1143
+ r || (r = !0, e.apply(void 0, O([], _(a), !1)), setTimeout(function() {
1144
+ r = !1;
1145
+ }, t));
1146
+ };
569
1147
  }
570
- var jr = function(r) {
571
- Tr && (Ne(r) || console.error("useUnmount expected parameter is a function, got ".concat(typeof r)));
572
- var i = Ce(r);
573
- Re(function() {
1148
+ function Xt() {
1149
+ return ce && typeof navigator.onLine < "u" ? navigator.onLine : !0;
1150
+ }
1151
+ var ie = [];
1152
+ function Zt(e) {
1153
+ return ie.push(e), function() {
1154
+ var r = ie.indexOf(e);
1155
+ r > -1 && ie.splice(r, 1);
1156
+ };
1157
+ }
1158
+ if (ce) {
1159
+ var Or = function() {
1160
+ if (!(!ze() || !Xt()))
1161
+ for (var e = 0; e < ie.length; e++) {
1162
+ var t = ie[e];
1163
+ t();
1164
+ }
1165
+ };
1166
+ window.addEventListener("visibilitychange", Or, !1), window.addEventListener("focus", Or, !1);
1167
+ }
1168
+ var Qt = function(e, t) {
1169
+ var r = t.refreshOnWindowFocus, a = t.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
1170
+ var s;
1171
+ (s = o.current) === null || s === void 0 || s.call(o);
1172
+ };
1173
+ return J(function() {
1174
+ if (r) {
1175
+ var s = Jt(e.refresh.bind(e), i);
1176
+ o.current = Zt(function() {
1177
+ s();
1178
+ });
1179
+ }
574
1180
  return function() {
575
- i.current();
1181
+ c();
576
1182
  };
1183
+ }, [r, i]), ye(function() {
1184
+ c();
1185
+ }), {};
1186
+ }, Kt = function(e, t) {
1187
+ var r = t.retryInterval, a = t.retryCount, i = j(), o = j(0), c = j(!1);
1188
+ return a ? {
1189
+ onBefore: function() {
1190
+ c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
1191
+ },
1192
+ onSuccess: function() {
1193
+ o.current = 0;
1194
+ },
1195
+ onError: function() {
1196
+ if (o.current += 1, a === -1 || o.current <= a) {
1197
+ var s = r ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
1198
+ i.current = setTimeout(function() {
1199
+ c.current = !0, e.refresh();
1200
+ }, s);
1201
+ } else
1202
+ o.current = 0;
1203
+ },
1204
+ onCancel: function() {
1205
+ o.current = 0, i.current && clearTimeout(i.current);
1206
+ }
1207
+ } : {};
1208
+ }, Ie, Rr;
1209
+ function en() {
1210
+ if (Rr) return Ie;
1211
+ Rr = 1;
1212
+ var e = $r(), t = Ue(), r = "Expected a function";
1213
+ function a(i, o, c) {
1214
+ var s = !0, f = !0;
1215
+ if (typeof i != "function")
1216
+ throw new TypeError(r);
1217
+ return t(c) && (s = "leading" in c ? !!c.leading : s, f = "trailing" in c ? !!c.trailing : f), e(i, o, {
1218
+ leading: s,
1219
+ maxWait: o,
1220
+ trailing: f
1221
+ });
1222
+ }
1223
+ return Ie = a, Ie;
1224
+ }
1225
+ var rn = en();
1226
+ const tn = /* @__PURE__ */ Ye(rn);
1227
+ var nn = function(e, t) {
1228
+ var r = t.throttleWait, a = t.throttleLeading, i = t.throttleTrailing, o = j(), c = {};
1229
+ return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), J(function() {
1230
+ if (r) {
1231
+ var s = e.runAsync.bind(e);
1232
+ return o.current = tn(function(f) {
1233
+ f();
1234
+ }, r, c), e.runAsync = function() {
1235
+ for (var f = [], u = 0; u < arguments.length; u++)
1236
+ f[u] = arguments[u];
1237
+ return new Promise(function(d, l) {
1238
+ var p;
1239
+ (p = o.current) === null || p === void 0 || p.call(o, function() {
1240
+ s.apply(void 0, O([], _(f), !1)).then(d).catch(l);
1241
+ });
1242
+ });
1243
+ }, function() {
1244
+ var f;
1245
+ e.runAsync = s, (f = o.current) === null || f === void 0 || f.cancel();
1246
+ };
1247
+ }
1248
+ }, [r, a, i]), r ? {
1249
+ onCancel: function() {
1250
+ var s;
1251
+ (s = o.current) === null || s === void 0 || s.cancel();
1252
+ }
1253
+ } : {};
1254
+ }, an = function(e) {
1255
+ pe && (ue(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), J(function() {
1256
+ e == null || e();
1257
+ }, []);
1258
+ }, on = function() {
1259
+ var e = _(Ar({}), 2), t = e[1];
1260
+ return Yr(function() {
1261
+ return t({});
577
1262
  }, []);
578
- }, wr = !!(typeof window < "u" && window.document && window.document.createElement);
579
- function xr(r, i) {
580
- var t = D(qe(r), 2), c = t[0], u = t[1], n = Ae(function() {
581
- var s = !0, f = function() {
582
- return u(function(y) {
583
- return y === r ? s : r;
1263
+ }, un = (
1264
+ /** @class */
1265
+ function() {
1266
+ function e(t, r, a, i) {
1267
+ i === void 0 && (i = {}), this.serviceRef = t, this.options = r, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
1268
+ loading: !1,
1269
+ params: void 0,
1270
+ data: void 0,
1271
+ error: void 0
1272
+ }, this.state = C(C(C({}, this.state), {
1273
+ loading: !r.manual
1274
+ }), i);
1275
+ }
1276
+ return e.prototype.setState = function(t) {
1277
+ t === void 0 && (t = {}), this.state = C(C({}, this.state), t), this.subscribe();
1278
+ }, e.prototype.runPluginHandler = function(t) {
1279
+ for (var r = [], a = 1; a < arguments.length; a++)
1280
+ r[a - 1] = arguments[a];
1281
+ var i = this.pluginImpls.map(function(o) {
1282
+ var c;
1283
+ return (c = o[t]) === null || c === void 0 ? void 0 : c.call.apply(c, O([o], _(r), !1));
1284
+ }).filter(Boolean);
1285
+ return Object.assign.apply(Object, O([{}], _(i), !1));
1286
+ }, e.prototype.runAsync = function() {
1287
+ for (var t = [], r = 0; r < arguments.length; r++)
1288
+ t[r] = arguments[r];
1289
+ return _t(this, void 0, void 0, function() {
1290
+ var a, i, o, c, s, f, u, d, l, p, m, b, E, x, M, N, W, k, Y, B, $;
1291
+ return St(this, function(P) {
1292
+ switch (P.label) {
1293
+ case 0:
1294
+ if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, c = o === void 0 ? !1 : o, s = i.returnNow, f = s === void 0 ? !1 : s, u = Nr(i, ["stopNow", "returnNow"]), c)
1295
+ return [2, new Promise(function() {
1296
+ })];
1297
+ if (this.setState(C({
1298
+ loading: !0,
1299
+ params: t
1300
+ }, u)), f)
1301
+ return [2, Promise.resolve(u.data)];
1302
+ (E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, t), P.label = 1;
1303
+ case 1:
1304
+ return P.trys.push([1, 3, , 4]), d = this.runPluginHandler("onRequest", this.serviceRef.current, t).servicePromise, d || (d = (m = this.serviceRef).current.apply(m, O([], _(t), !1))), [4, d];
1305
+ case 2:
1306
+ return l = P.sent(), a !== this.count ? [2, new Promise(function() {
1307
+ })] : (this.setState({
1308
+ data: l,
1309
+ error: void 0,
1310
+ loading: !1
1311
+ }), (M = (x = this.options).onSuccess) === null || M === void 0 || M.call(x, l, t), this.runPluginHandler("onSuccess", l, t), (W = (N = this.options).onFinally) === null || W === void 0 || W.call(N, t, l, void 0), a === this.count && this.runPluginHandler("onFinally", t, l, void 0), [2, l]);
1312
+ case 3:
1313
+ if (p = P.sent(), a !== this.count)
1314
+ return [2, new Promise(function() {
1315
+ })];
1316
+ throw this.setState({
1317
+ error: p,
1318
+ loading: !1
1319
+ }), (Y = (k = this.options).onError) === null || Y === void 0 || Y.call(k, p, t), this.runPluginHandler("onError", p, t), ($ = (B = this.options).onFinally) === null || $ === void 0 || $.call(B, t, void 0, p), a === this.count && this.runPluginHandler("onFinally", t, void 0, p), p;
1320
+ case 4:
1321
+ return [
1322
+ 2
1323
+ /*return*/
1324
+ ];
1325
+ }
1326
+ });
1327
+ });
1328
+ }, e.prototype.run = function() {
1329
+ for (var t = this, r = [], a = 0; a < arguments.length; a++)
1330
+ r[a] = arguments[a];
1331
+ this.runAsync.apply(this, O([], _(r), !1)).catch(function(i) {
1332
+ t.options.onError || console.error(i);
1333
+ });
1334
+ }, e.prototype.cancel = function() {
1335
+ this.count += 1, this.setState({
1336
+ loading: !1
1337
+ }), this.runPluginHandler("onCancel");
1338
+ }, e.prototype.refresh = function() {
1339
+ this.run.apply(this, O([], _(this.state.params || []), !1));
1340
+ }, e.prototype.refreshAsync = function() {
1341
+ return this.runAsync.apply(this, O([], _(this.state.params || []), !1));
1342
+ }, e.prototype.mutate = function(t) {
1343
+ var r = ue(t) ? t(this.state.data) : t;
1344
+ this.runPluginHandler("onMutate", r), this.setState({
1345
+ data: r
1346
+ });
1347
+ }, e;
1348
+ }()
1349
+ );
1350
+ function cn(e, t, r) {
1351
+ t === void 0 && (t = {}), r === void 0 && (r = []);
1352
+ var a = t.manual, i = a === void 0 ? !1 : a, o = t.ready, c = o === void 0 ? !0 : o, s = Nr(t, ["manual", "ready"]);
1353
+ pe && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));
1354
+ var f = C({
1355
+ manual: i,
1356
+ ready: c
1357
+ }, s), u = He(e), d = on(), l = qr(function() {
1358
+ var p = r.map(function(m) {
1359
+ var b;
1360
+ return (b = m == null ? void 0 : m.onInit) === null || b === void 0 ? void 0 : b.call(m, f);
1361
+ }).filter(Boolean);
1362
+ return new un(u, f, d, Object.assign.apply(Object, O([{}], _(p), !1)));
1363
+ }, []);
1364
+ return l.options = f, l.pluginImpls = r.map(function(p) {
1365
+ return p(l, f);
1366
+ }), an(function() {
1367
+ if (!i && c) {
1368
+ var p = l.state.params || t.defaultParams || [];
1369
+ l.run.apply(l, O([], _(p), !1));
1370
+ }
1371
+ }), ye(function() {
1372
+ l.cancel();
1373
+ }), {
1374
+ loading: l.state.loading,
1375
+ data: l.state.data,
1376
+ error: l.state.error,
1377
+ params: l.state.params || [],
1378
+ cancel: Z(l.cancel.bind(l)),
1379
+ refresh: Z(l.refresh.bind(l)),
1380
+ refreshAsync: Z(l.refreshAsync.bind(l)),
1381
+ run: Z(l.run.bind(l)),
1382
+ runAsync: Z(l.runAsync.bind(l)),
1383
+ mutate: Z(l.mutate.bind(l))
1384
+ };
1385
+ }
1386
+ function sn(e, t, r) {
1387
+ return cn(e, t, O(O([], _(r || []), !1), [Ht, Ut, Vt, Qt, nn, kr, Ct, Kt], !1));
1388
+ }
1389
+ function fn(e, t) {
1390
+ var r = _(Ar(e), 2), a = r[0], i = r[1], o = he(function() {
1391
+ var c = !0, s = function() {
1392
+ return i(function(l) {
1393
+ return l === e ? c : e;
584
1394
  });
585
- }, d = function(y) {
586
- return u(y);
587
- }, b = function() {
588
- return u(r);
589
- }, p = function() {
590
- return u(s);
1395
+ }, f = function(l) {
1396
+ return i(l);
1397
+ }, u = function() {
1398
+ return i(e);
1399
+ }, d = function() {
1400
+ return i(c);
591
1401
  };
592
1402
  return {
593
- toggle: f,
594
- set: d,
595
- setLeft: b,
596
- setRight: p
1403
+ toggle: s,
1404
+ set: f,
1405
+ setLeft: u,
1406
+ setRight: d
597
1407
  };
598
1408
  }, []);
599
- return [c, n];
1409
+ return [a, o];
600
1410
  }
601
- function Sr(r) {
602
- var i = D(xr(!1), 2), t = i[0], c = i[1], u = c.toggle, n = c.set, s = Ae(function() {
603
- var f = function() {
604
- return n(!0);
605
- }, d = function() {
606
- return n(!1);
1411
+ function ln(e) {
1412
+ var t = _(fn(!1), 2), r = t[0], a = t[1], i = a.toggle, o = a.set, c = he(function() {
1413
+ var s = function() {
1414
+ return o(!0);
1415
+ }, f = function() {
1416
+ return o(!1);
607
1417
  };
608
1418
  return {
609
- toggle: u,
610
- set: function(b) {
611
- return n(!!b);
1419
+ toggle: i,
1420
+ set: function(u) {
1421
+ return o(!!u);
612
1422
  },
613
- setTrue: f,
614
- setFalse: d
1423
+ setTrue: s,
1424
+ setFalse: f
615
1425
  };
616
1426
  }, []);
617
- return [t, s];
618
- }
619
- function Pe(r, i) {
620
- if (wr) {
621
- if (!r)
622
- return i;
623
- var t;
624
- return Ne(r) ? t = r() : "current" in r ? t = r.current : t = r, t;
1427
+ return [r, c];
1428
+ }
1429
+ function Lr(e, t) {
1430
+ if (ce) {
1431
+ if (!e)
1432
+ return t;
1433
+ var r;
1434
+ return ue(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
625
1435
  }
626
1436
  }
627
- var Or = function(r) {
628
- var i = function(t, c, u) {
629
- var n = R(!1), s = R([]), f = R([]), d = R();
630
- r(function() {
631
- var b, p = Array.isArray(u) ? u : [u], y = p.map(function(A) {
632
- return Pe(A);
1437
+ var dn = function(e) {
1438
+ var t = function(r, a, i) {
1439
+ var o = j(!1), c = j([]), s = j([]), f = j();
1440
+ e(function() {
1441
+ var u, d = Array.isArray(i) ? i : [i], l = d.map(function(p) {
1442
+ return Lr(p);
633
1443
  });
634
- if (!n.current) {
635
- n.current = !0, s.current = y, f.current = c, d.current = t();
1444
+ if (!o.current) {
1445
+ o.current = !0, c.current = l, s.current = a, f.current = r();
636
1446
  return;
637
1447
  }
638
- (y.length !== s.current.length || !xe(s.current, y) || !xe(f.current, c)) && ((b = d.current) === null || b === void 0 || b.call(d), s.current = y, f.current = c, d.current = t());
639
- }), jr(function() {
640
- var b;
641
- (b = d.current) === null || b === void 0 || b.call(d), n.current = !1;
1448
+ (l.length !== c.current.length || !Ge(c.current, l) || !Ge(s.current, a)) && ((u = f.current) === null || u === void 0 || u.call(f), c.current = l, s.current = a, f.current = r());
1449
+ }), ye(function() {
1450
+ var u;
1451
+ (u = f.current) === null || u === void 0 || u.call(f), o.current = !1;
642
1452
  });
643
1453
  };
644
- return i;
645
- }, Rr = Or(Re);
646
- function Se(r, i, t) {
647
- t === void 0 && (t = {});
648
- var c = t.enable, u = c === void 0 ? !0 : c, n = Ce(i);
649
- Rr(function() {
650
- if (u) {
651
- var s = Pe(t.target, window);
652
- if (s != null && s.addEventListener) {
653
- var f = function(b) {
654
- return n.current(b);
655
- }, d = Array.isArray(r) ? r : [r];
656
- return d.forEach(function(b) {
657
- s.addEventListener(b, f, {
658
- capture: t.capture,
659
- once: t.once,
660
- passive: t.passive
1454
+ return t;
1455
+ }, vn = dn(J);
1456
+ function xr(e, t, r) {
1457
+ r === void 0 && (r = {});
1458
+ var a = r.enable, i = a === void 0 ? !0 : a, o = He(t);
1459
+ vn(function() {
1460
+ if (i) {
1461
+ var c = Lr(r.target, window);
1462
+ if (c != null && c.addEventListener) {
1463
+ var s = function(u) {
1464
+ return o.current(u);
1465
+ }, f = Array.isArray(e) ? e : [e];
1466
+ return f.forEach(function(u) {
1467
+ c.addEventListener(u, s, {
1468
+ capture: r.capture,
1469
+ once: r.once,
1470
+ passive: r.passive
661
1471
  });
662
1472
  }), function() {
663
- d.forEach(function(b) {
664
- s.removeEventListener(b, f, {
665
- capture: t.capture
1473
+ f.forEach(function(u) {
1474
+ c.removeEventListener(u, s, {
1475
+ capture: r.capture
666
1476
  });
667
1477
  });
668
1478
  };
669
1479
  }
670
1480
  }
671
- }, [r, t.capture, t.once, t.passive, u], t.target);
1481
+ }, [e, r.capture, r.once, r.passive, i], r.target);
672
1482
  }
673
- const Ar = function(r, i) {
674
- var t = {}, c = t.onEnter, u = t.onLeave, n = t.onChange, s = D(Sr(), 2), f = s[0], d = s[1], b = d.setTrue, p = d.setFalse;
675
- return Se("mouseenter", function() {
676
- c == null || c(), b(), n == null || n(!0);
1483
+ const gn = function(e, t) {
1484
+ var r = {}, a = r.onEnter, i = r.onLeave, o = r.onChange, c = _(ln(), 2), s = c[0], f = c[1], u = f.setTrue, d = f.setFalse;
1485
+ return xr("mouseenter", function() {
1486
+ a == null || a(), u(), o == null || o(!0);
677
1487
  }, {
678
- target: r
679
- }), Se("mouseleave", function() {
680
- u == null || u(), p(), n == null || n(!1);
1488
+ target: e
1489
+ }), xr("mouseleave", function() {
1490
+ i == null || i(), d(), o == null || o(!1);
681
1491
  }, {
682
- target: r
683
- }), f;
684
- }, kr = Ve(
685
- ({ type: r = "", className: i = "", symbol: t = !1, ...c }, u) => t ? /* @__PURE__ */ _.jsx(
1492
+ target: e
1493
+ }), s;
1494
+ }, bn = Hr(
1495
+ ({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */ q.jsx(
686
1496
  "svg",
687
1497
  {
688
- className: `iconfont-symbol ${r} ${i}`,
1498
+ className: `iconfont-symbol ${e} ${t}`,
689
1499
  "aria-hidden": "true",
690
- ref: u,
691
- ...c,
692
- children: /* @__PURE__ */ _.jsx("use", { xlinkHref: `#${r}` })
1500
+ ref: i,
1501
+ ...a,
1502
+ children: /* @__PURE__ */ q.jsx("use", { xlinkHref: `#${e}` })
693
1503
  }
694
- ) : /* @__PURE__ */ _.jsx(
1504
+ ) : /* @__PURE__ */ q.jsx(
695
1505
  "i",
696
1506
  {
697
- className: `iconfont ${r} ${i}`,
698
- ref: u,
699
- ...c
1507
+ className: `iconfont ${e} ${t}`,
1508
+ ref: i,
1509
+ ...a
700
1510
  }
701
1511
  )
702
- ), Nr = "_btn_icon__warp_ay6he_1", Cr = {
703
- btn_icon__warp: Nr
704
- }, Pr = (r, i) => {
705
- const t = R(null), {
706
- icon: c,
707
- tooltipDisabled: u = !1,
708
- onClick: n = Er,
709
- disabled: s,
710
- size: f = "middle",
711
- style: d = {},
712
- className: b,
713
- loading: p = !1,
714
- ...y
715
- } = r, A = Ar(t), L = () => pr(c) && c.includes("icon-") ? /* @__PURE__ */ _.jsx(kr, { type: c }) : c, k = /* @__PURE__ */ _.jsx(
716
- ze,
1512
+ ), mn = "_btn_icon__warp_ay6he_1", hn = {
1513
+ btn_icon__warp: mn
1514
+ }, pn = (e, t) => {
1515
+ const r = j(null), {
1516
+ icon: a,
1517
+ tooltipDisabled: i = !1,
1518
+ onClick: o = ht,
1519
+ disabled: c,
1520
+ size: s = "middle",
1521
+ style: f = {},
1522
+ className: u,
1523
+ loading: d = !1,
1524
+ ...l
1525
+ } = e, p = gn(r), m = () => yt(a) && a.includes("icon-") ? /* @__PURE__ */ q.jsx(bn, { type: a }) : a, b = /* @__PURE__ */ q.jsx(
1526
+ Dr,
717
1527
  {
718
- onClick: n,
719
- size: f,
720
- disabled: s,
721
- style: d,
722
- ref: i,
723
- loading: p,
724
- className: hr([b, Cr.btn_icon__warp]),
725
- icon: L()
1528
+ onClick: o,
1529
+ size: s,
1530
+ disabled: c,
1531
+ style: f,
1532
+ ref: t,
1533
+ loading: d,
1534
+ className: wt([u, hn.btn_icon__warp]),
1535
+ icon: m()
726
1536
  }
727
1537
  );
728
- if (!c)
1538
+ if (!a)
729
1539
  throw new Error("IconButton 组件必须传入 icon 属性");
730
- return /* @__PURE__ */ _.jsxs(Be, { children: [
731
- u && k,
732
- !u && /* @__PURE__ */ _.jsx(
733
- Ge,
1540
+ return /* @__PURE__ */ q.jsxs(Ur, { children: [
1541
+ i && b,
1542
+ !i && /* @__PURE__ */ q.jsx(
1543
+ Vr,
734
1544
  {
735
- open: A,
1545
+ open: p,
736
1546
  trigger: "contextMenu",
737
1547
  destroyTooltipOnHide: !0,
738
- ...y,
739
- children: /* @__PURE__ */ _.jsx(
1548
+ ...l,
1549
+ children: /* @__PURE__ */ q.jsx(
740
1550
  "span",
741
1551
  {
742
- ref: t,
1552
+ ref: r,
743
1553
  style: { display: "inline-block" },
744
1554
  className: "icon-button-box",
745
- children: k
1555
+ children: b
746
1556
  }
747
1557
  )
748
1558
  }
749
1559
  )
750
1560
  ] });
751
- }, Fr = Oe.forwardRef(Pr), qr = ({
752
- checked: r,
753
- onChange: i,
754
- trueValue: t = !0,
755
- falseValue: c = !1,
756
- ...u
1561
+ }, _n = Pr.forwardRef(pn), Sn = ({
1562
+ checked: e,
1563
+ onChange: t,
1564
+ trueValue: r = !0,
1565
+ falseValue: a = !1,
1566
+ ...i
757
1567
  }) => {
758
- const n = r === t, s = (f, d) => {
759
- i == null || i(f ? t : c, d);
1568
+ const o = e === r, c = (s, f) => {
1569
+ t == null || t(s ? r : a, f);
760
1570
  };
761
- return /* @__PURE__ */ _.jsx(
762
- He,
1571
+ return /* @__PURE__ */ q.jsx(
1572
+ Jr,
763
1573
  {
764
- checked: n,
765
- onChange: s,
766
- ...u
1574
+ checked: o,
1575
+ onChange: c,
1576
+ ...i
767
1577
  }
768
1578
  );
769
1579
  };
770
- let $r = Je, Yr = Xe, Mr = Ze;
771
- function Vr({ children: r }) {
772
- const i = Qe.useApp();
773
- return $r = i.message, Mr = i.modal, Yr = i.notification, r;
1580
+ let Fr = Xr, yn = Zr, En = Qr;
1581
+ function On({ children: e }) {
1582
+ const t = Kr.useApp();
1583
+ return Fr = t.message, En = t.modal, yn = t.notification, e;
1584
+ }
1585
+ function Rn(e, t, r) {
1586
+ const a = sn(e, {
1587
+ ...t,
1588
+ onError(o, c) {
1589
+ var s;
1590
+ ((t == null ? void 0 : t.errorMessage) ?? !0) && Fr.error(o.message), (s = t == null ? void 0 : t.onError) == null || s.call(t, o, c);
1591
+ }
1592
+ }, r), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
1593
+ return {
1594
+ ...a,
1595
+ data: i
1596
+ };
774
1597
  }
775
1598
  export {
776
- Vr as App,
777
- Lr as CheckboxValue,
778
- Fr as IconButton,
779
- kr as IconFont,
780
- qr as SwitchValue,
781
- $r as message,
782
- Mr as modal,
783
- Yr as notification
1599
+ On as App,
1600
+ jn as CheckboxValue,
1601
+ _n as IconButton,
1602
+ bn as IconFont,
1603
+ Sn as SwitchValue,
1604
+ Fr as message,
1605
+ En as modal,
1606
+ yn as notification,
1607
+ Rn as useRequest
784
1608
  };