@axium/server 0.22.13 → 0.23.0
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/build/client/_app/immutable/chunks/{XdRahthI.js → B1E1cVbi.js} +1 -1
- package/build/client/_app/immutable/chunks/B1E1cVbi.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1E1cVbi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dext3JFj.js → Ci6FLQWx.js} +1 -1
- package/build/client/_app/immutable/chunks/Ci6FLQWx.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ci6FLQWx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJeR1n-B.js +51 -0
- package/build/client/_app/immutable/chunks/DJeR1n-B.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJeR1n-B.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.C5LuJT06.js → app.DajZ-3z_.js} +2 -2
- package/build/client/_app/immutable/entry/app.DajZ-3z_.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DajZ-3z_.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CjB-0vPC.js +1 -0
- package/build/client/_app/immutable/entry/start.CjB-0vPC.js.br +2 -0
- package/build/client/_app/immutable/entry/start.CjB-0vPC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BAsobPu4.js → 1.Bvl_5X3J.js} +1 -1
- package/build/client/_app/immutable/nodes/1.Bvl_5X3J.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Bvl_5X3J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CVudd8x2.js +7 -0
- package/build/client/_app/immutable/nodes/3.CVudd8x2.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CVudd8x2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.eINJOagY.js → 4.Dhj0R0r7.js} +1 -1
- package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CGoBaVII.js +1 -0
- package/build/client/_app/immutable/nodes/5.CGoBaVII.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CGoBaVII.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BbgUOuKV.js → 6.BtB2uWXy.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BtB2uWXy.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BtB2uWXy.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{1-5bszWZCQ.js → 1-C1tGJX1L.js} +2 -2
- package/build/server/chunks/{1-5bszWZCQ.js.map → 1-C1tGJX1L.js.map} +1 -1
- package/build/server/chunks/{3-CGyRgNsB.js → 3-Ds69w-dU.js} +3 -3
- package/build/server/chunks/{3-CGyRgNsB.js.map → 3-Ds69w-dU.js.map} +1 -1
- package/build/server/chunks/{4-BuMxaapL.js → 4-BscEiwUk.js} +3 -3
- package/build/server/chunks/{4-BuMxaapL.js.map → 4-BscEiwUk.js.map} +1 -1
- package/build/server/chunks/{5-BhHQT7ic.js → 5-H0ePIJBE.js} +3 -3
- package/build/server/chunks/{5-BhHQT7ic.js.map → 5-H0ePIJBE.js.map} +1 -1
- package/build/server/chunks/{6-Do2XsDIk.js → 6-BrPpcagX.js} +3 -3
- package/build/server/chunks/{6-Do2XsDIk.js.map → 6-BrPpcagX.js.map} +1 -1
- package/build/server/chunks/{FormDialog-BemX_bll.js → FormDialog-CB-2YGWi.js} +29 -26
- package/build/server/chunks/{FormDialog-BemX_bll.js.map → FormDialog-CB-2YGWi.js.map} +1 -1
- package/build/server/chunks/{Logout-BhQS74v2.js → Logout-LKOt-AST.js} +2 -2
- package/build/server/chunks/{Logout-BhQS74v2.js.map → Logout-LKOt-AST.js.map} +1 -1
- package/build/server/chunks/_page.svelte-B1LK5J87.js +11 -0
- package/build/server/chunks/{_page.svelte-BdL0IPY2.js.map → _page.svelte-B1LK5J87.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Q_wBpED1.js → _page.svelte-CMtkwvbP.js} +3 -3
- package/build/server/chunks/{_page.svelte-Q_wBpED1.js.map → _page.svelte-CMtkwvbP.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Cw9An0SZ.js → _page.svelte-CbI2KxeA.js} +3 -3
- package/build/server/chunks/{_page.svelte-Cw9An0SZ.js.map → _page.svelte-CbI2KxeA.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-D6BUZio7.js → _page.svelte-dZWfu9yR.js} +7 -4
- package/build/server/chunks/_page.svelte-dZWfu9yR.js.map +1 -0
- package/build/server/chunks/{hooks.server-B7iBt6uC.js → hooks.server-BBmyHiWm.js} +169 -152
- package/build/server/chunks/hooks.server-BBmyHiWm.js.map +1 -0
- package/build/server/chunks/{index-wXTeP1jh.js → index-CvHf_GW2.js} +257 -275
- package/build/server/chunks/index-CvHf_GW2.js.map +1 -0
- package/build/server/index.js +3 -3
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +6 -6
- package/build/server/manifest.js.map +1 -1
- package/dist/api/metadata.js +3 -4
- package/dist/api/passkeys.js +1 -1
- package/dist/api/register.js +3 -3
- package/dist/api/users.js +5 -4
- package/dist/apps.d.ts +1 -4
- package/dist/apps.js +0 -5
- package/dist/auth.d.ts +1 -3
- package/dist/auth.js +1 -1
- package/dist/config.d.ts +6 -6
- package/dist/plugins.d.ts +12 -0
- package/dist/plugins.js +8 -0
- package/dist/requests.js +4 -2
- package/package.json +2 -2
- package/web/template.html +0 -3
- package/build/client/_app/immutable/chunks/CiUsfGrc.js +0 -43
- package/build/client/_app/immutable/chunks/CiUsfGrc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CiUsfGrc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dext3JFj.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dext3JFj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XdRahthI.js.br +0 -0
- package/build/client/_app/immutable/chunks/XdRahthI.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.C5LuJT06.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C5LuJT06.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BQJupvGE.js +0 -1
- package/build/client/_app/immutable/entry/start.BQJupvGE.js.br +0 -2
- package/build/client/_app/immutable/entry/start.BQJupvGE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BAsobPu4.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BAsobPu4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C18mc0nK.js +0 -7
- package/build/client/_app/immutable/nodes/3.C18mc0nK.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C18mc0nK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.eINJOagY.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.eINJOagY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DITFCLgK.js +0 -1
- package/build/client/_app/immutable/nodes/5.DITFCLgK.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DITFCLgK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BbgUOuKV.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BbgUOuKV.js.gz +0 -0
- package/build/server/chunks/_page.svelte-BdL0IPY2.js +0 -11
- package/build/server/chunks/_page.svelte-D6BUZio7.js.map +0 -1
- package/build/server/chunks/hooks.server-B7iBt6uC.js.map +0 -1
- package/build/server/chunks/index-wXTeP1jh.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormDialog-BemX_bll.js","sources":["../../../../node_modules/@simplewebauthn/browser/esm/helpers/bufferToBase64URLString.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/base64URLStringToBuffer.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/browserSupportsWebAuthn.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/toPublicKeyCredentialDescriptor.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/isValidDomain.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/webAuthnError.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/identifyRegistrationError.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/webAuthnAbortService.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/toAuthenticatorAttachment.js","../../../../node_modules/@simplewebauthn/browser/esm/methods/startRegistration.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/browserSupportsWebAuthnAutofill.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/identifyAuthenticationError.js","../../../../node_modules/@simplewebauthn/browser/esm/methods/startAuthentication.js","../../../.svelte-kit/adapter-node/chunks/user.js","../../../.svelte-kit/adapter-node/chunks/FormDialog.js"],"sourcesContent":["/**\n * Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various\n * credential response ArrayBuffers to string for sending back to the server as JSON.\n *\n * Helper method to compliment `base64URLStringToBuffer`\n */\nexport function bufferToBase64URLString(buffer) {\n const bytes = new Uint8Array(buffer);\n let str = '';\n for (const charCode of bytes) {\n str += String.fromCharCode(charCode);\n }\n const base64String = btoa(str);\n return base64String.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '');\n}\n","/**\n * Convert from a Base64URL-encoded string to an Array Buffer. Best used when converting a\n * credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or\n * excludeCredentials\n *\n * Helper method to compliment `bufferToBase64URLString`\n */\nexport function base64URLStringToBuffer(base64URLString) {\n // Convert from Base64URL to Base64\n const base64 = base64URLString.replace(/-/g, '+').replace(/_/g, '/');\n /**\n * Pad with '=' until it's a multiple of four\n * (4 - (85 % 4 = 1) = 3) % 4 = 3 padding\n * (4 - (86 % 4 = 2) = 2) % 4 = 2 padding\n * (4 - (87 % 4 = 3) = 1) % 4 = 1 padding\n * (4 - (88 % 4 = 0) = 4) % 4 = 0 padding\n */\n const padLength = (4 - (base64.length % 4)) % 4;\n const padded = base64.padEnd(base64.length + padLength, '=');\n // Convert to a binary string\n const binary = atob(padded);\n // Convert binary string to buffer\n const buffer = new ArrayBuffer(binary.length);\n const bytes = new Uint8Array(buffer);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return buffer;\n}\n","/**\n * Determine if the browser is capable of Webauthn\n */\nexport function browserSupportsWebAuthn() {\n return _browserSupportsWebAuthnInternals.stubThis(globalThis?.PublicKeyCredential !== undefined &&\n typeof globalThis.PublicKeyCredential === 'function');\n}\n/**\n * Make it possible to stub the return value during testing\n * @ignore Don't include this in docs output\n */\nexport const _browserSupportsWebAuthnInternals = {\n stubThis: (value) => value,\n};\n","import { base64URLStringToBuffer } from './base64URLStringToBuffer.js';\nexport function toPublicKeyCredentialDescriptor(descriptor) {\n const { id } = descriptor;\n return {\n ...descriptor,\n id: base64URLStringToBuffer(id),\n /**\n * `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer\n * transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports\n * are fine to pass to WebAuthn since browsers will recognize the new value.\n */\n transports: descriptor.transports,\n };\n}\n","/**\n * A simple test to determine if a hostname is a properly-formatted domain name\n *\n * A \"valid domain\" is defined here: https://url.spec.whatwg.org/#valid-domain\n *\n * Regex sourced from here:\n * https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s15.html\n */\nexport function isValidDomain(hostname) {\n return (\n // Consider localhost valid as well since it's okay wrt Secure Contexts\n hostname === 'localhost' ||\n /^([a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}$/i.test(hostname));\n}\n","/**\n * A custom Error used to return a more nuanced error detailing _why_ one of the eight documented\n * errors in the spec was raised after calling `navigator.credentials.create()` or\n * `navigator.credentials.get()`:\n *\n * - `AbortError`\n * - `ConstraintError`\n * - `InvalidStateError`\n * - `NotAllowedError`\n * - `NotSupportedError`\n * - `SecurityError`\n * - `TypeError`\n * - `UnknownError`\n *\n * Error messages were determined through investigation of the spec to determine under which\n * scenarios a given error would be raised.\n */\nexport class WebAuthnError extends Error {\n constructor({ message, code, cause, name, }) {\n // @ts-ignore: help Rollup understand that `cause` is okay to set\n super(message, { cause });\n Object.defineProperty(this, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.name = name ?? cause.name;\n this.code = code;\n }\n}\n","import { isValidDomain } from './isValidDomain.js';\nimport { WebAuthnError } from './webAuthnError.js';\n/**\n * Attempt to intuit _why_ an error was raised after calling `navigator.credentials.create()`\n */\nexport function identifyRegistrationError({ error, options, }) {\n const { publicKey } = options;\n if (!publicKey) {\n throw Error('options was missing required publicKey property');\n }\n if (error.name === 'AbortError') {\n if (options.signal instanceof AbortSignal) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 16)\n return new WebAuthnError({\n message: 'Registration ceremony was sent an abort signal',\n code: 'ERROR_CEREMONY_ABORTED',\n cause: error,\n });\n }\n }\n else if (error.name === 'ConstraintError') {\n if (publicKey.authenticatorSelection?.requireResidentKey === true) {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 4)\n return new WebAuthnError({\n message: 'Discoverable credentials were required but no available authenticator supported it',\n code: 'ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT',\n cause: error,\n });\n }\n else if (\n // @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024\n options.mediation === 'conditional' &&\n publicKey.authenticatorSelection?.userVerification === 'required') {\n // https://w3c.github.io/webauthn/#sctn-createCredential (Step 22.4)\n return new WebAuthnError({\n message: 'User verification was required during automatic registration but it could not be performed',\n code: 'ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE',\n cause: error,\n });\n }\n else if (publicKey.authenticatorSelection?.userVerification === 'required') {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 5)\n return new WebAuthnError({\n message: 'User verification was required but no available authenticator supported it',\n code: 'ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT',\n cause: error,\n });\n }\n }\n else if (error.name === 'InvalidStateError') {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 20)\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 3)\n return new WebAuthnError({\n message: 'The authenticator was previously registered',\n code: 'ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED',\n cause: error,\n });\n }\n else if (error.name === 'NotAllowedError') {\n /**\n * Pass the error directly through. Platforms are overloading this error beyond what the spec\n * defines and we don't want to overwrite potentially useful error messages.\n */\n return new WebAuthnError({\n message: error.message,\n code: 'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',\n cause: error,\n });\n }\n else if (error.name === 'NotSupportedError') {\n const validPubKeyCredParams = publicKey.pubKeyCredParams.filter((param) => param.type === 'public-key');\n if (validPubKeyCredParams.length === 0) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 10)\n return new WebAuthnError({\n message: 'No entry in pubKeyCredParams was of type \"public-key\"',\n code: 'ERROR_MALFORMED_PUBKEYCREDPARAMS',\n cause: error,\n });\n }\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 2)\n return new WebAuthnError({\n message: 'No available authenticator supported any of the specified pubKeyCredParams algorithms',\n code: 'ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG',\n cause: error,\n });\n }\n else if (error.name === 'SecurityError') {\n const effectiveDomain = globalThis.location.hostname;\n if (!isValidDomain(effectiveDomain)) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 7)\n return new WebAuthnError({\n message: `${globalThis.location.hostname} is an invalid domain`,\n code: 'ERROR_INVALID_DOMAIN',\n cause: error,\n });\n }\n else if (publicKey.rp.id !== effectiveDomain) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 8)\n return new WebAuthnError({\n message: `The RP ID \"${publicKey.rp.id}\" is invalid for this domain`,\n code: 'ERROR_INVALID_RP_ID',\n cause: error,\n });\n }\n }\n else if (error.name === 'TypeError') {\n if (publicKey.user.id.byteLength < 1 || publicKey.user.id.byteLength > 64) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 5)\n return new WebAuthnError({\n message: 'User ID was not between 1 and 64 characters',\n code: 'ERROR_INVALID_USER_ID_LENGTH',\n cause: error,\n });\n }\n }\n else if (error.name === 'UnknownError') {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 1)\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 8)\n return new WebAuthnError({\n message: 'The authenticator was unable to process the specified options, or could not create a new credential',\n code: 'ERROR_AUTHENTICATOR_GENERAL_ERROR',\n cause: error,\n });\n }\n return error;\n}\n","class BaseWebAuthnAbortService {\n constructor() {\n Object.defineProperty(this, \"controller\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n }\n createNewAbortSignal() {\n // Abort any existing calls to navigator.credentials.create() or navigator.credentials.get()\n if (this.controller) {\n const abortError = new Error('Cancelling existing WebAuthn API call for new one');\n abortError.name = 'AbortError';\n this.controller.abort(abortError);\n }\n const newController = new AbortController();\n this.controller = newController;\n return newController.signal;\n }\n cancelCeremony() {\n if (this.controller) {\n const abortError = new Error('Manually cancelling existing WebAuthn API call');\n abortError.name = 'AbortError';\n this.controller.abort(abortError);\n this.controller = undefined;\n }\n }\n}\n/**\n * A service singleton to help ensure that only a single WebAuthn ceremony is active at a time.\n *\n * Users of **@simplewebauthn/browser** shouldn't typically need to use this, but it can help e.g.\n * developers building projects that use client-side routing to better control the behavior of\n * their UX in response to router navigation events.\n */\nexport const WebAuthnAbortService = new BaseWebAuthnAbortService();\n","const attachments = ['cross-platform', 'platform'];\n/**\n * If possible coerce a `string` value into a known `AuthenticatorAttachment`\n */\nexport function toAuthenticatorAttachment(attachment) {\n if (!attachment) {\n return;\n }\n if (attachments.indexOf(attachment) < 0) {\n return;\n }\n return attachment;\n}\n","import { bufferToBase64URLString } from '../helpers/bufferToBase64URLString.js';\nimport { base64URLStringToBuffer } from '../helpers/base64URLStringToBuffer.js';\nimport { browserSupportsWebAuthn } from '../helpers/browserSupportsWebAuthn.js';\nimport { toPublicKeyCredentialDescriptor } from '../helpers/toPublicKeyCredentialDescriptor.js';\nimport { identifyRegistrationError } from '../helpers/identifyRegistrationError.js';\nimport { WebAuthnAbortService } from '../helpers/webAuthnAbortService.js';\nimport { toAuthenticatorAttachment } from '../helpers/toAuthenticatorAttachment.js';\n/**\n * Begin authenticator \"registration\" via WebAuthn attestation\n *\n * @param optionsJSON Output from **@simplewebauthn/server**'s `generateRegistrationOptions()`\n * @param useAutoRegister (Optional) Try to silently create a passkey with the password manager that the user just signed in with. Defaults to `false`.\n */\nexport async function startRegistration(options) {\n // @ts-ignore: Intentionally check for old call structure to warn about improper API call\n if (!options.optionsJSON && options.challenge) {\n console.warn('startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.');\n // @ts-ignore: Reassign the options, passed in as a positional argument, to the expected variable\n options = { optionsJSON: options };\n }\n const { optionsJSON, useAutoRegister = false } = options;\n if (!browserSupportsWebAuthn()) {\n throw new Error('WebAuthn is not supported in this browser');\n }\n // We need to convert some values to Uint8Arrays before passing the credentials to the navigator\n const publicKey = {\n ...optionsJSON,\n challenge: base64URLStringToBuffer(optionsJSON.challenge),\n user: {\n ...optionsJSON.user,\n id: base64URLStringToBuffer(optionsJSON.user.id),\n },\n excludeCredentials: optionsJSON.excludeCredentials?.map(toPublicKeyCredentialDescriptor),\n };\n // Prepare options for `.create()`\n const createOptions = {};\n /**\n * Try to use conditional create to register a passkey for the user with the password manager\n * the user just used to authenticate with. The user won't be shown any prominent UI by the\n * browser.\n */\n if (useAutoRegister) {\n // @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024\n createOptions.mediation = 'conditional';\n }\n // Finalize options\n createOptions.publicKey = publicKey;\n // Set up the ability to cancel this request if the user attempts another\n createOptions.signal = WebAuthnAbortService.createNewAbortSignal();\n // Wait for the user to complete attestation\n let credential;\n try {\n credential = (await navigator.credentials.create(createOptions));\n }\n catch (err) {\n throw identifyRegistrationError({ error: err, options: createOptions });\n }\n if (!credential) {\n throw new Error('Registration was not completed');\n }\n const { id, rawId, response, type } = credential;\n // Continue to play it safe with `getTransports()` for now, even when L3 types say it's required\n let transports = undefined;\n if (typeof response.getTransports === 'function') {\n transports = response.getTransports();\n }\n // L3 says this is required, but browser and webview support are still not guaranteed.\n let responsePublicKeyAlgorithm = undefined;\n if (typeof response.getPublicKeyAlgorithm === 'function') {\n try {\n responsePublicKeyAlgorithm = response.getPublicKeyAlgorithm();\n }\n catch (error) {\n warnOnBrokenImplementation('getPublicKeyAlgorithm()', error);\n }\n }\n let responsePublicKey = undefined;\n if (typeof response.getPublicKey === 'function') {\n try {\n const _publicKey = response.getPublicKey();\n if (_publicKey !== null) {\n responsePublicKey = bufferToBase64URLString(_publicKey);\n }\n }\n catch (error) {\n warnOnBrokenImplementation('getPublicKey()', error);\n }\n }\n // L3 says this is required, but browser and webview support are still not guaranteed.\n let responseAuthenticatorData;\n if (typeof response.getAuthenticatorData === 'function') {\n try {\n responseAuthenticatorData = bufferToBase64URLString(response.getAuthenticatorData());\n }\n catch (error) {\n warnOnBrokenImplementation('getAuthenticatorData()', error);\n }\n }\n return {\n id,\n rawId: bufferToBase64URLString(rawId),\n response: {\n attestationObject: bufferToBase64URLString(response.attestationObject),\n clientDataJSON: bufferToBase64URLString(response.clientDataJSON),\n transports,\n publicKeyAlgorithm: responsePublicKeyAlgorithm,\n publicKey: responsePublicKey,\n authenticatorData: responseAuthenticatorData,\n },\n type,\n clientExtensionResults: credential.getClientExtensionResults(),\n authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment),\n };\n}\n/**\n * Visibly warn when we detect an issue related to a passkey provider intercepting WebAuthn API\n * calls\n */\nfunction warnOnBrokenImplementation(methodName, cause) {\n console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${methodName}. You should report this error to them.\\n`, cause);\n}\n","import { browserSupportsWebAuthn } from './browserSupportsWebAuthn.js';\n/**\n * Determine if the browser supports conditional UI, so that WebAuthn credentials can\n * be shown to the user in the browser's typical password autofill popup.\n */\nexport function browserSupportsWebAuthnAutofill() {\n if (!browserSupportsWebAuthn()) {\n return _browserSupportsWebAuthnAutofillInternals.stubThis(new Promise((resolve) => resolve(false)));\n }\n /**\n * I don't like the `as unknown` here but there's a `declare var PublicKeyCredential` in\n * TS' DOM lib that's making it difficult for me to just go `as PublicKeyCredentialFuture` as I\n * want. I think I'm fine with this for now since it's _supposed_ to be temporary, until TS types\n * have a chance to catch up.\n */\n const globalPublicKeyCredential = globalThis\n .PublicKeyCredential;\n if (globalPublicKeyCredential?.isConditionalMediationAvailable === undefined) {\n return _browserSupportsWebAuthnAutofillInternals.stubThis(new Promise((resolve) => resolve(false)));\n }\n return _browserSupportsWebAuthnAutofillInternals.stubThis(globalPublicKeyCredential.isConditionalMediationAvailable());\n}\n// Make it possible to stub the return value during testing\nexport const _browserSupportsWebAuthnAutofillInternals = {\n stubThis: (value) => value,\n};\n","import { isValidDomain } from './isValidDomain.js';\nimport { WebAuthnError } from './webAuthnError.js';\n/**\n * Attempt to intuit _why_ an error was raised after calling `navigator.credentials.get()`\n */\nexport function identifyAuthenticationError({ error, options, }) {\n const { publicKey } = options;\n if (!publicKey) {\n throw Error('options was missing required publicKey property');\n }\n if (error.name === 'AbortError') {\n if (options.signal instanceof AbortSignal) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 16)\n return new WebAuthnError({\n message: 'Authentication ceremony was sent an abort signal',\n code: 'ERROR_CEREMONY_ABORTED',\n cause: error,\n });\n }\n }\n else if (error.name === 'NotAllowedError') {\n /**\n * Pass the error directly through. Platforms are overloading this error beyond what the spec\n * defines and we don't want to overwrite potentially useful error messages.\n */\n return new WebAuthnError({\n message: error.message,\n code: 'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',\n cause: error,\n });\n }\n else if (error.name === 'SecurityError') {\n const effectiveDomain = globalThis.location.hostname;\n if (!isValidDomain(effectiveDomain)) {\n // https://www.w3.org/TR/webauthn-2/#sctn-discover-from-external-source (Step 5)\n return new WebAuthnError({\n message: `${globalThis.location.hostname} is an invalid domain`,\n code: 'ERROR_INVALID_DOMAIN',\n cause: error,\n });\n }\n else if (publicKey.rpId !== effectiveDomain) {\n // https://www.w3.org/TR/webauthn-2/#sctn-discover-from-external-source (Step 6)\n return new WebAuthnError({\n message: `The RP ID \"${publicKey.rpId}\" is invalid for this domain`,\n code: 'ERROR_INVALID_RP_ID',\n cause: error,\n });\n }\n }\n else if (error.name === 'UnknownError') {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-get-assertion (Step 1)\n // https://www.w3.org/TR/webauthn-2/#sctn-op-get-assertion (Step 12)\n return new WebAuthnError({\n message: 'The authenticator was unable to process the specified options, or could not create a new assertion signature',\n code: 'ERROR_AUTHENTICATOR_GENERAL_ERROR',\n cause: error,\n });\n }\n return error;\n}\n","import { bufferToBase64URLString } from '../helpers/bufferToBase64URLString.js';\nimport { base64URLStringToBuffer } from '../helpers/base64URLStringToBuffer.js';\nimport { browserSupportsWebAuthn } from '../helpers/browserSupportsWebAuthn.js';\nimport { browserSupportsWebAuthnAutofill } from '../helpers/browserSupportsWebAuthnAutofill.js';\nimport { toPublicKeyCredentialDescriptor } from '../helpers/toPublicKeyCredentialDescriptor.js';\nimport { identifyAuthenticationError } from '../helpers/identifyAuthenticationError.js';\nimport { WebAuthnAbortService } from '../helpers/webAuthnAbortService.js';\nimport { toAuthenticatorAttachment } from '../helpers/toAuthenticatorAttachment.js';\n/**\n * Begin authenticator \"login\" via WebAuthn assertion\n *\n * @param optionsJSON Output from **@simplewebauthn/server**'s `generateAuthenticationOptions()`\n * @param useBrowserAutofill (Optional) Initialize conditional UI to enable logging in via browser autofill prompts. Defaults to `false`.\n * @param verifyBrowserAutofillInput (Optional) Ensure a suitable `<input>` element is present when `useBrowserAutofill` is `true`. Defaults to `true`.\n */\nexport async function startAuthentication(options) {\n // @ts-ignore: Intentionally check for old call structure to warn about improper API call\n if (!options.optionsJSON && options.challenge) {\n console.warn('startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.');\n // @ts-ignore: Reassign the options, passed in as a positional argument, to the expected variable\n options = { optionsJSON: options };\n }\n const { optionsJSON, useBrowserAutofill = false, verifyBrowserAutofillInput = true, } = options;\n if (!browserSupportsWebAuthn()) {\n throw new Error('WebAuthn is not supported in this browser');\n }\n // We need to avoid passing empty array to avoid blocking retrieval\n // of public key\n let allowCredentials;\n if (optionsJSON.allowCredentials?.length !== 0) {\n allowCredentials = optionsJSON.allowCredentials?.map(toPublicKeyCredentialDescriptor);\n }\n // We need to convert some values to Uint8Arrays before passing the credentials to the navigator\n const publicKey = {\n ...optionsJSON,\n challenge: base64URLStringToBuffer(optionsJSON.challenge),\n allowCredentials,\n };\n // Prepare options for `.get()`\n const getOptions = {};\n /**\n * Set up the page to prompt the user to select a credential for authentication via the browser's\n * input autofill mechanism.\n */\n if (useBrowserAutofill) {\n if (!(await browserSupportsWebAuthnAutofill())) {\n throw Error('Browser does not support WebAuthn autofill');\n }\n // Check for an <input> with \"webauthn\" in its `autocomplete` attribute\n const eligibleInputs = document.querySelectorAll(\"input[autocomplete$='webauthn']\");\n // WebAuthn autofill requires at least one valid input\n if (eligibleInputs.length < 1 && verifyBrowserAutofillInput) {\n throw Error('No <input> with \"webauthn\" as the only or last value in its `autocomplete` attribute was detected');\n }\n // `CredentialMediationRequirement` doesn't know about \"conditional\" yet as of\n // typescript@4.6.3\n getOptions.mediation = 'conditional';\n // Conditional UI requires an empty allow list\n publicKey.allowCredentials = [];\n }\n // Finalize options\n getOptions.publicKey = publicKey;\n // Set up the ability to cancel this request if the user attempts another\n getOptions.signal = WebAuthnAbortService.createNewAbortSignal();\n // Wait for the user to complete assertion\n let credential;\n try {\n credential = (await navigator.credentials.get(getOptions));\n }\n catch (err) {\n throw identifyAuthenticationError({ error: err, options: getOptions });\n }\n if (!credential) {\n throw new Error('Authentication was not completed');\n }\n const { id, rawId, response, type } = credential;\n let userHandle = undefined;\n if (response.userHandle) {\n userHandle = bufferToBase64URLString(response.userHandle);\n }\n // Convert values to base64 to make it easier to send back to the server\n return {\n id,\n rawId: bufferToBase64URLString(rawId),\n response: {\n authenticatorData: bufferToBase64URLString(response.authenticatorData),\n clientDataJSON: bufferToBase64URLString(response.clientDataJSON),\n signature: bufferToBase64URLString(response.signature),\n userHandle,\n },\n type,\n clientExtensionResults: credential.getClientExtensionResults(),\n authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment),\n };\n}\n","import \"mime\";\nimport * as z from \"zod\";\nimport { startAuthentication, startRegistration } from \"@simplewebauthn/browser\";\nvar Permission;\n(function(Permission2) {\n Permission2[Permission2[\"None\"] = 0] = \"None\";\n Permission2[Permission2[\"Read\"] = 1] = \"Read\";\n Permission2[Permission2[\"Comment\"] = 2] = \"Comment\";\n Permission2[Permission2[\"Edit\"] = 3] = \"Edit\";\n Permission2[Permission2[\"Manage\"] = 5] = \"Manage\";\n})(Permission || (Permission = {}));\n({\n [Permission.None]: \"No Permissions\",\n [Permission.Read]: \"Reader\",\n [Permission.Comment]: \"Commenter\",\n [Permission.Edit]: \"Editor\",\n [Permission.Manage]: \"Manager\"\n});\nconst preferenceSchemas = {\n debug: z.boolean()\n};\nconst preferenceDefaults = {\n debug: false\n};\nconst preferenceLabels = {\n debug: \"Debug mode\"\n};\nfunction zIs(schema, type) {\n return schema.def.type == type;\n}\nconst transports = [\"ble\", \"cable\", \"hybrid\", \"internal\", \"nfc\", \"smart-card\", \"usb\"];\nconst authenticatorAttachment = z.literal([\"platform\", \"cross-platform\"]).optional();\nconst PasskeyRegistration = z.object({\n id: z.string(),\n rawId: z.string(),\n response: z.object({\n clientDataJSON: z.string(),\n attestationObject: z.string(),\n authenticatorData: z.string().optional(),\n transports: z.array(z.enum(transports)).optional(),\n publicKeyAlgorithm: z.number().optional(),\n publicKey: z.string().optional()\n }),\n authenticatorAttachment,\n clientExtensionResults: z.record(z.any(), z.any()),\n type: z.literal(\"public-key\")\n});\nz.object({\n id: z.string(),\n rawId: z.string(),\n response: z.object({\n clientDataJSON: z.string(),\n authenticatorData: z.string(),\n signature: z.string(),\n userHandle: z.string().optional()\n }),\n authenticatorAttachment,\n clientExtensionResults: z.record(z.any(), z.any()),\n type: z.literal(\"public-key\")\n});\nz.object({\n name: z.string().min(1).max(100),\n email: z.email(),\n userId: z.uuid(),\n response: PasskeyRegistration\n});\nz.object({ name: z.string() }).partial();\nz.object({ type: z.literal([\"login\", \"action\"]) });\nz.object({\n id: z.array(z.uuid()).optional(),\n confirm_all: z.boolean().optional()\n});\nconst User = z.object({\n id: z.uuid(),\n name: z.string().min(1, \"Name is required\").max(255, \"Name is too long\"),\n email: z.email(),\n emailVerified: z.date().nullish(),\n image: z.url().nullish(),\n preferences: z.record(z.string(), z.any()),\n roles: z.array(z.string()),\n registeredAt: z.date()\n});\nconst UserChangeable = User.pick({\n name: true,\n email: true,\n image: true,\n preferences: true\n}).partial();\nfunction getUserImage(user) {\n if (user.image)\n return user.image;\n user.name ??= \"\\0\";\n let color = user.name.charCodeAt(0);\n for (let i = 1; i < user.name.length; i++) {\n color *= user.name.charCodeAt(i);\n }\n color &= 12566463;\n const r = color >> 16 & 255;\n const g = color >> 8 & 255;\n const b = color & 255;\n return `data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" style=\"background-color:rgb(${r},${g},${b});display:flex;align-items:center;justify-content:center;\">\n\t\t<text x=\"23\" y=\"28\" style=\"font-family:sans-serif;font-weight:bold;\" fill=\"white\">${user.name.replaceAll(/\\W/g, \"\")[0]}</text>\n\t</svg>`.replaceAll(/[\\t\\n]/g, \"\");\n}\nlet prefix = \"/api/\";\nasync function fetchAPI(method, endpoint, data, ...params) {\n const options = {\n method,\n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\"\n }\n };\n if (method !== \"GET\" && method !== \"HEAD\")\n options.body = JSON.stringify(data);\n const parts = [];\n for (const part of endpoint.split(\"/\")) {\n if (!part.startsWith(\":\")) {\n parts.push(part);\n continue;\n }\n const value = params.shift();\n if (!value)\n throw new Error(`Missing parameter \"${part.slice(1)}\"`);\n parts.push(value);\n }\n const response = await fetch(prefix + parts.join(\"/\"), options);\n if (!response.headers.get(\"Content-Type\")?.includes(\"application/json\")) {\n throw new Error(`Unexpected response type: ${response.headers.get(\"Content-Type\")}`);\n }\n const json = await response.json().catch(() => ({ message: \"Unknown server error (invalid JSON response)\" }));\n if (!response.ok)\n throw new Error(json.message);\n return json;\n}\nasync function login(userId) {\n const options = await fetchAPI(\"OPTIONS\", \"users/:id/auth\", { type: \"login\" }, userId);\n const response = await startAuthentication({ optionsJSON: options });\n return await fetchAPI(\"POST\", \"users/:id/auth\", response, userId);\n}\nasync function elevate(userId) {\n const options = await fetchAPI(\"OPTIONS\", \"users/:id/auth\", { type: \"action\" }, userId);\n const response = await startAuthentication({ optionsJSON: options });\n await fetchAPI(\"POST\", \"users/:id/auth\", response, userId);\n}\nasync function loginByEmail(email) {\n const { id: userId } = await fetchAPI(\"POST\", \"user_id\", {\n using: \"email\",\n value: email\n });\n return await login(userId);\n}\nasync function getCurrentSession() {\n const result = await fetchAPI(\"GET\", \"session\");\n result.created = new Date(result.created);\n result.expires = new Date(result.expires);\n return result;\n}\nasync function getSessions(userId) {\n _checkId(userId);\n const result = await fetchAPI(\"GET\", \"users/:id/sessions\", {}, userId);\n for (const session of result) {\n session.created = new Date(session.created);\n session.expires = new Date(session.expires);\n }\n return result;\n}\nasync function logout(userId, ...sessionId) {\n _checkId(userId);\n const result = await fetchAPI(\"DELETE\", \"users/:id/sessions\", { id: sessionId }, userId);\n for (const session of result) {\n session.created = new Date(session.created);\n session.expires = new Date(session.expires);\n }\n return result;\n}\nasync function logoutAll(userId) {\n _checkId(userId);\n await elevate(userId);\n const result = await fetchAPI(\"DELETE\", \"users/:id/sessions\", { confirm_all: true }, userId);\n for (const session of result) {\n session.created = new Date(session.created);\n session.expires = new Date(session.expires);\n }\n return result;\n}\nasync function logoutCurrentSession() {\n return await fetchAPI(\"DELETE\", \"session\");\n}\nasync function register(_data) {\n const data = z.object({ name: z.string(), email: z.email() }).parse(_data);\n const { options, userId } = await fetchAPI(\"OPTIONS\", \"register\", data);\n const response = await startRegistration({ optionsJSON: options });\n await fetchAPI(\"POST\", \"register\", {\n userId,\n name: data.name,\n email: data.email,\n response\n });\n}\nfunction _checkId(userId) {\n try {\n z.uuid().parse(userId);\n } catch (e) {\n throw e instanceof z.core.$ZodError ? z.prettifyError(e) : e;\n }\n}\nasync function updateUser(userId, data) {\n _checkId(userId);\n const body = await UserChangeable.parseAsync(data).catch((e) => {\n throw e instanceof z.core.$ZodError ? z.prettifyError(e) : e;\n });\n const result = await fetchAPI(\"PATCH\", \"users/:id\", body, userId);\n result.registeredAt = new Date(result.registeredAt);\n if (result.emailVerified)\n result.emailVerified = new Date(result.emailVerified);\n return result;\n}\nasync function deleteUser(userId) {\n _checkId(userId);\n const options = await fetchAPI(\"OPTIONS\", \"users/:id/auth\", { type: \"action\" }, userId);\n const response = await startAuthentication({ optionsJSON: options });\n await fetchAPI(\"POST\", \"users/:id/auth\", response, userId);\n const result = await fetchAPI(\"DELETE\", \"users/:id\", response, userId);\n result.registeredAt = new Date(result.registeredAt);\n result.emailVerified = new Date(result.emailVerified);\n return result;\n}\nasync function emailVerificationEnabled(userId) {\n _checkId(userId);\n const { enabled } = await fetchAPI(\"OPTIONS\", \"users/:id/verify_email\", {}, userId);\n return enabled;\n}\nasync function getPasskeys(userId) {\n _checkId(userId);\n const result = await fetchAPI(\"GET\", \"users/:id/passkeys\", {}, userId);\n for (const passkey of result) {\n passkey.createdAt = new Date(passkey.createdAt);\n }\n return result;\n}\nasync function updatePasskey(passkeyId, data) {\n return await fetchAPI(\"PATCH\", \"passkeys/:id\", data, passkeyId);\n}\nasync function deletePasskey(passkeyId) {\n return await fetchAPI(\"DELETE\", \"passkeys/:id\", {}, passkeyId);\n}\nexport {\n preferenceSchemas as a,\n preferenceLabels as b,\n deletePasskey as c,\n deleteUser as d,\n logoutAll as e,\n updateUser as f,\n getUserImage as g,\n getCurrentSession as h,\n emailVerificationEnabled as i,\n getSessions as j,\n getPasskeys as k,\n logout as l,\n loginByEmail as m,\n logoutCurrentSession as n,\n preferenceDefaults as p,\n register as r,\n updatePasskey as u,\n zIs as z\n};\n","import { u as push, z as spread_attributes, N as bind_props, w as pop, J as copy_payload, K as assign_payload, X as spread_props, Y as attr_class, y as escape_html, Z as clsx } from \"./index.js\";\nconst $$css$1 = {\n hash: \"svelte-cte1mz\",\n code: \"dialog.svelte-cte1mz {border-radius:1em;background:var(--bg-menu);border:1px solid #8888;padding:1em;}dialog.svelte-cte1mz::backdrop {background:#0003;}dialog[open].svelte-cte1mz {\\n\t\tanimation: svelte-cte1mz-zoom 0.25s cubic-bezier(0.35, 1.55, 0.65, 1);}\\n\\n\t@keyframes svelte-cte1mz-zoom {\\n\t\tfrom {\\n\t\t\ttransform: scale(0.95);\\n\t\t}\\n\t\tto {\\n\t\t\ttransform: scale(1);\\n\t\t}\\n\t}dialog[open].svelte-cte1mz::backdrop {\\n\t\tanimation: svelte-cte1mz-fade 0.25s ease-out;}\\n\\n\t@keyframes svelte-cte1mz-fade {\\n\t\tfrom {\\n\t\t\topacity: 0;\\n\t\t}\\n\t\tto {\\n\t\t\topacity: 1;\\n\t\t}\\n\t}\"\n};\nfunction Dialog($$payload, $$props) {\n $$payload.css.add($$css$1);\n push();\n let { children, dialog = void 0, $$slots, $$events, ...rest } = $$props;\n $$payload.out.push(`<dialog${spread_attributes({ ...rest }, \"svelte-cte1mz\")}>`);\n children($$payload);\n $$payload.out.push(`<!----></dialog>`);\n bind_props($$props, { dialog });\n pop();\n}\nconst $$css = {\n hash: \"svelte-p6pltw\",\n code: \".actions.svelte-p6pltw {display:flex;gap:1em;flex-direction:row;justify-content:space-between;}\"\n};\nfunction FormDialog($$payload, $$props) {\n $$payload.css.add($$css);\n push();\n let {\n children,\n dialog = void 0,\n submitText = \"Submit\",\n cancel = () => {\n },\n submit = (data) => Promise.resolve(),\n pageMode = false,\n submitDanger = false,\n header,\n footer,\n $$slots,\n $$events,\n ...rest\n /** Change the text displayed for the submit button */\n /** Basically a callback for when the dialog is canceled */\n /** Called on submission, this should do the actual submission */\n /** Whether to display the dialog as a full-page form */\n } = $$props;\n function onclose(e) {\n e.preventDefault();\n cancel();\n }\n function submitButton($$payload2) {\n $$payload2.out.push(`<button type=\"submit\"${attr_class(clsx([\"submit\", submitDanger && \"danger\"]))}>${escape_html(submitText)}</button>`);\n }\n let $$settled = true;\n let $$inner_payload;\n function $$render_inner($$payload2) {\n Dialog($$payload2, spread_props([\n { onclose },\n rest,\n {\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n children: ($$payload3) => {\n header?.($$payload3);\n $$payload3.out.push(`<!----> <form class=\"main\" method=\"dialog\">`);\n {\n $$payload3.out.push(\"<!--[!-->\");\n }\n $$payload3.out.push(`<!--]--> `);\n children($$payload3);\n $$payload3.out.push(`<!----> `);\n if (pageMode) {\n $$payload3.out.push(\"<!--[-->\");\n submitButton($$payload3);\n } else {\n $$payload3.out.push(\"<!--[!-->\");\n $$payload3.out.push(`<div class=\"actions svelte-p6pltw\"><button type=\"button\">Cancel</button> `);\n submitButton($$payload3);\n $$payload3.out.push(`<!----></div>`);\n }\n $$payload3.out.push(`<!--]--></form> `);\n footer?.($$payload3);\n $$payload3.out.push(`<!---->`);\n },\n $$slots: { default: true }\n }\n ]));\n }\n do {\n $$settled = true;\n $$inner_payload = copy_payload($$payload);\n $$render_inner($$inner_payload);\n } while (!$$settled);\n assign_payload($$payload, $$inner_payload);\n bind_props($$props, { dialog });\n pop();\n}\nexport {\n FormDialog as F\n};\n"],"names":["z.boolean","z.literal","z.object","z.string","z.array","z.enum","z.number","z.record","z.any","z.email","z.uuid","z.date","z.url","z.core.$ZodError","z.prettifyError"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,uBAAuB,CAAC,MAAM,EAAE;AAChD,IAAI,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC;AACxC,IAAI,IAAI,GAAG,GAAG,EAAE;AAChB,IAAI,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE;AAClC,QAAQ,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC;AAC5C,IAAI;AACJ,IAAI,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC;AAClC,IAAI,OAAO,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;AACjF;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,uBAAuB,CAAC,eAAe,EAAE;AACzD;AACA,IAAI,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;AACnD,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,EAAE,GAAG,CAAC;AAChE;AACA,IAAI,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC/B;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AC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AACzC,UAAU,IAAI,QAAQ,EAAE;AACxB,YAAY,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;AAC3C,YAAY,YAAY,CAAC,UAAU,CAAC;AACpC,UAAU,CAAC,MAAM;AACjB,YAAY,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;AAC5C,YAAY,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,yEAAyE,CAAC,CAAC;AAC5G,YAAY,YAAY,CAAC,UAAU,CAAC;AACpC,YAAY,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AAChD,UAAU;AACV,UAAU,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC;AACjD,UAAU,MAAM,GAAG,UAAU,CAAC;AAC9B,UAAU,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACxC,QAAQ,CAAC;AACT,QAAQ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI;AAChC;AACA,KAAK,CAAC,CAAC;AACP,EAAE;AACF,EAAE,GAAG;AACL,IAAI,SAAS,GAAG,IAAI;AACpB,IAAI,eAAe,GAAG,YAAY,CAAC,SAAS,CAAC;AAC7C,IAAI,cAAc,CAAC,eAAe,CAAC;AACnC,EAAE,CAAC,QAAQ,CAAC,SAAS;AACrB,EAAE,cAAc,CAAC,SAAS,EAAE,eAAe,CAAC;AAC5C,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC;AACjC,EAAE,GAAG,EAAE;AACP;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}
|
|
1
|
+
{"version":3,"file":"FormDialog-CB-2YGWi.js","sources":["../../../../node_modules/@simplewebauthn/browser/esm/helpers/bufferToBase64URLString.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/base64URLStringToBuffer.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/browserSupportsWebAuthn.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/toPublicKeyCredentialDescriptor.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/isValidDomain.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/webAuthnError.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/identifyRegistrationError.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/webAuthnAbortService.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/toAuthenticatorAttachment.js","../../../../node_modules/@simplewebauthn/browser/esm/methods/startRegistration.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/browserSupportsWebAuthnAutofill.js","../../../../node_modules/@simplewebauthn/browser/esm/helpers/identifyAuthenticationError.js","../../../../node_modules/@simplewebauthn/browser/esm/methods/startAuthentication.js","../../../.svelte-kit/adapter-node/chunks/user.js","../../../.svelte-kit/adapter-node/chunks/FormDialog.js"],"sourcesContent":["/**\n * Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various\n * credential response ArrayBuffers to string for sending back to the server as JSON.\n *\n * Helper method to compliment `base64URLStringToBuffer`\n */\nexport function bufferToBase64URLString(buffer) {\n const bytes = new Uint8Array(buffer);\n let str = '';\n for (const charCode of bytes) {\n str += String.fromCharCode(charCode);\n }\n const base64String = btoa(str);\n return base64String.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '');\n}\n","/**\n * Convert from a Base64URL-encoded string to an Array Buffer. Best used when converting a\n * credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or\n * excludeCredentials\n *\n * Helper method to compliment `bufferToBase64URLString`\n */\nexport function base64URLStringToBuffer(base64URLString) {\n // Convert from Base64URL to Base64\n const base64 = base64URLString.replace(/-/g, '+').replace(/_/g, '/');\n /**\n * Pad with '=' until it's a multiple of four\n * (4 - (85 % 4 = 1) = 3) % 4 = 3 padding\n * (4 - (86 % 4 = 2) = 2) % 4 = 2 padding\n * (4 - (87 % 4 = 3) = 1) % 4 = 1 padding\n * (4 - (88 % 4 = 0) = 4) % 4 = 0 padding\n */\n const padLength = (4 - (base64.length % 4)) % 4;\n const padded = base64.padEnd(base64.length + padLength, '=');\n // Convert to a binary string\n const binary = atob(padded);\n // Convert binary string to buffer\n const buffer = new ArrayBuffer(binary.length);\n const bytes = new Uint8Array(buffer);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return buffer;\n}\n","/**\n * Determine if the browser is capable of Webauthn\n */\nexport function browserSupportsWebAuthn() {\n return _browserSupportsWebAuthnInternals.stubThis(globalThis?.PublicKeyCredential !== undefined &&\n typeof globalThis.PublicKeyCredential === 'function');\n}\n/**\n * Make it possible to stub the return value during testing\n * @ignore Don't include this in docs output\n */\nexport const _browserSupportsWebAuthnInternals = {\n stubThis: (value) => value,\n};\n","import { base64URLStringToBuffer } from './base64URLStringToBuffer.js';\nexport function toPublicKeyCredentialDescriptor(descriptor) {\n const { id } = descriptor;\n return {\n ...descriptor,\n id: base64URLStringToBuffer(id),\n /**\n * `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer\n * transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports\n * are fine to pass to WebAuthn since browsers will recognize the new value.\n */\n transports: descriptor.transports,\n };\n}\n","/**\n * A simple test to determine if a hostname is a properly-formatted domain name\n *\n * A \"valid domain\" is defined here: https://url.spec.whatwg.org/#valid-domain\n *\n * Regex sourced from here:\n * https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s15.html\n */\nexport function isValidDomain(hostname) {\n return (\n // Consider localhost valid as well since it's okay wrt Secure Contexts\n hostname === 'localhost' ||\n /^([a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}$/i.test(hostname));\n}\n","/**\n * A custom Error used to return a more nuanced error detailing _why_ one of the eight documented\n * errors in the spec was raised after calling `navigator.credentials.create()` or\n * `navigator.credentials.get()`:\n *\n * - `AbortError`\n * - `ConstraintError`\n * - `InvalidStateError`\n * - `NotAllowedError`\n * - `NotSupportedError`\n * - `SecurityError`\n * - `TypeError`\n * - `UnknownError`\n *\n * Error messages were determined through investigation of the spec to determine under which\n * scenarios a given error would be raised.\n */\nexport class WebAuthnError extends Error {\n constructor({ message, code, cause, name, }) {\n // @ts-ignore: help Rollup understand that `cause` is okay to set\n super(message, { cause });\n Object.defineProperty(this, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.name = name ?? cause.name;\n this.code = code;\n }\n}\n","import { isValidDomain } from './isValidDomain.js';\nimport { WebAuthnError } from './webAuthnError.js';\n/**\n * Attempt to intuit _why_ an error was raised after calling `navigator.credentials.create()`\n */\nexport function identifyRegistrationError({ error, options, }) {\n const { publicKey } = options;\n if (!publicKey) {\n throw Error('options was missing required publicKey property');\n }\n if (error.name === 'AbortError') {\n if (options.signal instanceof AbortSignal) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 16)\n return new WebAuthnError({\n message: 'Registration ceremony was sent an abort signal',\n code: 'ERROR_CEREMONY_ABORTED',\n cause: error,\n });\n }\n }\n else if (error.name === 'ConstraintError') {\n if (publicKey.authenticatorSelection?.requireResidentKey === true) {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 4)\n return new WebAuthnError({\n message: 'Discoverable credentials were required but no available authenticator supported it',\n code: 'ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT',\n cause: error,\n });\n }\n else if (\n // @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024\n options.mediation === 'conditional' &&\n publicKey.authenticatorSelection?.userVerification === 'required') {\n // https://w3c.github.io/webauthn/#sctn-createCredential (Step 22.4)\n return new WebAuthnError({\n message: 'User verification was required during automatic registration but it could not be performed',\n code: 'ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE',\n cause: error,\n });\n }\n else if (publicKey.authenticatorSelection?.userVerification === 'required') {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 5)\n return new WebAuthnError({\n message: 'User verification was required but no available authenticator supported it',\n code: 'ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT',\n cause: error,\n });\n }\n }\n else if (error.name === 'InvalidStateError') {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 20)\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 3)\n return new WebAuthnError({\n message: 'The authenticator was previously registered',\n code: 'ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED',\n cause: error,\n });\n }\n else if (error.name === 'NotAllowedError') {\n /**\n * Pass the error directly through. Platforms are overloading this error beyond what the spec\n * defines and we don't want to overwrite potentially useful error messages.\n */\n return new WebAuthnError({\n message: error.message,\n code: 'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',\n cause: error,\n });\n }\n else if (error.name === 'NotSupportedError') {\n const validPubKeyCredParams = publicKey.pubKeyCredParams.filter((param) => param.type === 'public-key');\n if (validPubKeyCredParams.length === 0) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 10)\n return new WebAuthnError({\n message: 'No entry in pubKeyCredParams was of type \"public-key\"',\n code: 'ERROR_MALFORMED_PUBKEYCREDPARAMS',\n cause: error,\n });\n }\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 2)\n return new WebAuthnError({\n message: 'No available authenticator supported any of the specified pubKeyCredParams algorithms',\n code: 'ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG',\n cause: error,\n });\n }\n else if (error.name === 'SecurityError') {\n const effectiveDomain = globalThis.location.hostname;\n if (!isValidDomain(effectiveDomain)) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 7)\n return new WebAuthnError({\n message: `${globalThis.location.hostname} is an invalid domain`,\n code: 'ERROR_INVALID_DOMAIN',\n cause: error,\n });\n }\n else if (publicKey.rp.id !== effectiveDomain) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 8)\n return new WebAuthnError({\n message: `The RP ID \"${publicKey.rp.id}\" is invalid for this domain`,\n code: 'ERROR_INVALID_RP_ID',\n cause: error,\n });\n }\n }\n else if (error.name === 'TypeError') {\n if (publicKey.user.id.byteLength < 1 || publicKey.user.id.byteLength > 64) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 5)\n return new WebAuthnError({\n message: 'User ID was not between 1 and 64 characters',\n code: 'ERROR_INVALID_USER_ID_LENGTH',\n cause: error,\n });\n }\n }\n else if (error.name === 'UnknownError') {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 1)\n // https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 8)\n return new WebAuthnError({\n message: 'The authenticator was unable to process the specified options, or could not create a new credential',\n code: 'ERROR_AUTHENTICATOR_GENERAL_ERROR',\n cause: error,\n });\n }\n return error;\n}\n","class BaseWebAuthnAbortService {\n constructor() {\n Object.defineProperty(this, \"controller\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n }\n createNewAbortSignal() {\n // Abort any existing calls to navigator.credentials.create() or navigator.credentials.get()\n if (this.controller) {\n const abortError = new Error('Cancelling existing WebAuthn API call for new one');\n abortError.name = 'AbortError';\n this.controller.abort(abortError);\n }\n const newController = new AbortController();\n this.controller = newController;\n return newController.signal;\n }\n cancelCeremony() {\n if (this.controller) {\n const abortError = new Error('Manually cancelling existing WebAuthn API call');\n abortError.name = 'AbortError';\n this.controller.abort(abortError);\n this.controller = undefined;\n }\n }\n}\n/**\n * A service singleton to help ensure that only a single WebAuthn ceremony is active at a time.\n *\n * Users of **@simplewebauthn/browser** shouldn't typically need to use this, but it can help e.g.\n * developers building projects that use client-side routing to better control the behavior of\n * their UX in response to router navigation events.\n */\nexport const WebAuthnAbortService = new BaseWebAuthnAbortService();\n","const attachments = ['cross-platform', 'platform'];\n/**\n * If possible coerce a `string` value into a known `AuthenticatorAttachment`\n */\nexport function toAuthenticatorAttachment(attachment) {\n if (!attachment) {\n return;\n }\n if (attachments.indexOf(attachment) < 0) {\n return;\n }\n return attachment;\n}\n","import { bufferToBase64URLString } from '../helpers/bufferToBase64URLString.js';\nimport { base64URLStringToBuffer } from '../helpers/base64URLStringToBuffer.js';\nimport { browserSupportsWebAuthn } from '../helpers/browserSupportsWebAuthn.js';\nimport { toPublicKeyCredentialDescriptor } from '../helpers/toPublicKeyCredentialDescriptor.js';\nimport { identifyRegistrationError } from '../helpers/identifyRegistrationError.js';\nimport { WebAuthnAbortService } from '../helpers/webAuthnAbortService.js';\nimport { toAuthenticatorAttachment } from '../helpers/toAuthenticatorAttachment.js';\n/**\n * Begin authenticator \"registration\" via WebAuthn attestation\n *\n * @param optionsJSON Output from **@simplewebauthn/server**'s `generateRegistrationOptions()`\n * @param useAutoRegister (Optional) Try to silently create a passkey with the password manager that the user just signed in with. Defaults to `false`.\n */\nexport async function startRegistration(options) {\n // @ts-ignore: Intentionally check for old call structure to warn about improper API call\n if (!options.optionsJSON && options.challenge) {\n console.warn('startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.');\n // @ts-ignore: Reassign the options, passed in as a positional argument, to the expected variable\n options = { optionsJSON: options };\n }\n const { optionsJSON, useAutoRegister = false } = options;\n if (!browserSupportsWebAuthn()) {\n throw new Error('WebAuthn is not supported in this browser');\n }\n // We need to convert some values to Uint8Arrays before passing the credentials to the navigator\n const publicKey = {\n ...optionsJSON,\n challenge: base64URLStringToBuffer(optionsJSON.challenge),\n user: {\n ...optionsJSON.user,\n id: base64URLStringToBuffer(optionsJSON.user.id),\n },\n excludeCredentials: optionsJSON.excludeCredentials?.map(toPublicKeyCredentialDescriptor),\n };\n // Prepare options for `.create()`\n const createOptions = {};\n /**\n * Try to use conditional create to register a passkey for the user with the password manager\n * the user just used to authenticate with. The user won't be shown any prominent UI by the\n * browser.\n */\n if (useAutoRegister) {\n // @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024\n createOptions.mediation = 'conditional';\n }\n // Finalize options\n createOptions.publicKey = publicKey;\n // Set up the ability to cancel this request if the user attempts another\n createOptions.signal = WebAuthnAbortService.createNewAbortSignal();\n // Wait for the user to complete attestation\n let credential;\n try {\n credential = (await navigator.credentials.create(createOptions));\n }\n catch (err) {\n throw identifyRegistrationError({ error: err, options: createOptions });\n }\n if (!credential) {\n throw new Error('Registration was not completed');\n }\n const { id, rawId, response, type } = credential;\n // Continue to play it safe with `getTransports()` for now, even when L3 types say it's required\n let transports = undefined;\n if (typeof response.getTransports === 'function') {\n transports = response.getTransports();\n }\n // L3 says this is required, but browser and webview support are still not guaranteed.\n let responsePublicKeyAlgorithm = undefined;\n if (typeof response.getPublicKeyAlgorithm === 'function') {\n try {\n responsePublicKeyAlgorithm = response.getPublicKeyAlgorithm();\n }\n catch (error) {\n warnOnBrokenImplementation('getPublicKeyAlgorithm()', error);\n }\n }\n let responsePublicKey = undefined;\n if (typeof response.getPublicKey === 'function') {\n try {\n const _publicKey = response.getPublicKey();\n if (_publicKey !== null) {\n responsePublicKey = bufferToBase64URLString(_publicKey);\n }\n }\n catch (error) {\n warnOnBrokenImplementation('getPublicKey()', error);\n }\n }\n // L3 says this is required, but browser and webview support are still not guaranteed.\n let responseAuthenticatorData;\n if (typeof response.getAuthenticatorData === 'function') {\n try {\n responseAuthenticatorData = bufferToBase64URLString(response.getAuthenticatorData());\n }\n catch (error) {\n warnOnBrokenImplementation('getAuthenticatorData()', error);\n }\n }\n return {\n id,\n rawId: bufferToBase64URLString(rawId),\n response: {\n attestationObject: bufferToBase64URLString(response.attestationObject),\n clientDataJSON: bufferToBase64URLString(response.clientDataJSON),\n transports,\n publicKeyAlgorithm: responsePublicKeyAlgorithm,\n publicKey: responsePublicKey,\n authenticatorData: responseAuthenticatorData,\n },\n type,\n clientExtensionResults: credential.getClientExtensionResults(),\n authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment),\n };\n}\n/**\n * Visibly warn when we detect an issue related to a passkey provider intercepting WebAuthn API\n * calls\n */\nfunction warnOnBrokenImplementation(methodName, cause) {\n console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${methodName}. You should report this error to them.\\n`, cause);\n}\n","import { browserSupportsWebAuthn } from './browserSupportsWebAuthn.js';\n/**\n * Determine if the browser supports conditional UI, so that WebAuthn credentials can\n * be shown to the user in the browser's typical password autofill popup.\n */\nexport function browserSupportsWebAuthnAutofill() {\n if (!browserSupportsWebAuthn()) {\n return _browserSupportsWebAuthnAutofillInternals.stubThis(new Promise((resolve) => resolve(false)));\n }\n /**\n * I don't like the `as unknown` here but there's a `declare var PublicKeyCredential` in\n * TS' DOM lib that's making it difficult for me to just go `as PublicKeyCredentialFuture` as I\n * want. I think I'm fine with this for now since it's _supposed_ to be temporary, until TS types\n * have a chance to catch up.\n */\n const globalPublicKeyCredential = globalThis\n .PublicKeyCredential;\n if (globalPublicKeyCredential?.isConditionalMediationAvailable === undefined) {\n return _browserSupportsWebAuthnAutofillInternals.stubThis(new Promise((resolve) => resolve(false)));\n }\n return _browserSupportsWebAuthnAutofillInternals.stubThis(globalPublicKeyCredential.isConditionalMediationAvailable());\n}\n// Make it possible to stub the return value during testing\nexport const _browserSupportsWebAuthnAutofillInternals = {\n stubThis: (value) => value,\n};\n","import { isValidDomain } from './isValidDomain.js';\nimport { WebAuthnError } from './webAuthnError.js';\n/**\n * Attempt to intuit _why_ an error was raised after calling `navigator.credentials.get()`\n */\nexport function identifyAuthenticationError({ error, options, }) {\n const { publicKey } = options;\n if (!publicKey) {\n throw Error('options was missing required publicKey property');\n }\n if (error.name === 'AbortError') {\n if (options.signal instanceof AbortSignal) {\n // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 16)\n return new WebAuthnError({\n message: 'Authentication ceremony was sent an abort signal',\n code: 'ERROR_CEREMONY_ABORTED',\n cause: error,\n });\n }\n }\n else if (error.name === 'NotAllowedError') {\n /**\n * Pass the error directly through. Platforms are overloading this error beyond what the spec\n * defines and we don't want to overwrite potentially useful error messages.\n */\n return new WebAuthnError({\n message: error.message,\n code: 'ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY',\n cause: error,\n });\n }\n else if (error.name === 'SecurityError') {\n const effectiveDomain = globalThis.location.hostname;\n if (!isValidDomain(effectiveDomain)) {\n // https://www.w3.org/TR/webauthn-2/#sctn-discover-from-external-source (Step 5)\n return new WebAuthnError({\n message: `${globalThis.location.hostname} is an invalid domain`,\n code: 'ERROR_INVALID_DOMAIN',\n cause: error,\n });\n }\n else if (publicKey.rpId !== effectiveDomain) {\n // https://www.w3.org/TR/webauthn-2/#sctn-discover-from-external-source (Step 6)\n return new WebAuthnError({\n message: `The RP ID \"${publicKey.rpId}\" is invalid for this domain`,\n code: 'ERROR_INVALID_RP_ID',\n cause: error,\n });\n }\n }\n else if (error.name === 'UnknownError') {\n // https://www.w3.org/TR/webauthn-2/#sctn-op-get-assertion (Step 1)\n // https://www.w3.org/TR/webauthn-2/#sctn-op-get-assertion (Step 12)\n return new WebAuthnError({\n message: 'The authenticator was unable to process the specified options, or could not create a new assertion signature',\n code: 'ERROR_AUTHENTICATOR_GENERAL_ERROR',\n cause: error,\n });\n }\n return error;\n}\n","import { bufferToBase64URLString } from '../helpers/bufferToBase64URLString.js';\nimport { base64URLStringToBuffer } from '../helpers/base64URLStringToBuffer.js';\nimport { browserSupportsWebAuthn } from '../helpers/browserSupportsWebAuthn.js';\nimport { browserSupportsWebAuthnAutofill } from '../helpers/browserSupportsWebAuthnAutofill.js';\nimport { toPublicKeyCredentialDescriptor } from '../helpers/toPublicKeyCredentialDescriptor.js';\nimport { identifyAuthenticationError } from '../helpers/identifyAuthenticationError.js';\nimport { WebAuthnAbortService } from '../helpers/webAuthnAbortService.js';\nimport { toAuthenticatorAttachment } from '../helpers/toAuthenticatorAttachment.js';\n/**\n * Begin authenticator \"login\" via WebAuthn assertion\n *\n * @param optionsJSON Output from **@simplewebauthn/server**'s `generateAuthenticationOptions()`\n * @param useBrowserAutofill (Optional) Initialize conditional UI to enable logging in via browser autofill prompts. Defaults to `false`.\n * @param verifyBrowserAutofillInput (Optional) Ensure a suitable `<input>` element is present when `useBrowserAutofill` is `true`. Defaults to `true`.\n */\nexport async function startAuthentication(options) {\n // @ts-ignore: Intentionally check for old call structure to warn about improper API call\n if (!options.optionsJSON && options.challenge) {\n console.warn('startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.');\n // @ts-ignore: Reassign the options, passed in as a positional argument, to the expected variable\n options = { optionsJSON: options };\n }\n const { optionsJSON, useBrowserAutofill = false, verifyBrowserAutofillInput = true, } = options;\n if (!browserSupportsWebAuthn()) {\n throw new Error('WebAuthn is not supported in this browser');\n }\n // We need to avoid passing empty array to avoid blocking retrieval\n // of public key\n let allowCredentials;\n if (optionsJSON.allowCredentials?.length !== 0) {\n allowCredentials = optionsJSON.allowCredentials?.map(toPublicKeyCredentialDescriptor);\n }\n // We need to convert some values to Uint8Arrays before passing the credentials to the navigator\n const publicKey = {\n ...optionsJSON,\n challenge: base64URLStringToBuffer(optionsJSON.challenge),\n allowCredentials,\n };\n // Prepare options for `.get()`\n const getOptions = {};\n /**\n * Set up the page to prompt the user to select a credential for authentication via the browser's\n * input autofill mechanism.\n */\n if (useBrowserAutofill) {\n if (!(await browserSupportsWebAuthnAutofill())) {\n throw Error('Browser does not support WebAuthn autofill');\n }\n // Check for an <input> with \"webauthn\" in its `autocomplete` attribute\n const eligibleInputs = document.querySelectorAll(\"input[autocomplete$='webauthn']\");\n // WebAuthn autofill requires at least one valid input\n if (eligibleInputs.length < 1 && verifyBrowserAutofillInput) {\n throw Error('No <input> with \"webauthn\" as the only or last value in its `autocomplete` attribute was detected');\n }\n // `CredentialMediationRequirement` doesn't know about \"conditional\" yet as of\n // typescript@4.6.3\n getOptions.mediation = 'conditional';\n // Conditional UI requires an empty allow list\n publicKey.allowCredentials = [];\n }\n // Finalize options\n getOptions.publicKey = publicKey;\n // Set up the ability to cancel this request if the user attempts another\n getOptions.signal = WebAuthnAbortService.createNewAbortSignal();\n // Wait for the user to complete assertion\n let credential;\n try {\n credential = (await navigator.credentials.get(getOptions));\n }\n catch (err) {\n throw identifyAuthenticationError({ error: err, options: getOptions });\n }\n if (!credential) {\n throw new Error('Authentication was not completed');\n }\n const { id, rawId, response, type } = credential;\n let userHandle = undefined;\n if (response.userHandle) {\n userHandle = bufferToBase64URLString(response.userHandle);\n }\n // Convert values to base64 to make it easier to send back to the server\n return {\n id,\n rawId: bufferToBase64URLString(rawId),\n response: {\n authenticatorData: bufferToBase64URLString(response.authenticatorData),\n clientDataJSON: bufferToBase64URLString(response.clientDataJSON),\n signature: bufferToBase64URLString(response.signature),\n userHandle,\n },\n type,\n clientExtensionResults: credential.getClientExtensionResults(),\n authenticatorAttachment: toAuthenticatorAttachment(credential.authenticatorAttachment),\n };\n}\n","import * as z from \"zod\";\nimport \"mime\";\nimport { startAuthentication, startRegistration } from \"@simplewebauthn/browser\";\nvar Permission;\n(function(Permission2) {\n Permission2[Permission2[\"None\"] = 0] = \"None\";\n Permission2[Permission2[\"Read\"] = 1] = \"Read\";\n Permission2[Permission2[\"Comment\"] = 2] = \"Comment\";\n Permission2[Permission2[\"Edit\"] = 3] = \"Edit\";\n Permission2[Permission2[\"Manage\"] = 5] = \"Manage\";\n})(Permission || (Permission = {}));\n({\n [Permission.None]: \"No Permissions\",\n [Permission.Read]: \"Reader\",\n [Permission.Comment]: \"Commenter\",\n [Permission.Edit]: \"Editor\",\n [Permission.Manage]: \"Manager\"\n});\nz.object({\n id: z.string(),\n name: z.string().optional(),\n image: z.string().optional(),\n icon: z.string().optional()\n});\nconst transports = [\"ble\", \"cable\", \"hybrid\", \"internal\", \"nfc\", \"smart-card\", \"usb\"];\nconst authenticatorAttachment = z.literal([\"platform\", \"cross-platform\"]).optional();\nconst PasskeyRegistration = z.object({\n id: z.string(),\n rawId: z.string(),\n response: z.object({\n clientDataJSON: z.string(),\n attestationObject: z.string(),\n authenticatorData: z.string().optional(),\n transports: z.array(z.enum(transports)).optional(),\n publicKeyAlgorithm: z.number().optional(),\n publicKey: z.string().optional()\n }),\n authenticatorAttachment,\n clientExtensionResults: z.record(z.any(), z.any()),\n type: z.literal(\"public-key\")\n});\nz.object({\n id: z.string(),\n rawId: z.string(),\n response: z.object({\n clientDataJSON: z.string(),\n authenticatorData: z.string(),\n signature: z.string(),\n userHandle: z.string().optional()\n }),\n authenticatorAttachment,\n clientExtensionResults: z.record(z.any(), z.any()),\n type: z.literal(\"public-key\")\n});\nz.object({ name: z.string() }).partial();\nconst preferenceSchemas = {\n debug: z.boolean()\n};\nconst preferenceDefaults = {\n debug: false\n};\nconst preferenceLabels = {\n debug: \"Debug mode\"\n};\nconst User = z.object({\n id: z.uuid(),\n name: z.string().min(1, \"Name is required\").max(255, \"Name is too long\"),\n email: z.email(),\n emailVerified: z.date().nullish(),\n image: z.url().nullish(),\n preferences: z.record(z.string(), z.any()),\n roles: z.array(z.string()),\n registeredAt: z.date()\n});\nconst UserChangeable = User.pick({\n name: true,\n email: true,\n image: true,\n preferences: true\n}).partial();\nfunction getUserImage(user) {\n if (user.image)\n return user.image;\n user.name ??= \"\\0\";\n let color = user.name.charCodeAt(0);\n for (let i = 1; i < user.name.length; i++) {\n color *= user.name.charCodeAt(i);\n }\n color &= 12566463;\n const r = color >> 16 & 255;\n const g = color >> 8 & 255;\n const b = color & 255;\n return `data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" style=\"background-color:rgb(${r},${g},${b});display:flex;align-items:center;justify-content:center;\">\n\t\t<text x=\"23\" y=\"28\" style=\"font-family:sans-serif;font-weight:bold;\" fill=\"white\">${user.name.replaceAll(/\\W/g, \"\")[0]}</text>\n\t</svg>`.replaceAll(/[\\t\\n]/g, \"\");\n}\nz.object({\n name: z.string().min(1).max(100),\n email: z.email(),\n userId: z.uuid(),\n response: PasskeyRegistration\n});\nz.object({ type: z.literal([\"login\", \"action\"]) });\nz.object({\n id: z.array(z.uuid()).optional(),\n confirm_all: z.boolean().optional()\n});\nlet prefix = \"/api/\";\nasync function fetchAPI(method, endpoint, data, ...params) {\n const options = {\n method,\n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\"\n }\n };\n if (method !== \"GET\" && method !== \"HEAD\")\n options.body = JSON.stringify(data);\n const parts = [];\n for (const part of endpoint.split(\"/\")) {\n if (!part.startsWith(\":\")) {\n parts.push(part);\n continue;\n }\n const value = params.shift();\n if (!value)\n throw new Error(`Missing parameter \"${part.slice(1)}\"`);\n parts.push(value);\n }\n const response = await fetch(prefix + parts.join(\"/\"), options);\n if (!response.headers.get(\"Content-Type\")?.includes(\"application/json\")) {\n throw new Error(`Unexpected response type: ${response.headers.get(\"Content-Type\")}`);\n }\n const json = await response.json().catch(() => ({ message: \"Unknown server error (invalid JSON response)\" }));\n if (!response.ok)\n throw new Error(json.message);\n return json;\n}\nasync function login(userId) {\n const options = await fetchAPI(\"OPTIONS\", \"users/:id/auth\", { type: \"login\" }, userId);\n const response = await startAuthentication({ optionsJSON: options });\n return await fetchAPI(\"POST\", \"users/:id/auth\", response, userId);\n}\nasync function elevate(userId) {\n const options = await fetchAPI(\"OPTIONS\", \"users/:id/auth\", { type: \"action\" }, userId);\n const response = await startAuthentication({ optionsJSON: options });\n await fetchAPI(\"POST\", \"users/:id/auth\", response, userId);\n}\nasync function loginByEmail(email) {\n const { id: userId } = await fetchAPI(\"POST\", \"user_id\", {\n using: \"email\",\n value: email\n });\n return await login(userId);\n}\nasync function getCurrentSession() {\n const result = await fetchAPI(\"GET\", \"session\");\n result.created = new Date(result.created);\n result.expires = new Date(result.expires);\n return result;\n}\nasync function getSessions(userId) {\n _checkId(userId);\n const result = await fetchAPI(\"GET\", \"users/:id/sessions\", {}, userId);\n for (const session of result) {\n session.created = new Date(session.created);\n session.expires = new Date(session.expires);\n }\n return result;\n}\nasync function logout(userId, ...sessionId) {\n _checkId(userId);\n const result = await fetchAPI(\"DELETE\", \"users/:id/sessions\", { id: sessionId }, userId);\n for (const session of result) {\n session.created = new Date(session.created);\n session.expires = new Date(session.expires);\n }\n return result;\n}\nasync function logoutAll(userId) {\n _checkId(userId);\n await elevate(userId);\n const result = await fetchAPI(\"DELETE\", \"users/:id/sessions\", { confirm_all: true }, userId);\n for (const session of result) {\n session.created = new Date(session.created);\n session.expires = new Date(session.expires);\n }\n return result;\n}\nasync function logoutCurrentSession() {\n return await fetchAPI(\"DELETE\", \"session\");\n}\nasync function register(_data) {\n const data = z.object({ name: z.string(), email: z.email() }).parse(_data);\n const { options, userId } = await fetchAPI(\"OPTIONS\", \"register\", data);\n const response = await startRegistration({ optionsJSON: options });\n await fetchAPI(\"POST\", \"register\", {\n userId,\n name: data.name,\n email: data.email,\n response\n });\n}\nfunction _checkId(userId) {\n try {\n z.uuid().parse(userId);\n } catch (e) {\n throw e instanceof z.core.$ZodError ? z.prettifyError(e) : e;\n }\n}\nasync function updateUser(userId, data) {\n _checkId(userId);\n const body = await UserChangeable.parseAsync(data).catch((e) => {\n throw e instanceof z.core.$ZodError ? z.prettifyError(e) : e;\n });\n const result = await fetchAPI(\"PATCH\", \"users/:id\", body, userId);\n result.registeredAt = new Date(result.registeredAt);\n if (result.emailVerified)\n result.emailVerified = new Date(result.emailVerified);\n return result;\n}\nasync function deleteUser(userId) {\n _checkId(userId);\n const options = await fetchAPI(\"OPTIONS\", \"users/:id/auth\", { type: \"action\" }, userId);\n const response = await startAuthentication({ optionsJSON: options });\n await fetchAPI(\"POST\", \"users/:id/auth\", response, userId);\n const result = await fetchAPI(\"DELETE\", \"users/:id\", response, userId);\n result.registeredAt = new Date(result.registeredAt);\n result.emailVerified = new Date(result.emailVerified);\n return result;\n}\nasync function emailVerificationEnabled(userId) {\n _checkId(userId);\n const { enabled } = await fetchAPI(\"OPTIONS\", \"users/:id/verify_email\", {}, userId);\n return enabled;\n}\nasync function getPasskeys(userId) {\n _checkId(userId);\n const result = await fetchAPI(\"GET\", \"users/:id/passkeys\", {}, userId);\n for (const passkey of result) {\n passkey.createdAt = new Date(passkey.createdAt);\n }\n return result;\n}\nasync function updatePasskey(passkeyId, data) {\n return await fetchAPI(\"PATCH\", \"passkeys/:id\", data, passkeyId);\n}\nasync function deletePasskey(passkeyId) {\n return await fetchAPI(\"DELETE\", \"passkeys/:id\", {}, passkeyId);\n}\nexport {\n preferenceSchemas as a,\n preferenceLabels as b,\n deletePasskey as c,\n deleteUser as d,\n logoutAll as e,\n updateUser as f,\n getUserImage as g,\n getCurrentSession as h,\n emailVerificationEnabled as i,\n getSessions as j,\n getPasskeys as k,\n logout as l,\n loginByEmail as m,\n logoutCurrentSession as n,\n preferenceDefaults as p,\n register as r,\n updatePasskey as u\n};\n","import { u as push, z as spread_attributes, N as bind_props, w as pop, J as copy_payload, K as assign_payload, X as spread_props, Y as attr_class, y as escape_html, Z as clsx } from \"./index.js\";\nconst $$css$1 = {\n hash: \"svelte-cte1mz\",\n code: \"dialog.svelte-cte1mz {border-radius:1em;background:var(--bg-menu);border:1px solid #8888;padding:1em;}dialog.svelte-cte1mz::backdrop {background:#0003;}dialog[open].svelte-cte1mz {\\n\t\tanimation: svelte-cte1mz-zoom 0.25s cubic-bezier(0.35, 1.55, 0.65, 1);}\\n\\n\t@keyframes svelte-cte1mz-zoom {\\n\t\tfrom {\\n\t\t\ttransform: scale(0.95);\\n\t\t}\\n\t\tto {\\n\t\t\ttransform: scale(1);\\n\t\t}\\n\t}dialog[open].svelte-cte1mz::backdrop {\\n\t\tanimation: svelte-cte1mz-fade 0.25s ease-out;}\\n\\n\t@keyframes svelte-cte1mz-fade {\\n\t\tfrom {\\n\t\t\topacity: 0;\\n\t\t}\\n\t\tto {\\n\t\t\topacity: 1;\\n\t\t}\\n\t}\"\n};\nfunction Dialog($$payload, $$props) {\n $$payload.css.add($$css$1);\n push();\n let { children, dialog = void 0, $$slots, $$events, ...rest } = $$props;\n $$payload.out.push(`<dialog${spread_attributes({ ...rest }, \"svelte-cte1mz\")}>`);\n children($$payload);\n $$payload.out.push(`<!----></dialog>`);\n bind_props($$props, { dialog });\n pop();\n}\nconst $$css = {\n hash: \"svelte-p6pltw\",\n code: \".actions.svelte-p6pltw {display:flex;gap:1em;flex-direction:row;justify-content:space-between;}\"\n};\nfunction FormDialog($$payload, $$props) {\n $$payload.css.add($$css);\n push();\n let {\n children,\n dialog = void 0,\n submitText = \"Submit\",\n cancel = () => {\n },\n submit = (data) => Promise.resolve(),\n pageMode = false,\n submitDanger = false,\n header,\n footer,\n $$slots,\n $$events,\n ...rest\n /** Change the text displayed for the submit button */\n /** Basically a callback for when the dialog is canceled */\n /** Called on submission, this should do the actual submission */\n /** Whether to display the dialog as a full-page form */\n } = $$props;\n function onclose(e) {\n e.preventDefault();\n cancel();\n }\n function submitButton($$payload2) {\n $$payload2.out.push(`<button type=\"submit\"${attr_class(clsx([\"submit\", submitDanger && \"danger\"]))}>${escape_html(submitText)}</button>`);\n }\n let $$settled = true;\n let $$inner_payload;\n function $$render_inner($$payload2) {\n Dialog($$payload2, spread_props([\n { onclose },\n rest,\n {\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n children: ($$payload3) => {\n header?.($$payload3);\n $$payload3.out.push(`<!----> <form class=\"main\" method=\"dialog\">`);\n {\n $$payload3.out.push(\"<!--[!-->\");\n }\n $$payload3.out.push(`<!--]--> `);\n children($$payload3);\n $$payload3.out.push(`<!----> `);\n if (pageMode) {\n $$payload3.out.push(\"<!--[-->\");\n submitButton($$payload3);\n } else {\n $$payload3.out.push(\"<!--[!-->\");\n $$payload3.out.push(`<div class=\"actions svelte-p6pltw\"><button type=\"button\">Cancel</button> `);\n submitButton($$payload3);\n $$payload3.out.push(`<!----></div>`);\n }\n $$payload3.out.push(`<!--]--></form> `);\n footer?.($$payload3);\n $$payload3.out.push(`<!---->`);\n },\n $$slots: { default: true }\n }\n ]));\n }\n do {\n $$settled = true;\n $$inner_payload = copy_payload($$payload);\n $$render_inner($$inner_payload);\n } while (!$$settled);\n assign_payload($$payload, $$inner_payload);\n bind_props($$props, { dialog });\n pop();\n}\nexport {\n FormDialog as F\n};\n"],"names":["z.object","z.string","z.literal","z.array","z.enum","z.number","z.record","z.any","z.boolean","z.uuid","z.email","z.date","z.url","z.core.$ZodError","z.prettifyError"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,uBAAuB,CAAC,MAAM,EAAE;AAChD,IAAI,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC;AACxC,IAAI,IAAI,GAAG,GAAG,EAAE;AAChB,IAAI,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE;AAClC,QAAQ,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC;AAC5C,IAAI;AACJ,IAAI,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC;AAClC,IAAI,OAAO,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;AACjF;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,uBAAuB,CAAC,eAAe,EAAE;AACzD;AACA,IAAI,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;AACnD,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC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AAU,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC;AACjC,EAAE,GAAG,EAAE;AACP;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as push, F as copy_payload, G as assign_payload, W as bind_props, w as pop } from './index-RTKpMYZ1.js';
|
|
2
|
-
import { F as FormDialog, i as logoutCurrentSession } from './FormDialog-
|
|
2
|
+
import { F as FormDialog, i as logoutCurrentSession } from './FormDialog-CB-2YGWi.js';
|
|
3
3
|
|
|
4
4
|
function Logout($$payload, $$props) {
|
|
5
5
|
push();
|
|
@@ -42,4 +42,4 @@ function Logout($$payload, $$props) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export { Logout as L };
|
|
45
|
-
//# sourceMappingURL=Logout-
|
|
45
|
+
//# sourceMappingURL=Logout-LKOt-AST.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logout-
|
|
1
|
+
{"version":3,"file":"Logout-LKOt-AST.js","sources":["../../../.svelte-kit/adapter-node/chunks/Logout.js"],"sourcesContent":["import { J as copy_payload, K as assign_payload, N as bind_props, w as pop, u as push } from \"./index.js\";\nimport { n as logoutCurrentSession } from \"./user.js\";\nimport { F as FormDialog } from \"./FormDialog.js\";\nfunction Logout($$payload, $$props) {\n push();\n let { dialog = void 0, fullPage = false } = $$props;\n let $$settled = true;\n let $$inner_payload;\n function $$render_inner($$payload2) {\n FormDialog($$payload2, {\n pageMode: fullPage,\n submitText: \"Log Out\",\n submit: () => logoutCurrentSession().then(() => window.location.href = \"/\"),\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n children: ($$payload3) => {\n $$payload3.out.push(`<p>Are you sure you want to log out?</p> `);\n if (fullPage) {\n $$payload3.out.push(\"<!--[-->\");\n $$payload3.out.push(`<button>Take me back</button>`);\n } else {\n $$payload3.out.push(\"<!--[!-->\");\n }\n $$payload3.out.push(`<!--]-->`);\n },\n $$slots: { default: true }\n });\n }\n do {\n $$settled = true;\n $$inner_payload = copy_payload($$payload);\n $$render_inner($$inner_payload);\n } while (!$$settled);\n assign_payload($$payload, $$inner_payload);\n bind_props($$props, { dialog });\n pop();\n}\nexport {\n Logout as L\n};\n"],"names":[],"mappings":";;;AAGA,SAAS,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE;AACpC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,OAAO;AACrD,EAAE,IAAI,SAAS,GAAG,IAAI;AACtB,EAAE,IAAI,eAAe;AACrB,EAAE,SAAS,cAAc,CAAC,UAAU,EAAE;AACtC,IAAI,UAAU,CAAC,UAAU,EAAE;AAC3B,MAAM,QAAQ,EAAE,QAAQ;AACxB,MAAM,UAAU,EAAE,SAAS;AAC3B,MAAM,MAAM,EAAE,MAAM,oBAAoB,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC;AACjF,MAAM,IAAI,MAAM,GAAG;AACnB,QAAQ,OAAO,MAAM;AACrB,MAAM,CAAC;AACP,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE;AAC1B,QAAQ,MAAM,GAAG,OAAO;AACxB,QAAQ,SAAS,GAAG,KAAK;AACzB,MAAM,CAAC;AACP,MAAM,QAAQ,EAAE,CAAC,UAAU,KAAK;AAChC,QAAQ,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,yCAAyC,CAAC,CAAC;AACxE,QAAQ,IAAI,QAAQ,EAAE;AACtB,UAAU,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;AACzC,UAAU,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,6BAA6B,CAAC,CAAC;AAC9D,QAAQ,CAAC,MAAM;AACf,UAAU,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;AAC1C,QAAQ;AACR,QAAQ,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AACvC,MAAM,CAAC;AACP,MAAM,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI;AAC9B,KAAK,CAAC;AACN,EAAE;AACF,EAAE,GAAG;AACL,IAAI,SAAS,GAAG,IAAI;AACpB,IAAI,eAAe,GAAG,YAAY,CAAC,SAAS,CAAC;AAC7C,IAAI,cAAc,CAAC,eAAe,CAAC;AACnC,EAAE,CAAC,QAAQ,CAAC,SAAS;AACrB,EAAE,cAAc,CAAC,SAAS,EAAE,eAAe,CAAC;AAC5C,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC;AACjC,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { L as Logout } from './Logout-LKOt-AST.js';
|
|
2
|
+
import './index-RTKpMYZ1.js';
|
|
3
|
+
import './FormDialog-CB-2YGWi.js';
|
|
4
|
+
import './index-CvHf_GW2.js';
|
|
5
|
+
|
|
6
|
+
function _page($$payload) {
|
|
7
|
+
Logout($$payload, { fullPage: true });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { _page as default };
|
|
11
|
+
//# sourceMappingURL=_page.svelte-B1LK5J87.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-
|
|
1
|
+
{"version":3,"file":"_page.svelte-B1LK5J87.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/logout/_page.svelte.js"],"sourcesContent":["import \"clsx\";\nimport { L as Logout } from \"../../../chunks/Logout.js\";\nfunction _page($$payload) {\n Logout($$payload, { fullPage: true });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;AAEA,SAAS,KAAK,CAAC,SAAS,EAAE;AAC1B,EAAE,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACvC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { K as head, u as push, F as copy_payload, G as assign_payload, W as bind_props, w as pop } from './index-RTKpMYZ1.js';
|
|
2
|
-
import { F as FormDialog, h as loginByEmail } from './FormDialog-
|
|
3
|
-
import './index-
|
|
2
|
+
import { F as FormDialog, h as loginByEmail } from './FormDialog-CB-2YGWi.js';
|
|
3
|
+
import './index-CvHf_GW2.js';
|
|
4
4
|
|
|
5
5
|
const $$css = {
|
|
6
6
|
hash: "svelte-16cw95q",
|
|
@@ -65,4 +65,4 @@ function _page($$payload) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export { _page as default };
|
|
68
|
-
//# sourceMappingURL=_page.svelte-
|
|
68
|
+
//# sourceMappingURL=_page.svelte-CMtkwvbP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-
|
|
1
|
+
{"version":3,"file":"_page.svelte-CMtkwvbP.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/login/_page.svelte.js"],"sourcesContent":["import { J as copy_payload, K as assign_payload, N as bind_props, w as pop, u as push, V as head } from \"../../../chunks/index.js\";\nimport { m as loginByEmail } from \"../../../chunks/user.js\";\nimport { F as FormDialog } from \"../../../chunks/FormDialog.js\";\nconst $$css = {\n hash: \"svelte-16cw95q\",\n code: \".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}\"\n};\nfunction Login($$payload, $$props) {\n $$payload.css.add($$css);\n push();\n let { dialog = void 0, fullPage = false } = $$props;\n function submit(data) {\n if (typeof data.email != \"string\") {\n throw \"Tried to upload a file for an email. Huh?!\";\n }\n return loginByEmail(data.email);\n }\n let $$settled = true;\n let $$inner_payload;\n function $$render_inner($$payload2) {\n {\n let footer = function($$payload3) {\n if (fullPage) {\n $$payload3.out.push(\"<!--[-->\");\n $$payload3.out.push(`<div class=\"footer svelte-16cw95q\"><a href=\"/register\">Register instead</a></div>`);\n } else {\n $$payload3.out.push(\"<!--[!-->\");\n }\n $$payload3.out.push(`<!--]-->`);\n };\n FormDialog($$payload2, {\n submitText: \"Login\",\n submit,\n pageMode: fullPage,\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n footer,\n children: ($$payload3) => {\n $$payload3.out.push(`<div><label for=\"email\">Email</label> <input name=\"email\" type=\"email\" required/></div>`);\n },\n $$slots: { footer: true, default: true }\n });\n }\n }\n do {\n $$settled = true;\n $$inner_payload = copy_payload($$payload);\n $$render_inner($$inner_payload);\n } while (!$$settled);\n assign_payload($$payload, $$inner_payload);\n bind_props($$props, { dialog });\n pop();\n}\nfunction _page($$payload) {\n head($$payload, ($$payload2) => {\n $$payload2.title = `<title>Login</title>`;\n });\n Login($$payload, { fullPage: true });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;AAGA,MAAM,KAAK,GAAG;AACd,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE;AACR,CAAC;AACD,SAAS,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE;AACnC,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;AAC1B,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,OAAO;AACrD,EAAE,SAAS,MAAM,CAAC,IAAI,EAAE;AACxB,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,IAAI,QAAQ,EAAE;AACvC,MAAM,MAAM,4CAA4C;AACxD,IAAI;AACJ,IAAI,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;AACnC,EAAE;AACF,EAAE,IAAI,SAAS,GAAG,IAAI;AACtB,EAAE,IAAI,eAAe;AACrB,EAAE,SAAS,cAAc,CAAC,UAAU,EAAE;AACtC,IAAI;AACJ,MAAM,IAAI,MAAM,GAAG,SAAS,UAAU,EAAE;AACxC,QAA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G,EAAE;AACP;AACA,SAAS,KAAK,CAAC,SAAS,EAAE;AAC1B,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,KAAK;AAClC,IAAI,UAAU,CAAC,KAAK,GAAG,CAAC,oBAAoB,CAAC;AAC7C,EAAE,CAAC,CAAC;AACJ,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACtC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { K as head, u as push, F as copy_payload, G as assign_payload, W as bind_props, w as pop } from './index-RTKpMYZ1.js';
|
|
2
|
-
import { F as FormDialog, r as register } from './FormDialog-
|
|
3
|
-
import './index-
|
|
2
|
+
import { F as FormDialog, r as register } from './FormDialog-CB-2YGWi.js';
|
|
3
|
+
import './index-CvHf_GW2.js';
|
|
4
4
|
|
|
5
5
|
const $$css = {
|
|
6
6
|
hash: "svelte-16cw95q",
|
|
@@ -59,4 +59,4 @@ function _page($$payload) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export { _page as default };
|
|
62
|
-
//# sourceMappingURL=_page.svelte-
|
|
62
|
+
//# sourceMappingURL=_page.svelte-CbI2KxeA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-
|
|
1
|
+
{"version":3,"file":"_page.svelte-CbI2KxeA.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/register/_page.svelte.js"],"sourcesContent":["import { J as copy_payload, K as assign_payload, N as bind_props, w as pop, u as push, V as head } from \"../../../chunks/index.js\";\nimport { r as register } from \"../../../chunks/user.js\";\nimport { F as FormDialog } from \"../../../chunks/FormDialog.js\";\nconst $$css = {\n hash: \"svelte-16cw95q\",\n code: \".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}\"\n};\nfunction Register($$payload, $$props) {\n $$payload.css.add($$css);\n push();\n let { dialog = void 0, fullPage = false } = $$props;\n let $$settled = true;\n let $$inner_payload;\n function $$render_inner($$payload2) {\n {\n let footer = function($$payload3) {\n if (fullPage) {\n $$payload3.out.push(\"<!--[-->\");\n $$payload3.out.push(`<div class=\"footer svelte-16cw95q\"><a href=\"/login\">Login instead</a></div>`);\n } else {\n $$payload3.out.push(\"<!--[!-->\");\n }\n $$payload3.out.push(`<!--]-->`);\n };\n FormDialog($$payload2, {\n submitText: \"Register\",\n submit: register,\n pageMode: fullPage,\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n footer,\n children: ($$payload3) => {\n $$payload3.out.push(`<div><label for=\"name\">Display Name</label> <input name=\"name\" type=\"text\" required/></div> <div><label for=\"email\">Email</label> <input name=\"email\" type=\"email\" required/></div>`);\n },\n $$slots: { footer: true, default: true }\n });\n }\n }\n do {\n $$settled = true;\n $$inner_payload = copy_payload($$payload);\n $$render_inner($$inner_payload);\n } while (!$$settled);\n assign_payload($$payload, $$inner_payload);\n bind_props($$props, { dialog });\n pop();\n}\nfunction _page($$payload) {\n head($$payload, ($$payload2) => {\n $$payload2.title = `<title>Sign Up</title>`;\n });\n Register($$payload, { fullPage: true });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;AAGA,MAAM,KAAK,GAAG;AACd,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE;AACR,CAAC;AACD,SAAS,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE;AACtC,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;AAC1B,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,OAAO;AACrD,EAAE,IAAI,SAAS,GAAG,IAAI;AACtB,EAAE,IAAI,eAAe;AACrB,EAAE,SAAS,cAAc,CAAC,UAAU,EAAE;AACtC,IAAI;AACJ,MAAM,IAAI,MAAM,GAAG,SAAS,UAAU,EAAE;AACxC,QAAQ,IAAI,QAAQ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AG,EAAE;AACP;AACA,SAAS,KAAK,CAAC,SAAS,EAAE;AAC1B,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,KAAK;AAClC,IAAI,UAAU,CAAC,KAAK,GAAG,CAAC,sBAAsB,CAAC;AAC/C,EAAE,CAAC,CAAC;AACJ,EAAE,QAAQ,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACzC;;;;"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { u as push, F as copy_payload, G as assign_payload, w as pop, J as ensure_array_like, K as head, N as attr, y as escape_html, O as stringify, P as css_props, Q as attr_style, T as spread_attributes, V as props_id, W as bind_props, X as maybe_selected } from './index-RTKpMYZ1.js';
|
|
2
|
-
import { g as getUserImage, F as FormDialog, p as preferenceSchemas, a as preferenceLabels,
|
|
3
|
-
import './index-
|
|
2
|
+
import { g as getUserImage, F as FormDialog, p as preferenceSchemas, a as preferenceLabels, b as preferenceDefaults, d as deleteUser, u as updatePasskey, c as deletePasskey, l as logout, e as logoutAll, f as updateUser } from './FormDialog-CB-2YGWi.js';
|
|
3
|
+
import './index-CvHf_GW2.js';
|
|
4
4
|
import { g as getByString, p as pick } from './string-DCbyDSv6.js';
|
|
5
|
-
import { L as Logout } from './Logout-
|
|
5
|
+
import { L as Logout } from './Logout-LKOt-AST.js';
|
|
6
6
|
|
|
7
|
+
function zIs(schema, type) {
|
|
8
|
+
return schema.def.type == type;
|
|
9
|
+
}
|
|
7
10
|
const $$css$4 = {
|
|
8
11
|
hash: "svelte-1l501sr",
|
|
9
12
|
code: "svg.svelte-1l501sr {width:var(--size, 1em);height:var(--size, 1em);display:inline-block;fill:var(--fill, hsl(var(--hue) 0 var(--fg-light)));}"
|
|
@@ -633,4 +636,4 @@ function _page($$payload, $$props) {
|
|
|
633
636
|
}
|
|
634
637
|
|
|
635
638
|
export { _page as default };
|
|
636
|
-
//# sourceMappingURL=_page.svelte-
|
|
639
|
+
//# sourceMappingURL=_page.svelte-dZWfu9yR.js.map
|