"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runtimeSupportsWebCryptoKeyAlg = runtimeSupportsWebCryptoKeyAlg; /** * Use SubtleCrypto.supports() to understand if the runtime supports using the given key algorithm * for signature verification. */ function runtimeSupportsWebCryptoKeyAlg(alg) { const globalSubtleCrypto = globalThis.SubtleCrypto; if (typeof globalSubtleCrypto.supports !== 'function') { return false; } try { return globalSubtleCrypto.supports('verify', alg); } catch (_err) { return false; } }