diff --git a/angular-bare-bones-demo/dist/819.f041a64911f370c9.js b/angular-bare-bones-demo/dist/819.f041a64911f370c9.js new file mode 100644 index 000000000..e1fa6b1b7 --- /dev/null +++ b/angular-bare-bones-demo/dist/819.f041a64911f370c9.js @@ -0,0 +1 @@ +(self.webpackChunkAngular_bare_bones_demo=self.webpackChunkAngular_bare_bones_demo||[]).push([[819],{9819:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{WC_V2_DEFAULT_CHAINS:()=>k0,getWalletConnectV2ProviderInstance:()=>G0});var B={};L.r(B),L.d(B,{identity:()=>Je});var ae={};L.r(ae),L.d(ae,{base2:()=>ft});var _e={};L.r(_e),L.d(_e,{base8:()=>ht});var fe={};L.r(fe),L.d(fe,{base10:()=>mt});var Z={};L.r(Z),L.d(Z,{base16:()=>bt,base16upper:()=>gt});var oe={};L.r(oe),L.d(oe,{base36:()=>Dt,base36upper:()=>Jr});var K={};L.r(K),L.d(K,{base64:()=>cn,base64pad:()=>An,base64url:()=>Wn,base64urlpad:()=>Cn});var $={};L.r($),L.d($,{base256emoji:()=>sr});var M={};L.r(M),L.d(M,{sha256:()=>or,sha512:()=>ar});var F={};L.r(F),L.d(F,{identity:()=>ur});var ue={};L.r(ue),L.d(ue,{code:()=>ca,decode:()=>fa,encode:()=>ln,name:()=>cr});var he={};function ie(a,r,t,s,u,f,g){try{var I=a[f](g),X=I.value}catch(Y){return void t(Y)}I.done?r(X):Promise.resolve(X).then(s,u)}function S(a){return function(){var r=this,t=arguments;return new Promise(function(s,u){var f=a.apply(r,t);function g(X){ie(f,s,u,g,I,"next",X)}function I(X){ie(f,s,u,g,I,"throw",X)}g(void 0)})}}L.r(he),L.d(he,{code:()=>pa,decode:()=>ga,encode:()=>Tn,name:()=>da});var me=L(2272),De=L.n(me),Ee=L(83169),ee=L(40851),j=L(71268),z=L(43795);class R extends z.q{constructor(r){super(),this.opts=r,this.protocol="wc",this.version=2}}class T extends z.q{constructor(r,t){super(),this.core=r,this.logger=t,this.records=new Map}}class l extends z.q{constructor(r,t){super(),this.relayer=r,this.logger=t}}class v extends z.q{constructor(r){super()}}class b extends z.q{constructor(r,t){super(),this.relayer=r,this.logger=t}}class D extends z.q{constructor(r,t){super(),this.core=r,this.logger=t}}function xe(a){if("string"!=typeof a)throw new Error("Cannot safe json parse value of type "+typeof a);try{return(a=>{const t=a.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');return JSON.parse(t,(s,u)=>"string"==typeof u&&u.match(/^\d+n$/)?BigInt(u.substring(0,u.length-1)):u)})(a)}catch{return a}}function Te(a){return"string"==typeof a?a:(a=>JSON.stringify(a,(r,t)=>"bigint"==typeof t?t.toString()+"n":t))(a)||""}var Le=L(52877),Me=L(7841),G=L(40145);const k="base64url",wt="did",ut="key",vt="base58btc";function nt(a){return null!=globalThis.Buffer?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):a}function tt(a=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?nt(globalThis.Buffer.allocUnsafe(a)):new Uint8Array(a)}function Ge(a,r){r||(r=a.reduce((u,f)=>u+f.length,0));const t=tt(r);let s=0;for(const u of a)t.set(u,s),s+=u.length;return nt(t)}var $e=L(29161),We=L(91744);const Je=(0,$e.Dp)({prefix:"\0",name:"identity",encode:a=>(0,We.toString)(a),decode:a=>(0,We.fromString)(a)}),ft=(0,$e.ET)({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),ht=(0,$e.ET)({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),mt=(0,$e.kU)({prefix:"9",name:"base10",alphabet:"0123456789"}),bt=(0,$e.ET)({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gt=(0,$e.ET)({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Et=L(79515);const Dt=(0,$e.kU)({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Jr=(0,$e.kU)({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var wr=L(59942);const cn=(0,$e.ET)({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),An=(0,$e.ET)({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Wn=(0,$e.ET)({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Cn=(0,$e.ET)({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),fn=Array.from("\u{1f680}\u{1fa90}\u2604\u{1f6f0}\u{1f30c}\u{1f311}\u{1f312}\u{1f313}\u{1f314}\u{1f315}\u{1f316}\u{1f317}\u{1f318}\u{1f30d}\u{1f30f}\u{1f30e}\u{1f409}\u2600\u{1f4bb}\u{1f5a5}\u{1f4be}\u{1f4bf}\u{1f602}\u2764\u{1f60d}\u{1f923}\u{1f60a}\u{1f64f}\u{1f495}\u{1f62d}\u{1f618}\u{1f44d}\u{1f605}\u{1f44f}\u{1f601}\u{1f525}\u{1f970}\u{1f494}\u{1f496}\u{1f499}\u{1f622}\u{1f914}\u{1f606}\u{1f644}\u{1f4aa}\u{1f609}\u263a\u{1f44c}\u{1f917}\u{1f49c}\u{1f614}\u{1f60e}\u{1f607}\u{1f339}\u{1f926}\u{1f389}\u{1f49e}\u270c\u2728\u{1f937}\u{1f631}\u{1f60c}\u{1f338}\u{1f64c}\u{1f60b}\u{1f497}\u{1f49a}\u{1f60f}\u{1f49b}\u{1f642}\u{1f493}\u{1f929}\u{1f604}\u{1f600}\u{1f5a4}\u{1f603}\u{1f4af}\u{1f648}\u{1f447}\u{1f3b6}\u{1f612}\u{1f92d}\u2763\u{1f61c}\u{1f48b}\u{1f440}\u{1f62a}\u{1f611}\u{1f4a5}\u{1f64b}\u{1f61e}\u{1f629}\u{1f621}\u{1f92a}\u{1f44a}\u{1f973}\u{1f625}\u{1f924}\u{1f449}\u{1f483}\u{1f633}\u270b\u{1f61a}\u{1f61d}\u{1f634}\u{1f31f}\u{1f62c}\u{1f643}\u{1f340}\u{1f337}\u{1f63b}\u{1f613}\u2b50\u2705\u{1f97a}\u{1f308}\u{1f608}\u{1f918}\u{1f4a6}\u2714\u{1f623}\u{1f3c3}\u{1f490}\u2639\u{1f38a}\u{1f498}\u{1f620}\u261d\u{1f615}\u{1f33a}\u{1f382}\u{1f33b}\u{1f610}\u{1f595}\u{1f49d}\u{1f64a}\u{1f639}\u{1f5e3}\u{1f4ab}\u{1f480}\u{1f451}\u{1f3b5}\u{1f91e}\u{1f61b}\u{1f534}\u{1f624}\u{1f33c}\u{1f62b}\u26bd\u{1f919}\u2615\u{1f3c6}\u{1f92b}\u{1f448}\u{1f62e}\u{1f646}\u{1f37b}\u{1f343}\u{1f436}\u{1f481}\u{1f632}\u{1f33f}\u{1f9e1}\u{1f381}\u26a1\u{1f31e}\u{1f388}\u274c\u270a\u{1f44b}\u{1f630}\u{1f928}\u{1f636}\u{1f91d}\u{1f6b6}\u{1f4b0}\u{1f353}\u{1f4a2}\u{1f91f}\u{1f641}\u{1f6a8}\u{1f4a8}\u{1f92c}\u2708\u{1f380}\u{1f37a}\u{1f913}\u{1f619}\u{1f49f}\u{1f331}\u{1f616}\u{1f476}\u{1f974}\u25b6\u27a1\u2753\u{1f48e}\u{1f4b8}\u2b07\u{1f628}\u{1f31a}\u{1f98b}\u{1f637}\u{1f57a}\u26a0\u{1f645}\u{1f61f}\u{1f635}\u{1f44e}\u{1f932}\u{1f920}\u{1f927}\u{1f4cc}\u{1f535}\u{1f485}\u{1f9d0}\u{1f43e}\u{1f352}\u{1f617}\u{1f911}\u{1f30a}\u{1f92f}\u{1f437}\u260e\u{1f4a7}\u{1f62f}\u{1f486}\u{1f446}\u{1f3a4}\u{1f647}\u{1f351}\u2744\u{1f334}\u{1f4a3}\u{1f438}\u{1f48c}\u{1f4cd}\u{1f940}\u{1f922}\u{1f445}\u{1f4a1}\u{1f4a9}\u{1f450}\u{1f4f8}\u{1f47b}\u{1f910}\u{1f92e}\u{1f3bc}\u{1f975}\u{1f6a9}\u{1f34e}\u{1f34a}\u{1f47c}\u{1f48d}\u{1f4e3}\u{1f942}"),qt=fn.reduce((a,r,t)=>(a[t]=r,a),[]),Wt=fn.reduce((a,r,t)=>(a[r.codePointAt(0)]=t,a),[]),sr=(0,$e.Dp)({prefix:"\u{1f680}",name:"base256emoji",encode:function kt(a){return a.reduce((r,t)=>r+qt[t],"")},decode:function $t(a){const r=[];for(const t of a){const s=Wt[t.codePointAt(0)];if(void 0===s)throw new Error(`Non-base256emoji character: ${t}`);r.push(s)}return new Uint8Array(r)}});var Xt=L(53907);const Qt=a=>function(){var r=S(function*(t){return new Uint8Array(yield crypto.subtle.digest(a,t))});return function(t){return r.apply(this,arguments)}}(),or=(0,Xt.from)({name:"sha2-256",code:18,encode:Qt("SHA-256")}),ar=(0,Xt.from)({name:"sha2-512",code:19,encode:Qt("SHA-512")});var Zt=L(22834);const er=We.coerce,ur={code:0,name:"identity",encode:er,digest:a=>Zt.create(0,er(a))},cr="raw",ca=85,ln=a=>(0,We.coerce)(a),fa=a=>(0,We.coerce)(a),la=new TextEncoder,ha=new TextDecoder,da="json",pa=512,Tn=a=>la.encode(JSON.stringify(a)),ga=a=>JSON.parse(ha.decode(a));L(8422);const $s={...B,...ae,..._e,...fe,...Z,...Et,...oe,...wr,...K,...$};function fi(a,r,t,s){return{name:a,prefix:r,encoder:{name:a,prefix:r,encode:t},decoder:{decode:s}}}const zs=fi("utf8","u",a=>"u"+new TextDecoder("utf8").decode(a),a=>(new TextEncoder).encode(a.substring(1))),ts=fi("ascii","a",a=>{let r="a";for(let t=0;t{const r=tt((a=a.substring(1)).length);for(let t=0;t"u")throw new Error("missing sender public key");if(typeof a?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:r,senderPublicKey:a?.senderPublicKey,receiverPublicKey:a?.receiverPublicKey}}function Uc(a){return 1===a.type&&"string"==typeof a.senderPublicKey&&"string"==typeof a.receiverPublicKey}var rp=Object.defineProperty,Mc=Object.getOwnPropertySymbols,np=Object.prototype.hasOwnProperty,ip=Object.prototype.propertyIsEnumerable,Bc=(a,r,t)=>r in a?rp(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,$c=(a,r)=>{for(var t in r||(r={}))np.call(r,t)&&Bc(a,t,r[t]);if(Mc)for(var t of Mc(r))ip.call(r,t)&&Bc(a,t,r[t]);return a};const ap="js";function Fa(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Hc(){return!(0,Ri.getDocument)()&&!!(0,Ri.getNavigator)()&&"ReactNative"===navigator.product}function ja(){return!Fa()&&!!(0,Ri.getNavigator)()}function to(){return Hc()?"react-native":Fa()?"node":ja()?"browser":"unknown"}function hp(a,r,t){const s=function fp(){if("react-native"===to()&&typeof global<"u"&&typeof(null==global?void 0:global.Platform)<"u"){const{OS:t,Version:s}=global.Platform;return[t,s].join("-")}const a=function ss(a){return a?os(a):typeof document>"u"&&typeof navigator<"u"&&"ReactNative"===navigator.product?new Sa:typeof navigator<"u"?os(navigator.userAgent):function di(){return typeof process<"u"&&process.version?new Ea(process.version.slice(1)):null}()}();if(null===a)return"unknown";const r=a.os?a.os.replace(" ","").toLowerCase():"unknown";return"browser"===a.type?[r,a.name,a.version].join("-"):[r,a.version].join("-")}(),u=function lp(){var a;const r=to();return"browser"===r?[r,(null==(a=(0,Ri.getLocation)())?void 0:a.host)||"unknown"].join(":"):r}();return[[a,r].join("-"),[ap,t].join("-"),s,u].join("/")}function gi(a,r){return a.filter(t=>r.includes(t)).length===a.length}function Vc(a){return Object.fromEntries(a.entries())}function Kc(a){return new Map(Object.entries(a))}function Li(a=G.FIVE_MINUTES,r){const t=(0,G.toMiliseconds)(a||G.FIVE_MINUTES);let s,u,f;return{resolve:g=>{f&&s&&(clearTimeout(f),s(g))},reject:g=>{f&&u&&(clearTimeout(f),u(g))},done:()=>new Promise((g,I)=>{f=setTimeout(()=>{I(new Error(r))},t),s=g,u=I})}}function ro(a,r,t){return new Promise(function(){var s=S(function*(u,f){const g=setTimeout(()=>f(new Error(t)),r);try{u(yield a)}catch(I){f(I)}clearTimeout(g)});return function(u,f){return s.apply(this,arguments)}}())}function qc(a,r){if("string"==typeof r&&r.startsWith(`${a}:`))return r;if("topic"===a.toLowerCase()){if("string"!=typeof r)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${r}`}if("id"===a.toLowerCase()){if("number"!=typeof r)throw new Error('Value must be "number" for expirer target type: id');return`id:${r}`}throw new Error(`Unknown expirer target type: ${a}`)}function Wc(a){const[r,t]=a.split(":"),s={id:void 0,topic:void 0};if("topic"===r&&"string"==typeof t)s.topic=t;else{if("id"!==r||!Number.isInteger(Number(t)))throw new Error(`Invalid target, expected id:number or topic:string, got ${r}:${t}`);s.id=Number(t)}return s}function pn(a,r){return(0,G.fromMiliseconds)((r||Date.now())+(0,G.toMiliseconds)(a))}function Jn(a){return Date.now()>=(0,G.toMiliseconds)(a)}function fr(a,r){return`${a}${r?`:${r}`:""}`}function En(a=[],r=[]){return[...new Set([...a,...r])]}function La(){return(La=S(function*({id:a,topic:r,wcDeepLink:t}){try{if(!t)return;let u=("string"==typeof t?JSON.parse(t):t)?.href;if("string"!=typeof u)return;u.endsWith("/")&&(u=u.slice(0,-1));const f=`${u}/wc?requestId=${a}&sessionTopic=${r}`,g=to();"browser"===g?f.startsWith("https://")?window.open(f,"_blank","noreferrer noopener"):window.open(f,"_self","noreferrer noopener"):"react-native"===g&&typeof(null==global?void 0:global.Linking)<"u"&&(yield global.Linking.openURL(f))}catch(s){console.error(s)}})).apply(this,arguments)}function Ua(a){return a?.relay||{protocol:"irn"}}function no(a){const r=re[a];if(typeof r>"u")throw new Error(`Relay Protocol not supported: ${a}`);return r}var wp=Object.defineProperty,kc=Object.getOwnPropertySymbols,Ep=Object.prototype.hasOwnProperty,Dp=Object.prototype.propertyIsEnumerable,Gc=(a,r,t)=>r in a?wp(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t;function Sp(a,r="-"){const t={},s="relay"+r;return Object.keys(a).forEach(u=>{if(u.startsWith(s)){const f=u.replace(s,"");t[f]=a[u]}}),t}function Ip(a){return a.startsWith("//")?a.substring(2):a}function Ui(a){const r=[];return a.forEach(t=>{const[s,u]=t.split(":");r.push(`${s}:${u}`)}),r}function io(a){return a.includes(":")}function cs(a){return io(a)?a.split(":")[0]:a}const zp={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Hp={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ne(a,r){const{message:t,code:s}=Hp[a];return{message:r?`${t} ${r}`:t,code:s}}function lr(a,r){const{message:t,code:s}=zp[a];return{message:r?`${t} ${r}`:t,code:s}}function _i(a,r){return!!Array.isArray(a)&&(!(typeof r<"u"&&a.length)||a.every(r))}function yi(a){return Object.getPrototypeOf(a)===Object.prototype&&Object.keys(a).length}function Cr(a){return typeof a>"u"}function vr(a,r){return!(!r||!Cr(a))||"string"==typeof a&&!!a.trim().length}function Ma(a,r){return!(!r||!Cr(a))||"number"==typeof a&&!isNaN(a)}function so(a){return!(!vr(a,!1)||!a.includes(":"))&&2===a.split(":").length}function Qc(a){let r=!0;return _i(a)?a.length&&(r=a.every(t=>vr(t,!1))):r=!1,r}function Zc(a,r){let t=null;return Object.values(a).forEach(s=>{if(t)return;const u=function Zp(a,r){let t=null;return Qc(a?.methods)?Qc(a?.events)||(t=lr("UNSUPPORTED_EVENTS",`${r}, events should be an array of strings or empty array for no events`)):t=lr("UNSUPPORTED_METHODS",`${r}, methods should be an array of strings or empty array for no methods`),t}(s,`${r}, namespace`);u&&(t=u)}),t}function oo(a,r){let t=null;if(a&&yi(a)){const s=Zc(a,r);s&&(t=s);const u=function Qp(a,r){let t=null;return Object.values(a).forEach(s=>{if(t)return;const u=function Xp(a,r){let t=null;return _i(a)?a.forEach(s=>{t||function Kp(a){if(vr(a,!1)&&a.includes(":")){const r=a.split(":");if(3===r.length){const t=r[0]+":"+r[1];return!!r[2]&&so(t)}}return!1}(s)||(t=lr("UNSUPPORTED_ACCOUNTS",`${r}, account ${s} should be a string and conform to "namespace:chainId:address" format`))}):t=lr("UNSUPPORTED_ACCOUNTS",`${r}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}(s?.accounts,`${r} namespace`);u&&(t=u)}),t}(a,r);u&&(t=u)}else t=Ne("MISSING_OR_INVALID",`${r}, namespaces should be an object with data`);return t}function ef(a){return vr(a.protocol,!0)}function jr(a){return typeof a<"u"&&null!==typeof a}function tf(a,r){return!(!so(r)||!function Up(a){const r=[];return Object.values(a).forEach(t=>{r.push(...Ui(t.accounts))}),r}(a).includes(r))}function Ba(a,r,t){let s=null;const u=function cg(a){const r={};return Object.keys(a).forEach(t=>{var s;t.includes(":")?r[t]=a[t]:null==(s=a[t].chains)||s.forEach(u=>{r[u]={methods:a[t].methods,events:a[t].events}})}),r}(a),f=function fg(a){const r={};return Object.keys(a).forEach(t=>{t.includes(":")?r[t]=a[t]:Ui(a[t].accounts)?.forEach(u=>{r[u]={accounts:a[t].accounts.filter(f=>f.includes(`${u}:`)),methods:a[t].methods,events:a[t].events}})}),r}(r),g=Object.keys(u),I=Object.keys(f),X=rf(Object.keys(a)),Y=rf(Object.keys(r)),de=X.filter(Oe=>!Y.includes(Oe));return de.length&&(s=Ne("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces.\n Required: ${de.toString()}\n Received: ${Object.keys(r).toString()}`)),gi(g,I)||(s=Ne("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces.\n Required: ${g.toString()}\n Approved: ${I.toString()}`)),Object.keys(r).forEach(Oe=>{if(!Oe.includes(":")||s)return;const He=Ui(r[Oe].accounts);He.includes(Oe)||(s=Ne("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${Oe}\n Required: ${Oe}\n Approved: ${He.toString()}`))}),g.forEach(Oe=>{s||(gi(u[Oe].methods,f[Oe].methods)?gi(u[Oe].events,f[Oe].events)||(s=Ne("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${Oe}`)):s=Ne("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${Oe}`))}),s}function rf(a){return[...new Set(a.map(r=>r.includes(":")?r.split(":")[0]:r))]}const nf="INTERNAL_ERROR",$a="SERVER_ERROR",_g=[-32700,-32600,-32601,-32602,-32603],fs={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"},[nf]:{code:-32603,message:"Internal error"},[$a]:{code:-32e3,message:"Server error"}},sf=$a;function af(a){return Object.keys(fs).includes(a)?fs[a]:fs[sf]}function cf(a,r,t){return a.message.includes("getaddrinfo ENOTFOUND")||a.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${r}`):a}var vg=L(43841);function ff(a=3){return Date.now()*Math.pow(10,a)+Math.floor(Math.random()*Math.pow(10,a))}function za(a=6){return BigInt(ff(a))}function ao(a,r,t){return{id:t||ff(),jsonrpc:"2.0",method:a,params:r}}function Ha(a,r){return{id:a,jsonrpc:"2.0",result:r}}function uo(a,r,t){return{id:a,jsonrpc:"2.0",error:mg(r,t)}}function mg(a,r){return typeof a>"u"?af(nf):("string"==typeof a&&(a=Object.assign(Object.assign({},af($a)),{message:a})),typeof r<"u"&&(a.data=r),function of(a){return _g.includes(a)}(a.code)&&(a=function uf(a){return Object.values(fs).find(t=>t.code===a)||fs[sf]}(a.code)),a)}function lf(a,r){const t=function Sg(a){const r=a.match(new RegExp(/^\w+:/,"gi"));if(r&&r.length)return r[0]}(a);return!(typeof t>"u")&&new RegExp(r).test(t)}function hf(a){return lf(a,"^https?:")}function df(a){return lf(a,"^wss?:")}function pf(a){return"object"==typeof a&&"id"in a&&"jsonrpc"in a&&"2.0"===a.jsonrpc}function Va(a){return pf(a)&&"method"in a}function co(a){return pf(a)&&(jn(a)||gn(a))}function jn(a){return"result"in a}function gn(a){return"error"in a}class Yn extends class Eg extends class wg extends class bg{}{constructor(){super()}}{constructor(r){super()}}{constructor(r){super(r),this.events=new me.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(r),this.connection.connected&&this.registerEventListeners()}connect(r=this.connection){var t=this;return S(function*(){yield t.open(r)})()}disconnect(){var r=this;return S(function*(){yield r.close()})()}on(r,t){this.events.on(r,t)}once(r,t){this.events.once(r,t)}off(r,t){this.events.off(r,t)}removeListener(r,t){this.events.removeListener(r,t)}request(r,t){var s=this;return S(function*(){return s.requestStrict(ao(r.method,r.params||[],r.id||za().toString()),t)})()}requestStrict(r,t){var s=this;return S(function*(){return new Promise(function(){var u=S(function*(f,g){if(!s.connection.connected)try{yield s.open()}catch(I){g(I)}s.events.on(`${r.id}`,I=>{gn(I)?g(I.error):f(I.result)});try{yield s.connection.send(r,t)}catch(I){g(I)}});return function(f,g){return u.apply(this,arguments)}}())})()}setConnection(r=this.connection){return r}onPayload(r){this.events.emit("payload",r),co(r)?this.events.emit(`${r.id}`,r):this.events.emit("message",{type:r.method,data:r.params})}onClose(r){r&&3e3===r.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${r.code} ${r.reason?`(${r.reason})`:""}`)),this.events.emit("disconnect")}open(r=this.connection){var t=this;return S(function*(){t.connection===r&&t.connection.connected||(t.connection.connected&&t.close(),"string"==typeof r&&(yield t.connection.open(r),r=t.connection),t.connection=t.setConnection(r),yield t.connection.open(),t.registerEventListeners(),t.events.emit("connect"))})()}close(){var r=this;return S(function*(){yield r.connection.close()})()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",r=>this.onPayload(r)),this.connection.on("close",r=>this.onClose(r)),this.connection.on("error",r=>this.events.emit("error",r)),this.connection.on("register_error",r=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const gf=a=>a.split("?")[0],Ag=typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:L(82791);var Rg=L(60066),Ng=L.n(Rg),Lg=function Fg(a,r){if(a.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),s=0;s>>0,Ct=new Uint8Array(pr);Ue[Ye];){var Pt=t[Ue.charCodeAt(Ye)];if(255===Pt)return;for(var _t=0,Nt=pr-1;(0!==Pt||_t>>0)%256>>>0,Pt=Pt/256>>>0;if(0!==Pt)throw new Error("Non-zero carry");Rt=_t,Ye++}if(" "!==Ue[Ye]){for(var xt=pr-Rt;xt!==pr&&0===Ct[xt];)xt++;for(var mr=new Uint8Array(Xe+(pr-xt)),Zn=Xe;xt!==pr;)mr[Zn++]=Ct[xt++];return mr}}}return{encode:function Oe(Ue){if(Ue instanceof Uint8Array||(ArrayBuffer.isView(Ue)?Ue=new Uint8Array(Ue.buffer,Ue.byteOffset,Ue.byteLength):Array.isArray(Ue)&&(Ue=Uint8Array.from(Ue))),!(Ue instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===Ue.length)return"";for(var Ye=0,Xe=0,Rt=0,pr=Ue.length;Rt!==pr&&0===Ue[Rt];)Rt++,Ye++;for(var Ct=(pr-Rt)*de+1>>>0,Pt=new Uint8Array(Ct);Rt!==pr;){for(var _t=Ue[Rt],Nt=0,xt=Ct-1;(0!==_t||Nt>>0)%I>>>0,_t=_t/I>>>0;if(0!==_t)throw new Error("Non-zero carry");Xe=Nt,Rt++}for(var mr=Ct-Xe;mr!==Ct&&0===Pt[mr];)mr++;for(var Zn=X.repeat(Ye);mr{if(a instanceof Uint8Array&&"Uint8Array"===a.constructor.name)return a;if(a instanceof ArrayBuffer)return new Uint8Array(a);if(ArrayBuffer.isView(a))return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);throw new Error("Unknown type, must be binary type")};class Bg{constructor(r,t,s){this.name=r,this.prefix=t,this.baseEncode=s}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}}class $g{constructor(r,t,s){if(this.name=r,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=s}decode(r){if("string"==typeof r){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(r){return vf(this,r)}}class zg{constructor(r){this.decoders=r}or(r){return vf(this,r)}decode(r){const s=this.decoders[r[0]];if(s)return s.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const vf=(a,r)=>new zg({...a.decoders||{[a.prefix]:a},...r.decoders||{[r.prefix]:r}});class Hg{constructor(r,t,s,u){this.name=r,this.prefix=t,this.baseEncode=s,this.baseDecode=u,this.encoder=new Bg(r,t,s),this.decoder=new $g(r,t,u)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}}const fo=({name:a,prefix:r,encode:t,decode:s})=>new Hg(a,r,t,s),ls=({prefix:a,name:r,alphabet:t})=>{const{encode:s,decode:u}=Lg(t,r);return fo({prefix:a,name:r,encode:s,decode:f=>yf(u(f))})},Dr=({name:a,prefix:r,bitsPerChar:t,alphabet:s})=>fo({prefix:r,name:a,encode:u=>((a,r,t)=>{const s="="===r[r.length-1],u=(1<t;)g-=t,f+=r[u&I>>g];if(g&&(f+=r[u&I<((a,r,t,s)=>{const u={};for(let de=0;de=8&&(I-=8,g[Y++]=255&X>>I)}if(I>=t||255&X<<8-I)throw new SyntaxError("Unexpected end of data");return g})(u,s,t,a)}),qg=fo({prefix:"\0",name:"identity",encode:a=>(a=>(new TextDecoder).decode(a))(a),decode:a=>(a=>(new TextEncoder).encode(a))(a)});var Wg=Object.freeze({__proto__:null,identity:qg});const kg=Dr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Gg=Object.freeze({__proto__:null,base2:kg});const Jg=Dr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Yg=Object.freeze({__proto__:null,base8:Jg});const Xg=ls({prefix:"9",name:"base10",alphabet:"0123456789"});var Qg=Object.freeze({__proto__:null,base10:Xg});const Zg=Dr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),e_=Dr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var t_=Object.freeze({__proto__:null,base16:Zg,base16upper:e_});const r_=Dr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),n_=Dr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),i_=Dr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s_=Dr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),o_=Dr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),a_=Dr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),u_=Dr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),c_=Dr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),f_=Dr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var l_=Object.freeze({__proto__:null,base32:r_,base32upper:n_,base32pad:i_,base32padupper:s_,base32hex:o_,base32hexupper:a_,base32hexpad:u_,base32hexpadupper:c_,base32z:f_});const h_=ls({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),d_=ls({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var p_=Object.freeze({__proto__:null,base36:h_,base36upper:d_});const g_=ls({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),__=ls({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var y_=Object.freeze({__proto__:null,base58btc:g_,base58flickr:__});const v_=Dr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),m_=Dr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),b_=Dr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),w_=Dr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var E_=Object.freeze({__proto__:null,base64:v_,base64pad:m_,base64url:b_,base64urlpad:w_});const mf=Array.from("\u{1f680}\u{1fa90}\u2604\u{1f6f0}\u{1f30c}\u{1f311}\u{1f312}\u{1f313}\u{1f314}\u{1f315}\u{1f316}\u{1f317}\u{1f318}\u{1f30d}\u{1f30f}\u{1f30e}\u{1f409}\u2600\u{1f4bb}\u{1f5a5}\u{1f4be}\u{1f4bf}\u{1f602}\u2764\u{1f60d}\u{1f923}\u{1f60a}\u{1f64f}\u{1f495}\u{1f62d}\u{1f618}\u{1f44d}\u{1f605}\u{1f44f}\u{1f601}\u{1f525}\u{1f970}\u{1f494}\u{1f496}\u{1f499}\u{1f622}\u{1f914}\u{1f606}\u{1f644}\u{1f4aa}\u{1f609}\u263a\u{1f44c}\u{1f917}\u{1f49c}\u{1f614}\u{1f60e}\u{1f607}\u{1f339}\u{1f926}\u{1f389}\u{1f49e}\u270c\u2728\u{1f937}\u{1f631}\u{1f60c}\u{1f338}\u{1f64c}\u{1f60b}\u{1f497}\u{1f49a}\u{1f60f}\u{1f49b}\u{1f642}\u{1f493}\u{1f929}\u{1f604}\u{1f600}\u{1f5a4}\u{1f603}\u{1f4af}\u{1f648}\u{1f447}\u{1f3b6}\u{1f612}\u{1f92d}\u2763\u{1f61c}\u{1f48b}\u{1f440}\u{1f62a}\u{1f611}\u{1f4a5}\u{1f64b}\u{1f61e}\u{1f629}\u{1f621}\u{1f92a}\u{1f44a}\u{1f973}\u{1f625}\u{1f924}\u{1f449}\u{1f483}\u{1f633}\u270b\u{1f61a}\u{1f61d}\u{1f634}\u{1f31f}\u{1f62c}\u{1f643}\u{1f340}\u{1f337}\u{1f63b}\u{1f613}\u2b50\u2705\u{1f97a}\u{1f308}\u{1f608}\u{1f918}\u{1f4a6}\u2714\u{1f623}\u{1f3c3}\u{1f490}\u2639\u{1f38a}\u{1f498}\u{1f620}\u261d\u{1f615}\u{1f33a}\u{1f382}\u{1f33b}\u{1f610}\u{1f595}\u{1f49d}\u{1f64a}\u{1f639}\u{1f5e3}\u{1f4ab}\u{1f480}\u{1f451}\u{1f3b5}\u{1f91e}\u{1f61b}\u{1f534}\u{1f624}\u{1f33c}\u{1f62b}\u26bd\u{1f919}\u2615\u{1f3c6}\u{1f92b}\u{1f448}\u{1f62e}\u{1f646}\u{1f37b}\u{1f343}\u{1f436}\u{1f481}\u{1f632}\u{1f33f}\u{1f9e1}\u{1f381}\u26a1\u{1f31e}\u{1f388}\u274c\u270a\u{1f44b}\u{1f630}\u{1f928}\u{1f636}\u{1f91d}\u{1f6b6}\u{1f4b0}\u{1f353}\u{1f4a2}\u{1f91f}\u{1f641}\u{1f6a8}\u{1f4a8}\u{1f92c}\u2708\u{1f380}\u{1f37a}\u{1f913}\u{1f619}\u{1f49f}\u{1f331}\u{1f616}\u{1f476}\u{1f974}\u25b6\u27a1\u2753\u{1f48e}\u{1f4b8}\u2b07\u{1f628}\u{1f31a}\u{1f98b}\u{1f637}\u{1f57a}\u26a0\u{1f645}\u{1f61f}\u{1f635}\u{1f44e}\u{1f932}\u{1f920}\u{1f927}\u{1f4cc}\u{1f535}\u{1f485}\u{1f9d0}\u{1f43e}\u{1f352}\u{1f617}\u{1f911}\u{1f30a}\u{1f92f}\u{1f437}\u260e\u{1f4a7}\u{1f62f}\u{1f486}\u{1f446}\u{1f3a4}\u{1f647}\u{1f351}\u2744\u{1f334}\u{1f4a3}\u{1f438}\u{1f48c}\u{1f4cd}\u{1f940}\u{1f922}\u{1f445}\u{1f4a1}\u{1f4a9}\u{1f450}\u{1f4f8}\u{1f47b}\u{1f910}\u{1f92e}\u{1f3bc}\u{1f975}\u{1f6a9}\u{1f34e}\u{1f34a}\u{1f47c}\u{1f48d}\u{1f4e3}\u{1f942}"),D_=mf.reduce((a,r,t)=>(a[t]=r,a),[]),x_=mf.reduce((a,r,t)=>(a[r.codePointAt(0)]=t,a),[]),I_=fo({prefix:"\u{1f680}",name:"base256emoji",encode:function S_(a){return a.reduce((r,t)=>r+D_[t],"")},decode:function O_(a){const r=[];for(const t of a){const s=x_[t.codePointAt(0)];if(void 0===s)throw new Error(`Non-base256emoji character: ${t}`);r.push(s)}return new Uint8Array(r)}});var P_=Object.freeze({__proto__:null,base256emoji:I_}),R_=Math.pow(2,31),j_=Math.pow(2,7),L_=Math.pow(2,14),U_=Math.pow(2,21),M_=Math.pow(2,28),B_=Math.pow(2,35),$_=Math.pow(2,42),z_=Math.pow(2,49),H_=Math.pow(2,56),V_=Math.pow(2,63),q_={encode:function wf(a,r,t){r=r||[];for(var s=t=t||0;a>=R_;)r[t++]=255&a|128,a/=128;for(;-128&a;)r[t++]=255&a|128,a>>>=7;return r[t]=0|a,wf.bytes=t-s+1,r},decode:function Ka(a,s){var g,t=0,u=0,f=s=s||0,I=a.length;do{if(f>=I)throw Ka.bytes=0,new RangeError("Could not decode varint");g=a[f++],t+=u<28?(127&g)<=128);return Ka.bytes=f-s,t},encodingLength:function(a){return a(Df.encode(a,r,t),r),Sf=a=>Df.encodingLength(a),qa=(a,r)=>{const t=r.byteLength,s=Sf(a),u=s+Sf(t),f=new Uint8Array(u+t);return xf(a,f,0),xf(t,f,s),f.set(r,u),new W_(a,t,r,f)};class W_{constructor(r,t,s,u){this.code=r,this.size=t,this.digest=s,this.bytes=u}}const Of=({name:a,code:r,encode:t})=>new k_(a,r,t);class k_{constructor(r,t,s){this.name=r,this.code=t,this.encode=s}digest(r){if(r instanceof Uint8Array){const t=this.encode(r);return t instanceof Uint8Array?qa(this.code,t):t.then(s=>qa(this.code,s))}throw Error("Unknown type, must be binary type")}}const If=a=>function(){var r=S(function*(t){return new Uint8Array(yield crypto.subtle.digest(a,t))});return function(t){return r.apply(this,arguments)}}(),G_=Of({name:"sha2-256",code:18,encode:If("SHA-256")}),J_=Of({name:"sha2-512",code:19,encode:If("SHA-512")});Object.freeze({__proto__:null,sha256:G_,sha512:J_});const Af=yf;Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:Af,digest:a=>qa(0,Af(a))}}),new TextEncoder,new TextDecoder;const Cf={...Wg,...Gg,...Yg,...Qg,...t_,...l_,...p_,...y_,...E_,...P_};function Tf(a){return null!=globalThis.Buffer?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):a}function Rf(a,r,t,s){return{name:a,prefix:r,encoder:{name:a,prefix:r,encode:t},decoder:{decode:s}}}const Nf=Rf("utf8","u",a=>"u"+new TextDecoder("utf8").decode(a),a=>(new TextEncoder).encode(a.substring(1))),Wa=Rf("ascii","a",a=>{let r="a";for(let t=0;t{const r=function Z_(a=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Tf(globalThis.Buffer.allocUnsafe(a)):new Uint8Array(a)}((a=a.substring(1)).length);for(let t=0;t(this.isInitialized(),this.keychain.has(u)),this.set=function(){var u=S(function*(f,g){s.isInitialized(),s.keychain.set(f,g),yield s.persist()});return function(f,g){return u.apply(this,arguments)}}(),this.get=u=>{this.isInitialized();const f=this.keychain.get(u);if(typeof f>"u"){const{message:g}=Ne("NO_MATCHING_KEY",`${this.name}: ${u}`);throw new Error(g)}return f},this.del=function(){var u=S(function*(f){s.isInitialized(),s.keychain.delete(f),yield s.persist()});return function(f){return u.apply(this,arguments)}}(),this.core=r,this.logger=(0,j.generateChildLogger)(t,this.name)}get context(){return(0,j.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}setKeyChain(r){var t=this;return S(function*(){yield t.core.storage.setItem(t.storageKey,Vc(r))})()}getKeyChain(){var r=this;return S(function*(){const t=yield r.core.storage.getItem(r.storageKey);return typeof t<"u"?Kc(t):void 0})()}persist(){var r=this;return S(function*(){yield r.setKeyChain(r.keychain)})()}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Ty{constructor(r,t,s){var u=this;this.core=r,this.logger=t,this.name="crypto",this.initialized=!1,this.init=S(function*(){u.initialized||(yield u.keychain.init(),u.initialized=!0)}),this.hasKeys=f=>(this.isInitialized(),this.keychain.has(f)),this.getClientId=S(function*(){return u.isInitialized(),Vs(qs(yield u.getClientSeed()).publicKey)}),this.generateKeyPair=()=>{this.isInitialized();const f=function Gd(){const a=Ws.Au();return{privateKey:Er(a.secretKey,Ar),publicKey:Er(a.publicKey,Ar)}}();return this.setPrivateKey(f.publicKey,f.privateKey)},this.signJWT=function(){var f=S(function*(g){u.isInitialized();const X=qs(yield u.getClientSeed()),Y=Ra();return yield function ma(a,r,t,s){return Ci.apply(this,arguments)}(Y,g,oy,X)});return function(g){return f.apply(this,arguments)}}(),this.generateSharedKey=(f,g,I)=>{this.isInitialized();const Y=function Jd(a,r){const t=Ws.gi(Or(a,Ar),Or(r,Ar));return Er(new kn.t(is.mE,t).expand(32),Ar)}(this.getPrivateKey(f),g);return this.setSymKey(Y,I)},this.setSymKey=function(){var f=S(function*(g,I){u.isInitialized();const X=I||function Yd(a){return Er((0,is.vp)(Or(a,Ar)),Ar)}(g);return yield u.keychain.set(X,g),X});return function(g,I){return f.apply(this,arguments)}}(),this.deleteKeyPair=function(){var f=S(function*(g){u.isInitialized(),yield u.keychain.del(g)});return function(g){return f.apply(this,arguments)}}(),this.deleteSymKey=function(){var f=S(function*(g){u.isInitialized(),yield u.keychain.del(g)});return function(g){return f.apply(this,arguments)}}(),this.encode=function(){var f=S(function*(g,I,X){u.isInitialized();const Y=Lc(X),de=Te(I);if(Uc(Y)){const Ue=Y.senderPublicKey,Ye=Y.receiverPublicKey;g=yield u.generateSharedKey(Ue,Ye)}const Oe=u.getSymKey(g),{type:He,senderPublicKey:Ot}=Y;return function Qd(a){const r=function Xd(a){return Or(`${a}`,"base10")}(typeof a.type<"u"?a.type:0);if(1===us(r)&&typeof a.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const t=typeof a.senderPublicKey<"u"?Or(a.senderPublicKey,Ar):void 0,s=typeof a.iv<"u"?Or(a.iv,Ar):(0,Me.randomBytes)(12);return function ep(a){if(1===us(a.type)){if(typeof a.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Er(Ge([a.type,a.senderPublicKey,a.iv,a.sealed]),Pa)}return Er(Ge([a.type,a.iv,a.sealed]),Pa)}({type:r,sealed:new hi.OK(Or(a.symKey,Ar)).seal(s,Or(a.message,Aa)),iv:s,senderPublicKey:t})}({type:He,symKey:Oe,message:de,senderPublicKey:Ot})});return function(g,I,X){return f.apply(this,arguments)}}(),this.decode=function(){var f=S(function*(g,I,X){u.isInitialized();const Y=function tp(a,r){const t=eo(a);return Lc({type:us(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?Er(t.senderPublicKey,Ar):void 0,receiverPublicKey:r?.receiverPublicKey})}(I,X);if(Uc(Y)){const de=Y.receiverPublicKey,Oe=Y.senderPublicKey;g=yield u.generateSharedKey(de,Oe)}try{const Oe=function Zd(a){const r=new hi.OK(Or(a.symKey,Ar)),{sealed:t,iv:s}=eo(a.encoded),u=r.open(s,t);if(null===u)throw new Error("Failed to decrypt");return Er(u,Aa)}({symKey:u.getSymKey(g),encoded:I});return xe(Oe)}catch(de){u.logger.error(`Failed to decode message from topic: '${g}', clientId: '${yield u.getClientId()}'`),u.logger.error(de)}});return function(g,I,X){return f.apply(this,arguments)}}(),this.getPayloadType=f=>us(eo(f).type),this.getPayloadSenderPublicKey=f=>{const g=eo(f);return g.senderPublicKey?Er(g.senderPublicKey,Ar):void 0},this.core=r,this.logger=(0,j.generateChildLogger)(t,this.name),this.keychain=s||new Cy(this.core,this.logger)}get context(){return(0,j.getLoggerContext)(this.logger)}setPrivateKey(r,t){var s=this;return S(function*(){return yield s.keychain.set(r,t),r})()}getPrivateKey(r){return this.keychain.get(r)}getClientSeed(){var r=this;return S(function*(){let t="";try{t=r.keychain.get(jf)}catch{t=Ra(),yield r.keychain.set(jf,t)}return function ty(a,r="utf8"){const t=ey[r];if(!t)throw new Error(`Unsupported encoding "${r}"`);return"utf8"!==r&&"utf-8"!==r||null==globalThis.Buffer||null==globalThis.Buffer.from?t.decoder.decode(`${t.prefix}${a}`):Tf(globalThis.Buffer.from(a,"utf-8"))}(t,"base16")})()}getSymKey(r){return this.keychain.get(r)}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Ry extends class h{constructor(r,t){this.logger=r,this.core=t}}{constructor(r,t){var s;super(r,t),s=this,this.logger=r,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Xn,this.init=S(function*(){if(!s.initialized){s.logger.trace("Initialized");try{const u=yield s.getRelayerMessages();typeof u<"u"&&(s.messages=u),s.logger.debug(`Successfully Restored records for ${s.name}`),s.logger.trace({type:"method",method:"restore",size:s.messages.size})}catch(u){s.logger.debug(`Failed to Restore records for ${s.name}`),s.logger.error(u)}finally{s.initialized=!0}}}),this.set=function(){var u=S(function*(f,g){s.isInitialized();const I=ji(g);let X=s.messages.get(f);return typeof X>"u"&&(X={}),typeof X[I]<"u"||(X[I]=g,s.messages.set(f,X),yield s.persist()),I});return function(f,g){return u.apply(this,arguments)}}(),this.get=u=>{this.isInitialized();let f=this.messages.get(u);return typeof f>"u"&&(f={}),f},this.has=(u,f)=>(this.isInitialized(),typeof this.get(u)[ji(f)]<"u"),this.del=function(){var u=S(function*(f){s.isInitialized(),s.messages.delete(f),yield s.persist()});return function(f){return u.apply(this,arguments)}}(),this.logger=(0,j.generateChildLogger)(r,this.name),this.core=t}get context(){return(0,j.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}setRelayerMessages(r){var t=this;return S(function*(){yield t.core.storage.setItem(t.storageKey,Vc(r))})()}getRelayerMessages(){var r=this;return S(function*(){const t=yield r.core.storage.getItem(r.storageKey);return typeof t<"u"?Kc(t):void 0})()}persist(){var r=this;return S(function*(){yield r.setRelayerMessages(r.messages)})()}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Ny extends l{constructor(r,t){var s;super(r,t),s=this,this.relayer=r,this.logger=t,this.events=new me.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,G.toMiliseconds)(G.TEN_SECONDS),this.queueTimeout=(0,G.toMiliseconds)(G.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=function(){var u=S(function*(f,g,I){s.logger.debug("Publishing Payload"),s.logger.trace({type:"method",method:"publish",params:{topic:f,message:g,opts:I}});try{const X=I?.ttl||ly,Y=Ua(I),de=I?.prompt||!1,Oe=I?.tag||0,He=I?.id||za().toString(),Ot={topic:f,message:g,opts:{ttl:X,relay:Y,prompt:de,tag:Oe,id:He}},Ue=setTimeout(()=>s.queue.set(He,Ot),s.queueTimeout);try{yield yield ro(s.rpcPublish(f,g,X,Y,de,Oe,He),s.publishTimeout),clearTimeout(Ue),s.relayer.events.emit("relayer_publish",Ot)}catch{return s.logger.debug("Publishing Payload stalled"),void(s.needsTransportRestart=!0)}s.logger.debug("Successfully Published Payload"),s.logger.trace({type:"method",method:"publish",params:{topic:f,message:g,opts:I}})}catch(X){throw s.logger.debug("Failed to Publish Payload"),s.logger.error(X),X}});return function(f,g,I){return u.apply(this,arguments)}}(),this.on=(u,f)=>{this.events.on(u,f)},this.once=(u,f)=>{this.events.once(u,f)},this.off=(u,f)=>{this.events.off(u,f)},this.removeListener=(u,f)=>{this.events.removeListener(u,f)},this.relayer=r,this.logger=(0,j.generateChildLogger)(t,this.name),this.registerEventListeners()}get context(){return(0,j.getLoggerContext)(this.logger)}rpcPublish(r,t,s,u,f,g,I){var X,Y,de,Oe;const He={method:no(u.protocol).publish,params:{topic:r,message:t,ttl:s,prompt:f,tag:g},id:I};return Cr(null==(X=He.params)?void 0:X.prompt)&&(null==(Y=He.params)||delete Y.prompt),Cr(null==(de=He.params)?void 0:de.tag)&&(null==(Oe=He.params)||delete Oe.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:He}),this.relayer.request(He)}onPublish(r){this.queue.delete(r)}checkQueue(){var r=this;this.queue.forEach(function(){var t=S(function*(s){const{topic:u,message:f,opts:g}=s;yield r.publish(u,f,g)});return function(s){return t.apply(this,arguments)}}())}registerEventListeners(){this.relayer.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit("relayer_connection_stalled");this.checkQueue()}),this.relayer.on("relayer_message_ack",r=>{this.onPublish(r.id.toString())})}}class Fy{constructor(){this.map=new Map,this.set=(r,t)=>{const s=this.get(r);this.exists(r,t)||this.map.set(r,[...s,t])},this.get=r=>this.map.get(r)||[],this.exists=(r,t)=>this.get(r).includes(t),this.delete=(r,t)=>{if(typeof t>"u")return void this.map.delete(r);if(!this.map.has(r))return;const s=this.get(r);if(!this.exists(r,t))return;const u=s.filter(f=>f!==t);u.length?this.map.set(r,u):this.map.delete(r)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var jy=Object.defineProperty,Ly=Object.defineProperties,Uy=Object.getOwnPropertyDescriptors,$f=Object.getOwnPropertySymbols,My=Object.prototype.hasOwnProperty,By=Object.prototype.propertyIsEnumerable,zf=(a,r,t)=>r in a?jy(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,ps=(a,r)=>{for(var t in r||(r={}))My.call(r,t)&&zf(a,t,r[t]);if($f)for(var t of $f(r))By.call(r,t)&&zf(a,t,r[t]);return a},Ja=(a,r)=>Ly(a,Uy(r));class $y extends b{constructor(r,t){var s;super(r,t),s=this,this.relayer=r,this.logger=t,this.subscriptions=new Map,this.topicMap=new Fy,this.events=new me.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Xn,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=S(function*(){s.initialized||(s.logger.trace("Initialized"),yield s.restart(),s.registerEventListeners(),s.onEnable(),s.clientId=yield s.relayer.core.crypto.getClientId())}),this.subscribe=function(){var u=S(function*(f,g){yield s.restartToComplete(),s.isInitialized(),s.logger.debug("Subscribing Topic"),s.logger.trace({type:"method",method:"subscribe",params:{topic:f,opts:g}});try{const I=Ua(g),X={topic:f,relay:I};s.pending.set(f,X);const Y=yield s.rpcSubscribe(f,I);return s.onSubscribe(Y,X),s.logger.debug("Successfully Subscribed Topic"),s.logger.trace({type:"method",method:"subscribe",params:{topic:f,opts:g}}),Y}catch(I){throw s.logger.debug("Failed to Subscribe Topic"),s.logger.error(I),I}});return function(f,g){return u.apply(this,arguments)}}(),this.unsubscribe=function(){var u=S(function*(f,g){yield s.restartToComplete(),s.isInitialized(),typeof g?.id<"u"?yield s.unsubscribeById(f,g.id,g):yield s.unsubscribeByTopic(f,g)});return function(f,g){return u.apply(this,arguments)}}(),this.isSubscribed=function(){var u=S(function*(f){return!!s.topics.includes(f)||(yield new Promise((g,I)=>{const X=new G.Watch;X.start(s.pendingSubscriptionWatchLabel);const Y=setInterval(()=>{!s.pending.has(f)&&s.topics.includes(f)&&(clearInterval(Y),X.stop(s.pendingSubscriptionWatchLabel),g(!0)),X.elapsed(s.pendingSubscriptionWatchLabel)>=Dy&&(clearInterval(Y),X.stop(s.pendingSubscriptionWatchLabel),I(new Error("Subscription resolution timeout")))},s.pollingInterval)}).catch(()=>!1))});return function(f){return u.apply(this,arguments)}}(),this.on=(u,f)=>{this.events.on(u,f)},this.once=(u,f)=>{this.events.once(u,f)},this.off=(u,f)=>{this.events.off(u,f)},this.removeListener=(u,f)=>{this.events.removeListener(u,f)},this.restart=S(function*(){s.restartInProgress=!0,yield s.restore(),yield s.reset(),s.restartInProgress=!1}),this.relayer=r,this.logger=(0,j.generateChildLogger)(t,this.name),this.clientId=""}get context(){return(0,j.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(r,t){let s=!1;try{s=this.getSubscription(r).topic===t}catch{}return s}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}unsubscribeByTopic(r,t){var s=this;return S(function*(){const u=s.topicMap.get(r);yield Promise.all(u.map(function(){var f=S(function*(g){return yield s.unsubscribeById(r,g,t)});return function(g){return f.apply(this,arguments)}}()))})()}unsubscribeById(r,t,s){var u=this;return S(function*(){u.logger.debug("Unsubscribing Topic"),u.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:t,opts:s}});try{const f=Ua(s);yield u.rpcUnsubscribe(r,t,f);const g=lr("USER_DISCONNECTED",`${u.name}, ${r}`);yield u.onUnsubscribe(r,t,g),u.logger.debug("Successfully Unsubscribed Topic"),u.logger.trace({type:"method",method:"unsubscribe",params:{topic:r,id:t,opts:s}})}catch(f){throw u.logger.debug("Failed to Unsubscribe Topic"),u.logger.error(f),f}})()}rpcSubscribe(r,t){var s=this;return S(function*(){const u={method:no(t.protocol).subscribe,params:{topic:r}};s.logger.debug("Outgoing Relay Payload"),s.logger.trace({type:"payload",direction:"outgoing",request:u});try{yield yield ro(s.relayer.request(u),s.subscribeTimeout)}catch{s.logger.debug("Outgoing Relay Subscribe Payload stalled"),s.relayer.events.emit("relayer_connection_stalled")}return ji(r+s.clientId)})()}rpcBatchSubscribe(r){var t=this;return S(function*(){if(!r.length)return;const u={method:no(r[0].relay.protocol).batchSubscribe,params:{topics:r.map(f=>f.topic)}};t.logger.debug("Outgoing Relay Payload"),t.logger.trace({type:"payload",direction:"outgoing",request:u});try{return yield yield ro(t.relayer.request(u),t.subscribeTimeout)}catch{t.logger.debug("Outgoing Relay Payload stalled"),t.relayer.events.emit("relayer_connection_stalled")}})()}rpcUnsubscribe(r,t,s){const u={method:no(s.protocol).unsubscribe,params:{topic:r,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:u}),this.relayer.request(u)}onSubscribe(r,t){this.setSubscription(r,Ja(ps({},t),{id:r})),this.pending.delete(t.topic)}onBatchSubscribe(r){r.length&&r.forEach(t=>{this.setSubscription(t.id,ps({},t)),this.pending.delete(t.topic)})}onUnsubscribe(r,t,s){var u=this;return S(function*(){u.events.removeAllListeners(t),u.hasSubscription(t,r)&&u.deleteSubscription(t,s),yield u.relayer.messages.del(r)})()}setRelayerSubscriptions(r){var t=this;return S(function*(){yield t.relayer.core.storage.setItem(t.storageKey,r)})()}getRelayerSubscriptions(){var r=this;return S(function*(){return yield r.relayer.core.storage.getItem(r.storageKey)})()}setSubscription(r,t){this.subscriptions.has(r)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:r,subscription:t}),this.addSubscription(r,t))}addSubscription(r,t){this.subscriptions.set(r,ps({},t)),this.topicMap.set(t.topic,r),this.events.emit(Dn_created,t)}getSubscription(r){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:r});const t=this.subscriptions.get(r);if(!t){const{message:s}=Ne("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(s)}return t}deleteSubscription(r,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:r,reason:t});const s=this.getSubscription(r);this.subscriptions.delete(r),this.topicMap.delete(s.topic,r),this.events.emit(Dn_deleted,Ja(ps({},s),{reason:t}))}persist(){var r=this;return S(function*(){yield r.setRelayerSubscriptions(r.values),r.events.emit("subscription_sync")})()}reset(){var r=this;return S(function*(){if(r.cached.length){const t=Math.ceil(r.cached.length/r.batchSubscribeTopicsLimit);for(let s=0;s"u"||!t.length)return;if(r.subscriptions.size){const{message:s}=Ne("RESTORE_WILL_OVERRIDE",r.name);throw r.logger.error(s),r.logger.error(`${r.name}: ${JSON.stringify(r.values)}`),new Error(s)}r.cached=t,r.logger.debug(`Successfully Restored subscriptions for ${r.name}`),r.logger.trace({type:"method",method:"restore",subscriptions:r.values})}catch(t){r.logger.debug(`Failed to Restore subscriptions for ${r.name}`),r.logger.error(t)}})()}batchSubscribe(r){var t=this;return S(function*(){if(!r.length)return;const s=yield t.rpcBatchSubscribe(r);_i(s)&&t.onBatchSubscribe(s.map((u,f)=>Ja(ps({},r[f]),{id:u})))})()}onConnect(){var r=this;return S(function*(){r.restartInProgress||(yield r.restart(),r.onEnable())})()}onDisconnect(){this.onDisable()}checkPending(){var r=this;return S(function*(){if(r.relayer.transportExplicitlyClosed)return;const t=[];r.pending.forEach(s=>{t.push(s)}),yield r.batchSubscribe(t)})()}registerEventListeners(){var r=this;this.relayer.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,S(function*(){yield r.checkPending()})),this.relayer.on("relayer_connect",S(function*(){yield r.onConnect()})),this.relayer.on("relayer_disconnect",()=>{this.onDisconnect()}),this.events.on(Dn_created,function(){var t=S(function*(s){const u=Dn_created;r.logger.info(`Emitting ${u}`),r.logger.debug({type:"event",event:u,data:s}),yield r.persist()});return function(s){return t.apply(this,arguments)}}()),this.events.on(Dn_deleted,function(){var t=S(function*(s){const u=Dn_deleted;r.logger.info(`Emitting ${u}`),r.logger.debug({type:"event",event:u,data:s}),yield r.persist()});return function(s){return t.apply(this,arguments)}}())}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}restartToComplete(){var r=this;return S(function*(){r.restartInProgress&&(yield new Promise(t=>{const s=setInterval(()=>{r.restartInProgress||(clearInterval(s),t())},r.pollingInterval)}))})()}}var zy=Object.defineProperty,Hf=Object.getOwnPropertySymbols,Hy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Vf=(a,r,t)=>r in a?zy(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t;class qy extends v{constructor(r){var t;super(r),t=this,this.protocol="wc",this.version=2,this.events=new me.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=function(){var s=S(function*(u){t.logger.debug("Publishing Request Payload");try{return yield t.toEstablishConnection(),yield t.provider.request(u)}catch(f){throw t.logger.debug("Failed to Publish Request"),t.logger.error(f),f}});return function(u){return s.apply(this,arguments)}}(),this.core=r.core,this.logger=typeof r.logger<"u"&&"string"!=typeof r.logger?(0,j.generateChildLogger)(r.logger,this.name):(0,j.pino)((0,j.getDefaultLoggerOptions)({level:r.logger||"error"})),this.messages=new Ry(this.logger,r.core),this.subscriber=new $y(this,this.logger),this.publisher=new Ny(this,this.logger),this.relayUrl=r?.relayUrl||Uf,this.projectId=r.projectId,this.provider={}}init(){var r=this;return S(function*(){r.logger.trace("Initialized"),yield r.createProvider(),yield Promise.all([r.messages.init(),r.subscriber.init()]);try{yield r.transportOpen()}catch{r.logger.warn(`Connection via ${r.relayUrl} failed, attempting to connect via failover domain ${Mf}...`),yield r.restartTransport(Mf)}r.registerEventListeners(),r.initialized=!0,setTimeout(S(function*(){0===r.subscriber.topics.length&&(r.logger.info("No topics subscribed to after init, closing transport"),yield r.transportClose(),r.transportExplicitlyClosed=!1)}),1e4)})()}get context(){return(0,j.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}publish(r,t,s){var u=this;return S(function*(){u.isInitialized(),yield u.publisher.publish(r,t,s),yield u.recordMessageEvent({topic:r,message:t,publishedAt:Date.now()})})()}subscribe(r,t){var s=this;return S(function*(){var u;s.isInitialized();let f=(null==(u=s.subscriber.topicMap.get(r))?void 0:u[0])||"";return f||(yield Promise.all([new Promise(g=>{s.subscriber.once(Dn_created,I=>{I.topic===r&&g()})}),new Promise(function(){var g=S(function*(I){f=yield s.subscriber.subscribe(r,t),I()});return function(I){return g.apply(this,arguments)}}())]),f)})()}unsubscribe(r,t){var s=this;return S(function*(){s.isInitialized(),yield s.subscriber.unsubscribe(r,t)})()}on(r,t){this.events.on(r,t)}once(r,t){this.events.once(r,t)}off(r,t){this.events.off(r,t)}removeListener(r,t){this.events.removeListener(r,t)}transportClose(){var r=this;return S(function*(){r.transportExplicitlyClosed=!0,r.connected&&(yield r.provider.disconnect(),r.events.emit("relayer_transport_closed"))})()}transportOpen(r){var t=this;return S(function*(){if(t.transportExplicitlyClosed=!1,!t.reconnecting){t.relayUrl=r||t.relayUrl,t.reconnecting=!0;try{yield Promise.all([new Promise(s=>{t.initialized||s(),t.subscriber.once("subscription_resubscribed",()=>{s()})}),yield Promise.race([new Promise(function(){var s=S(function*(u,f){yield ro(t.provider.connect(),1e4,`Socket stalled when trying to connect to ${t.relayUrl}`).catch(g=>f(g)).then(()=>u()).finally(()=>t.removeListener("relayer_transport_closed",t.rejectTransportOpen))});return function(u,f){return s.apply(this,arguments)}}()),new Promise(s=>t.once("relayer_transport_closed",t.rejectTransportOpen))])])}catch(s){if(t.logger.error(s),!t.isConnectionStalled(s.message))throw s;t.events.emit("relayer_transport_closed")}finally{t.reconnecting=!1}}})()}restartTransport(r){var t=this;return S(function*(){t.transportExplicitlyClosed||t.reconnecting||(t.relayUrl=r||t.relayUrl,t.connected&&(yield Promise.all([new Promise(s=>{t.provider.once("disconnect",()=>{s()})}),t.transportClose()])),yield t.createProvider(),yield t.transportOpen())})()}isConnectionStalled(r){return this.staleConnectionErrors.some(t=>r.includes(t))}rejectTransportOpen(){throw new Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}createProvider(){var r=this;return S(function*(){const t=yield r.core.crypto.signJWT(r.relayUrl);r.provider=new Yn(new class Cg{constructor(r){if(this.url=r,this.events=new me.EventEmitter,this.registering=!1,!df(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);this.url=r}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(r,t){this.events.on(r,t)}once(r,t){this.events.once(r,t)}off(r,t){this.events.off(r,t)}removeListener(r,t){this.events.removeListener(r,t)}open(r=this.url){var t=this;return S(function*(){yield t.register(r)})()}close(){var r=this;return S(function*(){return new Promise((t,s)=>{typeof r.socket>"u"?s(new Error("Connection already closed")):(r.socket.onclose=u=>{r.onClose(u),t()},r.socket.close())})})()}send(r,t){var s=this;return S(function*(){typeof s.socket>"u"&&(s.socket=yield s.register());try{s.socket.send(Te(r))}catch(u){s.onError(r.id,u)}})()}register(r=this.url){if(!df(r))throw new Error(`Provided URL is not compatible with WebSocket connection: ${r}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((s,u)=>{this.events.once("register_error",f=>{this.resetMaxListeners(),u(f)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return u(new Error("WebSocket connection is missing or invalid"));s(this.socket)})})}return this.url=r,this.registering=!0,new Promise((t,s)=>{const u=(0,vg.isReactNative)()?void 0:{rejectUnauthorized:(a=r,!new RegExp("wss?://localhost(:d{2,5})?").test(a))},f=new Ag(r,[],u);var a;typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?f.onerror=g=>{s(this.emitError(g.error))}:f.on("error",g=>{s(this.emitError(g))}),f.onopen=()=>{this.onOpen(f),t(f)}})}onOpen(r){r.onmessage=t=>this.onPayload(t),r.onclose=t=>this.onClose(t),this.socket=r,this.registering=!1,this.events.emit("open")}onClose(r){this.socket=void 0,this.registering=!1,this.events.emit("close",r)}onPayload(r){if(typeof r.data>"u")return;const t="string"==typeof r.data?xe(r.data):r.data;this.events.emit("payload",t)}onError(r,t){const s=this.parseError(t),f=uo(r,s.message||s.toString());this.events.emit("payload",f)}parseError(r,t=this.url){return cf(r,gf(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(r){const t=this.parseError(new Error((null==r?void 0:r.message)||`WebSocket connection failed for host: ${gf(this.url)}`));return this.events.emit("register_error",t),t}}(function dp({protocol:a,version:r,relayUrl:t,sdkVersion:s,auth:u,projectId:f,useOnCloseEvent:g}){const I=t.split("?"),X=hp(a,r,s),de=function up(a,r){let t=Ni.parse(a);return t=$c($c({},t),r),Ni.stringify(t)}(I[1]||"",{auth:u,ua:X,projectId:f,useOnCloseEvent:g||void 0});return I[0]+"?"+de}({sdkVersion:"2.9.1",protocol:r.protocol,version:r.version,relayUrl:r.relayUrl,projectId:r.projectId,auth:t,useOnCloseEvent:!0}))),r.registerProviderListeners()})()}recordMessageEvent(r){var t=this;return S(function*(){const{topic:s,message:u}=r;yield t.messages.set(s,u)})()}shouldIgnoreMessageEvent(r){var t=this;return S(function*(){const{topic:s,message:u}=r;if(!u||0===u.length)return t.logger.debug(`Ignoring invalid/empty message: ${u}`),!0;if(!(yield t.subscriber.isSubscribed(s)))return t.logger.debug(`Ignoring message for non-subscribed topic ${s}`),!0;const f=t.messages.has(s,u);return f&&t.logger.debug(`Ignoring duplicate message: ${u}`),f})()}onProviderPayload(r){var t=this;return S(function*(){if(t.logger.debug("Incoming Relay Payload"),t.logger.trace({type:"payload",direction:"incoming",payload:r}),Va(r)){if(!r.method.endsWith("_subscription"))return;const s=r.params,{topic:u,message:f,publishedAt:g}=s.data,I={topic:u,message:f,publishedAt:g};t.logger.debug("Emitting Relayer Payload"),t.logger.trace(((a,r)=>{for(var t in r||(r={}))Hy.call(r,t)&&Vf(a,t,r[t]);if(Hf)for(var t of Hf(r))Vy.call(r,t)&&Vf(a,t,r[t]);return a})({type:"event",event:s.id},I)),t.events.emit(s.id,I),yield t.acknowledgePayload(r),yield t.onMessageEvent(I)}else co(r)&&t.events.emit("relayer_message_ack",r)})()}onMessageEvent(r){var t=this;return S(function*(){(yield t.shouldIgnoreMessageEvent(r))||(t.events.emit("relayer_message",r),yield t.recordMessageEvent(r))})()}acknowledgePayload(r){var t=this;return S(function*(){const s=Ha(r.id,!0);yield t.provider.connection.send(s)})()}registerProviderListeners(){this.provider.on("payload",r=>this.onProviderPayload(r)),this.provider.on("connect",()=>{this.events.emit("relayer_connect")}),this.provider.on("disconnect",()=>{this.onProviderDisconnect()}),this.provider.on("error",r=>{this.logger.error(r),this.events.emit("relayer_error",r)})}registerEventListeners(){var r=this;this.events.on("relayer_connection_stalled",S(function*(){yield r.restartTransport()}))}onProviderDisconnect(){this.events.emit("relayer_disconnect"),this.attemptToReconnect()}attemptToReconnect(){var r=this;this.transportExplicitlyClosed||setTimeout(S(function*(){yield r.restartTransport()}),(0,G.toMiliseconds)(_y))}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}toEstablishConnection(){var r=this;return S(function*(){if(!r.connected){if(r.connecting)return yield new Promise(t=>{const s=setInterval(()=>{r.connected&&(clearInterval(s),t())},r.connectionStatusPollingInterval)});yield r.restartTransport()}})()}}var Wy=Object.defineProperty,Kf=Object.getOwnPropertySymbols,ky=Object.prototype.hasOwnProperty,Gy=Object.prototype.propertyIsEnumerable,qf=(a,r,t)=>r in a?Wy(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,Wf=(a,r)=>{for(var t in r||(r={}))ky.call(r,t)&&qf(a,t,r[t]);if(Kf)for(var t of Kf(r))Gy.call(r,t)&&qf(a,t,r[t]);return a};class lo extends class y{constructor(r,t,s,u){this.core=r,this.logger=t,this.name=s}}{constructor(r,t,s,u=Xn,f){var g;super(r,t,s,u),g=this,this.core=r,this.logger=t,this.name=s,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Xn,this.init=S(function*(){g.initialized||(g.logger.trace("Initialized"),yield g.restore(),g.cached.forEach(I=>{g.getKey&&null!==I&&!Cr(I)?g.map.set(g.getKey(I),I):function Wp(a){var r;return null==(r=a?.proposer)?void 0:r.publicKey}(I)?g.map.set(I.id,I):function kp(a){return a?.topic}(I)&&g.map.set(I.topic,I)}),g.cached=[],g.initialized=!0)}),this.set=function(){var I=S(function*(X,Y){g.isInitialized(),g.map.has(X)?yield g.update(X,Y):(g.logger.debug("Setting value"),g.logger.trace({type:"method",method:"set",key:X,value:Y}),g.map.set(X,Y),yield g.persist())});return function(X,Y){return I.apply(this,arguments)}}(),this.get=I=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:I}),this.getData(I)),this.getAll=I=>(this.isInitialized(),I?this.values.filter(X=>Object.keys(I).every(Y=>Ng()(X[Y],I[Y]))):this.values),this.update=function(){var I=S(function*(X,Y){g.isInitialized(),g.logger.debug("Updating value"),g.logger.trace({type:"method",method:"update",key:X,update:Y});const de=Wf(Wf({},g.getData(X)),Y);g.map.set(X,de),yield g.persist()});return function(X,Y){return I.apply(this,arguments)}}(),this.delete=function(){var I=S(function*(X,Y){g.isInitialized(),g.map.has(X)&&(g.logger.debug("Deleting value"),g.logger.trace({type:"method",method:"delete",key:X,reason:Y}),g.map.delete(X),yield g.persist())});return function(X,Y){return I.apply(this,arguments)}}(),this.logger=(0,j.generateChildLogger)(t,this.name),this.storagePrefix=u,this.getKey=f}get context(){return(0,j.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}setDataStore(r){var t=this;return S(function*(){yield t.core.storage.setItem(t.storageKey,r)})()}getDataStore(){var r=this;return S(function*(){return yield r.core.storage.getItem(r.storageKey)})()}getData(r){const t=this.map.get(r);if(!t){const{message:s}=Ne("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(s),new Error(s)}return t}persist(){var r=this;return S(function*(){yield r.setDataStore(r.values)})()}restore(){var r=this;return S(function*(){try{const t=yield r.getDataStore();if(typeof t>"u"||!t.length)return;if(r.map.size){const{message:s}=Ne("RESTORE_WILL_OVERRIDE",r.name);throw r.logger.error(s),new Error(s)}r.cached=t,r.logger.debug(`Successfully Restored value for ${r.name}`),r.logger.trace({type:"method",method:"restore",value:r.values})}catch(t){r.logger.debug(`Failed to Restore value for ${r.name}`),r.logger.error(t)}})()}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Jy{constructor(r,t){var s=this;this.core=r,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(De()),this.initialized=!1,this.storagePrefix=Xn,this.ignoredPayloadTypes=[1],this.registeredMethods=[],this.init=S(function*(){s.initialized||(yield s.pairings.init(),yield s.cleanup(),s.registerRelayerEvents(),s.registerExpirerEvents(),s.initialized=!0,s.logger.trace("Initialized"))}),this.register=({methods:u})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...u])]},this.create=S(function*(){s.isInitialized();const u=Ra(),f=yield s.core.crypto.setSymKey(u),g=pn(G.FIVE_MINUTES),I={protocol:"irn"},X={topic:f,expiry:g,relay:I,active:!1},Y=function Ap(a){return`${a.protocol}:${a.topic}@${a.version}?`+Ni.stringify(((a,r)=>{for(var t in r||(r={}))Ep.call(r,t)&&Gc(a,t,r[t]);if(kc)for(var t of kc(r))Dp.call(r,t)&&Gc(a,t,r[t]);return a})({symKey:a.symKey},function Pp(a,r="-"){const s={};return Object.keys(a).forEach(u=>{a[u]&&(s["relay"+r+u]=a[u])}),s}(a.relay)))}({protocol:s.core.protocol,version:s.core.version,topic:f,symKey:u,relay:I});return yield s.pairings.set(f,X),yield s.core.relayer.subscribe(f),s.core.expirer.set(f,g),{topic:f,uri:Y}}),this.pair=function(){var u=S(function*(f){s.isInitialized(),s.isValidPair(f);const{topic:g,symKey:I,relay:X}=function Op(a){const r=a.indexOf(":"),t=-1!==a.indexOf("?")?a.indexOf("?"):void 0,s=a.substring(0,r),u=a.substring(r+1,t).split("@"),f=typeof t<"u"?a.substring(t):"",g=Ni.parse(f);return{protocol:s,topic:Ip(u[0]),version:parseInt(u[1],10),symKey:g.symKey,relay:Sp(g)}}(f.uri);if(s.pairings.keys.includes(g))throw new Error(`Pairing already exists: ${g}`);if(s.core.crypto.hasKeys(g))throw new Error(`Keychain already exists: ${g}`);const Y=pn(G.FIVE_MINUTES),de={topic:g,relay:X,expiry:Y,active:!1};return yield s.pairings.set(g,de),yield s.core.crypto.setSymKey(I,g),yield s.core.relayer.subscribe(g,{relay:X}),s.core.expirer.set(g,Y),f.activatePairing&&(yield s.activate({topic:g})),de});return function(f){return u.apply(this,arguments)}}(),this.activate=function(){var u=S(function*({topic:f}){s.isInitialized();const g=pn(G.THIRTY_DAYS);yield s.pairings.update(f,{active:!0,expiry:g}),s.core.expirer.set(f,g)});return function(f){return u.apply(this,arguments)}}(),this.ping=function(){var u=S(function*(f){s.isInitialized(),yield s.isValidPing(f);const{topic:g}=f;if(s.pairings.keys.includes(g)){const I=yield s.sendRequest(g,"wc_pairingPing",{}),{done:X,resolve:Y,reject:de}=Li();s.events.once(fr("pairing_ping",I),({error:Oe})=>{Oe?de(Oe):Y()}),yield X()}});return function(f){return u.apply(this,arguments)}}(),this.updateExpiry=function(){var u=S(function*({topic:f,expiry:g}){s.isInitialized(),yield s.pairings.update(f,{expiry:g})});return function(f){return u.apply(this,arguments)}}(),this.updateMetadata=function(){var u=S(function*({topic:f,metadata:g}){s.isInitialized(),yield s.pairings.update(f,{peerMetadata:g})});return function(f){return u.apply(this,arguments)}}(),this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=function(){var u=S(function*(f){s.isInitialized(),yield s.isValidDisconnect(f);const{topic:g}=f;s.pairings.keys.includes(g)&&(yield s.sendRequest(g,"wc_pairingDelete",lr("USER_DISCONNECTED")),yield s.deletePairing(g))});return function(f){return u.apply(this,arguments)}}(),this.sendRequest=function(){var u=S(function*(f,g,I){const X=ao(g,I),Y=yield s.core.crypto.encode(f,X),de=ds[g].req;return s.core.history.set(f,X),s.core.relayer.publish(f,Y,de),X.id});return function(f,g,I){return u.apply(this,arguments)}}(),this.sendResult=function(){var u=S(function*(f,g,I){const X=Ha(f,I),Y=yield s.core.crypto.encode(g,X),de=yield s.core.history.get(g,f),Oe=ds[de.request.method].res;yield s.core.relayer.publish(g,Y,Oe),yield s.core.history.resolve(X)});return function(f,g,I){return u.apply(this,arguments)}}(),this.sendError=function(){var u=S(function*(f,g,I){const X=uo(f,I),Y=yield s.core.crypto.encode(g,X),de=yield s.core.history.get(g,f),Oe=ds[de.request.method]?ds[de.request.method].res:ds.unregistered_method.res;yield s.core.relayer.publish(g,Y,Oe),yield s.core.history.resolve(X)});return function(f,g,I){return u.apply(this,arguments)}}(),this.deletePairing=function(){var u=S(function*(f,g){yield s.core.relayer.unsubscribe(f),yield Promise.all([s.pairings.delete(f,lr("USER_DISCONNECTED")),s.core.crypto.deleteSymKey(f),g?Promise.resolve():s.core.expirer.del(f)])});return function(f,g){return u.apply(this,arguments)}}(),this.cleanup=S(function*(){const u=s.pairings.getAll().filter(f=>Jn(f.expiry));yield Promise.all(u.map(f=>s.deletePairing(f.topic)))}),this.onRelayEventRequest=u=>{const{topic:f,payload:g}=u;switch(g.method){case"wc_pairingPing":return this.onPairingPingRequest(f,g);case"wc_pairingDelete":return this.onPairingDeleteRequest(f,g);default:return this.onUnknownRpcMethodRequest(f,g)}},this.onRelayEventResponse=function(){var u=S(function*(f){const{topic:g,payload:I}=f,X=(yield s.core.history.get(g,I.id)).request.method;return"wc_pairingPing"===X?s.onPairingPingResponse(g,I):s.onUnknownRpcMethodResponse(X)});return function(f){return u.apply(this,arguments)}}(),this.onPairingPingRequest=function(){var u=S(function*(f,g){const{id:I}=g;try{s.isValidPing({topic:f}),yield s.sendResult(I,f,!0),s.events.emit("pairing_ping",{id:I,topic:f})}catch(X){yield s.sendError(I,f,X),s.logger.error(X)}});return function(f,g){return u.apply(this,arguments)}}(),this.onPairingPingResponse=(u,f)=>{const{id:g}=f;setTimeout(()=>{jn(f)?this.events.emit(fr("pairing_ping",g),{}):gn(f)&&this.events.emit(fr("pairing_ping",g),{error:f.error})},500)},this.onPairingDeleteRequest=function(){var u=S(function*(f,g){const{id:I}=g;try{s.isValidDisconnect({topic:f}),yield s.deletePairing(f),s.events.emit("pairing_delete",{id:I,topic:f})}catch(X){yield s.sendError(I,f,X),s.logger.error(X)}});return function(f,g){return u.apply(this,arguments)}}(),this.onUnknownRpcMethodRequest=function(){var u=S(function*(f,g){const{id:I,method:X}=g;try{if(s.registeredMethods.includes(X))return;const Y=lr("WC_METHOD_UNSUPPORTED",X);yield s.sendError(I,f,Y),s.logger.error(Y)}catch(Y){yield s.sendError(I,f,Y),s.logger.error(Y)}});return function(f,g){return u.apply(this,arguments)}}(),this.onUnknownRpcMethodResponse=u=>{this.registeredMethods.includes(u)||this.logger.error(lr("WC_METHOD_UNSUPPORTED",u))},this.isValidPair=u=>{if(!jr(u)){const{message:f}=Ne("MISSING_OR_INVALID",`pair() params: ${u}`);throw new Error(f)}if(!function qp(a){if(vr(a,!1))try{return typeof new URL(a)<"u"}catch{return!1}return!1}(u.uri)){const{message:f}=Ne("MISSING_OR_INVALID",`pair() uri: ${u.uri}`);throw new Error(f)}},this.isValidPing=function(){var u=S(function*(f){if(!jr(f)){const{message:I}=Ne("MISSING_OR_INVALID",`ping() params: ${f}`);throw new Error(I)}const{topic:g}=f;yield s.isValidPairingTopic(g)});return function(f){return u.apply(this,arguments)}}(),this.isValidDisconnect=function(){var u=S(function*(f){if(!jr(f)){const{message:I}=Ne("MISSING_OR_INVALID",`disconnect() params: ${f}`);throw new Error(I)}const{topic:g}=f;yield s.isValidPairingTopic(g)});return function(f){return u.apply(this,arguments)}}(),this.isValidPairingTopic=function(){var u=S(function*(f){if(!vr(f,!1)){const{message:g}=Ne("MISSING_OR_INVALID",`pairing topic should be a string: ${f}`);throw new Error(g)}if(!s.pairings.keys.includes(f)){const{message:g}=Ne("NO_MATCHING_KEY",`pairing topic doesn't exist: ${f}`);throw new Error(g)}if(Jn(s.pairings.get(f).expiry)){yield s.deletePairing(f);const{message:g}=Ne("EXPIRED",`pairing topic: ${f}`);throw new Error(g)}});return function(f){return u.apply(this,arguments)}}(),this.core=r,this.logger=(0,j.generateChildLogger)(t,this.name),this.pairings=new lo(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,j.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}registerRelayerEvents(){var r=this;this.core.relayer.on("relayer_message",function(){var t=S(function*(s){const{topic:u,message:f}=s;if(!r.pairings.keys.includes(u)||r.ignoredPayloadTypes.includes(r.core.crypto.getPayloadType(f)))return;const g=yield r.core.crypto.decode(u,f);Va(g)?(r.core.history.set(u,g),r.onRelayEventRequest({topic:u,payload:g})):co(g)&&(yield r.core.history.resolve(g),yield r.onRelayEventResponse({topic:u,payload:g}),r.core.history.delete(u,g.id))});return function(s){return t.apply(this,arguments)}}())}registerExpirerEvents(){var r=this;this.core.expirer.on(Xr_expired,function(){var t=S(function*(s){const{topic:u}=Wc(s.target);u&&r.pairings.keys.includes(u)&&(yield r.deletePairing(u,!0),r.events.emit("pairing_expire",{topic:u}))});return function(s){return t.apply(this,arguments)}}())}}class Yy extends T{constructor(r,t){var s;super(r,t),s=this,this.core=r,this.logger=t,this.records=new Map,this.events=new me.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Xn,this.init=S(function*(){s.initialized||(s.logger.trace("Initialized"),yield s.restore(),s.cached.forEach(u=>s.records.set(u.id,u)),s.cached=[],s.registerEventListeners(),s.initialized=!0)}),this.set=(u,f,g)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:u,request:f,chainId:g}),this.records.has(f.id))return;const I={id:f.id,topic:u,request:{method:f.method,params:f.params||null},chainId:g,expiry:pn(G.THIRTY_DAYS)};this.records.set(I.id,I),this.events.emit("history_created",I)},this.resolve=function(){var u=S(function*(f){if(s.isInitialized(),s.logger.debug("Updating JSON-RPC response history record"),s.logger.trace({type:"method",method:"update",response:f}),!s.records.has(f.id))return;const g=yield s.getRecord(f.id);typeof g.response>"u"&&(g.response=gn(f)?{error:f.error}:{result:f.result},s.records.set(g.id,g),s.events.emit("history_updated",g))});return function(f){return u.apply(this,arguments)}}(),this.get=function(){var u=S(function*(f,g){return s.isInitialized(),s.logger.debug("Getting record"),s.logger.trace({type:"method",method:"get",topic:f,id:g}),yield s.getRecord(g)});return function(f,g){return u.apply(this,arguments)}}(),this.delete=(u,f)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:f}),this.values.forEach(g=>{if(g.topic===u){if(typeof f<"u"&&g.id!==f)return;this.records.delete(g.id),this.events.emit("history_deleted",g)}})},this.exists=function(){var u=S(function*(f,g){return s.isInitialized(),!!s.records.has(g)&&(yield s.getRecord(g)).topic===f});return function(f,g){return u.apply(this,arguments)}}(),this.on=(u,f)=>{this.events.on(u,f)},this.once=(u,f)=>{this.events.once(u,f)},this.off=(u,f)=>{this.events.off(u,f)},this.removeListener=(u,f)=>{this.events.removeListener(u,f)},this.logger=(0,j.generateChildLogger)(t,this.name)}get context(){return(0,j.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const r=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;const s={topic:t.topic,request:ao(t.request.method,t.request.params,t.id),chainId:t.chainId};return r.push(s)}),r}setJsonRpcRecords(r){var t=this;return S(function*(){yield t.core.storage.setItem(t.storageKey,r)})()}getJsonRpcRecords(){var r=this;return S(function*(){return yield r.core.storage.getItem(r.storageKey)})()}getRecord(r){this.isInitialized();const t=this.records.get(r);if(!t){const{message:s}=Ne("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(s)}return t}persist(){var r=this;return S(function*(){yield r.setJsonRpcRecords(r.values),r.events.emit("history_sync")})()}restore(){var r=this;return S(function*(){try{const t=yield r.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(r.records.size){const{message:s}=Ne("RESTORE_WILL_OVERRIDE",r.name);throw r.logger.error(s),new Error(s)}r.cached=t,r.logger.debug(`Successfully Restored records for ${r.name}`),r.logger.trace({type:"method",method:"restore",records:r.values})}catch(t){r.logger.debug(`Failed to Restore records for ${r.name}`),r.logger.error(t)}})()}registerEventListeners(){this.events.on("history_created",r=>{const t="history_created";this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:r}),this.persist()}),this.events.on("history_updated",r=>{const t="history_updated";this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:r}),this.persist()}),this.events.on("history_deleted",r=>{const t="history_deleted";this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:r}),this.persist()}),this.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(r=>{(0,G.toMiliseconds)(r.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${r.id}`),this.delete(r.topic,r.id))})}catch(r){this.logger.warn(r)}}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Xy extends D{constructor(r,t){var s;super(r,t),s=this,this.core=r,this.logger=t,this.expirations=new Map,this.events=new me.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Xn,this.init=S(function*(){s.initialized||(s.logger.trace("Initialized"),yield s.restore(),s.cached.forEach(u=>s.expirations.set(u.target,u)),s.cached=[],s.registerEventListeners(),s.initialized=!0)}),this.has=u=>{try{const f=this.formatTarget(u);return typeof this.getExpiration(f)<"u"}catch{return!1}},this.set=(u,f)=>{this.isInitialized();const g=this.formatTarget(u),I={target:g,expiry:f};this.expirations.set(g,I),this.checkExpiry(g,I),this.events.emit("expirer_created",{target:g,expiration:I})},this.get=u=>{this.isInitialized();const f=this.formatTarget(u);return this.getExpiration(f)},this.del=u=>{if(this.isInitialized(),this.has(u)){const f=this.formatTarget(u),g=this.getExpiration(f);this.expirations.delete(f),this.events.emit("expirer_deleted",{target:f,expiration:g})}},this.on=(u,f)=>{this.events.on(u,f)},this.once=(u,f)=>{this.events.once(u,f)},this.off=(u,f)=>{this.events.off(u,f)},this.removeListener=(u,f)=>{this.events.removeListener(u,f)},this.logger=(0,j.generateChildLogger)(t,this.name)}get context(){return(0,j.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(r){if("string"==typeof r)return function yp(a){return qc("topic",a)}(r);if("number"==typeof r)return function vp(a){return qc("id",a)}(r);const{message:t}=Ne("UNKNOWN_TYPE","Target type: "+typeof r);throw new Error(t)}setExpirations(r){var t=this;return S(function*(){yield t.core.storage.setItem(t.storageKey,r)})()}getExpirations(){var r=this;return S(function*(){return yield r.core.storage.getItem(r.storageKey)})()}persist(){var r=this;return S(function*(){yield r.setExpirations(r.values),r.events.emit("expirer_sync")})()}restore(){var r=this;return S(function*(){try{const t=yield r.getExpirations();if(typeof t>"u"||!t.length)return;if(r.expirations.size){const{message:s}=Ne("RESTORE_WILL_OVERRIDE",r.name);throw r.logger.error(s),new Error(s)}r.cached=t,r.logger.debug(`Successfully Restored expirations for ${r.name}`),r.logger.trace({type:"method",method:"restore",expirations:r.values})}catch(t){r.logger.debug(`Failed to Restore expirations for ${r.name}`),r.logger.error(t)}})()}getExpiration(r){const t=this.expirations.get(r);if(!t){const{message:s}=Ne("NO_MATCHING_KEY",`${this.name}: ${r}`);throw this.logger.error(s),new Error(s)}return t}checkExpiry(r,t){const{expiry:s}=t;(0,G.toMiliseconds)(s)-Date.now()<=0&&this.expire(r,t)}expire(r,t){this.expirations.delete(r),this.events.emit(Xr_expired,{target:r,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((r,t)=>this.checkExpiry(t,r))}registerEventListeners(){this.core.heartbeat.on(ee.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on("expirer_created",r=>{const t="expirer_created";this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:r}),this.persist()}),this.events.on(Xr_expired,r=>{const t=Xr_expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:r}),this.persist()}),this.events.on("expirer_deleted",r=>{const t="expirer_deleted";this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:r}),this.persist()})}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}}class Qy extends class C{constructor(r,t){this.projectId=r,this.logger=t}}{constructor(r,t){var s;super(r,t),s=this,this.projectId=r,this.logger=t,this.name=Ga,this.initialized=!1,this.init=function(){var u=S(function*(f){Hc()||!ja()||(s.verifyUrl=f?.verifyUrl||Bf,yield s.createIframe())});return function(f){return u.apply(this,arguments)}}(),this.register=function(){var u=S(function*(f){var g;if(s.initialized||(yield s.init()),s.iframe)try{null==(g=s.iframe.contentWindow)||g.postMessage(f.attestationId,s.verifyUrl),s.logger.info(`postMessage sent: ${f.attestationId} ${s.verifyUrl}`)}catch{}});return function(f){return u.apply(this,arguments)}}(),this.resolve=function(){var u=S(function*(f){var g;if(s.isDevEnv)return"";s.logger.info(`resolving attestation: ${f.attestationId}`);const I=s.startAbortTimer(G.FIVE_SECONDS),X=yield fetch(`${s.verifyUrl}/attestation/${f.attestationId}`,{signal:s.abortController.signal});return clearTimeout(I),200===X.status?null==(g=yield X.json())?void 0:g.origin:""});return function(f){return u.apply(this,arguments)}}(),this.createIframe=S(function*(){try{yield Promise.race([new Promise((u,f)=>{if(document.getElementById(Ga))return u();const g=document.createElement("iframe");g.setAttribute("id",Ga),g.setAttribute("src",`${s.verifyUrl}/${s.projectId}`),g.style.display="none",g.addEventListener("load",()=>{s.initialized=!0,u()}),g.addEventListener("error",I=>{f(I)}),document.body.append(g),s.iframe=g}),new Promise(u=>{setTimeout(()=>u("iframe load timeout"),(0,G.toMiliseconds)(G.ONE_SECOND/2))})])}catch(u){s.logger.error(`Verify iframe failed to load: ${s.verifyUrl}`),s.logger.error(u)}}),this.logger=(0,j.generateChildLogger)(t,this.name),this.verifyUrl=Bf,this.abortController=new AbortController,this.isDevEnv=Fa()&&process.env.IS_VITEST}get context(){return(0,j.getLoggerContext)(this.logger)}startAbortTimer(r){return setTimeout(()=>this.abortController.abort(),(0,G.toMiliseconds)(r))}}var Zy=Object.defineProperty,kf=Object.getOwnPropertySymbols,e0=Object.prototype.hasOwnProperty,t0=Object.prototype.propertyIsEnumerable,Gf=(a,r,t)=>r in a?Zy(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,Jf=(a,r)=>{for(var t in r||(r={}))e0.call(r,t)&&Gf(a,t,r[t]);if(kf)for(var t of kf(r))t0.call(r,t)&&Gf(a,t,r[t]);return a};class Ya extends R{constructor(r){super(r),this.protocol="wc",this.version=2,this.name="core",this.events=new me.EventEmitter,this.initialized=!1,this.on=(s,u)=>this.events.on(s,u),this.once=(s,u)=>this.events.once(s,u),this.off=(s,u)=>this.events.off(s,u),this.removeListener=(s,u)=>this.events.removeListener(s,u),this.projectId=r?.projectId,this.relayUrl=r?.relayUrl||Uf;const t=typeof r?.logger<"u"&&"string"!=typeof r?.logger?r.logger:(0,j.pino)((0,j.getDefaultLoggerOptions)({level:r?.logger||"error"}));this.logger=(0,j.generateChildLogger)(t,this.name),this.heartbeat=new ee.HeartBeat,this.crypto=new Ty(this,this.logger,r?.keychain),this.history=new Yy(this,this.logger),this.expirer=new Xy(this,this.logger),this.storage=null!=r&&r.storage?r.storage:new Ee.ZP(Jf(Jf({},iy),r?.storageOptions)),this.relayer=new qy({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Jy(this,this.logger),this.verify=new Qy(this.projectId||"",this.logger)}static init(r){return S(function*(){const t=new Ya(r);yield t.initialize();const s=yield t.crypto.getClientId();return yield t.storage.setItem("WALLETCONNECT_CLIENT_ID",s),t})()}get context(){return(0,j.getLoggerContext)(this.logger)}start(){var r=this;return S(function*(){r.initialized||(yield r.initialize())})()}initialize(){var r=this;return S(function*(){r.logger.trace("Initialized");try{yield r.crypto.init(),yield r.history.init(),yield r.expirer.init(),yield r.relayer.init(),yield r.heartbeat.init(),yield r.pairing.init(),r.initialized=!0,r.logger.info("Core Initialization Success")}catch(t){throw r.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),r.logger.error(t.message),t}})()}}const r0=Ya,Xa="wc@2:client:",Zf="Proposal expired",ho=G.SEVEN_DAYS,gs={wc_sessionPropose:{req:{ttl:G.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:G.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:G.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:G.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:G.ONE_DAY,prompt:!1,tag:1104},res:{ttl:G.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:G.ONE_DAY,prompt:!1,tag:1106},res:{ttl:G.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:G.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:G.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:G.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:G.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:G.ONE_DAY,prompt:!1,tag:1112},res:{ttl:G.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:G.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:G.THIRTY_SECONDS,prompt:!1,tag:1115}}},Za={min:G.FIVE_MINUTES,max:G.SEVEN_DAYS},u0=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var c0=Object.defineProperty,f0=Object.defineProperties,l0=Object.getOwnPropertyDescriptors,el=Object.getOwnPropertySymbols,h0=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,tl=(a,r,t)=>r in a?c0(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,Qr=(a,r)=>{for(var t in r||(r={}))h0.call(r,t)&&tl(a,t,r[t]);if(el)for(var t of el(r))d0.call(r,t)&&tl(a,t,r[t]);return a},eu=(a,r)=>f0(a,l0(r));class p0 extends class W{constructor(r){this.client=r}}{constructor(r){var t;super(r),t=this,this.name="engine",this.events=new(De()),this.initialized=!1,this.ignoredPayloadTypes=[1],this.requestQueue={state:"idle",requests:[]},this.requestQueueDelay=G.ONE_SECOND,this.init=S(function*(){t.initialized||(yield t.cleanup(),t.registerRelayerEvents(),t.registerExpirerEvents(),t.client.core.pairing.register({methods:Object.keys(gs)}),t.initialized=!0,setTimeout(()=>{t.requestQueue.requests=t.getPendingSessionRequests(),t.processRequestQueue()},(0,G.toMiliseconds)(t.requestQueueDelay)))}),this.connect=function(){var s=S(function*(u){t.isInitialized();const f=eu(Qr({},u),{requiredNamespaces:u.requiredNamespaces||{},optionalNamespaces:u.optionalNamespaces||{}});yield t.isValidConnect(f);const{pairingTopic:g,requiredNamespaces:I,optionalNamespaces:X,sessionProperties:Y,relays:de}=f;let He,Oe=g,Ot=!1;if(Oe&&(Ot=t.client.core.pairing.pairings.get(Oe).active),!Oe||!Ot){const{topic:_t,uri:Nt}=yield t.client.core.pairing.create();Oe=_t,He=Nt}const Ue=yield t.client.core.crypto.generateKeyPair(),Ye=Qr({requiredNamespaces:I,optionalNamespaces:X,relays:de??[{protocol:"irn"}],proposer:{publicKey:Ue,metadata:t.client.metadata}},Y&&{sessionProperties:Y}),{reject:Xe,resolve:Rt,done:pr}=Li(G.FIVE_MINUTES,Zf);if(t.events.once(fr("session_connect"),function(){var _t=S(function*({error:Nt,session:xt}){if(Nt)Xe(Nt);else if(xt){xt.self.publicKey=Ue;const mr=eu(Qr({},xt),{requiredNamespaces:xt.requiredNamespaces,optionalNamespaces:xt.optionalNamespaces});yield t.client.session.set(xt.topic,mr),yield t.setExpiry(xt.topic,xt.expiry),Oe&&(yield t.client.core.pairing.updateMetadata({topic:Oe,metadata:xt.peer.metadata})),Rt(mr)}});return function(Nt){return _t.apply(this,arguments)}}()),!Oe){const{message:_t}=Ne("NO_MATCHING_KEY",`connect() pairing topic: ${Oe}`);throw new Error(_t)}const Ct=yield t.sendRequest(Oe,"wc_sessionPropose",Ye),Pt=pn(G.FIVE_MINUTES);return yield t.setProposal(Ct,Qr({id:Ct,expiry:Pt},Ye)),{uri:He,approval:pr}});return function(u){return s.apply(this,arguments)}}(),this.pair=function(){var s=S(function*(u){return t.isInitialized(),yield t.client.core.pairing.pair(u)});return function(u){return s.apply(this,arguments)}}(),this.approve=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidApprove(u);const{id:f,relayProtocol:g,namespaces:I,sessionProperties:X}=u,Y=t.client.proposal.get(f);let{pairingTopic:de,proposer:Oe,requiredNamespaces:He,optionalNamespaces:Ot}=Y;de=de||"",yi(He)||(He=function $p(a,r){const t=oo(a,r);if(t)throw new Error(t.message);const s={};for(const[u,f]of Object.entries(a))s[u]={methods:f.methods,events:f.events,chains:f.accounts.map(g=>`${g.split(":")[0]}:${g.split(":")[1]}`)};return s}(I,"approve()"));const Ue=yield t.client.core.crypto.generateKeyPair(),Ye=Oe.publicKey,Xe=yield t.client.core.crypto.generateSharedKey(Ue,Ye);de&&f&&(yield t.client.core.pairing.updateMetadata({topic:de,metadata:Oe.metadata}),yield t.sendResult(f,de,{relay:{protocol:g??"irn"},responderPublicKey:Ue}),yield t.client.proposal.delete(f,lr("USER_DISCONNECTED")),yield t.client.core.pairing.activate({topic:de}));const Rt=Qr({relay:{protocol:g??"irn"},namespaces:I,requiredNamespaces:He,optionalNamespaces:Ot,pairingTopic:de,controller:{publicKey:Ue,metadata:t.client.metadata},expiry:pn(ho)},X&&{sessionProperties:X});yield t.client.core.relayer.subscribe(Xe),yield t.sendRequest(Xe,"wc_sessionSettle",Rt);const pr=eu(Qr({},Rt),{topic:Xe,pairingTopic:de,acknowledged:!1,self:Rt.controller,peer:{publicKey:Oe.publicKey,metadata:Oe.metadata},controller:Ue});return yield t.client.session.set(Xe,pr),yield t.setExpiry(Xe,pn(ho)),{topic:Xe,acknowledged:()=>new Promise(Ct=>setTimeout(()=>Ct(t.client.session.get(Xe)),500))}});return function(u){return s.apply(this,arguments)}}(),this.reject=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidReject(u);const{id:f,reason:g}=u,{pairingTopic:I}=t.client.proposal.get(f);I&&(yield t.sendError(f,I,g),yield t.client.proposal.delete(f,lr("USER_DISCONNECTED")))});return function(u){return s.apply(this,arguments)}}(),this.update=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidUpdate(u);const{topic:f,namespaces:g}=u,I=yield t.sendRequest(f,"wc_sessionUpdate",{namespaces:g}),{done:X,resolve:Y,reject:de}=Li();return t.events.once(fr("session_update",I),({error:Oe})=>{Oe?de(Oe):Y()}),yield t.client.session.update(f,{namespaces:g}),{acknowledged:X}});return function(u){return s.apply(this,arguments)}}(),this.extend=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidExtend(u);const{topic:f}=u,g=yield t.sendRequest(f,"wc_sessionExtend",{}),{done:I,resolve:X,reject:Y}=Li();return t.events.once(fr("session_extend",g),({error:de})=>{de?Y(de):X()}),yield t.setExpiry(f,pn(ho)),{acknowledged:I}});return function(u){return s.apply(this,arguments)}}(),this.request=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidRequest(u);const{chainId:f,request:g,topic:I,expiry:X}=u,Y=yield t.sendRequest(I,"wc_sessionRequest",{request:g,chainId:f},X),{done:de,resolve:Oe,reject:He}=Li(X);return t.events.once(fr("session_request",Y),({error:Ue,result:Ye})=>{Ue?He(Ue):Oe(Ye)}),t.client.events.emit("session_request_sent",{topic:I,request:g,chainId:f,id:Y}),function mp(a){La.apply(this,arguments)}({id:Y,topic:I,wcDeepLink:yield t.client.core.storage.getItem("WALLETCONNECT_DEEPLINK_CHOICE")}),yield de()});return function(u){return s.apply(this,arguments)}}(),this.respond=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidRespond(u);const{topic:f,response:g}=u,{id:I}=g;jn(g)?yield t.sendResult(I,f,g.result):gn(g)&&(yield t.sendError(I,f,g.error)),t.cleanupAfterResponse(u)});return function(u){return s.apply(this,arguments)}}(),this.ping=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidPing(u);const{topic:f}=u;if(t.client.session.keys.includes(f)){const g=yield t.sendRequest(f,"wc_sessionPing",{}),{done:I,resolve:X,reject:Y}=Li();t.events.once(fr("session_ping",g),({error:de})=>{de?Y(de):X()}),yield I()}else t.client.core.pairing.pairings.keys.includes(f)&&(yield t.client.core.pairing.ping({topic:f}))});return function(u){return s.apply(this,arguments)}}(),this.emit=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidEmit(u);const{topic:f,event:g,chainId:I}=u;yield t.sendRequest(f,"wc_sessionEvent",{event:g,chainId:I})});return function(u){return s.apply(this,arguments)}}(),this.disconnect=function(){var s=S(function*(u){t.isInitialized(),yield t.isValidDisconnect(u);const{topic:f}=u;if(t.client.session.keys.includes(f)){const g=za().toString();let I;const X=Y=>{Y?.id.toString()===g&&(t.client.core.relayer.events.removeListener("relayer_message_ack",X),I())};yield Promise.all([new Promise(Y=>{I=Y,t.client.core.relayer.on("relayer_message_ack",X)}),t.sendRequest(f,"wc_sessionDelete",lr("USER_DISCONNECTED"),void 0,g)]),yield t.deleteSession(f)}else yield t.client.core.pairing.disconnect({topic:f})});return function(u){return s.apply(this,arguments)}}(),this.find=s=>(this.isInitialized(),this.client.session.getAll().filter(u=>function Vp(a,r){const{requiredNamespaces:t}=r,s=Object.keys(a.namespaces),u=Object.keys(t);let f=!0;return!!gi(u,s)&&(s.forEach(g=>{const{accounts:I,methods:X,events:Y}=a.namespaces[g],de=Ui(I),Oe=t[g];gi(Hr(g,Oe),de)&&gi(Oe.methods,X)&&gi(Oe.events,Y)||(f=!1)}),f)}(u,s))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=function(){var s=S(function*(u){if(u.pairingTopic)try{const f=t.client.core.pairing.pairings.get(u.pairingTopic),g=t.client.core.pairing.pairings.getAll().filter(I=>{var X,Y;return(null==(X=I.peerMetadata)?void 0:X.url)&&(null==(Y=I.peerMetadata)?void 0:Y.url)===u.peer.metadata.url&&I.topic&&I.topic!==f.topic});if(0===g.length)return;t.client.logger.info(`Cleaning up ${g.length} duplicate pairing(s)`),yield Promise.all(g.map(I=>t.client.core.pairing.disconnect({topic:I.topic}))),t.client.logger.info("Duplicate pairings clean up finished")}catch(f){t.client.logger.error(f)}});return function(u){return s.apply(this,arguments)}}(),this.deleteSession=function(){var s=S(function*(u,f){const{self:g}=t.client.session.get(u);yield t.client.core.relayer.unsubscribe(u),t.client.session.delete(u,lr("USER_DISCONNECTED")),t.client.core.crypto.keychain.has(g.publicKey)&&(yield t.client.core.crypto.deleteKeyPair(g.publicKey)),t.client.core.crypto.keychain.has(u)&&(yield t.client.core.crypto.deleteSymKey(u)),f||t.client.core.expirer.del(u)});return function(u,f){return s.apply(this,arguments)}}(),this.deleteProposal=function(){var s=S(function*(u,f){yield Promise.all([t.client.proposal.delete(u,lr("USER_DISCONNECTED")),f?Promise.resolve():t.client.core.expirer.del(u)])});return function(u,f){return s.apply(this,arguments)}}(),this.deletePendingSessionRequest=function(){var s=S(function*(u,f,g=!1){yield Promise.all([t.client.pendingRequest.delete(u,f),g?Promise.resolve():t.client.core.expirer.del(u)]),t.requestQueue.requests=t.requestQueue.requests.filter(I=>I.id!==u),g&&(t.requestQueue.state="idle")});return function(u,f){return s.apply(this,arguments)}}(),this.setExpiry=function(){var s=S(function*(u,f){t.client.session.keys.includes(u)&&(yield t.client.session.update(u,{expiry:f})),t.client.core.expirer.set(u,f)});return function(u,f){return s.apply(this,arguments)}}(),this.setProposal=function(){var s=S(function*(u,f){yield t.client.proposal.set(u,f),t.client.core.expirer.set(u,f.expiry)});return function(u,f){return s.apply(this,arguments)}}(),this.setPendingSessionRequest=function(){var s=S(function*(u){const f=gs.wc_sessionRequest.req.ttl,{id:g,topic:I,params:X}=u;yield t.client.pendingRequest.set(g,{id:g,topic:I,params:X}),f&&t.client.core.expirer.set(g,pn(f))});return function(u){return s.apply(this,arguments)}}(),this.sendRequest=function(){var s=S(function*(u,f,g,I,X){const Y=ao(f,g);if(ja()&&u0.includes(f)){const He=ji(JSON.stringify(Y));yield t.client.core.verify.register({attestationId:He})}const de=yield t.client.core.crypto.encode(u,Y),Oe=gs[f].req;return I&&(Oe.ttl=I),X&&(Oe.id=X),t.client.core.history.set(u,Y),t.client.core.relayer.publish(u,de,Oe),Y.id});return function(u,f,g,I,X){return s.apply(this,arguments)}}(),this.sendResult=function(){var s=S(function*(u,f,g){const I=Ha(u,g),X=yield t.client.core.crypto.encode(f,I),Y=yield t.client.core.history.get(f,u);t.client.core.relayer.publish(f,X,gs[Y.request.method].res),yield t.client.core.history.resolve(I)});return function(u,f,g){return s.apply(this,arguments)}}(),this.sendError=function(){var s=S(function*(u,f,g){const I=uo(u,g),X=yield t.client.core.crypto.encode(f,I),Y=yield t.client.core.history.get(f,u);t.client.core.relayer.publish(f,X,gs[Y.request.method].res),yield t.client.core.history.resolve(I)});return function(u,f,g){return s.apply(this,arguments)}}(),this.cleanup=S(function*(){const s=[],u=[];t.client.session.getAll().forEach(f=>{Jn(f.expiry)&&s.push(f.topic)}),t.client.proposal.getAll().forEach(f=>{Jn(f.expiry)&&u.push(f.id)}),yield Promise.all([...s.map(f=>t.deleteSession(f)),...u.map(f=>t.deleteProposal(f))])}),this.onRelayEventRequest=s=>{const{topic:u,payload:f}=s,g=f.method;switch(g){case"wc_sessionPropose":return this.onSessionProposeRequest(u,f);case"wc_sessionSettle":return this.onSessionSettleRequest(u,f);case"wc_sessionUpdate":return this.onSessionUpdateRequest(u,f);case"wc_sessionExtend":return this.onSessionExtendRequest(u,f);case"wc_sessionPing":return this.onSessionPingRequest(u,f);case"wc_sessionDelete":return this.onSessionDeleteRequest(u,f);case"wc_sessionRequest":return this.onSessionRequest(u,f);case"wc_sessionEvent":return this.onSessionEventRequest(u,f);default:return this.client.logger.info(`Unsupported request method ${g}`)}},this.onRelayEventResponse=function(){var s=S(function*(u){const{topic:f,payload:g}=u,I=(yield t.client.core.history.get(f,g.id)).request.method;switch(I){case"wc_sessionPropose":return t.onSessionProposeResponse(f,g);case"wc_sessionSettle":return t.onSessionSettleResponse(f,g);case"wc_sessionUpdate":return t.onSessionUpdateResponse(f,g);case"wc_sessionExtend":return t.onSessionExtendResponse(f,g);case"wc_sessionPing":return t.onSessionPingResponse(f,g);case"wc_sessionRequest":return t.onSessionRequestResponse(f,g);default:return t.client.logger.info(`Unsupported response method ${I}`)}});return function(u){return s.apply(this,arguments)}}(),this.onRelayEventUnknownPayload=s=>{const{topic:u}=s,{message:f}=Ne("MISSING_OR_INVALID",`Decoded payload on topic ${u} is not identifiable as a JSON-RPC request or a response.`);throw new Error(f)},this.onSessionProposeRequest=function(){var s=S(function*(u,f){const{params:g,id:I}=f;try{t.isValidConnect(Qr({},f.params));const X=pn(G.FIVE_MINUTES),Y=Qr({id:I,pairingTopic:u,expiry:X},g);yield t.setProposal(I,Y);const de=ji(JSON.stringify(f)),Oe=yield t.getVerifyContext(de,Y.proposer.metadata);t.client.events.emit("session_proposal",{id:I,params:Y,verifyContext:Oe})}catch(X){yield t.sendError(I,u,X),t.client.logger.error(X)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionProposeResponse=function(){var s=S(function*(u,f){const{id:g}=f;if(jn(f)){const{result:I}=f;t.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:I});const X=t.client.proposal.get(g);t.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:X});const Y=X.proposer.publicKey;t.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:Y});const de=I.responderPublicKey;t.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:de});const Oe=yield t.client.core.crypto.generateSharedKey(Y,de);t.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:Oe});const He=yield t.client.core.relayer.subscribe(Oe);t.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:He}),yield t.client.core.pairing.activate({topic:u})}else gn(f)&&(yield t.client.proposal.delete(g,lr("USER_DISCONNECTED")),t.events.emit(fr("session_connect"),{error:f.error}))});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionSettleRequest=function(){var s=S(function*(u,f){const{id:g,params:I}=f;try{t.isValidSessionSettleRequest(I);const{relay:X,controller:Y,expiry:de,namespaces:Oe,requiredNamespaces:He,optionalNamespaces:Ot,sessionProperties:Ue,pairingTopic:Ye}=f.params,Xe=Qr({topic:u,relay:X,expiry:de,namespaces:Oe,acknowledged:!0,pairingTopic:Ye,requiredNamespaces:He,optionalNamespaces:Ot,controller:Y.publicKey,self:{publicKey:"",metadata:t.client.metadata},peer:{publicKey:Y.publicKey,metadata:Y.metadata}},Ue&&{sessionProperties:Ue});yield t.sendResult(f.id,u,!0),t.events.emit(fr("session_connect"),{session:Xe}),t.cleanupDuplicatePairings(Xe)}catch(X){yield t.sendError(g,u,X),t.client.logger.error(X)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionSettleResponse=function(){var s=S(function*(u,f){const{id:g}=f;jn(f)?(yield t.client.session.update(u,{acknowledged:!0}),t.events.emit(fr("session_approve",g),{})):gn(f)&&(yield t.client.session.delete(u,lr("USER_DISCONNECTED")),t.events.emit(fr("session_approve",g),{error:f.error}))});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionUpdateRequest=function(){var s=S(function*(u,f){const{params:g,id:I}=f;try{t.isValidUpdate(Qr({topic:u},g)),yield t.client.session.update(u,{namespaces:g.namespaces}),yield t.sendResult(I,u,!0),t.client.events.emit("session_update",{id:I,topic:u,params:g})}catch(X){yield t.sendError(I,u,X),t.client.logger.error(X)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionUpdateResponse=(s,u)=>{const{id:f}=u;jn(u)?this.events.emit(fr("session_update",f),{}):gn(u)&&this.events.emit(fr("session_update",f),{error:u.error})},this.onSessionExtendRequest=function(){var s=S(function*(u,f){const{id:g}=f;try{t.isValidExtend({topic:u}),yield t.setExpiry(u,pn(ho)),yield t.sendResult(g,u,!0),t.client.events.emit("session_extend",{id:g,topic:u})}catch(I){yield t.sendError(g,u,I),t.client.logger.error(I)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionExtendResponse=(s,u)=>{const{id:f}=u;jn(u)?this.events.emit(fr("session_extend",f),{}):gn(u)&&this.events.emit(fr("session_extend",f),{error:u.error})},this.onSessionPingRequest=function(){var s=S(function*(u,f){const{id:g}=f;try{t.isValidPing({topic:u}),yield t.sendResult(g,u,!0),t.client.events.emit("session_ping",{id:g,topic:u})}catch(I){yield t.sendError(g,u,I),t.client.logger.error(I)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionPingResponse=(s,u)=>{const{id:f}=u;setTimeout(()=>{jn(u)?this.events.emit(fr("session_ping",f),{}):gn(u)&&this.events.emit(fr("session_ping",f),{error:u.error})},500)},this.onSessionDeleteRequest=function(){var s=S(function*(u,f){const{id:g}=f;try{t.isValidDisconnect({topic:u,reason:f.params}),yield Promise.all([new Promise(I=>{t.client.core.relayer.once("relayer_publish",S(function*(){I(yield t.deleteSession(u))}))}),t.sendResult(g,u,!0)]),t.client.events.emit("session_delete",{id:g,topic:u})}catch(I){t.client.logger.error(I)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionRequest=function(){var s=S(function*(u,f){const{id:g,params:I}=f;try{t.isValidRequest(Qr({topic:u},I)),yield t.setPendingSessionRequest({id:g,topic:u,params:I}),t.addRequestToQueue({id:g,topic:u,params:I}),yield t.processRequestQueue()}catch(X){yield t.sendError(g,u,X),t.client.logger.error(X)}});return function(u,f){return s.apply(this,arguments)}}(),this.onSessionRequestResponse=(s,u)=>{const{id:f}=u;jn(u)?this.events.emit(fr("session_request",f),{result:u.result}):gn(u)&&this.events.emit(fr("session_request",f),{error:u.error})},this.onSessionEventRequest=function(){var s=S(function*(u,f){const{id:g,params:I}=f;try{t.isValidEmit(Qr({topic:u},I)),t.client.events.emit("session_event",{id:g,topic:u,params:I})}catch(X){yield t.sendError(g,u,X),t.client.logger.error(X)}});return function(u,f){return s.apply(this,arguments)}}(),this.addRequestToQueue=s=>{this.requestQueue.requests.push(s)},this.cleanupAfterResponse=s=>{this.deletePendingSessionRequest(s.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.requestQueue.state="idle",this.processRequestQueue()},(0,G.toMiliseconds)(this.requestQueueDelay))},this.processRequestQueue=S(function*(){if("active"===t.requestQueue.state)return void t.client.logger.info("session request queue is already active.");const s=t.requestQueue.requests[0];if(s)try{const{id:u,topic:f,params:g}=s,I=ji(JSON.stringify({id:u,params:g})),X=t.client.session.get(f),Y=yield t.getVerifyContext(I,X.peer.metadata);t.requestQueue.state="active",t.client.events.emit("session_request",{id:u,topic:f,params:g,verifyContext:Y})}catch(u){t.client.logger.error(u)}else t.client.logger.info("session request queue is empty.")}),this.isValidConnect=function(){var s=S(function*(u){if(!jr(u)){const{message:de}=Ne("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(u)}`);throw new Error(de)}const{pairingTopic:f,requiredNamespaces:g,optionalNamespaces:I,sessionProperties:X,relays:Y}=u;if(Cr(f)||(yield t.isValidPairingTopic(f)),!function tg(a,r){let t=!1;return r&&!a?t=!0:a&&_i(a)&&a.length&&a.forEach(s=>{t=ef(s)}),t}(Y,!0)){const{message:de}=Ne("MISSING_OR_INVALID",`connect() relays: ${Y}`);throw new Error(de)}!Cr(g)&&0!==yi(g)&&t.validateNamespaces(g,"requiredNamespaces"),!Cr(I)&&0!==yi(I)&&t.validateNamespaces(I,"optionalNamespaces"),Cr(X)||t.validateSessionProps(X,"sessionProperties")});return function(u){return s.apply(this,arguments)}}(),this.validateNamespaces=(s,u)=>{const f=function eg(a,r,t){let s=null;if(a&&yi(a)){const u=Zc(a,r);u&&(s=u);const f=function Yp(a,r,t){let s=null;return Object.entries(a).forEach(([u,f])=>{if(s)return;const g=function Jp(a,r,t){let s=null;return _i(r)&&r.length?r.forEach(u=>{s||so(u)||(s=lr("UNSUPPORTED_CHAINS",`${t}, chain ${u} should be a string and conform to "namespace:chainId" format`))}):so(a)||(s=lr("UNSUPPORTED_CHAINS",`${t}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s}(u,Hr(u,f),`${r} ${t}`);g&&(s=g)}),s}(a,r,t);f&&(s=f)}else s=Ne("MISSING_OR_INVALID",`${r}, ${t} should be an object with data`);return s}(s,"connect()",u);if(f)throw new Error(f.message)},this.isValidApprove=function(){var s=S(function*(u){if(!jr(u))throw new Error(Ne("MISSING_OR_INVALID",`approve() params: ${u}`).message);const{id:f,namespaces:g,relayProtocol:I,sessionProperties:X}=u;yield t.isValidProposalId(f);const Y=t.client.proposal.get(f),de=oo(g,"approve()");if(de)throw new Error(de.message);const Oe=Ba(Y.requiredNamespaces,g,"approve()");if(Oe)throw new Error(Oe.message);if(!vr(I,!0)){const{message:He}=Ne("MISSING_OR_INVALID",`approve() relayProtocol: ${I}`);throw new Error(He)}Cr(X)||t.validateSessionProps(X,"sessionProperties")});return function(u){return s.apply(this,arguments)}}(),this.isValidReject=function(){var s=S(function*(u){if(!jr(u)){const{message:I}=Ne("MISSING_OR_INVALID",`reject() params: ${u}`);throw new Error(I)}const{id:f,reason:g}=u;if(yield t.isValidProposalId(f),!function ng(a){return!!(a&&"object"==typeof a&&a.code&&Ma(a.code,!1)&&a.message&&vr(a.message,!1))}(g)){const{message:I}=Ne("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(g)}`);throw new Error(I)}});return function(u){return s.apply(this,arguments)}}(),this.isValidSessionSettleRequest=s=>{if(!jr(s)){const{message:de}=Ne("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${s}`);throw new Error(de)}const{relay:u,controller:f,namespaces:g,expiry:I}=s;if(!ef(u)){const{message:de}=Ne("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(de)}const X=function Gp(a,r){let t=null;return vr(a?.publicKey,!1)||(t=Ne("MISSING_OR_INVALID",`${r} controller public key should be a string`)),t}(f,"onSessionSettleRequest()");if(X)throw new Error(X.message);const Y=oo(g,"onSessionSettleRequest()");if(Y)throw new Error(Y.message);if(Jn(I)){const{message:de}=Ne("EXPIRED","onSessionSettleRequest()");throw new Error(de)}},this.isValidUpdate=function(){var s=S(function*(u){if(!jr(u)){const{message:de}=Ne("MISSING_OR_INVALID",`update() params: ${u}`);throw new Error(de)}const{topic:f,namespaces:g}=u;yield t.isValidSessionTopic(f);const I=t.client.session.get(f),X=oo(g,"update()");if(X)throw new Error(X.message);const Y=Ba(I.requiredNamespaces,g,"update()");if(Y)throw new Error(Y.message)});return function(u){return s.apply(this,arguments)}}(),this.isValidExtend=function(){var s=S(function*(u){if(!jr(u)){const{message:g}=Ne("MISSING_OR_INVALID",`extend() params: ${u}`);throw new Error(g)}const{topic:f}=u;yield t.isValidSessionTopic(f)});return function(u){return s.apply(this,arguments)}}(),this.isValidRequest=function(){var s=S(function*(u){if(!jr(u)){const{message:de}=Ne("MISSING_OR_INVALID",`request() params: ${u}`);throw new Error(de)}const{topic:f,request:g,chainId:I,expiry:X}=u;yield t.isValidSessionTopic(f);const{namespaces:Y}=t.client.session.get(f);if(!tf(Y,I)){const{message:de}=Ne("MISSING_OR_INVALID",`request() chainId: ${I}`);throw new Error(de)}if(!function ig(a){return!(Cr(a)||!vr(a.method,!1))}(g)){const{message:de}=Ne("MISSING_OR_INVALID",`request() ${JSON.stringify(g)}`);throw new Error(de)}if(!function ag(a,r,t){return!!vr(t,!1)&&function Mp(a,r){const t=[];return Object.values(a).forEach(s=>{Ui(s.accounts).includes(r)&&t.push(...s.methods)}),t}(a,r).includes(t)}(Y,I,g.method)){const{message:de}=Ne("MISSING_OR_INVALID",`request() method: ${g.method}`);throw new Error(de)}if(X&&!function lg(a,r){return Ma(a,!1)&&a<=r.max&&a>=r.min}(X,Za)){const{message:de}=Ne("MISSING_OR_INVALID",`request() expiry: ${X}. Expiry must be a number (in seconds) between ${Za.min} and ${Za.max}`);throw new Error(de)}});return function(u){return s.apply(this,arguments)}}(),this.isValidRespond=function(){var s=S(function*(u){if(!jr(u)){const{message:I}=Ne("MISSING_OR_INVALID",`respond() params: ${u}`);throw new Error(I)}const{topic:f,response:g}=u;if(yield t.isValidSessionTopic(f),!function sg(a){return!(Cr(a)||Cr(a.result)&&Cr(a.error)||!Ma(a.id,!1)||!vr(a.jsonrpc,!1))}(g)){const{message:I}=Ne("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(g)}`);throw new Error(I)}});return function(u){return s.apply(this,arguments)}}(),this.isValidPing=function(){var s=S(function*(u){if(!jr(u)){const{message:g}=Ne("MISSING_OR_INVALID",`ping() params: ${u}`);throw new Error(g)}const{topic:f}=u;yield t.isValidSessionOrPairingTopic(f)});return function(u){return s.apply(this,arguments)}}(),this.isValidEmit=function(){var s=S(function*(u){if(!jr(u)){const{message:Y}=Ne("MISSING_OR_INVALID",`emit() params: ${u}`);throw new Error(Y)}const{topic:f,event:g,chainId:I}=u;yield t.isValidSessionTopic(f);const{namespaces:X}=t.client.session.get(f);if(!tf(X,I)){const{message:Y}=Ne("MISSING_OR_INVALID",`emit() chainId: ${I}`);throw new Error(Y)}if(!function og(a){return!(Cr(a)||!vr(a.name,!1))}(g)){const{message:Y}=Ne("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(g)}`);throw new Error(Y)}if(!function ug(a,r,t){return!!vr(t,!1)&&function Bp(a,r){const t=[];return Object.values(a).forEach(s=>{Ui(s.accounts).includes(r)&&t.push(...s.events)}),t}(a,r).includes(t)}(X,I,g.name)){const{message:Y}=Ne("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(g)}`);throw new Error(Y)}});return function(u){return s.apply(this,arguments)}}(),this.isValidDisconnect=function(){var s=S(function*(u){if(!jr(u)){const{message:g}=Ne("MISSING_OR_INVALID",`disconnect() params: ${u}`);throw new Error(g)}const{topic:f}=u;yield t.isValidSessionOrPairingTopic(f)});return function(u){return s.apply(this,arguments)}}(),this.getVerifyContext=function(){var s=S(function*(u,f){const g={verified:{verifyUrl:f.verifyUrl||"",validation:"UNKNOWN",origin:f.url||""}};try{const I=yield t.client.core.verify.resolve({attestationId:u,verifyUrl:f.verifyUrl});I&&(g.verified.origin=I,g.verified.validation=I===f.url?"VALID":"INVALID")}catch(I){t.client.logger.error(I)}return t.client.logger.info(`Verify context: ${JSON.stringify(g)}`),g});return function(u,f){return s.apply(this,arguments)}}(),this.validateSessionProps=(s,u)=>{Object.values(s).forEach(f=>{if(!vr(f,!1)){const{message:g}=Ne("MISSING_OR_INVALID",`${u} must be in Record format. Received: ${JSON.stringify(f)}`);throw new Error(g)}})}}isInitialized(){if(!this.initialized){const{message:r}=Ne("NOT_INITIALIZED",this.name);throw new Error(r)}}registerRelayerEvents(){var r=this;this.client.core.relayer.on("relayer_message",function(){var t=S(function*(s){const{topic:u,message:f}=s;if(r.ignoredPayloadTypes.includes(r.client.core.crypto.getPayloadType(f)))return;const g=yield r.client.core.crypto.decode(u,f);Va(g)?(r.client.core.history.set(u,g),r.onRelayEventRequest({topic:u,payload:g})):co(g)?(yield r.client.core.history.resolve(g),yield r.onRelayEventResponse({topic:u,payload:g}),r.client.core.history.delete(u,g.id)):r.onRelayEventUnknownPayload({topic:u,payload:g})});return function(s){return t.apply(this,arguments)}}())}registerExpirerEvents(){var r=this;this.client.core.expirer.on(Xr_expired,function(){var t=S(function*(s){const{topic:u,id:f}=Wc(s.target);if(f&&r.client.pendingRequest.keys.includes(f))return yield r.deletePendingSessionRequest(f,Ne("EXPIRED"),!0);u?r.client.session.keys.includes(u)&&(yield r.deleteSession(u,!0),r.client.events.emit("session_expire",{topic:u})):f&&(yield r.deleteProposal(f,!0),r.client.events.emit("proposal_expire",{id:f}))});return function(s){return t.apply(this,arguments)}}())}isValidPairingTopic(r){if(!vr(r,!1)){const{message:t}=Ne("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(r)){const{message:t}=Ne("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw new Error(t)}if(Jn(this.client.core.pairing.pairings.get(r).expiry)){const{message:t}=Ne("EXPIRED",`pairing topic: ${r}`);throw new Error(t)}}isValidSessionTopic(r){var t=this;return S(function*(){if(!vr(r,!1)){const{message:s}=Ne("MISSING_OR_INVALID",`session topic should be a string: ${r}`);throw new Error(s)}if(!t.client.session.keys.includes(r)){const{message:s}=Ne("NO_MATCHING_KEY",`session topic doesn't exist: ${r}`);throw new Error(s)}if(Jn(t.client.session.get(r).expiry)){yield t.deleteSession(r);const{message:s}=Ne("EXPIRED",`session topic: ${r}`);throw new Error(s)}})()}isValidSessionOrPairingTopic(r){var t=this;return S(function*(){if(t.client.session.keys.includes(r))yield t.isValidSessionTopic(r);else{if(!t.client.core.pairing.pairings.keys.includes(r)){if(vr(r,!1)){const{message:s}=Ne("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${r}`);throw new Error(s)}{const{message:s}=Ne("MISSING_OR_INVALID",`session or pairing topic should be a string: ${r}`);throw new Error(s)}}t.isValidPairingTopic(r)}})()}isValidProposalId(r){var t=this;return S(function*(){if(!function rg(a){return"number"==typeof a}(r)){const{message:s}=Ne("MISSING_OR_INVALID",`proposal id should be a number: ${r}`);throw new Error(s)}if(!t.client.proposal.keys.includes(r)){const{message:s}=Ne("NO_MATCHING_KEY",`proposal id doesn't exist: ${r}`);throw new Error(s)}if(Jn(t.client.proposal.get(r).expiry)){yield t.deleteProposal(r);const{message:s}=Ne("EXPIRED",`proposal id: ${r}`);throw new Error(s)}})()}}class g0 extends lo{constructor(r,t){super(r,t,"proposal",Xa),this.core=r,this.logger=t}}class _0 extends lo{constructor(r,t){super(r,t,"session",Xa),this.core=r,this.logger=t}}class y0 extends lo{constructor(r,t){super(r,t,"request",Xa,s=>s.id),this.core=r,this.logger=t}}class tu extends class q{constructor(r){this.opts=r,this.protocol="wc",this.version=2}}{constructor(r){var t;super(r),t=this,this.protocol="wc",this.version=2,this.name="client",this.events=new me.EventEmitter,this.on=(u,f)=>this.events.on(u,f),this.once=(u,f)=>this.events.once(u,f),this.off=(u,f)=>this.events.off(u,f),this.removeListener=(u,f)=>this.events.removeListener(u,f),this.removeAllListeners=u=>this.events.removeAllListeners(u),this.connect=function(){var u=S(function*(f){try{return yield t.engine.connect(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.pair=function(){var u=S(function*(f){try{return yield t.engine.pair(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.approve=function(){var u=S(function*(f){try{return yield t.engine.approve(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.reject=function(){var u=S(function*(f){try{return yield t.engine.reject(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.update=function(){var u=S(function*(f){try{return yield t.engine.update(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.extend=function(){var u=S(function*(f){try{return yield t.engine.extend(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.request=function(){var u=S(function*(f){try{return yield t.engine.request(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.respond=function(){var u=S(function*(f){try{return yield t.engine.respond(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.ping=function(){var u=S(function*(f){try{return yield t.engine.ping(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.emit=function(){var u=S(function*(f){try{return yield t.engine.emit(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.disconnect=function(){var u=S(function*(f){try{return yield t.engine.disconnect(f)}catch(g){throw t.logger.error(g.message),g}});return function(f){return u.apply(this,arguments)}}(),this.find=u=>{try{return this.engine.find(u)}catch(f){throw this.logger.error(f.message),f}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(u){throw this.logger.error(u.message),u}},this.name=r?.name||"client",this.metadata=r?.metadata||function cp(){return(0,Ia.D)()||{name:"",description:"",url:"",icons:[""]}}();const s=typeof r?.logger<"u"&&"string"!=typeof r?.logger?r.logger:(0,j.pino)((0,j.getDefaultLoggerOptions)({level:r?.logger||"error"}));this.core=r?.core||new r0(r),this.logger=(0,j.generateChildLogger)(s,this.name),this.session=new _0(this.core,this.logger),this.proposal=new g0(this.core,this.logger),this.pendingRequest=new y0(this.core,this.logger),this.engine=new p0(this)}static init(r){return S(function*(){const t=new tu(r);return yield t.initialize(),t})()}get context(){return(0,j.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}initialize(){var r=this;return S(function*(){r.logger.trace("Initialized");try{yield r.core.start(),yield r.session.init(),yield r.proposal.init(),yield r.pendingRequest.init(),yield r.engine.init(),r.core.verify.init({verifyUrl:r.metadata.verifyUrl}),r.logger.info("SignClient Initialization Success")}catch(t){throw r.logger.info("SignClient Initialization Failure"),r.logger.error(t.message),t}})()}}var v0=L(5928),rl=L.n(v0);const nl={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class sl{constructor(r,t=!1){if(this.url=r,this.disableProviderPing=t,this.events=new me.EventEmitter,this.isAvailable=!1,this.registering=!1,!hf(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);this.url=r,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(r,t){this.events.on(r,t)}once(r,t){this.events.once(r,t)}off(r,t){this.events.off(r,t)}removeListener(r,t){this.events.removeListener(r,t)}open(r=this.url){var t=this;return S(function*(){yield t.register(r)})()}close(){var r=this;return S(function*(){if(!r.isAvailable)throw new Error("Connection already closed");r.onClose()})()}send(r,t){var s=this;return S(function*(){s.isAvailable||(yield s.register());try{const u=Te(r),g=yield(yield rl()(s.url,Object.assign(Object.assign({},nl),{body:u}))).json();s.onPayload({data:g})}catch(u){s.onError(r.id,u)}})()}register(r=this.url){var t=this;return S(function*(){if(!hf(r))throw new Error(`Provided URL is not compatible with HTTP connection: ${r}`);if(t.registering){const s=t.events.getMaxListeners();return(t.events.listenerCount("register_error")>=s||t.events.listenerCount("open")>=s)&&t.events.setMaxListeners(s+1),new Promise((u,f)=>{t.events.once("register_error",g=>{t.resetMaxListeners(),f(g)}),t.events.once("open",()=>{if(t.resetMaxListeners(),typeof t.isAvailable>"u")return f(new Error("HTTP connection is missing or invalid"));u()})})}t.url=r,t.registering=!0;try{if(!t.disableProviderPing){const s=Te({id:1,jsonrpc:"2.0",method:"test",params:[]});yield rl()(r,Object.assign(Object.assign({},nl),{body:s}))}t.onOpen()}catch(s){const u=t.parseError(s);throw t.events.emit("register_error",u),t.onClose(),u}})()}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(r){if(typeof r.data>"u")return;const t="string"==typeof r.data?xe(r.data):r.data;this.events.emit("payload",t)}onError(r,t){const s=this.parseError(t),f=uo(r,s.message||s.toString());this.events.emit("payload",f)}parseError(r,t=this.url){return cf(r,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const Mi=sl,al="wc@2:universal_provider:";var a,r,ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ru={exports:{}};a=ru,r=ru.exports,function(){var t,g="Expected a function",X="__lodash_hash_undefined__",de="__lodash_placeholder__",vi=1/0,ei=9007199254740991,Sn=4294967295,iv=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Bi="[object Arguments]",yo="[object Array]",vs="[object Boolean]",ms="[object Date]",vo="[object Error]",mo="[object Function]",_l="[object GeneratorFunction]",_n="[object Map]",bs="[object Number]",Ln="[object Object]",yl="[object Promise]",ws="[object RegExp]",yn="[object Set]",Es="[object String]",bo="[object Symbol]",Ds="[object WeakMap]",xs="[object ArrayBuffer]",$i="[object DataView]",au="[object Float32Array]",uu="[object Float64Array]",cu="[object Int8Array]",fu="[object Int16Array]",lu="[object Int32Array]",hu="[object Uint8Array]",du="[object Uint8ClampedArray]",pu="[object Uint16Array]",gu="[object Uint32Array]",lv=/\b__p \+= '';/g,hv=/\b(__p \+=) '' \+/g,dv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vl=/&(?:amp|lt|gt|quot|#39);/g,ml=/[&<>"']/g,pv=RegExp(vl.source),gv=RegExp(ml.source),_v=/<%-([\s\S]+?)%>/g,yv=/<%([\s\S]+?)%>/g,bl=/<%=([\s\S]+?)%>/g,vv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mv=/^\w*$/,bv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_u=/[\\^$.*+?()[\]{}|]/g,wv=RegExp(_u.source),yu=/^\s+/,Ev=/\s/,Dv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xv=/\{\n\/\* \[wrapped with (.+)\] \*/,Sv=/,? & /,Ov=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Iv=/[()=,{}\[\]\/\s]/,Pv=/\\(\\)?/g,Av=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wl=/\w*$/,Cv=/^[-+]0x[0-9a-f]+$/i,Tv=/^0b[01]+$/i,Rv=/^\[object .+?Constructor\]$/,Nv=/^0o[0-7]+$/i,Fv=/^(?:0|[1-9]\d*)$/,jv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Lv=/['\n\r\u2028\u2029\\]/g,Eo="\\ud800-\\udfff",El="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Dl="\\u2700-\\u27bf",xl="a-z\\xdf-\\xf6\\xf8-\\xff",Sl="A-Z\\xc0-\\xd6\\xd8-\\xde",Ol="\\ufe0e\\ufe0f",Il="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Kv="["+Eo+"]",Pl="["+Il+"]",Do="["+El+"]",Al="\\d+",qv="["+Dl+"]",Cl="["+xl+"]",Tl="[^"+Eo+Il+Al+Dl+xl+Sl+"]",mu="\\ud83c[\\udffb-\\udfff]",Rl="[^"+Eo+"]",bu="(?:\\ud83c[\\udde6-\\uddff]){2}",wu="[\\ud800-\\udbff][\\udc00-\\udfff]",zi="["+Sl+"]",Fl="(?:"+Cl+"|"+Tl+")",kv="(?:"+zi+"|"+Tl+")",jl="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ll="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ul="(?:"+Do+"|"+mu+")?",Ml="["+Ol+"]?",Bl=Ml+Ul+"(?:\\u200d(?:"+[Rl,bu,wu].join("|")+")"+Ml+Ul+")*",Xv="(?:"+[qv,bu,wu].join("|")+")"+Bl,Qv="(?:"+[Rl+Do+"?",Do,bu,wu,Kv].join("|")+")",Zv=RegExp("['\u2019]","g"),e1=RegExp(Do,"g"),Eu=RegExp(mu+"(?="+mu+")|"+Qv+Bl,"g"),t1=RegExp([zi+"?"+Cl+"+"+jl+"(?="+[Pl,zi,"$"].join("|")+")",kv+"+"+Ll+"(?="+[Pl,zi+Fl,"$"].join("|")+")",zi+"?"+Fl+"+"+jl,zi+"+"+Ll,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Al,Xv].join("|"),"g"),r1=RegExp("[\\u200d"+Eo+El+Ol+"]"),n1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,i1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],s1=-1,Mt={};Mt[au]=Mt[uu]=Mt[cu]=Mt[fu]=Mt[lu]=Mt[hu]=Mt[du]=Mt[pu]=Mt[gu]=!0,Mt[Bi]=Mt[yo]=Mt[xs]=Mt[vs]=Mt[$i]=Mt[ms]=Mt[vo]=Mt[mo]=Mt[_n]=Mt[bs]=Mt[Ln]=Mt[ws]=Mt[yn]=Mt[Es]=Mt[Ds]=!1;var Lt={};Lt[Bi]=Lt[yo]=Lt[xs]=Lt[$i]=Lt[vs]=Lt[ms]=Lt[au]=Lt[uu]=Lt[cu]=Lt[fu]=Lt[lu]=Lt[_n]=Lt[bs]=Lt[Ln]=Lt[ws]=Lt[yn]=Lt[Es]=Lt[bo]=Lt[hu]=Lt[du]=Lt[pu]=Lt[gu]=!0,Lt[vo]=Lt[mo]=Lt[Ds]=!1;var c1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},f1=parseFloat,l1=parseInt,$l="object"==typeof ys&&ys&&ys.Object===Object&&ys,h1="object"==typeof self&&self&&self.Object===Object&&self,xr=$l||h1||Function("return this")(),Du=r&&!r.nodeType&&r,mi=Du&&a&&!a.nodeType&&a,zl=mi&&mi.exports===Du,xu=zl&&$l.process,en=function(){try{return mi&&mi.require&&mi.require("util").types||xu&&xu.binding&&xu.binding("util")}catch{}}(),Hl=en&&en.isArrayBuffer,Vl=en&&en.isDate,Kl=en&&en.isMap,ql=en&&en.isRegExp,Wl=en&&en.isSet,kl=en&&en.isTypedArray;function Vr(ne,ve,ge){switch(ge.length){case 0:return ne.call(ve);case 1:return ne.call(ve,ge[0]);case 2:return ne.call(ve,ge[0],ge[1]);case 3:return ne.call(ve,ge[0],ge[1],ge[2])}return ne.apply(ve,ge)}function d1(ne,ve,ge,je){for(var Ze=-1,St=null==ne?0:ne.length;++Ze-1}function Su(ne,ve,ge){for(var je=-1,Ze=null==ne?0:ne.length;++je-1;);return ge}function th(ne,ve){for(var ge=ne.length;ge--&&Hi(ve,ne[ge],0)>-1;);return ge}function E1(ne,ve){for(var ge=ne.length,je=0;ge--;)ne[ge]===ve&&++je;return je}var D1=Au({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),x1=Au({"&":"&","<":"<",">":">",'"':""","'":"'"});function S1(ne){return"\\"+c1[ne]}function Vi(ne){return r1.test(ne)}function Nu(ne){var ve=-1,ge=Array(ne.size);return ne.forEach(function(je,Ze){ge[++ve]=[Ze,je]}),ge}function rh(ne,ve){return function(ge){return ne(ve(ge))}}function ni(ne,ve){for(var ge=-1,je=ne.length,Ze=0,St=[];++ge",""":'"',"'":"'"}),qi=function ne(ve){var e,ge=(ve=null==ve?xr:qi.defaults(xr.Object(),ve,qi.pick(xr,i1))).Array,je=ve.Date,Ze=ve.Error,St=ve.Function,gr=ve.Math,Ft=ve.Object,Fu=ve.RegExp,U1=ve.String,rn=ve.TypeError,Io=ge.prototype,Wi=Ft.prototype,Po=ve["__core-js_shared__"],Ao=St.prototype.toString,At=Wi.hasOwnProperty,B1=0,ih=(e=/[^.]+$/.exec(Po&&Po.keys&&Po.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Co=Wi.toString,$1=Ao.call(Ft),z1=xr._,H1=Fu("^"+Ao.call(At).replace(_u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),To=zl?ve.Buffer:t,ii=ve.Symbol,Ro=ve.Uint8Array,sh=To?To.allocUnsafe:t,No=rh(Ft.getPrototypeOf,Ft),oh=Ft.create,ah=Wi.propertyIsEnumerable,Fo=Io.splice,uh=ii?ii.isConcatSpreadable:t,Os=ii?ii.iterator:t,bi=ii?ii.toStringTag:t,jo=function(){try{var e=Si(Ft,"defineProperty");return e({},"",{}),e}catch{}}(),V1=ve.clearTimeout!==xr.clearTimeout&&ve.clearTimeout,K1=je&&je.now!==xr.Date.now&&je.now,q1=ve.setTimeout!==xr.setTimeout&&ve.setTimeout,Lo=gr.ceil,Uo=gr.floor,ju=Ft.getOwnPropertySymbols,W1=To?To.isBuffer:t,ch=ve.isFinite,k1=Io.join,G1=rh(Ft.keys,Ft),_r=gr.max,Ir=gr.min,J1=je.now,Y1=ve.parseInt,fh=gr.random,X1=Io.reverse,Lu=Si(ve,"DataView"),Is=Si(ve,"Map"),Uu=Si(ve,"Promise"),ki=Si(ve,"Set"),Ps=Si(ve,"WeakMap"),As=Si(Ft,"create"),Mo=Ps&&new Ps,Gi={},Q1=Oi(Lu),Z1=Oi(Is),em=Oi(Uu),tm=Oi(ki),rm=Oi(Ps),Bo=ii?ii.prototype:t,Cs=Bo?Bo.valueOf:t,lh=Bo?Bo.toString:t;function O(e){if(Jt(e)&&!et(e)&&!(e instanceof dt)){if(e instanceof nn)return e;if(At.call(e,"__wrapped__"))return hd(e)}return new nn(e)}var Ji=function(){function e(){}return function(n){if(!Kt(n))return{};if(oh)return oh(n);e.prototype=n;var o=new e;return e.prototype=t,o}}();function $o(){}function nn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function dt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Sn,this.__views__=[]}function wi(e){var n=-1,o=null==e?0:e.length;for(this.clear();++n=n?e:n)),e}function sn(e,n,o,d,E,A){var H,Q=1&n,se=2&n,be=4&n;if(o&&(H=E?o(e,d,E,A):o(e)),H!==t)return H;if(!Kt(e))return e;var we=et(e);if(we){if(H=function mb(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&At.call(e,"index")&&(o.index=e.index,o.input=e.input),o}(e),!Q)return Lr(e,H)}else{var Ie=Pr(e),Re=Ie==mo||Ie==_l;if(ci(e))return Mh(e,Q);if(Ie==Ln||Ie==Bi||Re&&!E){if(H=se||Re?{}:nd(e),!Q)return se?function ub(e,n){return In(e,td(e),n)}(e,function Tm(e,n){return e&&In(n,Mr(n),e)}(H,e)):function ab(e,n){return In(e,uc(e),n)}(e,ph(H,e))}else{if(!Lt[Ie])return E?e:{};H=function bb(e,n,o){var d=e.constructor;switch(n){case xs:return tc(e);case vs:case ms:return new d(+e);case $i:return function nb(e,n){var o=n?tc(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}(e,o);case au:case uu:case cu:case fu:case lu:case hu:case du:case pu:case gu:return Bh(e,o);case _n:return new d;case bs:case Es:return new d(e);case ws:return function ib(e){var n=new e.constructor(e.source,wl.exec(e));return n.lastIndex=e.lastIndex,n}(e);case yn:return new d;case bo:return function sb(e){return Cs?Ft(Cs.call(e)):{}}(e)}}(e,Ie,Q)}}A||(A=new mn);var Be=A.get(e);if(Be)return Be;A.set(e,H),Rd(e)?e.forEach(function(qe){H.add(sn(qe,n,o,qe,e,A))}):Cd(e)&&e.forEach(function(qe,lt){H.set(lt,sn(qe,n,o,lt,e,A))});var it=we?t:(be?se?sc:ic:se?Mr:br)(e);return tn(it||e,function(qe,lt){it&&(qe=e[lt=qe]),Ts(H,lt,sn(qe,n,o,lt,e,A))}),H}function gh(e,n,o){var d=o.length;if(null==e)return!d;for(e=Ft(e);d--;){var E=o[d],H=e[E];if(H===t&&!(E in e)||!(0,n[E])(H))return!1}return!0}function _h(e,n,o){if("function"!=typeof e)throw new rn(g);return Ms(function(){e.apply(t,o)},n)}function Rs(e,n,o,d){var E=-1,A=xo,H=!0,Q=e.length,se=[],be=n.length;if(!Q)return se;o&&(n=Ht(n,Kr(o))),d?(A=Su,H=!1):n.length>=200&&(A=Ss,H=!1,n=new Ei(n));e:for(;++E-1},Un.prototype.set=function gm(e,n){var o=this.__data__,d=zo(o,e);return d<0?(++this.size,o.push([e,n])):o[d][1]=n,this},Mn.prototype.clear=function _m(){this.size=0,this.__data__={hash:new wi,map:new(Is||Un),string:new wi}},Mn.prototype.delete=function ym(e){var n=Zo(this,e).delete(e);return this.size-=n?1:0,n},Mn.prototype.get=function vm(e){return Zo(this,e).get(e)},Mn.prototype.has=function mm(e){return Zo(this,e).has(e)},Mn.prototype.set=function bm(e,n){var o=Zo(this,e),d=o.size;return o.set(e,n),this.size+=o.size==d?0:1,this},Ei.prototype.add=Ei.prototype.push=function wm(e){return this.__data__.set(e,X),this},Ei.prototype.has=function Em(e){return this.__data__.has(e)},mn.prototype.clear=function Dm(){this.__data__=new Un,this.size=0},mn.prototype.delete=function xm(e){var n=this.__data__,o=n.delete(e);return this.size=n.size,o},mn.prototype.get=function Sm(e){return this.__data__.get(e)},mn.prototype.has=function Om(e){return this.__data__.has(e)},mn.prototype.set=function Im(e,n){var o=this.__data__;if(o instanceof Un){var d=o.__data__;if(!Is||d.length<199)return d.push([e,n]),this.size=++o.size,this;o=this.__data__=new Mn(d)}return o.set(e,n),this.size=o.size,this};var si=Vh(On),yh=Vh(zu,!0);function Nm(e,n){var o=!0;return si(e,function(d,E,A){return o=!!n(d,E,A)}),o}function Ho(e,n,o){for(var d=-1,E=e.length;++d0&&o(Q)?n>1?Sr(Q,n-1,o,d,E):ri(E,Q):d||(E[E.length]=Q)}return E}var $u=Kh(),mh=Kh(!0);function On(e,n){return e&&$u(e,n,br)}function zu(e,n){return e&&mh(e,n,br)}function Vo(e,n){return ti(n,function(o){return Vn(e[o])})}function xi(e,n){for(var o=0,d=(n=ai(n,e)).length;null!=e&&on}function jm(e,n){return null!=e&&At.call(e,n)}function Lm(e,n){return null!=e&&n in Ft(e)}function Vu(e,n,o){for(var d=o?Su:xo,E=e[0].length,A=e.length,H=A,Q=ge(A),se=1/0,be=[];H--;){var we=e[H];H&&n&&(we=Ht(we,Kr(n))),se=Ir(we.length,se),Q[H]=!o&&(n||E>=120&&we.length>=120)?new Ei(H&&we):t}we=e[0];var Ie=-1,Re=Q[0];e:for(;++Ie=Q?se:se*("desc"==o[d]?-1:1)}return e.index-n.index}(A,H,o)})}function Ah(e,n,o){for(var d=-1,E=n.length,A={};++d-1;)Q!==e&&Fo.call(Q,se,1),Fo.call(e,se,1);return e}function Ch(e,n){for(var o=e?n.length:0,d=o-1;o--;){var E=n[o];if(o==d||E!==A){var A=E;Hn(E)?Fo.call(e,E,1):Xu(e,E)}}return e}function Gu(e,n){return e+Uo(fh()*(n-e+1))}function Ju(e,n){var o="";if(!e||n<1||n>ei)return o;do{n%2&&(o+=e),(n=Uo(n/2))&&(e+=e)}while(n);return o}function ot(e,n){return hc(od(e,n,Br),e+"")}function Xm(e){return dh(es(e))}function Qm(e,n){var o=es(e);return ea(o,Di(n,0,o.length))}function js(e,n,o,d){if(!Kt(e))return e;for(var E=-1,A=(n=ai(n,e)).length,H=A-1,Q=e;null!=Q&&++EE?0:E+n),(o=o>E?E:o)<0&&(o+=E),E=n>o?0:o-n>>>0,n>>>=0;for(var A=ge(E);++d>>1,H=e[A];null!==H&&!Wr(H)&&(o?H<=n:H=200){var be=n?null:hb(e);if(be)return Oo(be);H=!1,E=Ss,se=new Ei}else se=n?[]:Q;e:for(;++d=d?e:on(e,n,o)}var Uh=V1||function(e){return xr.clearTimeout(e)};function Mh(e,n){if(n)return e.slice();var o=e.length,d=sh?sh(o):new e.constructor(o);return e.copy(d),d}function tc(e){var n=new e.constructor(e.byteLength);return new Ro(n).set(new Ro(e)),n}function Bh(e,n){var o=n?tc(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function $h(e,n){if(e!==n){var o=e!==t,d=null===e,E=e==e,A=Wr(e),H=n!==t,Q=null===n,se=n==n,be=Wr(n);if(!Q&&!be&&!A&&e>n||A&&H&&se&&!Q&&!be||d&&H&&se||!o&&se||!E)return 1;if(!d&&!A&&!be&&e1?o[E-1]:t,H=E>2?o[2]:t;for(A=e.length>3&&"function"==typeof A?(E--,A):t,H&&Rr(o[0],o[1],H)&&(A=E<3?t:A,E=1),n=Ft(n);++d-1?E[A?n[H]:H]:t}}function kh(e){return zn(function(n){var o=n.length,d=o,E=nn.prototype.thru;for(e&&n.reverse();d--;){var A=n[d];if("function"!=typeof A)throw new rn(g);if(E&&!H&&"wrapper"==Qo(A))var H=new nn([],!0)}for(d=H?d:o;++d1&&yt.reverse(),we&&seQ))return!1;var be=A.get(e),we=A.get(n);if(be&&we)return be==n&&we==e;var Ie=-1,Re=!0,Be=2&o?new Ei:t;for(A.set(e,n),A.set(n,e);++Ie-1&&e%1==0&&e1?"& ":"")+n[d],n=n.join(o>2?", ":" "),e.replace(Dv,"{\n/* [wrapped with "+n+"] */\n")}(d,function Tb(e,n){return tn(iv,function(o){var d="_."+o[0];n&o[1]&&!xo(e,d)&&e.push(d)}),e.sort()}(function vb(e){var n=e.match(xv);return n?n[1].split(Sv):[]}(d),o)))}function fd(e){var n=0,o=0;return function(){var d=J1(),E=16-(d-o);if(o=d,E>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function ea(e,n){var o=-1,d=e.length,E=d-1;for(n=n===t?d:n;++o1?e[n-1]:t;return o="function"==typeof o?(e.pop(),o):t,vd(e,o)});function md(e){var n=O(e);return n.__chain__=!0,n}function ta(e,n){return n(e)}var Fw=zn(function(e){var n=e.length,o=n?e[0]:0,d=this.__wrapped__,E=function(A){return Bu(A,e)};return!(n>1||this.__actions__.length)&&d instanceof dt&&Hn(o)?((d=d.slice(o,+o+(n?1:0))).__actions__.push({func:ta,args:[E],thisArg:t}),new nn(d,this.__chain__).thru(function(A){return n&&!A.length&&A.push(t),A})):this.thru(E)}),Hw=ko(function(e,n,o){At.call(e,o)?++e[o]:Bn(e,o,1)}),qw=Wh(dd),Ww=Wh(pd);function bd(e,n){return(et(e)?tn:si)(e,Ve(n,3))}function wd(e,n){return(et(e)?p1:yh)(e,Ve(n,3))}var Yw=ko(function(e,n,o){At.call(e,o)?e[o].push(n):Bn(e,o,[n])}),Qw=ot(function(e,n,o){var d=-1,E="function"==typeof n,A=Ur(e)?ge(e.length):[];return si(e,function(H){A[++d]=E?Vr(n,H,o):Ns(H,n,o)}),A}),Zw=ko(function(e,n,o){Bn(e,o,n)});function ra(e,n){return(et(e)?Ht:xh)(e,Ve(n,3))}var tE=ko(function(e,n,o){e[o?0:1].push(n)},function(){return[[],[]]}),fE=ot(function(e,n){if(null==e)return[];var o=n.length;return o>1&&Rr(e,n[0],n[1])?n=[]:o>2&&Rr(n[0],n[1],n[2])&&(n=[n[0]]),Ph(e,Sr(n,1),[])}),na=K1||function(){return xr.Date.now()};function Ed(e,n,o){return n=o?t:n,$n(e,128,t,t,t,t,n=e&&null==n?e.length:n)}function Dd(e,n){var o;if("function"!=typeof n)throw new rn(g);return e=rt(e),function(){return--e>0&&(o=n.apply(this,arguments)),e<=1&&(n=t),o}}var gc=ot(function(e,n,o){var d=1;if(o.length){var E=ni(o,Qi(gc));d|=32}return $n(e,d,n,o,E)}),xd=ot(function(e,n,o){var d=3;if(o.length){var E=ni(o,Qi(xd));d|=32}return $n(n,d,e,o,E)});function Id(e,n,o){var d,E,A,H,Q,se,be=0,we=!1,Ie=!1,Re=!0;if("function"!=typeof e)throw new rn(g);function Be(ir){var wn=d,qn=E;return d=E=t,be=ir,H=e.apply(qn,wn)}function Ke(ir){return be=ir,Q=Ms(lt,n),we?Be(ir):H}function qe(ir){var wn=ir-se;return se===t||wn>=n||wn<0||Ie&&ir-be>=A}function lt(){var ir=na();if(qe(ir))return yt(ir);Q=Ms(lt,function it(ir){var Wd=n-(ir-se);return Ie?Ir(Wd,A-(ir-be)):Wd}(ir))}function yt(ir){return Q=t,Re&&d?Be(ir):(d=E=t,H)}function Gr(){var ir=na(),wn=qe(ir);if(d=arguments,E=this,se=ir,wn){if(Q===t)return Ke(se);if(Ie)return Uh(Q),Q=Ms(lt,n),Be(se)}return Q===t&&(Q=Ms(lt,n)),H}return n=un(n)||0,Kt(o)&&(we=!!o.leading,A=(Ie="maxWait"in o)?_r(un(o.maxWait)||0,n):A,Re="trailing"in o?!!o.trailing:Re),Gr.cancel=function kr(){Q!==t&&Uh(Q),be=0,d=se=E=Q=t},Gr.flush=function Nr(){return Q===t?H:yt(na())},Gr}var hE=ot(function(e,n){return _h(e,1,n)}),dE=ot(function(e,n,o){return _h(e,un(n)||0,o)});function ia(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new rn(g);var o=function(){var d=arguments,E=n?n.apply(this,d):d[0],A=o.cache;if(A.has(E))return A.get(E);var H=e.apply(this,d);return o.cache=A.set(E,H)||A,H};return o.cache=new(ia.Cache||Mn),o}function sa(e){if("function"!=typeof e)throw new rn(g);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}ia.Cache=Mn;var _E=rb(function(e,n){var o=(n=1==n.length&&et(n[0])?Ht(n[0],Kr(Ve())):Ht(Sr(n,1),Kr(Ve()))).length;return ot(function(d){for(var E=-1,A=Ir(d.length,o);++E=n}),Ii=wh(function(){return arguments}())?wh:function(e){return Jt(e)&&At.call(e,"callee")&&!ah.call(e,"callee")},et=ge.isArray,TE=Hl?Kr(Hl):function Bm(e){return Jt(e)&&Tr(e)==xs};function Ur(e){return null!=e&&oa(e.length)&&!Vn(e)}function nr(e){return Jt(e)&&Ur(e)}var ci=W1||Ic,NE=Vl?Kr(Vl):function $m(e){return Jt(e)&&Tr(e)==ms};function yc(e){if(!Jt(e))return!1;var n=Tr(e);return n==vo||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!Bs(e)}function Vn(e){if(!Kt(e))return!1;var n=Tr(e);return n==mo||n==_l||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Ad(e){return"number"==typeof e&&e==rt(e)}function oa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ei}function Kt(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function Jt(e){return null!=e&&"object"==typeof e}var Cd=Kl?Kr(Kl):function Hm(e){return Jt(e)&&Pr(e)==_n};function Td(e){return"number"==typeof e||Jt(e)&&Tr(e)==bs}function Bs(e){if(!Jt(e)||Tr(e)!=Ln)return!1;var n=No(e);if(null===n)return!0;var o=At.call(n,"constructor")&&n.constructor;return"function"==typeof o&&o instanceof o&&Ao.call(o)==$1}var vc=ql?Kr(ql):function Vm(e){return Jt(e)&&Tr(e)==ws},Rd=Wl?Kr(Wl):function Km(e){return Jt(e)&&Pr(e)==yn};function aa(e){return"string"==typeof e||!et(e)&&Jt(e)&&Tr(e)==Es}function Wr(e){return"symbol"==typeof e||Jt(e)&&Tr(e)==bo}var Zi=kl?Kr(kl):function qm(e){return Jt(e)&&oa(e.length)&&!!Mt[Tr(e)]},JE=Xo(Wu),YE=Xo(function(e,n){return e<=n});function Nd(e){if(!e)return[];if(Ur(e))return aa(e)?vn(e):Lr(e);if(Os&&e[Os])return function P1(ne){for(var ve,ge=[];!(ve=ne.next()).done;)ge.push(ve.value);return ge}(e[Os]());var n=Pr(e);return(n==_n?Nu:n==yn?Oo:es)(e)}function Kn(e){return e?(e=un(e))===vi||e===-vi?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rt(e){var n=Kn(e),o=n%1;return n==n?o?n-o:n:0}function Fd(e){return e?Di(rt(e),0,Sn):0}function un(e){if("number"==typeof e)return e;if(Wr(e))return NaN;if(Kt(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Kt(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Zl(e);var o=Tv.test(e);return o||Nv.test(e)?l1(e.slice(2),o?2:8):Cv.test(e)?NaN:+e}function jd(e){return In(e,Mr(e))}function It(e){return null==e?"":qr(e)}var QE=Yi(function(e,n){if(Us(n)||Ur(n))In(n,br(n),e);else for(var o in n)At.call(n,o)&&Ts(e,o,n[o])}),Ld=Yi(function(e,n){In(n,Mr(n),e)}),ua=Yi(function(e,n,o,d){In(n,Mr(n),e,d)}),ZE=Yi(function(e,n,o,d){In(n,br(n),e,d)}),e3=zn(Bu),r3=ot(function(e,n){e=Ft(e);var o=-1,d=n.length,E=d>2?n[2]:t;for(E&&Rr(n[0],n[1],E)&&(d=1);++o1),A}),In(e,sc(e),o),d&&(o=sn(o,7,db));for(var E=n.length;E--;)Xu(o,n[E]);return o}),w3=zn(function(e,n){return null==e?{}:function Gm(e,n){return Ah(e,n,function(o,d){return bc(e,d)})}(e,n)});function Md(e,n){if(null==e)return{};var o=Ht(sc(e),function(d){return[d]});return n=Ve(n),Ah(e,o,function(d,E){return n(d,E[0])})}var Bd=Xh(br),$d=Xh(Mr);function es(e){return null==e?[]:Ru(e,br(e))}var N3=Xi(function(e,n,o){return n=n.toLowerCase(),e+(o?zd(n):n)});function zd(e){return wc(It(e).toLowerCase())}function Hd(e){return(e=It(e))&&e.replace(jv,D1).replace(e1,"")}var U3=Xi(function(e,n,o){return e+(o?"-":"")+n.toLowerCase()}),M3=Xi(function(e,n,o){return e+(o?" ":"")+n.toLowerCase()}),B3=qh("toLowerCase"),W3=Xi(function(e,n,o){return e+(o?"_":"")+n.toLowerCase()}),G3=Xi(function(e,n,o){return e+(o?" ":"")+wc(n)}),i2=Xi(function(e,n,o){return e+(o?" ":"")+n.toUpperCase()}),wc=qh("toUpperCase");function Vd(e,n,o){return e=It(e),(n=o?t:n)===t?function I1(ne){return n1.test(ne)}(e)?function j1(ne){return ne.match(t1)||[]}(e):function v1(ne){return ne.match(Ov)||[]}(e):e.match(n)||[]}var Kd=ot(function(e,n){try{return Vr(e,t,n)}catch(o){return yc(o)?o:new Ze(o)}}),s2=zn(function(e,n){return tn(n,function(o){o=Pn(o),Bn(e,o,gc(e[o],e))}),e});function Ec(e){return function(){return e}}var c2=kh(),f2=kh(!0);function Br(e){return e}function Dc(e){return Dh("function"==typeof e?e:sn(e,1))}var d2=ot(function(e,n){return function(o){return Ns(o,e,n)}}),p2=ot(function(e,n){return function(o){return Ns(e,o,n)}});function xc(e,n,o){var d=br(n),E=Vo(n,d);null==o&&(!Kt(n)||!E.length&&d.length)&&(o=n,n=e,e=this,E=Vo(n,br(n)));var A=!(Kt(o)&&"chain"in o&&!o.chain),H=Vn(e);return tn(E,function(Q){var se=n[Q];e[Q]=se,H&&(e.prototype[Q]=function(){var be=this.__chain__;if(A||be){var we=e(this.__wrapped__),Ie=we.__actions__=Lr(this.__actions__);return Ie.push({func:se,args:arguments,thisArg:e}),we.__chain__=be,we}return se.apply(e,ri([this.value()],arguments))})}),e}function Sc(){}var y2=rc(Ht),v2=rc(Gl),m2=rc(Iu);function qd(e){return cc(e)?Pu(Pn(e)):function Jm(e){return function(n){return xi(n,e)}}(e)}var w2=Jh(),E2=Jh(!0);function Oc(){return[]}function Ic(){return!1}var A2=Jo(function(e,n){return e+n},0),C2=nc("ceil"),T2=Jo(function(e,n){return e/n},1),R2=nc("floor"),B2=Jo(function(e,n){return e*n},1),$2=nc("round"),z2=Jo(function(e,n){return e-n},0);return O.after=function lE(e,n){if("function"!=typeof n)throw new rn(g);return e=rt(e),function(){if(--e<1)return n.apply(this,arguments)}},O.ary=Ed,O.assign=QE,O.assignIn=Ld,O.assignInWith=ua,O.assignWith=ZE,O.at=e3,O.before=Dd,O.bind=gc,O.bindAll=s2,O.bindKey=xd,O.castArray=function DE(){if(!arguments.length)return[];var e=arguments[0];return et(e)?e:[e]},O.chain=md,O.chunk=function Rb(e,n,o){n=(o?Rr(e,n,o):n===t)?1:_r(rt(n),0);var d=null==e?0:e.length;if(!d||n<1)return[];for(var E=0,A=0,H=ge(Lo(d/n));EE?0:E+o),(d=d===t||d>E?E:rt(d))<0&&(d+=E),d=o>d?0:Fd(d);o>>0)?(e=It(e))&&("string"==typeof n||null!=n&&!vc(n))&&!(n=qr(n))&&Vi(e)?ui(vn(e),0,o):e.split(n,o):[]},O.spread=function mE(e,n){if("function"!=typeof e)throw new rn(g);return n=null==n?0:_r(rt(n),0),ot(function(o){var d=o[n],E=ui(o,0,n);return d&&ri(E,d),Vr(e,this,E)})},O.tail=function pw(e){var n=null==e?0:e.length;return n?on(e,1,n):[]},O.take=function gw(e,n,o){return e&&e.length?on(e,0,(n=o||n===t?1:rt(n))<0?0:n):[]},O.takeRight=function _w(e,n,o){var d=null==e?0:e.length;return d?on(e,(n=d-(n=o||n===t?1:rt(n)))<0?0:n,d):[]},O.takeRightWhile=function yw(e,n){return e&&e.length?Wo(e,Ve(n,3),!1,!0):[]},O.takeWhile=function vw(e,n){return e&&e.length?Wo(e,Ve(n,3)):[]},O.tap=function Nw(e,n){return n(e),e},O.throttle=function bE(e,n,o){var d=!0,E=!0;if("function"!=typeof e)throw new rn(g);return Kt(o)&&(d="leading"in o?!!o.leading:d,E="trailing"in o?!!o.trailing:E),Id(e,n,{leading:d,maxWait:n,trailing:E})},O.thru=ta,O.toArray=Nd,O.toPairs=Bd,O.toPairsIn=$d,O.toPath=function I2(e){return et(e)?Ht(e,Pn):Wr(e)?[e]:Lr(ld(It(e)))},O.toPlainObject=jd,O.transform=function S3(e,n,o){var d=et(e),E=d||ci(e)||Zi(e);if(n=Ve(n,4),null==o){var A=e&&e.constructor;o=E?d?new A:[]:Kt(e)&&Vn(A)?Ji(No(e)):{}}return(E?tn:On)(e,function(H,Q,se){return n(o,H,Q,se)}),o},O.unary=function wE(e){return Ed(e,1)},O.union=mw,O.unionBy=bw,O.unionWith=ww,O.uniq=function Ew(e){return e&&e.length?oi(e):[]},O.uniqBy=function Dw(e,n){return e&&e.length?oi(e,Ve(n,2)):[]},O.uniqWith=function xw(e,n){return n="function"==typeof n?n:t,e&&e.length?oi(e,t,n):[]},O.unset=function O3(e,n){return null==e||Xu(e,n)},O.unzip=pc,O.unzipWith=vd,O.update=function I3(e,n,o){return null==e?e:Fh(e,n,ec(o))},O.updateWith=function P3(e,n,o,d){return d="function"==typeof d?d:t,null==e?e:Fh(e,n,ec(o),d)},O.values=es,O.valuesIn=function A3(e){return null==e?[]:Ru(e,Mr(e))},O.without=Sw,O.words=Vd,O.wrap=function EE(e,n){return _c(ec(n),e)},O.xor=Ow,O.xorBy=Iw,O.xorWith=Pw,O.zip=Aw,O.zipObject=function Cw(e,n){return Lh(e||[],n||[],Ts)},O.zipObjectDeep=function Tw(e,n){return Lh(e||[],n||[],js)},O.zipWith=Rw,O.entries=Bd,O.entriesIn=$d,O.extend=Ld,O.extendWith=ua,xc(O,O),O.add=A2,O.attempt=Kd,O.camelCase=N3,O.capitalize=zd,O.ceil=C2,O.clamp=function C3(e,n,o){return o===t&&(o=n,n=t),o!==t&&(o=(o=un(o))==o?o:0),n!==t&&(n=(n=un(n))==n?n:0),Di(un(e),n,o)},O.clone=function xE(e){return sn(e,4)},O.cloneDeep=function OE(e){return sn(e,5)},O.cloneDeepWith=function IE(e,n){return sn(e,5,n="function"==typeof n?n:t)},O.cloneWith=function SE(e,n){return sn(e,4,n="function"==typeof n?n:t)},O.conformsTo=function PE(e,n){return null==n||gh(e,n,br(n))},O.deburr=Hd,O.defaultTo=function u2(e,n){return null==e||e!=e?n:e},O.divide=T2,O.endsWith=function F3(e,n,o){e=It(e),n=qr(n);var d=e.length,E=o=o===t?d:Di(rt(o),0,d);return(o-=n.length)>=0&&e.slice(o,E)==n},O.eq=bn,O.escape=function j3(e){return(e=It(e))&&gv.test(e)?e.replace(ml,x1):e},O.escapeRegExp=function L3(e){return(e=It(e))&&wv.test(e)?e.replace(_u,"\\$&"):e},O.every=function Vw(e,n,o){var d=et(e)?Gl:Nm;return o&&Rr(e,n,o)&&(n=t),d(e,Ve(n,3))},O.find=qw,O.findIndex=dd,O.findKey=function i3(e,n){return Jl(e,Ve(n,3),On)},O.findLast=Ww,O.findLastIndex=pd,O.findLastKey=function s3(e,n){return Jl(e,Ve(n,3),zu)},O.floor=R2,O.forEach=bd,O.forEachRight=wd,O.forIn=function o3(e,n){return null==e?e:$u(e,Ve(n,3),Mr)},O.forInRight=function a3(e,n){return null==e?e:mh(e,Ve(n,3),Mr)},O.forOwn=function u3(e,n){return e&&On(e,Ve(n,3))},O.forOwnRight=function c3(e,n){return e&&zu(e,Ve(n,3))},O.get=mc,O.gt=AE,O.gte=CE,O.has=function h3(e,n){return null!=e&&rd(e,n,jm)},O.hasIn=bc,O.head=_d,O.identity=Br,O.includes=function Xw(e,n,o,d){e=Ur(e)?e:es(e),o=o&&!d?rt(o):0;var E=e.length;return o<0&&(o=_r(E+o,0)),aa(e)?o<=E&&e.indexOf(n,o)>-1:!!E&&Hi(e,n,o)>-1},O.indexOf=function Wb(e,n,o){var d=null==e?0:e.length;if(!d)return-1;var E=null==o?0:rt(o);return E<0&&(E=_r(d+E,0)),Hi(e,n,E)},O.inRange=function T3(e,n,o){return n=Kn(n),o===t?(o=n,n=0):o=Kn(o),function Um(e,n,o){return e>=Ir(n,o)&&e<_r(n,o)}(e=un(e),n,o)},O.invoke=g3,O.isArguments=Ii,O.isArray=et,O.isArrayBuffer=TE,O.isArrayLike=Ur,O.isArrayLikeObject=nr,O.isBoolean=function RE(e){return!0===e||!1===e||Jt(e)&&Tr(e)==vs},O.isBuffer=ci,O.isDate=NE,O.isElement=function FE(e){return Jt(e)&&1===e.nodeType&&!Bs(e)},O.isEmpty=function jE(e){if(null==e)return!0;if(Ur(e)&&(et(e)||"string"==typeof e||"function"==typeof e.splice||ci(e)||Zi(e)||Ii(e)))return!e.length;var n=Pr(e);if(n==_n||n==yn)return!e.size;if(Us(e))return!qu(e).length;for(var o in e)if(At.call(e,o))return!1;return!0},O.isEqual=function LE(e,n){return Fs(e,n)},O.isEqualWith=function UE(e,n,o){var d=(o="function"==typeof o?o:t)?o(e,n):t;return d===t?Fs(e,n,t,o):!!d},O.isError=yc,O.isFinite=function ME(e){return"number"==typeof e&&ch(e)},O.isFunction=Vn,O.isInteger=Ad,O.isLength=oa,O.isMap=Cd,O.isMatch=function BE(e,n){return e===n||Ku(e,n,ac(n))},O.isMatchWith=function $E(e,n,o){return o="function"==typeof o?o:t,Ku(e,n,ac(n),o)},O.isNaN=function zE(e){return Td(e)&&e!=+e},O.isNative=function HE(e){if(Sb(e))throw new Ze("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Eh(e)},O.isNil=function KE(e){return null==e},O.isNull=function VE(e){return null===e},O.isNumber=Td,O.isObject=Kt,O.isObjectLike=Jt,O.isPlainObject=Bs,O.isRegExp=vc,O.isSafeInteger=function qE(e){return Ad(e)&&e>=-ei&&e<=ei},O.isSet=Rd,O.isString=aa,O.isSymbol=Wr,O.isTypedArray=Zi,O.isUndefined=function WE(e){return e===t},O.isWeakMap=function kE(e){return Jt(e)&&Pr(e)==Ds},O.isWeakSet=function GE(e){return Jt(e)&&"[object WeakSet]"==Tr(e)},O.join=function Xb(e,n){return null==e?"":k1.call(e,n)},O.kebabCase=U3,O.last=an,O.lastIndexOf=function Qb(e,n,o){var d=null==e?0:e.length;if(!d)return-1;var E=d;return o!==t&&(E=(E=rt(o))<0?_r(d+E,0):Ir(E,d-1)),n==n?function T1(ne,ve,ge){for(var je=ge+1;je--;)if(ne[je]===ve)return je;return je}(e,n,E):So(e,Yl,E,!0)},O.lowerCase=M3,O.lowerFirst=B3,O.lt=JE,O.lte=YE,O.max=function N2(e){return e&&e.length?Ho(e,Br,Hu):t},O.maxBy=function F2(e,n){return e&&e.length?Ho(e,Ve(n,2),Hu):t},O.mean=function j2(e){return Xl(e,Br)},O.meanBy=function L2(e,n){return Xl(e,Ve(n,2))},O.min=function U2(e){return e&&e.length?Ho(e,Br,Wu):t},O.minBy=function M2(e,n){return e&&e.length?Ho(e,Ve(n,2),Wu):t},O.stubArray=Oc,O.stubFalse=Ic,O.stubObject=function D2(){return{}},O.stubString=function x2(){return""},O.stubTrue=function S2(){return!0},O.multiply=B2,O.nth=function Zb(e,n){return e&&e.length?Ih(e,rt(n)):t},O.noConflict=function g2(){return xr._===this&&(xr._=z1),this},O.noop=Sc,O.now=na,O.pad=function $3(e,n,o){e=It(e);var d=(n=rt(n))?Ki(e):0;if(!n||d>=n)return e;var E=(n-d)/2;return Yo(Uo(E),o)+e+Yo(Lo(E),o)},O.padEnd=function z3(e,n,o){e=It(e);var d=(n=rt(n))?Ki(e):0;return n&&dn){var d=e;e=n,n=d}if(o||e%1||n%1){var E=fh();return Ir(e+E*(n-e+f1("1e-"+((E+"").length-1))),n)}return Gu(e,n)},O.reduce=function rE(e,n,o){var d=et(e)?Ou:Ql,E=arguments.length<3;return d(e,Ve(n,4),o,E,si)},O.reduceRight=function nE(e,n,o){var d=et(e)?g1:Ql,E=arguments.length<3;return d(e,Ve(n,4),o,E,yh)},O.repeat=function K3(e,n,o){return n=(o?Rr(e,n,o):n===t)?1:rt(n),Ju(It(e),n)},O.replace=function q3(){var e=arguments,n=It(e[0]);return e.length<3?n:n.replace(e[1],e[2])},O.result=function E3(e,n,o){var d=-1,E=(n=ai(n,e)).length;for(E||(E=1,e=t);++dei)return[];var o=Sn,d=Ir(e,Sn);n=Ve(n),e-=Sn;for(var E=Tu(d,n);++o=A)return e;var Q=o-Ki(d);if(Q<1)return d;var se=H?ui(H,0,Q).join(""):e.slice(0,Q);if(E===t)return se+d;if(H&&(Q+=se.length-Q),vc(E)){if(e.slice(Q).search(E)){var be,we=se;for(E.global||(E=Fu(E.source,It(wl.exec(E))+"g")),E.lastIndex=0;be=E.exec(we);)var Ie=be.index;se=se.slice(0,Ie===t?Q:Ie)}}else if(e.indexOf(qr(E),Q)!=Q){var Re=se.lastIndexOf(E);Re>-1&&(se=se.slice(0,Re))}return se+d},O.unescape=function n2(e){return(e=It(e))&&pv.test(e)?e.replace(vl,R1):e},O.uniqueId=function P2(e){var n=++B1;return It(e)+n},O.upperCase=i2,O.upperFirst=wc,O.each=bd,O.eachRight=wd,O.first=_d,xc(O,function(){var e={};return On(O,function(n,o){At.call(O.prototype,o)||(e[o]=n)}),e}(),{chain:!1}),O.VERSION="4.17.21",tn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){O[e].placeholder=O}),tn(["drop","take"],function(e,n){dt.prototype[e]=function(o){o=o===t?1:_r(rt(o),0);var d=this.__filtered__&&!n?new dt(this):this.clone();return d.__filtered__?d.__takeCount__=Ir(o,d.__takeCount__):d.__views__.push({size:Ir(o,Sn),type:e+(d.__dir__<0?"Right":"")}),d},dt.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),tn(["filter","map","takeWhile"],function(e,n){var o=n+1,d=1==o||3==o;dt.prototype[e]=function(E){var A=this.clone();return A.__iteratees__.push({iteratee:Ve(E,3),type:o}),A.__filtered__=A.__filtered__||d,A}}),tn(["head","last"],function(e,n){var o="take"+(n?"Right":"");dt.prototype[e]=function(){return this[o](1).value()[0]}}),tn(["initial","tail"],function(e,n){var o="drop"+(n?"":"Right");dt.prototype[e]=function(){return this.__filtered__?new dt(this):this[o](1)}}),dt.prototype.compact=function(){return this.filter(Br)},dt.prototype.find=function(e){return this.filter(e).head()},dt.prototype.findLast=function(e){return this.reverse().find(e)},dt.prototype.invokeMap=ot(function(e,n){return"function"==typeof e?new dt(this):this.map(function(o){return Ns(o,e,n)})}),dt.prototype.reject=function(e){return this.filter(sa(Ve(e)))},dt.prototype.slice=function(e,n){e=rt(e);var o=this;return o.__filtered__&&(e>0||n<0)?new dt(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),n!==t&&(o=(n=rt(n))<0?o.dropRight(-n):o.take(n-e)),o)},dt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},dt.prototype.toArray=function(){return this.take(Sn)},On(dt.prototype,function(e,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),d=/^(?:head|last)$/.test(n),E=O[d?"take"+("last"==n?"Right":""):n],A=d||/^find/.test(n);E&&(O.prototype[n]=function(){var H=this.__wrapped__,Q=d?[1]:arguments,se=H instanceof dt,be=Q[0],we=se||et(H),Ie=function(lt){var yt=E.apply(O,ri([lt],Q));return d&&Re?yt[0]:yt};we&&o&&"function"==typeof be&&1!=be.length&&(se=we=!1);var Re=this.__chain__,Be=!!this.__actions__.length,Ke=A&&!Re,it=se&&!Be;if(!A&&we){H=it?H:new dt(this);var qe=e.apply(H,Q);return qe.__actions__.push({func:ta,args:[Ie],thisArg:t}),new nn(qe,Re)}return Ke&&it?e.apply(this,Q):(qe=this.thru(Ie),Ke?d?qe.value()[0]:qe.value():qe)})}),tn(["pop","push","shift","sort","splice","unshift"],function(e){var n=Io[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",d=/^(?:pop|shift)$/.test(e);O.prototype[e]=function(){var E=arguments;if(d&&!this.__chain__){var A=this.value();return n.apply(et(A)?A:[],E)}return this[o](function(H){return n.apply(et(H)?H:[],E)})}}),On(dt.prototype,function(e,n){var o=O[n];if(o){var d=o.name+"";At.call(Gi,d)||(Gi[d]=[]),Gi[d].push({name:n,func:o})}}),Gi[Go(t,2).name]=[{name:"wrapper",func:t}],dt.prototype.clone=function nm(){var e=new dt(this.__wrapped__);return e.__actions__=Lr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lr(this.__views__),e},dt.prototype.reverse=function im(){if(this.__filtered__){var e=new dt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},dt.prototype.value=function sm(){var e=this.__wrapped__.value(),n=this.__dir__,o=et(e),d=n<0,E=o?e.length:0,A=function yb(e,n,o){for(var d=-1,E=o.length;++d=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},O.prototype.plant=function Bw(e){for(var n,o=this;o instanceof $o;){var d=hd(o);d.__index__=0,d.__values__=t,n?E.__wrapped__=d:n=d;var E=d;o=o.__wrapped__}return E.__wrapped__=e,n},O.prototype.reverse=function $w(){var e=this.__wrapped__;if(e instanceof dt){var n=e;return this.__actions__.length&&(n=new dt(this)),(n=n.reverse()).__actions__.push({func:ta,args:[dc],thisArg:t}),new nn(n,this.__chain__)}return this.thru(dc)},O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=function zw(){return jh(this.__wrapped__,this.__actions__)},O.prototype.first=O.prototype.head,Os&&(O.prototype[Os]=function Mw(){return this}),O}();mi?((mi.exports=qi)._=qi,Du._=qi):xr._=qi}.call(ys);var D0=Object.defineProperty,x0=Object.defineProperties,S0=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,O0=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable,cl=(a,r,t)=>r in a?D0(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,po=(a,r)=>{for(var t in r||(r={}))O0.call(r,t)&&cl(a,t,r[t]);if(ul)for(var t of ul(r))I0.call(r,t)&&cl(a,t,r[t]);return a},P0=(a,r)=>x0(a,S0(r));function Zr(a,r,t){let s;const u=nu(a);return r.rpcMap&&(s=r.rpcMap[u]),s||(s=`https://rpc.walletconnect.com/v1?chainId=eip155:${u}&projectId=${t}`),s}function nu(a){return a.includes("eip155")?Number(a.split(":")[1]):Number(a)}function fl(a){return a.map(r=>`${r.split(":")[0]}:${r.split(":")[1]}`)}function ll(a){var r,t,s,u;const f={};if(!yi(a))return f;for(const[g,I]of Object.entries(a)){const X=io(g)?[g]:I.chains,Y=I.methods||[],de=I.events||[],Oe=I.rpcMap||{},He=cs(g);f[He]=P0(po(po({},f[He]),I),{chains:En(X,null==(r=f[He])?void 0:r.chains),methods:En(Y,null==(t=f[He])?void 0:t.methods),events:En(de,null==(s=f[He])?void 0:s.events),rpcMap:po(po({},Oe),null==(u=f[He])?void 0:u.rpcMap)})}return f}function T0(a){return a.includes(":")?a.split(":")[2]:a}function R0(a){const r={};for(const[t,s]of Object.entries(a)){const u=s.methods||[],f=s.events||[],g=s.accounts||[],I=io(t)?[t]:s.chains?s.chains:fl(s.accounts);r[t]={chains:I,methods:u,events:f,accounts:g}}return r}const hl={},rr=a=>hl[a],iu=(a,r)=>{hl[a]=r};class N0{constructor(r){this.name="polkadot",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,t){if(this.chainId=r,!this.httpProviders[r]){const s=t||Zr(`${this.name}:${r}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,s)}this.events.emit("default_chain_changed",`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r&&r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{var s;r[t]=this.createHttpProvider(t,null==(s=this.namespace.rpcMap)?void 0:s[t])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProvider(r,t){const s=t||Zr(r,this.namespace);return typeof s>"u"?void 0:new Yn(new Mi(s,rr("disableProviderPing")))}}class F0{constructor(r){this.name="eip155",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}request(r){var t=this;return S(function*(){switch(r.request.method){case"eth_requestAccounts":case"eth_accounts":return t.getAccounts();case"wallet_switchEthereumChain":return yield t.handleSwitchChain(r);case"eth_chainId":return parseInt(t.getDefaultChain())}return t.namespace.methods.includes(r.request.method)?yield t.client.request(r):t.getHttpProvider().request(r.request)})()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}setDefaultChain(r,t){const s=nu(r);if(!this.httpProviders[s]){const u=t||Zr(`${this.name}:${s}`,this.namespace,this.client.core.projectId);if(!u)throw new Error(`No RPC url provided for chainId: ${s}`);this.setHttpProvider(s,u)}this.chainId=s,this.events.emit("default_chain_changed",`${this.name}:${s}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}createHttpProvider(r,t){const s=t||Zr(`${this.name}:${r}`,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new Yn(new sl(s,rr("disableProviderPing")))}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{var s;const u=nu(t);r[u]=this.createHttpProvider(u,null==(s=this.namespace.rpcMap)?void 0:s[t])}),r}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2]))]:[]}getHttpProvider(){const r=this.chainId,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}handleSwitchChain(r){var t=this;return S(function*(){var s,u;let f=r.request.params?null==(s=r.request.params[0])?void 0:s.chainId:"0x0";f=f.startsWith("0x")?f:`0x${f}`;const g=parseInt(f,16);if(t.isChainApproved(g))t.setDefaultChain(`${g}`);else{if(!t.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${g}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);yield t.client.request({topic:r.topic,request:{method:r.request.method,params:[{chainId:f}]},chainId:null==(u=t.namespace.chains)?void 0:u[0]}),t.setDefaultChain(`${g}`)}return null})()}isChainApproved(r){return this.namespace.chains.includes(`${this.name}:${r}`)}}class j0{constructor(r){this.name="solana",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,t){if(!this.httpProviders[r]){const s=t||Zr(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,s)}this.chainId=r,this.events.emit("default_chain_changed",`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{var s;r[t]=this.createHttpProvider(t,null==(s=this.namespace.rpcMap)?void 0:s[t])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProvider(r,t){const s=t||Zr(r,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new Yn(new Mi(s,rr("disableProviderPing")))}}class L0{constructor(r){this.name="cosmos",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,t){if(this.chainId=r,!this.httpProviders[r]){const s=t||Zr(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,s)}this.events.emit("default_chain_changed",`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{var s;r[t]=this.createHttpProvider(t,null==(s=this.namespace.rpcMap)?void 0:s[t])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProvider(r,t){const s=t||Zr(r,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new Yn(new Mi(s,rr("disableProviderPing")))}}class U0{constructor(r){this.name="cip34",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,t){if(this.chainId=r,!this.httpProviders[r]){const s=t||this.getCardanoRPCUrl(r);if(!s)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,s)}this.events.emit("default_chain_changed",`${this.name}:${this.chainId}`)}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{const s=this.getCardanoRPCUrl(t);r[t]=this.createHttpProvider(t,s)}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}getCardanoRPCUrl(r){const t=this.namespace.rpcMap;if(t)return t[r]}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProvider(r,t){const s=t||this.getCardanoRPCUrl(r);return typeof s>"u"?void 0:new Yn(new Mi(s,rr("disableProviderPing")))}}class M0{constructor(r){this.name="elrond",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,t){if(!this.httpProviders[r]){const s=t||Zr(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,s)}this.chainId=r,this.events.emit("default_chain_changed",`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{var s;r[t]=this.createHttpProvider(t,null==(s=this.namespace.rpcMap)?void 0:s[t])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProvider(r,t){const s=t||Zr(r,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new Yn(new Mi(s,rr("disableProviderPing")))}}class B0{constructor(r){this.name="multiversx",this.namespace=r.namespace,this.events=rr("events"),this.client=rr("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(r){this.namespace=Object.assign(this.namespace,r)}requestAccounts(){return this.getAccounts()}request(r){return this.namespace.methods.includes(r.request.method)?this.client.request(r):this.getHttpProvider().request(r.request)}setDefaultChain(r,t){if(!this.httpProviders[r]){const s=t||Zr(`${this.name}:${r}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${r}`);this.setHttpProvider(r,s)}this.chainId=r,this.events.emit("default_chain_changed",`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const r=this.namespace.chains[0];if(!r)throw new Error("ChainId not found");return r.split(":")[1]}getAccounts(){const r=this.namespace.accounts;return r?[...new Set(r.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2]))]:[]}createHttpProviders(){const r={};return this.namespace.chains.forEach(t=>{var s;r[t]=this.createHttpProvider(t,null==(s=this.namespace.rpcMap)?void 0:s[t])}),r}getHttpProvider(){const r=`${this.name}:${this.chainId}`,t=this.httpProviders[r];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${r} not found`);return t}setHttpProvider(r,t){const s=this.createHttpProvider(r,t);s&&(this.httpProviders[r]=s)}createHttpProvider(r,t){const s=t||Zr(r,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new Yn(new Mi(s,rr("disableProviderPing")))}}var $0=Object.defineProperty,z0=Object.defineProperties,H0=Object.getOwnPropertyDescriptors,dl=Object.getOwnPropertySymbols,V0=Object.prototype.hasOwnProperty,K0=Object.prototype.propertyIsEnumerable,pl=(a,r,t)=>r in a?$0(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,go=(a,r)=>{for(var t in r||(r={}))V0.call(r,t)&&pl(a,t,r[t]);if(dl)for(var t of dl(r))K0.call(r,t)&&pl(a,t,r[t]);return a},su=(a,r)=>z0(a,H0(r));class ou{constructor(r){this.events=new(De()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=r,this.logger=typeof r?.logger<"u"&&"string"!=typeof r?.logger?r.logger:(0,j.pino)((0,j.getDefaultLoggerOptions)({level:r?.logger||"error"})),this.disableProviderPing=r?.disableProviderPing||!1}static init(r){return S(function*(){const t=new ou(r);return yield t.initialize(),t})()}request(r,t){var s=this;return S(function*(){const[u,f]=s.validateChain(t);if(!s.session)throw new Error("Please call connect() before request()");return yield s.getProvider(u).request({request:go({},r),chainId:`${u}:${f}`,topic:s.session.topic})})()}sendAsync(r,t,s){this.request(r,s).then(u=>t(null,u)).catch(u=>t(u,void 0))}enable(){var r=this;return S(function*(){if(!r.client)throw new Error("Sign Client not initialized");return r.session||(yield r.connect({namespaces:r.namespaces,optionalNamespaces:r.optionalNamespaces,sessionProperties:r.sessionProperties})),yield r.requestAccounts()})()}disconnect(){var r=this;return S(function*(){var t;if(!r.session)throw new Error("Please call connect() before enable()");yield r.client.disconnect({topic:null==(t=r.session)?void 0:t.topic,reason:lr("USER_DISCONNECTED")}),yield r.cleanup()})()}connect(r){var t=this;return S(function*(){if(!t.client)throw new Error("Sign Client not initialized");if(t.setNamespaces(r),yield t.cleanupPendingPairings(),!r.skipPairing)return yield t.pair(r.pairingTopic)})()}on(r,t){this.events.on(r,t)}once(r,t){this.events.once(r,t)}removeListener(r,t){this.events.removeListener(r,t)}off(r,t){this.events.off(r,t)}get isWalletConnect(){return!0}pair(r){var t=this;return S(function*(){t.shouldAbortPairingAttempt=!1;let s=0;do{if(t.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(s>=t.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:u,approval:f}=yield t.client.connect({pairingTopic:r,requiredNamespaces:t.namespaces,optionalNamespaces:t.optionalNamespaces,sessionProperties:t.sessionProperties});u&&(t.uri=u,t.events.emit("display_uri",u)),yield f().then(g=>{t.session=g,t.namespaces||(t.namespaces=R0(g.namespaces),t.persist("namespaces",t.namespaces))}).catch(g=>{if(g.message!==Zf)throw g;s++})}while(!t.session);return t.onConnect(),t.session})()}setDefaultChain(r,t){try{if(!this.session)return;const[s,u]=this.validateChain(r);this.getProvider(s).setDefaultChain(u,t)}catch(s){if(!/Please call connect/.test(s.message))throw s}}cleanupPendingPairings(r={}){var t=this;return S(function*(){t.logger.info("Cleaning up inactive pairings...");const s=t.client.pairing.getAll();if(_i(s)){for(const u of s)r.deletePairings?t.client.core.expirer.set(u.topic,0):yield t.client.core.relayer.subscriber.unsubscribe(u.topic);t.logger.info(`Inactive pairings cleared: ${s.length}`)}})()}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}checkStorage(){var r=this;return S(function*(){r.namespaces=yield r.getFromStore("namespaces"),r.optionalNamespaces=(yield r.getFromStore("optionalNamespaces"))||{},r.client.session.length&&(r.session=r.client.session.get(r.client.session.keys[r.client.session.keys.length-1]),r.createProviders())})()}initialize(){var r=this;return S(function*(){r.logger.trace("Initialized"),yield r.createClient(),yield r.checkStorage(),r.registerEventListeners()})()}createClient(){var r=this;return S(function*(){r.client=r.providerOpts.client||(yield tu.init({logger:r.providerOpts.logger||"error",relayUrl:r.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:r.providerOpts.projectId,metadata:r.providerOpts.metadata,storageOptions:r.providerOpts.storageOptions,storage:r.providerOpts.storage,name:r.providerOpts.name})),r.logger.trace("SignClient Initialized")})()}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const r=[...new Set(Object.keys(this.session.namespaces).map(t=>cs(t)))];iu("client",this.client),iu("events",this.events),iu("disableProviderPing",this.disableProviderPing),r.forEach(t=>{if(!this.session)return;const s=function A0(a,r){const t=Object.keys(r.namespaces).filter(u=>u.includes(a));if(!t.length)return[];const s=[];return t.forEach(u=>{s.push(...r.namespaces[u].accounts)}),s}(t,this.session),u=fl(s),f=function C0(a={},r={}){const t=ll(a),s=ll(r);return ru.exports.merge(t,s)}(this.namespaces,this.optionalNamespaces),g=su(go({},f[t]),{accounts:s,chains:u});switch(t){case"eip155":this.rpcProviders[t]=new F0({namespace:g});break;case"solana":this.rpcProviders[t]=new j0({namespace:g});break;case"cosmos":this.rpcProviders[t]=new L0({namespace:g});break;case"polkadot":this.rpcProviders[t]=new N0({namespace:g});break;case"cip34":this.rpcProviders[t]=new U0({namespace:g});break;case"elrond":this.rpcProviders[t]=new M0({namespace:g});break;case"multiversx":this.rpcProviders[t]=new B0({namespace:g})}})}registerEventListeners(){var r=this;if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{const{params:s}=t,{event:u}=s;if("accountsChanged"===u.name){const f=u.data;f&&_i(f)&&this.events.emit("accountsChanged",f.map(T0))}else"chainChanged"===u.name?this.onChainChanged(s.chainId):this.events.emit(u.name,u.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:s})=>{var u;const{namespaces:f}=s,g=null==(u=this.client)?void 0:u.session.get(t);this.session=su(go({},g),{namespaces:f}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:s})}),this.client.on("session_delete",function(){var t=S(function*(s){yield r.cleanup(),r.events.emit("session_delete",s),r.events.emit("disconnect",su(go({},lr("USER_DISCONNECTED")),{data:s.topic}))});return function(s){return t.apply(this,arguments)}}()),this.on("default_chain_changed",t=>{this.onChainChanged(t,!0)})}getProvider(r){if(!this.rpcProviders[r])throw new Error(`Provider not found: ${r}`);return this.rpcProviders[r]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(r=>{var t;this.getProvider(r).updateNamespace(null==(t=this.session)?void 0:t.namespaces[r])})}setNamespaces(r){const{namespaces:t,optionalNamespaces:s,sessionProperties:u}=r;t&&Object.keys(t).length&&(this.namespaces=t),s&&Object.keys(s).length&&(this.optionalNamespaces=s),this.sessionProperties=u,this.persist("namespaces",t),this.persist("optionalNamespaces",s)}validateChain(r){const[t,s]=r?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,s];if(t&&!Object.keys(this.namespaces||{}).map(g=>cs(g)).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&s)return[t,s];const u=cs(Object.keys(this.namespaces)[0]);return[u,this.rpcProviders[u].getDefaultChain()]}requestAccounts(){var r=this;return S(function*(){const[t]=r.validateChain();return yield r.getProvider(t).requestAccounts()})()}onChainChanged(r,t=!1){var s;if(!this.namespaces)return;const[u,f]=this.validateChain(r);t||this.getProvider(u).setDefaultChain(f),(null!=(s=this.namespaces[u])?s:this.namespaces[`${u}:${f}`]).defaultChain=f,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",f)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}cleanup(){var r=this;return S(function*(){r.session=void 0,r.namespaces=void 0,r.optionalNamespaces=void 0,r.sessionProperties=void 0,r.persist("namespaces",void 0),r.persist("optionalNamespaces",void 0),r.persist("sessionProperties",void 0),yield r.cleanupPendingPairings({deletePairings:!0})})()}persist(r,t){this.client.core.storage.setItem(`${al}/${r}`,t)}getFromStore(r){var t=this;return S(function*(){return yield t.client.core.storage.getItem(`${al}/${r}`)})()}}var k0=["eip155:1"],G0=function(){return function(a,r,t,s){return new(t||(t=Promise))(function(f,g){function I(de){try{Y(s.next(de))}catch(Oe){g(Oe)}}function X(de){try{Y(s.throw(de))}catch(Oe){g(Oe)}}function Y(de){de.done?f(de.value):function u(f){return f instanceof t?f:new t(function(g){g(f)})}(de.value).then(I,X)}Y((s=s.apply(a,r||[])).next())})}(void 0,void 0,void 0,function(){return function(a,r){var s,u,f,g,t={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return g={next:I(0),throw:I(1),return:I(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function I(Y){return function(de){return function X(Y){if(s)throw new TypeError("Generator is already executing.");for(;g&&(g=0,Y[0]&&(t=0)),t;)try{if(s=1,u&&(f=2&Y[0]?u.return:Y[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,Y[1])).done)return f;switch(u=0,f&&(Y=[2&Y[0],f.value]),Y[0]){case 0:case 1:f=Y;break;case 4:return t.label++,{value:Y[1],done:!1};case 5:t.label++,u=Y[1],Y=[0];continue;case 7:Y=t.ops.pop(),t.trys.pop();continue;default:if(!(f=(f=t.trys).length>0&&f[f.length-1])&&(6===Y[0]||2===Y[0])){t=0;continue}if(3===Y[0]&&(!f||Y[1]>f[0]&&Y[1]{"use strict";Object.defineProperty(m,"__esModule",{value:!0});var B=L(17686);function oe(P,C,w){return void 0===C&&(C=new Uint8Array(2)),void 0===w&&(w=0),C[w+0]=P>>>8,C[w+1]=P>>>0,C}function K(P,C,w){return void 0===C&&(C=new Uint8Array(2)),void 0===w&&(w=0),C[w+0]=P>>>0,C[w+1]=P>>>8,C}function $(P,C){return void 0===C&&(C=0),P[C]<<24|P[C+1]<<16|P[C+2]<<8|P[C+3]}function M(P,C){return void 0===C&&(C=0),(P[C]<<24|P[C+1]<<16|P[C+2]<<8|P[C+3])>>>0}function F(P,C){return void 0===C&&(C=0),P[C+3]<<24|P[C+2]<<16|P[C+1]<<8|P[C]}function ue(P,C){return void 0===C&&(C=0),(P[C+3]<<24|P[C+2]<<16|P[C+1]<<8|P[C])>>>0}function he(P,C,w){return void 0===C&&(C=new Uint8Array(4)),void 0===w&&(w=0),C[w+0]=P>>>24,C[w+1]=P>>>16,C[w+2]=P>>>8,C[w+3]=P>>>0,C}function ie(P,C,w){return void 0===C&&(C=new Uint8Array(4)),void 0===w&&(w=0),C[w+0]=P>>>0,C[w+1]=P>>>8,C[w+2]=P>>>16,C[w+3]=P>>>24,C}function ee(P,C,w){return void 0===C&&(C=new Uint8Array(8)),void 0===w&&(w=0),he(P/4294967296>>>0,C,w),he(P>>>0,C,w+4),C}function j(P,C,w){return void 0===C&&(C=new Uint8Array(8)),void 0===w&&(w=0),ie(P>>>0,C,w),ie(P/4294967296>>>0,C,w+4),C}m.readInt16BE=function ae(P,C){return void 0===C&&(C=0),(P[C+0]<<8|P[C+1])<<16>>16},m.readUint16BE=function _e(P,C){return void 0===C&&(C=0),(P[C+0]<<8|P[C+1])>>>0},m.readInt16LE=function fe(P,C){return void 0===C&&(C=0),(P[C+1]<<8|P[C])<<16>>16},m.readUint16LE=function Z(P,C){return void 0===C&&(C=0),(P[C+1]<<8|P[C])>>>0},m.writeUint16BE=oe,m.writeInt16BE=oe,m.writeUint16LE=K,m.writeInt16LE=K,m.readInt32BE=$,m.readUint32BE=M,m.readInt32LE=F,m.readUint32LE=ue,m.writeUint32BE=he,m.writeInt32BE=he,m.writeUint32LE=ie,m.writeInt32LE=ie,m.readInt64BE=function S(P,C){void 0===C&&(C=0);var w=$(P,C),q=$(P,C+4);return 4294967296*w+q-4294967296*(q>>31)},m.readUint64BE=function me(P,C){return void 0===C&&(C=0),4294967296*M(P,C)+M(P,C+4)},m.readInt64LE=function De(P,C){void 0===C&&(C=0);var w=F(P,C);return 4294967296*F(P,C+4)+w-4294967296*(w>>31)},m.readUint64LE=function Ee(P,C){void 0===C&&(C=0);var w=ue(P,C);return 4294967296*ue(P,C+4)+w},m.writeUint64BE=ee,m.writeInt64BE=ee,m.writeUint64LE=j,m.writeInt64LE=j,m.readUintBE=function z(P,C,w){if(void 0===w&&(w=0),P%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(P/8>C.length-w)throw new Error("readUintBE: array is too short for the given bitLength");for(var q=0,ce=1,W=P/8+w-1;W>=w;W--)q+=C[W]*ce,ce*=256;return q},m.readUintLE=function R(P,C,w){if(void 0===w&&(w=0),P%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(P/8>C.length-w)throw new Error("readUintLE: array is too short for the given bitLength");for(var q=0,ce=1,W=w;W=q;W--)w[W]=C/ce&255,ce*=256;return w},m.writeUintLE=function T(P,C,w,q){if(void 0===w&&(w=new Uint8Array(P/8)),void 0===q&&(q=0),P%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!B.isSafeInteger(C))throw new Error("writeUintLE value must be an integer");for(var ce=1,W=q;W{"use strict";Object.defineProperty(m,"__esModule",{value:!0});var B=L(32222),ae=L(11512);function fe($,M,F){for(var ue=1634760805,he=857760878,ie=2036477234,S=1797285236,me=F[3]<<24|F[2]<<16|F[1]<<8|F[0],De=F[7]<<24|F[6]<<16|F[5]<<8|F[4],Ee=F[11]<<24|F[10]<<16|F[9]<<8|F[8],ee=F[15]<<24|F[14]<<16|F[13]<<8|F[12],j=F[19]<<24|F[18]<<16|F[17]<<8|F[16],z=F[23]<<24|F[22]<<16|F[21]<<8|F[20],R=F[27]<<24|F[26]<<16|F[25]<<8|F[24],V=F[31]<<24|F[30]<<16|F[29]<<8|F[28],T=M[3]<<24|M[2]<<16|M[1]<<8|M[0],h=M[7]<<24|M[6]<<16|M[5]<<8|M[4],l=M[11]<<24|M[10]<<16|M[9]<<8|M[8],v=M[15]<<24|M[14]<<16|M[13]<<8|M[12],y=ue,x=he,b=ie,p=S,D=me,P=De,C=Ee,w=ee,q=j,ce=z,W=R,Pe=V,ye=T,xe=h,Te=l,Le=v,Me=0;Me<20;Me+=2)D=(D^=q=q+(ye=(ye^=y=y+D|0)>>>16|ye<<16)|0)>>>20|D<<12,P=(P^=ce=ce+(xe=(xe^=x=x+P|0)>>>16|xe<<16)|0)>>>20|P<<12,C=(C^=W=W+(Te=(Te^=b=b+C|0)>>>16|Te<<16)|0)>>>20|C<<12,w=(w^=Pe=Pe+(Le=(Le^=p=p+w|0)>>>16|Le<<16)|0)>>>20|w<<12,C=(C^=W=W+(Te=(Te^=b=b+C|0)>>>24|Te<<8)|0)>>>25|C<<7,w=(w^=Pe=Pe+(Le=(Le^=p=p+w|0)>>>24|Le<<8)|0)>>>25|w<<7,P=(P^=ce=ce+(xe=(xe^=x=x+P|0)>>>24|xe<<8)|0)>>>25|P<<7,D=(D^=q=q+(ye=(ye^=y=y+D|0)>>>24|ye<<8)|0)>>>25|D<<7,P=(P^=W=W+(Le=(Le^=y=y+P|0)>>>16|Le<<16)|0)>>>20|P<<12,C=(C^=Pe=Pe+(ye=(ye^=x=x+C|0)>>>16|ye<<16)|0)>>>20|C<<12,w=(w^=q=q+(xe=(xe^=b=b+w|0)>>>16|xe<<16)|0)>>>20|w<<12,D=(D^=ce=ce+(Te=(Te^=p=p+D|0)>>>16|Te<<16)|0)>>>20|D<<12,w=(w^=q=q+(xe=(xe^=b=b+w|0)>>>24|xe<<8)|0)>>>25|w<<7,D=(D^=ce=ce+(Te=(Te^=p=p+D|0)>>>24|Te<<8)|0)>>>25|D<<7,C=(C^=Pe=Pe+(ye=(ye^=x=x+C|0)>>>24|ye<<8)|0)>>>25|C<<7,P=(P^=W=W+(Le=(Le^=y=y+P|0)>>>24|Le<<8)|0)>>>25|P<<7;B.writeUint32LE(y+ue|0,$,0),B.writeUint32LE(x+he|0,$,4),B.writeUint32LE(b+ie|0,$,8),B.writeUint32LE(p+S|0,$,12),B.writeUint32LE(D+me|0,$,16),B.writeUint32LE(P+De|0,$,20),B.writeUint32LE(C+Ee|0,$,24),B.writeUint32LE(w+ee|0,$,28),B.writeUint32LE(q+j|0,$,32),B.writeUint32LE(ce+z|0,$,36),B.writeUint32LE(W+R|0,$,40),B.writeUint32LE(Pe+V|0,$,44),B.writeUint32LE(ye+T|0,$,48),B.writeUint32LE(xe+h|0,$,52),B.writeUint32LE(Te+l|0,$,56),B.writeUint32LE(Le+v|0,$,60)}function Z($,M,F,ue,he){if(void 0===he&&(he=0),32!==$.length)throw new Error("ChaCha: key size must be 32 bytes");if(ue.length>>=8,M++;if(ue>0)throw new Error("ChaCha: counter overflow")}m.streamXOR=Z,m.stream=function oe($,M,F,ue){return void 0===ue&&(ue=0),ae.wipe(F),Z($,M,F,F,ue)}},31118:(Ae,m,L)=>{"use strict";var ae=L(24553),_e=L(83905),fe=L(11512),Z=L(32222),oe=L(93386);m.Cv=32,m.WH=12,m.pg=16;var K=new Uint8Array(16),$=function(){function M(F){if(this.nonceLength=m.WH,this.tagLength=m.pg,F.length!==m.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(F)}return M.prototype.seal=function(F,ue,he,ie){if(F.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var S=new Uint8Array(16);S.set(F,S.length-F.length);var me=new Uint8Array(32);ae.stream(this._key,S,me,4);var Ee,De=ue.length+this.tagLength;if(ie){if(ie.length!==De)throw new Error("ChaCha20Poly1305: incorrect destination length");Ee=ie}else Ee=new Uint8Array(De);return ae.streamXOR(this._key,S,ue,Ee,4),this._authenticate(Ee.subarray(Ee.length-this.tagLength,Ee.length),me,Ee.subarray(0,Ee.length-this.tagLength),he),fe.wipe(S),Ee},M.prototype.open=function(F,ue,he,ie){if(F.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(ue.length0&&S.update(K.subarray(ie.length%16))),S.update(he),he.length%16>0&&S.update(K.subarray(he.length%16));var me=new Uint8Array(8);ie&&Z.writeUint64LE(ie.length,me),S.update(me),Z.writeUint64LE(he.length,me),S.update(me);for(var De=S.digest(),Ee=0;Ee{"use strict";function ae(fe,Z){if(fe.length!==Z.length)return 0;for(var oe=0,K=0;K>>8}Object.defineProperty(m,"__esModule",{value:!0}),m.select=function L(fe,Z,oe){return~(fe-1)&Z|fe-1&oe},m.lessOrEqual=function B(fe,Z){return(0|fe)-(0|Z)-1>>>31&1},m.compare=ae,m.equal=function _e(fe,Z){return 0!==fe.length&&0!==Z.length&&0!==ae(fe,Z)}},52877:(Ae,m,L)=>{"use strict";m.Xx=m._w=m.aP=m.KS=m.jQ=void 0;L(7841);const _e=L(85198);L(11512);function Z(G){const le=new Float64Array(16);if(G)for(let te=0;te>16&1),te[ze-1]&=65535;te[15]=_[15]-32767-(te[14]>>16&1);const Ce=te[15]>>16&1;te[14]&=65535,De(_,te,1-Ce)}for(let k=0;k<16;k++)G[2*k]=255&_[k],G[2*k+1]=_[k]>>8}function z(G){const le=new Uint8Array(32);return Ee(le,G),1&le[0]}function V(G,le,te){for(let _=0;_<16;_++)G[_]=le[_]+te[_]}function T(G,le,te){for(let _=0;_<16;_++)G[_]=le[_]-te[_]}function h(G,le,te){let _,k,Ce=0,ze=0,st=0,wt=0,ut=0,vt=0,Bt=0,Yt=0,pt=0,ct=0,nt=0,at=0,tt=0,Ge=0,$e=0,We=0,Je=0,ft=0,ht=0,mt=0,bt=0,gt=0,Et=0,Dt=0,Jr=0,wr=0,cn=0,An=0,Wn=0,Cn=0,fn=0,qt=te[0],Wt=te[1],kt=te[2],$t=te[3],sr=te[4],Xt=te[5],Qt=te[6],or=te[7],ar=te[8],Zt=te[9],Vt=te[10],jt=te[11],er=te[12],hr=te[13],ur=te[14],cr=te[15];_=le[0],Ce+=_*qt,ze+=_*Wt,st+=_*kt,wt+=_*$t,ut+=_*sr,vt+=_*Xt,Bt+=_*Qt,Yt+=_*or,pt+=_*ar,ct+=_*Zt,nt+=_*Vt,at+=_*jt,tt+=_*er,Ge+=_*hr,$e+=_*ur,We+=_*cr,_=le[1],ze+=_*qt,st+=_*Wt,wt+=_*kt,ut+=_*$t,vt+=_*sr,Bt+=_*Xt,Yt+=_*Qt,pt+=_*or,ct+=_*ar,nt+=_*Zt,at+=_*Vt,tt+=_*jt,Ge+=_*er,$e+=_*hr,We+=_*ur,Je+=_*cr,_=le[2],st+=_*qt,wt+=_*Wt,ut+=_*kt,vt+=_*$t,Bt+=_*sr,Yt+=_*Xt,pt+=_*Qt,ct+=_*or,nt+=_*ar,at+=_*Zt,tt+=_*Vt,Ge+=_*jt,$e+=_*er,We+=_*hr,Je+=_*ur,ft+=_*cr,_=le[3],wt+=_*qt,ut+=_*Wt,vt+=_*kt,Bt+=_*$t,Yt+=_*sr,pt+=_*Xt,ct+=_*Qt,nt+=_*or,at+=_*ar,tt+=_*Zt,Ge+=_*Vt,$e+=_*jt,We+=_*er,Je+=_*hr,ft+=_*ur,ht+=_*cr,_=le[4],ut+=_*qt,vt+=_*Wt,Bt+=_*kt,Yt+=_*$t,pt+=_*sr,ct+=_*Xt,nt+=_*Qt,at+=_*or,tt+=_*ar,Ge+=_*Zt,$e+=_*Vt,We+=_*jt,Je+=_*er,ft+=_*hr,ht+=_*ur,mt+=_*cr,_=le[5],vt+=_*qt,Bt+=_*Wt,Yt+=_*kt,pt+=_*$t,ct+=_*sr,nt+=_*Xt,at+=_*Qt,tt+=_*or,Ge+=_*ar,$e+=_*Zt,We+=_*Vt,Je+=_*jt,ft+=_*er,ht+=_*hr,mt+=_*ur,bt+=_*cr,_=le[6],Bt+=_*qt,Yt+=_*Wt,pt+=_*kt,ct+=_*$t,nt+=_*sr,at+=_*Xt,tt+=_*Qt,Ge+=_*or,$e+=_*ar,We+=_*Zt,Je+=_*Vt,ft+=_*jt,ht+=_*er,mt+=_*hr,bt+=_*ur,gt+=_*cr,_=le[7],Yt+=_*qt,pt+=_*Wt,ct+=_*kt,nt+=_*$t,at+=_*sr,tt+=_*Xt,Ge+=_*Qt,$e+=_*or,We+=_*ar,Je+=_*Zt,ft+=_*Vt,ht+=_*jt,mt+=_*er,bt+=_*hr,gt+=_*ur,Et+=_*cr,_=le[8],pt+=_*qt,ct+=_*Wt,nt+=_*kt,at+=_*$t,tt+=_*sr,Ge+=_*Xt,$e+=_*Qt,We+=_*or,Je+=_*ar,ft+=_*Zt,ht+=_*Vt,mt+=_*jt,bt+=_*er,gt+=_*hr,Et+=_*ur,Dt+=_*cr,_=le[9],ct+=_*qt,nt+=_*Wt,at+=_*kt,tt+=_*$t,Ge+=_*sr,$e+=_*Xt,We+=_*Qt,Je+=_*or,ft+=_*ar,ht+=_*Zt,mt+=_*Vt,bt+=_*jt,gt+=_*er,Et+=_*hr,Dt+=_*ur,Jr+=_*cr,_=le[10],nt+=_*qt,at+=_*Wt,tt+=_*kt,Ge+=_*$t,$e+=_*sr,We+=_*Xt,Je+=_*Qt,ft+=_*or,ht+=_*ar,mt+=_*Zt,bt+=_*Vt,gt+=_*jt,Et+=_*er,Dt+=_*hr,Jr+=_*ur,wr+=_*cr,_=le[11],at+=_*qt,tt+=_*Wt,Ge+=_*kt,$e+=_*$t,We+=_*sr,Je+=_*Xt,ft+=_*Qt,ht+=_*or,mt+=_*ar,bt+=_*Zt,gt+=_*Vt,Et+=_*jt,Dt+=_*er,Jr+=_*hr,wr+=_*ur,cn+=_*cr,_=le[12],tt+=_*qt,Ge+=_*Wt,$e+=_*kt,We+=_*$t,Je+=_*sr,ft+=_*Xt,ht+=_*Qt,mt+=_*or,bt+=_*ar,gt+=_*Zt,Et+=_*Vt,Dt+=_*jt,Jr+=_*er,wr+=_*hr,cn+=_*ur,An+=_*cr,_=le[13],Ge+=_*qt,$e+=_*Wt,We+=_*kt,Je+=_*$t,ft+=_*sr,ht+=_*Xt,mt+=_*Qt,bt+=_*or,gt+=_*ar,Et+=_*Zt,Dt+=_*Vt,Jr+=_*jt,wr+=_*er,cn+=_*hr,An+=_*ur,Wn+=_*cr,_=le[14],$e+=_*qt,We+=_*Wt,Je+=_*kt,ft+=_*$t,ht+=_*sr,mt+=_*Xt,bt+=_*Qt,gt+=_*or,Et+=_*ar,Dt+=_*Zt,Jr+=_*Vt,wr+=_*jt,cn+=_*er,An+=_*hr,Wn+=_*ur,Cn+=_*cr,_=le[15],We+=_*qt,Je+=_*Wt,ft+=_*kt,ht+=_*$t,mt+=_*sr,bt+=_*Xt,gt+=_*Qt,Et+=_*or,Dt+=_*ar,Jr+=_*Zt,wr+=_*Vt,cn+=_*jt,An+=_*er,Wn+=_*hr,Cn+=_*ur,fn+=_*cr,Ce+=38*Je,ze+=38*ft,st+=38*ht,wt+=38*mt,ut+=38*bt,vt+=38*gt,Bt+=38*Et,Yt+=38*Dt,pt+=38*Jr,ct+=38*wr,nt+=38*cn,at+=38*An,tt+=38*Wn,Ge+=38*Cn,$e+=38*fn,k=1,_=Ce+k+65535,k=Math.floor(_/65536),Ce=_-65536*k,_=ze+k+65535,k=Math.floor(_/65536),ze=_-65536*k,_=st+k+65535,k=Math.floor(_/65536),st=_-65536*k,_=wt+k+65535,k=Math.floor(_/65536),wt=_-65536*k,_=ut+k+65535,k=Math.floor(_/65536),ut=_-65536*k,_=vt+k+65535,k=Math.floor(_/65536),vt=_-65536*k,_=Bt+k+65535,k=Math.floor(_/65536),Bt=_-65536*k,_=Yt+k+65535,k=Math.floor(_/65536),Yt=_-65536*k,_=pt+k+65535,k=Math.floor(_/65536),pt=_-65536*k,_=ct+k+65535,k=Math.floor(_/65536),ct=_-65536*k,_=nt+k+65535,k=Math.floor(_/65536),nt=_-65536*k,_=at+k+65535,k=Math.floor(_/65536),at=_-65536*k,_=tt+k+65535,k=Math.floor(_/65536),tt=_-65536*k,_=Ge+k+65535,k=Math.floor(_/65536),Ge=_-65536*k,_=$e+k+65535,k=Math.floor(_/65536),$e=_-65536*k,_=We+k+65535,k=Math.floor(_/65536),We=_-65536*k,Ce+=k-1+37*(k-1),k=1,_=Ce+k+65535,k=Math.floor(_/65536),Ce=_-65536*k,_=ze+k+65535,k=Math.floor(_/65536),ze=_-65536*k,_=st+k+65535,k=Math.floor(_/65536),st=_-65536*k,_=wt+k+65535,k=Math.floor(_/65536),wt=_-65536*k,_=ut+k+65535,k=Math.floor(_/65536),ut=_-65536*k,_=vt+k+65535,k=Math.floor(_/65536),vt=_-65536*k,_=Bt+k+65535,k=Math.floor(_/65536),Bt=_-65536*k,_=Yt+k+65535,k=Math.floor(_/65536),Yt=_-65536*k,_=pt+k+65535,k=Math.floor(_/65536),pt=_-65536*k,_=ct+k+65535,k=Math.floor(_/65536),ct=_-65536*k,_=nt+k+65535,k=Math.floor(_/65536),nt=_-65536*k,_=at+k+65535,k=Math.floor(_/65536),at=_-65536*k,_=tt+k+65535,k=Math.floor(_/65536),tt=_-65536*k,_=Ge+k+65535,k=Math.floor(_/65536),Ge=_-65536*k,_=$e+k+65535,k=Math.floor(_/65536),$e=_-65536*k,_=We+k+65535,k=Math.floor(_/65536),We=_-65536*k,Ce+=k-1+37*(k-1),G[0]=Ce,G[1]=ze,G[2]=st,G[3]=wt,G[4]=ut,G[5]=vt,G[6]=Bt,G[7]=Yt,G[8]=pt,G[9]=ct,G[10]=nt,G[11]=at,G[12]=tt,G[13]=Ge,G[14]=$e,G[15]=We}function l(G,le){h(G,le,le)}function x(G,le){const te=Z(),_=Z(),k=Z(),Ce=Z(),ze=Z(),st=Z(),wt=Z(),ut=Z(),vt=Z();T(te,G[1],G[0]),T(vt,le[1],le[0]),h(te,te,vt),V(_,G[0],G[1]),V(vt,le[0],le[1]),h(_,_,vt),h(k,G[3],le[3]),h(k,k,F),h(Ce,G[2],le[2]),V(Ce,Ce,Ce),T(ze,_,te),T(st,Ce,k),V(wt,Ce,k),V(ut,_,te),h(G[0],ze,st),h(G[1],ut,wt),h(G[2],wt,st),h(G[3],ze,ut)}function b(G,le,te){for(let _=0;_<4;_++)De(G[_],le[_],te)}function p(G,le){const te=Z(),_=Z(),k=Z();(function v(G,le){const te=Z();let _;for(_=0;_<16;_++)te[_]=le[_];for(_=253;_>=0;_--)l(te,te),2!==_&&4!==_&&h(te,te,le);for(_=0;_<16;_++)G[_]=te[_]})(k,le[2]),h(te,le[0],k),h(_,le[1],k),Ee(G,_),G[31]^=z(te)<<7}function P(G,le){const te=[Z(),Z(),Z(),Z()];S(te[0],ue),S(te[1],he),S(te[2],$),h(te[3],ue,he),function D(G,le,te){S(G[0],K),S(G[1],$),S(G[2],$),S(G[3],K);for(let _=255;_>=0;--_){const k=te[_/8|0]>>(7&_)&1;b(G,le,k),x(le,G),x(G,G),b(G,le,k)}}(G,te,le)}m._w=function C(G){if(G.length!==m.aP)throw new Error(`ed25519: seed must be ${m.aP} bytes`);const le=(0,_e.hash)(G);le[0]&=248,le[31]&=127,le[31]|=64;const te=new Uint8Array(32),_=[Z(),Z(),Z(),Z()];P(_,le),p(te,_);const k=new Uint8Array(64);return k.set(G),k.set(te,32),{publicKey:te,secretKey:k}};const ce=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function W(G,le){let te,_,k,Ce;for(_=63;_>=32;--_){for(te=0,k=_-32,Ce=_-12;k>4)*ce[k],te=le[k]>>8,le[k]&=255;for(k=0;k<32;k++)le[k]-=te*ce[k];for(_=0;_<32;_++)le[_+1]+=le[_]>>8,G[_]=255&le[_]}function Pe(G){const le=new Float64Array(64);for(let te=0;te<64;te++)le[te]=G[te];for(let te=0;te<64;te++)G[te]=0;W(G,le)}m.Xx=function ye(G,le){const te=new Float64Array(64),_=[Z(),Z(),Z(),Z()],k=(0,_e.hash)(G.subarray(0,32));k[0]&=248,k[31]&=127,k[31]|=64;const Ce=new Uint8Array(64);Ce.set(k.subarray(32),32);const ze=new _e.SHA512;ze.update(Ce.subarray(32)),ze.update(le);const st=ze.digest();ze.clean(),Pe(st),P(_,st),p(Ce,_),ze.reset(),ze.update(Ce.subarray(0,32)),ze.update(G.subarray(32)),ze.update(le);const wt=ze.digest();Pe(wt);for(let ut=0;ut<32;ut++)te[ut]=st[ut];for(let ut=0;ut<32;ut++)for(let vt=0;vt<32;vt++)te[ut+vt]+=wt[ut]*k[vt];return W(Ce.subarray(32),te),Ce}},51845:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.isSerializableHash=function L(B){return typeof B.saveState<"u"&&typeof B.restoreState<"u"&&typeof B.cleanSavedState<"u"}},82584:(Ae,m,L)=>{"use strict";var ae=L(99171),_e=L(11512),fe=function(){function Z(oe,K,$,M){void 0===$&&($=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=oe,this._info=M;var F=ae.hmac(this._hash,$,K);this._hmac=new ae.HMAC(oe,F),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return Z.prototype._fillBuffer=function(){this._counter[0]++;var oe=this._counter[0];if(0===oe)throw new Error("hkdf: cannot expand more");this._hmac.reset(),oe>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},Z.prototype.expand=function(oe){for(var K=new Uint8Array(oe),$=0;${"use strict";Object.defineProperty(m,"__esModule",{value:!0});var B=L(51845),ae=L(93386),_e=L(11512),fe=function(){function oe(K,$){this._finished=!1,this._inner=new K,this._outer=new K,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var M=new Uint8Array(this.blockSize);$.length>this.blockSize?this._inner.update($).finish(M).clean():M.set($);for(var F=0;F{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.mul=Math.imul||function L(oe,K){var M=65535&oe,ue=65535&K;return M*ue+((oe>>>16&65535)*ue+M*(K>>>16&65535)<<16>>>0)|0},m.add=function B(oe,K){return oe+K|0},m.sub=function ae(oe,K){return oe-K|0},m.rotl=function _e(oe,K){return oe<>>32-K},m.rotr=function fe(oe,K){return oe<<32-K|oe>>>K},m.isInteger=Number.isInteger||function Z(oe){return"number"==typeof oe&&isFinite(oe)&&Math.floor(oe)===oe},m.MAX_SAFE_INTEGER=9007199254740991,m.isSafeInteger=function(oe){return m.isInteger(oe)&&oe>=-m.MAX_SAFE_INTEGER&&oe<=m.MAX_SAFE_INTEGER}},83905:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});var B=L(93386),ae=L(11512);m.DIGEST_LENGTH=16;var _e=function(){function oe(K){this.digestLength=m.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var $=K[0]|K[1]<<8;this._r[0]=8191&$;var M=K[2]|K[3]<<8;this._r[1]=8191&($>>>13|M<<3);var F=K[4]|K[5]<<8;this._r[2]=7939&(M>>>10|F<<6);var ue=K[6]|K[7]<<8;this._r[3]=8191&(F>>>7|ue<<9);var he=K[8]|K[9]<<8;this._r[4]=255&(ue>>>4|he<<12),this._r[5]=he>>>1&8190;var ie=K[10]|K[11]<<8;this._r[6]=8191&(he>>>14|ie<<2);var S=K[12]|K[13]<<8;this._r[7]=8065&(ie>>>11|S<<5);var me=K[14]|K[15]<<8;this._r[8]=8191&(S>>>8|me<<8),this._r[9]=me>>>5&127,this._pad[0]=K[16]|K[17]<<8,this._pad[1]=K[18]|K[19]<<8,this._pad[2]=K[20]|K[21]<<8,this._pad[3]=K[22]|K[23]<<8,this._pad[4]=K[24]|K[25]<<8,this._pad[5]=K[26]|K[27]<<8,this._pad[6]=K[28]|K[29]<<8,this._pad[7]=K[30]|K[31]<<8}return oe.prototype._blocks=function(K,$,M){for(var F=this._fin?0:2048,ue=this._h[0],he=this._h[1],ie=this._h[2],S=this._h[3],me=this._h[4],De=this._h[5],Ee=this._h[6],ee=this._h[7],j=this._h[8],z=this._h[9],R=this._r[0],V=this._r[1],T=this._r[2],h=this._r[3],l=this._r[4],v=this._r[5],y=this._r[6],x=this._r[7],b=this._r[8],p=this._r[9];M>=16;){var D=K[$+0]|K[$+1]<<8,P=K[$+2]|K[$+3]<<8,C=K[$+4]|K[$+5]<<8,w=K[$+6]|K[$+7]<<8,q=K[$+8]|K[$+9]<<8,ce=K[$+10]|K[$+11]<<8,W=K[$+12]|K[$+13]<<8,Pe=K[$+14]|K[$+15]<<8,ye=0,xe=ye;xe+=(ue+=8191&D)*R,xe+=(he+=8191&(D>>>13|P<<3))*(5*p),xe+=(ie+=8191&(P>>>10|C<<6))*(5*b),xe+=(S+=8191&(C>>>7|w<<9))*(5*x),ye=(xe+=(me+=8191&(w>>>4|q<<12))*(5*y))>>>13,xe&=8191,xe+=(De+=q>>>1&8191)*(5*v),xe+=(Ee+=8191&(q>>>14|ce<<2))*(5*l),xe+=(ee+=8191&(ce>>>11|W<<5))*(5*h),xe+=(j+=8191&(W>>>8|Pe<<8))*(5*T);var Te=ye+=(xe+=(z+=Pe>>>5|F)*(5*V))>>>13;Te+=ue*V,Te+=he*R,Te+=ie*(5*p),Te+=S*(5*b),ye=(Te+=me*(5*x))>>>13,Te&=8191,Te+=De*(5*y),Te+=Ee*(5*v),Te+=ee*(5*l),Te+=j*(5*h),ye+=(Te+=z*(5*T))>>>13,Te&=8191;var Le=ye;Le+=ue*T,Le+=he*V,Le+=ie*R,Le+=S*(5*p),ye=(Le+=me*(5*b))>>>13,Le&=8191,Le+=De*(5*x),Le+=Ee*(5*y),Le+=ee*(5*v),Le+=j*(5*l);var Me=ye+=(Le+=z*(5*h))>>>13;Me+=ue*h,Me+=he*T,Me+=ie*V,Me+=S*R,ye=(Me+=me*(5*p))>>>13,Me&=8191,Me+=De*(5*b),Me+=Ee*(5*x),Me+=ee*(5*y),Me+=j*(5*v);var G=ye+=(Me+=z*(5*l))>>>13;G+=ue*l,G+=he*h,G+=ie*T,G+=S*V,ye=(G+=me*R)>>>13,G&=8191,G+=De*(5*p),G+=Ee*(5*b),G+=ee*(5*x),G+=j*(5*y);var le=ye+=(G+=z*(5*v))>>>13;le+=ue*v,le+=he*l,le+=ie*h,le+=S*T,ye=(le+=me*V)>>>13,le&=8191,le+=De*R,le+=Ee*(5*p),le+=ee*(5*b),le+=j*(5*x);var te=ye+=(le+=z*(5*y))>>>13;te+=ue*y,te+=he*v,te+=ie*l,te+=S*h,ye=(te+=me*T)>>>13,te&=8191,te+=De*V,te+=Ee*R,te+=ee*(5*p),te+=j*(5*b);var _=ye+=(te+=z*(5*x))>>>13;_+=ue*x,_+=he*y,_+=ie*v,_+=S*l,ye=(_+=me*h)>>>13,_&=8191,_+=De*T,_+=Ee*V,_+=ee*R,_+=j*(5*p);var k=ye+=(_+=z*(5*b))>>>13;k+=ue*b,k+=he*x,k+=ie*y,k+=S*v,ye=(k+=me*l)>>>13,k&=8191,k+=De*h,k+=Ee*T,k+=ee*V,k+=j*R;var Ce=ye+=(k+=z*(5*p))>>>13;Ce+=ue*p,Ce+=he*b,Ce+=ie*x,Ce+=S*y,ye=(Ce+=me*v)>>>13,Ce&=8191,Ce+=De*l,Ce+=Ee*h,Ce+=ee*T,Ce+=j*V,ue=xe=8191&(ye=(ye=((ye+=(Ce+=z*R)>>>13)<<2)+ye|0)+(xe&=8191)|0),he=Te+=ye>>>=13,ie=Le&=8191,S=Me&=8191,me=G&=8191,De=le&=8191,Ee=te&=8191,ee=_&=8191,j=k&=8191,z=Ce&=8191,$+=16,M-=16}this._h[0]=ue,this._h[1]=he,this._h[2]=ie,this._h[3]=S,this._h[4]=me,this._h[5]=De,this._h[6]=Ee,this._h[7]=ee,this._h[8]=j,this._h[9]=z},oe.prototype.finish=function(K,$){void 0===$&&($=0);var F,ue,he,ie,M=new Uint16Array(10);if(this._leftover){for(ie=this._leftover,this._buffer[ie++]=1;ie<16;ie++)this._buffer[ie]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(F=this._h[1]>>>13,this._h[1]&=8191,ie=2;ie<10;ie++)this._h[ie]+=F,F=this._h[ie]>>>13,this._h[ie]&=8191;for(this._h[0]+=5*F,F=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=F,F=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=F,M[0]=this._h[0]+5,F=M[0]>>>13,M[0]&=8191,ie=1;ie<10;ie++)M[ie]=this._h[ie]+F,F=M[ie]>>>13,M[ie]&=8191;for(M[9]-=8192,ue=(1^F)-1,ie=0;ie<10;ie++)M[ie]&=ue;for(ue=~ue,ie=0;ie<10;ie++)this._h[ie]=this._h[ie]&ue|M[ie];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),this._h[0]=65535&(he=this._h[0]+this._pad[0]),ie=1;ie<8;ie++)this._h[ie]=65535&(he=(this._h[ie]+this._pad[ie]|0)+(he>>>16)|0);return K[$+0]=this._h[0]>>>0,K[$+1]=this._h[0]>>>8,K[$+2]=this._h[1]>>>0,K[$+3]=this._h[1]>>>8,K[$+4]=this._h[2]>>>0,K[$+5]=this._h[2]>>>8,K[$+6]=this._h[3]>>>0,K[$+7]=this._h[3]>>>8,K[$+8]=this._h[4]>>>0,K[$+9]=this._h[4]>>>8,K[$+10]=this._h[5]>>>0,K[$+11]=this._h[5]>>>8,K[$+12]=this._h[6]>>>0,K[$+13]=this._h[6]>>>8,K[$+14]=this._h[7]>>>0,K[$+15]=this._h[7]>>>8,this._finished=!0,this},oe.prototype.update=function(K){var F,$=0,M=K.length;if(this._leftover){(F=16-this._leftover)>M&&(F=M);for(var ue=0;ue=16&&(this._blocks(K,$,F=M-M%16),$+=F,M-=F),M){for(ue=0;ue{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.randomStringForEntropy=m.randomString=m.randomUint32=m.randomBytes=m.defaultRandomSource=void 0;const B=L(14894),ae=L(32222),_e=L(11512);function fe(M,F=m.defaultRandomSource){return F.randomBytes(M)}m.defaultRandomSource=new B.SystemRandomSource,m.randomBytes=fe,m.randomUint32=function Z(M=m.defaultRandomSource){const F=fe(4,M),ue=(0,ae.readUint32LE)(F);return(0,_e.wipe)(F),ue};const oe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function K(M,F=oe,ue=m.defaultRandomSource){if(F.length<2)throw new Error("randomString charset is too short");if(F.length>256)throw new Error("randomString charset is too long");let he="";const ie=F.length,S=256-256%ie;for(;M>0;){const me=fe(Math.ceil(256*M/S),ue);for(let De=0;De0;De++){const Ee=me[De];Ee{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.BrowserRandomSource=void 0,m.BrowserRandomSource=class B{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const _e=typeof self<"u"?self.crypto||self.msCrypto:null;_e&&void 0!==_e.getRandomValues&&(this._crypto=_e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(_e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const fe=new Uint8Array(_e);for(let Z=0;Z{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.NodeRandomSource=void 0;const B=L(11512);m.NodeRandomSource=class ae{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const fe=L(19726);fe&&fe.randomBytes&&(this._crypto=fe,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(fe){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let Z=this._crypto.randomBytes(fe);if(Z.length!==fe)throw new Error("NodeRandomSource: got fewer bytes than requested");const oe=new Uint8Array(fe);for(let K=0;K{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.SystemRandomSource=void 0;const B=L(33607),ae=L(73022);m.SystemRandomSource=class _e{constructor(){return this.isAvailable=!1,this.name="",this._source=new B.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new ae.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(Z){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(Z)}}},59373:(Ae,m,L)=>{"use strict";var ae=L(32222),_e=L(11512);m.k=32,m.cn=64;var fe=function(){function $(){this.digestLength=m.k,this.blockSize=m.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return $.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},$.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},$.prototype.clean=function(){_e.wipe(this._buffer),_e.wipe(this._temp),this.reset()},$.prototype.update=function(M,F){if(void 0===F&&(F=M.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var ue=0;if(this._bytesHashed+=F,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=M[ue++],F--;this._bufferLength===this.blockSize&&(oe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(F>=this.blockSize&&(ue=oe(this._temp,this._state,M,ue,F),F%=this.blockSize);F>0;)this._buffer[this._bufferLength++]=M[ue++],F--;return this},$.prototype.finish=function(M){if(!this._finished){var F=this._bytesHashed,ue=this._bufferLength,he=F/536870912|0,ie=F<<3,S=F%64<56?64:128;this._buffer[ue]=128;for(var me=ue+1;me0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},$.prototype.restoreState=function(M){return this._state.set(M.state),this._bufferLength=M.bufferLength,M.buffer&&this._buffer.set(M.buffer),this._bytesHashed=M.bytesHashed,this._finished=!1,this},$.prototype.cleanSavedState=function(M){_e.wipe(M.state),M.buffer&&_e.wipe(M.buffer),M.bufferLength=0,M.bytesHashed=0},$}();m.mE=fe;var Z=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function oe($,M,F,ue,he){for(;he>=64;){for(var ie=M[0],S=M[1],me=M[2],De=M[3],Ee=M[4],ee=M[5],j=M[6],z=M[7],R=0;R<16;R++)$[R]=ae.readUint32BE(F,ue+4*R);for(R=16;R<64;R++){var T=$[R-2];$[R]=((h=(T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+$[R-7]|0)+((l=((T=$[R-15])>>>7|T<<25)^(T>>>18|T<<14)^T>>>3)+$[R-16]|0)}for(R=0;R<64;R++){var h=(((Ee>>>6|Ee<<26)^(Ee>>>11|Ee<<21)^(Ee>>>25|Ee<<7))+(Ee&ee^~Ee&j)|0)+(z+(Z[R]+$[R]|0)|0)|0,l=((ie>>>2|ie<<30)^(ie>>>13|ie<<19)^(ie>>>22|ie<<10))+(ie&S^ie&me^S&me)|0;z=j,j=ee,ee=Ee,Ee=De+h|0,De=me,me=S,S=ie,ie=h+l|0}M[0]+=ie,M[1]+=S,M[2]+=me,M[3]+=De,M[4]+=Ee,M[5]+=ee,M[6]+=j,M[7]+=z,ue+=64,he-=64}return ue}m.vp=function K($){var M=new fe;M.update($);var F=M.digest();return M.clean(),F}},85198:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});var B=L(32222),ae=L(11512);m.DIGEST_LENGTH=64,m.BLOCK_SIZE=128;var _e=function(){function K(){this.digestLength=m.DIGEST_LENGTH,this.blockSize=m.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return K.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},K.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},K.prototype.clean=function(){ae.wipe(this._buffer),ae.wipe(this._tempHi),ae.wipe(this._tempLo),this.reset()},K.prototype.update=function($,M){if(void 0===M&&(M=$.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var F=0;if(this._bytesHashed+=M,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=$[F++],M--;this._bufferLength===this.blockSize&&(Z(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(M>=this.blockSize&&(F=Z(this._tempHi,this._tempLo,this._stateHi,this._stateLo,$,F,M),M%=this.blockSize);M>0;)this._buffer[this._bufferLength++]=$[F++],M--;return this},K.prototype.finish=function($){if(!this._finished){var M=this._bytesHashed,F=this._bufferLength,ue=M/536870912|0,he=M<<3,ie=M%128<112?128:256;this._buffer[F]=128;for(var S=F+1;S0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},K.prototype.restoreState=function($){return this._stateHi.set($.stateHi),this._stateLo.set($.stateLo),this._bufferLength=$.bufferLength,$.buffer&&this._buffer.set($.buffer),this._bytesHashed=$.bytesHashed,this._finished=!1,this},K.prototype.cleanSavedState=function($){ae.wipe($.stateHi),ae.wipe($.stateLo),$.buffer&&ae.wipe($.buffer),$.bufferLength=0,$.bytesHashed=0},K}();m.SHA512=_e;var fe=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function Z(K,$,M,F,ue,he,ie){for(var p,D,P,C,w,q,ce,W,S=M[0],me=M[1],De=M[2],Ee=M[3],ee=M[4],j=M[5],z=M[6],R=M[7],V=F[0],T=F[1],h=F[2],l=F[3],v=F[4],y=F[5],x=F[6],b=F[7];ie>=128;){for(var Pe=0;Pe<16;Pe++)K[Pe]=B.readUint32BE(ue,ye=8*Pe+he),$[Pe]=B.readUint32BE(ue,ye+4);for(Pe=0;Pe<80;Pe++){var _,Bt,Te=me,Le=De,Me=Ee,G=ee,le=j,te=z,Ce=T,ze=h,st=l,wt=v,ut=y,vt=x;if(w=65535&(D=b),q=D>>>16,ce=65535&(p=R),W=p>>>16,w+=65535&(D=(v>>>14|ee<<18)^(v>>>18|ee<<14)^(ee>>>9|v<<23)),q+=D>>>16,ce+=65535&(p=(ee>>>14|v<<18)^(ee>>>18|v<<14)^(v>>>9|ee<<23)),W+=p>>>16,w+=65535&(D=v&y^~v&x),q+=D>>>16,ce+=65535&(p=ee&j^~ee&z),W+=p>>>16,w+=65535&(D=fe[2*Pe+1]),q+=D>>>16,ce+=65535&(p=fe[2*Pe]),W+=p>>>16,q+=(D=$[Pe%16])>>>16,ce+=65535&(p=K[Pe%16]),W+=p>>>16,ce+=(q+=(w+=65535&D)>>>16)>>>16,w=65535&(D=C=65535&w|q<<16),q=D>>>16,ce=65535&(p=P=65535&ce|(W+=ce>>>16)<<16),W=p>>>16,w+=65535&(D=(V>>>28|S<<4)^(S>>>2|V<<30)^(S>>>7|V<<25)),q+=D>>>16,ce+=65535&(p=(S>>>28|V<<4)^(V>>>2|S<<30)^(V>>>7|S<<25)),W+=p>>>16,q+=(D=V&T^V&h^T&h)>>>16,ce+=65535&(p=S&me^S&De^me&De),W+=p>>>16,_=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,Bt=65535&w|q<<16,w=65535&(D=st),q=D>>>16,ce=65535&(p=Me),W=p>>>16,q+=(D=C)>>>16,ce+=65535&(p=P),W+=p>>>16,me=S,De=Te,Ee=Le,ee=Me=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,j=G,z=le,R=te,S=_,T=V,h=Ce,l=ze,v=st=65535&w|q<<16,y=wt,x=ut,b=vt,V=Bt,Pe%16==15)for(var ye=0;ye<16;ye++)w=65535&(D=$[ye]),q=D>>>16,ce=65535&(p=K[ye]),W=p>>>16,w+=65535&(D=$[(ye+9)%16]),q+=D>>>16,ce+=65535&(p=K[(ye+9)%16]),W+=p>>>16,w+=65535&(D=((C=$[(ye+1)%16])>>>1|(P=K[(ye+1)%16])<<31)^(C>>>8|P<<24)^(C>>>7|P<<25)),q+=D>>>16,ce+=65535&(p=(P>>>1|C<<31)^(P>>>8|C<<24)^P>>>7),W+=p>>>16,q+=(D=((C=$[(ye+14)%16])>>>19|(P=K[(ye+14)%16])<<13)^(P>>>29|C<<3)^(C>>>6|P<<26))>>>16,ce+=65535&(p=(P>>>19|C<<13)^(C>>>29|P<<3)^P>>>6),W+=p>>>16,K[ye]=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,$[ye]=65535&w|q<<16}w=65535&(D=V),q=D>>>16,ce=65535&(p=S),W=p>>>16,q+=(D=F[0])>>>16,ce+=65535&(p=M[0]),W+=p>>>16,M[0]=S=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[0]=V=65535&w|q<<16,w=65535&(D=T),q=D>>>16,ce=65535&(p=me),W=p>>>16,q+=(D=F[1])>>>16,ce+=65535&(p=M[1]),W+=p>>>16,M[1]=me=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[1]=T=65535&w|q<<16,w=65535&(D=h),q=D>>>16,ce=65535&(p=De),W=p>>>16,q+=(D=F[2])>>>16,ce+=65535&(p=M[2]),W+=p>>>16,M[2]=De=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[2]=h=65535&w|q<<16,w=65535&(D=l),q=D>>>16,ce=65535&(p=Ee),W=p>>>16,q+=(D=F[3])>>>16,ce+=65535&(p=M[3]),W+=p>>>16,M[3]=Ee=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[3]=l=65535&w|q<<16,w=65535&(D=v),q=D>>>16,ce=65535&(p=ee),W=p>>>16,q+=(D=F[4])>>>16,ce+=65535&(p=M[4]),W+=p>>>16,M[4]=ee=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[4]=v=65535&w|q<<16,w=65535&(D=y),q=D>>>16,ce=65535&(p=j),W=p>>>16,q+=(D=F[5])>>>16,ce+=65535&(p=M[5]),W+=p>>>16,M[5]=j=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[5]=y=65535&w|q<<16,w=65535&(D=x),q=D>>>16,ce=65535&(p=z),W=p>>>16,q+=(D=F[6])>>>16,ce+=65535&(p=M[6]),W+=p>>>16,M[6]=z=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[6]=x=65535&w|q<<16,w=65535&(D=b),q=D>>>16,ce=65535&(p=R),W=p>>>16,q+=(D=F[7])>>>16,ce+=65535&(p=M[7]),W+=p>>>16,M[7]=R=65535&(ce+=(q+=(w+=65535&D)>>>16)>>>16)|(W+=ce>>>16)<<16,F[7]=b=65535&w|q<<16,he+=128,ie-=128}return he}m.hash=function oe(K){var $=new _e;$.update(K);var M=$.digest();return $.clean(),M}},11512:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.wipe=function L(B){for(var ae=0;ae{"use strict";m.gi=m.Au=m.KS=m.kz=void 0;const ae=L(7841),_e=L(11512);function fe(R){const V=new Float64Array(16);if(R)for(let T=0;T=0;--w){const q=T[w>>>3]>>>(7&w)&1;$(l,v,q),$(y,x,q),ue(b,l,y),he(l,l,y),ue(y,v,x),he(v,v,x),S(x,b),S(p,l),ie(l,y,l),ie(y,v,b),ue(b,l,y),he(l,l,y),S(v,l),he(y,x,p),ie(l,y,oe),ue(l,l,x),ie(y,y,l),ie(l,x,p),ie(x,v,h),S(v,b),$(l,v,q),$(y,x,q)}for(let w=0;w<16;w++)h[w+16]=l[w],h[w+32]=y[w],h[w+48]=v[w],h[w+64]=x[w];const D=h.subarray(32),P=h.subarray(16);(function me(R,V){const T=fe();for(let h=0;h<16;h++)T[h]=V[h];for(let h=253;h>=0;h--)S(T,T),2!==h&&4!==h&&ie(T,T,V);for(let h=0;h<16;h++)R[h]=T[h]})(D,D),ie(P,P,D);const C=new Uint8Array(32);return function M(R,V){const T=fe(),h=fe();for(let l=0;l<16;l++)h[l]=V[l];K(h),K(h),K(h);for(let l=0;l<2;l++){T[0]=h[0]-65517;for(let y=1;y<15;y++)T[y]=h[y]-65535-(T[y-1]>>16&1),T[y-1]&=65535;T[15]=h[15]-32767-(T[14]>>16&1);const v=T[15]>>16&1;T[14]&=65535,$(h,T,1-v)}for(let l=0;l<16;l++)R[2*l]=255&h[l],R[2*l+1]=h[l]>>8}(C,P),C}function Ee(R){return De(R,Z)}m.Au=function j(R){const V=(0,ae.randomBytes)(32,R),T=function ee(R){if(R.length!==m.KS)throw new Error(`x25519: seed must be ${m.KS} bytes`);const V=new Uint8Array(R);return{publicKey:Ee(V),secretKey:V}}(V);return(0,_e.wipe)(V),T},m.gi=function z(R,V,T=!1){if(R.length!==m.kz)throw new Error("X25519: incorrect secret key length");if(V.length!==m.kz)throw new Error("X25519: incorrect public key length");const h=De(R,V);if(T){let l=0;for(let v=0;v{"use strict";function L(){return(null==global?void 0:global.crypto)||(null==global?void 0:global.msCrypto)||{}}function B(){const _e=L();return _e.subtle||_e.webkitSubtle}Object.defineProperty(m,"__esModule",{value:!0}),m.isBrowserCryptoAvailable=m.getSubtleCrypto=m.getBrowerCrypto=void 0,m.getBrowerCrypto=L,m.getSubtleCrypto=B,m.isBrowserCryptoAvailable=function ae(){return!!L()&&!!B()}},26e3:(Ae,m)=>{"use strict";function L(){return typeof document>"u"&&typeof navigator<"u"&&"ReactNative"===navigator.product}function B(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Object.defineProperty(m,"__esModule",{value:!0}),m.isBrowser=m.isNode=m.isReactNative=void 0,m.isReactNative=L,m.isNode=B,m.isBrowser=function ae(){return!L()&&!B()}},43841:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});const B=L(69763);B.__exportStar(L(38573),m),B.__exportStar(L(26e3),m)},43795:(Ae,m,L)=>{"use strict";L.d(m,{q:()=>B});class B{}},39282:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{IEvents:()=>B.q});var B=L(43795)},6602:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.HEARTBEAT_EVENTS=m.HEARTBEAT_INTERVAL=void 0;const B=L(40145);m.HEARTBEAT_INTERVAL=B.FIVE_SECONDS,m.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},40073:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),L(99940).__exportStar(L(6602),m)},81382:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.HeartBeat=void 0;const B=L(99940),ae=L(2272),_e=L(40145),fe=L(77522),Z=L(40073);class oe extends fe.IHeartBeat{constructor($){super($),this.events=new ae.EventEmitter,this.interval=Z.HEARTBEAT_INTERVAL,this.interval=(null==$?void 0:$.interval)||Z.HEARTBEAT_INTERVAL}static init($){return B.__awaiter(this,void 0,void 0,function*(){const M=new oe($);return yield M.init(),M})}init(){return B.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on($,M){this.events.on($,M)}once($,M){this.events.once($,M)}off($,M){this.events.off($,M)}removeListener($,M){this.events.removeListener($,M)}initialize(){return B.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),_e.toMiliseconds(this.interval))})}pulse(){this.events.emit(Z.HEARTBEAT_EVENTS.pulse)}}m.HeartBeat=oe},40851:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});const B=L(99940);B.__exportStar(L(81382),m),B.__exportStar(L(77522),m),B.__exportStar(L(40073),m)},31849:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.IHeartBeat=void 0;const B=L(39282);m.IHeartBeat=class ae extends B.IEvents{constructor(fe){super()}}},77522:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),L(99940).__exportStar(L(31849),m)},83169:(Ae,m,L)=>{"use strict";const ae=L(92818),_e=L(53439),fe=ae.__importDefault(L(271)),Z=L(86586);m.ZP=class oe{constructor(){this.localStorage=fe.default}getKeys(){return ae.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return ae.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(Z.parseEntry)})}getItem($){return ae.__awaiter(this,void 0,void 0,function*(){const M=this.localStorage.getItem($);if(null!==M)return _e.safeJsonParse(M)})}setItem($,M){return ae.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem($,_e.safeJsonStringify(M))})}removeItem($){return ae.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem($)})}}},271:Ae=>{"use strict";!function(){let m;function L(){}m=L,m.prototype.getItem=function(B){return this.hasOwnProperty(B)?String(this[B]):null},m.prototype.setItem=function(B,ae){this[B]=String(ae)},m.prototype.removeItem=function(B){delete this[B]},m.prototype.clear=function(){const B=this;Object.keys(B).forEach(function(ae){B[ae]=void 0,delete B[ae]})},m.prototype.key=function(B){return B=B||0,Object.keys(this)[B]},m.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),Ae.exports=typeof global<"u"&&global.localStorage?global.localStorage:typeof window<"u"&&window.localStorage?window.localStorage:new L}()},86586:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});const B=L(92818);B.__exportStar(L(68684),m),B.__exportStar(L(2043),m)},68684:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.IKeyValueStorage=void 0,m.IKeyValueStorage=class L{}},2043:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.parseEntry=void 0;const B=L(53439);m.parseEntry=function ae(_e){var fe;return[_e[0],B.safeJsonParse(null!==(fe=_e[1])&&void 0!==fe?fe:"")]}},20191:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.PINO_CUSTOM_CONTEXT_KEY=m.PINO_LOGGER_DEFAULTS=void 0,m.PINO_LOGGER_DEFAULTS={level:"info"},m.PINO_CUSTOM_CONTEXT_KEY="custom_context"},71268:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.pino=void 0;const B=L(20263),ae=B.__importDefault(L(37386));Object.defineProperty(m,"pino",{enumerable:!0,get:function(){return ae.default}}),B.__exportStar(L(20191),m),B.__exportStar(L(59164),m)},59164:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.generateChildLogger=m.formatChildLoggerContext=m.getLoggerContext=m.setBrowserLoggerContext=m.getBrowserLoggerContext=m.getDefaultLoggerOptions=void 0;const B=L(20191);function _e($,M=B.PINO_CUSTOM_CONTEXT_KEY){return $[M]||""}function fe($,M,F=B.PINO_CUSTOM_CONTEXT_KEY){return $[F]=M,$}function Z($,M=B.PINO_CUSTOM_CONTEXT_KEY){let F="";return F=typeof $.bindings>"u"?_e($,M):$.bindings().context||"",F}function oe($,M,F=B.PINO_CUSTOM_CONTEXT_KEY){const ue=Z($,F);return ue.trim()?`${ue}/${M}`:M}m.getDefaultLoggerOptions=function ae($){return Object.assign(Object.assign({},$),{level:(null==$?void 0:$.level)||B.PINO_LOGGER_DEFAULTS.level})},m.getBrowserLoggerContext=_e,m.setBrowserLoggerContext=fe,m.getLoggerContext=Z,m.formatChildLoggerContext=oe,m.generateChildLogger=function K($,M,F=B.PINO_CUSTOM_CONTEXT_KEY){const ue=oe($,M,F);return fe($.child({context:ue}),ue,F)}},43025:()=>{},84143:()=>{},21833:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});const B=L(58092);B.__exportStar(L(77892),m),B.__exportStar(L(72562),m)},77892:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ONE_THOUSAND=m.ONE_HUNDRED=void 0,m.ONE_HUNDRED=100,m.ONE_THOUSAND=1e3},72562:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ONE_YEAR=m.FOUR_WEEKS=m.THREE_WEEKS=m.TWO_WEEKS=m.ONE_WEEK=m.THIRTY_DAYS=m.SEVEN_DAYS=m.FIVE_DAYS=m.THREE_DAYS=m.ONE_DAY=m.TWENTY_FOUR_HOURS=m.TWELVE_HOURS=m.SIX_HOURS=m.THREE_HOURS=m.ONE_HOUR=m.SIXTY_MINUTES=m.THIRTY_MINUTES=m.TEN_MINUTES=m.FIVE_MINUTES=m.ONE_MINUTE=m.SIXTY_SECONDS=m.THIRTY_SECONDS=m.TEN_SECONDS=m.FIVE_SECONDS=m.ONE_SECOND=void 0,m.ONE_SECOND=1,m.FIVE_SECONDS=5,m.TEN_SECONDS=10,m.THIRTY_SECONDS=30,m.SIXTY_SECONDS=60,m.ONE_MINUTE=m.SIXTY_SECONDS,m.FIVE_MINUTES=5*m.ONE_MINUTE,m.TEN_MINUTES=10*m.ONE_MINUTE,m.THIRTY_MINUTES=30*m.ONE_MINUTE,m.SIXTY_MINUTES=60*m.ONE_MINUTE,m.ONE_HOUR=m.SIXTY_MINUTES,m.THREE_HOURS=3*m.ONE_HOUR,m.SIX_HOURS=6*m.ONE_HOUR,m.TWELVE_HOURS=12*m.ONE_HOUR,m.TWENTY_FOUR_HOURS=24*m.ONE_HOUR,m.ONE_DAY=m.TWENTY_FOUR_HOURS,m.THREE_DAYS=3*m.ONE_DAY,m.FIVE_DAYS=5*m.ONE_DAY,m.SEVEN_DAYS=7*m.ONE_DAY,m.THIRTY_DAYS=30*m.ONE_DAY,m.ONE_WEEK=m.SEVEN_DAYS,m.TWO_WEEKS=2*m.ONE_WEEK,m.THREE_WEEKS=3*m.ONE_WEEK,m.FOUR_WEEKS=4*m.ONE_WEEK,m.ONE_YEAR=365*m.ONE_DAY},40145:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});const B=L(58092);B.__exportStar(L(94256),m),B.__exportStar(L(59794),m),B.__exportStar(L(16834),m),B.__exportStar(L(21833),m)},16834:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),L(58092).__exportStar(L(45412),m)},45412:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.IWatch=void 0,m.IWatch=class L{}},24500:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.fromMiliseconds=m.toMiliseconds=void 0;const B=L(21833);m.toMiliseconds=function ae(fe){return fe*B.ONE_THOUSAND},m.fromMiliseconds=function _e(fe){return Math.floor(fe/B.ONE_THOUSAND)}},23337:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.delay=void 0,m.delay=function L(B){return new Promise(ae=>{setTimeout(()=>{ae(!0)},B)})}},94256:(Ae,m,L)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});const B=L(58092);B.__exportStar(L(23337),m),B.__exportStar(L(24500),m)},59794:(Ae,m)=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.Watch=void 0;class L{constructor(){this.timestamps=new Map}start(ae){if(this.timestamps.has(ae))throw new Error(`Watch already started for label: ${ae}`);this.timestamps.set(ae,{started:Date.now()})}stop(ae){const _e=this.get(ae);if(typeof _e.elapsed<"u")throw new Error(`Watch already stopped for label: ${ae}`);const fe=Date.now()-_e.started;this.timestamps.set(ae,{started:_e.started,elapsed:fe})}get(ae){const _e=this.timestamps.get(ae);if(typeof _e>"u")throw new Error(`No timestamp found for label: ${ae}`);return _e}elapsed(ae){const _e=this.get(ae);return _e.elapsed||Date.now()-_e.started}}m.Watch=L,m.default=L},6179:(Ae,m)=>{"use strict";function L(he){let ie;return typeof window<"u"&&typeof window[he]<"u"&&(ie=window[he]),ie}function B(he){const ie=L(he);if(!ie)throw new Error(`${he} is not defined in Window`);return ie}Object.defineProperty(m,"__esModule",{value:!0}),m.getLocalStorage=m.getLocalStorageOrThrow=m.getCrypto=m.getCryptoOrThrow=m.getLocation=m.getLocationOrThrow=m.getNavigator=m.getNavigatorOrThrow=m.getDocument=m.getDocumentOrThrow=m.getFromWindowOrThrow=m.getFromWindow=void 0,m.getFromWindow=L,m.getFromWindowOrThrow=B,m.getDocumentOrThrow=function ae(){return B("document")},m.getDocument=function _e(){return L("document")},m.getNavigatorOrThrow=function fe(){return B("navigator")},m.getNavigator=function Z(){return L("navigator")},m.getLocationOrThrow=function oe(){return B("location")},m.getLocation=function K(){return L("location")},m.getCryptoOrThrow=function $(){return B("crypto")},m.getCrypto=function M(){return L("crypto")},m.getLocalStorageOrThrow=function F(){return B("localStorage")},m.getLocalStorage=function ue(){return L("localStorage")}},98064:(Ae,m,L)=>{"use strict";m.D=void 0;const ae=L(6179);m.D=function _e(){let fe,Z;try{fe=ae.getDocumentOrThrow(),Z=ae.getLocationOrThrow()}catch{return null}function K(...me){const De=fe.getElementsByTagName("meta");for(let Ee=0;Eeee.getAttribute(z)).filter(z=>!!z&&me.includes(z));if(j.length&&j){const z=ee.getAttribute("content");if(z)return z}}return""}const F=function $(){let me=K("name","og:site_name","og:title","twitter:title");return me||(me=fe.title),me}();return{description:function M(){return K("description","og:description","twitter:description","keywords")}(),url:Z.origin,icons:function oe(){const me=fe.getElementsByTagName("link"),De=[];for(let Ee=0;Ee-1){const z=ee.getAttribute("href");if(z)if(-1===z.toLowerCase().indexOf("https:")&&-1===z.toLowerCase().indexOf("http:")&&0!==z.indexOf("//")){let R=Z.protocol+"//"+Z.host;if(0===z.indexOf("/"))R+=z;else{const V=Z.pathname.split("/");V.pop(),R+=V.join("/")+"/"+z}De.push(R)}else 0===z.indexOf("//")?De.push(Z.protocol+z):De.push(z)}}return De}(),name:F}}},5928:function(Ae,m){var _e,L=typeof self<"u"?self:this,B=function(){function _e(){this.fetch=!1,this.DOMException=L.DOMException}return _e.prototype=L,new _e}();_e=B,function(Z){var oe_searchParams="URLSearchParams"in _e,oe_iterable="Symbol"in _e&&"iterator"in Symbol,oe_blob="FileReader"in _e&&"Blob"in _e&&function(){try{return new Blob,!0}catch{return!1}}(),oe_formData="FormData"in _e,oe_arrayBuffer="ArrayBuffer"in _e;if(oe_arrayBuffer)var $=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],M=ArrayBuffer.isView||function(b){return b&&$.indexOf(Object.prototype.toString.call(b))>-1};function F(b){if("string"!=typeof b&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(b))throw new TypeError("Invalid character in header field name");return b.toLowerCase()}function ue(b){return"string"!=typeof b&&(b=String(b)),b}function he(b){var p={next:function(){var D=b.shift();return{done:void 0===D,value:D}}};return oe_iterable&&(p[Symbol.iterator]=function(){return p}),p}function ie(b){this.map={},b instanceof ie?b.forEach(function(p,D){this.append(D,p)},this):Array.isArray(b)?b.forEach(function(p){this.append(p[0],p[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(p){this.append(p,b[p])},this)}function S(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function me(b){return new Promise(function(p,D){b.onload=function(){p(b.result)},b.onerror=function(){D(b.error)}})}function De(b){var p=new FileReader,D=me(p);return p.readAsArrayBuffer(b),D}function j(b){if(b.slice)return b.slice(0);var p=new Uint8Array(b.byteLength);return p.set(new Uint8Array(b)),p.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(b){this._bodyInit=b,b?"string"==typeof b?this._bodyText=b:oe_blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:oe_formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:oe_searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():oe_arrayBuffer&&oe_blob&&function K(b){return b&&DataView.prototype.isPrototypeOf(b)}(b)?(this._bodyArrayBuffer=j(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):oe_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||M(b))?this._bodyArrayBuffer=j(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||("string"==typeof b?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):oe_searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},oe_blob&&(this.blob=function(){var b=S(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?S(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(De)}),this.text=function(){var b=S(this);if(b)return b;if(this._bodyBlob)return function Ee(b){var p=new FileReader,D=me(p);return p.readAsText(b),D}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function ee(b){for(var p=new Uint8Array(b),D=new Array(p.length),P=0;P-1?p:b}(p.method||this.method||"GET"),this.mode=p.mode||this.mode||null,this.signal=p.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&D)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(D)}function h(b){var p=new FormData;return b.trim().split("&").forEach(function(D){if(D){var P=D.split("="),C=P.shift().replace(/\+/g," "),w=P.join("=").replace(/\+/g," ");p.append(decodeURIComponent(C),decodeURIComponent(w))}}),p}function l(b){var p=new ie;return b.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(P){var C=P.split(":"),w=C.shift().trim();if(w){var q=C.join(":").trim();p.append(w,q)}}),p}function v(b,p){p||(p={}),this.type="default",this.status=void 0===p.status?200:p.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in p?p.statusText:"OK",this.headers=new ie(p.headers),this.url=p.url||"",this._initBody(b)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})},z.call(T.prototype),z.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ie(this.headers),url:this.url})},v.error=function(){var b=new v(null,{status:0,statusText:""});return b.type="error",b};var y=[301,302,303,307,308];v.redirect=function(b,p){if(-1===y.indexOf(p))throw new RangeError("Invalid status code");return new v(null,{status:p,headers:{location:b}})},Z.DOMException=_e.DOMException;try{new Z.DOMException}catch{Z.DOMException=function(p,D){this.message=p,this.name=D;var P=Error(p);this.stack=P.stack},Z.DOMException.prototype=Object.create(Error.prototype),Z.DOMException.prototype.constructor=Z.DOMException}function x(b,p){return new Promise(function(D,P){var C=new T(b,p);if(C.signal&&C.signal.aborted)return P(new Z.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function q(){w.abort()}w.onload=function(){var ce={status:w.status,statusText:w.statusText,headers:l(w.getAllResponseHeaders()||"")};ce.url="responseURL"in w?w.responseURL:ce.headers.get("X-Request-URL"),D(new v("response"in w?w.response:w.responseText,ce))},w.onerror=function(){P(new TypeError("Network request failed"))},w.ontimeout=function(){P(new TypeError("Network request failed"))},w.onabort=function(){P(new Z.DOMException("Aborted","AbortError"))},w.open(C.method,C.url,!0),"include"===C.credentials?w.withCredentials=!0:"omit"===C.credentials&&(w.withCredentials=!1),"responseType"in w&&oe_blob&&(w.responseType="blob"),C.headers.forEach(function(ce,W){w.setRequestHeader(W,ce)}),C.signal&&(C.signal.addEventListener("abort",q),w.onreadystatechange=function(){4===w.readyState&&C.signal.removeEventListener("abort",q)}),w.send(typeof C._bodyInit>"u"?null:C._bodyInit)})}x.polyfill=!0,_e.fetch||(_e.fetch=x,_e.Headers=ie,_e.Request=T,_e.Response=v),Z.Headers=ie,Z.Request=T,Z.Response=v,Z.fetch=x,Object.defineProperty(Z,"__esModule",{value:!0})}({}),B.fetch.ponyfill=!0,delete B.fetch.polyfill;var ae=B;(m=ae.fetch).default=ae.fetch,m.fetch=ae.fetch,m.Headers=ae.Headers,m.Request=ae.Request,m.Response=ae.Response,Ae.exports=m},80318:Ae=>{"use strict";var m="%[a-f0-9]{2}",L=new RegExp("("+m+")|([^%]+?)","gi"),B=new RegExp("("+m+")+","gi");function ae(Z,oe){try{return[decodeURIComponent(Z.join(""))]}catch{}if(1===Z.length)return Z;var K=Z.slice(0,oe=oe||1),$=Z.slice(oe);return Array.prototype.concat.call([],ae(K),ae($))}function _e(Z){try{return decodeURIComponent(Z)}catch{for(var oe=Z.match(L)||[],K=1;K{"use strict";var B,m="object"==typeof Reflect?Reflect:null,L=m&&"function"==typeof m.apply?m.apply:function(z,R,V){return Function.prototype.apply.call(z,R,V)};B=m&&"function"==typeof m.ownKeys?m.ownKeys:Object.getOwnPropertySymbols?function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:function(z){return Object.getOwnPropertyNames(z)};var _e=Number.isNaN||function(z){return z!=z};function fe(){fe.init.call(this)}Ae.exports=fe,Ae.exports.once=function De(j,z){return new Promise(function(R,V){function T(l){j.removeListener(z,h),V(l)}function h(){"function"==typeof j.removeListener&&j.removeListener("error",T),R([].slice.call(arguments))}ee(j,z,h,{once:!0}),"error"!==z&&function Ee(j,z,R){"function"==typeof j.on&&ee(j,"error",z,R)}(j,T,{once:!0})})},fe.EventEmitter=fe,fe.prototype._events=void 0,fe.prototype._eventsCount=0,fe.prototype._maxListeners=void 0;var Z=10;function oe(j){if("function"!=typeof j)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}function K(j){return void 0===j._maxListeners?fe.defaultMaxListeners:j._maxListeners}function $(j,z,R,V){var T,h,l;if(oe(R),void 0===(h=j._events)?(h=j._events=Object.create(null),j._eventsCount=0):(void 0!==h.newListener&&(j.emit("newListener",z,R.listener?R.listener:R),h=j._events),l=h[z]),void 0===l)l=h[z]=R,++j._eventsCount;else if("function"==typeof l?l=h[z]=V?[R,l]:[l,R]:V?l.unshift(R):l.push(R),(T=K(j))>0&&l.length>T&&!l.warned){l.warned=!0;var v=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");v.name="MaxListenersExceededWarning",v.emitter=j,v.type=z,v.count=l.length,function ae(j){console&&console.warn&&console.warn(j)}(v)}return j}function M(){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 F(j,z,R){var V={fired:!1,wrapFn:void 0,target:j,type:z,listener:R},T=M.bind(V);return T.listener=R,V.wrapFn=T,T}function ue(j,z,R){var V=j._events;if(void 0===V)return[];var T=V[z];return void 0===T?[]:"function"==typeof T?R?[T.listener||T]:[T]:R?function me(j){for(var z=new Array(j.length),R=0;R0&&(l=R[0]),l instanceof Error)throw l;var v=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw v.context=l,v}var y=h[z];if(void 0===y)return!1;if("function"==typeof y)L(y,this,R);else{var x=y.length,b=ie(y,x);for(V=0;V=0;l--)if(V[l]===R||V[l].listener===R){v=V[l].listener,h=l;break}if(h<0)return this;0===h?V.shift():function S(j,z){for(;z+1=0;T--)this.removeListener(z,R[T]);return this},fe.prototype.listeners=function(z){return ue(this,z,!0)},fe.prototype.rawListeners=function(z){return ue(this,z,!1)},fe.listenerCount=function(j,z){return"function"==typeof j.listenerCount?j.listenerCount(z):he.call(j,z)},fe.prototype.listenerCount=he,fe.prototype.eventNames=function(){return this._eventsCount>0?B(this._events):[]}},25633:Ae=>{"use strict";Ae.exports=function(m,L){for(var B={},ae=Object.keys(m),_e=Array.isArray(L),fe=0;fe{Ae=L.nmd(Ae);var ae="__lodash_hash_undefined__",Z=9007199254740991,oe="[object Arguments]",K="[object Array]",M="[object Boolean]",F="[object Date]",ue="[object Error]",he="[object Function]",S="[object Map]",me="[object Number]",Ee="[object Object]",ee="[object Promise]",z="[object RegExp]",R="[object Set]",V="[object String]",l="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",Pe=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,xe={};xe["[object Float32Array]"]=xe["[object Float64Array]"]=xe["[object Int8Array]"]=xe["[object Int16Array]"]=xe["[object Int32Array]"]=xe["[object Uint8Array]"]=xe["[object Uint8ClampedArray]"]=xe["[object Uint16Array]"]=xe["[object Uint32Array]"]=!0,xe[oe]=xe[K]=xe[v]=xe[M]=xe[y]=xe[F]=xe[ue]=xe[he]=xe[S]=xe[me]=xe[Ee]=xe[z]=xe[R]=xe[V]=xe[l]=!1;var Te="object"==typeof global&&global&&global.Object===Object&&global,Le="object"==typeof self&&self&&self.Object===Object&&self,Me=Te||Le||Function("return this")(),G=m&&!m.nodeType&&m,le=G&&Ae&&!Ae.nodeType&&Ae,te=le&&le.exports===G,_=te&&Te.process,k=function(){try{return _&&_.binding&&_.binding("util")}catch{}}(),Ce=k&&k.isTypedArray;function wt(N,re){for(var Se=-1,Fe=null==N?0:N.length;++Setr))return!1;var Ut=Qe.get(N);if(Ut&&Qe.get(re))return Ut==re;var Fr=-1,Yr=!0,yr=2&Se?new fi:void 0;for(Qe.set(N,re),Qe.set(re,N);++Fr-1},ln.prototype.set=function pa(N,re){var Se=this.__data__,Fe=rs(Se,N);return Fe<0?(++this.size,Se.push([N,re])):Se[Fe][1]=re,this},Tn.prototype.clear=function ga(){this.size=0,this.__data__={hash:new jt,map:new(fn||ln),string:new jt}},Tn.prototype.delete=function Pc(N){var re=hi(this,N).delete(N);return this.size-=re?1:0,re},Tn.prototype.get=function $s(N){return hi(this,N).get(N)},Tn.prototype.has=function Ac(N){return hi(this,N).has(N)},Tn.prototype.set=function Cc(N,re){var Se=hi(this,N),Fe=Se.size;return Se.set(N,re),this.size+=Se.size==Fe?0:1,this},fi.prototype.add=fi.prototype.push=function zs(N){return this.__data__.set(N,ae),this},fi.prototype.has=function ts(N){return this.__data__.has(N)},Rn.prototype.clear=function Hs(){this.__data__=new ln,this.size=0},Rn.prototype.delete=function Er(N){var re=this.__data__,Se=re.delete(N);return this.size=re.size,Se},Rn.prototype.get=function Or(N){return this.__data__.get(N)},Rn.prototype.has=function Pi(N){return this.__data__.has(N)},Rn.prototype.set=function Ai(N,re){var Se=this.__data__;if(Se instanceof ln){var Fe=Se.__data__;if(!fn||Fe.length<199)return Fe.push([N,re]),this.size=++Se.size,this;Se=this.__data__=new Tn(Fe)}return Se.set(N,re),this.size=Se.size,this};var Ws=cn?function(N){return null==N?[]:(N=Object(N),function ze(N,re){for(var Se=-1,Fe=null==N?0:N.length,Tt=0,Qe=[];++Se-1&&N%1==0&&N-1&&N%1==0&&N<=Z}function Xs(N){var re=typeof N;return null!=N&&("object"==re||"function"==re)}function di(N){return null!=N&&"object"==typeof N}var Qs=Ce?function vt(N){return function(re){return N(re)}}(Ce):function qs(N){return di(N)&&os(N.length)&&!!xe[li(N)]};function Ri(N){return function Js(N){return null!=N&&os(N.length)&&!Oa(N)}(N)?function Vs(N,re){var Se=Ti(N),Fe=!Se&&Gs(N),Tt=!Se&&!Fe&&ss(N),Qe=!Se&&!Fe&&!Tt&&Qs(N),zt=Se||Fe||Tt||Qe,tr=zt?function ut(N,re){for(var Se=-1,Fe=Array(N);++Se{"use strict";const B=L(71141),ae=L(80318),_e=L(71675),fe=L(25633),oe=Symbol("encodeFragmentIdentifier");function M(ee){if("string"!=typeof ee||1!==ee.length)throw new TypeError("arrayFormatSeparator must be single character string")}function F(ee,j){return j.encode?j.strict?B(ee):encodeURIComponent(ee):ee}function ue(ee,j){return j.decode?ae(ee):ee}function he(ee){return Array.isArray(ee)?ee.sort():"object"==typeof ee?he(Object.keys(ee)).sort((j,z)=>Number(j)-Number(z)).map(j=>ee[j]):ee}function ie(ee){const j=ee.indexOf("#");return-1!==j&&(ee=ee.slice(0,j)),ee}function me(ee){const j=(ee=ie(ee)).indexOf("?");return-1===j?"":ee.slice(j+1)}function De(ee,j){return j.parseNumbers&&!Number.isNaN(Number(ee))&&"string"==typeof ee&&""!==ee.trim()?ee=Number(ee):j.parseBooleans&&null!==ee&&("true"===ee.toLowerCase()||"false"===ee.toLowerCase())&&(ee="true"===ee.toLowerCase()),ee}function Ee(ee,j){M((j=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},j)).arrayFormatSeparator);const z=function $(ee){let j;switch(ee.arrayFormat){case"index":return(z,R,V)=>{j=/\[(\d*)\]$/.exec(z),z=z.replace(/\[\d*\]$/,""),j?(void 0===V[z]&&(V[z]={}),V[z][j[1]]=R):V[z]=R};case"bracket":return(z,R,V)=>{j=/(\[\])$/.exec(z),V[z=z.replace(/\[\]$/,"")]=j?void 0!==V[z]?[].concat(V[z],R):[R]:R};case"colon-list-separator":return(z,R,V)=>{j=/(:list)$/.exec(z),V[z=z.replace(/:list$/,"")]=j?void 0!==V[z]?[].concat(V[z],R):[R]:R};case"comma":case"separator":return(z,R,V)=>{const T="string"==typeof R&&R.includes(ee.arrayFormatSeparator),h="string"==typeof R&&!T&&ue(R,ee).includes(ee.arrayFormatSeparator);R=h?ue(R,ee):R;const l=T||h?R.split(ee.arrayFormatSeparator).map(v=>ue(v,ee)):null===R?R:ue(R,ee);V[z]=l};case"bracket-separator":return(z,R,V)=>{const T=/(\[\])$/.test(z);if(z=z.replace(/\[\]$/,""),!T)return void(V[z]=R&&ue(R,ee));const h=null===R?[]:R.split(ee.arrayFormatSeparator).map(l=>ue(l,ee));V[z]=void 0!==V[z]?[].concat(V[z],h):h};default:return(z,R,V)=>{V[z]=void 0!==V[z]?[].concat(V[z],R):R}}}(j),R=Object.create(null);if("string"!=typeof ee||!(ee=ee.trim().replace(/^[?#&]/,"")))return R;for(const V of ee.split("&")){if(""===V)continue;let[T,h]=_e(j.decode?V.replace(/\+/g," "):V,"=");h=void 0===h?null:["comma","separator","bracket-separator"].includes(j.arrayFormat)?h:ue(h,j),z(ue(T,j),h,R)}for(const V of Object.keys(R)){const T=R[V];if("object"==typeof T&&null!==T)for(const h of Object.keys(T))T[h]=De(T[h],j);else R[V]=De(T,j)}return!1===j.sort?R:(!0===j.sort?Object.keys(R).sort():Object.keys(R).sort(j.sort)).reduce((V,T)=>{const h=R[T];return V[T]=Boolean(h)&&"object"==typeof h&&!Array.isArray(h)?he(h):h,V},Object.create(null))}m.extract=me,m.parse=Ee,m.stringify=(ee,j)=>{if(!ee)return"";M((j=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},j)).arrayFormatSeparator);const z=h=>j.skipNull&&(ee=>null==ee)(ee[h])||j.skipEmptyString&&""===ee[h],R=function K(ee){switch(ee.arrayFormat){case"index":return j=>(z,R)=>{const V=z.length;return void 0===R||ee.skipNull&&null===R||ee.skipEmptyString&&""===R?z:null===R?[...z,[F(j,ee),"[",V,"]"].join("")]:[...z,[F(j,ee),"[",F(V,ee),"]=",F(R,ee)].join("")]};case"bracket":return j=>(z,R)=>void 0===R||ee.skipNull&&null===R||ee.skipEmptyString&&""===R?z:null===R?[...z,[F(j,ee),"[]"].join("")]:[...z,[F(j,ee),"[]=",F(R,ee)].join("")];case"colon-list-separator":return j=>(z,R)=>void 0===R||ee.skipNull&&null===R||ee.skipEmptyString&&""===R?z:null===R?[...z,[F(j,ee),":list="].join("")]:[...z,[F(j,ee),":list=",F(R,ee)].join("")];case"comma":case"separator":case"bracket-separator":{const j="bracket-separator"===ee.arrayFormat?"[]=":"=";return z=>(R,V)=>void 0===V||ee.skipNull&&null===V||ee.skipEmptyString&&""===V?R:(V=null===V?"":V,0===R.length?[[F(z,ee),j,F(V,ee)].join("")]:[[R,F(V,ee)].join(ee.arrayFormatSeparator)])}default:return j=>(z,R)=>void 0===R||ee.skipNull&&null===R||ee.skipEmptyString&&""===R?z:null===R?[...z,F(j,ee)]:[...z,[F(j,ee),"=",F(R,ee)].join("")]}}(j),V={};for(const h of Object.keys(ee))z(h)||(V[h]=ee[h]);const T=Object.keys(V);return!1!==j.sort&&T.sort(j.sort),T.map(h=>{const l=ee[h];return void 0===l?"":null===l?F(h,j):Array.isArray(l)?0===l.length&&"bracket-separator"===j.arrayFormat?F(h,j)+"[]":l.reduce(R(h),[]).join("&"):F(h,j)+"="+F(l,j)}).filter(h=>h.length>0).join("&")},m.parseUrl=(ee,j)=>{j=Object.assign({decode:!0},j);const[z,R]=_e(ee,"#");return Object.assign({url:z.split("?")[0]||"",query:Ee(me(ee),j)},j&&j.parseFragmentIdentifier&&R?{fragmentIdentifier:ue(R,j)}:{})},m.stringifyUrl=(ee,j)=>{j=Object.assign({encode:!0,strict:!0,[oe]:!0},j);const z=ie(ee.url).split("?")[0]||"",R=m.extract(ee.url),V=m.parse(R,{sort:!1}),T=Object.assign(V,ee.query);let h=m.stringify(T,j);h&&(h=`?${h}`);let l=function S(ee){let j="";const z=ee.indexOf("#");return-1!==z&&(j=ee.slice(z)),j}(ee.url);return ee.fragmentIdentifier&&(l=`#${j[oe]?F(ee.fragmentIdentifier,j):ee.fragmentIdentifier}`),`${z}${h}${l}`},m.pick=(ee,j,z)=>{z=Object.assign({parseFragmentIdentifier:!0,[oe]:!1},z);const{url:R,query:V,fragmentIdentifier:T}=m.parseUrl(ee,z);return m.stringifyUrl({url:R,query:fe(V,j),fragmentIdentifier:T},z)},m.exclude=(ee,j,z)=>{const R=Array.isArray(j)?V=>!j.includes(V):(V,T)=>!j(V,T);return m.pick(ee,R,z)}},51958:Ae=>{"use strict";function m(B){try{return JSON.stringify(B)}catch{return'"[Circular]"'}}Ae.exports=function L(B,ae,_e){var fe=_e&&_e.stringify||m;if("object"==typeof B&&null!==B){var oe=ae.length+1;if(1===oe)return B;var K=new Array(oe);K[0]=fe(B);for(var $=1;$-1?he:0,B.charCodeAt(S+1)){case 100:case 102:if(ue>=M||null==ae[ue])break;he=M||null==ae[ue])break;he=M||void 0===ae[ue])break;he",he=S+2,S++;break}F+=fe(ae[ue]),he=S+2,S++;break;case 115:if(ue>=M)break;he{"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.safeJsonParse=function L(ae){if("string"!=typeof ae)throw new Error("Cannot safe json parse value of type "+typeof ae);try{return JSON.parse(ae)}catch{return ae}},m.safeJsonStringify=function B(ae){return"string"==typeof ae?ae:JSON.stringify(ae,(_e,fe)=>typeof fe>"u"?null:fe)}},71675:Ae=>{"use strict";Ae.exports=(m,L)=>{if("string"!=typeof m||"string"!=typeof L)throw new TypeError("Expected the arguments to be of type `string`");if(""===L)return[m];const B=m.indexOf(L);return-1===B?[m]:[m.slice(0,B),m.slice(B+L.length)]}},71141:Ae=>{"use strict";Ae.exports=m=>encodeURIComponent(m).replace(/[!'()*]/g,L=>`%${L.charCodeAt(0).toString(16).toUpperCase()}`)},82791:Ae=>{"use strict";Ae.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},69763:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{__assign:()=>_e,__asyncDelegator:()=>ee,__asyncGenerator:()=>Ee,__asyncValues:()=>j,__await:()=>De,__awaiter:()=>$,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>h,__createBinding:()=>F,__decorate:()=>Z,__exportStar:()=>ue,__extends:()=>ae,__generator:()=>M,__importDefault:()=>V,__importStar:()=>R,__makeTemplateObject:()=>z,__metadata:()=>K,__param:()=>oe,__read:()=>ie,__rest:()=>fe,__spread:()=>S,__spreadArrays:()=>me,__values:()=>he});var B=function(l,v){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(l,v)};function ae(l,v){function y(){this.constructor=l}B(l,v),l.prototype=null===v?Object.create(v):(y.prototype=v.prototype,new y)}var _e=function(){return _e=Object.assign||function(v){for(var y,x=1,b=arguments.length;x=0;P--)(D=l[P])&&(p=(b<3?D(p):b>3?D(v,y,p):D(v,y))||p);return b>3&&p&&Object.defineProperty(v,y,p),p}function oe(l,v){return function(y,x){v(y,x,l)}}function K(l,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(l,v)}function $(l,v,y,x){return new(y||(y=Promise))(function(p,D){function P(q){try{w(x.next(q))}catch(ce){D(ce)}}function C(q){try{w(x.throw(q))}catch(ce){D(ce)}}function w(q){q.done?p(q.value):function b(p){return p instanceof y?p:new y(function(D){D(p)})}(q.value).then(P,C)}w((x=x.apply(l,v||[])).next())})}function M(l,v){var x,b,p,D,y={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return D={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function P(w){return function(q){return function C(w){if(x)throw new TypeError("Generator is already executing.");for(;y;)try{if(x=1,b&&(p=2&w[0]?b.return:w[0]?b.throw||((p=b.return)&&p.call(b),0):b.next)&&!(p=p.call(b,w[1])).done)return p;switch(b=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return y.label++,{value:w[1],done:!1};case 5:y.label++,b=w[1],w=[0];continue;case 7:w=y.ops.pop(),y.trys.pop();continue;default:if(!(p=(p=y.trys).length>0&&p[p.length-1])&&(6===w[0]||2===w[0])){y=0;continue}if(3===w[0]&&(!p||w[1]>p[0]&&w[1]=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(l,v){var y="function"==typeof Symbol&&l[Symbol.iterator];if(!y)return l;var b,D,x=y.call(l),p=[];try{for(;(void 0===v||v-- >0)&&!(b=x.next()).done;)p.push(b.value)}catch(P){D={error:P}}finally{try{b&&!b.done&&(y=x.return)&&y.call(x)}finally{if(D)throw D.error}}return p}function S(){for(var l=[],v=0;v1||P(W,Pe)})})}function P(W,Pe){try{!function C(W){W.value instanceof De?Promise.resolve(W.value.v).then(w,q):ce(p[0][2],W)}(x[W](Pe))}catch(ye){ce(p[0][3],ye)}}function w(W){P("next",W)}function q(W){P("throw",W)}function ce(W,Pe){W(Pe),p.shift(),p.length&&P(p[0][0],p[0][1])}}function ee(l){var v,y;return v={},x("next"),x("throw",function(b){throw b}),x("return"),v[Symbol.iterator]=function(){return this},v;function x(b,p){v[b]=l[b]?function(D){return(y=!y)?{value:De(l[b](D)),done:"return"===b}:p?p(D):D}:p}}function j(l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,v=l[Symbol.asyncIterator];return v?v.call(l):(l=he(l),y={},x("next"),x("throw"),x("return"),y[Symbol.asyncIterator]=function(){return this},y);function x(p){y[p]=l[p]&&function(D){return new Promise(function(P,C){!function b(p,D,P,C){Promise.resolve(C).then(function(w){p({value:w,done:P})},D)}(P,C,(D=l[p](D)).done,D.value)})}}}function z(l,v){return Object.defineProperty?Object.defineProperty(l,"raw",{value:v}):l.raw=v,l}function R(l){if(l&&l.__esModule)return l;var v={};if(null!=l)for(var y in l)Object.hasOwnProperty.call(l,y)&&(v[y]=l[y]);return v.default=l,v}function V(l){return l&&l.__esModule?l:{default:l}}function T(l,v){if(!v.has(l))throw new TypeError("attempted to get private field on non-instance");return v.get(l)}function h(l,v,y){if(!v.has(l))throw new TypeError("attempted to set private field on non-instance");return v.set(l,y),y}},99940:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{__assign:()=>_e,__asyncDelegator:()=>ee,__asyncGenerator:()=>Ee,__asyncValues:()=>j,__await:()=>De,__awaiter:()=>$,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>h,__createBinding:()=>F,__decorate:()=>Z,__exportStar:()=>ue,__extends:()=>ae,__generator:()=>M,__importDefault:()=>V,__importStar:()=>R,__makeTemplateObject:()=>z,__metadata:()=>K,__param:()=>oe,__read:()=>ie,__rest:()=>fe,__spread:()=>S,__spreadArrays:()=>me,__values:()=>he});var B=function(l,v){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(l,v)};function ae(l,v){function y(){this.constructor=l}B(l,v),l.prototype=null===v?Object.create(v):(y.prototype=v.prototype,new y)}var _e=function(){return _e=Object.assign||function(v){for(var y,x=1,b=arguments.length;x=0;P--)(D=l[P])&&(p=(b<3?D(p):b>3?D(v,y,p):D(v,y))||p);return b>3&&p&&Object.defineProperty(v,y,p),p}function oe(l,v){return function(y,x){v(y,x,l)}}function K(l,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(l,v)}function $(l,v,y,x){return new(y||(y=Promise))(function(p,D){function P(q){try{w(x.next(q))}catch(ce){D(ce)}}function C(q){try{w(x.throw(q))}catch(ce){D(ce)}}function w(q){q.done?p(q.value):function b(p){return p instanceof y?p:new y(function(D){D(p)})}(q.value).then(P,C)}w((x=x.apply(l,v||[])).next())})}function M(l,v){var x,b,p,D,y={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return D={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function P(w){return function(q){return function C(w){if(x)throw new TypeError("Generator is already executing.");for(;y;)try{if(x=1,b&&(p=2&w[0]?b.return:w[0]?b.throw||((p=b.return)&&p.call(b),0):b.next)&&!(p=p.call(b,w[1])).done)return p;switch(b=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return y.label++,{value:w[1],done:!1};case 5:y.label++,b=w[1],w=[0];continue;case 7:w=y.ops.pop(),y.trys.pop();continue;default:if(!(p=(p=y.trys).length>0&&p[p.length-1])&&(6===w[0]||2===w[0])){y=0;continue}if(3===w[0]&&(!p||w[1]>p[0]&&w[1]=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(l,v){var y="function"==typeof Symbol&&l[Symbol.iterator];if(!y)return l;var b,D,x=y.call(l),p=[];try{for(;(void 0===v||v-- >0)&&!(b=x.next()).done;)p.push(b.value)}catch(P){D={error:P}}finally{try{b&&!b.done&&(y=x.return)&&y.call(x)}finally{if(D)throw D.error}}return p}function S(){for(var l=[],v=0;v1||P(W,Pe)})})}function P(W,Pe){try{!function C(W){W.value instanceof De?Promise.resolve(W.value.v).then(w,q):ce(p[0][2],W)}(x[W](Pe))}catch(ye){ce(p[0][3],ye)}}function w(W){P("next",W)}function q(W){P("throw",W)}function ce(W,Pe){W(Pe),p.shift(),p.length&&P(p[0][0],p[0][1])}}function ee(l){var v,y;return v={},x("next"),x("throw",function(b){throw b}),x("return"),v[Symbol.iterator]=function(){return this},v;function x(b,p){v[b]=l[b]?function(D){return(y=!y)?{value:De(l[b](D)),done:"return"===b}:p?p(D):D}:p}}function j(l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,v=l[Symbol.asyncIterator];return v?v.call(l):(l=he(l),y={},x("next"),x("throw"),x("return"),y[Symbol.asyncIterator]=function(){return this},y);function x(p){y[p]=l[p]&&function(D){return new Promise(function(P,C){!function b(p,D,P,C){Promise.resolve(C).then(function(w){p({value:w,done:P})},D)}(P,C,(D=l[p](D)).done,D.value)})}}}function z(l,v){return Object.defineProperty?Object.defineProperty(l,"raw",{value:v}):l.raw=v,l}function R(l){if(l&&l.__esModule)return l;var v={};if(null!=l)for(var y in l)Object.hasOwnProperty.call(l,y)&&(v[y]=l[y]);return v.default=l,v}function V(l){return l&&l.__esModule?l:{default:l}}function T(l,v){if(!v.has(l))throw new TypeError("attempted to get private field on non-instance");return v.get(l)}function h(l,v,y){if(!v.has(l))throw new TypeError("attempted to set private field on non-instance");return v.set(l,y),y}},92818:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{__assign:()=>_e,__asyncDelegator:()=>ee,__asyncGenerator:()=>Ee,__asyncValues:()=>j,__await:()=>De,__awaiter:()=>$,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>h,__createBinding:()=>F,__decorate:()=>Z,__exportStar:()=>ue,__extends:()=>ae,__generator:()=>M,__importDefault:()=>V,__importStar:()=>R,__makeTemplateObject:()=>z,__metadata:()=>K,__param:()=>oe,__read:()=>ie,__rest:()=>fe,__spread:()=>S,__spreadArrays:()=>me,__values:()=>he});var B=function(l,v){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(l,v)};function ae(l,v){function y(){this.constructor=l}B(l,v),l.prototype=null===v?Object.create(v):(y.prototype=v.prototype,new y)}var _e=function(){return _e=Object.assign||function(v){for(var y,x=1,b=arguments.length;x=0;P--)(D=l[P])&&(p=(b<3?D(p):b>3?D(v,y,p):D(v,y))||p);return b>3&&p&&Object.defineProperty(v,y,p),p}function oe(l,v){return function(y,x){v(y,x,l)}}function K(l,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(l,v)}function $(l,v,y,x){return new(y||(y=Promise))(function(p,D){function P(q){try{w(x.next(q))}catch(ce){D(ce)}}function C(q){try{w(x.throw(q))}catch(ce){D(ce)}}function w(q){q.done?p(q.value):function b(p){return p instanceof y?p:new y(function(D){D(p)})}(q.value).then(P,C)}w((x=x.apply(l,v||[])).next())})}function M(l,v){var x,b,p,D,y={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return D={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function P(w){return function(q){return function C(w){if(x)throw new TypeError("Generator is already executing.");for(;y;)try{if(x=1,b&&(p=2&w[0]?b.return:w[0]?b.throw||((p=b.return)&&p.call(b),0):b.next)&&!(p=p.call(b,w[1])).done)return p;switch(b=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return y.label++,{value:w[1],done:!1};case 5:y.label++,b=w[1],w=[0];continue;case 7:w=y.ops.pop(),y.trys.pop();continue;default:if(!(p=(p=y.trys).length>0&&p[p.length-1])&&(6===w[0]||2===w[0])){y=0;continue}if(3===w[0]&&(!p||w[1]>p[0]&&w[1]=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(l,v){var y="function"==typeof Symbol&&l[Symbol.iterator];if(!y)return l;var b,D,x=y.call(l),p=[];try{for(;(void 0===v||v-- >0)&&!(b=x.next()).done;)p.push(b.value)}catch(P){D={error:P}}finally{try{b&&!b.done&&(y=x.return)&&y.call(x)}finally{if(D)throw D.error}}return p}function S(){for(var l=[],v=0;v1||P(W,Pe)})})}function P(W,Pe){try{!function C(W){W.value instanceof De?Promise.resolve(W.value.v).then(w,q):ce(p[0][2],W)}(x[W](Pe))}catch(ye){ce(p[0][3],ye)}}function w(W){P("next",W)}function q(W){P("throw",W)}function ce(W,Pe){W(Pe),p.shift(),p.length&&P(p[0][0],p[0][1])}}function ee(l){var v,y;return v={},x("next"),x("throw",function(b){throw b}),x("return"),v[Symbol.iterator]=function(){return this},v;function x(b,p){v[b]=l[b]?function(D){return(y=!y)?{value:De(l[b](D)),done:"return"===b}:p?p(D):D}:p}}function j(l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,v=l[Symbol.asyncIterator];return v?v.call(l):(l=he(l),y={},x("next"),x("throw"),x("return"),y[Symbol.asyncIterator]=function(){return this},y);function x(p){y[p]=l[p]&&function(D){return new Promise(function(P,C){!function b(p,D,P,C){Promise.resolve(C).then(function(w){p({value:w,done:P})},D)}(P,C,(D=l[p](D)).done,D.value)})}}}function z(l,v){return Object.defineProperty?Object.defineProperty(l,"raw",{value:v}):l.raw=v,l}function R(l){if(l&&l.__esModule)return l;var v={};if(null!=l)for(var y in l)Object.hasOwnProperty.call(l,y)&&(v[y]=l[y]);return v.default=l,v}function V(l){return l&&l.__esModule?l:{default:l}}function T(l,v){if(!v.has(l))throw new TypeError("attempted to get private field on non-instance");return v.get(l)}function h(l,v,y){if(!v.has(l))throw new TypeError("attempted to set private field on non-instance");return v.set(l,y),y}},20263:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{__assign:()=>_e,__asyncDelegator:()=>ee,__asyncGenerator:()=>Ee,__asyncValues:()=>j,__await:()=>De,__awaiter:()=>$,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>h,__createBinding:()=>F,__decorate:()=>Z,__exportStar:()=>ue,__extends:()=>ae,__generator:()=>M,__importDefault:()=>V,__importStar:()=>R,__makeTemplateObject:()=>z,__metadata:()=>K,__param:()=>oe,__read:()=>ie,__rest:()=>fe,__spread:()=>S,__spreadArrays:()=>me,__values:()=>he});var B=function(l,v){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(l,v)};function ae(l,v){function y(){this.constructor=l}B(l,v),l.prototype=null===v?Object.create(v):(y.prototype=v.prototype,new y)}var _e=function(){return _e=Object.assign||function(v){for(var y,x=1,b=arguments.length;x=0;P--)(D=l[P])&&(p=(b<3?D(p):b>3?D(v,y,p):D(v,y))||p);return b>3&&p&&Object.defineProperty(v,y,p),p}function oe(l,v){return function(y,x){v(y,x,l)}}function K(l,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(l,v)}function $(l,v,y,x){return new(y||(y=Promise))(function(p,D){function P(q){try{w(x.next(q))}catch(ce){D(ce)}}function C(q){try{w(x.throw(q))}catch(ce){D(ce)}}function w(q){q.done?p(q.value):function b(p){return p instanceof y?p:new y(function(D){D(p)})}(q.value).then(P,C)}w((x=x.apply(l,v||[])).next())})}function M(l,v){var x,b,p,D,y={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return D={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function P(w){return function(q){return function C(w){if(x)throw new TypeError("Generator is already executing.");for(;y;)try{if(x=1,b&&(p=2&w[0]?b.return:w[0]?b.throw||((p=b.return)&&p.call(b),0):b.next)&&!(p=p.call(b,w[1])).done)return p;switch(b=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return y.label++,{value:w[1],done:!1};case 5:y.label++,b=w[1],w=[0];continue;case 7:w=y.ops.pop(),y.trys.pop();continue;default:if(!(p=(p=y.trys).length>0&&p[p.length-1])&&(6===w[0]||2===w[0])){y=0;continue}if(3===w[0]&&(!p||w[1]>p[0]&&w[1]=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(l,v){var y="function"==typeof Symbol&&l[Symbol.iterator];if(!y)return l;var b,D,x=y.call(l),p=[];try{for(;(void 0===v||v-- >0)&&!(b=x.next()).done;)p.push(b.value)}catch(P){D={error:P}}finally{try{b&&!b.done&&(y=x.return)&&y.call(x)}finally{if(D)throw D.error}}return p}function S(){for(var l=[],v=0;v1||P(W,Pe)})})}function P(W,Pe){try{!function C(W){W.value instanceof De?Promise.resolve(W.value.v).then(w,q):ce(p[0][2],W)}(x[W](Pe))}catch(ye){ce(p[0][3],ye)}}function w(W){P("next",W)}function q(W){P("throw",W)}function ce(W,Pe){W(Pe),p.shift(),p.length&&P(p[0][0],p[0][1])}}function ee(l){var v,y;return v={},x("next"),x("throw",function(b){throw b}),x("return"),v[Symbol.iterator]=function(){return this},v;function x(b,p){v[b]=l[b]?function(D){return(y=!y)?{value:De(l[b](D)),done:"return"===b}:p?p(D):D}:p}}function j(l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,v=l[Symbol.asyncIterator];return v?v.call(l):(l=he(l),y={},x("next"),x("throw"),x("return"),y[Symbol.asyncIterator]=function(){return this},y);function x(p){y[p]=l[p]&&function(D){return new Promise(function(P,C){!function b(p,D,P,C){Promise.resolve(C).then(function(w){p({value:w,done:P})},D)}(P,C,(D=l[p](D)).done,D.value)})}}}function z(l,v){return Object.defineProperty?Object.defineProperty(l,"raw",{value:v}):l.raw=v,l}function R(l){if(l&&l.__esModule)return l;var v={};if(null!=l)for(var y in l)Object.hasOwnProperty.call(l,y)&&(v[y]=l[y]);return v.default=l,v}function V(l){return l&&l.__esModule?l:{default:l}}function T(l,v){if(!v.has(l))throw new TypeError("attempted to get private field on non-instance");return v.get(l)}function h(l,v,y){if(!v.has(l))throw new TypeError("attempted to set private field on non-instance");return v.set(l,y),y}},58092:(Ae,m,L)=>{"use strict";L.r(m),L.d(m,{__assign:()=>_e,__asyncDelegator:()=>ee,__asyncGenerator:()=>Ee,__asyncValues:()=>j,__await:()=>De,__awaiter:()=>$,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>h,__createBinding:()=>F,__decorate:()=>Z,__exportStar:()=>ue,__extends:()=>ae,__generator:()=>M,__importDefault:()=>V,__importStar:()=>R,__makeTemplateObject:()=>z,__metadata:()=>K,__param:()=>oe,__read:()=>ie,__rest:()=>fe,__spread:()=>S,__spreadArrays:()=>me,__values:()=>he});var B=function(l,v){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(l,v)};function ae(l,v){function y(){this.constructor=l}B(l,v),l.prototype=null===v?Object.create(v):(y.prototype=v.prototype,new y)}var _e=function(){return _e=Object.assign||function(v){for(var y,x=1,b=arguments.length;x=0;P--)(D=l[P])&&(p=(b<3?D(p):b>3?D(v,y,p):D(v,y))||p);return b>3&&p&&Object.defineProperty(v,y,p),p}function oe(l,v){return function(y,x){v(y,x,l)}}function K(l,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(l,v)}function $(l,v,y,x){return new(y||(y=Promise))(function(p,D){function P(q){try{w(x.next(q))}catch(ce){D(ce)}}function C(q){try{w(x.throw(q))}catch(ce){D(ce)}}function w(q){q.done?p(q.value):function b(p){return p instanceof y?p:new y(function(D){D(p)})}(q.value).then(P,C)}w((x=x.apply(l,v||[])).next())})}function M(l,v){var x,b,p,D,y={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return D={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(D[Symbol.iterator]=function(){return this}),D;function P(w){return function(q){return function C(w){if(x)throw new TypeError("Generator is already executing.");for(;y;)try{if(x=1,b&&(p=2&w[0]?b.return:w[0]?b.throw||((p=b.return)&&p.call(b),0):b.next)&&!(p=p.call(b,w[1])).done)return p;switch(b=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return y.label++,{value:w[1],done:!1};case 5:y.label++,b=w[1],w=[0];continue;case 7:w=y.ops.pop(),y.trys.pop();continue;default:if(!(p=(p=y.trys).length>0&&p[p.length-1])&&(6===w[0]||2===w[0])){y=0;continue}if(3===w[0]&&(!p||w[1]>p[0]&&w[1]=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(l,v){var y="function"==typeof Symbol&&l[Symbol.iterator];if(!y)return l;var b,D,x=y.call(l),p=[];try{for(;(void 0===v||v-- >0)&&!(b=x.next()).done;)p.push(b.value)}catch(P){D={error:P}}finally{try{b&&!b.done&&(y=x.return)&&y.call(x)}finally{if(D)throw D.error}}return p}function S(){for(var l=[],v=0;v1||P(W,Pe)})})}function P(W,Pe){try{!function C(W){W.value instanceof De?Promise.resolve(W.value.v).then(w,q):ce(p[0][2],W)}(x[W](Pe))}catch(ye){ce(p[0][3],ye)}}function w(W){P("next",W)}function q(W){P("throw",W)}function ce(W,Pe){W(Pe),p.shift(),p.length&&P(p[0][0],p[0][1])}}function ee(l){var v,y;return v={},x("next"),x("throw",function(b){throw b}),x("return"),v[Symbol.iterator]=function(){return this},v;function x(b,p){v[b]=l[b]?function(D){return(y=!y)?{value:De(l[b](D)),done:"return"===b}:p?p(D):D}:p}}function j(l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,v=l[Symbol.asyncIterator];return v?v.call(l):(l=he(l),y={},x("next"),x("throw"),x("return"),y[Symbol.asyncIterator]=function(){return this},y);function x(p){y[p]=l[p]&&function(D){return new Promise(function(P,C){!function b(p,D,P,C){Promise.resolve(C).then(function(w){p({value:w,done:P})},D)}(P,C,(D=l[p](D)).done,D.value)})}}}function z(l,v){return Object.defineProperty?Object.defineProperty(l,"raw",{value:v}):l.raw=v,l}function R(l){if(l&&l.__esModule)return l;var v={};if(null!=l)for(var y in l)Object.hasOwnProperty.call(l,y)&&(v[y]=l[y]);return v.default=l,v}function V(l){return l&&l.__esModule?l:{default:l}}function T(l,v){if(!v.has(l))throw new TypeError("attempted to get private field on non-instance");return v.get(l)}function h(l,v,y){if(!v.has(l))throw new TypeError("attempted to set private field on non-instance");return v.set(l,y),y}},37386:(Ae,m,L)=>{"use strict";const B=L(51958);Ae.exports=Z;const ae=function V(){function T(h){return typeof h<"u"&&h}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return T(self)||T(window)||T(this)||{}}}().console||{},_e={mapHttpRequest:me,mapHttpResponse:me,wrapRequestSerializer:De,wrapResponseSerializer:De,wrapErrorSerializer:De,req:me,res:me,err:function ie(T){const h={type:T.constructor.name,msg:T.message,stack:T.stack};for(const l in T)void 0===h[l]&&(h[l]=T[l]);return h}};function Z(T){(T=T||{}).browser=T.browser||{};const h=T.browser.transmit;if(h&&"function"!=typeof h.send)throw Error("pino: transmit option must have a send function");const l=T.browser.write||ae;T.browser.write&&(T.browser.asObject=!0);const v=T.serializers||{},y=function fe(T,h){return Array.isArray(T)?T.filter(function(v){return"!stdSerializers.err"!==v}):!0===T&&Object.keys(h)}(T.browser.serialize,v);let x=T.browser.serialize;Array.isArray(T.browser.serialize)&&T.browser.serialize.indexOf("!stdSerializers.err")>-1&&(x=!1),"function"==typeof l&&(l.error=l.fatal=l.warn=l.info=l.debug=l.trace=l),!1===T.enabled&&(T.level="silent");const p=T.level||"info",D=Object.create(l);D.log||(D.log=Ee),Object.defineProperty(D,"levelVal",{get:function C(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(D,"level",{get:function w(){return this._level},set:function q(W){if("silent"!==W&&!this.levels.values[W])throw Error("unknown level "+W);this._level=W,oe(P,D,"error","log"),oe(P,D,"fatal","error"),oe(P,D,"warn","error"),oe(P,D,"info","log"),oe(P,D,"debug","log"),oe(P,D,"trace","log")}});const P={transmit:h,serialize:y,asObject:T.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:S(T)};return D.levels=Z.levels,D.level=p,D.setMaxListeners=D.getMaxListeners=D.emit=D.addListener=D.on=D.prependListener=D.once=D.prependOnceListener=D.removeListener=D.removeAllListeners=D.listeners=D.listenerCount=D.eventNames=D.write=D.flush=Ee,D.serializers=v,D._serialize=y,D._stdErrSerialize=x,D.child=function ce(W,Pe){if(!W)throw new Error("missing bindings for child Pino");Pe=Pe||{},y&&W.serializers&&(Pe.serializers=W.serializers);const ye=Pe.serializers;if(y&&ye){var xe=Object.assign({},v,ye),Te=!0===T.browser.serialize?Object.keys(xe):y;delete W.serializers,M([W],Te,xe,this._stdErrSerialize)}function Le(Me){this._childLevel=1+(0|Me._childLevel),this.error=F(Me,W,"error"),this.fatal=F(Me,W,"fatal"),this.warn=F(Me,W,"warn"),this.info=F(Me,W,"info"),this.debug=F(Me,W,"debug"),this.trace=F(Me,W,"trace"),xe&&(this.serializers=xe,this._serialize=Te),h&&(this._logEvent=he([].concat(Me._logEvent.bindings,W)))}return Le.prototype=this,new Le(this)},h&&(D._logEvent=he()),D}function oe(T,h,l,v){const y=Object.getPrototypeOf(h);h[l]=h.levelVal>h.levels.values[l]?Ee:y[l]?y[l]:ae[l]||ae[v]||Ee,function K(T,h,l){!T.transmit&&h[l]===Ee||(h[l]=function(v){return function(){const x=T.timestamp(),b=new Array(arguments.length),p=Object.getPrototypeOf&&Object.getPrototypeOf(this)===ae?ae:this;for(var D=0;D-1&&x in l&&(T[y][x]=l[x](T[y][x]))}function F(T,h,l){return function(){const v=new Array(1+arguments.length);v[0]=h;for(var y=1;yk in q?h9(q,k,{enumerable:!0,configurable:!0,writable:!0,value:x}):q[k]=x,Ar=(q,k,x)=>(p9(q,"symbol"!=typeof k?k+"":k,x),x);(self.webpackChunkAngular_bare_bones_demo=self.webpackChunkAngular_bare_bones_demo||[]).push([[179],{62016:(q,k,x)=>{"use strict";const B=k;B.bignum=x(32260),B.define=x(37738).define,B.base=x(38384),B.constants=x(82779),B.decoders=x(41274),B.encoders=x(7549)},37738:(q,k,x)=>{"use strict";const B=x(7549),I=x(41274),M=x(59879);function o(w,S){this.name=w,this.body=S,this.decoders={},this.encoders={}}k.define=function(S,D){return new o(S,D)},o.prototype._createNamed=function(S){const D=this.name;function A(g){this._initNamed(g,D)}return M(A,S),A.prototype._initNamed=function(p,b){S.call(this,p,b)},new A(this)},o.prototype._getDecoder=function(S){return this.decoders.hasOwnProperty(S=S||"der")||(this.decoders[S]=this._createNamed(I[S])),this.decoders[S]},o.prototype.decode=function(S,D,A){return this._getDecoder(D).decode(S,A)},o.prototype._getEncoder=function(S){return this.encoders.hasOwnProperty(S=S||"der")||(this.encoders[S]=this._createNamed(B[S])),this.encoders[S]},o.prototype.encode=function(S,D,A){return this._getEncoder(D).encode(S,A)}},12227:(q,k,x)=>{"use strict";const B=x(59879),I=x(24475).b,M=x(88114).Buffer;function P(w,S){I.call(this,S),M.isBuffer(w)?(this.base=w,this.offset=0,this.length=w.length):this.error("Input not Buffer")}function o(w,S){if(Array.isArray(w))this.length=0,this.value=w.map(function(D){return o.isEncoderBuffer(D)||(D=new o(D,S)),this.length+=D.length,D},this);else if("number"==typeof w){if(!(0<=w&&w<=255))return S.error("non-byte EncoderBuffer value");this.value=w,this.length=1}else if("string"==typeof w)this.value=w,this.length=M.byteLength(w);else{if(!M.isBuffer(w))return S.error("Unsupported type: "+typeof w);this.value=w,this.length=w.length}}B(P,I),k.C=P,P.isDecoderBuffer=function(S){return S instanceof P||"object"==typeof S&&M.isBuffer(S.base)&&"DecoderBuffer"===S.constructor.name&&"number"==typeof S.offset&&"number"==typeof S.length&&"function"==typeof S.save&&"function"==typeof S.restore&&"function"==typeof S.isEmpty&&"function"==typeof S.readUInt8&&"function"==typeof S.skip&&"function"==typeof S.raw},P.prototype.save=function(){return{offset:this.offset,reporter:I.prototype.save.call(this)}},P.prototype.restore=function(S){const D=new P(this.base);return D.offset=S.offset,D.length=this.offset,this.offset=S.offset,I.prototype.restore.call(this,S.reporter),D},P.prototype.isEmpty=function(){return this.offset===this.length},P.prototype.readUInt8=function(S){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(S||"DecoderBuffer overrun")},P.prototype.skip=function(S,D){if(!(this.offset+S<=this.length))return this.error(D||"DecoderBuffer overrun");const A=new P(this.base);return A._reporterState=this._reporterState,A.offset=this.offset,A.length=this.offset+S,this.offset+=S,A},P.prototype.raw=function(S){return this.base.slice(S?S.offset:this.offset,this.length)},k.R=o,o.isEncoderBuffer=function(S){return S instanceof o||"object"==typeof S&&"EncoderBuffer"===S.constructor.name&&"number"==typeof S.length&&"function"==typeof S.join},o.prototype.join=function(S,D){return S||(S=M.alloc(this.length)),D||(D=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(A){A.join(S,D),D+=A.length}):("number"==typeof this.value?S[D]=this.value:"string"==typeof this.value?S.write(this.value,D):M.isBuffer(this.value)&&this.value.copy(S,D),D+=this.length)),S}},38384:(q,k,x)=>{"use strict";const B=k;B.Reporter=x(24475).b,B.DecoderBuffer=x(12227).C,B.EncoderBuffer=x(12227).R,B.Node=x(14652)},14652:(q,k,x)=>{"use strict";const B=x(24475).b,I=x(12227).R,M=x(12227).C,P=x(86055),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],w=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function D(g,p,b){const y={};this._baseState=y,y.name=b,y.enc=g,y.parent=p||null,y.children=null,y.tag=null,y.args=null,y.reverseArgs=null,y.choice=null,y.optional=!1,y.any=!1,y.obj=!1,y.use=null,y.useDecoder=null,y.key=null,y.default=null,y.explicit=null,y.implicit=null,y.contains=null,y.parent||(y.children=[],this._wrap())}q.exports=D;const A=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];D.prototype.clone=function(){const p=this._baseState,b={};A.forEach(function(m){b[m]=p[m]});const y=new this.constructor(b.parent);return y._baseState=b,y},D.prototype._wrap=function(){const p=this._baseState;w.forEach(function(b){this[b]=function(){const m=new this.constructor(this);return p.children.push(m),m[b].apply(m,arguments)}},this)},D.prototype._init=function(p){const b=this._baseState;P(null===b.parent),p.call(this),b.children=b.children.filter(function(y){return y._baseState.parent===this},this),P.equal(b.children.length,1,"Root node can have only one child")},D.prototype._useArgs=function(p){const b=this._baseState,y=p.filter(function(m){return m instanceof this.constructor},this);p=p.filter(function(m){return!(m instanceof this.constructor)},this),0!==y.length&&(P(null===b.children),b.children=y,y.forEach(function(m){m._baseState.parent=this},this)),0!==p.length&&(P(null===b.args),b.args=p,b.reverseArgs=p.map(function(m){if("object"!=typeof m||m.constructor!==Object)return m;const E={};return Object.keys(m).forEach(function(C){C==(0|C)&&(C|=0),E[m[C]]=C}),E}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(g){D.prototype[g]=function(){throw new Error(g+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(g){D.prototype[g]=function(){const b=this._baseState,y=Array.prototype.slice.call(arguments);return P(null===b.tag),b.tag=g,this._useArgs(y),this}}),D.prototype.use=function(p){P(p);const b=this._baseState;return P(null===b.use),b.use=p,this},D.prototype.optional=function(){return this._baseState.optional=!0,this},D.prototype.def=function(p){const b=this._baseState;return P(null===b.default),b.default=p,b.optional=!0,this},D.prototype.explicit=function(p){const b=this._baseState;return P(null===b.explicit&&null===b.implicit),b.explicit=p,this},D.prototype.implicit=function(p){const b=this._baseState;return P(null===b.explicit&&null===b.implicit),b.implicit=p,this},D.prototype.obj=function(){const p=this._baseState,b=Array.prototype.slice.call(arguments);return p.obj=!0,0!==b.length&&this._useArgs(b),this},D.prototype.key=function(p){const b=this._baseState;return P(null===b.key),b.key=p,this},D.prototype.any=function(){return this._baseState.any=!0,this},D.prototype.choice=function(p){const b=this._baseState;return P(null===b.choice),b.choice=p,this._useArgs(Object.keys(p).map(function(y){return p[y]})),this},D.prototype.contains=function(p){const b=this._baseState;return P(null===b.use),b.contains=p,this},D.prototype._decode=function(p,b){const y=this._baseState;if(null===y.parent)return p.wrapResult(y.children[0]._decode(p,b));let L,m=y.default,E=!0,C=null;if(null!==y.key&&(C=p.enterKey(y.key)),y.optional){let R=null;if(null!==y.explicit?R=y.explicit:null!==y.implicit?R=y.implicit:null!==y.tag&&(R=y.tag),null!==R||y.any){if(E=this._peekTag(p,R,y.any),p.isError(E))return E}else{const U=p.save();try{null===y.choice?this._decodeGeneric(y.tag,p,b):this._decodeChoice(p,b),E=!0}catch{E=!1}p.restore(U)}}if(y.obj&&E&&(L=p.enterObject()),E){if(null!==y.explicit){const U=this._decodeTag(p,y.explicit);if(p.isError(U))return U;p=U}const R=p.offset;if(null===y.use&&null===y.choice){let U;y.any&&(U=p.save());const O=this._decodeTag(p,null!==y.implicit?y.implicit:y.tag,y.any);if(p.isError(O))return O;y.any?m=p.raw(U):p=O}if(b&&b.track&&null!==y.tag&&b.track(p.path(),R,p.length,"tagged"),b&&b.track&&null!==y.tag&&b.track(p.path(),p.offset,p.length,"content"),y.any||(m=null===y.choice?this._decodeGeneric(y.tag,p,b):this._decodeChoice(p,b)),p.isError(m))return m;if(!y.any&&null===y.choice&&null!==y.children&&y.children.forEach(function(O){O._decode(p,b)}),y.contains&&("octstr"===y.tag||"bitstr"===y.tag)){const U=new M(m);m=this._getUse(y.contains,p._reporterState.obj)._decode(U,b)}}return y.obj&&E&&(m=p.leaveObject(L)),null===y.key||null===m&&!0!==E?null!==C&&p.exitKey(C):p.leaveKey(C,y.key,m),m},D.prototype._decodeGeneric=function(p,b,y){const m=this._baseState;return"seq"===p||"set"===p?null:"seqof"===p||"setof"===p?this._decodeList(b,p,m.args[0],y):/str$/.test(p)?this._decodeStr(b,p,y):"objid"===p&&m.args?this._decodeObjid(b,m.args[0],m.args[1],y):"objid"===p?this._decodeObjid(b,null,null,y):"gentime"===p||"utctime"===p?this._decodeTime(b,p,y):"null_"===p?this._decodeNull(b,y):"bool"===p?this._decodeBool(b,y):"objDesc"===p?this._decodeStr(b,p,y):"int"===p||"enum"===p?this._decodeInt(b,m.args&&m.args[0],y):null!==m.use?this._getUse(m.use,b._reporterState.obj)._decode(b,y):b.error("unknown tag: "+p)},D.prototype._getUse=function(p,b){const y=this._baseState;return y.useDecoder=this._use(p,b),P(null===y.useDecoder._baseState.parent),y.useDecoder=y.useDecoder._baseState.children[0],y.implicit!==y.useDecoder._baseState.implicit&&(y.useDecoder=y.useDecoder.clone(),y.useDecoder._baseState.implicit=y.implicit),y.useDecoder},D.prototype._decodeChoice=function(p,b){const y=this._baseState;let m=null,E=!1;return Object.keys(y.choice).some(function(C){const L=p.save(),R=y.choice[C];try{const U=R._decode(p,b);if(p.isError(U))return!1;m={type:C,value:U},E=!0}catch{return p.restore(L),!1}return!0},this),E?m:p.error("Choice not matched")},D.prototype._createEncoderBuffer=function(p){return new I(p,this.reporter)},D.prototype._encode=function(p,b,y){const m=this._baseState;if(null!==m.default&&m.default===p)return;const E=this._encodeValue(p,b,y);return void 0===E||this._skipDefault(E,b,y)?void 0:E},D.prototype._encodeValue=function(p,b,y){const m=this._baseState;if(null===m.parent)return m.children[0]._encode(p,b||new B);let E=null;if(this.reporter=b,m.optional&&void 0===p){if(null===m.default)return;p=m.default}let C=null,L=!1;if(m.any)E=this._createEncoderBuffer(p);else if(m.choice)E=this._encodeChoice(p,b);else if(m.contains)C=this._getUse(m.contains,y)._encode(p,b),L=!0;else if(m.children)C=m.children.map(function(R){if("null_"===R._baseState.tag)return R._encode(null,b,p);if(null===R._baseState.key)return b.error("Child should have a key");const U=b.enterKey(R._baseState.key);if("object"!=typeof p)return b.error("Child expected, but input is not object");const O=R._encode(p[R._baseState.key],b,p);return b.leaveKey(U),O},this).filter(function(R){return R}),C=this._createEncoderBuffer(C);else if("seqof"===m.tag||"setof"===m.tag){if(!m.args||1!==m.args.length)return b.error("Too many args for : "+m.tag);if(!Array.isArray(p))return b.error("seqof/setof, but data is not Array");const R=this.clone();R._baseState.implicit=null,C=this._createEncoderBuffer(p.map(function(U){return this._getUse(this._baseState.args[0],p)._encode(U,b)},R))}else null!==m.use?E=this._getUse(m.use,y)._encode(p,b):(C=this._encodePrimitive(m.tag,p),L=!0);if(!m.any&&null===m.choice){const R=null!==m.implicit?m.implicit:m.tag,U=null===m.implicit?"universal":"context";null===R?null===m.use&&b.error("Tag could be omitted only for .use()"):null===m.use&&(E=this._encodeComposite(R,L,U,C))}return null!==m.explicit&&(E=this._encodeComposite(m.explicit,!1,"context",E)),E},D.prototype._encodeChoice=function(p,b){const y=this._baseState,m=y.choice[p.type];return m||P(!1,p.type+" not found in "+JSON.stringify(Object.keys(y.choice))),m._encode(p.value,b)},D.prototype._encodePrimitive=function(p,b){const y=this._baseState;if(/str$/.test(p))return this._encodeStr(b,p);if("objid"===p&&y.args)return this._encodeObjid(b,y.reverseArgs[0],y.args[1]);if("objid"===p)return this._encodeObjid(b,null,null);if("gentime"===p||"utctime"===p)return this._encodeTime(b,p);if("null_"===p)return this._encodeNull();if("int"===p||"enum"===p)return this._encodeInt(b,y.args&&y.reverseArgs[0]);if("bool"===p)return this._encodeBool(b);if("objDesc"===p)return this._encodeStr(b,p);throw new Error("Unsupported tag: "+p)},D.prototype._isNumstr=function(p){return/^[0-9 ]*$/.test(p)},D.prototype._isPrintstr=function(p){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(p)}},24475:(q,k,x)=>{"use strict";const B=x(59879);function I(P){this._reporterState={obj:null,path:[],options:P||{},errors:[]}}function M(P,o){this.path=P,this.rethrow(o)}k.b=I,I.prototype.isError=function(o){return o instanceof M},I.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},I.prototype.restore=function(o){const w=this._reporterState;w.obj=o.obj,w.path=w.path.slice(0,o.pathLen)},I.prototype.enterKey=function(o){return this._reporterState.path.push(o)},I.prototype.exitKey=function(o){const w=this._reporterState;w.path=w.path.slice(0,o-1)},I.prototype.leaveKey=function(o,w,S){const D=this._reporterState;this.exitKey(o),null!==D.obj&&(D.obj[w]=S)},I.prototype.path=function(){return this._reporterState.path.join("/")},I.prototype.enterObject=function(){const o=this._reporterState,w=o.obj;return o.obj={},w},I.prototype.leaveObject=function(o){const w=this._reporterState,S=w.obj;return w.obj=o,S},I.prototype.error=function(o){let w;const S=this._reporterState,D=o instanceof M;if(w=D?o:new M(S.path.map(function(A){return"["+JSON.stringify(A)+"]"}).join(""),o.message||o,o.stack),!S.options.partial)throw w;return D||S.errors.push(w),w},I.prototype.wrapResult=function(o){const w=this._reporterState;return w.options.partial?{result:this.isError(o)?null:o,errors:w.errors}:o},B(M,Error),M.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,M),!this.stack)try{throw new Error(this.message)}catch(w){this.stack=w.stack}return this}},32953:(q,k)=>{"use strict";function x(B){const I={};return Object.keys(B).forEach(function(M){(0|M)==M&&(M|=0),I[B[M]]=M}),I}k.tagClass={0:"universal",1:"application",2:"context",3:"private"},k.tagClassByName=x(k.tagClass),k.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},k.tagByName=x(k.tag)},82779:(q,k,x)=>{"use strict";const B=k;B._reverse=function(M){const P={};return Object.keys(M).forEach(function(o){(0|o)==o&&(o|=0),P[M[o]]=o}),P},B.der=x(32953)},14163:(q,k,x)=>{"use strict";const B=x(59879),I=x(32260),M=x(12227).C,P=x(14652),o=x(32953);function w(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new S,this.tree._init(g.body)}function S(g){P.call(this,"der",g)}function D(g,p){let b=g.readUInt8(p);if(g.isError(b))return b;const y=o.tagClass[b>>6],m=0==(32&b);if(31==(31&b)){let C=b;for(b=0;128==(128&C);){if(C=g.readUInt8(p),g.isError(C))return C;b<<=7,b|=127&C}}else b&=31;return{cls:y,primitive:m,tag:b,tagStr:o.tag[b]}}function A(g,p,b){let y=g.readUInt8(b);if(g.isError(y))return y;if(!p&&128===y)return null;if(0==(128&y))return y;const m=127&y;if(m>4)return g.error("length octect is too long");y=0;for(let E=0;E{"use strict";const B=k;B.der=x(14163),B.pem=x(60773)},60773:(q,k,x)=>{"use strict";const B=x(59879),I=x(88114).Buffer,M=x(14163);function P(o){M.call(this,o),this.enc="pem"}B(P,M),q.exports=P,P.prototype.decode=function(w,S){const D=w.toString().split(/[\r\n]+/g),A=S.label.toUpperCase(),g=/^-----(BEGIN|END) ([^-]+)-----$/;let p=-1,b=-1;for(let E=0;E{"use strict";const B=x(59879),I=x(88114).Buffer,M=x(14652),P=x(32953);function o(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new w,this.tree._init(A.body)}function w(A){M.call(this,"der",A)}function S(A){return A<10?"0"+A:A}q.exports=o,o.prototype.encode=function(g,p){return this.tree._encode(g,p).join()},B(w,M),w.prototype._encodeComposite=function(g,p,b,y){const m=function D(A,g,p,b){let y;if("seqof"===A?A="seq":"setof"===A&&(A="set"),P.tagByName.hasOwnProperty(A))y=P.tagByName[A];else{if("number"!=typeof A||(0|A)!==A)return b.error("Unknown tag: "+A);y=A}return y>=31?b.error("Multi-octet tag encoding unsupported"):(g||(y|=32),y|=P.tagClassByName[p||"universal"]<<6,y)}(g,p,b,this.reporter);if(y.length<128){const L=I.alloc(2);return L[0]=m,L[1]=y.length,this._createEncoderBuffer([L,y])}let E=1;for(let L=y.length;L>=256;L>>=8)E++;const C=I.alloc(2+E);C[0]=m,C[1]=128|E;for(let L=1+E,R=y.length;R>0;L--,R>>=8)C[L]=255&R;return this._createEncoderBuffer([C,y])},w.prototype._encodeStr=function(g,p){if("bitstr"===p)return this._createEncoderBuffer([0|g.unused,g.data]);if("bmpstr"===p){const b=I.alloc(2*g.length);for(let y=0;y=40)return this.reporter.error("Second objid identifier OOB");g.splice(0,2,40*g[0]+g[1])}let y=0;for(let C=0;C=128;L>>=7)y++}const m=I.alloc(y);let E=m.length-1;for(let C=g.length-1;C>=0;C--){let L=g[C];for(m[E--]=127&L;(L>>=7)>0;)m[E--]=128|127&L}return this._createEncoderBuffer(m)},w.prototype._encodeTime=function(g,p){let b;const y=new Date(g);return"gentime"===p?b=[S(y.getUTCFullYear()),S(y.getUTCMonth()+1),S(y.getUTCDate()),S(y.getUTCHours()),S(y.getUTCMinutes()),S(y.getUTCSeconds()),"Z"].join(""):"utctime"===p?b=[S(y.getUTCFullYear()%100),S(y.getUTCMonth()+1),S(y.getUTCDate()),S(y.getUTCHours()),S(y.getUTCMinutes()),S(y.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(b,"octstr")},w.prototype._encodeNull=function(){return this._createEncoderBuffer("")},w.prototype._encodeInt=function(g,p){if("string"==typeof g){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(g))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(g));g=p[g]}if("number"!=typeof g&&!I.isBuffer(g)){const m=g.toArray();!g.sign&&128&m[0]&&m.unshift(0),g=I.from(m)}if(I.isBuffer(g)){let m=g.length;0===g.length&&m++;const E=I.alloc(m);return g.copy(E),0===g.length&&(E[0]=0),this._createEncoderBuffer(E)}if(g<128)return this._createEncoderBuffer(g);if(g<256)return this._createEncoderBuffer([0,g]);let b=1;for(let m=g;m>=256;m>>=8)b++;const y=new Array(b);for(let m=y.length-1;m>=0;m--)y[m]=255&g,g>>=8;return 128&y[0]&&y.unshift(0),this._createEncoderBuffer(I.from(y))},w.prototype._encodeBool=function(g){return this._createEncoderBuffer(g?255:0)},w.prototype._use=function(g,p){return"function"==typeof g&&(g=g(p)),g._getEncoder("der").tree},w.prototype._skipDefault=function(g,p,b){const y=this._baseState;let m;if(null===y.default)return!1;const E=g.join();if(void 0===y.defaultBuffer&&(y.defaultBuffer=this._encodeValue(y.default,p,b).join()),E.length!==y.defaultBuffer.length)return!1;for(m=0;m{"use strict";const B=k;B.der=x(75079),B.pem=x(76163)},76163:(q,k,x)=>{"use strict";const B=x(59879),I=x(75079);function M(P){I.call(this,P),this.enc="pem"}B(M,I),q.exports=M,M.prototype.encode=function(o,w){const D=I.prototype.encode.call(this,o).toString("base64"),A=["-----BEGIN "+w.label+"-----"];for(let g=0;g=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},96434:(q,k)=>{"use strict";k.byteLength=function S(y){var m=w(y),C=m[1];return 3*(m[0]+C)/4-C},k.toByteArray=function A(y){var m,j,E=w(y),C=E[0],L=E[1],R=new I(function D(y,m,E){return 3*(m+E)/4-E}(0,C,L)),U=0,O=L>0?C-4:C;for(j=0;j>16&255,R[U++]=m>>8&255,R[U++]=255&m;return 2===L&&(m=B[y.charCodeAt(j)]<<2|B[y.charCodeAt(j+1)]>>4,R[U++]=255&m),1===L&&(m=B[y.charCodeAt(j)]<<10|B[y.charCodeAt(j+1)]<<4|B[y.charCodeAt(j+2)]>>2,R[U++]=m>>8&255,R[U++]=255&m),R},k.fromByteArray=function b(y){for(var m,E=y.length,C=E%3,L=[],R=16383,U=0,O=E-C;UO?O:U+R));return 1===C?L.push(x[(m=y[E-1])>>2]+x[m<<4&63]+"=="):2===C&&L.push(x[(m=(y[E-2]<<8)+y[E-1])>>10]+x[m>>4&63]+x[m<<2&63]+"="),L.join("")};for(var x=[],B=[],I=typeof Uint8Array<"u"?Uint8Array:Array,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=0,o=M.length;P0)throw new Error("Invalid string. Length must be a multiple of 4");var E=y.indexOf("=");return-1===E&&(E=m),[E,E===m?0:4-E%4]}function g(y){return x[y>>18&63]+x[y>>12&63]+x[y>>6&63]+x[63&y]}function p(y,m,E){for(var L=[],R=m;R=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void M(!1,"Invalid character in "+s)}function D(s,e,i){var u=S(s,i);return i-1>=e&&(u|=S(s,i-1)<<4),u}function A(s,e,i,u){for(var d=0,c=0,r=Math.min(s.length,i),h=e;h=49?F-49+10:F>=17?F-17+10:F,M(F>=0&&c0?e:i},o.min=function(e,i){return e.cmp(i)<0?e:i},o.prototype._init=function(e,i,u){if("number"==typeof e)return this._initNumber(e,i,u);if("object"==typeof e)return this._initArray(e,i,u);"hex"===i&&(i=16),M(i===(0|i)&&i>=2&&i<=36);var d=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d=0;d-=3)this.words[c]|=(r=e[d]|e[d-1]<<8|e[d-2]<<16)<>>26-h&67108863,(h+=24)>=26&&(h-=26,c++);else if("le"===u)for(d=0,c=0;d>>26-h&67108863,(h+=24)>=26&&(h-=26,c++);return this._strip()},o.prototype._parseHex=function(e,i,u){this.length=Math.ceil((e.length-i)/6),this.words=new Array(this.length);for(var d=0;d=i;d-=2)h=D(e,i,d)<=18?(c-=18,this.words[r+=1]|=h>>>26):c+=8;else for(d=(e.length-i)%2==0?i+1:i;d=18?(c-=18,this.words[r+=1]|=h>>>26):c+=8;this._strip()},o.prototype._parseBase=function(e,i,u){this.words=[0],this.length=1;for(var d=0,c=1;c<=67108863;c*=i)d++;d--,c=c/i|0;for(var r=e.length-u,h=r%d,F=Math.min(r,r-h)+u,T=0,H=u;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch{o.prototype.inspect=p}else o.prototype.inspect=p;function p(){return(this.red?""}var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function L(s,e,i){i.negative=e.negative^s.negative;var u=s.length+e.length|0;i.length=u,u=u-1|0;var d=0|s.words[0],c=0|e.words[0],r=d*c,F=r/67108864|0;i.words[0]=67108863&r;for(var T=1;T>>26,ae=67108863&F,Ae=Math.min(T,e.length-1),fe=Math.max(0,T-s.length+1);fe<=Ae;fe++)H+=(r=(d=0|s.words[T-fe|0])*(c=0|e.words[fe])+ae)/67108864|0,ae=67108863&r;i.words[T]=0|ae,F=0|H}return 0!==F?i.words[T]=0|F:i.length--,i._strip()}o.prototype.toString=function(e,i){var u;if(i=0|i||1,16===(e=e||10)||"hex"===e){u="";for(var d=0,c=0,r=0;r>>24-d&16777215,(d+=2)>=26&&(d-=26,r--),u=0!==c||r!==this.length-1?b[6-F.length]+F+u:F+u}for(0!==c&&(u=c.toString(16)+u);u.length%i!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(e===(0|e)&&e>=2&&e<=36){var T=y[e],H=m[e];u="";var ae=this.clone();for(ae.negative=0;!ae.isZero();){var Ae=ae.modrn(H).toString(e);u=(ae=ae.idivn(H)).isZero()?Ae+u:b[T-Ae.length]+Ae+u}for(this.isZero()&&(u="0"+u);u.length%i!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},w&&(o.prototype.toBuffer=function(e,i){return this.toArrayLike(w,e,i)}),o.prototype.toArray=function(e,i){return this.toArrayLike(Array,e,i)},o.prototype.toArrayLike=function(e,i,u){this._strip();var d=this.byteLength(),c=u||Math.max(1,d);M(d<=c,"byte array longer than desired length"),M(c>0,"Requested array length <= 0");var r=function(e,i){return e.allocUnsafe?e.allocUnsafe(i):new e(i)}(e,c);return this["_toArrayLike"+("le"===i?"LE":"BE")](r,d),r},o.prototype._toArrayLikeLE=function(e,i){for(var u=0,d=0,c=0,r=0;c>8&255),u>16&255),6===r?(u>24&255),d=0,r=0):(d=h>>>24,r+=2)}if(u=0&&(e[u--]=h>>8&255),u>=0&&(e[u--]=h>>16&255),6===r?(u>=0&&(e[u--]=h>>24&255),d=0,r=0):(d=h>>>24,r+=2)}if(u>=0)for(e[u--]=d;u>=0;)e[u--]=0},o.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var i=e,u=0;return i>=4096&&(u+=13,i>>>=13),i>=64&&(u+=7,i>>>=7),i>=8&&(u+=4,i>>>=4),i>=2&&(u+=2,i>>>=2),u+i},o.prototype._zeroBits=function(e){if(0===e)return 26;var i=e,u=0;return 0==(8191&i)&&(u+=13,i>>>=13),0==(127&i)&&(u+=7,i>>>=7),0==(15&i)&&(u+=4,i>>>=4),0==(3&i)&&(u+=2,i>>>=2),0==(1&i)&&u++,u},o.prototype.bitLength=function(){var i=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+i},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var i;i=this.length>e.length?e:this;for(var u=0;ue.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var i,u;this.length>e.length?(i=this,u=e):(i=e,u=this);for(var d=0;de.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){M("number"==typeof e&&e>=0);var i=0|Math.ceil(e/26),u=e%26;this._expand(i),u>0&&i--;for(var d=0;d0&&(this.words[d]=~this.words[d]&67108863>>26-u),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,i){M("number"==typeof e&&e>=0);var u=e/26|0,d=e%26;return this._expand(u+1),this.words[u]=i?this.words[u]|1<e.length?(u=this,d=e):(u=e,d=this);for(var c=0,r=0;r>>26;for(;0!==c&&r>>26;if(this.length=u.length,0!==c)this.words[this.length]=c,this.length++;else if(u!==this)for(;re.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var d,c,u=this.cmp(e);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(d=this,c=e):(d=e,c=this);for(var r=0,h=0;h>26,this.words[h]=67108863&i;for(;0!==r&&h>26,this.words[h]=67108863&i;if(0===r&&h>>13,Ee=0|d[1],ee=8191&Ee,se=Ee>>>13,ze=0|d[2],ye=8191&ze,ue=ze>>>13,je=0|d[3],Ne=8191&je,Ye=je>>>13,Et=0|d[4],ot=8191&Et,lt=Et>>>13,Lt=0|d[5],ct=8191&Lt,He=Lt>>>13,Ue=0|d[6],Se=8191&Ue,Ve=Ue>>>13,Le=0|d[7],Y=8191&Le,z=Le>>>13,G=0|d[8],re=8191&G,ce=G>>>13,Ge=0|d[9],De=8191&Ge,we=Ge>>>13,Oe=0|c[0],xe=8191&Oe,te=Oe>>>13,le=0|c[1],me=8191&le,Pe=le>>>13,st=0|c[2],tt=8191&st,et=st>>>13,gt=0|c[3],Fe=8191>,ne=gt>>>13,yt=0|c[4],rt=8191&yt,$=yt>>>13,We=0|c[5],Be=8191&We,Ze=We>>>13,pe=0|c[6],ve=8191&pe,be=pe>>>13,de=0|c[7],Re=8191&de,Je=de>>>13,vt=0|c[8],it=8191&vt,at=vt>>>13,It=0|c[9],At=8191&It,Rt=It>>>13;u.negative=e.negative^i.negative,u.length=19;var Pt=(h+(F=Math.imul(Ae,xe))|0)+((8191&(T=(T=Math.imul(Ae,te))+Math.imul(fe,xe)|0))<<13)|0;h=((H=Math.imul(fe,te))+(T>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,F=Math.imul(ee,xe),T=(T=Math.imul(ee,te))+Math.imul(se,xe)|0,H=Math.imul(se,te);var Vt=(h+(F=F+Math.imul(Ae,me)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0))<<13)|0;h=((H=H+Math.imul(fe,Pe)|0)+(T>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,F=Math.imul(ye,xe),T=(T=Math.imul(ye,te))+Math.imul(ue,xe)|0,H=Math.imul(ue,te),F=F+Math.imul(ee,me)|0,T=(T=T+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,H=H+Math.imul(se,Pe)|0;var er=(h+(F=F+Math.imul(Ae,tt)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0))<<13)|0;h=((H=H+Math.imul(fe,et)|0)+(T>>>13)|0)+(er>>>26)|0,er&=67108863,F=Math.imul(Ne,xe),T=(T=Math.imul(Ne,te))+Math.imul(Ye,xe)|0,H=Math.imul(Ye,te),F=F+Math.imul(ye,me)|0,T=(T=T+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,H=H+Math.imul(ue,Pe)|0,F=F+Math.imul(ee,tt)|0,T=(T=T+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,H=H+Math.imul(se,et)|0;var nr=(h+(F=F+Math.imul(Ae,Fe)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0))<<13)|0;h=((H=H+Math.imul(fe,ne)|0)+(T>>>13)|0)+(nr>>>26)|0,nr&=67108863,F=Math.imul(ot,xe),T=(T=Math.imul(ot,te))+Math.imul(lt,xe)|0,H=Math.imul(lt,te),F=F+Math.imul(Ne,me)|0,T=(T=T+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,H=H+Math.imul(Ye,Pe)|0,F=F+Math.imul(ye,tt)|0,T=(T=T+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,H=H+Math.imul(ue,et)|0,F=F+Math.imul(ee,Fe)|0,T=(T=T+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,H=H+Math.imul(se,ne)|0;var tr=(h+(F=F+Math.imul(Ae,rt)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0))<<13)|0;h=((H=H+Math.imul(fe,$)|0)+(T>>>13)|0)+(tr>>>26)|0,tr&=67108863,F=Math.imul(ct,xe),T=(T=Math.imul(ct,te))+Math.imul(He,xe)|0,H=Math.imul(He,te),F=F+Math.imul(ot,me)|0,T=(T=T+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,H=H+Math.imul(lt,Pe)|0,F=F+Math.imul(Ne,tt)|0,T=(T=T+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,H=H+Math.imul(Ye,et)|0,F=F+Math.imul(ye,Fe)|0,T=(T=T+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,H=H+Math.imul(ue,ne)|0,F=F+Math.imul(ee,rt)|0,T=(T=T+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,H=H+Math.imul(se,$)|0;var Wt=(h+(F=F+Math.imul(Ae,Be)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0))<<13)|0;h=((H=H+Math.imul(fe,Ze)|0)+(T>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,F=Math.imul(Se,xe),T=(T=Math.imul(Se,te))+Math.imul(Ve,xe)|0,H=Math.imul(Ve,te),F=F+Math.imul(ct,me)|0,T=(T=T+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,H=H+Math.imul(He,Pe)|0,F=F+Math.imul(ot,tt)|0,T=(T=T+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,H=H+Math.imul(lt,et)|0,F=F+Math.imul(Ne,Fe)|0,T=(T=T+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,H=H+Math.imul(Ye,ne)|0,F=F+Math.imul(ye,rt)|0,T=(T=T+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,H=H+Math.imul(ue,$)|0,F=F+Math.imul(ee,Be)|0,T=(T=T+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,H=H+Math.imul(se,Ze)|0;var Yt=(h+(F=F+Math.imul(Ae,ve)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0))<<13)|0;h=((H=H+Math.imul(fe,be)|0)+(T>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,F=Math.imul(Y,xe),T=(T=Math.imul(Y,te))+Math.imul(z,xe)|0,H=Math.imul(z,te),F=F+Math.imul(Se,me)|0,T=(T=T+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,H=H+Math.imul(Ve,Pe)|0,F=F+Math.imul(ct,tt)|0,T=(T=T+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,H=H+Math.imul(He,et)|0,F=F+Math.imul(ot,Fe)|0,T=(T=T+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,H=H+Math.imul(lt,ne)|0,F=F+Math.imul(Ne,rt)|0,T=(T=T+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,H=H+Math.imul(Ye,$)|0,F=F+Math.imul(ye,Be)|0,T=(T=T+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,H=H+Math.imul(ue,Ze)|0,F=F+Math.imul(ee,ve)|0,T=(T=T+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,H=H+Math.imul(se,be)|0;var Ht=(h+(F=F+Math.imul(Ae,Re)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0))<<13)|0;h=((H=H+Math.imul(fe,Je)|0)+(T>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,F=Math.imul(re,xe),T=(T=Math.imul(re,te))+Math.imul(ce,xe)|0,H=Math.imul(ce,te),F=F+Math.imul(Y,me)|0,T=(T=T+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,H=H+Math.imul(z,Pe)|0,F=F+Math.imul(Se,tt)|0,T=(T=T+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,H=H+Math.imul(Ve,et)|0,F=F+Math.imul(ct,Fe)|0,T=(T=T+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,H=H+Math.imul(He,ne)|0,F=F+Math.imul(ot,rt)|0,T=(T=T+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,H=H+Math.imul(lt,$)|0,F=F+Math.imul(Ne,Be)|0,T=(T=T+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,H=H+Math.imul(Ye,Ze)|0,F=F+Math.imul(ye,ve)|0,T=(T=T+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,H=H+Math.imul(ue,be)|0,F=F+Math.imul(ee,Re)|0,T=(T=T+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,H=H+Math.imul(se,Je)|0;var Bt=(h+(F=F+Math.imul(Ae,it)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;h=((H=H+Math.imul(fe,at)|0)+(T>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,F=Math.imul(De,xe),T=(T=Math.imul(De,te))+Math.imul(we,xe)|0,H=Math.imul(we,te),F=F+Math.imul(re,me)|0,T=(T=T+Math.imul(re,Pe)|0)+Math.imul(ce,me)|0,H=H+Math.imul(ce,Pe)|0,F=F+Math.imul(Y,tt)|0,T=(T=T+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,H=H+Math.imul(z,et)|0,F=F+Math.imul(Se,Fe)|0,T=(T=T+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,H=H+Math.imul(Ve,ne)|0,F=F+Math.imul(ct,rt)|0,T=(T=T+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,H=H+Math.imul(He,$)|0,F=F+Math.imul(ot,Be)|0,T=(T=T+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,H=H+Math.imul(lt,Ze)|0,F=F+Math.imul(Ne,ve)|0,T=(T=T+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,H=H+Math.imul(Ye,be)|0,F=F+Math.imul(ye,Re)|0,T=(T=T+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,H=H+Math.imul(ue,Je)|0,F=F+Math.imul(ee,it)|0,T=(T=T+Math.imul(ee,at)|0)+Math.imul(se,it)|0,H=H+Math.imul(se,at)|0;var jt=(h+(F=F+Math.imul(Ae,At)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Rt)|0)+Math.imul(fe,At)|0))<<13)|0;h=((H=H+Math.imul(fe,Rt)|0)+(T>>>13)|0)+(jt>>>26)|0,jt&=67108863,F=Math.imul(De,me),T=(T=Math.imul(De,Pe))+Math.imul(we,me)|0,H=Math.imul(we,Pe),F=F+Math.imul(re,tt)|0,T=(T=T+Math.imul(re,et)|0)+Math.imul(ce,tt)|0,H=H+Math.imul(ce,et)|0,F=F+Math.imul(Y,Fe)|0,T=(T=T+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,H=H+Math.imul(z,ne)|0,F=F+Math.imul(Se,rt)|0,T=(T=T+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,H=H+Math.imul(Ve,$)|0,F=F+Math.imul(ct,Be)|0,T=(T=T+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,H=H+Math.imul(He,Ze)|0,F=F+Math.imul(ot,ve)|0,T=(T=T+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,H=H+Math.imul(lt,be)|0,F=F+Math.imul(Ne,Re)|0,T=(T=T+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,H=H+Math.imul(Ye,Je)|0,F=F+Math.imul(ye,it)|0,T=(T=T+Math.imul(ye,at)|0)+Math.imul(ue,it)|0,H=H+Math.imul(ue,at)|0;var Gt=(h+(F=F+Math.imul(ee,At)|0)|0)+((8191&(T=(T=T+Math.imul(ee,Rt)|0)+Math.imul(se,At)|0))<<13)|0;h=((H=H+Math.imul(se,Rt)|0)+(T>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,F=Math.imul(De,tt),T=(T=Math.imul(De,et))+Math.imul(we,tt)|0,H=Math.imul(we,et),F=F+Math.imul(re,Fe)|0,T=(T=T+Math.imul(re,ne)|0)+Math.imul(ce,Fe)|0,H=H+Math.imul(ce,ne)|0,F=F+Math.imul(Y,rt)|0,T=(T=T+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,H=H+Math.imul(z,$)|0,F=F+Math.imul(Se,Be)|0,T=(T=T+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,H=H+Math.imul(Ve,Ze)|0,F=F+Math.imul(ct,ve)|0,T=(T=T+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,H=H+Math.imul(He,be)|0,F=F+Math.imul(ot,Re)|0,T=(T=T+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,H=H+Math.imul(lt,Je)|0,F=F+Math.imul(Ne,it)|0,T=(T=T+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0,H=H+Math.imul(Ye,at)|0;var Zt=(h+(F=F+Math.imul(ye,At)|0)|0)+((8191&(T=(T=T+Math.imul(ye,Rt)|0)+Math.imul(ue,At)|0))<<13)|0;h=((H=H+Math.imul(ue,Rt)|0)+(T>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,F=Math.imul(De,Fe),T=(T=Math.imul(De,ne))+Math.imul(we,Fe)|0,H=Math.imul(we,ne),F=F+Math.imul(re,rt)|0,T=(T=T+Math.imul(re,$)|0)+Math.imul(ce,rt)|0,H=H+Math.imul(ce,$)|0,F=F+Math.imul(Y,Be)|0,T=(T=T+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,H=H+Math.imul(z,Ze)|0,F=F+Math.imul(Se,ve)|0,T=(T=T+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,H=H+Math.imul(Ve,be)|0,F=F+Math.imul(ct,Re)|0,T=(T=T+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,H=H+Math.imul(He,Je)|0,F=F+Math.imul(ot,it)|0,T=(T=T+Math.imul(ot,at)|0)+Math.imul(lt,it)|0,H=H+Math.imul(lt,at)|0;var Jt=(h+(F=F+Math.imul(Ne,At)|0)|0)+((8191&(T=(T=T+Math.imul(Ne,Rt)|0)+Math.imul(Ye,At)|0))<<13)|0;h=((H=H+Math.imul(Ye,Rt)|0)+(T>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,F=Math.imul(De,rt),T=(T=Math.imul(De,$))+Math.imul(we,rt)|0,H=Math.imul(we,$),F=F+Math.imul(re,Be)|0,T=(T=T+Math.imul(re,Ze)|0)+Math.imul(ce,Be)|0,H=H+Math.imul(ce,Ze)|0,F=F+Math.imul(Y,ve)|0,T=(T=T+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,H=H+Math.imul(z,be)|0,F=F+Math.imul(Se,Re)|0,T=(T=T+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,H=H+Math.imul(Ve,Je)|0,F=F+Math.imul(ct,it)|0,T=(T=T+Math.imul(ct,at)|0)+Math.imul(He,it)|0,H=H+Math.imul(He,at)|0;var zt=(h+(F=F+Math.imul(ot,At)|0)|0)+((8191&(T=(T=T+Math.imul(ot,Rt)|0)+Math.imul(lt,At)|0))<<13)|0;h=((H=H+Math.imul(lt,Rt)|0)+(T>>>13)|0)+(zt>>>26)|0,zt&=67108863,F=Math.imul(De,Be),T=(T=Math.imul(De,Ze))+Math.imul(we,Be)|0,H=Math.imul(we,Ze),F=F+Math.imul(re,ve)|0,T=(T=T+Math.imul(re,be)|0)+Math.imul(ce,ve)|0,H=H+Math.imul(ce,be)|0,F=F+Math.imul(Y,Re)|0,T=(T=T+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,H=H+Math.imul(z,Je)|0,F=F+Math.imul(Se,it)|0,T=(T=T+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0,H=H+Math.imul(Ve,at)|0;var _t=(h+(F=F+Math.imul(ct,At)|0)|0)+((8191&(T=(T=T+Math.imul(ct,Rt)|0)+Math.imul(He,At)|0))<<13)|0;h=((H=H+Math.imul(He,Rt)|0)+(T>>>13)|0)+(_t>>>26)|0,_t&=67108863,F=Math.imul(De,ve),T=(T=Math.imul(De,be))+Math.imul(we,ve)|0,H=Math.imul(we,be),F=F+Math.imul(re,Re)|0,T=(T=T+Math.imul(re,Je)|0)+Math.imul(ce,Re)|0,H=H+Math.imul(ce,Je)|0,F=F+Math.imul(Y,it)|0,T=(T=T+Math.imul(Y,at)|0)+Math.imul(z,it)|0,H=H+Math.imul(z,at)|0;var St=(h+(F=F+Math.imul(Se,At)|0)|0)+((8191&(T=(T=T+Math.imul(Se,Rt)|0)+Math.imul(Ve,At)|0))<<13)|0;h=((H=H+Math.imul(Ve,Rt)|0)+(T>>>13)|0)+(St>>>26)|0,St&=67108863,F=Math.imul(De,Re),T=(T=Math.imul(De,Je))+Math.imul(we,Re)|0,H=Math.imul(we,Je),F=F+Math.imul(re,it)|0,T=(T=T+Math.imul(re,at)|0)+Math.imul(ce,it)|0,H=H+Math.imul(ce,at)|0;var Ut=(h+(F=F+Math.imul(Y,At)|0)|0)+((8191&(T=(T=T+Math.imul(Y,Rt)|0)+Math.imul(z,At)|0))<<13)|0;h=((H=H+Math.imul(z,Rt)|0)+(T>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,F=Math.imul(De,it),T=(T=Math.imul(De,at))+Math.imul(we,it)|0,H=Math.imul(we,at);var Nt=(h+(F=F+Math.imul(re,At)|0)|0)+((8191&(T=(T=T+Math.imul(re,Rt)|0)+Math.imul(ce,At)|0))<<13)|0;h=((H=H+Math.imul(ce,Rt)|0)+(T>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Ct=(h+(F=Math.imul(De,At))|0)+((8191&(T=(T=Math.imul(De,Rt))+Math.imul(we,At)|0))<<13)|0;return h=((H=Math.imul(we,Rt))+(T>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r[0]=Pt,r[1]=Vt,r[2]=er,r[3]=nr,r[4]=tr,r[5]=Wt,r[6]=Yt,r[7]=Ht,r[8]=Bt,r[9]=jt,r[10]=Gt,r[11]=Zt,r[12]=Jt,r[13]=zt,r[14]=_t,r[15]=St,r[16]=Ut,r[17]=Nt,r[18]=Ct,0!==h&&(r[19]=h,u.length++),u};function U(s,e,i){i.negative=e.negative^s.negative,i.length=s.length+e.length;for(var u=0,d=0,c=0;c>>26)|0)>>>26,r&=67108863}i.words[c]=h,u=r,r=d}return 0!==u?i.words[c]=u:i.length--,i._strip()}function O(s,e,i){return U(s,e,i)}function j(s,e){this.x=s,this.y=e}Math.imul||(R=L),o.prototype.mulTo=function(e,i){var d=this.length+e.length;return 10===this.length&&10===e.length?R(this,e,i):d<63?L(this,e,i):d<1024?U(this,e,i):O(this,e,i)},j.prototype.makeRBT=function(e){for(var i=new Array(e),u=o.prototype._countBits(e)-1,d=0;d>=1;return d},j.prototype.permute=function(e,i,u,d,c,r){for(var h=0;h>>=1)c++;return 1<>>=13),c>>>=13;for(r=2*i;r>=26,u+=c/67108864|0,u+=r>>>26,this.words[d]=67108863&r}return 0!==u&&(this.words[d]=u,this.length++),i?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var i=function C(s){for(var e=new Array(s.bitLength()),i=0;i>>i%26&1;return e}(e);if(0===i.length)return new o(1);for(var u=this,d=0;d=0);var c,i=e%26,u=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var r=0;for(c=0;c>>26-i}r&&(this.words[c]=r,this.length++)}if(0!==u){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c=0),d=i?(i-i%26)/26:0;var c=e%26,r=Math.min((e-c)/26,this.length),h=67108863^67108863>>>c<r)for(this.length-=r,T=0;T=0&&(0!==H||T>=d);T--){var ae=0|this.words[T];this.words[T]=H<<26-c|ae>>>c,H=ae&h}return F&&0!==H&&(F.words[F.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,i,u){return M(0===this.negative),this.iushrn(e,i,u)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){M("number"==typeof e&&e>=0);var i=e%26,u=(e-i)/26;return!(this.length<=u||!(this.words[u]&1<=0);var i=e%26,u=(e-i)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==i&&u++,this.length=Math.min(u,this.length),0!==i&&(this.words[this.length-1]&=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},o.prototype.isubn=function(e){if(M("number"==typeof e),M(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(F/67108864|0),this.words[c+u]=67108863&r}for(;c>26,this.words[c+u]=67108863&r;if(0===h)return this._strip();for(M(-1===h),h=0,c=0;c>26,this.words[c]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,i){var u,d=this.clone(),c=e,r=0|c.words[c.length-1];0!=(u=26-this._countBits(r))&&(c=c.ushln(u),d.iushln(u),r=0|c.words[c.length-1]);var T,F=d.length-c.length;if("mod"!==i){(T=new o(null)).length=F+1,T.words=new Array(T.length);for(var H=0;H=0;Ae--){var fe=67108864*(0|d.words[c.length+Ae])+(0|d.words[c.length+Ae-1]);for(fe=Math.min(fe/r|0,67108863),d._ishlnsubmul(c,fe,Ae);0!==d.negative;)fe--,d.negative=0,d._ishlnsubmul(c,1,Ae),d.isZero()||(d.negative^=1);T&&(T.words[Ae]=fe)}return T&&T._strip(),d._strip(),"div"!==i&&0!==u&&d.iushrn(u),{div:T||null,mod:d}},o.prototype.divmod=function(e,i,u){return M(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(r=this.neg().divmod(e,i),"mod"!==i&&(d=r.div.neg()),"div"!==i&&(c=r.mod.neg(),u&&0!==c.negative&&c.iadd(e)),{div:d,mod:c}):0===this.negative&&0!==e.negative?(r=this.divmod(e.neg(),i),"mod"!==i&&(d=r.div.neg()),{div:d,mod:r.mod}):0!=(this.negative&e.negative)?(r=this.neg().divmod(e.neg(),i),"div"!==i&&(c=r.mod.neg(),u&&0!==c.negative&&c.isub(e)),{div:r.div,mod:c}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===i?{div:this.divn(e.words[0]),mod:null}:"mod"===i?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,i);var d,c,r},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var i=this.divmod(e);if(i.mod.isZero())return i.div;var u=0!==i.div.negative?i.mod.isub(e):i.mod,d=e.ushrn(1),c=e.andln(1),r=u.cmp(d);return r<0||1===c&&0===r?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},o.prototype.modrn=function(e){var i=e<0;i&&(e=-e),M(e<=67108863);for(var u=(1<<26)%e,d=0,c=this.length-1;c>=0;c--)d=(u*d+(0|this.words[c]))%e;return i?-d:d},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var i=e<0;i&&(e=-e),M(e<=67108863);for(var u=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*u;this.words[d]=c/e|0,u=c%e}return this._strip(),i?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){M(0===e.negative),M(!e.isZero());var i=this,u=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var d=new o(1),c=new o(0),r=new o(0),h=new o(1),F=0;i.isEven()&&u.isEven();)i.iushrn(1),u.iushrn(1),++F;for(var T=u.clone(),H=i.clone();!i.isZero();){for(var ae=0,Ae=1;0==(i.words[0]&Ae)&&ae<26;++ae,Ae<<=1);if(ae>0)for(i.iushrn(ae);ae-- >0;)(d.isOdd()||c.isOdd())&&(d.iadd(T),c.isub(H)),d.iushrn(1),c.iushrn(1);for(var fe=0,Ee=1;0==(u.words[0]&Ee)&&fe<26;++fe,Ee<<=1);if(fe>0)for(u.iushrn(fe);fe-- >0;)(r.isOdd()||h.isOdd())&&(r.iadd(T),h.isub(H)),r.iushrn(1),h.iushrn(1);i.cmp(u)>=0?(i.isub(u),d.isub(r),c.isub(h)):(u.isub(i),r.isub(d),h.isub(c))}return{a:r,b:h,gcd:u.iushln(F)}},o.prototype._invmp=function(e){M(0===e.negative),M(!e.isZero());var ae,i=this,u=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var d=new o(1),c=new o(0),r=u.clone();i.cmpn(1)>0&&u.cmpn(1)>0;){for(var h=0,F=1;0==(i.words[0]&F)&&h<26;++h,F<<=1);if(h>0)for(i.iushrn(h);h-- >0;)d.isOdd()&&d.iadd(r),d.iushrn(1);for(var T=0,H=1;0==(u.words[0]&H)&&T<26;++T,H<<=1);if(T>0)for(u.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(r),c.iushrn(1);i.cmp(u)>=0?(i.isub(u),d.isub(c)):(u.isub(i),c.isub(d))}return(ae=0===i.cmpn(1)?d:c).cmpn(0)<0&&ae.iadd(e),ae},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var i=this.clone(),u=e.clone();i.negative=0,u.negative=0;for(var d=0;i.isEven()&&u.isEven();d++)i.iushrn(1),u.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=i.cmp(u);if(c<0){var r=i;i=u,u=r}else if(0===c||0===u.cmpn(1))break;i.isub(u)}return u.iushln(d)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){M("number"==typeof e);var i=e%26,u=(e-i)/26,d=1<>>26,this.words[r]=h&=67108863}return 0!==c&&(this.words[r]=c,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var u,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)u=1;else{i&&(e=-e),M(e<=67108863,"Number is too big");var d=0|this.words[0];u=d===e?0:de.length)return 1;if(this.length=0;u--){var d=0|this.words[u],c=0|e.words[u];if(d!==c){dc&&(i=1);break}}return i},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new t(e)},o.prototype.toRed=function(e){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return M(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return M(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var K={k256:null,p224:null,p192:null,p25519:null};function Z(s,e){this.name=s,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function Q(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function X(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(s){if("string"==typeof s){var e=o._prime(s);this.m=e.p,this.prime=e}else M(s.gtn(1),"modulus must be greater than 1"),this.m=s,this.prime=null}function a(s){t.call(this,s),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Z.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},Z.prototype.ireduce=function(e){var u,i=e;do{this.split(i,this.tmp),u=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(u>this.n);var d=u0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},Z.prototype.split=function(e,i){e.iushrn(this.n,0,i)},Z.prototype.imulK=function(e){return e.imul(this.k)},P(Q,Z),Q.prototype.split=function(e,i){for(var u=4194303,d=Math.min(e.length,9),c=0;c>>22,r=h}e.words[c-10]=r>>>=22,e.length-=0===r&&e.length>10?10:9},Q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var i=0,u=0;u>>=26,e.words[u]=c,i=d}return 0!==i&&(e.words[e.length++]=i),e},o._prime=function(e){if(K[e])return K[e];var i;if("k256"===e)i=new Q;else if("p224"===e)i=new W;else if("p192"===e)i=new X;else{if("p25519"!==e)throw new Error("Unknown prime "+e);i=new _}return K[e]=i,i},t.prototype._verify1=function(e){M(0===e.negative,"red works only with positives"),M(e.red,"red works only with red numbers")},t.prototype._verify2=function(e,i){M(0==(e.negative|i.negative),"red works only with positives"),M(e.red&&e.red===i.red,"red works only with red numbers")},t.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(g(e,e.umod(this.m)._forceRed(this)),e)},t.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},t.prototype.add=function(e,i){this._verify2(e,i);var u=e.add(i);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},t.prototype.iadd=function(e,i){this._verify2(e,i);var u=e.iadd(i);return u.cmp(this.m)>=0&&u.isub(this.m),u},t.prototype.sub=function(e,i){this._verify2(e,i);var u=e.sub(i);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},t.prototype.isub=function(e,i){this._verify2(e,i);var u=e.isub(i);return u.cmpn(0)<0&&u.iadd(this.m),u},t.prototype.shl=function(e,i){return this._verify1(e),this.imod(e.ushln(i))},t.prototype.imul=function(e,i){return this._verify2(e,i),this.imod(e.imul(i))},t.prototype.mul=function(e,i){return this._verify2(e,i),this.imod(e.mul(i))},t.prototype.isqr=function(e){return this.imul(e,e.clone())},t.prototype.sqr=function(e){return this.mul(e,e)},t.prototype.sqrt=function(e){if(e.isZero())return e.clone();var i=this.m.andln(3);if(M(i%2==1),3===i){var u=this.m.add(new o(1)).iushrn(2);return this.pow(e,u)}for(var d=this.m.subn(1),c=0;!d.isZero()&&0===d.andln(1);)c++,d.iushrn(1);M(!d.isZero());var r=new o(1).toRed(this),h=r.redNeg(),F=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new o(2*T*T).toRed(this);0!==this.pow(T,F).cmp(h);)T.redIAdd(h);for(var H=this.pow(T,d),ae=this.pow(e,d.addn(1).iushrn(1)),Ae=this.pow(e,d),fe=c;0!==Ae.cmp(r);){for(var Ee=Ae,ee=0;0!==Ee.cmp(r);ee++)Ee=Ee.redSqr();M(ee=0;c--){for(var H=i.words[c],ae=T-1;ae>=0;ae--){var Ae=H>>ae&1;r!==d[0]&&(r=this.sqr(r)),0!==Ae||0!==h?(h<<=1,h|=Ae,(4==++F||0===c&&0===ae)&&(r=this.mul(r,d[h]),F=0,h=0)):F=0}T=26}return r},t.prototype.convertTo=function(e){var i=e.umod(this.m);return i===e?i.clone():i},t.prototype.convertFrom=function(e){var i=e.clone();return i.red=null,i},o.mont=function(e){return new a(e)},P(a,t),a.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},a.prototype.convertFrom=function(e){var i=this.imod(e.mul(this.rinv));return i.red=null,i},a.prototype.imul=function(e,i){if(e.isZero()||i.isZero())return e.words[0]=0,e.length=1,e;var u=e.imul(i),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(d).iushrn(this.shift),r=c;return c.cmp(this.m)>=0?r=c.isub(this.m):c.cmpn(0)<0&&(r=c.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(e,i){if(e.isZero()||i.isZero())return new o(0)._forceRed(this);var u=e.mul(i),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(d).iushrn(this.shift),r=c;return c.cmp(this.m)>=0?r=c.isub(this.m):c.cmpn(0)<0&&(r=c.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},34761:(q,k,x)=>{var B;function I(P){this.rand=P}if(q.exports=function(o){return B||(B=new I(null)),B.generate(o)},q.exports.Rand=I,I.prototype.generate=function(o){return this._rand(o)},I.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var w=new Uint8Array(o),S=0;S{var B=x(55859).Buffer;function I(D){B.isBuffer(D)||(D=B.from(D));for(var A=D.length/4|0,g=new Array(A),p=0;p>>24]^m[R>>>16&255]^E[U>>>8&255]^C[255&O]^A[W++],K=y[R>>>24]^m[U>>>16&255]^E[O>>>8&255]^C[255&L]^A[W++],Z=y[U>>>24]^m[O>>>16&255]^E[L>>>8&255]^C[255&R]^A[W++],Q=y[O>>>24]^m[L>>>16&255]^E[R>>>8&255]^C[255&U]^A[W++],L=j,R=K,U=Z,O=Q;return j=(p[L>>>24]<<24|p[R>>>16&255]<<16|p[U>>>8&255]<<8|p[255&O])^A[W++],K=(p[R>>>24]<<24|p[U>>>16&255]<<16|p[O>>>8&255]<<8|p[255&L])^A[W++],Z=(p[U>>>24]<<24|p[O>>>16&255]<<16|p[L>>>8&255]<<8|p[255&R])^A[W++],Q=(p[O>>>24]<<24|p[L>>>16&255]<<16|p[R>>>8&255]<<8|p[255&U])^A[W++],[j>>>=0,K>>>=0,Z>>>=0,Q>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],w=function(){for(var D=new Array(256),A=0;A<256;A++)D[A]=A<128?A<<1:A<<1^283;for(var g=[],p=[],b=[[],[],[],[]],y=[[],[],[],[]],m=0,E=0,C=0;C<256;++C){var L=E^E<<1^E<<2^E<<3^E<<4;g[m]=L=L>>>8^255&L^99,p[L]=m;var R=D[m],U=D[R],O=D[U],j=257*D[L]^16843008*L;b[0][m]=j<<24|j>>>8,b[1][m]=j<<16|j>>>16,b[2][m]=j<<8|j>>>24,b[3][m]=j,y[0][L]=(j=16843009*O^65537*U^257*R^16843008*m)<<24|j>>>8,y[1][L]=j<<16|j>>>16,y[2][L]=j<<8|j>>>24,y[3][L]=j,0===m?m=E=1:(m=R^D[D[D[O^R]]],E^=D[D[E]])}return{SBOX:g,INV_SBOX:p,SUB_MIX:b,INV_SUB_MIX:y}}();function S(D){this._key=I(D),this._reset()}S.blockSize=16,S.keySize=32,S.prototype.blockSize=S.blockSize,S.prototype.keySize=S.keySize,S.prototype._reset=function(){for(var D=this._key,A=D.length,g=A+6,p=4*(g+1),b=[],y=0;y>>24)>>>24]<<24|w.SBOX[m>>>16&255]<<16|w.SBOX[m>>>8&255]<<8|w.SBOX[255&m],m^=o[y/A|0]<<24):A>6&&y%A==4&&(m=w.SBOX[m>>>24]<<24|w.SBOX[m>>>16&255]<<16|w.SBOX[m>>>8&255]<<8|w.SBOX[255&m]),b[y]=b[y-A]^m}for(var E=[],C=0;C>>24]]^w.INV_SUB_MIX[1][w.SBOX[R>>>16&255]]^w.INV_SUB_MIX[2][w.SBOX[R>>>8&255]]^w.INV_SUB_MIX[3][w.SBOX[255&R]]}this._nRounds=g,this._keySchedule=b,this._invKeySchedule=E},S.prototype.encryptBlockRaw=function(D){return P(D=I(D),this._keySchedule,w.SUB_MIX,w.SBOX,this._nRounds)},S.prototype.encryptBlock=function(D){var A=this.encryptBlockRaw(D),g=B.allocUnsafe(16);return g.writeUInt32BE(A[0],0),g.writeUInt32BE(A[1],4),g.writeUInt32BE(A[2],8),g.writeUInt32BE(A[3],12),g},S.prototype.decryptBlock=function(D){var A=(D=I(D))[1];D[1]=D[3],D[3]=A;var g=P(D,this._invKeySchedule,w.INV_SUB_MIX,w.INV_SBOX,this._nRounds),p=B.allocUnsafe(16);return p.writeUInt32BE(g[0],0),p.writeUInt32BE(g[3],4),p.writeUInt32BE(g[2],8),p.writeUInt32BE(g[1],12),p},S.prototype.scrub=function(){M(this._keySchedule),M(this._invKeySchedule),M(this._key)},q.exports.AES=S},90295:(q,k,x)=>{var B=x(30875),I=x(55859).Buffer,M=x(65834),P=x(59879),o=x(24504),w=x(33910),S=x(61643);function g(p,b,y,m){M.call(this);var E=I.alloc(4,0);this._cipher=new B.AES(b);var C=this._cipher.encryptBlock(E);this._ghash=new o(C),y=function A(p,b,y){if(12===b.length)return p._finID=I.concat([b,I.from([0,0,0,1])]),I.concat([b,I.from([0,0,0,2])]);var m=new o(y),E=b.length,C=E%16;m.update(b),C&&m.update(I.alloc(C=16-C,0)),m.update(I.alloc(8,0));var L=8*E,R=I.alloc(8);R.writeUIntBE(L,0,8),m.update(R),p._finID=m.state;var U=I.from(p._finID);return S(U),U}(this,y,C),this._prev=I.from(y),this._cache=I.allocUnsafe(0),this._secCache=I.allocUnsafe(0),this._decrypt=m,this._alen=0,this._len=0,this._mode=p,this._authTag=null,this._called=!1}P(g,M),g.prototype._update=function(p){if(!this._called&&this._alen){var b=16-this._alen%16;b<16&&(b=I.alloc(b,0),this._ghash.update(b))}this._called=!0;var y=this._mode.encrypt(this,p);return this._ghash.update(this._decrypt?p:y),this._len+=p.length,y},g.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var p=w(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function D(p,b){var y=0;p.length!==b.length&&y++;for(var m=Math.min(p.length,b.length),E=0;E{var B=x(66481),I=x(63617),M=x(44946);k.createCipher=k.Cipher=B.createCipher,k.createCipheriv=k.Cipheriv=B.createCipheriv,k.createDecipher=k.Decipher=I.createDecipher,k.createDecipheriv=k.Decipheriv=I.createDecipheriv,k.listCiphers=k.getCiphers=function P(){return Object.keys(M)}},63617:(q,k,x)=>{var B=x(90295),I=x(55859).Buffer,M=x(49396),P=x(49223),o=x(65834),w=x(30875),S=x(92367);function A(m,E,C){o.call(this),this._cache=new g,this._last=void 0,this._cipher=new w.AES(E),this._prev=I.from(C),this._mode=m,this._autopadding=!0}function g(){this.cache=I.allocUnsafe(0)}function b(m,E,C){var L=M[m.toLowerCase()];if(!L)throw new TypeError("invalid suite type");if("string"==typeof C&&(C=I.from(C)),"GCM"!==L.mode&&C.length!==L.iv)throw new TypeError("invalid iv length "+C.length);if("string"==typeof E&&(E=I.from(E)),E.length!==L.key/8)throw new TypeError("invalid key length "+E.length);return"stream"===L.type?new P(L.module,E,C,!0):"auth"===L.type?new B(L.module,E,C,!0):new A(L.module,E,C)}x(59879)(A,o),A.prototype._update=function(m){this._cache.add(m);for(var E,C,L=[];E=this._cache.get(this._autopadding);)C=this._mode.decrypt(this,E),L.push(C);return I.concat(L)},A.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return function p(m){var E=m[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var C=-1;++C16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E}else if(this.cache.length>=16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E;return null},g.prototype.flush=function(){if(this.cache.length)return this.cache},k.createDecipher=function y(m,E){var C=M[m.toLowerCase()];if(!C)throw new TypeError("invalid suite type");var L=S(E,!1,C.key,C.iv);return b(m,L.key,L.iv)},k.createDecipheriv=b},66481:(q,k,x)=>{var B=x(49396),I=x(90295),M=x(55859).Buffer,P=x(49223),o=x(65834),w=x(30875),S=x(92367);function A(m,E,C){o.call(this),this._cache=new p,this._cipher=new w.AES(E),this._prev=M.from(C),this._mode=m,this._autopadding=!0}x(59879)(A,o),A.prototype._update=function(m){this._cache.add(m);for(var E,C,L=[];E=this._cache.get();)C=this._mode.encrypt(this,E),L.push(C);return M.concat(L)};var g=M.alloc(16,16);function p(){this.cache=M.allocUnsafe(0)}function b(m,E,C){var L=B[m.toLowerCase()];if(!L)throw new TypeError("invalid suite type");if("string"==typeof E&&(E=M.from(E)),E.length!==L.key/8)throw new TypeError("invalid key length "+E.length);if("string"==typeof C&&(C=M.from(C)),"GCM"!==L.mode&&C.length!==L.iv)throw new TypeError("invalid iv length "+C.length);return"stream"===L.type?new P(L.module,E,C):"auth"===L.type?new I(L.module,E,C):new A(L.module,E,C)}A.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return m=this._mode.encrypt(this,m),this._cipher.scrub(),m;if(!m.equals(g))throw this._cipher.scrub(),new Error("data not multiple of block length")},A.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},p.prototype.add=function(m){this.cache=M.concat([this.cache,m])},p.prototype.get=function(){if(this.cache.length>15){var m=this.cache.slice(0,16);return this.cache=this.cache.slice(16),m}return null},p.prototype.flush=function(){for(var m=16-this.cache.length,E=M.allocUnsafe(m),C=-1;++C{var B=x(55859).Buffer,I=B.alloc(16,0);function P(w){var S=B.allocUnsafe(16);return S.writeUInt32BE(w[0]>>>0,0),S.writeUInt32BE(w[1]>>>0,4),S.writeUInt32BE(w[2]>>>0,8),S.writeUInt32BE(w[3]>>>0,12),S}function o(w){this.h=w,this.state=B.alloc(16,0),this.cache=B.allocUnsafe(0)}o.prototype.ghash=function(w){for(var S=-1;++S0;D--)w[D]=w[D]>>>1|(1&w[D-1])<<31;w[0]=w[0]>>>1,g&&(w[0]=w[0]^225<<24)}this.state=P(S)},o.prototype.update=function(w){this.cache=B.concat([this.cache,w]);for(var S;this.cache.length>=16;)S=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(S)},o.prototype.final=function(w,S){return this.cache.length&&this.ghash(B.concat([this.cache,I],16)),this.ghash(P([0,w,0,S])),this.state},q.exports=o},61643:q=>{q.exports=function k(x){for(var I,B=x.length;B--;){if(255!==(I=x.readUInt8(B))){I++,x.writeUInt8(I,B);break}x.writeUInt8(0,B)}}},64552:(q,k,x)=>{var B=x(33910);k.encrypt=function(I,M){var P=B(M,I._prev);return I._prev=I._cipher.encryptBlock(P),I._prev},k.decrypt=function(I,M){var P=I._prev;I._prev=M;var o=I._cipher.decryptBlock(M);return B(o,P)}},97606:(q,k,x)=>{var B=x(55859).Buffer,I=x(33910);function M(P,o,w){var S=o.length,D=I(o,P._cache);return P._cache=P._cache.slice(S),P._prev=B.concat([P._prev,w?o:D]),D}k.encrypt=function(P,o,w){for(var D,S=B.allocUnsafe(0);o.length;){if(0===P._cache.length&&(P._cache=P._cipher.encryptBlock(P._prev),P._prev=B.allocUnsafe(0)),!(P._cache.length<=o.length)){S=B.concat([S,M(P,o,w)]);break}S=B.concat([S,M(P,o.slice(0,D=P._cache.length),w)]),o=o.slice(D)}return S}},47850:(q,k,x)=>{var B=x(55859).Buffer;function I(P,o,w){for(var p,b,D=-1,g=0;++D<8;)g+=(128&(b=P._cipher.encryptBlock(P._prev)[0]^(p=o&1<<7-D?128:0)))>>D%8,P._prev=M(P._prev,w?p:b);return g}function M(P,o){var w=P.length,S=-1,D=B.allocUnsafe(P.length);for(P=B.concat([P,B.from([o])]);++S>7;return D}k.encrypt=function(P,o,w){for(var S=o.length,D=B.allocUnsafe(S),A=-1;++A{var B=x(55859).Buffer;function I(M,P,o){var S=M._cipher.encryptBlock(M._prev)[0]^P;return M._prev=B.concat([M._prev.slice(1),B.from([o?P:S])]),S}k.encrypt=function(M,P,o){for(var w=P.length,S=B.allocUnsafe(w),D=-1;++D{var B=x(33910),I=x(55859).Buffer,M=x(61643);function P(w){var S=w._cipher.encryptBlockRaw(w._prev);return M(w._prev),S}k.encrypt=function(w,S){var D=Math.ceil(S.length/16),A=w._cache.length;w._cache=I.concat([w._cache,I.allocUnsafe(16*D)]);for(var g=0;g{k.encrypt=function(x,B){return x._cipher.encryptBlock(B)},k.decrypt=function(x,B){return x._cipher.decryptBlock(B)}},49396:(q,k,x)=>{var B={ECB:x(48562),CBC:x(64552),CFB:x(97606),CFB8:x(56377),CFB1:x(47850),OFB:x(87461),CTR:x(29306),GCM:x(29306)},I=x(44946);for(var M in I)I[M].module=B[I[M].mode];q.exports=I},87461:(q,k,x)=>{var B=x(33910);function I(M){return M._prev=M._cipher.encryptBlock(M._prev),M._prev}k.encrypt=function(M,P){for(;M._cache.length{var B=x(30875),I=x(55859).Buffer,M=x(65834);function o(w,S,D,A){M.call(this),this._cipher=new B.AES(S),this._prev=I.from(D),this._cache=I.allocUnsafe(0),this._secCache=I.allocUnsafe(0),this._decrypt=A,this._mode=w}x(59879)(o,M),o.prototype._update=function(w){return this._mode.encrypt(this,w,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},q.exports=o},37991:(q,k,x)=>{var B=x(33796),I=x(39586),M=x(49396),P=x(83908),o=x(92367);function D(p,b,y){if(p=p.toLowerCase(),M[p])return I.createCipheriv(p,b,y);if(P[p])return new B({key:b,iv:y,mode:p});throw new TypeError("invalid suite type")}function A(p,b,y){if(p=p.toLowerCase(),M[p])return I.createDecipheriv(p,b,y);if(P[p])return new B({key:b,iv:y,mode:p,decrypt:!0});throw new TypeError("invalid suite type")}k.createCipher=k.Cipher=function w(p,b){var y,m;if(p=p.toLowerCase(),M[p])y=M[p].key,m=M[p].iv;else{if(!P[p])throw new TypeError("invalid suite type");y=8*P[p].key,m=P[p].iv}var E=o(b,!1,y,m);return D(p,E.key,E.iv)},k.createCipheriv=k.Cipheriv=D,k.createDecipher=k.Decipher=function S(p,b){var y,m;if(p=p.toLowerCase(),M[p])y=M[p].key,m=M[p].iv;else{if(!P[p])throw new TypeError("invalid suite type");y=8*P[p].key,m=P[p].iv}var E=o(b,!1,y,m);return A(p,E.key,E.iv)},k.createDecipheriv=k.Decipheriv=A,k.listCiphers=k.getCiphers=function g(){return Object.keys(P).concat(I.getCiphers())}},33796:(q,k,x)=>{var B=x(65834),I=x(68534),M=x(59879),P=x(55859).Buffer,o={"des-ede3-cbc":I.CBC.instantiate(I.EDE),"des-ede3":I.EDE,"des-ede-cbc":I.CBC.instantiate(I.EDE),"des-ede":I.EDE,"des-cbc":I.CBC.instantiate(I.DES),"des-ecb":I.DES};function w(S){B.call(this);var g,D=S.mode.toLowerCase(),A=o[D];g=S.decrypt?"decrypt":"encrypt";var p=S.key;P.isBuffer(p)||(p=P.from(p)),("des-ede"===D||"des-ede-cbc"===D)&&(p=P.concat([p,p.slice(0,8)]));var b=S.iv;P.isBuffer(b)||(b=P.from(b)),this._des=A.create({key:p,iv:b,type:g})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],q.exports=w,M(w,B),w.prototype._update=function(S){return P.from(this._des.update(S))},w.prototype._final=function(){return P.from(this._des.final())}},83908:(q,k)=>{k["des-ecb"]={key:8,iv:0},k["des-cbc"]=k.des={key:8,iv:8},k["des-ede3-cbc"]=k.des3={key:24,iv:8},k["des-ede3"]={key:24,iv:0},k["des-ede-cbc"]={key:16,iv:8},k["des-ede"]={key:16,iv:0}},85842:(q,k,x)=>{var B=x(62630),I=x(16589);function P(w){var D,S=w.modulus.byteLength();do{D=new B(I(S))}while(D.cmp(w.modulus)>=0||!D.umod(w.prime1)||!D.umod(w.prime2));return D}function o(w,S){var D=function M(w){var S=P(w);return{blinder:S.toRed(B.mont(w.modulus)).redPow(new B(w.publicExponent)).fromRed(),unblinder:S.invm(w.modulus)}}(S),A=S.modulus.byteLength(),g=new B(w).mul(D.blinder).umod(S.modulus),p=g.toRed(B.mont(S.prime1)),b=g.toRed(B.mont(S.prime2)),y=S.coefficient,m=S.prime1,E=S.prime2,C=p.redPow(S.exponent1).fromRed(),L=b.redPow(S.exponent2).fromRed(),R=C.isub(L).imul(y).umod(m).imul(E);return L.iadd(R).imul(D.unblinder).umod(S.modulus).toArrayLike(Buffer,"be",A)}o.getr=P,q.exports=o},6380:(q,k,x)=>{q.exports=x(8770)},23566:(q,k,x)=>{var B=x(55859).Buffer,I=x(12506),M=x(18300),P=x(59879),o=x(7052),w=x(48022),S=x(8770);function D(b){M.Writable.call(this);var y=S[b];if(!y)throw new Error("Unknown message digest");this._hashType=y.hash,this._hash=I(y.hash),this._tag=y.id,this._signType=y.sign}function A(b){M.Writable.call(this);var y=S[b];if(!y)throw new Error("Unknown message digest");this._hash=I(y.hash),this._tag=y.id,this._signType=y.sign}function g(b){return new D(b)}function p(b){return new A(b)}Object.keys(S).forEach(function(b){S[b].id=B.from(S[b].id,"hex"),S[b.toLowerCase()]=S[b]}),P(D,M.Writable),D.prototype._write=function(y,m,E){this._hash.update(y),E()},D.prototype.update=function(y,m){return"string"==typeof y&&(y=B.from(y,m)),this._hash.update(y),this},D.prototype.sign=function(y,m){this.end();var E=this._hash.digest(),C=o(E,y,this._hashType,this._signType,this._tag);return m?C.toString(m):C},P(A,M.Writable),A.prototype._write=function(y,m,E){this._hash.update(y),E()},A.prototype.update=function(y,m){return"string"==typeof y&&(y=B.from(y,m)),this._hash.update(y),this},A.prototype.verify=function(y,m,E){"string"==typeof m&&(m=B.from(m,E)),this.end();var C=this._hash.digest();return w(m,C,y,this._signType,this._tag)},q.exports={Sign:g,Verify:p,createSign:g,createVerify:p}},7052:(q,k,x)=>{var B=x(55859).Buffer,I=x(85903),M=x(85842),P=x(5247).ec,o=x(62630),w=x(81997),S=x(1308);function b(L,R,U,O){if((L=B.from(L.toArray())).length0&&U.ishrn(O),U}function E(L,R,U){var O,j;do{for(O=B.alloc(0);8*O.length{var B=x(55859).Buffer,I=x(62630),M=x(5247).ec,P=x(81997),o=x(1308);function A(g,p){if(g.cmpn(0)<=0)throw new Error("invalid sig");if(g.cmp(p)>=p)throw new Error("invalid sig")}q.exports=function w(g,p,b,y,m){var E=P(b);if("ec"===E.type){if("ecdsa"!==y&&"ecdsa/rsa"!==y)throw new Error("wrong public key type");return function S(g,p,b){var y=o[b.data.algorithm.curve.join(".")];if(!y)throw new Error("unknown curve "+b.data.algorithm.curve.join("."));return new M(y).verify(p,g,b.data.subjectPrivateKey.data)}(g,p,E)}if("dsa"===E.type){if("dsa"!==y)throw new Error("wrong public key type");return function D(g,p,b){var y=b.data.p,m=b.data.q,E=b.data.g,C=b.data.pub_key,L=P.signature.decode(g,"der"),R=L.s,U=L.r;A(R,m),A(U,m);var O=I.mont(y),j=R.invm(m);return 0===E.toRed(O).redPow(new I(p).mul(j).mod(m)).fromRed().mul(C.toRed(O).redPow(U.mul(j).mod(m)).fromRed()).mod(y).mod(m).cmp(U)}(g,p,E)}if("rsa"!==y&&"ecdsa/rsa"!==y)throw new Error("wrong public key type");p=B.concat([m,p]);for(var C=E.modulus.byteLength(),L=[1],R=0;p.length+L.length+2{q.exports=function(x,B){for(var I=Math.min(x.length,B.length),M=new Buffer(I),P=0;P{"use strict";const B=x(96434),I=x(12658),M="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;k.Buffer=S,k.SlowBuffer=function R(Y){return+Y!=Y&&(Y=0),S.alloc(+Y)},k.INSPECT_MAX_BYTES=50;const P=2147483647;function w(Y){if(Y>P)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const z=new Uint8Array(Y);return Object.setPrototypeOf(z,S.prototype),z}function S(Y,z,G){if("number"==typeof Y){if("string"==typeof z)throw new TypeError('The "string" argument must be of type string. Received type number');return p(Y)}return D(Y,z,G)}function D(Y,z,G){if("string"==typeof Y)return function b(Y,z){if(("string"!=typeof z||""===z)&&(z="utf8"),!S.isEncoding(z))throw new TypeError("Unknown encoding: "+z);const G=0|U(Y,z);let re=w(G);const ce=re.write(Y,z);return ce!==G&&(re=re.slice(0,ce)),re}(Y,z);if(ArrayBuffer.isView(Y))return function m(Y){if(He(Y,Uint8Array)){const z=new Uint8Array(Y);return E(z.buffer,z.byteOffset,z.byteLength)}return y(Y)}(Y);if(null==Y)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(He(Y,ArrayBuffer)||Y&&He(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(Y,SharedArrayBuffer)||Y&&He(Y.buffer,SharedArrayBuffer)))return E(Y,z,G);if("number"==typeof Y)throw new TypeError('The "value" argument must not be of type number. Received type number');const re=Y.valueOf&&Y.valueOf();if(null!=re&&re!==Y)return S.from(re,z,G);const ce=function C(Y){if(S.isBuffer(Y)){const z=0|L(Y.length),G=w(z);return 0===G.length||Y.copy(G,0,0,z),G}return void 0!==Y.length?"number"!=typeof Y.length||Ue(Y.length)?w(0):y(Y):"Buffer"===Y.type&&Array.isArray(Y.data)?y(Y.data):void 0}(Y);if(ce)return ce;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Y[Symbol.toPrimitive])return S.from(Y[Symbol.toPrimitive]("string"),z,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}function A(Y){if("number"!=typeof Y)throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function p(Y){return A(Y),w(Y<0?0:0|L(Y))}function y(Y){const z=Y.length<0?0:0|L(Y.length),G=w(z);for(let re=0;re=P)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P.toString(16)+" bytes");return 0|Y}function U(Y,z){if(S.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||He(Y,ArrayBuffer))return Y.byteLength;if("string"!=typeof Y)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const G=Y.length,re=arguments.length>2&&!0===arguments[2];if(!re&&0===G)return 0;let ce=!1;for(;;)switch(z){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return Et(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return Lt(Y).length;default:if(ce)return re?-1:Et(Y).length;z=(""+z).toLowerCase(),ce=!0}}function O(Y,z,G){let re=!1;if((void 0===z||z<0)&&(z=0),z>this.length||((void 0===G||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(z>>>=0))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return c(this,z,G);case"utf8":case"utf-8":return s(this,z,G);case"ascii":return u(this,z,G);case"latin1":case"binary":return d(this,z,G);case"base64":return a(this,z,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,z,G);default:if(re)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),re=!0}}function j(Y,z,G){const re=Y[z];Y[z]=Y[G],Y[G]=re}function K(Y,z,G,re,ce){if(0===Y.length)return-1;if("string"==typeof G?(re=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),Ue(G=+G)&&(G=ce?0:Y.length-1),G<0&&(G=Y.length+G),G>=Y.length){if(ce)return-1;G=Y.length-1}else if(G<0){if(!ce)return-1;G=0}if("string"==typeof z&&(z=S.from(z,re)),S.isBuffer(z))return 0===z.length?-1:Z(Y,z,G,re,ce);if("number"==typeof z)return z&=255,"function"==typeof Uint8Array.prototype.indexOf?ce?Uint8Array.prototype.indexOf.call(Y,z,G):Uint8Array.prototype.lastIndexOf.call(Y,z,G):Z(Y,[z],G,re,ce);throw new TypeError("val must be string, number or Buffer")}function Z(Y,z,G,re,ce){let xe,Ge=1,De=Y.length,we=z.length;if(void 0!==re&&("ucs2"===(re=String(re).toLowerCase())||"ucs-2"===re||"utf16le"===re||"utf-16le"===re)){if(Y.length<2||z.length<2)return-1;Ge=2,De/=2,we/=2,G/=2}function Oe(te,le){return 1===Ge?te[le]:te.readUInt16BE(le*Ge)}if(ce){let te=-1;for(xe=G;xeDe&&(G=De-we),xe=G;xe>=0;xe--){let te=!0;for(let le=0;lece&&(re=ce):re=ce;const Ge=z.length;let De;for(re>Ge/2&&(re=Ge/2),De=0;De>8,ce=G%256,Ge.push(ce),Ge.push(re);return Ge}(z,Y.length-G),Y,G,re)}function a(Y,z,G){return B.fromByteArray(0===z&&G===Y.length?Y:Y.slice(z,G))}function s(Y,z,G){G=Math.min(Y.length,G);const re=[];let ce=z;for(;ce239?4:Ge>223?3:Ge>191?2:1;if(ce+we<=G){let Oe,xe,te,le;switch(we){case 1:Ge<128&&(De=Ge);break;case 2:Oe=Y[ce+1],128==(192&Oe)&&(le=(31&Ge)<<6|63&Oe,le>127&&(De=le));break;case 3:Oe=Y[ce+1],xe=Y[ce+2],128==(192&Oe)&&128==(192&xe)&&(le=(15&Ge)<<12|(63&Oe)<<6|63&xe,le>2047&&(le<55296||le>57343)&&(De=le));break;case 4:Oe=Y[ce+1],xe=Y[ce+2],te=Y[ce+3],128==(192&Oe)&&128==(192&xe)&&128==(192&te)&&(le=(15&Ge)<<18|(63&Oe)<<12|(63&xe)<<6|63&te,le>65535&&le<1114112&&(De=le))}}null===De?(De=65533,we=1):De>65535&&(De-=65536,re.push(De>>>10&1023|55296),De=56320|1023&De),re.push(De),ce+=we}return function i(Y){const z=Y.length;if(z<=e)return String.fromCharCode.apply(String,Y);let G="",re=0;for(;rece.length?(S.isBuffer(De)||(De=S.from(De)),De.copy(ce,Ge)):Uint8Array.prototype.set.call(ce,De,Ge);else{if(!S.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(ce,Ge)}Ge+=De.length}return ce},S.byteLength=U,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;GG&&(z+=" ... "),""},M&&(S.prototype[M]=S.prototype.inspect),S.prototype.compare=function(z,G,re,ce,Ge){if(He(z,Uint8Array)&&(z=S.from(z,z.offset,z.byteLength)),!S.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(void 0===G&&(G=0),void 0===re&&(re=z?z.length:0),void 0===ce&&(ce=0),void 0===Ge&&(Ge=this.length),G<0||re>z.length||ce<0||Ge>this.length)throw new RangeError("out of range index");if(ce>=Ge&&G>=re)return 0;if(ce>=Ge)return-1;if(G>=re)return 1;if(this===z)return 0;let De=(Ge>>>=0)-(ce>>>=0),we=(re>>>=0)-(G>>>=0);const Oe=Math.min(De,we),xe=this.slice(ce,Ge),te=z.slice(G,re);for(let le=0;le>>=0,isFinite(re)?(re>>>=0,void 0===ce&&(ce="utf8")):(ce=re,re=void 0)}const Ge=this.length-G;if((void 0===re||re>Ge)&&(re=Ge),z.length>0&&(re<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let De=!1;for(;;)switch(ce){case"hex":return Q(this,z,G,re);case"utf8":case"utf-8":return W(this,z,G,re);case"ascii":case"latin1":case"binary":return X(this,z,G,re);case"base64":return _(this,z,G,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,z,G,re);default:if(De)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),De=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const e=4096;function u(Y,z,G){let re="";G=Math.min(Y.length,G);for(let ce=z;cere)&&(G=re);let ce="";for(let Ge=z;GeG)throw new RangeError("Trying to access beyond buffer length")}function F(Y,z,G,re,ce,Ge){if(!S.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>ce||zY.length)throw new RangeError("Index out of range")}function T(Y,z,G,re,ce){ye(z,re,ce,Y,G,7);let Ge=Number(z&BigInt(4294967295));Y[G++]=Ge,Ge>>=8,Y[G++]=Ge,Ge>>=8,Y[G++]=Ge,Ge>>=8,Y[G++]=Ge;let De=Number(z>>BigInt(32)&BigInt(4294967295));return Y[G++]=De,De>>=8,Y[G++]=De,De>>=8,Y[G++]=De,De>>=8,Y[G++]=De,G}function H(Y,z,G,re,ce){ye(z,re,ce,Y,G,7);let Ge=Number(z&BigInt(4294967295));Y[G+7]=Ge,Ge>>=8,Y[G+6]=Ge,Ge>>=8,Y[G+5]=Ge,Ge>>=8,Y[G+4]=Ge;let De=Number(z>>BigInt(32)&BigInt(4294967295));return Y[G+3]=De,De>>=8,Y[G+2]=De,De>>=8,Y[G+1]=De,De>>=8,Y[G]=De,G+8}function ae(Y,z,G,re,ce,Ge){if(G+re>Y.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function Ae(Y,z,G,re,ce){return z=+z,G>>>=0,ce||ae(Y,0,G,4),I.write(Y,z,G,re,23,4),G+4}function fe(Y,z,G,re,ce){return z=+z,G>>>=0,ce||ae(Y,0,G,8),I.write(Y,z,G,re,52,8),G+8}S.prototype.slice=function(z,G){const re=this.length;(z=~~z)<0?(z+=re)<0&&(z=0):z>re&&(z=re),(G=void 0===G?re:~~G)<0?(G+=re)<0&&(G=0):G>re&&(G=re),G>>=0,G>>>=0,re||h(z,G,this.length);let ce=this[z],Ge=1,De=0;for(;++De>>=0,G>>>=0,re||h(z,G,this.length);let ce=this[z+--G],Ge=1;for(;G>0&&(Ge*=256);)ce+=this[z+--G]*Ge;return ce},S.prototype.readUint8=S.prototype.readUInt8=function(z,G){return z>>>=0,G||h(z,1,this.length),this[z]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(z,G){return z>>>=0,G||h(z,2,this.length),this[z]|this[z+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(z,G){return z>>>=0,G||h(z,2,this.length),this[z]<<8|this[z+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(z,G){return z>>>=0,G||h(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+16777216*this[z+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(z,G){return z>>>=0,G||h(z,4,this.length),16777216*this[z]+(this[z+1]<<16|this[z+2]<<8|this[z+3])},S.prototype.readBigUInt64LE=Ve(function(z){ue(z>>>=0,"offset");const G=this[z],re=this[z+7];(void 0===G||void 0===re)&&je(z,this.length-8);const ce=G+256*this[++z]+65536*this[++z]+this[++z]*2**24,Ge=this[++z]+256*this[++z]+65536*this[++z]+re*2**24;return BigInt(ce)+(BigInt(Ge)<>>=0,"offset");const G=this[z],re=this[z+7];(void 0===G||void 0===re)&&je(z,this.length-8);const ce=G*2**24+65536*this[++z]+256*this[++z]+this[++z],Ge=this[++z]*2**24+65536*this[++z]+256*this[++z]+re;return(BigInt(ce)<>>=0,G>>>=0,re||h(z,G,this.length);let ce=this[z],Ge=1,De=0;for(;++De=Ge&&(ce-=Math.pow(2,8*G)),ce},S.prototype.readIntBE=function(z,G,re){z>>>=0,G>>>=0,re||h(z,G,this.length);let ce=G,Ge=1,De=this[z+--ce];for(;ce>0&&(Ge*=256);)De+=this[z+--ce]*Ge;return Ge*=128,De>=Ge&&(De-=Math.pow(2,8*G)),De},S.prototype.readInt8=function(z,G){return z>>>=0,G||h(z,1,this.length),128&this[z]?-1*(255-this[z]+1):this[z]},S.prototype.readInt16LE=function(z,G){z>>>=0,G||h(z,2,this.length);const re=this[z]|this[z+1]<<8;return 32768&re?4294901760|re:re},S.prototype.readInt16BE=function(z,G){z>>>=0,G||h(z,2,this.length);const re=this[z+1]|this[z]<<8;return 32768&re?4294901760|re:re},S.prototype.readInt32LE=function(z,G){return z>>>=0,G||h(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},S.prototype.readInt32BE=function(z,G){return z>>>=0,G||h(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},S.prototype.readBigInt64LE=Ve(function(z){ue(z>>>=0,"offset");const G=this[z],re=this[z+7];return(void 0===G||void 0===re)&&je(z,this.length-8),(BigInt(this[z+4]+256*this[z+5]+65536*this[z+6]+(re<<24))<>>=0,"offset");const G=this[z],re=this[z+7];(void 0===G||void 0===re)&&je(z,this.length-8);const ce=(G<<24)+65536*this[++z]+256*this[++z]+this[++z];return(BigInt(ce)<>>=0,G||h(z,4,this.length),I.read(this,z,!0,23,4)},S.prototype.readFloatBE=function(z,G){return z>>>=0,G||h(z,4,this.length),I.read(this,z,!1,23,4)},S.prototype.readDoubleLE=function(z,G){return z>>>=0,G||h(z,8,this.length),I.read(this,z,!0,52,8)},S.prototype.readDoubleBE=function(z,G){return z>>>=0,G||h(z,8,this.length),I.read(this,z,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(z,G,re,ce){z=+z,G>>>=0,re>>>=0,ce||F(this,z,G,re,Math.pow(2,8*re)-1,0);let Ge=1,De=0;for(this[G]=255&z;++De>>=0,re>>>=0,ce||F(this,z,G,re,Math.pow(2,8*re)-1,0);let Ge=re-1,De=1;for(this[G+Ge]=255&z;--Ge>=0&&(De*=256);)this[G+Ge]=z/De&255;return G+re},S.prototype.writeUint8=S.prototype.writeUInt8=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,1,255,0),this[G]=255&z,G+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,2,65535,0),this[G]=255&z,this[G+1]=z>>>8,G+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,2,65535,0),this[G]=z>>>8,this[G+1]=255&z,G+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,4,4294967295,0),this[G+3]=z>>>24,this[G+2]=z>>>16,this[G+1]=z>>>8,this[G]=255&z,G+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,4,4294967295,0),this[G]=z>>>24,this[G+1]=z>>>16,this[G+2]=z>>>8,this[G+3]=255&z,G+4},S.prototype.writeBigUInt64LE=Ve(function(z,G=0){return T(this,z,G,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=Ve(function(z,G=0){return H(this,z,G,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(z,G,re,ce){if(z=+z,G>>>=0,!ce){const Oe=Math.pow(2,8*re-1);F(this,z,G,re,Oe-1,-Oe)}let Ge=0,De=1,we=0;for(this[G]=255&z;++Ge>0)-we&255;return G+re},S.prototype.writeIntBE=function(z,G,re,ce){if(z=+z,G>>>=0,!ce){const Oe=Math.pow(2,8*re-1);F(this,z,G,re,Oe-1,-Oe)}let Ge=re-1,De=1,we=0;for(this[G+Ge]=255&z;--Ge>=0&&(De*=256);)z<0&&0===we&&0!==this[G+Ge+1]&&(we=1),this[G+Ge]=(z/De>>0)-we&255;return G+re},S.prototype.writeInt8=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,1,127,-128),z<0&&(z=255+z+1),this[G]=255&z,G+1},S.prototype.writeInt16LE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,2,32767,-32768),this[G]=255&z,this[G+1]=z>>>8,G+2},S.prototype.writeInt16BE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,2,32767,-32768),this[G]=z>>>8,this[G+1]=255&z,G+2},S.prototype.writeInt32LE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,4,2147483647,-2147483648),this[G]=255&z,this[G+1]=z>>>8,this[G+2]=z>>>16,this[G+3]=z>>>24,G+4},S.prototype.writeInt32BE=function(z,G,re){return z=+z,G>>>=0,re||F(this,z,G,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[G]=z>>>24,this[G+1]=z>>>16,this[G+2]=z>>>8,this[G+3]=255&z,G+4},S.prototype.writeBigInt64LE=Ve(function(z,G=0){return T(this,z,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=Ve(function(z,G=0){return H(this,z,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(z,G,re){return Ae(this,z,G,!0,re)},S.prototype.writeFloatBE=function(z,G,re){return Ae(this,z,G,!1,re)},S.prototype.writeDoubleLE=function(z,G,re){return fe(this,z,G,!0,re)},S.prototype.writeDoubleBE=function(z,G,re){return fe(this,z,G,!1,re)},S.prototype.copy=function(z,G,re,ce){if(!S.isBuffer(z))throw new TypeError("argument should be a Buffer");if(re||(re=0),!ce&&0!==ce&&(ce=this.length),G>=z.length&&(G=z.length),G||(G=0),ce>0&&ce=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),z.length-G>>=0,re=void 0===re?this.length:re>>>0,z||(z=0),"number"==typeof z)for(Ge=G;Ge=re+4;G-=3)z=`_${Y.slice(G-3,G)}${z}`;return`${Y.slice(0,G)}${z}`}function ye(Y,z,G,re,ce,Ge){if(Y>G||Y3?0===z||z===BigInt(0)?`>= 0${De} and < 2${De} ** ${8*(Ge+1)}${De}`:`>= -(2${De} ** ${8*(Ge+1)-1}${De}) and < 2 ** ${8*(Ge+1)-1}${De}`:`>= ${z}${De} and <= ${G}${De}`,new Ee.ERR_OUT_OF_RANGE("value",we,Y)}!function ze(Y,z,G){ue(z,"offset"),(void 0===Y[z]||void 0===Y[z+G])&&je(z,Y.length-(G+1))}(re,ce,Ge)}function ue(Y,z){if("number"!=typeof Y)throw new Ee.ERR_INVALID_ARG_TYPE(z,"number",Y)}function je(Y,z,G){throw Math.floor(Y)!==Y?(ue(Y,G),new Ee.ERR_OUT_OF_RANGE(G||"offset","an integer",Y)):z<0?new Ee.ERR_BUFFER_OUT_OF_BOUNDS:new Ee.ERR_OUT_OF_RANGE(G||"offset",`>= ${G?1:0} and <= ${z}`,Y)}ee("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){return Y?`${Y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ee("ERR_INVALID_ARG_TYPE",function(Y,z){return`The "${Y}" argument must be of type number. Received type ${typeof z}`},TypeError),ee("ERR_OUT_OF_RANGE",function(Y,z,G){let re=`The value of "${Y}" is out of range.`,ce=G;return Number.isInteger(G)&&Math.abs(G)>2**32?ce=se(String(G)):"bigint"==typeof G&&(ce=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(ce=se(ce)),ce+="n"),re+=` It must be ${z}. Received ${ce}`,re},RangeError);const Ne=/[^+/0-9A-Za-z-_]/g;function Et(Y,z){let G;z=z||1/0;const re=Y.length;let ce=null;const Ge=[];for(let De=0;De55295&&G<57344){if(!ce){if(G>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}if(De+1===re){(z-=3)>-1&&Ge.push(239,191,189);continue}ce=G;continue}if(G<56320){(z-=3)>-1&&Ge.push(239,191,189),ce=G;continue}G=65536+(ce-55296<<10|G-56320)}else ce&&(z-=3)>-1&&Ge.push(239,191,189);if(ce=null,G<128){if((z-=1)<0)break;Ge.push(G)}else if(G<2048){if((z-=2)<0)break;Ge.push(G>>6|192,63&G|128)}else if(G<65536){if((z-=3)<0)break;Ge.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((z-=4)<0)break;Ge.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return Ge}function Lt(Y){return B.toByteArray(function Ye(Y){if((Y=(Y=Y.split("=")[0]).trim().replace(Ne,"")).length<2)return"";for(;Y.length%4!=0;)Y+="=";return Y}(Y))}function ct(Y,z,G,re){let ce;for(ce=0;ce=z.length||ce>=Y.length);++ce)z[ce+G]=Y[ce];return ce}function He(Y,z){return Y instanceof z||null!=Y&&null!=Y.constructor&&null!=Y.constructor.name&&Y.constructor.name===z.name}function Ue(Y){return Y!=Y}const Se=function(){const Y="0123456789abcdef",z=new Array(256);for(let G=0;G<16;++G){const re=16*G;for(let ce=0;ce<16;++ce)z[re+ce]=Y[G]+Y[ce]}return z}();function Ve(Y){return typeof BigInt>"u"?Le:Y}function Le(){throw new Error("BigInt not supported")}},65834:(q,k,x)=>{var B=x(55859).Buffer,I=x(36917).Transform,M=x(32519).s;function o(w){I.call(this),this.hashMode="string"==typeof w,this.hashMode?this[w]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}x(59879)(o,I),o.prototype.update=function(w,S,D){"string"==typeof w&&(w=B.from(w,S));var A=this._update(w);return this.hashMode?this:(D&&(A=this._toString(A,D)),A)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(w,S,D){var A;try{this.hashMode?this._update(w):this.push(this._update(w))}catch(g){A=g}finally{D(A)}},o.prototype._flush=function(w){var S;try{this.push(this.__final())}catch(D){S=D}w(S)},o.prototype._finalOrDigest=function(w){var S=this.__final()||B.alloc(0);return w&&(S=this._toString(S,w,!0)),S},o.prototype._toString=function(w,S,D){if(this._decoder||(this._decoder=new M(S),this._encoding=S),this._encoding!==S)throw new Error("can't switch encodings");var A=this._decoder.write(w);return D&&(A+=this._decoder.end()),A},q.exports=o},84892:(q,k,x)=>{var B=x(5247),I=x(96479);q.exports=function(S){return new P(S)};var M={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function P(w){this.curveType=M[w],this.curveType||(this.curveType={name:w}),this.curve=new B.ec(this.curveType.name),this.keys=void 0}function o(w,S,D){Array.isArray(w)||(w=w.toArray());var A=new Buffer(w);if(D&&A.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},12506:(q,k,x)=>{"use strict";var B=x(59879),I=x(53264),M=x(75207),P=x(45829),o=x(65834);function w(S){o.call(this,"digest"),this._hash=S}B(w,o),w.prototype._update=function(S){this._hash.update(S)},w.prototype._final=function(){return this._hash.digest()},q.exports=function(D){return"md5"===(D=D.toLowerCase())?new I:"rmd160"===D||"ripemd160"===D?new M:new w(P(D))}},84464:(q,k,x)=>{var B=x(53264);q.exports=function(I){return(new B).update(I).digest()}},85903:(q,k,x)=>{"use strict";var B=x(59879),I=x(43715),M=x(65834),P=x(55859).Buffer,o=x(84464),w=x(75207),S=x(45829),D=P.alloc(128);function A(g,p){M.call(this,"digest"),"string"==typeof p&&(p=P.from(p));var b="sha512"===g||"sha384"===g?128:64;this._alg=g,this._key=p,p.length>b?p=("rmd160"===g?new w:S(g)).update(p).digest():p.length{"use strict";var B=x(59879),I=x(55859).Buffer,M=x(65834),P=I.alloc(128),o=64;function w(S,D){M.call(this,"digest"),"string"==typeof D&&(D=I.from(D)),this._alg=S,this._key=D,D.length>o?D=S(D):D.length{"use strict";k.randomBytes=k.rng=k.pseudoRandomBytes=k.prng=x(16589),k.createHash=k.Hash=x(12506),k.createHmac=k.Hmac=x(85903);var B=x(6380),I=Object.keys(B),M=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(I);k.getHashes=function(){return M};var P=x(14161);k.pbkdf2=P.pbkdf2,k.pbkdf2Sync=P.pbkdf2Sync;var o=x(37991);k.Cipher=o.Cipher,k.createCipher=o.createCipher,k.Cipheriv=o.Cipheriv,k.createCipheriv=o.createCipheriv,k.Decipher=o.Decipher,k.createDecipher=o.createDecipher,k.Decipheriv=o.Decipheriv,k.createDecipheriv=o.createDecipheriv,k.getCiphers=o.getCiphers,k.listCiphers=o.listCiphers;var w=x(52322);k.DiffieHellmanGroup=w.DiffieHellmanGroup,k.createDiffieHellmanGroup=w.createDiffieHellmanGroup,k.getDiffieHellman=w.getDiffieHellman,k.createDiffieHellman=w.createDiffieHellman,k.DiffieHellman=w.DiffieHellman;var S=x(23566);k.createSign=S.createSign,k.Sign=S.Sign,k.createVerify=S.createVerify,k.Verify=S.Verify,k.createECDH=x(84892);var D=x(37537);k.publicEncrypt=D.publicEncrypt,k.privateEncrypt=D.privateEncrypt,k.publicDecrypt=D.publicDecrypt,k.privateDecrypt=D.privateDecrypt;var A=x(43594);k.randomFill=A.randomFill,k.randomFillSync=A.randomFillSync,k.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},k.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},68534:(q,k,x)=>{"use strict";k.utils=x(86157),k.Cipher=x(82243),k.DES=x(62917),k.CBC=x(78029),k.EDE=x(81082)},78029:(q,k,x)=>{"use strict";var B=x(86055),I=x(59879),M={};function P(w){B.equal(w.length,8,"Invalid IV length"),this.iv=new Array(8);for(var S=0;S{"use strict";var B=x(86055);function I(M){this.options=M,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}q.exports=I,I.prototype._init=function(){},I.prototype.update=function(P){return 0===P.length?[]:"decrypt"===this.type?this._updateDecrypt(P):this._updateEncrypt(P)},I.prototype._buffer=function(P,o){for(var w=Math.min(this.buffer.length-this.bufferOff,P.length-o),S=0;S0;S--)o+=this._buffer(P,o),w+=this._flushBuffer(D,w);return o+=this._buffer(P,o),D},I.prototype.final=function(P){var o,w;return P&&(o=this.update(P)),w="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(w):w},I.prototype._pad=function(P,o){if(0===o)return!1;for(;o{"use strict";var B=x(86055),I=x(59879),M=x(86157),P=x(82243);function o(){this.tmp=new Array(2),this.keys=null}function w(D){P.call(this,D);var A=new o;this._desState=A,this.deriveKeys(A,D.key)}I(w,P),q.exports=w,w.create=function(A){return new w(A)};var S=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];w.prototype.deriveKeys=function(A,g){A.keys=new Array(32),B.equal(g.length,this.blockSize,"Invalid key length");var p=M.readUInt32BE(g,0),b=M.readUInt32BE(g,4);M.pc1(p,b,A.tmp,0),p=A.tmp[0],b=A.tmp[1];for(var y=0;y>>1];p=M.r28shl(p,m),b=M.r28shl(b,m),M.pc2(p,b,A.keys,y)}},w.prototype._update=function(A,g,p,b){var y=this._desState,m=M.readUInt32BE(A,g),E=M.readUInt32BE(A,g+4);M.ip(m,E,y.tmp,0),m=y.tmp[0],E=y.tmp[1],"encrypt"===this.type?this._encrypt(y,m,E,y.tmp,0):this._decrypt(y,m,E,y.tmp,0),E=y.tmp[1],M.writeUInt32BE(p,m=y.tmp[0],b),M.writeUInt32BE(p,E,b+4)},w.prototype._pad=function(A,g){for(var p=A.length-g,b=g;b>>0,m=j}M.rip(E,m,b,y)},w.prototype._decrypt=function(A,g,p,b,y){for(var m=p,E=g,C=A.keys.length-2;C>=0;C-=2){var L=A.keys[C],R=A.keys[C+1];M.expand(m,A.tmp,0);var U=M.substitute(L^=A.tmp[0],R^=A.tmp[1]),j=m;m=(E^M.permute(U))>>>0,E=j}M.rip(m,E,b,y)}},81082:(q,k,x)=>{"use strict";var B=x(86055),I=x(59879),M=x(82243),P=x(62917);function o(S,D){B.equal(D.length,24,"Invalid key length");var A=D.slice(0,8),g=D.slice(8,16),p=D.slice(16,24);this.ciphers="encrypt"===S?[P.create({type:"encrypt",key:A}),P.create({type:"decrypt",key:g}),P.create({type:"encrypt",key:p})]:[P.create({type:"decrypt",key:p}),P.create({type:"encrypt",key:g}),P.create({type:"decrypt",key:A})]}function w(S){M.call(this,S);var D=new o(this.type,this.options.key);this._edeState=D}I(w,M),q.exports=w,w.create=function(D){return new w(D)},w.prototype._update=function(D,A,g,p){var b=this._edeState;b.ciphers[0]._update(D,A,g,p),b.ciphers[1]._update(g,p,g,p),b.ciphers[2]._update(g,p,g,p)},w.prototype._pad=P.prototype._pad,w.prototype._unpad=P.prototype._unpad},86157:(q,k)=>{"use strict";k.readUInt32BE=function(P,o){return(P[0+o]<<24|P[1+o]<<16|P[2+o]<<8|P[3+o])>>>0},k.writeUInt32BE=function(P,o,w){P[0+w]=o>>>24,P[1+w]=o>>>16&255,P[2+w]=o>>>8&255,P[3+w]=255&o},k.ip=function(P,o,w,S){for(var D=0,A=0,g=6;g>=0;g-=2){for(var p=0;p<=24;p+=8)D<<=1,D|=o>>>p+g&1;for(p=0;p<=24;p+=8)D<<=1,D|=P>>>p+g&1}for(g=6;g>=0;g-=2){for(p=1;p<=25;p+=8)A<<=1,A|=o>>>p+g&1;for(p=1;p<=25;p+=8)A<<=1,A|=P>>>p+g&1}w[S+0]=D>>>0,w[S+1]=A>>>0},k.rip=function(P,o,w,S){for(var D=0,A=0,g=0;g<4;g++)for(var p=24;p>=0;p-=8)D<<=1,D|=o>>>p+g&1,D<<=1,D|=P>>>p+g&1;for(g=4;g<8;g++)for(p=24;p>=0;p-=8)A<<=1,A|=o>>>p+g&1,A<<=1,A|=P>>>p+g&1;w[S+0]=D>>>0,w[S+1]=A>>>0},k.pc1=function(P,o,w,S){for(var D=0,A=0,g=7;g>=5;g--){for(var p=0;p<=24;p+=8)D<<=1,D|=o>>p+g&1;for(p=0;p<=24;p+=8)D<<=1,D|=P>>p+g&1}for(p=0;p<=24;p+=8)D<<=1,D|=o>>p+g&1;for(g=1;g<=3;g++){for(p=0;p<=24;p+=8)A<<=1,A|=o>>p+g&1;for(p=0;p<=24;p+=8)A<<=1,A|=P>>p+g&1}for(p=0;p<=24;p+=8)A<<=1,A|=P>>p+g&1;w[S+0]=D>>>0,w[S+1]=A>>>0},k.r28shl=function(P,o){return P<>>28-o};var x=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];k.pc2=function(P,o,w,S){for(var D=0,A=0,g=x.length>>>1,p=0;p>>x[p]&1;for(p=g;p>>x[p]&1;w[S+0]=D>>>0,w[S+1]=A>>>0},k.expand=function(P,o,w){var S=0,D=0;S=(1&P)<<5|P>>>27;for(var A=23;A>=15;A-=4)S<<=6,S|=P>>>A&63;for(A=11;A>=3;A-=4)D|=P>>>A&63,D<<=6;D|=(31&P)<<1|P>>>31,o[w+0]=S>>>0,o[w+1]=D>>>0};var B=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];k.substitute=function(P,o){for(var w=0,S=0;S<4;S++)w<<=4,w|=B[64*S+(P>>>18-6*S&63)];for(S=0;S<4;S++)w<<=4,w|=B[256+64*S+(o>>>18-6*S&63)];return w>>>0};var I=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];k.permute=function(P){for(var o=0,w=0;w>>I[w]&1;return o>>>0},k.padSplit=function(P,o,w){for(var S=P.toString(2);S.length{var B=x(84069),I=x(29799),M=x(26374),o={binary:!0,hex:!0,base64:!0};k.DiffieHellmanGroup=k.createDiffieHellmanGroup=k.getDiffieHellman=function P(S){var D=new Buffer(I[S].prime,"hex"),A=new Buffer(I[S].gen,"hex");return new M(D,A)},k.createDiffieHellman=k.DiffieHellman=function w(S,D,A,g){return Buffer.isBuffer(D)||void 0===o[D]?w(S,"binary",D,A):(D=D||"binary",g=g||"binary",A=A||new Buffer([2]),Buffer.isBuffer(A)||(A=new Buffer(A,g)),"number"==typeof S?new M(B(S,A),A,!0):(Buffer.isBuffer(S)||(S=new Buffer(S,D)),new M(S,A,!0)))}},26374:(q,k,x)=>{var B=x(74980),M=new(x(14398)),P=new B(24),o=new B(11),w=new B(10),S=new B(3),D=new B(7),A=x(84069),g=x(16589);function p(L,R){return R=R||"utf8",Buffer.isBuffer(L)||(L=new Buffer(L,R)),this._pub=new B(L),this}function b(L,R){return R=R||"utf8",Buffer.isBuffer(L)||(L=new Buffer(L,R)),this._priv=new B(L),this}q.exports=E;var y={};function E(L,R,U){this.setGenerator(R),this.__prime=new B(L),this._prime=B.mont(this.__prime),this._primeLen=L.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,U?(this.setPublicKey=p,this.setPrivateKey=b):this._primeCode=8}function C(L,R){var U=new Buffer(L.toArray());return R?U.toString(R):U}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function m(L,R){var U=R.toString("hex"),O=[U,L.toString(16)].join("_");if(O in y)return y[O];var K,j=0;if(L.isEven()||!A.simpleSieve||!A.fermatTest(L)||!M.test(L))return j+=1,y[O]=j+="02"===U||"05"===U?8:4,j;switch(M.test(L.shrn(1))||(j+=2),U){case"02":L.mod(P).cmp(o)&&(j+=8);break;case"05":(K=L.mod(w)).cmp(S)&&K.cmp(D)&&(j+=8);break;default:j+=4}return y[O]=j,j}(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new B(g(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(L){var R=(L=(L=new B(L)).toRed(this._prime)).redPow(this._priv).fromRed(),U=new Buffer(R.toArray()),O=this.getPrime();if(U.length{var B=x(16589);q.exports=j,j.simpleSieve=U,j.fermatTest=O;var I=x(74980),M=new I(24),o=new(x(14398)),w=new I(1),S=new I(2),D=new I(5),p=(new I(16),new I(8),new I(10)),b=new I(3),m=(new I(7),new I(11)),E=new I(4),L=(new I(12),null);function U(K){for(var Z=function R(){if(null!==L)return L;var Z=[];Z[0]=2;for(var Q=1,W=3;W<1048576;W+=2){for(var X=Math.ceil(Math.sqrt(W)),_=0;_K;)Q.ishrn(1);if(Q.isEven()&&Q.iadd(w),Q.testn(1)||Q.iadd(S),Z.cmp(S)){if(!Z.cmp(D))for(;Q.mod(p).cmp(b);)Q.iadd(E)}else for(;Q.mod(M).cmp(m);)Q.iadd(E);if(U(W=Q.shrn(1))&&U(Q)&&O(W)&&O(Q)&&o.test(W)&&o.test(Q))return Q}}},74980:function(q,k,x){!function(B,I){"use strict";function M(_,t){if(!_)throw new Error(t||"Assertion failed")}function P(_,t){_.super_=t;var a=function(){};a.prototype=t.prototype,_.prototype=new a,_.prototype.constructor=_}function o(_,t,a){if(o.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,null!==_&&(("le"===t||"be"===t)&&(a=t,t=10),this._init(_||0,t||10,a||"be"))}var w;"object"==typeof B?B.exports=o:I.BN=o,o.BN=o,o.wordSize=26;try{w=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:x(7748).Buffer}catch{}function S(_,t){var a=_.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},5247:(q,k,x)=>{"use strict";var B=k;B.version=x(18597).i8,B.utils=x(22946),B.rand=x(34761),B.curve=x(93868),B.curves=x(73346),B.ec=x(17237),B.eddsa=x(61615)},10780:(q,k,x)=>{"use strict";var B=x(24584),I=x(22946),M=I.getNAF,P=I.getJSF,o=I.assert;function w(D,A){this.type=D,this.p=new B(A.p,16),this.red=A.prime?B.red(A.prime):B.mont(this.p),this.zero=new B(0).toRed(this.red),this.one=new B(1).toRed(this.red),this.two=new B(2).toRed(this.red),this.n=A.n&&new B(A.n,16),this.g=A.g&&this.pointFromJSON(A.g,A.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var g=this.n&&this.p.div(this.n);!g||g.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function S(D,A){this.curve=D,this.type=A,this.precomputed=null}q.exports=w,w.prototype.point=function(){throw new Error("Not implemented")},w.prototype.validate=function(){throw new Error("Not implemented")},w.prototype._fixedNafMul=function(A,g){o(A.precomputed);var p=A._getDoubles(),b=M(g,1,this._bitLength),y=(1<=E;L--)C=(C<<1)+b[L];m.push(C)}for(var R=this.jpoint(null,null,null),U=this.jpoint(null,null,null),O=y;O>0;O--){for(E=0;E=0;C--){for(var L=0;C>=0&&0===m[C];C--)L++;if(C>=0&&L++,E=E.dblp(L),C<0)break;var R=m[C];o(0!==R),E="affine"===A.type?E.mixedAdd(R>0?y[R-1>>1]:y[-R-1>>1].neg()):E.add(R>0?y[R-1>>1]:y[-R-1>>1].neg())}return"affine"===A.type?E.toP():E},w.prototype._wnafMulAdd=function(A,g,p,b,y){var R,U,O,m=this._wnafT1,E=this._wnafT2,C=this._wnafT3,L=0;for(R=0;R=1;R-=2){var K=R-1,Z=R;if(1===m[K]&&1===m[Z]){var Q=[g[K],null,null,g[Z]];0===g[K].y.cmp(g[Z].y)?(Q[1]=g[K].add(g[Z]),Q[2]=g[K].toJ().mixedAdd(g[Z].neg())):0===g[K].y.cmp(g[Z].y.redNeg())?(Q[1]=g[K].toJ().mixedAdd(g[Z]),Q[2]=g[K].add(g[Z].neg())):(Q[1]=g[K].toJ().mixedAdd(g[Z]),Q[2]=g[K].toJ().mixedAdd(g[Z].neg()));var W=[-3,-1,-5,-7,0,7,5,1,3],X=P(p[K],p[Z]);for(L=Math.max(X[0].length,L),C[K]=new Array(L),C[Z]=new Array(L),U=0;U=0;R--){for(var e=0;R>=0;){var i=!0;for(U=0;U=0&&e++,a=a.dblp(e),R<0)break;for(U=0;U0?O=E[U][u-1>>1]:u<0&&(O=E[U][-u-1>>1].neg()),a="affine"===O.type?a.mixedAdd(O):a.add(O))}}for(R=0;R=Math.ceil((A.bitLength()+1)/g.step)},S.prototype._getDoubles=function(A,g){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],b=this,y=0;y{"use strict";var B=x(22946),I=x(24584),M=x(59879),P=x(10780),o=B.assert;function w(D){this.twisted=1!=(0|D.a),this.mOneA=this.twisted&&-1==(0|D.a),this.extended=this.mOneA,P.call(this,"edwards",D),this.a=new I(D.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new I(D.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new I(D.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|D.c)}function S(D,A,g,p,b){P.BasePoint.call(this,D,"projective"),null===A&&null===g&&null===p?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new I(A,16),this.y=new I(g,16),this.z=p?new I(p,16):this.curve.one,this.t=b&&new I(b,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}M(w,P),q.exports=w,w.prototype._mulA=function(A){return this.mOneA?A.redNeg():this.a.redMul(A)},w.prototype._mulC=function(A){return this.oneC?A:this.c.redMul(A)},w.prototype.jpoint=function(A,g,p,b){return this.point(A,g,p,b)},w.prototype.pointFromX=function(A,g){(A=new I(A,16)).red||(A=A.toRed(this.red));var p=A.redSqr(),b=this.c2.redSub(this.a.redMul(p)),y=this.one.redSub(this.c2.redMul(this.d).redMul(p)),m=b.redMul(y.redInvm()),E=m.redSqrt();if(0!==E.redSqr().redSub(m).cmp(this.zero))throw new Error("invalid point");var C=E.fromRed().isOdd();return(g&&!C||!g&&C)&&(E=E.redNeg()),this.point(A,E)},w.prototype.pointFromY=function(A,g){(A=new I(A,16)).red||(A=A.toRed(this.red));var p=A.redSqr(),b=p.redSub(this.c2),y=p.redMul(this.d).redMul(this.c2).redSub(this.a),m=b.redMul(y.redInvm());if(0===m.cmp(this.zero)){if(g)throw new Error("invalid point");return this.point(this.zero,A)}var E=m.redSqrt();if(0!==E.redSqr().redSub(m).cmp(this.zero))throw new Error("invalid point");return E.fromRed().isOdd()!==g&&(E=E.redNeg()),this.point(E,A)},w.prototype.validate=function(A){if(A.isInfinity())return!0;A.normalize();var g=A.x.redSqr(),p=A.y.redSqr(),b=g.redMul(this.a).redAdd(p),y=this.c2.redMul(this.one.redAdd(this.d.redMul(g).redMul(p)));return 0===b.cmp(y)},M(S,P.BasePoint),w.prototype.pointFromJSON=function(A){return S.fromJSON(this,A)},w.prototype.point=function(A,g,p,b){return new S(this,A,g,p,b)},S.fromJSON=function(A,g){return new S(A,g[0],g[1],g[2])},S.prototype.inspect=function(){return this.isInfinity()?"":""},S.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},S.prototype._extDbl=function(){var A=this.x.redSqr(),g=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var b=this.curve._mulA(A),y=this.x.redAdd(this.y).redSqr().redISub(A).redISub(g),m=b.redAdd(g),E=m.redSub(p),C=b.redSub(g),L=y.redMul(E),R=m.redMul(C),U=y.redMul(C),O=E.redMul(m);return this.curve.point(L,R,O,U)},S.prototype._projDbl=function(){var b,y,m,E,C,L,A=this.x.redAdd(this.y).redSqr(),g=this.x.redSqr(),p=this.y.redSqr();if(this.curve.twisted){var R=(E=this.curve._mulA(g)).redAdd(p);this.zOne?(b=A.redSub(g).redSub(p).redMul(R.redSub(this.curve.two)),y=R.redMul(E.redSub(p)),m=R.redSqr().redSub(R).redSub(R)):(C=this.z.redSqr(),L=R.redSub(C).redISub(C),b=A.redSub(g).redISub(p).redMul(L),y=R.redMul(E.redSub(p)),m=R.redMul(L))}else E=g.redAdd(p),C=this.curve._mulC(this.z).redSqr(),L=E.redSub(C).redSub(C),b=this.curve._mulC(A.redISub(E)).redMul(L),y=this.curve._mulC(E).redMul(g.redISub(p)),m=E.redMul(L);return this.curve.point(b,y,m)},S.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},S.prototype._extAdd=function(A){var g=this.y.redSub(this.x).redMul(A.y.redSub(A.x)),p=this.y.redAdd(this.x).redMul(A.y.redAdd(A.x)),b=this.t.redMul(this.curve.dd).redMul(A.t),y=this.z.redMul(A.z.redAdd(A.z)),m=p.redSub(g),E=y.redSub(b),C=y.redAdd(b),L=p.redAdd(g),R=m.redMul(E),U=C.redMul(L),O=m.redMul(L),j=E.redMul(C);return this.curve.point(R,U,j,O)},S.prototype._projAdd=function(A){var U,O,g=this.z.redMul(A.z),p=g.redSqr(),b=this.x.redMul(A.x),y=this.y.redMul(A.y),m=this.curve.d.redMul(b).redMul(y),E=p.redSub(m),C=p.redAdd(m),L=this.x.redAdd(this.y).redMul(A.x.redAdd(A.y)).redISub(b).redISub(y),R=g.redMul(E).redMul(L);return this.curve.twisted?(U=g.redMul(C).redMul(y.redSub(this.curve._mulA(b))),O=E.redMul(C)):(U=g.redMul(C).redMul(y.redSub(b)),O=this.curve._mulC(E).redMul(C)),this.curve.point(R,U,O)},S.prototype.add=function(A){return this.isInfinity()?A:A.isInfinity()?this:this.curve.extended?this._extAdd(A):this._projAdd(A)},S.prototype.mul=function(A){return this._hasDoubles(A)?this.curve._fixedNafMul(this,A):this.curve._wnafMul(this,A)},S.prototype.mulAdd=function(A,g,p){return this.curve._wnafMulAdd(1,[this,g],[A,p],2,!1)},S.prototype.jmulAdd=function(A,g,p){return this.curve._wnafMulAdd(1,[this,g],[A,p],2,!0)},S.prototype.normalize=function(){if(this.zOne)return this;var A=this.z.redInvm();return this.x=this.x.redMul(A),this.y=this.y.redMul(A),this.t&&(this.t=this.t.redMul(A)),this.z=this.curve.one,this.zOne=!0,this},S.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},S.prototype.getX=function(){return this.normalize(),this.x.fromRed()},S.prototype.getY=function(){return this.normalize(),this.y.fromRed()},S.prototype.eq=function(A){return this===A||0===this.getX().cmp(A.getX())&&0===this.getY().cmp(A.getY())},S.prototype.eqXToP=function(A){var g=A.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(g))return!0;for(var p=A.clone(),b=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(g.redIAdd(b),0===this.x.cmp(g))return!0}},S.prototype.toP=S.prototype.normalize,S.prototype.mixedAdd=S.prototype.add},93868:(q,k,x)=>{"use strict";var B=k;B.base=x(10780),B.short=x(29918),B.mont=x(52218),B.edwards=x(86121)},52218:(q,k,x)=>{"use strict";var B=x(24584),I=x(59879),M=x(10780),P=x(22946);function o(S){M.call(this,"mont",S),this.a=new B(S.a,16).toRed(this.red),this.b=new B(S.b,16).toRed(this.red),this.i4=new B(4).toRed(this.red).redInvm(),this.two=new B(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function w(S,D,A){M.BasePoint.call(this,S,"projective"),null===D&&null===A?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new B(D,16),this.z=new B(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}I(o,M),q.exports=o,o.prototype.validate=function(D){var A=D.normalize().x,g=A.redSqr(),p=g.redMul(A).redAdd(g.redMul(this.a)).redAdd(A);return 0===p.redSqrt().redSqr().cmp(p)},I(w,M.BasePoint),o.prototype.decodePoint=function(D,A){return this.point(P.toArray(D,A),1)},o.prototype.point=function(D,A){return new w(this,D,A)},o.prototype.pointFromJSON=function(D){return w.fromJSON(this,D)},w.prototype.precompute=function(){},w.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},w.fromJSON=function(D,A){return new w(D,A[0],A[1]||D.one)},w.prototype.inspect=function(){return this.isInfinity()?"":""},w.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},w.prototype.dbl=function(){var A=this.x.redAdd(this.z).redSqr(),p=this.x.redSub(this.z).redSqr(),b=A.redSub(p),y=A.redMul(p),m=b.redMul(p.redAdd(this.curve.a24.redMul(b)));return this.curve.point(y,m)},w.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},w.prototype.diffAdd=function(D,A){var g=this.x.redAdd(this.z),p=this.x.redSub(this.z),b=D.x.redAdd(D.z),m=D.x.redSub(D.z).redMul(g),E=b.redMul(p),C=A.z.redMul(m.redAdd(E).redSqr()),L=A.x.redMul(m.redISub(E).redSqr());return this.curve.point(C,L)},w.prototype.mul=function(D){for(var A=D.clone(),g=this,p=this.curve.point(null,null),y=[];0!==A.cmpn(0);A.iushrn(1))y.push(A.andln(1));for(var m=y.length-1;m>=0;m--)0===y[m]?(g=g.diffAdd(p,this),p=p.dbl()):(p=g.diffAdd(p,this),g=g.dbl());return p},w.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},w.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},w.prototype.eq=function(D){return 0===this.getX().cmp(D.getX())},w.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},w.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},29918:(q,k,x)=>{"use strict";var B=x(22946),I=x(24584),M=x(59879),P=x(10780),o=B.assert;function w(A){P.call(this,"short",A),this.a=new I(A.a,16).toRed(this.red),this.b=new I(A.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(A),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function S(A,g,p,b){P.BasePoint.call(this,A,"affine"),null===g&&null===p?(this.x=null,this.y=null,this.inf=!0):(this.x=new I(g,16),this.y=new I(p,16),b&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function D(A,g,p,b){P.BasePoint.call(this,A,"jacobian"),null===g&&null===p&&null===b?(this.x=this.curve.one,this.y=this.curve.one,this.z=new I(0)):(this.x=new I(g,16),this.y=new I(p,16),this.z=new I(b,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}M(w,P),q.exports=w,w.prototype._getEndomorphism=function(g){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var p,b;if(g.beta)p=new I(g.beta,16).toRed(this.red);else{var y=this._getEndoRoots(this.p);p=(p=y[0].cmp(y[1])<0?y[0]:y[1]).toRed(this.red)}if(g.lambda)b=new I(g.lambda,16);else{var m=this._getEndoRoots(this.n);0===this.g.mul(m[0]).x.cmp(this.g.x.redMul(p))?b=m[0]:o(0===this.g.mul(b=m[1]).x.cmp(this.g.x.redMul(p)))}return{beta:p,lambda:b,basis:g.basis?g.basis.map(function(C){return{a:new I(C.a,16),b:new I(C.b,16)}}):this._getEndoBasis(b)}}},w.prototype._getEndoRoots=function(g){var p=g===this.p?this.red:I.mont(g),b=new I(2).toRed(p).redInvm(),y=b.redNeg(),m=new I(3).toRed(p).redNeg().redSqrt().redMul(b);return[y.redAdd(m).fromRed(),y.redSub(m).fromRed()]},w.prototype._getEndoBasis=function(g){for(var R,U,O,j,K,Z,Q,X,_,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),b=g,y=this.n.clone(),m=new I(1),E=new I(0),C=new I(0),L=new I(1),W=0;0!==b.cmpn(0);){var t=y.div(b);X=y.sub(t.mul(b)),_=C.sub(t.mul(m));var a=L.sub(t.mul(E));if(!O&&X.cmp(p)<0)R=Q.neg(),U=m,O=X.neg(),j=_;else if(O&&2==++W)break;Q=X,y=b,b=X,C=m,m=_,L=E,E=a}K=X.neg(),Z=_;var s=O.sqr().add(j.sqr());return K.sqr().add(Z.sqr()).cmp(s)>=0&&(K=R,Z=U),O.negative&&(O=O.neg(),j=j.neg()),K.negative&&(K=K.neg(),Z=Z.neg()),[{a:O,b:j},{a:K,b:Z}]},w.prototype._endoSplit=function(g){var p=this.endo.basis,b=p[0],y=p[1],m=y.b.mul(g).divRound(this.n),E=b.b.neg().mul(g).divRound(this.n),C=m.mul(b.a),L=E.mul(y.a),R=m.mul(b.b),U=E.mul(y.b);return{k1:g.sub(C).sub(L),k2:R.add(U).neg()}},w.prototype.pointFromX=function(g,p){(g=new I(g,16)).red||(g=g.toRed(this.red));var b=g.redSqr().redMul(g).redIAdd(g.redMul(this.a)).redIAdd(this.b),y=b.redSqrt();if(0!==y.redSqr().redSub(b).cmp(this.zero))throw new Error("invalid point");var m=y.fromRed().isOdd();return(p&&!m||!p&&m)&&(y=y.redNeg()),this.point(g,y)},w.prototype.validate=function(g){if(g.inf)return!0;var p=g.x,b=g.y,y=this.a.redMul(p),m=p.redSqr().redMul(p).redIAdd(y).redIAdd(this.b);return 0===b.redSqr().redISub(m).cmpn(0)},w.prototype._endoWnafMulAdd=function(g,p,b){for(var y=this._endoWnafT1,m=this._endoWnafT2,E=0;E":""},S.prototype.isInfinity=function(){return this.inf},S.prototype.add=function(g){if(this.inf)return g;if(g.inf)return this;if(this.eq(g))return this.dbl();if(this.neg().eq(g))return this.curve.point(null,null);if(0===this.x.cmp(g.x))return this.curve.point(null,null);var p=this.y.redSub(g.y);0!==p.cmpn(0)&&(p=p.redMul(this.x.redSub(g.x).redInvm()));var b=p.redSqr().redISub(this.x).redISub(g.x),y=p.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,y)},S.prototype.dbl=function(){if(this.inf)return this;var g=this.y.redAdd(this.y);if(0===g.cmpn(0))return this.curve.point(null,null);var p=this.curve.a,b=this.x.redSqr(),y=g.redInvm(),m=b.redAdd(b).redIAdd(b).redIAdd(p).redMul(y),E=m.redSqr().redISub(this.x.redAdd(this.x)),C=m.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,C)},S.prototype.getX=function(){return this.x.fromRed()},S.prototype.getY=function(){return this.y.fromRed()},S.prototype.mul=function(g){return g=new I(g,16),this.isInfinity()?this:this._hasDoubles(g)?this.curve._fixedNafMul(this,g):this.curve.endo?this.curve._endoWnafMulAdd([this],[g]):this.curve._wnafMul(this,g)},S.prototype.mulAdd=function(g,p,b){var y=[this,p],m=[g,b];return this.curve.endo?this.curve._endoWnafMulAdd(y,m):this.curve._wnafMulAdd(1,y,m,2)},S.prototype.jmulAdd=function(g,p,b){var y=[this,p],m=[g,b];return this.curve.endo?this.curve._endoWnafMulAdd(y,m,!0):this.curve._wnafMulAdd(1,y,m,2,!0)},S.prototype.eq=function(g){return this===g||this.inf===g.inf&&(this.inf||0===this.x.cmp(g.x)&&0===this.y.cmp(g.y))},S.prototype.neg=function(g){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(g&&this.precomputed){var b=this.precomputed,y=function(m){return m.neg()};p.precomputed={naf:b.naf&&{wnd:b.naf.wnd,points:b.naf.points.map(y)},doubles:b.doubles&&{step:b.doubles.step,points:b.doubles.points.map(y)}}}return p},S.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},M(D,P.BasePoint),w.prototype.jpoint=function(g,p,b){return new D(this,g,p,b)},D.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var g=this.z.redInvm(),p=g.redSqr(),b=this.x.redMul(p),y=this.y.redMul(p).redMul(g);return this.curve.point(b,y)},D.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},D.prototype.add=function(g){if(this.isInfinity())return g;if(g.isInfinity())return this;var p=g.z.redSqr(),b=this.z.redSqr(),y=this.x.redMul(p),m=g.x.redMul(b),E=this.y.redMul(p.redMul(g.z)),C=g.y.redMul(b.redMul(this.z)),L=y.redSub(m),R=E.redSub(C);if(0===L.cmpn(0))return 0!==R.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var U=L.redSqr(),O=U.redMul(L),j=y.redMul(U),K=R.redSqr().redIAdd(O).redISub(j).redISub(j),Z=R.redMul(j.redISub(K)).redISub(E.redMul(O)),Q=this.z.redMul(g.z).redMul(L);return this.curve.jpoint(K,Z,Q)},D.prototype.mixedAdd=function(g){if(this.isInfinity())return g.toJ();if(g.isInfinity())return this;var p=this.z.redSqr(),b=this.x,y=g.x.redMul(p),m=this.y,E=g.y.redMul(p).redMul(this.z),C=b.redSub(y),L=m.redSub(E);if(0===C.cmpn(0))return 0!==L.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var R=C.redSqr(),U=R.redMul(C),O=b.redMul(R),j=L.redSqr().redIAdd(U).redISub(O).redISub(O),K=L.redMul(O.redISub(j)).redISub(m.redMul(U)),Z=this.z.redMul(C);return this.curve.jpoint(j,K,Z)},D.prototype.dblp=function(g){if(0===g)return this;if(this.isInfinity())return this;if(!g)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var b=this;for(p=0;p=0)return!1;if(b.redIAdd(m),0===this.x.cmp(b))return!0}},D.prototype.inspect=function(){return this.isInfinity()?"":""},D.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},73346:(q,k,x)=>{"use strict";var D,B=k,I=x(37909),M=x(93868),o=x(22946).assert;function w(A){this.curve="short"===A.type?new M.short(A):"edwards"===A.type?new M.edwards(A):new M.mont(A),this.g=this.curve.g,this.n=this.curve.n,this.hash=A.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function S(A,g){Object.defineProperty(B,A,{configurable:!0,enumerable:!0,get:function(){var p=new w(g);return Object.defineProperty(B,A,{configurable:!0,enumerable:!0,value:p}),p}})}B.PresetCurve=w,S("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:I.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),S("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:I.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),S("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:I.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),S("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:I.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),S("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:I.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),S("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:I.sha256,gRed:!1,g:["9"]}),S("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:I.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{D=x(5503)}catch{D=void 0}S("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:I.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",D]})},17237:(q,k,x)=>{"use strict";var B=x(24584),I=x(72730),M=x(22946),P=x(73346),o=x(34761),w=M.assert,S=x(12806),D=x(46799);function A(g){if(!(this instanceof A))return new A(g);"string"==typeof g&&(w(Object.prototype.hasOwnProperty.call(P,g),"Unknown curve "+g),g=P[g]),g instanceof P.PresetCurve&&(g={curve:g}),this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}q.exports=A,A.prototype.keyPair=function(p){return new S(this,p)},A.prototype.keyFromPrivate=function(p,b){return S.fromPrivate(this,p,b)},A.prototype.keyFromPublic=function(p,b){return S.fromPublic(this,p,b)},A.prototype.genKeyPair=function(p){p||(p={});for(var b=new I({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||o(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),y=this.n.byteLength(),m=this.n.sub(new B(2));;){var E=new B(b.generate(y));if(!(E.cmp(m)>0))return E.iaddn(1),this.keyFromPrivate(E)}},A.prototype._truncateToN=function(p,b){var y=8*p.byteLength()-this.n.bitLength();return y>0&&(p=p.ushrn(y)),!b&&p.cmp(this.n)>=0?p.sub(this.n):p},A.prototype.sign=function(p,b,y,m){"object"==typeof y&&(m=y,y=null),m||(m={}),b=this.keyFromPrivate(b,y),p=this._truncateToN(new B(p,16));for(var E=this.n.byteLength(),C=b.getPrivate().toArray("be",E),L=p.toArray("be",E),R=new I({hash:this.hash,entropy:C,nonce:L,pers:m.pers,persEnc:m.persEnc||"utf8"}),U=this.n.sub(new B(1)),O=0;;O++){var j=m.k?m.k(O):new B(R.generate(this.n.byteLength()));if(!((j=this._truncateToN(j,!0)).cmpn(1)<=0||j.cmp(U)>=0)){var K=this.g.mul(j);if(!K.isInfinity()){var Z=K.getX(),Q=Z.umod(this.n);if(0!==Q.cmpn(0)){var W=j.invm(this.n).mul(Q.mul(b.getPrivate()).iadd(p));if(0!==(W=W.umod(this.n)).cmpn(0)){var X=(K.getY().isOdd()?1:0)|(0!==Z.cmp(Q)?2:0);return m.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),X^=1),new D({r:Q,s:W,recoveryParam:X})}}}}}},A.prototype.verify=function(p,b,y,m){p=this._truncateToN(new B(p,16)),y=this.keyFromPublic(y,m);var E=(b=new D(b,"hex")).r,C=b.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||C.cmpn(1)<0||C.cmp(this.n)>=0)return!1;var O,L=C.invm(this.n),R=L.mul(p).umod(this.n),U=L.mul(E).umod(this.n);return this.curve._maxwellTrick?!(O=this.g.jmulAdd(R,y.getPublic(),U)).isInfinity()&&O.eqXToP(E):!(O=this.g.mulAdd(R,y.getPublic(),U)).isInfinity()&&0===O.getX().umod(this.n).cmp(E)},A.prototype.recoverPubKey=function(g,p,b,y){w((3&b)===b,"The recovery param is more than two bits"),p=new D(p,y);var m=this.n,E=new B(g),C=p.r,L=p.s,R=1&b,U=b>>1;if(C.cmp(this.curve.p.umod(this.curve.n))>=0&&U)throw new Error("Unable to find sencond key candinate");C=this.curve.pointFromX(U?C.add(this.curve.n):C,R);var O=p.r.invm(m),j=m.sub(E).mul(O).umod(m),K=L.mul(O).umod(m);return this.g.mulAdd(j,C,K)},A.prototype.getKeyRecoveryParam=function(g,p,b,y){if(null!==(p=new D(p,y)).recoveryParam)return p.recoveryParam;for(var m=0;m<4;m++){var E;try{E=this.recoverPubKey(g,p,m)}catch{continue}if(E.eq(b))return m}throw new Error("Unable to find valid recovery factor")}},12806:(q,k,x)=>{"use strict";var B=x(24584),M=x(22946).assert;function P(o,w){this.ec=o,this.priv=null,this.pub=null,w.priv&&this._importPrivate(w.priv,w.privEnc),w.pub&&this._importPublic(w.pub,w.pubEnc)}q.exports=P,P.fromPublic=function(w,S,D){return S instanceof P?S:new P(w,{pub:S,pubEnc:D})},P.fromPrivate=function(w,S,D){return S instanceof P?S:new P(w,{priv:S,privEnc:D})},P.prototype.validate=function(){var w=this.getPublic();return w.isInfinity()?{result:!1,reason:"Invalid public key"}:w.validate()?w.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},P.prototype.getPublic=function(w,S){return"string"==typeof w&&(S=w,w=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),S?this.pub.encode(S,w):this.pub},P.prototype.getPrivate=function(w){return"hex"===w?this.priv.toString(16,2):this.priv},P.prototype._importPrivate=function(w,S){this.priv=new B(w,S||16),this.priv=this.priv.umod(this.ec.curve.n)},P.prototype._importPublic=function(w,S){if(w.x||w.y)return"mont"===this.ec.curve.type?M(w.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&M(w.x&&w.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(w.x,w.y));this.pub=this.ec.curve.decodePoint(w,S)},P.prototype.derive=function(w){return w.validate()||M(w.validate(),"public point not validated"),w.mul(this.priv).getX()},P.prototype.sign=function(w,S,D){return this.ec.sign(w,this,S,D)},P.prototype.verify=function(w,S){return this.ec.verify(w,S,this)},P.prototype.inspect=function(){return""}},46799:(q,k,x)=>{"use strict";var B=x(24584),I=x(22946),M=I.assert;function P(A,g){if(A instanceof P)return A;this._importDER(A,g)||(M(A.r&&A.s,"Signature without r or s"),this.r=new B(A.r,16),this.s=new B(A.s,16),this.recoveryParam=void 0===A.recoveryParam?null:A.recoveryParam)}function o(){this.place=0}function w(A,g){var p=A[g.place++];if(!(128&p))return p;var b=15&p;if(0===b||b>4)return!1;for(var y=0,m=0,E=g.place;m>>=0;return!(y<=127)&&(g.place=E,y)}function S(A){for(var g=0,p=A.length-1;!A[g]&&!(128&A[g+1])&&g>>3);for(A.push(128|p);--p;)A.push(g>>>(p<<3)&255);A.push(g)}}q.exports=P,P.prototype._importDER=function(g,p){g=I.toArray(g,p);var b=new o;if(48!==g[b.place++])return!1;var y=w(g,b);if(!1===y||y+b.place!==g.length||2!==g[b.place++])return!1;var m=w(g,b);if(!1===m)return!1;var E=g.slice(b.place,m+b.place);if(b.place+=m,2!==g[b.place++])return!1;var C=w(g,b);if(!1===C||g.length!==C+b.place)return!1;var L=g.slice(b.place,C+b.place);if(0===E[0]){if(!(128&E[1]))return!1;E=E.slice(1)}if(0===L[0]){if(!(128&L[1]))return!1;L=L.slice(1)}return this.r=new B(E),this.s=new B(L),this.recoveryParam=null,!0},P.prototype.toDER=function(g){var p=this.r.toArray(),b=this.s.toArray();for(128&p[0]&&(p=[0].concat(p)),128&b[0]&&(b=[0].concat(b)),p=S(p),b=S(b);!(b[0]||128&b[1]);)b=b.slice(1);var y=[2];D(y,p.length),(y=y.concat(p)).push(2),D(y,b.length);var m=y.concat(b),E=[48];return D(E,m.length),E=E.concat(m),I.encode(E,g)}},61615:(q,k,x)=>{"use strict";var B=x(37909),I=x(73346),M=x(22946),P=M.assert,o=M.parseBytes,w=x(46014),S=x(36317);function D(A){if(P("ed25519"===A,"only tested with ed25519 so far"),!(this instanceof D))return new D(A);this.curve=A=I[A].curve,this.g=A.g,this.g.precompute(A.n.bitLength()+1),this.pointClass=A.point().constructor,this.encodingLength=Math.ceil(A.n.bitLength()/8),this.hash=B.sha512}q.exports=D,D.prototype.sign=function(g,p){g=o(g);var b=this.keyFromSecret(p),y=this.hashInt(b.messagePrefix(),g),m=this.g.mul(y),E=this.encodePoint(m),C=this.hashInt(E,b.pubBytes(),g).mul(b.priv()),L=y.add(C).umod(this.curve.n);return this.makeSignature({R:m,S:L,Rencoded:E})},D.prototype.verify=function(g,p,b){g=o(g),p=this.makeSignature(p);var y=this.keyFromPublic(b),m=this.hashInt(p.Rencoded(),y.pubBytes(),g),E=this.g.mul(p.S());return p.R().add(y.pub().mul(m)).eq(E)},D.prototype.hashInt=function(){for(var g=this.hash(),p=0;p{"use strict";var B=x(22946),I=B.assert,M=B.parseBytes,P=B.cachedProperty;function o(w,S){this.eddsa=w,this._secret=M(S.secret),w.isPoint(S.pub)?this._pub=S.pub:this._pubBytes=M(S.pub)}o.fromPublic=function(S,D){return D instanceof o?D:new o(S,{pub:D})},o.fromSecret=function(S,D){return D instanceof o?D:new o(S,{secret:D})},o.prototype.secret=function(){return this._secret},P(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),P(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),P(o,"privBytes",function(){var S=this.eddsa,D=this.hash(),A=S.encodingLength-1,g=D.slice(0,S.encodingLength);return g[0]&=248,g[A]&=127,g[A]|=64,g}),P(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),P(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),P(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(S){return I(this._secret,"KeyPair can only verify"),this.eddsa.sign(S,this)},o.prototype.verify=function(S,D){return this.eddsa.verify(S,D,this)},o.prototype.getSecret=function(S){return I(this._secret,"KeyPair is public only"),B.encode(this.secret(),S)},o.prototype.getPublic=function(S){return B.encode(this.pubBytes(),S)},q.exports=o},36317:(q,k,x)=>{"use strict";var B=x(24584),I=x(22946),M=I.assert,P=I.cachedProperty,o=I.parseBytes;function w(S,D){this.eddsa=S,"object"!=typeof D&&(D=o(D)),Array.isArray(D)&&(D={R:D.slice(0,S.encodingLength),S:D.slice(S.encodingLength)}),M(D.R&&D.S,"Signature without R or S"),S.isPoint(D.R)&&(this._R=D.R),D.S instanceof B&&(this._S=D.S),this._Rencoded=Array.isArray(D.R)?D.R:D.Rencoded,this._Sencoded=Array.isArray(D.S)?D.S:D.Sencoded}P(w,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),P(w,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),P(w,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),P(w,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),w.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},w.prototype.toHex=function(){return I.encode(this.toBytes(),"hex").toUpperCase()},q.exports=w},5503:q=>{q.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},22946:(q,k,x)=>{"use strict";var B=k,I=x(24584),M=x(86055),P=x(14869);B.assert=M,B.toArray=P.toArray,B.zero2=P.zero2,B.toHex=P.toHex,B.encode=P.encode,B.getNAF=function o(g,p,b){var y=new Array(Math.max(g.bitLength(),b)+1);y.fill(0);for(var m=1<(m>>1)-1?(m>>1)-R:R):L=0,y[C]=L,E.iushrn(1)}return y},B.getJSF=function w(g,p){var b=[[],[]];g=g.clone(),p=p.clone();for(var E,y=0,m=0;g.cmpn(-y)>0||p.cmpn(-m)>0;){var R,U,C=g.andln(3)+y&3,L=p.andln(3)+m&3;3===C&&(C=-1),3===L&&(L=-1),R=0==(1&C)?0:3!=(E=g.andln(7)+y&7)&&5!==E||2!==L?C:-C,b[0].push(R),U=0==(1&L)?0:3!=(E=p.andln(7)+m&7)&&5!==E||2!==C?L:-L,b[1].push(U),2*y===R+1&&(y=1-y),2*m===U+1&&(m=1-m),g.iushrn(1),p.iushrn(1)}return b},B.cachedProperty=function S(g,p,b){var y="_"+p;g.prototype[p]=function(){return void 0!==this[y]?this[y]:this[y]=b.call(this)}},B.parseBytes=function D(g){return"string"==typeof g?B.toArray(g,"hex"):g},B.intFromLE=function A(g){return new I(g,"hex","le")}},24584:function(q,k,x){!function(B,I){"use strict";function M(_,t){if(!_)throw new Error(t||"Assertion failed")}function P(_,t){_.super_=t;var a=function(){};a.prototype=t.prototype,_.prototype=new a,_.prototype.constructor=_}function o(_,t,a){if(o.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,null!==_&&(("le"===t||"be"===t)&&(a=t,t=10),this._init(_||0,t||10,a||"be"))}var w;"object"==typeof B?B.exports=o:I.BN=o,o.BN=o,o.wordSize=26;try{w=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:x(85568).Buffer}catch{}function S(_,t){var a=_.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},93105:q=>{"use strict";var B,k="object"==typeof Reflect?Reflect:null,x=k&&"function"==typeof k.apply?k.apply:function(O,j,K){return Function.prototype.apply.call(O,j,K)};B=k&&"function"==typeof k.ownKeys?k.ownKeys:Object.getOwnPropertySymbols?function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:function(O){return Object.getOwnPropertyNames(O)};var M=Number.isNaN||function(O){return O!=O};function P(){P.init.call(this)}q.exports=P,q.exports.once=function C(U,O){return new Promise(function(j,K){function Z(W){U.removeListener(O,Q),K(W)}function Q(){"function"==typeof U.removeListener&&U.removeListener("error",Z),j([].slice.call(arguments))}R(U,O,Q,{once:!0}),"error"!==O&&function L(U,O,j){"function"==typeof U.on&&R(U,"error",O,j)}(U,Z,{once:!0})})},P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var o=10;function w(U){if("function"!=typeof U)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof U)}function S(U){return void 0===U._maxListeners?P.defaultMaxListeners:U._maxListeners}function D(U,O,j,K){var Z,Q,W;if(w(j),void 0===(Q=U._events)?(Q=U._events=Object.create(null),U._eventsCount=0):(void 0!==Q.newListener&&(U.emit("newListener",O,j.listener?j.listener:j),Q=U._events),W=Q[O]),void 0===W)W=Q[O]=j,++U._eventsCount;else if("function"==typeof W?W=Q[O]=K?[j,W]:[W,j]:K?W.unshift(j):W.push(j),(Z=S(U))>0&&W.length>Z&&!W.warned){W.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(O)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=U,X.type=O,X.count=W.length,function I(U){console&&console.warn&&console.warn(U)}(X)}return U}function A(){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 g(U,O,j){var K={fired:!1,wrapFn:void 0,target:U,type:O,listener:j},Z=A.bind(K);return Z.listener=j,K.wrapFn=Z,Z}function p(U,O,j){var K=U._events;if(void 0===K)return[];var Z=K[O];return void 0===Z?[]:"function"==typeof Z?j?[Z.listener||Z]:[Z]:j?function E(U){for(var O=new Array(U.length),j=0;j0&&(W=j[0]),W instanceof Error)throw W;var X=new Error("Unhandled error."+(W?" ("+W.message+")":""));throw X.context=W,X}var _=Q[O];if(void 0===_)return!1;if("function"==typeof _)x(_,this,j);else{var t=_.length,a=y(_,t);for(K=0;K=0;W--)if(K[W]===j||K[W].listener===j){X=K[W].listener,Q=W;break}if(Q<0)return this;0===Q?K.shift():function m(U,O){for(;O+1=0;Z--)this.removeListener(O,j[Z]);return this},P.prototype.listeners=function(O){return p(this,O,!0)},P.prototype.rawListeners=function(O){return p(this,O,!1)},P.listenerCount=function(U,O){return"function"==typeof U.listenerCount?U.listenerCount(O):b.call(U,O)},P.prototype.listenerCount=b,P.prototype.eventNames=function(){return this._eventsCount>0?B(this._events):[]}},92367:(q,k,x)=>{var B=x(55859).Buffer,I=x(53264);q.exports=function M(P,o,w,S){if(B.isBuffer(P)||(P=B.from(P,"binary")),o&&(B.isBuffer(o)||(o=B.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var D=w/8,A=B.alloc(D),g=B.alloc(S||0),p=B.alloc(0);D>0||S>0;){var b=new I;b.update(p),b.update(P),o&&b.update(o),p=b.digest();var y=0;if(D>0){var m=A.length-D;y=Math.min(D,p.length),p.copy(A,m,0,y),D-=y}if(y0){var E=g.length-S,C=Math.min(S,p.length-y);p.copy(g,E,y,y+C),S-=C}}return p.fill(0),{key:A,iv:g}}},5414:(q,k,x)=>{"use strict";var B=x(55859).Buffer,I=x(18300).Transform;function o(w){I.call(this),this._block=B.allocUnsafe(w),this._blockSize=w,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}x(59879)(o,I),o.prototype._transform=function(w,S,D){var A=null;try{this.update(w,S)}catch(g){A=g}D(A)},o.prototype._flush=function(w){var S=null;try{this.push(this.digest())}catch(D){S=D}w(S)},o.prototype.update=function(w,S){if(function P(w,S){if(!B.isBuffer(w)&&"string"!=typeof w)throw new TypeError(S+" must be a string or a buffer")}(w,"Data"),this._finalized)throw new Error("Digest already called");B.isBuffer(w)||(w=B.from(w,S));for(var D=this._block,A=0;this._blockOffset+w.length-A>=this._blockSize;){for(var g=this._blockOffset;g0;++p)this._length[p]+=b,(b=this._length[p]/4294967296|0)>0&&(this._length[p]-=4294967296*b);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(w){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var S=this._digest();void 0!==w&&(S=S.toString(w)),this._block.fill(0),this._blockOffset=0;for(var D=0;D<4;++D)this._length[D]=0;return S},o.prototype._digest=function(){throw new Error("_digest is not implemented")},q.exports=o},37909:(q,k,x)=>{var B=k;B.utils=x(8291),B.common=x(21393),B.sha=x(72221),B.ripemd=x(41960),B.hmac=x(51905),B.sha1=B.sha.sha1,B.sha256=B.sha.sha256,B.sha224=B.sha.sha224,B.sha384=B.sha.sha384,B.sha512=B.sha.sha512,B.ripemd160=B.ripemd.ripemd160},21393:(q,k,x)=>{"use strict";var B=x(8291),I=x(86055);function M(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}k.BlockHash=M,M.prototype.update=function(o,w){if(o=B.toArray(o,w),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var S=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-S,o.length),0===this.pending.length&&(this.pending=null),o=B.join32(o,0,o.length-S,this.endian);for(var D=0;D>>24&255,D[A++]=o>>>16&255,D[A++]=o>>>8&255,D[A++]=255&o}else for(D[A++]=255&o,D[A++]=o>>>8&255,D[A++]=o>>>16&255,D[A++]=o>>>24&255,D[A++]=0,D[A++]=0,D[A++]=0,D[A++]=0,g=8;g{"use strict";var B=x(8291),I=x(86055);function M(P,o,w){if(!(this instanceof M))return new M(P,o,w);this.Hash=P,this.blockSize=P.blockSize/8,this.outSize=P.outSize/8,this.inner=null,this.outer=null,this._init(B.toArray(o,w))}q.exports=M,M.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),I(o.length<=this.blockSize);for(var w=o.length;w{"use strict";var B=x(8291),I=x(21393),M=B.rotl32,P=B.sum32,o=B.sum32_3,w=B.sum32_4,S=I.BlockHash;function D(){if(!(this instanceof D))return new D;S.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function A(C,L,R,U){return C<=15?L^R^U:C<=31?L&R|~L&U:C<=47?(L|~R)^U:C<=63?L&U|R&~U:L^(R|~U)}function p(C){return C<=15?1352829926:C<=31?1548603684:C<=47?1836072691:C<=63?2053994217:0}B.inherits(D,S),k.ripemd160=D,D.blockSize=512,D.outSize=160,D.hmacStrength=192,D.padLength=64,D.prototype._update=function(L,R){for(var U=this.h[0],O=this.h[1],j=this.h[2],K=this.h[3],Z=this.h[4],Q=U,W=O,X=j,_=K,t=Z,a=0;a<80;a++){var s=P(M(w(U,A(a,O,j,K),L[b[a]+R],(C=a)<=15?0:C<=31?1518500249:C<=47?1859775393:C<=63?2400959708:2840853838),m[a]),Z);U=Z,Z=K,K=M(j,10),j=O,O=s,s=P(M(w(Q,A(79-a,W,X,_),L[y[a]+R],p(a)),E[a]),t),Q=t,t=_,_=M(X,10),X=W,W=s}var C;s=o(this.h[1],j,_),this.h[1]=o(this.h[2],K,t),this.h[2]=o(this.h[3],Z,Q),this.h[3]=o(this.h[4],U,W),this.h[4]=o(this.h[0],O,X),this.h[0]=s},D.prototype._digest=function(L){return"hex"===L?B.toHex32(this.h,"little"):B.split32(this.h,"little")};var b=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},72221:(q,k,x)=>{"use strict";k.sha1=x(63605),k.sha224=x(29643),k.sha256=x(66021),k.sha384=x(3513),k.sha512=x(54958)},63605:(q,k,x)=>{"use strict";var B=x(8291),I=x(21393),M=x(48491),P=B.rotl32,o=B.sum32,w=B.sum32_5,S=M.ft_1,D=I.BlockHash,A=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;D.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}B.inherits(g,D),q.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(b,y){for(var m=this.W,E=0;E<16;E++)m[E]=b[y+E];for(;E{"use strict";var B=x(8291),I=x(66021);function M(){if(!(this instanceof M))return new M;I.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}B.inherits(M,I),q.exports=M,M.blockSize=512,M.outSize=224,M.hmacStrength=192,M.padLength=64,M.prototype._digest=function(o){return"hex"===o?B.toHex32(this.h.slice(0,7),"big"):B.split32(this.h.slice(0,7),"big")}},66021:(q,k,x)=>{"use strict";var B=x(8291),I=x(21393),M=x(48491),P=x(86055),o=B.sum32,w=B.sum32_4,S=B.sum32_5,D=M.ch32,A=M.maj32,g=M.s0_256,p=M.s1_256,b=M.g0_256,y=M.g1_256,m=I.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function C(){if(!(this instanceof C))return new C;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}B.inherits(C,m),q.exports=C,C.blockSize=512,C.outSize=256,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(R,U){for(var O=this.W,j=0;j<16;j++)O[j]=R[U+j];for(;j{"use strict";var B=x(8291),I=x(54958);function M(){if(!(this instanceof M))return new M;I.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}B.inherits(M,I),q.exports=M,M.blockSize=1024,M.outSize=384,M.hmacStrength=192,M.padLength=128,M.prototype._digest=function(o){return"hex"===o?B.toHex32(this.h.slice(0,12),"big"):B.split32(this.h.slice(0,12),"big")}},54958:(q,k,x)=>{"use strict";var B=x(8291),I=x(21393),M=x(86055),P=B.rotr64_hi,o=B.rotr64_lo,w=B.shr64_hi,S=B.shr64_lo,D=B.sum64,A=B.sum64_hi,g=B.sum64_lo,p=B.sum64_4_hi,b=B.sum64_4_lo,y=B.sum64_5_hi,m=B.sum64_5_lo,E=I.BlockHash,C=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function L(){if(!(this instanceof L))return new L;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=C,this.W=new Array(160)}function R(s,e,i,u,d){var c=s&i^~s&d;return c<0&&(c+=4294967296),c}function U(s,e,i,u,d,c){var r=e&u^~e&c;return r<0&&(r+=4294967296),r}function O(s,e,i,u,d){var c=s&i^s&d^i&d;return c<0&&(c+=4294967296),c}function j(s,e,i,u,d,c){var r=e&u^e&c^u&c;return r<0&&(r+=4294967296),r}function K(s,e){var c=P(s,e,28)^P(e,s,2)^P(e,s,7);return c<0&&(c+=4294967296),c}function Z(s,e){var c=o(s,e,28)^o(e,s,2)^o(e,s,7);return c<0&&(c+=4294967296),c}function Q(s,e){var c=P(s,e,14)^P(s,e,18)^P(e,s,9);return c<0&&(c+=4294967296),c}function W(s,e){var c=o(s,e,14)^o(s,e,18)^o(e,s,9);return c<0&&(c+=4294967296),c}function X(s,e){var c=P(s,e,1)^P(s,e,8)^w(s,e,7);return c<0&&(c+=4294967296),c}function _(s,e){var c=o(s,e,1)^o(s,e,8)^S(s,e,7);return c<0&&(c+=4294967296),c}function t(s,e){var c=P(s,e,19)^P(e,s,29)^w(s,e,6);return c<0&&(c+=4294967296),c}function a(s,e){var c=o(s,e,19)^o(e,s,29)^S(s,e,6);return c<0&&(c+=4294967296),c}B.inherits(L,E),q.exports=L,L.blockSize=1024,L.outSize=512,L.hmacStrength=192,L.padLength=128,L.prototype._prepareBlock=function(e,i){for(var u=this.W,d=0;d<32;d++)u[d]=e[i+d];for(;d{"use strict";var I=x(8291).rotr32;function P(p,b,y){return p&b^~p&y}function o(p,b,y){return p&b^p&y^b&y}function w(p,b,y){return p^b^y}k.ft_1=function M(p,b,y,m){return 0===p?P(b,y,m):1===p||3===p?w(b,y,m):2===p?o(b,y,m):void 0},k.ch32=P,k.maj32=o,k.p32=w,k.s0_256=function S(p){return I(p,2)^I(p,13)^I(p,22)},k.s1_256=function D(p){return I(p,6)^I(p,11)^I(p,25)},k.g0_256=function A(p){return I(p,7)^I(p,18)^p>>>3},k.g1_256=function g(p){return I(p,17)^I(p,19)^p>>>10}},8291:(q,k,x)=>{"use strict";var B=x(86055),I=x(59879);function M(a,s){return!(55296!=(64512&a.charCodeAt(s))||s<0||s+1>=a.length)&&56320==(64512&a.charCodeAt(s+1))}function w(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function D(a){return 1===a.length?"0"+a:a}function A(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}k.inherits=I,k.toArray=function P(a,s){if(Array.isArray(a))return a.slice();if(!a)return[];var e=[];if("string"==typeof a)if(s){if("hex"===s)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),u=0;u>6|192,e[i++]=63&d|128):M(a,u)?(d=65536+((1023&d)<<10)+(1023&a.charCodeAt(++u)),e[i++]=d>>18|240,e[i++]=d>>12&63|128,e[i++]=d>>6&63|128,e[i++]=63&d|128):(e[i++]=d>>12|224,e[i++]=d>>6&63|128,e[i++]=63&d|128)}else for(u=0;u>>0;return d},k.split32=function p(a,s){for(var e=new Array(4*a.length),i=0,u=0;i>>24,e[u+1]=d>>>16&255,e[u+2]=d>>>8&255,e[u+3]=255&d):(e[u+3]=d>>>24,e[u+2]=d>>>16&255,e[u+1]=d>>>8&255,e[u]=255&d)}return e},k.rotr32=function b(a,s){return a>>>s|a<<32-s},k.rotl32=function y(a,s){return a<>>32-s},k.sum32=function m(a,s){return a+s>>>0},k.sum32_3=function E(a,s,e){return a+s+e>>>0},k.sum32_4=function C(a,s,e,i){return a+s+e+i>>>0},k.sum32_5=function L(a,s,e,i,u){return a+s+e+i+u>>>0},k.sum64=function R(a,s,e,i){var c=i+a[s+1]>>>0;a[s]=(c>>0,a[s+1]=c},k.sum64_hi=function U(a,s,e,i){return(s+i>>>0>>0},k.sum64_lo=function O(a,s,e,i){return s+i>>>0},k.sum64_4_hi=function j(a,s,e,i,u,d,c,r){var h=0,F=s;return h+=(F=F+i>>>0)>>0)>>0)>>0},k.sum64_4_lo=function K(a,s,e,i,u,d,c,r){return s+i+d+r>>>0},k.sum64_5_hi=function Z(a,s,e,i,u,d,c,r,h,F){var T=0,H=s;return T+=(H=H+i>>>0)>>0)>>0)>>0)>>0},k.sum64_5_lo=function Q(a,s,e,i,u,d,c,r,h,F){return s+i+d+r+F>>>0},k.rotr64_hi=function W(a,s,e){return(s<<32-e|a>>>e)>>>0},k.rotr64_lo=function X(a,s,e){return(a<<32-e|s>>>e)>>>0},k.shr64_hi=function _(a,s,e){return a>>>e},k.shr64_lo=function t(a,s,e){return(a<<32-e|s>>>e)>>>0}},72730:(q,k,x)=>{"use strict";var B=x(37909),I=x(14869),M=x(86055);function P(o){if(!(this instanceof P))return new P(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var w=I.toArray(o.entropy,o.entropyEnc||"hex"),S=I.toArray(o.nonce,o.nonceEnc||"hex"),D=I.toArray(o.pers,o.persEnc||"hex");M(w.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(w,S,D)}q.exports=P,P.prototype._init=function(w,S,D){var A=w.concat(S).concat(D);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var g=0;g=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(w.concat(D||[])),this._reseed=1},P.prototype.generate=function(w,S,D,A){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof S&&(A=D,D=S,S=null),D&&(D=I.toArray(D,A||"hex"),this._update(D));for(var g=[];g.length{k.read=function(x,B,I,M,P){var o,w,S=8*P-M-1,D=(1<>1,g=-7,p=I?P-1:0,b=I?-1:1,y=x[B+p];for(p+=b,o=y&(1<<-g)-1,y>>=-g,g+=S;g>0;o=256*o+x[B+p],p+=b,g-=8);for(w=o&(1<<-g)-1,o>>=-g,g+=M;g>0;w=256*w+x[B+p],p+=b,g-=8);if(0===o)o=1-A;else{if(o===D)return w?NaN:1/0*(y?-1:1);w+=Math.pow(2,M),o-=A}return(y?-1:1)*w*Math.pow(2,o-M)},k.write=function(x,B,I,M,P,o){var w,S,D,A=8*o-P-1,g=(1<>1,b=23===P?Math.pow(2,-24)-Math.pow(2,-77):0,y=M?0:o-1,m=M?1:-1,E=B<0||0===B&&1/B<0?1:0;for(B=Math.abs(B),isNaN(B)||B===1/0?(S=isNaN(B)?1:0,w=g):(w=Math.floor(Math.log(B)/Math.LN2),B*(D=Math.pow(2,-w))<1&&(w--,D*=2),(B+=w+p>=1?b/D:b*Math.pow(2,1-p))*D>=2&&(w++,D/=2),w+p>=g?(S=0,w=g):w+p>=1?(S=(B*D-1)*Math.pow(2,P),w+=p):(S=B*Math.pow(2,p-1)*Math.pow(2,P),w=0));P>=8;x[I+y]=255&S,y+=m,S/=256,P-=8);for(w=w<0;x[I+y]=255&w,y+=m,w/=256,A-=8);x[I+y-m]|=128*E}},59879:q=>{q.exports="function"==typeof Object.create?function(x,B){B&&(x.super_=B,x.prototype=Object.create(B.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:function(x,B){if(B){x.super_=B;var I=function(){};I.prototype=B.prototype,x.prototype=new I,x.prototype.constructor=x}}},53264:(q,k,x)=>{"use strict";var B=x(59879),I=x(5414),M=x(55859).Buffer,P=new Array(16);function o(){I.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function w(p,b){return p<>>32-b}function S(p,b,y,m,E,C,L){return w(p+(b&y|~b&m)+E+C|0,L)+b|0}function D(p,b,y,m,E,C,L){return w(p+(b&m|y&~m)+E+C|0,L)+b|0}function A(p,b,y,m,E,C,L){return w(p+(b^y^m)+E+C|0,L)+b|0}function g(p,b,y,m,E,C,L){return w(p+(y^(b|~m))+E+C|0,L)+b|0}B(o,I),o.prototype._update=function(){for(var p=P,b=0;b<16;++b)p[b]=this._block.readInt32LE(4*b);var y=this._a,m=this._b,E=this._c,C=this._d;y=S(y,m,E,C,p[0],3614090360,7),C=S(C,y,m,E,p[1],3905402710,12),E=S(E,C,y,m,p[2],606105819,17),m=S(m,E,C,y,p[3],3250441966,22),y=S(y,m,E,C,p[4],4118548399,7),C=S(C,y,m,E,p[5],1200080426,12),E=S(E,C,y,m,p[6],2821735955,17),m=S(m,E,C,y,p[7],4249261313,22),y=S(y,m,E,C,p[8],1770035416,7),C=S(C,y,m,E,p[9],2336552879,12),E=S(E,C,y,m,p[10],4294925233,17),m=S(m,E,C,y,p[11],2304563134,22),y=S(y,m,E,C,p[12],1804603682,7),C=S(C,y,m,E,p[13],4254626195,12),E=S(E,C,y,m,p[14],2792965006,17),y=D(y,m=S(m,E,C,y,p[15],1236535329,22),E,C,p[1],4129170786,5),C=D(C,y,m,E,p[6],3225465664,9),E=D(E,C,y,m,p[11],643717713,14),m=D(m,E,C,y,p[0],3921069994,20),y=D(y,m,E,C,p[5],3593408605,5),C=D(C,y,m,E,p[10],38016083,9),E=D(E,C,y,m,p[15],3634488961,14),m=D(m,E,C,y,p[4],3889429448,20),y=D(y,m,E,C,p[9],568446438,5),C=D(C,y,m,E,p[14],3275163606,9),E=D(E,C,y,m,p[3],4107603335,14),m=D(m,E,C,y,p[8],1163531501,20),y=D(y,m,E,C,p[13],2850285829,5),C=D(C,y,m,E,p[2],4243563512,9),E=D(E,C,y,m,p[7],1735328473,14),y=A(y,m=D(m,E,C,y,p[12],2368359562,20),E,C,p[5],4294588738,4),C=A(C,y,m,E,p[8],2272392833,11),E=A(E,C,y,m,p[11],1839030562,16),m=A(m,E,C,y,p[14],4259657740,23),y=A(y,m,E,C,p[1],2763975236,4),C=A(C,y,m,E,p[4],1272893353,11),E=A(E,C,y,m,p[7],4139469664,16),m=A(m,E,C,y,p[10],3200236656,23),y=A(y,m,E,C,p[13],681279174,4),C=A(C,y,m,E,p[0],3936430074,11),E=A(E,C,y,m,p[3],3572445317,16),m=A(m,E,C,y,p[6],76029189,23),y=A(y,m,E,C,p[9],3654602809,4),C=A(C,y,m,E,p[12],3873151461,11),E=A(E,C,y,m,p[15],530742520,16),y=g(y,m=A(m,E,C,y,p[2],3299628645,23),E,C,p[0],4096336452,6),C=g(C,y,m,E,p[7],1126891415,10),E=g(E,C,y,m,p[14],2878612391,15),m=g(m,E,C,y,p[5],4237533241,21),y=g(y,m,E,C,p[12],1700485571,6),C=g(C,y,m,E,p[3],2399980690,10),E=g(E,C,y,m,p[10],4293915773,15),m=g(m,E,C,y,p[1],2240044497,21),y=g(y,m,E,C,p[8],1873313359,6),C=g(C,y,m,E,p[15],4264355552,10),E=g(E,C,y,m,p[6],2734768916,15),m=g(m,E,C,y,p[13],1309151649,21),y=g(y,m,E,C,p[4],4149444226,6),C=g(C,y,m,E,p[11],3174756917,10),E=g(E,C,y,m,p[2],718787259,15),m=g(m,E,C,y,p[9],3951481745,21),this._a=this._a+y|0,this._b=this._b+m|0,this._c=this._c+E|0,this._d=this._d+C|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var p=M.allocUnsafe(16);return p.writeInt32LE(this._a,0),p.writeInt32LE(this._b,4),p.writeInt32LE(this._c,8),p.writeInt32LE(this._d,12),p},q.exports=o},14398:(q,k,x)=>{var B=x(31770),I=x(34761);function M(P){this.rand=P||new I.Rand}q.exports=M,M.create=function(o){return new M(o)},M.prototype._randbelow=function(o){var w=o.bitLength(),S=Math.ceil(w/8);do{var D=new B(this.rand.generate(S))}while(D.cmp(o)>=0);return D},M.prototype._randrange=function(o,w){var S=w.sub(o);return o.add(this._randbelow(S))},M.prototype.test=function(o,w,S){var D=o.bitLength(),A=B.mont(o),g=new B(1).toRed(A);w||(w=Math.max(1,D/48|0));for(var p=o.subn(1),b=0;!p.testn(b);b++);for(var y=o.shrn(b),m=p.toRed(A);w>0;w--){var C=this._randrange(new B(2),p);S&&S(C);var L=C.toRed(A).redPow(y);if(0!==L.cmp(g)&&0!==L.cmp(m)){for(var R=1;R0;w--){var m=this._randrange(new B(2),g),E=o.gcd(m);if(0!==E.cmpn(1))return E;var C=m.toRed(D).redPow(b);if(0!==C.cmp(A)&&0!==C.cmp(y)){for(var L=1;L=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},86055:q=>{function k(x,B){if(!x)throw new Error(B||"Assertion failed")}q.exports=k,k.equal=function(B,I,M){if(B!=I)throw new Error(M||"Assertion failed: "+B+" != "+I)}},14869:(q,k)=>{"use strict";var x=k;function I(P){return 1===P.length?"0"+P:P}function M(P){for(var o="",w=0;w>8,g=255&D;A?w.push(A,g):w.push(g)}return w},x.zero2=I,x.toHex=M,x.encode=function(o,w){return"hex"===w?M(o):o}},44673:(q,k,x)=>{"use strict";var B=x(62016);k.certificate=x(96240);var I=B.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});k.RSAPrivateKey=I;var M=B.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});k.RSAPublicKey=M;var P=B.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});k.PublicKey=P;var o=B.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),w=B.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});k.PrivateKey=w;var S=B.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});k.EncryptedPrivateKey=S;var D=B.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});k.DSAPrivateKey=D,k.DSAparam=B.define("DSAparam",function(){this.int()});var A=B.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(g),this.key("publicKey").optional().explicit(1).bitstr())});k.ECPrivateKey=A;var g=B.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});k.signature=B.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},96240:(q,k,x)=>{"use strict";var B=x(62016),I=B.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),M=B.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),P=B.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=B.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(P),this.key("subjectPublicKey").bitstr())}),w=B.define("RelativeDistinguishedName",function(){this.setof(M)}),S=B.define("RDNSequence",function(){this.seqof(w)}),D=B.define("Name",function(){this.choice({rdnSequence:this.use(S)})}),A=B.define("Validity",function(){this.seq().obj(this.key("notBefore").use(I),this.key("notAfter").use(I))}),g=B.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=B.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(P),this.key("issuer").use(D),this.key("validity").use(A),this.key("subject").use(D),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),b=B.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(P),this.key("signatureValue").bitstr())});q.exports=b},61553:(q,k,x)=>{var B=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,I=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,M=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,P=x(92367),o=x(39586),w=x(55859).Buffer;q.exports=function(S,D){var p,A=S.toString(),g=A.match(B);if(g){var y="aes"+g[1],m=w.from(g[2],"hex"),E=w.from(g[3].replace(/[\r\n]/g,""),"base64"),C=P(D,m.slice(0,8),parseInt(g[1],10)).key,L=[],R=o.createDecipheriv(y,C,m);L.push(R.update(E)),L.push(R.final()),p=w.concat(L)}else{var b=A.match(M);p=w.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:A.match(I)[1],data:p}}},81997:(q,k,x)=>{var B=x(44673),I=x(22562),M=x(61553),P=x(39586),o=x(14161),w=x(55859).Buffer;function S(A){var g;"object"==typeof A&&!w.isBuffer(A)&&(g=A.passphrase,A=A.key),"string"==typeof A&&(A=w.from(A));var m,E,p=M(A,g),b=p.tag,y=p.data;switch(b){case"CERTIFICATE":E=B.certificate.decode(y,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=B.PublicKey.decode(y,"der")),m=E.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return B.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=B.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+m)}case"ENCRYPTED PRIVATE KEY":y=function D(A,g){var p=A.algorithm.decrypt.kde.kdeparams.salt,b=parseInt(A.algorithm.decrypt.kde.kdeparams.iters.toString(),10),y=I[A.algorithm.decrypt.cipher.algo.join(".")],m=A.algorithm.decrypt.cipher.iv,E=A.subjectPrivateKey,C=parseInt(y.split("-")[1],10)/8,L=o.pbkdf2Sync(g,p,b,C,"sha1"),R=P.createDecipheriv(y,L,m),U=[];return U.push(R.update(E)),U.push(R.final()),w.concat(U)}(y=B.EncryptedPrivateKey.decode(y,"der"),g);case"PRIVATE KEY":switch(m=(E=B.PrivateKey.decode(y,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return B.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:B.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=B.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+m)}case"RSA PUBLIC KEY":return B.RSAPublicKey.decode(y,"der");case"RSA PRIVATE KEY":return B.RSAPrivateKey.decode(y,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:B.DSAPrivateKey.decode(y,"der")};case"EC PRIVATE KEY":return{curve:(y=B.ECPrivateKey.decode(y,"der")).parameters.value,privateKey:y.privateKey};default:throw new Error("unknown key type "+b)}}q.exports=S,S.signature=B.signature},14161:(q,k,x)=>{k.pbkdf2=x(51898),k.pbkdf2Sync=x(205)},51898:(q,k,x)=>{var w,p,B=x(55859).Buffer,I=x(79024),M=x(85657),P=x(205),o=x(16933),S=global.crypto&&global.crypto.subtle,D={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},A=[];function b(){return p||(p=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function y(E,C,L,R,U){return S.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(O){return S.deriveBits({name:"PBKDF2",salt:C,iterations:L,hash:{name:U}},O,R<<3)}).then(function(O){return B.from(O)})}q.exports=function(E,C,L,R,U,O){"function"==typeof U&&(O=U,U=void 0);var j=D[(U=U||"sha1").toLowerCase()];if(j&&"function"==typeof global.Promise){if(I(L,R),E=o(E,M,"Password"),C=o(C,M,"Salt"),"function"!=typeof O)throw new Error("No callback provided to pbkdf2");!function m(E,C){E.then(function(L){b()(function(){C(null,L)})},function(L){b()(function(){C(L)})})}(function g(E){if(global.process&&!global.process.browser||!S||!S.importKey||!S.deriveBits)return Promise.resolve(!1);if(void 0!==A[E])return A[E];var C=y(w=w||B.alloc(8),w,10,128,E).then(function(){return!0}).catch(function(){return!1});return A[E]=C,C}(j).then(function(K){return K?y(E,C,L,R,j):P(E,C,L,R,U)}),O)}else b()(function(){var K;try{K=P(E,C,L,R,U)}catch(Z){return O(Z)}O(null,K)})}},85657:q=>{var k;k=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",q.exports=k},79024:q=>{var k=Math.pow(2,30)-1;q.exports=function(x,B){if("number"!=typeof x)throw new TypeError("Iterations not a number");if(x<0)throw new TypeError("Bad iterations");if("number"!=typeof B)throw new TypeError("Key length not a number");if(B<0||B>k||B!=B)throw new TypeError("Bad key length")}},205:(q,k,x)=>{var B=x(84464),I=x(75207),M=x(45829),P=x(55859).Buffer,o=x(79024),w=x(85657),S=x(16933),D=P.alloc(128),A={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function g(y,m,E){var C=function p(y){return"rmd160"===y||"ripemd160"===y?function E(C){return(new I).update(C).digest()}:"md5"===y?B:function m(C){return M(y).update(C).digest()}}(y),L="sha512"===y||"sha384"===y?128:64;m.length>L?m=C(m):m.length{var B=x(55859).Buffer;q.exports=function(I,M,P){if(B.isBuffer(I))return I;if("string"==typeof I)return B.from(I,M);if(ArrayBuffer.isView(I))return B.from(I.buffer);throw new TypeError(P+" must be a string, a Buffer, a typed array or a DataView")}},37537:(q,k,x)=>{k.publicEncrypt=x(74760),k.privateDecrypt=x(31548),k.privateEncrypt=function(I,M){return k.publicEncrypt(I,M,!0)},k.publicDecrypt=function(I,M){return k.privateDecrypt(I,M,!0)}},30444:(q,k,x)=>{var B=x(12506),I=x(55859).Buffer;function M(P){var o=I.allocUnsafe(4);return o.writeUInt32BE(P,0),o}q.exports=function(P,o){for(var D,w=I.alloc(0),S=0;w.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},31548:(q,k,x)=>{var B=x(81997),I=x(30444),M=x(84541),P=x(46494),o=x(85842),w=x(12506),S=x(6829),D=x(55859).Buffer;q.exports=function(y,m,E){var C;C=y.padding?y.padding:E?1:4;var U,L=B(y),R=L.modulus.byteLength();if(m.length>R||new P(m).cmp(L.modulus)>=0)throw new Error("decryption error");U=E?S(new P(m),L):o(m,L);var O=D.alloc(R-U.length);if(U=D.concat([O,U],R),4===C)return function A(b,y){var m=b.modulus.byteLength(),E=w("sha1").update(D.alloc(0)).digest(),C=E.length;if(0!==y[0])throw new Error("decryption error");var L=y.slice(1,C+1),R=y.slice(C+1),U=M(L,I(R,C)),O=M(R,I(U,m-C-1));if(function p(b,y){b=D.from(b),y=D.from(y);var m=0,E=b.length;b.length!==y.length&&(m++,E=Math.min(b.length,y.length));for(var C=-1;++C=y.length){L++;break}var R=y.slice(2,C-1);if(("0002"!==E.toString("hex")&&!m||"0001"!==E.toString("hex")&&m)&&L++,R.length<8&&L++,L)throw new Error("decryption error");return y.slice(C)}(0,U,E);if(3===C)return U;throw new Error("unknown padding")}},74760:(q,k,x)=>{var B=x(81997),I=x(16589),M=x(12506),P=x(30444),o=x(84541),w=x(46494),S=x(6829),D=x(85842),A=x(55859).Buffer;q.exports=function(m,E,C){var L;L=m.padding?m.padding:C?1:4;var U,R=B(m);if(4===L)U=function g(y,m){var E=y.modulus.byteLength(),C=m.length,L=M("sha1").update(A.alloc(0)).digest(),R=L.length,U=2*R;if(C>E-U-2)throw new Error("message too long");var O=A.alloc(E-C-U-2),j=E-R-1,K=I(R),Z=o(A.concat([L,O,A.alloc(1,1),m],j),P(K,j)),Q=o(K,P(Z,R));return new w(A.concat([A.alloc(1),Q,Z],E))}(R,E);else if(1===L)U=function p(y,m,E){var R,C=m.length,L=y.modulus.byteLength();if(C>L-11)throw new Error("message too long");return R=E?A.alloc(L-C-3,255):function b(y){for(var R,m=A.allocUnsafe(y),E=0,C=I(2*y),L=0;E=0)throw new Error("data too long for modulus")}return C?D(U,R):S(U,R)}},6829:(q,k,x)=>{var B=x(46494),I=x(55859).Buffer;q.exports=function M(P,o){return I.from(P.toRed(B.mont(o.modulus)).redPow(new B(o.publicExponent)).fromRed().toArray())}},84541:q=>{q.exports=function(x,B){for(var I=x.length,M=-1;++M{"use strict";var B=65536,P=x(55859).Buffer,o=global.crypto||global.msCrypto;q.exports=o&&o.getRandomValues?function w(S,D){if(S>4294967295)throw new RangeError("requested too many random bytes");var A=P.allocUnsafe(S);if(S>0)if(S>B)for(var g=0;g{"use strict";function B(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var I=x(55859),M=x(16589),P=I.Buffer,o=I.kMaxLength,w=global.crypto||global.msCrypto,S=Math.pow(2,32)-1;function D(y,m){if("number"!=typeof y||y!=y)throw new TypeError("offset must be a number");if(y>S||y<0)throw new TypeError("offset must be a uint32");if(y>o||y>m)throw new RangeError("offset out of range")}function A(y,m,E){if("number"!=typeof y||y!=y)throw new TypeError("size must be a number");if(y>S||y<0)throw new TypeError("size must be a uint32");if(y+m>E||y>o)throw new RangeError("buffer too small")}function p(y,m,E,C){if(process.browser){var R=new Uint8Array(y.buffer,m,E);return w.getRandomValues(R),C?void process.nextTick(function(){C(null,y)}):y}if(!C)return M(E).copy(y,m),y;M(E,function(O,j){if(O)return C(O);j.copy(y,m),C(null,y)})}w&&w.getRandomValues||!process.browser?(k.randomFill=function g(y,m,E,C){if(!(P.isBuffer(y)||y instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof m)C=m,m=0,E=y.length;else if("function"==typeof E)C=E,E=y.length-m;else if("function"!=typeof C)throw new TypeError('"cb" argument must be a function');return D(m,y.length),A(E,m,y.length),p(y,m,E,C)},k.randomFillSync=function b(y,m,E){if(typeof m>"u"&&(m=0),!(P.isBuffer(y)||y instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return D(m,y.length),void 0===E&&(E=y.length-m),A(E,m,y.length),p(y,m,E)}):(k.randomFill=B,k.randomFillSync=B)},48230:q=>{"use strict";var x={};function B(w,S,D){D||(D=Error);var g=function(p){function b(y,m,E){return p.call(this,function A(p,b,y){return"string"==typeof S?S:S(p,b,y)}(y,m,E))||this}return function k(w,S){w.prototype=Object.create(S.prototype),w.prototype.constructor=w,w.__proto__=S}(b,p),b}(D);g.prototype.name=D.name,g.prototype.code=w,x[w]=g}function I(w,S){if(Array.isArray(w)){var D=w.length;return w=w.map(function(A){return String(A)}),D>2?"one of ".concat(S," ").concat(w.slice(0,D-1).join(", "),", or ")+w[D-1]:2===D?"one of ".concat(S," ").concat(w[0]," or ").concat(w[1]):"of ".concat(S," ").concat(w[0])}return"of ".concat(S," ").concat(String(w))}B("ERR_INVALID_OPT_VALUE",function(w,S){return'The value "'+S+'" is invalid for option "'+w+'"'},TypeError),B("ERR_INVALID_ARG_TYPE",function(w,S,D){var A,g;if("string"==typeof S&&function M(w,S,D){return w.substr(!D||D<0?0:+D,S.length)===S}(S,"not ")?(A="must not be",S=S.replace(/^not /,"")):A="must be",function P(w,S,D){return(void 0===D||D>w.length)&&(D=w.length),w.substring(D-S.length,D)===S}(w," argument"))g="The ".concat(w," ").concat(A," ").concat(I(S,"type"));else{var p=function o(w,S,D){return"number"!=typeof D&&(D=0),!(D+S.length>w.length)&&-1!==w.indexOf(S,D)}(w,".")?"property":"argument";g='The "'.concat(w,'" ').concat(p," ").concat(A," ").concat(I(S,"type"))}return g+". Received type ".concat(typeof D)},TypeError),B("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),B("ERR_METHOD_NOT_IMPLEMENTED",function(w){return"The "+w+" method is not implemented"}),B("ERR_STREAM_PREMATURE_CLOSE","Premature close"),B("ERR_STREAM_DESTROYED",function(w){return"Cannot call "+w+" after a stream was destroyed"}),B("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),B("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),B("ERR_STREAM_WRITE_AFTER_END","write after end"),B("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),B("ERR_UNKNOWN_ENCODING",function(w){return"Unknown encoding: "+w},TypeError),B("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),q.exports.q=x},20942:(q,k,x)=>{"use strict";var B=Object.keys||function(g){var p=[];for(var b in g)p.push(b);return p};q.exports=S;var I=x(32833),M=x(37807);x(59879)(S,I);for(var P=B(M.prototype),o=0;o{"use strict";q.exports=I;var B=x(55431);function I(M){if(!(this instanceof I))return new I(M);B.call(this,M)}x(59879)(I,B),I.prototype._transform=function(M,P,o){o(null,M)}},32833:(q,k,x)=>{"use strict";var B;q.exports=_,_.ReadableState=X,x(93105);var g,M=function(je,Ne){return je.listeners(Ne).length},P=x(75112),o=x(3875).Buffer,w=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},A=x(94616);g=A&&A.debuglog?A.debuglog("stream"):function(){};var O,j,K,p=x(39370),b=x(10806),m=x(12903).getHighWaterMark,E=x(48230).q,C=E.ERR_INVALID_ARG_TYPE,L=E.ERR_STREAM_PUSH_AFTER_EOF,R=E.ERR_METHOD_NOT_IMPLEMENTED,U=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;x(59879)(_,P);var Z=b.errorOrDestroy,Q=["error","close","destroy","pause","resume"];function X(ue,je,Ne){B=B||x(20942),"boolean"!=typeof Ne&&(Ne=je instanceof B),this.objectMode=!!(ue=ue||{}).objectMode,Ne&&(this.objectMode=this.objectMode||!!ue.readableObjectMode),this.highWaterMark=m(this,ue,"readableHighWaterMark",Ne),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==ue.emitClose,this.autoDestroy=!!ue.autoDestroy,this.destroyed=!1,this.defaultEncoding=ue.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ue.encoding&&(O||(O=x(32519).s),this.decoder=new O(ue.encoding),this.encoding=ue.encoding)}function _(ue){if(B=B||x(20942),!(this instanceof _))return new _(ue);this._readableState=new X(ue,this,this instanceof B),this.readable=!0,ue&&("function"==typeof ue.read&&(this._read=ue.read),"function"==typeof ue.destroy&&(this._destroy=ue.destroy)),P.call(this)}function t(ue,je,Ne,Ye,Et){g("readableAddChunk",je);var lt,ot=ue._readableState;if(null===je)ot.reading=!1,function d(ue,je){if(g("onEofChunk"),!je.ended){if(je.decoder){var Ne=je.decoder.end();Ne&&Ne.length&&(je.buffer.push(Ne),je.length+=je.objectMode?1:Ne.length)}je.ended=!0,je.sync?c(ue):(je.needReadable=!1,je.emittedReadable||(je.emittedReadable=!0,r(ue)))}}(ue,ot);else if(Et||(lt=function s(ue,je){var Ne;return!function D(ue){return o.isBuffer(ue)||ue instanceof w}(je)&&"string"!=typeof je&&void 0!==je&&!ue.objectMode&&(Ne=new C("chunk",["string","Buffer","Uint8Array"],je)),Ne}(ot,je)),lt)Z(ue,lt);else if(ot.objectMode||je&&je.length>0)if("string"!=typeof je&&!ot.objectMode&&Object.getPrototypeOf(je)!==o.prototype&&(je=function S(ue){return o.from(ue)}(je)),Ye)ot.endEmitted?Z(ue,new U):a(ue,ot,je,!0);else if(ot.ended)Z(ue,new L);else{if(ot.destroyed)return!1;ot.reading=!1,ot.decoder&&!Ne?(je=ot.decoder.write(je),ot.objectMode||0!==je.length?a(ue,ot,je,!1):h(ue,ot)):a(ue,ot,je,!1)}else Ye||(ot.reading=!1,h(ue,ot));return!ot.ended&&(ot.lengthje.highWaterMark&&(je.highWaterMark=function i(ue){return ue>=e?ue=e:(ue--,ue|=ue>>>1,ue|=ue>>>2,ue|=ue>>>4,ue|=ue>>>8,ue|=ue>>>16,ue++),ue}(ue)),ue<=je.length?ue:je.ended?je.length:(je.needReadable=!0,0))}function c(ue){var je=ue._readableState;g("emitReadable",je.needReadable,je.emittedReadable),je.needReadable=!1,je.emittedReadable||(g("emitReadable",je.flowing),je.emittedReadable=!0,process.nextTick(r,ue))}function r(ue){var je=ue._readableState;g("emitReadable_",je.destroyed,je.length,je.ended),!je.destroyed&&(je.length||je.ended)&&(ue.emit("readable"),je.emittedReadable=!1),je.needReadable=!je.flowing&&!je.ended&&je.length<=je.highWaterMark,Ee(ue)}function h(ue,je){je.readingMore||(je.readingMore=!0,process.nextTick(F,ue,je))}function F(ue,je){for(;!je.reading&&!je.ended&&(je.length0,je.resumeScheduled&&!je.paused?je.flowing=!0:ue.listenerCount("data")>0&&ue.resume()}function ae(ue){g("readable nexttick read 0"),ue.read(0)}function fe(ue,je){g("resume",je.reading),je.reading||ue.read(0),je.resumeScheduled=!1,ue.emit("resume"),Ee(ue),je.flowing&&!je.reading&&ue.read(0)}function Ee(ue){var je=ue._readableState;for(g("flow",je.flowing);je.flowing&&null!==ue.read(););}function ee(ue,je){return 0===je.length?null:(je.objectMode?Ne=je.buffer.shift():!ue||ue>=je.length?(Ne=je.decoder?je.buffer.join(""):1===je.buffer.length?je.buffer.first():je.buffer.concat(je.length),je.buffer.clear()):Ne=je.buffer.consume(ue,je.decoder),Ne);var Ne}function se(ue){var je=ue._readableState;g("endReadable",je.endEmitted),je.endEmitted||(je.ended=!0,process.nextTick(ze,je,ue))}function ze(ue,je){if(g("endReadableNT",ue.endEmitted,ue.length),!ue.endEmitted&&0===ue.length&&(ue.endEmitted=!0,je.readable=!1,je.emit("end"),ue.autoDestroy)){var Ne=je._writableState;(!Ne||Ne.autoDestroy&&Ne.finished)&&je.destroy()}}function ye(ue,je){for(var Ne=0,Ye=ue.length;Ne=je.highWaterMark:je.length>0)||je.ended))return g("read: emitReadable",je.length,je.ended),0===je.length&&je.ended?se(this):c(this),null;if(0===(ue=u(ue,je))&&je.ended)return 0===je.length&&se(this),null;var Et,Ye=je.needReadable;return g("need readable",Ye),(0===je.length||je.length-ue0?ee(ue,je):null)?(je.needReadable=je.length<=je.highWaterMark,ue=0):(je.length-=ue,je.awaitDrain=0),0===je.length&&(je.ended||(je.needReadable=!0),Ne!==ue&&je.ended&&se(this)),null!==Et&&this.emit("data",Et),Et},_.prototype._read=function(ue){Z(this,new R("_read()"))},_.prototype.pipe=function(ue,je){var Ne=this,Ye=this._readableState;switch(Ye.pipesCount){case 0:Ye.pipes=ue;break;case 1:Ye.pipes=[Ye.pipes,ue];break;default:Ye.pipes.push(ue)}Ye.pipesCount+=1,g("pipe count=%d opts=%j",Ye.pipesCount,je);var ot=je&&!1===je.end||ue===process.stdout||ue===process.stderr?z:Lt;function Lt(){g("onend"),ue.end()}Ye.endEmitted?process.nextTick(ot):Ne.once("end",ot),ue.on("unpipe",function lt(G,re){g("onunpipe"),G===Ne&&re&&!1===re.hasUnpiped&&(re.hasUnpiped=!0,function Ue(){g("cleanup"),ue.removeListener("close",Le),ue.removeListener("finish",Y),ue.removeListener("drain",ct),ue.removeListener("error",Ve),ue.removeListener("unpipe",lt),Ne.removeListener("end",Lt),Ne.removeListener("end",z),Ne.removeListener("data",Se),He=!0,Ye.awaitDrain&&(!ue._writableState||ue._writableState.needDrain)&&ct()}())});var ct=function T(ue){return function(){var Ne=ue._readableState;g("pipeOnDrain",Ne.awaitDrain),Ne.awaitDrain&&Ne.awaitDrain--,0===Ne.awaitDrain&&M(ue,"data")&&(Ne.flowing=!0,Ee(ue))}}(Ne);ue.on("drain",ct);var He=!1;function Se(G){g("ondata");var re=ue.write(G);g("dest.write",re),!1===re&&((1===Ye.pipesCount&&Ye.pipes===ue||Ye.pipesCount>1&&-1!==ye(Ye.pipes,ue))&&!He&&(g("false write response, pause",Ye.awaitDrain),Ye.awaitDrain++),Ne.pause())}function Ve(G){g("onerror",G),z(),ue.removeListener("error",Ve),0===M(ue,"error")&&Z(ue,G)}function Le(){ue.removeListener("finish",Y),z()}function Y(){g("onfinish"),ue.removeListener("close",Le),z()}function z(){g("unpipe"),Ne.unpipe(ue)}return Ne.on("data",Se),function W(ue,je,Ne){if("function"==typeof ue.prependListener)return ue.prependListener(je,Ne);ue._events&&ue._events[je]?Array.isArray(ue._events[je])?ue._events[je].unshift(Ne):ue._events[je]=[Ne,ue._events[je]]:ue.on(je,Ne)}(ue,"error",Ve),ue.once("close",Le),ue.once("finish",Y),ue.emit("pipe",Ne),Ye.flowing||(g("pipe resume"),Ne.resume()),ue},_.prototype.unpipe=function(ue){var je=this._readableState,Ne={hasUnpiped:!1};if(0===je.pipesCount)return this;if(1===je.pipesCount)return ue&&ue!==je.pipes||(ue||(ue=je.pipes),je.pipes=null,je.pipesCount=0,je.flowing=!1,ue&&ue.emit("unpipe",this,Ne)),this;if(!ue){var Ye=je.pipes,Et=je.pipesCount;je.pipes=null,je.pipesCount=0,je.flowing=!1;for(var ot=0;ot0,!1!==Ye.flowing&&this.resume()):"readable"===ue&&!Ye.endEmitted&&!Ye.readableListening&&(Ye.readableListening=Ye.needReadable=!0,Ye.flowing=!1,Ye.emittedReadable=!1,g("on readable",Ye.length,Ye.reading),Ye.length?c(this):Ye.reading||process.nextTick(ae,this)),Ne},_.prototype.removeListener=function(ue,je){var Ne=P.prototype.removeListener.call(this,ue,je);return"readable"===ue&&process.nextTick(H,this),Ne},_.prototype.removeAllListeners=function(ue){var je=P.prototype.removeAllListeners.apply(this,arguments);return("readable"===ue||void 0===ue)&&process.nextTick(H,this),je},_.prototype.resume=function(){var ue=this._readableState;return ue.flowing||(g("resume"),ue.flowing=!ue.readableListening,function Ae(ue,je){je.resumeScheduled||(je.resumeScheduled=!0,process.nextTick(fe,ue,je))}(this,ue)),ue.paused=!1,this},_.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(ue){var je=this,Ne=this._readableState,Ye=!1;for(var Et in ue.on("end",function(){if(g("wrapped end"),Ne.decoder&&!Ne.ended){var lt=Ne.decoder.end();lt&<.length&&je.push(lt)}je.push(null)}),ue.on("data",function(lt){g("wrapped data"),Ne.decoder&&(lt=Ne.decoder.write(lt)),Ne.objectMode&&null==lt||!(Ne.objectMode||lt&<.length)||je.push(lt)||(Ye=!0,ue.pause())}),ue)void 0===this[Et]&&"function"==typeof ue[Et]&&(this[Et]=function(Lt){return function(){return ue[Lt].apply(ue,arguments)}}(Et));for(var ot=0;ot{"use strict";q.exports=D;var B=x(48230).q,I=B.ERR_METHOD_NOT_IMPLEMENTED,M=B.ERR_MULTIPLE_CALLBACK,P=B.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=B.ERR_TRANSFORM_WITH_LENGTH_0,w=x(20942);function S(p,b){var y=this._transformState;y.transforming=!1;var m=y.writecb;if(null===m)return this.emit("error",new M);y.writechunk=null,y.writecb=null,null!=b&&this.push(b),m(p);var E=this._readableState;E.reading=!1,(E.needReadable||E.length{"use strict";function I(Ee){var ee=this;this.next=null,this.entry=null,this.finish=function(){!function fe(Ee,ee,se){var ze=Ee.entry;for(Ee.entry=null;ze;){var ye=ze.callback;ee.pendingcb--,ye(se),ze=ze.next}ee.corkedRequestsFree.next=Ee}(ee,Ee)}}var M;q.exports=X,X.WritableState=Q;var W,P={deprecate:x(15822)},o=x(75112),w=x(3875).Buffer,S=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},g=x(10806),b=x(12903).getHighWaterMark,y=x(48230).q,m=y.ERR_INVALID_ARG_TYPE,E=y.ERR_METHOD_NOT_IMPLEMENTED,C=y.ERR_MULTIPLE_CALLBACK,L=y.ERR_STREAM_CANNOT_PIPE,R=y.ERR_STREAM_DESTROYED,U=y.ERR_STREAM_NULL_VALUES,O=y.ERR_STREAM_WRITE_AFTER_END,j=y.ERR_UNKNOWN_ENCODING,K=g.errorOrDestroy;function Z(){}function Q(Ee,ee,se){M=M||x(20942),"boolean"!=typeof se&&(se=ee instanceof M),this.objectMode=!!(Ee=Ee||{}).objectMode,se&&(this.objectMode=this.objectMode||!!Ee.writableObjectMode),this.highWaterMark=b(this,Ee,"writableHighWaterMark",se),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Ee.decodeStrings),this.defaultEncoding=Ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ye){!function d(Ee,ee){var se=Ee._writableState,ze=se.sync,ye=se.writecb;if("function"!=typeof ye)throw new C;if(function u(Ee){Ee.writing=!1,Ee.writecb=null,Ee.length-=Ee.writelen,Ee.writelen=0}(se),ee)!function i(Ee,ee,se,ze,ye){--ee.pendingcb,se?(process.nextTick(ye,ze),process.nextTick(ae,Ee,ee),Ee._writableState.errorEmitted=!0,K(Ee,ze)):(ye(ze),Ee._writableState.errorEmitted=!0,K(Ee,ze),ae(Ee,ee))}(Ee,se,ze,ee,ye);else{var ue=F(se)||Ee.destroyed;!ue&&!se.corked&&!se.bufferProcessing&&se.bufferedRequest&&h(Ee,se),ze?process.nextTick(c,Ee,se,ue,ye):c(Ee,se,ue,ye)}}(ee,ye)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Ee.emitClose,this.autoDestroy=!!Ee.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new I(this)}function X(Ee){var ee=this instanceof(M=M||x(20942));if(!ee&&!W.call(X,this))return new X(Ee);this._writableState=new Q(Ee,this,ee),this.writable=!0,Ee&&("function"==typeof Ee.write&&(this._write=Ee.write),"function"==typeof Ee.writev&&(this._writev=Ee.writev),"function"==typeof Ee.destroy&&(this._destroy=Ee.destroy),"function"==typeof Ee.final&&(this._final=Ee.final)),o.call(this)}function e(Ee,ee,se,ze,ye,ue,je){ee.writelen=ze,ee.writecb=je,ee.writing=!0,ee.sync=!0,ee.destroyed?ee.onwrite(new R("write")):se?Ee._writev(ye,ee.onwrite):Ee._write(ye,ue,ee.onwrite),ee.sync=!1}function c(Ee,ee,se,ze){se||function r(Ee,ee){0===ee.length&&ee.needDrain&&(ee.needDrain=!1,Ee.emit("drain"))}(Ee,ee),ee.pendingcb--,ze(),ae(Ee,ee)}function h(Ee,ee){ee.bufferProcessing=!0;var se=ee.bufferedRequest;if(Ee._writev&&se&&se.next){var ye=new Array(ee.bufferedRequestCount),ue=ee.corkedRequestsFree;ue.entry=se;for(var je=0,Ne=!0;se;)ye[je]=se,se.isBuf||(Ne=!1),se=se.next,je+=1;ye.allBuffers=Ne,e(Ee,ee,!0,ee.length,ye,"",ue.finish),ee.pendingcb++,ee.lastBufferedRequest=null,ue.next?(ee.corkedRequestsFree=ue.next,ue.next=null):ee.corkedRequestsFree=new I(ee),ee.bufferedRequestCount=0}else{for(;se;){var Ye=se.chunk;if(e(Ee,ee,!1,ee.objectMode?1:Ye.length,Ye,se.encoding,se.callback),se=se.next,ee.bufferedRequestCount--,ee.writing)break}null===se&&(ee.lastBufferedRequest=null)}ee.bufferedRequest=se,ee.bufferProcessing=!1}function F(Ee){return Ee.ending&&0===Ee.length&&null===Ee.bufferedRequest&&!Ee.finished&&!Ee.writing}function T(Ee,ee){Ee._final(function(se){ee.pendingcb--,se&&K(Ee,se),ee.prefinished=!0,Ee.emit("prefinish"),ae(Ee,ee)})}function ae(Ee,ee){var se=F(ee);if(se&&(function H(Ee,ee){!ee.prefinished&&!ee.finalCalled&&("function"!=typeof Ee._final||ee.destroyed?(ee.prefinished=!0,Ee.emit("prefinish")):(ee.pendingcb++,ee.finalCalled=!0,process.nextTick(T,Ee,ee)))}(Ee,ee),0===ee.pendingcb&&(ee.finished=!0,Ee.emit("finish"),ee.autoDestroy))){var ze=Ee._readableState;(!ze||ze.autoDestroy&&ze.endEmitted)&&Ee.destroy()}return se}x(59879)(X,o),Q.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,se=[];ee;)se.push(ee),ee=ee.next;return se},function(){try{Object.defineProperty(Q.prototype,"buffer",{get:P.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(X,Symbol.hasInstance,{value:function(ee){return!!W.call(this,ee)||this===X&&ee&&ee._writableState instanceof Q}})):W=function(ee){return ee instanceof this},X.prototype.pipe=function(){K(this,new L)},X.prototype.write=function(Ee,ee,se){var ze=this._writableState,ye=!1,ue=!ze.objectMode&&function A(Ee){return w.isBuffer(Ee)||Ee instanceof S}(Ee);return ue&&!w.isBuffer(Ee)&&(Ee=function D(Ee){return w.from(Ee)}(Ee)),"function"==typeof ee&&(se=ee,ee=null),ue?ee="buffer":ee||(ee=ze.defaultEncoding),"function"!=typeof se&&(se=Z),ze.ending?function _(Ee,ee){var se=new O;K(Ee,se),process.nextTick(ee,se)}(this,se):(ue||function t(Ee,ee,se,ze){var ye;return null===se?ye=new U:"string"!=typeof se&&!ee.objectMode&&(ye=new m("chunk",["string","Buffer"],se)),!ye||(K(Ee,ye),process.nextTick(ze,ye),!1)}(this,ze,Ee,se))&&(ze.pendingcb++,ye=function s(Ee,ee,se,ze,ye,ue){if(!se){var je=function a(Ee,ee,se){return!Ee.objectMode&&!1!==Ee.decodeStrings&&"string"==typeof ee&&(ee=w.from(ee,se)),ee}(ee,ze,ye);ze!==je&&(se=!0,ye="buffer",ze=je)}var Ne=ee.objectMode?1:ze.length;ee.length+=Ne;var Ye=ee.length-1))throw new j(ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),X.prototype._write=function(Ee,ee,se){se(new E("_write()"))},X.prototype._writev=null,X.prototype.end=function(Ee,ee,se){var ze=this._writableState;return"function"==typeof Ee?(se=Ee,Ee=null,ee=null):"function"==typeof ee&&(se=ee,ee=null),null!=Ee&&this.write(Ee,ee),ze.corked&&(ze.corked=1,this.uncork()),ze.ending||function Ae(Ee,ee,se){ee.ending=!0,ae(Ee,ee),se&&(ee.finished?process.nextTick(se):Ee.once("finish",se)),ee.ended=!0,Ee.writable=!1}(this,ze,se),this},Object.defineProperty(X.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(ee){!this._writableState||(this._writableState.destroyed=ee)}}),X.prototype.destroy=g.destroy,X.prototype._undestroy=g.undestroy,X.prototype._destroy=function(Ee,ee){ee(Ee)}},19983:(q,k,x)=>{"use strict";var B;function I(O,j,K){return j=function M(O){var j=function P(O,j){if("object"!=typeof O||null===O)return O;var K=O[Symbol.toPrimitive];if(void 0!==K){var Z=K.call(O,j||"default");if("object"!=typeof Z)return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===j?String:Number)(O)}(O,"string");return"symbol"==typeof j?j:String(j)}(j),j in O?Object.defineProperty(O,j,{value:K,enumerable:!0,configurable:!0,writable:!0}):O[j]=K,O}var o=x(6820),w=Symbol("lastResolve"),S=Symbol("lastReject"),D=Symbol("error"),A=Symbol("ended"),g=Symbol("lastPromise"),p=Symbol("handlePromise"),b=Symbol("stream");function y(O,j){return{value:O,done:j}}function m(O){var j=O[w];if(null!==j){var K=O[b].read();null!==K&&(O[g]=null,O[w]=null,O[S]=null,j(y(K,!1)))}}function E(O){process.nextTick(m,O)}var L=Object.getPrototypeOf(function(){}),R=Object.setPrototypeOf((I(B={get stream(){return this[b]},next:function(){var j=this,K=this[D];if(null!==K)return Promise.reject(K);if(this[A])return Promise.resolve(y(void 0,!0));if(this[b].destroyed)return new Promise(function(X,_){process.nextTick(function(){j[D]?_(j[D]):X(y(void 0,!0))})});var Q,Z=this[g];if(Z)Q=new Promise(function C(O,j){return function(K,Z){O.then(function(){j[A]?K(y(void 0,!0)):j[p](K,Z)},Z)}}(Z,this));else{var W=this[b].read();if(null!==W)return Promise.resolve(y(W,!1));Q=new Promise(this[p])}return this[g]=Q,Q}},Symbol.asyncIterator,function(){return this}),I(B,"return",function(){var j=this;return new Promise(function(K,Z){j[b].destroy(null,function(Q){Q?Z(Q):K(y(void 0,!0))})})}),B),L);q.exports=function(j){var K,Z=Object.create(R,(I(K={},b,{value:j,writable:!0}),I(K,w,{value:null,writable:!0}),I(K,S,{value:null,writable:!0}),I(K,D,{value:null,writable:!0}),I(K,A,{value:j._readableState.endEmitted,writable:!0}),I(K,p,{value:function(W,X){var _=Z[b].read();_?(Z[g]=null,Z[w]=null,Z[S]=null,W(y(_,!1))):(Z[w]=W,Z[S]=X)},writable:!0}),K));return Z[g]=null,o(j,function(Q){if(Q&&"ERR_STREAM_PREMATURE_CLOSE"!==Q.code){var W=Z[S];return null!==W&&(Z[g]=null,Z[w]=null,Z[S]=null,W(Q)),void(Z[D]=Q)}var X=Z[w];null!==X&&(Z[g]=null,Z[w]=null,Z[S]=null,X(y(void 0,!0))),Z[A]=!0}),j.on("readable",E.bind(null,Z)),Z}},39370:(q,k,x)=>{"use strict";function B(E,C){var L=Object.keys(E);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(E);C&&(R=R.filter(function(U){return Object.getOwnPropertyDescriptor(E,U).enumerable})),L.push.apply(L,R)}return L}function I(E){for(var C=1;C0?this.tail.next=R:this.head=R,this.tail=R,++this.length}},{key:"unshift",value:function(L){var R={data:L,next:this.head};0===this.length&&(this.tail=R),this.head=R,++this.length}},{key:"shift",value:function(){if(0!==this.length){var L=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(0===this.length)return"";for(var R=this.head,U=""+R.data;R=R.next;)U+=L+R.data;return U}},{key:"concat",value:function(L){if(0===this.length)return g.alloc(0);for(var R=g.allocUnsafe(L>>>0),U=this.head,O=0;U;)m(U.data,R,O),O+=U.data.length,U=U.next;return R}},{key:"consume",value:function(L,R){var U;return Lj.length?j.length:L;if(O+=K===j.length?j:j.slice(0,L),0==(L-=K)){K===j.length?(++U,this.head=R.next?R.next:this.tail=null):(this.head=R,R.data=j.slice(K));break}++U}return this.length-=U,O}},{key:"_getBuffer",value:function(L){var R=g.allocUnsafe(L),U=this.head,O=1;for(U.data.copy(R),L-=U.data.length;U=U.next;){var j=U.data,K=L>j.length?j.length:L;if(j.copy(R,R.length-L,0,K),0==(L-=K)){K===j.length?(++O,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=j.slice(K));break}++O}return this.length-=O,R}},{key:y,value:function(L,R){return b(this,I(I({},R),{},{depth:0,customInspect:!1}))}}]),E}()},10806:q=>{"use strict";function x(o,w){M(o,w),B(o)}function B(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function M(o,w){o.emit("error",w)}q.exports={destroy:function k(o,w){var S=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(w?w(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(M,this,o)):process.nextTick(M,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(g){!w&&g?S._writableState?S._writableState.errorEmitted?process.nextTick(B,S):(S._writableState.errorEmitted=!0,process.nextTick(x,S,g)):process.nextTick(x,S,g):w?(process.nextTick(B,S),w(g)):process.nextTick(B,S)}),this)},undestroy:function I(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function P(o,w){var S=o._readableState,D=o._writableState;S&&S.autoDestroy||D&&D.autoDestroy?o.destroy(w):o.emit("error",w)}}},6820:(q,k,x)=>{"use strict";var B=x(48230).q.ERR_STREAM_PREMATURE_CLOSE;function M(){}q.exports=function o(w,S,D){if("function"==typeof S)return o(w,null,S);S||(S={}),D=function I(w){var S=!1;return function(){if(!S){S=!0;for(var D=arguments.length,A=new Array(D),g=0;g{q.exports=function(){throw new Error("Readable.from is not available in the browser")}},36076:(q,k,x)=>{"use strict";var B,M=x(48230).q,P=M.ERR_MISSING_ARGS,o=M.ERR_STREAM_DESTROYED;function w(y){if(y)throw y}function D(y,m,E,C){C=function I(y){var m=!1;return function(){m||(m=!0,y.apply(void 0,arguments))}}(C);var L=!1;y.on("close",function(){L=!0}),void 0===B&&(B=x(6820)),B(y,{readable:m,writable:E},function(U){if(U)return C(U);L=!0,C()});var R=!1;return function(U){if(!L&&!R){if(R=!0,function S(y){return y.setHeader&&"function"==typeof y.abort}(y))return y.abort();if("function"==typeof y.destroy)return y.destroy();C(U||new o("pipe"))}}}function A(y){y()}function g(y,m){return y.pipe(m)}function p(y){return y.length&&"function"==typeof y[y.length-1]?y.pop():w}q.exports=function b(){for(var y=arguments.length,m=new Array(y),E=0;E0,function(Z){L||(L=Z),Z&&R.forEach(A),!j&&(R.forEach(A),C(L))})});return m.reduce(g)}},12903:(q,k,x)=>{"use strict";var B=x(48230).q.ERR_INVALID_OPT_VALUE;q.exports={getHighWaterMark:function M(P,o,w,S){var D=function I(P,o,w){return null!=P.highWaterMark?P.highWaterMark:o?P[w]:null}(o,S,w);if(null!=D){if(!isFinite(D)||Math.floor(D)!==D||D<0)throw new B(S?w:"highWaterMark",D);return Math.floor(D)}return P.objectMode?16:16384}}},75112:(q,k,x)=>{q.exports=x(93105).EventEmitter},18300:(q,k,x)=>{(k=q.exports=x(32833)).Stream=k,k.Readable=k,k.Writable=x(37807),k.Duplex=x(20942),k.Transform=x(55431),k.PassThrough=x(90619),k.finished=x(6820),k.pipeline=x(36076)},75207:(q,k,x)=>{"use strict";var B=x(3875).Buffer,I=x(59879),M=x(5414),P=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],S=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],D=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],A=[0,1518500249,1859775393,2400959708,2840853838],g=[1352829926,1548603684,1836072691,2053994217,0];function p(){M.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function b(R,U){return R<>>32-U}function y(R,U,O,j,K,Z,Q,W){return b(R+(U^O^j)+Z+Q|0,W)+K|0}function m(R,U,O,j,K,Z,Q,W){return b(R+(U&O|~U&j)+Z+Q|0,W)+K|0}function E(R,U,O,j,K,Z,Q,W){return b(R+((U|~O)^j)+Z+Q|0,W)+K|0}function C(R,U,O,j,K,Z,Q,W){return b(R+(U&j|O&~j)+Z+Q|0,W)+K|0}function L(R,U,O,j,K,Z,Q,W){return b(R+(U^(O|~j))+Z+Q|0,W)+K|0}I(p,M),p.prototype._update=function(){for(var R=P,U=0;U<16;++U)R[U]=this._block.readInt32LE(4*U);for(var O=0|this._a,j=0|this._b,K=0|this._c,Z=0|this._d,Q=0|this._e,W=0|this._a,X=0|this._b,_=0|this._c,t=0|this._d,a=0|this._e,s=0;s<80;s+=1){var e,i;s<16?(e=y(O,j,K,Z,Q,R[o[s]],A[0],S[s]),i=L(W,X,_,t,a,R[w[s]],g[0],D[s])):s<32?(e=m(O,j,K,Z,Q,R[o[s]],A[1],S[s]),i=C(W,X,_,t,a,R[w[s]],g[1],D[s])):s<48?(e=E(O,j,K,Z,Q,R[o[s]],A[2],S[s]),i=E(W,X,_,t,a,R[w[s]],g[2],D[s])):s<64?(e=C(O,j,K,Z,Q,R[o[s]],A[3],S[s]),i=m(W,X,_,t,a,R[w[s]],g[3],D[s])):(e=L(O,j,K,Z,Q,R[o[s]],A[4],S[s]),i=y(W,X,_,t,a,R[w[s]],g[4],D[s])),O=Q,Q=Z,Z=b(K,10),K=j,j=e,W=a,a=t,t=b(_,10),_=X,X=i}var u=this._b+K+t|0;this._b=this._c+Z+a|0,this._c=this._d+Q+W|0,this._d=this._e+O+X|0,this._e=this._a+j+_|0,this._a=u},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var R=B.alloc?B.alloc(20):new B(20);return R.writeInt32LE(this._a,0),R.writeInt32LE(this._b,4),R.writeInt32LE(this._c,8),R.writeInt32LE(this._d,12),R.writeInt32LE(this._e,16),R},q.exports=p},55859:(q,k,x)=>{var B=x(3875),I=B.Buffer;function M(o,w){for(var S in o)w[S]=o[S]}function P(o,w,S){return I(o,w,S)}I.from&&I.alloc&&I.allocUnsafe&&I.allocUnsafeSlow?q.exports=B:(M(B,k),k.Buffer=P),P.prototype=Object.create(I.prototype),M(I,P),P.from=function(o,w,S){if("number"==typeof o)throw new TypeError("Argument must not be a number");return I(o,w,S)},P.alloc=function(o,w,S){if("number"!=typeof o)throw new TypeError("Argument must be a number");var D=I(o);return void 0!==w?"string"==typeof S?D.fill(w,S):D.fill(w):D.fill(0),D},P.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return I(o)},P.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return B.SlowBuffer(o)}},88114:(q,k,x)=>{"use strict";var P,B=x(3875),I=B.Buffer,M={};for(P in B)!B.hasOwnProperty(P)||"SlowBuffer"===P||"Buffer"===P||(M[P]=B[P]);var o=M.Buffer={};for(P in I)!I.hasOwnProperty(P)||"allocUnsafe"===P||"allocUnsafeSlow"===P||(o[P]=I[P]);if(M.Buffer.prototype=I.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(w,S,D){if("number"==typeof w)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof w);if(w&&typeof w.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);return I(w,S,D)}),o.alloc||(o.alloc=function(w,S,D){if("number"!=typeof w)throw new TypeError('The "size" argument must be of type number. Received type '+typeof w);if(w<0||w>=2*(1<<30))throw new RangeError('The value "'+w+'" is invalid for option "size"');var A=I(w);return S&&0!==S.length?"string"==typeof D?A.fill(S,D):A.fill(S):A.fill(0),A}),!M.kStringMaxLength)try{M.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}M.constants||(M.constants={MAX_LENGTH:M.kMaxLength},M.kStringMaxLength&&(M.constants.MAX_STRING_LENGTH=M.kStringMaxLength)),q.exports=M},93437:(q,k,x)=>{var B=x(55859).Buffer;function I(M,P){this._block=B.alloc(M),this._finalSize=P,this._blockSize=M,this._len=0}I.prototype.update=function(M,P){"string"==typeof M&&(M=B.from(M,P=P||"utf8"));for(var o=this._block,w=this._blockSize,S=M.length,D=this._len,A=0;A=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var w=(4294967295&o)>>>0;this._block.writeUInt32BE((o-w)/4294967296,this._blockSize-8),this._block.writeUInt32BE(w,this._blockSize-4)}this._update(this._block);var D=this._hash();return M?D.toString(M):D},I.prototype._update=function(){throw new Error("_update must be implemented by subclass")},q.exports=I},45829:(q,k,x)=>{var B=q.exports=function(M){M=M.toLowerCase();var P=B[M];if(!P)throw new Error(M+" is not supported (we accept pull requests)");return new P};B.sha=x(16356),B.sha1=x(37338),B.sha224=x(4280),B.sha256=x(80857),B.sha384=x(76203),B.sha512=x(65976)},16356:(q,k,x)=>{var B=x(59879),I=x(93437),M=x(55859).Buffer,P=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function w(){this.init(),this._w=o,I.call(this,64,56)}function S(g){return g<<5|g>>>27}function D(g){return g<<30|g>>>2}function A(g,p,b,y){return 0===g?p&b|~p&y:2===g?p&b|p&y|b&y:p^b^y}B(w,I),w.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},w.prototype._update=function(g){for(var p=this._w,b=0|this._a,y=0|this._b,m=0|this._c,E=0|this._d,C=0|this._e,L=0;L<16;++L)p[L]=g.readInt32BE(4*L);for(;L<80;++L)p[L]=p[L-3]^p[L-8]^p[L-14]^p[L-16];for(var R=0;R<80;++R){var U=~~(R/20),O=S(b)+A(U,y,m,E)+C+p[R]+P[U]|0;C=E,E=m,m=D(y),y=b,b=O}this._a=b+this._a|0,this._b=y+this._b|0,this._c=m+this._c|0,this._d=E+this._d|0,this._e=C+this._e|0},w.prototype._hash=function(){var g=M.allocUnsafe(20);return g.writeInt32BE(0|this._a,0),g.writeInt32BE(0|this._b,4),g.writeInt32BE(0|this._c,8),g.writeInt32BE(0|this._d,12),g.writeInt32BE(0|this._e,16),g},q.exports=w},37338:(q,k,x)=>{var B=x(59879),I=x(93437),M=x(55859).Buffer,P=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function w(){this.init(),this._w=o,I.call(this,64,56)}function S(p){return p<<1|p>>>31}function D(p){return p<<5|p>>>27}function A(p){return p<<30|p>>>2}function g(p,b,y,m){return 0===p?b&y|~b&m:2===p?b&y|b&m|y&m:b^y^m}B(w,I),w.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},w.prototype._update=function(p){for(var b=this._w,y=0|this._a,m=0|this._b,E=0|this._c,C=0|this._d,L=0|this._e,R=0;R<16;++R)b[R]=p.readInt32BE(4*R);for(;R<80;++R)b[R]=S(b[R-3]^b[R-8]^b[R-14]^b[R-16]);for(var U=0;U<80;++U){var O=~~(U/20),j=D(y)+g(O,m,E,C)+L+b[U]+P[O]|0;L=C,C=E,E=A(m),m=y,y=j}this._a=y+this._a|0,this._b=m+this._b|0,this._c=E+this._c|0,this._d=C+this._d|0,this._e=L+this._e|0},w.prototype._hash=function(){var p=M.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},q.exports=w},4280:(q,k,x)=>{var B=x(59879),I=x(80857),M=x(93437),P=x(55859).Buffer,o=new Array(64);function w(){this.init(),this._w=o,M.call(this,64,56)}B(w,I),w.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},w.prototype._hash=function(){var S=P.allocUnsafe(28);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S},q.exports=w},80857:(q,k,x)=>{var B=x(59879),I=x(93437),M=x(55859).Buffer,P=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function w(){this.init(),this._w=o,I.call(this,64,56)}function S(y,m,E){return E^y&(m^E)}function D(y,m,E){return y&m|E&(y|m)}function A(y){return(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10)}function g(y){return(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7)}function p(y){return(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3}function b(y){return(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10}B(w,I),w.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},w.prototype._update=function(y){for(var m=this._w,E=0|this._a,C=0|this._b,L=0|this._c,R=0|this._d,U=0|this._e,O=0|this._f,j=0|this._g,K=0|this._h,Z=0;Z<16;++Z)m[Z]=y.readInt32BE(4*Z);for(;Z<64;++Z)m[Z]=b(m[Z-2])+m[Z-7]+p(m[Z-15])+m[Z-16]|0;for(var Q=0;Q<64;++Q){var W=K+g(U)+S(U,O,j)+P[Q]+m[Q]|0,X=A(E)+D(E,C,L)|0;K=j,j=O,O=U,U=R+W|0,R=L,L=C,C=E,E=W+X|0}this._a=E+this._a|0,this._b=C+this._b|0,this._c=L+this._c|0,this._d=R+this._d|0,this._e=U+this._e|0,this._f=O+this._f|0,this._g=j+this._g|0,this._h=K+this._h|0},w.prototype._hash=function(){var y=M.allocUnsafe(32);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y.writeInt32BE(this._h,28),y},q.exports=w},76203:(q,k,x)=>{var B=x(59879),I=x(65976),M=x(93437),P=x(55859).Buffer,o=new Array(160);function w(){this.init(),this._w=o,M.call(this,128,112)}B(w,I),w.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},w.prototype._hash=function(){var S=P.allocUnsafe(48);function D(A,g,p){S.writeInt32BE(A,p),S.writeInt32BE(g,p+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),S},q.exports=w},65976:(q,k,x)=>{var B=x(59879),I=x(93437),M=x(55859).Buffer,P=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function w(){this.init(),this._w=o,I.call(this,128,112)}function S(C,L,R){return R^C&(L^R)}function D(C,L,R){return C&L|R&(C|L)}function A(C,L){return(C>>>28|L<<4)^(L>>>2|C<<30)^(L>>>7|C<<25)}function g(C,L){return(C>>>14|L<<18)^(C>>>18|L<<14)^(L>>>9|C<<23)}function p(C,L){return(C>>>1|L<<31)^(C>>>8|L<<24)^C>>>7}function b(C,L){return(C>>>1|L<<31)^(C>>>8|L<<24)^(C>>>7|L<<25)}function y(C,L){return(C>>>19|L<<13)^(L>>>29|C<<3)^C>>>6}function m(C,L){return(C>>>19|L<<13)^(L>>>29|C<<3)^(C>>>6|L<<26)}function E(C,L){return C>>>0>>0?1:0}B(w,I),w.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},w.prototype._update=function(C){for(var L=this._w,R=0|this._ah,U=0|this._bh,O=0|this._ch,j=0|this._dh,K=0|this._eh,Z=0|this._fh,Q=0|this._gh,W=0|this._hh,X=0|this._al,_=0|this._bl,t=0|this._cl,a=0|this._dl,s=0|this._el,e=0|this._fl,i=0|this._gl,u=0|this._hl,d=0;d<32;d+=2)L[d]=C.readInt32BE(4*d),L[d+1]=C.readInt32BE(4*d+4);for(;d<160;d+=2){var c=L[d-30],r=L[d-30+1],h=p(c,r),F=b(r,c),T=y(c=L[d-4],r=L[d-4+1]),H=m(r,c),fe=L[d-32],Ee=L[d-32+1],ee=F+L[d-14+1]|0,se=h+L[d-14]+E(ee,F)|0;se=(se=se+T+E(ee=ee+H|0,H)|0)+fe+E(ee=ee+Ee|0,Ee)|0,L[d]=se,L[d+1]=ee}for(var ze=0;ze<160;ze+=2){se=L[ze],ee=L[ze+1];var ye=D(R,U,O),ue=D(X,_,t),je=A(R,X),Ne=A(X,R),Ye=g(K,s),Et=g(s,K),ot=P[ze],lt=P[ze+1],Lt=S(K,Z,Q),ct=S(s,e,i),He=u+Et|0,Ue=W+Ye+E(He,u)|0;Ue=(Ue=(Ue=Ue+Lt+E(He=He+ct|0,ct)|0)+ot+E(He=He+lt|0,lt)|0)+se+E(He=He+ee|0,ee)|0;var Se=Ne+ue|0,Ve=je+ye+E(Se,Ne)|0;W=Q,u=i,Q=Z,i=e,Z=K,e=s,K=j+Ue+E(s=a+He|0,a)|0,j=O,a=t,O=U,t=_,U=R,_=X,R=Ue+Ve+E(X=He+Se|0,He)|0}this._al=this._al+X|0,this._bl=this._bl+_|0,this._cl=this._cl+t|0,this._dl=this._dl+a|0,this._el=this._el+s|0,this._fl=this._fl+e|0,this._gl=this._gl+i|0,this._hl=this._hl+u|0,this._ah=this._ah+R+E(this._al,X)|0,this._bh=this._bh+U+E(this._bl,_)|0,this._ch=this._ch+O+E(this._cl,t)|0,this._dh=this._dh+j+E(this._dl,a)|0,this._eh=this._eh+K+E(this._el,s)|0,this._fh=this._fh+Z+E(this._fl,e)|0,this._gh=this._gh+Q+E(this._gl,i)|0,this._hh=this._hh+W+E(this._hl,u)|0},w.prototype._hash=function(){var C=M.allocUnsafe(64);function L(R,U,O){C.writeInt32BE(R,O),C.writeInt32BE(U,O+4)}return L(this._ah,this._al,0),L(this._bh,this._bl,8),L(this._ch,this._cl,16),L(this._dh,this._dl,24),L(this._eh,this._el,32),L(this._fh,this._fl,40),L(this._gh,this._gl,48),L(this._hh,this._hl,56),C},q.exports=w},36917:(q,k,x)=>{q.exports=M;var B=x(93105).EventEmitter;function M(){B.call(this)}x(59879)(M,B),M.Readable=x(32833),M.Writable=x(37807),M.Duplex=x(20942),M.Transform=x(55431),M.PassThrough=x(90619),M.finished=x(6820),M.pipeline=x(36076),M.Stream=M,M.prototype.pipe=function(P,o){var w=this;function S(m){P.writable&&!1===P.write(m)&&w.pause&&w.pause()}function D(){w.readable&&w.resume&&w.resume()}w.on("data",S),P.on("drain",D),!P._isStdio&&(!o||!1!==o.end)&&(w.on("end",g),w.on("close",p));var A=!1;function g(){A||(A=!0,P.end())}function p(){A||(A=!0,"function"==typeof P.destroy&&P.destroy())}function b(m){if(y(),0===B.listenerCount(this,"error"))throw m}function y(){w.removeListener("data",S),P.removeListener("drain",D),w.removeListener("end",g),w.removeListener("close",p),w.removeListener("error",b),P.removeListener("error",b),w.removeListener("end",y),w.removeListener("close",y),P.removeListener("close",y)}return w.on("error",b),P.on("error",b),w.on("end",y),w.on("close",y),P.on("close",y),P.emit("pipe",w),P}},32519:(q,k,x)=>{"use strict";var B=x(55859).Buffer,I=B.isEncoding||function(R){switch((R=""+R)&&R.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(R){var U;switch(this.encoding=function P(R){var U=function M(R){if(!R)return"utf8";for(var U;;)switch(R){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return R;default:if(U)return;R=(""+R).toLowerCase(),U=!0}}(R);if("string"!=typeof U&&(B.isEncoding===I||!I(R)))throw new Error("Unknown encoding: "+R);return U||R}(R),this.encoding){case"utf16le":this.text=b,this.end=y,U=4;break;case"utf8":this.fillLast=A,U=4;break;case"base64":this.text=m,this.end=E,U=3;break;default:return this.write=C,void(this.end=L)}this.lastNeed=0,this.lastTotal=0,this.lastChar=B.allocUnsafe(U)}function w(R){return R<=127?0:R>>5==6?2:R>>4==14?3:R>>3==30?4:R>>6==2?-1:-2}function A(R){var U=this.lastTotal-this.lastNeed,O=function D(R,U,O){if(128!=(192&U[0]))return R.lastNeed=0,"\ufffd";if(R.lastNeed>1&&U.length>1){if(128!=(192&U[1]))return R.lastNeed=1,"\ufffd";if(R.lastNeed>2&&U.length>2&&128!=(192&U[2]))return R.lastNeed=2,"\ufffd"}}(this,R);return void 0!==O?O:this.lastNeed<=R.length?(R.copy(this.lastChar,U,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(R.copy(this.lastChar,U,0,R.length),void(this.lastNeed-=R.length))}function b(R,U){if((R.length-U)%2==0){var O=R.toString("utf16le",U);if(O){var j=O.charCodeAt(O.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=R[R.length-1],R.toString("utf16le",U,R.length-1)}function y(R){var U=R&&R.length?this.write(R):"";return this.lastNeed?U+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):U}function m(R,U){var O=(R.length-U)%3;return 0===O?R.toString("base64",U):(this.lastNeed=3-O,this.lastTotal=3,1===O?this.lastChar[0]=R[R.length-1]:(this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1]),R.toString("base64",U,R.length-O))}function E(R){var U=R&&R.length?this.write(R):"";return this.lastNeed?U+this.lastChar.toString("base64",0,3-this.lastNeed):U}function C(R){return R.toString(this.encoding)}function L(R){return R&&R.length?this.write(R):""}k.s=o,o.prototype.write=function(R){if(0===R.length)return"";var U,O;if(this.lastNeed){if(void 0===(U=this.fillLast(R)))return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O=0?(K>0&&(R.lastNeed=K-1),K):--j=0?(K>0&&(R.lastNeed=K-2),K):--j=0?(K>0&&(2===K?K=0:R.lastNeed=K-3),K):0}(this,R,U);if(!this.lastNeed)return R.toString("utf8",U);this.lastTotal=O;var j=R.length-(O-this.lastNeed);return R.copy(this.lastChar,0,j),R.toString("utf8",U,j)},o.prototype.fillLast=function(R){if(this.lastNeed<=R.length)return R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,R.length),this.lastNeed-=R.length}},15822:q=>{function x(B){try{if(!global.localStorage)return!1}catch{return!1}var I=global.localStorage[B];return null!=I&&"true"===String(I).toLowerCase()}q.exports=function k(B,I){if(x("noDeprecation"))return B;var M=!1;return function P(){if(!M){if(x("throwDeprecation"))throw new Error(I);x("traceDeprecation")?console.trace(I):console.warn(I),M=!0}return B.apply(this,arguments)}}},22641:(q,k,x)=>{"use strict";function B(n){return"function"==typeof n}function I(n){const l=n(v=>{Error.call(v),v.stack=(new Error).stack});return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l}const M=I(n=>function(l){n(this),this.message=l?`${l.length} errors occurred during unsubscription:\n${l.map((v,N)=>`${N+1}) ${v.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=l});function P(n,f){if(n){const l=n.indexOf(f);0<=l&&n.splice(l,1)}}class o{constructor(f){this.initialTeardown=f,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let f;if(!this.closed){this.closed=!0;const{_parentage:l}=this;if(l)if(this._parentage=null,Array.isArray(l))for(const V of l)V.remove(this);else l.remove(this);const{initialTeardown:v}=this;if(B(v))try{v()}catch(V){f=V instanceof M?V.errors:[V]}const{_finalizers:N}=this;if(N){this._finalizers=null;for(const V of N)try{D(V)}catch(J){f=f??[],J instanceof M?f=[...f,...J.errors]:f.push(J)}}if(f)throw new M(f)}}add(f){var l;if(f&&f!==this)if(this.closed)D(f);else{if(f instanceof o){if(f.closed||f._hasParent(this))return;f._addParent(this)}(this._finalizers=null!==(l=this._finalizers)&&void 0!==l?l:[]).push(f)}}_hasParent(f){const{_parentage:l}=this;return l===f||Array.isArray(l)&&l.includes(f)}_addParent(f){const{_parentage:l}=this;this._parentage=Array.isArray(l)?(l.push(f),l):l?[l,f]:f}_removeParent(f){const{_parentage:l}=this;l===f?this._parentage=null:Array.isArray(l)&&P(l,f)}remove(f){const{_finalizers:l}=this;l&&P(l,f),f instanceof o&&f._removeParent(this)}}o.EMPTY=(()=>{const n=new o;return n.closed=!0,n})();const w=o.EMPTY;function S(n){return n instanceof o||n&&"closed"in n&&B(n.remove)&&B(n.add)&&B(n.unsubscribe)}function D(n){B(n)?n():n.unsubscribe()}const A={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},g={setTimeout(n,f,...l){const{delegate:v}=g;return(null==v?void 0:v.setTimeout)?v.setTimeout(n,f,...l):setTimeout(n,f,...l)},clearTimeout(n){const{delegate:f}=g;return((null==f?void 0:f.clearTimeout)||clearTimeout)(n)},delegate:void 0};function p(n){g.setTimeout(()=>{const{onUnhandledError:f}=A;if(!f)throw n;f(n)})}function b(){}const y=C("C",void 0,void 0);function C(n,f,l){return{kind:n,value:f,error:l}}let L=null;function R(n){if(A.useDeprecatedSynchronousErrorHandling){const f=!L;if(f&&(L={errorThrown:!1,error:null}),n(),f){const{errorThrown:l,error:v}=L;if(L=null,l)throw v}}else n()}class O extends o{constructor(f){super(),this.isStopped=!1,f?(this.destination=f,S(f)&&f.add(this)):this.destination=t}static create(f,l,v){return new Q(f,l,v)}next(f){this.isStopped?_(function E(n){return C("N",n,void 0)}(f),this):this._next(f)}error(f){this.isStopped?_(function m(n){return C("E",void 0,n)}(f),this):(this.isStopped=!0,this._error(f))}complete(){this.isStopped?_(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(f){this.destination.next(f)}_error(f){try{this.destination.error(f)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const j=Function.prototype.bind;function K(n,f){return j.call(n,f)}class Z{constructor(f){this.partialObserver=f}next(f){const{partialObserver:l}=this;if(l.next)try{l.next(f)}catch(v){W(v)}}error(f){const{partialObserver:l}=this;if(l.error)try{l.error(f)}catch(v){W(v)}else W(f)}complete(){const{partialObserver:f}=this;if(f.complete)try{f.complete()}catch(l){W(l)}}}class Q extends O{constructor(f,l,v){let N;if(super(),B(f)||!f)N={next:f??void 0,error:l??void 0,complete:v??void 0};else{let V;this&&A.useDeprecatedNextContext?(V=Object.create(f),V.unsubscribe=()=>this.unsubscribe(),N={next:f.next&&K(f.next,V),error:f.error&&K(f.error,V),complete:f.complete&&K(f.complete,V)}):N=f}this.destination=new Z(N)}}function W(n){A.useDeprecatedSynchronousErrorHandling?function U(n){A.useDeprecatedSynchronousErrorHandling&&L&&(L.errorThrown=!0,L.error=n)}(n):p(n)}function _(n,f){const{onStoppedNotification:l}=A;l&&g.setTimeout(()=>l(n,f))}const t={closed:!0,next:b,error:function X(n){throw n},complete:b},a="function"==typeof Symbol&&Symbol.observable||"@@observable";function s(n){return n}let u=(()=>{class n{constructor(l){l&&(this._subscribe=l)}lift(l){const v=new n;return v.source=this,v.operator=l,v}subscribe(l,v,N){const V=function r(n){return n&&n instanceof O||function c(n){return n&&B(n.next)&&B(n.error)&&B(n.complete)}(n)&&S(n)}(l)?l:new Q(l,v,N);return R(()=>{const{operator:J,source:ie}=this;V.add(J?J.call(V,ie):ie?this._subscribe(V):this._trySubscribe(V))}),V}_trySubscribe(l){try{return this._subscribe(l)}catch(v){l.error(v)}}forEach(l,v){return new(v=d(v))((N,V)=>{const J=new Q({next:ie=>{try{l(ie)}catch(he){V(he),J.unsubscribe()}},error:V,complete:N});this.subscribe(J)})}_subscribe(l){var v;return null===(v=this.source)||void 0===v?void 0:v.subscribe(l)}[a](){return this}pipe(...l){return function i(n){return 0===n.length?s:1===n.length?n[0]:function(l){return n.reduce((v,N)=>N(v),l)}}(l)(this)}toPromise(l){return new(l=d(l))((v,N)=>{let V;this.subscribe(J=>V=J,J=>N(J),()=>v(V))})}}return n.create=f=>new n(f),n})();function d(n){var f;return null!==(f=n??A.Promise)&&void 0!==f?f:Promise}const h=I(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let F=(()=>{class n extends u{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(l){const v=new T(this,this);return v.operator=l,v}_throwIfClosed(){if(this.closed)throw new h}next(l){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const v of this.currentObservers)v.next(l)}})}error(l){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=l;const{observers:v}=this;for(;v.length;)v.shift().error(l)}})}complete(){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:l}=this;for(;l.length;)l.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var l;return(null===(l=this.observers)||void 0===l?void 0:l.length)>0}_trySubscribe(l){return this._throwIfClosed(),super._trySubscribe(l)}_subscribe(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)}_innerSubscribe(l){const{hasError:v,isStopped:N,observers:V}=this;return v||N?w:(this.currentObservers=null,V.push(l),new o(()=>{this.currentObservers=null,P(V,l)}))}_checkFinalizedStatuses(l){const{hasError:v,thrownError:N,isStopped:V}=this;v?l.error(N):V&&l.complete()}asObservable(){const l=new u;return l.source=this,l}}return n.create=(f,l)=>new T(f,l),n})();class T extends F{constructor(f,l){super(),this.destination=f,this.source=l}next(f){var l,v;null===(v=null===(l=this.destination)||void 0===l?void 0:l.next)||void 0===v||v.call(l,f)}error(f){var l,v;null===(v=null===(l=this.destination)||void 0===l?void 0:l.error)||void 0===v||v.call(l,f)}complete(){var f,l;null===(l=null===(f=this.destination)||void 0===f?void 0:f.complete)||void 0===l||l.call(f)}_subscribe(f){var l,v;return null!==(v=null===(l=this.source)||void 0===l?void 0:l.subscribe(f))&&void 0!==v?v:w}}function ae(n){return f=>{if(function H(n){return B(null==n?void 0:n.lift)}(f))return f.lift(function(l){try{return n(l,this)}catch(v){this.error(v)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ae(n,f,l,v,N){return new fe(n,f,l,v,N)}class fe extends O{constructor(f,l,v,N,V,J){super(f),this.onFinalize=V,this.shouldUnsubscribe=J,this._next=l?function(ie){try{l(ie)}catch(he){f.error(he)}}:super._next,this._error=N?function(ie){try{N(ie)}catch(he){f.error(he)}finally{this.unsubscribe()}}:super._error,this._complete=v?function(){try{v()}catch(ie){f.error(ie)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var f;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:l}=this;super.unsubscribe(),!l&&(null===(f=this.onFinalize)||void 0===f||f.call(this))}}}function G(n){return this instanceof G?(this.v=n,this):new G(n)}function re(n,f,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N,v=l.apply(n,f||[]),V=[];return N={},J("next"),J("throw"),J("return"),N[Symbol.asyncIterator]=function(){return this},N;function J(ht){v[ht]&&(N[ht]=function(wt){return new Promise(function(Tt,Ot){V.push([ht,wt,Tt,Ot])>1||ie(ht,wt)})})}function ie(ht,wt){try{!function he(ht){ht.value instanceof G?Promise.resolve(ht.value.v).then(Te,Ke):ft(V[0][2],ht)}(v[ht](wt))}catch(Tt){ft(V[0][3],Tt)}}function Te(ht){ie("next",ht)}function Ke(ht){ie("throw",ht)}function ft(ht,wt){ht(wt),V.shift(),V.length&&ie(V[0][0],V[0][1])}}function Ge(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,f=n[Symbol.asyncIterator];return f?f.call(n):(n=function Se(n){var f="function"==typeof Symbol&&Symbol.iterator,l=f&&n[f],v=0;if(l)return l.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&v>=n.length&&(n=void 0),{value:n&&n[v++],done:!n}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),l={},v("next"),v("throw"),v("return"),l[Symbol.asyncIterator]=function(){return this},l);function v(V){l[V]=n[V]&&function(J){return new Promise(function(ie,he){!function N(V,J,ie,he){Promise.resolve(he).then(function(Te){V({value:Te,done:ie})},J)}(ie,he,(J=n[V](J)).done,J.value)})}}}const Pe=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function st(n){return B(null==n?void 0:n.then)}function tt(n){return B(n[a])}function et(n){return Symbol.asyncIterator&&B(null==n?void 0:n[Symbol.asyncIterator])}function gt(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ne=function Fe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function yt(n){return B(null==n?void 0:n[ne])}function rt(n){return re(this,arguments,function*(){const l=n.getReader();try{for(;;){const{value:v,done:N}=yield G(l.read());if(N)return yield G(void 0);yield yield G(v)}}finally{l.releaseLock()}})}function $(n){return B(null==n?void 0:n.getReader)}function We(n){if(n instanceof u)return n;if(null!=n){if(tt(n))return function Be(n){return new u(f=>{const l=n[a]();if(B(l.subscribe))return l.subscribe(f);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Pe(n))return function Ze(n){return new u(f=>{for(let l=0;l{n.then(l=>{f.closed||(f.next(l),f.complete())},l=>f.error(l)).then(null,p)})}(n);if(et(n))return be(n);if(yt(n))return function ve(n){return new u(f=>{for(const l of n)if(f.next(l),f.closed)return;f.complete()})}(n);if($(n))return function de(n){return be(rt(n))}(n)}throw gt(n)}function be(n){return new u(f=>{(function Re(n,f){var l,v,N,V;return function Lt(n,f,l,v){return new(l||(l=Promise))(function(V,J){function ie(Ke){try{Te(v.next(Ke))}catch(ft){J(ft)}}function he(Ke){try{Te(v.throw(Ke))}catch(ft){J(ft)}}function Te(Ke){Ke.done?V(Ke.value):function N(V){return V instanceof l?V:new l(function(J){J(V)})}(Ke.value).then(ie,he)}Te((v=v.apply(n,f||[])).next())})}(this,void 0,void 0,function*(){try{for(l=Ge(n);!(v=yield l.next()).done;)if(f.next(v.value),f.closed)return}catch(J){N={error:J}}finally{try{v&&!v.done&&(V=l.return)&&(yield V.call(l))}finally{if(N)throw N.error}}f.complete()})})(n,f).catch(l=>f.error(l))})}function Je(n,f,l,v=0,N=!1){const V=f.schedule(function(){l(),N?n.add(this.schedule(null,v)):this.unsubscribe()},v);if(n.add(V),!N)return V}function it(n,f,l=1/0){return B(f)?it((v,N)=>function Ee(n,f){return ae((l,v)=>{let N=0;l.subscribe(Ae(v,V=>{v.next(n.call(f,V,N++))}))})}((V,J)=>f(v,V,N,J))(We(n(v,N))),l):("number"==typeof f&&(l=f),ae((v,N)=>function vt(n,f,l,v,N,V,J,ie){const he=[];let Te=0,Ke=0,ft=!1;const ht=()=>{ft&&!he.length&&!Te&&f.complete()},wt=Ot=>Te{V&&f.next(Ot),Te++;let Kt=!1;We(l(Ot,Ke++)).subscribe(Ae(f,Xt=>{null==N||N(Xt),V?wt(Xt):f.next(Xt)},()=>{Kt=!0},void 0,()=>{if(Kt)try{for(Te--;he.length&&TeTt(Xt)):Tt(Xt)}ht()}catch(Xt){f.error(Xt)}}))};return n.subscribe(Ae(f,wt,()=>{ft=!0,ht()})),()=>{null==ie||ie()}}(v,N,n,l)))}const It=new u(n=>n.complete());function Vt(n){return n[n.length-1]}function Wt(n,f=0){return ae((l,v)=>{l.subscribe(Ae(v,N=>Je(v,n,()=>v.next(N),f),()=>Je(v,n,()=>v.complete(),f),N=>Je(v,n,()=>v.error(N),f)))})}function Yt(n,f=0){return ae((l,v)=>{v.add(n.schedule(()=>l.subscribe(v),f))})}function Zt(n,f){if(!n)throw new Error("Iterable cannot be null");return new u(l=>{Je(l,f,()=>{const v=n[Symbol.asyncIterator]();Je(l,f,()=>{v.next().then(N=>{N.done?l.complete():l.next(N.value)})},0,!0)})})}function St(...n){const f=function nr(n){return function Pt(n){return n&&B(n.schedule)}(Vt(n))?n.pop():void 0}(n),l=function tr(n,f){return"number"==typeof Vt(n)?n.pop():f}(n,1/0),v=n;return v.length?1===v.length?We(v[0]):function at(n=1/0){return it(s,n)}(l)(function _t(n,f){return f?function zt(n,f){if(null!=n){if(tt(n))return function Ht(n,f){return We(n).pipe(Yt(f),Wt(f))}(n,f);if(Pe(n))return function jt(n,f){return new u(l=>{let v=0;return f.schedule(function(){v===n.length?l.complete():(l.next(n[v++]),l.closed||this.schedule())})})}(n,f);if(st(n))return function Bt(n,f){return We(n).pipe(Yt(f),Wt(f))}(n,f);if(et(n))return Zt(n,f);if(yt(n))return function Gt(n,f){return new u(l=>{let v;return Je(l,f,()=>{v=n[ne](),Je(l,f,()=>{let N,V;try{({value:N,done:V}=v.next())}catch(J){return void l.error(J)}V?l.complete():l.next(N)},0,!0)}),()=>B(null==v?void 0:v.return)&&v.return()})}(n,f);if($(n))return function Jt(n,f){return Zt(rt(n),f)}(n,f)}throw gt(n)}(n,f):We(n)}(v,f)):It}function Nt(n,f,...l){if(!0===f)return void n();if(!1===f)return;const v=new Q({next:()=>{v.unsubscribe(),n()}});return f(...l).subscribe(v)}function Ct(n){for(let f in n)if(n[f]===Ct)return f;throw Error("Could not find renamed property on target object.")}function ir(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ir).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const f=n.toString();if(null==f)return""+f;const l=f.indexOf("\n");return-1===l?f:f.substring(0,l)}function pr(n,f){return null==n||""===n?null===f?"":f:null==f||""===f?n:n+" "+f}const br=Ct({__forward_ref__:Ct});function yr(n){return n.__forward_ref__=yr,n.toString=function(){return ir(this())},n}function pt(n){return function wr(n){return"function"==typeof n&&n.hasOwnProperty(br)&&n.__forward_ref__===yr}(n)?n():n}class or extends Error{constructor(f,l){super(function gr(n,f){return`NG0${Math.abs(n)}${f?": "+f:""}`}(f,l)),this.code=f}}function ur(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function fr(n){return"string"==typeof n?n:null==n?"":String(n)}(n)}function Fr(n,f){const l=f?` in ${f}`:"";throw new or(-201,`No provider for ${ur(n)} found${l}`)}function un(n,f){null==n&&function vr(n,f,l,v){throw new Error(`ASSERTION ERROR: ${n}`+(null==v?"":` [Expected=> ${l} ${v} ${f} <=Actual]`))}(f,n,null,"!=")}function Hr(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Rn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Gi(n){return li(n,Ei)||li(n,yn)}function li(n,f){return n.hasOwnProperty(f)?n[f]:null}function Wi(n){return n&&(n.hasOwnProperty(Vn)||n.hasOwnProperty(Zi))?n[Vn]:null}const Ei=Ct({\u0275prov:Ct}),Vn=Ct({\u0275inj:Ct}),yn=Ct({ngInjectableDef:Ct}),Zi=Ct({ngInjectorDef:Ct});var cr=(()=>((cr=cr||{})[cr.Default=0]="Default",cr[cr.Host=1]="Host",cr[cr.Self=2]="Self",cr[cr.SkipSelf=4]="SkipSelf",cr[cr.Optional=8]="Optional",cr))();let Bi;function gn(n){const f=Bi;return Bi=n,f}function Qn(n,f,l){const v=Gi(n);return v&&"root"==v.providedIn?void 0===v.value?v.value=v.factory():v.value:l&cr.Optional?null:void 0!==f?f:void Fr(ir(n),"Injector")}function kn(n){return{toString:n}.toString()}var vn=(()=>((vn=vn||{})[vn.OnPush=0]="OnPush",vn[vn.Default=1]="Default",vn))(),An=(()=>{return(n=An||(An={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",An;var n})();const uf=typeof globalThis<"u"&&globalThis,cf=typeof window<"u"&&window,Nr=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,Dr=uf||typeof global<"u"&&global||cf||Nr,En={},Er=[],Yn=Ct({\u0275cmp:Ct}),_e=Ct({\u0275dir:Ct}),Ce=Ct({\u0275pipe:Ct}),ge=Ct({\u0275mod:Ct}),Xe=Ct({\u0275fac:Ct}),qe=Ct({__NG_ELEMENT_ID__:Ct});let ke=0;function ut(n){return kn(()=>{const l={},v={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:l,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===vn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||Er,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||An.Emulated,id:"c",styles:n.styles||Er,_:null,setInput:null,schemas:n.schemas||null,tView:null},N=n.directives,V=n.features,J=n.pipes;return v.id+=ke++,v.inputs=$e(n.inputs,l),v.outputs=$e(n.outputs),V&&V.forEach(ie=>ie(v)),v.directiveDefs=N?()=>("function"==typeof N?N():N).map(Mt):null,v.pipeDefs=J?()=>("function"==typeof J?J():J).map(oe):null,v})}function Mt(n){return bt(n)||function xt(n){return n[_e]||null}(n)}function oe(n){return function Dt(n){return n[Ce]||null}(n)}const Ie={};function Me(n){return kn(()=>{const f={type:n.type,bootstrap:n.bootstrap||Er,declarations:n.declarations||Er,imports:n.imports||Er,exports:n.exports||Er,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Ie[n.id]=n.type),f})}function $e(n,f){if(null==n)return En;const l={};for(const v in n)if(n.hasOwnProperty(v)){let N=n[v],V=N;Array.isArray(N)&&(V=N[1],N=N[0]),l[N]=v,f&&(f[N]=V)}return l}function bt(n){return n[Yn]||null}function Ft(n,f){const l=n[ge]||null;if(!l&&!0===f)throw new Error(`Type ${ir(n)} does not have '\u0275mod' property.`);return l}function ui(n){return Array.isArray(n)&&"object"==typeof n[1]}function $n(n){return Array.isArray(n)&&!0===n[1]}function Io(n){return 0!=(8&n.flags)}function Xn(n){return null!==n.template}function S6(n){return 0!=(512&n[2])}function Ji(n,f){return n.hasOwnProperty(Xe)?n[Xe]:null}class I6{constructor(f,l,v){this.previousValue=f,this.currentValue=l,this.firstChange=v}isFirstChange(){return this.firstChange}}function xu(n){return n.type.prototype.ngOnChanges&&(n.setInput=P6),C6}function C6(){const n=Eu(this),f=n?.current;if(f){const l=n.previous;if(l===En)n.previous=f;else for(let v in f)l[v]=f[v];n.current=null,this.ngOnChanges(f)}}function P6(n,f,l,v){const N=Eu(n)||function B6(n,f){return n[Au]=f}(n,{previous:En,current:null}),V=N.current||(N.current={}),J=N.previous,ie=this.declaredInputs[l],he=J[ie];V[ie]=new I6(he&&he.currentValue,f,J===En),n[v]=f}const Au="__ngSimpleChanges__";function Eu(n){return n[Au]||null}let ko;function tn(n){return!!n.listen}const Mu={createRenderer:(n,f)=>function Oo(){return void 0!==ko?ko:typeof document<"u"?document:void 0}()};function an(n){for(;Array.isArray(n);)n=n[0];return n}function On(n,f){return an(f[n.index])}function Nn(n,f){const l=f[n];return ui(l)?l:l[0]}function Lo(n){return 128==(128&n[2])}function Ri(n,f){return null==f?null:n[f]}function Su(n){n[18]=0}function Uo(n,f){n[5]+=f;let l=n,v=n[3];for(;null!==v&&(1===f&&1===l[5]||-1===f&&0===l[5]);)v[5]+=f,l=v,v=v[3]}const Mr={lFrame:Ou(null),bindingsEnabled:!0};function Du(){return Mr.bindingsEnabled}function $t(){return Mr.lFrame.lView}function Ur(){return Mr.lFrame.tView}function cn(){let n=Iu();for(;null!==n&&64===n.type;)n=n.parent;return n}function Iu(){return Mr.lFrame.currentTNode}function ci(n,f){const l=Mr.lFrame;l.currentTNode=n,l.isParent=f}function Fo(){return Mr.lFrame.isParent}function J6(n,f){const l=Mr.lFrame;l.bindingIndex=l.bindingRootIndex=n,Vo(f)}function Vo(n){Mr.lFrame.currentDirectiveIndex=n}function zo(n){Mr.lFrame.currentQueryIndex=n}function X6(n){const f=n[1];return 2===f.type?f.declTNode:1===f.type?n[6]:null}function Ru(n,f,l){if(l&cr.SkipSelf){let N=f,V=n;for(;!(N=N.parent,null!==N||l&cr.Host||(N=X6(V),null===N||(V=V[15],10&N.type))););if(null===N)return!1;f=N,n=V}const v=Mr.lFrame=ku();return v.currentTNode=f,v.lView=n,!0}function va(n){const f=ku(),l=n[1];Mr.lFrame=f,f.currentTNode=l.firstChild,f.lView=n,f.tView=l,f.contextLView=n,f.bindingIndex=l.bindingStartIndex,f.inI18n=!1}function ku(){const n=Mr.lFrame,f=null===n?null:n.child;return null===f?Ou(n):f}function Ou(n){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=f),f}function Nu(){const n=Mr.lFrame;return Mr.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Lu=Nu;function ba(){const n=Nu();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ki(n){Mr.lFrame.selectedIndex=n}function ma(n,f){for(let l=f.directiveStart,v=f.directiveEnd;l=v)break}else f[he]<0&&(n[18]+=65536),(ie>11>16&&(3&n[2])===f){n[2]+=2048;try{V.call(ie)}finally{}}}else try{V.call(ie)}finally{}}class g0{constructor(f,l,v){this.factory=f,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=v}}function Aa(n,f,l){const v=tn(n);let N=0;for(;Nf){J=V-1;break}}}for(;V>16}(n),v=f;for(;l>0;)v=v[15],l--;return v}let Zo=!0;function Ma(n){const f=Zo;return Zo=n,f}let h2=0;function b0(n,f){const l=Yo(n,f);if(-1!==l)return l;const v=f[1];v.firstCreatePass&&(n.injectorIndex=f.length,Qo(v.data,n),Qo(f,null),Qo(v.blueprint,null));const N=_a(n,f),V=n.injectorIndex;if(function Vu(n){return-1!==n}(N)){const J=mf(N),ie=wf(N,f),he=ie[1].data;for(let Te=0;Te<8;Te++)f[V+Te]=ie[J+Te]|he[J+Te]}return f[V+8]=N,V}function Qo(n,f){n.push(0,0,0,0,0,0,0,0,f)}function Yo(n,f){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===f[n.injectorIndex+8]?-1:n.injectorIndex}function _a(n,f){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let l=0,v=null,N=f;for(;null!==N;){const V=N[1],J=V.type;if(v=2===J?V.declTNode:1===J?N[6]:null,null===v)return-1;if(l++,N=N[15],-1!==v.injectorIndex)return v.injectorIndex|l<<16}return-1}function Sa(n,f,l){!function p2(n,f,l){let v;"string"==typeof l?v=l.charCodeAt(0)||0:l.hasOwnProperty(qe)&&(v=l[qe]),null==v&&(v=l[qe]=h2++);const N=255&v;f.data[n+(N>>5)]|=1<>20,ht=N?ie+Ke:n.directiveEnd;for(let wt=v?ie:ie+Ke;wt=he&&Tt.type===l)return wt}if(N){const wt=J[he];if(wt&&Xn(wt)&&wt.type===l)return he}return null}(ie,J,l,null==v?function da(n){return 2==(2&n.flags)}(ie)&&Zo:v!=J&&0!=(3&ie.type),N&cr.Host&&V===ie);return null!==Ke?m0(f,J,Ke,ie):Zu}function m0(n,f,l,v){let N=n[l];const V=f.data;if(function s2(n){return n instanceof g0}(N)){const J=N;J.resolving&&function Kr(n,f){const l=f?`. Dependency path: ${f.join(" > ")} > ${n}`:"";throw new or(-200,`Circular dependency in DI detected for ${n}${l}`)}(ur(V[l]));const ie=Ma(J.canSeeViewProviders);J.resolving=!0;const he=J.injectImpl?gn(J.injectImpl):null;Ru(n,v,cr.Default);try{N=n[l]=J.factory(void 0,V,n,v),f.firstCreatePass&&l>=v.directiveStart&&function a2(n,f,l){const{ngOnChanges:v,ngOnInit:N,ngDoCheck:V}=f.type.prototype;if(v){const J=xu(f);(l.preOrderHooks||(l.preOrderHooks=[])).push(n,J),(l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(n,J)}N&&(l.preOrderHooks||(l.preOrderHooks=[])).push(0-n,N),V&&((l.preOrderHooks||(l.preOrderHooks=[])).push(n,V),(l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(n,V))}(l,V[l],f)}finally{null!==he&&gn(he),Ma(ie),J.resolving=!1,Lu()}}return N}function Qu(n,f,l){return!!(l[f+(n>>5)]&1<=0?255&f:g2:f}(l);if("function"==typeof V){if(!Ru(f,n,v))return v&cr.Host?Ku(N,l,v):Gu(f,l,v,N);try{const J=V(v);if(null!=J||v&cr.Optional)return J;Fr(l)}finally{Lu()}}else if("number"==typeof V){let J=null,ie=Yo(n,f),he=-1,Te=v&cr.Host?f[16][6]:null;for((-1===ie||v&cr.SkipSelf)&&(he=-1===ie?_a(n,f):f[ie+8],-1!==he&&Yu(v,!1)?(J=f[1],ie=mf(he),f=wf(he,f)):ie=-1);-1!==ie;){const Ke=f[1];if(Qu(V,ie,Ke.data)){const ft=v2(ie,f,l,J,v,Te);if(ft!==Zu)return ft}he=f[ie+8],-1!==he&&Yu(v,f[1].data[ie+8]===Te)&&Qu(V,ie,f)?(J=Ke,ie=mf(he),f=wf(he,f)):ie=-1}}}return Gu(f,l,v,N)}(this._tNode,this._lView,f,v,l)}}class Vr{constructor(f,l){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=Hr({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}toString(){return`InjectionToken ${this._desc}`}}function di(n,f){n.forEach(l=>Array.isArray(l)?di(l,f):f(l))}function Da(n,f){return f>=n.length-1?n.pop():n.splice(f,1)[0]}const E0={},Ca="ngTempTokenPath",C2=/\n/gm,rc="__source",B2=Ct({provide:String,useValue:Ct});let M0;function nc(n){const f=M0;return M0=n,f}function R2(n,f=cr.Default){if(void 0===M0)throw new or(203,"");return null===M0?Qn(n,void 0,f):M0.get(n,f&cr.Optional?null:void 0,f)}function Wr(n,f=cr.Default){return(function Mi(){return Bi}()||R2)(pt(n),f)}const k2=Wr;function ns(n){const f=[];for(let l=0;l((Un=Un||{})[Un.Important=1]="Important",Un[Un.DashCase=2]="DashCase",Un))();const cc="__ngContext__";function wn(n,f){n[cc]=f}function os(n){const f=function T0(n){return n[cc]||null}(n);return f?Array.isArray(f)?f:f.lView:null}function ls(n,f){return undefined(n,f)}function D0(n){const f=n[3];return $n(f)?f[3]:f}function us(n){return bc(n[13])}function cs(n){return bc(n[4])}function bc(n){for(;null!==n&&!$n(n);)n=n[4];return n}function Df(n,f,l,v,N){if(null!=v){let V,J=!1;$n(v)?V=v:ui(v)&&(J=!0,v=v[0]);const ie=an(v);0===n&&null!==l?null==N?Mc(f,l,ie):$i(f,l,ie,N||null,!0):1===n&&null!==l?$i(f,l,ie,N||null,!0):2===n?function bs(n,f,l){const v=function ka(n,f){return tn(n)?n.parentNode(f):f.parentNode}(n,f);v&&function dy(n,f,l,v){tn(n)?n.removeChild(f,l,v):f.removeChild(l)}(n,v,f,l)}(f,ie,J):3===n&&f.destroyNode(ie),null!=V&&function yy(n,f,l,v,N){const V=l[7];V!==an(l)&&Df(f,n,v,V,N);for(let ie=10;ie=0?v[N=Te]():v[N=-Te].unsubscribe(),V+=2}else{const J=v[N=l[V+1]];l[V].call(J)}if(null!==v){for(let V=N+1;V(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Dr))();function pi(n){return n instanceof Function?n():n}function Zc(n,f,l){let v=n.length;for(;;){const N=n.indexOf(f,l);if(-1===N)return N;if(0===N||n.charCodeAt(N-1)<=32){const V=f.length;if(N+V===v||n.charCodeAt(N+V)<=32)return N}l=N+1}}const Qc="ng-template";function ig(n,f,l){let v=0;for(;vV?"":N[ft+1].toLowerCase();const wt=8&v?ht:null;if(wt&&-1!==Zc(wt,Te,0)||2&v&&Te!==ht){if(qn(v))return!1;J=!0}}}}else{if(!J&&!qn(v)&&!qn(he))return!1;if(J&&qn(he))continue;J=!1,v=he|1&v}}return qn(v)||J}function qn(n){return 0==(1&n)}function og(n,f,l,v){if(null===f)return-1;let N=0;if(v||!l){let V=!1;for(;N-1)for(l++;l0?'="'+ie+'"':"")+"]"}else 8&v?N+="."+J:4&v&&(N+=" "+J);else""!==N&&!qn(J)&&(f+=$c(V,N),N=""),v=J,V=V||!qn(v);l++}return""!==N&&(f+=$c(V,N)),f}const _r={};function ld(n,f){const l=n.contentQueries;if(null!==l)for(let v=0;v20&&function Xc(n,f,l,v){if(!v)if(3==(3&f[2])){const V=n.preOrderCheckHooks;null!==V&&wa(f,V,l)}else{const V=n.preOrderHooks;null!==V&&xa(f,V,0,l)}ki(l)}(n,f,20,!1),l(v,N)}finally{ki(V)}}function dd(n){const f=n.tView;return null===f||f.incompleteFirstPass?n.tView=Ka(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):f}function Ka(n,f,l,v,N,V,J,ie,he,Te){const Ke=20+v,ft=Ke+N,ht=function Cg(n,f){const l=[];for(let v=0;v0;){const l=n[--f];if("number"==typeof l&&l<0)return l}return 0})(ie)!=he&&ie.push(he),ie.push(v,N,J)}}function md(n,f){null!==n.hostBindings&&n.hostBindings(1,f)}function wd(n,f){f.flags|=2,(n.components||(n.components=[])).push(f.index)}function Hg(n,f,l){if(l){if(f.exportAs)for(let v=0;v0&&Gs(l)}}function Gs(n){for(let v=us(n);null!==v;v=cs(v))for(let N=10;N0&&Gs(V)}const l=n[1].components;if(null!==l)for(let v=0;v0&&Gs(N)}}function Yg(n,f){const l=Nn(f,n),v=l[1];(function Jg(n,f){for(let l=f.length;lPromise.resolve(null))();function Wa(n,f,l){let v=l?n.styles:null,N=l?n.classes:null,V=0;if(null!==f)for(let J=0;Jthis.processProvider(ie,f,l)),di([f],ie=>this.processInjectorType(ie,[],V)),this.records.set(Js,Rf(void 0,this));const J=this.records.get($s);this.scope=null!=J?J.value:null,this.source=N||("object"==typeof f?null:ir(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,l=E0,v=cr.Default){this.assertNotDestroyed();const N=nc(this),V=gn(void 0);try{if(!(v&cr.SkipSelf)){let ie=this.records.get(f);if(void 0===ie){const he=function uv(n){return"function"==typeof n||"object"==typeof n&&n instanceof Vr}(f)&&Gi(f);ie=he&&this.injectableDefInScope(he)?Rf(qs(f),N0):null,this.records.set(f,ie)}if(null!=ie)return this.hydrate(f,ie)}return(v&cr.Self?Pd():this.parent).get(f,l=v&cr.Optional&&l===E0?null:l)}catch(J){if("NullInjectorError"===J.name){if((J[Ca]=J[Ca]||[]).unshift(ir(f)),N)throw J;return function N2(n,f,l,v){const N=n[Ca];throw f[rc]&&N.unshift(f[rc]),n.message=function L2(n,f,l,v=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let N=ir(f);if(Array.isArray(f))N=f.map(ir).join(" -> ");else if("object"==typeof f){let V=[];for(let J in f)if(f.hasOwnProperty(J)){let ie=f[J];V.push(J+":"+("string"==typeof ie?JSON.stringify(ie):ir(ie)))}N=`{${V.join(", ")}}`}return`${l}${v?"("+v+")":""}[${N}]: ${n.replace(C2,"\n ")}`}("\n"+n.message,N,l,v),n.ngTokenPath=N,n[Ca]=null,n}(J,f,"R3InjectorError",this.source)}throw J}finally{gn(V),nc(N)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((v,N)=>f.push(ir(N))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new or(205,!1)}processInjectorType(f,l,v){if(!(f=pt(f)))return!1;let N=Wi(f);const V=null==N&&f.ngModule||void 0,J=void 0===V?f:V,ie=-1!==v.indexOf(J);if(void 0!==V&&(N=Wi(V)),null==N)return!1;if(null!=N.imports&&!ie){let Ke;v.push(J);try{di(N.imports,ft=>{this.processInjectorType(ft,l,v)&&(void 0===Ke&&(Ke=[]),Ke.push(ft))})}finally{}if(void 0!==Ke)for(let ft=0;ftthis.processProvider(Tt,ht,wt||Er))}}this.injectorDefTypes.add(J);const he=Ji(J)||(()=>new J);this.records.set(J,Rf(he,N0));const Te=N.providers;if(null!=Te&&!ie){const Ke=f;di(Te,ft=>this.processProvider(ft,Ke,Te))}return void 0!==V&&void 0!==f.providers}processProvider(f,l,v){let N=kf(f=pt(f))?f:pt(f&&f.provide);const V=function iv(n,f,l){return Od(n)?Rf(void 0,n.useValue):Rf(function kd(n,f,l){let v;if(kf(n)){const N=pt(n);return Ji(N)||qs(N)}if(Od(n))v=()=>pt(n.useValue);else if(function av(n){return!(!n||!n.useFactory)}(n))v=()=>n.useFactory(...ns(n.deps||[]));else if(function fv(n){return!(!n||!n.useExisting)}(n))v=()=>Wr(pt(n.useExisting));else{const N=pt(n&&(n.useClass||n.provide));if(!function sv(n){return!!n.deps}(n))return Ji(N)||qs(N);v=()=>new N(...ns(n.deps))}return v}(n),N0)}(f);if(kf(f)||!0!==f.multi)this.records.get(N);else{let J=this.records.get(N);J||(J=Rf(void 0,N0,!0),J.factory=()=>ns(J.multi),this.records.set(N,J)),N=f,J.multi.push(f)}this.records.set(N,V)}hydrate(f,l){return l.value===N0&&(l.value=tv,l.value=l.factory()),"object"==typeof l.value&&l.value&&function lv(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(l.value)&&this.onDestroy.add(l.value),l.value}injectableDefInScope(f){if(!f.providedIn)return!1;const l=pt(f.providedIn);return"string"==typeof l?"any"===l||l===this.scope:this.injectorDefTypes.has(l)}}function qs(n){const f=Gi(n),l=null!==f?f.factory:Ji(n);if(null!==l)return l;if(n instanceof Vr)throw new or(204,!1);if(n instanceof Function)return function nv(n){const f=n.length;if(f>0)throw function A0(n,f){const l=[];for(let v=0;vl.factory(n):()=>new n}(n);throw new or(204,!1)}function Rf(n,f,l=!1){return{factory:n,value:f,multi:l?[]:void 0}}function Od(n){return null!==n&&"object"==typeof n&&B2 in n}function kf(n){return"function"==typeof n}let gi=(()=>{class n{static create(l,v){if(Array.isArray(l))return Bd({name:""},v,l,"");{const N=l.name??"";return Bd({name:N},l.parent,l.providers,N)}}}return n.THROW_IF_NOT_FOUND=E0,n.NULL=new Cd,n.\u0275prov=Hr({token:n,providedIn:"any",factory:()=>Wr(Js)}),n.__NG_ELEMENT_ID__=-1,n})();function bv(n,f){ma(os(n)[1],cn())}function sl(n,f,l,v,N){const J=N?"class":"style";!function Id(n,f,l,v,N){for(let V=0;V{class n{}return n.NULL=new Qb,n})();function Yb(){return Yf(cn(),$t())}function Yf(n,f){return new Jf(On(n,f))}let Jf=(()=>{class n{constructor(l){this.nativeElement=l}}return n.__NG_ELEMENT_ID__=Yb,n})();class H1{}let qb=(()=>{class n{}return n.\u0275prov=Hr({token:n,providedIn:"root",factory:()=>null}),n})();class El{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const em=new El("13.3.12"),Ml={};function io(n,f,l,v,N=!1){for(;null!==l;){const V=f[l.index];if(null!==V&&v.push(an(V)),$n(V))for(let ie=10;ie-1&&(function ps(n,f){if(n.length<=10)return;const l=10+f,v=n[l];if(v){const N=v[17];null!==N&&N!==n&&wc(N,v),f>0&&(n[l-1][4]=v[4]);const V=Da(n,10+f);!function iy(n,f){I0(n,f,f[11],2,null,null),f[0]=null,f[6]=null}(v[1],v);const J=V[19];null!==J&&J.detachView(V[1]),v[3]=null,v[4]=null,v[2]&=-129}return v}(f,v),Da(l,v))}this._attachedToViewContainer=!1}!function xc(n,f){if(!(256&f[2])){const l=f[11];tn(l)&&l.destroyNode&&I0(n,f,l,3,null,null),function oy(n){let f=n[13];if(!f)return ys(n[1],n);for(;f;){let l=null;if(ui(f))l=f[13];else{const v=f[10];v&&(l=v)}if(!l){for(;f&&!f[4]&&f!==n;)ui(f)&&ys(f[1],f),f=f[3];null===f&&(f=n),ui(f)&&ys(f[1],f),l=f&&f[4]}f=l}}(f)}}(this._lView[1],this._lView)}onDestroy(f){!function yd(n,f,l,v){const N=function _d(n){return n[7]||(n[7]=[])}(f);null===l?N.push(v):(N.push(l),n.firstCreatePass&&function Sd(n){return n.cleanup||(n.cleanup=[])}(n).push(v,N.length-1))}(this._lView[1],this._lView,null,f)}markForCheck(){!function Ws(n){for(;n;){n[2]|=64;const f=D0(n);if(S6(n)&&!f)return n;n=f}return null}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Qs(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new or(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ay(n,f){I0(n,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new or(902,"");this._appRef=f}}{constructor(f){super(f),this._view=f}detectChanges(){Md(this._view)}checkNoChanges(){}get context(){return null}}class K1 extends no{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const l=bt(f);return new _l(l,this.ngModule)}}function G1(n){const f=[];for(let l in n)n.hasOwnProperty(l)&&f.push({propName:n[l],templateName:l});return f}class _l extends j1{constructor(f,l){super(),this.componentDef=f,this.ngModule=l,this.componentType=f.type,this.selector=function hg(n){return n.map(dg).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!l}get inputs(){return G1(this.componentDef.inputs)}get outputs(){return G1(this.componentDef.outputs)}create(f,l,v,N){const V=(N=N||this.ngModule)?function nm(n,f){return{get:(l,v,N)=>{const V=n.get(l,Ml,N);return V!==Ml||v===Ml?V:f.get(l,v,N)}}}(f,N.injector):f,J=V.get(H1,Mu),ie=V.get(qb,null),he=J.createRenderer(null,this.componentDef),Te=this.componentDef.selectors[0][0]||"div",Ke=v?function pd(n,f,l){if(tn(n))return n.selectRootElement(f,l===An.ShadowDom);let v="string"==typeof f?n.querySelector(f):f;return v.textContent="",v}(he,v,this.componentDef.encapsulation):hs(J.createRenderer(null,this.componentDef),Te,function rm(n){const f=n.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(Te)),ft=this.componentDef.onPush?576:528,ht=function Wd(n,f){return{components:[],scheduler:n||eg,clean:Xg,playerHandler:f||null,flags:0}}(),wt=Ka(0,null,null,1,0,null,null,null,null,null),Tt=k0(null,wt,ht,ft,null,null,J,he,ie,V);let Ot,Kt;va(Tt);try{const Xt=function Kd(n,f,l,v,N,V){const J=l[1];l[20]=n;const he=Cf(J,20,2,"#host",null),Te=he.mergedAttrs=f.hostAttrs;null!==Te&&(Wa(he,Te,!0),null!==n&&(Aa(N,n,Te),null!==he.classes&&ws(N,n,he.classes),null!==he.styles&&Bc(N,n,he.styles)));const Ke=v.createRenderer(n,f),ft=k0(l,dd(f),null,f.onPush?64:16,l[20],he,v,Ke,V||null,null);return J.firstCreatePass&&(Sa(b0(he,l),J,f.type),wd(J,he),xd(he,l.length,1)),Ga(l,ft),l[20]=ft}(Ke,this.componentDef,Tt,J,he);if(Ke)if(v)Aa(he,Ke,["ng-version",em.full]);else{const{attrs:kt,classes:lr}=function pg(n){const f=[],l=[];let v=1,N=2;for(;v0&&ws(he,Ke,lr.join(" "))}if(Kt=function No(n,f){return n.data[f]}(wt,20),void 0!==l){const kt=Kt.projection=[];for(let lr=0;lrhe(J,f)),f.contentQueries){const he=cn();f.contentQueries(1,J,he.directiveStart)}const ie=cn();return!V.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(ki(ie.index),bd(l[1],ie,0,ie.directiveStart,ie.directiveEnd,f),md(f,J)),J}(Xt,this.componentDef,Tt,ht,[bv]),O0(wt,Tt,null)}finally{ba()}return new fm(this.componentType,Ot,Yf(Kt,Tt),Tt,Kt)}}class fm extends class Wb{}{constructor(f,l,v,N,V){super(),this.location=v,this._rootLView=N,this._tNode=V,this.instance=l,this.hostView=this.changeDetectorRef=new tm(N),this.componentType=f}get injector(){return new xf(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class $f{}const Xf=new Map;class Q1 extends $f{constructor(f,l){super(),this._parent=l,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new K1(this);const v=Ft(f);this._bootstrapComponents=pi(v.bootstrap),this._r3Injector=Rd(f,l,[{provide:$f,useValue:this},{provide:no,useValue:this.componentFactoryResolver}],ir(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,l=gi.THROW_IF_NOT_FOUND,v=cr.Default){return f===gi||f===$f||f===Js?this:this._r3Injector.get(f,l,v)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Sl extends class om{}{constructor(f){super(),this.moduleType=f,null!==Ft(f)&&function sm(n){const f=new Set;!function l(v){const N=Ft(v,!0),V=N.id;null!==V&&(function W1(n,f,l){if(f&&f!==l)throw new Error(`Duplicate module registered for ${n} - ${ir(f)} vs ${ir(f.name)}`)}(V,Xf.get(V),v),Xf.set(V,v));const J=pi(N.imports);for(const ie of J)f.has(ie)||(f.add(ie),l(ie))}(n)}(f)}create(f){return new Q1(this.moduleType,f)}}function Tl(n){return f=>{setTimeout(n,void 0,f)}}const Ii=class Sm extends F{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,l,v){let N=f,V=l||(()=>null),J=v;if(f&&"object"==typeof f){const he=f;N=he.next?.bind(he),V=he.error?.bind(he),J=he.complete?.bind(he)}this.__isAsync&&(V=Tl(V),N&&(N=Tl(N)),J&&(J=Tl(J)));const ie=super.subscribe({next:N,error:V,complete:J});return f instanceof o&&f.add(ie),ie}};function so(...n){}Symbol;const Mp=new Vr("Application Initializer");let jl=(()=>{class n{constructor(l){this.appInits=l,this.resolve=so,this.reject=so,this.initialized=!1,this.done=!1,this.donePromise=new Promise((v,N)=>{this.resolve=v,this.reject=N})}runInitializers(){if(this.initialized)return;const l=[],v=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let N=0;N{V.subscribe({complete:ie,error:he})});l.push(J)}}Promise.all(l).then(()=>{v()}).catch(N=>{this.reject(N)}),0===l.length&&v(),this.initialized=!0}}return n.\u0275fac=function(l){return new(l||n)(Wr(Mp,8))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Y0=new Vr("AppId",{providedIn:"root",factory:function _p(){return`${Vl()}${Vl()}${Vl()}`}});function Vl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Sp=new Vr("Platform Initializer"),Tp=new Vr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),s8=new Vr("appBootstrapListener"),Fi=new Vr("LocaleId",{providedIn:"root",factory:()=>k2(Fi,cr.Optional|cr.SkipSelf)||function l8(){return typeof $localize<"u"&&$localize.locale||Xa}()}),h8=(()=>Promise.resolve(0))();function Hl(n){typeof Zone>"u"?h8.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Pn{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:v=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ii(!1),this.onMicrotaskEmpty=new Ii(!1),this.onStable=new Ii(!1),this.onError=new Ii(!1),typeof Zone>"u")throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!v&&l,N.shouldCoalesceRunChangeDetection=v,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function p8(){let n=Dr.requestAnimationFrame,f=Dr.cancelAnimationFrame;if(typeof Zone<"u"&&n&&f){const l=n[Zone.__symbol__("OriginalDelegate")];l&&(n=l);const v=f[Zone.__symbol__("OriginalDelegate")];v&&(f=v)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function v8(n){const f=()=>{!function g8(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Dr,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Kl(n),n.isCheckStableRunning=!0,zl(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Kl(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,v,N,V,J,ie)=>{try{return Dp(n),l.invokeTask(N,V,J,ie)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||n.shouldCoalesceRunChangeDetection)&&f(),Ip(n)}},onInvoke:(l,v,N,V,J,ie,he)=>{try{return Dp(n),l.invoke(N,V,J,ie,he)}finally{n.shouldCoalesceRunChangeDetection&&f(),Ip(n)}},onHasTask:(l,v,N,V)=>{l.hasTask(N,V),v===N&&("microTask"==V.change?(n._hasPendingMicrotasks=V.microTask,Kl(n),zl(n)):"macroTask"==V.change&&(n.hasPendingMacrotasks=V.macroTask))},onHandleError:(l,v,N,V)=>(l.handleError(N,V),n.runOutsideAngular(()=>n.onError.emit(V)),!1)})}(N)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Pn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,l,v){return this._inner.run(f,l,v)}runTask(f,l,v,N){const V=this._inner,J=V.scheduleEventTask("NgZoneEvent: "+N,f,y8,so,so);try{return V.runTask(J,l,v)}finally{V.cancelTask(J)}}runGuarded(f,l,v){return this._inner.runGuarded(f,l,v)}runOutsideAngular(f){return this._outer.run(f)}}const y8={};function zl(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Kl(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Dp(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ip(n){n._nesting--,zl(n)}class b8{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ii,this.onMicrotaskEmpty=new Ii,this.onStable=new Ii,this.onError=new Ii}run(f,l,v){return f.apply(l,v)}runGuarded(f,l,v){return f.apply(l,v)}runOutsideAngular(f){return f()}runTask(f,l,v,N){return f.apply(l,v)}}let Gl=(()=>{class n{constructor(l){this._ngZone=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),l.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pn.assertNotInAngularZone(),Hl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Hl(()=>{for(;0!==this._callbacks.length;){let l=this._callbacks.pop();clearTimeout(l.timeoutId),l.doneCb(this._didWork)}this._didWork=!1});else{let l=this.getPendingTasks();this._callbacks=this._callbacks.filter(v=>!v.updateCb||!v.updateCb(l)||(clearTimeout(v.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(l=>({source:l.source,creationLocation:l.creationLocation,data:l.data})):[]}addCallback(l,v,N){let V=-1;v&&v>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(J=>J.timeoutId!==V),l(this._didWork,this.getPendingTasks())},v)),this._callbacks.push({doneCb:l,timeoutId:V,updateCb:N})}whenStable(l,v,N){if(N&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(l,v,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(l,v,N){return[]}}return n.\u0275fac=function(l){return new(l||n)(Wr(Pn))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})(),m8=(()=>{class n{constructor(){this._applications=new Map,Wl.addToWindow(this)}registerApplication(l,v){this._applications.set(l,v)}unregisterApplication(l){this._applications.delete(l)}unregisterAllApplications(){this._applications.clear()}getTestability(l){return this._applications.get(l)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(l,v=!0){return Wl.findTestabilityInTree(this,l,v)}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=Hr({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class w8{addToWindow(f){}findTestabilityInTree(f,l,v){return null}}let Wl=new w8,J0=null;const Cp=new Vr("AllowMultipleToken"),Pp=new Vr("PlatformOnDestroy");function Bp(n,f,l=[]){const v=`Platform: ${f}`,N=new Vr(v);return(V=[])=>{let J=Zl();if(!J||J.injector.get(Cp,!1)){const ie=[...l,...V,{provide:N,useValue:!0}];n?n(ie):function M8(n){if(J0&&!J0.get(Cp,!1))throw new or(400,"");J0=n;const f=n.get(Rp),l=n.get(Sp,null);l&&l.forEach(v=>v())}(function S8(n=[],f){return gi.create({name:f,providers:[{provide:$s,useValue:"platform"},{provide:Pp,useValue:()=>J0=null},...n]})}(ie,v))}return function _8(n){const f=Zl();if(!f)throw new or(401,"");return f}()}}function Zl(){return J0?.get(Rp)??null}let Rp=(()=>{class n{constructor(l){this._injector=l,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(l,v){const ie=function T8(n,f){let l;return l="noop"===n?new b8:("zone.js"===n?void 0:n)||new Pn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!f?.ngZoneEventCoalescing,shouldCoalesceRunChangeDetection:!!f?.ngZoneRunCoalescing}),l}(v?v.ngZone:void 0,{ngZoneEventCoalescing:v&&v.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:v&&v.ngZoneRunCoalescing||!1}),he=[{provide:Pn,useValue:ie}];return ie.run(()=>{const Te=gi.create({providers:he,parent:this.injector,name:l.moduleType.name}),Ke=l.create(Te),ft=Ke.injector.get(R0,null);if(!ft)throw new or(402,"");return ie.runOutsideAngular(()=>{const ht=ie.onError.subscribe({next:wt=>{ft.handleError(wt)}});Ke.onDestroy(()=>{Ql(this._modules,Ke),ht.unsubscribe()})}),function D8(n,f,l){try{const v=l();return dl(v)?v.catch(N=>{throw f.runOutsideAngular(()=>n.handleError(N)),N}):v}catch(v){throw f.runOutsideAngular(()=>n.handleError(v)),v}}(ft,ie,()=>{const ht=Ke.injector.get(jl);return ht.runInitializers(),ht.donePromise.then(()=>(function J5(n){un(n,"Expected localeId to be defined"),"string"==typeof n&&(y1=n.toLowerCase().replace(/_/g,"-"))}(Ke.injector.get(Fi,Xa)||Xa),this._moduleDoBootstrap(Ke),Ke))})})}bootstrapModule(l,v=[]){const N=kp({},v);return function A8(n,f,l){const v=new Sl(l);return Promise.resolve(v)}(0,0,l).then(V=>this.bootstrapModuleFactory(V,N))}_moduleDoBootstrap(l){const v=l.injector.get(Op);if(l._bootstrapComponents.length>0)l._bootstrapComponents.forEach(N=>v.bootstrap(N));else{if(!l.instance.ngDoBootstrap)throw new or(403,"");l.instance.ngDoBootstrap(v)}this._modules.push(l)}onDestroy(l){this._destroyListeners.push(l)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new or(404,"");this._modules.slice().forEach(v=>v.destroy()),this._destroyListeners.forEach(v=>v()),this._injector.get(Pp,null)?.(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(l){return new(l||n)(Wr(gi))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function kp(n,f){return Array.isArray(f)?f.reduce(kp,n):{...n,...f}}let Op=(()=>{class n{constructor(l,v,N,V){this._zone=l,this._injector=v,this._exceptionHandler=N,this._initStatus=V,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const J=new u(he=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{he.next(this._stable),he.complete()})}),ie=new u(he=>{let Te;this._zone.runOutsideAngular(()=>{Te=this._zone.onStable.subscribe(()=>{Pn.assertNotInAngularZone(),Hl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,he.next(!0))})})});const Ke=this._zone.onUnstable.subscribe(()=>{Pn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{he.next(!1)}))});return()=>{Te.unsubscribe(),Ke.unsubscribe()}});this.isStable=St(J,ie.pipe(function Ut(n={}){const{connector:f=(()=>new F),resetOnError:l=!0,resetOnComplete:v=!0,resetOnRefCountZero:N=!0}=n;return V=>{let J,ie,he,Te=0,Ke=!1,ft=!1;const ht=()=>{null==ie||ie.unsubscribe(),ie=void 0},wt=()=>{ht(),J=he=void 0,Ke=ft=!1},Tt=()=>{const Ot=J;wt(),null==Ot||Ot.unsubscribe()};return ae((Ot,Kt)=>{Te++,!ft&&!Ke&&ht();const Xt=he=he??f();Kt.add(()=>{Te--,0===Te&&!ft&&!Ke&&(ie=Nt(Tt,N))}),Xt.subscribe(Kt),!J&&Te>0&&(J=new Q({next:kt=>Xt.next(kt),error:kt=>{ft=!0,ht(),ie=Nt(wt,l,kt),Xt.error(kt)},complete:()=>{Ke=!0,ht(),ie=Nt(wt,v),Xt.complete()}}),We(Ot).subscribe(J))})(V)}}()))}bootstrap(l,v){if(!this._initStatus.done)throw new or(405,"");let N;N=l instanceof j1?l:this._injector.get(no).resolveComponentFactory(l),this.componentTypes.push(N.componentType);const V=function E8(n){return n.isBoundToModule}(N)?void 0:this._injector.get($f),ie=N.create(gi.NULL,[],v||N.selector,V),he=ie.location.nativeElement,Te=ie.injector.get(Gl,null),Ke=Te&&ie.injector.get(m8);return Te&&Ke&&Ke.registerApplication(he,Te),ie.onDestroy(()=>{this.detachView(ie.hostView),Ql(this.components,ie),Ke&&Ke.unregisterApplication(he)}),this._loadComponent(ie),ie}tick(){if(this._runningTick)throw new or(101,"");try{this._runningTick=!0;for(let l of this._views)l.detectChanges()}catch(l){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(l))}finally{this._runningTick=!1}}attachView(l){const v=l;this._views.push(v),v.attachToAppRef(this)}detachView(l){const v=l;Ql(this._views,v),v.detachFromAppRef()}_loadComponent(l){this.attachView(l.hostView),this.tick(),this.components.push(l),this._injector.get(s8,[]).concat(this._bootstrapListeners).forEach(N=>N(l))}ngOnDestroy(){this._views.slice().forEach(l=>l.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(l){return new(l||n)(Wr(Pn),Wr(gi),Wr(R0),Wr(jl))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ql(n,f){const l=n.indexOf(f);l>-1&&n.splice(l,1)}let Lp=!0;const W8=Bp(null,"core",[]);let Z8=(()=>{class n{constructor(l){}}return n.\u0275fac=function(l){return new(l||n)(Wr(Op))},n.\u0275mod=Me({type:n}),n.\u0275inj=Rn({}),n})(),ho=null;function X0(){return ho}const xi=new Vr("DocumentToken");let y4=(()=>{class n{}return n.\u0275fac=function(l){return new(l||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Rn({}),n})();class du extends class x4 extends class J8{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Y8(n){ho||(ho=n)}(new du)}onAndCancel(f,l,v){return f.addEventListener(l,v,!1),()=>{f.removeEventListener(l,v,!1)}}dispatchEvent(f,l){f.dispatchEvent(l)}remove(f){f.parentNode&&f.parentNode.removeChild(f)}createElement(f,l){return(l=l||this.getDefaultDocument()).createElement(f)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(f){return f.nodeType===Node.ELEMENT_NODE}isShadowRoot(f){return f instanceof DocumentFragment}getGlobalEventTarget(f,l){return"window"===l?window:"document"===l?f:"body"===l?f.body:null}getBaseHref(f){const l=function A4(){return ta=ta||document.querySelector("base"),ta?ta.getAttribute("href"):null}();return null==l?null:function E4(n){Eo=Eo||document.createElement("a"),Eo.setAttribute("href",n);const f=Eo.pathname;return"/"===f.charAt(0)?f:`/${f}`}(l)}resetBaseElement(){ta=null}getUserAgent(){return window.navigator.userAgent}getCookie(f){return function N3(n,f){f=encodeURIComponent(f);for(const l of n.split(";")){const v=l.indexOf("="),[N,V]=-1==v?[l,""]:[l.slice(0,v),l.slice(v+1)];if(N.trim()===f)return decodeURIComponent(V)}return null}(document.cookie,f)}}let Eo,ta=null;const u6=new Vr("TRANSITION_ID"),_4=[{provide:Mp,useFactory:function M4(n,f,l){return()=>{l.get(jl).donePromise.then(()=>{const v=X0(),N=f.querySelectorAll(`style[ng-transition="${n}"]`);for(let V=0;V{const V=f.findTestabilityInTree(v,N);if(null==V)throw new Error("Could not find testability for element.");return V},Dr.getAllAngularTestabilities=()=>f.getAllTestabilities(),Dr.getAllAngularRootElements=()=>f.getAllRootElements(),Dr.frameworkStabilizers||(Dr.frameworkStabilizers=[]),Dr.frameworkStabilizers.push(v=>{const N=Dr.getAllAngularTestabilities();let V=N.length,J=!1;const ie=function(he){J=J||he,V--,0==V&&v(J)};N.forEach(function(he){he.whenStable(ie)})})}findTestabilityInTree(f,l,v){return null==l?null:f.getTestability(l)??(v?X0().isShadowRoot(l)?this.findTestabilityInTree(f,l.host,!0):this.findTestabilityInTree(f,l.parentElement,!0):null)}}let S4=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})();const Mo=new Vr("EventManagerPlugins");let _o=(()=>{class n{constructor(l,v){this._zone=v,this._eventNameToPlugin=new Map,l.forEach(N=>N.manager=this),this._plugins=l.slice().reverse()}addEventListener(l,v,N){return this._findPluginFor(v).addEventListener(l,v,N)}addGlobalEventListener(l,v,N){return this._findPluginFor(v).addGlobalEventListener(l,v,N)}getZone(){return this._zone}_findPluginFor(l){const v=this._eventNameToPlugin.get(l);if(v)return v;const N=this._plugins;for(let V=0;V{class n{constructor(){this._stylesSet=new Set}addStyles(l){const v=new Set;l.forEach(N=>{this._stylesSet.has(N)||(this._stylesSet.add(N),v.add(N))}),this.onStylesAdded(v)}onStylesAdded(l){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})(),ra=(()=>{class n extends d6{constructor(l){super(),this._doc=l,this._hostNodes=new Map,this._hostNodes.set(l.head,[])}_addStylesToHost(l,v,N){l.forEach(V=>{const J=this._doc.createElement("style");J.textContent=V,N.push(v.appendChild(J))})}addHost(l){const v=[];this._addStylesToHost(this._stylesSet,l,v),this._hostNodes.set(l,v)}removeHost(l){const v=this._hostNodes.get(l);v&&v.forEach(h6),this._hostNodes.delete(l)}onStylesAdded(l){this._hostNodes.forEach((v,N)=>{this._addStylesToHost(l,N,v)})}ngOnDestroy(){this._hostNodes.forEach(l=>l.forEach(h6))}}return n.\u0275fac=function(l){return new(l||n)(Wr(xi))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})();function h6(n){X0().remove(n)}const pu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},yu=/%COMP%/g;function So(n,f,l){for(let v=0;v{if("__ngUnwrap__"===f)return n;!1===n(f)&&(f.preventDefault(),f.returnValue=!1)}}let gu=(()=>{class n{constructor(l,v,N){this.eventManager=l,this.sharedStylesHost=v,this.appId=N,this.rendererByCompId=new Map,this.defaultRenderer=new vu(l)}createRenderer(l,v){if(!l||!v)return this.defaultRenderer;switch(v.encapsulation){case An.Emulated:{let N=this.rendererByCompId.get(v.id);return N||(N=new B4(this.eventManager,this.sharedStylesHost,v,this.appId),this.rendererByCompId.set(v.id,N)),N.applyToHost(l),N}case 1:case An.ShadowDom:return new R4(this.eventManager,this.sharedStylesHost,l,v);default:if(!this.rendererByCompId.has(v.id)){const N=So(v.id,v.styles,[]);this.sharedStylesHost.addStyles(N),this.rendererByCompId.set(v.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(l){return new(l||n)(Wr(_o),Wr(ra),Wr(Y0))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})();class vu{constructor(f){this.eventManager=f,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(f,l){return l?document.createElementNS(pu[l]||l,f):document.createElement(f)}createComment(f){return document.createComment(f)}createText(f){return document.createTextNode(f)}appendChild(f,l){f.appendChild(l)}insertBefore(f,l,v){f&&f.insertBefore(l,v)}removeChild(f,l){f&&f.removeChild(l)}selectRootElement(f,l){let v="string"==typeof f?document.querySelector(f):f;if(!v)throw new Error(`The selector "${f}" did not match any elements`);return l||(v.textContent=""),v}parentNode(f){return f.parentNode}nextSibling(f){return f.nextSibling}setAttribute(f,l,v,N){if(N){l=N+":"+l;const V=pu[N];V?f.setAttributeNS(V,l,v):f.setAttribute(l,v)}else f.setAttribute(l,v)}removeAttribute(f,l,v){if(v){const N=pu[v];N?f.removeAttributeNS(N,l):f.removeAttribute(`${v}:${l}`)}else f.removeAttribute(l)}addClass(f,l){f.classList.add(l)}removeClass(f,l){f.classList.remove(l)}setStyle(f,l,v,N){N&(Un.DashCase|Un.Important)?f.style.setProperty(l,v,N&Un.Important?"important":""):f.style[l]=v}removeStyle(f,l,v){v&Un.DashCase?f.style.removeProperty(l):f.style[l]=""}setProperty(f,l,v){f[l]=v}setValue(f,l){f.nodeValue=l}listen(f,l,v){return"string"==typeof f?this.eventManager.addGlobalEventListener(f,l,g6(v)):this.eventManager.addEventListener(f,l,g6(v))}}class B4 extends vu{constructor(f,l,v,N){super(f),this.component=v;const V=So(N+"-"+v.id,v.styles,[]);l.addStyles(V),this.contentAttr=function I4(n){return"_ngcontent-%COMP%".replace(yu,n)}(N+"-"+v.id),this.hostAttr=function C4(n){return"_nghost-%COMP%".replace(yu,n)}(N+"-"+v.id)}applyToHost(f){super.setAttribute(f,this.hostAttr,"")}createElement(f,l){const v=super.createElement(f,l);return super.setAttribute(v,this.contentAttr,""),v}}class R4 extends vu{constructor(f,l,v,N){super(f),this.sharedStylesHost=l,this.hostEl=v,this.shadowRoot=v.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const V=So(N.id,N.styles,[]);for(let J=0;J{class n extends c6{constructor(l){super(l)}supports(l){return!0}addEventListener(l,v,N){return l.addEventListener(v,N,!1),()=>this.removeEventListener(l,v,N)}removeEventListener(l,v,N){return l.removeEventListener(v,N)}}return n.\u0275fac=function(l){return new(l||n)(Wr(xi))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})();const b6=["alt","control","meta","shift"],N4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},m6={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},L4={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let U4=(()=>{class n extends c6{constructor(l){super(l)}supports(l){return null!=n.parseEventName(l)}addEventListener(l,v,N){const V=n.parseEventName(v),J=n.eventCallback(V.fullKey,N,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>X0().onAndCancel(l,V.domEventName,J))}static parseEventName(l){const v=l.toLowerCase().split("."),N=v.shift();if(0===v.length||"keydown"!==N&&"keyup"!==N)return null;const V=n._normalizeKey(v.pop());let J="";if(b6.forEach(he=>{const Te=v.indexOf(he);Te>-1&&(v.splice(Te,1),J+=he+".")}),J+=V,0!=v.length||0===V.length)return null;const ie={};return ie.domEventName=N,ie.fullKey=J,ie}static getEventFullKey(l){let v="",N=function F4(n){let f=n.key;if(null==f){if(f=n.keyIdentifier,null==f)return"Unidentified";f.startsWith("U+")&&(f=String.fromCharCode(parseInt(f.substring(2),16)),3===n.location&&m6.hasOwnProperty(f)&&(f=m6[f]))}return N4[f]||f}(l);return N=N.toLowerCase()," "===N?N="space":"."===N&&(N="dot"),b6.forEach(V=>{V!=N&&L4[V](l)&&(v+=V+".")}),v+=N,v}static eventCallback(l,v,N){return V=>{n.getEventFullKey(V)===l&&N.runGuarded(()=>v(V))}}static _normalizeKey(l){return"esc"===l?"escape":l}}return n.\u0275fac=function(l){return new(l||n)(Wr(xi))},n.\u0275prov=Hr({token:n,factory:n.\u0275fac}),n})();const z4=Bp(W8,"browser",[{provide:Tp,useValue:"browser"},{provide:Sp,useValue:function j4(){du.makeCurrent(),hu.init()},multi:!0},{provide:xi,useFactory:function H4(){return function L6(n){ko=n}(document),document},deps:[]}]),K4=[{provide:$s,useValue:"root"},{provide:R0,useFactory:function V4(){return new R0},deps:[]},{provide:Mo,useClass:k4,multi:!0,deps:[xi,Pn,Tp]},{provide:Mo,useClass:U4,multi:!0,deps:[xi]},{provide:gu,useClass:gu,deps:[_o,ra,Y0]},{provide:H1,useExisting:gu},{provide:d6,useExisting:ra},{provide:ra,useClass:ra,deps:[xi]},{provide:Gl,useClass:Gl,deps:[Pn]},{provide:_o,useClass:_o,deps:[Mo,Pn]},{provide:class w4{},useClass:S4,deps:[]}];let G4=(()=>{class n{constructor(l){if(l)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(l){return{ngModule:n,providers:[{provide:Y0,useValue:l.appId},{provide:u6,useExisting:Y0},_4]}}}return n.\u0275fac=function(l){return new(l||n)(Wr(n,12))},n.\u0275mod=Me({type:n}),n.\u0275inj=Rn({providers:K4,imports:[y4,Z8]}),n})();typeof window<"u"&&window;var n,r9=x(61204),Cn=(x(48551),x(36022)),Vi=x(7791),ai=x(3787),na=function(n){var f="function"==typeof Symbol&&Symbol.iterator,l=f&&n[f],v=0;if(l)return l.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&v>=n.length&&(n=void 0),{value:n&&n[v++],done:!n}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},f9=function(){function n(f,l){this.config=f,this.showWhitelistCallback=l,this.storedWhitelist={},this.staticWhitelist={},this.loadStaticWhitelist(),this.loadStoredWhitelist()}return n.prototype.loadStaticWhitelist=function(){var f,l,v,N;if(this.config.issuers)try{for(var V=na(this.config.issuers),J=V.next();!J.done;J=V.next()){var ie=J.value,he=ie.collectionID,Te=ie.whitelist;if(Te)try{for(var Ke=(v=void 0,na(Te)),ft=Ke.next();!ft.done;ft=Ke.next()){var ht=ft.value;try{if(ht=new URL(ht).origin,!this.staticWhitelist[ht]){this.staticWhitelist[ht]=[he];continue}this.staticWhitelist[ht].push(he)}catch(wt){(0,Cn.kg)(2,"Failed to validate whitelist origin: "+wt.message)}}}catch(wt){v={error:wt}}finally{try{ft&&!ft.done&&(N=Ke.return)&&N.call(Ke)}finally{if(v)throw v.error}}}}catch(wt){f={error:wt}}finally{try{J&&!J.done&&(l=V.return)&&l.call(V)}finally{if(f)throw f.error}}},n.prototype.loadStoredWhitelist=function(){var f;try{this.storedWhitelist=null!==(f=JSON.parse(localStorage.getItem(n.STORAGE_KEY)))&&void 0!==f?f:{}}catch{}},n.prototype.saveWhitelist=function(){localStorage.setItem(n.STORAGE_KEY,JSON.stringify(this.storedWhitelist))},n.prototype.getWhitelistedIssuers=function(f){var l,v,N,V,J=null!==(V=null===(N=this.storedWhitelist[f])||void 0===N?void 0:N.issuers)&&void 0!==V?V:[];if(this.staticWhitelist[f])try{for(var ie=na(this.staticWhitelist[f]),he=ie.next();!he.done;he=ie.next())J.push(he.value)}catch(Ke){l={error:Ke}}finally{try{he&&!he.done&&(v=ie.return)&&v.call(ie)}finally{if(l)throw l.error}}return J},n.prototype.isWhitelisted=function(f,l){var v,N,V;try{for(var J=na(l),ie=J.next();!ie.done;ie=J.next()){var he=ie.value;if(!(this.staticWhitelist[f]&&-1!==this.staticWhitelist[f].indexOf(he)||(null===(V=this.storedWhitelist[f])||void 0===V?void 0:V.issuers)&&-1!==this.storedWhitelist[f].issuers.indexOf(he)))return!1}}catch(Te){v={error:Te}}finally{try{ie&&!ie.done&&(N=J.return)&&N.call(J)}finally{if(v)throw v.error}}return!0},n.prototype.whitelistCheck=function(f,l){return function(n,f,l,v){return new(l||(l=Promise))(function(V,J){function ie(Ke){try{Te(v.next(Ke))}catch(ft){J(ft)}}function he(Ke){try{Te(v.throw(Ke))}catch(ft){J(ft)}}function Te(Ke){Ke.done?V(Ke.value):function N(V){return V instanceof l?V:new l(function(J){J(V)})}(Ke.value).then(ie,he)}Te((v=v.apply(n,f||[])).next())})}(this,void 0,void 0,function(){var v,N;return function(n,f){var v,N,V,J,l={label:0,sent:function(){if(1&V[0])throw V[1];return V[1]},trys:[],ops:[]};return J={next:ie(0),throw:ie(1),return:ie(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ie(Te){return function(Ke){return function he(Te){if(v)throw new TypeError("Generator is already executing.");for(;J&&(J=0,Te[0]&&(l=0)),l;)try{if(v=1,N&&(V=2&Te[0]?N.return:Te[0]?N.throw||((V=N.return)&&V.call(N),0):N.next)&&!(V=V.call(N,Te[1])).done)return V;switch(N=0,V&&(Te=[2&Te[0],V.value]),Te[0]){case 0:case 1:V=Te;break;case 4:return l.label++,{value:Te[1],done:!1};case 5:l.label++,N=Te[1],Te=[0];continue;case 7:Te=l.ops.pop(),l.trys.pop();continue;default:if(!(V=(V=l.trys).length>0&&V[V.length-1])&&(6===Te[0]||2===Te[0])){l=0;continue}if(3===Te[0]&&(!V||Te[1]>V[0]&&Te[1]\n\t\t\t\t
\n\t\t\t\t\t").concat(l.map(function(Ke){return'\n\t\t\t\t\t\t\n\t\t\t\t\t")}),"\n\t\t\t\t
\n\t\t\t"),ie='',he='',Te=v.config.whitelistDialogRenderer?v.config.whitelistDialogRenderer(J,ie,he):'\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t'.concat(J,"\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t").concat(ie,"\n\t\t\t\t\t\t").concat(he,"\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t");document.body.insertAdjacentHTML("beforeend",Te),document.getElementById("tn-access-accept").addEventListener("click",function(){var Ke,ft,ht,wt=document.getElementsByClassName("tn-permission-cb"),Tt=[];try{for(var Ot=na(wt),Kt=Ot.next();!Kt.done;Kt=Ot.next()){var Xt=Kt.value,kt=Xt.getAttribute("data-issuer");(null===(ht=v.storedWhitelist[f])||void 0===ht?void 0:ht.issuers)||(v.storedWhitelist[f]={issuers:[]}),Xt.checked&&Tt.push(kt)}}catch(lr){Ke={error:lr}}finally{try{Kt&&!Kt.done&&(ft=Ot.return)&&ft.call(Ot)}finally{if(Ke)throw Ke.error}}v.storedWhitelist[f].issuers=Tt,v.saveWhitelist(),N()}),document.getElementById("tn-access-deny").addEventListener("click",function(){v.storedWhitelist[f]&&delete v.storedWhitelist[f],v.saveWhitelist(),(0,Cn.pC)("tn-user-denied-access-to-connection",!0,10),V(new Error("USER_ABORT"))}),v.showWhitelistCallback()})},n.STORAGE_KEY="tn-whitelist",n}(),a9=x(60981),A6=x(74177),o9=x(18260),s9=(n=function(f,l){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,N){v.__proto__=N}||function(v,N){for(var V in N)Object.prototype.hasOwnProperty.call(N,V)&&(v[V]=N[V])})(f,l)},function(f,l){if("function"!=typeof l&&null!==l)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function v(){this.constructor=f}n(f,l),f.prototype=null===l?Object.create(l):(v.prototype=l.prototype,new v)}),mu=function(){return mu=Object.assign||function(n){for(var f,l=1,v=arguments.length;l0&&V[V.length-1])&&(6===Te[0]||2===Te[0])){l=0;continue}if(3===Te[0]&&(!V||Te[1]>V[0]&&Te[1]=n.length&&(n=void 0),{value:n&&n[v++],done:!n}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},l9={whitelistDialogWidth:"450px",whitelistDialogHeight:"350px"};(function(n){function f(l,v){void 0===v&&(v=null);var N=n.call(this,l)||this;if(N.tokenConfig=l,N.tokenConfig=Object.assign(l9,l),N.whitelist=new f9(N.tokenConfig,function(){var J=N.getDataFromQuery("evtid");N.sendMessageResponse({evtid:J,evt:Vi.kt.SHOW_FRAME,max_width:N.tokenConfig.whitelistDialogWidth,min_height:N.tokenConfig.whitelistDialogHeight})}),v)N.urlParams=v;else{var V=window.location.hash.length>1?"?"+window.location.hash.substring(1):window.location.search;N.urlParams=new URLSearchParams(V)}return N.pageOnLoadEventHandler().catch(function(J){console.error(J),(0,Cn.kg)(2,"Outlet pageOnLoadEventHandler error: "+J.message)}),N}s9(f,n),f.prototype.getDataFromQuery=function(l){return this.urlParams?this.urlParams.has(Vi.ss+l)?this.urlParams.get(Vi.ss+l):this.urlParams.get(l):null},f.prototype.getCallbackUrlKey=function(l){return Vi.ss+l},f.prototype.pageOnLoadEventHandler=function(){var l;return ia(this,void 0,void 0,function(){var v,N,V,ie;return fa(this,function(he){switch(he.label){case 0:v=this.getDataFromQuery("evtid"),N=this.getDataFromQuery("action"),(V=this.getDataFromQuery("requestor"))&&(this.redirectCallbackUrl=new URL(V)),(0,Cn.kg)(2,"Outlet received event ID "+v+" action "+N+" at "+window.location.href),he.label=1;case 1:switch(he.trys.push([1,15,,16]),N){case ai.gF.GET_ISSUER_TOKENS:return[3,2];case ai.gF.EMAIL_ATTEST_CALLBACK:return[3,4];case ai.gF.GET_PROOF:return[3,6];case ai.gF.GET_MUTLI_PROOF:return[3,8]}return[3,10];case 2:return[4,this.sendTokens(v)];case 3:return he.sent(),[3,14];case 4:return"true"===this.getDataFromQuery("localClient")?[2]:[4,this.processAttestationIdCallback(v)];case 5:return he.sent(),[3,14];case 6:return[4,this.sendTokenProof(v)];case 7:return he.sent(),[3,14];case 8:return[4,this.sendMultiTokenProof(v)];case 9:return he.sent(),[3,14];case 10:return this.getDataFromQuery("ticket")?[4,this.readMagicLink()]:[3,13];case 11:return he.sent(),[4,this.sendTokens(v)];case 12:he.sent(),he.label=13;case 13:return[3,14];case 14:return[3,16];case 15:return ie=he.sent(),console.error(ie),this.sendErrorResponse(v,null!==(l=null==ie?void 0:ie.message)&&void 0!==l?l:ie,this.getDataFromQuery("issuer")),[3,16];case 16:return[2]}})})},f.prototype.processAttestationIdCallback=function(l){var v=this.redirectCallbackUrl,N=this.getDataFromQuery("issuer");try{switch((new A6.p).captureAttestationIdCallback(this.urlParams),this.getDataFromQuery("orig-action")){case ai.gF.GET_PROOF:this.sendTokenProof(l);break;case ai.gF.GET_MUTLI_PROOF:this.sendMultiTokenProof(l);break;default:throw new Error("Original action not defined in attestation.id callback")}}catch(ie){if(console.error(ie),v)return this.proofRedirectError(N,ie.message)}window.location.hash=(0,Cn.rT)(this.urlParams,["attestation","requestSecret","address","wallet"]).toString()},f.prototype.getIssuerConfigById=function(l){var v,N;if(this.tokenConfig.issuers){try{for(var V=aa(this.tokenConfig.issuers),J=V.next();!J.done;J=V.next()){var ie=J.value;if(ie.collectionID===l)return ie}}catch(he){v={error:he}}finally{try{J&&!J.done&&(N=V.return)&&N.call(V)}finally{if(v)throw v.error}}throw new Error("Issuer "+l+" not found")}},f.prototype.readMagicLink=function(){return ia(this,void 0,void 0,function(){return fa(this,function(l){switch(l.label){case 0:return this.urlParams.has("ticket")?[4,this.ticketStorage.importTicketFromMagicLink(this.urlParams)]:[2];case 1:return l.sent(),[2]}})})},f.prototype.sendMultiTokenProof=function(l){return ia(this,void 0,void 0,function(){var v,N,V,J,ie,he,Te,Ke,ft,ht=this;return fa(this,function(wt){switch(wt.label){case 0:v=this.getDataFromQuery("tokens"),N=this.getDataFromQuery("wallet"),V=this.getDataFromQuery("address"),(0,Cn.Sg)(v,"unsigned token is missing"),J="true"===this.getDataFromQuery("redirect")&&window.location.href,wt.label=1;case 1:return wt.trys.push([1,3,,4]),ie=JSON.parse(v),[4,this.authenticateMany(ie,V,N,J,function(){ht.sendMessageResponse({evtid:l,evt:Vi.kt.SHOW_FRAME,max_width:ht.tokenConfig.whitelistDialogWidth,min_height:ht.tokenConfig.whitelistDialogHeight})})];case 2:return he=wt.sent(),this.redirectCallbackUrl?(Te=this.redirectCallbackUrl,(Ke=new URLSearchParams(Te.hash.substring(1))).set(this.getCallbackUrlKey("action"),"proof-callback"),Ke.set(this.getCallbackUrlKey("multi-token"),"true"),Ke.set(this.getCallbackUrlKey("tokens"),JSON.stringify(he)),Te.hash=Ke.toString(),window.location.href=Te.href,[2]):(this.sendMessageResponse({evtid:l,evt:ai.AJ.PROOF,data:he}),[3,4]);case 3:return ft=wt.sent(),(0,Cn.kg)(2,ft),J?[2,this.proofRedirectError(this.getDataFromQuery("issuer"),ft.message)]:(this.sendErrorResponse(l,ft.message),[3,4]);case 4:return[2]}})})},f.prototype.sendTokenProof=function(l){return ia(this,void 0,void 0,function(){var v,N,V,J,ie,he,Te,Ke,ht,wt,Tt,Ot,Kt,Xt=this;return fa(this,function(kt){switch(kt.label){case 0:v=this.getDataFromQuery("issuer"),N=this.getDataFromQuery("token"),V=this.getDataFromQuery("wallet"),J=this.getDataFromQuery("address"),(0,Cn.Sg)(N,"unsigned token is missing"),ie=JSON.parse(N),he="true"===this.getDataFromQuery("redirect")&&window.location.href,kt.label=1;case 1:return kt.trys.push([1,5,,6]),Te=this.getIssuerConfigById(v),[4,this.ticketStorage.getStoredTicketFromDecodedTokenOrId((0,Cn.s1)(Te),ie)];case 2:return Ke=kt.sent(),[4,new A6.p(Te.attestationOrigin,function(){Xt.sendMessageResponse({evtid:l,evt:Vi.kt.SHOW_FRAME,max_width:Xt.tokenConfig.whitelistDialogWidth,min_height:Xt.tokenConfig.whitelistDialogHeight})},he).getIdentifierAttestation(Ke.id,V,J,{action:ai.gF.GET_PROOF,issuer:v,token:JSON.stringify(ie)})];case 3:return ht=kt.sent(),[4,(0,o9.s)(Te,ht.attestation,ht.identifierSecret,Ke)];case 4:return wt=kt.sent(),this.redirectCallbackUrl?(Tt=this.redirectCallbackUrl,(Ot=new URLSearchParams(Tt.hash.substring(1))).set(this.getCallbackUrlKey("action"),"proof-callback"),Ot.set(this.getCallbackUrlKey("issuer"),v),Ot.set(this.getCallbackUrlKey("attestation"),wt.proof),Ot.set(this.getCallbackUrlKey("type"),Ke.type),Ot.set(this.getCallbackUrlKey("token"),N),Tt.hash=Ot.toString(),window.location.href=Tt.href,[2]):(this.sendMessageResponse({evtid:l,evt:ai.AJ.PROOF,data:mu({issuer:Te.collectionID},wt)}),[3,6]);case 5:return Kt=kt.sent(),(0,Cn.kg)(2,Kt),he?[2,this.proofRedirectError(this.getDataFromQuery("issuer"),Kt.message)]:(this.sendErrorResponse(l,Kt.message),[3,6]);case 6:return[2]}})})},f.prototype.sendTokens=function(l){return ia(this,void 0,void 0,function(){var v,N,V,J,ie,he,Te,Ke,ft,ht,wt,Tt,Ot,Kt,Xt,kt,lr,xr,Rr,bn,oi,e0,Hi,t0,zi,r0,Ki,n0;return fa(this,function(rf){switch(rf.label){case 0:if(!(v=JSON.parse(this.getDataFromQuery("request"))))return[2];N={};try{for(V=aa(this.tokenConfig.issuers),J=V.next();!J.done;J=V.next()){ie=(0,Cn.s1)(Tt=J.value);try{for(Hi=void 0,he=aa(ie),Te=he.next();!Te.done;Te=he.next())N[kt=Te.value]=Tt}catch(jn){Hi={error:jn}}finally{try{Te&&!Te.done&&(t0=he.return)&&t0.call(he)}finally{if(Hi)throw Hi.error}}}}catch(jn){oi={error:jn}}finally{try{J&&!J.done&&(e0=V.return)&&e0.call(V)}finally{if(oi)throw oi.error}}for(Tt in Ke=[],v)try{for(zi=void 0,ft=aa(v[Tt]),ht=ft.next();!ht.done;ht=ft.next())N[kt=ht.value]&&-1===Ke.indexOf(N[kt])&&Ke.push(N[kt])}catch(jn){zi={error:jn}}finally{try{ht&&!ht.done&&(r0=ft.return)&&r0.call(ft)}finally{if(zi)throw zi.error}}return[4,this.whitelist.whitelistCheck(Ke,!1)];case 1:for(Tt in wt=rf.sent(),v){Ot=[];try{for(Ki=void 0,Kt=aa(v[Tt]),Xt=Kt.next();!Xt.done;Xt=Kt.next())N[kt=Xt.value]&&wt.indexOf(N[kt].collectionID)>-1&&Ot.push(kt)}catch(jn){Ki={error:jn}}finally{try{Xt&&!Xt.done&&(n0=Kt.return)&&n0.call(Kt)}finally{if(Ki)throw Ki.error}}v[Tt]=Ot}return[4,this.ticketStorage.getDecodedTokens(v)];case 2:if(lr=rf.sent(),(0,Cn.kg)(2,"issuerTokens: (Outlet.sendTokens)",lr),this.redirectCallbackUrl)try{return xr=this.redirectCallbackUrl,(Rr=new URLSearchParams(xr.hash.substring(1))).set(this.getCallbackUrlKey("action"),ai.gF.GET_ISSUER_TOKENS+"-response"),Rr.set(this.getCallbackUrlKey("tokens"),JSON.stringify(lr)),xr.hash="#"+Rr.toString(),(0,Cn.kg)(2,"tokens ready. go to: ",bn=xr.href),window.location.href=bn,[2]}catch(jn){(0,Cn.kg)(2,"Requestor redirect Error. ",jn)}return this.sendMessageResponse({evtid:l,evt:ai.AJ.ISSUER_TOKENS,data:{tokens:lr}}),[2]}})})},f.prototype.sendErrorResponse=function(l,v,N,V){if(void 0===V&&(V="error"),this.redirectCallbackUrl){var J=this.redirectCallbackUrl,ie=new URLSearchParams(J.hash.substring(1));return ie.set(this.getCallbackUrlKey("action"),Vi.kt.ERROR),ie.set(this.getCallbackUrlKey("issuer"),N),ie.set(this.getCallbackUrlKey("type"),V),ie.set(this.getCallbackUrlKey("error"),v),J.hash="#"+ie.toString(),void(window.location.href=J.href)}this.sendMessageResponse({evtid:l,evt:Vi.kt.ERROR,errors:[v]})},f.prototype.proofRedirectError=function(l,v){var N=this.redirectCallbackUrl,V=new URLSearchParams(N.hash.substring(1));V.set(this.getCallbackUrlKey("action"),"proof-callback"),V.set(this.getCallbackUrlKey("issuer"),l),V.set(this.getCallbackUrlKey("error"),v),N.hash=V.toString(),window.location.href=N.href},f.prototype.sendMessageResponse=function(l){var v;document.referrer&&(window.opener&&window.opener!==window?v=window.opener:window.parent!==window&&(v=window.parent),v&&v.postMessage(l,"*"))}})(a9.c),x(80567),x(19441),x(70648);const u9=[{collectionID:"devcon",onChain:!1,title:"Devcon",image:"https://raw.githubusercontent.com/TokenScript/token-negotiator/main/mock-images/devcon.svg",tokenOrigin:"https://tokenscript.github.io/token-negotiator-gh-pages/token-outlet-website/",unEndPoint:"https://crypto-verify.herokuapp.com/use-devcon-ticket",base64senderPublicKeys:{6:"MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABGMxHraqggr2keTXszIcchTjYjH5WXpDaBOYgXva82mKcGnKgGRORXSmcjWN2suUCMkLQj3UNlZCFWF10wIrrlw="},base64attestorPubKey:"MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABL+y43T1OJFScEep69/yTqpqnV/jzONz9Sp4TEHyAJ7IPN9+GHweCX1hT4OFxt152sBN3jJc1s0Ymzd8pNGZNoQ="},{onChain:!0,collectionID:"Perion",contract:"0x96af92ae2d822a0f191455ceca4d4e7ee227668e",chain:"mumbai",blockchain:"evm"},{collectionID:"COOLCATS-#2426-14",onChain:!0,contract:"0x3C7e352481F4b2fdEc1e642a3f0018661c77513D",chain:"eth",openSeaSlug:"devcon-vi-suit-up-collection"},{collectionID:"Town-Hall",onChain:!0,contract:"0x81b30ff521D1fEB67EDE32db726D95714eb00637",chain:"Optimism"},{collectionID:"Blusteak Kangaroo #64",onChain:!0,contract:"0xa996F7F3BC647EebC98C684aB0A302c9b85d2FA1",chain:"Avalanche"},{collectionID:"Alone Pirate",onChain:!0,contract:"0x36535ec384B94342558e37282527b5052587af6A",chain:"Arbitrum"},{collectionID:"TNM",onChain:!0,contract:"0x3cC6c9c6DC13814c6ba4da3520d2Ae40332A831F",chain:"goerli",fungible:!0},{collectionID:"Tether-USD",onChain:!0,contract:"0xdac17f958d2ee523a2206206994597c13d831ec7",chain:"eth",fungible:!0},{collectionID:"AdEx-Network",onChain:!0,contract:"0xade00c28244d5ce17d72e40330b1c318cd12b7c3",chain:"eth",fungible:!0},{collectionID:"AAVEPool",contract:"0xb7fd3398484ea4eff33e003db4c85d4984f8d62e",fungible:!0,onChain:!0,chain:"polygon"},{collectionID:"Minereum-AVAX",contract:"0xf9d922c055a3f1759299467dafafdf43be844f7a",fungible:!0,onChain:!0,chain:"Avalanche"},{collectionID:"Testv4",contract:"0x499d11e0b6eac7c0593d8fb292dcbbf815fb29ae",fungible:!0,onChain:!0,chain:"goerli"},{collectionID:"Dummy ERC20",contract:"0xfe4f5145f6e09952a5ba9e956ed0c25e3fa4c7f1",fungible:!0,onChain:!0,chain:"mumbai"},{collectionID:"Domains",onChain:!0,contract:"A.233eb012d34b0070.Domains",chain:"mainnet",blockchain:"flow"},{collectionID:"AllDay",onChain:!0,contract:"A.e4cf4bdc1751c65d.AllDay",chain:"mainnet",blockchain:"flow"},{collectionID:"NBA",onChain:!0,contract:"A.0b2a3299cc857e29.TopShot",chain:"mainnet",blockchain:"flow"}];let c9=(()=>{class n{constructor(){this.issuers=u9,this.negotiator=new r9.KU({type:"active",issuers:this.issuers,uiOptions:{openingHeading:"Open a new world of perks, benefits and opportunities with your attestation, collectible or token.",issuerHeading:"Get discount with Ticket",repeatAction:"try again",theme:"light",position:"bottom-right"},autoLoadTokens:3})}ngOnInit(){this.negotiator.negotiate(),this.negotiator.on("connected-wallet",l=>{console.log("connected wallet ==>",l),this.negotiator.getUi().openOverlay()}),this.negotiator.on("tokens-selected",l=>{console.log("Got tokens...",l)})}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275cmp=ut({type:n,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"main"],[1,"overlay-tn"]],template:function(l,v){1&l&&(Ja(0,"section",0)(1,"h1"),Wh(2,"Brand Connector bare bones example with Angular"),F0(),ll(3,"div",1),F0())},styles:[".main[_ngcontent-%COMP%]{padding:20px}.main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;font-family:Open Sans,sans-serif}"]}),n})(),d9=(()=>{class n{}return n.\u0275fac=function(l){return new(l||n)},n.\u0275mod=Me({type:n,bootstrap:[c9]}),n.\u0275inj=Rn({providers:[],imports:[[G4]]}),n})();(function C8(){Lp=!1})(),z4().bootstrapModule(d9).catch(n=>console.error(n))},61172:(q,k,x)=>{"use strict";x.d(k,{G:()=>B});var B=function(){function I(M){this.client=M}return I.prototype.saveProof=function(M,P){var o=this.getProofs();P?(o[this.getFullKey(M)]=P,localStorage.setItem(I.STORAGE_KEY,JSON.stringify(o))):this.deleteProof(M)},I.prototype.getSavedProof=function(M){var P=this.getProofs(),o=this.getFullKey(M);return P[o]?P[o]:null},I.prototype.deleteProof=function(M){var P=this.getProofs(),o=this.getFullKey(M);P[o]&&delete P[o],localStorage.setItem(I.STORAGE_KEY,JSON.stringify(P))},I.prototype.getFullKey=function(M){return this.TYPE+"-"+M.toLowerCase()},I.prototype.getProofs=function(){var M=localStorage.getItem(I.STORAGE_KEY);return M&&M.length?JSON.parse(M):{}},I.STORAGE_KEY="tn-proof",I}()},61204:(q,k,x)=>{"use strict";x.d(k,{KU:()=>Yn,XF:()=>En,ct:()=>Er});var B=x(3787),I=x(80567),M=x(36022),P=x(44880),o=x(70648),w=x(19441),S=function(){return S=Object.assign||function(_e){for(var Ce,ge=1,Xe=arguments.length;ge0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]0)&&!(qe=Xe.next()).done;)ke.push(qe.value)}catch(mt){ut={error:mt}}finally{try{qe&&!qe.done&&(ge=Xe.return)&&ge.call(Xe)}finally{if(ut)throw ut.error}}return ke},b=function(){function _e(Ce,ge){this.isStartView=!0,this.loadTimer=null,this.options=Ce,this.client=ge,this.forceToOpen=!1}return _e.prototype.initialize=function(){var Ce,ge;return D(this,void 0,void 0,function(){var Xe,qe=this;return A(this,function(ke){switch(ke.label){case 0:return this.popupContainer=document.querySelector(this.options.containerElement),this.popupContainer||(this.popupContainer=document.createElement("div"),this.popupContainer.className="overlay-tn",document.body.appendChild(this.popupContainer)),this.initializeUIType(),this.setTheme(null!==(ge=null===(Ce=this.options)||void 0===Ce?void 0:Ce.theme)&&void 0!==ge?ge:"light"),this.transitionContainer=this.popupContainer.querySelector(".transition-wrapper-tn"),this.viewContainer=this.popupContainer.querySelector(".view-content-tn"),this.loadContainer=this.popupContainer.querySelector(".load-container-tn"),this.retryButton=this.loadContainer.querySelector(".dismiss-error-tn"),this.retryButton.addEventListener("click",function(){qe.dismissLoader(),qe.retryCallback&&(qe.retryCallback(),qe.retryCallback=void 0,qe.retryButton.innerText="Dismiss")}),Xe=this.updateUI,[4,this.getStartScreen()];case 1:return Xe.apply(this,[ke.sent(),{viewName:"start"}]),[2]}})})},_e.prototype.getViewFactory=function(Ce){var ge,Xe,qe,ke,ut,mt={};return(null===(ge=this.options.viewOverrides)||void 0===ge?void 0:ge[Ce])&&((null===(Xe=this.options.viewOverrides)||void 0===Xe?void 0:Xe[Ce].options)&&(mt=null===(qe=this.options.viewOverrides)||void 0===qe?void 0:qe[Ce].options),null===(ke=this.options.viewOverrides)||void 0===ke?void 0:ke[Ce].component)?[null===(ut=this.options.viewOverrides)||void 0===ut?void 0:ut[Ce].component,mt]:[this.getDefaultView(Ce),mt]},_e.prototype.getDefaultView=function(Ce){switch(Ce){case"start":return I.z;case"main":return o.$;case"wallet":return w.R}},_e.prototype.getStartScreen=function(){return D(this,void 0,void 0,function(){return A(this,function(Ce){switch(Ce.label){case 0:return!this.options.alwaysShowStartScreen&&localStorage.getItem(P.W.LOCAL_STORAGE_KEY)&&this.client.getTokenStore().getTotalTokenCount()?[4,this.canSkipWalletSelection()]:[2,"start"];case 1:return Ce.sent()?(this.client.enrichTokenLookupDataOnChainTokens(),[2,"main"]):[2,"wallet"]}})})},_e.prototype.canSkipWalletSelection=function(){return D(this,void 0,void 0,function(){var Ce;return A(this,function(ge){switch(ge.label){case 0:return this.client.getTokenStore().hasOnChainTokens()?[4,this.client.getWalletProvider()]:[3,3];case 1:return[4,(Ce=ge.sent()).loadConnections()];case 2:return ge.sent(),[2,Ce.hasAnyConnection(this.client.getTokenStore().getCurrentBlockchains())];case 3:return[2,!0]}})})},_e.prototype.getUIContainer=function(){return _e.UI_CONTAINER_HTML},_e.prototype.getFabButton=function(){return _e.FAB_BUTTON_HTML},_e.prototype.initializeUIType=function(){var Ce=this;switch(this.popupContainer.classList.add(this.options.uiType+"-tn"),this.options.uiType){case"popup":this.popupContainer.classList.add(this.options.position?this.options.position:"bottom-right"),this.popupContainer.innerHTML=this.getUIContainer()+this.getFabButton(),this.popupContainer.querySelector(".overlay-fab-button-tn").addEventListener("click",this.togglePopup.bind(this)),this.popupContainer.addEventListener("click",function(ge){ge.stopPropagation()}),document.addEventListener("click",function(){Ce.closeOverlay()});break;case"inline":this.popupContainer.innerHTML=this.getUIContainer()}},_e.prototype.closeOverlay=function(){"inline"!==this.options.uiType&&(this.forceToOpen||(this.popupContainer.classList.add("close"),this.popupContainer.classList.remove("open"),this.client.eventSender("closed-overlay",null)))},_e.prototype.openOverlay=function(){var Ce=this;"inline"!==this.options.uiType&&setTimeout(function(){Ce.client.eventSender("opened-overlay",null),Ce.popupContainer.classList.add("open"),Ce.popupContainer.classList.remove("close")},10)},_e.prototype.togglePopup=function(){(0,M.Sg)(this.popupContainer,"No overlay element found."),this.popupContainer.classList.contains("open")?this.closeOverlay():this.openOverlay()},_e.prototype.updateUI=function(Ce,ge,Xe){var qe=this,ke={},ut="unknown";if("string"==typeof Ce){this.isStartView="start"===Ce,ut=Ce;var mt=g(this.getViewFactory(Ce),2);Ce=mt[0],ke=mt[1]}else this.isStartView=!1,(null==ge?void 0:ge.viewName)&&(ut=ge.viewName);if(Xe&&(ke=S(S({},ke),Xe)),this.viewContainer){var Ie,Me;if((null==ke?void 0:ke.viewTransition)&&["slide-in-left","slide-in-right","slide-in-top","slide-in-bottom"].indexOf(null==ke?void 0:ke.viewTransition)>-1){Ie=(null==ke?void 0:ke.viewTransition)+"-tn",Me=this.viewContainer;var $e=document.createElement("div");this.transitionContainer.classList.add(Ie),$e.classList.add("view-content-tn"),"slide-in-left-tn"===Ie||"slide-in-top-tn"===Ie?this.transitionContainer.prepend($e):this.transitionContainer.appendChild($e),this.viewContainer=$e}this.currentView=ke.componentIsFactory?Ce(this.client,this,this.viewContainer,{options:this.options,viewOptions:ke,data:ge}):new Ce(this.client,this,this.viewContainer,{options:this.options,viewOptions:ke,data:ge}),this.currentView.render(),Ie&&(setTimeout(function(){Me.remove(),qe.transitionContainer.classList.remove("slide-in",Ie)},300),this.transitionContainer.classList.add("slide-in")),this.client.eventSender("view-changed",{viewName:ut,data:ge})}else(0,M.kg)(3,"Element .view-content-tn not found: popup not initialized")},_e.prototype.viewIsNotStart=function(){return!this.isStartView},_e.prototype.getCustomUserError=function(Ce){var ge=Ce;return Ce&&Ce.contains&&Ce.contains("Failed to read the 'localStorage'")&&(ge="Please enable cookies in your browser to use this feature or try a different browser."),ge},_e.prototype.showError=function(Ce,ge){var Xe=this;if(void 0===ge&&(ge=!0),this.cancelDelayedLoader(),"string"!=typeof Ce){if(Ce.name===En.USER_ABORT)return this.dismissLoader();Ce=Ce.message?Ce.message:Ce.toString()}else if(Ce===En.USER_ABORT)return this.dismissLoader();this.loadContainer.querySelector(".loader-tn").style.display="none",this.retryButton.style.display="block";var ke=this.getCustomUserError(Ce);this.loadContainer.querySelector(".loader-msg-tn").innerHTML='

'.concat(ke,"

"),this.loadContainer.style.display="flex",ge||(this.loadContainer.querySelector(".dismiss-error-tn").style.display="none"),setTimeout(function(){Xe.setForceToOpen(!1)},0)},_e.prototype.setErrorRetryCallback=function(Ce){this.retryCallback=Ce,this.retryButton.innerText="Retry"},_e.prototype.showLoaderDelayed=function(Ce,ge,Xe){var qe=this;void 0===Xe&&(Xe=!1),this.loadTimer&&clearTimeout(this.loadTimer),this.loadTimer=setTimeout(function(){qe.showLoader.apply(qe,function(_e,Ce,ge){if(ge||2===arguments.length)for(var ke,Xe=0,qe=Ce.length;Xe\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t',_e.FAB_BUTTON_HTML='\n\t\t\n\t',_e}(),y=x(97757),m=["evm","polygon","optimism","bsc","avalanche","fantom","goerli","mumbai","arbitrum"],C=function(_e){return""===_e?((0,M.Po)("You did not specify 'blockchain', the default value is evm. Check our github to see supported values.","warning",null,null),"evm"):"solana"===_e?"solana":"evm"===_e?"evm":"flow"===_e?"flow":"ultra"===_e?"ultra":m.includes(_e.toLowerCase())?((0,M.Po)("We recommend you to set `blockchain` as 'evm'.","warning",null,null),"evm"):((0,M.Po)("You set unsupported `blockchain` in the constructor. Check our github to see supported values.","error",null,null),_e)},L=x(70287),R=function(_e,Ce,ge,Xe){return new(ge||(ge=Promise))(function(ke,ut){function mt(Ie){try{oe(Xe.next(Ie))}catch(Me){ut(Me)}}function Mt(Ie){try{oe(Xe.throw(Ie))}catch(Me){ut(Me)}}function oe(Ie){Ie.done?ke(Ie.value):function qe(ke){return ke instanceof ge?ke:new ge(function(ut){ut(ke)})}(Ie.value).then(mt,Mt)}oe((Xe=Xe.apply(_e,Ce||[])).next())})},U=function(_e,Ce){var Xe,qe,ke,ut,ge={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return ut={next:mt(0),throw:mt(1),return:mt(2)},"function"==typeof Symbol&&(ut[Symbol.iterator]=function(){return this}),ut;function mt(oe){return function(Ie){return function Mt(oe){if(Xe)throw new TypeError("Generator is already executing.");for(;ut&&(ut=0,oe[0]&&(ge=0)),ge;)try{if(Xe=1,qe&&(ke=2&oe[0]?qe.return:oe[0]?qe.throw||((ke=qe.return)&&ke.call(qe),0):qe.next)&&!(ke=ke.call(qe,oe[1])).done)return ke;switch(qe=0,ke&&(oe=[2&oe[0],ke.value]),oe[0]){case 0:case 1:ke=oe;break;case 4:return ge.label++,{value:oe[1],done:!1};case 5:ge.label++,qe=oe[1],oe=[0];continue;case 7:oe=ge.ops.pop(),ge.trys.pop();continue;default:if(!(ke=(ke=ge.trys).length>0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]_e.length)&&(Ce=_e.length);for(var ge=0,Xe=new Array(Ce);ge=_e.length?{done:!0}:{done:!1,value:_e[Xe++]}},e:function(oe){throw oe},f:qe}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var mt,ke=!0,ut=!1;return{s:function(){ge=ge.call(_e)},n:function(){var oe=ge.next();return ke=oe.done,oe},e:function(oe){ut=!0,mt=oe},f:function(){try{!ke&&null!=ge.return&&ge.return()}finally{if(ut)throw mt}}}}var lt,Lt="function"==typeof queueMicrotask?queueMicrotask:function(_e){return(lt||(lt=Promise.resolve())).then(_e).catch(function(Ce){return setTimeout(function(){throw Ce},0)})},ct=function(){var ge,Ce=[];return{deliver:function(qe){return fe(ee().mark(function ke(){return ee().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:Ce.push(qe),ge&&(ge(Ce.shift()),ge=void 0);case 2:case"end":return mt.stop()}},ke)}))()},receive:function(){return new Promise(function(ke){var ut=Ce.shift();if(ut)return ke(ut);ge=ke})}}},He="INIT",Ue="SUBSCRIBE",Se="UNSUBSCRIBE",Ve="UPDATED",Y="TERMINATE",z="object"===(typeof self>"u"?"undefined":c(self))&&self.self===self&&self||"object"===(typeof global>"u"?"undefined":c(global))&&global.global===global&&global||"object"===(typeof window>"u"?"undefined":c(window))&&window.window===window&&window;z.FCL_REGISTRY=z.FCL_REGISTRY??{};var xe,G=0,ce=function(Ce,ge,Xe){var qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise(function(ke,ut){var mt=qe.expectReply||!1,Mt=null!=qe.timeout?qe.timeout:5e3;mt&&Mt&&setTimeout(function(){return ut(new Error("Timeout: ".concat(Mt,"ms passed without a response.")))},Mt);var oe={to:Ce,from:qe.from,tag:ge,data:Xe,timeout:Mt,reply:ke,reject:ut};try{z.FCL_REGISTRY[Ce]&&z.FCL_REGISTRY[Ce].mailbox.deliver(oe),mt||ke(!0)}catch(Ie){console.error("FCL.Actor -- Could Not Deliver Message",oe,z.FCL_REGISTRY[Ce],Ie)}})},Ge=function(Ce){delete z.FCL_REGISTRY[Ce]},De=function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var ge=fe(ee().mark(function Xe(qe){var ke;return ee().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if("function"!=typeof Ce[He]){mt.next=3;break}return mt.next=3,Ce[He](qe);case 3:return mt.next=6,qe.receive();case 6:if(ke=mt.sent,mt.prev=7,"EXIT"!==ke.tag){mt.next=13;break}if("function"!=typeof Ce[Y]){mt.next=12;break}return mt.next=12,Ce[Y](qe,ke,ke.data||{});case 12:return mt.abrupt("break",25);case 13:return mt.next=15,Ce[ke.tag](qe,ke,ke.data||{});case 15:mt.next=20;break;case 17:mt.prev=17,mt.t0=mt.catch(7),console.error("".concat(qe.self()," Error"),ke,mt.t0);case 20:return mt.prev=20,mt.abrupt("continue",3);case 23:mt.next=3;break;case 25:case"end":return mt.stop()}},Xe,null,[[7,17,20,23]])}));return function(Xe){return ge.apply(this,arguments)}}()},we=function(Ce){var ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==ge&&(ge=++G),null!=z.FCL_REGISTRY[ge])return ge;z.FCL_REGISTRY[ge]={addr:ge,mailbox:ct(),subs:new Set,kvs:{},error:null};var Xe={self:function(){return ge},receive:function(){return z.FCL_REGISTRY[ge].mailbox.receive()},send:function(ke,ut,mt){var Mt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Mt.from=ge,ce(ke,ut,mt,Mt)},sendSelf:function(ke,ut,mt){z.FCL_REGISTRY[ge]&&ce(ge,ke,ut,mt)},broadcast:function(ke,ut){var mt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};mt.from=ge;var oe,Mt=ot(z.FCL_REGISTRY[ge].subs);try{for(Mt.s();!(oe=Mt.n()).done;){var Ie=oe.value;ce(Ie,ke,ut,mt)}}catch(Me){Mt.e(Me)}finally{Mt.f()}},subscribe:function(ke){return null!=ke&&z.FCL_REGISTRY[ge].subs.add(ke)},unsubscribe:function(ke){return null!=ke&&z.FCL_REGISTRY[ge].subs.delete(ke)},subscriberCount:function(){return z.FCL_REGISTRY[ge].subs.size},hasSubs:function(){return!!z.FCL_REGISTRY[ge].subs.size},put:function(ke,ut){null!=ke&&(z.FCL_REGISTRY[ge].kvs[ke]=ut)},get:function(ke,ut){return z.FCL_REGISTRY[ge].kvs[ke]??ut},delete:function(ke){delete z.FCL_REGISTRY[ge].kvs[ke]},update:function(ke,ut){null!=ke&&(z.FCL_REGISTRY[ge].kvs[ke]=ut(z.FCL_REGISTRY[ge].kvs[ke]))},keys:function(){return Object.keys(z.FCL_REGISTRY[ge].kvs)},all:function(){return z.FCL_REGISTRY[ge].kvs},where:function(ke){return Object.keys(z.FCL_REGISTRY[ge].kvs).reduce(function(ut,mt){return ke.test(mt)?Et(Et({},ut),{},Ne({},mt,z.FCL_REGISTRY[ge].kvs[mt])):ut},{})},merge:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(ke).forEach(function(ut){return z.FCL_REGISTRY[ge].kvs[ut]=ke[ut]})},fatalError:function(ke){z.FCL_REGISTRY[ge].error=ke;var mt,ut=ot(z.FCL_REGISTRY[ge].subs);try{for(ut.s();!(mt=ut.n()).done;)ce(mt.value,Ve)}catch(oe){ut.e(oe)}finally{ut.f()}}};return"object"===c(Ce)&&(Ce=De(Ce)),Lt(fe(ee().mark(function qe(){return ee().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,Ce(Xe);case 2:Ge(ge);case 3:case"end":return ut.stop()}},qe)}))),ge},te="config",le="PUT_CONFIG",me="GET_CONFIG",Pe="GET_ALL_CONFIG",st="UPDATE_CONFIG",tt="DELETE_CONFIG",et="CLEAR_CONFIG",gt="WHERE_CONFIG",Fe="CONFIG/UPDATED",ne=function(Ce){return Ce},yt=(Ne(xe={},le,function(_e,Ce,ge){var Xe=ge.key,qe=ge.value;if(null==Xe)throw new Error("Missing 'key' for config/put.");_e.put(Xe,qe),_e.broadcast(Fe,Et({},_e.all()))}),Ne(xe,me,function(_e,Ce,ge){var Xe=ge.key,qe=ge.fallback;if(null==Xe)throw new Error("Missing 'key' for config/get");Ce.reply(_e.get(Xe,qe))}),Ne(xe,Pe,function(_e,Ce){Ce.reply(Et({},_e.all()))}),Ne(xe,st,function(_e,Ce,ge){var Xe=ge.key,qe=ge.fn;if(null==Xe)throw new Error("Missing 'key' for config/update");_e.update(Xe,qe||ne),_e.broadcast(Fe,Et({},_e.all()))}),Ne(xe,tt,function(_e,Ce,ge){var Xe=ge.key;if(null==Xe)throw new Error("Missing 'key' for config/delete");_e.delete(Xe),_e.broadcast(Fe,Et({},_e.all()))}),Ne(xe,et,function(_e,Ce){for(var Xe=0,qe=Object.keys(_e.all());Xe1?mt[1]:void 0,(Ce=mt.length>0&&void 0!==mt[0]?mt[0]:[]).length){oe.next=4;break}return oe.abrupt("return",ge);case 4:return Xe=ye(Ce),qe=Xe[0],ke=Xe.slice(1),oe.next=7,$(qe);case 7:if(null!=(ut=oe.sent)){oe.next=10;break}return oe.abrupt("return",We(ke,ge));case 10:return oe.abrupt("return",ut);case 11:case"end":return oe.stop()}},_e)})),Be.apply(this,arguments)}function Ze(){return ce(te,Pe,null,{expectReply:!0,timeout:10})}function pe(_e){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne;return ce(te,st,{key:_e,fn:Ce}),vt()}function ve(_e){return ce(te,tt,{key:_e}),vt()}function be(_e){return ce(te,gt,{pattern:_e},{expectReply:!0,timeout:10})}function de(_e){return function Oe(_e,Ce,ge){Ce(_e);var qe=we(function(){var ke=fe(ee().mark(function ut(mt){var Mt,oe;return ee().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:mt.send(_e,Ue);case 1:return Me.next=4,mt.receive();case 4:if(oe=z.FCL_REGISTRY[_e].error,"@EXIT"!==(Mt=Me.sent).tag){Me.next=9;break}return mt.send(_e,Se),Me.abrupt("return");case 9:if(!oe){Me.next=13;break}return ge(null,oe),mt.send(_e,Se),Me.abrupt("return");case 13:ge(Mt.data,null),Me.next=1;break;case 16:case"end":return Me.stop()}},ut)}));return function(ut){return ke.apply(this,arguments)}}());return function(){return ce(qe,"@EXIT")}}(te,function(){return we(yt,te)},_e)}function Je(_e){return function Re(){return ce(te,et)}().then(vt(_e))}function vt(_e){return null!=_e&&"object"===c(_e)&&Object.keys(_e).map(function(Ce){return rt(Ce,_e[Ce])}),{put:rt,get:$,all:Ze,first:We,update:pe,delete:ve,where:be,subscribe:de,overload:at}}we(yt,te),vt.put=rt,vt.get=$,vt.all=Ze,vt.first=We,vt.update=pe,vt.delete=ve,vt.where=be,vt.subscribe=de,vt.overload=at;var it=function(Ce){return Ce};function at(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it;return new Promise(function(){var ge=fe(ee().mark(function Xe(qe,ke){var ut,mt;return ee().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.next=2,Ze();case 2:return ut=oe.sent,oe.prev=3,vt(_e),oe.t0=Ce,oe.next=8,Ze();case 8:return oe.t1=oe.sent,oe.next=11,(0,oe.t0)(oe.t1);case 11:return mt=oe.sent,oe.next=14,Je(ut);case 14:qe(mt),oe.next=22;break;case 17:return oe.prev=17,oe.t2=oe.catch(3),oe.next=21,Je(ut);case 21:ke(oe.t2);case 22:case"end":return oe.stop()}},Xe,null,[[3,17]])}));return function(Xe,qe){return ge.apply(this,arguments)}}())}var It=Object.freeze({debug:5,info:4,log:3,warn:2,error:1}),At=function(Ce){var Xe=Ce.message;return["\n %c".concat(Ce.title,"\n ============================\n\n ").concat(Xe,"\n\n ============================\n ").replace(/\n[^\S\r\n]+/g,"\n").trim(),,"font-weight:bold;font-family:monospace;"]},Rt=function(){var _e=fe(ee().mark(function Ce(ge){var Xe,qe,ke,ut,mt,Mt,oe,Ie,Me,Qe,$e,nt;return ee().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return Mt=ge.title,oe=ge.message,Ie=ge.level,Qe=void 0!==(Me=ge.always)&&Me,bt.next=3,vt.get("logger.level",It.warn);case 3:if($e=bt.sent,Qe||!($e8)&&Bt("Expected at least one digit, and at most 8 digits following the decimal of the [U]Fix64 value but found ".concat(Ce[1].length," digits. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")),Ce[1]=Ce[1].padEnd(8,"0"),{type:"UFix64",value:_e=Ce.join(".")}}if(Wt(_e))return fr(),{type:"UFix64",value:_e.toString()};Bt("Expected String for UFix64")},function(_e){return _e}),Pt("Fix64",function(_e){if(Ht(_e)){var Ce=_e.split(".");return 2!==Ce.length&&Bt("Expected one decimal but found ".concat(Ce.length," in the [U]Fix64 value. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")),(0==Ce[1].length||Ce[1].length>8)&&Bt("Expected at least one digit, and at most 8 digits following the decimal of the [U]Fix64 value but found ".concat(Ce[1].length," digits. Find out more about [U]Fix64 types here: https://docs.onflow.org/cadence/json-cadence-spec/#fixed-point-numbers")),Ce[1]=Ce[1].padEnd(8,"0"),{type:"Fix64",value:_e=Ce.join(".")}}if(Wt(_e))return fr(),{type:"Fix64",value:_e.toString()};Bt("Expected String for Fix64")},function(_e){return _e}),Pt("String",function(_e){if(Ht(_e))return{type:"String",value:_e};Bt("Expected String for type String")},function(_e){return _e})),Tr=(Pt("Character",function(_e){if(Ht(_e))return{type:"Character",value:_e};Bt("Expected Character for type Character")},function(_e){return _e}),Pt("Bool",function(_e){if("boolean"==typeof _e)return{type:"Bool",value:_e};Bt("Expected Boolean for type Bool")},function(_e){return _e}),Pt("Address",function(_e){if(Ht(_e))return{type:"Address",value:_e};Bt("Expected Address for type Address")},function(_e){return _e})),o0=(Pt("Void",function(_e){if(!_e||null==_e)return{type:"Void"};Bt("Expected Void for type Void")},function(_e){return _e}),Pt("Reference",function(_e){if(er(_e))return{type:"Reference",value:_e};Bt("Expected Object for type Reference")},function(_e){return _e}),Pt("Path",function(_e){if(er(_e))return Ht(_e.domain)||Bt("Expected a string for the Path domain but found ".concat(_e.domain,". Find out more about the Path type here: https://docs.onflow.org/cadence/json-cadence-spec/#path")),"storage"===_e.domain||"private"===_e.domain||"public"===_e.domain||Bt('Expected either "storage", "private" or "public" as the Path domain but found '.concat(_e.domain,". Find out more about the Path type here: https://docs.onflow.org/cadence/json-cadence-spec/#path")),Ht(_e.identifier)||Bt("Expected a string for the Path identifier but found ".concat(_e.identifier,". Find out more about the Path type here: https://docs.onflow.org/cadence/json-cadence-spec/#path")),{type:"Path",value:{domain:_e.domain,identifier:_e.identifier}};Bt("Expected Object for type Path")},function(_e){return _e}),x(5213)),si=function(_e,Ce){return Object.defineProperty?Object.defineProperty(_e,"raw",{value:Ce}):_e.raw=Ce,_e},un=function(_e,Ce,ge,Xe){return new(ge||(ge=Promise))(function(ke,ut){function mt(Ie){try{oe(Xe.next(Ie))}catch(Me){ut(Me)}}function Mt(Ie){try{oe(Xe.throw(Ie))}catch(Me){ut(Me)}}function oe(Ie){Ie.done?ke(Ie.value):function qe(ke){return ke instanceof ge?ke:new ge(function(ut){ut(ke)})}(Ie.value).then(mt,Mt)}oe((Xe=Xe.apply(_e,Ce||[])).next())})},vr=function(_e,Ce){var Xe,qe,ke,ut,ge={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return ut={next:mt(0),throw:mt(1),return:mt(2)},"function"==typeof Symbol&&(ut[Symbol.iterator]=function(){return this}),ut;function mt(oe){return function(Ie){return function Mt(oe){if(Xe)throw new TypeError("Generator is already executing.");for(;ut&&(ut=0,oe[0]&&(ge=0)),ge;)try{if(Xe=1,qe&&(ke=2&oe[0]?qe.return:oe[0]?qe.throw||((ke=qe.return)&&ke.call(qe),0):qe.next)&&!(ke=ke.call(qe,oe[1])).done)return ke;switch(qe=0,ke&&(oe=[2&oe[0],ke.value]),oe[0]){case 0:case 1:ke=oe;break;case 4:return ge.label++,{value:oe[1],done:!1};case 5:ge.label++,qe=oe[1],oe=[0];continue;case 7:oe=ge.ops.pop(),ge.trys.pop();continue;default:if(!(ke=(ke=ge.trys).length>0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1] 0 {\n let accountKey = account.keys.get(keyIndex: Int(keyNumber - 1)) ?? panic("This keyIndex does not exist in this account")\n let key = accountKey.publicKey\n if key.verify(\n signature: sig, \n signedData: msg, \n domainSeparationTag: "FLOW-V0.0-user", \n hashAlgorithm: HashAlgorithm.SHA3_256\n ) {\n res = true\n break\n }\n keyNumber = keyNumber - 1\n }\n return res\n }\n '],['\n pub fun main(address: Address, sig: String, msg: String): Bool {\n let account = getAccount(address)\n let sig = sig.decodeHex()\n let msg = msg.decodeHex()\n let isValid = false\n var keyNumber = account.keys.count\n var res: Bool = false\n while keyNumber > 0 {\n let accountKey = account.keys.get(keyIndex: Int(keyNumber - 1)) ?? panic("This keyIndex does not exist in this account")\n let key = accountKey.publicKey\n if key.verify(\n signature: sig, \n signedData: msg, \n domainSeparationTag: "FLOW-V0.0-user", \n hashAlgorithm: HashAlgorithm.SHA3_256\n ) {\n res = true\n break\n }\n keyNumber = keyNumber - 1\n }\n return res\n }\n ']))),Xe.args([Xe.arg(Ce.address,Tr),Xe.arg(Ce.signature,Br),Xe.arg((0,M.XI)(Ce.messageToSign),Br)])]).then(Xe.decode)];case 6:return oe.sent()?[2,!0]:[3,8];case 7:return oe.sent(),console.log("Flow address recover error"),[3,8];case 8:return[2,!1];case 9:if(Ce.blockchain&&"evm"!==Ce.blockchain)throw new Error('Blockchain "'.concat(Ce.blockchain,'" not supported'));if(ut=e.r(Ce.messageToSign),mt=i.arrayify(ut),u.recoverAddress(mt,Ce.signature).toLowerCase()===Ce.address.toLowerCase())return[2,!0];oe.label=10;case 10:return[2,!1]}})})},_e.validateChallenge=function(Ce,ge){return un(this,void 0,void 0,function(){return vr(this,function(ke){switch(ke.label){case 0:return[4,fetch(Ce,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(ge)})];case 1:return[4,ke.sent().json()];case 2:return[2,ke.sent().address]}})})},_e.DEFAULT_ENDPOINT="https://api.smarttokenlabs.com/un",_e.COMMON_API_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9qZWN0IjoidG9rZW4tbmVnb3RpYXRvciIsImlhdCI6MTY4OTc1NzQ4Nn0.ELE1OVvVFY1yrWlbnxtQur6dgeVxmKlPb9LZ_8cMOs8",_e}(),l0=(_e=function(Ce,ge){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xe,qe){Xe.__proto__=qe}||function(Xe,qe){for(var ke in qe)Object.prototype.hasOwnProperty.call(qe,ke)&&(Xe[ke]=qe[ke])})(Ce,ge)},function(Ce,ge){if("function"!=typeof ge&&null!==ge)throw new TypeError("Class extends value "+String(ge)+" is not a constructor or null");function Xe(){this.constructor=Ce}_e(Ce,ge),Ce.prototype=null===ge?Object.create(ge):(Xe.prototype=ge.prototype,new Xe)}),Rn=function(_e){function Ce(){var ge=null!==_e&&_e.apply(this,arguments)||this;return ge.TYPE="signedUN",ge}return l0(Ce,_e),Ce.prototype.getTokenProof=function(ge){var Xe,qe;return function(_e,Ce,ge,Xe){return new(ge||(ge=Promise))(function(ke,ut){function mt(Ie){try{oe(Xe.next(Ie))}catch(Me){ut(Me)}}function Mt(Ie){try{oe(Xe.throw(Ie))}catch(Me){ut(Me)}}function oe(Ie){Ie.done?ke(Ie.value):function qe(ke){return ke instanceof ge?ke:new ge(function(ut){ut(ke)})}(Ie.value).then(mt,Mt)}oe((Xe=Xe.apply(_e,Ce||[])).next())})}(this,void 0,void 0,function(){var ke,ut,mt,Mt,oe,Ie,Me,Qe,$e;return function(_e,Ce){var Xe,qe,ke,ut,ge={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return ut={next:mt(0),throw:mt(1),return:mt(2)},"function"==typeof Symbol&&(ut[Symbol.iterator]=function(){return this}),ut;function mt(oe){return function(Ie){return function Mt(oe){if(Xe)throw new TypeError("Generator is already executing.");for(;ut&&(ut=0,oe[0]&&(ge=0)),ge;)try{if(Xe=1,qe&&(ke=2&oe[0]?qe.return:oe[0]?qe.throw||((ke=qe.return)&&ke.call(qe),0):qe.next)&&!(ke=ke.call(qe,oe[1])).done)return ke;switch(qe=0,ke&&(oe=[2&oe[0],ke.value]),oe[0]){case 0:case 1:ke=oe;break;case 4:return ge.label++,{value:oe[1],done:!1};case 5:ge.label++,qe=oe[1],oe=[0];continue;case 7:oe=ge.ops.pop(),ge.trys.pop();continue;default:if(!(ke=(ke=ge.trys).length>0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]0&&ke[ke.length-1])&&(6===oe[0]||2===oe[0])){ge=0;continue}if(3===oe[0]&&(!ke||oe[1]>ke[0]&&oe[1]=_e.length&&(_e=void 0),{value:_e&&_e[Xe++],done:!_e}}};throw new TypeError(Ce?"Object is not iterable.":"Symbol.iterator is not defined.")};typeof window<"u"&&(window.tn={VERSION:"3.0.0"});var df="This browser is not supported. Please try using Chrome, Edge, FireFox or Safari.",sa={type:"active",issuers:[],uiOptions:{uiType:"popup",containerElement:".overlay-tn",openingHeading:"Open a new world of perks, benefits and opportunities with your attestation, collectible or token.",issuerHeading:"Detected tokens",autoPopup:!0,position:"bottom-right",alwaysShowStartScreen:!1},autoLoadTokens:!0,autoEnableTokens:!0,messagingForceTab:!1,tokenPersistenceTTL:600,unSupportedUserAgent:{authentication:{config:{},errorMessage:df},full:{config:{iE:!0,iE9:!0},errorMessage:df}}},En=(()=>(function(_e){_e.POPUP_BLOCKED="POPUP_BLOCKED",_e.USER_ABORT="USER_ABORT"}(En||(En={})),En))(),Er=(()=>(function(_e){_e.POPUP_BLOCKED="Please add an exception to your popup blocker before continuing.",_e.USER_ABORT="The user aborted the process."}(Er||(Er={})),Er))(),Yn=function(){function _e(Ce){var ge,Xe;if(this.clientCallBackEvents={},this.uiUpdateCallbacks=((ge={})[0]=void 0,ge[1]=void 0,ge[2]=void 0,ge),this.cancelAutoload=!0,window.location.hash){this.urlParams=new URLSearchParams(window.location.hash.substring(1));var qe=this.getDataFromQuery("action");(0,M.kg)(2,'Client() fired. Action = "'.concat(qe,'"')),this.removeCallbackParamsFromUrl()}else this.urlParams=new URLSearchParams;this.config=this.mergeConfig(sa,Ce),this.tokenStore=new P.W(this.config.autoEnableTokens,this.config.tokenPersistenceTTL),(null===(Xe=this.config.issuers)||void 0===Xe?void 0:Xe.length)>0&&this.tokenStore.updateIssuers(this.config.issuers),this.messaging=new B.sT}return _e.prototype.handleRecievedRedirectMessages=function(){var Ce=this,ge=this.getDataFromQuery("issuer"),Xe=this.getDataFromQuery("error"),qe=this.getDataFromQuery("type");if("USER_ABORT"===Xe&&"offchain-issuer-connection"===qe){var ke=new Error(Xe);return ke.name="USER_ABORT",(0,M.Po)("issuer denied connection with off chain issuer","error",function(){return Ce.eventSender("error",{issuer:ge,error:ke})},null,!0,!1),ke}return null},_e.prototype.getDataFromQuery=function(Ce){return this.urlParams?this.urlParams.get(uf.ss+Ce):null},_e.prototype.readProofCallback=function(){return Nr(this,void 0,void 0,function(){var Ce,ge;return Pr(this,function(Xe){return this.getDataFromQuery?(Ce=this.getDataFromQuery("action"),ge=this.getDataFromQuery("multi-token"),"proof-callback"!==Ce?[2,!1]:("true"!==ge?this.readProofCallbackLegacy():this.readProofCallbackMultiToken(),[2])):[2,!1]})})},_e.prototype.readProofCallbackMultiToken=function(){return Nr(this,void 0,void 0,function(){var Ce,ge,Xe,qe,ke,ut,mt,Mt,oe,Ie,Me,Qe,$e;return Pr(this,function(nt){switch(nt.label){case 0:for(ke in Ce=JSON.parse(this.getDataFromQuery("tokens")),ge=this.getDataFromQuery("error"),qe=[],Xe=Ce)qe.push(ke);ut=0,nt.label=1;case 1:if(!(ut"u"||"ultra"===Ce&&typeof window.ultra>"u")&&(ge.blockchain?ge.blockchain.toLowerCase():"evm")===Ce}).length>0},_e.prototype.getWalletProvider=function(){return Nr(this,void 0,void 0,function(){var Ce;return Pr(this,function(ge){switch(ge.label){case 0:return this.web3WalletProvider?[3,2]:[4,Promise.resolve().then(x.bind(x,57846))];case 1:Ce=ge.sent().Web3WalletProvider,this.web3WalletProvider=new Ce(this,this.config.walletOptions,this.config.safeConnectOptions),ge.label=2;case 2:return[2,this.web3WalletProvider]}})})},_e.prototype.disconnectWallet=function(){return Nr(this,void 0,void 0,function(){var ge;return Pr(this,function(Xe){switch(Xe.label){case 0:return Xe.trys.push([0,3,,4]),[4,this.getWalletProvider()];case 1:return[4,Xe.sent().deleteConnections()];case 2:return Xe.sent(),this.tokenStore.clearCachedTokens(),this.eventSender("connected-wallet",null),this.eventSender("disconnected-wallet",null),this.triggerUiUpdateCallback(2),[3,4];case 3:return ge=Xe.sent(),(0,M.kg)(2,"Failed to disconnect wallet",ge),[3,4];case 4:return[2]}})})},_e.prototype.negotiatorConnectToWallet=function(Ce){return Nr(this,void 0,void 0,function(){return Pr(this,function(Xe){switch(Xe.label){case 0:return[4,this.getWalletProvider()];case 1:return[4,Xe.sent().connectWith(Ce)];case 2:return[2,Xe.sent()]}})})},_e.prototype.enrichTokenLookupDataOnChainTokens=function(){return Nr(this,void 0,void 0,function(){var Ce,ge,Xe,qe,ke,ut,mt,Mt,oe;return Pr(this,function(Ie){switch(Ie.label){case 0:if(!this.getTokenStore().hasOnChainTokens())return this.issuersLoaded=!0,[2];for(qe in this.issuersLoaded=!1,this.triggerUiUpdateCallback(0),Ce=this.tokenStore.getCurrentIssuers(!0),Xe=[],ge=Ce)Xe.push(qe);ke=0,Ie.label=1;case 1:if(!(keut.config.autoLoadTokens?[2,"break"]:[2]}})},ut=this,mt=this.tokenStore.getCurrentIssuers(),Mt=[],mt)Mt.push(oe);Ie=0,nt.label=1;case 1:return Ie1)throw new Error("Only a single token origin is supported by batch authentication at this time.");return[2,ge]}})})},_e.prototype.authenticateMultiple=function(Ce){return Nr(this,void 0,void 0,function(){var ge,Xe,qe,ke,ut,mt,Mt,oe,Me,Qe,$e,nt,dt;return Pr(this,function(bt){switch(bt.label){case 0:return bt.trys.push([0,8,,9]),ge=!1,this.ui&&this.ui.showLoaderDelayed(["

Authenticating...

","You may need to sign a new challenge in your wallet",""],600,!0),[4,this.getMultiRequestBatch(Ce)];case 1:for(mt in Xe=bt.sent(),qe={},ut=[],ke=Xe.offChain)ut.push(mt);Mt=0,bt.label=2;case 2:if(!(MtAuthenticating...","You may need to sign a new challenge in your wallet",""],600,!0),this.enableAuthCancel(Xe)),ut=new(Ce.type?Ce.type:qe.onChain?Rn:cr)(this),Ie.label=2;case 2:return Ie.trys.push([2,4,,5]),Ce.options||(Ce.options={}),Ce.options.messagingForceTab=this.config.messagingForceTab,(0,M.kg)(2,"authRequest",Ce),(0,M.kg)(2,"get proof at ",window.location.href),[4,ut.getTokenProof(qe,[Ce.unsignedToken],Ce)];case 3:return(mt=Ie.sent())?((0,M.kg)(2,"proof received at ",window.location.href),(0,M.kg)(2,"Ticket proof successfully validated."),this.eventSender("token-proof",{data:mt.data,error:null,issuer:Xe}),[3,5]):[2];case 4:return Mt=Ie.sent(),(0,M.kg)(2,Mt),"WALLET_REQUIRED"===Mt.message?[2,this.handleWalletRequired(Ce)]:((0,M.Po)(Mt,"error",function(){return oe.handleProofError(Mt,Xe)},null,!1,!0),[3,5]);case 5:return this.ui&&(this.ui.dismissLoader(),this.ui.closeOverlay()),[2,mt.data]}})})},_e.prototype.enableAuthCancel=function(Ce){var ge=this;(0,M.xI)(".cancel-auth-btn").then(function(Xe){Xe.onclick=function(){var qe="User cancelled authentication";ge.ui.showError(qe),ge.eventSender("token-proof",{issuer:Ce,error:qe,data:null})}}).catch(function(Xe){(0,M.kg)(2,Xe)})},_e.prototype.handleWalletRequired=function(Ce){return Nr(this,void 0,void 0,function(){var Xe=this;return Pr(this,function(qe){switch(qe.label){case 0:return this.ui?(this.ui.dismissLoader(),this.ui.openOverlay(),[3,4]):[3,1];case 1:return[4,this.getWalletProvider()];case 2:return[4,qe.sent().connectWith("MetaMask")];case 3:return qe.sent(),[2,this.authenticate(Ce)];case 4:return[2,new Promise(function(ke,ut){var mt={viewTransition:"slide-in-right"};Xe.ui.updateUI("wallet",{viewName:"wallet",connectCallback:function(){return Nr(Xe,void 0,void 0,function(){var Mt,oe;return Pr(this,function(Ie){switch(Ie.label){case 0:this.ui.updateUI("main",{viewName:"main"},mt),Ie.label=1;case 1:return Ie.trys.push([1,3,,4]),[4,this.authenticate(Ce)];case 2:return Mt=Ie.sent(),ke(Mt),[3,4];case 3:return oe=Ie.sent(),ut(oe),[3,4];case 4:return[2]}})})}},mt)})]}})})},_e.prototype.handleProofError=function(Ce,ge){this.ui&&this.ui.showError(Ce),this.eventSender("token-proof",{issuer:ge,error:Ce,data:null})},_e.prototype.eventSender=function(Ce,ge){return Nr(this,void 0,void 0,function(){return Pr(this,function(Xe){switch(Xe.label){case 0:return[4,Promise.resolve(this.on(Ce,void 0,ge))];case 1:return Xe.sent(),[2]}})})},_e.prototype.getOutletConfigForCurrentOrigin=function(Ce){void 0===Ce&&(Ce=window.location.origin);var ge=this.tokenStore.getCurrentIssuers(!1),Xe=[];return Object.keys(ge).forEach(function(qe){var ke=ge[qe];try{new URL(ke.tokenOrigin).origin===Ce&&Xe.push(ke)}catch(ut){(0,M.kg)(2,ut)}}),!!Xe.length&&Xe[0]},_e.prototype.addTokenViaMagicLink=function(Ce){return Nr(this,void 0,void 0,function(){var ge,Xe,qe,ke,ut,Mt;return Pr(this,function(oe){switch(oe.label){case 0:ge=new URL(Ce),Xe=ge.hash.length>1?ge.hash.substring(1):ge.search.substring(1),qe=(0,y.He)(this.config.offChainRedirectMode),ke=(0,M.pp)(Object.values(this.tokenStore.getCurrentIssuers(!1))),oe.label=1;case 1:return oe.trys.push([1,3,,4]),[4,this.messaging.sendMessage({action:B.gF.MAGIC_URL,origin:ge.origin+ge.pathname,data:{request:ke,urlParams:Xe}},this.config.messagingForceTab,void 0,!!qe&&window.location.href)];case 2:return(ut=oe.sent())?ut.evt===B.AJ.ISSUER_TOKENS?(this.getOutletConfigForCurrentOrigin(ge.origin)&&this.storeOutletTokenResponse(ut.data.tokens),this.eventSender("tokens-selected",{selectedTokens:this.tokenStore.getSelectedTokens()}),[2,ut.data.tokens]):[3,4]:[2,new Promise(function(Ie){})];case 3:return Mt=oe.sent(),(0,M.Po)(Mt.message,"error",null,!1,!0),[3,4];case 4:return[2]}})})},_e.prototype.on=function(Ce,ge,Xe){if((0,M.Sg)(Ce,"Event type is not defined"),("tokens"===Ce||"tokens-selected"===Ce)&&ge&&this.readTokensFromUrl(),"token-proof"===Ce&&ge){(0,M.kg)(2,"token-proof listener atteched. check URL HASH for proof callbacks.");var qe=this.getDataFromQuery("action");"proof-callback"===qe?this.readProofCallback():"email-callback"===qe&&this.processAttestationIdCallback()}if(ge)this.clientCallBackEvents[Ce]=ge;else if(this.clientCallBackEvents[Ce])return this.clientCallBackEvents[Ce].call(Ce,Xe)},_e.prototype.processAttestationIdCallback=function(){var Ce;return Nr(this,void 0,void 0,function(){var Xe,qe,ut,mt,Mt,oe,Ie,Me,Qe,$e;return Pr(this,function(nt){switch(nt.label){case 0:switch(nt.trys.push([0,9,,10]),(new cf.p).captureAttestationIdCallback(this.urlParams),Xe=this.getDataFromQuery("orig-action"),qe=new li.c({issuers:Object.values(this.tokenStore.getCurrentIssuers(!1)),ethRpcMap:this.config.ethRpcMap,skipEasRevokeCheck:this.config.skipEasRevokeCheck}),Xe){case B.gF.GET_PROOF:return[3,1];case B.gF.GET_MUTLI_PROOF:return[3,4]}return[3,7];case 1:return ut=this.getDataFromQuery("issuer"),mt=this.getDataFromQuery("token"),Mt=JSON.parse(mt),oe=this.tokenStore.getCurrentIssuers(!1)[ut],Ie=(0,M.s1)(oe),[4,qe.authenticate(oe,Ie,Mt)];case 2:return Qe=nt.sent(),[4,cr.validateProof(oe,Qe.proof,Qe.type)];case 3:return nt.sent(),this.eventSender("token-proof",{issuer:ut,proof:Qe}),[3,8];case 4:return Me=null!==(Ce=JSON.parse(this.getDataFromQuery("tokens")))&&void 0!==Ce?Ce:{},[4,qe.authenticateMany(Me)];case 5:return Qe=nt.sent(),[4,sf.validateProofResult(Qe,this.getTokenStore().getCurrentIssuers(!1))];case 6:return nt.sent(),this.eventSender("token-proof",{issuers:Qe}),[3,8];case 7:throw new Error("Original action not defined in attestation.id callback");case 8:return[3,10];case 9:return $e=nt.sent(),console.error($e),this.emitRedirectProofEvent(null,null,$e.message),[3,10];case 10:return window.location.hash=(0,M.rT)(this.urlParams,["attestation","requestSecret","address","email","wallet"]).toString(),[2]}})})},_e.prototype.switchTheme=function(Ce){this.ui.switchTheme(Ce)},_e}()},3787:(q,k,x)=>{"use strict";x.d(k,{AJ:()=>w,gF:()=>o,sT:()=>S});var B=x(7791),I=x(61204),o=(()=>{return(D=o||(o={})).MAGIC_URL="magic-url",D.GET_ISSUER_TOKENS="get-issuer-tokens",D.GET_PROOF="get-proof",D.GET_MUTLI_PROOF="get-multi-proof",D.GET_PROOF_CALLBACK="proof-callback",D.EMAIL_ATTEST_CALLBACK="email-callback",o;var D})(),w=(()=>{return(D=w||(w={})).ISSUER_TOKENS="issuer-tokens",D.PROOF="proof",w;var D})(),S=function(){function D(){this.core=new B.sT}return D.prototype.sendMessage=function(A,g,p,b){return void 0===g&&(g=!1),void 0===b&&(b=!1),function(D,A,g,p){return new(g||(g=Promise))(function(y,m){function E(R){try{L(p.next(R))}catch(U){m(U)}}function C(R){try{L(p.throw(R))}catch(U){m(U)}}function L(R){R.done?y(R.value):function b(y){return y instanceof g?y:new g(function(m){m(y)})}(R.value).then(E,C)}L((p=p.apply(D,A||[])).next())})}(this,void 0,void 0,function(){var y;return function(D,A){var p,b,y,m,g={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function E(L){return function(R){return function C(L){if(p)throw new TypeError("Generator is already executing.");for(;m&&(m=0,L[0]&&(g=0)),g;)try{if(p=1,b&&(y=2&L[0]?b.return:L[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,L[1])).done)return y;switch(b=0,y&&(L=[2&L[0],y.value]),L[0]){case 0:case 1:y=L;break;case 4:return g.label++,{value:L[1],done:!1};case 5:g.label++,b=L[1],L=[0];continue;case 7:L=g.ops.pop(),g.trys.pop();continue;default:if(!(y=(y=g.trys).length>0&&y[y.length-1])&&(6===L[0]||2===L[0])){g=0;continue}if(3===L[0]&&(!y||L[1]>y[0]&&L[1]{"use strict";x.d(k,{W:()=>P});var B=x(36022),I=function(){return I=Object.assign||function(o){for(var w,S=1,D=arguments.length;S0&&this.loadTokenStore()}return o.prototype.clearTokenStore=function(){localStorage.removeItem(o.LOCAL_STORAGE_KEY)},o.prototype.loadTokenStore=function(){var w=JSON.parse(localStorage.getItem(o.LOCAL_STORAGE_KEY));if(w){for(var S in w.tokenLookup){var D=w.tokenLookup[S];D.timestamp+1e3*this.tokenPersistenceTTL>Date.now()&&(this.tokenLookup[S]=D)}for(var S in w.tokenData){var A=w.tokenData[S];A.timestamp+1e3*this.tokenPersistenceTTL>Date.now()&&(this.tokenData[S]=A)}this.saveTokenStore()}},o.prototype.saveTokenStore=function(){this.tokenPersistenceTTL>0&&localStorage.setItem(o.LOCAL_STORAGE_KEY,JSON.stringify({tokenLookup:this.tokenLookup,tokenData:this.tokenData}))},o.prototype.updateIssuers=function(w){Object.keys(this.currentIssuers).length>0&&(this.selectedTokens={}),this.prePopulateTokenLookupStore(w)},o.prototype.clearCachedTokens=function(w,S){var D;for(var A in this.tokenData)void 0!==w&&w!==this.tokenLookup[A].onChain||(S&&(null===(D=this.tokenData[A].tokens)||void 0===D?void 0:D.length)>0?(this.tokenData[A].tokens=this.tokenData[A].tokens.filter(function(g){return g.walletAddress!==S}),0===this.tokenData[A].tokens.length&&(delete this.tokenData[A],delete this.selectedTokens[A])):(delete this.tokenData[A],delete this.selectedTokens[A]));this.saveTokenStore()},o.prototype.hasOnChainTokens=function(){for(var w in this.currentIssuers)if(this.currentIssuers[w])return!0;return!1},o.prototype.getCurrentIssuers=function(w){var S={};for(var D in this.currentIssuers)(void 0===w||w===this.currentIssuers[D])&&(S[D]=this.tokenLookup[D]);return S},o.prototype.getCurrentBlockchains=function(){var w=[],S=this.getCurrentIssuers(!0);for(var D in S){var A=S[D];-1===w.indexOf(A.blockchain)&&w.push(A.blockchain)}return w},o.prototype.getCurrentTokens=function(w){var S,D,A={};for(var g in this.currentIssuers)(void 0===w||w===this.currentIssuers[g])&&(A[g]=null!==(D=null===(S=this.tokenData[g])||void 0===S?void 0:S.tokens)&&void 0!==D?D:[]);return A},o.prototype.getTotalTokenCount=function(w){var S=this.getCurrentTokens(w);return Object.keys(S).reduce(function(D,A){return D+S[A].length},0)},o.prototype.hasUnloadedIssuers=function(){var w=this.getCurrentIssuers(!0);for(var S in w)if(!w[S].title)return!0;return!1},o.prototype.hasUnloadedTokens=function(){var w,S;try{for(var D=function(o){var w="function"==typeof Symbol&&Symbol.iterator,S=w&&o[w],D=0;if(S)return S.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&D>=o.length&&(o=void 0),{value:o&&o[D++],done:!o}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(this.getCurrentTokens())),A=D.next();!A.done;A=D.next())if(0===A.value.length)return!0}catch(p){w={error:p}}finally{try{A&&!A.done&&(S=D.return)&&S.call(D)}finally{if(w)throw w.error}}return!1},o.prototype.getIssuerTokens=function(w){var S;return this.tokenData[w]?null!==(S=this.tokenData[w].tokens)&&void 0!==S?S:[]:null},o.prototype.setTokens=function(w,S){this.tokenData[w]={timestamp:Date.now(),tokens:S},this.saveTokenStore(),this.autoEnableTokens&&(this.selectedTokens[w]={tokens:S})},o.prototype.getSelectedTokens=function(){return this.selectedTokens},o.prototype.setSelectedTokens=function(w){this.selectedTokens=w},o.prototype.prePopulateTokenLookupStore=function(w){var S=this,D={};w.forEach(function(A,g){var p;if(A.collectionID){if(void 0===A.onChain&&(A.onChain=!0),A.collectionID=S.formatCollectionID(A.collectionID),void 0!==D[A.collectionID])return void(0,B.kg)(1,"duplicate collectionID key ".concat(A.collectionID,", use unique keys per collection."));"chain"in A&&(A.chain=S.formatCollectionChain(A.chain)),void 0!==S.tokenData[A.collectionID]&&S.autoEnableTokens&&(null===(p=S.tokenData[A.collectionID].tokens)||void 0===p?void 0:p.length)&&(S.selectedTokens[A.collectionID]={tokens:S.tokenData[A.collectionID].tokens}),S.tokenLookup[A.collectionID]||S.updateTokenLookupStore(A.collectionID,A,!1),D[A.collectionID]=A.onChain}}),this.currentIssuers=D},o.prototype.updateTokenLookupStore=function(w,S,D){void 0===D&&(D=!0),this.tokenLookup[w]=I(I(I({},this.tokenLookup[w]),S),{timestamp:Date.now()}),D&&this.saveTokenStore()},o.prototype.formatCollectionChain=function(w){return w.toLowerCase()},o.prototype.formatCollectionID=function(w){var S=w;return(/[A-Z]+/g.test(w)||/\s+/g.test(w))&&(S=w.replace(/\s+/g,"-").toLowerCase(),(0,B.kg)(1,"Token Negotiator: Spaces or capital letters found in collectionID definition ".concat(w,", this has been re-formatted to ").concat(S)),w=S),w},o.LOCAL_STORAGE_KEY="tn-tokenStore",o}()},70648:(q,k,x)=>{"use strict";x.d(k,{$:()=>y});var m,B=x(48551),I=function(){function m(E,C){this.params={},this.viewContainer=E,this.params=C}return m.prototype.render=function(){var L,E=this,C=this.params.src;C&&"undefined"!==C?((L=document.createElement("img")).loading="lazy",L.addEventListener("load",function(R){E.onLoad(R)}),L.addEventListener("error",function(R){E.onError(R)}),L.src=C):(L=this.createAvatar(),this.viewContainer.classList.remove("shimmer-tn")),this.viewContainer.appendChild(L)},m.prototype.onLoad=function(E){this.viewContainer.classList.remove("shimmer-tn")},m.prototype.onError=function(E){this.viewContainer.innerHTML="",this.viewContainer.appendChild(this.createAvatar()),this.viewContainer.classList.remove("shimmer-tn")},m.prototype.createAvatar=function(){var E=document.createElement("img");return E.src=this.generateAvatar(this.params.title),E},m.prototype.generateAvatar=function(E){var C=document.createElement("canvas"),L=C.getContext("2d");if(C.width=200,C.height=200,!L)return"";L.fillStyle=this.getRandomBackgroundColor(),L.fillRect(0,0,C.width,C.height),L.font="bold 100px 'Arial', sans-serif",L.fillStyle="#fff",L.textAlign="center",L.textBaseline="middle";for(var R=E.split(" "),U="",O=0;U.length<2&&O=m.length&&(m=void 0),{value:m&&m[L++],done:!m}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.viewContainer.getElementsByClassName("img-container-tn")),U=R.next();!U.done;U=R.next()){var O=U.value;if(!O.querySelector("img")){var j={src:O.getAttribute("data-image-src"),title:O.getAttribute("data-token-title")};new I(O,j).render()}}}catch(K){C={error:K}}finally{try{U&&!U.done&&(L=R.return)&&L.call(R)}finally{if(C)throw C.error}}},E.prototype.tokenToggleSelection=function(){var C=this.client.getTokenStore().getSelectedTokens();this.viewContainer.querySelectorAll(".mobileToggle-tn").forEach(function(L,R){if(0===R&&(C[L.dataset.key]={},C[L.dataset.key].tokens=[]),!0===L.checked){var U=JSON.parse(L.dataset.token);C[L.dataset.key].tokens.push(U)}}),(0,M.kg)(2,"Tokens selected:"),(0,M.kg)(2,C),this.client.updateSelectedTokens(C)},E.prototype.createLoadMoreMarkup=function(){return"\n
  • \n \n
  • \n "},E.prototype.createTokenMarkup=function(C){var t,a,L=C.tokenIssuerKey,R=C.title,U=C.data,O=C.index,j=C.image,K=C.toggleState,Z=C.hideToggle,_=C.symbol;if(C.fungible){var s=P.formatUnits(C.balance,C.decimals);t=s+" "+_,a=(s.length>15?s.substring(0,12)+"... ":s)+" "+_}else t=O,a=O?"#"+(O.length>15?O.substring(0,5)+"..."+O.substring(O.length-5,O.length):O):"";var e=K?"checked":"";return'\n
  • \n
    \n
    \n

    ").concat(R,"

    \n

    \n \t').concat(a,"\n\t\t\t\t

    \n
    ")+(Z?"":"
    \n \n \n
    "))+"
  • \n "},E}(B.w),D=function(){var m=function(E,C){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,R){L.__proto__=R}||function(L,R){for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&(L[U]=R[U])})(E,C)};return function(E,C){if("function"!=typeof C&&null!==C)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function L(){this.constructor=E}m(E,C),E.prototype=null===C?Object.create(C):(L.prototype=C.prototype,new L)}}(),A=function(){return A=Object.assign||function(m){for(var E,C=1,L=arguments.length;C0&&U[U.length-1])&&(6===Z[0]||2===Z[0])){C=0;continue}if(3===Z[0]&&(!U||Z[1]>U[0]&&Z[1]\n
    \n
    \n
    \n
    \n \t

    '.concat(this.params.options.issuerHeading,'

    \n\t\t\t\t\t\t
    \n\t\t\t\t \t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \t\n\t\t\t\t
    \n\t\t\t\t ').concat(this.getCustomContent(),'\n
    \n\t\t\t\t\n
    \n \n \n '),this.viewContainer.querySelector(".back-to-menu-tn").addEventListener("click",this.backToIssuers.bind(this)),this.setupWalletButton(),this.viewContainer.querySelector(".refresh-tn").addEventListener("click",function(){C.client.eventSender("tokens-refreshed",null),C.autoLoadTokens(!0)}),this.issuerListContainer=this.viewContainer.querySelector(".token-issuer-list-container-tn"),this.tokensContainer=this.viewContainer.getElementsByClassName("token-view-tn")[0],this.issuerListContainer){this.populateIssuers();var R=this.tokensContainer.getElementsByClassName("token-list-container-tn")[0];this.tokenListView=new S(this.client,this.ui,R,A({},this.params))}else(0,M.kg)(2,"Element .token-issuer-list-container-tn not found")},E.prototype.afterRender=function(){this.client.issuersLoaded?this.client.getTokenStore().hasUnloadedTokens()&&this.autoLoadTokens():this.issuersLoading()},E.prototype.getCustomContent=function(){return""},E.prototype.setupWalletButton=function(){return g(this,void 0,void 0,function(){var C,L=this;return p(this,function(R){return(C=this.viewContainer.querySelector(".dis-wallet-tn")).style.display="block",C.addEventListener("click",function(){L.client.disconnectWallet()}),[2]})})},E.prototype.issuersLoading=function(){this.ui.showLoader("

    Loading contract data...

    ")},E.prototype.populateIssuers=function(){var C,L,U,R=this,O="",j=this.client.getTokenStore().getCurrentIssuers();for(var K in j){var Z=j[K],Q=null!==(U=this.client.getTokenStore().getIssuerTokens(K))&&void 0!==U?U:[],W=Z.title?Z.title:Z.collectionID.replace(/[-,_]+/g," ");O+=this.issuerConnectMarkup(W,Z.image,K,Q,Z)}this.issuerListContainer.innerHTML=O;try{for(var X=function(m){var E="function"==typeof Symbol&&Symbol.iterator,C=E&&m[E],L=0;if(C)return C.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&L>=m.length&&(m=void 0),{value:m&&m[L++],done:!m}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.issuerListContainer.getElementsByClassName("img-container-tn")),_=X.next();!_.done;_=X.next()){var t=_.value,a={src:t.getAttribute("data-image-src"),title:t.getAttribute("data-token-title")};new I(t,a).render()}}catch(s){C={error:s}}finally{try{_&&!_.done&&(L=X.return)&&L.call(X)}finally{if(C)throw C.error}}this.issuerListContainer.addEventListener("click",function(s){s.target.classList.contains("connect-btn-tn")?R.connectTokenIssuer(s):s.target.classList.contains("tokens-btn-tn")&&R.navigateToTokensView(s.target.parentNode.dataset.issuer)})},E.prototype.issuerConnectMarkup=function(C,L,R,U,O){var j="";return(null==U?void 0:U.length)&&(j=(null==O?void 0:O.fungible)?"Balance found":"".concat(U.length," token").concat(U.length>1?"s":""," available")),'\n \n ")},E.prototype.backToIssuers=function(){this.tokensContainer.style.display="none",this.viewContainer.querySelector(".issuer-slider-tn").classList.toggle("open")},E.prototype.autoLoadTokens=function(C){return void 0===C&&(C=!1),g(this,void 0,void 0,function(){var L=this;return p(this,function(R){switch(R.label){case 0:return[4,this.client.tokenAutoLoad(this.issuerLoading.bind(this),function(U,O){if(null==O?void 0:O.length)L.issuerConnected(U,O,!1);else{var j=L.issuerListContainer.querySelector('[data-issuer*="'.concat(U,'"] .connect-btn-tn'));j&&(j.innerText="Load")}},C)];case 1:return R.sent(),[2]}})})},E.prototype.connectTokenIssuer=function(C){return g(this,void 0,void 0,function(){var R,U,O;return p(this,function(j){switch(j.label){case 0:R=C.target.dataset.issuer,U=[],this.ui.showLoader("

    Loading tokens...

    "),j.label=1;case 1:return j.trys.push([1,3,,4]),[4,this.client.connectTokenIssuer(R)];case 2:return(U=j.sent())?[3,4]:[2];case 3:return O=j.sent(),(0,M.kg)(2,O),this.ui.showError(O),this.client.eventSender("error",{issuer:R,error:O}),[2];case 4:return this.ui.dismissLoader(),(null==U?void 0:U.length)?(this.issuerConnected(R,U),[2]):(this.ui.showError("No tokens found! ".concat(this.client.getNoTokenMsg(R))),[2])}})})},E.prototype.issuerLoading=function(C){var L=this.issuerListContainer.querySelector('[data-issuer*="'.concat(C,'"] .tokens-btn-tn'));L&&(L.style.display="none");var R=this.issuerListContainer.querySelector('[data-issuer*="'.concat(C,'"] .connect-btn-tn'));R&&(R.innerHTML='
    ',R.style.display="block")},E.prototype.issuerConnected=function(C,L,R){var U=this;void 0===R&&(R=!0);var O=this.issuerListContainer.querySelector('[data-issuer*="'.concat(C,'"] .connect-btn-tn')),j=this.issuerListContainer.querySelector('[data-issuer*="'.concat(C,'"] .tokens-btn-tn'));(!O||!j)&&(0,M.kg)(2,"Could not find button handler"),O.style.display="none",O.setAttribute("tabIndex",-1),j.style.display="block";var K=this.client.getTokenStore().getCurrentIssuers();j.innerHTML=L.length&&K[C].fungible?"Balance found":"".concat(L.length," token").concat(L.length>1?"s":""," available"),j.setAttribute("aria-label","Navigate to select from ".concat(L.length," of your ").concat(C," tokens")),j.setAttribute("tabIndex",1),R&&setTimeout(function(){U.navigateToTokensView(C)},250)},E.prototype.navigateToTokensView=function(C){this.updateTokensView(C),this.showTokenView(C)},E.prototype.updateTokensView=function(C){var L,R;this.tokensContainer.style.display="block",this.tokensContainer.scrollTo(0,0);var U=this.client.getTokenStore(),O=U.getCurrentIssuers()[C],j=null!==(L=U.getIssuerTokens(C))&&void 0!==L?L:[];O.title&&(this.viewContainer.getElementsByClassName("headline-tn token-name")[0].innerHTML=O.title);var K=[];null==j||j.map(function(Z,Q){var W,X,_,t=!1;if(null===(W=U.getSelectedTokens()[C])||void 0===W||W.tokens.map(function(i){JSON.stringify(Z)===JSON.stringify(i)&&(t=!0)}),!1===O.onChain)K.push({data:Z,tokenIssuerKey:C,index:Z.ticketId,title:O.title,image:O.image,toggleState:t,hideToggle:null==O?void 0:O.hideToggle});else{var e=null!==(X=Z.tokenId)&&void 0!==X?X:Q.toString();K.push({data:Z,tokenIssuerKey:C,index:e,title:Z.title,image:null!==(_=Z.image)&&void 0!==_?_:O.image,fungible:O.fungible,decimals:O.decimals,symbol:O.symbol,balance:Z.balance,toggleState:t,hideToggle:null==O?void 0:O.hideToggle})}}),null===(R=this.tokenListView)||void 0===R||R.update({data:{issuer:C,tokens:K}})},E.prototype.showTokenView=function(C){this.viewContainer.querySelector(".issuer-slider-tn").classList.toggle("open")},E}(B.w)},19441:(q,k,x)=>{"use strict";x.d(k,{R:()=>t});var B=x(48551),I=x(36022),M=x(57846),P=x(97757),o=function(){return o=Object.assign||function(a){for(var s,e=1,i=arguments.length;eMetamask logo\n\t',label:"MetaMask"},m={imgSmall:"\n\t\t\n\t",imgBig:'\n\t\t\n\t',label:"ImToken"},E={imgBig:'',label:"AlphaWallet"},C={imgBig:'\n\t\t\n\t',label:"Status Wallet"},L={imgBig:'\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t',label:"Trust Wallet"},R={imgBig:'\n\t\n\t',label:"Embedded Wallet"},U={imgBig:'\t\n\t\t\n\t\t\n\t\t\t\x3c!-- Generator: Sketch 51.2 (57519) - http://www.bohemiancoding.com/sketch --\x3e\n\t\t\tbuild-icons/Stable Copy 3\n\t\t\tCreated with Sketch.\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t',label:"Brave"},O={imgBig:"\n\t\t\n\t",label:"MEW"};function j(a){switch(a){case M.SupportedWalletProviders.MetaMask:return function K(){var a=(0,P.Mz)(),s=R;return a.brave&&(s=U),a.anyMetamask&&(s=S),a.mew&&(s=O),a.trust&&(s=L),a.status&&(s=C),a.alphaWallet&&(s=E),a.imToken&&(s=m),o({name:M.SupportedWalletProviders.MetaMask},s)}();case M.SupportedWalletProviders.WalletConnectV2:return{name:a,label:"WalletConnect V2",imgBig:''};case M.SupportedWalletProviders.AlphaWallet:return{name:M.SupportedWalletProviders.WalletConnectV2,label:"AlphaWallet",imgBig:E.imgBig};case M.SupportedWalletProviders.Torus:return{name:a,label:"Torus",imgBig:'Torus logo'};case M.SupportedWalletProviders.Phantom:return function Z(){var a;return(null===(a=window.solana)||void 0===a?void 0:a.isBraveWallet)?{name:M.SupportedWalletProviders.Phantom_Brave,label:"Phantom (Brave)",imgBig:U.imgBig}:{name:M.SupportedWalletProviders.Phantom,label:"Phantom",imgBig:'Phantom logo'}}();case M.SupportedWalletProviders.Flow:return{name:a,label:"Flow",imgBig:'\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n'};case M.SupportedWalletProviders.SafeConnect:return{name:a,label:"SafeConnect",imgBig:'\n\tSafe connect button\n'};case M.SupportedWalletProviders.Ultra:return{name:a,label:"Ultra",imgBig:' '}}}var a,Q=(a=function(s,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(i[d]=u[d])})(s,e)},function(s,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=s}a(s,e),s.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),t=function(a){function s(){return null!==a&&a.apply(this,arguments)||this}return Q(s,a),s.prototype.init=function(){this.client.registerUiUpdateCallback(2,void 0)},s.prototype.render=function(){var e,i,u=this,d="";if(this.client.hasIssuerForBlockchain("evm")){if(this.client.safeConnectAvailable()){var c=j(M.SupportedWalletProviders.SafeConnect);d+=this.getWalletButtonHtml(c)}var r=j(M.SupportedWalletProviders.AlphaWallet);if(d+=this.getWalletButtonHtml(r),typeof window.ethereum<"u"){var h=j(M.SupportedWalletProviders.MetaMask);d+=this.getWalletButtonHtml(h)}var T=[j(M.SupportedWalletProviders.WalletConnectV2)];(0,P.Mz)().edgeIOS||T.push(j(M.SupportedWalletProviders.Torus));try{for(var ae=function(a){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&a[s],i=0;if(e)return e.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&i>=a.length&&(a=void 0),{value:a&&a[i++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(T),Ae=ae.next();!Ae.done;Ae=ae.next())d+=this.getWalletButtonHtml(Ae.value)}catch(ze){e={error:ze}}finally{try{Ae&&!Ae.done&&(i=ae.return)&&i.call(ae)}finally{if(e)throw e.error}}}if(this.client.hasIssuerForBlockchain("solana")){var Ee=j(M.SupportedWalletProviders.Phantom);d+=this.getWalletButtonHtml(Ee)}if(this.client.hasIssuerForBlockchain("flow")){var ee=j(M.SupportedWalletProviders.Flow);d+=this.getWalletButtonHtml(ee)}if(this.client.hasIssuerForBlockchain("ultra")){var se=j(M.SupportedWalletProviders.Ultra);d+=this.getWalletButtonHtml(se)}this.viewContainer.innerHTML='\n
    \n
    \n
    \n
    \n \t'.concat(this.params.viewOptions.backButtonView?'\n \t\t\n \t':"",'\n\t\t\t\t
    \n
    \n

    Select Wallet

    \n
    \n
    \n \t').concat(d,"\n
    \n
    \n
    \n
    \n "),this.viewContainer.querySelectorAll(".wallet-button-tn").forEach(function(ze){ze.addEventListener("click",u.connectWallet.bind(u))})},s.prototype.getWalletButtonHtml=function(e){return'\n\t\t\t\n\t\t")},s.prototype.connectWallet=function(e){var i,u,d,c;return function(a,s,e,i){return new(e||(e=Promise))(function(d,c){function r(T){try{F(i.next(T))}catch(H){c(H)}}function h(T){try{F(i.throw(T))}catch(H){c(H)}}function F(T){T.done?d(T.value):function u(d){return d instanceof e?d:new e(function(c){c(d)})}(T.value).then(r,h)}F((i=i.apply(a,s||[])).next())})}(this,void 0,void 0,function(){var r,h,F,T=this;return function(a,s){var i,u,d,c,e={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return c={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function r(F){return function(T){return function h(F){if(i)throw new TypeError("Generator is already executing.");for(;c&&(c=0,F[0]&&(e=0)),e;)try{if(i=1,u&&(d=2&F[0]?u.return:F[0]?u.throw||((d=u.return)&&d.call(u),0):u.next)&&!(d=d.call(u,F[1])).done)return d;switch(u=0,d&&(F=[2&F[0],d.value]),F[0]){case 0:case 1:d=F;break;case 4:return e.label++,{value:F[1],done:!1};case 5:e.label++,u=F[1],F=[0];continue;case 7:F=e.ops.pop(),e.trys.pop();continue;default:if(!(d=(d=e.trys).length>0&&d[d.length-1])&&(6===F[0]||2===F[0])){e=0;continue}if(3===F[0]&&(!d||F[1]>d[0]&&F[1]Connecting to "+h+"...","You may need to unlock your wallet to continue."],500),H.label=1;case 1:return H.trys.push([1,3,,4]),[4,this.client.negotiatorConnectToWallet(r)];case 2:return H.sent(),this.ui.dismissLoader(),(null===(u=null===(i=this.params)||void 0===i?void 0:i.data)||void 0===u?void 0:u.connectCallback)?null===(c=null===(d=this.params)||void 0===d?void 0:d.data)||void 0===c||c.connectCallback():(this.client.enrichTokenLookupDataOnChainTokens(),this.ui.updateUI("main",{viewName:"main"},{viewTransition:"slide-in-right"})),this.ui.setForceToOpen(!1),[3,4];case 3:return F=H.sent(),(0,I.kg)(2,"negotiatorConnectToWallet error",e),this.ui.showError(F),setTimeout(function(){console.log("this.ui.setForceToOpen(false)"),T.ui.setForceToOpen(!1)},0),[3,4];case 4:return[2]}})})},s}(B.w)},80567:(q,k,x)=>{"use strict";x.d(k,{z:()=>o});var w,B=x(48551),I=(w=function(S,D){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,g){A.__proto__=g}||function(A,g){for(var p in g)Object.prototype.hasOwnProperty.call(g,p)&&(A[p]=g[p])})(S,D)},function(S,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function A(){this.constructor=S}w(S,D),S.prototype=null===D?Object.create(D):(A.prototype=D.prototype,new A)}),o=function(w){function S(){return null!==w&&w.apply(this,arguments)||this}return I(S,w),S.prototype.render=function(){this.viewContainer.innerHTML=this.renderMainTemplate(),this.viewContainer.querySelector(".opening-btn-tn").addEventListener("click",this.goToWalletSelection.bind(this))},S.prototype.renderMainTemplate=function(){var D;return'\n\t\t\t
    \n
    \n
    \n
    \n \n
    ').concat(this.params.options.openingHeading,"
    \n
    \n
    \n
    \n\t\t")},S.prototype.goToWalletSelection=function(){return function(w,S,D,A){return new(D||(D=Promise))(function(p,b){function y(C){try{E(A.next(C))}catch(L){b(L)}}function m(C){try{E(A.throw(C))}catch(L){b(L)}}function E(C){C.done?p(C.value):function g(p){return p instanceof D?p:new D(function(b){b(p)})}(C.value).then(y,m)}E((A=A.apply(w,S||[])).next())})}(this,void 0,void 0,function(){var D;return function(w,S){var A,g,p,b,D={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return b={next:y(0),throw:y(1),return:y(2)},"function"==typeof Symbol&&(b[Symbol.iterator]=function(){return this}),b;function y(E){return function(C){return function m(E){if(A)throw new TypeError("Generator is already executing.");for(;b&&(b=0,E[0]&&(D=0)),D;)try{if(A=1,g&&(p=2&E[0]?g.return:E[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,E[1])).done)return p;switch(g=0,p&&(E=[2&E[0],p.value]),E[0]){case 0:case 1:p=E;break;case 4:return D.label++,{value:E[1],done:!1};case 5:D.label++,g=E[1],E=[0];continue;case 7:E=D.ops.pop(),D.trys.pop();continue;default:if(!(p=(p=D.trys).length>0&&p[p.length-1])&&(6===E[0]||2===E[0])){D=0;continue}if(3===E[0]&&(!p||E[1]>p[0]&&E[1]{"use strict";x.d(k,{w:()=>I});var B=function(){return B=Object.assign||function(M){for(var P,o=1,w=arguments.length;o{"use strict";x.d(k,{W:()=>B});var B={1:"https://ethereum.publicnode.com",5:"https://eth-goerli.g.alchemy.com/v2/yVhq9zPJorAWsw-F87fEabSUl7cCU6z4",11155111:"https://sepolia.infura.io/v3/9f79b2f9274344af90b8d4e244b580ef",137:"https://polygon-rpc.com/",80001:"https://polygon-mumbai.g.alchemy.com/v2/rVI6pOV4irVsrw20cJxc1fxK_1cSeiY0",56:"https://bsc-dataseed.binance.org/",97:"https://data-seed-prebsc-1-s1.binance.org:8545",43114:"https://api.avax.network/ext/bc/C/rpc",43113:"https://api.avax-test.network/ext/bc/C/rpc",250:"https://rpc.fantom.network/",25:"https://evm-cronos.crypto.org",338:"https://evm-t3.cronos.org",42161:"https://arb1.arbitrum.io/rpc",421613:"https://arb-goerli.g.alchemy.com/v2/nFrflomLgsQQL5NWjGileAVqIGGxZWce",10:"https://mainnet.optimism.io"}},7791:(q,k,x)=>{"use strict";x.d(k,{kt:()=>w,sT:()=>D,ss:()=>S});var B=x(36022),I=x(61204),M=x(97757),w=(()=>{return(A=w||(w={})).COOKIE_CHECK="cookie-check",A.ERROR="error",A.SHOW_FRAME="show-frame",w;var A})(),S="tn-",D=function(){function A(){this.iframeStorageSupport=null,this.iframe=null,this.listenerSet=!1}return A.prototype.sendMessage=function(g,p,b){return void 0===p&&(p=!1),void 0===b&&(b=!1),function(A,g,p,b){return new(p||(p=Promise))(function(m,E){function C(U){try{R(b.next(U))}catch(O){E(O)}}function L(U){try{R(b.throw(U))}catch(O){E(O)}}function R(U){U.done?m(U.value):function y(m){return m instanceof p?m:new p(function(E){E(m)})}(U.value).then(C,L)}R((b=b.apply(A,g||[])).next())})}(this,void 0,void 0,function(){var y;return function(A,g){var b,y,m,E,p={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return E={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function C(R){return function(U){return function L(R){if(b)throw new TypeError("Generator is already executing.");for(;E&&(E=0,R[0]&&(p=0)),p;)try{if(b=1,y&&(m=2&R[0]?y.return:R[0]?y.throw||((m=y.return)&&m.call(y),0):y.next)&&!(m=m.call(y,R[1])).done)return m;switch(y=0,m&&(R=[2&R[0],m.value]),R[0]){case 0:case 1:m=R;break;case 4:return p.label++,{value:R[1],done:!1};case 5:p.label++,y=R[1],R=[0];continue;case 7:R=p.ops.pop(),p.trys.pop();continue;default:if(!(m=(m=p.trys).length>0&&m[m.length-1])&&(6===R[0]||2===R[0])){p=0;continue}if(3===R[0]&&(!m||R[1]>m[0]&&R[1]"u")y(I.XF.POPUP_BLOCKED);else var C=setInterval(function(){(!E||E.closed)&&(clearInterval(C),y(I.XF.USER_ABORT))},500)})},A.prototype.setResponseListener=function(g,p,b,y,m,E){var C=this,L=!1,R=null,U=function(j){if(!j.data.target){var K=j.data,Z=new URL(p);if(K.evtid===g)if(Z.origin===j.origin&&K.evt){if((0,B.kg)(2,"event response received"),(0,B.kg)(2,j.data),L=!0,K.evt===w.ERROR)"IFRAME_STORAGE"===K.errors[0]?(C.iframeStorageSupport=!1,m("IFRAME_STORAGE")):m(new Error(K.errors.join(". ")));else{if(K.evt===w.SHOW_FRAME){if(R&&clearTimeout(R),C.iframe){var Q=C.getModal();if(Q.style.display="block",K.max_width){var W=Q.querySelector(".modal-content-tn");W&&(W.style.maxWidth=K.max_width)}if(K.min_height){var X=Q.querySelector("iframe");X&&(X.style.minHeight=K.min_height)}}return}y(K)}O()}else(0,B.kg)(2,"Does not match origin "+j.origin)}},O=function(){R&&clearTimeout(R),(0,B.BT)(U),window.NEGOTIATOR_DEBUG||E()};(0,B.Pb)(U),void 0===b&&(b=2e4),b>0&&(R=setTimeout(function(){L||m(new Error("Failed to receive response from window/iframe")),O()},b))},A.prototype.getModal=function(g){var p=document.getElementById("modal-tn");return p||!g||((p=document.createElement("div")).id="modal-tn",p.className="modal-tn",p.style.display="none",p.innerHTML='\n \n ',document.body.appendChild(p),p.getElementsByClassName("modal-close-tn")[0].addEventListener("click",function(){g()})),p},A.prototype.removeModal=function(){var g=this.getModal();g&&(g.style.display="none",g.remove())},A.prototype.constructUrl=function(g,p){var b=new URL(p.origin),y=new URLSearchParams;y.set(S+"evtid",g),y.set(S+"action",p.action);var m="";for(var E in p.data){var C=p.data[E];!C||(C instanceof Array||C instanceof Object?y.set(S+E,JSON.stringify(C)):"urlParams"===E?m+="&".concat(C):y.set(S+E,C))}return b.hash=y.toString(),b.toString()+m},A.prototype.openTab=function(g){return window.open(g,"_blank")},A.prototype.createIframe=function(g){var p=document.createElement("iframe");return p.setAttribute("allow","clipboard-read"),this.getModal(g).getElementsByClassName("modal-body-tn")[0].appendChild(p),p},A.getUniqueEventId=function(){return(new Date).getTime().toString()},A}()},74177:(q,k,x)=>{"use strict";x.d(k,{p:()=>S});var B=x(36022),I=x(97757),M=x(3787),P=x(7791),S=function(){function D(A,g,p){var b;this.attestationOrigin=A,this.showIframeCallback=g,this.redirectUrl=p,this.buttonOverlay=null,this.tryingToGetAttestationInBackground=!1,this.iframe=null,this.iframeWrap=null,this.wrapperBase="tn_attestation_open",this.interval=null,this.LOCAL_STORAGE_KEY="tn-id-attestations",this.attestations=null!==(b=JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY)))&&void 0!==b?b:{}}return D.prototype.getExistingAttestation=function(A,g){void 0===g&&(g="email");var p=g+"/"+A;if(this.attestations[p]){var b=this.attestations[p];if(b.expiry>Math.round(Date.now()/1e3))return b;delete this.attestations[p]}return null},D.prototype.saveAttestation=function(A){this.attestations[A.identifierType+"/"+A.identifier]=A,localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(this.attestations))},D.prototype.openAttestationApp=function(){var A=this;if(this.attestationInTab&&!this.tryingToGetAttestationInBackground){var g;(0,B.kg)(2,"display new TAB to attest, ask parent to show current iframe"),this.showIframeCallback&&this.showIframeCallback(),(g=document.createElement("div")).classList.add(this.wrapperBase+"_btn"),g.innerHTML="Click to get Email Attestation",g.addEventListener("click",function(){A.attestationTabHandler=window.open(A.attestationOrigin,"Attestation"),g.remove();var y=A.buttonOverlay.querySelector("."+A.wrapperBase+"_title"),m=A.buttonOverlay.querySelector("."+A.wrapperBase+"_subtitle");y&&(y.innerHTML="Email Attestation verification in progress"),m&&(m.innerHTML="Please complete the verification process to continue"),A.interval=setInterval(function(){A.attestationTabHandler.closed&&(clearInterval(A.interval),A.rejectHandler(new Error("User closed TAB")))},2e3)});var p=this.wrapperBase+"_wrap_"+Date.now(),b=document.createElement("style");b.innerHTML="\n\t\t\t\t#".concat(p," {\n\t\t\t\t\twidth:100%;\n\t\t\t\t\theight: 100vh; \n\t\t\t\t\tposition: fixed; \n\t\t\t\t\talign-items: center; \n\t\t\t\t\tjustify-content: center;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\ttop: 0; \n\t\t\t\t\tleft: 0; \n\t\t\t\t\tbackground: #000f;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t\tpadding: 30px;\n\t\t\t\t}\n\t\t\t\t#").concat(p," div:hover {\n\t\t\t\t\tbox-shadow: 0 0px 14px #ffff !important;\n\t\t\t\t}\n\t\t\t\t#").concat(p," .").concat(this.wrapperBase,"_content {\n\t\t\t\t\tcolor: #fff; \n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t\t#").concat(p," .").concat(this.wrapperBase,"_title {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t#").concat(p," .").concat(this.wrapperBase,"_subtitle {\n\t\t\t\t\tfont-size:18px;\n\t\t\t\t\tcolor: #ccc;\n\t\t\t\t}\n\t\t\t\t#").concat(p," .").concat(this.wrapperBase,"_btn {\n\t\t\t\t\tmargin: 20px auto 0;\n\t\t\t\t\tpadding: 5px 15px;\n\t\t\t\t\tbackground: #0219fa;\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\tline-height: 1.3;\n\t\t\t\t\tborder-radius: 100px;\n\t\t\t\t\tcolor: #fff;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\n\t\t\t\t@media (max-width: 768px){\n\t\t\t\t\t#").concat(p," {\n\t\t\t\t\t\tpadding: 20px 10px;\n\t\t\t\t\t}\n\t\t\t\t\t#").concat(p," .").concat(this.wrapperBase,"_title {\n\t\t\t\t\t\tfont-size: 24px;\n\t\t\t\t\t}\n\t\t\t\t\t#").concat(p," .").concat(this.wrapperBase,"_btn {\n\t\t\t\t\t\tpadding: 10px 15px;\n\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"),this.buttonOverlay=document.createElement("div"),this.buttonOverlay.id=p,this.buttonOverlay.innerHTML='

    Needs email attestation to complete verification.

    '),this.buttonOverlay.appendChild(g),this.buttonOverlay.appendChild(b),document.body.appendChild(this.buttonOverlay)}else(0,B.kg)(2,"open attestation in iframe"),this.createIframe()},D.prototype.captureAttestationIdCallback=function(A){if(!A.has("attestation")||!A.has("requestSecret"))return console.log("no attestation detected",A.toString()),!1;var g=A.get("email"),p=A.get("attestation"),b="0x"+A.get("requestSecret"),y=this.getAttestationDetails(g,p,b);return this.saveAttestation(y),!0},D.prototype.getAttestationDetails=function(A,g,p){var b=new Date;return b.setDate(b.getDate()+30),{type:"asn",identifierType:"email",identifier:A,identifierSecret:p,attestation:g,expiry:Math.round(b.getTime()/1e3)}},D.prototype.getIdentifierAttestation=function(A,g,p,b){var y=this;return new Promise(function(m,E){var C=y.getExistingAttestation(A);if(C)m(C);else{if(y.rejectHandler=E,y.redirectUrl){var L=new URLSearchParams(window.location.hash.substring(1)),R=new URLSearchParams;R.set("email",A),R.set("address",p),R.set("wallet",g);var U=new URL(y.redirectUrl),O=new URLSearchParams(U.hash.substring(1));if(b)for(var j in b)O.set(P.ss+j,b[j]);O.set(P.ss+"orig-action",b.action),O.set("email",A),O.set(P.ss+"action",M.gF.EMAIL_ATTEST_CALLBACK);var K=L.get(P.ss+"requestor");K&&O.set(P.ss+"requestor",K),U.hash=O.toString(),R.set("email-attestation-callback",U.href);var Z="".concat(y.attestationOrigin,"#").concat(R.toString());return(0,B.kg)(2,"authenticate. go to: ",Z),void(window.location.href=Z)}if(y.attestationInTab&&!(0,I.jP)()&&(y.tryingToGetAttestationInBackground=!0),!y.attestationOrigin)return E(new Error("Attestation origin is null"));window.addEventListener("message",function(Q){var W=new URL(y.attestationOrigin);Q.origin===W.origin&&(y.iframe&&y.iframeWrap&&y.iframe.contentWindow||y.attestationTabHandler)&&y.postMessageAttestationListener(Q,m,E,A)}),y.openAttestationApp()}})},D.prototype.createIframe=function(){var A,g=document.createElement("iframe");g.setAttribute("allow","clipboard-read"),this.iframe=g,g.src=null!==(A=this.attestationOrigin)&&void 0!==A?A:"",g.style.width="800px",g.style.height="800px",g.style.maxHeight="100vh",g.style.maxWidth="100%",g.style.background="#fff";var p=document.createElement("div");this.iframeWrap=p,p.setAttribute("style","width:101%;min-height: 100vh; position: fixed; align-items: center; justify-content: center;display: none;top: 0; left: 0; background: #fffa"),p.appendChild(g),document.body.appendChild(p)},D.prototype.postMessageAttestationListener=function(A,g,p,b,y,m){var E,C,L,R;return function(D,A,g,p){return new(g||(g=Promise))(function(y,m){function E(R){try{L(p.next(R))}catch(U){m(U)}}function C(R){try{L(p.throw(R))}catch(U){m(U)}}function L(R){R.done?y(R.value):function b(y){return y instanceof g?y:new g(function(m){m(y)})}(R.value).then(E,C)}L((p=p.apply(D,A||[])).next())})}(this,void 0,void 0,function(){var U,O,j,K,Z;return function(D,A){var p,b,y,m,g={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function E(L){return function(R){return function C(L){if(p)throw new TypeError("Generator is already executing.");for(;m&&(m=0,L[0]&&(g=0)),g;)try{if(p=1,b&&(y=2&L[0]?b.return:L[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,L[1])).done)return y;switch(b=0,y&&(L=[2&L[0],y.value]),L[0]){case 0:case 1:y=L;break;case 4:return g.label++,{value:L[1],done:!1};case 5:g.label++,b=L[1],L=[0];continue;case 7:L=g.ops.pop(),g.trys.pop();continue;default:if(!(y=(y=g.trys).length>0&&y[y.length-1])&&(6===L[0]||2===L[0])){g=0;continue}if(3===L[0]&&(!y||L[1]>y[0]&&L[1]{"use strict";x.d(k,{s:()=>A});var B=x(19560),I=x(3902),M=x(76062),P=x(36022),o=x(21726),w=function(){return w=Object.assign||function(g){for(var p,b=1,y=arguments.length;b0&&E[E.length-1])&&(6===U[0]||2===U[0])){b=0;continue}if(3===U[0]&&(!E||U[1]>E[0]&&U[1]{"use strict";x.d(k,{c:()=>A});var B=x(19560),I=x(36022),M=x(74177),P=x(18260),o=x(3787),w=function(g,p,b,y){return new(b||(b=Promise))(function(E,C){function L(O){try{U(y.next(O))}catch(j){C(j)}}function R(O){try{U(y.throw(O))}catch(j){C(j)}}function U(O){O.done?E(O.value):function m(E){return E instanceof b?E:new b(function(C){C(E)})}(O.value).then(L,R)}U((y=y.apply(g,p||[])).next())})},S=function(g,p){var y,m,E,C,b={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return C={next:L(0),throw:L(1),return:L(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function L(U){return function(O){return function R(U){if(y)throw new TypeError("Generator is already executing.");for(;C&&(C=0,U[0]&&(b=0)),b;)try{if(y=1,m&&(E=2&U[0]?m.return:U[0]?m.throw||((E=m.return)&&E.call(m),0):m.next)&&!(E=E.call(m,U[1])).done)return E;switch(m=0,E&&(U=[2&U[0],E.value]),U[0]){case 0:case 1:E=U;break;case 4:return b.label++,{value:U[1],done:!1};case 5:b.label++,m=U[1],U=[0];continue;case 7:U=b.ops.pop(),b.trys.pop();continue;default:if(!(E=(E=b.trys).length>0&&E[E.length-1])&&(6===U[0]||2===U[0])){b=0;continue}if(3===U[0]&&(!E||U[1]>E[0]&&U[1]=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")}(K.tokenIds),Q=Z.next(),d.label=3;case 3:return Q.done?[3,8]:[4,this.ticketStorage.getStoredTicketFromDecodedTokenOrId(K.issuerHashes,Q.value.toString())];case 4:return X=d.sent(),_=this.ticketStorage.getConfigFromIssuerHash(X.collectionHash),[4,new M.p(_.attestationOrigin,E,m).getIdentifierAttestation(X.id,y,b,{localClient:!E,action:o.gF.GET_MUTLI_PROOF,tokens:JSON.stringify(p)})];case 5:return a=d.sent(),[4,(0,P.s)(_,a.attestation,a.identifierSecret,X)];case 6:s=d.sent(),C[j]||(C[j]={}),C[j][X.tokenId]=s,d.label=7;case 7:return Q=Z.next(),[3,3];case 8:return[3,11];case 9:return e=d.sent(),i={error:e},[3,11];case 10:try{Q&&!Q.done&&(u=Z.return)&&u.call(Z)}finally{if(i)throw i.error}return[7];case 11:return O++,[3,1];case 12:return[2,C]}})})},g}()},19560:(q,k,x)=>{"use strict";x.d(k,{Hm:()=>O,pu:()=>j});var B=x(8769),M=x(70854),P=x(36022),o=x(94530),w=x(63769),D=x(7098),A=x(7665),p=x(21726),b=x(44880),y=function(){return y=Object.assign||function(K){for(var Z,Q=1,W=arguments.length;Q0&&_[_.length-1])&&(6===e[0]||2===e[0])){Q=0;continue}if(3===e[0]&&(!_||e[1]>_[0]&&e[1]<_[3])){Q.label=e[1];break}if(6===e[0]&&Q.label<_[1]){Q.label=_[1],_=e;break}if(_&&Q.label<_[2]){Q.label=_[2],Q.ops.push(e);break}_[2]&&Q.ops.pop(),Q.trys.pop();continue}e=Z.call(K,Q)}catch(i){e=[6,i],X=0}finally{W=_=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,i])}}},C=function(K){var Z="function"==typeof Symbol&&Symbol.iterator,Q=Z&&K[Z],W=0;if(Q)return Q.call(K);if(K&&"number"==typeof K.length)return{next:function(){return K&&W>=K.length&&(K=void 0),{value:K&&K[W++],done:!K}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")},L=function(K,Z){var Q="function"==typeof Symbol&&K[Symbol.iterator];if(!Q)return K;var X,t,W=Q.call(K),_=[];try{for(;(void 0===Z||Z-- >0)&&!(X=W.next()).done;)_.push(X.value)}catch(a){t={error:a}}finally{try{X&&!X.done&&(Q=W.return)&&Q.call(W)}finally{if(t)throw t.error}}return _},R=function(K,Z,Q){if(Q||2===arguments.length)for(var _,W=0,X=Z.length;W{"use strict";x.d(k,{BF:()=>W,BT:()=>C,GL:()=>s,Ov:()=>m,Pb:()=>E,Po:()=>R,Rl:()=>Q,Sg:()=>b,XI:()=>Z,gT:()=>t,kF:()=>O,kg:()=>p,pC:()=>a,pp:()=>X,rT:()=>j,s1:()=>_,xI:()=>L,xK:()=>K});var e,B=x(7791),I=x(70854),M=x(43417),o=(e=function(i,u){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var r in c)Object.prototype.hasOwnProperty.call(c,r)&&(d[r]=c[r])})(i,u)},function(i,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function d(){this.constructor=i}e(i,u),i.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)}),D=function(e,i){var u="function"==typeof Symbol&&e[Symbol.iterator];if(!u)return e;var c,h,d=u.call(e),r=[];try{for(;(void 0===i||i-- >0)&&!(c=d.next()).done;)r.push(c.value)}catch(F){h={error:F}}finally{try{c&&!c.done&&(u=d.return)&&u.call(d)}finally{if(h)throw h.error}}return r},A=function(e,i,u){if(u||2===arguments.length)for(var r,d=0,c=i.length;d=e.length&&(e=void 0),{value:e&&e[d++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};function p(e){for(var i=[],u=1;uparseInt(window.DISPLAY_DEBUG_LEVEL)||i&&console.log.apply(console,A([],D(i),!1))}var b=function(e,i){if(!e)throw new Error(i)},m=function(e){return e=e.split("-").join("+").split("_").join("/").split(".").join("="),Uint8Array.from(atob(e),function(i){return i.charCodeAt(0)})},E=function(e){window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e)},C=function(e){window.removeEventListener?window.removeEventListener("message",e):window.detachEvent("onmessage",e)},L=function(e){return new Promise(function(i){if(document.querySelector(e))return i(document.querySelector(e));var u=new MutationObserver(function(){document.querySelector(e)&&(i(document.querySelector(e)),u.disconnect())});u.observe(document.body,{childList:!0,subtree:!0})})},R=function(e,i,u,d,c,r){var h,F;if(void 0===c&&(c=!0),void 0===r&&(r=!1),F="object"==typeof e?null!==(h=e.message)&&void 0!==h?h:"Unknown error type: "+JSON.stringify(e):e,c&&p(2,i+": "+F),u&&u(),r)throw new U(F,e);return{type:i,message:e,data:d}},U=function(e){function i(u,d,c){var r=e.call(this,u)||this;return r.originalError=d,r.code=c,r}return o(i,e),i}(Error),O=function(e,i){return function(e,i,u,d){return new(u||(u=Promise))(function(r,h){function F(ae){try{H(d.next(ae))}catch(Ae){h(Ae)}}function T(ae){try{H(d.throw(ae))}catch(Ae){h(Ae)}}function H(ae){ae.done?r(ae.value):function c(r){return r instanceof u?r:new u(function(h){h(r)})}(ae.value).then(F,T)}H((d=d.apply(e,i||[])).next())})}(void 0,void 0,void 0,function(){var u,d;return function(e,i){var d,c,r,h,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return h={next:F(0),throw:F(1),return:F(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function F(H){return function(ae){return function T(H){if(d)throw new TypeError("Generator is already executing.");for(;h&&(h=0,H[0]&&(u=0)),u;)try{if(d=1,c&&(r=2&H[0]?c.return:H[0]?c.throw||((r=c.return)&&r.call(c),0):c.next)&&!(r=r.call(c,H[1])).done)return r;switch(c=0,r&&(H=[2&H[0],r.value]),H[0]){case 0:case 1:r=H;break;case 4:return u.label++,{value:H[1],done:!1};case 5:u.label++,c=H[1],H=[0];continue;case 7:H=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===H[0]||2===H[0])){u=0;continue}if(3===H[0]&&(!r||H[1]>r[0]&&H[1]=200&&u.status<=299)&&!0===i)return console.warn("token api request failed: ",e),[2];if(d)return[2,u.json()];throw new Error("HTTP error! status: ".concat(u.status));case 2:throw r.sent(),new Error("HTTP error.");case 3:return[2]}})})},j=function(e,i,u){var d,c,r,h;if(void 0===i&&(i=[]),void 0===u&&(u=B.ss),u)try{for(var F=g(Array.from(e.keys())),T=F.next();!T.done;T=F.next()){var H=T.value;0===H.indexOf(u)&&e.delete(H)}}catch(Ee){d={error:Ee}}finally{try{T&&!T.done&&(c=F.return)&&c.call(F)}finally{if(d)throw d.error}}try{for(var ae=g(i),Ae=ae.next();!Ae.done;Ae=ae.next()){var fe=Ae.value;e.has(fe)&&e.delete(fe)}}catch(Ee){r={error:Ee}}finally{try{Ae&&!Ae.done&&(h=ae.return)&&h.call(ae)}finally{if(r)throw r.error}}return e},K=function(e){for(var i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",u=i.length,d=[0],c=0;c>8,d[F]&=255;for(;T;)d.push(255&T),T>>=8}return new Uint8Array(d.reverse())},Z=function(e){return typeof Buffer<"u"?Buffer.from(e).toString("hex"):Array.from(Q(e)).map(function(i){return i.toString(16).padStart(2,"0")}).join("")},Q=function(e){return(new TextEncoder).encode(e)},W=function(e){if(e.length%2==1)throw new Error("Wrong Hex String");for(var i=new Uint8Array(e.length/2),u=0;u{"use strict";x.d(k,{He:()=>D,K6:()=>S,Mz:()=>B,jP:()=>M});var B=function(){var A,p=typeof window<"u"&&window.navigator.userAgent.toLowerCase(),b=p&&/msie|trident/.test(p),y=p&&p.indexOf("msie 9.0")>0,m=p&&p.indexOf("edg/")>0,E=p&&p.indexOf("edga/")>0,C=p&&p.indexOf("edgios/")>0,L=p&&p.indexOf("edge/")>0,R=m||E||C||L,U=p&&/chrome\/\d+/.test(p)&&!R,O=p&&/phantomjs/.test(p),j=p&&/firefox|fxios\/\d+/.test(p),K=o()||P(),Z=!!window.navigator.brave,Q=p&&p.indexOf("android")>0,W=p&&/iphone|ipad|ipod|ios/.test(p),X=p&&/\smac\s/.test(p),_=p&&/windows/.test(p),t=!1,a=window.matchMedia;a&&(t=a("(pointer:coarse)").matches);var e=window.ethereum;typeof window.ethereum>"u"&&(e={isMetaMask:!1,isAlphaWallet:!1,isTrust:!1,isStatusWallet:!1,isGoWallet:!1,isBraveWallet:!1});var i=t&&!!e.isAlphaWallet,u=t&&!!e.isTrust,d=t&&!!e.isStatusWallet,c=t&&!!e.isGoWallet,r=t&&!!e.isTrust&&!!e.isMetaMask,h=!!navigator.userAgent.match(/\simToken\//),F=t&&!!e.isMetaMask&&!u&&!Z;return{iE:b,iE9:y,edge:R,edgeAndroid:E,edgeIOS:C,chrome:U,phantomJS:O,fireFox:j,safari:K,android:Q,iOS:W,mac:X,windows:_,desktop:-1===(null===(A=navigator.userAgent)||void 0===A?void 0:A.indexOf("Mobi")),touchDevice:t,metaMask:F,anyMetamask:!!e.isMetaMask&&!u&&!e.isBraveWallet,alphaWallet:i,mew:r,trust:u,goWallet:c,status:d,imToken:h,brave:Z,braveAndroid:Z&&Q,braveIOS:Z&&W,metaMaskAndroid:Q&&F,alphaWalletAndroid:Q&&i,mewAndroid:Q&&r,imTokenAndroid:Q&&h}};function M(){return!!window.navigator.brave}function P(){var A=window.navigator.userAgent?window.navigator.userAgent.toLowerCase():"";return/ip(ad|od|hone)/i.test(A)&&/webkit/i.test(A)&&!/(crios|fxios|opios|mercury)/i.test(A)&&!M()}function o(){return!!window.safari}function w(){return o()||P()}function S(){var A=B();return A.iOS||w()||M()||A.fireFox}function D(A){var g=B();switch(A){case"always":return!0;case"never":return!1;default:return M()||g.fireFox||g.iOS&&!w()}}},46761:(q,k,x)=>{"use strict";x.r(k),x.d(k,{SafeConnectAction:()=>j,SafeConnectProvider:()=>K});var Z,B=x(3787),I=x(83322),M=x(61172),P=x(12217),o=x(32854),w=function(Z,Q,W,X){return new(W||(W=Promise))(function(t,a){function s(u){try{i(X.next(u))}catch(d){a(d)}}function e(u){try{i(X.throw(u))}catch(d){a(d)}}function i(u){u.done?t(u.value):function _(t){return t instanceof W?t:new W(function(a){a(t)})}(u.value).then(s,e)}i((X=X.apply(Z,Q||[])).next())})},S=function(Z,Q){var X,_,t,a,W={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(i){return function(u){return function e(i){if(X)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(W=0)),W;)try{if(X=1,_&&(t=2&i[0]?_.return:i[0]?_.throw||((t=_.return)&&t.call(_),0):_.next)&&!(t=t.call(_,i[1])).done)return t;switch(_=0,t&&(i=[2&i[0],t.value]),i[0]){case 0:case 1:t=i;break;case 4:return W.label++,{value:i[1],done:!1};case 5:W.label++,_=i[1],i=[0];continue;case 7:i=W.ops.pop(),W.trys.pop();continue;default:if(!(t=(t=W.trys).length>0&&t[t.length-1])&&(6===i[0]||2===i[0])){W=0;continue}if(3===i[0]&&(!t||i[1]>t[0]&&i[1]299||t.status<200))return[3,6];a=void 0,e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t.json()];case 3:return a=e.sent().error,[3,5];case 4:return e.sent(),a="HTTP Request error: "+t.statusText,[3,5];case 5:throw new Error(a);case 6:return[4,t.json()];case 7:return[2,e.sent()]}})})},Z.createAndSignLinkAttestation=function(Q,W,X){return w(this,void 0,void 0,function(){var _;return S(this,function(t){switch(t.label){case 0:return(_=new o.EthereumKeyLinkingAttestation).create(Q,W,4200,void 0,Math.round(Date.now()/1e3)-600),[4,_.sign(X)];case 1:return t.sent(),[2,_.getBase64()]}})})},Z.HOLDING_KEY_ALGORITHM="RSASSA-PKCS1-v1_5",Z.keyStore=new I.KeyStore,Z}(),A=(Z=function(Q,W){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,_){X.__proto__=_}||function(X,_){for(var t in _)Object.prototype.hasOwnProperty.call(_,t)&&(X[t]=_[t])})(Q,W)},function(Q,W){if("function"!=typeof W&&null!==W)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function X(){this.constructor=Q}Z(Q,W),Q.prototype=null===W?Object.create(W):(X.prototype=W.prototype,new X)}),g=function(){return g=Object.assign||function(Z){for(var Q,W=1,X=arguments.length;W0&&t[t.length-1])&&(6===i[0]||2===i[0])){W=0;continue}if(3===i[0]&&(!t||i[1]>t[0]&&i[1]0&&t[t.length-1])&&(6===i[0]||2===i[0])){W=0;continue}if(3===i[0]&&(!t||i[1]>t[0]&&i[1]0&&t[t.length-1])&&(6===i[0]||2===i[0])){W=0;continue}if(3===i[0]&&(!t||i[1]>t[0]&&i[1](function(Z){Z.CONNECT="connect",Z.NEW_CHALLENGE="new_challenge"}(j||(j={})),j))(),K=function(){function Z(Q,W){this.keyStore=new I.KeyStore,this.messaging=new B.sT,this.ui=Q,this.options=W}return Z.prototype.initSafeConnect=function(){var Q;return U(this,void 0,void 0,function(){var W,X,_,t,a;return O(this,function(s){switch(s.label){case 0:return _=(X=this.messaging).sendMessage,a={action:j.CONNECT,origin:this.options.url,timeout:0},[4,this.getInitialProofRequest()];case 1:return[4,_.apply(X,[(a.data=s.sent(),a),!0,this.ui])];case 2:return(W=s.sent())?this.options.initialProof?(this.processProofResult(t=W.data),[2,null===(Q=t.data)||void 0===Q?void 0:Q.address]):[2,W.data.address]:[2]}})})},Z.prototype.processProofResult=function(Q){var W,X;switch(this.options.initialProof){case"address_attest":X={type:(W=new y).TYPE,data:R({expiry:Q.expiry},Q.data),target:{address:Q.data.address}},W.saveProof(Q.data.address,X);break;case"simple_challenge":X={type:(W=new L).TYPE,data:Q.data,target:{address:Q.data.address}}}W.saveProof(Q.data.address,X)},Z.prototype.getInitialProofRequest=function(){return U(this,void 0,void 0,function(){var Q,W;return O(this,function(X){switch(X.label){case 0:return Q={},this.options.initialProof?(Q.type=this.options.initialProof,"simple_challenge"===this.options.initialProof?[3,2]:(W=Q,[4,D.getLinkPublicKey()])):[2];case 1:W.subject=X.sent(),X.label=2;case 2:return[2,Q]}})})},Z.prototype.signUNChallenge=function(Q){return U(this,void 0,void 0,function(){var W;return O(this,function(X){switch(X.label){case 0:return[4,this.messaging.sendMessage({action:j.CONNECT,origin:this.options.url,timeout:0,data:{type:"signed_un",un:encodeURIComponent(JSON.stringify(Q))}},!0,this.ui)];case 1:return(W=X.sent())?[2,W.data.data.signature]:[2]}})})},Z}()},57846:(q,k,x)=>{"use strict";x.r(k),x.d(k,{SupportedWalletProviders:()=>A,Web3WalletProvider:()=>g,default:()=>p});var B=x(84003),I=x(7483),M=x(36022),P=["evm","flow","solana","ultra"],o=x(21726),w=function(){return w=Object.assign||function(b){for(var y,m=1,E=arguments.length;m0&&L[L.length-1])&&(6===j[0]||2===j[0])){m=0;continue}if(3===j[0]&&(!L||j[1]>L[0]&&j[1]{return(b=A||(A={})).MetaMask="MetaMask",b.WalletConnectV2="WalletConnectV2",b.Torus="Torus",b.Phantom="Phantom",b.Phantom_Brave="Phantom_Brave",b.Flow="Flow",b.Ultra="Ultra",b.SafeConnect="SafeConnect",b.AlphaWallet="AlphaWallet",A;var b})(),g=function(){function b(y,m,E){this.client=y,this.walletOptions=m,this.safeConnectOptions=E,this.connections={}}return b.prototype.saveConnections=function(){var y={};for(var m in this.connections){var E=this.connections[m.toLowerCase()];y[m]={address:E.address,chainId:E.chainId,providerType:E.providerType,blockchain:E.blockchain}}localStorage.setItem(b.LOCAL_STORAGE_KEY,JSON.stringify(y))},b.prototype.emitSavedConnection=function(y){return Object.keys(this.connections).length&&y?(this.client.eventSender("connected-wallet",this.connections[y.toLowerCase()]),this.connections[y.toLowerCase()]):null},b.prototype.emitNetworkChange=function(y){if(y)return this.client.eventSender("network-change",y),y},b.prototype.deleteConnections=function(){return S(this,void 0,void 0,function(){var y,m,E,C,L,R,Z;return D(this,function(Q){switch(Q.label){case 0:if(this.connections={},!(y=localStorage.getItem(b.LOCAL_STORAGE_KEY)))return[3,6];if(!(m=JSON.parse(y)))return[3,6];for(L in C=[],E=m)C.push(L);R=0,Q.label=1;case 1:return R0)return console.log(O[0].signature),[2,O[0].signature];throw new Error("No signature");case 8:throw new Error('Blockchain "'.concat(C.blockchain,'" not supported'));case 9:return[2]}})})},b.prototype.getConnectionByAddress=function(y){return this.connections[y.toLowerCase()]},b.prototype.getWalletProvider=function(y){y=y.toLowerCase();var m=this.getConnectionByAddress(y);if(!m)throw new Error("Connection not found for address");if(!m.provider)throw new Error("Wallet provider not found for address");return m.provider},b.prototype.hasAnyConnection=function(y){for(var m in this.connections)if(y.includes(this.connections[m].blockchain))return!0;return!1},b.prototype.getConnectedWalletAddresses=function(y){return this.getConnectedWalletData(y).map(function(m){return m.address})},b.prototype.getConnectedWalletData=function(y){return Object.values(this.connections).filter(function(m){return m.blockchain===y})},b.prototype.getSingleSignatureCompatibleConnection=function(){var y=this,m=!1;return P.forEach(function(E){var C=Object.values(y.connections).filter(function(L){return L.blockchain===E});C.length&&(m=C[0])}),m},b.prototype.registerNewWalletAddress=function(y,m,E,C,L,R){var U=this;switch(void 0===R&&(R=[]),this.connections[y.toLowerCase()]={address:y,chainId:m,providerType:E,provider:C,blockchain:L,ethers:B,meta:R},L){case"solana":case"evm":break;case"flow":C.currentUser().subscribe(function(O){(0,M.kg)(2,"=========Flow user subscription: ",O)});break;case"ultra":C.on("disconnect",function(){(0,M.kg)(2,"========= Ultra disconnected."),U.client.disconnectWallet()});break;default:return void(0,M.kg)(2,"Unknown blockchain, dont attach listeners")}},b.prototype.registerEvmProvider=function(y,m){return S(this,void 0,void 0,function(){var E,C,L,R=this;return D(this,function(U){switch(U.label){case 0:return[4,y.listAccounts()];case 1:return E=U.sent(),[4,y.detectNetwork()];case 2:if(C=U.sent().chainId,0===E.length)throw new Error("No accounts found via wallet-connect.");return this.registerNewWalletAddress(L=E[0],C,m,y,"evm"),y.provider.on("accountsChanged",function(O){(0,M.kg)(2,"accountsChanged: ",O),O&&0!==O.length?L!==O[0]&&(delete R.connections[L.toLowerCase()],R.registerNewWalletAddress(L=O[0],C,m,y,"evm"),R.saveConnections(),R.emitSavedConnection(L),R.client.getTokenStore().clearCachedTokens(),R.client.enrichTokenLookupDataOnChainTokens()):R.client.disconnectWallet()}),y.provider.on("chainChanged",function(O){R.registerNewWalletAddress(L,O,m,y,"evm"),R.saveConnections(),R.emitNetworkChange(O)}),y.provider.on("disconnect",function(O){(null==O?void 0:O.message)&&O.message.indexOf("MetaMask: Disconnected from chain")>-1||R.client.disconnectWallet()}),[2,L]}})})},b.prototype.registerSolanaProvider=function(y,m){return S(this,void 0,void 0,function(){var E,C,L,R=this;return D(this,function(U){switch(U.label){case 0:return[4,y.connect()];case 1:return E=U.sent(),C=E.publicKey.toBase58(),L=C,this.registerNewWalletAddress(C,"mainnet-beta",m,y,"solana"),y.on("connect",function(O){var j=O.toBase58();(0,M.kg)(2,"connected wallet: ",j),R.registerNewWalletAddress(j,"mainnet-beta","phantom",window.solana,"solana")}),y.on("disconnect",function(){(0,M.kg)(2,"disconnected wallet."),R.client.disconnectWallet()}),y.on("accountChanged",function(O){if(O){delete R.connections[L.toLowerCase()];var j=O.toBase58();R.registerNewWalletAddress(L=j,"mainnet-beta","phantom",window.solana,"solana"),R.saveConnections(),R.emitSavedConnection(L),R.client.getTokenStore().clearCachedTokens(),R.client.enrichTokenLookupDataOnChainTokens()}else(0,M.kg)(2,"disconnected wallet."),R.client.disconnectWallet()}),[2,C]}})})},b.prototype.MetaMask=function(y){return S(this,void 0,void 0,function(){var m;return D(this,function(E){switch(E.label){case 0:return(0,M.kg)(2,"connect MetaMask"),typeof window.ethereum<"u"?[4,window.ethereum.enable()]:[3,2];case 1:return E.sent(),m=new I.Q(window.ethereum,"any"),[2,this.registerEvmProvider(m,"MetaMask")];case 2:throw new Error("MetaMask is not available. Please check the extension is supported and active.")}})})},b.prototype.WalletConnectV2=function(y){return S(this,void 0,void 0,function(){var m,E,C,L,R=this;return D(this,function(U){switch(U.label){case 0:return(0,M.kg)(2,"connect Wallet Connect V2"),[4,x.e(819).then(x.bind(x,9819))];case 1:return[4,(m=U.sent()).getWalletConnectV2ProviderInstance()];case 2:return E=U.sent(),y?[3,4]:[4,x.e(639).then(x.t.bind(x,62639,23))];case 3:C=U.sent().default,U.label=4;case 4:return E.on("display_uri",function(O){return S(R,void 0,void 0,function(){var j=this;return D(this,function(K){switch(K.label){case 0:return[4,x.e(639).then(x.t.bind(x,62639,23))];case 1:return(C=K.sent().default).open(O,function(){j.client.getUi().showError("User closed modal")}),[2]}})})}),E.on("session_delete",function(O){R.client.disconnectWallet()}),L=this.walletOptions,[2,new Promise(function(O,j){var K,Z;y&&!E.session?j("Not connected"):(E.session?E.enable():E.connect({namespaces:{eip155:{methods:["eth_sendTransaction","eth_signTransaction","eth_sign","personal_sign","eth_signTypedData"],chains:null!==(Z=null===(K=null==L?void 0:L.walletConnectV2)||void 0===K?void 0:K.chains)&&void 0!==Z?Z:m.WC_V2_DEFAULT_CHAINS,events:["chainChanged","accountsChanged"],rpcMap:w(w({},o.W),R.client.config.ethRpcMap)}}})).then(function(){(0,M.kg)(2,"WC2 connected....."),null==C||C.close();var W=new I.Q(E,"any");O(R.registerEvmProvider(W,"WalletConnectV2"))}).catch(function(W){(0,M.kg)(2,"WC2 connect error...",W),null==C||C.close(),j(W)})})]}})})},b.prototype.Torus=function(y){return S(this,void 0,void 0,function(){var E,C;return D(this,function(L){switch(L.label){case 0:return[4,x.e(296).then(x.bind(x,34296))];case 1:return[4,L.sent().getTorusProviderInstance()];case 2:return[4,(E=L.sent()).init()];case 3:return L.sent(),[4,E.login()];case 4:return L.sent(),C=new I.Q(E.provider,"any"),[2,this.registerEvmProvider(C,"Torus")]}})})},b.prototype.Phantom=function(y){return S(this,void 0,void 0,function(){return D(this,function(m){switch(m.label){case 0:return(0,M.kg)(2,"connect Phantom"),typeof window.solana<"u"?[4,this.registerSolanaProvider(window.solana,"phantom")]:[3,2];case 1:return[2,m.sent()];case 2:throw new Error("Phantom is not available. Please check the extension is supported and active.")}})})},b.prototype.SafeConnect=function(y){return S(this,void 0,void 0,function(){var m,E;return D(this,function(C){switch(C.label){case 0:return(0,M.kg)(2,"connect SafeConnect"),[4,this.getSafeConnectProvider()];case 1:return[4,(m=C.sent()).initSafeConnect()];case 2:return E=C.sent(),this.registerNewWalletAddress(E,1,"SafeConnect",m,"evm"),[2,E]}})})},b.prototype.Flow=function(y){return S(this,void 0,void 0,function(){var m,E,C;return D(this,function(L){switch(L.label){case 0:return[4,x.e(729).then(x.bind(x,28729))];case 1:return m=L.sent(),[4,(E=m.getFlowProvider()).currentUser.authenticate()];case 2:return L.sent(),[4,E.currentUser.snapshot()];case 3:if(!(C=L.sent()).addr)throw new Error("Failed to connect Flow wallet");return this.registerNewWalletAddress(C.addr,1,"flow",E,"flow"),[2,C.addr]}})})},b.prototype.Ultra=function(){var y;return S(this,void 0,void 0,function(){var m,E;return D(this,function(C){switch(C.label){case 0:return[4,window.ultra.connect()];case 1:m=C.sent(),E="";try{E=null===(y=m.data)||void 0===y?void 0:y.blockchainid.split("@")[0]}catch{throw new Error("Failed to get Ultra wallet address")}if(!E)throw new Error("Failed to get Ultra wallet address");return this.registerNewWalletAddress(E,1,"ultra",window.ultra,"ultra"),[2,E]}})})},b.prototype.safeConnectAvailable=function(){return void 0!==this.safeConnectOptions},b.prototype.getSafeConnectProvider=function(){return S(this,void 0,void 0,function(){return D(this,function(m){switch(m.label){case 0:return[4,Promise.resolve().then(x.bind(x,46761))];case 1:return[2,new(0,m.sent().SafeConnectProvider)(this.client.getUi(),this.safeConnectOptions)]}})})},b.LOCAL_STORAGE_KEY="tn-wallet-connections",b}();const p=g},6941:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Ownable__factory=void 0;const B=x(92135),I=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.Ownable__factory=M},60161:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Ownable__factory=void 0;var B=x(6941);Object.defineProperty(k,"Ownable__factory",{enumerable:!0,get:function(){return B.Ownable__factory}})},1001:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(P,o,w,S){void 0===S&&(S=w);var D=Object.getOwnPropertyDescriptor(o,w);(!D||("get"in D?!o.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return o[w]}}),Object.defineProperty(P,S,D)}:function(P,o,w,S){void 0===S&&(S=w),P[S]=o[w]}),I=this&&this.__setModuleDefault||(Object.create?function(P,o){Object.defineProperty(P,"default",{enumerable:!0,value:o})}:function(P,o){P.default=o}),M=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var o={};if(null!=P)for(var w in P)"default"!==w&&Object.prototype.hasOwnProperty.call(P,w)&&B(o,P,w);return I(o,P),o};Object.defineProperty(k,"__esModule",{value:!0}),k.token=k.access=void 0,k.access=M(x(60161)),k.token=M(x(16937))},23774:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ERC20__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],M="0x6080604052346200031d5762001095803803806200001d8162000322565b9283398101906040818303126200031d5780516001600160401b03908181116200031d57836200004f91840162000348565b91602093848201518381116200031d576200006b920162000348565b82518281116200021d576003918254916001958684811c9416801562000312575b88851014620002fc578190601f94858111620002a6575b5088908583116001146200023f5760009262000233575b505060001982861b1c191690861b1783555b80519384116200021d5760049586548681811c9116801562000212575b82821014620001fd57838111620001b2575b508092851160011462000144575093839491849260009562000138575b50501b92600019911b1c19161790555b604051610cda9081620003bb8239f35b01519350388062000118565b92919084601f1981168860005285600020956000905b898383106200019757505050106200017c575b50505050811b01905562000128565b01519060f884600019921b161c19169055388080806200016d565b8587015189559097019694850194889350908101906200015a565b87600052816000208480880160051c820192848910620001f3575b0160051c019087905b828110620001e6575050620000fb565b60008155018790620001d6565b92508192620001cd565b602288634e487b7160e01b6000525260246000fd5b90607f1690620000e9565b634e487b7160e01b600052604160045260246000fd5b015190503880620000ba565b90889350601f19831691876000528a6000209260005b8c8282106200028f575050841162000276575b505050811b018355620000cc565b015160001983881b60f8161c1916905538808062000268565b8385015186558c9790950194938401930162000255565b90915085600052886000208580850160051c8201928b8610620002f2575b918a91869594930160051c01915b828110620002e2575050620000a3565b600081558594508a9101620002d2565b92508192620002c4565b634e487b7160e01b600052602260045260246000fd5b93607f16936200008c565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200021d57604052565b919080601f840112156200031d5782516001600160401b0381116200021d576020906200037e601f8201601f1916830162000322565b928184528282870101116200031d5760005b818110620003a657508260009394955001015290565b85810183015184820184015282016200039056fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde031461075657508163095ea7b31461070e57816318160ddd146106d157816323b872dd146105a3578163313ce5671461056957816339509351146104bf57816370a082311461045e57816395d89b4114610268578163a457c2d71461016257508063a9059cbb146101145763dd62ed3e1461009e57600080fd5b3461011057807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011057806020926100d86108fe565b6100e0610926565b73ffffffffffffffffffffffffffffffffffffffff91821683526001865283832091168252845220549051908152f35b5080fd5b503461011057807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101105760209061015b6101516108fe565b6024359033610949565b5160018152f35b9050823461026557827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102655761019b6108fe565b918360243592338152600160205281812073ffffffffffffffffffffffffffffffffffffffff861682526020522054908282106101e25760208561015b8585038733610b58565b60849060208651917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b83833461011057817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011057805190828454600181811c90808316928315610454575b60209384841081146104285783885287959493929181156103cd5750600114610351575b50505003601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019267ffffffffffffffff8411838510176103255750829182610321925282610898565b0390f35b806041867f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b8888529193925086917f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8284106103b757505050907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe092601f928201019181936102d3565b805488850187015287945092850192810161037c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016848701525050151560051b830101905081601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06102d3565b60248960228c7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b91607f16916102af565b5050346101105760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610110578060209273ffffffffffffffffffffffffffffffffffffffff6104b06108fe565b16815280845220549051908152f35b82843461026557817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610265576104f76108fe565b338252600160205282822073ffffffffffffffffffffffffffffffffffffffff821683526020528282205491602435830180931161053d5760208461015b858533610b58565b806011867f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b50503461011057817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610110576020905160128152f35b839150346101105760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610110576105dd6108fe565b6105e5610926565b91846044359473ffffffffffffffffffffffffffffffffffffffff8416815260016020528181203382526020522054907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361064b575b60208661015b878787610949565b84821061067457509183916106696020969561015b95033383610b58565b91939481935061063d565b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b50503461011057817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610110576020906002549051908152f35b50503461011057807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101105760209061015b61074c6108fe565b6024359033610b58565b8490843461089457827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126108945782600354600181811c9080831692831561088a575b60209384841081146104285783885287959493929181156103cd575060011461080d5750505003601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019267ffffffffffffffff8411838510176103255750829182610321925282610898565b600388529193925086917fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061087457505050907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe092601f928201019181936102d3565b8054888501870152879450928501928101610839565b91607f169161079c565b8280fd5b60208082528251818301819052939260005b8581106108ea575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b8181018301518482016040015282016108aa565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361092157565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361092157565b73ffffffffffffffffffffffffffffffffffffffff809116918215610ad45716918215610a50576000828152806020526040812054918083106109cc57604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff809116918215610c4a5716918215610bc65760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b60846040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fdfea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.ERC20__factory=o},30104:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.IERC20__factory=void 0;const B=x(92135),I=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.IERC20__factory=M},85107:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.IERC20Metadata__factory=void 0;const B=x(92135),I=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.IERC20Metadata__factory=M},26221:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.IERC20Permit__factory=void 0;const B=x(92135),I=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.IERC20Permit__factory=M},11949:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.IERC20Permit__factory=void 0;var B=x(26221);Object.defineProperty(k,"IERC20Permit__factory",{enumerable:!0,get:function(){return B.IERC20Permit__factory}})},75878:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(o,w,S,D){void 0===D&&(D=S);var A=Object.getOwnPropertyDescriptor(w,S);(!A||("get"in A?!w.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return w[S]}}),Object.defineProperty(o,D,A)}:function(o,w,S,D){void 0===D&&(D=S),o[D]=w[S]}),I=this&&this.__setModuleDefault||(Object.create?function(o,w){Object.defineProperty(o,"default",{enumerable:!0,value:w})}:function(o,w){o.default=w}),M=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var w={};if(null!=o)for(var S in o)"default"!==S&&Object.prototype.hasOwnProperty.call(o,S)&&B(w,o,S);return I(w,o),w};Object.defineProperty(k,"__esModule",{value:!0}),k.IERC20Metadata__factory=k.draftIerc20PermitSol=void 0,k.draftIerc20PermitSol=M(x(11949));var P=x(85107);Object.defineProperty(k,"IERC20Metadata__factory",{enumerable:!0,get:function(){return P.IERC20Metadata__factory}})},36234:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(w,S,D,A){void 0===A&&(A=D);var g=Object.getOwnPropertyDescriptor(S,D);(!g||("get"in g?!S.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return S[D]}}),Object.defineProperty(w,A,g)}:function(w,S,D,A){void 0===A&&(A=D),w[A]=S[D]}),I=this&&this.__setModuleDefault||(Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S}),M=this&&this.__importStar||function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var D in w)"default"!==D&&Object.prototype.hasOwnProperty.call(w,D)&&B(S,w,D);return I(S,w),S};Object.defineProperty(k,"__esModule",{value:!0}),k.IERC20__factory=k.ERC20__factory=k.extensions=void 0,k.extensions=M(x(75878));var P=x(23774);Object.defineProperty(k,"ERC20__factory",{enumerable:!0,get:function(){return P.ERC20__factory}});var o=x(30104);Object.defineProperty(k,"IERC20__factory",{enumerable:!0,get:function(){return o.IERC20__factory}})},16937:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(P,o,w,S){void 0===S&&(S=w);var D=Object.getOwnPropertyDescriptor(o,w);(!D||("get"in D?!o.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return o[w]}}),Object.defineProperty(P,S,D)}:function(P,o,w,S){void 0===S&&(S=w),P[S]=o[w]}),I=this&&this.__setModuleDefault||(Object.create?function(P,o){Object.defineProperty(P,"default",{enumerable:!0,value:o})}:function(P,o){P.default=o}),M=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var o={};if(null!=P)for(var w in P)"default"!==w&&Object.prototype.hasOwnProperty.call(P,w)&&B(o,P,w);return I(o,P),o};Object.defineProperty(k,"__esModule",{value:!0}),k.erc20=void 0,k.erc20=M(x(36234))},76536:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(P,o,w,S){void 0===S&&(S=w);var D=Object.getOwnPropertyDescriptor(o,w);(!D||("get"in D?!o.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return o[w]}}),Object.defineProperty(P,S,D)}:function(P,o,w,S){void 0===S&&(S=w),P[S]=o[w]}),I=this&&this.__setModuleDefault||(Object.create?function(P,o){Object.defineProperty(P,"default",{enumerable:!0,value:o})}:function(P,o){P.default=o}),M=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var o={};if(null!=P)for(var w in P)"default"!==w&&Object.prototype.hasOwnProperty.call(P,w)&&B(o,P,w);return I(o,P),o};Object.defineProperty(k,"__esModule",{value:!0}),k.contracts=void 0,k.contracts=M(x(1001))},94580:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.EAS__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract ISchemaRegistry",name:"registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"AlreadyRevoked",type:"error"},{inputs:[],name:"AlreadyRevokedOffchain",type:"error"},{inputs:[],name:"AlreadyTimestamped",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidAttestation",type:"error"},{inputs:[],name:"InvalidAttestations",type:"error"},{inputs:[],name:"InvalidExpirationTime",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidOffset",type:"error"},{inputs:[],name:"InvalidRegistry",type:"error"},{inputs:[],name:"InvalidRevocation",type:"error"},{inputs:[],name:"InvalidRevocations",type:"error"},{inputs:[],name:"InvalidSchema",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidVerifier",type:"error"},{inputs:[],name:"Irrevocable",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"WrongSchema",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schema",type:"bytes32"}],name:"Attested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schema",type:"bytes32"}],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"revoker",type:"address"},{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"RevokedOffchain",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"Timestamped",type:"event"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"}],internalType:"struct AttestationRequest",name:"request",type:"tuple"}],name:"attest",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"}],internalType:"struct DelegatedAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttestation",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"revoker",type:"address"},{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getSchemaRegistry",outputs:[{internalType:"contract ISchemaRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"isAttestationValid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiAttestationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiAttest",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"}],internalType:"struct MultiDelegatedAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiRevocationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiRevoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"}],internalType:"struct MultiDelegatedRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"}],internalType:"struct RevocationRequest",name:"request",type:"tuple"}],name:"revoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"}],internalType:"struct DelegatedRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"revokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"timestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"}],M="0x610160346200030457601f19906001600160401b0390601f62004c8938819003918201851683019184831184841017620003095780849260409485528339602093849181010312620003045751916001600160a01b0383168084036200030457818351966200006e886200031f565b60038852818801966245415360e81b885285516200008c816200031f565b6004958187809352019863302e323760e01b8a528a5190209820988860e05261010099808b524660a0528751858101917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9b8c84528a83015260608201524660808201523060a082015260a0815260c0810181811085821117620002ef5789525190206080523060c0526101209889528051918211620002da576000938454916001928381811c91168015620002cf575b83821014620002bc57601f811162000271575b5081601f85116001146200020b5750839450908392918694620001ff575b50501b916000199060031b1c19161790555b15620001f15750610140918252519161494d93846200033c8539608051846143dc015260a05184614497015260c051846143ad015260e0518461442b01525183614451015251826144080152518181816102a901528181611e660152818161268e01528181612d9a01526130180152f35b90516311a1e69760e01b8152fd5b0151925038806200016e565b9294849081168780528488209488905b888383106200025657505050106200023c575b505050811b01905562000180565b015160001960f88460031b161c191690553880806200022e565b8587015188559096019594850194879350908101906200021b565b868052828720601f860160051c810191848710620002b1575b601f0160051c019084905b828110620002a557505062000150565b88815501849062000295565b90915081906200028a565b634e487b7160e01b875260228952602487fd5b90607f16906200013d565b604186634e487b7160e01b6000525260246000fd5b604189634e487b7160e01b6000525260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b03821117620003095760405256fe61016060406101405280610140515260048036101561001d57600080fd5b600091823560e01c90816312b11a171461118d5750806313893f611461110557806317d7de7c14610fe25780632d0335ab14610f7a57806344adc90e14610e715780634692626714610e125780634cb7e9e514610d095780634d00307014610cc0578063831e05a114610a71578063a3112a6414610a07578063b469318d14610987578063b83010d31461092c578063cf190f34146108e2578063d45c44351461088c578063e13458fc14610790578063e30bb56314610739578063e45d03f9146104b1578063e57a6b1b1461039b578063e71ff36514610310578063ed24911d146102cd578063f10b5cc81461025c578063f17325e7146101ae5763ffa1ad741461012857600080fd5b346101aa57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa5761014051516101a6916101688261141f565b81527f302e3237000000000000000000000000000000000000000000000000000000006020820152610140515191829160208352602083019061123e565b0390f35b5080fd5b50907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020823601126102595782359267ffffffffffffffff84116101aa578301916101405190843603011261025957602061024e8161024786866102296102156114eb565b92610224602436920184611553565b6115d6565b61023283611586565b5261023c82611586565b503491339135611df1565b0151611586565b516101405151908152f35b80fd5b823461025957807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610259576020610140515173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b823461025957807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610259576020610306614396565b6101405151908152f35b50346101aa5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa57803567ffffffffffffffff918282116103975761035f913691016111e5565b90914216925b818110610379576020846101405151908152f35b806103918561038b6001948688611a39565b356141be565b01610365565b8380fd5b5060e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa576101405151906103d58261139c565b358082526103e236611981565b602083015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9c3601126104ad57610140515161041f81611403565b60643560ff811681036104a9578152608435602082015260a435610140518201526101405183015260c43573ffffffffffffffffffffffffffffffffffffffff8116810361039757610479838260606104a596015261487a565b610481611932565b61048a36611981565b61049382611586565b5261049d81611586565b503492612d4d565b5080f35b8480fd5b8280fd5b506020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126104ad5767ffffffffffffffff82358181116104a95784926104ff8592369084016111e5565b91903493865b848110610510578780f35b6105208186859a9798999a61189e565b906080823603126107315761014051519761053a8961139c565b82358952858301358a811161073557830196601f973689820112156101aa5761056990369089813591016119c7565b94878b01958652610140518501358c81116104ad5785019836908a0112156101aa57883596610597886114d3565b996105a761014051519b8c611458565b888b52898b018a6060809b0283010191368311610731578b808c9201925b84841061071957505090506105e591508d6101405101978c8952016112a4565b96888d0197885251998a51801591821561070d575b50506106e257825b8a51811015610673578061066d8c8f8b8b8f926106448761063c60019a73ffffffffffffffffffffffffffffffffffffffff9451986115c2565b5193516115c2565b51925116926101405151946106588661139c565b8552840152610140518301528c82015261487a565b01610602565b5099986106d6949897506001955083906106d0939d97929c519073ffffffffffffffffffffffffffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8d018c1494511691612fca565b90611862565b91969195929301610505565b5061014051517f947d5a84000000000000000000000000000000000000000000000000000000008152fd5b51141590508e806105fa565b6107233685611698565b8152019101908b8b916105c5565b8580fd5b8780fd5b5090346102595760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261025957602061078483356000526002602052604060002054151590565b61014051519015158152f35b507ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc916020833601126102595767ffffffffffffffff9282358481116104ad5760c08185019282360301126104ad576101405151946107ee8661139c565b82359485875260248301948535928311610259575060209661086b6102479561085860a461024e9a9761082b8d9b986108849836918401016115d6565b8b87015261083c3660448301611698565b61014051870152019361084e856112a4565b60608201526144bd565b6102246108636114eb565b953692611553565b61087484611586565b5261087e83611586565b506116d6565b903492611df1565b50346101aa5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa5760209167ffffffffffffffff913581526003835261014051902054166101405151908152f35b50346101aa5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa5760209061030667ffffffffffffffff421680923533614264565b823461025957807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261025957602061014051517fa98d02348410c9c76735e0d0bb1396f4015ac2bb9615f9c2611d19d7a8a996508152f35b50346101aa57610140517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa5760209167ffffffffffffffff9173ffffffffffffffffffffffffffffffffffffffff6109e3611281565b16825283526101405181206024358252835261014051902054166101405151908152f35b50346101aa5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa576101a691610a5b91610a47611a49565b503581526002602052610140519020611ae7565b6101405151918291602083526020830190611300565b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa57803567ffffffffffffffff81116104ad57610abb8391369084016111e5565b9092610ac6826116f7565b9383346101205280935b808510610af2576101a6610ae48789614329565b6101405151918291826112c5565b9091929394610b0286838661189e565b610b0f602082018261179e565b80929192158015610ca6575b610c7b578560608301928035915b838110610bbb57505092602092610b829260019695610b7c8d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8b011494610b7461012051956116d6565b9336916117f2565b9061261c565b610b90815161012051611862565b61012052018051610ba1898b6115c2565b52610bac888a6115c2565b50515101950193929190610ad0565b610bca8160051b870187611553565b610bd9610140518401846118de565b831015610c4f576001929173ffffffffffffffffffffffffffffffffffffffff610c4992610c37610c098b6116d6565b91610c26610140515195610c1c8761139c565b8b875236906115d6565b602086015236906060880201611698565b610140518401521660608201526144bd565b01610b29565b60248b60328f7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8761014051517f947d5a84000000000000000000000000000000000000000000000000000000008152fd5b50610cb6610140518301836118de565b9050811415610b1b565b50346101aa5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa5760209061030667ffffffffffffffff42168092356141be565b506020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126104ad57813567ffffffffffffffff928382116104a957610d54913691016111e5565b8493919290345b818610610d66578680f35b610d7186838761175e565b838101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe182360301811215610e0e57810191823592868411610e0a578501928060061b36038413610e0a57600193826106d092610e0295610dfb8d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8b011494339336916119c7565b9035612fca565b950194610d5b565b8980fd5b8880fd5b5060607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa576104a590610e49611932565b90610e5336611981565b610e5c83611586565b52610e6682611586565b503491339135612d4d565b50602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126104ad5780359067ffffffffffffffff821161039757610ebe9084923691016111e5565b90610ec8826116f7565b93833490937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101905b808610610f06576101a6610ae4888a614329565b90919293949560019085610f51610f488a8888610f24838a8f61175e565b610f41610f338883018361179e565b9390951494339336916117f2565b903561261c565b96875190611862565b95018051610f5f8a8c6115c2565b52610f6a898b6115c2565b5051510196019493929190610ef2565b82346102595760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102595760209073ffffffffffffffffffffffffffffffffffffffff610fca611281565b16815260018252610140519020546101405151908152f35b823461025957807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102595761014051519080805461102381611a94565b808552916001918083169081156110bd5750600114611063575b6101a68561104d81870382611458565b610140515191829160208352602083019061123e565b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106110a557505050810160200161104d826101a661103d565b8054602085870181019190915290930192810161108a565b8695506101a69693506020925061104d9491507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682840152151560051b820101929361103d565b50346101aa5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa57803567ffffffffffffffff9182821161039757611154913691016111e5565b90914216925b81811061116e576020846101405151908152f35b80611187856111806001948688611a39565b3533614264565b0161115a565b8390346101aa57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101aa57807fdbfdf8dc2b135c26253e00d5b6cbe6f20457e003fd526d97cea183883570de6160209252f35b9181601f840112156112165782359167ffffffffffffffff8311611216576020808501948460051b01011161121657565b600080fd5b60005b83811061122e5750506000910152565b818101518382015260200161121e565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209361127a8151809281875287808801910161121b565b0116010190565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361121657565b359073ffffffffffffffffffffffffffffffffffffffff8216820361121657565b6020908160408183019282815285518094520193019160005b8281106112ec575050505090565b8351855293810193928101926001016112de565b9061139991805182526020810151602083015267ffffffffffffffff806040830151166040840152806060830151166060840152608082015116608083015260a081015160a083015273ffffffffffffffffffffffffffffffffffffffff8060c08301511660c084015260e08201511660e08301526101008082015115159083015261012080910151916101408092820152019061123e565b90565b6080810190811067ffffffffffffffff8211176113b857604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60c0810190811067ffffffffffffffff8211176113b857604052565b6060810190811067ffffffffffffffff8211176113b857604052565b6040810190811067ffffffffffffffff8211176113b857604052565b610140810190811067ffffffffffffffff8211176113b857604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176113b857604052565b67ffffffffffffffff81116113b857601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b67ffffffffffffffff81116113b85760051b60200190565b6040908151916114fa8361141f565b60018352829160005b60208082101561154b5783516020929161151c826113e7565b6000825260008183015260008683015260606000818401526080830152600060a0830152828801015201611503565b505091925050565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4181360301821215611216570190565b8051156115935760200190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b80518210156115935760209160051b010190565b91909160c08184031261121657604051906115f0826113e7565b81936115fb826112a4565b835260209167ffffffffffffffff8184013581811681036112165784860152604082013580151581036112165760408601526060820135606086015260808201359081116112165781019180601f840112156112165782359261165d84611499565b9161166b6040519384611458565b84835285858301011161121657848460a09695879660009401838601378301015260808501520135910152565b9190826060910312611216576040516116b081611403565b8092803560ff811681036112165760409182918452602081013560208501520135910152565b3573ffffffffffffffffffffffffffffffffffffffff811681036112165790565b90611701826114d3565b61170e6040519182611458565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061173c82946114d3565b019060005b82811061174d57505050565b806060602080938501015201611741565b91908110156115935760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc181360301821215611216570190565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215611216570180359067ffffffffffffffff821161121657602001918160051b3603831361121657565b929190926117ff846114d3565b9161180d6040519384611458565b829480845260208094019060051b8301928284116112165780915b84831061183757505050505050565b823567ffffffffffffffff811161121657869161185786849386016115d6565b815201920191611828565b9190820391821161186f57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908110156115935760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8181360301821215611216570190565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215611216570180359067ffffffffffffffff82116112165760200191606082023603831361121657565b6040908151916119418361141f565b600183528291600091825b602080821015611978578251602092916119658261141f565b868252868183015282890101520161194c565b50505091925050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc604091011261121657604051906119b88261141f565b60243582526044356020830152565b9291926119d3826114d3565b6040926119e284519283611458565b819581835260208093019160061b84019381851161121657915b848310611a0b57505050505050565b8583830312611216578386918251611a228161141f565b8535815282860135838201528152019201916119fc565b91908110156115935760051b0190565b60405190611a568261143b565b606061012083600080825280602083015280604083015280848301528060808301528060a08301528060c08301528060e08301526101008201520152565b90600182811c92168015611add575b6020831014611aae57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691611aa3565b9060405191611af58361143b565b828154815260016006818401549360209485850152600281015467ffffffffffffffff908181166040870152818160401c16606087015260801c166080850152600381015460a085015260ff73ffffffffffffffffffffffffffffffffffffffff8060048401541660c0870152600583015490811660e087015260a01c1615156101008501520190604051938492600092815491611b9283611a94565b80875292828116908115611c075750600114611bc1575b505050506101209291611bbd910384611458565b0152565b60009081528381209695945091905b818310611bef57509394509192509082010181611bbd61012038611ba9565b86548884018501529586019587945091830191611bd0565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685880152505050151560051b830101905081611bbd61012038611ba9565b60405190611c548261141f565b6060602083600081520152565b90611c6b826114d3565b611c786040519182611458565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611ca682946114d3565b0190602036910137565b5190811515820361121657565b906020808383031261121657825167ffffffffffffffff938482116112165701926080848403126112165760405193611cf58561139c565b805185528281015173ffffffffffffffffffffffffffffffffffffffff811681036112165783860152611d2a60408201611cb0565b60408601526060810151918211611216570182601f8201121561121657805190611d5382611499565b93611d616040519586611458565b8285528383830101116112165782611d7c938501910161121b565b606082015290565b90611d8e826114d3565b611d9b6040519182611458565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611dc982946114d3565b019060005b828110611dda57505050565b602090611de5611a49565b82828501015201611dce565b9192608052611dfe611c47565b50805190611e0a611c47565b60a052611e1682611c61565b602060a05101526040517fa2ea7c6e00000000000000000000000000000000000000000000000000000000815283600482015260008160248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa801561261057600060e0526125eb575b5060e05151156125c1579091611ead83611d84565b60c052611eb983611c61565b610100526000915b838310611eec575050505050611ee26080516101005160c05160e0516132ba565b60a0515260a05190565b611efc83829793949596976115c2565b519167ffffffffffffffff60208401511680151590816125ac575b5061258257604060e05101511580612575575b61254b5760608301519567ffffffffffffffff6020850151169673ffffffffffffffffffffffffffffffffffffffff85511660408601511515906080870151926040519a611f778c61143b565b60008c528960208d015267ffffffffffffffff421660408d015260608c0152600060808c015260a08b015260c08a015273ffffffffffffffffffffffffffffffffffffffff8a1660e08a015261010089015261012088015260005b602088015160c08901516120db609d60e08c015160408d01518d60608101519161010082015115159061012060a084015193015193604051988996602088019b8c527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809260601b16604089015260601b1660548701527fffffffffffffffff000000000000000000000000000000000000000000000000809260c01b16606887015260c01b16607085015260f81b6078840152607983015280516120a0816099936020858701910161121b565b8201907fffffffff000000000000000000000000000000000000000000000000000000008860e01b169082015203607d810184520182611458565b51902080600052600260205260406000205415612101575060010163ffffffff16611fd2565b905097969293909495919780845280600052600260205260406000209184518355602085015160018401556121dd6002840167ffffffffffffffff6040880151168154907fffffffffffffffffffffffffffffffff000000000000000000000000000000006fffffffffffffffff000000000000000060608b015160401b1692161717815567ffffffffffffffff6080880151167fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff77ffffffffffffffff0000000000000000000000000000000083549260801b169116179055565b60a085015160038401556004830173ffffffffffffffffffffffffffffffffffffffff60c0870151167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556005830173ffffffffffffffffffffffffffffffffffffffff60e0870151168154907fffffffffffffffffffffff00000000000000000000000000000000000000000074ff00000000000000000000000000000000000000006101008a0151151560a01b1692161717905561012085015192835167ffffffffffffffff81116113b85789946122bf6006840154611a94565b601f81116124f0575b50602090601f8311600114612423576006929160009183612418575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8260011b9260031b1c1916179101555b6060810151806123c8575b5073ffffffffffffffffffffffffffffffffffffffff906001956123488660c0516115c2565b526123558560c0516115c2565b5060a081015161236886610100516115c2565b528261237a86602060a05101516115c2565b5251166040519182527f8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b35602073ffffffffffffffffffffffffffffffffffffffff8b1693a401919290611ec1565b6123e19193506000526002602052604060002054151590565b156123ee57869138612322565b60046040517fc5723b51000000000000000000000000000000000000000000000000000000008152fd5b0151905038806122e4565b906006840160005260206000209160005b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0851681106124d55750918391600193837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0600697161061249e575b505050811b01910155612317565b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055388080612490565b8183015184558d985060019093019260209283019201612434565b90919293949550600684016000526020600020601f840160051c810160208510612544575b908c979695949392915b601f830160051c820181106125355750506122c8565b600081558d985060010161251f565b5080612515565b60046040517f157bd4c3000000000000000000000000000000000000000000000000000000008152fd5b5060408301511515611f2a565b60046040517f08e8b937000000000000000000000000000000000000000000000000000000008152fd5b905067ffffffffffffffff4216101538611f17565b60046040517fbf37b20e000000000000000000000000000000000000000000000000000000008152fd5b612607903d806000833e6125ff8183611458565b810190611cbd565b60e05238611e98565b6040513d6000823e3d90fd5b9290949391612629611c47565b50855193612635611c47565b9461263f81611c61565b6020870152604051907fa2ea7c6e00000000000000000000000000000000000000000000000000000000825282600483015260008260248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa91821561261057600092612d30575b508151156125c157929790916126d484611d84565b986126de85611c61565b946000935b818510612700575050505050956126fb94959661351e565b815290565b919593989496999092976127148a846115c2565b519a67ffffffffffffffff60208d0151168015159081612d1b575b506125825760408901511580612d0e575b61254b57899860608d01518d602081015167ffffffffffffffff1691815173ffffffffffffffffffffffffffffffffffffffff1690604083015115159260800151936040519e8f906127918261143b565b6000825260208201524267ffffffffffffffff166040820152606001528d608081016000905260a0015260c08d015273ffffffffffffffffffffffffffffffffffffffff8b1660e08d01526101008c01526101208b015260005b60208b01518b6128bc609d60c08301519260e08101519060408101519060608101519161010082015115159061012060a084015193015193604051988996602088019b8c527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809260601b16604089015260601b1660548701527fffffffffffffffff000000000000000000000000000000000000000000000000809260c01b16606887015260c01b16607085015260f81b6078840152607983015280516120a0816099936020858701910161121b565b519020806000526002602052604060002054156128e2575060010163ffffffff166127eb565b90509d979b9199929a949d9c909698939c80845280600052600260205260406000209184518355602085015160018401556129c46002840167ffffffffffffffff6040880151168154907fffffffffffffffffffffffffffffffff000000000000000000000000000000006fffffffffffffffff000000000000000060608b015160401b1692161717815567ffffffffffffffff6080880151167fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff77ffffffffffffffff0000000000000000000000000000000083549260801b169116179055565b60a085015160038401556004830173ffffffffffffffffffffffffffffffffffffffff60c0870151167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556005830173ffffffffffffffffffffffffffffffffffffffff60e0870151168154907fffffffffffffffffffffff00000000000000000000000000000000000000000074ff00000000000000000000000000000000000000006101008a0151151560a01b1692161717905561012085015192835167ffffffffffffffff81116113b8578894612aa66006840154611a94565b601f8111612cb3575b50602090601f8311600114612be6576006929160009183612bdb575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8260011b9260031b1c1916179101555b8d8b8b606084015180612bae575b5086602073ffffffffffffffffffffffffffffffffffffffff95948794612b44848660019e612b3e83612b5c9a6115c2565b526115c2565b50612b548460a0890151926115c2565b5201516115c2565b5251166040519182527f8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b35602073ffffffffffffffffffffffffffffffffffffffff881693a4019290919293949a6126e3565b92505050612bcb9193506000526002602052604060002054151590565b156123ee5785918d8b8b38612b0c565b015190503880612acb565b906006840160005260206000209160005b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe085168110612c985750918391600193837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06006971610612c61575b505050811b01910155612afe565b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055388080612c53565b8183015184558c985060019093019260209283019201612bf7565b90919293949550600684016000526020600020601f840160051c810160208510612d07575b908b979695949392915b601f830160051c82018110612cf8575050612aaf565b600081558c9850600101612ce2565b5080612cd8565b5060408c01511515612740565b905067ffffffffffffffff421610153861272f565b612d469192503d806000833e6125ff8183611458565b90386126bf565b939291936040517fa2ea7c6e00000000000000000000000000000000000000000000000000000000815281600482015260008160248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa90811561261057600091612faf575b508051156125c1578251612dde81611d84565b92612de882611c61565b9460005b838110612e0257505050506113999495506136ff565b612e0c81836115c2565b5190815160005260028060205260406000208054156123ee57856001820154036125c1578c73ffffffffffffffffffffffffffffffffffffffff6005830154911673ffffffffffffffffffffffffffffffffffffffff821603612f855760a01c60ff161561254b5767ffffffffffffffff8282015460801c16612f5b5790810180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff164260801b77ffffffffffffffff00000000000000000000000000000000161790556001928c9190612ee082611ae7565b612eea858c6115c2565b52612ef5848b6115c2565b506020810151612f05858d6115c2565b527ff930a6e2523c9cc298691873087a740550b8fc85a0680830414c148ed927f615602073ffffffffffffffffffffffffffffffffffffffff87816004870154169451950154956040519586521693a401612dec565b60046040517f905e7107000000000000000000000000000000000000000000000000000000008152fd5b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b612fc491503d806000833e6125ff8183611458565b38612dcb565b90949392916040517fa2ea7c6e00000000000000000000000000000000000000000000000000000000815282600482015260008160248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa908115612610576000916131eb575b508051156125c157865161305c81611d84565b9261306682611c61565b9460005b83811061308057505050506113999596506138fe565b61308a818c6115c2565b519081516000526002918260205260406000208054156123ee57846001820154036125c157600581015473ffffffffffffffffffffffffffffffffffffffff871673ffffffffffffffffffffffffffffffffffffffff821603612f855760a01c60ff161561254b5767ffffffffffffffff8482015460801c16612f5b5792830180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff164260801b77ffffffffffffffff000000000000000000000000000000001617905560019261315b81611ae7565b613165848b6115c2565b52613170838a6115c2565b506020820151613180848c6115c2565b528373ffffffffffffffffffffffffffffffffffffffff6004830154169251910154916040519182527ff930a6e2523c9cc298691873087a740550b8fc85a0680830414c148ed927f615602073ffffffffffffffffffffffffffffffffffffffff891693a40161306a565b61320091503d806000833e6125ff8183611458565b38613049565b60408101906040815282518092526060810160608360051b830101926020809501916000905b82821061326f57505050508281830391015281808451928381520193019160005b82811061325b575050505090565b83518552938101939281019260010161324d565b909192959485806132aa837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa089600196030186528a51611300565b979801949391909101910161322c565b9092918351936001908186146134fd5773ffffffffffffffffffffffffffffffffffffffff602080950151169182156134cd579560009687915b8083106133bf575050509183929161333d9492876040518097819582947f91db0b7e00000000000000000000000000000000000000000000000000000000845260048401613206565b03925af19081156126105760009161338b575b50905015613361576113999061408f565b60046040517fe8bee839000000000000000000000000000000000000000000000000000000008152fd5b82813d83116133b8575b61339f8183611458565b8101031261025957506133b190611cb0565b8038613350565b503d613395565b909197966133cd89876115c2565b5180151580613447575b61341d578181116133f3578084920398019801909190916132f4565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b60046040517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b50604080517fce46e04600000000000000000000000000000000000000000000000000000000815289816004818b5afa9182156134c3575060009161348e575b50156133d7565b908982813d83116134bc575b6134a48183611458565b8101031261025957506134b690611cb0565b38613487565b503d61349a565b513d6000823e3d90fd5b9594505050905060005b8281106134e75750505050600090565b6134f181836115c2565b5161341d5783016134d7565b6113999550613517915061351090611586565b5191611586565b5191613ad6565b9093918451946001908187146136e25773ffffffffffffffffffffffffffffffffffffffff602080950151169182156136b1579660009788915b80831061360157505050918392916135a19492886040518097819582947f91db0b7e00000000000000000000000000000000000000000000000000000000845260048401613206565b03925af1908115612610576000916135cd575b50905015613361576135c4575090565b6113999061408f565b82813d83116135fa575b6135e18183611458565b8101031261025957506135f390611cb0565b80386135b4565b503d6135d7565b9091989761360f8a876115c2565b5180151580613635575b61341d578181116133f357808492039901990190919091613558565b50604080517fce46e04600000000000000000000000000000000000000000000000000000000815289816004818b5afa9182156134c3575060009161367c575b5015613619565b908982813d83116136aa575b6136928183611458565b8101031261025957506136a490611cb0565b38613675565b503d613688565b969550505091505060005b8281106136cc5750505050600090565b6136d681836115c2565b5161341d5783016136bc565b61139996506136f8915061351090959495611586565b5191613c5d565b9092918351936001908186146138e45773ffffffffffffffffffffffffffffffffffffffff602080950151169182156138b4579560009687915b80831061380457505050918392916137829492876040518097819582947f88e5b2d900000000000000000000000000000000000000000000000000000000845260048401613206565b03925af1908115612610576000916137d0575b509050156137a6576113999061408f565b60046040517fbf2f3a8b000000000000000000000000000000000000000000000000000000008152fd5b82813d83116137fd575b6137e48183611458565b8101031261025957506137f690611cb0565b8038613795565b503d6137da565b9091979661381289876115c2565b5180151580613838575b61341d578181116133f357808492039801980190919091613739565b50604080517fce46e04600000000000000000000000000000000000000000000000000000000815289816004818b5afa9182156134c3575060009161387f575b501561381c565b908982813d83116138ad575b6138958183611458565b8101031261025957506138a790611cb0565b38613878565b503d61388b565b9594505050905060005b8281106138ce5750505050600090565b6138d881836115c2565b5161341d5783016138be565b61139995506138f7915061351090611586565b5191613dc5565b909391845194600190818714613ab95773ffffffffffffffffffffffffffffffffffffffff60208095015116918215613a88579660009788915b8083106139d857505050918392916139819492886040518097819582947f88e5b2d900000000000000000000000000000000000000000000000000000000845260048401613206565b03925af1908115612610576000916139a4575b509050156137a6576135c4575090565b82813d83116139d1575b6139b88183611458565b8101031261025957506139ca90611cb0565b8038613994565b503d6139ae565b909198976139e68a876115c2565b5180151580613a0c575b61341d578181116133f357808492039901990190919091613938565b50604080517fce46e04600000000000000000000000000000000000000000000000000000000815289816004818b5afa9182156134c35750600091613a53575b50156139f0565b908982813d8311613a81575b613a698183611458565b810103126102595750613a7b90611cb0565b38613a4c565b503d613a5f565b969550505091505060005b828110613aa35750505050600090565b613aad81836115c2565b5161341d578301613a93565b6113999650613acf915061351090959495611586565b5191613f3f565b92919273ffffffffffffffffffffffffffffffffffffffff602080920151168015613c505784151580613bd6575b61341d578385116133f357613b52829186946040519586809481937fe60c35050000000000000000000000000000000000000000000000000000000083528760048401526024830190611300565b03925af190811561261057600091613ba2575b50905015613b785781611399910361408f565b60046040517fbd8ba84d000000000000000000000000000000000000000000000000000000008152fd5b82813d8311613bcf575b613bb68183611458565b810103126102595750613bc890611cb0565b8038613b65565b503d613bac565b506040517fce46e0460000000000000000000000000000000000000000000000000000000081528281600481855afa90811561261057600091613c1b575b5015613b04565b908382813d8311613c49575b613c318183611458565b810103126102595750613c4390611cb0565b38613c14565b503d613c27565b5050505061341d57600090565b93919373ffffffffffffffffffffffffffffffffffffffff602080920151168015613db75785151580613d3d575b61341d578486116133f357613cd9829187946040519586809481937fe60c35050000000000000000000000000000000000000000000000000000000083528760048401526024830190611300565b03925af190811561261057600091613d09575b50905015613b78578290613cff57505090565b611399910361408f565b82813d8311613d36575b613d1d8183611458565b810103126102595750613d2f90611cb0565b8038613cec565b503d613d13565b506040517fce46e0460000000000000000000000000000000000000000000000000000000081528281600481855afa90811561261057600091613d82575b5015613c8b565b908382813d8311613db0575b613d988183611458565b810103126102595750613daa90611cb0565b38613d7b565b503d613d8e565b505050505061341d57600090565b92919273ffffffffffffffffffffffffffffffffffffffff602080920151168015613c505784151580613ec5575b61341d578385116133f357613e41829186946040519586809481937fe49617e10000000000000000000000000000000000000000000000000000000083528760048401526024830190611300565b03925af190811561261057600091613e91575b50905015613e675781611399910361408f565b60046040517fccf3bb27000000000000000000000000000000000000000000000000000000008152fd5b82813d8311613ebe575b613ea58183611458565b810103126102595750613eb790611cb0565b8038613e54565b503d613e9b565b506040517fce46e0460000000000000000000000000000000000000000000000000000000081528281600481855afa90811561261057600091613f0a575b5015613df3565b908382813d8311613f38575b613f208183611458565b810103126102595750613f3290611cb0565b38613f03565b503d613f16565b93919373ffffffffffffffffffffffffffffffffffffffff602080920151168015613db75785151580614015575b61341d578486116133f357613fbb829187946040519586809481937fe49617e10000000000000000000000000000000000000000000000000000000083528760048401526024830190611300565b03925af190811561261057600091613fe1575b50905015613e67578290613cff57505090565b82813d831161400e575b613ff58183611458565b81010312610259575061400790611cb0565b8038613fce565b503d613feb565b506040517fce46e0460000000000000000000000000000000000000000000000000000000081528281600481855afa9081156126105760009161405a575b5015613f6d565b908382813d8311614088575b6140708183611458565b81010312610259575061408290611cb0565b38614053565b503d614066565b806140975750565b80471061416057600080808093335af13d1561415b573d6140b781611499565b906140c56040519283611458565b8152600060203d92013e5b156140d757565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b6140d0565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b6000818152600360205267ffffffffffffffff908160408220541661423a577f5aafceeb1c7ad58e4a84898bdee37c02c0fc46e7d24e6b60e8209449f183459f91838252600360205260408220941693847fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000082541617905580a3565b60046040517f2e267946000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff166000818152600460205260408120908381528160205267ffffffffffffffff806040832054166142ff577f92a1f7a41a7c585a8b09e25b195e225b1d43248daca46b0faf9e0792777a22299285835260205260408220951694857fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000082541617905580a4565b60046040517fec9d6eeb000000000000000000000000000000000000000000000000000000008152fd5b9061433390611c61565b60009283925b805184101561438e579361434d84866115c2565b519160005b835181101561437d5761436581856115c2565b5161437084876115c2565b5260019283019201614352565b509094600190940193909150614339565b509250905090565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016301480614494575b156143fe577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f000000000000000000000000000000000000000000000000000000000000000082527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815261448e816113e7565b51902090565b507f000000000000000000000000000000000000000000000000000000000000000046146143d5565b6020908181015190604080938183015192606081019173ffffffffffffffffffffffffffffffffffffffff948584511660005260018252846000209283549360018501905551928688511667ffffffffffffffff988985820151168882015115159060806060840151930151878151910120938a5198888a019b7fdbfdf8dc2b135c26253e00d5b6cbe6f20457e003fd526d97cea183883570de618d528a01526060890152608088015260a087015260c086015260e085015261010090818501528352610120830196838810908811176113b8576145a886956145bc946145c4998b5251902061482e565b918860ff8351169183015192015192614792565b9490946145f9565b51169116036145d05750565b600490517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b6005811015614763578061460a5750565b600181036146705760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036146d65760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146146df57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116148225791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa1561481557815173ffffffffffffffffffffffffffffffffffffffff81161561480f579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b614836614396565b906040519060208201927f19010000000000000000000000000000000000000000000000000000000000008452602283015260428201526042815261448e8161139c565b602081015160409182810151916060820173ffffffffffffffffffffffffffffffffffffffff9283825116600052600160205285600020908154916001830190555192519086519160208301947fa98d02348410c9c76735e0d0bb1396f4015ac2bb9615f9c2611d19d7a8a99650865288840152606083015260808201526080815260a081019481861067ffffffffffffffff8711176113b85761492b85946145bc936145c4988a5251902061482e565b9060ff8151168860208301519201519261479256fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D){return super.deploy(S,D||{})}getDeployTransaction(S,D){return super.getDeployTransaction(S,D||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.EAS__factory=o},66899:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.IEAS__factory=void 0;const B=x(92135),I=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schema",type:"bytes32"}],name:"Attested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schema",type:"bytes32"}],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"revoker",type:"address"},{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"RevokedOffchain",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"Timestamped",type:"event"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"}],internalType:"struct AttestationRequest",name:"request",type:"tuple"}],name:"attest",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"}],internalType:"struct DelegatedAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttestation",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"revoker",type:"address"},{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSchemaRegistry",outputs:[{internalType:"contract ISchemaRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"isAttestationValid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiAttestationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiAttest",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"}],internalType:"struct MultiDelegatedAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiRevocationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiRevoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"}],internalType:"struct MultiDelegatedRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"}],internalType:"struct RevocationRequest",name:"request",type:"tuple"}],name:"revoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"}],internalType:"struct DelegatedRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"revokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"timestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.IEAS__factory=M},75826:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ISchemaRegistry__factory=void 0;const B=x(92135),I=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!1,internalType:"address",name:"registerer",type:"address"}],name:"Registered",type:"event"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getSchema",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"string",name:"schema",type:"string"}],internalType:"struct SchemaRecord",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"schema",type:"string"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"}],name:"register",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.ISchemaRegistry__factory=M},46867:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaRegistry__factory=void 0;const B=x(92135),I=[{inputs:[],name:"AlreadyExists",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!1,internalType:"address",name:"registerer",type:"address"}],name:"Registered",type:"event"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getSchema",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"string",name:"schema",type:"string"}],internalType:"struct SchemaRecord",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"schema",type:"string"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"}],name:"register",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"}],M="0x60808060405234610016576107b8908161001c8239f35b600080fdfe60806040908082526004918236101561001757600080fd5b600091823560e01c90816360d7a2781461029757508063a2ea7c6e146101045763ffa1ad741461004657600080fd5b3461010057817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610100578051918183019083821067ffffffffffffffff8311176100d45750926100d093825282527f302e323700000000000000000000000000000000000000000000000000000000602083015251918291602083526020830190610689565b0390f35b806041867f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b5080fd5b503461010057602092837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610293576060808351610144816106cc565b85815285878201528585820152015235825281835280822090805191610169836106cc565b805483526001918282015491868501600273ffffffffffffffffffffffffffffffffffffffff92838616835260ff8589019660a01c16151586520188845196898354936101b585610758565b808b52948381169081156102505750600114610214575b50505050506101e1856100d097980386610717565b606087019485528251978897818952519088015251169085015251151560608401525160808084015260a0830190610689565b908094939b50528983205b82841061023d575050508501909601956101e1886100d087386101cc565b80548985018c0152928a0192810161021f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016858c01525050505090151560051b86010196506101e1886100d087386101cc565b8280fd5b92939050346106625760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126106625780359067ffffffffffffffff80831161065e573660238401121561065e57828201359181831161065a57366024848601011161065a576024359673ffffffffffffffffffffffffffffffffffffffff9182891680990361010057604435978815158099036102935761033b816106cc565b8281526020998a8201908152888201998a52885197848c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe099818b601f83011601610386908d610717565b808c5280828d019460240185378b0101528b6060840199808b5283518d5115158d519384938185019687915180926103bd92610666565b84019260601b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169083015260f81b6034820152036015810182526035016104059082610717565b519020998a8552848c5289852054610632579082918b600294528b8652858d528a8620925183556001968784019251167fffffffffffffffffffffff00000000000000000000000000000000000000000074ff000000000000000000000000000000000000000084549351151560a01b1692161717905501955190815194851161060657506104948654610758565b601f81116105c0575b508891601f8511600114610545578495509084939492919361051a575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91921b9260031b1c19161790555b817f7d917fcbc9a29a9705ff9936ffa599500e4fd902e4486bae317414fe967b307c848351338152a251908152f35b015191507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff386104ba565b9294849081168785528a8520945b8b888383106105a95750505010610572575b505050811b0190556104eb565b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055388080610565565b868601518855909601959485019487935001610553565b868352898320601f860160051c8101918b87106105fc575b601f0160051c019084905b8281106105f157505061049d565b8481550184906105e3565b90915081906105d8565b8260416024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b838a517f23369fa6000000000000000000000000000000000000000000000000000000008152fd5b8680fd5b8580fd5b8380fd5b60005b8381106106795750506000910152565b8181015183820152602001610669565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6020936106c581518092818752878088019101610666565b0116010190565b6080810190811067ffffffffffffffff8211176106e857604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176106e857604052565b90600182811c921680156107a1575b602083101461077257565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f169161076756fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S){return super.deploy(S||{})}getDeployTransaction(S){return super.getDeployTransaction(S||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.SchemaRegistry__factory=o},17576:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.EIP712Verifier__factory=void 0;const B=x(92135),I=[{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.EIP712Verifier__factory=M},61418:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(o,w,S,D){void 0===D&&(D=S);var A=Object.getOwnPropertyDescriptor(w,S);(!A||("get"in A?!w.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return w[S]}}),Object.defineProperty(o,D,A)}:function(o,w,S,D){void 0===D&&(D=S),o[D]=w[S]}),I=this&&this.__setModuleDefault||(Object.create?function(o,w){Object.defineProperty(o,"default",{enumerable:!0,value:w})}:function(o,w){o.default=w}),M=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var w={};if(null!=o)for(var S in o)"default"!==S&&Object.prototype.hasOwnProperty.call(o,S)&&B(w,o,S);return I(w,o),w};Object.defineProperty(k,"__esModule",{value:!0}),k.EIP712Verifier__factory=k.proxy=void 0,k.proxy=M(x(22139));var P=x(17576);Object.defineProperty(k,"EIP712Verifier__factory",{enumerable:!0,get:function(){return P.EIP712Verifier__factory}})},70941:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.EIP712Proxy__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"string",name:"name",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"DeadlineExpired",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[],name:"UsedSignature",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttester",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getEAS",outputs:[{internalType:"contract IEAS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"}],M="0x61016060409080825234620003505762002239803803809162000023828562000355565b83398101918082840312620003505781516001600160a01b03811693909190848303620003505760208481015190946001600160401b03919082821162000350570194601f838188011215620003505786518381116200031657855197601f199562000096838501881686018b62000355565b828a528483830101116200035057839060005b8381106200033b575050600091890101528451858101908082108583111762000316578391875260038152019662302e3160e81b8852600381518483012098208860e05261010099818b524660a052875191858301907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9b8c83528a85015260608401524660808401523060a084015260a0835260c0830192808410888511176200031657838a525190206080523060c052610120998a52156200032c575061014096875280519384116200031657600054926001938481811c911680156200030b575b82821014620002f557838111620002aa575b50809285116001146200024057508394509083929160009462000234575b50501b916000199060031b1c1916176000555b5191611ebf93846200037a8539608051846113d7015260a051846114a3015260c051846113a8015260e051846114260152518361144c015251826114030152518181816102a5015281816104870152818161094f01528181610acb0152610e590152f35b015192503880620001bd565b9294849081166000805284600020946000905b888383106200028f575050501062000275575b505050811b01600055620001d0565b015160001960f88460031b161c1916905538808062000266565b85870151885590960195948501948793509081019062000253565b60008052816000208480880160051c820192848910620002eb575b0160051c019085905b828110620002de5750506200019f565b60008155018590620002ce565b92508192620002c5565b634e487b7160e01b600052602260045260246000fd5b90607f16906200018d565b634e487b7160e01b600052604160045260246000fd5b6341bc07ff60e11b8152600490fd5b8181018301518b8201840152859201620000a9565b600080fd5b601f909101601f19168101906001600160401b03821190821017620003165760405256fe6080604052600436101561001257600080fd5b6000803560e01c80630eabf66014610d9957806310d736d514610d3b57806312b11a1714610ce257806317d7de7c14610b815780633c0427151461097357806365c40b9c146109045780639541152514610369578063a6d4dbc7146101b2578063b83010d314610159578063ed24911d146101185763ffa1ad741461009657600080fd5b3461011557807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610115576101116040516100d3816112e8565b600381527f302e310000000000000000000000000000000000000000000000000000000000602082015260405191829160208352602083019061125a565b0390f35b80fd5b503461011557807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610115576020610151611391565b604051908152f35b503461011557807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101155760206040517f96bdbea8fa280f8a0d0835587e1fbb1470e81d05c44514158443340cea40a05d8152f35b506101007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610115576040516101ea8161129d565b6004358082526101f936611843565b602083015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9c3601126103645760405161023481611318565b60643560ff81168103610364578152608435602082015260a4356040820152604083015260c43573ffffffffffffffffffffffffffffffffffffffff90818116810361036457606084015260e43567ffffffffffffffff8116810361036457836102a391608087960152611c91565b7f00000000000000000000000000000000000000000000000000000000000000001690604051906102d3826112e8565b81526102de36611843565b60208201908152823b1561035f576064849260209460405195869485937f4692626700000000000000000000000000000000000000000000000000000000855251600485015251805160248501520151604483015234905af18015610354576103445750f35b61034d90611304565b6101155780f35b6040513d84823e3d90fd5b505050fd5b600080fd5b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101155767ffffffffffffffff600435818111610900576103b5903690600401611206565b6103be816116e6565b906103cc6040519283611350565b8082527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06103f9826116e6565b01855b8181106108e9575050845b81811061070057506040517f44adc90e0000000000000000000000000000000000000000000000000000000081526024810190602060048201528351809252604481016005926020604482861b85010196019189905b82821061063b575050505086818073ffffffffffffffffffffffffffffffffffffffff96038134887f0000000000000000000000000000000000000000000000000000000000000000165af195861561063057879661059b575b5050508490855b81811061050b578587604051918291602083016020845282518091526020604085019301915b8181106104f2575050500390f35b82518452859450602093840193909201916001016104e4565b610516818387611718565b6105236020820182611787565b905060608992015b8982841061053f57505050506001016104be565b8192939661054e6040936116c5565b610558828d61182f565b518352896001948594856020522091167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790550195019091909161052b565b90919295503d8088843e6105af8184611350565b82019160208184031261062857805191821161062857019181601f8401121561062c5782519260206105e0856116e6565b946105ee6040519687611350565b808652818601931b82010192831161062857602001905b82821061061857505050923880806104b7565b8151815260209182019101610605565b8780fd5b8680fd5b6040513d89823e3d90fd5b909192967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc8582030182528a8851916020604082019380518352015192604060208301528351809152606091602083820193838c1b8301019501935b8281106106b757505050505060208060019299019201920190929161045d565b90919293946020806106f3837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08760019603018952895161165b565b9701950193929101610697565b61070b818386611718565b6107186020820182611787565b90811580156108d1575b6108a7576080830135895b8381106107d057505060405192610743846112e8565b35835261074f826116e6565b9161075d6040519384611350565b80835260051b8101602083013682116107cc5782905b8282106107a35750505050602082015260019190610791828661182f565b5261079c818561182f565b5001610407565b81358b81116107c8576020916107bd8392369088016114ff565b815201910190610773565b8c80fd5b8a80fd5b6107df8160051b840184611628565b906107ed60408701876117db565b82939193101561087a57610803606088016116c5565b908c851685036108765773ffffffffffffffffffffffffffffffffffffffff610870926108586001966108476040519561083c8761129d565b8d35875236906114ff565b6020860152369060608802016115ea565b60408401521660608201528c85166080820152611889565b0161072d565b8d80fd5b60248d7f4e487b710000000000000000000000000000000000000000000000000000000081526032600452fd5b60046040517f947d5a84000000000000000000000000000000000000000000000000000000008152fd5b506108df60408401846117db565b9050821415610722565b6020906108f46116fe565b828287010152016103fc565b8280fd5b503461011557807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261011557602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b506020907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9082823601126101155760043567ffffffffffffffff8082116109005760e08260040194833603011261090057604051936109d28561129d565b80359485815260248401928335908111610b7d5791610a40610a5b9492610a02610a4595600436918a01016114ff565b8a820152610a1336604489016115ea565b6040820152610a3660c460a4890198610a2b8a6114c9565b6060850152016114ea565b6080820152611889565b611628565b60405194610a52866112e8565b855236906114ff565b92848101938452610aac6040519485927ff17325e70000000000000000000000000000000000000000000000000000000084528760048501525160248401525160406044840152606483019061165b565b0390848473ffffffffffffffffffffffffffffffffffffffff938134867f0000000000000000000000000000000000000000000000000000000000000000165af1938415610b72578394610b41575b50610b076040916116c5565b92848152600186522091167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055604051908152f35b9093508481813d8311610b6b575b610b598183611350565b81010312610900575192610b07610afb565b503d610b4f565b6040513d85823e3d90fd5b8580fd5b503461011557807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610115576040519080805491600183811c92818516948515610cd8575b6020958686108114610cab57858852879493929187908215610c6a575050600114610c11575b5050610bfd92500383611350565b61011160405192828493845283019061125a565b908592508180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b858310610c52575050610bfd93508201013880610bef565b80548389018501528794508693909201918101610c3a565b91509350610bfd9592507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091501682840152151560051b8201013880610bef565b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526022600452fd5b93607f1693610bc9565b503461011557807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101155760206040517f4120d3b28306666b714826ad7cb70744d9658ad3e6cd873411bedadcf55afda78152f35b50346101155760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101155773ffffffffffffffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101155760043567ffffffffffffffff811161120257610de4903690600401611206565b90610dee826116e6565b91610dfc6040519384611350565b8083527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0610e29826116e6565b01845b8181106111eb57505090835b828110610f975750505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016803b15610900579082906040519283917f4cb7e9e5000000000000000000000000000000000000000000000000000000008352602483016020600485015281518091526044840190602060448260051b87010193019186905b828210610f005750505050828091039134905af1801561035457610ef4575080f35b610efd90611304565b80f35b9295847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc929593969850030182528451602060608160408501938051865201519360408382015284518094520192019089905b808210610f755750505060208060019296019201920192879593879593610ed2565b9091926020604060019282875180518352015183820152019401920190610f53565b610fa5818484959794611718565b9160a0833603126101155760405193610fbd8561129d565b83358552602084013567ffffffffffffffff8111610900578401601f943686830112156111b2578135610fef816116e6565b92610ffd6040519485611350565b81845260208085019260061b8201019036821161062c57602001915b8183106111ba5750505060208701918252604081013567ffffffffffffffff81116111b6578101953690870112156111b257853595611057876116e6565b966110656040519889611350565b80885260206060818a0192028301019136831161062c57602001905b8282106111985750505060806110ae918760408a01526110a3606082016114c9565b60608a0152016114ea565b608087015251938451801591821561118c575b50506108a757815b845181101561114f57806111496110e26001938861182f565b518851906110f48460408c015161182f565b5173ffffffffffffffffffffffffffffffffffffffff60608c0151169067ffffffffffffffff60808d015116926040519461112e8661129d565b85526020850152604084015260608301526080820152611c91565b016110c9565b5093516040519196936001939291611166836112e8565b82526020820152611177828761182f565b52611182818661182f565b5001919091610e38565b511415905038806110c1565b60206060916111a736856115ea565b815201910190611081565b8380fd5b8480fd5b60408336031261062c57602060409182516111d4816112e8565b853581528286013583820152815201920191611019565b6020906111f66116fe565b82828801015201610e2c565b5080fd5b9181601f840112156103645782359167ffffffffffffffff8311610364576020808501948460051b01011161036457565b60005b83811061124a5750506000910152565b818101518382015260200161123a565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209361129681518092818752878088019101611237565b0116010190565b60a0810190811067ffffffffffffffff8211176112b957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff8211176112b957604052565b67ffffffffffffffff81116112b957604052565b6060810190811067ffffffffffffffff8211176112b957604052565b6080810190811067ffffffffffffffff8211176112b957604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176112b957604052565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163014806114a0575b156113f9577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f000000000000000000000000000000000000000000000000000000000000000082527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff8211176112b95760405251902090565b507f000000000000000000000000000000000000000000000000000000000000000046146113d0565b359073ffffffffffffffffffffffffffffffffffffffff8216820361036457565b359067ffffffffffffffff8216820361036457565b919060c083820312610364576040519067ffffffffffffffff60c08301818111848210176112b9576040528294611535816114c9565b84526020926115458483016114ea565b848601526040820135801515810361036457604086015260608201356060860152608082013583811161036457820181601f820112156103645780359384116112b957604051916115bd867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8801160184611350565b84835285858301011161036457848460a09695879660009401838601378301015260808501520135910152565b91908260609103126103645760405161160281611318565b8092803560ff811681036103645760409182918452602081013560208501520135910152565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4181360301821215610364570190565b9073ffffffffffffffffffffffffffffffffffffffff825116815267ffffffffffffffff60208301511660208201526040820151151560408201526060820151606082015260a0806116bc608085015160c0608086015260c085019061125a565b93015191015290565b3573ffffffffffffffffffffffffffffffffffffffff811681036103645790565b67ffffffffffffffff81116112b95760051b60200190565b6040519061170b826112e8565b6060602083600081520152565b91908110156117585760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6181360301821215610364570190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610364570180359067ffffffffffffffff821161036457602001918160051b3603831361036457565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610364570180359067ffffffffffffffff82116103645760200191606082023603831361036457565b80518210156117585760209160051b010190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc6040910112610364576040519061187a826112e8565b60243582526044356020830152565b608081019067ffffffffffffffff8083511680151590816119fd575b506119d35760208201519060409384840151936118c185611dc2565b80519173ffffffffffffffffffffffffffffffffffffffff9485815116918560208301511691898101511515876080606084015193015160208151910120935116938b519560208701987f4120d3b28306666b714826ad7cb70744d9658ad3e6cd873411bedadcf55afda78a528d8801526060870152608086015260a085015260c084015260e083015261010090818301528152610120810193818510908511176112b95761199d956119806060946119959388978b52519020611c3f565b9060ff81511689602083015192015192611ba3565b959095611a0a565b0151169116036119aa5750565b600490517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f1ab7da6b000000000000000000000000000000000000000000000000000000008152fd5b90508142161015386118a5565b6005811015611b745780611a1b5750565b60018103611a815760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b60028103611ae75760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b600314611af057565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311611c335791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15611c2657815173ffffffffffffffffffffffffffffffffffffffff811615611c20579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b611c47611391565b906040519060208201927f190100000000000000000000000000000000000000000000000000000000000084526022830152604282015260428152611c8b81611334565b51902090565b608081019067ffffffffffffffff90818351168015159081611db5575b506119d3576020810151918251600052600160205273ffffffffffffffffffffffffffffffffffffffff92604094848660002054168015611d8c573303611d63579261199585949361198060609461199d98968a86015193611d0f85611dc2565b865192519151168b519160208301937f96bdbea8fa280f8a0d0835587e1fbb1470e81d05c44514158443340cea40a05d85528d84015288830152608082015260808152611d5b8161129d565b519020611c3f565b600486517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b600487517fc5723b51000000000000000000000000000000000000000000000000000000008152fd5b9050824216101538611cae565b80519060406020820151910151604051917fff00000000000000000000000000000000000000000000000000000000000000602084019460f81b1684526021830152604182015260418152611e1681611334565b60ff6040516020818451611e2b818389611237565b810160028152030190205416611e8857611e5391602091604051938492839251928391611237565b8101600281520301902060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b60046040517fcce9a824000000000000000000000000000000000000000000000000000000008152fdfea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.EIP712Proxy__factory=o},15980:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.PermissionedEIP712Proxy__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"string",name:"name",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"DeadlineExpired",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[],name:"UsedSignature",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttester",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getEAS",outputs:[{internalType:"contract IEAS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],M="0x6101606040908082523462000388576200255a80380380916200002382856200038d565b83398101908281830312620003885780519060018060a01b03928383169485840362000388576020838101516001600160401b039491939185821162000388570193601f93828587011215620003885785518281116200034e57845196601f199462000096838901871685018a6200038d565b8289528383830101116200038857829060005b8381106200037357505060009188010152835194848601868110848211176200034e57855281600396878152019662302e3160e81b88528681518483012098208860e0526101009b818d524660a052875191858301907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9b8c83528a85015260608401524660808401523060a084015260a0835260c0830192808410888511176200034e57838a525190206080523060c052610120998a521562000364575061014098895280519384116200034e57600054926001938481811c9116801562000343575b828210146200032d57838111620002e2575b5080928511600114620002795750839450908392916000946200026d575b50501b9160001990851b1c1916176000555b8154336001600160a01b031982168117909355905194167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36121a89384620003b28539608051846116e1015260a051846117ad015260c051846116b2015260e05184611730015251836117560152518261170d01525181818161040b015281816105f001528181610ba901528181610d2d01526110c30152f35b015192503880620001bd565b9294849081166000805284600020946000905b88838310620002c75750505010620002ae575b505050811b01600055620001cf565b015160001983871b60f8161c191690553880806200029f565b8587015188559096019594850194879350908101906200028c565b60008052816000208480880160051c82019284891062000323575b0160051c019085905b828110620003165750506200019f565b6000815501859062000306565b92508192620002fd565b634e487b7160e01b600052602260045260246000fd5b90607f16906200018d565b634e487b7160e01b600052604160045260246000fd5b6341bc07ff60e11b8152600490fd5b8181018301518a8201840152849201620000a9565b600080fd5b601f909101601f19168101906001600160401b038211908210176200034e5760405256fe6080604052600436101561001257600080fd5b6000803560e01c80630eabf66014610ffb57806310d736d514610f9d57806312b11a1714610f4457806317d7de7c14610de35780633c04271514610bcd57806365c40b9c14610b5e578063715018a614610abf5780638da5cb5b14610a6d57806395411525146104ca578063a6d4dbc714610310578063b83010d3146102b7578063ed24911d14610276578063f2fde38b146101395763ffa1ad74146100b757600080fd5b3461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610136576101326040516100f481611573565b600381527f302e31000000000000000000000000000000000000000000000000000000000060208201526040519182916020835260208301906114c4565b0390f35b80fd5b50346101365760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365760043573ffffffffffffffffffffffffffffffffffffffff8082168092036102715761019361161c565b81156101ed57600354827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b600080fd5b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365760206102af61169b565b604051908152f35b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365760206040517f96bdbea8fa280f8a0d0835587e1fbb1470e81d05c44514158443340cea40a05d8152f35b506101007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365761034461161c565b60405161035081611528565b60043580825261035f36612024565b602083015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9c3601126102715760405161039a816115a3565b60643560ff81168103610271578152608435602082015260a4356040820152604083015260c43573ffffffffffffffffffffffffffffffffffffffff90818116810361027157606084015260e43567ffffffffffffffff8116810361027157836104099160808796015261206a565b7f000000000000000000000000000000000000000000000000000000000000000016906040519061043982611573565b815261044436612024565b60208201908152823b156104c5576064849260209460405195869485937f4692626700000000000000000000000000000000000000000000000000000000855251600485015251805160248501520151604483015234905af180156104ba576104aa5750f35b6104b39061158f565b6101365780f35b6040513d84823e3d90fd5b505050fd5b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365767ffffffffffffffff600435818111610a6957610516903690600401611470565b61051e61161c565b61052781611ec7565b9061053560405192836115db565b8082527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061056282611ec7565b01855b818110610a52575050845b81811061086957506040517f44adc90e0000000000000000000000000000000000000000000000000000000081526024810190602060048201528351809252604481016005926020604482861b85010196019189905b8282106107a4575050505086818073ffffffffffffffffffffffffffffffffffffffff96038134887f0000000000000000000000000000000000000000000000000000000000000000165af1958615610799578796610704575b5050508490855b818110610674578587604051918291602083016020845282518091526020604085019301915b81811061065b575050500390f35b825184528594506020938401939092019160010161064d565b61067f818387611ef9565b61068c6020820182611f68565b905060608992015b898284106106a85750505050600101610627565b819293966106b76040936119ae565b6106c1828d612010565b518352896001948594856020522091167fffffffffffffffffffffffff000000000000000000000000000000000000000082541617905501950190919091610694565b90919295503d8088843e61071881846115db565b82019160208184031261079157805191821161079157019181601f8401121561079557825192602061074985611ec7565b9461075760405196876115db565b808652818601931b82010192831161079157602001905b8282106107815750505092388080610620565b815181526020918201910161076e565b8780fd5b8680fd5b6040513d89823e3d90fd5b909192967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc8582030182528a8851916020604082019380518352015192604060208301528351809152606091602083820193838c1b8301019501935b8281106108205750505050506020806001929901920192019092916105c6565b909192939460208061085c837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa087600196030189528951611944565b9701950193929101610800565b610874818386611ef9565b6108816020820182611f68565b9081158015610a3a575b610a10576080830135895b838110610939575050604051926108ac84611573565b3583526108b882611ec7565b916108c660405193846115db565b80835260051b8101602083013682116109355782905b82821061090c57505050506020820152600191906108fa8286612010565b526109058185612010565b5001610570565b81358b8111610931576020916109268392369088016117e8565b8152019101906108dc565b8c80fd5b8a80fd5b6109488160051b840184611911565b906109566040870187611fbc565b8293919310156109e35761096c606088016119ae565b908c851685036109df5773ffffffffffffffffffffffffffffffffffffffff6109d9926109c16001966109b0604051956109a587611528565b8d35875236906117e8565b6020860152369060608802016118d3565b60408401521660608201528c851660808201526119cf565b01610896565b8d80fd5b60248d7f4e487b710000000000000000000000000000000000000000000000000000000081526032600452fd5b60046040517f947d5a84000000000000000000000000000000000000000000000000000000008152fd5b50610a486040840184611fbc565b905082141561088b565b602090610a5d611edf565b82828701015201610565565b8280fd5b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261013657602073ffffffffffffffffffffffffffffffffffffffff60035416604051908152f35b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261013657610af661161c565b600073ffffffffffffffffffffffffffffffffffffffff6003547fffffffffffffffffffffffff00000000000000000000000000000000000000008116600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261013657602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b506020907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9082823601126101365760043567ffffffffffffffff808211610a695760e082600401948336030112610a6957610c2761161c565b60405193610c3485611528565b80359485815260248401928335908111610ddf5791610ca2610cbd9492610c64610ca795600436918a01016117e8565b8a820152610c7536604489016118d3565b6040820152610c9860c460a4890198610c8d8a611507565b6060850152016117d3565b60808201526119cf565b611911565b60405194610cb486611573565b855236906117e8565b92848101938452610d0e6040519485927ff17325e700000000000000000000000000000000000000000000000000000000845287600485015251602484015251604060448401526064830190611944565b0390848473ffffffffffffffffffffffffffffffffffffffff938134867f0000000000000000000000000000000000000000000000000000000000000000165af1938415610dd4578394610da3575b50610d696040916119ae565b92848152600186522091167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055604051908152f35b9093508481813d8311610dcd575b610dbb81836115db565b81010312610a69575192610d69610d5d565b503d610db1565b6040513d85823e3d90fd5b8580fd5b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610136576040519080805491600183811c92818516948515610f3a575b6020958686108114610f0d57858852879493929187908215610ecc575050600114610e73575b5050610e5f925003836115db565b6101326040519282849384528301906114c4565b908592508180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b858310610eb4575050610e5f93508201013880610e51565b80548389018501528794508693909201918101610e9c565b91509350610e5f9592507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091501682840152151560051b8201013880610e51565b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526022600452fd5b93607f1693610e2b565b503461013657807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365760206040517f4120d3b28306666b714826ad7cb70744d9658ad3e6cd873411bedadcf55afda78152f35b50346101365760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365773ffffffffffffffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101365760043567ffffffffffffffff811161146c57611046903690600401611470565b9061104f61161c565b61105882611ec7565b9161106660405193846115db565b8083527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061109382611ec7565b01845b81811061145557505090835b8281106112015750505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016803b15610a69579082906040519283917f4cb7e9e5000000000000000000000000000000000000000000000000000000008352602483016020600485015281518091526044840190602060448260051b87010193019186905b82821061116a5750505050828091039134905af180156104ba5761115e575080f35b6111679061158f565b80f35b9295847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc929593969850030182528451602060608160408501938051865201519360408382015284518094520192019089905b8082106111df575050506020806001929601920192019287959387959361113c565b90919260206040600192828751805183520151838201520194019201906111bd565b61120f818484959794611ef9565b9160a083360312610136576040519361122785611528565b83358552602084013567ffffffffffffffff8111610a69578401601f9436868301121561141c57813561125981611ec7565b9261126760405194856115db565b81845260208085019260061b8201019036821161079557602001915b8183106114245750505060208701918252604081013567ffffffffffffffff81116114205781019536908701121561141c578535956112c187611ec7565b966112cf60405198896115db565b80885260206060818a0192028301019136831161079557602001905b828210611402575050506080611318918760408a015261130d60608201611507565b60608a0152016117d3565b60808701525193845180159182156113f6575b5050610a1057815b84518110156113b957806113b361134c60019388612010565b5188519061135e8460408c0151612010565b5173ffffffffffffffffffffffffffffffffffffffff60608c0151169067ffffffffffffffff60808d015116926040519461139886611528565b8552602085015260408401526060830152608082015261206a565b01611333565b50935160405191969360019392916113d083611573565b825260208201526113e18287612010565b526113ec8186612010565b50019190916110a2565b5114159050388061132b565b602060609161141136856118d3565b8152019101906112eb565b8380fd5b8480fd5b604083360312610795576020604091825161143e81611573565b853581528286013583820152815201920191611283565b602090611460611edf565b82828801015201611096565b5080fd5b9181601f840112156102715782359167ffffffffffffffff8311610271576020808501948460051b01011161027157565b60005b8381106114b45750506000910152565b81810151838201526020016114a4565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f602093611500815180928187528780880191016114a1565b0116010190565b359073ffffffffffffffffffffffffffffffffffffffff8216820361027157565b60a0810190811067ffffffffffffffff82111761154457604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff82111761154457604052565b67ffffffffffffffff811161154457604052565b6060810190811067ffffffffffffffff82111761154457604052565b6080810190811067ffffffffffffffff82111761154457604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761154457604052565b73ffffffffffffffffffffffffffffffffffffffff60035416330361163d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163014806117aa575b15611703577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f000000000000000000000000000000000000000000000000000000000000000082527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff8211176115445760405251902090565b507f000000000000000000000000000000000000000000000000000000000000000046146116da565b359067ffffffffffffffff8216820361027157565b919060c083820312610271576040519067ffffffffffffffff60c083018181118482101761154457604052829461181e81611507565b845260209261182e8483016117d3565b848601526040820135801515810361027157604086015260608201356060860152608082013583811161027157820181601f8201121561027157803593841161154457604051916118a6867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f88011601846115db565b84835285858301011161027157848460a09695879660009401838601378301015260808501520135910152565b9190826060910312610271576040516118eb816115a3565b8092803560ff811681036102715760409182918452602081013560208501520135910152565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4181360301821215610271570190565b9073ffffffffffffffffffffffffffffffffffffffff825116815267ffffffffffffffff60208301511660208201526040820151151560408201526060820151606082015260a0806119a5608085015160c0608086015260c08501906114c4565b93015191015290565b3573ffffffffffffffffffffffffffffffffffffffff811681036102715790565b608081019067ffffffffffffffff808351168015159081611b43575b50611b19576020820151906040938484015193611a0785611dd7565b80519173ffffffffffffffffffffffffffffffffffffffff9485815116918560208301511691898101511515876080606084015193015160208151910120935116938b519560208701987f4120d3b28306666b714826ad7cb70744d9658ad3e6cd873411bedadcf55afda78a528d8801526060870152608086015260a085015260c084015260e0830152610100908183015281526101208101938185109085111761154457611ae395611ac6606094611adb9388978b52519020611d85565b9060ff81511689602083015192015192611ce9565b959095611b50565b015116911603611af05750565b600490517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b60046040517f1ab7da6b000000000000000000000000000000000000000000000000000000008152fd5b90508142161015386119eb565b6005811015611cba5780611b615750565b60018103611bc75760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b60028103611c2d5760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b600314611c3657565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311611d795791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15611d6c57815173ffffffffffffffffffffffffffffffffffffffff811615611d66579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b611d8d61169b565b906040519060208201927f190100000000000000000000000000000000000000000000000000000000000084526022830152604282015260428152611dd1816115bf565b51902090565b80519060406020820151910151604051917fff00000000000000000000000000000000000000000000000000000000000000602084019460f81b1684526021830152604182015260418152611e2b816115bf565b60ff6040516020818451611e408183896114a1565b810160028152030190205416611e9d57611e68916020916040519384928392519283916114a1565b8101600281520301902060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b60046040517fcce9a824000000000000000000000000000000000000000000000000000000008152fd5b67ffffffffffffffff81116115445760051b60200190565b60405190611eec82611573565b6060602083600081520152565b9190811015611f395760051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6181360301821215610271570190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610271570180359067ffffffffffffffff821161027157602001918160051b3603831361027157565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610271570180359067ffffffffffffffff82116102715760200191606082023603831361027157565b8051821015611f395760209160051b010190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc6040910112610271576040519061205b82611573565b60243582526044356020830152565b608081019067ffffffffffffffff9081835116801515908161218e575b50611b19576020810151918251600052600160205273ffffffffffffffffffffffffffffffffffffffff9260409484866000205416801561216557330361213c5792611adb859493611ac6606094611ae398968a860151936120e885611dd7565b865192519151168b519160208301937f96bdbea8fa280f8a0d0835587e1fbb1470e81d05c44514158443340cea40a05d85528d8401528883015260808201526080815261213481611528565b519020611d85565b600486517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b600487517fc5723b51000000000000000000000000000000000000000000000000000000008152fd5b905082421610153861208756fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.PermissionedEIP712Proxy__factory=o},35124:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.PermissionedEIP712Proxy__factory=void 0;var B=x(15980);Object.defineProperty(k,"PermissionedEIP712Proxy__factory",{enumerable:!0,get:function(){return B.PermissionedEIP712Proxy__factory}})},22139:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(o,w,S,D){void 0===D&&(D=S);var A=Object.getOwnPropertyDescriptor(w,S);(!A||("get"in A?!w.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return w[S]}}),Object.defineProperty(o,D,A)}:function(o,w,S,D){void 0===D&&(D=S),o[D]=w[S]}),I=this&&this.__setModuleDefault||(Object.create?function(o,w){Object.defineProperty(o,"default",{enumerable:!0,value:w})}:function(o,w){o.default=w}),M=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var w={};if(null!=o)for(var S in o)"default"!==S&&Object.prototype.hasOwnProperty.call(o,S)&&B(w,o,S);return I(w,o),w};Object.defineProperty(k,"__esModule",{value:!0}),k.EIP712Proxy__factory=k.examples=void 0,k.examples=M(x(35124));var P=x(70941);Object.defineProperty(k,"EIP712Proxy__factory",{enumerable:!0,get:function(){return P.EIP712Proxy__factory}})},55719:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(D,A,g,p){void 0===p&&(p=g);var b=Object.getOwnPropertyDescriptor(A,g);(!b||("get"in b?!A.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return A[g]}}),Object.defineProperty(D,p,b)}:function(D,A,g,p){void 0===p&&(p=g),D[p]=A[g]}),I=this&&this.__setModuleDefault||(Object.create?function(D,A){Object.defineProperty(D,"default",{enumerable:!0,value:A})}:function(D,A){D.default=A}),M=this&&this.__importStar||function(D){if(D&&D.__esModule)return D;var A={};if(null!=D)for(var g in D)"default"!==g&&Object.prototype.hasOwnProperty.call(D,g)&&B(A,D,g);return I(A,D),A};Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaRegistry__factory=k.ISchemaRegistry__factory=k.IEAS__factory=k.EAS__factory=k.resolver=k.eip712=void 0,k.eip712=M(x(61418)),k.resolver=M(x(45342));var P=x(94580);Object.defineProperty(k,"EAS__factory",{enumerable:!0,get:function(){return P.EAS__factory}});var o=x(66899);Object.defineProperty(k,"IEAS__factory",{enumerable:!0,get:function(){return o.IEAS__factory}});var w=x(75826);Object.defineProperty(k,"ISchemaRegistry__factory",{enumerable:!0,get:function(){return w.ISchemaRegistry__factory}});var S=x(46867);Object.defineProperty(k,"SchemaRegistry__factory",{enumerable:!0,get:function(){return S.SchemaRegistry__factory}})},64080:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ISchemaResolver__factory=void 0;const B=x(92135),I=[{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.ISchemaResolver__factory=M},10245:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaResolver__factory=void 0;const B=x(92135),I=[{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}];class M{static createInterface(){return new B.utils.Interface(I)}static connect(o,w){return new B.Contract(o,I,w)}}Ar(M,"abi",I),k.SchemaResolver__factory=M},43142:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttestationResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"OutOfBounds",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"start",type:"uint256"}],name:"toBytes32",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60a03461008957601f61088d38819003918201601f19168301916001600160401b0383118484101761008e5780849260209460405283398101031261008957516001600160a01b0381168082036100895715610077576080526040516107e890816100a5823960805181818161063401526107670152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001e575b361561001957600080fd5b6104a5565b60003560e01c806388e5b2d91461008e57806391db0b7e1461008957806399dd9bd714610084578063ce46e0461461007f578063e49617e11461007a578063e60c3505146100755763ffa1ad740361000e576103d6565b6103bb565b61039e565b610313565b61026b565b610156565b60206100ad61009c366100ed565b926100a892919261061d565b6105da565b6040519015158152f35b9181601f840112156100e85782359167ffffffffffffffff83116100e8576020808501948460051b0101116100e857565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100e85767ffffffffffffffff916004358381116100e85782610138916004016100b7565b939093926024359182116100e857610152916004016100b7565b9091565b60206100ad610164366100ed565b9261017092919261061d565b610553565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff8211176101c057604052565b610175565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176101c057604052565b92919267ffffffffffffffff82116101c0576040519161024e60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601846101c5565b8294818452818301116100e8578281602093846000960137010152565b346100e85760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100e85760043567ffffffffffffffff81116100e857366023820112156100e8576102cb903690602481600401359101610206565b60243590805160208301116102e95701602090810151604051908152f35b60046040517fb4120f14000000000000000000000000000000000000000000000000000000008152fd5b346100e85760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100e857602060405160008152f35b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020828201126100e8576004359167ffffffffffffffff83116100e85782610140920301126100e85760040190565b6103a73661034d565b506103b061061d565b602060405160018152f35b60206100ad6103c93661034d565b6103d161061d565b6106aa565b346100e85760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100e8576040805190610413826101a4565b6004825260207f302e323700000000000000000000000000000000000000000000000000000000818401528151928184928352815191828285015260005b83811061048f575050600083830185015250601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b8181018301518782018701528694508201610451565b60046040517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b919081101561050e5760051b0190565b6104cf565b919081101561050e5760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1813603018212156100e8570190565b909192349160009182935b8585106105715750505050505050600190565b61057c8583896104fe565b35908082116105b0576105936103d1878987610513565b156105a557906001910394019361055e565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b92600090345b8383106105f257505050505050600190565b6105fd8383876104fe565b358181116105b05760019161061385878a610513565b50039201916105e0565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361065c57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b908160209103126100e8575180151581036100e85790565b6040513d6000823e3d90fd5b610120810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1813603018212156100e8570180359067ffffffffffffffff82116100e8576020019080360382136100e85761071661071161074e936020933691610206565b6107cb565b604051809381927fe30bb563000000000000000000000000000000000000000000000000000000008352600483019190602083019252565b038173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa9081156107c65760009161079b575090565b6107bc915060203d81116107bf575b6107b481836101c5565b810190610686565b90565b503d6107aa565b61069e565b60208151106102e957602001519056fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D){return super.deploy(S,D||{})}getDeployTransaction(S,D){return super.getDeployTransaction(S,D||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.AttestationResolver__factory=o},25586:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttesterResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"address",name:"targetAttester",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60c03461009e57601f61062738819003918201601f19168301916001600160401b038311848410176100a357808492604094855283398101031261009e5780516001600160a01b03918282169081830361009e5760200151928316830361009e571561008c5760805260a05260405161056d90816100ba8239608051816104c5015260a0518161053c0152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610042575b361561001c57600080fd5b517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b6000803560e01c806388e5b2d91461023657806391db0b7e14610216578063ce46e046146101d9578063e49617e1146101bd578063e60c3505146101985763ffa1ad74146100905750610011565b913461019457827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101945781519082820182811067ffffffffffffffff82111761016857835281526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061015257505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b8181018301518882018801528795508201610116565b6024856041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8280fd5b6020836101b46101a736610357565b6101af6104ae565b610517565b90519015158152f35b6020836101c936610357565b506101d26104ae565b5160018152f35b50903461021257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102125751908152602090f35b5080fd5b6020836101b4610225366102ee565b926102319291926104ae565b610427565b5091610241366102ee565b610250969392969491946104ae565b345b878510610263576020875160018152f35b61026e8583886103a8565b35908082116102905790600191610286878b886103e7565b5003940193610252565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b9181601f840112156102e95782359167ffffffffffffffff83116102e9576020808501948460051b0101116102e957565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102e95767ffffffffffffffff916004358381116102e95782610339916004016102b8565b939093926024359182116102e957610353916004016102b8565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020828201126102e9576004359167ffffffffffffffff83116102e95782610140920301126102e95760040190565b91908110156103b85760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103b85760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1813603018212156102e9570190565b909192349160009182935b8585106104455750505050505050600190565b6104508583896103a8565b3590808211610484576104676101af8789876103e7565b15610479579060019103940193610432565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036104ed57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b60e0013573ffffffffffffffffffffffffffffffffffffffff8082168092036102e9577f000000000000000000000000000000000000000000000000000000000000000016149056fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.AttesterResolver__factory=o},10197:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.DataResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60a03461008257601f6106bc38819003918201601f19168301916001600160401b038311848410176100875780849260209460405283398101031261008257516001600160a01b03811680820361008257156100705760805260405161061e908161009e8239608051816104c50152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610042575b361561001c57600080fd5b517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b6000803560e01c806388e5b2d91461023657806391db0b7e14610216578063ce46e046146101d9578063e49617e1146101bd578063e60c3505146101985763ffa1ad74146100905750610011565b913461019457827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101945781519082820182811067ffffffffffffffff82111761016857835281526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061015257505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b8181018301518882018801528795508201610116565b6024856041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8280fd5b6020836101b46101a736610357565b6101af6104ae565b610568565b90519015158152f35b6020836101c936610357565b506101d26104ae565b5160018152f35b50903461021257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102125751908152602090f35b5080fd5b6020836101b4610225366102ee565b926102319291926104ae565b610427565b5091610241366102ee565b610250969392969491946104ae565b345b878510610263576020875160018152f35b61026e8583886103a8565b35908082116102905790600191610286878b886103e7565b5003940193610252565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b9181601f840112156102e95782359167ffffffffffffffff83116102e9576020808501948460051b0101116102e957565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102e95767ffffffffffffffff916004358381116102e95782610339916004016102b8565b939093926024359182116102e957610353916004016102b8565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020828201126102e9576004359167ffffffffffffffff83116102e95782610140920301126102e95760040190565b91908110156103b85760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103b85760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1813603018212156102e9570190565b909192349160009182935b8585106104455750505050505050600190565b6104508583896103a8565b3590808211610484576104676101af8789876103e7565b15610479579060019103940193610432565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036104ed57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1813603018212156102e9570180359067ffffffffffffffff82116102e9576020019181360383136102e957565b610120810190600161057a8383610517565b905014918261058857505090565b9091506105958183610517565b919091156103b8577fff0000000000000000000000000000000000000000000000000000000000000080923516159283156105d1575b50505090565b6105dc929350610517565b919091156103b8577f0100000000000000000000000000000000000000000000000000000000000000913516143880806105cb56fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D){return super.deploy(S,D||{})}getDeployTransaction(S,D){return super.getDeployTransaction(S,D||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.DataResolver__factory=o},84659:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ExpirationTimeResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"uint256",name:"validAfter",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60c03461009457601f61061038819003918201601f19168301916001600160401b038311848410176100995780849260409485528339810103126100945780516001600160a01b03811691828203610094576020015191156100825760805260a05260405161056090816100b08239608051816104c5015260a0518161052f0152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610042575b361561001c57600080fd5b517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b6000803560e01c806388e5b2d91461023657806391db0b7e14610216578063ce46e046146101d9578063e49617e1146101bd578063e60c3505146101985763ffa1ad74146100905750610011565b913461019457827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101945781519082820182811067ffffffffffffffff82111761016857835281526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061015257505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b8181018301518882018801528795508201610116565b6024856041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8280fd5b6020836101b46101a736610357565b6101af6104ae565b610517565b90519015158152f35b6020836101c936610357565b506101d26104ae565b5160018152f35b50903461021257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102125751908152602090f35b5080fd5b6020836101b4610225366102ee565b926102319291926104ae565b610427565b5091610241366102ee565b610250969392969491946104ae565b345b878510610263576020875160018152f35b61026e8583886103a8565b35908082116102905790600191610286878b886103e7565b5003940193610252565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b9181601f840112156102e95782359167ffffffffffffffff83116102e9576020808501948460051b0101116102e957565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102e95767ffffffffffffffff916004358381116102e95782610339916004016102b8565b939093926024359182116102e957610353916004016102b8565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020828201126102e9576004359167ffffffffffffffff83116102e95782610140920301126102e95760040190565b91908110156103b85760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103b85760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1813603018212156102e9570190565b909192349160009182935b8585106104455750505050505050600190565b6104508583896103a8565b3590808211610484576104676101af8789876103e7565b15610479579060019103940193610432565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036104ed57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b6060013567ffffffffffffffff81168091036102e9577f000000000000000000000000000000000000000000000000000000000000000011159056fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.ExpirationTimeResolver__factory=o},35316:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.PayingResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"uint256",name:"incentive",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidValue",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60c03461009b57601f6108ab38819003918201601f19168301916001600160401b038311848410176100a057808492604094855283398101031261009b5780516001600160a01b0381169182820361009b576020015191156100895760805260a0526040516107f490816100b782396080518161049a015260a05181818161053b015261058b0152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe604060808152600436101561001d575b50361561001b57600080fd5b005b600090813560e01c806388e5b2d91461021357806391db0b7e146101f3578063ce46e046146101ba578063e49617e11461019c578063e60c3505146101755763ffa1ad741461006c575061000f565b3461017157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261017157805181810181811067ffffffffffffffff821117610144578252600481526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061012e57505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b81810183015188820188015287955082016100f2565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b5080fd5b602082610193610184366102d2565b61018c610483565b349061050d565b90519015158152f35b6020826101936101ab366102d2565b6101b3610483565b3490610589565b503461017157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610171576020905160018152f35b60208261019361020236610269565b9261020e929192610483565b6103a2565b60208261019361022236610269565b9261022e929192610483565b61042d565b9181601f840112156102645782359167ffffffffffffffff8311610264576020808501948460051b01011161026457565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102645767ffffffffffffffff9160043583811161026457826102b491600401610233565b93909392602435918211610264576102ce91600401610233565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc90602082820112610264576004359167ffffffffffffffff83116102645782610140920301126102645760040190565b91908110156103335760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103335760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec181360301821215610264570190565b91926000918291345b8285106103be5750505050505050600190565b6103c9858389610323565b3590808211610403576103e6826103e188878b610362565b61050d565b156103f85790600191039401936103ab565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b91926000918291345b8285106104495750505050505050600190565b610454858389610323565b3590808211610403576104718261046c88878b610362565b610589565b156103f8579060019103940193610436565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036104c257565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b3573ffffffffffffffffffffffffffffffffffffffff811681036102645790565b90610583576000808073ffffffffffffffffffffffffffffffffffffffff61053860e08396016104ec565b167f00000000000000000000000000000000000000000000000000000000000000009082821561057a575bf11561056e57600190565b6040513d6000823e3d90fd5b506108fc610563565b50600090565b7f0000000000000000000000000000000000000000000000000000000000000000908183106107df578183116105c2575b505050600190565b6105e360e073ffffffffffffffffffffffffffffffffffffffff92016104ec565b169082039182116107b0578147106107525760008080809481945af1903d1561074c5767ffffffffffffffff903d82811161071f57604051927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f81601f8501160116840190848210908211176106f257604052825260203d92013e5b1561066e573880806105ba565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b50610661565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50505060009056fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.PayingResolver__factory=o},88305:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.RecipientResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"address",name:"targetRecipient",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60c03461009e57601f61062738819003918201601f19168301916001600160401b038311848410176100a357808492604094855283398101031261009e5780516001600160a01b03918282169081830361009e5760200151928316830361009e571561008c5760805260a05260405161056d90816100ba8239608051816104c5015260a0518161053c0152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610042575b361561001c57600080fd5b517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b6000803560e01c806388e5b2d91461023657806391db0b7e14610216578063ce46e046146101d9578063e49617e1146101bd578063e60c3505146101985763ffa1ad74146100905750610011565b913461019457827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101945781519082820182811067ffffffffffffffff82111761016857835281526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061015257505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b8181018301518882018801528795508201610116565b6024856041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8280fd5b6020836101b46101a736610357565b6101af6104ae565b610517565b90519015158152f35b6020836101c936610357565b506101d26104ae565b5160018152f35b50903461021257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102125751908152602090f35b5080fd5b6020836101b4610225366102ee565b926102319291926104ae565b610427565b5091610241366102ee565b610250969392969491946104ae565b345b878510610263576020875160018152f35b61026e8583886103a8565b35908082116102905790600191610286878b886103e7565b5003940193610252565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b9181601f840112156102e95782359167ffffffffffffffff83116102e9576020808501948460051b0101116102e957565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102e95767ffffffffffffffff916004358381116102e95782610339916004016102b8565b939093926024359182116102e957610353916004016102b8565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020828201126102e9576004359167ffffffffffffffff83116102e95782610140920301126102e95760040190565b91908110156103b85760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103b85760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1813603018212156102e9570190565b909192349160009182935b8585106104455750505050505050600190565b6104508583896103a8565b3590808211610484576104676101af8789876103e7565b15610479579060019103940193610432565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036104ed57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b60c0013573ffffffffffffffffffffffffffffffffffffffff8082168092036102e9577f000000000000000000000000000000000000000000000000000000000000000016149056fea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.RecipientResolver__factory=o},56950:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.RevocationResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bool",name:"status",type:"bool"}],name:"setRevocation",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60a03461008257601f61064438819003918201601f19168301916001600160401b038311848410176100875780849260209460405283398101031261008257516001600160a01b0381168082036100825715610070576080526040516105a6908161009e8239608051816105470152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610042575b361561001c57600080fd5b517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b6000803560e01c806388e5b2d91461030b57806391db0b7e14610289578063ce46e04614610250578063e49617e11461022d578063e60c350514610211578063f545cb66146101a35763ffa1ad741461009b5750610011565b913461019f57827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019f5781519082820182811067ffffffffffffffff82111761017357835281526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061015d57505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b8181018301518882018801528795508201610121565b6024856041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8280fd5b50823461020d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261020d573580151580910361020d5760ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00835416911617815580f35b5080fd5b60208361021d366103d3565b50610226610530565b5160018152f35b60208360ff8461023c366103d3565b50610245610530565b541690519015158152f35b50903461020d57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261020d5751908152602090f35b50916102943661036a565b6102a396939296949194610530565b345b8785106102b6576020875160018152f35b6102c1858388610424565b35908082116102e357906001916102d9878b88610463565b50039401936102a5565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b60208361032b61031a3661036a565b92610326929192610530565b6104a3565b90519015158152f35b9181601f840112156103655782359167ffffffffffffffff8311610365576020808501948460051b01011161036557565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126103655767ffffffffffffffff9160043583811161036557826103b591600401610334565b93909392602435918211610365576103cf91600401610334565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc90602082820112610365576004359167ffffffffffffffff83116103655782610140920301126103655760040190565b91908110156104345760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156104345760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec181360301821215610365570190565b91929034600091829360ff84541615925b8286106104c8575050505050505050600190565b6104d386838a610424565b359080821161050657846104e888868b610463565b506104fa5790600191039501946104b4565b50505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361056f57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fdfea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D){return super.deploy(S,D||{})}getDeployTransaction(S,D){return super.getDeployTransaction(S,D||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.RevocationResolver__factory=o},77506:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.TokenResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"contract IERC20",name:"targetToken",type:"address"},{internalType:"uint256",name:"targetAmount",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60e0346100b357601f61096e38819003918201601f19168301916001600160401b038311848410176100b8578084926060946040528339810103126100b35780516001600160a01b03808216929091908382036100b357602081015192831683036100b3576040015192156100a15760805260a05260c05260405161089f90816100cf8239608051816104e9015260a051816105e3015260c0518161059b0152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610042575b361561001c57600080fd5b517f1574f9f3000000000000000000000000000000000000000000000000000000008152fd5b6000803560e01c806388e5b2d9146101a957806391db0b7e14610189578063ce46e0461461014c578063e49617e114610130578063e60c35051461010b5763ffa1ad74146100905750610011565b91903461010757827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101075761010392508051916100d18361031b565b82527f302e32370000000000000000000000000000000000000000000000000000000060208301525191829182610366565b0390f35b8280fd5b60208361012761011a366102ca565b6101226104d2565b61053b565b90519015158152f35b60208361013c366102ca565b506101456104d2565b5160018152f35b50903461018557817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101855751908152602090f35b5080fd5b60208361012761019836610261565b926101a49291926104d2565b61044b565b50916101b436610261565b6101c3969392969491946104d2565b345b8785106101d6576020875160018152f35b6101e18583886103cc565b359080821161020357906001916101f9878b8861040b565b50039401936101c5565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b9181601f8401121561025c5782359167ffffffffffffffff831161025c576020808501948460051b01011161025c57565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc82011261025c5767ffffffffffffffff9160043583811161025c57826102ac9160040161022b565b9390939260243591821161025c576102c69160040161022b565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9060208282011261025c576004359167ffffffffffffffff831161025c57826101409203011261025c5760040190565b6040810190811067ffffffffffffffff82111761033757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60208082528251818301819052939260005b8581106103b8575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b818101830151848201604001528201610378565b91908110156103dc5760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103dc5760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec18136030182121561025c570190565b909192349160009182935b8585106104695750505050505050600190565b6104748583896103cc565b35908082116104a85761048b61012287898761040b565b1561049d579060019103940193610456565b505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361051157565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fd5b60e001359073ffffffffffffffffffffffffffffffffffffffff9182811680910361025c5760405190602091828101917f23b872dd00000000000000000000000000000000000000000000000000000000835260248201523060448201527f000000000000000000000000000000000000000000000000000000000000000060648201526064815260a081019067ffffffffffffffff958183108784111761033757826040527f0000000000000000000000000000000000000000000000000000000000000000169061060d8361031b565b8483527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656460c0820152600080948192519082855af13d156107be573d9187831161079157604051927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f81601f8401160116840198848a10908a1117610764576106a69596979860405283528286883d92013e6107ca565b8051806106b7575b50505050600190565b81849181010312610185578201519081159182150361076157506106dd578080806106ae565b608490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b80fd5b6024867f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b6106a693949596506060915b9192901561084557508151156107de575090565b3b156107e75790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156108585750805190602001fd5b61088e906040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301610366565b0390fdfea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A,g){return super.deploy(S,D,A,g||{})}getDeployTransaction(S,D,A,g){return super.getDeployTransaction(S,D,A,g||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.TokenResolver__factory=o},22867:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ValueResolver__factory=void 0;const B=x(92135),I=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"uint256",name:"targetValue",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],M="0x60c03461009b57601f6105fd38819003918201601f19168301916001600160401b038311848410176100a057808492604094855283398101031261009b5780516001600160a01b0381169182820361009b576020015191156100895760805260a05260405161054690816100b78239608051816104e7015260a05181818161018e01526104310152f35b6040516341bc07ff60e11b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60406080815260049081361015610020575b5050361561001e57600080fd5b005b600091823560e01c806388e5b2d91461023657806391db0b7e1461020d578063ce46e046146101cf578063e49617e1146101b3578063e60c3505146101765763ffa1ad741461006f5750610011565b3461017257827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101725781519082820182811067ffffffffffffffff82111761014657835281526020907f302e3237000000000000000000000000000000000000000000000000000000008282015282519382859384528251928382860152825b84811061013057505050828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b81810183015188820188015287955082016100f4565b6024856041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8280fd5b60208361018236610356565b5061018b6104d0565b517f000000000000000000000000000000000000000000000000000000000000000034148152f35b6020836101bf36610356565b506101c86104d0565b5160018152f35b50503461020957817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610209576020905160018152f35b5080fd5b60208361022d61021c366102ed565b926102289291926104d0565b610426565b90519015158152f35b50610240366102ed565b61024f969392969491946104d0565b345b878510610262576020875160018152f35b61026d8583886103a7565b359080821161028f5790600191610285878b886103e6565b5003940193610251565b8388517f11011294000000000000000000000000000000000000000000000000000000008152fd5b9181601f840112156102e85782359167ffffffffffffffff83116102e8576020808501948460051b0101116102e857565b600080fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102e85767ffffffffffffffff916004358381116102e85782610338916004016102b7565b939093926024359182116102e857610352916004016102b7565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc906020828201126102e8576004359167ffffffffffffffff83116102e85782610140920301126102e85760040190565b91908110156103b75760051b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156103b75760051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1813603018212156102e8570190565b9192903460009182937f0000000000000000000000000000000000000000000000000000000000000000925b828610610466575050505050505050600190565b61047186838a6103a7565b35908082116104a65761048587858a6103e6565b5084820361049a579060019103950194610452565b50505050509250505090565b60046040517f11011294000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361050f57565b60046040517f4ca88867000000000000000000000000000000000000000000000000000000008152fdfea164736f6c6343000813000a";class o extends B.ContractFactory{constructor(...S){S.length>1?super(...S):super(I,M,S[0])}deploy(S,D,A){return super.deploy(S,D,A||{})}getDeployTransaction(S,D,A){return super.getDeployTransaction(S,D,A||{})}attach(S){return super.attach(S)}connect(S){return super.connect(S)}static createInterface(){return new B.utils.Interface(I)}static connect(S,D){return new B.Contract(S,I,D)}}Ar(o,"bytecode",M),Ar(o,"abi",I),k.ValueResolver__factory=o},10802:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ValueResolver__factory=k.TokenResolver__factory=k.RevocationResolver__factory=k.RecipientResolver__factory=k.PayingResolver__factory=k.ExpirationTimeResolver__factory=k.DataResolver__factory=k.AttesterResolver__factory=k.AttestationResolver__factory=void 0;var B=x(43142);Object.defineProperty(k,"AttestationResolver__factory",{enumerable:!0,get:function(){return B.AttestationResolver__factory}});var I=x(25586);Object.defineProperty(k,"AttesterResolver__factory",{enumerable:!0,get:function(){return I.AttesterResolver__factory}});var M=x(10197);Object.defineProperty(k,"DataResolver__factory",{enumerable:!0,get:function(){return M.DataResolver__factory}});var P=x(84659);Object.defineProperty(k,"ExpirationTimeResolver__factory",{enumerable:!0,get:function(){return P.ExpirationTimeResolver__factory}});var o=x(35316);Object.defineProperty(k,"PayingResolver__factory",{enumerable:!0,get:function(){return o.PayingResolver__factory}});var w=x(88305);Object.defineProperty(k,"RecipientResolver__factory",{enumerable:!0,get:function(){return w.RecipientResolver__factory}});var S=x(56950);Object.defineProperty(k,"RevocationResolver__factory",{enumerable:!0,get:function(){return S.RevocationResolver__factory}});var D=x(77506);Object.defineProperty(k,"TokenResolver__factory",{enumerable:!0,get:function(){return D.TokenResolver__factory}});var A=x(22867);Object.defineProperty(k,"ValueResolver__factory",{enumerable:!0,get:function(){return A.ValueResolver__factory}})},45342:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(w,S,D,A){void 0===A&&(A=D);var g=Object.getOwnPropertyDescriptor(S,D);(!g||("get"in g?!S.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return S[D]}}),Object.defineProperty(w,A,g)}:function(w,S,D,A){void 0===A&&(A=D),w[A]=S[D]}),I=this&&this.__setModuleDefault||(Object.create?function(w,S){Object.defineProperty(w,"default",{enumerable:!0,value:S})}:function(w,S){w.default=S}),M=this&&this.__importStar||function(w){if(w&&w.__esModule)return w;var S={};if(null!=w)for(var D in w)"default"!==D&&Object.prototype.hasOwnProperty.call(w,D)&&B(S,w,D);return I(S,w),S};Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaResolver__factory=k.ISchemaResolver__factory=k.examples=void 0,k.examples=M(x(10802));var P=x(64080);Object.defineProperty(k,"ISchemaResolver__factory",{enumerable:!0,get:function(){return P.ISchemaResolver__factory}});var o=x(10245);Object.defineProperty(k,"SchemaResolver__factory",{enumerable:!0,get:function(){return o.SchemaResolver__factory}})},36731:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(P,o,w,S){void 0===S&&(S=w);var D=Object.getOwnPropertyDescriptor(o,w);(!D||("get"in D?!o.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return o[w]}}),Object.defineProperty(P,S,D)}:function(P,o,w,S){void 0===S&&(S=w),P[S]=o[w]}),I=this&&this.__setModuleDefault||(Object.create?function(P,o){Object.defineProperty(P,"default",{enumerable:!0,value:o})}:function(P,o){P.default=o}),M=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var o={};if(null!=P)for(var w in P)"default"!==w&&Object.prototype.hasOwnProperty.call(P,w)&&B(o,P,w);return I(o,P),o};Object.defineProperty(k,"__esModule",{value:!0}),k.contracts=k.openzeppelin=void 0,k.openzeppelin=M(x(76536)),k.contracts=M(x(55719))},76932:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(_,t,a,s){void 0===s&&(s=a);var e=Object.getOwnPropertyDescriptor(t,a);(!e||("get"in e?!t.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(_,s,e)}:function(_,t,a,s){void 0===s&&(s=a),_[s]=t[a]}),I=this&&this.__setModuleDefault||(Object.create?function(_,t){Object.defineProperty(_,"default",{enumerable:!0,value:t})}:function(_,t){_.default=t}),M=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var t={};if(null!=_)for(var a in _)"default"!==a&&Object.prototype.hasOwnProperty.call(_,a)&&B(t,_,a);return I(t,_),t};Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaRegistry__factory=k.SchemaResolver__factory=k.ISchemaResolver__factory=k.ValueResolver__factory=k.TokenResolver__factory=k.RevocationResolver__factory=k.RecipientResolver__factory=k.PayingResolver__factory=k.ExpirationTimeResolver__factory=k.DataResolver__factory=k.AttesterResolver__factory=k.AttestationResolver__factory=k.ISchemaRegistry__factory=k.IEAS__factory=k.PermissionedEIP712Proxy__factory=k.EIP712Proxy__factory=k.EIP712Verifier__factory=k.EAS__factory=k.IERC20__factory=k.IERC20Metadata__factory=k.IERC20Permit__factory=k.ERC20__factory=k.Ownable__factory=k.factories=void 0,k.factories=M(x(36731));var P=x(6941);Object.defineProperty(k,"Ownable__factory",{enumerable:!0,get:function(){return P.Ownable__factory}});var o=x(23774);Object.defineProperty(k,"ERC20__factory",{enumerable:!0,get:function(){return o.ERC20__factory}});var w=x(26221);Object.defineProperty(k,"IERC20Permit__factory",{enumerable:!0,get:function(){return w.IERC20Permit__factory}});var S=x(85107);Object.defineProperty(k,"IERC20Metadata__factory",{enumerable:!0,get:function(){return S.IERC20Metadata__factory}});var D=x(30104);Object.defineProperty(k,"IERC20__factory",{enumerable:!0,get:function(){return D.IERC20__factory}});var A=x(94580);Object.defineProperty(k,"EAS__factory",{enumerable:!0,get:function(){return A.EAS__factory}});var g=x(17576);Object.defineProperty(k,"EIP712Verifier__factory",{enumerable:!0,get:function(){return g.EIP712Verifier__factory}});var p=x(70941);Object.defineProperty(k,"EIP712Proxy__factory",{enumerable:!0,get:function(){return p.EIP712Proxy__factory}});var b=x(15980);Object.defineProperty(k,"PermissionedEIP712Proxy__factory",{enumerable:!0,get:function(){return b.PermissionedEIP712Proxy__factory}});var y=x(66899);Object.defineProperty(k,"IEAS__factory",{enumerable:!0,get:function(){return y.IEAS__factory}});var m=x(75826);Object.defineProperty(k,"ISchemaRegistry__factory",{enumerable:!0,get:function(){return m.ISchemaRegistry__factory}});var E=x(43142);Object.defineProperty(k,"AttestationResolver__factory",{enumerable:!0,get:function(){return E.AttestationResolver__factory}});var C=x(25586);Object.defineProperty(k,"AttesterResolver__factory",{enumerable:!0,get:function(){return C.AttesterResolver__factory}});var L=x(10197);Object.defineProperty(k,"DataResolver__factory",{enumerable:!0,get:function(){return L.DataResolver__factory}});var R=x(84659);Object.defineProperty(k,"ExpirationTimeResolver__factory",{enumerable:!0,get:function(){return R.ExpirationTimeResolver__factory}});var U=x(35316);Object.defineProperty(k,"PayingResolver__factory",{enumerable:!0,get:function(){return U.PayingResolver__factory}});var O=x(88305);Object.defineProperty(k,"RecipientResolver__factory",{enumerable:!0,get:function(){return O.RecipientResolver__factory}});var j=x(56950);Object.defineProperty(k,"RevocationResolver__factory",{enumerable:!0,get:function(){return j.RevocationResolver__factory}});var K=x(77506);Object.defineProperty(k,"TokenResolver__factory",{enumerable:!0,get:function(){return K.TokenResolver__factory}});var Z=x(22867);Object.defineProperty(k,"ValueResolver__factory",{enumerable:!0,get:function(){return Z.ValueResolver__factory}});var Q=x(64080);Object.defineProperty(k,"ISchemaResolver__factory",{enumerable:!0,get:function(){return Q.ISchemaResolver__factory}});var W=x(10245);Object.defineProperty(k,"SchemaResolver__factory",{enumerable:!0,get:function(){return W.SchemaResolver__factory}});var X=x(46867);Object.defineProperty(k,"SchemaRegistry__factory",{enumerable:!0,get:function(){return X.SchemaRegistry__factory}})},95633:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.EAS=void 0;const I=x(77775),M=x(42874),P=x(36639),o=x(51035),w=x(41390),S=x(76932),D=x(92135);I.__exportStar(x(36639),k),k.EAS=class A extends o.Base{constructor(p,b){const{signerOrProvider:y,proxy:m}=b||{};super(new S.EAS__factory,p,y),Ar(this,"proxy"),Ar(this,"delegated"),Ar(this,"offchain"),m&&(this.proxy=m)}connect(p){return delete this.delegated,delete this.offchain,super.connect(p),this}getVersion(){return this.contract.VERSION()}getAttestation(p){return this.contract.getAttestation(p)}isAttestationValid(p){return this.contract.isAttestationValid(p)}isAttestationRevoked(p){var b=this;return B(function*(){const y=yield b.contract.getAttestation(p);if(y.uid===w.ZERO_BYTES32)throw new Error("Invalid attestation");return!y.revocationTime.isZero()})()}getTimestamp(p){return this.contract.getTimestamp(p)}getRevocationOffchain(p,b){return this.contract.getRevokeOffchain(p,b)}getEIP712Proxy(){return this.proxy}getDelegated(){return this.delegated?this.delegated:this.setDelegated()}getOffchain(){return this.offchain?this.offchain:this.setOffchain()}attest({schema:p,data:{recipient:b,data:y,expirationTime:m=P.NO_EXPIRATION,revocable:E=!0,refUID:C=w.ZERO_BYTES32,value:L=0}},R){var U=this;return B(function*(){const O=yield U.contract.attest({schema:p,data:{recipient:b,expirationTime:m,revocable:E,refUID:C,data:y,value:L}},{value:L,...R});return new o.Transaction(O,function(){var j=B(function*(K){return(yield(0,w.getUIDsFromAttestEvents)(K.events))[0]});return function(K){return j.apply(this,arguments)}}())})()}attestByDelegation({schema:p,data:{recipient:b,data:y,expirationTime:m=P.NO_EXPIRATION,revocable:E=!0,refUID:C=w.ZERO_BYTES32,value:L=0},attester:R,signature:U},O){var j=this;return B(function*(){const K=yield j.contract.attestByDelegation({schema:p,data:{recipient:b,expirationTime:m,revocable:E,refUID:C,data:y,value:L},signature:U,attester:R},{value:L,...O});return new o.Transaction(K,function(){var Z=B(function*(Q){return(yield(0,w.getUIDsFromAttestEvents)(Q.events))[0]});return function(Q){return Z.apply(this,arguments)}}())})()}multiAttest(p,b){var y=this;return B(function*(){const m=p.map(L=>({schema:L.schema,data:L.data.map(R=>({recipient:R.recipient,expirationTime:R.expirationTime??P.NO_EXPIRATION,revocable:R.revocable??!0,refUID:R.refUID??w.ZERO_BYTES32,data:R.data??w.ZERO_BYTES32,value:R.value??0}))})),E=m.reduce((L,{data:R})=>{const U=R.reduce((O,j)=>O.add(j.value),D.BigNumber.from(0));return L.add(U)},D.BigNumber.from(0)),C=yield y.contract.multiAttest(m,{value:E,...b});return new o.Transaction(C,function(){var L=B(function*(R){return(0,w.getUIDsFromAttestEvents)(R.events)});return function(R){return L.apply(this,arguments)}}())})()}multiAttestByDelegation(p,b){var y=this;return B(function*(){const m=p.map(L=>({schema:L.schema,data:L.data.map(R=>({recipient:R.recipient,expirationTime:R.expirationTime??P.NO_EXPIRATION,revocable:R.revocable??!0,refUID:R.refUID??w.ZERO_BYTES32,data:R.data??w.ZERO_BYTES32,value:R.value??0})),signatures:L.signatures,attester:L.attester})),E=m.reduce((L,{data:R})=>{const U=R.reduce((O,j)=>O.add(j.value),D.BigNumber.from(0));return L.add(U)},D.BigNumber.from(0)),C=yield y.contract.multiAttestByDelegation(m,{value:E,...b});return new o.Transaction(C,function(){var L=B(function*(R){return(0,w.getUIDsFromAttestEvents)(R.events)});return function(R){return L.apply(this,arguments)}}())})()}revoke({schema:p,data:{uid:b,value:y=0}},m){var E=this;return B(function*(){const C=yield E.contract.revoke({schema:p,data:{uid:b,value:y}},{value:y,...m});return new o.Transaction(C,B(function*(){}))})()}revokeByDelegation({schema:p,data:{uid:b,value:y=0},signature:m,revoker:E},C){var L=this;return B(function*(){const R=yield L.contract.revokeByDelegation({schema:p,data:{uid:b,value:y},signature:m,revoker:E},{value:y,...C});return new o.Transaction(R,B(function*(){}))})()}multiRevoke(p,b){var y=this;return B(function*(){const m=p.map(L=>({schema:L.schema,data:L.data.map(R=>({uid:R.uid,value:R.value??0}))})),E=m.reduce((L,{data:R})=>{const U=R.reduce((O,j)=>O.add(j.value),D.BigNumber.from(0));return L.add(U)},D.BigNumber.from(0)),C=yield y.contract.multiRevoke(m,{value:E,...b});return new o.Transaction(C,B(function*(){}))})()}multiRevokeByDelegation(p,b){var y=this;return B(function*(){const m=p.map(L=>({schema:L.schema,data:L.data.map(R=>({uid:R.uid,value:R.value??0})),signatures:L.signatures,revoker:L.revoker})),E=m.reduce((L,{data:R})=>{const U=R.reduce((O,j)=>O.add(j.value),D.BigNumber.from(0));return L.add(U)},D.BigNumber.from(0)),C=yield y.contract.multiRevokeByDelegation(m,{value:E,...b});return new o.Transaction(C,B(function*(){}))})()}attestByDelegationProxy(p,b){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.attestByDelegationProxy(p,b)}multiAttestByDelegationProxy(p,b){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.multiAttestByDelegationProxy(p,b)}revokeByDelegationProxy(p,b){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.revokeByDelegationProxy(p,b)}multiRevokeByDelegationProxy(p,b){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.multiRevokeByDelegationProxy(p,b)}timestamp(p,b){var y=this;return B(function*(){const m=yield y.contract.timestamp(p,b??{});return new o.Transaction(m,function(){var E=B(function*(C){return(yield(0,w.getTimestampFromTimestampEvents)(C.events))[0]});return function(C){return E.apply(this,arguments)}}())})()}multiTimestamp(p,b){var y=this;return B(function*(){const m=yield y.contract.multiTimestamp(p,b??{});return new o.Transaction(m,function(){var E=B(function*(C){return(0,w.getTimestampFromTimestampEvents)(C.events)});return function(C){return E.apply(this,arguments)}}())})()}revokeOffchain(p,b){var y=this;return B(function*(){const m=yield y.contract.revokeOffchain(p,b??{});return new o.Transaction(m,function(){var E=B(function*(C){return(yield(0,w.getTimestampFromOffchainRevocationEvents)(C.events))[0]});return function(C){return E.apply(this,arguments)}}())})()}multiRevokeOffchain(p,b){var y=this;return B(function*(){const m=yield y.contract.multiRevokeOffchain(p,b??{});return new o.Transaction(m,function(){var E=B(function*(C){return(0,w.getTimestampFromOffchainRevocationEvents)(C.events)});return function(C){return E.apply(this,arguments)}}())})()}getDomainSeparator(){return this.contract.getDomainSeparator()}getNonce(p){return this.contract.getNonce(p)}getAttestTypeHash(){return this.contract.getAttestTypeHash()}getRevokeTypeHash(){return this.contract.getRevokeTypeHash()}setDelegated(){var p=this;return B(function*(){return p.delegated=new M.Delegated({address:p.contract.address,version:yield p.getVersion(),chainId:yield p.getChainId()}),p.delegated})()}setOffchain(){var p=this;return B(function*(){return p.offchain=new M.Offchain({address:p.contract.address,version:yield p.getVersion(),chainId:yield p.getChainId()}),p.offchain})()}}},95215:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});const B=x(77775);B.__exportStar(x(95633),k),B.__exportStar(x(42874),k),B.__exportStar(x(36639),k),B.__exportStar(x(79765),k),B.__exportStar(x(28200),k),B.__exportStar(x(41390),k)},1472:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.DelegatedProxy=k.REVOKE_PROXY_TYPE=k.ATTEST_PROXY_TYPE=k.REVOKE_PROXY_PRIMARY_TYPE=k.ATTEST_PROXY_PRIMARY_TYPE=k.REVOKE_PROXY_TYPED_SIGNATURE=k.ATTEST_PROXY_TYPED_SIGNATURE=void 0;const B=x(70419);k.ATTEST_PROXY_TYPED_SIGNATURE="Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint64 deadline)",k.REVOKE_PROXY_TYPED_SIGNATURE="Revoke(bytes32 schema,bytes32 uid,uint64 deadline)",k.ATTEST_PROXY_PRIMARY_TYPE="Attest",k.REVOKE_PROXY_PRIMARY_TYPE="Revoke",k.ATTEST_PROXY_TYPE=[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"deadline",type:"uint64"}],k.REVOKE_PROXY_TYPE=[{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"deadline",type:"uint64"}],k.DelegatedProxy=class I extends B.TypedDataHandler{constructor(P){super(P)}signDelegatedProxyAttestation(P,o){return this.signTypedDataRequest(P,{domain:this.getDomainTypedData(),primaryType:k.ATTEST_PROXY_PRIMARY_TYPE,message:P,types:{Attest:k.ATTEST_PROXY_TYPE}},o)}verifyDelegatedProxyAttestationSignature(P,o){return this.verifyTypedDataRequestSignature(P,o)}signDelegatedProxyRevocation(P,o){return this.signTypedDataRequest(P,{domain:this.getDomainTypedData(),primaryType:k.REVOKE_PROXY_PRIMARY_TYPE,message:P,types:{Revoke:k.REVOKE_PROXY_TYPE}},o)}verifyDelegatedProxyRevocationSignature(P,o){return this.verifyTypedDataRequestSignature(P,o)}}},67218:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Delegated=k.REVOKE_TYPE=k.ATTEST_TYPE=k.REVOKE_PRIMARY_TYPE=k.ATTEST_PRIMARY_TYPE=k.REVOKE_TYPED_SIGNATURE=k.ATTEST_TYPED_SIGNATURE=k.EIP712_NAME=void 0;const B=x(70419);k.EIP712_NAME="EAS",k.ATTEST_TYPED_SIGNATURE="Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 nonce)",k.REVOKE_TYPED_SIGNATURE="Revoke(bytes32 schema,bytes32 uid,uint256 nonce)",k.ATTEST_PRIMARY_TYPE="Attest",k.REVOKE_PRIMARY_TYPE="Revoke",k.ATTEST_TYPE=[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"nonce",type:"uint256"}],k.REVOKE_TYPE=[{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"nonce",type:"uint256"}],k.Delegated=class I extends B.TypedDataHandler{constructor(P){super({...P,name:k.EIP712_NAME})}signDelegatedAttestation(P,o){return this.signTypedDataRequest(P,{domain:this.getDomainTypedData(),primaryType:k.ATTEST_PRIMARY_TYPE,message:P,types:{Attest:k.ATTEST_TYPE}},o)}verifyDelegatedAttestationSignature(P,o){return this.verifyTypedDataRequestSignature(P,o)}signDelegatedRevocation(P,o){return this.signTypedDataRequest(P,{domain:this.getDomainTypedData(),primaryType:k.REVOKE_PRIMARY_TYPE,message:P,types:{Revoke:k.REVOKE_TYPE}},o)}verifyDelegatedRevocationSignature(P,o){return this.verifyTypedDataRequestSignature(P,o)}}},42874:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});const B=x(77775);B.__exportStar(x(67218),k),B.__exportStar(x(1472),k),B.__exportStar(x(53273),k)},53273:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Offchain=k.DOMAIN_NAME=k.ATTESTATION_TYPE=k.ATTESTATION_PRIMARY_TYPE=void 0;const I=x(41390),M=x(67218),P=x(70419),o=x(92135),{keccak256:w,toUtf8Bytes:S,defaultAbiCoder:D}=o.utils;k.ATTESTATION_PRIMARY_TYPE="Attestation",k.ATTESTATION_TYPE=[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}],k.DOMAIN_NAME="EAS Attestation";class A extends P.TypedDataHandler{constructor(p){super({...p,name:M.EIP712_NAME})}getDomainSeparator(){return w(D.encode(["bytes32","bytes32","uint256","address"],[w(S(k.DOMAIN_NAME)),w(S(this.config.version)),this.config.chainId,this.config.address]))}getDomainTypedData(){return{name:k.DOMAIN_NAME,version:this.config.version,chainId:this.config.chainId,verifyingContract:this.config.address}}signOffchainAttestation(p,b){var y=this;return B(function*(){const m=A.getOffchainUID(p);return{...yield y.signTypedDataRequest(p,{domain:y.getDomainTypedData(),primaryType:k.ATTESTATION_PRIMARY_TYPE,message:p,types:{Attest:k.ATTESTATION_TYPE}},b),uid:m}})()}verifyOffchainAttestationSignature(p,b){return b.uid===A.getOffchainUID(b.message)&&this.verifyTypedDataRequestSignature(p,b)}static getOffchainUID(p){return(0,I.getOffchainUID)(p.schema,p.recipient,p.time,p.expirationTime,p.revocable,p.refUID,p.data)}}k.Offchain=A},70419:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.TypedDataHandler=k.EIP712_DOMAIN=void 0;const I=x(41390),M=x(92135),{getAddress:P,verifyTypedData:o,hexlify:w,joinSignature:S,splitSignature:D,keccak256:A,toUtf8Bytes:g,defaultAbiCoder:p}=M.utils;k.EIP712_DOMAIN="EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)",k.TypedDataHandler=class b{constructor(m){Ar(this,"config"),this.config=m}getDomainSeparator(){return A(p.encode(["bytes32","bytes32","bytes32","uint256","address"],[A(g(k.EIP712_DOMAIN)),A(g(this.config.name)),A(g(this.config.version)),this.config.chainId,this.config.address]))}getDomainTypedData(){return{name:this.config.name,version:this.config.version,chainId:this.config.chainId,verifyingContract:this.config.address}}signTypedDataRequest(m,E,C){return B(function*(){const L=yield C._signTypedData(E.domain,E.types,m),R=D(L);return{...E,signature:{v:R.v,r:R.r,s:R.s}}})()}verifyTypedDataRequestSignature(m,E){if(m===I.ZERO_ADDRESS)throw new Error("Invalid address");const{signature:C}=E,L=S({v:C.v,r:w(C.r),s:w(C.s)}),R=o(E.domain,E.types,E.message,L);return P(m)===P(R)}}},36639:(q,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.NO_EXPIRATION=void 0,k.NO_EXPIRATION=0},79765:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaEncoder=void 0;const B=x(41390),I=x(92135),M=x(8422),{FunctionFragment:P,defaultAbiCoder:o,isBytesLike:w,formatBytes32String:S}=I.utils;class g{constructor(b){Ar(this,"schema"),this.schema=[];const y=b.replace(/ipfsHash/g,"bytes32"),m=P.from(`func(${y})`);o.getDefaultValue(m.inputs);for(const E of m.inputs){const{name:C,components:L}=E;let{type:R}=E,U=C?`${R} ${C}`:R;const O=C?` ${C}`:"";let j=R;const K=`(${(L||[]).map(W=>W.type).join(",")})`,Z=`(${(L||[]).map(W=>W.name?`${W.type} ${W.name}`:W.type).join(",")})`;"tuple"===R?(R=K,U=`${Z}${O}`):"tuple[]"===R?(R=`${K}[]`,U=`${Z}[]${O}`):R.includes("[]")&&(j=j.replace("[]",""));const Q=g.getDefaultValueForTypeName(j);this.schema.push({name:C,type:R,signature:U,value:R.includes("[]")?[]:Q})}}encodeData(b){if(b.length!==this.schema.length)throw new Error("Invalid number or values");const y=[];for(const[m,E]of this.schema.entries()){const{type:C,name:L,value:R}=b[m],U=C.replace(/\s/g,"");if(U!==E.type&&U!==E.signature&&("ipfsHash"!==U||"bytes32"!==E.type))throw new Error(`Incompatible param type: ${U}`);if(L!==E.name)throw new Error(`Incompatible param name: ${L}`);y.push("bytes32"===E.type&&"ipfsHash"===E.name?g.decodeIpfsValue(R):"bytes32"!==E.type||"string"!=typeof R||w(R)?R:S(R))}return o.encode(this.signatures(),y)}decodeData(b){const y=o.decode(this.signatures(),b);return this.schema.map((m,E)=>{const C=P.from(`func(${m.signature})`);if(1!==C.inputs.length)throw new Error(`Unexpected inputs: ${C.inputs}`);let L=y[E];const R=C.inputs[0],{components:U}=R;if(L.length>0&&U)if(Array.isArray(L[0])){const O=[];for(const j of L){const K=[],Z=j.filter(Q=>"object"!=typeof Q);for(const[Q,W]of Z.entries()){const X=U[Q];K.push({name:X.name,type:X.type,value:W})}O.push(K)}L={name:m.name,type:m.type,value:O}}else{const O=[],j=L.filter(K=>"object"!=typeof K);for(const[K,Z]of j.entries()){const Q=U[K];O.push({name:Q.name,type:Q.type,value:Z})}L={name:m.name,type:m.type,value:O}}else L={name:m.name,type:m.type,value:L};return{name:m.name,type:m.type,signature:m.signature,value:L}})}isEncodedDataValid(b){try{return this.decodeData(b),!0}catch{return!1}}static isCID(b){try{return M.CID.parse(b),!0}catch{return!1}}static encodeQmHash(b){const y=M.CID.parse(b);return o.encode(["bytes32"],[y.multihash.digest])}static decodeQmHash(b){const y=Uint8Array.from(Buffer.from(b.slice(2),"hex")),m={digest:y,code:18,size:32,bytes:Uint8Array.from([18,32,...y])};return M.CID.createV0(m).toString()}static getDefaultValueForTypeName(b){return"bool"!==b&&(b.includes("uint")?"0":"address"===b?B.ZERO_ADDRESS:"")}static decodeIpfsValue(b){if(w(b))return g.encodeBytes32Value(b);try{const y=M.CID.parse(b);return o.encode(["bytes32"],[y.multihash.digest])}catch{return g.encodeBytes32Value(b)}}static encodeBytes32Value(b){try{return o.encode(["bytes32"],[b]),b}catch{return S(b)}}signatures(){return this.schema.map(b=>b.signature)}}k.SchemaEncoder=g},28200:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.SchemaRegistry=void 0;const I=x(51035),M=x(41390),P=x(76932);k.SchemaRegistry=class o extends I.Base{constructor(S,D){const{signerOrProvider:A}=D||{};super(new P.SchemaRegistry__factory,S,A)}getVersion(){return this.contract.VERSION()}register({schema:S,resolverAddress:D=M.ZERO_ADDRESS,revocable:A=!0}){var g=this;return B(function*(){const p=yield g.contract.register(S,D,A);return new I.Transaction(p,function(){var b=B(function*(y){return(0,M.getSchemaUID)(S,D,A)});return function(y){return b.apply(this,arguments)}}())})()}getSchema({uid:S}){var D=this;return B(function*(){const A=yield D.contract.getSchema(S);if(A.uid===M.ZERO_BYTES32)throw new Error("Schema not found");return A})()}}},51035:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Base=k.Transaction=void 0,k.Transaction=class I{constructor(o,w){Ar(this,"tx"),Ar(this,"waitCallback"),this.tx=o,this.waitCallback=w}wait(o){var w=this;return B(function*(){const S=yield w.tx.wait(o);return w.waitCallback(S)})()}},k.Base=class M{constructor(o,w,S){Ar(this,"contract"),this.contract=o.attach(w),S&&this.connect(S)}connect(o){return this.contract=this.contract.connect(o),this}getChainId(){var o=this;return B(function*(){return(yield o.contract.provider.getNetwork()).chainId})()}}},41390:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.getTimestampFromOffchainRevocationEvents=k.getTimestampFromTimestampEvents=k.getUIDsFromAttestEvents=k.getUIDFromDelegatedProxyAttestReceipt=k.getUIDFromDelegatedProxyAttestTx=k.getUIDFromMultiDelegatedProxyAttestReceipt=k.getUIDFromMultiDelegatedProxyAttestTx=k.getUIDFromAttestTx=k.getUIDsFromMultiAttestTx=k.getOffchainUID=k.getUID=k.getSchemaUID=k.ZERO_BYTES32=k.ZERO_BYTES=k.ZERO_ADDRESS=void 0;const I=x(76932),M=x(42867),P=x(92135),{solidityKeccak256:o,hexlify:w,toUtf8Bytes:S}=P.utils,{AddressZero:D}=P.constants;k.ZERO_ADDRESS=D,k.ZERO_BYTES="0x",k.ZERO_BYTES32="0x0000000000000000000000000000000000000000000000000000000000000000",k.getSchemaUID=(j,K,Z)=>o(["string","address","bool"],[j,K,Z]),k.getUID=(j,K,Z,Q,W,X,_,t,a)=>o(["bytes","address","address","uint64","uint64","bool","bytes32","bytes","uint32"],[w(S(j)),K,Z,Q,W,X,_,t,a]),k.getOffchainUID=(j,K,Z,Q,W,X,_)=>o(["bytes","address","address","uint64","uint64","bool","bytes32","bytes","uint32"],[w(S(j)),K,k.ZERO_ADDRESS,Z,Q,W,X,_,0]),k.getUIDsFromMultiAttestTx=function(){var j=B(function*(K){const Z=yield(yield K).wait();return(0,k.getUIDsFromAttestEvents)(Z.events)});return function(Z){return j.apply(this,arguments)}}(),k.getUIDFromAttestTx=function(){var j=B(function*(K){return(yield(0,k.getUIDsFromMultiAttestTx)(K))[0]});return function(Z){return j.apply(this,arguments)}}(),k.getUIDFromMultiDelegatedProxyAttestTx=function(){var j=B(function*(K){return(0,k.getUIDFromMultiDelegatedProxyAttestReceipt)((yield K).wait())});return function(Z){return j.apply(this,arguments)}}(),k.getUIDFromMultiDelegatedProxyAttestReceipt=function(){var j=B(function*(K){const Z=yield K,Q=new M.Interface(I.EAS__factory.abi),W=[];for(const X of Z.events||[])W.push({event:"Attested",args:yield Q.decodeEventLog("Attested",X.data,X.topics)});return(0,k.getUIDsFromAttestEvents)(W)});return function(Z){return j.apply(this,arguments)}}(),k.getUIDFromDelegatedProxyAttestTx=function(){var j=B(function*(K){return(yield(0,k.getUIDFromMultiDelegatedProxyAttestTx)(K))[0]});return function(Z){return j.apply(this,arguments)}}(),k.getUIDFromDelegatedProxyAttestReceipt=function(){var j=B(function*(K){return(yield(0,k.getUIDFromMultiDelegatedProxyAttestReceipt)(K))[0]});return function(Z){return j.apply(this,arguments)}}(),k.getUIDsFromAttestEvents=j=>{if(!j)return[];const K=j.filter(Z=>"Attested"===Z.event);if(0===K.length)throw new Error("Unable to process attestation events");return K.map(Z=>Z.args?.uid)},k.getTimestampFromTimestampEvents=j=>{if(!j)return[];const K=j.filter(Z=>"Timestamped"===Z.event);if(0===K.length)throw new Error("Unable to process attestation events");return K.map(Z=>Z.args?.timestamp)},k.getTimestampFromOffchainRevocationEvents=j=>{if(!j)return[];const K=j.filter(Z=>"RevokedOffchain"===Z.event);if(0===K.length)throw new Error("Unable to process offchain revocation events");return K.map(Z=>Z.args?.timestamp)}},16583:(q,k,x)=>{"use strict";x.d(k,{i:()=>B});const B="abi/5.7.0"},72193:(q,k,x)=>{"use strict";x.d(k,{R:()=>t,$:()=>a});var B=x(64153),I=x(2993),M=x(33190),P=x(16583),o=x(92487),w=x(67296);class S extends o.XI{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,i){try{i=(0,w.getAddress)(i)}catch(u){this._throwError(u.message,i)}return e.writeValue(i)}decode(e){return(0,w.getAddress)((0,B.hexZeroPad)(e.readValue().toHexString(),20))}}class D extends o.XI{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,i){return this.coder.encode(e,i)}decode(e){return this.coder.decode(e)}}const A=new M.Logger(P.i);function g(s,e,i){let u=null;if(Array.isArray(i))u=i;else if(i&&"object"==typeof i){let F={};u=e.map(T=>{const H=T.localName;return H||A.throwError("cannot encode object for signature with missing names",M.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:T,value:i}),F[H]&&A.throwError("cannot encode object for signature with duplicate names",M.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:T,value:i}),F[H]=!0,i[H]})}else A.throwArgumentError("invalid tuple value","tuple",i);e.length!==u.length&&A.throwArgumentError("types/value length mismatch","tuple",i);let d=new o.QV(s.wordSize),c=new o.QV(s.wordSize),r=[];e.forEach((F,T)=>{let H=u[T];if(F.dynamic){let ae=c.length;F.encode(c,H);let Ae=d.writeUpdatableValue();r.push(fe=>{Ae(fe+ae)})}else F.encode(d,H)}),r.forEach(F=>{F(d.length)});let h=s.appendWriter(d);return h+=s.appendWriter(c),h}function p(s,e){let i=[],u=s.subReader(0);e.forEach(c=>{let r=null;if(c.dynamic){let h=s.readValue(),F=u.subReader(h.toNumber());try{r=c.decode(F)}catch(T){if(T.code===M.Logger.errors.BUFFER_OVERRUN)throw T;r=T,r.baseType=c.name,r.name=c.localName,r.type=c.type}}else try{r=c.decode(s)}catch(h){if(h.code===M.Logger.errors.BUFFER_OVERRUN)throw h;r=h,r.baseType=c.name,r.name=c.localName,r.type=c.type}null!=r&&i.push(r)});const d=e.reduce((c,r)=>{const h=r.localName;return h&&(c[h]||(c[h]=0),c[h]++),c},{});e.forEach((c,r)=>{let h=c.localName;if(!h||1!==d[h]||("length"===h&&(h="_length"),null!=i[h]))return;const F=i[r];F instanceof Error?Object.defineProperty(i,h,{enumerable:!0,get:()=>{throw F}}):i[h]=F});for(let c=0;c{throw r}})}return Object.freeze(i)}class b extends o.XI{constructor(e,i,u){super("array",e.type+"["+(i>=0?i:"")+"]",u,-1===i||e.dynamic),this.coder=e,this.length=i}defaultValue(){const e=this.coder.defaultValue(),i=[];for(let u=0;ue._data.length&&A.throwError("insufficient data length",M.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:i}));let u=[];for(let d=0;d{r.dynamic&&(u=!0),d.push(r.type)}),super("tuple","tuple("+d.join(",")+")",i,u),this.coders=e}defaultValue(){const e=[];this.coders.forEach(u=>{e.push(u.defaultValue())});const i=this.coders.reduce((u,d)=>{const c=d.localName;return c&&(u[c]||(u[c]=0),u[c]++),u},{});return this.coders.forEach((u,d)=>{let c=u.localName;!c||1!==i[c]||("length"===c&&(c="_length"),null==e[c]&&(e[c]=e[d]))}),Object.freeze(e)}encode(e,i){return g(e,this.coders,i)}decode(e){return e.coerce(this.name,p(e,this.coders))}}var Q=x(66151);const W=new M.Logger(P.i),X=new RegExp(/^bytes([0-9]*)$/),_=new RegExp(/^(u?int)([0-9]*)$/);class t{constructor(e){(0,I.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new S(e.name);case"bool":return new y(e.name);case"string":return new K(e.name);case"bytes":return new E(e.name);case"array":return new b(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Z((e.components||[]).map(u=>this._getCoder(u)),e.name);case"":return new L(e.name)}let i=e.type.match(_);if(i){let u=parseInt(i[2]||"256");return(0===u||u>256||u%8!=0)&&W.throwArgumentError("invalid "+i[1]+" bit length","param",e),new O(u/8,"int"===i[1],e.name)}if(i=e.type.match(X),i){let u=parseInt(i[1]);return(0===u||u>32)&&W.throwArgumentError("invalid bytes length","param",e),new C(u,e.name)}return W.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,i){return new o.Ej(e,this._getWordSize(),this.coerceFunc,i)}_getWriter(){return new o.QV(this._getWordSize())}getDefaultValue(e){const i=e.map(d=>this._getCoder(Q._R.from(d)));return new Z(i,"_").defaultValue()}encode(e,i){e.length!==i.length&&W.throwError("types/values length mismatch",M.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:i.length},value:{types:e,values:i}});const u=e.map(r=>this._getCoder(Q._R.from(r))),d=new Z(u,"_"),c=this._getWriter();return d.encode(c,i),c.data}decode(e,i,u){const d=e.map(r=>this._getCoder(Q._R.from(r)));return new Z(d,"_").decode(this._getReader((0,B.arrayify)(i),u))}}const a=new t},92487:(q,k,x)=>{"use strict";x.d(k,{BR:()=>S,Ej:()=>g,QV:()=>A,XI:()=>D});var B=x(64153),I=x(36706),M=x(2993),P=x(33190),o=x(16583);const w=new P.Logger(o.i);function S(p){const b=[],y=function(m,E){if(Array.isArray(E))for(let C in E){const L=m.slice();L.push(C);try{y(L,E[C])}catch(R){b.push({path:L,error:R})}}};return y([],p),b}class D{constructor(b,y,m,E){this.name=b,this.type=y,this.localName=m,this.dynamic=E}_throwError(b,y){w.throwArgumentError(b,this.localName,y)}}class A{constructor(b){(0,M.defineReadOnly)(this,"wordSize",b||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(b)}get data(){return(0,B.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(b){return this._data.push(b),this._dataLength+=b.length,b.length}appendWriter(b){return this._writeData((0,B.concat)(b._data))}writeBytes(b){let y=(0,B.arrayify)(b);const m=y.length%this.wordSize;return m&&(y=(0,B.concat)([y,this._padding.slice(m)])),this._writeData(y)}_getValue(b){let y=(0,B.arrayify)(I.O$.from(b));return y.length>this.wordSize&&w.throwError("value out-of-bounds",P.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:y.length}),y.length%this.wordSize&&(y=(0,B.concat)([this._padding.slice(y.length%this.wordSize),y])),y}writeValue(b){return this._writeData(this._getValue(b))}writeUpdatableValue(){const b=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,y=>{this._data[b]=this._getValue(y)}}}class g{constructor(b,y,m,E){(0,M.defineReadOnly)(this,"_data",(0,B.arrayify)(b)),(0,M.defineReadOnly)(this,"wordSize",y||32),(0,M.defineReadOnly)(this,"_coerceFunc",m),(0,M.defineReadOnly)(this,"allowLoose",E),this._offset=0}get data(){return(0,B.hexlify)(this._data)}get consumed(){return this._offset}static coerce(b,y){let m=b.match("^u?int([0-9]+)$");return m&&parseInt(m[1])<=48&&(y=y.toNumber()),y}coerce(b,y){return this._coerceFunc?this._coerceFunc(b,y):g.coerce(b,y)}_peekBytes(b,y,m){let E=Math.ceil(y/this.wordSize)*this.wordSize;return this._offset+E>this._data.length&&(this.allowLoose&&m&&this._offset+y<=this._data.length?E=y:w.throwError("data out-of-bounds",P.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+E})),this._data.slice(this._offset,this._offset+E)}subReader(b){return new g(this._data.slice(this._offset+b),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(b,y){let m=this._peekBytes(0,b,!!y);return this._offset+=m.length,m.slice(0,b)}readValue(){return I.O$.from(this.readBytes(this.wordSize))}}},66151:(q,k,x)=>{"use strict";x.d(k,{HY:()=>C,IC:()=>Q,QV:()=>L,Xg:()=>j,YW:()=>K,_R:()=>m,pc:()=>b});var B=x(36706),I=x(2993),M=x(33190),P=x(16583);const o=new M.Logger(P.i),w={};let S={calldata:!0,memory:!0,storage:!0},D={calldata:!0,memory:!0};function A(s,e){if("bytes"===s||"string"===s){if(S[e])return!0}else if("address"===s){if("payable"===e)return!0}else if((s.indexOf("[")>=0||"tuple"===s)&&D[e])return!0;return(S[e]||"payable"===e)&&o.throwArgumentError("invalid modifier","name",e),!1}function p(s,e){for(let i in e)(0,I.defineReadOnly)(s,i,e[i])}const b=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),y=new RegExp(/^(.*)\[([0-9]*)\]$/);class m{constructor(e,i){e!==w&&o.throwError("use fromString",M.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),p(this,i);let u=this.type.match(y);p(this,u?{arrayLength:parseInt(u[2]||"-1"),arrayChildren:m.fromObject({type:u[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=b.sighash),b[e]||o.throwArgumentError("invalid format type","format",e),e===b.json){let u={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(u.indexed=this.indexed),this.components&&(u.components=this.components.map(d=>JSON.parse(d.format(e)))),JSON.stringify(u)}let i="";return"array"===this.baseType?(i+=this.arrayChildren.format(e),i+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==b.sighash&&(i+=this.type),i+="("+this.components.map(u=>u.format(e)).join(e===b.full?", ":",")+")"):i+=this.type,e!==b.sighash&&(!0===this.indexed&&(i+=" indexed"),e===b.full&&this.name&&(i+=" "+this.name)),i}static from(e,i){return"string"==typeof e?m.fromString(e,i):m.fromObject(e)}static fromObject(e){return m.isParamType(e)?e:new m(w,{name:e.name||null,type:W(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(m.fromObject):null})}static fromString(e,i){return function u(d){return m.fromObject({name:d.name,type:d.type,indexed:d.indexed,components:d.components})}(function g(s,e){let i=s;function u(h){o.throwArgumentError(`unexpected character at position ${h}`,"param",s)}function d(h){let F={type:"",name:"",parent:h,state:{allowType:!0}};return e&&(F.indexed=!1),F}s=s.replace(/\s/g," ");let c={type:"",name:"",state:{allowType:!0}},r=c;for(let h=0;hm.fromString(i,e))}class C{constructor(e,i){e!==w&&o.throwError("use a static from method",M.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),p(this,i),this._isFragment=!0,Object.freeze(this)}static from(e){return C.isFragment(e)?e:"string"==typeof e?C.fromString(e):C.fromObject(e)}static fromObject(e){if(C.isFragment(e))return e;switch(e.type){case"function":return K.fromObject(e);case"event":return L.fromObject(e);case"constructor":return j.fromObject(e);case"error":return Q.fromObject(e);case"fallback":case"receive":return null}return o.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?L.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?K.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?j.fromString(e.trim()):"error"===e.split(" ")[0]?Q.fromString(e.substring(5).trim()):o.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class L extends C{format(e){if(e||(e=b.sighash),b[e]||o.throwArgumentError("invalid format type","format",e),e===b.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(u=>JSON.parse(u.format(e)))});let i="";return e!==b.sighash&&(i+="event "),i+=this.name+"("+this.inputs.map(u=>u.format(e)).join(e===b.full?", ":",")+") ",e!==b.sighash&&this.anonymous&&(i+="anonymous "),i.trim()}static from(e){return"string"==typeof e?L.fromString(e):L.fromObject(e)}static fromObject(e){if(L.isEventFragment(e))return e;"event"!==e.type&&o.throwArgumentError("invalid event object","value",e);const i={name:_(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(m.fromObject):[],type:"event"};return new L(w,i)}static fromString(e){let i=e.match(t);i||o.throwArgumentError("invalid event string","value",e);let u=!1;return i[3].split(" ").forEach(d=>{switch(d.trim()){case"anonymous":u=!0;break;case"":break;default:o.warn("unknown modifier: "+d)}}),L.fromObject({name:i[1].trim(),anonymous:u,inputs:E(i[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function R(s,e){e.gas=null;let i=s.split("@");return 1!==i.length?(i.length>2&&o.throwArgumentError("invalid human-readable ABI signature","value",s),i[1].match(/^[0-9]+$/)||o.throwArgumentError("invalid human-readable ABI signature gas","value",s),e.gas=B.O$.from(i[1]),i[0]):s}function U(s,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",s.split(" ").forEach(i=>{switch(i.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+i)}})}function O(s){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=s.stateMutability?(e.stateMutability=s.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=s.constant&&!!s.constant!==e.constant&&o.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",s),e.payable="payable"===e.stateMutability,null!=s.payable&&!!s.payable!==e.payable&&o.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",s)):null!=s.payable?(e.payable=!!s.payable,null==s.constant&&!e.payable&&"constructor"!==s.type&&o.throwArgumentError("unable to determine stateMutability","value",s),e.constant=!!s.constant,e.stateMutability=e.constant?"view":e.payable?"payable":"nonpayable",e.payable&&e.constant&&o.throwArgumentError("cannot have constant payable function","value",s)):null!=s.constant?(e.constant=!!s.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==s.type&&o.throwArgumentError("unable to determine stateMutability","value",s),e}class j extends C{format(e){if(e||(e=b.sighash),b[e]||o.throwArgumentError("invalid format type","format",e),e===b.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(u=>JSON.parse(u.format(e)))});e===b.sighash&&o.throwError("cannot format a constructor for sighash",M.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let i="constructor("+this.inputs.map(u=>u.format(e)).join(e===b.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(i+=this.stateMutability+" "),i.trim()}static from(e){return"string"==typeof e?j.fromString(e):j.fromObject(e)}static fromObject(e){if(j.isConstructorFragment(e))return e;"constructor"!==e.type&&o.throwArgumentError("invalid constructor object","value",e);let i=O(e);i.constant&&o.throwArgumentError("constructor cannot be constant","value",e);const u={name:null,type:e.type,inputs:e.inputs?e.inputs.map(m.fromObject):[],payable:i.payable,stateMutability:i.stateMutability,gas:e.gas?B.O$.from(e.gas):null};return new j(w,u)}static fromString(e){let i={type:"constructor"},u=(e=R(e,i)).match(t);return(!u||"constructor"!==u[1].trim())&&o.throwArgumentError("invalid constructor string","value",e),i.inputs=E(u[2].trim(),!1),U(u[3].trim(),i),j.fromObject(i)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class K extends j{format(e){if(e||(e=b.sighash),b[e]||o.throwArgumentError("invalid format type","format",e),e===b.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(u=>JSON.parse(u.format(e))),outputs:this.outputs.map(u=>JSON.parse(u.format(e)))});let i="";return e!==b.sighash&&(i+="function "),i+=this.name+"("+this.inputs.map(u=>u.format(e)).join(e===b.full?", ":",")+") ",e!==b.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(i+=this.stateMutability+" "):this.constant&&(i+="view "),this.outputs&&this.outputs.length&&(i+="returns ("+this.outputs.map(u=>u.format(e)).join(", ")+") "),null!=this.gas&&(i+="@"+this.gas.toString()+" ")),i.trim()}static from(e){return"string"==typeof e?K.fromString(e):K.fromObject(e)}static fromObject(e){if(K.isFunctionFragment(e))return e;"function"!==e.type&&o.throwArgumentError("invalid function object","value",e);let i=O(e);const u={type:e.type,name:_(e.name),constant:i.constant,inputs:e.inputs?e.inputs.map(m.fromObject):[],outputs:e.outputs?e.outputs.map(m.fromObject):[],payable:i.payable,stateMutability:i.stateMutability,gas:e.gas?B.O$.from(e.gas):null};return new K(w,u)}static fromString(e){let i={type:"function"},u=(e=R(e,i)).split(" returns ");u.length>2&&o.throwArgumentError("invalid function string","value",e);let d=u[0].match(t);if(d||o.throwArgumentError("invalid function signature","value",e),i.name=d[1].trim(),i.name&&_(i.name),i.inputs=E(d[2],!1),U(d[3].trim(),i),u.length>1){let c=u[1].match(t);(""!=c[1].trim()||""!=c[3].trim())&&o.throwArgumentError("unexpected tokens","value",e),i.outputs=E(c[2],!1)}else i.outputs=[];return K.fromObject(i)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function Z(s){const e=s.format();return("Error(string)"===e||"Panic(uint256)"===e)&&o.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",s),s}class Q extends C{format(e){if(e||(e=b.sighash),b[e]||o.throwArgumentError("invalid format type","format",e),e===b.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(u=>JSON.parse(u.format(e)))});let i="";return e!==b.sighash&&(i+="error "),i+=this.name+"("+this.inputs.map(u=>u.format(e)).join(e===b.full?", ":",")+") ",i.trim()}static from(e){return"string"==typeof e?Q.fromString(e):Q.fromObject(e)}static fromObject(e){if(Q.isErrorFragment(e))return e;"error"!==e.type&&o.throwArgumentError("invalid error object","value",e);const i={type:e.type,name:_(e.name),inputs:e.inputs?e.inputs.map(m.fromObject):[]};return Z(new Q(w,i))}static fromString(e){let i={type:"error"},u=e.match(t);return u||o.throwArgumentError("invalid error signature","value",e),i.name=u[1].trim(),i.name&&_(i.name),i.inputs=E(u[2],!1),Z(Q.fromObject(i))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function W(s){return s.match(/^uint($|[^1-9])/)?s="uint256"+s.substring(4):s.match(/^int($|[^1-9])/)&&(s="int256"+s.substring(3)),s}const X=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function _(s){return(!s||!s.match(X))&&o.throwArgumentError(`invalid identifier "${s}"`,"value",s),s}const t=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},42867:(q,k,x)=>{"use strict";x.r(k),x.d(k,{AbiCoder:()=>I.R,ConstructorFragment:()=>B.Xg,ErrorFragment:()=>B.IC,EventFragment:()=>B.QV,FormatTypes:()=>B.pc,Fragment:()=>B.HY,FunctionFragment:()=>B.YW,Indexed:()=>M.Hk,Interface:()=>M.vU,LogDescription:()=>M.CC,ParamType:()=>B._R,TransactionDescription:()=>M.vk,checkResultErrors:()=>P.BR,defaultAbiCoder:()=>I.$});var B=x(66151),I=x(72193),M=x(42840),P=x(92487)},42840:(q,k,x)=>{"use strict";x.d(k,{CC:()=>b,Hk:()=>E,vU:()=>R,vk:()=>y});var B=x(67296),I=x(36706),M=x(64153),P=x(50035),o=x(59558),w=x(2993),S=x(72193),D=x(66151),A=x(33190),g=x(16583);const p=new A.Logger(g.i);class b extends w.Description{}class y extends w.Description{}class m extends w.Description{}class E extends w.Description{static isIndexed(O){return!(!O||!O._isIndexed)}}const C={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function L(U,O){const j=new Error(`deferred error during ABI decoding triggered accessing ${U}`);return j.error=O,j}class R{constructor(O){let j=[];j="string"==typeof O?JSON.parse(O):O,(0,w.defineReadOnly)(this,"fragments",j.map(K=>D.HY.from(K)).filter(K=>null!=K)),(0,w.defineReadOnly)(this,"_abiCoder",(0,w.getStatic)(new.target,"getAbiCoder")()),(0,w.defineReadOnly)(this,"functions",{}),(0,w.defineReadOnly)(this,"errors",{}),(0,w.defineReadOnly)(this,"events",{}),(0,w.defineReadOnly)(this,"structs",{}),this.fragments.forEach(K=>{let Z=null;switch(K.type){case"constructor":return this.deploy?void p.warn("duplicate definition - constructor"):void(0,w.defineReadOnly)(this,"deploy",K);case"function":Z=this.functions;break;case"event":Z=this.events;break;case"error":Z=this.errors;break;default:return}let Q=K.format();Z[Q]?p.warn("duplicate definition - "+Q):Z[Q]=K}),this.deploy||(0,w.defineReadOnly)(this,"deploy",D.Xg.from({payable:!1,type:"constructor"})),(0,w.defineReadOnly)(this,"_isInterface",!0)}format(O){O||(O=D.pc.full),O===D.pc.sighash&&p.throwArgumentError("interface does not support formatting sighash","format",O);const j=this.fragments.map(K=>K.format(O));return O===D.pc.json?JSON.stringify(j.map(K=>JSON.parse(K))):j}static getAbiCoder(){return S.$}static getAddress(O){return(0,B.getAddress)(O)}static getSighash(O){return(0,M.hexDataSlice)((0,P.id)(O.format()),0,4)}static getEventTopic(O){return(0,P.id)(O.format())}getFunction(O){if((0,M.isHexString)(O)){for(const K in this.functions)if(O===this.getSighash(K))return this.functions[K];p.throwArgumentError("no matching function","sighash",O)}if(-1===O.indexOf("(")){const K=O.trim(),Z=Object.keys(this.functions).filter(Q=>Q.split("(")[0]===K);return 0===Z.length?p.throwArgumentError("no matching function","name",K):Z.length>1&&p.throwArgumentError("multiple matching functions","name",K),this.functions[Z[0]]}const j=this.functions[D.YW.fromString(O).format()];return j||p.throwArgumentError("no matching function","signature",O),j}getEvent(O){if((0,M.isHexString)(O)){const K=O.toLowerCase();for(const Z in this.events)if(K===this.getEventTopic(Z))return this.events[Z];p.throwArgumentError("no matching event","topichash",K)}if(-1===O.indexOf("(")){const K=O.trim(),Z=Object.keys(this.events).filter(Q=>Q.split("(")[0]===K);return 0===Z.length?p.throwArgumentError("no matching event","name",K):Z.length>1&&p.throwArgumentError("multiple matching events","name",K),this.events[Z[0]]}const j=this.events[D.QV.fromString(O).format()];return j||p.throwArgumentError("no matching event","signature",O),j}getError(O){if((0,M.isHexString)(O)){const K=(0,w.getStatic)(this.constructor,"getSighash");for(const Z in this.errors)if(O===K(this.errors[Z]))return this.errors[Z];p.throwArgumentError("no matching error","sighash",O)}if(-1===O.indexOf("(")){const K=O.trim(),Z=Object.keys(this.errors).filter(Q=>Q.split("(")[0]===K);return 0===Z.length?p.throwArgumentError("no matching error","name",K):Z.length>1&&p.throwArgumentError("multiple matching errors","name",K),this.errors[Z[0]]}const j=this.errors[D.YW.fromString(O).format()];return j||p.throwArgumentError("no matching error","signature",O),j}getSighash(O){if("string"==typeof O)try{O=this.getFunction(O)}catch(j){try{O=this.getError(O)}catch{throw j}}return(0,w.getStatic)(this.constructor,"getSighash")(O)}getEventTopic(O){return"string"==typeof O&&(O=this.getEvent(O)),(0,w.getStatic)(this.constructor,"getEventTopic")(O)}_decodeParams(O,j){return this._abiCoder.decode(O,j)}_encodeParams(O,j){return this._abiCoder.encode(O,j)}encodeDeploy(O){return this._encodeParams(this.deploy.inputs,O||[])}decodeErrorResult(O,j){"string"==typeof O&&(O=this.getError(O));const K=(0,M.arrayify)(j);return(0,M.hexlify)(K.slice(0,4))!==this.getSighash(O)&&p.throwArgumentError(`data signature does not match error ${O.name}.`,"data",(0,M.hexlify)(K)),this._decodeParams(O.inputs,K.slice(4))}encodeErrorResult(O,j){return"string"==typeof O&&(O=this.getError(O)),(0,M.hexlify)((0,M.concat)([this.getSighash(O),this._encodeParams(O.inputs,j||[])]))}decodeFunctionData(O,j){"string"==typeof O&&(O=this.getFunction(O));const K=(0,M.arrayify)(j);return(0,M.hexlify)(K.slice(0,4))!==this.getSighash(O)&&p.throwArgumentError(`data signature does not match function ${O.name}.`,"data",(0,M.hexlify)(K)),this._decodeParams(O.inputs,K.slice(4))}encodeFunctionData(O,j){return"string"==typeof O&&(O=this.getFunction(O)),(0,M.hexlify)((0,M.concat)([this.getSighash(O),this._encodeParams(O.inputs,j||[])]))}decodeFunctionResult(O,j){"string"==typeof O&&(O=this.getFunction(O));let K=(0,M.arrayify)(j),Z=null,Q="",W=null,X=null,_=null;switch(K.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(O.outputs,K)}catch{}break;case 4:{const t=(0,M.hexlify)(K.slice(0,4)),a=C[t];if(a)W=this._abiCoder.decode(a.inputs,K.slice(4)),X=a.name,_=a.signature,a.reason&&(Z=W[0]),"Error"===X?Q=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(W[0])}`:"Panic"===X&&(Q=`; VM Exception while processing transaction: reverted with panic code ${W[0]}`);else try{const s=this.getError(t);W=this._abiCoder.decode(s.inputs,K.slice(4)),X=s.name,_=s.format()}catch{}break}}return p.throwError("call revert exception"+Q,A.Logger.errors.CALL_EXCEPTION,{method:O.format(),data:(0,M.hexlify)(j),errorArgs:W,errorName:X,errorSignature:_,reason:Z})}encodeFunctionResult(O,j){return"string"==typeof O&&(O=this.getFunction(O)),(0,M.hexlify)(this._abiCoder.encode(O.outputs,j||[]))}encodeFilterTopics(O,j){"string"==typeof O&&(O=this.getEvent(O)),j.length>O.inputs.length&&p.throwError("too many arguments for "+O.format(),A.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:j});let K=[];O.anonymous||K.push(this.getEventTopic(O));const Z=(Q,W)=>"string"===Q.type?(0,P.id)(W):"bytes"===Q.type?(0,o.keccak256)((0,M.hexlify)(W)):("bool"===Q.type&&"boolean"==typeof W&&(W=W?"0x01":"0x00"),Q.type.match(/^u?int/)&&(W=I.O$.from(W).toHexString()),"address"===Q.type&&this._abiCoder.encode(["address"],[W]),(0,M.hexZeroPad)((0,M.hexlify)(W),32));for(j.forEach((Q,W)=>{let X=O.inputs[W];X.indexed?null==Q?K.push(null):"array"===X.baseType||"tuple"===X.baseType?p.throwArgumentError("filtering with tuples or arrays not supported","contract."+X.name,Q):Array.isArray(Q)?K.push(Q.map(_=>Z(X,_))):K.push(Z(X,Q)):null!=Q&&p.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+X.name,Q)});K.length&&null===K[K.length-1];)K.pop();return K}encodeEventLog(O,j){"string"==typeof O&&(O=this.getEvent(O));const K=[],Z=[],Q=[];return O.anonymous||K.push(this.getEventTopic(O)),j.length!==O.inputs.length&&p.throwArgumentError("event arguments/values mismatch","values",j),O.inputs.forEach((W,X)=>{const _=j[X];if(W.indexed)if("string"===W.type)K.push((0,P.id)(_));else if("bytes"===W.type)K.push((0,o.keccak256)(_));else{if("tuple"===W.baseType||"array"===W.baseType)throw new Error("not implemented");K.push(this._abiCoder.encode([W.type],[_]))}else Z.push(W),Q.push(_)}),{data:this._abiCoder.encode(Z,Q),topics:K}}decodeEventLog(O,j,K){if("string"==typeof O&&(O=this.getEvent(O)),null!=K&&!O.anonymous){let e=this.getEventTopic(O);(!(0,M.isHexString)(K[0],32)||K[0].toLowerCase()!==e)&&p.throwError("fragment/topic mismatch",A.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:K[0]}),K=K.slice(1)}let Z=[],Q=[],W=[];O.inputs.forEach((e,i)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(Z.push(D._R.fromObject({type:"bytes32",name:e.name})),W.push(!0)):(Z.push(e),W.push(!1)):(Q.push(e),W.push(!1))});let X=null!=K?this._abiCoder.decode(Z,(0,M.concat)(K)):null,_=this._abiCoder.decode(Q,j,!0),t=[],a=0,s=0;O.inputs.forEach((e,i)=>{if(e.indexed)if(null==X)t[i]=new E({_isIndexed:!0,hash:null});else if(W[i])t[i]=new E({_isIndexed:!0,hash:X[s++]});else try{t[i]=X[s++]}catch(u){t[i]=u}else try{t[i]=_[a++]}catch(u){t[i]=u}if(e.name&&null==t[e.name]){const u=t[i];u instanceof Error?Object.defineProperty(t,e.name,{enumerable:!0,get:()=>{throw L(`property ${JSON.stringify(e.name)}`,u)}}):t[e.name]=u}});for(let e=0;e{throw L(`index ${e}`,i)}})}return Object.freeze(t)}parseTransaction(O){let j=this.getFunction(O.data.substring(0,10).toLowerCase());return j?new y({args:this._abiCoder.decode(j.inputs,"0x"+O.data.substring(10)),functionFragment:j,name:j.name,signature:j.format(),sighash:this.getSighash(j),value:I.O$.from(O.value||"0")}):null}parseLog(O){let j=this.getEvent(O.topics[0]);return!j||j.anonymous?null:new b({eventFragment:j,name:j.name,signature:j.format(),topic:this.getEventTopic(j),args:this.decodeEventLog(j,O.data,O.topics)})}parseError(O){const j=(0,M.hexlify)(O);let K=this.getError(j.substring(0,10).toLowerCase());return K?new m({args:this._abiCoder.decode(K.inputs,"0x"+j.substring(10)),errorFragment:K,name:K.name,signature:K.format(),sighash:this.getSighash(K)}):null}static isInterface(O){return!(!O||!O._isInterface)}}},59114:(q,k,x)=>{"use strict";x.d(k,{Sg:()=>S,zt:()=>p});var B=x(36706),I=x(2993),M=x(33190);const w=new M.Logger("abstract-provider/5.7.0");class S extends I.Description{static isForkEvent(y){return!(!y||!y._isForkEvent)}}class p{constructor(){w.checkAbstract(new.target,p),(0,I.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){return b=this,y=void 0,E=function*(){const{block:y,gasPrice:m}=yield(0,I.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(R=>null)});let E=null,C=null,L=null;return y&&y.baseFeePerGas&&(E=y.baseFeePerGas,L=B.O$.from("1500000000"),C=y.baseFeePerGas.mul(2).add(L)),{lastBaseFeePerGas:E,maxFeePerGas:C,maxPriorityFeePerGas:L,gasPrice:m}},new((m=void 0)||(m=Promise))(function(L,R){function U(K){try{j(E.next(K))}catch(Z){R(Z)}}function O(K){try{j(E.throw(K))}catch(Z){R(Z)}}function j(K){K.done?L(K.value):function C(L){return L instanceof m?L:new m(function(R){R(L)})}(K.value).then(U,O)}j((E=E.apply(b,y||[])).next())});var b,y,m,E}addListener(y,m){return this.on(y,m)}removeListener(y,m){return this.off(y,m)}static isProvider(y){return!(!y||!y._isProvider)}}},43382:(q,k,x)=>{"use strict";x.d(k,{E:()=>D,b:()=>A});var B=x(2993),I=x(33190),P=function(g,p,b,y){return new(b||(b=Promise))(function(E,C){function L(O){try{U(y.next(O))}catch(j){C(j)}}function R(O){try{U(y.throw(O))}catch(j){C(j)}}function U(O){O.done?E(O.value):function m(E){return E instanceof b?E:new b(function(C){C(E)})}(O.value).then(L,R)}U((y=y.apply(g,p||[])).next())})};const o=new I.Logger("abstract-signer/5.7.0"),w=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],S=[I.Logger.errors.INSUFFICIENT_FUNDS,I.Logger.errors.NONCE_EXPIRED,I.Logger.errors.REPLACEMENT_UNDERPRICED];class D{constructor(){o.checkAbstract(new.target,D),(0,B.defineReadOnly)(this,"_isSigner",!0)}getBalance(p){return P(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),p)})}getTransactionCount(p){return P(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),p)})}estimateGas(p){return P(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const b=yield(0,B.resolveProperties)(this.checkTransaction(p));return yield this.provider.estimateGas(b)})}call(p,b){return P(this,void 0,void 0,function*(){this._checkProvider("call");const y=yield(0,B.resolveProperties)(this.checkTransaction(p));return yield this.provider.call(y,b)})}sendTransaction(p){return P(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const b=yield this.populateTransaction(p),y=yield this.signTransaction(b);return yield this.provider.sendTransaction(y)})}getChainId(){return P(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return P(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return P(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(p){return P(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(p)})}checkTransaction(p){for(const y in p)-1===w.indexOf(y)&&o.throwArgumentError("invalid transaction key: "+y,"transaction",p);const b=(0,B.shallowCopy)(p);return b.from=null==b.from?this.getAddress():Promise.all([Promise.resolve(b.from),this.getAddress()]).then(y=>(y[0].toLowerCase()!==y[1].toLowerCase()&&o.throwArgumentError("from address mismatch","transaction",p),y[0])),b}populateTransaction(p){return P(this,void 0,void 0,function*(){const b=yield(0,B.resolveProperties)(this.checkTransaction(p));null!=b.to&&(b.to=Promise.resolve(b.to).then(m=>P(this,void 0,void 0,function*(){if(null==m)return null;const E=yield this.resolveName(m);return null==E&&o.throwArgumentError("provided ENS name resolves to null","tx.to",m),E})),b.to.catch(m=>{}));const y=null!=b.maxFeePerGas||null!=b.maxPriorityFeePerGas;if(null==b.gasPrice||2!==b.type&&!y?(0===b.type||1===b.type)&&y&&o.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",p):o.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",p),2!==b.type&&null!=b.type||null==b.maxFeePerGas||null==b.maxPriorityFeePerGas)if(0===b.type||1===b.type)null==b.gasPrice&&(b.gasPrice=this.getGasPrice());else{const m=yield this.getFeeData();if(null==b.type)if(null!=m.maxFeePerGas&&null!=m.maxPriorityFeePerGas)if(b.type=2,null!=b.gasPrice){const E=b.gasPrice;delete b.gasPrice,b.maxFeePerGas=E,b.maxPriorityFeePerGas=E}else null==b.maxFeePerGas&&(b.maxFeePerGas=m.maxFeePerGas),null==b.maxPriorityFeePerGas&&(b.maxPriorityFeePerGas=m.maxPriorityFeePerGas);else null!=m.gasPrice?(y&&o.throwError("network does not support EIP-1559",I.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==b.gasPrice&&(b.gasPrice=m.gasPrice),b.type=0):o.throwError("failed to get consistent fee data",I.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===b.type&&(null==b.maxFeePerGas&&(b.maxFeePerGas=m.maxFeePerGas),null==b.maxPriorityFeePerGas&&(b.maxPriorityFeePerGas=m.maxPriorityFeePerGas))}else b.type=2;return null==b.nonce&&(b.nonce=this.getTransactionCount("pending")),null==b.gasLimit&&(b.gasLimit=this.estimateGas(b).catch(m=>{if(S.indexOf(m.code)>=0)throw m;return o.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",I.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:m,tx:b})})),b.chainId=null==b.chainId?this.getChainId():Promise.all([Promise.resolve(b.chainId),this.getChainId()]).then(m=>(0!==m[1]&&m[0]!==m[1]&&o.throwArgumentError("chainId address mismatch","transaction",p),m[0])),yield(0,B.resolveProperties)(b)})}_checkProvider(p){this.provider||o.throwError("missing provider",I.Logger.errors.UNSUPPORTED_OPERATION,{operation:p||"_checkProvider"})}static isSigner(p){return!(!p||!p._isSigner)}}class A extends D{constructor(p,b){super(),(0,B.defineReadOnly)(this,"address",p),(0,B.defineReadOnly)(this,"provider",b||null)}getAddress(){return Promise.resolve(this.address)}_fail(p,b){return Promise.resolve().then(()=>{o.throwError(p,I.Logger.errors.UNSUPPORTED_OPERATION,{operation:b})})}signMessage(p){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(p){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(p,b,y){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(p){return new A(this.address,p)}}},67296:(q,k,x)=>{"use strict";x.r(k),x.d(k,{getAddress:()=>m,getContractAddress:()=>L,getCreate2Address:()=>R,getIcapAddress:()=>C,isAddress:()=>E});var B=x(64153),I=x(36706),M=x(59558),P=x(10714);const S=new(x(33190).Logger)("address/5.7.0");function D(U){(0,B.isHexString)(U,20)||S.throwArgumentError("invalid address","address",U);const O=(U=U.toLowerCase()).substring(2).split(""),j=new Uint8Array(40);for(let Z=0;Z<40;Z++)j[Z]=O[Z].charCodeAt(0);const K=(0,B.arrayify)((0,M.keccak256)(j));for(let Z=0;Z<40;Z+=2)K[Z>>1]>>4>=8&&(O[Z]=O[Z].toUpperCase()),(15&K[Z>>1])>=8&&(O[Z+1]=O[Z+1].toUpperCase());return"0x"+O.join("")}const p={};for(let U=0;U<10;U++)p[String(U)]=String(U);for(let U=0;U<26;U++)p[String.fromCharCode(65+U)]=String(10+U);const b=Math.floor(function g(U){return Math.log10?Math.log10(U):Math.log(U)/Math.LN10}(9007199254740991));function y(U){let O=(U=(U=U.toUpperCase()).substring(4)+U.substring(0,2)+"00").split("").map(K=>p[K]).join("");for(;O.length>=b;){let K=O.substring(0,b);O=parseInt(K,10)%97+O.substring(K.length)}let j=String(98-parseInt(O,10)%97);for(;j.length<2;)j="0"+j;return j}function m(U){let O=null;if("string"!=typeof U&&S.throwArgumentError("invalid address","address",U),U.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==U.substring(0,2)&&(U="0x"+U),O=D(U),U.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&O!==U&&S.throwArgumentError("bad address checksum","address",U);else if(U.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(U.substring(2,4)!==y(U)&&S.throwArgumentError("bad icap checksum","address",U),O=(0,I.g$)(U.substring(4));O.length<40;)O="0"+O;O=D("0x"+O)}else S.throwArgumentError("invalid address","address",U);return O}function E(U){try{return m(U),!0}catch{}return!1}function C(U){let O=(0,I.t2)(m(U).substring(2)).toUpperCase();for(;O.length<30;)O="0"+O;return"XE"+y("XE00"+O)+O}function L(U){let O=null;try{O=m(U.from)}catch{S.throwArgumentError("missing from address","transaction",U)}const j=(0,B.stripZeros)((0,B.arrayify)(I.O$.from(U.nonce).toHexString()));return m((0,B.hexDataSlice)((0,M.keccak256)((0,P.encode)([O,j])),12))}function R(U,O,j){return 32!==(0,B.hexDataLength)(O)&&S.throwArgumentError("salt must be 32 bytes","salt",O),32!==(0,B.hexDataLength)(j)&&S.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",j),m((0,B.hexDataSlice)((0,M.keccak256)((0,B.concat)(["0xff",m(U),O,j])),12))}},76813:(q,k,x)=>{"use strict";x.d(k,{J:()=>I,c:()=>M});var B=x(64153);function I(P){P=atob(P);const o=[];for(let w=0;w{"use strict";x.r(k),x.d(k,{decode:()=>B.J,encode:()=>B.c});var B=x(76813)},50750:(q,k,x)=>{"use strict";x.r(k),x.d(k,{Base32:()=>P,Base58:()=>o,BaseX:()=>M});var B=x(64153),I=x(2993);class M{constructor(S){(0,I.defineReadOnly)(this,"alphabet",S),(0,I.defineReadOnly)(this,"base",S.length),(0,I.defineReadOnly)(this,"_alphabetMap",{}),(0,I.defineReadOnly)(this,"_leader",S.charAt(0));for(let D=0;D0;)A.push(b%this.base),b=b/this.base|0}let g="";for(let p=0;0===D[p]&&p=0;--p)g+=this.alphabet[A[p]];return g}decode(S){if("string"!=typeof S)throw new TypeError("Expected String");let D=[];if(0===S.length)return new Uint8Array(D);D.push(0);for(let A=0;A>=8;for(;p>0;)D.push(255&p),p>>=8}for(let A=0;S[A]===this._leader&&A{"use strict";x.d(k,{i:()=>B});const B="bignumber/5.7.0"},36706:(q,k,x)=>{"use strict";x.d(k,{O$:()=>b,Zm:()=>g,g$:()=>L,t2:()=>R});var B=x(17907),I=x.n(B),M=x(64153),P=x(33190),o=x(70214),w=I().BN;const S=new P.Logger(o.i),D={},A=9007199254740991;function g(U){return null!=U&&(b.isBigNumber(U)||"number"==typeof U&&U%1==0||"string"==typeof U&&!!U.match(/^-?[0-9]+$/)||(0,M.isHexString)(U)||"bigint"==typeof U||(0,M.isBytes)(U))}let p=!1;class b{constructor(O,j){O!==D&&S.throwError("cannot call constructor directly; use BigNumber.from",P.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=j,this._isBigNumber=!0,Object.freeze(this)}fromTwos(O){return m(E(this).fromTwos(O))}toTwos(O){return m(E(this).toTwos(O))}abs(){return"-"===this._hex[0]?b.from(this._hex.substring(1)):this}add(O){return m(E(this).add(E(O)))}sub(O){return m(E(this).sub(E(O)))}div(O){return b.from(O).isZero()&&C("division-by-zero","div"),m(E(this).div(E(O)))}mul(O){return m(E(this).mul(E(O)))}mod(O){const j=E(O);return j.isNeg()&&C("division-by-zero","mod"),m(E(this).umod(j))}pow(O){const j=E(O);return j.isNeg()&&C("negative-power","pow"),m(E(this).pow(j))}and(O){const j=E(O);return(this.isNegative()||j.isNeg())&&C("unbound-bitwise-result","and"),m(E(this).and(j))}or(O){const j=E(O);return(this.isNegative()||j.isNeg())&&C("unbound-bitwise-result","or"),m(E(this).or(j))}xor(O){const j=E(O);return(this.isNegative()||j.isNeg())&&C("unbound-bitwise-result","xor"),m(E(this).xor(j))}mask(O){return(this.isNegative()||O<0)&&C("negative-width","mask"),m(E(this).maskn(O))}shl(O){return(this.isNegative()||O<0)&&C("negative-width","shl"),m(E(this).shln(O))}shr(O){return(this.isNegative()||O<0)&&C("negative-width","shr"),m(E(this).shrn(O))}eq(O){return E(this).eq(E(O))}lt(O){return E(this).lt(E(O))}lte(O){return E(this).lte(E(O))}gt(O){return E(this).gt(E(O))}gte(O){return E(this).gte(E(O))}isNegative(){return"-"===this._hex[0]}isZero(){return E(this).isZero()}toNumber(){try{return E(this).toNumber()}catch{C("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return S.throwError("this platform does not support BigInt",P.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?p||(p=!0,S.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):S.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",P.Logger.errors.UNEXPECTED_ARGUMENT,{})),E(this).toString(10)}toHexString(){return this._hex}toJSON(O){return{type:"BigNumber",hex:this.toHexString()}}static from(O){if(O instanceof b)return O;if("string"==typeof O)return O.match(/^-?0x[0-9a-f]+$/i)?new b(D,y(O)):O.match(/^-?[0-9]+$/)?new b(D,y(new w(O))):S.throwArgumentError("invalid BigNumber string","value",O);if("number"==typeof O)return O%1&&C("underflow","BigNumber.from",O),(O>=A||O<=-A)&&C("overflow","BigNumber.from",O),b.from(String(O));const j=O;if("bigint"==typeof j)return b.from(j.toString());if((0,M.isBytes)(j))return b.from((0,M.hexlify)(j));if(j)if(j.toHexString){const K=j.toHexString();if("string"==typeof K)return b.from(K)}else{let K=j._hex;if(null==K&&"BigNumber"===j.type&&(K=j.hex),"string"==typeof K&&((0,M.isHexString)(K)||"-"===K[0]&&(0,M.isHexString)(K.substring(1))))return b.from(K)}return S.throwArgumentError("invalid BigNumber value","value",O)}static isBigNumber(O){return!(!O||!O._isBigNumber)}}function y(U){if("string"!=typeof U)return y(U.toString(16));if("-"===U[0])return"-"===(U=U.substring(1))[0]&&S.throwArgumentError("invalid hex","value",U),"0x00"===(U=y(U))?U:"-"+U;if("0x"!==U.substring(0,2)&&(U="0x"+U),"0x"===U)return"0x00";for(U.length%2&&(U="0x0"+U.substring(2));U.length>4&&"0x00"===U.substring(0,4);)U="0x"+U.substring(4);return U}function m(U){return b.from(y(U))}function E(U){const O=b.from(U).toHexString();return new w("-"===O[0]?"-"+O.substring(3):O.substring(2),16)}function C(U,O,j){const K={fault:U,operation:O};return null!=j&&(K.value=j),S.throwError(U,P.Logger.errors.NUMERIC_FAULT,K)}function L(U){return new w(U,36).toString(16)}function R(U){return new w(U,16).toString(36)}},41614:(q,k,x)=>{"use strict";x.d(k,{Ox:()=>y,S5:()=>b,xs:()=>E});var B=x(64153),I=x(33190),M=x(70214),P=x(36706);const o=new I.Logger(M.i),w={},S=P.O$.from(0),D=P.O$.from(-1);function A(R,U,O,j){const K={fault:U,operation:O};return void 0!==j&&(K.value=j),o.throwError(R,I.Logger.errors.NUMERIC_FAULT,K)}let g="0";for(;g.length<256;)g+=g;function p(R){if("number"!=typeof R)try{R=P.O$.from(R).toNumber()}catch{}return"number"==typeof R&&R>=0&&R<=256&&!(R%1)?"1"+g.substring(0,R):o.throwArgumentError("invalid decimal size","decimals",R)}function b(R,U){null==U&&(U=0);const O=p(U),j=(R=P.O$.from(R)).lt(S);j&&(R=R.mul(D));let K=R.mod(O).toString();for(;K.length2&&o.throwArgumentError("too many decimal points","value",R);let Z=K[0],Q=K[1];for(Z||(Z="0"),Q||(Q="0");"0"===Q[Q.length-1];)Q=Q.substring(0,Q.length-1);for(Q.length>O.length-1&&A("fractional component exceeds decimals","underflow","parseFixed"),""===Q&&(Q="0");Q.lengthnull==U[Q]?X:(typeof U[Q]!==W&&o.throwArgumentError("invalid fixed format ("+Q+" not "+W+")","format."+Q,U[Q]),U[Q]);O=Z("signed","boolean",O),j=Z("width","number",j),K=Z("decimals","number",K)}return j%8&&o.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",j),K>80&&o.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",K),new m(w,O,j,K)}}class E{constructor(U,O,j,K){U!==w&&o.throwError("cannot use FixedNumber constructor; use FixedNumber.from",I.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=K,this._hex=O,this._value=j,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(U){this.format.name!==U.format.name&&o.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",U)}addUnsafe(U){this._checkFormat(U);const O=y(this._value,this.format.decimals),j=y(U._value,U.format.decimals);return E.fromValue(O.add(j),this.format.decimals,this.format)}subUnsafe(U){this._checkFormat(U);const O=y(this._value,this.format.decimals),j=y(U._value,U.format.decimals);return E.fromValue(O.sub(j),this.format.decimals,this.format)}mulUnsafe(U){this._checkFormat(U);const O=y(this._value,this.format.decimals),j=y(U._value,U.format.decimals);return E.fromValue(O.mul(j).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(U){this._checkFormat(U);const O=y(this._value,this.format.decimals),j=y(U._value,U.format.decimals);return E.fromValue(O.mul(this.format._multiplier).div(j),this.format.decimals,this.format)}floor(){const U=this.toString().split(".");1===U.length&&U.push("0");let O=E.from(U[0],this.format);const j=!U[1].match(/^(0*)$/);return this.isNegative()&&j&&(O=O.subUnsafe(C.toFormat(O.format))),O}ceiling(){const U=this.toString().split(".");1===U.length&&U.push("0");let O=E.from(U[0],this.format);const j=!U[1].match(/^(0*)$/);return!this.isNegative()&&j&&(O=O.addUnsafe(C.toFormat(O.format))),O}round(U){null==U&&(U=0);const O=this.toString().split(".");if(1===O.length&&O.push("0"),(U<0||U>80||U%1)&&o.throwArgumentError("invalid decimal count","decimals",U),O[1].length<=U)return this;const j=E.from("1"+g.substring(0,U),this.format),K=L.toFormat(this.format);return this.mulUnsafe(j).addUnsafe(K).floor().divUnsafe(j)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(U){if(null==U)return this._hex;U%8&&o.throwArgumentError("invalid byte width","width",U);const O=P.O$.from(this._hex).fromTwos(this.format.width).toTwos(U).toHexString();return(0,B.hexZeroPad)(O,U/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(U){return E.fromString(this._value,U)}static fromValue(U,O,j){return null==j&&null!=O&&!(0,P.Zm)(O)&&(j=O,O=null),null==O&&(O=0),null==j&&(j="fixed"),E.fromString(b(U,O),m.from(j))}static fromString(U,O){null==O&&(O="fixed");const j=m.from(O),K=y(U,j.decimals);!j.signed&&K.lt(S)&&A("unsigned value cannot be negative","overflow","value",U);let Z=null;j.signed?Z=K.toTwos(j.width).toHexString():(Z=K.toHexString(),Z=(0,B.hexZeroPad)(Z,j.width/8));const Q=b(K,j.decimals);return new E(w,Z,Q,j)}static fromBytes(U,O){null==O&&(O="fixed");const j=m.from(O);if((0,B.arrayify)(U).length>j.width/8)throw new Error("overflow");let K=P.O$.from(U);j.signed&&(K=K.fromTwos(j.width));const Z=K.toTwos((j.signed?0:1)+j.width).toHexString(),Q=b(K,j.decimals);return new E(w,Z,Q,j)}static from(U,O){if("string"==typeof U)return E.fromString(U,O);if((0,B.isBytes)(U))return E.fromBytes(U,O);try{return E.fromValue(U,0,O)}catch(j){if(j.code!==I.Logger.errors.INVALID_ARGUMENT)throw j}return o.throwArgumentError("invalid FixedNumber value","value",U)}static isFixedNumber(U){return!(!U||!U._isFixedNumber)}}const C=E.from(1),L=E.from("0.5")},64153:(q,k,x)=>{"use strict";x.r(k),x.d(k,{arrayify:()=>A,concat:()=>g,hexConcat:()=>R,hexDataLength:()=>C,hexDataSlice:()=>L,hexStripZeros:()=>O,hexValue:()=>U,hexZeroPad:()=>j,hexlify:()=>E,isBytes:()=>D,isBytesLike:()=>w,isHexString:()=>y,joinSignature:()=>Z,splitSignature:()=>K,stripZeros:()=>p,zeroPad:()=>b});const M=new(x(33190).Logger)("bytes/5.7.0");function P(Q){return!!Q.toHexString}function o(Q){return Q.slice||(Q.slice=function(){const W=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(Q,W)))}),Q}function w(Q){return y(Q)&&!(Q.length%2)||D(Q)}function S(Q){return"number"==typeof Q&&Q==Q&&Q%1==0}function D(Q){if(null==Q)return!1;if(Q.constructor===Uint8Array)return!0;if("string"==typeof Q||!S(Q.length)||Q.length<0)return!1;for(let W=0;W=256)return!1}return!0}function A(Q,W){if(W||(W={}),"number"==typeof Q){M.checkSafeUint53(Q,"invalid arrayify value");const X=[];for(;Q;)X.unshift(255&Q),Q=parseInt(String(Q/256));return 0===X.length&&X.push(0),o(new Uint8Array(X))}if(W.allowMissingPrefix&&"string"==typeof Q&&"0x"!==Q.substring(0,2)&&(Q="0x"+Q),P(Q)&&(Q=Q.toHexString()),y(Q)){let X=Q.substring(2);X.length%2&&("left"===W.hexPad?X="0"+X:"right"===W.hexPad?X+="0":M.throwArgumentError("hex data is odd-length","value",Q));const _=[];for(let t=0;tA(t)),X=W.reduce((t,a)=>t+a.length,0),_=new Uint8Array(X);return W.reduce((t,a)=>(_.set(a,t),t+a.length),0),o(_)}function p(Q){let W=A(Q);if(0===W.length)return W;let X=0;for(;XW&&M.throwArgumentError("value out of range","value",arguments[0]);const X=new Uint8Array(W);return X.set(Q,W-Q.length),o(X)}function y(Q,W){return!("string"!=typeof Q||!Q.match(/^0x[0-9A-Fa-f]*$/)||W&&Q.length!==2+2*W)}const m="0123456789abcdef";function E(Q,W){if(W||(W={}),"number"==typeof Q){M.checkSafeUint53(Q,"invalid hexlify value");let X="";for(;Q;)X=m[15&Q]+X,Q=Math.floor(Q/16);return X.length?(X.length%2&&(X="0"+X),"0x"+X):"0x00"}if("bigint"==typeof Q)return(Q=Q.toString(16)).length%2?"0x0"+Q:"0x"+Q;if(W.allowMissingPrefix&&"string"==typeof Q&&"0x"!==Q.substring(0,2)&&(Q="0x"+Q),P(Q))return Q.toHexString();if(y(Q))return Q.length%2&&("left"===W.hexPad?Q="0x0"+Q.substring(2):"right"===W.hexPad?Q+="0":M.throwArgumentError("hex data is odd-length","value",Q)),Q.toLowerCase();if(D(Q)){let X="0x";for(let _=0;_>4]+m[15&t]}return X}return M.throwArgumentError("invalid hexlify value","value",Q)}function C(Q){if("string"!=typeof Q)Q=E(Q);else if(!y(Q)||Q.length%2)return null;return(Q.length-2)/2}function L(Q,W,X){return"string"!=typeof Q?Q=E(Q):(!y(Q)||Q.length%2)&&M.throwArgumentError("invalid hexData","value",Q),W=2+2*W,null!=X?"0x"+Q.substring(W,2+2*X):"0x"+Q.substring(W)}function R(Q){let W="0x";return Q.forEach(X=>{W+=E(X).substring(2)}),W}function U(Q){const W=O(E(Q,{hexPad:"left"}));return"0x"===W?"0x0":W}function O(Q){"string"!=typeof Q&&(Q=E(Q)),y(Q)||M.throwArgumentError("invalid hex string","value",Q),Q=Q.substring(2);let W=0;for(;W2*W+2&&M.throwArgumentError("value out of range","value",arguments[1]);Q.length<2*W+2;)Q="0x0"+Q.substring(2);return Q}function K(Q){const W={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(w(Q)){let X=A(Q);64===X.length?(W.v=27+(X[32]>>7),X[32]&=127,W.r=E(X.slice(0,32)),W.s=E(X.slice(32,64))):65===X.length?(W.r=E(X.slice(0,32)),W.s=E(X.slice(32,64)),W.v=X[64]):M.throwArgumentError("invalid signature string","signature",Q),W.v<27&&(0===W.v||1===W.v?W.v+=27:M.throwArgumentError("signature invalid v byte","signature",Q)),W.recoveryParam=1-W.v%2,W.recoveryParam&&(X[32]|=128),W._vs=E(X.slice(32,64))}else{if(W.r=Q.r,W.s=Q.s,W.v=Q.v,W.recoveryParam=Q.recoveryParam,W._vs=Q._vs,null!=W._vs){const t=b(A(W._vs),32);W._vs=E(t);const a=t[0]>=128?1:0;null==W.recoveryParam?W.recoveryParam=a:W.recoveryParam!==a&&M.throwArgumentError("signature recoveryParam mismatch _vs","signature",Q),t[0]&=127;const s=E(t);null==W.s?W.s=s:W.s!==s&&M.throwArgumentError("signature v mismatch _vs","signature",Q)}null==W.recoveryParam?null==W.v?M.throwArgumentError("signature missing v and recoveryParam","signature",Q):W.recoveryParam=0===W.v||1===W.v?W.v:1-W.v%2:null==W.v?W.v=27+W.recoveryParam:W.recoveryParam!==(0===W.v||1===W.v?W.v:1-W.v%2)&&M.throwArgumentError("signature recoveryParam mismatch v","signature",Q),null!=W.r&&y(W.r)?W.r=j(W.r,32):M.throwArgumentError("signature missing or invalid r","signature",Q),null!=W.s&&y(W.s)?W.s=j(W.s,32):M.throwArgumentError("signature missing or invalid s","signature",Q);const X=A(W.s);X[0]>=128&&M.throwArgumentError("signature s out of range","signature",Q),W.recoveryParam&&(X[0]|=128);const _=E(X);W._vs&&(y(W._vs)||M.throwArgumentError("signature invalid _vs","signature",Q),W._vs=j(W._vs,32)),null==W._vs?W._vs=_:W._vs!==_&&M.throwArgumentError("signature _vs mismatch v and s","signature",Q)}return W.yParityAndS=W._vs,W.compact=W.r+W.yParityAndS.substring(2),W}function Z(Q){return E(g([(Q=K(Q)).r,Q.s,Q.recoveryParam?"0x1c":"0x1b"]))}},55643:(q,k,x)=>{"use strict";x.d(k,{d:()=>B});const B="0x0000000000000000000000000000000000000000"},53149:(q,k,x)=>{"use strict";x.d(k,{$B:()=>D,Bz:()=>S,Ce:()=>w,PS:()=>A,Py:()=>o,_Y:()=>M,fh:()=>P,tL:()=>I});var B=x(36706);const I=B.O$.from(-1),M=B.O$.from(0),P=B.O$.from(1),o=B.O$.from(2),w=B.O$.from("1000000000000000000"),S=B.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),D=B.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),A=B.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},23253:(q,k,x)=>{"use strict";x.d(k,{R:()=>B});const B="0x0000000000000000000000000000000000000000000000000000000000000000"},27233:(q,k,x)=>{"use strict";x.r(k),x.d(k,{AddressZero:()=>B.d,EtherSymbol:()=>P,HashZero:()=>M.R,MaxInt256:()=>I.PS,MaxUint256:()=>I.Bz,MinInt256:()=>I.$B,NegativeOne:()=>I.tL,One:()=>I.fh,Two:()=>I.Py,WeiPerEther:()=>I.Ce,Zero:()=>I._Y});var B=x(55643),I=x(53149),M=x(23253);const P="\u039e"},19644:(q,k,x)=>{"use strict";x.d(k,{VZ:()=>a,CH:()=>s,lV:()=>e});var B=x(92487),I=x(42840),M=x(59114),P=x(43382),o=x(67296),w=x(36706),S=x(64153),D=x(2993),A=x(38806),g=x(33190),b=function(i,u,d,c){return new(d||(d=Promise))(function(h,F){function T(Ae){try{ae(c.next(Ae))}catch(fe){F(fe)}}function H(Ae){try{ae(c.throw(Ae))}catch(fe){F(fe)}}function ae(Ae){Ae.done?h(Ae.value):function r(h){return h instanceof d?h:new d(function(F){F(h)})}(Ae.value).then(T,H)}ae((c=c.apply(i,u||[])).next())})};const y=new g.Logger("contracts/5.7.0"),m={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function E(i,u){return b(this,void 0,void 0,function*(){const d=yield u;"string"!=typeof d&&y.throwArgumentError("invalid address or ENS name","name",d);try{return(0,o.getAddress)(d)}catch{}i||y.throwError("a provider or signer is needed to resolve ENS names",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const c=yield i.resolveName(d);return null==c&&y.throwArgumentError("resolver or addr is not configured for ENS name","name",d),c})}function C(i,u,d){return b(this,void 0,void 0,function*(){return Array.isArray(d)?yield Promise.all(d.map((c,r)=>C(i,Array.isArray(u)?u[r]:u[c.name],c))):"address"===d.type?yield E(i,u):"tuple"===d.type?yield C(i,u,d.components):"array"===d.baseType?Array.isArray(u)?yield Promise.all(u.map(c=>C(i,c,d.arrayChildren))):Promise.reject(y.makeError("invalid value for array",g.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:u})):u})}function L(i,u,d){return b(this,void 0,void 0,function*(){let c={};d.length===u.inputs.length+1&&"object"==typeof d[d.length-1]&&(c=(0,D.shallowCopy)(d.pop())),y.checkArgumentCount(d.length,u.inputs.length,"passed to contract"),i.signer?c.from=c.from?(0,D.resolveProperties)({override:E(i.signer,c.from),signer:i.signer.getAddress()}).then(ae=>b(this,void 0,void 0,function*(){return(0,o.getAddress)(ae.signer)!==ae.override&&y.throwError("Contract with a Signer cannot override from",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),ae.override})):i.signer.getAddress():c.from&&(c.from=E(i.provider,c.from));const r=yield(0,D.resolveProperties)({args:C(i.signer||i.provider,d,u.inputs),address:i.resolvedAddress,overrides:(0,D.resolveProperties)(c)||{}}),h=i.interface.encodeFunctionData(u,r.args),F={data:h,to:r.address},T=r.overrides;if(null!=T.nonce&&(F.nonce=w.O$.from(T.nonce).toNumber()),null!=T.gasLimit&&(F.gasLimit=w.O$.from(T.gasLimit)),null!=T.gasPrice&&(F.gasPrice=w.O$.from(T.gasPrice)),null!=T.maxFeePerGas&&(F.maxFeePerGas=w.O$.from(T.maxFeePerGas)),null!=T.maxPriorityFeePerGas&&(F.maxPriorityFeePerGas=w.O$.from(T.maxPriorityFeePerGas)),null!=T.from&&(F.from=T.from),null!=T.type&&(F.type=T.type),null!=T.accessList&&(F.accessList=(0,A.accessListify)(T.accessList)),null==F.gasLimit&&null!=u.gas){let ae=21e3;const Ae=(0,S.arrayify)(h);for(let fe=0;fenull!=c[ae]);return H.length&&y.throwError(`cannot override ${H.map(ae=>JSON.stringify(ae)).join(",")}`,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:H}),F})}function O(i,u){const d=u.wait.bind(u);u.wait=c=>d(c).then(r=>(r.events=r.logs.map(h=>{let F=(0,D.deepCopy)(h),T=null;try{T=i.interface.parseLog(h)}catch{}return T&&(F.args=T.args,F.decode=(H,ae)=>i.interface.decodeEventLog(T.eventFragment,H,ae),F.event=T.name,F.eventSignature=T.signature),F.removeListener=()=>i.provider,F.getBlock=()=>i.provider.getBlock(r.blockHash),F.getTransaction=()=>i.provider.getTransaction(r.transactionHash),F.getTransactionReceipt=()=>Promise.resolve(r),F}),r))}function j(i,u,d){const c=i.signer||i.provider;return function(...r){return b(this,void 0,void 0,function*(){let h;if(r.length===u.inputs.length+1&&"object"==typeof r[r.length-1]){const H=(0,D.shallowCopy)(r.pop());null!=H.blockTag&&(h=yield H.blockTag),delete H.blockTag,r.push(H)}null!=i.deployTransaction&&(yield i._deployed(h));const F=yield L(i,u,r),T=yield c.call(F,h);try{let H=i.interface.decodeFunctionResult(u,T);return d&&1===u.outputs.length&&(H=H[0]),H}catch(H){throw H.code===g.Logger.errors.CALL_EXCEPTION&&(H.address=i.address,H.args=r,H.transaction=F),H}})}}function Z(i,u,d){return u.constant?j(i,u,d):function K(i,u){return function(...d){return b(this,void 0,void 0,function*(){i.signer||y.throwError("sending a transaction requires a signer",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=i.deployTransaction&&(yield i._deployed());const c=yield L(i,u,d),r=yield i.signer.sendTransaction(c);return O(i,r),r})}}(i,u)}function Q(i){return!i.address||null!=i.topics&&0!==i.topics.length?(i.address||"*")+"@"+(i.topics?i.topics.map(u=>Array.isArray(u)?u.join("|"):u).join(":"):""):"*"}class W{constructor(u,d){(0,D.defineReadOnly)(this,"tag",u),(0,D.defineReadOnly)(this,"filter",d),this._listeners=[]}addListener(u,d){this._listeners.push({listener:u,once:d})}removeListener(u){let d=!1;this._listeners=this._listeners.filter(c=>!(!d&&c.listener===u&&(d=!0,1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(u=>u.listener)}listenerCount(){return this._listeners.length}run(u){const d=this.listenerCount();return this._listeners=this._listeners.filter(c=>{const r=u.slice();return setTimeout(()=>{c.listener.apply(this,r)},0),!c.once}),d}prepareEvent(u){}getEmit(u){return[u]}}class X extends W{constructor(){super("error",null)}}class _ extends W{constructor(u,d,c,r){const h={address:u};let F=d.getEventTopic(c);r?(F!==r[0]&&y.throwArgumentError("topic mismatch","topics",r),h.topics=r.slice()):h.topics=[F],super(Q(h),h),(0,D.defineReadOnly)(this,"address",u),(0,D.defineReadOnly)(this,"interface",d),(0,D.defineReadOnly)(this,"fragment",c)}prepareEvent(u){super.prepareEvent(u),u.event=this.fragment.name,u.eventSignature=this.fragment.format(),u.decode=(d,c)=>this.interface.decodeEventLog(this.fragment,d,c);try{u.args=this.interface.decodeEventLog(this.fragment,u.data,u.topics)}catch(d){u.args=null,u.decodeError=d}}getEmit(u){const d=(0,B.BR)(u.args);if(d.length)throw d[0].error;const c=(u.args||[]).slice();return c.push(u),c}}class t extends W{constructor(u,d){super("*",{address:u}),(0,D.defineReadOnly)(this,"address",u),(0,D.defineReadOnly)(this,"interface",d)}prepareEvent(u){super.prepareEvent(u);try{const d=this.interface.parseLog(u);u.event=d.name,u.eventSignature=d.signature,u.decode=(c,r)=>this.interface.decodeEventLog(d.eventFragment,c,r),u.args=d.args}catch{}}}class a{constructor(u,d,c){(0,D.defineReadOnly)(this,"interface",(0,D.getStatic)(new.target,"getInterface")(d)),null==c?((0,D.defineReadOnly)(this,"provider",null),(0,D.defineReadOnly)(this,"signer",null)):P.E.isSigner(c)?((0,D.defineReadOnly)(this,"provider",c.provider||null),(0,D.defineReadOnly)(this,"signer",c)):M.zt.isProvider(c)?((0,D.defineReadOnly)(this,"provider",c),(0,D.defineReadOnly)(this,"signer",null)):y.throwArgumentError("invalid signer or provider","signerOrProvider",c),(0,D.defineReadOnly)(this,"callStatic",{}),(0,D.defineReadOnly)(this,"estimateGas",{}),(0,D.defineReadOnly)(this,"functions",{}),(0,D.defineReadOnly)(this,"populateTransaction",{}),(0,D.defineReadOnly)(this,"filters",{});{const F={};Object.keys(this.interface.events).forEach(T=>{const H=this.interface.events[T];(0,D.defineReadOnly)(this.filters,T,(...ae)=>({address:this.address,topics:this.interface.encodeFilterTopics(H,ae)})),F[H.name]||(F[H.name]=[]),F[H.name].push(T)}),Object.keys(F).forEach(T=>{const H=F[T];1===H.length?(0,D.defineReadOnly)(this.filters,T,this.filters[H[0]]):y.warn(`Duplicate definition of ${T} (${H.join(", ")})`)})}if((0,D.defineReadOnly)(this,"_runningEvents",{}),(0,D.defineReadOnly)(this,"_wrappedEmits",{}),null==u&&y.throwArgumentError("invalid contract address or ENS name","addressOrName",u),(0,D.defineReadOnly)(this,"address",u),this.provider)(0,D.defineReadOnly)(this,"resolvedAddress",E(this.provider,u));else try{(0,D.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,o.getAddress)(u)))}catch{y.throwError("provider is required to use ENS name as contract address",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(F=>{});const r={},h={};Object.keys(this.interface.functions).forEach(F=>{const T=this.interface.functions[F];if(h[F])y.warn(`Duplicate ABI entry for ${JSON.stringify(F)}`);else{h[F]=!0;{const H=T.name;r[`%${H}`]||(r[`%${H}`]=[]),r[`%${H}`].push(F)}null==this[F]&&(0,D.defineReadOnly)(this,F,Z(this,T,!0)),null==this.functions[F]&&(0,D.defineReadOnly)(this.functions,F,Z(this,T,!1)),null==this.callStatic[F]&&(0,D.defineReadOnly)(this.callStatic,F,j(this,T,!0)),null==this.populateTransaction[F]&&(0,D.defineReadOnly)(this.populateTransaction,F,function R(i,u){return function(...d){return L(i,u,d)}}(this,T)),null==this.estimateGas[F]&&(0,D.defineReadOnly)(this.estimateGas,F,function U(i,u){const d=i.signer||i.provider;return function(...c){return b(this,void 0,void 0,function*(){d||y.throwError("estimate require a provider or signer",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const r=yield L(i,u,c);return yield d.estimateGas(r)})}}(this,T))}}),Object.keys(r).forEach(F=>{const T=r[F];if(T.length>1)return;F=F.substring(1);const H=T[0];try{null==this[F]&&(0,D.defineReadOnly)(this,F,this[H])}catch{}null==this.functions[F]&&(0,D.defineReadOnly)(this.functions,F,this.functions[H]),null==this.callStatic[F]&&(0,D.defineReadOnly)(this.callStatic,F,this.callStatic[H]),null==this.populateTransaction[F]&&(0,D.defineReadOnly)(this.populateTransaction,F,this.populateTransaction[H]),null==this.estimateGas[F]&&(0,D.defineReadOnly)(this.estimateGas,F,this.estimateGas[H])})}static getContractAddress(u){return(0,o.getContractAddress)(u)}static getInterface(u){return I.vU.isInterface(u)?u:new I.vU(u)}deployed(){return this._deployed()}_deployed(u){return this._deployedPromise||(this._deployedPromise=this.deployTransaction?this.deployTransaction.wait().then(()=>this):this.provider.getCode(this.address,u).then(d=>("0x"===d&&y.throwError("contract not deployed",g.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(u){this.signer||y.throwError("sending a transactions require a signer",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const d=(0,D.shallowCopy)(u||{});return["from","to"].forEach(function(c){null!=d[c]&&y.throwError("cannot override "+c,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:c})}),d.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(d))}connect(u){"string"==typeof u&&(u=new P.b(u,this.provider));const d=new this.constructor(this.address,this.interface,u);return this.deployTransaction&&(0,D.defineReadOnly)(d,"deployTransaction",this.deployTransaction),d}attach(u){return new this.constructor(u,this.interface,this.signer||this.provider)}static isIndexed(u){return I.Hk.isIndexed(u)}_normalizeRunningEvent(u){return this._runningEvents[u.tag]?this._runningEvents[u.tag]:u}_getRunningEvent(u){if("string"==typeof u){if("error"===u)return this._normalizeRunningEvent(new X);if("event"===u)return this._normalizeRunningEvent(new W("event",null));if("*"===u)return this._normalizeRunningEvent(new t(this.address,this.interface));const d=this.interface.getEvent(u);return this._normalizeRunningEvent(new _(this.address,this.interface,d))}if(u.topics&&u.topics.length>0){try{const c=u.topics[0];if("string"!=typeof c)throw new Error("invalid topic");const r=this.interface.getEvent(c);return this._normalizeRunningEvent(new _(this.address,this.interface,r,u.topics))}catch{}const d={address:this.address,topics:u.topics};return this._normalizeRunningEvent(new W(Q(d),d))}return this._normalizeRunningEvent(new t(this.address,this.interface))}_checkRunningEvents(u){if(0===u.listenerCount()){delete this._runningEvents[u.tag];const d=this._wrappedEmits[u.tag];d&&u.filter&&(this.provider.off(u.filter,d),delete this._wrappedEmits[u.tag])}}_wrapEvent(u,d,c){const r=(0,D.deepCopy)(d);return r.removeListener=()=>{!c||(u.removeListener(c),this._checkRunningEvents(u))},r.getBlock=()=>this.provider.getBlock(d.blockHash),r.getTransaction=()=>this.provider.getTransaction(d.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(d.transactionHash),u.prepareEvent(r),r}_addEventListener(u,d,c){if(this.provider||y.throwError("events require a provider or a signer with a provider",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),u.addListener(d,c),this._runningEvents[u.tag]=u,!this._wrappedEmits[u.tag]){const r=h=>{let F=this._wrapEvent(u,h,d);if(null==F.decodeError)try{const T=u.getEmit(F);this.emit(u.filter,...T)}catch(T){F.decodeError=T.error}null!=u.filter&&this.emit("event",F),null!=F.decodeError&&this.emit("error",F.decodeError,F)};this._wrappedEmits[u.tag]=r,null!=u.filter&&this.provider.on(u.filter,r)}}queryFilter(u,d,c){const r=this._getRunningEvent(u),h=(0,D.shallowCopy)(r.filter);return"string"==typeof d&&(0,S.isHexString)(d,32)?(null!=c&&y.throwArgumentError("cannot specify toBlock with blockhash","toBlock",c),h.blockHash=d):(h.fromBlock=d??0,h.toBlock=c??"latest"),this.provider.getLogs(h).then(F=>F.map(T=>this._wrapEvent(r,T,null)))}on(u,d){return this._addEventListener(this._getRunningEvent(u),d,!1),this}once(u,d){return this._addEventListener(this._getRunningEvent(u),d,!0),this}emit(u,...d){if(!this.provider)return!1;const c=this._getRunningEvent(u),r=c.run(d)>0;return this._checkRunningEvents(c),r}listenerCount(u){return this.provider?null==u?Object.keys(this._runningEvents).reduce((d,c)=>d+this._runningEvents[c].listenerCount(),0):this._getRunningEvent(u).listenerCount():0}listeners(u){if(!this.provider)return[];if(null==u){const d=[];for(let c in this._runningEvents)this._runningEvents[c].listeners().forEach(r=>{d.push(r)});return d}return this._getRunningEvent(u).listeners()}removeAllListeners(u){if(!this.provider)return this;if(null==u){for(const c in this._runningEvents){const r=this._runningEvents[c];r.removeAllListeners(),this._checkRunningEvents(r)}return this}const d=this._getRunningEvent(u);return d.removeAllListeners(),this._checkRunningEvents(d),this}off(u,d){if(!this.provider)return this;const c=this._getRunningEvent(u);return c.removeListener(d),this._checkRunningEvents(c),this}removeListener(u,d){return this.off(u,d)}}class s extends a{}class e{constructor(u,d,c){let r=null;r="string"==typeof d?d:(0,S.isBytes)(d)?(0,S.hexlify)(d):d&&"string"==typeof d.object?d.object:"!","0x"!==r.substring(0,2)&&(r="0x"+r),(!(0,S.isHexString)(r)||r.length%2)&&y.throwArgumentError("invalid bytecode","bytecode",d),c&&!P.E.isSigner(c)&&y.throwArgumentError("invalid signer","signer",c),(0,D.defineReadOnly)(this,"bytecode",r),(0,D.defineReadOnly)(this,"interface",(0,D.getStatic)(new.target,"getInterface")(u)),(0,D.defineReadOnly)(this,"signer",c||null)}getDeployTransaction(...u){let d={};if(u.length===this.interface.deploy.inputs.length+1&&"object"==typeof u[u.length-1]){d=(0,D.shallowCopy)(u.pop());for(const c in d)if(!m[c])throw new Error("unknown transaction override "+c)}return["data","from","to"].forEach(c=>{null!=d[c]&&y.throwError("cannot override "+c,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:c})}),d.value&&!w.O$.from(d.value).isZero()&&!this.interface.deploy.payable&&y.throwError("non-payable constructor cannot override value",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:d.value}),y.checkArgumentCount(u.length,this.interface.deploy.inputs.length," in Contract constructor"),d.data=(0,S.hexlify)((0,S.concat)([this.bytecode,this.interface.encodeDeploy(u)])),d}deploy(...u){return b(this,void 0,void 0,function*(){let d={};u.length===this.interface.deploy.inputs.length+1&&(d=u.pop()),y.checkArgumentCount(u.length,this.interface.deploy.inputs.length," in Contract constructor");const c=yield C(this.signer,u,this.interface.deploy.inputs);c.push(d);const r=this.getDeployTransaction(...c),h=yield this.signer.sendTransaction(r),F=(0,D.getStatic)(this.constructor,"getContractAddress")(h),T=(0,D.getStatic)(this.constructor,"getContract")(F,this.interface,this.signer);return O(T,h),(0,D.defineReadOnly)(T,"deployTransaction",h),T})}attach(u){return this.constructor.getContract(u,this.interface,this.signer)}connect(u){return new this.constructor(this.interface,this.bytecode,u)}static fromSolidity(u,d){null==u&&y.throwError("missing compiler output",g.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof u&&(u=JSON.parse(u));let r=null;return u.bytecode?r=u.bytecode:u.evm&&u.evm.bytecode&&(r=u.evm.bytecode),new this(u.abi,r,d)}static getInterface(u){return s.getInterface(u)}static getContractAddress(u){return(0,o.getContractAddress)(u)}static getContract(u,d,c){return new s(u,d,c)}}},33732:(q,k,x)=>{"use strict";x.d(k,{i:()=>B});const B="hash/5.7.0"},50035:(q,k,x)=>{"use strict";x.d(k,{id:()=>M});var B=x(59558),I=x(9496);function M(P){return(0,B.keccak256)((0,I.Y0)(P))}},3730:(q,k,x)=>{"use strict";x.r(k),x.d(k,{_TypedDataEncoder:()=>P.E,dnsEncode:()=>I.Kn,ensNormalize:()=>I.w3,hashMessage:()=>M.r,id:()=>B.id,isValidName:()=>I.r1,messagePrefix:()=>M.B,namehash:()=>I.VM});var B=x(50035),I=x(4235),M=x(37732),P=x(68402)},37732:(q,k,x)=>{"use strict";x.d(k,{B:()=>P,r:()=>o});var B=x(64153),I=x(59558),M=x(9496);const P="\x19Ethereum Signed Message:\n";function o(w){return"string"==typeof w&&(w=(0,M.Y0)(w)),(0,I.keccak256)((0,B.concat)([(0,M.Y0)(P),(0,M.Y0)(String(w.length)),w]))}},4235:(q,k,x)=>{"use strict";x.d(k,{Kn:()=>ee,w3:()=>Ae,r1:()=>fe,VM:()=>Ee});var B=x(64153),I=x(9496),M=x(59558),P=x(33190),o=x(33732),w=x(76813);function S(se,ze){null==ze&&(ze=1);const ye=[],ue=ye.forEach,je=function(Ne,Ye){ue.call(Ne,function(Et){Ye>0&&Array.isArray(Et)?je(Et,Ye-1):ye.push(Et)})};return je(se,ze),ye}function b(se){return 1&se?~se>>1:se>>1}function m(se,ze){let ye=Array(se);for(let ue=0,je=-1;ueze[Ye]):ye}function U(se,ze,ye){let ue=Array(se).fill(void 0).map(()=>[]);for(let je=0;jeue[Ye].push(Ne));return ue}function O(se,ze){let ye=1+ze(),ue=ze(),je=function R(se){let ze=[];for(;;){let ye=se();if(0==ye)break;ze.push(ye)}return ze}(ze);return S(U(je.length,1+se,ze).map((Ye,Et)=>{const ot=Ye[0],lt=Ye.slice(1);return Array(je[Et]).fill(void 0).map((Lt,ct)=>{let He=ct*ue;return[ot+ct*ye,lt.map(Ue=>Ue+He)]})}))}function j(se,ze){return U(1+ze(),1+se,ze).map(je=>[je[0],je.slice(1)])}const Q=function Z(){return function p(se){return function g(se){let ze=0;return()=>se[ze++]}(function A(se){let ze=0;function ye(){return se[ze++]<<8|se[ze++]}let ue=ye(),je=1,Ne=[0,1];for(let ce=1;ce>--ot&1}const He=Math.pow(2,31),Ue=He>>>1,Se=Ue>>1,Ve=He-1;let Le=0;for(let ce=0;ce<31;ce++)Le=Le<<1|Lt();let Y=[],z=0,G=He;for(;;){let ce=Math.floor(((Le-z+1)*je-1)/G),Ge=0,De=ue;for(;De-Ge>1;){let xe=Ge+De>>>1;ce>>1|Lt(),we=we<<1^Ue,Oe=(Oe^Ue)<<1|Ue|1;z=we,G=1+Oe-we}let re=ue-4;return Y.map(ce=>{switch(ce-re){case 3:return re+65792+(se[Et++]<<16|se[Et++]<<8|se[Et++]);case 2:return re+256+(se[Et++]<<8|se[Et++]);case 1:return re+se[Et++];default:return ce-1}})}(se))}((0,w.J)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}(),W=new Set(C(Q)),X=new Set(C(Q)),_=function L(se){let ze=[];for(;;){let ye=se();if(0==ye)break;ze.push(O(ye,se))}for(;;){let ye=se()-1;if(ye<0)break;ze.push(j(ye,se))}return function D(se){const ze={};for(let ye=0;yeue-je);return function ye(){let ue=[];for(;;){let lt=C(se,ze);if(0==lt.length)break;ue.push({set:new Set(lt),node:ye()})}ue.sort((lt,Lt)=>Lt.set.size-lt.set.size);let je=se(),Ne=je%3;je=je/3|0;let Ye=!!(1&je);return je>>=1,{branches:ue,valid:Ne,fe0f:Ye,save:1==je,check:2==je}}()}(Q);function e(se){return(0,I.XL)(se)}function i(se){return se.filter(ze=>65039!=ze)}function u(se){for(let ze of se.split(".")){let ye=e(ze);try{for(let ue=ye.lastIndexOf(95)-1;ue>=0;ue--)if(95!==ye[ue])throw new Error("underscore only allowed at start");if(ye.length>=4&&ye.every(ue=>ue<128)&&45===ye[2]&&45===ye[3])throw new Error("invalid label extension")}catch(ue){throw new Error(`Invalid label "${ze}": ${ue.message}`)}}return se}function h(se,ze){var ye;let je,Ne,ue=t,Ye=[],Et=se.length;for(ze&&(ze.length=0);Et;){let ot=se[--Et];if(ue=null===(ye=ue.branches.find(lt=>lt.set.has(ot)))||void 0===ye?void 0:ye.node,!ue)break;if(ue.save)Ne=ot;else if(ue.check&&ot===Ne)break;Ye.push(ot),ue.fe0f&&(Ye.push(65039),Et>0&&65039==se[Et-1]&&Et--),ue.valid&&(je=Ye.slice(),2==ue.valid&&je.splice(1,1),ze&&ze.push(...se.slice(Et).reverse()),se.length=Et)}return je}const F=new P.Logger(o.i),T=new Uint8Array(32);function H(se){if(0===se.length)throw new Error("invalid ENS name; empty component");return se}function ae(se){const ze=(0,I.Y0)(function d(se){return u(function c(se,ze){let ye=e(se).reverse(),ue=[];for(;ye.length;){let je=h(ye);if(je){ue.push(...ze(je));continue}let Ne=ye.pop();if(W.has(Ne)){ue.push(Ne);continue}if(X.has(Ne))continue;let Ye=_[Ne];if(!Ye)throw new Error(`Disallowed codepoint: 0x${Ne.toString(16).toUpperCase()}`);ue.push(...Ye)}return u(function r(se){return se.normalize("NFC")}(String.fromCodePoint(...ue)))}(se,i))}(se)),ye=[];if(0===se.length)return ye;let ue=0;for(let je=0;je=ze.length)throw new Error("invalid ENS name; empty component");return ye.push(H(ze.slice(ue))),ye}function Ae(se){return ae(se).map(ze=>(0,I.ZN)(ze)).join(".")}function fe(se){try{return 0!==ae(se).length}catch{}return!1}function Ee(se){"string"!=typeof se&&F.throwArgumentError("invalid ENS name; not a string","name",se);let ze=T;const ye=ae(se);for(;ye.length;)ze=(0,M.keccak256)((0,B.concat)([ze,(0,M.keccak256)(ye.pop())]));return(0,B.hexlify)(ze)}function ee(se){return(0,B.hexlify)((0,B.concat)(ae(se).map(ze=>{if(ze.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const ye=new Uint8Array(ze.length+1);return ye.set(ze,1),ye[0]=ye.length-1,ye})))+"00"}T.fill(0)},68402:(q,k,x)=>{"use strict";x.d(k,{E:()=>W});var B=x(67296),I=x(36706),M=x(64153),P=x(59558),o=x(2993),w=x(33190),S=x(33732),D=x(50035);const g=new w.Logger(S.i),p=new Uint8Array(32);p.fill(0);const b=I.O$.from(-1),y=I.O$.from(0),m=I.O$.from(1),E=I.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),L=(0,M.hexZeroPad)(m.toHexString(),32),R=(0,M.hexZeroPad)(y.toHexString(),32),U={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},O=["name","version","chainId","verifyingContract","salt"];function j(X){return function(_){return"string"!=typeof _&&g.throwArgumentError(`invalid domain value for ${JSON.stringify(X)}`,`domain.${X}`,_),_}}const K={name:j("name"),version:j("version"),chainId:function(X){try{return I.O$.from(X).toString()}catch{}return g.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",X)},verifyingContract:function(X){try{return(0,B.getAddress)(X).toLowerCase()}catch{}return g.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",X)},salt:function(X){try{const _=(0,M.arrayify)(X);if(32!==_.length)throw new Error("bad length");return(0,M.hexlify)(_)}catch{}return g.throwArgumentError('invalid domain value "salt"',"domain.salt",X)}};function Z(X){{const _=X.match(/^(u?)int(\d*)$/);if(_){const t=""===_[1],a=parseInt(_[2]||"256");(a%8!=0||a>256||_[2]&&_[2]!==String(a))&&g.throwArgumentError("invalid numeric width","type",X);const s=E.mask(t?a-1:a),e=t?s.add(m).mul(b):y;return function(i){const u=I.O$.from(i);return(u.lt(e)||u.gt(s))&&g.throwArgumentError(`value out-of-bounds for ${X}`,"value",i),(0,M.hexZeroPad)(u.toTwos(256).toHexString(),32)}}}{const _=X.match(/^bytes(\d+)$/);if(_){const t=parseInt(_[1]);return(0===t||t>32||_[1]!==String(t))&&g.throwArgumentError("invalid bytes width","type",X),function(a){return(0,M.arrayify)(a).length!==t&&g.throwArgumentError(`invalid length for ${X}`,"value",a),function C(X){const _=(0,M.arrayify)(X),t=_.length%32;return t?(0,M.hexConcat)([_,p.slice(t)]):(0,M.hexlify)(_)}(a)}}}switch(X){case"address":return function(_){return(0,M.hexZeroPad)((0,B.getAddress)(_),32)};case"bool":return function(_){return _?L:R};case"bytes":return function(_){return(0,P.keccak256)(_)};case"string":return function(_){return(0,D.id)(_)}}return null}function Q(X,_){return`${X}(${_.map(({name:t,type:a})=>a+" "+t).join(",")})`}class W{constructor(_){(0,o.defineReadOnly)(this,"types",Object.freeze((0,o.deepCopy)(_))),(0,o.defineReadOnly)(this,"_encoderCache",{}),(0,o.defineReadOnly)(this,"_types",{});const t={},a={},s={};Object.keys(_).forEach(u=>{t[u]={},a[u]=[],s[u]={}});for(const u in _){const d={};_[u].forEach(c=>{d[c.name]&&g.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(u)}`,"types",_),d[c.name]=!0;const r=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];r===u&&g.throwArgumentError(`circular type reference to ${JSON.stringify(r)}`,"types",_),!Z(r)&&(a[r]||g.throwArgumentError(`unknown type ${JSON.stringify(r)}`,"types",_),a[r].push(u),t[u][r]=!0)})}const e=Object.keys(a).filter(u=>0===a[u].length);0===e.length?g.throwArgumentError("missing primary type","types",_):e.length>1&&g.throwArgumentError(`ambiguous primary types or unused types: ${e.map(u=>JSON.stringify(u)).join(", ")}`,"types",_),(0,o.defineReadOnly)(this,"primaryType",e[0]),function i(u,d){d[u]&&g.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",_),d[u]=!0,Object.keys(t[u]).forEach(c=>{!a[c]||(i(c,d),Object.keys(d).forEach(r=>{s[r][c]=!0}))}),delete d[u]}(this.primaryType,{});for(const u in s){const d=Object.keys(s[u]);d.sort(),this._types[u]=Q(u,_[u])+d.map(c=>Q(c,_[c])).join("")}}getEncoder(_){let t=this._encoderCache[_];return t||(t=this._encoderCache[_]=this._getEncoder(_)),t}_getEncoder(_){{const s=Z(_);if(s)return s}const t=_.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const s=t[1],e=this.getEncoder(s),i=parseInt(t[3]);return u=>{i>=0&&u.length!==i&&g.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",u);let d=u.map(e);return this._types[s]&&(d=d.map(P.keccak256)),(0,P.keccak256)((0,M.hexConcat)(d))}}const a=this.types[_];if(a){const s=(0,D.id)(this._types[_]);return e=>{const i=a.map(({name:u,type:d})=>{const c=this.getEncoder(d)(e[u]);return this._types[d]?(0,P.keccak256)(c):c});return i.unshift(s),(0,M.hexConcat)(i)}}return g.throwArgumentError(`unknown type: ${_}`,"type",_)}encodeType(_){const t=this._types[_];return t||g.throwArgumentError(`unknown type: ${JSON.stringify(_)}`,"name",_),t}encodeData(_,t){return this.getEncoder(_)(t)}hashStruct(_,t){return(0,P.keccak256)(this.encodeData(_,t))}encode(_){return this.encodeData(this.primaryType,_)}hash(_){return this.hashStruct(this.primaryType,_)}_visit(_,t,a){if(Z(_))return a(_,t);const s=_.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){const i=s[1],u=parseInt(s[3]);return u>=0&&t.length!==u&&g.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(d=>this._visit(i,d,a))}const e=this.types[_];return e?e.reduce((i,{name:u,type:d})=>(i[u]=this._visit(d,t[u],a),i),{}):g.throwArgumentError(`unknown type: ${_}`,"type",_)}visit(_,t){return this._visit(this.primaryType,_,t)}static from(_){return new W(_)}static getPrimaryType(_){return W.from(_).primaryType}static hashStruct(_,t,a){return W.from(t).hashStruct(_,a)}static hashDomain(_){const t=[];for(const a in _){const s=U[a];s||g.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(a)}`,"domain",_),t.push({name:a,type:s})}return t.sort((a,s)=>O.indexOf(a.name)-O.indexOf(s.name)),W.hashStruct("EIP712Domain",{EIP712Domain:t},_)}static encode(_,t,a){return(0,M.hexConcat)(["0x1901",W.hashDomain(_),W.from(t).hash(a)])}static hash(_,t,a){return(0,P.keccak256)(W.encode(_,t,a))}static resolveNames(_,t,a,s){return function(X,_,t,a){return new(t||(t=Promise))(function(e,i){function u(r){try{c(a.next(r))}catch(h){i(h)}}function d(r){try{c(a.throw(r))}catch(h){i(h)}}function c(r){r.done?e(r.value):function s(e){return e instanceof t?e:new t(function(i){i(e)})}(r.value).then(u,d)}c((a=a.apply(X,_||[])).next())})}(this,void 0,void 0,function*(){_=(0,o.shallowCopy)(_);const e={};_.verifyingContract&&!(0,M.isHexString)(_.verifyingContract,20)&&(e[_.verifyingContract]="0x");const i=W.from(t);i.visit(a,(u,d)=>("address"===u&&!(0,M.isHexString)(d,20)&&(e[d]="0x"),d));for(const u in e)e[u]=yield s(u);return _.verifyingContract&&e[_.verifyingContract]&&(_.verifyingContract=e[_.verifyingContract]),a=i.visit(a,(u,d)=>"address"===u&&e[d]?e[d]:d),{domain:_,value:a}})}static getPayload(_,t,a){W.hashDomain(_);const s={},e=[];O.forEach(d=>{const c=_[d];null!=c&&(s[d]=K[d](c),e.push({name:d,type:U[d]}))});const i=W.from(t),u=(0,o.shallowCopy)(t);return u.EIP712Domain?g.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):u.EIP712Domain=e,i.encode(a),{types:u,domain:s,primaryType:i.primaryType,message:i.visit(a,(d,c)=>{if(d.match(/^bytes(\d*)/))return(0,M.hexlify)((0,M.arrayify)(c));if(d.match(/^u?int/))return I.O$.from(c).toString();switch(d){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return"string"!=typeof c&&g.throwArgumentError("invalid string","value",c),c}return g.throwArgumentError("unsupported type","type",d)})}}}},44708:(q,k,x)=>{"use strict";x.r(k),x.d(k,{HDNode:()=>W,defaultPath:()=>Q,entropyToMnemonic:()=>t,getAccountPath:()=>s,isValidMnemonic:()=>a,mnemonicToEntropy:()=>_,mnemonicToSeed:()=>X});var B=x(50750),I=x(64153),M=x(36706),P=x(9496),o=x(79291),w=x(2993),S=x(31570),D=x(33264),A=x(98181),g=x(38806),p=x(721);const m=new(x(33190).Logger)("hdnode/5.7.0"),E=M.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),C=(0,P.Y0)("Bitcoin seed"),L=2147483648;function R(e){return(1<=256)throw new Error("Depth too large!");return j((0,I.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,I.hexlify)(this.depth),this.parentFingerprint,(0,I.hexZeroPad)((0,I.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,I.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new W(Z,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(i){if(i>4294967295)throw new Error("invalid index - "+String(i));let u=this.path;u&&(u+="/"+(i&~L));const d=new Uint8Array(37);if(i&L){if(!this.privateKey)throw new Error("cannot derive child of neutered node");d.set((0,I.arrayify)(this.privateKey),1),u&&(u+="'")}else d.set((0,I.arrayify)(this.publicKey));for(let Ae=24;Ae>=0;Ae-=8)d[33+(Ae>>3)]=i>>24-Ae&255;const c=(0,I.arrayify)((0,D.Gy)(A.p.sha512,this.chainCode,d)),r=c.slice(0,32),h=c.slice(32);let F=null,T=null;this.privateKey?F=O(M.O$.from(r).add(this.privateKey).mod(E)):T=new S.SigningKey((0,I.hexlify)(r))._addPoint(this.publicKey);let H=u;const ae=this.mnemonic;return ae&&(H=Object.freeze({phrase:ae.phrase,path:u,locale:ae.locale||"en"})),new W(Z,F,T,this.fingerprint,O(h),i,this.depth+1,H)}derivePath(i){const u=i.split("/");if(0===u.length||"m"===u[0]&&0!==this.depth)throw new Error("invalid path - "+i);"m"===u[0]&&u.shift();let d=this;for(let c=0;c=L)throw new Error("invalid path index - "+r);d=d._derive(L+h)}else{if(!r.match(/^[0-9]+$/))throw new Error("invalid path component - "+r);{const h=parseInt(r);if(h>=L)throw new Error("invalid path index - "+r);d=d._derive(h)}}}return d}static _fromSeed(i,u){const d=(0,I.arrayify)(i);if(d.length<16||d.length>64)throw new Error("invalid seed");const c=(0,I.arrayify)((0,D.Gy)(A.p.sha512,C,d));return new W(Z,O(c.slice(0,32)),null,"0x00000000",O(c.slice(32)),0,0,u)}static fromMnemonic(i,u,d){return i=t(_(i,d=K(d)),d),W._fromSeed(X(i,u),{phrase:i,path:"m",locale:d.locale})}static fromSeed(i){return W._fromSeed(i,null)}static fromExtendedKey(i){const u=B.Base58.decode(i);(82!==u.length||j(u.slice(0,78))!==i)&&m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const d=u[4],c=(0,I.hexlify)(u.slice(5,9)),r=parseInt((0,I.hexlify)(u.slice(9,13)).substring(2),16),h=(0,I.hexlify)(u.slice(13,45)),F=u.slice(45,78);switch((0,I.hexlify)(u.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new W(Z,null,(0,I.hexlify)(F),c,h,r,d,null);case"0x0488ade4":case"0x04358394 ":if(0!==F[0])break;return new W(Z,(0,I.hexlify)(F.slice(1)),null,c,h,r,d,null)}return m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function X(e,i){i||(i="");const u=(0,P.Y0)("mnemonic"+i,P.Uj.NFKD);return(0,o.n)((0,P.Y0)(e,P.Uj.NFKD),u,2048,64,"sha512")}function _(e,i){i=K(i),m.checkNormalize();const u=i.split(e);if(u.length%3!=0)throw new Error("invalid mnemonic");const d=(0,I.arrayify)(new Uint8Array(Math.ceil(11*u.length/8)));let c=0;for(let H=0;H>3]|=1<<7-c%8),c++}const r=32*u.length/3,F=R(u.length/3);if(((0,I.arrayify)((0,D.JQ)(d.slice(0,r/8)))[0]&F)!=(d[d.length-1]&F))throw new Error("invalid checksum");return(0,I.hexlify)(d.slice(0,r/8))}function t(e,i){if(i=K(i),(e=(0,I.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const u=[0];let d=11;for(let h=0;h8?(u[u.length-1]<<=8,u[u.length-1]|=e[h],d-=8):(u[u.length-1]<<=d,u[u.length-1]|=e[h]>>8-d,u.push(e[h]&U(8-d)),d+=3);const c=e.length/4,r=(0,I.arrayify)((0,D.JQ)(e))[0]&R(c);return u[u.length-1]<<=c,u[u.length-1]|=r>>8-c,i.join(u.map(h=>i.getWord(h)))}function a(e,i){try{return _(e,i),!0}catch{}return!1}function s(e){return("number"!=typeof e||e<0||e>=L||e%1)&&m.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},32040:(q,k,x)=>{"use strict";x.d(k,{i:()=>B});const B="json-wallets/5.7.0"},33895:(q,k,x)=>{"use strict";x.r(k),x.d(k,{decryptCrowdsale:()=>m,decryptJsonWallet:()=>L,decryptJsonWalletSync:()=>R,decryptKeystore:()=>C.pe,decryptKeystoreSync:()=>C.hb,encryptKeystore:()=>C.HI,getJsonWalletAddress:()=>E.Rb,isCrowdsaleWallet:()=>E.LW,isKeystoreWallet:()=>E.aO});var B=x(16563),I=x.n(B),M=x(67296),P=x(64153),o=x(59558),w=x(79291),S=x(9496),D=x(2993),A=x(33190),g=x(32040),p=x(1504);const b=new A.Logger(g.i);class y extends D.Description{isCrowdsaleAccount(O){return!(!O||!O._isCrowdsaleAccount)}}function m(U,O){const j=JSON.parse(U);O=(0,p.Ij)(O);const K=(0,M.getAddress)((0,p.gx)(j,"ethaddr")),Z=(0,p.p3)((0,p.gx)(j,"encseed"));(!Z||Z.length%16!=0)&&b.throwArgumentError("invalid encseed","json",U);const Q=(0,P.arrayify)((0,w.n)(O,O,2e3,32,"sha256")).slice(0,16),W=Z.slice(0,16),X=Z.slice(16),_=new(I().ModeOfOperation.cbc)(Q,W),t=I().padding.pkcs7.strip((0,P.arrayify)(_.decrypt(X)));let a="";for(let i=0;i{"use strict";x.d(k,{LW:()=>I,Rb:()=>P,aO:()=>M});var B=x(67296);function I(o){let w=null;try{w=JSON.parse(o)}catch{return!1}return w.encseed&&w.ethaddr}function M(o){let w=null;try{w=JSON.parse(o)}catch{return!1}return!(!w.version||parseInt(w.version)!==w.version||3!==parseInt(w.version))}function P(o){if(I(o))try{return(0,B.getAddress)(JSON.parse(o).ethaddr)}catch{return null}if(M(o))try{return(0,B.getAddress)(JSON.parse(o).address)}catch{return null}return null}},28720:(q,k,x)=>{"use strict";x.d(k,{HI:()=>_,hb:()=>W,pe:()=>X});var B=x(16563),I=x.n(B),M=x(99338),P=x.n(M),o=x(67296),w=x(64153),S=x(44708),D=x(59558),A=x(79291),g=x(6803),p=x(2993),b=x(38806),y=x(1504),m=x(33190),E=x(32040);const L=new m.Logger(E.i);function R(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}class U extends p.Description{isKeystoreAccount(a){return!(!a||!a._isKeystoreAccount)}}function j(t,a){const s=(0,y.p3)((0,y.gx)(t,"crypto/ciphertext"));if((0,w.hexlify)((0,D.keccak256)((0,w.concat)([a.slice(16,32),s]))).substring(2)!==(0,y.gx)(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=function O(t,a,s){if("aes-128-ctr"===(0,y.gx)(t,"crypto/cipher")){const i=(0,y.p3)((0,y.gx)(t,"crypto/cipherparams/iv")),u=new(I().Counter)(i),d=new(I().ModeOfOperation.ctr)(a,u);return(0,w.arrayify)(d.decrypt(s))}return null}(t,a.slice(0,16),s);i||L.throwError("unsupported cipher",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const u=a.slice(32,64),d=(0,b.computeAddress)(i);if(t.address){let r=t.address.toLowerCase();if("0x"!==r.substring(0,2)&&(r="0x"+r),(0,o.getAddress)(r)!==d)throw new Error("address mismatch")}const c={_isKeystoreAccount:!0,address:d,privateKey:(0,w.hexlify)(i)};if("0.1"===(0,y.gx)(t,"x-ethers/version")){const r=(0,y.p3)((0,y.gx)(t,"x-ethers/mnemonicCiphertext")),h=(0,y.p3)((0,y.gx)(t,"x-ethers/mnemonicCounter")),F=new(I().Counter)(h),T=new(I().ModeOfOperation.ctr)(u,F),H=(0,y.gx)(t,"x-ethers/path")||S.defaultPath,ae=(0,y.gx)(t,"x-ethers/locale")||"en",Ae=(0,w.arrayify)(T.decrypt(r));try{const fe=(0,S.entropyToMnemonic)(Ae,ae),Ee=S.HDNode.fromMnemonic(fe,null,ae).derivePath(H);if(Ee.privateKey!=c.privateKey)throw new Error("mnemonic mismatch");c.mnemonic=Ee.mnemonic}catch(fe){if(fe.code!==m.Logger.errors.INVALID_ARGUMENT||"wordlist"!==fe.argument)throw fe}}return new U(c)}function K(t,a,s,e,i){return(0,w.arrayify)((0,A.n)(t,a,s,e,i))}function Z(t,a,s,e,i){return Promise.resolve(K(t,a,s,e,i))}function Q(t,a,s,e,i){const u=(0,y.Ij)(a),d=(0,y.gx)(t,"crypto/kdf");if(d&&"string"==typeof d){const c=function(r,h){return L.throwArgumentError("invalid key-derivation function parameters",r,h)};if("scrypt"===d.toLowerCase()){const r=(0,y.p3)((0,y.gx)(t,"crypto/kdfparams/salt")),h=parseInt((0,y.gx)(t,"crypto/kdfparams/n")),F=parseInt((0,y.gx)(t,"crypto/kdfparams/r")),T=parseInt((0,y.gx)(t,"crypto/kdfparams/p"));(!h||!F||!T)&&c("kdf",d),0!=(h&h-1)&&c("N",h);const H=parseInt((0,y.gx)(t,"crypto/kdfparams/dklen"));return 32!==H&&c("dklen",H),e(u,r,h,F,T,64,i)}if("pbkdf2"===d.toLowerCase()){const r=(0,y.p3)((0,y.gx)(t,"crypto/kdfparams/salt"));let h=null;const F=(0,y.gx)(t,"crypto/kdfparams/prf");"hmac-sha256"===F?h="sha256":"hmac-sha512"===F?h="sha512":c("prf",F);const T=parseInt((0,y.gx)(t,"crypto/kdfparams/c")),H=parseInt((0,y.gx)(t,"crypto/kdfparams/dklen"));return 32!==H&&c("dklen",H),s(u,r,T,H,h)}}return L.throwArgumentError("unsupported key-derivation function","kdf",d)}function W(t,a){const s=JSON.parse(t);return j(s,Q(s,a,K,P().syncScrypt))}function X(t,a,s){return function(t,a,s,e){return new(s||(s=Promise))(function(u,d){function c(F){try{h(e.next(F))}catch(T){d(T)}}function r(F){try{h(e.throw(F))}catch(T){d(T)}}function h(F){F.done?u(F.value):function i(u){return u instanceof s?u:new s(function(d){d(u)})}(F.value).then(c,r)}h((e=e.apply(t,a||[])).next())})}(this,void 0,void 0,function*(){const e=JSON.parse(t);return j(e,yield Q(e,a,Z,P().scrypt,s))})}function _(t,a,s,e){try{if((0,o.getAddress)(t.address)!==(0,b.computeAddress)(t.privateKey))throw new Error("address/privateKey mismatch");if(R(t)){const Ee=t.mnemonic;if(S.HDNode.fromMnemonic(Ee.phrase,null,Ee.locale).derivePath(Ee.path||S.defaultPath).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(Ee){return Promise.reject(Ee)}"function"==typeof s&&!e&&(e=s,s={}),s||(s={});const i=(0,w.arrayify)(t.privateKey),u=(0,y.Ij)(a);let d=null,c=null,r=null;if(R(t)){const Ee=t.mnemonic;d=(0,w.arrayify)((0,S.mnemonicToEntropy)(Ee.phrase,Ee.locale||"en")),c=Ee.path||S.defaultPath,r=Ee.locale||"en"}let h=s.client;h||(h="ethers.js");let F=null;F=s.salt?(0,w.arrayify)(s.salt):(0,g.O)(32);let T=null;if(s.iv){if(T=(0,w.arrayify)(s.iv),16!==T.length)throw new Error("invalid iv")}else T=(0,g.O)(16);let H=null;if(s.uuid){if(H=(0,w.arrayify)(s.uuid),16!==H.length)throw new Error("invalid uuid")}else H=(0,g.O)(16);let ae=1<<17,Ae=8,fe=1;return s.scrypt&&(s.scrypt.N&&(ae=s.scrypt.N),s.scrypt.r&&(Ae=s.scrypt.r),s.scrypt.p&&(fe=s.scrypt.p)),P().scrypt(u,F,ae,Ae,fe,64,e).then(Ee=>{const ee=(Ee=(0,w.arrayify)(Ee)).slice(0,16),se=Ee.slice(16,32),ze=Ee.slice(32,64),ye=new(I().Counter)(T),ue=new(I().ModeOfOperation.ctr)(ee,ye),je=(0,w.arrayify)(ue.encrypt(i)),Ne=(0,D.keccak256)((0,w.concat)([se,je])),Ye={address:t.address.substring(2).toLowerCase(),id:(0,y.EH)(H),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,w.hexlify)(T).substring(2)},ciphertext:(0,w.hexlify)(je).substring(2),kdf:"scrypt",kdfparams:{salt:(0,w.hexlify)(F).substring(2),n:ae,dklen:32,p:fe,r:Ae},mac:Ne.substring(2)}};if(d){const Et=(0,g.O)(16),ot=new(I().Counter)(Et),lt=new(I().ModeOfOperation.ctr)(ze,ot),Lt=(0,w.arrayify)(lt.encrypt(d)),ct=new Date,He=ct.getUTCFullYear()+"-"+(0,y.VP)(ct.getUTCMonth()+1,2)+"-"+(0,y.VP)(ct.getUTCDate(),2)+"T"+(0,y.VP)(ct.getUTCHours(),2)+"-"+(0,y.VP)(ct.getUTCMinutes(),2)+"-"+(0,y.VP)(ct.getUTCSeconds(),2)+".0Z";Ye["x-ethers"]={client:h,gethFilename:"UTC--"+He+"--"+Ye.address,mnemonicCounter:(0,w.hexlify)(Et).substring(2),mnemonicCiphertext:(0,w.hexlify)(Lt).substring(2),path:c,locale:r,version:"0.1"}}return JSON.stringify(Ye)})}},1504:(q,k,x)=>{"use strict";x.d(k,{EH:()=>S,Ij:()=>o,VP:()=>P,gx:()=>w,p3:()=>M});var B=x(64153),I=x(9496);function M(D){return"string"==typeof D&&"0x"!==D.substring(0,2)&&(D="0x"+D),(0,B.arrayify)(D)}function P(D,A){for(D=String(D);D.length255)return!1;return!0}function I(d,c){if(d.buffer&&ArrayBuffer.isView(d)&&"Uint8Array"===d.name)return c&&(d=d.slice?d.slice():Array.prototype.slice.call(d)),d;if(Array.isArray(d)){if(!B(d))throw new Error("Array contains invalid value: "+d);return new Uint8Array(d)}if(x(d.length)&&B(d))return new Uint8Array(d);throw new Error("unsupported array-like object")}function M(d){return new Uint8Array(d)}function P(d,c,r,h,F){(null!=h||null!=F)&&(d=d.slice?d.slice(h,F):Array.prototype.slice.call(d,h,F)),c.set(d,r)}var c,o={toBytes:function d(r){var h=[],F=0;for(r=encodeURI(r);F191&&T<224?(h.push(String.fromCharCode((31&T)<<6|63&r[F+1])),F+=2):(h.push(String.fromCharCode((15&T)<<12|(63&r[F+1])<<6|63&r[F+2])),F+=3)}return h.join("")}},w=(c="0123456789abcdef",{toBytes:function d(h){for(var F=[],T=0;T>4]+c[15&H])}return F.join("")}}),S={16:10,24:12,32:14},D=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],A=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],g=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],b=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],E=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],C=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],R=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],U=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],O=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],j=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],K=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Z(d){for(var c=[],r=0;r>2][c%4]=F[c],this._Kd[d-T][c%4]=F[c];for(var Ae,H=0,ae=h;ae>16&255]<<24^A[Ae>>8&255]<<16^A[255&Ae]<<8^A[Ae>>24&255]^D[H]<<24,H+=1,8!=h)for(c=1;c>8&255]<<8^A[Ae>>16&255]<<16^A[Ae>>24&255]<<24,c=h/2+1;c>2][Ee=ae%4]=F[c],this._Kd[d-fe][Ee]=F[c++],ae++}for(var fe=1;fe>24&255]^O[Ae>>16&255]^j[Ae>>8&255]^K[255&Ae]},Q.prototype.encrypt=function(d){if(16!=d.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var c=this._Ke.length-1,r=[0,0,0,0],h=Z(d),F=0;F<4;F++)h[F]^=this._Ke[0][F];for(var T=1;T>24&255]^b[h[(F+1)%4]>>16&255]^y[h[(F+2)%4]>>8&255]^m[255&h[(F+3)%4]]^this._Ke[T][F];h=r.slice()}var ae,H=M(16);for(F=0;F<4;F++)H[4*F]=255&(A[h[F]>>24&255]^(ae=this._Ke[c][F])>>24),H[4*F+1]=255&(A[h[(F+1)%4]>>16&255]^ae>>16),H[4*F+2]=255&(A[h[(F+2)%4]>>8&255]^ae>>8),H[4*F+3]=255&(A[255&h[(F+3)%4]]^ae);return H},Q.prototype.decrypt=function(d){if(16!=d.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var c=this._Kd.length-1,r=[0,0,0,0],h=Z(d),F=0;F<4;F++)h[F]^=this._Kd[0][F];for(var T=1;T>24&255]^C[h[(F+3)%4]>>16&255]^L[h[(F+2)%4]>>8&255]^R[255&h[(F+1)%4]]^this._Kd[T][F];h=r.slice()}var ae,H=M(16);for(F=0;F<4;F++)H[4*F]=255&(g[h[F]>>24&255]^(ae=this._Kd[c][F])>>24),H[4*F+1]=255&(g[h[(F+3)%4]>>16&255]^ae>>16),H[4*F+2]=255&(g[h[(F+2)%4]>>8&255]^ae>>8),H[4*F+3]=255&(g[255&h[(F+1)%4]]^ae);return H};var W=function(d){if(!(this instanceof W))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Q(d)};W.prototype.encrypt=function(d){if((d=I(d)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var c=M(d.length),r=M(16),h=0;h=0;--c)this._counter[c]=d%256,d>>=8},a.prototype.setBytes=function(d){if(16!=(d=I(d,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=d},a.prototype.increment=function(){for(var d=15;d>=0;d--){if(255!==this._counter[d]){this._counter[d]++;break}this._counter[d]=0}};var s=function(d,c){if(!(this instanceof s))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",c instanceof a||(c=new a(c)),this._counter=c,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Q(d)};s.prototype.encrypt=function(d){for(var c=I(d,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=d.length-c,h=0;h{"use strict";x.r(k),x.d(k,{keccak256:()=>P});var B=x(81403),I=x.n(B),M=x(64153);function P(o){return"0x"+I().keccak_256((0,M.arrayify)(o))}},33190:(q,k,x)=>{"use strict";x.r(k),x.d(k,{ErrorCode:()=>g,LogLevel:()=>A,Logger:()=>b});let I=!1,M=!1;const P={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=P.default,w=null;const D=function S(){try{const y=[];if(["NFD","NFC","NFKD","NFKC"].forEach(m=>{try{if("test"!=="test".normalize(m))throw new Error("bad normalize")}catch{y.push(m)}}),y.length)throw new Error("missing "+y.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(y){return y.message}return null}();var A=(()=>{return(y=A||(A={})).DEBUG="DEBUG",y.INFO="INFO",y.WARNING="WARNING",y.ERROR="ERROR",y.OFF="OFF",A;var y})(),g=(()=>{return(y=g||(g={})).UNKNOWN_ERROR="UNKNOWN_ERROR",y.NOT_IMPLEMENTED="NOT_IMPLEMENTED",y.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",y.NETWORK_ERROR="NETWORK_ERROR",y.SERVER_ERROR="SERVER_ERROR",y.TIMEOUT="TIMEOUT",y.BUFFER_OVERRUN="BUFFER_OVERRUN",y.NUMERIC_FAULT="NUMERIC_FAULT",y.MISSING_NEW="MISSING_NEW",y.INVALID_ARGUMENT="INVALID_ARGUMENT",y.MISSING_ARGUMENT="MISSING_ARGUMENT",y.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",y.CALL_EXCEPTION="CALL_EXCEPTION",y.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",y.NONCE_EXPIRED="NONCE_EXPIRED",y.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",y.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",y.TRANSACTION_REPLACED="TRANSACTION_REPLACED",y.ACTION_REJECTED="ACTION_REJECTED",g;var y})();const p="0123456789abcdef";let b=(()=>{class y{constructor(E){Object.defineProperty(this,"version",{enumerable:!0,value:E,writable:!1})}_log(E,C){const L=E.toLowerCase();null==P[L]&&this.throwArgumentError("invalid log level name","logLevel",E),!(o>P[L])&&console.log.apply(console,C)}debug(...E){this._log(y.levels.DEBUG,E)}info(...E){this._log(y.levels.INFO,E)}warn(...E){this._log(y.levels.WARNING,E)}makeError(E,C,L){if(M)return this.makeError("censored error",C,{});C||(C=y.errors.UNKNOWN_ERROR),L||(L={});const R=[];Object.keys(L).forEach(K=>{const Z=L[K];try{if(Z instanceof Uint8Array){let Q="";for(let W=0;W>4],Q+=p[15&Z[W]];R.push(K+"=Uint8Array(0x"+Q+")")}else R.push(K+"="+JSON.stringify(Z))}catch{R.push(K+"="+JSON.stringify(L[K].toString()))}}),R.push(`code=${C}`),R.push(`version=${this.version}`);const U=E;let O="";switch(C){case g.NUMERIC_FAULT:{O="NUMERIC_FAULT";const K=E;switch(K){case"overflow":case"underflow":case"division-by-zero":O+="-"+K;break;case"negative-power":case"negative-width":O+="-unsupported";break;case"unbound-bitwise-result":O+="-unbound-result"}break}case g.CALL_EXCEPTION:case g.INSUFFICIENT_FUNDS:case g.MISSING_NEW:case g.NONCE_EXPIRED:case g.REPLACEMENT_UNDERPRICED:case g.TRANSACTION_REPLACED:case g.UNPREDICTABLE_GAS_LIMIT:O=C}O&&(E+=" [ See: https://links.ethers.org/v5-errors-"+O+" ]"),R.length&&(E+=" ("+R.join(", ")+")");const j=new Error(E);return j.reason=U,j.code=C,Object.keys(L).forEach(function(K){j[K]=L[K]}),j}throwError(E,C,L){throw this.makeError(E,C,L)}throwArgumentError(E,C,L){return this.throwError(E,y.errors.INVALID_ARGUMENT,{argument:C,value:L})}assert(E,C,L,R){E||this.throwError(C,L,R)}assertArgument(E,C,L,R){E||this.throwArgumentError(C,L,R)}checkNormalize(E){null==E&&(E="platform missing String.prototype.normalize"),D&&this.throwError("platform missing String.prototype.normalize",y.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:D})}checkSafeUint53(E,C){"number"==typeof E&&(null==C&&(C="value not safe"),(E<0||E>=9007199254740991)&&this.throwError(C,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:E}),E%1&&this.throwError(C,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:E}))}checkArgumentCount(E,C,L){L=L?": "+L:"",EC&&this.throwError("too many arguments"+L,y.errors.UNEXPECTED_ARGUMENT,{count:E,expectedCount:C})}checkNew(E,C){(E===Object||null==E)&&this.throwError("missing new",y.errors.MISSING_NEW,{name:C.name})}checkAbstract(E,C){E===C?this.throwError("cannot instantiate abstract class "+JSON.stringify(C.name)+" directly; use a sub-class",y.errors.UNSUPPORTED_OPERATION,{name:E.name,operation:"new"}):(E===Object||null==E)&&this.throwError("missing new",y.errors.MISSING_NEW,{name:C.name})}static globalLogger(){return w||(w=new y("logger/5.7.0")),w}static setCensorship(E,C){if(!E&&C&&this.globalLogger().throwError("cannot permanently disable censorship",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),I){if(!E)return;this.globalLogger().throwError("error censorship permanent",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}M=!!E,I=!!C}static setLogLevel(E){const C=P[E.toLowerCase()];null!=C?o=C:y.globalLogger().warn("invalid log level - "+E)}static from(E){return new y(E)}}return y.errors=g,y.levels=A,y})()},68553:(q,k,x)=>{"use strict";x.d(k,{H:()=>p});const M=new(x(33190).Logger)("networks/5.7.1");function o(b){const y=function(m,E){null==E&&(E={});const C=[];if(m.InfuraProvider&&"-"!==E.infura)try{C.push(new m.InfuraProvider(b,E.infura))}catch{}if(m.EtherscanProvider&&"-"!==E.etherscan)try{C.push(new m.EtherscanProvider(b,E.etherscan))}catch{}if(m.AlchemyProvider&&"-"!==E.alchemy)try{C.push(new m.AlchemyProvider(b,E.alchemy))}catch{}if(m.PocketProvider&&"-"!==E.pocket){const L=["goerli","ropsten","rinkeby","sepolia"];try{const R=new m.PocketProvider(b,E.pocket);R.network&&-1===L.indexOf(R.network.name)&&C.push(R)}catch{}}if(m.CloudflareProvider&&"-"!==E.cloudflare)try{C.push(new m.CloudflareProvider(b))}catch{}if(m.AnkrProvider&&"-"!==E.ankr)try{const L=["ropsten"],R=new m.AnkrProvider(b,E.ankr);R.network&&-1===L.indexOf(R.network.name)&&C.push(R)}catch{}if(0===C.length)return null;if(m.FallbackProvider){let L=1;return null!=E.quorum?L=E.quorum:"homestead"===b&&(L=2),new m.FallbackProvider(C,L)}return C[0]};return y.renetwork=function(m){return o(m)},y}function w(b,y){const m=function(E,C){return E.JsonRpcProvider?new E.JsonRpcProvider(b,y):null};return m.renetwork=function(E){return w(b,E)},m}const S={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},D={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},A={chainId:63,name:"classicMordor",_defaultProvider:w("https://www.ethercluster.com/mordor","classicMordor")},g={unspecified:{chainId:0,name:"unspecified"},homestead:S,mainnet:S,morden:{chainId:2,name:"morden"},ropsten:D,testnet:D,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:w("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:A,classicTestnet:A,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:w("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function p(b){if(null==b)return null;if("number"==typeof b){for(const E in g){const C=g[E];if(C.chainId===b)return{name:C.name,chainId:C.chainId,ensAddress:C.ensAddress||null,_defaultProvider:C._defaultProvider||null}}return{chainId:b,name:"unknown"}}if("string"==typeof b){const E=g[b];return null==E?null:{name:E.name,chainId:E.chainId,ensAddress:E.ensAddress,_defaultProvider:E._defaultProvider||null}}const y=g[b.name];if(!y)return"number"!=typeof b.chainId&&M.throwArgumentError("invalid network chainId","network",b),b;0!==b.chainId&&b.chainId!==y.chainId&&M.throwArgumentError("network chainId mismatch","network",b);let m=b._defaultProvider||null;return null==m&&y._defaultProvider&&(m=function P(b){return b&&"function"==typeof b.renetwork}(y._defaultProvider)?y._defaultProvider.renetwork(b):y._defaultProvider),{name:b.name,chainId:y.chainId,ensAddress:b.ensAddress||y.ensAddress||null,_defaultProvider:m}}},79291:(q,k,x)=>{"use strict";x.d(k,{n:()=>M});var B=x(64153),I=x(33264);function M(P,o,w,S,D){P=(0,B.arrayify)(P),o=(0,B.arrayify)(o);let A,g=1;const p=new Uint8Array(S),b=new Uint8Array(o.length+4);let y,m;b.set(o);for(let E=1;E<=g;E++){b[o.length]=E>>24&255,b[o.length+1]=E>>16&255,b[o.length+2]=E>>8&255,b[o.length+3]=255&E;let C=(0,B.arrayify)((0,I.Gy)(D,P,b));A||(A=C.length,m=new Uint8Array(A),g=Math.ceil(S/A),y=S-(g-1)*A),m.set(C);for(let U=1;U{"use strict";x.r(k),x.d(k,{Description:()=>m,checkProperties:()=>D,deepCopy:()=>y,defineReadOnly:()=>o,getStatic:()=>w,resolveProperties:()=>S,shallowCopy:()=>A});var B=x(33190);const P=new B.Logger("properties/5.7.0");function o(E,C,L){Object.defineProperty(E,C,{enumerable:!0,value:L,writable:!1})}function w(E,C){for(let L=0;L<32;L++){if(E[C])return E[C];if(!E.prototype||"object"!=typeof E.prototype)break;E=Object.getPrototypeOf(E.prototype).constructor}return null}function S(E){return function(E,C,L,R){return new(L||(L=Promise))(function(O,j){function K(W){try{Q(R.next(W))}catch(X){j(X)}}function Z(W){try{Q(R.throw(W))}catch(X){j(X)}}function Q(W){W.done?O(W.value):function U(O){return O instanceof L?O:new L(function(j){j(O)})}(W.value).then(K,Z)}Q((R=R.apply(E,C||[])).next())})}(this,void 0,void 0,function*(){const C=Object.keys(E).map(R=>Promise.resolve(E[R]).then(O=>({key:R,value:O})));return(yield Promise.all(C)).reduce((R,U)=>(R[U.key]=U.value,R),{})})}function D(E,C){(!E||"object"!=typeof E)&&P.throwArgumentError("invalid object","object",E),Object.keys(E).forEach(L=>{C[L]||P.throwArgumentError("invalid object key - "+L,"transaction:"+L,E)})}function A(E){const C={};for(const L in E)C[L]=E[L];return C}const g={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function p(E){if(null==E||g[typeof E])return!0;if(Array.isArray(E)||"object"==typeof E){if(!Object.isFrozen(E))return!1;const C=Object.keys(E);for(let L=0;Ly(C)));if("object"==typeof E){const C={};for(const L in E){const R=E[L];void 0!==R&&o(C,L,y(R))}return C}return P.throwArgumentError("Cannot deepCopy "+typeof E,"object",E)}function y(E){return b(E)}class m{constructor(C){for(const L in C)this[L]=y(C[L])}}},87395:(q,k,x)=>{"use strict";x.d(k,{i:()=>B});const B="providers/5.7.2"},16780:(q,k,x)=>{"use strict";x.d(k,{H2:()=>H,Zk:()=>fe});var B=x(59114),I=x(76813),M=x(50750),P=x(36706),o=x(64153),w=x(23253),S=x(4235),D=x(68553),A=x(2993),g=x(33264),p=x(9496),b=x(51486),y=x(13927),m=x.n(y),E=x(33190),C=x(87395),L=x(6191),R=function(Ee,ee,se,ze){return new(se||(se=Promise))(function(ue,je){function Ne(ot){try{Et(ze.next(ot))}catch(lt){je(lt)}}function Ye(ot){try{Et(ze.throw(ot))}catch(lt){je(lt)}}function Et(ot){ot.done?ue(ot.value):function ye(ue){return ue instanceof se?ue:new se(function(je){je(ue)})}(ot.value).then(Ne,Ye)}Et((ze=ze.apply(Ee,ee||[])).next())})};const U=new E.Logger(C.i);function j(Ee){return null==Ee?"null":(32!==(0,o.hexDataLength)(Ee)&&U.throwArgumentError("invalid topic","topic",Ee),Ee.toLowerCase())}function K(Ee){for(Ee=Ee.slice();Ee.length>0&&null==Ee[Ee.length-1];)Ee.pop();return Ee.map(ee=>{if(Array.isArray(ee)){const se={};ee.forEach(ye=>{se[j(ye)]=!0});const ze=Object.keys(se);return ze.sort(),ze.join("|")}return j(ee)}).join("&")}function Q(Ee){if("string"==typeof Ee){if(Ee=Ee.toLowerCase(),32===(0,o.hexDataLength)(Ee))return"tx:"+Ee;if(-1===Ee.indexOf(":"))return Ee}else{if(Array.isArray(Ee))return"filter:*:"+K(Ee);if(B.Sg.isForkEvent(Ee))throw U.warn("not implemented"),new Error("not implemented");if(Ee&&"object"==typeof Ee)return"filter:"+(Ee.address||"*")+":"+K(Ee.topics||[])}throw new Error("invalid event - "+Ee)}function W(){return(new Date).getTime()}function X(Ee){return new Promise(ee=>{setTimeout(ee,Ee)})}const _=["block","network","pending","poll"];class t{constructor(ee,se,ze){(0,A.defineReadOnly)(this,"tag",ee),(0,A.defineReadOnly)(this,"listener",se),(0,A.defineReadOnly)(this,"once",ze),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const ee=this.tag.split(":");return"tx"!==ee[0]?null:ee[1]}get filter(){const ee=this.tag.split(":");if("filter"!==ee[0])return null;const se=ee[1],ze=function Z(Ee){return""===Ee?[]:Ee.split(/&/g).map(ee=>{if(""===ee)return[];const se=ee.split("|").map(ze=>"null"===ze?null:ze);return 1===se.length?se[0]:se})}(ee[2]),ye={};return ze.length>0&&(ye.topics=ze),se&&"*"!==se&&(ye.address=se),ye}pollable(){return this.tag.indexOf(":")>=0||_.indexOf(this.tag)>=0}}const a={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function s(Ee){return(0,o.hexZeroPad)(P.O$.from(Ee).toHexString(),32)}function e(Ee){return M.Base58.encode((0,o.concat)([Ee,(0,o.hexDataSlice)((0,g.JQ)((0,g.JQ)(Ee)),0,4)]))}const i=new RegExp("^(ipfs)://(.*)$","i"),u=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),i,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function d(Ee,ee){try{return(0,p.ZN)(c(Ee,ee))}catch{}return null}function c(Ee,ee){if("0x"===Ee)return null;const se=P.O$.from((0,o.hexDataSlice)(Ee,ee,ee+32)).toNumber(),ze=P.O$.from((0,o.hexDataSlice)(Ee,se,se+32)).toNumber();return(0,o.hexDataSlice)(Ee,se+32,se+32+ze)}function r(Ee){return Ee.match(/^ipfs:\/\/ipfs\//i)?Ee=Ee.substring(12):Ee.match(/^ipfs:\/\//i)?Ee=Ee.substring(7):U.throwArgumentError("unsupported IPFS format","link",Ee),`https://gateway.ipfs.io/ipfs/${Ee}`}function h(Ee){const ee=(0,o.arrayify)(Ee);if(ee.length>32)throw new Error("internal; should not happen");const se=new Uint8Array(32);return se.set(ee,32-ee.length),se}function F(Ee){if(Ee.length%32==0)return Ee;const ee=new Uint8Array(32*Math.ceil(Ee.length/32));return ee.set(Ee),ee}function T(Ee){const ee=[];let se=0;for(let ze=0;zeP.O$.from(ee).eq(1)).catch(ee=>{if(ee.code===E.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,ee})),this._supportsEip2544}_fetch(ee,se){return R(this,void 0,void 0,function*(){const ze={to:this.address,ccipReadEnabled:!0,data:(0,o.hexConcat)([ee,(0,S.VM)(this.name),se||"0x"])};let ye=!1;(yield this.supportsWildcard())&&(ye=!0,ze.data=(0,o.hexConcat)(["0x9061b923",T([(0,S.Kn)(this.name),ze.data])]));try{let ue=yield this.provider.call(ze);return(0,o.arrayify)(ue).length%32==4&&U.throwError("resolver threw error",E.Logger.errors.CALL_EXCEPTION,{transaction:ze,data:ue}),ye&&(ue=c(ue,0)),ue}catch(ue){if(ue.code===E.Logger.errors.CALL_EXCEPTION)return null;throw ue}})}_fetchBytes(ee,se){return R(this,void 0,void 0,function*(){const ze=yield this._fetch(ee,se);return null!=ze?c(ze,0):null})}_getAddress(ee,se){const ze=a[String(ee)];if(null==ze&&U.throwError(`unsupported coin type: ${ee}`,E.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${ee})`}),"eth"===ze.ilk)return this.provider.formatter.address(se);const ye=(0,o.arrayify)(se);if(null!=ze.p2pkh){const ue=se.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(ue){const je=parseInt(ue[1],16);if(ue[2].length===2*je&&je>=1&&je<=75)return e((0,o.concat)([[ze.p2pkh],"0x"+ue[2]]))}}if(null!=ze.p2sh){const ue=se.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(ue){const je=parseInt(ue[1],16);if(ue[2].length===2*je&&je>=1&&je<=75)return e((0,o.concat)([[ze.p2sh],"0x"+ue[2]]))}}if(null!=ze.prefix){const ue=ye[1];let je=ye[0];if(0===je?20!==ue&&32!==ue&&(je=-1):je=-1,je>=0&&ye.length===2+ue&&ue>=1&&ue<=75){const Ne=m().toWords(ye.slice(2));return Ne.unshift(je),m().encode(ze.prefix,Ne)}}return null}getAddress(ee){return R(this,void 0,void 0,function*(){if(null==ee&&(ee=60),60===ee)try{const ye=yield this._fetch("0x3b3b57de");return"0x"===ye||ye===w.R?null:this.provider.formatter.callAddress(ye)}catch(ye){if(ye.code===E.Logger.errors.CALL_EXCEPTION)return null;throw ye}const se=yield this._fetchBytes("0xf1cb7e06",s(ee));if(null==se||"0x"===se)return null;const ze=this._getAddress(ee,se);return null==ze&&U.throwError("invalid or unsupported coin data",E.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${ee})`,coinType:ee,data:se}),ze})}getAvatar(){return R(this,void 0,void 0,function*(){const ee=[{type:"name",content:this.name}];try{const se=yield this.getText("avatar");if(null==se)return null;for(let ze=0;zeje[Ye])}return U.throwError("invalid or unsupported content hash data",E.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:ee})})}getText(ee){return R(this,void 0,void 0,function*(){let se=(0,p.Y0)(ee);se=(0,o.concat)([s(64),s(se.length),se]),se.length%32!=0&&(se=(0,o.concat)([se,(0,o.hexZeroPad)("0x",32-ee.length%32)]));const ze=yield this._fetchBytes("0x59d1d43c",(0,o.hexlify)(se));return null==ze||"0x"===ze?null:(0,p.ZN)(ze)})}}let ae=null,Ae=1;class fe extends B.zt{constructor(ee){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,A.defineReadOnly)(this,"anyNetwork","any"===ee),this.anyNetwork&&(ee=this.detectNetwork()),ee instanceof Promise)this._networkPromise=ee,ee.catch(se=>{}),this._ready().catch(se=>{});else{const se=(0,A.getStatic)(new.target,"getNetwork")(ee);se?((0,A.defineReadOnly)(this,"_network",se),this.emit("network",se,null)):U.throwArgumentError("invalid network","network",ee)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return R(this,void 0,void 0,function*(){if(null==this._network){let ee=null;if(this._networkPromise)try{ee=yield this._networkPromise}catch{}null==ee&&(ee=yield this.detectNetwork()),ee||U.throwError("no network detected",E.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=ee:(0,A.defineReadOnly)(this,"_network",ee),this.emit("network",ee,null))}return this._network})}get ready(){return(0,b.poll)(()=>this._ready().then(ee=>ee,ee=>{if(ee.code!==E.Logger.errors.NETWORK_ERROR||"noNetwork"!==ee.event)throw ee}))}static getFormatter(){return null==ae&&(ae=new L.Mb),ae}static getNetwork(ee){return(0,D.H)(ee??"homestead")}ccipReadFetch(ee,se,ze){return R(this,void 0,void 0,function*(){if(this.disableCcipRead||0===ze.length)return null;const ye=ee.to.toLowerCase(),ue=se.toLowerCase(),je=[];for(let Ne=0;Ne=0?null:JSON.stringify({data:ue,sender:ye}),lt=yield(0,b.fetchJson)({url:Et,errorPassThrough:!0},ot,(ct,He)=>(ct.status=He.statusCode,ct));if(lt.data)return lt.data;const Lt=lt.message||"unknown error";if(lt.status>=400&<.status<500)return U.throwError(`response not found during CCIP fetch: ${Lt}`,E.Logger.errors.SERVER_ERROR,{url:Ye,errorMessage:Lt});je.push(Lt)}return U.throwError(`error encountered during CCIP fetch: ${je.map(Ne=>JSON.stringify(Ne)).join(", ")}`,E.Logger.errors.SERVER_ERROR,{urls:ze,errorMessages:je})})}_getInternalBlockNumber(ee){return R(this,void 0,void 0,function*(){if(yield this._ready(),ee>0)for(;this._internalBlockNumber;){const ye=this._internalBlockNumber;try{const ue=yield ye;if(W()-ue.respTime<=ee)return ue.blockNumber;break}catch{if(this._internalBlockNumber===ye)break}}const se=W(),ze=(0,A.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(ye=>null,ye=>ye)}).then(({blockNumber:ye,networkError:ue})=>{if(ue)throw this._internalBlockNumber===ze&&(this._internalBlockNumber=null),ue;const je=W();return(ye=P.O$.from(ye).toNumber()){this._internalBlockNumber===ze&&(this._internalBlockNumber=null)}),(yield ze).blockNumber})}poll(){return R(this,void 0,void 0,function*(){const ee=Ae++,se=[];let ze=null;try{ze=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(ye){return void this.emit("error",ye)}if(this._setFastBlockNumber(ze),this.emit("poll",ee,ze),ze!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=ze-1),Math.abs(this._emitted.block-ze)>1e3)U.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${ze})`),this.emit("error",U.makeError("network block skew detected",E.Logger.errors.NETWORK_ERROR,{blockNumber:ze,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",ze);else for(let ye=this._emitted.block+1;ye<=ze;ye++)this.emit("block",ye);this._emitted.block!==ze&&(this._emitted.block=ze,Object.keys(this._emitted).forEach(ye=>{if("block"===ye)return;const ue=this._emitted[ye];"pending"!==ue&&ze-ue>12&&delete this._emitted[ye]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=ze-1),this._events.forEach(ye=>{switch(ye.type){case"tx":{const ue=ye.hash;let je=this.getTransactionReceipt(ue).then(Ne=>(!Ne||null==Ne.blockNumber||(this._emitted["t:"+ue]=Ne.blockNumber,this.emit(ue,Ne)),null)).catch(Ne=>{this.emit("error",Ne)});se.push(je);break}case"filter":if(!ye._inflight){ye._inflight=!0,-2===ye._lastBlockNumber&&(ye._lastBlockNumber=ze-1);const ue=ye.filter;ue.fromBlock=ye._lastBlockNumber+1,ue.toBlock=ze;const je=ue.toBlock-this._maxFilterBlockRange;je>ue.fromBlock&&(ue.fromBlock=je),ue.fromBlock<0&&(ue.fromBlock=0);const Ne=this.getLogs(ue).then(Ye=>{ye._inflight=!1,0!==Ye.length&&Ye.forEach(Et=>{Et.blockNumber>ye._lastBlockNumber&&(ye._lastBlockNumber=Et.blockNumber),this._emitted["b:"+Et.blockHash]=Et.blockNumber,this._emitted["t:"+Et.transactionHash]=Et.blockNumber,this.emit(ue,Et)})}).catch(Ye=>{this.emit("error",Ye),ye._inflight=!1});se.push(Ne)}}}),this._lastBlockNumber=ze,Promise.all(se).then(()=>{this.emit("didPoll",ee)}).catch(ye=>{this.emit("error",ye)})}else this.emit("didPoll",ee)})}resetEventsBlock(ee){this._lastBlockNumber=ee-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return R(this,void 0,void 0,function*(){return U.throwError("provider does not support network detection",E.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return R(this,void 0,void 0,function*(){const ee=yield this._ready(),se=yield this.detectNetwork();if(ee.chainId!==se.chainId){if(this.anyNetwork)return this._network=se,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",se,ee),yield X(0),this._network;const ze=U.makeError("underlying network changed",E.Logger.errors.NETWORK_ERROR,{event:"changed",network:ee,detectedNetwork:se});throw this.emit("error",ze),ze}return ee})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(ee=>{this._setFastBlockNumber(ee)},ee=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(ee){ee&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!ee&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(ee){if("number"!=typeof ee||ee<=0||parseInt(String(ee))!=ee)throw new Error("invalid polling interval");this._pollingInterval=ee,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const ee=W();return ee-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=ee,this._fastBlockNumberPromise=this.getBlockNumber().then(se=>((null==this._fastBlockNumber||se>this._fastBlockNumber)&&(this._fastBlockNumber=se),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(ee){null!=this._fastBlockNumber&&eethis._fastBlockNumber)&&(this._fastBlockNumber=ee,this._fastBlockNumberPromise=Promise.resolve(ee)))}waitForTransaction(ee,se,ze){return R(this,void 0,void 0,function*(){return this._waitForTransaction(ee,se??1,ze||0,null)})}_waitForTransaction(ee,se,ze,ye){return R(this,void 0,void 0,function*(){const ue=yield this.getTransactionReceipt(ee);return(ue?ue.confirmations:0)>=se?ue:new Promise((je,Ne)=>{const Ye=[];let Et=!1;const ot=function(){return!!Et||(Et=!0,Ye.forEach(Lt=>{Lt()}),!1)},lt=Lt=>{Lt.confirmations{this.removeListener(ee,lt)}),ye){let Lt=ye.startBlock,ct=null;const He=Ue=>R(this,void 0,void 0,function*(){Et||(yield X(1e3),this.getTransactionCount(ye.from).then(Se=>R(this,void 0,void 0,function*(){if(!Et){if(Se<=ye.nonce)Lt=Ue;else{{const Ve=yield this.getTransaction(ee);if(Ve&&null!=Ve.blockNumber)return}for(null==ct&&(ct=Lt-3,ct{Et||this.once("block",He)}))});if(Et)return;this.once("block",He),Ye.push(()=>{this.removeListener("block",He)})}if("number"==typeof ze&&ze>0){const Lt=setTimeout(()=>{ot()||Ne(U.makeError("timeout exceeded",E.Logger.errors.TIMEOUT,{timeout:ze}))},ze);Lt.unref&&Lt.unref(),Ye.push(()=>{clearTimeout(Lt)})}})})}getBlockNumber(){return R(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return R(this,void 0,void 0,function*(){yield this.getNetwork();const ee=yield this.perform("getGasPrice",{});try{return P.O$.from(ee)}catch(se){return U.throwError("bad result from backend",E.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:ee,error:se})}})}getBalance(ee,se){return R(this,void 0,void 0,function*(){yield this.getNetwork();const ze=yield(0,A.resolveProperties)({address:this._getAddress(ee),blockTag:this._getBlockTag(se)}),ye=yield this.perform("getBalance",ze);try{return P.O$.from(ye)}catch(ue){return U.throwError("bad result from backend",E.Logger.errors.SERVER_ERROR,{method:"getBalance",params:ze,result:ye,error:ue})}})}getTransactionCount(ee,se){return R(this,void 0,void 0,function*(){yield this.getNetwork();const ze=yield(0,A.resolveProperties)({address:this._getAddress(ee),blockTag:this._getBlockTag(se)}),ye=yield this.perform("getTransactionCount",ze);try{return P.O$.from(ye).toNumber()}catch(ue){return U.throwError("bad result from backend",E.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:ze,result:ye,error:ue})}})}getCode(ee,se){return R(this,void 0,void 0,function*(){yield this.getNetwork();const ze=yield(0,A.resolveProperties)({address:this._getAddress(ee),blockTag:this._getBlockTag(se)}),ye=yield this.perform("getCode",ze);try{return(0,o.hexlify)(ye)}catch(ue){return U.throwError("bad result from backend",E.Logger.errors.SERVER_ERROR,{method:"getCode",params:ze,result:ye,error:ue})}})}getStorageAt(ee,se,ze){return R(this,void 0,void 0,function*(){yield this.getNetwork();const ye=yield(0,A.resolveProperties)({address:this._getAddress(ee),blockTag:this._getBlockTag(ze),position:Promise.resolve(se).then(je=>(0,o.hexValue)(je))}),ue=yield this.perform("getStorageAt",ye);try{return(0,o.hexlify)(ue)}catch(je){return U.throwError("bad result from backend",E.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:ye,result:ue,error:je})}})}_wrapTransaction(ee,se,ze){if(null!=se&&32!==(0,o.hexDataLength)(se))throw new Error("invalid response - sendTransaction");const ye=ee;return null!=se&&ee.hash!==se&&U.throwError("Transaction hash mismatch from Provider.sendTransaction.",E.Logger.errors.UNKNOWN_ERROR,{expectedHash:ee.hash,returnedHash:se}),ye.wait=(ue,je)=>R(this,void 0,void 0,function*(){let Ne;null==ue&&(ue=1),null==je&&(je=0),0!==ue&&null!=ze&&(Ne={data:ee.data,from:ee.from,nonce:ee.nonce,to:ee.to,value:ee.value,startBlock:ze});const Ye=yield this._waitForTransaction(ee.hash,ue,je,Ne);return null==Ye&&0===ue?null:(this._emitted["t:"+ee.hash]=Ye.blockNumber,0===Ye.status&&U.throwError("transaction failed",E.Logger.errors.CALL_EXCEPTION,{transactionHash:ee.hash,transaction:ee,receipt:Ye}),Ye)}),ye}sendTransaction(ee){return R(this,void 0,void 0,function*(){yield this.getNetwork();const se=yield Promise.resolve(ee).then(ue=>(0,o.hexlify)(ue)),ze=this.formatter.transaction(ee);null==ze.confirmations&&(ze.confirmations=0);const ye=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const ue=yield this.perform("sendTransaction",{signedTransaction:se});return this._wrapTransaction(ze,ue,ye)}catch(ue){throw ue.transaction=ze,ue.transactionHash=ze.hash,ue}})}_getTransactionRequest(ee){return R(this,void 0,void 0,function*(){const se=yield ee,ze={};return["from","to"].forEach(ye=>{null!=se[ye]&&(ze[ye]=Promise.resolve(se[ye]).then(ue=>ue?this._getAddress(ue):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(ye=>{null!=se[ye]&&(ze[ye]=Promise.resolve(se[ye]).then(ue=>ue?P.O$.from(ue):null))}),["type"].forEach(ye=>{null!=se[ye]&&(ze[ye]=Promise.resolve(se[ye]).then(ue=>ue??null))}),se.accessList&&(ze.accessList=this.formatter.accessList(se.accessList)),["data"].forEach(ye=>{null!=se[ye]&&(ze[ye]=Promise.resolve(se[ye]).then(ue=>ue?(0,o.hexlify)(ue):null))}),this.formatter.transactionRequest(yield(0,A.resolveProperties)(ze))})}_getFilter(ee){return R(this,void 0,void 0,function*(){ee=yield ee;const se={};return null!=ee.address&&(se.address=this._getAddress(ee.address)),["blockHash","topics"].forEach(ze=>{null!=ee[ze]&&(se[ze]=ee[ze])}),["fromBlock","toBlock"].forEach(ze=>{null!=ee[ze]&&(se[ze]=this._getBlockTag(ee[ze]))}),this.formatter.filter(yield(0,A.resolveProperties)(se))})}_call(ee,se,ze){return R(this,void 0,void 0,function*(){ze>=10&&U.throwError("CCIP read exceeded maximum redirections",E.Logger.errors.SERVER_ERROR,{redirects:ze,transaction:ee});const ye=ee.to,ue=yield this.perform("call",{transaction:ee,blockTag:se});if(ze>=0&&"latest"===se&&null!=ye&&"0x556f1830"===ue.substring(0,10)&&(0,o.hexDataLength)(ue)%32==4)try{const je=(0,o.hexDataSlice)(ue,4),Ne=(0,o.hexDataSlice)(je,0,32);P.O$.from(Ne).eq(ye)||U.throwError("CCIP Read sender did not match",E.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:ee,data:ue});const Ye=[],Et=P.O$.from((0,o.hexDataSlice)(je,32,64)).toNumber(),ot=P.O$.from((0,o.hexDataSlice)(je,Et,Et+32)).toNumber(),lt=(0,o.hexDataSlice)(je,Et+32);for(let Ve=0;VeR(this,void 0,void 0,function*(){const ue=yield this.perform("getBlock",ye);if(null==ue)return null!=ye.blockHash&&null==this._emitted["b:"+ye.blockHash]||null!=ye.blockTag&&ze>this._emitted.block?null:void 0;if(se){let je=null;for(let Ye=0;Yethis._wrapTransaction(Ye)),Ne}return this.formatter.block(ue)}),{oncePoll:this})})}getBlock(ee){return this._getBlock(ee,!1)}getBlockWithTransactions(ee){return this._getBlock(ee,!0)}getTransaction(ee){return R(this,void 0,void 0,function*(){yield this.getNetwork(),ee=yield ee;const se={transactionHash:this.formatter.hash(ee,!0)};return(0,b.poll)(()=>R(this,void 0,void 0,function*(){const ze=yield this.perform("getTransaction",se);if(null==ze)return null==this._emitted["t:"+ee]?null:void 0;const ye=this.formatter.transactionResponse(ze);if(null==ye.blockNumber)ye.confirmations=0;else if(null==ye.confirmations){let je=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-ye.blockNumber+1;je<=0&&(je=1),ye.confirmations=je}return this._wrapTransaction(ye)}),{oncePoll:this})})}getTransactionReceipt(ee){return R(this,void 0,void 0,function*(){yield this.getNetwork(),ee=yield ee;const se={transactionHash:this.formatter.hash(ee,!0)};return(0,b.poll)(()=>R(this,void 0,void 0,function*(){const ze=yield this.perform("getTransactionReceipt",se);if(null==ze)return null==this._emitted["t:"+ee]?null:void 0;if(null==ze.blockHash)return;const ye=this.formatter.receipt(ze);if(null==ye.blockNumber)ye.confirmations=0;else if(null==ye.confirmations){let je=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-ye.blockNumber+1;je<=0&&(je=1),ye.confirmations=je}return ye}),{oncePoll:this})})}getLogs(ee){return R(this,void 0,void 0,function*(){yield this.getNetwork();const se=yield(0,A.resolveProperties)({filter:this._getFilter(ee)}),ze=yield this.perform("getLogs",se);return ze.forEach(ye=>{null==ye.removed&&(ye.removed=!1)}),L.Mb.arrayOf(this.formatter.filterLog.bind(this.formatter))(ze)})}getEtherPrice(){return R(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(ee){return R(this,void 0,void 0,function*(){if("number"==typeof(ee=yield ee)&&ee<0){ee%1&&U.throwArgumentError("invalid BlockTag","blockTag",ee);let se=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return se+=ee,se<0&&(se=0),this.formatter.blockTag(se)}return this.formatter.blockTag(ee)})}getResolver(ee){return R(this,void 0,void 0,function*(){let se=ee;for(;;){if(""===se||"."===se||"eth"!==ee&&"eth"===se)return null;const ze=yield this._getResolver(se,"getResolver");if(null!=ze){const ye=new H(this,ze,ee);return se===ee||(yield ye.supportsWildcard())?ye:null}se=se.split(".").slice(1).join(".")}})}_getResolver(ee,se){return R(this,void 0,void 0,function*(){null==se&&(se="ENS");const ze=yield this.getNetwork();ze.ensAddress||U.throwError("network does not support ENS",E.Logger.errors.UNSUPPORTED_OPERATION,{operation:se,network:ze.name});try{const ye=yield this.call({to:ze.ensAddress,data:"0x0178b8bf"+(0,S.VM)(ee).substring(2)});return this.formatter.callAddress(ye)}catch{}return null})}resolveName(ee){return R(this,void 0,void 0,function*(){ee=yield ee;try{return Promise.resolve(this.formatter.address(ee))}catch(ze){if((0,o.isHexString)(ee))throw ze}"string"!=typeof ee&&U.throwArgumentError("invalid ENS name","name",ee);const se=yield this.getResolver(ee);return se?yield se.getAddress():null})}lookupAddress(ee){return R(this,void 0,void 0,function*(){ee=yield ee;const se=(ee=this.formatter.address(ee)).substring(2).toLowerCase()+".addr.reverse",ze=yield this._getResolver(se,"lookupAddress");if(null==ze)return null;const ye=d(yield this.call({to:ze,data:"0x691f3431"+(0,S.VM)(se).substring(2)}),0);return(yield this.resolveName(ye))!=ee?null:ye})}getAvatar(ee){return R(this,void 0,void 0,function*(){let se=null;if((0,o.isHexString)(ee)){const ue=this.formatter.address(ee).substring(2).toLowerCase()+".addr.reverse",je=yield this._getResolver(ue,"getAvatar");if(!je)return null;se=new H(this,je,ue);try{const Ne=yield se.getAvatar();if(Ne)return Ne.url}catch(Ne){if(Ne.code!==E.Logger.errors.CALL_EXCEPTION)throw Ne}try{const Ne=d(yield this.call({to:je,data:"0x691f3431"+(0,S.VM)(ue).substring(2)}),0);se=yield this.getResolver(Ne)}catch(Ne){if(Ne.code!==E.Logger.errors.CALL_EXCEPTION)throw Ne;return null}}else if(se=yield this.getResolver(ee),!se)return null;const ze=yield se.getAvatar();return null==ze?null:ze.url})}perform(ee,se){return U.throwError(ee+" not implemented",E.Logger.errors.NOT_IMPLEMENTED,{operation:ee})}_startEvent(ee){this.polling=this._events.filter(se=>se.pollable()).length>0}_stopEvent(ee){this.polling=this._events.filter(se=>se.pollable()).length>0}_addEventListener(ee,se,ze){const ye=new t(Q(ee),se,ze);return this._events.push(ye),this._startEvent(ye),this}on(ee,se){return this._addEventListener(ee,se,!1)}once(ee,se){return this._addEventListener(ee,se,!0)}emit(ee,...se){let ze=!1,ye=[],ue=Q(ee);return this._events=this._events.filter(je=>je.tag!==ue||(setTimeout(()=>{je.listener.apply(this,se)},0),ze=!0,!je.once||(ye.push(je),!1))),ye.forEach(je=>{this._stopEvent(je)}),ze}listenerCount(ee){if(!ee)return this._events.length;let se=Q(ee);return this._events.filter(ze=>ze.tag===se).length}listeners(ee){if(null==ee)return this._events.map(ze=>ze.listener);let se=Q(ee);return this._events.filter(ze=>ze.tag===se).map(ze=>ze.listener)}off(ee,se){if(null==se)return this.removeAllListeners(ee);const ze=[];let ye=!1,ue=Q(ee);return this._events=this._events.filter(je=>!(je.tag===ue&&je.listener==se&&!ye&&(ye=!0,ze.push(je),1))),ze.forEach(je=>{this._stopEvent(je)}),this}removeAllListeners(ee){let se=[];if(null==ee)se=this._events,this._events=[];else{const ze=Q(ee);this._events=this._events.filter(ye=>ye.tag!==ze||(se.push(ye),!1))}return se.forEach(ze=>{this._stopEvent(ze)}),this}}},6191:(q,k,x)=>{"use strict";x.d(k,{Ed:()=>p,Gp:()=>b,Mb:()=>g,vh:()=>m});var B=x(67296),I=x(36706),M=x(64153),P=x(55643),o=x(2993),w=x(38806),S=x(33190),D=x(87395);const A=new S.Logger(D.i);class g{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const C={},L=this.address.bind(this),R=this.bigNumber.bind(this),U=this.blockTag.bind(this),O=this.data.bind(this),j=this.hash.bind(this),K=this.hex.bind(this),Z=this.number.bind(this),Q=this.type.bind(this);return C.transaction={hash:j,type:Q,accessList:g.allowNull(this.accessList.bind(this),null),blockHash:g.allowNull(j,null),blockNumber:g.allowNull(Z,null),transactionIndex:g.allowNull(Z,null),confirmations:g.allowNull(Z,null),from:L,gasPrice:g.allowNull(R),maxPriorityFeePerGas:g.allowNull(R),maxFeePerGas:g.allowNull(R),gasLimit:R,to:g.allowNull(L,null),value:R,nonce:Z,data:O,r:g.allowNull(this.uint256),s:g.allowNull(this.uint256),v:g.allowNull(Z),creates:g.allowNull(L,null),raw:g.allowNull(O)},C.transactionRequest={from:g.allowNull(L),nonce:g.allowNull(Z),gasLimit:g.allowNull(R),gasPrice:g.allowNull(R),maxPriorityFeePerGas:g.allowNull(R),maxFeePerGas:g.allowNull(R),to:g.allowNull(L),value:g.allowNull(R),data:g.allowNull(X=>this.data(X,!0)),type:g.allowNull(Z),accessList:g.allowNull(this.accessList.bind(this),null)},C.receiptLog={transactionIndex:Z,blockNumber:Z,transactionHash:j,address:L,topics:g.arrayOf(j),data:O,logIndex:Z,blockHash:j},C.receipt={to:g.allowNull(this.address,null),from:g.allowNull(this.address,null),contractAddress:g.allowNull(L,null),transactionIndex:Z,root:g.allowNull(K),gasUsed:R,logsBloom:g.allowNull(O),blockHash:j,transactionHash:j,logs:g.arrayOf(this.receiptLog.bind(this)),blockNumber:Z,confirmations:g.allowNull(Z,null),cumulativeGasUsed:R,effectiveGasPrice:g.allowNull(R),status:g.allowNull(Z),type:Q},C.block={hash:g.allowNull(j),parentHash:j,number:Z,timestamp:Z,nonce:g.allowNull(K),difficulty:this.difficulty.bind(this),gasLimit:R,gasUsed:R,miner:g.allowNull(L),extraData:O,transactions:g.allowNull(g.arrayOf(j)),baseFeePerGas:g.allowNull(R)},C.blockWithTransactions=(0,o.shallowCopy)(C.block),C.blockWithTransactions.transactions=g.allowNull(g.arrayOf(this.transactionResponse.bind(this))),C.filter={fromBlock:g.allowNull(U,void 0),toBlock:g.allowNull(U,void 0),blockHash:g.allowNull(j,void 0),address:g.allowNull(L,void 0),topics:g.allowNull(this.topics.bind(this),void 0)},C.filterLog={blockNumber:g.allowNull(Z),blockHash:g.allowNull(j),transactionIndex:Z,removed:g.allowNull(this.boolean.bind(this)),address:L,data:g.allowFalsish(O,"0x"),topics:g.arrayOf(j),transactionHash:j,logIndex:Z},C}accessList(C){return(0,w.accessListify)(C||[])}number(C){return"0x"===C?0:I.O$.from(C).toNumber()}type(C){return"0x"===C||null==C?0:I.O$.from(C).toNumber()}bigNumber(C){return I.O$.from(C)}boolean(C){if("boolean"==typeof C)return C;if("string"==typeof C){if("true"===(C=C.toLowerCase()))return!0;if("false"===C)return!1}throw new Error("invalid boolean - "+C)}hex(C,L){return"string"==typeof C&&(!L&&"0x"!==C.substring(0,2)&&(C="0x"+C),(0,M.isHexString)(C))?C.toLowerCase():A.throwArgumentError("invalid hash","value",C)}data(C,L){const R=this.hex(C,L);if(R.length%2!=0)throw new Error("invalid data; odd-length - "+C);return R}address(C){return(0,B.getAddress)(C)}callAddress(C){if(!(0,M.isHexString)(C,32))return null;const L=(0,B.getAddress)((0,M.hexDataSlice)(C,12));return L===P.d?null:L}contractAddress(C){return(0,B.getContractAddress)(C)}blockTag(C){if(null==C)return"latest";if("earliest"===C)return"0x0";switch(C){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return C}if("number"==typeof C||(0,M.isHexString)(C))return(0,M.hexValue)(C);throw new Error("invalid blockTag")}hash(C,L){const R=this.hex(C,L);return 32!==(0,M.hexDataLength)(R)?A.throwArgumentError("invalid hash","value",C):R}difficulty(C){if(null==C)return null;const L=I.O$.from(C);try{return L.toNumber()}catch{}return null}uint256(C){if(!(0,M.isHexString)(C))throw new Error("invalid uint256");return(0,M.hexZeroPad)(C,32)}_block(C,L){null!=C.author&&null==C.miner&&(C.miner=C.author);const R=null!=C._difficulty?C._difficulty:C.difficulty,U=g.check(L,C);return U._difficulty=null==R?null:I.O$.from(R),U}block(C){return this._block(C,this.formats.block)}blockWithTransactions(C){return this._block(C,this.formats.blockWithTransactions)}transactionRequest(C){return g.check(this.formats.transactionRequest,C)}transactionResponse(C){null!=C.gas&&null==C.gasLimit&&(C.gasLimit=C.gas),C.to&&I.O$.from(C.to).isZero()&&(C.to="0x0000000000000000000000000000000000000000"),null!=C.input&&null==C.data&&(C.data=C.input),null==C.to&&null==C.creates&&(C.creates=this.contractAddress(C)),(1===C.type||2===C.type)&&null==C.accessList&&(C.accessList=[]);const L=g.check(this.formats.transaction,C);if(null!=C.chainId){let R=C.chainId;(0,M.isHexString)(R)&&(R=I.O$.from(R).toNumber()),L.chainId=R}else{let R=C.networkId;null==R&&null==L.v&&(R=C.chainId),(0,M.isHexString)(R)&&(R=I.O$.from(R).toNumber()),"number"!=typeof R&&null!=L.v&&(R=(L.v-35)/2,R<0&&(R=0),R=parseInt(R)),"number"!=typeof R&&(R=0),L.chainId=R}return L.blockHash&&"x"===L.blockHash.replace(/0/g,"")&&(L.blockHash=null),L}transaction(C){return(0,w.parse)(C)}receiptLog(C){return g.check(this.formats.receiptLog,C)}receipt(C){const L=g.check(this.formats.receipt,C);if(null!=L.root)if(L.root.length<=4){const R=I.O$.from(L.root).toNumber();0===R||1===R?(null!=L.status&&L.status!==R&&A.throwArgumentError("alt-root-status/status mismatch","value",{root:L.root,status:L.status}),L.status=R,delete L.root):A.throwArgumentError("invalid alt-root-status","value.root",L.root)}else 66!==L.root.length&&A.throwArgumentError("invalid root hash","value.root",L.root);return null!=L.status&&(L.byzantium=!0),L}topics(C){return Array.isArray(C)?C.map(L=>this.topics(L)):null!=C?this.hash(C,!0):null}filter(C){return g.check(this.formats.filter,C)}filterLog(C){return g.check(this.formats.filterLog,C)}static check(C,L){const R={};for(const U in C)try{const O=C[U](L[U]);void 0!==O&&(R[U]=O)}catch(O){throw O.checkKey=U,O.checkValue=L[U],O}return R}static allowNull(C,L){return function(R){return null==R?L:C(R)}}static allowFalsish(C,L){return function(R){return R?C(R):L}}static arrayOf(C){return function(L){if(!Array.isArray(L))throw new Error("not an array");const R=[];return L.forEach(function(U){R.push(C(U))}),R}}}function p(E){return E&&"function"==typeof E.isCommunityResource}function b(E){return p(E)&&E.isCommunityResource()}let y=!1;function m(){y||(y=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},84034:(q,k,x)=>{"use strict";x.r(k),x.d(k,{AlchemyProvider:()=>K,AlchemyWebSocketProvider:()=>j,AnkrProvider:()=>X,BaseProvider:()=>M.Zk,CloudflareProvider:()=>a,EtherscanProvider:()=>H,FallbackProvider:()=>ct,Formatter:()=>o.Mb,InfuraProvider:()=>Le,InfuraWebSocketProvider:()=>Ve,IpcProvider:()=>He,JsonRpcBatchProvider:()=>Y,JsonRpcProvider:()=>S.r,JsonRpcSigner:()=>S.C,NodesmithProvider:()=>re,PocketProvider:()=>De,Provider:()=>B.zt,Resolver:()=>M.H2,StaticJsonRpcProvider:()=>L,UrlJsonRpcProvider:()=>R,Web3Provider:()=>we.Q,WebSocketProvider:()=>m,getDefaultProvider:()=>xe,getNetwork:()=>I.H,isCommunityResourcable:()=>o.Ed,isCommunityResource:()=>o.Gp,showThrottleMessage:()=>o.vh});var B=x(59114),I=x(68553),M=x(16780),P=x(2993),o=x(6191),w=x(36706),S=x(56270),D=x(33190),A=x(87395);let g=null;try{if(g=WebSocket,null==g)throw new Error("inject please")}catch{const le=new D.Logger(A.i);g=function(){le.throwError("WebSockets not supported in this environment",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var p=function(te,le,me,Pe){return new(me||(me=Promise))(function(tt,et){function gt(yt){try{ne(Pe.next(yt))}catch(rt){et(rt)}}function Fe(yt){try{ne(Pe.throw(yt))}catch(rt){et(rt)}}function ne(yt){yt.done?tt(yt.value):function st(tt){return tt instanceof me?tt:new me(function(et){et(tt)})}(yt.value).then(gt,Fe)}ne((Pe=Pe.apply(te,le||[])).next())})};const b=new D.Logger(A.i);let y=1;class m extends S.r{constructor(le,me){"any"===me&&b.throwError("WebSocketProvider does not support 'any' network yet",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof le?le:"_websocket",me),this._pollingInterval=-1,this._wsReady=!1,(0,P.defineReadOnly)(this,"_websocket","string"==typeof le?new g(this.connection.url):le),(0,P.defineReadOnly)(this,"_requests",{}),(0,P.defineReadOnly)(this,"_subs",{}),(0,P.defineReadOnly)(this,"_subIds",{}),(0,P.defineReadOnly)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(st=>{this.websocket.send(this._requests[st].payload)})},this.websocket.onmessage=st=>{const tt=st.data,et=JSON.parse(tt);if(null!=et.id){const gt=String(et.id),Fe=this._requests[gt];if(delete this._requests[gt],void 0!==et.result)Fe.callback(null,et.result),this.emit("debug",{action:"response",request:JSON.parse(Fe.payload),response:et.result,provider:this});else{let ne=null;et.error?(ne=new Error(et.error.message||"unknown error"),(0,P.defineReadOnly)(ne,"code",et.error.code||null),(0,P.defineReadOnly)(ne,"response",tt)):ne=new Error("unknown error"),Fe.callback(ne,void 0),this.emit("debug",{action:"response",error:ne,request:JSON.parse(Fe.payload),provider:this})}}else if("eth_subscription"===et.method){const gt=this._subs[et.params.subscription];gt&>.processFunc(et.params.result)}else console.warn("this should not happen")};const Pe=setInterval(()=>{this.emit("poll")},1e3);Pe.unref&&Pe.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(le){b.throwError("cannot reset events block on WebSocketProvider",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(le){b.throwError("cannot set polling interval on WebSocketProvider",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return p(this,void 0,void 0,function*(){return null})}set polling(le){!le||b.throwError("cannot set polling on WebSocketProvider",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(le,me){const Pe=y++;return new Promise((st,tt)=>{const gt=JSON.stringify({method:le,params:me,id:Pe,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(gt),provider:this}),this._requests[String(Pe)]={callback:function et(Fe,ne){return Fe?tt(Fe):st(ne)},payload:gt},this._wsReady&&this.websocket.send(gt)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(le,me,Pe){return p(this,void 0,void 0,function*(){let st=this._subIds[le];null==st&&(st=Promise.all(me).then(et=>this.send("eth_subscribe",et)),this._subIds[le]=st);const tt=yield st;this._subs[tt]={tag:le,processFunc:Pe}})}_startEvent(le){switch(le.type){case"block":this._subscribe("block",["newHeads"],me=>{const Pe=w.O$.from(me.number).toNumber();this._emitted.block=Pe,this.emit("block",Pe)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],me=>{this.emit("pending",me)});break;case"filter":this._subscribe(le.tag,["logs",this._getFilter(le.filter)],me=>{null==me.removed&&(me.removed=!1),this.emit(le.filter,this.formatter.filterLog(me))});break;case"tx":{const me=Pe=>{const st=Pe.hash;this.getTransactionReceipt(st).then(tt=>{!tt||this.emit(st,tt)})};me(le),this._subscribe("tx",["newHeads"],Pe=>{this._events.filter(st=>"tx"===st.type).forEach(me)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",le)}}_stopEvent(le){let me=le.tag;if("tx"===le.type){if(this._events.filter(st=>"tx"===st.type).length)return;me="tx"}else if(this.listenerCount(le.event))return;const Pe=this._subIds[me];!Pe||(delete this._subIds[me],Pe.then(st=>{!this._subs[st]||(delete this._subs[st],this.send("eth_unsubscribe",[st]))}))}destroy(){return p(this,void 0,void 0,function*(){this.websocket.readyState===g.CONNECTING&&(yield new Promise(le=>{this.websocket.onopen=function(){le(!0)},this.websocket.onerror=function(){le(!1)}})),this.websocket.close(1e3)})}}const C=new D.Logger(A.i);class L extends S.r{detectNetwork(){const le=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return function(te,le,me,Pe){return new(me||(me=Promise))(function(tt,et){function gt(yt){try{ne(Pe.next(yt))}catch(rt){et(rt)}}function Fe(yt){try{ne(Pe.throw(yt))}catch(rt){et(rt)}}function ne(yt){yt.done?tt(yt.value):function st(tt){return tt instanceof me?tt:new me(function(et){et(tt)})}(yt.value).then(gt,Fe)}ne((Pe=Pe.apply(te,le||[])).next())})}(this,void 0,void 0,function*(){let me=this.network;return null==me&&(me=yield le.detectNetwork.call(this),me||C.throwError("no network detected",D.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,P.defineReadOnly)(this,"_network",me),this.emit("network",me,null))),me})}}class R extends L{constructor(le,me){C.checkAbstract(new.target,R),le=(0,P.getStatic)(new.target,"getNetwork")(le),me=(0,P.getStatic)(new.target,"getApiKey")(me),super((0,P.getStatic)(new.target,"getUrl")(le,me),le),"string"==typeof me?(0,P.defineReadOnly)(this,"apiKey",me):null!=me&&Object.keys(me).forEach(st=>{(0,P.defineReadOnly)(this,st,me[st])})}_startPending(){C.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(le){return C.throwError("API provider does not support signing",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(le){return le}static getUrl(le,me){return C.throwError("not implemented; sub-classes must override getUrl",D.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const U=new D.Logger(A.i),O="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class j extends m{constructor(le,me){const Pe=new K(le,me);super(Pe.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),Pe.network),(0,P.defineReadOnly)(this,"apiKey",Pe.apiKey)}isCommunityResource(){return this.apiKey===O}}class K extends R{static getWebSocketProvider(le,me){return new j(le,me)}static getApiKey(le){return null==le?O:(le&&"string"!=typeof le&&U.throwArgumentError("invalid apiKey","apiKey",le),le)}static getUrl(le,me){let Pe=null;switch(le.name){case"homestead":Pe="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":Pe="eth-goerli.g.alchemy.com/v2/";break;case"matic":Pe="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":Pe="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":Pe="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":Pe="arb-goerli.g.alchemy.com/v2/";break;case"optimism":Pe="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":Pe="opt-goerli.g.alchemy.com/v2/";break;default:U.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+Pe+me,throttleCallback:(st,tt)=>(me===O&&(0,o.vh)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===O}}const Z=new D.Logger(A.i),Q="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function W(te){switch(te){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Z.throwArgumentError("unsupported network","name",te)}class X extends R{isCommunityResource(){return this.apiKey===Q}static getApiKey(le){return le??Q}static getUrl(le,me){null==me&&(me=Q);const Pe={allowGzip:!0,url:"https://"+W(le.name)+me,throttleCallback:(st,tt)=>(me.apiKey===Q&&(0,o.vh)(),Promise.resolve(!0))};return null!=me.projectSecret&&(Pe.user="",Pe.password=me.projectSecret),Pe}}const t=new D.Logger(A.i);class a extends R{static getApiKey(le){return null!=le&&t.throwArgumentError("apiKey not supported for cloudflare","apiKey",le),null}static getUrl(le,me){let Pe=null;return"homestead"===le.name?Pe="https://cloudflare-eth.com/":t.throwArgumentError("unsupported network","network",arguments[0]),Pe}perform(le,me){const Pe=Object.create(null,{perform:{get:()=>super.perform}});return function(te,le,me,Pe){return new(me||(me=Promise))(function(tt,et){function gt(yt){try{ne(Pe.next(yt))}catch(rt){et(rt)}}function Fe(yt){try{ne(Pe.throw(yt))}catch(rt){et(rt)}}function ne(yt){yt.done?tt(yt.value):function st(tt){return tt instanceof me?tt:new me(function(et){et(tt)})}(yt.value).then(gt,Fe)}ne((Pe=Pe.apply(te,le||[])).next())})}(this,void 0,void 0,function*(){return"getBlockNumber"===le?(yield Pe.perform.call(this,"getBlock",{blockTag:"latest"})).number:Pe.perform.call(this,le,me)})}}var s=x(64153),e=x(38806),i=x(51486),u=function(te,le,me,Pe){return new(me||(me=Promise))(function(tt,et){function gt(yt){try{ne(Pe.next(yt))}catch(rt){et(rt)}}function Fe(yt){try{ne(Pe.throw(yt))}catch(rt){et(rt)}}function ne(yt){yt.done?tt(yt.value):function st(tt){return tt instanceof me?tt:new me(function(et){et(tt)})}(yt.value).then(gt,Fe)}ne((Pe=Pe.apply(te,le||[])).next())})};const d=new D.Logger(A.i);function c(te){const le={};for(let me in te){if(null==te[me])continue;let Pe=te[me];"type"===me&&0===Pe||(Pe={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[me]?(0,s.hexValue)((0,s.hexlify)(Pe)):"accessList"===me?"["+(0,e.accessListify)(Pe).map(st=>`{address:"${st.address}",storageKeys:["${st.storageKeys.join('","')}"]}`).join(",")+"]":(0,s.hexlify)(Pe),le[me]=Pe)}return le}function r(te){if(0==te.status&&("No records found"===te.message||"No transactions found"===te.message))return te.result;if(1!=te.status||"string"!=typeof te.message||!te.message.match(/^OK/)){const le=new Error("invalid response");throw le.result=JSON.stringify(te),(te.result||"").toLowerCase().indexOf("rate limit")>=0&&(le.throttleRetry=!0),le}return te.result}function h(te){if(te&&0==te.status&&"NOTOK"==te.message&&(te.result||"").toLowerCase().indexOf("rate limit")>=0){const le=new Error("throttled response");throw le.result=JSON.stringify(te),le.throttleRetry=!0,le}if("2.0"!=te.jsonrpc){const le=new Error("invalid response");throw le.result=JSON.stringify(te),le}if(te.error){const le=new Error(te.error.message||"unknown error");throw te.error.code&&(le.code=te.error.code),te.error.data&&(le.data=te.error.data),le}return te.result}function F(te){if("pending"===te)throw new Error("pending not supported");return"latest"===te?te:parseInt(te.substring(2),16)}function T(te,le,me){if("call"===te&&le.code===D.Logger.errors.SERVER_ERROR){const st=le.error;if(st&&(st.message.match(/reverted/i)||st.message.match(/VM execution error/i))){let tt=st.data;if(tt&&(tt="0x"+tt.replace(/^.*0x/i,"")),(0,s.isHexString)(tt))return tt;d.throwError("missing revert data in call exception",D.Logger.errors.CALL_EXCEPTION,{error:le,data:"0x"})}}let Pe=le.message;throw le.code===D.Logger.errors.SERVER_ERROR&&(le.error&&"string"==typeof le.error.message?Pe=le.error.message:"string"==typeof le.body?Pe=le.body:"string"==typeof le.responseText&&(Pe=le.responseText)),Pe=(Pe||"").toLowerCase(),Pe.match(/insufficient funds/)&&d.throwError("insufficient funds for intrinsic transaction cost",D.Logger.errors.INSUFFICIENT_FUNDS,{error:le,method:te,transaction:me}),Pe.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&d.throwError("nonce has already been used",D.Logger.errors.NONCE_EXPIRED,{error:le,method:te,transaction:me}),Pe.match(/another transaction with same nonce/)&&d.throwError("replacement fee too low",D.Logger.errors.REPLACEMENT_UNDERPRICED,{error:le,method:te,transaction:me}),Pe.match(/execution failed due to an exception|execution reverted/)&&d.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",D.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:le,method:te,transaction:me}),le}class H extends M.Zk{constructor(le,me){super(le),(0,P.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,P.defineReadOnly)(this,"apiKey",me||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return d.throwArgumentError("unsupported network","network",this.network.name)}getUrl(le,me){const Pe=Object.keys(me).reduce((tt,et)=>{const gt=me[et];return null!=gt&&(tt+=`&${et}=${gt}`),tt},"");return`${this.baseUrl}/api?module=${le}${Pe}${this.apiKey?`&apikey=${this.apiKey}`:""}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(le,me){return me.module=le,me.apikey=this.apiKey,me}fetch(le,me,Pe){return u(this,void 0,void 0,function*(){const st=Pe?this.getPostUrl():this.getUrl(le,me),tt=Pe?this.getPostData(le,me):null,et="proxy"===le?h:r;this.emit("debug",{action:"request",request:st,provider:this});const gt={url:st,throttleSlotInterval:1e3,throttleCallback:(yt,rt)=>(this.isCommunityResource()&&(0,o.vh)(),Promise.resolve(!0))};let Fe=null;tt&&(gt.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},Fe=Object.keys(tt).map(yt=>`${yt}=${tt[yt]}`).join("&"));const ne=yield(0,i.fetchJson)(gt,Fe,et||h);return this.emit("debug",{action:"response",request:st,response:(0,P.deepCopy)(ne),provider:this}),ne})}detectNetwork(){return u(this,void 0,void 0,function*(){return this.network})}perform(le,me){const Pe=Object.create(null,{perform:{get:()=>super.perform}});return u(this,void 0,void 0,function*(){switch(le){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:me.address,tag:me.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:me.address,tag:me.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:me.address,tag:me.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:me.address,position:me.position,tag:me.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:me.signedTransaction},!0).catch(st=>T("sendTransaction",st,me.signedTransaction));case"getBlock":if(me.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:me.blockTag,boolean:me.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:me.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:me.transactionHash});case"call":{if("latest"!==me.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const st=c(me.transaction);st.module="proxy",st.action="eth_call";try{return yield this.fetch("proxy",st,!0)}catch(tt){return T("call",tt,me.transaction)}}case"estimateGas":{const st=c(me.transaction);st.module="proxy",st.action="eth_estimateGas";try{return yield this.fetch("proxy",st,!0)}catch(tt){return T("estimateGas",tt,me.transaction)}}case"getLogs":{const st={action:"getLogs"};if(me.filter.fromBlock&&(st.fromBlock=F(me.filter.fromBlock)),me.filter.toBlock&&(st.toBlock=F(me.filter.toBlock)),me.filter.address&&(st.address=me.filter.address),me.filter.topics&&me.filter.topics.length>0&&(me.filter.topics.length>1&&d.throwError("unsupported topic count",D.Logger.errors.UNSUPPORTED_OPERATION,{topics:me.filter.topics}),1===me.filter.topics.length)){const gt=me.filter.topics[0];("string"!=typeof gt||66!==gt.length)&&d.throwError("unsupported topic format",D.Logger.errors.UNSUPPORTED_OPERATION,{topic0:gt}),st.topic0=gt}const tt=yield this.fetch("logs",st);let et={};for(let gt=0;gt{["contractAddress","to"].forEach(function(Fe){""==et[Fe]&&delete et[Fe]}),null==et.creates&&null!=et.contractAddress&&(et.creates=et.contractAddress);const gt=this.formatter.transactionResponse(et);return et.timeStamp&&(gt.timestamp=parseInt(et.timeStamp)),gt})})}isCommunityResource(){return null==this.apiKey}}var ae=x(44352),Ae=function(te,le,me,Pe){return new(me||(me=Promise))(function(tt,et){function gt(yt){try{ne(Pe.next(yt))}catch(rt){et(rt)}}function Fe(yt){try{ne(Pe.throw(yt))}catch(rt){et(rt)}}function ne(yt){yt.done?tt(yt.value):function st(tt){return tt instanceof me?tt:new me(function(et){et(tt)})}(yt.value).then(gt,Fe)}ne((Pe=Pe.apply(te,le||[])).next())})};const fe=new D.Logger(A.i);function Ee(){return(new Date).getTime()}function ee(te){let le=null;for(let me=0;mele?null:(Pe+st)/2}function ze(te){if(null===te)return"null";if("number"==typeof te||"boolean"==typeof te)return JSON.stringify(te);if("string"==typeof te)return te;if(w.O$.isBigNumber(te))return te.toString();if(Array.isArray(te))return JSON.stringify(te.map(le=>ze(le)));if("object"==typeof te){const le=Object.keys(te);return le.sort(),"{"+le.map(me=>{let Pe=te[me];return Pe="function"==typeof Pe?"[function]":ze(Pe),JSON.stringify(me)+":"+Pe}).join(",")+"}"}throw new Error("unknown value type: "+typeof te)}let ye=1;function ue(te){let le=null,me=null,Pe=new Promise(et=>{le=function(){me&&(clearTimeout(me),me=null),et()},me=setTimeout(le,te)});return{cancel:le,getPromise:function tt(){return Pe},wait:et=>(Pe=Pe.then(et),Pe)}}const je=[D.Logger.errors.CALL_EXCEPTION,D.Logger.errors.INSUFFICIENT_FUNDS,D.Logger.errors.NONCE_EXPIRED,D.Logger.errors.REPLACEMENT_UNDERPRICED,D.Logger.errors.UNPREDICTABLE_GAS_LIMIT],Ne=["address","args","errorArgs","errorSignature","method","transaction"];function Ye(te,le){const me={weight:te.weight};return Object.defineProperty(me,"provider",{get:()=>te.provider}),te.start&&(me.start=te.start),le&&(me.duration=le-te.start),te.done&&(te.error?me.error=te.error:me.result=te.result||null),me}function lt(te,le){return Ae(this,void 0,void 0,function*(){const me=te.provider;return null!=me.blockNumber&&me.blockNumber>=le||-1===le?me:(0,i.poll)(()=>new Promise((Pe,st)=>{setTimeout(function(){return Pe(me.blockNumber>=le?me:te.cancelled?null:void 0)},0)}),{oncePoll:me})})}function Lt(te,le,me,Pe){return Ae(this,void 0,void 0,function*(){let st=te.provider;switch(me){case"getBlockNumber":case"getGasPrice":return st[me]();case"getEtherPrice":if(st.getEtherPrice)return st.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return Pe.blockTag&&(0,s.isHexString)(Pe.blockTag)&&(st=yield lt(te,le)),st[me](Pe.address,Pe.blockTag||"latest");case"getStorageAt":return Pe.blockTag&&(0,s.isHexString)(Pe.blockTag)&&(st=yield lt(te,le)),st.getStorageAt(Pe.address,Pe.position,Pe.blockTag||"latest");case"getBlock":return Pe.blockTag&&(0,s.isHexString)(Pe.blockTag)&&(st=yield lt(te,le)),st[Pe.includeTransactions?"getBlockWithTransactions":"getBlock"](Pe.blockTag||Pe.blockHash);case"call":case"estimateGas":return Pe.blockTag&&(0,s.isHexString)(Pe.blockTag)&&(st=yield lt(te,le)),"call"===me&&Pe.blockTag?st[me](Pe.transaction,Pe.blockTag):st[me](Pe.transaction);case"getTransaction":case"getTransactionReceipt":return st[me](Pe.transactionHash);case"getLogs":{let tt=Pe.filter;return(tt.fromBlock&&(0,s.isHexString)(tt.fromBlock)||tt.toBlock&&(0,s.isHexString)(tt.toBlock))&&(st=yield lt(te,le)),st.getLogs(tt)}}return fe.throwError("unknown method error",D.Logger.errors.UNKNOWN_ERROR,{method:me,params:Pe})})}class ct extends M.Zk{constructor(le,me){0===le.length&&fe.throwArgumentError("missing providers","providers",le);const Pe=le.map((et,gt)=>{if(B.zt.isProvider(et)){const yt=(0,o.Gp)(et)?2e3:750;return Object.freeze({provider:et,weight:1,stallTimeout:yt,priority:1})}const Fe=(0,P.shallowCopy)(et);null==Fe.priority&&(Fe.priority=1),null==Fe.stallTimeout&&(Fe.stallTimeout=(0,o.Gp)(et)?2e3:750),null==Fe.weight&&(Fe.weight=1);const ne=Fe.weight;return(ne%1||ne>512||ne<1)&&fe.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${gt}].weight`,ne),Object.freeze(Fe)}),st=Pe.reduce((et,gt)=>et+gt.weight,0);null==me?me=st/2:me>st&&fe.throwArgumentError("quorum will always fail; larger than total weight","quorum",me);let tt=ee(Pe.map(et=>et.provider.network));null==tt&&(tt=new Promise((et,gt)=>{setTimeout(()=>{this.detectNetwork().then(et,gt)},0)})),super(tt),(0,P.defineReadOnly)(this,"providerConfigs",Object.freeze(Pe)),(0,P.defineReadOnly)(this,"quorum",me),this._highestBlockNumber=-1}detectNetwork(){return Ae(this,void 0,void 0,function*(){return ee(yield Promise.all(this.providerConfigs.map(me=>me.provider.getNetwork())))})}perform(le,me){return Ae(this,void 0,void 0,function*(){if("sendTransaction"===le){const Fe=yield Promise.all(this.providerConfigs.map(ne=>ne.provider.sendTransaction(me.signedTransaction).then(yt=>yt.hash,yt=>yt)));for(let ne=0;negt.result);let et=se(st.map(gt=>gt.result),2);if(null!=et)return et=Math.ceil(et),tt.indexOf(et+1)>=0&&et++,et>=te._highestBlockNumber&&(te._highestBlockNumber=et),te._highestBlockNumber};case"getGasPrice":return function(st){const tt=st.map(et=>et.result);return tt.sort(),tt[Math.floor(tt.length/2)]};case"getEtherPrice":return function(st){return se(st.map(tt=>tt.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":Pe=function(st){return null==st?null:((st=(0,P.shallowCopy)(st)).confirmations=-1,ze(st))};break;case"getBlock":Pe=me.includeTransactions?function(st){return null==st?null:((st=(0,P.shallowCopy)(st)).transactions=st.transactions.map(tt=>((tt=(0,P.shallowCopy)(tt)).confirmations=-1,tt)),ze(st))}:function(st){return null==st?null:ze(st)};break;default:throw new Error("unknown method: "+le)}return function Et(te,le){return function(me){const Pe={};me.forEach(tt=>{const et=te(tt.result);Pe[et]||(Pe[et]={count:0,result:tt.result}),Pe[et].count++});const st=Object.keys(Pe);for(let tt=0;tt=le)return et.result}}}(Pe,te.quorum)}(this,le,me),st=(0,ae.y)(this.providerConfigs.map(P.shallowCopy));st.sort((Fe,ne)=>Fe.priority-ne.priority);const tt=this._highestBlockNumber;let et=0,gt=!0;for(;;){const Fe=Ee();let ne=st.filter(We=>We.runner&&Fe-We.startWe+Be.weight,0);for(;ne{We.staller=null}),We.runner=Lt(We,tt,le,me).then(Ze=>{We.done=!0,We.result=Ze,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Be,backend:Ye(We,Ee()),request:{method:le,params:(0,P.deepCopy)(me)},provider:this})},Ze=>{We.done=!0,We.error=Ze,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Be,backend:Ye(We,Ee()),request:{method:le,params:(0,P.deepCopy)(me)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Be,backend:Ye(We,null),request:{method:le,params:(0,P.deepCopy)(me)},provider:this}),ne+=We.weight}const yt=[];st.forEach(We=>{We.done||!We.runner||(yt.push(We.runner),We.staller&&yt.push(We.staller.getPromise()))}),yt.length&&(yield Promise.race(yt));const rt=st.filter(We=>We.done&&null==We.error);if(rt.length>=this.quorum){const We=Pe(rt);if(void 0!==We)return st.forEach(Be=>{Be.staller&&Be.staller.cancel(),Be.cancelled=!0}),We;gt||(yield ue(100).getPromise()),gt=!1}const $=st.reduce((We,Be)=>{if(!Be.done||null==Be.error)return We;const Ze=Be.error.code;return je.indexOf(Ze)>=0&&(We[Ze]||(We[Ze]={error:Be.error,weight:0}),We[Ze].weight+=Be.weight),We},{});if(Object.keys($).forEach(We=>{const Be=$[We];if(Be.weight{ve.staller&&ve.staller.cancel(),ve.cancelled=!0});const Ze=Be.error,pe={};Ne.forEach(ve=>{null!=Ze[ve]&&(pe[ve]=Ze[ve])}),fe.throwError(Ze.reason||Ze.message,We,pe)}),0===st.filter(We=>!We.done).length)break}return st.forEach(Fe=>{Fe.staller&&Fe.staller.cancel(),Fe.cancelled=!0}),fe.throwError("failed to meet quorum",D.Logger.errors.SERVER_ERROR,{method:le,params:me,results:st.map(Fe=>Ye(Fe)),provider:this})})}}const He=null,Ue=new D.Logger(A.i),Se="84842078b09946638c03157f83405213";class Ve extends m{constructor(le,me){const Pe=new Le(le,me),st=Pe.connection;st.password&&Ue.throwError("INFURA WebSocket project secrets unsupported",D.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),super(st.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),le),(0,P.defineReadOnly)(this,"apiKey",Pe.projectId),(0,P.defineReadOnly)(this,"projectId",Pe.projectId),(0,P.defineReadOnly)(this,"projectSecret",Pe.projectSecret)}isCommunityResource(){return this.projectId===Se}}class Le extends R{static getWebSocketProvider(le,me){return new Ve(le,me)}static getApiKey(le){const me={apiKey:Se,projectId:Se,projectSecret:null};return null==le||("string"==typeof le?me.projectId=le:null!=le.projectSecret?(Ue.assertArgument("string"==typeof le.projectId,"projectSecret requires a projectId","projectId",le.projectId),Ue.assertArgument("string"==typeof le.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),me.projectId=le.projectId,me.projectSecret=le.projectSecret):le.projectId&&(me.projectId=le.projectId),me.apiKey=me.projectId),me}static getUrl(le,me){let Pe=null;switch(le?le.name:"unknown"){case"homestead":Pe="mainnet.infura.io";break;case"goerli":Pe="goerli.infura.io";break;case"sepolia":Pe="sepolia.infura.io";break;case"matic":Pe="polygon-mainnet.infura.io";break;case"maticmum":Pe="polygon-mumbai.infura.io";break;case"optimism":Pe="optimism-mainnet.infura.io";break;case"optimism-goerli":Pe="optimism-goerli.infura.io";break;case"arbitrum":Pe="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":Pe="arbitrum-goerli.infura.io";break;default:Ue.throwError("unsupported network",D.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:le})}const st={allowGzip:!0,url:"https://"+Pe+"/v3/"+me.projectId,throttleCallback:(tt,et)=>(me.projectId===Se&&(0,o.vh)(),Promise.resolve(!0))};return null!=me.projectSecret&&(st.user="",st.password=me.projectSecret),st}isCommunityResource(){return this.projectId===Se}}class Y extends S.r{send(le,me){const Pe={method:le,params:me,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const st={request:Pe,resolve:null,reject:null},tt=new Promise((et,gt)=>{st.resolve=et,st.reject=gt});return this._pendingBatch.push(st),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const et=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const gt=et.map(Fe=>Fe.request);return this.emit("debug",{action:"requestBatch",request:(0,P.deepCopy)(gt),provider:this}),(0,i.fetchJson)(this.connection,JSON.stringify(gt)).then(Fe=>{this.emit("debug",{action:"response",request:gt,response:Fe,provider:this}),et.forEach((ne,yt)=>{const rt=Fe[yt];if(rt.error){const $=new Error(rt.error.message);$.code=rt.error.code,$.data=rt.error.data,ne.reject($)}else ne.resolve(rt.result)})},Fe=>{this.emit("debug",{action:"response",error:Fe,request:gt,provider:this}),et.forEach(ne=>{ne.reject(Fe)})})},10)),tt}}const z=new D.Logger(A.i);class re extends R{static getApiKey(le){return le&&"string"!=typeof le&&z.throwArgumentError("invalid apiKey","apiKey",le),le||"ETHERS_JS_SHARED"}static getUrl(le,me){z.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let Pe=null;switch(le.name){case"homestead":Pe="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":Pe="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":Pe="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":Pe="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":Pe="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:z.throwArgumentError("unsupported network","network",arguments[0])}return Pe+"?apiKey="+me}}const ce=new D.Logger(A.i),Ge="62e1ad51b37b8e00394bda3b";class De extends R{static getApiKey(le){const me={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==le?me.applicationId=Ge:"string"==typeof le?me.applicationId=le:null!=le.applicationSecretKey?(me.applicationId=le.applicationId,me.applicationSecretKey=le.applicationSecretKey):le.applicationId?me.applicationId=le.applicationId:ce.throwArgumentError("unsupported PocketProvider apiKey","apiKey",le),me}static getUrl(le,me){let Pe=null;switch(le?le.name:"unknown"){case"goerli":Pe="eth-goerli.gateway.pokt.network";break;case"homestead":Pe="eth-mainnet.gateway.pokt.network";break;case"kovan":Pe="poa-kovan.gateway.pokt.network";break;case"matic":Pe="poly-mainnet.gateway.pokt.network";break;case"maticmum":Pe="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":Pe="eth-rinkeby.gateway.pokt.network";break;case"ropsten":Pe="eth-ropsten.gateway.pokt.network";break;default:ce.throwError("unsupported network",D.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:le})}const tt={headers:{},url:`https://${Pe}/v1/lb/${me.applicationId}`};return null!=me.applicationSecretKey&&(tt.user="",tt.password=me.applicationSecretKey),tt}isCommunityResource(){return this.applicationId===Ge}}var we=x(7483);const Oe=new D.Logger(A.i);function xe(te,le){if(null==te&&(te="homestead"),"string"==typeof te){const Pe=te.match(/^(ws|http)s?:/i);if(Pe)switch(Pe[1].toLowerCase()){case"http":case"https":return new S.r(te);case"ws":case"wss":return new m(te);default:Oe.throwArgumentError("unsupported URL scheme","network",te)}}const me=(0,I.H)(te);return(!me||!me._defaultProvider)&&Oe.throwError("unsupported getDefaultProvider network",D.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:te}),me._defaultProvider({FallbackProvider:ct,AlchemyProvider:K,AnkrProvider:X,CloudflareProvider:a,EtherscanProvider:H,InfuraProvider:Le,JsonRpcProvider:S.r,NodesmithProvider:re,PocketProvider:De,Web3Provider:we.Q,IpcProvider:He},le)}},56270:(q,k,x)=>{"use strict";x.d(k,{C:()=>j,r:()=>Q});var B=x(43382),I=x(36706),M=x(64153),P=x(68402),o=x(2993),w=x(9496),S=x(38806),D=x(51486),A=x(33190),g=x(87395),p=x(16780),b=function(W,X,_,t){return new(_||(_=Promise))(function(s,e){function i(c){try{d(t.next(c))}catch(r){e(r)}}function u(c){try{d(t.throw(c))}catch(r){e(r)}}function d(c){c.done?s(c.value):function a(s){return s instanceof _?s:new _(function(e){e(s)})}(c.value).then(i,u)}d((t=t.apply(W,X||[])).next())})};const y=new A.Logger(g.i),m=["call","estimateGas"];function E(W,X){if(null==W)return null;if("string"==typeof W.message&&W.message.match("reverted")){const _=(0,M.isHexString)(W.data)?W.data:null;if(!X||_)return{message:W.message,data:_}}if("object"==typeof W){for(const _ in W){const t=E(W[_],X);if(t)return t}return null}if("string"==typeof W)try{return E(JSON.parse(W),X)}catch{}return null}function C(W,X,_){const t=_.transaction||_.signedTransaction;if("call"===W){const s=E(X,!0);if(s)return s.data;y.throwError("missing revert data in call exception; Transaction reverted without a reason string",A.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:t,error:X})}if("estimateGas"===W){let s=E(X.body,!1);null==s&&(s=E(X,!1)),s&&y.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",A.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:W,transaction:t,error:X})}let a=X.message;throw X.code===A.Logger.errors.SERVER_ERROR&&X.error&&"string"==typeof X.error.message?a=X.error.message:"string"==typeof X.body?a=X.body:"string"==typeof X.responseText&&(a=X.responseText),a=(a||"").toLowerCase(),a.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&y.throwError("insufficient funds for intrinsic transaction cost",A.Logger.errors.INSUFFICIENT_FUNDS,{error:X,method:W,transaction:t}),a.match(/nonce (is )?too low/i)&&y.throwError("nonce has already been used",A.Logger.errors.NONCE_EXPIRED,{error:X,method:W,transaction:t}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&y.throwError("replacement fee too low",A.Logger.errors.REPLACEMENT_UNDERPRICED,{error:X,method:W,transaction:t}),a.match(/only replay-protected/i)&&y.throwError("legacy pre-eip-155 transactions not supported",A.Logger.errors.UNSUPPORTED_OPERATION,{error:X,method:W,transaction:t}),m.indexOf(W)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&y.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",A.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:X,method:W,transaction:t}),X}function L(W){return new Promise(function(X){setTimeout(X,W)})}function R(W){if(W.error){const X=new Error(W.error.message);throw X.code=W.error.code,X.data=W.error.data,X}return W.result}function U(W){return W&&W.toLowerCase()}const O={};class j extends B.E{constructor(X,_,t){if(super(),X!==O)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,o.defineReadOnly)(this,"provider",_),null==t&&(t=0),"string"==typeof t?((0,o.defineReadOnly)(this,"_address",this.provider.formatter.address(t)),(0,o.defineReadOnly)(this,"_index",null)):"number"==typeof t?((0,o.defineReadOnly)(this,"_index",t),(0,o.defineReadOnly)(this,"_address",null)):y.throwArgumentError("invalid address or index","addressOrIndex",t)}connect(X){return y.throwError("cannot alter JSON-RPC Signer connection",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new K(O,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(X=>(X.length<=this._index&&y.throwError("unknown account #"+this._index,A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(X[this._index])))}sendUncheckedTransaction(X){X=(0,o.shallowCopy)(X);const _=this.getAddress().then(t=>(t&&(t=t.toLowerCase()),t));if(null==X.gasLimit){const t=(0,o.shallowCopy)(X);t.from=_,X.gasLimit=this.provider.estimateGas(t)}return null!=X.to&&(X.to=Promise.resolve(X.to).then(t=>b(this,void 0,void 0,function*(){if(null==t)return null;const a=yield this.provider.resolveName(t);return null==a&&y.throwArgumentError("provided ENS name resolves to null","tx.to",t),a}))),(0,o.resolveProperties)({tx:(0,o.resolveProperties)(X),sender:_}).then(({tx:t,sender:a})=>{null!=t.from?t.from.toLowerCase()!==a&&y.throwArgumentError("from address mismatch","transaction",X):t.from=a;const s=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[s]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&y.throwError("user rejected transaction",A.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),C("sendTransaction",e,s)))})}signTransaction(X){return y.throwError("signing transactions is unsupported",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(X){return b(this,void 0,void 0,function*(){const _=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),t=yield this.sendUncheckedTransaction(X);try{return yield(0,D.poll)(()=>b(this,void 0,void 0,function*(){const a=yield this.provider.getTransaction(t);if(null!==a)return this.provider._wrapTransaction(a,t,_)}),{oncePoll:this.provider})}catch(a){throw a.transactionHash=t,a}})}signMessage(X){return b(this,void 0,void 0,function*(){const _="string"==typeof X?(0,w.Y0)(X):X,t=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,M.hexlify)(_),t.toLowerCase()])}catch(a){throw"string"==typeof a.message&&a.message.match(/user denied/i)&&y.throwError("user rejected signing",A.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:t,messageData:X}),a}})}_legacySignMessage(X){return b(this,void 0,void 0,function*(){const _="string"==typeof X?(0,w.Y0)(X):X,t=yield this.getAddress();try{return yield this.provider.send("eth_sign",[t.toLowerCase(),(0,M.hexlify)(_)])}catch(a){throw"string"==typeof a.message&&a.message.match(/user denied/i)&&y.throwError("user rejected signing",A.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:t,messageData:X}),a}})}_signTypedData(X,_,t){return b(this,void 0,void 0,function*(){const a=yield P.E.resolveNames(X,_,t,e=>this.provider.resolveName(e)),s=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(P.E.getPayload(a.domain,_,a.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&y.throwError("user rejected signing",A.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:a.domain,types:_,value:a.value}}),e}})}unlock(X){return b(this,void 0,void 0,function*(){const _=this.provider,t=yield this.getAddress();return _.send("personal_unlockAccount",[t.toLowerCase(),X,null])})}}class K extends j{sendTransaction(X){return this.sendUncheckedTransaction(X).then(_=>({hash:_,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(_,t)}))}}const Z={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Q extends p.Zk{constructor(X,_){let t=_;null==t&&(t=new Promise((a,s)=>{setTimeout(()=>{this.detectNetwork().then(e=>{a(e)},e=>{s(e)})},0)})),super(t),X||(X=(0,o.getStatic)(this.constructor,"defaultUrl")()),(0,o.defineReadOnly)(this,"connection",Object.freeze("string"==typeof X?{url:X}:(0,o.shallowCopy)(X))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return b(this,void 0,void 0,function*(){yield L(0);let X=null;try{X=yield this.send("eth_chainId",[])}catch{try{X=yield this.send("net_version",[])}catch{}}if(null!=X){const _=(0,o.getStatic)(this.constructor,"getNetwork");try{return _(I.O$.from(X).toNumber())}catch(t){return y.throwError("could not detect network",A.Logger.errors.NETWORK_ERROR,{chainId:X,event:"invalidNetwork",serverError:t})}}return y.throwError("could not detect network",A.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(X){return new j(O,this,X)}getUncheckedSigner(X){return this.getSigner(X).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(X=>X.map(_=>this.formatter.address(_)))}send(X,_){const t={method:X,params:_,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,o.deepCopy)(t),provider:this});const a=["eth_chainId","eth_blockNumber"].indexOf(X)>=0;if(a&&this._cache[X])return this._cache[X];const s=(0,D.fetchJson)(this.connection,JSON.stringify(t),R).then(e=>(this.emit("debug",{action:"response",request:t,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:t,provider:this}),e});return a&&(this._cache[X]=s,setTimeout(()=>{this._cache[X]=null},0)),s}prepareRequest(X,_){switch(X){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[U(_.address),_.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[U(_.address),_.blockTag]];case"getCode":return["eth_getCode",[U(_.address),_.blockTag]];case"getStorageAt":return["eth_getStorageAt",[U(_.address),(0,M.hexZeroPad)(_.position,32),_.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[_.signedTransaction]];case"getBlock":return _.blockTag?["eth_getBlockByNumber",[_.blockTag,!!_.includeTransactions]]:_.blockHash?["eth_getBlockByHash",[_.blockHash,!!_.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[_.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[_.transactionHash]];case"call":return["eth_call",[(0,o.getStatic)(this.constructor,"hexlifyTransaction")(_.transaction,{from:!0}),_.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,o.getStatic)(this.constructor,"hexlifyTransaction")(_.transaction,{from:!0})]];case"getLogs":return _.filter&&null!=_.filter.address&&(_.filter.address=U(_.filter.address)),["eth_getLogs",[_.filter]]}return null}perform(X,_){return b(this,void 0,void 0,function*(){if("call"===X||"estimateGas"===X){const a=_.transaction;if(a&&null!=a.type&&I.O$.from(a.type).isZero()&&null==a.maxFeePerGas&&null==a.maxPriorityFeePerGas){const s=yield this.getFeeData();null==s.maxFeePerGas&&null==s.maxPriorityFeePerGas&&((_=(0,o.shallowCopy)(_)).transaction=(0,o.shallowCopy)(a),delete _.transaction.type)}}const t=this.prepareRequest(X,_);null==t&&y.throwError(X+" not implemented",A.Logger.errors.NOT_IMPLEMENTED,{operation:X});try{return yield this.send(t[0],t[1])}catch(a){return C(X,a,_)}})}_startEvent(X){"pending"===X.tag&&this._startPending(),super._startEvent(X)}_startPending(){if(null!=this._pendingFilter)return;const X=this,_=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=_,_.then(function(t){return function a(){X.send("eth_getFilterChanges",[t]).then(function(s){if(X._pendingFilter!=_)return null;let e=Promise.resolve();return s.forEach(function(i){X._emitted["t:"+i.toLowerCase()]="pending",e=e.then(function(){return X.getTransaction(i).then(function(u){return X.emit("pending",u),null})})}),e.then(function(){return L(1e3)})}).then(function(){if(X._pendingFilter==_)return setTimeout(function(){a()},0),null;X.send("eth_uninstallFilter",[t])}).catch(s=>{})}(),t}).catch(t=>{})}_stopEvent(X){"pending"===X.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(X)}static hexlifyTransaction(X,_){const t=(0,o.shallowCopy)(Z);if(_)for(const s in _)_[s]&&(t[s]=!0);(0,o.checkProperties)(X,t);const a={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(null==X[s])return;const e=(0,M.hexValue)(I.O$.from(X[s]));"gasLimit"===s&&(s="gas"),a[s]=e}),["from","to","data"].forEach(function(s){null!=X[s]&&(a[s]=(0,M.hexlify)(X[s]))}),X.accessList&&(a.accessList=(0,S.accessListify)(X.accessList)),a}}},7483:(q,k,x)=>{"use strict";x.d(k,{Q:()=>A});var B=x(2993),I=x(33190),M=x(87395),P=x(56270);const o=new I.Logger(M.i);let w=1;function S(g,p){const b="Web3LegacyFetcher";return function(y,m){const E={method:y,params:m,id:w++,jsonrpc:"2.0"};return new Promise((C,L)=>{this.emit("debug",{action:"request",fetcher:b,request:(0,B.deepCopy)(E),provider:this}),p(E,(R,U)=>{if(R)return this.emit("debug",{action:"response",fetcher:b,error:R,request:E,provider:this}),L(R);if(this.emit("debug",{action:"response",fetcher:b,request:E,response:U,provider:this}),U.error){const O=new Error(U.error.message);return O.code=U.error.code,O.data=U.error.data,L(O)}C(U.result)})})}}class A extends P.r{constructor(p,b){null==p&&o.throwArgumentError("missing provider","provider",p);let y=null,m=null,E=null;"function"==typeof p?(y="unknown:",m=p):(y=p.host||p.path||"",!y&&p.isMetaMask&&(y="metamask"),E=p,p.request?(""===y&&(y="eip-1193:"),m=function D(g){return function(p,b){null==b&&(b=[]);const y={method:p,params:b};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,B.deepCopy)(y),provider:this}),g.request(y).then(m=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:y,response:m,provider:this}),m),m=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:y,error:m,provider:this}),m})}}(p)):p.sendAsync?m=S(0,p.sendAsync.bind(p)):p.send?m=S(0,p.send.bind(p)):o.throwArgumentError("unsupported provider","provider",p),y||(y="unknown:")),super(y,b),(0,B.defineReadOnly)(this,"jsonRpcFetchFunc",m),(0,B.defineReadOnly)(this,"provider",E)}send(p,b){return this.jsonRpcFetchFunc(p,b)}}},93253:(q,k,x)=>{"use strict";x.r(k),x.d(k,{randomBytes:()=>B.O,shuffled:()=>I.y});var B=x(6803),I=x(44352)},6803:(q,k,x)=>{"use strict";x.d(k,{O:()=>D});var B=x(64153),I=x(33190);const P=new I.Logger("random/5.7.0"),w=function o(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}();let S=w.crypto||w.msCrypto;function D(A){(A<=0||A>1024||A%1||A!=A)&&P.throwArgumentError("invalid length","length",A);const g=new Uint8Array(A);return S.getRandomValues(g),(0,B.arrayify)(g)}(!S||!S.getRandomValues)&&(P.warn("WARNING: Missing strong random number source"),S={getRandomValues:function(A){return P.throwError("no secure random source avaialble",I.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},44352:(q,k,x)=>{"use strict";function B(I){for(let M=(I=I.slice()).length-1;M>0;M--){const P=Math.floor(Math.random()*(M+1)),o=I[M];I[M]=I[P],I[P]=o}return I}x.d(k,{y:()=>B})},10714:(q,k,x)=>{"use strict";x.r(k),x.d(k,{decode:()=>p,encode:()=>D});var B=x(64153),I=x(33190);const P=new I.Logger("rlp/5.7.0");function o(b){const y=[];for(;b;)y.unshift(255&b),b>>=8;return y}function w(b,y,m){let E=0;for(let C=0;Cy+1+E&&P.throwError("child data too short",I.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+E,result:C}}function g(b,y){if(0===b.length&&P.throwError("data too short",I.Logger.errors.BUFFER_OVERRUN,{}),b[y]>=248){const m=b[y]-247;y+1+m>b.length&&P.throwError("data short segment too short",I.Logger.errors.BUFFER_OVERRUN,{});const E=w(b,y+1,m);return y+1+m+E>b.length&&P.throwError("data long segment too short",I.Logger.errors.BUFFER_OVERRUN,{}),A(b,y,y+1+m,m+E)}if(b[y]>=192){const m=b[y]-192;return y+1+m>b.length&&P.throwError("data array too short",I.Logger.errors.BUFFER_OVERRUN,{}),A(b,y,y+1,m)}if(b[y]>=184){const m=b[y]-183;y+1+m>b.length&&P.throwError("data array too short",I.Logger.errors.BUFFER_OVERRUN,{});const E=w(b,y+1,m);return y+1+m+E>b.length&&P.throwError("data array too short",I.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+m+E,result:(0,B.hexlify)(b.slice(y+1+m,y+1+m+E))}}if(b[y]>=128){const m=b[y]-128;return y+1+m>b.length&&P.throwError("data too short",I.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+m,result:(0,B.hexlify)(b.slice(y+1,y+1+m))}}return{consumed:1,result:(0,B.hexlify)(b[y])}}function p(b){const y=(0,B.arrayify)(b),m=g(y,0);return m.consumed!==y.length&&P.throwArgumentError("invalid rlp data","data",b),m.result}},84446:(q,k,x)=>{"use strict";x.r(k),x.d(k,{SupportedAlgorithm:()=>I.p,computeHmac:()=>B.Gy,ripemd160:()=>B.bP,sha256:()=>B.JQ,sha512:()=>B.o});var B=x(33264),I=x(98181)},33264:(q,k,x)=>{"use strict";x.d(k,{Gy:()=>p,bP:()=>D,JQ:()=>A,o:()=>g});var B=x(27246),I=x.n(B),M=x(64153),P=x(98181),o=x(33190);const S=new o.Logger("sha2/5.7.0");function D(b){return"0x"+I().ripemd160().update((0,M.arrayify)(b)).digest("hex")}function A(b){return"0x"+I().sha256().update((0,M.arrayify)(b)).digest("hex")}function g(b){return"0x"+I().sha512().update((0,M.arrayify)(b)).digest("hex")}function p(b,y,m){return P.p[b]||S.throwError("unsupported algorithm "+b,o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:b}),"0x"+I().hmac(I()[b],(0,M.arrayify)(y)).update((0,M.arrayify)(m)).digest("hex")}},98181:(q,k,x)=>{"use strict";x.d(k,{p:()=>B});var B=(()=>{return(I=B||(B={})).sha256="sha256",I.sha512="sha512",B;var I})()},31570:(q,k,x)=>{"use strict";x.r(k),x.d(k,{SigningKey:()=>lt,computePublicKey:()=>ct,recoverPublicKey:()=>Lt});var B=x(17907),I=x.n(B),M=x(27246),P=x.n(M);function S(He,Ue,Se){return He(Se={path:Ue,exports:{},require:function(Ve,Le){return function p(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},Se.exports),Se.exports}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var b=y;function y(He,Ue){if(!He)throw new Error(Ue||"Assertion failed")}y.equal=function(Ue,Se,Ve){if(Ue!=Se)throw new Error(Ve||"Assertion failed: "+Ue+" != "+Se)};var m=S(function(He,Ue){var Se=Ue;function Le(z){return 1===z.length?"0"+z:z}function Y(z){for(var G="",re=0;re>8,we=255&Ge;De?re.push(De,we):re.push(we)}return re},Se.zero2=Le,Se.toHex=Y,Se.encode=function(G,re){return"hex"===re?Y(G):G}}),E=S(function(He,Ue){var Se=Ue;Se.assert=b,Se.toArray=m.toArray,Se.zero2=m.zero2,Se.toHex=m.toHex,Se.encode=m.encode,Se.getNAF=function Ve(re,ce,Ge){var De=new Array(Math.max(re.bitLength(),Ge)+1);De.fill(0);for(var we=1<(we>>1)-1?(we>>1)-le:le):te=0,De[xe]=te,Oe.iushrn(1)}return De},Se.getJSF=function Le(re,ce){var Ge=[[],[]];re=re.clone(),ce=ce.clone();for(var Oe,De=0,we=0;re.cmpn(-De)>0||ce.cmpn(-we)>0;){var le,me,xe=re.andln(3)+De&3,te=ce.andln(3)+we&3;3===xe&&(xe=-1),3===te&&(te=-1),le=0==(1&xe)?0:3!=(Oe=re.andln(7)+De&7)&&5!==Oe||2!==te?xe:-xe,Ge[0].push(le),me=0==(1&te)?0:3!=(Oe=ce.andln(7)+we&7)&&5!==Oe||2!==xe?te:-te,Ge[1].push(me),2*De===le+1&&(De=1-De),2*we===me+1&&(we=1-we),re.iushrn(1),ce.iushrn(1)}return Ge},Se.cachedProperty=function Y(re,ce,Ge){var De="_"+ce;re.prototype[ce]=function(){return void 0!==this[De]?this[De]:this[De]=Ge.call(this)}},Se.parseBytes=function z(re){return"string"==typeof re?Se.toArray(re,"hex"):re},Se.intFromLE=function G(re){return new(I())(re,"hex","le")}}),C=E.getNAF,L=E.getJSF,R=E.assert;function U(He,Ue){this.type=He,this.p=new(I())(Ue.p,16),this.red=Ue.prime?I().red(Ue.prime):I().mont(this.p),this.zero=new(I())(0).toRed(this.red),this.one=new(I())(1).toRed(this.red),this.two=new(I())(2).toRed(this.red),this.n=Ue.n&&new(I())(Ue.n,16),this.g=Ue.g&&this.pointFromJSON(Ue.g,Ue.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var Se=this.n&&this.p.div(this.n);!Se||Se.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var O=U;function j(He,Ue){this.curve=He,this.type=Ue,this.precomputed=null}U.prototype.point=function(){throw new Error("Not implemented")},U.prototype.validate=function(){throw new Error("Not implemented")},U.prototype._fixedNafMul=function(Ue,Se){R(Ue.precomputed);var Ve=Ue._getDoubles(),Le=C(Se,1,this._bitLength),Y=(1<=G;ce--)re=(re<<1)+Le[ce];z.push(re)}for(var Ge=this.jpoint(null,null,null),De=this.jpoint(null,null,null),we=Y;we>0;we--){for(G=0;G=0;re--){for(var ce=0;re>=0&&0===z[re];re--)ce++;if(re>=0&&ce++,G=G.dblp(ce),re<0)break;var Ge=z[re];R(0!==Ge),G="affine"===Ue.type?G.mixedAdd(Ge>0?Y[Ge-1>>1]:Y[-Ge-1>>1].neg()):G.add(Ge>0?Y[Ge-1>>1]:Y[-Ge-1>>1].neg())}return"affine"===Ue.type?G.toP():G},U.prototype._wnafMulAdd=function(Ue,Se,Ve,Le,Y){var Ge,De,we,z=this._wnafT1,G=this._wnafT2,re=this._wnafT3,ce=0;for(Ge=0;Ge=1;Ge-=2){var xe=Ge-1,te=Ge;if(1===z[xe]&&1===z[te]){var le=[Se[xe],null,null,Se[te]];0===Se[xe].y.cmp(Se[te].y)?(le[1]=Se[xe].add(Se[te]),le[2]=Se[xe].toJ().mixedAdd(Se[te].neg())):0===Se[xe].y.cmp(Se[te].y.redNeg())?(le[1]=Se[xe].toJ().mixedAdd(Se[te]),le[2]=Se[xe].add(Se[te].neg())):(le[1]=Se[xe].toJ().mixedAdd(Se[te]),le[2]=Se[xe].toJ().mixedAdd(Se[te].neg()));var me=[-3,-1,-5,-7,0,7,5,1,3],Pe=L(Ve[xe],Ve[te]);for(ce=Math.max(Pe[0].length,ce),re[xe]=new Array(ce),re[te]=new Array(ce),De=0;De=0;Ge--){for(var Fe=0;Ge>=0;){var ne=!0;for(De=0;De=0&&Fe++,et=et.dblp(Fe),Ge<0)break;for(De=0;De0?we=G[De][yt-1>>1]:yt<0&&(we=G[De][-yt-1>>1].neg()),et="affine"===we.type?et.mixedAdd(we):et.add(we))}}for(Ge=0;Ge=Math.ceil((Ue.bitLength()+1)/Se.step)},j.prototype._getDoubles=function(Ue,Se){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var Ve=[this],Le=this,Y=0;Y=0&&(Oe=ce,xe=Ge),De.negative&&(De=De.neg(),we=we.neg()),Oe.negative&&(Oe=Oe.neg(),xe=xe.neg()),[{a:De,b:we},{a:Oe,b:xe}]},Q.prototype._endoSplit=function(Ue){var Se=this.endo.basis,Ve=Se[0],Le=Se[1],Y=Le.b.mul(Ue).divRound(this.n),z=Ve.b.neg().mul(Ue).divRound(this.n),G=Y.mul(Ve.a),re=z.mul(Le.a),ce=Y.mul(Ve.b),Ge=z.mul(Le.b);return{k1:Ue.sub(G).sub(re),k2:ce.add(Ge).neg()}},Q.prototype.pointFromX=function(Ue,Se){(Ue=new(I())(Ue,16)).red||(Ue=Ue.toRed(this.red));var Ve=Ue.redSqr().redMul(Ue).redIAdd(Ue.redMul(this.a)).redIAdd(this.b),Le=Ve.redSqrt();if(0!==Le.redSqr().redSub(Ve).cmp(this.zero))throw new Error("invalid point");var Y=Le.fromRed().isOdd();return(Se&&!Y||!Se&&Y)&&(Le=Le.redNeg()),this.point(Ue,Le)},Q.prototype.validate=function(Ue){if(Ue.inf)return!0;var Se=Ue.x,Ve=Ue.y,Le=this.a.redMul(Se),Y=Se.redSqr().redMul(Se).redIAdd(Le).redIAdd(this.b);return 0===Ve.redSqr().redISub(Y).cmpn(0)},Q.prototype._endoWnafMulAdd=function(Ue,Se,Ve){for(var Le=this._endoWnafT1,Y=this._endoWnafT2,z=0;z":""},X.prototype.isInfinity=function(){return this.inf},X.prototype.add=function(Ue){if(this.inf)return Ue;if(Ue.inf)return this;if(this.eq(Ue))return this.dbl();if(this.neg().eq(Ue))return this.curve.point(null,null);if(0===this.x.cmp(Ue.x))return this.curve.point(null,null);var Se=this.y.redSub(Ue.y);0!==Se.cmpn(0)&&(Se=Se.redMul(this.x.redSub(Ue.x).redInvm()));var Ve=Se.redSqr().redISub(this.x).redISub(Ue.x),Le=Se.redMul(this.x.redSub(Ve)).redISub(this.y);return this.curve.point(Ve,Le)},X.prototype.dbl=function(){if(this.inf)return this;var Ue=this.y.redAdd(this.y);if(0===Ue.cmpn(0))return this.curve.point(null,null);var Se=this.curve.a,Ve=this.x.redSqr(),Le=Ue.redInvm(),Y=Ve.redAdd(Ve).redIAdd(Ve).redIAdd(Se).redMul(Le),z=Y.redSqr().redISub(this.x.redAdd(this.x)),G=Y.redMul(this.x.redSub(z)).redISub(this.y);return this.curve.point(z,G)},X.prototype.getX=function(){return this.x.fromRed()},X.prototype.getY=function(){return this.y.fromRed()},X.prototype.mul=function(Ue){return Ue=new(I())(Ue,16),this.isInfinity()?this:this._hasDoubles(Ue)?this.curve._fixedNafMul(this,Ue):this.curve.endo?this.curve._endoWnafMulAdd([this],[Ue]):this.curve._wnafMul(this,Ue)},X.prototype.mulAdd=function(Ue,Se,Ve){var Le=[this,Se],Y=[Ue,Ve];return this.curve.endo?this.curve._endoWnafMulAdd(Le,Y):this.curve._wnafMulAdd(1,Le,Y,2)},X.prototype.jmulAdd=function(Ue,Se,Ve){var Le=[this,Se],Y=[Ue,Ve];return this.curve.endo?this.curve._endoWnafMulAdd(Le,Y,!0):this.curve._wnafMulAdd(1,Le,Y,2,!0)},X.prototype.eq=function(Ue){return this===Ue||this.inf===Ue.inf&&(this.inf||0===this.x.cmp(Ue.x)&&0===this.y.cmp(Ue.y))},X.prototype.neg=function(Ue){if(this.inf)return this;var Se=this.curve.point(this.x,this.y.redNeg());if(Ue&&this.precomputed){var Ve=this.precomputed,Le=function(Y){return Y.neg()};Se.precomputed={naf:Ve.naf&&{wnd:Ve.naf.wnd,points:Ve.naf.points.map(Le)},doubles:Ve.doubles&&{step:Ve.doubles.step,points:Ve.doubles.points.map(Le)}}}return Se},X.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},K(_,O.BasePoint),Q.prototype.jpoint=function(Ue,Se,Ve){return new _(this,Ue,Se,Ve)},_.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var Ue=this.z.redInvm(),Se=Ue.redSqr(),Ve=this.x.redMul(Se),Le=this.y.redMul(Se).redMul(Ue);return this.curve.point(Ve,Le)},_.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},_.prototype.add=function(Ue){if(this.isInfinity())return Ue;if(Ue.isInfinity())return this;var Se=Ue.z.redSqr(),Ve=this.z.redSqr(),Le=this.x.redMul(Se),Y=Ue.x.redMul(Ve),z=this.y.redMul(Se.redMul(Ue.z)),G=Ue.y.redMul(Ve.redMul(this.z)),re=Le.redSub(Y),ce=z.redSub(G);if(0===re.cmpn(0))return 0!==ce.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Ge=re.redSqr(),De=Ge.redMul(re),we=Le.redMul(Ge),Oe=ce.redSqr().redIAdd(De).redISub(we).redISub(we),xe=ce.redMul(we.redISub(Oe)).redISub(z.redMul(De)),te=this.z.redMul(Ue.z).redMul(re);return this.curve.jpoint(Oe,xe,te)},_.prototype.mixedAdd=function(Ue){if(this.isInfinity())return Ue.toJ();if(Ue.isInfinity())return this;var Se=this.z.redSqr(),Ve=this.x,Le=Ue.x.redMul(Se),Y=this.y,z=Ue.y.redMul(Se).redMul(this.z),G=Ve.redSub(Le),re=Y.redSub(z);if(0===G.cmpn(0))return 0!==re.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ce=G.redSqr(),Ge=ce.redMul(G),De=Ve.redMul(ce),we=re.redSqr().redIAdd(Ge).redISub(De).redISub(De),Oe=re.redMul(De.redISub(we)).redISub(Y.redMul(Ge)),xe=this.z.redMul(G);return this.curve.jpoint(we,Oe,xe)},_.prototype.dblp=function(Ue){if(0===Ue)return this;if(this.isInfinity())return this;if(!Ue)return this.dbl();var Se;if(this.curve.zeroA||this.curve.threeA){var Ve=this;for(Se=0;Se=0)return!1;if(Ve.redIAdd(Y),0===this.x.cmp(Ve))return!0}},_.prototype.inspect=function(){return this.isInfinity()?"":""},_.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var t=S(function(He,Ue){var Se=Ue;Se.base=O,Se.short=W,Se.mont=null,Se.edwards=null}),a=S(function(He,Ue){var z,Se=Ue,Ve=E.assert;function Le(G){this.curve="short"===G.type?new t.short(G):"edwards"===G.type?new t.edwards(G):new t.mont(G),this.g=this.curve.g,this.n=this.curve.n,this.hash=G.hash,Ve(this.g.validate(),"Invalid curve"),Ve(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function Y(G,re){Object.defineProperty(Se,G,{configurable:!0,enumerable:!0,get:function(){var ce=new Le(re);return Object.defineProperty(Se,G,{configurable:!0,enumerable:!0,value:ce}),ce}})}Se.PresetCurve=Le,Y("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:P().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),Y("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:P().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),Y("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:P().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),Y("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:P().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),Y("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:P().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),Y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:P().sha256,gRed:!1,g:["9"]}),Y("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:P().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{z=null.crash()}catch{z=void 0}Y("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:P().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",z]})});function s(He){if(!(this instanceof s))return new s(He);this.hash=He.hash,this.predResist=!!He.predResist,this.outLen=this.hash.outSize,this.minEntropy=He.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var Ue=m.toArray(He.entropy,He.entropyEnc||"hex"),Se=m.toArray(He.nonce,He.nonceEnc||"hex"),Ve=m.toArray(He.pers,He.persEnc||"hex");b(Ue.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Ue,Se,Ve)}var e=s;s.prototype._init=function(Ue,Se,Ve){var Le=Ue.concat(Se).concat(Ve);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var Y=0;Y=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(Ue.concat(Ve||[])),this._reseed=1},s.prototype.generate=function(Ue,Se,Ve,Le){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof Se&&(Le=Ve,Ve=Se,Se=null),Ve&&(Ve=m.toArray(Ve,Le||"hex"),this._update(Ve));for(var Y=[];Y.length"};var c=E.assert;function r(He,Ue){if(He instanceof r)return He;this._importDER(He,Ue)||(c(He.r&&He.s,"Signature without r or s"),this.r=new(I())(He.r,16),this.s=new(I())(He.s,16),this.recoveryParam=void 0===He.recoveryParam?null:He.recoveryParam)}var h=r;function F(){this.place=0}function T(He,Ue){var Se=He[Ue.place++];if(!(128&Se))return Se;var Ve=15&Se;if(0===Ve||Ve>4)return!1;for(var Le=0,Y=0,z=Ue.place;Y>>=0;return!(Le<=127)&&(Ue.place=z,Le)}function H(He){for(var Ue=0,Se=He.length-1;!He[Ue]&&!(128&He[Ue+1])&&Ue>>3);for(He.push(128|Se);--Se;)He.push(Ue>>>(Se<<3)&255);He.push(Ue)}}r.prototype._importDER=function(Ue,Se){Ue=E.toArray(Ue,Se);var Ve=new F;if(48!==Ue[Ve.place++])return!1;var Le=T(Ue,Ve);if(!1===Le||Le+Ve.place!==Ue.length||2!==Ue[Ve.place++])return!1;var Y=T(Ue,Ve);if(!1===Y)return!1;var z=Ue.slice(Ve.place,Y+Ve.place);if(Ve.place+=Y,2!==Ue[Ve.place++])return!1;var G=T(Ue,Ve);if(!1===G||Ue.length!==G+Ve.place)return!1;var re=Ue.slice(Ve.place,G+Ve.place);if(0===z[0]){if(!(128&z[1]))return!1;z=z.slice(1)}if(0===re[0]){if(!(128&re[1]))return!1;re=re.slice(1)}return this.r=new(I())(z),this.s=new(I())(re),this.recoveryParam=null,!0},r.prototype.toDER=function(Ue){var Se=this.r.toArray(),Ve=this.s.toArray();for(128&Se[0]&&(Se=[0].concat(Se)),128&Ve[0]&&(Ve=[0].concat(Ve)),Se=H(Se),Ve=H(Ve);!(Ve[0]||128&Ve[1]);)Ve=Ve.slice(1);var Le=[2];ae(Le,Se.length),(Le=Le.concat(Se)).push(2),ae(Le,Ve.length);var Y=Le.concat(Ve),z=[48];return ae(z,Y.length),z=z.concat(Y),E.encode(z,Ue)};var Ae=function(){throw new Error("unsupported")},fe=E.assert;function Ee(He){if(!(this instanceof Ee))return new Ee(He);"string"==typeof He&&(fe(Object.prototype.hasOwnProperty.call(a,He),"Unknown curve "+He),He=a[He]),He instanceof a.PresetCurve&&(He={curve:He}),this.curve=He.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=He.curve.g,this.g.precompute(He.curve.n.bitLength()+1),this.hash=He.hash||He.curve.hash}var ee=Ee;Ee.prototype.keyPair=function(Ue){return new d(this,Ue)},Ee.prototype.keyFromPrivate=function(Ue,Se){return d.fromPrivate(this,Ue,Se)},Ee.prototype.keyFromPublic=function(Ue,Se){return d.fromPublic(this,Ue,Se)},Ee.prototype.genKeyPair=function(Ue){Ue||(Ue={});for(var Se=new e({hash:this.hash,pers:Ue.pers,persEnc:Ue.persEnc||"utf8",entropy:Ue.entropy||Ae(),entropyEnc:Ue.entropy&&Ue.entropyEnc||"utf8",nonce:this.n.toArray()}),Ve=this.n.byteLength(),Le=this.n.sub(new(I())(2));;){var Y=new(I())(Se.generate(Ve));if(!(Y.cmp(Le)>0))return Y.iaddn(1),this.keyFromPrivate(Y)}},Ee.prototype._truncateToN=function(Ue,Se){var Ve=8*Ue.byteLength()-this.n.bitLength();return Ve>0&&(Ue=Ue.ushrn(Ve)),!Se&&Ue.cmp(this.n)>=0?Ue.sub(this.n):Ue},Ee.prototype.sign=function(Ue,Se,Ve,Le){"object"==typeof Ve&&(Le=Ve,Ve=null),Le||(Le={}),Se=this.keyFromPrivate(Se,Ve),Ue=this._truncateToN(new(I())(Ue,16));for(var Y=this.n.byteLength(),z=Se.getPrivate().toArray("be",Y),G=Ue.toArray("be",Y),re=new e({hash:this.hash,entropy:z,nonce:G,pers:Le.pers,persEnc:Le.persEnc||"utf8"}),ce=this.n.sub(new(I())(1)),Ge=0;;Ge++){var De=Le.k?Le.k(Ge):new(I())(re.generate(this.n.byteLength()));if(!((De=this._truncateToN(De,!0)).cmpn(1)<=0||De.cmp(ce)>=0)){var we=this.g.mul(De);if(!we.isInfinity()){var Oe=we.getX(),xe=Oe.umod(this.n);if(0!==xe.cmpn(0)){var te=De.invm(this.n).mul(xe.mul(Se.getPrivate()).iadd(Ue));if(0!==(te=te.umod(this.n)).cmpn(0)){var le=(we.getY().isOdd()?1:0)|(0!==Oe.cmp(xe)?2:0);return Le.canonical&&te.cmp(this.nh)>0&&(te=this.n.sub(te),le^=1),new h({r:xe,s:te,recoveryParam:le})}}}}}},Ee.prototype.verify=function(Ue,Se,Ve,Le){Ue=this._truncateToN(new(I())(Ue,16)),Ve=this.keyFromPublic(Ve,Le);var Y=(Se=new h(Se,"hex")).r,z=Se.s;if(Y.cmpn(1)<0||Y.cmp(this.n)>=0||z.cmpn(1)<0||z.cmp(this.n)>=0)return!1;var Ge,G=z.invm(this.n),re=G.mul(Ue).umod(this.n),ce=G.mul(Y).umod(this.n);return this.curve._maxwellTrick?!(Ge=this.g.jmulAdd(re,Ve.getPublic(),ce)).isInfinity()&&Ge.eqXToP(Y):!(Ge=this.g.mulAdd(re,Ve.getPublic(),ce)).isInfinity()&&0===Ge.getX().umod(this.n).cmp(Y)},Ee.prototype.recoverPubKey=function(He,Ue,Se,Ve){fe((3&Se)===Se,"The recovery param is more than two bits"),Ue=new h(Ue,Ve);var Le=this.n,Y=new(I())(He),z=Ue.r,G=Ue.s,re=1&Se,ce=Se>>1;if(z.cmp(this.curve.p.umod(this.curve.n))>=0&&ce)throw new Error("Unable to find sencond key candinate");z=this.curve.pointFromX(ce?z.add(this.curve.n):z,re);var Ge=Ue.r.invm(Le),De=Le.sub(Y).mul(Ge).umod(Le),we=G.mul(Ge).umod(Le);return this.g.mulAdd(De,z,we)},Ee.prototype.getKeyRecoveryParam=function(He,Ue,Se,Ve){if(null!==(Ue=new h(Ue,Ve)).recoveryParam)return Ue.recoveryParam;for(var Le=0;Le<4;Le++){var Y;try{Y=this.recoverPubKey(He,Ue,Le)}catch{continue}if(Y.eq(Se))return Le}throw new Error("Unable to find valid recovery factor")};var ze=S(function(He,Ue){var Se=Ue;Se.version="6.5.4",Se.utils=E,Se.rand=function(){throw new Error("unsupported")},Se.curve=t,Se.curves=a,Se.ec=ee,Se.eddsa=null}).ec,ye=x(64153),ue=x(2993);const Ye=new(x(33190).Logger)("signing-key/5.7.0");let Et=null;function ot(){return Et||(Et=new ze("secp256k1")),Et}class lt{constructor(Ue){(0,ue.defineReadOnly)(this,"curve","secp256k1"),(0,ue.defineReadOnly)(this,"privateKey",(0,ye.hexlify)(Ue)),32!==(0,ye.hexDataLength)(this.privateKey)&&Ye.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const Se=ot().keyFromPrivate((0,ye.arrayify)(this.privateKey));(0,ue.defineReadOnly)(this,"publicKey","0x"+Se.getPublic(!1,"hex")),(0,ue.defineReadOnly)(this,"compressedPublicKey","0x"+Se.getPublic(!0,"hex")),(0,ue.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(Ue){const Se=ot().keyFromPublic((0,ye.arrayify)(this.publicKey)),Ve=ot().keyFromPublic((0,ye.arrayify)(Ue));return"0x"+Se.pub.add(Ve.pub).encodeCompressed("hex")}signDigest(Ue){const Se=ot().keyFromPrivate((0,ye.arrayify)(this.privateKey)),Ve=(0,ye.arrayify)(Ue);32!==Ve.length&&Ye.throwArgumentError("bad digest length","digest",Ue);const Le=Se.sign(Ve,{canonical:!0});return(0,ye.splitSignature)({recoveryParam:Le.recoveryParam,r:(0,ye.hexZeroPad)("0x"+Le.r.toString(16),32),s:(0,ye.hexZeroPad)("0x"+Le.s.toString(16),32)})}computeSharedSecret(Ue){const Se=ot().keyFromPrivate((0,ye.arrayify)(this.privateKey)),Ve=ot().keyFromPublic((0,ye.arrayify)(ct(Ue)));return(0,ye.hexZeroPad)("0x"+Se.derive(Ve.getPublic()).toString(16),32)}static isSigningKey(Ue){return!(!Ue||!Ue._isSigningKey)}}function Lt(He,Ue){const Se=(0,ye.splitSignature)(Ue),Ve={r:(0,ye.arrayify)(Se.r),s:(0,ye.arrayify)(Se.s)};return"0x"+ot().recoverPubKey((0,ye.arrayify)(He),Ve,Se.recoveryParam).encode("hex",!1)}function ct(He,Ue){const Se=(0,ye.arrayify)(He);if(32===Se.length){const Ve=new lt(Se);return Ue?"0x"+ot().keyFromPrivate(Se).getPublic(!0,"hex"):Ve.publicKey}return 33===Se.length?Ue?(0,ye.hexlify)(Se):"0x"+ot().keyFromPublic(Se).getPublic(!1,"hex"):65===Se.length?Ue?"0x"+ot().keyFromPublic(Se).getPublic(!0,"hex"):(0,ye.hexlify)(Se):Ye.throwArgumentError("invalid public or private key","key","[REDACTED]")}},5852:(q,k,x)=>{"use strict";x.r(k),x.d(k,{keccak256:()=>E,pack:()=>m,sha256:()=>C});var B=x(36706),I=x(64153),M=x(59558),P=x(33264),o=x(9496),w=x(33190);const D=new RegExp("^bytes([0-9]+)$"),A=new RegExp("^(u?int)([0-9]*)$"),g=new RegExp("^(.*)\\[([0-9]*)\\]$"),b=new w.Logger("solidity/5.7.0");function y(L,R,U){switch(L){case"address":return U?(0,I.zeroPad)(R,32):(0,I.arrayify)(R);case"string":return(0,o.Y0)(R);case"bytes":return(0,I.arrayify)(R);case"bool":return R=R?"0x01":"0x00",U?(0,I.zeroPad)(R,32):(0,I.arrayify)(R)}let O=L.match(A);if(O){let j=parseInt(O[2]||"256");return(O[2]&&String(j)!==O[2]||j%8!=0||0===j||j>256)&&b.throwArgumentError("invalid number type","type",L),U&&(j=256),R=B.O$.from(R).toTwos(j),(0,I.zeroPad)(R,j/8)}if(O=L.match(D),O){const j=parseInt(O[1]);return(String(j)!==O[1]||0===j||j>32)&&b.throwArgumentError("invalid bytes type","type",L),(0,I.arrayify)(R).byteLength!==j&&b.throwArgumentError(`invalid value for ${L}`,"value",R),U?(0,I.arrayify)((R+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):R}if(O=L.match(g),O&&Array.isArray(R)){const j=O[1];parseInt(O[2]||String(R.length))!=R.length&&b.throwArgumentError(`invalid array length for ${L}`,"value",R);const Z=[];return R.forEach(function(Q){Z.push(y(j,Q,!0))}),(0,I.concat)(Z)}return b.throwArgumentError("invalid type","type",L)}function m(L,R){L.length!=R.length&&b.throwArgumentError("wrong number of values; expected ${ types.length }","values",R);const U=[];return L.forEach(function(O,j){U.push(y(O,R[j]))}),(0,I.hexlify)((0,I.concat)(U))}function E(L,R){return(0,M.keccak256)(m(L,R))}function C(L,R){return(0,P.JQ)(m(L,R))}},95414:(q,k,x)=>{"use strict";x.d(k,{F:()=>o,s:()=>P});var B=x(23253),I=x(64153),M=x(9496);function P(w){const S=(0,M.Y0)(w);if(S.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,I.hexlify)((0,I.concat)([S,B.R]).slice(0,32))}function o(w){const S=(0,I.arrayify)(w);if(32!==S.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==S[31])throw new Error("invalid bytes32 string - no null terminator");let D=31;for(;0===S[D-1];)D--;return(0,M.ZN)(S.slice(0,D))}},53797:(q,k,x)=>{"use strict";x.d(k,{Ll:()=>L});var B=x(9496);function M(R,U){U||(U=function(K){return[parseInt(K,16)]});let O=0,j={};return R.split(",").forEach(K=>{let Z=K.split(":");O+=parseInt(Z[0],16),j[O]=U(Z[1])}),j}function P(R){let U=0;return R.split(",").map(O=>{let j=O.split("-");1===j.length?j[1]="0":""===j[1]&&(j[1]="1");let K=U+parseInt(j[0],16);return U=parseInt(j[1],16),{l:K,h:U}})}function o(R,U){let O=0;for(let j=0;j=O&&R<=O+K.h&&(R-O)%(K.d||1)==0){if(K.e&&-1!==K.e.indexOf(R-O))continue;return K}}return null}const w=P("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),S="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(R=>parseInt(R,16)),D=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],A=M("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),g=M("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),p=M("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function I(R){if(R.length%4!=0)throw new Error("bad data");let U=[];for(let O=0;O(O.forEach(j=>{U.push(j)}),U),[])}(U.map(j=>{if(S.indexOf(j)>=0)return[];if(j>=65024&&j<=65039)return[];let K=function E(R){let U=o(R,D);if(U)return[R+U.s];let O=A[R];if(O)return O;let j=g[R];return j?[R+j[0]]:p[R]||null}(j);return K||[j]})),U=(0,B.XL)((0,B.uu)(U),B.Uj.NFKC),U.forEach(j=>{if(function C(R){return!!o(R,b)}(j))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),U.forEach(j=>{if(function m(R){return!!o(R,w)}(j))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let O=(0,B.uu)(U);if("-"===O.substring(0,1)||"--"===O.substring(2,4)||"-"===O.substring(O.length-1))throw new Error("invalid hyphen");return O}},10187:(q,k,x)=>{"use strict";x.r(k),x.d(k,{UnicodeNormalizationForm:()=>M.Uj,Utf8ErrorFuncs:()=>M.te,Utf8ErrorReason:()=>M.Uw,_toEscapedUtf8String:()=>M.U$,formatBytes32String:()=>B.s,nameprep:()=>I.Ll,parseBytes32String:()=>B.F,toUtf8Bytes:()=>M.Y0,toUtf8CodePoints:()=>M.XL,toUtf8String:()=>M.ZN});var B=x(95414),I=x(53797),M=x(9496)},9496:(q,k,x)=>{"use strict";x.d(k,{Uj:()=>o,te:()=>g,Uw:()=>w,U$:()=>m,uu:()=>E,Y0:()=>b,XL:()=>L,ZN:()=>C});var B=x(64153);const P=new(x(33190).Logger)("strings/5.7.0");var o=(()=>{return(R=o||(o={})).current="",R.NFC="NFC",R.NFD="NFD",R.NFKC="NFKC",R.NFKD="NFKD",o;var R})(),w=(()=>{return(R=w||(w={})).UNEXPECTED_CONTINUE="unexpected continuation byte",R.BAD_PREFIX="bad codepoint prefix",R.OVERRUN="string overrun",R.MISSING_CONTINUE="missing continuation byte",R.OUT_OF_RANGE="out of UTF-8 range",R.UTF16_SURROGATE="UTF-16 surrogate",R.OVERLONG="overlong representation",w;var R})();function D(R,U,O,j,K){if(R===w.BAD_PREFIX||R===w.UNEXPECTED_CONTINUE){let Z=0;for(let Q=U+1;Q>6==2;Q++)Z++;return Z}return R===w.OVERRUN?O.length-U-1:0}const g=Object.freeze({error:function S(R,U,O,j,K){return P.throwArgumentError(`invalid codepoint at offset ${U}; ${R}`,"bytes",O)},ignore:D,replace:function A(R,U,O,j,K){return R===w.OVERLONG?(j.push(K),0):(j.push(65533),D(R,U,O))}});function p(R,U){null==U&&(U=g.error),R=(0,B.arrayify)(R);const O=[];let j=0;for(;j>7==0){O.push(K);continue}let Z=null,Q=null;if(192==(224&K))Z=1,Q=127;else if(224==(240&K))Z=2,Q=2047;else{if(240!=(248&K)){j+=U(128==(192&K)?w.UNEXPECTED_CONTINUE:w.BAD_PREFIX,j-1,R,O);continue}Z=3,Q=65535}if(j-1+Z>=R.length){j+=U(w.OVERRUN,j-1,R,O);continue}let W=K&(1<<8-Z-1)-1;for(let X=0;X1114111){j+=U(w.OUT_OF_RANGE,j-1-Z,R,O,W);continue}if(W>=55296&&W<=57343){j+=U(w.UTF16_SURROGATE,j-1-Z,R,O,W);continue}if(W<=Q){j+=U(w.OVERLONG,j-1-Z,R,O,W);continue}O.push(W)}}return O}function b(R,U=o.current){U!=o.current&&(P.checkNormalize(),R=R.normalize(U));let O=[];for(let j=0;j>6|192),O.push(63&K|128);else if(55296==(64512&K)){j++;const Z=R.charCodeAt(j);if(j>=R.length||56320!=(64512&Z))throw new Error("invalid utf-8 string");const Q=65536+((1023&K)<<10)+(1023&Z);O.push(Q>>18|240),O.push(Q>>12&63|128),O.push(Q>>6&63|128),O.push(63&Q|128)}else O.push(K>>12|224),O.push(K>>6&63|128),O.push(63&K|128)}return(0,B.arrayify)(O)}function y(R){const U="0000"+R.toString(16);return"\\u"+U.substring(U.length-4)}function m(R,U){return'"'+p(R,U).map(O=>{if(O<256){switch(O){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(O>=32&&O<127)return String.fromCharCode(O)}return O<=65535?y(O):y(55296+((O-=65536)>>10&1023))+y(56320+(1023&O))}).join("")+'"'}function E(R){return R.map(U=>U<=65535?String.fromCharCode(U):(U-=65536,String.fromCharCode(55296+(U>>10&1023),56320+(1023&U)))).join("")}function C(R,U){return E(p(R,U))}function L(R,U=o.current){return p(b(R,U))}},38806:(q,k,x)=>{"use strict";x.r(k),x.d(k,{TransactionTypes:()=>b,accessListify:()=>j,computeAddress:()=>L,parse:()=>e,recoverAddress:()=>R,serialize:()=>X});var B=x(67296),I=x(36706),M=x(64153),P=x(53149),o=x(59558),w=x(2993),S=x(10714),D=x(31570),A=x(33190);const p=new A.Logger("transactions/5.7.0");var b=(()=>{return(i=b||(b={}))[i.legacy=0]="legacy",i[i.eip2930=1]="eip2930",i[i.eip1559=2]="eip1559",b;var i})();function y(i){return"0x"===i?null:(0,B.getAddress)(i)}function m(i){return"0x"===i?P._Y:I.O$.from(i)}const E=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],C={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function L(i){const u=(0,D.computePublicKey)(i);return(0,B.getAddress)((0,M.hexDataSlice)((0,o.keccak256)((0,M.hexDataSlice)(u,1)),12))}function R(i,u){return L((0,D.recoverPublicKey)((0,M.arrayify)(i),u))}function U(i,u){const d=(0,M.stripZeros)(I.O$.from(i).toHexString());return d.length>32&&p.throwArgumentError("invalid length for "+u,"transaction:"+u,i),d}function O(i,u){return{address:(0,B.getAddress)(i),storageKeys:(u||[]).map((d,c)=>(32!==(0,M.hexDataLength)(d)&&p.throwArgumentError("invalid access list storageKey",`accessList[${i}:${c}]`,d),d.toLowerCase()))}}function j(i){if(Array.isArray(i))return i.map((d,c)=>Array.isArray(d)?(d.length>2&&p.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${c}]`,d),O(d[0],d[1])):O(d.address,d.storageKeys));const u=Object.keys(i).map(d=>{const c=i[d].reduce((r,h)=>(r[h]=!0,r),{});return O(d,Object.keys(c).sort())});return u.sort((d,c)=>d.address.localeCompare(c.address)),u}function K(i){return j(i).map(u=>[u.address,u.storageKeys])}function Z(i,u){if(null!=i.gasPrice){const c=I.O$.from(i.gasPrice),r=I.O$.from(i.maxFeePerGas||0);c.eq(r)||p.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:c,maxFeePerGas:r})}const d=[U(i.chainId||0,"chainId"),U(i.nonce||0,"nonce"),U(i.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),U(i.maxFeePerGas||0,"maxFeePerGas"),U(i.gasLimit||0,"gasLimit"),null!=i.to?(0,B.getAddress)(i.to):"0x",U(i.value||0,"value"),i.data||"0x",K(i.accessList||[])];if(u){const c=(0,M.splitSignature)(u);d.push(U(c.recoveryParam,"recoveryParam")),d.push((0,M.stripZeros)(c.r)),d.push((0,M.stripZeros)(c.s))}return(0,M.hexConcat)(["0x02",S.encode(d)])}function Q(i,u){const d=[U(i.chainId||0,"chainId"),U(i.nonce||0,"nonce"),U(i.gasPrice||0,"gasPrice"),U(i.gasLimit||0,"gasLimit"),null!=i.to?(0,B.getAddress)(i.to):"0x",U(i.value||0,"value"),i.data||"0x",K(i.accessList||[])];if(u){const c=(0,M.splitSignature)(u);d.push(U(c.recoveryParam,"recoveryParam")),d.push((0,M.stripZeros)(c.r)),d.push((0,M.stripZeros)(c.s))}return(0,M.hexConcat)(["0x01",S.encode(d)])}function X(i,u){if(null==i.type||0===i.type)return null!=i.accessList&&p.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",i),function W(i,u){(0,w.checkProperties)(i,C);const d=[];E.forEach(function(F){let T=i[F.name]||[];const H={};F.numeric&&(H.hexPad="left"),T=(0,M.arrayify)((0,M.hexlify)(T,H)),F.length&&T.length!==F.length&&T.length>0&&p.throwArgumentError("invalid length for "+F.name,"transaction:"+F.name,T),F.maxLength&&(T=(0,M.stripZeros)(T),T.length>F.maxLength&&p.throwArgumentError("invalid length for "+F.name,"transaction:"+F.name,T)),d.push((0,M.hexlify)(T))});let c=0;if(null!=i.chainId?(c=i.chainId,"number"!=typeof c&&p.throwArgumentError("invalid transaction.chainId","transaction",i)):u&&!(0,M.isBytesLike)(u)&&u.v>28&&(c=Math.floor((u.v-35)/2)),0!==c&&(d.push((0,M.hexlify)(c)),d.push("0x"),d.push("0x")),!u)return S.encode(d);const r=(0,M.splitSignature)(u);let h=27+r.recoveryParam;return 0!==c?(d.pop(),d.pop(),d.pop(),h+=2*c+8,r.v>28&&r.v!==h&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",u)):r.v!==h&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",u),d.push((0,M.hexlify)(h)),d.push((0,M.stripZeros)((0,M.arrayify)(r.r))),d.push((0,M.stripZeros)((0,M.arrayify)(r.s))),S.encode(d)}(i,u);switch(i.type){case 1:return Q(i,u);case 2:return Z(i,u)}return p.throwError(`unsupported transaction type: ${i.type}`,A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:i.type})}function _(i,u,d){try{const c=m(u[0]).toNumber();if(0!==c&&1!==c)throw new Error("bad recid");i.v=c}catch{p.throwArgumentError("invalid v for transaction type: 1","v",u[0])}i.r=(0,M.hexZeroPad)(u[1],32),i.s=(0,M.hexZeroPad)(u[2],32);try{const c=(0,o.keccak256)(d(i));i.from=R(c,{r:i.r,s:i.s,recoveryParam:i.v})}catch{}}function e(i){const u=(0,M.arrayify)(i);if(u[0]>127)return function s(i){const u=S.decode(i);9!==u.length&&6!==u.length&&p.throwArgumentError("invalid raw transaction","rawTransaction",i);const d={nonce:m(u[0]).toNumber(),gasPrice:m(u[1]),gasLimit:m(u[2]),to:y(u[3]),value:m(u[4]),data:u[5],chainId:0};if(6===u.length)return d;try{d.v=I.O$.from(u[6]).toNumber()}catch{return d}if(d.r=(0,M.hexZeroPad)(u[7],32),d.s=(0,M.hexZeroPad)(u[8],32),I.O$.from(d.r).isZero()&&I.O$.from(d.s).isZero())d.chainId=d.v,d.v=0;else{d.chainId=Math.floor((d.v-35)/2),d.chainId<0&&(d.chainId=0);let c=d.v-27;const r=u.slice(0,6);0!==d.chainId&&(r.push((0,M.hexlify)(d.chainId)),r.push("0x"),r.push("0x"),c-=2*d.chainId+8);const h=(0,o.keccak256)(S.encode(r));try{d.from=R(h,{r:(0,M.hexlify)(d.r),s:(0,M.hexlify)(d.s),recoveryParam:c})}catch{}d.hash=(0,o.keccak256)(i)}return d.type=null,d}(u);switch(u[0]){case 1:return function a(i){const u=S.decode(i.slice(1));8!==u.length&&11!==u.length&&p.throwArgumentError("invalid component count for transaction type: 1","payload",(0,M.hexlify)(i));const d={type:1,chainId:m(u[0]).toNumber(),nonce:m(u[1]).toNumber(),gasPrice:m(u[2]),gasLimit:m(u[3]),to:y(u[4]),value:m(u[5]),data:u[6],accessList:j(u[7])};return 8===u.length||(d.hash=(0,o.keccak256)(i),_(d,u.slice(8),Q)),d}(u);case 2:return function t(i){const u=S.decode(i.slice(1));9!==u.length&&12!==u.length&&p.throwArgumentError("invalid component count for transaction type: 2","payload",(0,M.hexlify)(i));const d=m(u[2]),c=m(u[3]),r={type:2,chainId:m(u[0]).toNumber(),nonce:m(u[1]).toNumber(),maxPriorityFeePerGas:d,maxFeePerGas:c,gasPrice:null,gasLimit:m(u[4]),to:y(u[5]),value:m(u[6]),data:u[7],accessList:j(u[8])};return 9===u.length||(r.hash=(0,o.keccak256)(i),_(r,u.slice(9),Z)),r}(u)}return p.throwError(`unsupported transaction type: ${u[0]}`,A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:u[0]})}},70717:(q,k,x)=>{"use strict";x.r(k),x.d(k,{commify:()=>w,formatEther:()=>A,formatUnits:()=>S,parseEther:()=>g,parseUnits:()=>D});var B=x(41614);const P=new(x(33190).Logger)("units/5.7.0"),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function w(p){const b=String(p).split(".");(b.length>2||!b[0].match(/^-?[0-9]*$/)||b[1]&&!b[1].match(/^[0-9]*$/)||"."===p||"-."===p)&&P.throwArgumentError("invalid value","value",p);let y=b[0],m="";for("-"===y.substring(0,1)&&(m="-",y=y.substring(1));"0"===y.substring(0,1);)y=y.substring(1);""===y&&(y="0");let E="";for(2===b.length&&(E="."+(b[1]||"0"));E.length>2&&"0"===E[E.length-1];)E=E.substring(0,E.length-1);const C=[];for(;y.length;){if(y.length<=3){C.unshift(y);break}{const L=y.length-3;C.unshift(y.substring(L)),y=y.substring(0,L)}}return m+C.join(",")+E}function S(p,b){if("string"==typeof b){const y=o.indexOf(b);-1!==y&&(b=3*y)}return(0,B.S5)(p,b??18)}function D(p,b){if("string"!=typeof p&&P.throwArgumentError("value must be a string","value",p),"string"==typeof b){const y=o.indexOf(b);-1!==y&&(b=3*y)}return(0,B.Ox)(p,b??18)}function A(p){return S(p,18)}function g(p){return D(p,18)}},5125:(q,k,x)=>{"use strict";x.r(k),x.d(k,{Wallet:()=>j,verifyMessage:()=>K,verifyTypedData:()=>Z});var B=x(67296),I=x(59114),M=x(43382),P=x(64153),o=x(37732),w=x(68402),S=x(44708),D=x(59558),A=x(2993),g=x(6803),p=x(31570),b=x(28720),y=x(33895),m=x(38806),E=x(33190),L=function(Q,W,X,_){return new(X||(X=Promise))(function(a,s){function e(d){try{u(_.next(d))}catch(c){s(c)}}function i(d){try{u(_.throw(d))}catch(c){s(c)}}function u(d){d.done?a(d.value):function t(a){return a instanceof X?a:new X(function(s){s(a)})}(d.value).then(e,i)}u((_=_.apply(Q,W||[])).next())})};const R=new E.Logger("wallet/5.7.0");class j extends M.E{constructor(W,X){if(super(),function U(Q){return null!=Q&&(0,P.isHexString)(Q.privateKey,32)&&null!=Q.address}(W)){const _=new p.SigningKey(W.privateKey);if((0,A.defineReadOnly)(this,"_signingKey",()=>_),(0,A.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey)),this.address!==(0,B.getAddress)(W.address)&&R.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function O(Q){const W=Q.mnemonic;return W&&W.phrase}(W)){const t=W.mnemonic;(0,A.defineReadOnly)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||S.defaultPath,locale:t.locale||"en"}));const a=this.mnemonic,s=S.HDNode.fromMnemonic(a.phrase,null,a.locale).derivePath(a.path);(0,m.computeAddress)(s.privateKey)!==this.address&&R.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,A.defineReadOnly)(this,"_mnemonic",()=>null)}else{if(p.SigningKey.isSigningKey(W))"secp256k1"!==W.curve&&R.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,A.defineReadOnly)(this,"_signingKey",()=>W);else{"string"==typeof W&&W.match(/^[0-9a-f]*$/i)&&64===W.length&&(W="0x"+W);const _=new p.SigningKey(W);(0,A.defineReadOnly)(this,"_signingKey",()=>_)}(0,A.defineReadOnly)(this,"_mnemonic",()=>null),(0,A.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey))}X&&!I.zt.isProvider(X)&&R.throwArgumentError("invalid provider","provider",X),(0,A.defineReadOnly)(this,"provider",X||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(W){return new j(this,W)}signTransaction(W){return(0,A.resolveProperties)(W).then(X=>{null!=X.from&&((0,B.getAddress)(X.from)!==this.address&&R.throwArgumentError("transaction from address mismatch","transaction.from",W.from),delete X.from);const _=this._signingKey().signDigest((0,D.keccak256)((0,m.serialize)(X)));return(0,m.serialize)(X,_)})}signMessage(W){return L(this,void 0,void 0,function*(){return(0,P.joinSignature)(this._signingKey().signDigest((0,o.r)(W)))})}_signTypedData(W,X,_){return L(this,void 0,void 0,function*(){const t=yield w.E.resolveNames(W,X,_,a=>(null==this.provider&&R.throwError("cannot resolve ENS names without a provider",E.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:a}),this.provider.resolveName(a)));return(0,P.joinSignature)(this._signingKey().signDigest(w.E.hash(t.domain,X,t.value)))})}encrypt(W,X,_){if("function"==typeof X&&!_&&(_=X,X={}),_&&"function"!=typeof _)throw new Error("invalid callback");return X||(X={}),(0,b.HI)(this,W,X,_)}static createRandom(W){let X=(0,g.O)(16);W||(W={}),W.extraEntropy&&(X=(0,P.arrayify)((0,P.hexDataSlice)((0,D.keccak256)((0,P.concat)([X,W.extraEntropy])),0,16)));const _=(0,S.entropyToMnemonic)(X,W.locale);return j.fromMnemonic(_,W.path,W.locale)}static fromEncryptedJson(W,X,_){return(0,y.decryptJsonWallet)(W,X,_).then(t=>new j(t))}static fromEncryptedJsonSync(W,X){return new j((0,y.decryptJsonWalletSync)(W,X))}static fromMnemonic(W,X,_){return X||(X=S.defaultPath),new j(S.HDNode.fromMnemonic(W,null,_).derivePath(X))}}function K(Q,W){return(0,m.recoverAddress)((0,o.r)(Q),W)}function Z(Q,W,X,_){return(0,m.recoverAddress)(w.E.hash(Q,W,X),_)}},51486:(q,k,x)=>{"use strict";x.r(k),x.d(k,{_fetchData:()=>m,fetchJson:()=>E,poll:()=>C});var B=x(76813),I=x(64153),M=x(2993),P=x(9496),o=x(33190);function D(L,R){return function(L,R,U,O){return new(U||(U=Promise))(function(K,Z){function Q(_){try{X(O.next(_))}catch(t){Z(t)}}function W(_){try{X(O.throw(_))}catch(t){Z(t)}}function X(_){_.done?K(_.value):function j(K){return K instanceof U?K:new U(function(Z){Z(K)})}(_.value).then(Q,W)}X((O=O.apply(L,R||[])).next())})}(this,void 0,void 0,function*(){null==R&&(R={});const U={method:R.method||"GET",headers:R.headers||{},body:R.body||void 0};if(!0!==R.skipFetchSetup&&(U.mode="cors",U.cache="no-cache",U.credentials="same-origin",U.redirect="follow",U.referrer="client"),null!=R.fetchOptions){const Z=R.fetchOptions;Z.mode&&(U.mode=Z.mode),Z.cache&&(U.cache=Z.cache),Z.credentials&&(U.credentials=Z.credentials),Z.redirect&&(U.redirect=Z.redirect),Z.referrer&&(U.referrer=Z.referrer)}const O=yield fetch(L,U),j=yield O.arrayBuffer(),K={};return O.headers.forEach?O.headers.forEach((Z,Q)=>{K[Q.toLowerCase()]=Z}):O.headers.keys().forEach(Z=>{K[Z.toLowerCase()]=O.headers.get(Z)}),{headers:K,statusCode:O.status,statusMessage:O.statusText,body:(0,I.arrayify)(new Uint8Array(j))}})}const g=new o.Logger("web/5.7.1");function p(L){return new Promise(R=>{setTimeout(R,L)})}function b(L,R){if(null==L)return null;if("string"==typeof L)return L;if((0,I.isBytesLike)(L)){if(R&&("text"===R.split("/")[0]||"application/json"===R.split(";")[0].trim()))try{return(0,P.ZN)(L)}catch{}return(0,I.hexlify)(L)}return L}function y(L){return(0,P.Y0)(L.replace(/%([0-9a-f][0-9a-f])/gi,(R,U)=>String.fromCharCode(parseInt(U,16))))}function m(L,R,U){const O="object"==typeof L&&null!=L.throttleLimit?L.throttleLimit:12;g.assertArgument(O>0&&O%1==0,"invalid connection throttle limit","connection.throttleLimit",O);const j="object"==typeof L?L.throttleCallback:null,K="object"==typeof L&&"number"==typeof L.throttleSlotInterval?L.throttleSlotInterval:100;g.assertArgument(K>0&&K%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",K);const Z="object"==typeof L&&!!L.errorPassThrough,Q={};let W=null;const X={method:"GET"};let _=!1,t=12e4;if("string"==typeof L)W=L;else if("object"==typeof L){if((null==L||null==L.url)&&g.throwArgumentError("missing URL","connection.url",L),W=L.url,"number"==typeof L.timeout&&L.timeout>0&&(t=L.timeout),L.headers)for(const d in L.headers)Q[d.toLowerCase()]={key:d,value:String(L.headers[d])},["if-none-match","if-modified-since"].indexOf(d.toLowerCase())>=0&&(_=!0);X.allowGzip=!!L.allowGzip,null!=L.user&&null!=L.password&&("https:"!==W.substring(0,6)&&!0!==L.allowInsecureAuthentication&&g.throwError("basic authentication requires a secure https url",o.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:W,user:L.user,password:"[REDACTED]"}),Q.authorization={key:"Authorization",value:"Basic "+(0,B.c)((0,P.Y0)(L.user+":"+L.password))}),null!=L.skipFetchSetup&&(X.skipFetchSetup=!!L.skipFetchSetup),null!=L.fetchOptions&&(X.fetchOptions=(0,M.shallowCopy)(L.fetchOptions))}const a=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),s=W?W.match(a):null;if(s)try{const d={statusCode:200,statusMessage:"OK",headers:{"content-type":s[1]||"text/plain"},body:s[2]?(0,B.J)(s[3]):y(s[3])};let c=d.body;return U&&(c=U(d.body,d)),Promise.resolve(c)}catch(d){g.throwError("processing response error",o.Logger.errors.SERVER_ERROR,{body:b(s[1],s[2]),error:d,requestBody:null,requestMethod:"GET",url:W})}R&&(X.method="POST",X.body=R,null==Q["content-type"]&&(Q["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==Q["content-length"]&&(Q["content-length"]={key:"Content-Length",value:String(R.length)}));const e={};Object.keys(Q).forEach(d=>{const c=Q[d];e[c.key]=c.value}),X.headers=e;const i=function(){let d=null;return{promise:new Promise(function(h,F){t&&(d=setTimeout(()=>{null!=d&&(d=null,F(g.makeError("timeout",o.Logger.errors.TIMEOUT,{requestBody:b(X.body,e["content-type"]),requestMethod:X.method,timeout:t,url:W})))},t))}),cancel:function(){null!=d&&(clearTimeout(d),d=null)}}}(),u=function(){return function(L,R,U,O){return new(U||(U=Promise))(function(K,Z){function Q(_){try{X(O.next(_))}catch(t){Z(t)}}function W(_){try{X(O.throw(_))}catch(t){Z(t)}}function X(_){_.done?K(_.value):function j(K){return K instanceof U?K:new U(function(Z){Z(K)})}(_.value).then(Q,W)}X((O=O.apply(L,R||[])).next())})}(this,void 0,void 0,function*(){for(let d=0;d=300)&&(i.cancel(),g.throwError("bad response",o.Logger.errors.SERVER_ERROR,{status:c.statusCode,headers:c.headers,body:b(r,c.headers?c.headers["content-type"]:null),requestBody:b(X.body,e["content-type"]),requestMethod:X.method,url:W})),U)try{const h=yield U(r,c);return i.cancel(),h}catch(h){if(h.throttleRetry&&d"content-type"===Q.toLowerCase()).length||(K.headers=(0,M.shallowCopy)(K.headers),K.headers["content-type"]="application/json"):K.headers={"content-type":"application/json"},L=K}return m(L,j,(K,Z)=>{let Q=null;if(null!=K)try{Q=JSON.parse((0,P.ZN)(K))}catch(W){g.throwError("invalid JSON",o.Logger.errors.SERVER_ERROR,{body:K,error:W})}return U&&(Q=U(Q,Z)),Q})}function C(L,R){return R||(R={}),null==(R=(0,M.shallowCopy)(R)).floor&&(R.floor=0),null==R.ceiling&&(R.ceiling=1e4),null==R.interval&&(R.interval=250),new Promise(function(U,O){let j=null,K=!1;const Z=()=>!K&&(K=!0,j&&clearTimeout(j),!0);R.timeout&&(j=setTimeout(()=>{Z()&&O(new Error("timeout"))},R.timeout));const Q=R.retryLimit;let W=0;!function X(){return L().then(function(_){if(void 0!==_)Z()&&U(_);else if(R.oncePoll)R.oncePoll.once("poll",X);else if(R.onceBlock)R.onceBlock.once("block",X);else if(!K){if(W++,W>Q)return void(Z()&&O(new Error("retry limit reached")));let t=R.interval*parseInt(String(Math.random()*Math.pow(2,W)));tR.ceiling&&(t=R.ceiling),setTimeout(X,t)}return null},function(_){Z()&&O(_)})}()})}},21029:(q,k,x)=>{"use strict";x.d(k,{D:()=>S});var B=x(50035),I=x(2993);const w=new(x(33190).Logger)("wordlists/5.7.0");class S{constructor(A){w.checkAbstract(new.target,S),(0,I.defineReadOnly)(this,"locale",A)}split(A){return A.toLowerCase().split(/ +/g)}join(A){return A.join(" ")}static check(A){const g=[];for(let p=0;p<2048;p++){const b=A.getWord(p);if(p!==A.getWordIndex(b))return"0x";g.push(b)}return(0,B.id)(g.join("\n")+"\n")}static register(A,g){g||(g=A.locale)}}},721:(q,k,x)=>{"use strict";x.d(k,{E:()=>S});var B=x(21029);let M=null;function P(D){if(null==M&&(M="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==B.D.check(D)))throw M=null,new Error("BIP39 Wordlist for en (English) FAILED")}const w=new class o extends B.D{constructor(){super("en")}getWord(A){return P(this),M[A]}getWordIndex(A){return P(this),M.indexOf(A)}};B.D.register(w);const S={en:w}},7098:(q,k,x)=>{"use strict";x.r(k),x.d(k,{AsnAnyConverter:()=>Hr,AsnArray:()=>mt,AsnBitStringConverter:()=>af,AsnBmpStringConverter:()=>cr,AsnBooleanConverter:()=>Wi,AsnCharacterStringConverter:()=>An,AsnChoiceType:()=>_e,AsnConstructedOctetStringConverter:()=>Vn,AsnConvert:()=>Mt,AsnEnumeratedConverter:()=>Rn,AsnGeneralStringConverter:()=>c0,AsnGeneralizedTimeConverter:()=>cf,AsnGraphicStringConverter:()=>vn,AsnIA5StringConverter:()=>kn,AsnIntegerArrayBufferConverter:()=>Gi,AsnIntegerBigIntConverter:()=>li,AsnIntegerConverter:()=>u0,AsnNullConverter:()=>Nr,AsnNumericStringConverter:()=>Mi,AsnObjectIdentifierConverter:()=>of,AsnOctetStringConverter:()=>Ei,AsnParser:()=>ke,AsnPrintableStringConverter:()=>gn,AsnProp:()=>Xe,AsnPropTypes:()=>Lr,AsnSchemaValidationError:()=>qe,AsnSequenceType:()=>ge,AsnSerializer:()=>ut,AsnSetType:()=>Ce,AsnTeletexStringConverter:()=>Qn,AsnType:()=>Yn,AsnTypeTypes:()=>vr,AsnUTCTimeConverter:()=>uf,AsnUniversalStringConverter:()=>Bi,AsnUtf8StringConverter:()=>Zi,AsnVideotexStringConverter:()=>sf,AsnVisibleStringConverter:()=>lf,BitString:()=>s0,OctetString:()=>l0,defaultConverter:()=>Pr});var B={};x.r(B),x.d(B,{Any:()=>Ai,BaseBlock:()=>Ye,BaseStringBlock:()=>ot,BitString:()=>tt,BmpString:()=>Ht,Boolean:()=>xe,CharacterString:()=>gr,Choice:()=>nf,Constructed:()=>z,DATE:()=>Fr,DateTime:()=>qr,Duration:()=>f0,EndOfContent:()=>ce,Enumerated:()=>Be,GeneralString:()=>Cr,GeneralizedTime:()=>Br,GraphicString:()=>br,HexBlock:()=>se,IA5String:()=>ir,Integer:()=>$,Null:()=>De,NumericString:()=>Jt,ObjectIdentifier:()=>be,OctetString:()=>me,Primitive:()=>ct,PrintableString:()=>_t,RawData:()=>o0,RelativeObjectIdentifier:()=>vt,Repeated:()=>ff,Sequence:()=>at,Set:()=>At,TIME:()=>a0,TeletexString:()=>Ut,TimeOfDay:()=>Yr,UTCTime:()=>ur,UniversalString:()=>Gt,Utf8String:()=>tr,ValueBlock:()=>ye,VideotexString:()=>Ct,ViewWriter:()=>_,VisibleString:()=>pt,compareSchema:()=>si,fromBER:()=>Se,verifySchema:()=>un});var I=x(97258);function S(oe,Ie){let Me=0;if(1===oe.length)return oe[0];for(let Qe=oe.length-1;Qe>=0;Qe--)Me+=oe[oe.length-1-Qe]*Math.pow(2,Ie*Qe);return Me}function D(oe,Ie,Me=-1){const Qe=Me;let $e=oe,nt=0,dt=Math.pow(2,Ie);for(let bt=1;bt<8;bt++){if(oe=0;Ft--){const Qt=Math.pow(2,Ft*Ie);Dt[nt-Ft-1]=Math.floor($e/Qt),$e-=Dt[nt-Ft-1]*Qt}return xt}dt*=Math.pow(2,Ie)}return new ArrayBuffer(0)}function g(...oe){let Ie=0,Me=0;for(const nt of oe)Ie+=nt.length;const Qe=new ArrayBuffer(Ie),$e=new Uint8Array(Qe);for(const nt of oe)$e.set(nt,Me),Me+=nt.length;return $e}function p(){const oe=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){const xt=0===oe[0]&&0==(128&oe[1]);(255===oe[0]&&128&oe[1]||xt)&&this.warnings.push("Needlessly long format")}const Ie=new ArrayBuffer(this.valueHex.byteLength),Me=new Uint8Array(Ie);for(let bt=0;bt"u")throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function W(oe){let Ie=0,Me=0;for(let $e=0;$e{class oe{constructor({blockLength:Me=0,error:Qe=H,warnings:$e=[],valueBeforeDecode:nt=Ae}={}){this.blockLength=Me,this.error=Qe,this.warnings=$e,this.valueBeforeDecodeView=I.vJ.toUint8Array(nt)}static blockName(){return this.NAME}get valueBeforeDecode(){return this.valueBeforeDecodeView.slice().buffer}set valueBeforeDecode(Me){this.valueBeforeDecodeView=new Uint8Array(Me)}toJSON(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:I.ep.ToHex(this.valueBeforeDecodeView)}}}return oe.NAME="baseBlock",oe})(),ye=(()=>{class oe extends ze{fromBER(Me,Qe,$e){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}toBER(Me,Qe){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}return oe.NAME="valueBlock",oe})(),ue=(()=>{class oe extends(se(ze)){constructor({idBlock:Me={}}={}){var Qe,$e,nt,dt;super(),Me?(this.isHexOnly=null!==(Qe=Me.isHexOnly)&&void 0!==Qe&&Qe,this.valueHexView=Me.valueHex?I.vJ.toUint8Array(Me.valueHex):Ae,this.tagClass=null!==($e=Me.tagClass)&&void 0!==$e?$e:-1,this.tagNumber=null!==(nt=Me.tagNumber)&&void 0!==nt?nt:-1,this.isConstructed=null!==(dt=Me.isConstructed)&&void 0!==dt&&dt):(this.tagClass=-1,this.tagNumber=-1,this.isConstructed=!1)}toBER(Me=!1){let Qe=0;switch(this.tagClass){case 1:Qe|=0;break;case 2:Qe|=64;break;case 3:Qe|=128;break;case 4:Qe|=192;break;default:return this.error="Unknown tag class",ae}if(this.isConstructed&&(Qe|=32),this.tagNumber<31&&!this.isHexOnly){const nt=new Uint8Array(1);if(!Me){let dt=this.tagNumber;dt&=31,Qe|=dt,nt[0]=Qe}return nt.buffer}if(!this.isHexOnly){const nt=D(this.tagNumber,7),dt=new Uint8Array(nt),bt=nt.byteLength,xt=new Uint8Array(bt+1);if(xt[0]=31|Qe,!Me){for(let Dt=0;Dt=dt.length)return this.error="End of input reached before message was fully decoded",-1;if(Dt===Qt){Qt+=255;const sr=new Uint8Array(Qt);for(let dr=0;dr{class oe extends ze{constructor({lenBlock:Me={}}={}){var Qe,$e,nt;super(),this.isIndefiniteForm=null!==(Qe=Me.isIndefiniteForm)&&void 0!==Qe&&Qe,this.longFormUsed=null!==($e=Me.longFormUsed)&&void 0!==$e&&$e,this.length=null!==(nt=Me.length)&&void 0!==nt?nt:0}fromBER(Me,Qe,$e){const nt=I.vJ.toUint8Array(Me);if(!X(this,nt,Qe,$e))return-1;const dt=nt.subarray(Qe,Qe+$e);if(0===dt.length)return this.error="Zero buffer length",-1;if(255===dt[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===dt[0],this.isIndefiniteForm)return this.blockLength=1,Qe+this.blockLength;if(this.longFormUsed=!!(128&dt[0]),!1===this.longFormUsed)return this.length=dt[0],this.blockLength=1,Qe+this.blockLength;const bt=127&dt[0];if(bt>8)return this.error="Too big integer",-1;if(bt+1>dt.length)return this.error="End of input reached before message was fully decoded",-1;const xt=Qe+1,Dt=nt.subarray(xt,xt+bt);return 0===Dt[bt-1]&&this.warnings.push("Needlessly long encoded length"),this.length=S(Dt,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=bt+1,Qe+this.blockLength}toBER(Me=!1){let Qe,$e;if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return Qe=new ArrayBuffer(1),!1===Me&&($e=new Uint8Array(Qe),$e[0]=128),Qe;if(this.longFormUsed){const nt=D(this.length,8);if(nt.byteLength>127)return this.error="Too big length",ae;if(Qe=new ArrayBuffer(nt.byteLength+1),Me)return Qe;const dt=new Uint8Array(nt);$e=new Uint8Array(Qe),$e[0]=128|nt.byteLength;for(let bt=0;bt{class oe extends ze{constructor({name:Me=H,optional:Qe=!1,primitiveSchema:$e,...nt}={},dt){super(nt),this.name=Me,this.optional=Qe,$e&&(this.primitiveSchema=$e),this.idBlock=new ue(nt),this.lenBlock=new je(nt),this.valueBlock=dt?new dt(nt):new ye(nt)}fromBER(Me,Qe,$e){const nt=this.valueBlock.fromBER(Me,Qe,this.lenBlock.isIndefiniteForm?$e:this.lenBlock.length);return-1===nt?(this.error=this.valueBlock.error,nt):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),nt)}toBER(Me,Qe){const $e=Qe||new _;Qe||Et(this);const nt=this.idBlock.toBER(Me);if($e.write(nt),this.lenBlock.isIndefiniteForm)$e.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(Me,$e),$e.write(new ArrayBuffer(2));else{const dt=this.valueBlock.toBER(Me);this.lenBlock.length=dt.byteLength;const bt=this.lenBlock.toBER(Me);$e.write(bt),$e.write(dt)}return Qe?ae:$e.final()}toJSON(){const Me={...super.toJSON(),idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional};return this.primitiveSchema&&(Me.primitiveSchema=this.primitiveSchema.toJSON()),Me}toString(Me="ascii"){return"ascii"===Me?this.onAsciiEncoding():I.ep.ToHex(this.toBER())}onAsciiEncoding(){return`${this.constructor.NAME} : ${I.ep.ToHex(this.valueBlock.valueBeforeDecodeView)}`}isEqual(Me){return this===Me||Me instanceof this.constructor&&function y(oe,Ie){if(oe.byteLength!==Ie.byteLength)return!1;const Me=new Uint8Array(oe),Qe=new Uint8Array(Ie);for(let $e=0;$e{class oe extends Ye{constructor({value:Me=H,...Qe}={},$e){super(Qe,$e),Me&&this.fromString(Me)}getValue(){return this.valueBlock.value}setValue(Me){this.valueBlock.value=Me}fromBER(Me,Qe,$e){const nt=this.valueBlock.fromBER(Me,Qe,this.lenBlock.isIndefiniteForm?$e:this.lenBlock.length);return-1===nt?(this.error=this.valueBlock.error,nt):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),nt)}onAsciiEncoding(){return`${this.constructor.NAME} : '${this.valueBlock.value}'`}}return oe.NAME="BaseStringBlock",oe})(),lt=(()=>{class oe extends(se(ye)){constructor({isHexOnly:Me=!0,...Qe}={}){super(Qe),this.isHexOnly=Me}}return oe.NAME="PrimitiveValueBlock",oe})();class ct extends Ye{constructor(Ie={}){super(Ie,lt),this.idBlock.isConstructed=!1}}function Ue(oe,Ie=0,Me=oe.length){const Qe=Ie;let $e=new Ye({},ye);const nt=new ze;if(!X(nt,oe,Ie,Me))return $e.error=nt.error,{offset:-1,result:$e};if(!oe.subarray(Ie,Ie+Me).length)return $e.error="Zero buffer length",{offset:-1,result:$e};let bt=$e.idBlock.fromBER(oe,Ie,Me);if($e.idBlock.warnings.length&&$e.warnings.concat($e.idBlock.warnings),-1===bt)return $e.error=$e.idBlock.error,{offset:-1,result:$e};if(bt=$e.lenBlock.fromBER(oe,Ie=bt,Me-=$e.idBlock.blockLength),$e.lenBlock.warnings.length&&$e.warnings.concat($e.lenBlock.warnings),-1===bt)return $e.error=$e.lenBlock.error,{offset:-1,result:$e};if(Ie=bt,Me-=$e.lenBlock.blockLength,!$e.idBlock.isConstructed&&$e.lenBlock.isIndefiniteForm)return $e.error="Indefinite length form used for primitive encoding form",{offset:-1,result:$e};let xt=Ye;if(1===$e.idBlock.tagClass){if($e.idBlock.tagNumber>=37&&!1===$e.idBlock.isHexOnly)return $e.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:$e};switch($e.idBlock.tagNumber){case 0:if($e.idBlock.isConstructed&&$e.lenBlock.length>0)return $e.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:$e};xt=Ne.EndOfContent;break;case 1:xt=Ne.Boolean;break;case 2:xt=Ne.Integer;break;case 3:xt=Ne.BitString;break;case 4:xt=Ne.OctetString;break;case 5:xt=Ne.Null;break;case 6:xt=Ne.ObjectIdentifier;break;case 10:xt=Ne.Enumerated;break;case 12:xt=Ne.Utf8String;break;case 13:xt=Ne.RelativeObjectIdentifier;break;case 14:xt=Ne.TIME;break;case 15:return $e.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:$e};case 16:xt=Ne.Sequence;break;case 17:xt=Ne.Set;break;case 18:xt=Ne.NumericString;break;case 19:xt=Ne.PrintableString;break;case 20:xt=Ne.TeletexString;break;case 21:xt=Ne.VideotexString;break;case 22:xt=Ne.IA5String;break;case 23:xt=Ne.UTCTime;break;case 24:xt=Ne.GeneralizedTime;break;case 25:xt=Ne.GraphicString;break;case 26:xt=Ne.VisibleString;break;case 27:xt=Ne.GeneralString;break;case 28:xt=Ne.UniversalString;break;case 29:xt=Ne.CharacterString;break;case 30:xt=Ne.BmpString;break;case 31:xt=Ne.DATE;break;case 32:xt=Ne.TimeOfDay;break;case 33:xt=Ne.DateTime;break;case 34:xt=Ne.Duration;break;default:{const Dt=$e.idBlock.isConstructed?new Ne.Constructed:new Ne.Primitive;Dt.idBlock=$e.idBlock,Dt.lenBlock=$e.lenBlock,Dt.warnings=$e.warnings,$e=Dt}}}else xt=$e.idBlock.isConstructed?Ne.Constructed:Ne.Primitive;return $e=function He(oe,Ie){if(oe instanceof Ie)return oe;const Me=new Ie;return Me.idBlock=oe.idBlock,Me.lenBlock=oe.lenBlock,Me.warnings=oe.warnings,Me.valueBeforeDecodeView=oe.valueBeforeDecodeView,Me}($e,xt),bt=$e.fromBER(oe,Ie,$e.lenBlock.isIndefiniteForm?Me:$e.lenBlock.length),$e.valueBeforeDecodeView=oe.subarray(Qe,Qe+$e.blockLength),{offset:bt,result:$e}}function Se(oe){if(!oe.byteLength){const Ie=new Ye({},ye);return Ie.error="Input buffer has zero length",{offset:-1,result:Ie}}return Ue(I.vJ.toUint8Array(oe).slice(),0,oe.byteLength)}function Ve(oe,Ie){return oe?1:Ie}Ne.Primitive=ct,ct.NAME="PRIMITIVE";let Le=(()=>{class oe extends ye{constructor({value:Me=[],isIndefiniteForm:Qe=!1,...$e}={}){super($e),this.value=Me,this.isIndefiniteForm=Qe}fromBER(Me,Qe,$e){const nt=I.vJ.toUint8Array(Me);if(!X(this,nt,Qe,$e))return-1;if(this.valueBeforeDecodeView=nt.subarray(Qe,Qe+$e),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),Qe;let dt=Qe;for(;Ve(this.isIndefiniteForm,$e)>0;){const bt=Ue(nt,dt,$e);if(-1===bt.offset)return this.error=bt.result.error,this.warnings.concat(bt.result.warnings),-1;if(dt=bt.offset,this.blockLength+=bt.result.blockLength,$e-=bt.result.blockLength,this.value.push(bt.result),this.isIndefiniteForm&&bt.result.constructor.NAME===fe)break}return this.isIndefiniteForm&&(this.value[this.value.length-1].constructor.NAME===fe?this.value.pop():this.warnings.push("No EndOfContent block encoded")),dt}toBER(Me,Qe){const $e=Qe||new _;for(let nt=0;nt` ${$e}`).join("\n"));const Me=3===this.idBlock.tagClass?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return Ie.length?`${Me} :\n${Ie.join("\n")}`:`${Me} :`}}Ne.Constructed=z,z.NAME="CONSTRUCTED";let G=(()=>{class oe extends ye{fromBER(Me,Qe,$e){return Qe}toBER(Me){return ae}}return oe.override="EndOfContentValueBlock",oe})();class ce extends Ye{constructor(Ie={}){super(Ie,G),this.idBlock.tagClass=1,this.idBlock.tagNumber=0}}Ne.EndOfContent=ce,ce.NAME=fe;class De extends Ye{constructor(Ie={}){super(Ie,ye),this.idBlock.tagClass=1,this.idBlock.tagNumber=5}fromBER(Ie,Me,Qe){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=Qe,Me+Qe>Ie.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):Me+Qe}toBER(Ie,Me){const Qe=new ArrayBuffer(2);if(!Ie){const $e=new Uint8Array(Qe);$e[0]=5,$e[1]=0}return Me&&Me.write(Qe),Qe}onAsciiEncoding(){return`${this.constructor.NAME}`}}Ne.Null=De,De.NAME="NULL";let we=(()=>{class oe extends(se(ye)){constructor({value:Me,...Qe}={}){super(Qe),this.valueHexView=Qe.valueHex?I.vJ.toUint8Array(Qe.valueHex):new Uint8Array(1),Me&&(this.value=Me)}get value(){for(const Me of this.valueHexView)if(Me>0)return!0;return!1}set value(Me){this.valueHexView[0]=Me?255:0}fromBER(Me,Qe,$e){const nt=I.vJ.toUint8Array(Me);return X(this,nt,Qe,$e)?(this.valueHexView=nt.subarray(Qe,Qe+$e),$e>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,p.call(this),this.blockLength=$e,Qe+$e):-1}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}return oe.NAME="BooleanValueBlock",oe})();class xe extends Ye{constructor(Ie={}){super(Ie,we),this.idBlock.tagClass=1,this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(Ie){this.valueBlock.value=Ie}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}Ne.Boolean=xe,xe.NAME="BOOLEAN";let te=(()=>{class oe extends(se(Le)){constructor({isConstructed:Me=!1,...Qe}={}){super(Qe),this.isConstructed=Me}fromBER(Me,Qe,$e){let nt=0;if(this.isConstructed){if(this.isHexOnly=!1,nt=Le.prototype.fromBER.call(this,Me,Qe,$e),-1===nt)return nt;for(let dt=0;dt{class oe extends(se(Le)){constructor({unusedBits:Me=0,isConstructed:Qe=!1,...$e}={}){super($e),this.unusedBits=Me,this.isConstructed=Qe,this.blockLength=this.valueHexView.byteLength}fromBER(Me,Qe,$e){if(!$e)return Qe;let nt=-1;if(this.isConstructed){if(nt=Le.prototype.fromBER.call(this,Me,Qe,$e),-1===nt)return nt;for(const xt of this.value){const Dt=xt.constructor.NAME;if(Dt===fe){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if(Dt!==ee)return this.error="BIT STRING may consists of BIT STRINGs only",-1;const Ft=xt.valueBlock;if(this.unusedBits>0&&Ft.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=Ft.unusedBits}return nt}const dt=I.vJ.toUint8Array(Me);if(!X(this,dt,Qe,$e))return-1;const bt=dt.subarray(Qe,Qe+$e);if(this.unusedBits=bt[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){const xt=bt.subarray(1);try{if(xt.byteLength){const Dt=Ue(xt,0,xt.byteLength);-1!==Dt.offset&&Dt.offset===$e-1&&(this.value=[Dt.result])}}catch{}}return this.valueHexView=bt.subarray(1),this.blockLength=bt.length,Qe+$e}toBER(Me,Qe){if(this.isConstructed)return Le.prototype.toBER.call(this,Me,Qe);if(Me)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return ae;const $e=new Uint8Array(this.valueHexView.length+1);return $e[0]=this.unusedBits,$e.set(this.valueHexView,1),$e.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}return oe.NAME="BitStringValueBlock",oe})();var et;class tt extends Ye{constructor({idBlock:Ie={},lenBlock:Me={},...Qe}={}){var $e,nt;null!==($e=Qe.isConstructed)&&void 0!==$e||(Qe.isConstructed=!!(null===(nt=Qe.value)||void 0===nt?void 0:nt.length)),super({idBlock:{isConstructed:Qe.isConstructed,...Ie},lenBlock:{...Me,isIndefiniteForm:!!Qe.isIndefiniteForm},...Qe},Pe),this.idBlock.tagClass=1,this.idBlock.tagNumber=3}fromBER(Ie,Me,Qe){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,super.fromBER(Ie,Me,Qe)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return z.prototype.onAsciiEncoding.call(this);{const Ie=[],Me=this.valueBlock.valueHexView;for(const $e of Me)Ie.push($e.toString(2).padStart(8,"0"));const Qe=Ie.join("");return`${this.constructor.NAME} : ${Qe.substring(0,Qe.length-this.valueBlock.unusedBits)}`}}}function gt(oe,Ie){const Me=new Uint8Array([0]),Qe=new Uint8Array(oe),$e=new Uint8Array(Ie);let nt=Qe.slice(0);const dt=nt.length-1,bt=$e.slice(0),xt=bt.length-1;let Dt=0,Qt=0;for(let rr=xt=0;rr--,Qt++)Dt=1==Qt=nt.length?nt=g(new Uint8Array([Dt%10]),nt):nt[dt-Qt]=Dt%10;return Me[0]>0&&(nt=g(Me,nt)),nt}function Fe(oe){if(oe>=t.length)for(let Ie=t.length;Ie<=oe;Ie++){const Me=new Uint8Array([0]);let Qe=t[Ie-1].slice(0);for(let $e=Qe.length-1;$e>=0;$e--){const nt=new Uint8Array([(Qe[$e]<<1)+Me[0]]);Me[0]=nt[0]/10,Qe[$e]=nt[0]%10}Me[0]>0&&(Qe=g(Me,Qe)),t.push(Qe)}return t[oe]}function ne(oe,Ie){let Me=0;const Qe=new Uint8Array(oe),$e=new Uint8Array(Ie),nt=Qe.slice(0),dt=nt.length-1,bt=$e.slice(0),xt=bt.length-1;let Dt,Ft=0;for(let Qt=xt;Qt>=0;Qt--,Ft++)Dt=nt[dt-Ft]-bt[xt-Ft]-Me,1==Dt<0?(Me=1,nt[dt-Ft]=Dt+10):(Me=0,nt[dt-Ft]=Dt);if(Me>0)for(let Qt=dt-xt+1;Qt>=0;Qt--,Ft++){if(Dt=nt[dt-Ft]-Me,!(Dt<0)){Me=0,nt[dt-Ft]=Dt;break}Me=1,nt[dt-Ft]=Dt+10}return nt.slice()}Ne.BitString=tt,tt.NAME=ee;class yt extends(se(ye)){constructor({value:Ie,...Me}={}){super(Me),this._valueDec=0,Me.valueHex&&this.setValueHex(),void 0!==Ie&&(this.valueDec=Ie)}setValueHex(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=p.call(this)))}set valueDec(Ie){this._valueDec=Ie,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function b(oe){const Ie=oe<0?-1*oe:oe;let Me=128;for(let Qe=1;Qe<8;Qe++){if(Ie<=Me){if(oe<0){const bt=D(Me-Ie,8,Qe);return new Uint8Array(bt)[0]|=128,bt}let $e=D(Ie,8,Qe),nt=new Uint8Array($e);if(128&nt[0]){const dt=$e.slice(0),bt=new Uint8Array(dt);$e=new ArrayBuffer($e.byteLength+1),nt=new Uint8Array($e);for(let xt=0;xt1&&($e=dt.length+1),this.valueHexView=dt.subarray($e-dt.length)),nt}toDER(Ie=!1){const Me=this.valueHexView;switch(!0){case 0!=(128&Me[0]):{const Qe=new Uint8Array(this.valueHexView.length+1);Qe[0]=0,Qe.set(Me,1),this.valueHexView=Qe}break;case 0===Me[0]&&0==(128&Me[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(Ie)}fromBER(Ie,Me,Qe){const $e=super.fromBER(Ie,Me,Qe);return-1===$e||this.setValueHex(),$e}toBER(Ie){return Ie?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const Ie=8*this.valueHexView.length-1;let $e,Me=new Uint8Array(8*this.valueHexView.length/3),Qe=0;const nt=this.valueHexView;let dt="",bt=!1;for(let xt=nt.byteLength-1;xt>=0;xt--){$e=nt[xt];for(let Dt=0;Dt<8;Dt++)1==(1&$e)&&(Qe===Ie?(Me=ne(Fe(Qe),Me),dt="-"):Me=gt(Me,Fe(Qe))),Qe++,$e>>=1}for(let xt=0;xt{class oe extends(se(ye)){constructor({valueDec:Me=-1,isFirstSid:Qe=!1,...$e}={}){super($e),this.valueDec=Me,this.isFirstSid=Qe}fromBER(Me,Qe,$e){if(!$e)return Qe;const nt=I.vJ.toUint8Array(Me);if(!X(this,nt,Qe,$e))return-1;const dt=nt.subarray(Qe,Qe+$e);this.valueHexView=new Uint8Array($e);for(let xt=0;xt<$e&&(this.valueHexView[xt]=127&dt[xt],this.blockLength++,0!=(128&dt[xt]));xt++);const bt=new Uint8Array(this.blockLength);for(let xt=0;xt{class oe extends ye{constructor({value:Me=H,...Qe}={}){super(Qe),this.value=[],Me&&this.fromString(Me)}fromBER(Me,Qe,$e){let nt=Qe;for(;$e>0;){const dt=new Ze;if(nt=dt.fromBER(Me,nt,$e),-1===nt)return this.blockLength=0,this.error=dt.error,nt;0===this.value.length&&(dt.isFirstSid=!0),this.blockLength+=dt.blockLength,$e-=dt.blockLength,this.value.push(dt)}return nt}toBER(Me){const Qe=[];for(let $e=0;$eNumber.MAX_SAFE_INTEGER){Q();const xt=BigInt(nt);bt.valueBigInt=xt}else if(bt.valueDec=parseInt(nt,10),isNaN(bt.valueDec))return;this.value.length||(bt.isFirstSid=!0,dt=!0),this.value.push(bt)}}while(-1!==$e)}toString(){let Me="",Qe=!1;for(let $e=0;$e{class oe extends(se(ze)){constructor({valueDec:Me=0,...Qe}={}){super(Qe),this.valueDec=Me}fromBER(Me,Qe,$e){if(0===$e)return Qe;const nt=I.vJ.toUint8Array(Me);if(!X(this,nt,Qe,$e))return-1;const dt=nt.subarray(Qe,Qe+$e);this.valueHexView=new Uint8Array($e);for(let xt=0;xt<$e&&(this.valueHexView[xt]=127&dt[xt],this.blockLength++,0!=(128&dt[xt]));xt++);const bt=new Uint8Array(this.blockLength);for(let xt=0;xt{class oe extends ye{constructor({value:Me=H,...Qe}={}){super(Qe),this.value=[],Me&&this.fromString(Me)}fromBER(Me,Qe,$e){let nt=Qe;for(;$e>0;){const dt=new de;if(nt=dt.fromBER(Me,nt,$e),-1===nt)return this.blockLength=0,this.error=dt.error,nt;this.blockLength+=dt.blockLength,$e-=dt.blockLength,this.value.push(dt)}return nt}toBER(Me,Qe){const $e=[];for(let nt=0;nt{class oe extends(se(ye)){constructor({...Me}={}){super(Me),this.isHexOnly=!0,this.value=H}toJSON(){return{...super.toJSON(),value:this.value}}}return oe.NAME="StringValueBlock",oe})(),Pt=(()=>{class oe extends Rt{}return oe.NAME="SimpleStringValueBlock",oe})(),Vt=(()=>{class oe extends ot{constructor({...Me}={}){super(Me,Pt)}fromBuffer(Me){this.valueBlock.value=String.fromCharCode.apply(null,I.vJ.toUint8Array(Me))}fromString(Me){const Qe=Me.length,$e=this.valueBlock.valueHexView=new Uint8Array(Qe);for(let nt=0;nt{class oe extends Vt{fromBuffer(Me){this.valueBlock.valueHexView=I.vJ.toUint8Array(Me);try{this.valueBlock.value=I.ep.ToUtf8String(Me)}catch(Qe){this.warnings.push(`Error during "decodeURIComponent": ${Qe}, using raw string`),this.valueBlock.value=I.ep.ToBinary(Me)}}fromString(Me){this.valueBlock.valueHexView=new Uint8Array(I.ep.FromUtf8String(Me)),this.valueBlock.value=Me}}return oe.NAME="Utf8StringValueBlock",oe})();class tr extends er{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=12}}Ne.Utf8String=tr,tr.NAME="UTF8String";let Wt=(()=>{class oe extends Vt{fromBuffer(Me){this.valueBlock.value=I.ep.ToUtf16String(Me),this.valueBlock.valueHexView=I.vJ.toUint8Array(Me)}fromString(Me){this.valueBlock.value=Me,this.valueBlock.valueHexView=new Uint8Array(I.ep.FromUtf16String(Me))}}return oe.NAME="BmpStringValueBlock",oe})();class Ht extends Wt{constructor({...Ie}={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=30}}Ne.BmpString=Ht,Ht.NAME="BMPString";let Bt=(()=>{class oe extends Vt{fromBuffer(Me){const Qe=ArrayBuffer.isView(Me)?Me.slice().buffer:Me.slice(0),$e=new Uint8Array(Qe);for(let nt=0;nt<$e.length;nt+=4)$e[nt]=$e[nt+3],$e[nt+1]=$e[nt+2],$e[nt+2]=0,$e[nt+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(Qe))}fromString(Me){const Qe=Me.length,$e=this.valueBlock.valueHexView=new Uint8Array(4*Qe);for(let nt=0;nt4)continue;const xt=4-bt.length;for(let Dt=bt.length-1;Dt>=0;Dt--)$e[4*nt+Dt+xt]=bt[Dt]}this.valueBlock.value=Me}}return oe.NAME="UniversalStringValueBlock",oe})();class Gt extends Bt{constructor({...Ie}={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=28}}Ne.UniversalString=Gt,Gt.NAME="UniversalString";class Jt extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=18}}Ne.NumericString=Jt,Jt.NAME="NumericString";class _t extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=19}}Ne.PrintableString=_t,_t.NAME="PrintableString";class Ut extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=20}}Ne.TeletexString=Ut,Ut.NAME="TeletexString";class Ct extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=21}}Ne.VideotexString=Ct,Ct.NAME="VideotexString";class ir extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=22}}Ne.IA5String=ir,ir.NAME="IA5String";class br extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=25}}Ne.GraphicString=br,br.NAME="GraphicString";class pt extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=26}}Ne.VisibleString=pt,pt.NAME="VisibleString";class Cr extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=27}}Ne.GeneralString=Cr,Cr.NAME="GeneralString";class gr extends Vt{constructor(Ie={}){super(Ie),this.idBlock.tagClass=1,this.idBlock.tagNumber=29}}Ne.CharacterString=gr,gr.NAME="CharacterString";class ur extends pt{constructor({value:Ie,valueDate:Me,...Qe}={}){if(super(Qe),this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,Ie){this.fromString(Ie),this.valueBlock.valueHexView=new Uint8Array(Ie.length);for(let $e=0;$e=50?1900+$e:2e3+$e,this.month=parseInt(Qe[2],10),this.day=parseInt(Qe[3],10),this.hour=parseInt(Qe[4],10),this.minute=parseInt(Qe[5],10),this.second=parseInt(Qe[6],10)}toString(Ie="iso"){if("iso"===Ie){const Me=new Array(7);return Me[0]=m(this.year<2e3?this.year-1900:this.year-2e3,2),Me[1]=m(this.month,2),Me[2]=m(this.day,2),Me[3]=m(this.hour,2),Me[4]=m(this.minute,2),Me[5]=m(this.second,2),Me[6]="Z",Me.join("")}return super.toString(Ie)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}Ne.UTCTime=ur,ur.NAME="UTCTime";class Br extends ur{constructor(Ie={}){var Me;super(Ie),null!==(Me=this.millisecond)&&void 0!==Me||(this.millisecond=0),this.idBlock.tagClass=1,this.idBlock.tagNumber=24}fromDate(Ie){super.fromDate(Ie),this.millisecond=Ie.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(Ie){let dt,Me=!1,Qe="",$e="",nt=0,bt=0,xt=0;if("Z"===Ie[Ie.length-1])Qe=Ie.substring(0,Ie.length-1),Me=!0;else{const Qt=new Number(Ie[Ie.length-1]);if(isNaN(Qt.valueOf()))throw new Error("Wrong input string for conversion");Qe=Ie}if(Me){if(-1!==Qe.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==Qe.indexOf("-"))throw new Error("Wrong input string for conversion")}else{let Qt=1,rr=Qe.indexOf("+"),sr="";if(-1===rr&&(rr=Qe.indexOf("-"),Qt=-1),-1!==rr){if(sr=Qe.substring(rr+1),Qe=Qe.substring(0,rr),2!==sr.length&&4!==sr.length)throw new Error("Wrong input string for conversion");let dr=parseInt(sr.substring(0,2),10);if(isNaN(dr.valueOf()))throw new Error("Wrong input string for conversion");if(bt=Qt*dr,4===sr.length){if(dr=parseInt(sr.substring(2,4),10),isNaN(dr.valueOf()))throw new Error("Wrong input string for conversion");xt=Qt*dr}}}let Dt=Qe.indexOf(".");if(-1===Dt&&(Dt=Qe.indexOf(",")),-1!==Dt){const Qt=new Number(`0${Qe.substring(Dt)}`);if(isNaN(Qt.valueOf()))throw new Error("Wrong input string for conversion");nt=Qt.valueOf(),$e=Qe.substring(0,Dt)}else $e=Qe;switch(!0){case 8===$e.length:if(dt=/(\d{4})(\d{2})(\d{2})/gi,-1!==Dt)throw new Error("Wrong input string for conversion");break;case 10===$e.length:if(dt=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==Dt){let Qt=60*nt;this.minute=Math.floor(Qt),Qt=60*(Qt-this.minute),this.second=Math.floor(Qt),Qt=1e3*(Qt-this.second),this.millisecond=Math.floor(Qt)}break;case 12===$e.length:if(dt=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==Dt){let Qt=60*nt;this.second=Math.floor(Qt),Qt=1e3*(Qt-this.second),this.millisecond=Math.floor(Qt)}break;case 14===$e.length:dt=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==Dt&&(this.millisecond=Math.floor(1e3*nt));break;default:throw new Error("Wrong input string for conversion")}const Ft=dt.exec($e);if(null===Ft)throw new Error("Wrong input string for conversion");for(let Qt=1;Qt0&&Me.valueBlock.value[0]instanceof ff&&(bt=Ie.valueBlock.value.length),0===bt)return{verified:!0,result:oe};if(0===Ie.valueBlock.value.length&&0!==Me.valueBlock.value.length){let xt=!0;for(let Dt=0;Dt=Ie.valueBlock.value.length){if(!1===Me.valueBlock.value[xt].optional){const Dt={verified:!1,result:oe};return oe.error="Inconsistent length between ASN.1 data and schema",Me.name&&(Me.name=Me.name.replace(/^\s+|\s+$/g,H),Me.name&&(delete oe[Me.name],Dt.name=Me.name)),Dt}}else if(Me.valueBlock.value[0]instanceof ff){if(dt=si(oe,Ie.valueBlock.value[xt],Me.valueBlock.value[0].value),!1===dt.verified){if(!Me.valueBlock.value[0].optional)return Me.name&&(Me.name=Me.name.replace(/^\s+|\s+$/g,H),Me.name&&delete oe[Me.name]),dt;nt++}if(s in Me.valueBlock.value[0]&&Me.valueBlock.value[0].name.length>0){let Dt={};Dt="local"in Me.valueBlock.value[0]&&Me.valueBlock.value[0].local?Ie:oe,typeof Dt[Me.valueBlock.value[0].name]>"u"&&(Dt[Me.valueBlock.value[0].name]=[]),Dt[Me.valueBlock.value[0].name].push(Ie.valueBlock.value[xt])}}else if(dt=si(oe,Ie.valueBlock.value[xt-nt],Me.valueBlock.value[xt]),!1===dt.verified){if(!Me.valueBlock.value[xt].optional)return Me.name&&(Me.name=Me.name.replace(/^\s+|\s+$/g,H),Me.name&&delete oe[Me.name]),dt;nt++}if(!1===dt.verified){const xt={verified:!1,result:oe};return Me.name&&(Me.name=Me.name.replace(/^\s+|\s+$/g,H),Me.name&&(delete oe[Me.name],xt.name=Me.name)),xt}return{verified:!0,result:oe}}if(Me.primitiveSchema&&e in Ie.valueBlock){const nt=Ue(Ie.valueBlock.valueHexView);if(-1===nt.offset){const dt={verified:!1,result:nt.result};return Me.name&&(Me.name=Me.name.replace(/^\s+|\s+$/g,H),Me.name&&(delete oe[Me.name],dt.name=Me.name)),dt}return si(oe,nt.result,Me.primitiveSchema)}return{verified:!0,result:oe}}function un(oe,Ie){if(!(Ie instanceof Object))return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};const Me=Ue(I.vJ.toUint8Array(oe));return-1===Me.offset?{verified:!1,result:Me.result}:si(Me.result,Me.result,Ie)}var vr=(()=>{return(oe=vr||(vr={}))[oe.Sequence=0]="Sequence",oe[oe.Set=1]="Set",oe[oe.Choice=2]="Choice",vr;var oe})(),Lr=(()=>{return(oe=Lr||(Lr={}))[oe.Any=1]="Any",oe[oe.Boolean=2]="Boolean",oe[oe.OctetString=3]="OctetString",oe[oe.BitString=4]="BitString",oe[oe.Integer=5]="Integer",oe[oe.Enumerated=6]="Enumerated",oe[oe.ObjectIdentifier=7]="ObjectIdentifier",oe[oe.Utf8String=8]="Utf8String",oe[oe.BmpString=9]="BmpString",oe[oe.UniversalString=10]="UniversalString",oe[oe.NumericString=11]="NumericString",oe[oe.PrintableString=12]="PrintableString",oe[oe.TeletexString=13]="TeletexString",oe[oe.VideotexString=14]="VideotexString",oe[oe.IA5String=15]="IA5String",oe[oe.GraphicString=16]="GraphicString",oe[oe.VisibleString=17]="VisibleString",oe[oe.GeneralString=18]="GeneralString",oe[oe.CharacterString=19]="CharacterString",oe[oe.UTCTime=20]="UTCTime",oe[oe.GeneralizedTime=21]="GeneralizedTime",oe[oe.DATE=22]="DATE",oe[oe.TimeOfDay=23]="TimeOfDay",oe[oe.DateTime=24]="DateTime",oe[oe.Duration=25]="Duration",oe[oe.TIME=26]="TIME",oe[oe.Null=27]="Null",Lr;var oe})();class s0{constructor(Ie,Me=0){if(this.unusedBits=0,this.value=new ArrayBuffer(0),Ie)if("number"==typeof Ie)this.fromNumber(Ie);else{if(!I.vJ.isBufferSource(Ie))throw TypeError("Unsupported type of 'params' argument for BitString");this.unusedBits=Me,this.value=I.vJ.toArrayBuffer(Ie)}}fromASN(Ie){if(!(Ie instanceof tt))throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");return this.unusedBits=Ie.valueBlock.unusedBits,this.value=Ie.valueBlock.valueHex,this}toASN(){return new tt({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(Ie){return new tt({name:Ie})}toNumber(){let Ie="";const Me=new Uint8Array(this.value);for(const Qe of Me)Ie+=Qe.toString(2).padStart(8,"0");return Ie=Ie.split("").reverse().join(""),this.unusedBits&&(Ie=Ie.slice(this.unusedBits).padStart(this.unusedBits,"0")),parseInt(Ie,2)}fromNumber(Ie){let Me=Ie.toString(2);const Qe=Me.length+7>>3;this.unusedBits=(Qe<<3)-Me.length;const $e=new Uint8Array(Qe);Me=Me.padStart(Qe<<3,"0").split("").reverse().join("");let nt=0;for(;ntoe instanceof De?null:oe.valueBeforeDecodeView,toASN:oe=>{if(null===oe)return new De;const Ie=Se(oe);if(Ie.result.error)throw new Error(Ie.result.error);return Ie.result}},u0={fromASN:oe=>oe.valueBlock.valueHexView.byteLength>=4?oe.valueBlock.toString():oe.valueBlock.valueDec,toASN:oe=>new $({value:+oe})},Rn={fromASN:oe=>oe.valueBlock.valueDec,toASN:oe=>new Be({value:oe})},Gi={fromASN:oe=>oe.valueBlock.valueHexView,toASN:oe=>new $({valueHex:oe})},li={fromASN:oe=>oe.toBigInt(),toASN:oe=>$.fromBigInt(oe)},af={fromASN:oe=>oe.valueBlock.valueHexView,toASN:oe=>new tt({valueHex:oe})},of={fromASN:oe=>oe.valueBlock.toString(),toASN:oe=>new be({value:oe})},Wi={fromASN:oe=>oe.valueBlock.value,toASN:oe=>new xe({value:oe})},Ei={fromASN:oe=>oe.valueBlock.valueHexView,toASN:oe=>new me({valueHex:oe})},Vn={fromASN:oe=>new l0(oe.getValue()),toASN:oe=>oe.toASN()};function yn(oe){return{fromASN:Ie=>Ie.valueBlock.value,toASN:Ie=>new oe({value:Ie})}}const Zi=yn(tr),cr=yn(Ht),Bi=yn(Gt),Mi=yn(Jt),gn=yn(_t),Qn=yn(Ut),sf=yn(Ct),kn=yn(ir),vn=yn(br),lf=yn(pt),c0=yn(Cr),An=yn(gr),uf={fromASN:oe=>oe.toDate(),toASN:oe=>new ur({valueDate:oe})},cf={fromASN:oe=>oe.toDate(),toASN:oe=>new Br({valueDate:oe})},Nr={fromASN:()=>null,toASN:()=>new De};function Pr(oe){switch(oe){case Lr.Any:return Hr;case Lr.BitString:return af;case Lr.BmpString:return cr;case Lr.Boolean:return Wi;case Lr.CharacterString:return An;case Lr.Enumerated:return Rn;case Lr.GeneralString:return c0;case Lr.GeneralizedTime:return cf;case Lr.GraphicString:return vn;case Lr.IA5String:return kn;case Lr.Integer:return u0;case Lr.Null:return Nr;case Lr.NumericString:return Mi;case Lr.ObjectIdentifier:return of;case Lr.OctetString:return Ei;case Lr.PrintableString:return gn;case Lr.TeletexString:return Qn;case Lr.UTCTime:return uf;case Lr.UniversalString:return Bi;case Lr.Utf8String:return Zi;case Lr.VideotexString:return sf;case Lr.VisibleString:return lf;default:return null}}function Dr(oe){return"function"==typeof oe&&oe.prototype?!(!oe.prototype.toASN||!oe.prototype.fromASN)||Dr(oe.prototype):!!(oe&&"object"==typeof oe&&"toASN"in oe&&"fromASN"in oe)}function df(oe){var Ie;if(oe){const Me=Object.getPrototypeOf(oe);return(null===(Ie=null==Me?void 0:Me.prototype)||void 0===Ie?void 0:Ie.constructor)===Array||df(Me)}return!1}function sa(oe,Ie){if(!oe||!Ie||oe.byteLength!==Ie.byteLength)return!1;const Me=new Uint8Array(oe),Qe=new Uint8Array(Ie);for(let $e=0;$eIe=>{let Me;Er.has(Ie)?Me=Er.get(Ie):(Me=Er.createDefault(Ie),Er.set(Ie,Me)),Object.assign(Me,oe)},_e=()=>Yn({type:vr.Choice}),Ce=oe=>Yn({type:vr.Set,...oe}),ge=oe=>Yn({type:vr.Sequence,...oe}),Xe=oe=>(Ie,Me)=>{let Qe;Er.has(Ie.constructor)?Qe=Er.get(Ie.constructor):(Qe=Er.createDefault(Ie.constructor),Er.set(Ie.constructor,Qe));const $e=Object.assign({},oe);if("number"==typeof $e.type&&!$e.converter){const nt=Pr(oe.type);if(!nt)throw new Error(`Cannot get default converter for property '${Me}' of ${Ie.constructor.name}`);$e.converter=nt}Qe.items[Me]=$e};class qe extends Error{constructor(){super(...arguments),this.schemas=[]}}class ke{static parse(Ie,Me){const Qe=Se(Ie);if(Qe.result.error)throw new Error(Qe.result.error);return this.fromASN(Qe.result,Me)}static fromASN(Ie,Me){var Qe;try{if(Dr(Me))return(new Me).fromASN(Ie);const $e=Er.get(Me);Er.cache(Me);let nt=$e.schema;if(Ie.constructor===z&&$e.type!==vr.Choice){nt=new z({idBlock:{tagClass:3,tagNumber:Ie.idBlock.tagNumber},value:$e.schema.valueBlock.value});for(const xt in $e.items)delete Ie[xt]}const dt=si({},Ie,nt);if(!dt.verified)throw new qe(`Data does not match to ${Me.name} ASN1 schema. ${dt.result.error}`);const bt=new Me;if(df(Me)){if(!("value"in Ie.valueBlock)||!Array.isArray(Ie.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");const xt=$e.itemType;if("number"==typeof xt){const Dt=Pr(xt);if(!Dt)throw new Error(`Cannot get default converter for array item of ${Me.name} ASN1 schema`);return Me.from(Ie.valueBlock.value,Ft=>Dt.fromASN(Ft))}return Me.from(Ie.valueBlock.value,Dt=>this.fromASN(Dt,xt))}for(const xt in $e.items){const Dt=dt.result[xt];if(!Dt)continue;const Ft=$e.items[xt],Qt=Ft.type;if("number"==typeof Qt||Dr(Qt)){const rr=null!==(Qe=Ft.converter)&&void 0!==Qe?Qe:Dr(Qt)?new Qt:null;if(!rr)throw new Error("Converter is empty");if(Ft.repeated)if(Ft.implicit){const dr=new("sequence"===Ft.repeated?at:At);dr.valueBlock=Dt.valueBlock;const zr=Se(dr.toBER(!1));if(-1===zr.offset)throw new Error(`Cannot parse the child item. ${zr.result.error}`);if(!("value"in zr.result.valueBlock)||!Array.isArray(zr.result.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");bt[xt]=Array.from(zr.result.valueBlock.value,fn=>rr.fromASN(fn))}else bt[xt]=Array.from(Dt,sr=>rr.fromASN(sr));else{let sr=Dt;if(Ft.implicit){let dr;if(Dr(Qt))dr=(new Qt).toSchema("");else{const zr=Lr[Qt],Hn=B[zr];if(!Hn)throw new Error(`Cannot get '${zr}' class from asn1js module`);dr=new Hn}dr.valueBlock=sr.valueBlock,sr=Se(dr.toBER(!1)).result}bt[xt]=rr.fromASN(sr)}}else if(Ft.repeated){if(!Array.isArray(Dt))throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");bt[xt]=Array.from(Dt,rr=>this.fromASN(rr,Qt))}else bt[xt]=this.fromASN(Dt,Qt)}return bt}catch($e){throw $e instanceof qe&&$e.schemas.push(Me.name),$e}}}class ut{static serialize(Ie){return Ie instanceof Ye?Ie.toBER(!1):this.toASN(Ie).toBER(!1)}static toASN(Ie){if(Ie&&"object"==typeof Ie&&Dr(Ie))return Ie.toASN();if(!Ie||"object"!=typeof Ie)throw new TypeError("Parameter 1 should be type of Object.");const Me=Ie.constructor,Qe=Er.get(Me);Er.cache(Me);let nt,$e=[];if(Qe.itemType){if(!Array.isArray(Ie))throw new TypeError("Parameter 1 should be type of Array.");if("number"==typeof Qe.itemType){const dt=Pr(Qe.itemType);if(!dt)throw new Error(`Cannot get default converter for array item of ${Me.name} ASN1 schema`);$e=Ie.map(bt=>dt.toASN(bt))}else $e=Ie.map(dt=>this.toAsnItem({type:Qe.itemType},"[]",Me,dt))}else for(const dt in Qe.items){const bt=Qe.items[dt],xt=Ie[dt];if(void 0===xt||bt.defaultValue===xt||"object"==typeof bt.defaultValue&&"object"==typeof xt&&sa(this.serialize(bt.defaultValue),this.serialize(xt)))continue;const Dt=ut.toAsnItem(bt,dt,Me,xt);if("number"==typeof bt.context)if(bt.implicit)if(bt.repeated||"number"!=typeof bt.type&&!Dr(bt.type))$e.push(new z({optional:bt.optional,idBlock:{tagClass:3,tagNumber:bt.context},value:Dt.valueBlock.value}));else{const Ft={};Ft.valueHex=Dt instanceof De?Dt.valueBeforeDecodeView:Dt.valueBlock.toBER(),$e.push(new ct({optional:bt.optional,idBlock:{tagClass:3,tagNumber:bt.context},...Ft}))}else $e.push(new z({optional:bt.optional,idBlock:{tagClass:3,tagNumber:bt.context},value:[Dt]}));else bt.repeated?$e=$e.concat(Dt):$e.push(Dt)}switch(Qe.type){case vr.Sequence:nt=new at({value:$e});break;case vr.Set:nt=new At({value:$e});break;case vr.Choice:if(!$e[0])throw new Error(`Schema '${Me.name}' has wrong data. Choice cannot be empty.`);nt=$e[0]}return nt}static toAsnItem(Ie,Me,Qe,$e){let nt;if("number"==typeof Ie.type){const dt=Ie.converter;if(!dt)throw new Error(`Property '${Me}' doesn't have converter for type ${Lr[Ie.type]} in schema '${Qe.name}'`);if(Ie.repeated){if(!Array.isArray($e))throw new TypeError("Parameter 'objProp' should be type of Array.");const bt=Array.from($e,Dt=>dt.toASN(Dt));nt=new("sequence"===Ie.repeated?at:At)({value:bt})}else nt=dt.toASN($e)}else if(Ie.repeated){if(!Array.isArray($e))throw new TypeError("Parameter 'objProp' should be type of Array.");const dt=Array.from($e,xt=>this.toASN(xt));nt=new("sequence"===Ie.repeated?at:At)({value:dt})}else nt=this.toASN($e);return nt}}class mt extends Array{constructor(Ie=[]){if("number"==typeof Ie)super(Ie);else{super();for(const Me of Ie)this.push(Me)}}}class Mt{static serialize(Ie){return ut.serialize(Ie)}static parse(Ie,Me){return ke.parse(Ie,Me)}static toString(Ie){const Qe=Se(I.vJ.isBufferSource(Ie)?I.vJ.toArrayBuffer(Ie):Mt.serialize(Ie));if(-1===Qe.offset)throw new Error(`Cannot decode ASN.1 data. ${Qe.result.error}`);return Qe.result.toString()}}},13927:q=>{"use strict";for(var k="qpzry9x8gf2tvdw0s3jn54khce6mua7l",x={},B=0;B>25;return(33554431&m)<<5^996825010&-(E>>0&1)^642813549&-(E>>1&1)^513874426&-(E>>2&1)^1027748829&-(E>>3&1)^705979059&-(E>>4&1)}function P(m){for(var E=1,C=0;C126)return"Invalid prefix ("+m+")";E=M(E)^L>>5}for(E=M(E),C=0;C(E=E||90))return"Exceeds length limit";var C=m.toLowerCase(),L=m.toUpperCase();if(m!==C&&m!==L)return"Mixed-case string "+m;var R=(m=C).lastIndexOf("1");if(-1===R)return"No separator character for "+m;if(0===R)return"Missing prefix for "+m;var U=m.slice(0,R),O=m.slice(R+1);if(O.length<6)return"Data too short";var j=P(U);if("string"==typeof j)return j;for(var K=[],Z=0;Z=O.length)&&K.push(W)}return 1!==j?"Invalid checksum for "+m:{prefix:U,words:K}}function A(m,E,C,L){for(var R=0,U=0,O=(1<=C;)j.push(R>>(U-=C)&O);if(L)U>0&&j.push(R<=E)return"Excess padding";if(R<(C=C||90))throw new TypeError("Exceeds length limit");var L=P(m=m.toLowerCase());if("string"==typeof L)throw new Error(L);for(var R=m+"1",U=0;U>5!=0)throw new Error("Non 5-bit word");L=M(L)^O,R+=k.charAt(O)}for(U=0;U<6;++U)L=M(L);for(L^=1,U=0;U<6;++U)R+=k.charAt(L>>5*(5-U)&31);return R},toWordsUnsafe:function g(m){var E=A(m,8,5,!0);if(Array.isArray(E))return E},toWords:function p(m){var E=A(m,8,5,!0);if(Array.isArray(E))return E;throw new Error(E)},fromWordsUnsafe:function b(m){var E=A(m,5,8,!1);if(Array.isArray(E))return E},fromWords:function y(m){var E=A(m,5,8,!1);if(Array.isArray(E))return E;throw new Error(E)}}},17907:function(q,k,x){!function(B,I){"use strict";function M(s,e){if(!s)throw new Error(e||"Assertion failed")}function P(s,e){s.super_=e;var i=function(){};i.prototype=e.prototype,s.prototype=new i,s.prototype.constructor=s}function o(s,e,i){if(o.isBN(s))return s;this.negative=0,this.words=null,this.length=0,this.red=null,null!==s&&(("le"===e||"be"===e)&&(i=e,e=10),this._init(s||0,e||10,i||"be"))}var w;"object"==typeof B?B.exports=o:I.BN=o,o.BN=o,o.wordSize=26;try{w=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:x(32548).Buffer}catch{}function S(s,e){var i=s.charCodeAt(e);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void M(!1,"Invalid character in "+s)}function D(s,e,i){var u=S(s,i);return i-1>=e&&(u|=S(s,i-1)<<4),u}function A(s,e,i,u){for(var d=0,c=0,r=Math.min(s.length,i),h=e;h=49?F-49+10:F>=17?F-17+10:F,M(F>=0&&c0?e:i},o.min=function(e,i){return e.cmp(i)<0?e:i},o.prototype._init=function(e,i,u){if("number"==typeof e)return this._initNumber(e,i,u);if("object"==typeof e)return this._initArray(e,i,u);"hex"===i&&(i=16),M(i===(0|i)&&i>=2&&i<=36);var d=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d=0;d-=3)this.words[c]|=(r=e[d]|e[d-1]<<8|e[d-2]<<16)<>>26-h&67108863,(h+=24)>=26&&(h-=26,c++);else if("le"===u)for(d=0,c=0;d>>26-h&67108863,(h+=24)>=26&&(h-=26,c++);return this._strip()},o.prototype._parseHex=function(e,i,u){this.length=Math.ceil((e.length-i)/6),this.words=new Array(this.length);for(var d=0;d=i;d-=2)h=D(e,i,d)<=18?(c-=18,this.words[r+=1]|=h>>>26):c+=8;else for(d=(e.length-i)%2==0?i+1:i;d=18?(c-=18,this.words[r+=1]|=h>>>26):c+=8;this._strip()},o.prototype._parseBase=function(e,i,u){this.words=[0],this.length=1;for(var d=0,c=1;c<=67108863;c*=i)d++;d--,c=c/i|0;for(var r=e.length-u,h=r%d,F=Math.min(r,r-h)+u,T=0,H=u;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch{o.prototype.inspect=p}else o.prototype.inspect=p;function p(){return(this.red?""}var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function L(s,e,i){i.negative=e.negative^s.negative;var u=s.length+e.length|0;i.length=u,u=u-1|0;var d=0|s.words[0],c=0|e.words[0],r=d*c,F=r/67108864|0;i.words[0]=67108863&r;for(var T=1;T>>26,ae=67108863&F,Ae=Math.min(T,e.length-1),fe=Math.max(0,T-s.length+1);fe<=Ae;fe++)H+=(r=(d=0|s.words[T-fe|0])*(c=0|e.words[fe])+ae)/67108864|0,ae=67108863&r;i.words[T]=0|ae,F=0|H}return 0!==F?i.words[T]=0|F:i.length--,i._strip()}o.prototype.toString=function(e,i){var u;if(i=0|i||1,16===(e=e||10)||"hex"===e){u="";for(var d=0,c=0,r=0;r>>24-d&16777215,(d+=2)>=26&&(d-=26,r--),u=0!==c||r!==this.length-1?b[6-F.length]+F+u:F+u}for(0!==c&&(u=c.toString(16)+u);u.length%i!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(e===(0|e)&&e>=2&&e<=36){var T=y[e],H=m[e];u="";var ae=this.clone();for(ae.negative=0;!ae.isZero();){var Ae=ae.modrn(H).toString(e);u=(ae=ae.idivn(H)).isZero()?Ae+u:b[T-Ae.length]+Ae+u}for(this.isZero()&&(u="0"+u);u.length%i!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},w&&(o.prototype.toBuffer=function(e,i){return this.toArrayLike(w,e,i)}),o.prototype.toArray=function(e,i){return this.toArrayLike(Array,e,i)},o.prototype.toArrayLike=function(e,i,u){this._strip();var d=this.byteLength(),c=u||Math.max(1,d);M(d<=c,"byte array longer than desired length"),M(c>0,"Requested array length <= 0");var r=function(e,i){return e.allocUnsafe?e.allocUnsafe(i):new e(i)}(e,c);return this["_toArrayLike"+("le"===i?"LE":"BE")](r,d),r},o.prototype._toArrayLikeLE=function(e,i){for(var u=0,d=0,c=0,r=0;c>8&255),u>16&255),6===r?(u>24&255),d=0,r=0):(d=h>>>24,r+=2)}if(u=0&&(e[u--]=h>>8&255),u>=0&&(e[u--]=h>>16&255),6===r?(u>=0&&(e[u--]=h>>24&255),d=0,r=0):(d=h>>>24,r+=2)}if(u>=0)for(e[u--]=d;u>=0;)e[u--]=0},o.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var i=e,u=0;return i>=4096&&(u+=13,i>>>=13),i>=64&&(u+=7,i>>>=7),i>=8&&(u+=4,i>>>=4),i>=2&&(u+=2,i>>>=2),u+i},o.prototype._zeroBits=function(e){if(0===e)return 26;var i=e,u=0;return 0==(8191&i)&&(u+=13,i>>>=13),0==(127&i)&&(u+=7,i>>>=7),0==(15&i)&&(u+=4,i>>>=4),0==(3&i)&&(u+=2,i>>>=2),0==(1&i)&&u++,u},o.prototype.bitLength=function(){var i=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+i},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var i;i=this.length>e.length?e:this;for(var u=0;ue.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var i,u;this.length>e.length?(i=this,u=e):(i=e,u=this);for(var d=0;de.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){M("number"==typeof e&&e>=0);var i=0|Math.ceil(e/26),u=e%26;this._expand(i),u>0&&i--;for(var d=0;d0&&(this.words[d]=~this.words[d]&67108863>>26-u),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,i){M("number"==typeof e&&e>=0);var u=e/26|0,d=e%26;return this._expand(u+1),this.words[u]=i?this.words[u]|1<e.length?(u=this,d=e):(u=e,d=this);for(var c=0,r=0;r>>26;for(;0!==c&&r>>26;if(this.length=u.length,0!==c)this.words[this.length]=c,this.length++;else if(u!==this)for(;re.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var d,c,u=this.cmp(e);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(d=this,c=e):(d=e,c=this);for(var r=0,h=0;h>26,this.words[h]=67108863&i;for(;0!==r&&h>26,this.words[h]=67108863&i;if(0===r&&h>>13,Ee=0|d[1],ee=8191&Ee,se=Ee>>>13,ze=0|d[2],ye=8191&ze,ue=ze>>>13,je=0|d[3],Ne=8191&je,Ye=je>>>13,Et=0|d[4],ot=8191&Et,lt=Et>>>13,Lt=0|d[5],ct=8191&Lt,He=Lt>>>13,Ue=0|d[6],Se=8191&Ue,Ve=Ue>>>13,Le=0|d[7],Y=8191&Le,z=Le>>>13,G=0|d[8],re=8191&G,ce=G>>>13,Ge=0|d[9],De=8191&Ge,we=Ge>>>13,Oe=0|c[0],xe=8191&Oe,te=Oe>>>13,le=0|c[1],me=8191&le,Pe=le>>>13,st=0|c[2],tt=8191&st,et=st>>>13,gt=0|c[3],Fe=8191>,ne=gt>>>13,yt=0|c[4],rt=8191&yt,$=yt>>>13,We=0|c[5],Be=8191&We,Ze=We>>>13,pe=0|c[6],ve=8191&pe,be=pe>>>13,de=0|c[7],Re=8191&de,Je=de>>>13,vt=0|c[8],it=8191&vt,at=vt>>>13,It=0|c[9],At=8191&It,Rt=It>>>13;u.negative=e.negative^i.negative,u.length=19;var Pt=(h+(F=Math.imul(Ae,xe))|0)+((8191&(T=(T=Math.imul(Ae,te))+Math.imul(fe,xe)|0))<<13)|0;h=((H=Math.imul(fe,te))+(T>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,F=Math.imul(ee,xe),T=(T=Math.imul(ee,te))+Math.imul(se,xe)|0,H=Math.imul(se,te);var Vt=(h+(F=F+Math.imul(Ae,me)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0))<<13)|0;h=((H=H+Math.imul(fe,Pe)|0)+(T>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,F=Math.imul(ye,xe),T=(T=Math.imul(ye,te))+Math.imul(ue,xe)|0,H=Math.imul(ue,te),F=F+Math.imul(ee,me)|0,T=(T=T+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,H=H+Math.imul(se,Pe)|0;var er=(h+(F=F+Math.imul(Ae,tt)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0))<<13)|0;h=((H=H+Math.imul(fe,et)|0)+(T>>>13)|0)+(er>>>26)|0,er&=67108863,F=Math.imul(Ne,xe),T=(T=Math.imul(Ne,te))+Math.imul(Ye,xe)|0,H=Math.imul(Ye,te),F=F+Math.imul(ye,me)|0,T=(T=T+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,H=H+Math.imul(ue,Pe)|0,F=F+Math.imul(ee,tt)|0,T=(T=T+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,H=H+Math.imul(se,et)|0;var nr=(h+(F=F+Math.imul(Ae,Fe)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0))<<13)|0;h=((H=H+Math.imul(fe,ne)|0)+(T>>>13)|0)+(nr>>>26)|0,nr&=67108863,F=Math.imul(ot,xe),T=(T=Math.imul(ot,te))+Math.imul(lt,xe)|0,H=Math.imul(lt,te),F=F+Math.imul(Ne,me)|0,T=(T=T+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,H=H+Math.imul(Ye,Pe)|0,F=F+Math.imul(ye,tt)|0,T=(T=T+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,H=H+Math.imul(ue,et)|0,F=F+Math.imul(ee,Fe)|0,T=(T=T+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,H=H+Math.imul(se,ne)|0;var tr=(h+(F=F+Math.imul(Ae,rt)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0))<<13)|0;h=((H=H+Math.imul(fe,$)|0)+(T>>>13)|0)+(tr>>>26)|0,tr&=67108863,F=Math.imul(ct,xe),T=(T=Math.imul(ct,te))+Math.imul(He,xe)|0,H=Math.imul(He,te),F=F+Math.imul(ot,me)|0,T=(T=T+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,H=H+Math.imul(lt,Pe)|0,F=F+Math.imul(Ne,tt)|0,T=(T=T+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,H=H+Math.imul(Ye,et)|0,F=F+Math.imul(ye,Fe)|0,T=(T=T+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,H=H+Math.imul(ue,ne)|0,F=F+Math.imul(ee,rt)|0,T=(T=T+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,H=H+Math.imul(se,$)|0;var Wt=(h+(F=F+Math.imul(Ae,Be)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0))<<13)|0;h=((H=H+Math.imul(fe,Ze)|0)+(T>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,F=Math.imul(Se,xe),T=(T=Math.imul(Se,te))+Math.imul(Ve,xe)|0,H=Math.imul(Ve,te),F=F+Math.imul(ct,me)|0,T=(T=T+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,H=H+Math.imul(He,Pe)|0,F=F+Math.imul(ot,tt)|0,T=(T=T+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,H=H+Math.imul(lt,et)|0,F=F+Math.imul(Ne,Fe)|0,T=(T=T+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,H=H+Math.imul(Ye,ne)|0,F=F+Math.imul(ye,rt)|0,T=(T=T+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,H=H+Math.imul(ue,$)|0,F=F+Math.imul(ee,Be)|0,T=(T=T+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,H=H+Math.imul(se,Ze)|0;var Yt=(h+(F=F+Math.imul(Ae,ve)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0))<<13)|0;h=((H=H+Math.imul(fe,be)|0)+(T>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,F=Math.imul(Y,xe),T=(T=Math.imul(Y,te))+Math.imul(z,xe)|0,H=Math.imul(z,te),F=F+Math.imul(Se,me)|0,T=(T=T+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,H=H+Math.imul(Ve,Pe)|0,F=F+Math.imul(ct,tt)|0,T=(T=T+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,H=H+Math.imul(He,et)|0,F=F+Math.imul(ot,Fe)|0,T=(T=T+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,H=H+Math.imul(lt,ne)|0,F=F+Math.imul(Ne,rt)|0,T=(T=T+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,H=H+Math.imul(Ye,$)|0,F=F+Math.imul(ye,Be)|0,T=(T=T+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,H=H+Math.imul(ue,Ze)|0,F=F+Math.imul(ee,ve)|0,T=(T=T+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,H=H+Math.imul(se,be)|0;var Ht=(h+(F=F+Math.imul(Ae,Re)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0))<<13)|0;h=((H=H+Math.imul(fe,Je)|0)+(T>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,F=Math.imul(re,xe),T=(T=Math.imul(re,te))+Math.imul(ce,xe)|0,H=Math.imul(ce,te),F=F+Math.imul(Y,me)|0,T=(T=T+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,H=H+Math.imul(z,Pe)|0,F=F+Math.imul(Se,tt)|0,T=(T=T+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,H=H+Math.imul(Ve,et)|0,F=F+Math.imul(ct,Fe)|0,T=(T=T+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,H=H+Math.imul(He,ne)|0,F=F+Math.imul(ot,rt)|0,T=(T=T+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,H=H+Math.imul(lt,$)|0,F=F+Math.imul(Ne,Be)|0,T=(T=T+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,H=H+Math.imul(Ye,Ze)|0,F=F+Math.imul(ye,ve)|0,T=(T=T+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,H=H+Math.imul(ue,be)|0,F=F+Math.imul(ee,Re)|0,T=(T=T+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,H=H+Math.imul(se,Je)|0;var Bt=(h+(F=F+Math.imul(Ae,it)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;h=((H=H+Math.imul(fe,at)|0)+(T>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,F=Math.imul(De,xe),T=(T=Math.imul(De,te))+Math.imul(we,xe)|0,H=Math.imul(we,te),F=F+Math.imul(re,me)|0,T=(T=T+Math.imul(re,Pe)|0)+Math.imul(ce,me)|0,H=H+Math.imul(ce,Pe)|0,F=F+Math.imul(Y,tt)|0,T=(T=T+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,H=H+Math.imul(z,et)|0,F=F+Math.imul(Se,Fe)|0,T=(T=T+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,H=H+Math.imul(Ve,ne)|0,F=F+Math.imul(ct,rt)|0,T=(T=T+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,H=H+Math.imul(He,$)|0,F=F+Math.imul(ot,Be)|0,T=(T=T+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,H=H+Math.imul(lt,Ze)|0,F=F+Math.imul(Ne,ve)|0,T=(T=T+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,H=H+Math.imul(Ye,be)|0,F=F+Math.imul(ye,Re)|0,T=(T=T+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,H=H+Math.imul(ue,Je)|0,F=F+Math.imul(ee,it)|0,T=(T=T+Math.imul(ee,at)|0)+Math.imul(se,it)|0,H=H+Math.imul(se,at)|0;var jt=(h+(F=F+Math.imul(Ae,At)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Rt)|0)+Math.imul(fe,At)|0))<<13)|0;h=((H=H+Math.imul(fe,Rt)|0)+(T>>>13)|0)+(jt>>>26)|0,jt&=67108863,F=Math.imul(De,me),T=(T=Math.imul(De,Pe))+Math.imul(we,me)|0,H=Math.imul(we,Pe),F=F+Math.imul(re,tt)|0,T=(T=T+Math.imul(re,et)|0)+Math.imul(ce,tt)|0,H=H+Math.imul(ce,et)|0,F=F+Math.imul(Y,Fe)|0,T=(T=T+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,H=H+Math.imul(z,ne)|0,F=F+Math.imul(Se,rt)|0,T=(T=T+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,H=H+Math.imul(Ve,$)|0,F=F+Math.imul(ct,Be)|0,T=(T=T+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,H=H+Math.imul(He,Ze)|0,F=F+Math.imul(ot,ve)|0,T=(T=T+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,H=H+Math.imul(lt,be)|0,F=F+Math.imul(Ne,Re)|0,T=(T=T+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,H=H+Math.imul(Ye,Je)|0,F=F+Math.imul(ye,it)|0,T=(T=T+Math.imul(ye,at)|0)+Math.imul(ue,it)|0,H=H+Math.imul(ue,at)|0;var Gt=(h+(F=F+Math.imul(ee,At)|0)|0)+((8191&(T=(T=T+Math.imul(ee,Rt)|0)+Math.imul(se,At)|0))<<13)|0;h=((H=H+Math.imul(se,Rt)|0)+(T>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,F=Math.imul(De,tt),T=(T=Math.imul(De,et))+Math.imul(we,tt)|0,H=Math.imul(we,et),F=F+Math.imul(re,Fe)|0,T=(T=T+Math.imul(re,ne)|0)+Math.imul(ce,Fe)|0,H=H+Math.imul(ce,ne)|0,F=F+Math.imul(Y,rt)|0,T=(T=T+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,H=H+Math.imul(z,$)|0,F=F+Math.imul(Se,Be)|0,T=(T=T+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,H=H+Math.imul(Ve,Ze)|0,F=F+Math.imul(ct,ve)|0,T=(T=T+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,H=H+Math.imul(He,be)|0,F=F+Math.imul(ot,Re)|0,T=(T=T+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,H=H+Math.imul(lt,Je)|0,F=F+Math.imul(Ne,it)|0,T=(T=T+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0,H=H+Math.imul(Ye,at)|0;var Zt=(h+(F=F+Math.imul(ye,At)|0)|0)+((8191&(T=(T=T+Math.imul(ye,Rt)|0)+Math.imul(ue,At)|0))<<13)|0;h=((H=H+Math.imul(ue,Rt)|0)+(T>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,F=Math.imul(De,Fe),T=(T=Math.imul(De,ne))+Math.imul(we,Fe)|0,H=Math.imul(we,ne),F=F+Math.imul(re,rt)|0,T=(T=T+Math.imul(re,$)|0)+Math.imul(ce,rt)|0,H=H+Math.imul(ce,$)|0,F=F+Math.imul(Y,Be)|0,T=(T=T+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,H=H+Math.imul(z,Ze)|0,F=F+Math.imul(Se,ve)|0,T=(T=T+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,H=H+Math.imul(Ve,be)|0,F=F+Math.imul(ct,Re)|0,T=(T=T+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,H=H+Math.imul(He,Je)|0,F=F+Math.imul(ot,it)|0,T=(T=T+Math.imul(ot,at)|0)+Math.imul(lt,it)|0,H=H+Math.imul(lt,at)|0;var Jt=(h+(F=F+Math.imul(Ne,At)|0)|0)+((8191&(T=(T=T+Math.imul(Ne,Rt)|0)+Math.imul(Ye,At)|0))<<13)|0;h=((H=H+Math.imul(Ye,Rt)|0)+(T>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,F=Math.imul(De,rt),T=(T=Math.imul(De,$))+Math.imul(we,rt)|0,H=Math.imul(we,$),F=F+Math.imul(re,Be)|0,T=(T=T+Math.imul(re,Ze)|0)+Math.imul(ce,Be)|0,H=H+Math.imul(ce,Ze)|0,F=F+Math.imul(Y,ve)|0,T=(T=T+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,H=H+Math.imul(z,be)|0,F=F+Math.imul(Se,Re)|0,T=(T=T+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,H=H+Math.imul(Ve,Je)|0,F=F+Math.imul(ct,it)|0,T=(T=T+Math.imul(ct,at)|0)+Math.imul(He,it)|0,H=H+Math.imul(He,at)|0;var zt=(h+(F=F+Math.imul(ot,At)|0)|0)+((8191&(T=(T=T+Math.imul(ot,Rt)|0)+Math.imul(lt,At)|0))<<13)|0;h=((H=H+Math.imul(lt,Rt)|0)+(T>>>13)|0)+(zt>>>26)|0,zt&=67108863,F=Math.imul(De,Be),T=(T=Math.imul(De,Ze))+Math.imul(we,Be)|0,H=Math.imul(we,Ze),F=F+Math.imul(re,ve)|0,T=(T=T+Math.imul(re,be)|0)+Math.imul(ce,ve)|0,H=H+Math.imul(ce,be)|0,F=F+Math.imul(Y,Re)|0,T=(T=T+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,H=H+Math.imul(z,Je)|0,F=F+Math.imul(Se,it)|0,T=(T=T+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0,H=H+Math.imul(Ve,at)|0;var _t=(h+(F=F+Math.imul(ct,At)|0)|0)+((8191&(T=(T=T+Math.imul(ct,Rt)|0)+Math.imul(He,At)|0))<<13)|0;h=((H=H+Math.imul(He,Rt)|0)+(T>>>13)|0)+(_t>>>26)|0,_t&=67108863,F=Math.imul(De,ve),T=(T=Math.imul(De,be))+Math.imul(we,ve)|0,H=Math.imul(we,be),F=F+Math.imul(re,Re)|0,T=(T=T+Math.imul(re,Je)|0)+Math.imul(ce,Re)|0,H=H+Math.imul(ce,Je)|0,F=F+Math.imul(Y,it)|0,T=(T=T+Math.imul(Y,at)|0)+Math.imul(z,it)|0,H=H+Math.imul(z,at)|0;var St=(h+(F=F+Math.imul(Se,At)|0)|0)+((8191&(T=(T=T+Math.imul(Se,Rt)|0)+Math.imul(Ve,At)|0))<<13)|0;h=((H=H+Math.imul(Ve,Rt)|0)+(T>>>13)|0)+(St>>>26)|0,St&=67108863,F=Math.imul(De,Re),T=(T=Math.imul(De,Je))+Math.imul(we,Re)|0,H=Math.imul(we,Je),F=F+Math.imul(re,it)|0,T=(T=T+Math.imul(re,at)|0)+Math.imul(ce,it)|0,H=H+Math.imul(ce,at)|0;var Ut=(h+(F=F+Math.imul(Y,At)|0)|0)+((8191&(T=(T=T+Math.imul(Y,Rt)|0)+Math.imul(z,At)|0))<<13)|0;h=((H=H+Math.imul(z,Rt)|0)+(T>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,F=Math.imul(De,it),T=(T=Math.imul(De,at))+Math.imul(we,it)|0,H=Math.imul(we,at);var Nt=(h+(F=F+Math.imul(re,At)|0)|0)+((8191&(T=(T=T+Math.imul(re,Rt)|0)+Math.imul(ce,At)|0))<<13)|0;h=((H=H+Math.imul(ce,Rt)|0)+(T>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Ct=(h+(F=Math.imul(De,At))|0)+((8191&(T=(T=Math.imul(De,Rt))+Math.imul(we,At)|0))<<13)|0;return h=((H=Math.imul(we,Rt))+(T>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r[0]=Pt,r[1]=Vt,r[2]=er,r[3]=nr,r[4]=tr,r[5]=Wt,r[6]=Yt,r[7]=Ht,r[8]=Bt,r[9]=jt,r[10]=Gt,r[11]=Zt,r[12]=Jt,r[13]=zt,r[14]=_t,r[15]=St,r[16]=Ut,r[17]=Nt,r[18]=Ct,0!==h&&(r[19]=h,u.length++),u};function U(s,e,i){i.negative=e.negative^s.negative,i.length=s.length+e.length;for(var u=0,d=0,c=0;c>>26)|0)>>>26,r&=67108863}i.words[c]=h,u=r,r=d}return 0!==u?i.words[c]=u:i.length--,i._strip()}function O(s,e,i){return U(s,e,i)}function j(s,e){this.x=s,this.y=e}Math.imul||(R=L),o.prototype.mulTo=function(e,i){var d=this.length+e.length;return 10===this.length&&10===e.length?R(this,e,i):d<63?L(this,e,i):d<1024?U(this,e,i):O(this,e,i)},j.prototype.makeRBT=function(e){for(var i=new Array(e),u=o.prototype._countBits(e)-1,d=0;d>=1;return d},j.prototype.permute=function(e,i,u,d,c,r){for(var h=0;h>>=1)c++;return 1<>>=13),c>>>=13;for(r=2*i;r>=26,u+=c/67108864|0,u+=r>>>26,this.words[d]=67108863&r}return 0!==u&&(this.words[d]=u,this.length++),i?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var i=function C(s){for(var e=new Array(s.bitLength()),i=0;i>>i%26&1;return e}(e);if(0===i.length)return new o(1);for(var u=this,d=0;d=0);var c,i=e%26,u=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var r=0;for(c=0;c>>26-i}r&&(this.words[c]=r,this.length++)}if(0!==u){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c=0),d=i?(i-i%26)/26:0;var c=e%26,r=Math.min((e-c)/26,this.length),h=67108863^67108863>>>c<r)for(this.length-=r,T=0;T=0&&(0!==H||T>=d);T--){var ae=0|this.words[T];this.words[T]=H<<26-c|ae>>>c,H=ae&h}return F&&0!==H&&(F.words[F.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,i,u){return M(0===this.negative),this.iushrn(e,i,u)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){M("number"==typeof e&&e>=0);var i=e%26,u=(e-i)/26;return!(this.length<=u||!(this.words[u]&1<=0);var i=e%26,u=(e-i)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==i&&u++,this.length=Math.min(u,this.length),0!==i&&(this.words[this.length-1]&=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},o.prototype.isubn=function(e){if(M("number"==typeof e),M(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(F/67108864|0),this.words[c+u]=67108863&r}for(;c>26,this.words[c+u]=67108863&r;if(0===h)return this._strip();for(M(-1===h),h=0,c=0;c>26,this.words[c]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,i){var u,d=this.clone(),c=e,r=0|c.words[c.length-1];0!=(u=26-this._countBits(r))&&(c=c.ushln(u),d.iushln(u),r=0|c.words[c.length-1]);var T,F=d.length-c.length;if("mod"!==i){(T=new o(null)).length=F+1,T.words=new Array(T.length);for(var H=0;H=0;Ae--){var fe=67108864*(0|d.words[c.length+Ae])+(0|d.words[c.length+Ae-1]);for(fe=Math.min(fe/r|0,67108863),d._ishlnsubmul(c,fe,Ae);0!==d.negative;)fe--,d.negative=0,d._ishlnsubmul(c,1,Ae),d.isZero()||(d.negative^=1);T&&(T.words[Ae]=fe)}return T&&T._strip(),d._strip(),"div"!==i&&0!==u&&d.iushrn(u),{div:T||null,mod:d}},o.prototype.divmod=function(e,i,u){return M(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(r=this.neg().divmod(e,i),"mod"!==i&&(d=r.div.neg()),"div"!==i&&(c=r.mod.neg(),u&&0!==c.negative&&c.iadd(e)),{div:d,mod:c}):0===this.negative&&0!==e.negative?(r=this.divmod(e.neg(),i),"mod"!==i&&(d=r.div.neg()),{div:d,mod:r.mod}):0!=(this.negative&e.negative)?(r=this.neg().divmod(e.neg(),i),"div"!==i&&(c=r.mod.neg(),u&&0!==c.negative&&c.isub(e)),{div:r.div,mod:c}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===i?{div:this.divn(e.words[0]),mod:null}:"mod"===i?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,i);var d,c,r},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var i=this.divmod(e);if(i.mod.isZero())return i.div;var u=0!==i.div.negative?i.mod.isub(e):i.mod,d=e.ushrn(1),c=e.andln(1),r=u.cmp(d);return r<0||1===c&&0===r?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},o.prototype.modrn=function(e){var i=e<0;i&&(e=-e),M(e<=67108863);for(var u=(1<<26)%e,d=0,c=this.length-1;c>=0;c--)d=(u*d+(0|this.words[c]))%e;return i?-d:d},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var i=e<0;i&&(e=-e),M(e<=67108863);for(var u=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*u;this.words[d]=c/e|0,u=c%e}return this._strip(),i?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){M(0===e.negative),M(!e.isZero());var i=this,u=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var d=new o(1),c=new o(0),r=new o(0),h=new o(1),F=0;i.isEven()&&u.isEven();)i.iushrn(1),u.iushrn(1),++F;for(var T=u.clone(),H=i.clone();!i.isZero();){for(var ae=0,Ae=1;0==(i.words[0]&Ae)&&ae<26;++ae,Ae<<=1);if(ae>0)for(i.iushrn(ae);ae-- >0;)(d.isOdd()||c.isOdd())&&(d.iadd(T),c.isub(H)),d.iushrn(1),c.iushrn(1);for(var fe=0,Ee=1;0==(u.words[0]&Ee)&&fe<26;++fe,Ee<<=1);if(fe>0)for(u.iushrn(fe);fe-- >0;)(r.isOdd()||h.isOdd())&&(r.iadd(T),h.isub(H)),r.iushrn(1),h.iushrn(1);i.cmp(u)>=0?(i.isub(u),d.isub(r),c.isub(h)):(u.isub(i),r.isub(d),h.isub(c))}return{a:r,b:h,gcd:u.iushln(F)}},o.prototype._invmp=function(e){M(0===e.negative),M(!e.isZero());var ae,i=this,u=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var d=new o(1),c=new o(0),r=u.clone();i.cmpn(1)>0&&u.cmpn(1)>0;){for(var h=0,F=1;0==(i.words[0]&F)&&h<26;++h,F<<=1);if(h>0)for(i.iushrn(h);h-- >0;)d.isOdd()&&d.iadd(r),d.iushrn(1);for(var T=0,H=1;0==(u.words[0]&H)&&T<26;++T,H<<=1);if(T>0)for(u.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(r),c.iushrn(1);i.cmp(u)>=0?(i.isub(u),d.isub(c)):(u.isub(i),c.isub(d))}return(ae=0===i.cmpn(1)?d:c).cmpn(0)<0&&ae.iadd(e),ae},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var i=this.clone(),u=e.clone();i.negative=0,u.negative=0;for(var d=0;i.isEven()&&u.isEven();d++)i.iushrn(1),u.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=i.cmp(u);if(c<0){var r=i;i=u,u=r}else if(0===c||0===u.cmpn(1))break;i.isub(u)}return u.iushln(d)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){M("number"==typeof e);var i=e%26,u=(e-i)/26,d=1<>>26,this.words[r]=h&=67108863}return 0!==c&&(this.words[r]=c,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var u,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)u=1;else{i&&(e=-e),M(e<=67108863,"Number is too big");var d=0|this.words[0];u=d===e?0:de.length)return 1;if(this.length=0;u--){var d=0|this.words[u],c=0|e.words[u];if(d!==c){dc&&(i=1);break}}return i},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new t(e)},o.prototype.toRed=function(e){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return M(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return M(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var K={k256:null,p224:null,p192:null,p25519:null};function Z(s,e){this.name=s,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function Q(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function X(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(s){if("string"==typeof s){var e=o._prime(s);this.m=e.p,this.prime=e}else M(s.gtn(1),"modulus must be greater than 1"),this.m=s,this.prime=null}function a(s){t.call(this,s),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Z.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},Z.prototype.ireduce=function(e){var u,i=e;do{this.split(i,this.tmp),u=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(u>this.n);var d=u0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},Z.prototype.split=function(e,i){e.iushrn(this.n,0,i)},Z.prototype.imulK=function(e){return e.imul(this.k)},P(Q,Z),Q.prototype.split=function(e,i){for(var u=4194303,d=Math.min(e.length,9),c=0;c>>22,r=h}e.words[c-10]=r>>>=22,e.length-=0===r&&e.length>10?10:9},Q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var i=0,u=0;u>>=26,e.words[u]=c,i=d}return 0!==i&&(e.words[e.length++]=i),e},o._prime=function(e){if(K[e])return K[e];var i;if("k256"===e)i=new Q;else if("p224"===e)i=new W;else if("p192"===e)i=new X;else{if("p25519"!==e)throw new Error("Unknown prime "+e);i=new _}return K[e]=i,i},t.prototype._verify1=function(e){M(0===e.negative,"red works only with positives"),M(e.red,"red works only with red numbers")},t.prototype._verify2=function(e,i){M(0==(e.negative|i.negative),"red works only with positives"),M(e.red&&e.red===i.red,"red works only with red numbers")},t.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(g(e,e.umod(this.m)._forceRed(this)),e)},t.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},t.prototype.add=function(e,i){this._verify2(e,i);var u=e.add(i);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},t.prototype.iadd=function(e,i){this._verify2(e,i);var u=e.iadd(i);return u.cmp(this.m)>=0&&u.isub(this.m),u},t.prototype.sub=function(e,i){this._verify2(e,i);var u=e.sub(i);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},t.prototype.isub=function(e,i){this._verify2(e,i);var u=e.isub(i);return u.cmpn(0)<0&&u.iadd(this.m),u},t.prototype.shl=function(e,i){return this._verify1(e),this.imod(e.ushln(i))},t.prototype.imul=function(e,i){return this._verify2(e,i),this.imod(e.imul(i))},t.prototype.mul=function(e,i){return this._verify2(e,i),this.imod(e.mul(i))},t.prototype.isqr=function(e){return this.imul(e,e.clone())},t.prototype.sqr=function(e){return this.mul(e,e)},t.prototype.sqrt=function(e){if(e.isZero())return e.clone();var i=this.m.andln(3);if(M(i%2==1),3===i){var u=this.m.add(new o(1)).iushrn(2);return this.pow(e,u)}for(var d=this.m.subn(1),c=0;!d.isZero()&&0===d.andln(1);)c++,d.iushrn(1);M(!d.isZero());var r=new o(1).toRed(this),h=r.redNeg(),F=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new o(2*T*T).toRed(this);0!==this.pow(T,F).cmp(h);)T.redIAdd(h);for(var H=this.pow(T,d),ae=this.pow(e,d.addn(1).iushrn(1)),Ae=this.pow(e,d),fe=c;0!==Ae.cmp(r);){for(var Ee=Ae,ee=0;0!==Ee.cmp(r);ee++)Ee=Ee.redSqr();M(ee=0;c--){for(var H=i.words[c],ae=T-1;ae>=0;ae--){var Ae=H>>ae&1;r!==d[0]&&(r=this.sqr(r)),0!==Ae||0!==h?(h<<=1,h|=Ae,(4==++F||0===c&&0===ae)&&(r=this.mul(r,d[h]),F=0,h=0)):F=0}T=26}return r},t.prototype.convertTo=function(e){var i=e.umod(this.m);return i===e?i.clone():i},t.prototype.convertFrom=function(e){var i=e.clone();return i.red=null,i},o.mont=function(e){return new a(e)},P(a,t),a.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},a.prototype.convertFrom=function(e){var i=this.imod(e.mul(this.rinv));return i.red=null,i},a.prototype.imul=function(e,i){if(e.isZero()||i.isZero())return e.words[0]=0,e.length=1,e;var u=e.imul(i),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(d).iushrn(this.shift),r=c;return c.cmp(this.m)>=0?r=c.isub(this.m):c.cmpn(0)<0&&(r=c.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(e,i){if(e.isZero()||i.isZero())return new o(0)._forceRed(this);var u=e.mul(i),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(d).iushrn(this.shift),r=c;return c.cmp(this.m)>=0?r=c.isub(this.m):c.cmpn(0)<0&&(r=c.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},90332:(q,k,x)=>{var B;function I(P){this.rand=P}if(q.exports=function(o){return B||(B=new I(null)),B.generate(o)},q.exports.Rand=I,I.prototype.generate=function(o){return this._rand(o)},I.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var w=new Uint8Array(o),S=0;S{"use strict";var B=x(16168),I=x(82788),M=I(B("String.prototype.indexOf"));q.exports=function(o,w){var S=B(o,!!w);return"function"==typeof S&&M(o,".prototype.")>-1?I(S):S}},82788:(q,k,x)=>{"use strict";var B=x(24721),I=x(16168),M=I("%Function.prototype.apply%"),P=I("%Function.prototype.call%"),o=I("%Reflect.apply%",!0)||B.call(P,M),w=I("%Object.getOwnPropertyDescriptor%",!0),S=I("%Object.defineProperty%",!0),D=I("%Math.max%");if(S)try{S({},"a",{value:1})}catch{S=null}q.exports=function(p){var b=o(B,P,arguments);if(w&&S){var y=w(b,"length");y.configurable&&S(b,"length",{value:1+D(0,p.length-(arguments.length-1))})}return b};var A=function(){return o(B,M,arguments)};S?S(q.exports,"apply",{value:A}):q.exports.apply=A},1645:(q,k,x)=>{"use strict";var B=x(20462),I="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),M=Object.prototype.toString,P=Array.prototype.concat,o=Object.defineProperty,S=x(37945)(),D=o&&S,A=function(p,b,y,m){b in p&&(!function(p){return"function"==typeof p&&"[object Function]"===M.call(p)}(m)||!m())||(D?o(p,b,{configurable:!0,enumerable:!1,value:y,writable:!0}):p[b]=y)},g=function(p,b){var y=arguments.length>2?arguments[2]:{},m=B(b);I&&(m=P.call(m,Object.getOwnPropertySymbols(b)));for(var E=0;E{"use strict";var B=k;B.version=x(20590).i8,B.utils=x(37700),B.rand=x(90332),B.curve=x(52930),B.curves=x(31434),B.ec=x(86278),B.eddsa=x(42715)},57921:(q,k,x)=>{"use strict";var B=x(97965),I=x(37700),M=I.getNAF,P=I.getJSF,o=I.assert;function w(D,A){this.type=D,this.p=new B(A.p,16),this.red=A.prime?B.red(A.prime):B.mont(this.p),this.zero=new B(0).toRed(this.red),this.one=new B(1).toRed(this.red),this.two=new B(2).toRed(this.red),this.n=A.n&&new B(A.n,16),this.g=A.g&&this.pointFromJSON(A.g,A.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var g=this.n&&this.p.div(this.n);!g||g.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function S(D,A){this.curve=D,this.type=A,this.precomputed=null}q.exports=w,w.prototype.point=function(){throw new Error("Not implemented")},w.prototype.validate=function(){throw new Error("Not implemented")},w.prototype._fixedNafMul=function(A,g){o(A.precomputed);var p=A._getDoubles(),b=M(g,1,this._bitLength),y=(1<=E;L--)C=(C<<1)+b[L];m.push(C)}for(var R=this.jpoint(null,null,null),U=this.jpoint(null,null,null),O=y;O>0;O--){for(E=0;E=0;C--){for(var L=0;C>=0&&0===m[C];C--)L++;if(C>=0&&L++,E=E.dblp(L),C<0)break;var R=m[C];o(0!==R),E="affine"===A.type?E.mixedAdd(R>0?y[R-1>>1]:y[-R-1>>1].neg()):E.add(R>0?y[R-1>>1]:y[-R-1>>1].neg())}return"affine"===A.type?E.toP():E},w.prototype._wnafMulAdd=function(A,g,p,b,y){var R,U,O,m=this._wnafT1,E=this._wnafT2,C=this._wnafT3,L=0;for(R=0;R=1;R-=2){var K=R-1,Z=R;if(1===m[K]&&1===m[Z]){var Q=[g[K],null,null,g[Z]];0===g[K].y.cmp(g[Z].y)?(Q[1]=g[K].add(g[Z]),Q[2]=g[K].toJ().mixedAdd(g[Z].neg())):0===g[K].y.cmp(g[Z].y.redNeg())?(Q[1]=g[K].toJ().mixedAdd(g[Z]),Q[2]=g[K].add(g[Z].neg())):(Q[1]=g[K].toJ().mixedAdd(g[Z]),Q[2]=g[K].toJ().mixedAdd(g[Z].neg()));var W=[-3,-1,-5,-7,0,7,5,1,3],X=P(p[K],p[Z]);for(L=Math.max(X[0].length,L),C[K]=new Array(L),C[Z]=new Array(L),U=0;U=0;R--){for(var e=0;R>=0;){var i=!0;for(U=0;U=0&&e++,a=a.dblp(e),R<0)break;for(U=0;U0?O=E[U][u-1>>1]:u<0&&(O=E[U][-u-1>>1].neg()),a="affine"===O.type?a.mixedAdd(O):a.add(O))}}for(R=0;R=Math.ceil((A.bitLength()+1)/g.step)},S.prototype._getDoubles=function(A,g){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],b=this,y=0;y{"use strict";var B=x(37700),I=x(97965),M=x(61390),P=x(57921),o=B.assert;function w(D){this.twisted=1!=(0|D.a),this.mOneA=this.twisted&&-1==(0|D.a),this.extended=this.mOneA,P.call(this,"edwards",D),this.a=new I(D.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new I(D.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new I(D.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|D.c)}function S(D,A,g,p,b){P.BasePoint.call(this,D,"projective"),null===A&&null===g&&null===p?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new I(A,16),this.y=new I(g,16),this.z=p?new I(p,16):this.curve.one,this.t=b&&new I(b,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}M(w,P),q.exports=w,w.prototype._mulA=function(A){return this.mOneA?A.redNeg():this.a.redMul(A)},w.prototype._mulC=function(A){return this.oneC?A:this.c.redMul(A)},w.prototype.jpoint=function(A,g,p,b){return this.point(A,g,p,b)},w.prototype.pointFromX=function(A,g){(A=new I(A,16)).red||(A=A.toRed(this.red));var p=A.redSqr(),b=this.c2.redSub(this.a.redMul(p)),y=this.one.redSub(this.c2.redMul(this.d).redMul(p)),m=b.redMul(y.redInvm()),E=m.redSqrt();if(0!==E.redSqr().redSub(m).cmp(this.zero))throw new Error("invalid point");var C=E.fromRed().isOdd();return(g&&!C||!g&&C)&&(E=E.redNeg()),this.point(A,E)},w.prototype.pointFromY=function(A,g){(A=new I(A,16)).red||(A=A.toRed(this.red));var p=A.redSqr(),b=p.redSub(this.c2),y=p.redMul(this.d).redMul(this.c2).redSub(this.a),m=b.redMul(y.redInvm());if(0===m.cmp(this.zero)){if(g)throw new Error("invalid point");return this.point(this.zero,A)}var E=m.redSqrt();if(0!==E.redSqr().redSub(m).cmp(this.zero))throw new Error("invalid point");return E.fromRed().isOdd()!==g&&(E=E.redNeg()),this.point(E,A)},w.prototype.validate=function(A){if(A.isInfinity())return!0;A.normalize();var g=A.x.redSqr(),p=A.y.redSqr(),b=g.redMul(this.a).redAdd(p),y=this.c2.redMul(this.one.redAdd(this.d.redMul(g).redMul(p)));return 0===b.cmp(y)},M(S,P.BasePoint),w.prototype.pointFromJSON=function(A){return S.fromJSON(this,A)},w.prototype.point=function(A,g,p,b){return new S(this,A,g,p,b)},S.fromJSON=function(A,g){return new S(A,g[0],g[1],g[2])},S.prototype.inspect=function(){return this.isInfinity()?"":""},S.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},S.prototype._extDbl=function(){var A=this.x.redSqr(),g=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var b=this.curve._mulA(A),y=this.x.redAdd(this.y).redSqr().redISub(A).redISub(g),m=b.redAdd(g),E=m.redSub(p),C=b.redSub(g),L=y.redMul(E),R=m.redMul(C),U=y.redMul(C),O=E.redMul(m);return this.curve.point(L,R,O,U)},S.prototype._projDbl=function(){var b,y,m,E,C,L,A=this.x.redAdd(this.y).redSqr(),g=this.x.redSqr(),p=this.y.redSqr();if(this.curve.twisted){var R=(E=this.curve._mulA(g)).redAdd(p);this.zOne?(b=A.redSub(g).redSub(p).redMul(R.redSub(this.curve.two)),y=R.redMul(E.redSub(p)),m=R.redSqr().redSub(R).redSub(R)):(C=this.z.redSqr(),L=R.redSub(C).redISub(C),b=A.redSub(g).redISub(p).redMul(L),y=R.redMul(E.redSub(p)),m=R.redMul(L))}else E=g.redAdd(p),C=this.curve._mulC(this.z).redSqr(),L=E.redSub(C).redSub(C),b=this.curve._mulC(A.redISub(E)).redMul(L),y=this.curve._mulC(E).redMul(g.redISub(p)),m=E.redMul(L);return this.curve.point(b,y,m)},S.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},S.prototype._extAdd=function(A){var g=this.y.redSub(this.x).redMul(A.y.redSub(A.x)),p=this.y.redAdd(this.x).redMul(A.y.redAdd(A.x)),b=this.t.redMul(this.curve.dd).redMul(A.t),y=this.z.redMul(A.z.redAdd(A.z)),m=p.redSub(g),E=y.redSub(b),C=y.redAdd(b),L=p.redAdd(g),R=m.redMul(E),U=C.redMul(L),O=m.redMul(L),j=E.redMul(C);return this.curve.point(R,U,j,O)},S.prototype._projAdd=function(A){var U,O,g=this.z.redMul(A.z),p=g.redSqr(),b=this.x.redMul(A.x),y=this.y.redMul(A.y),m=this.curve.d.redMul(b).redMul(y),E=p.redSub(m),C=p.redAdd(m),L=this.x.redAdd(this.y).redMul(A.x.redAdd(A.y)).redISub(b).redISub(y),R=g.redMul(E).redMul(L);return this.curve.twisted?(U=g.redMul(C).redMul(y.redSub(this.curve._mulA(b))),O=E.redMul(C)):(U=g.redMul(C).redMul(y.redSub(b)),O=this.curve._mulC(E).redMul(C)),this.curve.point(R,U,O)},S.prototype.add=function(A){return this.isInfinity()?A:A.isInfinity()?this:this.curve.extended?this._extAdd(A):this._projAdd(A)},S.prototype.mul=function(A){return this._hasDoubles(A)?this.curve._fixedNafMul(this,A):this.curve._wnafMul(this,A)},S.prototype.mulAdd=function(A,g,p){return this.curve._wnafMulAdd(1,[this,g],[A,p],2,!1)},S.prototype.jmulAdd=function(A,g,p){return this.curve._wnafMulAdd(1,[this,g],[A,p],2,!0)},S.prototype.normalize=function(){if(this.zOne)return this;var A=this.z.redInvm();return this.x=this.x.redMul(A),this.y=this.y.redMul(A),this.t&&(this.t=this.t.redMul(A)),this.z=this.curve.one,this.zOne=!0,this},S.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},S.prototype.getX=function(){return this.normalize(),this.x.fromRed()},S.prototype.getY=function(){return this.normalize(),this.y.fromRed()},S.prototype.eq=function(A){return this===A||0===this.getX().cmp(A.getX())&&0===this.getY().cmp(A.getY())},S.prototype.eqXToP=function(A){var g=A.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(g))return!0;for(var p=A.clone(),b=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(g.redIAdd(b),0===this.x.cmp(g))return!0}},S.prototype.toP=S.prototype.normalize,S.prototype.mixedAdd=S.prototype.add},52930:(q,k,x)=>{"use strict";var B=k;B.base=x(57921),B.short=x(75601),B.mont=x(31707),B.edwards=x(27925)},31707:(q,k,x)=>{"use strict";var B=x(97965),I=x(61390),M=x(57921),P=x(37700);function o(S){M.call(this,"mont",S),this.a=new B(S.a,16).toRed(this.red),this.b=new B(S.b,16).toRed(this.red),this.i4=new B(4).toRed(this.red).redInvm(),this.two=new B(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function w(S,D,A){M.BasePoint.call(this,S,"projective"),null===D&&null===A?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new B(D,16),this.z=new B(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}I(o,M),q.exports=o,o.prototype.validate=function(D){var A=D.normalize().x,g=A.redSqr(),p=g.redMul(A).redAdd(g.redMul(this.a)).redAdd(A);return 0===p.redSqrt().redSqr().cmp(p)},I(w,M.BasePoint),o.prototype.decodePoint=function(D,A){return this.point(P.toArray(D,A),1)},o.prototype.point=function(D,A){return new w(this,D,A)},o.prototype.pointFromJSON=function(D){return w.fromJSON(this,D)},w.prototype.precompute=function(){},w.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},w.fromJSON=function(D,A){return new w(D,A[0],A[1]||D.one)},w.prototype.inspect=function(){return this.isInfinity()?"":""},w.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},w.prototype.dbl=function(){var A=this.x.redAdd(this.z).redSqr(),p=this.x.redSub(this.z).redSqr(),b=A.redSub(p),y=A.redMul(p),m=b.redMul(p.redAdd(this.curve.a24.redMul(b)));return this.curve.point(y,m)},w.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},w.prototype.diffAdd=function(D,A){var g=this.x.redAdd(this.z),p=this.x.redSub(this.z),b=D.x.redAdd(D.z),m=D.x.redSub(D.z).redMul(g),E=b.redMul(p),C=A.z.redMul(m.redAdd(E).redSqr()),L=A.x.redMul(m.redISub(E).redSqr());return this.curve.point(C,L)},w.prototype.mul=function(D){for(var A=D.clone(),g=this,p=this.curve.point(null,null),y=[];0!==A.cmpn(0);A.iushrn(1))y.push(A.andln(1));for(var m=y.length-1;m>=0;m--)0===y[m]?(g=g.diffAdd(p,this),p=p.dbl()):(p=g.diffAdd(p,this),g=g.dbl());return p},w.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},w.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},w.prototype.eq=function(D){return 0===this.getX().cmp(D.getX())},w.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},w.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},75601:(q,k,x)=>{"use strict";var B=x(37700),I=x(97965),M=x(61390),P=x(57921),o=B.assert;function w(A){P.call(this,"short",A),this.a=new I(A.a,16).toRed(this.red),this.b=new I(A.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(A),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function S(A,g,p,b){P.BasePoint.call(this,A,"affine"),null===g&&null===p?(this.x=null,this.y=null,this.inf=!0):(this.x=new I(g,16),this.y=new I(p,16),b&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function D(A,g,p,b){P.BasePoint.call(this,A,"jacobian"),null===g&&null===p&&null===b?(this.x=this.curve.one,this.y=this.curve.one,this.z=new I(0)):(this.x=new I(g,16),this.y=new I(p,16),this.z=new I(b,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}M(w,P),q.exports=w,w.prototype._getEndomorphism=function(g){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var p,b;if(g.beta)p=new I(g.beta,16).toRed(this.red);else{var y=this._getEndoRoots(this.p);p=(p=y[0].cmp(y[1])<0?y[0]:y[1]).toRed(this.red)}if(g.lambda)b=new I(g.lambda,16);else{var m=this._getEndoRoots(this.n);0===this.g.mul(m[0]).x.cmp(this.g.x.redMul(p))?b=m[0]:o(0===this.g.mul(b=m[1]).x.cmp(this.g.x.redMul(p)))}return{beta:p,lambda:b,basis:g.basis?g.basis.map(function(C){return{a:new I(C.a,16),b:new I(C.b,16)}}):this._getEndoBasis(b)}}},w.prototype._getEndoRoots=function(g){var p=g===this.p?this.red:I.mont(g),b=new I(2).toRed(p).redInvm(),y=b.redNeg(),m=new I(3).toRed(p).redNeg().redSqrt().redMul(b);return[y.redAdd(m).fromRed(),y.redSub(m).fromRed()]},w.prototype._getEndoBasis=function(g){for(var R,U,O,j,K,Z,Q,X,_,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),b=g,y=this.n.clone(),m=new I(1),E=new I(0),C=new I(0),L=new I(1),W=0;0!==b.cmpn(0);){var t=y.div(b);X=y.sub(t.mul(b)),_=C.sub(t.mul(m));var a=L.sub(t.mul(E));if(!O&&X.cmp(p)<0)R=Q.neg(),U=m,O=X.neg(),j=_;else if(O&&2==++W)break;Q=X,y=b,b=X,C=m,m=_,L=E,E=a}K=X.neg(),Z=_;var s=O.sqr().add(j.sqr());return K.sqr().add(Z.sqr()).cmp(s)>=0&&(K=R,Z=U),O.negative&&(O=O.neg(),j=j.neg()),K.negative&&(K=K.neg(),Z=Z.neg()),[{a:O,b:j},{a:K,b:Z}]},w.prototype._endoSplit=function(g){var p=this.endo.basis,b=p[0],y=p[1],m=y.b.mul(g).divRound(this.n),E=b.b.neg().mul(g).divRound(this.n),C=m.mul(b.a),L=E.mul(y.a),R=m.mul(b.b),U=E.mul(y.b);return{k1:g.sub(C).sub(L),k2:R.add(U).neg()}},w.prototype.pointFromX=function(g,p){(g=new I(g,16)).red||(g=g.toRed(this.red));var b=g.redSqr().redMul(g).redIAdd(g.redMul(this.a)).redIAdd(this.b),y=b.redSqrt();if(0!==y.redSqr().redSub(b).cmp(this.zero))throw new Error("invalid point");var m=y.fromRed().isOdd();return(p&&!m||!p&&m)&&(y=y.redNeg()),this.point(g,y)},w.prototype.validate=function(g){if(g.inf)return!0;var p=g.x,b=g.y,y=this.a.redMul(p),m=p.redSqr().redMul(p).redIAdd(y).redIAdd(this.b);return 0===b.redSqr().redISub(m).cmpn(0)},w.prototype._endoWnafMulAdd=function(g,p,b){for(var y=this._endoWnafT1,m=this._endoWnafT2,E=0;E":""},S.prototype.isInfinity=function(){return this.inf},S.prototype.add=function(g){if(this.inf)return g;if(g.inf)return this;if(this.eq(g))return this.dbl();if(this.neg().eq(g))return this.curve.point(null,null);if(0===this.x.cmp(g.x))return this.curve.point(null,null);var p=this.y.redSub(g.y);0!==p.cmpn(0)&&(p=p.redMul(this.x.redSub(g.x).redInvm()));var b=p.redSqr().redISub(this.x).redISub(g.x),y=p.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,y)},S.prototype.dbl=function(){if(this.inf)return this;var g=this.y.redAdd(this.y);if(0===g.cmpn(0))return this.curve.point(null,null);var p=this.curve.a,b=this.x.redSqr(),y=g.redInvm(),m=b.redAdd(b).redIAdd(b).redIAdd(p).redMul(y),E=m.redSqr().redISub(this.x.redAdd(this.x)),C=m.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,C)},S.prototype.getX=function(){return this.x.fromRed()},S.prototype.getY=function(){return this.y.fromRed()},S.prototype.mul=function(g){return g=new I(g,16),this.isInfinity()?this:this._hasDoubles(g)?this.curve._fixedNafMul(this,g):this.curve.endo?this.curve._endoWnafMulAdd([this],[g]):this.curve._wnafMul(this,g)},S.prototype.mulAdd=function(g,p,b){var y=[this,p],m=[g,b];return this.curve.endo?this.curve._endoWnafMulAdd(y,m):this.curve._wnafMulAdd(1,y,m,2)},S.prototype.jmulAdd=function(g,p,b){var y=[this,p],m=[g,b];return this.curve.endo?this.curve._endoWnafMulAdd(y,m,!0):this.curve._wnafMulAdd(1,y,m,2,!0)},S.prototype.eq=function(g){return this===g||this.inf===g.inf&&(this.inf||0===this.x.cmp(g.x)&&0===this.y.cmp(g.y))},S.prototype.neg=function(g){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(g&&this.precomputed){var b=this.precomputed,y=function(m){return m.neg()};p.precomputed={naf:b.naf&&{wnd:b.naf.wnd,points:b.naf.points.map(y)},doubles:b.doubles&&{step:b.doubles.step,points:b.doubles.points.map(y)}}}return p},S.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},M(D,P.BasePoint),w.prototype.jpoint=function(g,p,b){return new D(this,g,p,b)},D.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var g=this.z.redInvm(),p=g.redSqr(),b=this.x.redMul(p),y=this.y.redMul(p).redMul(g);return this.curve.point(b,y)},D.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},D.prototype.add=function(g){if(this.isInfinity())return g;if(g.isInfinity())return this;var p=g.z.redSqr(),b=this.z.redSqr(),y=this.x.redMul(p),m=g.x.redMul(b),E=this.y.redMul(p.redMul(g.z)),C=g.y.redMul(b.redMul(this.z)),L=y.redSub(m),R=E.redSub(C);if(0===L.cmpn(0))return 0!==R.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var U=L.redSqr(),O=U.redMul(L),j=y.redMul(U),K=R.redSqr().redIAdd(O).redISub(j).redISub(j),Z=R.redMul(j.redISub(K)).redISub(E.redMul(O)),Q=this.z.redMul(g.z).redMul(L);return this.curve.jpoint(K,Z,Q)},D.prototype.mixedAdd=function(g){if(this.isInfinity())return g.toJ();if(g.isInfinity())return this;var p=this.z.redSqr(),b=this.x,y=g.x.redMul(p),m=this.y,E=g.y.redMul(p).redMul(this.z),C=b.redSub(y),L=m.redSub(E);if(0===C.cmpn(0))return 0!==L.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var R=C.redSqr(),U=R.redMul(C),O=b.redMul(R),j=L.redSqr().redIAdd(U).redISub(O).redISub(O),K=L.redMul(O.redISub(j)).redISub(m.redMul(U)),Z=this.z.redMul(C);return this.curve.jpoint(j,K,Z)},D.prototype.dblp=function(g){if(0===g)return this;if(this.isInfinity())return this;if(!g)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var b=this;for(p=0;p=0)return!1;if(b.redIAdd(m),0===this.x.cmp(b))return!0}},D.prototype.inspect=function(){return this.isInfinity()?"":""},D.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},31434:(q,k,x)=>{"use strict";var D,B=k,I=x(27246),M=x(52930),o=x(37700).assert;function w(A){this.curve="short"===A.type?new M.short(A):"edwards"===A.type?new M.edwards(A):new M.mont(A),this.g=this.curve.g,this.n=this.curve.n,this.hash=A.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function S(A,g){Object.defineProperty(B,A,{configurable:!0,enumerable:!0,get:function(){var p=new w(g);return Object.defineProperty(B,A,{configurable:!0,enumerable:!0,value:p}),p}})}B.PresetCurve=w,S("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:I.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),S("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:I.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),S("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:I.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),S("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:I.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),S("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:I.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),S("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:I.sha256,gRed:!1,g:["9"]}),S("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:I.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{D=x(66694)}catch{D=void 0}S("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:I.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",D]})},86278:(q,k,x)=>{"use strict";var B=x(97965),I=x(63491),M=x(37700),P=x(31434),o=x(90332),w=M.assert,S=x(72610),D=x(73507);function A(g){if(!(this instanceof A))return new A(g);"string"==typeof g&&(w(Object.prototype.hasOwnProperty.call(P,g),"Unknown curve "+g),g=P[g]),g instanceof P.PresetCurve&&(g={curve:g}),this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}q.exports=A,A.prototype.keyPair=function(p){return new S(this,p)},A.prototype.keyFromPrivate=function(p,b){return S.fromPrivate(this,p,b)},A.prototype.keyFromPublic=function(p,b){return S.fromPublic(this,p,b)},A.prototype.genKeyPair=function(p){p||(p={});for(var b=new I({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||o(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),y=this.n.byteLength(),m=this.n.sub(new B(2));;){var E=new B(b.generate(y));if(!(E.cmp(m)>0))return E.iaddn(1),this.keyFromPrivate(E)}},A.prototype._truncateToN=function(p,b){var y=8*p.byteLength()-this.n.bitLength();return y>0&&(p=p.ushrn(y)),!b&&p.cmp(this.n)>=0?p.sub(this.n):p},A.prototype.sign=function(p,b,y,m){"object"==typeof y&&(m=y,y=null),m||(m={}),b=this.keyFromPrivate(b,y),p=this._truncateToN(new B(p,16));for(var E=this.n.byteLength(),C=b.getPrivate().toArray("be",E),L=p.toArray("be",E),R=new I({hash:this.hash,entropy:C,nonce:L,pers:m.pers,persEnc:m.persEnc||"utf8"}),U=this.n.sub(new B(1)),O=0;;O++){var j=m.k?m.k(O):new B(R.generate(this.n.byteLength()));if(!((j=this._truncateToN(j,!0)).cmpn(1)<=0||j.cmp(U)>=0)){var K=this.g.mul(j);if(!K.isInfinity()){var Z=K.getX(),Q=Z.umod(this.n);if(0!==Q.cmpn(0)){var W=j.invm(this.n).mul(Q.mul(b.getPrivate()).iadd(p));if(0!==(W=W.umod(this.n)).cmpn(0)){var X=(K.getY().isOdd()?1:0)|(0!==Z.cmp(Q)?2:0);return m.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),X^=1),new D({r:Q,s:W,recoveryParam:X})}}}}}},A.prototype.verify=function(p,b,y,m){p=this._truncateToN(new B(p,16)),y=this.keyFromPublic(y,m);var E=(b=new D(b,"hex")).r,C=b.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||C.cmpn(1)<0||C.cmp(this.n)>=0)return!1;var O,L=C.invm(this.n),R=L.mul(p).umod(this.n),U=L.mul(E).umod(this.n);return this.curve._maxwellTrick?!(O=this.g.jmulAdd(R,y.getPublic(),U)).isInfinity()&&O.eqXToP(E):!(O=this.g.mulAdd(R,y.getPublic(),U)).isInfinity()&&0===O.getX().umod(this.n).cmp(E)},A.prototype.recoverPubKey=function(g,p,b,y){w((3&b)===b,"The recovery param is more than two bits"),p=new D(p,y);var m=this.n,E=new B(g),C=p.r,L=p.s,R=1&b,U=b>>1;if(C.cmp(this.curve.p.umod(this.curve.n))>=0&&U)throw new Error("Unable to find sencond key candinate");C=this.curve.pointFromX(U?C.add(this.curve.n):C,R);var O=p.r.invm(m),j=m.sub(E).mul(O).umod(m),K=L.mul(O).umod(m);return this.g.mulAdd(j,C,K)},A.prototype.getKeyRecoveryParam=function(g,p,b,y){if(null!==(p=new D(p,y)).recoveryParam)return p.recoveryParam;for(var m=0;m<4;m++){var E;try{E=this.recoverPubKey(g,p,m)}catch{continue}if(E.eq(b))return m}throw new Error("Unable to find valid recovery factor")}},72610:(q,k,x)=>{"use strict";var B=x(97965),M=x(37700).assert;function P(o,w){this.ec=o,this.priv=null,this.pub=null,w.priv&&this._importPrivate(w.priv,w.privEnc),w.pub&&this._importPublic(w.pub,w.pubEnc)}q.exports=P,P.fromPublic=function(w,S,D){return S instanceof P?S:new P(w,{pub:S,pubEnc:D})},P.fromPrivate=function(w,S,D){return S instanceof P?S:new P(w,{priv:S,privEnc:D})},P.prototype.validate=function(){var w=this.getPublic();return w.isInfinity()?{result:!1,reason:"Invalid public key"}:w.validate()?w.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},P.prototype.getPublic=function(w,S){return"string"==typeof w&&(S=w,w=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),S?this.pub.encode(S,w):this.pub},P.prototype.getPrivate=function(w){return"hex"===w?this.priv.toString(16,2):this.priv},P.prototype._importPrivate=function(w,S){this.priv=new B(w,S||16),this.priv=this.priv.umod(this.ec.curve.n)},P.prototype._importPublic=function(w,S){if(w.x||w.y)return"mont"===this.ec.curve.type?M(w.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&M(w.x&&w.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(w.x,w.y));this.pub=this.ec.curve.decodePoint(w,S)},P.prototype.derive=function(w){return w.validate()||M(w.validate(),"public point not validated"),w.mul(this.priv).getX()},P.prototype.sign=function(w,S,D){return this.ec.sign(w,this,S,D)},P.prototype.verify=function(w,S){return this.ec.verify(w,S,this)},P.prototype.inspect=function(){return""}},73507:(q,k,x)=>{"use strict";var B=x(97965),I=x(37700),M=I.assert;function P(A,g){if(A instanceof P)return A;this._importDER(A,g)||(M(A.r&&A.s,"Signature without r or s"),this.r=new B(A.r,16),this.s=new B(A.s,16),this.recoveryParam=void 0===A.recoveryParam?null:A.recoveryParam)}function o(){this.place=0}function w(A,g){var p=A[g.place++];if(!(128&p))return p;var b=15&p;if(0===b||b>4)return!1;for(var y=0,m=0,E=g.place;m>>=0;return!(y<=127)&&(g.place=E,y)}function S(A){for(var g=0,p=A.length-1;!A[g]&&!(128&A[g+1])&&g>>3);for(A.push(128|p);--p;)A.push(g>>>(p<<3)&255);A.push(g)}}q.exports=P,P.prototype._importDER=function(g,p){g=I.toArray(g,p);var b=new o;if(48!==g[b.place++])return!1;var y=w(g,b);if(!1===y||y+b.place!==g.length||2!==g[b.place++])return!1;var m=w(g,b);if(!1===m)return!1;var E=g.slice(b.place,m+b.place);if(b.place+=m,2!==g[b.place++])return!1;var C=w(g,b);if(!1===C||g.length!==C+b.place)return!1;var L=g.slice(b.place,C+b.place);if(0===E[0]){if(!(128&E[1]))return!1;E=E.slice(1)}if(0===L[0]){if(!(128&L[1]))return!1;L=L.slice(1)}return this.r=new B(E),this.s=new B(L),this.recoveryParam=null,!0},P.prototype.toDER=function(g){var p=this.r.toArray(),b=this.s.toArray();for(128&p[0]&&(p=[0].concat(p)),128&b[0]&&(b=[0].concat(b)),p=S(p),b=S(b);!(b[0]||128&b[1]);)b=b.slice(1);var y=[2];D(y,p.length),(y=y.concat(p)).push(2),D(y,b.length);var m=y.concat(b),E=[48];return D(E,m.length),E=E.concat(m),I.encode(E,g)}},42715:(q,k,x)=>{"use strict";var B=x(27246),I=x(31434),M=x(37700),P=M.assert,o=M.parseBytes,w=x(80511),S=x(6381);function D(A){if(P("ed25519"===A,"only tested with ed25519 so far"),!(this instanceof D))return new D(A);this.curve=A=I[A].curve,this.g=A.g,this.g.precompute(A.n.bitLength()+1),this.pointClass=A.point().constructor,this.encodingLength=Math.ceil(A.n.bitLength()/8),this.hash=B.sha512}q.exports=D,D.prototype.sign=function(g,p){g=o(g);var b=this.keyFromSecret(p),y=this.hashInt(b.messagePrefix(),g),m=this.g.mul(y),E=this.encodePoint(m),C=this.hashInt(E,b.pubBytes(),g).mul(b.priv()),L=y.add(C).umod(this.curve.n);return this.makeSignature({R:m,S:L,Rencoded:E})},D.prototype.verify=function(g,p,b){g=o(g),p=this.makeSignature(p);var y=this.keyFromPublic(b),m=this.hashInt(p.Rencoded(),y.pubBytes(),g),E=this.g.mul(p.S());return p.R().add(y.pub().mul(m)).eq(E)},D.prototype.hashInt=function(){for(var g=this.hash(),p=0;p{"use strict";var B=x(37700),I=B.assert,M=B.parseBytes,P=B.cachedProperty;function o(w,S){this.eddsa=w,this._secret=M(S.secret),w.isPoint(S.pub)?this._pub=S.pub:this._pubBytes=M(S.pub)}o.fromPublic=function(S,D){return D instanceof o?D:new o(S,{pub:D})},o.fromSecret=function(S,D){return D instanceof o?D:new o(S,{secret:D})},o.prototype.secret=function(){return this._secret},P(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),P(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),P(o,"privBytes",function(){var S=this.eddsa,D=this.hash(),A=S.encodingLength-1,g=D.slice(0,S.encodingLength);return g[0]&=248,g[A]&=127,g[A]|=64,g}),P(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),P(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),P(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(S){return I(this._secret,"KeyPair can only verify"),this.eddsa.sign(S,this)},o.prototype.verify=function(S,D){return this.eddsa.verify(S,D,this)},o.prototype.getSecret=function(S){return I(this._secret,"KeyPair is public only"),B.encode(this.secret(),S)},o.prototype.getPublic=function(S){return B.encode(this.pubBytes(),S)},q.exports=o},6381:(q,k,x)=>{"use strict";var B=x(97965),I=x(37700),M=I.assert,P=I.cachedProperty,o=I.parseBytes;function w(S,D){this.eddsa=S,"object"!=typeof D&&(D=o(D)),Array.isArray(D)&&(D={R:D.slice(0,S.encodingLength),S:D.slice(S.encodingLength)}),M(D.R&&D.S,"Signature without R or S"),S.isPoint(D.R)&&(this._R=D.R),D.S instanceof B&&(this._S=D.S),this._Rencoded=Array.isArray(D.R)?D.R:D.Rencoded,this._Sencoded=Array.isArray(D.S)?D.S:D.Sencoded}P(w,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),P(w,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),P(w,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),P(w,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),w.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},w.prototype.toHex=function(){return I.encode(this.toBytes(),"hex").toUpperCase()},q.exports=w},66694:q=>{q.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},37700:(q,k,x)=>{"use strict";var B=k,I=x(97965),M=x(74425),P=x(98119);B.assert=M,B.toArray=P.toArray,B.zero2=P.zero2,B.toHex=P.toHex,B.encode=P.encode,B.getNAF=function o(g,p,b){var y=new Array(Math.max(g.bitLength(),b)+1);y.fill(0);for(var m=1<(m>>1)-1?(m>>1)-R:R):L=0,y[C]=L,E.iushrn(1)}return y},B.getJSF=function w(g,p){var b=[[],[]];g=g.clone(),p=p.clone();for(var E,y=0,m=0;g.cmpn(-y)>0||p.cmpn(-m)>0;){var R,U,C=g.andln(3)+y&3,L=p.andln(3)+m&3;3===C&&(C=-1),3===L&&(L=-1),R=0==(1&C)?0:3!=(E=g.andln(7)+y&7)&&5!==E||2!==L?C:-C,b[0].push(R),U=0==(1&L)?0:3!=(E=p.andln(7)+m&7)&&5!==E||2!==C?L:-L,b[1].push(U),2*y===R+1&&(y=1-y),2*m===U+1&&(m=1-m),g.iushrn(1),p.iushrn(1)}return b},B.cachedProperty=function S(g,p,b){var y="_"+p;g.prototype[p]=function(){return void 0!==this[y]?this[y]:this[y]=b.call(this)}},B.parseBytes=function D(g){return"string"==typeof g?B.toArray(g,"hex"):g},B.intFromLE=function A(g){return new I(g,"hex","le")}},97965:function(q,k,x){!function(B,I){"use strict";function M(_,t){if(!_)throw new Error(t||"Assertion failed")}function P(_,t){_.super_=t;var a=function(){};a.prototype=t.prototype,_.prototype=new a,_.prototype.constructor=_}function o(_,t,a){if(o.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,null!==_&&(("le"===t||"be"===t)&&(a=t,t=10),this._init(_||0,t||10,a||"be"))}var w;"object"==typeof B?B.exports=o:I.BN=o,o.BN=o,o.wordSize=26;try{w=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:x(91138).Buffer}catch{}function S(_,t){var a=_.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function D(_,t,a){var s=S(_,a);return a-1>=t&&(s|=S(_,a-1)<<4),s}function A(_,t,a,s){for(var e=0,i=Math.min(_.length,a),u=t;u=49?d-49+10:d>=17?d-17+10:d}return e}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,a){return t.cmp(a)>0?t:a},o.min=function(t,a){return t.cmp(a)<0?t:a},o.prototype._init=function(t,a,s){if("number"==typeof t)return this._initNumber(t,a,s);if("object"==typeof t)return this._initArray(t,a,s);"hex"===a&&(a=16),M(a===(0|a)&&a>=2&&a<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e=0;e-=3)this.words[i]|=(u=t[e]|t[e-1]<<8|t[e-2]<<16)<>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);else if("le"===s)for(e=0,i=0;e>>26-d&67108863,(d+=24)>=26&&(d-=26,i++);return this.strip()},o.prototype._parseHex=function(t,a,s){this.length=Math.ceil((t.length-a)/6),this.words=new Array(this.length);for(var e=0;e=a;e-=2)d=D(t,a,e)<=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;else for(e=(t.length-a)%2==0?a+1:a;e=18?(i-=18,this.words[u+=1]|=d>>>26):i+=8;this.strip()},o.prototype._parseBase=function(t,a,s){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=a)e++;e--,i=i/a|0;for(var u=t.length-s,d=u%e,c=Math.min(u,u-d)+s,r=0,h=s;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(_,t,a){a.negative=t.negative^_.negative;var s=_.length+t.length|0;a.length=s,s=s-1|0;var e=0|_.words[0],i=0|t.words[0],u=e*i,c=u/67108864|0;a.words[0]=67108863&u;for(var r=1;r>>26,F=67108863&c,T=Math.min(r,t.length-1),H=Math.max(0,r-_.length+1);H<=T;H++)h+=(u=(e=0|_.words[r-H|0])*(i=0|t.words[H])+F)/67108864|0,F=67108863&u;a.words[r]=0|F,c=0|h}return 0!==c?a.words[r]=0|c:a.length--,a.strip()}o.prototype.toString=function(t,a){var s;if(a=0|a||1,16===(t=t||10)||"hex"===t){s="";for(var e=0,i=0,u=0;u>>24-e&16777215)||u!==this.length-1?g[6-c.length]+c+s:c+s,(e+=2)>=26&&(e-=26,u--)}for(0!==i&&(s=i.toString(16)+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(t===(0|t)&&t>=2&&t<=36){var r=p[t],h=b[t];s="";var F=this.clone();for(F.negative=0;!F.isZero();){var T=F.modn(h).toString(t);s=(F=F.idivn(h)).isZero()?T+s:g[r-T.length]+T+s}for(this.isZero()&&(s="0"+s);s.length%a!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,a){return M(typeof w<"u"),this.toArrayLike(w,t,a)},o.prototype.toArray=function(t,a){return this.toArrayLike(Array,t,a)},o.prototype.toArrayLike=function(t,a,s){var e=this.byteLength(),i=s||Math.max(1,e);M(e<=i,"byte array longer than desired length"),M(i>0,"Requested array length <= 0"),this.strip();var c,r,u="le"===a,d=new t(i),h=this.clone();if(u){for(r=0;!h.isZero();r++)c=h.andln(255),h.iushrn(8),d[r]=c;for(;r=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},o.prototype._zeroBits=function(t){if(0===t)return 26;var a=t,s=0;return 0==(8191&a)&&(s+=13,a>>>=13),0==(127&a)&&(s+=7,a>>>=7),0==(15&a)&&(s+=4,a>>>=4),0==(3&a)&&(s+=2,a>>>=2),0==(1&a)&&s++,s},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,a=0;at.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var a;a=this.length>t.length?t:this;for(var s=0;st.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var a,s;this.length>t.length?(a=this,s=t):(a=t,s=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){M("number"==typeof t&&t>=0);var a=0|Math.ceil(t/26),s=t%26;this._expand(a),s>0&&a--;for(var e=0;e0&&(this.words[e]=~this.words[e]&67108863>>26-s),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,a){M("number"==typeof t&&t>=0);var s=t/26|0,e=t%26;return this._expand(s+1),this.words[s]=a?this.words[s]|1<t.length?(s=this,e=t):(s=t,e=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=s.length,0!==i)this.words[this.length]=i,this.length++;else if(s!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var a=this.iadd(t);return t.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,i,s=this.cmp(t);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(e=this,i=t):(e=t,i=this);for(var u=0,d=0;d>26,this.words[d]=67108863&a;for(;0!==u&&d>26,this.words[d]=67108863&a;if(0===u&&d>>13,ae=0|e[1],Ae=8191&ae,fe=ae>>>13,Ee=0|e[2],ee=8191&Ee,se=Ee>>>13,ze=0|e[3],ye=8191&ze,ue=ze>>>13,je=0|e[4],Ne=8191&je,Ye=je>>>13,Et=0|e[5],ot=8191&Et,lt=Et>>>13,Lt=0|e[6],ct=8191&Lt,He=Lt>>>13,Ue=0|e[7],Se=8191&Ue,Ve=Ue>>>13,Le=0|e[8],Y=8191&Le,z=Le>>>13,G=0|e[9],re=8191&G,ce=G>>>13,Ge=0|i[0],De=8191&Ge,we=Ge>>>13,Oe=0|i[1],xe=8191&Oe,te=Oe>>>13,le=0|i[2],me=8191&le,Pe=le>>>13,st=0|i[3],tt=8191&st,et=st>>>13,gt=0|i[4],Fe=8191>,ne=gt>>>13,yt=0|i[5],rt=8191&yt,$=yt>>>13,We=0|i[6],Be=8191&We,Ze=We>>>13,pe=0|i[7],ve=8191&pe,be=pe>>>13,de=0|i[8],Re=8191&de,Je=de>>>13,vt=0|i[9],it=8191&vt,at=vt>>>13;s.negative=t.negative^a.negative,s.length=19;var It=(d+(c=Math.imul(T,De))|0)+((8191&(r=(r=Math.imul(T,we))+Math.imul(H,De)|0))<<13)|0;d=((h=Math.imul(H,we))+(r>>>13)|0)+(It>>>26)|0,It&=67108863,c=Math.imul(Ae,De),r=(r=Math.imul(Ae,we))+Math.imul(fe,De)|0,h=Math.imul(fe,we);var At=(d+(c=c+Math.imul(T,xe)|0)|0)+((8191&(r=(r=r+Math.imul(T,te)|0)+Math.imul(H,xe)|0))<<13)|0;d=((h=h+Math.imul(H,te)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,c=Math.imul(ee,De),r=(r=Math.imul(ee,we))+Math.imul(se,De)|0,h=Math.imul(se,we),c=c+Math.imul(Ae,xe)|0,r=(r=r+Math.imul(Ae,te)|0)+Math.imul(fe,xe)|0,h=h+Math.imul(fe,te)|0;var Rt=(d+(c=c+Math.imul(T,me)|0)|0)+((8191&(r=(r=r+Math.imul(T,Pe)|0)+Math.imul(H,me)|0))<<13)|0;d=((h=h+Math.imul(H,Pe)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c=Math.imul(ye,De),r=(r=Math.imul(ye,we))+Math.imul(ue,De)|0,h=Math.imul(ue,we),c=c+Math.imul(ee,xe)|0,r=(r=r+Math.imul(ee,te)|0)+Math.imul(se,xe)|0,h=h+Math.imul(se,te)|0,c=c+Math.imul(Ae,me)|0,r=(r=r+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0,h=h+Math.imul(fe,Pe)|0;var Pt=(d+(c=c+Math.imul(T,tt)|0)|0)+((8191&(r=(r=r+Math.imul(T,et)|0)+Math.imul(H,tt)|0))<<13)|0;d=((h=h+Math.imul(H,et)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,c=Math.imul(Ne,De),r=(r=Math.imul(Ne,we))+Math.imul(Ye,De)|0,h=Math.imul(Ye,we),c=c+Math.imul(ye,xe)|0,r=(r=r+Math.imul(ye,te)|0)+Math.imul(ue,xe)|0,h=h+Math.imul(ue,te)|0,c=c+Math.imul(ee,me)|0,r=(r=r+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,h=h+Math.imul(se,Pe)|0,c=c+Math.imul(Ae,tt)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0,h=h+Math.imul(fe,et)|0;var Vt=(d+(c=c+Math.imul(T,Fe)|0)|0)+((8191&(r=(r=r+Math.imul(T,ne)|0)+Math.imul(H,Fe)|0))<<13)|0;d=((h=h+Math.imul(H,ne)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,c=Math.imul(ot,De),r=(r=Math.imul(ot,we))+Math.imul(lt,De)|0,h=Math.imul(lt,we),c=c+Math.imul(Ne,xe)|0,r=(r=r+Math.imul(Ne,te)|0)+Math.imul(Ye,xe)|0,h=h+Math.imul(Ye,te)|0,c=c+Math.imul(ye,me)|0,r=(r=r+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,h=h+Math.imul(ue,Pe)|0,c=c+Math.imul(ee,tt)|0,r=(r=r+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,h=h+Math.imul(se,et)|0,c=c+Math.imul(Ae,Fe)|0,r=(r=r+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0,h=h+Math.imul(fe,ne)|0;var er=(d+(c=c+Math.imul(T,rt)|0)|0)+((8191&(r=(r=r+Math.imul(T,$)|0)+Math.imul(H,rt)|0))<<13)|0;d=((h=h+Math.imul(H,$)|0)+(r>>>13)|0)+(er>>>26)|0,er&=67108863,c=Math.imul(ct,De),r=(r=Math.imul(ct,we))+Math.imul(He,De)|0,h=Math.imul(He,we),c=c+Math.imul(ot,xe)|0,r=(r=r+Math.imul(ot,te)|0)+Math.imul(lt,xe)|0,h=h+Math.imul(lt,te)|0,c=c+Math.imul(Ne,me)|0,r=(r=r+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,h=h+Math.imul(Ye,Pe)|0,c=c+Math.imul(ye,tt)|0,r=(r=r+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,h=h+Math.imul(ue,et)|0,c=c+Math.imul(ee,Fe)|0,r=(r=r+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,h=h+Math.imul(se,ne)|0,c=c+Math.imul(Ae,rt)|0,r=(r=r+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0,h=h+Math.imul(fe,$)|0;var nr=(d+(c=c+Math.imul(T,Be)|0)|0)+((8191&(r=(r=r+Math.imul(T,Ze)|0)+Math.imul(H,Be)|0))<<13)|0;d=((h=h+Math.imul(H,Ze)|0)+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,c=Math.imul(Se,De),r=(r=Math.imul(Se,we))+Math.imul(Ve,De)|0,h=Math.imul(Ve,we),c=c+Math.imul(ct,xe)|0,r=(r=r+Math.imul(ct,te)|0)+Math.imul(He,xe)|0,h=h+Math.imul(He,te)|0,c=c+Math.imul(ot,me)|0,r=(r=r+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,h=h+Math.imul(lt,Pe)|0,c=c+Math.imul(Ne,tt)|0,r=(r=r+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,h=h+Math.imul(Ye,et)|0,c=c+Math.imul(ye,Fe)|0,r=(r=r+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,h=h+Math.imul(ue,ne)|0,c=c+Math.imul(ee,rt)|0,r=(r=r+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,h=h+Math.imul(se,$)|0,c=c+Math.imul(Ae,Be)|0,r=(r=r+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0,h=h+Math.imul(fe,Ze)|0;var tr=(d+(c=c+Math.imul(T,ve)|0)|0)+((8191&(r=(r=r+Math.imul(T,be)|0)+Math.imul(H,ve)|0))<<13)|0;d=((h=h+Math.imul(H,be)|0)+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,c=Math.imul(Y,De),r=(r=Math.imul(Y,we))+Math.imul(z,De)|0,h=Math.imul(z,we),c=c+Math.imul(Se,xe)|0,r=(r=r+Math.imul(Se,te)|0)+Math.imul(Ve,xe)|0,h=h+Math.imul(Ve,te)|0,c=c+Math.imul(ct,me)|0,r=(r=r+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,h=h+Math.imul(He,Pe)|0,c=c+Math.imul(ot,tt)|0,r=(r=r+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,h=h+Math.imul(lt,et)|0,c=c+Math.imul(Ne,Fe)|0,r=(r=r+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,h=h+Math.imul(Ye,ne)|0,c=c+Math.imul(ye,rt)|0,r=(r=r+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,h=h+Math.imul(ue,$)|0,c=c+Math.imul(ee,Be)|0,r=(r=r+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,h=h+Math.imul(se,Ze)|0,c=c+Math.imul(Ae,ve)|0,r=(r=r+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0,h=h+Math.imul(fe,be)|0;var Wt=(d+(c=c+Math.imul(T,Re)|0)|0)+((8191&(r=(r=r+Math.imul(T,Je)|0)+Math.imul(H,Re)|0))<<13)|0;d=((h=h+Math.imul(H,Je)|0)+(r>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,c=Math.imul(re,De),r=(r=Math.imul(re,we))+Math.imul(ce,De)|0,h=Math.imul(ce,we),c=c+Math.imul(Y,xe)|0,r=(r=r+Math.imul(Y,te)|0)+Math.imul(z,xe)|0,h=h+Math.imul(z,te)|0,c=c+Math.imul(Se,me)|0,r=(r=r+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,h=h+Math.imul(Ve,Pe)|0,c=c+Math.imul(ct,tt)|0,r=(r=r+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,h=h+Math.imul(He,et)|0,c=c+Math.imul(ot,Fe)|0,r=(r=r+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,h=h+Math.imul(lt,ne)|0,c=c+Math.imul(Ne,rt)|0,r=(r=r+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,h=h+Math.imul(Ye,$)|0,c=c+Math.imul(ye,Be)|0,r=(r=r+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,h=h+Math.imul(ue,Ze)|0,c=c+Math.imul(ee,ve)|0,r=(r=r+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,h=h+Math.imul(se,be)|0,c=c+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0,h=h+Math.imul(fe,Je)|0;var Yt=(d+(c=c+Math.imul(T,it)|0)|0)+((8191&(r=(r=r+Math.imul(T,at)|0)+Math.imul(H,it)|0))<<13)|0;d=((h=h+Math.imul(H,at)|0)+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,c=Math.imul(re,xe),r=(r=Math.imul(re,te))+Math.imul(ce,xe)|0,h=Math.imul(ce,te),c=c+Math.imul(Y,me)|0,r=(r=r+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,h=h+Math.imul(z,Pe)|0,c=c+Math.imul(Se,tt)|0,r=(r=r+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,h=h+Math.imul(Ve,et)|0,c=c+Math.imul(ct,Fe)|0,r=(r=r+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,h=h+Math.imul(He,ne)|0,c=c+Math.imul(ot,rt)|0,r=(r=r+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,h=h+Math.imul(lt,$)|0,c=c+Math.imul(Ne,Be)|0,r=(r=r+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,h=h+Math.imul(Ye,Ze)|0,c=c+Math.imul(ye,ve)|0,r=(r=r+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,h=h+Math.imul(ue,be)|0,c=c+Math.imul(ee,Re)|0,r=(r=r+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,h=h+Math.imul(se,Je)|0;var Ht=(d+(c=c+Math.imul(Ae,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;d=((h=h+Math.imul(fe,at)|0)+(r>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,c=Math.imul(re,me),r=(r=Math.imul(re,Pe))+Math.imul(ce,me)|0,h=Math.imul(ce,Pe),c=c+Math.imul(Y,tt)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,h=h+Math.imul(z,et)|0,c=c+Math.imul(Se,Fe)|0,r=(r=r+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,h=h+Math.imul(Ve,ne)|0,c=c+Math.imul(ct,rt)|0,r=(r=r+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,h=h+Math.imul(He,$)|0,c=c+Math.imul(ot,Be)|0,r=(r=r+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,h=h+Math.imul(lt,Ze)|0,c=c+Math.imul(Ne,ve)|0,r=(r=r+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,h=h+Math.imul(Ye,be)|0,c=c+Math.imul(ye,Re)|0,r=(r=r+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,h=h+Math.imul(ue,Je)|0;var Bt=(d+(c=c+Math.imul(ee,it)|0)|0)+((8191&(r=(r=r+Math.imul(ee,at)|0)+Math.imul(se,it)|0))<<13)|0;d=((h=h+Math.imul(se,at)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c=Math.imul(re,tt),r=(r=Math.imul(re,et))+Math.imul(ce,tt)|0,h=Math.imul(ce,et),c=c+Math.imul(Y,Fe)|0,r=(r=r+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,h=h+Math.imul(z,ne)|0,c=c+Math.imul(Se,rt)|0,r=(r=r+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,h=h+Math.imul(Ve,$)|0,c=c+Math.imul(ct,Be)|0,r=(r=r+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,h=h+Math.imul(He,Ze)|0,c=c+Math.imul(ot,ve)|0,r=(r=r+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,h=h+Math.imul(lt,be)|0,c=c+Math.imul(Ne,Re)|0,r=(r=r+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,h=h+Math.imul(Ye,Je)|0;var jt=(d+(c=c+Math.imul(ye,it)|0)|0)+((8191&(r=(r=r+Math.imul(ye,at)|0)+Math.imul(ue,it)|0))<<13)|0;d=((h=h+Math.imul(ue,at)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c=Math.imul(re,Fe),r=(r=Math.imul(re,ne))+Math.imul(ce,Fe)|0,h=Math.imul(ce,ne),c=c+Math.imul(Y,rt)|0,r=(r=r+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,h=h+Math.imul(z,$)|0,c=c+Math.imul(Se,Be)|0,r=(r=r+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,h=h+Math.imul(Ve,Ze)|0,c=c+Math.imul(ct,ve)|0,r=(r=r+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,h=h+Math.imul(He,be)|0,c=c+Math.imul(ot,Re)|0,r=(r=r+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,h=h+Math.imul(lt,Je)|0;var Gt=(d+(c=c+Math.imul(Ne,it)|0)|0)+((8191&(r=(r=r+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0))<<13)|0;d=((h=h+Math.imul(Ye,at)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,c=Math.imul(re,rt),r=(r=Math.imul(re,$))+Math.imul(ce,rt)|0,h=Math.imul(ce,$),c=c+Math.imul(Y,Be)|0,r=(r=r+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,h=h+Math.imul(z,Ze)|0,c=c+Math.imul(Se,ve)|0,r=(r=r+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,h=h+Math.imul(Ve,be)|0,c=c+Math.imul(ct,Re)|0,r=(r=r+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,h=h+Math.imul(He,Je)|0;var Zt=(d+(c=c+Math.imul(ot,it)|0)|0)+((8191&(r=(r=r+Math.imul(ot,at)|0)+Math.imul(lt,it)|0))<<13)|0;d=((h=h+Math.imul(lt,at)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,c=Math.imul(re,Be),r=(r=Math.imul(re,Ze))+Math.imul(ce,Be)|0,h=Math.imul(ce,Ze),c=c+Math.imul(Y,ve)|0,r=(r=r+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,h=h+Math.imul(z,be)|0,c=c+Math.imul(Se,Re)|0,r=(r=r+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,h=h+Math.imul(Ve,Je)|0;var Jt=(d+(c=c+Math.imul(ct,it)|0)|0)+((8191&(r=(r=r+Math.imul(ct,at)|0)+Math.imul(He,it)|0))<<13)|0;d=((h=h+Math.imul(He,at)|0)+(r>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,c=Math.imul(re,ve),r=(r=Math.imul(re,be))+Math.imul(ce,ve)|0,h=Math.imul(ce,be),c=c+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,h=h+Math.imul(z,Je)|0;var zt=(d+(c=c+Math.imul(Se,it)|0)|0)+((8191&(r=(r=r+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0))<<13)|0;d=((h=h+Math.imul(Ve,at)|0)+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,c=Math.imul(re,Re),r=(r=Math.imul(re,Je))+Math.imul(ce,Re)|0,h=Math.imul(ce,Je);var _t=(d+(c=c+Math.imul(Y,it)|0)|0)+((8191&(r=(r=r+Math.imul(Y,at)|0)+Math.imul(z,it)|0))<<13)|0;d=((h=h+Math.imul(z,at)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863;var St=(d+(c=Math.imul(re,it))|0)+((8191&(r=(r=Math.imul(re,at))+Math.imul(ce,it)|0))<<13)|0;return d=((h=Math.imul(ce,at))+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u[0]=It,u[1]=At,u[2]=Rt,u[3]=Pt,u[4]=Vt,u[5]=er,u[6]=nr,u[7]=tr,u[8]=Wt,u[9]=Yt,u[10]=Ht,u[11]=Bt,u[12]=jt,u[13]=Gt,u[14]=Zt,u[15]=Jt,u[16]=zt,u[17]=_t,u[18]=St,0!==d&&(u[19]=d,s.length++),s};function L(_,t,a){return(new R).mulp(_,t,a)}function R(_,t){this.x=_,this.y=t}Math.imul||(E=m),o.prototype.mulTo=function(t,a){var s,e=this.length+t.length;return s=10===this.length&&10===t.length?E(this,t,a):e<63?m(this,t,a):e<1024?function C(_,t,a){a.negative=t.negative^_.negative,a.length=_.length+t.length;for(var s=0,e=0,i=0;i>>26)|0)>>>26,u&=67108863}a.words[i]=d,s=u,u=e}return 0!==s?a.words[i]=s:a.length--,a.strip()}(this,t,a):L(this,t,a),s},R.prototype.makeRBT=function(t){for(var a=new Array(t),s=o.prototype._countBits(t)-1,e=0;e>=1;return e},R.prototype.permute=function(t,a,s,e,i,u){for(var d=0;d>>=1)i++;return 1<>>=13),i>>>=13;for(u=2*a;u>=26,a+=e/67108864|0,a+=i>>>26,this.words[s]=67108863&i}return 0!==a&&(this.words[s]=a,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var a=function y(_){for(var t=new Array(_.bitLength()),a=0;a>>e}return t}(t);if(0===a.length)return new o(1);for(var s=this,e=0;e=0);var i,a=t%26,s=(t-a)/26,e=67108863>>>26-a<<26-a;if(0!==a){var u=0;for(i=0;i>>26-a}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),e=a?(a-a%26)/26:0;var i=t%26,u=Math.min((t-i)/26,this.length),d=67108863^67108863>>>i<u)for(this.length-=u,r=0;r=0&&(0!==h||r>=e);r--){var F=0|this.words[r];this.words[r]=h<<26-i|F>>>i,h=F&d}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,a,s){return M(0===this.negative),this.iushrn(t,a,s)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){M("number"==typeof t&&t>=0);var a=t%26,s=(t-a)/26;return!(this.length<=s||!(this.words[s]&1<=0);var a=t%26,s=(t-a)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=s?this:(0!==a&&s++,this.length=Math.min(s,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(t){if(M("number"==typeof t),M(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(c/67108864|0),this.words[i+s]=67108863&u}for(;i>26,this.words[i+s]=67108863&u;if(0===d)return this.strip();for(M(-1===d),d=0,i=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,a){var s,e=this.clone(),i=t,u=0|i.words[i.length-1];0!=(s=26-this._countBits(u))&&(i=i.ushln(s),e.iushln(s),u=0|i.words[i.length-1]);var r,c=e.length-i.length;if("mod"!==a){(r=new o(null)).length=c+1,r.words=new Array(r.length);for(var h=0;h=0;T--){var H=67108864*(0|e.words[i.length+T])+(0|e.words[i.length+T-1]);for(H=Math.min(H/u|0,67108863),e._ishlnsubmul(i,H,T);0!==e.negative;)H--,e.negative=0,e._ishlnsubmul(i,1,T),e.isZero()||(e.negative^=1);r&&(r.words[T]=H)}return r&&r.strip(),e.strip(),"div"!==a&&0!==s&&e.iushrn(s),{div:r||null,mod:e}},o.prototype.divmod=function(t,a,s){return M(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,a),"mod"!==a&&(e=u.div.neg()),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.iadd(t)),{div:e,mod:i}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),a),"mod"!==a&&(e=u.div.neg()),{div:e,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),a),"div"!==a&&(i=u.mod.neg(),s&&0!==i.negative&&i.isub(t)),{div:u.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===a?{div:this.divn(t.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,a);var e,i,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var a=this.divmod(t);if(a.mod.isZero())return a.div;var s=0!==a.div.negative?a.mod.isub(t):a.mod,e=t.ushrn(1),i=t.andln(1),u=s.cmp(e);return u<0||1===i&&0===u?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(t){M(t<=67108863);for(var a=(1<<26)%t,s=0,e=this.length-1;e>=0;e--)s=(a*s+(0|this.words[e]))%t;return s},o.prototype.idivn=function(t){M(t<=67108863);for(var a=0,s=this.length-1;s>=0;s--){var e=(0|this.words[s])+67108864*a;this.words[s]=e/t|0,a=e%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){M(0===t.negative),M(!t.isZero());var a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=new o(0),d=new o(1),c=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++c;for(var r=s.clone(),h=a.clone();!a.isZero();){for(var F=0,T=1;0==(a.words[0]&T)&&F<26;++F,T<<=1);if(F>0)for(a.iushrn(F);F-- >0;)(e.isOdd()||i.isOdd())&&(e.iadd(r),i.isub(h)),e.iushrn(1),i.iushrn(1);for(var H=0,ae=1;0==(s.words[0]&ae)&&H<26;++H,ae<<=1);if(H>0)for(s.iushrn(H);H-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(r),d.isub(h)),u.iushrn(1),d.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(u),i.isub(d)):(s.isub(a),u.isub(e),d.isub(i))}return{a:u,b:d,gcd:s.iushln(c)}},o.prototype._invmp=function(t){M(0===t.negative),M(!t.isZero());var F,a=this,s=t.clone();a=0!==a.negative?a.umod(t):a.clone();for(var e=new o(1),i=new o(0),u=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var d=0,c=1;0==(a.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(a.iushrn(d);d-- >0;)e.isOdd()&&e.iadd(u),e.iushrn(1);for(var r=0,h=1;0==(s.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(s.iushrn(r);r-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);a.cmp(s)>=0?(a.isub(s),e.isub(i)):(s.isub(a),i.isub(e))}return(F=0===a.cmpn(1)?e:i).cmpn(0)<0&&F.iadd(t),F},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),s=t.clone();a.negative=0,s.negative=0;for(var e=0;a.isEven()&&s.isEven();e++)a.iushrn(1),s.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var i=a.cmp(s);if(i<0){var u=a;a=s,s=u}else if(0===i||0===s.cmpn(1))break;a.isub(s)}return s.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){M("number"==typeof t);var a=t%26,s=(t-a)/26,e=1<>>26,this.words[u]=d&=67108863}return 0!==i&&(this.words[u]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var s,a=t<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)s=1;else{a&&(t=-t),M(t<=67108863,"Number is too big");var e=0|this.words[0];s=e===t?0:et.length)return 1;if(this.length=0;s--){var e=0|this.words[s],i=0|t.words[s];if(e!==i){ei&&(a=1);break}}return a},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new W(t)},o.prototype.toRed=function(t){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return M(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return M(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var U={k256:null,p224:null,p192:null,p25519:null};function O(_,t){this.name=_,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function K(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Q(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(_){if("string"==typeof _){var t=o._prime(_);this.m=t.p,this.prime=t}else M(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function X(_){W.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},O.prototype.ireduce=function(t){var s,a=t;do{this.split(a,this.tmp),s=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(s>this.n);var e=s0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},O.prototype.split=function(t,a){t.iushrn(this.n,0,a)},O.prototype.imulK=function(t){return t.imul(this.k)},P(j,O),j.prototype.split=function(t,a){for(var s=4194303,e=Math.min(t.length,9),i=0;i>>22,u=d}t.words[i-10]=u>>>=22,t.length-=0===u&&t.length>10?10:9},j.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var a=0,s=0;s>>=26,t.words[s]=i,a=e}return 0!==a&&(t.words[t.length++]=a),t},o._prime=function(t){if(U[t])return U[t];var a;if("k256"===t)a=new j;else if("p224"===t)a=new K;else if("p192"===t)a=new Z;else{if("p25519"!==t)throw new Error("Unknown prime "+t);a=new Q}return U[t]=a,a},W.prototype._verify1=function(t){M(0===t.negative,"red works only with positives"),M(t.red,"red works only with red numbers")},W.prototype._verify2=function(t,a){M(0==(t.negative|a.negative),"red works only with positives"),M(t.red&&t.red===a.red,"red works only with red numbers")},W.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},W.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},W.prototype.add=function(t,a){this._verify2(t,a);var s=t.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},W.prototype.iadd=function(t,a){this._verify2(t,a);var s=t.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},W.prototype.sub=function(t,a){this._verify2(t,a);var s=t.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},W.prototype.isub=function(t,a){this._verify2(t,a);var s=t.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},W.prototype.shl=function(t,a){return this._verify1(t),this.imod(t.ushln(a))},W.prototype.imul=function(t,a){return this._verify2(t,a),this.imod(t.imul(a))},W.prototype.mul=function(t,a){return this._verify2(t,a),this.imod(t.mul(a))},W.prototype.isqr=function(t){return this.imul(t,t.clone())},W.prototype.sqr=function(t){return this.mul(t,t)},W.prototype.sqrt=function(t){if(t.isZero())return t.clone();var a=this.m.andln(3);if(M(a%2==1),3===a){var s=this.m.add(new o(1)).iushrn(2);return this.pow(t,s)}for(var e=this.m.subn(1),i=0;!e.isZero()&&0===e.andln(1);)i++,e.iushrn(1);M(!e.isZero());var u=new o(1).toRed(this),d=u.redNeg(),c=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,c).cmp(d);)r.redIAdd(d);for(var h=this.pow(r,e),F=this.pow(t,e.addn(1).iushrn(1)),T=this.pow(t,e),H=i;0!==T.cmp(u);){for(var ae=T,Ae=0;0!==ae.cmp(u);Ae++)ae=ae.redSqr();M(Ae=0;i--){for(var h=a.words[i],F=r-1;F>=0;F--){var T=h>>F&1;u!==e[0]&&(u=this.sqr(u)),0!==T||0!==d?(d<<=1,d|=T,(4==++c||0===i&&0===F)&&(u=this.mul(u,e[d]),c=0,d=0)):c=0}r=26}return u},W.prototype.convertTo=function(t){var a=t.umod(this.m);return a===t?a.clone():a},W.prototype.convertFrom=function(t){var a=t.clone();return a.red=null,a},o.mont=function(t){return new X(t)},P(X,W),X.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},X.prototype.convertFrom=function(t){var a=this.imod(t.mul(this.rinv));return a.red=null,a},X.prototype.imul=function(t,a){if(t.isZero()||a.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.mul=function(t,a){if(t.isZero()||a.isZero())return new o(0)._forceRed(this);var s=t.mul(a),e=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=s.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},X.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},65484:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.PrivateKey=void 0;var B=x(88711),I=x(67336),M=function(){function P(o,w){this.key=o,this.ec=w}return P.fromElliptic=function(o,w,S){return S||(S=I.constructElliptic(w)),new P({type:w,data:o.getPrivate().toArrayLike(Buffer,"be",32)},S)},P.fromString=function(o,w){var S=B.stringToPrivateKey(o);return w||(w=I.constructElliptic(S.type)),new P(S,w)},P.prototype.toElliptic=function(){return this.ec.keyFromPrivate(this.key.data)},P.prototype.toLegacyString=function(){return B.privateKeyToLegacyString(this.key)},P.prototype.toString=function(){return B.privateKeyToString(this.key)},P.prototype.getType=function(){return this.key.type},P.prototype.getPublicKey=function(){var o=this.toElliptic();return I.PublicKey.fromElliptic(o,this.getType(),this.ec)},P.prototype.sign=function(o,w,S){var D=this;void 0===w&&(w=!0),void 0===S&&(S="utf8"),w&&("string"==typeof o&&(o=Buffer.from(o,S)),o=this.ec.hash().update(o).digest());var g,y,A=0,b=function(y){var E=D.toElliptic().sign(o,y);return I.Signature.fromElliptic(E,D.getType(),D.ec)};if(this.key.type===B.KeyType.k1)do{g=b({canonical:!0,pers:[++A]})}while(128&(y=g.toBinary())[1]||0===y[1]&&!(128&y[2])||128&y[33]||!(0!==y[33]||128&y[34]));else g=b({canonical:!0});return g},P.prototype.isValid=function(){try{return this.toElliptic().validate().result}catch{return!1}},P}();k.PrivateKey=M},4820:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.PublicKey=void 0;var B=x(88711),I=x(67336),M=function(){function P(o,w){this.key=o,this.ec=w}return P.fromString=function(o,w){var S=B.stringToPublicKey(o);return w||(w=I.constructElliptic(S.type)),new P(S,w)},P.fromElliptic=function(o,w,S){var D=o.getPublic().getX().toArray("be",32),A=o.getPublic().getY().toArray("be",32);return S||(S=I.constructElliptic(w)),new P({type:w,data:new Uint8Array([1&A[31]?3:2].concat(D))},S)},P.prototype.toString=function(){return B.publicKeyToString(this.key)},P.prototype.toLegacyString=function(){return B.publicKeyToLegacyString(this.key)},P.prototype.toElliptic=function(){return this.ec.keyPair({pub:Buffer.from(this.key.data)})},P.prototype.getType=function(){return this.key.type},P.prototype.isValid=function(){try{return this.toElliptic().validate().result}catch{return!1}},P}();k.PublicKey=M},40602:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Signature=void 0;var B=x(12652),I=x(88711),M=x(67336),P=function(){function o(w,S){this.signature=w,this.ec=S}return o.fromString=function(w,S){var D=I.stringToSignature(w);return S||(S=M.constructElliptic(D.type)),new o(D,S)},o.fromElliptic=function(w,S,D){var p,A=w.r.toArray("be",32),g=w.s.toArray("be",32);S===I.KeyType.k1||S===I.KeyType.r1?(p=w.recoveryParam+27,w.recoveryParam<=3&&(p+=4)):S===I.KeyType.wa&&(p=w.recoveryParam);var b=new Uint8Array([p].concat(A,g));return D||(D=M.constructElliptic(S)),new o({type:S,data:b},D)},o.prototype.toElliptic=function(){var g,D=new B(this.signature.data.slice(1,33)),A=new B(this.signature.data.slice(33,65));return this.signature.type===I.KeyType.k1||this.signature.type===I.KeyType.r1?(g=this.signature.data[0]-27)>3&&(g-=4):this.signature.type===I.KeyType.wa&&(g=this.signature.data[0]),{r:D,s:A,recoveryParam:3&g}},o.prototype.toString=function(){return I.signatureToString(this.signature)},o.prototype.toBinary=function(){return this.signature.data},o.prototype.getType=function(){return this.signature.type},o.prototype.verify=function(w,S,D,A){void 0===D&&(D=!0),void 0===A&&(A="utf8"),D&&("string"==typeof w&&(w=Buffer.from(w,A)),w=this.ec.hash().update(w).digest());var g=this.toElliptic(),p=S.toElliptic();return this.ec.verify(w,g,p,A)},o.prototype.recover=function(w,S,D){void 0===S&&(S=!0),void 0===D&&(D="utf8"),S&&("string"==typeof w&&(w=Buffer.from(w,D)),w=this.ec.hash().update(w).digest());var A=this.toElliptic(),g=this.ec.recoverPubKey(w,A,A.recoveryParam,D),p=this.ec.keyFromPublic(g);return M.PublicKey.fromElliptic(p,this.getType(),this.ec)},o}();k.Signature=P},9016:(q,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0})},22385:function(q,k,x){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(y){for(var m,E=1,C=arguments.length;E0&&R[R.length-1])&&(6===K[0]||2===K[0])){E=0;continue}if(3===K[0]&&(!R||K[1]>R[0]&&K[1]0)&&!(L=C.next()).done;)R.push(L.value)}catch(O){U={error:O}}finally{try{L&&!L.done&&(E=C.return)&&E.call(C)}finally{if(U)throw U.error}}return R},o=this&&this.__spreadArray||function(y,m){for(var E=0,C=m.length,L=y.length;E=y.length&&(y=void 0),{value:y&&y[C++],done:!y}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(k,"__esModule",{value:!0}),k.ActionBuilder=k.TransactionBuilder=k.Api=void 0;var S=x(45297),D=x(75687),A=function(){function y(m){this.contracts=new Map,this.cachedAbis=new Map,this.transactionExtensions=[{id:1,type:"resource_payer",keys:["payer","max_net_bytes","max_cpu_us","max_memory_bytes"]}],this.rpc=m.rpc,this.authorityProvider=m.authorityProvider||m.rpc,this.abiProvider=m.abiProvider||m.rpc,this.signatureProvider=m.signatureProvider,this.chainId=m.chainId,this.textEncoder=m.textEncoder,this.textDecoder=m.textDecoder,this.abiTypes=D.getTypesFromAbi(D.createAbiTypes()),this.transactionTypes=D.getTypesFromAbi(D.createTransactionTypes())}return y.prototype.rawAbiToJson=function(m){var E=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder,array:m});if(!D.supportedAbiVersion(E.getString()))throw new Error("Unsupported abi version");return E.restartRead(),this.abiTypes.get("abi_def").deserialize(E)},y.prototype.jsonToRawAbi=function(m){var E=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});if(this.abiTypes.get("abi_def").serialize(E,m),!D.supportedAbiVersion(E.getString()))throw new Error("Unsupported abi version");return E.asUint8Array()},y.prototype.getCachedAbi=function(m,E){return void 0===E&&(E=!1),I(this,void 0,void 0,function(){var C,L,R,U;return M(this,function(O){switch(O.label){case 0:if(!E&&this.cachedAbis.get(m))return[2,this.cachedAbis.get(m)];O.label=1;case 1:return O.trys.push([1,3,,4]),[4,this.abiProvider.getRawAbi(m)];case 2:return L=O.sent().abi,R=this.rawAbiToJson(L),C={rawAbi:L,abi:R},[3,4];case 3:throw(U=O.sent()).message="fetching abi for "+m+": "+U.message,U;case 4:if(!C)throw new Error("Missing abi for "+m);return this.cachedAbis.set(m,C),[2,C]}})})},y.prototype.getAbi=function(m,E){return void 0===E&&(E=!1),I(this,void 0,void 0,function(){return M(this,function(C){switch(C.label){case 0:return[4,this.getCachedAbi(m,E)];case 1:return[2,C.sent().abi]}})})},y.prototype.getTransactionAbis=function(m,E){return void 0===E&&(E=!1),I(this,void 0,void 0,function(){var C,L,R,U,O=this;return M(this,function(j){return C=(m.context_free_actions||[]).concat(m.actions),L=C.map(function(K){return K.account}),R=new Set(L),U=o([],P(R)).map(function(K){return I(O,void 0,void 0,function(){var Z;return M(this,function(Q){switch(Q.label){case 0:return Z={accountName:K},[4,this.getCachedAbi(K,E)];case 1:return[2,(Z.abi=Q.sent().rawAbi,Z)]}})})}),[2,Promise.all(U)]})})},y.prototype.getContract=function(m,E){return void 0===E&&(E=!1),I(this,void 0,void 0,function(){var C,L,R,U,O,j,Q,W,X;return M(this,function(_){switch(_.label){case 0:return!E&&this.contracts.get(m)?[2,this.contracts.get(m)]:[4,this.getAbi(m,E)];case 1:C=_.sent(),L=D.getTypesFromAbi(D.createInitialTypes(),C),R=new Map;try{for(U=w(C.actions),O=U.next();!O.done;O=U.next())R.set((j=O.value).name,D.getType(L,j.type))}catch(t){W={error:t}}finally{try{O&&!O.done&&(X=U.return)&&X.call(U)}finally{if(W)throw W.error}}return this.contracts.set(m,Q={types:L,actions:R}),[2,Q]}})})},y.prototype.serialize=function(m,E,C){this.transactionTypes.get(E).serialize(m,C)},y.prototype.deserialize=function(m,E){return this.transactionTypes.get(E).deserialize(m)},y.prototype.serializeTransaction=function(m){var E=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});return this.serialize(E,"transaction",B({max_net_usage_words:0,max_cpu_usage_ms:0,delay_sec:0,context_free_actions:[],actions:[],transaction_extensions:[]},m)),E.asUint8Array()},y.prototype.serializeContextFreeData=function(m){var E,C;if(!m||!m.length)return null;var L=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});L.pushVaruint32(m.length);try{for(var R=w(m),U=R.next();!U.done;U=R.next())L.pushBytes(U.value)}catch(j){E={error:j}}finally{try{U&&!U.done&&(C=R.return)&&C.call(R)}finally{if(E)throw E.error}}return L.asUint8Array()},y.prototype.deserializeTransaction=function(m){var E=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});return E.pushArray(m),this.deserialize(E,"transaction")},y.prototype.serializeTransactionExtensions=function(m){var E=[];if(m.resource_payer){var C=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});D.getTypesFromAbi(D.createTransactionExtensionTypes()).get("resource_payer").serialize(C,m.resource_payer),E=o(o([],P(E)),[[1,D.arrayToHex(C.asUint8Array())]])}return E},y.prototype.deserializeTransactionExtensions=function(m){var E=this,C={};return m.forEach(function(L){var R=E.transactionExtensions.find(function(K){return K.id===L[0]});if(void 0===R)throw new Error("Transaction Extension could not be determined: "+L);var U=D.getTypesFromAbi(D.createTransactionExtensionTypes()),O=new D.SerialBuffer({textEncoder:E.textEncoder,textDecoder:E.textDecoder});O.pushArray(D.hexToUint8Array(L[1]));var j=U.get(R.type).deserialize(O);1===L[0]&&(j.max_net_bytes=Number(j.max_net_bytes),j.max_cpu_us=Number(j.max_cpu_us),j.max_memory_bytes=Number(j.max_memory_bytes),C.resource_payer=j)}),C},y.prototype.deleteTransactionExtensionObjects=function(m){return delete m.resource_payer,m},y.prototype.serializeActions=function(m){return I(this,void 0,void 0,function(){var E=this;return M(this,function(C){switch(C.label){case 0:return[4,Promise.all(m.map(function(L){return I(E,void 0,void 0,function(){var R,U,O,j,K;return M(this,function(Z){switch(Z.label){case 0:return U=L.name,O=L.authorization,j=L.data,[4,this.getContract(R=L.account)];case 1:return K=Z.sent(),"object"!=typeof j?[2,L]:[2,D.serializeAction(K,R,U,O,j,this.textEncoder,this.textDecoder)]}})})}))];case 1:return[2,C.sent()]}})})},y.prototype.deserializeActions=function(m){return I(this,void 0,void 0,function(){var E=this;return M(this,function(C){switch(C.label){case 0:return[4,Promise.all(m.map(function(L){var R=L.account,U=L.name,O=L.authorization,j=L.data;return I(E,void 0,void 0,function(){var K;return M(this,function(Z){switch(Z.label){case 0:return[4,this.getContract(R)];case 1:return K=Z.sent(),[2,D.deserializeAction(K,R,U,O,j,this.textEncoder,this.textDecoder)]}})})}))];case 1:return[2,C.sent()]}})})},y.prototype.deserializeTransactionWithActions=function(m){return I(this,void 0,void 0,function(){var E,C,L;return M(this,function(R){switch(R.label){case 0:return"string"==typeof m&&(m=D.hexToUint8Array(m)),E=this.deserializeTransaction(m),[4,this.deserializeActions(E.context_free_actions)];case 1:return C=R.sent(),[4,this.deserializeActions(E.actions)];case 2:return L=R.sent(),[2,B(B({},E),{context_free_actions:C,actions:L})]}})})},y.prototype.deflateSerializedArray=function(m){return S.deflate(m,{level:9})},y.prototype.inflateSerializedArray=function(m){return S.inflate(m)},y.prototype.transact=function(m,E){var C=void 0===E?{}:E,L=C.broadcast,R=void 0===L||L,U=C.sign,O=void 0===U||U,j=C.readOnlyTrx,K=C.returnFailureTraces,Z=C.requiredKeys,Q=C.compression,W=C.blocksBehind,X=C.useLastIrreversible,_=C.expireSeconds;return I(this,void 0,void 0,function(){var t,a,s,e,i,u,d,c;return M(this,function(r){switch(r.label){case 0:if("number"==typeof W&&X)throw new Error("Use either blocksBehind or useLastIrreversible");return this.chainId?[3,2]:[4,this.rpc.get_info()];case 1:t=r.sent(),this.chainId=t.chain_id,r.label=2;case 2:return("number"==typeof W||X)&&_?[4,this.generateTapos(t,m,W,X,_)]:[3,4];case 3:m=r.sent(),r.label=4;case 4:if(!this.hasRequiredTaposFields(m))throw new Error("Required configuration or TAPOS fields are not present");return[4,this.getTransactionAbis(m)];case 5:return a=r.sent(),s=[B({},m)],c={},[4,this.serializeTransactionExtensions(m)];case 6:return c.transaction_extensions=r.sent(),[4,this.serializeActions(m.context_free_actions||[])];case 7:return c.context_free_actions=r.sent(),[4,this.serializeActions(m.actions)];case 8:return m=B.apply(void 0,s.concat([(c.actions=r.sent(),c)])),m=this.deleteTransactionExtensionObjects(m),e=this.serializeTransaction(m),i=this.serializeContextFreeData(m.context_free_data),u={serializedTransaction:e,serializedContextFreeData:i,signatures:[]},O?Z?[3,11]:[4,this.signatureProvider.getAvailableKeys()]:[3,13];case 9:return d=r.sent(),[4,this.authorityProvider.getRequiredKeys({transaction:m,availableKeys:d})];case 10:Z=r.sent(),r.label=11;case 11:return[4,this.signatureProvider.sign({chainId:this.chainId,requiredKeys:Z,serializedTransaction:e,serializedContextFreeData:i,abis:a})];case 12:u=r.sent(),r.label=13;case 13:return R?Q?[2,this.pushCompressedSignedTransaction(u,j,K)]:[2,this.pushSignedTransaction(u,j,K)]:[2,u]}})})},y.prototype.query=function(m,E,C,L){var R=L.sign,U=L.requiredKeys,O=L.authorization,j=void 0===O?[]:O;return I(this,void 0,void 0,function(){var K,Z,Q,W,X,_,t,a,s,e,i;return M(this,function(u){switch(u.label){case 0:return[4,this.rpc.get_info()];case 1:return K=u.sent(),[4,this.tryRefBlockFromGetInfo(K)];case 2:return Z=u.sent(),Q=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder}),D.serializeQuery(Q,C),W=B(B({},D.transactionHeader(Z,1800)),{context_free_actions:[],actions:[{account:m,name:"queryit",authorization:j,data:D.arrayToHex(Q.asUint8Array())}]}),X=this.serializeTransaction(W),_=[],R?[4,this.getTransactionAbis(W)]:[3,8];case 3:return t=u.sent(),U?[3,6]:[4,this.signatureProvider.getAvailableKeys()];case 4:return a=u.sent(),[4,this.authorityProvider.getRequiredKeys({transaction:W,availableKeys:a})];case 5:U=u.sent(),u.label=6;case 6:return[4,this.signatureProvider.sign({chainId:this.chainId,requiredKeys:U,serializedTransaction:X,serializedContextFreeData:null,abis:t})];case 7:s=u.sent(),_=s.signatures,u.label=8;case 8:return[4,this.rpc.send_transaction({signatures:_,compression:0,serializedTransaction:X})];case 9:return e=u.sent(),i=new D.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder,array:D.hexToUint8Array(e.processed.action_traces[0][1].return_value)}),E?[2,D.deserializeAnyvarShort(i)]:[2,D.deserializeAnyvar(i)]}})})},y.prototype.pushSignedTransaction=function(m,E,C){var L=m.signatures,R=m.serializedTransaction,U=m.serializedContextFreeData;return void 0===E&&(E=!1),void 0===C&&(C=!1),I(this,void 0,void 0,function(){return M(this,function(O){return E?[2,this.rpc.push_ro_transaction({signatures:L,serializedTransaction:R,serializedContextFreeData:U},C)]:[2,this.rpc.push_transaction({signatures:L,serializedTransaction:R,serializedContextFreeData:U})]})})},y.prototype.pushCompressedSignedTransaction=function(m,E,C){var L=m.signatures,R=m.serializedTransaction,U=m.serializedContextFreeData;return void 0===E&&(E=!1),void 0===C&&(C=!1),I(this,void 0,void 0,function(){var O,j;return M(this,function(K){return O=this.deflateSerializedArray(R),j=this.deflateSerializedArray(U||new Uint8Array(0)),E?[2,this.rpc.push_ro_transaction({signatures:L,compression:1,serializedTransaction:O,serializedContextFreeData:j},C)]:[2,this.rpc.push_transaction({signatures:L,compression:1,serializedTransaction:O,serializedContextFreeData:j})]})})},y.prototype.generateTapos=function(m,E,C,L,R){return I(this,void 0,void 0,function(){var U,O,K;return M(this,function(Z){switch(Z.label){case 0:return m?[3,2]:[4,this.rpc.get_info()];case 1:m=Z.sent(),Z.label=2;case 2:return L?[4,this.tryRefBlockFromGetInfo(m)]:[3,4];case 3:return U=Z.sent(),[2,B(B({},D.transactionHeader(U,R)),E)];case 4:return(O=m.head_block_num-C)<=m.last_irreversible_block_num?[4,this.tryGetBlockInfo(O)]:[3,6];case 5:return K=Z.sent(),[3,8];case 6:return[4,this.tryGetBlockHeaderState(O)];case 7:K=Z.sent(),Z.label=8;case 8:return[2,B(B({},D.transactionHeader(K,R)),E)]}})})},y.prototype.hasRequiredTaposFields=function(m){return!(!m.expiration||"number"!=typeof m.ref_block_num||"number"!=typeof m.ref_block_prefix)},y.prototype.tryGetBlockHeaderState=function(m){return I(this,void 0,void 0,function(){return M(this,function(C){switch(C.label){case 0:return C.trys.push([0,2,,4]),[4,this.rpc.get_block_header_state(m)];case 1:case 3:return[2,C.sent()];case 2:return C.sent(),[4,this.tryGetBlockInfo(m)];case 4:return[2]}})})},y.prototype.tryGetBlockInfo=function(m){return I(this,void 0,void 0,function(){return M(this,function(C){switch(C.label){case 0:return C.trys.push([0,2,,4]),[4,this.rpc.get_block_info(m)];case 1:case 3:return[2,C.sent()];case 2:return C.sent(),[4,this.rpc.get_block(m)];case 4:return[2]}})})},y.prototype.tryRefBlockFromGetInfo=function(m){return I(this,void 0,void 0,function(){var E;return M(this,function(C){switch(C.label){case 0:return m.hasOwnProperty("last_irreversible_block_id")&&m.hasOwnProperty("last_irreversible_block_num")&&m.hasOwnProperty("last_irreversible_block_time")?[2,{block_num:m.last_irreversible_block_num,id:m.last_irreversible_block_id,timestamp:m.last_irreversible_block_time}]:[3,1];case 1:return[4,this.tryGetBlockInfo(m.last_irreversible_block_num)];case 2:return[2,{block_num:(E=C.sent()).block_num,id:E.id,timestamp:E.timestamp}]}})})},y.prototype.with=function(m){return new p(this,m)},y.prototype.buildTransaction=function(m){var E=new g(this);return m?m(E):E},y}();k.Api=A;var g=function(){function y(m){this.actions=[],this.contextFreeGroups=[],this.api=m}return y.prototype.with=function(m){var E=new p(this.api,m);return this.actions.push(E),E},y.prototype.associateContextFree=function(m){return this.contextFreeGroups.push(m),this},y.prototype.send=function(m){return I(this,void 0,void 0,function(){var E,C,L,R=this;return M(this,function(U){switch(U.label){case 0:return E=[],C=[],L=this.actions.map(function(O){return O.serializedData}),[4,Promise.all(this.contextFreeGroups.map(function(O){return I(R,void 0,void 0,function(){var j,K,Z,Q;return M(this,function(W){return j=O({cfd:E.length,cfa:C.length}),Z=j.contextFreeAction,Q=j.contextFreeData,(K=j.action)&&L.push(K),Z&&C.push(Z),Q&&E.push(Q),[2]})})}))];case 1:return U.sent(),this.contextFreeGroups=[],this.actions=[],[4,this.api.transact({context_free_data:E,context_free_actions:C,actions:L},m)];case 2:return[2,U.sent()]}})})},y}();k.TransactionBuilder=g;var p=function(){function y(m,E){this.api=m,this.accountName=E}return y.prototype.as=function(m){return void 0===m&&(m=[]),new b(this,this.api,this.accountName,m&&"string"==typeof m?[{actor:m,permission:"active"}]:m)},y}();k.ActionBuilder=p;var b=function y(m,E,C,L){var R,U,O=this,j=E.cachedAbis.get(C);if(!j)throw new Error("ABI must be cached before using ActionBuilder, run api.getAbi()");var K=D.getTypesFromAbi(D.createInitialTypes(),j.abi),Z=new Map;try{for(var Q=w(j.abi.actions),W=Q.next();!W.done;W=Q.next()){var X=W.value;Z.set(X.name,D.getType(K,X.type))}}catch(a){R={error:a}}finally{try{W&&!W.done&&(U=Q.return)&&U.call(Q)}finally{if(R)throw R.error}}Z.forEach(function(a,s){var e;Object.assign(O,((e={})[s]=function(){for(var i=[],u=0;u{"use strict";k.b=void 0;var I=x(1487),M=x(67336),P=x(88711);k.b={initialize:function(){return console.error("Method deprecated")},unsafeRandomKey:function(){return console.error("Method deprecated")},randomKey:function(o,w){void 0===w&&(w={}),void 0!==o&&console.warn("Argument `cpuEntropyBits` is deprecated, use the options argument instead");var S=M.generateKeyPair(P.KeyType.k1,w).privateKey;return Promise.resolve(S.toLegacyString())},seedPrivate:function(){return console.error("Method deprecated")},privateToPublic:function(o,w){return void 0!==w&&console.warn("Argument `pubkey_prefix` is deprecated, keys prefixed with PUB_K1_/PUB_R1_/PUB_WA_ going forward"),I.PrivateKey.fromString(o).getPublicKey().toLegacyString()},isValidPublic:function(o,w){void 0!==w&&console.warn("Argument `pubkey_prefix` is deprecated, keys prefixed with PUB_K1_/PUB_R1_/PUB_WA_ going forward");try{return I.PublicKey.fromString(o).isValid()}catch{return!1}},isValidPrivate:function(o){try{return I.PrivateKey.fromString(o).isValid()}catch{return!1}},sign:function(o,w,S){return void 0===S&&(S="utf8"),("string"==typeof w?I.PrivateKey.fromString(w):w).sign(o,!0,S).toString()},signHash:function(o,w,S){return void 0===S&&(S="hex"),("string"==typeof w?I.PrivateKey.fromString(w):w).sign(o,!1,S).toString()},verify:function(o,w,S,D,A){void 0===D&&(D="utf8"),void 0===A&&(A=!0);var g="string"==typeof S?I.PublicKey.fromString(S):S;return I.Signature.fromString(o).verify(w,g,A,D)},recover:function(o,w,S){return void 0===S&&(S="utf8"),I.Signature.fromString(o).recover(w,!0,S).toLegacyString()},recoverHash:function(o,w,S){return void 0===S&&(S="hex"),I.Signature.fromString(o).recover(w,!1,S).toLegacyString()},sha256:function(o,w,S){return void 0!==S&&console.warn("Argument `encoding` is deprecated"),void 0!==w&&console.warn("Argument `resultEncoding` is deprecated"),x(67336).sha256(o)}}},17345:function(q,k,x){"use strict";var B=this&&this.__awaiter||function(D,A,g,p){return new(g||(g=Promise))(function(y,m){function E(R){try{L(p.next(R))}catch(U){m(U)}}function C(R){try{L(p.throw(R))}catch(U){m(U)}}function L(R){R.done?y(R.value):function b(y){return y instanceof g?y:new g(function(m){m(y)})}(R.value).then(E,C)}L((p=p.apply(D,A||[])).next())})},I=this&&this.__generator||function(D,A){var p,b,y,m,g={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function E(L){return function(R){return function C(L){if(p)throw new TypeError("Generator is already executing.");for(;g;)try{if(p=1,b&&(y=2&L[0]?b.return:L[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,L[1])).done)return y;switch(b=0,y&&(L=[2&L[0],y.value]),L[0]){case 0:case 1:y=L;break;case 4:return g.label++,{value:L[1],done:!1};case 5:g.label++,b=L[1],L=[0];continue;case 7:L=g.ops.pop(),g.trys.pop();continue;default:if(!(y=(y=g.trys).length>0&&y[y.length-1])&&(6===L[0]||2===L[0])){g=0;continue}if(3===L[0]&&(!y||L[1]>y[0]&&L[1]=D.length&&(D=void 0),{value:D&&D[p++],done:!D}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(k,"__esModule",{value:!0}),k.JsonRpc=void 0;var P=x(88711),o=x(94895),w=function(D){var A,g,p="";try{for(var b=M(D),y=b.next();!y.done;y=b.next())p+=("00"+y.value.toString(16)).slice(-2)}catch(E){A={error:E}}finally{try{y&&!y.done&&(g=b.return)&&g.call(b)}finally{if(A)throw A.error}}return p},S=function(){function D(A,g){void 0===g&&(g={}),this.endpoint=A.replace(/\/$/,""),this.fetchBuiltin=g.fetch?g.fetch:global.fetch}return D.prototype.fetch=function(A,g){return B(this,void 0,void 0,function(){var p,b,m;return I(this,function(E){switch(E.label){case 0:return E.trys.push([0,3,,4]),[4,(0,this.fetchBuiltin)(this.endpoint+A,{body:JSON.stringify(g),method:"POST"})];case 1:return[4,(p=E.sent()).json()];case 2:if((b=E.sent()).processed&&b.processed.except)throw new o.RpcError(b);if(b.result&&b.result.except)throw new o.RpcError(b);return[3,4];case 3:throw(m=E.sent()).isFetchError=!0,m;case 4:if(!p.ok)throw new o.RpcError(b);return[2,b]}})})},D.prototype.abi_bin_to_json=function(A,g,p){return B(this,void 0,void 0,function(){return I(this,function(b){switch(b.label){case 0:return[4,this.fetch("/v1/chain/abi_bin_to_json",{code:A,action:g,binargs:p})];case 1:return[2,b.sent()]}})})},D.prototype.abi_json_to_bin=function(A,g,p){return B(this,void 0,void 0,function(){return I(this,function(b){switch(b.label){case 0:return[4,this.fetch("/v1/chain/abi_json_to_bin",{code:A,action:g,args:p})];case 1:return[2,b.sent()]}})})},D.prototype.get_abi=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_abi",{account_name:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_account=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_account",{account_name:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_accounts_by_authorizers=function(A,g){return B(this,void 0,void 0,function(){return I(this,function(p){switch(p.label){case 0:return[4,this.fetch("/v1/chain/get_accounts_by_authorizers",{accounts:A,keys:g})];case 1:return[2,p.sent()]}})})},D.prototype.get_activated_protocol_features=function(A){var g=A.limit,p=void 0===g?10:g,b=A.search_by_block_num,y=void 0!==b&&b,m=A.reverse,E=void 0!==m&&m,C=A.lower_bound,L=void 0===C?null:C,R=A.upper_bound,U=void 0===R?null:R;return B(this,void 0,void 0,function(){return I(this,function(O){switch(O.label){case 0:return[4,this.fetch("/v1/chain/get_activated_protocol_features",{lower_bound:L,upper_bound:U,limit:p,search_by_block_num:y,reverse:E})];case 1:return[2,O.sent()]}})})},D.prototype.get_block_header_state=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_block_header_state",{block_num_or_id:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_block_info=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_block_info",{block_num:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_block=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_block",{block_num_or_id:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_code=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_code",{account_name:A,code_as_wasm:!0})];case 1:return[2,g.sent()]}})})},D.prototype.get_code_hash=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_code_hash",{account_name:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_currency_balance=function(A,g,p){return void 0===p&&(p=null),B(this,void 0,void 0,function(){return I(this,function(b){switch(b.label){case 0:return[4,this.fetch("/v1/chain/get_currency_balance",{code:A,account:g,symbol:p})];case 1:return[2,b.sent()]}})})},D.prototype.get_currency_stats=function(A,g){return B(this,void 0,void 0,function(){return I(this,function(p){switch(p.label){case 0:return[4,this.fetch("/v1/chain/get_currency_stats",{code:A,symbol:g})];case 1:return[2,p.sent()]}})})},D.prototype.get_info=function(){return B(this,void 0,void 0,function(){return I(this,function(A){switch(A.label){case 0:return[4,this.fetch("/v1/chain/get_info",{})];case 1:return[2,A.sent()]}})})},D.prototype.get_producer_schedule=function(){return B(this,void 0,void 0,function(){return I(this,function(A){switch(A.label){case 0:return[4,this.fetch("/v1/chain/get_producer_schedule",{})];case 1:return[2,A.sent()]}})})},D.prototype.get_producers=function(A,g,p){return void 0===A&&(A=!0),void 0===g&&(g=""),void 0===p&&(p=50),B(this,void 0,void 0,function(){return I(this,function(b){switch(b.label){case 0:return[4,this.fetch("/v1/chain/get_producers",{json:A,lower_bound:g,limit:p})];case 1:return[2,b.sent()]}})})},D.prototype.get_raw_code_and_abi=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_raw_code_and_abi",{account_name:A})];case 1:return[2,g.sent()]}})})},D.prototype.getRawAbi=function(A){return B(this,void 0,void 0,function(){var g,p;return I(this,function(b){switch(b.label){case 0:return[4,this.get_raw_abi(A)];case 1:return g=b.sent(),p=P.base64ToBinary(g.abi),[2,{accountName:g.account_name,abi:p}]}})})},D.prototype.get_raw_abi=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/chain/get_raw_abi",{account_name:A})];case 1:return[2,g.sent()]}})})},D.prototype.get_scheduled_transactions=function(A,g,p){return void 0===A&&(A=!0),void 0===g&&(g=""),void 0===p&&(p=50),B(this,void 0,void 0,function(){return I(this,function(b){switch(b.label){case 0:return[4,this.fetch("/v1/chain/get_scheduled_transactions",{json:A,lower_bound:g,limit:p})];case 1:return[2,b.sent()]}})})},D.prototype.get_table_rows=function(A){var g=A.json,p=void 0===g||g,b=A.code,y=A.scope,m=A.table,E=A.lower_bound,C=void 0===E?"":E,L=A.upper_bound,R=void 0===L?"":L,U=A.index_position,O=void 0===U?1:U,j=A.key_type,K=void 0===j?"":j,Z=A.limit,Q=void 0===Z?10:Z,W=A.reverse,X=void 0!==W&&W,_=A.show_payer,t=void 0!==_&&_;return B(this,void 0,void 0,function(){return I(this,function(a){switch(a.label){case 0:return[4,this.fetch("/v1/chain/get_table_rows",{json:p,code:b,scope:y,table:m,lower_bound:C,upper_bound:R,index_position:O,key_type:K,limit:Q,reverse:X,show_payer:t})];case 1:return[2,a.sent()]}})})},D.prototype.get_kv_table_rows=function(A){var g=A.json,p=void 0===g||g,b=A.code,y=A.table,m=A.index_name,E=A.encode_type,C=void 0===E?"bytes":E,L=A.index_value,R=A.lower_bound,U=A.upper_bound,O=A.limit,j=void 0===O?10:O,K=A.reverse,Z=void 0!==K&&K,Q=A.show_payer,W=void 0!==Q&&Q;return B(this,void 0,void 0,function(){return I(this,function(X){switch(X.label){case 0:return[4,this.fetch("/v1/chain/get_kv_table_rows",{json:p,code:b,table:y,index_name:m,encode_type:C,index_value:L,lower_bound:R,upper_bound:U,limit:j,reverse:Z,show_payer:W})];case 1:return[2,X.sent()]}})})},D.prototype.get_table_by_scope=function(A){var g=A.code,p=A.table,b=A.lower_bound,y=void 0===b?"":b,m=A.upper_bound,E=void 0===m?"":m,C=A.limit,L=void 0===C?10:C;return B(this,void 0,void 0,function(){return I(this,function(R){switch(R.label){case 0:return[4,this.fetch("/v1/chain/get_table_by_scope",{code:g,table:p,lower_bound:y,upper_bound:E,limit:L})];case 1:return[2,R.sent()]}})})},D.prototype.getRequiredKeys=function(A){return B(this,void 0,void 0,function(){var g;return I(this,function(p){switch(p.label){case 0:return g=P.convertLegacyPublicKeys,[4,this.fetch("/v1/chain/get_required_keys",{transaction:A.transaction,available_keys:A.availableKeys})];case 1:return[2,g.apply(void 0,[p.sent().required_keys])]}})})},D.prototype.push_transaction=function(A){var g=A.signatures,p=A.compression,b=void 0===p?0:p,y=A.serializedTransaction,m=A.serializedContextFreeData;return B(this,void 0,void 0,function(){return I(this,function(E){switch(E.label){case 0:return[4,this.fetch("/v1/chain/push_transaction",{signatures:g,compression:b,packed_context_free_data:w(m||new Uint8Array(0)),packed_trx:w(y)})];case 1:return[2,E.sent()]}})})},D.prototype.push_ro_transaction=function(A,g){var p=A.signatures,b=A.compression,y=void 0===b?0:b,m=A.serializedTransaction;return void 0===g&&(g=!1),B(this,void 0,void 0,function(){return I(this,function(E){switch(E.label){case 0:return[4,this.fetch("/v1/chain/push_ro_transaction",{transaction:{signatures:p,compression:y,packed_context_free_data:w(new Uint8Array(0)),packed_trx:w(m)},return_failure_traces:g})];case 1:return[2,E.sent()]}})})},D.prototype.push_transactions=function(A){return B(this,void 0,void 0,function(){var g;return I(this,function(p){switch(p.label){case 0:return g=A.map(function(b){var m=b.compression,C=b.serializedTransaction;return{signatures:b.signatures,compression:void 0===m?0:m,packed_context_free_data:w(b.serializedContextFreeData||new Uint8Array(0)),packed_trx:w(C)}}),[4,this.fetch("/v1/chain/push_transactions",g)];case 1:return[2,p.sent()]}})})},D.prototype.send_transaction=function(A){var g=A.signatures,p=A.compression,b=void 0===p?0:p,y=A.serializedTransaction,m=A.serializedContextFreeData;return B(this,void 0,void 0,function(){return I(this,function(E){switch(E.label){case 0:return[4,this.fetch("/v1/chain/send_transaction",{signatures:g,compression:b,packed_context_free_data:w(m||new Uint8Array(0)),packed_trx:w(y)})];case 1:return[2,E.sent()]}})})},D.prototype.db_size_get=function(){return B(this,void 0,void 0,function(){return I(this,function(A){switch(A.label){case 0:return[4,this.fetch("/v1/db_size/get",{})];case 1:return[2,A.sent()]}})})},D.prototype.trace_get_block=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/trace_api/get_block",{block_num:A})];case 1:return[2,g.sent()]}})})},D.prototype.history_get_actions=function(A,g,p){return void 0===g&&(g=null),void 0===p&&(p=null),B(this,void 0,void 0,function(){return I(this,function(b){switch(b.label){case 0:return[4,this.fetch("/v1/history/get_actions",{account_name:A,pos:g,offset:p})];case 1:return[2,b.sent()]}})})},D.prototype.history_get_transaction=function(A,g){return void 0===g&&(g=null),B(this,void 0,void 0,function(){return I(this,function(p){switch(p.label){case 0:return[4,this.fetch("/v1/history/get_transaction",{id:A,block_num_hint:g})];case 1:return[2,p.sent()]}})})},D.prototype.history_get_key_accounts=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/history/get_key_accounts",{public_key:A})];case 1:return[2,g.sent()]}})})},D.prototype.history_get_controlled_accounts=function(A){return B(this,void 0,void 0,function(){return I(this,function(g){switch(g.label){case 0:return[4,this.fetch("/v1/history/get_controlled_accounts",{controlling_account:A})];case 1:return[2,g.sent()]}})})},D}();k.JsonRpc=S},1487:function(q,k,x){"use strict";var B=this&&this.__awaiter||function(g,p,b,y){return new(b||(b=Promise))(function(E,C){function L(O){try{U(y.next(O))}catch(j){C(j)}}function R(O){try{U(y.throw(O))}catch(j){C(j)}}function U(O){O.done?E(O.value):function m(E){return E instanceof b?E:new b(function(C){C(E)})}(O.value).then(L,R)}U((y=y.apply(g,p||[])).next())})},I=this&&this.__generator||function(g,p){var y,m,E,C,b={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return C={next:L(0),throw:L(1),return:L(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function L(U){return function(O){return function R(U){if(y)throw new TypeError("Generator is already executing.");for(;b;)try{if(y=1,m&&(E=2&U[0]?m.return:U[0]?m.throw||((E=m.return)&&E.call(m),0):m.next)&&!(E=E.call(m,U[1])).done)return E;switch(m=0,E&&(U=[2&U[0],E.value]),U[0]){case 0:case 1:E=U;break;case 4:return b.label++,{value:U[1],done:!1};case 5:b.label++,m=U[1],U=[0];continue;case 7:U=b.ops.pop(),b.trys.pop();continue;default:if(!(E=(E=b.trys).length>0&&E[E.length-1])&&(6===U[0]||2===U[0])){b=0;continue}if(3===U[0]&&(!E||U[1]>E[0]&&U[1]=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(k,"__esModule",{value:!0}),k.JsSignatureProvider=k.digestFromSerializedData=k.Signature=k.PublicKey=k.PrivateKey=void 0;var P=x(4913),o=x(67336);Object.defineProperty(k,"PrivateKey",{enumerable:!0,get:function(){return o.PrivateKey}}),Object.defineProperty(k,"PublicKey",{enumerable:!0,get:function(){return o.PublicKey}}),Object.defineProperty(k,"Signature",{enumerable:!0,get:function(){return o.Signature}});var w=x(88711),S=new P.ec("secp256k1"),D=function(g,p,b,y){void 0===y&&(y=S);var m=Buffer.concat([Buffer.from(g,"hex"),Buffer.from(p),Buffer.from(b?new Uint8Array(y.hash().update(b).digest()):new Uint8Array(32))]);return y.hash().update(m).digest()};k.digestFromSerializedData=D;var A=function(){function g(p){var b,y;this.keys=new Map,this.availableKeys=[];try{for(var m=M(p),E=m.next();!E.done;E=m.next()){var L=o.PrivateKey.fromString(E.value),R=L.toElliptic(),U=L.getPublicKey().toString();this.keys.set(U,R),this.availableKeys.push(U)}}catch(O){b={error:O}}finally{try{E&&!E.done&&(y=m.return)&&y.call(m)}finally{if(b)throw b.error}}}return g.prototype.getAvailableKeys=function(){return B(this,void 0,void 0,function(){return I(this,function(p){return[2,this.availableKeys]})})},g.prototype.sign=function(p){var b=p.chainId,y=p.requiredKeys,m=p.serializedTransaction,E=p.serializedContextFreeData;return B(this,void 0,void 0,function(){var C,L,R,U,O,j,K,Z,Q,W,X;return I(this,function(_){C=D(b,m,E,S),L=[];try{for(R=M(y),U=R.next();!U.done;U=R.next())j=o.PublicKey.fromString(O=U.value),K=this.keys.get(w.convertLegacyPublicKey(O)),Z=o.PrivateKey.fromElliptic(K,j.getType()),Q=Z.sign(C,!1),L.push(Q.toString())}catch(t){W={error:t}}finally{try{U&&!U.done&&(X=R.return)&&X.call(R)}finally{if(W)throw W.error}}return[2,{signatures:L,serializedTransaction:m,serializedContextFreeData:E}]})})},g}();k.JsSignatureProvider=A},67336:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.sha256=k.generateKeyPair=k.constructElliptic=k.Signature=k.PublicKey=k.PrivateKey=void 0;var B=x(4913),I=x(27246),M=x(88711),P=x(4820),o=x(65484),w=x(65484);Object.defineProperty(k,"PrivateKey",{enumerable:!0,get:function(){return w.PrivateKey}});var S=x(4820);Object.defineProperty(k,"PublicKey",{enumerable:!0,get:function(){return S.PublicKey}});var D=x(40602);Object.defineProperty(k,"Signature",{enumerable:!0,get:function(){return D.Signature}}),k.constructElliptic=function(b){return new B.ec(b===M.KeyType.k1?"secp256k1":"p256")},k.generateKeyPair=function(b,y){if(void 0===y&&(y={}),!y.secureEnv)throw new Error("Key generation is completely INSECURE in production environments in the browser. If you are absolutely certain this does NOT describe your environment, set `secureEnv` in your options to `true`. If this does describe your environment and you set `secureEnv` to `true`, YOU DO SO AT YOUR OWN RISK AND THE RISK OF YOUR USERS.");var m,E=(m=new B.ec(b===M.KeyType.k1?"secp256k1":"p256")).genKeyPair(y.ecOptions);return{publicKey:P.PublicKey.fromElliptic(E,b,m),privateKey:o.PrivateKey.fromElliptic(E,b,m)}},k.sha256=function(b){return I.sha256().update(b).digest()}},88711:function(q,k,x){"use strict";var B=this&&this.__read||function(r,h){var F="function"==typeof Symbol&&r[Symbol.iterator];if(!F)return r;var H,Ae,T=F.call(r),ae=[];try{for(;(void 0===h||h-- >0)&&!(H=T.next()).done;)ae.push(H.value)}catch(fe){Ae={error:fe}}finally{try{H&&!H.done&&(F=T.return)&&F.call(T)}finally{if(Ae)throw Ae.error}}return ae},I=this&&this.__spreadArray||function(r,h){for(var F=0,T=h.length,H=r.length;F=r.length&&(r=void 0),{value:r&&r[T++],done:!r}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(k,"__esModule",{value:!0}),k.signatureToString=k.stringToSignature=k.privateKeyToString=k.privateKeyToLegacyString=k.stringToPrivateKey=k.convertLegacyPublicKeys=k.convertLegacyPublicKey=k.publicKeyToString=k.publicKeyToLegacyString=k.stringToPublicKey=k.signatureDataSize=k.privateKeyDataSize=k.publicKeyDataSize=k.KeyType=k.base64ToBinary=k.binaryToBase58=k.base58ToBinary=k.signedBinaryToDecimal=k.binaryToDecimal=k.signedDecimalToBinary=k.decimalToBinary=k.negate=k.isNegative=void 0;var K,r,P=x(27246),o=x(90165).RIPEMD160.hash,w="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=function(){for(var r=Array(256).fill(-1),h=0;h"9".charCodeAt(0))throw new Error("invalid number");for(var ae=H-"0".charCodeAt(0),Ae=0;Ae>8}if(ae)throw new Error("number is out of range")}return F},k.signedDecimalToBinary=function(r,h){var F="-"===h[0];F&&(h=h.substr(1));var T=k.decimalToBinary(r,h);if(F){if(k.negate(T),!k.isNegative(T))throw new Error("number is out of range")}else if(k.isNegative(T))throw new Error("number is out of range");return T},k.binaryToDecimal=function(r,h){void 0===h&&(h=1);for(var F=Array(h).fill("0".charCodeAt(0)),T=r.length-1;T>=0;--T){for(var H=r[T],ae=0;ae>8}ae&&T.push(ae)}try{for(var Ee=M(r),ee=Ee.next();!ee.done&&"1"===ee.value;ee=Ee.next())T.push(0)}catch(ze){h={error:ze}}finally{try{ee&&!ee.done&&(F=Ee.return)&&F.call(Ee)}finally{if(h)throw h.error}}return T.reverse(),new Uint8Array(T)}(h);for(var F=new Uint8Array(r),T=0;T>8}if(H)throw new Error("base-58 value is out of range")}return F.reverse(),F},k.binaryToBase58=function(r,h){var F,T,H,ae;void 0===h&&(h=1);var Ae=[];try{for(var fe=M(r),Ee=fe.next();!Ee.done;Ee=fe.next()){for(var se=Ee.value,ze=0;ze>2,T=3*F;h>0&&"="===r[h-1]&&(T-="="===r[h-2]?2:1);for(var H=new Uint8Array(T),ae=0;ae>4,3*ae+1>2),3*ae+2{"use strict";Object.defineProperty(k,"__esModule",{value:!0})},94895:function(q,k){"use strict";var I,x=this&&this.__extends||(I=function(M,P){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,w){o.__proto__=w}||function(o,w){for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(o[S]=w[S])})(M,P)},function(M,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function o(){this.constructor=M}I(M,P),M.prototype=null===P?Object.create(P):(o.prototype=P.prototype,new o)});Object.defineProperty(k,"__esModule",{value:!0}),k.RpcError=void 0;var B=function(I){function M(P){var o=this;return P.error&&P.error.details&&P.error.details.length&&P.error.details[0].message?(o=I.call(this,P.error.details[0].message)||this).details=P.error.details:P.processed&&P.processed.except&&P.processed.except.message?(o=I.call(this,P.processed.except.message)||this).details=P.processed.except:P.result&&P.result.except&&P.result.except.message?(o=I.call(this,P.result.except.message)||this).details=P.result.except:o=I.call(this,P.message)||this,Object.setPrototypeOf(o,M.prototype),o.json=P,o}return x(M,I),M}(Error);k.RpcError=B},75687:function(q,k,x){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(Le){for(var Y,z=1,G=arguments.length;z0)&&!(re=G.next()).done;)ce.push(re.value)}catch(De){Ge={error:De}}finally{try{re&&!re.done&&(z=G.return)&&z.call(G)}finally{if(Ge)throw Ge.error}}return ce},M=this&&this.__spreadArray||function(Le,Y){for(var z=0,G=Y.length,re=Le.length;z=Le.length&&(Le=void 0),{value:Le&&Le[G++],done:!Le}}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(k,"__esModule",{value:!0}),k.serializeQuery=k.deserializeAnyArray=k.serializeAnyArray=k.deserializeAnyObject=k.serializeAnyObject=k.deserializeAnyvarShort=k.deserializeAnyvar=k.serializeAnyvar=k.deserializeAction=k.deserializeActionData=k.serializeAction=k.serializeActionData=k.transactionHeader=k.getTypesFromAbi=k.getType=k.createTransactionTypes=k.createTransactionExtensionTypes=k.createAbiTypes=k.createInitialTypes=k.hexToUint8Array=k.arrayToHex=k.symbolToString=k.stringToSymbol=k.blockTimestampToDate=k.dateToBlockTimestamp=k.timePointSecToDate=k.dateToTimePointSec=k.timePointToDate=k.dateToTimePoint=k.supportedAbiVersion=k.SerialBuffer=k.SerializerState=void 0;var o=x(88711),w=function Le(Y){void 0===Y&&(Y={}),this.skippedBinaryExtension=!1,this.options=Y};k.SerializerState=w;var S=function(){function Le(Y){var z=void 0===Y?{}:Y,G=z.textEncoder,re=z.textDecoder,ce=z.array;this.readPos=0,this.array=ce||new Uint8Array(1024),this.length=ce?ce.length:0,this.textEncoder=G||new TextEncoder,this.textDecoder=re||new TextDecoder("utf-8",{fatal:!0})}return Le.prototype.reserve=function(Y){if(!(this.length+Y<=this.array.length)){for(var z=this.array.length;this.length+Y>z;)z=Math.ceil(1.5*z);var G=new Uint8Array(z);G.set(this.array),this.array=G}},Le.prototype.haveReadData=function(){return this.readPosthis.length)throw new Error("Read past end of buffer");var z=new Uint8Array(this.array.buffer,this.array.byteOffset+this.readPos,Y);return this.readPos+=Y,z},Le.prototype.skip=function(Y){if(this.readPos+Y>this.length)throw new Error("Read past end of buffer");this.readPos+=Y},Le.prototype.pushUint16=function(Y){this.push(Y>>0&255,Y>>8&255)},Le.prototype.getUint16=function(){var Y=0;return(Y|=this.get()<<0)|this.get()<<8},Le.prototype.pushUint32=function(Y){this.push(Y>>0&255,Y>>8&255,Y>>16&255,Y>>24&255)},Le.prototype.getUint32=function(){var Y=0;return Y|=this.get()<<0,Y|=this.get()<<8,Y|=this.get()<<16,(Y|=this.get()<<24)>>>0},Le.prototype.pushNumberAsUint64=function(Y){this.pushUint32(Y>>>0),this.pushUint32(Math.floor(Y/4294967296)>>>0)},Le.prototype.getUint64AsNumber=function(){var Y=this.getUint32();return 4294967296*(this.getUint32()>>>0)+(Y>>>0)},Le.prototype.pushVaruint32=function(Y){for(;;){if(!(Y>>>7)){this.push(Y);break}this.push(128|127&Y),Y>>>=7}},Le.prototype.getVaruint32=function(){for(var Y=0,z=0;;){var G=this.get();if(Y|=(127&G)<>>0},Le.prototype.pushVarint32=function(Y){this.pushVaruint32(Y<<1^Y>>31)},Le.prototype.getVarint32=function(){var Y=this.getVaruint32();return 1&Y?~Y>>1|2147483648:Y>>>1},Le.prototype.pushFloat32=function(Y){this.pushArray(new Uint8Array(new Float32Array([Y]).buffer))},Le.prototype.getFloat32=function(){return new Float32Array(this.getUint8Array(4).slice().buffer)[0]},Le.prototype.pushFloat64=function(Y){this.pushArray(new Uint8Array(new Float64Array([Y]).buffer))},Le.prototype.getFloat64=function(){return new Float64Array(this.getUint8Array(8).slice().buffer)[0]},Le.prototype.pushName=function(Y){if("string"!=typeof Y)throw new Error("Expected string containing name");var Oe;if(!new RegExp(/^[.1-5a-z]{0,12}[.1-5a-j]?$/).test(Y))throw new Error("Name should be less than 13 characters, or less than 14 if last character is between 1-5 or a-j, and only contain the following symbols .12345abcdefghijklmnopqrstuvwxyz");for(var re=new Uint8Array(8),ce=63,Ge=0;Ge="a".charCodeAt(0)&&Oe<="z".charCodeAt(0)?Oe-"a".charCodeAt(0)+6:Oe>="1".charCodeAt(0)&&Oe<="5".charCodeAt(0)?Oe-"1".charCodeAt(0)+1:0;ce<5&&(De<<=1);for(var we=4;we>=0;--we)ce>=0&&(re[Math.floor(ce/8)]|=(De>>we&1)<=0;){for(var re=0,ce=0;ce<5;++ce)G>=0&&(re=re<<1|Y[Math.floor(G/8)]>>G%8&1,--G);z+=re>=6?String.fromCharCode(re+"a".charCodeAt(0)-6):re>=1?String.fromCharCode(re+"1".charCodeAt(0)-1):"."}for(;z.endsWith(".");)z=z.substr(0,z.length-1);return z},Le.prototype.pushBytes=function(Y){this.pushVaruint32(Y.length),this.pushArray(Y)},Le.prototype.getBytes=function(){return this.getUint8Array(this.getVaruint32())},Le.prototype.pushString=function(Y){this.pushBytes(this.textEncoder.encode(Y))},Le.prototype.getString=function(){return this.textDecoder.decode(this.getBytes())},Le.prototype.pushSymbolCode=function(Y){if("string"!=typeof Y)throw new Error("Expected string containing symbol_code");var z=[];for(z.push.apply(z,M([],I(this.textEncoder.encode(Y))));z.length<8;)z.push(0);this.pushArray(z.slice(0,8))},Le.prototype.getSymbolCode=function(){var z,Y=this.getUint8Array(8);for(z=0;z="0".charCodeAt(0)&&Y.charCodeAt(z)<="9".charCodeAt(0);)ce=!0,G+=Y[z],++z;if(!ce)throw new Error("Asset must begin with a number");if("."===Y[z])for(++z;z="0".charCodeAt(0)&&Y.charCodeAt(z)<="9".charCodeAt(0);)G+=Y[z],++re,++z;var Ge=Y.substr(z).trim();this.pushArray(o.signedDecimalToBinary(8,G)),this.pushSymbol({name:Ge,precision:re})},Le.prototype.getAsset=function(){var Y=this.getUint8Array(8),z=this.getSymbol(),G=z.name,re=z.precision,ce=o.signedBinaryToDecimal(Y,re+1);return re&&(ce=ce.substr(0,ce.length-re)+"."+ce.substr(ce.length-re)),ce+" "+G},Le.prototype.pushPublicKey=function(Y){var z=o.stringToPublicKey(Y);this.push(z.type),this.pushArray(z.data)},Le.prototype.getPublicKey=function(){var z,Y=this.get();if(Y===o.KeyType.wa){var G=this.readPos;this.skip(34),this.skip(this.getVaruint32()),z=new Uint8Array(this.array.buffer,this.array.byteOffset+G,this.readPos-G)}else z=this.getUint8Array(o.publicKeyDataSize);return o.publicKeyToString({type:Y,data:z})},Le.prototype.pushPrivateKey=function(Y){var z=o.stringToPrivateKey(Y);this.push(z.type),this.pushArray(z.data)},Le.prototype.getPrivateKey=function(){var Y=this.get(),z=this.getUint8Array(o.privateKeyDataSize);return o.privateKeyToString({type:Y,data:z})},Le.prototype.pushSignature=function(Y){var z=o.stringToSignature(Y);this.push(z.type),this.pushArray(z.data)},Le.prototype.getSignature=function(){var z,Y=this.get();if(Y===o.KeyType.wa){var G=this.readPos;this.skip(65),this.skip(this.getVaruint32()),this.skip(this.getVaruint32()),z=new Uint8Array(this.array.buffer,this.array.byteOffset+G,this.readPos-G)}else z=this.getUint8Array(o.signatureDataSize);return o.signatureToString({type:Y,data:z})},Le}();k.SerialBuffer=S,k.supportedAbiVersion=function(Le){return Le.startsWith("eosio::abi/1.")};var A=function(Le){var Y=Date.parse(Le);if(Number.isNaN(Y))throw new Error("Invalid time format");return Y};function O(Le,Y){throw new Error("Don't know how to serialize "+this.name)}function j(Le){throw new Error("Don't know how to deserialize "+this.name)}function K(Le,Y,z,G){var re,ce;if(void 0===z&&(z=new w),void 0===G&&(G=!0),"object"!=typeof Y)throw new Error("expected object containing data: "+JSON.stringify(Y));this.base&&this.base.serialize(Le,Y,z,G);try{for(var Ge=P(this.fields),De=Ge.next();!De.done;De=Ge.next()){var we=De.value;if(we.name in Y){if(z.skippedBinaryExtension)throw new Error("unexpected "+this.name+"."+we.name);we.type.serialize(Le,Y[we.name],z,G&&we===this.fields[this.fields.length-1])}else{if(!G||!we.type.extensionOf)throw new Error("missing "+this.name+"."+we.name+" (type="+we.type.name+")");z.skippedBinaryExtension=!0}}}catch(Oe){re={error:Oe}}finally{try{De&&!De.done&&(ce=Ge.return)&&ce.call(Ge)}finally{if(re)throw re.error}}}function Z(Le,Y,z){var G,re,ce;void 0===Y&&(Y=new w),void 0===z&&(z=!0),ce=this.base?this.base.deserialize(Le,Y,z):{};try{for(var Ge=P(this.fields),De=Ge.next();!De.done;De=Ge.next()){var we=De.value;z&&we.type.extensionOf&&!Le.haveReadData()?Y.skippedBinaryExtension=!0:ce[we.name]=we.type.deserialize(Le,Y,z)}}catch(Oe){G={error:Oe}}finally{try{De&&!De.done&&(re=Ge.return)&&re.call(Ge)}finally{if(G)throw G.error}}return ce}function Q(Le,Y,z,G){if(!Array.isArray(Y)||2!==Y.length||"string"!=typeof Y[0])throw new Error('expected variant: ["type", value]');var re=this.fields.findIndex(function(ce){return ce.name===Y[0]});if(re<0)throw new Error('type "'+Y[0]+'" is not valid for variant');Le.pushVaruint32(re),this.fields[re].type.serialize(Le,Y[1],z,G)}function W(Le,Y,z){var G=Le.getVaruint32();if(G>=this.fields.length)throw new Error("type index "+G+" is not valid for variant");var re=this.fields[G];return[re.name,re.type.deserialize(Le,Y,z)]}function X(Le,Y,z,G){var re,ce;Le.pushVaruint32(Y.length);try{for(var Ge=P(Y),De=Ge.next();!De.done;De=Ge.next())this.arrayOf.serialize(Le,De.value,z,!1)}catch(Oe){re={error:Oe}}finally{try{De&&!De.done&&(ce=Ge.return)&&ce.call(Ge)}finally{if(re)throw re.error}}}function _(Le,Y,z){for(var G=Le.getVaruint32(),re=[],ce=0;ce",aliasOfName:"",arrayOf:null,optionalOf:null,extensionOf:null,baseName:"",base:null,fields:[],serialize:O,deserialize:j},Le)},h=function(Le,Y){if(Number.isNaN(+Le)||Number.isNaN(+Y)||"number"!=typeof Le&&"string"!=typeof Le)throw new Error("Expected number");if(+Le!=+Y)throw new Error("Number is out of range");return+Le};k.createInitialTypes=function(){var Le=new Map(Object.entries({bool:r({name:"bool",serialize:function(Y,z){if("boolean"!=typeof z&&("number"!=typeof z||1!==z&&0!==z))throw new Error("Expected boolean or number equal to 1 or 0");Y.push(z?1:0)},deserialize:function(Y){return!!Y.get()}}),uint8:r({name:"uint8",serialize:function(Y,z){Y.push(h(z,255&z))},deserialize:function(Y){return Y.get()}}),int8:r({name:"int8",serialize:function(Y,z){Y.push(h(z,z<<24>>24))},deserialize:function(Y){return Y.get()<<24>>24}}),uint16:r({name:"uint16",serialize:function(Y,z){Y.pushUint16(h(z,65535&z))},deserialize:function(Y){return Y.getUint16()}}),int16:r({name:"int16",serialize:function(Y,z){Y.pushUint16(h(z,z<<16>>16))},deserialize:function(Y){return Y.getUint16()<<16>>16}}),uint32:r({name:"uint32",serialize:function(Y,z){Y.pushUint32(h(z,z>>>0))},deserialize:function(Y){return Y.getUint32()}}),uint64:r({name:"uint64",serialize:function(Y,z){Y.pushArray(o.decimalToBinary(8,""+z))},deserialize:function(Y){return o.binaryToDecimal(Y.getUint8Array(8))}}),int64:r({name:"int64",serialize:function(Y,z){Y.pushArray(o.signedDecimalToBinary(8,""+z))},deserialize:function(Y){return o.signedBinaryToDecimal(Y.getUint8Array(8))}}),int32:r({name:"int32",serialize:function(Y,z){Y.pushUint32(h(z,0|z))},deserialize:function(Y){return 0|Y.getUint32()}}),varuint32:r({name:"varuint32",serialize:function(Y,z){Y.pushVaruint32(h(z,z>>>0))},deserialize:function(Y){return Y.getVaruint32()}}),varint32:r({name:"varint32",serialize:function(Y,z){Y.pushVarint32(h(z,0|z))},deserialize:function(Y){return Y.getVarint32()}}),uint128:r({name:"uint128",serialize:function(Y,z){Y.pushArray(o.decimalToBinary(16,""+z))},deserialize:function(Y){return o.binaryToDecimal(Y.getUint8Array(16))}}),int128:r({name:"int128",serialize:function(Y,z){Y.pushArray(o.signedDecimalToBinary(16,""+z))},deserialize:function(Y){return o.signedBinaryToDecimal(Y.getUint8Array(16))}}),float32:r({name:"float32",serialize:function(Y,z){Y.pushFloat32(z)},deserialize:function(Y){return Y.getFloat32()}}),float64:r({name:"float64",serialize:function(Y,z){Y.pushFloat64(z)},deserialize:function(Y){return Y.getFloat64()}}),float128:r({name:"float128",serialize:function(Y,z){Y.pushUint8ArrayChecked(k.hexToUint8Array(z),16)},deserialize:function(Y){return k.arrayToHex(Y.getUint8Array(16))}}),bytes:r({name:"bytes",serialize:function(Y,z){z instanceof Uint8Array||Array.isArray(z)?Y.pushBytes(z):Y.pushBytes(k.hexToUint8Array(z))},deserialize:function(Y,z){return z&&z.options.bytesAsUint8Array?Y.getBytes():k.arrayToHex(Y.getBytes())}}),string:r({name:"string",serialize:function(Y,z){Y.pushString(z)},deserialize:function(Y){return Y.getString()}}),name:r({name:"name",serialize:function(Y,z){Y.pushName(z)},deserialize:function(Y){return Y.getName()}}),time_point:r({name:"time_point",serialize:function(Y,z){Y.pushNumberAsUint64(k.dateToTimePoint(z))},deserialize:function(Y){return k.timePointToDate(Y.getUint64AsNumber())}}),time_point_sec:r({name:"time_point_sec",serialize:function(Y,z){Y.pushUint32(k.dateToTimePointSec(z))},deserialize:function(Y){return k.timePointSecToDate(Y.getUint32())}}),block_timestamp_type:r({name:"block_timestamp_type",serialize:function(Y,z){Y.pushUint32(k.dateToBlockTimestamp(z))},deserialize:function(Y){return k.blockTimestampToDate(Y.getUint32())}}),symbol_code:r({name:"symbol_code",serialize:function(Y,z){Y.pushSymbolCode(z)},deserialize:function(Y){return Y.getSymbolCode()}}),symbol:r({name:"symbol",serialize:function(Y,z){Y.pushSymbol(k.stringToSymbol(z))},deserialize:function(Y){return k.symbolToString(Y.getSymbol())}}),asset:r({name:"asset",serialize:function(Y,z){Y.pushAsset(z)},deserialize:function(Y){return Y.getAsset()}}),checksum160:r({name:"checksum160",serialize:function(Y,z){Y.pushUint8ArrayChecked(k.hexToUint8Array(z),20)},deserialize:function(Y){return k.arrayToHex(Y.getUint8Array(20))}}),checksum256:r({name:"checksum256",serialize:function(Y,z){Y.pushUint8ArrayChecked(k.hexToUint8Array(z),32)},deserialize:function(Y){return k.arrayToHex(Y.getUint8Array(32))}}),checksum512:r({name:"checksum512",serialize:function(Y,z){Y.pushUint8ArrayChecked(k.hexToUint8Array(z),64)},deserialize:function(Y){return k.arrayToHex(Y.getUint8Array(64))}}),public_key:r({name:"public_key",serialize:function(Y,z){Y.pushPublicKey(z)},deserialize:function(Y){return Y.getPublicKey()}}),private_key:r({name:"private_key",serialize:function(Y,z){Y.pushPrivateKey(z)},deserialize:function(Y){return Y.getPrivateKey()}}),signature:r({name:"signature",serialize:function(Y,z){Y.pushSignature(z)},deserialize:function(Y){return Y.getSignature()}})}));return Le.set("extended_asset",r({name:"extended_asset",baseName:"",fields:[{name:"quantity",typeName:"asset",type:Le.get("asset")},{name:"contract",typeName:"name",type:Le.get("name")}],serialize:K,deserialize:Z})),Le},k.createAbiTypes=function(){var Le=k.createInitialTypes();return Le.set("extensions_entry",r({name:"extensions_entry",baseName:"",fields:[{name:"tag",typeName:"uint16",type:null},{name:"value",typeName:"bytes",type:null}],serialize:K,deserialize:Z})),Le.set("type_def",r({name:"type_def",baseName:"",fields:[{name:"new_type_name",typeName:"string",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("field_def",r({name:"field_def",baseName:"",fields:[{name:"name",typeName:"string",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("struct_def",r({name:"struct_def",baseName:"",fields:[{name:"name",typeName:"string",type:null},{name:"base",typeName:"string",type:null},{name:"fields",typeName:"field_def[]",type:null}],serialize:K,deserialize:Z})),Le.set("action_def",r({name:"action_def",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"type",typeName:"string",type:null},{name:"ricardian_contract",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("table_def",r({name:"table_def",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"index_type",typeName:"string",type:null},{name:"key_names",typeName:"string[]",type:null},{name:"key_types",typeName:"string[]",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("clause_pair",r({name:"clause_pair",baseName:"",fields:[{name:"id",typeName:"string",type:null},{name:"body",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("error_message",r({name:"error_message",baseName:"",fields:[{name:"error_code",typeName:"uint64",type:null},{name:"error_msg",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("variant_def",r({name:"variant_def",baseName:"",fields:[{name:"name",typeName:"string",type:null},{name:"types",typeName:"string[]",type:null}],serialize:K,deserialize:Z})),Le.set("action_result",r({name:"action_result",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"result_type",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("primary_key_index_def",r({name:"primary_key_index_def",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("secondary_index_def",r({name:"secondary_index_def",baseName:"",fields:[{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),Le.set("secondary_indices",r({name:"secondary_indices",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"secondary_index_def",typeName:"secondary_index_def",type:null}],serialize:i,deserialize:u})),Le.set("kv_table_entry_def",r({name:"kv_table_entry_def",baseName:"",fields:[{name:"type",typeName:"string",type:null},{name:"primary_index",typeName:"primary_key_index_def",type:null},{name:"secondary_indices",typeName:"secondary_indices",type:null}],serialize:K,deserialize:Z})),Le.set("kv_table",r({name:"kv_table",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"kv_table_entry_def",typeName:"kv_table_entry_def",type:null}],serialize:i,deserialize:u})),Le.set("abi_def",r({name:"abi_def",baseName:"",fields:[{name:"version",typeName:"string",type:null},{name:"types",typeName:"type_def[]",type:null},{name:"structs",typeName:"struct_def[]",type:null},{name:"actions",typeName:"action_def[]",type:null},{name:"tables",typeName:"table_def[]",type:null},{name:"ricardian_clauses",typeName:"clause_pair[]",type:null},{name:"error_messages",typeName:"error_message[]",type:null},{name:"abi_extensions",typeName:"extensions_entry[]",type:null},{name:"variants",typeName:"variant_def[]$",type:null},{name:"action_results",typeName:"action_result[]$",type:null},{name:"kv_tables",typeName:"kv_table$",type:null}],serialize:K,deserialize:Z})),Le},k.createTransactionExtensionTypes=function(){var Le=k.createInitialTypes();return Le.set("resource_payer",r({name:"resource_payer",baseName:"",fields:[{name:"payer",typeName:"name",type:null},{name:"max_net_bytes",typeName:"uint64",type:null},{name:"max_cpu_us",typeName:"uint64",type:null},{name:"max_memory_bytes",typeName:"uint64",type:null}],serialize:K,deserialize:Z})),Le},k.createTransactionTypes=function(){var Le=k.createInitialTypes();return Le.set("permission_level",r({name:"permission_level",baseName:"",fields:[{name:"actor",typeName:"name",type:null},{name:"permission",typeName:"name",type:null}],serialize:K,deserialize:Z})),Le.set("action",r({name:"action",baseName:"",fields:[{name:"account",typeName:"name",type:null},{name:"name",typeName:"name",type:null},{name:"authorization",typeName:"permission_level[]",type:null},{name:"data",typeName:"bytes",type:null}],serialize:K,deserialize:Z})),Le.set("extension",r({name:"extension",baseName:"",fields:[{name:"type",typeName:"uint16",type:null},{name:"data",typeName:"bytes",type:null}],serialize:d,deserialize:c})),Le.set("transaction_header",r({name:"transaction_header",baseName:"",fields:[{name:"expiration",typeName:"time_point_sec",type:null},{name:"ref_block_num",typeName:"uint16",type:null},{name:"ref_block_prefix",typeName:"uint32",type:null},{name:"max_net_usage_words",typeName:"varuint32",type:null},{name:"max_cpu_usage_ms",typeName:"uint8",type:null},{name:"delay_sec",typeName:"varuint32",type:null}],serialize:K,deserialize:Z})),Le.set("transaction",r({name:"transaction",baseName:"transaction_header",fields:[{name:"context_free_actions",typeName:"action[]",type:null},{name:"actions",typeName:"action[]",type:null},{name:"transaction_extensions",typeName:"extension",type:null}],serialize:K,deserialize:Z})),Le},k.getType=function(Le,Y){var z=Le.get(Y);if(z&&z.aliasOfName)return k.getType(Le,z.aliasOfName);if(z)return z;if(Y.endsWith("[]"))return r({name:Y,arrayOf:k.getType(Le,Y.substr(0,Y.length-2)),serialize:X,deserialize:_});if(Y.endsWith("?"))return r({name:Y,optionalOf:k.getType(Le,Y.substr(0,Y.length-1)),serialize:t,deserialize:a});if(Y.endsWith("$"))return r({name:Y,extensionOf:k.getType(Le,Y.substr(0,Y.length-1)),serialize:s,deserialize:e});throw new Error("Unknown type: "+Y)},k.getTypesFromAbi=function(Le,Y){var z,G,re,ce,Ge,De,we,Oe,xe,te,le=new Map(Le);if(Y&&Y.types)try{for(var me=P(Y.types),Pe=me.next();!Pe.done;Pe=me.next()){var st=Pe.value,tt=st.new_type_name;le.set(tt,r({name:tt,aliasOfName:et=st.type}))}}catch(It){z={error:It}}finally{try{Pe&&!Pe.done&&(G=me.return)&&G.call(me)}finally{if(z)throw z.error}}if(Y&&Y.structs)try{for(var gt=P(Y.structs),Fe=gt.next();!Fe.done;Fe=gt.next()){var ne=Fe.value,yt=ne.name;le.set(yt,r({name:yt,baseName:ne.base,fields:ne.fields.map(function(It){return{name:It.name,typeName:It.type,type:null}}),serialize:K,deserialize:Z}))}}catch(It){re={error:It}}finally{try{Fe&&!Fe.done&&(ce=gt.return)&&ce.call(gt)}finally{if(re)throw re.error}}if(Y&&Y.variants)try{for(var We=P(Y.variants),Be=We.next();!Be.done;Be=We.next()){var Ze=Be.value,pe=Ze.name;le.set(pe,r({name:pe,fields:Ze.types.map(function(It){return{name:It,typeName:It,type:null}}),serialize:Q,deserialize:W}))}}catch(It){Ge={error:It}}finally{try{Be&&!Be.done&&(De=We.return)&&De.call(We)}finally{if(Ge)throw Ge.error}}try{for(var be=P(le),de=be.next();!de.done;de=be.next()){var et;(et=I(de.value,2)[1]).baseName&&(et.base=k.getType(le,et.baseName));try{for(var vt=(xe=void 0,P(et.fields)),it=vt.next();!it.done;it=vt.next()){var at=it.value;at.type=k.getType(le,at.typeName)}}catch(At){xe={error:At}}finally{try{it&&!it.done&&(te=vt.return)&&te.call(vt)}finally{if(xe)throw xe.error}}}}catch(It){we={error:It}}finally{try{de&&!de.done&&(Oe=be.return)&&Oe.call(be)}finally{if(we)throw we.error}}return le},k.transactionHeader=function(Le,Y){var z=Le.header?Le.header.timestamp:Le.timestamp,G=parseInt(function(Le){return Le.substr(6,2)+Le.substr(4,2)+Le.substr(2,2)+Le.substr(0,2)}(Le.id.substr(16,8)),16);return{expiration:k.timePointSecToDate(k.dateToTimePointSec(z)+Y),ref_block_num:65535&Le.block_num,ref_block_prefix:G}},k.serializeActionData=function(Le,Y,z,G,re,ce){var Ge=Le.actions.get(z);if(!Ge)throw new Error("Unknown action "+z+" in contract "+Y);var De=new S({textEncoder:re,textDecoder:ce});return Ge.serialize(De,G),k.arrayToHex(De.asUint8Array())},k.serializeAction=function(Le,Y,z,G,re,ce,Ge){return{account:Y,name:z,authorization:G,data:k.serializeActionData(Le,Y,z,re,ce,Ge)}},k.deserializeActionData=function(Le,Y,z,G,re,ce){var Ge=Le.actions.get(z);if("string"==typeof G&&(G=k.hexToUint8Array(G)),!Ge)throw new Error("Unknown action "+z+" in contract "+Y);var De=new S({textDecoder:ce,textEncoder:re});return De.pushArray(G),Ge.deserialize(De)},k.deserializeAction=function(Le,Y,z,G,re,ce,Ge){return{account:Y,name:z,authorization:G,data:k.deserializeActionData(Le,Y,z,re,ce,Ge)}},k.serializeAnyvar=function(Le,Y){var z,G,re,ce,Ge,De,we,Oe,xe;null===Y?(Oe=(z=I([Ue.null_t,Y],2))[0],xe=z[1]):"string"==typeof Y?(Oe=(G=I([Ue.string,Y],2))[0],xe=G[1]):"number"==typeof Y?(Oe=(re=I([Ue.int32,Y],2))[0],xe=re[1]):Y instanceof Uint8Array?(Oe=(ce=I([Ue.bytes,Y],2))[0],xe=ce[1]):Array.isArray(Y)?(Oe=(Ge=I([Ue.any_array,Y],2))[0],xe=Ge[1]):2===Object.keys(Y).length&&Y.hasOwnProperty("type")&&Y.hasOwnProperty("value")?(Oe=(De=I([Ue[Y.type],Y.value],2))[0],xe=De[1]):(Oe=(we=I([Ue.any_object,Y],2))[0],xe=we[1]),Le.pushVaruint32(Oe.index),Oe.type.serialize(Le,xe)},k.deserializeAnyvar=function(Le,Y){var z=Le.getVaruint32();if(z>=Se.length)throw new Error("Tried to deserialize unknown anyvar type");var G=Se[z],re=G.type.deserialize(Le,Y);return Y&&Y.options.useShortForm||G.useShortForm?re:{type:G.type.name,value:re}},k.deserializeAnyvarShort=function(Le){return k.deserializeAnyvar(Le,new w({useShortForm:!0}))},k.serializeAnyObject=function(Le,Y){var z,G,re=Object.entries(Y);Le.pushVaruint32(re.length);try{for(var ce=P(re),Ge=ce.next();!Ge.done;Ge=ce.next()){var De=I(Ge.value,2),Oe=De[1];Le.pushString(De[0]),k.serializeAnyvar(Le,Oe)}}catch(xe){z={error:xe}}finally{try{Ge&&!Ge.done&&(G=ce.return)&&G.call(ce)}finally{if(z)throw z.error}}},k.deserializeAnyObject=function(Le,Y){for(var z=Le.getVaruint32(),G={},re=0;re{"use strict";k.pc=void 0;x(22385);x(9016);var P=x(17345);Object.defineProperty(k,"pc",{enumerable:!0,get:function(){return P.JsonRpc}}),x(88711),x(54882);x(94895);x(75687)},90165:q=>{"use strict";var x=function(){function M(P,o){for(var w=0;w>>32-w}},{key:"hash",value:function(o){for(var w=M.pad(o),S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],y=w.byteLength/64,m=new Array(y).fill(void 0).map(function(i,u){return function(d){return new DataView(w,64*u,64).getUint32(4*d,!0)}}),E=[1732584193,4023233417,2562383102,271733878,3285377520],C=0;C=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void M(!1,"Invalid character in "+s)}function D(s,e,i){var u=S(s,i);return i-1>=e&&(u|=S(s,i-1)<<4),u}function A(s,e,i,u){for(var d=0,c=0,r=Math.min(s.length,i),h=e;h=49?F-49+10:F>=17?F-17+10:F,M(F>=0&&c0?e:i},o.min=function(e,i){return e.cmp(i)<0?e:i},o.prototype._init=function(e,i,u){if("number"==typeof e)return this._initNumber(e,i,u);if("object"==typeof e)return this._initArray(e,i,u);"hex"===i&&(i=16),M(i===(0|i)&&i>=2&&i<=36);var d=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d=0;d-=3)this.words[c]|=(r=e[d]|e[d-1]<<8|e[d-2]<<16)<>>26-h&67108863,(h+=24)>=26&&(h-=26,c++);else if("le"===u)for(d=0,c=0;d>>26-h&67108863,(h+=24)>=26&&(h-=26,c++);return this._strip()},o.prototype._parseHex=function(e,i,u){this.length=Math.ceil((e.length-i)/6),this.words=new Array(this.length);for(var d=0;d=i;d-=2)h=D(e,i,d)<=18?(c-=18,this.words[r+=1]|=h>>>26):c+=8;else for(d=(e.length-i)%2==0?i+1:i;d=18?(c-=18,this.words[r+=1]|=h>>>26):c+=8;this._strip()},o.prototype._parseBase=function(e,i,u){this.words=[0],this.length=1;for(var d=0,c=1;c<=67108863;c*=i)d++;d--,c=c/i|0;for(var r=e.length-u,h=r%d,F=Math.min(r,r-h)+u,T=0,H=u;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch{o.prototype.inspect=p}else o.prototype.inspect=p;function p(){return(this.red?""}var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function L(s,e,i){i.negative=e.negative^s.negative;var u=s.length+e.length|0;i.length=u,u=u-1|0;var d=0|s.words[0],c=0|e.words[0],r=d*c,F=r/67108864|0;i.words[0]=67108863&r;for(var T=1;T>>26,ae=67108863&F,Ae=Math.min(T,e.length-1),fe=Math.max(0,T-s.length+1);fe<=Ae;fe++)H+=(r=(d=0|s.words[T-fe|0])*(c=0|e.words[fe])+ae)/67108864|0,ae=67108863&r;i.words[T]=0|ae,F=0|H}return 0!==F?i.words[T]=0|F:i.length--,i._strip()}o.prototype.toString=function(e,i){var u;if(i=0|i||1,16===(e=e||10)||"hex"===e){u="";for(var d=0,c=0,r=0;r>>24-d&16777215)||r!==this.length-1?b[6-F.length]+F+u:F+u,(d+=2)>=26&&(d-=26,r--)}for(0!==c&&(u=c.toString(16)+u);u.length%i!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(e===(0|e)&&e>=2&&e<=36){var T=y[e],H=m[e];u="";var ae=this.clone();for(ae.negative=0;!ae.isZero();){var Ae=ae.modrn(H).toString(e);u=(ae=ae.idivn(H)).isZero()?Ae+u:b[T-Ae.length]+Ae+u}for(this.isZero()&&(u="0"+u);u.length%i!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}M(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&M(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},w&&(o.prototype.toBuffer=function(e,i){return this.toArrayLike(w,e,i)}),o.prototype.toArray=function(e,i){return this.toArrayLike(Array,e,i)},o.prototype.toArrayLike=function(e,i,u){this._strip();var d=this.byteLength(),c=u||Math.max(1,d);M(d<=c,"byte array longer than desired length"),M(c>0,"Requested array length <= 0");var r=function(e,i){return e.allocUnsafe?e.allocUnsafe(i):new e(i)}(e,c);return this["_toArrayLike"+("le"===i?"LE":"BE")](r,d),r},o.prototype._toArrayLikeLE=function(e,i){for(var u=0,d=0,c=0,r=0;c>8&255),u>16&255),6===r?(u>24&255),d=0,r=0):(d=h>>>24,r+=2)}if(u=0&&(e[u--]=h>>8&255),u>=0&&(e[u--]=h>>16&255),6===r?(u>=0&&(e[u--]=h>>24&255),d=0,r=0):(d=h>>>24,r+=2)}if(u>=0)for(e[u--]=d;u>=0;)e[u--]=0},o.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var i=e,u=0;return i>=4096&&(u+=13,i>>>=13),i>=64&&(u+=7,i>>>=7),i>=8&&(u+=4,i>>>=4),i>=2&&(u+=2,i>>>=2),u+i},o.prototype._zeroBits=function(e){if(0===e)return 26;var i=e,u=0;return 0==(8191&i)&&(u+=13,i>>>=13),0==(127&i)&&(u+=7,i>>>=7),0==(15&i)&&(u+=4,i>>>=4),0==(3&i)&&(u+=2,i>>>=2),0==(1&i)&&u++,u},o.prototype.bitLength=function(){var i=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+i},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var i;i=this.length>e.length?e:this;for(var u=0;ue.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var i,u;this.length>e.length?(i=this,u=e):(i=e,u=this);for(var d=0;de.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){M("number"==typeof e&&e>=0);var i=0|Math.ceil(e/26),u=e%26;this._expand(i),u>0&&i--;for(var d=0;d0&&(this.words[d]=~this.words[d]&67108863>>26-u),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,i){M("number"==typeof e&&e>=0);var u=e/26|0,d=e%26;return this._expand(u+1),this.words[u]=i?this.words[u]|1<e.length?(u=this,d=e):(u=e,d=this);for(var c=0,r=0;r>>26;for(;0!==c&&r>>26;if(this.length=u.length,0!==c)this.words[this.length]=c,this.length++;else if(u!==this)for(;re.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var d,c,u=this.cmp(e);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(d=this,c=e):(d=e,c=this);for(var r=0,h=0;h>26,this.words[h]=67108863&i;for(;0!==r&&h>26,this.words[h]=67108863&i;if(0===r&&h>>13,Ee=0|d[1],ee=8191&Ee,se=Ee>>>13,ze=0|d[2],ye=8191&ze,ue=ze>>>13,je=0|d[3],Ne=8191&je,Ye=je>>>13,Et=0|d[4],ot=8191&Et,lt=Et>>>13,Lt=0|d[5],ct=8191&Lt,He=Lt>>>13,Ue=0|d[6],Se=8191&Ue,Ve=Ue>>>13,Le=0|d[7],Y=8191&Le,z=Le>>>13,G=0|d[8],re=8191&G,ce=G>>>13,Ge=0|d[9],De=8191&Ge,we=Ge>>>13,Oe=0|c[0],xe=8191&Oe,te=Oe>>>13,le=0|c[1],me=8191&le,Pe=le>>>13,st=0|c[2],tt=8191&st,et=st>>>13,gt=0|c[3],Fe=8191>,ne=gt>>>13,yt=0|c[4],rt=8191&yt,$=yt>>>13,We=0|c[5],Be=8191&We,Ze=We>>>13,pe=0|c[6],ve=8191&pe,be=pe>>>13,de=0|c[7],Re=8191&de,Je=de>>>13,vt=0|c[8],it=8191&vt,at=vt>>>13,It=0|c[9],At=8191&It,Rt=It>>>13;u.negative=e.negative^i.negative,u.length=19;var Pt=(h+(F=Math.imul(Ae,xe))|0)+((8191&(T=(T=Math.imul(Ae,te))+Math.imul(fe,xe)|0))<<13)|0;h=((H=Math.imul(fe,te))+(T>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,F=Math.imul(ee,xe),T=(T=Math.imul(ee,te))+Math.imul(se,xe)|0,H=Math.imul(se,te);var Vt=(h+(F=F+Math.imul(Ae,me)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Pe)|0)+Math.imul(fe,me)|0))<<13)|0;h=((H=H+Math.imul(fe,Pe)|0)+(T>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,F=Math.imul(ye,xe),T=(T=Math.imul(ye,te))+Math.imul(ue,xe)|0,H=Math.imul(ue,te),F=F+Math.imul(ee,me)|0,T=(T=T+Math.imul(ee,Pe)|0)+Math.imul(se,me)|0,H=H+Math.imul(se,Pe)|0;var er=(h+(F=F+Math.imul(Ae,tt)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,et)|0)+Math.imul(fe,tt)|0))<<13)|0;h=((H=H+Math.imul(fe,et)|0)+(T>>>13)|0)+(er>>>26)|0,er&=67108863,F=Math.imul(Ne,xe),T=(T=Math.imul(Ne,te))+Math.imul(Ye,xe)|0,H=Math.imul(Ye,te),F=F+Math.imul(ye,me)|0,T=(T=T+Math.imul(ye,Pe)|0)+Math.imul(ue,me)|0,H=H+Math.imul(ue,Pe)|0,F=F+Math.imul(ee,tt)|0,T=(T=T+Math.imul(ee,et)|0)+Math.imul(se,tt)|0,H=H+Math.imul(se,et)|0;var nr=(h+(F=F+Math.imul(Ae,Fe)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,ne)|0)+Math.imul(fe,Fe)|0))<<13)|0;h=((H=H+Math.imul(fe,ne)|0)+(T>>>13)|0)+(nr>>>26)|0,nr&=67108863,F=Math.imul(ot,xe),T=(T=Math.imul(ot,te))+Math.imul(lt,xe)|0,H=Math.imul(lt,te),F=F+Math.imul(Ne,me)|0,T=(T=T+Math.imul(Ne,Pe)|0)+Math.imul(Ye,me)|0,H=H+Math.imul(Ye,Pe)|0,F=F+Math.imul(ye,tt)|0,T=(T=T+Math.imul(ye,et)|0)+Math.imul(ue,tt)|0,H=H+Math.imul(ue,et)|0,F=F+Math.imul(ee,Fe)|0,T=(T=T+Math.imul(ee,ne)|0)+Math.imul(se,Fe)|0,H=H+Math.imul(se,ne)|0;var tr=(h+(F=F+Math.imul(Ae,rt)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,$)|0)+Math.imul(fe,rt)|0))<<13)|0;h=((H=H+Math.imul(fe,$)|0)+(T>>>13)|0)+(tr>>>26)|0,tr&=67108863,F=Math.imul(ct,xe),T=(T=Math.imul(ct,te))+Math.imul(He,xe)|0,H=Math.imul(He,te),F=F+Math.imul(ot,me)|0,T=(T=T+Math.imul(ot,Pe)|0)+Math.imul(lt,me)|0,H=H+Math.imul(lt,Pe)|0,F=F+Math.imul(Ne,tt)|0,T=(T=T+Math.imul(Ne,et)|0)+Math.imul(Ye,tt)|0,H=H+Math.imul(Ye,et)|0,F=F+Math.imul(ye,Fe)|0,T=(T=T+Math.imul(ye,ne)|0)+Math.imul(ue,Fe)|0,H=H+Math.imul(ue,ne)|0,F=F+Math.imul(ee,rt)|0,T=(T=T+Math.imul(ee,$)|0)+Math.imul(se,rt)|0,H=H+Math.imul(se,$)|0;var Wt=(h+(F=F+Math.imul(Ae,Be)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Ze)|0)+Math.imul(fe,Be)|0))<<13)|0;h=((H=H+Math.imul(fe,Ze)|0)+(T>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,F=Math.imul(Se,xe),T=(T=Math.imul(Se,te))+Math.imul(Ve,xe)|0,H=Math.imul(Ve,te),F=F+Math.imul(ct,me)|0,T=(T=T+Math.imul(ct,Pe)|0)+Math.imul(He,me)|0,H=H+Math.imul(He,Pe)|0,F=F+Math.imul(ot,tt)|0,T=(T=T+Math.imul(ot,et)|0)+Math.imul(lt,tt)|0,H=H+Math.imul(lt,et)|0,F=F+Math.imul(Ne,Fe)|0,T=(T=T+Math.imul(Ne,ne)|0)+Math.imul(Ye,Fe)|0,H=H+Math.imul(Ye,ne)|0,F=F+Math.imul(ye,rt)|0,T=(T=T+Math.imul(ye,$)|0)+Math.imul(ue,rt)|0,H=H+Math.imul(ue,$)|0,F=F+Math.imul(ee,Be)|0,T=(T=T+Math.imul(ee,Ze)|0)+Math.imul(se,Be)|0,H=H+Math.imul(se,Ze)|0;var Yt=(h+(F=F+Math.imul(Ae,ve)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,be)|0)+Math.imul(fe,ve)|0))<<13)|0;h=((H=H+Math.imul(fe,be)|0)+(T>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,F=Math.imul(Y,xe),T=(T=Math.imul(Y,te))+Math.imul(z,xe)|0,H=Math.imul(z,te),F=F+Math.imul(Se,me)|0,T=(T=T+Math.imul(Se,Pe)|0)+Math.imul(Ve,me)|0,H=H+Math.imul(Ve,Pe)|0,F=F+Math.imul(ct,tt)|0,T=(T=T+Math.imul(ct,et)|0)+Math.imul(He,tt)|0,H=H+Math.imul(He,et)|0,F=F+Math.imul(ot,Fe)|0,T=(T=T+Math.imul(ot,ne)|0)+Math.imul(lt,Fe)|0,H=H+Math.imul(lt,ne)|0,F=F+Math.imul(Ne,rt)|0,T=(T=T+Math.imul(Ne,$)|0)+Math.imul(Ye,rt)|0,H=H+Math.imul(Ye,$)|0,F=F+Math.imul(ye,Be)|0,T=(T=T+Math.imul(ye,Ze)|0)+Math.imul(ue,Be)|0,H=H+Math.imul(ue,Ze)|0,F=F+Math.imul(ee,ve)|0,T=(T=T+Math.imul(ee,be)|0)+Math.imul(se,ve)|0,H=H+Math.imul(se,be)|0;var Ht=(h+(F=F+Math.imul(Ae,Re)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Je)|0)+Math.imul(fe,Re)|0))<<13)|0;h=((H=H+Math.imul(fe,Je)|0)+(T>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,F=Math.imul(re,xe),T=(T=Math.imul(re,te))+Math.imul(ce,xe)|0,H=Math.imul(ce,te),F=F+Math.imul(Y,me)|0,T=(T=T+Math.imul(Y,Pe)|0)+Math.imul(z,me)|0,H=H+Math.imul(z,Pe)|0,F=F+Math.imul(Se,tt)|0,T=(T=T+Math.imul(Se,et)|0)+Math.imul(Ve,tt)|0,H=H+Math.imul(Ve,et)|0,F=F+Math.imul(ct,Fe)|0,T=(T=T+Math.imul(ct,ne)|0)+Math.imul(He,Fe)|0,H=H+Math.imul(He,ne)|0,F=F+Math.imul(ot,rt)|0,T=(T=T+Math.imul(ot,$)|0)+Math.imul(lt,rt)|0,H=H+Math.imul(lt,$)|0,F=F+Math.imul(Ne,Be)|0,T=(T=T+Math.imul(Ne,Ze)|0)+Math.imul(Ye,Be)|0,H=H+Math.imul(Ye,Ze)|0,F=F+Math.imul(ye,ve)|0,T=(T=T+Math.imul(ye,be)|0)+Math.imul(ue,ve)|0,H=H+Math.imul(ue,be)|0,F=F+Math.imul(ee,Re)|0,T=(T=T+Math.imul(ee,Je)|0)+Math.imul(se,Re)|0,H=H+Math.imul(se,Je)|0;var Bt=(h+(F=F+Math.imul(Ae,it)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,at)|0)+Math.imul(fe,it)|0))<<13)|0;h=((H=H+Math.imul(fe,at)|0)+(T>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,F=Math.imul(De,xe),T=(T=Math.imul(De,te))+Math.imul(we,xe)|0,H=Math.imul(we,te),F=F+Math.imul(re,me)|0,T=(T=T+Math.imul(re,Pe)|0)+Math.imul(ce,me)|0,H=H+Math.imul(ce,Pe)|0,F=F+Math.imul(Y,tt)|0,T=(T=T+Math.imul(Y,et)|0)+Math.imul(z,tt)|0,H=H+Math.imul(z,et)|0,F=F+Math.imul(Se,Fe)|0,T=(T=T+Math.imul(Se,ne)|0)+Math.imul(Ve,Fe)|0,H=H+Math.imul(Ve,ne)|0,F=F+Math.imul(ct,rt)|0,T=(T=T+Math.imul(ct,$)|0)+Math.imul(He,rt)|0,H=H+Math.imul(He,$)|0,F=F+Math.imul(ot,Be)|0,T=(T=T+Math.imul(ot,Ze)|0)+Math.imul(lt,Be)|0,H=H+Math.imul(lt,Ze)|0,F=F+Math.imul(Ne,ve)|0,T=(T=T+Math.imul(Ne,be)|0)+Math.imul(Ye,ve)|0,H=H+Math.imul(Ye,be)|0,F=F+Math.imul(ye,Re)|0,T=(T=T+Math.imul(ye,Je)|0)+Math.imul(ue,Re)|0,H=H+Math.imul(ue,Je)|0,F=F+Math.imul(ee,it)|0,T=(T=T+Math.imul(ee,at)|0)+Math.imul(se,it)|0,H=H+Math.imul(se,at)|0;var jt=(h+(F=F+Math.imul(Ae,At)|0)|0)+((8191&(T=(T=T+Math.imul(Ae,Rt)|0)+Math.imul(fe,At)|0))<<13)|0;h=((H=H+Math.imul(fe,Rt)|0)+(T>>>13)|0)+(jt>>>26)|0,jt&=67108863,F=Math.imul(De,me),T=(T=Math.imul(De,Pe))+Math.imul(we,me)|0,H=Math.imul(we,Pe),F=F+Math.imul(re,tt)|0,T=(T=T+Math.imul(re,et)|0)+Math.imul(ce,tt)|0,H=H+Math.imul(ce,et)|0,F=F+Math.imul(Y,Fe)|0,T=(T=T+Math.imul(Y,ne)|0)+Math.imul(z,Fe)|0,H=H+Math.imul(z,ne)|0,F=F+Math.imul(Se,rt)|0,T=(T=T+Math.imul(Se,$)|0)+Math.imul(Ve,rt)|0,H=H+Math.imul(Ve,$)|0,F=F+Math.imul(ct,Be)|0,T=(T=T+Math.imul(ct,Ze)|0)+Math.imul(He,Be)|0,H=H+Math.imul(He,Ze)|0,F=F+Math.imul(ot,ve)|0,T=(T=T+Math.imul(ot,be)|0)+Math.imul(lt,ve)|0,H=H+Math.imul(lt,be)|0,F=F+Math.imul(Ne,Re)|0,T=(T=T+Math.imul(Ne,Je)|0)+Math.imul(Ye,Re)|0,H=H+Math.imul(Ye,Je)|0,F=F+Math.imul(ye,it)|0,T=(T=T+Math.imul(ye,at)|0)+Math.imul(ue,it)|0,H=H+Math.imul(ue,at)|0;var Gt=(h+(F=F+Math.imul(ee,At)|0)|0)+((8191&(T=(T=T+Math.imul(ee,Rt)|0)+Math.imul(se,At)|0))<<13)|0;h=((H=H+Math.imul(se,Rt)|0)+(T>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,F=Math.imul(De,tt),T=(T=Math.imul(De,et))+Math.imul(we,tt)|0,H=Math.imul(we,et),F=F+Math.imul(re,Fe)|0,T=(T=T+Math.imul(re,ne)|0)+Math.imul(ce,Fe)|0,H=H+Math.imul(ce,ne)|0,F=F+Math.imul(Y,rt)|0,T=(T=T+Math.imul(Y,$)|0)+Math.imul(z,rt)|0,H=H+Math.imul(z,$)|0,F=F+Math.imul(Se,Be)|0,T=(T=T+Math.imul(Se,Ze)|0)+Math.imul(Ve,Be)|0,H=H+Math.imul(Ve,Ze)|0,F=F+Math.imul(ct,ve)|0,T=(T=T+Math.imul(ct,be)|0)+Math.imul(He,ve)|0,H=H+Math.imul(He,be)|0,F=F+Math.imul(ot,Re)|0,T=(T=T+Math.imul(ot,Je)|0)+Math.imul(lt,Re)|0,H=H+Math.imul(lt,Je)|0,F=F+Math.imul(Ne,it)|0,T=(T=T+Math.imul(Ne,at)|0)+Math.imul(Ye,it)|0,H=H+Math.imul(Ye,at)|0;var Zt=(h+(F=F+Math.imul(ye,At)|0)|0)+((8191&(T=(T=T+Math.imul(ye,Rt)|0)+Math.imul(ue,At)|0))<<13)|0;h=((H=H+Math.imul(ue,Rt)|0)+(T>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,F=Math.imul(De,Fe),T=(T=Math.imul(De,ne))+Math.imul(we,Fe)|0,H=Math.imul(we,ne),F=F+Math.imul(re,rt)|0,T=(T=T+Math.imul(re,$)|0)+Math.imul(ce,rt)|0,H=H+Math.imul(ce,$)|0,F=F+Math.imul(Y,Be)|0,T=(T=T+Math.imul(Y,Ze)|0)+Math.imul(z,Be)|0,H=H+Math.imul(z,Ze)|0,F=F+Math.imul(Se,ve)|0,T=(T=T+Math.imul(Se,be)|0)+Math.imul(Ve,ve)|0,H=H+Math.imul(Ve,be)|0,F=F+Math.imul(ct,Re)|0,T=(T=T+Math.imul(ct,Je)|0)+Math.imul(He,Re)|0,H=H+Math.imul(He,Je)|0,F=F+Math.imul(ot,it)|0,T=(T=T+Math.imul(ot,at)|0)+Math.imul(lt,it)|0,H=H+Math.imul(lt,at)|0;var Jt=(h+(F=F+Math.imul(Ne,At)|0)|0)+((8191&(T=(T=T+Math.imul(Ne,Rt)|0)+Math.imul(Ye,At)|0))<<13)|0;h=((H=H+Math.imul(Ye,Rt)|0)+(T>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,F=Math.imul(De,rt),T=(T=Math.imul(De,$))+Math.imul(we,rt)|0,H=Math.imul(we,$),F=F+Math.imul(re,Be)|0,T=(T=T+Math.imul(re,Ze)|0)+Math.imul(ce,Be)|0,H=H+Math.imul(ce,Ze)|0,F=F+Math.imul(Y,ve)|0,T=(T=T+Math.imul(Y,be)|0)+Math.imul(z,ve)|0,H=H+Math.imul(z,be)|0,F=F+Math.imul(Se,Re)|0,T=(T=T+Math.imul(Se,Je)|0)+Math.imul(Ve,Re)|0,H=H+Math.imul(Ve,Je)|0,F=F+Math.imul(ct,it)|0,T=(T=T+Math.imul(ct,at)|0)+Math.imul(He,it)|0,H=H+Math.imul(He,at)|0;var zt=(h+(F=F+Math.imul(ot,At)|0)|0)+((8191&(T=(T=T+Math.imul(ot,Rt)|0)+Math.imul(lt,At)|0))<<13)|0;h=((H=H+Math.imul(lt,Rt)|0)+(T>>>13)|0)+(zt>>>26)|0,zt&=67108863,F=Math.imul(De,Be),T=(T=Math.imul(De,Ze))+Math.imul(we,Be)|0,H=Math.imul(we,Ze),F=F+Math.imul(re,ve)|0,T=(T=T+Math.imul(re,be)|0)+Math.imul(ce,ve)|0,H=H+Math.imul(ce,be)|0,F=F+Math.imul(Y,Re)|0,T=(T=T+Math.imul(Y,Je)|0)+Math.imul(z,Re)|0,H=H+Math.imul(z,Je)|0,F=F+Math.imul(Se,it)|0,T=(T=T+Math.imul(Se,at)|0)+Math.imul(Ve,it)|0,H=H+Math.imul(Ve,at)|0;var _t=(h+(F=F+Math.imul(ct,At)|0)|0)+((8191&(T=(T=T+Math.imul(ct,Rt)|0)+Math.imul(He,At)|0))<<13)|0;h=((H=H+Math.imul(He,Rt)|0)+(T>>>13)|0)+(_t>>>26)|0,_t&=67108863,F=Math.imul(De,ve),T=(T=Math.imul(De,be))+Math.imul(we,ve)|0,H=Math.imul(we,be),F=F+Math.imul(re,Re)|0,T=(T=T+Math.imul(re,Je)|0)+Math.imul(ce,Re)|0,H=H+Math.imul(ce,Je)|0,F=F+Math.imul(Y,it)|0,T=(T=T+Math.imul(Y,at)|0)+Math.imul(z,it)|0,H=H+Math.imul(z,at)|0;var St=(h+(F=F+Math.imul(Se,At)|0)|0)+((8191&(T=(T=T+Math.imul(Se,Rt)|0)+Math.imul(Ve,At)|0))<<13)|0;h=((H=H+Math.imul(Ve,Rt)|0)+(T>>>13)|0)+(St>>>26)|0,St&=67108863,F=Math.imul(De,Re),T=(T=Math.imul(De,Je))+Math.imul(we,Re)|0,H=Math.imul(we,Je),F=F+Math.imul(re,it)|0,T=(T=T+Math.imul(re,at)|0)+Math.imul(ce,it)|0,H=H+Math.imul(ce,at)|0;var Ut=(h+(F=F+Math.imul(Y,At)|0)|0)+((8191&(T=(T=T+Math.imul(Y,Rt)|0)+Math.imul(z,At)|0))<<13)|0;h=((H=H+Math.imul(z,Rt)|0)+(T>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,F=Math.imul(De,it),T=(T=Math.imul(De,at))+Math.imul(we,it)|0,H=Math.imul(we,at);var Nt=(h+(F=F+Math.imul(re,At)|0)|0)+((8191&(T=(T=T+Math.imul(re,Rt)|0)+Math.imul(ce,At)|0))<<13)|0;h=((H=H+Math.imul(ce,Rt)|0)+(T>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Ct=(h+(F=Math.imul(De,At))|0)+((8191&(T=(T=Math.imul(De,Rt))+Math.imul(we,At)|0))<<13)|0;return h=((H=Math.imul(we,Rt))+(T>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r[0]=Pt,r[1]=Vt,r[2]=er,r[3]=nr,r[4]=tr,r[5]=Wt,r[6]=Yt,r[7]=Ht,r[8]=Bt,r[9]=jt,r[10]=Gt,r[11]=Zt,r[12]=Jt,r[13]=zt,r[14]=_t,r[15]=St,r[16]=Ut,r[17]=Nt,r[18]=Ct,0!==h&&(r[19]=h,u.length++),u};function U(s,e,i){i.negative=e.negative^s.negative,i.length=s.length+e.length;for(var u=0,d=0,c=0;c>>26)|0)>>>26,r&=67108863}i.words[c]=h,u=r,r=d}return 0!==u?i.words[c]=u:i.length--,i._strip()}function O(s,e,i){return U(s,e,i)}function j(s,e){this.x=s,this.y=e}Math.imul||(R=L),o.prototype.mulTo=function(e,i){var d=this.length+e.length;return 10===this.length&&10===e.length?R(this,e,i):d<63?L(this,e,i):d<1024?U(this,e,i):O(this,e,i)},j.prototype.makeRBT=function(e){for(var i=new Array(e),u=o.prototype._countBits(e)-1,d=0;d>=1;return d},j.prototype.permute=function(e,i,u,d,c,r){for(var h=0;h>>=1)c++;return 1<>>=13),c>>>=13;for(r=2*i;r>=26,u+=c/67108864|0,u+=r>>>26,this.words[d]=67108863&r}return 0!==u&&(this.words[d]=u,this.length++),i?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var i=function C(s){for(var e=new Array(s.bitLength()),i=0;i>>i%26&1;return e}(e);if(0===i.length)return new o(1);for(var u=this,d=0;d=0);var c,i=e%26,u=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var r=0;for(c=0;c>>26-i}r&&(this.words[c]=r,this.length++)}if(0!==u){for(c=this.length-1;c>=0;c--)this.words[c+u]=this.words[c];for(c=0;c=0),d=i?(i-i%26)/26:0;var c=e%26,r=Math.min((e-c)/26,this.length),h=67108863^67108863>>>c<r)for(this.length-=r,T=0;T=0&&(0!==H||T>=d);T--){var ae=0|this.words[T];this.words[T]=H<<26-c|ae>>>c,H=ae&h}return F&&0!==H&&(F.words[F.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,i,u){return M(0===this.negative),this.iushrn(e,i,u)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){M("number"==typeof e&&e>=0);var i=e%26,u=(e-i)/26;return!(this.length<=u||!(this.words[u]&1<=0);var i=e%26,u=(e-i)/26;return M(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==i&&u++,this.length=Math.min(u,this.length),0!==i&&(this.words[this.length-1]&=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},o.prototype.isubn=function(e){if(M("number"==typeof e),M(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(F/67108864|0),this.words[c+u]=67108863&r}for(;c>26,this.words[c+u]=67108863&r;if(0===h)return this._strip();for(M(-1===h),h=0,c=0;c>26,this.words[c]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,i){var u,d=this.clone(),c=e,r=0|c.words[c.length-1];0!=(u=26-this._countBits(r))&&(c=c.ushln(u),d.iushln(u),r=0|c.words[c.length-1]);var T,F=d.length-c.length;if("mod"!==i){(T=new o(null)).length=F+1,T.words=new Array(T.length);for(var H=0;H=0;Ae--){var fe=67108864*(0|d.words[c.length+Ae])+(0|d.words[c.length+Ae-1]);for(fe=Math.min(fe/r|0,67108863),d._ishlnsubmul(c,fe,Ae);0!==d.negative;)fe--,d.negative=0,d._ishlnsubmul(c,1,Ae),d.isZero()||(d.negative^=1);T&&(T.words[Ae]=fe)}return T&&T._strip(),d._strip(),"div"!==i&&0!==u&&d.iushrn(u),{div:T||null,mod:d}},o.prototype.divmod=function(e,i,u){return M(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(r=this.neg().divmod(e,i),"mod"!==i&&(d=r.div.neg()),"div"!==i&&(c=r.mod.neg(),u&&0!==c.negative&&c.iadd(e)),{div:d,mod:c}):0===this.negative&&0!==e.negative?(r=this.divmod(e.neg(),i),"mod"!==i&&(d=r.div.neg()),{div:d,mod:r.mod}):0!=(this.negative&e.negative)?(r=this.neg().divmod(e.neg(),i),"div"!==i&&(c=r.mod.neg(),u&&0!==c.negative&&c.isub(e)),{div:r.div,mod:c}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===i?{div:this.divn(e.words[0]),mod:null}:"mod"===i?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,i);var d,c,r},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var i=this.divmod(e);if(i.mod.isZero())return i.div;var u=0!==i.div.negative?i.mod.isub(e):i.mod,d=e.ushrn(1),c=e.andln(1),r=u.cmp(d);return r<0||1===c&&0===r?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},o.prototype.modrn=function(e){var i=e<0;i&&(e=-e),M(e<=67108863);for(var u=(1<<26)%e,d=0,c=this.length-1;c>=0;c--)d=(u*d+(0|this.words[c]))%e;return i?-d:d},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var i=e<0;i&&(e=-e),M(e<=67108863);for(var u=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*u;this.words[d]=c/e|0,u=c%e}return this._strip(),i?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){M(0===e.negative),M(!e.isZero());var i=this,u=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var d=new o(1),c=new o(0),r=new o(0),h=new o(1),F=0;i.isEven()&&u.isEven();)i.iushrn(1),u.iushrn(1),++F;for(var T=u.clone(),H=i.clone();!i.isZero();){for(var ae=0,Ae=1;0==(i.words[0]&Ae)&&ae<26;++ae,Ae<<=1);if(ae>0)for(i.iushrn(ae);ae-- >0;)(d.isOdd()||c.isOdd())&&(d.iadd(T),c.isub(H)),d.iushrn(1),c.iushrn(1);for(var fe=0,Ee=1;0==(u.words[0]&Ee)&&fe<26;++fe,Ee<<=1);if(fe>0)for(u.iushrn(fe);fe-- >0;)(r.isOdd()||h.isOdd())&&(r.iadd(T),h.isub(H)),r.iushrn(1),h.iushrn(1);i.cmp(u)>=0?(i.isub(u),d.isub(r),c.isub(h)):(u.isub(i),r.isub(d),h.isub(c))}return{a:r,b:h,gcd:u.iushln(F)}},o.prototype._invmp=function(e){M(0===e.negative),M(!e.isZero());var ae,i=this,u=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var d=new o(1),c=new o(0),r=u.clone();i.cmpn(1)>0&&u.cmpn(1)>0;){for(var h=0,F=1;0==(i.words[0]&F)&&h<26;++h,F<<=1);if(h>0)for(i.iushrn(h);h-- >0;)d.isOdd()&&d.iadd(r),d.iushrn(1);for(var T=0,H=1;0==(u.words[0]&H)&&T<26;++T,H<<=1);if(T>0)for(u.iushrn(T);T-- >0;)c.isOdd()&&c.iadd(r),c.iushrn(1);i.cmp(u)>=0?(i.isub(u),d.isub(c)):(u.isub(i),c.isub(d))}return(ae=0===i.cmpn(1)?d:c).cmpn(0)<0&&ae.iadd(e),ae},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var i=this.clone(),u=e.clone();i.negative=0,u.negative=0;for(var d=0;i.isEven()&&u.isEven();d++)i.iushrn(1),u.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;u.isEven();)u.iushrn(1);var c=i.cmp(u);if(c<0){var r=i;i=u,u=r}else if(0===c||0===u.cmpn(1))break;i.isub(u)}return u.iushln(d)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){M("number"==typeof e);var i=e%26,u=(e-i)/26,d=1<>>26,this.words[r]=h&=67108863}return 0!==c&&(this.words[r]=c,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var u,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)u=1;else{i&&(e=-e),M(e<=67108863,"Number is too big");var d=0|this.words[0];u=d===e?0:de.length)return 1;if(this.length=0;u--){var d=0|this.words[u],c=0|e.words[u];if(d!==c){dc&&(i=1);break}}return i},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new t(e)},o.prototype.toRed=function(e){return M(!this.red,"Already a number in reduction context"),M(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return M(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return M(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return M(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return M(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return M(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return M(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return M(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return M(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return M(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return M(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return M(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return M(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return M(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return M(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var K={k256:null,p224:null,p192:null,p25519:null};function Z(s,e){this.name=s,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function Q(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function X(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(s){if("string"==typeof s){var e=o._prime(s);this.m=e.p,this.prime=e}else M(s.gtn(1),"modulus must be greater than 1"),this.m=s,this.prime=null}function a(s){t.call(this,s),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Z.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},Z.prototype.ireduce=function(e){var u,i=e;do{this.split(i,this.tmp),u=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(u>this.n);var d=u0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},Z.prototype.split=function(e,i){e.iushrn(this.n,0,i)},Z.prototype.imulK=function(e){return e.imul(this.k)},P(Q,Z),Q.prototype.split=function(e,i){for(var u=4194303,d=Math.min(e.length,9),c=0;c>>22,r=h}e.words[c-10]=r>>>=22,e.length-=0===r&&e.length>10?10:9},Q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var i=0,u=0;u>>=26,e.words[u]=c,i=d}return 0!==i&&(e.words[e.length++]=i),e},o._prime=function(e){if(K[e])return K[e];var i;if("k256"===e)i=new Q;else if("p224"===e)i=new W;else if("p192"===e)i=new X;else{if("p25519"!==e)throw new Error("Unknown prime "+e);i=new _}return K[e]=i,i},t.prototype._verify1=function(e){M(0===e.negative,"red works only with positives"),M(e.red,"red works only with red numbers")},t.prototype._verify2=function(e,i){M(0==(e.negative|i.negative),"red works only with positives"),M(e.red&&e.red===i.red,"red works only with red numbers")},t.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(g(e,e.umod(this.m)._forceRed(this)),e)},t.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},t.prototype.add=function(e,i){this._verify2(e,i);var u=e.add(i);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},t.prototype.iadd=function(e,i){this._verify2(e,i);var u=e.iadd(i);return u.cmp(this.m)>=0&&u.isub(this.m),u},t.prototype.sub=function(e,i){this._verify2(e,i);var u=e.sub(i);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},t.prototype.isub=function(e,i){this._verify2(e,i);var u=e.isub(i);return u.cmpn(0)<0&&u.iadd(this.m),u},t.prototype.shl=function(e,i){return this._verify1(e),this.imod(e.ushln(i))},t.prototype.imul=function(e,i){return this._verify2(e,i),this.imod(e.imul(i))},t.prototype.mul=function(e,i){return this._verify2(e,i),this.imod(e.mul(i))},t.prototype.isqr=function(e){return this.imul(e,e.clone())},t.prototype.sqr=function(e){return this.mul(e,e)},t.prototype.sqrt=function(e){if(e.isZero())return e.clone();var i=this.m.andln(3);if(M(i%2==1),3===i){var u=this.m.add(new o(1)).iushrn(2);return this.pow(e,u)}for(var d=this.m.subn(1),c=0;!d.isZero()&&0===d.andln(1);)c++,d.iushrn(1);M(!d.isZero());var r=new o(1).toRed(this),h=r.redNeg(),F=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new o(2*T*T).toRed(this);0!==this.pow(T,F).cmp(h);)T.redIAdd(h);for(var H=this.pow(T,d),ae=this.pow(e,d.addn(1).iushrn(1)),Ae=this.pow(e,d),fe=c;0!==Ae.cmp(r);){for(var Ee=Ae,ee=0;0!==Ee.cmp(r);ee++)Ee=Ee.redSqr();M(ee=0;c--){for(var H=i.words[c],ae=T-1;ae>=0;ae--){var Ae=H>>ae&1;r!==d[0]&&(r=this.sqr(r)),0!==Ae||0!==h?(h<<=1,h|=Ae,(4==++F||0===c&&0===ae)&&(r=this.mul(r,d[h]),F=0,h=0)):F=0}T=26}return r},t.prototype.convertTo=function(e){var i=e.umod(this.m);return i===e?i.clone():i},t.prototype.convertFrom=function(e){var i=e.clone();return i.red=null,i},o.mont=function(e){return new a(e)},P(a,t),a.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},a.prototype.convertFrom=function(e){var i=this.imod(e.mul(this.rinv));return i.red=null,i},a.prototype.imul=function(e,i){if(e.isZero()||i.isZero())return e.words[0]=0,e.length=1,e;var u=e.imul(i),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(d).iushrn(this.shift),r=c;return c.cmp(this.m)>=0?r=c.isub(this.m):c.cmpn(0)<0&&(r=c.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(e,i){if(e.isZero()||i.isZero())return new o(0)._forceRed(this);var u=e.mul(i),d=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=u.isub(d).iushrn(this.shift),r=c;return c.cmp(this.m)>=0?r=c.isub(this.m):c.cmpn(0)<0&&(r=c.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(q=x.nmd(q),this)},45297:(q,k,x)=>{"use strict";const{Deflate:B,deflate:I,deflateRaw:M,gzip:P}=x(32550),{Inflate:o,inflate:w,inflateRaw:S,ungzip:D}=x(96263),A=x(21001);q.exports.Deflate=B,q.exports.deflate=I,q.exports.deflateRaw=M,q.exports.gzip=P,q.exports.Inflate=o,q.exports.inflate=w,q.exports.inflateRaw=S,q.exports.ungzip=D,q.exports.constants=A},32550:(q,k,x)=>{"use strict";const B=x(35670),I=x(5155),M=x(64773),P=x(2311),o=x(344),w=Object.prototype.toString,{Z_NO_FLUSH:S,Z_SYNC_FLUSH:D,Z_FULL_FLUSH:A,Z_FINISH:g,Z_OK:p,Z_STREAM_END:b,Z_DEFAULT_COMPRESSION:y,Z_DEFAULT_STRATEGY:m,Z_DEFLATED:E}=x(21001);function C(O){this.options=I.assign({level:y,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:m},O||{});let j=this.options;j.raw&&j.windowBits>0?j.windowBits=-j.windowBits:j.gzip&&j.windowBits>0&&j.windowBits<16&&(j.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;let K=B.deflateInit2(this.strm,j.level,j.method,j.windowBits,j.memLevel,j.strategy);if(K!==p)throw new Error(P[K]);if(j.header&&B.deflateSetHeader(this.strm,j.header),j.dictionary){let Z;if(Z="string"==typeof j.dictionary?M.string2buf(j.dictionary):"[object ArrayBuffer]"===w.call(j.dictionary)?new Uint8Array(j.dictionary):j.dictionary,K=B.deflateSetDictionary(this.strm,Z),K!==p)throw new Error(P[K]);this._dict_set=!0}}function L(O,j){const K=new C(j);if(K.push(O,!0),K.err)throw K.msg||P[K.err];return K.result}C.prototype.push=function(O,j){const K=this.strm,Z=this.options.chunkSize;let Q,W;if(this.ended)return!1;for(W=j===~~j?j:!0===j?g:S,K.input="string"==typeof O?M.string2buf(O):"[object ArrayBuffer]"===w.call(O)?new Uint8Array(O):O,K.next_in=0,K.avail_in=K.input.length;;)if(0===K.avail_out&&(K.output=new Uint8Array(Z),K.next_out=0,K.avail_out=Z),(W===D||W===A)&&K.avail_out<=6)this.onData(K.output.subarray(0,K.next_out)),K.avail_out=0;else{if(Q=B.deflate(K,W),Q===b)return K.next_out>0&&this.onData(K.output.subarray(0,K.next_out)),Q=B.deflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===p;if(0!==K.avail_out){if(W>0&&K.next_out>0)this.onData(K.output.subarray(0,K.next_out)),K.avail_out=0;else if(0===K.avail_in)break}else this.onData(K.output)}return!0},C.prototype.onData=function(O){this.chunks.push(O)},C.prototype.onEnd=function(O){O===p&&(this.result=I.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg},q.exports.Deflate=C,q.exports.deflate=L,q.exports.deflateRaw=function R(O,j){return(j=j||{}).raw=!0,L(O,j)},q.exports.gzip=function U(O,j){return(j=j||{}).gzip=!0,L(O,j)},q.exports.constants=x(21001)},96263:(q,k,x)=>{"use strict";const B=x(31884),I=x(5155),M=x(64773),P=x(2311),o=x(344),w=x(16662),S=Object.prototype.toString,{Z_NO_FLUSH:D,Z_FINISH:A,Z_OK:g,Z_STREAM_END:p,Z_NEED_DICT:b,Z_STREAM_ERROR:y,Z_DATA_ERROR:m,Z_MEM_ERROR:E}=x(21001);function C(U){this.options=I.assign({chunkSize:65536,windowBits:15,to:""},U||{});const O=this.options;O.raw&&O.windowBits>=0&&O.windowBits<16&&(O.windowBits=-O.windowBits,0===O.windowBits&&(O.windowBits=-15)),O.windowBits>=0&&O.windowBits<16&&!(U&&U.windowBits)&&(O.windowBits+=32),O.windowBits>15&&O.windowBits<48&&0==(15&O.windowBits)&&(O.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;let j=B.inflateInit2(this.strm,O.windowBits);if(j!==g)throw new Error(P[j]);if(this.header=new w,B.inflateGetHeader(this.strm,this.header),O.dictionary&&("string"==typeof O.dictionary?O.dictionary=M.string2buf(O.dictionary):"[object ArrayBuffer]"===S.call(O.dictionary)&&(O.dictionary=new Uint8Array(O.dictionary)),O.raw&&(j=B.inflateSetDictionary(this.strm,O.dictionary),j!==g)))throw new Error(P[j])}function L(U,O){const j=new C(O);if(j.push(U),j.err)throw j.msg||P[j.err];return j.result}C.prototype.push=function(U,O){const j=this.strm,K=this.options.chunkSize,Z=this.options.dictionary;let Q,W,X;if(this.ended)return!1;for(W=O===~~O?O:!0===O?A:D,j.input="[object ArrayBuffer]"===S.call(U)?new Uint8Array(U):U,j.next_in=0,j.avail_in=j.input.length;;){for(0===j.avail_out&&(j.output=new Uint8Array(K),j.next_out=0,j.avail_out=K),Q=B.inflate(j,W),Q===b&&Z&&(Q=B.inflateSetDictionary(j,Z),Q===g?Q=B.inflate(j,W):Q===m&&(Q=b));j.avail_in>0&&Q===p&&j.state.wrap>0&&0!==U[j.next_in];)B.inflateReset(j),Q=B.inflate(j,W);switch(Q){case y:case m:case b:case E:return this.onEnd(Q),this.ended=!0,!1}if(X=j.avail_out,j.next_out&&(0===j.avail_out||Q===p))if("string"===this.options.to){let _=M.utf8border(j.output,j.next_out),t=j.next_out-_,a=M.buf2string(j.output,_);j.next_out=t,j.avail_out=K-t,t&&j.output.set(j.output.subarray(_,_+t),0),this.onData(a)}else this.onData(j.output.length===j.next_out?j.output:j.output.subarray(0,j.next_out));if(Q!==g||0!==X){if(Q===p)return Q=B.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,!0;if(0===j.avail_in)break}}return!0},C.prototype.onData=function(U){this.chunks.push(U)},C.prototype.onEnd=function(U){U===g&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},q.exports.Inflate=C,q.exports.inflate=L,q.exports.inflateRaw=function R(U,O){return(O=O||{}).raw=!0,L(U,O)},q.exports.ungzip=L,q.exports.constants=x(21001)},5155:q=>{"use strict";const k=(x,B)=>Object.prototype.hasOwnProperty.call(x,B);q.exports.assign=function(x){const B=Array.prototype.slice.call(arguments,1);for(;B.length;){const I=B.shift();if(I){if("object"!=typeof I)throw new TypeError(I+"must be non-object");for(const M in I)k(I,M)&&(x[M]=I[M])}}return x},q.exports.flattenChunks=x=>{let B=0;for(let M=0,P=x.length;M{"use strict";let k=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{k=!1}const x=new Uint8Array(256);for(let I=0;I<256;I++)x[I]=I>=252?6:I>=248?5:I>=240?4:I>=224?3:I>=192?2:1;x[254]=x[254]=1,q.exports.string2buf=I=>{let M,P,o,w,S,D=I.length,A=0;for(w=0;w>>6,M[S++]=128|63&P):P<65536?(M[S++]=224|P>>>12,M[S++]=128|P>>>6&63,M[S++]=128|63&P):(M[S++]=240|P>>>18,M[S++]=128|P>>>12&63,M[S++]=128|P>>>6&63,M[S++]=128|63&P);return M},q.exports.buf2string=(I,M)=>{let P,o;const w=M||I.length,S=new Array(2*w);for(o=0,P=0;P4)S[o++]=65533,P+=A-1;else{for(D&=2===A?31:3===A?15:7;A>1&&P1?S[o++]=65533:D<65536?S[o++]=D:(D-=65536,S[o++]=55296|D>>10&1023,S[o++]=56320|1023&D)}}return((I,M)=>{if(M<65534&&I.subarray&&k)return String.fromCharCode.apply(null,I.length===M?I:I.subarray(0,M));let P="";for(let o=0;o{(M=M||I.length)>I.length&&(M=I.length);let P=M-1;for(;P>=0&&128==(192&I[P]);)P--;return P<0||0===P?M:P+x[I[P]]>M?P:M}},22685:q=>{"use strict";q.exports=(x,B,I,M)=>{let P=65535&x|0,o=x>>>16&65535|0,w=0;for(;0!==I;){w=I>2e3?2e3:I,I-=w;do{P=P+B[M++]|0,o=o+P|0}while(--w);P%=65521,o%=65521}return P|o<<16|0}},21001:q=>{"use strict";q.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},97261:q=>{"use strict";const x=new Uint32Array((()=>{let I,M=[];for(var P=0;P<256;P++){I=P;for(var o=0;o<8;o++)I=1&I?3988292384^I>>>1:I>>>1;M[P]=I}return M})());q.exports=(I,M,P,o)=>{const w=x,S=o+P;I^=-1;for(let D=o;D>>8^w[255&(I^M[D])];return-1^I}},35670:(q,k,x)=>{"use strict";const{_tr_init:B,_tr_stored_block:I,_tr_flush_block:M,_tr_tally:P,_tr_align:o}=x(76239),w=x(22685),S=x(97261),D=x(2311),{Z_NO_FLUSH:A,Z_PARTIAL_FLUSH:g,Z_FULL_FLUSH:p,Z_FINISH:b,Z_BLOCK:y,Z_OK:m,Z_STREAM_END:E,Z_STREAM_ERROR:C,Z_DATA_ERROR:L,Z_BUF_ERROR:R,Z_DEFAULT_COMPRESSION:U,Z_FILTERED:O,Z_HUFFMAN_ONLY:j,Z_RLE:K,Z_FIXED:Z,Z_DEFAULT_STRATEGY:Q,Z_UNKNOWN:W,Z_DEFLATED:X}=x(21001),F=258,T=262,Et=(ne,yt)=>(ne.msg=D[yt],yt),ot=ne=>(ne<<1)-(ne>4?9:0),lt=ne=>{let yt=ne.length;for(;--yt>=0;)ne[yt]=0};let ct=(ne,yt,rt)=>(yt<{const yt=ne.state;let rt=yt.pending;rt>ne.avail_out&&(rt=ne.avail_out),0!==rt&&(ne.output.set(yt.pending_buf.subarray(yt.pending_out,yt.pending_out+rt),ne.next_out),ne.next_out+=rt,yt.pending_out+=rt,ne.total_out+=rt,ne.avail_out-=rt,yt.pending-=rt,0===yt.pending&&(yt.pending_out=0))},Ue=(ne,yt)=>{M(ne,ne.block_start>=0?ne.block_start:-1,ne.strstart-ne.block_start,yt),ne.block_start=ne.strstart,He(ne.strm)},Se=(ne,yt)=>{ne.pending_buf[ne.pending++]=yt},Ve=(ne,yt)=>{ne.pending_buf[ne.pending++]=yt>>>8&255,ne.pending_buf[ne.pending++]=255&yt},Le=(ne,yt,rt,$)=>{let We=ne.avail_in;return We>$&&(We=$),0===We?0:(ne.avail_in-=We,yt.set(ne.input.subarray(ne.next_in,ne.next_in+We),rt),1===ne.state.wrap?ne.adler=w(ne.adler,yt,We,rt):2===ne.state.wrap&&(ne.adler=S(ne.adler,yt,We,rt)),ne.next_in+=We,ne.total_in+=We,We)},Y=(ne,yt)=>{let We,Be,rt=ne.max_chain_length,$=ne.strstart,Ze=ne.prev_length,pe=ne.nice_match;const ve=ne.strstart>ne.w_size-T?ne.strstart-(ne.w_size-T):0,be=ne.window,de=ne.w_mask,Re=ne.prev,Je=ne.strstart+F;let vt=be[$+Ze-1],it=be[$+Ze];ne.prev_length>=ne.good_match&&(rt>>=2),pe>ne.lookahead&&(pe=ne.lookahead);do{if(We=yt,be[We+Ze]===it&&be[We+Ze-1]===vt&&be[We]===be[$]&&be[++We]===be[$+1]){$+=2,We++;do{}while(be[++$]===be[++We]&&be[++$]===be[++We]&&be[++$]===be[++We]&&be[++$]===be[++We]&&be[++$]===be[++We]&&be[++$]===be[++We]&&be[++$]===be[++We]&&be[++$]===be[++We]&&$Ze){if(ne.match_start=yt,Ze=Be,Be>=pe)break;vt=be[$+Ze-1],it=be[$+Ze]}}}while((yt=Re[yt&de])>ve&&0!=--rt);return Ze<=ne.lookahead?Ze:ne.lookahead},z=ne=>{const yt=ne.w_size;let rt,$,We,Be,Ze;do{if(Be=ne.window_size-ne.lookahead-ne.strstart,ne.strstart>=yt+(yt-T)){ne.window.set(ne.window.subarray(yt,yt+yt),0),ne.match_start-=yt,ne.strstart-=yt,ne.block_start-=yt,$=ne.hash_size,rt=$;do{We=ne.head[--rt],ne.head[rt]=We>=yt?We-yt:0}while(--$);$=yt,rt=$;do{We=ne.prev[--rt],ne.prev[rt]=We>=yt?We-yt:0}while(--$);Be+=yt}if(0===ne.strm.avail_in)break;if($=Le(ne.strm,ne.window,ne.strstart+ne.lookahead,Be),ne.lookahead+=$,ne.lookahead+ne.insert>=3)for(Ze=ne.strstart-ne.insert,ne.ins_h=ne.window[Ze],ne.ins_h=ct(ne,ne.ins_h,ne.window[Ze+1]);ne.insert&&(ne.ins_h=ct(ne,ne.ins_h,ne.window[Ze+3-1]),ne.prev[Ze&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=Ze,Ze++,ne.insert--,!(ne.lookahead+ne.insert<3)););}while(ne.lookahead{let rt,$;for(;;){if(ne.lookahead=3&&(ne.ins_h=ct(ne,ne.ins_h,ne.window[ne.strstart+3-1]),rt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),0!==rt&&ne.strstart-rt<=ne.w_size-T&&(ne.match_length=Y(ne,rt)),ne.match_length>=3)if($=P(ne,ne.strstart-ne.match_start,ne.match_length-3),ne.lookahead-=ne.match_length,ne.match_length<=ne.max_lazy_match&&ne.lookahead>=3){ne.match_length--;do{ne.strstart++,ne.ins_h=ct(ne,ne.ins_h,ne.window[ne.strstart+3-1]),rt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart}while(0!=--ne.match_length);ne.strstart++}else ne.strstart+=ne.match_length,ne.match_length=0,ne.ins_h=ne.window[ne.strstart],ne.ins_h=ct(ne,ne.ins_h,ne.window[ne.strstart+1]);else $=P(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++;if($&&(Ue(ne,!1),0===ne.strm.avail_out))return 1}return ne.insert=ne.strstart<2?ne.strstart:2,yt===b?(Ue(ne,!0),0===ne.strm.avail_out?3:4):ne.last_lit&&(Ue(ne,!1),0===ne.strm.avail_out)?1:2},ce=(ne,yt)=>{let rt,$,We;for(;;){if(ne.lookahead=3&&(ne.ins_h=ct(ne,ne.ins_h,ne.window[ne.strstart+3-1]),rt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),ne.prev_length=ne.match_length,ne.prev_match=ne.match_start,ne.match_length=2,0!==rt&&ne.prev_length4096)&&(ne.match_length=2)),ne.prev_length>=3&&ne.match_length<=ne.prev_length){We=ne.strstart+ne.lookahead-3,$=P(ne,ne.strstart-1-ne.prev_match,ne.prev_length-3),ne.lookahead-=ne.prev_length-1,ne.prev_length-=2;do{++ne.strstart<=We&&(ne.ins_h=ct(ne,ne.ins_h,ne.window[ne.strstart+3-1]),rt=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart)}while(0!=--ne.prev_length);if(ne.match_available=0,ne.match_length=2,ne.strstart++,$&&(Ue(ne,!1),0===ne.strm.avail_out))return 1}else if(ne.match_available){if($=P(ne,0,ne.window[ne.strstart-1]),$&&Ue(ne,!1),ne.strstart++,ne.lookahead--,0===ne.strm.avail_out)return 1}else ne.match_available=1,ne.strstart++,ne.lookahead--}return ne.match_available&&($=P(ne,0,ne.window[ne.strstart-1]),ne.match_available=0),ne.insert=ne.strstart<2?ne.strstart:2,yt===b?(Ue(ne,!0),0===ne.strm.avail_out?3:4):ne.last_lit&&(Ue(ne,!1),0===ne.strm.avail_out)?1:2};function we(ne,yt,rt,$,We){this.good_length=ne,this.max_lazy=yt,this.nice_length=rt,this.max_chain=$,this.func=We}const Oe=[new we(0,0,0,0,(ne,yt)=>{let rt=65535;for(rt>ne.pending_buf_size-5&&(rt=ne.pending_buf_size-5);;){if(ne.lookahead<=1){if(z(ne),0===ne.lookahead&&yt===A)return 1;if(0===ne.lookahead)break}ne.strstart+=ne.lookahead,ne.lookahead=0;const $=ne.block_start+rt;if((0===ne.strstart||ne.strstart>=$)&&(ne.lookahead=ne.strstart-$,ne.strstart=$,Ue(ne,!1),0===ne.strm.avail_out)||ne.strstart-ne.block_start>=ne.w_size-T&&(Ue(ne,!1),0===ne.strm.avail_out))return 1}return ne.insert=0,yt===b?(Ue(ne,!0),0===ne.strm.avail_out?3:4):(ne.strstart>ne.block_start&&Ue(ne,!1),1)}),new we(4,4,8,4,re),new we(4,5,16,8,re),new we(4,6,32,32,re),new we(4,4,16,16,ce),new we(8,16,32,32,ce),new we(8,16,128,128,ce),new we(8,32,128,256,ce),new we(32,128,258,1024,ce),new we(32,258,258,4096,ce)];function te(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=X,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),lt(this.dyn_ltree),lt(this.dyn_dtree),lt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),lt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),lt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const le=ne=>{if(!ne||!ne.state)return Et(ne,C);ne.total_in=ne.total_out=0,ne.data_type=W;const yt=ne.state;return yt.pending=0,yt.pending_out=0,yt.wrap<0&&(yt.wrap=-yt.wrap),yt.status=yt.wrap?42:113,ne.adler=2===yt.wrap?0:1,yt.last_flush=A,B(yt),m},me=ne=>{const yt=le(ne);return yt===m&&(ne=>{ne.window_size=2*ne.w_size,lt(ne.head),ne.max_lazy_match=Oe[ne.level].max_lazy,ne.good_match=Oe[ne.level].good_length,ne.nice_match=Oe[ne.level].nice_length,ne.max_chain_length=Oe[ne.level].max_chain,ne.strstart=0,ne.block_start=0,ne.lookahead=0,ne.insert=0,ne.match_length=ne.prev_length=2,ne.match_available=0,ne.ins_h=0})(ne.state),yt},st=(ne,yt,rt,$,We,Be)=>{if(!ne)return C;let Ze=1;if(yt===U&&(yt=6),$<0?(Ze=0,$=-$):$>15&&(Ze=2,$-=16),We<1||We>9||rt!==X||$<8||$>15||yt<0||yt>9||Be<0||Be>Z)return Et(ne,C);8===$&&($=9);const pe=new te;return ne.state=pe,pe.strm=ne,pe.wrap=Ze,pe.gzhead=null,pe.w_bits=$,pe.w_size=1<st(ne,yt,X,15,8,Q),q.exports.deflateInit2=st,q.exports.deflateReset=me,q.exports.deflateResetKeep=le,q.exports.deflateSetHeader=(ne,yt)=>ne&&ne.state&&2===ne.state.wrap?(ne.state.gzhead=yt,m):C,q.exports.deflate=(ne,yt)=>{let rt,$;if(!ne||!ne.state||yt>y||yt<0)return ne?Et(ne,C):C;const We=ne.state;if(!ne.output||!ne.input&&0!==ne.avail_in||666===We.status&&yt!==b)return Et(ne,0===ne.avail_out?R:C);We.strm=ne;const Be=We.last_flush;if(We.last_flush=yt,42===We.status)if(2===We.wrap)ne.adler=0,Se(We,31),Se(We,139),Se(We,8),We.gzhead?(Se(We,(We.gzhead.text?1:0)+(We.gzhead.hcrc?2:0)+(We.gzhead.extra?4:0)+(We.gzhead.name?8:0)+(We.gzhead.comment?16:0)),Se(We,255&We.gzhead.time),Se(We,We.gzhead.time>>8&255),Se(We,We.gzhead.time>>16&255),Se(We,We.gzhead.time>>24&255),Se(We,9===We.level?2:We.strategy>=j||We.level<2?4:0),Se(We,255&We.gzhead.os),We.gzhead.extra&&We.gzhead.extra.length&&(Se(We,255&We.gzhead.extra.length),Se(We,We.gzhead.extra.length>>8&255)),We.gzhead.hcrc&&(ne.adler=S(ne.adler,We.pending_buf,We.pending,0)),We.gzindex=0,We.status=69):(Se(We,0),Se(We,0),Se(We,0),Se(We,0),Se(We,0),Se(We,9===We.level?2:We.strategy>=j||We.level<2?4:0),Se(We,3),We.status=113);else{let Ze=X+(We.w_bits-8<<4)<<8,pe=-1;pe=We.strategy>=j||We.level<2?0:We.level<6?1:6===We.level?2:3,Ze|=pe<<6,0!==We.strstart&&(Ze|=32),Ze+=31-Ze%31,We.status=113,Ve(We,Ze),0!==We.strstart&&(Ve(We,ne.adler>>>16),Ve(We,65535&ne.adler)),ne.adler=1}if(69===We.status)if(We.gzhead.extra){for(rt=We.pending;We.gzindex<(65535&We.gzhead.extra.length)&&(We.pending!==We.pending_buf_size||(We.gzhead.hcrc&&We.pending>rt&&(ne.adler=S(ne.adler,We.pending_buf,We.pending-rt,rt)),He(ne),rt=We.pending,We.pending!==We.pending_buf_size));)Se(We,255&We.gzhead.extra[We.gzindex]),We.gzindex++;We.gzhead.hcrc&&We.pending>rt&&(ne.adler=S(ne.adler,We.pending_buf,We.pending-rt,rt)),We.gzindex===We.gzhead.extra.length&&(We.gzindex=0,We.status=73)}else We.status=73;if(73===We.status)if(We.gzhead.name){rt=We.pending;do{if(We.pending===We.pending_buf_size&&(We.gzhead.hcrc&&We.pending>rt&&(ne.adler=S(ne.adler,We.pending_buf,We.pending-rt,rt)),He(ne),rt=We.pending,We.pending===We.pending_buf_size)){$=1;break}$=We.gzindexrt&&(ne.adler=S(ne.adler,We.pending_buf,We.pending-rt,rt)),0===$&&(We.gzindex=0,We.status=91)}else We.status=91;if(91===We.status)if(We.gzhead.comment){rt=We.pending;do{if(We.pending===We.pending_buf_size&&(We.gzhead.hcrc&&We.pending>rt&&(ne.adler=S(ne.adler,We.pending_buf,We.pending-rt,rt)),He(ne),rt=We.pending,We.pending===We.pending_buf_size)){$=1;break}$=We.gzindexrt&&(ne.adler=S(ne.adler,We.pending_buf,We.pending-rt,rt)),0===$&&(We.status=103)}else We.status=103;if(103===We.status&&(We.gzhead.hcrc?(We.pending+2>We.pending_buf_size&&He(ne),We.pending+2<=We.pending_buf_size&&(Se(We,255&ne.adler),Se(We,ne.adler>>8&255),ne.adler=0,We.status=113)):We.status=113),0!==We.pending){if(He(ne),0===ne.avail_out)return We.last_flush=-1,m}else if(0===ne.avail_in&&ot(yt)<=ot(Be)&&yt!==b)return Et(ne,R);if(666===We.status&&0!==ne.avail_in)return Et(ne,R);if(0!==ne.avail_in||0!==We.lookahead||yt!==A&&666!==We.status){let Ze=We.strategy===j?((ne,yt)=>{let rt;for(;;){if(0===ne.lookahead&&(z(ne),0===ne.lookahead)){if(yt===A)return 1;break}if(ne.match_length=0,rt=P(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,rt&&(Ue(ne,!1),0===ne.strm.avail_out))return 1}return ne.insert=0,yt===b?(Ue(ne,!0),0===ne.strm.avail_out?3:4):ne.last_lit&&(Ue(ne,!1),0===ne.strm.avail_out)?1:2})(We,yt):We.strategy===K?((ne,yt)=>{let rt,$,We,Be;const Ze=ne.window;for(;;){if(ne.lookahead<=F){if(z(ne),ne.lookahead<=F&&yt===A)return 1;if(0===ne.lookahead)break}if(ne.match_length=0,ne.lookahead>=3&&ne.strstart>0&&(We=ne.strstart-1,$=Ze[We],$===Ze[++We]&&$===Ze[++We]&&$===Ze[++We])){Be=ne.strstart+F;do{}while($===Ze[++We]&&$===Ze[++We]&&$===Ze[++We]&&$===Ze[++We]&&$===Ze[++We]&&$===Ze[++We]&&$===Ze[++We]&&$===Ze[++We]&&Wene.lookahead&&(ne.match_length=ne.lookahead)}if(ne.match_length>=3?(rt=P(ne,1,ne.match_length-3),ne.lookahead-=ne.match_length,ne.strstart+=ne.match_length,ne.match_length=0):(rt=P(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++),rt&&(Ue(ne,!1),0===ne.strm.avail_out))return 1}return ne.insert=0,yt===b?(Ue(ne,!0),0===ne.strm.avail_out?3:4):ne.last_lit&&(Ue(ne,!1),0===ne.strm.avail_out)?1:2})(We,yt):Oe[We.level].func(We,yt);if((3===Ze||4===Ze)&&(We.status=666),1===Ze||3===Ze)return 0===ne.avail_out&&(We.last_flush=-1),m;if(2===Ze&&(yt===g?o(We):yt!==y&&(I(We,0,0,!1),yt===p&&(lt(We.head),0===We.lookahead&&(We.strstart=0,We.block_start=0,We.insert=0))),He(ne),0===ne.avail_out))return We.last_flush=-1,m}return yt!==b?m:We.wrap<=0?E:(2===We.wrap?(Se(We,255&ne.adler),Se(We,ne.adler>>8&255),Se(We,ne.adler>>16&255),Se(We,ne.adler>>24&255),Se(We,255&ne.total_in),Se(We,ne.total_in>>8&255),Se(We,ne.total_in>>16&255),Se(We,ne.total_in>>24&255)):(Ve(We,ne.adler>>>16),Ve(We,65535&ne.adler)),He(ne),We.wrap>0&&(We.wrap=-We.wrap),0!==We.pending?m:E)},q.exports.deflateEnd=ne=>{if(!ne||!ne.state)return C;const yt=ne.state.status;return 42!==yt&&69!==yt&&73!==yt&&91!==yt&&103!==yt&&113!==yt&&666!==yt?Et(ne,C):(ne.state=null,113===yt?Et(ne,L):m)},q.exports.deflateSetDictionary=(ne,yt)=>{let rt=yt.length;if(!ne||!ne.state)return C;const $=ne.state,We=$.wrap;if(2===We||1===We&&42!==$.status||$.lookahead)return C;if(1===We&&(ne.adler=w(ne.adler,yt,rt,0)),$.wrap=0,rt>=$.w_size){0===We&&(lt($.head),$.strstart=0,$.block_start=0,$.insert=0);let ve=new Uint8Array($.w_size);ve.set(yt.subarray(rt-$.w_size,rt),0),yt=ve,rt=$.w_size}const Be=ne.avail_in,Ze=ne.next_in,pe=ne.input;for(ne.avail_in=rt,ne.next_in=0,ne.input=yt,z($);$.lookahead>=3;){let ve=$.strstart,be=$.lookahead-2;do{$.ins_h=ct($,$.ins_h,$.window[ve+3-1]),$.prev[ve&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=ve,ve++}while(--be);$.strstart=ve,$.lookahead=2,z($)}return $.strstart+=$.lookahead,$.block_start=$.strstart,$.insert=$.lookahead,$.lookahead=0,$.match_length=$.prev_length=2,$.match_available=0,ne.next_in=Ze,ne.input=pe,ne.avail_in=Be,$.wrap=We,m},q.exports.deflateInfo="pako deflate (from Nodeca project)"},16662:q=>{"use strict";q.exports=function k(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},60833:q=>{"use strict";q.exports=function(I,M){let P,o,w,S,D,A,g,p,b,y,m,E,C,L,R,U,O,j,K,Z,Q,W,X,_;const t=I.state;P=I.next_in,X=I.input,o=P+(I.avail_in-5),w=I.next_out,_=I.output,S=w-(M-I.avail_out),D=w+(I.avail_out-257),A=t.dmax,g=t.wsize,p=t.whave,b=t.wnext,y=t.window,m=t.hold,E=t.bits,C=t.lencode,L=t.distcode,R=(1<>>24,m>>>=j,E-=j,j=O>>>16&255,0===j)_[w++]=65535&O;else{if(!(16&j)){if(0==(64&j)){O=C[(65535&O)+(m&(1<>>=j,E-=j),E<15&&(m+=X[P++]<>>24,m>>>=j,E-=j,j=O>>>16&255,!(16&j)){if(0==(64&j)){O=L[(65535&O)+(m&(1<A){I.msg="invalid distance too far back",t.mode=30;break e}if(m>>>=j,E-=j,j=w-S,Z>j){if(j=Z-j,j>p&&t.sane){I.msg="invalid distance too far back",t.mode=30;break e}if(Q=0,W=y,0===b){if(Q+=g-j,j2;)_[w++]=W[Q++],_[w++]=W[Q++],_[w++]=W[Q++],K-=3;K&&(_[w++]=W[Q++],K>1&&(_[w++]=W[Q++]))}else{Q=w-Z;do{_[w++]=_[Q++],_[w++]=_[Q++],_[w++]=_[Q++],K-=3}while(K>2);K&&(_[w++]=_[Q++],K>1&&(_[w++]=_[Q++]))}break}}break}}while(P>3,P-=K,E-=K<<3,m&=(1<{"use strict";const B=x(22685),I=x(97261),M=x(60833),P=x(33881),{Z_FINISH:D,Z_BLOCK:A,Z_TREES:g,Z_OK:p,Z_STREAM_END:b,Z_NEED_DICT:y,Z_STREAM_ERROR:m,Z_DATA_ERROR:E,Z_MEM_ERROR:C,Z_BUF_ERROR:L,Z_DEFLATED:R}=x(21001),s=12,lt=Oe=>(Oe>>>24&255)+(Oe>>>8&65280)+((65280&Oe)<<8)+((255&Oe)<<24);function Lt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ct=Oe=>{if(!Oe||!Oe.state)return m;const xe=Oe.state;return Oe.total_in=Oe.total_out=xe.total=0,Oe.msg="",xe.wrap&&(Oe.adler=1&xe.wrap),xe.mode=1,xe.last=0,xe.havedict=0,xe.dmax=32768,xe.head=null,xe.hold=0,xe.bits=0,xe.lencode=xe.lendyn=new Int32Array(852),xe.distcode=xe.distdyn=new Int32Array(592),xe.sane=1,xe.back=-1,p},He=Oe=>{if(!Oe||!Oe.state)return m;const xe=Oe.state;return xe.wsize=0,xe.whave=0,xe.wnext=0,ct(Oe)},Ue=(Oe,xe)=>{let te;if(!Oe||!Oe.state)return m;const le=Oe.state;return xe<0?(te=0,xe=-xe):(te=1+(xe>>4),xe<48&&(xe&=15)),xe&&(xe<8||xe>15)?m:(null!==le.window&&le.wbits!==xe&&(le.window=null),le.wrap=te,le.wbits=xe,He(Oe))},Se=(Oe,xe)=>{if(!Oe)return m;const te=new Lt;Oe.state=te,te.window=null;const le=Ue(Oe,xe);return le!==p&&(Oe.state=null),le};let Y,z,Le=!0;const G=Oe=>{if(Le){Y=new Int32Array(512),z=new Int32Array(32);let xe=0;for(;xe<144;)Oe.lens[xe++]=8;for(;xe<256;)Oe.lens[xe++]=9;for(;xe<280;)Oe.lens[xe++]=7;for(;xe<288;)Oe.lens[xe++]=8;for(P(1,Oe.lens,0,288,Y,0,Oe.work,{bits:9}),xe=0;xe<32;)Oe.lens[xe++]=5;P(2,Oe.lens,0,32,z,0,Oe.work,{bits:5}),Le=!1}Oe.lencode=Y,Oe.lenbits=9,Oe.distcode=z,Oe.distbits=5},re=(Oe,xe,te,le)=>{let me;const Pe=Oe.state;return null===Pe.window&&(Pe.wsize=1<=Pe.wsize?(Pe.window.set(xe.subarray(te-Pe.wsize,te),0),Pe.wnext=0,Pe.whave=Pe.wsize):(me=Pe.wsize-Pe.wnext,me>le&&(me=le),Pe.window.set(xe.subarray(te-le,te-le+me),Pe.wnext),(le-=me)?(Pe.window.set(xe.subarray(te-le,te),0),Pe.wnext=le,Pe.whave=Pe.wsize):(Pe.wnext+=me,Pe.wnext===Pe.wsize&&(Pe.wnext=0),Pe.whaveSe(Oe,15),q.exports.inflateInit2=Se,q.exports.inflate=(Oe,xe)=>{let te,le,me,Pe,st,tt,et,gt,Fe,ne,yt,rt,$,We,Ze,pe,ve,be,de,Re,Je,vt,Be=0;const it=new Uint8Array(4);let at,It;const At=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!Oe||!Oe.state||!Oe.output||!Oe.input&&0!==Oe.avail_in)return m;te=Oe.state,te.mode===s&&(te.mode=13),st=Oe.next_out,me=Oe.output,et=Oe.avail_out,Pe=Oe.next_in,le=Oe.input,tt=Oe.avail_in,gt=te.hold,Fe=te.bits,ne=tt,yt=et,vt=p;e:for(;;)switch(te.mode){case 1:if(0===te.wrap){te.mode=13;break}for(;Fe<16;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>8&255,te.check=I(te.check,it,2,0),gt=0,Fe=0,te.mode=2;break}if(te.flags=0,te.head&&(te.head.done=!1),!(1&te.wrap)||(((255>)<<8)+(gt>>8))%31){Oe.msg="incorrect header check",te.mode=30;break}if((15>)!==R){Oe.msg="unknown compression method",te.mode=30;break}if(gt>>>=4,Fe-=4,Je=8+(15>),0===te.wbits)te.wbits=Je;else if(Je>te.wbits){Oe.msg="invalid window size",te.mode=30;break}te.dmax=1<>8&1),512&te.flags&&(it[0]=255>,it[1]=gt>>>8&255,te.check=I(te.check,it,2,0)),gt=0,Fe=0,te.mode=3;case 3:for(;Fe<32;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>8&255,it[2]=gt>>>16&255,it[3]=gt>>>24&255,te.check=I(te.check,it,4,0)),gt=0,Fe=0,te.mode=4;case 4:for(;Fe<16;){if(0===tt)break e;tt--,gt+=le[Pe++]<>8),512&te.flags&&(it[0]=255>,it[1]=gt>>>8&255,te.check=I(te.check,it,2,0)),gt=0,Fe=0,te.mode=5;case 5:if(1024&te.flags){for(;Fe<16;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>8&255,te.check=I(te.check,it,2,0)),gt=0,Fe=0}else te.head&&(te.head.extra=null);te.mode=6;case 6:if(1024&te.flags&&(rt=te.length,rt>tt&&(rt=tt),rt&&(te.head&&(Je=te.head.extra_len-te.length,te.head.extra||(te.head.extra=new Uint8Array(te.head.extra_len)),te.head.extra.set(le.subarray(Pe,Pe+rt),Je)),512&te.flags&&(te.check=I(te.check,le,rt,Pe)),tt-=rt,Pe+=rt,te.length-=rt),te.length))break e;te.length=0,te.mode=7;case 7:if(2048&te.flags){if(0===tt)break e;rt=0;do{Je=le[Pe+rt++],te.head&&Je&&te.length<65536&&(te.head.name+=String.fromCharCode(Je))}while(Je&&rt>9&1,te.head.done=!0),Oe.adler=te.check=0,te.mode=s;break;case 10:for(;Fe<32;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>=7&Fe,Fe-=7&Fe,te.mode=27;break}for(;Fe<3;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>=1,Fe-=1,3>){case 0:te.mode=14;break;case 1:if(G(te),te.mode=20,xe===g){gt>>>=2,Fe-=2;break e}break;case 2:te.mode=17;break;case 3:Oe.msg="invalid block type",te.mode=30}gt>>>=2,Fe-=2;break;case 14:for(gt>>>=7&Fe,Fe-=7&Fe;Fe<32;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>16^65535)){Oe.msg="invalid stored block lengths",te.mode=30;break}if(te.length=65535>,gt=0,Fe=0,te.mode=15,xe===g)break e;case 15:te.mode=16;case 16:if(rt=te.length,rt){if(rt>tt&&(rt=tt),rt>et&&(rt=et),0===rt)break e;me.set(le.subarray(Pe,Pe+rt),st),tt-=rt,Pe+=rt,et-=rt,st+=rt,te.length-=rt;break}te.mode=s;break;case 17:for(;Fe<14;){if(0===tt)break e;tt--,gt+=le[Pe++]<>>=5,Fe-=5,te.ndist=1+(31>),gt>>>=5,Fe-=5,te.ncode=4+(15>),gt>>>=4,Fe-=4,te.nlen>286||te.ndist>30){Oe.msg="too many length or distance symbols",te.mode=30;break}te.have=0,te.mode=18;case 18:for(;te.have>>=3,Fe-=3}for(;te.have<19;)te.lens[At[te.have++]]=0;if(te.lencode=te.lendyn,te.lenbits=7,at={bits:te.lenbits},vt=P(0,te.lens,0,19,te.lencode,0,te.work,at),te.lenbits=at.bits,vt){Oe.msg="invalid code lengths set",te.mode=30;break}te.have=0,te.mode=19;case 19:for(;te.have>>24,pe=Be>>>16&255,ve=65535&Be,!(Ze<=Fe);){if(0===tt)break e;tt--,gt+=le[Pe++]<>>=Ze,Fe-=Ze,te.lens[te.have++]=ve;else{if(16===ve){for(It=Ze+2;Fe>>=Ze,Fe-=Ze,0===te.have){Oe.msg="invalid bit length repeat",te.mode=30;break}Je=te.lens[te.have-1],rt=3+(3>),gt>>>=2,Fe-=2}else if(17===ve){for(It=Ze+3;Fe>>=Ze,Fe-=Ze,Je=0,rt=3+(7>),gt>>>=3,Fe-=3}else{for(It=Ze+7;Fe>>=Ze,Fe-=Ze,Je=0,rt=11+(127>),gt>>>=7,Fe-=7}if(te.have+rt>te.nlen+te.ndist){Oe.msg="invalid bit length repeat",te.mode=30;break}for(;rt--;)te.lens[te.have++]=Je}}if(30===te.mode)break;if(0===te.lens[256]){Oe.msg="invalid code -- missing end-of-block",te.mode=30;break}if(te.lenbits=9,at={bits:te.lenbits},vt=P(1,te.lens,0,te.nlen,te.lencode,0,te.work,at),te.lenbits=at.bits,vt){Oe.msg="invalid literal/lengths set",te.mode=30;break}if(te.distbits=6,te.distcode=te.distdyn,at={bits:te.distbits},vt=P(2,te.lens,te.nlen,te.ndist,te.distcode,0,te.work,at),te.distbits=at.bits,vt){Oe.msg="invalid distances set",te.mode=30;break}if(te.mode=20,xe===g)break e;case 20:te.mode=21;case 21:if(tt>=6&&et>=258){Oe.next_out=st,Oe.avail_out=et,Oe.next_in=Pe,Oe.avail_in=tt,te.hold=gt,te.bits=Fe,M(Oe,yt),st=Oe.next_out,me=Oe.output,et=Oe.avail_out,Pe=Oe.next_in,le=Oe.input,tt=Oe.avail_in,gt=te.hold,Fe=te.bits,te.mode===s&&(te.back=-1);break}for(te.back=0;Be=te.lencode[gt&(1<>>24,pe=Be>>>16&255,ve=65535&Be,!(Ze<=Fe);){if(0===tt)break e;tt--,gt+=le[Pe++]<>be)],Ze=Be>>>24,pe=Be>>>16&255,ve=65535&Be,!(be+Ze<=Fe);){if(0===tt)break e;tt--,gt+=le[Pe++]<>>=be,Fe-=be,te.back+=be}if(gt>>>=Ze,Fe-=Ze,te.back+=Ze,te.length=ve,0===pe){te.mode=26;break}if(32&pe){te.back=-1,te.mode=s;break}if(64&pe){Oe.msg="invalid literal/length code",te.mode=30;break}te.extra=15&pe,te.mode=22;case 22:if(te.extra){for(It=te.extra;Fe>>=te.extra,Fe-=te.extra,te.back+=te.extra}te.was=te.length,te.mode=23;case 23:for(;Be=te.distcode[gt&(1<>>24,pe=Be>>>16&255,ve=65535&Be,!(Ze<=Fe);){if(0===tt)break e;tt--,gt+=le[Pe++]<>be)],Ze=Be>>>24,pe=Be>>>16&255,ve=65535&Be,!(be+Ze<=Fe);){if(0===tt)break e;tt--,gt+=le[Pe++]<>>=be,Fe-=be,te.back+=be}if(gt>>>=Ze,Fe-=Ze,te.back+=Ze,64&pe){Oe.msg="invalid distance code",te.mode=30;break}te.offset=ve,te.extra=15&pe,te.mode=24;case 24:if(te.extra){for(It=te.extra;Fe>>=te.extra,Fe-=te.extra,te.back+=te.extra}if(te.offset>te.dmax){Oe.msg="invalid distance too far back",te.mode=30;break}te.mode=25;case 25:if(0===et)break e;if(rt=yt-et,te.offset>rt){if(rt=te.offset-rt,rt>te.whave&&te.sane){Oe.msg="invalid distance too far back",te.mode=30;break}rt>te.wnext?(rt-=te.wnext,$=te.wsize-rt):$=te.wnext-rt,rt>te.length&&(rt=te.length),We=te.window}else We=me,$=st-te.offset,rt=te.length;rt>et&&(rt=et),et-=rt,te.length-=rt;do{me[st++]=We[$++]}while(--rt);0===te.length&&(te.mode=21);break;case 26:if(0===et)break e;me[st++]=te.length,et--,te.mode=21;break;case 27:if(te.wrap){for(;Fe<32;){if(0===tt)break e;tt--,gt|=le[Pe++]<{if(!Oe||!Oe.state)return m;let xe=Oe.state;return xe.window&&(xe.window=null),Oe.state=null,p},q.exports.inflateGetHeader=(Oe,xe)=>{if(!Oe||!Oe.state)return m;const te=Oe.state;return 0==(2&te.wrap)?m:(te.head=xe,xe.done=!1,p)},q.exports.inflateSetDictionary=(Oe,xe)=>{const te=xe.length;let le,me,Pe;return Oe&&Oe.state&&(le=Oe.state,0===le.wrap||11===le.mode)?11===le.mode&&(me=1,me=B(me,xe,te,0),me!==le.check)?E:(Pe=re(Oe,xe,te,te),Pe?(le.mode=31,C):(le.havedict=1,p)):m},q.exports.inflateInfo="pako inflate (from Nodeca project)"},33881:q=>{"use strict";const o=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),w=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),S=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),D=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);q.exports=(g,p,b,y,m,E,C,L)=>{const R=L.bits;let a,s,e,i,u,r,U=0,O=0,j=0,K=0,Z=0,Q=0,W=0,X=0,_=0,t=0,d=null,c=0;const h=new Uint16Array(16),F=new Uint16Array(16);let ae,Ae,fe,T=null,H=0;for(U=0;U<=15;U++)h[U]=0;for(O=0;O=1&&0===h[K];K--);if(Z>K&&(Z=K),0===K)return m[E++]=20971520,m[E++]=20971520,L.bits=1,0;for(j=1;j0&&(0===g||1!==K))return-1;for(F[1]=0,U=1;U<15;U++)F[U+1]=F[U]+h[U];for(O=0;O852||2===g&&_>592)return 1;for(;;){ae=U-W,C[O]r?(Ae=T[H+C[O]],fe=d[c+C[O]]):(Ae=96,fe=0),a=1<>W)+s]=ae<<24|Ae<<16|fe|0}while(0!==s);for(a=1<>=1;if(0!==a?(t&=a-1,t+=a):t=0,O++,0==--h[U]){if(U===K)break;U=p[b+C[O]]}if(U>Z&&(t&i)!==e){for(0===W&&(W=Z),u+=j,Q=U-W,X=1<852||2===g&&_>592)return 1;e=t&i,m[e]=Z<<24|Q<<16|u-E|0}}return 0!==t&&(m[u+t]=U-W<<24|64<<16|0),L.bits=Z,0}},2311:q=>{"use strict";q.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},76239:q=>{"use strict";function M(G){let re=G.length;for(;--re>=0;)G[re]=0}const K=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Z=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Q=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),W=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);M(_);const t=new Array(60);M(t);const a=new Array(512);M(a);const s=new Array(256);M(s);const e=new Array(29);M(e);const i=new Array(30);function u(G,re,ce,Ge,De){this.static_tree=G,this.extra_bits=re,this.extra_base=ce,this.elems=Ge,this.max_length=De,this.has_stree=G&&G.length}let d,c,r;function h(G,re){this.dyn_tree=G,this.max_code=0,this.stat_desc=re}M(i);const F=G=>G<256?a[G]:a[256+(G>>>7)],T=(G,re)=>{G.pending_buf[G.pending++]=255&re,G.pending_buf[G.pending++]=re>>>8&255},H=(G,re,ce)=>{G.bi_valid>16-ce?(G.bi_buf|=re<>16-G.bi_valid,G.bi_valid+=ce-16):(G.bi_buf|=re<{H(G,ce[2*re],ce[2*re+1])},Ae=(G,re)=>{let ce=0;do{ce|=1&G,G>>>=1,ce<<=1}while(--re>0);return ce>>>1},ee=(G,re,ce)=>{const Ge=new Array(16);let we,Oe,De=0;for(we=1;we<=15;we++)Ge[we]=De=De+ce[we-1]<<1;for(Oe=0;Oe<=re;Oe++){let xe=G[2*Oe+1];0!==xe&&(G[2*Oe]=Ae(Ge[xe]++,xe))}},ze=G=>{let re;for(re=0;re<286;re++)G.dyn_ltree[2*re]=0;for(re=0;re<30;re++)G.dyn_dtree[2*re]=0;for(re=0;re<19;re++)G.bl_tree[2*re]=0;G.dyn_ltree[512]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0},ye=G=>{G.bi_valid>8?T(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0},je=(G,re,ce,Ge)=>{const De=2*re,we=2*ce;return G[De]{const Ge=G.heap[ce];let De=ce<<1;for(;De<=G.heap_len&&(De{let Ge,De,Oe,xe,we=0;if(0!==G.last_lit)do{Ge=G.pending_buf[G.d_buf+2*we]<<8|G.pending_buf[G.d_buf+2*we+1],De=G.pending_buf[G.l_buf+we],we++,0===Ge?ae(G,De,re):(Oe=s[De],ae(G,Oe+256+1,re),xe=K[Oe],0!==xe&&(De-=e[Oe],H(G,De,xe)),Ge--,Oe=F(Ge),ae(G,Oe,ce),xe=Z[Oe],0!==xe&&(Ge-=i[Oe],H(G,Ge,xe)))}while(we{const ce=re.dyn_tree,Ge=re.stat_desc.static_tree,De=re.stat_desc.has_stree,we=re.stat_desc.elems;let Oe,xe,le,te=-1;for(G.heap_len=0,G.heap_max=573,Oe=0;Oe>1;Oe>=1;Oe--)Ne(G,ce,Oe);le=we;do{Oe=G.heap[1],G.heap[1]=G.heap[G.heap_len--],Ne(G,ce,1),xe=G.heap[1],G.heap[--G.heap_max]=Oe,G.heap[--G.heap_max]=xe,ce[2*le]=ce[2*Oe]+ce[2*xe],G.depth[le]=(G.depth[Oe]>=G.depth[xe]?G.depth[Oe]:G.depth[xe])+1,ce[2*Oe+1]=ce[2*xe+1]=le,G.heap[1]=le++,Ne(G,ce,1)}while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1],((G,re)=>{const ce=re.dyn_tree,Ge=re.max_code,De=re.stat_desc.static_tree,we=re.stat_desc.has_stree,Oe=re.stat_desc.extra_bits,xe=re.stat_desc.extra_base,te=re.stat_desc.max_length;let le,me,Pe,st,tt,et,gt=0;for(st=0;st<=15;st++)G.bl_count[st]=0;for(ce[2*G.heap[G.heap_max]+1]=0,le=G.heap_max+1;le<573;le++)me=G.heap[le],st=ce[2*ce[2*me+1]+1]+1,st>te&&(st=te,gt++),ce[2*me+1]=st,!(me>Ge)&&(G.bl_count[st]++,tt=0,me>=xe&&(tt=Oe[me-xe]),et=ce[2*me],G.opt_len+=et*(st+tt),we&&(G.static_len+=et*(De[2*me+1]+tt)));if(0!==gt){do{for(st=te-1;0===G.bl_count[st];)st--;G.bl_count[st]--,G.bl_count[st+1]+=2,G.bl_count[te]--,gt-=2}while(gt>0);for(st=te;0!==st;st--)for(me=G.bl_count[st];0!==me;)Pe=G.heap[--le],!(Pe>Ge)&&(ce[2*Pe+1]!==st&&(G.opt_len+=(st-ce[2*Pe+1])*ce[2*Pe],ce[2*Pe+1]=st),me--)}})(G,re),ee(ce,te,G.bl_count)},ot=(G,re,ce)=>{let Ge,we,De=-1,Oe=re[1],xe=0,te=7,le=4;for(0===Oe&&(te=138,le=3),re[2*(ce+1)+1]=65535,Ge=0;Ge<=ce;Ge++)we=Oe,Oe=re[2*(Ge+1)+1],!(++xe{let Ge,we,De=-1,Oe=re[1],xe=0,te=7,le=4;for(0===Oe&&(te=138,le=3),Ge=0;Ge<=ce;Ge++)if(we=Oe,Oe=re[2*(Ge+1)+1],!(++xe{H(G,0+(Ge?1:0),3),((G,re,ce,Ge)=>{ye(G),T(G,ce),T(G,~ce),G.pending_buf.set(G.window.subarray(re,re+ce),G.pending),G.pending+=ce})(G,re,ce)};q.exports._tr_init=G=>{Ue||((()=>{let G,re,ce,Ge,De;const we=new Array(16);for(ce=0,Ge=0;Ge<28;Ge++)for(e[Ge]=ce,G=0;G<1<>=7;Ge<30;Ge++)for(i[Ge]=De<<7,G=0;G<1<{let De,we,Oe=0;G.level>0?(2===G.strm.data_type&&(G.strm.data_type=(G=>{let ce,re=4093624447;for(ce=0;ce<=31;ce++,re>>>=1)if(1&re&&0!==G.dyn_ltree[2*ce])return 0;if(0!==G.dyn_ltree[18]||0!==G.dyn_ltree[20]||0!==G.dyn_ltree[26])return 1;for(ce=32;ce<256;ce++)if(0!==G.dyn_ltree[2*ce])return 1;return 0})(G)),Et(G,G.l_desc),Et(G,G.d_desc),Oe=(G=>{let re;for(ot(G,G.dyn_ltree,G.l_desc.max_code),ot(G,G.dyn_dtree,G.d_desc.max_code),Et(G,G.bl_desc),re=18;re>=3&&0===G.bl_tree[2*W[re]+1];re--);return G.opt_len+=3*(re+1)+5+5+4,re})(G),De=G.opt_len+3+7>>>3,we=G.static_len+3+7>>>3,we<=De&&(De=we)):De=we=ce+5,ce+4<=De&&-1!==re?Ve(G,re,ce,Ge):4===G.strategy||we===De?(H(G,2+(Ge?1:0),3),Ye(G,_,t)):(H(G,4+(Ge?1:0),3),((G,re,ce,Ge)=>{let De;for(H(G,re-257,5),H(G,ce-1,5),H(G,Ge-4,4),De=0;De(G.pending_buf[G.d_buf+2*G.last_lit]=re>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&re,G.pending_buf[G.l_buf+G.last_lit]=255&ce,G.last_lit++,0===re?G.dyn_ltree[2*ce]++:(G.matches++,re--,G.dyn_ltree[2*(s[ce]+256+1)]++,G.dyn_dtree[2*F(re)]++),G.last_lit===G.lit_bufsize-1),q.exports._tr_align=G=>{H(G,2,3),ae(G,256,_),(G=>{16===G.bi_valid?(T(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)})(G)}},344:q=>{"use strict";q.exports=function k(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},14152:(q,k,x)=>{"use strict";var I=x(16168)("%Object.defineProperty%",!0),M=x(15851)(),P=x(66270),o=M?Symbol.toStringTag:null;q.exports=function(S,D){var A=arguments.length>2&&arguments[2]&&arguments[2].force;o&&(A||!P(S,o))&&(I?I(S,o,{configurable:!0,enumerable:!1,value:D,writable:!1}):S[o]=D)}},66730:(q,k,x)=>{"use strict";var B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,I=x(74178),M=x(10043),P=x(16229),o=x(81620),w=function(A,g){if(typeof A>"u"||null===A)throw new TypeError("Cannot call method on "+A);if("string"!=typeof g||"number"!==g&&"string"!==g)throw new TypeError('hint must be "string" or "number"');var b,y,m,p="string"===g?["toString","valueOf"]:["valueOf","toString"];for(m=0;m1&&(arguments[1]===String?g="string":arguments[1]===Number&&(g="number")),B&&(Symbol.toPrimitive?p=S(A,Symbol.toPrimitive):o(A)&&(p=Symbol.prototype.valueOf)),typeof p<"u"){var b=p.call(A,g);if(I(b))return b;throw new TypeError("unable to convert exotic object to primitive")}return"default"===g&&(P(A)||o(A))&&(g="string"),w(A,"default"===g?"number":g)}},74178:q=>{"use strict";q.exports=function(x){return null===x||"function"!=typeof x&&"object"!=typeof x}},90958:(q,k,x)=>{"use strict";x.d(k,{i:()=>B});const B="ethers/5.7.2"},84003:(q,k,x)=>{"use strict";x.r(k),x.d(k,{BaseContract:()=>B.VZ,BigNumber:()=>I.O$,Contract:()=>B.CH,ContractFactory:()=>B.lV,FixedNumber:()=>M.xs,Signer:()=>P.E,VoidSigner:()=>P.b,Wallet:()=>o.Wallet,Wordlist:()=>A.D,constants:()=>w,errors:()=>p.ErrorCode,getDefaultProvider:()=>S.getDefaultProvider,logger:()=>y,providers:()=>S,utils:()=>g,version:()=>b.i,wordlists:()=>D.E});var B=x(19644),I=x(36706),M=x(41614),P=x(43382),o=x(5125),w=x(27233),S=x(84034),D=x(721),A=x(21029),g=x(74164),p=x(33190),b=x(90958);const y=new p.Logger(b.i)},92135:(q,k,x)=>{"use strict";x.r(k),x.d(k,{BaseContract:()=>o.VZ,BigNumber:()=>w.O$,Contract:()=>o.CH,ContractFactory:()=>o.lV,FixedNumber:()=>S.xs,Signer:()=>I.E,VoidSigner:()=>I.b,Wallet:()=>M.Wallet,Wordlist:()=>y.D,constants:()=>D,errors:()=>A.ErrorCode,ethers:()=>B,getDefaultProvider:()=>P.getDefaultProvider,logger:()=>B.logger,providers:()=>P,utils:()=>g,version:()=>b.i,wordlists:()=>p.E});var B=x(84003),I=x(43382),M=x(5125),P=x(84034),o=x(19644),w=x(36706),S=x(41614),D=x(27233),A=x(33190),g=x(74164),p=x(721),b=x(90958),y=x(21029);try{const m=window;null==m._ethers&&(m._ethers=B)}catch{}},74164:(q,k,x)=>{"use strict";x.r(k),x.d(k,{AbiCoder:()=>B.R,ConstructorFragment:()=>I.Xg,ErrorFragment:()=>I.IC,EventFragment:()=>I.QV,FormatTypes:()=>I.pc,Fragment:()=>I.HY,FunctionFragment:()=>I.YW,HDNode:()=>y.HDNode,Indexed:()=>P.Hk,Interface:()=>P.vU,LogDescription:()=>P.CC,Logger:()=>C.Logger,ParamType:()=>I._R,RLP:()=>K,SigningKey:()=>Z.SigningKey,SupportedAlgorithm:()=>e.p,TransactionDescription:()=>P.vk,TransactionTypes:()=>_.TransactionTypes,UnicodeNormalizationForm:()=>W.Uj,Utf8ErrorFuncs:()=>W.te,Utf8ErrorReason:()=>W.Uw,_TypedDataEncoder:()=>b.E,_fetchData:()=>s._fetchData,_toEscapedUtf8String:()=>W.U$,accessListify:()=>_.accessListify,arrayify:()=>D.arrayify,base58:()=>S.Base58,base64:()=>w,checkProperties:()=>j.checkProperties,checkResultErrors:()=>M.BR,commify:()=>t.commify,computeAddress:()=>_.computeAddress,computeHmac:()=>L.Gy,computePublicKey:()=>Z.computePublicKey,concat:()=>D.concat,deepCopy:()=>j.deepCopy,defaultAbiCoder:()=>B.$,defaultPath:()=>y.defaultPath,defineReadOnly:()=>j.defineReadOnly,dnsEncode:()=>A.Kn,entropyToMnemonic:()=>y.entropyToMnemonic,fetchJson:()=>s.fetchJson,formatBytes32String:()=>X.s,formatEther:()=>t.formatEther,formatUnits:()=>t.formatUnits,getAccountPath:()=>y.getAccountPath,getAddress:()=>o.getAddress,getContractAddress:()=>o.getContractAddress,getCreate2Address:()=>o.getCreate2Address,getIcapAddress:()=>o.getIcapAddress,getJsonWalletAddress:()=>m.Rb,getStatic:()=>j.getStatic,hashMessage:()=>g.r,hexConcat:()=>D.hexConcat,hexDataLength:()=>D.hexDataLength,hexDataSlice:()=>D.hexDataSlice,hexStripZeros:()=>D.hexStripZeros,hexValue:()=>D.hexValue,hexZeroPad:()=>D.hexZeroPad,hexlify:()=>D.hexlify,id:()=>p.id,isAddress:()=>o.isAddress,isBytes:()=>D.isBytes,isBytesLike:()=>D.isBytesLike,isHexString:()=>D.isHexString,isValidMnemonic:()=>y.isValidMnemonic,isValidName:()=>A.r1,joinSignature:()=>D.joinSignature,keccak256:()=>E.keccak256,mnemonicToEntropy:()=>y.mnemonicToEntropy,mnemonicToSeed:()=>y.mnemonicToSeed,namehash:()=>A.VM,nameprep:()=>Q.Ll,parseBytes32String:()=>X.F,parseEther:()=>t.parseEther,parseTransaction:()=>_.parse,parseUnits:()=>t.parseUnits,poll:()=>s.poll,randomBytes:()=>U.O,recoverAddress:()=>_.recoverAddress,recoverPublicKey:()=>Z.recoverPublicKey,resolveProperties:()=>j.resolveProperties,ripemd160:()=>L.bP,serializeTransaction:()=>_.serialize,sha256:()=>L.JQ,sha512:()=>L.o,shallowCopy:()=>j.shallowCopy,shuffled:()=>O.y,solidityKeccak256:()=>R.keccak256,solidityPack:()=>R.pack,soliditySha256:()=>R.sha256,splitSignature:()=>D.splitSignature,stripZeros:()=>D.stripZeros,toUtf8Bytes:()=>W.Y0,toUtf8CodePoints:()=>W.XL,toUtf8String:()=>W.ZN,verifyMessage:()=>a.verifyMessage,verifyTypedData:()=>a.verifyTypedData,zeroPad:()=>D.zeroPad});var B=x(72193),I=x(66151),M=x(92487),P=x(42840),o=x(67296),w=x(41877),S=x(50750),D=x(64153),A=x(4235),g=x(37732),p=x(50035),b=x(68402),y=x(44708),m=x(4498),E=x(59558),C=x(33190),L=x(33264),R=x(5852),U=x(6803),O=x(44352),j=x(2993),K=x(10714),Z=x(31570),Q=x(53797),W=x(9496),X=x(95414),_=x(38806),t=x(70717),a=x(5125),s=x(51486),e=x(98181)},43417:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(_,t,a,s){void 0===s&&(s=a),Object.defineProperty(_,s,{enumerable:!0,get:function(){return t[a]}})}:function(_,t,a,s){void 0===s&&(s=a),_[s]=t[a]}),I=this&&this.__setModuleDefault||(Object.create?function(_,t){Object.defineProperty(_,"default",{enumerable:!0,value:t})}:function(_,t){_.default=t}),M=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var t={};if(null!=_)for(var a in _)"default"!==a&&Object.prototype.hasOwnProperty.call(_,a)&&B(t,_,a);return I(t,_),t};Object.defineProperty(k,"__esModule",{value:!0}),k.formatBytes32String=k.Utf8ErrorFuncs=k.toUtf8String=k.toUtf8CodePoints=k.toUtf8Bytes=k._toEscapedUtf8String=k.nameprep=k.hexDataSlice=k.hexDataLength=k.hexZeroPad=k.hexValue=k.hexStripZeros=k.hexConcat=k.isHexString=k.hexlify=k.base64=k.base58=k.TransactionDescription=k.LogDescription=k.Interface=k.SigningKey=k.HDNode=k.defaultPath=k.isBytesLike=k.isBytes=k.zeroPad=k.stripZeros=k.concat=k.arrayify=k.shallowCopy=k.resolveProperties=k.getStatic=k.defineReadOnly=k.deepCopy=k.checkProperties=k.poll=k.fetchJson=k._fetchData=k.RLP=k.Logger=k.checkResultErrors=k.FormatTypes=k.ParamType=k.FunctionFragment=k.EventFragment=k.ErrorFragment=k.ConstructorFragment=k.Fragment=k.defaultAbiCoder=k.AbiCoder=void 0,k.Indexed=k.Utf8ErrorReason=k.UnicodeNormalizationForm=k.SupportedAlgorithm=k.mnemonicToSeed=k.isValidMnemonic=k.entropyToMnemonic=k.mnemonicToEntropy=k.getAccountPath=k.verifyTypedData=k.verifyMessage=k.recoverPublicKey=k.computePublicKey=k.recoverAddress=k.computeAddress=k.getJsonWalletAddress=k.TransactionTypes=k.serializeTransaction=k.parseTransaction=k.accessListify=k.joinSignature=k.splitSignature=k.soliditySha256=k.solidityKeccak256=k.solidityPack=k.shuffled=k.randomBytes=k.sha512=k.sha256=k.ripemd160=k.keccak256=k.computeHmac=k.commify=k.parseUnits=k.formatUnits=k.parseEther=k.formatEther=k.isAddress=k.getCreate2Address=k.getContractAddress=k.getIcapAddress=k.getAddress=k._TypedDataEncoder=k.id=k.isValidName=k.namehash=k.hashMessage=k.dnsEncode=k.parseBytes32String=void 0;var P=x(42867);Object.defineProperty(k,"AbiCoder",{enumerable:!0,get:function(){return P.AbiCoder}}),Object.defineProperty(k,"checkResultErrors",{enumerable:!0,get:function(){return P.checkResultErrors}}),Object.defineProperty(k,"ConstructorFragment",{enumerable:!0,get:function(){return P.ConstructorFragment}}),Object.defineProperty(k,"defaultAbiCoder",{enumerable:!0,get:function(){return P.defaultAbiCoder}}),Object.defineProperty(k,"ErrorFragment",{enumerable:!0,get:function(){return P.ErrorFragment}}),Object.defineProperty(k,"EventFragment",{enumerable:!0,get:function(){return P.EventFragment}}),Object.defineProperty(k,"FormatTypes",{enumerable:!0,get:function(){return P.FormatTypes}}),Object.defineProperty(k,"Fragment",{enumerable:!0,get:function(){return P.Fragment}}),Object.defineProperty(k,"FunctionFragment",{enumerable:!0,get:function(){return P.FunctionFragment}}),Object.defineProperty(k,"Indexed",{enumerable:!0,get:function(){return P.Indexed}}),Object.defineProperty(k,"Interface",{enumerable:!0,get:function(){return P.Interface}}),Object.defineProperty(k,"LogDescription",{enumerable:!0,get:function(){return P.LogDescription}}),Object.defineProperty(k,"ParamType",{enumerable:!0,get:function(){return P.ParamType}}),Object.defineProperty(k,"TransactionDescription",{enumerable:!0,get:function(){return P.TransactionDescription}});var o=x(67296);Object.defineProperty(k,"getAddress",{enumerable:!0,get:function(){return o.getAddress}}),Object.defineProperty(k,"getCreate2Address",{enumerable:!0,get:function(){return o.getCreate2Address}}),Object.defineProperty(k,"getContractAddress",{enumerable:!0,get:function(){return o.getContractAddress}}),Object.defineProperty(k,"getIcapAddress",{enumerable:!0,get:function(){return o.getIcapAddress}}),Object.defineProperty(k,"isAddress",{enumerable:!0,get:function(){return o.isAddress}});var w=M(x(41877));k.base64=w;var S=x(50750);Object.defineProperty(k,"base58",{enumerable:!0,get:function(){return S.Base58}});var D=x(64153);Object.defineProperty(k,"arrayify",{enumerable:!0,get:function(){return D.arrayify}}),Object.defineProperty(k,"concat",{enumerable:!0,get:function(){return D.concat}}),Object.defineProperty(k,"hexConcat",{enumerable:!0,get:function(){return D.hexConcat}}),Object.defineProperty(k,"hexDataSlice",{enumerable:!0,get:function(){return D.hexDataSlice}}),Object.defineProperty(k,"hexDataLength",{enumerable:!0,get:function(){return D.hexDataLength}}),Object.defineProperty(k,"hexlify",{enumerable:!0,get:function(){return D.hexlify}}),Object.defineProperty(k,"hexStripZeros",{enumerable:!0,get:function(){return D.hexStripZeros}}),Object.defineProperty(k,"hexValue",{enumerable:!0,get:function(){return D.hexValue}}),Object.defineProperty(k,"hexZeroPad",{enumerable:!0,get:function(){return D.hexZeroPad}}),Object.defineProperty(k,"isBytes",{enumerable:!0,get:function(){return D.isBytes}}),Object.defineProperty(k,"isBytesLike",{enumerable:!0,get:function(){return D.isBytesLike}}),Object.defineProperty(k,"isHexString",{enumerable:!0,get:function(){return D.isHexString}}),Object.defineProperty(k,"joinSignature",{enumerable:!0,get:function(){return D.joinSignature}}),Object.defineProperty(k,"zeroPad",{enumerable:!0,get:function(){return D.zeroPad}}),Object.defineProperty(k,"splitSignature",{enumerable:!0,get:function(){return D.splitSignature}}),Object.defineProperty(k,"stripZeros",{enumerable:!0,get:function(){return D.stripZeros}});var A=x(3730);Object.defineProperty(k,"_TypedDataEncoder",{enumerable:!0,get:function(){return A._TypedDataEncoder}}),Object.defineProperty(k,"dnsEncode",{enumerable:!0,get:function(){return A.dnsEncode}}),Object.defineProperty(k,"hashMessage",{enumerable:!0,get:function(){return A.hashMessage}}),Object.defineProperty(k,"id",{enumerable:!0,get:function(){return A.id}}),Object.defineProperty(k,"isValidName",{enumerable:!0,get:function(){return A.isValidName}}),Object.defineProperty(k,"namehash",{enumerable:!0,get:function(){return A.namehash}});var g=x(44708);Object.defineProperty(k,"defaultPath",{enumerable:!0,get:function(){return g.defaultPath}}),Object.defineProperty(k,"entropyToMnemonic",{enumerable:!0,get:function(){return g.entropyToMnemonic}}),Object.defineProperty(k,"getAccountPath",{enumerable:!0,get:function(){return g.getAccountPath}}),Object.defineProperty(k,"HDNode",{enumerable:!0,get:function(){return g.HDNode}}),Object.defineProperty(k,"isValidMnemonic",{enumerable:!0,get:function(){return g.isValidMnemonic}}),Object.defineProperty(k,"mnemonicToEntropy",{enumerable:!0,get:function(){return g.mnemonicToEntropy}}),Object.defineProperty(k,"mnemonicToSeed",{enumerable:!0,get:function(){return g.mnemonicToSeed}});var p=x(33895);Object.defineProperty(k,"getJsonWalletAddress",{enumerable:!0,get:function(){return p.getJsonWalletAddress}});var b=x(59558);Object.defineProperty(k,"keccak256",{enumerable:!0,get:function(){return b.keccak256}});var y=x(33190);Object.defineProperty(k,"Logger",{enumerable:!0,get:function(){return y.Logger}});var m=x(84446);Object.defineProperty(k,"computeHmac",{enumerable:!0,get:function(){return m.computeHmac}}),Object.defineProperty(k,"ripemd160",{enumerable:!0,get:function(){return m.ripemd160}}),Object.defineProperty(k,"sha256",{enumerable:!0,get:function(){return m.sha256}}),Object.defineProperty(k,"sha512",{enumerable:!0,get:function(){return m.sha512}});var E=x(5852);Object.defineProperty(k,"solidityKeccak256",{enumerable:!0,get:function(){return E.keccak256}}),Object.defineProperty(k,"solidityPack",{enumerable:!0,get:function(){return E.pack}}),Object.defineProperty(k,"soliditySha256",{enumerable:!0,get:function(){return E.sha256}});var C=x(93253);Object.defineProperty(k,"randomBytes",{enumerable:!0,get:function(){return C.randomBytes}}),Object.defineProperty(k,"shuffled",{enumerable:!0,get:function(){return C.shuffled}});var L=x(2993);Object.defineProperty(k,"checkProperties",{enumerable:!0,get:function(){return L.checkProperties}}),Object.defineProperty(k,"deepCopy",{enumerable:!0,get:function(){return L.deepCopy}}),Object.defineProperty(k,"defineReadOnly",{enumerable:!0,get:function(){return L.defineReadOnly}}),Object.defineProperty(k,"getStatic",{enumerable:!0,get:function(){return L.getStatic}}),Object.defineProperty(k,"resolveProperties",{enumerable:!0,get:function(){return L.resolveProperties}}),Object.defineProperty(k,"shallowCopy",{enumerable:!0,get:function(){return L.shallowCopy}});var R=M(x(10714));k.RLP=R;var U=x(31570);Object.defineProperty(k,"computePublicKey",{enumerable:!0,get:function(){return U.computePublicKey}}),Object.defineProperty(k,"recoverPublicKey",{enumerable:!0,get:function(){return U.recoverPublicKey}}),Object.defineProperty(k,"SigningKey",{enumerable:!0,get:function(){return U.SigningKey}});var O=x(10187);Object.defineProperty(k,"formatBytes32String",{enumerable:!0,get:function(){return O.formatBytes32String}}),Object.defineProperty(k,"nameprep",{enumerable:!0,get:function(){return O.nameprep}}),Object.defineProperty(k,"parseBytes32String",{enumerable:!0,get:function(){return O.parseBytes32String}}),Object.defineProperty(k,"_toEscapedUtf8String",{enumerable:!0,get:function(){return O._toEscapedUtf8String}}),Object.defineProperty(k,"toUtf8Bytes",{enumerable:!0,get:function(){return O.toUtf8Bytes}}),Object.defineProperty(k,"toUtf8CodePoints",{enumerable:!0,get:function(){return O.toUtf8CodePoints}}),Object.defineProperty(k,"toUtf8String",{enumerable:!0,get:function(){return O.toUtf8String}}),Object.defineProperty(k,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return O.Utf8ErrorFuncs}});var j=x(38806);Object.defineProperty(k,"accessListify",{enumerable:!0,get:function(){return j.accessListify}}),Object.defineProperty(k,"computeAddress",{enumerable:!0,get:function(){return j.computeAddress}}),Object.defineProperty(k,"parseTransaction",{enumerable:!0,get:function(){return j.parse}}),Object.defineProperty(k,"recoverAddress",{enumerable:!0,get:function(){return j.recoverAddress}}),Object.defineProperty(k,"serializeTransaction",{enumerable:!0,get:function(){return j.serialize}}),Object.defineProperty(k,"TransactionTypes",{enumerable:!0,get:function(){return j.TransactionTypes}});var K=x(70717);Object.defineProperty(k,"commify",{enumerable:!0,get:function(){return K.commify}}),Object.defineProperty(k,"formatEther",{enumerable:!0,get:function(){return K.formatEther}}),Object.defineProperty(k,"parseEther",{enumerable:!0,get:function(){return K.parseEther}}),Object.defineProperty(k,"formatUnits",{enumerable:!0,get:function(){return K.formatUnits}}),Object.defineProperty(k,"parseUnits",{enumerable:!0,get:function(){return K.parseUnits}});var Z=x(5125);Object.defineProperty(k,"verifyMessage",{enumerable:!0,get:function(){return Z.verifyMessage}}),Object.defineProperty(k,"verifyTypedData",{enumerable:!0,get:function(){return Z.verifyTypedData}});var Q=x(51486);Object.defineProperty(k,"_fetchData",{enumerable:!0,get:function(){return Q._fetchData}}),Object.defineProperty(k,"fetchJson",{enumerable:!0,get:function(){return Q.fetchJson}}),Object.defineProperty(k,"poll",{enumerable:!0,get:function(){return Q.poll}});var W=x(84446);Object.defineProperty(k,"SupportedAlgorithm",{enumerable:!0,get:function(){return W.SupportedAlgorithm}});var X=x(10187);Object.defineProperty(k,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return X.UnicodeNormalizationForm}}),Object.defineProperty(k,"Utf8ErrorReason",{enumerable:!0,get:function(){return X.Utf8ErrorReason}})},25071:q=>{"use strict";var k="Function.prototype.bind called on incompatible ",x=Array.prototype.slice,B=Object.prototype.toString,I="[object Function]";q.exports=function(P){var o=this;if("function"!=typeof o||B.call(o)!==I)throw new TypeError(k+o);for(var S,w=x.call(arguments,1),D=function(){if(this instanceof S){var y=o.apply(this,w.concat(x.call(arguments)));return Object(y)===y?y:this}return o.apply(P,w.concat(x.call(arguments)))},A=Math.max(0,o.length-w.length),g=[],p=0;p{"use strict";var B=x(25071);q.exports=Function.prototype.bind||B},48533:q=>{"use strict";var k=function(){return"string"==typeof function(){}.name},x=Object.getOwnPropertyDescriptor;if(x)try{x([],"length")}catch{x=null}k.functionsHaveConfigurableNames=function(){if(!k()||!x)return!1;var M=x(function(){},"name");return!!M&&!!M.configurable};var B=Function.prototype.bind;k.boundFunctionsHaveNames=function(){return k()&&"function"==typeof B&&""!==function(){}.bind().name},q.exports=k},16168:(q,k,x)=>{"use strict";var B,I=SyntaxError,M=Function,P=TypeError,o=function(_){try{return M('"use strict"; return ('+_+").constructor;")()}catch{}},w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch{w=null}var S=function(){throw new P},D=w?function(){try{return S}catch{try{return w(arguments,"callee").get}catch{return S}}}():S,A=x(39332)(),g=Object.getPrototypeOf||function(_){return _.__proto__},p={},b=typeof Uint8Array>"u"?B:g(Uint8Array),y={"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":A?g([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":M,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A?g(g([][Symbol.iterator]())):B,"%JSON%":"object"==typeof JSON?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A?B:g((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A?B:g((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A?g(""[Symbol.iterator]()):B,"%Symbol%":A?Symbol:B,"%SyntaxError%":I,"%ThrowTypeError%":D,"%TypedArray%":b,"%TypeError%":P,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet},m=function _(t){var a;if("%AsyncFunction%"===t)a=o("async function () {}");else if("%GeneratorFunction%"===t)a=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)a=o("async function* () {}");else if("%AsyncGenerator%"===t){var s=_("%AsyncGeneratorFunction%");s&&(a=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var e=_("%AsyncGenerator%");e&&(a=g(e.prototype))}return y[t]=a,a},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=x(24721),L=x(66270),R=C.call(Function.call,Array.prototype.concat),U=C.call(Function.apply,Array.prototype.splice),O=C.call(Function.call,String.prototype.replace),j=C.call(Function.call,String.prototype.slice),K=C.call(Function.call,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,W=function(t){var a=j(t,0,1),s=j(t,-1);if("%"===a&&"%"!==s)throw new I("invalid intrinsic syntax, expected closing `%`");if("%"===s&&"%"!==a)throw new I("invalid intrinsic syntax, expected opening `%`");var e=[];return O(t,Z,function(i,u,d,c){e[e.length]=d?O(c,Q,"$1"):u||i}),e},X=function(t,a){var e,s=t;if(L(E,s)&&(s="%"+(e=E[s])[0]+"%"),L(y,s)){var i=y[s];if(i===p&&(i=m(s)),typeof i>"u"&&!a)throw new P("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:e,name:s,value:i}}throw new I("intrinsic "+t+" does not exist!")};q.exports=function(t,a){if("string"!=typeof t||0===t.length)throw new P("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof a)throw new P('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,t))throw new I("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=W(t),e=s.length>0?s[0]:"",i=X("%"+e+"%",a),u=i.name,d=i.value,c=!1,r=i.alias;r&&(e=r[0],U(s,R([0,1],r)));for(var h=1,F=!0;h=s.length){var Ae=w(d,T);d=(F=!!Ae)&&"get"in Ae&&!("originalValue"in Ae.get)?Ae.get:d[T]}else F=L(d,T),d=d[T];F&&!c&&(y[u]=d)}}return d}},37945:(q,k,x)=>{"use strict";var I=x(16168)("%Object.defineProperty%",!0),M=function(){if(I)try{return I({},"a",{value:1}),!0}catch{return!1}return!1};M.hasArrayLengthDefineBug=function(){if(!M())return null;try{return 1!==I([],"length",{value:1}).length}catch{return!0}},q.exports=M},45792:q=>{"use strict";var k={foo:{}},x=Object;q.exports=function(){return{__proto__:k}.foo===k.foo&&!({__proto__:null}instanceof x)}},39332:(q,k,x)=>{"use strict";var B=typeof Symbol<"u"&&Symbol,I=x(20089);q.exports=function(){return"function"==typeof B&&"function"==typeof Symbol&&"symbol"==typeof B("foo")&&"symbol"==typeof Symbol("bar")&&I()}},20089:q=>{"use strict";q.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var x={},B=Symbol("test"),I=Object(B);if("string"==typeof B||"[object Symbol]"!==Object.prototype.toString.call(B)||"[object Symbol]"!==Object.prototype.toString.call(I))return!1;for(B in x[B]=42,x)return!1;if("function"==typeof Object.keys&&0!==Object.keys(x).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(x).length)return!1;var P=Object.getOwnPropertySymbols(x);if(1!==P.length||P[0]!==B||!Object.prototype.propertyIsEnumerable.call(x,B))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(x,B);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},15851:(q,k,x)=>{"use strict";var B=x(20089);q.exports=function(){return B()&&!!Symbol.toStringTag}},66270:(q,k,x)=>{"use strict";var B=x(24721);q.exports=B.call(Function.call,Object.prototype.hasOwnProperty)},27246:(q,k,x)=>{var B=k;B.utils=x(49436),B.common=x(93399),B.sha=x(96166),B.ripemd=x(98093),B.hmac=x(15106),B.sha1=B.sha.sha1,B.sha256=B.sha.sha256,B.sha224=B.sha.sha224,B.sha384=B.sha.sha384,B.sha512=B.sha.sha512,B.ripemd160=B.ripemd.ripemd160},93399:(q,k,x)=>{"use strict";var B=x(49436),I=x(74425);function M(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}k.BlockHash=M,M.prototype.update=function(o,w){if(o=B.toArray(o,w),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var S=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-S,o.length),0===this.pending.length&&(this.pending=null),o=B.join32(o,0,o.length-S,this.endian);for(var D=0;D>>24&255,D[A++]=o>>>16&255,D[A++]=o>>>8&255,D[A++]=255&o}else for(D[A++]=255&o,D[A++]=o>>>8&255,D[A++]=o>>>16&255,D[A++]=o>>>24&255,D[A++]=0,D[A++]=0,D[A++]=0,D[A++]=0,g=8;g{"use strict";var B=x(49436),I=x(74425);function M(P,o,w){if(!(this instanceof M))return new M(P,o,w);this.Hash=P,this.blockSize=P.blockSize/8,this.outSize=P.outSize/8,this.inner=null,this.outer=null,this._init(B.toArray(o,w))}q.exports=M,M.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),I(o.length<=this.blockSize);for(var w=o.length;w{"use strict";var B=x(49436),I=x(93399),M=B.rotl32,P=B.sum32,o=B.sum32_3,w=B.sum32_4,S=I.BlockHash;function D(){if(!(this instanceof D))return new D;S.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function A(C,L,R,U){return C<=15?L^R^U:C<=31?L&R|~L&U:C<=47?(L|~R)^U:C<=63?L&U|R&~U:L^(R|~U)}function p(C){return C<=15?1352829926:C<=31?1548603684:C<=47?1836072691:C<=63?2053994217:0}B.inherits(D,S),k.ripemd160=D,D.blockSize=512,D.outSize=160,D.hmacStrength=192,D.padLength=64,D.prototype._update=function(L,R){for(var U=this.h[0],O=this.h[1],j=this.h[2],K=this.h[3],Z=this.h[4],Q=U,W=O,X=j,_=K,t=Z,a=0;a<80;a++){var s=P(M(w(U,A(a,O,j,K),L[b[a]+R],(C=a)<=15?0:C<=31?1518500249:C<=47?1859775393:C<=63?2400959708:2840853838),m[a]),Z);U=Z,Z=K,K=M(j,10),j=O,O=s,s=P(M(w(Q,A(79-a,W,X,_),L[y[a]+R],p(a)),E[a]),t),Q=t,t=_,_=M(X,10),X=W,W=s}var C;s=o(this.h[1],j,_),this.h[1]=o(this.h[2],K,t),this.h[2]=o(this.h[3],Z,Q),this.h[3]=o(this.h[4],U,W),this.h[4]=o(this.h[0],O,X),this.h[0]=s},D.prototype._digest=function(L){return"hex"===L?B.toHex32(this.h,"little"):B.split32(this.h,"little")};var b=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},96166:(q,k,x)=>{"use strict";k.sha1=x(22930),k.sha224=x(11213),k.sha256=x(30425),k.sha384=x(31559),k.sha512=x(96310)},22930:(q,k,x)=>{"use strict";var B=x(49436),I=x(93399),M=x(95799),P=B.rotl32,o=B.sum32,w=B.sum32_5,S=M.ft_1,D=I.BlockHash,A=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;D.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}B.inherits(g,D),q.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(b,y){for(var m=this.W,E=0;E<16;E++)m[E]=b[y+E];for(;E{"use strict";var B=x(49436),I=x(30425);function M(){if(!(this instanceof M))return new M;I.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}B.inherits(M,I),q.exports=M,M.blockSize=512,M.outSize=224,M.hmacStrength=192,M.padLength=64,M.prototype._digest=function(o){return"hex"===o?B.toHex32(this.h.slice(0,7),"big"):B.split32(this.h.slice(0,7),"big")}},30425:(q,k,x)=>{"use strict";var B=x(49436),I=x(93399),M=x(95799),P=x(74425),o=B.sum32,w=B.sum32_4,S=B.sum32_5,D=M.ch32,A=M.maj32,g=M.s0_256,p=M.s1_256,b=M.g0_256,y=M.g1_256,m=I.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function C(){if(!(this instanceof C))return new C;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}B.inherits(C,m),q.exports=C,C.blockSize=512,C.outSize=256,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(R,U){for(var O=this.W,j=0;j<16;j++)O[j]=R[U+j];for(;j{"use strict";var B=x(49436),I=x(96310);function M(){if(!(this instanceof M))return new M;I.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}B.inherits(M,I),q.exports=M,M.blockSize=1024,M.outSize=384,M.hmacStrength=192,M.padLength=128,M.prototype._digest=function(o){return"hex"===o?B.toHex32(this.h.slice(0,12),"big"):B.split32(this.h.slice(0,12),"big")}},96310:(q,k,x)=>{"use strict";var B=x(49436),I=x(93399),M=x(74425),P=B.rotr64_hi,o=B.rotr64_lo,w=B.shr64_hi,S=B.shr64_lo,D=B.sum64,A=B.sum64_hi,g=B.sum64_lo,p=B.sum64_4_hi,b=B.sum64_4_lo,y=B.sum64_5_hi,m=B.sum64_5_lo,E=I.BlockHash,C=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function L(){if(!(this instanceof L))return new L;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=C,this.W=new Array(160)}function R(s,e,i,u,d){var c=s&i^~s&d;return c<0&&(c+=4294967296),c}function U(s,e,i,u,d,c){var r=e&u^~e&c;return r<0&&(r+=4294967296),r}function O(s,e,i,u,d){var c=s&i^s&d^i&d;return c<0&&(c+=4294967296),c}function j(s,e,i,u,d,c){var r=e&u^e&c^u&c;return r<0&&(r+=4294967296),r}function K(s,e){var c=P(s,e,28)^P(e,s,2)^P(e,s,7);return c<0&&(c+=4294967296),c}function Z(s,e){var c=o(s,e,28)^o(e,s,2)^o(e,s,7);return c<0&&(c+=4294967296),c}function Q(s,e){var c=P(s,e,14)^P(s,e,18)^P(e,s,9);return c<0&&(c+=4294967296),c}function W(s,e){var c=o(s,e,14)^o(s,e,18)^o(e,s,9);return c<0&&(c+=4294967296),c}function X(s,e){var c=P(s,e,1)^P(s,e,8)^w(s,e,7);return c<0&&(c+=4294967296),c}function _(s,e){var c=o(s,e,1)^o(s,e,8)^S(s,e,7);return c<0&&(c+=4294967296),c}function t(s,e){var c=P(s,e,19)^P(e,s,29)^w(s,e,6);return c<0&&(c+=4294967296),c}function a(s,e){var c=o(s,e,19)^o(e,s,29)^S(s,e,6);return c<0&&(c+=4294967296),c}B.inherits(L,E),q.exports=L,L.blockSize=1024,L.outSize=512,L.hmacStrength=192,L.padLength=128,L.prototype._prepareBlock=function(e,i){for(var u=this.W,d=0;d<32;d++)u[d]=e[i+d];for(;d{"use strict";var I=x(49436).rotr32;function P(p,b,y){return p&b^~p&y}function o(p,b,y){return p&b^p&y^b&y}function w(p,b,y){return p^b^y}k.ft_1=function M(p,b,y,m){return 0===p?P(b,y,m):1===p||3===p?w(b,y,m):2===p?o(b,y,m):void 0},k.ch32=P,k.maj32=o,k.p32=w,k.s0_256=function S(p){return I(p,2)^I(p,13)^I(p,22)},k.s1_256=function D(p){return I(p,6)^I(p,11)^I(p,25)},k.g0_256=function A(p){return I(p,7)^I(p,18)^p>>>3},k.g1_256=function g(p){return I(p,17)^I(p,19)^p>>>10}},49436:(q,k,x)=>{"use strict";var B=x(74425),I=x(61390);function M(a,s){return!(55296!=(64512&a.charCodeAt(s))||s<0||s+1>=a.length)&&56320==(64512&a.charCodeAt(s+1))}function w(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function D(a){return 1===a.length?"0"+a:a}function A(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}k.inherits=I,k.toArray=function P(a,s){if(Array.isArray(a))return a.slice();if(!a)return[];var e=[];if("string"==typeof a)if(s){if("hex"===s)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),u=0;u>6|192,e[i++]=63&d|128):M(a,u)?(d=65536+((1023&d)<<10)+(1023&a.charCodeAt(++u)),e[i++]=d>>18|240,e[i++]=d>>12&63|128,e[i++]=d>>6&63|128,e[i++]=63&d|128):(e[i++]=d>>12|224,e[i++]=d>>6&63|128,e[i++]=63&d|128)}else for(u=0;u>>0;return d},k.split32=function p(a,s){for(var e=new Array(4*a.length),i=0,u=0;i>>24,e[u+1]=d>>>16&255,e[u+2]=d>>>8&255,e[u+3]=255&d):(e[u+3]=d>>>24,e[u+2]=d>>>16&255,e[u+1]=d>>>8&255,e[u]=255&d)}return e},k.rotr32=function b(a,s){return a>>>s|a<<32-s},k.rotl32=function y(a,s){return a<>>32-s},k.sum32=function m(a,s){return a+s>>>0},k.sum32_3=function E(a,s,e){return a+s+e>>>0},k.sum32_4=function C(a,s,e,i){return a+s+e+i>>>0},k.sum32_5=function L(a,s,e,i,u){return a+s+e+i+u>>>0},k.sum64=function R(a,s,e,i){var c=i+a[s+1]>>>0;a[s]=(c>>0,a[s+1]=c},k.sum64_hi=function U(a,s,e,i){return(s+i>>>0>>0},k.sum64_lo=function O(a,s,e,i){return s+i>>>0},k.sum64_4_hi=function j(a,s,e,i,u,d,c,r){var h=0,F=s;return h+=(F=F+i>>>0)>>0)>>0)>>0},k.sum64_4_lo=function K(a,s,e,i,u,d,c,r){return s+i+d+r>>>0},k.sum64_5_hi=function Z(a,s,e,i,u,d,c,r,h,F){var T=0,H=s;return T+=(H=H+i>>>0)>>0)>>0)>>0)>>0},k.sum64_5_lo=function Q(a,s,e,i,u,d,c,r,h,F){return s+i+d+r+F>>>0},k.rotr64_hi=function W(a,s,e){return(s<<32-e|a>>>e)>>>0},k.rotr64_lo=function X(a,s,e){return(a<<32-e|s>>>e)>>>0},k.shr64_hi=function _(a,s,e){return a>>>e},k.shr64_lo=function t(a,s,e){return(a<<32-e|s>>>e)>>>0}},63491:(q,k,x)=>{"use strict";var B=x(27246),I=x(98119),M=x(74425);function P(o){if(!(this instanceof P))return new P(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var w=I.toArray(o.entropy,o.entropyEnc||"hex"),S=I.toArray(o.nonce,o.nonceEnc||"hex"),D=I.toArray(o.pers,o.persEnc||"hex");M(w.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(w,S,D)}q.exports=P,P.prototype._init=function(w,S,D){var A=w.concat(S).concat(D);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var g=0;g=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(w.concat(D||[])),this._reseed=1},P.prototype.generate=function(w,S,D,A){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof S&&(A=D,D=S,S=null),D&&(D=I.toArray(D,A||"hex"),this._update(D));for(var g=[];g.length{q.exports="function"==typeof Object.create?function(x,B){B&&(x.super_=B,x.prototype=Object.create(B.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:function(x,B){if(B){x.super_=B;var I=function(){};I.prototype=B.prototype,x.prototype=new I,x.prototype.constructor=x}}},10779:(q,k,x)=>{"use strict";var B=x(16168),I=x(66270),M=x(30592)(),P=B("%TypeError%"),o={assert:function(w,S){if(!w||"object"!=typeof w&&"function"!=typeof w)throw new P("`O` is not an object");if("string"!=typeof S)throw new P("`slot` must be a string");if(M.assert(w),!o.has(w,S))throw new P("`slot` is not present on `O`")},get:function(w,S){if(!w||"object"!=typeof w&&"function"!=typeof w)throw new P("`O` is not an object");if("string"!=typeof S)throw new P("`slot` must be a string");var D=M.get(w);return D&&D["$"+S]},has:function(w,S){if(!w||"object"!=typeof w&&"function"!=typeof w)throw new P("`O` is not an object");if("string"!=typeof S)throw new P("`slot` must be a string");var D=M.get(w);return!!D&&I(D,"$"+S)},set:function(w,S,D){if(!w||"object"!=typeof w&&"function"!=typeof w)throw new P("`O` is not an object");if("string"!=typeof S)throw new P("`slot` must be a string");var A=M.get(w);A||M.set(w,A={}),A["$"+S]=D}};Object.freeze&&Object.freeze(o),q.exports=o},10043:q=>{"use strict";var B,I,k=Function.prototype.toString,x="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof x&&"function"==typeof Object.defineProperty)try{B=Object.defineProperty({},"length",{get:function(){throw I}}),I={},x(function(){throw 42},null,B)}catch(L){L!==I&&(x=null)}else x=null;var M=/^\s*class\b/,P=function(R){try{var U=k.call(R);return M.test(U)}catch{return!1}},o=function(R){try{return!P(R)&&(k.call(R),!0)}catch{return!1}},w=Object.prototype.toString,y="function"==typeof Symbol&&!!Symbol.toStringTag,m=!(0 in[,]),E=function(){return!1};if("object"==typeof document){var C=document.all;w.call(C)===w.call(document.all)&&(E=function(R){if((m||!R)&&(typeof R>"u"||"object"==typeof R))try{var U=w.call(R);return("[object HTMLAllCollection]"===U||"[object HTML document.all class]"===U||"[object HTMLCollection]"===U||"[object Object]"===U)&&null==R("")}catch{}return!1})}q.exports=x?function(R){if(E(R))return!0;if(!R||"function"!=typeof R&&"object"!=typeof R)return!1;try{x(R,null,B)}catch(U){if(U!==I)return!1}return!P(R)&&o(R)}:function(R){if(E(R))return!0;if(!R||"function"!=typeof R&&"object"!=typeof R)return!1;if(y)return o(R);if(P(R))return!1;var U=w.call(R);return!("[object Function]"!==U&&"[object GeneratorFunction]"!==U&&!/^\[object HTML/.test(U))&&o(R)}},16229:(q,k,x)=>{"use strict";var B=Date.prototype.getDay,M=Object.prototype.toString,o=x(15851)();q.exports=function(S){return"object"==typeof S&&null!==S&&(o?function(S){try{return B.call(S),!0}catch{return!1}}(S):"[object Date]"===M.call(S))}},95746:(q,k,x)=>{"use strict";var M,P,o,w,B=x(83740),I=x(15851)();if(I){M=B("Object.prototype.hasOwnProperty"),P=B("RegExp.prototype.exec"),o={};var S=function(){throw o};w={toString:S,valueOf:S},"symbol"==typeof Symbol.toPrimitive&&(w[Symbol.toPrimitive]=S)}var D=B("Object.prototype.toString"),A=Object.getOwnPropertyDescriptor;q.exports=I?function(b){if(!b||"object"!=typeof b)return!1;var y=A(b,"lastIndex");if(!y||!M(y,"value"))return!1;try{P(b,w)}catch(E){return E===o}}:function(b){return!(!b||"object"!=typeof b&&"function"!=typeof b)&&"[object RegExp]"===D(b)}},81620:(q,k,x)=>{"use strict";var B=Object.prototype.toString;if(x(39332)()){var M=Symbol.prototype.toString,P=/^Symbol\(.*\)$/;q.exports=function(S){if("symbol"==typeof S)return!0;if("[object Symbol]"!==B.call(S))return!1;try{return function(S){return"symbol"==typeof S.valueOf()&&P.test(M.call(S))}(S)}catch{return!1}}}else q.exports=function(S){return!1}},81403:(q,k,x)=>{var B;!function(){"use strict";var I="input is invalid type",P="object"==typeof window,o=P?window:{};o.JS_SHA3_NO_WINDOW&&(P=!1);var w=!P&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?o=global:w&&(o=self);var D=!o.JS_SHA3_NO_COMMON_JS&&q.exports,A=x.amdO,g=!o.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),y=[4,1024,262144,67108864],C=[0,8,16,24],L=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],R=[224,256,384,512],U=[128,256],O=["hex","buffer","arrayBuffer","array","digest"],j={128:168,256:136};(o.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(fe){return"[object Array]"===Object.prototype.toString.call(fe)}),g&&(o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(fe){return"object"==typeof fe&&fe.buffer&&fe.buffer.constructor===ArrayBuffer});for(var K=function(fe,Ee,ee){return function(se){return new H(fe,Ee,fe).update(se)[ee]()}},Z=function(fe,Ee,ee){return function(se,ze){return new H(fe,Ee,ze).update(se)[ee]()}},Q=function(fe,Ee,ee){return function(se,ze,ye,ue){return i["cshake"+fe].update(se,ze,ye,ue)[ee]()}},W=function(fe,Ee,ee){return function(se,ze,ye,ue){return i["kmac"+fe].update(se,ze,ye,ue)[ee]()}},X=function(fe,Ee,ee,se){for(var ze=0;ze>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ee>>5,this.extraBytes=(31&ee)>>3;for(var se=0;se<50;++se)this.s[se]=0}function ae(fe,Ee,ee){H.call(this,fe,Ee,ee)}H.prototype.update=function(fe){if(this.finalized)throw new Error("finalize already called");var Ee,ee=typeof fe;if("string"!==ee){if("object"!==ee)throw new Error(I);if(null===fe)throw new Error(I);if(g&&fe.constructor===ArrayBuffer)fe=new Uint8Array(fe);else if(!(Array.isArray(fe)||g&&ArrayBuffer.isView(fe)))throw new Error(I);Ee=!0}for(var Ye,Et,se=this.blocks,ze=this.byteCount,ye=fe.length,ue=this.blockCount,je=0,Ne=this.s;je>2]|=fe[je]<>2]|=Et<>2]|=(192|Et>>6)<>2]|=(128|63&Et)<=57344?(se[Ye>>2]|=(224|Et>>12)<>2]|=(128|Et>>6&63)<>2]|=(128|63&Et)<>2]|=(240|Et>>18)<>2]|=(128|Et>>12&63)<>2]|=(128|Et>>6&63)<>2]|=(128|63&Et)<=ze){for(this.start=Ye-ze,this.block=se[ue],Ye=0;Ye>=8);ee>0;)ze.unshift(ee),ee=255&(fe>>=8),++se;return Ee?ze.push(se):ze.unshift(se),this.update(ze),ze.length},H.prototype.encodeString=function(fe){var Ee,ee=typeof fe;if("string"!==ee){if("object"!==ee)throw new Error(I);if(null===fe)throw new Error(I);if(g&&fe.constructor===ArrayBuffer)fe=new Uint8Array(fe);else if(!(Array.isArray(fe)||g&&ArrayBuffer.isView(fe)))throw new Error(I);Ee=!0}var se=0;if(Ee)se=fe.length;else for(var ye=0;ye=57344?se+=3:(ue=65536+((1023&ue)<<10|1023&fe.charCodeAt(++ye)),se+=4)}return se+=this.encode(8*se),this.update(fe),se},H.prototype.bytepad=function(fe,Ee){for(var ee=this.encode(Ee),se=0;se>2]|=this.padding[3&Ee],this.lastByteIndex===this.byteCount)for(fe[0]=fe[ee],Ee=1;Ee>4&15]+p[15&je]+p[je>>12&15]+p[je>>8&15]+p[je>>20&15]+p[je>>16&15]+p[je>>28&15]+p[je>>24&15];ye%fe==0&&(Ae(Ee),ze=0)}return se&&(ue+=p[(je=Ee[ze])>>4&15]+p[15&je],se>1&&(ue+=p[je>>12&15]+p[je>>8&15]),se>2&&(ue+=p[je>>20&15]+p[je>>16&15])),ue},H.prototype.buffer=H.prototype.arrayBuffer=function(){this.finalize();var je,fe=this.blockCount,Ee=this.s,ee=this.outputBlocks,se=this.extraBytes,ze=0,ye=0,ue=this.outputBits>>3;je=se?new ArrayBuffer(ee+1<<2):new ArrayBuffer(ue);for(var Ne=new Uint32Array(je);ye>8&255,ue[je+2]=Ne>>16&255,ue[je+3]=Ne>>24&255;ye%fe==0&&Ae(Ee)}return se&&(ue[je=ye<<2]=255&(Ne=Ee[ze]),se>1&&(ue[je+1]=Ne>>8&255),se>2&&(ue[je+2]=Ne>>16&255)),ue},(ae.prototype=new H).finalize=function(){return this.encode(this.outputBits,!0),H.prototype.finalize.call(this)};var Ae=function(fe){var Ee,ee,se,ze,ye,ue,je,Ne,Ye,Et,ot,lt,Lt,ct,He,Ue,Se,Ve,Le,Y,z,G,re,ce,Ge,De,we,Oe,xe,te,le,me,Pe,st,tt,et,gt,Fe,ne,yt,rt,$,We,Be,Ze,pe,ve,be,de,Re,Je,vt,it,at,It,At,Rt,Pt,Vt,er,nr,tr,Wt;for(se=0;se<48;se+=2)ze=fe[0]^fe[10]^fe[20]^fe[30]^fe[40],ye=fe[1]^fe[11]^fe[21]^fe[31]^fe[41],Ne=fe[4]^fe[14]^fe[24]^fe[34]^fe[44],Ye=fe[5]^fe[15]^fe[25]^fe[35]^fe[45],Et=fe[6]^fe[16]^fe[26]^fe[36]^fe[46],ot=fe[7]^fe[17]^fe[27]^fe[37]^fe[47],ee=(Lt=fe[9]^fe[19]^fe[29]^fe[39]^fe[49])^((je=fe[3]^fe[13]^fe[23]^fe[33]^fe[43])<<1|(ue=fe[2]^fe[12]^fe[22]^fe[32]^fe[42])>>>31),fe[0]^=Ee=(lt=fe[8]^fe[18]^fe[28]^fe[38]^fe[48])^(ue<<1|je>>>31),fe[1]^=ee,fe[10]^=Ee,fe[11]^=ee,fe[20]^=Ee,fe[21]^=ee,fe[30]^=Ee,fe[31]^=ee,fe[40]^=Ee,fe[41]^=ee,ee=ye^(Ye<<1|Ne>>>31),fe[2]^=Ee=ze^(Ne<<1|Ye>>>31),fe[3]^=ee,fe[12]^=Ee,fe[13]^=ee,fe[22]^=Ee,fe[23]^=ee,fe[32]^=Ee,fe[33]^=ee,fe[42]^=Ee,fe[43]^=ee,ee=je^(ot<<1|Et>>>31),fe[4]^=Ee=ue^(Et<<1|ot>>>31),fe[5]^=ee,fe[14]^=Ee,fe[15]^=ee,fe[24]^=Ee,fe[25]^=ee,fe[34]^=Ee,fe[35]^=ee,fe[44]^=Ee,fe[45]^=ee,ee=Ye^(Lt<<1|lt>>>31),fe[6]^=Ee=Ne^(lt<<1|Lt>>>31),fe[7]^=ee,fe[16]^=Ee,fe[17]^=ee,fe[26]^=Ee,fe[27]^=ee,fe[36]^=Ee,fe[37]^=ee,fe[46]^=Ee,fe[47]^=ee,ee=ot^(ye<<1|ze>>>31),fe[8]^=Ee=Et^(ze<<1|ye>>>31),fe[9]^=ee,fe[18]^=Ee,fe[19]^=ee,fe[28]^=Ee,fe[29]^=ee,fe[38]^=Ee,fe[39]^=ee,fe[48]^=Ee,fe[49]^=ee,He=fe[1],pe=fe[11]<<4|fe[10]>>>28,ve=fe[10]<<4|fe[11]>>>28,Oe=fe[20]<<3|fe[21]>>>29,xe=fe[21]<<3|fe[20]>>>29,er=fe[31]<<9|fe[30]>>>23,nr=fe[30]<<9|fe[31]>>>23,$=fe[40]<<18|fe[41]>>>14,We=fe[41]<<18|fe[40]>>>14,st=fe[2]<<1|fe[3]>>>31,tt=fe[3]<<1|fe[2]>>>31,Se=fe[12]<<12|fe[13]>>>20,be=fe[22]<<10|fe[23]>>>22,de=fe[23]<<10|fe[22]>>>22,te=fe[33]<<13|fe[32]>>>19,le=fe[32]<<13|fe[33]>>>19,tr=fe[42]<<2|fe[43]>>>30,Wt=fe[43]<<2|fe[42]>>>30,at=fe[5]<<30|fe[4]>>>2,It=fe[4]<<30|fe[5]>>>2,et=fe[14]<<6|fe[15]>>>26,gt=fe[15]<<6|fe[14]>>>26,Le=fe[24]<<11|fe[25]>>>21,Re=fe[34]<<15|fe[35]>>>17,Je=fe[35]<<15|fe[34]>>>17,me=fe[45]<<29|fe[44]>>>3,Pe=fe[44]<<29|fe[45]>>>3,ce=fe[6]<<28|fe[7]>>>4,Ge=fe[7]<<28|fe[6]>>>4,At=fe[17]<<23|fe[16]>>>9,Rt=fe[16]<<23|fe[17]>>>9,Fe=fe[26]<<25|fe[27]>>>7,ne=fe[27]<<25|fe[26]>>>7,Y=fe[36]<<21|fe[37]>>>11,z=fe[37]<<21|fe[36]>>>11,vt=fe[47]<<24|fe[46]>>>8,it=fe[46]<<24|fe[47]>>>8,Be=fe[8]<<27|fe[9]>>>5,Ze=fe[9]<<27|fe[8]>>>5,De=fe[18]<<20|fe[19]>>>12,we=fe[19]<<20|fe[18]>>>12,Pt=fe[29]<<7|fe[28]>>>25,Vt=fe[28]<<7|fe[29]>>>25,yt=fe[38]<<8|fe[39]>>>24,rt=fe[39]<<8|fe[38]>>>24,G=fe[48]<<14|fe[49]>>>18,re=fe[49]<<14|fe[48]>>>18,fe[0]=(ct=fe[0])^~(Ue=fe[13]<<12|fe[12]>>>20)&(Ve=fe[25]<<11|fe[24]>>>21),fe[1]=He^~Se&Le,fe[10]=ce^~De&Oe,fe[11]=Ge^~we&xe,fe[20]=st^~et&Fe,fe[21]=tt^~gt&ne,fe[30]=Be^~pe&be,fe[31]=Ze^~ve&de,fe[40]=at^~At&Pt,fe[41]=It^~Rt&Vt,fe[2]=Ue^~Ve&Y,fe[3]=Se^~Le&z,fe[12]=De^~Oe&te,fe[13]=we^~xe&le,fe[22]=et^~Fe&yt,fe[23]=gt^~ne&rt,fe[32]=pe^~be&Re,fe[33]=ve^~de&Je,fe[42]=At^~Pt&er,fe[43]=Rt^~Vt&nr,fe[4]=Ve^~Y&G,fe[5]=Le^~z&re,fe[14]=Oe^~te&me,fe[15]=xe^~le&Pe,fe[24]=Fe^~yt&$,fe[25]=ne^~rt&We,fe[34]=be^~Re&vt,fe[35]=de^~Je&it,fe[44]=Pt^~er&tr,fe[45]=Vt^~nr&Wt,fe[6]=Y^~G&ct,fe[7]=z^~re&He,fe[16]=te^~me&ce,fe[17]=le^~Pe&Ge,fe[26]=yt^~$&st,fe[27]=rt^~We&tt,fe[36]=Re^~vt&Be,fe[37]=Je^~it&Ze,fe[46]=er^~tr&at,fe[47]=nr^~Wt&It,fe[8]=G^~ct&Ue,fe[9]=re^~He&Se,fe[18]=me^~ce&De,fe[19]=Pe^~Ge&we,fe[28]=$^~st&et,fe[29]=We^~tt>,fe[38]=vt^~Be&pe,fe[39]=it^~Ze&ve,fe[48]=tr^~at&At,fe[49]=Wt^~It&Rt,fe[0]^=L[se],fe[1]^=L[se+1]};if(D)q.exports=i;else{for(d=0;d{function k(x,B){if(!x)throw new Error(B||"Assertion failed")}q.exports=k,k.equal=function(B,I,M){if(B!=I)throw new Error(M||"Assertion failed: "+B+" != "+I)}},98119:(q,k)=>{"use strict";var x=k;function I(P){return 1===P.length?"0"+P:P}function M(P){for(var o="",w=0;w>8,g=255&D;A?w.push(A,g):w.push(g)}return w},x.zero2=I,x.toHex=M,x.encode=function(o,w){return"hex"===w?M(o):o}},31767:(q,k,x)=>{var B="function"==typeof Map&&Map.prototype,I=Object.getOwnPropertyDescriptor&&B?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,M=B&&I&&"function"==typeof I.get?I.get:null,P=B&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,w=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,S=o&&w&&"function"==typeof w.get?w.get:null,D=o&&Set.prototype.forEach,g="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,b="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,E=Boolean.prototype.valueOf,C=Object.prototype.toString,L=Function.prototype.toString,R=String.prototype.match,U=String.prototype.slice,O=String.prototype.replace,j=String.prototype.toUpperCase,K=String.prototype.toLowerCase,Z=RegExp.prototype.test,Q=Array.prototype.concat,W=Array.prototype.join,X=Array.prototype.slice,_=Math.floor,t="function"==typeof BigInt?BigInt.prototype.valueOf:null,a=Object.getOwnPropertySymbols,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,e="function"==typeof Symbol&&"object"==typeof Symbol.iterator,i="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,u=Object.prototype.propertyIsEnumerable,d=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(we){return we.__proto__}:null);function c(we,Oe){if(we===1/0||we===-1/0||we!=we||we&&we>-1e3&&we<1e3||Z.call(/e/,Oe))return Oe;var xe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof we){var te=we<0?-_(-we):_(we);if(te!==we){var le=String(te),me=U.call(Oe,le.length+1);return O.call(le,xe,"$&_")+"."+O.call(O.call(me,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(Oe,xe,"$&_")}var r=x(46840),h=r.custom,F=ye(h)?h:null;function T(we,Oe,xe){var te="double"===(xe.quoteStyle||Oe)?'"':"'";return te+we+te}function H(we){return O.call(String(we),/"/g,""")}function ae(we){return!("[object Array]"!==Ye(we)||i&&"object"==typeof we&&i in we)}function fe(we){return!("[object RegExp]"!==Ye(we)||i&&"object"==typeof we&&i in we)}function ye(we){if(e)return we&&"object"==typeof we&&we instanceof Symbol;if("symbol"==typeof we)return!0;if(!we||"object"!=typeof we||!s)return!1;try{return s.call(we),!0}catch{}return!1}q.exports=function we(Oe,xe,te,le){var me=xe||{};if(Ne(me,"quoteStyle")&&"single"!==me.quoteStyle&&"double"!==me.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ne(me,"maxStringLength")&&("number"==typeof me.maxStringLength?me.maxStringLength<0&&me.maxStringLength!==1/0:null!==me.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Pe=!Ne(me,"customInspect")||me.customInspect;if("boolean"!=typeof Pe&&"symbol"!==Pe)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ne(me,"indent")&&null!==me.indent&&"\t"!==me.indent&&!(parseInt(me.indent,10)===me.indent&&me.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ne(me,"numericSeparator")&&"boolean"!=typeof me.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var st=me.numericSeparator;if(typeof Oe>"u")return"undefined";if(null===Oe)return"null";if("boolean"==typeof Oe)return Oe?"true":"false";if("string"==typeof Oe)return Ve(Oe,me);if("number"==typeof Oe){if(0===Oe)return 1/0/Oe>0?"0":"-0";var tt=String(Oe);return st?c(Oe,tt):tt}if("bigint"==typeof Oe){var et=String(Oe)+"n";return st?c(Oe,et):et}var gt=typeof me.depth>"u"?5:me.depth;if(typeof te>"u"&&(te=0),te>=gt&>>0&&"object"==typeof Oe)return ae(Oe)?"[Array]":"[Object]";var Fe=function ce(we,Oe){var xe;if("\t"===we.indent)xe="\t";else{if(!("number"==typeof we.indent&&we.indent>0))return null;xe=W.call(Array(we.indent+1)," ")}return{base:xe,prev:W.call(Array(Oe+1),xe)}}(me,te);if(typeof le>"u")le=[];else if(ot(le,Oe)>=0)return"[Circular]";function ne(At,Rt,Pt){if(Rt&&(le=X.call(le)).push(Rt),Pt){var Vt={depth:me.depth};return Ne(me,"quoteStyle")&&(Vt.quoteStyle=me.quoteStyle),we(At,Vt,te+1,le)}return we(At,me,te+1,le)}if("function"==typeof Oe&&!fe(Oe)){var yt=function Et(we){if(we.name)return we.name;var Oe=R.call(L.call(we),/^function\s*([\w$]+)/);return Oe?Oe[1]:null}(Oe),rt=De(Oe,ne);return"[Function"+(yt?": "+yt:" (anonymous)")+"]"+(rt.length>0?" { "+W.call(rt,", ")+" }":"")}if(ye(Oe)){var $=e?O.call(String(Oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):s.call(Oe);return"object"!=typeof Oe||e?$:Y($)}if(function Se(we){return!(!we||"object"!=typeof we)&&(typeof HTMLElement<"u"&&we instanceof HTMLElement||"string"==typeof we.nodeName&&"function"==typeof we.getAttribute)}(Oe)){for(var We="<"+K.call(String(Oe.nodeName)),Be=Oe.attributes||[],Ze=0;Ze"}if(ae(Oe)){if(0===Oe.length)return"[]";var pe=De(Oe,ne);return Fe&&!function re(we){for(var Oe=0;Oe=0)return!1;return!0}(pe)?"["+Ge(pe,Fe)+"]":"[ "+W.call(pe,", ")+" ]"}if(function Ee(we){return!("[object Error]"!==Ye(we)||i&&"object"==typeof we&&i in we)}(Oe)){var ve=De(Oe,ne);return"cause"in Error.prototype||!("cause"in Oe)||u.call(Oe,"cause")?0===ve.length?"["+String(Oe)+"]":"{ ["+String(Oe)+"] "+W.call(ve,", ")+" }":"{ ["+String(Oe)+"] "+W.call(Q.call("[cause]: "+ne(Oe.cause),ve),", ")+" }"}if("object"==typeof Oe&&Pe){if(F&&"function"==typeof Oe[F]&&r)return r(Oe,{depth:gt-te});if("symbol"!==Pe&&"function"==typeof Oe.inspect)return Oe.inspect()}if(function lt(we){if(!M||!we||"object"!=typeof we)return!1;try{M.call(we);try{S.call(we)}catch{return!0}return we instanceof Map}catch{}return!1}(Oe)){var be=[];return P.call(Oe,function(At,Rt){be.push(ne(Rt,Oe,!0)+" => "+ne(At,Oe))}),G("Map",M.call(Oe),be,Fe)}if(function He(we){if(!S||!we||"object"!=typeof we)return!1;try{S.call(we);try{M.call(we)}catch{return!0}return we instanceof Set}catch{}return!1}(Oe)){var de=[];return D.call(Oe,function(At){de.push(ne(At,Oe))}),G("Set",S.call(Oe),de,Fe)}if(function Lt(we){if(!g||!we||"object"!=typeof we)return!1;try{g.call(we,g);try{b.call(we,b)}catch{return!0}return we instanceof WeakMap}catch{}return!1}(Oe))return z("WeakMap");if(function Ue(we){if(!b||!we||"object"!=typeof we)return!1;try{b.call(we,b);try{g.call(we,g)}catch{return!0}return we instanceof WeakSet}catch{}return!1}(Oe))return z("WeakSet");if(function ct(we){if(!m||!we||"object"!=typeof we)return!1;try{return m.call(we),!0}catch{}return!1}(Oe))return z("WeakRef");if(function se(we){return!("[object Number]"!==Ye(we)||i&&"object"==typeof we&&i in we)}(Oe))return Y(ne(Number(Oe)));if(function ue(we){if(!we||"object"!=typeof we||!t)return!1;try{return t.call(we),!0}catch{}return!1}(Oe))return Y(ne(t.call(Oe)));if(function ze(we){return!("[object Boolean]"!==Ye(we)||i&&"object"==typeof we&&i in we)}(Oe))return Y(E.call(Oe));if(function ee(we){return!("[object String]"!==Ye(we)||i&&"object"==typeof we&&i in we)}(Oe))return Y(ne(String(Oe)));if(!function Ae(we){return!("[object Date]"!==Ye(we)||i&&"object"==typeof we&&i in we)}(Oe)&&!fe(Oe)){var Re=De(Oe,ne),Je=d?d(Oe)===Object.prototype:Oe instanceof Object||Oe.constructor===Object,vt=Oe instanceof Object?"":"null prototype",it=!Je&&i&&Object(Oe)===Oe&&i in Oe?U.call(Ye(Oe),8,-1):vt?"Object":"",It=(Je||"function"!=typeof Oe.constructor?"":Oe.constructor.name?Oe.constructor.name+" ":"")+(it||vt?"["+W.call(Q.call([],it||[],vt||[]),": ")+"] ":"");return 0===Re.length?It+"{}":Fe?It+"{"+Ge(Re,Fe)+"}":It+"{ "+W.call(Re,", ")+" }"}return String(Oe)};var je=Object.prototype.hasOwnProperty||function(we){return we in this};function Ne(we,Oe){return je.call(we,Oe)}function Ye(we){return C.call(we)}function ot(we,Oe){if(we.indexOf)return we.indexOf(Oe);for(var xe=0,te=we.length;xeOe.maxStringLength){var xe=we.length-Oe.maxStringLength,te="... "+xe+" more character"+(xe>1?"s":"");return Ve(U.call(we,0,Oe.maxStringLength),Oe)+te}return T(O.call(O.call(we,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Le),"single",Oe)}function Le(we){var Oe=we.charCodeAt(0),xe={8:"b",9:"t",10:"n",12:"f",13:"r"}[Oe];return xe?"\\"+xe:"\\x"+(Oe<16?"0":"")+j.call(Oe.toString(16))}function Y(we){return"Object("+we+")"}function z(we){return we+" { ? }"}function G(we,Oe,xe,te){return we+" ("+Oe+") {"+(te?Ge(xe,te):W.call(xe,", "))+"}"}function Ge(we,Oe){if(0===we.length)return"";var xe="\n"+Oe.prev+Oe.base;return xe+W.call(we,","+xe)+"\n"+Oe.prev}function De(we,Oe){var xe=ae(we),te=[];if(xe){te.length=we.length;for(var le=0;le{"use strict";var B;if(!Object.keys){var I=Object.prototype.hasOwnProperty,M=Object.prototype.toString,P=x(64142),o=Object.prototype.propertyIsEnumerable,w=!o.call({toString:null},"toString"),S=o.call(function(){},"prototype"),D=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],A=function(y){var m=y.constructor;return m&&m.prototype===y},g={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!g["$"+y]&&I.call(window,y)&&null!==window[y]&&"object"==typeof window[y])try{A(window[y])}catch{return!0}}catch{return!0}return!1}();B=function(m){var E=null!==m&&"object"==typeof m,C="[object Function]"===M.call(m),L=P(m),R=E&&"[object String]"===M.call(m),U=[];if(!E&&!C&&!L)throw new TypeError("Object.keys called on a non-object");var O=S&&C;if(R&&m.length>0&&!I.call(m,0))for(var j=0;j0)for(var K=0;K"u"||!p)return A(y);try{return A(y)}catch{return!1}}(m),W=0;W{"use strict";var B=Array.prototype.slice,I=x(64142),M=Object.keys,P=M?function(S){return M(S)}:x(96300),o=Object.keys;P.shim=function(){if(Object.keys){var S=function(){var D=Object.keys(arguments);return D&&D.length===arguments.length}(1,2);S||(Object.keys=function(A){return I(A)?o(B.call(A)):o(A)})}else Object.keys=P;return Object.keys||P},q.exports=P},64142:q=>{"use strict";var k=Object.prototype.toString;q.exports=function(B){var I=k.call(B),M="[object Arguments]"===I;return M||(M="[object Array]"!==I&&null!==B&&"object"==typeof B&&"number"==typeof B.length&&B.length>=0&&"[object Function]"===k.call(B.callee)),M}},91784:(q,k,x)=>{"use strict";const{Deflate:B,deflate:I,deflateRaw:M,gzip:P}=x(41533),{Inflate:o,inflate:w,inflateRaw:S,ungzip:D}=x(57999),A=x(48015);q.exports.Deflate=B,q.exports.deflate=I,q.exports.deflateRaw=M,q.exports.gzip=P,q.exports.Inflate=o,q.exports.inflate=w,q.exports.inflateRaw=S,q.exports.ungzip=D,q.exports.constants=A},41533:(q,k,x)=>{"use strict";const B=x(4141),I=x(40235),M=x(41419),P=x(32475),o=x(41058),w=Object.prototype.toString,{Z_NO_FLUSH:S,Z_SYNC_FLUSH:D,Z_FULL_FLUSH:A,Z_FINISH:g,Z_OK:p,Z_STREAM_END:b,Z_DEFAULT_COMPRESSION:y,Z_DEFAULT_STRATEGY:m,Z_DEFLATED:E}=x(48015);function C(O){this.options=I.assign({level:y,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:m},O||{});let j=this.options;j.raw&&j.windowBits>0?j.windowBits=-j.windowBits:j.gzip&&j.windowBits>0&&j.windowBits<16&&(j.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;let K=B.deflateInit2(this.strm,j.level,j.method,j.windowBits,j.memLevel,j.strategy);if(K!==p)throw new Error(P[K]);if(j.header&&B.deflateSetHeader(this.strm,j.header),j.dictionary){let Z;if(Z="string"==typeof j.dictionary?M.string2buf(j.dictionary):"[object ArrayBuffer]"===w.call(j.dictionary)?new Uint8Array(j.dictionary):j.dictionary,K=B.deflateSetDictionary(this.strm,Z),K!==p)throw new Error(P[K]);this._dict_set=!0}}function L(O,j){const K=new C(j);if(K.push(O,!0),K.err)throw K.msg||P[K.err];return K.result}C.prototype.push=function(O,j){const K=this.strm,Z=this.options.chunkSize;let Q,W;if(this.ended)return!1;for(W=j===~~j?j:!0===j?g:S,K.input="string"==typeof O?M.string2buf(O):"[object ArrayBuffer]"===w.call(O)?new Uint8Array(O):O,K.next_in=0,K.avail_in=K.input.length;;)if(0===K.avail_out&&(K.output=new Uint8Array(Z),K.next_out=0,K.avail_out=Z),(W===D||W===A)&&K.avail_out<=6)this.onData(K.output.subarray(0,K.next_out)),K.avail_out=0;else{if(Q=B.deflate(K,W),Q===b)return K.next_out>0&&this.onData(K.output.subarray(0,K.next_out)),Q=B.deflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===p;if(0!==K.avail_out){if(W>0&&K.next_out>0)this.onData(K.output.subarray(0,K.next_out)),K.avail_out=0;else if(0===K.avail_in)break}else this.onData(K.output)}return!0},C.prototype.onData=function(O){this.chunks.push(O)},C.prototype.onEnd=function(O){O===p&&(this.result=I.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg},q.exports.Deflate=C,q.exports.deflate=L,q.exports.deflateRaw=function R(O,j){return(j=j||{}).raw=!0,L(O,j)},q.exports.gzip=function U(O,j){return(j=j||{}).gzip=!0,L(O,j)},q.exports.constants=x(48015)},57999:(q,k,x)=>{"use strict";const B=x(28737),I=x(40235),M=x(41419),P=x(32475),o=x(41058),w=x(77254),S=Object.prototype.toString,{Z_NO_FLUSH:D,Z_FINISH:A,Z_OK:g,Z_STREAM_END:p,Z_NEED_DICT:b,Z_STREAM_ERROR:y,Z_DATA_ERROR:m,Z_MEM_ERROR:E}=x(48015);function C(U){this.options=I.assign({chunkSize:65536,windowBits:15,to:""},U||{});const O=this.options;O.raw&&O.windowBits>=0&&O.windowBits<16&&(O.windowBits=-O.windowBits,0===O.windowBits&&(O.windowBits=-15)),O.windowBits>=0&&O.windowBits<16&&!(U&&U.windowBits)&&(O.windowBits+=32),O.windowBits>15&&O.windowBits<48&&0==(15&O.windowBits)&&(O.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;let j=B.inflateInit2(this.strm,O.windowBits);if(j!==g)throw new Error(P[j]);if(this.header=new w,B.inflateGetHeader(this.strm,this.header),O.dictionary&&("string"==typeof O.dictionary?O.dictionary=M.string2buf(O.dictionary):"[object ArrayBuffer]"===S.call(O.dictionary)&&(O.dictionary=new Uint8Array(O.dictionary)),O.raw&&(j=B.inflateSetDictionary(this.strm,O.dictionary),j!==g)))throw new Error(P[j])}function L(U,O){const j=new C(O);if(j.push(U),j.err)throw j.msg||P[j.err];return j.result}C.prototype.push=function(U,O){const j=this.strm,K=this.options.chunkSize,Z=this.options.dictionary;let Q,W,X;if(this.ended)return!1;for(W=O===~~O?O:!0===O?A:D,j.input="[object ArrayBuffer]"===S.call(U)?new Uint8Array(U):U,j.next_in=0,j.avail_in=j.input.length;;){for(0===j.avail_out&&(j.output=new Uint8Array(K),j.next_out=0,j.avail_out=K),Q=B.inflate(j,W),Q===b&&Z&&(Q=B.inflateSetDictionary(j,Z),Q===g?Q=B.inflate(j,W):Q===m&&(Q=b));j.avail_in>0&&Q===p&&j.state.wrap>0&&0!==U[j.next_in];)B.inflateReset(j),Q=B.inflate(j,W);switch(Q){case y:case m:case b:case E:return this.onEnd(Q),this.ended=!0,!1}if(X=j.avail_out,j.next_out&&(0===j.avail_out||Q===p))if("string"===this.options.to){let _=M.utf8border(j.output,j.next_out),t=j.next_out-_,a=M.buf2string(j.output,_);j.next_out=t,j.avail_out=K-t,t&&j.output.set(j.output.subarray(_,_+t),0),this.onData(a)}else this.onData(j.output.length===j.next_out?j.output:j.output.subarray(0,j.next_out));if(Q!==g||0!==X){if(Q===p)return Q=B.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,!0;if(0===j.avail_in)break}}return!0},C.prototype.onData=function(U){this.chunks.push(U)},C.prototype.onEnd=function(U){U===g&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},q.exports.Inflate=C,q.exports.inflate=L,q.exports.inflateRaw=function R(U,O){return(O=O||{}).raw=!0,L(U,O)},q.exports.ungzip=L,q.exports.constants=x(48015)},40235:q=>{"use strict";const k=(x,B)=>Object.prototype.hasOwnProperty.call(x,B);q.exports.assign=function(x){const B=Array.prototype.slice.call(arguments,1);for(;B.length;){const I=B.shift();if(I){if("object"!=typeof I)throw new TypeError(I+"must be non-object");for(const M in I)k(I,M)&&(x[M]=I[M])}}return x},q.exports.flattenChunks=x=>{let B=0;for(let M=0,P=x.length;M{"use strict";let k=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{k=!1}const x=new Uint8Array(256);for(let I=0;I<256;I++)x[I]=I>=252?6:I>=248?5:I>=240?4:I>=224?3:I>=192?2:1;x[254]=x[254]=1,q.exports.string2buf=I=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(I);let M,P,o,w,S,D=I.length,A=0;for(w=0;w>>6,M[S++]=128|63&P):P<65536?(M[S++]=224|P>>>12,M[S++]=128|P>>>6&63,M[S++]=128|63&P):(M[S++]=240|P>>>18,M[S++]=128|P>>>12&63,M[S++]=128|P>>>6&63,M[S++]=128|63&P);return M},q.exports.buf2string=(I,M)=>{const P=M||I.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(I.subarray(0,M));let o,w;const S=new Array(2*P);for(w=0,o=0;o4)S[w++]=65533,o+=A-1;else{for(D&=2===A?31:3===A?15:7;A>1&&o1?S[w++]=65533:D<65536?S[w++]=D:(D-=65536,S[w++]=55296|D>>10&1023,S[w++]=56320|1023&D)}}return((I,M)=>{if(M<65534&&I.subarray&&k)return String.fromCharCode.apply(null,I.length===M?I:I.subarray(0,M));let P="";for(let o=0;o{(M=M||I.length)>I.length&&(M=I.length);let P=M-1;for(;P>=0&&128==(192&I[P]);)P--;return P<0||0===P?M:P+x[I[P]]>M?P:M}},54379:q=>{"use strict";q.exports=(x,B,I,M)=>{let P=65535&x|0,o=x>>>16&65535|0,w=0;for(;0!==I;){w=I>2e3?2e3:I,I-=w;do{P=P+B[M++]|0,o=o+P|0}while(--w);P%=65521,o%=65521}return P|o<<16|0}},48015:q=>{"use strict";q.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},17354:q=>{"use strict";const x=new Uint32Array((()=>{let I,M=[];for(var P=0;P<256;P++){I=P;for(var o=0;o<8;o++)I=1&I?3988292384^I>>>1:I>>>1;M[P]=I}return M})());q.exports=(I,M,P,o)=>{const w=x,S=o+P;I^=-1;for(let D=o;D>>8^w[255&(I^M[D])];return-1^I}},4141:(q,k,x)=>{"use strict";const{_tr_init:B,_tr_stored_block:I,_tr_flush_block:M,_tr_tally:P,_tr_align:o}=x(38207),w=x(54379),S=x(17354),D=x(32475),{Z_NO_FLUSH:A,Z_PARTIAL_FLUSH:g,Z_FULL_FLUSH:p,Z_FINISH:b,Z_BLOCK:y,Z_OK:m,Z_STREAM_END:E,Z_STREAM_ERROR:C,Z_DATA_ERROR:L,Z_BUF_ERROR:R,Z_DEFAULT_COMPRESSION:U,Z_FILTERED:O,Z_HUFFMAN_ONLY:j,Z_RLE:K,Z_FIXED:Z,Z_DEFAULT_STRATEGY:Q,Z_UNKNOWN:W,Z_DEFLATED:X}=x(48015),F=258,T=262,ot=($,We)=>($.msg=D[We],We),lt=$=>2*$-($>4?9:0),Lt=$=>{let We=$.length;for(;--We>=0;)$[We]=0},ct=$=>{let We,Be,Ze,pe=$.w_size;We=$.hash_size,Ze=We;do{Be=$.head[--Ze],$.head[Ze]=Be>=pe?Be-pe:0}while(--We);We=pe,Ze=We;do{Be=$.prev[--Ze],$.prev[Ze]=Be>=pe?Be-pe:0}while(--We)};let Ue=($,We,Be)=>(We<<$.hash_shift^Be)&$.hash_mask;const Se=$=>{const We=$.state;let Be=We.pending;Be>$.avail_out&&(Be=$.avail_out),0!==Be&&($.output.set(We.pending_buf.subarray(We.pending_out,We.pending_out+Be),$.next_out),$.next_out+=Be,We.pending_out+=Be,$.total_out+=Be,$.avail_out-=Be,We.pending-=Be,0===We.pending&&(We.pending_out=0))},Ve=($,We)=>{M($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,We),$.block_start=$.strstart,Se($.strm)},Le=($,We)=>{$.pending_buf[$.pending++]=We},Y=($,We)=>{$.pending_buf[$.pending++]=We>>>8&255,$.pending_buf[$.pending++]=255&We},z=($,We,Be,Ze)=>{let pe=$.avail_in;return pe>Ze&&(pe=Ze),0===pe?0:($.avail_in-=pe,We.set($.input.subarray($.next_in,$.next_in+pe),Be),1===$.state.wrap?$.adler=w($.adler,We,pe,Be):2===$.state.wrap&&($.adler=S($.adler,We,pe,Be)),$.next_in+=pe,$.total_in+=pe,pe)},G=($,We)=>{let pe,ve,Be=$.max_chain_length,Ze=$.strstart,be=$.prev_length,de=$.nice_match;const Re=$.strstart>$.w_size-T?$.strstart-($.w_size-T):0,Je=$.window,vt=$.w_mask,it=$.prev,at=$.strstart+F;let It=Je[Ze+be-1],At=Je[Ze+be];$.prev_length>=$.good_match&&(Be>>=2),de>$.lookahead&&(de=$.lookahead);do{if(pe=We,Je[pe+be]===At&&Je[pe+be-1]===It&&Je[pe]===Je[Ze]&&Je[++pe]===Je[Ze+1]){Ze+=2,pe++;do{}while(Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Je[++Ze]===Je[++pe]&&Zebe){if($.match_start=We,be=ve,ve>=de)break;It=Je[Ze+be-1],At=Je[Ze+be]}}}while((We=it[We&vt])>Re&&0!=--Be);return be<=$.lookahead?be:$.lookahead},re=$=>{const We=$.w_size;let Be,Ze,pe;do{if(Ze=$.window_size-$.lookahead-$.strstart,$.strstart>=We+(We-T)&&($.window.set($.window.subarray(We,We+We-Ze),0),$.match_start-=We,$.strstart-=We,$.block_start-=We,$.insert>$.strstart&&($.insert=$.strstart),ct($),Ze+=We),0===$.strm.avail_in)break;if(Be=z($.strm,$.window,$.strstart+$.lookahead,Ze),$.lookahead+=Be,$.lookahead+$.insert>=3)for(pe=$.strstart-$.insert,$.ins_h=$.window[pe],$.ins_h=Ue($,$.ins_h,$.window[pe+1]);$.insert&&($.ins_h=Ue($,$.ins_h,$.window[pe+3-1]),$.prev[pe&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=pe,pe++,$.insert--,!($.lookahead+$.insert<3)););}while($.lookahead{let Ze,pe,ve,Be=$.pending_buf_size-5>$.w_size?$.w_size:$.pending_buf_size-5,be=0,de=$.strm.avail_in;do{if(Ze=65535,ve=$.bi_valid+42>>3,$.strm.avail_outpe+$.strm.avail_in&&(Ze=pe+$.strm.avail_in),Ze>ve&&(Ze=ve),Ze>8,$.pending_buf[$.pending-2]=~Ze,$.pending_buf[$.pending-1]=~Ze>>8,Se($.strm),pe&&(pe>Ze&&(pe=Ze),$.strm.output.set($.window.subarray($.block_start,$.block_start+pe),$.strm.next_out),$.strm.next_out+=pe,$.strm.avail_out-=pe,$.strm.total_out+=pe,$.block_start+=pe,Ze-=pe),Ze&&(z($.strm,$.strm.output,$.strm.next_out,Ze),$.strm.next_out+=Ze,$.strm.avail_out-=Ze,$.strm.total_out+=Ze)}while(0===be);return de-=$.strm.avail_in,de&&(de>=$.w_size?($.matches=2,$.window.set($.strm.input.subarray($.strm.next_in-$.w_size,$.strm.next_in),0),$.strstart=$.w_size,$.insert=$.strstart):($.window_size-$.strstart<=de&&($.strstart-=$.w_size,$.window.set($.window.subarray($.w_size,$.w_size+$.strstart),0),$.matches<2&&$.matches++,$.insert>$.strstart&&($.insert=$.strstart)),$.window.set($.strm.input.subarray($.strm.next_in-de,$.strm.next_in),$.strstart),$.strstart+=de,$.insert+=de>$.w_size-$.insert?$.w_size-$.insert:de),$.block_start=$.strstart),$.high_water<$.strstart&&($.high_water=$.strstart),be?4:We!==A&&We!==b&&0===$.strm.avail_in&&$.strstart===$.block_start?2:(ve=$.window_size-$.strstart,$.strm.avail_in>ve&&$.block_start>=$.w_size&&($.block_start-=$.w_size,$.strstart-=$.w_size,$.window.set($.window.subarray($.w_size,$.w_size+$.strstart),0),$.matches<2&&$.matches++,ve+=$.w_size,$.insert>$.strstart&&($.insert=$.strstart)),ve>$.strm.avail_in&&(ve=$.strm.avail_in),ve&&(z($.strm,$.window,$.strstart,ve),$.strstart+=ve,$.insert+=ve>$.w_size-$.insert?$.w_size-$.insert:ve),$.high_water<$.strstart&&($.high_water=$.strstart),ve=$.bi_valid+42>>3,ve=$.pending_buf_size-ve>65535?65535:$.pending_buf_size-ve,Be=ve>$.w_size?$.w_size:ve,pe=$.strstart-$.block_start,(pe>=Be||(pe||We===b)&&We!==A&&0===$.strm.avail_in&&pe<=ve)&&(Ze=pe>ve?ve:pe,be=We===b&&0===$.strm.avail_in&&Ze===pe?1:0,I($,$.block_start,Ze,be),$.block_start+=Ze,Se($.strm)),be?3:1)},Ge=($,We)=>{let Be,Ze;for(;;){if($.lookahead=3&&($.ins_h=Ue($,$.ins_h,$.window[$.strstart+3-1]),Be=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),0!==Be&&$.strstart-Be<=$.w_size-T&&($.match_length=G($,Be)),$.match_length>=3)if(Ze=P($,$.strstart-$.match_start,$.match_length-3),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=3){$.match_length--;do{$.strstart++,$.ins_h=Ue($,$.ins_h,$.window[$.strstart+3-1]),Be=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart}while(0!=--$.match_length);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=Ue($,$.ins_h,$.window[$.strstart+1]);else Ze=P($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(Ze&&(Ve($,!1),0===$.strm.avail_out))return 1}return $.insert=$.strstart<2?$.strstart:2,We===b?(Ve($,!0),0===$.strm.avail_out?3:4):$.sym_next&&(Ve($,!1),0===$.strm.avail_out)?1:2},De=($,We)=>{let Be,Ze,pe;for(;;){if($.lookahead=3&&($.ins_h=Ue($,$.ins_h,$.window[$.strstart+3-1]),Be=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),$.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=2,0!==Be&&$.prev_length<$.max_lazy_match&&$.strstart-Be<=$.w_size-T&&($.match_length=G($,Be),$.match_length<=5&&($.strategy===O||3===$.match_length&&$.strstart-$.match_start>4096)&&($.match_length=2)),$.prev_length>=3&&$.match_length<=$.prev_length){pe=$.strstart+$.lookahead-3,Ze=P($,$.strstart-1-$.prev_match,$.prev_length-3),$.lookahead-=$.prev_length-1,$.prev_length-=2;do{++$.strstart<=pe&&($.ins_h=Ue($,$.ins_h,$.window[$.strstart+3-1]),Be=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart)}while(0!=--$.prev_length);if($.match_available=0,$.match_length=2,$.strstart++,Ze&&(Ve($,!1),0===$.strm.avail_out))return 1}else if($.match_available){if(Ze=P($,0,$.window[$.strstart-1]),Ze&&Ve($,!1),$.strstart++,$.lookahead--,0===$.strm.avail_out)return 1}else $.match_available=1,$.strstart++,$.lookahead--}return $.match_available&&(Ze=P($,0,$.window[$.strstart-1]),$.match_available=0),$.insert=$.strstart<2?$.strstart:2,We===b?(Ve($,!0),0===$.strm.avail_out?3:4):$.sym_next&&(Ve($,!1),0===$.strm.avail_out)?1:2};function xe($,We,Be,Ze,pe){this.good_length=$,this.max_lazy=We,this.nice_length=Be,this.max_chain=Ze,this.func=pe}const te=[new xe(0,0,0,0,ce),new xe(4,4,8,4,Ge),new xe(4,5,16,8,Ge),new xe(4,6,32,32,Ge),new xe(4,4,16,16,De),new xe(8,16,32,32,De),new xe(8,16,128,128,De),new xe(8,32,128,256,De),new xe(32,128,258,1024,De),new xe(32,258,258,4096,De)];function me(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=X,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Lt(this.dyn_ltree),Lt(this.dyn_dtree),Lt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Lt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Lt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Pe=$=>{if(!$)return 1;const We=$.state;return!We||We.strm!==$||42!==We.status&&57!==We.status&&69!==We.status&&73!==We.status&&91!==We.status&&103!==We.status&&113!==We.status&&666!==We.status?1:0},st=$=>{if(Pe($))return ot($,C);$.total_in=$.total_out=0,$.data_type=W;const We=$.state;return We.pending=0,We.pending_out=0,We.wrap<0&&(We.wrap=-We.wrap),We.status=2===We.wrap?57:We.wrap?42:113,$.adler=2===We.wrap?0:1,We.last_flush=-2,B(We),m},tt=$=>{const We=st($);return We===m&&($=>{$.window_size=2*$.w_size,Lt($.head),$.max_lazy_match=te[$.level].max_lazy,$.good_match=te[$.level].good_length,$.nice_match=te[$.level].nice_length,$.max_chain_length=te[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=2,$.match_available=0,$.ins_h=0})($.state),We},gt=($,We,Be,Ze,pe,ve)=>{if(!$)return C;let be=1;if(We===U&&(We=6),Ze<0?(be=0,Ze=-Ze):Ze>15&&(be=2,Ze-=16),pe<1||pe>9||Be!==X||Ze<8||Ze>15||We<0||We>9||ve<0||ve>Z||8===Ze&&1!==be)return ot($,C);8===Ze&&(Ze=9);const de=new me;return $.state=de,de.strm=$,de.status=42,de.wrap=be,de.gzhead=null,de.w_bits=Ze,de.w_size=1<gt($,We,X,15,8,Q),q.exports.deflateInit2=gt,q.exports.deflateReset=tt,q.exports.deflateResetKeep=st,q.exports.deflateSetHeader=($,We)=>Pe($)||2!==$.state.wrap?C:($.state.gzhead=We,m),q.exports.deflate=($,We)=>{if(Pe($)||We>y||We<0)return $?ot($,C):C;const Be=$.state;if(!$.output||0!==$.avail_in&&!$.input||666===Be.status&&We!==b)return ot($,0===$.avail_out?R:C);const Ze=Be.last_flush;if(Be.last_flush=We,0!==Be.pending){if(Se($),0===$.avail_out)return Be.last_flush=-1,m}else if(0===$.avail_in&<(We)<=lt(Ze)&&We!==b)return ot($,R);if(666===Be.status&&0!==$.avail_in)return ot($,R);if(42===Be.status&&0===Be.wrap&&(Be.status=113),42===Be.status){let pe=X+(Be.w_bits-8<<4)<<8,ve=-1;if(ve=Be.strategy>=j||Be.level<2?0:Be.level<6?1:6===Be.level?2:3,pe|=ve<<6,0!==Be.strstart&&(pe|=32),pe+=31-pe%31,Y(Be,pe),0!==Be.strstart&&(Y(Be,$.adler>>>16),Y(Be,65535&$.adler)),$.adler=1,Be.status=113,Se($),0!==Be.pending)return Be.last_flush=-1,m}if(57===Be.status)if($.adler=0,Le(Be,31),Le(Be,139),Le(Be,8),Be.gzhead)Le(Be,(Be.gzhead.text?1:0)+(Be.gzhead.hcrc?2:0)+(Be.gzhead.extra?4:0)+(Be.gzhead.name?8:0)+(Be.gzhead.comment?16:0)),Le(Be,255&Be.gzhead.time),Le(Be,Be.gzhead.time>>8&255),Le(Be,Be.gzhead.time>>16&255),Le(Be,Be.gzhead.time>>24&255),Le(Be,9===Be.level?2:Be.strategy>=j||Be.level<2?4:0),Le(Be,255&Be.gzhead.os),Be.gzhead.extra&&Be.gzhead.extra.length&&(Le(Be,255&Be.gzhead.extra.length),Le(Be,Be.gzhead.extra.length>>8&255)),Be.gzhead.hcrc&&($.adler=S($.adler,Be.pending_buf,Be.pending,0)),Be.gzindex=0,Be.status=69;else if(Le(Be,0),Le(Be,0),Le(Be,0),Le(Be,0),Le(Be,0),Le(Be,9===Be.level?2:Be.strategy>=j||Be.level<2?4:0),Le(Be,3),Be.status=113,Se($),0!==Be.pending)return Be.last_flush=-1,m;if(69===Be.status){if(Be.gzhead.extra){let pe=Be.pending,ve=(65535&Be.gzhead.extra.length)-Be.gzindex;for(;Be.pending+ve>Be.pending_buf_size;){let de=Be.pending_buf_size-Be.pending;if(Be.pending_buf.set(Be.gzhead.extra.subarray(Be.gzindex,Be.gzindex+de),Be.pending),Be.pending=Be.pending_buf_size,Be.gzhead.hcrc&&Be.pending>pe&&($.adler=S($.adler,Be.pending_buf,Be.pending-pe,pe)),Be.gzindex+=de,Se($),0!==Be.pending)return Be.last_flush=-1,m;pe=0,ve-=de}let be=new Uint8Array(Be.gzhead.extra);Be.pending_buf.set(be.subarray(Be.gzindex,Be.gzindex+ve),Be.pending),Be.pending+=ve,Be.gzhead.hcrc&&Be.pending>pe&&($.adler=S($.adler,Be.pending_buf,Be.pending-pe,pe)),Be.gzindex=0}Be.status=73}if(73===Be.status){if(Be.gzhead.name){let ve,pe=Be.pending;do{if(Be.pending===Be.pending_buf_size){if(Be.gzhead.hcrc&&Be.pending>pe&&($.adler=S($.adler,Be.pending_buf,Be.pending-pe,pe)),Se($),0!==Be.pending)return Be.last_flush=-1,m;pe=0}ve=Be.gzindexpe&&($.adler=S($.adler,Be.pending_buf,Be.pending-pe,pe)),Be.gzindex=0}Be.status=91}if(91===Be.status){if(Be.gzhead.comment){let ve,pe=Be.pending;do{if(Be.pending===Be.pending_buf_size){if(Be.gzhead.hcrc&&Be.pending>pe&&($.adler=S($.adler,Be.pending_buf,Be.pending-pe,pe)),Se($),0!==Be.pending)return Be.last_flush=-1,m;pe=0}ve=Be.gzindexpe&&($.adler=S($.adler,Be.pending_buf,Be.pending-pe,pe))}Be.status=103}if(103===Be.status){if(Be.gzhead.hcrc){if(Be.pending+2>Be.pending_buf_size&&(Se($),0!==Be.pending))return Be.last_flush=-1,m;Le(Be,255&$.adler),Le(Be,$.adler>>8&255),$.adler=0}if(Be.status=113,Se($),0!==Be.pending)return Be.last_flush=-1,m}if(0!==$.avail_in||0!==Be.lookahead||We!==A&&666!==Be.status){let pe=0===Be.level?ce(Be,We):Be.strategy===j?(($,We)=>{let Be;for(;;){if(0===$.lookahead&&(re($),0===$.lookahead)){if(We===A)return 1;break}if($.match_length=0,Be=P($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,Be&&(Ve($,!1),0===$.strm.avail_out))return 1}return $.insert=0,We===b?(Ve($,!0),0===$.strm.avail_out?3:4):$.sym_next&&(Ve($,!1),0===$.strm.avail_out)?1:2})(Be,We):Be.strategy===K?(($,We)=>{let Be,Ze,pe,ve;const be=$.window;for(;;){if($.lookahead<=F){if(re($),$.lookahead<=F&&We===A)return 1;if(0===$.lookahead)break}if($.match_length=0,$.lookahead>=3&&$.strstart>0&&(pe=$.strstart-1,Ze=be[pe],Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe])){ve=$.strstart+F;do{}while(Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe]&&Ze===be[++pe]&&pe$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=3?(Be=P($,1,$.match_length-3),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(Be=P($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),Be&&(Ve($,!1),0===$.strm.avail_out))return 1}return $.insert=0,We===b?(Ve($,!0),0===$.strm.avail_out?3:4):$.sym_next&&(Ve($,!1),0===$.strm.avail_out)?1:2})(Be,We):te[Be.level].func(Be,We);if((3===pe||4===pe)&&(Be.status=666),1===pe||3===pe)return 0===$.avail_out&&(Be.last_flush=-1),m;if(2===pe&&(We===g?o(Be):We!==y&&(I(Be,0,0,!1),We===p&&(Lt(Be.head),0===Be.lookahead&&(Be.strstart=0,Be.block_start=0,Be.insert=0))),Se($),0===$.avail_out))return Be.last_flush=-1,m}return We!==b?m:Be.wrap<=0?E:(2===Be.wrap?(Le(Be,255&$.adler),Le(Be,$.adler>>8&255),Le(Be,$.adler>>16&255),Le(Be,$.adler>>24&255),Le(Be,255&$.total_in),Le(Be,$.total_in>>8&255),Le(Be,$.total_in>>16&255),Le(Be,$.total_in>>24&255)):(Y(Be,$.adler>>>16),Y(Be,65535&$.adler)),Se($),Be.wrap>0&&(Be.wrap=-Be.wrap),0!==Be.pending?m:E)},q.exports.deflateEnd=$=>{if(Pe($))return C;const We=$.state.status;return $.state=null,113===We?ot($,L):m},q.exports.deflateSetDictionary=($,We)=>{let Be=We.length;if(Pe($))return C;const Ze=$.state,pe=Ze.wrap;if(2===pe||1===pe&&42!==Ze.status||Ze.lookahead)return C;if(1===pe&&($.adler=w($.adler,We,Be,0)),Ze.wrap=0,Be>=Ze.w_size){0===pe&&(Lt(Ze.head),Ze.strstart=0,Ze.block_start=0,Ze.insert=0);let Re=new Uint8Array(Ze.w_size);Re.set(We.subarray(Be-Ze.w_size,Be),0),We=Re,Be=Ze.w_size}const ve=$.avail_in,be=$.next_in,de=$.input;for($.avail_in=Be,$.next_in=0,$.input=We,re(Ze);Ze.lookahead>=3;){let Re=Ze.strstart,Je=Ze.lookahead-2;do{Ze.ins_h=Ue(Ze,Ze.ins_h,Ze.window[Re+3-1]),Ze.prev[Re&Ze.w_mask]=Ze.head[Ze.ins_h],Ze.head[Ze.ins_h]=Re,Re++}while(--Je);Ze.strstart=Re,Ze.lookahead=2,re(Ze)}return Ze.strstart+=Ze.lookahead,Ze.block_start=Ze.strstart,Ze.insert=Ze.lookahead,Ze.lookahead=0,Ze.match_length=Ze.prev_length=2,Ze.match_available=0,$.next_in=be,$.input=de,$.avail_in=ve,Ze.wrap=pe,m},q.exports.deflateInfo="pako deflate (from Nodeca project)"},77254:q=>{"use strict";q.exports=function k(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},24414:q=>{"use strict";q.exports=function(I,M){let P,o,w,S,D,A,g,p,b,y,m,E,C,L,R,U,O,j,K,Z,Q,W,X,_;const t=I.state;P=I.next_in,X=I.input,o=P+(I.avail_in-5),w=I.next_out,_=I.output,S=w-(M-I.avail_out),D=w+(I.avail_out-257),A=t.dmax,g=t.wsize,p=t.whave,b=t.wnext,y=t.window,m=t.hold,E=t.bits,C=t.lencode,L=t.distcode,R=(1<>>24,m>>>=j,E-=j,j=O>>>16&255,0===j)_[w++]=65535&O;else{if(!(16&j)){if(0==(64&j)){O=C[(65535&O)+(m&(1<>>=j,E-=j),E<15&&(m+=X[P++]<>>24,m>>>=j,E-=j,j=O>>>16&255,!(16&j)){if(0==(64&j)){O=L[(65535&O)+(m&(1<A){I.msg="invalid distance too far back",t.mode=16209;break e}if(m>>>=j,E-=j,j=w-S,Z>j){if(j=Z-j,j>p&&t.sane){I.msg="invalid distance too far back",t.mode=16209;break e}if(Q=0,W=y,0===b){if(Q+=g-j,j2;)_[w++]=W[Q++],_[w++]=W[Q++],_[w++]=W[Q++],K-=3;K&&(_[w++]=W[Q++],K>1&&(_[w++]=W[Q++]))}else{Q=w-Z;do{_[w++]=_[Q++],_[w++]=_[Q++],_[w++]=_[Q++],K-=3}while(K>2);K&&(_[w++]=_[Q++],K>1&&(_[w++]=_[Q++]))}break}}break}}while(P>3,P-=K,E-=K<<3,m&=(1<{"use strict";const B=x(54379),I=x(17354),M=x(24414),P=x(1425),{Z_FINISH:D,Z_BLOCK:A,Z_TREES:g,Z_OK:p,Z_STREAM_END:b,Z_NEED_DICT:y,Z_STREAM_ERROR:m,Z_DATA_ERROR:E,Z_MEM_ERROR:C,Z_BUF_ERROR:L,Z_DEFLATED:R}=x(48015),U=16180,a=16190,s=16191,e=16192,u=16194,F=16199,T=16200,ye=16209,lt=xe=>(xe>>>24&255)+(xe>>>8&65280)+((65280&xe)<<8)+((255&xe)<<24);function Lt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ct=xe=>{if(!xe)return 1;const te=xe.state;return!te||te.strm!==xe||te.mode16211?1:0},He=xe=>{if(ct(xe))return m;const te=xe.state;return xe.total_in=xe.total_out=te.total=0,xe.msg="",te.wrap&&(xe.adler=1&te.wrap),te.mode=U,te.last=0,te.havedict=0,te.flags=-1,te.dmax=32768,te.head=null,te.hold=0,te.bits=0,te.lencode=te.lendyn=new Int32Array(852),te.distcode=te.distdyn=new Int32Array(592),te.sane=1,te.back=-1,p},Ue=xe=>{if(ct(xe))return m;const te=xe.state;return te.wsize=0,te.whave=0,te.wnext=0,He(xe)},Se=(xe,te)=>{let le;if(ct(xe))return m;const me=xe.state;return te<0?(le=0,te=-te):(le=5+(te>>4),te<48&&(te&=15)),te&&(te<8||te>15)?m:(null!==me.window&&me.wbits!==te&&(me.window=null),me.wrap=le,me.wbits=te,Ue(xe))},Ve=(xe,te)=>{if(!xe)return m;const le=new Lt;xe.state=le,le.strm=xe,le.window=null,le.mode=U;const me=Se(xe,te);return me!==p&&(xe.state=null),me};let z,G,Y=!0;const re=xe=>{if(Y){z=new Int32Array(512),G=new Int32Array(32);let te=0;for(;te<144;)xe.lens[te++]=8;for(;te<256;)xe.lens[te++]=9;for(;te<280;)xe.lens[te++]=7;for(;te<288;)xe.lens[te++]=8;for(P(1,xe.lens,0,288,z,0,xe.work,{bits:9}),te=0;te<32;)xe.lens[te++]=5;P(2,xe.lens,0,32,G,0,xe.work,{bits:5}),Y=!1}xe.lencode=z,xe.lenbits=9,xe.distcode=G,xe.distbits=5},ce=(xe,te,le,me)=>{let Pe;const st=xe.state;return null===st.window&&(st.wsize=1<=st.wsize?(st.window.set(te.subarray(le-st.wsize,le),0),st.wnext=0,st.whave=st.wsize):(Pe=st.wsize-st.wnext,Pe>me&&(Pe=me),st.window.set(te.subarray(le-me,le-me+Pe),st.wnext),(me-=Pe)?(st.window.set(te.subarray(le-me,le),0),st.wnext=me,st.whave=st.wsize):(st.wnext+=Pe,st.wnext===st.wsize&&(st.wnext=0),st.whaveVe(xe,15),q.exports.inflateInit2=Ve,q.exports.inflate=(xe,te)=>{let le,me,Pe,st,tt,et,gt,Fe,ne,yt,rt,$,We,Be,pe,ve,be,de,Re,Je,vt,it,Ze=0;const at=new Uint8Array(4);let It,At;const Rt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ct(xe)||!xe.output||!xe.input&&0!==xe.avail_in)return m;le=xe.state,le.mode===s&&(le.mode=e),tt=xe.next_out,Pe=xe.output,gt=xe.avail_out,st=xe.next_in,me=xe.input,et=xe.avail_in,Fe=le.hold,ne=le.bits,yt=et,rt=gt,it=p;e:for(;;)switch(le.mode){case U:if(0===le.wrap){le.mode=e;break}for(;ne<16;){if(0===et)break e;et--,Fe+=me[st++]<>>8&255,le.check=I(le.check,at,2,0),Fe=0,ne=0,le.mode=16181;break}if(le.head&&(le.head.done=!1),!(1&le.wrap)||(((255&Fe)<<8)+(Fe>>8))%31){xe.msg="incorrect header check",le.mode=ye;break}if((15&Fe)!==R){xe.msg="unknown compression method",le.mode=ye;break}if(Fe>>>=4,ne-=4,vt=8+(15&Fe),0===le.wbits&&(le.wbits=vt),vt>15||vt>le.wbits){xe.msg="invalid window size",le.mode=ye;break}le.dmax=1<>8&1),512&le.flags&&4&le.wrap&&(at[0]=255&Fe,at[1]=Fe>>>8&255,le.check=I(le.check,at,2,0)),Fe=0,ne=0,le.mode=16182;case 16182:for(;ne<32;){if(0===et)break e;et--,Fe+=me[st++]<>>8&255,at[2]=Fe>>>16&255,at[3]=Fe>>>24&255,le.check=I(le.check,at,4,0)),Fe=0,ne=0,le.mode=16183;case 16183:for(;ne<16;){if(0===et)break e;et--,Fe+=me[st++]<>8),512&le.flags&&4&le.wrap&&(at[0]=255&Fe,at[1]=Fe>>>8&255,le.check=I(le.check,at,2,0)),Fe=0,ne=0,le.mode=16184;case 16184:if(1024&le.flags){for(;ne<16;){if(0===et)break e;et--,Fe+=me[st++]<>>8&255,le.check=I(le.check,at,2,0)),Fe=0,ne=0}else le.head&&(le.head.extra=null);le.mode=16185;case 16185:if(1024&le.flags&&($=le.length,$>et&&($=et),$&&(le.head&&(vt=le.head.extra_len-le.length,le.head.extra||(le.head.extra=new Uint8Array(le.head.extra_len)),le.head.extra.set(me.subarray(st,st+$),vt)),512&le.flags&&4&le.wrap&&(le.check=I(le.check,me,$,st)),et-=$,st+=$,le.length-=$),le.length))break e;le.length=0,le.mode=16186;case 16186:if(2048&le.flags){if(0===et)break e;$=0;do{vt=me[st+$++],le.head&&vt&&le.length<65536&&(le.head.name+=String.fromCharCode(vt))}while(vt&&$>9&1,le.head.done=!0),xe.adler=le.check=0,le.mode=s;break;case 16189:for(;ne<32;){if(0===et)break e;et--,Fe+=me[st++]<>>=7&ne,ne-=7&ne,le.mode=16206;break}for(;ne<3;){if(0===et)break e;et--,Fe+=me[st++]<>>=1,ne-=1,3&Fe){case 0:le.mode=16193;break;case 1:if(re(le),le.mode=F,te===g){Fe>>>=2,ne-=2;break e}break;case 2:le.mode=16196;break;case 3:xe.msg="invalid block type",le.mode=ye}Fe>>>=2,ne-=2;break;case 16193:for(Fe>>>=7&ne,ne-=7≠ne<32;){if(0===et)break e;et--,Fe+=me[st++]<>>16^65535)){xe.msg="invalid stored block lengths",le.mode=ye;break}if(le.length=65535&Fe,Fe=0,ne=0,le.mode=u,te===g)break e;case u:le.mode=16195;case 16195:if($=le.length,$){if($>et&&($=et),$>gt&&($=gt),0===$)break e;Pe.set(me.subarray(st,st+$),tt),et-=$,st+=$,gt-=$,tt+=$,le.length-=$;break}le.mode=s;break;case 16196:for(;ne<14;){if(0===et)break e;et--,Fe+=me[st++]<>>=5,ne-=5,le.ndist=1+(31&Fe),Fe>>>=5,ne-=5,le.ncode=4+(15&Fe),Fe>>>=4,ne-=4,le.nlen>286||le.ndist>30){xe.msg="too many length or distance symbols",le.mode=ye;break}le.have=0,le.mode=16197;case 16197:for(;le.have>>=3,ne-=3}for(;le.have<19;)le.lens[Rt[le.have++]]=0;if(le.lencode=le.lendyn,le.lenbits=7,It={bits:le.lenbits},it=P(0,le.lens,0,19,le.lencode,0,le.work,It),le.lenbits=It.bits,it){xe.msg="invalid code lengths set",le.mode=ye;break}le.have=0,le.mode=16198;case 16198:for(;le.have>>24,ve=Ze>>>16&255,be=65535&Ze,!(pe<=ne);){if(0===et)break e;et--,Fe+=me[st++]<>>=pe,ne-=pe,le.lens[le.have++]=be;else{if(16===be){for(At=pe+2;ne>>=pe,ne-=pe,0===le.have){xe.msg="invalid bit length repeat",le.mode=ye;break}vt=le.lens[le.have-1],$=3+(3&Fe),Fe>>>=2,ne-=2}else if(17===be){for(At=pe+3;ne>>=pe,ne-=pe,vt=0,$=3+(7&Fe),Fe>>>=3,ne-=3}else{for(At=pe+7;ne>>=pe,ne-=pe,vt=0,$=11+(127&Fe),Fe>>>=7,ne-=7}if(le.have+$>le.nlen+le.ndist){xe.msg="invalid bit length repeat",le.mode=ye;break}for(;$--;)le.lens[le.have++]=vt}}if(le.mode===ye)break;if(0===le.lens[256]){xe.msg="invalid code -- missing end-of-block",le.mode=ye;break}if(le.lenbits=9,It={bits:le.lenbits},it=P(1,le.lens,0,le.nlen,le.lencode,0,le.work,It),le.lenbits=It.bits,it){xe.msg="invalid literal/lengths set",le.mode=ye;break}if(le.distbits=6,le.distcode=le.distdyn,It={bits:le.distbits},it=P(2,le.lens,le.nlen,le.ndist,le.distcode,0,le.work,It),le.distbits=It.bits,it){xe.msg="invalid distances set",le.mode=ye;break}if(le.mode=F,te===g)break e;case F:le.mode=T;case T:if(et>=6&>>=258){xe.next_out=tt,xe.avail_out=gt,xe.next_in=st,xe.avail_in=et,le.hold=Fe,le.bits=ne,M(xe,rt),tt=xe.next_out,Pe=xe.output,gt=xe.avail_out,st=xe.next_in,me=xe.input,et=xe.avail_in,Fe=le.hold,ne=le.bits,le.mode===s&&(le.back=-1);break}for(le.back=0;Ze=le.lencode[Fe&(1<>>24,ve=Ze>>>16&255,be=65535&Ze,!(pe<=ne);){if(0===et)break e;et--,Fe+=me[st++]<>de)],pe=Ze>>>24,ve=Ze>>>16&255,be=65535&Ze,!(de+pe<=ne);){if(0===et)break e;et--,Fe+=me[st++]<>>=de,ne-=de,le.back+=de}if(Fe>>>=pe,ne-=pe,le.back+=pe,le.length=be,0===ve){le.mode=16205;break}if(32&ve){le.back=-1,le.mode=s;break}if(64&ve){xe.msg="invalid literal/length code",le.mode=ye;break}le.extra=15&ve,le.mode=16201;case 16201:if(le.extra){for(At=le.extra;ne>>=le.extra,ne-=le.extra,le.back+=le.extra}le.was=le.length,le.mode=16202;case 16202:for(;Ze=le.distcode[Fe&(1<>>24,ve=Ze>>>16&255,be=65535&Ze,!(pe<=ne);){if(0===et)break e;et--,Fe+=me[st++]<>de)],pe=Ze>>>24,ve=Ze>>>16&255,be=65535&Ze,!(de+pe<=ne);){if(0===et)break e;et--,Fe+=me[st++]<>>=de,ne-=de,le.back+=de}if(Fe>>>=pe,ne-=pe,le.back+=pe,64&ve){xe.msg="invalid distance code",le.mode=ye;break}le.offset=be,le.extra=15&ve,le.mode=16203;case 16203:if(le.extra){for(At=le.extra;ne>>=le.extra,ne-=le.extra,le.back+=le.extra}if(le.offset>le.dmax){xe.msg="invalid distance too far back",le.mode=ye;break}le.mode=16204;case 16204:if(0===gt)break e;if($=rt-gt,le.offset>$){if($=le.offset-$,$>le.whave&&le.sane){xe.msg="invalid distance too far back",le.mode=ye;break}$>le.wnext?($-=le.wnext,We=le.wsize-$):We=le.wnext-$,$>le.length&&($=le.length),Be=le.window}else Be=Pe,We=tt-le.offset,$=le.length;$>gt&&($=gt),gt-=$,le.length-=$;do{Pe[tt++]=Be[We++]}while(--$);0===le.length&&(le.mode=T);break;case 16205:if(0===gt)break e;Pe[tt++]=le.length,gt--,le.mode=T;break;case 16206:if(le.wrap){for(;ne<32;){if(0===et)break e;et--,Fe|=me[st++]<{if(ct(xe))return m;let te=xe.state;return te.window&&(te.window=null),xe.state=null,p},q.exports.inflateGetHeader=(xe,te)=>{if(ct(xe))return m;const le=xe.state;return 0==(2&le.wrap)?m:(le.head=te,te.done=!1,p)},q.exports.inflateSetDictionary=(xe,te)=>{const le=te.length;let me,Pe,st;return ct(xe)||(me=xe.state,0!==me.wrap&&me.mode!==a)?m:me.mode===a&&(Pe=1,Pe=B(Pe,te,le,0),Pe!==me.check)?E:(st=ce(xe,te,le,le),st?(me.mode=16210,C):(me.havedict=1,p))},q.exports.inflateInfo="pako inflate (from Nodeca project)"},1425:q=>{"use strict";const o=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),w=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),S=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),D=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);q.exports=(g,p,b,y,m,E,C,L)=>{const R=L.bits;let a,s,e,i,u,c,U=0,O=0,j=0,K=0,Z=0,Q=0,W=0,X=0,_=0,t=0,d=null;const r=new Uint16Array(16),h=new Uint16Array(16);let T,H,ae,F=null;for(U=0;U<=15;U++)r[U]=0;for(O=0;O=1&&0===r[K];K--);if(Z>K&&(Z=K),0===K)return m[E++]=20971520,m[E++]=20971520,L.bits=1,0;for(j=1;j0&&(0===g||1!==K))return-1;for(h[1]=0,U=1;U<15;U++)h[U+1]=h[U]+r[U];for(O=0;O852||2===g&&_>592)return 1;for(;;){T=U-W,C[O]+1=c?(H=F[C[O]-c],ae=d[C[O]-c]):(H=96,ae=0),a=1<>W)+s]=T<<24|H<<16|ae|0}while(0!==s);for(a=1<>=1;if(0!==a?(t&=a-1,t+=a):t=0,O++,0==--r[U]){if(U===K)break;U=p[b+C[O]]}if(U>Z&&(t&i)!==e){for(0===W&&(W=Z),u+=j,Q=U-W,X=1<852||2===g&&_>592)return 1;e=t&i,m[e]=Z<<24|Q<<16|u-E|0}}return 0!==t&&(m[u+t]=U-W<<24|64<<16|0),L.bits=Z,0}},32475:q=>{"use strict";q.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},38207:q=>{"use strict";function M(z){let G=z.length;for(;--G>=0;)z[G]=0}const K=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Z=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Q=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),W=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);M(_);const t=new Array(60);M(t);const a=new Array(512);M(a);const s=new Array(256);M(s);const e=new Array(29);M(e);const i=new Array(30);function u(z,G,re,ce,Ge){this.static_tree=z,this.extra_bits=G,this.extra_base=re,this.elems=ce,this.max_length=Ge,this.has_stree=z&&z.length}let d,c,r;function h(z,G){this.dyn_tree=z,this.max_code=0,this.stat_desc=G}M(i);const F=z=>z<256?a[z]:a[256+(z>>>7)],T=(z,G)=>{z.pending_buf[z.pending++]=255&G,z.pending_buf[z.pending++]=G>>>8&255},H=(z,G,re)=>{z.bi_valid>16-re?(z.bi_buf|=G<>16-z.bi_valid,z.bi_valid+=re-16):(z.bi_buf|=G<{H(z,re[2*G],re[2*G+1])},Ae=(z,G)=>{let re=0;do{re|=1&z,z>>>=1,re<<=1}while(--G>0);return re>>>1},ee=(z,G,re)=>{const ce=new Array(16);let De,we,Ge=0;for(De=1;De<=15;De++)Ge=Ge+re[De-1]<<1,ce[De]=Ge;for(we=0;we<=G;we++){let Oe=z[2*we+1];0!==Oe&&(z[2*we]=Ae(ce[Oe]++,Oe))}},ze=z=>{let G;for(G=0;G<286;G++)z.dyn_ltree[2*G]=0;for(G=0;G<30;G++)z.dyn_dtree[2*G]=0;for(G=0;G<19;G++)z.bl_tree[2*G]=0;z.dyn_ltree[512]=1,z.opt_len=z.static_len=0,z.sym_next=z.matches=0},ye=z=>{z.bi_valid>8?T(z,z.bi_buf):z.bi_valid>0&&(z.pending_buf[z.pending++]=z.bi_buf),z.bi_buf=0,z.bi_valid=0},ue=(z,G,re,ce)=>{const Ge=2*G,De=2*re;return z[Ge]{const ce=z.heap[re];let Ge=re<<1;for(;Ge<=z.heap_len&&(Ge{let ce,Ge,we,Oe,De=0;if(0!==z.sym_next)do{ce=255&z.pending_buf[z.sym_buf+De++],ce+=(255&z.pending_buf[z.sym_buf+De++])<<8,Ge=z.pending_buf[z.sym_buf+De++],0===ce?ae(z,Ge,G):(we=s[Ge],ae(z,we+256+1,G),Oe=K[we],0!==Oe&&(Ge-=e[we],H(z,Ge,Oe)),ce--,we=F(ce),ae(z,we,re),Oe=Z[we],0!==Oe&&(ce-=i[we],H(z,ce,Oe)))}while(De{const re=G.dyn_tree,ce=G.stat_desc.static_tree,Ge=G.stat_desc.has_stree,De=G.stat_desc.elems;let we,Oe,te,xe=-1;for(z.heap_len=0,z.heap_max=573,we=0;we>1;we>=1;we--)je(z,re,we);te=De;do{we=z.heap[1],z.heap[1]=z.heap[z.heap_len--],je(z,re,1),Oe=z.heap[1],z.heap[--z.heap_max]=we,z.heap[--z.heap_max]=Oe,re[2*te]=re[2*we]+re[2*Oe],z.depth[te]=(z.depth[we]>=z.depth[Oe]?z.depth[we]:z.depth[Oe])+1,re[2*we+1]=re[2*Oe+1]=te,z.heap[1]=te++,je(z,re,1)}while(z.heap_len>=2);z.heap[--z.heap_max]=z.heap[1],((z,G)=>{const re=G.dyn_tree,ce=G.max_code,Ge=G.stat_desc.static_tree,De=G.stat_desc.has_stree,we=G.stat_desc.extra_bits,Oe=G.stat_desc.extra_base,xe=G.stat_desc.max_length;let te,le,me,Pe,st,tt,et=0;for(Pe=0;Pe<=15;Pe++)z.bl_count[Pe]=0;for(re[2*z.heap[z.heap_max]+1]=0,te=z.heap_max+1;te<573;te++)le=z.heap[te],Pe=re[2*re[2*le+1]+1]+1,Pe>xe&&(Pe=xe,et++),re[2*le+1]=Pe,!(le>ce)&&(z.bl_count[Pe]++,st=0,le>=Oe&&(st=we[le-Oe]),tt=re[2*le],z.opt_len+=tt*(Pe+st),De&&(z.static_len+=tt*(Ge[2*le+1]+st)));if(0!==et){do{for(Pe=xe-1;0===z.bl_count[Pe];)Pe--;z.bl_count[Pe]--,z.bl_count[Pe+1]+=2,z.bl_count[xe]--,et-=2}while(et>0);for(Pe=xe;0!==Pe;Pe--)for(le=z.bl_count[Pe];0!==le;)me=z.heap[--te],!(me>ce)&&(re[2*me+1]!==Pe&&(z.opt_len+=(Pe-re[2*me+1])*re[2*me],re[2*me+1]=Pe),le--)}})(z,G),ee(re,xe,z.bl_count)},Et=(z,G,re)=>{let ce,De,Ge=-1,we=G[1],Oe=0,xe=7,te=4;for(0===we&&(xe=138,te=3),G[2*(re+1)+1]=65535,ce=0;ce<=re;ce++)De=we,we=G[2*(ce+1)+1],!(++Oe{let ce,De,Ge=-1,we=G[1],Oe=0,xe=7,te=4;for(0===we&&(xe=138,te=3),ce=0;ce<=re;ce++)if(De=we,we=G[2*(ce+1)+1],!(++Oe{H(z,0+(ce?1:0),3),ye(z),T(z,re),T(z,~re),re&&z.pending_buf.set(z.window.subarray(G,G+re),z.pending),z.pending+=re};q.exports._tr_init=z=>{He||((()=>{let z,G,re,ce,Ge;const De=new Array(16);for(re=0,ce=0;ce<28;ce++)for(e[ce]=re,z=0;z<1<>=7;ce<30;ce++)for(i[ce]=Ge<<7,z=0;z<1<{let Ge,De,we=0;z.level>0?(2===z.strm.data_type&&(z.strm.data_type=(z=>{let re,G=4093624447;for(re=0;re<=31;re++,G>>>=1)if(1&G&&0!==z.dyn_ltree[2*re])return 0;if(0!==z.dyn_ltree[18]||0!==z.dyn_ltree[20]||0!==z.dyn_ltree[26])return 1;for(re=32;re<256;re++)if(0!==z.dyn_ltree[2*re])return 1;return 0})(z)),Ye(z,z.l_desc),Ye(z,z.d_desc),we=(z=>{let G;for(Et(z,z.dyn_ltree,z.l_desc.max_code),Et(z,z.dyn_dtree,z.d_desc.max_code),Ye(z,z.bl_desc),G=18;G>=3&&0===z.bl_tree[2*W[G]+1];G--);return z.opt_len+=3*(G+1)+5+5+4,G})(z),Ge=z.opt_len+3+7>>>3,De=z.static_len+3+7>>>3,De<=Ge&&(Ge=De)):Ge=De=re+5,re+4<=Ge&&-1!==G?Se(z,G,re,ce):4===z.strategy||De===Ge?(H(z,2+(ce?1:0),3),Ne(z,_,t)):(H(z,4+(ce?1:0),3),((z,G,re,ce)=>{let Ge;for(H(z,G-257,5),H(z,re-1,5),H(z,ce-4,4),Ge=0;Ge(z.pending_buf[z.sym_buf+z.sym_next++]=G,z.pending_buf[z.sym_buf+z.sym_next++]=G>>8,z.pending_buf[z.sym_buf+z.sym_next++]=re,0===G?z.dyn_ltree[2*re]++:(z.matches++,G--,z.dyn_ltree[2*(s[re]+256+1)]++,z.dyn_dtree[2*F(G)]++),z.sym_next===z.sym_end),q.exports._tr_align=z=>{H(z,2,3),ae(z,256,_),(z=>{16===z.bi_valid?(T(z,z.bi_buf),z.bi_buf=0,z.bi_valid=0):z.bi_valid>=8&&(z.pending_buf[z.pending++]=255&z.bi_buf,z.bi_buf>>=8,z.bi_valid-=8)})(z)}},41058:q=>{"use strict";q.exports=function k(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},97258:(q,k)=>{"use strict";class I{static isArrayBuffer(g){return"[object ArrayBuffer]"===Object.prototype.toString.call(g)}static toArrayBuffer(g){return this.isArrayBuffer(g)?g:g.byteLength===g.buffer.byteLength?g.buffer:this.toUint8Array(g).slice().buffer}static toUint8Array(g){return this.toView(g,Uint8Array)}static toView(g,p){if(g.constructor===p)return g;if(this.isArrayBuffer(g))return new p(g);if(this.isArrayBufferView(g))return new p(g.buffer,g.byteOffset,g.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(g){return this.isArrayBufferView(g)||this.isArrayBuffer(g)}static isArrayBufferView(g){return ArrayBuffer.isView(g)||g&&this.isArrayBuffer(g.buffer)}static isEqual(g,p){const b=I.toUint8Array(g),y=I.toUint8Array(p);if(b.length!==y.byteLength)return!1;for(let m=0;m{class A{static isHex(p){return"string"==typeof p&&/^[a-z0-9]+$/i.test(p)}static isBase64(p){return"string"==typeof p&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(p)}static isBase64Url(p){return"string"==typeof p&&/^[a-zA-Z0-9-_]+$/i.test(p)}static ToString(p,b="utf8"){const y=I.toUint8Array(p);switch(b.toLowerCase()){case"utf8":return this.ToUtf8String(y);case"binary":return this.ToBinary(y);case"hex":return this.ToHex(y);case"base64":return this.ToBase64(y);case"base64url":return this.ToBase64Url(y);case"utf16le":return P.toString(y,!0);case"utf16":case"utf16be":return P.toString(y);default:throw new Error(`Unknown type of encoding '${b}'`)}}static FromString(p,b="utf8"){if(!p)return new ArrayBuffer(0);switch(b.toLowerCase()){case"utf8":return this.FromUtf8String(p);case"binary":return this.FromBinary(p);case"hex":return this.FromHex(p);case"base64":return this.FromBase64(p);case"base64url":return this.FromBase64Url(p);case"utf16le":return P.fromString(p,!0);case"utf16":case"utf16be":return P.fromString(p);default:throw new Error(`Unknown type of encoding '${b}'`)}}static ToBase64(p){const b=I.toUint8Array(p);if(typeof btoa<"u"){const y=this.ToString(b,"binary");return btoa(y)}return Buffer.from(b).toString("base64")}static FromBase64(p){const b=this.formatString(p);if(!b)return new ArrayBuffer(0);if(!A.isBase64(b))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return typeof atob<"u"?this.FromBinary(atob(b)):new Uint8Array(Buffer.from(b,"base64")).buffer}static FromBase64Url(p){const b=this.formatString(p);if(!b)return new ArrayBuffer(0);if(!A.isBase64Url(b))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(b.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(p){return this.ToBase64(p).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(p,b=A.DEFAULT_UTF8_ENCODING){switch(b){case"ascii":return this.FromBinary(p);case"utf8":return M.fromString(p);case"utf16":case"utf16be":return P.fromString(p);case"utf16le":case"usc2":return P.fromString(p,!0);default:throw new Error(`Unknown type of encoding '${b}'`)}}static ToUtf8String(p,b=A.DEFAULT_UTF8_ENCODING){switch(b){case"ascii":return this.ToBinary(p);case"utf8":return M.toString(p);case"utf16":case"utf16be":return P.toString(p);case"utf16le":case"usc2":return P.toString(p,!0);default:throw new Error(`Unknown type of encoding '${b}'`)}}static FromBinary(p){const b=p.length,y=new Uint8Array(b);for(let m=0;m{"use strict";var B=x(48533).functionsHaveConfigurableNames(),I=Object,M=TypeError;q.exports=function(){if(null!=this&&this!==I(this))throw new M("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.sticky&&(o+="y"),o},B&&Object.defineProperty&&Object.defineProperty(q.exports,"name",{value:"get flags"})},11968:(q,k,x)=>{"use strict";var B=x(1645),I=x(82788),M=x(68831),P=x(40064),o=x(63592),w=I(P());B(w,{getPolyfill:P,implementation:M,shim:o}),q.exports=w},40064:(q,k,x)=>{"use strict";var B=x(68831),I=x(1645).supportsDescriptors,M=Object.getOwnPropertyDescriptor;q.exports=function(){if(I&&"gim"===/a/gim.flags){var o=M(RegExp.prototype,"flags");if(o&&"function"==typeof o.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var w="",S={};if(Object.defineProperty(S,"hasIndices",{get:function(){w+="d"}}),Object.defineProperty(S,"sticky",{get:function(){w+="y"}}),"dy"===w)return o.get}}return B}},63592:(q,k,x)=>{"use strict";var B=x(1645).supportsDescriptors,I=x(40064),M=Object.getOwnPropertyDescriptor,P=Object.defineProperty,o=TypeError,w=Object.getPrototypeOf,S=/a/;q.exports=function(){if(!B||!w)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var A=I(),g=w(S),p=M(g,"flags");return(!p||p.get!==A)&&P(g,"flags",{configurable:!0,enumerable:!1,get:A}),A}},12504:(q,k,x)=>{"use strict";var B=x(83740),I=x(16168),M=x(95746),P=B("RegExp.prototype.exec"),o=I("%TypeError%");q.exports=function(S){if(!M(S))throw new o("`regex` must be a RegExp");return function(A){return null!==P(S,A)}}},99338:function(q){"use strict";!function(k){function B(b){const y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let m=1779033703,E=3144134277,C=1013904242,L=2773480762,R=1359893119,U=2600822924,O=528734635,j=1541459225;const K=new Uint32Array(64);function Z(s){let e=0,i=s.length;for(;i>=64;){let ae,Ae,fe,Ee,ee,u=m,d=E,c=C,r=L,h=R,F=U,T=O,H=j;for(Ae=0;Ae<16;Ae++)fe=e+4*Ae,K[Ae]=(255&s[fe])<<24|(255&s[fe+1])<<16|(255&s[fe+2])<<8|255&s[fe+3];for(Ae=16;Ae<64;Ae++)ae=K[Ae-2],Ee=(ae>>>17|ae<<15)^(ae>>>19|ae<<13)^ae>>>10,ae=K[Ae-15],ee=(ae>>>7|ae<<25)^(ae>>>18|ae<<14)^ae>>>3,K[Ae]=(Ee+K[Ae-7]|0)+(ee+K[Ae-16]|0)|0;for(Ae=0;Ae<64;Ae++)Ee=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&F^~h&T)|0)+(H+(y[Ae]+K[Ae]|0)|0)|0,ee=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&d^u&c^d&c)|0,H=T,T=F,F=h,h=r+Ee|0,r=c,c=d,d=u,u=Ee+ee|0;m=m+u|0,E=E+d|0,C=C+c|0,L=L+r|0,R=R+h|0,U=U+F|0,O=O+T|0,j=j+H|0,e+=64,i-=64}}Z(b);let Q,W=b.length%64,X=b.length/536870912|0,_=b.length<<3,t=W<56?56:120,a=b.slice(b.length-W,b.length);for(a.push(128),Q=W+1;Q>>24&255),a.push(X>>>16&255),a.push(X>>>8&255),a.push(X>>>0&255),a.push(_>>>24&255),a.push(_>>>16&255),a.push(_>>>8&255),a.push(_>>>0&255),Z(a),[m>>>24&255,m>>>16&255,m>>>8&255,m>>>0&255,E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,C>>>24&255,C>>>16&255,C>>>8&255,C>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,U>>>24&255,U>>>16&255,U>>>8&255,U>>>0&255,O>>>24&255,O>>>16&255,O>>>8&255,O>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255]}function I(b,y,m){b=b.length<=64?b:B(b);const E=64+y.length+4,C=new Array(E),L=new Array(64);let R,U=[];for(R=0;R<64;R++)C[R]=54;for(R=0;R=E-4;j--){if(C[j]++,C[j]<=255)return;C[j]=0}}for(;m>=32;)O(),U=U.concat(B(L.concat(B(C)))),m-=32;return m>0&&(O(),U=U.concat(B(L.concat(B(C))).slice(0,m))),U}function M(b,y,m,E,C){let L;for(S(b,16*(2*m-1),C,0,16),L=0;L<2*m;L++)w(b,16*L,C,16),o(C,E),S(C,0,b,y+16*L,16);for(L=0;L>>32-y}function o(b,y){S(b,0,y,0,16);for(let m=8;m>0;m-=2)y[4]^=P(y[0]+y[12],7),y[8]^=P(y[4]+y[0],9),y[12]^=P(y[8]+y[4],13),y[0]^=P(y[12]+y[8],18),y[9]^=P(y[5]+y[1],7),y[13]^=P(y[9]+y[5],9),y[1]^=P(y[13]+y[9],13),y[5]^=P(y[1]+y[13],18),y[14]^=P(y[10]+y[6],7),y[2]^=P(y[14]+y[10],9),y[6]^=P(y[2]+y[14],13),y[10]^=P(y[6]+y[2],18),y[3]^=P(y[15]+y[11],7),y[7]^=P(y[3]+y[15],9),y[11]^=P(y[7]+y[3],13),y[15]^=P(y[11]+y[7],18),y[1]^=P(y[0]+y[3],7),y[2]^=P(y[1]+y[0],9),y[3]^=P(y[2]+y[1],13),y[0]^=P(y[3]+y[2],18),y[6]^=P(y[5]+y[4],7),y[7]^=P(y[6]+y[5],9),y[4]^=P(y[7]+y[6],13),y[5]^=P(y[4]+y[7],18),y[11]^=P(y[10]+y[9],7),y[8]^=P(y[11]+y[10],9),y[9]^=P(y[8]+y[11],13),y[10]^=P(y[9]+y[8],18),y[12]^=P(y[15]+y[14],7),y[13]^=P(y[12]+y[15],9),y[14]^=P(y[13]+y[12],13),y[15]^=P(y[14]+y[13],18);for(let m=0;m<16;++m)b[m]+=y[m]}function w(b,y,m,E){for(let C=0;C=256)return!1}return!0}function A(b,y){if("number"!=typeof b||b%1)throw new Error("invalid "+y);return b}function g(b,y,m,E,C,L,R){if(m=A(m,"N"),E=A(E,"r"),C=A(C,"p"),L=A(L,"dkLen"),0===m||0!=(m&m-1))throw new Error("N must be power of 2");if(m>2147483647/128/E)throw new Error("N too large");if(E>2147483647/128/C)throw new Error("r too large");if(!D(b))throw new Error("password must be an array or buffer");if(b=Array.prototype.slice.call(b),!D(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let U=I(b,y,128*C*E);const O=new Uint32Array(32*C*E);for(let h=0;hd&&(h=d);for(let T=0;Td&&(h=d);for(let T=0;T>0&255),U.push(O[T]>>8&255),U.push(O[T]>>16&255),U.push(O[T]>>24&255);const F=I(b,U,L);return R&&R(null,1,F),F}R&&c(r)};if(!R)for(;;){const h=r();if(null!=h)return h}r()}q.exports={scrypt:function(b,y,m,E,C,L,R){return new Promise(function(U,O){let j=0;R&&R(0),g(b,y,m,E,C,L,function(K,Z,Q){if(K)O(K);else if(Q)R&&1!==j&&R(1),U(new Uint8Array(Q));else if(R&&Z!==j)return j=Z,R(Z)})})},syncScrypt:function(b,y,m,E,C,L){return new Uint8Array(g(b,y,m,E,C,L))}}}()},30592:(q,k,x)=>{"use strict";var B=x(16168),I=x(83740),M=x(31767),P=B("%TypeError%"),o=B("%WeakMap%",!0),w=B("%Map%",!0),S=I("WeakMap.prototype.get",!0),D=I("WeakMap.prototype.set",!0),A=I("WeakMap.prototype.has",!0),g=I("Map.prototype.get",!0),p=I("Map.prototype.set",!0),b=I("Map.prototype.has",!0),y=function(L,R){for(var O,U=L;null!==(O=U.next);U=O)if(O.key===R)return U.next=O.next,O.next=L.next,L.next=O,O};q.exports=function(){var R,U,O,j={assert:function(K){if(!j.has(K))throw new P("Side channel does not contain "+M(K))},get:function(K){if(o&&K&&("object"==typeof K||"function"==typeof K)){if(R)return S(R,K)}else if(w){if(U)return g(U,K)}else if(O)return function(L,R){var U=y(L,R);return U&&U.value}(O,K)},has:function(K){if(o&&K&&("object"==typeof K||"function"==typeof K)){if(R)return A(R,K)}else if(w){if(U)return b(U,K)}else if(O)return function(L,R){return!!y(L,R)}(O,K);return!1},set:function(K,Z){o&&K&&("object"==typeof K||"function"==typeof K)?(R||(R=new o),D(R,K,Z)):w?(U||(U=new w),p(U,K,Z)):(O||(O={key:{},next:null}),function(L,R,U){var O=y(L,R);O?O.value=U:L.next={key:R,next:L.next,value:U}}(O,K,Z))}};return j}},63100:(q,k,x)=>{"use strict";var B=x(79489),I=x(67391),M=x(33268),P=x(94558),o=x(3962),w=x(29727),S=x(83740),D=x(39332)(),A=x(11968),g=S("String.prototype.indexOf"),p=x(16478),b=function(m){var E=p();if(D&&"symbol"==typeof Symbol.matchAll){var C=M(m,Symbol.matchAll);return C===RegExp.prototype[Symbol.matchAll]&&C!==E?E:C}if(P(m))return E};q.exports=function(m){var E=w(this);if(typeof m<"u"&&null!==m){if(P(m)){var L="flags"in m?I(m,"flags"):A(m);if(w(L),g(o(L),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var R=b(m);if(typeof R<"u")return B(R,m,[E])}var U=o(E),O=new RegExp(m,"g");return B(b(O),O,[U])}},65901:(q,k,x)=>{"use strict";var B=x(82788),I=x(1645),M=x(63100),P=x(71205),o=x(95853),w=B(M);I(w,{getPolyfill:P,implementation:M,shim:o}),q.exports=w},16478:(q,k,x)=>{"use strict";var B=x(39332)(),I=x(72748);q.exports=function(){return B&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:I}},71205:(q,k,x)=>{"use strict";var B=x(63100);q.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch{return String.prototype.matchAll}return B}},72748:(q,k,x)=>{"use strict";var B=x(78581),I=x(67391),M=x(95403),P=x(71494),o=x(20321),w=x(3962),S=x(17294),D=x(11968),g=x(83740)("String.prototype.indexOf"),p=RegExp,b="flags"in RegExp.prototype,m=function(U){var O=this;if("Object"!==S(O))throw new TypeError('"this" value must be an Object');var j=w(U),Z=function(U,O){var K="flags"in O?I(O,"flags"):w(D(O));return{flags:K,matcher:new U(b&&"string"==typeof K?O:U===p?O.source:O,K)}}(P(O,p),O),Q=Z.flags,W=Z.matcher,X=o(I(O,"lastIndex"));M(W,"lastIndex",X,!0);var _=g(Q,"g")>-1,t=g(Q,"u")>-1;return B(W,j,_,t)},E=Object.defineProperty,C=Object.getOwnPropertyDescriptor;if(E&&C){var L=C(m,"name");L&&L.configurable&&E(m,"name",{value:"[Symbol.matchAll]"})}q.exports=m},95853:(q,k,x)=>{"use strict";var B=x(1645),I=x(39332)(),M=x(71205),P=x(16478),o=Object.defineProperty,w=Object.getOwnPropertyDescriptor;q.exports=function(){var D=M();if(B(String.prototype,{matchAll:D},{matchAll:function(){return String.prototype.matchAll!==D}}),I){var A=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(B(Symbol,{matchAll:A},{matchAll:function(){return Symbol.matchAll!==A}}),o&&w){var g=w(Symbol,A);(!g||g.configurable)&&o(Symbol,A,{configurable:!1,enumerable:!1,value:A,writable:!1})}var p=P(),b={};b[A]=p;var y={};y[A]=function(){return RegExp.prototype[A]!==p},B(RegExp.prototype,b,y)}return D}},34916:(q,k,x)=>{!function(B){"use strict";var I=function(pe){var ve,be=new Float64Array(16);if(pe)for(ve=0;ve>24&255,pe[ve+1]=be>>16&255,pe[ve+2]=be>>8&255,pe[ve+3]=255&be,pe[ve+4]=de>>24&255,pe[ve+5]=de>>16&255,pe[ve+6]=de>>8&255,pe[ve+7]=255&de}function E(pe,ve,be,de,Re){var Je,vt=0;for(Je=0;Je>>8)-1}function C(pe,ve,be,de){return E(pe,ve,be,de,16)}function L(pe,ve,be,de){return E(pe,ve,be,de,32)}function O(pe,ve,be,de){!function R(pe,ve,be,de){for(var pt,Re=255&de[0]|(255&de[1])<<8|(255&de[2])<<16|(255&de[3])<<24,Je=255&be[0]|(255&be[1])<<8|(255&be[2])<<16|(255&be[3])<<24,vt=255&be[4]|(255&be[5])<<8|(255&be[6])<<16|(255&be[7])<<24,it=255&be[8]|(255&be[9])<<8|(255&be[10])<<16|(255&be[11])<<24,at=255&be[12]|(255&be[13])<<8|(255&be[14])<<16|(255&be[15])<<24,It=255&de[4]|(255&de[5])<<8|(255&de[6])<<16|(255&de[7])<<24,At=255&ve[0]|(255&ve[1])<<8|(255&ve[2])<<16|(255&ve[3])<<24,Rt=255&ve[4]|(255&ve[5])<<8|(255&ve[6])<<16|(255&ve[7])<<24,Pt=255&ve[8]|(255&ve[9])<<8|(255&ve[10])<<16|(255&ve[11])<<24,Vt=255&ve[12]|(255&ve[13])<<8|(255&ve[14])<<16|(255&ve[15])<<24,er=255&de[8]|(255&de[9])<<8|(255&de[10])<<16|(255&de[11])<<24,nr=255&be[16]|(255&be[17])<<8|(255&be[18])<<16|(255&be[19])<<24,tr=255&be[20]|(255&be[21])<<8|(255&be[22])<<16|(255&be[23])<<24,Wt=255&be[24]|(255&be[25])<<8|(255&be[26])<<16|(255&be[27])<<24,Yt=255&be[28]|(255&be[29])<<8|(255&be[30])<<16|(255&be[31])<<24,Ht=255&de[12]|(255&de[13])<<8|(255&de[14])<<16|(255&de[15])<<24,Bt=Re,jt=Je,Gt=vt,Zt=it,Jt=at,zt=It,_t=At,St=Rt,Ut=Pt,Nt=Vt,Ct=er,qt=nr,ir=tr,pr=Wt,br=Yt,yr=Ht,wr=0;wr<20;wr+=2)Bt^=(pt=(ir^=(pt=(Ut^=(pt=(Jt^=(pt=Bt+ir|0)<<7|pt>>>25)+Bt|0)<<9|pt>>>23)+Jt|0)<<13|pt>>>19)+Ut|0)<<18|pt>>>14,zt^=(pt=(jt^=(pt=(pr^=(pt=(Nt^=(pt=zt+jt|0)<<7|pt>>>25)+zt|0)<<9|pt>>>23)+Nt|0)<<13|pt>>>19)+pr|0)<<18|pt>>>14,Ct^=(pt=(_t^=(pt=(Gt^=(pt=(br^=(pt=Ct+_t|0)<<7|pt>>>25)+Ct|0)<<9|pt>>>23)+br|0)<<13|pt>>>19)+Gt|0)<<18|pt>>>14,yr^=(pt=(qt^=(pt=(St^=(pt=(Zt^=(pt=yr+qt|0)<<7|pt>>>25)+yr|0)<<9|pt>>>23)+Zt|0)<<13|pt>>>19)+St|0)<<18|pt>>>14,Bt^=(pt=(Zt^=(pt=(Gt^=(pt=(jt^=(pt=Bt+Zt|0)<<7|pt>>>25)+Bt|0)<<9|pt>>>23)+jt|0)<<13|pt>>>19)+Gt|0)<<18|pt>>>14,zt^=(pt=(Jt^=(pt=(St^=(pt=(_t^=(pt=zt+Jt|0)<<7|pt>>>25)+zt|0)<<9|pt>>>23)+_t|0)<<13|pt>>>19)+St|0)<<18|pt>>>14,Ct^=(pt=(Nt^=(pt=(Ut^=(pt=(qt^=(pt=Ct+Nt|0)<<7|pt>>>25)+Ct|0)<<9|pt>>>23)+qt|0)<<13|pt>>>19)+Ut|0)<<18|pt>>>14,yr^=(pt=(br^=(pt=(pr^=(pt=(ir^=(pt=yr+br|0)<<7|pt>>>25)+yr|0)<<9|pt>>>23)+ir|0)<<13|pt>>>19)+pr|0)<<18|pt>>>14;jt=jt+Je|0,Gt=Gt+vt|0,Zt=Zt+it|0,Jt=Jt+at|0,zt=zt+It|0,_t=_t+At|0,St=St+Rt|0,Ut=Ut+Pt|0,Nt=Nt+Vt|0,Ct=Ct+er|0,qt=qt+nr|0,ir=ir+tr|0,pr=pr+Wt|0,br=br+Yt|0,yr=yr+Ht|0,pe[0]=(Bt=Bt+Re|0)>>>0&255,pe[1]=Bt>>>8&255,pe[2]=Bt>>>16&255,pe[3]=Bt>>>24&255,pe[4]=jt>>>0&255,pe[5]=jt>>>8&255,pe[6]=jt>>>16&255,pe[7]=jt>>>24&255,pe[8]=Gt>>>0&255,pe[9]=Gt>>>8&255,pe[10]=Gt>>>16&255,pe[11]=Gt>>>24&255,pe[12]=Zt>>>0&255,pe[13]=Zt>>>8&255,pe[14]=Zt>>>16&255,pe[15]=Zt>>>24&255,pe[16]=Jt>>>0&255,pe[17]=Jt>>>8&255,pe[18]=Jt>>>16&255,pe[19]=Jt>>>24&255,pe[20]=zt>>>0&255,pe[21]=zt>>>8&255,pe[22]=zt>>>16&255,pe[23]=zt>>>24&255,pe[24]=_t>>>0&255,pe[25]=_t>>>8&255,pe[26]=_t>>>16&255,pe[27]=_t>>>24&255,pe[28]=St>>>0&255,pe[29]=St>>>8&255,pe[30]=St>>>16&255,pe[31]=St>>>24&255,pe[32]=Ut>>>0&255,pe[33]=Ut>>>8&255,pe[34]=Ut>>>16&255,pe[35]=Ut>>>24&255,pe[36]=Nt>>>0&255,pe[37]=Nt>>>8&255,pe[38]=Nt>>>16&255,pe[39]=Nt>>>24&255,pe[40]=Ct>>>0&255,pe[41]=Ct>>>8&255,pe[42]=Ct>>>16&255,pe[43]=Ct>>>24&255,pe[44]=qt>>>0&255,pe[45]=qt>>>8&255,pe[46]=qt>>>16&255,pe[47]=qt>>>24&255,pe[48]=ir>>>0&255,pe[49]=ir>>>8&255,pe[50]=ir>>>16&255,pe[51]=ir>>>24&255,pe[52]=pr>>>0&255,pe[53]=pr>>>8&255,pe[54]=pr>>>16&255,pe[55]=pr>>>24&255,pe[56]=br>>>0&255,pe[57]=br>>>8&255,pe[58]=br>>>16&255,pe[59]=br>>>24&255,pe[60]=yr>>>0&255,pe[61]=yr>>>8&255,pe[62]=yr>>>16&255,pe[63]=yr>>>24&255}(pe,ve,be,de)}function j(pe,ve,be,de){!function U(pe,ve,be,de){for(var pt,Bt=255&de[0]|(255&de[1])<<8|(255&de[2])<<16|(255&de[3])<<24,jt=255&be[0]|(255&be[1])<<8|(255&be[2])<<16|(255&be[3])<<24,Gt=255&be[4]|(255&be[5])<<8|(255&be[6])<<16|(255&be[7])<<24,Zt=255&be[8]|(255&be[9])<<8|(255&be[10])<<16|(255&be[11])<<24,Jt=255&be[12]|(255&be[13])<<8|(255&be[14])<<16|(255&be[15])<<24,zt=255&de[4]|(255&de[5])<<8|(255&de[6])<<16|(255&de[7])<<24,_t=255&ve[0]|(255&ve[1])<<8|(255&ve[2])<<16|(255&ve[3])<<24,St=255&ve[4]|(255&ve[5])<<8|(255&ve[6])<<16|(255&ve[7])<<24,Ut=255&ve[8]|(255&ve[9])<<8|(255&ve[10])<<16|(255&ve[11])<<24,Nt=255&ve[12]|(255&ve[13])<<8|(255&ve[14])<<16|(255&ve[15])<<24,Ct=255&de[8]|(255&de[9])<<8|(255&de[10])<<16|(255&de[11])<<24,qt=255&be[16]|(255&be[17])<<8|(255&be[18])<<16|(255&be[19])<<24,ir=255&be[20]|(255&be[21])<<8|(255&be[22])<<16|(255&be[23])<<24,pr=255&be[24]|(255&be[25])<<8|(255&be[26])<<16|(255&be[27])<<24,br=255&be[28]|(255&be[29])<<8|(255&be[30])<<16|(255&be[31])<<24,yr=255&de[12]|(255&de[13])<<8|(255&de[14])<<16|(255&de[15])<<24,wr=0;wr<20;wr+=2)Bt^=(pt=(ir^=(pt=(Ut^=(pt=(Jt^=(pt=Bt+ir|0)<<7|pt>>>25)+Bt|0)<<9|pt>>>23)+Jt|0)<<13|pt>>>19)+Ut|0)<<18|pt>>>14,zt^=(pt=(jt^=(pt=(pr^=(pt=(Nt^=(pt=zt+jt|0)<<7|pt>>>25)+zt|0)<<9|pt>>>23)+Nt|0)<<13|pt>>>19)+pr|0)<<18|pt>>>14,Ct^=(pt=(_t^=(pt=(Gt^=(pt=(br^=(pt=Ct+_t|0)<<7|pt>>>25)+Ct|0)<<9|pt>>>23)+br|0)<<13|pt>>>19)+Gt|0)<<18|pt>>>14,yr^=(pt=(qt^=(pt=(St^=(pt=(Zt^=(pt=yr+qt|0)<<7|pt>>>25)+yr|0)<<9|pt>>>23)+Zt|0)<<13|pt>>>19)+St|0)<<18|pt>>>14,Bt^=(pt=(Zt^=(pt=(Gt^=(pt=(jt^=(pt=Bt+Zt|0)<<7|pt>>>25)+Bt|0)<<9|pt>>>23)+jt|0)<<13|pt>>>19)+Gt|0)<<18|pt>>>14,zt^=(pt=(Jt^=(pt=(St^=(pt=(_t^=(pt=zt+Jt|0)<<7|pt>>>25)+zt|0)<<9|pt>>>23)+_t|0)<<13|pt>>>19)+St|0)<<18|pt>>>14,Ct^=(pt=(Nt^=(pt=(Ut^=(pt=(qt^=(pt=Ct+Nt|0)<<7|pt>>>25)+Ct|0)<<9|pt>>>23)+qt|0)<<13|pt>>>19)+Ut|0)<<18|pt>>>14,yr^=(pt=(br^=(pt=(pr^=(pt=(ir^=(pt=yr+br|0)<<7|pt>>>25)+yr|0)<<9|pt>>>23)+ir|0)<<13|pt>>>19)+pr|0)<<18|pt>>>14;pe[0]=Bt>>>0&255,pe[1]=Bt>>>8&255,pe[2]=Bt>>>16&255,pe[3]=Bt>>>24&255,pe[4]=zt>>>0&255,pe[5]=zt>>>8&255,pe[6]=zt>>>16&255,pe[7]=zt>>>24&255,pe[8]=Ct>>>0&255,pe[9]=Ct>>>8&255,pe[10]=Ct>>>16&255,pe[11]=Ct>>>24&255,pe[12]=yr>>>0&255,pe[13]=yr>>>8&255,pe[14]=yr>>>16&255,pe[15]=yr>>>24&255,pe[16]=_t>>>0&255,pe[17]=_t>>>8&255,pe[18]=_t>>>16&255,pe[19]=_t>>>24&255,pe[20]=St>>>0&255,pe[21]=St>>>8&255,pe[22]=St>>>16&255,pe[23]=St>>>24&255,pe[24]=Ut>>>0&255,pe[25]=Ut>>>8&255,pe[26]=Ut>>>16&255,pe[27]=Ut>>>24&255,pe[28]=Nt>>>0&255,pe[29]=Nt>>>8&255,pe[30]=Nt>>>16&255,pe[31]=Nt>>>24&255}(pe,ve,be,de)}var K=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Z(pe,ve,be,de,Re,Je,vt){var It,At,it=new Uint8Array(16),at=new Uint8Array(64);for(At=0;At<16;At++)it[At]=0;for(At=0;At<8;At++)it[At]=Je[At];for(;Re>=64;){for(O(at,it,vt,K),At=0;At<64;At++)pe[ve+At]=be[de+At]^at[At];for(It=1,At=8;At<16;At++)it[At]=255&(It=It+(255&it[At])|0),It>>>=8;Re-=64,ve+=64,de+=64}if(Re>0)for(O(at,it,vt,K),At=0;At=64;){for(O(vt,Je,Re,K),at=0;at<64;at++)pe[ve+at]=vt[at];for(it=1,at=8;at<16;at++)Je[at]=255&(it=it+(255&Je[at])|0),it>>>=8;be-=64,ve+=64}if(be>0)for(O(vt,Je,Re,K),at=0;at>>13|(be=255&pe[2]|(255&pe[3])<<8)<<3),this.r[2]=7939&(be>>>10|(de=255&pe[4]|(255&pe[5])<<8)<<6),this.r[3]=8191&(de>>>7|(Re=255&pe[6]|(255&pe[7])<<8)<<9),this.r[4]=255&(Re>>>4|(Je=255&pe[8]|(255&pe[9])<<8)<<12),this.r[5]=Je>>>1&8190,this.r[6]=8191&(Je>>>14|(vt=255&pe[10]|(255&pe[11])<<8)<<2),this.r[7]=8065&(vt>>>11|(it=255&pe[12]|(255&pe[13])<<8)<<5),this.r[8]=8191&(it>>>8|(at=255&pe[14]|(255&pe[15])<<8)<<8),this.r[9]=at>>>5&127,this.pad[0]=255&pe[16]|(255&pe[17])<<8,this.pad[1]=255&pe[18]|(255&pe[19])<<8,this.pad[2]=255&pe[20]|(255&pe[21])<<8,this.pad[3]=255&pe[22]|(255&pe[23])<<8,this.pad[4]=255&pe[24]|(255&pe[25])<<8,this.pad[5]=255&pe[26]|(255&pe[27])<<8,this.pad[6]=255&pe[28]|(255&pe[29])<<8,this.pad[7]=255&pe[30]|(255&pe[31])<<8};function t(pe,ve,be,de,Re,Je){var vt=new _(Je);return vt.update(be,de,Re),vt.finish(pe,ve),0}function a(pe,ve,be,de,Re,Je){var vt=new Uint8Array(16);return t(vt,0,be,de,Re,Je),C(pe,ve,vt,0)}function s(pe,ve,be,de,Re){var Je;if(be<32)return-1;for(X(pe,0,ve,0,be,de,Re),t(pe,16,pe,32,be-32,pe),Je=0;Je<16;Je++)pe[Je]=0;return 0}function e(pe,ve,be,de,Re){var Je,vt=new Uint8Array(32);if(be<32||(W(vt,0,32,de,Re),0!==a(ve,16,ve,32,be-32,vt)))return-1;for(X(pe,0,ve,0,be,de,Re),Je=0;Je<32;Je++)pe[Je]=0;return 0}function i(pe,ve){var be;for(be=0;be<16;be++)pe[be]=0|ve[be]}function u(pe){var ve,be,de=1;for(ve=0;ve<16;ve++)be=pe[ve]+de+65535,de=Math.floor(be/65536),pe[ve]=be-65536*de;pe[0]+=de-1+37*(de-1)}function d(pe,ve,be){for(var de,Re=~(be-1),Je=0;Je<16;Je++)pe[Je]^=de=Re&(pe[Je]^ve[Je]),ve[Je]^=de}function c(pe,ve){var be,de,Re,Je=I(),vt=I();for(be=0;be<16;be++)vt[be]=ve[be];for(u(vt),u(vt),u(vt),de=0;de<2;de++){for(Je[0]=vt[0]-65517,be=1;be<15;be++)Je[be]=vt[be]-65535-(Je[be-1]>>16&1),Je[be-1]&=65535;Je[15]=vt[15]-32767-(Je[14]>>16&1),Re=Je[15]>>16&1,Je[14]&=65535,d(vt,Je,1-Re)}for(be=0;be<16;be++)pe[2*be]=255&vt[be],pe[2*be+1]=vt[be]>>8}function r(pe,ve){var be=new Uint8Array(32),de=new Uint8Array(32);return c(be,pe),c(de,ve),L(be,0,de,0)}function h(pe){var ve=new Uint8Array(32);return c(ve,pe),1&ve[0]}function F(pe,ve){var be;for(be=0;be<16;be++)pe[be]=ve[2*be]+(ve[2*be+1]<<8);pe[15]&=32767}function T(pe,ve,be){for(var de=0;de<16;de++)pe[de]=ve[de]+be[de]}function H(pe,ve,be){for(var de=0;de<16;de++)pe[de]=ve[de]-be[de]}function ae(pe,ve,be){var de,Re,Je=0,vt=0,it=0,at=0,It=0,At=0,Rt=0,Pt=0,Vt=0,er=0,nr=0,tr=0,Wt=0,Yt=0,Ht=0,Bt=0,jt=0,Gt=0,Zt=0,Jt=0,zt=0,_t=0,St=0,Ut=0,Nt=0,Ct=0,qt=0,ir=0,pr=0,br=0,yr=0,pt=be[0],wr=be[1],Cr=be[2],or=be[3],gr=be[4],fr=be[5],ur=be[6],Kr=be[7],Br=be[8],Gr=be[9],Fr=be[10],Tr=be[11],Yr=be[12],Xr=be[13],qr=be[14],jr=be[15];Je+=(de=ve[0])*pt,vt+=de*wr,it+=de*Cr,at+=de*or,It+=de*gr,At+=de*fr,Rt+=de*ur,Pt+=de*Kr,Vt+=de*Br,er+=de*Gr,nr+=de*Fr,tr+=de*Tr,Wt+=de*Yr,Yt+=de*Xr,Ht+=de*qr,Bt+=de*jr,vt+=(de=ve[1])*pt,it+=de*wr,at+=de*Cr,It+=de*or,At+=de*gr,Rt+=de*fr,Pt+=de*ur,Vt+=de*Kr,er+=de*Br,nr+=de*Gr,tr+=de*Fr,Wt+=de*Tr,Yt+=de*Yr,Ht+=de*Xr,Bt+=de*qr,jt+=de*jr,it+=(de=ve[2])*pt,at+=de*wr,It+=de*Cr,At+=de*or,Rt+=de*gr,Pt+=de*fr,Vt+=de*ur,er+=de*Kr,nr+=de*Br,tr+=de*Gr,Wt+=de*Fr,Yt+=de*Tr,Ht+=de*Yr,Bt+=de*Xr,jt+=de*qr,Gt+=de*jr,at+=(de=ve[3])*pt,It+=de*wr,At+=de*Cr,Rt+=de*or,Pt+=de*gr,Vt+=de*fr,er+=de*ur,nr+=de*Kr,tr+=de*Br,Wt+=de*Gr,Yt+=de*Fr,Ht+=de*Tr,Bt+=de*Yr,jt+=de*Xr,Gt+=de*qr,Zt+=de*jr,It+=(de=ve[4])*pt,At+=de*wr,Rt+=de*Cr,Pt+=de*or,Vt+=de*gr,er+=de*fr,nr+=de*ur,tr+=de*Kr,Wt+=de*Br,Yt+=de*Gr,Ht+=de*Fr,Bt+=de*Tr,jt+=de*Yr,Gt+=de*Xr,Zt+=de*qr,Jt+=de*jr,At+=(de=ve[5])*pt,Rt+=de*wr,Pt+=de*Cr,Vt+=de*or,er+=de*gr,nr+=de*fr,tr+=de*ur,Wt+=de*Kr,Yt+=de*Br,Ht+=de*Gr,Bt+=de*Fr,jt+=de*Tr,Gt+=de*Yr,Zt+=de*Xr,Jt+=de*qr,zt+=de*jr,Rt+=(de=ve[6])*pt,Pt+=de*wr,Vt+=de*Cr,er+=de*or,nr+=de*gr,tr+=de*fr,Wt+=de*ur,Yt+=de*Kr,Ht+=de*Br,Bt+=de*Gr,jt+=de*Fr,Gt+=de*Tr,Zt+=de*Yr,Jt+=de*Xr,zt+=de*qr,_t+=de*jr,Pt+=(de=ve[7])*pt,Vt+=de*wr,er+=de*Cr,nr+=de*or,tr+=de*gr,Wt+=de*fr,Yt+=de*ur,Ht+=de*Kr,Bt+=de*Br,jt+=de*Gr,Gt+=de*Fr,Zt+=de*Tr,Jt+=de*Yr,zt+=de*Xr,_t+=de*qr,St+=de*jr,Vt+=(de=ve[8])*pt,er+=de*wr,nr+=de*Cr,tr+=de*or,Wt+=de*gr,Yt+=de*fr,Ht+=de*ur,Bt+=de*Kr,jt+=de*Br,Gt+=de*Gr,Zt+=de*Fr,Jt+=de*Tr,zt+=de*Yr,_t+=de*Xr,St+=de*qr,Ut+=de*jr,er+=(de=ve[9])*pt,nr+=de*wr,tr+=de*Cr,Wt+=de*or,Yt+=de*gr,Ht+=de*fr,Bt+=de*ur,jt+=de*Kr,Gt+=de*Br,Zt+=de*Gr,Jt+=de*Fr,zt+=de*Tr,_t+=de*Yr,St+=de*Xr,Ut+=de*qr,Nt+=de*jr,nr+=(de=ve[10])*pt,tr+=de*wr,Wt+=de*Cr,Yt+=de*or,Ht+=de*gr,Bt+=de*fr,jt+=de*ur,Gt+=de*Kr,Zt+=de*Br,Jt+=de*Gr,zt+=de*Fr,_t+=de*Tr,St+=de*Yr,Ut+=de*Xr,Nt+=de*qr,Ct+=de*jr,tr+=(de=ve[11])*pt,Wt+=de*wr,Yt+=de*Cr,Ht+=de*or,Bt+=de*gr,jt+=de*fr,Gt+=de*ur,Zt+=de*Kr,Jt+=de*Br,zt+=de*Gr,_t+=de*Fr,St+=de*Tr,Ut+=de*Yr,Nt+=de*Xr,Ct+=de*qr,qt+=de*jr,Wt+=(de=ve[12])*pt,Yt+=de*wr,Ht+=de*Cr,Bt+=de*or,jt+=de*gr,Gt+=de*fr,Zt+=de*ur,Jt+=de*Kr,zt+=de*Br,_t+=de*Gr,St+=de*Fr,Ut+=de*Tr,Nt+=de*Yr,Ct+=de*Xr,qt+=de*qr,ir+=de*jr,Yt+=(de=ve[13])*pt,Ht+=de*wr,Bt+=de*Cr,jt+=de*or,Gt+=de*gr,Zt+=de*fr,Jt+=de*ur,zt+=de*Kr,_t+=de*Br,St+=de*Gr,Ut+=de*Fr,Nt+=de*Tr,Ct+=de*Yr,qt+=de*Xr,ir+=de*qr,pr+=de*jr,Ht+=(de=ve[14])*pt,Bt+=de*wr,jt+=de*Cr,Gt+=de*or,Zt+=de*gr,Jt+=de*fr,zt+=de*ur,_t+=de*Kr,St+=de*Br,Ut+=de*Gr,Nt+=de*Fr,Ct+=de*Tr,qt+=de*Yr,ir+=de*Xr,pr+=de*qr,br+=de*jr,Bt+=(de=ve[15])*pt,vt+=38*(Gt+=de*Cr),it+=38*(Zt+=de*or),at+=38*(Jt+=de*gr),It+=38*(zt+=de*fr),At+=38*(_t+=de*ur),Rt+=38*(St+=de*Kr),Pt+=38*(Ut+=de*Br),Vt+=38*(Nt+=de*Gr),er+=38*(Ct+=de*Fr),nr+=38*(qt+=de*Tr),tr+=38*(ir+=de*Yr),Wt+=38*(pr+=de*Xr),Yt+=38*(br+=de*qr),Ht+=38*(yr+=de*jr),Je=(de=(Je+=38*(jt+=de*wr))+(Re=1)+65535)-65536*(Re=Math.floor(de/65536)),vt=(de=vt+Re+65535)-65536*(Re=Math.floor(de/65536)),it=(de=it+Re+65535)-65536*(Re=Math.floor(de/65536)),at=(de=at+Re+65535)-65536*(Re=Math.floor(de/65536)),It=(de=It+Re+65535)-65536*(Re=Math.floor(de/65536)),At=(de=At+Re+65535)-65536*(Re=Math.floor(de/65536)),Rt=(de=Rt+Re+65535)-65536*(Re=Math.floor(de/65536)),Pt=(de=Pt+Re+65535)-65536*(Re=Math.floor(de/65536)),Vt=(de=Vt+Re+65535)-65536*(Re=Math.floor(de/65536)),er=(de=er+Re+65535)-65536*(Re=Math.floor(de/65536)),nr=(de=nr+Re+65535)-65536*(Re=Math.floor(de/65536)),tr=(de=tr+Re+65535)-65536*(Re=Math.floor(de/65536)),Wt=(de=Wt+Re+65535)-65536*(Re=Math.floor(de/65536)),Yt=(de=Yt+Re+65535)-65536*(Re=Math.floor(de/65536)),Ht=(de=Ht+Re+65535)-65536*(Re=Math.floor(de/65536)),Bt=(de=Bt+Re+65535)-65536*(Re=Math.floor(de/65536)),Je=(de=(Je+=Re-1+37*(Re-1))+(Re=1)+65535)-65536*(Re=Math.floor(de/65536)),vt=(de=vt+Re+65535)-65536*(Re=Math.floor(de/65536)),it=(de=it+Re+65535)-65536*(Re=Math.floor(de/65536)),at=(de=at+Re+65535)-65536*(Re=Math.floor(de/65536)),It=(de=It+Re+65535)-65536*(Re=Math.floor(de/65536)),At=(de=At+Re+65535)-65536*(Re=Math.floor(de/65536)),Rt=(de=Rt+Re+65535)-65536*(Re=Math.floor(de/65536)),Pt=(de=Pt+Re+65535)-65536*(Re=Math.floor(de/65536)),Vt=(de=Vt+Re+65535)-65536*(Re=Math.floor(de/65536)),er=(de=er+Re+65535)-65536*(Re=Math.floor(de/65536)),nr=(de=nr+Re+65535)-65536*(Re=Math.floor(de/65536)),tr=(de=tr+Re+65535)-65536*(Re=Math.floor(de/65536)),Wt=(de=Wt+Re+65535)-65536*(Re=Math.floor(de/65536)),Yt=(de=Yt+Re+65535)-65536*(Re=Math.floor(de/65536)),Ht=(de=Ht+Re+65535)-65536*(Re=Math.floor(de/65536)),Bt=(de=Bt+Re+65535)-65536*(Re=Math.floor(de/65536)),pe[0]=Je+=Re-1+37*(Re-1),pe[1]=vt,pe[2]=it,pe[3]=at,pe[4]=It,pe[5]=At,pe[6]=Rt,pe[7]=Pt,pe[8]=Vt,pe[9]=er,pe[10]=nr,pe[11]=tr,pe[12]=Wt,pe[13]=Yt,pe[14]=Ht,pe[15]=Bt}function Ae(pe,ve){ae(pe,ve,ve)}function fe(pe,ve){var de,be=I();for(de=0;de<16;de++)be[de]=ve[de];for(de=253;de>=0;de--)Ae(be,be),2!==de&&4!==de&&ae(be,be,ve);for(de=0;de<16;de++)pe[de]=be[de]}function Ee(pe,ve){var de,be=I();for(de=0;de<16;de++)be[de]=ve[de];for(de=250;de>=0;de--)Ae(be,be),1!==de&&ae(be,be,ve);for(de=0;de<16;de++)pe[de]=be[de]}function ee(pe,ve,be){var Je,vt,de=new Uint8Array(32),Re=new Float64Array(80),it=I(),at=I(),It=I(),At=I(),Rt=I(),Pt=I();for(vt=0;vt<31;vt++)de[vt]=ve[vt];for(de[31]=127&ve[31]|64,de[0]&=248,F(Re,be),vt=0;vt<16;vt++)at[vt]=Re[vt],At[vt]=it[vt]=It[vt]=0;for(it[0]=At[0]=1,vt=254;vt>=0;--vt)d(it,at,Je=de[vt>>>3]>>>(7&vt)&1),d(It,At,Je),T(Rt,it,It),H(it,it,It),T(It,at,At),H(at,at,At),Ae(At,Rt),Ae(Pt,it),ae(it,It,it),ae(It,at,Rt),T(Rt,it,It),H(it,it,It),Ae(at,it),H(It,At,Pt),ae(it,It,D),T(it,it,At),ae(It,It,it),ae(it,At,Pt),ae(At,at,Re),Ae(at,Rt),d(it,at,Je),d(It,At,Je);for(vt=0;vt<16;vt++)Re[vt+16]=it[vt],Re[vt+32]=It[vt],Re[vt+48]=at[vt],Re[vt+64]=At[vt];var Vt=Re.subarray(32),er=Re.subarray(16);return fe(Vt,Vt),ae(er,er,Vt),c(pe,er),0}function se(pe,ve){return ee(pe,ve,o)}function ze(pe,ve){return M(ve,32),se(pe,ve)}function ye(pe,ve,be){var de=new Uint8Array(32);return ee(de,be,ve),j(pe,P,de,K)}_.prototype.blocks=function(pe,ve,be){for(var Re,Je,vt,it,at,It,At,Rt,Pt,Vt,er,nr,tr,Wt,Yt,Ht,Bt,jt,Gt,de=this.fin?0:2048,Zt=this.h[0],Jt=this.h[1],zt=this.h[2],_t=this.h[3],St=this.h[4],Ut=this.h[5],Nt=this.h[6],Ct=this.h[7],qt=this.h[8],ir=this.h[9],pr=this.r[0],br=this.r[1],yr=this.r[2],pt=this.r[3],wr=this.r[4],Cr=this.r[5],or=this.r[6],gr=this.r[7],fr=this.r[8],ur=this.r[9];be>=16;)Vt=Pt=0,Vt+=(Zt+=8191&(Re=255&pe[ve+0]|(255&pe[ve+1])<<8))*pr,Vt+=(Jt+=8191&(Re>>>13|(Je=255&pe[ve+2]|(255&pe[ve+3])<<8)<<3))*(5*ur),Vt+=(zt+=8191&(Je>>>10|(vt=255&pe[ve+4]|(255&pe[ve+5])<<8)<<6))*(5*fr),Vt+=(_t+=8191&(vt>>>7|(it=255&pe[ve+6]|(255&pe[ve+7])<<8)<<9))*(5*gr),Pt=(Vt+=(St+=8191&(it>>>4|(at=255&pe[ve+8]|(255&pe[ve+9])<<8)<<12))*(5*or))>>>13,Vt&=8191,Vt+=(Ut+=at>>>1&8191)*(5*Cr),Vt+=(Nt+=8191&(at>>>14|(It=255&pe[ve+10]|(255&pe[ve+11])<<8)<<2))*(5*wr),Vt+=(Ct+=8191&(It>>>11|(At=255&pe[ve+12]|(255&pe[ve+13])<<8)<<5))*(5*pt),Vt+=(qt+=8191&(At>>>8|(Rt=255&pe[ve+14]|(255&pe[ve+15])<<8)<<8))*(5*yr),er=Pt+=(Vt+=(ir+=Rt>>>5|de)*(5*br))>>>13,er+=Zt*br,er+=Jt*pr,er+=zt*(5*ur),er+=_t*(5*fr),Pt=(er+=St*(5*gr))>>>13,er&=8191,er+=Ut*(5*or),er+=Nt*(5*Cr),er+=Ct*(5*wr),er+=qt*(5*pt),Pt+=(er+=ir*(5*yr))>>>13,er&=8191,nr=Pt,nr+=Zt*yr,nr+=Jt*br,nr+=zt*pr,nr+=_t*(5*ur),Pt=(nr+=St*(5*fr))>>>13,nr&=8191,nr+=Ut*(5*gr),nr+=Nt*(5*or),nr+=Ct*(5*Cr),nr+=qt*(5*wr),tr=Pt+=(nr+=ir*(5*pt))>>>13,tr+=Zt*pt,tr+=Jt*yr,tr+=zt*br,tr+=_t*pr,Pt=(tr+=St*(5*ur))>>>13,tr&=8191,tr+=Ut*(5*fr),tr+=Nt*(5*gr),tr+=Ct*(5*or),tr+=qt*(5*Cr),Wt=Pt+=(tr+=ir*(5*wr))>>>13,Wt+=Zt*wr,Wt+=Jt*pt,Wt+=zt*yr,Wt+=_t*br,Pt=(Wt+=St*pr)>>>13,Wt&=8191,Wt+=Ut*(5*ur),Wt+=Nt*(5*fr),Wt+=Ct*(5*gr),Wt+=qt*(5*or),Yt=Pt+=(Wt+=ir*(5*Cr))>>>13,Yt+=Zt*Cr,Yt+=Jt*wr,Yt+=zt*pt,Yt+=_t*yr,Pt=(Yt+=St*br)>>>13,Yt&=8191,Yt+=Ut*pr,Yt+=Nt*(5*ur),Yt+=Ct*(5*fr),Yt+=qt*(5*gr),Ht=Pt+=(Yt+=ir*(5*or))>>>13,Ht+=Zt*or,Ht+=Jt*Cr,Ht+=zt*wr,Ht+=_t*pt,Pt=(Ht+=St*yr)>>>13,Ht&=8191,Ht+=Ut*br,Ht+=Nt*pr,Ht+=Ct*(5*ur),Ht+=qt*(5*fr),Bt=Pt+=(Ht+=ir*(5*gr))>>>13,Bt+=Zt*gr,Bt+=Jt*or,Bt+=zt*Cr,Bt+=_t*wr,Pt=(Bt+=St*pt)>>>13,Bt&=8191,Bt+=Ut*yr,Bt+=Nt*br,Bt+=Ct*pr,Bt+=qt*(5*ur),jt=Pt+=(Bt+=ir*(5*fr))>>>13,jt+=Zt*fr,jt+=Jt*gr,jt+=zt*or,jt+=_t*Cr,Pt=(jt+=St*wr)>>>13,jt&=8191,jt+=Ut*pt,jt+=Nt*yr,jt+=Ct*br,jt+=qt*pr,Gt=Pt+=(jt+=ir*(5*ur))>>>13,Gt+=Zt*ur,Gt+=Jt*fr,Gt+=zt*gr,Gt+=_t*or,Pt=(Gt+=St*Cr)>>>13,Gt&=8191,Gt+=Ut*wr,Gt+=Nt*pt,Gt+=Ct*yr,Gt+=qt*br,Zt=Vt=8191&(Pt=(Pt=((Pt+=(Gt+=ir*pr)>>>13)<<2)+Pt|0)+(Vt&=8191)|0),Jt=er+=Pt>>>=13,zt=nr&=8191,_t=tr&=8191,St=Wt&=8191,Ut=Yt&=8191,Nt=Ht&=8191,Ct=Bt&=8191,qt=jt&=8191,ir=Gt&=8191,ve+=16,be-=16;this.h[0]=Zt,this.h[1]=Jt,this.h[2]=zt,this.h[3]=_t,this.h[4]=St,this.h[5]=Ut,this.h[6]=Nt,this.h[7]=Ct,this.h[8]=qt,this.h[9]=ir},_.prototype.finish=function(pe,ve){var de,Re,Je,vt,be=new Uint16Array(10);if(this.leftover){for(vt=this.leftover,this.buffer[vt++]=1;vt<16;vt++)this.buffer[vt]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(de=this.h[1]>>>13,this.h[1]&=8191,vt=2;vt<10;vt++)this.h[vt]+=de,de=this.h[vt]>>>13,this.h[vt]&=8191;for(this.h[0]+=5*de,de=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=de,de=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=de,be[0]=this.h[0]+5,de=be[0]>>>13,be[0]&=8191,vt=1;vt<10;vt++)be[vt]=this.h[vt]+de,de=be[vt]>>>13,be[vt]&=8191;for(be[9]-=8192,Re=(1^de)-1,vt=0;vt<10;vt++)be[vt]&=Re;for(Re=~Re,vt=0;vt<10;vt++)this.h[vt]=this.h[vt]&Re|be[vt];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),this.h[0]=65535&(Je=this.h[0]+this.pad[0]),vt=1;vt<8;vt++)this.h[vt]=65535&(Je=(this.h[vt]+this.pad[vt]|0)+(Je>>>16)|0);pe[ve+0]=this.h[0]>>>0&255,pe[ve+1]=this.h[0]>>>8&255,pe[ve+2]=this.h[1]>>>0&255,pe[ve+3]=this.h[1]>>>8&255,pe[ve+4]=this.h[2]>>>0&255,pe[ve+5]=this.h[2]>>>8&255,pe[ve+6]=this.h[3]>>>0&255,pe[ve+7]=this.h[3]>>>8&255,pe[ve+8]=this.h[4]>>>0&255,pe[ve+9]=this.h[4]>>>8&255,pe[ve+10]=this.h[5]>>>0&255,pe[ve+11]=this.h[5]>>>8&255,pe[ve+12]=this.h[6]>>>0&255,pe[ve+13]=this.h[6]>>>8&255,pe[ve+14]=this.h[7]>>>0&255,pe[ve+15]=this.h[7]>>>8&255},_.prototype.update=function(pe,ve,be){var de,Re;if(this.leftover){for((Re=16-this.leftover)>be&&(Re=be),de=0;de=16&&(this.blocks(pe,ve,Re=be-be%16),ve+=Re,be-=Re),be){for(de=0;de=128;){for(Jt=0;Jt<16;Jt++)Re[Jt]=be[(zt=8*Jt+Yr)+0]<<24|be[zt+1]<<16|be[zt+2]<<8|be[zt+3],Je[Jt]=be[zt+4]<<24|be[zt+5]<<16|be[zt+6]<<8|be[zt+7];for(Jt=0;Jt<80;Jt++)if(it=pr,at=br,At=pt,Rt=wr,Pt=Cr,nr=fr,tr=ur,Yt=Br,Ht=Gr,Bt=Fr,Ut=65535&(St=Tr),Nt=St>>>16,Ct=65535&(_t=or),qt=_t>>>16,Ut+=65535&(St=(Br>>>14|pt<<18)^(Br>>>18|pt<<14)^(pt>>>9|Br<<23)),Nt+=St>>>16,Ct+=65535&(_t=(pt>>>14|Br<<18)^(pt>>>18|Br<<14)^(Br>>>9|pt<<23)),qt+=_t>>>16,Ut+=65535&(St=Br&Gr^~Br&Fr),Nt+=St>>>16,Ct+=65535&(_t=pt&wr^~pt&Cr),qt+=_t>>>16,Ut+=65535&(St=Et[2*Jt+1]),Nt+=St>>>16,Ct+=65535&(_t=Et[2*Jt]),qt+=_t>>>16,Nt+=(St=Je[Jt%16])>>>16,Ct+=65535&(_t=Re[Jt%16]),qt+=_t>>>16,Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16,Ut=65535&(St=Zt=65535&Ut|Nt<<16),Nt=St>>>16,Ct=65535&(_t=Gt=65535&Ct|(qt+=Ct>>>16)<<16),qt=_t>>>16,Ut+=65535&(St=(gr>>>28|ir<<4)^(ir>>>2|gr<<30)^(ir>>>7|gr<<25)),Nt+=St>>>16,Ct+=65535&(_t=(ir>>>28|gr<<4)^(gr>>>2|ir<<30)^(gr>>>7|ir<<25)),qt+=_t>>>16,Nt+=(St=gr&fr^gr&ur^fr&ur)>>>16,Ct+=65535&(_t=ir&pr^ir&br^pr&br),qt+=_t>>>16,Vt=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,jt=65535&Ut|Nt<<16,Ut=65535&(St=Kr),Nt=St>>>16,Ct=65535&(_t=yr),qt=_t>>>16,Nt+=(St=Zt)>>>16,Ct+=65535&(_t=Gt),qt+=_t>>>16,pr=ir,br=it,yr=at,pt=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,wr=At,Cr=Rt,or=Pt,ir=Vt,fr=gr,ur=nr,Kr=tr,Br=65535&Ut|Nt<<16,Gr=Yt,Fr=Ht,Tr=Bt,gr=jt,Jt%16==15)for(zt=0;zt<16;zt++)Ut=65535&(St=Je[zt]),Nt=St>>>16,Ct=65535&(_t=Re[zt]),qt=_t>>>16,Ut+=65535&(St=Je[(zt+9)%16]),Nt+=St>>>16,Ct+=65535&(_t=Re[(zt+9)%16]),qt+=_t>>>16,Ut+=65535&(St=((Zt=Je[(zt+1)%16])>>>1|(Gt=Re[(zt+1)%16])<<31)^(Zt>>>8|Gt<<24)^(Zt>>>7|Gt<<25)),Nt+=St>>>16,Ct+=65535&(_t=(Gt>>>1|Zt<<31)^(Gt>>>8|Zt<<24)^Gt>>>7),qt+=_t>>>16,Nt+=(St=((Zt=Je[(zt+14)%16])>>>19|(Gt=Re[(zt+14)%16])<<13)^(Gt>>>29|Zt<<3)^(Zt>>>6|Gt<<26))>>>16,Ct+=65535&(_t=(Gt>>>19|Zt<<13)^(Zt>>>29|Gt<<3)^Gt>>>6),qt+=_t>>>16,Re[zt]=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,Je[zt]=65535&Ut|Nt<<16;Ut=65535&(St=gr),Nt=St>>>16,Ct=65535&(_t=ir),qt=_t>>>16,Nt+=(St=ve[0])>>>16,Ct+=65535&(_t=pe[0]),qt+=_t>>>16,pe[0]=ir=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[0]=gr=65535&Ut|Nt<<16,Ut=65535&(St=fr),Nt=St>>>16,Ct=65535&(_t=pr),qt=_t>>>16,Nt+=(St=ve[1])>>>16,Ct+=65535&(_t=pe[1]),qt+=_t>>>16,pe[1]=pr=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[1]=fr=65535&Ut|Nt<<16,Ut=65535&(St=ur),Nt=St>>>16,Ct=65535&(_t=br),qt=_t>>>16,Nt+=(St=ve[2])>>>16,Ct+=65535&(_t=pe[2]),qt+=_t>>>16,pe[2]=br=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[2]=ur=65535&Ut|Nt<<16,Ut=65535&(St=Kr),Nt=St>>>16,Ct=65535&(_t=yr),qt=_t>>>16,Nt+=(St=ve[3])>>>16,Ct+=65535&(_t=pe[3]),qt+=_t>>>16,pe[3]=yr=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[3]=Kr=65535&Ut|Nt<<16,Ut=65535&(St=Br),Nt=St>>>16,Ct=65535&(_t=pt),qt=_t>>>16,Nt+=(St=ve[4])>>>16,Ct+=65535&(_t=pe[4]),qt+=_t>>>16,pe[4]=pt=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[4]=Br=65535&Ut|Nt<<16,Ut=65535&(St=Gr),Nt=St>>>16,Ct=65535&(_t=wr),qt=_t>>>16,Nt+=(St=ve[5])>>>16,Ct+=65535&(_t=pe[5]),qt+=_t>>>16,pe[5]=wr=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[5]=Gr=65535&Ut|Nt<<16,Ut=65535&(St=Fr),Nt=St>>>16,Ct=65535&(_t=Cr),qt=_t>>>16,Nt+=(St=ve[6])>>>16,Ct+=65535&(_t=pe[6]),qt+=_t>>>16,pe[6]=Cr=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[6]=Fr=65535&Ut|Nt<<16,Ut=65535&(St=Tr),Nt=St>>>16,Ct=65535&(_t=or),qt=_t>>>16,Nt+=(St=ve[7])>>>16,Ct+=65535&(_t=pe[7]),qt+=_t>>>16,pe[7]=or=65535&(Ct+=(Nt+=(Ut+=65535&St)>>>16)>>>16)|(qt+=Ct>>>16)<<16,ve[7]=Tr=65535&Ut|Nt<<16,Yr+=128,de-=128}return de}function lt(pe,ve,be){var vt,de=new Int32Array(8),Re=new Int32Array(8),Je=new Uint8Array(256),it=be;for(de[0]=1779033703,de[1]=3144134277,de[2]=1013904242,de[3]=2773480762,de[4]=1359893119,de[5]=2600822924,de[6]=528734635,de[7]=1541459225,Re[0]=4089235720,Re[1]=2227873595,Re[2]=4271175723,Re[3]=1595750129,Re[4]=2917565137,Re[5]=725511199,Re[6]=4215389547,Re[7]=327033209,ot(de,Re,ve,be),be%=128,vt=0;vt=0;--Re)ct(pe,ve,de=be[Re/8|0]>>(7&Re)&1),Lt(ve,pe),Lt(pe,pe),ct(pe,ve,de)}function Se(pe,ve){var be=[I(),I(),I(),I()];i(be[0],p),i(be[1],b),i(be[2],S),ae(be[3],p,b),Ue(pe,be,ve)}function Ve(pe,ve,be){var Je,de=new Uint8Array(64),Re=[I(),I(),I(),I()];for(be||M(ve,32),lt(de,ve,32),de[0]&=248,de[31]&=127,de[31]|=64,Se(Re,de),He(pe,Re),Je=0;Je<32;Je++)ve[Je+32]=pe[Je];return 0}var pe,Le=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Y(pe,ve){var be,de,Re,Je;for(de=63;de>=32;--de){for(be=0,Re=de-32,Je=de-12;Re>4)*Le[Re],be=ve[Re]>>8,ve[Re]&=255;for(Re=0;Re<32;Re++)ve[Re]-=be*Le[Re];for(de=0;de<32;de++)ve[de+1]+=ve[de]>>8,pe[de]=255&ve[de]}function z(pe){var be,ve=new Float64Array(64);for(be=0;be<64;be++)ve[be]=pe[be];for(be=0;be<64;be++)pe[be]=0;Y(pe,ve)}function G(pe,ve,be,de){var it,at,Re=new Uint8Array(64),Je=new Uint8Array(64),vt=new Uint8Array(64),It=new Float64Array(64),At=[I(),I(),I(),I()];lt(Re,de,32),Re[0]&=248,Re[31]&=127,Re[31]|=64;var Rt=be+64;for(it=0;it>7&&H(pe[0],w,pe[0]),ae(pe[3],pe[0],pe[1]),0)}(at,de))return-1;for(Re=0;Re=0},B.sign.keyPair=function(){var pe=new Uint8Array(32),ve=new Uint8Array(64);return Ve(pe,ve),{publicKey:pe,secretKey:ve}},B.sign.keyPair.fromSecretKey=function(pe){if(Be(pe),64!==pe.length)throw new Error("bad secret key size");for(var ve=new Uint8Array(32),be=0;be{function k(B,I,M,P,o,w,S){try{var D=B[w](S),A=D.value}catch(g){return void M(g)}D.done?I(A):Promise.resolve(A).then(P,o)}q.exports=function x(B){return function(){var I=this,M=arguments;return new Promise(function(P,o){var w=B.apply(I,M);function S(A){k(w,P,o,S,D,"next",A)}function D(A){k(w,P,o,S,D,"throw",A)}S(void 0)})}},q.exports.__esModule=!0,q.exports.default=q.exports},77775:(q,k,x)=>{"use strict";x.r(k),x.d(k,{__assign:()=>M,__asyncDelegator:()=>U,__asyncGenerator:()=>R,__asyncValues:()=>O,__await:()=>L,__awaiter:()=>D,__classPrivateFieldGet:()=>W,__classPrivateFieldIn:()=>_,__classPrivateFieldSet:()=>X,__createBinding:()=>g,__decorate:()=>o,__exportStar:()=>p,__extends:()=>I,__generator:()=>A,__importDefault:()=>Q,__importStar:()=>Z,__makeTemplateObject:()=>j,__metadata:()=>S,__param:()=>w,__read:()=>y,__rest:()=>P,__spread:()=>m,__spreadArray:()=>C,__spreadArrays:()=>E,__values:()=>b});var B=function(t,a){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=e[i])})(t,a)};function I(t,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function s(){this.constructor=t}B(t,a),t.prototype=null===a?Object.create(a):(s.prototype=a.prototype,new s)}var M=function(){return M=Object.assign||function(a){for(var s,e=1,i=arguments.length;e=0;c--)(d=t[c])&&(u=(i<3?d(u):i>3?d(a,s,u):d(a,s))||u);return i>3&&u&&Object.defineProperty(a,s,u),u}function w(t,a){return function(s,e){a(s,e,t)}}function S(t,a){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,a)}function D(t,a,s,e){return new(s||(s=Promise))(function(u,d){function c(F){try{h(e.next(F))}catch(T){d(T)}}function r(F){try{h(e.throw(F))}catch(T){d(T)}}function h(F){F.done?u(F.value):function i(u){return u instanceof s?u:new s(function(d){d(u)})}(F.value).then(c,r)}h((e=e.apply(t,a||[])).next())})}function A(t,a){var e,i,u,d,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return d={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function c(h){return function(F){return function r(h){if(e)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(s=0)),s;)try{if(e=1,i&&(u=2&h[0]?i.return:h[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,h[1])).done)return u;switch(i=0,u&&(h=[2&h[0],u.value]),h[0]){case 0:case 1:u=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,i=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(!(u=(u=s.trys).length>0&&u[u.length-1])&&(6===h[0]||2===h[0])){s=0;continue}if(3===h[0]&&(!u||h[1]>u[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var i,d,e=s.call(t),u=[];try{for(;(void 0===a||a-- >0)&&!(i=e.next()).done;)u.push(i.value)}catch(c){d={error:c}}finally{try{i&&!i.done&&(s=e.return)&&s.call(e)}finally{if(d)throw d.error}}return u}function m(){for(var t=[],a=0;a1||c(H,ae)})})}function c(H,ae){try{!function r(H){H.value instanceof L?Promise.resolve(H.value.v).then(h,F):T(u[0][2],H)}(e[H](ae))}catch(Ae){T(u[0][3],Ae)}}function h(H){c("next",H)}function F(H){c("throw",H)}function T(H,ae){H(ae),u.shift(),u.length&&c(u[0][0],u[0][1])}}function U(t){var a,s;return a={},e("next"),e("throw",function(i){throw i}),e("return"),a[Symbol.iterator]=function(){return this},a;function e(i,u){a[i]=t[i]?function(d){return(s=!s)?{value:L(t[i](d)),done:"return"===i}:u?u(d):d}:u}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,a=t[Symbol.asyncIterator];return a?a.call(t):(t=b(t),s={},e("next"),e("throw"),e("return"),s[Symbol.asyncIterator]=function(){return this},s);function e(u){s[u]=t[u]&&function(d){return new Promise(function(c,r){!function i(u,d,c,r){Promise.resolve(r).then(function(h){u({value:h,done:c})},d)}(c,r,(d=t[u](d)).done,d.value)})}}}function j(t,a){return Object.defineProperty?Object.defineProperty(t,"raw",{value:a}):t.raw=a,t}var K=Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:!0,value:a})}:function(t,a){t.default=a};function Z(t){if(t&&t.__esModule)return t;var a={};if(null!=t)for(var s in t)"default"!==s&&Object.prototype.hasOwnProperty.call(t,s)&&g(a,t,s);return K(a,t),a}function Q(t){return t&&t.__esModule?t:{default:t}}function W(t,a,s,e){if("a"===s&&!e)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof a?t!==a||!e:!a.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?e:"a"===s?e.call(t):e?e.value:a.get(t)}function X(t,a,s,e,i){if("m"===e)throw new TypeError("Private method is not writable");if("a"===e&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof a?t!==a||!i:!a.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===e?i.call(t,s):i?i.value=s:a.set(t,s),s}function _(t,a){if(null===a||"object"!=typeof a&&"function"!=typeof a)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?a===t:t.has(a)}},80950:()=>{},46601:()=>{},8623:()=>{},7748:()=>{},85568:()=>{},56619:()=>{},77108:()=>{},52361:()=>{},94616:()=>{},32548:()=>{},91138:()=>{},53131:()=>{},46840:()=>{},94250:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Authenticator=void 0;const I=x(94530),M=x(70854),P=x(12217),o=x(28959),w=x(62517),S=x(77670),D=x(87322),A=x(12764),g=x(60786),p=x(340),b=x(54524),y=x(58864),m=x(62527),E=x(46034),C=x(82418),L=x(83116),R=x(756);let U;U="object"==typeof crypto&&crypto.subtle?crypto.subtle:x(19726).webcrypto.subtle;class j{static decodePublicKey(Z){return M.KeyPair.publicFromBase64orPEM(Z)}static getUseTicket(Z,Q,W,X,_,t){return B(function*(){let a,s,e;try{t=M.KeyPair.parseKeyArrayStrings(t)}catch(i){throw(0,P.logger)(L.DEBUGLEVEL.LOW,i),new Error("Issuer key error")}if(!W)throw new Error("Ticket is empty");if(a=I.Ticket.fromBase64(W,t),!a.checkValidity())throw(0,P.logger)(L.DEBUGLEVEL.LOW,"Could not validate ticket"),new Error("Ticket Validation failed");if(!a.verify())throw(0,P.logger)(L.DEBUGLEVEL.LOW,"Could not verify ticket"),new Error("Ticket Verification failed");if((0,P.logger)(L.DEBUGLEVEL.MEDIUM,"ticked valid (signature OK)"),!_)throw new Error("Attesator key not defined");try{e=M.KeyPair.publicFromBase64orPEM(_)}catch{throw new Error("Attesator key read error")}try{s=o.SignedIdentifierAttestation.fromBytes((0,P.base64ToUint8array)(X),e)}catch{throw new Error("IDAttestation decode error")}if(!s.checkValidity())throw new Error("IDAttestation Validation failed");if(!s.verify())throw new Error("IDAttestation Verification failed");(0,P.logger)(L.DEBUGLEVEL.HIGH,"attestation valid");try{let i=new w.AttestedObject;i.create(a,s,Q,Z);let u=i.getDerEncoding();return(0,P.logger)(L.DEBUGLEVEL.HIGH,u),(0,P.hexStringToBase64)(u)}catch(i){let u="";throw i instanceof Error&&(u=i.message),(0,P.logger)(L.DEBUGLEVEL.MEDIUM,"getUseTicket: redeem failed",i),new Error("Attestation doesnt fit Ticket: "+u)}})()}static validateUseTicket(Z,Q,W,X){let _=M.KeyPair.publicFromBase64orPEM(Q),t=M.KeyPair.parseKeyArrayStrings(W);try{let a=w.AttestedObject.fromBytes((0,P.base64ToUint8array)(Z),R.UseToken,_,I.Ticket,t);if((0,P.logger)(L.DEBUGLEVEL.LOW,"Verified attested object"),!a.checkValidity(X))throw new Error("Ticket validity check failed!");return a}catch(a){if(a instanceof Error){let s="Ticket proof validation failed! "+a.message;throw(0,P.logger)(L.DEBUGLEVEL.MEDIUM,s),new Error(s)}}}static requestAttest(Z,Q,W,X,_){return B(function*(){let a,t=new S.AttestationCrypto;if(_)a=_.getAddress();else try{a=yield b.SignatureUtility.connectMetamaskAndGetAddress()}catch(c){return(0,P.logger)(L.DEBUGLEVEL.LOW,"Cant find user Ethereum Address. Please check Metamask. "+c),void(0,P.logger)(L.DEBUGLEVEL.MEDIUM,c)}let s=yield A.Nonce.makeNonce(a,W);(0,P.logger)(L.DEBUGLEVEL.HIGH,"nonce = "+(0,P.uint8tohex)(s));let e=t.computeAttestationProof(X,s),i=D.AttestationRequest.fromData(t.getType(Q),e),u=new g.Eip712AttestationRequest(_);return yield u.addData(W,void 0,Z,i),j.checkAttestRequestVerifiability(u),j.checkAttestRequestValidity(u),u.getJsonEncoding()})()}static constructAttest(Z,Q,W,X,_,t=""){let a,e,i,s=new S.AttestationCrypto;try{e=new g.Eip712AttestationRequest,e.setDomain(_),t&&e.setUsageValue(t),e.fillJsonData(X),j.checkAttestRequestVerifiability(e),j.checkAttestRequestValidity(e)}catch(c){(0,P.logger)(L.DEBUGLEVEL.MEDIUM,"Failed to fill attestation data from json. "+c+"\nRestores as an Eip712AttestationRequestWithUsage object instead");try{e=new E.Eip712AttestationRequestWithUsage,e.setDomain(_),e.fillJsonData(X),j.checkAttestRequestVerifiability(e),j.checkAttestRequestValidity(e)}catch(h){let F="Failed to parse Eip712AttestationRequestWithUsage. "+h;throw(0,P.logger)(L.DEBUGLEVEL.LOW,F),(0,P.logger)(L.DEBUGLEVEL.MEDIUM,h),new Error(F)}}i=s.makeCommitmentFromHiding(e.getIdentifier(),e.getType(),e.getPok().getRiddle()),a=new p.IdentifierAttestation,a.fromCommitment(i,e.getUserPublicKey()),a.setIssuer("CN="+Q),a.setSerialNumber(Math.round(Math.random()*Number.MAX_SAFE_INTEGER));let u=Date.now();return a.setNotValidBefore(u),a.setNotValidAfter(u+W),o.SignedIdentifierAttestation.fromData(a,Z).getDerEncoding()}static useAttest(Z,Q,W,X,_,t,a,s){return B(function*(){const e=(0,P.base64ToUint8array)(Z);let r,i=o.SignedIdentifierAttestation.fromBytes(e,W),u=(0,P.base64ToUint8array)(Q),d=(0,P.uint8ToBn)(u.slice(4)),c=new S.AttestationCrypto;r=s?s.getAddress():yield b.SignatureUtility.connectMetamaskAndGetAddress();let h=yield A.Nonce.makeNonce(r,t),F=c.computeAttestationProof(d,h);try{let T=y.UseAttestation.fromData(i,c.getType(_),F,a),H=new m.Eip712AttestationUsage(s),ae=yield H.addData(t,X,T);return(0,P.logger)(L.DEBUGLEVEL.HIGH,"usageRequest ready state = "+ae),(0,P.logger)(L.DEBUGLEVEL.HIGH,"usageRequest.getJsonEncoding() = "+H.getJsonEncoding()),H.getJsonEncoding()}catch(T){(0,P.logger)(L.DEBUGLEVEL.LOW,T)}})()}static checkAttestRequestVerifiability(Z){if(!Z.verify())throw(0,P.logger)(L.DEBUGLEVEL.MEDIUM,"Could not verify attestation signing request"),new Error("Verification failed")}static checkAttestRequestValidity(Z){if(!Z.checkValidity())throw(0,P.logger)(L.DEBUGLEVEL.HIGH,"Could not validate attestation signing request"),new Error("Validation failed")}static checkUsageVerifiability(Z){if(!Z.verify())throw(0,P.logger)(L.DEBUGLEVEL.LOW,"Could not verify usage request"),new Error("Verification failed")}static checkUsageValidity(Z){if(!Z.checkTokenValidity())throw(0,P.logger)(L.DEBUGLEVEL.LOW,"Could not validate usage request"),new Error("Validation failed")}static verifyUsage(Z,Q,W,X,_){return B(function*(){let t;try{let a=new m.Eip712AttestationUsage;a.setDomain(X),a.fillJsonData(Z,Q),j.checkUsageVerifiability(a),j.checkUsageValidity(a),t=a.getSessionPublicKey()}catch(a){(0,P.logger)(L.DEBUGLEVEL.MEDIUM,"Eip712AttestationUsage failed. "+a+". Lets try to verify Eip712AttestationRequestWithUsage");let s=new E.Eip712AttestationRequestWithUsage;s.setDomain(X),s.fillJsonData(Z),j.checkUsageVerifiability(s),j.checkUsageValidity(s),t=s.getSessionPublicKey(),(0,P.logger)(L.DEBUGLEVEL.HIGH,"sessionPublicKey from Eip712AttestationRequestWithUsage = "+t.getAddress())}try{if(!(yield t.verifyStringWithSubtle(M.KeyPair.anySignatureToRawUint8(_),W)))throw(0,P.logger)(L.DEBUGLEVEL.MEDIUM,"Could not verify message signature"),new Error("Signature verification failed");return"SUCCESSFULLY validated usage request!"}catch(a){(0,P.logger)(L.DEBUGLEVEL.LOW,"Cant verify session with subtle. "+a),(0,P.logger)(L.DEBUGLEVEL.MEDIUM,a)}})()}static requestAttestAndUsage(Z,Q,W,X,_,t){return B(function*(){try{let s,a=(0,P.uint8ToBn)((0,P.base64ToUint8array)(_));s=Z?Z.getAddress():yield b.SignatureUtility.connectMetamaskAndGetAddress();let e=yield A.Nonce.makeNonce(s,X,new Uint8Array(0),Date.now()),i=new S.AttestationCrypto,u=i.computeAttestationProof(a,e),d=C.AttestationRequestWithUsage.fromData(i.getType(W),u,t),c=new E.Eip712AttestationRequestWithUsage(Z);return yield c.fromData(X,void 0,void 0,Q,d),(0,P.logger)(L.DEBUGLEVEL.HIGH,"request.getJsonEncoding() = "+c.getJsonEncoding()),c.getJsonEncoding()}catch(a){(0,P.logger)(L.DEBUGLEVEL.LOW,"requestAttestAndUsage error. "+a),(0,P.logger)(L.DEBUGLEVEL.MEDIUM,a)}})()}static validateTicket(Z,Q,W){let _,X={};try{X[Q]=M.KeyPair.parseKeyArrayStrings({[Q]:W})[Q]}catch{return{valid:!1,massage:"Broken Public Key"}}try{_=I.Ticket.fromBase64(Z,X)}catch(t){return(0,P.logger)(L.DEBUGLEVEL.LOW,t),{valid:!1,massage:"Wrong Ticket"}}return{valid:!0,ticketId:_.getTicketId(),ticketClass:_.getTicketClass()}}}k.Authenticator=j},94530:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Ticket=void 0;const B=x(77670),I=x(70854),M=x(31111),P=x(14730),o=x(12217),w=x(63769),S=x(7098),D=x(92135);k.Ticket=class A extends P.AttestableObject{constructor(){super(),this.magicLinkURLPrefix="https://ticket.devcon.org/",this.isLegasy=!1}fromData(p,b,y,m){this.ticketId=b,this.ticketClass=y,this.devconId=p,this.keys=m,this.setKeys(m[p])}setKeys(p){Array.isArray(p)?(this.issuerKeys=p,this.key=p[0]):(this.issuerKeys=[p],this.key=p)}createWithCommitment(p,b,y,m,E,C){if(this.fromData(p,b,y,C),this.commitment=m,this.signature=E,this.encoded=this.encodeSignedTicket(this.makeTicket()),!this.verify())throw new Error("Ticket Signature is invalid")}static createWithMail(p,b,y,m,E,C){let L=new this;L.fromData(b,y,m,E);let U,R=new B.AttestationCrypto;try{L.commitment=R.makeCommitment(p,R.getType("mail"),C);let O=L.makeTicket();U=L.key.signRawBytesWithEthereum((0,o.hexStringToArray)(O))}catch(O){let j="";throw O instanceof Error&&(j=O.message),new Error(j)}return L.createWithCommitment(b,y,m,L.commitment,U,E),L}makeTicket(){let p;try{const y=BigInt(this.ticketId);p=M.Asn1Der.encode("INTEGER",y)}catch{p=M.Asn1Der.encode("UTF8STRING",this.ticketId)}let b=M.Asn1Der.encode("UTF8STRING",this.devconId)+p+M.Asn1Der.encode("INTEGER",this.ticketClass);return this.isLegasy||(b+=M.Asn1Der.encode("OCTET_STRING",(0,o.uint8tohex)(this.commitment))),M.Asn1Der.encode("SEQUENCE_30",b)}encodeSignedTicket(p){return this.isLegasy&&(p+=M.Asn1Der.encode("OCTET_STRING",(0,o.uint8tohex)(this.commitment))),p+=M.Asn1Der.encode("BIT_STRING",this.signature),M.Asn1Der.encode("SEQUENCE_30",p)}getDerEncodingWithPK(){let b=this.makeTicket()+M.Asn1Der.encode("OCTET_STRING",(0,o.uint8tohex)(this.commitment))+this.key.getAsnDerPublic()+M.Asn1Der.encode("BIT_STRING",this.signature);return M.Asn1Der.encode("SEQUENCE_30",b)}getDerEncoding(){return this.encoded}verify(){const p=(0,o.hexStringToArray)(this.makeTicket()),b=(0,o.hexStringToArray)(D.ethers.utils.keccak256(p)),y=(0,o.uint8tohex)(I.KeyPair.anySignatureToRawUint8(this.signature)),m=D.ethers.utils.recoverPublicKey(b,D.ethers.utils.splitSignature((0,o.hexStringToUint8)(y)));for(const E of this.issuerKeys)if(m.substring(2)===E.getPublicKeyAsHexStr())return this.key=E,!0;throw new Error("Ticket signature is invalid")}checkValidity(){return!0}getTicketId(){return this.ticketId}getTicketClass(){return this.ticketClass}getDevconId(){return this.devconId}getSignature(){return this.signature}static fromBase64(p,b){let y=new this;return y.fromBytes((0,o.base64ToUint8array)(p),b),y}fromBytes(p,b){const y=S.AsnParser.parse(p,w.SignedDevconTicket);let m=y.ticket.devconId;if(!b||!b[m])throw new Error("Issuer key "+m+" not defined.");this.setKeys(b[m]);let U,C=y.ticket.ticketIdNumber,L=C?C.toString():y.ticket.ticketIdString??"",R=y.ticket.ticketClass;if(y.ticket.commitment)U=y.ticket.commitment;else{if(!y.commitment)throw new Error("Commitment not defined.");U=y.commitment,this.isLegasy=!0}let O=y.signatureValue;this.createWithCommitment(m,L,R,new Uint8Array(U),(0,o.uint8tohex)(new Uint8Array(O)),b)}getCommitment(){return this.commitment}getKey(){return this.key}getUrlEncoding(){}}},64908:function(q,k,x){"use strict";var B=this&&this.__decorate||function(m,E,C,L){var O,R=arguments.length,U=R<3?E:null===L?L=Object.getOwnPropertyDescriptor(E,C):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(m,E,C,L);else for(var j=m.length-1;j>=0;j--)(O=m[j])&&(U=(R<3?O(U):R>3?O(E,C,U):O(E,C))||U);return R>3&&U&&Object.defineProperty(E,C,U),U};Object.defineProperty(k,"__esModule",{value:!0}),k.MyAttestationDecoded=k.MyAttestation=k.SignedInfo=k.SmartContract=k.Payload=k.PrivateKeyInfo=k.PrivateKeyData=k.SubjectPublicKeyInfo=k.PublicKeyInfoValue=void 0;const I=x(7098),M=x(54871),P=x(2771);class o{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],o.prototype,"algorithm",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString})],o.prototype,"publicKey",void 0),k.PublicKeyInfoValue=o;let w=class{constructor(){this.null=!1}};B([(0,I.AsnProp)({type:o})],w.prototype,"value",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],w.prototype,"null",void 0),w=B([(0,I.AsnType)({type:I.AsnTypeTypes.Choice})],w),k.SubjectPublicKeyInfo=w;class S{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],S.prototype,"one",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],S.prototype,"privateKey",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any,context:0})],S.prototype,"algDescr",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString,context:1})],S.prototype,"publicKey",void 0),k.PrivateKeyData=S;class D{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],D.prototype,"one",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],D.prototype,"algIdent",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],D.prototype,"keysData",void 0),k.PrivateKeyInfo=D;let A=class{};B([(0,I.AsnProp)({type:M.Extensions,context:3})],A.prototype,"extensions",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any,context:4})],A.prototype,"dataObject",void 0),A=B([(0,I.AsnType)({type:I.AsnTypeTypes.Choice})],A),k.Payload=A;class g{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],g.prototype,"value",void 0),k.SmartContract=g;class p{}B([(0,I.AsnProp)({type:M.Version})],p.prototype,"version",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],p.prototype,"serialNumber",void 0),B([(0,I.AsnProp)({type:M.AlgorithmIdentifierASN})],p.prototype,"signature",void 0),B([(0,I.AsnProp)({type:P.Name})],p.prototype,"issuer",void 0),B([(0,I.AsnProp)({type:M.ValidityValue,optional:!0})],p.prototype,"validity",void 0),B([(0,I.AsnProp)({type:P.Name})],p.prototype,"subject",void 0),B([(0,I.AsnProp)({type:w})],p.prototype,"subjectPublicKeyInfo",void 0),B([(0,I.AsnProp)({type:g,optional:!0})],p.prototype,"contract",void 0),B([(0,I.AsnProp)({type:A,optional:!0})],p.prototype,"attestsTo",void 0),k.SignedInfo=p;class b{constructor(){this.signedInfo=new Uint8Array}}B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],b.prototype,"signedInfo",void 0),B([(0,I.AsnProp)({type:M.AlgorithmIdentifierASN})],b.prototype,"signatureAlgorithm",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString})],b.prototype,"signatureValue",void 0),k.MyAttestation=b;class y{}B([(0,I.AsnProp)({type:p})],y.prototype,"signedInfo",void 0),B([(0,I.AsnProp)({type:M.AlgorithmIdentifierASN})],y.prototype,"signatureAlgorithm",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString})],y.prototype,"signatureValue",void 0),k.MyAttestationDecoded=y},44328:function(q,k,x){"use strict";var B=this&&this.__decorate||function(o,w,S,D){var p,A=arguments.length,g=A<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,S):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(o,w,S,D);else for(var b=o.length-1;b>=0;b--)(p=o[b])&&(g=(A<3?p(g):A>3?p(w,S,g):p(w,S))||g);return A>3&&g&&Object.defineProperty(w,S,g),g};Object.defineProperty(k,"__esModule",{value:!0}),k.Identifier=void 0;const I=x(7098),M=x(47888);class P{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],P.prototype,"type",void 0),B([(0,I.AsnProp)({type:M.Proof})],P.prototype,"proof",void 0),k.Identifier=P},87326:function(q,k,x){"use strict";var B=this&&this.__decorate||function(w,S,D,A){var b,g=arguments.length,p=g<3?S:null===A?A=Object.getOwnPropertyDescriptor(S,D):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(w,S,D,A);else for(var y=w.length-1;y>=0;y--)(b=w[y])&&(p=(g<3?b(p):g>3?b(S,D,p):b(S,D))||p);return g>3&&p&&Object.defineProperty(S,D,p),p};Object.defineProperty(k,"__esModule",{value:!0}),k.Identifier=void 0;const I=x(7098),M=x(47888),P=x(64908);class o{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],o.prototype,"type",void 0),B([(0,I.AsnProp)({type:M.Proof})],o.prototype,"proof",void 0),B([(0,I.AsnProp)({type:P.PublicKeyInfoValue})],o.prototype,"sessionKey",void 0),k.Identifier=o},54871:function(q,k,x){"use strict";var B=this&&this.__decorate||function(g,p,b,y){var C,m=arguments.length,E=m<3?p:null===y?y=Object.getOwnPropertyDescriptor(p,b):y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(g,p,b,y);else for(var L=g.length-1;L>=0;L--)(C=g[L])&&(E=(m<3?C(E):m>3?C(p,b,E):C(p,b))||E);return m>3&&E&&Object.defineProperty(p,b,E),E};Object.defineProperty(k,"__esModule",{value:!0}),k.Extensions=k.Extension=k.ValidityValue=k.Version=k.AlgorithmIdentifierASN=void 0;const I=x(7098);class M{}B([(0,I.AsnProp)({type:I.AsnPropTypes.ObjectIdentifier})],M.prototype,"algorithm",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any,optional:!0})],M.prototype,"parameters",void 0),k.AlgorithmIdentifierASN=M;class P{constructor(){this.version=0}}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],P.prototype,"version",void 0),k.Version=P;let o=class{};B([(0,I.AsnProp)({type:I.AsnPropTypes.UTCTime})],o.prototype,"utcTime",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.GeneralizedTime})],o.prototype,"generalizedTime",void 0),o=B([(0,I.AsnType)({type:I.AsnTypeTypes.Choice})],o);class w{}B([(0,I.AsnProp)({type:o})],w.prototype,"notBefore",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer,optional:!0})],w.prototype,"notBeforeInt",void 0),B([(0,I.AsnProp)({type:o})],w.prototype,"notAfter",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer,optional:!0})],w.prototype,"notAfterInt",void 0),k.ValidityValue=w;let S=class{};B([(0,I.AsnProp)({type:w,context:0})],S.prototype,"value",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer,context:1})],S.prototype,"null",void 0),S=B([(0,I.AsnType)({type:I.AsnTypeTypes.Choice})],S);class D{}B([(0,I.AsnProp)({type:I.AsnPropTypes.ObjectIdentifier})],D.prototype,"extnId",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Boolean})],D.prototype,"critical",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],D.prototype,"extnValue",void 0),k.Extension=D;class A{}B([(0,I.AsnProp)({type:D})],A.prototype,"extension",void 0),k.Extensions=A},11021:function(q,k,x){"use strict";var B=this&&this.__decorate||function(P,o,w,S){var g,D=arguments.length,A=D<3?o:null===S?S=Object.getOwnPropertyDescriptor(o,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)A=Reflect.decorate(P,o,w,S);else for(var p=P.length-1;p>=0;p--)(g=P[p])&&(A=(D<3?g(A):D>3?g(o,w,A):g(o,w))||A);return D>3&&A&&Object.defineProperty(o,w,A),A};Object.defineProperty(k,"__esModule",{value:!0}),k.EpochTimeValidity=void 0;const I=x(7098);class M{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],M.prototype,"notBefore",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],M.prototype,"notAfter",void 0),k.EpochTimeValidity=M},20342:function(q,k,x){"use strict";var B=this&&this.__decorate||function(o,w,S,D){var p,A=arguments.length,g=A<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,S):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(o,w,S,D);else for(var b=o.length-1;b>=0;b--)(p=o[b])&&(g=(A<3?p(g):A>3?p(w,S,g):p(w,S))||g);return A>3&&g&&Object.defineProperty(w,S,g),g};Object.defineProperty(k,"__esModule",{value:!0}),k.EthereumAddressAttestation=void 0;const I=x(7098),M=x(11021);class P{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],P.prototype,"subjectPublicKey",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],P.prototype,"ethereumAddress",void 0),B([(0,I.AsnProp)({type:M.EpochTimeValidity})],P.prototype,"validity",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString,optional:!0})],P.prototype,"context",void 0),k.EthereumAddressAttestation=P},11047:function(q,k,x){"use strict";var B=this&&this.__decorate||function(D,A,g,p){var m,b=arguments.length,y=b<3?A:null===p?p=Object.getOwnPropertyDescriptor(A,g):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(D,A,g,p);else for(var E=D.length-1;E>=0;E--)(m=D[E])&&(y=(b<3?m(y):b>3?m(A,g,y):m(A,g))||y);return b>3&&y&&Object.defineProperty(A,g,y),y};Object.defineProperty(k,"__esModule",{value:!0}),k.SignedEthereumKeyLinkingAttestation=k.EthereumKeyLinkingAttestation=void 0;const I=x(7098),M=x(11021),P=x(54871),o=x(14360);class w{}B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],w.prototype,"subjectEthereumAddress",void 0),B([(0,I.AsnProp)({type:o.SignedLinkedAttestation})],w.prototype,"linkedAttestation",void 0),B([(0,I.AsnProp)({type:M.EpochTimeValidity})],w.prototype,"validity",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString,optional:!0})],w.prototype,"context",void 0),k.EthereumKeyLinkingAttestation=w;class S{}B([(0,I.AsnProp)({type:w})],S.prototype,"ethereumKeyLinkingAttestation",void 0),B([(0,I.AsnProp)({type:P.AlgorithmIdentifierASN})],S.prototype,"signingAlgorithm",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString})],S.prototype,"signatureValue",void 0),k.SignedEthereumKeyLinkingAttestation=S},2771:function(q,k,x){"use strict";var I,M,B=this&&this.__decorate||function(A,g,p,b){var E,y=arguments.length,m=y<3?g:null===b?b=Object.getOwnPropertyDescriptor(g,p):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)m=Reflect.decorate(A,g,p,b);else for(var C=A.length-1;C>=0;C--)(E=A[C])&&(m=(y<3?E(m):y>3?E(g,p,m):E(g,p))||m);return y>3&&m&&Object.defineProperty(g,p,m),m};Object.defineProperty(k,"__esModule",{value:!0}),k.Name=k.AttributeTypeAndValue=void 0;const P=x(7098);class o{}B([(0,P.AsnProp)({type:P.AsnPropTypes.ObjectIdentifier})],o.prototype,"type",void 0),B([(0,P.AsnProp)({type:P.AsnPropTypes.Utf8String})],o.prototype,"value",void 0),k.AttributeTypeAndValue=o;let w=I=class extends P.AsnArray{constructor(g){super(g),Object.setPrototypeOf(this,I.prototype)}};w=I=B([(0,P.AsnType)({type:P.AsnTypeTypes.Set,itemType:o})],w);let S=M=class extends P.AsnArray{constructor(g){super(g),Object.setPrototypeOf(this,M.prototype)}};S=M=B([(0,P.AsnType)({type:P.AsnTypeTypes.Sequence,itemType:w})],S);let D=class{};B([(0,P.AsnProp)({type:S})],D.prototype,"rdnSequence",void 0),B([(0,P.AsnProp)({type:P.AsnPropTypes.Null})],D.prototype,"null",void 0),D=B([(0,P.AsnType)({type:P.AsnTypeTypes.Choice})],D),k.Name=D},83848:function(q,k,x){"use strict";var B=this&&this.__decorate||function(w,S,D,A){var b,g=arguments.length,p=g<3?S:null===A?A=Object.getOwnPropertyDescriptor(S,D):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(w,S,D,A);else for(var y=w.length-1;y>=0;y--)(b=w[y])&&(p=(g<3?b(p):g>3?b(S,D,p):b(S,D))||p);return g>3&&p&&Object.defineProperty(S,D,p),p};Object.defineProperty(k,"__esModule",{value:!0}),k.NFTOwnershipAttestation=k.ERC721=void 0;const I=x(7098),M=x(11021);class P{}B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],P.prototype,"address",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],P.prototype,"chainId",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString,optional:!0,repeated:"sequence"})],P.prototype,"tokenIds",void 0),k.ERC721=P;class o{constructor(){this.tokens=[]}}B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],o.prototype,"subjectPublicKey",void 0),B([(0,I.AsnProp)({type:P,repeated:"sequence"})],o.prototype,"tokens",void 0),B([(0,I.AsnProp)({type:M.EpochTimeValidity})],o.prototype,"validity",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString,optional:!0})],o.prototype,"context",void 0),k.NFTOwnershipAttestation=o},47888:function(q,k,x){"use strict";var B=this&&this.__decorate||function(o,w,S,D){var p,A=arguments.length,g=A<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,S):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(o,w,S,D);else for(var b=o.length-1;b>=0;b--)(p=o[b])&&(g=(A<3?p(g):A>3?p(w,S,g):p(w,S))||g);return A>3&&g&&Object.defineProperty(w,S,g),g};Object.defineProperty(k,"__esModule",{value:!0}),k.UsageProof=k.Proof=void 0;const I=x(7098);class M{}B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],M.prototype,"riddle",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],M.prototype,"challengePoint",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],M.prototype,"responseValue",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],M.prototype,"nonce",void 0),k.Proof=M;class P{}B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],P.prototype,"challengePoint",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],P.prototype,"responseValue",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString})],P.prototype,"nonce",void 0),k.UsageProof=P},76073:function(q,k,x){"use strict";var B=this&&this.__decorate||function(P,o,w,S){var g,D=arguments.length,A=D<3?o:null===S?S=Object.getOwnPropertyDescriptor(o,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)A=Reflect.decorate(P,o,w,S);else for(var p=P.length-1;p>=0;p--)(g=P[p])&&(A=(D<3?g(A):D>3?g(o,w,A):g(o,w))||A);return D>3&&A&&Object.defineProperty(o,w,A),A};Object.defineProperty(k,"__esModule",{value:!0}),k.Signature=void 0;const I=x(7098);class M{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],M.prototype,"r",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],M.prototype,"s",void 0),k.Signature=M},63769:function(q,k,x){"use strict";var B=this&&this.__decorate||function(o,w,S,D){var p,A=arguments.length,g=A<3?w:null===D?D=Object.getOwnPropertyDescriptor(w,S):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(o,w,S,D);else for(var b=o.length-1;b>=0;b--)(p=o[b])&&(g=(A<3?p(g):A>3?p(w,S,g):p(w,S))||g);return A>3&&g&&Object.defineProperty(w,S,g),g};Object.defineProperty(k,"__esModule",{value:!0}),k.SignedDevconTicket=k.DevconTicket=void 0;const I=x(7098);class M{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Utf8String})],M.prototype,"devconId",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer,optional:!0})],M.prototype,"ticketIdNumber",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Utf8String,optional:!0})],M.prototype,"ticketIdString",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],M.prototype,"ticketClass",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString,optional:!0})],M.prototype,"commitment",void 0),k.DevconTicket=M;class P{}B([(0,I.AsnProp)({type:M})],P.prototype,"ticket",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.OctetString,optional:!0})],P.prototype,"commitment",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString})],P.prototype,"signatureValue",void 0),k.SignedDevconTicket=P},14360:function(q,k,x){"use strict";var B=this&&this.__decorate||function(D,A,g,p){var m,b=arguments.length,y=b<3?A:null===p?p=Object.getOwnPropertyDescriptor(A,g):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(D,A,g,p);else for(var E=D.length-1;E>=0;E--)(m=D[E])&&(y=(b<3?m(y):b>3?m(A,g,y):m(A,g))||y);return b>3&&y&&Object.defineProperty(A,g,y),y};Object.defineProperty(k,"__esModule",{value:!0}),k.SignedLinkedAttestation=k.LinkedAttestation=void 0;const I=x(7098),M=x(54871),P=x(83848),o=x(20342);let w=class{};B([(0,I.AsnProp)({type:P.NFTOwnershipAttestation,context:0})],w.prototype,"nftOwnership",void 0),B([(0,I.AsnProp)({type:o.EthereumAddressAttestation,context:1})],w.prototype,"ethereumAddress",void 0),w=B([(0,I.AsnType)({type:I.AsnTypeTypes.Choice})],w),k.LinkedAttestation=w;class S{}B([(0,I.AsnProp)({type:w})],S.prototype,"attestation",void 0),B([(0,I.AsnProp)({type:M.AlgorithmIdentifierASN})],S.prototype,"signingAlgorithm",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.BitString})],S.prototype,"signatureValue",void 0),k.SignedLinkedAttestation=S},89320:function(q,k,x){"use strict";var B=this&&this.__decorate||function(w,S,D,A){var b,g=arguments.length,p=g<3?S:null===A?A=Object.getOwnPropertyDescriptor(S,D):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(w,S,D,A);else for(var y=w.length-1;y>=0;y--)(b=w[y])&&(p=(g<3?b(p):g>3?b(S,D,p):b(S,D))||p);return g>3&&p&&Object.defineProperty(S,D,p),p};Object.defineProperty(k,"__esModule",{value:!0}),k.UseAttestation=void 0;const I=x(7098),M=x(47888),P=x(64908);class o{}B([(0,I.AsnProp)({type:P.MyAttestation})],o.prototype,"attestation",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Integer})],o.prototype,"type",void 0),B([(0,I.AsnProp)({type:M.Proof})],o.prototype,"proof",void 0),B([(0,I.AsnProp)({type:P.PublicKeyInfoValue})],o.prototype,"sessionKey",void 0),k.UseAttestation=o},756:function(q,k,x){"use strict";var B=this&&this.__decorate||function(P,o,w,S){var g,D=arguments.length,A=D<3?o:null===S?S=Object.getOwnPropertyDescriptor(o,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)A=Reflect.decorate(P,o,w,S);else for(var p=P.length-1;p>=0;p--)(g=P[p])&&(A=(D<3?g(A):D>3?g(o,w,A):g(o,w))||A);return D>3&&A&&Object.defineProperty(o,w,A),A};Object.defineProperty(k,"__esModule",{value:!0}),k.UseToken=void 0;const I=x(7098);class M{}B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],M.prototype,"signedToken",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],M.prototype,"attestation",void 0),B([(0,I.AsnProp)({type:I.AsnPropTypes.Any})],M.prototype,"proof",void 0),k.UseToken=M},83116:(q,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.DEBUGLEVEL=void 0,k.DEBUGLEVEL={LOW:1,MEDIUM:2,HIGH:3,VERBOSE:4}},25089:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.XMLconfigData=void 0;const B=x(63769),I=x(70854);k.XMLconfigData={attestationOrigin:"http://stage.attestation.id",tokensOrigin:"https://devcontickets.herokuapp.com/outlet/",tokenUrlName:"ticket",tokenSecretName:"secret",unsignedTokenDataName:"ticket",tokenParser:B.SignedDevconTicket,localStorageItemName:"dcTokens",base64senderPublicKeys:{6:I.KeyPair.publicFromBase64orPEM("-----BEGIN PUBLIC KEY-----\nMIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA////////////////\n/////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5m\nfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0\nSKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFB\nAgEBA0IABJUMfAvtI8PKxcwxu7mq2btVMjh4gmcKwrHN8HmasOvHZMJn9wTo/doH\nlquDl6TSEBAk0kxO//aVs6QX8u0OSM0=\n-----END PUBLIC KEY-----"),26:I.KeyPair.publicFromBase64orPEM("-----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEQKYTwFMIzSq1QVxoRKoOZXLQ9mUhce8M\ndIzvJx3unbpR3m3TiuWKZKTP4/XCPnS56d1tAhjM43hHjHbZ0k3RKQ==\n-----END PUBLIC KEY-----")},base64attestorPubKey:"MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABL+y43T1OJFScEep69/yTqpqnV/jzONz9Sp4TEHyAJ7IPN9+GHweCX1hT4OFxt152sBN3jJc1s0Ymzd8pNGZNoQ=",webDomain:"devcon.org"}},7665:function(q,k,x){"use strict";var B=this&&this.__createBinding||(Object.create?function(y,m,E,C){void 0===C&&(C=E);var L=Object.getOwnPropertyDescriptor(m,E);(!L||("get"in L?!m.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return m[E]}}),Object.defineProperty(y,C,L)}:function(y,m,E,C){void 0===C&&(C=E),y[C]=m[E]}),I=this&&this.__setModuleDefault||(Object.create?function(y,m){Object.defineProperty(y,"default",{enumerable:!0,value:m})}:function(y,m){y.default=m}),M=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var m={};if(null!=y)for(var E in y)"default"!==E&&Object.prototype.hasOwnProperty.call(y,E)&&B(m,y,E);return I(m,y),m};Object.defineProperty(k,"__esModule",{value:!0}),k.convertV1AttestationToV2=k.isSignedOffchainAttestationV1=k.uncompactOffchainAttestationPackage=k.compactOffchainAttestationPackage=k.decodeBase64ZippedBase64=k.zipAndEncodeToBase64=void 0;const P=M(x(91784)),o=x(92135),w=x(12217);function A(y){let{sig:m,signer:E}=y;return p(m)&&(m=b(m)),[m.domain.version,m.domain.chainId,m.domain.verifyingContract,m.signature.r,m.signature.s,m.signature.v,E,m.uid,m.message.schema,m.message.recipient===o.ethers.constants.AddressZero?"0":m.message.recipient,Number(m.message.time),Number(m.message.expirationTime),m.message.refUID===o.ethers.constants.HashZero?"0":m.message.refUID,m.message.revocable,m.message.data,Number(m.message.nonce)]}function g(y){return{sig:{domain:{name:"EAS Attestation",version:y[0],chainId:y[1],verifyingContract:y[2]},primaryType:"Attestation",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}]},signature:{r:y[3],s:y[4],v:y[5]},uid:y[7],message:{schema:y[8],recipient:"0"===y[9]?o.ethers.constants.AddressZero:y[9],time:y[10],expirationTime:y[11],refUID:"0"===y[12]?o.ethers.constants.HashZero:y[12],revocable:y[13],data:y[14],nonce:y[15]}},signer:y[6]}}function p(y){return"v"in y&&"r"in y&&"s"in y}function b(y){const{v:m,r:E,s:C,...L}=y;return{...L,signature:{v:m,r:E,s:C}}}k.zipAndEncodeToBase64=function S(y){const m=A(y),E=JSON.stringify(m),C=P.deflate(E,{level:9});return(0,w.uint8arrayToBase64)(C)},k.decodeBase64ZippedBase64=function D(y){const m=(0,w.base64ToUint8array)(y),E=P.inflate(m,{to:"string"});return g(JSON.parse(E))},k.compactOffchainAttestationPackage=A,k.uncompactOffchainAttestationPackage=g,k.isSignedOffchainAttestationV1=p,k.convertV1AttestationToV2=b},54945:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.EASIdentifierAttestation=void 0;const I=x(8769);k.EASIdentifierAttestation=class M extends I.EasTicketAttestation{constructor(o,w){super({fields:[{name:"version",type:"uint8"},{name:"identifierType",type:"string"},{name:"commitment",type:"bytes",isCommitment:!0},{name:"ethereumAddress",type:"address"}]},o,void 0,w?{"":w}:void 0)}createEasAttestation(o,w,S="mail"){var D=()=>super.createEasAttestation,A=this;return B(function*(){if(w||(w={}),void 0===w.revocable&&(w.revocable=!1),!w.validity){const g=new Date;g.setDate(g.getDate()+30),w.validity={from:Math.round(Date.now()/1e3),to:Math.round(g.getTime()/1e3)}}return D().call(A,o,w,S)})()}}},65217:function(q,k,x){"use strict";var B=x(91052).default,I=this&&this.__decorate||function(A,g,p,b){var E,y=arguments.length,m=y<3?g:null===b?b=Object.getOwnPropertyDescriptor(g,p):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)m=Reflect.decorate(A,g,p,b);else for(var C=A.length-1;C>=0;C--)(E=A[C])&&(m=(y<3?E(m):y>3?E(g,p,m):E(g,p))||m);return y>3&&m&&Object.defineProperty(g,p,m),m};Object.defineProperty(k,"__esModule",{value:!0}),k.EasAttestedObject=k.EasUseToken=void 0;const M=x(77670),P=x(12217),o=x(7098),w=x(13036);class S{}I([(0,o.AsnProp)({type:o.AsnPropTypes.Any})],S.prototype,"ticketAttestation",void 0),I([(0,o.AsnProp)({type:o.AsnPropTypes.Any})],S.prototype,"idAttestation",void 0),I([(0,o.AsnProp)({type:o.AsnPropTypes.Any})],S.prototype,"proof",void 0),k.EasUseToken=S,k.EasAttestedObject=class D{constructor(){this.crypto=new M.AttestationCrypto}create(g,p,b,y){this.ticketAttestation=g,this.ticketSecret=p,this.identifierAttestation=b,this.identifierSecret=y,this.pok=this.makeProof()}makeProof(){let g=this.identifierAttestation.getCommitment(),p=this.ticketAttestation.getCommitment(),b=this.crypto.computeEqualityProof((0,P.uint8tohex)(g),(0,P.uint8tohex)(p),this.identifierSecret,this.ticketSecret);if(!this.crypto.verifyEqualityProof(g,p,b))throw new Error("The redeem proof did not verify");return b}getEncoded(){const g=new S;return g.ticketAttestation=new Uint8Array(this.ticketAttestation.getAsnEncoded()),g.idAttestation=new Uint8Array(this.identifierAttestation.getAsnEncoded()),g.proof=(0,P.hexStringToUint8)(this.pok.getDerEncoding()),(0,P.uint8tohex)(new Uint8Array(o.AsnSerializer.serialize(g)))}static fromBytes(g,p,b){const y=o.AsnParser.parse(g,S),m=new this;m.ticketAttestation=new p,m.ticketAttestation.loadAsnEncoded(y.ticketAttestation),m.identifierAttestation=new b,m.identifierAttestation.loadAsnEncoded(y.idAttestation);let E=new w.UsageProofOfExponent;return E.fromBytes(new Uint8Array(y.proof)),m.pok=E,m}checkValidity(g=""){var p=this;return B(function*(){if(yield p.ticketAttestation.validateEasAttestation(),yield p.identifierAttestation.validateEasAttestation(),!p.crypto.verifyEqualityProof(p.identifierAttestation.getCommitment(),p.ticketAttestation.getCommitment(),p.pok))throw new Error("Could not verify the consistency between the commitment in the identifier and ticket attestations");if(""!==g&&(yield p.identifierAttestation.getAttestationField("ethereumAddress")).toLowerCase()!==g.toLowerCase())throw Error("The provided ethereum address does not match the address specified in the identifier attestation");return!0})()}}},8769:function(q,k,x){"use strict";var B=x(91052).default,I=this&&this.__createBinding||(Object.create?function(U,O,j,K){void 0===K&&(K=j);var Z=Object.getOwnPropertyDescriptor(O,j);(!Z||("get"in Z?!O.__esModule:Z.writable||Z.configurable))&&(Z={enumerable:!0,get:function(){return O[j]}}),Object.defineProperty(U,K,Z)}:function(U,O,j,K){void 0===K&&(K=j),U[K]=O[j]}),M=this&&this.__setModuleDefault||(Object.create?function(U,O){Object.defineProperty(U,"default",{enumerable:!0,value:O})}:function(U,O){U.default=O}),P=this&&this.__decorate||function(U,O,j,K){var W,Z=arguments.length,Q=Z<3?O:null===K?K=Object.getOwnPropertyDescriptor(O,j):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(U,O,j,K);else for(var X=U.length-1;X>=0;X--)(W=U[X])&&(Q=(Z<3?W(Q):Z>3?W(O,j,Q):W(O,j))||Q);return Z>3&&Q&&Object.defineProperty(O,j,Q),Q},o=this&&this.__importStar||function(U){if(U&&U.__esModule)return U;var O={};if(null!=U)for(var j in U)"default"!==j&&Object.prototype.hasOwnProperty.call(U,j)&&I(O,U,j);return M(O,U),O};Object.defineProperty(k,"__esModule",{value:!0}),k.EasTicketAttestation=k.EasAsnEmbeddedSchema=k.AbiFieldTypes=void 0;const w=x(95215),S=x(92135),D=x(77670),A=x(7098),g=x(43417),p=x(12217),b=x(14730),y=x(7665),m=x(70854),E=o(x(91784));var U;(U=k.AbiFieldTypes||(k.AbiFieldTypes={})).bool="bool",U.uint8="uint8",U.uint16="uint16",U.uint32="uint32",U.uint64="uint64",U.uint128="uint128",U.uint256="uint256",U.address="address",U.string="string",U.bytes="bytes",U.bytes32="bytes32";class L{}P([(0,A.AsnProp)({type:A.AsnPropTypes.OctetString})],L.prototype,"easAttestation",void 0),P([(0,A.AsnProp)({type:A.AsnPropTypes.BitString})],L.prototype,"signatureValue",void 0),P([(0,A.AsnProp)({type:A.AsnPropTypes.OctetString,optional:!0})],L.prototype,"domainInfo",void 0),k.EasAsnEmbeddedSchema=L,k.EasTicketAttestation=class R extends b.AttestableObject{constructor(O,j,K,Z){super(),this.schema=O,this.signingConfig=j,this.rpcMap=K,this.issuerKeys=Z,this.crypto=new D.AttestationCrypto}getEasSchema(){return this.schema.fields.map(O=>O.type+" "+O.name).join(", ")}checkAttestationIsLoaded(){if(!this.signedAttestation)throw new Error("Signed attestation must be loaded to call this function")}createEasAttestation(O,j,K="mail"){var Z=this;return B(function*(){if(!Z.signingConfig)throw new Error("Please provide valid signing config for this function.");Z.signerAddress=yield Z.signingConfig.signer.getAddress(),Z.signerAddress||new Error("Failed to get signer address"),Z.commitmentSecret=void 0;const Q=Z.schema.fields.map(s=>{if(!O[s.name])throw new Error("Value for field "+s.name+" was not provided");let e=O[s.name];return s.isCommitment&&(Z.commitmentSecret||(Z.commitmentSecret=Z.crypto.makeSecret()),e=Z.createCommitment(e,K,Z.commitmentSecret)),{name:s.name,value:e,type:s.type}}),W=new w.Offchain(Z.signingConfig.EASconfig),_=new w.SchemaEncoder(Z.getEasSchema()).encodeData(Q),t=yield W.signOffchainAttestation({recipient:j?.recipient??"0x0000000000000000000000000000000000000000",expirationTime:j?.validity?.to??0,time:j?.validity?.from??Math.round(Date.now()/1e3),nonce:0,schema:j?.schema??"0x0000000000000000000000000000000000000000000000000000000000000000",revocable:!1!==j?.revocable,refUID:j?.refUID??"0x0000000000000000000000000000000000000000000000000000000000000000",data:_},Z.signingConfig.signer);if(!W.verifyOffchainAttestationSignature(Z.signerAddress,t))throw new Error("Attestation signature check failed!");return Z.signedAttestation=t,Z.recoverSignerInfo(),Z.getEasJson()})()}createCommitment(O,j,K){return"0x"+(0,p.uint8tohex)(this.crypto.makeCommitment(O,this.crypto.getType(j),K))}getEasJson(){this.checkAttestationIsLoaded();const O={sig:this.signedAttestation,signer:this.signerAddress};return this.commitmentSecret&&(O.secret="0x"+this.commitmentSecret.toString(16)),O}getEasUid(O){return O||this.checkAttestationIsLoaded(),w.Offchain.getOffchainUID(O??this.signedAttestation.message)}getEncoded(){return(0,y.zipAndEncodeToBase64)(this.getEasJson())}getAttestationData(){if(this.checkAttestationIsLoaded(),!this.decodedData){const j=new w.SchemaEncoder(this.getEasSchema()).decodeData(this.signedAttestation.message.data);this.decodedData={};let K=0;for(const Z of this.schema.fields)this.decodedData[Z.name]=j[K].value.value,K++}return this.decodedData}getAttestationField(O){const j=this.getAttestationData();if(!j[O])throw new Error("The attestation does not contain data field '"+O+"'");return j[O]}verifyIdCommitment(O,j,K="mail"){if(j&&(this.commitmentSecret=j),!this.commitmentSecret)throw new Error("Commitment secret required.");if(this.createCommitment(O,K,this.commitmentSecret)!==this.getAttestationField("commitment"))throw new Error("Commitment verification failed.")}validateEasAttestation(O=!1){var j=this;return B(function*(){j.checkAttestationIsLoaded(),j.verify(),j.checkValidity(),!O&&j.signedAttestation.message.revocable&&(yield j.checkRevocation())})()}checkRevocation(O){var j=this;return B(function*(){O||(O=j.getEasUid());const K=j.signedAttestation.domain.chainId;if(!j.rpcMap?.[K])throw new Error("RPC not provided for chain "+K);const Q=yield new w.EAS(j.signedAttestation.domain.verifyingContract,{signerOrProvider:new S.ethers.providers.StaticJsonRpcProvider(j.rpcMap[K])}).getRevocationOffchain(j.signerAddress,O);if(S.BigNumber.from(Q).gt(0))throw new Error("Attestation has been revoked :-(")})()}revokeEasAttestation(O){var j=this;return B(function*(){if(O||(O=j.getEasUid()),!j.signingConfig)throw new Error("Please provide a valid signer");yield(yield new w.EAS(j.signingConfig.EASconfig.address,{signerOrProvider:j.signingConfig.signer}).revokeOffchain(O)).wait()})()}bulkRevokeEasAttestations(O){var j=this;return B(function*(){if(!j.signingConfig)throw new Error("Please provide a valid signer");yield(yield new w.EAS(j.signingConfig.EASconfig.address,{signerOrProvider:j.signingConfig.signer}).multiRevokeOffchain(O)).wait()})()}loadEasAttestation(O,j,K){this.decodedData=void 0,this.commitmentSecret=K?BigInt(K):void 0,this.signedAttestation=O,this.processKeysParam(j)}loadFromEncoded(O,j,K){const Z=(0,y.decodeBase64ZippedBase64)(O);this.loadEasAttestation(Z.sig,j,K)}getAsnEncoded(O=!1){const j=g.defaultAbiCoder.encode(this.signedAttestation.types.Attest.map(W=>W.type),this.signedAttestation.types.Attest.map(W=>this.signedAttestation.message[W.name])),K=new L;K.easAttestation=(0,p.hexStringToUint8)(j),K.signatureValue=(0,p.hexStringToUint8)((0,g.joinSignature)(this.signedAttestation.signature));const Z=g.defaultAbiCoder.encode(["string","address","uint256"],[this.signedAttestation.domain.version,this.signedAttestation.domain.verifyingContract,this.signedAttestation.domain.chainId]);K.domainInfo=(0,p.hexStringToUint8)(Z);const Q=A.AsnSerializer.serialize(K);return O?E.deflate(Q,{level:9}):Q}loadAsnEncoded(O,j,K=!1){this.decodedData=void 0,this.commitmentSecret=void 0,K&&(O=E.inflate(O));const Z=A.AsnParser.parse(O,L),Q=g.defaultAbiCoder.decode(["string","address","uint256"],Z.domainInfo),W={name:"EAS Attestation",version:Q[0],verifyingContract:Q[1],chainId:Q[2]},X=g.defaultAbiCoder.decode(w.ATTESTATION_TYPE.map(a=>a.type),"0x"+(0,p.uint8tohex)(new Uint8Array(Z.easAttestation))),_={};for(const[a,s]of w.ATTESTATION_TYPE.entries())_[s.name]=X[a];const t=S.ethers.utils.splitSignature(new Uint8Array(Z.signatureValue));this.signedAttestation={domain:W,message:_,types:{Attest:w.ATTESTATION_TYPE},primaryType:"Attestation",signature:{r:t.r,s:t.s,v:t.v},uid:this.getEasUid(_)},this.processKeysParam(j)}checkValidity(){const O=Math.round(Date.now()/1e3);if(O0&&O>this.signedAttestation.message.expirationTime)throw new Error("Attestation has expired.");return!0}processKeysParam(O){const j=this.getAttestationData();let K=j.eventId??j.devconId??"";if(!O){if(!this.issuerKeys)throw new Error("No signing keys are defined");O=this.issuerKeys}if(!O[K]){if(!K||K&&!O[""])throw new Error(K?"No key set for conference ID "+K:"No default key set");K=""}const Z=O[K];this.conferenceKeys=Array.isArray(Z)?Z:[Z],this.recoverSignerInfo()}recoverSignerInfo(){const j=new w.Offchain({version:this.signedAttestation.domain.version,address:this.signedAttestation.domain.verifyingContract,chainId:this.signedAttestation.domain.chainId}),K=S.ethers.utils._TypedDataEncoder.hash(j.getDomainTypedData(),{Attest:w.ATTESTATION_TYPE},this.signedAttestation.message);this.signerPublicKey=S.ethers.utils.recoverPublicKey(K,this.signedAttestation.signature),this.signerAddress=S.ethers.utils.recoverAddress(K,this.signedAttestation.signature)}verify(){if(!this.conferenceKeys)throw new Error("Issuer keys are not defined");for(const O of this.conferenceKeys)if(this.signerPublicKey.substring(2)===O.getPublicKeyAsHexStr())return!0;throw new Error("Ticket signature is invalid")}getSignerKeyPair(){return m.KeyPair.fromPublicHex(this.signerPublicKey)}getSignerKey(){return this.signerPublicKey}getSignerAddress(){return this.signerAddress}getCommitment(){return(0,p.hexStringToUint8)(this.getAttestationField("commitment"))}getDerEncoding(){return(0,p.uint8tohex)(new Uint8Array(this.getAsnEncoded(!1)))}fromBytes(O,j){this.loadAsnEncoded(O,j)}}},3902:(q,k,x)=>{"use strict";var I=x(91052).default;k.U=void 0;const M=x(28959),P=x(12217),o=x(70854),w=x(8769),S=x(62517),D=x(756),A=x(83116),g=x(54945),p=x(65217);k.U=class b{constructor(m,E){this.schema=m,this.rpcMap=E}getUseTicket(m,E,C,L,R,U,O){try{U=o.KeyPair.parseKeyArrayStrings(U)}catch(Z){throw(0,P.logger)(A.DEBUGLEVEL.LOW,Z),new Error("Issuer key error")}const j=new w.EasTicketAttestation(this.schema,void 0,this.rpcMap);let K;if(j.loadFromEncoded(C,U),"eas"===O){const Z=new g.EASIdentifierAttestation(void 0,o.KeyPair.publicFromBase64orPEM(R));Z.loadFromEncoded(L);const Q=new p.EasAttestedObject;Q.create(j,m,Z,E),K=Q.getEncoded()}else{const Z=M.SignedIdentifierAttestation.fromBytes((0,P.base64ToUint8array)(L),o.KeyPair.publicFromBase64orPEM(R));let Q=new S.AttestedObject;Q.create(j,Z,E,m),K=Q.getDerEncoding()}return(0,P.hexStringToBase64)(K)}validateUseTicket(m,E,C,L,R){var U=this;return I(function*(){let O=o.KeyPair.publicFromBase64orPEM(E),j=o.KeyPair.parseKeyArrayStrings(C);const K=U,Z=class extends w.EasTicketAttestation{constructor(){super(K.schema,void 0,K.rpcMap,j)}};if("eas"!==R){const Q=S.AttestedObject.fromBytes((0,P.base64ToUint8array)(m),D.UseToken,O,Z,j);if(!Q.checkValidity(L))throw new Error("Ticket validity check failed!");return yield Q.getAttestableObject().validateEasAttestation(),Q}{const Q=class extends g.EASIdentifierAttestation{constructor(){super(void 0,O)}};yield p.EasAttestedObject.fromBytes((0,P.base64ToUint8array)(m),Z,Q).checkValidity(L)}})()}}},76062:(q,k,x)=>{"use strict";k._F=void 0;var I=x(94250);Object.defineProperty(k,"_F",{enumerable:!0,get:function(){return I.Authenticator}});x(60786),x(77670)},14730:(q,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttestableObject=void 0,k.AttestableObject=class x{constructor(){}getDerEncoding(){return this.encoded}getCommitment(){return this.commitment}}},93211:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Attestation=void 0;const B=x(12217),I=x(7098),M=x(64908),P=x(70854),o=x(31111),w=x(63338),S=x(83116);class D{constructor(){this.version=18,this.blockchainFriendly=!0}parseNames(g){let p={};Object.keys(o.X500NamesLabels).forEach(y=>{p[o.X500NamesLabels[y].toLowerCase()]=y});let b=[];return g.forEach(y=>{let m=p[y.type.toString().toLowerCase()];if(!m)throw new Error(`X500 with name ${y.type.toString()} not implemented yet.`);b.push(`${m}="${y.value}"`)}),b.join(",")}fromBytes(g){const p=this;let b=I.AsnParser.parse(g,M.SignedInfo);if(p.signedInfo=g,p.version=b.version.version,p.serialNumber=b.serialNumber,p.signingAlgorithm=b.signature.algorithm.toString(),b.validity){if(p.notValidBefore=b.validity.notBefore.generalizedTime?.getTime(),p.notValidAfter=b.validity.notAfter.generalizedTime?.getTime(),b.validity.notAfterInt&&Number(b.validity.notAfterInt)!=Math.floor(p.notValidAfter/1e3)||b.validity.notBeforeInt&&Number(b.validity.notBeforeInt)!=Math.floor(p.notValidBefore/1e3))throw new Error("Date doesnt fit");this.blockchainFriendly=!(typeof b.validity.notBeforeInt>"u"||typeof b.validity.notAfterInt>"u")}let y=b.subject.rdnSequence;p.subject="",y&&y[0]&&y[0].length&&(p.subject=this.parseNames(y[0])),p.subjectKey=P.KeyPair.publicFromSubjectPublicKeyInfo(b.subjectPublicKeyInfo);let m=b.issuer.rdnSequence;if(p.issuer="",m?.length&&(p.issuer=this.parseNames(m[0])),b.contract&&(p.smartcontracts=b.contract),b.attestsTo&&b.attestsTo.extensions)p.extensions=b.attestsTo.extensions,p.commitment=new Uint8Array(p.extensions.extension.extnValue);else if(b.attestsTo&&b.attestsTo.dataObject)throw new Error("Implement parse dataObject")}isValidX509(){return 0!=this.version&&1!=this.version&&2!=this.version?((0,B.logger)(S.DEBUGLEVEL.LOW,"Incorrect version number"),!1):this.issuer?null==this.notValidBefore||null==this.notValidAfter?((0,B.logger)(S.DEBUGLEVEL.LOW,"Validity period not set"),!1):null==this.subject?((0,B.logger)(S.DEBUGLEVEL.LOW,"Subject info not set"),!1):this.subjectKey?null!=this.smartcontracts?((0,B.logger)(S.DEBUGLEVEL.LOW,"Smart contract info set"),!1):null!=this.dataObject?((0,B.logger)(S.DEBUGLEVEL.LOW,"Data object set"),!1):null!=this.version&&null!=this.serialNumber&&null!=this.signingAlgorithm||((0,B.logger)(S.DEBUGLEVEL.LOW,"Version, serial number, subject or algorithm missing"),!1):((0,B.logger)(S.DEBUGLEVEL.LOW,"No subject public key info set"),!1):((0,B.logger)(S.DEBUGLEVEL.LOW,"Issuer info not set"),!1)}getDerEncoding(){if(this.signedInfo||(this.signedInfo=this.getPrehash()),!this.signedInfo)throw new Error("Empty Attestaion Der Encoding");return(0,B.uint8tohex)(new Uint8Array(this.signedInfo))}getCommitment(){return this.commitment}getNotValidBefore(){return this.notValidBefore}setNotValidBefore(g){this.notValidBefore=g}getNotValidAfter(){return this.notValidAfter}setNotValidAfter(g){this.notValidAfter=g}getSubjectPublicKeyInfo(){return this.subjectKey}checkValidity(){if(null==this.version)return(0,B.logger)(S.DEBUGLEVEL.LOW,"Attest version missed"),!1;if(null==this.serialNumber)return(0,B.logger)(S.DEBUGLEVEL.LOW,"Attest serial number missed"),!1;if(null==this.subject)return(0,B.logger)(S.DEBUGLEVEL.LOW,"Attest subject missed"),!1;if(null==this.signingAlgorithm)return(0,B.logger)(S.DEBUGLEVEL.LOW,"Attest signing algorithm missed"),!1;let g=this.getNotValidBefore(),p=this.getNotValidAfter(),b=new w.Timestamp(g);return b.setValidity(p-g),!(!b.validateAgainstExpiration(p)||null!=this.extensions&&null!=this.dataObject&&((0,B.logger)(S.DEBUGLEVEL.LOW,"Both Extensions and dataObject not allowed"),1))}getExtensions(){return this.extensions}setVersion(g){this.version=g}getVersion(){return this.version}setSubject(g){this.subject=g}getSubject(){return this.subject}setSigningAlgorithm(g){this.signingAlgorithm=g}getPrehash(){if(!this.checkValidity())throw new Error("Attestation invalid");let g=o.Asn1Der.encode("TAG",o.Asn1Der.encode("INTEGER",this.version),0)+o.Asn1Der.encode("INTEGER",this.serialNumber)+o.Asn1Der.encodeObjectId(this.signingAlgorithm);if(g+=this.issuer?o.Asn1Der.encodeName(this.issuer):o.Asn1Der.encode("NULL_VALUE",""),null!=this.notValidAfter&&null!=this.notValidBefore){let b=o.Asn1Der.encode("GENERALIZED_TIME",this.notValidBefore)+(this.blockchainFriendly?o.Asn1Der.encode("INTEGER",Math.floor(this.notValidBefore/1e3)):"")+o.Asn1Der.encode("GENERALIZED_TIME",this.notValidAfter)+(this.blockchainFriendly?o.Asn1Der.encode("INTEGER",Math.floor(this.notValidAfter/1e3)):"");g+=o.Asn1Der.encode("SEQUENCE_30",b)}else g+=o.Asn1Der.encode("NULL_VALUE","");g+=this.subject?o.Asn1Der.encodeName(this.subject):o.Asn1Der.encode("NULL_VALUE",""),g+=this.subjectKey?this.subjectKey.getAsnDerPublic():o.Asn1Der.encode("NULL_VALUE",""),null!=this.smartcontracts&&(g+=this.smartcontracts);let p="";return this.commitment&&this.commitment.length&&(p=o.Asn1Der.encode("OBJECT_ID",D.OID_OCTETSTRING)+o.Asn1Der.encode("BOOLEAN",1)+o.Asn1Der.encode("OCTET_STRING",(0,B.uint8tohex)(this.commitment))),p&&(g+=o.Asn1Der.encode("TAG",o.Asn1Der.encode("SEQUENCE_30",o.Asn1Der.encode("SEQUENCE_30",p)),3)),null!=this.dataObject&&(g+=o.Asn1Der.encode("TAG",o.Asn1Der.encode("SEQUENCE_30",o.Asn1Der.encode("SEQUENCE_30",this.dataObject)),4)),(0,B.hexStringToUint8)(o.Asn1Der.encode("SEQUENCE_30",g))}getSigningAlgorithm(){return this.signingAlgorithm}}k.Attestation=D,D.OID_OCTETSTRING="1.3.6.1.4.1.1466.115.121.1.40"},77670:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttestationCrypto=k.Pedestren_H=k.Pedestren_G=void 0;const B=x(10627),I=x(51033),M=x(12217),P=x(66791),o=x(83116),w=x(19726);let S=x(81403);k.Pedestren_G=new I.Point(21282764439311451829394129092047993080259557426320933158672611067687630484067n,3813889942691430704369624600187664845713336792511424430006907067499686345744n,I.CURVE_BN256),k.Pedestren_H=new I.Point(10844896013696871595893151490650636250667003995871483372134187278207473369077n,9393217696329481319187854592386054938412168121447413803797200472841959383227n,I.CURVE_BN256);class D{constructor(){if(this.curveOrderBitLength=254n,this.rand=this.makeSecret(),!this.verifyCurveOrder())throw new Error("Static values do not work with current implementation")}verifyCurveOrder(){D.validatePointToCurve(D.G,D.curve),D.validatePointToCurve(D.H,D.curve);let g=BigInt(D.curveOrder.toString(2).length);return!(D.curveOrder<1n<>g>0n)||((0,M.logger)(o.DEBUGLEVEL.LOW,"Curve order is not 254 bits which is required by the current implementation"),!1)}getType(g){switch(g.toLowerCase()){case"mail":return B.ATTESTATION_TYPE.mail;case"phone":return B.ATTESTATION_TYPE.phone;case"inetpersona":return B.ATTESTATION_TYPE.InetPersona;default:throw new Error("Wrong type of identifier")}}makeCommitment(g,p,b){let y=this.mapToCurveMultiplier(p,g);return k.Pedestren_G.multiplyDA(y).add(k.Pedestren_H.multiplyDA(b)).getEncoded(!1)}makeCommitmentFromHiding(g,p,b){if(!D.validatePointToCurve(b,D.curve))throw new Error("Point invalid");let y=this.mapToCurveMultiplier(p,g);return k.Pedestren_G.multiplyDA(y).add(b).getEncoded(!1)}injectIdentifierType(g,p){return(0,M.uint8merge)([Uint8Array.from([0,0,0,g]),p])}mapToInteger(g){return BigInt("0x"+S.keccak256(g))>>256n-this.curveOrderBitLength}mapToCurveMultiplier(g,p){let b=Uint8Array.from((0,M.stringToArray)(p.trim().toLowerCase())),y=this.injectIdentifierType(g,b),m=(0,M.uint8ToBn)(y);do{m=this.mapToInteger((0,M.bnToUint8)(m))}while(m>=I.CURVE_BN256.n);return m}computePoint_bn256(g){let p=I.CURVE_BN256.P;g=(0,M.mod)(g,p);let m,E,C,b=0n,y=0n,L=p+1n>>2n,R=p-1n>>1n;do{do{g=(0,M.mod)(g+1n),y=(0,M.mod)((0,M.BnPowMod)(g,3n,p)+I.CURVE_BN256.A*g+I.CURVE_BN256.B),C=(0,M.BnPowMod)(y,R,p)}while(1n!==C);b=(0,M.BnPowMod)(y,L,p),m=new I.Point(g,b,I.CURVE_BN256),m.x>p>>1n&&(m=new I.Point(g,p-b,I.CURVE_BN256)),E=m.multiplyDA(I.CURVE_BN256.n-1n),E.y>p>>1n&&(E=new I.Point(E.x,p-E.y,I.CURVE_BN256))}while(!m.equals(E)||m.isInfinity());return m}makeSecret(g=48){return(0,M.mod)(BigInt(D.generateRandomHexString(g)),I.CURVE_BN256.n)}static generateRandomHexString(g){var p=new Uint8Array(g);typeof window<"u"&&window.crypto?window.crypto.getRandomValues(p):p=new Uint8Array(w.randomBytes(g));let b="0x";for(var y=0;y=I.CURVE_BN256.n);return L=(0,M.mod)(E+C*p,I.CURVE_BN256.n),P.FullProofOfExponent.fromData(g,m,L,y)}computeChallenge(g,p,b){let y=p.concat(g),m=this.makeArray(y),E=(0,M.uint8merge)([m,b]);return this.mapToInteger(E)}verifyFullProof(g){if(!g.validateParameters())return(0,M.logger)(2,"The parameters in the ZK proof are not correct"),!1;let p=this.computeChallenge(g.getPoint(),[k.Pedestren_H,g.getRiddle()],g.getNonce());return this.verifyPok(g,p)}verifyEqualityProof(g,p,b){if(!b.validateParameters())return(0,M.logger)(2,"The parameters in the ZK proof are not correct"),!1;let y=I.Point.decodeFromUint8(g,I.CURVE_BN256);D.validatePointToCurve(y,I.CURVE_BN256);let m=I.Point.decodeFromUint8(p,I.CURVE_BN256);D.validatePointToCurve(m,I.CURVE_BN256);let E=y.subtract(m),C=this.computeChallenge(b.getPoint(),[k.Pedestren_H,y,m],b.getNonce());return this.verifyPok(P.FullProofOfExponent.fromData(E,b.getPoint(),b.getChallengeResponse(),b.getNonce()),C)}verifyPok(g,p){if(p>=I.CURVE_BN256.n||p<=0n)return(0,M.logger)(2,"Challenge is not of the correct size"),!1;let b=k.Pedestren_H.multiplyDA(g.getChallengeResponse()),y=g.getRiddle().multiplyDA(p).add(g.getPoint());return b.equals(y)}makeArray(g){let p=new Uint8Array(0);return g.forEach(b=>{p=new Uint8Array([...p,...b.getEncoded(!1)])}),p}static hashWithKeccak(g){return S.keccak256(g)}static validatePointToCurve(g,p){try{if(g.isInfinity())throw new Error("Point is at infinity");if(!g.multiplyDA(I.CURVE_BN256.n).isInfinity())throw console.log("Point does not have correct order"),new Error("Point does not have correct order")}catch{return!1}return!0}}k.AttestationCrypto=D,D.OID_SIGNATURE_ALG="1.2.840.10045.2.1",D.BYTES_IN_DIGEST=32,D.fieldSize=I.CURVE_BN256.P,D.curveOrder=I.CURVE_BN256.n,D.cofactor=1n,D.curve=I.CURVE_BN256,D.G=k.Pedestren_G,D.H=k.Pedestren_H},87322:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttestationRequest=void 0;const B=x(51033),I=x(31111),M=x(12217),P=x(77670),o=x(66791),w=x(7098),S=x(44328),D=x(83116);k.AttestationRequest=class A{constructor(){}static fromData(p,b){let y=new this;if(y.type=p,y.pok=b,!y.verify())throw new Error("The proof is not valid");return y}getDerEncoding(){let p=I.Asn1Der.encode("INTEGER",this.type)+this.pok.getDerEncoding();return I.Asn1Der.encode("SEQUENCE_30",p)}static fromBytes(p){let y,b=new this;try{y=w.AsnParser.parse(p,S.Identifier),b.type=y.type}catch{throw new Error("Cant parse AttestationRequest Identifier")}try{let m=new Uint8Array(y.proof.riddle),E=new Uint8Array(y.proof.challengePoint),C=new Uint8Array(y.proof.responseValue),L=new Uint8Array(y.proof.nonce),R=B.Point.decodeFromHex((0,M.uint8tohex)(m),B.CURVE_BN256),U=(0,M.uint8ToBn)(E),O=B.Point.decodeFromHex((0,M.uint8tohex)(C),B.CURVE_BN256);b.pok=o.FullProofOfExponent.fromData(R,O,U,L)}catch{throw new Error("Cant create FullProofOfExponent")}if(!b.verify())throw new Error("Could not verify the proof");return(0,M.logger)(D.DEBUGLEVEL.HIGH,"proof OK"),b}verify(){return!!(new P.AttestationCrypto).verifyFullProof(this.pok)&&((0,M.logger)(D.DEBUGLEVEL.HIGH,"VerifyAttestationRequestProof OK"),!0)}getPok(){return this.pok}getType(){return this.type}getAsn(){const p=this.getPok().getAsnType(),b=new S.Identifier;return b.type=this.getType(),b.proof=p,b}getAsnEncoded(){return w.AsnSerializer.serialize(this.getAsn())}}},82418:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttestationRequestWithUsage=void 0;const B=x(70854),I=x(66791),M=x(87326),P=x(7098),o=x(12217),w=x(51033),S=x(77670),D=x(31111),A=x(83116);k.AttestationRequestWithUsage=class g{constructor(){}static fromData(b,y,m){let E=new this;if(E.type=b,E.pok=y,E.sessionPublicKey=m,!E.verify())throw new Error("Could not verify the proof");return E}static fromBytes(b){let m,y=new this;try{m=P.AsnParser.parse(b,M.Identifier),y.type=m.type,y.sessionPublicKey=B.KeyPair.publicFromSubjectPublicKeyValue(m.sessionKey)}catch{throw new Error("Cant parse AttestationRequest Identifier")}try{let E=new Uint8Array(m.proof.riddle),C=new Uint8Array(m.proof.challengePoint),L=new Uint8Array(m.proof.responseValue),R=new Uint8Array(m.proof.nonce),U=w.Point.decodeFromHex((0,o.uint8tohex)(E),w.CURVE_BN256),O=(0,o.uint8ToBn)(C),j=w.Point.decodeFromHex((0,o.uint8tohex)(L),w.CURVE_BN256);y.pok=I.FullProofOfExponent.fromData(U,j,O,R)}catch{throw new Error("Cant create FullProofOfExponent")}if(!y.verify())throw new Error("Could not verify the proof");return(0,o.logger)(A.DEBUGLEVEL.HIGH,"proof OK"),y}verify(){return!!(new S.AttestationCrypto).verifyFullProof(this.pok)}getDerEncoding(){let b=D.Asn1Der.encode("INTEGER",this.type)+this.pok.getDerEncoding()+this.sessionPublicKey.getAsnDerPublic();return D.Asn1Der.encode("SEQUENCE_30",b)}getPok(){return this.pok}getType(){return this.type}getSessionPublicKey(){return this.sessionPublicKey}}},62517:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.AttestedObject=void 0;const B=x(77670),I=x(28959),M=x(12217),P=x(31111),o=x(7098),w=x(13036),S=x(340),D=x(83116);class A{constructor(){}create(p,b,y,m){this.attestableObject=p,this.att=b,this.attestationSecret=y,this.objectSecret=m,this.crypto=new B.AttestationCrypto,this.pok=this.makeProof(y,m,this.crypto),this.derEncodedProof=this.pok.getDerEncoding(),this.fillPresignData()}setWebDomain(p){this.webDomain=p}fillPresignData(){this.preSignEncoded=this.attestableObject.getDerEncoding()+this.att.getDerEncoding()+this.pok.getDerEncoding(),this.encoding=P.Asn1Der.encode("SEQUENCE_30",this.preSignEncoded)}fromDecodedData(p,b,y){this.attestableObject=p,this.att=b,this.pok=y,this.fillPresignData(),this.userKeyPair=this.att.getUnsignedAttestation().getSubjectPublicKeyInfo(),this.constructorCheck()}verify(){return this.attestableObject.verify()?this.att.verify()?!!this.crypto.verifyEqualityProof(this.att.getUnsignedAttestation().getCommitment(),this.attestableObject.getCommitment(),this.pok)||((0,M.logger)(D.DEBUGLEVEL.LOW,"Could not verify the consistency between the commitment in the attestation and the attested object"),!1):((0,M.logger)(D.DEBUGLEVEL.LOW,"Could not verify attestation"),!1):((0,M.logger)(D.DEBUGLEVEL.LOW,"Could not verify attestable object"),!1)}static fromBytes(p,b,y,m,E){let C=o.AsnParser.parse(p,b),L=new this;L.attestableObject=new m,L.attestableObject.fromBytes(C.signedToken,E),L.att=I.SignedIdentifierAttestation.fromBytes(new Uint8Array(C.attestation),y);let R=new w.UsageProofOfExponent;return R.fromBytes(new Uint8Array(C.proof)),L.pok=R,L.userKeyPair=L.att.getUnsignedAttestation().getSubjectPublicKeyInfo(),L.crypto=new B.AttestationCrypto,L.constructorCheck(),L}makeProof(p,b,y){let m=this.att.getUnsignedAttestation().getCommitment(),E=this.attestableObject.getCommitment(),C=y.computeEqualityProof((0,M.uint8tohex)(m),(0,M.uint8tohex)(E),p,b);if(!y.verifyEqualityProof(m,E,C))throw new Error("The redeem proof did not verify");return C}getAttestableObject(){return this.attestableObject}getAtt(){return this.att}getDerEncodeProof(){return this.derEncodedProof}getDerEncoding(){return this.encoding}constructorCheck(){if(!this.verify())throw new Error("The redeem request is not valid")}checkValidity(p=""){try{let b=this.att.getUnsignedAttestation().getDerEncoding();if(!S.IdentifierAttestation.fromBytes(new Uint8Array((0,M.hexStringToArray)(b))).checkValidity())return(0,M.logger)(D.DEBUGLEVEL.LOW,"The attestation is not a valid standard attestation"),!1}catch{return(0,M.logger)(D.DEBUGLEVEL.LOW,"The attestation is invalid"),!1}try{if(!this.getAttestableObject().checkValidity())return(0,M.logger)(D.DEBUGLEVEL.LOW,"Cheque is not valid"),!1}catch{return(0,M.logger)(D.DEBUGLEVEL.LOW,"Cheque validation failed"),!1}if(!p)return!0;try{let b=this.getAtt().getUnsignedAttestation().getAddress();if((0,M.logger)(D.DEBUGLEVEL.HIGH,"attestationEthereumAddress: "+b),(0,M.logger)(D.DEBUGLEVEL.HIGH,"providedEthereumAddress: "+p),b.toLowerCase()!==p.toLowerCase())return(0,M.logger)(D.DEBUGLEVEL.LOW,"The attestation is not to the same Ethereum user who is sending this request"),!1}catch(b){return(0,M.logger)(D.DEBUGLEVEL.LOW,"Address validation failed"),(0,M.logger)(D.DEBUGLEVEL.MEDIUM,b),!1}return!0}}k.AttestedObject=A,A.Eip712UserData={payload:"",description:"",timestamp:0},A.Eip712UserDataTypes=[{name:"payload",type:"string"},{name:"description",type:"string"},{name:"timestamp",type:"uint256"}],A.Eip712UserDataPrimaryName="Authentication",A.Eip712UserDataDescription="Single-use authentication"},31111:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Asn1Der=k.X500NamesLabels=void 0;const B=x(12217),I=x(83116),P=(x(65901),{END_OF_CONTENT:0,BOOLEAN:1,INTEGER:2,BIT_STRING:3,OCTET_STRING:4,NULL_VALUE:5,OBJECT_ID:6,OBJECT_DESCRIPTOR:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED_PDV:11,UTF8STRING:12,RELATIVE_OID:13,SEQUENCE_10:16,SET_OF:17,NUMERABLE_STRING:18,PRINTABLE_STRING:19,T61STRING:20,VIDEO_TEX_STRING:21,IA5STRING:22,UTC_TIME:23,GENERALIZED_TIME:24,GRAPHIC_STRING:25,VISIBLE_STRING:26,GENERAL_STRING:27,UNIVERSAL_STRING:28,CHARACTER_STRING:29,BMP_STRING:30,SEQUENCE_30:48,SET:49}),o={0:"END_OF_CONTENT",1:"BOOLEAN",2:"INTEGER",3:"BIT_STRING",4:"OCTET_STRING",5:"NULL_VALUE",6:"OBJECT_ID",7:"OBJECT_DESCRIPTOR",8:"EXTERNAL",9:"REAL",10:"ENUMERATED",11:"EMBEDDED_PDV",12:"UTF8STRING",13:"RELATIVE_OID",16:"SEQUENCE_10",19:"PRINTABLE_STRING",22:"IA5STRING",24:"GENERALIZED_TIME",26:"VISIBLE_STRING",48:"SEQUENCE_30",49:"SET"};k.X500NamesLabels={CN:"2.5.4.3",C:"2.5.4.6",O:"2.5.4.10",OU:"2.5.4.11",L:"2.5.4.7",labeledURI:"1.3.6.1.4.1.250.1.57"};class w{static encodeAsInteger(D){return this.encode("INTEGER",D)}static encodeObjectId(D){return w.encode("SEQUENCE_30",w.encode("OBJECT_ID",D))}static parseX500Names(D){let A=D.matchAll(/(\w+)=("[^"]+"|[\w\.]+)/g),g="";if(!A)throw new Error("wrong Name format");let p=[];for(const b of A){let y=b[1],m=b[2];if('"'==m.substr(0,1)&&'"'==m.substr(-1)&&(m=m.slice(1,m.length-1)),g=k.X500NamesLabels[y],!g)throw new Error('Type "'+y+'" not implemented yet');p.push({type:y,value:m})}return p}static encodeName(D){let A="";return w.parseX500Names(D).forEach(p=>{let b=k.X500NamesLabels[p.type];if(!b)throw new Error(`X500 Name Object ID not implemented.(${p.value})`);let y=w.encode("OBJECT_ID",b)+w.encode("UTF8STRING",p.value);A+=w.encode("SEQUENCE_30",y)}),w.encode("SEQUENCE_30",w.encode("SET",A))}static encode(D,A,g=0){if(typeof A>"u")throw new Error("Missing value for Der encoding");let p=P[D],b="";switch(D){case"OBJECT_ID":if("string"!=typeof A)throw new Error("OBJECT_ID value must be a string");let C=A.split("."),L=C.shift(),R=C.shift();if(!L||!R)throw new Error("OBJECT_ID parse error.");C.unshift((40*parseInt(L)+parseInt(R)).toString()),C.forEach(U=>{let O=parseInt(U),j="",K=!0;do{let Z=127&O;O>>=7,Z+=K?0:128,j=Z.toString(16).padStart(2,"0")+j,K=!1}while(O);b+=j});break;case"NULL_VALUE":b="";break;case"GENERALIZED_TIME":b=(0,B.stringToHex)((0,B.formatGeneralizedDateTime)(A));break;case"VISIBLE_STRING":case"UTF8STRING":b=(0,B.stringToHex)(A);break;case"INTEGER":b=BigInt(A).toString(16),b=(b.length%2?"0":"")+b,parseInt("0x"+b.slice(0,1),16)>7&&(b="00"+b);break;case"TAG":if(g>15)throw new Error("DER TAG more than 15 is not implemented");p=parseInt("0xA"+g);case"SEQUENCE_30":case"SET":case"OCTET_STRING":if("string"==typeof A)b=A;else{if(A.constructor!==Uint8Array)throw new Error("Wrong data type for OCTET_STRING");b=(0,B.uint8tohex)(A)}break;case"BIT_STRING":b="00"+A;break;case"BOOLEAN":b=parseInt(A).toString().padStart(2,"0");break;default:throw new Error("Sorry, "+D+" not implemented.")}let y="",m=Math.ceil(b.length/2),E=m.toString(16);return m||(E="00"),E=(E.length%2?"0":"")+E,y=m<128?E:(128+Math.round(E.length/2)).toString(16)+E,b=(b.length%2?"0":"")+b,p.toString(16).padStart(2,"0")+y+b}decode(D){let A=Array.from(D);return this.read(A)}lenEncoded(D){if(!D.length)throw new Error("Empty DER length");let A=D.shift();if(A<128)return A;if(A>128){let g=0;for(let p=0;p{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Eip712AttestationRequest=void 0;const I=x(87322),M=x(70854),P=x(54524),o=x(12217),w=x(12764),S=x(22312),D=x(63338),A=x(83116);k.Eip712AttestationRequest=class g extends S.Eip712Token{constructor(b,y=D.Timestamp.DEFAULT_TIME_LIMIT_MS){super(),this.Eip712UserDataTypes=[{name:"payload",type:"string"},{name:"description",type:"string"},{name:"timestamp",type:"string"},{name:"identifier",type:"string"}],this.Eip712UserDataPrimaryName="AttestationRequest",this.Eip712UserDataDescription="Linking Ethereum address to phone or email",b&&(this.userKey=b),this.acceptableTimeLimit=y,this.usageValue=this.Eip712UserDataDescription}setUsageValue(b){this.usageValue=b}addData(b,y=D.Timestamp.DEFAULT_TIME_LIMIT_MS,m,E){var C=this;return B(function*(){C.setDomain(b),C.attestationRequest=E,C.acceptableTimeLimit=y,C.jsonEncoding=yield C.makeToken(m);try{C.fillJsonData(C.jsonEncoding)}catch(L){return(0,o.logger)(A.DEBUGLEVEL.LOW,L),!1}})()}fillJsonData(b){if(!b)throw new Error("Empty json");this.jsonEncoding=b;let y=JSON.parse(b),m=y.signatureInHex,E=JSON.parse(y.jsonSigned);this.eip712DomainData=E.domain,this.data=E.message;try{let C=P.SignatureUtility.recoverPublicKeyFromTypedMessageSignature(E,m);this.requestorKeys=M.KeyPair.fromPublicHex(C.substr(2)),(0,o.logger)(A.DEBUGLEVEL.HIGH,"restored address: "+this.requestorKeys.getAddress())}catch(C){let L="Recover Address failed with error:"+C;throw(0,o.logger)(A.DEBUGLEVEL.LOW,L,C),new Error(L)}this.attestationRequest||(this.attestationRequest=I.AttestationRequest.fromBytes((0,o.base64ToUint8array)(this.data.payload))),this.constructorCheck()}constructorCheck(){if(!this.verify())throw new Error("Could not verify Eip712 AttestationRequest");(0,o.logger)(A.DEBUGLEVEL.HIGH,"Eip712 Attestaion Request verify OK")}makeToken(b){var y=this;return B(function*(){let m;m=y.userKey?y.userKey.getAddress():yield P.SignatureUtility.connectMetamaskAndGetAddress();let E=w.Nonce.getTimestamp(y.attestationRequest.getPok().getNonce()),C=new D.Timestamp(E).getTimeAsString(),L={payload:(0,o.hexStringToBase64Url)(y.attestationRequest.getDerEncoding()),description:y.usageValue,timestamp:C,identifier:b};return yield P.SignatureUtility.signEIP712WithBrowserWallet(y.domain,L,y.Eip712UserDataTypes,y.Eip712UserDataPrimaryName,y.userKey)})()}setAcceptableTimeLimit(b){this.acceptableTimeLimit=b}getJsonEncoding(){return this.jsonEncoding}verify(){return!!this.attestationRequest.verify()||((0,o.logger)(A.DEBUGLEVEL.MEDIUM,"Could not verify proof"),!1)}checkValidity(){if(!this.validateDomain(this.eip712DomainData))return(0,o.logger)(A.DEBUGLEVEL.MEDIUM,"Domain invalid"),!1;if(this.data.description!==this.usageValue)return(0,o.logger)(A.DEBUGLEVEL.MEDIUM,"Description is not correct. :"+this.data.description+" !== "+this.usageValue),!1;let b=new D.Timestamp(this.data.timestamp);return b.setValidity(this.acceptableTimeLimit),b.validateTimestamp()?!!(new w.Nonce).validateNonce(this.getPok().getNonce(),this.requestorKeys.getAddress(),this.domain,D.Timestamp.stringTimestampToLong(this.data.timestamp)-this.acceptableTimeLimit,D.Timestamp.stringTimestampToLong(this.data.timestamp)+this.acceptableTimeLimit)||((0,o.logger)(A.DEBUGLEVEL.LOW,"nonce is not correct"),!1):((0,o.logger)(A.DEBUGLEVEL.LOW,`timestamp is not correct. timestamp = ${this.data.timestamp}, acceptableTimeLimit = ${this.acceptableTimeLimit}`),!1)}getIdentifier(){return this.data.identifier}getType(){return this.attestationRequest.getType()}getPok(){return this.attestationRequest.getPok()}getUserPublicKey(){return this.requestorKeys}}},46034:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Eip712AttestationRequestWithUsage=void 0;const I=x(82418),M=x(70854),P=x(12217),o=x(54524),w=x(12764),S=x(22312),D=x(63338),A=x(83116);k.Eip712AttestationRequestWithUsage=class g extends S.Eip712Token{constructor(b,y=D.Timestamp.DEFAULT_TIME_LIMIT_MS,m=D.Timestamp.DEFAULT_TOKEN_TIME_LIMIT){super(),this.Eip712UserDataTypes=[{name:"payload",type:"string"},{name:"description",type:"string"},{name:"identifier",type:"string"},{name:"timestamp",type:"string"},{name:"expirationTime",type:"string"}],this.Eip712UserDataPrimaryName="AttestationRequestWUsage",this.Eip712UserDataDescription='Prove that the "identifier" is the identifier hidden in attestation contained in"payload" and use this to authorize usage of local, temporary keys.',b&&(this.userKey=b),this.acceptableTimeLimit=y,this.maxTokenValidityInMs=m}fromData(b,y=D.Timestamp.DEFAULT_TIME_LIMIT_MS,m=D.Timestamp.DEFAULT_TOKEN_TIME_LIMIT,E,C,L){var R=this;return B(function*(){R.setDomain(b),L&&(R.userKey=L);try{R.acceptableTimeLimit=y,R.maxTokenValidityInMs=m,R.attestationRequestWithUsage=C,R.jsonEncoding=yield R.makeToken(E,C)}catch(U){throw(0,P.logger)(A.DEBUGLEVEL.LOW,U),new Error("Could not encode object")}try{R.fillJsonData(R.jsonEncoding)}catch{throw new Error("Could not decode object")}})()}Eip712AttestationRequestWithUsage(b,y,m,E){try{this.acceptableTimeLimit=y,this.maxTokenValidityInMs=m,this.jsonEncoding=E,this.fillJsonData(this.jsonEncoding)}catch(C){throw(0,P.logger)(A.DEBUGLEVEL.LOW,C),new Error("Could not decode object")}}fillJsonData(b){if(!b)throw new Error("Empty json");this.jsonEncoding=b;let y=JSON.parse(b),m=y.signatureInHex,E=JSON.parse(y.jsonSigned);this.eip712DomainData=E.domain,this.data=E.message;try{let C=o.SignatureUtility.recoverPublicKeyFromTypedMessageSignature(E,m);this.userPublicKey=M.KeyPair.fromPublicHex(C.substr(2)),(0,P.logger)(A.DEBUGLEVEL.HIGH,"Eip712 withUsage restored address: "+this.userPublicKey.getAddress())}catch(C){let L="Recover Address failed with error:"+C;throw(0,P.logger)(A.DEBUGLEVEL.LOW,L,C),new Error(L)}this.attestationRequestWithUsage||(this.attestationRequestWithUsage=I.AttestationRequestWithUsage.fromBytes((0,P.base64ToUint8array)(this.data.payload))),this.constructorCheck()}constructorCheck(){if(!this.verify())throw new Error("Could not verify Eip712 use attestation")}makeToken(b,y){var m=this;return B(function*(){m.userKey||(yield o.SignatureUtility.connectMetamaskAndGetAddress());let E=(new D.Timestamp).getTimeAsString(),C=new D.Timestamp(Date.now()+m.maxTokenValidityInMs).getTimeAsString(),L={payload:(0,P.hexStringToBase64Url)(y.getDerEncoding()),description:m.Eip712UserDataDescription,timestamp:E,identifier:b,expirationTime:C};return yield o.SignatureUtility.signEIP712WithBrowserWallet(m.domain,L,m.Eip712UserDataTypes,m.Eip712UserDataPrimaryName,m.userKey)})()}getIdentifier(){return this.data.identifier}getUserPublicKey(){return this.userPublicKey}getPok(){return this.attestationRequestWithUsage.getPok()}getType(){return this.attestationRequestWithUsage.getType()}getSessionPublicKey(){return this.attestationRequestWithUsage.getSessionPublicKey()}getJsonEncoding(){return this.jsonEncoding}checkValidity(){return!!this.testNonceAndDescription(this.acceptableTimeLimit)}checkTokenValidity(){let b=new D.Timestamp(this.data.timestamp);return b.setValidity(this.maxTokenValidityInMs),b.validateAgainstExpiration(D.Timestamp.stringTimestampToLong(this.data.expirationTime))?!!this.testNonceAndDescription(this.maxTokenValidityInMs):((0,P.logger)(A.DEBUGLEVEL.LOW,"time.validateAgainstExpiration filed"),!1)}testNonceAndDescription(b){if(!b)throw new Error("timeLimit required");let y=D.Timestamp.stringTimestampToLong(this.data.timestamp)-b,m=D.Timestamp.stringTimestampToLong(this.data.timestamp)+b;return!!(new w.Nonce).validateNonce(this.attestationRequestWithUsage.getPok().getNonce(),this.userPublicKey.getAddress(),this.domain,y,m)&&(this.validateDomain(this.eip712DomainData)?this.data.description===this.Eip712UserDataDescription:((0,P.logger)(A.DEBUGLEVEL.MEDIUM,"Domain invalid"),!1))}verify(){return!!this.attestationRequestWithUsage.verify()}}},62527:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Eip712AttestationUsage=void 0;const I=x(70854),M=x(54524),P=x(22312),o=x(58864),w=x(12217),S=x(77670),D=x(51033),A=x(12764),g=x(63338),p=x(83116);k.Eip712AttestationUsage=class b extends P.Eip712Token{constructor(m,E=g.Timestamp.DEFAULT_TOKEN_TIME_LIMIT){super(),this.PLACEHOLDER_CHAIN_ID=0,this.Eip712PrimaryName="AttestationUsage",this.Eip712Description='Prove that the "identifier" is the identifier hidden in attestation contained in"payload".',this.Eip712UserTypes=[{name:"description",type:"string"},{name:"identifier",type:"string"},{name:"payload",type:"string"},{name:"timestamp",type:"string"},{name:"expirationTime",type:"string"}],this.maxTokenValidityInMs=E,m&&(this.userKey=m)}addData(m,E,C){var L=this;return B(function*(){L.setDomain(m),L.useAttestation=C;try{L.jsonEncoding=yield L.makeToken(E,C)}catch(R){throw(0,w.logger)(p.DEBUGLEVEL.LOW,R),new Error("Could not encode object. "+R)}try{L.fillJsonData(L.jsonEncoding)}catch(R){return(0,w.logger)(p.DEBUGLEVEL.LOW,R),!1}L.constructorCheck()})()}fillJsonData(m,E){if(!m)throw new Error("Empty json");E&&(this.attestorKey=E),this.jsonEncoding=m;let C=JSON.parse(m),L=C.signatureInHex,R=JSON.parse(C.jsonSigned);this.eip712DomainData=R.domain,this.data=R.message;try{let U=M.SignatureUtility.recoverPublicKeyFromTypedMessageSignature(R,L);this.requestorKeys=I.KeyPair.fromPublicHex(U.substr(2)),(0,w.logger)(p.DEBUGLEVEL.HIGH,"restored address: "+this.requestorKeys.getAddress())}catch(U){let O="Recover Address failed with error:"+U;throw(0,w.logger)(p.DEBUGLEVEL.LOW,O,U),new Error(O)}if(!this.useAttestation)try{(0,w.logger)(p.DEBUGLEVEL.VERBOSE,(0,w.uint8tohex)((0,w.base64ToUint8array)(this.data.payload))),this.useAttestation=o.UseAttestation.fromBytes((0,w.base64ToUint8array)(this.data.payload),this.attestorKey)}catch(U){let O="Failed to read UseAttestation. "+U;throw(0,w.logger)(p.DEBUGLEVEL.MEDIUM,O,U),new Error(O)}this.constructorCheck()}constructorCheck(){if(!this.verify())throw new Error("Could not verify Eip712 use attestation")}makeToken(m,E){var C=this;return B(function*(){C.userKey||(yield M.SignatureUtility.connectMetamaskAndGetAddress());let L={payload:(0,w.hexStringToBase64Url)(E.getDerEncoding()),description:C.Eip712Description,timestamp:(new g.Timestamp).getTimeAsString(),identifier:m,expirationTime:new g.Timestamp(Date.now()+C.maxTokenValidityInMs).getTimeAsString()};return yield M.SignatureUtility.signEIP712WithBrowserWallet(C.domain,L,C.Eip712UserTypes,C.Eip712PrimaryName,C.userKey)})()}proofLinking(){let E=(new S.AttestationCrypto).mapToCurveMultiplier(this.getType(),this.getIdentifier());return!!D.Point.decodeFromUint8(this.getAttestation().getUnsignedAttestation().getCommitment(),D.CURVE_BN256).subtract(S.Pedestren_G.multiplyDA(E)).equals(this.getPok().getRiddle())||((0,w.logger)(p.DEBUGLEVEL.LOW,"candidateRiddle.equals(this.getPok().getRiddle()) error"),!1)}getPok(){return this.useAttestation.getPok()}getType(){return this.useAttestation.type}getIdentifier(){return this.data.identifier}getAttestation(){return this.useAttestation.getAttestation()}getJsonEncoding(){return this.jsonEncoding}checkTokenValidity(){let m=g.Timestamp.stringTimestampToLong(this.data.expirationTime)-this.maxTokenValidityInMs-2*g.Timestamp.ALLOWED_ROUNDING,E=g.Timestamp.stringTimestampToLong(this.data.expirationTime);if(!this.useAttestation.checkValidity())return(0,w.logger)(p.DEBUGLEVEL.LOW,"useAttestation.checkValidity failed"),!1;if(!this.validateDomain(this.eip712DomainData))return(0,w.logger)(p.DEBUGLEVEL.MEDIUM,"Domain invalid"),!1;if(this.data.description!=this.Eip712Description)return(0,w.logger)(p.DEBUGLEVEL.LOW,`wrong description: "${this.data.description}", must be "${this.Eip712Description}"`),!1;let C=new g.Timestamp(this.data.timestamp);return C.setValidity(this.maxTokenValidityInMs),C.validateAgainstExpiration(g.Timestamp.stringTimestampToLong(this.data.expirationTime))?this.requestorKeys.getAddress().toLowerCase()!==this.useAttestation.getAttestation().getUnsignedAttestation().getAddress().toLowerCase()?((0,w.logger)(p.DEBUGLEVEL.LOW,"wrong address"),!1):(new A.Nonce).validateNonce(this.useAttestation.getPok().getNonce(),this.useAttestation.getAttestation().getUnsignedAttestation().getAddress(),this.domain,m,E)?!!this.proofLinking()||((0,w.logger)(p.DEBUGLEVEL.LOW,"wrong proofLinking"),!1):((0,w.logger)(p.DEBUGLEVEL.LOW,"wrong Nonce"),!1):((0,w.logger)(p.DEBUGLEVEL.LOW,"verify timestamp failed.\n"+this.data.timestamp+"\n"+this.maxTokenValidityInMs+"\n"+this.data.expirationTime+"\n"+g.Timestamp.stringTimestampToLong(this.data.expirationTime)+"\n"),!1)}verify(){return!!this.useAttestation.verify()}getSessionPublicKey(){return this.useAttestation.getSessionPublicKey()}}},22312:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Eip712Token=void 0;const B=x(81964);k.Eip712Token=class I extends B.Eip712Validator{}},81964:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Eip712Validator=void 0;const B=x(62517),I=x(756),M=x(25089),P=x(70854),o=x(94530),w=x(54524),S=x(12217),D=x(83116);class A{constructor(){this.XMLConfig=M.XMLconfigData}static stringIsAValidUrl(p){let b;try{b=new URL(p)}catch(y){return(0,S.logger)(D.DEBUGLEVEL.LOW,"cant construct url. Error:",y),!1}return"http:"===b.protocol||"https:"===b.protocol}setDomainAndTimout(p){if(!A.stringIsAValidUrl(p))throw new Error("wrong domain");this.domain=p}setDomain(p){if(!A.stringIsAValidUrl(p))throw new Error("wrong domain");this.domain=p}getDomain(){return this.domain}setSalt(p){this.salt=p}getSalt(){return this.salt}setPrimaryName(p){this.primaryName=p}getPrimaryName(){return this.primaryName}setChainId(p){if(p<1)throw new Error("ChainId should be a positive number");this.chainId=p}getChainId(){return this.chainId}validateDomain(p){return p?p.name&&p.name.toLowerCase()===this.domain.toLowerCase()?p.version&&p.version===w.SignatureUtility.Eip712Data.PROTOCOL_VERSION?this.chainId&&p.chainId!==this.chainId?((0,S.logger)(D.DEBUGLEVEL.LOW,"Chain ID is wrong"),!1):this.verifyingContract&&p.verifyingContract!==this.verifyingContract?((0,S.logger)(D.DEBUGLEVEL.LOW,"Verifying contract is wrong"),!1):!this.salt||p.salt===this.salt||((0,S.logger)(D.DEBUGLEVEL.LOW,"Salt is wrong"),!1):((0,S.logger)(D.DEBUGLEVEL.LOW,"Protocol version is wrong"),!1):((0,S.logger)(D.DEBUGLEVEL.LOW,"Domain name is not valid"),!1):((0,S.logger)(D.DEBUGLEVEL.LOW,"Input param domainToCheck required"),!1)}retrieveAttestedObject(p){let b=p.payload,y=P.KeyPair.publicFromBase64orPEM(M.XMLconfigData.base64attestorPubKey),m=M.XMLconfigData.base64senderPublicKeys;return B.AttestedObject.fromBytes((0,S.hexStringToUint8)(b),I.UseToken,y,o.Ticket,m)}verifySignature(p,b){let y=JSON.parse(p),m=y.signatureInHex,E=JSON.parse(y.jsonSigned),C=w.SignatureUtility.recoverPublicKeyFromTypedMessageSignature(E,m),L=P.KeyPair.fromPublicHex(C.substr(2));return b.toLowerCase()!==E.message.address.toLowerCase()?((0,S.logger)(D.DEBUGLEVEL.LOW,"message.address is not equal pkAddress"),!1):b.toLowerCase()===L.getAddress().toLowerCase()||((0,S.logger)(D.DEBUGLEVEL.LOW,"Recovered address is not equal pkAddress"),!1)}}k.Eip712Validator=A},66791:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.FullProofOfExponent=void 0;const B=x(51033),I=x(47888),M=x(7098),P=x(12217),o=x(31111),w=x(13036),S=x(77670);class D{constructor(){}static fromData(g,p,b,y=new Uint8Array([])){let m=new this;return m.riddle=g,m.tPoint=p,m.challengeResponse=b,m.nonce=y,m.encoding=m.makeEncoding(g,p,b,y),m}static fromBytes(g){let p=M.AsnParser.parse(g,I.Proof);return this.fromASNType(p)}static fromASNType(g){let p=new Uint8Array(g.riddle),b=B.Point.decodeFromUint8(p,B.CURVE_BN256),y=new Uint8Array(g.challengePoint),m=(0,P.uint8ToBn)(y),E=new Uint8Array(g.responseValue),C=B.Point.decodeFromUint8(E,B.CURVE_BN256),L=new Uint8Array(g.nonce);return this.fromData(b,C,m,L)}static fromBase64(g){return D.fromBytes((0,P.base64ToUint8array)(g))}makeEncoding(g,p,b,y=new Uint8Array([])){let m=o.Asn1Der.encode("OCTET_STRING",(0,P.uint8tohex)(g.getEncoded()))+o.Asn1Der.encode("OCTET_STRING",b.toString(16))+o.Asn1Der.encode("OCTET_STRING",(0,P.uint8tohex)(p.getEncoded()))+o.Asn1Der.encode("OCTET_STRING",(0,P.uint8tohex)(y));return o.Asn1Der.encode("SEQUENCE_30",m)}getRiddle(){return this.riddle}getPoint(){return this.tPoint}getChallengeResponse(){return this.challengeResponse}getNonce(){return this.nonce}getUsageProofOfExponent(){return w.UsageProofOfExponent.fromData(this.tPoint,this.challengeResponse,this.nonce)}getDerEncoding(){return this.encoding}getAsnType(){const g=new I.Proof;g.nonce=this.getNonce();let p=(0,P.bnToUint8)(this.getChallengeResponse());if(p.length<32){let b=p;p=new Uint8Array(32),p.set(b,32-b.length)}return g.challengePoint=p,g.riddle=this.getRiddle().getEncoded(),g.responseValue=this.getPoint().getEncoded(),g}validateParameters(){try{if(!S.AttestationCrypto.validatePointToCurve(this.riddle,S.AttestationCrypto.curve)||!S.AttestationCrypto.validatePointToCurve(this.tPoint,S.AttestationCrypto.curve))throw new Error("Point not in the curve");return!(this.challengeResponse<=0n||this.challengeResponse>=S.AttestationCrypto.curveOrder||this.riddle.equals(S.AttestationCrypto.G)||this.riddle.equals(S.AttestationCrypto.H)||this.tPoint.equals(S.AttestationCrypto.G)||this.tPoint.equals(S.AttestationCrypto.H))}catch{return!1}}}k.FullProofOfExponent=D},340:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.IdentifierAttestation=void 0;const B=x(77670),I=x(93211),M=x(12217),P=x(83116),o=x(31111);class w extends I.Attestation{constructor(){super()}fromCommitment(D,A){this.subjectKey=A,this.setVersion(w.HIDDEN_IDENTIFIER_VERSION),this.setSubject("CN="),this.setSigningAlgorithm(w.DEFAULT_SIGNING_ALGORITHM),this.setSubjectPublicKeyInfo(A),this.setCommitment(D),this.type=w.HIDDEN_TYPE,this.identifier=w.HIDDEN_IDENTIFIER,this.setUnlimitedValidity()}setUnlimitedValidity(){super.setNotValidBefore(Date.now()),super.setNotValidAfter(Date.parse("31 Dec 9999 23:59:59"))}static fromData(D,A,g,p){let y=(new B.AttestationCrypto).makeCommitment(D,A,p),m=new this;return m.fromCommitment(y,g),m.type=A.toString(),m.identifier=D,m}static fromLabelAndUrl(D,A,g){let p=new this;return p.subjectKey=g,p.setVersion(w.NFT_VERSION),p.setSubject(p.makeLabeledURI(D,A)),p.setSigningAlgorithm(w.DEFAULT_SIGNING_ALGORITHM),p.setIssuer("CN=attestation.id"),p.setSerialNumber(1),p.setSubjectPublicKeyInfo(g),p.setUnlimitedValidity(),p.type=D,p.identifier=A,p}makeLabeledURI(D,A){return`${w.LABELED_URI_LABEL}="${A} ${D}"`}static fromBytes(D){let A=new this;if(A.fromBytes(D),!A.checkValidity())throw new Error("Could not validate object");if(A.getVersion()==w.NFT_VERSION){let g=o.Asn1Der.parseX500Names(A.getSubject()),p=!1;if(g.forEach(b=>{if(!p&&b.type==w.LABELED_URI_LABEL){p=!0;let y=b.value.split(" ");if(2!=y.length)throw new Error("LabeledURI values should be separated with space and 2 items only: "+b.value);A.type=y[0],A.identifier=y[1]}}),!p)throw new Error("Cant find LABELED_URI")}else A.type=w.HIDDEN_TYPE,A.identifier=w.HIDDEN_IDENTIFIER;return A}setSubjectPublicKeyInfo(D){this.subjectKey=D}setCommitment(D){this.commitment=D}checkValidity(){return super.checkValidity()?this.getVersion()!=w.HIDDEN_IDENTIFIER_VERSION&&this.getVersion()!=w.NFT_VERSION?((0,M.logger)(P.DEBUGLEVEL.LOW,"The version number is "+this.getVersion()+", it must be either "+w.HIDDEN_IDENTIFIER_VERSION+" or "+w.NFT_VERSION),!1):this.getSigningAlgorithm()!==w.DEFAULT_SIGNING_ALGORITHM?((0,M.logger)(P.DEBUGLEVEL.LOW,"The subject is supposed to only be an Ethereum address as the Common Name"),!1):this.getVersion()!=w.NFT_VERSION||this.subject.includes(w.LABELED_URI_LABEL+"=")?!(this.getVersion()==w.HIDDEN_IDENTIFIER_VERSION&&this.getCommitment().length{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.KeyPair=k.subtle=void 0;const I=x(12217),M=x(31111),P=x(51033),o=x(7098),w=x(64908),S=x(92135),D=x(76073),A=x(83116);let g=x(4913);if("object"==typeof crypto&&crypto.subtle)k.subtle=crypto.subtle;else{let L=x(19726).webcrypto;if(!L)throw(0,I.logger)(A.DEBUGLEVEL.LOW,"Webcrypto not accessible"),new Error("webcrypto.subtle missing");k.subtle=L.subtle}let p=new g.ec("secp256k1"),b=x(81403);const y={p192:null,p224:null,p256:"P-256",p384:"P-384",p521:"P-521",curve25519:null,ed25519:null,secp256k1:null};new P.Point(55066263022277343669578718895168534326250603453777594175500187360389116729240n,32670510020758816978083085130507043184471273380659243275938904335757337482424n);class C{constructor(){this.ethereumPrefix="\x19Ethereum Signed Message:\n",this.algorithmASNList={secp256k1:["3081ec06072a8648ce3d02013081e0020101302c06072a8648ce3d0101022100fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f3044042000000000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000000704410479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8022100fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141020101","06052b8104000a"],sect283k1:["3081f806072a8648ce3d02013081ec020101302506072a8648ce3d0102301a0202011b06092a8648ce3d01020303300902010502010702010c304c042400000000000000000000000000000000000000000000000000000000000000000000000004240000000000000000000000000000000000000000000000000000000000000000000000010449040503213f78ca44883f1a3b8162f188e553cd265f23c1567a16876913b0c2ac245849283601ccda380f1c9e318d90f95d07e5426fe87e45c0e8184698e45962364e34116177dd2259022401ffffffffffffffffffffffffffffffffffe9ae2ed07577265dff7f94451e061e163c61020104"],p256:["3081ec06072a8648ce3d02013081e0020101302c06072a8648ce3d0101022100ffffffff00000001000000000000000000000000ffffffffffffffffffffffff30440420ffffffff00000001000000000000000000000000fffffffffffffffffffffffc04205ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b0441046b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5022100ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551020101"]}}getPrivateAsUint8(){return this.privKey}getPrivateAsHexString(){return(0,I.uint8tohex)(this.privKey)}getPrivateAsBigInt(){return(0,I.uint8ToBn)(this.privKey)}static privateFromBigInt(R){let U=new this;return U.privKey=new Uint8Array((0,I.hexStringToArray)(R.toString(16).padStart(64,"0"))),U}static fromPublicHex(R){if(null===(R=R.replace("0x","")).toLowerCase().match(/^[a-f0-9]+$/i))throw new Error("Wrong Hex string input");if(R.length<129||R.length>130)throw new Error("Wrong public hex length");let U=new this;return U.pubKey=new Uint8Array((0,I.hexStringToArray)(R)),U}static fromPrivateUint8(R,U=""){if(!R||32!=R.length)throw new Error("Wrong private key. Should be 32 bytes Uint8");let O=new this;if(O.privKey=R,!U||!P.CURVES.hasOwnProperty(U))throw new Error(`Algorithm ${U} not implemented.`);return O.algorithm=U,O}static publicFromBase64orPEM(R){return C.publicFromPEM((0,I.pemOrBase64Orbase64urlToString)(R))}static publicFromPEM(R){const U=(0,I.base64ToUint8array)(R);let O=o.AsnParser.parse(U,w.PublicKeyInfoValue);return C.publicFromUint(new Uint8Array(O.publicKey))}static publicFromUint(R){let U=new this;if(65!=R.byteLength)throw(0,I.logger)(A.DEBUGLEVEL.LOW,"Wrong public key length"),new Error("Wrong public key length");return U.pubKey=new Uint8Array(R),U}static publicFromSubjectPublicKeyInfo(R){let U=new this;if(!R.value)throw new Error("Key value not defined.");return U.pubKey=new Uint8Array(R.value.publicKey),U}static publicFromSubjectPublicKeyValue(R){let U=new this;return U.pubKey=new Uint8Array(R.publicKey),U.algorithm=U.getAlgorithNameFromASN1((0,I.uint8tohex)(new Uint8Array(R.algorithm))),U}static privateFromKeyInfo(R){let U=new this,O=o.AsnParser.parse(R.keysData,w.PrivateKeyData);return U.algorithm=U.getAlgorithNameFromASN1((0,I.uint8tohex)(new Uint8Array(R.algIdent))),U.privKey=new Uint8Array(O.privateKey),U}static privateFromKeyDataPEM(R){const U=(0,I.base64ToUint8array)(R);let O=o.AsnParser.parse(U,w.PrivateKeyData),j=new this;return j.algorithm=j.getAlgorithNameFromASN1((0,I.uint8tohex)(new Uint8Array(O.algDescr))),j.privKey=new Uint8Array(O.privateKey),j}getAlgorithNameFromASN1(R){let U={};for(const O in this.algorithmASNList)this.algorithmASNList[O].forEach(j=>{U[j]=O});if(U.hasOwnProperty(R))return U[R];{let O="Unknown algorithm.";throw(0,I.logger)(A.DEBUGLEVEL.LOW,O),new Error(O)}}static privateFromPEM(R){const U=(0,I.base64ToUint8array)(R);let O=o.AsnParser.parse(U,w.PrivateKeyInfo);return C.privateFromKeyInfo(O)}static generateKeyAsync(){var R=this;return B(function*(){const U=yield crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt"]);let O=["0x"];const j=yield crypto.subtle.exportKey("raw",U);return new Uint8Array(j).forEach(K=>{var Z=K.toString(16);Z.length%2&&(Z="0"+Z),O.push(Z)}),R.privateFromBigInt(BigInt(O.join(""))%P.CURVE_SECP256k1.n)})()}static createKeys(){return this.privateFromBigInt(BigInt("0x"+(0,I.uint8tohex)(crypto.getRandomValues(new Uint8Array(32))))%P.CURVE_SECP256k1.n)}getPublicKeyAsHexStr(){if(this.pubKey)return(0,I.uint8tohex)(this.pubKey);if(P.CURVES.hasOwnProperty(this.algorithm)&&y.hasOwnProperty(this.algorithm)){let R=new g.ec(this.algorithm);if(!this.getPrivateAsHexString())throw(0,I.logger)(A.DEBUGLEVEL.LOW,this),new Error("Cant sign. This is only public key.");return R.keyFromPrivate(this.getPrivateAsHexString(),"hex").getPublic("hex").toString()}{let R='Private -> Public key not implemented for that aglorighm - "'+this.algorithm+'"';throw(0,I.logger)(A.DEBUGLEVEL.LOW,R),new Error(R)}}getAsnDerPublic(){var R=this.getPublicKeyAsHexStr();let U="";if(this.algorithm){if(!this.algorithmASNList.hasOwnProperty(this.algorithm)){let O="Fatal Error. Algorithm not implemented yet - "+this.algorithm;throw(0,I.logger)(A.DEBUGLEVEL.LOW,O),new Error(O)}U=this.algorithmASNList[this.algorithm][0]}else(0,I.logger)(A.DEBUGLEVEL.VERBOSE,"algorithm undefined, lets use default."),U=this.algorithmASNList.secp256k1[0];return M.Asn1Der.encode("SEQUENCE_30",U+M.Asn1Der.encode("BIT_STRING",R))}getAddress(){var R=this.getPublicKeyAsHexStr();return R=R.substr(2),"0x"+b.keccak256((0,I.hexStringToArray)(R)).substr(-40).toUpperCase()}signBytes(R){if(!this.getPrivateAsHexString())throw new Error("Cant sign. This is only public key.");let U=p.keyFromPrivate(this.getPrivateAsHexString(),"hex"),O=b.keccak256(R);return U.sign(O).toDER("hex")}signStringWithEthereum(R){if(!this.getPrivateAsHexString())throw new Error("Cant sign. This is only public key.");let U=p.keyFromPrivate(this.getPrivateAsHexString(),"hex"),j=b.keccak256((0,I.stringToArray)(this.ethereumPrefix+R.length+R));return U.sign(j).toDER("hex")}signHexStringWithEthereum(R){return this.signStringWithEthereum("0x"+R)}signBytesWithEthereum(R){let U="0x"+(0,I.uint8tohex)(new Uint8Array(R));return(0,I.logger)(A.DEBUGLEVEL.HIGH,"message: "+U),this.signStringWithEthereum(U)}signDeterministicSHA256(R){let U=Array.from(S.ethers.utils.arrayify(S.ethers.utils.sha256(R)));return this.signBytes(U)}verifyDeterministicSHA256(R,U){let j,K,O=S.ethers.utils.sha256(R).substr(2);if(!P.CURVES.hasOwnProperty(this.algorithm)||!y.hasOwnProperty(this.algorithm)){let Q='Elliptic.js curve not implemented for that aglorighm - "'+this.algorithm+'"';throw(0,I.logger)(A.DEBUGLEVEL.LOW,Q),new Error(Q)}if(j=new g.ec(this.algorithm).keyFromPublic(this.getPublicKeyAsHexStr(),"hex"),128==U.length||130==U.length){var Z=U.match(/([a-f\d]{64})/gi);if(!Z||Z.length<2)throw new Error("Wrong key syntax");K={r:Z[0],s:Z[1]}}else{let Q=o.AsnParser.parse((0,I.hexStringToUint8)(U),D.Signature);K={r:BigInt(Q.r).toString(16).padStart(64,"0"),s:BigInt(Q.s).toString(16).padStart(64,"0")}}return j.verify(O,K)}verifyHexStringWithEthereum(R,U){let O="0x"+R,j=b.keccak256((0,I.stringToArray)(this.ethereumPrefix+O.length+O)),K=p.keyFromPublic(this.getPublicKeyAsHexStr(),"hex");var Z=U.match(/([a-f\d]{64})/gi);if(!Z||Z.length<2)throw new Error("Wrong key syntax");return K.verify(j,{r:Z[0],s:Z[1]})}signRawBytesWithEthereum(R){let U=S.ethers.utils.keccak256(R).substring(2);if((0,I.logger)(A.DEBUGLEVEL.HIGH,`signRawBytesWithEthereum: key: ${this.getAddress()}, hash: ${U}`),!this.getPrivateAsHexString())throw new Error("Cant sign. This is only public key.");let O=p.keyFromPrivate(this.getPrivateAsHexString(),"hex"),j=O.sign((0,I.hexStringToUint8)(U));return(0,I.ecSignatureToSRVhex)(j,O)}verifyBytesWithEthereum(R,U){if(!R||!R.length)throw new Error("Missing data to verify");if(!U)throw new Error("Missing signature to verify");let O=(0,I.hexStringToArray)(S.ethers.utils.keccak256(R)),j=p.keyFromPublic(this.getPublicKeyAsHexStr(),"hex");(0,I.logger)(A.DEBUGLEVEL.HIGH,`verifyBytesWithEthereum: key: ${this.getAddress()}, hash: ${(0,I.uint8tohex)(new Uint8Array(O))}`);var K=(U=(0,I.uint8tohex)(C.anySignatureToRawUint8(U))).match(/([a-f\d]{64})/gi);if(!K||K.length<2)throw new Error("Wrong key syntax");return j.verify(O,{r:K[0],s:K[1]})}getJWTParams(){let R=y[this.algorithm];if(!R){let O=`Cant create subtleCrypto key for curve '${this.algorithm}'`;throw(0,I.logger)(A.DEBUGLEVEL.LOW,O),new Error(O)}let U=this.getPublicKeyAsHexStr();return{crv:R,d:(0,I.uint8arrayToBase64)(this.getPrivateAsUint8()),key_ops:["sign"],kty:"EC",x:(0,I.uint8arrayToBase64)((0,I.hexStringToUint8)(U.substr(2,64))),y:(0,I.uint8arrayToBase64)((0,I.hexStringToUint8)(U.substr(66,64)))}}getSubtlePrivateKey(){let R=y[this.algorithm];return k.subtle.importKey("jwk",this.getJWTParams(),{name:"ECDSA",namedCurve:R},!0,["sign"])}getSubtlePublicKey(){let R=y[this.algorithm],U=this.getJWTParams(),O=Object.assign({},U);return delete O.d,O.key_ops=["verify"],k.subtle.importKey("jwk",O,{name:"ECDSA",namedCurve:R},!0,["verify"])}signStringWithSubtle(R){var U=this;return B(function*(){return yield k.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},yield U.getSubtlePrivateKey(),Uint8Array.from((0,I.stringToArray)(R)))})()}verifyStringWithSubtle(R,U){var O=this;return B(function*(){return(0,I.logger)(A.DEBUGLEVEL.VERBOSE,"pubkey: "+O.getPublicKeyAsHexStr()+" msg:"+U+" signature:"+(0,I.uint8tohex)(R)),(0,I.logger)(A.DEBUGLEVEL.VERBOSE,yield O.getSubtlePublicKey()),yield k.subtle.verify({name:"ECDSA",hash:{name:"SHA-256"}},yield O.getSubtlePublicKey(),R,Uint8Array.from((0,I.stringToArray)(U)))})()}verifyStringWithSubtleDerSignature(R,U){var O=this;return B(function*(){let j=o.AsnParser.parse(R,D.Signature);const K=BigInt(j.r).toString(16).padStart(64,"0")+BigInt(j.s).toString(16).padStart(64,"0");return O.verifyStringWithSubtle((0,I.hexStringToUint8)(K),U)})()}static anySignatureToRawUint8(R){let U,O;if(U="string"==typeof R?(0,I.hexStringToUint8)(R):R,!U||!U.length)throw new Error("Empty signature received");switch(U.length){case 64:(0,I.logger)(A.DEBUGLEVEL.LOW,`anySignatureToRawUint8 received 64 bytes signature (without v value) = ${(0,I.uint8tohex)(U)}`);case 65:O=U;break;case 66:if(4!=U[0])throw new Error(`Cant recognize signature: ${(0,I.uint8tohex)(U)}`);O=U.slice(1,65);break;case 70:case 71:case 72:let j=o.AsnParser.parse(U,D.Signature);O=(0,I.hexStringToUint8)(BigInt(j.r).toString(16).padStart(64,"0")+BigInt(j.s).toString(16).padStart(64,"0"));break;default:let K="wrong Signature: "+(0,I.uint8tohex)(U);throw new Error(K)}return(0,I.logger)(A.DEBUGLEVEL.VERBOSE,"ready signature:"+(0,I.uint8tohex)(O)),O}static parseKeyArrayStrings(R){const U={};for(let O in R)if("string"==typeof R[O]){const j=R[O].split("|"),K=[];for(const Z of j)K.push(C.publicFromBase64orPEM(Z));U[O]=K}else Array.isArray(U),U[O]=R[O];return U}}k.KeyPair=C},12764:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.Nonce=void 0;const I=x(12217),M=x(54524),P=x(65602),o=x(63338),w=x(83116);class S{constructor(){this.DEFAULT_NONCE_TIME_LIMIT_MS=12e5}static makeNonce(A="",g,p=new Uint8Array(0),b=0){return B(function*(){if(A||(A=yield M.SignatureUtility.connectMetamaskAndGetAddress()),!P.ValidationTools.isAddress(A))throw new Error("Address is not valid");return A=A.toUpperCase(),b||(b=Date.now()),(0,I.uint8merge)([Uint8Array.from((0,I.stringToArray)(A)),(0,I.hashStringTo32bytesUint8)(g),(0,I.getInt64Bytes)(b),p])})()}validateNonce(A,g,p,b,y,m=new Uint8Array(0)){return S.validateAddress(A,g)?this.validateReceiverIdentifier(A,p)?this.validateTimestamp(A,b,y)?this.validateOtherData(A,m)?this.validateOtherData(A,m):((0,I.logger)(w.DEBUGLEVEL.LOW,"otherData check failed"),!1):((0,I.logger)(w.DEBUGLEVEL.LOW,"timestamp check failed"),!1):((0,I.logger)(w.DEBUGLEVEL.LOW,"validateReceiverIdentifier check failed"),!1):((0,I.logger)(w.DEBUGLEVEL.LOW,"validateAddress check failed for "+g),!1)}validateTimestamp(A,g,p){let b=S.getTimestamp(A),y=new o.Timestamp(b);return y.setValidity(p-g),y.validateAgainstExpiration(p)}static validateAddress(A,g){let p=(0,I.uint8toString)(A.slice(S.senderAddressIndexStart,S.senderAddressIndexStop));return g.toUpperCase()===p.toUpperCase()||((0,I.logger)(w.DEBUGLEVEL.LOW,"nonceAddress = "+p),!1)}validateReceiverIdentifier(A,g){return(0,I.uint8tohex)((0,I.hashStringTo32bytesUint8)(g)).toLowerCase()===(0,I.uint8tohex)(A.slice(S.receiverIdentifierIndexStart,S.receiverIdentifierIndexStop)).toLowerCase()}validateOtherData(A,g){return(0,I.uint8tohex)(g).toLowerCase()===(0,I.uint8tohex)(A.slice(S.otherDataIndexStart,S.otherDataIndexStart+g.length)).toLowerCase()}static getTimestamp(A){let g=A.slice(S.timestampIndexStart,S.timestampIndexStop),p=(0,I.uint8ToBn)(g);if(p>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("timestamp value bigger than MAX_SAFE_INTEGER");return Number(p)}}k.Nonce=S,S.LONG_BYTES=8,S.senderAddressIndexStart=0,S.senderAddressIndexStop=P.ValidationTools.ADDRESS_LENGTH_IN_BYTES,S.receiverIdentifierIndexStart=S.senderAddressIndexStop,S.receiverIdentifierIndexStop=S.receiverIdentifierIndexStart+32,S.timestampIndexStart=S.receiverIdentifierIndexStop,S.timestampIndexStop=S.timestampIndexStart+S.LONG_BYTES,S.otherDataIndexStart=S.timestampIndexStop},51033:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Point=k.CURVE_BN256=k.CURVES=k.CURVE_SECP256k1=void 0;const B=x(12217),I=x(83116);k.CURVE_SECP256k1={P:2n**256n-2n**32n-977n,n:2n**256n-432420386565659656852420866394968145599n,magicExp:(2n**256n-2n**32n-977n+1n)/4n,A:0n,B:7n},k.CURVES={p256:{P:BigInt("0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF"),A:BigInt("0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC"),B:BigInt("0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"),n:BigInt("0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551"),GX:BigInt("0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"),GY:BigInt("0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5"),h:1n},secp256k1:{P:2n**256n-2n**32n-977n,A:0n,B:7n,n:2n**256n-432420386565659656852420866394968145599n,GX:55066263022277343669578718895168534326250603453777594175500187360389116729240n,GY:32670510020758816978083085130507043184471273380659243275938904335757337482424n},BN256:{P:115792089237314936872688561244471742058375878355761205198700409522629664518163n,n:115792089237314936872688561244471742058035595988840268584488757999429535617037n,magicExp:115792089237314936872688561244471742058375878355761205198700409522629664518164n>>2n,A:0n,B:3n,h:1n}},k.CURVE_BN256={P:21888242871839275222246405745257275088696311157297823662689037894645226208583n,n:21888242871839275222246405745257275088548364400416034343698204186575808495617n,A:0n,B:3n,h:1n};class M{constructor(o,w,S=k.CURVE_BN256){this.x=o,this.y=w,this.useCurve=S,this.x=(0,B.mod)(o,this.useCurve.P),this.y=(0,B.mod)(w,this.useCurve.P),this.useCurve=S}double(){const o=this.x,w=this.y,S=(0,B.mod)(3n*o**2n*(0,B.invert)(2n*w,this.useCurve.P),this.useCurve.P),D=(0,B.mod)(S*S-2n*o,this.useCurve.P),A=(0,B.mod)(S*(o-D)-w,this.useCurve.P);return new M(D,A,this.useCurve)}newZero(){return new M(0n,0n,this.useCurve)}add(o){const[w,S]=[this,o],[D,A,g,p]=[w.x,w.y,S.x,S.y];if(0n===D||0n===A)return S;if(0n===g||0n===p)return w;if(D===g&&A===p)return this.double();if(D===g&&A===(0,B.mod)(-p,this.useCurve.P))return this.newZero();const b=(0,B.mod)((p-A)*(0,B.invert)(g-D,this.useCurve.P),this.useCurve.P),y=(0,B.mod)(b*b-D-g,this.useCurve.P),m=(0,B.mod)(b*(D-y)-A,this.useCurve.P);return new M(y,m,this.useCurve)}multiplyDA(o){let w=this.newZero(),S=this;for(;o>0n;)1n&o&&(w=w.add(S)),S=S.double(),o>>=1n;return w}isInfinity(){return null==this.x||null==this.y||0n==this.x&&0n==this.y}getEncoded(o=!1){if(this.isInfinity())return new Uint8Array(0);let w=(0,B.bnToBuf)(this.x,32);return(0,B.uint8merge)(o?[Uint8Array.from([2]),w]:[Uint8Array.from([4]),w,(0,B.bnToBuf)(this.y,32)])}equals(o){if(null==o)return!1;let w=this.isInfinity(),S=o.isInfinity();return w||S?w&&S:this.x===o.x&&this.y===o.y}static decodeFromHex(o,w=k.CURVE_BN256){if(130!=o.length)throw new Error("only decompressed points allowed. 65 bytes.");return M.decodeFromUint8((0,B.hexStringToUint8)(o),w)}static decodeFromUint8(o,w=k.CURVE_BN256){if(65!=o.length)throw new Error("only decompressed points allowed. 65 bytes.");let S;if(4!==o[0])throw new Error("only decompressed points allowed");{let A=(0,B.uint8ToBn)(o.slice(1,33)),g=(0,B.uint8ToBn)(o.slice(33));S=new M(A,g,w)}if(!S.validate()){let A="Point is not valid ("+S.x.toString(16)+","+S.y.toString(16)+")";throw(0,B.logger)(I.DEBUGLEVEL.LOW,A),new Error(A)}return S}validate(o=!1){return"boolean"==typeof o&&(o=this.useCurve),0n==(0,B.mod)((0,B.mod)(this.y*this.y,o.P)-(0,B.mod)((0,B.BnPowMod)(this.x,3n,o.P)+(0,B.mod)(this.x*o.A,o.P)+o.B,o.P),o.P)}negate(){return new M(this.x,this.useCurve.P-this.y,this.useCurve)}subtract(o){return this.add(o.negate())}}k.Point=M},54524:(q,k,x)=>{"use strict";var B=x(91052).default;Object.defineProperty(k,"__esModule",{value:!0}),k.SignatureUtility=void 0;const I=x(12217),M=x(92135),P=x(43417),o=x(83116);let S=new(x(4913).ec)("secp256k1"),D=x(81403);class A{static sign(p,b){let y=S.keyFromPrivate(b.getPrivateAsHexString(),"hex"),m=D.keccak256((0,I.hexStringToArray)(p));return y.sign(m).toDER("hex")}static verify(p,b,y){return A.verifyArrayBuf((0,I.hexStringToArray)(p),b,y)}static verifyArrayBuf(p,b,y){let m=S.keyFromPublic(y.getPublicKeyAsHexStr(),"hex"),E=D.keccak256(p);return m.verify(E,b)}static signMessageWithBrowserWallet(p){return B(function*(){return yield A.connectMetamaskAndGetAddress(),yield new M.ethers.providers.Web3Provider(window.ethereum).getSigner().signMessage(p)})()}static recoverPublicKeyFromMessageSignature(p,b){return B(function*(){const y=M.ethers.utils.hashMessage(p),m=M.ethers.utils.arrayify(y);return yield M.ethers.utils.recoverPublicKey(m,b)})()}static recoverPublicKeyFromTypedMessageSignature(p,b){let y,m;try{let E=p.message.payload;p.message.payload=M.ethers.utils.id(E).substr(2);let C=p.types;delete C.EIP712Domain,y=P._TypedDataEncoder.hash(p.domain,C,p.message),p.message.payload=E}catch(E){throw new Error("Cant sign data, possibly wrong format. "+E)}try{m=(0,P.recoverPublicKey)((0,I.hexStringToUint8)(y.substr(2)),b)}catch(E){throw new Error("Cant recoverPublicKey. "+E)}return m}static signEIP712WithBrowserWallet(p,b,y,m,E){return B(function*(){try{let L;if(L=E?new M.ethers.Wallet("0x"+E.getPrivateAsHexString()):new M.ethers.providers.Web3Provider(window.ethereum).getSigner(),!L)throw new Error("Active Wallet required");const U={name:p,version:A.Eip712Data.PROTOCOL_VERSION},O={};O[m]=y;let j=Object.assign({},b);j.payload=D.keccak256(j.payload);let K=yield L._signTypedData(U,O,j),Z={types:{EIP712Domain:A.Eip712domainTypes},primaryType:m,message:b,domain:U};Z.types[m]=O[m];let Q=JSON.stringify(Z);return JSON.stringify({signatureInHex:K,jsonSigned:Q})}catch(C){return(0,I.logger)(o.DEBUGLEVEL.LOW,"Cant sign eip712 data. Error: "+C),""}})()}static connectMetamaskAndGetAddress(){return B(function*(){if(!window.ethereum)throw new Error("Please install metamask before.");const p=yield window.ethereum.request({method:"eth_requestAccounts"});if(!p||!p.length)throw new Error("Active Wallet required");return p[0]})()}static getChainIdFromSignature(p){let b=Number("0x"+p.substr(-2));return 27==b||28==b?0:b-35>>1}static convertToPersonalEthMessage(p){return(0,I.stringToArray)(this.ethereumPrefix+p.length+p)}}k.SignatureUtility=A,A.ethereumPrefix="\x19Ethereum Signed Message:\n",A.OID_ECDSA_PUBLICKEY="1.2.840.10045.2.1",A.Eip712Data={PROTOCOL_VERSION:"0.1"},A.Eip712domainTypes=[{name:"name",type:"string"},{name:"version",type:"string"}]},28959:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.SignedIdentifierAttestation=void 0;const B=x(7098),I=x(64908),M=x(70854),P=x(12217),o=x(31111),w=x(340),S=x(83116);class D{constructor(){}static fromBytes(g,p){const b=B.AsnParser.parse(g,I.MyAttestation);return this.fromASNType(b,p,g)}static fromASNType(g,p,b=new Uint8Array(0)){let y=new this;y.uint8data=b,y.attestorKeys=p;let m=g.signatureAlgorithm.algorithm;if(y.att=w.IdentifierAttestation.fromBytes(g.signedInfo),y.signature=(0,P.uint8tohex)(new Uint8Array(g.signatureValue)),m!==y.att.getSigningAlgorithm())throw new Error("Algorithm specified is not consistent");return y.constructorCheck(),y}static fromData(g,p){let b=new this;return b.attestorKeys=p,b.att=g,b.signature=b.attestorKeys.signRawBytesWithEthereum(Array.from(b.att.getPrehash())),b.constructorCheck(),b}verify(){try{return this.attestorKeys.verifyBytesWithEthereum((0,P.hexStringToArray)(this.att.getDerEncoding()),this.signature)}catch(g){return(0,P.logger)(S.DEBUGLEVEL.LOW,g),!1}}checkValidity(){return this.getUnsignedAttestation().checkValidity()}getUnsignedAttestation(){return this.att}getDerEncoding(){return this.uint8data&&this.uint8data.length?(0,P.uint8tohex)(new Uint8Array(this.uint8data)):this.constructSignedAttestation(this.getUnsignedAttestation(),this.signature)}constructSignedAttestation(g,p){let b=g.getPrehash(),y=o.Asn1Der.encode("OBJECT_ID",g.getSigningAlgorithm()),m=(0,P.uint8tohex)(b)+o.Asn1Der.encode("SEQUENCE_30",y)+o.Asn1Der.encode("BIT_STRING",(0,P.uint8tohex)(M.KeyPair.anySignatureToRawUint8(p)));return o.Asn1Der.encode("SEQUENCE_30",m)}constructorCheck(){if(!this.verify())throw new Error("The signature is not valid")}}k.SignedIdentifierAttestation=D,D.ECDSA_WITH_SHA256="1.2.840.10045.4.3.2"},63338:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Timestamp=void 0;const B=x(12217),I=x(83116);class M{constructor(o=null){this.ALLOWED_ROUNDING=1e4,this.validity=0,o||(this.time=Date.now()),"number"==typeof o&&(this.time=o),"string"==typeof o&&(this.time=M.stringTimestampToLong(o)),this.time=this.time-this.time%1e3}fromString(o){this.time=M.stringTimestampToLong(o)}getValidity(){return this.validity}setValidity(o){this.validity=o}getTime(){return this.time}getTimeAsString(){let o=new Date(this.time).toString();return o.substr(0,o.indexOf("(")-1)}validateTimestamp(){let o=this.getCurrentTime();return!(this.time>o+this.ALLOWED_ROUNDING||this.time+this.ALLOWED_ROUNDING+this.validityw+this.ALLOWED_ROUNDING?((0,B.logger)(I.DEBUGLEVEL.LOW,"Object still not valid. Details: not valid before = "+this.time+", currentTime = "+w),!1):o{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.UsageProofOfExponent=void 0;const B=x(51033),I=x(47888),M=x(7098),P=x(12217),o=x(31111),w=x(77670);k.UsageProofOfExponent=class S{constructor(){}static fromData(A,g,p=new Uint8Array([])){let b=new this;return b.tPoint=A,b.challengeResponse=g,b.nonce=p,b.encoding=b.makeEncoding(),b}fromBase64(A){this.encoding=A,this.fromBytes((0,P.base64ToUint8array)(A))}fromBytes(A){this.encodingBytes=A;let g=M.AsnParser.parse(A,I.UsageProof);this.challengeResponse=(0,P.uint8ToBn)(new Uint8Array(g.challengePoint));let p=new Uint8Array(g.responseValue);this.nonce=new Uint8Array(g.nonce),this.tPoint=B.Point.decodeFromHex((0,P.uint8tohex)(p),B.CURVE_BN256)}makeEncoding(){let A=o.Asn1Der.encode("OCTET_STRING",(0,P.uint8tohex)((0,P.bnToUint8)(this.challengeResponse)))+o.Asn1Der.encode("OCTET_STRING",(0,P.uint8tohex)(this.tPoint.getEncoded(!1)))+o.Asn1Der.encode("OCTET_STRING",(0,P.uint8tohex)(this.nonce));return o.Asn1Der.encode("SEQUENCE_30",A)}getPoint(){return this.tPoint}getChallengeResponse(){return this.challengeResponse}getDerEncoding(){return this.encoding}getNonce(){return this.nonce}validateParameters(){try{if(!w.AttestationCrypto.validatePointToCurve(this.tPoint,w.AttestationCrypto.curve))throw new Error("Point not in the curve");return!(this.challengeResponse<=0n||this.challengeResponse>=w.AttestationCrypto.curveOrder||this.tPoint.equals(w.AttestationCrypto.G)||this.tPoint.equals(w.AttestationCrypto.H))}catch{return!1}}}},58864:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.UseAttestation=void 0;const B=x(70854),I=x(66791),M=x(77670),P=x(28959),o=x(89320),w=x(7098),S=x(31111);k.UseAttestation=class D{static fromData(g,p,b,y){let m=new this;return m.attestation=g,m.type=p,m.pok=b,m.sessionPublicKey=y,m.encoding=m.makeEncoding(g,p,b,y),m.constructorCheck(),m}static fromBytes(g,p){let y,b=new this;try{y=w.AsnParser.parse(g,o.UseAttestation)}catch(m){throw new Error("Cant parse UseAttestationASN. "+m)}try{b.attestation=P.SignedIdentifierAttestation.fromASNType(y.attestation,p),b.type=y.type,b.pok=I.FullProofOfExponent.fromASNType(y.proof),b.sessionPublicKey=B.KeyPair.publicFromSubjectPublicKeyValue(y.sessionKey)}catch(m){throw new Error("Cant decode internal data. "+m)}return b.constructorCheck(),b}constructorCheck(){if(!this.verify())throw new Error("The use attestation object is not valid")}makeEncoding(g,p,b,y){let m=g.getDerEncoding()+S.Asn1Der.encode("INTEGER",p)+b.getDerEncoding()+y.getAsnDerPublic();return S.Asn1Der.encode("SEQUENCE_30",m)}getAttestation(){return this.attestation}getType(){return this.type}getPok(){return this.pok}getSessionPublicKey(){return this.sessionPublicKey}getDerEncoding(){return this.encoding}verify(){return this.attestation.verify()&&(new M.AttestationCrypto).verifyFullProof(this.pok)}checkValidity(){return this.attestation.checkValidity()}}},65602:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ValidationTools=void 0;const B=x(12217),I=x(83116);class M{static validateTimestamp(o,w,S){return!(o>w+S||o{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ATTESTATION_TYPE=void 0,k.ATTESTATION_TYPE={phone:0,mail:1,InetPersona:2}},12217:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ecSignatureToSRVhex=k.testsLogger=k.logger=k.isDomainValid=k.formatGeneralizedDateTime=k.ethAddressToUint8=k.hashUint8To32bytesUint8=k.hashStringTo32bytesUint8=k.getInt64Bytes=k.uint8tohex=k.BnPowMod=k.stringToArray=k.base64ToUint8array=k.pemOrBase64Orbase64urlToString=k.base64toBase64Url=k.uint8arrayToBase64=k.uint8toString=k.uint8merge=k.bnToBuf=k.bnToUint8=k.bufToBn=k.uint8ToBn=k.egcd=k.invert=k.mod=k.hexStringToBase64Url=k.hexStringToBase64=k.hexStringToUint8=k.hexStringToArray=k.stringToHex=void 0;const B=x(83116),I=x(51033);let P,o,M=x(81403);function S(r=""){"0x"===r.substr(0,2).toLowerCase()&&(r=r.substr(2));let h=[],F=[...r];F.length%2&&F.unshift("0");let H,T="";if(!F||typeof F>"u"||!F.length)return[];for(;F.length;){if(T="",T+=F.shift()+F.shift(),H=parseInt(T,16),isNaN(H))throw new Error("hexStringToArray input is not a hex string.");h.push(H)}return h}function D(r=""){return Uint8Array.from(S(r))}function p(r,h=I.CURVE_BN256.P){const F=r%h;return F>=0n?F:h+F}function y(r,h){let[F,T,H,ae]=[0n,1n,1n,0n];for(;0n!==r;){let[Ae,fe]=[h/r,h%r],[Ee,ee]=[F-H*Ae,T-ae*Ae];[h,r]=[r,fe],[F,T]=[H,ae],[H,ae]=[Ee,ee]}return[h,F,T]}function E(r){let h=[];return Uint8Array.from(r).forEach(function(T){var H=T.toString(16);H.length%2&&(H="0"+H),h.push(H)}),BigInt("0x"+h.join(""))}function L(r,h=0){var F=BigInt(r).toString(16).padStart(2*h,"0");F.length%2&&(F="0"+F);for(var T=F.length/2,H=new Uint8Array(T),ae=0,Ae=0;ae"u"||!window.btoa)return Buffer.from(r).toString("base64");{let h=U(r);return window.btoa(h)}}function j(r){return r.split("/").join("_").split("+").join("-")}function K(r){let h=r.split(/\r?\n/);for(;""===h[h.length-1].trim();)h.pop();return"---"===r.slice(0,3)&&(h.shift(),h.pop()),(r=h.join("")).split("_").join("/").split("-").join("+").split(".").join("=")}function Q(r){for(var h=[],F=0;FP||console.log(...h)}typeof process<"u"&&process.env&&process.env.DISPLAY_DEBUG_LEVEL?P=parseInt(process.env.DISPLAY_DEBUG_LEVEL):typeof window<"u"&&window.DISPLAY_DEBUG_LEVEL&&(P=parseInt(window.DISPLAY_DEBUG_LEVEL)),typeof process<"u"&&process.env&&process.env.DISPLAY_DEBUG_LEVEL_TESTS&&(o=parseInt(process.env.DISPLAY_DEBUG_LEVEL_TESTS)),k.stringToHex=function w(r){for(var h="",F=0;F"u"||!window.atob?Uint8Array.from(Buffer.from(r,"base64")):Uint8Array.from(atob(r),F=>F.charCodeAt(0)),h},k.stringToArray=Q,k.BnPowMod=function W(r,h,F){let T=1n,H=r;for(;h>0n;)1n&h&&(T=T*H%F),H=H*H%F,h>>=1n;return T},k.uint8tohex=function X(r){return r&&r.length?Array.from(r).map(h=>("0"+h.toString(16)).slice(-2)).join(""):""},k.getInt64Bytes=function _(r){let h=Math.floor(r/4294967296);return new Uint8Array([h,h<<8,h<<16,h<<24,r,r<<8,r<<16,r<<24].map(F=>F>>>24))},k.hashStringTo32bytesUint8=function t(r){return a(Uint8Array.from(Q(r)))},k.hashUint8To32bytesUint8=a,k.ethAddressToUint8=function s(r){if(null===r.toLowerCase().match(/^0x[a-f0-9]{40}$/i))throw new Error("Wrong Ethereum Address");let h=Uint8Array.from(S(r.substr(2)));if(20!=h.length)throw new Error("wrong address length");return h},k.formatGeneralizedDateTime=function e(r){var h=new Date(r),F=""+(h.getUTCMonth()+1),T=""+h.getUTCDate(),H=h.getUTCFullYear();let ae=""+h.getUTCHours(),Ae=""+h.getUTCMinutes(),fe=""+h.getUTCSeconds();return F.length<2&&(F="0"+F),T.length<2&&(T="0"+T),ae.length<2&&(ae="0"+ae),Ae.length<2&&(Ae="0"+Ae),fe.length<2&&(fe="0"+fe),[H,F,T,ae,Ae,fe].join("")+"Z"},k.isDomainValid=function i(r){try{new URL(r)}catch{return!1}return!0},k.logger=u,k.testsLogger=function d(r,...h){!o||r>o||console.log(...h)},k.ecSignatureToSRVhex=function c(r,h){try{let F=r.r.toString(16).padStart(64,"0"),T=r.s,H=r.recoveryParam,ae=h.ec.curve.n.shrn(1);return T.cmp(ae)>0&&(T=h.ec.curve.n.sub(T),H=1-H),F+T.toString(16).padStart(64,"0")+(1==H?"1c":"1b")}catch(F){throw u(B.DEBUGLEVEL.LOW,F),new Error("Signature format doesn't fit.")}}},44936:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.getValidFromAndExpiry=k.AbstractLinkedAttestation=void 0;const B=x(7098),I=x(14360),M=x(12217),P=x(92135),o=x(54871);k.AbstractLinkedAttestation=class w{fromObject(A){this.linkedAttestation=A}fromBytes(A){this.linkedAttestation=B.AsnParser.parse(A,I.SignedLinkedAttestation)}fromBase64(A){this.fromBytes((0,M.base64ToUint8array)(A))}getAttestationData(){return this.linkedAttestation.attestation[this.TYPE]}getSubjectPublicKey(){return this.getAttestationData()?.subjectPublicKey}getEncoded(){return new Uint8Array(B.AsnSerializer.serialize(this.linkedAttestation))}getBase64(){return(0,M.uint8arrayToBase64)(this.getEncoded())}sign(A){const g=B.AsnSerializer.serialize(this.linkedAttestation.attestation[this.TYPE]);this.linkedAttestation.signingAlgorithm=new o.AlgorithmIdentifierASN,this.linkedAttestation.signingAlgorithm.algorithm="1.2.840.10045.4.2",this.linkedAttestation.signatureValue=(0,M.hexStringToUint8)(A.signRawBytesWithEthereum(Array.from(new Uint8Array(g))))}verify(A){const g=B.AsnSerializer.serialize(this.getAttestationData());let p=(0,M.hexStringToUint8)(P.ethers.utils.keccak256(new Uint8Array(g))),b=P.ethers.utils.recoverPublicKey(p,P.ethers.utils.splitSignature(new Uint8Array(this.linkedAttestation.signatureValue)));if(b.substring(2)!==A.getPublicKeyAsHexStr())throw new Error("Attestor public key does not match, expected "+A.getPublicKeyAsHexStr()+" got "+b.substring(2));let y=Math.round(Date.now()/1e3),m=this.getAttestationData();if(!m)throw new Error("Linked attestation getAttestationData error");if(m.validity.notBefore>y)throw new Error("Linked attestation is not yet valid");if(m.validity.notAfter{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.EthereumAddressAttestation=void 0;const B=x(44936),I=x(14360),M=x(20342),P=x(11021),o=x(12217);k.EthereumAddressAttestation=class w extends B.AbstractLinkedAttestation{constructor(){super(...arguments),this.TYPE="ethereumAddress"}create(D,A,g,p,b,y){this.linkedAttestation=new I.SignedLinkedAttestation,this.linkedAttestation.attestation=new I.LinkedAttestation,this.linkedAttestation.attestation.ethereumAddress=new M.EthereumAddressAttestation,this.linkedAttestation.attestation.ethereumAddress.subjectPublicKey=D;const m=(0,B.getValidFromAndExpiry)(p,y);this.linkedAttestation.attestation.ethereumAddress.validity=new P.EpochTimeValidity,this.linkedAttestation.attestation.ethereumAddress.validity.notBefore=m.validFrom,this.linkedAttestation.attestation.ethereumAddress.validity.notAfter=m.expiry,this.linkedAttestation.attestation.ethereumAddress.ethereumAddress=(0,o.hexStringToUint8)(A),b&&(this.linkedAttestation.attestation.ethereumAddress.context=b),this.sign(g)}}},32854:function(q,k,x){"use strict";var B=x(91052).default,I=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(k,"__esModule",{value:!0}),k.EthereumKeyLinkingAttestation=void 0;const M=x(14360),P=x(11047),o=x(7098),w=x(12217),S=x(11021),D=x(11047),A=x(54871),g=x(49595),p=x(58324),b=I(x(8227)),y=x(44936),m="RSASSA-PKCS1-v1_5";k.EthereumKeyLinkingAttestation=class E{create(L,R,U,O,j){let K=o.AsnParser.parse((0,w.base64ToUint8array)(L),M.SignedLinkedAttestation);this.linkAttest=new P.SignedEthereumKeyLinkingAttestation,this.linkAttest.ethereumKeyLinkingAttestation=new D.EthereumKeyLinkingAttestation,this.linkAttest.ethereumKeyLinkingAttestation.subjectEthereumAddress=(0,w.hexStringToUint8)(R),this.linkAttest.ethereumKeyLinkingAttestation.linkedAttestation=K;const Z=(0,y.getValidFromAndExpiry)(U,j);this.linkAttest.ethereumKeyLinkingAttestation.validity=new S.EpochTimeValidity,this.linkAttest.ethereumKeyLinkingAttestation.validity.notBefore=Z.validFrom,this.linkAttest.ethereumKeyLinkingAttestation.validity.notAfter=Z.expiry,O&&(this.linkAttest.ethereumKeyLinkingAttestation.context=O)}sign(L){var R=this;return B(function*(){const U=o.AsnSerializer.serialize(R.linkAttest.ethereumKeyLinkingAttestation),O=yield b.default.sign({name:m,saltLength:128},L,U);R.linkAttest.signingAlgorithm=new A.AlgorithmIdentifierASN,R.linkAttest.signingAlgorithm.algorithm="1.2.840.113549.1.1.11",R.linkAttest.signatureValue=new Uint8Array(O)})()}fromBytes(L){this.linkAttest=o.AsnParser.parse(L,P.SignedEthereumKeyLinkingAttestation)}fromBase64(L){this.fromBytes((0,w.base64ToUint8array)(L))}getEncoded(){return new Uint8Array(o.AsnSerializer.serialize(this.linkAttest))}getBase64(){return(0,w.uint8arrayToBase64)(this.getEncoded())}getAttestation(){return this.linkAttest}getSignedLinkedAttestation(){return this.linkAttest.ethereumKeyLinkingAttestation.linkedAttestation}getLinkedAttestationData(){const L=this.getSignedLinkedAttestation();return L.attestation.ethereumAddress??L.attestation.nftOwnership}getLinkedAttestationObject(){const L=this.getSignedLinkedAttestation();let R;return L.attestation.ethereumAddress?(R=new g.EthereumAddressAttestation,R.fromObject(L)):(R=new p.NFTOwnershipAttestation,R.fromObject(L)),R}verify(L){var R=this;return B(function*(){let U=R.getLinkedAttestationObject();U.verify(L);let O=U.getSubjectPublicKey();if(!O)throw new Error("getSubjectPublicKey error");const j=o.AsnSerializer.serialize(R.linkAttest.ethereumKeyLinkingAttestation),K=yield b.default.importKey("spki",new Uint8Array(O),{name:m,hash:{name:"SHA-256"}},!0,["verify"]);if(!(yield b.default.verify({name:m,saltLength:128},K,R.linkAttest.signatureValue,j)))throw new Error("Signature verification failed");let Q=Math.round(Date.now()/1e3),W=R.linkAttest.ethereumKeyLinkingAttestation;if(W.validity.notBefore>Q)throw new Error("Linked attestation is not yet valid");if(W.validity.notAfter{let E=b.transaction(o.TABLE_NAME,"readwrite").objectStore(o.TABLE_NAME).get(S);E.onsuccess=()=>{g(E.result),b.close()},E.onerror=C=>{p(C)}})}catch(b){let y="IndexedDB interaction error.";b instanceof Error&&(y=b.message),console.log(b),p(y)}});return function(g,p){return A.apply(this,arguments)}}())})()}saveKey(S,D,A,g){var p=this;return B(function*(){try{let b=yield p.getDb();b.transaction(o.TABLE_NAME,"readwrite").objectStore(o.TABLE_NAME).put({id:S,privateKey:D,publicKey:A,spki:g}).onsuccess=()=>{b.close()}}catch(b){let y="IndexedDB interaction error.";b instanceof Error&&(y=b.message),console.log("Failed to store key: "+y)}})()}getDb(){return B(function*(){return new Promise(function(S,D){let A=indexedDB.open(o.DB_NAME,1);A.onupgradeneeded=function(g){let p=g.target.result;p.objectStoreNames.contains(o.TABLE_NAME)||p.createObjectStore(o.TABLE_NAME,{keyPath:"id"})},A.onsuccess=function(g){S(g.target.result)},A.onerror=function(g){D("Error opening database "+g.target.errorCode)}})})()}}k.KeyStore=o,o.DB_NAME="AttestationKeyStore",o.TABLE_NAME="Keys"},58324:(q,k,x)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.NFTOwnershipAttestation=void 0;const B=x(44936),I=x(14360),M=x(83848),P=x(11021),o=x(12217);k.NFTOwnershipAttestation=class w extends B.AbstractLinkedAttestation{constructor(){super(...arguments),this.TYPE="nftOwnership"}create(D,A,g,p,b,y){this.linkedAttestation=new I.SignedLinkedAttestation,this.linkedAttestation.attestation=new I.LinkedAttestation,this.linkedAttestation.attestation.nftOwnership=new M.NFTOwnershipAttestation,this.linkedAttestation.attestation.nftOwnership.subjectPublicKey=D;const m=(0,B.getValidFromAndExpiry)(p,y);this.linkedAttestation.attestation.nftOwnership.validity=new P.EpochTimeValidity,this.linkedAttestation.attestation.nftOwnership.validity.notBefore=m.validFrom,this.linkedAttestation.attestation.nftOwnership.validity.notAfter=m.expiry;for(let E of A){let C=new M.ERC721;if(C.address=(0,o.hexStringToUint8)(E.address),C.chainId=E.chainId,E.tokenIds){C.tokenIds=[];for(let L of E.tokenIds)C.tokenIds.push((0,o.bnToUint8)(L))}this.linkedAttestation.attestation.nftOwnership.tokens.push(C)}b&&(this.linkedAttestation.attestation.nftOwnership.context=b),this.sign(g)}}},8227:(q,k,x)=>{"use strict";let B;if(Object.defineProperty(k,"__esModule",{value:!0}),"object"==typeof crypto&&crypto.subtle)B=crypto.subtle;else{let I=x(19726).webcrypto;if(!I)throw new Error("webcrypto.subtle missing");B=I.subtle}k.default=B},75338:(q,k,x)=>{"use strict";var B=x(16168),I=x(55056),M=x(41532),P=x(17294),o=x(28723),w=B("%TypeError%");q.exports=function(D,A,g){if("String"!==P(D))throw new w("Assertion failed: `S` must be a String");if(!M(A)||A<0||A>o)throw new w("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==P(g))throw new w("Assertion failed: `unicode` must be a Boolean");return g?A+1>=D.length?A+1:A+I(D,A)["[[CodeUnitCount]]"]:A+1}},79489:(q,k,x)=>{"use strict";var B=x(16168),I=x(83740),M=B("%TypeError%"),P=x(15386),o=B("%Reflect.apply%",!0)||I("%Function.prototype.apply%");q.exports=function(S,D){var A=arguments.length>2?arguments[2]:[];if(!P(A))throw new M("Assertion failed: optional `argumentsList`, if provided, must be a List");return o(S,D,A)}},55056:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(83740),P=x(72999),o=x(71882),w=x(17294),S=x(34601),D=M("String.prototype.charAt"),A=M("String.prototype.charCodeAt");q.exports=function(p,b){if("String"!==w(p))throw new I("Assertion failed: `string` must be a String");var y=p.length;if(b<0||b>=y)throw new I("Assertion failed: `position` must be >= 0, and < the length of `string`");var m=A(p,b),E=D(p,b),C=P(m),L=o(m);if(!C&&!L)return{"[[CodePoint]]":E,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(L||b+1===y)return{"[[CodePoint]]":E,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var R=A(p,b+1);return o(R)?{"[[CodePoint]]":S(m,R),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":E,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},39238:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(17294);q.exports=function(o,w){if("Boolean"!==M(w))throw new I("Assertion failed: Type(done) is not Boolean");return{value:o,done:w}}},46722:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(19668),P=x(88769),o=x(44427),w=x(53018),S=x(4941),D=x(17294);q.exports=function(g,p,b){if("Object"!==D(g))throw new I("Assertion failed: Type(O) is not Object");if(!w(p))throw new I("Assertion failed: IsPropertyKey(P) is not true");return M(o,S,P,g,p,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":b,"[[Writable]]":!0})}},78581:(q,k,x)=>{"use strict";var B=x(16168),I=x(39332)(),M=B("%TypeError%"),P=B("%IteratorPrototype%",!0),o=x(75338),w=x(39238),S=x(46722),D=x(67391),A=x(52366),g=x(6851),p=x(95403),b=x(20321),y=x(3962),m=x(17294),E=x(10779),C=x(14152),L=function(j,K,Z,Q){if("String"!==m(K))throw new M("`S` must be a string");if("Boolean"!==m(Z))throw new M("`global` must be a boolean");if("Boolean"!==m(Q))throw new M("`fullUnicode` must be a boolean");E.set(this,"[[IteratingRegExp]]",j),E.set(this,"[[IteratedString]]",K),E.set(this,"[[Global]]",Z),E.set(this,"[[Unicode]]",Q),E.set(this,"[[Done]]",!1)};P&&(L.prototype=A(P)),S(L.prototype,"next",function(){var j=this;if("Object"!==m(j))throw new M("receiver must be an object");if(!(j instanceof L&&E.has(j,"[[IteratingRegExp]]")&&E.has(j,"[[IteratedString]]")&&E.has(j,"[[Global]]")&&E.has(j,"[[Unicode]]")&&E.has(j,"[[Done]]")))throw new M('"this" value must be a RegExpStringIterator instance');if(E.get(j,"[[Done]]"))return w(void 0,!0);var K=E.get(j,"[[IteratingRegExp]]"),Z=E.get(j,"[[IteratedString]]"),Q=E.get(j,"[[Global]]"),W=E.get(j,"[[Unicode]]"),X=g(K,Z);if(null===X)return E.set(j,"[[Done]]",!0),w(void 0,!0);if(Q){if(""===y(D(X,"0"))){var t=b(D(K,"lastIndex")),a=o(Z,t,W);p(K,"lastIndex",a,!0)}return w(X,!1)}return E.set(j,"[[Done]]",!0),w(X,!1)}),I&&(C(L.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof L.prototype[Symbol.iterator])&&S(L.prototype,Symbol.iterator,function(){return this}),q.exports=function(j,K,Z,Q){return new L(j,K,Z,Q)}},96967:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(28528),P=x(19668),o=x(88769),w=x(87817),S=x(44427),D=x(53018),A=x(4941),g=x(22204),p=x(17294);q.exports=function(y,m,E){if("Object"!==p(y))throw new I("Assertion failed: Type(O) is not Object");if(!D(m))throw new I("Assertion failed: IsPropertyKey(P) is not true");var C=M({Type:p,IsDataDescriptor:S,IsAccessorDescriptor:w},E)?E:g(E);if(!M({Type:p,IsDataDescriptor:S,IsAccessorDescriptor:w},C))throw new I("Assertion failed: Desc is not a valid Property Descriptor");return P(S,A,o,y,m,C)}},88769:(q,k,x)=>{"use strict";var B=x(13181),I=x(88896),M=x(17294);q.exports=function(o){return typeof o<"u"&&B(M,"Property Descriptor","Desc",o),I(o)}},67391:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(31767),P=x(53018),o=x(17294);q.exports=function(S,D){if("Object"!==o(S))throw new I("Assertion failed: Type(O) is not Object");if(!P(D))throw new I("Assertion failed: IsPropertyKey(P) is not true, got "+M(D));return S[D]}},33268:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(20761),P=x(50671),o=x(53018),w=x(31767);q.exports=function(D,A){if(!o(A))throw new I("Assertion failed: IsPropertyKey(P) is not true");var g=M(D,A);if(null!=g){if(!P(g))throw new I(A+" is not a function: "+w(g));return g}}},20761:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(53018),P=x(35102);q.exports=function(w,S){if(!M(S))throw new I("Assertion failed: IsPropertyKey(P) is not true");return P(w)[S]}},87817:(q,k,x)=>{"use strict";var B=x(66270),I=x(13181),M=x(17294);q.exports=function(o){return!(typeof o>"u"||(I(M,"Property Descriptor","Desc",o),!B(o,"[[Get]]")&&!B(o,"[[Set]]")))}},15386:(q,k,x)=>{"use strict";q.exports=x(59391)},50671:(q,k,x)=>{"use strict";q.exports=x(10043)},42951:(q,k,x)=>{"use strict";var I=x(4138)("%Reflect.construct%",!0),M=x(96967);try{M({},"",{"[[Get]]":function(){}})}catch{M=null}if(M&&I){var P={},o={};M(o,"length",{"[[Get]]":function(){throw P},"[[Enumerable]]":!0}),q.exports=function(S){try{I(S,o)}catch(D){return D===P}}}else q.exports=function(S){return"function"==typeof S&&!!S.prototype}},44427:(q,k,x)=>{"use strict";var B=x(66270),I=x(13181),M=x(17294);q.exports=function(o){return!(typeof o>"u"||(I(M,"Property Descriptor","Desc",o),!B(o,"[[Value]]")&&!B(o,"[[Writable]]")))}},41532:(q,k,x)=>{"use strict";var B=x(35647),I=x(93906),M=x(17294),P=x(57623),o=x(76613);q.exports=function(S){if("Number"!==M(S)||P(S)||!o(S))return!1;var D=B(S);return I(D)===D}},53018:q=>{"use strict";q.exports=function(x){return"string"==typeof x||"symbol"==typeof x}},94558:(q,k,x)=>{"use strict";var I=x(16168)("%Symbol.match%",!0),M=x(95746),P=x(70269);q.exports=function(w){if(!w||"object"!=typeof w)return!1;if(I){var S=w[I];if(typeof S<"u")return P(S)}return M(w)}},52366:(q,k,x)=>{"use strict";var B=x(16168),I=B("%Object.create%",!0),M=B("%TypeError%"),P=B("%SyntaxError%"),o=x(15386),w=x(17294),S=x(20523),D=x(10779),A=x(45792)();q.exports=function(p){if(null!==p&&"Object"!==w(p))throw new M("Assertion failed: `proto` must be null or an object");var y,b=arguments.length<2?[]:arguments[1];if(!o(b))throw new M("Assertion failed: `additionalInternalSlotsList` must be an Array");if(I)y=I(p);else if(A)y={__proto__:p};else{if(null===p)throw new P("native Object.create support is required to create null objects");var m=function(){};m.prototype=p,y=new m}return b.length>0&&S(b,function(E){D.set(y,E,void 0)}),y}},6851:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(83740)("RegExp.prototype.exec"),P=x(79489),o=x(67391),w=x(50671),S=x(17294);q.exports=function(A,g){if("Object"!==S(A))throw new I("Assertion failed: `R` must be an Object");if("String"!==S(g))throw new I("Assertion failed: `S` must be a String");var p=o(A,"exec");if(w(p)){var b=P(p,A,[g]);if(null===b||"Object"===S(b))return b;throw new I('"exec" method must return `null` or an Object')}return M(A,g)}},29727:(q,k,x)=>{"use strict";q.exports=x(48624)},4941:(q,k,x)=>{"use strict";var B=x(57623);q.exports=function(M,P){return M===P?0!==M||1/M==1/P:B(M)&&B(P)}},95403:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%"),M=x(53018),P=x(4941),o=x(17294),w=function(){try{return delete[].length,!0}catch{return!1}}();q.exports=function(D,A,g,p){if("Object"!==o(D))throw new I("Assertion failed: `O` must be an Object");if(!M(A))throw new I("Assertion failed: `P` must be a Property Key");if("Boolean"!==o(p))throw new I("Assertion failed: `Throw` must be a Boolean");if(p){if(D[A]=g,w&&!P(D[A],g))throw new I("Attempted to assign to readonly property.");return!0}try{return D[A]=g,!w||P(D[A],g)}catch{return!1}}},71494:(q,k,x)=>{"use strict";var B=x(16168),I=B("%Symbol.species%",!0),M=B("%TypeError%"),P=x(42951),o=x(17294);q.exports=function(S,D){if("Object"!==o(S))throw new M("Assertion failed: Type(O) is not Object");var A=S.constructor;if(typeof A>"u")return D;if("Object"!==o(A))throw new M("O.constructor is not an Object");var g=I?A[I]:void 0;if(null==g)return D;if(P(g))return g;throw new M("no constructor found")}},38121:(q,k,x)=>{"use strict";var B=x(16168),I=B("%Number%"),M=B("%RegExp%"),P=B("%TypeError%"),o=B("%parseInt%"),w=x(83740),S=x(12504),D=w("String.prototype.slice"),A=S(/^0b[01]+$/i),g=S(/^0o[0-7]+$/i),p=S(/^[-+]0x[0-9a-f]+$/i),m=S(new M("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),E=["\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join(""),C=new RegExp("(^["+E+"]+)|(["+E+"]+$)","g"),L=w("String.prototype.replace"),U=x(17294);q.exports=function O(j){if("String"!==U(j))throw new P("Conversion from 'BigInt' to 'number' is not allowed.");if(A(j))return I(o(D(j,2),2));if(g(j))return I(o(D(j,2),8));if(m(j)||p(j))return NaN;var K=function(O){return L(O,C,"")}(j);return K!==j?O(K):I(j)}},70269:q=>{"use strict";q.exports=function(x){return!!x}},89178:(q,k,x)=>{"use strict";var B=x(35647),I=x(93906),M=x(92538),P=x(57623),o=x(76613),w=x(18600);q.exports=function(D){var A=M(D);if(P(A)||0===A)return 0;if(!o(A))return A;var g=I(B(A));return 0===g?0:w(A)*g}},20321:(q,k,x)=>{"use strict";var B=x(28723),I=x(89178);q.exports=function(P){var o=I(P);return o<=0?0:o>B?B:o}},92538:(q,k,x)=>{"use strict";var B=x(16168),I=B("%TypeError%"),M=B("%Number%"),P=x(4848),o=x(1391),w=x(38121);q.exports=function(D){var A=P(D)?D:o(D,M);if("symbol"==typeof A)throw new I("Cannot convert a Symbol value to a number");if("bigint"==typeof A)throw new I("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof A?w(A):M(A)}},35102:(q,k,x)=>{"use strict";var I=x(16168)("%Object%"),M=x(29727);q.exports=function(o){return M(o),I(o)}},1391:(q,k,x)=>{"use strict";var B=x(66730);q.exports=function(M){return arguments.length>1?B(M,arguments[1]):B(M)}},22204:(q,k,x)=>{"use strict";var B=x(66270),M=x(16168)("%TypeError%"),P=x(17294),o=x(70269),w=x(50671);q.exports=function(D){if("Object"!==P(D))throw new M("ToPropertyDescriptor requires an object");var A={};if(B(D,"enumerable")&&(A["[[Enumerable]]"]=o(D.enumerable)),B(D,"configurable")&&(A["[[Configurable]]"]=o(D.configurable)),B(D,"value")&&(A["[[Value]]"]=D.value),B(D,"writable")&&(A["[[Writable]]"]=o(D.writable)),B(D,"get")){var g=D.get;if(typeof g<"u"&&!w(g))throw new M("getter must be a function");A["[[Get]]"]=g}if(B(D,"set")){var p=D.set;if(typeof p<"u"&&!w(p))throw new M("setter must be a function");A["[[Set]]"]=p}if((B(A,"[[Get]]")||B(A,"[[Set]]"))&&(B(A,"[[Value]]")||B(A,"[[Writable]]")))throw new M("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return A}},3962:(q,k,x)=>{"use strict";var B=x(16168),I=B("%String%"),M=B("%TypeError%");q.exports=function(o){if("symbol"==typeof o)throw new M("Cannot convert a Symbol value to a string");return I(o)}},17294:(q,k,x)=>{"use strict";var B=x(24012);q.exports=function(M){return"symbol"==typeof M?"Symbol":"bigint"==typeof M?"BigInt":B(M)}},34601:(q,k,x)=>{"use strict";var B=x(16168),I=B("%TypeError%"),M=B("%String.fromCharCode%"),P=x(72999),o=x(71882);q.exports=function(S,D){if(!P(S)||!o(D))throw new I("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return M(S)+M(D)}},35647:(q,k,x)=>{"use strict";var I=x(16168)("%Math.abs%");q.exports=function(P){return I(P)}},93906:(q,k,x)=>{"use strict";var B=x(17294),I=Math.floor;q.exports=function(P){return"BigInt"===B(P)?P:I(P)}},48624:(q,k,x)=>{"use strict";var I=x(16168)("%TypeError%");q.exports=function(P,o){if(null==P)throw new I(o||"Cannot call method on "+P);return P}},24012:q=>{"use strict";q.exports=function(x){return null===x?"Null":typeof x>"u"?"Undefined":"function"==typeof x||"object"==typeof x?"Object":"number"==typeof x?"Number":"boolean"==typeof x?"Boolean":"string"==typeof x?"String":void 0}},4138:(q,k,x)=>{"use strict";q.exports=x(16168)},19668:(q,k,x)=>{"use strict";var B=x(37945),I=x(16168),M=B()&&I("%Object.defineProperty%",!0),P=B.hasArrayLengthDefineBug(),o=P&&x(59391),S=x(83740)("Object.prototype.propertyIsEnumerable");q.exports=function(A,g,p,b,y,m){if(!M){if(!A(m)||!m["[[Configurable]]"]||!m["[[Writable]]"]||y in b&&S(b,y)!==!!m["[[Enumerable]]"])return!1;var E=m["[[Value]]"];return b[y]=E,g(b[y],E)}return P&&"length"===y&&"[[Value]]"in m&&o(b)&&b.length!==m["[[Value]]"]?(b.length=m["[[Value]]"],b.length===m["[[Value]]"]):(M(b,y,p(m)),!0)}},59391:(q,k,x)=>{"use strict";var I=x(16168)("%Array%"),M=!I.isArray&&x(83740)("Object.prototype.toString");q.exports=I.isArray||function(o){return"[object Array]"===M(o)}},13181:(q,k,x)=>{"use strict";var B=x(16168),I=B("%TypeError%"),M=B("%SyntaxError%"),P=x(66270),w={"Property Descriptor":function(D){var A={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var g in D)if(P(D,g)&&!A[g])return!1;var p=P(D,"[[Value]]"),b=P(D,"[[Get]]")||P(D,"[[Set]]");if(p&&b)throw new I("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":x(95219),"Iterator Record":function(D){return P(D,"[[Iterator]]")&&P(D,"[[NextMethod]]")&&P(D,"[[Done]]")},"PromiseCapability Record":function(D){return D&&P(D,"[[Resolve]]")&&"function"==typeof D["[[Resolve]]"]&&P(D,"[[Reject]]")&&"function"==typeof D["[[Reject]]"]&&P(D,"[[Promise]]")&&D["[[Promise]]"]&&"function"==typeof D["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(D){return D&&P(D,"[[Completion]]")&&P(D,"[[Capability]]")&&w["PromiseCapability Record"](D["[[Capability]]"])}};q.exports=function(D,A,g,p){var b=w[A];if("function"!=typeof b)throw new M("unknown record type: "+A);if("Object"!==D(p)||!b(p))throw new I(g+" must be a "+A)}},20523:q=>{"use strict";q.exports=function(x,B){for(var I=0;I{"use strict";q.exports=function(x){if(typeof x>"u")return x;var B={};return"[[Value]]"in x&&(B.value=x["[[Value]]"]),"[[Writable]]"in x&&(B.writable=!!x["[[Writable]]"]),"[[Get]]"in x&&(B.get=x["[[Get]]"]),"[[Set]]"in x&&(B.set=x["[[Set]]"]),"[[Enumerable]]"in x&&(B.enumerable=!!x["[[Enumerable]]"]),"[[Configurable]]"in x&&(B.configurable=!!x["[[Configurable]]"]),B}},76613:q=>{"use strict";var k=Number.isNaN||function(x){return x!=x};q.exports=Number.isFinite||function(x){return"number"==typeof x&&!k(x)&&x!==1/0&&x!==-1/0}},72999:q=>{"use strict";q.exports=function(x){return"number"==typeof x&&x>=55296&&x<=56319}},95219:(q,k,x)=>{"use strict";var B=x(66270);q.exports=function(M){return B(M,"[[StartIndex]]")&&B(M,"[[EndIndex]]")&&M["[[StartIndex]]"]>=0&&M["[[EndIndex]]"]>=M["[[StartIndex]]"]&&String(parseInt(M["[[StartIndex]]"],10))===String(M["[[StartIndex]]"])&&String(parseInt(M["[[EndIndex]]"],10))===String(M["[[EndIndex]]"])}},57623:q=>{"use strict";q.exports=Number.isNaN||function(x){return x!=x}},4848:q=>{"use strict";q.exports=function(x){return null===x||"function"!=typeof x&&"object"!=typeof x}},28528:(q,k,x)=>{"use strict";var B=x(16168),I=x(66270),M=B("%TypeError%");q.exports=function(o,w){if("Object"!==o.Type(w))return!1;var S={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var D in w)if(I(w,D)&&!S[D])return!1;if(o.IsDataDescriptor(w)&&o.IsAccessorDescriptor(w))throw new M("Property Descriptors may not be both accessor and data descriptors");return!0}},71882:q=>{"use strict";q.exports=function(x){return"number"==typeof x&&x>=56320&&x<=57343}},28723:(q,k,x)=>{"use strict";var B=x(16168),I=B("%Math%"),M=B("%Number%");q.exports=M.MAX_SAFE_INTEGER||I.pow(2,53)-1},18600:q=>{"use strict";q.exports=function(x){return x>=0?1:-1}},54725:(q,k,x)=>{var B=x(95731).default;function I(){"use strict";q.exports=I=function(){return M},q.exports.__esModule=!0,q.exports.default=q.exports;var M={},P=Object.prototype,o=P.hasOwnProperty,w=Object.defineProperty||function(e,i,u){e[i]=u.value},S="function"==typeof Symbol?Symbol:{},D=S.iterator||"@@iterator",A=S.asyncIterator||"@@asyncIterator",g=S.toStringTag||"@@toStringTag";function p(e,i,u){return Object.defineProperty(e,i,{value:u,enumerable:!0,configurable:!0,writable:!0}),e[i]}try{p({},"")}catch{p=function(u,d,c){return u[d]=c}}function b(e,i,u,d){var r=Object.create((i&&i.prototype instanceof E?i:E).prototype),h=new t(d||[]);return w(r,"_invoke",{value:Q(e,u,h)}),r}function y(e,i,u){try{return{type:"normal",arg:e.call(i,u)}}catch(d){return{type:"throw",arg:d}}}M.wrap=b;var m={};function E(){}function C(){}function L(){}var R={};p(R,D,function(){return this});var U=Object.getPrototypeOf,O=U&&U(U(a([])));O&&O!==P&&o.call(O,D)&&(R=O);var j=L.prototype=E.prototype=Object.create(R);function K(e){["next","throw","return"].forEach(function(i){p(e,i,function(u){return this._invoke(i,u)})})}function Z(e,i){function u(c,r,h,F){var T=y(e[c],e,r);if("throw"!==T.type){var H=T.arg,ae=H.value;return ae&&"object"==B(ae)&&o.call(ae,"__await")?i.resolve(ae.__await).then(function(Ae){u("next",Ae,h,F)},function(Ae){u("throw",Ae,h,F)}):i.resolve(ae).then(function(Ae){H.value=Ae,h(H)},function(Ae){return u("throw",Ae,h,F)})}F(T.arg)}var d;w(this,"_invoke",{value:function(r,h){function F(){return new i(function(T,H){u(r,h,T,H)})}return d=d?d.then(F,F):F()}})}function Q(e,i,u){var d="suspendedStart";return function(c,r){if("executing"===d)throw new Error("Generator is already running");if("completed"===d){if("throw"===c)throw r;return{value:void 0,done:!0}}for(u.method=c,u.arg=r;;){var h=u.delegate;if(h){var F=W(h,u);if(F){if(F===m)continue;return F}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===d)throw d="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);d="executing";var T=y(e,i,u);if("normal"===T.type){if(d=u.done?"completed":"suspendedYield",T.arg===m)continue;return{value:T.arg,done:u.done}}"throw"===T.type&&(d="completed",u.method="throw",u.arg=T.arg)}}}function W(e,i){var u=i.method,d=e.iterator[u];if(void 0===d)return i.delegate=null,"throw"===u&&e.iterator.return&&(i.method="return",i.arg=void 0,W(e,i),"throw"===i.method)||"return"!==u&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+u+"' method")),m;var c=y(d,e.iterator,i.arg);if("throw"===c.type)return i.method="throw",i.arg=c.arg,i.delegate=null,m;var r=c.arg;return r?r.done?(i[e.resultName]=r.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=void 0),i.delegate=null,m):r:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,m)}function X(e){var i={tryLoc:e[0]};1 in e&&(i.catchLoc=e[1]),2 in e&&(i.finallyLoc=e[2],i.afterLoc=e[3]),this.tryEntries.push(i)}function _(e){var i=e.completion||{};i.type="normal",delete i.arg,e.completion=i}function t(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(X,this),this.reset(!0)}function a(e){if(e){var i=e[D];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var u=-1,d=function c(){for(;++u=0;--c){var r=this.tryEntries[c],h=r.completion;if("root"===r.tryLoc)return d("end");if(r.tryLoc<=this.prev){var F=o.call(r,"catchLoc"),T=o.call(r,"finallyLoc");if(F&&T){if(this.prev=0;--d){var c=this.tryEntries[d];if(c.tryLoc<=this.prev&&o.call(c,"finallyLoc")&&this.prev=0;--u){var d=this.tryEntries[u];if(d.finallyLoc===i)return this.complete(d.completion,d.afterLoc),_(d),m}},catch:function(i){for(var u=this.tryEntries.length-1;u>=0;--u){var d=this.tryEntries[u];if(d.tryLoc===i){var c=d.completion;if("throw"===c.type){var r=c.arg;_(d)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(i,u,d){return this.delegate={iterator:a(i),resultName:u,nextLoc:d},"next"===this.method&&(this.arg=void 0),m}},M}q.exports=I,q.exports.__esModule=!0,q.exports.default=q.exports},95731:q=>{function k(x){return q.exports=k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(B){return typeof B}:function(B){return B&&"function"==typeof Symbol&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},q.exports.__esModule=!0,q.exports.default=q.exports,k(x)}q.exports=k,q.exports.__esModule=!0,q.exports.default=q.exports},3033:(q,k,x)=>{var B=x(54725)();q.exports=B;try{regeneratorRuntime=B}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=B:Function("r","regeneratorRuntime = r")(B)}},29161:(q,k,x)=>{"use strict";x.d(k,{kU:()=>b,Dp:()=>p,ET:()=>E});var o=x(91744);class w{constructor(L,R,U){this.name=L,this.prefix=R,this.baseEncode=U}encode(L){if(L instanceof Uint8Array)return`${this.prefix}${this.baseEncode(L)}`;throw Error("Unknown type, must be binary type")}}class S{constructor(L,R,U){if(this.name=L,this.prefix=R,void 0===R.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=R.codePointAt(0),this.baseDecode=U}decode(L){if("string"==typeof L){if(L.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(L)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(L.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(L){return A(this,L)}}class D{constructor(L){this.decoders=L}or(L){return A(this,L)}decode(L){const U=this.decoders[L[0]];if(U)return U.decode(L);throw RangeError(`Unable to decode multibase string ${JSON.stringify(L)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const A=(C,L)=>new D({...C.decoders||{[C.prefix]:C},...L.decoders||{[L.prefix]:L}});class g{constructor(L,R,U,O){this.name=L,this.prefix=R,this.baseEncode=U,this.baseDecode=O,this.encoder=new w(L,R,U),this.decoder=new S(L,R,O)}encode(L){return this.encoder.encode(L)}decode(L){return this.decoder.decode(L)}}const p=({name:C,prefix:L,encode:R,decode:U})=>new g(C,L,R,U),b=({prefix:C,name:L,alphabet:R})=>{const{encode:U,decode:O}=function B(C,L){if(C.length>=255)throw new TypeError("Alphabet too long");for(var R=new Uint8Array(256),U=0;U>>0,c=new Uint8Array(d);s[e];){var r=R[s.charCodeAt(e)];if(255===r)return;for(var h=0,F=d-1;(0!==r||h>>0)%256>>>0,r=r/256>>>0;if(0!==r)throw new Error("Non-zero carry");u=h,e++}if(" "!==s[e]){for(var T=d-u;T!==d&&0===c[T];)T++;for(var H=new Uint8Array(i+(d-T)),ae=i;T!==d;)H[ae++]=c[T++];return H}}}return{encode:function _(s){if(s instanceof Uint8Array||(ArrayBuffer.isView(s)?s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength):Array.isArray(s)&&(s=Uint8Array.from(s))),!(s instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===s.length)return"";for(var e=0,i=0,u=0,d=s.length;u!==d&&0===s[u];)u++,e++;for(var c=(d-u)*X+1>>>0,r=new Uint8Array(c);u!==d;){for(var h=s[u],F=0,T=c-1;(0!==h||F>>0)%Z>>>0,h=h/Z>>>0;if(0!==h)throw new Error("Non-zero carry");i=F,u++}for(var H=c-i;H!==c&&0===r[H];)H++;for(var ae=Q.repeat(e);H(0,o.coerce)(O(j))})},E=({name:C,prefix:L,bitsPerChar:R,alphabet:U})=>p({prefix:L,name:C,encode:O=>((C,L,R)=>{const U="="===L[L.length-1],O=(1<R;)K-=R,j+=L[O&Z>>K];if(K&&(j+=L[O&Z<((C,L,R,U)=>{const O={};for(let X=0;X=8&&(Z-=8,K[W++]=255&Q>>Z)}if(Z>=R||255&Q<<8-Z)throw new SyntaxError("Unexpected end of data");return K})(O,U,R,C)})},79515:(q,k,x)=>{"use strict";x.r(k),x.d(k,{base32:()=>I,base32hex:()=>w,base32hexpad:()=>D,base32hexpadupper:()=>A,base32hexupper:()=>S,base32pad:()=>P,base32padupper:()=>o,base32upper:()=>M,base32z:()=>g});var B=x(29161);const I=(0,B.ET)({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),M=(0,B.ET)({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),P=(0,B.ET)({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),o=(0,B.ET)({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),w=(0,B.ET)({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),S=(0,B.ET)({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),D=(0,B.ET)({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),A=(0,B.ET)({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),g=(0,B.ET)({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})},59942:(q,k,x)=>{"use strict";x.r(k),x.d(k,{base58btc:()=>I,base58flickr:()=>M});var B=x(29161);const I=(0,B.kU)({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),M=(0,B.kU)({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})},91744:(q,k,x)=>{"use strict";x.r(k),x.d(k,{coerce:()=>o,empty:()=>B,equals:()=>P,fromHex:()=>M,fromString:()=>S,isBinary:()=>w,toHex:()=>I,toString:()=>D});const B=new Uint8Array(0),I=A=>A.reduce((g,p)=>g+p.toString(16).padStart(2,"0"),""),M=A=>{const g=A.match(/../g);return g?new Uint8Array(g.map(p=>parseInt(p,16))):B},P=(A,g)=>{if(A===g)return!0;if(A.byteLength!==g.byteLength)return!1;for(let p=0;p{if(A instanceof Uint8Array&&"Uint8Array"===A.constructor.name)return A;if(A instanceof ArrayBuffer)return new Uint8Array(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength);throw new Error("Unknown type, must be binary type")},w=A=>A instanceof ArrayBuffer||ArrayBuffer.isView(A),S=A=>(new TextEncoder).encode(A),D=A=>(new TextDecoder).decode(A)},22834:(q,k,x)=>{"use strict";x.r(k),x.d(k,{Digest:()=>w,create:()=>M,decode:()=>P,equals:()=>o});var B=x(91744),I=x(63500);const M=(S,D)=>{const A=D.byteLength,g=I.encodingLength(S),p=g+I.encodingLength(A),b=new Uint8Array(p+A);return I.encodeTo(S,b,0),I.encodeTo(A,b,g),b.set(D,p),new w(S,A,D,b)},P=S=>{const D=(0,B.coerce)(S),[A,g]=I.decode(D),[p,b]=I.decode(D.subarray(g)),y=D.subarray(g+b);if(y.byteLength!==p)throw new Error("Incorrect length");return new w(A,p,y,D)},o=(S,D)=>S===D||S.code===D.code&&S.size===D.size&&(0,B.equals)(S.bytes,D.bytes);class w{constructor(D,A,g,p){this.code=D,this.size=A,this.digest=g,this.bytes=p}}},53907:(q,k,x)=>{"use strict";x.r(k),x.d(k,{Hasher:()=>M,from:()=>I});var B=x(22834);const I=({name:P,code:o,encode:w})=>new M(P,o,w);class M{constructor(o,w,S){this.name=o,this.code=w,this.encode=S}digest(o){if(o instanceof Uint8Array){const w=this.encode(o);return w instanceof Uint8Array?B.create(this.code,w):w.then(S=>B.create(this.code,S))}throw Error("Unknown type, must be binary type")}}},8422:(q,k,x)=>{"use strict";x.r(k),x.d(k,{CID:()=>w,bytes:()=>o,digest:()=>I,hasher:()=>U,varint:()=>B});var B=x(63500),I=x(22834),M=x(59942),P=x(79515),o=x(91744);class w{constructor(j,K,Z,Q){this.code=K,this.version=j,this.multihash=Z,this.bytes=Q,this.byteOffset=Q.byteOffset,this.byteLength=Q.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:E,byteLength:E,code:m,version:m,multihash:m,bytes:m,_baseCache:E,asCID:E})}toV0(){if(0===this.version)return this;{const{code:j,multihash:K}=this;if(j!==g)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(K.code!==p)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return w.createV0(K)}}toV1(){switch(this.version){case 0:{const{code:j,digest:K}=this.multihash,Z=I.create(j,K);return w.createV1(this.code,Z)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(j){return j&&this.code===j.code&&this.version===j.version&&I.equals(this.multihash,j.multihash)}toString(j){const{bytes:K,version:Z,_baseCache:Q}=this;return 0===Z?D(K,Q,j||M.base58btc.encoder):A(K,Q,j||P.base32.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(j){return L(/^0\.0/,R),!(!j||!j[y]&&j.asCID!==j)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(j){if(j instanceof w)return j;if(null!=j&&j.asCID===j){const{version:K,code:Z,multihash:Q,bytes:W}=j;return new w(K,Z,Q,W||b(K,Z,Q.bytes))}if(null!=j&&!0===j[y]){const{version:K,multihash:Z,code:Q}=j,W=I.decode(Z);return w.create(K,Q,W)}return null}static create(j,K,Z){if("number"!=typeof K)throw new Error("String codecs are no longer supported");switch(j){case 0:if(K!==g)throw new Error(`Version 0 CID must use dag-pb (code: ${g}) block encoding`);return new w(j,K,Z,Z.bytes);case 1:{const Q=b(j,K,Z.bytes);return new w(j,K,Z,Q)}default:throw new Error("Invalid version")}}static createV0(j){return w.create(0,g,j)}static createV1(j,K){return w.create(1,j,K)}static decode(j){const[K,Z]=w.decodeFirst(j);if(Z.length)throw new Error("Incorrect length");return K}static decodeFirst(j){const K=w.inspectBytes(j),Z=K.size-K.multihashSize,Q=(0,o.coerce)(j.subarray(Z,Z+K.multihashSize));if(Q.byteLength!==K.multihashSize)throw new Error("Incorrect length");const W=Q.subarray(K.multihashSize-K.digestSize),X=new I.Digest(K.multihashCode,K.digestSize,W,Q);return[0===K.version?w.createV0(X):w.createV1(K.codec,X),j.subarray(K.size)]}static inspectBytes(j){let K=0;const Z=()=>{const[e,i]=B.decode(j.subarray(K));return K+=i,e};let Q=Z(),W=g;if(18===Q?(Q=0,K=0):1===Q&&(W=Z()),0!==Q&&1!==Q)throw new RangeError(`Invalid CID version ${Q}`);const X=K,_=Z(),t=Z(),a=K+t;return{version:Q,codec:W,multihashCode:_,digestSize:t,multihashSize:a-X,size:a}}static parse(j,K){const[Z,Q]=S(j,K),W=w.decode(Q);return W._baseCache.set(Z,j),W}}const S=(O,j)=>{switch(O[0]){case"Q":return[M.base58btc.prefix,(j||M.base58btc).decode(`${M.base58btc.prefix}${O}`)];case M.base58btc.prefix:return[M.base58btc.prefix,(j||M.base58btc).decode(O)];case P.base32.prefix:return[P.base32.prefix,(j||P.base32).decode(O)];default:if(null==j)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[O[0],j.decode(O)]}},D=(O,j,K)=>{const{prefix:Z}=K;if(Z!==M.base58btc.prefix)throw Error(`Cannot string encode V0 in ${K.name} encoding`);const Q=j.get(Z);if(null==Q){const W=K.encode(O).slice(1);return j.set(Z,W),W}return Q},A=(O,j,K)=>{const{prefix:Z}=K,Q=j.get(Z);if(null==Q){const W=K.encode(O);return j.set(Z,W),W}return Q},g=112,p=18,b=(O,j,K)=>{const Z=B.encodingLength(O),Q=Z+B.encodingLength(j),W=new Uint8Array(Q+K.byteLength);return B.encodeTo(O,W,0),B.encodeTo(j,W,Z),W.set(K,Q),W},y=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},E={writable:!1,enumerable:!1,configurable:!1},L=(O,j)=>{if(!O.test("0.0.0-dev"))throw new Error(j);console.warn(j)},R="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";var U=x(53907)},63500:(q,k,x)=>{"use strict";x.r(k),x.d(k,{decode:()=>Q,encodeTo:()=>W,encodingLength:()=>X});var o=Math.pow(2,31),p=Math.pow(2,7),b=Math.pow(2,14),y=Math.pow(2,21),m=Math.pow(2,28),E=Math.pow(2,35),C=Math.pow(2,42),L=Math.pow(2,49),R=Math.pow(2,56),U=Math.pow(2,63);const Z={encode:function w(_,t,a){t=t||[];for(var s=a=a||0;_>=o;)t[a++]=255&_|128,_/=128;for(;-128&_;)t[a++]=255&_|128,_>>>=7;return t[a]=0|_,w.bytes=a-s+1,t},decode:function g(_,s){var u,a=0,e=0,i=s=s||0,d=_.length;do{if(i>=d)throw g.bytes=0,new RangeError("Could not decode varint");u=_[i++],a+=e<28?(127&u)<=128);return g.bytes=i-s,a},encodingLength:function(_){return _[Z.decode(_,t),Z.decode.bytes],W=(_,t,a=0)=>(Z.encode(_,t,a),t),X=_=>Z.encodingLength(_)},44946:q=>{"use strict";q.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},8770:q=>{"use strict";q.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:q=>{"use strict";q.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},29799:q=>{"use strict";q.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},18597:q=>{"use strict";q.exports={i8:"6.5.4"}},22562:q=>{"use strict";q.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},20590:q=>{"use strict";q.exports={i8:"6.5.4"}}},q=>{q(q.s=22641)}]); \ No newline at end of file diff --git a/angular-bare-bones-demo/dist/runtime.022ba78872adf2db.js b/angular-bare-bones-demo/dist/runtime.022ba78872adf2db.js new file mode 100644 index 000000000..e32b97655 --- /dev/null +++ b/angular-bare-bones-demo/dist/runtime.022ba78872adf2db.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,g={},_={};function r(e){var n=_[e];if(void 0!==n)return n.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,r.amdO={},e=[],r.O=(n,t,o,i)=>{if(!t){var a=1/0;for(f=0;f=i)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(u=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,o,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,o){if(1&o&&(t=this(t)),8&o||"object"==typeof t&&t&&(4&o&&t.__esModule||16&o&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var f={};n=n||[null,e({}),e([]),e(e)];for(var a=2&o&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(u=>f[u]=()=>t[u]);return f.default=()=>t,r.d(i,f),i}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{296:"1e4f5630973db106",639:"c511f58df2809e7d",729:"372fe1c47762dd89",819:"f041a64911f370c9"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="Angular-bare-bones-demo:";r.l=(t,o,i,f)=>{if(e[t])e[t].push(o);else{var a,u;if(void 0!==i)for(var d=document.getElementsByTagName("script"),s=0;s{a.onerror=a.onload=null,clearTimeout(b);var m=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),m&&m.forEach(h=>h(p)),v)return v(p)},b=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),u&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/token-negotiator-examples/angular-bare-bones-demo/",(()=>{var e={666:0};r.f.j=(o,i)=>{var f=r.o(e,o)?e[o]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=o){var a=new Promise((l,c)=>f=e[o]=[l,c]);i.push(f[2]=a);var u=r.p+r.u(o),d=new Error;r.l(u,l=>{if(r.o(e,o)&&(0!==(f=e[o])&&(e[o]=void 0),f)){var c=l&&("load"===l.type?"missing":l.type),b=l&&l.target&&l.target.src;d.message="Loading chunk "+o+" failed.\n("+c+": "+b+")",d.name="ChunkLoadError",d.type=c,d.request=b,f[1](d)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var n=(o,i)=>{var d,s,[f,a,u]=i,l=0;if(f.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(u)var c=u(r)}for(o&&o(i);l=6.9.0" } @@ -658,6 +660,7 @@ "version": "7.16.12", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz", "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.16.7", "@babel/generator": "^7.16.8", @@ -687,6 +690,7 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, "bin": { "semver": "bin/semver.js" } @@ -695,6 +699,7 @@ "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -703,6 +708,7 @@ "version": "7.16.8", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "dev": true, "dependencies": { "@babel/types": "^7.16.8", "jsesc": "^2.5.1", @@ -716,6 +722,7 @@ "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -748,6 +755,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.5.tgz", "integrity": "sha512-1RkbFGUKex4lvsB9yhIfWltJM5cZKUftB2eNajaDv3dCMEp49iBG0K14uH8NnX9IPux2+mK7JGEOB0jn48/J6w==", + "dev": true, "dependencies": { "@babel/compat-data": "^7.21.5", "@babel/helper-validator-option": "^7.21.0", @@ -766,6 +774,7 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, "bin": { "semver": "bin/semver.js" } @@ -856,6 +865,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "dev": true, "dependencies": { "@babel/helper-compilation-targets": "^7.17.7", "@babel/helper-plugin-utils": "^7.16.7", @@ -872,6 +882,7 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, "bin": { "semver": "bin/semver.js" } @@ -880,6 +891,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.21.5.tgz", "integrity": "sha512-IYl4gZ3ETsWocUWgsFZLM5i1BYx9SoemminVEXadgLBa9TdeorzgLKm8wWLA6J1N/kT3Kch8XIk1laNzYoHKvQ==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -888,6 +900,7 @@ "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "dev": true, "dependencies": { "@babel/template": "^7.20.7", "@babel/types": "^7.21.0" @@ -900,6 +913,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", @@ -913,6 +927,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, "dependencies": { "@babel/types": "^7.18.6" }, @@ -936,6 +951,7 @@ "version": "7.21.4", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "dev": true, "dependencies": { "@babel/types": "^7.21.4" }, @@ -947,6 +963,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.5.tgz", "integrity": "sha512-bI2Z9zBGY2q5yMHoBvJ2a9iX3ZOAzJPm7Q8Yz6YeoUjU/Cvhmi2G4QyTNyPBqqXSgTjUxRg3L0xV45HvkNWWBw==", + "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.21.5", "@babel/helper-module-imports": "^7.21.4", @@ -965,6 +982,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", @@ -990,6 +1008,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -1059,6 +1078,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", + "dev": true, "dependencies": { "@babel/types": "^7.21.5" }, @@ -1082,6 +1102,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, "dependencies": { "@babel/types": "^7.18.6" }, @@ -1093,6 +1114,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -1101,6 +1123,7 @@ "version": "7.19.1", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -1109,6 +1132,7 @@ "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -1146,6 +1170,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.5.tgz", "integrity": "sha512-BSY+JSlHxOmGsPTydUkPf1MdMQ3M81x5xGCOVgWM3G8XH77sJ292Y2oqcp0CbbgxhqBuI46iUz1tT7hqP7EfgA==", + "dev": true, "dependencies": { "@babel/template": "^7.20.7", "@babel/traverse": "^7.21.5", @@ -1159,6 +1184,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", @@ -1172,6 +1198,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.18.6", "chalk": "^2.0.0", @@ -1185,6 +1212,7 @@ "version": "7.21.8", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.8.tgz", "integrity": "sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==", + "dev": true, "bin": { "parser": "bin/babel-parser.js" }, @@ -2091,6 +2119,7 @@ "version": "7.16.10", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.10.tgz", "integrity": "sha512-9nwTiqETv2G7xI4RvXHNfpGdr8pAA+Q/YtN3yLK7OoK7n9OibVm/xymJ838a9A6E/IciOLPj82lZk0fW6O4O7w==", + "dev": true, "dependencies": { "@babel/helper-module-imports": "^7.16.7", "@babel/helper-plugin-utils": "^7.16.7", @@ -2110,6 +2139,7 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, "bin": { "semver": "bin/semver.js" } @@ -2355,6 +2385,7 @@ "version": "7.16.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.16.7", "@babel/parser": "^7.16.7", @@ -2368,6 +2399,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.5.tgz", "integrity": "sha512-AhQoI3YjWi6u/y/ntv7k48mcrCXmus0t79J9qPNlk/lAsFlCiJ047RmbfMOawySTHtywXhbXgpx/8nXMYd+oFw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.21.4", "@babel/generator": "^7.21.5", @@ -2388,6 +2420,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.5.tgz", "integrity": "sha512-SrKK/sRv8GesIW1bDagf9cCG38IOMYZusoe1dfg0D8aiUe3Amvoj1QtjTPAWcfrZFvIwlleLb0gxzQidL9w14w==", + "dev": true, "dependencies": { "@babel/types": "^7.21.5", "@jridgewell/gen-mapping": "^0.3.2", @@ -2402,6 +2435,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -2415,6 +2449,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.5.tgz", "integrity": "sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q==", + "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.21.5", "@babel/helper-validator-identifier": "^7.19.1", @@ -2507,296 +2542,6 @@ "typechain": "^8.1.1" } }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/@typechain/ethers-v5": { - "version": "10.2.1", - "resolved": "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.2.1.tgz", - "integrity": "sha512-n3tQmCZjRE6IU4h6lqUGiQ1j866n5MTCBJreNEHHVWXa2u9GJTaeYyU1/k+1qLutkyw+sS6VAN+AbeiTqsxd/A==", - "dependencies": { - "lodash": "^4.17.15", - "ts-essentials": "^7.0.1" - }, - "peerDependencies": { - "@ethersproject/abi": "^5.0.0", - "@ethersproject/providers": "^5.0.0", - "ethers": "^5.1.3", - "typechain": "^8.1.1", - "typescript": ">=4.3.0" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/@typechain/hardhat": { - "version": "6.1.6", - "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-6.1.6.tgz", - "integrity": "sha512-BiVnegSs+ZHVymyidtK472syodx1sXYlYJJixZfRstHVGYTi8V1O7QG4nsjyb0PC/LORcq7sfBUcHto1y6UgJA==", - "dependencies": { - "fs-extra": "^9.1.0" - }, - "peerDependencies": { - "@ethersproject/abi": "^5.4.7", - "@ethersproject/providers": "^5.4.7", - "@typechain/ethers-v5": "^10.2.1", - "ethers": "^5.4.7", - "hardhat": "^2.9.9", - "typechain": "^8.1.1" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", - "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/hardhat": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.13.1.tgz", - "integrity": "sha512-ZZL7LQxHmbw4JQJsiEv2qE35nbR+isr2sIdtgZVPp0+zWqRkpr1OT7gmvhCNYfjpEPyfjZIxWriQWlphJhVPLQ==", - "dependencies": { - "@ethersproject/abi": "^5.1.2", - "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/ethereumjs-block": "5.0.0", - "@nomicfoundation/ethereumjs-blockchain": "7.0.0", - "@nomicfoundation/ethereumjs-common": "4.0.0", - "@nomicfoundation/ethereumjs-evm": "2.0.0", - "@nomicfoundation/ethereumjs-rlp": "5.0.0", - "@nomicfoundation/ethereumjs-statemanager": "2.0.0", - "@nomicfoundation/ethereumjs-trie": "6.0.0", - "@nomicfoundation/ethereumjs-tx": "5.0.0", - "@nomicfoundation/ethereumjs-util": "9.0.0", - "@nomicfoundation/ethereumjs-vm": "7.0.0", - "@nomicfoundation/solidity-analyzer": "^0.1.0", - "@sentry/node": "^5.18.1", - "@types/bn.js": "^5.1.0", - "@types/lru-cache": "^5.1.0", - "abort-controller": "^3.0.0", - "adm-zip": "^0.4.16", - "aggregate-error": "^3.0.0", - "ansi-escapes": "^4.3.0", - "chalk": "^2.4.2", - "chokidar": "^3.4.0", - "ci-info": "^2.0.0", - "debug": "^4.1.1", - "enquirer": "^2.3.0", - "env-paths": "^2.2.0", - "ethereum-cryptography": "^1.0.3", - "ethereumjs-abi": "^0.6.8", - "find-up": "^2.1.0", - "fp-ts": "1.19.3", - "fs-extra": "^7.0.1", - "glob": "7.2.0", - "immutable": "^4.0.0-rc.12", - "io-ts": "1.10.4", - "keccak": "^3.0.2", - "lodash": "^4.17.11", - "mnemonist": "^0.38.0", - "mocha": "^10.0.0", - "p-map": "^4.0.0", - "qs": "^6.7.0", - "raw-body": "^2.4.1", - "resolve": "1.17.0", - "semver": "^6.3.0", - "solc": "0.7.3", - "source-map-support": "^0.5.13", - "stacktrace-parser": "^0.1.10", - "tsort": "0.0.1", - "undici": "^5.14.0", - "uuid": "^8.3.2", - "ws": "^7.4.6" - }, - "bin": { - "hardhat": "internal/cli/bootstrap.js" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "ts-node": "*", - "typescript": "*" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - }, - "typescript": { - "optional": true - } - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/hardhat/node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", - "engines": { - "node": ">=4" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dependencies": { - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "peerDependencies": { - "typescript": ">=3.7.0" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/typechain": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.2.0.tgz", - "integrity": "sha512-tZqhqjxJ9xAS/Lh32jccTjMkpx7sTdUVVHAy5Bf0TIer5QFNYXotiX74oCvoVYjyxUKDK3MXHtMFzMyD3kE+jg==", - "dependencies": { - "@types/prettier": "^2.1.1", - "debug": "^4.3.1", - "fs-extra": "^7.0.0", - "glob": "7.1.7", - "js-sha3": "^0.8.0", - "lodash": "^4.17.15", - "mkdirp": "^1.0.4", - "prettier": "^2.3.1", - "ts-command-line-args": "^2.2.0", - "ts-essentials": "^7.0.1" - }, - "bin": { - "typechain": "dist/cli/cli.js" - }, - "peerDependencies": { - "typescript": ">=4.3.0" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/typechain/node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/typechain/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@ethereum-attestation-service/eas-contracts/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/@ethereum-attestation-service/eas-sdk": { "version": "0.28.3", "resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-sdk/-/eas-sdk-0.28.3.tgz", @@ -2816,6 +2561,17 @@ "ethereumjs-util": "^7.1.1" } }, + "node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/@ethereumjs/tx": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.3.2.tgz", @@ -2825,6 +2581,30 @@ "ethereumjs-util": "^7.1.2" } }, + "node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/util/node_modules/ethereum-cryptography": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "dependencies": { + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" + } + }, "node_modules/@ethersproject/abi": { "version": "5.7.0", "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", @@ -3124,11 +2904,6 @@ "scrypt-js": "3.0.1" } }, - "node_modules/@ethersproject/json-wallets/node_modules/aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" - }, "node_modules/@ethersproject/keccak256": { "version": "5.7.0", "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", @@ -3569,6 +3344,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, "engines": { "node": ">=6.0.0" } @@ -3577,6 +3353,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, "engines": { "node": ">=6.0.0" } @@ -3608,12 +3385,14 @@ "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.18", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, "dependencies": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" @@ -3622,7 +3401,8 @@ "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true }, "node_modules/@json-rpc-tools/provider": { "version": "1.7.6", @@ -3697,22 +3477,112 @@ "rlp": "^2.2.3" } }, - "node_modules/@metamask/obs-store": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@metamask/obs-store/-/obs-store-7.0.0.tgz", - "integrity": "sha512-Tr61Uu9CGXkCg5CZwOYRMQERd+y6fbtrtLd/PzDTPHO5UJpmSbU+7MPcQK7d1DwZCOCeCIvhmZSUCvYliC8uGw==", + "node_modules/@metamask/rpc-errors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-5.1.1.tgz", + "integrity": "sha512-JjZnDi2y2CfvbohhBl+FOQRzmFlJpybcQlIk37zEX8B96eVSPbH/T8S0p7cSF8IE33IWx6JkD8Ycsd+2TXFxCw==", "dependencies": { - "@metamask/safe-event-emitter": "^2.0.0", - "through2": "^2.0.3" + "@metamask/utils": "^5.0.0", + "fast-safe-stringify": "^2.0.6" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" } }, - "node_modules/@metamask/safe-event-emitter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", - "integrity": "sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==" + "node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "dependencies": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "node_modules/@metamask/utils/node_modules/@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "dependencies": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@metamask/utils/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@metamask/utils/node_modules/ethereum-cryptography": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "dependencies": { + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" + } + }, + "node_modules/@metamask/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/@ngtools/webpack": { "version": "13.3.11", @@ -3730,16 +3600,27 @@ "webpack": "^5.30.0" } }, + "node_modules/@noble/curves": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", + "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", + "dependencies": { + "@noble/hashes": "1.3.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@noble/secp256k1": { "version": "1.7.1", @@ -4631,34 +4512,28 @@ ] }, "node_modules/@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", + "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", + "@noble/curves": "~1.1.0", + "@noble/hashes": "~1.3.1", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", "dependencies": { - "@noble/hashes": "~1.2.0", + "@noble/hashes": "~1.3.0", "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@sentry/core": { @@ -4676,14 +4551,6 @@ "node": ">=6" } }, - "node_modules/@sentry/core/node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "engines": { - "node": ">=6" - } - }, "node_modules/@sentry/core/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -4702,14 +4569,6 @@ "node": ">=6" } }, - "node_modules/@sentry/hub/node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "engines": { - "node": ">=6" - } - }, "node_modules/@sentry/hub/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -4728,14 +4587,6 @@ "node": ">=6" } }, - "node_modules/@sentry/minimal/node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "engines": { - "node": ">=6" - } - }, "node_modules/@sentry/minimal/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -4760,14 +4611,6 @@ "node": ">=6" } }, - "node_modules/@sentry/node/node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "engines": { - "node": ">=6" - } - }, "node_modules/@sentry/node/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -4788,27 +4631,17 @@ "node": ">=6" } }, - "node_modules/@sentry/tracing/node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "engines": { - "node": ">=6" - } - }, "node_modules/@sentry/tracing/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/@sentry/types": { - "version": "7.53.1", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.53.1.tgz", - "integrity": "sha512-/ijchRIu+jz3+j/zY+7KRPfLSCY14fTx5xujjbOdmEKjmIHQmwPBdszcQm40uwofrR8taV4hbt5MFN+WnjCkCw==", - "optional": true, - "peer": true, + "version": "5.30.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", + "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", "engines": { - "node": ">=8" + "node": ">=6" } }, "node_modules/@sentry/utils": { @@ -4823,14 +4656,6 @@ "node": ">=6" } }, - "node_modules/@sentry/utils/node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "engines": { - "node": ">=6" - } - }, "node_modules/@sentry/utils/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -4989,9 +4814,9 @@ } }, "node_modules/@tokenscript/attestation": { - "version": "0.5.0-beta.1", - "resolved": "https://registry.npmjs.org/@tokenscript/attestation/-/attestation-0.5.0-beta.1.tgz", - "integrity": "sha512-d71u9WyVmu//pOZvi4sKXsGQUxfUxcX6rEUUxy03fDLWDbkEWQx6tjn6mRKfr3TsQLyyPCX//N27pmit0TSQCA==", + "version": "0.6.0-rc.3", + "resolved": "https://registry.npmjs.org/@tokenscript/attestation/-/attestation-0.6.0-rc.3.tgz", + "integrity": "sha512-yxA0IFK5gdwvzfa8VJowbd5FV1PPpXVFn4CnQz5T7DS79Ueq9cge/PL1JbeB6EeZJlE70McSscyo+vL0NBuP4A==", "hasInstallScript": true, "dependencies": { "@ethereum-attestation-service/eas-sdk": "^0.28.3", @@ -5013,18 +4838,20 @@ "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==" }, "node_modules/@tokenscript/token-negotiator": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator/-/token-negotiator-2.7.0.tgz", - "integrity": "sha512-mfQqLPVy8fmzhrTEXD/rvjfdWG7kRuk6ed1oa24CqMhRm4SE3ceK5NIYahoDOqsoE48ivYn+8lLGzGC/W76Ojg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator/-/token-negotiator-3.0.0.tgz", + "integrity": "sha512-073IU2xUnGbXmghqd2LV9L/SyaB+r0oBdUpnSkbStSPMcjMNDSgSXRTYVmY3Z8PH/1DSrNq3rSD6cIm38+Fb1Q==", "dependencies": { "@onflow/fcl": "^1.3.2", "@onflow/types": "^1.0.5", "@peculiar/asn1-schema": "^2.2.0", - "@tokenscript/attestation": "0.5.0-beta.1", - "@toruslabs/torus-embed": "^1.25.0", + "@tokenscript/attestation": "0.6.0-rc.3", + "@toruslabs/torus-embed": "^2.2.5", + "@walletconnect/qrcode-modal": "^1.8.0", "@walletconnect/types": "^2.1.5", "@walletconnect/universal-provider": "^2.4.5", - "@walletconnect/web3-provider": "^1.7.1", + "eosjs": "^22.1.0", + "eosjs-ecc": "^4.0.7", "ethers": "^5.4.0", "pvutils": "^1.0.17", "text-encoding": "^0.7.0", @@ -5042,16 +4869,16 @@ } }, "node_modules/@toruslabs/http-helpers": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-3.4.0.tgz", - "integrity": "sha512-CoeJSL32mpp0gmYjxv48odu6pfjHk/rbJHDwCtYPcMHAl+qUQ/DTpVOOn9U0fGkD+fYZrQmZbRkXFgLhiT0ajQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", + "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", "dependencies": { "lodash.merge": "^4.6.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=14.17.0", - "npm": ">=6.x" + "node": ">=16.18.1", + "npm": ">=8.x" }, "peerDependencies": { "@babel/runtime": "^7.x", @@ -5064,63 +4891,128 @@ } }, "node_modules/@toruslabs/openlogin-jrpc": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-3.2.0.tgz", - "integrity": "sha512-G+K0EHyVUaAEyeD4xGsnAZRpn/ner8lQ2HC2+pGKg6oGmzKI2wGMDcw2KMH6+HKlfBGVJ5/VR9AQfC/tZlLDmQ==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-4.7.2.tgz", + "integrity": "sha512-9Eb0cPc0lPuS6v2YkQlgzfbRnZ6fLez9Ike5wznoHSFA2/JVu1onwuI56EV1HwswdDrOWPPQEyzI1j9NriZ0ew==", "dependencies": { - "@toruslabs/openlogin-utils": "^3.0.0", + "@metamask/rpc-errors": "^5.1.1", + "@toruslabs/openlogin-utils": "^4.7.0", "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", "events": "^3.3.0", "fast-safe-stringify": "^2.1.1", "once": "^1.4.0", "pump": "^3.0.0", - "readable-stream": "^3.6.2" + "readable-stream": "^4.4.2" + }, + "engines": { + "node": ">=16.18.1", + "npm": ">=8.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, + "node_modules/@toruslabs/openlogin-jrpc/node_modules/readable-stream": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", + "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@toruslabs/openlogin-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-3.0.0.tgz", - "integrity": "sha512-T5t29/AIFqXc84x4OoAkZWjd0uoP2Lk6iaFndnIIMzCPu+BwwV0spX/jd/3YYNjZ8Po8D+faEnwAhiqemYeK2w==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-4.7.0.tgz", + "integrity": "sha512-w6XkHs4WKuufsf/zzteBzs4EJuOknrUmJ+iv5FZ8HzIpMQeL/984CP8HYaFSEYkbGCP4ydAnhY4Uh0QAhpDbPg==", "dependencies": { - "base64url": "^3.0.1", - "keccak": "^3.0.3", - "randombytes": "^2.1.0" + "base64url": "^3.0.1" + }, + "engines": { + "node": ">=16.18.1", + "npm": ">=8.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, "node_modules/@toruslabs/torus-embed": { - "version": "1.41.2", - "resolved": "https://registry.npmjs.org/@toruslabs/torus-embed/-/torus-embed-1.41.2.tgz", - "integrity": "sha512-EiKHz6+ab2hwXlyMF0B34MCTK7ooXa9FqY4DAezasunoKvevSKvwWmUOXlqfqUo/snxrEGFSMNtMe5LdLKIl4Q==", + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@toruslabs/torus-embed/-/torus-embed-2.2.7.tgz", + "integrity": "sha512-EMYpCUgkTxUuDhjSUsaSKNJf8vY0RQWuy8sUjMFAXBXZtUM24OVDK9QEBvdP1YygRvT+/74Zyn/EcVRAofpT6g==", "dependencies": { - "@metamask/obs-store": "^7.0.0", - "@toruslabs/http-helpers": "^3.2.0", - "@toruslabs/openlogin-jrpc": "^3.0.0", - "create-hash": "^1.2.0", - "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", + "@metamask/rpc-errors": "^5.1.1", + "@toruslabs/http-helpers": "^4.0.0", + "@toruslabs/openlogin-jrpc": "^4.7.0", "events": "^3.3.0", "fast-deep-equal": "^3.1.3", "is-stream": "^2.0.1", "lodash.merge": "^4.6.2", "loglevel": "^1.8.1", - "once": "^1.4.0", - "pump": "^3.0.0" + "pump": "^3.0.0", + "readable-stream": "^4.4.1" }, "engines": { - "node": ">=14.17.0", - "npm": ">=6.x" + "node": ">=16.18.1", + "npm": ">=8.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, + "node_modules/@toruslabs/torus-embed/node_modules/readable-stream": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", + "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@typechain/ethers-v5": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.2.1.tgz", + "integrity": "sha512-n3tQmCZjRE6IU4h6lqUGiQ1j866n5MTCBJreNEHHVWXa2u9GJTaeYyU1/k+1qLutkyw+sS6VAN+AbeiTqsxd/A==", + "dependencies": { + "lodash": "^4.17.15", + "ts-essentials": "^7.0.1" + }, + "peerDependencies": { + "@ethersproject/abi": "^5.0.0", + "@ethersproject/providers": "^5.0.0", + "ethers": "^5.1.3", + "typechain": "^8.1.1", + "typescript": ">=4.3.0" + } + }, + "node_modules/@typechain/hardhat": { + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-6.1.6.tgz", + "integrity": "sha512-BiVnegSs+ZHVymyidtK472syodx1sXYlYJJixZfRstHVGYTi8V1O7QG4nsjyb0PC/LORcq7sfBUcHto1y6UgJA==", + "dependencies": { + "fs-extra": "^9.1.0" + }, + "peerDependencies": { + "@ethersproject/abi": "^5.4.7", + "@ethersproject/providers": "^5.4.7", + "@typechain/ethers-v5": "^10.2.1", + "ethers": "^5.4.7", + "hardhat": "^2.9.9", + "typechain": "^8.1.1" + } + }, "node_modules/@types/bn.js": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", @@ -5182,6 +5074,14 @@ "@types/node": "*" } }, + "node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dependencies": { + "@types/ms": "*" + } + }, "node_modules/@types/eslint": { "version": "8.37.0", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", @@ -5264,6 +5164,11 @@ "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", "dev": true }, + "node_modules/@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" + }, "node_modules/@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", @@ -5284,9 +5189,9 @@ } }, "node_modules/@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==" + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" }, "node_modules/@types/qs": { "version": "6.9.7", @@ -5416,69 +5321,6 @@ "resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-5.2.0.tgz", "integrity": "sha512-tr7XntDAu50BVENgQfajMLzacmSe34D+qZc4zjnniz0ZVuw/TZcLcyxHQjYpJTM36sGEkZZlYLnIM1hH7alTMA==" }, - "node_modules/@walletconnect/client": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/client/-/client-1.8.0.tgz", - "integrity": "sha512-svyBQ14NHx6Cs2j4TpkQaBI/2AF4+LXz64FojTjMtV4VMMhl81jSO1vNeg+yYhQzvjcGH/GpSwixjyCW0xFBOQ==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/", - "dependencies": { - "@walletconnect/core": "^1.8.0", - "@walletconnect/iso-crypto": "^1.8.0", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0" - } - }, - "node_modules/@walletconnect/client/node_modules/@walletconnect/core": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-1.8.0.tgz", - "integrity": "sha512-aFTHvEEbXcZ8XdWBw6rpQDte41Rxwnuk3SgTD8/iKGSRTni50gI9S3YEzMj05jozSiOBxQci4pJDMVhIUMtarw==", - "dependencies": { - "@walletconnect/socket-transport": "^1.8.0", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0" - } - }, - "node_modules/@walletconnect/client/node_modules/@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/" - }, - "node_modules/@walletconnect/client/node_modules/@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "dependencies": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "node_modules/@walletconnect/client/node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "node_modules/@walletconnect/client/node_modules/query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "dependencies": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@walletconnect/core": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.7.2.tgz", @@ -5501,39 +5343,6 @@ "uint8arrays": "^3.1.0" } }, - "node_modules/@walletconnect/crypto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/crypto/-/crypto-1.0.3.tgz", - "integrity": "sha512-+2jdORD7XQs76I2Odgr3wwrtyuLUXD/kprNVsjWRhhhdO9Mt6WqVzOPu0/t7OHSmgal8k7SoBQzUc5hu/8zL/g==", - "dependencies": { - "@walletconnect/encoding": "^1.0.2", - "@walletconnect/environment": "^1.0.1", - "@walletconnect/randombytes": "^1.0.3", - "aes-js": "^3.1.2", - "hash.js": "^1.1.7", - "tslib": "1.14.1" - } - }, - "node_modules/@walletconnect/crypto/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@walletconnect/encoding": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@walletconnect/encoding/-/encoding-1.0.2.tgz", - "integrity": "sha512-CrwSBrjqJ7rpGQcTL3kU+Ief+Bcuu9PH6JLOb+wM6NITX1GTxR/MfNwnQfhLKK6xpRAyj2/nM04OOH6wS8Imag==", - "dependencies": { - "is-typedarray": "1.0.0", - "tslib": "1.14.1", - "typedarray-to-buffer": "3.1.5" - } - }, - "node_modules/@walletconnect/encoding/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/environment": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", @@ -5576,109 +5385,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "node_modules/@walletconnect/http-connection": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/http-connection/-/http-connection-1.8.0.tgz", - "integrity": "sha512-IziEr3c53qsMromK7jz0EkbKDHlryRbxXdFR+xaG+S5nfxtUdAfjzlZabvczXdDCgmTij6KbNsZAjBMqCBzACw==", - "dependencies": { - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0", - "eventemitter3": "4.0.7", - "xhr2-cookies": "1.1.0" - } - }, - "node_modules/@walletconnect/http-connection/node_modules/@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/" - }, - "node_modules/@walletconnect/http-connection/node_modules/@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "dependencies": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "node_modules/@walletconnect/http-connection/node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "node_modules/@walletconnect/http-connection/node_modules/query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "dependencies": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@walletconnect/iso-crypto": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/iso-crypto/-/iso-crypto-1.8.0.tgz", - "integrity": "sha512-pWy19KCyitpfXb70hA73r9FcvklS+FvO9QUIttp3c2mfW8frxgYeRXfxLRCIQTkaYueRKvdqPjbyhPLam508XQ==", - "dependencies": { - "@walletconnect/crypto": "^1.0.2", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0" - } - }, - "node_modules/@walletconnect/iso-crypto/node_modules/@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/" - }, - "node_modules/@walletconnect/iso-crypto/node_modules/@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "dependencies": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "node_modules/@walletconnect/iso-crypto/node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "node_modules/@walletconnect/iso-crypto/node_modules/query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "dependencies": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@walletconnect/jsonrpc-http-connection": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.6.tgz", @@ -5822,22 +5528,6 @@ "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==", "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/" }, - "node_modules/@walletconnect/randombytes": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/randombytes/-/randombytes-1.0.3.tgz", - "integrity": "sha512-35lpzxcHFbTN3ABefC9W+uBpNZl1GC4Wpx0ed30gibfO/y9oLdy1NznbV96HARQKSBV9J9M/rrtIvf6a23jfYw==", - "dependencies": { - "@walletconnect/encoding": "^1.0.2", - "@walletconnect/environment": "^1.0.1", - "randombytes": "^2.1.0", - "tslib": "1.14.1" - } - }, - "node_modules/@walletconnect/randombytes/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@walletconnect/relay-api": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.9.tgz", @@ -5899,77 +5589,6 @@ "events": "^3.3.0" } }, - "node_modules/@walletconnect/socket-transport": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/socket-transport/-/socket-transport-1.8.0.tgz", - "integrity": "sha512-5DyIyWrzHXTcVp0Vd93zJ5XMW61iDM6bcWT4p8DTRfFsOtW46JquruMhxOLeCOieM4D73kcr3U7WtyR4JUsGuQ==", - "dependencies": { - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0", - "ws": "7.5.3" - } - }, - "node_modules/@walletconnect/socket-transport/node_modules/@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/" - }, - "node_modules/@walletconnect/socket-transport/node_modules/@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "dependencies": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "node_modules/@walletconnect/socket-transport/node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "node_modules/@walletconnect/socket-transport/node_modules/query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "dependencies": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@walletconnect/socket-transport/node_modules/ws": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz", - "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/@walletconnect/time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz", @@ -6035,61 +5654,6 @@ "uint8arrays": "^3.1.0" } }, - "node_modules/@walletconnect/web3-provider": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/web3-provider/-/web3-provider-1.8.0.tgz", - "integrity": "sha512-lqqEO0oRmCehH+c8ZPk3iH7I7YtbzmkWd58/Or2AgWAl869JamzndKCD3sTlNsPRQLxxPpraHQqzur7uclLWvg==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/", - "dependencies": { - "@walletconnect/client": "^1.8.0", - "@walletconnect/http-connection": "^1.8.0", - "@walletconnect/qrcode-modal": "^1.8.0", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0", - "web3-provider-engine": "16.0.1" - } - }, - "node_modules/@walletconnect/web3-provider/node_modules/@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==", - "deprecated": "WalletConnect's v1 SDKs are now deprecated. Please upgrade to a v2 SDK. For details see: https://docs.walletconnect.com/" - }, - "node_modules/@walletconnect/web3-provider/node_modules/@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "dependencies": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "node_modules/@walletconnect/web3-provider/node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "node_modules/@walletconnect/web3-provider/node_modules/query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "dependencies": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@walletconnect/window-getters": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", @@ -6344,14 +5908,6 @@ } ] }, - "node_modules/abstract-leveldown": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.6.3.tgz", - "integrity": "sha512-2++wDf/DYqkPR3o5tbfdhF96EfMApo1GpPfzOsR/ZYXdkSmELlvOOEAl9iKkRsktMPHdGjO4rtkBpf2I7TiTeA==", - "dependencies": { - "xtend": "~4.0.0" - } - }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -6422,9 +5978,9 @@ } }, "node_modules/aes-js": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", - "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", + "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" }, "node_modules/agent-base": { "version": "6.0.2", @@ -6639,12 +6195,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", + "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", "dependencies": { - "safer-buffer": "~2.1.0" + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/asn1.js": { @@ -6687,48 +6254,15 @@ "util": "^0.12.0" } }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", - "engines": { - "node": ">=0.8" - } - }, "node_modules/async": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, "dependencies": { "lodash": "^4.17.14" } }, - "node_modules/async-eventemitter": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz", - "integrity": "sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw==", - "dependencies": { - "async": "^2.4.0" - } - }, - "node_modules/async-limiter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" - }, - "node_modules/async-mutex": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.2.6.tgz", - "integrity": "sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==", - "dependencies": { - "tslib": "^2.0.0" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -6801,19 +6335,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" - }, "node_modules/axios": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", @@ -6875,6 +6396,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "dev": true, "dependencies": { "@babel/compat-data": "^7.17.7", "@babel/helper-define-polyfill-provider": "^0.3.3", @@ -6888,6 +6410,7 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, "bin": { "semver": "bin/semver.js" } @@ -6896,6 +6419,7 @@ "version": "0.5.3", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.3.tgz", "integrity": "sha512-zKsXDh0XjnrUEW0mxIHLfjBfnXSMr5Q/goMe/fxpQnLm07mcOZiIZHBNWCMx60HmdvjxfXcalac0tfFg0wqxyw==", + "dev": true, "dependencies": { "@babel/helper-define-polyfill-provider": "^0.3.2", "core-js-compat": "^3.21.0" @@ -6908,6 +6432,7 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz", "integrity": "sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==", + "dev": true, "dependencies": { "@babel/helper-define-polyfill-provider": "^0.3.1" }, @@ -6915,17 +6440,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/backoff": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz", - "integrity": "sha512-wC5ihrnUXmR2douXmXLCe5O3zg3GKIyvRi/hi58a/XyRxVI+3/yM0PYueQOZXPXQ9pxBislYkw+sF9b7C/RuMA==", - "dependencies": { - "precond": "0.2" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -6981,19 +6495,6 @@ "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", "dev": true }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/bcrypt-pbkdf/node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - }, "node_modules/bech32": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", @@ -7008,10 +6509,15 @@ "node": "*" } }, + "node_modules/bigi": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz", + "integrity": "sha512-ddkU+dFIuEIW8lE7ZwdIAf2UPoM90eaprg5m3YXAVVTmKlqV/9BX4A2M8BOK2yOq6/VgZFVhK6QAxJebhlbhzw==" + }, "node_modules/bigint-crypto-utils": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.2.2.tgz", - "integrity": "sha512-U1RbE3aX9ayCUVcIPHuPDPKcK3SFOXf93J1UK/iHlJuQB7bhagPIX06/CLpLEsDThJ7KA4Dhrnzynl+d2weTiw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.3.0.tgz", + "integrity": "sha512-jOTSb+drvEDxEq6OuUybOAv/xxoh3cuYRUIPyu8sSHQNKM303UQ2R1DAo45o1AkcIXw6fzbaFI1+xGGdaXs2lg==", "engines": { "node": ">=14.0.0" } @@ -7256,6 +6762,7 @@ "version": "4.21.5", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "dev": true, "funding": [ { "type": "opencollective", @@ -7297,17 +6804,6 @@ "safe-buffer": "^5.1.2" } }, - "node_modules/btoa": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", - "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==", - "bin": { - "btoa": "bin/btoa.js" - }, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -7410,6 +6906,17 @@ "node": ">=10.16.0" } }, + "node_modules/bytebuffer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", + "integrity": "sha512-IuzSdmADppkZ6DlpycMkm8l9zeEq16fWtLvunEwFiYciR/BHo4E8/xs5piFquG+Za8OWmMqHF8zuRviz2LHvRQ==", + "dependencies": { + "long": "~3" + }, + "engines": { + "node": ">=0.8" + } + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -7498,6 +7005,7 @@ "version": "1.0.30001482", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001482.tgz", "integrity": "sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ==", + "dev": true, "funding": [ { "type": "opencollective", @@ -7521,11 +7029,6 @@ "node": ">= 0.8.0" } }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" - }, "node_modules/catering": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/catering/-/catering-2.1.1.tgz", @@ -7553,14 +7056,6 @@ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "node_modules/checkpoint-store": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/checkpoint-store/-/checkpoint-store-1.1.0.tgz", - "integrity": "sha512-J/NdY2WvIx654cc6LWSq/IYFFCUf75fFTgwzFnmbqyORH4MwgiQCgswLLKBGzmsyTI5V7i5bp/So6sMbDWhedg==", - "dependencies": { - "functional-red-black-tree": "^1.0.1" - } - }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -7753,17 +7248,6 @@ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/command-exists": { "version": "1.2.9", "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", @@ -7969,7 +7453,8 @@ "node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true }, "node_modules/cookie": { "version": "0.4.2", @@ -7985,11 +7470,6 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, - "node_modules/cookiejar": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==" - }, "node_modules/copy-anything": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz", @@ -8081,6 +7561,7 @@ "version": "3.30.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.1.tgz", "integrity": "sha512-d690npR7MC6P0gq4npTl5n2VQeNAmUrJ90n+MHiKS7W2+xno4o3F5GDEuylSdi6EJ3VssibSGXOa1r3YXD3Mhw==", + "dev": true, "dependencies": { "browserslist": "^4.21.5" }, @@ -8092,7 +7573,8 @@ "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true }, "node_modules/cors": { "version": "2.8.5", @@ -8305,9 +7787,9 @@ } }, "node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } @@ -8491,17 +7973,6 @@ "type": "^1.0.1" } }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, "node_modules/date-format": { "version": "4.0.14", "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", @@ -8528,11 +7999,14 @@ } }, "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/decode-uri-component": { @@ -8611,14 +8085,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deferred-leveldown": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/deferred-leveldown/-/deferred-leveldown-1.2.2.tgz", - "integrity": "sha512-uukrWD2bguRtXilKt6cAWKyoXrTSMo5m7crUdLfWQmu8kIm88w3QZoUL+6nhpfKVmhHANER6Re3sKoNoZ3IKMA==", - "dependencies": { - "abstract-leveldown": "~2.6.0" - } - }, "node_modules/define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", @@ -8703,14 +8169,6 @@ "node": ">=8" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -8935,15 +8393,6 @@ "stream-shift": "^1.0.0" } }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "node_modules/ecdsa-sig-formatter": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", @@ -8952,6 +8401,14 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/ecurve": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ecurve/-/ecurve-1.0.5.tgz", + "integrity": "sha512-1Z3Zu5Nh5LSVGnwEnie1LDoHZByZxG2tk3wftkqeVHrfujmR8O+dOh96HVPxRPh4BjRWX0Z9mpwCYv/O/njgDw==", + "dependencies": { + "bigi": "^1.1.0" + } + }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -8969,7 +8426,8 @@ "node_modules/electron-to-chromium": { "version": "1.4.384", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.384.tgz", - "integrity": "sha512-I97q0MmRAAqj53+a8vZsDkEXBZki+ehYAOPzwtQzALip52aEp2+BJqHFtTlsfjoqVZYwPpHC8wM6MbsSZQ/Eqw==" + "integrity": "sha512-I97q0MmRAAqj53+a8vZsDkEXBZki+ehYAOPzwtQzALip52aEp2+BJqHFtTlsfjoqVZYwPpHC8wM6MbsSZQ/Eqw==", + "dev": true }, "node_modules/elliptic": { "version": "6.5.4", @@ -9107,11 +8565,12 @@ } }, "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", "dependencies": { - "ansi-colors": "^4.1.1" + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8.6" @@ -9140,6 +8599,95 @@ "node": ">=6" } }, + "node_modules/eosjs": { + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/eosjs/-/eosjs-22.1.0.tgz", + "integrity": "sha512-Ka8KO7akC3RxNdSg/3dkGWuUWUQESTzSUzQljBdVP16UG548vmQoBqSGnZdnjlZyfcab8VOu2iEt+JjyfYc5+A==", + "dependencies": { + "bn.js": "5.2.0", + "elliptic": "6.5.4", + "hash.js": "1.1.7", + "pako": "2.0.3" + } + }, + "node_modules/eosjs-ecc": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.7.tgz", + "integrity": "sha512-uuqhqnrDy9XTpKfkhiZqRDUTCCI9oWBalVK5IosL7kpYwA9I3lm68INYFLyWsHpF2xwHqPql8MrMYJ3zfOn5Qg==", + "dependencies": { + "@babel/runtime": "7.6.0", + "bigi": "1.4.2", + "browserify-aes": "1.0.6", + "bs58": "4.0.1", + "bytebuffer": "5.0.1", + "create-hash": "1.1.3", + "create-hmac": "1.1.6", + "ecurve": "1.0.5", + "randombytes": "2.0.5" + } + }, + "node_modules/eosjs-ecc/node_modules/@babel/runtime": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.0.tgz", + "integrity": "sha512-89eSBLJsxNxOERC0Op4vd+0Bqm6wRMqMbFtV3i0/fbaWw/mJ8Q3eBvgX0G4SyrOOLCtbu98HspF8o09MRT+KzQ==", + "dependencies": { + "regenerator-runtime": "^0.13.2" + } + }, + "node_modules/eosjs-ecc/node_modules/browserify-aes": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.0.6.tgz", + "integrity": "sha512-MMvWM6jpfsiuzY2Y+pRJvHRac3x3rHWQisWoz1dJaF9qDFsD8HdVxB7MyZKeLKeEt0fEjrXXZ0mxgTHSoJusug==", + "dependencies": { + "buffer-xor": "^1.0.2", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.0", + "inherits": "^2.0.1" + } + }, + "node_modules/eosjs-ecc/node_modules/create-hash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", + "integrity": "sha512-snRpch/kwQhcdlnZKYanNF1m0RDlrCdSKQaH87w1FCFPVPNCQ/Il9QJKAX2jVBZddRdaHBMC+zXa9Gw9tmkNUA==", + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "sha.js": "^2.4.0" + } + }, + "node_modules/eosjs-ecc/node_modules/create-hmac": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", + "integrity": "sha512-23osI7H2SH6Zm4g7A7BTM9+3XicGZkemw00eEhrFViR3EdGru+azj2fMKf9J2zWMGO7AfPgYRdIRL96kkdy8QA==", + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "node_modules/eosjs-ecc/node_modules/randombytes": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", + "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/eosjs/node_modules/bn.js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", + "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" + }, + "node_modules/eosjs/node_modules/pako": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.3.tgz", + "integrity": "sha512-WjR1hOeg+kki3ZIOjaf4b5WVcay1jaliKSYiEaB1XzwhMQZJxRdQRv0V31EKBYlxb4T7SK3hjfc/jxyU64BoSw==" + }, "node_modules/err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", @@ -9150,6 +8698,8 @@ "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "dev": true, + "optional": true, "dependencies": { "prr": "~1.0.1" }, @@ -9167,17 +8717,18 @@ } }, "node_modules/es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", + "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", "dependencies": { "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", + "get-intrinsic": "^1.2.1", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -9197,14 +8748,18 @@ "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", "safe-regex-test": "^1.0.0", "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" + "which-typed-array": "^1.1.10" }, "engines": { "node": ">= 0.4" @@ -9738,149 +9293,6 @@ "node": ">= 0.6" } }, - "node_modules/eth-block-tracker": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-4.4.3.tgz", - "integrity": "sha512-A8tG4Z4iNg4mw5tP1Vung9N9IjgMNqpiMoJ/FouSFwNCGHv2X0mmOYwtQOJzki6XN7r7Tyo01S29p7b224I4jw==", - "dependencies": { - "@babel/plugin-transform-runtime": "^7.5.5", - "@babel/runtime": "^7.5.5", - "eth-query": "^2.1.0", - "json-rpc-random-id": "^1.0.1", - "pify": "^3.0.0", - "safe-event-emitter": "^1.0.1" - } - }, - "node_modules/eth-block-tracker/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "engines": { - "node": ">=4" - } - }, - "node_modules/eth-json-rpc-filters": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/eth-json-rpc-filters/-/eth-json-rpc-filters-4.2.2.tgz", - "integrity": "sha512-DGtqpLU7bBg63wPMWg1sCpkKCf57dJ+hj/k3zF26anXMzkmtSBDExL8IhUu7LUd34f0Zsce3PYNO2vV2GaTzaw==", - "dependencies": { - "@metamask/safe-event-emitter": "^2.0.0", - "async-mutex": "^0.2.6", - "eth-json-rpc-middleware": "^6.0.0", - "eth-query": "^2.1.2", - "json-rpc-engine": "^6.1.0", - "pify": "^5.0.0" - } - }, - "node_modules/eth-json-rpc-filters/node_modules/pify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", - "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eth-json-rpc-infura": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/eth-json-rpc-infura/-/eth-json-rpc-infura-5.1.0.tgz", - "integrity": "sha512-THzLye3PHUSGn1EXMhg6WTLW9uim7LQZKeKaeYsS9+wOBcamRiCQVGHa6D2/4P0oS0vSaxsBnU/J6qvn0MPdow==", - "dependencies": { - "eth-json-rpc-middleware": "^6.0.0", - "eth-rpc-errors": "^3.0.0", - "json-rpc-engine": "^5.3.0", - "node-fetch": "^2.6.0" - } - }, - "node_modules/eth-json-rpc-infura/node_modules/eth-rpc-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz", - "integrity": "sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, - "node_modules/eth-json-rpc-infura/node_modules/json-rpc-engine": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-5.4.0.tgz", - "integrity": "sha512-rAffKbPoNDjuRnXkecTjnsE3xLLrb00rEkdgalINhaYVYIxDwWtvYBr9UFbhTvPB1B2qUOLoFd/cV6f4Q7mh7g==", - "dependencies": { - "eth-rpc-errors": "^3.0.0", - "safe-event-emitter": "^1.0.1" - } - }, - "node_modules/eth-json-rpc-middleware": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/eth-json-rpc-middleware/-/eth-json-rpc-middleware-6.0.0.tgz", - "integrity": "sha512-qqBfLU2Uq1Ou15Wox1s+NX05S9OcAEL4JZ04VZox2NS0U+RtCMjSxzXhLFWekdShUPZ+P8ax3zCO2xcPrp6XJQ==", - "dependencies": { - "btoa": "^1.2.1", - "clone": "^2.1.1", - "eth-query": "^2.1.2", - "eth-rpc-errors": "^3.0.0", - "eth-sig-util": "^1.4.2", - "ethereumjs-util": "^5.1.2", - "json-rpc-engine": "^5.3.0", - "json-stable-stringify": "^1.0.1", - "node-fetch": "^2.6.1", - "pify": "^3.0.0", - "safe-event-emitter": "^1.0.1" - } - }, - "node_modules/eth-json-rpc-middleware/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/eth-json-rpc-middleware/node_modules/clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/eth-json-rpc-middleware/node_modules/eth-rpc-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz", - "integrity": "sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, - "node_modules/eth-json-rpc-middleware/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/eth-json-rpc-middleware/node_modules/json-rpc-engine": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-5.4.0.tgz", - "integrity": "sha512-rAffKbPoNDjuRnXkecTjnsE3xLLrb00rEkdgalINhaYVYIxDwWtvYBr9UFbhTvPB1B2qUOLoFd/cV6f4Q7mh7g==", - "dependencies": { - "eth-rpc-errors": "^3.0.0", - "safe-event-emitter": "^1.0.1" - } - }, - "node_modules/eth-json-rpc-middleware/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "engines": { - "node": ">=4" - } - }, "node_modules/eth-lib": { "version": "0.2.8", "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz", @@ -9896,52 +9308,6 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, - "node_modules/eth-query": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/eth-query/-/eth-query-2.1.2.tgz", - "integrity": "sha512-srES0ZcvwkR/wd5OQBRA1bIJMww1skfGS0s8wlwK3/oNP4+wnds60krvu5R1QbpRQjMmpG5OMIWro5s7gvDPsA==", - "dependencies": { - "json-rpc-random-id": "^1.0.0", - "xtend": "^4.0.1" - } - }, - "node_modules/eth-rpc-errors": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", - "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, - "node_modules/eth-sig-util": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/eth-sig-util/-/eth-sig-util-1.4.2.tgz", - "integrity": "sha512-iNZ576iTOGcfllftB73cPB5AN+XUQAT/T8xzsILsghXC1o8gJUqe3RHlcDqagu+biFpYQ61KQrZZJza8eRSYqw==", - "deprecated": "Deprecated in favor of '@metamask/eth-sig-util'", - "dependencies": { - "ethereumjs-abi": "git+https://github.com/ethereumjs/ethereumjs-abi.git", - "ethereumjs-util": "^5.1.1" - } - }, - "node_modules/eth-sig-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/eth-sig-util/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, "node_modules/ethereum-bloom-filters": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", @@ -9950,11 +9316,6 @@ "js-sha3": "^0.8.0" } }, - "node_modules/ethereum-common": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.2.0.tgz", - "integrity": "sha512-XOnAR/3rntJgbCdGhqdaLIxDLWKLmsZOGhHdBKadEr6gEnJLH52k93Ou+TUdFaPN3hJc3isBZBal3U/XZ15abA==" - }, "node_modules/ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", @@ -9979,8 +9340,8 @@ }, "node_modules/ethereumjs-abi": { "version": "0.6.8", - "resolved": "git+ssh://git@github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", + "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", "dependencies": { "bn.js": "^4.11.8", "ethereumjs-util": "^6.0.0" @@ -10013,107 +9374,6 @@ "rlp": "^2.2.3" } }, - "node_modules/ethereumjs-account": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/ethereumjs-account/-/ethereumjs-account-2.0.5.tgz", - "integrity": "sha512-bgDojnXGjhMwo6eXQC0bY6UK2liSFUSMwwylOmQvZbSl/D7NXQ3+vrGO46ZeOgjGfxXmgIeVNDIiHw7fNZM4VA==", - "dependencies": { - "ethereumjs-util": "^5.0.0", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/ethereumjs-account/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/ethereumjs-account/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/ethereumjs-block": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-1.7.1.tgz", - "integrity": "sha512-B+sSdtqm78fmKkBq78/QLKJbu/4Ts4P2KFISdgcuZUPDm9x+N7qgBPIIFUGbaakQh8bzuquiRVbdmvPKqbILRg==", - "deprecated": "New package name format for new versions: @ethereumjs/block. Please update.", - "dependencies": { - "async": "^2.0.1", - "ethereum-common": "0.2.0", - "ethereumjs-tx": "^1.2.2", - "ethereumjs-util": "^5.0.0", - "merkle-patricia-tree": "^2.1.2" - } - }, - "node_modules/ethereumjs-block/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/ethereumjs-block/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/ethereumjs-common": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-1.5.2.tgz", - "integrity": "sha512-hTfZjwGX52GS2jcVO6E2sx4YuFnf0Fhp5ylo4pEPhEffNln7vS59Hr5sLnp3/QCazFLluuBZ+FZ6J5HTp0EqCA==", - "deprecated": "New package name format for new versions: @ethereumjs/common. Please update." - }, - "node_modules/ethereumjs-tx": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz", - "integrity": "sha512-wvLMxzt1RPhAQ9Yi3/HKZTn0FZYpnsmQdbKYfUUpi4j1SEIcbkd9tndVjcPrufY3V7j2IebOpC00Zp2P/Ay2kA==", - "deprecated": "New package name format for new versions: @ethereumjs/tx. Please update.", - "dependencies": { - "ethereum-common": "^0.0.18", - "ethereumjs-util": "^5.0.0" - } - }, - "node_modules/ethereumjs-tx/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/ethereumjs-tx/node_modules/ethereum-common": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.0.18.tgz", - "integrity": "sha512-EoltVQTRNg2Uy4o84qpa2aXymXDJhxm7eos/ACOg0DG4baAbMjhbdAEsx9GeE8sC3XCxnYvrrzZDH8D8MtA2iQ==" - }, - "node_modules/ethereumjs-tx/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, "node_modules/ethereumjs-util": { "version": "7.1.5", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", @@ -10129,89 +9389,6 @@ "node": ">=10.0.0" } }, - "node_modules/ethereumjs-vm": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/ethereumjs-vm/-/ethereumjs-vm-2.6.0.tgz", - "integrity": "sha512-r/XIUik/ynGbxS3y+mvGnbOKnuLo40V5Mj1J25+HEO63aWYREIqvWeRO/hnROlMBE5WoniQmPmhiaN0ctiHaXw==", - "deprecated": "New package name format for new versions: @ethereumjs/vm. Please update.", - "dependencies": { - "async": "^2.1.2", - "async-eventemitter": "^0.2.2", - "ethereumjs-account": "^2.0.3", - "ethereumjs-block": "~2.2.0", - "ethereumjs-common": "^1.1.0", - "ethereumjs-util": "^6.0.0", - "fake-merkle-patricia-tree": "^1.0.1", - "functional-red-black-tree": "^1.0.1", - "merkle-patricia-tree": "^2.3.2", - "rustbn.js": "~0.2.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/ethereumjs-vm/node_modules/@types/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/ethereumjs-vm/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/ethereumjs-vm/node_modules/ethereumjs-block": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-2.2.2.tgz", - "integrity": "sha512-2p49ifhek3h2zeg/+da6XpdFR3GlqY3BIEiqxGF8j9aSRIgkb7M1Ky+yULBKJOu8PAZxfhsYA+HxUk2aCQp3vg==", - "deprecated": "New package name format for new versions: @ethereumjs/block. Please update.", - "dependencies": { - "async": "^2.0.1", - "ethereumjs-common": "^1.5.0", - "ethereumjs-tx": "^2.1.1", - "ethereumjs-util": "^5.0.0", - "merkle-patricia-tree": "^2.1.2" - } - }, - "node_modules/ethereumjs-vm/node_modules/ethereumjs-block/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/ethereumjs-vm/node_modules/ethereumjs-tx": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-2.1.2.tgz", - "integrity": "sha512-zZEK1onCeiORb0wyCXUvg94Ve5It/K6GD1K+26KfFKodiBiS6d9lfCXlUKGBBdQ+bv7Day+JK0tj1K+BeNFRAw==", - "deprecated": "New package name format for new versions: @ethereumjs/tx. Please update.", - "dependencies": { - "ethereumjs-common": "^1.5.0", - "ethereumjs-util": "^6.0.0" - } - }, - "node_modules/ethereumjs-vm/node_modules/ethereumjs-util": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", - "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", - "dependencies": { - "@types/bn.js": "^4.11.3", - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "0.1.6", - "rlp": "^2.2.3" - } - }, "node_modules/ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -10307,7 +9484,8 @@ "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true }, "node_modules/events": { "version": "3.3.0", @@ -10562,7 +9740,8 @@ "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true }, "node_modules/external-editor": { "version": "3.1.0", @@ -10578,22 +9757,6 @@ "node": ">=4" } }, - "node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", - "engines": [ - "node >=0.6.0" - ] - }, - "node_modules/fake-merkle-patricia-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fake-merkle-patricia-tree/-/fake-merkle-patricia-tree-1.0.1.tgz", - "integrity": "sha512-Tgq37lkc9pUIgIKw5uitNUKcgcYL3R6JvXtKQbOf/ZSavXbidsksgp/pAY6p//uhw0I4yoMsvTSovvVIsk/qxA==", - "dependencies": { - "checkpoint-store": "^1.1.0" - } - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -10618,7 +9781,8 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-redact": { "version": "3.1.2", @@ -10823,27 +9987,6 @@ "is-callable": "^1.1.3" } }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -10988,6 +10131,7 @@ "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -11001,12 +10145,13 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "funding": { @@ -11049,14 +10194,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "dependencies": { - "assert-plus": "^1.0.0" - } - }, "node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -11106,6 +10243,7 @@ "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, "engines": { "node": ">=4" } @@ -11166,46 +10304,242 @@ "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, - "node_modules/har-schema": { + "node_modules/hardhat": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.13.1.tgz", + "integrity": "sha512-ZZL7LQxHmbw4JQJsiEv2qE35nbR+isr2sIdtgZVPp0+zWqRkpr1OT7gmvhCNYfjpEPyfjZIxWriQWlphJhVPLQ==", + "dependencies": { + "@ethersproject/abi": "^5.1.2", + "@metamask/eth-sig-util": "^4.0.0", + "@nomicfoundation/ethereumjs-block": "5.0.0", + "@nomicfoundation/ethereumjs-blockchain": "7.0.0", + "@nomicfoundation/ethereumjs-common": "4.0.0", + "@nomicfoundation/ethereumjs-evm": "2.0.0", + "@nomicfoundation/ethereumjs-rlp": "5.0.0", + "@nomicfoundation/ethereumjs-statemanager": "2.0.0", + "@nomicfoundation/ethereumjs-trie": "6.0.0", + "@nomicfoundation/ethereumjs-tx": "5.0.0", + "@nomicfoundation/ethereumjs-util": "9.0.0", + "@nomicfoundation/ethereumjs-vm": "7.0.0", + "@nomicfoundation/solidity-analyzer": "^0.1.0", + "@sentry/node": "^5.18.1", + "@types/bn.js": "^5.1.0", + "@types/lru-cache": "^5.1.0", + "abort-controller": "^3.0.0", + "adm-zip": "^0.4.16", + "aggregate-error": "^3.0.0", + "ansi-escapes": "^4.3.0", + "chalk": "^2.4.2", + "chokidar": "^3.4.0", + "ci-info": "^2.0.0", + "debug": "^4.1.1", + "enquirer": "^2.3.0", + "env-paths": "^2.2.0", + "ethereum-cryptography": "^1.0.3", + "ethereumjs-abi": "^0.6.8", + "find-up": "^2.1.0", + "fp-ts": "1.19.3", + "fs-extra": "^7.0.1", + "glob": "7.2.0", + "immutable": "^4.0.0-rc.12", + "io-ts": "1.10.4", + "keccak": "^3.0.2", + "lodash": "^4.17.11", + "mnemonist": "^0.38.0", + "mocha": "^10.0.0", + "p-map": "^4.0.0", + "qs": "^6.7.0", + "raw-body": "^2.4.1", + "resolve": "1.17.0", + "semver": "^6.3.0", + "solc": "0.7.3", + "source-map-support": "^0.5.13", + "stacktrace-parser": "^0.1.10", + "tsort": "0.0.1", + "undici": "^5.14.0", + "uuid": "^8.3.2", + "ws": "^7.4.6" + }, + "bin": { + "hardhat": "internal/cli/bootstrap.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "ts-node": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/hardhat/node_modules/@noble/hashes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", + "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ] + }, + "node_modules/hardhat/node_modules/@scure/bip32": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", + "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/hardhat/node_modules/@scure/bip39": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", + "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/hardhat/node_modules/ethereum-cryptography": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", + "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", + "dependencies": { + "@noble/hashes": "1.2.0", + "@noble/secp256k1": "1.7.1", + "@scure/bip32": "1.1.5", + "@scure/bip39": "1.1.1" + } + }, + "node_modules/hardhat/node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hardhat/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/hardhat/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/hardhat/node_modules/locate-path": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, "engines": { "node": ">=4" } }, - "node_modules/har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", + "node_modules/hardhat/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" + "p-try": "^1.0.0" }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/har-validator/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/hardhat/node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hardhat/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "engines": { + "node": ">=4" + } + }, + "node_modules/hardhat/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/hardhat/node_modules/resolve": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "dependencies": { + "path-parse": "^1.0.6" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/har-validator/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "node_modules/hardhat/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/hardhat/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } }, "node_modules/has": { "version": "1.0.3", @@ -11532,20 +10866,6 @@ } } }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, "node_modules/https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -11657,11 +10977,6 @@ "node": ">=0.10.0" } }, - "node_modules/immediate": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", - "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==" - }, "node_modules/immutable": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", @@ -12031,14 +11346,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-fn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fn/-/is-fn-1.0.0.tgz", - "integrity": "sha512-XoFPJQmsAShb3jEQRfzf2rqXavq7fIqF/jOekp308JlThqrODnMpweVSGilKTCXELfLhltGP2AGgbQGVP8F1dg==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -12357,11 +11664,6 @@ "node": ">=10" } }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" - }, "node_modules/istanbul-lib-coverage": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", @@ -12512,9 +11814,9 @@ } }, "node_modules/js-sdsl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", - "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.2.tgz", + "integrity": "sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w==", "funding": { "type": "opencollective", "url": "https://opencollective.com/js-sdsl" @@ -12528,7 +11830,8 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "node_modules/js-yaml": { "version": "3.14.1", @@ -12543,15 +11846,11 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, "bin": { "jsesc": "bin/jsesc" }, @@ -12565,54 +11864,17 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "node_modules/json-rpc-engine": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz", - "integrity": "sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==", - "dependencies": { - "@metamask/safe-event-emitter": "^2.0.0", - "eth-rpc-errors": "^4.0.2" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/json-rpc-random-id": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz", - "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==" - }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, - "node_modules/json-stable-stringify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", - "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", - "dependencies": { - "jsonify": "^0.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, "bin": { "json5": "lib/cli.js" }, @@ -12637,14 +11899,6 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -12655,9 +11909,9 @@ ] }, "node_modules/jsonwebtoken": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", - "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.1.tgz", + "integrity": "sha512-K8wx7eJ5TPvEjuiVSkv167EVboBDv9PZdDoF7BgeQnBLVvZWW9clr2PsQHVJDTKaEIH5JBIwHujGcHp7GgI2eg==", "dependencies": { "jws": "^3.2.2", "lodash": "^4.17.21", @@ -12681,9 +11935,9 @@ } }, "node_modules/jsonwebtoken/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -12699,20 +11953,6 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "node_modules/jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, "node_modules/jwa": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", @@ -13104,51 +12344,6 @@ "url": "https://opencollective.com/level" } }, - "node_modules/level-codec": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/level-codec/-/level-codec-7.0.1.tgz", - "integrity": "sha512-Ua/R9B9r3RasXdRmOtd+t9TCOEIIlts+TN/7XTT2unhDaL6sJn83S3rUyljbr6lVtw49N3/yA0HHjpV6Kzb2aQ==" - }, - "node_modules/level-errors": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/level-errors/-/level-errors-1.0.5.tgz", - "integrity": "sha512-/cLUpQduF6bNrWuAC4pwtUKA5t669pCsCi2XbmojG2tFeOr9j6ShtdDCtFFQO1DRt+EVZhx9gPzP9G2bUaG4ig==", - "dependencies": { - "errno": "~0.1.1" - } - }, - "node_modules/level-iterator-stream": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/level-iterator-stream/-/level-iterator-stream-1.3.1.tgz", - "integrity": "sha512-1qua0RHNtr4nrZBgYlpV0qHHeHpcRRWTxEZJ8xsemoHAXNL5tbooh4tPEEqIqsbWCAJBmUmkwYK/sW5OrFjWWw==", - "dependencies": { - "inherits": "^2.0.1", - "level-errors": "^1.0.3", - "readable-stream": "^1.0.33", - "xtend": "^4.0.0" - } - }, - "node_modules/level-iterator-stream/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "node_modules/level-iterator-stream/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/level-iterator-stream/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - }, "node_modules/level-supports": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/level-supports/-/level-supports-4.0.1.tgz", @@ -13169,74 +12364,6 @@ "node": ">=12" } }, - "node_modules/level-ws": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.0.tgz", - "integrity": "sha512-XUTaO/+Db51Uiyp/t7fCMGVFOTdtLS/NIACxE/GHsij15mKzxksZifKVjlXDF41JMUP/oM1Oc4YNGdKnc3dVLw==", - "dependencies": { - "readable-stream": "~1.0.15", - "xtend": "~2.1.1" - } - }, - "node_modules/level-ws/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "node_modules/level-ws/node_modules/object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==" - }, - "node_modules/level-ws/node_modules/readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/level-ws/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - }, - "node_modules/level-ws/node_modules/xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", - "dependencies": { - "object-keys": "~0.4.0" - }, - "engines": { - "node": ">=0.4" - } - }, - "node_modules/levelup": { - "version": "1.3.9", - "resolved": "https://registry.npmjs.org/levelup/-/levelup-1.3.9.tgz", - "integrity": "sha512-VVGHfKIlmw8w1XqpGOAGwq6sZm2WwWLmlDcULkKWQXEA5EopA8OBNJ2Ck2v6bdk8HeEZSbCSEgzXadyQFm76sQ==", - "dependencies": { - "deferred-leveldown": "~1.2.1", - "level-codec": "~7.0.0", - "level-errors": "~1.0.3", - "level-iterator-stream": "~1.3.0", - "prr": "~1.0.1", - "semver": "~5.4.1", - "xtend": "~4.0.0" - } - }, - "node_modules/levelup/node_modules/semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", - "bin": { - "semver": "bin/semver" - } - }, "node_modules/license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", @@ -13303,7 +12430,8 @@ "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true }, "node_modules/lodash.isequal": { "version": "4.5.0", @@ -13439,6 +12567,14 @@ "url": "https://tidelift.com/funding/github/npm/loglevel" } }, + "node_modules/long": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", + "integrity": "sha512-ZYvPPOMqUwPoDsbJaR10iQJYnMuZhRTvHYl62ErLIEX7RgFlziSBUUvrt3OVfc47QlHHpzPZYP17g3Fv7oeJkg==", + "engines": { + "node": ">=0.6" + } + }, "node_modules/lru_map": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", @@ -13452,11 +12588,6 @@ "yallist": "^3.0.2" } }, - "node_modules/ltgt": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ltgt/-/ltgt-2.2.1.tgz", - "integrity": "sha512-AI2r85+4MquTw9ZYqabu4nMwy9Oftlfa/e/52t9IjtfG+mGBbTNdAoZ3RQKLHR6r0wQnwZnPIEh/Ya6XTWAKNA==" - }, "node_modules/magic-string": { "version": "0.25.7", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", @@ -13562,32 +12693,6 @@ "node": ">= 0.6" } }, - "node_modules/memdown": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/memdown/-/memdown-1.4.1.tgz", - "integrity": "sha512-iVrGHZB8i4OQfM155xx8akvG9FIj+ht14DX5CQkCTG4EHzZ3d3sgckIf/Lm9ivZalEsFuEVnWv2B2WZvbrro2w==", - "dependencies": { - "abstract-leveldown": "~2.7.1", - "functional-red-black-tree": "^1.0.1", - "immediate": "^3.2.3", - "inherits": "~2.0.1", - "ltgt": "~2.2.0", - "safe-buffer": "~5.1.1" - } - }, - "node_modules/memdown/node_modules/abstract-leveldown": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.7.2.tgz", - "integrity": "sha512-+OVvxH2rHVEhWLdbudP6p0+dNMXu8JA1CbhP19T8paTYAcX7oJ4OVjT+ZUVpv7mITxXHqDMej+GdqXBmXkw09w==", - "dependencies": { - "xtend": "~4.0.0" - } - }, - "node_modules/memdown/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, "node_modules/memfs": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz", @@ -13642,77 +12747,6 @@ "node": ">= 8" } }, - "node_modules/merkle-patricia-tree": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-2.3.2.tgz", - "integrity": "sha512-81PW5m8oz/pz3GvsAwbauj7Y00rqm81Tzad77tHBwU7pIAtN+TJnMSOJhxBKflSVYhptMMb9RskhqHqrSm1V+g==", - "dependencies": { - "async": "^1.4.2", - "ethereumjs-util": "^5.0.0", - "level-ws": "0.0.0", - "levelup": "^1.2.1", - "memdown": "^1.0.0", - "readable-stream": "^2.0.0", - "rlp": "^2.0.0", - "semaphore": ">=1.0.1" - } - }, - "node_modules/merkle-patricia-tree/node_modules/async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w==" - }, - "node_modules/merkle-patricia-tree/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/merkle-patricia-tree/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/merkle-patricia-tree/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/merkle-patricia-tree/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/merkle-patricia-tree/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/merkle-patricia-tree/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -13722,6 +12756,11 @@ "node": ">= 0.6" } }, + "node_modules/micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==" + }, "node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", @@ -13767,6 +12806,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, "engines": { "node": ">= 0.6" } @@ -13775,6 +12815,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -14475,7 +13516,8 @@ "node_modules/node-releases": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", - "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==" + "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==", + "dev": true }, "node_modules/node-stdlib-browser": { "version": "1.2.0", @@ -15013,14 +14055,6 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==" }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "engines": { - "node": "*" - } - }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -15583,9 +14617,9 @@ } }, "node_modules/patch-package/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } @@ -15673,15 +14707,11 @@ "node": ">=0.12" } }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" - }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", @@ -16419,14 +15449,6 @@ "url": "https://opencollective.com/preact" } }, - "node_modules/precond": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz", - "integrity": "sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/prettier": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", @@ -16464,7 +15486,8 @@ "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true }, "node_modules/process-warning": { "version": "1.0.0", @@ -16490,18 +15513,6 @@ "node": ">=10" } }, - "node_modules/promise-to-callback": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/promise-to-callback/-/promise-to-callback-1.0.0.tgz", - "integrity": "sha512-uhMIZmKM5ZteDMfLgJnoSq9GCwsNKrYau73Awf1jIy6/eUcuuZ3P+CD9zUv0kJsIUbU+x6uLNIhXhLHDs1pNPA==", - "dependencies": { - "is-fn": "^1.0.0", - "set-immediate-shim": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -16527,12 +15538,9 @@ "node_modules/prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==" - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "dev": true, + "optional": true }, "node_modules/public-encrypt": { "version": "4.0.3", @@ -16567,11 +15575,11 @@ "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" }, "node_modules/pvtsutils": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.2.tgz", - "integrity": "sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.4.tgz", + "integrity": "sha512-Y2lmrVPui6d2U0n8lWRSTQ2Ri/0VDcA/BHAPS8/+5ElWp5drG4oPryLaqnehJT71Q2GgmGeB4mau+lSR1gCCmA==", "dependencies": { - "tslib": "^2.4.0" + "tslib": "^2.6.1" } }, "node_modules/pvutils": { @@ -16652,6 +15660,14 @@ "wrap-ansi": "^5.1.0" } }, + "node_modules/qrcode/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/qrcode/node_modules/emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", @@ -17033,54 +16049,6 @@ "jsesc": "bin/jsesc" } }, - "node_modules/request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/qs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/request/node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "bin": { - "uuid": "bin/uuid" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -17351,6 +16319,23 @@ "tslib": "^2.1.0" } }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -17370,15 +16355,6 @@ } ] }, - "node_modules/safe-event-emitter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-event-emitter/-/safe-event-emitter-1.0.1.tgz", - "integrity": "sha512-e1wFe99A91XYYxoQbcq2ZJUWurxEyP8vfz7A7vuUe1s95q8r5ebraVaA1BukYJcpM6V16ugWoD9vngi8Ccu5fg==", - "deprecated": "Renamed to @metamask/safe-event-emitter", - "dependencies": { - "events": "^3.0.0" - } - }, "node_modules/safe-json-utils": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/safe-json-utils/-/safe-json-utils-1.1.1.tgz", @@ -17558,14 +16534,6 @@ "node": ">=10" } }, - "node_modules/semaphore": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/semaphore/-/semaphore-1.1.0.tgz", - "integrity": "sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA==", - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/semver": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", @@ -17763,14 +16731,6 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, - "node_modules/set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha512-Li5AOqrZWCVA2n5kryzEmqai6bKSIvpz5oUJHPVj6+dsbD3X1ixtsY5tEnsaNpH3pFAHmG8eIHUrtEtohrg+UQ==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -18060,9 +17020,9 @@ } }, "node_modules/solc/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } @@ -18213,35 +17173,6 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, - "node_modules/sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sshpk/node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - }, "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -18557,6 +17488,14 @@ "webpack": "^5.0.0" } }, + "node_modules/superstruct": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz", + "integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -18818,47 +17757,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/through2/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/through2/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/through2/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/through2/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -18899,6 +17797,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, "engines": { "node": ">=4" } @@ -18927,26 +17826,6 @@ "node": ">=0.6" } }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tough-cookie/node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -18962,11 +17841,10 @@ } }, "node_modules/ts-command-line-args": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.0.tgz", - "integrity": "sha512-Ff7Xt04WWCjj/cmPO9eWTJX3qpBZWuPWyQYG1vnxJao+alWWYjwJBc5aYz3h5p5dE08A6AnpkgiCtP/0KXXBYw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", + "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", "dependencies": { - "@morgan-stanley/ts-mocking-bird": "^0.6.2", "chalk": "^4.1.0", "command-line-args": "^5.1.1", "command-line-usage": "^6.1.0", @@ -18976,28 +17854,6 @@ "write-markdown": "dist/write-markdown.js" } }, - "node_modules/ts-command-line-args/node_modules/@morgan-stanley/ts-mocking-bird": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/@morgan-stanley/ts-mocking-bird/-/ts-mocking-bird-0.6.4.tgz", - "integrity": "sha512-57VJIflP8eR2xXa9cD1LUawh+Gh+BVQfVu0n6GALyg/AqV/Nz25kDRvws3i9kIe1PTrbsZZOYpsYp6bXPd6nVA==", - "dependencies": { - "lodash": "^4.17.16", - "uuid": "^7.0.3" - }, - "peerDependencies": { - "jasmine": "2.x || 3.x || 4.x", - "jest": "26.x || 27.x || 28.x", - "typescript": ">=4.2" - }, - "peerDependenciesMeta": { - "jasmine": { - "optional": true - }, - "jest": { - "optional": true - } - } - }, "node_modules/ts-command-line-args/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -19062,18 +17918,18 @@ "node": ">=8" } }, - "node_modules/ts-command-line-args/node_modules/uuid": { + "node_modules/ts-essentials": { "version": "7.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", - "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==", - "bin": { - "uuid": "dist/bin/uuid" + "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", + "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "peerDependencies": { + "typescript": ">=3.7.0" } }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", + "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==" }, "node_modules/tsort": { "version": "0.0.1", @@ -19085,17 +17941,6 @@ "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==" }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, "node_modules/tweetnacl": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", @@ -19135,6 +17980,125 @@ "node": ">= 0.6" } }, + "node_modules/typechain": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.1.tgz", + "integrity": "sha512-fA7clol2IP/56yq6vkMTR+4URF1nGjV82Wx6Rf09EsqD4tkzMAvEaqYxVFCavJm/1xaRga/oD55K+4FtuXwQOQ==", + "dependencies": { + "@types/prettier": "^2.1.1", + "debug": "^4.3.1", + "fs-extra": "^7.0.0", + "glob": "7.1.7", + "js-sha3": "^0.8.0", + "lodash": "^4.17.15", + "mkdirp": "^1.0.4", + "prettier": "^2.3.1", + "ts-command-line-args": "^2.2.0", + "ts-essentials": "^7.0.1" + }, + "bin": { + "typechain": "dist/cli/cli.js" + }, + "peerDependencies": { + "typescript": ">=4.3.0" + } + }, + "node_modules/typechain/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/typechain/node_modules/glob": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typechain/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/typechain/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typed-array-length": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", @@ -19224,9 +18188,9 @@ } }, "node_modules/undici": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", - "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "version": "5.23.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.23.0.tgz", + "integrity": "sha512-1D7w+fvRsqlQ9GscLBwcAJinqcZGHUKjbOmXdlE/v8BvEGXjeWAax+341q44EuTcHXXnfyKNbKRq4Lg7OzhMmg==", "dependencies": { "busboy": "^1.6.0" }, @@ -19312,6 +18276,7 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, "funding": [ { "type": "opencollective", @@ -19341,6 +18306,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -19349,6 +18315,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, "engines": { "node": ">=6" } @@ -19441,19 +18408,6 @@ "node": ">= 0.8" } }, - "node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -19631,119 +18585,6 @@ "node": ">=8.0.0" } }, - "node_modules/web3-provider-engine": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-16.0.1.tgz", - "integrity": "sha512-/Eglt2aocXMBiDj7Se/lyZnNDaHBaoJlaUfbP5HkLJQC/HlGbR+3/W+dINirlJDhh7b54DzgykqY7ksaU5QgTg==", - "dependencies": { - "async": "^2.5.0", - "backoff": "^2.5.0", - "clone": "^2.0.0", - "cross-fetch": "^2.1.0", - "eth-block-tracker": "^4.4.2", - "eth-json-rpc-filters": "^4.2.1", - "eth-json-rpc-infura": "^5.1.0", - "eth-json-rpc-middleware": "^6.0.0", - "eth-rpc-errors": "^3.0.0", - "eth-sig-util": "^1.4.2", - "ethereumjs-block": "^1.2.2", - "ethereumjs-tx": "^1.2.0", - "ethereumjs-util": "^5.1.5", - "ethereumjs-vm": "^2.3.4", - "json-stable-stringify": "^1.0.1", - "promise-to-callback": "^1.0.0", - "readable-stream": "^2.2.9", - "request": "^2.85.0", - "semaphore": "^1.0.3", - "ws": "^5.1.1", - "xhr": "^2.2.0", - "xtend": "^4.0.1" - } - }, - "node_modules/web3-provider-engine/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/web3-provider-engine/node_modules/clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/web3-provider-engine/node_modules/cross-fetch": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-2.2.6.tgz", - "integrity": "sha512-9JZz+vXCmfKUZ68zAptS7k4Nu8e2qcibe7WVZYps7sAgk5R8GYTc+T1WR0v1rlP9HxgARmOX1UTIJZFytajpNA==", - "dependencies": { - "node-fetch": "^2.6.7", - "whatwg-fetch": "^2.0.4" - } - }, - "node_modules/web3-provider-engine/node_modules/eth-rpc-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz", - "integrity": "sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, - "node_modules/web3-provider-engine/node_modules/ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "dependencies": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/web3-provider-engine/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/web3-provider-engine/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/web3-provider-engine/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/web3-provider-engine/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/web3-provider-engine/node_modules/ws": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.3.tgz", - "integrity": "sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==", - "dependencies": { - "async-limiter": "~1.0.0" - } - }, "node_modules/web3-providers-http": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.9.0.tgz", @@ -20161,11 +19002,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/whatwg-fetch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", - "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==" - }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -20207,16 +19043,15 @@ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" }, "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", + "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", "dependencies": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -20390,14 +19225,6 @@ "node": ">=0.10.0" } }, - "node_modules/xhr2-cookies": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/xhr2-cookies/-/xhr2-cookies-1.1.0.tgz", - "integrity": "sha512-hjXUA6q+jl/bd8ADHcVfFsSPIf+tyLIjuO9TwJC9WI6JP2zKcS7C+p56I9kCLLsaCiNT035iYvEUUzdEFj/8+g==", - "dependencies": { - "cookiejar": "^2.1.1" - } - }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -20487,17 +19314,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/yargs-unparser/node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/yargs-unparser/node_modules/is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", @@ -20945,6 +19761,7 @@ "version": "7.21.4", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "dev": true, "requires": { "@babel/highlight": "^7.18.6" } @@ -20952,12 +19769,14 @@ "@babel/compat-data": { "version": "7.21.7", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.21.7.tgz", - "integrity": "sha512-KYMqFYTaenzMK4yUtf4EW9wc4N9ef80FsbMtkwool5zpwl4YrT1SdWYSTRcT94KO4hannogdS+LxY7L+arP3gA==" + "integrity": "sha512-KYMqFYTaenzMK4yUtf4EW9wc4N9ef80FsbMtkwool5zpwl4YrT1SdWYSTRcT94KO4hannogdS+LxY7L+arP3gA==", + "dev": true }, "@babel/core": { "version": "7.16.12", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz", "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==", + "dev": true, "requires": { "@babel/code-frame": "^7.16.7", "@babel/generator": "^7.16.8", @@ -20979,12 +19798,14 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true } } }, @@ -20992,6 +19813,7 @@ "version": "7.16.8", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "dev": true, "requires": { "@babel/types": "^7.16.8", "jsesc": "^2.5.1", @@ -21001,7 +19823,8 @@ "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true } } }, @@ -21027,6 +19850,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.5.tgz", "integrity": "sha512-1RkbFGUKex4lvsB9yhIfWltJM5cZKUftB2eNajaDv3dCMEp49iBG0K14uH8NnX9IPux2+mK7JGEOB0jn48/J6w==", + "dev": true, "requires": { "@babel/compat-data": "^7.21.5", "@babel/helper-validator-option": "^7.21.0", @@ -21038,7 +19862,8 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true } } }, @@ -21108,6 +19933,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "dev": true, "requires": { "@babel/helper-compilation-targets": "^7.17.7", "@babel/helper-plugin-utils": "^7.16.7", @@ -21120,19 +19946,22 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true } } }, "@babel/helper-environment-visitor": { "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.21.5.tgz", - "integrity": "sha512-IYl4gZ3ETsWocUWgsFZLM5i1BYx9SoemminVEXadgLBa9TdeorzgLKm8wWLA6J1N/kT3Kch8XIk1laNzYoHKvQ==" + "integrity": "sha512-IYl4gZ3ETsWocUWgsFZLM5i1BYx9SoemminVEXadgLBa9TdeorzgLKm8wWLA6J1N/kT3Kch8XIk1laNzYoHKvQ==", + "dev": true }, "@babel/helper-function-name": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "dev": true, "requires": { "@babel/template": "^7.20.7", "@babel/types": "^7.21.0" @@ -21142,6 +19971,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, "requires": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", @@ -21154,6 +19984,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dev": true, "requires": { "@babel/types": "^7.18.6" } @@ -21171,6 +20002,7 @@ "version": "7.21.4", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "dev": true, "requires": { "@babel/types": "^7.21.4" } @@ -21179,6 +20011,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.5.tgz", "integrity": "sha512-bI2Z9zBGY2q5yMHoBvJ2a9iX3ZOAzJPm7Q8Yz6YeoUjU/Cvhmi2G4QyTNyPBqqXSgTjUxRg3L0xV45HvkNWWBw==", + "dev": true, "requires": { "@babel/helper-environment-visitor": "^7.21.5", "@babel/helper-module-imports": "^7.21.4", @@ -21194,6 +20027,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, "requires": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", @@ -21214,7 +20048,8 @@ "@babel/helper-plugin-utils": { "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", - "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==" + "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==", + "dev": true }, "@babel/helper-remap-async-to-generator": { "version": "7.18.9", @@ -21270,6 +20105,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", + "dev": true, "requires": { "@babel/types": "^7.21.5" } @@ -21287,6 +20123,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dev": true, "requires": { "@babel/types": "^7.18.6" } @@ -21294,17 +20131,20 @@ "@babel/helper-string-parser": { "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", - "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==" + "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==", + "dev": true }, "@babel/helper-validator-identifier": { "version": "7.19.1", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true }, "@babel/helper-validator-option": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==" + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "dev": true }, "@babel/helper-wrap-function": { "version": "7.20.5", @@ -21335,6 +20175,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.5.tgz", "integrity": "sha512-BSY+JSlHxOmGsPTydUkPf1MdMQ3M81x5xGCOVgWM3G8XH77sJ292Y2oqcp0CbbgxhqBuI46iUz1tT7hqP7EfgA==", + "dev": true, "requires": { "@babel/template": "^7.20.7", "@babel/traverse": "^7.21.5", @@ -21345,6 +20186,7 @@ "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", + "dev": true, "requires": { "@babel/code-frame": "^7.18.6", "@babel/parser": "^7.20.7", @@ -21357,6 +20199,7 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.18.6", "chalk": "^2.0.0", @@ -21366,7 +20209,8 @@ "@babel/parser": { "version": "7.21.8", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.8.tgz", - "integrity": "sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==" + "integrity": "sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==", + "dev": true }, "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { "version": "7.18.6", @@ -21961,6 +20805,7 @@ "version": "7.16.10", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.10.tgz", "integrity": "sha512-9nwTiqETv2G7xI4RvXHNfpGdr8pAA+Q/YtN3yLK7OoK7n9OibVm/xymJ838a9A6E/IciOLPj82lZk0fW6O4O7w==", + "dev": true, "requires": { "@babel/helper-module-imports": "^7.16.7", "@babel/helper-plugin-utils": "^7.16.7", @@ -21973,7 +20818,8 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true } } }, @@ -22163,6 +21009,7 @@ "version": "7.16.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "dev": true, "requires": { "@babel/code-frame": "^7.16.7", "@babel/parser": "^7.16.7", @@ -22173,6 +21020,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.5.tgz", "integrity": "sha512-AhQoI3YjWi6u/y/ntv7k48mcrCXmus0t79J9qPNlk/lAsFlCiJ047RmbfMOawySTHtywXhbXgpx/8nXMYd+oFw==", + "dev": true, "requires": { "@babel/code-frame": "^7.21.4", "@babel/generator": "^7.21.5", @@ -22190,6 +21038,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.5.tgz", "integrity": "sha512-SrKK/sRv8GesIW1bDagf9cCG38IOMYZusoe1dfg0D8aiUe3Amvoj1QtjTPAWcfrZFvIwlleLb0gxzQidL9w14w==", + "dev": true, "requires": { "@babel/types": "^7.21.5", "@jridgewell/gen-mapping": "^0.3.2", @@ -22201,6 +21050,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, "requires": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -22213,6 +21063,7 @@ "version": "7.21.5", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.5.tgz", "integrity": "sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q==", + "dev": true, "requires": { "@babel/helper-string-parser": "^7.21.5", "@babel/helper-validator-identifier": "^7.19.1", @@ -22279,222 +21130,6 @@ "@typechain/hardhat": "^6.1.5", "hardhat": "2.13.1", "typechain": "^8.1.1" - }, - "dependencies": { - "@typechain/ethers-v5": { - "version": "10.2.1", - "resolved": "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.2.1.tgz", - "integrity": "sha512-n3tQmCZjRE6IU4h6lqUGiQ1j866n5MTCBJreNEHHVWXa2u9GJTaeYyU1/k+1qLutkyw+sS6VAN+AbeiTqsxd/A==", - "requires": { - "lodash": "^4.17.15", - "ts-essentials": "^7.0.1" - } - }, - "@typechain/hardhat": { - "version": "6.1.6", - "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-6.1.6.tgz", - "integrity": "sha512-BiVnegSs+ZHVymyidtK472syodx1sXYlYJJixZfRstHVGYTi8V1O7QG4nsjyb0PC/LORcq7sfBUcHto1y6UgJA==", - "requires": { - "fs-extra": "^9.1.0" - } - }, - "ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", - "requires": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", - "requires": { - "locate-path": "^2.0.0" - } - }, - "hardhat": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.13.1.tgz", - "integrity": "sha512-ZZL7LQxHmbw4JQJsiEv2qE35nbR+isr2sIdtgZVPp0+zWqRkpr1OT7gmvhCNYfjpEPyfjZIxWriQWlphJhVPLQ==", - "requires": { - "@ethersproject/abi": "^5.1.2", - "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/ethereumjs-block": "5.0.0", - "@nomicfoundation/ethereumjs-blockchain": "7.0.0", - "@nomicfoundation/ethereumjs-common": "4.0.0", - "@nomicfoundation/ethereumjs-evm": "2.0.0", - "@nomicfoundation/ethereumjs-rlp": "5.0.0", - "@nomicfoundation/ethereumjs-statemanager": "2.0.0", - "@nomicfoundation/ethereumjs-trie": "6.0.0", - "@nomicfoundation/ethereumjs-tx": "5.0.0", - "@nomicfoundation/ethereumjs-util": "9.0.0", - "@nomicfoundation/ethereumjs-vm": "7.0.0", - "@nomicfoundation/solidity-analyzer": "^0.1.0", - "@sentry/node": "^5.18.1", - "@types/bn.js": "^5.1.0", - "@types/lru-cache": "^5.1.0", - "abort-controller": "^3.0.0", - "adm-zip": "^0.4.16", - "aggregate-error": "^3.0.0", - "ansi-escapes": "^4.3.0", - "chalk": "^2.4.2", - "chokidar": "^3.4.0", - "ci-info": "^2.0.0", - "debug": "^4.1.1", - "enquirer": "^2.3.0", - "env-paths": "^2.2.0", - "ethereum-cryptography": "^1.0.3", - "ethereumjs-abi": "^0.6.8", - "find-up": "^2.1.0", - "fp-ts": "1.19.3", - "fs-extra": "^7.0.1", - "glob": "7.2.0", - "immutable": "^4.0.0-rc.12", - "io-ts": "1.10.4", - "keccak": "^3.0.2", - "lodash": "^4.17.11", - "mnemonist": "^0.38.0", - "mocha": "^10.0.0", - "p-map": "^4.0.0", - "qs": "^6.7.0", - "raw-body": "^2.4.1", - "resolve": "1.17.0", - "semver": "^6.3.0", - "solc": "0.7.3", - "source-map-support": "^0.5.13", - "stacktrace-parser": "^0.1.10", - "tsort": "0.0.1", - "undici": "^5.14.0", - "uuid": "^8.3.2", - "ws": "^7.4.6" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - } - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==" - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" - }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "requires": { - "path-parse": "^1.0.6" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - }, - "ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "requires": {} - }, - "typechain": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.2.0.tgz", - "integrity": "sha512-tZqhqjxJ9xAS/Lh32jccTjMkpx7sTdUVVHAy5Bf0TIer5QFNYXotiX74oCvoVYjyxUKDK3MXHtMFzMyD3kE+jg==", - "requires": { - "@types/prettier": "^2.1.1", - "debug": "^4.3.1", - "fs-extra": "^7.0.0", - "glob": "7.1.7", - "js-sha3": "^0.8.0", - "lodash": "^4.17.15", - "mkdirp": "^1.0.4", - "prettier": "^2.3.1", - "ts-command-line-args": "^2.2.0", - "ts-essentials": "^7.0.1" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } } }, "@ethereum-attestation-service/eas-sdk": { @@ -22516,6 +21151,11 @@ "ethereumjs-util": "^7.1.1" } }, + "@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==" + }, "@ethereumjs/tx": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.3.2.tgz", @@ -22525,6 +21165,29 @@ "ethereumjs-util": "^7.1.2" } }, + "@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "requires": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "dependencies": { + "ethereum-cryptography": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "requires": { + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" + } + } + } + }, "@ethersproject/abi": { "version": "5.7.0", "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", @@ -22692,13 +21355,6 @@ "@ethersproject/transactions": "^5.7.0", "aes-js": "3.0.0", "scrypt-js": "3.0.1" - }, - "dependencies": { - "aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" - } } }, "@ethersproject/keccak256": { @@ -22949,12 +21605,14 @@ "@jridgewell/resolve-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true }, "@jridgewell/set-array": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true }, "@jridgewell/source-map": { "version": "0.3.3", @@ -22982,12 +21640,14 @@ "@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true }, "@jridgewell/trace-mapping": { "version": "0.3.18", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, "requires": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" @@ -22996,7 +21656,8 @@ "@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true } } }, @@ -23069,19 +21730,88 @@ } } }, - "@metamask/obs-store": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@metamask/obs-store/-/obs-store-7.0.0.tgz", - "integrity": "sha512-Tr61Uu9CGXkCg5CZwOYRMQERd+y6fbtrtLd/PzDTPHO5UJpmSbU+7MPcQK7d1DwZCOCeCIvhmZSUCvYliC8uGw==", + "@metamask/rpc-errors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-5.1.1.tgz", + "integrity": "sha512-JjZnDi2y2CfvbohhBl+FOQRzmFlJpybcQlIk37zEX8B96eVSPbH/T8S0p7cSF8IE33IWx6JkD8Ycsd+2TXFxCw==", "requires": { - "@metamask/safe-event-emitter": "^2.0.0", - "through2": "^2.0.3" + "@metamask/utils": "^5.0.0", + "fast-safe-stringify": "^2.0.6" } }, - "@metamask/safe-event-emitter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", - "integrity": "sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==" + "@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "requires": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "dependencies": { + "@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "requires": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "requires": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ethereum-cryptography": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", + "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "requires": { + "@noble/curves": "1.1.0", + "@noble/hashes": "1.3.1", + "@scure/bip32": "1.3.1", + "@scure/bip39": "1.2.1" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } }, "@ngtools/webpack": { "version": "13.3.11", @@ -23090,10 +21820,18 @@ "dev": true, "requires": {} }, + "@noble/curves": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", + "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", + "requires": { + "@noble/hashes": "1.3.1" + } + }, "@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==" }, "@noble/secp256k1": { "version": "1.7.1", @@ -23809,21 +22547,21 @@ "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==" }, "@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", + "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", "requires": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", + "@noble/curves": "~1.1.0", + "@noble/hashes": "~1.3.1", "@scure/base": "~1.1.0" } }, "@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", "requires": { - "@noble/hashes": "~1.2.0", + "@noble/hashes": "~1.3.0", "@scure/base": "~1.1.0" } }, @@ -23839,11 +22577,6 @@ "tslib": "^1.9.3" }, "dependencies": { - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" - }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -23861,11 +22594,6 @@ "tslib": "^1.9.3" }, "dependencies": { - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" - }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -23883,11 +22611,6 @@ "tslib": "^1.9.3" }, "dependencies": { - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" - }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -23911,11 +22634,6 @@ "tslib": "^1.9.3" }, "dependencies": { - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" - }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -23935,11 +22653,6 @@ "tslib": "^1.9.3" }, "dependencies": { - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" - }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -23948,11 +22661,9 @@ } }, "@sentry/types": { - "version": "7.53.1", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.53.1.tgz", - "integrity": "sha512-/ijchRIu+jz3+j/zY+7KRPfLSCY14fTx5xujjbOdmEKjmIHQmwPBdszcQm40uwofrR8taV4hbt5MFN+WnjCkCw==", - "optional": true, - "peer": true + "version": "5.30.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", + "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" }, "@sentry/utils": { "version": "5.30.0", @@ -23963,11 +22674,6 @@ "tslib": "^1.9.3" }, "dependencies": { - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==" - }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", @@ -24128,9 +22834,9 @@ } }, "@tokenscript/attestation": { - "version": "0.5.0-beta.1", - "resolved": "https://registry.npmjs.org/@tokenscript/attestation/-/attestation-0.5.0-beta.1.tgz", - "integrity": "sha512-d71u9WyVmu//pOZvi4sKXsGQUxfUxcX6rEUUxy03fDLWDbkEWQx6tjn6mRKfr3TsQLyyPCX//N27pmit0TSQCA==", + "version": "0.6.0-rc.3", + "resolved": "https://registry.npmjs.org/@tokenscript/attestation/-/attestation-0.6.0-rc.3.tgz", + "integrity": "sha512-yxA0IFK5gdwvzfa8VJowbd5FV1PPpXVFn4CnQz5T7DS79Ueq9cge/PL1JbeB6EeZJlE70McSscyo+vL0NBuP4A==", "requires": { "@ethereum-attestation-service/eas-sdk": "^0.28.3", "@peculiar/asn1-schema": "^2.3.3", @@ -24153,18 +22859,20 @@ } }, "@tokenscript/token-negotiator": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator/-/token-negotiator-2.7.0.tgz", - "integrity": "sha512-mfQqLPVy8fmzhrTEXD/rvjfdWG7kRuk6ed1oa24CqMhRm4SE3ceK5NIYahoDOqsoE48ivYn+8lLGzGC/W76Ojg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator/-/token-negotiator-3.0.0.tgz", + "integrity": "sha512-073IU2xUnGbXmghqd2LV9L/SyaB+r0oBdUpnSkbStSPMcjMNDSgSXRTYVmY3Z8PH/1DSrNq3rSD6cIm38+Fb1Q==", "requires": { "@onflow/fcl": "^1.3.2", "@onflow/types": "^1.0.5", "@peculiar/asn1-schema": "^2.2.0", - "@tokenscript/attestation": "0.5.0-beta.1", - "@toruslabs/torus-embed": "^1.25.0", + "@tokenscript/attestation": "0.6.0-rc.3", + "@toruslabs/torus-embed": "^2.2.5", + "@walletconnect/qrcode-modal": "^1.8.0", "@walletconnect/types": "^2.1.5", "@walletconnect/universal-provider": "^2.4.5", - "@walletconnect/web3-provider": "^1.7.1", + "eosjs": "^22.1.0", + "eosjs-ecc": "^4.0.7", "ethers": "^5.4.0", "pvutils": "^1.0.17", "text-encoding": "^0.7.0", @@ -24179,57 +22887,97 @@ "dev": true }, "@toruslabs/http-helpers": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-3.4.0.tgz", - "integrity": "sha512-CoeJSL32mpp0gmYjxv48odu6pfjHk/rbJHDwCtYPcMHAl+qUQ/DTpVOOn9U0fGkD+fYZrQmZbRkXFgLhiT0ajQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", + "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", "requires": { "lodash.merge": "^4.6.2", "loglevel": "^1.8.1" } }, "@toruslabs/openlogin-jrpc": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-3.2.0.tgz", - "integrity": "sha512-G+K0EHyVUaAEyeD4xGsnAZRpn/ner8lQ2HC2+pGKg6oGmzKI2wGMDcw2KMH6+HKlfBGVJ5/VR9AQfC/tZlLDmQ==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-4.7.2.tgz", + "integrity": "sha512-9Eb0cPc0lPuS6v2YkQlgzfbRnZ6fLez9Ike5wznoHSFA2/JVu1onwuI56EV1HwswdDrOWPPQEyzI1j9NriZ0ew==", "requires": { - "@toruslabs/openlogin-utils": "^3.0.0", + "@metamask/rpc-errors": "^5.1.1", + "@toruslabs/openlogin-utils": "^4.7.0", "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", "events": "^3.3.0", "fast-safe-stringify": "^2.1.1", "once": "^1.4.0", "pump": "^3.0.0", - "readable-stream": "^3.6.2" + "readable-stream": "^4.4.2" + }, + "dependencies": { + "readable-stream": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", + "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", + "requires": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + } + } } }, "@toruslabs/openlogin-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-3.0.0.tgz", - "integrity": "sha512-T5t29/AIFqXc84x4OoAkZWjd0uoP2Lk6iaFndnIIMzCPu+BwwV0spX/jd/3YYNjZ8Po8D+faEnwAhiqemYeK2w==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-4.7.0.tgz", + "integrity": "sha512-w6XkHs4WKuufsf/zzteBzs4EJuOknrUmJ+iv5FZ8HzIpMQeL/984CP8HYaFSEYkbGCP4ydAnhY4Uh0QAhpDbPg==", "requires": { - "base64url": "^3.0.1", - "keccak": "^3.0.3", - "randombytes": "^2.1.0" + "base64url": "^3.0.1" } }, "@toruslabs/torus-embed": { - "version": "1.41.2", - "resolved": "https://registry.npmjs.org/@toruslabs/torus-embed/-/torus-embed-1.41.2.tgz", - "integrity": "sha512-EiKHz6+ab2hwXlyMF0B34MCTK7ooXa9FqY4DAezasunoKvevSKvwWmUOXlqfqUo/snxrEGFSMNtMe5LdLKIl4Q==", + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@toruslabs/torus-embed/-/torus-embed-2.2.7.tgz", + "integrity": "sha512-EMYpCUgkTxUuDhjSUsaSKNJf8vY0RQWuy8sUjMFAXBXZtUM24OVDK9QEBvdP1YygRvT+/74Zyn/EcVRAofpT6g==", "requires": { - "@metamask/obs-store": "^7.0.0", - "@toruslabs/http-helpers": "^3.2.0", - "@toruslabs/openlogin-jrpc": "^3.0.0", - "create-hash": "^1.2.0", - "end-of-stream": "^1.4.4", - "eth-rpc-errors": "^4.0.3", + "@metamask/rpc-errors": "^5.1.1", + "@toruslabs/http-helpers": "^4.0.0", + "@toruslabs/openlogin-jrpc": "^4.7.0", "events": "^3.3.0", "fast-deep-equal": "^3.1.3", "is-stream": "^2.0.1", "lodash.merge": "^4.6.2", "loglevel": "^1.8.1", - "once": "^1.4.0", - "pump": "^3.0.0" + "pump": "^3.0.0", + "readable-stream": "^4.4.1" + }, + "dependencies": { + "readable-stream": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", + "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", + "requires": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + } + } + } + }, + "@typechain/ethers-v5": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.2.1.tgz", + "integrity": "sha512-n3tQmCZjRE6IU4h6lqUGiQ1j866n5MTCBJreNEHHVWXa2u9GJTaeYyU1/k+1qLutkyw+sS6VAN+AbeiTqsxd/A==", + "requires": { + "lodash": "^4.17.15", + "ts-essentials": "^7.0.1" + } + }, + "@typechain/hardhat": { + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-6.1.6.tgz", + "integrity": "sha512-BiVnegSs+ZHVymyidtK472syodx1sXYlYJJixZfRstHVGYTi8V1O7QG4nsjyb0PC/LORcq7sfBUcHto1y6UgJA==", + "requires": { + "fs-extra": "^9.1.0" } }, "@types/bn.js": { @@ -24293,6 +23041,14 @@ "@types/node": "*" } }, + "@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "requires": { + "@types/ms": "*" + } + }, "@types/eslint": { "version": "8.37.0", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", @@ -24375,6 +23131,11 @@ "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", "dev": true }, + "@types/ms": { + "version": "0.7.31", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", + "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" + }, "@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", @@ -24395,9 +23156,9 @@ } }, "@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==" + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" }, "@types/qs": { "version": "6.9.7", @@ -24530,63 +23291,6 @@ } } }, - "@walletconnect/client": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/client/-/client-1.8.0.tgz", - "integrity": "sha512-svyBQ14NHx6Cs2j4TpkQaBI/2AF4+LXz64FojTjMtV4VMMhl81jSO1vNeg+yYhQzvjcGH/GpSwixjyCW0xFBOQ==", - "requires": { - "@walletconnect/core": "^1.8.0", - "@walletconnect/iso-crypto": "^1.8.0", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0" - }, - "dependencies": { - "@walletconnect/core": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-1.8.0.tgz", - "integrity": "sha512-aFTHvEEbXcZ8XdWBw6rpQDte41Rxwnuk3SgTD8/iKGSRTni50gI9S3YEzMj05jozSiOBxQci4pJDMVhIUMtarw==", - "requires": { - "@walletconnect/socket-transport": "^1.8.0", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0" - } - }, - "@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==" - }, - "@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "requires": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "requires": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - } - } - }, "@walletconnect/core": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.7.2.tgz", @@ -24609,43 +23313,6 @@ "uint8arrays": "^3.1.0" } }, - "@walletconnect/crypto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/crypto/-/crypto-1.0.3.tgz", - "integrity": "sha512-+2jdORD7XQs76I2Odgr3wwrtyuLUXD/kprNVsjWRhhhdO9Mt6WqVzOPu0/t7OHSmgal8k7SoBQzUc5hu/8zL/g==", - "requires": { - "@walletconnect/encoding": "^1.0.2", - "@walletconnect/environment": "^1.0.1", - "@walletconnect/randombytes": "^1.0.3", - "aes-js": "^3.1.2", - "hash.js": "^1.1.7", - "tslib": "1.14.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } - } - }, - "@walletconnect/encoding": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@walletconnect/encoding/-/encoding-1.0.2.tgz", - "integrity": "sha512-CrwSBrjqJ7rpGQcTL3kU+Ief+Bcuu9PH6JLOb+wM6NITX1GTxR/MfNwnQfhLKK6xpRAyj2/nM04OOH6wS8Imag==", - "requires": { - "is-typedarray": "1.0.0", - "tslib": "1.14.1", - "typedarray-to-buffer": "3.1.5" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } - } - }, "@walletconnect/environment": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", @@ -24694,99 +23361,6 @@ } } }, - "@walletconnect/http-connection": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/http-connection/-/http-connection-1.8.0.tgz", - "integrity": "sha512-IziEr3c53qsMromK7jz0EkbKDHlryRbxXdFR+xaG+S5nfxtUdAfjzlZabvczXdDCgmTij6KbNsZAjBMqCBzACw==", - "requires": { - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0", - "eventemitter3": "4.0.7", - "xhr2-cookies": "1.1.0" - }, - "dependencies": { - "@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==" - }, - "@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "requires": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "requires": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - } - } - }, - "@walletconnect/iso-crypto": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/iso-crypto/-/iso-crypto-1.8.0.tgz", - "integrity": "sha512-pWy19KCyitpfXb70hA73r9FcvklS+FvO9QUIttp3c2mfW8frxgYeRXfxLRCIQTkaYueRKvdqPjbyhPLam508XQ==", - "requires": { - "@walletconnect/crypto": "^1.0.2", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0" - }, - "dependencies": { - "@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==" - }, - "@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "requires": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "requires": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - } - } - }, "@walletconnect/jsonrpc-http-connection": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.6.tgz", @@ -24931,24 +23505,6 @@ } } }, - "@walletconnect/randombytes": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/randombytes/-/randombytes-1.0.3.tgz", - "integrity": "sha512-35lpzxcHFbTN3ABefC9W+uBpNZl1GC4Wpx0ed30gibfO/y9oLdy1NznbV96HARQKSBV9J9M/rrtIvf6a23jfYw==", - "requires": { - "@walletconnect/encoding": "^1.0.2", - "@walletconnect/environment": "^1.0.1", - "randombytes": "^2.1.0", - "tslib": "1.14.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } - } - }, "@walletconnect/relay-api": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.9.tgz", @@ -25016,58 +23572,6 @@ "events": "^3.3.0" } }, - "@walletconnect/socket-transport": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/socket-transport/-/socket-transport-1.8.0.tgz", - "integrity": "sha512-5DyIyWrzHXTcVp0Vd93zJ5XMW61iDM6bcWT4p8DTRfFsOtW46JquruMhxOLeCOieM4D73kcr3U7WtyR4JUsGuQ==", - "requires": { - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0", - "ws": "7.5.3" - }, - "dependencies": { - "@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==" - }, - "@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "requires": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "requires": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - }, - "ws": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz", - "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==", - "requires": {} - } - } - }, "@walletconnect/time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz", @@ -25135,55 +23639,6 @@ "uint8arrays": "^3.1.0" } }, - "@walletconnect/web3-provider": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/web3-provider/-/web3-provider-1.8.0.tgz", - "integrity": "sha512-lqqEO0oRmCehH+c8ZPk3iH7I7YtbzmkWd58/Or2AgWAl869JamzndKCD3sTlNsPRQLxxPpraHQqzur7uclLWvg==", - "requires": { - "@walletconnect/client": "^1.8.0", - "@walletconnect/http-connection": "^1.8.0", - "@walletconnect/qrcode-modal": "^1.8.0", - "@walletconnect/types": "^1.8.0", - "@walletconnect/utils": "^1.8.0", - "web3-provider-engine": "16.0.1" - }, - "dependencies": { - "@walletconnect/types": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.8.0.tgz", - "integrity": "sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg==" - }, - "@walletconnect/utils": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.8.0.tgz", - "integrity": "sha512-zExzp8Mj1YiAIBfKNm5u622oNw44WOESzo6hj+Q3apSMIb0Jph9X3GDIdbZmvVZsNPxWDL7uodKgZcCInZv2vA==", - "requires": { - "@walletconnect/browser-utils": "^1.8.0", - "@walletconnect/encoding": "^1.0.1", - "@walletconnect/jsonrpc-utils": "^1.0.3", - "@walletconnect/types": "^1.8.0", - "bn.js": "4.11.8", - "js-sha3": "0.8.0", - "query-string": "6.13.5" - } - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" - }, - "query-string": { - "version": "6.13.5", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.13.5.tgz", - "integrity": "sha512-svk3xg9qHR39P3JlHuD7g3nRnyay5mHbrPctEBDUxUkHRifPHXJDhBUycdCC0NBjXoDf44Gb+IsOZL1Uwn8M/Q==", - "requires": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - } - } - }, "@walletconnect/window-getters": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", @@ -25424,14 +23879,6 @@ } } }, - "abstract-leveldown": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.6.3.tgz", - "integrity": "sha512-2++wDf/DYqkPR3o5tbfdhF96EfMApo1GpPfzOsR/ZYXdkSmELlvOOEAl9iKkRsktMPHdGjO4rtkBpf2I7TiTeA==", - "requires": { - "xtend": "~4.0.0" - } - }, "accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -25484,9 +23931,9 @@ "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==" }, "aes-js": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", - "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", + "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==" }, "agent-base": { "version": "6.0.2", @@ -25638,12 +24085,17 @@ "integrity": "sha512-1OvF9IbWwaeiM9VhzYXVQacMibxpXOMYVNIvMtKRyX9SImBXpKcFr8XvFDeEslCyuH/t6KRt7HEO94AlP8Iatw==", "dev": true }, - "asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "arraybuffer.prototype.slice": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", + "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", "requires": { - "safer-buffer": "~2.1.0" + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" } }, "asn1.js": { @@ -25685,45 +24137,15 @@ "util": "^0.12.0" } }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==" - }, "async": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, "requires": { "lodash": "^4.17.14" } }, - "async-eventemitter": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz", - "integrity": "sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw==", - "requires": { - "async": "^2.4.0" - } - }, - "async-limiter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" - }, - "async-mutex": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.2.6.tgz", - "integrity": "sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==", - "requires": { - "tslib": "^2.0.0" - } - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, "at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -25759,16 +24181,6 @@ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==" - }, - "aws4": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" - }, "axios": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", @@ -25819,6 +24231,7 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "dev": true, "requires": { "@babel/compat-data": "^7.17.7", "@babel/helper-define-polyfill-provider": "^0.3.3", @@ -25828,7 +24241,8 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true } } }, @@ -25836,6 +24250,7 @@ "version": "0.5.3", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.3.tgz", "integrity": "sha512-zKsXDh0XjnrUEW0mxIHLfjBfnXSMr5Q/goMe/fxpQnLm07mcOZiIZHBNWCMx60HmdvjxfXcalac0tfFg0wqxyw==", + "dev": true, "requires": { "@babel/helper-define-polyfill-provider": "^0.3.2", "core-js-compat": "^3.21.0" @@ -25845,18 +24260,11 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz", "integrity": "sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==", + "dev": true, "requires": { "@babel/helper-define-polyfill-provider": "^0.3.1" } }, - "backoff": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz", - "integrity": "sha512-wC5ihrnUXmR2douXmXLCe5O3zg3GKIyvRi/hi58a/XyRxVI+3/yM0PYueQOZXPXQ9pxBislYkw+sF9b7C/RuMA==", - "requires": { - "precond": "0.2" - } - }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -25892,21 +24300,6 @@ "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", "dev": true }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "requires": { - "tweetnacl": "^0.14.3" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - } - } - }, "bech32": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", @@ -25918,10 +24311,15 @@ "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", "dev": true }, + "bigi": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz", + "integrity": "sha512-ddkU+dFIuEIW8lE7ZwdIAf2UPoM90eaprg5m3YXAVVTmKlqV/9BX4A2M8BOK2yOq6/VgZFVhK6QAxJebhlbhzw==" + }, "bigint-crypto-utils": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.2.2.tgz", - "integrity": "sha512-U1RbE3aX9ayCUVcIPHuPDPKcK3SFOXf93J1UK/iHlJuQB7bhagPIX06/CLpLEsDThJ7KA4Dhrnzynl+d2weTiw==" + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/bigint-crypto-utils/-/bigint-crypto-utils-3.3.0.tgz", + "integrity": "sha512-jOTSb+drvEDxEq6OuUybOAv/xxoh3cuYRUIPyu8sSHQNKM303UQ2R1DAo45o1AkcIXw6fzbaFI1+xGGdaXs2lg==" }, "bignumber.js": { "version": "9.1.1", @@ -26140,6 +24538,7 @@ "version": "4.21.5", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "dev": true, "requires": { "caniuse-lite": "^1.0.30001449", "electron-to-chromium": "^1.4.284", @@ -26165,11 +24564,6 @@ "safe-buffer": "^5.1.2" } }, - "btoa": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", - "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==" - }, "buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -26251,6 +24645,14 @@ "streamsearch": "^1.1.0" } }, + "bytebuffer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", + "integrity": "sha512-IuzSdmADppkZ6DlpycMkm8l9zeEq16fWtLvunEwFiYciR/BHo4E8/xs5piFquG+Za8OWmMqHF8zuRviz2LHvRQ==", + "requires": { + "long": "~3" + } + }, "bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -26322,18 +24724,14 @@ "caniuse-lite": { "version": "1.0.30001482", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001482.tgz", - "integrity": "sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ==" + "integrity": "sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ==", + "dev": true }, "case": { "version": "1.6.3", "resolved": "https://registry.npmjs.org/case/-/case-1.6.3.tgz", "integrity": "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==" }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" - }, "catering": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/catering/-/catering-2.1.1.tgz", @@ -26355,14 +24753,6 @@ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "checkpoint-store": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/checkpoint-store/-/checkpoint-store-1.1.0.tgz", - "integrity": "sha512-J/NdY2WvIx654cc6LWSq/IYFFCUf75fFTgwzFnmbqyORH4MwgiQCgswLLKBGzmsyTI5V7i5bp/So6sMbDWhedg==", - "requires": { - "functional-red-black-tree": "^1.0.1" - } - }, "chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -26502,14 +24892,6 @@ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, "command-exists": { "version": "1.2.9", "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", @@ -26688,7 +25070,8 @@ "convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true }, "cookie": { "version": "0.4.2", @@ -26701,11 +25084,6 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, - "cookiejar": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==" - }, "copy-anything": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz", @@ -26770,6 +25148,7 @@ "version": "3.30.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.1.tgz", "integrity": "sha512-d690npR7MC6P0gq4npTl5n2VQeNAmUrJ90n+MHiKS7W2+xno4o3F5GDEuylSdi6EJ3VssibSGXOa1r3YXD3Mhw==", + "dev": true, "requires": { "browserslist": "^4.21.5" } @@ -26777,7 +25156,8 @@ "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true }, "cors": { "version": "2.8.5", @@ -26949,9 +25329,9 @@ }, "dependencies": { "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" } } }, @@ -27079,14 +25459,6 @@ "type": "^1.0.1" } }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "requires": { - "assert-plus": "^1.0.0" - } - }, "date-format": { "version": "4.0.14", "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", @@ -27102,9 +25474,9 @@ } }, "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==" }, "decode-uri-component": { "version": "0.2.2", @@ -27161,14 +25533,6 @@ "clone": "^1.0.2" } }, - "deferred-leveldown": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/deferred-leveldown/-/deferred-leveldown-1.2.2.tgz", - "integrity": "sha512-uukrWD2bguRtXilKt6cAWKyoXrTSMo5m7crUdLfWQmu8kIm88w3QZoUL+6nhpfKVmhHANER6Re3sKoNoZ3IKMA==", - "requires": { - "abstract-leveldown": "~2.6.0" - } - }, "define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", @@ -27228,11 +25592,6 @@ } } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -27421,15 +25780,6 @@ "stream-shift": "^1.0.0" } }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "ecdsa-sig-formatter": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", @@ -27438,6 +25788,14 @@ "safe-buffer": "^5.0.1" } }, + "ecurve": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ecurve/-/ecurve-1.0.5.tgz", + "integrity": "sha512-1Z3Zu5Nh5LSVGnwEnie1LDoHZByZxG2tk3wftkqeVHrfujmR8O+dOh96HVPxRPh4BjRWX0Z9mpwCYv/O/njgDw==", + "requires": { + "bigi": "^1.1.0" + } + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -27455,7 +25813,8 @@ "electron-to-chromium": { "version": "1.4.384", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.384.tgz", - "integrity": "sha512-I97q0MmRAAqj53+a8vZsDkEXBZki+ehYAOPzwtQzALip52aEp2+BJqHFtTlsfjoqVZYwPpHC8wM6MbsSZQ/Eqw==" + "integrity": "sha512-I97q0MmRAAqj53+a8vZsDkEXBZki+ehYAOPzwtQzALip52aEp2+BJqHFtTlsfjoqVZYwPpHC8wM6MbsSZQ/Eqw==", + "dev": true }, "elliptic": { "version": "6.5.4", @@ -27567,11 +25926,12 @@ } }, "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", "requires": { - "ansi-colors": "^4.1.1" + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" } }, "ent": { @@ -27591,6 +25951,99 @@ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==" }, + "eosjs": { + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/eosjs/-/eosjs-22.1.0.tgz", + "integrity": "sha512-Ka8KO7akC3RxNdSg/3dkGWuUWUQESTzSUzQljBdVP16UG548vmQoBqSGnZdnjlZyfcab8VOu2iEt+JjyfYc5+A==", + "requires": { + "bn.js": "5.2.0", + "elliptic": "6.5.4", + "hash.js": "1.1.7", + "pako": "2.0.3" + }, + "dependencies": { + "bn.js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", + "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" + }, + "pako": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.3.tgz", + "integrity": "sha512-WjR1hOeg+kki3ZIOjaf4b5WVcay1jaliKSYiEaB1XzwhMQZJxRdQRv0V31EKBYlxb4T7SK3hjfc/jxyU64BoSw==" + } + } + }, + "eosjs-ecc": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.7.tgz", + "integrity": "sha512-uuqhqnrDy9XTpKfkhiZqRDUTCCI9oWBalVK5IosL7kpYwA9I3lm68INYFLyWsHpF2xwHqPql8MrMYJ3zfOn5Qg==", + "requires": { + "@babel/runtime": "7.6.0", + "bigi": "1.4.2", + "browserify-aes": "1.0.6", + "bs58": "4.0.1", + "bytebuffer": "5.0.1", + "create-hash": "1.1.3", + "create-hmac": "1.1.6", + "ecurve": "1.0.5", + "randombytes": "2.0.5" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.0.tgz", + "integrity": "sha512-89eSBLJsxNxOERC0Op4vd+0Bqm6wRMqMbFtV3i0/fbaWw/mJ8Q3eBvgX0G4SyrOOLCtbu98HspF8o09MRT+KzQ==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "browserify-aes": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.0.6.tgz", + "integrity": "sha512-MMvWM6jpfsiuzY2Y+pRJvHRac3x3rHWQisWoz1dJaF9qDFsD8HdVxB7MyZKeLKeEt0fEjrXXZ0mxgTHSoJusug==", + "requires": { + "buffer-xor": "^1.0.2", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.0", + "inherits": "^2.0.1" + } + }, + "create-hash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", + "integrity": "sha512-snRpch/kwQhcdlnZKYanNF1m0RDlrCdSKQaH87w1FCFPVPNCQ/Il9QJKAX2jVBZddRdaHBMC+zXa9Gw9tmkNUA==", + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", + "integrity": "sha512-23osI7H2SH6Zm4g7A7BTM9+3XicGZkemw00eEhrFViR3EdGru+azj2fMKf9J2zWMGO7AfPgYRdIRL96kkdy8QA==", + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "randombytes": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", + "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", + "requires": { + "safe-buffer": "^5.1.0" + } + } + } + }, "err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", @@ -27601,6 +26054,8 @@ "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "dev": true, + "optional": true, "requires": { "prr": "~1.0.1" } @@ -27615,17 +26070,18 @@ } }, "es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", + "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", "requires": { "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.1", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", + "get-intrinsic": "^1.2.1", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -27645,14 +26101,18 @@ "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", + "safe-array-concat": "^1.0.0", "safe-regex-test": "^1.0.0", "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" + "which-typed-array": "^1.1.10" } }, "es-module-lexer": { @@ -27954,142 +26414,6 @@ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "dev": true }, - "eth-block-tracker": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-4.4.3.tgz", - "integrity": "sha512-A8tG4Z4iNg4mw5tP1Vung9N9IjgMNqpiMoJ/FouSFwNCGHv2X0mmOYwtQOJzki6XN7r7Tyo01S29p7b224I4jw==", - "requires": { - "@babel/plugin-transform-runtime": "^7.5.5", - "@babel/runtime": "^7.5.5", - "eth-query": "^2.1.0", - "json-rpc-random-id": "^1.0.1", - "pify": "^3.0.0", - "safe-event-emitter": "^1.0.1" - }, - "dependencies": { - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==" - } - } - }, - "eth-json-rpc-filters": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/eth-json-rpc-filters/-/eth-json-rpc-filters-4.2.2.tgz", - "integrity": "sha512-DGtqpLU7bBg63wPMWg1sCpkKCf57dJ+hj/k3zF26anXMzkmtSBDExL8IhUu7LUd34f0Zsce3PYNO2vV2GaTzaw==", - "requires": { - "@metamask/safe-event-emitter": "^2.0.0", - "async-mutex": "^0.2.6", - "eth-json-rpc-middleware": "^6.0.0", - "eth-query": "^2.1.2", - "json-rpc-engine": "^6.1.0", - "pify": "^5.0.0" - }, - "dependencies": { - "pify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", - "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==" - } - } - }, - "eth-json-rpc-infura": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/eth-json-rpc-infura/-/eth-json-rpc-infura-5.1.0.tgz", - "integrity": "sha512-THzLye3PHUSGn1EXMhg6WTLW9uim7LQZKeKaeYsS9+wOBcamRiCQVGHa6D2/4P0oS0vSaxsBnU/J6qvn0MPdow==", - "requires": { - "eth-json-rpc-middleware": "^6.0.0", - "eth-rpc-errors": "^3.0.0", - "json-rpc-engine": "^5.3.0", - "node-fetch": "^2.6.0" - }, - "dependencies": { - "eth-rpc-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz", - "integrity": "sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==", - "requires": { - "fast-safe-stringify": "^2.0.6" - } - }, - "json-rpc-engine": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-5.4.0.tgz", - "integrity": "sha512-rAffKbPoNDjuRnXkecTjnsE3xLLrb00rEkdgalINhaYVYIxDwWtvYBr9UFbhTvPB1B2qUOLoFd/cV6f4Q7mh7g==", - "requires": { - "eth-rpc-errors": "^3.0.0", - "safe-event-emitter": "^1.0.1" - } - } - } - }, - "eth-json-rpc-middleware": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/eth-json-rpc-middleware/-/eth-json-rpc-middleware-6.0.0.tgz", - "integrity": "sha512-qqBfLU2Uq1Ou15Wox1s+NX05S9OcAEL4JZ04VZox2NS0U+RtCMjSxzXhLFWekdShUPZ+P8ax3zCO2xcPrp6XJQ==", - "requires": { - "btoa": "^1.2.1", - "clone": "^2.1.1", - "eth-query": "^2.1.2", - "eth-rpc-errors": "^3.0.0", - "eth-sig-util": "^1.4.2", - "ethereumjs-util": "^5.1.2", - "json-rpc-engine": "^5.3.0", - "json-stable-stringify": "^1.0.1", - "node-fetch": "^2.6.1", - "pify": "^3.0.0", - "safe-event-emitter": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==" - }, - "eth-rpc-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz", - "integrity": "sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==", - "requires": { - "fast-safe-stringify": "^2.0.6" - } - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "json-rpc-engine": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-5.4.0.tgz", - "integrity": "sha512-rAffKbPoNDjuRnXkecTjnsE3xLLrb00rEkdgalINhaYVYIxDwWtvYBr9UFbhTvPB1B2qUOLoFd/cV6f4Q7mh7g==", - "requires": { - "eth-rpc-errors": "^3.0.0", - "safe-event-emitter": "^1.0.1" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==" - } - } - }, "eth-lib": { "version": "0.2.8", "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz", @@ -28107,53 +26431,6 @@ } } }, - "eth-query": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/eth-query/-/eth-query-2.1.2.tgz", - "integrity": "sha512-srES0ZcvwkR/wd5OQBRA1bIJMww1skfGS0s8wlwK3/oNP4+wnds60krvu5R1QbpRQjMmpG5OMIWro5s7gvDPsA==", - "requires": { - "json-rpc-random-id": "^1.0.0", - "xtend": "^4.0.1" - } - }, - "eth-rpc-errors": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", - "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", - "requires": { - "fast-safe-stringify": "^2.0.6" - } - }, - "eth-sig-util": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/eth-sig-util/-/eth-sig-util-1.4.2.tgz", - "integrity": "sha512-iNZ576iTOGcfllftB73cPB5AN+XUQAT/T8xzsILsghXC1o8gJUqe3RHlcDqagu+biFpYQ61KQrZZJza8eRSYqw==", - "requires": { - "ethereumjs-abi": "git+https://github.com/ethereumjs/ethereumjs-abi.git", - "ethereumjs-util": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - } - } - }, "ethereum-bloom-filters": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", @@ -28162,11 +26439,6 @@ "js-sha3": "^0.8.0" } }, - "ethereum-common": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.2.0.tgz", - "integrity": "sha512-XOnAR/3rntJgbCdGhqdaLIxDLWKLmsZOGhHdBKadEr6gEnJLH52k93Ou+TUdFaPN3hJc3isBZBal3U/XZ15abA==" - }, "ethereum-cryptography": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", @@ -28190,8 +26462,9 @@ } }, "ethereumjs-abi": { - "version": "git+ssh://git@github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0", - "from": "ethereumjs-abi@^0.6.8", + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", + "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", "requires": { "bn.js": "^4.11.8", "ethereumjs-util": "^6.0.0" @@ -28226,110 +26499,6 @@ } } }, - "ethereumjs-account": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/ethereumjs-account/-/ethereumjs-account-2.0.5.tgz", - "integrity": "sha512-bgDojnXGjhMwo6eXQC0bY6UK2liSFUSMwwylOmQvZbSl/D7NXQ3+vrGO46ZeOgjGfxXmgIeVNDIiHw7fNZM4VA==", - "requires": { - "ethereumjs-util": "^5.0.0", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - } - } - }, - "ethereumjs-block": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-1.7.1.tgz", - "integrity": "sha512-B+sSdtqm78fmKkBq78/QLKJbu/4Ts4P2KFISdgcuZUPDm9x+N7qgBPIIFUGbaakQh8bzuquiRVbdmvPKqbILRg==", - "requires": { - "async": "^2.0.1", - "ethereum-common": "0.2.0", - "ethereumjs-tx": "^1.2.2", - "ethereumjs-util": "^5.0.0", - "merkle-patricia-tree": "^2.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - } - } - }, - "ethereumjs-common": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-1.5.2.tgz", - "integrity": "sha512-hTfZjwGX52GS2jcVO6E2sx4YuFnf0Fhp5ylo4pEPhEffNln7vS59Hr5sLnp3/QCazFLluuBZ+FZ6J5HTp0EqCA==" - }, - "ethereumjs-tx": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz", - "integrity": "sha512-wvLMxzt1RPhAQ9Yi3/HKZTn0FZYpnsmQdbKYfUUpi4j1SEIcbkd9tndVjcPrufY3V7j2IebOpC00Zp2P/Ay2kA==", - "requires": { - "ethereum-common": "^0.0.18", - "ethereumjs-util": "^5.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "ethereum-common": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.0.18.tgz", - "integrity": "sha512-EoltVQTRNg2Uy4o84qpa2aXymXDJhxm7eos/ACOg0DG4baAbMjhbdAEsx9GeE8sC3XCxnYvrrzZDH8D8MtA2iQ==" - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - } - } - }, "ethereumjs-util": { "version": "7.1.5", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", @@ -28342,90 +26511,6 @@ "rlp": "^2.2.4" } }, - "ethereumjs-vm": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/ethereumjs-vm/-/ethereumjs-vm-2.6.0.tgz", - "integrity": "sha512-r/XIUik/ynGbxS3y+mvGnbOKnuLo40V5Mj1J25+HEO63aWYREIqvWeRO/hnROlMBE5WoniQmPmhiaN0ctiHaXw==", - "requires": { - "async": "^2.1.2", - "async-eventemitter": "^0.2.2", - "ethereumjs-account": "^2.0.3", - "ethereumjs-block": "~2.2.0", - "ethereumjs-common": "^1.1.0", - "ethereumjs-util": "^6.0.0", - "fake-merkle-patricia-tree": "^1.0.1", - "functional-red-black-tree": "^1.0.1", - "merkle-patricia-tree": "^2.3.2", - "rustbn.js": "~0.2.0", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "@types/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", - "requires": { - "@types/node": "*" - } - }, - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "ethereumjs-block": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-2.2.2.tgz", - "integrity": "sha512-2p49ifhek3h2zeg/+da6XpdFR3GlqY3BIEiqxGF8j9aSRIgkb7M1Ky+yULBKJOu8PAZxfhsYA+HxUk2aCQp3vg==", - "requires": { - "async": "^2.0.1", - "ethereumjs-common": "^1.5.0", - "ethereumjs-tx": "^2.1.1", - "ethereumjs-util": "^5.0.0", - "merkle-patricia-tree": "^2.1.2" - }, - "dependencies": { - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - } - } - }, - "ethereumjs-tx": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-2.1.2.tgz", - "integrity": "sha512-zZEK1onCeiORb0wyCXUvg94Ve5It/K6GD1K+26KfFKodiBiS6d9lfCXlUKGBBdQ+bv7Day+JK0tj1K+BeNFRAw==", - "requires": { - "ethereumjs-common": "^1.5.0", - "ethereumjs-util": "^6.0.0" - } - }, - "ethereumjs-util": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", - "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", - "requires": { - "@types/bn.js": "^4.11.3", - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "0.1.6", - "rlp": "^2.2.3" - } - } - } - }, "ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -28502,7 +26587,8 @@ "eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true }, "events": { "version": "3.3.0", @@ -28717,7 +26803,8 @@ "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true }, "external-editor": { "version": "3.1.0", @@ -28730,19 +26817,6 @@ "tmp": "^0.0.33" } }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==" - }, - "fake-merkle-patricia-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fake-merkle-patricia-tree/-/fake-merkle-patricia-tree-1.0.1.tgz", - "integrity": "sha512-Tgq37lkc9pUIgIKw5uitNUKcgcYL3R6JvXtKQbOf/ZSavXbidsksgp/pAY6p//uhw0I4yoMsvTSovvVIsk/qxA==", - "requires": { - "checkpoint-store": "^1.1.0" - } - }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -28764,7 +26838,8 @@ "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "fast-redact": { "version": "3.1.2", @@ -28918,21 +26993,6 @@ "is-callable": "^1.1.3" } }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==" - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, "forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -29038,7 +27098,8 @@ "gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true }, "get-caller-file": { "version": "2.0.5", @@ -29046,12 +27107,13 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" }, "get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" } }, @@ -29076,14 +27138,6 @@ "get-intrinsic": "^1.1.1" } }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "requires": { - "assert-plus": "^1.0.0" - } - }, "glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -29123,7 +27177,8 @@ "globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true }, "globalthis": { "version": "1.0.3", @@ -29166,35 +27221,176 @@ "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", "dev": true }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==" - }, - "har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "hardhat": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.13.1.tgz", + "integrity": "sha512-ZZL7LQxHmbw4JQJsiEv2qE35nbR+isr2sIdtgZVPp0+zWqRkpr1OT7gmvhCNYfjpEPyfjZIxWriQWlphJhVPLQ==", "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" + "@ethersproject/abi": "^5.1.2", + "@metamask/eth-sig-util": "^4.0.0", + "@nomicfoundation/ethereumjs-block": "5.0.0", + "@nomicfoundation/ethereumjs-blockchain": "7.0.0", + "@nomicfoundation/ethereumjs-common": "4.0.0", + "@nomicfoundation/ethereumjs-evm": "2.0.0", + "@nomicfoundation/ethereumjs-rlp": "5.0.0", + "@nomicfoundation/ethereumjs-statemanager": "2.0.0", + "@nomicfoundation/ethereumjs-trie": "6.0.0", + "@nomicfoundation/ethereumjs-tx": "5.0.0", + "@nomicfoundation/ethereumjs-util": "9.0.0", + "@nomicfoundation/ethereumjs-vm": "7.0.0", + "@nomicfoundation/solidity-analyzer": "^0.1.0", + "@sentry/node": "^5.18.1", + "@types/bn.js": "^5.1.0", + "@types/lru-cache": "^5.1.0", + "abort-controller": "^3.0.0", + "adm-zip": "^0.4.16", + "aggregate-error": "^3.0.0", + "ansi-escapes": "^4.3.0", + "chalk": "^2.4.2", + "chokidar": "^3.4.0", + "ci-info": "^2.0.0", + "debug": "^4.1.1", + "enquirer": "^2.3.0", + "env-paths": "^2.2.0", + "ethereum-cryptography": "^1.0.3", + "ethereumjs-abi": "^0.6.8", + "find-up": "^2.1.0", + "fp-ts": "1.19.3", + "fs-extra": "^7.0.1", + "glob": "7.2.0", + "immutable": "^4.0.0-rc.12", + "io-ts": "1.10.4", + "keccak": "^3.0.2", + "lodash": "^4.17.11", + "mnemonist": "^0.38.0", + "mocha": "^10.0.0", + "p-map": "^4.0.0", + "qs": "^6.7.0", + "raw-body": "^2.4.1", + "resolve": "1.17.0", + "semver": "^6.3.0", + "solc": "0.7.3", + "source-map-support": "^0.5.13", + "stacktrace-parser": "^0.1.10", + "tsort": "0.0.1", + "undici": "^5.14.0", + "uuid": "^8.3.2", + "ws": "^7.4.6" }, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "@noble/hashes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", + "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==" + }, + "@scure/bip32": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", + "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" } }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "@scure/bip39": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", + "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "requires": { + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" + } + }, + "ethereum-cryptography": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", + "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", + "requires": { + "@noble/hashes": "1.2.0", + "@noble/secp256k1": "1.7.1", + "@scure/bip32": "1.1.5", + "@scure/bip39": "1.1.1" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "requires": { + "locate-path": "^2.0.0" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==" + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" + }, + "resolve": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" } } }, @@ -29464,16 +27660,6 @@ "micromatch": "^4.0.2" } }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -29545,11 +27731,6 @@ "dev": true, "optional": true }, - "immediate": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", - "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==" - }, "immutable": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz", @@ -29807,11 +27988,6 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" }, - "is-fn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fn/-/is-fn-1.0.0.tgz", - "integrity": "sha512-XoFPJQmsAShb3jEQRfzf2rqXavq7fIqF/jOekp308JlThqrODnMpweVSGilKTCXELfLhltGP2AGgbQGVP8F1dg==" - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -30018,11 +28194,6 @@ "resolved": "https://registry.npmjs.org/isomorphic-timers-promises/-/isomorphic-timers-promises-1.0.1.tgz", "integrity": "sha512-u4sej9B1LPSxTGKB/HiuzvEQnXH0ECYkSVQU39koSwmFAxhlEAFl9RdTvLv4TOTQUgBS5O3O5fwUxk6byBZ+IQ==" }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" - }, "istanbul-lib-coverage": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", @@ -30142,9 +28313,9 @@ } }, "js-sdsl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", - "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==" + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.2.tgz", + "integrity": "sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w==" }, "js-sha3": { "version": "0.8.0", @@ -30154,7 +28325,8 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.14.1", @@ -30166,15 +28338,11 @@ "esprima": "^4.0.0" } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" - }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true }, "json-parse-even-better-errors": { "version": "2.3.1", @@ -30182,48 +28350,17 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "json-rpc-engine": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz", - "integrity": "sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==", - "requires": { - "@metamask/safe-event-emitter": "^2.0.0", - "eth-rpc-errors": "^4.0.2" - } - }, - "json-rpc-random-id": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz", - "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==" - }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, - "json-stable-stringify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", - "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", - "requires": { - "jsonify": "^0.0.1" - } - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, "json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true }, "jsonc-parser": { "version": "3.0.0", @@ -30240,11 +28377,6 @@ "universalify": "^2.0.0" } }, - "jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==" - }, "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -30252,9 +28384,9 @@ "dev": true }, "jsonwebtoken": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", - "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.1.tgz", + "integrity": "sha512-K8wx7eJ5TPvEjuiVSkv167EVboBDv9PZdDoF7BgeQnBLVvZWW9clr2PsQHVJDTKaEIH5JBIwHujGcHp7GgI2eg==", "requires": { "jws": "^3.2.2", "lodash": "^4.17.21", @@ -30271,9 +28403,9 @@ } }, "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "requires": { "lru-cache": "^6.0.0" } @@ -30285,17 +28417,6 @@ } } }, - "jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - } - }, "jwa": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", @@ -30601,53 +28722,6 @@ "classic-level": "^1.2.0" } }, - "level-codec": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/level-codec/-/level-codec-7.0.1.tgz", - "integrity": "sha512-Ua/R9B9r3RasXdRmOtd+t9TCOEIIlts+TN/7XTT2unhDaL6sJn83S3rUyljbr6lVtw49N3/yA0HHjpV6Kzb2aQ==" - }, - "level-errors": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/level-errors/-/level-errors-1.0.5.tgz", - "integrity": "sha512-/cLUpQduF6bNrWuAC4pwtUKA5t669pCsCi2XbmojG2tFeOr9j6ShtdDCtFFQO1DRt+EVZhx9gPzP9G2bUaG4ig==", - "requires": { - "errno": "~0.1.1" - } - }, - "level-iterator-stream": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/level-iterator-stream/-/level-iterator-stream-1.3.1.tgz", - "integrity": "sha512-1qua0RHNtr4nrZBgYlpV0qHHeHpcRRWTxEZJ8xsemoHAXNL5tbooh4tPEEqIqsbWCAJBmUmkwYK/sW5OrFjWWw==", - "requires": { - "inherits": "^2.0.1", - "level-errors": "^1.0.3", - "readable-stream": "^1.0.33", - "xtend": "^4.0.0" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - } - } - }, "level-supports": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/level-supports/-/level-supports-4.0.1.tgz", @@ -30662,72 +28736,6 @@ "module-error": "^1.0.1" } }, - "level-ws": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.0.tgz", - "integrity": "sha512-XUTaO/+Db51Uiyp/t7fCMGVFOTdtLS/NIACxE/GHsij15mKzxksZifKVjlXDF41JMUP/oM1Oc4YNGdKnc3dVLw==", - "requires": { - "readable-stream": "~1.0.15", - "xtend": "~2.1.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==" - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - }, - "xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", - "requires": { - "object-keys": "~0.4.0" - } - } - } - }, - "levelup": { - "version": "1.3.9", - "resolved": "https://registry.npmjs.org/levelup/-/levelup-1.3.9.tgz", - "integrity": "sha512-VVGHfKIlmw8w1XqpGOAGwq6sZm2WwWLmlDcULkKWQXEA5EopA8OBNJ2Ck2v6bdk8HeEZSbCSEgzXadyQFm76sQ==", - "requires": { - "deferred-leveldown": "~1.2.1", - "level-codec": "~7.0.0", - "level-errors": "~1.0.3", - "level-iterator-stream": "~1.3.0", - "prr": "~1.0.1", - "semver": "~5.4.1", - "xtend": "~4.0.0" - }, - "dependencies": { - "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" - } - } - }, "license-webpack-plugin": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", @@ -30777,7 +28785,8 @@ "lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true }, "lodash.isequal": { "version": "4.5.0", @@ -30872,6 +28881,11 @@ "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.8.1.tgz", "integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==" }, + "long": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", + "integrity": "sha512-ZYvPPOMqUwPoDsbJaR10iQJYnMuZhRTvHYl62ErLIEX7RgFlziSBUUvrt3OVfc47QlHHpzPZYP17g3Fv7oeJkg==" + }, "lru_map": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", @@ -30885,11 +28899,6 @@ "yallist": "^3.0.2" } }, - "ltgt": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ltgt/-/ltgt-2.2.1.tgz", - "integrity": "sha512-AI2r85+4MquTw9ZYqabu4nMwy9Oftlfa/e/52t9IjtfG+mGBbTNdAoZ3RQKLHR6r0wQnwZnPIEh/Ya6XTWAKNA==" - }, "magic-string": { "version": "0.25.7", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", @@ -30978,34 +28987,6 @@ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "dev": true }, - "memdown": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/memdown/-/memdown-1.4.1.tgz", - "integrity": "sha512-iVrGHZB8i4OQfM155xx8akvG9FIj+ht14DX5CQkCTG4EHzZ3d3sgckIf/Lm9ivZalEsFuEVnWv2B2WZvbrro2w==", - "requires": { - "abstract-leveldown": "~2.7.1", - "functional-red-black-tree": "^1.0.1", - "immediate": "^3.2.3", - "inherits": "~2.0.1", - "ltgt": "~2.2.0", - "safe-buffer": "~5.1.1" - }, - "dependencies": { - "abstract-leveldown": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.7.2.tgz", - "integrity": "sha512-+OVvxH2rHVEhWLdbudP6p0+dNMXu8JA1CbhP19T8paTYAcX7oJ4OVjT+ZUVpv7mITxXHqDMej+GdqXBmXkw09w==", - "requires": { - "xtend": "~4.0.0" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } - } - }, "memfs": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz", @@ -31048,85 +29029,17 @@ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, - "merkle-patricia-tree": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-2.3.2.tgz", - "integrity": "sha512-81PW5m8oz/pz3GvsAwbauj7Y00rqm81Tzad77tHBwU7pIAtN+TJnMSOJhxBKflSVYhptMMb9RskhqHqrSm1V+g==", - "requires": { - "async": "^1.4.2", - "ethereumjs-util": "^5.0.0", - "level-ws": "0.0.0", - "levelup": "^1.2.1", - "memdown": "^1.0.0", - "readable-stream": "^2.0.0", - "rlp": "^2.0.0", - "semaphore": ">=1.0.1" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w==" - }, - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", "dev": true }, + "micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==" + }, "micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", @@ -31161,12 +29074,14 @@ "mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true }, "mime-types": { "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "requires": { "mime-db": "1.52.0" } @@ -31684,7 +29599,8 @@ "node-releases": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz", - "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==" + "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==", + "dev": true }, "node-stdlib-browser": { "version": "1.2.0", @@ -32097,11 +30013,6 @@ } } }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" - }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -32520,9 +30431,9 @@ } }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" }, "slash": { "version": "2.0.0", @@ -32588,15 +30499,11 @@ "sha.js": "^2.4.8" } }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" - }, "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, "picomatch": { "version": "2.3.1", @@ -33052,11 +30959,6 @@ "resolved": "https://registry.npmjs.org/preact/-/preact-10.4.1.tgz", "integrity": "sha512-WKrRpCSwL2t3tpOOGhf2WfTpcmbpxaWtDbdJdKdjd0aEiTkvOmS4NBkG6kzlaAHI9AkQ3iVqbFWM3Ei7mZ4o1Q==" }, - "precond": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz", - "integrity": "sha512-QCYG84SgGyGzqJ/vlMsxeXd/pgL/I94ixdNFyh1PusWmTCyVfPJjZ1K1jvHtsbfnXQs2TSkEP2fR7QiMZAnKFQ==" - }, "prettier": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", @@ -33076,7 +30978,8 @@ "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true }, "process-warning": { "version": "1.0.0", @@ -33099,15 +31002,6 @@ "retry": "^0.12.0" } }, - "promise-to-callback": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/promise-to-callback/-/promise-to-callback-1.0.0.tgz", - "integrity": "sha512-uhMIZmKM5ZteDMfLgJnoSq9GCwsNKrYau73Awf1jIy6/eUcuuZ3P+CD9zUv0kJsIUbU+x6uLNIhXhLHDs1pNPA==", - "requires": { - "is-fn": "^1.0.0", - "set-immediate-shim": "^1.0.1" - } - }, "proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -33129,12 +31023,9 @@ "prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==" - }, - "psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "dev": true, + "optional": true }, "public-encrypt": { "version": "4.0.3", @@ -33171,11 +31062,11 @@ "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" }, "pvtsutils": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.2.tgz", - "integrity": "sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.4.tgz", + "integrity": "sha512-Y2lmrVPui6d2U0n8lWRSTQ2Ri/0VDcA/BHAPS8/+5ElWp5drG4oPryLaqnehJT71Q2GgmGeB4mau+lSR1gCCmA==", "requires": { - "tslib": "^2.4.0" + "tslib": "^2.6.1" } }, "pvutils": { @@ -33227,6 +31118,11 @@ "wrap-ansi": "^5.1.0" } }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" + }, "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", @@ -33530,45 +31426,6 @@ } } }, - "request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "qs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==" - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" - } - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -33743,19 +31600,22 @@ "tslib": "^2.1.0" } }, + "safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + } + }, "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" }, - "safe-event-emitter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-event-emitter/-/safe-event-emitter-1.0.1.tgz", - "integrity": "sha512-e1wFe99A91XYYxoQbcq2ZJUWurxEyP8vfz7A7vuUe1s95q8r5ebraVaA1BukYJcpM6V16ugWoD9vngi8Ccu5fg==", - "requires": { - "events": "^3.0.0" - } - }, "safe-json-utils": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/safe-json-utils/-/safe-json-utils-1.1.1.tgz", @@ -33881,11 +31741,6 @@ "node-forge": "^1" } }, - "semaphore": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/semaphore/-/semaphore-1.1.0.tgz", - "integrity": "sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA==" - }, "semver": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", @@ -34058,11 +31913,6 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha512-Li5AOqrZWCVA2n5kryzEmqai6bKSIvpz5oUJHPVj6+dsbD3X1ixtsY5tEnsaNpH3pFAHmG8eIHUrtEtohrg+UQ==" - }, "setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -34279,9 +32129,9 @@ } }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" } } }, @@ -34402,29 +32252,6 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, - "sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - } - } - }, "ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -34658,6 +32485,11 @@ "normalize-path": "^3.0.0" } }, + "superstruct": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz", + "integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==" + }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -34845,49 +32677,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, "thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -34918,7 +32707,8 @@ "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true }, "to-regex-range": { "version": "5.0.1", @@ -34938,22 +32728,6 @@ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "dependencies": { - "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" - } - } - }, "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -34966,26 +32740,16 @@ "dev": true }, "ts-command-line-args": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.0.tgz", - "integrity": "sha512-Ff7Xt04WWCjj/cmPO9eWTJX3qpBZWuPWyQYG1vnxJao+alWWYjwJBc5aYz3h5p5dE08A6AnpkgiCtP/0KXXBYw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", + "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", "requires": { - "@morgan-stanley/ts-mocking-bird": "^0.6.2", "chalk": "^4.1.0", "command-line-args": "^5.1.1", "command-line-usage": "^6.1.0", "string-format": "^2.0.0" }, "dependencies": { - "@morgan-stanley/ts-mocking-bird": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/@morgan-stanley/ts-mocking-bird/-/ts-mocking-bird-0.6.4.tgz", - "integrity": "sha512-57VJIflP8eR2xXa9cD1LUawh+Gh+BVQfVu0n6GALyg/AqV/Nz25kDRvws3i9kIe1PTrbsZZOYpsYp6bXPd6nVA==", - "requires": { - "lodash": "^4.17.16", - "uuid": "^7.0.3" - } - }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -35028,18 +32792,19 @@ "requires": { "has-flag": "^4.0.0" } - }, - "uuid": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", - "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==" } } }, + "ts-essentials": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", + "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "requires": {} + }, "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", + "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==" }, "tsort": { "version": "0.0.1", @@ -35051,14 +32816,6 @@ "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==" }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "requires": { - "safe-buffer": "^5.0.1" - } - }, "tweetnacl": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", @@ -35089,6 +32846,94 @@ "mime-types": "~2.1.24" } }, + "typechain": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.1.tgz", + "integrity": "sha512-fA7clol2IP/56yq6vkMTR+4URF1nGjV82Wx6Rf09EsqD4tkzMAvEaqYxVFCavJm/1xaRga/oD55K+4FtuXwQOQ==", + "requires": { + "@types/prettier": "^2.1.1", + "debug": "^4.3.1", + "fs-extra": "^7.0.0", + "glob": "7.1.7", + "js-sha3": "^0.8.0", + "lodash": "^4.17.15", + "mkdirp": "^1.0.4", + "prettier": "^2.3.1", + "ts-command-line-args": "^2.2.0", + "ts-essentials": "^7.0.1" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "glob": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } + } + }, + "typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + } + }, + "typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + } + }, + "typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + } + }, "typed-array-length": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", @@ -35149,9 +32994,9 @@ } }, "undici": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", - "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "version": "5.23.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.23.0.tgz", + "integrity": "sha512-1D7w+fvRsqlQ9GscLBwcAJinqcZGHUKjbOmXdlE/v8BvEGXjeWAax+341q44EuTcHXXnfyKNbKRq4Lg7OzhMmg==", "requires": { "busboy": "^1.6.0" } @@ -35216,6 +33061,7 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -35225,6 +33071,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "requires": { "punycode": "^2.1.0" }, @@ -35232,7 +33079,8 @@ "punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true } } }, @@ -35313,16 +33161,6 @@ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "dev": true }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, "vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -35473,118 +33311,6 @@ "web3-utils": "1.9.0" } }, - "web3-provider-engine": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-16.0.1.tgz", - "integrity": "sha512-/Eglt2aocXMBiDj7Se/lyZnNDaHBaoJlaUfbP5HkLJQC/HlGbR+3/W+dINirlJDhh7b54DzgykqY7ksaU5QgTg==", - "requires": { - "async": "^2.5.0", - "backoff": "^2.5.0", - "clone": "^2.0.0", - "cross-fetch": "^2.1.0", - "eth-block-tracker": "^4.4.2", - "eth-json-rpc-filters": "^4.2.1", - "eth-json-rpc-infura": "^5.1.0", - "eth-json-rpc-middleware": "^6.0.0", - "eth-rpc-errors": "^3.0.0", - "eth-sig-util": "^1.4.2", - "ethereumjs-block": "^1.2.2", - "ethereumjs-tx": "^1.2.0", - "ethereumjs-util": "^5.1.5", - "ethereumjs-vm": "^2.3.4", - "json-stable-stringify": "^1.0.1", - "promise-to-callback": "^1.0.0", - "readable-stream": "^2.2.9", - "request": "^2.85.0", - "semaphore": "^1.0.3", - "ws": "^5.1.1", - "xhr": "^2.2.0", - "xtend": "^4.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==" - }, - "cross-fetch": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-2.2.6.tgz", - "integrity": "sha512-9JZz+vXCmfKUZ68zAptS7k4Nu8e2qcibe7WVZYps7sAgk5R8GYTc+T1WR0v1rlP9HxgARmOX1UTIJZFytajpNA==", - "requires": { - "node-fetch": "^2.6.7", - "whatwg-fetch": "^2.0.4" - } - }, - "eth-rpc-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz", - "integrity": "sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==", - "requires": { - "fast-safe-stringify": "^2.0.6" - } - }, - "ethereumjs-util": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", - "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "^0.1.3", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "ws": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.3.tgz", - "integrity": "sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==", - "requires": { - "async-limiter": "~1.0.0" - } - } - } - }, "web3-providers-http": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.9.0.tgz", @@ -35881,11 +33607,6 @@ "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", "dev": true }, - "whatwg-fetch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", - "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==" - }, "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -35921,16 +33642,15 @@ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" }, "which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", + "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", "requires": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" + "has-tostringtag": "^1.0.0" } }, "wide-align": { @@ -36063,14 +33783,6 @@ "xhr-request": "^1.1.0" } }, - "xhr2-cookies": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/xhr2-cookies/-/xhr2-cookies-1.1.0.tgz", - "integrity": "sha512-hjXUA6q+jl/bd8ADHcVfFsSPIf+tyLIjuO9TwJC9WI6JP2zKcS7C+p56I9kCLLsaCiNT035iYvEUUzdEFj/8+g==", - "requires": { - "cookiejar": "^2.1.1" - } - }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -36133,11 +33845,6 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==" - }, "is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", diff --git a/angular-bare-bones-demo/package.json b/angular-bare-bones-demo/package.json index eb0eecad8..158078c59 100644 --- a/angular-bare-bones-demo/package.json +++ b/angular-bare-bones-demo/package.json @@ -18,7 +18,7 @@ "@angular/platform-browser": "~13.3.0", "@angular/platform-browser-dynamic": "~13.3.0", "@angular/router": "~13.3.0", - "@tokenscript/token-negotiator": "^2.7.0", + "@tokenscript/token-negotiator": "^3.0.0", "assert": "^2.0.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", diff --git a/art-gallery-medium-article-website/build/static/js/122.cc08ec28.chunk.js b/art-gallery-medium-article-website/build/static/js/122.cc08ec28.chunk.js new file mode 100644 index 000000000..39378e4d8 --- /dev/null +++ b/art-gallery-medium-article-website/build/static/js/122.cc08ec28.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[122],{36683:(e,n,t)=>{"use strict";t.r(n),t.d(n,{WC_V2_DEFAULT_CHAINS:()=>c,getWalletConnectV2ProviderInstance:()=>u});var r=t(83777),o=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function c(e){try{l(r.next(e))}catch(n){a(n)}}function u(e){try{l(r.throw(e))}catch(n){a(n)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,u)}l((r=r.apply(e,n||[])).next())}))},a=function(e,n){var t,r,o,a,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,r=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]{}}]); +//# sourceMappingURL=122.cc08ec28.chunk.js.map \ No newline at end of file diff --git a/art-gallery-medium-article-website/build/static/js/122.cc08ec28.chunk.js.map b/art-gallery-medium-article-website/build/static/js/122.cc08ec28.chunk.js.map new file mode 100644 index 000000000..46c06f2fe --- /dev/null +++ b/art-gallery-medium-article-website/build/static/js/122.cc08ec28.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/122.cc08ec28.chunk.js","mappings":"siDAEaA,EAAuB,CACnC,YAoBYC,EAAqC,qD,kDAC1C,SAAMC,EAAAA,EAAAA,KAAuB,CACnCC,UAAW,mCACXC,OAAQ,QACRC,SAAU,mC,OAHX,MAAO,CAAP,EAAOC,EAAAA,Q","sources":["../../../token-negotiator/src/wallet/WalletConnectV2Provider.ts"],"sourcesContent":["import UniversalProvider from '@walletconnect/universal-provider'\n\nexport const WC_V2_DEFAULT_CHAINS = [\n\t'eip155:1', // Mainnet\n\t// 'eip155:5',\n\t// 'eip155:11155111',\n\t/*\n\t'eip155:137', // Polygon\n\t*/\n\t// 'eip155:80001',\n\t// 'eip155:56',\n\t// 'eip155:97',\n\t// 'eip155:43114',\n\t// 'eip155:43113',\n\t/*\n\t// disabled al networks except of Mainnet, because we dont make transactions and only have to read address and sign message. In case if multiple networks REQUIRED then Metamask breaks connection without any message\n\t'eip155:250', // Fantom\n\t'eip155:25', // Cronos\n\t'eip155:42161', // Arbitrum\n\t'eip155:10', // Optimism\n\t*/\n]\n\nexport const getWalletConnectV2ProviderInstance = async () => {\n\treturn await UniversalProvider.init({\n\t\tprojectId: '2ec7ead81da1226703ad789c0b2f7b30',\n\t\tlogger: 'debug',\n\t\trelayUrl: 'wss://relay.walletconnect.com',\n\t})\n}\n"],"names":["WC_V2_DEFAULT_CHAINS","getWalletConnectV2ProviderInstance","UniversalProvider","projectId","logger","relayUrl","_a"],"sourceRoot":""} \ No newline at end of file diff --git a/art-gallery-medium-article-website/build/static/js/main.05058634.js b/art-gallery-medium-article-website/build/static/js/main.05058634.js new file mode 100644 index 000000000..5138a402e --- /dev/null +++ b/art-gallery-medium-article-website/build/static/js/main.05058634.js @@ -0,0 +1,3 @@ +/*! For license information please see main.05058634.js.LICENSE.txt */ +(()=>{var e={34463:(e,t,r)=>{"use strict";var n=r(72791),i=r(45296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r