@slashid/jump-page 0.0.8-package.3 → 0.0.8-package.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package/main.js CHANGED
@@ -1197,7 +1197,63 @@ function Xe({
1197
1197
  }
1198
1198
  );
1199
1199
  }
1200
- function Pr() {
1200
+ const z = {
1201
+ "footer.text": "Top-tier security by SlashID",
1202
+ "initial.title": "Logging you in...",
1203
+ "initial.details": "Please follow the on-screen instructions.",
1204
+ "recover.password.title": "Reset password",
1205
+ "recover.password.details": "Enter your new password.",
1206
+ "recover.password.input.password.label": "Password",
1207
+ "recover.password.input.confirmPassword.label": "Confirm password",
1208
+ "recover.password.input.placeholder": "Type your new password",
1209
+ "recover.password.submit": "Reset password",
1210
+ "recover.password.validation.passwordsDoNotMatch": "Passwords do not match",
1211
+ "recover.password.validation.length": "8-256 characters required",
1212
+ "recover.password.validation.password_variants": "Contains word 'password'",
1213
+ "recover.password.validation.admin_variants": "Contains word 'admin'",
1214
+ "recover.password.validation.user_variants": "Contains word 'user'",
1215
+ "recover.password.validation.alphanumeric_sequences_1": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1216
+ "recover.password.validation.alphanumeric_sequences_2": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1217
+ "recover.password.validation.numeric_sequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1218
+ "recover.password.validation.numeric_subsequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1219
+ "recover.password.validation.numeric_sequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1220
+ "recover.password.validation.numeric_subsequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1221
+ "recover.password.validation.common_password_xkcd": "Common password",
1222
+ "success.title": "All done!",
1223
+ "success.details": "Please return to the website.",
1224
+ "error.title": "Something went wrong...",
1225
+ "error.detail": "Please log in again."
1226
+ }, Pr = {
1227
+ en: z,
1228
+ ja: {
1229
+ "footer.text": z["footer.text"],
1230
+ "initial.title": "ログイン処理を行っています。",
1231
+ "initial.details": "処理完了後、画面は自動で切り替わります。",
1232
+ "success.title": "認証が完了しました!",
1233
+ "success.details": "このページを閉じて、元のページへ戻ってください。",
1234
+ "recover.password.title": z["recover.password.title"],
1235
+ "recover.password.details": z["recover.password.details"],
1236
+ "recover.password.input.password.label": z["recover.password.input.password.label"],
1237
+ "recover.password.input.confirmPassword.label": z["recover.password.input.confirmPassword.label"],
1238
+ "recover.password.input.placeholder": z["recover.password.input.placeholder"],
1239
+ "recover.password.submit": z["recover.password.submit"],
1240
+ "recover.password.validation.passwordsDoNotMatch": z["recover.password.validation.passwordsDoNotMatch"],
1241
+ "recover.password.validation.length": z["recover.password.validation.length"],
1242
+ "recover.password.validation.password_variants": z["recover.password.validation.password_variants"],
1243
+ "recover.password.validation.admin_variants": z["recover.password.validation.admin_variants"],
1244
+ "recover.password.validation.user_variants": z["recover.password.validation.user_variants"],
1245
+ "recover.password.validation.alphanumeric_sequences_1": z["recover.password.validation.alphanumeric_sequences_1"],
1246
+ "recover.password.validation.alphanumeric_sequences_2": z["recover.password.validation.alphanumeric_sequences_2"],
1247
+ "recover.password.validation.numeric_sequences_ascending": z["recover.password.validation.numeric_sequences_ascending"],
1248
+ "recover.password.validation.numeric_subsequences_ascending": z["recover.password.validation.numeric_subsequences_ascending"],
1249
+ "recover.password.validation.numeric_sequences_descending": z["recover.password.validation.numeric_sequences_descending"],
1250
+ "recover.password.validation.numeric_subsequences_descending": z["recover.password.validation.numeric_subsequences_descending"],
1251
+ "recover.password.validation.common_password_xkcd": z["recover.password.validation.common_password_xkcd"],
1252
+ "error.title": z["error.title"],
1253
+ "error.detail": "再度ログインをしてください。"
1254
+ }
1255
+ }, Tr = (a) => (r) => Pr[a][r];
1256
+ function Nr() {
1201
1257
  return /* @__PURE__ */ s.jsx(Me, { children: /* @__PURE__ */ s.jsx(oa, {}) });
1202
1258
  }
1203
1259
  function Zr() {
@@ -1206,11 +1262,11 @@ function Zr() {
1206
1262
  /* @__PURE__ */ s.jsx(Xe, { width: "75%", height: 24 }),
1207
1263
  /* @__PURE__ */ s.jsx(Xe, { width: "50%", height: 16 })
1208
1264
  ] }),
1209
- /* @__PURE__ */ s.jsx(Pr, {})
1265
+ /* @__PURE__ */ s.jsx(Nr, {})
1210
1266
  ] });
1211
1267
  }
1212
1268
  const ue = (a) => /* @__PURE__ */ s.jsx(je, { ...a });
1213
- function Tr({ type: a }) {
1269
+ function Ar({ type: a }) {
1214
1270
  return /* @__PURE__ */ s.jsx(Me, { variant: a === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ s.jsx(lr, {}) });
1215
1271
  }
1216
1272
  function Gr({ type: a }) {
@@ -1233,10 +1289,10 @@ function Gr({ type: a }) {
1233
1289
  }
1234
1290
  )
1235
1291
  ] }),
1236
- /* @__PURE__ */ s.jsx(Tr, { type: a })
1292
+ /* @__PURE__ */ s.jsx(Ar, { type: a })
1237
1293
  ] });
1238
1294
  }
1239
- const Nr = () => /* @__PURE__ */ s.jsx(Me, { children: /* @__PURE__ */ s.jsx(
1295
+ const Dr = () => /* @__PURE__ */ s.jsx(Me, { children: /* @__PURE__ */ s.jsx(
1240
1296
  "svg",
1241
1297
  {
1242
1298
  width: "21",
@@ -1273,66 +1329,11 @@ function Kr() {
1273
1329
  variant: { color: "contrast", weight: "semibold" }
1274
1330
  }
1275
1331
  ),
1276
- /* @__PURE__ */ s.jsx(Nr, {})
1332
+ /* @__PURE__ */ s.jsx(Dr, {})
1277
1333
  ] });
1278
1334
  }
1279
- var Ar = "_8vopmj0", Dr = "_8vopmj2";
1280
- const z = {
1281
- "footer.text": "Top-tier security by SlashID",
1282
- "initial.title": "Logging you in...",
1283
- "initial.details": "Please follow the on-screen instructions.",
1284
- "recover.password.title": "Reset password",
1285
- "recover.password.details": "Enter your new password.",
1286
- "recover.password.input.password.label": "Password",
1287
- "recover.password.input.confirmPassword.label": "Confirm password",
1288
- "recover.password.input.placeholder": "Type your new password",
1289
- "recover.password.submit": "Reset password",
1290
- "recover.password.validation.passwordsDoNotMatch": "Passwords do not match",
1291
- "recover.password.validation.length": "8-256 characters required",
1292
- "recover.password.validation.password_variants": "Contains word 'password'",
1293
- "recover.password.validation.admin_variants": "Contains word 'admin'",
1294
- "recover.password.validation.user_variants": "Contains word 'user'",
1295
- "recover.password.validation.alphanumeric_sequences_1": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1296
- "recover.password.validation.alphanumeric_sequences_2": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1297
- "recover.password.validation.numeric_sequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1298
- "recover.password.validation.numeric_subsequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1299
- "recover.password.validation.numeric_sequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1300
- "recover.password.validation.numeric_subsequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1301
- "recover.password.validation.common_password_xkcd": "Common password",
1302
- "success.title": "All done!",
1303
- "success.details": "Please return to the website.",
1304
- "error.title": "Something went wrong...",
1305
- "error.detail": "Please log in again."
1306
- }, Lr = {
1307
- en: z,
1308
- ja: {
1309
- "footer.text": z["footer.text"],
1310
- "initial.title": "ログイン処理を行っています。",
1311
- "initial.details": "処理完了後、画面は自動で切り替わります。",
1312
- "success.title": "認証が完了しました!",
1313
- "success.details": "このページを閉じて、元のページへ戻ってください。",
1314
- "recover.password.title": z["recover.password.title"],
1315
- "recover.password.details": z["recover.password.details"],
1316
- "recover.password.input.password.label": z["recover.password.input.password.label"],
1317
- "recover.password.input.confirmPassword.label": z["recover.password.input.confirmPassword.label"],
1318
- "recover.password.input.placeholder": z["recover.password.input.placeholder"],
1319
- "recover.password.submit": z["recover.password.submit"],
1320
- "recover.password.validation.passwordsDoNotMatch": z["recover.password.validation.passwordsDoNotMatch"],
1321
- "recover.password.validation.length": z["recover.password.validation.length"],
1322
- "recover.password.validation.password_variants": z["recover.password.validation.password_variants"],
1323
- "recover.password.validation.admin_variants": z["recover.password.validation.admin_variants"],
1324
- "recover.password.validation.user_variants": z["recover.password.validation.user_variants"],
1325
- "recover.password.validation.alphanumeric_sequences_1": z["recover.password.validation.alphanumeric_sequences_1"],
1326
- "recover.password.validation.alphanumeric_sequences_2": z["recover.password.validation.alphanumeric_sequences_2"],
1327
- "recover.password.validation.numeric_sequences_ascending": z["recover.password.validation.numeric_sequences_ascending"],
1328
- "recover.password.validation.numeric_subsequences_ascending": z["recover.password.validation.numeric_subsequences_ascending"],
1329
- "recover.password.validation.numeric_sequences_descending": z["recover.password.validation.numeric_sequences_descending"],
1330
- "recover.password.validation.numeric_subsequences_descending": z["recover.password.validation.numeric_subsequences_descending"],
1331
- "recover.password.validation.common_password_xkcd": z["recover.password.validation.common_password_xkcd"],
1332
- "error.title": z["error.title"],
1333
- "error.detail": "再度ログインをしてください。"
1334
- }
1335
- }, Ir = (a) => (r) => Lr[a][r], Fr = {
1335
+ var Lr = "_8vopmj0", Ir = "_8vopmj2";
1336
+ const Fr = {
1336
1337
  logo: /* @__PURE__ */ s.jsx(ur, {}),
1337
1338
  language: "en",
1338
1339
  state: "initial",
@@ -1342,7 +1343,7 @@ const z = {
1342
1343
  ), ua = () => Ia(qr);
1343
1344
  function Vr() {
1344
1345
  const { language: a } = ua();
1345
- return aa(() => Ir(a), [a]);
1346
+ return aa(() => Tr(a), [a]);
1346
1347
  }
1347
1348
  function $r(a) {
1348
1349
  return `recover.password.validation.${a.failedRules[0].name}`;
@@ -1362,7 +1363,7 @@ function Wr({
1362
1363
  } : {};
1363
1364
  }
1364
1365
  function Yr({ message: a }) {
1365
- return /* @__PURE__ */ s.jsx("span", { className: Dr, children: a });
1366
+ return /* @__PURE__ */ s.jsx("span", { className: Ir, children: a });
1366
1367
  }
1367
1368
  function Jr() {
1368
1369
  const a = Vr(), { sdk: r } = ua(), [o, n] = ae(""), [i, C] = ae(""), [v, b] = ae(null), [f, g] = ae("initial");
@@ -1398,7 +1399,7 @@ function Jr() {
1398
1399
  /* @__PURE__ */ s.jsx(je, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "recover.password.details" })
1399
1400
  ] }),
1400
1401
  /* @__PURE__ */ s.jsxs("form", { onSubmit: w, children: [
1401
- /* @__PURE__ */ s.jsxs("div", { className: Ar, children: [
1402
+ /* @__PURE__ */ s.jsxs("div", { className: Lr, children: [
1402
1403
  /* @__PURE__ */ s.jsx(
1403
1404
  Ge,
1404
1405
  {
@@ -1444,6 +1445,7 @@ function Jr() {
1444
1445
  }
1445
1446
  export {
1446
1447
  Gr as Error,
1448
+ Pr as I18N,
1447
1449
  Zr as Initial,
1448
1450
  Jr as Recover,
1449
1451
  Kr as Success,
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/clsx/dist/clsx.mjs","../node_modules/@slashid/react-primitives/src/browser/is-browser.ts","../node_modules/@slashid/react-primitives/src/components/theme-root/index.tsx","../node_modules/@slashid/react-primitives/src/components/spinner/spinner.tsx","../node_modules/@slashid/react-primitives/src/components/button/index.tsx","../node_modules/@slashid/react-primitives/src/components/input/input.base.tsx","../node_modules/@slashid/react-primitives/src/components/icon/dark-mode.tsx","../node_modules/@slashid/react-primitives/src/components/icon/exclamation.tsx","../node_modules/@slashid/react-primitives/src/components/icon/eye.tsx","../node_modules/@slashid/react-primitives/src/components/icon/eye-reveal.tsx","../node_modules/@slashid/react-primitives/src/components/icon/logo.tsx","../node_modules/@slashid/react-primitives/src/components/input/input.password.tsx","../node_modules/@slashid/react-primitives/src/components/spinner/circle.tsx","../node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js","../node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-c8550e00.esm.js","../node_modules/@vanilla-extract/sprinkles/createRuntimeSprinkles/dist/vanilla-extract-sprinkles-createRuntimeSprinkles.esm.js","../node_modules/@slashid/react-primitives/src/components/stack/stack.tsx","../node_modules/@slashid/react-primitives/src/components/text/text-context.tsx","../node_modules/@slashid/react-primitives/src/components/text/use-text.ts","../node_modules/@slashid/react-primitives/src/components/text/interpolation.ts","../node_modules/@slashid/react-primitives/src/components/text/index.tsx","../node_modules/@slashid/react-primitives/src/components/skeleton/index.tsx","../src/components/flow/flow.loader.tsx","../src/components/flow/flow.initial.tsx","../src/components/text/text.component.tsx","../src/components/flow/flow.error.tsx","../src/components/flow/flow.success.tsx","../src/domain/i18n.ts","../src/components/app/app.context.tsx","../src/components/text/use-i18n.ts","../src/components/flow/flow.recover.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Helper function to check if current runtime is a browser, mainly for SSR.\n *\n * @returns boolean\n */\nexport function isBrowser(): boolean {\n return typeof window !== \"undefined\" && globalThis === window;\n}\n","import { clsx } from \"clsx\";\nimport {\n THEME_ROOT_CLASS_NAME,\n Theme,\n autoThemeVars,\n darkThemeVars,\n lightThemeVars,\n themeClass,\n} from \"../../theme/theme.css\";\nimport { useLayoutEffect } from \"react\";\nimport React from \"react\";\nimport { isBrowser } from \"../../browser/is-browser\";\n\nexport type ThemeProps = {\n theme?: Theme;\n className?: string;\n};\n\ntype Props = {\n children: React.ReactNode;\n theme?: ThemeProps[\"theme\"];\n className?: ThemeProps[\"className\"];\n};\n\nfunction createClassNames({ theme, className }: ThemeProps) {\n return clsx(\n THEME_ROOT_CLASS_NAME,\n `${THEME_ROOT_CLASS_NAME}__${theme}`,\n themeClass,\n {\n [darkThemeVars]: theme === \"dark\",\n [autoThemeVars]: theme === \"auto\",\n [lightThemeVars]: theme === \"light\",\n },\n className\n );\n}\n\nfunction setThemeRootClassNames({ theme, className }: ThemeProps) {\n const themeRootClassNames = createClassNames({ theme, className });\n\n document.body.classList.add(...themeRootClassNames.split(\" \"));\n}\n\n/**\n * We cannot rely on useLayoutEffect to set the correct class names on the <body> element server side.\n */\nexport const ServerThemeRoot = ({ children }: Props) => {\n return <div className={createClassNames({ theme: \"light\" })}>{children}</div>;\n};\n\nconst ClientThemeRoot = ({ children, theme = \"light\", className }: Props) => {\n // used to fix a hydration mismatch between server and client side\n const [hydrated, setHydrated] = React.useState(false);\n\n // this effect runs client side only\n useLayoutEffect(() => {\n if (!hydrated) {\n setHydrated(true);\n }\n }, [className, hydrated, theme]);\n\n useLayoutEffect(() => {\n if (hydrated) {\n setThemeRootClassNames({ theme, className });\n }\n }, [className, hydrated, theme]);\n\n return hydrated ? (\n <>{children}</>\n ) : (\n <ServerThemeRoot>{children}</ServerThemeRoot>\n );\n};\n\n/**\n * This component will apply the necessary class names to the <body> element.\n * That way the child components on all levels can use the theming properties.\n * This also helps with any components portaling out of the SlashIDProvider hierarchy.\n */\nexport function ThemeRoot({ children, theme = \"light\", className }: Props) {\n if (!isBrowser()) {\n return <ServerThemeRoot>{children}</ServerThemeRoot>;\n }\n\n return (\n <ClientThemeRoot theme={theme} className={className}>\n {children}\n </ClientThemeRoot>\n );\n}\n","import clsx from \"clsx\";\nimport * as styles from \"./spinner.css\";\n\ntype Props = {\n className?: string;\n variant?: keyof typeof styles.spinnerVariants;\n};\n\nexport const Spinner = ({ className, variant = \"default\" }: Props) => (\n <div className={clsx(styles.spinnerVariants[variant], className)} />\n);\n","import { clsx } from \"clsx\";\nimport { ReactNode, forwardRef } from \"react\";\nimport { Spinner } from \"../spinner/spinner\";\nimport * as styles from \"./button.css\";\n\ntype Props = {\n children: ReactNode;\n onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n className?: string;\n type?: \"button\" | \"submit\";\n variant?: keyof typeof styles.button;\n icon?: ReactNode;\n testId?: string;\n disabled?: boolean;\n loading?: boolean;\n};\n\nexport const Button = forwardRef<HTMLButtonElement, Props>(\n (\n {\n children,\n onClick,\n className,\n type = \"button\",\n variant = \"primary\",\n testId,\n icon,\n disabled,\n loading = false,\n },\n forwardedRef\n ) => {\n return (\n <button\n ref={forwardedRef}\n data-testid={testId}\n type={type}\n disabled={disabled}\n className={clsx(\n \"sid-button\",\n `sid-button--${variant}`,\n styles.button[variant],\n { [styles.buttonDisabled]: disabled },\n className\n )}\n onClick={onClick}\n >\n {loading ? (\n <Spinner variant=\"short\" className={styles.spinner[variant]} />\n ) : (\n <>\n {icon ? <i className={styles.icon}>{icon}</i> : null}\n {children}\n </>\n )}\n </button>\n );\n }\n);\n\nButton.displayName = \"Button\";\n","import { ChangeEventHandler, useCallback } from \"react\";\n\nimport * as styles from \"./input.css\";\n\nexport type BaseInputProps = {\n id: string;\n name: string;\n label: string;\n placeholder?: string;\n autoComplete?: string;\n className?: string;\n type?: \"text\" | \"email\" | \"tel\" | \"password\";\n value: string;\n onChange: ChangeEventHandler<HTMLInputElement>;\n};\n\nexport const BaseInput: React.FC<BaseInputProps> = ({\n id,\n name,\n label,\n placeholder = \"\",\n autoComplete = \"\",\n value,\n onChange,\n type = \"text\",\n}) => {\n const handleChange = useCallback<ChangeEventHandler<HTMLInputElement>>(\n (e) => {\n onChange(e);\n },\n [onChange]\n );\n\n return (\n <div className={styles.inputHost[type]}>\n <label htmlFor={id} className={styles.label}>\n {label}\n </label>\n <input\n type={type}\n id={id}\n name={name}\n className={styles.input}\n placeholder={placeholder}\n value={value}\n onChange={handleChange}\n autoComplete={autoComplete}\n />\n </div>\n );\n};\n","export const DARK_MODE = `\n@media (prefers-color-scheme: dark) {\n .sid-theme-root__auto path { fill: white; }\n}\n\n.sid-theme-root__dark path { fill: white; }\n`;\n","export function Exclamation() {\n return (\n <svg\n width=\"5\"\n height=\"20\"\n viewBox=\"0 0 5 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.5 0C3.32843 1.19209e-07 4 0.671573 4 1.5L4 11.5C4 12.3284 3.32843 13 2.5 13C1.67157 13 1 12.3284 1 11.5L1 1.5C1 0.671573 1.67157 -1.19209e-07 2.5 0Z\"\n fill=\"white\"\n />\n <path\n d=\"M4.5 18C4.5 19.1046 3.60457 20 2.5 20C1.39543 20 0.5 19.1046 0.5 18C0.5 16.8954 1.39543 16 2.5 16C3.60457 16 4.5 16.8954 4.5 18Z\"\n fill=\"white\"\n />\n </svg>\n );\n}\n","import { DARK_MODE } from \"./dark-mode\";\n\nexport const Eye = () => (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <style>{DARK_MODE}</style>\n <g clipPath=\"url(#clip0_2610_9920)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z\"\n fill=\"#142049\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2610_9920\">\n <rect width=\"16\" height=\"16\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import { DARK_MODE } from \"./dark-mode\";\n\nexport const EyeReveal = () => (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <style>{DARK_MODE}</style>\n <g clipPath=\"url(#clip0_2610_9933)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z\"\n fill=\"#142049\"\n />\n <path\n d=\"M2.34314 2.34315L13.6568 13.6569\"\n stroke=\"#142049\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2610_9933\">\n <rect width=\"16\" height=\"16\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import { DARK_MODE } from \"./dark-mode\";\n\nexport const Logo = () => (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <style>{DARK_MODE}</style>\n <path d=\"M12.686 10L2 30.228H5.198L15.884 10H12.686Z\" fill=\"#2A6AFF\"></path>\n <path\n d=\"M19.7923 15.694C20.9373 15.694 21.8723 14.732 21.8723 13.588C21.8723 12.444 20.9373 11.482 19.7923 11.482C18.6223 11.482 17.6873 12.444 17.6873 13.588C17.6873 14.732 18.6233 15.694 19.7933 15.694H19.7923ZM18.0773 17.514V30.228H21.4573V17.514H18.0773ZM34.1883 10V18.502C33.172 17.6398 31.8809 17.1695 30.5483 17.176C26.8563 17.176 24.0743 20.14 24.0743 23.884C24.0743 27.628 26.8563 30.592 30.5483 30.592C32.0823 30.592 33.4343 30.02 34.4483 29.032V30.228H37.5683V10H34.1883ZM30.9383 27.42C28.9883 27.42 27.5583 25.912 27.5583 23.884C27.5583 21.856 28.9883 20.348 30.9383 20.348C32.8883 20.348 34.3183 21.856 34.3183 23.884C34.3183 25.912 32.8883 27.42 30.9383 27.42Z\"\n fill=\"#142049\"\n ></path>\n </svg>\n);\n","import { clsx } from \"clsx\";\nimport { BaseInput, BaseInputProps } from \"./input.base\";\n\nimport * as styles from \"./input.css\";\nimport { useState } from \"react\";\nimport { Eye, EyeReveal } from \"../icon\";\n\nexport type PasswordInputProps = Omit<BaseInputProps, \"type\"> & {\n error?: boolean;\n};\n\nexport const PasswordInput: React.FC<PasswordInputProps> = (props) => {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <div\n className={clsx(\n \"sid-input\",\n `sid-input--password`,\n styles.host,\n props.error && styles.error,\n props.className\n )}\n >\n <BaseInput {...props} type={showPassword ? \"text\" : \"password\"} />\n <button\n tabIndex={-1}\n className={styles.passwordRevealButton}\n type=\"button\"\n onClick={() => setShowPassword(!showPassword)}\n >\n {showPassword ? <EyeReveal /> : <Eye />}\n </button>\n </div>\n );\n};\n","import { clsx } from \"clsx\";\nimport { ReactNode } from \"react\";\nimport * as styles from \"./circle.css\";\n\ntype Variant = \"blue\" | \"red\";\n\ntype Props = {\n className?: string;\n variant?: Variant;\n shouldAnimate?: boolean;\n children: ReactNode;\n};\n\nexport const Circle: React.FC<Props> = ({\n children,\n className,\n variant = \"blue\",\n shouldAnimate = true,\n}) => (\n <div className={clsx(styles.background, className)}>\n <div\n className={clsx(styles.outerCircleVariants[variant], {\n [styles.outerCircleWithAnimation]: shouldAnimate,\n })}\n />\n <div\n className={clsx(styles.middleCircleVariants[variant], {\n [styles.middleCircleWithAnimation]: shouldAnimate,\n })}\n />\n <div\n className={clsx(styles.innerCircleVariants[variant], {\n [styles.innerCircleWithAnimation]: shouldAnimate,\n })}\n />\n <div className={styles.content}>{children}</div>\n </div>\n);\n","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nvar shouldApplyCompound = (compoundCheck, selections, defaultVariants) => {\n for (var key of Object.keys(compoundCheck)) {\n var _selections$key;\n\n if (compoundCheck[key] !== ((_selections$key = selections[key]) !== null && _selections$key !== void 0 ? _selections$key : defaultVariants[key])) {\n return false;\n }\n }\n\n return true;\n};\n\nvar createRuntimeFn = config => options => {\n var className = config.defaultClassName;\n\n var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);\n\n for (var variantName in selections) {\n var _selections$variantNa;\n\n var variantSelection = (_selections$variantNa = selections[variantName]) !== null && _selections$variantNa !== void 0 ? _selections$variantNa : config.defaultVariants[variantName];\n\n if (variantSelection != null) {\n var selection = variantSelection;\n\n if (typeof selection === 'boolean') {\n // @ts-expect-error\n selection = selection === true ? 'true' : 'false';\n }\n\n var selectionClassName = // @ts-expect-error\n config.variantClassNames[variantName][selection];\n\n if (selectionClassName) {\n className += ' ' + selectionClassName;\n }\n }\n }\n\n for (var [compoundCheck, compoundClassName] of config.compoundVariants) {\n if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) {\n className += ' ' + compoundClassName;\n }\n }\n\n return className;\n};\n\nexport { createRuntimeFn };\n","function _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\n\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\n\nvar createSprinkles = composeStyles => function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var sprinklesStyles = Object.assign({}, ...args.map(a => a.styles));\n var sprinklesKeys = Object.keys(sprinklesStyles);\n var shorthandNames = sprinklesKeys.filter(property => 'mappings' in sprinklesStyles[property]);\n var sprinklesFn = props => {\n var classNames = [];\n var shorthands = {};\n var nonShorthands = _objectSpread2({}, props);\n var hasShorthands = false;\n for (var shorthand of shorthandNames) {\n var value = props[shorthand];\n if (value != null) {\n var sprinkle = sprinklesStyles[shorthand];\n hasShorthands = true;\n for (var propMapping of sprinkle.mappings) {\n shorthands[propMapping] = value;\n if (nonShorthands[propMapping] == null) {\n delete nonShorthands[propMapping];\n }\n }\n }\n }\n var finalProps = hasShorthands ? _objectSpread2(_objectSpread2({}, shorthands), nonShorthands) : props;\n var _loop = function _loop() {\n var propValue = finalProps[prop];\n var sprinkle = sprinklesStyles[prop];\n try {\n if (sprinkle.mappings) {\n // Skip shorthands\n return \"continue\";\n }\n if (typeof propValue === 'string' || typeof propValue === 'number') {\n if (process.env.NODE_ENV !== 'production') {\n if (!sprinkle.values[propValue].defaultClass) {\n throw new Error();\n }\n }\n classNames.push(sprinkle.values[propValue].defaultClass);\n } else if (Array.isArray(propValue)) {\n for (var responsiveIndex = 0; responsiveIndex < propValue.length; responsiveIndex++) {\n var responsiveValue = propValue[responsiveIndex];\n if (responsiveValue != null) {\n var conditionName = sprinkle.responsiveArray[responsiveIndex];\n if (process.env.NODE_ENV !== 'production') {\n if (!sprinkle.values[responsiveValue].conditions[conditionName]) {\n throw new Error();\n }\n }\n classNames.push(sprinkle.values[responsiveValue].conditions[conditionName]);\n }\n }\n } else {\n for (var _conditionName in propValue) {\n // Conditional style\n var _value = propValue[_conditionName];\n if (_value != null) {\n if (process.env.NODE_ENV !== 'production') {\n if (!sprinkle.values[_value].conditions[_conditionName]) {\n throw new Error();\n }\n }\n classNames.push(sprinkle.values[_value].conditions[_conditionName]);\n }\n }\n }\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n class SprinklesError extends Error {\n constructor(message) {\n super(message);\n this.name = 'SprinklesError';\n }\n }\n var format = v => typeof v === 'string' ? \"\\\"\".concat(v, \"\\\"\") : v;\n var invalidPropValue = (prop, value, possibleValues) => {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no value \").concat(format(value), \". Possible values are \").concat(Object.keys(possibleValues).map(format).join(', ')));\n };\n if (!sprinkle) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" is not a valid sprinkle\"));\n }\n if (typeof propValue === 'string' || typeof propValue === 'number') {\n if (!(propValue in sprinkle.values)) {\n invalidPropValue(prop, propValue, sprinkle.values);\n }\n if (!sprinkle.values[propValue].defaultClass) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no default condition. You must specify which conditions to target explicitly. Possible options are \").concat(Object.keys(sprinkle.values[propValue].conditions).map(format).join(', ')));\n }\n }\n if (typeof propValue === 'object') {\n if (!('conditions' in sprinkle.values[Object.keys(sprinkle.values)[0]])) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" is not a conditional property\"));\n }\n if (Array.isArray(propValue)) {\n if (!('responsiveArray' in sprinkle)) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" does not support responsive arrays\"));\n }\n var breakpointCount = sprinkle.responsiveArray.length;\n if (breakpointCount < propValue.length) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" only supports up to \").concat(breakpointCount, \" breakpoints. You passed \").concat(propValue.length));\n }\n for (var _responsiveValue of propValue) {\n if (!sprinkle.values[_responsiveValue]) {\n invalidPropValue(prop, _responsiveValue, sprinkle.values);\n }\n }\n } else {\n for (var _conditionName2 in propValue) {\n var _value2 = propValue[_conditionName2];\n if (_value2 != null) {\n if (!sprinkle.values[_value2]) {\n invalidPropValue(prop, _value2, sprinkle.values);\n }\n if (!sprinkle.values[_value2].conditions[_conditionName2]) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no condition named \").concat(format(_conditionName2), \". Possible values are \").concat(Object.keys(sprinkle.values[_value2].conditions).map(format).join(', ')));\n }\n }\n }\n }\n }\n }\n throw e;\n }\n };\n for (var prop in finalProps) {\n var _ret = _loop();\n if (_ret === \"continue\") continue;\n }\n return composeStyles(classNames.join(' '));\n };\n return Object.assign(sprinklesFn, {\n properties: new Set(sprinklesKeys)\n });\n};\n\nexport { createSprinkles as c };\n","import { c as createSprinkles$1 } from '../../dist/createSprinkles-c8550e00.esm.js';\n\nvar composeStyles = classList => classList;\nvar createSprinkles = function createSprinkles() {\n return createSprinkles$1(composeStyles)(...arguments);\n};\n\n/** @deprecated - Use `createSprinkles` */\nvar createAtomsFn = createSprinkles;\n\nexport { createAtomsFn, createSprinkles };\n","import * as styles from \"./stack.css\";\nimport { clsx } from \"clsx\";\nimport { sprinkles, Sprinkles } from \"../../theme/sprinkles.css\";\nimport { CSSProperties } from \"react\";\n\ntype Props = {\n variant?: styles.StackVariants;\n space?: Sprinkles[\"gap\"];\n className?: string;\n style?: CSSProperties;\n children?: React.ReactNode;\n};\n\nexport const Stack = (props: Props) => (\n <div\n className={clsx(\n \"sid-stack\",\n styles.stack(props.variant),\n sprinkles({ gap: props.space || \"2\" }),\n props.className\n )}\n style={props.style}\n >\n {props.children}\n </div>\n);\n","import { createContext, ReactNode, useMemo } from \"react\";\nimport { TextConfig } from \"./types\";\n\nexport interface ITextContext {\n text: TextConfig;\n}\n\nexport const initialContextValue: ITextContext = {\n text: {},\n};\n\nexport const TextContext = createContext<ITextContext>(initialContextValue);\nTextContext.displayName = \"SlashIDTextContext\";\n\ntype Props = {\n text: TextConfig;\n children: ReactNode;\n};\n\nexport const TextProvider: React.FC<Props> = ({ text, children }) => {\n const contextValue = useMemo(() => {\n return {\n text,\n };\n }, [text]);\n\n return (\n <TextContext.Provider value={contextValue}>{children}</TextContext.Provider>\n );\n};\n","import React from \"react\";\nimport { TextContext } from \"./text-context\";\n\nexport function useText() {\n const { text } = React.useContext(TextContext);\n\n return text;\n}\n","const TOKEN = {\n opening: \"{{\",\n closing: \"}}\",\n};\n\n/**\n * This allows interpolating text with tokens.\n * Source text needs to have the tokens in the form of {{TOKEN_NAME}}.\n * TODO write tests\n * @param text\n * @param tokens\n * @returns\n */\nexport function interpolate(text: string, tokens: Record<string, string>) {\n if (!text.includes(TOKEN.opening)) return text;\n\n const interpolatedText = Object.keys(tokens).reduce(\n (partialResult, token) => {\n return partialResult.replace(\n `${TOKEN.opening}${token}${TOKEN.closing}`,\n tokens[token]\n );\n },\n text\n );\n\n return interpolatedText;\n}\n","import { clsx } from \"clsx\";\nimport * as styles from \"./text.css\";\nimport { useText } from \"./use-text\";\nimport { TextConfig } from \"./types\";\nimport { interpolate } from \"./interpolation\";\n\nexport type Props<TC extends TextConfig> = {\n t: keyof TC;\n children?: React.ReactNode;\n tokens?: Record<string, string>;\n as?: \"h1\" | \"h2\" | \"h3\" | \"p\";\n variant?: styles.TextVariants;\n className?: string;\n};\n\ntype InternalProps = Props<TextConfig>;\n\n/**\n * Basic text component, used to display text in the application.\n * In order to get type safe text, you need to provide a TextConfig type.\n * Text will be interpolated - i.e. any {{key}} will be replaced with the value that matches the key in the provided tokens prop.\n *\n * The intent is that the actual text keys & values are provided by the consuming application.\n *\n * @example\n * Check the <Text> component in the @slashid/react package for more information.\n */\nexport const Text: React.FC<InternalProps> = ({\n as,\n t,\n tokens,\n variant,\n className,\n children,\n}) => {\n const text = useText();\n const Component = as ? as : \"p\";\n\n return (\n <Component\n className={clsx(\n \"sid-text\",\n `sid-text--${as}`,\n styles.text(variant),\n className\n )}\n >\n {tokens ? interpolate(text[t], tokens) : text[t]}\n {children ? children : null}\n </Component>\n );\n};\n","import { CSSProperties } from \"react\";\nimport { container } from \"./skeleton.css\";\n\ninterface Props {\n width?: CSSProperties[\"width\"];\n height?: CSSProperties[\"height\"];\n minHeight?: CSSProperties[\"minHeight\"];\n maxHeight?: CSSProperties[\"maxHeight\"];\n minWidth?: CSSProperties[\"minWidth\"];\n maxWidth?: CSSProperties[\"maxWidth\"];\n}\n\nexport function Skeleton({\n width,\n height,\n minHeight,\n maxHeight,\n minWidth,\n maxWidth,\n}: Props) {\n return (\n <div\n className={container}\n style={{\n width,\n height,\n minHeight,\n maxHeight,\n minWidth,\n maxWidth,\n }}\n />\n );\n}\n","import { Circle, Spinner } from \"@slashid/react-primitives\";\n\nexport function Loader() {\n return (\n <Circle>\n <Spinner />\n </Circle>\n );\n}\n","import { Skeleton, Stack } from \"@slashid/react-primitives\";\nimport { Loader } from \"./flow.loader\";\n\nexport function Initial() {\n return (\n <>\n <Stack space=\"2\">\n <Skeleton width={\"75%\"} height={24} />\n <Skeleton width={\"50%\"} height={16} />\n </Stack>\n <Loader />\n </>\n );\n}\n","import { Text as BaseText, type TextProps } from \"@slashid/react-primitives\";\nimport type { TranslationKeys } from \"../../domain/i18n\";\n\ntype Props = TextProps<Record<TranslationKeys, string>>;\n\nexport const Text: React.FC<Props> = (props) => {\n return <BaseText {...props} />;\n};\n","import { Circle, Exclamation, Stack } from \"@slashid/react-primitives\";\nimport { Text } from \"../text\";\n\nexport type ErrorType = \"warning\" | \"error\";\n\nfunction ErrorIcon({ type }: { type: ErrorType }) {\n return (\n <Circle variant={type === \"warning\" ? \"blue\" : \"red\"} shouldAnimate={false}>\n <Exclamation />\n </Circle>\n );\n}\n\nexport function Error({ type }: { type: ErrorType }) {\n return (\n <>\n <Stack space=\"0.25\">\n <Text\n as=\"h1\"\n variant={{ size: \"2xl-title\", weight: \"bold\" }}\n t=\"error.title\"\n />\n <Text\n as=\"h2\"\n t=\"error.detail\"\n variant={{ color: \"contrast\", weight: \"semibold\" }}\n />\n </Stack>\n <ErrorIcon type={type} />\n </>\n );\n}\n","import { Circle } from \"@slashid/react-primitives\";\nimport { Text } from \"../text\";\n\nconst CheckIcon = () => (\n <Circle>\n <svg\n width=\"21\"\n height=\"18\"\n viewBox=\"0 0 21 18\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.8505 0.705985C20.6342 1.38283 20.7209 2.56684 20.044 3.35055L8.16908 17.1005C7.80192 17.5256 7.2635 17.7637 6.70195 17.7493C6.1404 17.7349 5.61489 17.4695 5.27002 17.0261L0.895049 11.4011C0.259296 10.5837 0.406547 9.4057 1.22394 8.76995C2.04134 8.13419 3.21935 8.28145 3.8551 9.09884L6.82592 12.9185L17.2059 0.89949C17.8828 0.115778 19.0668 0.0291434 19.8505 0.705985Z\"\n fill=\"white\"\n />\n </svg>\n </Circle>\n);\n\n// TODO this view always tells you are logged in, even in cases when you just verify the handle and not have a token\nexport function Success() {\n return (\n <article data-testid=\"sid-form-success-state\">\n <Text\n as=\"h1\"\n t=\"success.title\"\n variant={{ size: \"2xl-title\", weight: \"bold\" }}\n />\n <Text\n as=\"h2\"\n t=\"success.details\"\n variant={{ color: \"contrast\", weight: \"semibold\" }}\n />\n <CheckIcon />\n </article>\n );\n}\n","// based on RFC 5646\nexport type Language = \"en\" | \"ja\"\n\n/**\n * Check the language based on the browser settings.\n * Default to \"en\"\n */\nexport function detectLanguage(): Language {\n const language = navigator.language.toLowerCase()\n if (language === \"ja\" || language.startsWith(\"ja-\")) {\n return \"ja\"\n }\n\n return \"en\"\n}\n\nexport const defaultStrings = {\n \"footer.text\": \"Top-tier security by SlashID\",\n \"initial.title\": \"Logging you in...\",\n \"initial.details\": \"Please follow the on-screen instructions.\",\n \"recover.password.title\": \"Reset password\",\n \"recover.password.details\": \"Enter your new password.\",\n \"recover.password.input.password.label\": \"Password\",\n \"recover.password.input.confirmPassword.label\": \"Confirm password\",\n \"recover.password.input.placeholder\": \"Type your new password\",\n \"recover.password.submit\": \"Reset password\",\n \"recover.password.validation.passwordsDoNotMatch\": \"Passwords do not match\",\n \"recover.password.validation.length\": \"8-256 characters required\",\n \"recover.password.validation.password_variants\": \"Contains word 'password'\",\n \"recover.password.validation.admin_variants\": \"Contains word 'admin'\",\n \"recover.password.validation.user_variants\": \"Contains word 'user'\",\n \"recover.password.validation.alphanumeric_sequences_1\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.alphanumeric_sequences_2\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_sequences_ascending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_subsequences_ascending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_sequences_descending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_subsequences_descending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.common_password_xkcd\": \"Common password\",\n \"success.title\": \"All done!\",\n \"success.details\": \"Please return to the website.\",\n \"error.title\": \"Something went wrong...\",\n \"error.detail\": \"Please log in again.\",\n}\n\nexport type TranslationKeys = keyof typeof defaultStrings\nexport type Translations = {\n [key in Language]: {\n [key in TranslationKeys]: string\n }\n}\n\n// TODO add translations for password validation errors\nexport const I18N: Translations = {\n en: defaultStrings,\n ja: {\n \"footer.text\": defaultStrings[\"footer.text\"],\n \"initial.title\": \"ログイン処理を行っています。\",\n \"initial.details\": \"処理完了後、画面は自動で切り替わります。\",\n \"success.title\": \"認証が完了しました!\",\n \"success.details\": \"このページを閉じて、元のページへ戻ってください。\",\n \"recover.password.title\": defaultStrings[\"recover.password.title\"],\n \"recover.password.details\": defaultStrings[\"recover.password.details\"],\n \"recover.password.input.password.label\": defaultStrings[\"recover.password.input.password.label\"],\n \"recover.password.input.confirmPassword.label\": defaultStrings[\"recover.password.input.confirmPassword.label\"],\n \"recover.password.input.placeholder\": defaultStrings[\"recover.password.input.placeholder\"],\n \"recover.password.submit\": defaultStrings[\"recover.password.submit\"],\n \"recover.password.validation.passwordsDoNotMatch\":\n defaultStrings[\"recover.password.validation.passwordsDoNotMatch\"],\n \"recover.password.validation.length\": defaultStrings[\"recover.password.validation.length\"],\n \"recover.password.validation.password_variants\": defaultStrings[\"recover.password.validation.password_variants\"],\n \"recover.password.validation.admin_variants\": defaultStrings[\"recover.password.validation.admin_variants\"],\n \"recover.password.validation.user_variants\": defaultStrings[\"recover.password.validation.user_variants\"],\n \"recover.password.validation.alphanumeric_sequences_1\":\n defaultStrings[\"recover.password.validation.alphanumeric_sequences_1\"],\n \"recover.password.validation.alphanumeric_sequences_2\":\n defaultStrings[\"recover.password.validation.alphanumeric_sequences_2\"],\n \"recover.password.validation.numeric_sequences_ascending\":\n defaultStrings[\"recover.password.validation.numeric_sequences_ascending\"],\n \"recover.password.validation.numeric_subsequences_ascending\":\n defaultStrings[\"recover.password.validation.numeric_subsequences_ascending\"],\n \"recover.password.validation.numeric_sequences_descending\":\n defaultStrings[\"recover.password.validation.numeric_sequences_descending\"],\n \"recover.password.validation.numeric_subsequences_descending\":\n defaultStrings[\"recover.password.validation.numeric_subsequences_descending\"],\n \"recover.password.validation.common_password_xkcd\":\n defaultStrings[\"recover.password.validation.common_password_xkcd\"],\n \"error.title\": defaultStrings[\"error.title\"],\n \"error.detail\": \"再度ログインをしてください。\",\n },\n} as const\n\nexport type TranslationKey = keyof Translations[Language]\n\nexport type Translate = (key: TranslationKey) => (typeof I18N)[Language][TranslationKey]\n\nexport const createI18n = (language: Language) => (key: TranslationKey) => I18N[language][key]\n","import { createContext, useContext } from \"react\";\nimport { Logo } from \"@slashid/react-primitives\";\nimport type { SlashID } from \"@slashid/slashid\";\n\nimport { type Language } from \"../../domain/i18n\";\n\nexport type AppState = \"initial\" | \"ready\";\n\ntype AppConfig = {\n logo: string | React.ReactNode;\n language: Language;\n};\n\nexport type AppInitialState = AppConfig & {\n state: \"initial\";\n sdk: undefined;\n};\n\nexport type AppReadyState = AppConfig & {\n state: \"ready\";\n sdk: SlashID;\n};\n\nexport type AppContextState = AppInitialState | AppReadyState;\n\nexport const initialAppContextState: AppContextState = {\n logo: <Logo />,\n language: \"en\",\n state: \"initial\",\n sdk: undefined,\n};\n\nexport const AppContext = createContext<AppContextState>(\n initialAppContextState\n);\n\nexport const useAppContext = () => {\n const appContext = useContext(AppContext);\n\n return appContext;\n};\n","import { useMemo } from \"react\";\nimport { createI18n } from \"../../domain/i18n\";\nimport { useAppContext } from \"../app/app.context\";\n\nexport function useI18n() {\n const { language } = useAppContext();\n\n const i18n = useMemo(() => {\n return createI18n(language);\n }, [language]);\n\n return i18n;\n}\n","import type { InvalidPasswordSubmittedEvent } from \"@slashid/slashid\"\nimport { useEffect, useState } from \"react\"\nimport { PasswordInput, Stack, Text, Button, sprinkles, interpolate } from \"@slashid/react-primitives\"\n\nimport * as styles from \"./flow.css\"\nimport { useI18n } from \"../text/use-i18n\"\nimport { useAppContext } from \"../app/app.context\"\nimport type { TranslationKeys } from \"../../domain/i18n\"\n\nfunction getValidationI18nKey(errorEvent: InvalidPasswordSubmittedEvent): TranslationKeys {\n const textKey = `recover.password.validation.${errorEvent.failedRules[0].name}`\n\n // prefer the first error\n return textKey as TranslationKeys\n}\n\nfunction getValidationInterpolationTokens({\n errorEvent,\n password,\n}: {\n errorEvent: InvalidPasswordSubmittedEvent\n password: string\n}): Record<string, string> {\n const firstRuleToFail = errorEvent.failedRules[0]\n let failingValue = \"\"\n\n if (firstRuleToFail.matchType === \"must_not_match\") {\n const matchResult = firstRuleToFail.regexp.exec(password)\n failingValue = matchResult !== null ? matchResult[0] : \"\"\n }\n\n if (!failingValue) {\n return {}\n }\n\n return {\n ILLEGAL_SEQUENCE: failingValue,\n }\n}\n\nfunction ErrorMessage({ message }: { message: string }) {\n return <span className={styles.errorMessage}>{message}</span>\n}\n\nexport function Recover() {\n const i18n = useI18n()\n const { sdk } = useAppContext()\n const [password, setPassword] = useState(\"\")\n const [passwordConfirm, setPasswordConfirm] = useState(\"\")\n const [error, setError] = useState<string | null>(null)\n const [uiState, setUiState] = useState<\"initial\" | \"submitting\">(\"initial\")\n\n useEffect(() => {\n const onInvalidPassword = (invalidPasswordEvent: InvalidPasswordSubmittedEvent) => {\n setError(\n interpolate(\n i18n(getValidationI18nKey(invalidPasswordEvent)),\n getValidationInterpolationTokens({ errorEvent: invalidPasswordEvent, password })\n )\n )\n setUiState(\"initial\")\n }\n\n sdk?.subscribe(\"invalidPasswordSubmitted\", onInvalidPassword)\n\n return () => {\n sdk?.unsubscribe(\"invalidPasswordSubmitted\", onInvalidPassword)\n }\n }, [i18n, sdk, password, setError])\n\n const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault()\n\n if (!sdk) {\n return\n }\n\n if (!password || password !== passwordConfirm) {\n setError(i18n(\"recover.password.validation.passwordsDoNotMatch\"))\n return\n }\n\n sdk.publish(\"passwordSubmitted\", password)\n setUiState(\"submitting\")\n }\n\n const handlePasswordChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setPassword(event.target.value)\n setError(null)\n }\n\n const handleConfirmPasswordChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setPasswordConfirm(event.target.value)\n setError(null)\n }\n\n return (\n <>\n <Stack space=\"0.25\">\n <Text as=\"h1\" variant={{ size: \"2xl-title\", weight: \"bold\" }} t=\"recover.password.title\" />\n <Text variant={{ color: \"contrast\", weight: \"semibold\" }} as=\"h2\" t=\"recover.password.details\" />\n </Stack>\n <form onSubmit={handleSubmit}>\n <div className={styles.formInputs}>\n <PasswordInput\n id=\"password-input\"\n label={i18n(\"recover.password.input.password.label\")}\n placeholder={i18n(\"recover.password.input.placeholder\")}\n name=\"password\"\n value={password ?? \"\"}\n onChange={handlePasswordChange}\n error={Boolean(error)}\n autoComplete=\"new-password\"\n />\n <PasswordInput\n id=\"password-input-confirm\"\n label={i18n(\"recover.password.input.confirmPassword.label\")}\n placeholder={i18n(\"recover.password.input.placeholder\")}\n name=\"passwordConfirm\"\n value={passwordConfirm ?? \"\"}\n onChange={handleConfirmPasswordChange}\n className={sprinkles({ marginTop: \"4\" })}\n error={Boolean(error)}\n autoComplete=\"new-password\"\n />\n {error && <ErrorMessage message={error} />}\n </div>\n\n <Button\n type=\"submit\"\n variant=\"primary\"\n testId=\"sid-form-initial-submit-button\"\n disabled={uiState === \"submitting\"}\n loading={uiState === \"submitting\"}\n >\n {i18n(\"recover.password.submit\")}\n </Button>\n </form>\n </>\n )\n}\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","r","t","o","clsx","isBrowser","createClassNames","theme","className","THEME_ROOT_CLASS_NAME","themeClass","darkThemeVars","autoThemeVars","lightThemeVars","setThemeRootClassNames","themeRootClassNames","ServerThemeRoot","ClientThemeRoot","hydrated","setHydrated","useLayoutEffect","Fragment","ThemeRoot","Spinner","variant","styles.spinnerVariants","Button","forwardRef","onClick","testId","icon","disabled","loading","forwardedRef","styles.button","styles.buttonDisabled","styles.spinner","styles.icon","BaseInput","id","label","placeholder","autoComplete","onChange","handleChange","useCallback","styles.inputHost","styles.label","styles.input","DARK_MODE","Exclamation","Eye","EyeReveal","Logo","PasswordInput","showPassword","setShowPassword","useState","styles.host","styles.error","styles.passwordRevealButton","Circle","shouldAnimate","styles.background","styles.outerCircleVariants","styles.outerCircleWithAnimation","styles.middleCircleVariants","styles.middleCircleWithAnimation","styles.innerCircleVariants","styles.innerCircleWithAnimation","styles.content","_defineProperty","obj","ownKeys","enumerableOnly","symbols","sym","_objectSpread2","target","shouldApplyCompound","compoundCheck","selections","defaultVariants","_selections$key","createRuntimeFn","options","variantName","_selections$variantNa","variantSelection","selection","selectionClassName","compoundClassName","_toPrimitive","input","hint","prim","res","_toPropertyKey","arg","createSprinkles","composeStyles","_len","_key","sprinklesStyles","sprinklesKeys","shorthandNames","property","sprinklesFn","classNames","shorthands","nonShorthands","hasShorthands","shorthand","sprinkle","propMapping","finalProps","_loop","propValue","prop","responsiveIndex","responsiveValue","conditionName","_conditionName","_value","SprinklesError","message","v","invalidPropValue","possibleValues","breakpointCount","_responsiveValue","_conditionName2","_value2","_ret","classList","createSprinkles$1","Stack","styles.stack","sprinkles","initialContextValue","TextContext","createContext","TextProvider","text","contextValue","useMemo","useText","TOKEN","interpolate","tokens","partialResult","token","Text","as","styles.text","Skeleton","width","height","minHeight","maxHeight","minWidth","maxWidth","container","Loader","Initial","BaseText","ErrorIcon","Error","CheckIcon","Success","defaultStrings","I18N","createI18n","language","initialAppContextState","AppContext","useAppContext","useContext","useI18n","getValidationI18nKey","errorEvent","getValidationInterpolationTokens","password","firstRuleToFail","failingValue","matchResult","ErrorMessage","styles.errorMessage","Recover","i18n","sdk","setPassword","passwordConfirm","setPasswordConfirm","setError","uiState","setUiState","useEffect","onInvalidPassword","invalidPasswordEvent","handleSubmit","event","handlePasswordChange","handleConfirmPasswordChange","styles.formInputs"],"mappings":";;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,IAAiBC,IAAE,OAAO,IAAI,eAAe,GAAEC,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEL,EAAE,mDAAmD,mBA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3J,gBAAAA,EAAAA,KAAC,QAAK,EAAA,UAAU2M,GACd,UAAA;AAAA,MAAC3M,gBAAAA,EAAAA,KAAA,OAAA,EAAI,WAAW+M,IACd,UAAA;AAAA,QAAAhN,gBAAAA,EAAA;AAAA,UAAC0D;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,OAAOuI,EAAK,uCAAuC;AAAA,YACnD,aAAaA,EAAK,oCAAoC;AAAA,YACtD,MAAK;AAAA,YACL,OAAOP,KAAY;AAAA,YACnB,UAAUoB;AAAA,YACV,OAAO,EAAQ9W;AAAA,YACf,cAAa;AAAA,UAAA;AAAA,QACf;AAAA,QACAgK,gBAAAA,EAAA;AAAA,UAAC0D;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,OAAOuI,EAAK,8CAA8C;AAAA,YAC1D,aAAaA,EAAK,oCAAoC;AAAA,YACtD,MAAK;AAAA,YACL,OAAOG,KAAmB;AAAA,YAC1B,UAAUW;AAAA,YACV,WAAWjE,GAAU,EAAE,WAAW,KAAK;AAAA,YACvC,OAAO,EAAQ9S;AAAA,YACf,cAAa;AAAA,UAAA;AAAA,QACf;AAAA,QACCA,KAASgK,gBAAAA,EAAAA,IAAC8L,IAAa,EAAA,SAAS9V,EAAO,CAAA;AAAA,MAAA,GAC1C;AAAA,MAEAgK,gBAAAA,EAAA;AAAA,QAAC8B;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,QAAO;AAAA,UACP,UAAUyK,MAAY;AAAA,UACtB,SAASA,MAAY;AAAA,UAEpB,YAAK,yBAAyB;AAAA,QAAA;AAAA,MACjC;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]}
1
+ {"version":3,"file":"main.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/clsx/dist/clsx.mjs","../node_modules/@slashid/react-primitives/src/browser/is-browser.ts","../node_modules/@slashid/react-primitives/src/components/theme-root/index.tsx","../node_modules/@slashid/react-primitives/src/components/spinner/spinner.tsx","../node_modules/@slashid/react-primitives/src/components/button/index.tsx","../node_modules/@slashid/react-primitives/src/components/input/input.base.tsx","../node_modules/@slashid/react-primitives/src/components/icon/dark-mode.tsx","../node_modules/@slashid/react-primitives/src/components/icon/exclamation.tsx","../node_modules/@slashid/react-primitives/src/components/icon/eye.tsx","../node_modules/@slashid/react-primitives/src/components/icon/eye-reveal.tsx","../node_modules/@slashid/react-primitives/src/components/icon/logo.tsx","../node_modules/@slashid/react-primitives/src/components/input/input.password.tsx","../node_modules/@slashid/react-primitives/src/components/spinner/circle.tsx","../node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js","../node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-c8550e00.esm.js","../node_modules/@vanilla-extract/sprinkles/createRuntimeSprinkles/dist/vanilla-extract-sprinkles-createRuntimeSprinkles.esm.js","../node_modules/@slashid/react-primitives/src/components/stack/stack.tsx","../node_modules/@slashid/react-primitives/src/components/text/text-context.tsx","../node_modules/@slashid/react-primitives/src/components/text/use-text.ts","../node_modules/@slashid/react-primitives/src/components/text/interpolation.ts","../node_modules/@slashid/react-primitives/src/components/text/index.tsx","../node_modules/@slashid/react-primitives/src/components/skeleton/index.tsx","../src/domain/i18n.ts","../src/components/flow/flow.loader.tsx","../src/components/flow/flow.initial.tsx","../src/components/text/text.component.tsx","../src/components/flow/flow.error.tsx","../src/components/flow/flow.success.tsx","../src/components/app/app.context.tsx","../src/components/text/use-i18n.ts","../src/components/flow/flow.recover.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * Helper function to check if current runtime is a browser, mainly for SSR.\n *\n * @returns boolean\n */\nexport function isBrowser(): boolean {\n return typeof window !== \"undefined\" && globalThis === window;\n}\n","import { clsx } from \"clsx\";\nimport {\n THEME_ROOT_CLASS_NAME,\n Theme,\n autoThemeVars,\n darkThemeVars,\n lightThemeVars,\n themeClass,\n} from \"../../theme/theme.css\";\nimport { useLayoutEffect } from \"react\";\nimport React from \"react\";\nimport { isBrowser } from \"../../browser/is-browser\";\n\nexport type ThemeProps = {\n theme?: Theme;\n className?: string;\n};\n\ntype Props = {\n children: React.ReactNode;\n theme?: ThemeProps[\"theme\"];\n className?: ThemeProps[\"className\"];\n};\n\nfunction createClassNames({ theme, className }: ThemeProps) {\n return clsx(\n THEME_ROOT_CLASS_NAME,\n `${THEME_ROOT_CLASS_NAME}__${theme}`,\n themeClass,\n {\n [darkThemeVars]: theme === \"dark\",\n [autoThemeVars]: theme === \"auto\",\n [lightThemeVars]: theme === \"light\",\n },\n className\n );\n}\n\nfunction setThemeRootClassNames({ theme, className }: ThemeProps) {\n const themeRootClassNames = createClassNames({ theme, className });\n\n document.body.classList.add(...themeRootClassNames.split(\" \"));\n}\n\n/**\n * We cannot rely on useLayoutEffect to set the correct class names on the <body> element server side.\n */\nexport const ServerThemeRoot = ({ children }: Props) => {\n return <div className={createClassNames({ theme: \"light\" })}>{children}</div>;\n};\n\nconst ClientThemeRoot = ({ children, theme = \"light\", className }: Props) => {\n // used to fix a hydration mismatch between server and client side\n const [hydrated, setHydrated] = React.useState(false);\n\n // this effect runs client side only\n useLayoutEffect(() => {\n if (!hydrated) {\n setHydrated(true);\n }\n }, [className, hydrated, theme]);\n\n useLayoutEffect(() => {\n if (hydrated) {\n setThemeRootClassNames({ theme, className });\n }\n }, [className, hydrated, theme]);\n\n return hydrated ? (\n <>{children}</>\n ) : (\n <ServerThemeRoot>{children}</ServerThemeRoot>\n );\n};\n\n/**\n * This component will apply the necessary class names to the <body> element.\n * That way the child components on all levels can use the theming properties.\n * This also helps with any components portaling out of the SlashIDProvider hierarchy.\n */\nexport function ThemeRoot({ children, theme = \"light\", className }: Props) {\n if (!isBrowser()) {\n return <ServerThemeRoot>{children}</ServerThemeRoot>;\n }\n\n return (\n <ClientThemeRoot theme={theme} className={className}>\n {children}\n </ClientThemeRoot>\n );\n}\n","import clsx from \"clsx\";\nimport * as styles from \"./spinner.css\";\n\ntype Props = {\n className?: string;\n variant?: keyof typeof styles.spinnerVariants;\n};\n\nexport const Spinner = ({ className, variant = \"default\" }: Props) => (\n <div className={clsx(styles.spinnerVariants[variant], className)} />\n);\n","import { clsx } from \"clsx\";\nimport { ReactNode, forwardRef } from \"react\";\nimport { Spinner } from \"../spinner/spinner\";\nimport * as styles from \"./button.css\";\n\ntype Props = {\n children: ReactNode;\n onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n className?: string;\n type?: \"button\" | \"submit\";\n variant?: keyof typeof styles.button;\n icon?: ReactNode;\n testId?: string;\n disabled?: boolean;\n loading?: boolean;\n};\n\nexport const Button = forwardRef<HTMLButtonElement, Props>(\n (\n {\n children,\n onClick,\n className,\n type = \"button\",\n variant = \"primary\",\n testId,\n icon,\n disabled,\n loading = false,\n },\n forwardedRef\n ) => {\n return (\n <button\n ref={forwardedRef}\n data-testid={testId}\n type={type}\n disabled={disabled}\n className={clsx(\n \"sid-button\",\n `sid-button--${variant}`,\n styles.button[variant],\n { [styles.buttonDisabled]: disabled },\n className\n )}\n onClick={onClick}\n >\n {loading ? (\n <Spinner variant=\"short\" className={styles.spinner[variant]} />\n ) : (\n <>\n {icon ? <i className={styles.icon}>{icon}</i> : null}\n {children}\n </>\n )}\n </button>\n );\n }\n);\n\nButton.displayName = \"Button\";\n","import { ChangeEventHandler, useCallback } from \"react\";\n\nimport * as styles from \"./input.css\";\n\nexport type BaseInputProps = {\n id: string;\n name: string;\n label: string;\n placeholder?: string;\n autoComplete?: string;\n className?: string;\n type?: \"text\" | \"email\" | \"tel\" | \"password\";\n value: string;\n onChange: ChangeEventHandler<HTMLInputElement>;\n};\n\nexport const BaseInput: React.FC<BaseInputProps> = ({\n id,\n name,\n label,\n placeholder = \"\",\n autoComplete = \"\",\n value,\n onChange,\n type = \"text\",\n}) => {\n const handleChange = useCallback<ChangeEventHandler<HTMLInputElement>>(\n (e) => {\n onChange(e);\n },\n [onChange]\n );\n\n return (\n <div className={styles.inputHost[type]}>\n <label htmlFor={id} className={styles.label}>\n {label}\n </label>\n <input\n type={type}\n id={id}\n name={name}\n className={styles.input}\n placeholder={placeholder}\n value={value}\n onChange={handleChange}\n autoComplete={autoComplete}\n />\n </div>\n );\n};\n","export const DARK_MODE = `\n@media (prefers-color-scheme: dark) {\n .sid-theme-root__auto path { fill: white; }\n}\n\n.sid-theme-root__dark path { fill: white; }\n`;\n","export function Exclamation() {\n return (\n <svg\n width=\"5\"\n height=\"20\"\n viewBox=\"0 0 5 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.5 0C3.32843 1.19209e-07 4 0.671573 4 1.5L4 11.5C4 12.3284 3.32843 13 2.5 13C1.67157 13 1 12.3284 1 11.5L1 1.5C1 0.671573 1.67157 -1.19209e-07 2.5 0Z\"\n fill=\"white\"\n />\n <path\n d=\"M4.5 18C4.5 19.1046 3.60457 20 2.5 20C1.39543 20 0.5 19.1046 0.5 18C0.5 16.8954 1.39543 16 2.5 16C3.60457 16 4.5 16.8954 4.5 18Z\"\n fill=\"white\"\n />\n </svg>\n );\n}\n","import { DARK_MODE } from \"./dark-mode\";\n\nexport const Eye = () => (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <style>{DARK_MODE}</style>\n <g clipPath=\"url(#clip0_2610_9920)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z\"\n fill=\"#142049\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2610_9920\">\n <rect width=\"16\" height=\"16\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import { DARK_MODE } from \"./dark-mode\";\n\nexport const EyeReveal = () => (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <style>{DARK_MODE}</style>\n <g clipPath=\"url(#clip0_2610_9933)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z\"\n fill=\"#142049\"\n />\n <path\n d=\"M2.34314 2.34315L13.6568 13.6569\"\n stroke=\"#142049\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2610_9933\">\n <rect width=\"16\" height=\"16\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import { DARK_MODE } from \"./dark-mode\";\n\nexport const Logo = () => (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <style>{DARK_MODE}</style>\n <path d=\"M12.686 10L2 30.228H5.198L15.884 10H12.686Z\" fill=\"#2A6AFF\"></path>\n <path\n d=\"M19.7923 15.694C20.9373 15.694 21.8723 14.732 21.8723 13.588C21.8723 12.444 20.9373 11.482 19.7923 11.482C18.6223 11.482 17.6873 12.444 17.6873 13.588C17.6873 14.732 18.6233 15.694 19.7933 15.694H19.7923ZM18.0773 17.514V30.228H21.4573V17.514H18.0773ZM34.1883 10V18.502C33.172 17.6398 31.8809 17.1695 30.5483 17.176C26.8563 17.176 24.0743 20.14 24.0743 23.884C24.0743 27.628 26.8563 30.592 30.5483 30.592C32.0823 30.592 33.4343 30.02 34.4483 29.032V30.228H37.5683V10H34.1883ZM30.9383 27.42C28.9883 27.42 27.5583 25.912 27.5583 23.884C27.5583 21.856 28.9883 20.348 30.9383 20.348C32.8883 20.348 34.3183 21.856 34.3183 23.884C34.3183 25.912 32.8883 27.42 30.9383 27.42Z\"\n fill=\"#142049\"\n ></path>\n </svg>\n);\n","import { clsx } from \"clsx\";\nimport { BaseInput, BaseInputProps } from \"./input.base\";\n\nimport * as styles from \"./input.css\";\nimport { useState } from \"react\";\nimport { Eye, EyeReveal } from \"../icon\";\n\nexport type PasswordInputProps = Omit<BaseInputProps, \"type\"> & {\n error?: boolean;\n};\n\nexport const PasswordInput: React.FC<PasswordInputProps> = (props) => {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <div\n className={clsx(\n \"sid-input\",\n `sid-input--password`,\n styles.host,\n props.error && styles.error,\n props.className\n )}\n >\n <BaseInput {...props} type={showPassword ? \"text\" : \"password\"} />\n <button\n tabIndex={-1}\n className={styles.passwordRevealButton}\n type=\"button\"\n onClick={() => setShowPassword(!showPassword)}\n >\n {showPassword ? <EyeReveal /> : <Eye />}\n </button>\n </div>\n );\n};\n","import { clsx } from \"clsx\";\nimport { ReactNode } from \"react\";\nimport * as styles from \"./circle.css\";\n\ntype Variant = \"blue\" | \"red\";\n\ntype Props = {\n className?: string;\n variant?: Variant;\n shouldAnimate?: boolean;\n children: ReactNode;\n};\n\nexport const Circle: React.FC<Props> = ({\n children,\n className,\n variant = \"blue\",\n shouldAnimate = true,\n}) => (\n <div className={clsx(styles.background, className)}>\n <div\n className={clsx(styles.outerCircleVariants[variant], {\n [styles.outerCircleWithAnimation]: shouldAnimate,\n })}\n />\n <div\n className={clsx(styles.middleCircleVariants[variant], {\n [styles.middleCircleWithAnimation]: shouldAnimate,\n })}\n />\n <div\n className={clsx(styles.innerCircleVariants[variant], {\n [styles.innerCircleWithAnimation]: shouldAnimate,\n })}\n />\n <div className={styles.content}>{children}</div>\n </div>\n);\n","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nvar shouldApplyCompound = (compoundCheck, selections, defaultVariants) => {\n for (var key of Object.keys(compoundCheck)) {\n var _selections$key;\n\n if (compoundCheck[key] !== ((_selections$key = selections[key]) !== null && _selections$key !== void 0 ? _selections$key : defaultVariants[key])) {\n return false;\n }\n }\n\n return true;\n};\n\nvar createRuntimeFn = config => options => {\n var className = config.defaultClassName;\n\n var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);\n\n for (var variantName in selections) {\n var _selections$variantNa;\n\n var variantSelection = (_selections$variantNa = selections[variantName]) !== null && _selections$variantNa !== void 0 ? _selections$variantNa : config.defaultVariants[variantName];\n\n if (variantSelection != null) {\n var selection = variantSelection;\n\n if (typeof selection === 'boolean') {\n // @ts-expect-error\n selection = selection === true ? 'true' : 'false';\n }\n\n var selectionClassName = // @ts-expect-error\n config.variantClassNames[variantName][selection];\n\n if (selectionClassName) {\n className += ' ' + selectionClassName;\n }\n }\n }\n\n for (var [compoundCheck, compoundClassName] of config.compoundVariants) {\n if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) {\n className += ' ' + compoundClassName;\n }\n }\n\n return className;\n};\n\nexport { createRuntimeFn };\n","function _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\n\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\n\nvar createSprinkles = composeStyles => function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var sprinklesStyles = Object.assign({}, ...args.map(a => a.styles));\n var sprinklesKeys = Object.keys(sprinklesStyles);\n var shorthandNames = sprinklesKeys.filter(property => 'mappings' in sprinklesStyles[property]);\n var sprinklesFn = props => {\n var classNames = [];\n var shorthands = {};\n var nonShorthands = _objectSpread2({}, props);\n var hasShorthands = false;\n for (var shorthand of shorthandNames) {\n var value = props[shorthand];\n if (value != null) {\n var sprinkle = sprinklesStyles[shorthand];\n hasShorthands = true;\n for (var propMapping of sprinkle.mappings) {\n shorthands[propMapping] = value;\n if (nonShorthands[propMapping] == null) {\n delete nonShorthands[propMapping];\n }\n }\n }\n }\n var finalProps = hasShorthands ? _objectSpread2(_objectSpread2({}, shorthands), nonShorthands) : props;\n var _loop = function _loop() {\n var propValue = finalProps[prop];\n var sprinkle = sprinklesStyles[prop];\n try {\n if (sprinkle.mappings) {\n // Skip shorthands\n return \"continue\";\n }\n if (typeof propValue === 'string' || typeof propValue === 'number') {\n if (process.env.NODE_ENV !== 'production') {\n if (!sprinkle.values[propValue].defaultClass) {\n throw new Error();\n }\n }\n classNames.push(sprinkle.values[propValue].defaultClass);\n } else if (Array.isArray(propValue)) {\n for (var responsiveIndex = 0; responsiveIndex < propValue.length; responsiveIndex++) {\n var responsiveValue = propValue[responsiveIndex];\n if (responsiveValue != null) {\n var conditionName = sprinkle.responsiveArray[responsiveIndex];\n if (process.env.NODE_ENV !== 'production') {\n if (!sprinkle.values[responsiveValue].conditions[conditionName]) {\n throw new Error();\n }\n }\n classNames.push(sprinkle.values[responsiveValue].conditions[conditionName]);\n }\n }\n } else {\n for (var _conditionName in propValue) {\n // Conditional style\n var _value = propValue[_conditionName];\n if (_value != null) {\n if (process.env.NODE_ENV !== 'production') {\n if (!sprinkle.values[_value].conditions[_conditionName]) {\n throw new Error();\n }\n }\n classNames.push(sprinkle.values[_value].conditions[_conditionName]);\n }\n }\n }\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n class SprinklesError extends Error {\n constructor(message) {\n super(message);\n this.name = 'SprinklesError';\n }\n }\n var format = v => typeof v === 'string' ? \"\\\"\".concat(v, \"\\\"\") : v;\n var invalidPropValue = (prop, value, possibleValues) => {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no value \").concat(format(value), \". Possible values are \").concat(Object.keys(possibleValues).map(format).join(', ')));\n };\n if (!sprinkle) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" is not a valid sprinkle\"));\n }\n if (typeof propValue === 'string' || typeof propValue === 'number') {\n if (!(propValue in sprinkle.values)) {\n invalidPropValue(prop, propValue, sprinkle.values);\n }\n if (!sprinkle.values[propValue].defaultClass) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no default condition. You must specify which conditions to target explicitly. Possible options are \").concat(Object.keys(sprinkle.values[propValue].conditions).map(format).join(', ')));\n }\n }\n if (typeof propValue === 'object') {\n if (!('conditions' in sprinkle.values[Object.keys(sprinkle.values)[0]])) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" is not a conditional property\"));\n }\n if (Array.isArray(propValue)) {\n if (!('responsiveArray' in sprinkle)) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" does not support responsive arrays\"));\n }\n var breakpointCount = sprinkle.responsiveArray.length;\n if (breakpointCount < propValue.length) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" only supports up to \").concat(breakpointCount, \" breakpoints. You passed \").concat(propValue.length));\n }\n for (var _responsiveValue of propValue) {\n if (!sprinkle.values[_responsiveValue]) {\n invalidPropValue(prop, _responsiveValue, sprinkle.values);\n }\n }\n } else {\n for (var _conditionName2 in propValue) {\n var _value2 = propValue[_conditionName2];\n if (_value2 != null) {\n if (!sprinkle.values[_value2]) {\n invalidPropValue(prop, _value2, sprinkle.values);\n }\n if (!sprinkle.values[_value2].conditions[_conditionName2]) {\n throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no condition named \").concat(format(_conditionName2), \". Possible values are \").concat(Object.keys(sprinkle.values[_value2].conditions).map(format).join(', ')));\n }\n }\n }\n }\n }\n }\n throw e;\n }\n };\n for (var prop in finalProps) {\n var _ret = _loop();\n if (_ret === \"continue\") continue;\n }\n return composeStyles(classNames.join(' '));\n };\n return Object.assign(sprinklesFn, {\n properties: new Set(sprinklesKeys)\n });\n};\n\nexport { createSprinkles as c };\n","import { c as createSprinkles$1 } from '../../dist/createSprinkles-c8550e00.esm.js';\n\nvar composeStyles = classList => classList;\nvar createSprinkles = function createSprinkles() {\n return createSprinkles$1(composeStyles)(...arguments);\n};\n\n/** @deprecated - Use `createSprinkles` */\nvar createAtomsFn = createSprinkles;\n\nexport { createAtomsFn, createSprinkles };\n","import * as styles from \"./stack.css\";\nimport { clsx } from \"clsx\";\nimport { sprinkles, Sprinkles } from \"../../theme/sprinkles.css\";\nimport { CSSProperties } from \"react\";\n\ntype Props = {\n variant?: styles.StackVariants;\n space?: Sprinkles[\"gap\"];\n className?: string;\n style?: CSSProperties;\n children?: React.ReactNode;\n};\n\nexport const Stack = (props: Props) => (\n <div\n className={clsx(\n \"sid-stack\",\n styles.stack(props.variant),\n sprinkles({ gap: props.space || \"2\" }),\n props.className\n )}\n style={props.style}\n >\n {props.children}\n </div>\n);\n","import { createContext, ReactNode, useMemo } from \"react\";\nimport { TextConfig } from \"./types\";\n\nexport interface ITextContext {\n text: TextConfig;\n}\n\nexport const initialContextValue: ITextContext = {\n text: {},\n};\n\nexport const TextContext = createContext<ITextContext>(initialContextValue);\nTextContext.displayName = \"SlashIDTextContext\";\n\ntype Props = {\n text: TextConfig;\n children: ReactNode;\n};\n\nexport const TextProvider: React.FC<Props> = ({ text, children }) => {\n const contextValue = useMemo(() => {\n return {\n text,\n };\n }, [text]);\n\n return (\n <TextContext.Provider value={contextValue}>{children}</TextContext.Provider>\n );\n};\n","import React from \"react\";\nimport { TextContext } from \"./text-context\";\n\nexport function useText() {\n const { text } = React.useContext(TextContext);\n\n return text;\n}\n","const TOKEN = {\n opening: \"{{\",\n closing: \"}}\",\n};\n\n/**\n * This allows interpolating text with tokens.\n * Source text needs to have the tokens in the form of {{TOKEN_NAME}}.\n * TODO write tests\n * @param text\n * @param tokens\n * @returns\n */\nexport function interpolate(text: string, tokens: Record<string, string>) {\n if (!text.includes(TOKEN.opening)) return text;\n\n const interpolatedText = Object.keys(tokens).reduce(\n (partialResult, token) => {\n return partialResult.replace(\n `${TOKEN.opening}${token}${TOKEN.closing}`,\n tokens[token]\n );\n },\n text\n );\n\n return interpolatedText;\n}\n","import { clsx } from \"clsx\";\nimport * as styles from \"./text.css\";\nimport { useText } from \"./use-text\";\nimport { TextConfig } from \"./types\";\nimport { interpolate } from \"./interpolation\";\n\nexport type Props<TC extends TextConfig> = {\n t: keyof TC;\n children?: React.ReactNode;\n tokens?: Record<string, string>;\n as?: \"h1\" | \"h2\" | \"h3\" | \"p\";\n variant?: styles.TextVariants;\n className?: string;\n};\n\ntype InternalProps = Props<TextConfig>;\n\n/**\n * Basic text component, used to display text in the application.\n * In order to get type safe text, you need to provide a TextConfig type.\n * Text will be interpolated - i.e. any {{key}} will be replaced with the value that matches the key in the provided tokens prop.\n *\n * The intent is that the actual text keys & values are provided by the consuming application.\n *\n * @example\n * Check the <Text> component in the @slashid/react package for more information.\n */\nexport const Text: React.FC<InternalProps> = ({\n as,\n t,\n tokens,\n variant,\n className,\n children,\n}) => {\n const text = useText();\n const Component = as ? as : \"p\";\n\n return (\n <Component\n className={clsx(\n \"sid-text\",\n `sid-text--${as}`,\n styles.text(variant),\n className\n )}\n >\n {tokens ? interpolate(text[t], tokens) : text[t]}\n {children ? children : null}\n </Component>\n );\n};\n","import { CSSProperties } from \"react\";\nimport { container } from \"./skeleton.css\";\n\ninterface Props {\n width?: CSSProperties[\"width\"];\n height?: CSSProperties[\"height\"];\n minHeight?: CSSProperties[\"minHeight\"];\n maxHeight?: CSSProperties[\"maxHeight\"];\n minWidth?: CSSProperties[\"minWidth\"];\n maxWidth?: CSSProperties[\"maxWidth\"];\n}\n\nexport function Skeleton({\n width,\n height,\n minHeight,\n maxHeight,\n minWidth,\n maxWidth,\n}: Props) {\n return (\n <div\n className={container}\n style={{\n width,\n height,\n minHeight,\n maxHeight,\n minWidth,\n maxWidth,\n }}\n />\n );\n}\n","// based on RFC 5646\nexport type Language = \"en\" | \"ja\"\n\n/**\n * Check the language based on the browser settings.\n * Default to \"en\"\n */\nexport function detectLanguage(): Language {\n const language = navigator.language.toLowerCase()\n if (language === \"ja\" || language.startsWith(\"ja-\")) {\n return \"ja\"\n }\n\n return \"en\"\n}\n\nexport const defaultStrings = {\n \"footer.text\": \"Top-tier security by SlashID\",\n \"initial.title\": \"Logging you in...\",\n \"initial.details\": \"Please follow the on-screen instructions.\",\n \"recover.password.title\": \"Reset password\",\n \"recover.password.details\": \"Enter your new password.\",\n \"recover.password.input.password.label\": \"Password\",\n \"recover.password.input.confirmPassword.label\": \"Confirm password\",\n \"recover.password.input.placeholder\": \"Type your new password\",\n \"recover.password.submit\": \"Reset password\",\n \"recover.password.validation.passwordsDoNotMatch\": \"Passwords do not match\",\n \"recover.password.validation.length\": \"8-256 characters required\",\n \"recover.password.validation.password_variants\": \"Contains word 'password'\",\n \"recover.password.validation.admin_variants\": \"Contains word 'admin'\",\n \"recover.password.validation.user_variants\": \"Contains word 'user'\",\n \"recover.password.validation.alphanumeric_sequences_1\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.alphanumeric_sequences_2\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_sequences_ascending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_subsequences_ascending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_sequences_descending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.numeric_subsequences_descending\": \"Illegal sequence: {{ILLEGAL_SEQUENCE}}\",\n \"recover.password.validation.common_password_xkcd\": \"Common password\",\n \"success.title\": \"All done!\",\n \"success.details\": \"Please return to the website.\",\n \"error.title\": \"Something went wrong...\",\n \"error.detail\": \"Please log in again.\",\n}\n\nexport type TranslationKeys = keyof typeof defaultStrings\nexport type Translations = {\n [key in Language]: {\n [key in TranslationKeys]: string\n }\n}\n\n// TODO add translations for password validation errors\nexport const I18N: Translations = {\n en: defaultStrings,\n ja: {\n \"footer.text\": defaultStrings[\"footer.text\"],\n \"initial.title\": \"ログイン処理を行っています。\",\n \"initial.details\": \"処理完了後、画面は自動で切り替わります。\",\n \"success.title\": \"認証が完了しました!\",\n \"success.details\": \"このページを閉じて、元のページへ戻ってください。\",\n \"recover.password.title\": defaultStrings[\"recover.password.title\"],\n \"recover.password.details\": defaultStrings[\"recover.password.details\"],\n \"recover.password.input.password.label\": defaultStrings[\"recover.password.input.password.label\"],\n \"recover.password.input.confirmPassword.label\": defaultStrings[\"recover.password.input.confirmPassword.label\"],\n \"recover.password.input.placeholder\": defaultStrings[\"recover.password.input.placeholder\"],\n \"recover.password.submit\": defaultStrings[\"recover.password.submit\"],\n \"recover.password.validation.passwordsDoNotMatch\":\n defaultStrings[\"recover.password.validation.passwordsDoNotMatch\"],\n \"recover.password.validation.length\": defaultStrings[\"recover.password.validation.length\"],\n \"recover.password.validation.password_variants\": defaultStrings[\"recover.password.validation.password_variants\"],\n \"recover.password.validation.admin_variants\": defaultStrings[\"recover.password.validation.admin_variants\"],\n \"recover.password.validation.user_variants\": defaultStrings[\"recover.password.validation.user_variants\"],\n \"recover.password.validation.alphanumeric_sequences_1\":\n defaultStrings[\"recover.password.validation.alphanumeric_sequences_1\"],\n \"recover.password.validation.alphanumeric_sequences_2\":\n defaultStrings[\"recover.password.validation.alphanumeric_sequences_2\"],\n \"recover.password.validation.numeric_sequences_ascending\":\n defaultStrings[\"recover.password.validation.numeric_sequences_ascending\"],\n \"recover.password.validation.numeric_subsequences_ascending\":\n defaultStrings[\"recover.password.validation.numeric_subsequences_ascending\"],\n \"recover.password.validation.numeric_sequences_descending\":\n defaultStrings[\"recover.password.validation.numeric_sequences_descending\"],\n \"recover.password.validation.numeric_subsequences_descending\":\n defaultStrings[\"recover.password.validation.numeric_subsequences_descending\"],\n \"recover.password.validation.common_password_xkcd\":\n defaultStrings[\"recover.password.validation.common_password_xkcd\"],\n \"error.title\": defaultStrings[\"error.title\"],\n \"error.detail\": \"再度ログインをしてください。\",\n },\n} as const\n\nexport type TranslationKey = keyof Translations[Language]\n\nexport type Translate = (key: TranslationKey) => (typeof I18N)[Language][TranslationKey]\n\nexport const createI18n = (language: Language) => (key: TranslationKey) => I18N[language][key]\n","import { Circle, Spinner } from \"@slashid/react-primitives\";\n\nexport function Loader() {\n return (\n <Circle>\n <Spinner />\n </Circle>\n );\n}\n","import { Skeleton, Stack } from \"@slashid/react-primitives\";\nimport { Loader } from \"./flow.loader\";\n\nexport function Initial() {\n return (\n <>\n <Stack space=\"2\">\n <Skeleton width={\"75%\"} height={24} />\n <Skeleton width={\"50%\"} height={16} />\n </Stack>\n <Loader />\n </>\n );\n}\n","import { Text as BaseText, type TextProps } from \"@slashid/react-primitives\";\nimport type { TranslationKeys } from \"../../domain/i18n\";\n\ntype Props = TextProps<Record<TranslationKeys, string>>;\n\nexport const Text: React.FC<Props> = (props) => {\n return <BaseText {...props} />;\n};\n","import { Circle, Exclamation, Stack } from \"@slashid/react-primitives\";\nimport { Text } from \"../text\";\n\nexport type ErrorType = \"warning\" | \"error\";\n\nfunction ErrorIcon({ type }: { type: ErrorType }) {\n return (\n <Circle variant={type === \"warning\" ? \"blue\" : \"red\"} shouldAnimate={false}>\n <Exclamation />\n </Circle>\n );\n}\n\nexport function Error({ type }: { type: ErrorType }) {\n return (\n <>\n <Stack space=\"0.25\">\n <Text\n as=\"h1\"\n variant={{ size: \"2xl-title\", weight: \"bold\" }}\n t=\"error.title\"\n />\n <Text\n as=\"h2\"\n t=\"error.detail\"\n variant={{ color: \"contrast\", weight: \"semibold\" }}\n />\n </Stack>\n <ErrorIcon type={type} />\n </>\n );\n}\n","import { Circle } from \"@slashid/react-primitives\";\nimport { Text } from \"../text\";\n\nconst CheckIcon = () => (\n <Circle>\n <svg\n width=\"21\"\n height=\"18\"\n viewBox=\"0 0 21 18\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.8505 0.705985C20.6342 1.38283 20.7209 2.56684 20.044 3.35055L8.16908 17.1005C7.80192 17.5256 7.2635 17.7637 6.70195 17.7493C6.1404 17.7349 5.61489 17.4695 5.27002 17.0261L0.895049 11.4011C0.259296 10.5837 0.406547 9.4057 1.22394 8.76995C2.04134 8.13419 3.21935 8.28145 3.8551 9.09884L6.82592 12.9185L17.2059 0.89949C17.8828 0.115778 19.0668 0.0291434 19.8505 0.705985Z\"\n fill=\"white\"\n />\n </svg>\n </Circle>\n);\n\n// TODO this view always tells you are logged in, even in cases when you just verify the handle and not have a token\nexport function Success() {\n return (\n <article data-testid=\"sid-form-success-state\">\n <Text\n as=\"h1\"\n t=\"success.title\"\n variant={{ size: \"2xl-title\", weight: \"bold\" }}\n />\n <Text\n as=\"h2\"\n t=\"success.details\"\n variant={{ color: \"contrast\", weight: \"semibold\" }}\n />\n <CheckIcon />\n </article>\n );\n}\n","import { createContext, useContext } from \"react\";\nimport { Logo } from \"@slashid/react-primitives\";\nimport type { SlashID } from \"@slashid/slashid\";\n\nimport { type Language } from \"../../domain/i18n\";\n\nexport type AppState = \"initial\" | \"ready\";\n\ntype AppConfig = {\n logo: string | React.ReactNode;\n language: Language;\n};\n\nexport type AppInitialState = AppConfig & {\n state: \"initial\";\n sdk: undefined;\n};\n\nexport type AppReadyState = AppConfig & {\n state: \"ready\";\n sdk: SlashID;\n};\n\nexport type AppContextState = AppInitialState | AppReadyState;\n\nexport const initialAppContextState: AppContextState = {\n logo: <Logo />,\n language: \"en\",\n state: \"initial\",\n sdk: undefined,\n};\n\nexport const AppContext = createContext<AppContextState>(\n initialAppContextState\n);\n\nexport const useAppContext = () => {\n const appContext = useContext(AppContext);\n\n return appContext;\n};\n","import { useMemo } from \"react\";\nimport { createI18n } from \"../../domain/i18n\";\nimport { useAppContext } from \"../app/app.context\";\n\nexport function useI18n() {\n const { language } = useAppContext();\n\n const i18n = useMemo(() => {\n return createI18n(language);\n }, [language]);\n\n return i18n;\n}\n","import type { InvalidPasswordSubmittedEvent } from \"@slashid/slashid\"\nimport { useEffect, useState } from \"react\"\nimport { PasswordInput, Stack, Text, Button, sprinkles, interpolate } from \"@slashid/react-primitives\"\n\nimport * as styles from \"./flow.css\"\nimport { useI18n } from \"../text/use-i18n\"\nimport { useAppContext } from \"../app/app.context\"\nimport type { TranslationKeys } from \"../../domain/i18n\"\n\nfunction getValidationI18nKey(errorEvent: InvalidPasswordSubmittedEvent): TranslationKeys {\n const textKey = `recover.password.validation.${errorEvent.failedRules[0].name}`\n\n // prefer the first error\n return textKey as TranslationKeys\n}\n\nfunction getValidationInterpolationTokens({\n errorEvent,\n password,\n}: {\n errorEvent: InvalidPasswordSubmittedEvent\n password: string\n}): Record<string, string> {\n const firstRuleToFail = errorEvent.failedRules[0]\n let failingValue = \"\"\n\n if (firstRuleToFail.matchType === \"must_not_match\") {\n const matchResult = firstRuleToFail.regexp.exec(password)\n failingValue = matchResult !== null ? matchResult[0] : \"\"\n }\n\n if (!failingValue) {\n return {}\n }\n\n return {\n ILLEGAL_SEQUENCE: failingValue,\n }\n}\n\nfunction ErrorMessage({ message }: { message: string }) {\n return <span className={styles.errorMessage}>{message}</span>\n}\n\nexport function Recover() {\n const i18n = useI18n()\n const { sdk } = useAppContext()\n const [password, setPassword] = useState(\"\")\n const [passwordConfirm, setPasswordConfirm] = useState(\"\")\n const [error, setError] = useState<string | null>(null)\n const [uiState, setUiState] = useState<\"initial\" | \"submitting\">(\"initial\")\n\n useEffect(() => {\n const onInvalidPassword = (invalidPasswordEvent: InvalidPasswordSubmittedEvent) => {\n setError(\n interpolate(\n i18n(getValidationI18nKey(invalidPasswordEvent)),\n getValidationInterpolationTokens({ errorEvent: invalidPasswordEvent, password })\n )\n )\n setUiState(\"initial\")\n }\n\n sdk?.subscribe(\"invalidPasswordSubmitted\", onInvalidPassword)\n\n return () => {\n sdk?.unsubscribe(\"invalidPasswordSubmitted\", onInvalidPassword)\n }\n }, [i18n, sdk, password, setError])\n\n const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault()\n\n if (!sdk) {\n return\n }\n\n if (!password || password !== passwordConfirm) {\n setError(i18n(\"recover.password.validation.passwordsDoNotMatch\"))\n return\n }\n\n sdk.publish(\"passwordSubmitted\", password)\n setUiState(\"submitting\")\n }\n\n const handlePasswordChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setPassword(event.target.value)\n setError(null)\n }\n\n const handleConfirmPasswordChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setPasswordConfirm(event.target.value)\n setError(null)\n }\n\n return (\n <>\n <Stack space=\"0.25\">\n <Text as=\"h1\" variant={{ size: \"2xl-title\", weight: \"bold\" }} t=\"recover.password.title\" />\n <Text variant={{ color: \"contrast\", weight: \"semibold\" }} as=\"h2\" t=\"recover.password.details\" />\n </Stack>\n <form onSubmit={handleSubmit}>\n <div className={styles.formInputs}>\n <PasswordInput\n id=\"password-input\"\n label={i18n(\"recover.password.input.password.label\")}\n placeholder={i18n(\"recover.password.input.placeholder\")}\n name=\"password\"\n value={password ?? \"\"}\n onChange={handlePasswordChange}\n error={Boolean(error)}\n autoComplete=\"new-password\"\n />\n <PasswordInput\n id=\"password-input-confirm\"\n label={i18n(\"recover.password.input.confirmPassword.label\")}\n placeholder={i18n(\"recover.password.input.placeholder\")}\n name=\"passwordConfirm\"\n value={passwordConfirm ?? \"\"}\n onChange={handleConfirmPasswordChange}\n className={sprinkles({ marginTop: \"4\" })}\n error={Boolean(error)}\n autoComplete=\"new-password\"\n />\n {error && <ErrorMessage message={error} />}\n </div>\n\n <Button\n type=\"submit\"\n variant=\"primary\"\n testId=\"sid-form-initial-submit-button\"\n disabled={uiState === \"submitting\"}\n loading={uiState === \"submitting\"}\n >\n {i18n(\"recover.password.submit\")}\n </Button>\n </form>\n </>\n )\n}\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","r","t","o","clsx","isBrowser","createClassNames","theme","className","THEME_ROOT_CLASS_NAME","themeClass","darkThemeVars","autoThemeVars","lightThemeVars","setThemeRootClassNames","themeRootClassNames","ServerThemeRoot","ClientThemeRoot","hydrated","setHydrated","useLayoutEffect","Fragment","ThemeRoot","Spinner","variant","styles.spinnerVariants","Button","forwardRef","onClick","testId","icon","disabled","loading","forwardedRef","styles.button","styles.buttonDisabled","styles.spinner","styles.icon","BaseInput","id","label","placeholder","autoComplete","onChange","handleChange","useCallback","styles.inputHost","styles.label","styles.input","DARK_MODE","Exclamation","Eye","EyeReveal","Logo","PasswordInput","showPassword","setShowPassword","useState","styles.host","styles.error","styles.passwordRevealButton","Circle","shouldAnimate","styles.background","styles.outerCircleVariants","styles.outerCircleWithAnimation","styles.middleCircleVariants","styles.middleCircleWithAnimation","styles.innerCircleVariants","styles.innerCircleWithAnimation","styles.content","_defineProperty","obj","ownKeys","enumerableOnly","symbols","sym","_objectSpread2","target","shouldApplyCompound","compoundCheck","selections","defaultVariants","_selections$key","createRuntimeFn","options","variantName","_selections$variantNa","variantSelection","selection","selectionClassName","compoundClassName","_toPrimitive","input","hint","prim","res","_toPropertyKey","arg","createSprinkles","composeStyles","_len","_key","sprinklesStyles","sprinklesKeys","shorthandNames","property","sprinklesFn","classNames","shorthands","nonShorthands","hasShorthands","shorthand","sprinkle","propMapping","finalProps","_loop","propValue","prop","responsiveIndex","responsiveValue","conditionName","_conditionName","_value","SprinklesError","message","v","invalidPropValue","possibleValues","breakpointCount","_responsiveValue","_conditionName2","_value2","_ret","classList","createSprinkles$1","Stack","styles.stack","sprinkles","initialContextValue","TextContext","createContext","TextProvider","text","contextValue","useMemo","useText","TOKEN","interpolate","tokens","partialResult","token","Text","as","styles.text","Skeleton","width","height","minHeight","maxHeight","minWidth","maxWidth","container","defaultStrings","I18N","createI18n","language","Loader","Initial","BaseText","ErrorIcon","Error","CheckIcon","Success","initialAppContextState","AppContext","useAppContext","useContext","useI18n","getValidationI18nKey","errorEvent","getValidationInterpolationTokens","password","firstRuleToFail","failingValue","matchResult","ErrorMessage","styles.errorMessage","Recover","i18n","sdk","setPassword","passwordConfirm","setPasswordConfirm","setError","uiState","setUiState","useEffect","onInvalidPassword","invalidPasswordEvent","handleSubmit","event","handlePasswordChange","handleConfirmPasswordChange","styles.formInputs"],"mappings":";;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,IAAiBC,IAAE,OAAO,IAAI,eAAe,GAAEC,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEL,EAAE,mDAAmD,mBAAkBM,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAE,GAAE;AAAC,QAAIC,GAAEC,IAAE,IAAGC,IAAE,MAAKC,IAAE;AAAK,IAAS,MAAT,WAAaD,IAAE,KAAG,IAAYH,EAAE,QAAX,WAAiBG,IAAE,KAAGH,EAAE,MAAcA,EAAE,QAAX,WAAiBI,IAAEJ,EAAE;AAAK,SAAIC,KAAKD;AAAE,MAAAL,EAAE,KAAKK,GAAEC,CAAC,KAAG,CAACJ,EAAE,eAAeI,CAAC,MAAIC,EAAED,CAAC,IAAED,EAAEC,CAAC;AAAG,QAAGF,KAAGA,EAAE;AAAa,WAAIE,KAAKD,IAAED,EAAE,cAAaC;AAAE,QAASE,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAED,EAAEC,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKM,GAAE,KAA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A,YACV,WAAWjE,GAAU,EAAE,WAAW,KAAK;AAAA,YACvC,OAAO,EAAQ9S;AAAA,YACf,cAAa;AAAA,UAAA;AAAA,QACf;AAAA,QACCA,KAASgK,gBAAAA,EAAAA,IAAC8L,IAAa,EAAA,SAAS9V,EAAO,CAAA;AAAA,MAAA,GAC1C;AAAA,MAEAgK,gBAAAA,EAAA;AAAA,QAAC8B;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,QAAO;AAAA,UACP,UAAUyK,MAAY;AAAA,UACtB,SAASA,MAAY;AAAA,UAEpB,YAAK,yBAAyB;AAAA,QAAA;AAAA,MACjC;AAAA,IAAA,GACF;AAAA,EACF,EAAA,CAAA;AAEJ;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]}
@@ -1,6 +1,7 @@
1
+ export { TextProvider, ThemeRoot } from "@slashid/react-primitives";
2
+ export { I18N } from "./domain/i18n";
1
3
  export { Initial } from "./components/flow/flow.initial";
2
4
  export { Error } from "./components/flow/flow.error";
3
5
  export { Success } from "./components/flow/flow.success";
4
6
  export { Recover } from "./components/flow/flow.recover";
5
- export { TextProvider, ThemeRoot } from "@slashid/react-primitives";
6
7
  export type { ErrorType } from "./components/flow/flow.error";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashid/jump-page",
3
- "version": "0.0.8-package.3",
3
+ "version": "0.0.8-package.4",
4
4
  "homepage": "https://slashid.dev",
5
5
  "author": "SlashID",
6
6
  "license": "MIT",