PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/4949.fbf07ad2.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:40:26 UTC 9,286 bytes, 2 lines download raw bytes

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

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.