You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
1.7 MiB

  1. (function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.Ipfs = factory()}(typeof self !== 'undefined' ? self : this, function () {
  2. var Ipfs=(()=>{var bbe=Object.create;var O3=Object.defineProperty;var vbe=Object.getOwnPropertyDescriptor;var wbe=Object.getOwnPropertyNames;var _be=Object.getPrototypeOf,Ebe=Object.prototype.hasOwnProperty;var XO=t=>O3(t,"__esModule",{value:!0});var Ea=typeof require!="undefined"?require:t=>{throw new Error('Dynamic require of "'+t+'" is not supported')};var bt=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zt=(t,e)=>{XO(t);for(var r in e)O3(t,r,{get:e[r],enumerable:!0})},Sbe=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wbe(e))!Ebe.call(t,i)&&i!=="default"&&O3(t,i,{get:()=>e[i],enumerable:!(r=vbe(e,i))||r.enumerable});return t},M=t=>Sbe(XO(O3(t!=null?bbe(_be(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var JO=m(k3=>{l();"use strict";k3.byteLength=Abe;k3.toByteArray=Tbe;k3.fromByteArray=Cbe;var Sa=[],qs=[],xbe=typeof Uint8Array!="undefined"?Uint8Array:Array,iw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(El=0,QO=iw.length;El<QO;++El)Sa[El]=iw[El],qs[iw.charCodeAt(El)]=El;var El,QO;qs["-".charCodeAt(0)]=62;qs["_".charCodeAt(0)]=63;function ZO(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function Abe(t){var e=ZO(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Ibe(t,e,r){return(e+r)*3/4-r}function Tbe(t){var e,r=ZO(t),i=r[0],n=r[1],s=new xbe(Ibe(t,i,n)),o=0,a=n>0?i-4:i,c;for(c=0;c<a;c+=4)e=qs[t.charCodeAt(c)]<<18|qs[t.charCodeAt(c+1)]<<12|qs[t.charCodeAt(c+2)]<<6|qs[t.charCodeAt(c+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return n===2&&(e=qs[t.charCodeAt(c)]<<2|qs[t.charCodeAt(c+1)]>>4,s[o++]=e&255),n===1&&(e=qs[t.charCodeAt(c)]<<10|qs[t.charCodeAt(c+1)]<<4|qs[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Rbe(t){return Sa[t>>18&63]+Sa[t>>12&63]+Sa[t>>6&63]+Sa[t&63]}function Pbe(t,e,r){for(var i,n=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),n.push(Rbe(i));return n.join("")}function Cbe(t){for(var e,r=t.length,i=r%3,n=[],s=16383,o=0,a=r-i;o<a;o+=s)n.push(Pbe(t,o,o+s>a?a:o+s));return i===1?(e=t[r-1],n.push(Sa[e>>2]+Sa[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push(Sa[e>>10]+Sa[e>>4&63]+Sa[e<<2&63]+"=")),n.join("")}});var ek=m(nw=>{l();nw.read=function(t,e,r,i,n){var s,o,a=n*8-i-1,c=(1<<a)-1,u=c>>1,f=-7,d=r?n-1:0,h=r?-1:1,p=t[e+d];for(d+=h,s=p&(1<<-f)-1,p>>=-f,f+=a;f>0;s=s*256+t[e+d],d+=h,f-=8);for(o=s&(1<<-f)-1,s>>=-f,f+=i;f>0;o=o*256+t[e+d],d+=h,f-=8);if(s===0)s=1-u;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,i),s=s-u}return(p?-1:1)*o*Math.pow(2,s-i)};nw.write=function(t,e,r,i,n,s){var o,a,c,u=s*8-n-1,f=(1<<u)-1,d=f>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,y=i?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+d>=1?e+=h/c:e+=h*Math.pow(2,1-d),e*c>=2&&(o++,c/=2),o+d>=f?(a=0,o=f):o+d>=1?(a=(e*c-1)*Math.pow(2,n),o=o+d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;t[r+p]=a&255,p+=y,a/=256,n-=8);for(o=o<<n|a,u+=n;u>0;t[r+p]=o&255,p+=y,o/=256,u-=8);t[r+p-y]|=b*128}});var Ht=m(Bh=>{l();"use strict";var sw=JO(),Oh=ek(),tk=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Bh.Buffer=pe;Bh.SlowBuffer=Mbe;Bh.INSPECT_MAX_BYTES=50;var D3=2147483647;Bh.kMaxLength=D3;pe.TYPED_ARRAY_SUPPORT=Obe();!pe.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Obe(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(t){return!1}}Object.defineProperty(pe.prototype,"parent",{enumerable:!0,get:function(){if(!!pe.isBuffer(this))return this.buffer}
  3. Following code pattern:
  4. if (CID.isCID(value)) {
  5. doSomethingWithCID(value)
  6. }
  7. Is replaced with:
  8. const cid = CID.asCID(value)
  9. if (cid) {
  10. // Make sure to use cid instead of value
  11. doSomethingWithCID(cid)
  12. }
  13. `});var Ju,gN,H2=bt(()=>{l();Bn();Ju=({name:t,code:e,encode:r})=>new gN(t,e,r),gN=class{constructor(e,r,i){this.name=e,this.code=r,this.encode=i}async digest(e){if(e instanceof Uint8Array){let r=await this.encode(e);return N2(this.code,r)}else throw Error("Unknown type, must be binary type")}}});var G2={};zt(G2,{identity:()=>_s});var _s,Gc=bt(()=>{l();H2();$u();_s=Ju({name:"identity",code:0,encode:t=>Us(t)})});var Zw={};zt(Zw,{identity:()=>dve});var dve,bN=bt(()=>{l();Pa();$u();dve=W3({prefix:"\0",name:"identity",encode:t=>Nw(t),decode:t=>Bw(t)})});var Jw={};zt(Jw,{base2:()=>hve});var hve,vN=bt(()=>{l();Pa();hve=Qr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var e9={};zt(e9,{base8:()=>pve});var pve,wN=bt(()=>{l();Pa();pve=Qr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var t9={};zt(t9,{base10:()=>yve});var yve,_N=bt(()=>{l();Pa();yve=Wu({prefix:"9",name:"base10",alphabet:"0123456789"})});var a6={};zt(a6,{base16:()=>gve,base16upper:()=>mve});var gve,mve,r9=bt(()=>{l();Pa();gve=Qr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),mve=Qr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var c6={};zt(c6,{base36:()=>bve,base36upper:()=>vve});var bve,vve,i9=bt(()=>{l();Pa();bve=Wu({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),vve=Wu({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var e0={};zt(e0,{base64:()=>wve,base64pad:()=>_ve,base64url:()=>Eve,base64urlpad:()=>Sve});var wve,_ve,Eve,Sve,$2=bt(()=>{l();Pa();wve=Qr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),_ve=Qr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Eve=Qr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Sve=Qr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var zs={};zt(zs,{sha256:()=>dr,sha512:()=>n9});var EN,dr,n9,di=bt(()=>{l();H2();EN=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),dr=Ju({name:"sha2-256",code:18,encode:EN("SHA-256")}),n9=Ju({name:"sha2-512",code:19,encode:EN("SHA-512")})});var W2={};zt(W2,{code:()=>Pi,decode:()=>Ive,encode:()=>Ave,name:()=>xve});var xve,Pi,Ave,Ive,Hs=bt(()=>{l();$u();xve="raw",Pi=85,Ave=t=>Us(t),Ive=t=>Us(t)});var o9={};zt(o9,{code:()=>s9,decode:()=>Ove,encode:()=>Cve,name:()=>Pve});var Tve,Rve,Pve,s9,Cve,Ove,a9=bt(()=>{l();Tve=new TextEncoder,Rve=new TextDecoder,Pve="json",s9=512,Cve=t=>Tve.encode(JSON.stringify(t)),Ove=t=>JSON.parse(Rve.decode(t))});var Y2=bt(()=>{l();Te();G3();$u();H2();Bn()});var kl,u6,f6,l6=bt(()=>{l();bN();vN();wN();_N();r9();yn();i9();li();$2();di();Gc();Hs();a9();Y2();kl={...Zw,...Jw,...e9,...t9,...a6,...Yu,...c6,...Fs,...e0},u6={...zs,...G2},f6={raw:W2,json:o9}});function AN(t,e,r,i){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:i}}}var IN,c9,kve,d6,u9=bt(()=>{l();l6();IN=AN("utf8","u",t=>{let e=new TextDecoder("utf8");return"u"+e.decode(t)},t=>new TextEncoder().encode(t.substring(1))),c9=AN("ascii","a",t=>{let e="a";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);let e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),kve={utf8:IN,"utf-8":IN,hex:kl.base16,latin1:c9,ascii:c9,binary:c9,...kl},d6=kve});var bi={};zt(bi,{fromString:()=>Xe});function Xe(t,e="utf8"){let r=d6[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.decoder.decode(`${r.prefix}${t}`)}var dt=bt(()=>{l();u9()});var l9=m((int,RN)=>{l();"use strict";var TN="[a-fA-F\\d:]",rf=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${TN})|(?<=${TN})(?=\\s|$))`:"",Uo="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",vi="[a-fA-F\\d]{1,4}",h6=`
  14. (?:
  15. (?:${vi}:){7}(?:${vi}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  16. (?:${vi}:){6}(?:${Uo}|:${vi}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  17. (?:${vi}:){5}(?::${Uo}|(?::${vi}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  18. (?:${vi}:){4}(?:(?::${vi}){0,1}:${Uo}|(?::${vi}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  19. (?:${vi}:){3}(?:(?::${vi}){0,2}:${Uo}|(?::${vi}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  20. (?:${vi}:){2}(?:(?::${vi}){0,3}:${Uo}|(?::${vi}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  21. (?:${vi}:){1}(?:(?::${vi}){0,4}:${Uo}|(?::${vi}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  22. (?::(?:(?::${vi}){0,5}:${Uo}|(?::${vi}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  23. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  24. `.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Dve=new RegExp(`(?:^${Uo}$)|(?:^${h6}$)`),Bve=new RegExp(`^${Uo}$`),Nve=new RegExp(`^${h6}$`),f9=t=>t&&t.exact?Dve:new RegExp(`(?:${rf(t)}${Uo}${rf(t)})|(?:${rf(t)}${h6}${rf(t)})`,"g");f9.v4=t=>t&&t.exact?Bve:new RegExp(`${rf(t)}${Uo}${rf(t)}`,"g");f9.v6=t=>t&&t.exact?Nve:new RegExp(`${rf(t)}${h6}${rf(t)}`,"g");RN.exports=f9});var CN=m((nnt,PN)=>{l();"use strict";var d9=l9(),i0=t=>d9({exact:!0}).test(t);i0.v4=t=>d9.v4({exact:!0}).test(t);i0.v6=t=>d9.v6({exact:!0}).test(t);i0.version=t=>i0(t)?i0.v4(t)?4:6:void 0;PN.exports=i0});var hr={};zt(hr,{toString:()=>Ge});function Ge(t,e="utf8"){let r=d6[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.encoder.encode(t).substring(1)}var tt=bt(()=>{l();u9()});var NN=m((ont,BN)=>{l();"use strict";var h9=CN(),{toString:ON}=(tt(),hr),Mve=h9,p9=h9.v4,kN=h9.v6,DN=function(t,e,r){r=~~r;let i;if(p9(t))i=e||new Uint8Array(r+4),t.split(/\./g).map(function(n){i[r++]=parseInt(n,10)&255});else if(kN(t)){let n=t.split(":",8),s;for(s=0;s<n.length;s++){let o=p9(n[s]),a;o&&(a=DN(n[s]),n[s]=ON(a.slice(0,2),"base16")),a&&++s<8&&n.splice(s,0,ON(a.slice(2,4),"base16"))}if(n[0]==="")for(;n.length<8;)n.unshift("0");else if(n[n.length-1]==="")for(;n.length<8;)n.push("0");else if(n.length<8){for(s=0;s<n.length&&n[s]!=="";s++);let o=[s,"1"];for(s=9-n.length;s>0;s--)o.push("0");n.splice.apply(n,o)}for(i=e||new Uint8Array(r+16),s=0;s<n.length;s++){let o=parseInt(n[s],16);i[r++]=o>>8&255,i[r++]=o&255}}if(!i)throw Error("Invalid ip address: "+t);return i},Lve=function(t,e,r){e=~~e,r=r||t.length-e;let i=[],n,s=new DataView(t.buffer);if(r===4){for(let o=0;o<r;o++)i.push(t[e+o]);n=i.join(".")}else if(r===16){for(let o=0;o<r;o+=2)i.push(s.getUint16(e+o).toString(16));n=i.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};BN.exports={isIP:Mve,isV4:p9,isV6:kN,toBytes:DN,toString:Lve}});var X2=m((ant,LN)=>{l();"use strict";function Zn(t){if(typeof t=="number"){if(Zn.codes[t])return Zn.codes[t];throw new Error("no protocol with code: "+t)}else if(typeof t=="string"){if(Zn.names[t])return Zn.names[t];throw new Error("no protocol with name: "+t)}throw new Error("invalid protocol id type: "+t)}var Gs=-1;Zn.lengthPrefixedVarSize=Gs;Zn.V=Gs;Zn.table=[[4,32,"ip4"],[6,16,"tcp"],[33,16,"dccp"],[41,128,"ip6"],[42,Gs,"ip6zone"],[53,Gs,"dns","resolvable"],[54,Gs,"dns4","resolvable"],[55,Gs,"dns6","resolvable"],[56,Gs,"dnsaddr","resolvable"],[132,16,"sctp"],[273,16,"udp"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[277,0,"p2p-stardust"],[290,0,"p2p-circuit"],[301,0,"udt"],[302,0,"utp"],[400,Gs,"unix",!1,"path"],[421,Gs,"ipfs"],[421,Gs,"p2p"],[443,0,"https"],[444,96,"onion"],[445,296,"onion3"],[446,Gs,"garlic64"],[460,0,"quic"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[480,0,"http"],[777,Gs,"memory"]];Zn.names={};Zn.codes={};Zn.table.map(t=>{let e=MN.apply(null,t);return Zn.codes[e.code]=e,Zn.names[e.name]=e,null});Zn.object=MN;function MN(t,e,r,i,n){return{code:t,size:e,name:r,resolvable:Boolean(i),path:Boolean(n)}}LN.exports=Zn});var UN=m((cnt,jN)=>{l();jN.exports=y9;var qN=128,qve=127,jve=~qve,Uve=Math.pow(2,31);function y9(t,e,r){if(Number.MAX_SAFE_INTEGER&&t>Number.MAX_SAFE_INTEGER)throw y9.bytes=0,new RangeError("Could not encode varint");e=e||[],r=r||0;for(var i=r;t>=Uve;)e[r++]=t&255|qN,t/=128;for(;t&jve;)e[r++]=t&255|qN,t>>>=7;return e[r]=t|0,y9.bytes=r-i+1,e}});var VN=m((unt,KN)=>{l();KN.exports=g9;var Fve=128,FN=127;function g9(t,e){var r=0,e=e||0,i=0,n=e,s,o=t.length;do{if(n>=o||i>49)throw g9.bytes=0,new RangeError("Could not decode varint");s=t[n++],r+=i<28?(s&FN)<<i:(s&FN)*Math.pow(2,i),i+=7}while(s>=Fve);return g9.bytes=n-e,r}});var HN=m((fnt,zN)=>{l();var Kve=Math.pow(2,7),Vve=Math.pow(2,14),zve=Math.pow(2,21),Hve=Math.pow(2,28),Gve=Math.pow(2,35),$ve=Math.pow(2,42),Wve=Math.pow(2,49),Yve=Math.pow(2,56),Xve=Math.pow(2,63);zN.exports=function(t){return t<Kve?1:t<Vve?2:t<zve?3:t<Hve?4:t<Gve?5:t<$ve?6:t<Wve?7:t<Yve?8:t<Xve?9:10}});var Es=m((lnt,GN)=>{l();GN.exports={encode:UN(),decode:
  25. `)}return i};e_.decode=function(t,e){if(typeof t!="string")throw new TypeError('"input" must be a string.');if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');var r=rq[e];if(!r){r=rq[e]=[];for(var i=0;i<e.length;++i)r[e.charCodeAt(i)]=i}t=t.replace(/\s/g,"");for(var n=e.length,s=e.charAt(0),o=[0],i=0;i<t.length;i++){var a=r[t.charCodeAt(i)];if(a===void 0)return;for(var c=0,u=a;c<o.length;++c)u+=o[c]*n,o[c]=u&255,u>>=8;for(;u>0;)o.push(u&255),u>>=8}for(var f=0;t[f]===s&&f<t.length-1;++f)o.push(0);return typeof Buffer!="undefined"?Buffer.from(o.reverse()):new Uint8Array(o.reverse())};function Pwe(t,e){var r=0,i=e.length,n=e.charAt(0),s=[0];for(r=0;r<t.length();++r){for(var o=0,a=t.at(r);o<s.length;++o)a+=s[o]<<8,s[o]=a%i,a=a/i|0;for(;a>0;)s.push(a%i),a=a/i|0}var c="";for(r=0;t.at(r)===0&&r<t.length()-1;++r)c+=n;for(r=s.length-1;r>=0;--r)c+=e[s[r]];return c}});var nr=m((Sst,cq)=>{l();var sq=yt(),oq=nq(),se=cq.exports=sq.util=sq.util||{};(function(){if(typeof process!="undefined"&&process.nextTick&&!process.browser){se.nextTick=process.nextTick,typeof setImmediate=="function"?se.setImmediate=setImmediate:se.setImmediate=se.nextTick;return}if(typeof setImmediate=="function"){se.setImmediate=function(){return setImmediate.apply(void 0,arguments)},se.nextTick=function(a){return setImmediate(a)};return}if(se.setImmediate=function(a){setTimeout(a,0)},typeof window!="undefined"&&typeof window.postMessage=="function"){let a=function(c){if(c.source===window&&c.data===t){c.stopPropagation();var u=e.slice();e.length=0,u.forEach(function(f){f()})}};var o=a,t="forge.setImmediate",e=[];se.setImmediate=function(c){e.push(c),e.length===1&&window.postMessage(t,"*")},window.addEventListener("message",a,!0)}if(typeof MutationObserver!="undefined"){var r=Date.now(),i=!0,n=document.createElement("div"),e=[];new MutationObserver(function(){var c=e.slice();e.length=0,c.forEach(function(u){u()})}).observe(n,{attributes:!0});var s=se.setImmediate;se.setImmediate=function(c){Date.now()-r>15?(r=Date.now(),s(c)):(e.push(c),e.length===1&&n.setAttribute("a",i=!i))}}se.nextTick=se.setImmediate})();se.isNodejs=typeof process!="undefined"&&process.versions&&process.versions.node;se.globalScope=function(){return se.isNodejs?globalThis:typeof self=="undefined"?window:self}();se.isArray=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};se.isArrayBuffer=function(t){return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer};se.isArrayBufferView=function(t){return t&&se.isArrayBuffer(t.buffer)&&t.byteLength!==void 0};function dy(t){if(!(t===8||t===16||t===24||t===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+t)}se.ByteBuffer=t_;function t_(t){if(this.data="",this.read=0,typeof t=="string")this.data=t;else if(se.isArrayBuffer(t)||se.isArrayBufferView(t))if(typeof Buffer!="undefined"&&t instanceof Buffer)this.data=t.toString("binary");else{var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(i){for(var r=0;r<e.length;++r)this.putByte(e[r])}}else(t instanceof t_||typeof t=="object"&&typeof t.data=="string"&&typeof t.read=="number")&&(this.data=t.data,this.read=t.read);this._constructedStringLength=0}se.ByteStringBuffer=t_;var Cwe=4096;se.ByteStringBuffer.prototype._optimizeConstructedString=function(t){this._constructedStringLength+=t,this._constructedStringLength>Cwe&&(this.data.substr(0,1),this._constructedStringLength=0)};se.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};se.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};se.ByteStringBuffer.prototype.putByte=function(t){return this.putBytes(String.fromCharCode(t))};se.ByteStringBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(var r=this.data;e>0;)e&1&&(r+=t),e>>>=1,e>0&&(t+=t);return this.data=r,this._optimizeConstructedString(e),this};se.ByteStringBuffer.prototype.putBytes=function(t){return this.data+=t,this._optimizeConstructedString(t.length),this};se.ByteStringBuffer.prototype.putString=function(t){return this.putBytes(se
  26. `,r=r.substr(e));return i+=r,i};se.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e="",r,i,n,s,o=0;o<t.length;)r=lf[t.charCodeAt(o++)-43],i=lf[t.charCodeAt(o++)-43],n=lf[t.charCodeAt(o++)-43],s=lf[t.charCodeAt(o++)-43],e+=String.fromCharCode(r<<2|i>>4),n!==64&&(e+=String.fromCharCode((i&15)<<4|n>>2),s!==64&&(e+=String.fromCharCode((n&3)<<6|s)));return e};se.encodeUtf8=function(t){return unescape(encodeURIComponent(t))};se.decodeUtf8=function(t){return decodeURIComponent(escape(t))};se.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:oq.encode,decode:oq.decode}};se.binary.raw.encode=function(t){return String.fromCharCode.apply(null,t)};se.binary.raw.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(t.length)),r=r||0;for(var n=r,s=0;s<t.length;++s)i[n++]=t.charCodeAt(s);return e?n-r:i};se.binary.hex.encode=se.bytesToHex;se.binary.hex.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(Math.ceil(t.length/2))),r=r||0;var n=0,s=r;for(t.length&1&&(n=1,i[s++]=parseInt(t[0],16));n<t.length;n+=2)i[s++]=parseInt(t.substr(n,2),16);return e?s-r:i};se.binary.base64.encode=function(t,e){for(var r="",i="",n,s,o,a=0;a<t.byteLength;)n=t[a++],s=t[a++],o=t[a++],r+=ff.charAt(n>>2),r+=ff.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=ff.charAt((s&15)<<2|o>>6),r+=isNaN(o)?"=":ff.charAt(o&63)),e&&r.length>e&&(i+=r.substr(0,e)+`\r
  27. `,r=r.substr(e));return i+=r,i};se.binary.base64.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(Math.ceil(t.length/4)*3)),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var n,s,o,a,c=0,u=r;c<t.length;)n=lf[t.charCodeAt(c++)-43],s=lf[t.charCodeAt(c++)-43],o=lf[t.charCodeAt(c++)-43],a=lf[t.charCodeAt(c++)-43],i[u++]=n<<2|s>>4,o!==64&&(i[u++]=(s&15)<<4|o>>2,a!==64&&(i[u++]=(o&3)<<6|a));return e?u-r:i.subarray(0,u)};se.binary.base58.encode=function(t,e){return se.binary.baseN.encode(t,aq,e)};se.binary.base58.decode=function(t,e){return se.binary.baseN.decode(t,aq,e)};se.text={utf8:{},utf16:{}};se.text.utf8.encode=function(t,e,r){t=se.encodeUtf8(t);var i=e;i||(i=new Uint8Array(t.length)),r=r||0;for(var n=r,s=0;s<t.length;++s)i[n++]=t.charCodeAt(s);return e?n-r:i};se.text.utf8.decode=function(t){return se.decodeUtf8(String.fromCharCode.apply(null,t))};se.text.utf16.encode=function(t,e,r){var i=e;i||(i=new Uint8Array(t.length*2));var n=new Uint16Array(i.buffer);r=r||0;for(var s=r,o=r,a=0;a<t.length;++a)n[o++]=t.charCodeAt(a),s+=2;return e?s-r:i};se.text.utf16.decode=function(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))};se.deflate=function(t,e,r){if(e=se.decode64(t.deflate(se.encode64(e)).rval),r){var i=2,n=e.charCodeAt(1);n&32&&(i=6),e=e.substring(i,e.length-4)}return e};se.inflate=function(t,e,r){var i=t.inflate(se.encode64(e)).rval;return i===null?null:se.decode64(i)};var r_=function(t,e,r){if(!t)throw new Error("WebStorage not available.");var i;if(r===null?i=t.removeItem(e):(r=se.encode64(JSON.stringify(r)),i=t.setItem(e,r)),typeof i!="undefined"&&i.rval!==!0){var n=new Error(i.error.message);throw n.id=i.error.id,n.name=i.error.name,n}},i_=function(t,e){if(!t)throw new Error("WebStorage not available.");var r=t.getItem(e);if(t.init)if(r.rval===null){if(r.error){var i=new Error(r.error.message);throw i.id=r.error.id,i.name=r.error.name,i}r=null}else r=r.rval;return r!==null&&(r=JSON.parse(se.decode64(r))),r},kwe=function(t,e,r,i){var n=i_(t,e);n===null&&(n={}),n[r]=i,r_(t,e,n)},Dwe=function(t,e,r){var i=i_(t,e);return i!==null&&(i=r in i?i[r]:null),i},Bwe=function(t,e,r){var i=i_(t,e);if(i!==null&&r in i){delete i[r];var n=!0;for(var s in i){n=!1;break}n&&(i=null),r_(t,e,i)}},Nwe=function(t,e){r_(t,e,null)},L6=function(t,e,r){var i=null;typeof r=="undefined"&&(r=["web","flash"]);var n,s=!1,o=null;for(var a in r){n=r[a];try{if(n==="flash"||n==="both"){if(e[0]===null)throw new Error("Flash local storage not available.");i=t.apply(this,e),s=n==="flash"}(n==="web"||n==="both")&&(e[0]=localStorage,i=t.apply(this,e),s=!0)}catch(c){o=c}if(s)break}if(!s)throw o;return i};se.setItem=function(t,e,r,i,n){L6(kwe,arguments,n)};se.getItem=function(t,e,r,i){return L6(Dwe,arguments,i)};se.removeItem=function(t,e,r,i){L6(Bwe,arguments,i)};se.clearItems=function(t,e,r){L6(Nwe,arguments,r)};se.parseUrl=function(t){var e=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;e.lastIndex=0;var r=e.exec(t),i=r===null?null:{full:t,scheme:r[1],host:r[2],port:r[3],path:r[4]};return i&&(i.fullHost=i.host,i.port?(i.port!==80&&i.scheme==="http"||i.port!==443&&i.scheme==="https")&&(i.fullHost+=":"+i.port):i.scheme==="http"?i.port=80:i.scheme==="https"&&(i.port=443),i.full=i.scheme+"://"+i.fullHost),i};var q6=null;se.getQueryVariables=function(t){var e=function(i){for(var n={},s=i.split("&"),o=0;o<s.length;o++){var a=s[o].indexOf("="),c,u;a>0?(c=s[o].substring(0,a),u=s[o].substring(a+1)):(c=s[o],u=null),c in n||(n[c]=[]),!(c in Object.prototype)&&u!==null&&n[c].push(unescape(u))}return n},r;return typeof t=="undefined"?(q6===null&&(typeof window!="undefined"&&window.location&&window.location.search?q6=e(window.location.search.substring(1)):q6={}),r=q6):r=e(t),r};se.parseFragment=function(t){var e=t,r="",i=t.indexOf("?");i>0&&(e=t.substring(0,i),r=t.substring(i+1));var n=e.split("/");n.length>0&&n[0]===""&&n.shift();var s=r===""?{}:se.getQueryVariables(r);return{pathString:e,queryString:r,path:n,query:s}};se.makeRequest=function(t){var e=se.parseFragment(t),r={path:e.pathString,query:e.queryString,getPath:function(i){return typeof i=="u
  28. `);for(var n="",s=0;s<e*r;++s)n+=" ";switch(i+=n+"Tag: ",t.tagClass){case Me.Class.UNIVERSAL:i+="Universal:";break;case Me.Class.APPLICATION:i+="Application:";break;case Me.Class.CONTEXT_SPECIFIC:i+="Context-Specific:";break;case Me.Class.PRIVATE:i+="Private:";break}if(t.tagClass===Me.Class.UNIVERSAL)switch(i+=t.type,t.type){case Me.Type.NONE:i+=" (None)";break;case Me.Type.BOOLEAN:i+=" (Boolean)";break;case Me.Type.INTEGER:i+=" (Integer)";break;case Me.Type.BITSTRING:i+=" (Bit string)";break;case Me.Type.OCTETSTRING:i+=" (Octet string)";break;case Me.Type.NULL:i+=" (Null)";break;case Me.Type.OID:i+=" (Object Identifier)";break;case Me.Type.ODESC:i+=" (Object Descriptor)";break;case Me.Type.EXTERNAL:i+=" (External or Instance of)";break;case Me.Type.REAL:i+=" (Real)";break;case Me.Type.ENUMERATED:i+=" (Enumerated)";break;case Me.Type.EMBEDDED:i+=" (Embedded PDV)";break;case Me.Type.UTF8:i+=" (UTF8)";break;case Me.Type.ROID:i+=" (Relative Object Identifier)";break;case Me.Type.SEQUENCE:i+=" (Sequence)";break;case Me.Type.SET:i+=" (Set)";break;case Me.Type.PRINTABLESTRING:i+=" (Printable String)";break;case Me.Type.IA5String:i+=" (IA5String (ASCII))";break;case Me.Type.UTCTIME:i+=" (UTC time)";break;case Me.Type.GENERALIZEDTIME:i+=" (Generalized time)";break;case Me.Type.BMPSTRING:i+=" (BMP String)";break}else i+=t.type;if(i+=`
  29. `,i+=n+"Constructed: "+t.constructed+`
  30. `,t.composed){for(var o=0,a="",s=0;s<t.value.length;++s)t.value[s]!==void 0&&(o+=1,a+=Me.prettyPrint(t.value[s],e+1,r),s+1<t.value.length&&(a+=","));i+=n+"Sub values: "+o+a}else{if(i+=n+"Value: ",t.type===Me.Type.OID){var c=Me.derToOid(t.value);i+=c,Ir.pki&&Ir.pki.oids&&c in Ir.pki.oids&&(i+=" ("+Ir.pki.oids[c]+") ")}if(t.type===Me.Type.INTEGER)try{i+=Me.derToInteger(t.value)}catch(f){i+="0x"+Ir.util.bytesToHex(t.value)}else if(t.type===Me.Type.BITSTRING){if(t.value.length>1?i+="0x"+Ir.util.bytesToHex(t.value.slice(1)):i+="(none)",t.value.length>0){var u=t.value.charCodeAt(0);u==1?i+=" (1 unused bit shown)":u>1&&(i+=" ("+u+" unused bits shown)")}}else t.type===Me.Type.OCTETSTRING?(fq.test(t.value)||(i+="("+t.value+") "),i+="0x"+Ir.util.bytesToHex(t.value)):t.type===Me.Type.UTF8?i+=Ir.util.decodeUtf8(t.value):t.type===Me.Type.PRINTABLESTRING||t.type===Me.Type.IA5String?i+=t.value:fq.test(t.value)?i+="0x"+Ir.util.bytesToHex(t.value):t.value.length===0?i+="[null]":i+=t.value}return i}});var o_=m((Ist,dq)=>{l();var Gi=yt();nr();dq.exports=Gi.cipher=Gi.cipher||{};Gi.cipher.algorithms=Gi.cipher.algorithms||{};Gi.cipher.createCipher=function(t,e){var r=t;if(typeof r=="string"&&(r=Gi.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+t);return new Gi.cipher.BlockCipher({algorithm:r,key:e,decrypt:!1})};Gi.cipher.createDecipher=function(t,e){var r=t;if(typeof r=="string"&&(r=Gi.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+t);return new Gi.cipher.BlockCipher({algorithm:r,key:e,decrypt:!0})};Gi.cipher.registerAlgorithm=function(t,e){t=t.toUpperCase(),Gi.cipher.algorithms[t]=e};Gi.cipher.getAlgorithm=function(t){return t=t.toUpperCase(),t in Gi.cipher.algorithms?Gi.cipher.algorithms[t]:null};var s_=Gi.cipher.BlockCipher=function(t){this.algorithm=t.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=t.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=t.decrypt,this.algorithm.initialize(t)};s_.prototype.start=function(t){t=t||{};var e={};for(var r in t)e[r]=t[r];e.decrypt=this._decrypt,this._finish=!1,this._input=Gi.util.createBuffer(),this.output=t.output||Gi.util.createBuffer(),this.mode.start(e)};s_.prototype.update=function(t){for(t&&this._input.putBuffer(t);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};s_.prototype.finish=function(t){t&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(r){return t(this.blockSize,r,!1)},this.mode.unpad=function(r){return t(this.blockSize,r,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e))}});var c_=m((Tst,hq)=>{l();var $i=yt();nr();$i.cipher=$i.cipher||{};var Et=hq.exports=$i.cipher.modes=$i.cipher.modes||{};Et.ecb=function(t){t=t||{},this.name="ECB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Et.ecb.prototype.start=function(t){};Et.ecb.prototype.encrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i])};Et.ecb.prototype.decrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i])};Et.ecb.prototype.pad=function(t,e){var r=t.length()===this.blockSize?this.blockSize:this.blockSize-t.length();return t.fillWithByte(r,r),!0};Et.ecb.prototype.unpad=function(t,e){if(e.overflow>0)return!1;var r=t.length(),i=t.at(r-1);return i>this.
  31. `,i;if(t.procType&&(i={name:"Proc-Type",values:[String(t.procType.version),t.procType.type]},r+=$6(i)),t.contentDomain&&(i={name:"Content-Domain",values:[t.contentDomain]},r+=$6(i)),t.dekInfo&&(i={name:"DEK-Info",values:[t.dekInfo.algorithm]},t.dekInfo.parameters&&i.values.push(t.dekInfo.parameters),r+=$6(i)),t.headers)for(var n=0;n<t.headers.length;++n)r+=$6(t.headers[n]);return t.procType&&(r+=`\r
  32. `),r+=G6.util.encode64(t.body,e.maxline||64)+`\r
  33. `,r+="-----END "+t.type+`-----\r
  34. `,r};xq.decode=function(t){for(var e=[],r=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,i=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,n=/\r?\n/,s;s=r.exec(t),!!s;){var o={type:s[1],procType:null,contentDomain:null,dekInfo:null,headers:[],body:G6.util.decode64(s[3])};if(e.push(o),!!s[2]){for(var a=s[2].split(n),c=0;s&&c<a.length;){for(var u=a[c].replace(/\s+$/,""),f=c+1;f<a.length;++f){var d=a[f];if(!/\s/.test(d[0]))break;u+=d,c=f}if(s=u.match(i),s){for(var h={name:s[1],values:[]},p=s[2].split(","),y=0;y<p.length;++y)h.values.push(Wwe(p[y]));if(o.procType)if(!o.contentDomain&&h.name==="Content-Domain")o.contentDomain=p[0]||"";else if(!o.dekInfo&&h.name==="DEK-Info"){if(h.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');o.dekInfo={algorithm:p[0],parameters:p[1]||null}}else o.headers.push(h);else{if(h.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(h.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');o.procType={version:p[0],type:p[1]}}}++c}if(o.procType==="ENCRYPTED"&&!o.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(e.length===0)throw new Error("Invalid PEM formatted message.");return e};function $6(t){for(var e=t.name+": ",r=[],i=function(c,u){return" "+u},n=0;n<t.values.length;++n)r.push(t.values[n].replace(/^(\S+\r\n)/,i));e+=r.join(",")+`\r
  35. `;for(var s=0,o=-1,n=0;n<e.length;++n,++s)if(s>65&&o!==-1){var a=e[o];a===","?(++o,e=e.substr(0,o)+`\r
  36. `+e.substr(o)):e=e.substr(0,o)+`\r
  37. `+a+e.substr(o+1),s=n-o-1,o=-1,++n}else(e[n]===" "||e[n]===" "||e[n]===",")&&(o=n);return e}function Wwe(t){return t.replace(/^\s+/,"")}});var Oq=m((Mst,Cq)=>{l();var Ma=yt();df();nr();var Iq=Cq.exports=Ma.sha256=Ma.sha256||{};Ma.md.sha256=Ma.md.algorithms.sha256=Iq;Iq.create=function(){Tq||Ywe();var t=null,e=Ma.util.createBuffer(),r=new Array(64),i={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return i.start=function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var n=i.messageLengthSize/4,s=0;s<n;++s)i.fullMessageLength.push(0);return e=Ma.util.createBuffer(),t={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},i},i.start(),i.update=function(n,s){s==="utf8"&&(n=Ma.util.encodeUtf8(n));var o=n.length;i.messageLength+=o,o=[o/4294967296>>>0,o>>>0];for(var a=i.fullMessageLength.length-1;a>=0;--a)i.fullMessageLength[a]+=o[1],o[1]=o[0]+(i.fullMessageLength[a]/4294967296>>>0),i.fullMessageLength[a]=i.fullMessageLength[a]>>>0,o[0]=o[1]/4294967296>>>0;return e.putBytes(n),Pq(t,r,e),(e.read>2048||e.length()===0)&&e.compact(),i},i.digest=function(){var n=Ma.util.createBuffer();n.putBytes(e.bytes());var s=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize,o=s&i.blockLength-1;n.putBytes(h_.substr(0,i.blockLength-o));for(var a,c,u=i.fullMessageLength[0]*8,f=0;f<i.fullMessageLength.length-1;++f)a=i.fullMessageLength[f+1]*8,c=a/4294967296>>>0,u+=c,n.putInt32(u>>>0),u=a>>>0;n.putInt32(u);var d={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4,h5:t.h5,h6:t.h6,h7:t.h7};Pq(d,r,n);var h=Ma.util.createBuffer();return h.putInt32(d.h0),h.putInt32(d.h1),h.putInt32(d.h2),h.putInt32(d.h3),h.putInt32(d.h4),h.putInt32(d.h5),h.putInt32(d.h6),h.putInt32(d.h7),h},i};var h_=null,Tq=!1,Rq=null;function Ywe(){h_=String.fromCharCode(128),h_+=Ma.util.fillString(String.fromCharCode(0),64),Rq=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Tq=!0}function Pq(t,e,r){for(var i,n,s,o,a,c,u,f,d,h,p,y,b,E,v,A=r.length();A>=64;){for(u=0;u<16;++u)e[u]=r.getInt32();for(;u<64;++u)i=e[u-2],i=(i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,n=e[u-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,e[u]=i+e[u-7]+n+e[u-16]|0;for(f=t.h0,d=t.h1,h=t.h2,p=t.h3,y=t.h4,b=t.h5,E=t.h6,v=t.h7,u=0;u<64;++u)o=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),a=E^y&(b^E),s=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),c=f&d|h&(f^d),i=v+o+a+Rq[u]+e[u],n=s+c,v=E,E=b,b=y,y=p+i>>>0,p=h,h=d,d=f,f=i+n>>>0;t.h0=t.h0+f|0,t.h1=t.h1+d|0,t.h2=t.h2+h|0,t.h3=t.h3+p|0,t.h4=t.h4+y|0,t.h5=t.h5+b|0,t.h6=t.h6+E|0,t.h7=t.h7+v|0,A-=64}}});var Dq=m((Lst,kq)=>{l();var La=yt();nr();var Y6=null;La.util.isNodejs&&!La.options.usePureJavaScript&&!process.versions["node-webkit"]&&(Y6=E0());var Xwe=kq.exports=La.prng=La.prng||{};Xwe.create=function(t){for(var e={plugin:t,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=t.md,i=new Array(32),n=0;n<32;++n)i[n]=r.create();e.pools=i,e.pool=0,e.generate=function(u,f){if(!f)return e.generateSync(u);var d=e.plugin.cipher,h=e.plugin.increment,p=e.plugin.formatKey,y=e.plugin.formatSeed,b=La.util.createBuffer();e.key=null,E();function E(v){if(v)return f(v);if(b.length()>=u)return f(null,b.getBytes(u));if(e.generated>1048575&&(e.key=null),e.key===null)return La.util.nextTick(function(){s(E)});var A=d(e.key,e.seed);e.generated+=A.length,b.putBytes(A),e.key=p(d(e.key,h(e.seed))),e.seed=y(d(e.key,e.seed)),La
  38. `,R:"%H:%M",T:"%H:%M:%S",t:" ",X:"%T",Z:"GMT",z:"+0000"};return v;function v(Q,ue,le){var me=this;if(!(me instanceof v))return new v(Q,ue,le);me.time=+Q||0,me.nano=+ue||0,me.year=+le||0,R(me)}function A(){var Q=this.toDate().getUTCFullYear();return Q+this.year}function R(Q){var ue=Q.year,le=Q.time,me=Q.nano,be,xe;if(me<0||c<=me){var k=Math.floor(me/c);me-=k*c,le+=k,be=1}var K=ue%e;if(le<-s||s<le||K){xe=d(le/n),xe&&(ue+=xe*e,le-=xe*n);var $=D(le);$.setUTCFullYear(K+$.getUTCFullYear()),ue-=K,le=+$,xe=d(ue/e);var ee=le+xe*n;xe&&-s<=ee&&ee<=s&&(ue-=xe*e,le=ee),be=1}return be&&(Q.year=ue,Q.time=le,Q.nano=me),Q}function F(){var Q=R(this);return D(Q.time)}function D(Q){var ue=new Date(0);return ue.setTime(Q),ue}function B(Q){return this.nano+=+Q||0,this}function H(){var Q=R(this);return(Q.time%1e3*c+ +Q.nano+u)%u}function W(Q){var ue,le=new v;Q+="";var me=Q.replace(/^\s*[+\-]?\d+/,function(be){var xe=+be,k=1970+(xe-1970)%400;return le.year=xe-k,k}).replace(/(?:Z|([+\-]\d{2}):?(\d{2}))$/,function(be,xe,k){return xe<0&&(k*=-1),ue=(+xe*60+ +k)*6e4,""}).replace(/\.\d+$/,function(be){return le.nano=+(be+f).substr(1,9),""}).split(/\D+/);if(me.length>1?me[1]--:me[1]=0,le.time=ue=Date.UTC.apply(Date,me)-(ue||0),isNaN(ue))throw new TypeError("Invalid Date");return R(le)}function X(Q){return new v(+Q)}function P(Q){return g(Q,0)}function g(Q,ue){ue|=0,ue*=a,Q=+Q||0;var le=d(ue/i)+d(Q/i),me=ue%i+Q%i,be=d(me/i);return be&&(le+=be,me-=be*i),new v(me*1e3,0,le*e)}function w(){var Q=R(this),ue=Math.floor(Q.time/1e3),le=Q.year;return le&&(ue+=le*r*t/e),ue}function S(){return this.toString().replace(/0{1,6}Z$/,"Z")}function C(Q){var ue=this,le=ue.toDate(),me={H:ee,L:z,M:I,N,S:U,Y:xe,a:Z,b:ie,d:K,e:$,m:k};return be(Q||p);function be(te){return te.replace(/%./g,function(he){var we=he[1],_e=E[we],Ke=me[we];return _e?be(_e):Ke?Ke():he})}function xe(){var te=ue.getYear();return te>999999?"+"+te:te>9999?"+"+de(te,6):te>=0?de(te,4):te>=-999999?"-"+de(-te,6):te}function k(){return j(le.getUTCMonth()+1)}function K(){return j(le.getUTCDate())}function $(){return _(le.getUTCDate())}function ee(){return j(le.getUTCHours())}function I(){return j(le.getUTCMinutes())}function U(){return j(le.getUTCSeconds())}function z(){return de(le.getUTCMilliseconds(),3)}function N(){return de(ue.getNano(),9)}function Z(){return b[le.getUTCDay()]}function ie(){return y[le.getUTCMonth()]}}function L(Q,ue,le,me,be,xe){return k;function k($,ee){var I=R(this);$||($=new Array(8)),V($,ee|=0);var U=Math.floor(I.time/1e3),z=I.year*(r*t/e),N=d(z/a)+d(U/a),Z=z%a+U%a,ie=Math.floor(Z/a);return ie&&(N+=ie,Z-=ie*a),K($,ee+be,N),K($,ee+xe,Z),$}function K($,ee,I){$[ee+Q]=I>>24&255,$[ee+ue]=I>>16&255,$[ee+le]=I>>8&255,$[ee+me]=I&255}}function Y(Q,ue,le,me,be,xe){return k;function k($,ee){V($,ee|=0);var I=K($,ee+be),U=K($,ee+xe);return g(U,I)}function K($,ee){return $[ee+Q]*o+($[ee+ue]<<16|$[ee+le]<<8|$[ee+me])}}function V(Q,ue){var le=Q&&Q.length;if(le==null)throw new TypeError("Invalid Buffer");if(le<ue+8)throw new RangeError("Out of range")}function q(Q){var ue=Q-Q%1;return ue===0&&(Q<0||Q===0&&1/Q!=1/0)?-0:ue}function _(Q){return(Q>9?"":" ")+(Q|0)}function j(Q){return(Q>9?"":"0")+(Q|0)}function de(Q,ue){return(f+(Q|0)).substr(-ue)}}()});var HK=m((jat,zK)=>{l();"use strict";_0();var B4=yt(),{toString:G0}=(tt(),hr),{fromString:VK}=(dt(),bi);zK.exports={createCipheriv:(t,e,r)=>{let i=B4.cipher.createCipher("AES-CTR",G0(e,"ascii"));return i.start({iv:G0(r,"ascii")}),{update:n=>(i.update(B4.util.createBuffer(G0(n,"ascii"))),VK(i.output.getBytes(),"ascii"))}},createDecipheriv:(t,e,r)=>{let i=B4.cipher.createDecipher("AES-CTR",G0(e,"ascii"));return i.start({iv:G0(r,"ascii")}),{update:n=>(i.update(B4.util.createBuffer(G0(n,"ascii"))),VK(i.output.getBytes(),"ascii"))}}}});var WK=m((Uat,$K)=>{l();"use strict";var BAe=zo(),GK={16:"aes-128-ctr",32:"aes-256-ctr"};$K.exports=function(t){let e=GK[t.length];if(!e){let r=Object.entries(GK).map(([i,n])=>`${i} (${n})`).join(" / ");throw BAe(new Error(`Invalid key length ${t.length} bytes. Must be ${r}`),"ERR_INVALID_KEY_LENGTH")}return e}});var QK=m(XK=>{
  39. `)),t.linkname&&(e+=XS(" linkpath="+t.linkname+`
  40. `));let r=t.pax;if(r)for(let i in r)e+=XS(" "+i+"="+r[i]+`
  41. `);return sc.from(e)};QS.encode=function(t){let e=FRe(512),r=t.name,i="";if(t.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),sc.byteLength(r)!==r.length)return null;for(;sc.byteLength(r)>100;){let n=r.indexOf("/");if(n===-1)return null;i+=i?"/"+r.slice(0,n):r.slice(0,n),r=r.slice(n+1)}return sc.byteLength(r)>100||sc.byteLength(i)>155||t.linkname&&sc.byteLength(t.linkname)>100?null:(e.write(r),e.write(Pf(t.mode&$Re,6),100),e.write(Pf(t.uid,6),108),e.write(Pf(t.gid,6),116),e.write(Pf(t.size,11),124),e.write(Pf(t.mtime.getTime()/1e3|0,11),136),e[156]=zRe+XRe(t.type),t.linkname&&e.write(t.linkname,157),HRe.copy(e,WRe),GRe.copy(e,YRe),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(Pf(t.devmajor||0,6),329),e.write(Pf(t.devminor||0,6),337),i&&e.write(i,345),e.write(Pf(QRe(e),6),148),e)}});var X$=m((dpt,Y$)=>{l();var{Buffer:ZS}=Ht(),hd=Rn(),{S_IFMT:ZRe,S_IFBLK:JRe,S_IFCHR:ePe,S_IFDIR:tPe,S_IFIFO:rPe,S_IFLNK:iPe}=z$(),nPe=G$(),Ib=$$(),sPe=parseInt("755",8),oPe=parseInt("644",8),W$=ZS.alloc(1024);function aPe(t){switch(t&ZRe){case JRe:return"block-device";case ePe:return"character-device";case tPe:return"directory";case rPe:return"fifo";case iPe:return"symlink"}return"file"}function JS(t){if(t&=511,t)return new hd(W$.slice(0,512-t))}function ex(t){if(!t.pax){let e=Ib.encode(t);if(e)return e}return cPe(t)}function cPe(t){let e=Ib.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),r={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:e.length,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};return new hd([Ib.encode(r),e,JS(e.length),Ib.encode({...r,size:t.size,type:t.type})])}Y$.exports=()=>async function*(t){for await(let{header:e,body:r}of t){if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=aPe(e.mode)),e.mode||(e.mode=e.type==="directory"?sPe:oPe),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=ZS.from(r)),ZS.isBuffer(r)||hd.isBufferList(r)){e.size=r.length,yield new hd([ex(e),r,JS(e.size)]);continue}if(e.type==="symlink"&&!e.linkname){e.linkname=(await nPe(r)).toString(),yield ex(e);continue}if(yield ex(e),e.type!=="file"&&e.type!=="contiguous-file")continue;let i=0;for await(let s of r)i+=s.length,yield hd.isBufferList(s)?s:new hd(s);if(i!==e.size)throw new Error("size mismatch");let n=JS(e.size);n&&(yield n)}yield new hd(W$)}});var Q$=m(tx=>{l();tx.extract=K$();tx.pack=X$()});var hu=m(Kn=>{l();"use strict";var uPe=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function fPe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}Kn.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(!!r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)fPe(r,i)&&(t[i]=r[i])}}return t};Kn.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var lPe={arraySet:function(t,e,r,i,n){if(e.subarray&&t.subarray){t.set(e.subarray(r,r+i),n);return}for(var s=0;s<i;s++)t[n+s]=e[r+s]},flattenChunks:function(t){var e,r,i,n,s,o;for(i=0,e=0,r=t.length;e<r;e++)i+=t[e].length;for(o=new Uint8Array(i),n=0,e=0,r=t.length;e<r;e++)s=t[e],o.set(s,n),n+=s.length;return o}},dPe={arraySet:function(t,e,r,i,n){for(var s=0;s<i;s++)t[n+s]=e[r+s]},flattenChunks:function(t){return[].concat.apply([],t)}};Kn.setTyped=function(t){t?(Kn.Buf8=Uint8Array,Kn.Buf16=Uint16Array,Kn.Buf32=Int32Array,Kn.assign(Kn,lPe)):(Kn.Buf8=Array,Kn.Buf16=Array,Kn.Buf32=Array,Kn.assign(Kn,dPe))};Kn.setTyped(uPe)});var wW=m(hp=>{l();"use strict";var hPe=hu(),pPe=4,Z$=0,J$=1,yPe=2;function lp(t){for(var e=t.length;--e>=0;)t[e]=0}var gPe=0,eW=1,mPe=2,bPe=3,vPe=258,rx=29,og=256,ag=og+1+rx,dp=30,ix=19,tW=2*ag+1,pd=15,nx=16,wPe=7,sx=256,rW=16,iW=17,nW=18,ox=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Tb=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_Pe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],sW=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],EPe=512,pu
  42. `)>-1&&(s?a=a.split(`
  43. `).map(function(u){return" "+u}).join(`
  44. `).substr(2):a=`
  45. `+a.split(`
  46. `).map(function(u){return" "+u}).join(`
  47. `))):a=t.stylize("[Circular]","special")),Ld(o)){if(s&&n.match(/^\d+$/))return a;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function LBe(t,e,r){var i=0,n=t.reduce(function(s,o){return i++,o.indexOf(`
  48. `)>=0&&i++,s+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(e===""?"":e+`
  49. `)+" "+t.join(`,
  50. `)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}At.types=ote();function lte(t){return Array.isArray(t)}At.isArray=lte;function dI(t){return typeof t=="boolean"}At.isBoolean=dI;function F5(t){return t===null}At.isNull=F5;function qBe(t){return t==null}At.isNullOrUndefined=qBe;function dte(t){return typeof t=="number"}At.isNumber=dte;function K5(t){return typeof t=="string"}At.isString=K5;function jBe(t){return typeof t=="symbol"}At.isSymbol=jBe;function Ld(t){return t===void 0}At.isUndefined=Ld;function Hg(t){return Vp(t)&&hI(t)==="[object RegExp]"}At.isRegExp=Hg;At.types.isRegExp=Hg;function Vp(t){return typeof t=="object"&&t!==null}At.isObject=Vp;function V5(t){return Vp(t)&&hI(t)==="[object Date]"}At.isDate=V5;At.types.isDate=V5;function Gg(t){return Vp(t)&&(hI(t)==="[object Error]"||t instanceof Error)}At.isError=Gg;At.types.isNativeError=Gg;function z5(t){return typeof t=="function"}At.isFunction=z5;function UBe(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t=="undefined"}At.isPrimitive=UBe;At.isBuffer=cte();function hI(t){return Object.prototype.toString.call(t)}function pI(t){return t<10?"0"+t.toString(10):t.toString(10)}var FBe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function KBe(){var t=new Date,e=[pI(t.getHours()),pI(t.getMinutes()),pI(t.getSeconds())].join(":");return[t.getDate(),FBe[t.getMonth()],e].join(" ")}At.log=function(){console.log("%s - %s",KBe(),At.format.apply(At,arguments))};At.inherits=on();At._extend=function(t,e){if(!e||!Vp(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function hte(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var qd=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;At.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(qd&&e[qd]){var r=e[qd];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,qd,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,s=new Promise(function(c,u){i=c,n=u}),o=[],a=0;a<arguments.length;a++)o.push(arguments[a]);o.push(function(c,u){c?n(c):i(u)});try{e.apply(this,o)}catch(c){n(c)}return s}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),qd&&Object.defineProperty(r,qd,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,ute(e))};At.promisify.custom=qd;function VBe(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function zBe(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var s=this,o=function(){return n.apply(s,arguments)};t.apply(this,r).then(function(a){process.nextTick(o.bind(null,null,a))},function(a){process.nextTick(VBe.bind(null,a,o))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,ute(t)),e}At.callbackify=zBe});var yI=m((Qbt,yte)=>{l();"use strict";yte.exports=function(...e){let r=e.reduce((i,n)=>Object.assign(i,n),{});return Object.assign(r,{bufferKeys:r.bufferKeys||!1,snapshots:r.snapshots||!1,permanence:r.permanence||!1,seek:r.seek||!1,clear:r.clear||!1,status:r.status||!1,createIfMissing:r.createIfMissing||!1,errorIfExists:r.errorIfExists||!1,deferredOpen:r.deferredOpen||!1,openCallback:r.openCallback||!1,promises:r.promises||!1,streams:r.streams||!1,encodings:r.encodings||!1,additionalMethods:Object.assign({},r.additionalMethods)})}});var gI=m((Zbt,gte)=>{l();gte.exports=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}});var H5=m((Jbt,bte)=>{l();var mte;bte.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:globalThis):t=>(mte||(mte=Promise.resolve())).the
  51. Use Chrome, Firefox or Internet Explorer 11`)}var kFe=qfe().Buffer,av=globalThis.crypto||globalThis.msCrypto;av&&av.getRandomValues?PR.exports=DFe:PR.exports=OFe;function DFe(t,e){if(t>CFe)throw new RangeError("requested too many random bytes");var r=kFe.allocUnsafe(t);if(t>0)if(t>RR)for(var i=0;i<t;i+=RR)av.getRandomValues(r.slice(i,i+RR));else av.getRandomValues(r);return typeof e=="function"?process.nextTick(function(){e(null,r)}):r}});var Ffe=m((vPt,Ufe)=>{l();"use strict";function jfe(t,e){for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!0,configurable:!0});return t}function BFe(t,e,r){if(!t||typeof t=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof e=="object"&&(r=e,e=void 0),e!=null&&(r.code=e);try{return jfe(t,r)}catch(i){r.message=t.message,r.stack=t.stack;let n=function(){};return n.prototype=Object.create(Object.getPrototypeOf(t)),jfe(new n,r)}}Ufe.exports=BFe});var DR=m((wPt,Hfe)=>{l();var NFe=Ee()("simple-peer"),Kfe=Nfe(),Vfe=CR(),MFe=YI(),OR=H5(),Sr=Ffe(),kR=64*1024,LFe=5*1e3,qFe=5*1e3;function zfe(t){return t.replace(/a=ice-options:trickle\s\n/g,"")}function jFe(t){console.warn(t)}var ll=class extends MFe.Duplex{constructor(e){e=Object.assign({allowHalfOpen:!1},e);super(e);if(this._id=Vfe(4).toString("hex").slice(0,7),this._debug("new peer %o",e),this.channelName=e.initiator?e.channelName||Vfe(20).toString("hex"):null,this.initiator=e.initiator||!1,this.channelConfig=e.channelConfig||ll.channelConfig,this.negotiated=this.channelConfig.negotiated,this.config=Object.assign({},ll.config,e.config),this.offerOptions=e.offerOptions||{},this.answerOptions=e.answerOptions||{},this.sdpTransform=e.sdpTransform||(r=>r),this.streams=e.streams||(e.stream?[e.stream]:[]),this.trickle=e.trickle!==void 0?e.trickle:!0,this.allowHalfTrickle=e.allowHalfTrickle!==void 0?e.allowHalfTrickle:!1,this.iceCompleteTimeout=e.iceCompleteTimeout||LFe,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=e.wrtc&&typeof e.wrtc=="object"?e.wrtc:Kfe(),!this._wrtc)throw typeof window=="undefined"?Sr(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"),"ERR_WEBRTC_SUPPORT"):Sr(new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=this.negotiated?!1:!this.initiator,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._firstStable=!0,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(r){OR(()=>this.destroy(Sr(r,"ERR_PC_CONSTRUCTOR")));return}this._isReactNativeWebrtc=typeof this._pc._peerConnectionId=="number",this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=r=>{this._onIceCandidate(r)},this.initiator||this.negotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=r=>{this._setupData(r)},this.streams&&this.streams.forEach(r=>{this.addStream(r)}),this._pc.ontrack=r=>{this._onTrack(r)},this.initiator&&this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&this._channel.readyState==="open"}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(e){if(this.destroyed)throw Sr(new Error("cannot signal after peer is destroyed"),"ERR_SIGNALING");if(typeof e=="string")try{e=JSON.pa
  52. `),this.area.value=e.replace(xKe,"\\n");try{this.form.submit()}catch(o){}this.iframe.attachEvent?this.iframe.onreadystatechange=()=>{this.iframe.readyState==="complete"&&n()}:this.iframe.onload=n}};Cle.exports=Ple});var Ble=m((FPt,Dle)=>{l();var kle=y1(),IKe=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0))();Dle.exports={WebSocket:kle.WebSocket||kle.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer",nextTick:IKe}});var qle=m((KPt,Lle)=>{l();var Nle=dv(),TKe=g1(),RKe=hv(),PKe=GR(),{pick:CKe}=b1(),{WebSocket:_m,usingBrowserWebSocket:XR,defaultBinaryType:OKe,nextTick:kKe}=Ble(),DKe=Ee()("engine.io-client:websocket"),Mle=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",gv=class extends Nle{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),r=this.opts.protocols,i=Mle?{}:CKe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=XR&&!Mle?r?new _m(e,r):new _m(e):new _m(e,r,i)}catch(n){return this.emit("error",n)}this.ws.binaryType=this.socket.binaryType||OKe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let i=e[r],n=r===e.length-1;TKe.encodePacket(i,this.supportsBinary,s=>{let o={};XR||(i.options&&(o.compress=i.options.compress),this.opts.perMessageDeflate&&(typeof s=="string"?Buffer.byteLength(s):s.length)<this.opts.perMessageDeflate.threshold&&(o.compress=!1));try{XR?this.ws.send(s):this.ws.send(s,o)}catch(a){DKe("websocket closed before onclose event")}n&&kKe(()=>{this.writable=!0,this.emit("drain")},this.setTimeoutFn)})}}onClose(){Nle.prototype.onClose.call(this)}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{},r=this.opts.secure?"wss":"ws",i="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=PKe()),this.supportsBinary||(e.b64=1),e=RKe.encode(e),e.length&&(e="?"+e);let n=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(n?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+e}check(){return!!_m&&!("__initialize"in _m&&this.name===gv.prototype.name)}};Lle.exports=gv});var ZR=m(QR=>{l();var BKe=MR(),NKe=Tle(),MKe=Ole(),LKe=qle();QR.polling=qKe;QR.websocket=LKe;function qKe(t){let e,r=!1,i=!1,n=t.jsonp!==!1;if(typeof location!="undefined"){let s=location.protocol==="https:",o=location.port;o||(o=s?443:80),r=t.hostname!==location.hostname||o!==t.port,i=t.secure!==s}if(t.xdomain=r,t.xscheme=i,e=new BKe(t),"open"in e&&!t.forceJSONP)return new NKe(t);if(!n)throw new Error("JSONP disabled");return new MKe(t)}});var Kle=m((zPt,Fle)=>{l();var jKe=ZR(),UKe=m1(),yi=Ee()("engine.io-client:socket"),jle=g1(),Ule=BR(),FKe=hv(),{installTimerFunctions:KKe}=b1(),Pc=class extends UKe{constructor(e,r={}){super();e&&typeof e=="object"&&(r=e,e=null),e?(e=Ule(e),r.hostname=e.host,r.secure=e.protocol==="https"||e.protocol==="wss",r.port=e.port,e.query&&(r.query=e.query)):r.host&&(r.hostname=Ule(r.host).host),KKe(this,r),this.secure=r.secure!=null?r.secure:typeof location!="undefined"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=r.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.transports=r.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,th
  53. `).filter(r=>{let i=r.match(I0e);if(i===null||!i[1])return!0;let n=i[1];return n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")?!1:!OGe.test(n)}).filter(r=>r.trim()!=="").map(r=>e.pretty?r.replace(I0e,(i,n)=>i.replace(n,n.replace(kGe,"~"))):r).join(`
  54. `))});var zP=m((oOt,C0e)=>{l();"use strict";var DGe=S0e(),BGe=R0e(),NGe=t=>t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),P0e=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);e=[...e].map(i=>i instanceof Error?i:i!==null&&typeof i=="object"?Object.assign(new Error(i.message),i):new Error(i));let r=e.map(i=>typeof i.stack=="string"?NGe(BGe(i.stack)):String(i)).join(`
  55. `);r=`
  56. `+DGe(r,4);super(r);this.name="AggregateError",Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(let e of this._errors)yield e}};C0e.exports=P0e});var HP=m((aOt,O0e)=>{l();"use strict";var MGe=zP();O0e.exports=async(t,e,{concurrency:r=1/0,stopOnError:i=!0}={})=>new Promise((n,s)=>{if(typeof e!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===1/0)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);let o=[],a=[],c=t[Symbol.iterator](),u=!1,f=!1,d=0,h=0,p=()=>{if(u)return;let y=c.next(),b=h;if(h++,y.done){f=!0,d===0&&(!i&&a.length!==0?s(new MGe(a)):n(o));return}d++,(async()=>{try{let E=await y.value;o[b]=await e(E,b),d--,p()}catch(E){i?(u=!0,s(E)):(a.push(E),d--,p())}})()};for(let y=0;y<r&&(p(),!f);y++);})});var B1=m((cOt,i7)=>{l();"use strict";var GP=class extends Error{constructor(e){super(e);this.name="TimeoutError"}},k0e=(t,e,r,i)=>{let n,s=new Promise((o,a)=>{if(typeof e!="number"||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e===1/0){o(t);return}i={customTimers:{setTimeout,clearTimeout},...i},n=i.customTimers.setTimeout.call(void 0,()=>{if(typeof r=="function"){try{o(r())}catch(f){a(f)}return}let c=typeof r=="string"?r:`Promise timed out after ${e} milliseconds`,u=r instanceof Error?r:new GP(c);typeof t.cancel=="function"&&t.cancel(),a(u)},e),(async()=>{try{o(await t)}catch(c){a(c)}finally{i.customTimers.clearTimeout.call(void 0,n)}})()});return s.clear=()=>{clearTimeout(n),n=void 0},s};i7.exports=k0e;i7.exports.default=k0e;i7.exports.TimeoutError=GP});var Ii=m(mi=>{l();"use strict";var $P=Ee(),{sha256:D0e}=(di(),zs),{base58btc:LGe}=(li(),Fs),{Key:qGe}=(Br(),sy),{xor:jGe}=(jm(),qm),{compare:UGe}=(l5(),TA),FGe=HP(),{Record:KGe}=ad(),VGe=it(),zGe=ma(),{fromString:B0e}=(dt(),bi),{toString:N0e}=(tt(),hr),{concat:HGe}=(mn(),$s),M0e=B1();mi.convertBuffer=async t=>(await D0e.digest(t)).digest;mi.convertPeerId=async t=>(await D0e.digest(t.id)).digest;mi.bufferToKey=t=>new qGe("/"+mi.encodeBase32(t),!1);mi.keyForPublicKey=t=>HGe([B0e("/pk/"),t.id]);mi.isPublicKeyKey=t=>N0e(t.slice(0,4))==="/pk/";mi.fromPublicKeyKey=t=>new VGe(t.slice(4));mi.now=()=>Date.now();mi.encodeBase32=t=>N0e(t,"base32");mi.decodeBase32=t=>B0e(t,"base32");mi.sortClosestPeers=async(t,e)=>(await FGe(t,async i=>{let n=await mi.convertPeerId(i);return{peer:i,distance:jGe(n,e)}})).sort(mi.xorCompare).map(i=>i.peer);mi.xorCompare=(t,e)=>UGe(t.distance,e.distance);mi.pathSize=(t,e)=>Math.ceil(t/e);mi.createPutRecord=(t,e)=>{let r=new Date;return new KGe(t,e,r).serialize()};mi.logger=(t,e)=>{let r=["libp2p","dht"];return e&&r.push(e),t&&r.push(`${t.toB58String().slice(0,8)}`),$P.formatters.b=n=>LGe.baseEncode(n),Object.assign($P(r.join(":")),{error:$P(r.concat(["error"]).join(":"))})};mi.TimeoutError=class extends Error{get code(){return"ETIMEDOUT"}};mi.withTimeout=(t,e)=>{async function r(...i){if(!e)return t(...i);let n;try{n=await M0e(t(...i),e)}catch(s){throw s instanceof M0e.TimeoutError?zGe(s,"ETIMEDOUT"):s}return n}return r};mi.mapParallel=async function(t,e){let r=[];for await(let i of t)r.push(e(i));return Promise.all(r)}});var U0e=m((lOt,j0e)=>{l();"use strict";var GGe=w0e(),{xor:$Ge}=(jm(),qm),WGe=_0e(),{sha256:YGe}=(di(),zs),XGe=rc(),QGe=it(),n7=Ii(),L0e=Ee(),Mu=Object.assign(L0e("libp2p:dht:routing-table"),{error:L0e("libp2p:dht:routing-table:error")}),ZGe=c5(),s7=15,q0e=class{constructor(e,{kBucketSize:r,refreshInterval:i}={}){this.peerId=e.peerId,this.dht=e,this._kBucketSize=r||20,this._refreshInterval=i||3e4,this.kb=new GGe({numberOfNodesPerKBucket:this._kBucketSize,numberOfNodesToPing:1}),this.commonPrefixLengthRefreshedAt=[],this._refreshTable=this._refreshTable.bind(this),this._onPing=this._onPing.bind(this)}async start(){this.kb.localNodeId=await n7.convertPeerId(this.peerId),this.kb.on("ping",this._onPing),await this._refreshTable(!0)}async stop(){this._refreshTimeoutId&&clearTimeout(this._refreshTimeoutId)}async _refreshTable(e){Mu("refreshing routing table");
  57. `);Ah.encode=t=>gme.encode.single(new yme([t,mme]));Ah.write=(t,e)=>t.push(Ah.encode(e));Ah.writeAll=(t,e)=>{t.push(e.reduce((r,i)=>r.append(Ah.encode(i)),new yme))};Ah.read=async t=>{let e=1,r={[Symbol.asyncIterator](){return this},next:()=>t.next(e)},i=s=>{e=s},n=await tZe(r,gme.decode({onLength:i}),nZe);if(n.get(n.length-1)!==mme[0])throw rZe(new Error("missing newline"),"ERR_INVALID_MULTISTREAM_SELECT_MESSAGE");return n.shallowSlice(0,-1)}});var vme=m((uDt,bme)=>{l();"use strict";var $1=Ee()("mss:select"),sZe=YC(),W1=M7(),oZe=S1();bme.exports=async(t,e,r)=>{e=Array.isArray(e)?[...e]:[e];let{reader:i,writer:n,rest:s,stream:o}=oZe(t),a=e.shift();r?($1('select: write ["%s", "%s"]',r,a),W1.writeAll(n,[r,a])):($1('select: write "%s"',a),W1.write(n,a));let c=(await W1.read(i)).toString();if($1('select: read "%s"',c),c===r&&(c=(await W1.read(i)).toString(),$1('select: read "%s"',c)),c===a)return s(),{stream:o,protocol:a};for(let u of e){$1('select: write "%s"',u),W1.write(n,u);let f=(await W1.read(i)).toString();if($1('select: read "%s" for "%s"',f,u),f===u)return s(),{stream:o,protocol:u}}throw s(),sZe(new Error("protocol selection failed"),"ERR_UNSUPPORTED_PROTOCOL")}});var XC=m(wme=>{l();"use strict";wme.PROTOCOL_ID="/multistream/1.0.0"});var Eme=m((lDt,_me)=>{l();"use strict";var s3=Ee()("mss:handle"),aZe=Rn(),Y1=M7(),cZe=S1(),{PROTOCOL_ID:QC}=XC();_me.exports=async(t,e)=>{e=Array.isArray(e)?e:[e];let{writer:r,reader:i,rest:n,stream:s}=cZe(t);for(;;){let o=(await Y1.read(i)).toString();if(s3('read "%s"',o),o===QC){s3('respond with "%s" for "%s"',QC,o),Y1.write(r,QC);continue}if(e.includes(o))return Y1.write(r,o),s3('respond with "%s" for "%s"',o,o),n(),{stream:s,protocol:o};if(o==="ls"){Y1.write(r,new aZe(e.map(a=>Y1.encode(a)))),s3('respond with "%s" for %s',e,o);continue}Y1.write(r,"na"),s3('respond with "na" for "%s"',o)}}});var Ame=m((dDt,xme)=>{l();"use strict";var uZe=Ab(),fZe=Ee()("it-multistream-select:ls"),Sme=M7(),lZe=S1(),dZe=fa(),hZe=Nr();xme.exports=async t=>{let{reader:e,writer:r,rest:i,stream:n}=lZe(t);fZe('write "ls"'),Sme.write(r,"ls"),i();let s=await Sme.read(e),o=uZe([s]),a=[];return await hZe(o,dZe.decode(),async c=>{for await(let u of c)a.push(u.shallowSlice(0,-1).toString())}),{stream:n,protocols:a}}});var Pme=m(L7=>{l();"use strict";var Ime=vme(),pZe=Eme(),yZe=Ame(),{PROTOCOL_ID:ZC}=XC();L7.PROTOCOL_ID=ZC;var JC=class{constructor(e){this._stream=e,this._shaken=!1}async _handshake(){if(this._shaken)return;let{stream:e}=await Ime(this._stream,ZC);this._stream=e,this._shaken=!0}},Tme=class extends JC{select(e){return Ime(this._stream,e,this._shaken?null:ZC)}async ls(){await this._handshake();let{stream:e,protocols:r}=await yZe(this._stream);return this._stream=e,r}};L7.Dialer=Tme;var Rme=class extends JC{handle(e){return pZe(this._stream,e)}};L7.Listener=Rme});var Ome=m((pDt,Cme)=>{l();"use strict";var gZe={OPEN:"open",CLOSING:"closing",CLOSED:"closed"};Cme.exports=gZe});var Lme=m((yDt,Mme)=>{l();"use strict";var kme=it(),{Multiaddr:mZe}=rt(),Bs=wT(),{OPEN:bZe,CLOSING:Dme,CLOSED:eO}=Ome(),Bme=Symbol.for("@libp2p/interface-connection/connection"),Nme=class{constructor({localAddr:e,remoteAddr:r,localPeer:i,remotePeer:n,newStream:s,close:o,getStreams:a,stat:c}){vZe(e,i,n,s,o,a,c),this.id=parseInt(String(Math.random()*1e9)).toString(36)+Date.now(),this.localAddr=e,this.remoteAddr=r,this.localPeer=i,this.remotePeer=n,this._stat={...c,status:bZe},this._newStream=s,this._close=o,this._getStreams=a,this.registry=new Map,this.tags=[]}get[Symbol.toStringTag](){return"Connection"}get[Bme](){return!0}static isConnection(e){return Boolean(e&&e[Bme])}get stat(){return this._stat}get streams(){return this._getStreams()}async newStream(e){if(this.stat.status===Dme)throw Bs(new Error("the connection is being closed"),"ERR_CONNECTION_BEING_CLOSED");if(this.stat.status===eO)throw Bs(new Error("the connection is closed"),"ERR_CONNECTION_CLOSED");Array.isArray(e)||(e=[e]);let{stream:r,protocol:i}=await this._newStream(e);return this.addStream(r,{protocol:i}),{stream:r,protocol:i}}addStream(e,{protocol:r,metadata:i={}}){
  58. named <base32 encoding of cid>.data. Where <base32 encoding of cid> is the
  59. "base32" encoding of the CID (as specified in
  60. https://github.com/multiformats/multibase) without the 'B' prefix.
  61. All the object files are placed in a tree of directories, based on a
  62. function of the CID. This is a form of sharding similar to
  63. the objects directory in git repositories. Previously, we used
  64. prefixes, we now use the next-to-last two charters.
  65. func NextToLast(base32cid string) {
  66. nextToLastLen := 2
  67. offset := len(base32cid) - nextToLastLen - 1
  68. return str[offset : offset+nextToLastLen]
  69. }
  70. For example, an object with a base58 CIDv1 of
  71. zb2rhYSxw4ZjuzgCnWSt19Q94ERaeFhu9uSqRgjSdx9bsgM6f
  72. has a base32 CIDv1 of
  73. BAFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA
  74. and will be placed at
  75. SC/AFKREIA22FLID5AJ2KU7URG47MDLROZIH6YF2KALU2PWEFPVI37YLKRSCA.data
  76. with 'SC' being the last-to-next two characters and the 'B' at the
  77. beginning of the CIDv1 string is the multibase prefix that is not
  78. stored in the filename.
  79. `;var G4="/repo/flatfs/shard/",$4="SHARDING",$E="_README",zy=class{constructor(e){this.param=e,this.name="base",this._padding=""}fun(e){return"implement me"}toString(){return`${G4}v1/${this.name}/${this.param}`}},WE=class extends zy{constructor(e){super(e);this._padding="".padStart(e,"_"),this.name="prefix"}fun(e){return(e+this._padding).slice(0,this.param)}},YE=class extends zy{constructor(e){super(e);this._padding="".padStart(e,"_"),this.name="suffix"}fun(e){let r=this._padding+e;return r.slice(r.length-this.param)}},XE=class extends zy{constructor(e){super(e);this._padding="".padStart(e+1,"_"),this.name="next-to-last"}fun(e){let r=this._padding+e,i=r.length-this.param-1;return r.slice(i,i+this.param)}};function XV(t){if(t=t.trim(),t.length===0)throw new Error("empty shard string");if(!t.startsWith(G4))throw new Error(`invalid or no path prefix: ${t}`);let e=t.slice(G4.length).split("/"),r=e[0];if(r!=="v1")throw new Error(`expect 'v1' version, got '${r}'`);let i=e[1];if(!e[2])throw new Error("missing param");let n=parseInt(e[2],10);switch(i){case"prefix":return new WE(n);case"suffix":return new YE(n);case"next-to-last":return new XE(n);default:throw new Error(`unkown sharding function: ${i}`)}}var QV=async(t,e)=>{let r=new qe(t).child(new qe($4)),n=await(typeof e.getRaw=="function"?e.getRaw.bind(e):e.get.bind(e))(r);return XV(new TextDecoder().decode(n||"").trim())};od();JE();l();od();var fIe=M(oo()),lIe=M(Nr());l();od();Zo();var aut=new qe($4),cut=new qe($E);l();var pIe=M(ea()),yIe=M(Z0()),gIe=M(ep());od();Zo();LE();Br();l();var tp={...bE},xut={...QE};l();var sz=M(rS());tt();dt();var Y4="/record/";function iS(t){return Ge(t,"base32")}function Hy(t){(typeof t=="string"||t instanceof String)&&(t=Xe(t.toString()));let e=Ge(t,"base64url");return`${Y4}${e}`}function oz(t){if(t.substring(0,Y4.length)!==Y4)throw(0,sz.default)(new Error("topic received is not from a record"),"ERR_TOPIC_IS_NOT_FROM_RECORD_NAMESPACE");let e=t.substring(Y4.length);return Xe(e,"base64url")}wi();var Is=M(rS()),nS=M(Ee()),Tn=Object.assign((0,nS.default)("datastore-pubsub:publisher"),{error:(0,nS.default)("datastore-pubsub:publisher:error")}),sS=class extends As{constructor(e,r,i,n,s){super();if(!n)throw(0,Is.default)(new TypeError("missing validator"),"ERR_INVALID_PARAMETERS");if(typeof n.validate!="function")throw(0,Is.default)(new TypeError("missing validate function"),"ERR_INVALID_PARAMETERS");if(typeof n.select!="function")throw(0,Is.default)(new TypeError("missing select function"),"ERR_INVALID_PARAMETERS");if(s&&typeof s!="function")throw(0,Is.default)(new TypeError("invalid subscriptionKeyFn received"),"ERR_INVALID_PARAMETERS");this._pubsub=e,this._datastore=r,this._peerId=i,this._validator=n,this._handleSubscriptionKeyFn=s,this._onMessage=this._onMessage.bind(this)}async put(e,r){if(!(e instanceof Uint8Array)){let n="datastore key does not have a valid format";throw Tn.error(n),(0,Is.default)(new Error(n),"ERR_INVALID_DATASTORE_KEY")}if(!(r instanceof Uint8Array)){let n="received value is not a Uint8Array";throw Tn.error(n),(0,Is.default)(new Error(n),"ERR_INVALID_VALUE_RECEIVED")}let i=Hy(e);Tn(`publish value for topic ${i}`),await this._pubsub.publish(i,r)}async get(e){if(!(e instanceof Uint8Array)){let n="datastore key does not have a valid format";throw Tn.error(n),(0,Is.default)(new Error(n),"ERR_INVALID_DATASTORE_KEY")}let r=Hy(e),i=await this._pubsub.getTopics();if(i&&Array.isArray(i)&&i.indexOf(r)>-1)return this._getLocal(e);try{this._pubsub.on(r,this._onMessage),await this._pubsub.subscribe(r)}catch(n){let s=`cannot subscribe topic ${r}`;throw Tn.error(s),(0,Is.default)(new Error(s),"ERR_SUBSCRIBING_TOPIC")}return Tn(`subscribed values for key ${r}`),this._getLocal(e)}unsubscribe(e){let r=Hy(e);return this._pubsub.removeListener(r,this._onMessage),this._pubsub.unsubscribe(r)}async _getLocal(e){let r=new qe("/"+iS(e),!1),i;try{i=await this._datastore.get(r)}catch(n){if(n.code!=="ERR_NOT_FOUND"){let o=`unexpected error getting the ipns record for ${r.toString()}`;throw Tn.error(o),(0,Is.default)(new Error(o),"ERR_UNEXPECTED_ERROR_GE
  80. /*!
  81. * prr
  82. * (c) 2013 Rod Vagg <rod@vagg.org>
  83. * https://github.com/rvagg/prr
  84. * License: MIT
  85. */
  86. /*!
  87. * Determine if an object is a Buffer
  88. *
  89. * @author Feross Aboukhadijeh <https://feross.org>
  90. * @license MIT
  91. */
  92. /*!
  93. * The buffer module from node.js, for the browser.
  94. *
  95. * @author Feross Aboukhadijeh <https://feross.org>
  96. * @license MIT
  97. */
  98. /*!
  99. * bytes
  100. * Copyright(c) 2012-2014 TJ Holowaychuk
  101. * Copyright(c) 2015 Jed Watson
  102. * MIT Licensed
  103. */
  104. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  105. /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
  106. /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
  107. /*! simple-peer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
  108. /**
  109. * Timestamp for 64-bit time_t, nanosecond precision and strftime
  110. *
  111. * @author Yusuke Kawasaki
  112. * @license MIT
  113. * @see https://github.com/kawanet/timestamp-nano
  114. */
  115. return Ipfs}));