xmirror-components 1.0.40-alpha.1 → 1.0.40-alpha.2

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.
@@ -5,8 +5,7 @@ import { CSSTransition as C } from "react-transition-group";
5
5
  import { isArray as w, isString as T, noop as E, toNumber as D } from "lodash-es";
6
6
  import { useLocalStorageState as O, useMemoizedFn as k, useRequest as A, useUpdate as j } from "ahooks";
7
7
  import { CaretUpOutlined as M, CloseOutlined as N, DownOutlined as P, HolderOutlined as F, MenuOutlined as ee, UpOutlined as I } from "@ant-design/icons";
8
- import { useBlocker as te, useLocation as ne, useNavigate as re } from "react-router-dom";
9
- import ie from "@ahooksjs/use-url-state";
8
+ import { useBlocker as te, useLocation as ne, useNavigate as re, useSearchParams as ie } from "react-router-dom";
10
9
  //#region \0rolldown/runtime.js
11
10
  var ae = Object.create, oe = Object.defineProperty, se = Object.getOwnPropertyDescriptor, ce = Object.getOwnPropertyNames, le = Object.getPrototypeOf, ue = Object.prototype.hasOwnProperty, L = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), de = (e, t, n, r) => {
12
11
  if (t && typeof t == "object" || typeof t == "function") for (var i = ce(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ue.call(e, s) && s !== n && oe(e, s, {
@@ -98,16 +97,16 @@ function U(e) {
98
97
  function Ne(e) {
99
98
  return e.length;
100
99
  }
101
- function W(e, t) {
100
+ function Pe(e, t) {
102
101
  return t.push(e), e;
103
102
  }
104
- function Pe(e, t) {
103
+ function Fe(e, t) {
105
104
  return e.map(t).join("");
106
105
  }
107
106
  //#endregion
108
107
  //#region node_modules/stylis/src/Tokenizer.js
109
- var Fe = 1, G = 1, Ie = 0, K = 0, q = 0, J = "";
110
- function Le(e, t, n, r, i, a, o) {
108
+ var Ie = 1, W = 1, Le = 0, G = 0, K = 0, q = "";
109
+ function Re(e, t, n, r, i, a, o) {
111
110
  return {
112
111
  value: e,
113
112
  root: t,
@@ -115,34 +114,34 @@ function Le(e, t, n, r, i, a, o) {
115
114
  type: r,
116
115
  props: i,
117
116
  children: a,
118
- line: Fe,
119
- column: G,
117
+ line: Ie,
118
+ column: W,
120
119
  length: o,
121
120
  return: ""
122
121
  };
123
122
  }
124
- function Re(e, t) {
125
- return De(Le("", null, null, "", null, null, 0), e, { length: -e.length }, t);
126
- }
127
- function ze() {
128
- return q;
123
+ function ze(e, t) {
124
+ return De(Re("", null, null, "", null, null, 0), e, { length: -e.length }, t);
129
125
  }
130
126
  function Be() {
131
- return q = K > 0 ? H(J, --K) : 0, G--, q === 10 && (G = 1, Fe--), q;
127
+ return K;
132
128
  }
133
- function Y() {
134
- return q = K < Ie ? H(J, K++) : 0, G++, q === 10 && (G = 1, Fe++), q;
129
+ function Ve() {
130
+ return K = G > 0 ? H(q, --G) : 0, W--, K === 10 && (W = 1, Ie--), K;
135
131
  }
136
- function X() {
137
- return H(J, K);
132
+ function J() {
133
+ return K = G < Le ? H(q, G++) : 0, W++, K === 10 && (W = 1, Ie++), K;
138
134
  }
139
- function Ve() {
140
- return K;
135
+ function Y() {
136
+ return H(q, G);
141
137
  }
142
- function He(e, t) {
143
- return Me(J, e, t);
138
+ function He() {
139
+ return G;
144
140
  }
145
- function Ue(e) {
141
+ function Ue(e, t) {
142
+ return Me(q, e, t);
143
+ }
144
+ function We(e) {
146
145
  switch (e) {
147
146
  case 0:
148
147
  case 9:
@@ -169,77 +168,77 @@ function Ue(e) {
169
168
  }
170
169
  return 0;
171
170
  }
172
- function We(e) {
173
- return Fe = G = 1, Ie = U(J = e), K = 0, [];
174
- }
175
171
  function Ge(e) {
176
- return J = "", e;
172
+ return Ie = W = 1, Le = U(q = e), G = 0, [];
177
173
  }
178
174
  function Ke(e) {
179
- return ke(He(K - 1, Ye(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
175
+ return q = "", e;
180
176
  }
181
177
  function qe(e) {
182
- for (; (q = X()) && q < 33;) Y();
183
- return Ue(e) > 2 || Ue(q) > 3 ? "" : " ";
178
+ return ke(Ue(G - 1, Xe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
184
179
  }
185
- function Je(e, t) {
186
- for (; --t && Y() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97););
187
- return He(e, Ve() + (t < 6 && X() == 32 && Y() == 32));
180
+ function Je(e) {
181
+ for (; (K = Y()) && K < 33;) J();
182
+ return We(e) > 2 || We(K) > 3 ? "" : " ";
188
183
  }
189
- function Ye(e) {
190
- for (; Y();) switch (q) {
191
- case e: return K;
184
+ function Ye(e, t) {
185
+ for (; --t && J() && !(K < 48 || K > 102 || K > 57 && K < 65 || K > 70 && K < 97););
186
+ return Ue(e, He() + (t < 6 && Y() == 32 && J() == 32));
187
+ }
188
+ function Xe(e) {
189
+ for (; J();) switch (K) {
190
+ case e: return G;
192
191
  case 34:
193
192
  case 39:
194
- e !== 34 && e !== 39 && Ye(q);
193
+ e !== 34 && e !== 39 && Xe(K);
195
194
  break;
196
195
  case 40:
197
- e === 41 && Ye(e);
196
+ e === 41 && Xe(e);
198
197
  break;
199
198
  case 92:
200
- Y();
199
+ J();
201
200
  break;
202
201
  }
203
- return K;
202
+ return G;
204
203
  }
205
- function Xe(e, t) {
206
- for (; Y() && e + q !== 57 && !(e + q === 84 && X() === 47););
207
- return "/*" + He(t, K - 1) + "*" + Ee(e === 47 ? e : Y());
204
+ function Ze(e, t) {
205
+ for (; J() && e + K !== 57 && !(e + K === 84 && Y() === 47););
206
+ return "/*" + Ue(t, G - 1) + "*" + Ee(e === 47 ? e : J());
208
207
  }
209
- function Ze(e) {
210
- for (; !Ue(X());) Y();
211
- return He(e, K);
208
+ function Qe(e) {
209
+ for (; !We(Y());) J();
210
+ return Ue(e, G);
212
211
  }
213
212
  //#endregion
214
213
  //#region node_modules/stylis/src/Parser.js
215
- function Qe(e) {
216
- return Ge($e("", null, null, null, [""], e = We(e), 0, [0], e));
214
+ function $e(e) {
215
+ return Ke(et("", null, null, null, [""], e = Ge(e), 0, [0], e));
217
216
  }
218
- function $e(e, t, n, r, i, a, o, s, c) {
219
- for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = Y()) {
217
+ function et(e, t, n, r, i, a, o, s, c) {
218
+ for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = J()) {
220
219
  case 40: if (m != 108 && H(C, d - 1) == 58) {
221
- je(C += V(Ke(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
220
+ je(C += V(qe(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
222
221
  break;
223
222
  }
224
223
  case 34:
225
224
  case 39:
226
225
  case 91:
227
- C += Ke(v);
226
+ C += qe(v);
228
227
  break;
229
228
  case 9:
230
229
  case 10:
231
230
  case 13:
232
231
  case 32:
233
- C += qe(m);
232
+ C += Je(m);
234
233
  break;
235
234
  case 92:
236
- C += Je(Ve() - 1, 7);
235
+ C += Ye(He() - 1, 7);
237
236
  continue;
238
237
  case 47:
239
- switch (X()) {
238
+ switch (Y()) {
240
239
  case 42:
241
240
  case 47:
242
- W(tt(Xe(Y(), Ve()), t, n), c);
241
+ Pe(nt(Ze(J(), He()), t, n), c);
243
242
  break;
244
243
  default: C += "/";
245
244
  }
@@ -252,18 +251,18 @@ function $e(e, t, n, r, i, a, o, s, c) {
252
251
  case 0:
253
252
  case 125: g = 0;
254
253
  case 59 + u:
255
- _ == -1 && (C = V(C, /\f/g, "")), p > 0 && U(C) - d && W(p > 32 ? nt(C + ";", r, n, d - 1) : nt(V(C, " ", "") + ";", r, n, d - 2), c);
254
+ _ == -1 && (C = V(C, /\f/g, "")), p > 0 && U(C) - d && Pe(p > 32 ? rt(C + ";", r, n, d - 1) : rt(V(C, " ", "") + ";", r, n, d - 2), c);
256
255
  break;
257
256
  case 59: C += ";";
258
- default: if (W(S = et(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) if (u === 0) $e(C, t, S, S, b, a, d, s, x);
257
+ default: if (Pe(S = tt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) if (u === 0) et(C, t, S, S, b, a, d, s, x);
259
258
  else switch (f === 99 && H(C, 3) === 110 ? 100 : f) {
260
259
  case 100:
261
260
  case 108:
262
261
  case 109:
263
262
  case 115:
264
- $e(e, S, S, r && W(et(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
263
+ et(e, S, S, r && Pe(tt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
265
264
  break;
266
- default: $e(C, S, S, S, [""], x, 0, s, x);
265
+ default: et(C, S, S, S, [""], x, 0, s, x);
267
266
  }
268
267
  }
269
268
  l = u = p = 0, h = _ = 1, y = C = "", d = o;
@@ -272,7 +271,7 @@ function $e(e, t, n, r, i, a, o, s, c) {
272
271
  default:
273
272
  if (h < 1) {
274
273
  if (v == 123) --h;
275
- else if (v == 125 && h++ == 0 && Be() == 125) continue;
274
+ else if (v == 125 && h++ == 0 && Ve() == 125) continue;
276
275
  }
277
276
  switch (C += Ee(v), v * h) {
278
277
  case 38:
@@ -282,26 +281,26 @@ function $e(e, t, n, r, i, a, o, s, c) {
282
281
  s[l++] = (U(C) - 1) * _, _ = 1;
283
282
  break;
284
283
  case 64:
285
- X() === 45 && (C += Ke(Y())), f = X(), u = d = U(y = C += Ze(Ve())), v++;
284
+ Y() === 45 && (C += qe(J())), f = Y(), u = d = U(y = C += Qe(He())), v++;
286
285
  break;
287
286
  case 45: m === 45 && U(C) == 2 && (h = 0);
288
287
  }
289
288
  }
290
289
  return a;
291
290
  }
292
- function et(e, t, n, r, i, a, o, s, c, l, u) {
291
+ function tt(e, t, n, r, i, a, o, s, c, l, u) {
293
292
  for (var d = i - 1, f = i === 0 ? a : [""], p = Ne(f), m = 0, h = 0, g = 0; m < r; ++m) for (var _ = 0, v = Me(e, d + 1, d = Te(h = o[m])), y = e; _ < p; ++_) (y = ke(h > 0 ? f[_] + " " + v : V(v, /&\f/g, f[_]))) && (c[g++] = y);
294
- return Le(e, t, n, i === 0 ? be : s, c, l, u);
293
+ return Re(e, t, n, i === 0 ? be : s, c, l, u);
295
294
  }
296
- function tt(e, t, n) {
297
- return Le(e, t, n, ye, Ee(ze()), Me(e, 2, -2), 0);
295
+ function nt(e, t, n) {
296
+ return Re(e, t, n, ye, Ee(Be()), Me(e, 2, -2), 0);
298
297
  }
299
- function nt(e, t, n, r) {
300
- return Le(e, t, n, xe, Me(e, 0, r), Me(e, r + 1, -1), r);
298
+ function rt(e, t, n, r) {
299
+ return Re(e, t, n, xe, Me(e, 0, r), Me(e, r + 1, -1), r);
301
300
  }
302
301
  //#endregion
303
302
  //#region node_modules/stylis/src/Serializer.js
304
- function rt(e, t) {
303
+ function X(e, t) {
305
304
  for (var n = "", r = Ne(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
306
305
  return n;
307
306
  }
@@ -311,10 +310,10 @@ function it(e, t, n, r) {
311
310
  case Se:
312
311
  case xe: return e.return = e.return || e.value;
313
312
  case ye: return "";
314
- case Ce: return e.return = e.value + "{" + rt(e.children, r) + "}";
313
+ case Ce: return e.return = e.value + "{" + X(e.children, r) + "}";
315
314
  case be: e.value = e.props.join(",");
316
315
  }
317
- return U(n = rt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
316
+ return U(n = X(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
318
317
  }
319
318
  //#endregion
320
319
  //#region node_modules/stylis/src/Middleware.js
@@ -341,28 +340,28 @@ function st(e) {
341
340
  //#endregion
342
341
  //#region node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
343
342
  var ct = function(e, t, n) {
344
- for (var r = 0, i = 0; r = i, i = X(), r === 38 && i === 12 && (t[n] = 1), !Ue(i);) Y();
345
- return He(e, K);
343
+ for (var r = 0, i = 0; r = i, i = Y(), r === 38 && i === 12 && (t[n] = 1), !We(i);) J();
344
+ return Ue(e, G);
346
345
  }, lt = function(e, t) {
347
346
  var n = -1, r = 44;
348
347
  do
349
- switch (Ue(r)) {
348
+ switch (We(r)) {
350
349
  case 0:
351
- r === 38 && X() === 12 && (t[n] = 1), e[n] += ct(K - 1, t, n);
350
+ r === 38 && Y() === 12 && (t[n] = 1), e[n] += ct(G - 1, t, n);
352
351
  break;
353
352
  case 2:
354
- e[n] += Ke(r);
353
+ e[n] += qe(r);
355
354
  break;
356
355
  case 4: if (r === 44) {
357
- e[++n] = X() === 58 ? "&\f" : "", t[n] = e[n].length;
356
+ e[++n] = Y() === 58 ? "&\f" : "", t[n] = e[n].length;
358
357
  break;
359
358
  }
360
359
  default: e[n] += Ee(r);
361
360
  }
362
- while (r = Y());
361
+ while (r = J());
363
362
  return e;
364
363
  }, ut = function(e, t) {
365
- return Ge(lt(We(e), t));
364
+ return Ke(lt(Ge(e), t));
366
365
  }, dt = /* @__PURE__ */ new WeakMap(), ft = function(e) {
367
366
  if (!(e.type !== "rule" || !e.parent || e.length < 1)) {
368
367
  for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule";) if (n = n.parent, !n) return;
@@ -468,15 +467,15 @@ var ht = [function(e, t, n, r) {
468
467
  case xe:
469
468
  e.return = mt(e.value, e.length);
470
469
  break;
471
- case Ce: return rt([Re(e, { value: V(e.value, "@", "@" + B) })], r);
472
- case be: if (e.length) return Pe(e.props, function(t) {
470
+ case Ce: return X([ze(e, { value: V(e.value, "@", "@" + B) })], r);
471
+ case be: if (e.length) return Fe(e.props, function(t) {
473
472
  switch (Ae(t, /(::plac\w+|:read-\w+)/)) {
474
473
  case ":read-only":
475
- case ":read-write": return rt([Re(e, { props: [V(t, /:(read-\w+)/, ":" + ve + "$1")] })], r);
476
- case "::placeholder": return rt([
477
- Re(e, { props: [V(t, /:(plac\w+)/, ":" + B + "input-$1")] }),
478
- Re(e, { props: [V(t, /:(plac\w+)/, ":" + ve + "$1")] }),
479
- Re(e, { props: [V(t, /:(plac\w+)/, z + "input-$1")] })
474
+ case ":read-write": return X([ze(e, { props: [V(t, /:(read-\w+)/, ":" + ve + "$1")] })], r);
475
+ case "::placeholder": return X([
476
+ ze(e, { props: [V(t, /:(plac\w+)/, ":" + B + "input-$1")] }),
477
+ ze(e, { props: [V(t, /:(plac\w+)/, ":" + ve + "$1")] }),
478
+ ze(e, { props: [V(t, /:(plac\w+)/, z + "input-$1")] })
480
479
  ], r);
481
480
  }
482
481
  return "";
@@ -498,7 +497,7 @@ var ht = [function(e, t, n, r) {
498
497
  var s, c = [ft, pt], l, u = [it, ot(function(e) {
499
498
  l.insert(e);
500
499
  })], d = at(c.concat(r, u)), f = function(e) {
501
- return rt(Qe(e), d);
500
+ return X($e(e), d);
502
501
  };
503
502
  s = function(e, t, n, r) {
504
503
  l = n, f(e ? e + "{" + t.styles + "}" : t.styles), r && (p.inserted[t.name] = !0);
@@ -1035,474 +1034,179 @@ dn.forEach(function(e) {
1035
1034
  Q[e] = Q(e);
1036
1035
  });
1037
1036
  //#endregion
1038
- //#region node_modules/react/cjs/react-jsx-runtime.production.min.js
1037
+ //#region node_modules/react/cjs/react-jsx-runtime.production.js
1039
1038
  var fn = /* @__PURE__ */ L(((e) => {
1040
- var t = R("react"), n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = {
1041
- key: !0,
1042
- ref: !0,
1043
- __self: !0,
1044
- __source: !0
1045
- };
1046
- function s(e, t, r) {
1047
- var s, c = {}, l = null, u = null;
1048
- for (s in r !== void 0 && (l = "" + r), t.key !== void 0 && (l = "" + t.key), t.ref !== void 0 && (u = t.ref), t) i.call(t, s) && !o.hasOwnProperty(s) && (c[s] = t[s]);
1049
- if (e && e.defaultProps) for (s in t = e.defaultProps, t) c[s] === void 0 && (c[s] = t[s]);
1050
- return {
1051
- $$typeof: n,
1039
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
1040
+ function r(e, n, r) {
1041
+ var i = null;
1042
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
1043
+ else r = n;
1044
+ return n = r.ref, {
1045
+ $$typeof: t,
1052
1046
  type: e,
1053
- key: l,
1054
- ref: u,
1055
- props: c,
1056
- _owner: a.current
1047
+ key: i,
1048
+ ref: n === void 0 ? null : n,
1049
+ props: r
1057
1050
  };
1058
1051
  }
1059
- e.Fragment = r, e.jsx = s, e.jsxs = s;
1052
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
1060
1053
  })), pn = /* @__PURE__ */ L(((e) => {
1061
1054
  process.env.NODE_ENV !== "production" && (function() {
1062
- var t = R("react"), n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), h = Symbol.iterator, g = "@@iterator";
1063
- function _(e) {
1064
- if (typeof e != "object" || !e) return null;
1065
- var t = h && e[h] || e[g];
1066
- return typeof t == "function" ? t : null;
1067
- }
1068
- var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1069
- function y(e) {
1070
- b("error", e, [...arguments].slice(1));
1071
- }
1072
- function b(e, t, n) {
1073
- var r = v.ReactDebugCurrentFrame.getStackAddendum();
1074
- r !== "" && (t += "%s", n = n.concat([r]));
1075
- var i = n.map(function(e) {
1076
- return String(e);
1077
- });
1078
- i.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, i);
1079
- }
1080
- var x = !1, S = !1, C = !1, w = !1, T = !1, E = Symbol.for("react.module.reference");
1081
- function D(e) {
1082
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === o || T || e === a || e === u || e === d || w || e === m || x || S || C || typeof e == "object" && e && (e.$$typeof === p || e.$$typeof === f || e.$$typeof === s || e.$$typeof === c || e.$$typeof === l || e.$$typeof === E || e.getModuleId !== void 0));
1083
- }
1084
- function O(e, t, n) {
1085
- var r = e.displayName;
1086
- if (r) return r;
1087
- var i = t.displayName || t.name || "";
1088
- return i === "" ? n : n + "(" + i + ")";
1089
- }
1090
- function k(e) {
1091
- return e.displayName || "Context";
1092
- }
1093
- function A(e) {
1055
+ function t(e) {
1094
1056
  if (e == null) return null;
1095
- if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null;
1057
+ if (typeof e == "function") return e.$$typeof === O ? null : e.displayName || e.name || null;
1096
1058
  if (typeof e == "string") return e;
1097
1059
  switch (e) {
1098
- case i: return "Fragment";
1099
- case r: return "Portal";
1100
- case o: return "Profiler";
1101
- case a: return "StrictMode";
1102
- case u: return "Suspense";
1103
- case d: return "SuspenseList";
1060
+ case _: return "Fragment";
1061
+ case y: return "Profiler";
1062
+ case v: return "StrictMode";
1063
+ case C: return "Suspense";
1064
+ case w: return "SuspenseList";
1065
+ case D: return "Activity";
1104
1066
  }
1105
- if (typeof e == "object") switch (e.$$typeof) {
1106
- case c: return k(e) + ".Consumer";
1107
- case s: return k(e._context) + ".Provider";
1108
- case l: return O(e, e.render, "ForwardRef");
1109
- case f:
1110
- var t = e.displayName || null;
1111
- return t === null ? A(e.type) || "Memo" : t;
1112
- case p:
1113
- var n = e, m = n._payload, h = n._init;
1067
+ if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
1068
+ case g: return "Portal";
1069
+ case x: return e.displayName || "Context";
1070
+ case b: return (e._context.displayName || "Context") + ".Consumer";
1071
+ case S:
1072
+ var n = e.render;
1073
+ return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
1074
+ case T: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
1075
+ case E:
1076
+ n = e._payload, e = e._init;
1114
1077
  try {
1115
- return A(h(m));
1116
- } catch {
1117
- return null;
1118
- }
1078
+ return t(e(n));
1079
+ } catch {}
1119
1080
  }
1120
1081
  return null;
1121
1082
  }
1122
- var j = Object.assign, M = 0, N, P, F, ee, I, te, ne;
1123
- function re() {}
1124
- re.__reactDisabledLog = !0;
1125
- function ie() {
1126
- if (M === 0) {
1127
- N = console.log, P = console.info, F = console.warn, ee = console.error, I = console.group, te = console.groupCollapsed, ne = console.groupEnd;
1128
- var e = {
1129
- configurable: !0,
1130
- enumerable: !0,
1131
- value: re,
1132
- writable: !0
1133
- };
1134
- Object.defineProperties(console, {
1135
- info: e,
1136
- log: e,
1137
- warn: e,
1138
- error: e,
1139
- group: e,
1140
- groupCollapsed: e,
1141
- groupEnd: e
1142
- });
1143
- }
1144
- M++;
1145
- }
1146
- function ae() {
1147
- if (M--, M === 0) {
1148
- var e = {
1149
- configurable: !0,
1150
- enumerable: !0,
1151
- writable: !0
1152
- };
1153
- Object.defineProperties(console, {
1154
- log: j({}, e, { value: N }),
1155
- info: j({}, e, { value: P }),
1156
- warn: j({}, e, { value: F }),
1157
- error: j({}, e, { value: ee }),
1158
- group: j({}, e, { value: I }),
1159
- groupCollapsed: j({}, e, { value: te }),
1160
- groupEnd: j({}, e, { value: ne })
1161
- });
1162
- }
1163
- M < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1164
- }
1165
- var oe = v.ReactCurrentDispatcher, se;
1166
- function ce(e, t, n) {
1167
- if (se === void 0) try {
1168
- throw Error();
1169
- } catch (e) {
1170
- var r = e.stack.trim().match(/\n( *(at )?)/);
1171
- se = r && r[1] || "";
1172
- }
1173
- return "\n" + se + e;
1083
+ function n(e) {
1084
+ return "" + e;
1174
1085
  }
1175
- var le = !1, ue = new (typeof WeakMap == "function" ? WeakMap : Map)();
1176
- function L(e, t) {
1177
- if (!e || le) return "";
1178
- var n = ue.get(e);
1179
- if (n !== void 0) return n;
1180
- var r;
1181
- le = !0;
1182
- var i = Error.prepareStackTrace;
1183
- Error.prepareStackTrace = void 0;
1184
- var a = oe.current;
1185
- oe.current = null, ie();
1086
+ function r(e) {
1186
1087
  try {
1187
- if (t) {
1188
- var o = function() {
1189
- throw Error();
1190
- };
1191
- if (Object.defineProperty(o.prototype, "props", { set: function() {
1192
- throw Error();
1193
- } }), typeof Reflect == "object" && Reflect.construct) {
1194
- try {
1195
- Reflect.construct(o, []);
1196
- } catch (e) {
1197
- r = e;
1198
- }
1199
- Reflect.construct(e, [], o);
1200
- } else {
1201
- try {
1202
- o.call();
1203
- } catch (e) {
1204
- r = e;
1205
- }
1206
- e.call(o.prototype);
1207
- }
1208
- } else {
1209
- try {
1210
- throw Error();
1211
- } catch (e) {
1212
- r = e;
1213
- }
1214
- e();
1215
- }
1216
- } catch (t) {
1217
- if (t && r && typeof t.stack == "string") {
1218
- for (var s = t.stack.split("\n"), c = r.stack.split("\n"), l = s.length - 1, u = c.length - 1; l >= 1 && u >= 0 && s[l] !== c[u];) u--;
1219
- for (; l >= 1 && u >= 0; l--, u--) if (s[l] !== c[u]) {
1220
- if (l !== 1 || u !== 1) do
1221
- if (l--, u--, u < 0 || s[l] !== c[u]) {
1222
- var d = "\n" + s[l].replace(" at new ", " at ");
1223
- return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, d), d;
1224
- }
1225
- while (l >= 1 && u >= 0);
1226
- break;
1227
- }
1228
- }
1229
- } finally {
1230
- le = !1, oe.current = a, ae(), Error.prepareStackTrace = i;
1231
- }
1232
- var f = e ? e.displayName || e.name : "", p = f ? ce(f) : "";
1233
- return typeof e == "function" && ue.set(e, p), p;
1234
- }
1235
- function de(e, t, n) {
1236
- return L(e, !1);
1237
- }
1238
- function fe(e) {
1239
- var t = e.prototype;
1240
- return !!(t && t.isReactComponent);
1241
- }
1242
- function pe(e, t, n) {
1243
- if (e == null) return "";
1244
- if (typeof e == "function") return L(e, fe(e));
1245
- if (typeof e == "string") return ce(e);
1246
- switch (e) {
1247
- case u: return ce("Suspense");
1248
- case d: return ce("SuspenseList");
1088
+ n(e);
1089
+ var t = !1;
1090
+ } catch {
1091
+ t = !0;
1249
1092
  }
1250
- if (typeof e == "object") switch (e.$$typeof) {
1251
- case l: return de(e.render);
1252
- case f: return pe(e.type, t, n);
1253
- case p:
1254
- var r = e, i = r._payload, a = r._init;
1255
- try {
1256
- return pe(a(i), t, n);
1257
- } catch {}
1093
+ if (t) {
1094
+ t = console;
1095
+ var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1096
+ return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
1258
1097
  }
1259
- return "";
1260
- }
1261
- var me = Object.prototype.hasOwnProperty, he = {}, ge = v.ReactDebugCurrentFrame;
1262
- function _e(e) {
1263
- if (e) {
1264
- var t = e._owner, n = pe(e.type, e._source, t ? t.type : null);
1265
- ge.setExtraStackFrame(n);
1266
- } else ge.setExtraStackFrame(null);
1267
1098
  }
1268
- function z(e, t, n, r, i) {
1269
- var a = Function.call.bind(me);
1270
- for (var o in e) if (a(e, o)) {
1271
- var s = void 0;
1272
- try {
1273
- if (typeof e[o] != "function") {
1274
- var c = Error((r || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1275
- throw c.name = "Invariant Violation", c;
1276
- }
1277
- s = e[o](t, o, r, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1278
- } catch (e) {
1279
- s = e;
1280
- }
1281
- s && !(s instanceof Error) && (_e(i), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", r || "React class", n, o, typeof s), _e(null)), s instanceof Error && !(s.message in he) && (he[s.message] = !0, _e(i), y("Failed %s type: %s", n, s.message), _e(null));
1282
- }
1283
- }
1284
- var ve = Array.isArray;
1285
- function B(e) {
1286
- return ve(e);
1287
- }
1288
- function ye(e) {
1289
- return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1290
- }
1291
- function be(e) {
1099
+ function i(e) {
1100
+ if (e === _) return "<>";
1101
+ if (typeof e == "object" && e && e.$$typeof === E) return "<...>";
1292
1102
  try {
1293
- return xe(e), !1;
1103
+ var n = t(e);
1104
+ return n ? "<" + n + ">" : "<...>";
1294
1105
  } catch {
1295
- return !0;
1106
+ return "<...>";
1296
1107
  }
1297
1108
  }
1298
- function xe(e) {
1299
- return "" + e;
1300
- }
1301
- function Se(e) {
1302
- if (be(e)) return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(e)), xe(e);
1109
+ function a() {
1110
+ var e = k.A;
1111
+ return e === null ? null : e.getOwner();
1303
1112
  }
1304
- var Ce = v.ReactCurrentOwner, we = {
1305
- key: !0,
1306
- ref: !0,
1307
- __self: !0,
1308
- __source: !0
1309
- }, Te, Ee, De = {};
1310
- function Oe(e) {
1311
- if (me.call(e, "ref")) {
1312
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
1313
- if (t && t.isReactWarning) return !1;
1314
- }
1315
- return e.ref !== void 0;
1113
+ function o() {
1114
+ return Error("react-stack-top-frame");
1316
1115
  }
1317
- function ke(e) {
1318
- if (me.call(e, "key")) {
1116
+ function s(e) {
1117
+ if (A.call(e, "key")) {
1319
1118
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
1320
1119
  if (t && t.isReactWarning) return !1;
1321
1120
  }
1322
1121
  return e.key !== void 0;
1323
1122
  }
1324
- function Ae(e, t) {
1325
- if (typeof e.ref == "string" && Ce.current && t && Ce.current.stateNode !== t) {
1326
- var n = A(Ce.current.type);
1327
- De[n] || (y("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", A(Ce.current.type), e.ref), De[n] = !0);
1123
+ function c(e, t) {
1124
+ function n() {
1125
+ N || (N = !0, console.error("%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)", t));
1328
1126
  }
1329
- }
1330
- function V(e, t) {
1331
- var n = function() {
1332
- Te || (Te = !0, y("%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://reactjs.org/link/special-props)", t));
1333
- };
1334
1127
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
1335
1128
  get: n,
1336
1129
  configurable: !0
1337
1130
  });
1338
1131
  }
1339
- function je(e, t) {
1340
- var n = function() {
1341
- Ee || (Ee = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", t));
1342
- };
1343
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
1344
- get: n,
1345
- configurable: !0
1346
- });
1132
+ function l() {
1133
+ var e = t(this.type);
1134
+ return P[e] || (P[e] = !0, console.error("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.")), e = this.props.ref, e === void 0 ? null : e;
1347
1135
  }
1348
- var H = function(e, t, r, i, a, o, s) {
1349
- var c = {
1350
- $$typeof: n,
1136
+ function u(e, t, n, r, i, a) {
1137
+ var o = n.ref;
1138
+ return e = {
1139
+ $$typeof: h,
1351
1140
  type: e,
1352
1141
  key: t,
1353
- ref: r,
1354
- props: s,
1355
- _owner: o
1356
- };
1357
- return c._store = {}, Object.defineProperty(c._store, "validated", {
1142
+ props: n,
1143
+ _owner: r
1144
+ }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
1145
+ enumerable: !1,
1146
+ value: null
1147
+ }) : Object.defineProperty(e, "ref", {
1148
+ enumerable: !1,
1149
+ get: l
1150
+ }), e._store = {}, Object.defineProperty(e._store, "validated", {
1358
1151
  configurable: !1,
1359
1152
  enumerable: !1,
1360
1153
  writable: !0,
1361
- value: !1
1362
- }), Object.defineProperty(c, "_self", {
1154
+ value: 0
1155
+ }), Object.defineProperty(e, "_debugInfo", {
1363
1156
  configurable: !1,
1364
1157
  enumerable: !1,
1365
- writable: !1,
1158
+ writable: !0,
1159
+ value: null
1160
+ }), Object.defineProperty(e, "_debugStack", {
1161
+ configurable: !1,
1162
+ enumerable: !1,
1163
+ writable: !0,
1366
1164
  value: i
1367
- }), Object.defineProperty(c, "_source", {
1165
+ }), Object.defineProperty(e, "_debugTask", {
1368
1166
  configurable: !1,
1369
1167
  enumerable: !1,
1370
- writable: !1,
1168
+ writable: !0,
1371
1169
  value: a
1372
- }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
1373
- };
1374
- function Me(e, t, n, r, i) {
1375
- var a, o = {}, s = null, c = null;
1376
- for (a in n !== void 0 && (Se(n), s = "" + n), ke(t) && (Se(t.key), s = "" + t.key), Oe(t) && (c = t.ref, Ae(t, i)), t) me.call(t, a) && !we.hasOwnProperty(a) && (o[a] = t[a]);
1377
- if (e && e.defaultProps) {
1378
- var l = e.defaultProps;
1379
- for (a in l) o[a] === void 0 && (o[a] = l[a]);
1380
- }
1381
- if (s || c) {
1382
- var u = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1383
- s && V(o, u), c && je(o, u);
1384
- }
1385
- return H(e, s, c, i, r, Ce.current, o);
1386
- }
1387
- var U = v.ReactCurrentOwner, Ne = v.ReactDebugCurrentFrame;
1388
- function W(e) {
1389
- if (e) {
1390
- var t = e._owner, n = pe(e.type, e._source, t ? t.type : null);
1391
- Ne.setExtraStackFrame(n);
1392
- } else Ne.setExtraStackFrame(null);
1393
- }
1394
- var Pe = !1;
1395
- function Fe(e) {
1396
- return typeof e == "object" && !!e && e.$$typeof === n;
1397
- }
1398
- function G() {
1399
- if (U.current) {
1400
- var e = A(U.current.type);
1401
- if (e) return "\n\nCheck the render method of `" + e + "`.";
1402
- }
1403
- return "";
1404
- }
1405
- function Ie(e) {
1406
- if (e !== void 0) {
1407
- var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
1408
- return "\n\nCheck your code at " + t + ":" + n + ".";
1409
- }
1410
- return "";
1411
- }
1412
- var K = {};
1413
- function q(e) {
1414
- var t = G();
1415
- if (!t) {
1416
- var n = typeof e == "string" ? e : e.displayName || e.name;
1417
- n && (t = "\n\nCheck the top-level render call using <" + n + ">.");
1418
- }
1419
- return t;
1420
- }
1421
- function J(e, t) {
1422
- if (!(!e._store || e._store.validated || e.key != null)) {
1423
- e._store.validated = !0;
1424
- var n = q(t);
1425
- if (!K[n]) {
1426
- K[n] = !0;
1427
- var r = "";
1428
- e && e._owner && e._owner !== U.current && (r = " It was passed a child from " + A(e._owner.type) + "."), W(e), y("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", n, r), W(null);
1429
- }
1430
- }
1431
- }
1432
- function Le(e, t) {
1433
- if (typeof e == "object") {
1434
- if (B(e)) for (var n = 0; n < e.length; n++) {
1435
- var r = e[n];
1436
- Fe(r) && J(r, t);
1437
- }
1438
- else if (Fe(e)) e._store && (e._store.validated = !0);
1439
- else if (e) {
1440
- var i = _(e);
1441
- if (typeof i == "function" && i !== e.entries) for (var a = i.call(e), o; !(o = a.next()).done;) Fe(o.value) && J(o.value, t);
1442
- }
1443
- }
1444
- }
1445
- function Re(e) {
1446
- var t = e.type;
1447
- if (!(t == null || typeof t == "string")) {
1448
- var n;
1449
- if (typeof t == "function") n = t.propTypes;
1450
- else if (typeof t == "object" && (t.$$typeof === l || t.$$typeof === f)) n = t.propTypes;
1451
- else return;
1452
- if (n) {
1453
- var r = A(t);
1454
- z(n, e.props, "prop", r, e);
1455
- } else t.PropTypes !== void 0 && !Pe && (Pe = !0, y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A(t) || "Unknown"));
1456
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1457
- }
1458
- }
1459
- function ze(e) {
1460
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
1461
- var r = t[n];
1462
- if (r !== "children" && r !== "key") {
1463
- W(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", r), W(null);
1464
- break;
1465
- }
1466
- }
1467
- e.ref !== null && (W(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
1468
- }
1469
- var Be = {};
1470
- function Y(e, t, r, a, o, s) {
1471
- var c = D(e);
1472
- if (!c) {
1473
- var l = "";
1474
- (e === void 0 || typeof e == "object" && e && 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.");
1475
- var u = Ie(o);
1476
- u ? l += u : l += G();
1477
- var d;
1478
- e === null ? d = "null" : B(e) ? d = "array" : e !== void 0 && e.$$typeof === n ? (d = "<" + (A(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, l);
1479
- }
1480
- var f = Me(e, t, r, o, s);
1481
- if (f == null) return f;
1482
- if (c) {
1483
- var p = t.children;
1484
- if (p !== void 0) if (a) if (B(p)) {
1485
- for (var m = 0; m < p.length; m++) Le(p[m], e);
1486
- Object.freeze && Object.freeze(p);
1487
- } else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1488
- else Le(p, e);
1489
- }
1490
- if (me.call(t, "key")) {
1491
- var h = A(e), g = Object.keys(t).filter(function(e) {
1170
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
1171
+ }
1172
+ function d(e, n, i, o, l, d) {
1173
+ var p = n.children;
1174
+ if (p !== void 0) if (o) if (j(p)) {
1175
+ for (o = 0; o < p.length; o++) f(p[o]);
1176
+ Object.freeze && Object.freeze(p);
1177
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1178
+ else f(p);
1179
+ if (A.call(n, "key")) {
1180
+ p = t(e);
1181
+ var m = Object.keys(n).filter(function(e) {
1492
1182
  return e !== "key";
1493
- }), _ = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
1494
- Be[h + _] || (y("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", _, h, g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}", h), Be[h + _] = !0);
1183
+ });
1184
+ o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", I[p + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, p, m, p), I[p + o] = !0);
1495
1185
  }
1496
- return e === i ? ze(f) : Re(f), f;
1186
+ if (p = null, i !== void 0 && (r(i), p = "" + i), s(n) && (r(n.key), p = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
1187
+ else i = n;
1188
+ return p && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), u(e, p, i, a(), l, d);
1497
1189
  }
1498
- function X(e, t, n) {
1499
- return Y(e, t, n, !0);
1190
+ function f(e) {
1191
+ p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === E && (e._payload.status === "fulfilled" ? p(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
1500
1192
  }
1501
- function Ve(e, t, n) {
1502
- return Y(e, t, n, !1);
1193
+ function p(e) {
1194
+ return typeof e == "object" && !!e && e.$$typeof === h;
1503
1195
  }
1504
- var He = Ve, Ue = X;
1505
- e.Fragment = i, e.jsx = He, e.jsxs = Ue;
1196
+ var m = R("react"), h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), x = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), k = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
1197
+ return null;
1198
+ };
1199
+ m = { react_stack_bottom_frame: function(e) {
1200
+ return e();
1201
+ } };
1202
+ var N, P = {}, F = m.react_stack_bottom_frame.bind(m, o)(), ee = M(i(o)), I = {};
1203
+ e.Fragment = _, e.jsx = function(e, t, n) {
1204
+ var r = 1e4 > k.recentlyCreatedOwnerStacks++;
1205
+ return d(e, t, n, !1, r ? Error("react-stack-top-frame") : F, r ? M(i(e)) : ee);
1206
+ }, e.jsxs = function(e, t, n) {
1207
+ var r = 1e4 > k.recentlyCreatedOwnerStacks++;
1208
+ return d(e, t, n, !0, r ? Error("react-stack-top-frame") : F, r ? M(i(e)) : ee);
1209
+ };
1506
1210
  })();
1507
1211
  })), $ = (/* @__PURE__ */ L(((e, t) => {
1508
1212
  process.env.NODE_ENV === "production" ? t.exports = fn() : t.exports = pn();
@@ -4351,77 +4055,84 @@ var Gr = {
4351
4055
  e = decodeURIComponent(e);
4352
4056
  let t = e.slice(0, 1) === "a", n = t ? e.slice(1, 2) : e.slice(0, 1), r = t ? e.slice(3).split(",") : e.slice(2);
4353
4057
  return n === "b" ? w(r) ? r.map((e) => e === "1") : r === "1" : n === "s" ? r : n === "n" ? w(r) ? r.map((e) => D(e)) : D(r) : n === "u" ? w(r) ? r.map(() => void 0) : void 0 : n === "N" ? w(r) ? r.map(() => null) : null : r;
4354
- }, Jr = (e) => Object.entries({ ...e }).reduce((e, [t, n]) => (e[t] = Kr(n), e), {}), Yr = (e) => Object.entries({ ...e }).reduce((e, [t, n]) => (e[t] = qr(n), e), {}), Xr = { y: void 0 };
4058
+ }, Jr = (e) => Object.entries({ ...e }).reduce((e, [t, n]) => (e[t] = Kr(n), e), {}), Yr = (e) => Object.entries({ ...e }).reduce((e, [t, n]) => (e[t] = qr(n), e), {});
4059
+ //#endregion
4060
+ //#region src/hooks/useSearchParams/index.ts
4355
4061
  window.routerHistory = window.routerHistory || /* @__PURE__ */ new Map();
4356
- var Zr = (e, t) => {
4357
- let { useSearchParams: n } = a(kn), { storage: r = n?.storage || "state", stateKey: i = n?.stateKey || "__searchParams__" } = t || n || {}, s = j(), l = re(), u = ne(), [d, f] = ie(Jr({
4358
- ...Xr,
4359
- ...e
4360
- }), { navigateMode: "replace" }), p = r === "url" ? Yr(d) : u.state?.[i] || {}, { current: m } = c({
4062
+ var Xr = (e, t) => {
4063
+ let { useSearchParams: n } = a(kn), { storage: r = n?.storage || "state", stateKey: l = n?.stateKey || "__searchParams__" } = t || n || {}, u = j(), d = re(), f = ne(), [p, m] = ie(), h = s(() => {
4064
+ let e = {};
4065
+ return p.forEach((t, n) => {
4066
+ e[n] = t;
4067
+ }), e;
4068
+ }, [p]), g = i((e) => {
4069
+ let t = new URLSearchParams(p);
4070
+ Object.entries(e).forEach(([e, n]) => {
4071
+ n == null || n === "" ? t.delete(e) : t.set(e, String(n));
4072
+ }), m(t, { replace: !0 });
4073
+ }, [p, m]), _ = r === "url" ? Yr(h) : f.state?.[l] || {}, { current: v } = c({
4361
4074
  ...e,
4362
- ...p
4363
- }), h = (e) => {
4364
- typeof e == "function" ? Object.assign(m, e(m)) : Object.assign(m, e), s();
4365
- }, g = async (e) => {
4075
+ ..._
4076
+ }), y = (e) => {
4077
+ typeof e == "function" ? Object.assign(v, e(v)) : Object.assign(v, e), u();
4078
+ }, b = async (e) => {
4366
4079
  let t = {
4367
4080
  ...e,
4368
4081
  y: window.scrollY
4369
4082
  };
4370
4083
  if (r === "url") {
4371
4084
  let e = Jr(t);
4372
- f(e);
4373
- let n = "";
4374
- for (let t in e) {
4375
- let r = e[t];
4376
- n += `${t}=${r}&`;
4377
- }
4378
- n = n.slice(0, -1), window.routerHistory.set(u.pathname, {
4379
- path: `${u.pathname}?${n}`,
4085
+ g(e);
4086
+ let n = new URLSearchParams();
4087
+ for (let [t, r] of Object.entries(e)) r != null && r !== "" && n.set(t, String(r));
4088
+ let r = n.toString();
4089
+ window.routerHistory.set(f.pathname, {
4090
+ path: r ? `${f.pathname}?${r}` : f.pathname,
4380
4091
  replace: !0
4381
4092
  });
4382
4093
  return;
4383
4094
  }
4384
- window.routerHistory.set(u.pathname, {
4385
- path: u.pathname,
4095
+ window.routerHistory.set(f.pathname, {
4096
+ path: f.pathname,
4386
4097
  replace: !0,
4387
4098
  state: {
4388
- ...u.state || {},
4389
- [i]: t
4099
+ ...f.state || {},
4100
+ [l]: t
4390
4101
  }
4391
- }), l(u.pathname, {
4102
+ }), d(f.pathname, {
4392
4103
  replace: !0,
4393
4104
  state: {
4394
- ...u.state,
4395
- [i]: t
4105
+ ...f.state,
4106
+ [l]: t
4396
4107
  }
4397
4108
  });
4398
- }, _ = () => {
4109
+ }, x = () => {
4399
4110
  if (r !== "url") return;
4400
- let e = Yr(d);
4111
+ let e = Yr(h);
4401
4112
  Object.keys(e).forEach((t) => {
4402
4113
  e[t] = void 0;
4403
- }), f(e);
4114
+ }), g(e);
4404
4115
  };
4405
4116
  o(() => {
4406
- r === "url" && d ? _() : r === "state" && g({}).catch(E);
4117
+ r === "url" && h ? x() : r === "state" && b({}).catch(E);
4407
4118
  }, []);
4408
- let v = c(null), y = c(!1);
4409
- return te(({ currentLocation: e, nextLocation: t, historyAction: n }) => n === "POP" ? !1 : e.pathname === t.pathname ? t.pathname === e.pathname && v.current !== null && (r === "url" && t.search !== e.search || r === "state" && !y.current) ? (setTimeout(() => {
4410
- let e = v.current;
4411
- e && (l(`${e.pathname}${e.search}`, {
4119
+ let S = c(null), C = c(!1);
4120
+ return te(({ currentLocation: e, nextLocation: t, historyAction: n }) => n === "POP" ? !1 : e.pathname === t.pathname ? t.pathname === e.pathname && S.current !== null && (r === "url" && t.search !== e.search || r === "state" && !C.current) ? (setTimeout(() => {
4121
+ let e = S.current;
4122
+ e && (d(`${e.pathname}${e.search}`, {
4412
4123
  replace: e.historyAction !== "PUSH",
4413
4124
  state: e.state
4414
- }), y.current = !1, v.current = null);
4415
- }, 0), y.current = !0, !1) : !1 : r === "url" ? e.search ? !1 : (v.current = {
4125
+ }), C.current = !1, S.current = null);
4126
+ }, 0), C.current = !0, !1) : !1 : r === "url" ? e.search ? !1 : (S.current = {
4416
4127
  ...t,
4417
4128
  historyAction: n
4418
- }, g(m).catch(E), !0) : y.current ? !1 : (v.current = {
4129
+ }, b(v).catch(E), !0) : C.current ? !1 : (S.current = {
4419
4130
  ...t,
4420
4131
  historyAction: n
4421
- }, g(m).catch(E), !0)), {
4422
- searchParams: m,
4423
- setSearchParams: h
4132
+ }, b(v).catch(E), !0)), {
4133
+ searchParams: v,
4134
+ setSearchParams: y
4424
4135
  };
4425
4136
  };
4426
4137
  //#endregion
4427
- export { Fn as App, Rn as CheckboxValue, kn as ConfigContext, An as ConfigProvider, yn as GlobalLoading, Hn as IconButton, Ln as IconFont, zr as SearchArea, zn as SwitchValue, Ar as Table, jn as message, Nn as modal, Mn as notification, mn as setGlobalLoading, Vr as useRequest, Zr as useSearchParams, Wr as useTable };
4138
+ export { Fn as App, Rn as CheckboxValue, kn as ConfigContext, An as ConfigProvider, yn as GlobalLoading, Hn as IconButton, Ln as IconFont, zr as SearchArea, zn as SwitchValue, Ar as Table, jn as message, Nn as modal, Mn as notification, mn as setGlobalLoading, Vr as useRequest, Xr as useSearchParams, Wr as useTable };