vardoip=function(e,t,A){"use strict";functionr(e){vart=Object.create(null);returne&&Object.keys(e).forEach((function(A){if("default"!==A){varr=Object.getOwnPropertyDescriptor(e,A);Object.defineProperty(t,A,r.get?r:{enumerable:!0,get:function(){returne[A]}})}})),t.default=e,Object.freeze(t)}vari=r(t);consto={ADAPTIVE:"adaptive",ALWAYS:"always",NEVER:"never"},n={ACTIVITYPUB:"activitypub",DNS:"dns",GRAPHQL:"graphql",HTTP:"http",IRC:"irc",MATRIX:"matrix",TELEGRAM:"telegram",XMPP:"xmpp"},a={PLAIN:"plain",HTML:"html",XML:"xml"},s={NONE:"none",NOCORS:"nocors",GRANTED:"granted",SERVER:"server"},c={JSON:"json",TEXT:"text"},I={URI:"uri",FINGERPRINT:"fingerprint"},g={CONTAINS:"contains",EQUALS:"equals",ONEOF:"oneof"},h={INIT:100,MATCHED:101,VERIFIED:200,VERIFIED_VIA_PROXY:201,MATCHING_ERROR:300,NO_MATCHES:301,VERIFICATION_ERROR:400,NO_PROOF_FOUND:401},l={ASP:"asp",OPENPGP:"openpgp"},u={EDDSA:"eddsa",ES256:"es256",OPENPGP:"openpgp",NONE:"none"},B={PEM:"pem",JWK:"jwk",ARMORED_PGP:"armored_pgp",NONE:"none"},f={ASPE:"aspe",HKP:"hkp",WKD:"wkd",HTTP:"http",NONE:"none"};varC=Object.freeze({__proto__:null,ClaimFormat:I,ClaimRelation:g,ClaimStatus:h,EntityEncodingFormat:a,Fetcher:n,ProfileType:l,ProofAccessRestriction:s,ProofFormat:c,ProxyPolicy:o,PublicKeyEncoding:B,PublicKeyFetchMethod:f,PublicKeyType:u});classp{constructor(e,t,A){this.profileVersion=2,this.profileType=e,this.identifier=t,this.personas=A||[],this.primaryPersonaIndex=A.length>0?0:-1,this.publicKey={keyType:u.NONE,encoding:B.NONE,encodedKey:null,key:null,fetch:{method:f.NONE,query:null,resolvedUrl:null}},this.verifiers=[]}addVerifier(e,t){this.verifiers.push({name:e,url:t})}setOpenPgpPublicKey(e){}setJwkPublicKey(e){}toJSON(){return{profileVersion:this.profileVersion,profileType:this.profileType,identifier:this.identifier,personas:this.personas.map((e=>e.toJSON())),primaryPersonaIndex:this.primaryPersonaIndex,publicKey:{keyType:this.publicKey.keyType,encoding:this.publicKey.encoding,encodedKey:this.publicKey.encodedKey,fetch:{method:this.publicKey.fetch.method,query:this.publicKey.fetch.query,resolvedUrl:this.publicKey.fetch.resolvedUrl}},verifiers:this.verifiers}}}classd{constructor(e,t){this.identifier=null,this.name=e,this.email=null,this.description=null,this.avatarUrl=null,this.claims=t,this.isRevoked=!1}setIdentifier(e){this.identifier=e}setDescription(e){this.description=e}setEmailAddress(e){this.email=e}setAvatarUrl(e){this.avatarUrl=e}addClaim(e){this.claims.push(e)}revoke(){this.isRevoked=!0}toJSON(){return{identifier:this.identifier,name:this.name,email:this.email,description:this.description,avatarUrl:this.avatarUrl,isRevoked:this.isRevoked,claims:this.claims.map((e=>e.toJSON()))}}}varE="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{};functionQ(e){returne&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}functionw(e){if(e.__esModule)returne;vart=e.default;if("function"==typeoft){varA=functione(){if(thisinstanceofe){varA=[null];returnA.push.apply(A,arguments),new(Function.bind.apply(t,A))}returnt.apply(this,arguments)};A.prototype=t.prototype}elseA={};returnObject.defineProperty(A,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){varr=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(A,t,r.get?r:{enumerable:!0,get:function(){returne[t]}})})),A}vary={},m={exports:{}};!function(e,t){functionA(e){returnA="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},A(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){vart="string"==typeofe||einstanceofString;if(!t){varr=A(e);thrownull===e?r="null":"object"===r&&(r=e.constructor.name),newTypeError("Expected a string but received a ".concat(r))}},e.exports=t.default,e.exports.default=t.default}(m,m.exports);vark=m.exports,F={};Object.defineProperty(F,"__esModule",{value:!0}),F.co