(function(){function e(e,t){try{const n=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=n}catch(e){}}const t="PasskeyInteractionHandler";const n=new Uint8Array([234,155,141,102,77,1,29,33,60,228,182,180,140,181,117,212]);function r(e){if(e.byteLength!==n.byteLength){return false}for(let t=0;t<e.byteLength;t++){if(e[t]!==n[t]){return false}}return true}const i=navigator.credentials;const c={get:function(n){if(!n?.publicKey){return i.get(n)}e(t,{event:"getRequested"});return i.get(n).then((r=>{if(r&&r instanceof PublicKeyCredential){const i=n.publicKey.rpId??document.location.host;e(t,{event:"getResolved",credential_id:r.id,rp_id:i})}return r}))},create:function(n){if(!n?.publicKey){return i.create(n)}e(t,{event:"createRequested"});return i.create(n).then((n=>{if(n&&n instanceof PublicKeyCredential&&n.response instanceof AuthenticatorAttestationResponse){const i=new Uint8Array(n.response.getAuthenticatorData().slice(37).slice(0,16));e(t,{event:r(i)?"createResolvedGpm":"createResolvedNonGpm"})}return n}))},preventSilentAccess:function(){return i.preventSilentAccess()},store:function(e){return i.store(e)}};Object.defineProperty(navigator,"credentials",{value:c})})();