globalThis.process={browser:!0,env:{}},function(e,a){if("object"==typeofexports&&"object"==typeofmodule)module.exports=a();elseif("function"==typeofdefine&&define.amd)define([],a);else{varc=a();for(varfinc)("object"==typeofexports?exports:e)[f]=c[f]}}(self,(()=>(()=>{var__webpack_modules__={8176:(e,a,c)=>{constf=c(6613);a.cidForWeb=e=>{leta=newf(e);0===a.version&&(a=a.toV1());letc=a.toString("base32");if(c.length>63){conste=a.toString("base36");if(e.length<=63)returne;thrownewTypeError("CID is longer than DNS limit of 63 characters and is not compatible with public gateways")}returnc},a.cidV0ToV1Base32=e=>{leta=newf(e);return0===a.version&&(a=a.toV1()),a.toString("base32")}},1810:(e,a,c)=>{constf=c(2021),d=c(4243),{hexStringToBuffer:b,profiles:t}=c(5262),{cidForWeb:i,cidV0ToV1Base32:r}=c(8176);e.exports={helpers:{cidForWeb:i,cidV0ToV1Base32:r},decode:function(e){consta=b(e),c=f.getCodec(a),d=f.rmPrefix(a);leti=t[c];returni||(i=t.default),i.decode(d)},fromIpfs:function(e){returnthis.encode("ipfs-ns",e)},fromSkylink:function(e){returnthis.encode("skynet-ns",e)},fromSwarm:function(e){returnthis.encode("swarm-ns",e)},fromArweave:function(e){returnthis.encode("arweave-ns",e)},encode:function(e,a){letc=t[e];c||(c=t.default);constb=c.encode(a);returnd.toHexString(f.addPrefix(e,b))},getCodec:function(e){leta=b(e);returnf.getCodec(a)}}},5262:(e,a,c)=>{varf=c(8287).Buffer;constd=c(6613),b=c(4243),t=c(8127),i=e=>{leta=e.slice(0,2),c=e.slice(2),f="";returnf="0x"===a?c:e,b.fromHexString(f)},r=e=>{try{const{multihash:a}=e;if(a.length<38){conste=b.decode(a);if("identity"===e.name&&e.length<36)return!1}return!0}catch(e){return!1}},n={skynet:e=>t.toUint8Array(e),swarm:e=>{consta=b.encode(i(e),"keccak-256");returnnewd(1,"swarm-manifest",a).bytes},ipfs:e=>newd(e).toV1().bytes,ipns:e=>{consta=newd(e);if(!r(a))throwError("ipns-ns allows only valid cryptographic libp2p-key identifiers, try using ED25519 pubkey instead");returnnewd(1,"libp2p-key",a.multihash).bytes},utf8:e=>f.from(e,"utf8"),arweave:e=>t.toUint8Array(e)},o={hexMultiHash:e=>{consta=newd(e);returnb.decode(a.multihash).digest.toString("hex")},ipfs:e=>{consta=newd(e).toV1();returna.toString("libp2p-key"===a.codec?"base36":"base32")},ipns:e=>{consta=newd(e).toV1();returnr(a)?a.toString("base36"):(console.warn("[ensdomains/content-hash] use of non-cryptographic identifiers in ipns-ns is deprecated and will be removed, migrate to ED25519 libp2p-key"),String(b.decode(newd(e).multihash).digest))},utf8:e=>e.toString("utf8"),base64:e=>t.fromUint8Array(e,!0)},s={"skynet-ns":{encode:n.skynet,decode:o.base64},"swarm-ns":{encode:n.swarm,decode:o.hexMultiHash},"ipfs-ns":{encode:n.ipfs,decode:o.ipfs},"ipns-ns":{encode:n.ipns,decode:o.ipns},"arweave-ns":{encode:n.arweave,decode:o.base64},default:{encode:n.utf8,decode:o.utf8}};a.hexStringToBuffer=i,a.profiles=s},5084:e=>{"use strict";e.exports=function(e){if(e.length>=255)thrownewTypeError("Alphabet too long");for(vara=newUint8Array(256),c=0;c<a.length;c++)a[c]=255;for(varf=0;f<e.length;f++){vard=e.charAt(f),b=d.charCodeAt(0);if(255!==a[b])thrownewTypeError(d+" is ambiguous");a[b]=f}vart=e.length,i=e.charAt(0),r=Math.log(t)/Math.log(256),n=Math.log(256)/Math.log(t);functiono(e){if("string"!=typeofe)thrownewTypeError("Expected String");if(0===e.length)returnnewUint8Array;varc=0;if(" "!==e[c]){for(varf=0,d=0;e[c]===i;)f++,c++;for(varb=(e.length-c)*r+1>>>0,n=newUint8Array(b);e[c];){varo=a[e.charCodeAt(c)];if(255===o)return;for(vars=0,l=b-1;(0!==o||s<d)&&-1!==l;l--,s++)o+=t*n[l]>>>0,n[l]=o%256>>>0,o=o/256>>>0;if(0!==o)thrownewError("Non-zero carry");d=s,c++}if(" "!==e[c]){for(varh=b-d;h!==b&&0===n[h];)h++;for(varu=newUint8Array(f+(b-h)),x=f;h!==b;)u[x++]=n[h++];returnu}}}return{encode:function(a){if(ainstanceofUint8Array||(ArrayBuffer.isView(a)?a=newUint8Array(a.buffer,a.byteOffset,a.byteLength):Array.isArray(a)&&(a=Uint8Array.from(a))),!(ainstanceofUint8Array))thrownewTypeError("Expected Uint8Array");if(0===a.length)return"";for(varc=0,f=0,d=0,b=a.length;d