@springmicro/auth 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import h, { useEffect as Pt } from "react";
2
- import { useTranslation as Te, initReactI18next as kn, I18nextProvider as Sn } from "react-i18next";
3
- import Q from "i18next";
4
- var Ze = { exports: {} }, we = {};
1
+ import m, { useEffect as Bt } from "react";
2
+ import { useTranslation as Le, initReactI18next as $n, I18nextProvider as kn } from "react-i18next";
3
+ import K from "i18next";
4
+ var Je = { exports: {} }, ye = {};
5
5
  /**
6
6
  * @license React
7
7
  * react-jsx-runtime.production.min.js
@@ -11,21 +11,21 @@ var Ze = { exports: {} }, we = {};
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
- var wt;
15
- function _n() {
16
- if (wt) return we;
17
- wt = 1;
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 };
14
+ var yt;
15
+ function Sn() {
16
+ if (yt) return ye;
17
+ yt = 1;
18
+ var t = m, 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 c(g, u, f) {
20
+ var h, k = {}, w = null, x = null;
21
+ f !== void 0 && (w = "" + f), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (x = u.ref);
22
+ for (h in u) r.call(u, h) && !l.hasOwnProperty(h) && (k[h] = u[h]);
23
+ if (g && g.defaultProps) for (h in u = g.defaultProps, u) k[h] === void 0 && (k[h] = u[h]);
24
+ return { $$typeof: e, type: g, key: w, ref: x, props: k, _owner: i.current };
25
25
  }
26
- return we.Fragment = o, we.jsx = u, we.jsxs = u, we;
26
+ return ye.Fragment = o, ye.jsx = c, ye.jsxs = c, ye;
27
27
  }
28
- var be = {};
28
+ var we = {};
29
29
  /**
30
30
  * @license React
31
31
  * react-jsx-runtime.development.js
@@ -35,57 +35,57 @@ var be = {};
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- var bt;
39
- function Cn() {
40
- return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
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";
42
- function E(n) {
38
+ var wt;
39
+ function _n() {
40
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
41
+ var t = m, 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"), c = Symbol.for("react.provider"), g = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), A = Symbol.iterator, U = "@@iterator";
42
+ function Q(n) {
43
43
  if (n === null || typeof n != "object")
44
44
  return null;
45
- var c = M && n[M] || n[D];
46
- return typeof c == "function" ? c : null;
45
+ var s = A && n[A] || n[U];
46
+ return typeof s == "function" ? s : null;
47
47
  }
48
- var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
- function $(n) {
48
+ var R = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ function b(n) {
50
50
  {
51
- for (var c = arguments.length, p = new Array(c > 1 ? c - 1 : 0), y = 1; y < c; y++)
51
+ for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), y = 1; y < s; y++)
52
52
  p[y - 1] = arguments[y];
53
- q("error", n, p);
53
+ E("error", n, p);
54
54
  }
55
55
  }
56
- function q(n, c, p) {
56
+ function E(n, s, p) {
57
57
  {
58
- var y = _.ReactDebugCurrentFrame, S = y.getStackAddendum();
59
- S !== "" && (c += "%s", p = p.concat([S]));
60
- var C = p.map(function(x) {
61
- return String(x);
58
+ var y = R.ReactDebugCurrentFrame, S = y.getStackAddendum();
59
+ S !== "" && (s += "%s", p = p.concat([S]));
60
+ var _ = p.map(function($) {
61
+ return String($);
62
62
  });
63
- C.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, C);
63
+ _.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, _);
64
64
  }
65
65
  }
66
- var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, R;
67
- R = Symbol.for("react.module.reference");
68
- function ze(n) {
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
66
+ var M = !1, W = !1, ie = !1, pe = !1, ne = !1, I;
67
+ I = Symbol.for("react.module.reference");
68
+ function Me(n) {
69
+ return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === i || n === f || n === h || pe || n === x || M || W || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === k || n.$$typeof === c || n.$$typeof === g || n.$$typeof === u || // This needs to include all possible module reference object
70
70
  // types supported by any Flight configuration anywhere since
71
71
  // we don't know which Flight build this will end up being used
72
72
  // with.
73
- n.$$typeof === R || n.getModuleId !== void 0));
73
+ n.$$typeof === I || n.getModuleId !== void 0));
74
74
  }
75
- function ge(n, c, p) {
75
+ function ge(n, s, p) {
76
76
  var y = n.displayName;
77
77
  if (y)
78
78
  return y;
79
- var S = c.displayName || c.name || "";
79
+ var S = s.displayName || s.name || "";
80
80
  return S !== "" ? p + "(" + S + ")" : p;
81
81
  }
82
82
  function he(n) {
83
83
  return n.displayName || "Context";
84
84
  }
85
- function H(n) {
85
+ function J(n) {
86
86
  if (n == null)
87
87
  return null;
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")
88
+ if (typeof n.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
89
89
  return n.displayName || n.name || null;
90
90
  if (typeof n == "string")
91
91
  return n;
@@ -100,26 +100,26 @@ function Cn() {
100
100
  return "StrictMode";
101
101
  case f:
102
102
  return "Suspense";
103
- case m:
103
+ case h:
104
104
  return "SuspenseList";
105
105
  }
106
106
  if (typeof n == "object")
107
107
  switch (n.$$typeof) {
108
108
  case g:
109
- var c = n;
110
- return he(c) + ".Consumer";
111
- case u:
109
+ var s = n;
110
+ return he(s) + ".Consumer";
111
+ case c:
112
112
  var p = n;
113
113
  return he(p._context) + ".Provider";
114
- case s:
114
+ case u:
115
115
  return ge(n, n.render, "ForwardRef");
116
116
  case k:
117
117
  var y = n.displayName || null;
118
- return y !== null ? y : H(n.type) || "Memo";
118
+ return y !== null ? y : J(n.type) || "Memo";
119
119
  case w: {
120
- var S = n, C = S._payload, x = S._init;
120
+ var S = n, _ = S._payload, $ = S._init;
121
121
  try {
122
- return H(x(C));
122
+ return J($(_));
123
123
  } catch {
124
124
  return null;
125
125
  }
@@ -127,18 +127,18 @@ function Cn() {
127
127
  }
128
128
  return null;
129
129
  }
130
- var Z = Object.assign, re = 0, ke, Se, A, Oe, et, tt, nt;
131
- function ot() {
130
+ var Z = Object.assign, re = 0, $e, ke, T, ze, Ze, Xe, et;
131
+ function tt() {
132
132
  }
133
- ot.__reactDisabledLog = !0;
134
- function Kt() {
133
+ tt.__reactDisabledLog = !0;
134
+ function Yt() {
135
135
  {
136
136
  if (re === 0) {
137
- ke = console.log, Se = console.info, A = console.warn, Oe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
137
+ $e = console.log, ke = console.info, T = console.warn, ze = console.error, Ze = console.group, Xe = console.groupCollapsed, et = console.groupEnd;
138
138
  var n = {
139
139
  configurable: !0,
140
140
  enumerable: !0,
141
- value: ot,
141
+ value: tt,
142
142
  writable: !0
143
143
  };
144
144
  Object.defineProperties(console, {
@@ -154,7 +154,7 @@ function Cn() {
154
154
  re++;
155
155
  }
156
156
  }
157
- function Jt() {
157
+ function Kt() {
158
158
  {
159
159
  if (re--, re === 0) {
160
160
  var n = {
@@ -164,241 +164,237 @@ function Cn() {
164
164
  };
165
165
  Object.defineProperties(console, {
166
166
  log: Z({}, n, {
167
- value: ke
167
+ value: $e
168
168
  }),
169
169
  info: Z({}, n, {
170
- value: Se
170
+ value: ke
171
171
  }),
172
172
  warn: Z({}, n, {
173
- value: A
173
+ value: T
174
174
  }),
175
175
  error: Z({}, n, {
176
- value: Oe
176
+ value: ze
177
177
  }),
178
178
  group: Z({}, n, {
179
- value: et
179
+ value: Ze
180
180
  }),
181
181
  groupCollapsed: Z({}, n, {
182
- value: tt
182
+ value: Xe
183
183
  }),
184
184
  groupEnd: Z({}, n, {
185
- value: nt
185
+ value: et
186
186
  })
187
187
  });
188
188
  }
189
- re < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
+ re < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
190
  }
191
191
  }
192
- var Be = _.ReactCurrentDispatcher, Pe;
193
- function _e(n, c, p) {
192
+ var Oe = R.ReactCurrentDispatcher, Be;
193
+ function Se(n, s, p) {
194
194
  {
195
- if (Pe === void 0)
195
+ if (Be === void 0)
196
196
  try {
197
197
  throw Error();
198
198
  } catch (S) {
199
199
  var y = S.stack.trim().match(/\n( *(at )?)/);
200
- Pe = y && y[1] || "";
200
+ Be = y && y[1] || "";
201
201
  }
202
202
  return `
203
- ` + Pe + n;
203
+ ` + Be + n;
204
204
  }
205
205
  }
206
- var Re = !1, Ce;
206
+ var Pe = !1, _e;
207
207
  {
208
- var Qt = typeof WeakMap == "function" ? WeakMap : Map;
209
- Ce = new Qt();
208
+ var Jt = typeof WeakMap == "function" ? WeakMap : Map;
209
+ _e = new Jt();
210
210
  }
211
- function at(n, c) {
212
- if (!n || Re)
211
+ function nt(n, s) {
212
+ if (!n || Pe)
213
213
  return "";
214
214
  {
215
- var p = Ce.get(n);
215
+ var p = _e.get(n);
216
216
  if (p !== void 0)
217
217
  return p;
218
218
  }
219
219
  var y;
220
- Re = !0;
220
+ Pe = !0;
221
221
  var S = Error.prepareStackTrace;
222
222
  Error.prepareStackTrace = void 0;
223
- var C;
224
- C = Be.current, Be.current = null, Kt();
223
+ var _;
224
+ _ = Oe.current, Oe.current = null, Yt();
225
225
  try {
226
- if (c) {
227
- var x = function() {
226
+ if (s) {
227
+ var $ = function() {
228
228
  throw Error();
229
229
  };
230
- if (Object.defineProperty(x.prototype, "props", {
230
+ if (Object.defineProperty($.prototype, "props", {
231
231
  set: function() {
232
232
  throw Error();
233
233
  }
234
234
  }), typeof Reflect == "object" && Reflect.construct) {
235
235
  try {
236
- Reflect.construct(x, []);
237
- } catch (N) {
238
- y = N;
236
+ Reflect.construct($, []);
237
+ } catch (D) {
238
+ y = D;
239
239
  }
240
- Reflect.construct(n, [], x);
240
+ Reflect.construct(n, [], $);
241
241
  } else {
242
242
  try {
243
- x.call();
244
- } catch (N) {
245
- y = N;
243
+ $.call();
244
+ } catch (D) {
245
+ y = D;
246
246
  }
247
- n.call(x.prototype);
247
+ n.call($.prototype);
248
248
  }
249
249
  } else {
250
250
  try {
251
251
  throw Error();
252
- } catch (N) {
253
- y = N;
252
+ } catch (D) {
253
+ y = D;
254
254
  }
255
255
  n();
256
256
  }
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]; )
257
+ } catch (D) {
258
+ if (D && y && typeof D.stack == "string") {
259
+ for (var v = D.stack.split(`
260
+ `), N = y.stack.split(`
261
+ `), z = v.length - 1, B = N.length - 1; z >= 1 && B >= 0 && v[z] !== N[B]; )
262
262
  B--;
263
263
  for (; z >= 1 && B >= 0; z--, B--)
264
- if (b[z] !== F[B]) {
264
+ if (v[z] !== N[B]) {
265
265
  if (z !== 1 || B !== 1)
266
266
  do
267
- if (z--, B--, B < 0 || b[z] !== F[B]) {
267
+ if (z--, B--, B < 0 || v[z] !== N[B]) {
268
268
  var V = `
269
- ` + b[z].replace(" at new ", " at ");
270
- return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && Ce.set(n, V), V;
269
+ ` + v[z].replace(" at new ", " at ");
270
+ return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && _e.set(n, V), V;
271
271
  }
272
272
  while (z >= 1 && B >= 0);
273
273
  break;
274
274
  }
275
275
  }
276
276
  } finally {
277
- Re = !1, Be.current = C, Jt(), Error.prepareStackTrace = S;
277
+ Pe = !1, Oe.current = _, Kt(), Error.prepareStackTrace = S;
278
278
  }
279
- var de = n ? n.displayName || n.name : "", le = de ? _e(de) : "";
280
- return typeof n == "function" && Ce.set(n, le), le;
279
+ var de = n ? n.displayName || n.name : "", le = de ? Se(de) : "";
280
+ return typeof n == "function" && _e.set(n, le), le;
281
281
  }
282
- function Zt(n, c, p) {
283
- return at(n, !1);
282
+ function Qt(n, s, p) {
283
+ return nt(n, !1);
284
284
  }
285
- function Xt(n) {
286
- var c = n.prototype;
287
- return !!(c && c.isReactComponent);
285
+ function Zt(n) {
286
+ var s = n.prototype;
287
+ return !!(s && s.isReactComponent);
288
288
  }
289
- function Ee(n, c, p) {
289
+ function Ce(n, s, p) {
290
290
  if (n == null)
291
291
  return "";
292
292
  if (typeof n == "function")
293
- return at(n, Xt(n));
293
+ return nt(n, Zt(n));
294
294
  if (typeof n == "string")
295
- return _e(n);
295
+ return Se(n);
296
296
  switch (n) {
297
297
  case f:
298
- return _e("Suspense");
299
- case m:
300
- return _e("SuspenseList");
298
+ return Se("Suspense");
299
+ case h:
300
+ return Se("SuspenseList");
301
301
  }
302
302
  if (typeof n == "object")
303
303
  switch (n.$$typeof) {
304
- case s:
305
- return Zt(n.render);
304
+ case u:
305
+ return Qt(n.render);
306
306
  case k:
307
- return Ee(n.type, c, p);
307
+ return Ce(n.type, s, p);
308
308
  case w: {
309
- var y = n, S = y._payload, C = y._init;
309
+ var y = n, S = y._payload, _ = y._init;
310
310
  try {
311
- return Ee(C(S), c, p);
311
+ return Ce(_(S), s, p);
312
312
  } catch {
313
313
  }
314
314
  }
315
315
  }
316
316
  return "";
317
317
  }
318
- var me = Object.prototype.hasOwnProperty, it = {}, rt = _.ReactDebugCurrentFrame;
319
- function je(n) {
318
+ var me = Object.prototype.hasOwnProperty, ot = {}, at = R.ReactDebugCurrentFrame;
319
+ function Ee(n) {
320
320
  if (n) {
321
- var c = n._owner, p = Ee(n.type, n._source, c ? c.type : null);
322
- rt.setExtraStackFrame(p);
321
+ var s = n._owner, p = Ce(n.type, n._source, s ? s.type : null);
322
+ at.setExtraStackFrame(p);
323
323
  } else
324
- rt.setExtraStackFrame(null);
324
+ at.setExtraStackFrame(null);
325
325
  }
326
- function en(n, c, p, y, S) {
326
+ function Xt(n, s, p, y, S) {
327
327
  {
328
- var C = Function.call.bind(me);
329
- for (var x in n)
330
- if (C(n, x)) {
331
- var b = void 0;
328
+ var _ = Function.call.bind(me);
329
+ for (var $ in n)
330
+ if (_(n, $)) {
331
+ var v = void 0;
332
332
  try {
333
- if (typeof n[x] != "function") {
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;
333
+ if (typeof n[$] != "function") {
334
+ var N = Error((y || "React class") + ": " + p + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw N.name = "Invariant Violation", N;
336
336
  }
337
- b = n[x](c, x, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
+ v = n[$](s, $, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
338
  } catch (z) {
339
- b = z;
339
+ v = z;
340
340
  }
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));
341
+ v && !(v instanceof Error) && (Ee(S), b("%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, $, typeof v), Ee(null)), v instanceof Error && !(v.message in ot) && (ot[v.message] = !0, Ee(S), b("Failed %s type: %s", p, v.message), Ee(null));
342
342
  }
343
343
  }
344
344
  }
345
- var tn = Array.isArray;
346
- function Ie(n) {
347
- return tn(n);
345
+ var en = Array.isArray;
346
+ function Re(n) {
347
+ return en(n);
348
348
  }
349
- function nn(n) {
349
+ function tn(n) {
350
350
  {
351
- var c = typeof Symbol == "function" && Symbol.toStringTag, p = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
351
+ var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
352
352
  return p;
353
353
  }
354
354
  }
355
- function on(n) {
355
+ function nn(n) {
356
356
  try {
357
- return lt(n), !1;
357
+ return it(n), !1;
358
358
  } catch {
359
359
  return !0;
360
360
  }
361
361
  }
362
- function lt(n) {
362
+ function it(n) {
363
363
  return "" + n;
364
364
  }
365
- function ct(n) {
366
- if (on(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);
365
+ function rt(n) {
366
+ if (nn(n))
367
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tn(n)), it(n);
368
368
  }
369
- var ye = _.ReactCurrentOwner, an = {
369
+ var lt = R.ReactCurrentOwner, on = {
370
370
  key: !0,
371
371
  ref: !0,
372
372
  __self: !0,
373
373
  __source: !0
374
- }, st, ut, Fe;
375
- Fe = {};
376
- function rn(n) {
374
+ }, ct, st;
375
+ function an(n) {
377
376
  if (me.call(n, "ref")) {
378
- var c = Object.getOwnPropertyDescriptor(n, "ref").get;
379
- if (c && c.isReactWarning)
377
+ var s = Object.getOwnPropertyDescriptor(n, "ref").get;
378
+ if (s && s.isReactWarning)
380
379
  return !1;
381
380
  }
382
381
  return n.ref !== void 0;
383
382
  }
384
- function ln(n) {
383
+ function rn(n) {
385
384
  if (me.call(n, "key")) {
386
- var c = Object.getOwnPropertyDescriptor(n, "key").get;
387
- if (c && c.isReactWarning)
385
+ var s = Object.getOwnPropertyDescriptor(n, "key").get;
386
+ if (s && s.isReactWarning)
388
387
  return !1;
389
388
  }
390
389
  return n.key !== void 0;
391
390
  }
392
- function cn(n, c) {
393
- if (typeof n.ref == "string" && ye.current && c && ye.current.stateNode !== c) {
394
- var p = H(ye.current.type);
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);
396
- }
391
+ function ln(n, s) {
392
+ typeof n.ref == "string" && lt.current;
397
393
  }
398
- function sn(n, c) {
394
+ function cn(n, s) {
399
395
  {
400
396
  var p = function() {
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));
397
+ ct || (ct = !0, b("%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));
402
398
  };
403
399
  p.isReactWarning = !0, Object.defineProperty(n, "key", {
404
400
  get: p,
@@ -406,10 +402,10 @@ function Cn() {
406
402
  });
407
403
  }
408
404
  }
409
- function un(n, c) {
405
+ function sn(n, s) {
410
406
  {
411
407
  var p = function() {
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));
408
+ st || (st = !0, b("%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));
413
409
  };
414
410
  p.isReactWarning = !0, Object.defineProperty(n, "ref", {
415
411
  get: p,
@@ -417,70 +413,70 @@ function Cn() {
417
413
  });
418
414
  }
419
415
  }
420
- var dn = function(n, c, p, y, S, C, x) {
421
- var b = {
416
+ var un = function(n, s, p, y, S, _, $) {
417
+ var v = {
422
418
  // This tag allows us to uniquely identify this as a React Element
423
419
  $$typeof: e,
424
420
  // Built-in properties that belong on the element
425
421
  type: n,
426
- key: c,
422
+ key: s,
427
423
  ref: p,
428
- props: x,
424
+ props: $,
429
425
  // Record the component responsible for creating this element.
430
- _owner: C
426
+ _owner: _
431
427
  };
432
- return b._store = {}, Object.defineProperty(b._store, "validated", {
428
+ return v._store = {}, Object.defineProperty(v._store, "validated", {
433
429
  configurable: !1,
434
430
  enumerable: !1,
435
431
  writable: !0,
436
432
  value: !1
437
- }), Object.defineProperty(b, "_self", {
433
+ }), Object.defineProperty(v, "_self", {
438
434
  configurable: !1,
439
435
  enumerable: !1,
440
436
  writable: !1,
441
437
  value: y
442
- }), Object.defineProperty(b, "_source", {
438
+ }), Object.defineProperty(v, "_source", {
443
439
  configurable: !1,
444
440
  enumerable: !1,
445
441
  writable: !1,
446
442
  value: S
447
- }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
443
+ }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
448
444
  };
449
- function fn(n, c, p, y, S) {
445
+ function dn(n, s, p, y, S) {
450
446
  {
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]);
447
+ var _, $ = {}, v = null, N = null;
448
+ p !== void 0 && (rt(p), v = "" + p), rn(s) && (rt(s.key), v = "" + s.key), an(s) && (N = s.ref, ln(s, S));
449
+ for (_ in s)
450
+ me.call(s, _) && !on.hasOwnProperty(_) && ($[_] = s[_]);
455
451
  if (n && n.defaultProps) {
456
452
  var z = n.defaultProps;
457
- for (C in z)
458
- x[C] === void 0 && (x[C] = z[C]);
453
+ for (_ in z)
454
+ $[_] === void 0 && ($[_] = z[_]);
459
455
  }
460
- if (b || F) {
456
+ if (v || N) {
461
457
  var B = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
462
- b && sn(x, B), F && un(x, B);
458
+ v && cn($, B), N && sn($, B);
463
459
  }
464
- return dn(n, b, F, S, y, ye.current, x);
460
+ return un(n, v, N, S, y, lt.current, $);
465
461
  }
466
462
  }
467
- var Ne = _.ReactCurrentOwner, dt = _.ReactDebugCurrentFrame;
463
+ var Ie = R.ReactCurrentOwner, ut = R.ReactDebugCurrentFrame;
468
464
  function ue(n) {
469
465
  if (n) {
470
- var c = n._owner, p = Ee(n.type, n._source, c ? c.type : null);
471
- dt.setExtraStackFrame(p);
466
+ var s = n._owner, p = Ce(n.type, n._source, s ? s.type : null);
467
+ ut.setExtraStackFrame(p);
472
468
  } else
473
- dt.setExtraStackFrame(null);
469
+ ut.setExtraStackFrame(null);
474
470
  }
475
- var De;
476
- De = !1;
477
- function Ue(n) {
471
+ var Fe;
472
+ Fe = !1;
473
+ function Ne(n) {
478
474
  return typeof n == "object" && n !== null && n.$$typeof === e;
479
475
  }
480
- function ft() {
476
+ function dt() {
481
477
  {
482
- if (Ne.current) {
483
- var n = H(Ne.current.type);
478
+ if (Ie.current) {
479
+ var n = J(Ie.current.type);
484
480
  if (n)
485
481
  return `
486
482
 
@@ -489,153 +485,153 @@ Check the render method of \`` + n + "`.";
489
485
  return "";
490
486
  }
491
487
  }
492
- function pn(n) {
488
+ function fn(n) {
493
489
  return "";
494
490
  }
495
- var pt = {};
496
- function gn(n) {
491
+ var ft = {};
492
+ function pn(n) {
497
493
  {
498
- var c = ft();
499
- if (!c) {
494
+ var s = dt();
495
+ if (!s) {
500
496
  var p = typeof n == "string" ? n : n.displayName || n.name;
501
- p && (c = `
497
+ p && (s = `
502
498
 
503
499
  Check the top-level render call using <` + p + ">.");
504
500
  }
505
- return c;
501
+ return s;
506
502
  }
507
503
  }
508
- function gt(n, c) {
504
+ function pt(n, s) {
509
505
  {
510
506
  if (!n._store || n._store.validated || n.key != null)
511
507
  return;
512
508
  n._store.validated = !0;
513
- var p = gn(c);
514
- if (pt[p])
509
+ var p = pn(s);
510
+ if (ft[p])
515
511
  return;
516
- pt[p] = !0;
512
+ ft[p] = !0;
517
513
  var y = "";
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);
514
+ n && n._owner && n._owner !== Ie.current && (y = " It was passed a child from " + J(n._owner.type) + "."), ue(n), b('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);
519
515
  }
520
516
  }
521
- function ht(n, c) {
517
+ function gt(n, s) {
522
518
  {
523
519
  if (typeof n != "object")
524
520
  return;
525
- if (Ie(n))
521
+ if (Re(n))
526
522
  for (var p = 0; p < n.length; p++) {
527
523
  var y = n[p];
528
- Ue(y) && gt(y, c);
524
+ Ne(y) && pt(y, s);
529
525
  }
530
- else if (Ue(n))
526
+ else if (Ne(n))
531
527
  n._store && (n._store.validated = !0);
532
528
  else if (n) {
533
- var S = E(n);
529
+ var S = Q(n);
534
530
  if (typeof S == "function" && S !== n.entries)
535
- for (var C = S.call(n), x; !(x = C.next()).done; )
536
- Ue(x.value) && gt(x.value, c);
531
+ for (var _ = S.call(n), $; !($ = _.next()).done; )
532
+ Ne($.value) && pt($.value, s);
537
533
  }
538
534
  }
539
535
  }
540
- function hn(n) {
536
+ function gn(n) {
541
537
  {
542
- var c = n.type;
543
- if (c == null || typeof c == "string")
538
+ var s = n.type;
539
+ if (s == null || typeof s == "string")
544
540
  return;
545
541
  var p;
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.
542
+ if (typeof s == "function")
543
+ p = s.propTypes;
544
+ else if (typeof s == "object" && (s.$$typeof === u || // Note: Memo only checks outer props here.
549
545
  // Inner props are checked in the reconciler.
550
- c.$$typeof === k))
551
- p = c.propTypes;
546
+ s.$$typeof === k))
547
+ p = s.propTypes;
552
548
  else
553
549
  return;
554
550
  if (p) {
555
- var y = H(c);
556
- en(p, n.props, "prop", y, n);
557
- } else if (c.PropTypes !== void 0 && !De) {
558
- De = !0;
559
- var S = H(c);
560
- $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
551
+ var y = J(s);
552
+ Xt(p, n.props, "prop", y, n);
553
+ } else if (s.PropTypes !== void 0 && !Fe) {
554
+ Fe = !0;
555
+ var S = J(s);
556
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
561
557
  }
562
- typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
559
  }
564
560
  }
565
- function mn(n) {
561
+ function hn(n) {
566
562
  {
567
- for (var c = Object.keys(n.props), p = 0; p < c.length; p++) {
568
- var y = c[p];
563
+ for (var s = Object.keys(n.props), p = 0; p < s.length; p++) {
564
+ var y = s[p];
569
565
  if (y !== "children" && y !== "key") {
570
- ue(n), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
566
+ ue(n), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
571
567
  break;
572
568
  }
573
569
  }
574
- n.ref !== null && (ue(n), $("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
570
+ n.ref !== null && (ue(n), b("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
575
571
  }
576
572
  }
577
- var mt = {};
578
- function yt(n, c, p, y, S, C) {
573
+ var ht = {};
574
+ function mt(n, s, p, y, S, _) {
579
575
  {
580
- var x = ze(n);
581
- if (!x) {
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();
576
+ var $ = Me(n);
577
+ if (!$) {
578
+ var v = "";
579
+ (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.");
580
+ var N = fn();
581
+ N ? v += N : v += dt();
586
582
  var z;
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);
583
+ n === null ? z = "null" : Re(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (J(n.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, b("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);
588
584
  }
589
- var B = fn(n, c, p, S, C);
585
+ var B = dn(n, s, p, S, _);
590
586
  if (B == null)
591
587
  return B;
592
- if (x) {
593
- var V = c.children;
588
+ if ($) {
589
+ var V = s.children;
594
590
  if (V !== void 0)
595
591
  if (y)
596
- if (Ie(V)) {
592
+ if (Re(V)) {
597
593
  for (var de = 0; de < V.length; de++)
598
- ht(V[de], n);
594
+ gt(V[de], n);
599
595
  Object.freeze && Object.freeze(V);
600
596
  } else
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.");
597
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
602
598
  else
603
- ht(V, n);
599
+ gt(V, n);
604
600
  }
605
- if (me.call(c, "key")) {
606
- var le = H(n), N = Object.keys(c).filter(function($n) {
607
- return $n !== "key";
608
- }), We = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
609
- if (!mt[le + We]) {
610
- var xn = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
611
- $(`A props object containing a "key" prop is being spread into JSX:
601
+ if (me.call(s, "key")) {
602
+ var le = J(n), D = Object.keys(s).filter(function(xn) {
603
+ return xn !== "key";
604
+ }), De = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
605
+ if (!ht[le + De]) {
606
+ var vn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
607
+ b(`A props object containing a "key" prop is being spread into JSX:
612
608
  let props = %s;
613
609
  <%s {...props} />
614
610
  React keys must be passed directly to JSX without using spread:
615
611
  let props = %s;
616
- <%s key={someKey} {...props} />`, We, le, xn, le), mt[le + We] = !0;
612
+ <%s key={someKey} {...props} />`, De, le, vn, le), ht[le + De] = !0;
617
613
  }
618
614
  }
619
- return n === r ? mn(B) : hn(B), B;
615
+ return n === r ? hn(B) : gn(B), B;
620
616
  }
621
617
  }
622
- function yn(n, c, p) {
623
- return yt(n, c, p, !0);
618
+ function mn(n, s, p) {
619
+ return mt(n, s, p, !0);
624
620
  }
625
- function wn(n, c, p) {
626
- return yt(n, c, p, !1);
621
+ function yn(n, s, p) {
622
+ return mt(n, s, p, !1);
627
623
  }
628
- var bn = wn, vn = yn;
629
- be.Fragment = r, be.jsx = bn, be.jsxs = vn;
630
- }()), be;
624
+ var wn = yn, bn = mn;
625
+ we.Fragment = r, we.jsx = wn, we.jsxs = bn;
626
+ }()), we;
631
627
  }
632
- process.env.NODE_ENV === "production" ? Ze.exports = _n() : Ze.exports = Cn();
633
- var a = Ze.exports;
628
+ process.env.NODE_ENV === "production" ? Je.exports = Sn() : Je.exports = _n();
629
+ var a = Je.exports;
634
630
  const d = "https://cdn.casbin.org", P = {
635
631
  casdoor: "https://casdoor",
636
632
  springmicro: void 0
637
633
  };
638
- function En() {
634
+ function Cn() {
639
635
  return "en";
640
636
  }
641
637
  function te() {
@@ -644,65 +640,65 @@ function te() {
644
640
  function G(t, e) {
645
641
  alert(e);
646
642
  }
647
- function jn(t) {
643
+ function En(t) {
648
644
  t !== void 0 && (window.location.href = t);
649
645
  }
650
- function Rt(t) {
646
+ function Pt(t) {
651
647
  return !(t.provider === void 0 || t.provider === null || !["OAuth", "SAML", "Web3"].includes(t.provider.category) || t.provider.type === "WeChatMiniProgram");
652
648
  }
653
- function Ln(t) {
654
- return Rt(t) && t.prompted;
649
+ function jn(t) {
650
+ return Pt(t) && t.prompted;
655
651
  }
656
- function Tn(t) {
652
+ function Ln(t) {
657
653
  return t.visible && t.prompted;
658
654
  }
659
- function An(t) {
655
+ function Tn(t) {
660
656
  var e;
661
657
  return (e = t.providers) == null ? void 0 : e.filter(
662
- (o) => Ln(o)
658
+ (o) => jn(o)
663
659
  );
664
660
  }
665
- function Mn(t) {
661
+ function An(t) {
666
662
  var e;
667
663
  return (e = t.signupItems) == null ? void 0 : e.filter(
668
- (o) => Tn(o)
664
+ (o) => Ln(o)
669
665
  );
670
666
  }
671
- function zn(t, e) {
667
+ function Mn(t, e) {
672
668
  var r;
673
669
  const o = (r = t.signupItems) == null ? void 0 : r.filter(
674
670
  (i) => i.name === e
675
671
  );
676
672
  return (o == null ? void 0 : o.length) ?? !1 ? o[0] : null;
677
673
  }
678
- function On(t) {
679
- const e = zn(t, "Affiliation");
674
+ function zn(t) {
675
+ const e = Mn(t, "Affiliation");
680
676
  return e === null ? !1 : e.prompted;
681
677
  }
682
- function vt(t) {
678
+ function bt(t) {
683
679
  return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t);
684
680
  }
685
- function Ae(t, e) {
681
+ function Te(t, e) {
686
682
  return t && t.signinMethods ? t.signinMethods.filter((o) => o.name === e).length > 0 : !1;
687
683
  }
684
+ function On(t) {
685
+ return Te(t, "Password");
686
+ }
688
687
  function Bn(t) {
689
- return Ae(t, "Password");
688
+ return Te(t, "Verification code");
690
689
  }
691
690
  function Pn(t) {
692
- return Ae(t, "Verification code");
691
+ return Te(t, "WebAuthn");
693
692
  }
694
693
  function Rn(t) {
695
- return Ae(t, "WebAuthn");
694
+ return Te(t, "LDAP");
696
695
  }
697
696
  function In(t) {
698
- return Ae(t, "LDAP");
699
- }
700
- function Fn(t) {
701
- const e = An(t);
697
+ const e = Tn(t);
702
698
  if ((e == null ? void 0 : e.length) ?? !1)
703
699
  return !0;
704
- const o = Mn(t);
705
- return (o == null ? void 0 : o.length) ?? !1 ? !0 : On(t);
700
+ const o = An(t);
701
+ return (o == null ? void 0 : o.length) ?? !1 ? !0 : zn(t);
706
702
  }
707
703
  function se(t) {
708
704
  if (t.type === "Custom" && t.customLogo)
@@ -710,11 +706,11 @@ function se(t) {
710
706
  if (t.category === "OAuth")
711
707
  return `${d}/img/social_${t.type.toLowerCase()}.png`;
712
708
  {
713
- const e = Nn[t.category][t.type];
709
+ const e = Fn[t.category][t.type];
714
710
  return e ? e.logo : "";
715
711
  }
716
712
  }
717
- const Nn = {
713
+ const Fn = {
718
714
  SMS: {
719
715
  "Aliyun SMS": {
720
716
  logo: `${d}/img/social_aliyun.png`,
@@ -1002,7 +998,7 @@ const Nn = {
1002
998
  }
1003
999
  }
1004
1000
  };
1005
- function Dn(t = "") {
1001
+ function Nn(t = "") {
1006
1002
  return fetch(`${P.casdoor}/api/get-account${t}`, {
1007
1003
  method: "GET",
1008
1004
  credentials: "include",
@@ -1011,7 +1007,7 @@ function Dn(t = "") {
1011
1007
  }
1012
1008
  }).then((e) => e.json());
1013
1009
  }
1014
- function Un(t) {
1010
+ function Dn(t) {
1015
1011
  let e = `${P.casdoor}/api/signup`;
1016
1012
  return P.springmicro && (e = `${P.springmicro}/api/accounts/users/register`), fetch(e, {
1017
1013
  method: "POST",
@@ -1023,14 +1019,14 @@ function Un(t) {
1023
1019
  }
1024
1020
  }).then((o) => o.json());
1025
1021
  }
1026
- function Wn(t) {
1022
+ function Un(t) {
1027
1023
  return `?type=${t == null ? void 0 : t.type}&id=${t == null ? void 0 : t.id}&redirectUri=${t == null ? void 0 : t.service}`;
1028
1024
  }
1029
- function Hn(t) {
1025
+ function Wn(t) {
1030
1026
  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}`;
1031
1027
  }
1032
- function It(t) {
1033
- const e = (t == null ? void 0 : t.type) === "cas" ? Wn(t) : Hn(t);
1028
+ function Rt(t) {
1029
+ const e = (t == null ? void 0 : t.type) === "cas" ? Un(t) : Wn(t);
1034
1030
  return fetch(`${P.casdoor}/api/get-app-login${e}`, {
1035
1031
  method: "GET",
1036
1032
  credentials: "include",
@@ -1039,7 +1035,7 @@ function It(t) {
1039
1035
  }
1040
1036
  }).then((o) => o.json());
1041
1037
  }
1042
- function Vn(t, e) {
1038
+ function Hn(t, e) {
1043
1039
  return fetch(
1044
1040
  `${P.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1045
1041
  {
@@ -1051,7 +1047,7 @@ function Vn(t, e) {
1051
1047
  }
1052
1048
  ).then((o) => o.json());
1053
1049
  }
1054
- function Gn(t) {
1050
+ function Vn(t) {
1055
1051
  return fetch(`${P.casdoor}/api/get-webhook-event?ticket=${t}`, {
1056
1052
  method: "GET",
1057
1053
  credentials: "include",
@@ -1060,7 +1056,7 @@ function Gn(t) {
1060
1056
  }
1061
1057
  }).then((e) => e.json());
1062
1058
  }
1063
- function qn(t) {
1059
+ function Gn(t) {
1064
1060
  return fetch(`${P.casdoor}/api/get-qrcode?id=${t}`, {
1065
1061
  method: "GET",
1066
1062
  credentials: "include",
@@ -1069,7 +1065,7 @@ function qn(t) {
1069
1065
  }
1070
1066
  }).then((e) => e.json());
1071
1067
  }
1072
- function Xe(t, e) {
1068
+ function Qe(t, e) {
1073
1069
  return fetch(
1074
1070
  `${P.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1075
1071
  {
@@ -1394,100 +1390,100 @@ const ce = {
1394
1390
  endpoint: ""
1395
1391
  }
1396
1392
  };
1397
- function Yn(t, e, o, r) {
1393
+ function qn(t, e, o, r) {
1398
1394
  if (t === null || e === null)
1399
1395
  return "";
1400
1396
  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(
1397
+ const c = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", u = Yn(
1402
1398
  t.name,
1403
1399
  e.name,
1404
1400
  o,
1405
1401
  g
1406
1402
  ), f = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
1407
1403
  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}`;
1404
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&state=${u}`;
1409
1405
  if (e.type === "AzureADB2C")
1410
1406
  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(
1411
1407
  l
1412
- )}&scope=${u}&response_type=code&state=${s}&prompt=login`;
1408
+ )}&scope=${c}&response_type=code&state=${u}&prompt=login`;
1413
1409
  if (e.type === "DingTalk")
1414
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&prompt=consent&state=${s}`;
1410
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&prompt=consent&state=${u}`;
1415
1411
  if (e.type === "WeChat")
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`;
1412
+ return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${u}&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=${u}&code=${"wechat_oa:" + r}` : `${i}?appid=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&state=${u}#wechat_redirect`;
1417
1413
  if (e.type === "WeCom")
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}`;
1414
+ return e.subType === "Internal" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${c}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (i = ce[e.type].internalEndpoint, `${i}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${u}&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=${u}&scope=${c}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1419
1415
  if (e.type === "Lark")
1420
- return `${i}?app_id=${e.clientId}&redirect_uri=${l}&state=${s}`;
1416
+ return `${i}?app_id=${e.clientId}&redirect_uri=${l}&state=${u}`;
1421
1417
  if (e.type === "ADFS")
1422
- return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&nonce=casdoor&scope=openid`;
1418
+ return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&nonce=casdoor&scope=openid`;
1423
1419
  if (e.type === "Baidu")
1424
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}&display=popup`;
1420
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&display=popup`;
1425
1421
  if (e.type === "Alipay")
1426
- return `${i}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}&display=popup`;
1422
+ return `${i}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&display=popup`;
1427
1423
  if (e.type === "Casdoor")
1428
- return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}`;
1424
+ return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
1429
1425
  if (e.type === "Infoflow")
1430
- return `${i}?appid=${e.clientId}&redirect_uri=${l}?state=${s}`;
1426
+ return `${i}?appid=${e.clientId}&redirect_uri=${l}?state=${u}`;
1431
1427
  if (e.type === "Apple")
1432
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code%20id_token&scope=${u}&response_mode=form_post`;
1428
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code%20id_token&scope=${c}&response_mode=form_post`;
1433
1429
  if (e.type === "Steam")
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}`;
1430
+ 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=${u}`;
1435
1431
  if (e.type === "Okta")
1436
- return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}`;
1432
+ return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
1437
1433
  if (e.type === "Douyin" || e.type === "TikTok")
1438
- return `${i}?client_key=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}`;
1434
+ return `${i}?client_key=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
1439
1435
  if (e.type === "Custom")
1440
- return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${s}`;
1436
+ return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${u}`;
1441
1437
  if (e.type === "Bilibili")
1442
- return `${i}#/?client_id=${e.clientId}&return_url=${l}&state=${s}&response_type=code`;
1438
+ return `${i}#/?client_id=${e.clientId}&return_url=${l}&state=${u}&response_type=code`;
1443
1439
  if (e.type === "Deezer")
1444
- return `${i}?app_id=${e.clientId}&redirect_uri=${l}&perms=${u}`;
1440
+ return `${i}?app_id=${e.clientId}&redirect_uri=${l}&perms=${c}`;
1445
1441
  if (e.type === "Lastfm")
1446
1442
  return `${i}?api_key=${e.clientId}&cb=${l}`;
1447
1443
  if (e.type === "Shopify")
1448
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&state=${s}&grant_options[]=per-user`;
1444
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&state=${u}&grant_options[]=per-user`;
1449
1445
  if (e.type === "Twitter" || e.type === "Fitbit")
1450
- return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${s}&response_type=code&scope=${u}&code_challenge=${f}&code_challenge_method=S256`;
1446
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&code_challenge=${f}&code_challenge_method=S256`;
1451
1447
  if (e.type === "MetaMask")
1452
- return `${l}?state=${s}`;
1448
+ return `${l}?state=${u}`;
1453
1449
  if (e.type === "Web3Onboard")
1454
- return `${l}?state=${s}`;
1450
+ return `${l}?state=${u}`;
1455
1451
  }
1456
- function K(t) {
1452
+ function q(t) {
1457
1453
  return t ?? "";
1458
1454
  }
1459
- function He(t) {
1455
+ function Ue(t) {
1460
1456
  const o = window.location.href.split(`${t}=`)[1];
1461
1457
  if (!o)
1462
1458
  return "";
1463
1459
  let r = o.split("&")[0];
1464
1460
  return r ? (r = decodeURIComponent(r), r) : "";
1465
1461
  }
1466
- function Ft(t) {
1467
- const e = new URLSearchParams(window.location.search), o = K(e.get("client_id")), r = K(e.get("response_type"));
1468
- let i = He("redirect_uri");
1469
- i === "" && (i = K(e.get("redirect_uri")));
1470
- let l = K(e.get("scope"));
1471
- i.includes("#") && l === "" && (l = He("scope"));
1472
- let u = K(e.get("state"));
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 : {
1462
+ function It(t) {
1463
+ const e = new URLSearchParams(window.location.search), o = q(e.get("client_id")), r = q(e.get("response_type"));
1464
+ let i = Ue("redirect_uri");
1465
+ i === "" && (i = q(e.get("redirect_uri")));
1466
+ let l = q(e.get("scope"));
1467
+ i.includes("#") && l === "" && (l = Ue("scope"));
1468
+ let c = q(e.get("state"));
1469
+ c.startsWith("/auth/oauth2/login.php?wantsurl=") && (c = encodeURIComponent(c)), i.includes("#") && c === "" && (c = Ue("state"));
1470
+ const g = q(e.get("nonce")), u = q(e.get("code_challenge_method")), f = q(e.get("code_challenge")), h = q(e.get("SAMLRequest")), k = q(e.get("RelayState")), w = q(e.get("noRedirect"));
1471
+ return o === "" && h === "" ? null : {
1476
1472
  clientId: o,
1477
1473
  responseType: r,
1478
1474
  redirectUri: i,
1479
1475
  scope: l,
1480
- state: u,
1476
+ state: c,
1481
1477
  nonce: g,
1482
- challengeMethod: s,
1478
+ challengeMethod: u,
1483
1479
  codeChallenge: f,
1484
- samlRequest: m,
1480
+ samlRequest: h,
1485
1481
  relayState: k,
1486
1482
  noRedirect: w,
1487
1483
  type: "code"
1488
1484
  };
1489
1485
  }
1490
- function Kn(t, e, o, r) {
1486
+ function Yn(t, e, o, r) {
1491
1487
  let i = window.location.search;
1492
1488
  if (i = `${i}&application=${encodeURIComponent(
1493
1489
  t
@@ -1497,48 +1493,48 @@ function Kn(t, e, o, r) {
1497
1493
  } else
1498
1494
  return btoa(i);
1499
1495
  }
1500
- function Jn(t, e, o, r) {
1501
- Gn(o).then((i) => {
1496
+ function Kn(t, e, o, r) {
1497
+ Vn(o).then((i) => {
1502
1498
  if (i.data === "SCAN" || i.data === "subscribe") {
1503
1499
  const l = i == null ? void 0 : i.data2;
1504
- jn(
1505
- Yn(t, e, r ?? "signup", l)
1500
+ En(
1501
+ qn(t, e, r ?? "signup", l)
1506
1502
  );
1507
1503
  }
1508
1504
  });
1509
1505
  }
1510
- async function Qn(t, e, o) {
1506
+ async function Jn(t, e, o) {
1511
1507
  document.addEventListener("click", function(i) {
1512
1508
  const l = document.getElementById("WechatOfficialAccountModal");
1513
1509
  l && i.target === l && l.close();
1514
1510
  });
1515
1511
  function r(i, l) {
1516
- function u() {
1517
- const m = document.getElementById("WechatOfficialAccountModal");
1518
- m && m.showModal();
1512
+ function c() {
1513
+ const h = document.getElementById("WechatOfficialAccountModal");
1514
+ h && h.showModal();
1519
1515
  }
1520
1516
  function g() {
1521
1517
  window.clearInterval(l);
1522
- const m = document.getElementById("WechatOfficialAccountModal");
1523
- m && m.close();
1518
+ const h = document.getElementById("WechatOfficialAccountModal");
1519
+ h && h.close();
1524
1520
  }
1525
1521
  window.closeDialog = g;
1526
- const s = `
1522
+ const u = `
1527
1523
  <div style="margin-right: 34px;">
1528
1524
  <img src="data:image/png;base64,${i.data}" alt="Wechat QR code" style="width: 100%;" />
1529
1525
  </div>
1530
1526
  <button onclick="window.closeDialog()">Close</button>
1531
1527
  `, f = document.createElement("dialog");
1532
- f.innerHTML = s, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), u();
1528
+ f.innerHTML = u, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), c();
1533
1529
  }
1534
- qn(`${e.owner}/${e.name}`).then(
1530
+ Gn(`${e.owner}/${e.name}`).then(
1535
1531
  async (i) => {
1536
1532
  if (i.status !== "ok") {
1537
1533
  G("error", i == null ? void 0 : i.msg);
1538
1534
  return;
1539
1535
  }
1540
1536
  const l = setInterval(
1541
- await Jn,
1537
+ await Kn,
1542
1538
  1e3,
1543
1539
  t,
1544
1540
  e,
@@ -1549,7 +1545,7 @@ async function Qn(t, e, o) {
1549
1545
  }
1550
1546
  );
1551
1547
  }
1552
- function Nt(t, e) {
1548
+ function Ft(t, e) {
1553
1549
  return fetch(
1554
1550
  `${P.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1555
1551
  e
@@ -1563,9 +1559,9 @@ function Nt(t, e) {
1563
1559
  }
1564
1560
  ).then((o) => o.json());
1565
1561
  }
1566
- function Dt(t, e, o, r, i = "", l, u, g, s = "") {
1562
+ function Nt(t, e, o, r, i = "", l, c, g, u = "") {
1567
1563
  const f = new FormData();
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(`${P.casdoor}/api/send-verification-code`, {
1564
+ 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", c), f.append("applicationId", "admin/" + g), f.append("checkUser", u), fetch(`${P.casdoor}/api/send-verification-code`, {
1569
1565
  method: "POST",
1570
1566
  credentials: P.casdoor.startsWith("https") ? "include" : void 0,
1571
1567
  body: f,
@@ -1573,9 +1569,9 @@ function Dt(t, e, o, r, i = "", l, u, g, s = "") {
1573
1569
  // "Content-Type": "application/json",
1574
1570
  "Accept-Language": te()
1575
1571
  }
1576
- }).then((m) => m.json()).then((m) => m.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", m.msg), !1));
1572
+ }).then((h) => h.json()).then((h) => h.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", h.msg), !1));
1577
1573
  }
1578
- function Ut(t, e, o) {
1574
+ function Dt(t, e, o) {
1579
1575
  return fetch(
1580
1576
  `${P.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1581
1577
  e
@@ -1588,24 +1584,24 @@ function Ut(t, e, o) {
1588
1584
  }
1589
1585
  ).then((r) => r.json()).then((r) => r.data);
1590
1586
  }
1591
- const Zn = (t) => {
1587
+ const Qn = (t) => {
1592
1588
  const {
1593
1589
  captchaType: e,
1594
1590
  subType: o,
1595
1591
  siteKey: r,
1596
1592
  clientSecret: i,
1597
1593
  clientId2: l,
1598
- clientSecret2: u,
1594
+ clientSecret2: c,
1599
1595
  onChange: g
1600
- } = t, s = (f) => {
1601
- const m = document.createElement("script");
1602
- m.async = !1, m.src = f, document.getElementsByTagName("body")[0].appendChild(m);
1596
+ } = t, u = (f) => {
1597
+ const h = document.createElement("script");
1598
+ h.async = !1, h.src = f, document.getElementsByTagName("body")[0].appendChild(h);
1603
1599
  };
1604
- return Pt(() => {
1600
+ return Bt(() => {
1605
1601
  switch (e) {
1606
1602
  case "reCAPTCHA": {
1607
1603
  const f = setInterval(() => {
1608
- window.grecaptcha || s("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
1604
+ window.grecaptcha || u("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
1609
1605
  sitekey: r,
1610
1606
  callback: g
1611
1607
  }), clearInterval(f));
@@ -1614,7 +1610,7 @@ const Zn = (t) => {
1614
1610
  }
1615
1611
  case "hCaptcha": {
1616
1612
  const f = setInterval(() => {
1617
- window.hcaptcha || s("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
1613
+ window.hcaptcha || u("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
1618
1614
  sitekey: r,
1619
1615
  callback: g
1620
1616
  }), clearInterval(f));
@@ -1623,14 +1619,14 @@ const Zn = (t) => {
1623
1619
  }
1624
1620
  case "Aliyun Captcha": {
1625
1621
  const f = setInterval(() => {
1626
- window.AWSC || s("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (u && u !== "***" && window.AWSC.use(o, function(m, k) {
1622
+ window.AWSC || u("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (c && c !== "***" && window.AWSC.use(o, function(h, k) {
1627
1623
  k.init({
1628
- appkey: u,
1624
+ appkey: c,
1629
1625
  scene: l,
1630
1626
  renderTo: "captcha",
1631
1627
  success: function(w) {
1632
1628
  g(
1633
- `SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${u}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
1629
+ `SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${c}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
1634
1630
  );
1635
1631
  }
1636
1632
  });
@@ -1640,8 +1636,8 @@ const Zn = (t) => {
1640
1636
  }
1641
1637
  case "GEETEST": {
1642
1638
  let f = !1;
1643
- const m = setInterval(() => {
1644
- if (window.initGeetest4 || s("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
1639
+ const h = setInterval(() => {
1640
+ if (window.initGeetest4 || u("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
1645
1641
  const k = String(r);
1646
1642
  window.initGeetest4(
1647
1643
  {
@@ -1650,20 +1646,20 @@ const Zn = (t) => {
1650
1646
  },
1651
1647
  function(w) {
1652
1648
  f || (w.appendTo("#captcha"), f = !0), w.onSuccess(function() {
1653
- const v = w.getValidate();
1649
+ const x = w.getValidate();
1654
1650
  g(
1655
- `lot_number=${v.lot_number}&captcha_output=${v.captcha_output}&pass_token=${v.pass_token}&gen_time=${v.gen_time}&captcha_id=${r}`
1651
+ `lot_number=${x.lot_number}&captcha_output=${x.captcha_output}&pass_token=${x.pass_token}&gen_time=${x.gen_time}&captcha_id=${r}`
1656
1652
  );
1657
1653
  });
1658
1654
  }
1659
- ), clearInterval(m);
1655
+ ), clearInterval(h);
1660
1656
  }
1661
1657
  }, 500);
1662
1658
  break;
1663
1659
  }
1664
1660
  case "Cloudflare Turnstile": {
1665
1661
  const f = setInterval(() => {
1666
- window.turnstile || s("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
1662
+ window.turnstile || u("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
1667
1663
  sitekey: r,
1668
1664
  callback: g
1669
1665
  }), clearInterval(f));
@@ -1671,19 +1667,19 @@ const Zn = (t) => {
1671
1667
  break;
1672
1668
  }
1673
1669
  }
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, R] = h.useState(""), ze = h.useRef(null);
1677
- Pt(() => {
1678
- i ? H() : (he(), U(!1));
1670
+ }, [e, o, r, i, l, c]), /* @__PURE__ */ a.jsx("div", { id: "captcha" });
1671
+ }, Zn = (t) => {
1672
+ const { t: e } = Le(), { owner: o, name: r, visible: i, onOk: l, onCancel: c, isCurrentProvider: g } = t, [u, f] = m.useState("none"), [h, k] = m.useState(""), [w, x] = m.useState(""), [A, U] = m.useState(""), [Q, R] = m.useState(""), [b, E] = m.useState(""), [M, W] = m.useState(!1), [ie, pe] = m.useState(""), [ne, I] = m.useState(""), Me = m.useRef(null);
1673
+ Bt(() => {
1674
+ i ? J() : (he(), W(!1));
1679
1675
  }, [i]);
1680
1676
  const ge = () => {
1681
- l == null || l(s, ne, w);
1677
+ l == null || l(u, ne, w);
1682
1678
  }, he = () => {
1683
- R(""), u == null || u();
1684
- }, H = () => {
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));
1679
+ I(""), c == null || c();
1680
+ }, J = () => {
1681
+ Dt(o, r, g).then((T) => {
1682
+ T.type === "none" ? ge() : T.type === "Default" ? (W(!0), x(T.captchaId), pe(T.captchaImage), f("Default")) : (W(!0), f(T.type), k(T.clientId), x(T.clientSecret), U(T.subType), R(T.clientId2), E(T.clientSecret2));
1687
1683
  });
1688
1684
  }, Z = () => /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col items-center", children: [
1689
1685
  /* @__PURE__ */ a.jsx(
@@ -1700,35 +1696,35 @@ const Zn = (t) => {
1700
1696
  {
1701
1697
  className: "input input-bordered w-[200px]",
1702
1698
  type: "text",
1703
- ref: ze,
1699
+ ref: Me,
1704
1700
  value: ne,
1705
1701
  placeholder: e("general.captcha"),
1706
- onKeyDown: (A) => A.key === "Enter" ? ge() : null,
1707
- onChange: (A) => R(A.target.value)
1702
+ onKeyDown: (T) => T.key === "Enter" ? ge() : null,
1703
+ onChange: (T) => I(T.target.value)
1708
1704
  }
1709
1705
  )
1710
- ] }), re = (A) => {
1711
- R(A);
1712
- }, ke = () => s === "Default" ? Z() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
1713
- Zn,
1706
+ ] }), re = (T) => {
1707
+ I(T);
1708
+ }, $e = () => u === "Default" ? Z() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
1709
+ Qn,
1714
1710
  {
1715
- captchaType: s,
1716
- subType: M,
1717
- siteKey: m,
1711
+ captchaType: u,
1712
+ subType: A,
1713
+ siteKey: h,
1718
1714
  clientSecret: w,
1719
1715
  onChange: re,
1720
- clientId2: E,
1721
- clientSecret2: $
1716
+ clientId2: Q,
1717
+ clientSecret2: b
1722
1718
  }
1723
- ) }), Se = () => {
1724
- let A = !1;
1725
- return s === "Default" ? /^\d{5}$/.test(ne) || (A = !0) : ne === "" && (A = !0), [
1719
+ ) }), ke = () => {
1720
+ let T = !1;
1721
+ return u === "Default" ? /^\d{5}$/.test(ne) || (T = !0) : ne === "" && (T = !0), [
1726
1722
  /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
1727
1723
  /* @__PURE__ */ a.jsx(
1728
1724
  "button",
1729
1725
  {
1730
1726
  className: "btn btn-primary",
1731
- disabled: A,
1727
+ disabled: T,
1732
1728
  onClick: ge,
1733
1729
  children: "OK"
1734
1730
  },
@@ -1737,48 +1733,48 @@ const Zn = (t) => {
1737
1733
  ];
1738
1734
  };
1739
1735
  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() }),
1736
+ /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: $e() }),
1741
1737
  /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
1742
1738
  /* @__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() })
1739
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "flex gap-3", children: ke() })
1744
1740
  ] })
1745
1741
  ] }) });
1746
- }, eo = ({
1742
+ }, Xn = ({
1747
1743
  value: t,
1748
1744
  disabled: e,
1749
1745
  textBefore: o,
1750
1746
  onChange: r,
1751
1747
  onButtonClickArgs: i,
1752
1748
  application: l,
1753
- method: u,
1749
+ method: c,
1754
1750
  countryCode: g
1755
1751
  }) => {
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) => {
1757
- let Y = q;
1758
- w(Y);
1759
- const U = () => {
1760
- Y--, w(Y), Y !== 0 && setTimeout(U, 1e3);
1752
+ const { t: u } = Le(), [f, h] = m.useState(!1), [k, w] = m.useState(0), [x, A] = m.useState(!1), U = m.useRef(null), Q = (E = 60) => {
1753
+ let M = E;
1754
+ w(M);
1755
+ const W = () => {
1756
+ M--, w(M), M !== 0 && setTimeout(W, 1e3);
1761
1757
  };
1762
- setTimeout(U, 1e3);
1763
- }, _ = (q, Y, U) => {
1764
- m(!1), M(!0), Dt(
1765
- q,
1766
- Y,
1767
- U,
1768
- u,
1758
+ setTimeout(W, 1e3);
1759
+ }, R = (E, M, W) => {
1760
+ h(!1), A(!0), Nt(
1761
+ E,
1762
+ M,
1763
+ W,
1764
+ c,
1769
1765
  g,
1770
1766
  ...i
1771
1767
  ).then((ie) => {
1772
- M(!1), ie && E(60);
1768
+ A(!1), ie && Q(60);
1773
1769
  });
1774
- }, $ = () => {
1775
- m(!1);
1770
+ }, b = () => {
1771
+ h(!1);
1776
1772
  };
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: [
1773
+ return m.useEffect(() => {
1774
+ U.current = document.getElementById("captcha-modal");
1775
+ }, []), m.useEffect(() => {
1776
+ U.current && (f ? U.current.showModal() : U.current.close());
1777
+ }, [f]), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
1782
1778
  /* @__PURE__ */ a.jsxs("div", { className: "flex", children: [
1783
1779
  /* @__PURE__ */ a.jsx(
1784
1780
  "input",
@@ -1787,7 +1783,7 @@ const Zn = (t) => {
1787
1783
  disabled: e,
1788
1784
  value: t,
1789
1785
  placeholder: "Enter your code",
1790
- onChange: (q) => r(q.target.value),
1786
+ onChange: (E) => r(E.target.value),
1791
1787
  autoComplete: "one-time-code"
1792
1788
  }
1793
1789
  ),
@@ -1796,131 +1792,131 @@ const Zn = (t) => {
1796
1792
  {
1797
1793
  className: "btn",
1798
1794
  disabled: e || k > 0,
1799
- onClick: () => m(!0),
1800
- children: k > 0 ? `${k} s` : s(v ? "code.sending" : "code.sendCode")
1795
+ onClick: () => h(!0),
1796
+ children: k > 0 ? `${k} s` : u(x ? "code.sending" : "code.sendCode")
1801
1797
  }
1802
1798
  )
1803
1799
  ] }),
1804
1800
  /* @__PURE__ */ a.jsx(
1805
- Xn,
1801
+ Zn,
1806
1802
  {
1807
1803
  owner: l.owner,
1808
1804
  name: l.name,
1809
1805
  visible: f,
1810
- onOk: _,
1811
- onCancel: $,
1806
+ onOk: R,
1807
+ onCancel: b,
1812
1808
  isCurrentProvider: !1
1813
1809
  }
1814
1810
  )
1815
1811
  ] });
1816
1812
  };
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, I = (t, e) => {
1813
+ var eo = Object.create, xe = Object.defineProperty, to = Object.defineProperties, no = Object.getOwnPropertyDescriptor, oo = Object.getOwnPropertyDescriptors, ao = Object.getOwnPropertyNames, vt = Object.getOwnPropertySymbols, io = Object.getPrototypeOf, Ut = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, xt = (t, e, o) => e in t ? xe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, F = (t, e) => {
1818
1814
  for (var o in e || (e = {}))
1819
- Wt.call(e, o) && $t(t, o, e[o]);
1820
- if (xt)
1821
- for (var o of xt(e))
1822
- lo.call(e, o) && $t(t, o, e[o]);
1815
+ Ut.call(e, o) && xt(t, o, e[o]);
1816
+ if (vt)
1817
+ for (var o of vt(e))
1818
+ ro.call(e, o) && xt(t, o, e[o]);
1823
1819
  return t;
1824
- }, Ht = (t, e) => no(t, ao(e)), co = (t, e) => {
1820
+ }, Wt = (t, e) => to(t, oo(e)), lo = (t, e) => {
1825
1821
  for (var o in e)
1826
- $e(t, o, { get: e[o], enumerable: !0 });
1827
- }, Vt = (t, e, o, r) => {
1822
+ xe(t, o, { get: e[o], enumerable: !0 });
1823
+ }, Ht = (t, e, o, r) => {
1828
1824
  if (e && typeof e == "object" || typeof e == "function")
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 });
1825
+ for (let i of ao(e))
1826
+ !Ut.call(t, i) && i !== o && xe(t, i, { get: () => e[i], enumerable: !(r = no(e, i)) || r.enumerable });
1831
1827
  return t;
1832
- }, T = (t, e, o) => (o = t != null ? to(ro(t)) : {}, Vt(
1828
+ }, L = (t, e, o) => (o = t != null ? eo(io(t)) : {}, Ht(
1833
1829
  // If the importer is in node compatibility mode or this is not an ESM
1834
1830
  // file that has been converted to a CommonJS file using a Babel-
1835
1831
  // compatible transform (i.e. "__esModule" has not been set), then set
1836
1832
  // "default" to the CommonJS "module.exports" for node compatibility.
1837
- !t || !t.__esModule ? $e(o, "default", { value: t, enumerable: !0 }) : o,
1833
+ !t || !t.__esModule ? xe(o, "default", { value: t, enumerable: !0 }) : o,
1838
1834
  t
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,
1835
+ )), co = (t) => Ht(xe({}, "__esModule", { value: !0 }), t), Vt = {};
1836
+ lo(Vt, {
1837
+ AmazonLoginButton: () => Ao,
1838
+ AppleLoginButton: () => Ko,
1839
+ BufferLoginButton: () => Wo,
1840
+ DiscordLoginButton: () => Zo,
1841
+ FacebookLoginButton: () => bo,
1842
+ GithubLoginButton: () => _o,
1843
+ GitlabLoginButton: () => ba,
1844
+ GoogleLoginButton: () => $o,
1845
+ InstagramLoginButton: () => Oo,
1846
+ LinkedInLoginButton: () => Ro,
1847
+ MetamaskLoginButton: () => ma,
1848
+ MicrosoftLoginButton: () => No,
1849
+ OktaLoginButton: () => ta,
1850
+ SlackLoginButton: () => aa,
1851
+ TelegramLoginButton: () => Go,
1852
+ TikTokLoginButton: () => pa,
1853
+ TwitterLoginButton: () => jo,
1854
+ XLoginButton: () => $a,
1855
+ YahooLoginButton: () => la,
1856
+ ZaloLoginButton: () => ua,
1861
1857
  createButton: () => O
1862
1858
  });
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, I({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), ho = "#FFFFFF", mo = (t) => {
1859
+ var C = co(Vt), We = L(m), oe = L(m), so = L(m), uo = ({ name: t, size: e, format: o }) => /* @__PURE__ */ so.default.createElement("i", { className: o(t), style: { fontSize: e } }), fo = uo, $t = L(m), po = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ $t.default.createElement(fo, F({}, { format: o, name: t, size: e })) : /* @__PURE__ */ $t.default.createElement(t, { size: e, color: r }), go = "#FFFFFF", ho = (t) => {
1864
1860
  const [e, o] = (0, oe.useState)(!1), [r, i] = (0, oe.useState)(!1), l = () => {
1865
- var R;
1866
- i(!0), (R = t.onMouseEnter) == null || R.call(t);
1867
- }, u = () => {
1868
- var R;
1869
- i(!1), (R = t.onMouseLeave) == null || R.call(t);
1870
- }, g = () => o(!0), s = () => o(!1), f = () => {
1871
- var R;
1872
- return (R = t.onClick) == null ? void 0 : R.call(t);
1861
+ var I;
1862
+ i(!0), (I = t.onMouseEnter) == null || I.call(t);
1863
+ }, c = () => {
1864
+ var I;
1865
+ i(!1), (I = t.onMouseLeave) == null || I.call(t);
1866
+ }, g = () => o(!0), u = () => o(!1), f = () => {
1867
+ var I;
1868
+ return (I = t.onClick) == null ? void 0 : I.call(t);
1873
1869
  }, {
1874
- activeStyle: m,
1870
+ activeStyle: h,
1875
1871
  align: k = "left",
1876
1872
  text: w,
1877
- children: v = w,
1878
- className: M,
1879
- icon: D,
1880
- iconFormat: E = (R) => R,
1881
- iconSize: _ = "26px",
1882
- iconColor: $ = ho,
1883
- preventActiveStyles: q = !1,
1884
- size: Y = "50px",
1885
- style: U,
1873
+ children: x = w,
1874
+ className: A,
1875
+ icon: U,
1876
+ iconFormat: Q = (I) => I,
1877
+ iconSize: R = "26px",
1878
+ iconColor: b = go,
1879
+ preventActiveStyles: E = !1,
1880
+ size: M = "50px",
1881
+ style: W,
1886
1882
  disabled: ie,
1887
1883
  type: pe = "button"
1888
- } = t, ne = yo(Ge.button, {
1889
- activeStyle: q ? U : m,
1890
- customStyle: U,
1884
+ } = t, ne = mo(He.button, {
1885
+ activeStyle: E ? W : h,
1886
+ customStyle: W,
1891
1887
  active: r || e,
1892
- size: Y
1888
+ size: M
1893
1889
  });
1894
1890
  return /* @__PURE__ */ oe.default.createElement(
1895
1891
  "button",
1896
- I({
1892
+ F({
1897
1893
  style: ne,
1898
1894
  onClick: f,
1899
1895
  onMouseEnter: l,
1900
- onMouseLeave: u,
1896
+ onMouseLeave: c,
1901
1897
  onFocus: g,
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(
1898
+ onBlur: u
1899
+ }, { className: A, disabled: ie, type: pe }),
1900
+ /* @__PURE__ */ oe.default.createElement("div", { style: He.flex }, !kt(R) && !!U && /* @__PURE__ */ oe.default.createElement(
1905
1901
  "div",
1906
1902
  {
1907
1903
  style: {
1908
1904
  display: "flex",
1909
1905
  justifyContent: "center",
1910
- minWidth: _
1906
+ minWidth: R
1911
1907
  }
1912
1908
  },
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))
1909
+ /* @__PURE__ */ oe.default.createElement(po, { type: U, size: R, format: Q, color: b })
1910
+ ), !kt(R) && /* @__PURE__ */ oe.default.createElement("div", { style: He.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: k, width: "100%" } }, x))
1915
1911
  );
1916
- }, St = (t) => t === "0" || t === "0px" || t === 0, yo = (t, {
1912
+ }, kt = (t) => t === "0" || t === "0px" || t === 0, mo = (t, {
1917
1913
  size: e,
1918
1914
  customStyle: o,
1919
1915
  active: r,
1920
1916
  activeStyle: i
1921
- }) => I(I(Ht(I({}, t), {
1917
+ }) => F(F(Wt(F({}, t), {
1922
1918
  height: e
1923
- }), o), r && i), Ge = {
1919
+ }), o), r && i), He = {
1924
1920
  button: {
1925
1921
  display: "block",
1926
1922
  border: 0,
@@ -1943,21 +1939,21 @@ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, forma
1943
1939
  display: "flex",
1944
1940
  height: "100%"
1945
1941
  }
1946
- }, wo = T(h), O = (t) => (e) => {
1947
- const o = Ht(I(I({
1948
- activeStyle: I(I({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1942
+ }, yo = L(m), O = (t) => (e) => {
1943
+ const o = Wt(F(F({
1944
+ activeStyle: F(F({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1949
1945
  }, t), e), {
1950
- style: I(I({}, t == null ? void 0 : t.style), e.style)
1946
+ style: F(F({}, t == null ? void 0 : t.style), e.style)
1951
1947
  });
1952
- return /* @__PURE__ */ wo.default.createElement(mo, I({}, o));
1953
- }, bo = {
1948
+ return /* @__PURE__ */ yo.default.createElement(ho, F({}, o));
1949
+ }, wo = {
1954
1950
  activeStyle: { background: "#293e69" },
1955
- icon: xo,
1951
+ icon: vo,
1956
1952
  style: { background: "#3b5998" },
1957
1953
  text: "Log in with Facebook"
1958
- }, vo = O(bo);
1959
- function xo({ size: t, color: e }) {
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(
1954
+ }, bo = O(wo);
1955
+ function vo({ size: t, color: e }) {
1956
+ return /* @__PURE__ */ We.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 90 90" }, /* @__PURE__ */ We.default.createElement("g", null, /* @__PURE__ */ We.default.createElement(
1961
1957
  "path",
1962
1958
  {
1963
1959
  d: "M90,15.001C90,7.119,82.884,0,75,0H15C7.116,0,0,7.119,0,15.001v59.998 C0,82.881,7.116,90,15.001,90H45V56H34V41h11v-5.844C45,25.077,52.568,16,61.875,16H74v15H61.875C60.548,31,59,32.611,59,35.024V41 h15v15H59v34h16c7.884,0,15-7.119,15-15.001V15.001z",
@@ -1965,14 +1961,14 @@ function xo({ size: t, color: e }) {
1965
1961
  }
1966
1962
  )));
1967
1963
  }
1968
- var L = T(h), $o = {
1964
+ var j = L(m), xo = {
1969
1965
  activeStyle: { background: "#EFF0EE" },
1970
- icon: So,
1966
+ icon: ko,
1971
1967
  style: { background: "white", color: "black" },
1972
1968
  text: "Log in with Google"
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(
1969
+ }, $o = O(xo);
1970
+ function ko({ size: t }) {
1971
+ return /* @__PURE__ */ j.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ j.default.createElement(
1976
1972
  "linearGradient",
1977
1973
  {
1978
1974
  id: "95yY7w43Oj6n2vH63j6HJb",
@@ -1983,18 +1979,18 @@ function So({ size: t }) {
1983
1979
  gradientTransform: "matrix(1 0 0 -1 0 66)",
1984
1980
  gradientUnits: "userSpaceOnUse"
1985
1981
  },
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(
1982
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
1983
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
1984
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
1985
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
1986
+ ), /* @__PURE__ */ j.default.createElement(
1991
1987
  "path",
1992
1988
  {
1993
1989
  fill: "url(#95yY7w43Oj6n2vH63j6HJb)",
1994
1990
  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,
1995
1991
  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`
1996
1992
  }
1997
- ), /* @__PURE__ */ L.default.createElement(
1993
+ ), /* @__PURE__ */ j.default.createElement(
1998
1994
  "linearGradient",
1999
1995
  {
2000
1996
  id: "95yY7w43Oj6n2vH63j6HJc",
@@ -2005,17 +2001,17 @@ function So({ size: t }) {
2005
2001
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2006
2002
  gradientUnits: "userSpaceOnUse"
2007
2003
  },
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(
2004
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
2005
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
2006
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
2007
+ ), /* @__PURE__ */ j.default.createElement(
2012
2008
  "path",
2013
2009
  {
2014
2010
  fill: "url(#95yY7w43Oj6n2vH63j6HJc)",
2015
2011
  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,
2016
2012
  3.95-18.6l8.03,6.08C16.93,25.47,16.1,28.11,16.01,30.91z`
2017
2013
  }
2018
- ), /* @__PURE__ */ L.default.createElement(
2014
+ ), /* @__PURE__ */ j.default.createElement(
2019
2015
  "linearGradient",
2020
2016
  {
2021
2017
  id: "95yY7w43Oj6n2vH63j6HJd",
@@ -2026,17 +2022,17 @@ function So({ size: t }) {
2026
2022
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2027
2023
  gradientUnits: "userSpaceOnUse"
2028
2024
  },
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(
2025
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
2026
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
2027
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
2028
+ ), /* @__PURE__ */ j.default.createElement(
2033
2029
  "path",
2034
2030
  {
2035
2031
  fill: "url(#95yY7w43Oj6n2vH63j6HJd)",
2036
2032
  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,
2037
2033
  25.67,48,32.5,48c3.94,0,7.52-1.28,10.33-3.44L50.45,51.28z`
2038
2034
  }
2039
- ), /* @__PURE__ */ L.default.createElement(
2035
+ ), /* @__PURE__ */ j.default.createElement(
2040
2036
  "linearGradient",
2041
2037
  {
2042
2038
  id: "95yY7w43Oj6n2vH63j6HJe",
@@ -2047,12 +2043,12 @@ function So({ size: t }) {
2047
2043
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2048
2044
  gradientUnits: "userSpaceOnUse"
2049
2045
  },
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(
2046
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
2047
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
2048
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
2049
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
2050
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
2051
+ ), /* @__PURE__ */ j.default.createElement(
2056
2052
  "path",
2057
2053
  {
2058
2054
  fill: "url(#95yY7w43Oj6n2vH63j6HJe)",
@@ -2061,23 +2057,23 @@ function So({ size: t }) {
2061
2057
  }
2062
2058
  ));
2063
2059
  }
2064
- var _t = T(h), _o = {
2060
+ var St = L(m), So = {
2065
2061
  activeStyle: { background: "#555555" },
2066
- icon: Eo,
2062
+ icon: Co,
2067
2063
  style: { background: "#333333" },
2068
2064
  text: "Log in with GitHub"
2069
- }, Co = O(_o);
2070
- function Eo({ size: t, color: e }) {
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" }));
2065
+ }, _o = O(So);
2066
+ function Co({ size: t, color: e }) {
2067
+ return /* @__PURE__ */ St.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ St.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" }));
2072
2068
  }
2073
- var Ct = T(h), jo = {
2069
+ var _t = L(m), Eo = {
2074
2070
  activeStyle: { background: "#282e36" },
2075
- icon: To,
2071
+ icon: Lo,
2076
2072
  style: { background: "#0f1419" },
2077
2073
  text: "Log in with Twitter"
2078
- }, Lo = O(jo);
2079
- function To({ size: t, color: e }) {
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(
2074
+ }, jo = O(Eo);
2075
+ function Lo({ size: t, color: e }) {
2076
+ return /* @__PURE__ */ _t.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ _t.default.createElement(
2081
2077
  "path",
2082
2078
  {
2083
2079
  fill: e,
@@ -2085,14 +2081,14 @@ function To({ size: t, color: e }) {
2085
2081
  }
2086
2082
  ));
2087
2083
  }
2088
- var Et = T(h), Ao = {
2084
+ var Ct = L(m), To = {
2089
2085
  activeStyle: { background: "#ff9f23" },
2090
- icon: zo,
2086
+ icon: Mo,
2091
2087
  style: { background: "#f9ae32" },
2092
2088
  text: "Log in with Amazon"
2093
- }, Mo = O(Ao);
2094
- function zo({ size: t, color: e }) {
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(
2089
+ }, Ao = O(To);
2090
+ function Mo({ size: t, color: e }) {
2091
+ return /* @__PURE__ */ Ct.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ct.default.createElement(
2096
2092
  "path",
2097
2093
  {
2098
2094
  d: "M13.958 10.09c0 1.232.029 2.256-.591 3.351-.502.891-1.301 1.438-2.186 1.438-1.214 0-1.922-.924-1.922-2.292 0-2.692 2.415-3.182 4.7-3.182v.685zm3.186 7.705c-.209.189-.512.201-.745.074-1.052-.872-1.238-1.276-1.814-2.106-1.734 1.767-2.962 2.297-5.209 2.297-2.66 0-4.731-1.641-4.731-4.925 0-2.565 1.391-4.309 3.37-5.164 1.715-.754 4.11-.891 5.942-1.095v-.41c0-.753.06-1.642-.383-2.294-.385-.579-1.124-.82-1.775-.82-1.205 0-2.277.618-2.54 1.897-.054.285-.261.567-.549.582l-3.061-.333c-.259-.056-.548-.266-.472-.66.704-3.716 4.06-4.838 7.066-4.838 1.537 0 3.547.41 4.758 1.574 1.538 1.436 1.392 3.352 1.392 5.438v4.923c0 1.481.616 2.13 1.192 2.929.204.287.247.63-.01.839-.647.541-1.794 1.537-2.423 2.099l-.008-.007zm3.559 1.988c-2.748 1.472-5.735 2.181-8.453 2.181-4.027 0-7.927-1.393-11.081-3.706-.277-.202-.481.154-.251.416 2.925 3.326 6.786 5.326 11.076 5.326 3.061 0 6.614-1.214 9.066-3.494.406-.377.058-.945-.357-.723zm.67 2.216c-.091.227.104.32.31.147 1.339-1.12 1.685-3.466 1.411-3.804-.272-.336-2.612-.626-4.04.377-.22.154-.182.367.062.337.805-.096 2.595-.312 2.913.098.319.41-.355 2.094-.656 2.845z",
@@ -2101,27 +2097,27 @@ function zo({ size: t, color: e }) {
2101
2097
  }
2102
2098
  ));
2103
2099
  }
2104
- var ve = T(h), Oo = {
2100
+ var be = L(m), zo = {
2105
2101
  activeStyle: {
2106
2102
  background: "linear-gradient(to right, rgb(214, 146, 60) 0%, rgb(160, 11, 143) 50%, rgb(56, 10, 115) 100%)"
2107
2103
  },
2108
- icon: Po,
2104
+ icon: Bo,
2109
2105
  style: {
2110
2106
  background: "linear-gradient(to right, rgb(236, 146, 35) 0%, rgb(177, 42, 160) 50%, rgb(105, 14, 224) 100%)"
2111
2107
  },
2112
2108
  text: "Log in with Instagram"
2113
- }, Bo = O(Oo);
2114
- function Po({ size: t, color: e }) {
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" })));
2109
+ }, Oo = O(zo);
2110
+ function Bo({ size: t, color: e }) {
2111
+ return /* @__PURE__ */ be.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 169.063 169.063" }, /* @__PURE__ */ be.default.createElement("g", { fill: e }, /* @__PURE__ */ be.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__ */ be.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__ */ be.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" })));
2116
2112
  }
2117
- var qe = T(h), Ro = {
2113
+ var Ve = L(m), Po = {
2118
2114
  activeStyle: { background: "rgb(7, 112, 169)" },
2119
- icon: Fo,
2115
+ icon: Io,
2120
2116
  style: { background: "rgb(26, 129, 185)" },
2121
2117
  text: "Log in with LinkedIn"
2122
- }, Io = O(Ro);
2123
- function Fo({ size: t, color: e }) {
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(
2118
+ }, Ro = O(Po);
2119
+ function Io({ size: t, color: e }) {
2120
+ return /* @__PURE__ */ Ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 430.117 430.117" }, /* @__PURE__ */ Ve.default.createElement("g", null, /* @__PURE__ */ Ve.default.createElement(
2125
2121
  "path",
2126
2122
  {
2127
2123
  d: "M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707 c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21 v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824 C384.633,136.724,430.117,176.361,430.117,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463 c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z M5.477,420.56h92.184v-277.32H5.477V420.56z",
@@ -2129,23 +2125,23 @@ function Fo({ size: t, color: e }) {
2129
2125
  }
2130
2126
  )));
2131
2127
  }
2132
- var xe = T(h), No = {
2128
+ var ve = L(m), Fo = {
2133
2129
  activeStyle: { background: "#555555" },
2134
- icon: Uo,
2130
+ icon: Do,
2135
2131
  style: { background: "#333333" },
2136
2132
  text: "Log in with Microsoft"
2137
- }, Do = O(No);
2138
- function Uo({ size: t, color: e }) {
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)" }));
2133
+ }, No = O(Fo);
2134
+ function Do({ size: t, color: e }) {
2135
+ return /* @__PURE__ */ ve.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__ */ ve.default.createElement("path", { fill: "#ff5722", d: "M6 6H22V22H6z", transform: "rotate(-180 14 14)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#4caf50", d: "M26 6H42V22H26z", transform: "rotate(-180 34 14)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#ffc107", d: "M26 26H42V42H26z", transform: "rotate(-180 34 34)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#03a9f4", d: "M6 26H22V42H6z", transform: "rotate(-180 14 34)" }));
2140
2136
  }
2141
- var jt = T(h), Wo = {
2137
+ var Et = L(m), Uo = {
2142
2138
  activeStyle: { background: "#1171BB" },
2143
- icon: Vo,
2139
+ icon: Ho,
2144
2140
  style: { background: "#168EEA" },
2145
2141
  text: "Log in with Buffer"
2146
- }, Ho = O(Wo);
2147
- function Vo({ size: t, color: e }) {
2148
- return /* @__PURE__ */ jt.default.createElement(
2142
+ }, Wo = O(Uo);
2143
+ function Ho({ size: t, color: e }) {
2144
+ return /* @__PURE__ */ Et.default.createElement(
2149
2145
  "svg",
2150
2146
  {
2151
2147
  "aria-labelledby": "simpleicons-buffer-icon",
@@ -2155,7 +2151,7 @@ function Vo({ size: t, color: e }) {
2155
2151
  height: t,
2156
2152
  xmlns: "http://www.w3.org/2000/svg"
2157
2153
  },
2158
- /* @__PURE__ */ jt.default.createElement(
2154
+ /* @__PURE__ */ Et.default.createElement(
2159
2155
  "path",
2160
2156
  {
2161
2157
  d: "M23.784 18.24c.287.142.287.267 0 .374l-11.357 5.223c-.287.145-.57.145-.854 0L.213 18.614c-.284-.107-.284-.232 0-.375l2.722-1.23c.284-.14.57-.14.852 0l7.787 3.573c.285.14.57.14.854 0l7.787-3.574c.283-.14.568-.14.852 0l2.717 1.23zm0-6.454c.287.143.287.285 0 .426L12.427 17.44c-.287.104-.57.104-.854 0L.213 12.21c-.284-.143-.284-.284 0-.426l2.722-1.227c.284-.144.57-.144.852 0l7.787 3.57c.285.144.57.144.854 0l7.787-3.57c.283-.144.568-.144.852 0l2.717 1.226zM.214 5.76c-.285-.143-.285-.267 0-.375L11.574.16c.283-.14.57-.14.852 0l11.358 5.23c.287.107.287.232 0 .375l-11.357 5.223c-.287.143-.57.143-.854 0L.213 5.76z",
@@ -2164,17 +2160,17 @@ function Vo({ size: t, color: e }) {
2164
2160
  )
2165
2161
  );
2166
2162
  }
2167
- var X = T(h), Go = {
2163
+ var X = L(m), Vo = {
2168
2164
  activeStyle: {
2169
2165
  background: "#0088cc"
2170
2166
  },
2171
- icon: Yo,
2167
+ icon: qo,
2172
2168
  style: {
2173
2169
  background: "#54a9eb"
2174
2170
  },
2175
2171
  text: "Log in with Telegram"
2176
- }, qo = O(Go);
2177
- function Yo({ size: t }) {
2172
+ }, Go = O(Vo);
2173
+ function qo({ size: t }) {
2178
2174
  return /* @__PURE__ */ X.default.createElement(
2179
2175
  "svg",
2180
2176
  {
@@ -2197,14 +2193,14 @@ function Yo({ size: t }) {
2197
2193
  )
2198
2194
  );
2199
2195
  }
2200
- var Ye = T(h), Ko = {
2196
+ var Ge = L(m), Yo = {
2201
2197
  activeStyle: { background: "#EFF0EE" },
2202
- icon: Qo,
2198
+ icon: Jo,
2203
2199
  style: { background: "#FFFFFF", color: "#000000" },
2204
2200
  text: "Log in with Apple"
2205
- }, Jo = O(Ko);
2206
- function Qo({ size: t }) {
2207
- return /* @__PURE__ */ Ye.default.createElement(
2201
+ }, Ko = O(Yo);
2202
+ function Jo({ size: t }) {
2203
+ return /* @__PURE__ */ Ge.default.createElement(
2208
2204
  "svg",
2209
2205
  {
2210
2206
  width: t,
@@ -2214,7 +2210,7 @@ function Qo({ size: t }) {
2214
2210
  version: "1.1",
2215
2211
  xmlns: "http://www.w3.org/2000/svg"
2216
2212
  },
2217
- /* @__PURE__ */ Ye.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ Ye.default.createElement(
2213
+ /* @__PURE__ */ Ge.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ Ge.default.createElement(
2218
2214
  "path",
2219
2215
  {
2220
2216
  d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z",
@@ -2224,22 +2220,22 @@ function Qo({ size: t }) {
2224
2220
  ))
2225
2221
  );
2226
2222
  }
2227
- var Ke = T(h), Zo = {
2223
+ var qe = L(m), Qo = {
2228
2224
  activeStyle: { background: "#697ec4" },
2229
- icon: ea,
2225
+ icon: Xo,
2230
2226
  style: { background: "#7289DA" },
2231
2227
  text: "Log in with Discord"
2232
- }, Xo = O(Zo);
2233
- function ea({ size: t, color: e }) {
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" }));
2228
+ }, Zo = O(Qo);
2229
+ function Xo({ size: t, color: e }) {
2230
+ return /* @__PURE__ */ qe.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t }, /* @__PURE__ */ qe.default.createElement("title", null, "Discord icon"), /* @__PURE__ */ qe.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" }));
2235
2231
  }
2236
- var ae = T(h), ta = {
2232
+ var ae = L(m), ea = {
2237
2233
  activeStyle: { background: "#f5f5f5" },
2238
- icon: oa,
2234
+ icon: na,
2239
2235
  style: { background: "white", color: "black" },
2240
2236
  text: "Log in with Okta"
2241
- }, na = O(ta);
2242
- function oa({ size: t }) {
2237
+ }, ta = O(ea);
2238
+ function na({ size: t }) {
2243
2239
  return /* @__PURE__ */ ae.default.createElement(
2244
2240
  "svg",
2245
2241
  {
@@ -2290,13 +2286,13 @@ function oa({ size: t }) {
2290
2286
  ))
2291
2287
  );
2292
2288
  }
2293
- var fe = T(h), aa = {
2289
+ var fe = L(m), oa = {
2294
2290
  activeStyle: { background: "#f5f5f5" },
2295
- icon: ra,
2291
+ icon: ia,
2296
2292
  style: { background: "white", color: "black" },
2297
2293
  text: "Log in with Slack"
2298
- }, ia = O(aa);
2299
- function ra({ size: t, color: e }) {
2294
+ }, aa = O(oa);
2295
+ function ia({ size: t, color: e }) {
2300
2296
  return /* @__PURE__ */ fe.default.createElement(
2301
2297
  "svg",
2302
2298
  {
@@ -2334,14 +2330,14 @@ function ra({ size: t, color: e }) {
2334
2330
  ))
2335
2331
  );
2336
2332
  }
2337
- var Le = T(h), la = {
2333
+ var je = L(m), ra = {
2338
2334
  activeStyle: { background: "#ac3ade" },
2339
- icon: sa,
2335
+ icon: ca,
2340
2336
  style: { background: "#720E9E" },
2341
2337
  text: "Log in with Yahoo"
2342
- }, ca = O(la);
2343
- function sa({ size: t, color: e }) {
2344
- return /* @__PURE__ */ Le.default.createElement(
2338
+ }, la = O(ra);
2339
+ function ca({ size: t, color: e }) {
2340
+ return /* @__PURE__ */ je.default.createElement(
2345
2341
  "svg",
2346
2342
  {
2347
2343
  version: "1.1",
@@ -2354,14 +2350,14 @@ function sa({ size: t, color: e }) {
2354
2350
  width: t,
2355
2351
  height: t
2356
2352
  },
2357
- /* @__PURE__ */ Le.default.createElement("g", null, /* @__PURE__ */ Le.default.createElement(
2353
+ /* @__PURE__ */ je.default.createElement("g", null, /* @__PURE__ */ je.default.createElement(
2358
2354
  "path",
2359
2355
  {
2360
2356
  fill: "transparent",
2361
2357
  d: `M145.659,0c80.45,0,145.66,65.219,145.66,145.66c0,80.45-65.21,145.659-145.66,145.659
2362
2358
  S0,226.109,0,145.66C0,65.219,65.21,0,145.659,0z`
2363
2359
  }
2364
- ), /* @__PURE__ */ Le.default.createElement(
2360
+ ), /* @__PURE__ */ je.default.createElement(
2365
2361
  "path",
2366
2362
  {
2367
2363
  fill: "#FFFFFF",
@@ -2377,14 +2373,14 @@ function sa({ size: t, color: e }) {
2377
2373
  ))
2378
2374
  );
2379
2375
  }
2380
- var Lt = T(h), ua = {
2376
+ var jt = L(m), sa = {
2381
2377
  activeStyle: { background: "#008FF3" },
2382
- icon: fa,
2378
+ icon: da,
2383
2379
  style: { background: "#0573ff" },
2384
2380
  text: "Log in with Zalo"
2385
- }, da = O(ua);
2386
- function fa({ size: t, color: e }) {
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(
2381
+ }, ua = O(sa);
2382
+ function da({ size: t, color: e }) {
2383
+ return /* @__PURE__ */ jt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ jt.default.createElement(
2388
2384
  "path",
2389
2385
  {
2390
2386
  fill: e,
@@ -2392,23 +2388,23 @@ function fa({ size: t, color: e }) {
2392
2388
  }
2393
2389
  ));
2394
2390
  }
2395
- var Tt = T(h), pa = {
2391
+ var Lt = L(m), fa = {
2396
2392
  activeStyle: { background: "#333333" },
2397
- icon: ha,
2393
+ icon: ga,
2398
2394
  style: { background: "#000000", color: "#FFFFFF" },
2399
2395
  text: "Log in with TikTok"
2400
- }, ga = O(pa);
2401
- function ha({ size: t, color: e }) {
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" }));
2396
+ }, pa = O(fa);
2397
+ function ga({ size: t, color: e }) {
2398
+ return /* @__PURE__ */ Lt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, viewBox: "0 0 512 512" }, /* @__PURE__ */ Lt.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" }));
2403
2399
  }
2404
- var W = T(h), ma = {
2400
+ var H = L(m), ha = {
2405
2401
  activeStyle: { background: "#eeeeee" },
2406
- icon: wa,
2402
+ icon: ya,
2407
2403
  style: { background: "#ffffff", color: "#333333" },
2408
2404
  text: "Log in with Metamask"
2409
- }, ya = O(ma);
2410
- function wa({ size: t }) {
2411
- return /* @__PURE__ */ W.default.createElement(
2405
+ }, ma = O(ha);
2406
+ function ya({ size: t }) {
2407
+ return /* @__PURE__ */ H.default.createElement(
2412
2408
  "svg",
2413
2409
  {
2414
2410
  xmlns: "http://www.w3.org/2000/svg",
@@ -2420,7 +2416,7 @@ function wa({ size: t }) {
2420
2416
  viewBox: "0 0 318.6 318.6",
2421
2417
  xmlSpace: "preserve"
2422
2418
  },
2423
- /* @__PURE__ */ W.default.createElement(
2419
+ /* @__PURE__ */ H.default.createElement(
2424
2420
  "path",
2425
2421
  {
2426
2422
  fill: "#e2761b",
@@ -2430,19 +2426,19 @@ function wa({ size: t }) {
2430
2426
  d: "M274.1 35.5l-99.5 73.9L193 65.8z"
2431
2427
  }
2432
2428
  ),
2433
- /* @__PURE__ */ W.default.createElement(
2429
+ /* @__PURE__ */ H.default.createElement(
2434
2430
  "path",
2435
- I({
2431
+ F({
2436
2432
  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"
2437
- }, At)
2433
+ }, Tt)
2438
2434
  ),
2439
- /* @__PURE__ */ W.default.createElement(
2435
+ /* @__PURE__ */ H.default.createElement(
2440
2436
  "path",
2441
- I({
2437
+ F({
2442
2438
  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"
2443
- }, At)
2439
+ }, Tt)
2444
2440
  ),
2445
- /* @__PURE__ */ W.default.createElement(
2441
+ /* @__PURE__ */ H.default.createElement(
2446
2442
  "path",
2447
2443
  {
2448
2444
  fill: "#d7c1b3",
@@ -2452,7 +2448,7 @@ function wa({ size: t }) {
2452
2448
  d: "M211.8 247.4l-33.9-16.5 2.7 22.1-.3 9.3zm-105 0l31.5 14.9-.2-9.3 2.5-22.1z"
2453
2449
  }
2454
2450
  ),
2455
- /* @__PURE__ */ W.default.createElement(
2451
+ /* @__PURE__ */ H.default.createElement(
2456
2452
  "path",
2457
2453
  {
2458
2454
  fill: "#233447",
@@ -2462,7 +2458,7 @@ function wa({ size: t }) {
2462
2458
  d: "M138.8 193.5l-28.2-8.3 19.9-9.1zm40.9 0l8.3-17.4 20 9.1z"
2463
2459
  }
2464
2460
  ),
2465
- /* @__PURE__ */ W.default.createElement(
2461
+ /* @__PURE__ */ H.default.createElement(
2466
2462
  "path",
2467
2463
  {
2468
2464
  fill: "#cd6116",
@@ -2472,7 +2468,7 @@ function wa({ size: t }) {
2472
2468
  d: "M106.8 247.4l4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7l-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1l20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"
2473
2469
  }
2474
2470
  ),
2475
- /* @__PURE__ */ W.default.createElement(
2471
+ /* @__PURE__ */ H.default.createElement(
2476
2472
  "path",
2477
2473
  {
2478
2474
  fill: "#e4751f",
@@ -2482,13 +2478,13 @@ function wa({ size: t }) {
2482
2478
  d: "M87.8 162.1l23.6 46-.8-22.9zm120.3 23.1l-1 22.9 23.7-46zm-64-20.6l-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0l-2.7 18 1.2 45 6.7-34.1z"
2483
2479
  }
2484
2480
  ),
2485
- /* @__PURE__ */ W.default.createElement(
2481
+ /* @__PURE__ */ H.default.createElement(
2486
2482
  "path",
2487
- I({
2483
+ F({
2488
2484
  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"
2489
- }, Mt)
2485
+ }, At)
2490
2486
  ),
2491
- /* @__PURE__ */ W.default.createElement(
2487
+ /* @__PURE__ */ H.default.createElement(
2492
2488
  "path",
2493
2489
  {
2494
2490
  fill: "#c0ad9e",
@@ -2498,7 +2494,7 @@ function wa({ size: t }) {
2498
2494
  d: "M180.3 262.3l.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"
2499
2495
  }
2500
2496
  ),
2501
- /* @__PURE__ */ W.default.createElement(
2497
+ /* @__PURE__ */ H.default.createElement(
2502
2498
  "path",
2503
2499
  {
2504
2500
  fill: "#161616",
@@ -2508,7 +2504,7 @@ function wa({ size: t }) {
2508
2504
  d: "M177.9 230.9l-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"
2509
2505
  }
2510
2506
  ),
2511
- /* @__PURE__ */ W.default.createElement(
2507
+ /* @__PURE__ */ H.default.createElement(
2512
2508
  "path",
2513
2509
  {
2514
2510
  fill: "#763d16",
@@ -2518,41 +2514,41 @@ function wa({ size: t }) {
2518
2514
  d: "M278.3 114.2l8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"
2519
2515
  }
2520
2516
  ),
2521
- /* @__PURE__ */ W.default.createElement(
2517
+ /* @__PURE__ */ H.default.createElement(
2522
2518
  "path",
2523
- I({
2519
+ F({
2524
2520
  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"
2525
- }, Mt)
2521
+ }, At)
2526
2522
  )
2527
2523
  );
2528
2524
  }
2529
- var At = {
2525
+ var Tt = {
2530
2526
  fill: "#e4761b",
2531
2527
  stroke: "#e4761b",
2532
2528
  strokeLinecap: "round",
2533
2529
  strokeLinejoin: "round"
2534
- }, Mt = {
2530
+ }, At = {
2535
2531
  fill: "#f6851b",
2536
2532
  stroke: "#f6851b",
2537
2533
  strokeLinecap: "round",
2538
2534
  strokeLinejoin: "round"
2539
- }, zt = T(h), ba = {
2540
- icon: xa,
2535
+ }, Mt = L(m), wa = {
2536
+ icon: va,
2541
2537
  style: { background: "#fc6d26" },
2542
2538
  activeStyle: { background: "#d55a1c" },
2543
2539
  text: "Log in with Gitlab"
2544
- }, va = O(ba);
2545
- function xa({ size: t, color: e }) {
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" }));
2540
+ }, ba = O(wa);
2541
+ function va({ size: t, color: e }) {
2542
+ return /* @__PURE__ */ Mt.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ Mt.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" }));
2547
2543
  }
2548
- var Ot = T(h), $a = {
2544
+ var zt = L(m), xa = {
2549
2545
  activeStyle: { background: "#282e36" },
2550
- icon: Sa,
2546
+ icon: ka,
2551
2547
  style: { background: "#0f1419" },
2552
2548
  text: "Log in with X"
2553
- }, ka = O($a);
2554
- function Sa({ size: t, color: e }) {
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(
2549
+ }, $a = O(xa);
2550
+ function ka({ size: t, color: e }) {
2551
+ return /* @__PURE__ */ zt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ zt.default.createElement(
2556
2552
  "path",
2557
2553
  {
2558
2554
  fill: e,
@@ -2560,7 +2556,7 @@ function Sa({ size: t, color: e }) {
2560
2556
  }
2561
2557
  ));
2562
2558
  }
2563
- function _a({ width: t = 24, height: e = 24, color: o }) {
2559
+ function Sa({ width: t = 24, height: e = 24, color: o }) {
2564
2560
  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
2561
  /* @__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
2562
  /* @__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" }),
@@ -2572,14 +2568,14 @@ function _a({ width: t = 24, height: e = 24, color: o }) {
2572
2568
  /* @__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" })
2573
2569
  ] });
2574
2570
  }
2575
- const Ca = {
2571
+ const _a = {
2576
2572
  text: "Sign in with QQ",
2577
- icon: _a,
2573
+ icon: Sa,
2578
2574
  iconFormat: (t) => `fa fa-${t}`,
2579
2575
  style: { background: "rgb(94,188,249)" },
2580
2576
  activeStyle: { background: "rgb(76,143,208)" }
2581
- }, Ea = j.createButton(Ca);
2582
- function ja({ width: t = 24, height: e = 24, color: o }) {
2577
+ }, Ca = C.createButton(_a);
2578
+ function Ea({ width: t = 24, height: e = 24, color: o }) {
2583
2579
  return /* @__PURE__ */ a.jsx(
2584
2580
  "img",
2585
2581
  {
@@ -2588,34 +2584,34 @@ function ja({ width: t = 24, height: e = 24, color: o }) {
2588
2584
  }
2589
2585
  );
2590
2586
  }
2591
- const La = {
2587
+ const ja = {
2592
2588
  text: "Sign in with Facebook",
2593
- icon: ja,
2589
+ icon: Ea,
2594
2590
  iconFormat: (t) => `fa fa-${t}`,
2595
2591
  style: { background: "#3b5998" },
2596
2592
  activeStyle: { background: "#2b3f65" }
2597
- }, Ta = j.createButton(La);
2598
- function Aa({ width: t = 24, height: e = 24, color: o }) {
2593
+ }, La = C.createButton(ja);
2594
+ function Ta({ width: t = 24, height: e = 24, color: o }) {
2599
2595
  return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2600
2596
  }
2601
- const Ma = {
2597
+ const Aa = {
2602
2598
  text: "Sign in with Weibo",
2603
- icon: Aa,
2599
+ icon: Ta,
2604
2600
  iconFormat: (t) => `fa fa-${t}`,
2605
2601
  style: { background: "#e62329" },
2606
2602
  activeStyle: { background: "#e54329" }
2607
- }, za = j.createButton(Ma);
2608
- function Oa({ width: t = 24, height: e = 24, color: o }) {
2603
+ }, Ma = C.createButton(Aa);
2604
+ function za({ width: t = 24, height: e = 24, color: o }) {
2609
2605
  return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2610
2606
  }
2611
- const Ba = {
2607
+ const Oa = {
2612
2608
  text: "Sign in with Gitee",
2613
- icon: Oa,
2609
+ icon: za,
2614
2610
  iconFormat: (t) => `fa fa-${t}`,
2615
2611
  style: { background: "rgb(199,29,35)" },
2616
2612
  activeStyle: { background: "rgb(147,22,26)" }
2617
- }, Pa = j.createButton(Ba);
2618
- function Ra({ width: t = 24, height: e = 24, color: o }) {
2613
+ }, Ba = C.createButton(Oa);
2614
+ function Pa({ width: t = 24, height: e = 24, color: o }) {
2619
2615
  return /* @__PURE__ */ a.jsx(
2620
2616
  "img",
2621
2617
  {
@@ -2624,14 +2620,14 @@ function Ra({ width: t = 24, height: e = 24, color: o }) {
2624
2620
  }
2625
2621
  );
2626
2622
  }
2627
- const Ia = {
2623
+ const Ra = {
2628
2624
  text: "Sign in with Wechat",
2629
- icon: Ra,
2625
+ icon: Pa,
2630
2626
  iconFormat: (t) => `fa fa-${t}`,
2631
2627
  style: { background: "rgb(0,194,80)" },
2632
2628
  activeStyle: { background: "rgb(0,158,64)" }
2633
- }, Fa = j.createButton(Ia);
2634
- function Na({ width: t = 24, height: e = 24, color: o }) {
2629
+ }, Ia = C.createButton(Ra);
2630
+ function Fa({ width: t = 24, height: e = 24, color: o }) {
2635
2631
  return /* @__PURE__ */ a.jsx(
2636
2632
  "img",
2637
2633
  {
@@ -2640,14 +2636,14 @@ function Na({ width: t = 24, height: e = 24, color: o }) {
2640
2636
  }
2641
2637
  );
2642
2638
  }
2643
- const Da = {
2639
+ const Na = {
2644
2640
  text: "Sign in with DingTalk",
2645
- icon: Na,
2641
+ icon: Fa,
2646
2642
  iconFormat: (t) => `fa fa-${t}`,
2647
2643
  style: { background: "#0191e0" },
2648
2644
  activeStyle: { background: "rgb(76,143,208)" }
2649
- }, Ua = j.createButton(Da);
2650
- function Wa({ width: t = 24, height: e = 24, color: o }) {
2645
+ }, Da = C.createButton(Na);
2646
+ function Ua({ width: t = 24, height: e = 24, color: o }) {
2651
2647
  return /* @__PURE__ */ a.jsx(
2652
2648
  "img",
2653
2649
  {
@@ -2656,24 +2652,24 @@ function Wa({ width: t = 24, height: e = 24, color: o }) {
2656
2652
  }
2657
2653
  );
2658
2654
  }
2659
- const Ha = {
2655
+ const Wa = {
2660
2656
  text: "Sign in with LinkedIn",
2661
- icon: Wa,
2657
+ icon: Ua,
2662
2658
  iconFormat: (t) => `fa fa-${t}`,
2663
2659
  style: { background: "rgb(255,255,255)", color: "#000000" },
2664
2660
  activeStyle: { background: "rgb(240,240,250)" }
2665
- }, Va = j.createButton(Ha);
2666
- function Ga({ width: t = 24, height: e = 24, color: o }) {
2661
+ }, Ha = C.createButton(Wa);
2662
+ function Va({ width: t = 24, height: e = 24, color: o }) {
2667
2663
  return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2668
2664
  }
2669
- const qa = {
2665
+ const Ga = {
2670
2666
  text: "Sign in with WeCom",
2671
- icon: Ga,
2667
+ icon: Va,
2672
2668
  iconFormat: (t) => `fa fa-${t}`,
2673
2669
  style: { background: "rgb(255,255,255)", color: "#000000" },
2674
2670
  activeStyle: { background: "rgb(100,150,250)" }
2675
- }, Ya = j.createButton(qa);
2676
- function Ka({ width: t = 24, height: e = 24, color: o }) {
2671
+ }, qa = C.createButton(Ga);
2672
+ function Ya({ width: t = 24, height: e = 24, color: o }) {
2677
2673
  return /* @__PURE__ */ a.jsx(
2678
2674
  "img",
2679
2675
  {
@@ -2683,14 +2679,14 @@ function Ka({ width: t = 24, height: e = 24, color: o }) {
2683
2679
  }
2684
2680
  );
2685
2681
  }
2686
- const Ja = {
2682
+ const Ka = {
2687
2683
  text: "Sign in with Lark",
2688
- icon: Ka,
2684
+ icon: Ya,
2689
2685
  iconFormat: (t) => `fa fa-${t}`,
2690
2686
  style: { background: "#ffffff", color: "#000000" },
2691
2687
  activeStyle: { background: "#ededee" }
2692
- }, Qa = j.createButton(Ja);
2693
- function Za({ width: t = 24, height: e = 24, color: o }) {
2688
+ }, Ja = C.createButton(Ka);
2689
+ function Qa({ width: t = 24, height: e = 24, color: o }) {
2694
2690
  return /* @__PURE__ */ a.jsx(
2695
2691
  "img",
2696
2692
  {
@@ -2700,14 +2696,14 @@ function Za({ width: t = 24, height: e = 24, color: o }) {
2700
2696
  }
2701
2697
  );
2702
2698
  }
2703
- const Xa = {
2699
+ const Za = {
2704
2700
  text: "Sign in with GitLab",
2705
- icon: Za,
2701
+ icon: Qa,
2706
2702
  iconFormat: (t) => `fa fa-${t}`,
2707
2703
  style: { background: "rgb(255,255,255)", color: "#000000" },
2708
2704
  activeStyle: { background: "rgb(100,150,250)" }
2709
- }, ei = j.createButton(Xa);
2710
- function ti({ width: t = 24, height: e = 24, color: o }) {
2705
+ }, Xa = C.createButton(Za);
2706
+ function ei({ width: t = 24, height: e = 24, color: o }) {
2711
2707
  return /* @__PURE__ */ a.jsx(
2712
2708
  "img",
2713
2709
  {
@@ -2717,14 +2713,14 @@ function ti({ width: t = 24, height: e = 24, color: o }) {
2717
2713
  }
2718
2714
  );
2719
2715
  }
2720
- const ni = {
2716
+ const ti = {
2721
2717
  text: "Sign in with ADFS",
2722
- icon: ti,
2718
+ icon: ei,
2723
2719
  iconFormat: (t) => `fa fa-${t}`,
2724
2720
  style: { background: "#ffffff", color: "#000000" },
2725
2721
  activeStyle: { background: "#ededee" }
2726
- }, oi = j.createButton(ni);
2727
- function ai({ width: t = 24, height: e = 24, color: o }) {
2722
+ }, ni = C.createButton(ti);
2723
+ function oi({ width: t = 24, height: e = 24, color: o }) {
2728
2724
  return /* @__PURE__ */ a.jsx(
2729
2725
  "img",
2730
2726
  {
@@ -2734,14 +2730,14 @@ function ai({ width: t = 24, height: e = 24, color: o }) {
2734
2730
  }
2735
2731
  );
2736
2732
  }
2737
- const ii = {
2733
+ const ai = {
2738
2734
  text: "Sign in with Casdoor",
2739
- icon: ai,
2735
+ icon: oi,
2740
2736
  iconFormat: (t) => `fa fa-${t}`,
2741
2737
  style: { background: "#ffffff", color: "#000000" },
2742
2738
  activeStyle: { background: "#ededee" }
2743
- }, ri = j.createButton(ii);
2744
- function li({ width: t = 24, height: e = 24, color: o }) {
2739
+ }, ii = C.createButton(ai);
2740
+ function ri({ width: t = 24, height: e = 24, color: o }) {
2745
2741
  return /* @__PURE__ */ a.jsx(
2746
2742
  "img",
2747
2743
  {
@@ -2751,14 +2747,14 @@ function li({ width: t = 24, height: e = 24, color: o }) {
2751
2747
  }
2752
2748
  );
2753
2749
  }
2754
- const ci = {
2750
+ const li = {
2755
2751
  text: "Sign in with Baidu",
2756
- icon: li,
2752
+ icon: ri,
2757
2753
  iconFormat: (t) => `fa fa-${t}`,
2758
2754
  style: { background: "#ffffff", color: "#000000" },
2759
2755
  activeStyle: { background: "#ededee" }
2760
- }, si = j.createButton(ci);
2761
- function ui({ width: t = 24, height: e = 24, color: o }) {
2756
+ }, ci = C.createButton(li);
2757
+ function si({ width: t = 24, height: e = 24, color: o }) {
2762
2758
  return /* @__PURE__ */ a.jsx(
2763
2759
  "img",
2764
2760
  {
@@ -2768,14 +2764,14 @@ function ui({ width: t = 24, height: e = 24, color: o }) {
2768
2764
  }
2769
2765
  );
2770
2766
  }
2771
- const di = {
2767
+ const ui = {
2772
2768
  text: "Sign in with Alipay",
2773
- icon: ui,
2769
+ icon: si,
2774
2770
  iconFormat: (t) => `fa fa-${t}`,
2775
2771
  style: { background: "#ffffff", color: "#000000" },
2776
2772
  activeStyle: { background: "#ededee" }
2777
- }, fi = j.createButton(di);
2778
- function pi({ width: t = 24, height: e = 24, color: o }) {
2773
+ }, di = C.createButton(ui);
2774
+ function fi({ width: t = 24, height: e = 24, color: o }) {
2779
2775
  return /* @__PURE__ */ a.jsx(
2780
2776
  "img",
2781
2777
  {
@@ -2785,14 +2781,14 @@ function pi({ width: t = 24, height: e = 24, color: o }) {
2785
2781
  }
2786
2782
  );
2787
2783
  }
2788
- const gi = {
2784
+ const pi = {
2789
2785
  text: "Sign in with Infoflow",
2790
- icon: pi,
2786
+ icon: fi,
2791
2787
  iconFormat: (t) => `fa fa-${t}`,
2792
2788
  style: { background: "#ffffff", color: "#000000" },
2793
2789
  activeStyle: { background: "#ededee" }
2794
- }, hi = j.createButton(gi);
2795
- function mi({ width: t = 24, height: e = 24, color: o }) {
2790
+ }, gi = C.createButton(pi);
2791
+ function hi({ width: t = 24, height: e = 24, color: o }) {
2796
2792
  return /* @__PURE__ */ a.jsx(
2797
2793
  "img",
2798
2794
  {
@@ -2802,14 +2798,14 @@ function mi({ width: t = 24, height: e = 24, color: o }) {
2802
2798
  }
2803
2799
  );
2804
2800
  }
2805
- const yi = {
2801
+ const mi = {
2806
2802
  text: "Sign in with Apple",
2807
- icon: mi,
2803
+ icon: hi,
2808
2804
  iconFormat: (t) => `fa fa-${t}`,
2809
2805
  style: { background: "#ffffff", color: "#000000" },
2810
2806
  activeStyle: { background: "#ededee" }
2811
- }, wi = j.createButton(yi);
2812
- function bi({ width: t = 24, height: e = 24, color: o }) {
2807
+ }, yi = C.createButton(mi);
2808
+ function wi({ width: t = 24, height: e = 24, color: o }) {
2813
2809
  return /* @__PURE__ */ a.jsx(
2814
2810
  "img",
2815
2811
  {
@@ -2819,14 +2815,14 @@ function bi({ width: t = 24, height: e = 24, color: o }) {
2819
2815
  }
2820
2816
  );
2821
2817
  }
2822
- const vi = {
2818
+ const bi = {
2823
2819
  text: "Sign in with Azure AD",
2824
- icon: bi,
2820
+ icon: wi,
2825
2821
  iconFormat: (t) => `fa fa-${t}`,
2826
2822
  style: { background: "#ffffff", color: "#000000" },
2827
2823
  activeStyle: { background: "#ededee" }
2828
- }, xi = j.createButton(vi);
2829
- function $i({ width: t = 24, height: e = 24, color: o }) {
2824
+ }, vi = C.createButton(bi);
2825
+ function xi({ width: t = 24, height: e = 24, color: o }) {
2830
2826
  return /* @__PURE__ */ a.jsx(
2831
2827
  "img",
2832
2828
  {
@@ -2836,14 +2832,14 @@ function $i({ width: t = 24, height: e = 24, color: o }) {
2836
2832
  }
2837
2833
  );
2838
2834
  }
2839
- const ki = {
2835
+ const $i = {
2840
2836
  text: "Sign in with Azure AD B2C",
2841
- icon: $i,
2837
+ icon: xi,
2842
2838
  iconFormat: (t) => `fa fa-${t}`,
2843
2839
  style: { background: "#ffffff", color: "#000000" },
2844
2840
  activeStyle: { background: "#ededee" }
2845
- }, Si = j.createButton(ki);
2846
- function _i({ width: t = 24, height: e = 24, color: o }) {
2841
+ }, ki = C.createButton($i);
2842
+ function Si({ width: t = 24, height: e = 24, color: o }) {
2847
2843
  return /* @__PURE__ */ a.jsx(
2848
2844
  "img",
2849
2845
  {
@@ -2853,14 +2849,14 @@ function _i({ width: t = 24, height: e = 24, color: o }) {
2853
2849
  }
2854
2850
  );
2855
2851
  }
2856
- const Ci = {
2852
+ const _i = {
2857
2853
  text: "Sign in with Slack",
2858
- icon: _i,
2854
+ icon: Si,
2859
2855
  iconFormat: (t) => `fa fa-${t}`,
2860
2856
  style: { background: "#ffffff", color: "#000000" },
2861
2857
  activeStyle: { background: "#ededee" }
2862
- }, Ei = j.createButton(Ci);
2863
- function ji({ width: t = 24, height: e = 24, color: o }) {
2858
+ }, Ci = C.createButton(_i);
2859
+ function Ei({ width: t = 24, height: e = 24, color: o }) {
2864
2860
  return /* @__PURE__ */ a.jsx(
2865
2861
  "img",
2866
2862
  {
@@ -2870,14 +2866,14 @@ function ji({ width: t = 24, height: e = 24, color: o }) {
2870
2866
  }
2871
2867
  );
2872
2868
  }
2873
- const Li = {
2869
+ const ji = {
2874
2870
  text: "Sign in with Steam",
2875
- icon: ji,
2871
+ icon: Ei,
2876
2872
  iconFormat: (t) => `fa fa-${t}`,
2877
2873
  style: { background: "#ffffff", color: "#000000" },
2878
2874
  activeStyle: { background: "#ededee" }
2879
- }, Ti = j.createButton(Li);
2880
- function Ai({ width: t = 24, height: e = 24, color: o }) {
2875
+ }, Li = C.createButton(ji);
2876
+ function Ti({ width: t = 24, height: e = 24, color: o }) {
2881
2877
  return /* @__PURE__ */ a.jsx(
2882
2878
  "img",
2883
2879
  {
@@ -2886,14 +2882,14 @@ function Ai({ width: t = 24, height: e = 24, color: o }) {
2886
2882
  }
2887
2883
  );
2888
2884
  }
2889
- const Mi = {
2885
+ const Ai = {
2890
2886
  text: "Sign in with Bilibili",
2891
- icon: Ai,
2887
+ icon: Ti,
2892
2888
  iconFormat: (t) => `fa fa-${t}`,
2893
2889
  style: { background: "#0191e0" },
2894
2890
  activeStyle: { background: "rgb(76,143,208)" }
2895
- }, zi = j.createButton(Mi);
2896
- function Oi({ width: t = 24, height: e = 24, color: o }) {
2891
+ }, Mi = C.createButton(Ai);
2892
+ function zi({ width: t = 24, height: e = 24, color: o }) {
2897
2893
  return /* @__PURE__ */ a.jsx(
2898
2894
  "img",
2899
2895
  {
@@ -2903,14 +2899,14 @@ function Oi({ width: t = 24, height: e = 24, color: o }) {
2903
2899
  }
2904
2900
  );
2905
2901
  }
2906
- const Bi = {
2902
+ const Oi = {
2907
2903
  text: "Sign in with Okta",
2908
- icon: Oi,
2904
+ icon: zi,
2909
2905
  iconFormat: (t) => `fa fa-${t}`,
2910
2906
  style: { background: "#ffffff", color: "#000000" },
2911
2907
  activeStyle: { background: "#ededee" }
2912
- }, Pi = j.createButton(Bi);
2913
- function Ri({ width: t = 24, height: e = 24, color: o }) {
2908
+ }, Bi = C.createButton(Oi);
2909
+ function Pi({ width: t = 24, height: e = 24, color: o }) {
2914
2910
  return /* @__PURE__ */ a.jsx(
2915
2911
  "img",
2916
2912
  {
@@ -2920,32 +2916,32 @@ function Ri({ width: t = 24, height: e = 24, color: o }) {
2920
2916
  }
2921
2917
  );
2922
2918
  }
2923
- const Ii = {
2919
+ const Ri = {
2924
2920
  text: "Sign in with Douyin",
2925
- icon: Ri,
2921
+ icon: Pi,
2926
2922
  iconFormat: (t) => `fa fa-${t}`,
2927
2923
  style: { background: "#ffffff", color: "#000000" },
2928
2924
  activeStyle: { background: "#ededee" }
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 } });
2925
+ }, Ii = C.createButton(Ri);
2926
+ function Fi({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: i = { background: "#ededee" } }) {
2927
+ function l({ width: f = 24, height: h = 24, color: k }) {
2928
+ return /* @__PURE__ */ a.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: h } });
2933
2929
  }
2934
- const u = {
2930
+ const c = {
2935
2931
  text: `Sign in with ${t}`,
2936
2932
  icon: l,
2937
2933
  style: r,
2938
2934
  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 });
2935
+ }, g = C.createButton(c), u = K.t("login:Sign in with {type}").replace("{type}", t);
2936
+ return /* @__PURE__ */ a.jsx(g, { text: u, align: o });
2941
2937
  }
2942
- function Je(t) {
2943
- const e = Q.t("login:Sign in with {type}").replace(
2938
+ function Ye(t) {
2939
+ const e = K.t("login:Sign in with {type}").replace(
2944
2940
  "{type}",
2945
2941
  t.displayName !== "" ? t.displayName : t.type
2946
2942
  );
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,
2943
+ return t.type === "GitHub" ? /* @__PURE__ */ a.jsx(C.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ a.jsx(C.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ a.jsx(Ca, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ a.jsx(La, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ a.jsx(Ma, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ a.jsx(Ba, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ a.jsx(Ia, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ a.jsx(Da, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ a.jsx(Ha, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ a.jsx(qa, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ a.jsx(Ja, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ a.jsx(Xa, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ a.jsx(ni, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ a.jsx(ii, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ a.jsx(ci, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ a.jsx(di, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ a.jsx(gi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ a.jsx(yi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ a.jsx(vi, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ a.jsx(ki, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ a.jsx(Ci, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ a.jsx(Li, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ a.jsx(Mi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ a.jsx(Bi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ a.jsx(Ii, { text: e, align: "center" }) : /* @__PURE__ */ a.jsx(
2944
+ Fi,
2949
2945
  {
2950
2946
  type: t.type,
2951
2947
  logoUrl: se(t)
@@ -2953,25 +2949,25 @@ function Je(t) {
2953
2949
  t.type
2954
2950
  );
2955
2951
  }
2956
- function Qe(t, e) {
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(
2952
+ function Ke(t, e) {
2953
+ const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", i = o.get("state"), l = o.get("redirect_uri"), c = `${window.location.origin}/callback/saml`, g = t.name, u = `${r}&${i}&${g}&${l}&${c}`;
2954
+ Hn(
2959
2955
  `${t.owner}/${g}`,
2960
- btoa(s)
2956
+ btoa(u)
2961
2957
  ).then((f) => {
2962
2958
  f.data2 === "POST" ? document.write(f.data) : window.location.href = f.data;
2963
2959
  });
2964
2960
  }
2965
- function Bt(t, e, o) {
2966
- e.type === "MetaMask" ? import("./Web3Auth-CGD96zai.js").then((r) => r.bN).then((r) => {
2961
+ function Ot(t, e, o) {
2962
+ e.type === "MetaMask" ? import("./Web3Auth-C1gorwXx.js").then((r) => r.bO).then((r) => {
2967
2963
  const i = r.authViaMetaMask;
2968
2964
  i(t, e, o);
2969
- }) : e.type === "Web3Onboard" && import("./Web3Auth-CGD96zai.js").then((r) => r.bN).then((r) => {
2965
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-C1gorwXx.js").then((r) => r.bO).then((r) => {
2970
2966
  const i = r.authViaWeb3Onboard;
2971
2967
  i(t, e, o);
2972
2968
  });
2973
2969
  }
2974
- function Di(t, e, o, r, i, l) {
2970
+ function Ni(t, e, o, r, i, l) {
2975
2971
  if (i === "small") {
2976
2972
  if (t.category === "OAuth")
2977
2973
  return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ a.jsx("a", { children: /* @__PURE__ */ a.jsx(
@@ -2984,7 +2980,7 @@ function Di(t, e, o, r, i, l) {
2984
2980
  className: "provider-img",
2985
2981
  style: { margin: r },
2986
2982
  onClick: () => {
2987
- Qn(e, t, "signup");
2983
+ Jn(e, t, "signup");
2988
2984
  }
2989
2985
  }
2990
2986
  ) }, t.displayName) : /* @__PURE__ */ a.jsx(
@@ -3009,7 +3005,7 @@ function Di(t, e, o, r, i, l) {
3009
3005
  return /* @__PURE__ */ a.jsx(
3010
3006
  "a",
3011
3007
  {
3012
- onClick: () => Qe(t, l),
3008
+ onClick: () => Ke(t, l),
3013
3009
  children: /* @__PURE__ */ a.jsx(
3014
3010
  "img",
3015
3011
  {
@@ -3028,7 +3024,7 @@ function Di(t, e, o, r, i, l) {
3028
3024
  return /* @__PURE__ */ a.jsx(
3029
3025
  "a",
3030
3026
  {
3031
- onClick: () => Bt(e, t, "signup"),
3027
+ onClick: () => Ot(e, t, "signup"),
3032
3028
  children: /* @__PURE__ */ a.jsx(
3033
3029
  "img",
3034
3030
  {
@@ -3044,7 +3040,7 @@ function Di(t, e, o, r, i, l) {
3044
3040
  t.displayName
3045
3041
  );
3046
3042
  } else if (t.type === "Custom") {
3047
- const u = Q.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, s = {
3043
+ const c = K.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, u = {
3048
3044
  display: "flex",
3049
3045
  alignItems: "center",
3050
3046
  width: "calc(100% - 10px)",
@@ -3056,7 +3052,7 @@ function Di(t, e, o, r, i, l) {
3056
3052
  border: "0px",
3057
3053
  borderRadius: "3px",
3058
3054
  cursor: "pointer"
3059
- }, f = { justfyContent: "space-between" }, m = {
3055
+ }, f = { justfyContent: "space-between" }, h = {
3060
3056
  textAlign: "center",
3061
3057
  width: "100%",
3062
3058
  fontSize: "19px"
@@ -3067,7 +3063,7 @@ function Di(t, e, o, r, i, l) {
3067
3063
  {
3068
3064
  href: (void 0)(e, t, "signup"),
3069
3065
  style: g,
3070
- children: /* @__PURE__ */ a.jsxs("div", { style: s, children: [
3066
+ children: /* @__PURE__ */ a.jsxs("div", { style: u, children: [
3071
3067
  /* @__PURE__ */ a.jsx(
3072
3068
  "img",
3073
3069
  {
@@ -3078,7 +3074,7 @@ function Di(t, e, o, r, i, l) {
3078
3074
  style: f
3079
3075
  }
3080
3076
  ),
3081
- /* @__PURE__ */ a.jsx("span", { style: m, children: u })
3077
+ /* @__PURE__ */ a.jsx("span", { style: h, children: c })
3082
3078
  ] })
3083
3079
  },
3084
3080
  t.displayName
@@ -3087,9 +3083,9 @@ function Di(t, e, o, r, i, l) {
3087
3083
  return /* @__PURE__ */ a.jsx(
3088
3084
  "a",
3089
3085
  {
3090
- onClick: () => Qe(t, l),
3086
+ onClick: () => Ke(t, l),
3091
3087
  style: g,
3092
- children: /* @__PURE__ */ a.jsxs("div", { style: s, children: [
3088
+ children: /* @__PURE__ */ a.jsxs("div", { style: u, children: [
3093
3089
  /* @__PURE__ */ a.jsx(
3094
3090
  "img",
3095
3091
  {
@@ -3100,45 +3096,45 @@ function Di(t, e, o, r, i, l) {
3100
3096
  style: f
3101
3097
  }
3102
3098
  ),
3103
- /* @__PURE__ */ a.jsx("span", { style: m, children: u })
3099
+ /* @__PURE__ */ a.jsx("span", { style: h, children: c })
3104
3100
  ] })
3105
3101
  },
3106
3102
  t.displayName
3107
3103
  );
3108
3104
  } else
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);
3105
+ return t.category === "SAML" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Ke(t, l), children: Ye(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Ot(e, t, "signup"), children: Ye(t) }) }, t.displayName) : /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { href: (void 0)(e, t, "signup"), children: Ye(t) }) }, t.displayName);
3106
+ }
3107
+ function Di(t) {
3108
+ return t.length < 6 ? K.t("user:The password must have at least 6 characters") : "";
3110
3109
  }
3111
3110
  function Ui(t) {
3112
- return t.length < 6 ? Q.t("user:The password must have at least 6 characters") : "";
3111
+ return t.length < 8 ? K.t("user:The password must have at least 8 characters") : "";
3113
3112
  }
3114
3113
  function Wi(t) {
3115
- return t.length < 8 ? Q.t("user:The password must have at least 8 characters") : "";
3116
- }
3117
- function Hi(t) {
3118
- return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" : Q.t(
3114
+ return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" : K.t(
3119
3115
  "user:The password must contain at least one uppercase letter, one lowercase letter and one digit"
3120
3116
  );
3121
3117
  }
3122
- function Vi(t) {
3123
- return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" : Q.t(
3118
+ function Hi(t) {
3119
+ return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" : K.t(
3124
3120
  "user:The password must contain at least one special character"
3125
3121
  );
3126
3122
  }
3127
- function Gi(t) {
3128
- return /(.)\1+/.test(t) ? Q.t(
3123
+ function Vi(t) {
3124
+ return /(.)\1+/.test(t) ? K.t(
3129
3125
  "user:The password must not contain any repeated characters"
3130
3126
  ) : "";
3131
3127
  }
3132
- function qi(t, e) {
3128
+ function Gi(t, e) {
3133
3129
  if (t.length === 0)
3134
- return Q.t("login:Please input your password!");
3130
+ return K.t("login:Please input your password!");
3135
3131
  (!e || e.length === 0) && (e = ["AtLeast6"]);
3136
3132
  const o = {
3137
- AtLeast6: Ui,
3138
- AtLeast8: Wi,
3139
- Aa123: Hi,
3140
- SpecialChar: Vi,
3141
- NoRepeat: Gi
3133
+ AtLeast6: Di,
3134
+ AtLeast8: Ui,
3135
+ Aa123: Wi,
3136
+ SpecialChar: Hi,
3137
+ NoRepeat: Vi
3142
3138
  };
3143
3139
  for (const r of e) {
3144
3140
  const i = o[r];
@@ -3150,24 +3146,24 @@ function qi(t, e) {
3150
3146
  }
3151
3147
  return "";
3152
3148
  }
3153
- function Yi({
3149
+ function qi({
3154
3150
  application: t,
3155
3151
  state: e,
3156
3152
  setState: o
3157
3153
  }) {
3158
- const [r, i] = h.useState(!1), l = h.useRef(null);
3159
- h.useEffect(() => {
3154
+ const [r, i] = m.useState(!1), l = m.useRef(null);
3155
+ m.useEffect(() => {
3160
3156
  l.current || (l.current = document.getElementById(
3161
3157
  "agreementDialog"
3162
3158
  ));
3163
- }, []), h.useEffect(() => {
3159
+ }, []), m.useEffect(() => {
3164
3160
  l.current && (r ? l.current.showModal() : l.current.close());
3165
3161
  }, [r]);
3166
- const u = () => {
3162
+ const c = () => {
3167
3163
  o({ ...e, agreement: !1 }), i(!1);
3168
3164
  }, g = () => {
3169
3165
  o({ ...e, agreement: !0 }), i(!1);
3170
- }, s = () => {
3166
+ }, u = () => {
3171
3167
  i(!0);
3172
3168
  };
3173
3169
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -3184,7 +3180,7 @@ function Yi({
3184
3180
  /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
3185
3181
  /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
3186
3182
  /* @__PURE__ */ a.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
3187
- /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: u, children: "Cancel" }, "closebtn"),
3183
+ /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: c, children: "Cancel" }, "closebtn"),
3188
3184
  /* @__PURE__ */ a.jsx(
3189
3185
  "button",
3190
3186
  {
@@ -3198,17 +3194,17 @@ function Yi({
3198
3194
  ] })
3199
3195
  ] }) }),
3200
3196
  /* @__PURE__ */ a.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
3201
- /* @__PURE__ */ a.jsx("button", { onClick: s, children: "Open Terms" })
3197
+ /* @__PURE__ */ a.jsx("button", { onClick: u, children: "Open Terms" })
3202
3198
  ] });
3203
3199
  }
3204
- function J({
3200
+ function Y({
3205
3201
  label: t,
3206
3202
  name: e,
3207
3203
  rules: o,
3208
3204
  inputEl: r,
3209
3205
  setFieldValue: i,
3210
3206
  onChange: l,
3211
- ...u
3207
+ ...c
3212
3208
  }) {
3213
3209
  return /* @__PURE__ */ a.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
3214
3210
  /* @__PURE__ */ a.jsx("div", { className: "label", children: /* @__PURE__ */ a.jsx("span", { className: "label-text", children: t }) }),
@@ -3216,7 +3212,7 @@ function J({
3216
3212
  "input",
3217
3213
  {
3218
3214
  type: "text",
3219
- ...u,
3215
+ ...c,
3220
3216
  name: e,
3221
3217
  className: "input input-bordered w-full max-w-xs",
3222
3218
  onChange: (g) => {
@@ -3224,41 +3220,41 @@ function J({
3224
3220
  }
3225
3221
  }
3226
3222
  ),
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)) })
3223
+ /* @__PURE__ */ a.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, u) => /* @__PURE__ */ a.jsx("span", { className: "label-text-alt", children: g.message }, e + u)) })
3228
3224
  ] });
3229
3225
  }
3230
- const Ki = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
3226
+ const Yi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
3231
3227
  application: e.name,
3232
3228
  organization: e.organization,
3233
3229
  plan: null,
3234
3230
  pricing: null,
3235
3231
  ...t
3236
- }), Ji = (t, e, o) => {
3232
+ }), Ki = (t, e, o) => {
3237
3233
  t.preventDefault();
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) => {
3241
- let u = null;
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}`);
3234
+ const r = Yi(e, o);
3235
+ console.log(r), Dn(r).then((i) => {
3236
+ i.status === "ok" ? (r.username = i.data.split("/")[1], o && In(o) ? Nn("").then((l) => {
3237
+ let c = null;
3238
+ l.status === "ok" ? (c = l.data, c.organization = l.data2, console.log("account", c), alert("redirect")) : G("error", `Failed to sign in: ${l.msg}`);
3243
3239
  }) : alert("redirect")) : G("error", i.msg);
3244
3240
  });
3245
3241
  };
3246
- function Qi(t, e, o, r, i) {
3242
+ function Ji(t, e, o, r, i) {
3247
3243
  if (!e.visible)
3248
3244
  return null;
3249
- const l = (g, s) => {
3250
- o[g] = s, r(o);
3251
- }, u = e.required;
3245
+ const l = (g, u) => {
3246
+ o[g] = u, r(o);
3247
+ }, c = e.required;
3252
3248
  if (e.name === "Username")
3253
3249
  return /* @__PURE__ */ a.jsx(
3254
- J,
3250
+ Y,
3255
3251
  {
3256
3252
  name: "username",
3257
3253
  className: "signup-username",
3258
3254
  label: e.label ? e.label : i("signup.username"),
3259
3255
  rules: [
3260
3256
  {
3261
- required: u,
3257
+ required: c,
3262
3258
  message: i("forget.username"),
3263
3259
  whitespace: !0
3264
3260
  }
@@ -3269,16 +3265,16 @@ function Qi(t, e, o, r, i) {
3269
3265
  }
3270
3266
  );
3271
3267
  if (e.name === "Display name")
3272
- return e.rule === "First, last" && En() !== "zh" ? /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
3268
+ return e.rule === "First, last" && Cn() !== "zh" ? /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3273
3269
  /* @__PURE__ */ a.jsx(
3274
- J,
3270
+ Y,
3275
3271
  {
3276
3272
  name: "firstName",
3277
3273
  className: "signup-first-name",
3278
3274
  label: e.label ? e.label : i("general.firstName"),
3279
3275
  rules: [
3280
3276
  {
3281
- required: u,
3277
+ required: c,
3282
3278
  message: i("forget.firstName"),
3283
3279
  whitespace: !0
3284
3280
  }
@@ -3288,14 +3284,14 @@ function Qi(t, e, o, r, i) {
3288
3284
  }
3289
3285
  ),
3290
3286
  /* @__PURE__ */ a.jsx(
3291
- J,
3287
+ Y,
3292
3288
  {
3293
3289
  name: "lastName",
3294
3290
  className: "signup-last-name",
3295
3291
  label: e.label ? e.label : i("general.lastName"),
3296
3292
  rules: [
3297
3293
  {
3298
- required: u,
3294
+ required: c,
3299
3295
  message: i("forget.lastName"),
3300
3296
  whitespace: !0
3301
3297
  }
@@ -3305,14 +3301,14 @@ function Qi(t, e, o, r, i) {
3305
3301
  }
3306
3302
  )
3307
3303
  ] }) : /* @__PURE__ */ a.jsx(
3308
- J,
3304
+ Y,
3309
3305
  {
3310
3306
  name: "name",
3311
3307
  className: "signup-name",
3312
3308
  label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? i("general.realName") : i("general.displayName"),
3313
3309
  rules: [
3314
3310
  {
3315
- required: u,
3311
+ required: c,
3316
3312
  message: e.rule === "Real name" || e.rule === "First, last" ? i("forget.realName") : i("forget.displayName"),
3317
3313
  whitespace: !0
3318
3314
  }
@@ -3323,14 +3319,14 @@ function Qi(t, e, o, r, i) {
3323
3319
  );
3324
3320
  if (e.name === "Affiliation")
3325
3321
  return /* @__PURE__ */ a.jsx(
3326
- J,
3322
+ Y,
3327
3323
  {
3328
3324
  name: "affiliation",
3329
3325
  className: "signup-affiliation",
3330
3326
  label: e.label ? e.label : i("user.affiliation"),
3331
3327
  rules: [
3332
3328
  {
3333
- required: u,
3329
+ required: c,
3334
3330
  message: i("forget.affiliation"),
3335
3331
  whitespace: !0
3336
3332
  }
@@ -3341,19 +3337,19 @@ function Qi(t, e, o, r, i) {
3341
3337
  );
3342
3338
  if (e.name === "ID card")
3343
3339
  return /* @__PURE__ */ a.jsx(
3344
- J,
3340
+ Y,
3345
3341
  {
3346
3342
  name: "idCard",
3347
3343
  className: "signup-idcard",
3348
3344
  label: e.label ? e.label : i("user.idCard"),
3349
3345
  rules: [
3350
3346
  {
3351
- required: u,
3347
+ required: c,
3352
3348
  message: i("forget.idCard"),
3353
3349
  whitespace: !0
3354
3350
  },
3355
3351
  {
3356
- required: u,
3352
+ required: c,
3357
3353
  pattern: new RegExp(
3358
3354
  /^[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]$/,
3359
3355
  "g"
@@ -3366,41 +3362,41 @@ function Qi(t, e, o, r, i) {
3366
3362
  }
3367
3363
  );
3368
3364
  if (e.name === "Email" || e.name === "Phone" || e.name === "Email or Phone" || e.name === "Phone or Email") {
3369
- const g = () => /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
3365
+ const g = () => /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3370
3366
  /* @__PURE__ */ a.jsx(
3371
- J,
3367
+ Y,
3372
3368
  {
3373
3369
  name: "email",
3374
3370
  label: e.label ? e.label : i("general.email"),
3375
3371
  rules: [
3376
3372
  {
3377
- required: u,
3373
+ required: c,
3378
3374
  message: i("forget.email")
3379
3375
  }
3380
3376
  ],
3381
3377
  placeholder: e.placeholder,
3382
3378
  disabled: o.invitation !== void 0 && o.invitation.email !== "",
3383
3379
  onChange: (f) => {
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 });
3380
+ const h = f.target.value;
3381
+ console.log("email", h, bt(h)), h !== "" && !bt(h) ? r({ ...o, email: h, validEmail: !1 }) : r({ ...o, email: h, validEmail: !0 });
3386
3382
  },
3387
3383
  setFieldValue: l
3388
3384
  }
3389
3385
  ),
3390
3386
  e.rule !== "No verification" && /* @__PURE__ */ a.jsx(
3391
- J,
3387
+ Y,
3392
3388
  {
3393
3389
  name: "emailCode",
3394
3390
  className: "signup-email-code",
3395
3391
  label: e.label ? e.label : i("code.email"),
3396
3392
  rules: [
3397
3393
  {
3398
- required: u,
3394
+ required: c,
3399
3395
  message: i("forget.code")
3400
3396
  }
3401
3397
  ],
3402
3398
  inputEl: /* @__PURE__ */ a.jsx(
3403
- eo,
3399
+ Xn,
3404
3400
  {
3405
3401
  disabled: !o.validEmail,
3406
3402
  method: "signup",
@@ -3413,34 +3409,34 @@ function Qi(t, e, o, r, i) {
3413
3409
  setFieldValue: l
3414
3410
  }
3415
3411
  )
3416
- ] }), s = () => /* @__PURE__ */ a.jsx(a.Fragment, {});
3412
+ ] }), u = () => /* @__PURE__ */ a.jsx(a.Fragment, {});
3417
3413
  if (e.name === "Email")
3418
3414
  return g();
3419
3415
  if (e.name === "Phone")
3420
- return s();
3416
+ return u();
3421
3417
  if (e.name === "Email or Phone" || e.name === "Phone or Email") {
3422
3418
  let f = o.emailOrPhoneMode;
3423
- return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ a.jsxs(h.Fragment, { children: [
3419
+ return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3424
3420
  /* @__PURE__ */ a.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3425
- f === "Email" ? g() : s()
3421
+ f === "Email" ? g() : u()
3426
3422
  ] });
3427
3423
  } else
3428
3424
  return null;
3429
3425
  } else {
3430
3426
  if (e.name === "Password")
3431
3427
  return /* @__PURE__ */ a.jsx(
3432
- J,
3428
+ Y,
3433
3429
  {
3434
3430
  name: "password",
3435
3431
  className: "signup-password",
3436
3432
  label: e.label ? e.label : i("general.password"),
3437
3433
  rules: [
3438
3434
  {
3439
- required: u,
3435
+ required: c,
3440
3436
  validateTrigger: "onChange",
3441
- validator: (g, s) => {
3442
- const f = qi(
3443
- s,
3437
+ validator: (g, u) => {
3438
+ const f = Gi(
3439
+ u,
3444
3440
  t.organizationObj.passwordOptions
3445
3441
  );
3446
3442
  return f === "" ? Promise.resolve() : Promise.reject(f);
@@ -3454,14 +3450,14 @@ function Qi(t, e, o, r, i) {
3454
3450
  );
3455
3451
  if (e.name === "Confirm password")
3456
3452
  return /* @__PURE__ */ a.jsx(
3457
- J,
3453
+ Y,
3458
3454
  {
3459
3455
  name: "confirm",
3460
3456
  className: "signup-confirm",
3461
3457
  label: e.label ? e.label : i("signup.confirm"),
3462
3458
  rules: [
3463
3459
  {
3464
- required: u,
3460
+ required: c,
3465
3461
  message: i("forget.confirm")
3466
3462
  }
3467
3463
  // ({ getFieldValue }) => ({
@@ -3484,14 +3480,14 @@ function Qi(t, e, o, r, i) {
3484
3480
  );
3485
3481
  if (e.name === "Invitation code")
3486
3482
  return /* @__PURE__ */ a.jsx(
3487
- J,
3483
+ Y,
3488
3484
  {
3489
3485
  name: "invitationCode",
3490
3486
  className: "signup-invitation-code",
3491
3487
  label: e.label ? e.label : i("application.invitationCode"),
3492
3488
  rules: [
3493
3489
  {
3494
- required: u,
3490
+ required: c,
3495
3491
  message: i("forget.invitationCode")
3496
3492
  }
3497
3493
  ],
@@ -3502,7 +3498,7 @@ function Qi(t, e, o, r, i) {
3502
3498
  );
3503
3499
  if (e.name === "Agreement")
3504
3500
  return /* @__PURE__ */ a.jsx(
3505
- Yi,
3501
+ qi,
3506
3502
  {
3507
3503
  state: o,
3508
3504
  setState: r,
@@ -3512,7 +3508,7 @@ function Qi(t, e, o, r, i) {
3512
3508
  if (e.name.startsWith("Text "))
3513
3509
  return /* @__PURE__ */ a.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3514
3510
  if (e.name === "Signup button")
3515
- return /* @__PURE__ */ a.jsxs("form", { onSubmit: (g) => Ji(g, o, t), children: [
3511
+ return /* @__PURE__ */ a.jsxs("form", { onSubmit: (g) => Ki(g, o, t), children: [
3516
3512
  /* @__PURE__ */ a.jsx("button", { className: "btn btn-primary", type: "submit", children: i("signup.signUp") }),
3517
3513
  "  ",
3518
3514
  i("signup.haveAccount"),
@@ -3530,9 +3526,9 @@ function Qi(t, e, o, r, i) {
3530
3526
  )
3531
3527
  ] });
3532
3528
  if (e.name === "Providers" && t.providers) {
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,
3529
+ const g = On(t) || Bn(t) || Pn(t) || Rn(t);
3530
+ return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((u) => Pt(u)).map((u) => Ni(
3531
+ u.provider,
3536
3532
  t,
3537
3533
  null,
3538
3534
  null,
@@ -3543,7 +3539,7 @@ function Qi(t, e, o, r, i) {
3543
3539
  }
3544
3540
  return e.name;
3545
3541
  }
3546
- const Zi = {
3542
+ const Qi = {
3547
3543
  signup: {
3548
3544
  username: "Username",
3549
3545
  confirm: "Confirm password",
@@ -3588,18 +3584,18 @@ const Zi = {
3588
3584
  application: {
3589
3585
  invitationCode: "Invitation code"
3590
3586
  }
3591
- }, Xi = {
3592
- translation: Zi
3587
+ }, Zi = {
3588
+ translation: Qi
3593
3589
  };
3594
- Q.use(kn).init({
3590
+ K.use($n).init({
3595
3591
  lng: "en",
3596
3592
  fallbackLng: "en",
3597
3593
  // use en if detected lng is not available
3598
3594
  resources: {
3599
- en: Xi
3595
+ en: Zi
3600
3596
  }
3601
3597
  });
3602
- function er(t, e, o) {
3598
+ function Xi(t, e, o) {
3603
3599
  const r = /* @__PURE__ */ a.jsxs(
3604
3600
  "svg",
3605
3601
  {
@@ -3638,19 +3634,19 @@ function er(t, e, o) {
3638
3634
  /* @__PURE__ */ a.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3639
3635
  ]
3640
3636
  }
3641
- ), l = Me(t), u = ee(t);
3637
+ ), l = Ae(t), c = ee(t);
3642
3638
  if (l === "password") {
3643
- const g = e.password.state[u];
3639
+ const g = e.password.state[c];
3644
3640
  return /* @__PURE__ */ a.jsxs(
3645
3641
  o,
3646
3642
  {
3647
3643
  variant: "ghost",
3648
3644
  size: "icon",
3649
3645
  className: "top-1/2 right-2 -translate-y-1/2",
3650
- onClick: (s) => {
3651
- s.preventDefault(), s.stopPropagation(), e.password.setState({
3646
+ onClick: (u) => {
3647
+ u.preventDefault(), u.stopPropagation(), e.password.setState({
3652
3648
  ...e.password.state,
3653
- [u]: !g
3649
+ [c]: !g
3654
3650
  });
3655
3651
  },
3656
3652
  children: [
@@ -3680,43 +3676,43 @@ function ee(t) {
3680
3676
  };
3681
3677
  return Object.keys(e).includes(t.name) ? e[t.name] : t.name;
3682
3678
  }
3683
- function Me(t, e) {
3679
+ function Ae(t, e) {
3684
3680
  const o = ["password", "confirm"], r = ee(t);
3685
3681
  return o.includes(r) && !(e != null && e.hidePassword[r]) ? "password" : "text";
3686
3682
  }
3687
- function tr(t) {
3683
+ function er(t) {
3688
3684
  return Object.fromEntries(
3689
- t.filter((e) => Me(e) === "password").map((e) => [ee(e), !1])
3685
+ t.filter((e) => Ae(e) === "password").map((e) => [ee(e), !1])
3690
3686
  );
3691
3687
  }
3692
- function nr(t) {
3688
+ function tr(t) {
3693
3689
  return {
3694
3690
  name: ee(t),
3695
3691
  label: t.label || t.name,
3696
3692
  placeholder: t.placeholder,
3697
3693
  required: t.required,
3698
- type: Me(t)
3694
+ type: Ae(t)
3699
3695
  };
3700
3696
  }
3701
- function or(t, e) {
3697
+ function nr(t, e) {
3702
3698
  const o = ee(e);
3703
3699
  let r = t.string();
3704
3700
  return o === "email" && (r = r.email()), e.required || (r = r.optional()), r;
3705
3701
  }
3706
- function ar(t) {
3707
- const e = t.map((r) => [ee(r), ""]), o = t.filter((r) => qt(r)).map((r) => [ee(r) + "Code", ""]);
3702
+ function or(t) {
3703
+ const e = t.map((r) => [ee(r), ""]), o = t.filter((r) => Gt(r)).map((r) => [ee(r) + "Code", ""]);
3708
3704
  return Object.fromEntries([...e, ...o]);
3709
3705
  }
3710
- function qt(t) {
3706
+ function Gt(t) {
3711
3707
  const e = ee(t);
3712
3708
  return (e === "email" || e === "phone") && !["None", "No verification"].includes(t.rule);
3713
3709
  }
3714
- function ir(t) {
3710
+ function ar(t) {
3715
3711
  return t.visible === !0;
3716
3712
  }
3717
- function rr(t) {
3713
+ function ir(t) {
3718
3714
  var k;
3719
- const { t: e, i18n: o } = Te(), [r, i] = h.useState({
3715
+ const { t: e, i18n: o } = Le(), [r, i] = m.useState({
3720
3716
  applicationName: t.applicationName ?? null,
3721
3717
  email: "",
3722
3718
  phone: "",
@@ -3730,222 +3726,223 @@ function rr(t) {
3730
3726
  isTermsOfUseVisible: !1,
3731
3727
  termsOfUseContent: ""
3732
3728
  });
3733
- h.useRef();
3729
+ m.useRef();
3734
3730
  const l = (w) => {
3735
- w !== void 0 && Xe("admin", w).then(
3736
- (v) => {
3737
- if (v.status === "error") {
3738
- G("error", v.msg);
3731
+ w !== void 0 && Qe("admin", w).then(
3732
+ (x) => {
3733
+ if (x.status === "error") {
3734
+ G("error", x.msg);
3739
3735
  return;
3740
3736
  }
3741
- f(v.data);
3737
+ f(x.data);
3742
3738
  }
3743
3739
  );
3744
- }, u = (w) => {
3745
- It(w).then((v) => {
3746
- if (v.status === "ok") {
3747
- const M = v.data;
3748
- f(M);
3740
+ }, c = (w) => {
3741
+ Rt(w).then((x) => {
3742
+ if (x.status === "ok") {
3743
+ const A = x.data;
3744
+ f(A);
3749
3745
  } else
3750
3746
  f(null), i({
3751
3747
  ...r,
3752
- msg: v.msg
3748
+ msg: x.msg
3753
3749
  });
3754
3750
  });
3755
- }, g = () => t.application, s = (w, v) => {
3756
- Nt(w, v).then(
3757
- (M) => {
3758
- if (M.status === "error") {
3759
- G("error", M.msg);
3751
+ }, g = () => t.application, u = (w, x) => {
3752
+ Ft(w, x).then(
3753
+ (A) => {
3754
+ if (A.status === "error") {
3755
+ G("error", A.msg);
3760
3756
  return;
3761
3757
  }
3762
- i({ ...r, invitation: M.data });
3758
+ i({ ...r, invitation: A.data });
3763
3759
  }
3764
3760
  );
3765
3761
  }, f = (w) => {
3766
3762
  t.onUpdateApplication(w);
3767
3763
  };
3768
- h.useEffect(() => {
3769
- const w = Ft();
3764
+ m.useEffect(() => {
3765
+ const w = It();
3770
3766
  if (w !== null) {
3771
- const v = window.location.pathname.replace(
3767
+ const x = window.location.pathname.replace(
3772
3768
  "/signup/oauth/authorize",
3773
3769
  "/login/oauth/authorize"
3774
3770
  );
3775
- sessionStorage.setItem("signinUrl", v + window.location.search);
3771
+ sessionStorage.setItem("signinUrl", x + window.location.search);
3776
3772
  }
3777
3773
  if (g() === void 0)
3778
3774
  if (r.applicationName !== null) {
3779
3775
  l(r.applicationName);
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,
3776
+ const x = new URLSearchParams(window.location.search);
3777
+ if (x.has("invitationCode")) {
3778
+ const A = x.get("invitationCode") ?? "";
3779
+ i({ ...r, invitationCode: A }), A !== "" && u(
3780
+ A,
3785
3781
  "admin/" + r.applicationName
3786
3782
  );
3787
3783
  }
3788
- } else w !== null ? u(w) : (G(
3784
+ } else w !== null ? c(w) : (G(
3789
3785
  "error",
3790
3786
  `Unknown application name: ${r.applicationName}`
3791
3787
  ), f(null));
3792
3788
  }, []);
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));
3789
+ const h = g();
3790
+ return h == null ? null : (k = h.signupItems) == null ? void 0 : k.map((w, x) => /* @__PURE__ */ a.jsx("div", { children: Ji(h, w, r, i, e) }, x));
3795
3791
  }
3796
- function ur({
3792
+ function sr({
3797
3793
  applicationName: t,
3798
3794
  casdoorApiRoot: e,
3799
3795
  springmicroApiRoot: o
3800
3796
  }) {
3801
3797
  P.casdoor = e, o && (P.springmicro = o);
3802
- const [r, i] = h.useState({ application: null }), l = () => {
3803
- Xe("admin", t).then(
3804
- (u) => {
3805
- if (console.log(u), u.status === "error") {
3806
- G("error", u.msg);
3798
+ const [r, i] = m.useState({ application: null }), l = () => {
3799
+ Qe("admin", t).then(
3800
+ (c) => {
3801
+ if (console.log(c), c.status === "error") {
3802
+ G("error", c.msg);
3807
3803
  return;
3808
3804
  }
3809
3805
  i({
3810
- application: u.data
3806
+ application: c.data
3811
3807
  });
3812
3808
  }
3813
3809
  );
3814
3810
  };
3815
- return h.useEffect(() => {
3811
+ return m.useEffect(() => {
3816
3812
  l();
3817
- }, []), r.application === void 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(Sn, { i18n: Q, children: /* @__PURE__ */ a.jsx(
3818
- rr,
3813
+ }, []), r.application === void 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(kn, { i18n: K, children: /* @__PURE__ */ a.jsx(
3814
+ ir,
3819
3815
  {
3820
3816
  application: r.application,
3821
- onUpdateApplication: (u) => {
3817
+ onUpdateApplication: (c) => {
3822
3818
  i({
3823
- application: u
3819
+ application: c
3824
3820
  });
3825
3821
  }
3826
3822
  }
3827
3823
  ) });
3828
3824
  }
3829
- const Yt = h.createContext(
3825
+ const qt = m.createContext(
3830
3826
  void 0
3831
3827
  );
3832
- function dr({
3828
+ function ur({
3833
3829
  applicationName: t,
3834
3830
  casdoorApiRoot: e,
3835
3831
  springmicroApiRoot: o,
3836
3832
  children: r
3837
3833
  }) {
3838
- Te(), P.casdoor = e, o && (P.springmicro = o);
3839
- const [i, l] = h.useState({ application: null }), [u, g] = h.useState({}), s = () => {
3840
- Xe("admin", t).then(
3841
- (E) => {
3842
- if (console.log(E), E.status === "error") {
3843
- G("error", E.msg);
3834
+ const { t: i, i18n: l } = Le();
3835
+ P.casdoor = e, o && (P.springmicro = o);
3836
+ const [c, g] = m.useState({ application: null }), [u, f] = m.useState({}), h = () => {
3837
+ Qe("admin", t).then(
3838
+ (b) => {
3839
+ if (console.log(b), b.status === "error") {
3840
+ G("error", b.msg);
3844
3841
  return;
3845
3842
  }
3846
- l({
3847
- application: E.data
3843
+ g({
3844
+ application: b.data
3848
3845
  });
3849
3846
  }
3850
3847
  );
3851
- }, f = (E) => {
3852
- l({
3853
- application: E
3848
+ }, k = (b) => {
3849
+ g({
3850
+ application: b
3854
3851
  });
3855
- }, m = (E, _) => {
3856
- Nt(E, _).then(
3857
- ($) => {
3858
- if ($.status === "error") {
3859
- G("error", $.msg);
3852
+ }, w = (b, E) => {
3853
+ Ft(b, E).then(
3854
+ (M) => {
3855
+ if (M.status === "error") {
3856
+ G("error", M.msg);
3860
3857
  return;
3861
3858
  }
3862
- l({ ...i, invitation: $.data });
3859
+ g({ ...c, invitation: M.data });
3863
3860
  }
3864
3861
  );
3865
- }, k = (E) => {
3866
- It(E).then((_) => {
3867
- if (_.status === "ok") {
3868
- const $ = _.data;
3869
- f($);
3862
+ }, x = (b) => {
3863
+ Rt(b).then((E) => {
3864
+ if (E.status === "ok") {
3865
+ const M = E.data;
3866
+ k(M);
3870
3867
  } else
3871
- f(null), l({
3872
- ...i,
3873
- msg: _.msg
3868
+ k(null), g({
3869
+ ...c,
3870
+ msg: E.msg
3874
3871
  });
3875
3872
  });
3876
- }, w = (E, _) => er(
3877
- E,
3873
+ }, A = (b, E) => Xi(
3874
+ b,
3878
3875
  {
3879
3876
  password: {
3880
3877
  state: u,
3881
- setState: g
3878
+ setState: f
3882
3879
  }
3883
3880
  },
3884
- _
3885
- ), v = (E) => Me(E, {
3881
+ E
3882
+ ), U = (b) => Ae(b, {
3886
3883
  hidePassword: u
3887
- }), M = Dt, D = Ut;
3888
- return h.useEffect(() => {
3889
- s();
3890
- }, []), h.useEffect(() => {
3891
- i.application && g(
3892
- tr(i.application.signupItems)
3884
+ }), Q = Nt, R = Dt;
3885
+ return m.useEffect(() => {
3886
+ h();
3887
+ }, []), m.useEffect(() => {
3888
+ c.application && f(
3889
+ er(c.application.signupItems)
3893
3890
  );
3894
- }, [i.application]), h.useEffect(() => {
3895
- const E = Ft();
3896
- if (E !== null) {
3897
- const _ = window.location.pathname.replace(
3891
+ }, [c.application]), m.useEffect(() => {
3892
+ const b = It();
3893
+ if (b !== null) {
3894
+ const E = window.location.pathname.replace(
3898
3895
  "/signup/oauth/authorize",
3899
3896
  "/login/oauth/authorize"
3900
3897
  );
3901
- sessionStorage.setItem("signinUrl", _ + window.location.search);
3902
- }
3903
- if (i.application === void 0)
3904
- if (i.applicationName !== null) {
3905
- s();
3906
- const _ = new URLSearchParams(window.location.search);
3907
- if (_.has("invitationCode")) {
3908
- const $ = _.get("invitationCode") ?? "";
3909
- l({ ...i, invitationCode: $ }), $ !== "" && m(
3910
- $,
3911
- "admin/" + i.applicationName
3898
+ sessionStorage.setItem("signinUrl", E + window.location.search);
3899
+ }
3900
+ if (c.application === void 0)
3901
+ if (c.applicationName !== null) {
3902
+ h();
3903
+ const E = new URLSearchParams(window.location.search);
3904
+ if (E.has("invitationCode")) {
3905
+ const M = E.get("invitationCode") ?? "";
3906
+ g({ ...c, invitationCode: M }), M !== "" && w(
3907
+ M,
3908
+ "admin/" + c.applicationName
3912
3909
  );
3913
3910
  }
3914
- } else E !== null ? k(E) : (G(
3911
+ } else b !== null ? x(b) : (G(
3915
3912
  "error",
3916
- `Unknown application name: ${i.applicationName}`
3917
- ), f(null));
3918
- }, []), i.application === void 0 || i.application === null ? null : /* @__PURE__ */ a.jsx(
3919
- Yt.Provider,
3913
+ `Unknown application name: ${c.applicationName}`
3914
+ ), k(null));
3915
+ }, []), c.application === void 0 || c.application === null ? null : /* @__PURE__ */ a.jsx(
3916
+ qt.Provider,
3920
3917
  {
3921
3918
  value: {
3922
- application: i.application,
3923
- getDefaultValues: ar,
3924
- getFormProps: nr,
3925
- icon: w,
3926
- getZod: or,
3919
+ application: c.application,
3920
+ getDefaultValues: or,
3921
+ getFormProps: tr,
3922
+ icon: A,
3923
+ getZod: nr,
3927
3924
  getKey: ee,
3928
- type: v,
3929
- sendCode: M,
3930
- requiresCode: qt,
3931
- getCaptcha: D,
3932
- isVisible: ir
3925
+ type: U,
3926
+ sendCode: Q,
3927
+ requiresCode: Gt,
3928
+ getCaptcha: R,
3929
+ isVisible: ar
3933
3930
  },
3934
3931
  children: r
3935
3932
  }
3936
3933
  );
3937
3934
  }
3938
- const fr = () => {
3939
- const t = h.useContext(Yt);
3935
+ const dr = () => {
3936
+ const t = m.useContext(qt);
3940
3937
  if (!t)
3941
3938
  throw new Error("useSignUp must be used within a SignUpProvider");
3942
3939
  return t;
3943
3940
  };
3944
3941
  export {
3945
- ur as S,
3946
- jn as a,
3947
- dr as b,
3948
- Yn as g,
3942
+ sr as S,
3943
+ En as a,
3944
+ ur as b,
3945
+ qn as g,
3949
3946
  G as s,
3950
- fr as u
3947
+ dr as u
3951
3948
  };