1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00674842-2236-5b43-95db-12c833f4642b")}catch(e){}}(); 3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:gensyn_ai_delphi":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5770],{65770:(e,t,r)=>{function n(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function o(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=atob(t.padEnd(t.length+r,"=")),o=new ArrayBuffer(n.length),a=new Uint8Array(o);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);return o}function a(){return i.stubThis(globalThis?.PublicKeyCredential!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}r.r(t),r.d(t,{WebAuthnAbortService:()=>d,WebAuthnError:()=>c,_browserSupportsWebAuthnAutofillInternals:()=>R,_browserSupportsWebAuthnInternals:()=>i,base64URLStringToBuffer:()=>o,browserSupportsWebAuthn:()=>a,browserSupportsWebAuthnAutofill:()=>g,bufferToBase64URLString:()=>n,platformAuthenticatorIsAvailable:()=>E,startAuthentication:()=>w,startRegistration:()=>p});let i={stubThis:e=>e};function s(e){let{id:t}=e;return{...e,id:o(t),transports:e.transports}}function l(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class c extends Error{constructor({message:e,code:t,cause:r,name:n}){super(e,{cause:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??r.name,this.code=t}}class u{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}let d=new u,h=["cross-platform","platform"];function f(e){if(e&&!(0>h.indexOf(e)))return e}async function p(e){let t,r,i,u,h;!e.optionsJSON&&e.challenge&&(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."),e={optionsJSON:e});let{optionsJSON:p,useAutoRegister:g=!1}=e;if(!a())throw Error("WebAuthn is not supported in this browser");let R={...p,challenge:o(p.challenge),user:{...p.user,id:o(p.user.id)},excludeCredentials:p.excludeCredentials?.map(s)},w={};g&&(w.mediation="conditional"),w.publicKey=R,w.signal=d.createNewAbortSignal();try{t=await navigator.credentials.create(w)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new c({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new c({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});else if("conditional"===t.mediation&&r.authenticatorSelection?.userVerification==="required")return new c({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});else if(r.authenticatorSelection?.userVerification==="required")return new c({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else if("InvalidStateError"===e.name)return new c({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new c({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new c(0===r.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!l(t))return new c({message:`${globalThis.location.hostname}
3 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rp.id!==t)return new c({message:`The RP ID "${r.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new c({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new c({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:w})}if(!t)throw Error("Registration was not completed");let{id:E,rawId:A,response:m,type:y}=t;if("function"==typeof m.getTransports&&(i=m.getTransports()),"function"==typeof m.getPublicKeyAlgorithm)try{u=m.getPublicKeyAlgorithm()}catch(e){b("getPublicKeyAlgorithm()",e)}if("function"==typeof m.getPublicKey)try{let e=m.getPublicKey();null!==e&&(h=n(e))}catch(e){b("getPublicKey()",e)}if("function"==typeof m.getAuthenticatorData)try{r=n(m.getAuthenticatorData())}catch(e){b("getAuthenticatorData()",e)}return{id:E,rawId:n(A),response:{attestationObject:n(m.attestationObject),clientDataJSON:n(m.clientDataJSON),transports:i,publicKeyAlgorithm:u,publicKey:h,authenticatorData:r},type:y,clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:f(t.authenticatorAttachment)}}function b(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them. 4`,t)}function g(){if(!a())return R.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?R.stubThis(new Promise(e=>e(!1))):R.stubThis(e.isConditionalMediationAvailable())}let R={stubThis:e=>e};async function w(e){let t,r,i;!e.optionsJSON&&e.challenge&&(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."),e={optionsJSON:e});let{optionsJSON:u,useBrowserAutofill:h=!1,verifyBrowserAutofillInput:p=!0}=e;if(!a())throw Error("WebAuthn is not supported in this browser");u.allowCredentials?.length!==0&&(t=u.allowCredentials?.map(s));let b={...u,challenge:o(u.challenge),allowCredentials:t},R={};if(h){if(!await g())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&p)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');R.mediation="conditional",b.allowCredentials=[]}R.publicKey=b,R.signal=d.createNewAbortSignal();try{r=await navigator.credentials.get(R)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new c({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new c({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!l(t))return new c({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rpId!==t)return new c({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new c({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:R})}if(!r)throw Error("Authentication was not completed");let{id:w,rawId:E,response:A,type:m}=r;return A.userHandle&&(i=n(A.userHandle)),{id:w,rawId:n(E),response:{authenticatorData:n(A.authenticatorData),clientDataJSON:n(A.clientDataJSON),signature:n(A.signature),userHandle:i},type:m,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:f(r.authenticatorAttachment)}}function E(){return a()?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable():new Promise(e=>e(!1))}}}]);
5//# debugId=00674842-2236-5b43-95db-12c833f4642b
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.