import{L as fs}from"./chunk-QO4BJAKR.js";import{a as Sn,c as ee,d as ue,f as sr,n as process,o as u,q as f}from"./chunk-QTLWQ5AJ.js";var st=ee((qc,Ut)=>{u();f();var An,Un,On,Tn,Ln,Nn,Bn,Mn,In,At,ar,Fn,Pn,He,Rn,Hn,jn,Kn,zn,qn,Wn,Gn,Vn;(function(n){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(e){n(r(t,r(e)))}):typeof Ut=="object"&&typeof Ut.exports=="object"?n(r(t,r(Ut.exports))):n(r(t));function r(e,i){return e!==t&&(typeof Object.create=="function"?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(o,a){return e[o]=i?i(o,a):a}}})(function(n){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i])};An=function(r,e){t(r,e);function i(){this.constructor=r}r.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)},Un=Object.assign||function(r){for(var e,i=1,o=arguments.length;i=0;d--)(D=r[d])&&(s=(a<3?D(s):a>3?D(e,i,s):D(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s},Ln=function(r,e){return function(i,o){e(i,o,r)}},Nn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Bn=function(r,e,i,o){function a(s){return s instanceof i?s:new i(function(D){D(s)})}return new(i||(i=Promise))(function(s,D){function d(A){try{b(o.next(A))}catch(p){D(p)}}function E(A){try{b(o.throw(A))}catch(p){D(p)}}function b(A){A.done?s(A.value):a(A.value).then(d,E)}b((o=o.apply(r,e||[])).next())})},Mn=function(r,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,a,s,D;return D={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function d(b){return function(A){return E([b,A])}}function E(b){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(s=b[0]&2?a.return:b[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,b[1])).done)return s;switch(a=0,s&&(b=[b[0]&2,s.value]),b[0]){case 0:case 1:s=b;break;case 4:return i.label++,{value:b[1],done:!1};case 5:i.label++,a=b[1],b=[0];continue;case 7:b=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(b[0]===6||b[0]===2)){i=0;continue}if(b[0]===3&&(!s||b[1]>s[0]&&b[1]=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ar=function(r,e){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),a,s=[],D;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(d){D={error:d}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(D)throw D.error}}return s},Fn=function(){for(var r=[],e=0;e1||d(l,x)})})}function d(l,x){try{E(o[l](x))}catch(g){p(s[0][3],g)}}function E(l){l.value instanceof He?Promise.resolve(l.value.v).then(b,A):p(s[0][2],l)}function b(l){d("next",l)}function A(l){d("throw",l)}function p(l,x){l(x),s.shift(),s.length&&d(s[0][0],s[0][1])}},Hn=function(r){var e,i;return e={},o("next"),o("throw",function(a){throw a}),o("return"),e[Symbol.iterator]=function(){return this},e;function o(a,s){e[a]=r[a]?function(D){return(i=!i)?{value:He(r[a](D)),done:a==="return"}:s?s(D):D}:s}},jn=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],i;return e?e.call(r):(r=typeof At=="function"?At(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(s){i[s]=r[s]&&function(D){return new Promise(function(d,E){D=r[s](D),a(d,E,D.done,D.value)})}}function a(s,D,d,E){Promise.resolve(E).then(function(b){s({value:b,done:d})},D)}},Kn=function(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r},zn=function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e.default=r,e},qn=function(r){return r&&r.__esModule?r:{default:r}},Wn=function(r,e){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return e.get(r)},Gn=function(r,e,i){if(!e.has(r))throw new TypeError("attempted to set private field on non-instance");return e.set(r,i),i},n("__extends",An),n("__assign",Un),n("__rest",On),n("__decorate",Tn),n("__param",Ln),n("__metadata",Nn),n("__awaiter",Bn),n("__generator",Mn),n("__exportStar",In),n("__createBinding",Vn),n("__values",At),n("__read",ar),n("__spread",Fn),n("__spreadArrays",Pn),n("__await",He),n("__asyncGenerator",Rn),n("__asyncDelegator",Hn),n("__asyncValues",jn),n("__makeTemplateObject",Kn),n("__importStar",zn),n("__importDefault",qn),n("__classPrivateFieldGet",Wn),n("__classPrivateFieldSet",Gn)})});var Yn=ee(Ot=>{"use strict";u();f();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.delay=void 0;function cs(n){return new Promise(t=>{setTimeout(()=>{t(!0)},n)})}Ot.delay=cs});var Jn=ee(je=>{"use strict";u();f();Object.defineProperty(je,"__esModule",{value:!0});je.ONE_THOUSAND=je.ONE_HUNDRED=void 0;je.ONE_HUNDRED=100;je.ONE_THOUSAND=1e3});var $n=ee(M=>{"use strict";u();f();Object.defineProperty(M,"__esModule",{value:!0});M.ONE_YEAR=M.FOUR_WEEKS=M.THREE_WEEKS=M.TWO_WEEKS=M.ONE_WEEK=M.THIRTY_DAYS=M.SEVEN_DAYS=M.FIVE_DAYS=M.THREE_DAYS=M.ONE_DAY=M.TWENTY_FOUR_HOURS=M.TWELVE_HOURS=M.SIX_HOURS=M.THREE_HOURS=M.ONE_HOUR=M.SIXTY_MINUTES=M.THIRTY_MINUTES=M.TEN_MINUTES=M.FIVE_MINUTES=M.ONE_MINUTE=M.SIXTY_SECONDS=M.THIRTY_SECONDS=M.TEN_SECONDS=M.FIVE_SECONDS=M.ONE_SECOND=void 0;M.ONE_SECOND=1;M.FIVE_SECONDS=5;M.TEN_SECONDS=10;M.THIRTY_SECONDS=30;M.SIXTY_SECONDS=60;M.ONE_MINUTE=M.SIXTY_SECONDS;M.FIVE_MINUTES=M.ONE_MINUTE*5;M.TEN_MINUTES=M.ONE_MINUTE*10;M.THIRTY_MINUTES=M.ONE_MINUTE*30;M.SIXTY_MINUTES=M.ONE_MINUTE*60;M.ONE_HOUR=M.SIXTY_MINUTES;M.THREE_HOURS=M.ONE_HOUR*3;M.SIX_HOURS=M.ONE_HOUR*6;M.TWELVE_HOURS=M.ONE_HOUR*12;M.TWENTY_FOUR_HOURS=M.ONE_HOUR*24;M.ONE_DAY=M.TWENTY_FOUR_HOURS;M.THREE_DAYS=M.ONE_DAY*3;M.FIVE_DAYS=M.ONE_DAY*5;M.SEVEN_DAYS=M.ONE_DAY*7;M.THIRTY_DAYS=M.ONE_DAY*30;M.ONE_WEEK=M.SEVEN_DAYS;M.TWO_WEEKS=M.ONE_WEEK*2;M.THREE_WEEKS=M.ONE_WEEK*3;M.FOUR_WEEKS=M.ONE_WEEK*4;M.ONE_YEAR=M.ONE_DAY*365});var ur=ee(Tt=>{"use strict";u();f();Object.defineProperty(Tt,"__esModule",{value:!0});var Xn=st();Xn.__exportStar(Jn(),Tt);Xn.__exportStar($n(),Tt)});var Qn=ee(Ke=>{"use strict";u();f();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.fromMiliseconds=Ke.toMiliseconds=void 0;var kn=ur();function hs(n){return n*kn.ONE_THOUSAND}Ke.toMiliseconds=hs;function Ds(n){return Math.floor(n/kn.ONE_THOUSAND)}Ke.fromMiliseconds=Ds});var ei=ee(Lt=>{"use strict";u();f();Object.defineProperty(Lt,"__esModule",{value:!0});var Zn=st();Zn.__exportStar(Yn(),Lt);Zn.__exportStar(Qn(),Lt)});var ti=ee(at=>{"use strict";u();f();Object.defineProperty(at,"__esModule",{value:!0});at.Watch=void 0;var Nt=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let e=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:e})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};at.Watch=Nt;at.default=Nt});var ri=ee(Bt=>{"use strict";u();f();Object.defineProperty(Bt,"__esModule",{value:!0});Bt.IWatch=void 0;var fr=class{};Bt.IWatch=fr});var ni=ee(cr=>{"use strict";u();f();Object.defineProperty(cr,"__esModule",{value:!0});var ls=st();ls.__exportStar(ri(),cr)});var ii=ee(ze=>{"use strict";u();f();Object.defineProperty(ze,"__esModule",{value:!0});var Mt=st();Mt.__exportStar(ei(),ze);Mt.__exportStar(ti(),ze);Mt.__exportStar(ni(),ze);Mt.__exportStar(ur(),ze)});var ui=ee(It=>{"use strict";u();f();Object.defineProperty(It,"__esModule",{value:!0});It.BrowserRandomSource=void 0;var ai=65536,hr=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let e=0;e{"use strict";u();f();Object.defineProperty(Dr,"__esModule",{value:!0});function ps(n){for(var t=0;t{"use strict";u();f();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.NodeRandomSource=void 0;var xs=xe(),lr=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof Sn<"u"){let t=fs();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let e=new Uint8Array(t);for(let i=0;i{"use strict";u();f();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.SystemRandomSource=void 0;var Es=ui(),_s=fi(),dr=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Es.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new _s.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};Pt.SystemRandomSource=dr});var hi=ee(pe=>{"use strict";u();f();Object.defineProperty(pe,"__esModule",{value:!0});function ws(n,t){var r=n>>>16&65535,e=n&65535,i=t>>>16&65535,o=t&65535;return e*o+(r*o+e*i<<16>>>0)|0}pe.mul=Math.imul||ws;function ms(n,t){return n+t|0}pe.add=ms;function gs(n,t){return n-t|0}pe.sub=gs;function ys(n,t){return n<>>32-t}pe.rotl=ys;function vs(n,t){return n<<32-t|n>>>t}pe.rotr=vs;function Cs(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}pe.isInteger=Number.isInteger||Cs;pe.MAX_SAFE_INTEGER=9007199254740991;pe.isSafeInteger=function(n){return pe.isInteger(n)&&n>=-pe.MAX_SAFE_INTEGER&&n<=pe.MAX_SAFE_INTEGER}});var qe=ee(J=>{"use strict";u();f();Object.defineProperty(J,"__esModule",{value:!0});var Di=hi();function Ss(n,t){return t===void 0&&(t=0),(n[t+0]<<8|n[t+1])<<16>>16}J.readInt16BE=Ss;function As(n,t){return t===void 0&&(t=0),(n[t+0]<<8|n[t+1])>>>0}J.readUint16BE=As;function Us(n,t){return t===void 0&&(t=0),(n[t+1]<<8|n[t])<<16>>16}J.readInt16LE=Us;function Os(n,t){return t===void 0&&(t=0),(n[t+1]<<8|n[t])>>>0}J.readUint16LE=Os;function li(n,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=n>>>8,t[r+1]=n>>>0,t}J.writeUint16BE=li;J.writeInt16BE=li;function di(n,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=n>>>0,t[r+1]=n>>>8,t}J.writeUint16LE=di;J.writeInt16LE=di;function br(n,t){return t===void 0&&(t=0),n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3]}J.readInt32BE=br;function pr(n,t){return t===void 0&&(t=0),(n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3])>>>0}J.readUint32BE=pr;function xr(n,t){return t===void 0&&(t=0),n[t+3]<<24|n[t+2]<<16|n[t+1]<<8|n[t]}J.readInt32LE=xr;function Er(n,t){return t===void 0&&(t=0),(n[t+3]<<24|n[t+2]<<16|n[t+1]<<8|n[t])>>>0}J.readUint32LE=Er;function Rt(n,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=n>>>24,t[r+1]=n>>>16,t[r+2]=n>>>8,t[r+3]=n>>>0,t}J.writeUint32BE=Rt;J.writeInt32BE=Rt;function Ht(n,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=n>>>0,t[r+1]=n>>>8,t[r+2]=n>>>16,t[r+3]=n>>>24,t}J.writeUint32LE=Ht;J.writeInt32LE=Ht;function Ts(n,t){t===void 0&&(t=0);var r=br(n,t),e=br(n,t+4);return r*4294967296+e-(e>>31)*4294967296}J.readInt64BE=Ts;function Ls(n,t){t===void 0&&(t=0);var r=pr(n,t),e=pr(n,t+4);return r*4294967296+e}J.readUint64BE=Ls;function Ns(n,t){t===void 0&&(t=0);var r=xr(n,t),e=xr(n,t+4);return e*4294967296+r-(r>>31)*4294967296}J.readInt64LE=Ns;function Bs(n,t){t===void 0&&(t=0);var r=Er(n,t),e=Er(n,t+4);return e*4294967296+r}J.readUint64LE=Bs;function bi(n,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),Rt(n/4294967296>>>0,t,r),Rt(n>>>0,t,r+4),t}J.writeUint64BE=bi;J.writeInt64BE=bi;function pi(n,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),Ht(n>>>0,t,r),Ht(n/4294967296>>>0,t,r+4),t}J.writeUint64LE=pi;J.writeInt64LE=pi;function Ms(n,t,r){if(r===void 0&&(r=0),n%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(n/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var e=0,i=1,o=n/8+r-1;o>=r;o--)e+=t[o]*i,i*=256;return e}J.readUintBE=Ms;function Is(n,t,r){if(r===void 0&&(r=0),n%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(n/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var e=0,i=1,o=r;o=e;o--)r[o]=t/i&255,i*=256;return r}J.writeUintBE=Fs;function Ps(n,t,r,e){if(r===void 0&&(r=new Uint8Array(n/8)),e===void 0&&(e=0),n%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!Di.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=e;o{"use strict";u();f();Object.defineProperty(de,"__esModule",{value:!0});de.randomStringForEntropy=de.randomString=de.randomUint32=de.randomBytes=de.defaultRandomSource=void 0;var Vs=ci(),Ys=qe(),xi=xe();de.defaultRandomSource=new Vs.SystemRandomSource;function _r(n,t=de.defaultRandomSource){return t.randomBytes(n)}de.randomBytes=_r;function Js(n=de.defaultRandomSource){let t=_r(4,n),r=(0,Ys.readUint32LE)(t);return(0,xi.wipe)(t),r}de.randomUint32=Js;var Ei="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function _i(n,t=Ei,r=de.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let e="",i=t.length,o=256-256%i;for(;n>0;){let a=_r(Math.ceil(n*256/o),r);for(let s=0;s0;s++){let D=a[s];D{"use strict";u();f();Object.defineProperty(ye,"__esModule",{value:!0});var ke=qe(),Xe=xe();ye.DIGEST_LENGTH=64;ye.BLOCK_SIZE=128;var Zi=function(){function n(){this.digestLength=ye.DIGEST_LENGTH,this.blockSize=ye.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return n.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},n.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},n.prototype.clean=function(){Xe.wipe(this._buffer),Xe.wipe(this._tempHi),Xe.wipe(this._tempLo),this.reset()},n.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var e=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[e++],r--;this._bufferLength===this.blockSize&&(Wr(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(e=Wr(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,e,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[e++],r--;return this},n.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,e=this._bufferLength,i=r/536870912|0,o=r<<3,a=r%128<112?128:256;this._buffer[e]=128;for(var s=e+1;s0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},n.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},n.prototype.cleanSavedState=function(t){Xe.wipe(t.stateHi),Xe.wipe(t.stateLo),t.buffer&&Xe.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},n}();ye.SHA512=Zi;var Qi=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function Wr(n,t,r,e,i,o,a){for(var s=r[0],D=r[1],d=r[2],E=r[3],b=r[4],A=r[5],p=r[6],l=r[7],x=e[0],g=e[1],C=e[2],T=e[3],_=e[4],v=e[5],O=e[6],L=e[7],c,h,N,I,S,m,y,U;a>=128;){for(var R=0;R<16;R++){var H=8*R+o;n[R]=ke.readUint32BE(i,H),t[R]=ke.readUint32BE(i,H+4)}for(var R=0;R<80;R++){var B=s,Y=D,se=d,P=E,K=b,z=A,q=p,j=l,W=x,G=g,V=C,$=T,k=_,Q=v,Z=O,X=L;if(c=l,h=L,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=(b>>>14|_<<32-14)^(b>>>18|_<<32-18)^(_>>>41-32|b<<32-(41-32)),h=(_>>>14|b<<32-14)^(_>>>18|b<<32-18)^(b>>>41-32|_<<32-(41-32)),S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,c=b&A^~b&p,h=_&v^~_&O,S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,c=Qi[R*2],h=Qi[R*2+1],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,c=n[R%16],h=t[R%16],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,N=y&65535|U<<16,I=S&65535|m<<16,c=N,h=I,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=(s>>>28|x<<32-28)^(x>>>34-32|s<<32-(34-32))^(x>>>39-32|s<<32-(39-32)),h=(x>>>28|s<<32-28)^(s>>>34-32|x<<32-(34-32))^(s>>>39-32|x<<32-(39-32)),S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,c=s&D^s&d^D&d,h=x&g^x&C^g&C,S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,j=y&65535|U<<16,X=S&65535|m<<16,c=P,h=$,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=N,h=I,S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,P=y&65535|U<<16,$=S&65535|m<<16,D=B,d=Y,E=se,b=P,A=K,p=z,l=q,s=j,g=W,C=G,T=V,_=$,v=k,O=Q,L=Z,x=X,R%16===15)for(var H=0;H<16;H++)c=n[H],h=t[H],S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=n[(H+9)%16],h=t[(H+9)%16],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,N=n[(H+1)%16],I=t[(H+1)%16],c=(N>>>1|I<<32-1)^(N>>>8|I<<32-8)^N>>>7,h=(I>>>1|N<<32-1)^(I>>>8|N<<32-8)^(I>>>7|N<<32-7),S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,N=n[(H+14)%16],I=t[(H+14)%16],c=(N>>>19|I<<32-19)^(I>>>61-32|N<<32-(61-32))^N>>>6,h=(I>>>19|N<<32-19)^(N>>>61-32|I<<32-(61-32))^(I>>>6|N<<32-6),S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,n[H]=y&65535|U<<16,t[H]=S&65535|m<<16}c=s,h=x,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[0],h=e[0],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[0]=s=y&65535|U<<16,e[0]=x=S&65535|m<<16,c=D,h=g,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[1],h=e[1],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[1]=D=y&65535|U<<16,e[1]=g=S&65535|m<<16,c=d,h=C,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[2],h=e[2],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[2]=d=y&65535|U<<16,e[2]=C=S&65535|m<<16,c=E,h=T,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[3],h=e[3],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[3]=E=y&65535|U<<16,e[3]=T=S&65535|m<<16,c=b,h=_,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[4],h=e[4],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[4]=b=y&65535|U<<16,e[4]=_=S&65535|m<<16,c=A,h=v,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[5],h=e[5],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[5]=A=y&65535|U<<16,e[5]=v=S&65535|m<<16,c=p,h=O,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[6],h=e[6],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[6]=p=y&65535|U<<16,e[6]=O=S&65535|m<<16,c=l,h=L,S=h&65535,m=h>>>16,y=c&65535,U=c>>>16,c=r[7],h=e[7],S+=h&65535,m+=h>>>16,y+=c&65535,U+=c>>>16,m+=S>>>16,y+=m>>>16,U+=y>>>16,r[7]=l=y&65535|U<<16,e[7]=L=S&65535|m<<16,o+=128,a-=128}return o}function fu(n){var t=new Zi;t.update(n);var r=t.digest();return t.clean(),r}ye.hash=fu});var bo=ee(ie=>{"use strict";u();f();Object.defineProperty(ie,"__esModule",{value:!0});ie.convertSecretKeyToX25519=ie.convertPublicKeyToX25519=ie.verify=ie.sign=ie.extractPublicKeyFromSecretKey=ie.generateKeyPair=ie.generateKeyPairFromSeed=ie.SEED_LENGTH=ie.SECRET_KEY_LENGTH=ie.PUBLIC_KEY_LENGTH=ie.SIGNATURE_LENGTH=void 0;var cu=jt(),bt=eo(),oo=xe();ie.SIGNATURE_LENGTH=64;ie.PUBLIC_KEY_LENGTH=32;ie.SECRET_KEY_LENGTH=64;ie.SEED_LENGTH=32;function F(n){let t=new Float64Array(16);if(n)for(let r=0;r>16&1),r[a-1]&=65535;r[15]=e[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,so(e,r,1-o)}for(let i=0;i<16;i++)n[2*i]=e[i]&255,n[2*i+1]=e[i]>>8}function ao(n,t){let r=0;for(let e=0;e<32;e++)r|=n[e]^t[e];return(1&r-1>>>8)-1}function no(n,t){let r=new Uint8Array(32),e=new Uint8Array(32);return pt(r,n),pt(e,t),ao(r,e)}function uo(n){let t=new Uint8Array(32);return pt(t,n),t[0]&1}function bu(n,t){for(let r=0;r<16;r++)n[r]=t[2*r]+(t[2*r+1]<<8);n[15]&=32767}function Me(n,t,r){for(let e=0;e<16;e++)n[e]=t[e]+r[e]}function Fe(n,t,r){for(let e=0;e<16;e++)n[e]=t[e]-r[e]}function oe(n,t,r){let e,i,o=0,a=0,s=0,D=0,d=0,E=0,b=0,A=0,p=0,l=0,x=0,g=0,C=0,T=0,_=0,v=0,O=0,L=0,c=0,h=0,N=0,I=0,S=0,m=0,y=0,U=0,R=0,H=0,B=0,Y=0,se=0,P=r[0],K=r[1],z=r[2],q=r[3],j=r[4],W=r[5],G=r[6],V=r[7],$=r[8],k=r[9],Q=r[10],Z=r[11],X=r[12],te=r[13],re=r[14],ne=r[15];e=t[0],o+=e*P,a+=e*K,s+=e*z,D+=e*q,d+=e*j,E+=e*W,b+=e*G,A+=e*V,p+=e*$,l+=e*k,x+=e*Q,g+=e*Z,C+=e*X,T+=e*te,_+=e*re,v+=e*ne,e=t[1],a+=e*P,s+=e*K,D+=e*z,d+=e*q,E+=e*j,b+=e*W,A+=e*G,p+=e*V,l+=e*$,x+=e*k,g+=e*Q,C+=e*Z,T+=e*X,_+=e*te,v+=e*re,O+=e*ne,e=t[2],s+=e*P,D+=e*K,d+=e*z,E+=e*q,b+=e*j,A+=e*W,p+=e*G,l+=e*V,x+=e*$,g+=e*k,C+=e*Q,T+=e*Z,_+=e*X,v+=e*te,O+=e*re,L+=e*ne,e=t[3],D+=e*P,d+=e*K,E+=e*z,b+=e*q,A+=e*j,p+=e*W,l+=e*G,x+=e*V,g+=e*$,C+=e*k,T+=e*Q,_+=e*Z,v+=e*X,O+=e*te,L+=e*re,c+=e*ne,e=t[4],d+=e*P,E+=e*K,b+=e*z,A+=e*q,p+=e*j,l+=e*W,x+=e*G,g+=e*V,C+=e*$,T+=e*k,_+=e*Q,v+=e*Z,O+=e*X,L+=e*te,c+=e*re,h+=e*ne,e=t[5],E+=e*P,b+=e*K,A+=e*z,p+=e*q,l+=e*j,x+=e*W,g+=e*G,C+=e*V,T+=e*$,_+=e*k,v+=e*Q,O+=e*Z,L+=e*X,c+=e*te,h+=e*re,N+=e*ne,e=t[6],b+=e*P,A+=e*K,p+=e*z,l+=e*q,x+=e*j,g+=e*W,C+=e*G,T+=e*V,_+=e*$,v+=e*k,O+=e*Q,L+=e*Z,c+=e*X,h+=e*te,N+=e*re,I+=e*ne,e=t[7],A+=e*P,p+=e*K,l+=e*z,x+=e*q,g+=e*j,C+=e*W,T+=e*G,_+=e*V,v+=e*$,O+=e*k,L+=e*Q,c+=e*Z,h+=e*X,N+=e*te,I+=e*re,S+=e*ne,e=t[8],p+=e*P,l+=e*K,x+=e*z,g+=e*q,C+=e*j,T+=e*W,_+=e*G,v+=e*V,O+=e*$,L+=e*k,c+=e*Q,h+=e*Z,N+=e*X,I+=e*te,S+=e*re,m+=e*ne,e=t[9],l+=e*P,x+=e*K,g+=e*z,C+=e*q,T+=e*j,_+=e*W,v+=e*G,O+=e*V,L+=e*$,c+=e*k,h+=e*Q,N+=e*Z,I+=e*X,S+=e*te,m+=e*re,y+=e*ne,e=t[10],x+=e*P,g+=e*K,C+=e*z,T+=e*q,_+=e*j,v+=e*W,O+=e*G,L+=e*V,c+=e*$,h+=e*k,N+=e*Q,I+=e*Z,S+=e*X,m+=e*te,y+=e*re,U+=e*ne,e=t[11],g+=e*P,C+=e*K,T+=e*z,_+=e*q,v+=e*j,O+=e*W,L+=e*G,c+=e*V,h+=e*$,N+=e*k,I+=e*Q,S+=e*Z,m+=e*X,y+=e*te,U+=e*re,R+=e*ne,e=t[12],C+=e*P,T+=e*K,_+=e*z,v+=e*q,O+=e*j,L+=e*W,c+=e*G,h+=e*V,N+=e*$,I+=e*k,S+=e*Q,m+=e*Z,y+=e*X,U+=e*te,R+=e*re,H+=e*ne,e=t[13],T+=e*P,_+=e*K,v+=e*z,O+=e*q,L+=e*j,c+=e*W,h+=e*G,N+=e*V,I+=e*$,S+=e*k,m+=e*Q,y+=e*Z,U+=e*X,R+=e*te,H+=e*re,B+=e*ne,e=t[14],_+=e*P,v+=e*K,O+=e*z,L+=e*q,c+=e*j,h+=e*W,N+=e*G,I+=e*V,S+=e*$,m+=e*k,y+=e*Q,U+=e*Z,R+=e*X,H+=e*te,B+=e*re,Y+=e*ne,e=t[15],v+=e*P,O+=e*K,L+=e*z,c+=e*q,h+=e*j,N+=e*W,I+=e*G,S+=e*V,m+=e*$,y+=e*k,U+=e*Q,R+=e*Z,H+=e*X,B+=e*te,Y+=e*re,se+=e*ne,o+=38*O,a+=38*L,s+=38*c,D+=38*h,d+=38*N,E+=38*I,b+=38*S,A+=38*m,p+=38*y,l+=38*U,x+=38*R,g+=38*H,C+=38*B,T+=38*Y,_+=38*se,i=1,e=o+i+65535,i=Math.floor(e/65536),o=e-i*65536,e=a+i+65535,i=Math.floor(e/65536),a=e-i*65536,e=s+i+65535,i=Math.floor(e/65536),s=e-i*65536,e=D+i+65535,i=Math.floor(e/65536),D=e-i*65536,e=d+i+65535,i=Math.floor(e/65536),d=e-i*65536,e=E+i+65535,i=Math.floor(e/65536),E=e-i*65536,e=b+i+65535,i=Math.floor(e/65536),b=e-i*65536,e=A+i+65535,i=Math.floor(e/65536),A=e-i*65536,e=p+i+65535,i=Math.floor(e/65536),p=e-i*65536,e=l+i+65535,i=Math.floor(e/65536),l=e-i*65536,e=x+i+65535,i=Math.floor(e/65536),x=e-i*65536,e=g+i+65535,i=Math.floor(e/65536),g=e-i*65536,e=C+i+65535,i=Math.floor(e/65536),C=e-i*65536,e=T+i+65535,i=Math.floor(e/65536),T=e-i*65536,e=_+i+65535,i=Math.floor(e/65536),_=e-i*65536,e=v+i+65535,i=Math.floor(e/65536),v=e-i*65536,o+=i-1+37*(i-1),i=1,e=o+i+65535,i=Math.floor(e/65536),o=e-i*65536,e=a+i+65535,i=Math.floor(e/65536),a=e-i*65536,e=s+i+65535,i=Math.floor(e/65536),s=e-i*65536,e=D+i+65535,i=Math.floor(e/65536),D=e-i*65536,e=d+i+65535,i=Math.floor(e/65536),d=e-i*65536,e=E+i+65535,i=Math.floor(e/65536),E=e-i*65536,e=b+i+65535,i=Math.floor(e/65536),b=e-i*65536,e=A+i+65535,i=Math.floor(e/65536),A=e-i*65536,e=p+i+65535,i=Math.floor(e/65536),p=e-i*65536,e=l+i+65535,i=Math.floor(e/65536),l=e-i*65536,e=x+i+65535,i=Math.floor(e/65536),x=e-i*65536,e=g+i+65535,i=Math.floor(e/65536),g=e-i*65536,e=C+i+65535,i=Math.floor(e/65536),C=e-i*65536,e=T+i+65535,i=Math.floor(e/65536),T=e-i*65536,e=_+i+65535,i=Math.floor(e/65536),_=e-i*65536,e=v+i+65535,i=Math.floor(e/65536),v=e-i*65536,o+=i-1+37*(i-1),n[0]=o,n[1]=a,n[2]=s,n[3]=D,n[4]=d,n[5]=E,n[6]=b,n[7]=A,n[8]=p,n[9]=l,n[10]=x,n[11]=g,n[12]=C,n[13]=T,n[14]=_,n[15]=v}function Ie(n,t){oe(n,t,t)}function fo(n,t){let r=F(),e;for(e=0;e<16;e++)r[e]=t[e];for(e=253;e>=0;e--)Ie(r,r),e!==2&&e!==4&&oe(r,r,t);for(e=0;e<16;e++)n[e]=r[e]}function pu(n,t){let r=F(),e;for(e=0;e<16;e++)r[e]=t[e];for(e=250;e>=0;e--)Ie(r,r),e!==1&&oe(r,r,t);for(e=0;e<16;e++)n[e]=r[e]}function Jr(n,t){let r=F(),e=F(),i=F(),o=F(),a=F(),s=F(),D=F(),d=F(),E=F();Fe(r,n[1],n[0]),Fe(E,t[1],t[0]),oe(r,r,E),Me(e,n[0],n[1]),Me(E,t[0],t[1]),oe(e,e,E),oe(i,n[3],t[3]),oe(i,i,lu),oe(o,n[2],t[2]),Me(o,o,o),Fe(a,e,r),Fe(s,o,i),Me(D,o,i),Me(d,e,r),oe(n[0],a,s),oe(n[1],d,D),oe(n[2],D,s),oe(n[3],a,d)}function io(n,t,r){for(let e=0;e<4;e++)so(n[e],t[e],r)}function Xr(n,t){let r=F(),e=F(),i=F();fo(i,t[2]),oe(r,t[0],i),oe(e,t[1],i),pt(n,e),n[31]^=uo(r)<<7}function co(n,t,r){Oe(n[0],Yr),Oe(n[1],Qe),Oe(n[2],Qe),Oe(n[3],Yr);for(let e=255;e>=0;--e){let i=r[e/8|0]>>(e&7)&1;io(n,t,i),Jr(t,n),Jr(n,n),io(n,t,i)}}function kr(n,t){let r=[F(),F(),F(),F()];Oe(r[0],to),Oe(r[1],ro),Oe(r[2],Qe),oe(r[3],to,ro),co(n,r,t)}function ho(n){if(n.length!==ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${ie.SEED_LENGTH} bytes`);let t=(0,bt.hash)(n);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),e=[F(),F(),F(),F()];kr(e,t),Xr(r,e);let i=new Uint8Array(64);return i.set(n),i.set(r,32),{publicKey:r,secretKey:i}}ie.generateKeyPairFromSeed=ho;function xu(n){let t=(0,cu.randomBytes)(32,n),r=ho(t);return(0,oo.wipe)(t),r}ie.generateKeyPair=xu;function Eu(n){if(n.length!==ie.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${ie.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(n.subarray(32))}ie.extractPublicKeyFromSecretKey=Eu;var Vr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Do(n,t){let r,e,i,o;for(e=63;e>=32;--e){for(r=0,i=e-32,o=e-12;i>4)*Vr[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*Vr[i];for(e=0;e<32;e++)t[e+1]+=t[e]>>8,n[e]=t[e]&255}function $r(n){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=n[r];for(let r=0;r<64;r++)n[r]=0;Do(n,t)}function _u(n,t){let r=new Float64Array(64),e=[F(),F(),F(),F()],i=(0,bt.hash)(n.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let a=new bt.SHA512;a.update(o.subarray(32)),a.update(t);let s=a.digest();a.clean(),$r(s),kr(e,s),Xr(o,e),a.reset(),a.update(o.subarray(0,32)),a.update(n.subarray(32)),a.update(t);let D=a.digest();$r(D);for(let d=0;d<32;d++)r[d]=s[d];for(let d=0;d<32;d++)for(let E=0;E<32;E++)r[d+E]+=D[d]*i[E];return Do(o.subarray(32),r),o}ie.sign=_u;function lo(n,t){let r=F(),e=F(),i=F(),o=F(),a=F(),s=F(),D=F();return Oe(n[2],Qe),bu(n[1],t),Ie(i,n[1]),oe(o,i,Du),Fe(i,i,n[2]),Me(o,n[2],o),Ie(a,o),Ie(s,a),oe(D,s,a),oe(r,D,i),oe(r,r,o),pu(r,r),oe(r,r,i),oe(r,r,o),oe(r,r,o),oe(n[0],r,o),Ie(e,n[0]),oe(e,e,o),no(e,i)&&oe(n[0],n[0],du),Ie(e,n[0]),oe(e,e,o),no(e,i)?-1:(uo(n[0])===t[31]>>7&&Fe(n[0],Yr,n[0]),oe(n[3],n[0],n[1]),0)}function wu(n,t,r){let e=new Uint8Array(32),i=[F(),F(),F(),F()],o=[F(),F(),F(),F()];if(r.length!==ie.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${ie.SIGNATURE_LENGTH} bytes`);if(lo(o,n))return!1;let a=new bt.SHA512;a.update(r.subarray(0,32)),a.update(n),a.update(t);let s=a.digest();return $r(s),co(i,o,s),kr(o,r.subarray(32)),Jr(i,o),Xr(e,i),!ao(r,e)}ie.verify=wu;function mu(n){let t=[F(),F(),F(),F()];if(lo(t,n))throw new Error("Ed25519: invalid public key");let r=F(),e=F(),i=t[1];Me(r,Qe,i),Fe(e,Qe,i),fo(e,e),oe(r,r,e);let o=new Uint8Array(32);return pt(o,r),o}ie.convertPublicKeyToX25519=mu;function gu(n){let t=(0,bt.hash)(n.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,oo.wipe)(t),r}ie.convertSecretKeyToX25519=gu});var go=ee(ae=>{"use strict";u();f();Object.defineProperty(ae,"__esModule",{value:!0});ae.getLocalStorage=ae.getLocalStorageOrThrow=ae.getCrypto=ae.getCryptoOrThrow=ae.getLocation=ae.getLocationOrThrow=ae.getNavigator=ae.getNavigatorOrThrow=ae.getDocument=ae.getDocumentOrThrow=ae.getFromWindowOrThrow=ae.getFromWindow=void 0;function Pe(n){let t;return typeof window<"u"&&typeof window[n]<"u"&&(t=window[n]),t}ae.getFromWindow=Pe;function Ze(n){let t=Pe(n);if(!t)throw new Error(`${n} is not defined in Window`);return t}ae.getFromWindowOrThrow=Ze;function Fu(){return Ze("document")}ae.getDocumentOrThrow=Fu;function Pu(){return Pe("document")}ae.getDocument=Pu;function Ru(){return Ze("navigator")}ae.getNavigatorOrThrow=Ru;function Hu(){return Pe("navigator")}ae.getNavigator=Hu;function ju(){return Ze("location")}ae.getLocationOrThrow=ju;function Ku(){return Pe("location")}ae.getLocation=Ku;function zu(){return Ze("crypto")}ae.getCryptoOrThrow=zu;function qu(){return Pe("crypto")}ae.getCrypto=qu;function Wu(){return Ze("localStorage")}ae.getLocalStorageOrThrow=Wu;function Gu(){return Pe("localStorage")}ae.getLocalStorage=Gu});var Yu=ee(Yt=>{"use strict";u();f();Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getWindowMetadata=void 0;var yo=go();function Vu(){let n,t;try{n=yo.getDocumentOrThrow(),t=yo.getLocationOrThrow()}catch{return null}function r(){let b=n.getElementsByTagName("link"),A=[];for(let p=0;p-1){let g=l.getAttribute("href");if(g)if(g.toLowerCase().indexOf("https:")===-1&&g.toLowerCase().indexOf("http:")===-1&&g.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(g.indexOf("/")===0)C+=g;else{let T=t.pathname.split("/");T.pop();let _=T.join("/");C+=_+"/"+g}A.push(C)}else if(g.indexOf("//")===0){let C=t.protocol+g;A.push(C)}else A.push(g)}}return A}function e(...b){let A=n.getElementsByTagName("meta");for(let p=0;pl.getAttribute(g)).filter(g=>g?b.includes(g):!1);if(x.length&&x){let g=l.getAttribute("content");if(g)return g}}return""}function i(){let b=e("name","og:site_name","og:title","twitter:title");return b||(b=n.title),b}function o(){return e("description","og:description","twitter:description","keywords")}let a=i(),s=o(),D=t.origin,d=r();return{description:s,url:D,icons:d,name:a}}Yt.getWindowMetadata=Vu});var Co=ee(Jt=>{"use strict";u();f();Object.defineProperty(Jt,"__esModule",{value:!0});var be=qe(),Qr=xe(),Ju=20;function $u(n,t,r){for(var e=1634760805,i=857760878,o=2036477234,a=1797285236,s=r[3]<<24|r[2]<<16|r[1]<<8|r[0],D=r[7]<<24|r[6]<<16|r[5]<<8|r[4],d=r[11]<<24|r[10]<<16|r[9]<<8|r[8],E=r[15]<<24|r[14]<<16|r[13]<<8|r[12],b=r[19]<<24|r[18]<<16|r[17]<<8|r[16],A=r[23]<<24|r[22]<<16|r[21]<<8|r[20],p=r[27]<<24|r[26]<<16|r[25]<<8|r[24],l=r[31]<<24|r[30]<<16|r[29]<<8|r[28],x=t[3]<<24|t[2]<<16|t[1]<<8|t[0],g=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],T=t[15]<<24|t[14]<<16|t[13]<<8|t[12],_=e,v=i,O=o,L=a,c=s,h=D,N=d,I=E,S=b,m=A,y=p,U=l,R=x,H=g,B=C,Y=T,se=0;se>>32-16|R<<16,S=S+R|0,c^=S,c=c>>>32-12|c<<12,v=v+h|0,H^=v,H=H>>>32-16|H<<16,m=m+H|0,h^=m,h=h>>>32-12|h<<12,O=O+N|0,B^=O,B=B>>>32-16|B<<16,y=y+B|0,N^=y,N=N>>>32-12|N<<12,L=L+I|0,Y^=L,Y=Y>>>32-16|Y<<16,U=U+Y|0,I^=U,I=I>>>32-12|I<<12,O=O+N|0,B^=O,B=B>>>32-8|B<<8,y=y+B|0,N^=y,N=N>>>32-7|N<<7,L=L+I|0,Y^=L,Y=Y>>>32-8|Y<<8,U=U+Y|0,I^=U,I=I>>>32-7|I<<7,v=v+h|0,H^=v,H=H>>>32-8|H<<8,m=m+H|0,h^=m,h=h>>>32-7|h<<7,_=_+c|0,R^=_,R=R>>>32-8|R<<8,S=S+R|0,c^=S,c=c>>>32-7|c<<7,_=_+h|0,Y^=_,Y=Y>>>32-16|Y<<16,y=y+Y|0,h^=y,h=h>>>32-12|h<<12,v=v+N|0,R^=v,R=R>>>32-16|R<<16,U=U+R|0,N^=U,N=N>>>32-12|N<<12,O=O+I|0,H^=O,H=H>>>32-16|H<<16,S=S+H|0,I^=S,I=I>>>32-12|I<<12,L=L+c|0,B^=L,B=B>>>32-16|B<<16,m=m+B|0,c^=m,c=c>>>32-12|c<<12,O=O+I|0,H^=O,H=H>>>32-8|H<<8,S=S+H|0,I^=S,I=I>>>32-7|I<<7,L=L+c|0,B^=L,B=B>>>32-8|B<<8,m=m+B|0,c^=m,c=c>>>32-7|c<<7,v=v+N|0,R^=v,R=R>>>32-8|R<<8,U=U+R|0,N^=U,N=N>>>32-7|N<<7,_=_+h|0,Y^=_,Y=Y>>>32-8|Y<<8,y=y+Y|0,h^=y,h=h>>>32-7|h<<7;be.writeUint32LE(_+e|0,n,0),be.writeUint32LE(v+i|0,n,4),be.writeUint32LE(O+o|0,n,8),be.writeUint32LE(L+a|0,n,12),be.writeUint32LE(c+s|0,n,16),be.writeUint32LE(h+D|0,n,20),be.writeUint32LE(N+d|0,n,24),be.writeUint32LE(I+E|0,n,28),be.writeUint32LE(S+b|0,n,32),be.writeUint32LE(m+A|0,n,36),be.writeUint32LE(y+p|0,n,40),be.writeUint32LE(U+l|0,n,44),be.writeUint32LE(R+x|0,n,48),be.writeUint32LE(H+g|0,n,52),be.writeUint32LE(B+C|0,n,56),be.writeUint32LE(Y+T|0,n,60)}function vo(n,t,r,e,i){if(i===void 0&&(i=0),n.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(e.length>>=8,t++;if(e>0)throw new Error("ChaCha: counter overflow")}});var $t=ee(et=>{"use strict";u();f();Object.defineProperty(et,"__esModule",{value:!0});function Qu(n,t,r){return~(n-1)&t|n-1&r}et.select=Qu;function Zu(n,t){return(n|0)-(t|0)-1>>>31&1}et.lessOrEqual=Zu;function So(n,t){if(n.length!==t.length)return 0;for(var r=0,e=0;e>>8}et.compare=So;function ef(n,t){return n.length===0||t.length===0?!1:So(n,t)!==0}et.equal=ef});var Uo=ee(ve=>{"use strict";u();f();Object.defineProperty(ve,"__esModule",{value:!0});var tf=$t(),Xt=xe();ve.DIGEST_LENGTH=16;var Ao=function(){function n(t){this.digestLength=ve.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var e=t[2]|t[3]<<8;this._r[1]=(r>>>13|e<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(e>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var a=t[8]|t[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=t[10]|t[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var D=t[12]|t[13]<<8;this._r[7]=(s>>>11|D<<5)&8065;var d=t[14]|t[15]<<8;this._r[8]=(D>>>8|d<<8)&8191,this._r[9]=d>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return n.prototype._blocks=function(t,r,e){for(var i=this._fin?0:2048,o=this._h[0],a=this._h[1],s=this._h[2],D=this._h[3],d=this._h[4],E=this._h[5],b=this._h[6],A=this._h[7],p=this._h[8],l=this._h[9],x=this._r[0],g=this._r[1],C=this._r[2],T=this._r[3],_=this._r[4],v=this._r[5],O=this._r[6],L=this._r[7],c=this._r[8],h=this._r[9];e>=16;){var N=t[r+0]|t[r+1]<<8;o+=N&8191;var I=t[r+2]|t[r+3]<<8;a+=(N>>>13|I<<3)&8191;var S=t[r+4]|t[r+5]<<8;s+=(I>>>10|S<<6)&8191;var m=t[r+6]|t[r+7]<<8;D+=(S>>>7|m<<9)&8191;var y=t[r+8]|t[r+9]<<8;d+=(m>>>4|y<<12)&8191,E+=y>>>1&8191;var U=t[r+10]|t[r+11]<<8;b+=(y>>>14|U<<2)&8191;var R=t[r+12]|t[r+13]<<8;A+=(U>>>11|R<<5)&8191;var H=t[r+14]|t[r+15]<<8;p+=(R>>>8|H<<8)&8191,l+=H>>>5|i;var B=0,Y=B;Y+=o*x,Y+=a*(5*h),Y+=s*(5*c),Y+=D*(5*L),Y+=d*(5*O),B=Y>>>13,Y&=8191,Y+=E*(5*v),Y+=b*(5*_),Y+=A*(5*T),Y+=p*(5*C),Y+=l*(5*g),B+=Y>>>13,Y&=8191;var se=B;se+=o*g,se+=a*x,se+=s*(5*h),se+=D*(5*c),se+=d*(5*L),B=se>>>13,se&=8191,se+=E*(5*O),se+=b*(5*v),se+=A*(5*_),se+=p*(5*T),se+=l*(5*C),B+=se>>>13,se&=8191;var P=B;P+=o*C,P+=a*g,P+=s*x,P+=D*(5*h),P+=d*(5*c),B=P>>>13,P&=8191,P+=E*(5*L),P+=b*(5*O),P+=A*(5*v),P+=p*(5*_),P+=l*(5*T),B+=P>>>13,P&=8191;var K=B;K+=o*T,K+=a*C,K+=s*g,K+=D*x,K+=d*(5*h),B=K>>>13,K&=8191,K+=E*(5*c),K+=b*(5*L),K+=A*(5*O),K+=p*(5*v),K+=l*(5*_),B+=K>>>13,K&=8191;var z=B;z+=o*_,z+=a*T,z+=s*C,z+=D*g,z+=d*x,B=z>>>13,z&=8191,z+=E*(5*h),z+=b*(5*c),z+=A*(5*L),z+=p*(5*O),z+=l*(5*v),B+=z>>>13,z&=8191;var q=B;q+=o*v,q+=a*_,q+=s*T,q+=D*C,q+=d*g,B=q>>>13,q&=8191,q+=E*x,q+=b*(5*h),q+=A*(5*c),q+=p*(5*L),q+=l*(5*O),B+=q>>>13,q&=8191;var j=B;j+=o*O,j+=a*v,j+=s*_,j+=D*T,j+=d*C,B=j>>>13,j&=8191,j+=E*g,j+=b*x,j+=A*(5*h),j+=p*(5*c),j+=l*(5*L),B+=j>>>13,j&=8191;var W=B;W+=o*L,W+=a*O,W+=s*v,W+=D*_,W+=d*T,B=W>>>13,W&=8191,W+=E*C,W+=b*g,W+=A*x,W+=p*(5*h),W+=l*(5*c),B+=W>>>13,W&=8191;var G=B;G+=o*c,G+=a*L,G+=s*O,G+=D*v,G+=d*_,B=G>>>13,G&=8191,G+=E*T,G+=b*C,G+=A*g,G+=p*x,G+=l*(5*h),B+=G>>>13,G&=8191;var V=B;V+=o*h,V+=a*c,V+=s*L,V+=D*O,V+=d*v,B=V>>>13,V&=8191,V+=E*_,V+=b*T,V+=A*C,V+=p*g,V+=l*x,B+=V>>>13,V&=8191,B=(B<<2)+B|0,B=B+Y|0,Y=B&8191,B=B>>>13,se+=B,o=Y,a=se,s=P,D=K,d=z,E=q,b=j,A=W,p=G,l=V,r+=16,e-=16}this._h[0]=o,this._h[1]=a,this._h[2]=s,this._h[3]=D,this._h[4]=d,this._h[5]=E,this._h[6]=b,this._h[7]=A,this._h[8]=p,this._h[9]=l},n.prototype.finish=function(t,r){r===void 0&&(r=0);var e=new Uint16Array(10),i,o,a,s;if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=i,i=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,e[0]=this._h[0]+5,i=e[0]>>>13,e[0]&=8191,s=1;s<10;s++)e[s]=this._h[s]+i,i=e[s]>>>13,e[s]&=8191;for(e[9]-=1<<13,o=(i^1)-1,s=0;s<10;s++)e[s]&=o;for(o=~o,s=0;s<10;s++)this._h[s]=this._h[s]&o|e[s];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,a=this._h[0]+this._pad[0],this._h[0]=a&65535,s=1;s<8;s++)a=(this._h[s]+this._pad[s]|0)+(a>>>16)|0,this._h[s]=a&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},n.prototype.update=function(t){var r=0,e=t.length,i;if(this._leftover){i=16-this._leftover,i>e&&(i=e);for(var o=0;o=16&&(i=e-e%16,this._blocks(t,r,i),r+=i,e-=i),e){for(var o=0;o{"use strict";u();f();Object.defineProperty(Ce,"__esModule",{value:!0});var kt=Co(),of=Uo(),Et=xe(),Oo=qe(),sf=$t();Ce.KEY_LENGTH=32;Ce.NONCE_LENGTH=12;Ce.TAG_LENGTH=16;var To=new Uint8Array(16),af=function(){function n(t){if(this.nonceLength=Ce.NONCE_LENGTH,this.tagLength=Ce.TAG_LENGTH,t.length!==Ce.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return n.prototype.seal=function(t,r,e,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var a=new Uint8Array(32);kt.stream(this._key,o,a,4);var s=r.length+this.tagLength,D;if(i){if(i.length!==s)throw new Error("ChaCha20Poly1305: incorrect destination length");D=i}else D=new Uint8Array(s);return kt.streamXOR(this._key,o,r,D,4),this._authenticate(D.subarray(D.length-this.tagLength,D.length),a,D.subarray(0,D.length-this.tagLength),e),Et.wipe(o),D},n.prototype.open=function(t,r,e,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length0&&o.update(To.subarray(i.length%16))),o.update(e),e.length%16>0&&o.update(To.subarray(e.length%16));var a=new Uint8Array(8);i&&Oo.writeUint64LE(i.length,a),o.update(a),Oo.writeUint64LE(e.length,a),o.update(a);for(var s=o.digest(),D=0;D{"use strict";u();f();Object.defineProperty(Zr,"__esModule",{value:!0});function ff(n){return typeof n.saveState<"u"&&typeof n.restoreState<"u"&&typeof n.cleanSavedState<"u"}Zr.isSerializableHash=ff});var Bo=ee(_t=>{"use strict";u();f();Object.defineProperty(_t,"__esModule",{value:!0});var _e=Lo(),cf=$t(),hf=xe(),No=function(){function n(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var e=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(e).clean():e.set(r);for(var i=0;i{"use strict";u();f();Object.defineProperty(en,"__esModule",{value:!0});var Mo=Bo(),Io=xe(),lf=function(){function n(t,r,e,i){e===void 0&&(e=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=Mo.hmac(this._hash,e,r);this._hmac=new Mo.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return n.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},n.prototype.expand=function(t){for(var r=new Uint8Array(t),e=0;e{"use strict";u();f();Object.defineProperty(Te,"__esModule",{value:!0});var Zt=qe(),Qt=xe();Te.DIGEST_LENGTH=32;Te.BLOCK_SIZE=64;var Fo=function(){function n(){this.digestLength=Te.DIGEST_LENGTH,this.blockSize=Te.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return n.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},n.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},n.prototype.clean=function(){Qt.wipe(this._buffer),Qt.wipe(this._temp),this.reset()},n.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var e=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[e++],r--;this._bufferLength===this.blockSize&&(tn(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(e=tn(this._temp,this._state,t,e,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[e++],r--;return this},n.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,e=this._bufferLength,i=r/536870912|0,o=r<<3,a=r%64<56?64:128;this._buffer[e]=128;for(var s=e+1;s0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},n.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},n.prototype.cleanSavedState=function(t){Qt.wipe(t.state),t.buffer&&Qt.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},n}();Te.SHA256=Fo;var bf=new Int32Array([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]);function tn(n,t,r,e,i){for(;i>=64;){for(var o=t[0],a=t[1],s=t[2],D=t[3],d=t[4],E=t[5],b=t[6],A=t[7],p=0;p<16;p++){var l=e+p*4;n[p]=Zt.readUint32BE(r,l)}for(var p=16;p<64;p++){var x=n[p-2],g=(x>>>17|x<<32-17)^(x>>>19|x<<32-19)^x>>>10;x=n[p-15];var C=(x>>>7|x<<32-7)^(x>>>18|x<<32-18)^x>>>3;n[p]=(g+n[p-7]|0)+(C+n[p-16]|0)}for(var p=0;p<64;p++){var g=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&E^~d&b)|0)+(A+(bf[p]+n[p]|0)|0)|0,C=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&a^o&s^a&s)|0;A=b,b=E,E=d,d=D+g|0,D=s,s=a,a=o,o=g+C|0}t[0]+=o,t[1]+=a,t[2]+=s,t[3]+=D,t[4]+=d,t[5]+=E,t[6]+=b,t[7]+=A,e+=64,i-=64}return e}function pf(n){var t=new Fo;t.update(n);var r=t.digest();return t.clean(),r}Te.hash=pf});var Sf=ee(ce=>{"use strict";u();f();Object.defineProperty(ce,"__esModule",{value:!0});ce.sharedKey=ce.generateKeyPair=ce.generateKeyPairFromSeed=ce.scalarMultBase=ce.scalarMult=ce.SHARED_KEY_LENGTH=ce.SECRET_KEY_LENGTH=ce.PUBLIC_KEY_LENGTH=void 0;var Ef=jt(),_f=xe();ce.PUBLIC_KEY_LENGTH=32;ce.SECRET_KEY_LENGTH=32;ce.SHARED_KEY_LENGTH=32;function we(n){let t=new Float64Array(16);if(n)for(let r=0;r>16&1),r[a-1]&=65535;r[15]=e[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,wt(e,r,1-o)}for(let i=0;i<16;i++)n[2*i]=e[i]&255,n[2*i+1]=e[i]>>8}function gf(n,t){for(let r=0;r<16;r++)n[r]=t[2*r]+(t[2*r+1]<<8);n[15]&=32767}function er(n,t,r){for(let e=0;e<16;e++)n[e]=t[e]+r[e]}function tr(n,t,r){for(let e=0;e<16;e++)n[e]=t[e]-r[e]}function Se(n,t,r){let e,i,o=0,a=0,s=0,D=0,d=0,E=0,b=0,A=0,p=0,l=0,x=0,g=0,C=0,T=0,_=0,v=0,O=0,L=0,c=0,h=0,N=0,I=0,S=0,m=0,y=0,U=0,R=0,H=0,B=0,Y=0,se=0,P=r[0],K=r[1],z=r[2],q=r[3],j=r[4],W=r[5],G=r[6],V=r[7],$=r[8],k=r[9],Q=r[10],Z=r[11],X=r[12],te=r[13],re=r[14],ne=r[15];e=t[0],o+=e*P,a+=e*K,s+=e*z,D+=e*q,d+=e*j,E+=e*W,b+=e*G,A+=e*V,p+=e*$,l+=e*k,x+=e*Q,g+=e*Z,C+=e*X,T+=e*te,_+=e*re,v+=e*ne,e=t[1],a+=e*P,s+=e*K,D+=e*z,d+=e*q,E+=e*j,b+=e*W,A+=e*G,p+=e*V,l+=e*$,x+=e*k,g+=e*Q,C+=e*Z,T+=e*X,_+=e*te,v+=e*re,O+=e*ne,e=t[2],s+=e*P,D+=e*K,d+=e*z,E+=e*q,b+=e*j,A+=e*W,p+=e*G,l+=e*V,x+=e*$,g+=e*k,C+=e*Q,T+=e*Z,_+=e*X,v+=e*te,O+=e*re,L+=e*ne,e=t[3],D+=e*P,d+=e*K,E+=e*z,b+=e*q,A+=e*j,p+=e*W,l+=e*G,x+=e*V,g+=e*$,C+=e*k,T+=e*Q,_+=e*Z,v+=e*X,O+=e*te,L+=e*re,c+=e*ne,e=t[4],d+=e*P,E+=e*K,b+=e*z,A+=e*q,p+=e*j,l+=e*W,x+=e*G,g+=e*V,C+=e*$,T+=e*k,_+=e*Q,v+=e*Z,O+=e*X,L+=e*te,c+=e*re,h+=e*ne,e=t[5],E+=e*P,b+=e*K,A+=e*z,p+=e*q,l+=e*j,x+=e*W,g+=e*G,C+=e*V,T+=e*$,_+=e*k,v+=e*Q,O+=e*Z,L+=e*X,c+=e*te,h+=e*re,N+=e*ne,e=t[6],b+=e*P,A+=e*K,p+=e*z,l+=e*q,x+=e*j,g+=e*W,C+=e*G,T+=e*V,_+=e*$,v+=e*k,O+=e*Q,L+=e*Z,c+=e*X,h+=e*te,N+=e*re,I+=e*ne,e=t[7],A+=e*P,p+=e*K,l+=e*z,x+=e*q,g+=e*j,C+=e*W,T+=e*G,_+=e*V,v+=e*$,O+=e*k,L+=e*Q,c+=e*Z,h+=e*X,N+=e*te,I+=e*re,S+=e*ne,e=t[8],p+=e*P,l+=e*K,x+=e*z,g+=e*q,C+=e*j,T+=e*W,_+=e*G,v+=e*V,O+=e*$,L+=e*k,c+=e*Q,h+=e*Z,N+=e*X,I+=e*te,S+=e*re,m+=e*ne,e=t[9],l+=e*P,x+=e*K,g+=e*z,C+=e*q,T+=e*j,_+=e*W,v+=e*G,O+=e*V,L+=e*$,c+=e*k,h+=e*Q,N+=e*Z,I+=e*X,S+=e*te,m+=e*re,y+=e*ne,e=t[10],x+=e*P,g+=e*K,C+=e*z,T+=e*q,_+=e*j,v+=e*W,O+=e*G,L+=e*V,c+=e*$,h+=e*k,N+=e*Q,I+=e*Z,S+=e*X,m+=e*te,y+=e*re,U+=e*ne,e=t[11],g+=e*P,C+=e*K,T+=e*z,_+=e*q,v+=e*j,O+=e*W,L+=e*G,c+=e*V,h+=e*$,N+=e*k,I+=e*Q,S+=e*Z,m+=e*X,y+=e*te,U+=e*re,R+=e*ne,e=t[12],C+=e*P,T+=e*K,_+=e*z,v+=e*q,O+=e*j,L+=e*W,c+=e*G,h+=e*V,N+=e*$,I+=e*k,S+=e*Q,m+=e*Z,y+=e*X,U+=e*te,R+=e*re,H+=e*ne,e=t[13],T+=e*P,_+=e*K,v+=e*z,O+=e*q,L+=e*j,c+=e*W,h+=e*G,N+=e*V,I+=e*$,S+=e*k,m+=e*Q,y+=e*Z,U+=e*X,R+=e*te,H+=e*re,B+=e*ne,e=t[14],_+=e*P,v+=e*K,O+=e*z,L+=e*q,c+=e*j,h+=e*W,N+=e*G,I+=e*V,S+=e*$,m+=e*k,y+=e*Q,U+=e*Z,R+=e*X,H+=e*te,B+=e*re,Y+=e*ne,e=t[15],v+=e*P,O+=e*K,L+=e*z,c+=e*q,h+=e*j,N+=e*W,I+=e*G,S+=e*V,m+=e*$,y+=e*k,U+=e*Q,R+=e*Z,H+=e*X,B+=e*te,Y+=e*re,se+=e*ne,o+=38*O,a+=38*L,s+=38*c,D+=38*h,d+=38*N,E+=38*I,b+=38*S,A+=38*m,p+=38*y,l+=38*U,x+=38*R,g+=38*H,C+=38*B,T+=38*Y,_+=38*se,i=1,e=o+i+65535,i=Math.floor(e/65536),o=e-i*65536,e=a+i+65535,i=Math.floor(e/65536),a=e-i*65536,e=s+i+65535,i=Math.floor(e/65536),s=e-i*65536,e=D+i+65535,i=Math.floor(e/65536),D=e-i*65536,e=d+i+65535,i=Math.floor(e/65536),d=e-i*65536,e=E+i+65535,i=Math.floor(e/65536),E=e-i*65536,e=b+i+65535,i=Math.floor(e/65536),b=e-i*65536,e=A+i+65535,i=Math.floor(e/65536),A=e-i*65536,e=p+i+65535,i=Math.floor(e/65536),p=e-i*65536,e=l+i+65535,i=Math.floor(e/65536),l=e-i*65536,e=x+i+65535,i=Math.floor(e/65536),x=e-i*65536,e=g+i+65535,i=Math.floor(e/65536),g=e-i*65536,e=C+i+65535,i=Math.floor(e/65536),C=e-i*65536,e=T+i+65535,i=Math.floor(e/65536),T=e-i*65536,e=_+i+65535,i=Math.floor(e/65536),_=e-i*65536,e=v+i+65535,i=Math.floor(e/65536),v=e-i*65536,o+=i-1+37*(i-1),i=1,e=o+i+65535,i=Math.floor(e/65536),o=e-i*65536,e=a+i+65535,i=Math.floor(e/65536),a=e-i*65536,e=s+i+65535,i=Math.floor(e/65536),s=e-i*65536,e=D+i+65535,i=Math.floor(e/65536),D=e-i*65536,e=d+i+65535,i=Math.floor(e/65536),d=e-i*65536,e=E+i+65535,i=Math.floor(e/65536),E=e-i*65536,e=b+i+65535,i=Math.floor(e/65536),b=e-i*65536,e=A+i+65535,i=Math.floor(e/65536),A=e-i*65536,e=p+i+65535,i=Math.floor(e/65536),p=e-i*65536,e=l+i+65535,i=Math.floor(e/65536),l=e-i*65536,e=x+i+65535,i=Math.floor(e/65536),x=e-i*65536,e=g+i+65535,i=Math.floor(e/65536),g=e-i*65536,e=C+i+65535,i=Math.floor(e/65536),C=e-i*65536,e=T+i+65535,i=Math.floor(e/65536),T=e-i*65536,e=_+i+65535,i=Math.floor(e/65536),_=e-i*65536,e=v+i+65535,i=Math.floor(e/65536),v=e-i*65536,o+=i-1+37*(i-1),n[0]=o,n[1]=a,n[2]=s,n[3]=D,n[4]=d,n[5]=E,n[6]=b,n[7]=A,n[8]=p,n[9]=l,n[10]=x,n[11]=g,n[12]=C,n[13]=T,n[14]=_,n[15]=v}function mt(n,t){Se(n,t,t)}function yf(n,t){let r=we();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)mt(r,r),e!==2&&e!==4&&Se(r,r,t);for(let e=0;e<16;e++)n[e]=r[e]}function nn(n,t){let r=new Uint8Array(32),e=new Float64Array(80),i=we(),o=we(),a=we(),s=we(),D=we(),d=we();for(let p=0;p<31;p++)r[p]=n[p];r[31]=n[31]&127|64,r[0]&=248,gf(e,t);for(let p=0;p<16;p++)o[p]=e[p];i[0]=s[0]=1;for(let p=254;p>=0;--p){let l=r[p>>>3]>>>(p&7)&1;wt(i,o,l),wt(a,s,l),er(D,i,a),tr(i,i,a),er(a,o,s),tr(o,o,s),mt(s,D),mt(d,i),Se(i,a,i),Se(a,o,D),er(D,i,a),tr(i,i,a),mt(o,i),tr(a,s,d),Se(i,a,wf),er(i,i,s),Se(a,a,i),Se(i,s,d),Se(s,o,e),mt(o,D),wt(i,o,l),wt(a,s,l)}for(let p=0;p<16;p++)e[p+16]=i[p],e[p+32]=a[p],e[p+48]=o[p],e[p+64]=s[p];let E=e.subarray(32),b=e.subarray(16);yf(E,E),Se(b,b,E);let A=new Uint8Array(32);return mf(A,b),A}ce.scalarMult=nn;function Ro(n){return nn(n,Po)}ce.scalarMultBase=Ro;function Ho(n){if(n.length!==ce.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ce.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(n);return{publicKey:Ro(t),secretKey:t}}ce.generateKeyPairFromSeed=Ho;function vf(n){let t=(0,Ef.randomBytes)(32,n),r=Ho(t);return(0,_f.wipe)(t),r}ce.generateKeyPair=vf;function Cf(n,t,r=!1){if(n.length!==ce.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==ce.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let e=nn(n,t);if(r){let i=0;for(let o=0;o{"use strict";u();f();ss.exports=n=>encodeURIComponent(n).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var Kc=ee((Nd,as)=>{"use strict";u();f();as.exports=(n,t)=>{if(!(typeof n=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[n];let r=n.indexOf(t);return r===-1?[n]:[n.slice(0,r),n.slice(r+t.length)]}});var zc=ee((Id,us)=>{"use strict";u();f();us.exports=function(n,t){for(var r={},e=Object.keys(n),i=Array.isArray(t),o=0;oJSON.stringify(n,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),bs=n=>{let t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=n.replace(t,'$1"$2n"$3');return JSON.parse(r,(e,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function oi(n){if(typeof n!="string")throw new Error(`Cannot safe json parse value of type ${typeof n}`);try{return bs(n)}catch{return n}}function si(n){return typeof n=="string"?n:ds(n)||""}u();f();u();f();u();f();u();f();function We(n){return globalThis.Buffer!=null?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):n}function Kt(n=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?We(globalThis.Buffer.allocUnsafe(n)):new Uint8Array(n)}function wi(n,t){t||(t=n.reduce((i,o)=>i+o.length,0));let r=Kt(t),e=0;for(let i of n)r.set(i,e),e+=i.length;return We(r)}u();f();u();f();u();f();var vr={};ue(vr,{identity:()=>ta});u();f();u();f();u();f();function Xs(n,t){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),e=0;e>>0,v=new Uint8Array(_);C!==T;){for(var O=l[C],L=0,c=_-1;(O!==0||L>>0,v[c]=O%s>>>0,O=O/s>>>0;if(O!==0)throw new Error("Non-zero carry");g=L,C++}for(var h=_-g;h!==_&&v[h]===0;)h++;for(var N=D.repeat(x);h<_;++h)N+=n.charAt(v[h]);return N}function A(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var x=0;if(l[x]!==" "){for(var g=0,C=0;l[x]===D;)g++,x++;for(var T=(l.length-x)*d+1>>>0,_=new Uint8Array(T);l[x];){var v=r[l.charCodeAt(x)];if(v===255)return;for(var O=0,L=T-1;(v!==0||O>>0,_[L]=v%256>>>0,v=v/256>>>0;if(v!==0)throw new Error("Non-zero carry");C=O,x++}if(l[x]!==" "){for(var c=T-C;c!==T&&_[c]===0;)c++;for(var h=new Uint8Array(g+(T-c)),N=g;c!==T;)h[N++]=_[c++];return h}}}function p(l){var x=A(l);if(x)return x;throw new Error(`Non-${t} character`)}return{encode:b,decodeUnsafe:A,decode:p}}var ks=Xs,Qs=ks,mi=Qs;u();f();var u0=new Uint8Array(0);var gi=(n,t)=>{if(n===t)return!0;if(n.byteLength!==t.byteLength)return!1;for(let r=0;r{if(n instanceof Uint8Array&&n.constructor.name==="Uint8Array")return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw new Error("Unknown type, must be binary type")};var yi=n=>new TextEncoder().encode(n),vi=n=>new TextDecoder().decode(n);var wr=class{constructor(t,r,e){this.name=t,this.prefix=r,this.baseEncode=e}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},mr=class{constructor(t,r,e){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=e}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return Si(this,t)}},gr=class{constructor(t){this.decoders=t}or(t){return Si(this,t)}decode(t){let r=t[0],e=this.decoders[r];if(e)return e.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},Si=(n,t)=>new gr({...n.decoders||{[n.prefix]:n},...t.decoders||{[t.prefix]:t}}),yr=class{constructor(t,r,e,i){this.name=t,this.prefix=r,this.baseEncode=e,this.baseDecode=i,this.encoder=new wr(t,r,e),this.decoder=new mr(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},Ge=({name:n,prefix:t,encode:r,decode:e})=>new yr(n,t,r,e),Ue=({prefix:n,name:t,alphabet:r})=>{let{encode:e,decode:i}=mi(r,t);return Ge({prefix:n,name:t,encode:e,decode:o=>ge(i(o))})},Zs=(n,t,r,e)=>{let i={};for(let E=0;E=8&&(s-=8,a[d++]=255&D>>s)}if(s>=r||255&D<<8-s)throw new SyntaxError("Unexpected end of data");return a},ea=(n,t,r)=>{let e=t[t.length-1]==="=",i=(1<r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<Ge({prefix:t,name:n,encode(i){return ea(i,e,r)},decode(i){return Zs(i,e,r,n)}});var ta=Ge({prefix:"\0",name:"identity",encode:n=>vi(n),decode:n=>yi(n)});var Cr={};ue(Cr,{base2:()=>ra});u();f();var ra=fe({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Sr={};ue(Sr,{base8:()=>na});u();f();var na=fe({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Ar={};ue(Ar,{base10:()=>ia});u();f();var ia=Ue({prefix:"9",name:"base10",alphabet:"0123456789"});var Ur={};ue(Ur,{base16:()=>oa,base16upper:()=>sa});u();f();var oa=fe({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),sa=fe({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Or={};ue(Or,{base32:()=>Ve,base32hex:()=>ca,base32hexpad:()=>Da,base32hexpadupper:()=>la,base32hexupper:()=>ha,base32pad:()=>ua,base32padupper:()=>fa,base32upper:()=>aa,base32z:()=>da});u();f();var Ve=fe({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),aa=fe({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),ua=fe({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),fa=fe({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ca=fe({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ha=fe({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Da=fe({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),la=fe({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),da=fe({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Tr={};ue(Tr,{base36:()=>ba,base36upper:()=>pa});u();f();var ba=Ue({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),pa=Ue({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Lr={};ue(Lr,{base58btc:()=>Ee,base58flickr:()=>xa});u();f();var Ee=Ue({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),xa=Ue({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Nr={};ue(Nr,{base64:()=>Ea,base64pad:()=>_a,base64url:()=>wa,base64urlpad:()=>ma});u();f();var Ea=fe({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),_a=fe({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),wa=fe({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ma=fe({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Br={};ue(Br,{base256emoji:()=>Sa});u();f();var Ai=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),ga=Ai.reduce((n,t,r)=>(n[r]=t,n),[]),ya=Ai.reduce((n,t,r)=>(n[t.codePointAt(0)]=r,n),[]);function va(n){return n.reduce((t,r)=>(t+=ga[r],t),"")}function Ca(n){let t=[];for(let r of n){let e=ya[r.codePointAt(0)];if(e===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}var Sa=Ge({prefix:"\u{1F680}",name:"base256emoji",encode:va,decode:Ca});var Pr={};ue(Pr,{sha256:()=>Ga,sha512:()=>Va});u();f();u();f();u();f();u();f();u();f();var Aa=Ti,Ui=128,Ua=127,Oa=~Ua,Ta=Math.pow(2,31);function Ti(n,t,r){t=t||[],r=r||0;for(var e=r;n>=Ta;)t[r++]=n&255|Ui,n/=128;for(;n&Oa;)t[r++]=n&255|Ui,n>>>=7;return t[r]=n|0,Ti.bytes=r-e+1,t}var La=Mr,Na=128,Oi=127;function Mr(n,e){var r=0,e=e||0,i=0,o=e,a,s=n.length;do{if(o>=s)throw Mr.bytes=0,new RangeError("Could not decode varint");a=n[o++],r+=i<28?(a&Oi)<=Na);return Mr.bytes=o-e,r}var Ba=Math.pow(2,7),Ma=Math.pow(2,14),Ia=Math.pow(2,21),Fa=Math.pow(2,28),Pa=Math.pow(2,35),Ra=Math.pow(2,42),Ha=Math.pow(2,49),ja=Math.pow(2,56),Ka=Math.pow(2,63),za=function(n){return n[ut.decode(n,t),ut.decode.bytes],Ye=(n,t,r=0)=>(ut.encode(n,t,r),t),Je=n=>ut.encodingLength(n);var Ne=(n,t)=>{let r=t.byteLength,e=Je(n),i=e+Je(r),o=new Uint8Array(i+r);return Ye(n,o,0),Ye(r,o,e),o.set(t,i),new $e(n,r,t,o)},Li=n=>{let t=ge(n),[r,e]=ft(t),[i,o]=ft(t.subarray(e)),a=t.subarray(e+o);if(a.byteLength!==i)throw new Error("Incorrect length");return new $e(r,i,a,t)},Ni=(n,t)=>n===t?!0:n.code===t.code&&n.size===t.size&&gi(n.bytes,t.bytes),$e=class{constructor(t,r,e,i){this.code=t,this.size=r,this.digest=e,this.bytes=i}};var Fr=({name:n,code:t,encode:r})=>new Ir(n,t,r),Ir=class{constructor(t,r,e){this.name=t,this.code=r,this.encode=e}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?Ne(this.code,r):r.then(e=>Ne(this.code,e))}else throw Error("Unknown type, must be binary type")}};var Mi=n=>async t=>new Uint8Array(await crypto.subtle.digest(n,t)),Ga=Fr({name:"sha2-256",code:18,encode:Mi("SHA-256")}),Va=Fr({name:"sha2-512",code:19,encode:Mi("SHA-512")});var Rr={};ue(Rr,{identity:()=>$a});u();f();var Ii=0,Ya="identity",Fi=ge,Ja=n=>Ne(Ii,Fi(n)),$a={code:Ii,name:Ya,encode:Fi,digest:Ja};u();f();u();f();var lD=new TextEncoder,dD=new TextDecoder;u();f();u();f();var De=class{constructor(t,r,e,i){this.code=r,this.version=t,this.multihash=e,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:Wt,byteLength:Wt,code:qt,version:qt,multihash:qt,bytes:qt,_baseCache:Wt,asCID:Wt})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==ht)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==tu)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return De.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,e=Ne(t,r);return De.createV1(this.code,e)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&Ni(this.multihash,t.multihash)}toString(t){let{bytes:r,version:e,_baseCache:i}=this;switch(e){case 0:return Za(r,i,t||Ee.encoder);default:return eu(r,i,t||Ve.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return nu(/^0\.0/,iu),!!(t&&(t[Ri]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof De)return t;if(t!=null&&t.asCID===t){let{version:r,code:e,multihash:i,bytes:o}=t;return new De(r,e,i,o||Pi(r,e,i.bytes))}else if(t!=null&&t[Ri]===!0){let{version:r,multihash:e,code:i}=t,o=Li(e);return De.create(r,i,o)}else return null}static create(t,r,e){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==ht)throw new Error(`Version 0 CID must use dag-pb (code: ${ht}) block encoding`);return new De(t,r,e,e.bytes)}case 1:{let i=Pi(t,r,e.bytes);return new De(t,r,e,i)}default:throw new Error("Invalid version")}}static createV0(t){return De.create(0,ht,t)}static createV1(t,r){return De.create(1,t,r)}static decode(t){let[r,e]=De.decodeFirst(t);if(e.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=De.inspectBytes(t),e=r.size-r.multihashSize,i=ge(t.subarray(e,e+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=i.subarray(r.multihashSize-r.digestSize),a=new $e(r.multihashCode,r.digestSize,o,i);return[r.version===0?De.createV0(a):De.createV1(r.codec,a),t.subarray(r.size)]}static inspectBytes(t){let r=0,e=()=>{let[b,A]=ft(t.subarray(r));return r+=A,b},i=e(),o=ht;if(i===18?(i=0,r=0):i===1&&(o=e()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let a=r,s=e(),D=e(),d=r+D,E=d-a;return{version:i,codec:o,multihashCode:s,digestSize:D,multihashSize:E,size:d}}static parse(t,r){let[e,i]=Qa(t,r),o=De.decode(i);return o._baseCache.set(e,t),o}},Qa=(n,t)=>{switch(n[0]){case"Q":{let r=t||Ee;return[Ee.prefix,r.decode(`${Ee.prefix}${n}`)]}case Ee.prefix:{let r=t||Ee;return[Ee.prefix,r.decode(n)]}case Ve.prefix:{let r=t||Ve;return[Ve.prefix,r.decode(n)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[n[0],t.decode(n)]}}},Za=(n,t,r)=>{let{prefix:e}=r;if(e!==Ee.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(e);if(i==null){let o=r.encode(n).slice(1);return t.set(e,o),o}else return i},eu=(n,t,r)=>{let{prefix:e}=r,i=t.get(e);if(i==null){let o=r.encode(n);return t.set(e,o),o}else return i},ht=112,tu=18,Pi=(n,t,r)=>{let e=Je(n),i=e+Je(t),o=new Uint8Array(i+r.byteLength);return Ye(n,o,0),Ye(t,o,e),o.set(r,i),o},Ri=Symbol.for("@ipld/js-cid/CID"),qt={writable:!1,configurable:!1,enumerable:!0},Wt={writable:!1,enumerable:!1,configurable:!1},ru="0.0.0-dev",nu=(n,t)=>{if(n.test(ru))console.warn(t);else throw new Error(t)},iu=`CID.isCID(v) is deprecated and will be removed in the next major release. Following code pattern: if (CID.isCID(value)) { doSomethingWithCID(value) } Is replaced with: const cid = CID.asCID(value) if (cid) { // Make sure to use cid instead of value doSomethingWithCID(cid) } `;var Hr={...vr,...Cr,...Sr,...Ar,...Ur,...Or,...Tr,...Lr,...Nr,...Br},UD={...Pr,...Rr};function ji(n,t,r,e){return{name:n,prefix:t,encoder:{name:n,prefix:t,encode:r},decoder:{decode:e}}}var Hi=ji("utf8","u",n=>"u"+new TextDecoder("utf8").decode(n),n=>new TextEncoder().encode(n.substring(1))),jr=ji("ascii","a",n=>{let t="a";for(let r=0;r{n=n.substring(1);let t=Kt(n.length);for(let r=0;r"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Uu:typeof navigator<"u"?mo(navigator.userAgent):Mu()}function Nu(n){return n!==""&&Lu.reduce(function(t,r){var e=r[0],i=r[1];if(t)return t;var o=i.exec(n);return!!o&&[e,o]},!1)}function mo(n){var t=Nu(n);if(!t)return null;var r=t[0],e=t[1];if(r==="searchbot")return new Au;var i=e[1]&&e[1].split(".").join("_").split("_").slice(0,3);i?i.length<_o&&(i=Eo(Eo([],i,!0),Iu(_o-i.length),!0)):i=[];var o=i.join("."),a=Bu(n),s=Tu.exec(n);return s&&s[1]?new Su(r,o,a,s[1]):new vu(r,o,a)}function Bu(n){for(var t=0,r=wo.length;ti+o.length,0));let r=gt(t),e=0;for(let i of n)r.set(i,e),e+=i.length;return r}u();f();u();f();u();f();var fn={};ue(fn,{identity:()=>Bf});u();f();u();f();u();f();function Uf(n,t){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),e=0;e>>0,v=new Uint8Array(_);C!==T;){for(var O=l[C],L=0,c=_-1;(O!==0||L>>0,v[c]=O%s>>>0,O=O/s>>>0;if(O!==0)throw new Error("Non-zero carry");g=L,C++}for(var h=_-g;h!==_&&v[h]===0;)h++;for(var N=D.repeat(x);h<_;++h)N+=n.charAt(v[h]);return N}function A(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var x=0;if(l[x]!==" "){for(var g=0,C=0;l[x]===D;)g++,x++;for(var T=(l.length-x)*d+1>>>0,_=new Uint8Array(T);l[x];){var v=r[l.charCodeAt(x)];if(v===255)return;for(var O=0,L=T-1;(v!==0||O>>0,_[L]=v%256>>>0,v=v/256>>>0;if(v!==0)throw new Error("Non-zero carry");C=O,x++}if(l[x]!==" "){for(var c=T-C;c!==T&&_[c]===0;)c++;for(var h=new Uint8Array(g+(T-c)),N=g;c!==T;)h[N++]=_[c++];return h}}}function p(l){var x=A(l);if(x)return x;throw new Error(`Non-${t} character`)}return{encode:b,decodeUnsafe:A,decode:p}}var Of=Uf,Tf=Of,jo=Tf;u();f();var w3=new Uint8Array(0);var Ko=(n,t)=>{if(n===t)return!0;if(n.byteLength!==t.byteLength)return!1;for(let r=0;r{if(n instanceof Uint8Array&&n.constructor.name==="Uint8Array")return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw new Error("Unknown type, must be binary type")};var zo=n=>new TextEncoder().encode(n),qo=n=>new TextDecoder().decode(n);var on=class{constructor(t,r,e){this.name=t,this.prefix=r,this.baseEncode=e}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},sn=class{constructor(t,r,e){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=e}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return Go(this,t)}},an=class{constructor(t){this.decoders=t}or(t){return Go(this,t)}decode(t){let r=t[0],e=this.decoders[r];if(e)return e.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},Go=(n,t)=>new an({...n.decoders||{[n.prefix]:n},...t.decoders||{[t.prefix]:t}}),un=class{constructor(t,r,e,i){this.name=t,this.prefix=r,this.baseEncode=e,this.baseDecode=i,this.encoder=new on(t,r,e),this.decoder=new sn(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},tt=({name:n,prefix:t,encode:r,decode:e})=>new un(n,t,r,e),Le=({prefix:n,name:t,alphabet:r})=>{let{encode:e,decode:i}=jo(r,t);return tt({prefix:n,name:t,encode:e,decode:o=>Ae(i(o))})},Lf=(n,t,r,e)=>{let i={};for(let E=0;E=8&&(s-=8,a[d++]=255&D>>s)}if(s>=r||255&D<<8-s)throw new SyntaxError("Unexpected end of data");return a},Nf=(n,t,r)=>{let e=t[t.length-1]==="=",i=(1<r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<tt({prefix:t,name:n,encode(i){return Nf(i,e,r)},decode(i){return Lf(i,e,r,n)}});var Bf=tt({prefix:"\0",name:"identity",encode:n=>qo(n),decode:n=>zo(n)});var cn={};ue(cn,{base2:()=>Mf});u();f();var Mf=he({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var hn={};ue(hn,{base8:()=>If});u();f();var If=he({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Dn={};ue(Dn,{base10:()=>Ff});u();f();var Ff=Le({prefix:"9",name:"base10",alphabet:"0123456789"});var ln={};ue(ln,{base16:()=>Pf,base16upper:()=>Rf});u();f();var Pf=he({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Rf=he({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var dn={};ue(dn,{base32:()=>rt,base32hex:()=>zf,base32hexpad:()=>Wf,base32hexpadupper:()=>Gf,base32hexupper:()=>qf,base32pad:()=>jf,base32padupper:()=>Kf,base32upper:()=>Hf,base32z:()=>Vf});u();f();var rt=he({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Hf=he({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),jf=he({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Kf=he({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),zf=he({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),qf=he({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Wf=he({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Gf=he({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Vf=he({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var bn={};ue(bn,{base36:()=>Yf,base36upper:()=>Jf});u();f();var Yf=Le({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Jf=Le({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var pn={};ue(pn,{base58btc:()=>me,base58flickr:()=>$f});u();f();var me=Le({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),$f=Le({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var xn={};ue(xn,{base64:()=>Xf,base64pad:()=>kf,base64url:()=>Qf,base64urlpad:()=>Zf});u();f();var Xf=he({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),kf=he({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Qf=he({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Zf=he({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var En={};ue(En,{base256emoji:()=>ic});u();f();var Vo=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),ec=Vo.reduce((n,t,r)=>(n[r]=t,n),[]),tc=Vo.reduce((n,t,r)=>(n[t.codePointAt(0)]=r,n),[]);function rc(n){return n.reduce((t,r)=>(t+=ec[r],t),"")}function nc(n){let t=[];for(let r of n){let e=tc[r.codePointAt(0)];if(e===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}var ic=tt({prefix:"\u{1F680}",name:"base256emoji",encode:rc,decode:nc});var gn={};ue(gn,{sha256:()=>yc,sha512:()=>vc});u();f();u();f();u();f();u();f();u();f();var oc=$o,Yo=128,sc=127,ac=~sc,uc=Math.pow(2,31);function $o(n,t,r){t=t||[],r=r||0;for(var e=r;n>=uc;)t[r++]=n&255|Yo,n/=128;for(;n∾)t[r++]=n&255|Yo,n>>>=7;return t[r]=n|0,$o.bytes=r-e+1,t}var fc=_n,cc=128,Jo=127;function _n(n,e){var r=0,e=e||0,i=0,o=e,a,s=n.length;do{if(o>=s)throw _n.bytes=0,new RangeError("Could not decode varint");a=n[o++],r+=i<28?(a&Jo)<=cc);return _n.bytes=o-e,r}var hc=Math.pow(2,7),Dc=Math.pow(2,14),lc=Math.pow(2,21),dc=Math.pow(2,28),bc=Math.pow(2,35),pc=Math.pow(2,42),xc=Math.pow(2,49),Ec=Math.pow(2,56),_c=Math.pow(2,63),wc=function(n){return n[yt.decode(n,t),yt.decode.bytes],nt=(n,t,r=0)=>(yt.encode(n,t,r),t),it=n=>yt.encodingLength(n);var Re=(n,t)=>{let r=t.byteLength,e=it(n),i=e+it(r),o=new Uint8Array(i+r);return nt(n,o,0),nt(r,o,e),o.set(t,i),new ot(n,r,t,o)},Xo=n=>{let t=Ae(n),[r,e]=vt(t),[i,o]=vt(t.subarray(e)),a=t.subarray(e+o);if(a.byteLength!==i)throw new Error("Incorrect length");return new ot(r,i,a,t)},ko=(n,t)=>n===t?!0:n.code===t.code&&n.size===t.size&&Ko(n.bytes,t.bytes),ot=class{constructor(t,r,e,i){this.code=t,this.size=r,this.digest=e,this.bytes=i}};var mn=({name:n,code:t,encode:r})=>new wn(n,t,r),wn=class{constructor(t,r,e){this.name=t,this.code=r,this.encode=e}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?Re(this.code,r):r.then(e=>Re(this.code,e))}else throw Error("Unknown type, must be binary type")}};var Zo=n=>async t=>new Uint8Array(await crypto.subtle.digest(n,t)),yc=mn({name:"sha2-256",code:18,encode:Zo("SHA-256")}),vc=mn({name:"sha2-512",code:19,encode:Zo("SHA-512")});var yn={};ue(yn,{identity:()=>Ac});u();f();var es=0,Cc="identity",ts=Ae,Sc=n=>Re(es,ts(n)),Ac={code:es,name:Cc,encode:ts,digest:Sc};u();f();u();f();var C1=new TextEncoder,S1=new TextDecoder;u();f();u();f();var le=class{constructor(t,r,e,i){this.code=r,this.version=t,this.multihash=e,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:ir,byteLength:ir,code:nr,version:nr,multihash:nr,bytes:nr,_baseCache:ir,asCID:ir})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==St)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==Bc)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return le.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,e=Re(t,r);return le.createV1(this.code,e)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&ko(this.multihash,t.multihash)}toString(t){let{bytes:r,version:e,_baseCache:i}=this;switch(e){case 0:return Lc(r,i,t||me.encoder);default:return Nc(r,i,t||rt.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return Ic(/^0\.0/,Fc),!!(t&&(t[ns]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof le)return t;if(t!=null&&t.asCID===t){let{version:r,code:e,multihash:i,bytes:o}=t;return new le(r,e,i,o||rs(r,e,i.bytes))}else if(t!=null&&t[ns]===!0){let{version:r,multihash:e,code:i}=t,o=Xo(e);return le.create(r,i,o)}else return null}static create(t,r,e){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==St)throw new Error(`Version 0 CID must use dag-pb (code: ${St}) block encoding`);return new le(t,r,e,e.bytes)}case 1:{let i=rs(t,r,e.bytes);return new le(t,r,e,i)}default:throw new Error("Invalid version")}}static createV0(t){return le.create(0,St,t)}static createV1(t,r){return le.create(1,t,r)}static decode(t){let[r,e]=le.decodeFirst(t);if(e.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=le.inspectBytes(t),e=r.size-r.multihashSize,i=Ae(t.subarray(e,e+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=i.subarray(r.multihashSize-r.digestSize),a=new ot(r.multihashCode,r.digestSize,o,i);return[r.version===0?le.createV0(a):le.createV1(r.codec,a),t.subarray(r.size)]}static inspectBytes(t){let r=0,e=()=>{let[b,A]=vt(t.subarray(r));return r+=A,b},i=e(),o=St;if(i===18?(i=0,r=0):i===1&&(o=e()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let a=r,s=e(),D=e(),d=r+D,E=d-a;return{version:i,codec:o,multihashCode:s,digestSize:D,multihashSize:E,size:d}}static parse(t,r){let[e,i]=Tc(t,r),o=le.decode(i);return o._baseCache.set(e,t),o}},Tc=(n,t)=>{switch(n[0]){case"Q":{let r=t||me;return[me.prefix,r.decode(`${me.prefix}${n}`)]}case me.prefix:{let r=t||me;return[me.prefix,r.decode(n)]}case rt.prefix:{let r=t||rt;return[rt.prefix,r.decode(n)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[n[0],t.decode(n)]}}},Lc=(n,t,r)=>{let{prefix:e}=r;if(e!==me.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(e);if(i==null){let o=r.encode(n).slice(1);return t.set(e,o),o}else return i},Nc=(n,t,r)=>{let{prefix:e}=r,i=t.get(e);if(i==null){let o=r.encode(n);return t.set(e,o),o}else return i},St=112,Bc=18,rs=(n,t,r)=>{let e=it(n),i=e+it(t),o=new Uint8Array(i+r.byteLength);return nt(n,o,0),nt(t,o,e),o.set(r,i),o},ns=Symbol.for("@ipld/js-cid/CID"),nr={writable:!1,configurable:!1,enumerable:!0},ir={writable:!1,enumerable:!1,configurable:!1},Mc="0.0.0-dev",Ic=(n,t)=>{if(n.test(Mc))console.warn(t);else throw new Error(t)},Fc=`CID.isCID(v) is deprecated and will be removed in the next major release. Following code pattern: if (CID.isCID(value)) { doSomethingWithCID(value) } Is replaced with: const cid = CID.asCID(value) if (cid) { // Make sure to use cid instead of value doSomethingWithCID(cid) } `;var vn={...fn,...cn,...hn,...Dn,...ln,...dn,...bn,...pn,...xn,...En},j1={...gn,...yn};function os(n,t,r,e){return{name:n,prefix:t,encoder:{name:n,prefix:t,encode:r},decoder:{decode:e}}}var is=os("utf8","u",n=>"u"+new TextDecoder("utf8").decode(n),n=>new TextEncoder().encode(n.substring(1))),Cn=os("ascii","a",n=>{let t="a";for(let r=0;r{n=n.substring(1);let t=gt(n.length);for(let r=0;r