import"./chunk-ETRHX7GZ.mjs";function y(r){return new Error(`[unenv] ${r} is not implemented yet!`)}function e(r){return Object.assign(()=>{throw y(r)},{__unenv__:!0})}function a(r){return class{__unenv__=!0;constructor(){throw new Error(`[unenv] ${r} is not implemented yet!`)}}}var n=globalThis.crypto?.subtle,o=()=>globalThis.crypto?.randomUUID(),p=r=>globalThis.crypto?.getRandomValues(r),_=65536,S=new Proxy(globalThis.crypto,{get(r,t){return t==="CryptoKey"?globalThis.CryptoKey:typeof globalThis.crypto[t]=="function"?globalThis.crypto[t].bind(globalThis.crypto):globalThis.crypto[t]}}),i=(r,t)=>{let c=Buffer.alloc(r,0,void 0);for(let s=0;s<r;s+=_)p(Uint8Array.prototype.subarray.call(c,s,s+_));if(typeof t=="function"){t(null,c);return}return c},E=i,l=i,f=!1,O=e("crypto.checkPrime"),N=e("crypto.checkPrimeSync"),Aa=void 0,Ka=void 0,P=e("crypto.pseudoRandomBytes"),D=e("crypto.createCipheriv"),m=e("crypto.createDecipheriv"),C=e("crypto.createDiffieHellman"),H=e("crypto.createDiffieHellmanGroup"),g=e("crypto.createECDH"),T=e("crypto.createHash"),h=e("crypto.createHmac"),u=e("crypto.createPrivateKey"),I=e("crypto.createPublicKey"),L=e("crypto.createSecretKey"),d=e("crypto.createSign"),R=e("crypto.createVerify"),v=e("crypto.diffieHellman"),A=e("crypto.generatePrime"),K=e("crypto.generatePrimeSync"),b=e("crypto.getCiphers"),G=e("crypto.getCipherInfo"),M=e("crypto.getCurves"),U=e("crypto.getDiffieHellman"),V=e("crypto.getHashes"),k=e("crypto.hkdf"),F=e("crypto.hkdfSync"),B=e("crypto.pbkdf2"),Y=e("crypto.pbkdf2Sync"),X=e("crypto.generateKeyPair"),w=e("crypto.generateKeyPairSync"),j=e("crypto.generateKey"),x=e("crypto.generateKeySync"),q=e("crypto.privateDecrypt"),W=e("crypto.privateEncrypt"),$=e("crypto.publicDecrypt"),Q=e("crypto.publicEncrypt"),Z=e("crypto.randomFill"),z=e("crypto.randomFillSync"),J=e("crypto.randomInt"),ee=e("crypto.scrypt"),ae=e("crypto.scryptSync"),re=e("crypto.sign"),te=e("crypto.setEngine"),se=e("crypto.timingSafeEqual"),ce=e("crypto.getFips"),ie=e("crypto.setFips"),_e=e("crypto.verify"),pe=e("crypto.secureHeapUsed"),ye=e("crypto.hash"),ne=void 0,oe=void 0,Se=a("crypto.Certificate"),Ee=a("crypto.Cipheriv"),le=a("crypto.Decipheriv"),fe=a("crypto.DiffieHellman"),Oe=a("crypto.DiffieHellmanGroup"),Ne=a("crypto.ECDH"),Pe=a("crypto.Hash"),De=a("crypto.Hmac"),me=a("crypto.KeyObject"),Ce=a("crypto.Sign"),He=a("crypto.Verify"),ge=a("crypto.X509Certificate"),Te={OPENSSL_VERSION_NUMBER:0,SSL_OP_ALL:2147485776,SSL_OP_ALLOW_NO_DHE_KEX:1024,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_ENCRYPT_THEN_MAC:524288,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_RENEGOTIATION:1073741824,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:0,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_NO_TLSv1_3:536870912,SSL_OP_PRIORITIZE_CHACHA:2097152,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_RSA:1,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_EC:2048,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,RSA_PKCS1_PADDING:1,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,RSA_PSS_SALTLEN_DIGEST:-1,RSA_PSS_SALTLEN_MAX_SIGN:-2,RSA_PSS_SALTLEN_AUTO:-2,defaultCoreCipherList:"",TLS1_VERSION:0,TLS1_1_VERSION:0,TLS1_2_VERSION:0,TLS1_3_VERSION:0,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,defaultCipherList:""},ba={constants:Te,getRandomValues:p,randomUUID:o,subtle:n,Certificate:Se,Cipher:ne,Cipheriv:Ee,Decipher:oe,Decipheriv:le,DiffieHellman:fe,DiffieHellmanGroup:Oe,ECDH:Ne,Hash:Pe,Hmac:De,KeyObject:me,Sign:Ce,Verify:He,X509Certificate:ge,checkPrime:O,checkPrimeSync:N,createCipheriv:D,createDecipheriv:m,createDiffieHellman:C,createDiffieHellmanGroup:H,createECDH:g,createHash:T,createHmac:h,createPrivateKey:u,createPublicKey:I,createSecretKey:L,createSign:d,createVerify:R,diffieHellman:v,fips:f,generateKey:j,generateKeyPair:X,generateKeyPairSync:w,generateKeySync:x,generatePrime:A,generatePrimeSync:K,getCipherInfo:G,getCiphers:b,getCurves:M,getDiffieHellman:U,getFips:ce,getHashes:V,hash:ye,hkdf:k,hkdfSync:F,pbkdf2:B,pbkdf2Sync:Y,privateDecrypt:q,privateEncrypt:W,pseudoRandomBytes:P,publicDecrypt:$,prng:l,publicEncrypt:Q,randomBytes:i,randomFill:Z,randomFillSync:z,randomInt:J,rng:E,scrypt:ee,scryptSync:ae,secureHeapUsed:pe,setEngine:te,setFips:ie,sign:re,timingSafeEqual:se,verify:_e,webcrypto:S};export{Se as Certificate,ne as Cipher,Ee as Cipheriv,oe as Decipher,le as Decipheriv,fe as DiffieHellman,Oe as DiffieHellmanGroup,Ne as ECDH,Pe as Hash,De as Hmac,me as KeyObject,Ce as Sign,He as Verify,ge as X509Certificate,O as checkPrime,N as checkPrimeSync,Te as constants,Aa as createCipher,D as createCipheriv,Ka as createDecipher,m as createDecipheriv,C as createDiffieHellman,H as createDiffieHellmanGroup,g as createECDH,T as createHash,h as createHmac,u as createPrivateKey,I as createPublicKey,L as createSecretKey,d as createSign,R as createVerify,ba as default,v as diffieHellman,f as fips,j as generateKey,X as generateKeyPair,w as generateKeyPairSync,x as generateKeySync,A as generatePrime,K as generatePrimeSync,G as getCipherInfo,b as getCiphers,M as getCurves,U as getDiffieHellman,ce as getFips,V as getHashes,p as getRandomValues,ye as hash,k as hkdf,F as hkdfSync,B as pbkdf2,Y as pbkdf2Sync,q as privateDecrypt,W as privateEncrypt,l as prng,P as pseudoRandomBytes,$ as publicDecrypt,Q as publicEncrypt,i as randomBytes,Z as randomFill,z as randomFillSync,J as randomInt,o as randomUUID,E as rng,ee as scrypt,ae as scryptSync,pe as secureHeapUsed,te as setEngine,ie as setFips,re as sign,n as subtle,se as timingSafeEqual,_e as verify,S as webcrypto};
