1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885136,(e,t,r)=>{"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise(function(r,n){var i,o,s;function a(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}g(e,t,u,{once:!0}),"error"!==t&&(i=e,o=a,s={once:!0},"function"==typeof i.on&&g(i,"error",o,s))})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){if(l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,a=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,console&&console.warn&&console.warn(a)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):b(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else for(var l=u.length,c=b(u,l),r=0;r<l;++r)o(c[r],this,t);return!0},a.prototype.addListener=function(e,t){return h(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return h(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,s;if(l(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
1("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},a.prototype.listenerCount=y,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},3910,e=>{"use strict";e.s(["__assign",()=>n,"__asyncDelegator",()=>w,"__asyncGenerator",()=>g,"__asyncValues",()=>m,"__await",()=>b,"__awaiter",()=>u,"__classPrivateFieldGet",()=>x,"__classPrivateFieldSet",()=>S,"__createBinding",()=>c,"__decorate",()=>o,"__exportStar",()=>h,"__extends",()=>r,"__generator",()=>l,"__importDefault",()=>E,"__importStar",()=>
1v,"__makeTemplateObject",()=>D,"__metadata",()=>a,"__param",()=>s,"__read",()=>d,"__rest",()=>i,"__spread",()=>p,"__spreadArrays",()=>y,"__values",()=>f]);var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,r)};function r(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function s(e,t){return function(r,n){t(r,n,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var u=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,l):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function m(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:a})},s)})}}}function D(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},966555,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.delay=void 0,r.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},762e3,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ONE_THOUSAND=r.ONE_HUNDRED=void 0,r.ONE_HUNDRED=100,r.ONE_THOUSAND=1e3},355014,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ONE_YEAR=r.FOUR_WEEKS=r.THREE_WEEKS=r.TWO_WEEKS=r.ONE_WEEK=r.THIRTY_DAYS=r.SEVEN_DAYS=r.FIVE_DAYS=r.THREE_DAYS=r.ONE_DAY=r.TWENTY_FOUR_HOURS=r.TWELVE_HOURS=r.SIX_HOURS=r.THREE_HOURS=r.ONE_HOUR=r.SIXTY_MINUTES=r.THIRTY_MINUTES=r.TEN_MINUTES=r.FIVE_MINUTES=r.ONE_MINUTE=r.SIXTY_SECONDS=r.THIRTY_SECONDS=r.TEN_SECONDS=r.FIVE_SECONDS=r.ONE_SECOND=void 0,r.ONE_SECOND=1,r.FIVE_SECONDS=5,r.TEN_SECONDS=10,r.THIRTY_SECONDS=30,r.SIXTY_SECONDS=60,r.ONE_MINUTE=r.SIXTY_SECONDS,r.FIVE_MINUTES=5*r.ONE_MINUTE,r.TEN_MINUTES=10*r.ONE_MINUTE,r.THIRTY_MINUTES=30*r.ONE_MINUTE,r.SIXTY_MINUTES=60*r.ONE_MINUTE,r.ONE_HOUR=r.SIXTY_MINUTES,r.THREE_HOURS=3*r.ONE_HOUR,r.SIX_HOURS=6*r.ONE_HOUR,r.TWELVE_HOURS=12*r.ONE_HOUR,r.TWENTY_FOUR_HOURS=24*r.ONE_HOUR,r.ONE_DAY=r.TWENTY_FOUR_HOURS,r.THREE_DAYS=3*r.ONE_DAY,r.FIVE_DAYS=5*r.ONE_DAY,r.SEVEN_DAYS=7*r.ONE_DAY,r.THIRTY_DAYS=30*r.ONE_DAY,r.ONE_WEEK=r.SEVEN_DAYS,r.TWO_WEEKS=2*r.ONE_WEEK,r.THREE_WEEKS=3*r.ONE_WEEK,r.FOUR_WEEKS=4*r.ONE_WEEK,r.ONE_YEAR=365*r.ONE_DAY},340261,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(3910);n.__exportStar(e.r(762e3),r),n.__exportStar(e.r(355014),r)},231622,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fromMiliseconds=r.toMiliseconds=void 0;let n=e.r(340261);r.toMiliseconds=function(e){return e*n.ONE_THOUSAND},r.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},149950,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(3910);n.__exportStar(e.r(966555),r),n.__exportStar(e.r(231622),r)},28280,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Watch=void 0;class n{start(e){if(this.timestamps.has(e))throw Error("Watch already started for label: ".concat(e));this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error("Watch already stopped for label: ".concat(e));let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error("No timestamp found for label: ".concat(e));return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}constructor(){this.timestamps=new Map}}r.Watch=n,r.default=n},487223,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.IWatch=void 0,r.IWatch=class{}},974460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),e.r(3910).__exportStar(e.r(487223),r)},788162,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(3910);n.__exportStar(e.r(149950),r),n.__exportStar(e.r(28280),r),n.__exportStar(e.r(974460),r),n.__exportStar(e.r(340261),r)},906243,(e,t,r)=>{"use strict";function n(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){let t=n(e);if(!t)throw Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(r,"__esModule",{value:!0}),r.getLocalStorage=r.getLocalStorageOrThrow=r.getCrypto=r.getCryptoOrThrow=r.getLocation=r.getLocationOrThrow=r.getNavigator=r.getNavigatorOrThrow=r.getDocument=r.getDocumentOrThrow=r.getFromWindowOrThrow=r.getFromWindow=void 0,r.getFromWindow=n,r.getFromWindowOrThrow=i,r.getDocumentOrThrow=function(){return i("document")},r.getDocument=function(){return n("document")},r.getNavigatorOrThrow=function(){return i("navigator")},r.getNavigator=function(){return n("navigator")},r.getLocationOrThrow=function(){return i("location")},r.getLocation=function(){return n("location")},r.getCryptoOrThrow=function(){return i("crypto")},r.getCrypto=function(){return n("crypto")},r.getLocalStorageOrThrow=function(){return i("localStorage")},r.getLocalStorage=function(){return n("localStorage")}},797119,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.getWindowMetadata=void 0;let n=e.r(906243);r.getWindowMetadata=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let i=e.getElementsByTagName("meta");for(let e=0;e<i.length;e++){let t=i[e],n=["itemprop","property","name"].map(e=>t.getAttribute(e)).filter(e=>!!e&&r.includes(e));if(n.length&&n){let e=t.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),s=i("description","og:description","twitter:description","keywords"),a=t.origin;return{description:s,url:a,icons:function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let i=r[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop(),r+=n.join("/")+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}return n}(),name:o}}},89817,658586,648231,e=>{"use strict";e.s(["detect",()=>h],89817);var t=e.i(69329),r=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},n=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=t.default.platform},o=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},a=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(e){return e?f(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new a:"undefined"!=typeof navigator?f(navigator.userAgent):void 0!==t.default&&t.default.version?new i(t.default.version.slice(1)):null}function f(e){var t=""!==e&&l.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1);if(!t)return null;var i=t[0],a=t[1];if("searchbot"===i)return new s;var h=a[1]&&a[1].split(".").join("_").split("_").slice(0,3);h?h.length<3&&(h=r(r([],h,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-h.length),!0)):h=[];var f=h.join("."),d=function(e){for(var t=0,r=c.length;t<r;t++){var n=c[t],i=n[0];if(n[1].exec(e))return i}return null}(e),p=u.exec(e);return p&&p[1]?new o(i,f,d,p[1]):new n(i,f,d)}function d(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}e.s(["decode",()=>P],658586);class p{constructor(e,t){this.type=e,this.data=t}}
1class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Object.create(y.prototype)),Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:y.name})}}function b(e,t,r){let n=Math.floor(r/0x100000000);e.setUint32(t,n),e.setUint32(t+4,r)}function g(e,t){return 0x100000000*e.getInt32(t)+e.getUint32(t+4)}let w={type:-1,encode:function(e){return e instanceof Date?function(e){let{sec:t,nsec:r}=e;if(t>=0&&r>=0&&t<=0x3ffffffff)if(0===r&&t<=0xffffffff){let e=new Uint8Array(4);return new DataView(e.buffer).setUint32(0,t),e}else{let e=t/0x100000000,n=new Uint8Array(8),i=new DataView(n.buffer);return i.setUint32(0,r<<2|3&e),i.setUint32(4,0|t),n}{let e=new Uint8Array(12),n=new DataView(e.buffer);return n.setUint32(0,r),b(n,4,t),e}}(function(e){let t=e.getTime(),r=Math.floor(t/1e3),n=(t-1e3*r)*1e6,i=Math.floor(n/1e9);return{sec:r+i,nsec:n-1e9*i}}(e)):null},decode:function(e){let t=function(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:{let e=t.getUint32(0);return{sec:(3&e)*0x100000000+t.getUint32(4),nsec:e>>>2}}case 12:return{sec:g(t,4),nsec:t.getUint32(0)};default:throw new y("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}};class m{register(e){let{type:t,encode:r,decode:n}=e;if(t>=0)this.encoders[t]=r,this.decoders[t]=n;else{let e=-1-t;this.builtInEncoders[e]=r,this.builtInDecoders[e]=n}}tryToEncode(e,t){for(let r=0;r<this.builtInEncoders.length;r++){let n=this.builtInEncoders[r];if(null!=n){let i=n(e,t);if(null!=i)return new p(-1-r,i)}}for(let r=0;r<this.encoders.length;r++){let n=this.encoders[r];if(null!=n){let i=n(e,t);if(null!=i)return new p(r,i)}}return e instanceof p?e:null}decode(e,t,r){let n=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return n?n(e,t,r):new p(t,e)}constructor(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(w)}}m.defaultCodec=new m;let D=new TextEncoder;function v(e,t,r){let n=t,i=n+r,o=[],s="";for(;n<i;){let t=e[n++];if((128&t)==0)o.push(t);else if((224&t)==192){let r=63&e[n++];o.push((31&t)<<6|r)}else if((240&t)==224){let r=63&e[n++],i=63&e[n++];o.push((31&t)<<12|r<<6|i)}else if((248&t)==240){let r=63&e[n++],i=(7&t)<<18|r<<12|(63&e[n++])<<6|63&e[n++];i>65535&&(i-=65536,o.push(i>>>10&1023|55296),i=56320|1023&i),o.push(i)}else o.push(t);o.length>=4096&&(s+=String.fromCharCode(...o),o.length=0)}return o.length>0&&(s+=String.fromCharCode(...o)),s}let E=new TextDecoder;function x(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}let S="array",A="map_key",_="map_value",U=e=>{if("string"==typeof e||"number"==typeof e)return e;throw new y("The type of key must be string or number but "+typeof e)};class C{get length(){return this.stackHeadPosition+1}top(){return this.stack[this.stackHeadPosition]}pushArrayState(e){let t=this.getUninitializedStateFromPool();t.type=S,t.position=0,t.size=e,t.array=Array(e)}pushMapState(e){let t=this.getUninitializedStateFromPool();t.type=A,t.readCount=0,t.size=e,t.map={}}getUninitializedStateFromPool(){return this.stackHeadPosition++,this.stackHeadPosition===this.stack.length&&this.stack.push({type:void 0,size:0,array:void 0,position:0,readCount:0,map:void 0,key:null}),this.stack[this.stackHeadPosition]}release(e){if(this.stack[this.stackHeadPosition]!==e)throw Error("Invalid stack state. Released state is not on top of the stack.");e.type===S&&(e.size=0,e.array=void 0,e.position=0,e.type=void 0),(e.type===A||e.type===_)&&(e.size=0,e.map=void 0,e.readCount=0,e.type=void 0),this.stackHeadPosition--}reset(){this.stack.length=0,this.stackHeadPosition=-1}constructor(){this.stack=[],this.stackHeadPosition=-1}}let B=new DataView(new ArrayBuffer(0)),I=new Uint8Array(B.buffer);try{B.getInt8(0)}catch(e){if(!(e instanceof RangeError))throw Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access")}let O=RangeError("Insufficient data"),T=new class{canBeCached(e){return e>0&&e<=this.maxKeyLength}find(e,t,r){let n=this.caches[r-1];e:for(let i of n){let n=i.bytes;for(let i=0;i<r;i++)if(n[i]!==e[t+i])continue e;return i.str}return null}store(e,t){let r=this.caches[e.length-1],n={bytes:e,str:t};r.length>=this.maxLengthPerKey?r[Math.random()*r.length|0]=n:r.push(n)}decode(e,t,r){let n=this.find(e,t,r);if(null!=n)return this.hit++,n;this.miss++;let i=v(e,t,r),o=Uint8Array.prototype.slice.call(e,t,t+r);return this.store(o,i),i}constructor(e=16,t=16){this.hit=0,this.miss=0,this.maxKeyLength=e,this.maxLengthPerKey=t,this.caches=[];for(let e=0;e<this.maxKeyLength;e++)this.caches.push([])}};class L{clone(){return new L({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,rawStrings:this.rawStrings,maxStrLength:this.maxStrLength,maxBinLength:this.maxBinLength,maxArrayLength:this.maxArrayLength,maxMapLength:this.maxMapLength,maxExtLength:this.maxExtLength,keyDecoder:this.keyDecoder})}reinitializeState(){this.totalPos=0,this.headByte=-1,this.stack.reset()}setBuffer(e){let t=x(e);this.bytes=t,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.pos=0}appendBuffer(e){if(-1!==this.headByte||this.hasRemaining(1)){let t=this.bytes.subarray(this.pos),r=x(e),n=new Uint8Array(t.length+r.length);n.set(t),n.set(r,t.length),this.setBuffer(n)}else this.setBuffer(e)}hasRemaining(e){return this.view.byteLength-this.pos>=e}createExtraByteError(e){let{view:t,pos:r}=this;return RangeError("Extra ".concat(t.byteLength-r," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))}decode(e){if(this.entered)return this.clone().decode(e);try{this.entered=!0,this.reinitializeState(),this.setBuffer(e);let t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t}finally{this.entered=!1}}*decodeMulti(e){if(this.entered){let t=this.clone();yield*t.decodeMulti(e);return}try{for(this.entered=!0,this.reinitializeState(),this.setBuffer(e);this.hasRemaining(1);)yield this.doDecodeSync()}finally{this.entered=!1}}async decodeAsync(e){if(this.entered)return this.clone().decodeAsync(e);try{let t;this.entered=!0;let r=!1;for await(let n of e){if(r)throw this.entered=!1,this.createExtraByteError(this.totalPos);this.appendBuffer(n);try{t=this.doDecodeSync(),r=!0}catch(e){if(!(e instanceof RangeError))throw e}this.totalPos+=this.pos}if(r){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return t}let{headByte:n,pos:i,totalPos:o}=this;throw RangeError("Insufficient data in parsing ".concat(d(n)," at ").concat(o," (").concat(i," in the current buffer)"))}finally{this.entered=!1}}decodeArrayStream(e){return this.decodeMultiAsync(e,!0)}decodeStream(e){return this.decodeMultiAsync(e,!1)}async *decodeMultiAsync(e,t){if(this.entered){let r=this.clone();yield*r.decodeMultiAsync(e,t);return}try{this.entered=!0;let r=t,n=-1;for await(let i of e){if(t&&0===n)throw this.createExtraByteError(this.totalPos);this.appendBuffer(i),r&&(n=this.readArraySize(),r=!1,this.complete());try{for(;yield this.doDecodeSync(),0!=--n;);}catch(e){if(!(e instanceof RangeError))throw e}this.totalPos+=this.pos}}finally{this.entered=!1}}doDecodeSync(){t:for(;;){let e,t=this.readHeadByte();if(t>=224)e=t-256;else if(t<192)if(t<128)e=t;else if(t<144){let r=t-128;if(0!==r){this.pushMapState(r),this.complete();continue}e={}}else if(t<160){let r=t-144;if(0!==r){this.pushArrayState(r),this.complete();continue}e=[]}else{let r=t-160;e=this.decodeString(r,0)}else if(192===t)e=null;else if(194===t)e=!1;else if(195===t)e=!0;else if(202===t)e=this.readF32();else if(203===t)e=this.readF64();else if(204===t)e=this.readU8();else if(205===t)e=this.readU16();else if(206===t)e=this.readU32();else if(207===t)e=this.useBigInt64?this.readU64AsBigInt():this.readU64();else if(208===t)e=this.readI8();else if(209===t)e=this.readI16();else if(210===t)e=this.readI32();else if(211===t)e=this.useBigInt64?this.readI64AsBigInt():this.readI64();else if(217===t){let t=this.lookU8();e=this.decodeString(t,1)}else if(218===t){let t=this.lookU16();e=this.decodeString(t,2)}else if(219===t){let t=this.lookU32();e=this.decodeString(t,4)}else if(220===t){let t=this.readU16();if(0!==t){this.pushArrayState(t),this.complete();continue}e=[]}else if(221===t){let t=this.readU32();if(0!==t){this.pushArrayState(t),this.complete();continue}e=[]}else if(222===t){let t=this.readU16();if(0!==t){this.pushMapState(t),this.complete();continue}e={}}else if(223===t){let t=this.readU32();if(0!==t){this.pushMapState(t),this.complete();continue}e={}}else if(196===t){let t=this.lookU8();e=this.decodeBinary(t,1)}else if(197===t){let t=this.lookU16();e=this.decodeBinary(t,2)}else if(198===t){let t=this.lookU32();e=this.decodeBinary(t,4)}else if(212===t)e=this.decodeExtension(1,0);else if(213===t)e=this.decodeExtension(2,0);else if(214===t)e=this.decodeExtension(4,0);else if(215===t)e=this.decodeExtension(8,0);else if(216===t)e=this.decodeExtension(16,0);else if(199===t){let t=this.lookU8();e=this.decodeExtension(t,1)}else if(200===t){let t=this.lookU16();e=this.decodeExtension(t,2)}else if(201===t){let t=this.lookU32();e=this.decodeExtension(t,4)}else throw new y("Unrecognized type byte: ".concat(d(t)));this.complete();let r=this.stack;for(;r.length>0;){let t=r.top();if(t.type===S)if(t.array[t.position]=e,t.position++,t.position===t.size)e=t.array,r.release(t);else continue t;else if(t.type===A){if("__proto__"===e)throw new y("The key __proto__ is not allowed");t.key=this.mapKeyConverter(e),t.type=_;continue t}else if(t.map[t.key]=e,t.readCount++,t.readCount===t.size)e=t.map,r.release(t);else{t.key=null,t.type=A;continue t}}return e}}readHeadByte(){return -1===this.headByte&&(this.headByte=this.readU8()),this.headByte}complete(){this.headByte=-1}readArraySize(){let e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new y("Unrecognized array type byte: ".concat(d(e)))}}pushMapState(e){if(e>this.maxMapLength)throw new y("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.pushMapState(e)}pushArrayState(e){if(e>this.maxArrayLength)throw new y("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.pushArrayState(e)}decodeString(e,t){return!this.rawStrings||this.stateIsMapKey()?this.decodeUtf8String(e,t):this.decodeBinary(e,t)}decodeUtf8String(e,t){var r;let n;if(e>this.maxStrLength)throw new y("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw O;let i=this.pos+t;return n=this.stateIsMapKey()&&(null==(r=this.keyDecoder)?void 0:r.canBeCached(e))?this.keyDecoder.decode(this.bytes,i,e):function(e,t,r){if(!(r>200))return v(e,t,r);let n=e.subarray(t,t+r);return E.decode(n)}(this.bytes,i,e),this.pos+=t+e,n}stateIsMapKey(){return this.stack.length>0&&this.stack.top().type===A}decodeBinary(e,t){if(e>this.maxBinLength)throw new y("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw O;let r=this.pos+t,n=this.bytes.subarray(r,r+e);return this.pos+=t+e,n}decodeExtension(e,t){if(e>this.maxExtLength)throw new y("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));let r=this.view.getInt8(this.pos+t),n=this.decodeBinary(e,t+1);return this.extensionCodec.decode(n,r,this.context)}lookU8(){return this.view.getUint8(this.pos)}lookU16(){return this.view.getUint16(this.pos)}lookU32(){return this.view.getUint32(this.pos)}readU8(){let e=this.view.getUint8(this.pos);return this.pos++,e}readI8(){let e=this.view.getInt8(this.pos);return this.pos++,e}readU16(){let e=this.view.getUint16(this.pos);return this.pos+=2,e}readI16(){let e=this.view.getInt16(this.pos);return this.pos+=2,e}readU32(){let e=this.view.getUint32(this.pos);return this.pos+=4,e}readI32(){let e=this.view.getInt32(this.pos);return this.pos+=4,e}readU64(){var e,t;let r=(e=this.view,t=this.pos,0x100000000*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,r}readI64(){let e=g(this.view,this.pos);return this.pos+=8,e}readU64AsBigInt(){let e=this.view.getBigUint64(this.pos);return this.pos+=8,e}readI64AsBigInt(){let e=this.view.getBigInt64(this.pos);return this.pos+=8,e}readF32(){let e=this.view.getFloat32(this.pos);return this.pos+=4,e}readF64(){let e=this.view.getFloat64(this.pos);return this.pos+=8,e}constructor(e){var t,r,n,i,o,s,a,u,l;this.totalPos=0,this.pos=0,this.view=B,this.bytes=I,this.headByte=-1,this.stack=new C,this.entered=!1,this.extensionCodec=null!=(t=null==e?void 0:e.extensionCodec)?t:m.defaultCodec,this.context=null==e?void 0:e.context,this.useBigInt64=null!=(r=null==e?void 0:e.useBigInt64)&&r,this.rawStrings=null!=(n=null==e?void 0:e.rawStrings)&&n,this.maxStrLength=null!=(i=null==e?void 0:e.maxStrLength)?i:0xffffffff,this.maxBinLength=null!=(o=null==e?void 0:e.maxBinLength)?o:0xffffffff,this.maxArrayLength=null!=(s=null==e?void 0:e.maxArrayLength)?s:0xffffffff,this.maxMapLength=null!=(a=null==e?void 0:e.maxMapLength)?a:0xffffffff,this.maxExtLength=null!=(u=null==e?void 0:e.maxExtLength)?u:0xffffffff,this.keyDecoder=(null==e?void 0:e.keyDecoder)!==void 0?e.keyDecoder:T,this.mapKeyConverter=null!=(l=null==e?void 0:e.mapKeyConverter)?l:U}}function P(e,t){return new L(t).decode(e)}e.s(["encode",()=>N],648231);class k{clone(){return new k({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,maxDepth:this.maxDepth,initialBufferSize:this.initialBufferSize,sortKeys:this.sortKeys,forceFloat32:this.forceFloat32,ignoreUndefined:this.ignoreUndefined,forceIntegerToFloat:this.forceIntegerToFloat})}reinitializeState(){this.pos=0}encodeSharedRef(e){if(this.entered)return this.clone().encodeSharedRef(e);try{return this.entered=!0,this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)}finally{this.entered=!1}}encode(e){if(this.entered)return this.clone().encode(e);try{return this.entered=!0,this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)}finally{this.entered=!1}}doEncode(e,t){if(t>this.maxDepth)throw Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.forceIntegerToFloat?this.encodeNumberAsFloat(e):this.encodeNumber(e):"str
1ing"==typeof e?this.encodeString(e):this.useBigInt64&&"bigint"==typeof e?this.encodeBigInt64(e):this.encodeObject(e,t)}ensureBufferSizeToWrite(e){let t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)}resizeBuffer(e){let t=new ArrayBuffer(e),r=new Uint8Array(t),n=new DataView(t);r.set(this.bytes),this.view=n,this.bytes=r}encodeNil(){this.writeU8(192)}encodeBoolean(e){!1===e?this.writeU8(194):this.writeU8(195)}encodeNumber(e){!this.forceIntegerToFloat&&Number.isSafeInteger(e)?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<0x100000000?(this.writeU8(206),this.writeU32(e)):this.useBigInt64?this.encodeNumberAsFloat(e):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-0x80000000?(this.writeU8(210),this.writeI32(e)):this.useBigInt64?this.encodeNumberAsFloat(e):(this.writeU8(211),this.writeI64(e)):this.encodeNumberAsFloat(e)}encodeNumberAsFloat(e){this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))}encodeBigInt64(e){e>=BigInt(0)?(this.writeU8(207),this.writeBigUint64(e)):(this.writeU8(211),this.writeBigInt64(e))}writeStringHeader(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<0x100000000)this.writeU8(219),this.writeU32(e);else throw Error("Too long string: ".concat(e," bytes in UTF-8"))}encodeString(e){let t=function(e){let t=e.length,r=0,n=0;for(;n<t;){let i=e.charCodeAt(n++);if((0xffffff80&i)==0){r++;continue}if((0xfffff800&i)==0)r+=2;else{if(i>=55296&&i<=56319&&n<t){let t=e.charCodeAt(n);(64512&t)==56320&&(++n,i=((1023&i)<<10)+(1023&t)+65536)}(0xffff0000&i)==0?r+=3:r+=4}}return r}(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,r){if(e.length>50)D.encodeInto(e,t.subarray(r));else!function(e,t,r){let n=e.length,i=r,o=0;for(;o<n;){let r=e.charCodeAt(o++);if((0xffffff80&r)==0){t[i++]=r;continue}if((0xfffff800&r)==0)t[i++]=r>>6&31|192;else{if(r>=55296&&r<=56319&&o<n){let t=e.charCodeAt(o);(64512&t)==56320&&(++o,r=((1023&r)<<10)+(1023&t)+65536)}(0xffff0000&r)==0?t[i++]=r>>12&15|224:(t[i++]=r>>18&7|240,t[i++]=r>>12&63|128),t[i++]=r>>6&63|128}t[i++]=63&r|128}}(e,t,r)}(e,this.bytes,this.pos),this.pos+=t}encodeObject(e,t){let r=this.extensionCodec.tryToEncode(e,this.context);if(null!=r)this.encodeExtension(r);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if("object"==typeof e)this.encodeMap(e,t);else throw Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))}encodeBinary(e){let t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else if(t<0x100000000)this.writeU8(198),this.writeU32(t);else throw Error("Too large binary: ".concat(t));let r=x(e);this.writeU8a(r)}encodeArray(e,t){let r=e.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<0x100000000)this.writeU8(221),this.writeU32(r);else throw Error("Too large array: ".concat(r));for(let r of e)this.doEncode(r,t+1)}countWithoutUndefined(e,t){let r=0;for(let n of t)void 0!==e[n]&&r++;return r}encodeMap(e,t){let r=Object.keys(e);this.sortKeys&&r.sort();let n=this.ignoreUndefined?this.countWithoutUndefined(e,r):r.length;if(n<16)this.writeU8(128+n);else if(n<65536)this.writeU8(222),this.writeU16(n);else if(n<0x100000000)this.writeU8(223),this.writeU32(n);else throw Error("Too large map object: ".concat(n));for(let n of r){let r=e[n];this.ignoreUndefined&&void 0===r||(this.encodeString(n),this.doEncode(r,t+1))}}encodeExtension(e){if("function"==typeof e.data){let t=e.data(this.pos+6),r=t.length;if(r>=0x100000000)throw Error("Too large extension object: ".concat(r));this.writeU8(201),this.writeU32(r),this.writeI8(e.type),this.writeU8a(t);return}let t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else if(t<0x100000000)this.writeU8(201),this.writeU32(t);else throw Error("Too large extension object: ".concat(t));this.writeI8(e.type),this.writeU8a(e.data)}writeU8(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++}writeU8a(e){let t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t}writeI8(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++}writeU16(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2}writeI16(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2}writeU32(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4}writeI32(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4}writeF32(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4}writeF64(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8}writeU64(e){var t,r;this.ensureBufferSizeToWrite(8),t=this.view,r=this.pos,t.setUint32(r,e/0x100000000),t.setUint32(r+4,e),this.pos+=8}writeI64(e){this.ensureBufferSizeToWrite(8),b(this.view,this.pos,e),this.pos+=8}writeBigUint64(e){this.ensureBufferSizeToWrite(8),this.view.setBigUint64(this.pos,e),this.pos+=8}writeBigInt64(e){this.ensureBufferSizeToWrite(8),this.view.setBigInt64(this.pos,e),this.pos+=8}constructor(e){var t,r,n,i,o,s,a,u;this.entered=!1,this.extensionCodec=null!=(t=null==e?void 0:e.extensionCodec)?t:m.defaultCodec,this.context=null==e?void 0:e.context,this.useBigInt64=null!=(r=null==e?void 0:e.useBigInt64)&&r,this.maxDepth=null!=(n=null==e?void 0:e.maxDepth)?n:100,this.initialBufferSize=null!=(i=null==e?void 0:e.initialBufferSize)?i:2048,this.sortKeys=null!=(o=null==e?void 0:e.sortKeys)&&o,this.forceFloat32=null!=(s=null==e?void 0:e.forceFloat32)&&s,this.ignoreUndefined=null!=(a=null==e?void 0:e.ignoreUndefined)&&a,this.forceIntegerToFloat=null!=(u=null==e?void 0:e.forceIntegerToFloat)&&u,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}}function N(e,t){return new k(t).encodeSharedRef(e)}},124027,e=>{"use strict";function t(e){if("string"!=typeof e)throw Error("Cannot safe json parse value of type ".concat(typeof e));try{return JSON.parse(e.replace(/([\[:])?(\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,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t)}catch(t){return e}}function r(e){return"string"==typeof e?e:JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t)||""}e.s(["safeJsonParse",()=>t,"safeJsonStringify",()=>r])},112387,e=>{"use strict";e.s(["decodeJWT",()=>tw,"encodeIss",()=>tg,"generateKeyPair",()=>tm,"signJWT",()=>tD]);var t=e.i(788162),r=e.i(124027);function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(r.length>0&&!r.includes(e.length))throw Error("Uint8Array expected of length "+r+", got length="+e.length)}function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}let o="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,s=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function a(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),n(e),e}class u{clone(){return this._cloneInto()}}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(o&&"function"==typeof o.getRandomValues)return o.getRandomValues(new Uint8Array(e));if(o&&"function"==typeof o.randomBytes)return o.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}class c extends u{update(e){i(this);let{view:t,buffer:r,blockLen:n}=this,o=(e=a(e)).length;for(let i=0;i<o;){let a=Math.min(n-this.pos,o-i);if(a===n){let t=s(e);for(;n<=o-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){i(this),function(e,t){n(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:o,isLE:a}=this,{pos:u}=this;
1t[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>o-u&&(this.process(r,0),u=0);for(let e=u;e<o;e++)t[e]=0;(function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),s=Number(r>>i&o),a=Number(r&o),u=4*!!n,l=4*!n;e.setUint32(t+u,s,n),e.setUint32(t+l,a,n)})(r,o-8,BigInt(8*this.length),a),this.process(r,0);let l=s(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let h=c/4,f=this.get();if(h>f.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<h;e++)l.setUint32(4*e,f[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return e.length=n,e.pos=s,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=s(this.buffer)}}let h=BigInt(0x100000000-1),f=BigInt(32),d={split:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:s}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?{h:Number(e&h),l:Number(e>>f&h)}:{h:0|Number(e>>f&h),l:0|Number(e&h)}}(e[i],t);[r[i],n[i]]=[o,s]}return[r,n]},shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,add:function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/0x100000000|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)},[p,y]=d.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
15771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),b=new Uint32Array(80),g=new Uint32Array(80);class w extends c{get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:s,Dl:a,Eh:u,El:l,Fh:c,Fl:h,Gh:f,Gl:d,Hh:p,Hl:y}=this;return[e,t,r,n,i,o,s,a,u,l,c,h,f,d,p,y]}set(e,t,r,n,i,o,s,a,u,l,c,h,f,d,p,y){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|u,this.El=0|l,this.Fh=0|c,this.Fl=0|h,this.Gh=0|f,this.Gl=0|d,this.Hh=0|p,this.Hl=0|y}process(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t),g[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|b[e-15],r=0|g[e-15],n=d.rotrSH(t,r,1)^d.rotrSH(t,r,8)^d.shrSH(t,r,7),i=d.rotrSL(t,r,1)^d.rotrSL(t,r,8)^d.shrSL(t,r,7),o=0|b[e-2],s=0|g[e-2],a=d.rotrSH(o,s,19)^d.rotrBH(o,s,61)^d.shrSH(o,s,6),u=d.rotrSL(o,s,19)^d.rotrBL(o,s,61)^d.shrSL(o,s,6),l=d.add4L(i,u,g[e-7],g[e-16]
1),c=d.add4H(l,n,a,b[e-7],b[e-16]);b[e]=0|c,g[e]=0|l}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:s,Cl:a,Dh:u,Dl:l,Eh:c,El:h,Fh:f,Fl:w,Gh:m,Gl:D,Hh:v,Hl:E}=this;for(let e=0;e<80;e++){let t=d.rotrSH(c,h,14)^d.rotrSH(c,h,18)^d.rotrBH(c,h,41),x=d.rotrSL(c,h,14)^d.rotrSL(c,h,18)^d.rotrBL(c,h,41),S=c&f^~c&m,A=h&w^~h&D,_=d.add5L(E,x,A,y[e],g[e]),U=d.add5H(_,v,t,S,p[e],b[e]),C=0|_,B=d.rotrSH(r,n,28)^d.rotrBH(r,n,34)^d.rotrBH(r,n,39),I=d.rotrSL(r,n,28)^d.rotrBL(r,n,34)^d.rotrBL(r,n,39),O=r&i^r&s^i&s,T=n&o^n&a^o&a;v=0|m,E=0|D,m=0|f,D=0|w,f=0|c,w=0|h,({h:c,l:h}=d.add(0|u,0|l,0|U,0|C)),u=0|s,l=0|a,s=0|i,a=0|o,i=0|r,o=0|n;let L=d.add3L(C,I,T);r=d.add3H(L,U,B,O),n=0|L}({h:r,l:n}=d.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=d.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=d.add(0|this.Ch,0|this.Cl,0|s,0|a)),({h:u,l:l}=d.add(0|this.Dh,0|this.Dl,0|u,0|l)),({h:c,l:h}=d.add(0|this.Eh,0|this.El,0|c,0|h)),({h:f,l:w}=d.add(0|this.Fh,0|this.Fl,0|f,0|w)),({h:m,l:D}=d.add(0|this.Gh,0|this.Gl,0|m,0|D)),({h:v,l:E}=d.add(0|this.Hh,0|this.Hl,0|v,0|E)),this.set(r,n,i,o,s,a,u,l,c,h,f,w,m,D,v,E)}roundClean(){b.fill(0),g.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}}let m=function(e){let t=t=>e().update(a(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}(()=>new w),D=BigInt(0),v=BigInt(1),E=BigInt(2);function x(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function S(e){if(!x(e))throw Error("Uint8Array expected")}function A(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let _=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function U(e){S(e);let t="";for(let r=0;r<e.length;r++)t+=_[e[r]];return t}function C(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?D:BigInt("0x"+e)}let B={_0:48,_9:57,A:65,F:70,a:97,f:102};function I(e){return e>=B._0&&e<=B._9?e-B._0:e>=B.A&&e<=B.F?e-(B.A-10):e>=B.a&&e<=B.f?e-(B.a-10):void 0}function O(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=I(e.charCodeAt(i)),o=I(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function T(e){return S(e),C(U(Uint8Array.from(e).reverse()))}function L(e,t){return O(e.toString(16).padStart(2*t,"0"))}function P(e,t){return L(e,t).reverse()}function k(e,t,r){let n;if("string"==typeof t)try{n=O(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(x(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=n.length;if("number"==typeof r&&i!==r)throw Error(e+" of length "+r+" expected, got "+i);return n}function N(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=0;for(let e=0;e<t.length;e++){let r=t[e];S(r),n+=r.length}let i=new Uint8Array(n);for(let e=0,r=0;e<t.length;e++){let n=t[e];i.set(n,r),r+=n.length}return i}let R=e=>"bigint"==typeof e&&D<=e;function F(e,t,r,n){if(!(R(t)&&R(r)&&R(n))||!(r<=t)||!(t<n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}let M={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||x(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function j(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(t,r,n)=>{let i=M[r];if("function"!=typeof i)throw Error("invalid validator function");let o=e[t];if(!(n&&void 0===o)&&!i(o,e))throw Error("param "+String(t)+" is invali
1d. Expected "+r+", got "+o)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}function z(e){let t=new WeakMap;return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let s=t.get(r);if(void 0!==s)return s;let a=e(r,...i);return t.set(r,a),a}}let H=BigInt(0),W=BigInt(1),K=BigInt(2),V=BigInt(3),q=BigInt(4),J=BigInt(5),Y=BigInt(8);function G(e,t){let r=e%t;return r>=H?r:t+r}function Z(e,t,r){let n=e;for(;t-- >H;)n*=n,n%=r;return n}function X(e,t){if(e===H)throw Error("invert: expected non-zero number");if(t<=H)throw Error("invert: expected positive modulus, got "+t);let r=G(e,t),n=t,i=H,o=W;for(;r!==H;){let e=n/r,t=n%r,s=i-o*e;n=r,r=t,i=o,o=s}if(n!==W)throw Error("invert: does not exist");return G(i,t)}let Q=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function $(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function ee(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=H)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:s}=$(e,t);if(s>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let a=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:s,MASK:(E<<BigInt(o-1))-v,ZERO:H,ONE:W,create:t=>G(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return H<=t&&t<e},is0:e=>e===H,isOdd:e=>(e&W)===W,neg:t=>G(-t,e),eql:(e,t)=>e===t,sqr:t=>G(t*t,e),add:(t,r)=>G(t+r,e),sub:(t,r)=>G(t-r,e),mul:(t,r)=>G(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<H)throw Error("invalid exponent, negatives unsupported");if(r===H)return e.ONE;if(r===W)return t;let n=e.ONE,i=t;for(;r>H;)r&W&&(n=e.mul(n,i)),i=e.sqr(i),r>>=W;return n})(a,e,t),div:(t,r)=>G(t*X(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>X(t,e),sqrt:i.sqrt||(t=>(r||(r=function(e){if(e%q===V){let t=(e+W)/q;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%Y===J){let t=(e-J)/Y;return function(e,r){let n=e.mul(r,K),i=e.pow(n,t),o=e.mul(r,i),s=e.mul(e.mul(o,K),i),a=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),r))throw Error("Cannot find square root");return a}}return function(e){let t,r,n,i=(e-W)/K;for(t=e-W,r=0;t%K===H;t/=K,r++);for(n=K;n<e&&function(e,t,r){if(t<H)throw Error("invalid exponent, negatives unsupported");if(r<=H)throw Error("invalid modulus");if(r===W)return H;let n=W;for(;t>H;)t&W&&(n=n*e%r),e=e*e%r,t>>=W;return n}(n,i,e)!==e-W;n++)if(n>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===r){let t=(e+W)/q;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let o=(t+W)/K;return function(e,s){if(e.pow(s,i)===e.neg(e.ONE))throw Error("Cannot find square root");let a=r,u=e.pow(e.mul(e.ONE,n),t),l=e.pow(s,o),c=e.pow(s,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(c);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,W<<BigInt(a-t-1));u=e.sqr(r),l=e.mul(l,r),c=e.mul(c,u),a=t}return l}}(e)}(e)),r(a,t))),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r})(a,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>n?P(e,s):L(e,s),fromBytes:e=>{if(e.length!==s)throw Error("Field.fromBytes: expected "+s+" bytes, got "+e.length);return n?T(e):C(U(e))}});return Object.freeze(a)}let et=BigInt(0),er=BigInt(1);function en(e,t){let r=t.negate();return e?r:t}function ei(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function eo(e,t){return ei(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}let es=new WeakMap,ea=new WeakMap;function eu(e){return ea.get(e)||1}let el=BigInt(0),ec=BigInt(1),eh=BigInt(2),ef=BigInt(8),ed={zip215:!0};BigInt(0),BigInt(1);let ep=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),ey=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);let eb=BigInt(1),eg=BigInt(2);BigInt(3);let ew=BigInt(5),em=BigInt(8),eD=ee(ep,void 0,!0),ev=function(e){var t;let r=function(e){let t=(j(e.Fp,Q.reduce((e,t)=>
1(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),j(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...$(e.n,e.nBitLength),...e,p:e.Fp.ORDER}));return j(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:n,n:i,prehash:o,hash:s,randomBytes:a,nByteLength:u,h:l}=r,c=eh<<BigInt(8*u)-ec,h=n.create,f=ee(r.n,r.nBitLength),d=r.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(e*n.inv(t))}}catch(e){return{isValid:!1,value:el}}}),p=r.adjustScalarBytes||(e=>e),y=r.domain||((e,t,r)=>{if(A("phflag",r),t.length||r)throw Error("Contexts/pre-hash are not supported");return e});function b(e,t){F("coordinate "+e,t,el,c)}function g(e){if(!(e instanceof E))throw Error("ExtendedPoint expected")}let w=z((e,t)=>{let{ex:r,ey:i,ez:o}=e,s=e.is0();null==t&&(t=s?ef:n.inv(o));let a=h(r*t),u=h(i*t),l=h(o*t);if(s)return{x:el,y:ec};if(l!==ec)throw Error("invZ was invalid");return{x:a,y:u}}),m=z(e=>{let{a:t,d:n}=r;if(e.is0())throw Error("bad point: ZERO");let{ex:i,ey:o,ez:s,et:a}=e,u=h(i*i),l=h(o*o),c=h(s*s),f=h(c*c),d=h(u*t);if(h(c*h(d+l))!==h(f+h(n*h(u*l))))throw Error("bad point: equation left != right (1)");if(h(i*o)!==h(s*a))throw Error("bad point: equation left != right (2)");return!0});class E{get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof E)throw Error("extended point not allowed");let{x:t,y:r}=e||{};return b("x",t),b("y",r),new E(t,r,ec,h(t*r))}static normalizeZ(e){let t=n.invertBatch(e.map(e=>e.ez));return e.map((e,r)=>e.toAffine(t[r])).map(E.fromAffine)}static msm(e,t){return function(e,t,r,n){if(function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}(r,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}(n,t),r.length!==n.length)throw Error("arrays of points and scalars must have equal length");let i=e.ZERO,o=function(e){let t;for(t=0;e>D;e>>=v,t+=1);return t}(BigInt(r.length)),s=o>12?o-3:o>4?o-2:o?2:1,a=(1<<s)-1,u=Array(a+1).fill(i),l=Math.floor((t.BITS-1)/s)*s,c=i;for(let e=l;e>=0;e-=s){u.fill(i);for(let t=0;t<n.length;t++){let i=Number(n[t]>>BigInt(e)&BigInt(a));u[i]=u[i].add(r[t])}let t=i;for(let e=u.length-1,r=i;e>0;e--)r=r.add(u[e]),t=t.add(r);if(c=c.add(t),0!==e)for(let e=0;e<s;e++)c=c.double()}return c}(E,f,e,t)}_setWindowSize(e){_.setWindowSize(this,e)}assertValidity(){m(this)}equals(e){g(e);let{ex:t,ey:r,ez:n}=this,{ex:i,ey:o,ez:s}=e,a=h(t*s),u=h(i*n),l=h(r*s),c=h(o*n);return a===u&&l===c}is0(){return this.equals(E.ZERO)}negate(){return new E(h(-this.ex),this.ey,this.ez,h(-this.et))}double(){let{a:e}=r,{ex:t,ey:n,ez:i}=this,o=h(t*t),s=h(n*n),a=h(eh*h(i*i)),u=h(e*o),l=t+n,c=h(h(l*l)-o-s),f=u+s,d=f-a,p=u-s,y=h(c*d),b=h(f*p),g=h(c*p);return new E(y,b,h(d*f),g)}add(e){g(e);let{a:t,d:n}=r,{ex:i,ey:o,ez:s,et:a}=this,{ex:u,ey:l,ez:c,et:f}=e;if(t===BigInt(-1)){let e=h((o-i)*(l+u)),t=h((o+i)*(l-u)),r=h(t-e);if(r===el)return this.double();let n=h(s*eh*f),d=h(a*eh*c),p=d+n,y=t+e,b=d-n,g=h(p*r),w=h(y*b),m=h(p*b);return new E(g,w,h(r*y),m)}let d=h(i*u),p=h(o*l),y=h(a*n*f),b=h(s*c),w=h((i+o)*(u+l)-d-p),m=b-y,D=b+y,v=h(p-t*d),x=h(w*m),S=h(D*v),A=h(w*v);return new E(x,S,h(m*D),A)}subtract(e){return this.add(e.negate())}wNAF(e){return _.wNAFCached(this,e,E.normalizeZ)}multiply(e){F("scalar",e,ec,i);let{p:t,f:r}=this.wNAF(e);return E.normalizeZ([t,r])[0]}multiplyUnsafe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.ZERO;return F("scalar",e,el,i),e===el?S:this.is0()||e===ec?this:_.wNAFCachedUnsafe(this,e,E.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return _.unsafeLadder(this,i).is0()}toAffine(e){return w(this,e)}clearCofactor(){let{h:e}=r;return e===ec?this:this.multiplyUnsafe(e)}static fromHex(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{d:i,a:o}=r,s=n.BYTES;e=k("pointHex",e,s),A("zip215",t);let a=e.slice(),u=e[s-1];a[s-1]=-129&u;let l=T(a);F("pointHex.y",l,el,t?c:n.ORDER);let f=h(l*l),{isValid:p,value:y}
1=d(h(f-ec),h(i*f-o));if(!p)throw Error("Point.fromHex: invalid y coordinate");let b=(y&ec)===ec,g=(128&u)!=0;if(!t&&y===el&&g)throw Error("Point.fromHex: x=0 and x_0=1");return g!==b&&(y=h(-y)),E.fromAffine({x:y,y:l})}static fromPrivateKey(e){return C(e).point}toRawBytes(){let{x:e,y:t}=this.toAffine(),r=P(t,n.BYTES);return r[r.length-1]|=e&ec?128:0,r}toHex(){return U(this.toRawBytes())}constructor(e,t,r,n){this.ex=e,this.ey=t,this.ez=r,this.et=n,b("x",e),b("y",t),b("z",r),b("t",n),Object.freeze(this)}}E.BASE=new E(r.Gx,r.Gy,ec,h(r.Gx*r.Gy)),E.ZERO=new E(el,ec,ec,el);let{BASE:x,ZERO:S}=E,_=(t=8*u,{constTimeNegate:en,hasPrecomputes:e=>1!==eu(e),unsafeLadder(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.ZERO,n=e;for(;t>et;)t&er&&(r=r.add(n)),n=n.double(),t>>=er;return r},precomputeWindow(e,r){let{windows:n,windowSize:i}=eo(r,t),o=[],s=e,a=s;for(let e=0;e<n;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(e,r,n){let{windows:i,windowSize:o}=eo(e,t),s=E.ZERO,a=E.BASE,u=BigInt(2**e-1),l=2**e,c=BigInt(e);for(let e=0;e<i;e++){let t=e*o,i=Number(n&u);n>>=c,i>o&&(i-=l,n+=er);let h=t+Math.abs(i)-1,f=e%2!=0,d=i<0;0===i?a=a.add(en(f,r[t])):s=s.add(en(d,r[h]))}return{p:s,f:a}},wNAFUnsafe(e,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:E.ZERO,{windows:o,windowSize:s}=eo(e,t),a=BigInt(2**e-1),u=2**e,l=BigInt(e);for(let e=0;e<o;e++){let t=e*s;if(n===et)break;let o=Number(n&a);if(n>>=l,o>s&&(o-=u,n+=er),0===o)continue;let c=r[t+Math.abs(o)-1];o<0&&(c=c.negate()),i=i.add(c)}return i},getPrecomputes(e,t,r){let n=es.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&es.set(t,r(n))),n},wNAFCached(e,t,r){let n=eu(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let i=eu(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,r){ei(r,t),ea.set(e,r),es.delete(e)}});function C(e){let t=n.BYTES;e=k("private key",e,t);let r=k("hashed private key",s(e),2*t),o=p(r.slice(0,t)),a=r.slice(t,2*t),u=G(T(o),i),l=x.multiply(u),c=l.toRawBytes();return{head:o,prefix:a,scalar:u,point:l,pointBytes:c}}function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return G(T(s(y(N(...r),k("context",e),!!o))),i)}return x._setWindowSize(8),{CURVE:r,getPublicKey:function(e){return C(e).pointBytes},sign:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=k("message",e),o&&(e=o(e));let{prefix:s,scalar:a,pointBytes:u}=C(t),l=B(r.context,s,e),c=x.multiply(l).toRawBytes(),h=G(l+B(r.context,c,u,e)*a,i);return F("signature.s",h,el,i),k("result",N(c,P(h,n.BYTES)),2*n.BYTES)},verify:function(e,t,r){let i,s,a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ed,{context:l,zip215:c}=u,h=n.BYTES;e=k("signature",e,2*h),t=k("message",t),r=k("publicKey",r,h),void 0!==c&&A("zip215",c),o&&(t=o(t));let f=T(e.slice(h,2*h));try{i=E.fromHex(r,c),s=E.fromHex(e.slice(0,h),c),a=x.multiplyUnsafe(f)}catch(e){return!1}if(!c&&i.isSmallOrder())return!1;let d=B(l,s.toRawBytes(),i.toRawBytes(),t);return s.add(i.multiplyUnsafe(d)).subtract(a).clearCofactor().equals(E.ZERO)},ExtendedPoint:E,utils:{getExtendedPublicKey:C,randomPrivateKey:()=>a(n.BYTES),precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}}}}({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:eD,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:em,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:m,randomBytes:l,adjustScalarBytes:function(e){return e[0]&=248,e[31]&=127,e[31]|=64,e},uvRatio:function(e,t){let r=G(t*t*t,ep),n=function(e){let t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=e*e%ep*e%ep,s=Z(o,eg,ep)*o%ep,a=Z(s,eb,ep)*e%ep,u=Z(a,ew,ep)*a%ep,l=Z(u,t,ep)*u%ep,c=Z(l,r,ep)*l%ep,h=Z(c,n,ep)*c%ep,f=Z(h,i,ep)*h%ep,d=Z(f,i,ep)*h%ep,p=Z(d,t,ep)*u%ep;return{pow_p_5_8:Z(p,eg,ep)*e%ep,b2:o}}(e*G(r*r*t,ep)).pow_p_5_8,i=G(e*r*n,ep),o=G(t*i*i,ep),s=i,a=G(i*ey,ep),u=o===e,l=o===G(-e,ep),c=o===G(-e*ey,ep);return u&&(i=s),(l||c)&&(i=a),(G(i,ep)&W)===W&&(i=G(-i,ep)),{isValid:u||l,value:i}}}),eE="base64url",ex="utf8",eS="utf8",eA="base58btc";function e_(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function eU(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?e_(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function eC(e,t){t||(t=e.reduce((e,t)=>
1e+t.length,0));let r=eU(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return e_(r)}var eB=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function h(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===u;)n++,t++;for(var o=(e.length-t)*l+1>>>0,s=new Uint8Array(o);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var h=0,f=o-1;(0!==c||h<i)&&-1!==f;f--,h++)c+=a*s[f]>>>0,s[f]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");i=h,t++}if(" "!==e[t]){for(var d=o-i;d!==o&&0===s[d];)d++;for(var p=new Uint8Array(n+(o-d)),y=n;d!==o;)p[y++]=s[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var s=(o-i)*c+1>>>0,l=new Uint8Array(s);i!==o;){for(var h=t[i],f=0,d=s-1;(0!==h||f<n)&&-1!==d;d--,f++)h+=256*l[d]>>>0,l[d]=h%a>>>0,h=h/a>>>0;if(0!==h)throw Error("Non-zero carry");n=f,i++}for(var p=s-n;p!==s&&0===l[p];)p++;for(var y=u.repeat(r);p<s;++p)y+=e.charAt(l[p]);return y},decodeUnsafe:h,decode:function(e){var r=h(e);if(r)return r;throw Error("Non-".concat(t," character"))}}};let eI=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")};class eO{encode(e){if(e instanceof Uint8Array)return"".concat(this.prefix).concat(this.baseEncode(e));throw Error("Unknown type, must be binary type")}constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}}class eT{decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error("Unable to decode multibase string ".concat(JSON.stringify(e),", ").concat(this.name," decoder only supports inputs prefixed with ").concat(this.prefix));return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return eP(this,e)}constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}}class eL{or(e){return eP(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError("Unable to decode multibase string ".concat(JSON.stringify(e),", only inputs prefixed with ").concat(Object.keys(this.decoders)," are supported"))}constructor(e){this.decoders=e}}let eP=(e,t)=>new eL({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class ek{encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new eO(e,t,r),this.decoder=new eT(e,t,n)}}let eN=e=>{let{name:t,prefix:r,encode:n,decode:i}=e;return new ek(t,r,n,i)},eR=e=>{let{prefix:t,name:r,alphabet:n}=e,{encode:i,decode:o}=eB(n,r);return eN({prefix:t,name:r,encode:i,decode:e=>eI(o(e))})},eF=e=>{let{name:t,prefix:r,bitsPerChar:n,alphabet:i}=e;return eN({prefix:r,name:t,encode:e=>((e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o})(e,i,n),decode:e=>((e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError("Non-".concat(n," character"));u=u<<r|o,(a+=r)>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw SyntaxError("Unexpected end of data");return s})(e,i,n,t)})};var eM=Object.freeze({__proto__:null,identity:eN({prefix:"\0",name:"identity",encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)})}),ej=Object.freeze({__proto__:null,base2:eF({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),ez=Object.freeze({__proto__:null,base8:eF({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),eH=Object.freeze({__proto__:null,base10:eR({prefix:"9",name:"base10",alphabet:"0123456789"})}),eW=Object.freeze({__proto__:null,base16:eF({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:eF({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let eK=eF({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),eV=eF({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),eq=eF({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eJ=eF({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),eY=eF({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eG=eF({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),eZ=eF({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5});var eX=Object.freeze({__proto__:null,base32:eK,base32upper:eV,base32pad:eq,base32padupper:eJ,base32hex:eY,base32hexupper:eG,base32hexpad:eZ,base32hexpadupper:eF({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:eF({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),eQ=Object.freeze({__proto__:null,base36:eR({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:eR({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),e$=Object.freeze({__proto__:null,base58btc:eR({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:eR({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let e0=eF({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",bitsPerChar:6}),e1=eF({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6});var e2=Object.freeze({__proto__:null,base64:e0,base64pad:e1,base64url:eF({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:eF({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let e8=Array.from("ððªâð°ðððððððððððððâð»ð¥ð¾ð¿ðâ¤ðð¤£ððððððð
ððð¥ð¥°ðððð¢ð¤ðððªðâºðð¤ððððð¹ð¤¦ððââ¨ð¤·ð±ðð¸ððððððððð¤©ððð¤ðð¯ððð¶ðð¤â£ððððªðð¥ððð©ð¡ð¤ªðð¥³ð¥ð¤¤ððð³âððð´ðð¬ððð·ð»ðââ
ð¥ºððð¤ð¦âð£ððâ¹ððð âððºðð»ððððð¹ð£ð«ðððµð¤ðð´ð¤ð¼ð«â½ð¤âðð¤«ðð®ðð»ðð¶ðð²ð¿ð§¡ðâ¡ððââðð°ð¤¨ð¶ð¤ð¶ð°ðð¢ð¤ðð¨ð¨ð¤¬âððºð¤ððð±ðð¶ð¥´â¶â¡âðð¸â¬ð¨ðð¦ð·ðºâ ð
ððµðð¤²ð¤ ð¤§ððµð
ð§ð¾ððð¤ðð¤¯ð·âð§ð¯ððð¤ððâð´ð£ð¸ððð¥ð¤¢ð
ð¡ð©ðð¸ð»ð¤ð¤®ð¼ð¥µð©ððð¼ðð£ð¥"),e3=e8.reduce((e,t,r)=>(e[r]=t,e),[]),e6=e8.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var e4=Object.freeze({__proto__:null,base256emoji:eN({prefix:"ð",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=e3[t],"")},decode:function(e){let t=[];for(let r of e){let e=e6[r.codePointAt(0)];if(void 0===e)throw Error("Non-base256emoji character: ".concat(r));t.push(e)}return new Uint8Array(t)}})});function e5(e,t,r){t=t||[],r=r||0;for(var n=r;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,e5.bytes=r-n+1,t}var e9={encode:e5,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}};let e7=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e9.encode(e,t,r),t},te=e=>e9.encodingLength(e),tt=(e,t)=>{let r=t.byteLength,n=te(e),i=n+te(r),o=new Uint8Array(i+r);return e7(e,o,0),e7(r,o,n),o.set(t,i),new tr(e,r,t,o)};class tr{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let tn=e=>{let{name:t,code:r,encode:n}=e;return new ti(t,r,n)};class ti{digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tt(this.code,t):t.then(e=>tt(this.code,e))}throw Error("Unknown type, must be binary type")}constructor(e,t,r){this.name=e,this.code=t,this.encode=r}}let to=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var ts=Object.freeze({__proto__:null,sha256:tn({name:"sha2-256",code:18,encode:to("SHA-256")}),sha512:tn({name:"sha2-512",code:19,encode:to("SHA-512")})}),ta=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:eI,digest:e=>tt(0,eI(e))}});new TextEncoder,new TextDecoder;let tu={...eM,...ej,...ez,...eH,...eW,...eX,...eQ,...e$,...e2,...e4};function tl(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...ts,...ta});let tc=tl("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),th=tl("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=eU((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),tf={utf8:tc,"utf-8":tc,hex:tu.base16,latin1:th,ascii:th,binary:th,...tu};function td(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",r=tf[t];if(!r)throw Error('Unsupported encoding "'.concat(t,'"'));return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function tp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",r=tf[t];if(!r)throw Error('Unsupported encoding "'.concat(t,'"'));return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?e_(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode("".concat(r.prefix).concat(e))}function ty(e){return(0,r.safeJsonParse)(td(tp(e,eE),ex))}function tb(e){return td(tp((0,r.safeJsonStringify)(e),ex),eE)}function tg(e){return["did:key","z"+td(eC([tp("K36",eA),e]),eA)].join(":")}function tw(e){let t=e.split("."),r=ty(t[0]),n=ty(t[1]);return{header:r,payload:n,signature:tp(t[2],eE),data:tp(t.slice(0,2).join("."),eS)}}function tm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(32),t=ev.getPublicKey(e);return{secretKey:eC([e,t]),publicKey:t}}async function tD(e,r,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(0,t.fromMiliseconds)(Date.now()),s={alg:"EdDSA",typ:"JWT"},a={iss:tg(i.publicKey),sub:e,aud:r,iat:o,exp:o+n},u=tp([tb((l={header:s,payload:a}).header),tb(l.payload)].join("."),eS);var l,c={header:s,payload:a,signature:ev.sign(u,i.secretKey.slice(0,32))};return[tb(c.header),tb(c.payload),td(c.signature,eE)].join(".")}},867395,360136,566103,308177,683096,e=>{"use strict";function t(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?t(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function n(e,n){n||(n=e.reduce((e,t)=>
1e+t.length,0));let i=r(n),o=0;for(let t of e)i.set(t,o),o+=t.length;return t(i)}e.s([],867395),e.s(["concat",()=>n],360136),e.s(["fromString",()=>eG],566103),e.s(["identity",()=>v],356958);let i=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function h(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===u;)n++,t++;for(var o=(e.length-t)*l+1>>>0,s=new Uint8Array(o);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var h=0,f=o-1;(0!==c||h<i)&&-1!==f;f--,h++)c+=a*s[f]>>>0,s[f]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");i=h,t++}if(" "!==e[t]){for(var d=o-i;d!==o&&0===s[d];)d++;for(var p=new Uint8Array(n+(o-d)),y=n;d!==o;)p[y++]=s[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var s=(o-i)*c+1>>>0,l=new Uint8Array(s);i!==o;){for(var h=t[i],f=0,d=s-1;(0!==h||f<n)&&-1!==d;d--,f++)h+=256*l[d]>>>0,l[d]=h%a>>>0,h=h/a>>>0;if(0!==h)throw Error("Non-zero carry");n=f,i++}for(var p=s-n;p!==s&&0===l[p];)p++;for(var y=u.repeat(r);p<s;++p)y+=e.charAt(l[p]);return y},decodeUnsafe:h,decode:function(e){var r=h(e);if(r)return r;throw Error("Non-".concat(t," character"))}}};e.s(["coerce",()=>l,"empty",()=>o,"equals",()=>u,"fromHex",()=>a,"fromString",()=>h,"isBinary",()=>c,"toHex",()=>s,"toString",()=>f],194055);let o=new Uint8Array(0),s=e=>e.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),a=e=>{let t=e.match(/../g);return t?new Uint8Array(t.map(e=>parseInt(e,16))):o},u=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},l=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},c=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),h=e=>new TextEncoder().encode(e),f=e=>new TextDecoder().decode(e);class d{encode(e){if(e instanceof Uint8Array)return"".concat(this.prefix).concat(this.baseEncode(e));throw Error("Unknown type, must be binary type")}constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}}class p{decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error("Unable to decode multibase string ".concat(JSON.stringify(e),", ").concat(this.name," decoder only supports inputs prefixed with ").concat(this.prefix));return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return b(this,e)}constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}}class y{or(e){return b(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError("Unable to decode multibase string ".concat(JSON.stringify(e),", only inputs prefixed with ").concat(Object.keys(this.decoders)," are supported"))}constructor(e){this.decoders=e}}let b=(e,t)=>new y({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class g{encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new d(e,t,r),this.decoder=new p(e,t,n)}}let w=e=>{let{name:t,prefix:r,encode:n,decode:i}=e;return new g(t,r,n,i)},m=e=>{let{prefix:t,name:r,alphabet:n}=e,{encode:o,decode:s}=i(n,r);return w({prefix:t,name:r,encode:o,decode:e=>l(s(e))})},D=e=>{let{name:t,prefix:r,bitsPerChar:n,alphabet:i}=e;return w({prefix:r,name:t,encode:e=>((e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o}
1)(e,i,n),decode:e=>((e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError("Non-".concat(n," character"));u=u<<r|o,(a+=r)>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw SyntaxError("Unexpected end of data");return s})(e,i,n,t)})},v=w({prefix:"\0",name:"identity",encode:e=>f(e),decode:e=>h(e)});var E=e.i(356958);e.s(["base2",()=>x],446801);let x=D({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var S=e.i(446801);e.s(["base8",()=>A],5590);let A=D({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var _=e.i(5590);e.s(["base10",()=>U],263724);let U=m({prefix:"9",name:"base10",alphabet:"0123456789"});var C=e.i(263724);e.s(["base16",()=>B,"base16upper",()=>I],63208);let B=D({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),I=D({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var O=e.i(63208);e.s(["base32",()=>T,"base32hex",()=>N,"base32hexpad",()=>F,"base32hexpadupper",()=>M,"base32hexupper",()=>R,"base32pad",()=>P,"base32padupper",()=>k,"base32upper",()=>L,"base32z",()=>j],435932);let T=D({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),L=D({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),P=D({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),k=D({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),N=D({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),R=D({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),F=D({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),M=D({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),j=D({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var z=e.i(435932);e.s(["base36",()=>H,"base36upper",()=>W],105842);let H=m({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),W=m({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var K=e.i(105842);e.s(["base58btc",()=>V,"base58flickr",()=>q],920421);let V=m({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),q=m({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var J=e.i(920421);e.s(["base64",()=>Y,"base64pad",()=>G,"base64url",()=>Z,"base64urlpad",()=>X],55834);let Y=D({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),G=D({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Z=D({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),X=D({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Q=e.i(55834);e.s(["base256emoji",()=>er],677295);let $=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),ee=$.reduce((e,t,r)=>(e[r]=t,e),[]),et=$.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),er=w({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>
1e+=ee[t],"")},decode:function(e){let t=[];for(let r of e){let e=et[r.codePointAt(0)];if(void 0===e)throw Error("Non-base256emoji character: ".concat(r));t.push(e)}return new Uint8Array(t)}});var en=e.i(677295);e.s(["sha256",()=>eg,"sha512",()=>ew],131651),e.s(["Hasher",()=>ey,"from",()=>ep],848433),e.s(["Digest",()=>ed,"create",()=>ec,"decode",()=>eh,"equals",()=>ef],266969),e.s(["decode",()=>ea,"encodeTo",()=>eu,"encodingLength",()=>el],866232);function ei(e,t,r){t=t||[];for(var n=r=r||0;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,ei.bytes=r-n+1,t}function eo(e,t){var r,n=0,t=t||0,i=0,o=t,s=e.length;do{if(o>=s)throw eo.bytes=0,RangeError("Could not decode varint");r=e[o++],n+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128)return eo.bytes=o-t,n}let es={encode:ei,decode:eo,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}},ea=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return[es.decode(e,t),es.decode.bytes]},eu=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return es.encode(e,t,r),t},el=e=>es.encodingLength(e),ec=(e,t)=>{let r=t.byteLength,n=el(e),i=n+el(r),o=new Uint8Array(i+r);return eu(e,o,0),eu(r,o,n),o.set(t,i),new ed(e,r,t,o)},eh=e=>{let t=l(e),[r,n]=ea(t),[i,o]=ea(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw Error("Incorrect length");return new ed(r,i,s,t)},ef=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&u(e.bytes,t.bytes);class ed{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ep=e=>{let{name:t,code:r,encode:n}=e;return new ey(t,r,n)};class ey{digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error("Unknown type, must be binary type")}constructor(e,t,r){this.name=e,this.code=t,this.encode=r}}let eb=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),eg=ep({name:"sha2-256",code:18,encode:eb("SHA-256")}),ew=ep({name:"sha2-512",code:19,encode:eb("SHA-512")});var em=e.i(131651);e.s(["identity",()=>eD],389341);let eD={code:0,name:"identity",encode:l,digest:e=>ec(0,l(e))};var ev=e.i(389341);e.s(["code",()=>ex,"decode",()=>eA,"encode",()=>eS,"name",()=>eE],71557);let eE="raw",ex=85,eS=e=>l(e),eA=e=>l(e);e.i(71557),e.s(["code",()=>eB,"decode",()=>eO,"encode",()=>eI,"name",()=>eC],866430);let e_=new TextEncoder,eU=new TextDecoder,eC="json",eB=512,eI=e=>e_.encode(JSON.stringify(e)),eO=e=>JSON.parse(eU.decode(e));e.i(866430);class eT{toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eN)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eR)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eT.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=ec(e,t);return eT.createV1(this.code,r)}case 1:return this;default:throw Error("Can not convert CID version ".concat(this.version," to version 0. This is a bug please report"))}}equals(e){return e&&this.code===e.code&&this.version===e.version&&ef(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eP(t,n,e||V.encoder):ek(t,n,e||T.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(e){return eH(/^0\.0/,eW),!!(e&&(e[eM]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eT)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;
1return new eT(t,r,n,i||eF(t,r,n.bytes))}if(null==e||!0!==e[eM])return null;{let{version:t,multihash:r,code:n}=e,i=eh(r);return eT.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eN)return new eT(e,t,r,r.bytes);throw Error("Version 0 CID must use dag-pb (code: ".concat(eN,") block encoding"));case 1:{let n=eF(e,t,r.bytes);return new eT(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eT.create(0,eN,e)}static createV1(e,t){return eT.create(1,e,t)}static decode(e){let[t,r]=eT.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eT.inspectBytes(e),r=t.size-t.multihashSize,n=l(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new ed(t.multihashCode,t.digestSize,i,n);return[0===t.version?eT.createV0(o):eT.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=ea(e.subarray(t));return t+=n,r},n=r(),i=eN;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError("Invalid CID version ".concat(n));let o=t,s=r(),a=r(),u=t+a;return{version:n,codec:i,multihashCode:s,digestSize:a,multihashSize:u-o,size:u}}static parse(e,t){let[r,n]=eL(e,t),i=eT.decode(n);return i._baseCache.set(r,e),i}constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:ez,byteLength:ez,code:ej,version:ej,multihash:ej,bytes:ej,_baseCache:ez,asCID:ez})}}let eL=(e,t)=>{switch(e[0]){case"Q":{let r=t||V;return[V.prefix,r.decode("".concat(V.prefix).concat(e))]}case V.prefix:{let r=t||V;return[V.prefix,r.decode(e)]}case T.prefix:{let r=t||T;return[T.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eP=(e,t,r)=>{let{prefix:n}=r;if(n!==V.prefix)throw Error("Cannot string encode V0 in ".concat(r.name," encoding"));let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},ek=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eN=112,eR=18,eF=(e,t,r)=>{let n=el(e),i=n+el(t),o=new Uint8Array(i+r.byteLength);return eu(e,o,0),eu(t,o,n),o.set(r,i),o},eM=Symbol.for("@ipld/js-cid/CID"),ej={writable:!1,configurable:!1,enumerable:!0},ez={writable:!1,enumerable:!1,configurable:!1},eH=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eW="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n";e.i(866232),e.i(194055),e.i(848433),e.i(266969);let eK={...E,...S,..._,...C,...O,...z,...K,...J,...Q,...en};function eV(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...em,...ev});let eq=eV("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),eJ=eV("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=r((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),eY={utf8:eq,"utf-8":eq,hex:eK.base16,latin1:eJ,ascii:eJ,binary:eJ,...eK};function eG(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",n=eY[r];if(!n)throw Error('Unsupported encoding "'.concat(r,'"'));return("utf8"===r||"utf-8"===r)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?t(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode("".concat(n.prefix).concat(e))}function eZ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",r=eY[t];if(!r)throw Error('Unsupported encoding "'.concat(t,'"'));return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}e.s(["toString",()=>eZ],308177),e.s(["RELAY_JSONRPC",()=>eX],683096);let eX={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},774897,(e,t,r)=>{function n(e){return(0x100000000+e).toString(16).substring(1)}t.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e)t=new TextEncoder().encode(e);else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,t,r){let i="\n"+e+" = ";for(let o=0;o<t.length;o+=2){if(32===r)i+=n(t[o]).toUpperCase(),i+=" ",i+=n(t[o+1]).toUpperCase();else if(64===r)i+=n(t[o+1]).toUpperCase(),i+=n(t[o]).toUpperCase();else throw Error("Invalid size "+r);o%6==4?i+="\n"+Array(e.length+4).join(" "):o<t.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,r){let n=new Date().getTime(),i=new Uint8Array(t);for(let e=0;e<t;e++)i[e]=e%256;let o=new Date().getTime();console.log("Generated random input in "+(o-n)+"ms"),n=o;for(let o=0;o<r;o++){let r=e(i),o=new Date().getTime(),s=o-n;n=o,console.log("Hashed in "+s+"ms: "+r.substring(0,20)+"..."),console.log(Math.round(t/1048576/(s/1e3)*100)/100+" MB PER SECOND")}}}},582081,(e,t,r)=>{let n=e.r(774897);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>
1=0x100000000&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=0x100000000);let o=e[t+1]+n;i>=0x100000000&&o++,e[t]=i,e[t+1]=o}function s(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,r,n,s,a){let u=h[s],l=h[s+1],f=h[a],d=h[a+1];i(c,e,t),o(c,e,u,l);let p=c[n]^c[e],y=c[n+1]^c[e+1];c[n]=y,c[n+1]=p,i(c,r,n),p=c[t]^c[r],y=c[t+1]^c[r+1],c[t]=p>>>24^y<<8,c[t+1]=y>>>24^p<<8,i(c,e,t),o(c,e,f,d),p=c[n]^c[e],y=c[n+1]^c[e+1],c[n]=p>>>16^y<<16,c[n+1]=y>>>16^p<<16,i(c,r,n),p=c[t]^c[r],y=c[t+1]^c[r+1],c[t]=y>>>31^p<<1,c[t+1]=p>>>31^y<<1}let u=new Uint32Array([0xf3bcc908,0x6a09e667,0x84caa73b,0xbb67ae85,0xfe94f82b,0x3c6ef372,0x5f1d36f1,0xa54ff53a,0xade682d1,0x510e527f,0x2b3e6c1f,0x9b05688c,0xfb41bd6b,0x1f83d9ab,0x137e2179,0x5be0cd19]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),h=new Uint32Array(32);function f(e,t){let r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=u[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/0x100000000,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)h[r]=s(e.b,4*r);for(r=0;r<12;r++)a(0,8,16,24,l[16*r+0],l[16*r+1]),a(2,10,18,26,l[16*r+2],l[16*r+3]),a(4,12,20,28,l[16*r+4],l[16*r+5]),a(6,14,22,30,l[16*r+6],l[16*r+7]),a(0,10,20,30,l[16*r+8],l[16*r+9]),a(2,12,22,24,l[16*r+10],l[16*r+11]),a(4,14,16,26,l[16*r+12],l[16*r+13]),a(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+16]}let d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};d.fill(0),d[0]=e,t&&(d[1]=t.length),d[2]=1,d[3]=1,r&&d.set(r,32),n&&d.set(n,48);for(let e=0;e<16;e++)i.h[e]=u[e]^s(d,4*e);return t&&(y(i,t),i.c=128),i}function y(e,t){for(let r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,f(e,!1),e.c=0),e.b[e.c++]=t[r]}function b(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;f(e,!0);let t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let s=p(r,t,i,o);return y(s,e),b(s)}t.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let s=g(e,t,r,i,o);return n.toHex(s)},blake2bInit:p,blake2bUpdate:y,blake2bFinal:b}},292792,(e,t,r)=>{let n=e.r(774897);function i(e,t,r,n,i,s){u[e]=u[e]+u[t]+i,u[n]=o(u[n]^u[e],16),u[r]=u[r]+u[n],u[t]=o(u[t]^u[r],12),u[e]=u[e]+u[t]+s,u[n]=o(u[n]^u[e],8),u[r]=u[r]+u[n],u[t]=o(u[t]^u[r],7)}function o(e,t){return e>>>t^e<<32-t}
1let s=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),a=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),l=new Uint32Array(16);function c(e,t){let r=0;for(r=0;r<8;r++)u[r]=e.h[r],u[r+8]=s[r];for(u[12]^=e.t,u[13]^=e.t/0x100000000,t&&(u[14]=~u[14]),r=0;r<16;r++){var n,o;l[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,l[a[16*r+0]],l[a[16*r+1]]),i(1,5,9,13,l[a[16*r+2]],l[a[16*r+3]]),i(2,6,10,14,l[a[16*r+4]],l[a[16*r+5]]),i(3,7,11,15,l[a[16*r+6]],l[a[16*r+7]]),i(0,5,10,15,l[a[16*r+8]],l[a[16*r+9]]),i(1,6,11,12,l[a[16*r+10]],l[a[16*r+11]]),i(2,7,8,13,l[a[16*r+12]],l[a[16*r+13]]),i(3,4,9,14,l[a[16*r+14]],l[a[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=u[r]^u[r+8]}function h(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=0x1010000^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,c(e,!1),e.c=0),e.b[e.c++]=t[r]}function d(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;c(e,!0);let t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=h(r,t);return f(i,e),d(i)}t.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:h,blake2sUpdate:f,blake2sFinal:d}},167862,(e,t,r)=>{let n=e.r(582081),i=e.r(292792);t.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},126162,(e,t,r)=>{"use strict";function n(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}t.exports=function(e,t,r){var i=r&&r.stringify||n;if("object"==typeof e&&null!==e){var o=t.length+1;if(1===o)return e;var s=Array(o);s[0]=i(e);for(var a=1;a<o;a++)s[a]=i(t[a]);return s.join(" ")}if("string"!=typeof e)return e;var u=t.length;if(0===u)return e;for(var l="",c=0,h=-1,f=e&&e.length||0,d=0;d<f;){if(37===e.charCodeAt(d)&&d+1<f){switch(h=h>-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(c>=u||null==t[c])break;h<d&&(l+=e.slice(h,d)),l+=Number(t[c]),h=d+2,d++;break;case 105:if(c>=u||null==t[c])break;h<d&&(l+=e.slice(h,d)),l+=Math.floor(Number(t[c])),h=d+2,d++;break;case 79:case 111:case 106:if(c>=u||void 0===t[c])break;h<d&&(l+=e.slice(h,d));var p=typeof t[c];if("string"===p){l+="'"+t[c]+"'",h=d+2,d++;break}if("function"===p){l+=t[c].name||"<anonymous>",h=d+2,d++;break}l+=i(t[c]),h=d+2,d++;break;case 115:if(c>=u)break;h<d&&(l+=e.slice(h,d)),l+=String(t[c]),h=d+2,d++;break;case 37:h<d&&(l+=e.slice(h,d)),l+="%",h=d+2,d++,c--}++c}++d}return -1===h?e:(h<f&&(l+=e.slice(h)),l)}},989781,575237,103616,430760,155729,e=>{"use strict";let t;e.s(["HEARTBEAT_EVENTS",()=>a,"HeartBeat",()=>u],989781);var r=e.i(885136),n=e.i(788162);e.s([],103616),e.s(["IEvents",()=>i],575237);class i{}class o extends i{constructor(e){super()}}let s=n.FIVE_SECONDS,a={pulse:"heartbeat_pulse"};class u extends o{static async init(e){let t=new u(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,n.toMiliseconds)(this.interval))}pulse(){this.events.emit(a.pulse)}constructor(e){super(e),this.events=new r.EventEmitter,this.interval=s,this.interval=(null==e?void 0:e.interval)||s}}e.s(["createStorage",()=>b],430760);var l=e.i(174421),c=e.i(935057);function h(e){for(var t,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];try{return(t=e(...n))&&"function"==typeof t.then?t:Promise.resolve(t)}catch(e){return Promise.reject(e)}}function f(e){if(function(e){let t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return f(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let d="base64:";function p(e){var t;return e&&(null==(t=e.split("?")[0])?void 0:t.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""))||""}function y(e){return(e=p(e))?e+":":""}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={mounts:{"":e.driver||(()=>{let e=new Map;return{name:"memory",getInstance:()=>e,hasItem:t=>e.has(t),getItem(t){var r;return null!=(r=e.get(t))?r:null},getItemRaw(t){var r;return null!=(r=e.get(t))?r:null},setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>[...e.keys()],clear(){e.clear()},dispose(){e.clear()}}})()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}}
1,r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),i=(e,r)=>{if(t.watching)for(let n of(r=p(r),t.watchListeners))n(e,r)},o=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await g(t.mounts[e],i,e)},s=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},a=(e,t,n)=>{let i=new Map,o=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(let n of e){let e="string"==typeof n,i=p(e?n:n.key),s=e?void 0:n.value,a=e||!n.options?t:{...t,...n.options},u=r(i);o(u).items.push({key:i,value:s,relativeKey:u.relativeKey,options:a})}return Promise.all([...i.values()].map(e=>n(e))).then(e=>e.flat())},u={hasItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{relativeKey:n,driver:i}=r(e=p(e));return h(i.hasItem,n,t)},getItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{relativeKey:n,driver:i}=r(e=p(e));return h(i.getItem,n,t).then(e=>(0,l.default)(e))},getItems(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,t,e=>e.driver.getItems?h(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return p(t.join(":"))}(e.base,t.key),value:(0,l.default)(t.value)}))):Promise.all(e.items.map(t=>h(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:(0,l.default)(e)})))))},getItemRaw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{relativeKey:n,driver:i}=r(e=p(e));return i.getItemRaw?h(i.getItemRaw,n,t):h(i.getItem,n,t).then(e=>{var t;return"string"==typeof e&&e.startsWith(d)?(t=e.slice(d.length),globalThis.Buffer?c.Buffer.from(t,"base64"):Uint8Array.from(globalThis.atob(t),e=>e.codePointAt(0))):e})},async setItem(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===t)return u.removeItem(e);let{relativeKey:o,driver:s}=r(e=p(e));s.setItem&&(await h(s.setItem,o,f(t),n),s.watch||i("update",e))},async setItems(e,t){await a(e,t,async e=>{if(e.driver.setItems)return h(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:f(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>h(e.driver.setItem,t.relativeKey,f(t.value),t.options)))})},async setItemRaw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===t)return u.removeItem(e,n);let{relativeKey:o,driver:s}=r(e=p(e));if(s.setItemRaw)await h(s.setItemRaw,o,t,n);else{var a;if(!s.setItem)return;await h(s.setItem,o,"string"==typeof t?t:d+(a=t,globalThis.Buffer?c.Buffer.from(a).toString("base64"):globalThis.btoa(String.fromCodePoint(...a))),n)}s.watch||i("update",e)},async removeItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:n,driver:o}=r(e=p(e));o.removeItem&&(await h(o.removeItem,n,t),(t.removeMeta||t.removeMata)&&await h(o.removeItem,n+"$",t),o.watch||i("remove",e))},async getMeta(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:n,driver:i}=r(e=p(e)),o=Object.create(null);if(i.getMeta&&Object.assign(o,await h(i.getMeta,n,t)),!t.nativeOnly){let e=await h(i.getItem,n+"$",t).then(e=>(0,l.default)(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(o,e))}return o},setMeta(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setItem(e+"$",t,r)},removeMeta(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.removeItem(e+"$",t)},async getKeys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n(e=y(e),!0),i=[],o=[],s=!0;for(let e of r){var a;for(let r of((null==(a=e.driver.flags)?void 0:a.maxDepth)||(s=!1),await h(e.driver.getKeys,e.relativeBase,t))){let t=e.mountpoint+p(r);i.some(e=>
1t.startsWith(e))||o.push(t)}i=[e.mountpoint,...i.filter(t=>!t.startsWith(e.mountpoint))]}let u=void 0!==t.maxDepth&&!s;return o.filter(r=>{var n;return(!u||function(e,t){if(void 0===t)return!0;let r=0,n=e.indexOf(":");for(;n>-1;)r++,n=e.indexOf(":",n+1);return r<=t}(r,t.maxDepth))&&((n=e)?r.startsWith(n)&&"$"!==r[r.length-1]:"$"!==r[r.length-1])})},async clear(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=y(e),await Promise.all(n(e,!1).map(async e=>e.driver.clear?h(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>w(e)))},watch:async e=>(await o(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await s()}),async unwatch(){t.watchListeners=[],await s()},mount(e,r){if((e=y(e))&&t.mounts[e])throw Error("already mounted at ".concat(e));return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(g(r,i,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),u},async unmount(e){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if((e=y(e))&&t.mounts[e]){if(t.watching&&e in t.unwatch){var n,i;null==(n=(i=t.unwatch)[e])||n.call(i),delete t.unwatch[e]}r&&await w(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e]}},getMount(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=r(e=p(e)+":");return{driver:t.driver,base:t.base}},getMounts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(e=p(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))},keys:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.getKeys(e,t)},get:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.getItem(e,t)},set:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u.setItem(e,t,r)},has:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.hasItem(e,t)},del:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.removeItem(e,t)},remove:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.removeItem(e,t)}};return u}function g(e,t,r){return e.watch?e.watch((e,n)=>t(e,r+n)):()=>{}}async function w(e){"function"==typeof e.dispose&&await h(e.dispose)}function m(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function D(e,t){let r;return(n,i)=>(()=>{if(r)return r;let n=indexedDB.open(e);return n.onupgradeneeded=()=>n.result.createObjectStore(t),(r=m(n)).then(e=>{e.onclose=()=>r=void 0},()=>{}),r})().then(e=>i(e.transaction(t,n).objectStore(t)))}function v(){return t||(t=D("keyval-store","keyval")),t}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v();return t("readonly",t=>m(t.get(e)))}function x(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v();return r("readwrite",r=>(r.put(t,e),m(r.transaction)))}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v();return t("readwrite",t=>(t.delete(e),m(t.transaction)))}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v();return e("readwrite",e=>(e.clear(),m(e.transaction)))}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v();return e("readonly",e=>{var t;if(e.getAllKeys)return m(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},m(e.transaction)).then(()=>r)})}e.s(["clear",()=>A,"createStore",()=>D,"del",()=>S,"get",()=>E,"keys",()=>_,"set",()=>x],155729)},598375,e=>{"use strict";e.s(["default",()=>f]);var t=e.i(430760),r=e.i(155729),n=e.i(124027),i=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.base&&t.base.length>0?"".concat(t.base,":"):"";return t.dbName&&t.storeName&&(e=(0,r.createStore)(t.dbName,t.storeName)),{name:"idb-keyval",options:t,hasItem:async t=>!(typeof await (0,r.get)(n+t,e)>"u"),async getItem(t){var i;return null!=(i=await (0,r.get)(n+t,e))?i:null},setItem:(t,i)=>(0,r.set)(n+t,i,e),removeItem:t=>(0,r.del)(n+t,e),getKeys:()=>(0,r.keys)(e),clear:()=>(0,r.clear)(e)}};class o{async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,(0,n.safeJsonStringify)(t))}async removeItem(e){await this.indexedDb.removeItem(e)}constructor(){this.indexedDb=(0,t.createStorage)({driver:i({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}}var s="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,a={exports:{}};function u(e){var t;return[e[0],(0,n.safeJsonParse)(null!=(t=e[1])?t:"")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof s&&s.localStorage?a.exports=s.localStorage:"u">typeof window&&window.localStorage?a.exports=window.localStorage:a.exports=new e}();class l{async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(u)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return(0,n.safeJsonParse)(t)}async setItem(e,t){this.localStorage.setItem(e,(0,n.safeJsonStringify)(t))}async removeItem(e){this.localStorage.removeItem(e)}constructor(){this.localStorage=a.exports}}let c=async(e,t,r)=>{let n="wc_storage_version",i=await t.getItem(n);if(i&&i>=1)return void r(t);let o=await e.getKeys();if(!o.length)return void r(t);let s=[];for(;o.length;){let r=o.shift();if(!r)continue;let n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){let n=await e.getItem(r);await t.setItem(r,n),s.push(r)}}await t.setItem(n,1),r(t),h(e,s)},h=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class f{async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new l;this.storage=e;try{let t=new o;c(e,t,this.setInitialized)}catch(e){this.initialized=!0}}}},329843,(e,t,r)=>{"use strict";function n(){return(null===e.g||void 0===e.g?void 0:e.g.crypto)||(null===e.g||void 0===e.g?void 0:e.g.msCrypto)||{}}function i(){let e=n();return e.subtle||e.webkitSubtle}
1Object.defineProperty(r,"__esModule",{value:!0}),r.isBrowserCryptoAvailable=r.getSubtleCrypto=r.getBrowerCrypto=void 0,r.getBrowerCrypto=n,r.getSubtleCrypto=i,r.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},984582,(e,t,r)=>{"use strict";var n=e.i(69329);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==n.default&&void 0!==n.default.versions&&void 0!==n.default.versions.node}Object.defineProperty(r,"__esModule",{value:!0}),r.isBrowser=r.isNode=r.isReactNative=void 0,r.isReactNative=i,r.isNode=o,r.isBrowser=function(){return!i()&&!o()}},687526,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(3910);n.__exportStar(e.r(329843),r),n.__exportStar(e.r(984582),r)},47431,(e,t,r)=>{"use strict";t.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},714443,(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||e.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(t){!function(r){var n=void 0!==t&&t||"undefined"!=typeof self&&self||e.g||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function f(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=f(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(d);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,o=h(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=f(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},i.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=u(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function g(e,t){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,i,o=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(i=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(i)>-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function w(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function m(e,t){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var D=[301,302,303,307,308];m.redirect=function(e,t){if(-1===D.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},r.DOMException=n.DOMException;try{new r.DOMException}catch(e){r.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function v(e,t){return new Promise(function(o,s){var l=new g(e,t);if(l.signal&&l.signal.aborted)return s(new r.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function f(){h.abort()}if(h.onload=function(){var e,t,r={statusText:h.statusText,headers:(e=h.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===l.url.indexOf("file://")&&(h.status<200||h.status>599)?r.status=200:r.status=h.status,r.url="responseURL"in h?h.responseURL:r.headers.get("X-Request-URL");var n="response"in h?h.response:h.responseText;setTimeout(function(){o(new m(n,r))},0)},h.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},h.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},h.onabort=function(){setTimeout(function(){s(new r.DOMException("Aborted","AbortError"))},0)},h.open(l.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?h.withCredentials=!0:"omit"===l.credentials&&(h.withCredentials=!1),"responseType"in h&&(i.blob?h.responseType="blob":i.arrayBuffer&&(h.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof c||n.Headers&&t.headers instanceof n.Headers)){var d=[];
1Object.getOwnPropertyNames(t.headers).forEach(function(e){d.push(a(e)),h.setRequestHeader(e,u(t.headers[e]))}),l.headers.forEach(function(e,t){-1===d.indexOf(t)&&h.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){h.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",f),h.onreadystatechange=function(){4===h.readyState&&l.signal.removeEventListener("abort",f)}),h.send(void 0===l._bodyInit?null:l._bodyInit)})}v.polyfill=!0,n.fetch||(n.fetch=v,n.Headers=c,n.Request=g,n.Response=m),r.Headers=c,r.Request=g,r.Response=m,r.fetch=v,Object.defineProperty(r,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(r=o.fetch).default=o.fetch,r.fetch=o.fetch,r.Headers=o.Headers,r.Request=o.Request,r.Response=o.Response,t.exports=r},892964,474523,920190,375315,921954,269150,e=>{"use strict";e.s(["JsonRpcProvider",()=>A],892964);var t=e.i(885136);e.s([],375315);let r="INTERNAL_ERROR",n="SERVER_ERROR",i=[-32700,-32600,-32601,-32602,-32603],o={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[r]:{code:-32603,message:"Internal error"},[n]:{code:-32e3,message:"Server error"}};function s(e){return Object.keys(o).includes(e)?o[e]:o[n]}function a(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error("Unavailable ".concat(r," RPC url at ").concat(t)):e}var u=e.i(687526);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;
1return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;return BigInt(l(e))}function h(e,t,r){return{id:r||l(),jsonrpc:"2.0",method:e,params:t}}function f(e,t){return{id:e,jsonrpc:"2.0",result:t}}function d(e,t,a){var u,l,c;return{id:e,jsonrpc:"2.0",error:(u=t,l=a,void 0===u?s(r):("string"==typeof u&&(u=Object.assign(Object.assign({},s(n)),{message:u})),void 0!==l&&(u.data=l),c=u.code,i.includes(c)&&(u=function(e){let t=Object.values(o).find(t=>t.code===e);return t||o[n]}(u.code)),u))}}u.isNode,e.s(["formatJsonRpcError",()=>d,"formatJsonRpcRequest",()=>h,"formatJsonRpcResult",()=>f,"getBigIntRpcId",()=>c,"payloadId",()=>l],474523);class p{}class y extends p{constructor(){super()}}class b extends y{constructor(e){super()}}function g(e,t){let r=function(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function w(e){return g(e,"^https?:")}function m(e){return g(e,"^wss?:")}function D(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function v(e){return D(e)&&"method"in e}function E(e){return D(e)&&(x(e)||S(e))}function x(e){return"result"in e}function S(e){return"error"in e}e.s(["isJsonRpcError",()=>S,"isJsonRpcRequest",()=>v,"isJsonRpcResponse",()=>E,"isJsonRpcResult",()=>x],920190);class A extends b{async connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(h(e.method,e.params||[],e.id||c().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on("".concat(e.id),e=>{S(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;return e}onPayload(e){this.events.emit("payload",e),E(e)?this.events.emit("".concat(e.id),e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error("WebSocket connection closed abnormally with code: ".concat(e.code," ").concat(e.reason?"(".concat(e.reason,")"):""))),this.events.emit("disconnect")}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}constructor(e){super(e),this.events=new t.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}}e.s(["default",()=>B],921954);var _=e.i(124027);let U=e=>e.split("?")[0],C="u">typeof WebSocket?WebSocket:"u">typeof e.g.WebSocket?e.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:e.r(47431);class B{get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u")return void t(Error("Connection already closed"));this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,_.safeJsonStringify)(e))}catch(t){this.onError(e.id,t)}}register(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!m(t))throw Error("Provided URL is not compatible with WebSocket connection: ".concat(t));if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>
1{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{let i=(0,u.isReactNative)()?void 0:{rejectUnauthorized:!RegExp("wss?://localhost(:d{2,5})?").test(t)},o=new C(t,[],i);"u">typeof WebSocket||"u">typeof e.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket?o.onerror=e=>{n(this.emitError(e.error))}:o.on("error",e=>{n(this.emitError(e))}),o.onopen=()=>{this.onOpen(o),r(o)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,_.safeJsonParse)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=d(e,r.message||r.toString());this.events.emit("payload",n)}parseError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return a(e,U(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error((null==e?void 0:e.message)||"WebSocket connection failed for host: ".concat(U(this.url))));return this.events.emit("register_error",t),t}constructor(e){if(this.url=e,this.events=new t.EventEmitter,this.registering=!1,!m(e))throw Error("Provided URL is not compatible with WebSocket connection: ".concat(e));this.url=e}}e.s(["HttpConnection",()=>z,"default",()=>z],269150);var I=e.i(714443),O=Object.defineProperty,T=Object.defineProperties,L=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,R=(e,t,r)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))k.call(t,r)&&R(e,r,t[r]);if(P)for(var r of P(t))N.call(t,r)&&R(e,r,t[r]);return e},M=(e,t)=>T(e,L(t));let j={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class z{get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;await this.register(e)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=(0,_.safeJsonStringify)(e),r=await (await (0,I.default)(this.url,M(F({},j),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!w(e))throw Error("Provided URL is not compatible with HTTP connection: ".concat(e));if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=(0,_.safeJsonStringify)({id:1,jsonrpc:"2.0",method:"test",params:[]});await (0,I.default)(e,M(F({},j),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,_.safeJsonParse)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=d(e,r.message||r.toString());this.events.emit("payload",n)}parseError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return a(e,t,"HTTP")}
1resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}constructor(e,r=!1){if(this.url=e,this.disableProviderPing=r,this.events=new t.EventEmitter,this.isAvailable=!1,this.registering=!1,!w(e))throw Error("Provided URL is not compatible with HTTP connection: ".concat(e));this.url=e,this.disableProviderPing=r}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.