@springmicro/auth 0.5.11 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,47 +1,6 @@
1
- import { defineConfig as kn } from "auth-astro";
2
- import m, { useEffect as Rt } from "react";
3
- import { useTranslation as Te, initReactI18next as Sn, I18nextProvider as _n } from "react-i18next";
1
+ import h, { useEffect as Pt } from "react";
2
+ import { useTranslation as Te, initReactI18next as kn, I18nextProvider as Sn } from "react-i18next";
4
3
  import Q from "i18next";
5
- const pr = ({
6
- casdoorEndpoint: t,
7
- clientId: e,
8
- clientSecret: o
9
- }) => kn({
10
- // Configure one or more authentication providers
11
- providers: [
12
- {
13
- id: "casdoor",
14
- name: "SpringMicroHost",
15
- type: "oidc",
16
- issuer: t,
17
- authorization: { params: { scope: "openid email profile" } },
18
- token: !0,
19
- checks: ["state"],
20
- clientId: e,
21
- clientSecret: o,
22
- profile(r) {
23
- return {
24
- id: r.id,
25
- name: r.displayName,
26
- email: r.email,
27
- username: r.name ?? r.email,
28
- image: r.avatar
29
- };
30
- }
31
- }
32
- ],
33
- pages: {
34
- signIn: "/sign-in"
35
- },
36
- callbacks: {
37
- async jwt({ token: r, account: a, user: l }) {
38
- return a && (r.accessToken = a.access_token ?? "", r.username = l.username, r.id = l.id), r;
39
- },
40
- async session({ session: r, token: a, user: l }) {
41
- return r.accessToken = a.accessToken, r.user.id = a.id, r.user.username = a.username, r;
42
- }
43
- }
44
- });
45
4
  var Ze = { exports: {} }, we = {};
46
5
  /**
47
6
  * @license React
@@ -53,16 +12,16 @@ var Ze = { exports: {} }, we = {};
53
12
  * LICENSE file in the root directory of this source tree.
54
13
  */
55
14
  var wt;
56
- function Cn() {
15
+ function _n() {
57
16
  if (wt) return we;
58
17
  wt = 1;
59
- var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
60
- function u(g, c, f) {
61
- var h, $ = {}, w = null, b = null;
62
- f !== void 0 && (w = "" + f), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (b = c.ref);
63
- for (h in c) r.call(c, h) && !l.hasOwnProperty(h) && ($[h] = c[h]);
64
- if (g && g.defaultProps) for (h in c = g.defaultProps, c) $[h] === void 0 && ($[h] = c[h]);
65
- return { $$typeof: e, type: g, key: w, ref: b, props: $, _owner: a.current };
18
+ var t = h, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function u(g, s, f) {
20
+ var m, k = {}, w = null, v = null;
21
+ f !== void 0 && (w = "" + f), s.key !== void 0 && (w = "" + s.key), s.ref !== void 0 && (v = s.ref);
22
+ for (m in s) r.call(s, m) && !l.hasOwnProperty(m) && (k[m] = s[m]);
23
+ if (g && g.defaultProps) for (m in s = g.defaultProps, s) k[m] === void 0 && (k[m] = s[m]);
24
+ return { $$typeof: e, type: g, key: w, ref: v, props: k, _owner: i.current };
66
25
  }
67
26
  return we.Fragment = o, we.jsx = u, we.jsxs = u, we;
68
27
  }
@@ -77,47 +36,47 @@ var be = {};
77
36
  * LICENSE file in the root directory of this source tree.
78
37
  */
79
38
  var bt;
80
- function En() {
39
+ function Cn() {
81
40
  return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
82
- var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), L = Symbol.iterator, F = "@@iterator";
41
+ var t = h, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), M = Symbol.iterator, D = "@@iterator";
83
42
  function E(n) {
84
43
  if (n === null || typeof n != "object")
85
44
  return null;
86
- var s = L && n[L] || n[F];
87
- return typeof s == "function" ? s : null;
45
+ var c = M && n[M] || n[D];
46
+ return typeof c == "function" ? c : null;
88
47
  }
89
48
  var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
90
- function k(n) {
49
+ function $(n) {
91
50
  {
92
- for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), y = 1; y < s; y++)
51
+ for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), y = 1; y < c; y++)
93
52
  p[y - 1] = arguments[y];
94
53
  q("error", n, p);
95
54
  }
96
55
  }
97
- function q(n, s, p) {
56
+ function q(n, c, p) {
98
57
  {
99
58
  var y = _.ReactDebugCurrentFrame, S = y.getStackAddendum();
100
- S !== "" && (s += "%s", p = p.concat([S]));
59
+ S !== "" && (c += "%s", p = p.concat([S]));
101
60
  var C = p.map(function(x) {
102
61
  return String(x);
103
62
  });
104
- C.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, C);
63
+ C.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, C);
105
64
  }
106
65
  }
107
- var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, R;
108
- R = Symbol.for("react.module.reference");
66
+ var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, P;
67
+ P = Symbol.for("react.module.reference");
109
68
  function ze(n) {
110
- return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === a || n === f || n === h || pe || n === b || Y || U || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === $ || n.$$typeof === u || n.$$typeof === g || n.$$typeof === c || // This needs to include all possible module reference object
69
+ return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === i || n === f || n === m || pe || n === v || Y || U || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === k || n.$$typeof === u || n.$$typeof === g || n.$$typeof === s || // This needs to include all possible module reference object
111
70
  // types supported by any Flight configuration anywhere since
112
71
  // we don't know which Flight build this will end up being used
113
72
  // with.
114
- n.$$typeof === R || n.getModuleId !== void 0));
73
+ n.$$typeof === P || n.getModuleId !== void 0));
115
74
  }
116
- function ge(n, s, p) {
75
+ function ge(n, c, p) {
117
76
  var y = n.displayName;
118
77
  if (y)
119
78
  return y;
120
- var S = s.displayName || s.name || "";
79
+ var S = c.displayName || c.name || "";
121
80
  return S !== "" ? p + "(" + S + ")" : p;
122
81
  }
123
82
  function he(n) {
@@ -126,7 +85,7 @@ function En() {
126
85
  function H(n) {
127
86
  if (n == null)
128
87
  return null;
129
- if (typeof n.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
88
+ if (typeof n.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
130
89
  return n.displayName || n.name || null;
131
90
  if (typeof n == "string")
132
91
  return n;
@@ -137,24 +96,24 @@ function En() {
137
96
  return "Portal";
138
97
  case l:
139
98
  return "Profiler";
140
- case a:
99
+ case i:
141
100
  return "StrictMode";
142
101
  case f:
143
102
  return "Suspense";
144
- case h:
103
+ case m:
145
104
  return "SuspenseList";
146
105
  }
147
106
  if (typeof n == "object")
148
107
  switch (n.$$typeof) {
149
108
  case g:
150
- var s = n;
151
- return he(s) + ".Consumer";
109
+ var c = n;
110
+ return he(c) + ".Consumer";
152
111
  case u:
153
112
  var p = n;
154
113
  return he(p._context) + ".Provider";
155
- case c:
114
+ case s:
156
115
  return ge(n, n.render, "ForwardRef");
157
- case $:
116
+ case k:
158
117
  var y = n.displayName || null;
159
118
  return y !== null ? y : H(n.type) || "Memo";
160
119
  case w: {
@@ -168,14 +127,14 @@ function En() {
168
127
  }
169
128
  return null;
170
129
  }
171
- var Z = Object.assign, re = 0, ke, Se, M, Oe, et, tt, nt;
130
+ var Z = Object.assign, re = 0, ke, Se, A, Oe, et, tt, nt;
172
131
  function ot() {
173
132
  }
174
133
  ot.__reactDisabledLog = !0;
175
134
  function Kt() {
176
135
  {
177
136
  if (re === 0) {
178
- ke = console.log, Se = console.info, M = console.warn, Oe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
137
+ ke = console.log, Se = console.info, A = console.warn, Oe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
179
138
  var n = {
180
139
  configurable: !0,
181
140
  enumerable: !0,
@@ -211,7 +170,7 @@ function En() {
211
170
  value: Se
212
171
  }),
213
172
  warn: Z({}, n, {
214
- value: M
173
+ value: A
215
174
  }),
216
175
  error: Z({}, n, {
217
176
  value: Oe
@@ -227,30 +186,30 @@ function En() {
227
186
  })
228
187
  });
229
188
  }
230
- re < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
+ re < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
231
190
  }
232
191
  }
233
- var Be = _.ReactCurrentDispatcher, Re;
234
- function _e(n, s, p) {
192
+ var Be = _.ReactCurrentDispatcher, Pe;
193
+ function _e(n, c, p) {
235
194
  {
236
- if (Re === void 0)
195
+ if (Pe === void 0)
237
196
  try {
238
197
  throw Error();
239
198
  } catch (S) {
240
199
  var y = S.stack.trim().match(/\n( *(at )?)/);
241
- Re = y && y[1] || "";
200
+ Pe = y && y[1] || "";
242
201
  }
243
202
  return `
244
- ` + Re + n;
203
+ ` + Pe + n;
245
204
  }
246
205
  }
247
- var Pe = !1, Ce;
206
+ var Re = !1, Ce;
248
207
  {
249
208
  var Qt = typeof WeakMap == "function" ? WeakMap : Map;
250
209
  Ce = new Qt();
251
210
  }
252
- function at(n, s) {
253
- if (!n || Pe)
211
+ function at(n, c) {
212
+ if (!n || Re)
254
213
  return "";
255
214
  {
256
215
  var p = Ce.get(n);
@@ -258,13 +217,13 @@ function En() {
258
217
  return p;
259
218
  }
260
219
  var y;
261
- Pe = !0;
220
+ Re = !0;
262
221
  var S = Error.prepareStackTrace;
263
222
  Error.prepareStackTrace = void 0;
264
223
  var C;
265
224
  C = Be.current, Be.current = null, Kt();
266
225
  try {
267
- if (s) {
226
+ if (c) {
268
227
  var x = function() {
269
228
  throw Error();
270
229
  };
@@ -275,39 +234,39 @@ function En() {
275
234
  }), typeof Reflect == "object" && Reflect.construct) {
276
235
  try {
277
236
  Reflect.construct(x, []);
278
- } catch (D) {
279
- y = D;
237
+ } catch (N) {
238
+ y = N;
280
239
  }
281
240
  Reflect.construct(n, [], x);
282
241
  } else {
283
242
  try {
284
243
  x.call();
285
- } catch (D) {
286
- y = D;
244
+ } catch (N) {
245
+ y = N;
287
246
  }
288
247
  n.call(x.prototype);
289
248
  }
290
249
  } else {
291
250
  try {
292
251
  throw Error();
293
- } catch (D) {
294
- y = D;
252
+ } catch (N) {
253
+ y = N;
295
254
  }
296
255
  n();
297
256
  }
298
- } catch (D) {
299
- if (D && y && typeof D.stack == "string") {
300
- for (var v = D.stack.split(`
301
- `), N = y.stack.split(`
302
- `), z = v.length - 1, B = N.length - 1; z >= 1 && B >= 0 && v[z] !== N[B]; )
257
+ } catch (N) {
258
+ if (N && y && typeof N.stack == "string") {
259
+ for (var b = N.stack.split(`
260
+ `), F = y.stack.split(`
261
+ `), z = b.length - 1, B = F.length - 1; z >= 1 && B >= 0 && b[z] !== F[B]; )
303
262
  B--;
304
263
  for (; z >= 1 && B >= 0; z--, B--)
305
- if (v[z] !== N[B]) {
264
+ if (b[z] !== F[B]) {
306
265
  if (z !== 1 || B !== 1)
307
266
  do
308
- if (z--, B--, B < 0 || v[z] !== N[B]) {
267
+ if (z--, B--, B < 0 || b[z] !== F[B]) {
309
268
  var V = `
310
- ` + v[z].replace(" at new ", " at ");
269
+ ` + b[z].replace(" at new ", " at ");
311
270
  return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && Ce.set(n, V), V;
312
271
  }
313
272
  while (z >= 1 && B >= 0);
@@ -315,19 +274,19 @@ function En() {
315
274
  }
316
275
  }
317
276
  } finally {
318
- Pe = !1, Be.current = C, Jt(), Error.prepareStackTrace = S;
277
+ Re = !1, Be.current = C, Jt(), Error.prepareStackTrace = S;
319
278
  }
320
279
  var de = n ? n.displayName || n.name : "", le = de ? _e(de) : "";
321
280
  return typeof n == "function" && Ce.set(n, le), le;
322
281
  }
323
- function Zt(n, s, p) {
282
+ function Zt(n, c, p) {
324
283
  return at(n, !1);
325
284
  }
326
285
  function Xt(n) {
327
- var s = n.prototype;
328
- return !!(s && s.isReactComponent);
286
+ var c = n.prototype;
287
+ return !!(c && c.isReactComponent);
329
288
  }
330
- function Ee(n, s, p) {
289
+ function Ee(n, c, p) {
331
290
  if (n == null)
332
291
  return "";
333
292
  if (typeof n == "function")
@@ -337,19 +296,19 @@ function En() {
337
296
  switch (n) {
338
297
  case f:
339
298
  return _e("Suspense");
340
- case h:
299
+ case m:
341
300
  return _e("SuspenseList");
342
301
  }
343
302
  if (typeof n == "object")
344
303
  switch (n.$$typeof) {
345
- case c:
304
+ case s:
346
305
  return Zt(n.render);
347
- case $:
348
- return Ee(n.type, s, p);
306
+ case k:
307
+ return Ee(n.type, c, p);
349
308
  case w: {
350
309
  var y = n, S = y._payload, C = y._init;
351
310
  try {
352
- return Ee(C(S), s, p);
311
+ return Ee(C(S), c, p);
353
312
  } catch {
354
313
  }
355
314
  }
@@ -359,27 +318,27 @@ function En() {
359
318
  var me = Object.prototype.hasOwnProperty, it = {}, rt = _.ReactDebugCurrentFrame;
360
319
  function je(n) {
361
320
  if (n) {
362
- var s = n._owner, p = Ee(n.type, n._source, s ? s.type : null);
321
+ var c = n._owner, p = Ee(n.type, n._source, c ? c.type : null);
363
322
  rt.setExtraStackFrame(p);
364
323
  } else
365
324
  rt.setExtraStackFrame(null);
366
325
  }
367
- function en(n, s, p, y, S) {
326
+ function en(n, c, p, y, S) {
368
327
  {
369
328
  var C = Function.call.bind(me);
370
329
  for (var x in n)
371
330
  if (C(n, x)) {
372
- var v = void 0;
331
+ var b = void 0;
373
332
  try {
374
333
  if (typeof n[x] != "function") {
375
- var N = Error((y || "React class") + ": " + p + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
376
- throw N.name = "Invariant Violation", N;
334
+ var F = Error((y || "React class") + ": " + p + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw F.name = "Invariant Violation", F;
377
336
  }
378
- v = n[x](s, x, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
+ b = n[x](c, x, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
379
338
  } catch (z) {
380
- v = z;
339
+ b = z;
381
340
  }
382
- v && !(v instanceof Error) && (je(S), k("%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).", y || "React class", p, x, typeof v), je(null)), v instanceof Error && !(v.message in it) && (it[v.message] = !0, je(S), k("Failed %s type: %s", p, v.message), je(null));
341
+ b && !(b instanceof Error) && (je(S), $("%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).", y || "React class", p, x, typeof b), je(null)), b instanceof Error && !(b.message in it) && (it[b.message] = !0, je(S), $("Failed %s type: %s", p, b.message), je(null));
383
342
  }
384
343
  }
385
344
  }
@@ -389,7 +348,7 @@ function En() {
389
348
  }
390
349
  function nn(n) {
391
350
  {
392
- var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
351
+ var c = typeof Symbol == "function" && Symbol.toStringTag, p = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
393
352
  return p;
394
353
  }
395
354
  }
@@ -405,7 +364,7 @@ function En() {
405
364
  }
406
365
  function ct(n) {
407
366
  if (on(n))
408
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nn(n)), lt(n);
367
+ return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nn(n)), lt(n);
409
368
  }
410
369
  var ye = _.ReactCurrentOwner, an = {
411
370
  key: !0,
@@ -416,30 +375,30 @@ function En() {
416
375
  Fe = {};
417
376
  function rn(n) {
418
377
  if (me.call(n, "ref")) {
419
- var s = Object.getOwnPropertyDescriptor(n, "ref").get;
420
- if (s && s.isReactWarning)
378
+ var c = Object.getOwnPropertyDescriptor(n, "ref").get;
379
+ if (c && c.isReactWarning)
421
380
  return !1;
422
381
  }
423
382
  return n.ref !== void 0;
424
383
  }
425
384
  function ln(n) {
426
385
  if (me.call(n, "key")) {
427
- var s = Object.getOwnPropertyDescriptor(n, "key").get;
428
- if (s && s.isReactWarning)
386
+ var c = Object.getOwnPropertyDescriptor(n, "key").get;
387
+ if (c && c.isReactWarning)
429
388
  return !1;
430
389
  }
431
390
  return n.key !== void 0;
432
391
  }
433
- function cn(n, s) {
434
- if (typeof n.ref == "string" && ye.current && s && ye.current.stateNode !== s) {
392
+ function cn(n, c) {
393
+ if (typeof n.ref == "string" && ye.current && c && ye.current.stateNode !== c) {
435
394
  var p = H(ye.current.type);
436
- Fe[p] || (k('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', H(ye.current.type), n.ref), Fe[p] = !0);
395
+ Fe[p] || ($('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', H(ye.current.type), n.ref), Fe[p] = !0);
437
396
  }
438
397
  }
439
- function sn(n, s) {
398
+ function sn(n, c) {
440
399
  {
441
400
  var p = function() {
442
- st || (st = !0, k("%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)", s));
401
+ st || (st = !0, $("%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)", c));
443
402
  };
444
403
  p.isReactWarning = !0, Object.defineProperty(n, "key", {
445
404
  get: p,
@@ -447,10 +406,10 @@ function En() {
447
406
  });
448
407
  }
449
408
  }
450
- function un(n, s) {
409
+ function un(n, c) {
451
410
  {
452
411
  var p = function() {
453
- ut || (ut = !0, k("%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)", s));
412
+ ut || (ut = !0, $("%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)", c));
454
413
  };
455
414
  p.isReactWarning = !0, Object.defineProperty(n, "ref", {
456
415
  get: p,
@@ -458,57 +417,57 @@ function En() {
458
417
  });
459
418
  }
460
419
  }
461
- var dn = function(n, s, p, y, S, C, x) {
462
- var v = {
420
+ var dn = function(n, c, p, y, S, C, x) {
421
+ var b = {
463
422
  // This tag allows us to uniquely identify this as a React Element
464
423
  $$typeof: e,
465
424
  // Built-in properties that belong on the element
466
425
  type: n,
467
- key: s,
426
+ key: c,
468
427
  ref: p,
469
428
  props: x,
470
429
  // Record the component responsible for creating this element.
471
430
  _owner: C
472
431
  };
473
- return v._store = {}, Object.defineProperty(v._store, "validated", {
432
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
474
433
  configurable: !1,
475
434
  enumerable: !1,
476
435
  writable: !0,
477
436
  value: !1
478
- }), Object.defineProperty(v, "_self", {
437
+ }), Object.defineProperty(b, "_self", {
479
438
  configurable: !1,
480
439
  enumerable: !1,
481
440
  writable: !1,
482
441
  value: y
483
- }), Object.defineProperty(v, "_source", {
442
+ }), Object.defineProperty(b, "_source", {
484
443
  configurable: !1,
485
444
  enumerable: !1,
486
445
  writable: !1,
487
446
  value: S
488
- }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
447
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
489
448
  };
490
- function fn(n, s, p, y, S) {
449
+ function fn(n, c, p, y, S) {
491
450
  {
492
- var C, x = {}, v = null, N = null;
493
- p !== void 0 && (ct(p), v = "" + p), ln(s) && (ct(s.key), v = "" + s.key), rn(s) && (N = s.ref, cn(s, S));
494
- for (C in s)
495
- me.call(s, C) && !an.hasOwnProperty(C) && (x[C] = s[C]);
451
+ var C, x = {}, b = null, F = null;
452
+ p !== void 0 && (ct(p), b = "" + p), ln(c) && (ct(c.key), b = "" + c.key), rn(c) && (F = c.ref, cn(c, S));
453
+ for (C in c)
454
+ me.call(c, C) && !an.hasOwnProperty(C) && (x[C] = c[C]);
496
455
  if (n && n.defaultProps) {
497
456
  var z = n.defaultProps;
498
457
  for (C in z)
499
458
  x[C] === void 0 && (x[C] = z[C]);
500
459
  }
501
- if (v || N) {
460
+ if (b || F) {
502
461
  var B = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
503
- v && sn(x, B), N && un(x, B);
462
+ b && sn(x, B), F && un(x, B);
504
463
  }
505
- return dn(n, v, N, S, y, ye.current, x);
464
+ return dn(n, b, F, S, y, ye.current, x);
506
465
  }
507
466
  }
508
467
  var Ne = _.ReactCurrentOwner, dt = _.ReactDebugCurrentFrame;
509
468
  function ue(n) {
510
469
  if (n) {
511
- var s = n._owner, p = Ee(n.type, n._source, s ? s.type : null);
470
+ var c = n._owner, p = Ee(n.type, n._source, c ? c.type : null);
512
471
  dt.setExtraStackFrame(p);
513
472
  } else
514
473
  dt.setExtraStackFrame(null);
@@ -536,37 +495,37 @@ Check the render method of \`` + n + "`.";
536
495
  var pt = {};
537
496
  function gn(n) {
538
497
  {
539
- var s = ft();
540
- if (!s) {
498
+ var c = ft();
499
+ if (!c) {
541
500
  var p = typeof n == "string" ? n : n.displayName || n.name;
542
- p && (s = `
501
+ p && (c = `
543
502
 
544
503
  Check the top-level render call using <` + p + ">.");
545
504
  }
546
- return s;
505
+ return c;
547
506
  }
548
507
  }
549
- function gt(n, s) {
508
+ function gt(n, c) {
550
509
  {
551
510
  if (!n._store || n._store.validated || n.key != null)
552
511
  return;
553
512
  n._store.validated = !0;
554
- var p = gn(s);
513
+ var p = gn(c);
555
514
  if (pt[p])
556
515
  return;
557
516
  pt[p] = !0;
558
517
  var y = "";
559
- n && n._owner && n._owner !== Ne.current && (y = " It was passed a child from " + H(n._owner.type) + "."), ue(n), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, y), ue(null);
518
+ n && n._owner && n._owner !== Ne.current && (y = " It was passed a child from " + H(n._owner.type) + "."), ue(n), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, y), ue(null);
560
519
  }
561
520
  }
562
- function ht(n, s) {
521
+ function ht(n, c) {
563
522
  {
564
523
  if (typeof n != "object")
565
524
  return;
566
525
  if (Ie(n))
567
526
  for (var p = 0; p < n.length; p++) {
568
527
  var y = n[p];
569
- Ue(y) && gt(y, s);
528
+ Ue(y) && gt(y, c);
570
529
  }
571
530
  else if (Ue(n))
572
531
  n._store && (n._store.validated = !0);
@@ -574,64 +533,64 @@ Check the top-level render call using <` + p + ">.");
574
533
  var S = E(n);
575
534
  if (typeof S == "function" && S !== n.entries)
576
535
  for (var C = S.call(n), x; !(x = C.next()).done; )
577
- Ue(x.value) && gt(x.value, s);
536
+ Ue(x.value) && gt(x.value, c);
578
537
  }
579
538
  }
580
539
  }
581
540
  function hn(n) {
582
541
  {
583
- var s = n.type;
584
- if (s == null || typeof s == "string")
542
+ var c = n.type;
543
+ if (c == null || typeof c == "string")
585
544
  return;
586
545
  var p;
587
- if (typeof s == "function")
588
- p = s.propTypes;
589
- else if (typeof s == "object" && (s.$$typeof === c || // Note: Memo only checks outer props here.
546
+ if (typeof c == "function")
547
+ p = c.propTypes;
548
+ else if (typeof c == "object" && (c.$$typeof === s || // Note: Memo only checks outer props here.
590
549
  // Inner props are checked in the reconciler.
591
- s.$$typeof === $))
592
- p = s.propTypes;
550
+ c.$$typeof === k))
551
+ p = c.propTypes;
593
552
  else
594
553
  return;
595
554
  if (p) {
596
- var y = H(s);
555
+ var y = H(c);
597
556
  en(p, n.props, "prop", y, n);
598
- } else if (s.PropTypes !== void 0 && !De) {
557
+ } else if (c.PropTypes !== void 0 && !De) {
599
558
  De = !0;
600
- var S = H(s);
601
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
559
+ var S = H(c);
560
+ $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
602
561
  }
603
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
562
+ typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
604
563
  }
605
564
  }
606
565
  function mn(n) {
607
566
  {
608
- for (var s = Object.keys(n.props), p = 0; p < s.length; p++) {
609
- var y = s[p];
567
+ for (var c = Object.keys(n.props), p = 0; p < c.length; p++) {
568
+ var y = c[p];
610
569
  if (y !== "children" && y !== "key") {
611
- ue(n), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
570
+ ue(n), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
612
571
  break;
613
572
  }
614
573
  }
615
- n.ref !== null && (ue(n), k("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
574
+ n.ref !== null && (ue(n), $("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
616
575
  }
617
576
  }
618
577
  var mt = {};
619
- function yt(n, s, p, y, S, C) {
578
+ function yt(n, c, p, y, S, C) {
620
579
  {
621
580
  var x = ze(n);
622
581
  if (!x) {
623
- var v = "";
624
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
625
- var N = pn();
626
- N ? v += N : v += ft();
582
+ var b = "";
583
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var F = pn();
585
+ F ? b += F : b += ft();
627
586
  var z;
628
- n === null ? z = "null" : Ie(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (H(n.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
587
+ n === null ? z = "null" : Ie(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (H(n.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, b);
629
588
  }
630
- var B = fn(n, s, p, S, C);
589
+ var B = fn(n, c, p, S, C);
631
590
  if (B == null)
632
591
  return B;
633
592
  if (x) {
634
- var V = s.children;
593
+ var V = c.children;
635
594
  if (V !== void 0)
636
595
  if (y)
637
596
  if (Ie(V)) {
@@ -639,17 +598,17 @@ Check the top-level render call using <` + p + ">.");
639
598
  ht(V[de], n);
640
599
  Object.freeze && Object.freeze(V);
641
600
  } else
642
- k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
601
+ $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
643
602
  else
644
603
  ht(V, n);
645
604
  }
646
- if (me.call(s, "key")) {
647
- var le = H(n), D = Object.keys(s).filter(function($n) {
605
+ if (me.call(c, "key")) {
606
+ var le = H(n), N = Object.keys(c).filter(function($n) {
648
607
  return $n !== "key";
649
- }), We = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
608
+ }), We = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
650
609
  if (!mt[le + We]) {
651
- var xn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
652
- k(`A props object containing a "key" prop is being spread into JSX:
610
+ var xn = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
611
+ $(`A props object containing a "key" prop is being spread into JSX:
653
612
  let props = %s;
654
613
  <%s {...props} />
655
614
  React keys must be passed directly to JSX without using spread:
@@ -660,23 +619,23 @@ React keys must be passed directly to JSX without using spread:
660
619
  return n === r ? mn(B) : hn(B), B;
661
620
  }
662
621
  }
663
- function yn(n, s, p) {
664
- return yt(n, s, p, !0);
622
+ function yn(n, c, p) {
623
+ return yt(n, c, p, !0);
665
624
  }
666
- function wn(n, s, p) {
667
- return yt(n, s, p, !1);
625
+ function wn(n, c, p) {
626
+ return yt(n, c, p, !1);
668
627
  }
669
628
  var bn = wn, vn = yn;
670
629
  be.Fragment = r, be.jsx = bn, be.jsxs = vn;
671
630
  }()), be;
672
631
  }
673
- process.env.NODE_ENV === "production" ? Ze.exports = Cn() : Ze.exports = En();
674
- var i = Ze.exports;
632
+ process.env.NODE_ENV === "production" ? Ze.exports = _n() : Ze.exports = Cn();
633
+ var a = Ze.exports;
675
634
  const d = "https://cdn.casbin.org", I = {
676
635
  casdoor: "https://casdoor",
677
636
  springmicro: void 0
678
637
  };
679
- function jn() {
638
+ function En() {
680
639
  return "en";
681
640
  }
682
641
  function te() {
@@ -685,39 +644,39 @@ function te() {
685
644
  function G(t, e) {
686
645
  alert(e);
687
646
  }
688
- function Ln(t) {
647
+ function jn(t) {
689
648
  t !== void 0 && (window.location.href = t);
690
649
  }
691
- function Pt(t) {
650
+ function Rt(t) {
692
651
  return !(t.provider === void 0 || t.provider === null || !["OAuth", "SAML", "Web3"].includes(t.provider.category) || t.provider.type === "WeChatMiniProgram");
693
652
  }
694
- function Tn(t) {
695
- return Pt(t) && t.prompted;
653
+ function Ln(t) {
654
+ return Rt(t) && t.prompted;
696
655
  }
697
- function An(t) {
656
+ function Tn(t) {
698
657
  return t.visible && t.prompted;
699
658
  }
700
- function Mn(t) {
659
+ function An(t) {
701
660
  var e;
702
661
  return (e = t.providers) == null ? void 0 : e.filter(
703
- (o) => Tn(o)
662
+ (o) => Ln(o)
704
663
  );
705
664
  }
706
- function zn(t) {
665
+ function Mn(t) {
707
666
  var e;
708
667
  return (e = t.signupItems) == null ? void 0 : e.filter(
709
- (o) => An(o)
668
+ (o) => Tn(o)
710
669
  );
711
670
  }
712
- function On(t, e) {
671
+ function zn(t, e) {
713
672
  var r;
714
673
  const o = (r = t.signupItems) == null ? void 0 : r.filter(
715
- (a) => a.name === e
674
+ (i) => i.name === e
716
675
  );
717
676
  return (o == null ? void 0 : o.length) ?? !1 ? o[0] : null;
718
677
  }
719
- function Bn(t) {
720
- const e = On(t, "Affiliation");
678
+ function On(t) {
679
+ const e = zn(t, "Affiliation");
721
680
  return e === null ? !1 : e.prompted;
722
681
  }
723
682
  function vt(t) {
@@ -726,24 +685,24 @@ function vt(t) {
726
685
  function Ae(t, e) {
727
686
  return t && t.signinMethods ? t.signinMethods.filter((o) => o.name === e).length > 0 : !1;
728
687
  }
729
- function Rn(t) {
688
+ function Bn(t) {
730
689
  return Ae(t, "Password");
731
690
  }
732
691
  function Pn(t) {
733
692
  return Ae(t, "Verification code");
734
693
  }
735
- function In(t) {
694
+ function Rn(t) {
736
695
  return Ae(t, "WebAuthn");
737
696
  }
738
- function Fn(t) {
697
+ function In(t) {
739
698
  return Ae(t, "LDAP");
740
699
  }
741
- function Nn(t) {
742
- const e = Mn(t);
700
+ function Fn(t) {
701
+ const e = An(t);
743
702
  if ((e == null ? void 0 : e.length) ?? !1)
744
703
  return !0;
745
- const o = zn(t);
746
- return (o == null ? void 0 : o.length) ?? !1 ? !0 : Bn(t);
704
+ const o = Mn(t);
705
+ return (o == null ? void 0 : o.length) ?? !1 ? !0 : On(t);
747
706
  }
748
707
  function se(t) {
749
708
  if (t.type === "Custom" && t.customLogo)
@@ -751,11 +710,11 @@ function se(t) {
751
710
  if (t.category === "OAuth")
752
711
  return `${d}/img/social_${t.type.toLowerCase()}.png`;
753
712
  {
754
- const e = Dn[t.category][t.type];
713
+ const e = Nn[t.category][t.type];
755
714
  return e ? e.logo : "";
756
715
  }
757
716
  }
758
- const Dn = {
717
+ const Nn = {
759
718
  SMS: {
760
719
  "Aliyun SMS": {
761
720
  logo: `${d}/img/social_aliyun.png`,
@@ -1043,7 +1002,7 @@ const Dn = {
1043
1002
  }
1044
1003
  }
1045
1004
  };
1046
- function Un(t = "") {
1005
+ function Dn(t = "") {
1047
1006
  return fetch(`${I.casdoor}/api/get-account${t}`, {
1048
1007
  method: "GET",
1049
1008
  credentials: "include",
@@ -1052,7 +1011,7 @@ function Un(t = "") {
1052
1011
  }
1053
1012
  }).then((e) => e.json());
1054
1013
  }
1055
- function Wn(t) {
1014
+ function Un(t) {
1056
1015
  let e = `${I.casdoor}/api/signup`;
1057
1016
  return I.springmicro && (e = `${I.springmicro}/api/accounts/users/register`), fetch(e, {
1058
1017
  method: "POST",
@@ -1064,14 +1023,14 @@ function Wn(t) {
1064
1023
  }
1065
1024
  }).then((o) => o.json());
1066
1025
  }
1067
- function Hn(t) {
1026
+ function Wn(t) {
1068
1027
  return `?type=${t == null ? void 0 : t.type}&id=${t == null ? void 0 : t.id}&redirectUri=${t == null ? void 0 : t.service}`;
1069
1028
  }
1070
- function Vn(t) {
1029
+ function Hn(t) {
1071
1030
  return t == null ? "" : `?clientId=${t.clientId}&responseType=${t.responseType}&redirectUri=${encodeURIComponent(t.redirectUri)}&type=${t.type}&scope=${t.scope}&state=${t.state}&nonce=${t.nonce}&code_challenge_method=${t.challengeMethod}&code_challenge=${t.codeChallenge}`;
1072
1031
  }
1073
1032
  function It(t) {
1074
- const e = (t == null ? void 0 : t.type) === "cas" ? Hn(t) : Vn(t);
1033
+ const e = (t == null ? void 0 : t.type) === "cas" ? Wn(t) : Hn(t);
1075
1034
  return fetch(`${I.casdoor}/api/get-app-login${e}`, {
1076
1035
  method: "GET",
1077
1036
  credentials: "include",
@@ -1080,7 +1039,7 @@ function It(t) {
1080
1039
  }
1081
1040
  }).then((o) => o.json());
1082
1041
  }
1083
- function Gn(t, e) {
1042
+ function Vn(t, e) {
1084
1043
  return fetch(
1085
1044
  `${I.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1086
1045
  {
@@ -1092,7 +1051,7 @@ function Gn(t, e) {
1092
1051
  }
1093
1052
  ).then((o) => o.json());
1094
1053
  }
1095
- function qn(t) {
1054
+ function Gn(t) {
1096
1055
  return fetch(`${I.casdoor}/api/get-webhook-event?ticket=${t}`, {
1097
1056
  method: "GET",
1098
1057
  credentials: "include",
@@ -1101,7 +1060,7 @@ function qn(t) {
1101
1060
  }
1102
1061
  }).then((e) => e.json());
1103
1062
  }
1104
- function Yn(t) {
1063
+ function qn(t) {
1105
1064
  return fetch(`${I.casdoor}/api/get-qrcode?id=${t}`, {
1106
1065
  method: "GET",
1107
1066
  credentials: "include",
@@ -1435,64 +1394,64 @@ const ce = {
1435
1394
  endpoint: ""
1436
1395
  }
1437
1396
  };
1438
- function Kn(t, e, o, r) {
1397
+ function Yn(t, e, o, r) {
1439
1398
  if (t === null || e === null)
1440
1399
  return "";
1441
- let a = ce[e.type].endpoint, l = `${window.location.origin}/callback`;
1442
- const u = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", c = Jn(
1400
+ let i = ce[e.type].endpoint, l = `${window.location.origin}/callback`;
1401
+ const u = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", s = Kn(
1443
1402
  t.name,
1444
1403
  e.name,
1445
1404
  o,
1446
1405
  g
1447
1406
  ), f = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
1448
- if (e.type === "AzureAD" ? e.domain !== "" && (a = a.replace("common", e.domain)) : e.type === "Apple" && (l = `${window.location.origin}/api/callback`), e.type === "Google" || e.type === "GitHub" || e.type === "QQ" || e.type === "Facebook" || e.type === "Weibo" || e.type === "Gitee" || e.type === "LinkedIn" || e.type === "GitLab" || e.type === "AzureAD" || e.type === "Slack" || e.type === "Line" || e.type === "Amazon" || e.type === "Auth0" || e.type === "BattleNet" || e.type === "Bitbucket" || e.type === "Box" || e.type === "CloudFoundry" || e.type === "Dailymotion" || e.type === "DigitalOcean" || e.type === "Discord" || e.type === "Dropbox" || e.type === "EveOnline" || e.type === "Gitea" || e.type === "Heroku" || e.type === "InfluxCloud" || e.type === "Instagram" || e.type === "Intercom" || e.type === "Kakao" || e.type === "MailRu" || e.type === "Meetup" || e.type === "MicrosoftOnline" || e.type === "Naver" || e.type === "Nextcloud" || e.type === "OneDrive" || e.type === "Oura" || e.type === "Patreon" || e.type === "PayPal" || e.type === "SalesForce" || e.type === "SoundCloud" || e.type === "Spotify" || e.type === "Strava" || e.type === "Stripe" || e.type === "Tumblr" || e.type === "Twitch" || e.type === "Typetalk" || e.type === "Uber" || e.type === "VK" || e.type === "Wepay" || e.type === "Xero" || e.type === "Yahoo" || e.type === "Yammer" || e.type === "Yandex" || e.type === "Zoom")
1449
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${c}`;
1407
+ if (e.type === "AzureAD" ? e.domain !== "" && (i = i.replace("common", e.domain)) : e.type === "Apple" && (l = `${window.location.origin}/api/callback`), e.type === "Google" || e.type === "GitHub" || e.type === "QQ" || e.type === "Facebook" || e.type === "Weibo" || e.type === "Gitee" || e.type === "LinkedIn" || e.type === "GitLab" || e.type === "AzureAD" || e.type === "Slack" || e.type === "Line" || e.type === "Amazon" || e.type === "Auth0" || e.type === "BattleNet" || e.type === "Bitbucket" || e.type === "Box" || e.type === "CloudFoundry" || e.type === "Dailymotion" || e.type === "DigitalOcean" || e.type === "Discord" || e.type === "Dropbox" || e.type === "EveOnline" || e.type === "Gitea" || e.type === "Heroku" || e.type === "InfluxCloud" || e.type === "Instagram" || e.type === "Intercom" || e.type === "Kakao" || e.type === "MailRu" || e.type === "Meetup" || e.type === "MicrosoftOnline" || e.type === "Naver" || e.type === "Nextcloud" || e.type === "OneDrive" || e.type === "Oura" || e.type === "Patreon" || e.type === "PayPal" || e.type === "SalesForce" || e.type === "SoundCloud" || e.type === "Spotify" || e.type === "Strava" || e.type === "Stripe" || e.type === "Tumblr" || e.type === "Twitch" || e.type === "Typetalk" || e.type === "Uber" || e.type === "VK" || e.type === "Wepay" || e.type === "Xero" || e.type === "Yahoo" || e.type === "Yammer" || e.type === "Yandex" || e.type === "Zoom")
1408
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${s}`;
1450
1409
  if (e.type === "AzureADB2C")
1451
1410
  return `https://${e.domain}.b2clogin.com/${e.domain}.onmicrosoft.com/${e.appId}/oauth2/v2.0/authorize?client_id=${e.clientId}&nonce=defaultNonce&redirect_uri=${encodeURIComponent(
1452
1411
  l
1453
- )}&scope=${u}&response_type=code&state=${c}&prompt=login`;
1412
+ )}&scope=${u}&response_type=code&state=${s}&prompt=login`;
1454
1413
  if (e.type === "DingTalk")
1455
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&prompt=consent&state=${c}`;
1414
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&prompt=consent&state=${s}`;
1456
1415
  if (e.type === "WeChat")
1457
- return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${c}&scope=${ce[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${c}&code=${"wechat_oa:" + r}` : `${a}?appid=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${c}#wechat_redirect`;
1416
+ return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${s}&scope=${ce[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${s}&code=${"wechat_oa:" + r}` : `${i}?appid=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${s}#wechat_redirect`;
1458
1417
  if (e.type === "WeCom")
1459
- return e.subType === "Internal" ? e.method === "Silent" ? (a = ce[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (a = ce[e.type].internalEndpoint, `${a}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${c}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (a = ce[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1418
+ return e.subType === "Internal" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${s}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (i = ce[e.type].internalEndpoint, `${i}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${s}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${s}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${s}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1460
1419
  if (e.type === "Lark")
1461
- return `${a}?app_id=${e.clientId}&redirect_uri=${l}&state=${c}`;
1420
+ return `${i}?app_id=${e.clientId}&redirect_uri=${l}&state=${s}`;
1462
1421
  if (e.type === "ADFS")
1463
- return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&nonce=casdoor&scope=openid`;
1422
+ return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&nonce=casdoor&scope=openid`;
1464
1423
  if (e.type === "Baidu")
1465
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&display=popup`;
1424
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}&display=popup`;
1466
1425
  if (e.type === "Alipay")
1467
- return `${a}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&display=popup`;
1426
+ return `${i}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}&display=popup`;
1468
1427
  if (e.type === "Casdoor")
1469
- return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
1428
+ return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}`;
1470
1429
  if (e.type === "Infoflow")
1471
- return `${a}?appid=${e.clientId}&redirect_uri=${l}?state=${c}`;
1430
+ return `${i}?appid=${e.clientId}&redirect_uri=${l}?state=${s}`;
1472
1431
  if (e.type === "Apple")
1473
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code%20id_token&scope=${u}&response_mode=form_post`;
1432
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code%20id_token&scope=${u}&response_mode=form_post`;
1474
1433
  if (e.type === "Steam")
1475
- return `${a}?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.realm=${window.location.origin}&openid.return_to=${l}?state=${c}`;
1434
+ return `${i}?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.realm=${window.location.origin}&openid.return_to=${l}?state=${s}`;
1476
1435
  if (e.type === "Okta")
1477
- return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
1436
+ return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}`;
1478
1437
  if (e.type === "Douyin" || e.type === "TikTok")
1479
- return `${a}?client_key=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
1438
+ return `${i}?client_key=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}`;
1480
1439
  if (e.type === "Custom")
1481
- return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${c}`;
1440
+ return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${s}`;
1482
1441
  if (e.type === "Bilibili")
1483
- return `${a}#/?client_id=${e.clientId}&return_url=${l}&state=${c}&response_type=code`;
1442
+ return `${i}#/?client_id=${e.clientId}&return_url=${l}&state=${s}&response_type=code`;
1484
1443
  if (e.type === "Deezer")
1485
- return `${a}?app_id=${e.clientId}&redirect_uri=${l}&perms=${u}`;
1444
+ return `${i}?app_id=${e.clientId}&redirect_uri=${l}&perms=${u}`;
1486
1445
  if (e.type === "Lastfm")
1487
- return `${a}?api_key=${e.clientId}&cb=${l}`;
1446
+ return `${i}?api_key=${e.clientId}&cb=${l}`;
1488
1447
  if (e.type === "Shopify")
1489
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&state=${c}&grant_options[]=per-user`;
1448
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&state=${s}&grant_options[]=per-user`;
1490
1449
  if (e.type === "Twitter" || e.type === "Fitbit")
1491
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&code_challenge=${f}&code_challenge_method=S256`;
1450
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}&code_challenge=${f}&code_challenge_method=S256`;
1492
1451
  if (e.type === "MetaMask")
1493
- return `${l}?state=${c}`;
1452
+ return `${l}?state=${s}`;
1494
1453
  if (e.type === "Web3Onboard")
1495
- return `${l}?state=${c}`;
1454
+ return `${l}?state=${s}`;
1496
1455
  }
1497
1456
  function K(t) {
1498
1457
  return t ?? "";
@@ -1506,87 +1465,87 @@ function He(t) {
1506
1465
  }
1507
1466
  function Ft(t) {
1508
1467
  const e = new URLSearchParams(window.location.search), o = K(e.get("client_id")), r = K(e.get("response_type"));
1509
- let a = He("redirect_uri");
1510
- a === "" && (a = K(e.get("redirect_uri")));
1468
+ let i = He("redirect_uri");
1469
+ i === "" && (i = K(e.get("redirect_uri")));
1511
1470
  let l = K(e.get("scope"));
1512
- a.includes("#") && l === "" && (l = He("scope"));
1471
+ i.includes("#") && l === "" && (l = He("scope"));
1513
1472
  let u = K(e.get("state"));
1514
- u.startsWith("/auth/oauth2/login.php?wantsurl=") && (u = encodeURIComponent(u)), a.includes("#") && u === "" && (u = He("state"));
1515
- const g = K(e.get("nonce")), c = K(e.get("code_challenge_method")), f = K(e.get("code_challenge")), h = K(e.get("SAMLRequest")), $ = K(e.get("RelayState")), w = K(e.get("noRedirect"));
1516
- return o === "" && h === "" ? null : {
1473
+ u.startsWith("/auth/oauth2/login.php?wantsurl=") && (u = encodeURIComponent(u)), i.includes("#") && u === "" && (u = He("state"));
1474
+ const g = K(e.get("nonce")), s = K(e.get("code_challenge_method")), f = K(e.get("code_challenge")), m = K(e.get("SAMLRequest")), k = K(e.get("RelayState")), w = K(e.get("noRedirect"));
1475
+ return o === "" && m === "" ? null : {
1517
1476
  clientId: o,
1518
1477
  responseType: r,
1519
- redirectUri: a,
1478
+ redirectUri: i,
1520
1479
  scope: l,
1521
1480
  state: u,
1522
1481
  nonce: g,
1523
- challengeMethod: c,
1482
+ challengeMethod: s,
1524
1483
  codeChallenge: f,
1525
- samlRequest: h,
1526
- relayState: $,
1484
+ samlRequest: m,
1485
+ relayState: k,
1527
1486
  noRedirect: w,
1528
1487
  type: "code"
1529
1488
  };
1530
1489
  }
1531
- function Jn(t, e, o, r) {
1532
- let a = window.location.search;
1533
- if (a = `${a}&application=${encodeURIComponent(
1490
+ function Kn(t, e, o, r) {
1491
+ let i = window.location.search;
1492
+ if (i = `${i}&application=${encodeURIComponent(
1534
1493
  t
1535
- )}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (a = `${a}&from=${window.location.pathname}`), r) {
1494
+ )}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (i = `${i}&from=${window.location.pathname}`), r) {
1536
1495
  const l = e;
1537
- return sessionStorage.setItem(l, a), l;
1496
+ return sessionStorage.setItem(l, i), l;
1538
1497
  } else
1539
- return btoa(a);
1540
- }
1541
- function Qn(t, e, o, r) {
1542
- qn(o).then((a) => {
1543
- if (a.data === "SCAN" || a.data === "subscribe") {
1544
- const l = a == null ? void 0 : a.data2;
1545
- Ln(
1546
- Kn(t, e, r ?? "signup", l)
1498
+ return btoa(i);
1499
+ }
1500
+ function Jn(t, e, o, r) {
1501
+ Gn(o).then((i) => {
1502
+ if (i.data === "SCAN" || i.data === "subscribe") {
1503
+ const l = i == null ? void 0 : i.data2;
1504
+ jn(
1505
+ Yn(t, e, r ?? "signup", l)
1547
1506
  );
1548
1507
  }
1549
1508
  });
1550
1509
  }
1551
- async function Zn(t, e, o) {
1552
- document.addEventListener("click", function(a) {
1510
+ async function Qn(t, e, o) {
1511
+ document.addEventListener("click", function(i) {
1553
1512
  const l = document.getElementById("WechatOfficialAccountModal");
1554
- l && a.target === l && l.close();
1513
+ l && i.target === l && l.close();
1555
1514
  });
1556
- function r(a, l) {
1515
+ function r(i, l) {
1557
1516
  function u() {
1558
- const h = document.getElementById("WechatOfficialAccountModal");
1559
- h && h.showModal();
1517
+ const m = document.getElementById("WechatOfficialAccountModal");
1518
+ m && m.showModal();
1560
1519
  }
1561
1520
  function g() {
1562
1521
  window.clearInterval(l);
1563
- const h = document.getElementById("WechatOfficialAccountModal");
1564
- h && h.close();
1522
+ const m = document.getElementById("WechatOfficialAccountModal");
1523
+ m && m.close();
1565
1524
  }
1566
1525
  window.closeDialog = g;
1567
- const c = `
1526
+ const s = `
1568
1527
  <div style="margin-right: 34px;">
1569
- <img src="data:image/png;base64,${a.data}" alt="Wechat QR code" style="width: 100%;" />
1528
+ <img src="data:image/png;base64,${i.data}" alt="Wechat QR code" style="width: 100%;" />
1570
1529
  </div>
1571
1530
  <button onclick="window.closeDialog()">Close</button>
1572
1531
  `, f = document.createElement("dialog");
1573
- f.innerHTML = c, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), u();
1532
+ f.innerHTML = s, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), u();
1574
1533
  }
1575
- Yn(`${e.owner}/${e.name}`).then(
1576
- async (a) => {
1577
- if (a.status !== "ok") {
1578
- G("error", a == null ? void 0 : a.msg);
1534
+ qn(`${e.owner}/${e.name}`).then(
1535
+ async (i) => {
1536
+ if (i.status !== "ok") {
1537
+ G("error", i == null ? void 0 : i.msg);
1579
1538
  return;
1580
1539
  }
1581
1540
  const l = setInterval(
1582
- await Qn,
1541
+ await Jn,
1583
1542
  1e3,
1584
1543
  t,
1585
1544
  e,
1586
- a.data2,
1545
+ i.data2,
1587
1546
  o
1588
1547
  );
1589
- r(a, l);
1548
+ r(i, l);
1590
1549
  }
1591
1550
  );
1592
1551
  }
@@ -1604,9 +1563,9 @@ function Nt(t, e) {
1604
1563
  }
1605
1564
  ).then((o) => o.json());
1606
1565
  }
1607
- function Dt(t, e, o, r, a = "", l, u, g, c = "") {
1566
+ function Dt(t, e, o, r, i = "", l, u, g, s = "") {
1608
1567
  const f = new FormData();
1609
- return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", a), f.append("dest", l), f.append("type", u), f.append("applicationId", "admin/" + g), f.append("checkUser", c), fetch(`${I.casdoor}/api/send-verification-code`, {
1568
+ return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", i), f.append("dest", l), f.append("type", u), f.append("applicationId", "admin/" + g), f.append("checkUser", s), fetch(`${I.casdoor}/api/send-verification-code`, {
1610
1569
  method: "POST",
1611
1570
  credentials: "include",
1612
1571
  body: f,
@@ -1614,7 +1573,7 @@ function Dt(t, e, o, r, a = "", l, u, g, c = "") {
1614
1573
  // "Content-Type": "application/json",
1615
1574
  "Accept-Language": te()
1616
1575
  }
1617
- }).then((h) => h.json()).then((h) => h.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", h.msg), !1));
1576
+ }).then((m) => m.json()).then((m) => m.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", m.msg), !1));
1618
1577
  }
1619
1578
  function Ut(t, e, o) {
1620
1579
  return fetch(
@@ -1629,24 +1588,24 @@ function Ut(t, e, o) {
1629
1588
  }
1630
1589
  ).then((r) => r.json()).then((r) => r.data);
1631
1590
  }
1632
- const Xn = (t) => {
1591
+ const Zn = (t) => {
1633
1592
  const {
1634
1593
  captchaType: e,
1635
1594
  subType: o,
1636
1595
  siteKey: r,
1637
- clientSecret: a,
1596
+ clientSecret: i,
1638
1597
  clientId2: l,
1639
1598
  clientSecret2: u,
1640
1599
  onChange: g
1641
- } = t, c = (f) => {
1642
- const h = document.createElement("script");
1643
- h.async = !1, h.src = f, document.getElementsByTagName("body")[0].appendChild(h);
1600
+ } = t, s = (f) => {
1601
+ const m = document.createElement("script");
1602
+ m.async = !1, m.src = f, document.getElementsByTagName("body")[0].appendChild(m);
1644
1603
  };
1645
- return Rt(() => {
1604
+ return Pt(() => {
1646
1605
  switch (e) {
1647
1606
  case "reCAPTCHA": {
1648
1607
  const f = setInterval(() => {
1649
- window.grecaptcha || c("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
1608
+ window.grecaptcha || s("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
1650
1609
  sitekey: r,
1651
1610
  callback: g
1652
1611
  }), clearInterval(f));
@@ -1655,7 +1614,7 @@ const Xn = (t) => {
1655
1614
  }
1656
1615
  case "hCaptcha": {
1657
1616
  const f = setInterval(() => {
1658
- window.hcaptcha || c("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
1617
+ window.hcaptcha || s("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
1659
1618
  sitekey: r,
1660
1619
  callback: g
1661
1620
  }), clearInterval(f));
@@ -1664,8 +1623,8 @@ const Xn = (t) => {
1664
1623
  }
1665
1624
  case "Aliyun Captcha": {
1666
1625
  const f = setInterval(() => {
1667
- window.AWSC || c("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (u && u !== "***" && window.AWSC.use(o, function(h, $) {
1668
- $.init({
1626
+ window.AWSC || s("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (u && u !== "***" && window.AWSC.use(o, function(m, k) {
1627
+ k.init({
1669
1628
  appkey: u,
1670
1629
  scene: l,
1671
1630
  renderTo: "captcha",
@@ -1681,30 +1640,30 @@ const Xn = (t) => {
1681
1640
  }
1682
1641
  case "GEETEST": {
1683
1642
  let f = !1;
1684
- const h = setInterval(() => {
1685
- if (window.initGeetest4 || c("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
1686
- const $ = String(r);
1643
+ const m = setInterval(() => {
1644
+ if (window.initGeetest4 || s("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
1645
+ const k = String(r);
1687
1646
  window.initGeetest4(
1688
1647
  {
1689
- captchaId: $,
1648
+ captchaId: k,
1690
1649
  product: "float"
1691
1650
  },
1692
1651
  function(w) {
1693
1652
  f || (w.appendTo("#captcha"), f = !0), w.onSuccess(function() {
1694
- const b = w.getValidate();
1653
+ const v = w.getValidate();
1695
1654
  g(
1696
- `lot_number=${b.lot_number}&captcha_output=${b.captcha_output}&pass_token=${b.pass_token}&gen_time=${b.gen_time}&captcha_id=${r}`
1655
+ `lot_number=${v.lot_number}&captcha_output=${v.captcha_output}&pass_token=${v.pass_token}&gen_time=${v.gen_time}&captcha_id=${r}`
1697
1656
  );
1698
1657
  });
1699
1658
  }
1700
- ), clearInterval(h);
1659
+ ), clearInterval(m);
1701
1660
  }
1702
1661
  }, 500);
1703
1662
  break;
1704
1663
  }
1705
1664
  case "Cloudflare Turnstile": {
1706
1665
  const f = setInterval(() => {
1707
- window.turnstile || c("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
1666
+ window.turnstile || s("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
1708
1667
  sitekey: r,
1709
1668
  callback: g
1710
1669
  }), clearInterval(f));
@@ -1712,22 +1671,22 @@ const Xn = (t) => {
1712
1671
  break;
1713
1672
  }
1714
1673
  }
1715
- }, [e, o, r, a, l, u]), /* @__PURE__ */ i.jsx("div", { id: "captcha" });
1716
- }, eo = (t) => {
1717
- const { t: e } = Te(), { owner: o, name: r, visible: a, onOk: l, onCancel: u, isCurrentProvider: g } = t, [c, f] = m.useState("none"), [h, $] = m.useState(""), [w, b] = m.useState(""), [L, F] = m.useState(""), [E, _] = m.useState(""), [k, q] = m.useState(""), [Y, U] = m.useState(!1), [ie, pe] = m.useState(""), [ne, R] = m.useState(""), ze = m.useRef(null);
1718
- Rt(() => {
1719
- a ? H() : (he(), U(!1));
1720
- }, [a]);
1674
+ }, [e, o, r, i, l, u]), /* @__PURE__ */ a.jsx("div", { id: "captcha" });
1675
+ }, Xn = (t) => {
1676
+ const { t: e } = Te(), { owner: o, name: r, visible: i, onOk: l, onCancel: u, isCurrentProvider: g } = t, [s, f] = h.useState("none"), [m, k] = h.useState(""), [w, v] = h.useState(""), [M, D] = h.useState(""), [E, _] = h.useState(""), [$, q] = h.useState(""), [Y, U] = h.useState(!1), [ie, pe] = h.useState(""), [ne, P] = h.useState(""), ze = h.useRef(null);
1677
+ Pt(() => {
1678
+ i ? H() : (he(), U(!1));
1679
+ }, [i]);
1721
1680
  const ge = () => {
1722
- l == null || l(c, ne, w);
1681
+ l == null || l(s, ne, w);
1723
1682
  }, he = () => {
1724
- R(""), u == null || u();
1683
+ P(""), u == null || u();
1725
1684
  }, H = () => {
1726
- Ut(o, r, g).then((M) => {
1727
- M.type === "none" ? ge() : M.type === "Default" ? (U(!0), b(M.captchaId), pe(M.captchaImage), f("Default")) : (U(!0), f(M.type), $(M.clientId), b(M.clientSecret), F(M.subType), _(M.clientId2), q(M.clientSecret2));
1685
+ Ut(o, r, g).then((A) => {
1686
+ A.type === "none" ? ge() : A.type === "Default" ? (U(!0), v(A.captchaId), pe(A.captchaImage), f("Default")) : (U(!0), f(A.type), k(A.clientId), v(A.clientSecret), D(A.subType), _(A.clientId2), q(A.clientSecret2));
1728
1687
  });
1729
- }, Z = () => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col items-center", children: [
1730
- /* @__PURE__ */ i.jsx(
1688
+ }, Z = () => /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col items-center", children: [
1689
+ /* @__PURE__ */ a.jsx(
1731
1690
  "div",
1732
1691
  {
1733
1692
  className: "bg-no-repeat mb-4 border border-current rounded w-[200px] h-[80px]",
@@ -1736,7 +1695,7 @@ const Xn = (t) => {
1736
1695
  }
1737
1696
  }
1738
1697
  ),
1739
- /* @__PURE__ */ i.jsx(
1698
+ /* @__PURE__ */ a.jsx(
1740
1699
  "input",
1741
1700
  {
1742
1701
  className: "input input-bordered w-[200px]",
@@ -1744,32 +1703,32 @@ const Xn = (t) => {
1744
1703
  ref: ze,
1745
1704
  value: ne,
1746
1705
  placeholder: e("general.captcha"),
1747
- onKeyDown: (M) => M.key === "Enter" ? ge() : null,
1748
- onChange: (M) => R(M.target.value)
1706
+ onKeyDown: (A) => A.key === "Enter" ? ge() : null,
1707
+ onChange: (A) => P(A.target.value)
1749
1708
  }
1750
1709
  )
1751
- ] }), re = (M) => {
1752
- R(M);
1753
- }, ke = () => c === "Default" ? Z() : /* @__PURE__ */ i.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ i.jsx(
1754
- Xn,
1710
+ ] }), re = (A) => {
1711
+ P(A);
1712
+ }, ke = () => s === "Default" ? Z() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
1713
+ Zn,
1755
1714
  {
1756
- captchaType: c,
1757
- subType: L,
1758
- siteKey: h,
1715
+ captchaType: s,
1716
+ subType: M,
1717
+ siteKey: m,
1759
1718
  clientSecret: w,
1760
1719
  onChange: re,
1761
1720
  clientId2: E,
1762
- clientSecret2: k
1721
+ clientSecret2: $
1763
1722
  }
1764
1723
  ) }), Se = () => {
1765
- let M = !1;
1766
- return c === "Default" ? /^\d{5}$/.test(ne) || (M = !0) : ne === "" && (M = !0), [
1767
- /* @__PURE__ */ i.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
1768
- /* @__PURE__ */ i.jsx(
1724
+ let A = !1;
1725
+ return s === "Default" ? /^\d{5}$/.test(ne) || (A = !0) : ne === "" && (A = !0), [
1726
+ /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
1727
+ /* @__PURE__ */ a.jsx(
1769
1728
  "button",
1770
1729
  {
1771
1730
  className: "btn btn-primary",
1772
- disabled: M,
1731
+ disabled: A,
1773
1732
  onClick: ge,
1774
1733
  children: "OK"
1775
1734
  },
@@ -1777,24 +1736,24 @@ const Xn = (t) => {
1777
1736
  )
1778
1737
  ];
1779
1738
  };
1780
- return /* @__PURE__ */ i.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ i.jsxs("div", { className: "modal-box", children: [
1781
- /* @__PURE__ */ i.jsx("div", { className: "mt-4 mb-8", children: ke() }),
1782
- /* @__PURE__ */ i.jsxs("div", { className: "modal-action", children: [
1783
- /* @__PURE__ */ i.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ i.jsx("button", { children: "Close" }) }),
1784
- /* @__PURE__ */ i.jsx("form", { method: "dialog", className: "flex gap-3", children: Se() })
1739
+ return /* @__PURE__ */ a.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
1740
+ /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: ke() }),
1741
+ /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
1742
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
1743
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "flex gap-3", children: Se() })
1785
1744
  ] })
1786
1745
  ] }) });
1787
- }, to = ({
1746
+ }, eo = ({
1788
1747
  value: t,
1789
1748
  disabled: e,
1790
1749
  textBefore: o,
1791
1750
  onChange: r,
1792
- onButtonClickArgs: a,
1751
+ onButtonClickArgs: i,
1793
1752
  application: l,
1794
1753
  method: u,
1795
1754
  countryCode: g
1796
1755
  }) => {
1797
- const { t: c } = Te(), [f, h] = m.useState(!1), [$, w] = m.useState(0), [b, L] = m.useState(!1), F = m.useRef(null), E = (q = 60) => {
1756
+ const { t: s } = Te(), [f, m] = h.useState(!1), [k, w] = h.useState(0), [v, M] = h.useState(!1), D = h.useRef(null), E = (q = 60) => {
1798
1757
  let Y = q;
1799
1758
  w(Y);
1800
1759
  const U = () => {
@@ -1802,26 +1761,26 @@ const Xn = (t) => {
1802
1761
  };
1803
1762
  setTimeout(U, 1e3);
1804
1763
  }, _ = (q, Y, U) => {
1805
- h(!1), L(!0), Dt(
1764
+ m(!1), M(!0), Dt(
1806
1765
  q,
1807
1766
  Y,
1808
1767
  U,
1809
1768
  u,
1810
1769
  g,
1811
- ...a
1770
+ ...i
1812
1771
  ).then((ie) => {
1813
- L(!1), ie && E(60);
1772
+ M(!1), ie && E(60);
1814
1773
  });
1815
- }, k = () => {
1816
- h(!1);
1774
+ }, $ = () => {
1775
+ m(!1);
1817
1776
  };
1818
- return m.useEffect(() => {
1819
- F.current = document.getElementById("captcha-modal");
1820
- }, []), m.useEffect(() => {
1821
- F.current && (f ? F.current.showModal() : F.current.close());
1822
- }, [f]), /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
1823
- /* @__PURE__ */ i.jsxs("div", { className: "flex", children: [
1824
- /* @__PURE__ */ i.jsx(
1777
+ return h.useEffect(() => {
1778
+ D.current = document.getElementById("captcha-modal");
1779
+ }, []), h.useEffect(() => {
1780
+ D.current && (f ? D.current.showModal() : D.current.close());
1781
+ }, [f]), /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
1782
+ /* @__PURE__ */ a.jsxs("div", { className: "flex", children: [
1783
+ /* @__PURE__ */ a.jsx(
1825
1784
  "input",
1826
1785
  {
1827
1786
  className: "input",
@@ -1832,117 +1791,117 @@ const Xn = (t) => {
1832
1791
  autoComplete: "one-time-code"
1833
1792
  }
1834
1793
  ),
1835
- /* @__PURE__ */ i.jsx(
1794
+ /* @__PURE__ */ a.jsx(
1836
1795
  "button",
1837
1796
  {
1838
1797
  className: "btn",
1839
- disabled: e || $ > 0,
1840
- onClick: () => h(!0),
1841
- children: $ > 0 ? `${$} s` : c(b ? "code.sending" : "code.sendCode")
1798
+ disabled: e || k > 0,
1799
+ onClick: () => m(!0),
1800
+ children: k > 0 ? `${k} s` : s(v ? "code.sending" : "code.sendCode")
1842
1801
  }
1843
1802
  )
1844
1803
  ] }),
1845
- /* @__PURE__ */ i.jsx(
1846
- eo,
1804
+ /* @__PURE__ */ a.jsx(
1805
+ Xn,
1847
1806
  {
1848
1807
  owner: l.owner,
1849
1808
  name: l.name,
1850
1809
  visible: f,
1851
1810
  onOk: _,
1852
- onCancel: k,
1811
+ onCancel: $,
1853
1812
  isCurrentProvider: !1
1854
1813
  }
1855
1814
  )
1856
1815
  ] });
1857
1816
  };
1858
- var no = Object.create, $e = Object.defineProperty, oo = Object.defineProperties, ao = Object.getOwnPropertyDescriptor, io = Object.getOwnPropertyDescriptors, ro = Object.getOwnPropertyNames, xt = Object.getOwnPropertySymbols, lo = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, $t = (t, e, o) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, P = (t, e) => {
1817
+ var to = Object.create, $e = Object.defineProperty, no = Object.defineProperties, oo = Object.getOwnPropertyDescriptor, ao = Object.getOwnPropertyDescriptors, io = Object.getOwnPropertyNames, xt = Object.getOwnPropertySymbols, ro = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, $t = (t, e, o) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, R = (t, e) => {
1859
1818
  for (var o in e || (e = {}))
1860
1819
  Wt.call(e, o) && $t(t, o, e[o]);
1861
1820
  if (xt)
1862
1821
  for (var o of xt(e))
1863
- co.call(e, o) && $t(t, o, e[o]);
1822
+ lo.call(e, o) && $t(t, o, e[o]);
1864
1823
  return t;
1865
- }, Ht = (t, e) => oo(t, io(e)), so = (t, e) => {
1824
+ }, Ht = (t, e) => no(t, ao(e)), co = (t, e) => {
1866
1825
  for (var o in e)
1867
1826
  $e(t, o, { get: e[o], enumerable: !0 });
1868
1827
  }, Vt = (t, e, o, r) => {
1869
1828
  if (e && typeof e == "object" || typeof e == "function")
1870
- for (let a of ro(e))
1871
- !Wt.call(t, a) && a !== o && $e(t, a, { get: () => e[a], enumerable: !(r = ao(e, a)) || r.enumerable });
1829
+ for (let i of io(e))
1830
+ !Wt.call(t, i) && i !== o && $e(t, i, { get: () => e[i], enumerable: !(r = oo(e, i)) || r.enumerable });
1872
1831
  return t;
1873
- }, A = (t, e, o) => (o = t != null ? no(lo(t)) : {}, Vt(
1832
+ }, T = (t, e, o) => (o = t != null ? to(ro(t)) : {}, Vt(
1874
1833
  // If the importer is in node compatibility mode or this is not an ESM
1875
1834
  // file that has been converted to a CommonJS file using a Babel-
1876
1835
  // compatible transform (i.e. "__esModule" has not been set), then set
1877
1836
  // "default" to the CommonJS "module.exports" for node compatibility.
1878
1837
  !t || !t.__esModule ? $e(o, "default", { value: t, enumerable: !0 }) : o,
1879
1838
  t
1880
- )), uo = (t) => Vt($e({}, "__esModule", { value: !0 }), t), Gt = {};
1881
- so(Gt, {
1882
- AmazonLoginButton: () => zo,
1883
- AppleLoginButton: () => Qo,
1884
- BufferLoginButton: () => Vo,
1885
- DiscordLoginButton: () => ea,
1886
- FacebookLoginButton: () => xo,
1887
- GithubLoginButton: () => Eo,
1888
- GitlabLoginButton: () => xa,
1889
- GoogleLoginButton: () => So,
1890
- InstagramLoginButton: () => Ro,
1891
- LinkedInLoginButton: () => Fo,
1892
- MetamaskLoginButton: () => wa,
1893
- MicrosoftLoginButton: () => Uo,
1894
- OktaLoginButton: () => oa,
1895
- SlackLoginButton: () => ra,
1896
- TelegramLoginButton: () => Yo,
1897
- TikTokLoginButton: () => ha,
1898
- TwitterLoginButton: () => To,
1899
- XLoginButton: () => Sa,
1900
- YahooLoginButton: () => sa,
1901
- ZaloLoginButton: () => fa,
1839
+ )), so = (t) => Vt($e({}, "__esModule", { value: !0 }), t), Gt = {};
1840
+ co(Gt, {
1841
+ AmazonLoginButton: () => Mo,
1842
+ AppleLoginButton: () => Jo,
1843
+ BufferLoginButton: () => Ho,
1844
+ DiscordLoginButton: () => Xo,
1845
+ FacebookLoginButton: () => vo,
1846
+ GithubLoginButton: () => Co,
1847
+ GitlabLoginButton: () => va,
1848
+ GoogleLoginButton: () => ko,
1849
+ InstagramLoginButton: () => Bo,
1850
+ LinkedInLoginButton: () => Io,
1851
+ MetamaskLoginButton: () => ya,
1852
+ MicrosoftLoginButton: () => Do,
1853
+ OktaLoginButton: () => na,
1854
+ SlackLoginButton: () => ia,
1855
+ TelegramLoginButton: () => qo,
1856
+ TikTokLoginButton: () => ga,
1857
+ TwitterLoginButton: () => Lo,
1858
+ XLoginButton: () => ka,
1859
+ YahooLoginButton: () => ca,
1860
+ ZaloLoginButton: () => da,
1902
1861
  createButton: () => O
1903
1862
  });
1904
- var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, format: o }) => /* @__PURE__ */ fo.default.createElement("i", { className: o(t), style: { fontSize: e } }), go = po, kt = A(m), ho = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(go, P({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), mo = "#FFFFFF", yo = (t) => {
1905
- const [e, o] = (0, oe.useState)(!1), [r, a] = (0, oe.useState)(!1), l = () => {
1906
- var R;
1907
- a(!0), (R = t.onMouseEnter) == null || R.call(t);
1863
+ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, format: o }) => /* @__PURE__ */ uo.default.createElement("i", { className: o(t), style: { fontSize: e } }), po = fo, kt = T(h), go = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(po, R({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), ho = "#FFFFFF", mo = (t) => {
1864
+ const [e, o] = (0, oe.useState)(!1), [r, i] = (0, oe.useState)(!1), l = () => {
1865
+ var P;
1866
+ i(!0), (P = t.onMouseEnter) == null || P.call(t);
1908
1867
  }, u = () => {
1909
- var R;
1910
- a(!1), (R = t.onMouseLeave) == null || R.call(t);
1911
- }, g = () => o(!0), c = () => o(!1), f = () => {
1912
- var R;
1913
- return (R = t.onClick) == null ? void 0 : R.call(t);
1868
+ var P;
1869
+ i(!1), (P = t.onMouseLeave) == null || P.call(t);
1870
+ }, g = () => o(!0), s = () => o(!1), f = () => {
1871
+ var P;
1872
+ return (P = t.onClick) == null ? void 0 : P.call(t);
1914
1873
  }, {
1915
- activeStyle: h,
1916
- align: $ = "left",
1874
+ activeStyle: m,
1875
+ align: k = "left",
1917
1876
  text: w,
1918
- children: b = w,
1919
- className: L,
1920
- icon: F,
1921
- iconFormat: E = (R) => R,
1877
+ children: v = w,
1878
+ className: M,
1879
+ icon: D,
1880
+ iconFormat: E = (P) => P,
1922
1881
  iconSize: _ = "26px",
1923
- iconColor: k = mo,
1882
+ iconColor: $ = ho,
1924
1883
  preventActiveStyles: q = !1,
1925
1884
  size: Y = "50px",
1926
1885
  style: U,
1927
1886
  disabled: ie,
1928
1887
  type: pe = "button"
1929
- } = t, ne = wo(Ge.button, {
1930
- activeStyle: q ? U : h,
1888
+ } = t, ne = yo(Ge.button, {
1889
+ activeStyle: q ? U : m,
1931
1890
  customStyle: U,
1932
1891
  active: r || e,
1933
1892
  size: Y
1934
1893
  });
1935
1894
  return /* @__PURE__ */ oe.default.createElement(
1936
1895
  "button",
1937
- P({
1896
+ R({
1938
1897
  style: ne,
1939
1898
  onClick: f,
1940
1899
  onMouseEnter: l,
1941
1900
  onMouseLeave: u,
1942
1901
  onFocus: g,
1943
- onBlur: c
1944
- }, { className: L, disabled: ie, type: pe }),
1945
- /* @__PURE__ */ oe.default.createElement("div", { style: Ge.flex }, !St(_) && !!F && /* @__PURE__ */ oe.default.createElement(
1902
+ onBlur: s
1903
+ }, { className: M, disabled: ie, type: pe }),
1904
+ /* @__PURE__ */ oe.default.createElement("div", { style: Ge.flex }, !St(_) && !!D && /* @__PURE__ */ oe.default.createElement(
1946
1905
  "div",
1947
1906
  {
1948
1907
  style: {
@@ -1951,17 +1910,17 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1951
1910
  minWidth: _
1952
1911
  }
1953
1912
  },
1954
- /* @__PURE__ */ oe.default.createElement(ho, { type: F, size: _, format: E, color: k })
1955
- ), !St(_) && /* @__PURE__ */ oe.default.createElement("div", { style: Ge.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: $, width: "100%" } }, b))
1913
+ /* @__PURE__ */ oe.default.createElement(go, { type: D, size: _, format: E, color: $ })
1914
+ ), !St(_) && /* @__PURE__ */ oe.default.createElement("div", { style: Ge.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: k, width: "100%" } }, v))
1956
1915
  );
1957
- }, St = (t) => t === "0" || t === "0px" || t === 0, wo = (t, {
1916
+ }, St = (t) => t === "0" || t === "0px" || t === 0, yo = (t, {
1958
1917
  size: e,
1959
1918
  customStyle: o,
1960
1919
  active: r,
1961
- activeStyle: a
1962
- }) => P(P(Ht(P({}, t), {
1920
+ activeStyle: i
1921
+ }) => R(R(Ht(R({}, t), {
1963
1922
  height: e
1964
- }), o), r && a), Ge = {
1923
+ }), o), r && i), Ge = {
1965
1924
  button: {
1966
1925
  display: "block",
1967
1926
  border: 0,
@@ -1984,20 +1943,20 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1984
1943
  display: "flex",
1985
1944
  height: "100%"
1986
1945
  }
1987
- }, bo = A(m), O = (t) => (e) => {
1988
- const o = Ht(P(P({
1989
- activeStyle: P(P({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1946
+ }, wo = T(h), O = (t) => (e) => {
1947
+ const o = Ht(R(R({
1948
+ activeStyle: R(R({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1990
1949
  }, t), e), {
1991
- style: P(P({}, t == null ? void 0 : t.style), e.style)
1950
+ style: R(R({}, t == null ? void 0 : t.style), e.style)
1992
1951
  });
1993
- return /* @__PURE__ */ bo.default.createElement(yo, P({}, o));
1994
- }, vo = {
1952
+ return /* @__PURE__ */ wo.default.createElement(mo, R({}, o));
1953
+ }, bo = {
1995
1954
  activeStyle: { background: "#293e69" },
1996
- icon: $o,
1955
+ icon: xo,
1997
1956
  style: { background: "#3b5998" },
1998
1957
  text: "Log in with Facebook"
1999
- }, xo = O(vo);
2000
- function $o({ size: t, color: e }) {
1958
+ }, vo = O(bo);
1959
+ function xo({ size: t, color: e }) {
2001
1960
  return /* @__PURE__ */ Ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 90 90" }, /* @__PURE__ */ Ve.default.createElement("g", null, /* @__PURE__ */ Ve.default.createElement(
2002
1961
  "path",
2003
1962
  {
@@ -2006,14 +1965,14 @@ function $o({ size: t, color: e }) {
2006
1965
  }
2007
1966
  )));
2008
1967
  }
2009
- var T = A(m), ko = {
1968
+ var L = T(h), $o = {
2010
1969
  activeStyle: { background: "#EFF0EE" },
2011
- icon: _o,
1970
+ icon: So,
2012
1971
  style: { background: "white", color: "black" },
2013
1972
  text: "Log in with Google"
2014
- }, So = O(ko);
2015
- function _o({ size: t }) {
2016
- return /* @__PURE__ */ T.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ T.default.createElement(
1973
+ }, ko = O($o);
1974
+ function So({ size: t }) {
1975
+ return /* @__PURE__ */ L.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ L.default.createElement(
2017
1976
  "linearGradient",
2018
1977
  {
2019
1978
  id: "95yY7w43Oj6n2vH63j6HJb",
@@ -2024,18 +1983,18 @@ function _o({ size: t }) {
2024
1983
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2025
1984
  gradientUnits: "userSpaceOnUse"
2026
1985
  },
2027
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
2028
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
2029
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
2030
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
2031
- ), /* @__PURE__ */ T.default.createElement(
1986
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
1987
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
1988
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
1989
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
1990
+ ), /* @__PURE__ */ L.default.createElement(
2032
1991
  "path",
2033
1992
  {
2034
1993
  fill: "url(#95yY7w43Oj6n2vH63j6HJb)",
2035
1994
  d: `M47.46,15.5l-1.37,1.48c-1.34,1.44-3.5,1.67-5.15,0.6c-2.71-1.75-6.43-3.13-11-2.37 c-4.94,0.83-9.17,3.85-11.64,
2036
1995
  7.97l-8.03-6.08C14.99,9.82,23.2,5,32.5,5c5,0,9.94,1.56,14.27,4.46 C48.81,10.83,49.13,13.71,47.46,15.5z`
2037
1996
  }
2038
- ), /* @__PURE__ */ T.default.createElement(
1997
+ ), /* @__PURE__ */ L.default.createElement(
2039
1998
  "linearGradient",
2040
1999
  {
2041
2000
  id: "95yY7w43Oj6n2vH63j6HJc",
@@ -2046,17 +2005,17 @@ function _o({ size: t }) {
2046
2005
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2047
2006
  gradientUnits: "userSpaceOnUse"
2048
2007
  },
2049
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
2050
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
2051
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
2052
- ), /* @__PURE__ */ T.default.createElement(
2008
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
2009
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
2010
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
2011
+ ), /* @__PURE__ */ L.default.createElement(
2053
2012
  "path",
2054
2013
  {
2055
2014
  fill: "url(#95yY7w43Oj6n2vH63j6HJc)",
2056
2015
  d: `M16.01,30.91c-0.09,2.47,0.37,4.83,1.27,6.96l-8.21,6.05c-1.35-2.51-2.3-5.28-2.75-8.22 c-1.06-6.88,0.54-13.38,
2057
2016
  3.95-18.6l8.03,6.08C16.93,25.47,16.1,28.11,16.01,30.91z`
2058
2017
  }
2059
- ), /* @__PURE__ */ T.default.createElement(
2018
+ ), /* @__PURE__ */ L.default.createElement(
2060
2019
  "linearGradient",
2061
2020
  {
2062
2021
  id: "95yY7w43Oj6n2vH63j6HJd",
@@ -2067,17 +2026,17 @@ function _o({ size: t }) {
2067
2026
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2068
2027
  gradientUnits: "userSpaceOnUse"
2069
2028
  },
2070
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
2071
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
2072
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
2073
- ), /* @__PURE__ */ T.default.createElement(
2029
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
2030
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
2031
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
2032
+ ), /* @__PURE__ */ L.default.createElement(
2074
2033
  "path",
2075
2034
  {
2076
2035
  fill: "url(#95yY7w43Oj6n2vH63j6HJd)",
2077
2036
  d: `M50.45,51.28c-4.55,4.07-10.61,6.57-17.36,6.71C22.91,58.2,13.66,52.53,9.07,43.92l8.21-6.05 C19.78,43.81,
2078
2037
  25.67,48,32.5,48c3.94,0,7.52-1.28,10.33-3.44L50.45,51.28z`
2079
2038
  }
2080
- ), /* @__PURE__ */ T.default.createElement(
2039
+ ), /* @__PURE__ */ L.default.createElement(
2081
2040
  "linearGradient",
2082
2041
  {
2083
2042
  id: "95yY7w43Oj6n2vH63j6HJe",
@@ -2088,12 +2047,12 @@ function _o({ size: t }) {
2088
2047
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2089
2048
  gradientUnits: "userSpaceOnUse"
2090
2049
  },
2091
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
2092
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
2093
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
2094
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
2095
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
2096
- ), /* @__PURE__ */ T.default.createElement(
2050
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
2051
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
2052
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
2053
+ /* @__PURE__ */ L.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
2054
+ /* @__PURE__ */ L.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
2055
+ ), /* @__PURE__ */ L.default.createElement(
2097
2056
  "path",
2098
2057
  {
2099
2058
  fill: "url(#95yY7w43Oj6n2vH63j6HJe)",
@@ -2102,22 +2061,22 @@ function _o({ size: t }) {
2102
2061
  }
2103
2062
  ));
2104
2063
  }
2105
- var _t = A(m), Co = {
2064
+ var _t = T(h), _o = {
2106
2065
  activeStyle: { background: "#555555" },
2107
- icon: jo,
2066
+ icon: Eo,
2108
2067
  style: { background: "#333333" },
2109
2068
  text: "Log in with GitHub"
2110
- }, Eo = O(Co);
2111
- function jo({ size: t, color: e }) {
2069
+ }, Co = O(_o);
2070
+ function Eo({ size: t, color: e }) {
2112
2071
  return /* @__PURE__ */ _t.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ _t.default.createElement("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }));
2113
2072
  }
2114
- var Ct = A(m), Lo = {
2073
+ var Ct = T(h), jo = {
2115
2074
  activeStyle: { background: "#282e36" },
2116
- icon: Ao,
2075
+ icon: To,
2117
2076
  style: { background: "#0f1419" },
2118
2077
  text: "Log in with Twitter"
2119
- }, To = O(Lo);
2120
- function Ao({ size: t, color: e }) {
2078
+ }, Lo = O(jo);
2079
+ function To({ size: t, color: e }) {
2121
2080
  return /* @__PURE__ */ Ct.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ct.default.createElement(
2122
2081
  "path",
2123
2082
  {
@@ -2126,13 +2085,13 @@ function Ao({ size: t, color: e }) {
2126
2085
  }
2127
2086
  ));
2128
2087
  }
2129
- var Et = A(m), Mo = {
2088
+ var Et = T(h), Ao = {
2130
2089
  activeStyle: { background: "#ff9f23" },
2131
- icon: Oo,
2090
+ icon: zo,
2132
2091
  style: { background: "#f9ae32" },
2133
2092
  text: "Log in with Amazon"
2134
- }, zo = O(Mo);
2135
- function Oo({ size: t, color: e }) {
2093
+ }, Mo = O(Ao);
2094
+ function zo({ size: t, color: e }) {
2136
2095
  return /* @__PURE__ */ Et.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Et.default.createElement(
2137
2096
  "path",
2138
2097
  {
@@ -2142,7 +2101,7 @@ function Oo({ size: t, color: e }) {
2142
2101
  }
2143
2102
  ));
2144
2103
  }
2145
- var ve = A(m), Bo = {
2104
+ var ve = T(h), Oo = {
2146
2105
  activeStyle: {
2147
2106
  background: "linear-gradient(to right, rgb(214, 146, 60) 0%, rgb(160, 11, 143) 50%, rgb(56, 10, 115) 100%)"
2148
2107
  },
@@ -2151,17 +2110,17 @@ var ve = A(m), Bo = {
2151
2110
  background: "linear-gradient(to right, rgb(236, 146, 35) 0%, rgb(177, 42, 160) 50%, rgb(105, 14, 224) 100%)"
2152
2111
  },
2153
2112
  text: "Log in with Instagram"
2154
- }, Ro = O(Bo);
2113
+ }, Bo = O(Oo);
2155
2114
  function Po({ size: t, color: e }) {
2156
2115
  return /* @__PURE__ */ ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 169.063 169.063" }, /* @__PURE__ */ ve.default.createElement("g", { fill: e }, /* @__PURE__ */ ve.default.createElement("path", { d: "M122.406,0H46.654C20.929,0,0,20.93,0,46.655v75.752c0,25.726,20.929,46.655,46.654,46.655h75.752 c25.727,0,46.656-20.93,46.656-46.655V46.655C169.063,20.93,148.133,0,122.406,0z M154.063,122.407 c0,17.455-14.201,31.655-31.656,31.655H46.654C29.2,154.063,15,139.862,15,122.407V46.655C15,29.201,29.2,15,46.654,15h75.752 c17.455,0,31.656,14.201,31.656,31.655V122.407z" }), /* @__PURE__ */ ve.default.createElement("path", { d: "M84.531,40.97c-24.021,0-43.563,19.542-43.563,43.563c0,24.02,19.542,43.561,43.563,43.561s43.563-19.541,43.563-43.561 C128.094,60.512,108.552,40.97,84.531,40.97z M84.531,113.093c-15.749,0-28.563-12.812-28.563-28.561 c0-15.75,12.813-28.563,28.563-28.563s28.563,12.813,28.563,28.563C113.094,100.281,100.28,113.093,84.531,113.093z" }), /* @__PURE__ */ ve.default.createElement("path", { d: "M129.921,28.251c-2.89,0-5.729,1.17-7.77,3.22c-2.051,2.04-3.23,4.88-3.23,7.78c0,2.891,1.18,5.73,3.23,7.78 c2.04,2.04,4.88,3.22,7.77,3.22c2.9,0,5.73-1.18,7.78-3.22c2.05-2.05,3.22-4.89,3.22-7.78c0-2.9-1.17-5.74-3.22-7.78 C135.661,29.421,132.821,28.251,129.921,28.251z" })));
2157
2116
  }
2158
- var qe = A(m), Io = {
2117
+ var qe = T(h), Ro = {
2159
2118
  activeStyle: { background: "rgb(7, 112, 169)" },
2160
- icon: No,
2119
+ icon: Fo,
2161
2120
  style: { background: "rgb(26, 129, 185)" },
2162
2121
  text: "Log in with LinkedIn"
2163
- }, Fo = O(Io);
2164
- function No({ size: t, color: e }) {
2122
+ }, Io = O(Ro);
2123
+ function Fo({ size: t, color: e }) {
2165
2124
  return /* @__PURE__ */ qe.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 430.117 430.117" }, /* @__PURE__ */ qe.default.createElement("g", null, /* @__PURE__ */ qe.default.createElement(
2166
2125
  "path",
2167
2126
  {
@@ -2170,22 +2129,22 @@ function No({ size: t, color: e }) {
2170
2129
  }
2171
2130
  )));
2172
2131
  }
2173
- var xe = A(m), Do = {
2132
+ var xe = T(h), No = {
2174
2133
  activeStyle: { background: "#555555" },
2175
- icon: Wo,
2134
+ icon: Uo,
2176
2135
  style: { background: "#333333" },
2177
2136
  text: "Log in with Microsoft"
2178
- }, Uo = O(Do);
2179
- function Wo({ size: t, color: e }) {
2137
+ }, Do = O(No);
2138
+ function Uo({ size: t, color: e }) {
2180
2139
  return /* @__PURE__ */ xe.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, x: "0px", y: "0px", viewBox: "0 0 48 48" }, /* @__PURE__ */ xe.default.createElement("path", { fill: "#ff5722", d: "M6 6H22V22H6z", transform: "rotate(-180 14 14)" }), /* @__PURE__ */ xe.default.createElement("path", { fill: "#4caf50", d: "M26 6H42V22H26z", transform: "rotate(-180 34 14)" }), /* @__PURE__ */ xe.default.createElement("path", { fill: "#ffc107", d: "M26 26H42V42H26z", transform: "rotate(-180 34 34)" }), /* @__PURE__ */ xe.default.createElement("path", { fill: "#03a9f4", d: "M6 26H22V42H6z", transform: "rotate(-180 14 34)" }));
2181
2140
  }
2182
- var jt = A(m), Ho = {
2141
+ var jt = T(h), Wo = {
2183
2142
  activeStyle: { background: "#1171BB" },
2184
- icon: Go,
2143
+ icon: Vo,
2185
2144
  style: { background: "#168EEA" },
2186
2145
  text: "Log in with Buffer"
2187
- }, Vo = O(Ho);
2188
- function Go({ size: t, color: e }) {
2146
+ }, Ho = O(Wo);
2147
+ function Vo({ size: t, color: e }) {
2189
2148
  return /* @__PURE__ */ jt.default.createElement(
2190
2149
  "svg",
2191
2150
  {
@@ -2205,17 +2164,17 @@ function Go({ size: t, color: e }) {
2205
2164
  )
2206
2165
  );
2207
2166
  }
2208
- var X = A(m), qo = {
2167
+ var X = T(h), Go = {
2209
2168
  activeStyle: {
2210
2169
  background: "#0088cc"
2211
2170
  },
2212
- icon: Ko,
2171
+ icon: Yo,
2213
2172
  style: {
2214
2173
  background: "#54a9eb"
2215
2174
  },
2216
2175
  text: "Log in with Telegram"
2217
- }, Yo = O(qo);
2218
- function Ko({ size: t }) {
2176
+ }, qo = O(Go);
2177
+ function Yo({ size: t }) {
2219
2178
  return /* @__PURE__ */ X.default.createElement(
2220
2179
  "svg",
2221
2180
  {
@@ -2238,13 +2197,13 @@ function Ko({ size: t }) {
2238
2197
  )
2239
2198
  );
2240
2199
  }
2241
- var Ye = A(m), Jo = {
2200
+ var Ye = T(h), Ko = {
2242
2201
  activeStyle: { background: "#EFF0EE" },
2243
- icon: Zo,
2202
+ icon: Qo,
2244
2203
  style: { background: "#FFFFFF", color: "#000000" },
2245
2204
  text: "Log in with Apple"
2246
- }, Qo = O(Jo);
2247
- function Zo({ size: t }) {
2205
+ }, Jo = O(Ko);
2206
+ function Qo({ size: t }) {
2248
2207
  return /* @__PURE__ */ Ye.default.createElement(
2249
2208
  "svg",
2250
2209
  {
@@ -2265,22 +2224,22 @@ function Zo({ size: t }) {
2265
2224
  ))
2266
2225
  );
2267
2226
  }
2268
- var Ke = A(m), Xo = {
2227
+ var Ke = T(h), Zo = {
2269
2228
  activeStyle: { background: "#697ec4" },
2270
- icon: ta,
2229
+ icon: ea,
2271
2230
  style: { background: "#7289DA" },
2272
2231
  text: "Log in with Discord"
2273
- }, ea = O(Xo);
2274
- function ta({ size: t, color: e }) {
2232
+ }, Xo = O(Zo);
2233
+ function ea({ size: t, color: e }) {
2275
2234
  return /* @__PURE__ */ Ke.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t }, /* @__PURE__ */ Ke.default.createElement("title", null, "Discord icon"), /* @__PURE__ */ Ke.default.createElement("path", { d: "M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z" }));
2276
2235
  }
2277
- var ae = A(m), na = {
2236
+ var ae = T(h), ta = {
2278
2237
  activeStyle: { background: "#f5f5f5" },
2279
- icon: aa,
2238
+ icon: oa,
2280
2239
  style: { background: "white", color: "black" },
2281
2240
  text: "Log in with Okta"
2282
- }, oa = O(na);
2283
- function aa({ size: t }) {
2241
+ }, na = O(ta);
2242
+ function oa({ size: t }) {
2284
2243
  return /* @__PURE__ */ ae.default.createElement(
2285
2244
  "svg",
2286
2245
  {
@@ -2331,13 +2290,13 @@ function aa({ size: t }) {
2331
2290
  ))
2332
2291
  );
2333
2292
  }
2334
- var fe = A(m), ia = {
2293
+ var fe = T(h), aa = {
2335
2294
  activeStyle: { background: "#f5f5f5" },
2336
- icon: la,
2295
+ icon: ra,
2337
2296
  style: { background: "white", color: "black" },
2338
2297
  text: "Log in with Slack"
2339
- }, ra = O(ia);
2340
- function la({ size: t, color: e }) {
2298
+ }, ia = O(aa);
2299
+ function ra({ size: t, color: e }) {
2341
2300
  return /* @__PURE__ */ fe.default.createElement(
2342
2301
  "svg",
2343
2302
  {
@@ -2375,13 +2334,13 @@ function la({ size: t, color: e }) {
2375
2334
  ))
2376
2335
  );
2377
2336
  }
2378
- var Le = A(m), ca = {
2337
+ var Le = T(h), la = {
2379
2338
  activeStyle: { background: "#ac3ade" },
2380
- icon: ua,
2339
+ icon: sa,
2381
2340
  style: { background: "#720E9E" },
2382
2341
  text: "Log in with Yahoo"
2383
- }, sa = O(ca);
2384
- function ua({ size: t, color: e }) {
2342
+ }, ca = O(la);
2343
+ function sa({ size: t, color: e }) {
2385
2344
  return /* @__PURE__ */ Le.default.createElement(
2386
2345
  "svg",
2387
2346
  {
@@ -2418,13 +2377,13 @@ function ua({ size: t, color: e }) {
2418
2377
  ))
2419
2378
  );
2420
2379
  }
2421
- var Lt = A(m), da = {
2380
+ var Lt = T(h), ua = {
2422
2381
  activeStyle: { background: "#008FF3" },
2423
- icon: pa,
2382
+ icon: fa,
2424
2383
  style: { background: "#0573ff" },
2425
2384
  text: "Log in with Zalo"
2426
- }, fa = O(da);
2427
- function pa({ size: t, color: e }) {
2385
+ }, da = O(ua);
2386
+ function fa({ size: t, color: e }) {
2428
2387
  return /* @__PURE__ */ Lt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Lt.default.createElement(
2429
2388
  "path",
2430
2389
  {
@@ -2433,22 +2392,22 @@ function pa({ size: t, color: e }) {
2433
2392
  }
2434
2393
  ));
2435
2394
  }
2436
- var Tt = A(m), ga = {
2395
+ var Tt = T(h), pa = {
2437
2396
  activeStyle: { background: "#333333" },
2438
- icon: ma,
2397
+ icon: ha,
2439
2398
  style: { background: "#000000", color: "#FFFFFF" },
2440
2399
  text: "Log in with TikTok"
2441
- }, ha = O(ga);
2442
- function ma({ size: t, color: e }) {
2400
+ }, ga = O(pa);
2401
+ function ha({ size: t, color: e }) {
2443
2402
  return /* @__PURE__ */ Tt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, viewBox: "0 0 512 512" }, /* @__PURE__ */ Tt.default.createElement("path", { d: "M412.19 118.66a109.27 109.27 0 01-9.45-5.5 132.87 132.87 0 01-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14 23.9 350 16 350.13 16h-82.44v318.78c0 4.28 0 8.51-.18 12.69 0 .52-.05 1-.08 1.56 0 .23 0 .47-.05.71v.18a70 70 0 01-35.22 55.56 68.8 68.8 0 01-34.11 9c-38.41 0-69.54-31.32-69.54-70s31.13-70 69.54-70a68.9 68.9 0 0121.41 3.39l.1-83.94a153.14 153.14 0 00-118 34.52 161.79 161.79 0 00-35.3 43.53c-3.48 6-16.61 30.11-18.2 69.24-1 22.21 5.67 45.22 8.85 54.73v.2c2 5.6 9.75 24.71 22.38 40.82A167.53 167.53 0 00115 470.66v-.2l.2.2c39.91 27.12 84.16 25.34 84.16 25.34 7.66-.31 33.32 0 62.46-13.81 32.32-15.31 50.72-38.12 50.72-38.12a158.46 158.46 0 0027.64-45.93c7.46-19.61 9.95-43.13 9.95-52.53V176.49c1 .6 14.32 9.41 14.32 9.41s19.19 12.3 49.13 20.31c21.48 5.7 50.42 6.9 50.42 6.9v-81.84c-10.14 1.1-30.73-2.1-51.81-12.61z" }));
2444
2403
  }
2445
- var W = A(m), ya = {
2404
+ var W = T(h), ma = {
2446
2405
  activeStyle: { background: "#eeeeee" },
2447
- icon: ba,
2406
+ icon: wa,
2448
2407
  style: { background: "#ffffff", color: "#333333" },
2449
2408
  text: "Log in with Metamask"
2450
- }, wa = O(ya);
2451
- function ba({ size: t }) {
2409
+ }, ya = O(ma);
2410
+ function wa({ size: t }) {
2452
2411
  return /* @__PURE__ */ W.default.createElement(
2453
2412
  "svg",
2454
2413
  {
@@ -2473,13 +2432,13 @@ function ba({ size: t }) {
2473
2432
  ),
2474
2433
  /* @__PURE__ */ W.default.createElement(
2475
2434
  "path",
2476
- P({
2435
+ R({
2477
2436
  d: "M44.4 35.5l98.7 74.6-17.5-44.3zm193.9 171.3l-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z"
2478
2437
  }, At)
2479
2438
  ),
2480
2439
  /* @__PURE__ */ W.default.createElement(
2481
2440
  "path",
2482
- P({
2441
+ R({
2483
2442
  d: "M103.6 138.2l-15.8 23.9 56.3 2.5-2-60.5zm111.3 0l-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5l33.9 16.5-4.7-39.3z"
2484
2443
  }, At)
2485
2444
  ),
@@ -2525,7 +2484,7 @@ function ba({ size: t }) {
2525
2484
  ),
2526
2485
  /* @__PURE__ */ W.default.createElement(
2527
2486
  "path",
2528
- P({
2487
+ R({
2529
2488
  d: "M179.8 193.5l-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3l.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z"
2530
2489
  }, Mt)
2531
2490
  ),
@@ -2561,7 +2520,7 @@ function ba({ size: t }) {
2561
2520
  ),
2562
2521
  /* @__PURE__ */ W.default.createElement(
2563
2522
  "path",
2564
- P({
2523
+ R({
2565
2524
  d: "M267.2 153.5l-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3l-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4l3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z"
2566
2525
  }, Mt)
2567
2526
  )
@@ -2577,22 +2536,22 @@ var At = {
2577
2536
  stroke: "#f6851b",
2578
2537
  strokeLinecap: "round",
2579
2538
  strokeLinejoin: "round"
2580
- }, zt = A(m), va = {
2581
- icon: $a,
2539
+ }, zt = T(h), ba = {
2540
+ icon: xa,
2582
2541
  style: { background: "#fc6d26" },
2583
2542
  activeStyle: { background: "#d55a1c" },
2584
2543
  text: "Log in with Gitlab"
2585
- }, xa = O(va);
2586
- function $a({ size: t, color: e }) {
2544
+ }, va = O(ba);
2545
+ function xa({ size: t, color: e }) {
2587
2546
  return /* @__PURE__ */ zt.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ zt.default.createElement("path", { d: "M21.94 13.11L20.89 9.89C20.89 9.86 20.88 9.83 20.87 9.8L18.76 3.32C18.65 3 18.33 2.75 17.96 2.75C17.6 2.75 17.28 3 17.17 3.33L15.17 9.5H8.84L6.83 3.33C6.72 3 6.4 2.75 6.04 2.75H6.04C5.67 2.75 5.35 3 5.24 3.33L3.13 9.82C3.13 9.82 3.13 9.83 3.13 9.83L2.06 13.11C1.9 13.61 2.07 14.15 2.5 14.45L11.72 21.16C11.89 21.28 12.11 21.28 12.28 21.15L21.5 14.45C21.93 14.15 22.1 13.61 21.94 13.11M8.15 10.45L10.72 18.36L4.55 10.45M13.28 18.37L15.75 10.78L15.85 10.45H19.46L13.87 17.61M17.97 3.94L19.78 9.5H16.16M14.86 10.45L13.07 15.96L12 19.24L9.14 10.45M6.03 3.94L7.84 9.5H4.23M3.05 13.69C2.96 13.62 2.92 13.5 2.96 13.4L3.75 10.97L9.57 18.42M20.95 13.69L14.44 18.42L14.46 18.39L20.25 10.97L21.04 13.4C21.08 13.5 21.04 13.62 20.95 13.69" }));
2588
2547
  }
2589
- var Ot = A(m), ka = {
2548
+ var Ot = T(h), $a = {
2590
2549
  activeStyle: { background: "#282e36" },
2591
- icon: _a,
2550
+ icon: Sa,
2592
2551
  style: { background: "#0f1419" },
2593
2552
  text: "Log in with X"
2594
- }, Sa = O(ka);
2595
- function _a({ size: t, color: e }) {
2553
+ }, ka = O($a);
2554
+ function Sa({ size: t, color: e }) {
2596
2555
  return /* @__PURE__ */ Ot.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ot.default.createElement(
2597
2556
  "path",
2598
2557
  {
@@ -2601,27 +2560,27 @@ function _a({ size: t, color: e }) {
2601
2560
  }
2602
2561
  ));
2603
2562
  }
2604
- function Ca({ width: t = 24, height: e = 24, color: o }) {
2605
- return /* @__PURE__ */ i.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
2606
- /* @__PURE__ */ i.jsx("path", { fill: "#faab07", d: "M60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0" }),
2607
- /* @__PURE__ */ i.jsx("path", { d: "M60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01C105.624 27.768 92.58.001 60.5 0 28.42.001 15.375 27.769 15.375 55.401c0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021" }),
2608
- /* @__PURE__ */ i.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
2609
- /* @__PURE__ */ i.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
2610
- /* @__PURE__ */ i.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
2611
- /* @__PURE__ */ i.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
2612
- /* @__PURE__ */ i.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
2613
- /* @__PURE__ */ i.jsx("path", { fill: "#eb1923", d: "M105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275L8.987 76.57c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0" })
2563
+ function _a({ width: t = 24, height: e = 24, color: o }) {
2564
+ return /* @__PURE__ */ a.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
2565
+ /* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0" }),
2566
+ /* @__PURE__ */ a.jsx("path", { d: "M60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01C105.624 27.768 92.58.001 60.5 0 28.42.001 15.375 27.769 15.375 55.401c0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021" }),
2567
+ /* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
2568
+ /* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
2569
+ /* @__PURE__ */ a.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
2570
+ /* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
2571
+ /* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
2572
+ /* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275L8.987 76.57c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0" })
2614
2573
  ] });
2615
2574
  }
2616
- const Ea = {
2575
+ const Ca = {
2617
2576
  text: "Sign in with QQ",
2618
- icon: Ca,
2577
+ icon: _a,
2619
2578
  iconFormat: (t) => `fa fa-${t}`,
2620
2579
  style: { background: "rgb(94,188,249)" },
2621
2580
  activeStyle: { background: "rgb(76,143,208)" }
2622
- }, ja = j.createButton(Ea);
2623
- function La({ width: t = 24, height: e = 24, color: o }) {
2624
- return /* @__PURE__ */ i.jsx(
2581
+ }, Ea = j.createButton(Ca);
2582
+ function ja({ width: t = 24, height: e = 24, color: o }) {
2583
+ return /* @__PURE__ */ a.jsx(
2625
2584
  "img",
2626
2585
  {
2627
2586
  src: `${d}/buttons/facebook.svg`,
@@ -2629,35 +2588,35 @@ function La({ width: t = 24, height: e = 24, color: o }) {
2629
2588
  }
2630
2589
  );
2631
2590
  }
2632
- const Ta = {
2591
+ const La = {
2633
2592
  text: "Sign in with Facebook",
2634
- icon: La,
2593
+ icon: ja,
2635
2594
  iconFormat: (t) => `fa fa-${t}`,
2636
2595
  style: { background: "#3b5998" },
2637
2596
  activeStyle: { background: "#2b3f65" }
2638
- }, Aa = j.createButton(Ta);
2639
- function Ma({ width: t = 24, height: e = 24, color: o }) {
2640
- return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2597
+ }, Ta = j.createButton(La);
2598
+ function Aa({ width: t = 24, height: e = 24, color: o }) {
2599
+ return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2641
2600
  }
2642
- const za = {
2601
+ const Ma = {
2643
2602
  text: "Sign in with Weibo",
2644
- icon: Ma,
2603
+ icon: Aa,
2645
2604
  iconFormat: (t) => `fa fa-${t}`,
2646
2605
  style: { background: "#e62329" },
2647
2606
  activeStyle: { background: "#e54329" }
2648
- }, Oa = j.createButton(za);
2649
- function Ba({ width: t = 24, height: e = 24, color: o }) {
2650
- return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2607
+ }, za = j.createButton(Ma);
2608
+ function Oa({ width: t = 24, height: e = 24, color: o }) {
2609
+ return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2651
2610
  }
2652
- const Ra = {
2611
+ const Ba = {
2653
2612
  text: "Sign in with Gitee",
2654
- icon: Ba,
2613
+ icon: Oa,
2655
2614
  iconFormat: (t) => `fa fa-${t}`,
2656
2615
  style: { background: "rgb(199,29,35)" },
2657
2616
  activeStyle: { background: "rgb(147,22,26)" }
2658
- }, Pa = j.createButton(Ra);
2659
- function Ia({ width: t = 24, height: e = 24, color: o }) {
2660
- return /* @__PURE__ */ i.jsx(
2617
+ }, Pa = j.createButton(Ba);
2618
+ function Ra({ width: t = 24, height: e = 24, color: o }) {
2619
+ return /* @__PURE__ */ a.jsx(
2661
2620
  "img",
2662
2621
  {
2663
2622
  src: `${d}/buttons/wechat.svg`,
@@ -2665,15 +2624,15 @@ function Ia({ width: t = 24, height: e = 24, color: o }) {
2665
2624
  }
2666
2625
  );
2667
2626
  }
2668
- const Fa = {
2627
+ const Ia = {
2669
2628
  text: "Sign in with Wechat",
2670
- icon: Ia,
2629
+ icon: Ra,
2671
2630
  iconFormat: (t) => `fa fa-${t}`,
2672
2631
  style: { background: "rgb(0,194,80)" },
2673
2632
  activeStyle: { background: "rgb(0,158,64)" }
2674
- }, Na = j.createButton(Fa);
2675
- function Da({ width: t = 24, height: e = 24, color: o }) {
2676
- return /* @__PURE__ */ i.jsx(
2633
+ }, Fa = j.createButton(Ia);
2634
+ function Na({ width: t = 24, height: e = 24, color: o }) {
2635
+ return /* @__PURE__ */ a.jsx(
2677
2636
  "img",
2678
2637
  {
2679
2638
  src: `${d}/buttons/dingtalk.svg`,
@@ -2681,15 +2640,15 @@ function Da({ width: t = 24, height: e = 24, color: o }) {
2681
2640
  }
2682
2641
  );
2683
2642
  }
2684
- const Ua = {
2643
+ const Da = {
2685
2644
  text: "Sign in with DingTalk",
2686
- icon: Da,
2645
+ icon: Na,
2687
2646
  iconFormat: (t) => `fa fa-${t}`,
2688
2647
  style: { background: "#0191e0" },
2689
2648
  activeStyle: { background: "rgb(76,143,208)" }
2690
- }, Wa = j.createButton(Ua);
2691
- function Ha({ width: t = 24, height: e = 24, color: o }) {
2692
- return /* @__PURE__ */ i.jsx(
2649
+ }, Ua = j.createButton(Da);
2650
+ function Wa({ width: t = 24, height: e = 24, color: o }) {
2651
+ return /* @__PURE__ */ a.jsx(
2693
2652
  "img",
2694
2653
  {
2695
2654
  src: `${d}/buttons/linkedin.svg`,
@@ -2697,25 +2656,25 @@ function Ha({ width: t = 24, height: e = 24, color: o }) {
2697
2656
  }
2698
2657
  );
2699
2658
  }
2700
- const Va = {
2659
+ const Ha = {
2701
2660
  text: "Sign in with LinkedIn",
2702
- icon: Ha,
2661
+ icon: Wa,
2703
2662
  iconFormat: (t) => `fa fa-${t}`,
2704
2663
  style: { background: "rgb(255,255,255)", color: "#000000" },
2705
2664
  activeStyle: { background: "rgb(240,240,250)" }
2706
- }, Ga = j.createButton(Va);
2707
- function qa({ width: t = 24, height: e = 24, color: o }) {
2708
- return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2665
+ }, Va = j.createButton(Ha);
2666
+ function Ga({ width: t = 24, height: e = 24, color: o }) {
2667
+ return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2709
2668
  }
2710
- const Ya = {
2669
+ const qa = {
2711
2670
  text: "Sign in with WeCom",
2712
- icon: qa,
2671
+ icon: Ga,
2713
2672
  iconFormat: (t) => `fa fa-${t}`,
2714
2673
  style: { background: "rgb(255,255,255)", color: "#000000" },
2715
2674
  activeStyle: { background: "rgb(100,150,250)" }
2716
- }, Ka = j.createButton(Ya);
2717
- function Ja({ width: t = 24, height: e = 24, color: o }) {
2718
- return /* @__PURE__ */ i.jsx(
2675
+ }, Ya = j.createButton(qa);
2676
+ function Ka({ width: t = 24, height: e = 24, color: o }) {
2677
+ return /* @__PURE__ */ a.jsx(
2719
2678
  "img",
2720
2679
  {
2721
2680
  src: `${d}/buttons/lark.svg`,
@@ -2724,15 +2683,15 @@ function Ja({ width: t = 24, height: e = 24, color: o }) {
2724
2683
  }
2725
2684
  );
2726
2685
  }
2727
- const Qa = {
2686
+ const Ja = {
2728
2687
  text: "Sign in with Lark",
2729
- icon: Ja,
2688
+ icon: Ka,
2730
2689
  iconFormat: (t) => `fa fa-${t}`,
2731
2690
  style: { background: "#ffffff", color: "#000000" },
2732
2691
  activeStyle: { background: "#ededee" }
2733
- }, Za = j.createButton(Qa);
2734
- function Xa({ width: t = 24, height: e = 24, color: o }) {
2735
- return /* @__PURE__ */ i.jsx(
2692
+ }, Qa = j.createButton(Ja);
2693
+ function Za({ width: t = 24, height: e = 24, color: o }) {
2694
+ return /* @__PURE__ */ a.jsx(
2736
2695
  "img",
2737
2696
  {
2738
2697
  src: `${d}/buttons/gitlab.svg`,
@@ -2741,15 +2700,15 @@ function Xa({ width: t = 24, height: e = 24, color: o }) {
2741
2700
  }
2742
2701
  );
2743
2702
  }
2744
- const ei = {
2703
+ const Xa = {
2745
2704
  text: "Sign in with GitLab",
2746
- icon: Xa,
2705
+ icon: Za,
2747
2706
  iconFormat: (t) => `fa fa-${t}`,
2748
2707
  style: { background: "rgb(255,255,255)", color: "#000000" },
2749
2708
  activeStyle: { background: "rgb(100,150,250)" }
2750
- }, ti = j.createButton(ei);
2751
- function ni({ width: t = 24, height: e = 24, color: o }) {
2752
- return /* @__PURE__ */ i.jsx(
2709
+ }, ei = j.createButton(Xa);
2710
+ function ti({ width: t = 24, height: e = 24, color: o }) {
2711
+ return /* @__PURE__ */ a.jsx(
2753
2712
  "img",
2754
2713
  {
2755
2714
  src: `${d}/buttons/adfs.svg`,
@@ -2758,15 +2717,15 @@ function ni({ width: t = 24, height: e = 24, color: o }) {
2758
2717
  }
2759
2718
  );
2760
2719
  }
2761
- const oi = {
2720
+ const ni = {
2762
2721
  text: "Sign in with ADFS",
2763
- icon: ni,
2722
+ icon: ti,
2764
2723
  iconFormat: (t) => `fa fa-${t}`,
2765
2724
  style: { background: "#ffffff", color: "#000000" },
2766
2725
  activeStyle: { background: "#ededee" }
2767
- }, ai = j.createButton(oi);
2768
- function ii({ width: t = 24, height: e = 24, color: o }) {
2769
- return /* @__PURE__ */ i.jsx(
2726
+ }, oi = j.createButton(ni);
2727
+ function ai({ width: t = 24, height: e = 24, color: o }) {
2728
+ return /* @__PURE__ */ a.jsx(
2770
2729
  "img",
2771
2730
  {
2772
2731
  src: `${d}/buttons/casdoor.svg`,
@@ -2775,15 +2734,15 @@ function ii({ width: t = 24, height: e = 24, color: o }) {
2775
2734
  }
2776
2735
  );
2777
2736
  }
2778
- const ri = {
2737
+ const ii = {
2779
2738
  text: "Sign in with Casdoor",
2780
- icon: ii,
2739
+ icon: ai,
2781
2740
  iconFormat: (t) => `fa fa-${t}`,
2782
2741
  style: { background: "#ffffff", color: "#000000" },
2783
2742
  activeStyle: { background: "#ededee" }
2784
- }, li = j.createButton(ri);
2785
- function ci({ width: t = 24, height: e = 24, color: o }) {
2786
- return /* @__PURE__ */ i.jsx(
2743
+ }, ri = j.createButton(ii);
2744
+ function li({ width: t = 24, height: e = 24, color: o }) {
2745
+ return /* @__PURE__ */ a.jsx(
2787
2746
  "img",
2788
2747
  {
2789
2748
  src: `${d}/buttons/baidu.svg`,
@@ -2792,15 +2751,15 @@ function ci({ width: t = 24, height: e = 24, color: o }) {
2792
2751
  }
2793
2752
  );
2794
2753
  }
2795
- const si = {
2754
+ const ci = {
2796
2755
  text: "Sign in with Baidu",
2797
- icon: ci,
2756
+ icon: li,
2798
2757
  iconFormat: (t) => `fa fa-${t}`,
2799
2758
  style: { background: "#ffffff", color: "#000000" },
2800
2759
  activeStyle: { background: "#ededee" }
2801
- }, ui = j.createButton(si);
2802
- function di({ width: t = 24, height: e = 24, color: o }) {
2803
- return /* @__PURE__ */ i.jsx(
2760
+ }, si = j.createButton(ci);
2761
+ function ui({ width: t = 24, height: e = 24, color: o }) {
2762
+ return /* @__PURE__ */ a.jsx(
2804
2763
  "img",
2805
2764
  {
2806
2765
  src: `${d}/buttons/alipay.svg`,
@@ -2809,15 +2768,15 @@ function di({ width: t = 24, height: e = 24, color: o }) {
2809
2768
  }
2810
2769
  );
2811
2770
  }
2812
- const fi = {
2771
+ const di = {
2813
2772
  text: "Sign in with Alipay",
2814
- icon: di,
2773
+ icon: ui,
2815
2774
  iconFormat: (t) => `fa fa-${t}`,
2816
2775
  style: { background: "#ffffff", color: "#000000" },
2817
2776
  activeStyle: { background: "#ededee" }
2818
- }, pi = j.createButton(fi);
2819
- function gi({ width: t = 24, height: e = 24, color: o }) {
2820
- return /* @__PURE__ */ i.jsx(
2777
+ }, fi = j.createButton(di);
2778
+ function pi({ width: t = 24, height: e = 24, color: o }) {
2779
+ return /* @__PURE__ */ a.jsx(
2821
2780
  "img",
2822
2781
  {
2823
2782
  src: `${d}/buttons/infoflow.svg`,
@@ -2826,15 +2785,15 @@ function gi({ width: t = 24, height: e = 24, color: o }) {
2826
2785
  }
2827
2786
  );
2828
2787
  }
2829
- const hi = {
2788
+ const gi = {
2830
2789
  text: "Sign in with Infoflow",
2831
- icon: gi,
2790
+ icon: pi,
2832
2791
  iconFormat: (t) => `fa fa-${t}`,
2833
2792
  style: { background: "#ffffff", color: "#000000" },
2834
2793
  activeStyle: { background: "#ededee" }
2835
- }, mi = j.createButton(hi);
2836
- function yi({ width: t = 24, height: e = 24, color: o }) {
2837
- return /* @__PURE__ */ i.jsx(
2794
+ }, hi = j.createButton(gi);
2795
+ function mi({ width: t = 24, height: e = 24, color: o }) {
2796
+ return /* @__PURE__ */ a.jsx(
2838
2797
  "img",
2839
2798
  {
2840
2799
  src: `${d}/buttons/apple.svg`,
@@ -2843,15 +2802,15 @@ function yi({ width: t = 24, height: e = 24, color: o }) {
2843
2802
  }
2844
2803
  );
2845
2804
  }
2846
- const wi = {
2805
+ const yi = {
2847
2806
  text: "Sign in with Apple",
2848
- icon: yi,
2807
+ icon: mi,
2849
2808
  iconFormat: (t) => `fa fa-${t}`,
2850
2809
  style: { background: "#ffffff", color: "#000000" },
2851
2810
  activeStyle: { background: "#ededee" }
2852
- }, bi = j.createButton(wi);
2853
- function vi({ width: t = 24, height: e = 24, color: o }) {
2854
- return /* @__PURE__ */ i.jsx(
2811
+ }, wi = j.createButton(yi);
2812
+ function bi({ width: t = 24, height: e = 24, color: o }) {
2813
+ return /* @__PURE__ */ a.jsx(
2855
2814
  "img",
2856
2815
  {
2857
2816
  src: `${d}/buttons/azuread.svg`,
@@ -2860,15 +2819,15 @@ function vi({ width: t = 24, height: e = 24, color: o }) {
2860
2819
  }
2861
2820
  );
2862
2821
  }
2863
- const xi = {
2822
+ const vi = {
2864
2823
  text: "Sign in with Azure AD",
2865
- icon: vi,
2824
+ icon: bi,
2866
2825
  iconFormat: (t) => `fa fa-${t}`,
2867
2826
  style: { background: "#ffffff", color: "#000000" },
2868
2827
  activeStyle: { background: "#ededee" }
2869
- }, $i = j.createButton(xi);
2870
- function ki({ width: t = 24, height: e = 24, color: o }) {
2871
- return /* @__PURE__ */ i.jsx(
2828
+ }, xi = j.createButton(vi);
2829
+ function $i({ width: t = 24, height: e = 24, color: o }) {
2830
+ return /* @__PURE__ */ a.jsx(
2872
2831
  "img",
2873
2832
  {
2874
2833
  src: `${d}/buttons/azuread.svg`,
@@ -2877,15 +2836,15 @@ function ki({ width: t = 24, height: e = 24, color: o }) {
2877
2836
  }
2878
2837
  );
2879
2838
  }
2880
- const Si = {
2839
+ const ki = {
2881
2840
  text: "Sign in with Azure AD B2C",
2882
- icon: ki,
2841
+ icon: $i,
2883
2842
  iconFormat: (t) => `fa fa-${t}`,
2884
2843
  style: { background: "#ffffff", color: "#000000" },
2885
2844
  activeStyle: { background: "#ededee" }
2886
- }, _i = j.createButton(Si);
2887
- function Ci({ width: t = 24, height: e = 24, color: o }) {
2888
- return /* @__PURE__ */ i.jsx(
2845
+ }, Si = j.createButton(ki);
2846
+ function _i({ width: t = 24, height: e = 24, color: o }) {
2847
+ return /* @__PURE__ */ a.jsx(
2889
2848
  "img",
2890
2849
  {
2891
2850
  src: `${d}/buttons/slack.svg`,
@@ -2894,15 +2853,15 @@ function Ci({ width: t = 24, height: e = 24, color: o }) {
2894
2853
  }
2895
2854
  );
2896
2855
  }
2897
- const Ei = {
2856
+ const Ci = {
2898
2857
  text: "Sign in with Slack",
2899
- icon: Ci,
2858
+ icon: _i,
2900
2859
  iconFormat: (t) => `fa fa-${t}`,
2901
2860
  style: { background: "#ffffff", color: "#000000" },
2902
2861
  activeStyle: { background: "#ededee" }
2903
- }, ji = j.createButton(Ei);
2904
- function Li({ width: t = 24, height: e = 24, color: o }) {
2905
- return /* @__PURE__ */ i.jsx(
2862
+ }, Ei = j.createButton(Ci);
2863
+ function ji({ width: t = 24, height: e = 24, color: o }) {
2864
+ return /* @__PURE__ */ a.jsx(
2906
2865
  "img",
2907
2866
  {
2908
2867
  src: `${d}/buttons/steam.svg`,
@@ -2911,15 +2870,15 @@ function Li({ width: t = 24, height: e = 24, color: o }) {
2911
2870
  }
2912
2871
  );
2913
2872
  }
2914
- const Ti = {
2873
+ const Li = {
2915
2874
  text: "Sign in with Steam",
2916
- icon: Li,
2875
+ icon: ji,
2917
2876
  iconFormat: (t) => `fa fa-${t}`,
2918
2877
  style: { background: "#ffffff", color: "#000000" },
2919
2878
  activeStyle: { background: "#ededee" }
2920
- }, Ai = j.createButton(Ti);
2921
- function Mi({ width: t = 24, height: e = 24, color: o }) {
2922
- return /* @__PURE__ */ i.jsx(
2879
+ }, Ti = j.createButton(Li);
2880
+ function Ai({ width: t = 24, height: e = 24, color: o }) {
2881
+ return /* @__PURE__ */ a.jsx(
2923
2882
  "img",
2924
2883
  {
2925
2884
  src: `${d}/buttons/bilibili.svg`,
@@ -2927,15 +2886,15 @@ function Mi({ width: t = 24, height: e = 24, color: o }) {
2927
2886
  }
2928
2887
  );
2929
2888
  }
2930
- const zi = {
2889
+ const Mi = {
2931
2890
  text: "Sign in with Bilibili",
2932
- icon: Mi,
2891
+ icon: Ai,
2933
2892
  iconFormat: (t) => `fa fa-${t}`,
2934
2893
  style: { background: "#0191e0" },
2935
2894
  activeStyle: { background: "rgb(76,143,208)" }
2936
- }, Oi = j.createButton(zi);
2937
- function Bi({ width: t = 24, height: e = 24, color: o }) {
2938
- return /* @__PURE__ */ i.jsx(
2895
+ }, zi = j.createButton(Mi);
2896
+ function Oi({ width: t = 24, height: e = 24, color: o }) {
2897
+ return /* @__PURE__ */ a.jsx(
2939
2898
  "img",
2940
2899
  {
2941
2900
  src: `${d}/buttons/okta.svg`,
@@ -2944,15 +2903,15 @@ function Bi({ width: t = 24, height: e = 24, color: o }) {
2944
2903
  }
2945
2904
  );
2946
2905
  }
2947
- const Ri = {
2906
+ const Bi = {
2948
2907
  text: "Sign in with Okta",
2949
- icon: Bi,
2908
+ icon: Oi,
2950
2909
  iconFormat: (t) => `fa fa-${t}`,
2951
2910
  style: { background: "#ffffff", color: "#000000" },
2952
2911
  activeStyle: { background: "#ededee" }
2953
- }, Pi = j.createButton(Ri);
2954
- function Ii({ width: t = 24, height: e = 24, color: o }) {
2955
- return /* @__PURE__ */ i.jsx(
2912
+ }, Pi = j.createButton(Bi);
2913
+ function Ri({ width: t = 24, height: e = 24, color: o }) {
2914
+ return /* @__PURE__ */ a.jsx(
2956
2915
  "img",
2957
2916
  {
2958
2917
  src: `${d}/buttons/douyin.svg`,
@@ -2961,32 +2920,32 @@ function Ii({ width: t = 24, height: e = 24, color: o }) {
2961
2920
  }
2962
2921
  );
2963
2922
  }
2964
- const Fi = {
2923
+ const Ii = {
2965
2924
  text: "Sign in with Douyin",
2966
- icon: Ii,
2925
+ icon: Ri,
2967
2926
  iconFormat: (t) => `fa fa-${t}`,
2968
2927
  style: { background: "#ffffff", color: "#000000" },
2969
2928
  activeStyle: { background: "#ededee" }
2970
- }, Ni = j.createButton(Fi);
2971
- function Di({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: a = { background: "#ededee" } }) {
2972
- function l({ width: f = 24, height: h = 24, color: $ }) {
2973
- return /* @__PURE__ */ i.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: h } });
2929
+ }, Fi = j.createButton(Ii);
2930
+ function Ni({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: i = { background: "#ededee" } }) {
2931
+ function l({ width: f = 24, height: m = 24, color: k }) {
2932
+ return /* @__PURE__ */ a.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: m } });
2974
2933
  }
2975
2934
  const u = {
2976
2935
  text: `Sign in with ${t}`,
2977
2936
  icon: l,
2978
2937
  style: r,
2979
- activeStyle: a
2980
- }, g = j.createButton(u), c = Q.t("login:Sign in with {type}").replace("{type}", t);
2981
- return /* @__PURE__ */ i.jsx(g, { text: c, align: o });
2938
+ activeStyle: i
2939
+ }, g = j.createButton(u), s = Q.t("login:Sign in with {type}").replace("{type}", t);
2940
+ return /* @__PURE__ */ a.jsx(g, { text: s, align: o });
2982
2941
  }
2983
2942
  function Je(t) {
2984
2943
  const e = Q.t("login:Sign in with {type}").replace(
2985
2944
  "{type}",
2986
2945
  t.displayName !== "" ? t.displayName : t.type
2987
2946
  );
2988
- return t.type === "GitHub" ? /* @__PURE__ */ i.jsx(j.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ i.jsx(j.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ i.jsx(ja, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ i.jsx(Aa, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ i.jsx(Oa, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ i.jsx(Pa, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ i.jsx(Na, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ i.jsx(Wa, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ i.jsx(Ga, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ i.jsx(Ka, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ i.jsx(Za, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ i.jsx(ti, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ i.jsx(ai, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ i.jsx(li, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ i.jsx(ui, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ i.jsx(pi, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ i.jsx(mi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ i.jsx(bi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ i.jsx($i, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ i.jsx(_i, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ i.jsx(ji, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ i.jsx(Ai, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ i.jsx(Oi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ i.jsx(Pi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ i.jsx(Ni, { text: e, align: "center" }) : /* @__PURE__ */ i.jsx(
2989
- Di,
2947
+ return t.type === "GitHub" ? /* @__PURE__ */ a.jsx(j.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ a.jsx(j.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ a.jsx(Ea, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ a.jsx(Ta, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ a.jsx(za, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ a.jsx(Pa, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ a.jsx(Fa, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ a.jsx(Ua, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ a.jsx(Va, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ a.jsx(Ya, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ a.jsx(Qa, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ a.jsx(ei, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ a.jsx(oi, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ a.jsx(ri, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ a.jsx(si, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ a.jsx(fi, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ a.jsx(hi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ a.jsx(wi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ a.jsx(xi, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ a.jsx(Si, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ a.jsx(Ei, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ a.jsx(Ti, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ a.jsx(zi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ a.jsx(Pi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ a.jsx(Fi, { text: e, align: "center" }) : /* @__PURE__ */ a.jsx(
2948
+ Ni,
2990
2949
  {
2991
2950
  type: t.type,
2992
2951
  logoUrl: se(t)
@@ -2995,27 +2954,27 @@ function Je(t) {
2995
2954
  );
2996
2955
  }
2997
2956
  function Qe(t, e) {
2998
- const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", a = o.get("state"), l = o.get("redirect_uri"), u = `${window.location.origin}/callback/saml`, g = t.name, c = `${r}&${a}&${g}&${l}&${u}`;
2999
- Gn(
2957
+ const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", i = o.get("state"), l = o.get("redirect_uri"), u = `${window.location.origin}/callback/saml`, g = t.name, s = `${r}&${i}&${g}&${l}&${u}`;
2958
+ Vn(
3000
2959
  `${t.owner}/${g}`,
3001
- btoa(c)
2960
+ btoa(s)
3002
2961
  ).then((f) => {
3003
2962
  f.data2 === "POST" ? document.write(f.data) : window.location.href = f.data;
3004
2963
  });
3005
2964
  }
3006
2965
  function Bt(t, e, o) {
3007
- e.type === "MetaMask" ? import("./Web3Auth-ChSAJPxI.js").then((r) => r.bO).then((r) => {
3008
- const a = r.authViaMetaMask;
3009
- a(t, e, o);
3010
- }) : e.type === "Web3Onboard" && import("./Web3Auth-ChSAJPxI.js").then((r) => r.bO).then((r) => {
3011
- const a = r.authViaWeb3Onboard;
3012
- a(t, e, o);
2966
+ e.type === "MetaMask" ? import("./Web3Auth-CHWXCVPH.js").then((r) => r.bO).then((r) => {
2967
+ const i = r.authViaMetaMask;
2968
+ i(t, e, o);
2969
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-CHWXCVPH.js").then((r) => r.bO).then((r) => {
2970
+ const i = r.authViaWeb3Onboard;
2971
+ i(t, e, o);
3013
2972
  });
3014
2973
  }
3015
- function Ui(t, e, o, r, a, l) {
3016
- if (a === "small") {
2974
+ function Di(t, e, o, r, i, l) {
2975
+ if (i === "small") {
3017
2976
  if (t.category === "OAuth")
3018
- return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ i.jsx("a", { children: /* @__PURE__ */ i.jsx(
2977
+ return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ a.jsx("a", { children: /* @__PURE__ */ a.jsx(
3019
2978
  "img",
3020
2979
  {
3021
2980
  width: o,
@@ -3025,14 +2984,14 @@ function Ui(t, e, o, r, a, l) {
3025
2984
  className: "provider-img",
3026
2985
  style: { margin: r },
3027
2986
  onClick: () => {
3028
- Zn(e, t, "signup");
2987
+ Qn(e, t, "signup");
3029
2988
  }
3030
2989
  }
3031
- ) }, t.displayName) : /* @__PURE__ */ i.jsx(
2990
+ ) }, t.displayName) : /* @__PURE__ */ a.jsx(
3032
2991
  "a",
3033
2992
  {
3034
2993
  href: (void 0)(e, t, "signup"),
3035
- children: /* @__PURE__ */ i.jsx(
2994
+ children: /* @__PURE__ */ a.jsx(
3036
2995
  "img",
3037
2996
  {
3038
2997
  width: o,
@@ -3047,11 +3006,11 @@ function Ui(t, e, o, r, a, l) {
3047
3006
  t.displayName
3048
3007
  );
3049
3008
  if (t.category === "SAML")
3050
- return /* @__PURE__ */ i.jsx(
3009
+ return /* @__PURE__ */ a.jsx(
3051
3010
  "a",
3052
3011
  {
3053
3012
  onClick: () => Qe(t, l),
3054
- children: /* @__PURE__ */ i.jsx(
3013
+ children: /* @__PURE__ */ a.jsx(
3055
3014
  "img",
3056
3015
  {
3057
3016
  width: o,
@@ -3066,11 +3025,11 @@ function Ui(t, e, o, r, a, l) {
3066
3025
  t.displayName
3067
3026
  );
3068
3027
  if (t.category === "Web3")
3069
- return /* @__PURE__ */ i.jsx(
3028
+ return /* @__PURE__ */ a.jsx(
3070
3029
  "a",
3071
3030
  {
3072
3031
  onClick: () => Bt(e, t, "signup"),
3073
- children: /* @__PURE__ */ i.jsx(
3032
+ children: /* @__PURE__ */ a.jsx(
3074
3033
  "img",
3075
3034
  {
3076
3035
  width: o,
@@ -3085,7 +3044,7 @@ function Ui(t, e, o, r, a, l) {
3085
3044
  t.displayName
3086
3045
  );
3087
3046
  } else if (t.type === "Custom") {
3088
- const u = Q.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, c = {
3047
+ const u = Q.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, s = {
3089
3048
  display: "flex",
3090
3049
  alignItems: "center",
3091
3050
  width: "calc(100% - 10px)",
@@ -3097,19 +3056,19 @@ function Ui(t, e, o, r, a, l) {
3097
3056
  border: "0px",
3098
3057
  borderRadius: "3px",
3099
3058
  cursor: "pointer"
3100
- }, f = { justfyContent: "space-between" }, h = {
3059
+ }, f = { justfyContent: "space-between" }, m = {
3101
3060
  textAlign: "center",
3102
3061
  width: "100%",
3103
3062
  fontSize: "19px"
3104
3063
  };
3105
3064
  if (t.category === "OAuth")
3106
- return /* @__PURE__ */ i.jsx(
3065
+ return /* @__PURE__ */ a.jsx(
3107
3066
  "a",
3108
3067
  {
3109
3068
  href: (void 0)(e, t, "signup"),
3110
3069
  style: g,
3111
- children: /* @__PURE__ */ i.jsxs("div", { style: c, children: [
3112
- /* @__PURE__ */ i.jsx(
3070
+ children: /* @__PURE__ */ a.jsxs("div", { style: s, children: [
3071
+ /* @__PURE__ */ a.jsx(
3113
3072
  "img",
3114
3073
  {
3115
3074
  width: 26,
@@ -3119,19 +3078,19 @@ function Ui(t, e, o, r, a, l) {
3119
3078
  style: f
3120
3079
  }
3121
3080
  ),
3122
- /* @__PURE__ */ i.jsx("span", { style: h, children: u })
3081
+ /* @__PURE__ */ a.jsx("span", { style: m, children: u })
3123
3082
  ] })
3124
3083
  },
3125
3084
  t.displayName
3126
3085
  );
3127
3086
  if (t.category === "SAML")
3128
- return /* @__PURE__ */ i.jsx(
3087
+ return /* @__PURE__ */ a.jsx(
3129
3088
  "a",
3130
3089
  {
3131
3090
  onClick: () => Qe(t, l),
3132
3091
  style: g,
3133
- children: /* @__PURE__ */ i.jsxs("div", { style: c, children: [
3134
- /* @__PURE__ */ i.jsx(
3092
+ children: /* @__PURE__ */ a.jsxs("div", { style: s, children: [
3093
+ /* @__PURE__ */ a.jsx(
3135
3094
  "img",
3136
3095
  {
3137
3096
  width: 26,
@@ -3141,79 +3100,79 @@ function Ui(t, e, o, r, a, l) {
3141
3100
  style: f
3142
3101
  }
3143
3102
  ),
3144
- /* @__PURE__ */ i.jsx("span", { style: h, children: u })
3103
+ /* @__PURE__ */ a.jsx("span", { style: m, children: u })
3145
3104
  ] })
3146
3105
  },
3147
3106
  t.displayName
3148
3107
  );
3149
3108
  } else
3150
- return t.category === "SAML" ? /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { onClick: () => Qe(t, l), children: Je(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { onClick: () => Bt(e, t, "signup"), children: Je(t) }) }, t.displayName) : /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { href: (void 0)(e, t, "signup"), children: Je(t) }) }, t.displayName);
3109
+ return t.category === "SAML" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Qe(t, l), children: Je(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Bt(e, t, "signup"), children: Je(t) }) }, t.displayName) : /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { href: (void 0)(e, t, "signup"), children: Je(t) }) }, t.displayName);
3151
3110
  }
3152
- function Wi(t) {
3111
+ function Ui(t) {
3153
3112
  return t.length < 6 ? Q.t("user:The password must have at least 6 characters") : "";
3154
3113
  }
3155
- function Hi(t) {
3114
+ function Wi(t) {
3156
3115
  return t.length < 8 ? Q.t("user:The password must have at least 8 characters") : "";
3157
3116
  }
3158
- function Vi(t) {
3117
+ function Hi(t) {
3159
3118
  return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" : Q.t(
3160
3119
  "user:The password must contain at least one uppercase letter, one lowercase letter and one digit"
3161
3120
  );
3162
3121
  }
3163
- function Gi(t) {
3122
+ function Vi(t) {
3164
3123
  return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" : Q.t(
3165
3124
  "user:The password must contain at least one special character"
3166
3125
  );
3167
3126
  }
3168
- function qi(t) {
3127
+ function Gi(t) {
3169
3128
  return /(.)\1+/.test(t) ? Q.t(
3170
3129
  "user:The password must not contain any repeated characters"
3171
3130
  ) : "";
3172
3131
  }
3173
- function Yi(t, e) {
3132
+ function qi(t, e) {
3174
3133
  if (t.length === 0)
3175
3134
  return Q.t("login:Please input your password!");
3176
3135
  (!e || e.length === 0) && (e = ["AtLeast6"]);
3177
3136
  const o = {
3178
- AtLeast6: Wi,
3179
- AtLeast8: Hi,
3180
- Aa123: Vi,
3181
- SpecialChar: Gi,
3182
- NoRepeat: qi
3137
+ AtLeast6: Ui,
3138
+ AtLeast8: Wi,
3139
+ Aa123: Hi,
3140
+ SpecialChar: Vi,
3141
+ NoRepeat: Gi
3183
3142
  };
3184
3143
  for (const r of e) {
3185
- const a = o[r];
3186
- if (a) {
3187
- const l = a(t);
3144
+ const i = o[r];
3145
+ if (i) {
3146
+ const l = i(t);
3188
3147
  if (l !== "")
3189
3148
  return l;
3190
3149
  }
3191
3150
  }
3192
3151
  return "";
3193
3152
  }
3194
- function Ki({
3153
+ function Yi({
3195
3154
  application: t,
3196
3155
  state: e,
3197
3156
  setState: o
3198
3157
  }) {
3199
- const [r, a] = m.useState(!1), l = m.useRef(null);
3200
- m.useEffect(() => {
3158
+ const [r, i] = h.useState(!1), l = h.useRef(null);
3159
+ h.useEffect(() => {
3201
3160
  l.current || (l.current = document.getElementById(
3202
3161
  "agreementDialog"
3203
3162
  ));
3204
- }, []), m.useEffect(() => {
3163
+ }, []), h.useEffect(() => {
3205
3164
  l.current && (r ? l.current.showModal() : l.current.close());
3206
3165
  }, [r]);
3207
3166
  const u = () => {
3208
- o({ ...e, agreement: !1 }), a(!1);
3167
+ o({ ...e, agreement: !1 }), i(!1);
3209
3168
  }, g = () => {
3210
- o({ ...e, agreement: !0 }), a(!1);
3211
- }, c = () => {
3212
- a(!0);
3169
+ o({ ...e, agreement: !0 }), i(!1);
3170
+ }, s = () => {
3171
+ i(!0);
3213
3172
  };
3214
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3215
- /* @__PURE__ */ i.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ i.jsxs("div", { className: "modal-box", children: [
3216
- /* @__PURE__ */ i.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ i.jsx(
3173
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3174
+ /* @__PURE__ */ a.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
3175
+ /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ a.jsx(
3217
3176
  "iframe",
3218
3177
  {
3219
3178
  src: t.termsOfUse,
@@ -3222,11 +3181,11 @@ function Ki({
3222
3181
  sandbox: "allow-scripts"
3223
3182
  }
3224
3183
  ) }),
3225
- /* @__PURE__ */ i.jsxs("div", { className: "modal-action", children: [
3226
- /* @__PURE__ */ i.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ i.jsx("button", { children: "Close" }) }),
3227
- /* @__PURE__ */ i.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
3228
- /* @__PURE__ */ i.jsx("button", { className: "btn", onClick: u, children: "Cancel" }, "closebtn"),
3229
- /* @__PURE__ */ i.jsx(
3184
+ /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
3185
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
3186
+ /* @__PURE__ */ a.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
3187
+ /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: u, children: "Cancel" }, "closebtn"),
3188
+ /* @__PURE__ */ a.jsx(
3230
3189
  "button",
3231
3190
  {
3232
3191
  className: "btn btn-primary",
@@ -3238,42 +3197,22 @@ function Ki({
3238
3197
  ] })
3239
3198
  ] })
3240
3199
  ] }) }),
3241
- /* @__PURE__ */ i.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
3242
- /* @__PURE__ */ i.jsx("button", { onClick: c, children: "Open Terms" })
3200
+ /* @__PURE__ */ a.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
3201
+ /* @__PURE__ */ a.jsx("button", { onClick: s, children: "Open Terms" })
3243
3202
  ] });
3244
3203
  }
3245
- async function Ji(t, e, o) {
3246
- const { callbackUrl: r = window.location.href, redirect: a = !0 } = {}, { prefix: l = "/api/auth", ...u } = {}, c = t === "email", h = `${`${l}/signin/${t}`}?${new URLSearchParams(o)}`, $ = await fetch(`${l}/csrf`), { csrfToken: w } = await $.json(), b = await fetch(h, {
3247
- method: "post",
3248
- headers: {
3249
- "Content-Type": "application/x-www-form-urlencoded",
3250
- "X-Auth-Return-Redirect": "1"
3251
- },
3252
- // @ts-expect-error -- ignore
3253
- body: new URLSearchParams({
3254
- ...u,
3255
- csrfToken: w,
3256
- callbackUrl: r
3257
- })
3258
- }), L = await b.clone().json(), F = new URL(L.url).searchParams.get("error");
3259
- if (a || !c || !F) {
3260
- window.location.href = L.url ?? r, L.url.includes("#") && window.location.reload();
3261
- return;
3262
- }
3263
- return b;
3264
- }
3265
3204
  function J({
3266
3205
  label: t,
3267
3206
  name: e,
3268
3207
  rules: o,
3269
3208
  inputEl: r,
3270
- setFieldValue: a,
3209
+ setFieldValue: i,
3271
3210
  onChange: l,
3272
3211
  ...u
3273
3212
  }) {
3274
- return /* @__PURE__ */ i.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
3275
- /* @__PURE__ */ i.jsx("div", { className: "label", children: /* @__PURE__ */ i.jsx("span", { className: "label-text", children: t }) }),
3276
- r || /* @__PURE__ */ i.jsx(
3213
+ return /* @__PURE__ */ a.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
3214
+ /* @__PURE__ */ a.jsx("div", { className: "label", children: /* @__PURE__ */ a.jsx("span", { className: "label-text", children: t }) }),
3215
+ r || /* @__PURE__ */ a.jsx(
3277
3216
  "input",
3278
3217
  {
3279
3218
  type: "text",
@@ -3281,46 +3220,46 @@ function J({
3281
3220
  name: e,
3282
3221
  className: "input input-bordered w-full max-w-xs",
3283
3222
  onChange: (g) => {
3284
- a(e, g.target.value), l == null || l(g);
3223
+ i(e, g.target.value), l == null || l(g);
3285
3224
  }
3286
3225
  }
3287
3226
  ),
3288
- /* @__PURE__ */ i.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, c) => /* @__PURE__ */ i.jsx("span", { className: "label-text-alt", children: g.message }, e + c)) })
3227
+ /* @__PURE__ */ a.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, s) => /* @__PURE__ */ a.jsx("span", { className: "label-text-alt", children: g.message }, e + s)) })
3289
3228
  ] });
3290
3229
  }
3291
- const Qi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
3230
+ const Ki = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
3292
3231
  application: e.name,
3293
3232
  organization: e.organization,
3294
3233
  plan: null,
3295
3234
  pricing: null,
3296
3235
  ...t
3297
- }), Zi = (t, e, o) => {
3236
+ }), Ji = (t, e, o) => {
3298
3237
  t.preventDefault();
3299
- const r = Qi(e, o);
3300
- console.log(r), Wn(r).then((a) => {
3301
- a.status === "ok" ? (r.username = a.data.split("/")[1], o && Nn(o) ? Un("").then((l) => {
3238
+ const r = Ki(e, o);
3239
+ console.log(r), Un(r).then((i) => {
3240
+ i.status === "ok" ? (r.username = i.data.split("/")[1], o && Fn(o) ? Dn("").then((l) => {
3302
3241
  let u = null;
3303
3242
  l.status === "ok" ? (u = l.data, u.organization = l.data2, console.log("account", u), alert("redirect")) : G("error", `Failed to sign in: ${l.msg}`);
3304
- }) : (alert("redirect"), Ji())) : G("error", a.msg);
3243
+ }) : alert("redirect")) : G("error", i.msg);
3305
3244
  });
3306
3245
  };
3307
- function Xi(t, e, o, r, a) {
3246
+ function Qi(t, e, o, r, i) {
3308
3247
  if (!e.visible)
3309
3248
  return null;
3310
- const l = (g, c) => {
3311
- o[g] = c, r(o);
3249
+ const l = (g, s) => {
3250
+ o[g] = s, r(o);
3312
3251
  }, u = e.required;
3313
3252
  if (e.name === "Username")
3314
- return /* @__PURE__ */ i.jsx(
3253
+ return /* @__PURE__ */ a.jsx(
3315
3254
  J,
3316
3255
  {
3317
3256
  name: "username",
3318
3257
  className: "signup-username",
3319
- label: e.label ? e.label : a("signup.username"),
3258
+ label: e.label ? e.label : i("signup.username"),
3320
3259
  rules: [
3321
3260
  {
3322
3261
  required: u,
3323
- message: a("forget.username"),
3262
+ message: i("forget.username"),
3324
3263
  whitespace: !0
3325
3264
  }
3326
3265
  ],
@@ -3330,17 +3269,17 @@ function Xi(t, e, o, r, a) {
3330
3269
  }
3331
3270
  );
3332
3271
  if (e.name === "Display name")
3333
- return e.rule === "First, last" && jn() !== "zh" ? /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
3334
- /* @__PURE__ */ i.jsx(
3272
+ return e.rule === "First, last" && En() !== "zh" ? /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
3273
+ /* @__PURE__ */ a.jsx(
3335
3274
  J,
3336
3275
  {
3337
3276
  name: "firstName",
3338
3277
  className: "signup-first-name",
3339
- label: e.label ? e.label : a("general.firstName"),
3278
+ label: e.label ? e.label : i("general.firstName"),
3340
3279
  rules: [
3341
3280
  {
3342
3281
  required: u,
3343
- message: a("forget.firstName"),
3282
+ message: i("forget.firstName"),
3344
3283
  whitespace: !0
3345
3284
  }
3346
3285
  ],
@@ -3348,16 +3287,16 @@ function Xi(t, e, o, r, a) {
3348
3287
  setFieldValue: l
3349
3288
  }
3350
3289
  ),
3351
- /* @__PURE__ */ i.jsx(
3290
+ /* @__PURE__ */ a.jsx(
3352
3291
  J,
3353
3292
  {
3354
3293
  name: "lastName",
3355
3294
  className: "signup-last-name",
3356
- label: e.label ? e.label : a("general.lastName"),
3295
+ label: e.label ? e.label : i("general.lastName"),
3357
3296
  rules: [
3358
3297
  {
3359
3298
  required: u,
3360
- message: a("forget.lastName"),
3299
+ message: i("forget.lastName"),
3361
3300
  whitespace: !0
3362
3301
  }
3363
3302
  ],
@@ -3365,16 +3304,16 @@ function Xi(t, e, o, r, a) {
3365
3304
  setFieldValue: l
3366
3305
  }
3367
3306
  )
3368
- ] }) : /* @__PURE__ */ i.jsx(
3307
+ ] }) : /* @__PURE__ */ a.jsx(
3369
3308
  J,
3370
3309
  {
3371
3310
  name: "name",
3372
3311
  className: "signup-name",
3373
- label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? a("general.realName") : a("general.displayName"),
3312
+ label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? i("general.realName") : i("general.displayName"),
3374
3313
  rules: [
3375
3314
  {
3376
3315
  required: u,
3377
- message: e.rule === "Real name" || e.rule === "First, last" ? a("forget.realName") : a("forget.displayName"),
3316
+ message: e.rule === "Real name" || e.rule === "First, last" ? i("forget.realName") : i("forget.displayName"),
3378
3317
  whitespace: !0
3379
3318
  }
3380
3319
  ],
@@ -3383,16 +3322,16 @@ function Xi(t, e, o, r, a) {
3383
3322
  }
3384
3323
  );
3385
3324
  if (e.name === "Affiliation")
3386
- return /* @__PURE__ */ i.jsx(
3325
+ return /* @__PURE__ */ a.jsx(
3387
3326
  J,
3388
3327
  {
3389
3328
  name: "affiliation",
3390
3329
  className: "signup-affiliation",
3391
- label: e.label ? e.label : a("user.affiliation"),
3330
+ label: e.label ? e.label : i("user.affiliation"),
3392
3331
  rules: [
3393
3332
  {
3394
3333
  required: u,
3395
- message: a("forget.affiliation"),
3334
+ message: i("forget.affiliation"),
3396
3335
  whitespace: !0
3397
3336
  }
3398
3337
  ],
@@ -3401,16 +3340,16 @@ function Xi(t, e, o, r, a) {
3401
3340
  }
3402
3341
  );
3403
3342
  if (e.name === "ID card")
3404
- return /* @__PURE__ */ i.jsx(
3343
+ return /* @__PURE__ */ a.jsx(
3405
3344
  J,
3406
3345
  {
3407
3346
  name: "idCard",
3408
3347
  className: "signup-idcard",
3409
- label: e.label ? e.label : a("user.idCard"),
3348
+ label: e.label ? e.label : i("user.idCard"),
3410
3349
  rules: [
3411
3350
  {
3412
3351
  required: u,
3413
- message: a("forget.idCard"),
3352
+ message: i("forget.idCard"),
3414
3353
  whitespace: !0
3415
3354
  },
3416
3355
  {
@@ -3419,7 +3358,7 @@ function Xi(t, e, o, r, a) {
3419
3358
  /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9X]$/,
3420
3359
  "g"
3421
3360
  ),
3422
- message: a("format.idCard")
3361
+ message: i("format.idCard")
3423
3362
  }
3424
3363
  ],
3425
3364
  placeholder: e.placeholder,
@@ -3427,41 +3366,41 @@ function Xi(t, e, o, r, a) {
3427
3366
  }
3428
3367
  );
3429
3368
  if (e.name === "Email" || e.name === "Phone" || e.name === "Email or Phone" || e.name === "Phone or Email") {
3430
- const g = () => /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
3431
- /* @__PURE__ */ i.jsx(
3369
+ const g = () => /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
3370
+ /* @__PURE__ */ a.jsx(
3432
3371
  J,
3433
3372
  {
3434
3373
  name: "email",
3435
- label: e.label ? e.label : a("general.email"),
3374
+ label: e.label ? e.label : i("general.email"),
3436
3375
  rules: [
3437
3376
  {
3438
3377
  required: u,
3439
- message: a("forget.email")
3378
+ message: i("forget.email")
3440
3379
  }
3441
3380
  ],
3442
3381
  placeholder: e.placeholder,
3443
3382
  disabled: o.invitation !== void 0 && o.invitation.email !== "",
3444
3383
  onChange: (f) => {
3445
- const h = f.target.value;
3446
- console.log("email", h, vt(h)), h !== "" && !vt(h) ? r({ ...o, email: h, validEmail: !1 }) : r({ ...o, email: h, validEmail: !0 });
3384
+ const m = f.target.value;
3385
+ console.log("email", m, vt(m)), m !== "" && !vt(m) ? r({ ...o, email: m, validEmail: !1 }) : r({ ...o, email: m, validEmail: !0 });
3447
3386
  },
3448
3387
  setFieldValue: l
3449
3388
  }
3450
3389
  ),
3451
- e.rule !== "No verification" && /* @__PURE__ */ i.jsx(
3390
+ e.rule !== "No verification" && /* @__PURE__ */ a.jsx(
3452
3391
  J,
3453
3392
  {
3454
3393
  name: "emailCode",
3455
3394
  className: "signup-email-code",
3456
- label: e.label ? e.label : a("code.email"),
3395
+ label: e.label ? e.label : i("code.email"),
3457
3396
  rules: [
3458
3397
  {
3459
3398
  required: u,
3460
- message: a("forget.code")
3399
+ message: i("forget.code")
3461
3400
  }
3462
3401
  ],
3463
- inputEl: /* @__PURE__ */ i.jsx(
3464
- to,
3402
+ inputEl: /* @__PURE__ */ a.jsx(
3403
+ eo,
3465
3404
  {
3466
3405
  disabled: !o.validEmail,
3467
3406
  method: "signup",
@@ -3474,34 +3413,34 @@ function Xi(t, e, o, r, a) {
3474
3413
  setFieldValue: l
3475
3414
  }
3476
3415
  )
3477
- ] }), c = () => /* @__PURE__ */ i.jsx(i.Fragment, {});
3416
+ ] }), s = () => /* @__PURE__ */ a.jsx(a.Fragment, {});
3478
3417
  if (e.name === "Email")
3479
3418
  return g();
3480
3419
  if (e.name === "Phone")
3481
- return c();
3420
+ return s();
3482
3421
  if (e.name === "Email or Phone" || e.name === "Phone or Email") {
3483
3422
  let f = o.emailOrPhoneMode;
3484
- return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
3485
- /* @__PURE__ */ i.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3486
- f === "Email" ? g() : c()
3423
+ return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
3424
+ /* @__PURE__ */ a.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3425
+ f === "Email" ? g() : s()
3487
3426
  ] });
3488
3427
  } else
3489
3428
  return null;
3490
3429
  } else {
3491
3430
  if (e.name === "Password")
3492
- return /* @__PURE__ */ i.jsx(
3431
+ return /* @__PURE__ */ a.jsx(
3493
3432
  J,
3494
3433
  {
3495
3434
  name: "password",
3496
3435
  className: "signup-password",
3497
- label: e.label ? e.label : a("general.password"),
3436
+ label: e.label ? e.label : i("general.password"),
3498
3437
  rules: [
3499
3438
  {
3500
3439
  required: u,
3501
3440
  validateTrigger: "onChange",
3502
- validator: (g, c) => {
3503
- const f = Yi(
3504
- c,
3441
+ validator: (g, s) => {
3442
+ const f = qi(
3443
+ s,
3505
3444
  t.organizationObj.passwordOptions
3506
3445
  );
3507
3446
  return f === "" ? Promise.resolve() : Promise.reject(f);
@@ -3514,16 +3453,16 @@ function Xi(t, e, o, r, a) {
3514
3453
  }
3515
3454
  );
3516
3455
  if (e.name === "Confirm password")
3517
- return /* @__PURE__ */ i.jsx(
3456
+ return /* @__PURE__ */ a.jsx(
3518
3457
  J,
3519
3458
  {
3520
3459
  name: "confirm",
3521
3460
  className: "signup-confirm",
3522
- label: e.label ? e.label : a("signup.confirm"),
3461
+ label: e.label ? e.label : i("signup.confirm"),
3523
3462
  rules: [
3524
3463
  {
3525
3464
  required: u,
3526
- message: a("forget.confirm")
3465
+ message: i("forget.confirm")
3527
3466
  }
3528
3467
  // ({ getFieldValue }) => ({
3529
3468
  // validator(rule, value) {
@@ -3544,16 +3483,16 @@ function Xi(t, e, o, r, a) {
3544
3483
  }
3545
3484
  );
3546
3485
  if (e.name === "Invitation code")
3547
- return /* @__PURE__ */ i.jsx(
3486
+ return /* @__PURE__ */ a.jsx(
3548
3487
  J,
3549
3488
  {
3550
3489
  name: "invitationCode",
3551
3490
  className: "signup-invitation-code",
3552
- label: e.label ? e.label : a("application.invitationCode"),
3491
+ label: e.label ? e.label : i("application.invitationCode"),
3553
3492
  rules: [
3554
3493
  {
3555
3494
  required: u,
3556
- message: a("forget.invitationCode")
3495
+ message: i("forget.invitationCode")
3557
3496
  }
3558
3497
  ],
3559
3498
  placeholder: e.placeholder,
@@ -3562,8 +3501,8 @@ function Xi(t, e, o, r, a) {
3562
3501
  }
3563
3502
  );
3564
3503
  if (e.name === "Agreement")
3565
- return /* @__PURE__ */ i.jsx(
3566
- Ki,
3504
+ return /* @__PURE__ */ a.jsx(
3505
+ Yi,
3567
3506
  {
3568
3507
  state: o,
3569
3508
  setState: r,
@@ -3571,14 +3510,14 @@ function Xi(t, e, o, r, a) {
3571
3510
  }
3572
3511
  );
3573
3512
  if (e.name.startsWith("Text "))
3574
- return /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3513
+ return /* @__PURE__ */ a.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3575
3514
  if (e.name === "Signup button")
3576
- return /* @__PURE__ */ i.jsxs("form", { onSubmit: (g) => Zi(g, o, t), children: [
3577
- /* @__PURE__ */ i.jsx("button", { className: "btn btn-primary", type: "submit", children: a("signup.signUp") }),
3515
+ return /* @__PURE__ */ a.jsxs("form", { onSubmit: (g) => Ji(g, o, t), children: [
3516
+ /* @__PURE__ */ a.jsx("button", { className: "btn btn-primary", type: "submit", children: i("signup.signUp") }),
3578
3517
  "  ",
3579
- a("signup.haveAccount"),
3518
+ i("signup.haveAccount"),
3580
3519
  " ",
3581
- /* @__PURE__ */ i.jsx(
3520
+ /* @__PURE__ */ a.jsx(
3582
3521
  "a",
3583
3522
  {
3584
3523
  className: "signup-link",
@@ -3586,14 +3525,14 @@ function Xi(t, e, o, r, a) {
3586
3525
  const g = sessionStorage.getItem("signinUrl");
3587
3526
  alert("redirect");
3588
3527
  },
3589
- children: a("signup.signInNow")
3528
+ children: i("signup.signInNow")
3590
3529
  }
3591
3530
  )
3592
3531
  ] });
3593
3532
  if (e.name === "Providers" && t.providers) {
3594
- const g = Rn(t) || Pn(t) || In(t) || Fn(t);
3595
- return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((c) => Pt(c)).map((c) => Ui(
3596
- c.provider,
3533
+ const g = Bn(t) || Pn(t) || Rn(t) || In(t);
3534
+ return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((s) => Rt(s)).map((s) => Di(
3535
+ s.provider,
3597
3536
  t,
3598
3537
  null,
3599
3538
  null,
@@ -3604,7 +3543,7 @@ function Xi(t, e, o, r, a) {
3604
3543
  }
3605
3544
  return e.name;
3606
3545
  }
3607
- const er = {
3546
+ const Zi = {
3608
3547
  signup: {
3609
3548
  username: "Username",
3610
3549
  confirm: "Confirm password",
@@ -3649,19 +3588,19 @@ const er = {
3649
3588
  application: {
3650
3589
  invitationCode: "Invitation code"
3651
3590
  }
3652
- }, tr = {
3653
- translation: er
3591
+ }, Xi = {
3592
+ translation: Zi
3654
3593
  };
3655
- Q.use(Sn).init({
3594
+ Q.use(kn).init({
3656
3595
  lng: "en",
3657
3596
  fallbackLng: "en",
3658
3597
  // use en if detected lng is not available
3659
3598
  resources: {
3660
- en: tr
3599
+ en: Xi
3661
3600
  }
3662
3601
  });
3663
- function nr(t, e, o) {
3664
- const r = /* @__PURE__ */ i.jsxs(
3602
+ function er(t, e, o) {
3603
+ const r = /* @__PURE__ */ a.jsxs(
3665
3604
  "svg",
3666
3605
  {
3667
3606
  xmlns: "http://www.w3.org/2000/svg",
@@ -3675,11 +3614,11 @@ function nr(t, e, o) {
3675
3614
  "stroke-linejoin": "round",
3676
3615
  className: "lucide lucide-eye",
3677
3616
  children: [
3678
- /* @__PURE__ */ i.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3679
- /* @__PURE__ */ i.jsx("circle", { cx: "12", cy: "12", r: "3" })
3617
+ /* @__PURE__ */ a.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3618
+ /* @__PURE__ */ a.jsx("circle", { cx: "12", cy: "12", r: "3" })
3680
3619
  ]
3681
3620
  }
3682
- ), a = /* @__PURE__ */ i.jsxs(
3621
+ ), i = /* @__PURE__ */ a.jsxs(
3683
3622
  "svg",
3684
3623
  {
3685
3624
  xmlns: "http://www.w3.org/2000/svg",
@@ -3693,30 +3632,30 @@ function nr(t, e, o) {
3693
3632
  "stroke-linejoin": "round",
3694
3633
  className: "lucide lucide-eye-off",
3695
3634
  children: [
3696
- /* @__PURE__ */ i.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
3697
- /* @__PURE__ */ i.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
3698
- /* @__PURE__ */ i.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
3699
- /* @__PURE__ */ i.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3635
+ /* @__PURE__ */ a.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
3636
+ /* @__PURE__ */ a.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
3637
+ /* @__PURE__ */ a.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
3638
+ /* @__PURE__ */ a.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3700
3639
  ]
3701
3640
  }
3702
3641
  ), l = Me(t), u = ee(t);
3703
3642
  if (l === "password") {
3704
3643
  const g = e.password.state[u];
3705
- return /* @__PURE__ */ i.jsxs(
3644
+ return /* @__PURE__ */ a.jsxs(
3706
3645
  o,
3707
3646
  {
3708
3647
  variant: "ghost",
3709
3648
  size: "icon",
3710
3649
  className: "absolute top-1/2 right-2 -translate-y-1/2",
3711
- onClick: (c) => {
3712
- c.preventDefault(), c.stopPropagation(), e.password.setState({
3650
+ onClick: (s) => {
3651
+ s.preventDefault(), s.stopPropagation(), e.password.setState({
3713
3652
  ...e.password.state,
3714
3653
  [u]: !g
3715
3654
  });
3716
3655
  },
3717
3656
  children: [
3718
- g ? a : r,
3719
- /* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
3657
+ g ? i : r,
3658
+ /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
3720
3659
  ]
3721
3660
  }
3722
3661
  );
@@ -3745,12 +3684,12 @@ function Me(t, e) {
3745
3684
  const o = ["password", "confirm"], r = ee(t);
3746
3685
  return o.includes(r) && !(e != null && e.hidePassword[r]) ? "password" : "text";
3747
3686
  }
3748
- function or(t) {
3687
+ function tr(t) {
3749
3688
  return Object.fromEntries(
3750
3689
  t.filter((e) => Me(e) === "password").map((e) => [ee(e), !1])
3751
3690
  );
3752
3691
  }
3753
- function ar(t) {
3692
+ function nr(t) {
3754
3693
  return {
3755
3694
  name: ee(t),
3756
3695
  label: t.label || t.name,
@@ -3759,12 +3698,12 @@ function ar(t) {
3759
3698
  type: Me(t)
3760
3699
  };
3761
3700
  }
3762
- function ir(t, e) {
3701
+ function or(t, e) {
3763
3702
  const o = ee(e);
3764
3703
  let r = t.string();
3765
3704
  return o === "email" && (r = r.email()), e.required || (r = r.optional()), r;
3766
3705
  }
3767
- function rr(t) {
3706
+ function ar(t) {
3768
3707
  const e = t.map((r) => [ee(r), ""]), o = t.filter((r) => qt(r)).map((r) => [ee(r) + "Code", ""]);
3769
3708
  return Object.fromEntries([...e, ...o]);
3770
3709
  }
@@ -3772,12 +3711,12 @@ function qt(t) {
3772
3711
  const e = ee(t);
3773
3712
  return (e === "email" || e === "phone") && !["None", "No verification"].includes(t.rule);
3774
3713
  }
3775
- function lr(t) {
3714
+ function ir(t) {
3776
3715
  return t.visible === !0;
3777
3716
  }
3778
- function cr(t) {
3779
- var $;
3780
- const { t: e, i18n: o } = Te(), [r, a] = m.useState({
3717
+ function rr(t) {
3718
+ var k;
3719
+ const { t: e, i18n: o } = Te(), [r, i] = h.useState({
3781
3720
  applicationName: t.applicationName ?? null,
3782
3721
  email: "",
3783
3722
  phone: "",
@@ -3791,58 +3730,58 @@ function cr(t) {
3791
3730
  isTermsOfUseVisible: !1,
3792
3731
  termsOfUseContent: ""
3793
3732
  });
3794
- m.useRef();
3733
+ h.useRef();
3795
3734
  const l = (w) => {
3796
3735
  w !== void 0 && Xe("admin", w).then(
3797
- (b) => {
3798
- if (b.status === "error") {
3799
- G("error", b.msg);
3736
+ (v) => {
3737
+ if (v.status === "error") {
3738
+ G("error", v.msg);
3800
3739
  return;
3801
3740
  }
3802
- f(b.data);
3741
+ f(v.data);
3803
3742
  }
3804
3743
  );
3805
3744
  }, u = (w) => {
3806
- It(w).then((b) => {
3807
- if (b.status === "ok") {
3808
- const L = b.data;
3809
- f(L);
3745
+ It(w).then((v) => {
3746
+ if (v.status === "ok") {
3747
+ const M = v.data;
3748
+ f(M);
3810
3749
  } else
3811
- f(null), a({
3750
+ f(null), i({
3812
3751
  ...r,
3813
- msg: b.msg
3752
+ msg: v.msg
3814
3753
  });
3815
3754
  });
3816
- }, g = () => t.application, c = (w, b) => {
3817
- Nt(w, b).then(
3818
- (L) => {
3819
- if (L.status === "error") {
3820
- G("error", L.msg);
3755
+ }, g = () => t.application, s = (w, v) => {
3756
+ Nt(w, v).then(
3757
+ (M) => {
3758
+ if (M.status === "error") {
3759
+ G("error", M.msg);
3821
3760
  return;
3822
3761
  }
3823
- a({ ...r, invitation: L.data });
3762
+ i({ ...r, invitation: M.data });
3824
3763
  }
3825
3764
  );
3826
3765
  }, f = (w) => {
3827
3766
  t.onUpdateApplication(w);
3828
3767
  };
3829
- m.useEffect(() => {
3768
+ h.useEffect(() => {
3830
3769
  const w = Ft();
3831
3770
  if (w !== null) {
3832
- const b = window.location.pathname.replace(
3771
+ const v = window.location.pathname.replace(
3833
3772
  "/signup/oauth/authorize",
3834
3773
  "/login/oauth/authorize"
3835
3774
  );
3836
- sessionStorage.setItem("signinUrl", b + window.location.search);
3775
+ sessionStorage.setItem("signinUrl", v + window.location.search);
3837
3776
  }
3838
3777
  if (g() === void 0)
3839
3778
  if (r.applicationName !== null) {
3840
3779
  l(r.applicationName);
3841
- const b = new URLSearchParams(window.location.search);
3842
- if (b.has("invitationCode")) {
3843
- const L = b.get("invitationCode") ?? "";
3844
- a({ ...r, invitationCode: L }), L !== "" && c(
3845
- L,
3780
+ const v = new URLSearchParams(window.location.search);
3781
+ if (v.has("invitationCode")) {
3782
+ const M = v.get("invitationCode") ?? "";
3783
+ i({ ...r, invitationCode: M }), M !== "" && s(
3784
+ M,
3846
3785
  "admin/" + r.applicationName
3847
3786
  );
3848
3787
  }
@@ -3851,53 +3790,53 @@ function cr(t) {
3851
3790
  `Unknown application name: ${r.applicationName}`
3852
3791
  ), f(null));
3853
3792
  }, []);
3854
- const h = g();
3855
- return h == null ? null : ($ = h.signupItems) == null ? void 0 : $.map((w, b) => /* @__PURE__ */ i.jsx("div", { children: Xi(h, w, r, a, e) }, b));
3793
+ const m = g();
3794
+ return m == null ? null : (k = m.signupItems) == null ? void 0 : k.map((w, v) => /* @__PURE__ */ a.jsx("div", { children: Qi(m, w, r, i, e) }, v));
3856
3795
  }
3857
- function gr({
3796
+ function ur({
3858
3797
  applicationName: t,
3859
3798
  casdoorApiRoot: e,
3860
3799
  springmicroApiRoot: o
3861
3800
  }) {
3862
3801
  I.casdoor = e, o && (I.springmicro = o);
3863
- const [r, a] = m.useState({ application: null }), l = () => {
3802
+ const [r, i] = h.useState({ application: null }), l = () => {
3864
3803
  Xe("admin", t).then(
3865
3804
  (u) => {
3866
3805
  if (console.log(u), u.status === "error") {
3867
3806
  G("error", u.msg);
3868
3807
  return;
3869
3808
  }
3870
- a({
3809
+ i({
3871
3810
  application: u.data
3872
3811
  });
3873
3812
  }
3874
3813
  );
3875
3814
  };
3876
- return m.useEffect(() => {
3815
+ return h.useEffect(() => {
3877
3816
  l();
3878
- }, []), r.application === void 0 ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsx(_n, { i18n: Q, children: /* @__PURE__ */ i.jsx(
3879
- cr,
3817
+ }, []), r.application === void 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(Sn, { i18n: Q, children: /* @__PURE__ */ a.jsx(
3818
+ rr,
3880
3819
  {
3881
3820
  application: r.application,
3882
3821
  onUpdateApplication: (u) => {
3883
- a({
3822
+ i({
3884
3823
  application: u
3885
3824
  });
3886
3825
  }
3887
3826
  }
3888
3827
  ) });
3889
3828
  }
3890
- const Yt = m.createContext(
3829
+ const Yt = h.createContext(
3891
3830
  void 0
3892
3831
  );
3893
- function hr({
3832
+ function dr({
3894
3833
  applicationName: t,
3895
3834
  casdoorApiRoot: e,
3896
3835
  springmicroApiRoot: o,
3897
3836
  children: r
3898
3837
  }) {
3899
3838
  Te(), I.casdoor = e, o && (I.springmicro = o);
3900
- const [a, l] = m.useState({ application: null }), [u, g] = m.useState({}), c = () => {
3839
+ const [i, l] = h.useState({ application: null }), [u, g] = h.useState({}), s = () => {
3901
3840
  Xe("admin", t).then(
3902
3841
  (E) => {
3903
3842
  if (console.log(E), E.status === "error") {
@@ -3913,28 +3852,28 @@ function hr({
3913
3852
  l({
3914
3853
  application: E
3915
3854
  });
3916
- }, h = (E, _) => {
3855
+ }, m = (E, _) => {
3917
3856
  Nt(E, _).then(
3918
- (k) => {
3919
- if (k.status === "error") {
3920
- G("error", k.msg);
3857
+ ($) => {
3858
+ if ($.status === "error") {
3859
+ G("error", $.msg);
3921
3860
  return;
3922
3861
  }
3923
- l({ ...a, invitation: k.data });
3862
+ l({ ...i, invitation: $.data });
3924
3863
  }
3925
3864
  );
3926
- }, $ = (E) => {
3865
+ }, k = (E) => {
3927
3866
  It(E).then((_) => {
3928
3867
  if (_.status === "ok") {
3929
- const k = _.data;
3930
- f(k);
3868
+ const $ = _.data;
3869
+ f($);
3931
3870
  } else
3932
3871
  f(null), l({
3933
- ...a,
3872
+ ...i,
3934
3873
  msg: _.msg
3935
3874
  });
3936
3875
  });
3937
- }, w = (E, _) => nr(
3876
+ }, w = (E, _) => er(
3938
3877
  E,
3939
3878
  {
3940
3879
  password: {
@@ -3943,16 +3882,16 @@ function hr({
3943
3882
  }
3944
3883
  },
3945
3884
  _
3946
- ), b = (E) => Me(E, {
3885
+ ), v = (E) => Me(E, {
3947
3886
  hidePassword: u
3948
- }), L = Dt, F = Ut;
3949
- return m.useEffect(() => {
3950
- c();
3951
- }, []), m.useEffect(() => {
3952
- a.application && g(
3953
- or(a.application.signupItems)
3887
+ }), M = Dt, D = Ut;
3888
+ return h.useEffect(() => {
3889
+ s();
3890
+ }, []), h.useEffect(() => {
3891
+ i.application && g(
3892
+ tr(i.application.signupItems)
3954
3893
  );
3955
- }, [a.application]), m.useEffect(() => {
3894
+ }, [i.application]), h.useEffect(() => {
3956
3895
  const E = Ft();
3957
3896
  if (E !== null) {
3958
3897
  const _ = window.location.pathname.replace(
@@ -3961,53 +3900,52 @@ function hr({
3961
3900
  );
3962
3901
  sessionStorage.setItem("signinUrl", _ + window.location.search);
3963
3902
  }
3964
- if (a.application === void 0)
3965
- if (a.applicationName !== null) {
3966
- c();
3903
+ if (i.application === void 0)
3904
+ if (i.applicationName !== null) {
3905
+ s();
3967
3906
  const _ = new URLSearchParams(window.location.search);
3968
3907
  if (_.has("invitationCode")) {
3969
- const k = _.get("invitationCode") ?? "";
3970
- l({ ...a, invitationCode: k }), k !== "" && h(
3971
- k,
3972
- "admin/" + a.applicationName
3908
+ const $ = _.get("invitationCode") ?? "";
3909
+ l({ ...i, invitationCode: $ }), $ !== "" && m(
3910
+ $,
3911
+ "admin/" + i.applicationName
3973
3912
  );
3974
3913
  }
3975
- } else E !== null ? $(E) : (G(
3914
+ } else E !== null ? k(E) : (G(
3976
3915
  "error",
3977
- `Unknown application name: ${a.applicationName}`
3916
+ `Unknown application name: ${i.applicationName}`
3978
3917
  ), f(null));
3979
- }, []), a.application === void 0 || a.application === null ? null : /* @__PURE__ */ i.jsx(
3918
+ }, []), i.application === void 0 || i.application === null ? null : /* @__PURE__ */ a.jsx(
3980
3919
  Yt.Provider,
3981
3920
  {
3982
3921
  value: {
3983
- application: a.application,
3984
- getDefaultValues: rr,
3985
- getFormProps: ar,
3922
+ application: i.application,
3923
+ getDefaultValues: ar,
3924
+ getFormProps: nr,
3986
3925
  icon: w,
3987
- getZod: ir,
3926
+ getZod: or,
3988
3927
  getKey: ee,
3989
- type: b,
3990
- sendCode: L,
3928
+ type: v,
3929
+ sendCode: M,
3991
3930
  requiresCode: qt,
3992
- getCaptcha: F,
3993
- isVisible: lr
3931
+ getCaptcha: D,
3932
+ isVisible: ir
3994
3933
  },
3995
3934
  children: r
3996
3935
  }
3997
3936
  );
3998
3937
  }
3999
- const mr = () => {
4000
- const t = m.useContext(Yt);
3938
+ const fr = () => {
3939
+ const t = h.useContext(Yt);
4001
3940
  if (!t)
4002
3941
  throw new Error("useSignUp must be used within a SignUpProvider");
4003
3942
  return t;
4004
3943
  };
4005
3944
  export {
4006
- gr as S,
4007
- Ln as a,
4008
- pr as b,
4009
- hr as c,
4010
- Kn as g,
3945
+ ur as S,
3946
+ jn as a,
3947
+ dr as b,
3948
+ Yn as g,
4011
3949
  G as s,
4012
- mr as u
3950
+ fr as u
4013
3951
  };