@springmicro/auth 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/.eslintrc.cjs +18 -18
  2. package/README.md +60 -60
  3. package/dist/{Index-64ac63ff-Bb7oVTBw.js → Index-64ac63ff-CSMaEBDA.js} +1 -1
  4. package/dist/{Index-6c094240-Cre9O000.js → Index-6c094240-mSgidTC1.js} +1 -1
  5. package/dist/{Web3Auth-D-jzK5S2.js → Web3Auth-R27O2eCc.js} +10 -10
  6. package/dist/alphawallet-B7eovdf-.js +0 -0
  7. package/dist/apexwallet-ysP20G9D.js +0 -0
  8. package/dist/atoken-BBnNTzcz.js +0 -0
  9. package/dist/bifrostwallet-CNNBO92h.js +0 -0
  10. package/dist/binance-DvPgAzCw.js +0 -0
  11. package/dist/bitget-DZOUrwgy.js +0 -0
  12. package/dist/bitpie-C_uxmEzw.js +0 -0
  13. package/dist/bitski-DpzkHNkv.js +0 -0
  14. package/dist/blockwallet-BL69cqkA.js +0 -0
  15. package/dist/brave-DnRzMQYW.js +0 -0
  16. package/dist/ccip-c78d2f16-DLcRlwod.js +0 -0
  17. package/dist/coin98wallet-CkFdOvXt.js +0 -0
  18. package/dist/coinbase-CaGNx5if.js +0 -0
  19. package/dist/core-9rK8tWud.js +0 -0
  20. package/dist/defiwallet-0AsgJBSy.js +0 -0
  21. package/dist/detected-CX_JZaUk.js +0 -0
  22. package/dist/echooo-CmaetT_Z.js +0 -0
  23. package/dist/enkrypt-BibtwvK7.js +0 -0
  24. package/dist/exodus-BxzkDWWP.js +0 -0
  25. package/dist/fordefi-CvKyVwhI.js +0 -0
  26. package/dist/foxwallet-D7c_LDTf.js +0 -0
  27. package/dist/frame-CDfNmjUy.js +0 -0
  28. package/dist/frontier-DqKNSj2z.js +0 -0
  29. package/dist/{hashMessage-1XTFjS64.js → hashMessage-B7KFzddV.js} +1 -1
  30. package/dist/huobiwallet-CxSwqa5L.js +0 -0
  31. package/dist/hyperpay-nmHE3WqM.js +0 -0
  32. package/dist/icon-2Zqy7pqQ.js +0 -0
  33. package/dist/icon-CGWI1Ies.js +0 -0
  34. package/dist/icon-C_O4nprO.js +0 -0
  35. package/dist/icon-DbgmZCnU.js +0 -0
  36. package/dist/icon-Dbjb6jc5.js +0 -0
  37. package/dist/icon-cAd7RhSC.js +0 -0
  38. package/dist/imtoken-yENtOTS3.js +0 -0
  39. package/dist/index-021f6a62-Zz543EDB.js +0 -0
  40. package/dist/{index-BcBHeHDh.js → index-1HLXgKdW.js} +2 -2
  41. package/dist/index-40a497ea-Bn2mC0r7.js +0 -0
  42. package/dist/{index-Bt-ptciq.js → index-C8xLRoDS.js} +1 -1
  43. package/dist/{index-Dd6Cx4jI.js → index-ChYsa81u.js} +2 -2
  44. package/dist/{index-Bi-yyFKX.js → index-Cp0Pai1C.js} +1 -1
  45. package/dist/{index-BCIsepdu.js → index-D_yyUC2r.js} +1060 -1025
  46. package/dist/{index-m_M0OdCv.js → index-TsElTuix.js} +1 -1
  47. package/dist/{index-D23L6orl.js → index-ayOaYQgv.js} +4 -4
  48. package/dist/index.d.ts +8 -3
  49. package/dist/index.js +1 -1
  50. package/dist/index.umd.cjs +165 -165
  51. package/dist/infinitywallet-C8J4FUYw.js +0 -0
  52. package/dist/kayros-AIrUK1za.js +0 -0
  53. package/dist/keplr-CyLTca9B.js +0 -0
  54. package/dist/lif3wallet-C5D6r8pg.js +0 -0
  55. package/dist/liquality-nbCtErVq.js +0 -0
  56. package/dist/mathwallet-CWkivCXo.js +0 -0
  57. package/dist/meetone-kKmvI8md.js +0 -0
  58. package/dist/metamask-BN7yiDV1.js +0 -0
  59. package/dist/mykey-CQZ6UcLH.js +0 -0
  60. package/dist/native-FDN9oNjc.js +0 -0
  61. package/dist/{number-DcOvM-ZJ.js → number-D9Q-3_Cz.js} +1 -1
  62. package/dist/okxwallet-CJLVogh2.js +0 -0
  63. package/dist/oneInch-CciyZ4Pz.js +0 -0
  64. package/dist/onekey-Dal8kYjU.js +0 -0
  65. package/dist/opera-DnKg-TJU.js +0 -0
  66. package/dist/ownbit-BshJUVuW.js +0 -0
  67. package/dist/phantom-CJ8dIcov.js +0 -0
  68. package/dist/rabby-D4thTcd6.js +0 -0
  69. package/dist/rainbow-mXld6yWV.js +0 -0
  70. package/dist/roninwallet-ZyYrd-D1.js +0 -0
  71. package/dist/safeheron-Eg1Jb29V.js +0 -0
  72. package/dist/safepal-DVIKy94N.js +0 -0
  73. package/dist/sequence-BS2IbtDg.js +0 -0
  74. package/dist/stablewallet-jyB079Wb.js +0 -0
  75. package/dist/status-FrAvQjfn.js +0 -0
  76. package/dist/subwallet-DMvFqKyY.js +0 -0
  77. package/dist/talisman-Bp8zUXqB.js +0 -0
  78. package/dist/tallywallet-B4OS9nIr.js +0 -0
  79. package/dist/tokenary-C7jjcbQa.js +0 -0
  80. package/dist/tokenpocket-9ZRPmAFA.js +0 -0
  81. package/dist/tp-V2em5bdl.js +0 -0
  82. package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +0 -0
  83. package/dist/trust-SgHubMq7.js +0 -0
  84. package/dist/xdefi-COVIyGz4.js +0 -0
  85. package/dist/zeal-DxHbDqm0.js +0 -0
  86. package/dist/zerion-BfW0UElc.js +0 -0
  87. package/dist/zodiacpilot-CrId6F4w.js +0 -0
  88. package/index.html +13 -13
  89. package/package.json +2 -2
  90. package/src/auth/config.ts +91 -91
  91. package/src/components/SignUp.tsx +445 -442
  92. package/src/components/forms/AgreementModal.tsx +88 -88
  93. package/src/components/forms/CaptchaController.tsx +94 -94
  94. package/src/components/forms/CaptchaModal.jsx +171 -171
  95. package/src/components/forms/CaptchaWidget.jsx +146 -146
  96. package/src/components/forms/PasswordChecker.ts +88 -88
  97. package/src/components/forms/SendCodeInput.tsx +0 -0
  98. package/src/components/forms/SignUpFormItem.tsx +0 -0
  99. package/src/components/forms/util/application-api.ts +157 -157
  100. package/src/components/forms/util/auth-api.ts +198 -198
  101. package/src/components/forms/util/auth-util.tsx +346 -346
  102. package/src/components/forms/util/core.ts +493 -493
  103. package/src/components/forms/util/invitation-api.ts +132 -132
  104. package/src/components/forms/util/provider.tsx +603 -603
  105. package/src/components/forms/util/user-api.ts +0 -0
  106. package/src/components/provider/AdfsLoginButton.jsx +38 -38
  107. package/src/components/provider/AlipayLoginButton.jsx +38 -38
  108. package/src/components/provider/AppleLoginButton.jsx +38 -38
  109. package/src/components/provider/AzureADB2CLoginButton.jsx +38 -38
  110. package/src/components/provider/AzureADLoginButton.jsx +38 -38
  111. package/src/components/provider/BaiduLoginButton.jsx +38 -38
  112. package/src/components/provider/BilibiliLoginButton.jsx +37 -37
  113. package/src/components/provider/CasdoorLoginButton.jsx +38 -38
  114. package/src/components/provider/DingTalkLoginButton.jsx +37 -37
  115. package/src/components/provider/DouyinLoginButton.jsx +38 -38
  116. package/src/components/provider/FacebookLoginButton.jsx +37 -37
  117. package/src/components/provider/GitHubLoginButton.jsx +37 -37
  118. package/src/components/provider/GitLabLoginButton.jsx +38 -38
  119. package/src/components/provider/GiteeLoginButton.jsx +34 -34
  120. package/src/components/provider/GoogleLoginButton.jsx +68 -68
  121. package/src/components/provider/InfoflowLoginButton.jsx +38 -38
  122. package/src/components/provider/LarkLoginButton.jsx +38 -38
  123. package/src/components/provider/LinkedInLoginButton.jsx +37 -37
  124. package/src/components/provider/LoginButton.jsx +33 -33
  125. package/src/components/provider/OktaLoginButton.jsx +38 -38
  126. package/src/components/provider/Provider.jsx +3 -3
  127. package/src/components/provider/ProviderButton.jsx +327 -327
  128. package/src/components/provider/QqLoginButton.jsx +31 -31
  129. package/src/components/provider/SelfLoginButton.jsx +47 -47
  130. package/src/components/provider/SlackLoginButton.jsx +38 -38
  131. package/src/components/provider/SteamLoginButton.jsx +38 -38
  132. package/src/components/provider/WeComLoginButton.jsx +34 -34
  133. package/src/components/provider/Web3Auth.jsx +365 -365
  134. package/src/components/provider/WechatLoginButton.jsx +37 -37
  135. package/src/components/provider/WeiboLoginButton.jsx +34 -34
  136. package/src/components/util.tsx +174 -170
  137. package/src/i18n/en/signup.json +48 -48
  138. package/src/i18n/index.ts +17 -17
  139. package/src/index.tsx +8 -8
  140. package/src/vite-env.d.ts +1 -1
  141. package/tsconfig.json +23 -23
  142. package/tsconfig.node.json +10 -10
  143. package/vite.config.ts +33 -33
@@ -1,8 +1,8 @@
1
1
  import { defineConfig as kn } from "auth-astro";
2
- import m, { useEffect as Rt } from "react";
2
+ import m, { useEffect as Pt } from "react";
3
3
  import { useTranslation as Te, initReactI18next as Sn, I18nextProvider as _n } from "react-i18next";
4
4
  import Q from "i18next";
5
- const fr = ({
5
+ const pr = ({
6
6
  casdoorEndpoint: t,
7
7
  clientId: e,
8
8
  clientSecret: o
@@ -34,11 +34,11 @@ const fr = ({
34
34
  signIn: "/sign-in"
35
35
  },
36
36
  callbacks: {
37
- async jwt({ token: r, account: a, user: l }) {
38
- return a && (r.accessToken = a.access_token ?? "", r.username = l.username, r.id = l.id), r;
37
+ async jwt({ token: r, account: i, user: l }) {
38
+ return i && (r.accessToken = i.access_token ?? "", r.username = l.username, r.id = l.id), r;
39
39
  },
40
- async session({ session: r, token: a, user: l }) {
41
- return r.accessToken = a.accessToken, r.user.id = a.id, r.user.username = a.username, r;
40
+ async session({ session: r, token: i, user: l }) {
41
+ return r.accessToken = i.accessToken, r.user.id = i.id, r.user.username = i.username, r;
42
42
  }
43
43
  }
44
44
  });
@@ -56,15 +56,15 @@ var wt;
56
56
  function Cn() {
57
57
  if (wt) return we;
58
58
  wt = 1;
59
- var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
60
- function u(g, c, f) {
61
- var h, $ = {}, w = null, b = null;
62
- f !== void 0 && (w = "" + f), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (b = c.ref);
63
- for (h in c) r.call(c, h) && !l.hasOwnProperty(h) && ($[h] = c[h]);
64
- if (g && g.defaultProps) for (h in c = g.defaultProps, c) $[h] === void 0 && ($[h] = c[h]);
65
- return { $$typeof: e, type: g, key: w, ref: b, props: $, _owner: a.current };
59
+ 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 };
60
+ function d(p, c, g) {
61
+ var h, y = {}, w = null, x = null;
62
+ g !== void 0 && (w = "" + g), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (x = c.ref);
63
+ for (h in c) r.call(c, h) && !l.hasOwnProperty(h) && (y[h] = c[h]);
64
+ if (p && p.defaultProps) for (h in c = p.defaultProps, c) y[h] === void 0 && (y[h] = c[h]);
65
+ return { $$typeof: e, type: p, key: w, ref: x, props: y, _owner: i.current };
66
66
  }
67
- return we.Fragment = o, we.jsx = u, we.jsxs = u, we;
67
+ return we.Fragment = o, we.jsx = d, we.jsxs = d, we;
68
68
  }
69
69
  var be = {};
70
70
  /**
@@ -79,54 +79,54 @@ var be = {};
79
79
  var bt;
80
80
  function En() {
81
81
  return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
82
- var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), L = Symbol.iterator, F = "@@iterator";
83
- function E(n) {
82
+ 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"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), E = Symbol.iterator, H = "@@iterator";
83
+ function Z(n) {
84
84
  if (n === null || typeof n != "object")
85
85
  return null;
86
- var s = L && n[L] || n[F];
86
+ var s = E && n[E] || n[H];
87
87
  return typeof s == "function" ? s : null;
88
88
  }
89
- var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
90
- function k(n) {
89
+ var z = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
90
+ function v(n) {
91
91
  {
92
- for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), y = 1; y < s; y++)
93
- p[y - 1] = arguments[y];
94
- q("error", n, p);
92
+ for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), b = 1; b < s; b++)
93
+ f[b - 1] = arguments[b];
94
+ O("error", n, f);
95
95
  }
96
96
  }
97
- function q(n, s, p) {
97
+ function O(n, s, f) {
98
98
  {
99
- var y = _.ReactDebugCurrentFrame, S = y.getStackAddendum();
100
- S !== "" && (s += "%s", p = p.concat([S]));
101
- var C = p.map(function(x) {
102
- return String(x);
99
+ var b = z.ReactDebugCurrentFrame, S = b.getStackAddendum();
100
+ S !== "" && (s += "%s", f = f.concat([S]));
101
+ var _ = f.map(function(k) {
102
+ return String(k);
103
103
  });
104
- C.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, C);
104
+ _.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, _);
105
105
  }
106
106
  }
107
- var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, P;
107
+ var R = !1, D = !1, V = !1, X = !1, ee = !1, P;
108
108
  P = Symbol.for("react.module.reference");
109
109
  function ze(n) {
110
- return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === a || n === f || n === h || pe || n === b || Y || U || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === $ || n.$$typeof === u || n.$$typeof === g || n.$$typeof === c || // This needs to include all possible module reference object
110
+ return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ee || n === i || n === g || n === h || X || n === x || R || D || V || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === y || n.$$typeof === d || n.$$typeof === p || n.$$typeof === c || // This needs to include all possible module reference object
111
111
  // types supported by any Flight configuration anywhere since
112
112
  // we don't know which Flight build this will end up being used
113
113
  // with.
114
114
  n.$$typeof === P || n.getModuleId !== void 0));
115
115
  }
116
- function ge(n, s, p) {
117
- var y = n.displayName;
118
- if (y)
119
- return y;
116
+ function ge(n, s, f) {
117
+ var b = n.displayName;
118
+ if (b)
119
+ return b;
120
120
  var S = s.displayName || s.name || "";
121
- return S !== "" ? p + "(" + S + ")" : p;
121
+ return S !== "" ? f + "(" + S + ")" : f;
122
122
  }
123
123
  function he(n) {
124
124
  return n.displayName || "Context";
125
125
  }
126
- function H(n) {
126
+ function G(n) {
127
127
  if (n == null)
128
128
  return null;
129
- if (typeof n.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
129
+ if (typeof n.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
130
130
  return n.displayName || n.name || null;
131
131
  if (typeof n == "string")
132
132
  return n;
@@ -137,30 +137,30 @@ function En() {
137
137
  return "Portal";
138
138
  case l:
139
139
  return "Profiler";
140
- case a:
140
+ case i:
141
141
  return "StrictMode";
142
- case f:
142
+ case g:
143
143
  return "Suspense";
144
144
  case h:
145
145
  return "SuspenseList";
146
146
  }
147
147
  if (typeof n == "object")
148
148
  switch (n.$$typeof) {
149
- case g:
149
+ case p:
150
150
  var s = n;
151
151
  return he(s) + ".Consumer";
152
- case u:
153
- var p = n;
154
- return he(p._context) + ".Provider";
152
+ case d:
153
+ var f = n;
154
+ return he(f._context) + ".Provider";
155
155
  case c:
156
156
  return ge(n, n.render, "ForwardRef");
157
- case $:
158
- var y = n.displayName || null;
159
- return y !== null ? y : H(n.type) || "Memo";
157
+ case y:
158
+ var b = n.displayName || null;
159
+ return b !== null ? b : G(n.type) || "Memo";
160
160
  case w: {
161
- var S = n, C = S._payload, x = S._init;
161
+ var S = n, _ = S._payload, k = S._init;
162
162
  try {
163
- return H(x(C));
163
+ return G(k(_));
164
164
  } catch {
165
165
  return null;
166
166
  }
@@ -168,14 +168,14 @@ function En() {
168
168
  }
169
169
  return null;
170
170
  }
171
- var X = Object.assign, re = 0, ke, Se, M, Oe, et, tt, nt;
171
+ var te = Object.assign, le = 0, ke, Se, T, Oe, et, tt, nt;
172
172
  function ot() {
173
173
  }
174
174
  ot.__reactDisabledLog = !0;
175
175
  function Kt() {
176
176
  {
177
- if (re === 0) {
178
- ke = console.log, Se = console.info, M = console.warn, Oe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
177
+ if (le === 0) {
178
+ ke = console.log, Se = console.info, T = console.warn, Oe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
179
179
  var n = {
180
180
  configurable: !0,
181
181
  enumerable: !0,
@@ -192,142 +192,142 @@ function En() {
192
192
  groupEnd: n
193
193
  });
194
194
  }
195
- re++;
195
+ le++;
196
196
  }
197
197
  }
198
198
  function Jt() {
199
199
  {
200
- if (re--, re === 0) {
200
+ if (le--, le === 0) {
201
201
  var n = {
202
202
  configurable: !0,
203
203
  enumerable: !0,
204
204
  writable: !0
205
205
  };
206
206
  Object.defineProperties(console, {
207
- log: X({}, n, {
207
+ log: te({}, n, {
208
208
  value: ke
209
209
  }),
210
- info: X({}, n, {
210
+ info: te({}, n, {
211
211
  value: Se
212
212
  }),
213
- warn: X({}, n, {
214
- value: M
213
+ warn: te({}, n, {
214
+ value: T
215
215
  }),
216
- error: X({}, n, {
216
+ error: te({}, n, {
217
217
  value: Oe
218
218
  }),
219
- group: X({}, n, {
219
+ group: te({}, n, {
220
220
  value: et
221
221
  }),
222
- groupCollapsed: X({}, n, {
222
+ groupCollapsed: te({}, n, {
223
223
  value: tt
224
224
  }),
225
- groupEnd: X({}, n, {
225
+ groupEnd: te({}, n, {
226
226
  value: nt
227
227
  })
228
228
  });
229
229
  }
230
- re < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
230
+ le < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
231
231
  }
232
232
  }
233
- var Be = _.ReactCurrentDispatcher, Re;
234
- function _e(n, s, p) {
233
+ var Be = z.ReactCurrentDispatcher, Pe;
234
+ function _e(n, s, f) {
235
235
  {
236
- if (Re === void 0)
236
+ if (Pe === void 0)
237
237
  try {
238
238
  throw Error();
239
239
  } catch (S) {
240
- var y = S.stack.trim().match(/\n( *(at )?)/);
241
- Re = y && y[1] || "";
240
+ var b = S.stack.trim().match(/\n( *(at )?)/);
241
+ Pe = b && b[1] || "";
242
242
  }
243
243
  return `
244
- ` + Re + n;
244
+ ` + Pe + n;
245
245
  }
246
246
  }
247
- var Pe = !1, Ce;
247
+ var Re = !1, Ce;
248
248
  {
249
249
  var Qt = typeof WeakMap == "function" ? WeakMap : Map;
250
250
  Ce = new Qt();
251
251
  }
252
252
  function at(n, s) {
253
- if (!n || Pe)
253
+ if (!n || Re)
254
254
  return "";
255
255
  {
256
- var p = Ce.get(n);
257
- if (p !== void 0)
258
- return p;
256
+ var f = Ce.get(n);
257
+ if (f !== void 0)
258
+ return f;
259
259
  }
260
- var y;
261
- Pe = !0;
260
+ var b;
261
+ Re = !0;
262
262
  var S = Error.prepareStackTrace;
263
263
  Error.prepareStackTrace = void 0;
264
- var C;
265
- C = Be.current, Be.current = null, Kt();
264
+ var _;
265
+ _ = Be.current, Be.current = null, Kt();
266
266
  try {
267
267
  if (s) {
268
- var x = function() {
268
+ var k = function() {
269
269
  throw Error();
270
270
  };
271
- if (Object.defineProperty(x.prototype, "props", {
271
+ if (Object.defineProperty(k.prototype, "props", {
272
272
  set: function() {
273
273
  throw Error();
274
274
  }
275
275
  }), typeof Reflect == "object" && Reflect.construct) {
276
276
  try {
277
- Reflect.construct(x, []);
278
- } catch (D) {
279
- y = D;
277
+ Reflect.construct(k, []);
278
+ } catch (U) {
279
+ b = U;
280
280
  }
281
- Reflect.construct(n, [], x);
281
+ Reflect.construct(n, [], k);
282
282
  } else {
283
283
  try {
284
- x.call();
285
- } catch (D) {
286
- y = D;
284
+ k.call();
285
+ } catch (U) {
286
+ b = U;
287
287
  }
288
- n.call(x.prototype);
288
+ n.call(k.prototype);
289
289
  }
290
290
  } else {
291
291
  try {
292
292
  throw Error();
293
- } catch (D) {
294
- y = D;
293
+ } catch (U) {
294
+ b = U;
295
295
  }
296
296
  n();
297
297
  }
298
- } catch (D) {
299
- if (D && y && typeof D.stack == "string") {
300
- for (var v = D.stack.split(`
301
- `), N = y.stack.split(`
302
- `), z = v.length - 1, B = N.length - 1; z >= 1 && B >= 0 && v[z] !== N[B]; )
298
+ } catch (U) {
299
+ if (U && b && typeof U.stack == "string") {
300
+ for (var $ = U.stack.split(`
301
+ `), F = b.stack.split(`
302
+ `), A = $.length - 1, B = F.length - 1; A >= 1 && B >= 0 && $[A] !== F[B]; )
303
303
  B--;
304
- for (; z >= 1 && B >= 0; z--, B--)
305
- if (v[z] !== N[B]) {
306
- if (z !== 1 || B !== 1)
304
+ for (; A >= 1 && B >= 0; A--, B--)
305
+ if ($[A] !== F[B]) {
306
+ if (A !== 1 || B !== 1)
307
307
  do
308
- if (z--, B--, B < 0 || v[z] !== N[B]) {
309
- var V = `
310
- ` + v[z].replace(" at new ", " at ");
311
- return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && Ce.set(n, V), V;
308
+ if (A--, B--, B < 0 || $[A] !== F[B]) {
309
+ var q = `
310
+ ` + $[A].replace(" at new ", " at ");
311
+ return n.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", n.displayName)), typeof n == "function" && Ce.set(n, q), q;
312
312
  }
313
- while (z >= 1 && B >= 0);
313
+ while (A >= 1 && B >= 0);
314
314
  break;
315
315
  }
316
316
  }
317
317
  } finally {
318
- Pe = !1, Be.current = C, Jt(), Error.prepareStackTrace = S;
318
+ Re = !1, Be.current = _, Jt(), Error.prepareStackTrace = S;
319
319
  }
320
- var de = n ? n.displayName || n.name : "", le = de ? _e(de) : "";
321
- return typeof n == "function" && Ce.set(n, le), le;
320
+ var fe = n ? n.displayName || n.name : "", ce = fe ? _e(fe) : "";
321
+ return typeof n == "function" && Ce.set(n, ce), ce;
322
322
  }
323
- function Zt(n, s, p) {
323
+ function Zt(n, s, f) {
324
324
  return at(n, !1);
325
325
  }
326
326
  function Xt(n) {
327
327
  var s = n.prototype;
328
328
  return !!(s && s.isReactComponent);
329
329
  }
330
- function Ee(n, s, p) {
330
+ function Ee(n, s, f) {
331
331
  if (n == null)
332
332
  return "";
333
333
  if (typeof n == "function")
@@ -335,7 +335,7 @@ function En() {
335
335
  if (typeof n == "string")
336
336
  return _e(n);
337
337
  switch (n) {
338
- case f:
338
+ case g:
339
339
  return _e("Suspense");
340
340
  case h:
341
341
  return _e("SuspenseList");
@@ -344,42 +344,42 @@ function En() {
344
344
  switch (n.$$typeof) {
345
345
  case c:
346
346
  return Zt(n.render);
347
- case $:
348
- return Ee(n.type, s, p);
347
+ case y:
348
+ return Ee(n.type, s, f);
349
349
  case w: {
350
- var y = n, S = y._payload, C = y._init;
350
+ var b = n, S = b._payload, _ = b._init;
351
351
  try {
352
- return Ee(C(S), s, p);
352
+ return Ee(_(S), s, f);
353
353
  } catch {
354
354
  }
355
355
  }
356
356
  }
357
357
  return "";
358
358
  }
359
- var me = Object.prototype.hasOwnProperty, it = {}, rt = _.ReactDebugCurrentFrame;
359
+ var me = Object.prototype.hasOwnProperty, it = {}, rt = z.ReactDebugCurrentFrame;
360
360
  function je(n) {
361
361
  if (n) {
362
- var s = n._owner, p = Ee(n.type, n._source, s ? s.type : null);
363
- rt.setExtraStackFrame(p);
362
+ var s = n._owner, f = Ee(n.type, n._source, s ? s.type : null);
363
+ rt.setExtraStackFrame(f);
364
364
  } else
365
365
  rt.setExtraStackFrame(null);
366
366
  }
367
- function en(n, s, p, y, S) {
367
+ function en(n, s, f, b, S) {
368
368
  {
369
- var C = Function.call.bind(me);
370
- for (var x in n)
371
- if (C(n, x)) {
372
- var v = void 0;
369
+ var _ = Function.call.bind(me);
370
+ for (var k in n)
371
+ if (_(n, k)) {
372
+ var $ = void 0;
373
373
  try {
374
- if (typeof n[x] != "function") {
375
- var N = Error((y || "React class") + ": " + p + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
376
- throw N.name = "Invariant Violation", N;
374
+ if (typeof n[k] != "function") {
375
+ var F = Error((b || "React class") + ": " + f + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
376
+ throw F.name = "Invariant Violation", F;
377
377
  }
378
- v = n[x](s, x, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
379
- } catch (z) {
380
- v = z;
378
+ $ = n[k](s, k, b, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
379
+ } catch (A) {
380
+ $ = A;
381
381
  }
382
- v && !(v instanceof Error) && (je(S), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", p, x, typeof v), je(null)), v instanceof Error && !(v.message in it) && (it[v.message] = !0, je(S), k("Failed %s type: %s", p, v.message), je(null));
382
+ $ && !($ instanceof Error) && (je(S), v("%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).", b || "React class", f, k, typeof $), je(null)), $ instanceof Error && !($.message in it) && (it[$.message] = !0, je(S), v("Failed %s type: %s", f, $.message), je(null));
383
383
  }
384
384
  }
385
385
  }
@@ -389,8 +389,8 @@ function En() {
389
389
  }
390
390
  function nn(n) {
391
391
  {
392
- var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
393
- return p;
392
+ var s = typeof Symbol == "function" && Symbol.toStringTag, f = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
393
+ return f;
394
394
  }
395
395
  }
396
396
  function on(n) {
@@ -405,15 +405,15 @@ function En() {
405
405
  }
406
406
  function ct(n) {
407
407
  if (on(n))
408
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nn(n)), lt(n);
408
+ return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nn(n)), lt(n);
409
409
  }
410
- var ye = _.ReactCurrentOwner, an = {
410
+ var ye = z.ReactCurrentOwner, an = {
411
411
  key: !0,
412
412
  ref: !0,
413
413
  __self: !0,
414
414
  __source: !0
415
- }, st, ut, Fe;
416
- Fe = {};
415
+ }, st, ut, Ne;
416
+ Ne = {};
417
417
  function rn(n) {
418
418
  if (me.call(n, "ref")) {
419
419
  var s = Object.getOwnPropertyDescriptor(n, "ref").get;
@@ -432,84 +432,84 @@ function En() {
432
432
  }
433
433
  function cn(n, s) {
434
434
  if (typeof n.ref == "string" && ye.current && s && ye.current.stateNode !== s) {
435
- var p = H(ye.current.type);
436
- Fe[p] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', H(ye.current.type), n.ref), Fe[p] = !0);
435
+ var f = G(ye.current.type);
436
+ Ne[f] || (v('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', G(ye.current.type), n.ref), Ne[f] = !0);
437
437
  }
438
438
  }
439
439
  function sn(n, s) {
440
440
  {
441
- var p = function() {
442
- st || (st = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
441
+ var f = function() {
442
+ st || (st = !0, v("%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));
443
443
  };
444
- p.isReactWarning = !0, Object.defineProperty(n, "key", {
445
- get: p,
444
+ f.isReactWarning = !0, Object.defineProperty(n, "key", {
445
+ get: f,
446
446
  configurable: !0
447
447
  });
448
448
  }
449
449
  }
450
450
  function un(n, s) {
451
451
  {
452
- var p = function() {
453
- ut || (ut = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
452
+ var f = function() {
453
+ ut || (ut = !0, v("%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));
454
454
  };
455
- p.isReactWarning = !0, Object.defineProperty(n, "ref", {
456
- get: p,
455
+ f.isReactWarning = !0, Object.defineProperty(n, "ref", {
456
+ get: f,
457
457
  configurable: !0
458
458
  });
459
459
  }
460
460
  }
461
- var dn = function(n, s, p, y, S, C, x) {
462
- var v = {
461
+ var dn = function(n, s, f, b, S, _, k) {
462
+ var $ = {
463
463
  // This tag allows us to uniquely identify this as a React Element
464
464
  $$typeof: e,
465
465
  // Built-in properties that belong on the element
466
466
  type: n,
467
467
  key: s,
468
- ref: p,
469
- props: x,
468
+ ref: f,
469
+ props: k,
470
470
  // Record the component responsible for creating this element.
471
- _owner: C
471
+ _owner: _
472
472
  };
473
- return v._store = {}, Object.defineProperty(v._store, "validated", {
473
+ return $._store = {}, Object.defineProperty($._store, "validated", {
474
474
  configurable: !1,
475
475
  enumerable: !1,
476
476
  writable: !0,
477
477
  value: !1
478
- }), Object.defineProperty(v, "_self", {
478
+ }), Object.defineProperty($, "_self", {
479
479
  configurable: !1,
480
480
  enumerable: !1,
481
481
  writable: !1,
482
- value: y
483
- }), Object.defineProperty(v, "_source", {
482
+ value: b
483
+ }), Object.defineProperty($, "_source", {
484
484
  configurable: !1,
485
485
  enumerable: !1,
486
486
  writable: !1,
487
487
  value: S
488
- }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
488
+ }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
489
489
  };
490
- function fn(n, s, p, y, S) {
490
+ function fn(n, s, f, b, S) {
491
491
  {
492
- var C, x = {}, v = null, N = null;
493
- p !== void 0 && (ct(p), v = "" + p), ln(s) && (ct(s.key), v = "" + s.key), rn(s) && (N = s.ref, cn(s, S));
494
- for (C in s)
495
- me.call(s, C) && !an.hasOwnProperty(C) && (x[C] = s[C]);
492
+ var _, k = {}, $ = null, F = null;
493
+ f !== void 0 && (ct(f), $ = "" + f), ln(s) && (ct(s.key), $ = "" + s.key), rn(s) && (F = s.ref, cn(s, S));
494
+ for (_ in s)
495
+ me.call(s, _) && !an.hasOwnProperty(_) && (k[_] = s[_]);
496
496
  if (n && n.defaultProps) {
497
- var z = n.defaultProps;
498
- for (C in z)
499
- x[C] === void 0 && (x[C] = z[C]);
497
+ var A = n.defaultProps;
498
+ for (_ in A)
499
+ k[_] === void 0 && (k[_] = A[_]);
500
500
  }
501
- if (v || N) {
501
+ if ($ || F) {
502
502
  var B = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
503
- v && sn(x, B), N && un(x, B);
503
+ $ && sn(k, B), F && un(k, B);
504
504
  }
505
- return dn(n, v, N, S, y, ye.current, x);
505
+ return dn(n, $, F, S, b, ye.current, k);
506
506
  }
507
507
  }
508
- var Ne = _.ReactCurrentOwner, dt = _.ReactDebugCurrentFrame;
509
- function ue(n) {
508
+ var Fe = z.ReactCurrentOwner, dt = z.ReactDebugCurrentFrame;
509
+ function de(n) {
510
510
  if (n) {
511
- var s = n._owner, p = Ee(n.type, n._source, s ? s.type : null);
512
- dt.setExtraStackFrame(p);
511
+ var s = n._owner, f = Ee(n.type, n._source, s ? s.type : null);
512
+ dt.setExtraStackFrame(f);
513
513
  } else
514
514
  dt.setExtraStackFrame(null);
515
515
  }
@@ -520,8 +520,8 @@ function En() {
520
520
  }
521
521
  function ft() {
522
522
  {
523
- if (Ne.current) {
524
- var n = H(Ne.current.type);
523
+ if (Fe.current) {
524
+ var n = G(Fe.current.type);
525
525
  if (n)
526
526
  return `
527
527
 
@@ -538,10 +538,10 @@ Check the render method of \`` + n + "`.";
538
538
  {
539
539
  var s = ft();
540
540
  if (!s) {
541
- var p = typeof n == "string" ? n : n.displayName || n.name;
542
- p && (s = `
541
+ var f = typeof n == "string" ? n : n.displayName || n.name;
542
+ f && (s = `
543
543
 
544
- Check the top-level render call using <` + p + ">.");
544
+ Check the top-level render call using <` + f + ">.");
545
545
  }
546
546
  return s;
547
547
  }
@@ -551,12 +551,12 @@ Check the top-level render call using <` + p + ">.");
551
551
  if (!n._store || n._store.validated || n.key != null)
552
552
  return;
553
553
  n._store.validated = !0;
554
- var p = gn(s);
555
- if (pt[p])
554
+ var f = gn(s);
555
+ if (pt[f])
556
556
  return;
557
- pt[p] = !0;
558
- var y = "";
559
- n && n._owner && n._owner !== Ne.current && (y = " It was passed a child from " + H(n._owner.type) + "."), ue(n), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, y), ue(null);
557
+ pt[f] = !0;
558
+ var b = "";
559
+ n && n._owner && n._owner !== Fe.current && (b = " It was passed a child from " + G(n._owner.type) + "."), de(n), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, b), de(null);
560
560
  }
561
561
  }
562
562
  function ht(n, s) {
@@ -564,17 +564,17 @@ Check the top-level render call using <` + p + ">.");
564
564
  if (typeof n != "object")
565
565
  return;
566
566
  if (Ie(n))
567
- for (var p = 0; p < n.length; p++) {
568
- var y = n[p];
569
- Ue(y) && gt(y, s);
567
+ for (var f = 0; f < n.length; f++) {
568
+ var b = n[f];
569
+ Ue(b) && gt(b, s);
570
570
  }
571
571
  else if (Ue(n))
572
572
  n._store && (n._store.validated = !0);
573
573
  else if (n) {
574
- var S = E(n);
574
+ var S = Z(n);
575
575
  if (typeof S == "function" && S !== n.entries)
576
- for (var C = S.call(n), x; !(x = C.next()).done; )
577
- Ue(x.value) && gt(x.value, s);
576
+ for (var _ = S.call(n), k; !(k = _.next()).done; )
577
+ Ue(k.value) && gt(k.value, s);
578
578
  }
579
579
  }
580
580
  }
@@ -583,116 +583,116 @@ Check the top-level render call using <` + p + ">.");
583
583
  var s = n.type;
584
584
  if (s == null || typeof s == "string")
585
585
  return;
586
- var p;
586
+ var f;
587
587
  if (typeof s == "function")
588
- p = s.propTypes;
588
+ f = s.propTypes;
589
589
  else if (typeof s == "object" && (s.$$typeof === c || // Note: Memo only checks outer props here.
590
590
  // Inner props are checked in the reconciler.
591
- s.$$typeof === $))
592
- p = s.propTypes;
591
+ s.$$typeof === y))
592
+ f = s.propTypes;
593
593
  else
594
594
  return;
595
- if (p) {
596
- var y = H(s);
597
- en(p, n.props, "prop", y, n);
595
+ if (f) {
596
+ var b = G(s);
597
+ en(f, n.props, "prop", b, n);
598
598
  } else if (s.PropTypes !== void 0 && !De) {
599
599
  De = !0;
600
- var S = H(s);
601
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
600
+ var S = G(s);
601
+ v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
602
602
  }
603
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
603
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
604
604
  }
605
605
  }
606
606
  function mn(n) {
607
607
  {
608
- for (var s = Object.keys(n.props), p = 0; p < s.length; p++) {
609
- var y = s[p];
610
- if (y !== "children" && y !== "key") {
611
- ue(n), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
608
+ for (var s = Object.keys(n.props), f = 0; f < s.length; f++) {
609
+ var b = s[f];
610
+ if (b !== "children" && b !== "key") {
611
+ de(n), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), de(null);
612
612
  break;
613
613
  }
614
614
  }
615
- n.ref !== null && (ue(n), k("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
615
+ n.ref !== null && (de(n), v("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
616
616
  }
617
617
  }
618
618
  var mt = {};
619
- function yt(n, s, p, y, S, C) {
619
+ function yt(n, s, f, b, S, _) {
620
620
  {
621
- var x = ze(n);
622
- if (!x) {
623
- var v = "";
624
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
625
- var N = pn();
626
- N ? v += N : v += ft();
627
- var z;
628
- n === null ? z = "null" : Ie(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (H(n.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
621
+ var k = ze(n);
622
+ if (!k) {
623
+ var $ = "";
624
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
625
+ var F = pn();
626
+ F ? $ += F : $ += ft();
627
+ var A;
628
+ n === null ? A = "null" : Ie(n) ? A = "array" : n !== void 0 && n.$$typeof === e ? (A = "<" + (G(n.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : A = typeof n, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, $);
629
629
  }
630
- var B = fn(n, s, p, S, C);
630
+ var B = fn(n, s, f, S, _);
631
631
  if (B == null)
632
632
  return B;
633
- if (x) {
634
- var V = s.children;
635
- if (V !== void 0)
636
- if (y)
637
- if (Ie(V)) {
638
- for (var de = 0; de < V.length; de++)
639
- ht(V[de], n);
640
- Object.freeze && Object.freeze(V);
633
+ if (k) {
634
+ var q = s.children;
635
+ if (q !== void 0)
636
+ if (b)
637
+ if (Ie(q)) {
638
+ for (var fe = 0; fe < q.length; fe++)
639
+ ht(q[fe], n);
640
+ Object.freeze && Object.freeze(q);
641
641
  } else
642
- k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
642
+ v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
643
643
  else
644
- ht(V, n);
644
+ ht(q, n);
645
645
  }
646
646
  if (me.call(s, "key")) {
647
- var le = H(n), D = Object.keys(s).filter(function($n) {
647
+ var ce = G(n), U = Object.keys(s).filter(function($n) {
648
648
  return $n !== "key";
649
- }), We = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
650
- if (!mt[le + We]) {
651
- var xn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
652
- k(`A props object containing a "key" prop is being spread into JSX:
649
+ }), We = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
650
+ if (!mt[ce + We]) {
651
+ var xn = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
652
+ v(`A props object containing a "key" prop is being spread into JSX:
653
653
  let props = %s;
654
654
  <%s {...props} />
655
655
  React keys must be passed directly to JSX without using spread:
656
656
  let props = %s;
657
- <%s key={someKey} {...props} />`, We, le, xn, le), mt[le + We] = !0;
657
+ <%s key={someKey} {...props} />`, We, ce, xn, ce), mt[ce + We] = !0;
658
658
  }
659
659
  }
660
660
  return n === r ? mn(B) : hn(B), B;
661
661
  }
662
662
  }
663
- function yn(n, s, p) {
664
- return yt(n, s, p, !0);
663
+ function yn(n, s, f) {
664
+ return yt(n, s, f, !0);
665
665
  }
666
- function wn(n, s, p) {
667
- return yt(n, s, p, !1);
666
+ function wn(n, s, f) {
667
+ return yt(n, s, f, !1);
668
668
  }
669
669
  var bn = wn, vn = yn;
670
670
  be.Fragment = r, be.jsx = bn, be.jsxs = vn;
671
671
  }()), be;
672
672
  }
673
673
  process.env.NODE_ENV === "production" ? Ze.exports = Cn() : Ze.exports = En();
674
- var i = Ze.exports;
675
- const d = "https://cdn.casbin.org", R = {
674
+ var a = Ze.exports;
675
+ const u = "https://cdn.casbin.org", N = {
676
676
  casdoor: "https://casdoor",
677
677
  springmicro: void 0
678
678
  };
679
679
  function jn() {
680
680
  return "en";
681
681
  }
682
- function Z() {
682
+ function ae() {
683
683
  return "en;q=0.9,en;q=0.8";
684
684
  }
685
- function G(t, e) {
685
+ function Y(t, e) {
686
686
  alert(e);
687
687
  }
688
688
  function Ln(t) {
689
689
  t !== void 0 && (window.location.href = t);
690
690
  }
691
- function Pt(t) {
691
+ function Rt(t) {
692
692
  return !(t.provider === void 0 || t.provider === null || !["OAuth", "SAML", "Web3"].includes(t.provider.category) || t.provider.type === "WeChatMiniProgram");
693
693
  }
694
694
  function Tn(t) {
695
- return Pt(t) && t.prompted;
695
+ return Rt(t) && t.prompted;
696
696
  }
697
697
  function An(t) {
698
698
  return t.visible && t.prompted;
@@ -712,7 +712,7 @@ function zn(t) {
712
712
  function On(t, e) {
713
713
  var r;
714
714
  const o = (r = t.signupItems) == null ? void 0 : r.filter(
715
- (a) => a.name === e
715
+ (i) => i.name === e
716
716
  );
717
717
  return (o == null ? void 0 : o.length) ?? !1 ? o[0] : null;
718
718
  }
@@ -726,30 +726,30 @@ function vt(t) {
726
726
  function Ae(t, e) {
727
727
  return t && t.signinMethods ? t.signinMethods.filter((o) => o.name === e).length > 0 : !1;
728
728
  }
729
- function Rn(t) {
729
+ function Pn(t) {
730
730
  return Ae(t, "Password");
731
731
  }
732
- function Pn(t) {
732
+ function Rn(t) {
733
733
  return Ae(t, "Verification code");
734
734
  }
735
735
  function In(t) {
736
736
  return Ae(t, "WebAuthn");
737
737
  }
738
- function Fn(t) {
738
+ function Nn(t) {
739
739
  return Ae(t, "LDAP");
740
740
  }
741
- function Nn(t) {
741
+ function Fn(t) {
742
742
  const e = Mn(t);
743
743
  if ((e == null ? void 0 : e.length) ?? !1)
744
744
  return !0;
745
745
  const o = zn(t);
746
746
  return (o == null ? void 0 : o.length) ?? !1 ? !0 : Bn(t);
747
747
  }
748
- function se(t) {
748
+ function ue(t) {
749
749
  if (t.type === "Custom" && t.customLogo)
750
750
  return t.customLogo;
751
751
  if (t.category === "OAuth")
752
- return `${d}/img/social_${t.type.toLowerCase()}.png`;
752
+ return `${u}/img/social_${t.type.toLowerCase()}.png`;
753
753
  {
754
754
  const e = Dn[t.category][t.type];
755
755
  return e ? e.logo : "";
@@ -758,55 +758,55 @@ function se(t) {
758
758
  const Dn = {
759
759
  SMS: {
760
760
  "Aliyun SMS": {
761
- logo: `${d}/img/social_aliyun.png`,
761
+ logo: `${u}/img/social_aliyun.png`,
762
762
  url: "https://aliyun.com/product/sms"
763
763
  },
764
764
  "Amazon SNS": {
765
- logo: `${d}/img/social_aws.png`,
765
+ logo: `${u}/img/social_aws.png`,
766
766
  url: "https://aws.amazon.com/cn/sns/"
767
767
  },
768
768
  "Azure ACS": {
769
- logo: `${d}/img/social_azure.png`,
769
+ logo: `${u}/img/social_azure.png`,
770
770
  url: "https://azure.microsoft.com/en-us/products/communication-services"
771
771
  },
772
772
  "Infobip SMS": {
773
- logo: `${d}/img/social_infobip.png`,
773
+ logo: `${u}/img/social_infobip.png`,
774
774
  url: "https://portal.infobip.com/homepage/"
775
775
  },
776
776
  "Tencent Cloud SMS": {
777
- logo: `${d}/img/social_tencent_cloud.jpg`,
777
+ logo: `${u}/img/social_tencent_cloud.jpg`,
778
778
  url: "https://cloud.tencent.com/product/sms"
779
779
  },
780
780
  "Baidu Cloud SMS": {
781
- logo: `${d}/img/social_baidu_cloud.png`,
781
+ logo: `${u}/img/social_baidu_cloud.png`,
782
782
  url: "https://cloud.baidu.com/product/sms.html"
783
783
  },
784
784
  "Volc Engine SMS": {
785
- logo: `${d}/img/social_volc_engine.jpg`,
785
+ logo: `${u}/img/social_volc_engine.jpg`,
786
786
  url: "https://www.volcengine.com/products/cloud-sms"
787
787
  },
788
788
  "Huawei Cloud SMS": {
789
- logo: `${d}/img/social_huawei.png`,
789
+ logo: `${u}/img/social_huawei.png`,
790
790
  url: "https://www.huaweicloud.com/product/msgsms.html"
791
791
  },
792
792
  "UCloud SMS": {
793
- logo: `${d}/img/social_ucloud.png`,
793
+ logo: `${u}/img/social_ucloud.png`,
794
794
  url: "https://www.ucloud.cn/site/product/usms.html"
795
795
  },
796
796
  "Twilio SMS": {
797
- logo: `${d}/img/social_twilio.svg`,
797
+ logo: `${u}/img/social_twilio.svg`,
798
798
  url: "https://www.twilio.com/messaging"
799
799
  },
800
800
  "SmsBao SMS": {
801
- logo: `${d}/img/social_smsbao.png`,
801
+ logo: `${u}/img/social_smsbao.png`,
802
802
  url: "https://www.smsbao.com/"
803
803
  },
804
804
  "SUBMAIL SMS": {
805
- logo: `${d}/img/social_submail.svg`,
805
+ logo: `${u}/img/social_submail.svg`,
806
806
  url: "https://www.mysubmail.com"
807
807
  },
808
808
  "Msg91 SMS": {
809
- logo: `${d}/img/social_msg91.ico`,
809
+ logo: `${u}/img/social_msg91.ico`,
810
810
  url: "https://control.msg91.com/app/"
811
811
  },
812
812
  "OSON SMS": {
@@ -814,47 +814,47 @@ const Dn = {
814
814
  url: "https://osonsms.com/"
815
815
  },
816
816
  "Custom HTTP SMS": {
817
- logo: `${d}/img/social_default.png`,
817
+ logo: `${u}/img/social_default.png`,
818
818
  url: "https://casdoor.org/docs/provider/sms/overview"
819
819
  },
820
820
  "Mock SMS": {
821
- logo: `${d}/img/social_default.png`,
821
+ logo: `${u}/img/social_default.png`,
822
822
  url: ""
823
823
  }
824
824
  },
825
825
  Email: {
826
826
  Default: {
827
- logo: `${d}/img/email_default.png`,
827
+ logo: `${u}/img/email_default.png`,
828
828
  url: ""
829
829
  },
830
830
  SUBMAIL: {
831
- logo: `${d}/img/social_submail.svg`,
831
+ logo: `${u}/img/social_submail.svg`,
832
832
  url: "https://www.mysubmail.com"
833
833
  },
834
834
  Mailtrap: {
835
- logo: `${d}/img/email_mailtrap.png`,
835
+ logo: `${u}/img/email_mailtrap.png`,
836
836
  url: "https://mailtrap.io"
837
837
  },
838
838
  "Azure ACS": {
839
- logo: `${d}/img/social_azure.png`,
839
+ logo: `${u}/img/social_azure.png`,
840
840
  url: "https://learn.microsoft.com/zh-cn/azure/communication-services"
841
841
  },
842
842
  SendGrid: {
843
- logo: `${d}/img/email_sendgrid.png`,
843
+ logo: `${u}/img/email_sendgrid.png`,
844
844
  url: "https://sendgrid.com/"
845
845
  },
846
846
  "Custom HTTP Email": {
847
- logo: `${d}/img/social_default.png`,
847
+ logo: `${u}/img/social_default.png`,
848
848
  url: "https://casdoor.org/docs/provider/email/overview"
849
849
  }
850
850
  },
851
851
  Storage: {
852
852
  "Local File System": {
853
- logo: `${d}/img/social_file.png`,
853
+ logo: `${u}/img/social_file.png`,
854
854
  url: ""
855
855
  },
856
856
  "AWS S3": {
857
- logo: `${d}/img/social_aws.png`,
857
+ logo: `${u}/img/social_aws.png`,
858
858
  url: "https://aws.amazon.com/s3"
859
859
  },
860
860
  MinIO: {
@@ -862,204 +862,204 @@ const Dn = {
862
862
  url: "https://min.io/"
863
863
  },
864
864
  "Aliyun OSS": {
865
- logo: `${d}/img/social_aliyun.png`,
865
+ logo: `${u}/img/social_aliyun.png`,
866
866
  url: "https://aliyun.com/product/oss"
867
867
  },
868
868
  "Tencent Cloud COS": {
869
- logo: `${d}/img/social_tencent_cloud.jpg`,
869
+ logo: `${u}/img/social_tencent_cloud.jpg`,
870
870
  url: "https://cloud.tencent.com/product/cos"
871
871
  },
872
872
  "Azure Blob": {
873
- logo: `${d}/img/social_azure.png`,
873
+ logo: `${u}/img/social_azure.png`,
874
874
  url: "https://azure.microsoft.com/en-us/services/storage/blobs/"
875
875
  },
876
876
  "Qiniu Cloud Kodo": {
877
- logo: `${d}/img/social_qiniu_cloud.png`,
877
+ logo: `${u}/img/social_qiniu_cloud.png`,
878
878
  url: "https://www.qiniu.com/solutions/storage"
879
879
  },
880
880
  "Google Cloud Storage": {
881
- logo: `${d}/img/social_google_cloud.png`,
881
+ logo: `${u}/img/social_google_cloud.png`,
882
882
  url: "https://cloud.google.com/storage"
883
883
  },
884
884
  Synology: {
885
- logo: `${d}/img/social_synology.png`,
885
+ logo: `${u}/img/social_synology.png`,
886
886
  url: "https://www.synology.com/en-global/dsm/feature/file_sharing"
887
887
  }
888
888
  },
889
889
  SAML: {
890
890
  "Aliyun IDaaS": {
891
- logo: `${d}/img/social_aliyun.png`,
891
+ logo: `${u}/img/social_aliyun.png`,
892
892
  url: "https://aliyun.com/product/idaas"
893
893
  },
894
894
  Keycloak: {
895
- logo: `${d}/img/social_keycloak.png`,
895
+ logo: `${u}/img/social_keycloak.png`,
896
896
  url: "https://www.keycloak.org/"
897
897
  },
898
898
  Custom: {
899
- logo: `${d}/img/social_custom.png`,
899
+ logo: `${u}/img/social_custom.png`,
900
900
  url: "https://door.casdoor.com/"
901
901
  }
902
902
  },
903
903
  Payment: {
904
904
  Dummy: {
905
- logo: `${d}/img/payment_paypal.png`,
905
+ logo: `${u}/img/payment_paypal.png`,
906
906
  url: ""
907
907
  },
908
908
  Alipay: {
909
- logo: `${d}/img/payment_alipay.png`,
909
+ logo: `${u}/img/payment_alipay.png`,
910
910
  url: "https://www.alipay.com/"
911
911
  },
912
912
  "WeChat Pay": {
913
- logo: `${d}/img/payment_wechat_pay.png`,
913
+ logo: `${u}/img/payment_wechat_pay.png`,
914
914
  url: "https://pay.weixin.qq.com/"
915
915
  },
916
916
  PayPal: {
917
- logo: `${d}/img/payment_paypal.png`,
917
+ logo: `${u}/img/payment_paypal.png`,
918
918
  url: "https://www.paypal.com/"
919
919
  },
920
920
  Stripe: {
921
- logo: `${d}/img/social_stripe.png`,
921
+ logo: `${u}/img/social_stripe.png`,
922
922
  url: "https://stripe.com/"
923
923
  },
924
924
  GC: {
925
- logo: `${d}/img/payment_gc.png`,
925
+ logo: `${u}/img/payment_gc.png`,
926
926
  url: "https://gc.org"
927
927
  }
928
928
  },
929
929
  Captcha: {
930
930
  Default: {
931
- logo: `${d}/img/captcha_default.png`,
931
+ logo: `${u}/img/captcha_default.png`,
932
932
  url: "https://pkg.go.dev/github.com/dchest/captcha"
933
933
  },
934
934
  reCAPTCHA: {
935
- logo: `${d}/img/social_recaptcha.png`,
935
+ logo: `${u}/img/social_recaptcha.png`,
936
936
  url: "https://www.google.com/recaptcha"
937
937
  },
938
938
  hCaptcha: {
939
- logo: `${d}/img/social_hcaptcha.png`,
939
+ logo: `${u}/img/social_hcaptcha.png`,
940
940
  url: "https://www.hcaptcha.com"
941
941
  },
942
942
  "Aliyun Captcha": {
943
- logo: `${d}/img/social_aliyun.png`,
943
+ logo: `${u}/img/social_aliyun.png`,
944
944
  url: "https://help.aliyun.com/product/28308.html"
945
945
  },
946
946
  GEETEST: {
947
- logo: `${d}/img/social_geetest.png`,
947
+ logo: `${u}/img/social_geetest.png`,
948
948
  url: "https://www.geetest.com"
949
949
  },
950
950
  "Cloudflare Turnstile": {
951
- logo: `${d}/img/social_cloudflare.png`,
951
+ logo: `${u}/img/social_cloudflare.png`,
952
952
  url: "https://www.cloudflare.com/products/turnstile/"
953
953
  }
954
954
  },
955
955
  AI: {
956
956
  "OpenAI API - GPT": {
957
- logo: `${d}/img/social_openai.svg`,
957
+ logo: `${u}/img/social_openai.svg`,
958
958
  url: "https://platform.openai.com"
959
959
  }
960
960
  },
961
961
  Web3: {
962
962
  MetaMask: {
963
- logo: `${d}/img/social_metamask.svg`,
963
+ logo: `${u}/img/social_metamask.svg`,
964
964
  url: "https://metamask.io/"
965
965
  },
966
966
  Web3Onboard: {
967
- logo: `${d}/img/social_web3onboard.svg`,
967
+ logo: `${u}/img/social_web3onboard.svg`,
968
968
  url: "https://onboard.blocknative.com/"
969
969
  }
970
970
  },
971
971
  Notification: {
972
972
  Telegram: {
973
- logo: `${d}/img/social_telegram.png`,
973
+ logo: `${u}/img/social_telegram.png`,
974
974
  url: "https://telegram.org/"
975
975
  },
976
976
  "Custom HTTP": {
977
- logo: `${d}/img/email_default.png`,
977
+ logo: `${u}/img/email_default.png`,
978
978
  url: "https://casdoor.org/docs/provider/notification/overview"
979
979
  },
980
980
  DingTalk: {
981
- logo: `${d}/img/social_dingtalk.png`,
981
+ logo: `${u}/img/social_dingtalk.png`,
982
982
  url: "https://www.dingtalk.com/"
983
983
  },
984
984
  Lark: {
985
- logo: `${d}/img/social_lark.png`,
985
+ logo: `${u}/img/social_lark.png`,
986
986
  url: "https://www.larksuite.com/"
987
987
  },
988
988
  "Microsoft Teams": {
989
- logo: `${d}/img/social_teams.png`,
989
+ logo: `${u}/img/social_teams.png`,
990
990
  url: "https://www.microsoft.com/microsoft-teams"
991
991
  },
992
992
  Bark: {
993
- logo: `${d}/img/social_bark.png`,
993
+ logo: `${u}/img/social_bark.png`,
994
994
  url: "https://apps.apple.com/us/app/bark-customed-notifications/id1403753865"
995
995
  },
996
996
  Pushover: {
997
- logo: `${d}/img/social_pushover.png`,
997
+ logo: `${u}/img/social_pushover.png`,
998
998
  url: "https://pushover.net/"
999
999
  },
1000
1000
  Pushbullet: {
1001
- logo: `${d}/img/social_pushbullet.png`,
1001
+ logo: `${u}/img/social_pushbullet.png`,
1002
1002
  url: "https://www.pushbullet.com/"
1003
1003
  },
1004
1004
  Slack: {
1005
- logo: `${d}/img/social_slack.png`,
1005
+ logo: `${u}/img/social_slack.png`,
1006
1006
  url: "https://slack.com/"
1007
1007
  },
1008
1008
  Webpush: {
1009
- logo: `${d}/img/email_default.png`,
1009
+ logo: `${u}/img/email_default.png`,
1010
1010
  url: "https://developer.mozilla.org/en-US/docs/Web/API/Push_API"
1011
1011
  },
1012
1012
  Discord: {
1013
- logo: `${d}/img/social_discord.png`,
1013
+ logo: `${u}/img/social_discord.png`,
1014
1014
  url: "https://discord.com/"
1015
1015
  },
1016
1016
  "Google Chat": {
1017
- logo: `${d}/img/social_google_chat.png`,
1017
+ logo: `${u}/img/social_google_chat.png`,
1018
1018
  url: "https://workspace.google.com/intl/en/products/chat/"
1019
1019
  },
1020
1020
  Line: {
1021
- logo: `${d}/img/social_line.png`,
1021
+ logo: `${u}/img/social_line.png`,
1022
1022
  url: "https://line.me/"
1023
1023
  },
1024
1024
  Matrix: {
1025
- logo: `${d}/img/social_matrix.png`,
1025
+ logo: `${u}/img/social_matrix.png`,
1026
1026
  url: "https://www.matrix.org/"
1027
1027
  },
1028
1028
  Twitter: {
1029
- logo: `${d}/img/social_twitter.png`,
1029
+ logo: `${u}/img/social_twitter.png`,
1030
1030
  url: "https://twitter.com/"
1031
1031
  },
1032
1032
  Reddit: {
1033
- logo: `${d}/img/social_reddit.png`,
1033
+ logo: `${u}/img/social_reddit.png`,
1034
1034
  url: "https://www.reddit.com/"
1035
1035
  },
1036
1036
  "Rocket Chat": {
1037
- logo: `${d}/img/social_rocket_chat.png`,
1037
+ logo: `${u}/img/social_rocket_chat.png`,
1038
1038
  url: "https://rocket.chat/"
1039
1039
  },
1040
1040
  Viber: {
1041
- logo: `${d}/img/social_viber.png`,
1041
+ logo: `${u}/img/social_viber.png`,
1042
1042
  url: "https://www.viber.com/"
1043
1043
  }
1044
1044
  }
1045
1045
  };
1046
1046
  function Un(t = "") {
1047
- return fetch(`${R.casdoor}/api/get-account${t}`, {
1047
+ return fetch(`${N.casdoor}/api/get-account${t}`, {
1048
1048
  method: "GET",
1049
1049
  credentials: "include",
1050
1050
  headers: {
1051
- "Accept-Language": Z()
1051
+ "Accept-Language": ae()
1052
1052
  }
1053
1053
  }).then((e) => e.json());
1054
1054
  }
1055
1055
  function Wn(t) {
1056
- let e = `${R.casdoor}/api/signup`;
1057
- return R.springmicro && (e = `${R.springmicro}/api/accounts/users/register`), fetch(e, {
1056
+ let e = `${N.casdoor}/api/signup`;
1057
+ return N.springmicro && (e = `${N.springmicro}/api/accounts/users/register`), fetch(e, {
1058
1058
  method: "POST",
1059
1059
  credentials: "include",
1060
1060
  body: JSON.stringify(t),
1061
1061
  headers: {
1062
- "Accept-Language": Z(),
1062
+ "Accept-Language": ae(),
1063
1063
  "Content-Type": "application/json"
1064
1064
  }
1065
1065
  }).then((o) => o.json());
@@ -1072,57 +1072,57 @@ function Vn(t) {
1072
1072
  }
1073
1073
  function It(t) {
1074
1074
  const e = (t == null ? void 0 : t.type) === "cas" ? Hn(t) : Vn(t);
1075
- return fetch(`${R.casdoor}/api/get-app-login${e}`, {
1075
+ return fetch(`${N.casdoor}/api/get-app-login${e}`, {
1076
1076
  method: "GET",
1077
1077
  credentials: "include",
1078
1078
  headers: {
1079
- "Accept-Language": Z()
1079
+ "Accept-Language": ae()
1080
1080
  }
1081
1081
  }).then((o) => o.json());
1082
1082
  }
1083
1083
  function Gn(t, e) {
1084
1084
  return fetch(
1085
- `${R.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1085
+ `${N.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1086
1086
  {
1087
1087
  method: "GET",
1088
1088
  credentials: "include",
1089
1089
  headers: {
1090
- "Accept-Language": Z()
1090
+ "Accept-Language": ae()
1091
1091
  }
1092
1092
  }
1093
1093
  ).then((o) => o.json());
1094
1094
  }
1095
1095
  function qn(t) {
1096
- return fetch(`${R.casdoor}/api/get-webhook-event?ticket=${t}`, {
1096
+ return fetch(`${N.casdoor}/api/get-webhook-event?ticket=${t}`, {
1097
1097
  method: "GET",
1098
1098
  credentials: "include",
1099
1099
  headers: {
1100
- "Accept-Language": Z()
1100
+ "Accept-Language": ae()
1101
1101
  }
1102
1102
  }).then((e) => e.json());
1103
1103
  }
1104
1104
  function Yn(t) {
1105
- return fetch(`${R.casdoor}/api/get-qrcode?id=${t}`, {
1105
+ return fetch(`${N.casdoor}/api/get-qrcode?id=${t}`, {
1106
1106
  method: "GET",
1107
1107
  credentials: "include",
1108
1108
  headers: {
1109
- "Accept-Language": Z()
1109
+ "Accept-Language": ae()
1110
1110
  }
1111
1111
  }).then((e) => e.json());
1112
1112
  }
1113
- function Xe(t, e) {
1114
- return fetch(
1115
- `${R.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1113
+ function Xe(t, e, o, r) {
1114
+ return console.log("ATTEMPTING TO GET APPLICATION"), fetch(
1115
+ `${N.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1116
1116
  {
1117
1117
  method: "GET",
1118
- credentials: R.casdoor.startsWith("https") ? "include" : void 0,
1119
1118
  headers: {
1120
- "Accept-Language": Z()
1119
+ Authorization: "Basic " + btoa(`${o}:${r}`),
1120
+ "Content-Type": "application/json"
1121
1121
  }
1122
1122
  }
1123
- ).then((o) => o.json());
1123
+ ).then((i) => i.json());
1124
1124
  }
1125
- const ce = {
1125
+ const se = {
1126
1126
  Google: {
1127
1127
  scope: "profile+email",
1128
1128
  endpoint: "https://accounts.google.com/signin/oauth"
@@ -1438,57 +1438,57 @@ const ce = {
1438
1438
  function Kn(t, e, o, r) {
1439
1439
  if (t === null || e === null)
1440
1440
  return "";
1441
- let a = ce[e.type].endpoint, l = `${window.location.origin}/callback`;
1442
- const u = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", c = Jn(
1441
+ let i = se[e.type].endpoint, l = `${window.location.origin}/callback`;
1442
+ const d = se[e.type].scope, p = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", c = Jn(
1443
1443
  t.name,
1444
1444
  e.name,
1445
1445
  o,
1446
- g
1447
- ), f = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
1448
- if (e.type === "AzureAD" ? e.domain !== "" && (a = a.replace("common", e.domain)) : e.type === "Apple" && (l = `${window.location.origin}/api/callback`), e.type === "Google" || e.type === "GitHub" || e.type === "QQ" || e.type === "Facebook" || e.type === "Weibo" || e.type === "Gitee" || e.type === "LinkedIn" || e.type === "GitLab" || e.type === "AzureAD" || e.type === "Slack" || e.type === "Line" || e.type === "Amazon" || e.type === "Auth0" || e.type === "BattleNet" || e.type === "Bitbucket" || e.type === "Box" || e.type === "CloudFoundry" || e.type === "Dailymotion" || e.type === "DigitalOcean" || e.type === "Discord" || e.type === "Dropbox" || e.type === "EveOnline" || e.type === "Gitea" || e.type === "Heroku" || e.type === "InfluxCloud" || e.type === "Instagram" || e.type === "Intercom" || e.type === "Kakao" || e.type === "MailRu" || e.type === "Meetup" || e.type === "MicrosoftOnline" || e.type === "Naver" || e.type === "Nextcloud" || e.type === "OneDrive" || e.type === "Oura" || e.type === "Patreon" || e.type === "PayPal" || e.type === "SalesForce" || e.type === "SoundCloud" || e.type === "Spotify" || e.type === "Strava" || e.type === "Stripe" || e.type === "Tumblr" || e.type === "Twitch" || e.type === "Typetalk" || e.type === "Uber" || e.type === "VK" || e.type === "Wepay" || e.type === "Xero" || e.type === "Yahoo" || e.type === "Yammer" || e.type === "Yandex" || e.type === "Zoom")
1449
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${c}`;
1446
+ p
1447
+ ), g = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
1448
+ 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")
1449
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${d}&response_type=code&state=${c}`;
1450
1450
  if (e.type === "AzureADB2C")
1451
1451
  return `https://${e.domain}.b2clogin.com/${e.domain}.onmicrosoft.com/${e.appId}/oauth2/v2.0/authorize?client_id=${e.clientId}&nonce=defaultNonce&redirect_uri=${encodeURIComponent(
1452
1452
  l
1453
- )}&scope=${u}&response_type=code&state=${c}&prompt=login`;
1453
+ )}&scope=${d}&response_type=code&state=${c}&prompt=login`;
1454
1454
  if (e.type === "DingTalk")
1455
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&prompt=consent&state=${c}`;
1455
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${d}&response_type=code&prompt=consent&state=${c}`;
1456
1456
  if (e.type === "WeChat")
1457
- return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${c}&scope=${ce[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${c}&code=${"wechat_oa:" + r}` : `${a}?appid=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${c}#wechat_redirect`;
1457
+ return navigator.userAgent.includes("MicroMessenger") ? `${se[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${c}&scope=${se[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${c}&code=${"wechat_oa:" + r}` : `${i}?appid=${e.clientId}&redirect_uri=${l}&scope=${d}&response_type=code&state=${c}#wechat_redirect`;
1458
1458
  if (e.type === "WeCom")
1459
- return e.subType === "Internal" ? e.method === "Silent" ? (a = ce[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (a = ce[e.type].internalEndpoint, `${a}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${c}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (a = ce[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1459
+ return e.subType === "Internal" ? e.method === "Silent" ? (i = se[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${d}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (i = se[e.type].internalEndpoint, `${i}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${c}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (i = se[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${d}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
1460
1460
  if (e.type === "Lark")
1461
- return `${a}?app_id=${e.clientId}&redirect_uri=${l}&state=${c}`;
1461
+ return `${i}?app_id=${e.clientId}&redirect_uri=${l}&state=${c}`;
1462
1462
  if (e.type === "ADFS")
1463
1463
  return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&nonce=casdoor&scope=openid`;
1464
1464
  if (e.type === "Baidu")
1465
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&display=popup`;
1465
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${d}&display=popup`;
1466
1466
  if (e.type === "Alipay")
1467
- return `${a}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&display=popup`;
1467
+ return `${i}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${c}&response_type=code&scope=${d}&display=popup`;
1468
1468
  if (e.type === "Casdoor")
1469
- return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
1469
+ return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${d}`;
1470
1470
  if (e.type === "Infoflow")
1471
- return `${a}?appid=${e.clientId}&redirect_uri=${l}?state=${c}`;
1471
+ return `${i}?appid=${e.clientId}&redirect_uri=${l}?state=${c}`;
1472
1472
  if (e.type === "Apple")
1473
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code%20id_token&scope=${u}&response_mode=form_post`;
1473
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code%20id_token&scope=${d}&response_mode=form_post`;
1474
1474
  if (e.type === "Steam")
1475
- return `${a}?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.realm=${window.location.origin}&openid.return_to=${l}?state=${c}`;
1475
+ 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=${c}`;
1476
1476
  if (e.type === "Okta")
1477
- return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
1477
+ return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${d}`;
1478
1478
  if (e.type === "Douyin" || e.type === "TikTok")
1479
- return `${a}?client_key=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
1479
+ return `${i}?client_key=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${d}`;
1480
1480
  if (e.type === "Custom")
1481
1481
  return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${c}`;
1482
1482
  if (e.type === "Bilibili")
1483
- return `${a}#/?client_id=${e.clientId}&return_url=${l}&state=${c}&response_type=code`;
1483
+ return `${i}#/?client_id=${e.clientId}&return_url=${l}&state=${c}&response_type=code`;
1484
1484
  if (e.type === "Deezer")
1485
- return `${a}?app_id=${e.clientId}&redirect_uri=${l}&perms=${u}`;
1485
+ return `${i}?app_id=${e.clientId}&redirect_uri=${l}&perms=${d}`;
1486
1486
  if (e.type === "Lastfm")
1487
- return `${a}?api_key=${e.clientId}&cb=${l}`;
1487
+ return `${i}?api_key=${e.clientId}&cb=${l}`;
1488
1488
  if (e.type === "Shopify")
1489
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&state=${c}&grant_options[]=per-user`;
1489
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${d}&state=${c}&grant_options[]=per-user`;
1490
1490
  if (e.type === "Twitter" || e.type === "Fitbit")
1491
- return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&code_challenge=${f}&code_challenge_method=S256`;
1491
+ return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${d}&code_challenge=${g}&code_challenge_method=S256`;
1492
1492
  if (e.type === "MetaMask")
1493
1493
  return `${l}?state=${c}`;
1494
1494
  if (e.type === "Web3Onboard")
@@ -1504,44 +1504,44 @@ function He(t) {
1504
1504
  let r = o.split("&")[0];
1505
1505
  return r ? (r = decodeURIComponent(r), r) : "";
1506
1506
  }
1507
- function Ft(t) {
1507
+ function Nt(t) {
1508
1508
  const e = new URLSearchParams(window.location.search), o = K(e.get("client_id")), r = K(e.get("response_type"));
1509
- let a = He("redirect_uri");
1510
- a === "" && (a = K(e.get("redirect_uri")));
1509
+ let i = He("redirect_uri");
1510
+ i === "" && (i = K(e.get("redirect_uri")));
1511
1511
  let l = K(e.get("scope"));
1512
- a.includes("#") && l === "" && (l = He("scope"));
1513
- let u = K(e.get("state"));
1514
- u.startsWith("/auth/oauth2/login.php?wantsurl=") && (u = encodeURIComponent(u)), a.includes("#") && u === "" && (u = He("state"));
1515
- const g = K(e.get("nonce")), c = K(e.get("code_challenge_method")), f = K(e.get("code_challenge")), h = K(e.get("SAMLRequest")), $ = K(e.get("RelayState")), w = K(e.get("noRedirect"));
1512
+ i.includes("#") && l === "" && (l = He("scope"));
1513
+ let d = K(e.get("state"));
1514
+ d.startsWith("/auth/oauth2/login.php?wantsurl=") && (d = encodeURIComponent(d)), i.includes("#") && d === "" && (d = He("state"));
1515
+ const p = K(e.get("nonce")), c = K(e.get("code_challenge_method")), g = K(e.get("code_challenge")), h = K(e.get("SAMLRequest")), y = K(e.get("RelayState")), w = K(e.get("noRedirect"));
1516
1516
  return o === "" && h === "" ? null : {
1517
1517
  clientId: o,
1518
1518
  responseType: r,
1519
- redirectUri: a,
1519
+ redirectUri: i,
1520
1520
  scope: l,
1521
- state: u,
1522
- nonce: g,
1521
+ state: d,
1522
+ nonce: p,
1523
1523
  challengeMethod: c,
1524
- codeChallenge: f,
1524
+ codeChallenge: g,
1525
1525
  samlRequest: h,
1526
- relayState: $,
1526
+ relayState: y,
1527
1527
  noRedirect: w,
1528
1528
  type: "code"
1529
1529
  };
1530
1530
  }
1531
1531
  function Jn(t, e, o, r) {
1532
- let a = window.location.search;
1533
- if (a = `${a}&application=${encodeURIComponent(
1532
+ let i = window.location.search;
1533
+ if (i = `${i}&application=${encodeURIComponent(
1534
1534
  t
1535
- )}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (a = `${a}&from=${window.location.pathname}`), r) {
1535
+ )}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (i = `${i}&from=${window.location.pathname}`), r) {
1536
1536
  const l = e;
1537
- return sessionStorage.setItem(l, a), l;
1537
+ return sessionStorage.setItem(l, i), l;
1538
1538
  } else
1539
- return btoa(a);
1539
+ return btoa(i);
1540
1540
  }
1541
1541
  function Qn(t, e, o, r) {
1542
- qn(o).then((a) => {
1543
- if (a.data === "SCAN" || a.data === "subscribe") {
1544
- const l = a == null ? void 0 : a.data2;
1542
+ qn(o).then((i) => {
1543
+ if (i.data === "SCAN" || i.data === "subscribe") {
1544
+ const l = i == null ? void 0 : i.data2;
1545
1545
  Ln(
1546
1546
  Kn(t, e, r ?? "signup", l)
1547
1547
  );
@@ -1549,33 +1549,33 @@ function Qn(t, e, o, r) {
1549
1549
  });
1550
1550
  }
1551
1551
  async function Zn(t, e, o) {
1552
- document.addEventListener("click", function(a) {
1552
+ document.addEventListener("click", function(i) {
1553
1553
  const l = document.getElementById("WechatOfficialAccountModal");
1554
- l && a.target === l && l.close();
1554
+ l && i.target === l && l.close();
1555
1555
  });
1556
- function r(a, l) {
1557
- function u() {
1556
+ function r(i, l) {
1557
+ function d() {
1558
1558
  const h = document.getElementById("WechatOfficialAccountModal");
1559
1559
  h && h.showModal();
1560
1560
  }
1561
- function g() {
1561
+ function p() {
1562
1562
  window.clearInterval(l);
1563
1563
  const h = document.getElementById("WechatOfficialAccountModal");
1564
1564
  h && h.close();
1565
1565
  }
1566
- window.closeDialog = g;
1566
+ window.closeDialog = p;
1567
1567
  const c = `
1568
1568
  <div style="margin-right: 34px;">
1569
- <img src="data:image/png;base64,${a.data}" alt="Wechat QR code" style="width: 100%;" />
1569
+ <img src="data:image/png;base64,${i.data}" alt="Wechat QR code" style="width: 100%;" />
1570
1570
  </div>
1571
1571
  <button onclick="window.closeDialog()">Close</button>
1572
- `, f = document.createElement("dialog");
1573
- f.innerHTML = c, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), u();
1572
+ `, g = document.createElement("dialog");
1573
+ g.innerHTML = c, g.id = "WechatOfficialAccountModal", document.body.appendChild(g), d();
1574
1574
  }
1575
1575
  Yn(`${e.owner}/${e.name}`).then(
1576
- async (a) => {
1577
- if (a.status !== "ok") {
1578
- G("error", a == null ? void 0 : a.msg);
1576
+ async (i) => {
1577
+ if (i.status !== "ok") {
1578
+ Y("error", i == null ? void 0 : i.msg);
1579
1579
  return;
1580
1580
  }
1581
1581
  const l = setInterval(
@@ -1583,47 +1583,49 @@ async function Zn(t, e, o) {
1583
1583
  1e3,
1584
1584
  t,
1585
1585
  e,
1586
- a.data2,
1586
+ i.data2,
1587
1587
  o
1588
1588
  );
1589
- r(a, l);
1589
+ r(i, l);
1590
1590
  }
1591
1591
  );
1592
1592
  }
1593
- function Nt(t, e) {
1593
+ function Ft(t, e) {
1594
1594
  return fetch(
1595
- `${R.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1595
+ `${N.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1596
1596
  e
1597
1597
  )}`,
1598
1598
  {
1599
1599
  method: "GET",
1600
1600
  credentials: "include",
1601
1601
  headers: {
1602
- "Accept-Language": Z()
1602
+ "Accept-Language": ae()
1603
1603
  }
1604
1604
  }
1605
1605
  ).then((o) => o.json());
1606
1606
  }
1607
- function Dt(t, e, o, r, a = "", l, u, g, c = "") {
1608
- const f = new FormData();
1609
- return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", a), f.append("dest", l), f.append("type", u), f.append("applicationId", "admin/" + g), f.append("checkUser", c), console.log(Object.fromEntries(f.entries())), fetch(`${R.casdoor}/api/send-verification-code`, {
1607
+ function Dt(t, e, o, r, i = "", l, d, p, c = "", g, h) {
1608
+ const y = new FormData();
1609
+ return y.append("captchaType", t), y.append("captchaToken", e), y.append("clientSecret", o), y.append("method", r), y.append("countryCode", i), y.append("dest", l), y.append("type", d), y.append("applicationId", "admin/" + p), y.append("checkUser", c), console.log(Object.fromEntries(y.entries())), fetch(`${N.casdoor}/api/send-verification-code`, {
1610
1610
  method: "POST",
1611
- credentials: R.casdoor.startsWith("https") ? "include" : void 0,
1612
- body: f,
1611
+ // credentials: ROOT_URLS.casdoor.startsWith("https") ? "include" : undefined,
1612
+ body: y,
1613
1613
  headers: {
1614
- "Accept-Language": Z()
1614
+ Authorization: "Basic " + btoa(`${g}:${h}`),
1615
+ "Content-Type": "application/json",
1616
+ "Accept-Language": ae()
1615
1617
  }
1616
- }).then((h) => h.json()).then((h) => h.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", h.msg), !1));
1618
+ }).then((w) => w.json()).then((w) => w.status === "ok" ? (Y("success", "Verification code sent"), !0) : (Y("error", w.msg), !1));
1617
1619
  }
1618
1620
  function Ut(t, e, o) {
1619
1621
  return fetch(
1620
- `${R.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1622
+ `${N.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1621
1623
  e
1622
1624
  )}&isCurrentProvider=${o}`,
1623
1625
  {
1624
1626
  method: "GET",
1625
1627
  headers: {
1626
- "Accept-Language": Z()
1628
+ "Accept-Language": ae()
1627
1629
  }
1628
1630
  }
1629
1631
  ).then((r) => r.json()).then((r) => r.data);
@@ -1633,66 +1635,66 @@ const Xn = (t) => {
1633
1635
  captchaType: e,
1634
1636
  subType: o,
1635
1637
  siteKey: r,
1636
- clientSecret: a,
1638
+ clientSecret: i,
1637
1639
  clientId2: l,
1638
- clientSecret2: u,
1639
- onChange: g
1640
- } = t, c = (f) => {
1640
+ clientSecret2: d,
1641
+ onChange: p
1642
+ } = t, c = (g) => {
1641
1643
  const h = document.createElement("script");
1642
- h.async = !1, h.src = f, document.getElementsByTagName("body")[0].appendChild(h);
1644
+ h.async = !1, h.src = g, document.getElementsByTagName("body")[0].appendChild(h);
1643
1645
  };
1644
- return Rt(() => {
1646
+ return Pt(() => {
1645
1647
  switch (e) {
1646
1648
  case "reCAPTCHA": {
1647
- const f = setInterval(() => {
1649
+ const g = setInterval(() => {
1648
1650
  window.grecaptcha || c("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
1649
1651
  sitekey: r,
1650
- callback: g
1651
- }), clearInterval(f));
1652
+ callback: p
1653
+ }), clearInterval(g));
1652
1654
  }, 300);
1653
1655
  break;
1654
1656
  }
1655
1657
  case "hCaptcha": {
1656
- const f = setInterval(() => {
1658
+ const g = setInterval(() => {
1657
1659
  window.hcaptcha || c("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
1658
1660
  sitekey: r,
1659
- callback: g
1660
- }), clearInterval(f));
1661
+ callback: p
1662
+ }), clearInterval(g));
1661
1663
  }, 300);
1662
1664
  break;
1663
1665
  }
1664
1666
  case "Aliyun Captcha": {
1665
- const f = setInterval(() => {
1666
- window.AWSC || c("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (u && u !== "***" && window.AWSC.use(o, function(h, $) {
1667
- $.init({
1668
- appkey: u,
1667
+ const g = setInterval(() => {
1668
+ window.AWSC || c("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (d && d !== "***" && window.AWSC.use(o, function(h, y) {
1669
+ y.init({
1670
+ appkey: d,
1669
1671
  scene: l,
1670
1672
  renderTo: "captcha",
1671
1673
  success: function(w) {
1672
- g(
1673
- `SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${u}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
1674
+ p(
1675
+ `SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${d}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
1674
1676
  );
1675
1677
  }
1676
1678
  });
1677
- }), clearInterval(f));
1679
+ }), clearInterval(g));
1678
1680
  }, 300);
1679
1681
  break;
1680
1682
  }
1681
1683
  case "GEETEST": {
1682
- let f = !1;
1684
+ let g = !1;
1683
1685
  const h = setInterval(() => {
1684
- if (window.initGeetest4 || c("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
1685
- const $ = String(r);
1686
+ if (window.initGeetest4 || c("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !g) {
1687
+ const y = String(r);
1686
1688
  window.initGeetest4(
1687
1689
  {
1688
- captchaId: $,
1690
+ captchaId: y,
1689
1691
  product: "float"
1690
1692
  },
1691
1693
  function(w) {
1692
- f || (w.appendTo("#captcha"), f = !0), w.onSuccess(function() {
1693
- const b = w.getValidate();
1694
- g(
1695
- `lot_number=${b.lot_number}&captcha_output=${b.captcha_output}&pass_token=${b.pass_token}&gen_time=${b.gen_time}&captcha_id=${r}`
1694
+ g || (w.appendTo("#captcha"), g = !0), w.onSuccess(function() {
1695
+ const x = w.getValidate();
1696
+ p(
1697
+ `lot_number=${x.lot_number}&captcha_output=${x.captcha_output}&pass_token=${x.pass_token}&gen_time=${x.gen_time}&captcha_id=${r}`
1696
1698
  );
1697
1699
  });
1698
1700
  }
@@ -1702,73 +1704,73 @@ const Xn = (t) => {
1702
1704
  break;
1703
1705
  }
1704
1706
  case "Cloudflare Turnstile": {
1705
- const f = setInterval(() => {
1707
+ const g = setInterval(() => {
1706
1708
  window.turnstile || c("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
1707
1709
  sitekey: r,
1708
- callback: g
1709
- }), clearInterval(f));
1710
+ callback: p
1711
+ }), clearInterval(g));
1710
1712
  }, 300);
1711
1713
  break;
1712
1714
  }
1713
1715
  }
1714
- }, [e, o, r, a, l, u]), /* @__PURE__ */ i.jsx("div", { id: "captcha" });
1716
+ }, [e, o, r, i, l, d]), /* @__PURE__ */ a.jsx("div", { id: "captcha" });
1715
1717
  }, eo = (t) => {
1716
- const { t: e } = Te(), { owner: o, name: r, visible: a, onOk: l, onCancel: u, isCurrentProvider: g } = t, [c, f] = m.useState("none"), [h, $] = m.useState(""), [w, b] = m.useState(""), [L, F] = m.useState(""), [E, _] = m.useState(""), [k, q] = m.useState(""), [Y, U] = m.useState(!1), [ie, pe] = m.useState(""), [ne, P] = m.useState(""), ze = m.useRef(null);
1717
- Rt(() => {
1718
- a ? H() : (he(), U(!1));
1719
- }, [a]);
1718
+ const { t: e } = Te(), { owner: o, name: r, visible: i, onOk: l, onCancel: d, isCurrentProvider: p } = t, [c, g] = m.useState("none"), [h, y] = m.useState(""), [w, x] = m.useState(""), [E, H] = m.useState(""), [Z, z] = m.useState(""), [v, O] = m.useState(""), [R, D] = m.useState(!1), [V, X] = m.useState(""), [ee, P] = m.useState(""), ze = m.useRef(null);
1719
+ Pt(() => {
1720
+ i ? G() : (he(), D(!1));
1721
+ }, [i]);
1720
1722
  const ge = () => {
1721
- l == null || l(c, ne, w);
1723
+ l == null || l(c, ee, w);
1722
1724
  }, he = () => {
1723
- P(""), u == null || u();
1724
- }, H = () => {
1725
- Ut(o, r, g).then((M) => {
1726
- M.type === "none" ? ge() : M.type === "Default" ? (U(!0), b(M.captchaId), pe(M.captchaImage), f("Default")) : (U(!0), f(M.type), $(M.clientId), b(M.clientSecret), F(M.subType), _(M.clientId2), q(M.clientSecret2));
1725
+ P(""), d == null || d();
1726
+ }, G = () => {
1727
+ Ut(o, r, p).then((T) => {
1728
+ T.type === "none" ? ge() : T.type === "Default" ? (D(!0), x(T.captchaId), X(T.captchaImage), g("Default")) : (D(!0), g(T.type), y(T.clientId), x(T.clientSecret), H(T.subType), z(T.clientId2), O(T.clientSecret2));
1727
1729
  });
1728
- }, X = () => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col items-center", children: [
1729
- /* @__PURE__ */ i.jsx(
1730
+ }, te = () => /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col items-center", children: [
1731
+ /* @__PURE__ */ a.jsx(
1730
1732
  "div",
1731
1733
  {
1732
1734
  className: "bg-no-repeat mb-4 border border-current rounded w-[200px] h-[80px]",
1733
1735
  style: {
1734
- backgroundImage: `url('data:image/png;base64,${ie}')`
1736
+ backgroundImage: `url('data:image/png;base64,${V}')`
1735
1737
  }
1736
1738
  }
1737
1739
  ),
1738
- /* @__PURE__ */ i.jsx(
1740
+ /* @__PURE__ */ a.jsx(
1739
1741
  "input",
1740
1742
  {
1741
1743
  className: "input input-bordered w-[200px]",
1742
1744
  type: "text",
1743
1745
  ref: ze,
1744
- value: ne,
1746
+ value: ee,
1745
1747
  placeholder: e("general.captcha"),
1746
- onKeyDown: (M) => M.key === "Enter" ? ge() : null,
1747
- onChange: (M) => P(M.target.value)
1748
+ onKeyDown: (T) => T.key === "Enter" ? ge() : null,
1749
+ onChange: (T) => P(T.target.value)
1748
1750
  }
1749
1751
  )
1750
- ] }), re = (M) => {
1751
- P(M);
1752
- }, ke = () => c === "Default" ? X() : /* @__PURE__ */ i.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ i.jsx(
1752
+ ] }), le = (T) => {
1753
+ P(T);
1754
+ }, ke = () => c === "Default" ? te() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
1753
1755
  Xn,
1754
1756
  {
1755
1757
  captchaType: c,
1756
- subType: L,
1758
+ subType: E,
1757
1759
  siteKey: h,
1758
1760
  clientSecret: w,
1759
- onChange: re,
1760
- clientId2: E,
1761
- clientSecret2: k
1761
+ onChange: le,
1762
+ clientId2: Z,
1763
+ clientSecret2: v
1762
1764
  }
1763
1765
  ) }), Se = () => {
1764
- let M = !1;
1765
- return c === "Default" ? /^\d{5}$/.test(ne) || (M = !0) : ne === "" && (M = !0), [
1766
- /* @__PURE__ */ i.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
1767
- /* @__PURE__ */ i.jsx(
1766
+ let T = !1;
1767
+ return c === "Default" ? /^\d{5}$/.test(ee) || (T = !0) : ee === "" && (T = !0), [
1768
+ /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
1769
+ /* @__PURE__ */ a.jsx(
1768
1770
  "button",
1769
1771
  {
1770
1772
  className: "btn btn-primary",
1771
- disabled: M,
1773
+ disabled: T,
1772
1774
  onClick: ge,
1773
1775
  children: "OK"
1774
1776
  },
@@ -1776,11 +1778,11 @@ const Xn = (t) => {
1776
1778
  )
1777
1779
  ];
1778
1780
  };
1779
- return /* @__PURE__ */ i.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ i.jsxs("div", { className: "modal-box", children: [
1780
- /* @__PURE__ */ i.jsx("div", { className: "mt-4 mb-8", children: ke() }),
1781
- /* @__PURE__ */ i.jsxs("div", { className: "modal-action", children: [
1782
- /* @__PURE__ */ i.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ i.jsx("button", { children: "Close" }) }),
1783
- /* @__PURE__ */ i.jsx("form", { method: "dialog", className: "flex gap-3", children: Se() })
1781
+ return /* @__PURE__ */ a.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
1782
+ /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: ke() }),
1783
+ /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
1784
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
1785
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "flex gap-3", children: Se() })
1784
1786
  ] })
1785
1787
  ] }) });
1786
1788
  }, to = ({
@@ -1788,67 +1790,71 @@ const Xn = (t) => {
1788
1790
  disabled: e,
1789
1791
  textBefore: o,
1790
1792
  onChange: r,
1791
- onButtonClickArgs: a,
1793
+ onButtonClickArgs: i,
1792
1794
  application: l,
1793
- method: u,
1794
- countryCode: g
1795
+ method: d,
1796
+ countryCode: p,
1797
+ CLIENT_ID: c,
1798
+ CLIENT_SECRET: g
1795
1799
  }) => {
1796
- const { t: c } = Te(), [f, h] = m.useState(!1), [$, w] = m.useState(0), [b, L] = m.useState(!1), F = m.useRef(null), E = (q = 60) => {
1797
- let Y = q;
1798
- w(Y);
1799
- const U = () => {
1800
- Y--, w(Y), Y !== 0 && setTimeout(U, 1e3);
1800
+ const { t: h } = Te(), [y, w] = m.useState(!1), [x, E] = m.useState(0), [H, Z] = m.useState(!1), z = m.useRef(null), v = (D = 60) => {
1801
+ let V = D;
1802
+ E(V);
1803
+ const X = () => {
1804
+ V--, E(V), V !== 0 && setTimeout(X, 1e3);
1801
1805
  };
1802
- setTimeout(U, 1e3);
1803
- }, _ = (q, Y, U) => {
1804
- h(!1), L(!0), Dt(
1805
- q,
1806
- Y,
1807
- U,
1808
- u,
1809
- g,
1810
- ...a
1811
- ).then((ie) => {
1812
- L(!1), ie && E(60);
1806
+ setTimeout(X, 1e3);
1807
+ }, O = (D, V, X) => {
1808
+ w(!1), Z(!0), Dt(
1809
+ D,
1810
+ V,
1811
+ X,
1812
+ d,
1813
+ p,
1814
+ ...i,
1815
+ c,
1816
+ g
1817
+ ).then((ee) => {
1818
+ Z(!1), ee && v(60);
1813
1819
  });
1814
- }, k = () => {
1815
- h(!1);
1820
+ }, R = () => {
1821
+ w(!1);
1816
1822
  };
1817
1823
  return m.useEffect(() => {
1818
- F.current = document.getElementById("captcha-modal");
1824
+ z.current = document.getElementById("captcha-modal");
1819
1825
  }, []), m.useEffect(() => {
1820
- F.current && (f ? F.current.showModal() : F.current.close());
1821
- }, [f]), /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
1822
- /* @__PURE__ */ i.jsxs("div", { className: "flex", children: [
1823
- /* @__PURE__ */ i.jsx(
1826
+ z.current && (y ? z.current.showModal() : z.current.close());
1827
+ }, [y]), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
1828
+ /* @__PURE__ */ a.jsxs("div", { className: "flex", children: [
1829
+ /* @__PURE__ */ a.jsx(
1824
1830
  "input",
1825
1831
  {
1826
1832
  className: "input",
1827
1833
  disabled: e,
1828
1834
  value: t,
1829
1835
  placeholder: "Enter your code",
1830
- onChange: (q) => r(q.target.value),
1836
+ onChange: (D) => r(D.target.value),
1831
1837
  autoComplete: "one-time-code"
1832
1838
  }
1833
1839
  ),
1834
- /* @__PURE__ */ i.jsx(
1840
+ /* @__PURE__ */ a.jsx(
1835
1841
  "button",
1836
1842
  {
1837
1843
  className: "btn",
1838
- disabled: e || $ > 0,
1839
- onClick: () => h(!0),
1840
- children: $ > 0 ? `${$} s` : c(b ? "code.sending" : "code.sendCode")
1844
+ disabled: e || x > 0,
1845
+ onClick: () => w(!0),
1846
+ children: x > 0 ? `${x} s` : h(H ? "code.sending" : "code.sendCode")
1841
1847
  }
1842
1848
  )
1843
1849
  ] }),
1844
- /* @__PURE__ */ i.jsx(
1850
+ /* @__PURE__ */ a.jsx(
1845
1851
  eo,
1846
1852
  {
1847
1853
  owner: l.owner,
1848
1854
  name: l.name,
1849
- visible: f,
1850
- onOk: _,
1851
- onCancel: k,
1855
+ visible: y,
1856
+ onOk: O,
1857
+ onCancel: R,
1852
1858
  isCurrentProvider: !1
1853
1859
  }
1854
1860
  )
@@ -1866,10 +1872,10 @@ var no = Object.create, $e = Object.defineProperty, oo = Object.defineProperties
1866
1872
  $e(t, o, { get: e[o], enumerable: !0 });
1867
1873
  }, Vt = (t, e, o, r) => {
1868
1874
  if (e && typeof e == "object" || typeof e == "function")
1869
- for (let a of ro(e))
1870
- !Wt.call(t, a) && a !== o && $e(t, a, { get: () => e[a], enumerable: !(r = ao(e, a)) || r.enumerable });
1875
+ for (let i of ro(e))
1876
+ !Wt.call(t, i) && i !== o && $e(t, i, { get: () => e[i], enumerable: !(r = ao(e, i)) || r.enumerable });
1871
1877
  return t;
1872
- }, A = (t, e, o) => (o = t != null ? no(lo(t)) : {}, Vt(
1878
+ }, L = (t, e, o) => (o = t != null ? no(lo(t)) : {}, Vt(
1873
1879
  // If the importer is in node compatibility mode or this is not an ESM
1874
1880
  // file that has been converted to a CommonJS file using a Babel-
1875
1881
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -1886,8 +1892,8 @@ so(Gt, {
1886
1892
  GithubLoginButton: () => Eo,
1887
1893
  GitlabLoginButton: () => xa,
1888
1894
  GoogleLoginButton: () => So,
1889
- InstagramLoginButton: () => Ro,
1890
- LinkedInLoginButton: () => Fo,
1895
+ InstagramLoginButton: () => Po,
1896
+ LinkedInLoginButton: () => No,
1891
1897
  MetamaskLoginButton: () => wa,
1892
1898
  MicrosoftLoginButton: () => Uo,
1893
1899
  OktaLoginButton: () => oa,
@@ -1898,69 +1904,69 @@ so(Gt, {
1898
1904
  XLoginButton: () => Sa,
1899
1905
  YahooLoginButton: () => sa,
1900
1906
  ZaloLoginButton: () => fa,
1901
- createButton: () => O
1907
+ createButton: () => M
1902
1908
  });
1903
- var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, format: o }) => /* @__PURE__ */ fo.default.createElement("i", { className: o(t), style: { fontSize: e } }), go = po, kt = A(m), ho = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(go, I({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), mo = "#FFFFFF", yo = (t) => {
1904
- const [e, o] = (0, oe.useState)(!1), [r, a] = (0, oe.useState)(!1), l = () => {
1909
+ var C = uo(Gt), Ve = L(m), ie = L(m), fo = L(m), po = ({ name: t, size: e, format: o }) => /* @__PURE__ */ fo.default.createElement("i", { className: o(t), style: { fontSize: e } }), go = po, kt = L(m), ho = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(go, I({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), mo = "#FFFFFF", yo = (t) => {
1910
+ const [e, o] = (0, ie.useState)(!1), [r, i] = (0, ie.useState)(!1), l = () => {
1905
1911
  var P;
1906
- a(!0), (P = t.onMouseEnter) == null || P.call(t);
1907
- }, u = () => {
1912
+ i(!0), (P = t.onMouseEnter) == null || P.call(t);
1913
+ }, d = () => {
1908
1914
  var P;
1909
- a(!1), (P = t.onMouseLeave) == null || P.call(t);
1910
- }, g = () => o(!0), c = () => o(!1), f = () => {
1915
+ i(!1), (P = t.onMouseLeave) == null || P.call(t);
1916
+ }, p = () => o(!0), c = () => o(!1), g = () => {
1911
1917
  var P;
1912
1918
  return (P = t.onClick) == null ? void 0 : P.call(t);
1913
1919
  }, {
1914
1920
  activeStyle: h,
1915
- align: $ = "left",
1921
+ align: y = "left",
1916
1922
  text: w,
1917
- children: b = w,
1918
- className: L,
1919
- icon: F,
1920
- iconFormat: E = (P) => P,
1921
- iconSize: _ = "26px",
1922
- iconColor: k = mo,
1923
- preventActiveStyles: q = !1,
1924
- size: Y = "50px",
1925
- style: U,
1926
- disabled: ie,
1927
- type: pe = "button"
1928
- } = t, ne = wo(Ge.button, {
1929
- activeStyle: q ? U : h,
1930
- customStyle: U,
1923
+ children: x = w,
1924
+ className: E,
1925
+ icon: H,
1926
+ iconFormat: Z = (P) => P,
1927
+ iconSize: z = "26px",
1928
+ iconColor: v = mo,
1929
+ preventActiveStyles: O = !1,
1930
+ size: R = "50px",
1931
+ style: D,
1932
+ disabled: V,
1933
+ type: X = "button"
1934
+ } = t, ee = wo(Ge.button, {
1935
+ activeStyle: O ? D : h,
1936
+ customStyle: D,
1931
1937
  active: r || e,
1932
- size: Y
1938
+ size: R
1933
1939
  });
1934
- return /* @__PURE__ */ oe.default.createElement(
1940
+ return /* @__PURE__ */ ie.default.createElement(
1935
1941
  "button",
1936
1942
  I({
1937
- style: ne,
1938
- onClick: f,
1943
+ style: ee,
1944
+ onClick: g,
1939
1945
  onMouseEnter: l,
1940
- onMouseLeave: u,
1941
- onFocus: g,
1946
+ onMouseLeave: d,
1947
+ onFocus: p,
1942
1948
  onBlur: c
1943
- }, { className: L, disabled: ie, type: pe }),
1944
- /* @__PURE__ */ oe.default.createElement("div", { style: Ge.flex }, !St(_) && !!F && /* @__PURE__ */ oe.default.createElement(
1949
+ }, { className: E, disabled: V, type: X }),
1950
+ /* @__PURE__ */ ie.default.createElement("div", { style: Ge.flex }, !St(z) && !!H && /* @__PURE__ */ ie.default.createElement(
1945
1951
  "div",
1946
1952
  {
1947
1953
  style: {
1948
1954
  display: "flex",
1949
1955
  justifyContent: "center",
1950
- minWidth: _
1956
+ minWidth: z
1951
1957
  }
1952
1958
  },
1953
- /* @__PURE__ */ oe.default.createElement(ho, { type: F, size: _, format: E, color: k })
1954
- ), !St(_) && /* @__PURE__ */ oe.default.createElement("div", { style: Ge.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: $, width: "100%" } }, b))
1959
+ /* @__PURE__ */ ie.default.createElement(ho, { type: H, size: z, format: Z, color: v })
1960
+ ), !St(z) && /* @__PURE__ */ ie.default.createElement("div", { style: Ge.divider }), /* @__PURE__ */ ie.default.createElement("div", { style: { textAlign: y, width: "100%" } }, x))
1955
1961
  );
1956
1962
  }, St = (t) => t === "0" || t === "0px" || t === 0, wo = (t, {
1957
1963
  size: e,
1958
1964
  customStyle: o,
1959
1965
  active: r,
1960
- activeStyle: a
1966
+ activeStyle: i
1961
1967
  }) => I(I(Ht(I({}, t), {
1962
1968
  height: e
1963
- }), o), r && a), Ge = {
1969
+ }), o), r && i), Ge = {
1964
1970
  button: {
1965
1971
  display: "block",
1966
1972
  border: 0,
@@ -1983,7 +1989,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1983
1989
  display: "flex",
1984
1990
  height: "100%"
1985
1991
  }
1986
- }, bo = A(m), O = (t) => (e) => {
1992
+ }, bo = L(m), M = (t) => (e) => {
1987
1993
  const o = Ht(I(I({
1988
1994
  activeStyle: I(I({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1989
1995
  }, t), e), {
@@ -1995,7 +2001,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1995
2001
  icon: $o,
1996
2002
  style: { background: "#3b5998" },
1997
2003
  text: "Log in with Facebook"
1998
- }, xo = O(vo);
2004
+ }, xo = M(vo);
1999
2005
  function $o({ size: t, color: e }) {
2000
2006
  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(
2001
2007
  "path",
@@ -2005,14 +2011,14 @@ function $o({ size: t, color: e }) {
2005
2011
  }
2006
2012
  )));
2007
2013
  }
2008
- var T = A(m), ko = {
2014
+ var j = L(m), ko = {
2009
2015
  activeStyle: { background: "#EFF0EE" },
2010
2016
  icon: _o,
2011
2017
  style: { background: "white", color: "black" },
2012
2018
  text: "Log in with Google"
2013
- }, So = O(ko);
2019
+ }, So = M(ko);
2014
2020
  function _o({ size: t }) {
2015
- return /* @__PURE__ */ T.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ T.default.createElement(
2021
+ 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(
2016
2022
  "linearGradient",
2017
2023
  {
2018
2024
  id: "95yY7w43Oj6n2vH63j6HJb",
@@ -2023,18 +2029,18 @@ function _o({ size: t }) {
2023
2029
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2024
2030
  gradientUnits: "userSpaceOnUse"
2025
2031
  },
2026
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
2027
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
2028
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
2029
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
2030
- ), /* @__PURE__ */ T.default.createElement(
2032
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
2033
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
2034
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
2035
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
2036
+ ), /* @__PURE__ */ j.default.createElement(
2031
2037
  "path",
2032
2038
  {
2033
2039
  fill: "url(#95yY7w43Oj6n2vH63j6HJb)",
2034
2040
  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,
2035
2041
  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`
2036
2042
  }
2037
- ), /* @__PURE__ */ T.default.createElement(
2043
+ ), /* @__PURE__ */ j.default.createElement(
2038
2044
  "linearGradient",
2039
2045
  {
2040
2046
  id: "95yY7w43Oj6n2vH63j6HJc",
@@ -2045,17 +2051,17 @@ function _o({ size: t }) {
2045
2051
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2046
2052
  gradientUnits: "userSpaceOnUse"
2047
2053
  },
2048
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
2049
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
2050
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
2051
- ), /* @__PURE__ */ T.default.createElement(
2054
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
2055
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
2056
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
2057
+ ), /* @__PURE__ */ j.default.createElement(
2052
2058
  "path",
2053
2059
  {
2054
2060
  fill: "url(#95yY7w43Oj6n2vH63j6HJc)",
2055
2061
  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,
2056
2062
  3.95-18.6l8.03,6.08C16.93,25.47,16.1,28.11,16.01,30.91z`
2057
2063
  }
2058
- ), /* @__PURE__ */ T.default.createElement(
2064
+ ), /* @__PURE__ */ j.default.createElement(
2059
2065
  "linearGradient",
2060
2066
  {
2061
2067
  id: "95yY7w43Oj6n2vH63j6HJd",
@@ -2066,17 +2072,17 @@ function _o({ size: t }) {
2066
2072
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2067
2073
  gradientUnits: "userSpaceOnUse"
2068
2074
  },
2069
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
2070
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
2071
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
2072
- ), /* @__PURE__ */ T.default.createElement(
2075
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
2076
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
2077
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
2078
+ ), /* @__PURE__ */ j.default.createElement(
2073
2079
  "path",
2074
2080
  {
2075
2081
  fill: "url(#95yY7w43Oj6n2vH63j6HJd)",
2076
2082
  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,
2077
2083
  25.67,48,32.5,48c3.94,0,7.52-1.28,10.33-3.44L50.45,51.28z`
2078
2084
  }
2079
- ), /* @__PURE__ */ T.default.createElement(
2085
+ ), /* @__PURE__ */ j.default.createElement(
2080
2086
  "linearGradient",
2081
2087
  {
2082
2088
  id: "95yY7w43Oj6n2vH63j6HJe",
@@ -2087,12 +2093,12 @@ function _o({ size: t }) {
2087
2093
  gradientTransform: "matrix(1 0 0 -1 0 66)",
2088
2094
  gradientUnits: "userSpaceOnUse"
2089
2095
  },
2090
- /* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
2091
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
2092
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
2093
- /* @__PURE__ */ T.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
2094
- /* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
2095
- ), /* @__PURE__ */ T.default.createElement(
2096
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
2097
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
2098
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
2099
+ /* @__PURE__ */ j.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
2100
+ /* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
2101
+ ), /* @__PURE__ */ j.default.createElement(
2096
2102
  "path",
2097
2103
  {
2098
2104
  fill: "url(#95yY7w43Oj6n2vH63j6HJe)",
@@ -2101,21 +2107,21 @@ function _o({ size: t }) {
2101
2107
  }
2102
2108
  ));
2103
2109
  }
2104
- var _t = A(m), Co = {
2110
+ var _t = L(m), Co = {
2105
2111
  activeStyle: { background: "#555555" },
2106
2112
  icon: jo,
2107
2113
  style: { background: "#333333" },
2108
2114
  text: "Log in with GitHub"
2109
- }, Eo = O(Co);
2115
+ }, Eo = M(Co);
2110
2116
  function jo({ size: t, color: e }) {
2111
2117
  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" }));
2112
2118
  }
2113
- var Ct = A(m), Lo = {
2119
+ var Ct = L(m), Lo = {
2114
2120
  activeStyle: { background: "#282e36" },
2115
2121
  icon: Ao,
2116
2122
  style: { background: "#0f1419" },
2117
2123
  text: "Log in with Twitter"
2118
- }, To = O(Lo);
2124
+ }, To = M(Lo);
2119
2125
  function Ao({ size: t, color: e }) {
2120
2126
  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(
2121
2127
  "path",
@@ -2125,12 +2131,12 @@ function Ao({ size: t, color: e }) {
2125
2131
  }
2126
2132
  ));
2127
2133
  }
2128
- var Et = A(m), Mo = {
2134
+ var Et = L(m), Mo = {
2129
2135
  activeStyle: { background: "#ff9f23" },
2130
2136
  icon: Oo,
2131
2137
  style: { background: "#f9ae32" },
2132
2138
  text: "Log in with Amazon"
2133
- }, zo = O(Mo);
2139
+ }, zo = M(Mo);
2134
2140
  function Oo({ size: t, color: e }) {
2135
2141
  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(
2136
2142
  "path",
@@ -2141,26 +2147,26 @@ function Oo({ size: t, color: e }) {
2141
2147
  }
2142
2148
  ));
2143
2149
  }
2144
- var ve = A(m), Bo = {
2150
+ var ve = L(m), Bo = {
2145
2151
  activeStyle: {
2146
2152
  background: "linear-gradient(to right, rgb(214, 146, 60) 0%, rgb(160, 11, 143) 50%, rgb(56, 10, 115) 100%)"
2147
2153
  },
2148
- icon: Po,
2154
+ icon: Ro,
2149
2155
  style: {
2150
2156
  background: "linear-gradient(to right, rgb(236, 146, 35) 0%, rgb(177, 42, 160) 50%, rgb(105, 14, 224) 100%)"
2151
2157
  },
2152
2158
  text: "Log in with Instagram"
2153
- }, Ro = O(Bo);
2154
- function Po({ size: t, color: e }) {
2159
+ }, Po = M(Bo);
2160
+ function Ro({ size: t, color: e }) {
2155
2161
  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" })));
2156
2162
  }
2157
- var qe = A(m), Io = {
2163
+ var qe = L(m), Io = {
2158
2164
  activeStyle: { background: "rgb(7, 112, 169)" },
2159
- icon: No,
2165
+ icon: Fo,
2160
2166
  style: { background: "rgb(26, 129, 185)" },
2161
2167
  text: "Log in with LinkedIn"
2162
- }, Fo = O(Io);
2163
- function No({ size: t, color: e }) {
2168
+ }, No = M(Io);
2169
+ function Fo({ size: t, color: e }) {
2164
2170
  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(
2165
2171
  "path",
2166
2172
  {
@@ -2169,21 +2175,21 @@ function No({ size: t, color: e }) {
2169
2175
  }
2170
2176
  )));
2171
2177
  }
2172
- var xe = A(m), Do = {
2178
+ var xe = L(m), Do = {
2173
2179
  activeStyle: { background: "#555555" },
2174
2180
  icon: Wo,
2175
2181
  style: { background: "#333333" },
2176
2182
  text: "Log in with Microsoft"
2177
- }, Uo = O(Do);
2183
+ }, Uo = M(Do);
2178
2184
  function Wo({ size: t, color: e }) {
2179
2185
  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)" }));
2180
2186
  }
2181
- var jt = A(m), Ho = {
2187
+ var jt = L(m), Ho = {
2182
2188
  activeStyle: { background: "#1171BB" },
2183
2189
  icon: Go,
2184
2190
  style: { background: "#168EEA" },
2185
2191
  text: "Log in with Buffer"
2186
- }, Vo = O(Ho);
2192
+ }, Vo = M(Ho);
2187
2193
  function Go({ size: t, color: e }) {
2188
2194
  return /* @__PURE__ */ jt.default.createElement(
2189
2195
  "svg",
@@ -2204,7 +2210,7 @@ function Go({ size: t, color: e }) {
2204
2210
  )
2205
2211
  );
2206
2212
  }
2207
- var ee = A(m), qo = {
2213
+ var ne = L(m), qo = {
2208
2214
  activeStyle: {
2209
2215
  background: "#0088cc"
2210
2216
  },
@@ -2213,9 +2219,9 @@ var ee = A(m), qo = {
2213
2219
  background: "#54a9eb"
2214
2220
  },
2215
2221
  text: "Log in with Telegram"
2216
- }, Yo = O(qo);
2222
+ }, Yo = M(qo);
2217
2223
  function Ko({ size: t }) {
2218
- return /* @__PURE__ */ ee.default.createElement(
2224
+ return /* @__PURE__ */ ne.default.createElement(
2219
2225
  "svg",
2220
2226
  {
2221
2227
  xmlns: "http://www.w3.org/2000/svg",
@@ -2224,11 +2230,11 @@ function Ko({ size: t }) {
2224
2230
  height: t,
2225
2231
  style: { transform: "scale(1.5)" }
2226
2232
  },
2227
- /* @__PURE__ */ ee.default.createElement("defs", null, /* @__PURE__ */ ee.default.createElement("linearGradient", { id: "b", x1: ".66", x2: ".851", y1: ".437", y2: ".802" }, /* @__PURE__ */ ee.default.createElement("stop", { offset: "0", stopColor: "#eff7fc" }), /* @__PURE__ */ ee.default.createElement("stop", { offset: "1", stopColor: "#fff" }))),
2228
- /* @__PURE__ */ ee.default.createElement("circle", { cx: "120", cy: "120", r: "120", fill: "url(#a)" }),
2229
- /* @__PURE__ */ ee.default.createElement("path", { fill: "#c8daea", d: "M98 175c-3.888 0-3.227-1.468-4.568-5.17L82 132.207 170 80" }),
2230
- /* @__PURE__ */ ee.default.createElement("path", { fill: "#a9c9dd", d: "M98 175c3 0 4.325-1.372 6-3l16-15.558-19.958-12.035" }),
2231
- /* @__PURE__ */ ee.default.createElement(
2233
+ /* @__PURE__ */ ne.default.createElement("defs", null, /* @__PURE__ */ ne.default.createElement("linearGradient", { id: "b", x1: ".66", x2: ".851", y1: ".437", y2: ".802" }, /* @__PURE__ */ ne.default.createElement("stop", { offset: "0", stopColor: "#eff7fc" }), /* @__PURE__ */ ne.default.createElement("stop", { offset: "1", stopColor: "#fff" }))),
2234
+ /* @__PURE__ */ ne.default.createElement("circle", { cx: "120", cy: "120", r: "120", fill: "url(#a)" }),
2235
+ /* @__PURE__ */ ne.default.createElement("path", { fill: "#c8daea", d: "M98 175c-3.888 0-3.227-1.468-4.568-5.17L82 132.207 170 80" }),
2236
+ /* @__PURE__ */ ne.default.createElement("path", { fill: "#a9c9dd", d: "M98 175c3 0 4.325-1.372 6-3l16-15.558-19.958-12.035" }),
2237
+ /* @__PURE__ */ ne.default.createElement(
2232
2238
  "path",
2233
2239
  {
2234
2240
  fill: "url(#b)",
@@ -2237,12 +2243,12 @@ function Ko({ size: t }) {
2237
2243
  )
2238
2244
  );
2239
2245
  }
2240
- var Ye = A(m), Jo = {
2246
+ var Ye = L(m), Jo = {
2241
2247
  activeStyle: { background: "#EFF0EE" },
2242
2248
  icon: Zo,
2243
2249
  style: { background: "#FFFFFF", color: "#000000" },
2244
2250
  text: "Log in with Apple"
2245
- }, Qo = O(Jo);
2251
+ }, Qo = M(Jo);
2246
2252
  function Zo({ size: t }) {
2247
2253
  return /* @__PURE__ */ Ye.default.createElement(
2248
2254
  "svg",
@@ -2264,23 +2270,23 @@ function Zo({ size: t }) {
2264
2270
  ))
2265
2271
  );
2266
2272
  }
2267
- var Ke = A(m), Xo = {
2273
+ var Ke = L(m), Xo = {
2268
2274
  activeStyle: { background: "#697ec4" },
2269
2275
  icon: ta,
2270
2276
  style: { background: "#7289DA" },
2271
2277
  text: "Log in with Discord"
2272
- }, ea = O(Xo);
2278
+ }, ea = M(Xo);
2273
2279
  function ta({ size: t, color: e }) {
2274
2280
  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" }));
2275
2281
  }
2276
- var ae = A(m), na = {
2282
+ var re = L(m), na = {
2277
2283
  activeStyle: { background: "#f5f5f5" },
2278
2284
  icon: aa,
2279
2285
  style: { background: "white", color: "black" },
2280
2286
  text: "Log in with Okta"
2281
- }, oa = O(na);
2287
+ }, oa = M(na);
2282
2288
  function aa({ size: t }) {
2283
- return /* @__PURE__ */ ae.default.createElement(
2289
+ return /* @__PURE__ */ re.default.createElement(
2284
2290
  "svg",
2285
2291
  {
2286
2292
  version: "1.1",
@@ -2291,14 +2297,14 @@ function aa({ size: t }) {
2291
2297
  width: t,
2292
2298
  height: t
2293
2299
  },
2294
- /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
2300
+ /* @__PURE__ */ re.default.createElement("g", null, /* @__PURE__ */ re.default.createElement("g", null, /* @__PURE__ */ re.default.createElement(
2295
2301
  "path",
2296
2302
  {
2297
2303
  fill: "#007DC1",
2298
2304
  d: `M50.3,33.8C22.5,33.8,0,56.3,0,84.1s22.5,50.3,50.3,50.3s50.3-22.5,50.3-50.3S78.1,33.8,50.3,33.8z
2299
2305
  M50.3,109.3c-13.9,0-25.2-11.3-25.2-25.2s11.3-25.2,25.2-25.2s25.2,11.3,25.2,25.2S64.2,109.3,50.3,109.3z`
2300
2306
  }
2301
- )), /* @__PURE__ */ ae.default.createElement(
2307
+ )), /* @__PURE__ */ re.default.createElement(
2302
2308
  "path",
2303
2309
  {
2304
2310
  fill: "#007DC1",
@@ -2307,7 +2313,7 @@ function aa({ size: t }) {
2307
2313
  h-20.6c-0.8,0-1.4,0-2,0.2c-1.2,0.4-1.7,0.8-2,1.2c-0.1,0.1-16.6,17.9-26.8,28.8c-2.8,3-7.8,1-7.8-3.1l0-57.1c0-2.9-2.4-4-4.3-4
2308
2314
  h-16.8c-2.9,0-4.3,1.9-4.3,3.6v126.6c0,2.9,2.4,3.7,4.4,3.7h16.8c2.6,0,4.3-1.9,4.3-3.8v-1.3V101z`
2309
2315
  }
2310
- ), /* @__PURE__ */ ae.default.createElement(
2316
+ ), /* @__PURE__ */ re.default.createElement(
2311
2317
  "path",
2312
2318
  {
2313
2319
  fill: "#007DC1",
@@ -2317,7 +2323,7 @@ function aa({ size: t }) {
2317
2323
  C274.6,133.9,276.2,131.9,275.9,129.6z`
2318
2324
  }
2319
2325
  )),
2320
- /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
2326
+ /* @__PURE__ */ re.default.createElement("g", null, /* @__PURE__ */ re.default.createElement(
2321
2327
  "path",
2322
2328
  {
2323
2329
  fill: "#007DC1",
@@ -2330,14 +2336,14 @@ function aa({ size: t }) {
2330
2336
  ))
2331
2337
  );
2332
2338
  }
2333
- var fe = A(m), ia = {
2339
+ var pe = L(m), ia = {
2334
2340
  activeStyle: { background: "#f5f5f5" },
2335
2341
  icon: la,
2336
2342
  style: { background: "white", color: "black" },
2337
2343
  text: "Log in with Slack"
2338
- }, ra = O(ia);
2344
+ }, ra = M(ia);
2339
2345
  function la({ size: t, color: e }) {
2340
- return /* @__PURE__ */ fe.default.createElement(
2346
+ return /* @__PURE__ */ pe.default.createElement(
2341
2347
  "svg",
2342
2348
  {
2343
2349
  enableBackground: "new 0 0 2447.6 2452.5",
@@ -2347,25 +2353,25 @@ function la({ size: t, color: e }) {
2347
2353
  height: t,
2348
2354
  xmlns: "http://www.w3.org/2000/svg"
2349
2355
  },
2350
- /* @__PURE__ */ fe.default.createElement("g", { clipRule: "evenodd", fillRule: "evenodd" }, /* @__PURE__ */ fe.default.createElement(
2356
+ /* @__PURE__ */ pe.default.createElement("g", { clipRule: "evenodd", fillRule: "evenodd" }, /* @__PURE__ */ pe.default.createElement(
2351
2357
  "path",
2352
2358
  {
2353
2359
  d: "m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z",
2354
2360
  fill: "#36c5f0"
2355
2361
  }
2356
- ), /* @__PURE__ */ fe.default.createElement(
2362
+ ), /* @__PURE__ */ pe.default.createElement(
2357
2363
  "path",
2358
2364
  {
2359
2365
  d: "m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z",
2360
2366
  fill: "#2eb67d"
2361
2367
  }
2362
- ), /* @__PURE__ */ fe.default.createElement(
2368
+ ), /* @__PURE__ */ pe.default.createElement(
2363
2369
  "path",
2364
2370
  {
2365
2371
  d: "m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z",
2366
2372
  fill: "#ecb22e"
2367
2373
  }
2368
- ), /* @__PURE__ */ fe.default.createElement(
2374
+ ), /* @__PURE__ */ pe.default.createElement(
2369
2375
  "path",
2370
2376
  {
2371
2377
  d: "m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0",
@@ -2374,12 +2380,12 @@ function la({ size: t, color: e }) {
2374
2380
  ))
2375
2381
  );
2376
2382
  }
2377
- var Le = A(m), ca = {
2383
+ var Le = L(m), ca = {
2378
2384
  activeStyle: { background: "#ac3ade" },
2379
2385
  icon: ua,
2380
2386
  style: { background: "#720E9E" },
2381
2387
  text: "Log in with Yahoo"
2382
- }, sa = O(ca);
2388
+ }, sa = M(ca);
2383
2389
  function ua({ size: t, color: e }) {
2384
2390
  return /* @__PURE__ */ Le.default.createElement(
2385
2391
  "svg",
@@ -2417,12 +2423,12 @@ function ua({ size: t, color: e }) {
2417
2423
  ))
2418
2424
  );
2419
2425
  }
2420
- var Lt = A(m), da = {
2426
+ var Lt = L(m), da = {
2421
2427
  activeStyle: { background: "#008FF3" },
2422
2428
  icon: pa,
2423
2429
  style: { background: "#0573ff" },
2424
2430
  text: "Log in with Zalo"
2425
- }, fa = O(da);
2431
+ }, fa = M(da);
2426
2432
  function pa({ size: t, color: e }) {
2427
2433
  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(
2428
2434
  "path",
@@ -2432,21 +2438,21 @@ function pa({ size: t, color: e }) {
2432
2438
  }
2433
2439
  ));
2434
2440
  }
2435
- var Tt = A(m), ga = {
2441
+ var Tt = L(m), ga = {
2436
2442
  activeStyle: { background: "#333333" },
2437
2443
  icon: ma,
2438
2444
  style: { background: "#000000", color: "#FFFFFF" },
2439
2445
  text: "Log in with TikTok"
2440
- }, ha = O(ga);
2446
+ }, ha = M(ga);
2441
2447
  function ma({ size: t, color: e }) {
2442
2448
  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" }));
2443
2449
  }
2444
- var W = A(m), ya = {
2450
+ var W = L(m), ya = {
2445
2451
  activeStyle: { background: "#eeeeee" },
2446
2452
  icon: ba,
2447
2453
  style: { background: "#ffffff", color: "#333333" },
2448
2454
  text: "Log in with Metamask"
2449
- }, wa = O(ya);
2455
+ }, wa = M(ya);
2450
2456
  function ba({ size: t }) {
2451
2457
  return /* @__PURE__ */ W.default.createElement(
2452
2458
  "svg",
@@ -2576,21 +2582,21 @@ var At = {
2576
2582
  stroke: "#f6851b",
2577
2583
  strokeLinecap: "round",
2578
2584
  strokeLinejoin: "round"
2579
- }, zt = A(m), va = {
2585
+ }, zt = L(m), va = {
2580
2586
  icon: $a,
2581
2587
  style: { background: "#fc6d26" },
2582
2588
  activeStyle: { background: "#d55a1c" },
2583
2589
  text: "Log in with Gitlab"
2584
- }, xa = O(va);
2590
+ }, xa = M(va);
2585
2591
  function $a({ size: t, color: e }) {
2586
2592
  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" }));
2587
2593
  }
2588
- var Ot = A(m), ka = {
2594
+ var Ot = L(m), ka = {
2589
2595
  activeStyle: { background: "#282e36" },
2590
2596
  icon: _a,
2591
2597
  style: { background: "#0f1419" },
2592
2598
  text: "Log in with X"
2593
- }, Sa = O(ka);
2599
+ }, Sa = M(ka);
2594
2600
  function _a({ size: t, color: e }) {
2595
2601
  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(
2596
2602
  "path",
@@ -2601,15 +2607,15 @@ function _a({ size: t, color: e }) {
2601
2607
  ));
2602
2608
  }
2603
2609
  function Ca({ width: t = 24, height: e = 24, color: o }) {
2604
- return /* @__PURE__ */ i.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
2605
- /* @__PURE__ */ i.jsx("path", { fill: "#faab07", d: "M60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0" }),
2606
- /* @__PURE__ */ i.jsx("path", { d: "M60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01C105.624 27.768 92.58.001 60.5 0 28.42.001 15.375 27.769 15.375 55.401c0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021" }),
2607
- /* @__PURE__ */ i.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
2608
- /* @__PURE__ */ i.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
2609
- /* @__PURE__ */ i.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
2610
- /* @__PURE__ */ i.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
2611
- /* @__PURE__ */ i.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
2612
- /* @__PURE__ */ i.jsx("path", { fill: "#eb1923", d: "M105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275L8.987 76.57c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0" })
2610
+ 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: [
2611
+ /* @__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" }),
2612
+ /* @__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" }),
2613
+ /* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
2614
+ /* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
2615
+ /* @__PURE__ */ a.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
2616
+ /* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
2617
+ /* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
2618
+ /* @__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" })
2613
2619
  ] });
2614
2620
  }
2615
2621
  const Ea = {
@@ -2618,12 +2624,12 @@ const Ea = {
2618
2624
  iconFormat: (t) => `fa fa-${t}`,
2619
2625
  style: { background: "rgb(94,188,249)" },
2620
2626
  activeStyle: { background: "rgb(76,143,208)" }
2621
- }, ja = j.createButton(Ea);
2627
+ }, ja = C.createButton(Ea);
2622
2628
  function La({ width: t = 24, height: e = 24, color: o }) {
2623
- return /* @__PURE__ */ i.jsx(
2629
+ return /* @__PURE__ */ a.jsx(
2624
2630
  "img",
2625
2631
  {
2626
- src: `${d}/buttons/facebook.svg`,
2632
+ src: `${u}/buttons/facebook.svg`,
2627
2633
  alt: "Sign in with Facebook"
2628
2634
  }
2629
2635
  );
@@ -2634,9 +2640,9 @@ const Ta = {
2634
2640
  iconFormat: (t) => `fa fa-${t}`,
2635
2641
  style: { background: "#3b5998" },
2636
2642
  activeStyle: { background: "#2b3f65" }
2637
- }, Aa = j.createButton(Ta);
2643
+ }, Aa = C.createButton(Ta);
2638
2644
  function Ma({ width: t = 24, height: e = 24, color: o }) {
2639
- return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2645
+ return /* @__PURE__ */ a.jsx("img", { src: `${u}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
2640
2646
  }
2641
2647
  const za = {
2642
2648
  text: "Sign in with Weibo",
@@ -2644,38 +2650,38 @@ const za = {
2644
2650
  iconFormat: (t) => `fa fa-${t}`,
2645
2651
  style: { background: "#e62329" },
2646
2652
  activeStyle: { background: "#e54329" }
2647
- }, Oa = j.createButton(za);
2653
+ }, Oa = C.createButton(za);
2648
2654
  function Ba({ width: t = 24, height: e = 24, color: o }) {
2649
- return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2655
+ return /* @__PURE__ */ a.jsx("img", { src: `${u}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
2650
2656
  }
2651
- const Ra = {
2657
+ const Pa = {
2652
2658
  text: "Sign in with Gitee",
2653
2659
  icon: Ba,
2654
2660
  iconFormat: (t) => `fa fa-${t}`,
2655
2661
  style: { background: "rgb(199,29,35)" },
2656
2662
  activeStyle: { background: "rgb(147,22,26)" }
2657
- }, Pa = j.createButton(Ra);
2663
+ }, Ra = C.createButton(Pa);
2658
2664
  function Ia({ width: t = 24, height: e = 24, color: o }) {
2659
- return /* @__PURE__ */ i.jsx(
2665
+ return /* @__PURE__ */ a.jsx(
2660
2666
  "img",
2661
2667
  {
2662
- src: `${d}/buttons/wechat.svg`,
2668
+ src: `${u}/buttons/wechat.svg`,
2663
2669
  alt: "Sign in with Wechat"
2664
2670
  }
2665
2671
  );
2666
2672
  }
2667
- const Fa = {
2673
+ const Na = {
2668
2674
  text: "Sign in with Wechat",
2669
2675
  icon: Ia,
2670
2676
  iconFormat: (t) => `fa fa-${t}`,
2671
2677
  style: { background: "rgb(0,194,80)" },
2672
2678
  activeStyle: { background: "rgb(0,158,64)" }
2673
- }, Na = j.createButton(Fa);
2679
+ }, Fa = C.createButton(Na);
2674
2680
  function Da({ width: t = 24, height: e = 24, color: o }) {
2675
- return /* @__PURE__ */ i.jsx(
2681
+ return /* @__PURE__ */ a.jsx(
2676
2682
  "img",
2677
2683
  {
2678
- src: `${d}/buttons/dingtalk.svg`,
2684
+ src: `${u}/buttons/dingtalk.svg`,
2679
2685
  alt: "Sign in with DingTalk"
2680
2686
  }
2681
2687
  );
@@ -2686,12 +2692,12 @@ const Ua = {
2686
2692
  iconFormat: (t) => `fa fa-${t}`,
2687
2693
  style: { background: "#0191e0" },
2688
2694
  activeStyle: { background: "rgb(76,143,208)" }
2689
- }, Wa = j.createButton(Ua);
2695
+ }, Wa = C.createButton(Ua);
2690
2696
  function Ha({ width: t = 24, height: e = 24, color: o }) {
2691
- return /* @__PURE__ */ i.jsx(
2697
+ return /* @__PURE__ */ a.jsx(
2692
2698
  "img",
2693
2699
  {
2694
- src: `${d}/buttons/linkedin.svg`,
2700
+ src: `${u}/buttons/linkedin.svg`,
2695
2701
  alt: "Sign in with LinkedIn"
2696
2702
  }
2697
2703
  );
@@ -2702,9 +2708,9 @@ const Va = {
2702
2708
  iconFormat: (t) => `fa fa-${t}`,
2703
2709
  style: { background: "rgb(255,255,255)", color: "#000000" },
2704
2710
  activeStyle: { background: "rgb(240,240,250)" }
2705
- }, Ga = j.createButton(Va);
2711
+ }, Ga = C.createButton(Va);
2706
2712
  function qa({ width: t = 24, height: e = 24, color: o }) {
2707
- return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2713
+ return /* @__PURE__ */ a.jsx("img", { src: `${u}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
2708
2714
  }
2709
2715
  const Ya = {
2710
2716
  text: "Sign in with WeCom",
@@ -2712,12 +2718,12 @@ const Ya = {
2712
2718
  iconFormat: (t) => `fa fa-${t}`,
2713
2719
  style: { background: "rgb(255,255,255)", color: "#000000" },
2714
2720
  activeStyle: { background: "rgb(100,150,250)" }
2715
- }, Ka = j.createButton(Ya);
2721
+ }, Ka = C.createButton(Ya);
2716
2722
  function Ja({ width: t = 24, height: e = 24, color: o }) {
2717
- return /* @__PURE__ */ i.jsx(
2723
+ return /* @__PURE__ */ a.jsx(
2718
2724
  "img",
2719
2725
  {
2720
- src: `${d}/buttons/lark.svg`,
2726
+ src: `${u}/buttons/lark.svg`,
2721
2727
  alt: "Sign in with Lark",
2722
2728
  style: { width: 24, height: 24 }
2723
2729
  }
@@ -2729,12 +2735,12 @@ const Qa = {
2729
2735
  iconFormat: (t) => `fa fa-${t}`,
2730
2736
  style: { background: "#ffffff", color: "#000000" },
2731
2737
  activeStyle: { background: "#ededee" }
2732
- }, Za = j.createButton(Qa);
2738
+ }, Za = C.createButton(Qa);
2733
2739
  function Xa({ width: t = 24, height: e = 24, color: o }) {
2734
- return /* @__PURE__ */ i.jsx(
2740
+ return /* @__PURE__ */ a.jsx(
2735
2741
  "img",
2736
2742
  {
2737
- src: `${d}/buttons/gitlab.svg`,
2743
+ src: `${u}/buttons/gitlab.svg`,
2738
2744
  alt: "Sign in with GitLab",
2739
2745
  style: { width: 24, height: 24 }
2740
2746
  }
@@ -2746,12 +2752,12 @@ const ei = {
2746
2752
  iconFormat: (t) => `fa fa-${t}`,
2747
2753
  style: { background: "rgb(255,255,255)", color: "#000000" },
2748
2754
  activeStyle: { background: "rgb(100,150,250)" }
2749
- }, ti = j.createButton(ei);
2755
+ }, ti = C.createButton(ei);
2750
2756
  function ni({ width: t = 24, height: e = 24, color: o }) {
2751
- return /* @__PURE__ */ i.jsx(
2757
+ return /* @__PURE__ */ a.jsx(
2752
2758
  "img",
2753
2759
  {
2754
- src: `${d}/buttons/adfs.svg`,
2760
+ src: `${u}/buttons/adfs.svg`,
2755
2761
  alt: "Sign in with ADFS",
2756
2762
  style: { width: 24, height: 24 }
2757
2763
  }
@@ -2763,12 +2769,12 @@ const oi = {
2763
2769
  iconFormat: (t) => `fa fa-${t}`,
2764
2770
  style: { background: "#ffffff", color: "#000000" },
2765
2771
  activeStyle: { background: "#ededee" }
2766
- }, ai = j.createButton(oi);
2772
+ }, ai = C.createButton(oi);
2767
2773
  function ii({ width: t = 24, height: e = 24, color: o }) {
2768
- return /* @__PURE__ */ i.jsx(
2774
+ return /* @__PURE__ */ a.jsx(
2769
2775
  "img",
2770
2776
  {
2771
- src: `${d}/buttons/casdoor.svg`,
2777
+ src: `${u}/buttons/casdoor.svg`,
2772
2778
  alt: "Sign in with Casdoor",
2773
2779
  style: { width: 24, height: 24 }
2774
2780
  }
@@ -2780,12 +2786,12 @@ const ri = {
2780
2786
  iconFormat: (t) => `fa fa-${t}`,
2781
2787
  style: { background: "#ffffff", color: "#000000" },
2782
2788
  activeStyle: { background: "#ededee" }
2783
- }, li = j.createButton(ri);
2789
+ }, li = C.createButton(ri);
2784
2790
  function ci({ width: t = 24, height: e = 24, color: o }) {
2785
- return /* @__PURE__ */ i.jsx(
2791
+ return /* @__PURE__ */ a.jsx(
2786
2792
  "img",
2787
2793
  {
2788
- src: `${d}/buttons/baidu.svg`,
2794
+ src: `${u}/buttons/baidu.svg`,
2789
2795
  alt: "Sign in with Baidu",
2790
2796
  style: { width: 24, height: 24 }
2791
2797
  }
@@ -2797,12 +2803,12 @@ const si = {
2797
2803
  iconFormat: (t) => `fa fa-${t}`,
2798
2804
  style: { background: "#ffffff", color: "#000000" },
2799
2805
  activeStyle: { background: "#ededee" }
2800
- }, ui = j.createButton(si);
2806
+ }, ui = C.createButton(si);
2801
2807
  function di({ width: t = 24, height: e = 24, color: o }) {
2802
- return /* @__PURE__ */ i.jsx(
2808
+ return /* @__PURE__ */ a.jsx(
2803
2809
  "img",
2804
2810
  {
2805
- src: `${d}/buttons/alipay.svg`,
2811
+ src: `${u}/buttons/alipay.svg`,
2806
2812
  alt: "Sign in with Alipay",
2807
2813
  style: { width: 24, height: 24 }
2808
2814
  }
@@ -2814,12 +2820,12 @@ const fi = {
2814
2820
  iconFormat: (t) => `fa fa-${t}`,
2815
2821
  style: { background: "#ffffff", color: "#000000" },
2816
2822
  activeStyle: { background: "#ededee" }
2817
- }, pi = j.createButton(fi);
2823
+ }, pi = C.createButton(fi);
2818
2824
  function gi({ width: t = 24, height: e = 24, color: o }) {
2819
- return /* @__PURE__ */ i.jsx(
2825
+ return /* @__PURE__ */ a.jsx(
2820
2826
  "img",
2821
2827
  {
2822
- src: `${d}/buttons/infoflow.svg`,
2828
+ src: `${u}/buttons/infoflow.svg`,
2823
2829
  alt: "Sign in with Infoflow",
2824
2830
  style: { width: 24, height: 24 }
2825
2831
  }
@@ -2831,12 +2837,12 @@ const hi = {
2831
2837
  iconFormat: (t) => `fa fa-${t}`,
2832
2838
  style: { background: "#ffffff", color: "#000000" },
2833
2839
  activeStyle: { background: "#ededee" }
2834
- }, mi = j.createButton(hi);
2840
+ }, mi = C.createButton(hi);
2835
2841
  function yi({ width: t = 24, height: e = 24, color: o }) {
2836
- return /* @__PURE__ */ i.jsx(
2842
+ return /* @__PURE__ */ a.jsx(
2837
2843
  "img",
2838
2844
  {
2839
- src: `${d}/buttons/apple.svg`,
2845
+ src: `${u}/buttons/apple.svg`,
2840
2846
  alt: "Sign in with Apple",
2841
2847
  style: { width: 24, height: 24 }
2842
2848
  }
@@ -2848,12 +2854,12 @@ const wi = {
2848
2854
  iconFormat: (t) => `fa fa-${t}`,
2849
2855
  style: { background: "#ffffff", color: "#000000" },
2850
2856
  activeStyle: { background: "#ededee" }
2851
- }, bi = j.createButton(wi);
2857
+ }, bi = C.createButton(wi);
2852
2858
  function vi({ width: t = 24, height: e = 24, color: o }) {
2853
- return /* @__PURE__ */ i.jsx(
2859
+ return /* @__PURE__ */ a.jsx(
2854
2860
  "img",
2855
2861
  {
2856
- src: `${d}/buttons/azuread.svg`,
2862
+ src: `${u}/buttons/azuread.svg`,
2857
2863
  alt: "Sign in with Azure AD",
2858
2864
  style: { width: 24, height: 24 }
2859
2865
  }
@@ -2865,12 +2871,12 @@ const xi = {
2865
2871
  iconFormat: (t) => `fa fa-${t}`,
2866
2872
  style: { background: "#ffffff", color: "#000000" },
2867
2873
  activeStyle: { background: "#ededee" }
2868
- }, $i = j.createButton(xi);
2874
+ }, $i = C.createButton(xi);
2869
2875
  function ki({ width: t = 24, height: e = 24, color: o }) {
2870
- return /* @__PURE__ */ i.jsx(
2876
+ return /* @__PURE__ */ a.jsx(
2871
2877
  "img",
2872
2878
  {
2873
- src: `${d}/buttons/azuread.svg`,
2879
+ src: `${u}/buttons/azuread.svg`,
2874
2880
  alt: "Sign in with Azure AD B2C",
2875
2881
  style: { width: 24, height: 24 }
2876
2882
  }
@@ -2882,12 +2888,12 @@ const Si = {
2882
2888
  iconFormat: (t) => `fa fa-${t}`,
2883
2889
  style: { background: "#ffffff", color: "#000000" },
2884
2890
  activeStyle: { background: "#ededee" }
2885
- }, _i = j.createButton(Si);
2891
+ }, _i = C.createButton(Si);
2886
2892
  function Ci({ width: t = 24, height: e = 24, color: o }) {
2887
- return /* @__PURE__ */ i.jsx(
2893
+ return /* @__PURE__ */ a.jsx(
2888
2894
  "img",
2889
2895
  {
2890
- src: `${d}/buttons/slack.svg`,
2896
+ src: `${u}/buttons/slack.svg`,
2891
2897
  alt: "Sign in with Slack",
2892
2898
  style: { width: 24, height: 24 }
2893
2899
  }
@@ -2899,12 +2905,12 @@ const Ei = {
2899
2905
  iconFormat: (t) => `fa fa-${t}`,
2900
2906
  style: { background: "#ffffff", color: "#000000" },
2901
2907
  activeStyle: { background: "#ededee" }
2902
- }, ji = j.createButton(Ei);
2908
+ }, ji = C.createButton(Ei);
2903
2909
  function Li({ width: t = 24, height: e = 24, color: o }) {
2904
- return /* @__PURE__ */ i.jsx(
2910
+ return /* @__PURE__ */ a.jsx(
2905
2911
  "img",
2906
2912
  {
2907
- src: `${d}/buttons/steam.svg`,
2913
+ src: `${u}/buttons/steam.svg`,
2908
2914
  alt: "Sign in with Steam",
2909
2915
  style: { width: 24, height: 24 }
2910
2916
  }
@@ -2916,12 +2922,12 @@ const Ti = {
2916
2922
  iconFormat: (t) => `fa fa-${t}`,
2917
2923
  style: { background: "#ffffff", color: "#000000" },
2918
2924
  activeStyle: { background: "#ededee" }
2919
- }, Ai = j.createButton(Ti);
2925
+ }, Ai = C.createButton(Ti);
2920
2926
  function Mi({ width: t = 24, height: e = 24, color: o }) {
2921
- return /* @__PURE__ */ i.jsx(
2927
+ return /* @__PURE__ */ a.jsx(
2922
2928
  "img",
2923
2929
  {
2924
- src: `${d}/buttons/bilibili.svg`,
2930
+ src: `${u}/buttons/bilibili.svg`,
2925
2931
  alt: "Sign in with Bilibili"
2926
2932
  }
2927
2933
  );
@@ -2932,94 +2938,94 @@ const zi = {
2932
2938
  iconFormat: (t) => `fa fa-${t}`,
2933
2939
  style: { background: "#0191e0" },
2934
2940
  activeStyle: { background: "rgb(76,143,208)" }
2935
- }, Oi = j.createButton(zi);
2941
+ }, Oi = C.createButton(zi);
2936
2942
  function Bi({ width: t = 24, height: e = 24, color: o }) {
2937
- return /* @__PURE__ */ i.jsx(
2943
+ return /* @__PURE__ */ a.jsx(
2938
2944
  "img",
2939
2945
  {
2940
- src: `${d}/buttons/okta.svg`,
2946
+ src: `${u}/buttons/okta.svg`,
2941
2947
  alt: "Sign in with Okta",
2942
2948
  style: { width: 24, height: 24 }
2943
2949
  }
2944
2950
  );
2945
2951
  }
2946
- const Ri = {
2952
+ const Pi = {
2947
2953
  text: "Sign in with Okta",
2948
2954
  icon: Bi,
2949
2955
  iconFormat: (t) => `fa fa-${t}`,
2950
2956
  style: { background: "#ffffff", color: "#000000" },
2951
2957
  activeStyle: { background: "#ededee" }
2952
- }, Pi = j.createButton(Ri);
2958
+ }, Ri = C.createButton(Pi);
2953
2959
  function Ii({ width: t = 24, height: e = 24, color: o }) {
2954
- return /* @__PURE__ */ i.jsx(
2960
+ return /* @__PURE__ */ a.jsx(
2955
2961
  "img",
2956
2962
  {
2957
- src: `${d}/buttons/douyin.svg`,
2963
+ src: `${u}/buttons/douyin.svg`,
2958
2964
  alt: "Sign in with Douyin",
2959
2965
  style: { width: 24, height: 24 }
2960
2966
  }
2961
2967
  );
2962
2968
  }
2963
- const Fi = {
2969
+ const Ni = {
2964
2970
  text: "Sign in with Douyin",
2965
2971
  icon: Ii,
2966
2972
  iconFormat: (t) => `fa fa-${t}`,
2967
2973
  style: { background: "#ffffff", color: "#000000" },
2968
2974
  activeStyle: { background: "#ededee" }
2969
- }, Ni = j.createButton(Fi);
2970
- function Di({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: a = { background: "#ededee" } }) {
2971
- function l({ width: f = 24, height: h = 24, color: $ }) {
2972
- return /* @__PURE__ */ i.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: h } });
2975
+ }, Fi = C.createButton(Ni);
2976
+ function Di({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: i = { background: "#ededee" } }) {
2977
+ function l({ width: g = 24, height: h = 24, color: y }) {
2978
+ return /* @__PURE__ */ a.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: g, height: h } });
2973
2979
  }
2974
- const u = {
2980
+ const d = {
2975
2981
  text: `Sign in with ${t}`,
2976
2982
  icon: l,
2977
2983
  style: r,
2978
- activeStyle: a
2979
- }, g = j.createButton(u), c = Q.t("login:Sign in with {type}").replace("{type}", t);
2980
- return /* @__PURE__ */ i.jsx(g, { text: c, align: o });
2984
+ activeStyle: i
2985
+ }, p = C.createButton(d), c = Q.t("login:Sign in with {type}").replace("{type}", t);
2986
+ return /* @__PURE__ */ a.jsx(p, { text: c, align: o });
2981
2987
  }
2982
2988
  function Je(t) {
2983
2989
  const e = Q.t("login:Sign in with {type}").replace(
2984
2990
  "{type}",
2985
2991
  t.displayName !== "" ? t.displayName : t.type
2986
2992
  );
2987
- return t.type === "GitHub" ? /* @__PURE__ */ i.jsx(j.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ i.jsx(j.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ i.jsx(ja, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ i.jsx(Aa, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ i.jsx(Oa, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ i.jsx(Pa, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ i.jsx(Na, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ i.jsx(Wa, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ i.jsx(Ga, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ i.jsx(Ka, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ i.jsx(Za, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ i.jsx(ti, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ i.jsx(ai, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ i.jsx(li, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ i.jsx(ui, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ i.jsx(pi, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ i.jsx(mi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ i.jsx(bi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ i.jsx($i, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ i.jsx(_i, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ i.jsx(ji, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ i.jsx(Ai, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ i.jsx(Oi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ i.jsx(Pi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ i.jsx(Ni, { text: e, align: "center" }) : /* @__PURE__ */ i.jsx(
2993
+ 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(ja, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ a.jsx(Aa, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ a.jsx(Oa, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ a.jsx(Ra, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ a.jsx(Fa, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ a.jsx(Wa, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ a.jsx(Ga, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ a.jsx(Ka, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ a.jsx(Za, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ a.jsx(ti, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ a.jsx(ai, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ a.jsx(li, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ a.jsx(ui, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ a.jsx(pi, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ a.jsx(mi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ a.jsx(bi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ a.jsx($i, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ a.jsx(_i, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ a.jsx(ji, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ a.jsx(Ai, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ a.jsx(Oi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ a.jsx(Ri, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ a.jsx(Fi, { text: e, align: "center" }) : /* @__PURE__ */ a.jsx(
2988
2994
  Di,
2989
2995
  {
2990
2996
  type: t.type,
2991
- logoUrl: se(t)
2997
+ logoUrl: ue(t)
2992
2998
  },
2993
2999
  t.type
2994
3000
  );
2995
3001
  }
2996
3002
  function Qe(t, e) {
2997
- const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", a = o.get("state"), l = o.get("redirect_uri"), u = `${window.location.origin}/callback/saml`, g = t.name, c = `${r}&${a}&${g}&${l}&${u}`;
3003
+ const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", i = o.get("state"), l = o.get("redirect_uri"), d = `${window.location.origin}/callback/saml`, p = t.name, c = `${r}&${i}&${p}&${l}&${d}`;
2998
3004
  Gn(
2999
- `${t.owner}/${g}`,
3005
+ `${t.owner}/${p}`,
3000
3006
  btoa(c)
3001
- ).then((f) => {
3002
- f.data2 === "POST" ? document.write(f.data) : window.location.href = f.data;
3007
+ ).then((g) => {
3008
+ g.data2 === "POST" ? document.write(g.data) : window.location.href = g.data;
3003
3009
  });
3004
3010
  }
3005
3011
  function Bt(t, e, o) {
3006
- e.type === "MetaMask" ? import("./Web3Auth-D-jzK5S2.js").then((r) => r.bO).then((r) => {
3007
- const a = r.authViaMetaMask;
3008
- a(t, e, o);
3009
- }) : e.type === "Web3Onboard" && import("./Web3Auth-D-jzK5S2.js").then((r) => r.bO).then((r) => {
3010
- const a = r.authViaWeb3Onboard;
3011
- a(t, e, o);
3012
+ e.type === "MetaMask" ? import("./Web3Auth-R27O2eCc.js").then((r) => r.bO).then((r) => {
3013
+ const i = r.authViaMetaMask;
3014
+ i(t, e, o);
3015
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-R27O2eCc.js").then((r) => r.bO).then((r) => {
3016
+ const i = r.authViaWeb3Onboard;
3017
+ i(t, e, o);
3012
3018
  });
3013
3019
  }
3014
- function Ui(t, e, o, r, a, l) {
3015
- if (a === "small") {
3020
+ function Ui(t, e, o, r, i, l) {
3021
+ if (i === "small") {
3016
3022
  if (t.category === "OAuth")
3017
- return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ i.jsx("a", { children: /* @__PURE__ */ i.jsx(
3023
+ return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ a.jsx("a", { children: /* @__PURE__ */ a.jsx(
3018
3024
  "img",
3019
3025
  {
3020
3026
  width: o,
3021
3027
  height: o,
3022
- src: se(t),
3028
+ src: ue(t),
3023
3029
  alt: t.displayName,
3024
3030
  className: "provider-img",
3025
3031
  style: { margin: r },
@@ -3027,16 +3033,16 @@ function Ui(t, e, o, r, a, l) {
3027
3033
  Zn(e, t, "signup");
3028
3034
  }
3029
3035
  }
3030
- ) }, t.displayName) : /* @__PURE__ */ i.jsx(
3036
+ ) }, t.displayName) : /* @__PURE__ */ a.jsx(
3031
3037
  "a",
3032
3038
  {
3033
3039
  href: (void 0)(e, t, "signup"),
3034
- children: /* @__PURE__ */ i.jsx(
3040
+ children: /* @__PURE__ */ a.jsx(
3035
3041
  "img",
3036
3042
  {
3037
3043
  width: o,
3038
3044
  height: o,
3039
- src: se(t),
3045
+ src: ue(t),
3040
3046
  alt: t.displayName,
3041
3047
  className: "provider-img",
3042
3048
  style: { margin: r }
@@ -3046,16 +3052,16 @@ function Ui(t, e, o, r, a, l) {
3046
3052
  t.displayName
3047
3053
  );
3048
3054
  if (t.category === "SAML")
3049
- return /* @__PURE__ */ i.jsx(
3055
+ return /* @__PURE__ */ a.jsx(
3050
3056
  "a",
3051
3057
  {
3052
3058
  onClick: () => Qe(t, l),
3053
- children: /* @__PURE__ */ i.jsx(
3059
+ children: /* @__PURE__ */ a.jsx(
3054
3060
  "img",
3055
3061
  {
3056
3062
  width: o,
3057
3063
  height: o,
3058
- src: se(t),
3064
+ src: ue(t),
3059
3065
  alt: t.displayName,
3060
3066
  className: "provider-img",
3061
3067
  style: { margin: r }
@@ -3065,16 +3071,16 @@ function Ui(t, e, o, r, a, l) {
3065
3071
  t.displayName
3066
3072
  );
3067
3073
  if (t.category === "Web3")
3068
- return /* @__PURE__ */ i.jsx(
3074
+ return /* @__PURE__ */ a.jsx(
3069
3075
  "a",
3070
3076
  {
3071
3077
  onClick: () => Bt(e, t, "signup"),
3072
- children: /* @__PURE__ */ i.jsx(
3078
+ children: /* @__PURE__ */ a.jsx(
3073
3079
  "img",
3074
3080
  {
3075
3081
  width: o,
3076
3082
  height: o,
3077
- src: se(t),
3083
+ src: ue(t),
3078
3084
  alt: t.displayName,
3079
3085
  className: "provider-img",
3080
3086
  style: { margin: r }
@@ -3084,7 +3090,7 @@ function Ui(t, e, o, r, a, l) {
3084
3090
  t.displayName
3085
3091
  );
3086
3092
  } else if (t.type === "Custom") {
3087
- const u = Q.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, c = {
3093
+ const d = Q.t("login:Sign in with {type}").replace("{type}", t.displayName), p = { display: "block", height: "55px", color: "#000" }, c = {
3088
3094
  display: "flex",
3089
3095
  alignItems: "center",
3090
3096
  width: "calc(100% - 10px)",
@@ -3096,57 +3102,57 @@ function Ui(t, e, o, r, a, l) {
3096
3102
  border: "0px",
3097
3103
  borderRadius: "3px",
3098
3104
  cursor: "pointer"
3099
- }, f = { justfyContent: "space-between" }, h = {
3105
+ }, g = { justfyContent: "space-between" }, h = {
3100
3106
  textAlign: "center",
3101
3107
  width: "100%",
3102
3108
  fontSize: "19px"
3103
3109
  };
3104
3110
  if (t.category === "OAuth")
3105
- return /* @__PURE__ */ i.jsx(
3111
+ return /* @__PURE__ */ a.jsx(
3106
3112
  "a",
3107
3113
  {
3108
3114
  href: (void 0)(e, t, "signup"),
3109
- style: g,
3110
- children: /* @__PURE__ */ i.jsxs("div", { style: c, children: [
3111
- /* @__PURE__ */ i.jsx(
3115
+ style: p,
3116
+ children: /* @__PURE__ */ a.jsxs("div", { style: c, children: [
3117
+ /* @__PURE__ */ a.jsx(
3112
3118
  "img",
3113
3119
  {
3114
3120
  width: 26,
3115
- src: se(t),
3121
+ src: ue(t),
3116
3122
  alt: t.displayName,
3117
3123
  className: "provider-img",
3118
- style: f
3124
+ style: g
3119
3125
  }
3120
3126
  ),
3121
- /* @__PURE__ */ i.jsx("span", { style: h, children: u })
3127
+ /* @__PURE__ */ a.jsx("span", { style: h, children: d })
3122
3128
  ] })
3123
3129
  },
3124
3130
  t.displayName
3125
3131
  );
3126
3132
  if (t.category === "SAML")
3127
- return /* @__PURE__ */ i.jsx(
3133
+ return /* @__PURE__ */ a.jsx(
3128
3134
  "a",
3129
3135
  {
3130
3136
  onClick: () => Qe(t, l),
3131
- style: g,
3132
- children: /* @__PURE__ */ i.jsxs("div", { style: c, children: [
3133
- /* @__PURE__ */ i.jsx(
3137
+ style: p,
3138
+ children: /* @__PURE__ */ a.jsxs("div", { style: c, children: [
3139
+ /* @__PURE__ */ a.jsx(
3134
3140
  "img",
3135
3141
  {
3136
3142
  width: 26,
3137
- src: se(t),
3143
+ src: ue(t),
3138
3144
  alt: t.displayName,
3139
3145
  className: "provider-img",
3140
- style: f
3146
+ style: g
3141
3147
  }
3142
3148
  ),
3143
- /* @__PURE__ */ i.jsx("span", { style: h, children: u })
3149
+ /* @__PURE__ */ a.jsx("span", { style: h, children: d })
3144
3150
  ] })
3145
3151
  },
3146
3152
  t.displayName
3147
3153
  );
3148
3154
  } else
3149
- return t.category === "SAML" ? /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { onClick: () => Qe(t, l), children: Je(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { onClick: () => Bt(e, t, "signup"), children: Je(t) }) }, t.displayName) : /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { href: (void 0)(e, t, "signup"), children: Je(t) }) }, t.displayName);
3155
+ 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);
3150
3156
  }
3151
3157
  function Wi(t) {
3152
3158
  return t.length < 6 ? Q.t("user:The password must have at least 6 characters") : "";
@@ -3181,9 +3187,9 @@ function Yi(t, e) {
3181
3187
  NoRepeat: qi
3182
3188
  };
3183
3189
  for (const r of e) {
3184
- const a = o[r];
3185
- if (a) {
3186
- const l = a(t);
3190
+ const i = o[r];
3191
+ if (i) {
3192
+ const l = i(t);
3187
3193
  if (l !== "")
3188
3194
  return l;
3189
3195
  }
@@ -3195,7 +3201,7 @@ function Ki({
3195
3201
  state: e,
3196
3202
  setState: o
3197
3203
  }) {
3198
- const [r, a] = m.useState(!1), l = m.useRef(null);
3204
+ const [r, i] = m.useState(!1), l = m.useRef(null);
3199
3205
  m.useEffect(() => {
3200
3206
  l.current || (l.current = document.getElementById(
3201
3207
  "agreementDialog"
@@ -3203,16 +3209,16 @@ function Ki({
3203
3209
  }, []), m.useEffect(() => {
3204
3210
  l.current && (r ? l.current.showModal() : l.current.close());
3205
3211
  }, [r]);
3206
- const u = () => {
3207
- o({ ...e, agreement: !1 }), a(!1);
3208
- }, g = () => {
3209
- o({ ...e, agreement: !0 }), a(!1);
3212
+ const d = () => {
3213
+ o({ ...e, agreement: !1 }), i(!1);
3214
+ }, p = () => {
3215
+ o({ ...e, agreement: !0 }), i(!1);
3210
3216
  }, c = () => {
3211
- a(!0);
3217
+ i(!0);
3212
3218
  };
3213
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3214
- /* @__PURE__ */ i.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ i.jsxs("div", { className: "modal-box", children: [
3215
- /* @__PURE__ */ i.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ i.jsx(
3219
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3220
+ /* @__PURE__ */ a.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
3221
+ /* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ a.jsx(
3216
3222
  "iframe",
3217
3223
  {
3218
3224
  src: t.termsOfUse,
@@ -3221,15 +3227,15 @@ function Ki({
3221
3227
  sandbox: "allow-scripts"
3222
3228
  }
3223
3229
  ) }),
3224
- /* @__PURE__ */ i.jsxs("div", { className: "modal-action", children: [
3225
- /* @__PURE__ */ i.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ i.jsx("button", { children: "Close" }) }),
3226
- /* @__PURE__ */ i.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
3227
- /* @__PURE__ */ i.jsx("button", { className: "btn", onClick: u, children: "Cancel" }, "closebtn"),
3228
- /* @__PURE__ */ i.jsx(
3230
+ /* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
3231
+ /* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
3232
+ /* @__PURE__ */ a.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
3233
+ /* @__PURE__ */ a.jsx("button", { className: "btn", onClick: d, children: "Cancel" }, "closebtn"),
3234
+ /* @__PURE__ */ a.jsx(
3229
3235
  "button",
3230
3236
  {
3231
3237
  className: "btn btn-primary",
3232
- onClick: g,
3238
+ onClick: p,
3233
3239
  children: "OK"
3234
3240
  },
3235
3241
  "okbtn"
@@ -3237,12 +3243,12 @@ function Ki({
3237
3243
  ] })
3238
3244
  ] })
3239
3245
  ] }) }),
3240
- /* @__PURE__ */ i.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
3241
- /* @__PURE__ */ i.jsx("button", { onClick: c, children: "Open Terms" })
3246
+ /* @__PURE__ */ a.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
3247
+ /* @__PURE__ */ a.jsx("button", { onClick: c, children: "Open Terms" })
3242
3248
  ] });
3243
3249
  }
3244
3250
  async function Ji(t, e, o) {
3245
- const { callbackUrl: r = window.location.href, redirect: a = !0 } = {}, { prefix: l = "/api/auth", ...u } = {}, c = t === "email", h = `${`${l}/signin/${t}`}?${new URLSearchParams(o)}`, $ = await fetch(`${l}/csrf`), { csrfToken: w } = await $.json(), b = await fetch(h, {
3251
+ const { callbackUrl: r = window.location.href, redirect: i = !0 } = {}, { prefix: l = "/api/auth", ...d } = {}, c = t === "email", h = `${`${l}/signin/${t}`}?${new URLSearchParams(o)}`, y = await fetch(`${l}/csrf`), { csrfToken: w } = await y.json(), x = await fetch(h, {
3246
3252
  method: "post",
3247
3253
  headers: {
3248
3254
  "Content-Type": "application/x-www-form-urlencoded",
@@ -3250,41 +3256,41 @@ async function Ji(t, e, o) {
3250
3256
  },
3251
3257
  // @ts-expect-error -- ignore
3252
3258
  body: new URLSearchParams({
3253
- ...u,
3259
+ ...d,
3254
3260
  csrfToken: w,
3255
3261
  callbackUrl: r
3256
3262
  })
3257
- }), L = await b.clone().json(), F = new URL(L.url).searchParams.get("error");
3258
- if (a || !c || !F) {
3259
- window.location.href = L.url ?? r, L.url.includes("#") && window.location.reload();
3263
+ }), E = await x.clone().json(), H = new URL(E.url).searchParams.get("error");
3264
+ if (i || !c || !H) {
3265
+ window.location.href = E.url ?? r, E.url.includes("#") && window.location.reload();
3260
3266
  return;
3261
3267
  }
3262
- return b;
3268
+ return x;
3263
3269
  }
3264
3270
  function J({
3265
3271
  label: t,
3266
3272
  name: e,
3267
3273
  rules: o,
3268
3274
  inputEl: r,
3269
- setFieldValue: a,
3275
+ setFieldValue: i,
3270
3276
  onChange: l,
3271
- ...u
3277
+ ...d
3272
3278
  }) {
3273
- return /* @__PURE__ */ i.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
3274
- /* @__PURE__ */ i.jsx("div", { className: "label", children: /* @__PURE__ */ i.jsx("span", { className: "label-text", children: t }) }),
3275
- r || /* @__PURE__ */ i.jsx(
3279
+ return /* @__PURE__ */ a.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
3280
+ /* @__PURE__ */ a.jsx("div", { className: "label", children: /* @__PURE__ */ a.jsx("span", { className: "label-text", children: t }) }),
3281
+ r || /* @__PURE__ */ a.jsx(
3276
3282
  "input",
3277
3283
  {
3278
3284
  type: "text",
3279
- ...u,
3285
+ ...d,
3280
3286
  name: e,
3281
3287
  className: "input input-bordered w-full max-w-xs",
3282
- onChange: (g) => {
3283
- a(e, g.target.value), l == null || l(g);
3288
+ onChange: (p) => {
3289
+ i(e, p.target.value), l == null || l(p);
3284
3290
  }
3285
3291
  }
3286
3292
  ),
3287
- /* @__PURE__ */ i.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, c) => /* @__PURE__ */ i.jsx("span", { className: "label-text-alt", children: g.message }, e + c)) })
3293
+ /* @__PURE__ */ a.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((p, c) => /* @__PURE__ */ a.jsx("span", { className: "label-text-alt", children: p.message }, e + c)) })
3288
3294
  ] });
3289
3295
  }
3290
3296
  const Qi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
@@ -3296,170 +3302,170 @@ const Qi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delet
3296
3302
  }), Zi = (t, e, o) => {
3297
3303
  t.preventDefault();
3298
3304
  const r = Qi(e, o);
3299
- console.log(r), Wn(r).then((a) => {
3300
- a.status === "ok" ? (r.username = a.data.split("/")[1], o && Nn(o) ? Un("").then((l) => {
3301
- let u = null;
3302
- l.status === "ok" ? (u = l.data, u.organization = l.data2, console.log("account", u), alert("redirect")) : G("error", `Failed to sign in: ${l.msg}`);
3303
- }) : (alert("redirect"), Ji())) : G("error", a.msg);
3305
+ console.log(r), Wn(r).then((i) => {
3306
+ i.status === "ok" ? (r.username = i.data.split("/")[1], o && Fn(o) ? Un("").then((l) => {
3307
+ let d = null;
3308
+ l.status === "ok" ? (d = l.data, d.organization = l.data2, console.log("account", d), alert("redirect")) : Y("error", `Failed to sign in: ${l.msg}`);
3309
+ }) : (alert("redirect"), Ji())) : Y("error", i.msg);
3304
3310
  });
3305
3311
  };
3306
- function Xi(t, e, o, r, a) {
3312
+ function Xi(t, e, o, r, i, l, d) {
3307
3313
  if (!e.visible)
3308
3314
  return null;
3309
- const l = (g, c) => {
3310
- o[g] = c, r(o);
3311
- }, u = e.required;
3315
+ const p = (g, h) => {
3316
+ o[g] = h, r(o);
3317
+ }, c = e.required;
3312
3318
  if (e.name === "Username")
3313
- return /* @__PURE__ */ i.jsx(
3319
+ return /* @__PURE__ */ a.jsx(
3314
3320
  J,
3315
3321
  {
3316
3322
  name: "username",
3317
3323
  className: "signup-username",
3318
- label: e.label ? e.label : a("signup.username"),
3324
+ label: e.label ? e.label : i("signup.username"),
3319
3325
  rules: [
3320
3326
  {
3321
- required: u,
3322
- message: a("forget.username"),
3327
+ required: c,
3328
+ message: i("forget.username"),
3323
3329
  whitespace: !0
3324
3330
  }
3325
3331
  ],
3326
3332
  placeholder: e.placeholder,
3327
3333
  disabled: o.invitation !== void 0 && o.invitation.username !== "",
3328
- setFieldValue: l
3334
+ setFieldValue: p
3329
3335
  }
3330
3336
  );
3331
3337
  if (e.name === "Display name")
3332
- return e.rule === "First, last" && jn() !== "zh" ? /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
3333
- /* @__PURE__ */ i.jsx(
3338
+ return e.rule === "First, last" && jn() !== "zh" ? /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3339
+ /* @__PURE__ */ a.jsx(
3334
3340
  J,
3335
3341
  {
3336
3342
  name: "firstName",
3337
3343
  className: "signup-first-name",
3338
- label: e.label ? e.label : a("general.firstName"),
3344
+ label: e.label ? e.label : i("general.firstName"),
3339
3345
  rules: [
3340
3346
  {
3341
- required: u,
3342
- message: a("forget.firstName"),
3347
+ required: c,
3348
+ message: i("forget.firstName"),
3343
3349
  whitespace: !0
3344
3350
  }
3345
3351
  ],
3346
3352
  placeholder: e.placeholder,
3347
- setFieldValue: l
3353
+ setFieldValue: p
3348
3354
  }
3349
3355
  ),
3350
- /* @__PURE__ */ i.jsx(
3356
+ /* @__PURE__ */ a.jsx(
3351
3357
  J,
3352
3358
  {
3353
3359
  name: "lastName",
3354
3360
  className: "signup-last-name",
3355
- label: e.label ? e.label : a("general.lastName"),
3361
+ label: e.label ? e.label : i("general.lastName"),
3356
3362
  rules: [
3357
3363
  {
3358
- required: u,
3359
- message: a("forget.lastName"),
3364
+ required: c,
3365
+ message: i("forget.lastName"),
3360
3366
  whitespace: !0
3361
3367
  }
3362
3368
  ],
3363
3369
  placeholder: e.placeholder,
3364
- setFieldValue: l
3370
+ setFieldValue: p
3365
3371
  }
3366
3372
  )
3367
- ] }) : /* @__PURE__ */ i.jsx(
3373
+ ] }) : /* @__PURE__ */ a.jsx(
3368
3374
  J,
3369
3375
  {
3370
3376
  name: "name",
3371
3377
  className: "signup-name",
3372
- label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? a("general.realName") : a("general.displayName"),
3378
+ label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? i("general.realName") : i("general.displayName"),
3373
3379
  rules: [
3374
3380
  {
3375
- required: u,
3376
- message: e.rule === "Real name" || e.rule === "First, last" ? a("forget.realName") : a("forget.displayName"),
3381
+ required: c,
3382
+ message: e.rule === "Real name" || e.rule === "First, last" ? i("forget.realName") : i("forget.displayName"),
3377
3383
  whitespace: !0
3378
3384
  }
3379
3385
  ],
3380
3386
  placeholder: e.placeholder,
3381
- setFieldValue: l
3387
+ setFieldValue: p
3382
3388
  }
3383
3389
  );
3384
3390
  if (e.name === "Affiliation")
3385
- return /* @__PURE__ */ i.jsx(
3391
+ return /* @__PURE__ */ a.jsx(
3386
3392
  J,
3387
3393
  {
3388
3394
  name: "affiliation",
3389
3395
  className: "signup-affiliation",
3390
- label: e.label ? e.label : a("user.affiliation"),
3396
+ label: e.label ? e.label : i("user.affiliation"),
3391
3397
  rules: [
3392
3398
  {
3393
- required: u,
3394
- message: a("forget.affiliation"),
3399
+ required: c,
3400
+ message: i("forget.affiliation"),
3395
3401
  whitespace: !0
3396
3402
  }
3397
3403
  ],
3398
3404
  placeholder: e.placeholder,
3399
- setFieldValue: l
3405
+ setFieldValue: p
3400
3406
  }
3401
3407
  );
3402
3408
  if (e.name === "ID card")
3403
- return /* @__PURE__ */ i.jsx(
3409
+ return /* @__PURE__ */ a.jsx(
3404
3410
  J,
3405
3411
  {
3406
3412
  name: "idCard",
3407
3413
  className: "signup-idcard",
3408
- label: e.label ? e.label : a("user.idCard"),
3414
+ label: e.label ? e.label : i("user.idCard"),
3409
3415
  rules: [
3410
3416
  {
3411
- required: u,
3412
- message: a("forget.idCard"),
3417
+ required: c,
3418
+ message: i("forget.idCard"),
3413
3419
  whitespace: !0
3414
3420
  },
3415
3421
  {
3416
- required: u,
3422
+ required: c,
3417
3423
  pattern: new RegExp(
3418
3424
  /^[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]$/,
3419
3425
  "g"
3420
3426
  ),
3421
- message: a("format.idCard")
3427
+ message: i("format.idCard")
3422
3428
  }
3423
3429
  ],
3424
3430
  placeholder: e.placeholder,
3425
- setFieldValue: l
3431
+ setFieldValue: p
3426
3432
  }
3427
3433
  );
3428
3434
  if (e.name === "Email" || e.name === "Phone" || e.name === "Email or Phone" || e.name === "Phone or Email") {
3429
- const g = () => /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
3430
- /* @__PURE__ */ i.jsx(
3435
+ const g = () => /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3436
+ /* @__PURE__ */ a.jsx(
3431
3437
  J,
3432
3438
  {
3433
3439
  name: "email",
3434
- label: e.label ? e.label : a("general.email"),
3440
+ label: e.label ? e.label : i("general.email"),
3435
3441
  rules: [
3436
3442
  {
3437
- required: u,
3438
- message: a("forget.email")
3443
+ required: c,
3444
+ message: i("forget.email")
3439
3445
  }
3440
3446
  ],
3441
3447
  placeholder: e.placeholder,
3442
3448
  disabled: o.invitation !== void 0 && o.invitation.email !== "",
3443
- onChange: (f) => {
3444
- const h = f.target.value;
3445
- console.log("email", h, vt(h)), h !== "" && !vt(h) ? r({ ...o, email: h, validEmail: !1 }) : r({ ...o, email: h, validEmail: !0 });
3449
+ onChange: (y) => {
3450
+ const w = y.target.value;
3451
+ console.log("email", w, vt(w)), w !== "" && !vt(w) ? r({ ...o, email: w, validEmail: !1 }) : r({ ...o, email: w, validEmail: !0 });
3446
3452
  },
3447
- setFieldValue: l
3453
+ setFieldValue: p
3448
3454
  }
3449
3455
  ),
3450
- e.rule !== "No verification" && /* @__PURE__ */ i.jsx(
3456
+ e.rule !== "No verification" && /* @__PURE__ */ a.jsx(
3451
3457
  J,
3452
3458
  {
3453
3459
  name: "emailCode",
3454
3460
  className: "signup-email-code",
3455
- label: e.label ? e.label : a("code.email"),
3461
+ label: e.label ? e.label : i("code.email"),
3456
3462
  rules: [
3457
3463
  {
3458
- required: u,
3459
- message: a("forget.code")
3464
+ required: c,
3465
+ message: i("forget.code")
3460
3466
  }
3461
3467
  ],
3462
- inputEl: /* @__PURE__ */ i.jsx(
3468
+ inputEl: /* @__PURE__ */ a.jsx(
3463
3469
  to,
3464
3470
  {
3465
3471
  disabled: !o.validEmail,
@@ -3467,62 +3473,64 @@ function Xi(t, e, o, r, a) {
3467
3473
  onButtonClickArgs: [o.email, "email", t.name],
3468
3474
  application: t,
3469
3475
  countryCode: "US",
3470
- onChange: (f) => r({ ...o, emailCode: f })
3476
+ onChange: (y) => r({ ...o, emailCode: y }),
3477
+ CLIENT_ID: l,
3478
+ CLIENT_SECRET: d
3471
3479
  }
3472
3480
  ),
3473
- setFieldValue: l
3481
+ setFieldValue: p
3474
3482
  }
3475
3483
  )
3476
- ] }), c = () => /* @__PURE__ */ i.jsx(i.Fragment, {});
3484
+ ] }), h = () => /* @__PURE__ */ a.jsx(a.Fragment, {});
3477
3485
  if (e.name === "Email")
3478
3486
  return g();
3479
3487
  if (e.name === "Phone")
3480
- return c();
3488
+ return h();
3481
3489
  if (e.name === "Email or Phone" || e.name === "Phone or Email") {
3482
- let f = o.emailOrPhoneMode;
3483
- return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
3484
- /* @__PURE__ */ i.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3485
- f === "Email" ? g() : c()
3490
+ let y = o.emailOrPhoneMode;
3491
+ return y === "" && (y = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
3492
+ /* @__PURE__ */ a.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
3493
+ y === "Email" ? g() : h()
3486
3494
  ] });
3487
3495
  } else
3488
3496
  return null;
3489
3497
  } else {
3490
3498
  if (e.name === "Password")
3491
- return /* @__PURE__ */ i.jsx(
3499
+ return /* @__PURE__ */ a.jsx(
3492
3500
  J,
3493
3501
  {
3494
3502
  name: "password",
3495
3503
  className: "signup-password",
3496
- label: e.label ? e.label : a("general.password"),
3504
+ label: e.label ? e.label : i("general.password"),
3497
3505
  rules: [
3498
3506
  {
3499
- required: u,
3507
+ required: c,
3500
3508
  validateTrigger: "onChange",
3501
- validator: (g, c) => {
3502
- const f = Yi(
3503
- c,
3509
+ validator: (g, h) => {
3510
+ const y = Yi(
3511
+ h,
3504
3512
  t.organizationObj.passwordOptions
3505
3513
  );
3506
- return f === "" ? Promise.resolve() : Promise.reject(f);
3514
+ return y === "" ? Promise.resolve() : Promise.reject(y);
3507
3515
  }
3508
3516
  }
3509
3517
  ],
3510
- setFieldValue: l,
3518
+ setFieldValue: p,
3511
3519
  type: "password",
3512
3520
  placeholder: e.placeholder
3513
3521
  }
3514
3522
  );
3515
3523
  if (e.name === "Confirm password")
3516
- return /* @__PURE__ */ i.jsx(
3524
+ return /* @__PURE__ */ a.jsx(
3517
3525
  J,
3518
3526
  {
3519
3527
  name: "confirm",
3520
3528
  className: "signup-confirm",
3521
- label: e.label ? e.label : a("signup.confirm"),
3529
+ label: e.label ? e.label : i("signup.confirm"),
3522
3530
  rules: [
3523
3531
  {
3524
- required: u,
3525
- message: a("forget.confirm")
3532
+ required: c,
3533
+ message: i("forget.confirm")
3526
3534
  }
3527
3535
  // ({ getFieldValue }) => ({
3528
3536
  // validator(rule, value) {
@@ -3539,29 +3547,29 @@ function Xi(t, e, o, r, a) {
3539
3547
  ],
3540
3548
  type: "password",
3541
3549
  placeholder: e.placeholder,
3542
- setFieldValue: l
3550
+ setFieldValue: p
3543
3551
  }
3544
3552
  );
3545
3553
  if (e.name === "Invitation code")
3546
- return /* @__PURE__ */ i.jsx(
3554
+ return /* @__PURE__ */ a.jsx(
3547
3555
  J,
3548
3556
  {
3549
3557
  name: "invitationCode",
3550
3558
  className: "signup-invitation-code",
3551
- label: e.label ? e.label : a("application.invitationCode"),
3559
+ label: e.label ? e.label : i("application.invitationCode"),
3552
3560
  rules: [
3553
3561
  {
3554
- required: u,
3555
- message: a("forget.invitationCode")
3562
+ required: c,
3563
+ message: i("forget.invitationCode")
3556
3564
  }
3557
3565
  ],
3558
3566
  placeholder: e.placeholder,
3559
3567
  disabled: o.invitation !== void 0 && o.invitation !== "",
3560
- setFieldValue: l
3568
+ setFieldValue: p
3561
3569
  }
3562
3570
  );
3563
3571
  if (e.name === "Agreement")
3564
- return /* @__PURE__ */ i.jsx(
3572
+ return /* @__PURE__ */ a.jsx(
3565
3573
  Ki,
3566
3574
  {
3567
3575
  state: o,
@@ -3570,14 +3578,14 @@ function Xi(t, e, o, r, a) {
3570
3578
  }
3571
3579
  );
3572
3580
  if (e.name.startsWith("Text "))
3573
- return /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3581
+ return /* @__PURE__ */ a.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
3574
3582
  if (e.name === "Signup button")
3575
- return /* @__PURE__ */ i.jsxs("form", { onSubmit: (g) => Zi(g, o, t), children: [
3576
- /* @__PURE__ */ i.jsx("button", { className: "btn btn-primary", type: "submit", children: a("signup.signUp") }),
3583
+ return /* @__PURE__ */ a.jsxs("form", { onSubmit: (g) => Zi(g, o, t), children: [
3584
+ /* @__PURE__ */ a.jsx("button", { className: "btn btn-primary", type: "submit", children: i("signup.signUp") }),
3577
3585
  "  ",
3578
- a("signup.haveAccount"),
3586
+ i("signup.haveAccount"),
3579
3587
  " ",
3580
- /* @__PURE__ */ i.jsx(
3588
+ /* @__PURE__ */ a.jsx(
3581
3589
  "a",
3582
3590
  {
3583
3591
  className: "signup-link",
@@ -3585,14 +3593,14 @@ function Xi(t, e, o, r, a) {
3585
3593
  const g = sessionStorage.getItem("signinUrl");
3586
3594
  alert("redirect");
3587
3595
  },
3588
- children: a("signup.signInNow")
3596
+ children: i("signup.signInNow")
3589
3597
  }
3590
3598
  )
3591
3599
  ] });
3592
3600
  if (e.name === "Providers" && t.providers) {
3593
- const g = Rn(t) || Pn(t) || In(t) || Fn(t);
3594
- return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((c) => Pt(c)).map((c) => Ui(
3595
- c.provider,
3601
+ const g = Pn(t) || Rn(t) || In(t) || Nn(t);
3602
+ return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((h) => Rt(h)).map((h) => Ui(
3603
+ h.provider,
3596
3604
  t,
3597
3605
  null,
3598
3606
  null,
@@ -3660,7 +3668,7 @@ Q.use(Sn).init({
3660
3668
  }
3661
3669
  });
3662
3670
  function nr(t, e, o) {
3663
- const r = /* @__PURE__ */ i.jsxs(
3671
+ const r = /* @__PURE__ */ a.jsxs(
3664
3672
  "svg",
3665
3673
  {
3666
3674
  xmlns: "http://www.w3.org/2000/svg",
@@ -3674,11 +3682,11 @@ function nr(t, e, o) {
3674
3682
  "stroke-linejoin": "round",
3675
3683
  className: "lucide lucide-eye",
3676
3684
  children: [
3677
- /* @__PURE__ */ i.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3678
- /* @__PURE__ */ i.jsx("circle", { cx: "12", cy: "12", r: "3" })
3685
+ /* @__PURE__ */ a.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
3686
+ /* @__PURE__ */ a.jsx("circle", { cx: "12", cy: "12", r: "3" })
3679
3687
  ]
3680
3688
  }
3681
- ), a = /* @__PURE__ */ i.jsxs(
3689
+ ), i = /* @__PURE__ */ a.jsxs(
3682
3690
  "svg",
3683
3691
  {
3684
3692
  xmlns: "http://www.w3.org/2000/svg",
@@ -3692,16 +3700,16 @@ function nr(t, e, o) {
3692
3700
  "stroke-linejoin": "round",
3693
3701
  className: "lucide lucide-eye-off",
3694
3702
  children: [
3695
- /* @__PURE__ */ i.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
3696
- /* @__PURE__ */ i.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
3697
- /* @__PURE__ */ i.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
3698
- /* @__PURE__ */ i.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3703
+ /* @__PURE__ */ a.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
3704
+ /* @__PURE__ */ a.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
3705
+ /* @__PURE__ */ a.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
3706
+ /* @__PURE__ */ a.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
3699
3707
  ]
3700
3708
  }
3701
- ), l = Me(t), u = te(t);
3709
+ ), l = Me(t), d = oe(t);
3702
3710
  if (l === "password") {
3703
- const g = e.password.state[u];
3704
- return /* @__PURE__ */ i.jsxs(
3711
+ const p = e.password.state[d];
3712
+ return /* @__PURE__ */ a.jsxs(
3705
3713
  o,
3706
3714
  {
3707
3715
  variant: "ghost",
@@ -3710,19 +3718,19 @@ function nr(t, e, o) {
3710
3718
  onClick: (c) => {
3711
3719
  c.preventDefault(), c.stopPropagation(), e.password.setState({
3712
3720
  ...e.password.state,
3713
- [u]: !g
3721
+ [d]: !p
3714
3722
  });
3715
3723
  },
3716
3724
  children: [
3717
- g ? a : r,
3718
- /* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
3725
+ p ? i : r,
3726
+ /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
3719
3727
  ]
3720
3728
  }
3721
3729
  );
3722
3730
  } else
3723
3731
  return null;
3724
3732
  }
3725
- function te(t) {
3733
+ function oe(t) {
3726
3734
  const e = {
3727
3735
  ID: "id",
3728
3736
  Username: "username",
@@ -3741,17 +3749,17 @@ function te(t) {
3741
3749
  return Object.keys(e).includes(t.name) ? e[t.name] : t.name;
3742
3750
  }
3743
3751
  function Me(t, e) {
3744
- const o = ["password", "confirm"], r = te(t);
3752
+ const o = ["password", "confirm"], r = oe(t);
3745
3753
  return o.includes(r) && !(e != null && e.hidePassword[r]) ? "password" : "text";
3746
3754
  }
3747
3755
  function or(t) {
3748
3756
  return Object.fromEntries(
3749
- t.filter((e) => Me(e) === "password").map((e) => [te(e), !1])
3757
+ t.filter((e) => Me(e) === "password").map((e) => [oe(e), !1])
3750
3758
  );
3751
3759
  }
3752
3760
  function ar(t) {
3753
3761
  return {
3754
- name: te(t),
3762
+ name: oe(t),
3755
3763
  label: t.label || t.name,
3756
3764
  placeholder: t.placeholder,
3757
3765
  required: t.required,
@@ -3759,21 +3767,24 @@ function ar(t) {
3759
3767
  };
3760
3768
  }
3761
3769
  function ir(t, e) {
3762
- const o = te(e);
3770
+ const o = oe(e);
3763
3771
  let r = t.string();
3764
3772
  return o === "email" && (r = r.email()), e.required || (r = r.optional()), r;
3765
3773
  }
3766
3774
  function rr(t) {
3767
- const e = t.map((r) => [te(r), ""]), o = t.filter((r) => qt(r)).map((r) => [te(r) + "Code", ""]);
3775
+ const e = t.map((r) => [oe(r), ""]), o = t.filter((r) => qt(r)).map((r) => [oe(r) + "Code", ""]);
3768
3776
  return Object.fromEntries([...e, ...o]);
3769
3777
  }
3770
3778
  function qt(t) {
3771
- const e = te(t);
3779
+ const e = oe(t);
3772
3780
  return (e === "email" || e === "phone") && t.rule !== "None";
3773
3781
  }
3774
3782
  function lr(t) {
3775
- var $;
3776
- const { t: e, i18n: o } = Te(), [r, a] = m.useState({
3783
+ return t.visible === !0;
3784
+ }
3785
+ function cr(t) {
3786
+ var y;
3787
+ const { t: e, i18n: o } = Te(), [r, i] = m.useState({
3777
3788
  applicationName: t.applicationName ?? null,
3778
3789
  email: "",
3779
3790
  phone: "",
@@ -3789,220 +3800,244 @@ function lr(t) {
3789
3800
  });
3790
3801
  m.useRef();
3791
3802
  const l = (w) => {
3792
- w !== void 0 && Xe("admin", w).then(
3793
- (b) => {
3794
- if (b.status === "error") {
3795
- G("error", b.msg);
3796
- return;
3797
- }
3798
- f(b.data);
3803
+ w !== void 0 && Xe(
3804
+ "admin",
3805
+ w,
3806
+ t.CLIENT_ID,
3807
+ t.CLIENT_SECRET
3808
+ ).then((x) => {
3809
+ if (x.status === "error") {
3810
+ Y("error", x.msg);
3811
+ return;
3799
3812
  }
3800
- );
3801
- }, u = (w) => {
3802
- It(w).then((b) => {
3803
- if (b.status === "ok") {
3804
- const L = b.data;
3805
- f(L);
3813
+ g(x.data);
3814
+ });
3815
+ }, d = (w) => {
3816
+ It(w).then((x) => {
3817
+ if (x.status === "ok") {
3818
+ const E = x.data;
3819
+ g(E);
3806
3820
  } else
3807
- f(null), a({
3821
+ g(null), i({
3808
3822
  ...r,
3809
- msg: b.msg
3823
+ msg: x.msg
3810
3824
  });
3811
3825
  });
3812
- }, g = () => t.application, c = (w, b) => {
3813
- Nt(w, b).then(
3814
- (L) => {
3815
- if (L.status === "error") {
3816
- G("error", L.msg);
3826
+ }, p = () => t.application, c = (w, x) => {
3827
+ Ft(w, x).then(
3828
+ (E) => {
3829
+ if (E.status === "error") {
3830
+ Y("error", E.msg);
3817
3831
  return;
3818
3832
  }
3819
- a({ ...r, invitation: L.data });
3833
+ i({ ...r, invitation: E.data });
3820
3834
  }
3821
3835
  );
3822
- }, f = (w) => {
3836
+ }, g = (w) => {
3823
3837
  t.onUpdateApplication(w);
3824
3838
  };
3825
3839
  m.useEffect(() => {
3826
- const w = Ft();
3840
+ const w = Nt();
3827
3841
  if (w !== null) {
3828
- const b = window.location.pathname.replace(
3842
+ const x = window.location.pathname.replace(
3829
3843
  "/signup/oauth/authorize",
3830
3844
  "/login/oauth/authorize"
3831
3845
  );
3832
- sessionStorage.setItem("signinUrl", b + window.location.search);
3846
+ sessionStorage.setItem("signinUrl", x + window.location.search);
3833
3847
  }
3834
- if (g() === void 0)
3848
+ if (p() === void 0)
3835
3849
  if (r.applicationName !== null) {
3836
3850
  l(r.applicationName);
3837
- const b = new URLSearchParams(window.location.search);
3838
- if (b.has("invitationCode")) {
3839
- const L = b.get("invitationCode") ?? "";
3840
- a({ ...r, invitationCode: L }), L !== "" && c(
3841
- L,
3851
+ const x = new URLSearchParams(window.location.search);
3852
+ if (x.has("invitationCode")) {
3853
+ const E = x.get("invitationCode") ?? "";
3854
+ i({ ...r, invitationCode: E }), E !== "" && c(
3855
+ E,
3842
3856
  "admin/" + r.applicationName
3843
3857
  );
3844
3858
  }
3845
- } else w !== null ? u(w) : (G(
3859
+ } else w !== null ? d(w) : (Y(
3846
3860
  "error",
3847
3861
  `Unknown application name: ${r.applicationName}`
3848
- ), f(null));
3862
+ ), g(null));
3849
3863
  }, []);
3850
- const h = g();
3851
- return h == null ? null : ($ = h.signupItems) == null ? void 0 : $.map((w, b) => /* @__PURE__ */ i.jsx("div", { children: Xi(h, w, r, a, e) }, b));
3864
+ const h = p();
3865
+ return h == null ? null : (y = h.signupItems) == null ? void 0 : y.map((w, x) => /* @__PURE__ */ a.jsx("div", { children: Xi(
3866
+ h,
3867
+ w,
3868
+ r,
3869
+ i,
3870
+ e,
3871
+ t.CLIENT_ID,
3872
+ t.CLIENT_SECRET
3873
+ ) }, x));
3852
3874
  }
3853
- function pr({
3875
+ function gr({
3854
3876
  applicationName: t,
3855
3877
  casdoorApiRoot: e,
3856
- springmicroApiRoot: o
3878
+ springmicroApiRoot: o,
3879
+ CLIENT_ID: r,
3880
+ CLIENT_SECRET: i
3857
3881
  }) {
3858
- R.casdoor = e, o && (R.springmicro = o);
3859
- const [r, a] = m.useState({ application: null }), l = () => {
3860
- Xe("admin", t).then(
3861
- (u) => {
3862
- if (console.log(u), u.status === "error") {
3863
- G("error", u.msg);
3864
- return;
3865
- }
3866
- a({
3867
- application: u.data
3868
- });
3882
+ N.casdoor = e, o && (N.springmicro = o);
3883
+ const [l, d] = m.useState({ application: null }), p = () => {
3884
+ Xe(
3885
+ "admin",
3886
+ t,
3887
+ r,
3888
+ i
3889
+ ).then((c) => {
3890
+ if (console.log(c), c.status === "error") {
3891
+ Y("error", c.msg);
3892
+ return;
3869
3893
  }
3870
- );
3894
+ d({
3895
+ application: c.data
3896
+ });
3897
+ });
3871
3898
  };
3872
3899
  return m.useEffect(() => {
3873
- l();
3874
- }, []), r.application === void 0 ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsx(_n, { i18n: Q, children: /* @__PURE__ */ i.jsx(
3875
- lr,
3900
+ p();
3901
+ }, []), l.application === void 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(_n, { i18n: Q, children: /* @__PURE__ */ a.jsx(
3902
+ cr,
3876
3903
  {
3877
- application: r.application,
3878
- onUpdateApplication: (u) => {
3879
- a({
3880
- application: u
3904
+ application: l.application,
3905
+ onUpdateApplication: (c) => {
3906
+ d({
3907
+ application: c
3881
3908
  });
3882
- }
3909
+ },
3910
+ CLIENT_ID: r,
3911
+ CLIENT_SECRET: i
3883
3912
  }
3884
3913
  ) });
3885
3914
  }
3886
3915
  const Yt = m.createContext(
3887
3916
  void 0
3888
3917
  );
3889
- function gr({
3918
+ function hr({
3890
3919
  applicationName: t,
3891
3920
  casdoorApiRoot: e,
3892
3921
  springmicroApiRoot: o,
3893
- children: r
3922
+ CLIENT_ID: r,
3923
+ CLIENT_SECRET: i,
3924
+ children: l
3894
3925
  }) {
3895
- Te(), R.casdoor = e, o && (R.springmicro = o);
3896
- const [a, l] = m.useState({ application: null }), [u, g] = m.useState({}), c = () => {
3897
- Xe("admin", t).then(
3898
- (E) => {
3899
- if (console.log(E), E.status === "error") {
3900
- G("error", E.msg);
3901
- return;
3902
- }
3903
- l({
3904
- application: E.data
3905
- });
3926
+ Te(), N.casdoor = e, o && (N.springmicro = o);
3927
+ const [d, p] = m.useState({ application: null }), [c, g] = m.useState({}), h = () => {
3928
+ Xe(
3929
+ "admin",
3930
+ t,
3931
+ r,
3932
+ i
3933
+ ).then((v) => {
3934
+ if (console.log(v), v.status === "error") {
3935
+ Y("error", v.msg);
3936
+ return;
3906
3937
  }
3907
- );
3908
- }, f = (E) => {
3909
- l({
3910
- application: E
3938
+ p({
3939
+ application: v.data
3940
+ });
3941
+ });
3942
+ }, y = (v) => {
3943
+ p({
3944
+ application: v
3911
3945
  });
3912
- }, h = (E, _) => {
3913
- Nt(E, _).then(
3914
- (k) => {
3915
- if (k.status === "error") {
3916
- G("error", k.msg);
3946
+ }, w = (v, O) => {
3947
+ Ft(v, O).then(
3948
+ (R) => {
3949
+ if (R.status === "error") {
3950
+ Y("error", R.msg);
3917
3951
  return;
3918
3952
  }
3919
- l({ ...a, invitation: k.data });
3953
+ p({ ...d, invitation: R.data });
3920
3954
  }
3921
3955
  );
3922
- }, $ = (E) => {
3923
- It(E).then((_) => {
3924
- if (_.status === "ok") {
3925
- const k = _.data;
3926
- f(k);
3956
+ }, x = (v) => {
3957
+ It(v).then((O) => {
3958
+ if (O.status === "ok") {
3959
+ const R = O.data;
3960
+ y(R);
3927
3961
  } else
3928
- f(null), l({
3929
- ...a,
3930
- msg: _.msg
3962
+ y(null), p({
3963
+ ...d,
3964
+ msg: O.msg
3931
3965
  });
3932
3966
  });
3933
- }, w = (E, _) => nr(
3934
- E,
3967
+ }, E = (v, O) => nr(
3968
+ v,
3935
3969
  {
3936
3970
  password: {
3937
- state: u,
3971
+ state: c,
3938
3972
  setState: g
3939
3973
  }
3940
3974
  },
3941
- _
3942
- ), b = (E) => Me(E, {
3943
- hidePassword: u
3944
- }), L = Dt, F = Ut;
3975
+ O
3976
+ ), H = (v) => Me(v, {
3977
+ hidePassword: c
3978
+ }), Z = Dt, z = Ut;
3945
3979
  return m.useEffect(() => {
3946
- c();
3980
+ h();
3947
3981
  }, []), m.useEffect(() => {
3948
- a.application && g(
3949
- or(a.application.signupItems)
3982
+ d.application && g(
3983
+ or(d.application.signupItems)
3950
3984
  );
3951
- }, [a.application]), m.useEffect(() => {
3952
- const E = Ft();
3953
- if (E !== null) {
3954
- const _ = window.location.pathname.replace(
3985
+ }, [d.application]), m.useEffect(() => {
3986
+ const v = Nt();
3987
+ if (v !== null) {
3988
+ const O = window.location.pathname.replace(
3955
3989
  "/signup/oauth/authorize",
3956
3990
  "/login/oauth/authorize"
3957
3991
  );
3958
- sessionStorage.setItem("signinUrl", _ + window.location.search);
3959
- }
3960
- if (a.application === void 0)
3961
- if (a.applicationName !== null) {
3962
- c();
3963
- const _ = new URLSearchParams(window.location.search);
3964
- if (_.has("invitationCode")) {
3965
- const k = _.get("invitationCode") ?? "";
3966
- l({ ...a, invitationCode: k }), k !== "" && h(
3967
- k,
3968
- "admin/" + a.applicationName
3992
+ sessionStorage.setItem("signinUrl", O + window.location.search);
3993
+ }
3994
+ if (d.application === void 0)
3995
+ if (d.applicationName !== null) {
3996
+ h();
3997
+ const O = new URLSearchParams(window.location.search);
3998
+ if (O.has("invitationCode")) {
3999
+ const R = O.get("invitationCode") ?? "";
4000
+ p({ ...d, invitationCode: R }), R !== "" && w(
4001
+ R,
4002
+ "admin/" + d.applicationName
3969
4003
  );
3970
4004
  }
3971
- } else E !== null ? $(E) : (G(
4005
+ } else v !== null ? x(v) : (Y(
3972
4006
  "error",
3973
- `Unknown application name: ${a.applicationName}`
3974
- ), f(null));
3975
- }, []), a.application === void 0 || a.application === null ? null : /* @__PURE__ */ i.jsx(
4007
+ `Unknown application name: ${d.applicationName}`
4008
+ ), y(null));
4009
+ }, []), d.application === void 0 || d.application === null ? null : /* @__PURE__ */ a.jsx(
3976
4010
  Yt.Provider,
3977
4011
  {
3978
4012
  value: {
3979
- application: a.application,
4013
+ application: d.application,
3980
4014
  getDefaultValues: rr,
3981
4015
  getFormProps: ar,
3982
- icon: w,
4016
+ icon: E,
3983
4017
  getZod: ir,
3984
- getKey: te,
3985
- type: b,
3986
- sendCode: L,
4018
+ getKey: oe,
4019
+ type: H,
4020
+ sendCode: Z,
3987
4021
  requiresCode: qt,
3988
- getCaptcha: F
4022
+ getCaptcha: z,
4023
+ isVisible: lr
3989
4024
  },
3990
- children: r
4025
+ children: l
3991
4026
  }
3992
4027
  );
3993
4028
  }
3994
- const hr = () => {
4029
+ const mr = () => {
3995
4030
  const t = m.useContext(Yt);
3996
4031
  if (!t)
3997
4032
  throw new Error("useSignUp must be used within a SignUpProvider");
3998
4033
  return t;
3999
4034
  };
4000
4035
  export {
4001
- pr as S,
4036
+ gr as S,
4002
4037
  Ln as a,
4003
- fr as b,
4004
- gr as c,
4038
+ pr as b,
4039
+ hr as c,
4005
4040
  Kn as g,
4006
- G as s,
4007
- hr as u
4041
+ Y as s,
4042
+ mr as u
4008
4043
  };