!function(){"use strict";functione(){}functiont(e){returne()}functionn(){returnObject.create(null)}functionr(e){e.forEach(t)}functiono(e){return"function"==typeofe}functioni(e,t){returne!=e?t==t:e!==t||e&&"object"==typeofe||"function"==typeofe}lets;functiona(e,t){returns||(s=document.createElement("a")),s.href=t,e===s.href}functionc(t,n,r){t.$$.on_destroy.push(function(t,...n){if(null==t)returne;constr=t.subscribe(...n);returnr.unsubscribe?()=>r.unsubscribe():r}(n,r))}functionu(e,t,n){returne.set(n),t}constl="undefined"!=typeofwindow;leth=l?()=>window.performance.now():()=>Date.now(),f=l?e=>requestAnimationFrame(e):e;constd=newSet;functionp(e){d.forEach((t=>{t.c(e)||(d.delete(t),t.f())})),0!==d.size&&f(p)}functiony(e,t){e.appendChild(t)}functiong(e,t,n){e.insertBefore(t,n||null)}functionb(e){e.parentNode&&e.parentNode.removeChild(e)}functionm(e,t){for(letn=0;n<e.length;n+=1)e[n]&&e[n].d(t)}functionw(e){returndocument.createElement(e)}functionv(e){returndocument.createTextNode(e)}function_(){returnv(" ")}functionx(){returnv("")}functionE(e,t,n,r){returne.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}functionk(e){returnfunction(t){returnt.preventDefault(),e.call(this,t)}}functionS(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}functionO(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}functionA(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}letC;functionR(e){C=e}functionT(){if(!C)thrownewError("Function called outside component initialization");returnC}functionL(e){T().$$.on_mount.push(e)}constI=[],P=[],j=[],U=[],B=Promise.resolve();letN=!1;functionM(e){j.push(e)}function$(e){U.push(e)}constz=newSet;letF=0;functionD(){if(0!==F)return;conste=C;do{try{for(;F<I.length;){conste=I[F];F++,R(e),H(e.$$)}}catch(e){throwI.length=0,F=0,e}for(R(null),I.length=0,F=0;P.length;)P.pop()();for(lete=0;e<j.length;e+=1){constt=j[e];z.has(t)||(z.add(t),t())}j.length=0}while(I.length);for(;U.length;)U.pop()();N=!1,z.clear(),R(e)}functionH(e){if(null!==e.fragment){e.update(),r(e.before_update);constt=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}constq=newSet;letW;functionK(){W={r:0,c:[],p:W}}functionG(){W.r||r(W.c),W=W.p}functionZ(e,t){e&&e.i&&(q.delete(e),e.i(t))}functionV(e,t,n,r){if(e&&e.o){if(q.has(e))return;q.add(e),W.c.push((()=>{q.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}elser&&r()}functionY(e,t,n){constr=e.$$.props[t];void0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}functionX(e){e&&e.c()}functionJ(e,n,i,s){const{fragment:a,after_update:c}=e.$$;a&&a.m(n,i),s||M((()=>{constn=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),c.forEach(M)}functionQ(e,t){constn=e.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}functionee(e,t){-1===e.$$.dirty[0]&&(I.push(e),N||(N=!0,B.then(D)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}functionte(t,o,i,s,a,c,u,l=[-1]){consth=C;R(t);constf=t.$$={fragment:null,ctx:[],props:c,update:e,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:newMap(o.context||(h?h.$$.context:[])),callbacks:n(),dirty:l,skip_bound:!1,root:o.target||h.$$.root};u&&u(f.root);letd=!1;if(f.ctx=i?i(t,o.props||{},((e,n,...r)=>{consto=r.length?r[0]:n;returnf.ctx&&a(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),d&&ee(t,e)),n})):[],f.update(),d=!0,r(f.before_update),f.fragment=!!s&&s(f.ctx),o.target){if(o.hydrate){conste=function(e){returnArray.from(e.childNodes)}(o.target);f.fragment&&f.fragment.l(e),e.forEach(b)}elsef.fragment&&f.fragment.c();o.intro&&Z(t.$$.fragment),J(t,o.target,o.anchor,o.customElement),D()}R(h)}classne{$destroy(){Q(this,1),this.$destroy=e}$on(t,n){if(!o(n))returne;constr=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);returnr.push(n),()=>{conste=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){vart;this.$$set&&(t=e,0!==Object.keys(t).length)&&(th
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
constPe=BigInt(0),je=BigInt(1),Ue=BigInt(2),Be=e=>einstanceofUint8Array,Ne=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));functionMe(e){if(!Be(e))thrownewError("Uint8Array expected");lett="";for(letn=0;n<e.length;n++)t+=Ne[e[n]];returnt}function$e(e){constt=e.toString(16);return1&t.length?`0${t}`:t}functionze(e){if("string"!=typeofe)thrownewError("hex string expected, got "+typeofe);returnBigInt(""===e?"0":`0x${e}`)}functionFe(e){if("string"!=typeofe)thrownewError("hex string expected, got "+typeofe);if(e.length%2)thrownewError("hex string is invalid: unpadded "+e.length);constt=newUint8Array(e.length/2);for(letn=0;n<t.length;n++){constr=2*n,o=e.slice(r,r+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)thrownewError("invalid byte sequence");t[n]=i}returnt}functionDe(e){returnze(Me(e))}functionHe(e){if(!Be(e))thrownewError("Uint8Array expected");returnze(Me(Uint8Array.from(e).reverse()))}constqe=(e,t)=>Fe(e.toString(16).padStart(2*t,"0")),We=(e,t)=>qe(e,t).reverse();functionKe(e,t,n){letr;if("string"==typeoft)try{r=Fe(t)}catch(n){thrownewError(`${e} must be valid hex string, got "${t}". Cause: ${n}`)}else{if(!Be(t))thrownewError(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}consto=r.length;if("number"==typeofn&&o!==n)thrownewError(`${e} expected ${n} bytes, got ${o}`);returnr}functionGe(...e){constt=newUint8Array(e.reduce(((e,t)=>e+t.length),0));letn=0;returne.forEach((e=>{if(!Be(e))thrownewError("Uint8Array expected");t.set(e,n),n+=e.length})),t}functionZe(e){if("string"!=typeofe)thrownewError("utf8ToBytes expected string, got "+typeofe);return(newTextEncoder).encode(e)}constVe=e=>(Ue<<BigInt(e-1))-je,Ye=e=>newUint8Array(e),Xe=e=>Uint8Array.from(e);functionJe(e,t,n){if("number"!=typeofe||e<2)thrownewError("hashLen must be a number");if("number"!=typeoft||t<2)thrownewError("qByteLen must be a number");if("function"!=typeofn)thrownewError("hmacFn must be a function");letr=Ye(e),o=Ye(e),i=0;consts=()=>{r.fill(1),o.fill(0),i=0},a=(...e)=>n(o,r,...e),c=(e=Ye())=>{o=a(Xe([0]),e),r=a(),0!==e.length&&(o=a(Xe([1]),e),r=a())},u=()=>{if(i++>=1e3)thrownewError("drbg: tried 1000 values");lete=0;constn=[];for(;e<t;){r=a();constt=r.slice();n.push(t),e+=r.length}returnGe(...n)};return(e,t)=>{letn;for(s(),c(e);!(n=t(u()));)c();returns(),n}}constQe={bigint:e=>"bigint"==typeofe,function:e=>"function"==typeofe,boolean:e=>"boolean"==typeofe,string:e=>"string"==typeofe,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeofe&&Number.isSafeInteger(e.outputLen)};functionet(e,t,n={}){constr=(t,n,r)=>{consto=Qe[n];if("function"!=typeofo)thrownewError(`Invalid validator "${n}", expected function`);consti=e[t];if(!(r&&void0===i||o(i,e)))thrownewError(`Invalid param ${String(t)}=${i} (${typeofi}), expected ${n}`)};for(const[e,n]ofObject.entries(t))r(e,n,!1);for(const[e,t]ofObject.entries(n))r(e,t,!0);returne}vartt=Object.freeze({__proto__:null,bitGet:(e,t)=>e>>BigInt(t)&je,bitLen:function(e){lett;for(t=0;e>Pe;e>>=je,t+=1);returnt},bitMask:Ve,bitSet:(e,t,n)=>e|(n?je:Pe)<<BigInt(t),bytesToHex:Me,bytesToNumberBE:De,bytesToNumberLE:He,concatBytes:Ge,createHmacDrbg:Je,ensureBytes:Ke,equalBytes:function(e,t){if(e.length!==t.length)return!1;for(letn=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},hexToBytes:Fe,hexToNumber:ze,numberToBytesBE:qe,numberToBytesLE:We,numberToHexUnpadded:$e,numberToVarBytesBE:e=>Fe($e(e)),utf8ToBytes:Ze,validateObject:et});
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */constnt=BigInt(0),rt=BigInt(1),ot=BigInt(2),it=BigInt(3),st=BigInt(4),at=BigInt(5),ct=BigInt(8);functionut(e,t){constn=e%t;returnn>=nt?n:t+n}functionlt(e,t,n){if(n<=nt||t<nt)thrownewError("Expected power/modulo > 0");if(n===rt)returnnt;letr=rt;for(;t>nt;)t&rt&&(r=r*e%n),e=e*e%n,t>>=rt;returnr}functionht(e,t,n){letr=e;for(;t-->nt;)r*=r,r%=n;returnr}functionft(e,t){if(e===nt||t<=nt)thrownewError(`invert: expected positive integers, got n=${e} mod=${t}`);letn=ut(e,t),r=t,o=nt,i=rt;for(;n!==nt;){conste=r%n,t=o-i*(r/n);r=n,n=e,o=i,i=t}if(r!==rt)thrownewError("invert: does not exist");returnut(o,t)}functiondt(e){if(e%st===it){constt=(e+rt)/st;returnfunction(e,n){constr=e.pow(n,t);if(!e.eql(e.sqr(r),n))thrownewError("Cannot find square root");returnr}}if(e%ct===at){constt=(e-at)/ct;returnfunction(e,n){constr=e.mul(n,ot),o=e.pow(r,t),i=e.mul(n,o),s=e.mul(e.mul(i,ot),o),a=e.mul(i,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),n))thrownewError("Cannot find square root");returna}}returnfunction(e){constt=(e-rt)/ot;letn,r,o;for(n=e-rt,r=0;n%ot===nt;n/=ot,r++);for(o=ot;o<e&<(o,t,e)!==e-rt;o++);if(1===r){constt=(e+rt)/st;returnfunction(e,n){constr=e.pow(n,t);if(!e.eql(e.sqr(r),n))thrownewError("Cannot find square root");returnr}}consti=(n+rt)/ot;returnfunction(e,s){if(e.pow(s,t)===e.neg(e.ONE))thrownewError("Cannot find square root");leta=r,c=e.pow(e.mul(e.ONE,o),n),u=e.pow(s,i),l=e.pow(s,n);for(;!e.eql(l,e.ONE);){if(e.eql(l,e.ZERO))returne.ZERO;lett=1;for(letn=e.sqr(l);t<a&&!e.eql(n,e.ONE);t++)n=e.sqr(n);constn=e.pow(c,rt<<BigInt(a-t-1));c=e.sqr(n),u=e.mul(u,n),l=e.mul(l,c),a=t}returnu}}(e)}BigInt(9),BigInt(16);constpt=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];functionyt(e){constt=pt.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});returnet(e,t)}functiongt(e,t){constn=void0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const{bytesToNumberBE:vt,hexToBytes:_t}=tt,xt={Err:classextendsError{constructor(e=""){super(e)}},_parseInt(e){const{Err:t}=xt;if(e.length<2||2!==e[0])thrownewt("Invalid signature integer tag");constn=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)thrownewt("Invalid signature integer: wrong length");if(128&r[0])thrownewt("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))thrownewt("Invalid signature integer: unnecessary leading zero");return{d:vt(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=xt,n="string"==typeofe?_t(e):e;if(!(ninstanceofUint8Array))thrownewError("ui8a expected");letr=n.length;if(r<2||48!=n[0])thrownewt("Invalid signature tag");if(n[1]!==r-2)thrownewt("Invalid signature: incorrect length");const{d:o,l:i}=xt._parseInt(n.subarray(2)),{d:s,l:a}=xt._parseInt(i);if(a.length)thrownewt("Invalid signature: left bytes after parsing");return{r:o,s:s}},hexFromSig(e){constt=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{constt=e.toString(16);return1&t.length?`0${t}`:t},r=t(n(e.s)),o=t(n(e.r)),i=r.length/2,s=o.length/2,a=n(i),c=n(s);return`30${n(s+i+4)}02${c}${o}02${a}${r}`}},Et=BigInt(0),kt=BigInt(1),St=BigInt(2),Ot=BigInt(3),At=BigInt(4);functionCt(e){constt=function(e){constt=wt(e);et(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))thrownewError("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeofn||"bigint"!=typeofn.beta||"function"!=typeofn.splitScalar)thrownewError("Expected endomorphism with beta: bigint and splitScalar: function")}returnObject.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((e,t,r)=>{consto=t.toAffine();returnGe(Uint8Array.from([4]),n.toBytes(o.x),n.toBytes(o.y))}),o=t.fromBytes||(e=>{constt=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});functioni(e){const{a:r,b:o}=t,i=n.sqr(e),s=n.mul(i,e);returnn.add(n.add(s,n.mul(e,r)),o)}if(!n.eql(n.sqr(t.Gy),i(t.Gx)))thrownewError("bad generator point: equation left != right");functions(e){return"bigint"==typeofe&&Et<e&&e<t.n}functiona(e){if(!s(e))thrownewError("Expected valid bigint: 0 < bigint < curve.n")}functionc(e){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:o,n:i}=t;if(n&&"bigint"!=typeofe){if(einstanceofUint8Array&&(e=Me(e)),"string"!=typeofe||!n.includes(e.length))thrownewError("Invalid key");e=e.padStart(2*r,"0")}lets;try{s="bigint"==typeofe?e:De(Ke("private key",e,r))}catch(t){thrownewError(`private key must be ${r} bytes, hex or bigint, not ${typeofe}`)}returno&&(s=ut(s,i)),a(s),s}constu=newMap;functionl(e){if(!(einstanceofh))thrownewError("ProjectivePoint expected")}classh{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))thrownewError("x required");if(null==t||!n.isValid(t))thrownewError("y required");if(null==r||!n.isValid(r))thrownewError("z required")}staticfromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))thrownewError("invalid affine point");if(einstanceofh)thrownewError("projective point not allowed");consto=e=>n.eql(e,n.ZERO);returno(t)&&o(r)?h.ZERO:newh(t,r,n.ONE)}getx(){returnthis.toAffine().x}gety(){returnthis.toAffine().y}staticnormalizeZ(e){constt=n.invertBatch(e.map((e=>e.pz)));returne.map(((e,n)=>e.toAffine(t[n]))).map(h.fromAffine)}staticfromHex(e){constt=h.fromAffine(o(Ke("pointHex",e)));returnt.assertValidity(),t}staticfromPrivateKey(e){returnh.BASE.multiply(c(e))}_setWindowSize(e){this._WINDOW_SIZE=e,u.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint)return;thrownewError("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))thrownewError("bad point: x or y not FE");consto=n.sqr(r),s=i(e);if(!n.eql(o,s))thrownewError("badpoint:equationleft!
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
constPt=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),jt=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Ut=BigInt(1),Bt=BigInt(2),Nt=(e,t)=>(e+t/Bt)/t;functionMt(e){constt=Pt,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,h=ht(l,n,t)*l%t,f=ht(h,n,t)*l%t,d=ht(f,Bt,t)*u%t,p=ht(d,o,t)*d%t,y=ht(p,i,t)*p%t,g=ht(y,a,t)*y%t,b=ht(g,c,t)*g%t,m=ht(b,a,t)*y%t,w=ht(m,n,t)*l%t,v=ht(w,s,t)*p%t,_=ht(v,r,t)*u%t,x=ht(_,Bt,t);if(!$t.eql($t.sqr(x),e))thrownewError("Cannot find square root");returnx}const$t=function(e,t,n=!1,r={}){if(e<=nt)thrownewError(`Expected Fp ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:i}=gt(e,t);if(i>2048)thrownewError("Field lengths over 2048 bytes are not supported");consts=dt(e),a=Object.freeze({ORDER:e,BITS:o,BYTES:i,MASK:Ve(o),ZERO:nt,ONE:rt,create:t=>ut(t,e),isValid:t=>{if("bigint"!=typeoft)thrownewError("Invalid field element: expected bigint, got "+typeoft);returnnt<=t&&t<e},is0:e=>e===nt,isOdd:e=>(e&rt)===rt,neg:t=>ut(-t,e),eql:(e,t)=>e===t,sqr:t=>ut(t*t,e),add:(t,n)=>ut(t+n,e),sub:(t,n)=>ut(t-n,e),mul:(t,n)=>ut(t*n,e),pow:(e,t)=>function(e,t,n){if(n<nt)thrownewError("Expected power > 0");if(n===nt)returne.ONE;if(n===rt)returnt;letr=e.ONE,o=t;for(;n>nt;)n&rt&&(r=e.mul(r,o)),o=e.sqr(o),n>>=rt;returnr}(a,e,t),div:(t,n)=>ut(t*ft(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>ft(t,e),sqrt:r.sqrt||(e=>s(a,e)),invertBatch:e=>function(e,t){constn=newArray(t.length),r=t.reduce(((t,r,o)=>e.is0(r)?t:(n[o]=t,e.mul(t,r))),e.ONE),o=e.inv(r);returnt.reduceRight(((t,r,o)=>e.is0(r)?t:(n[o]=e.mul(t,n[o]),e.mul(t,r))),o),n}(a,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?We(e,i):qe(e,i),fromBytes:e=>{if(e.length!==i)thrownewError(`Fp.fromBytes: expected ${i}, got ${e.length}`);returnn?He(e):De(e)}});returnObject.freeze(a)}(Pt,void0,void0,{sqrt:Mt}),zt=function(e,t){constn=t=>Rt({...e,...It(t)});returnObject.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:$t,n:jt,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{constt=jt,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Ut*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),a=Nt(i*e,t),c=Nt(-r*e,t);letu=ut(e-a*n-c*o,t),l=ut(-a*r-c*i,t);consth=u>s,f=l>s;if(h&&(u=t-u),f&&(l=t-l),u>s||l>s)thrownewError("splitScalar: Endomorphism failed, k="+e);return{k1neg:h,k1:u,k2neg:f,k2:l}}}},Ie),Ft=BigInt(0),Dt=e=>"bigint"==typeofe&&Ft<e&&e<Pt,Ht={};functionqt(e,...t){letn=Ht[e];if(void0===n){constt=Ie(Uint8Array.from(e,(e=>e.charCodeAt(0))));n=Ge(t,t),Ht[e]=n}returnIe(Ge(n,...t))}constWt=e=>e.toRawBytes(!0).slice(1),Kt=e=>qe(e,32),Gt=e=>ut(e,Pt),Zt=e=>ut(e,jt),Vt=zt.ProjectivePoint;functionYt(e){lett=zt.utils.normPrivateKeyToScalar(e),n=Vt.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:Zt(-t),bytes:Wt(n)}}functionXt(e){if(!Dt(e))thrownewError("bad x: need 0 < x < p");constt=Gt(e*e);letn=Mt(Gt(t*e+BigInt(7)));n%Bt!==Ft&&(n=Gt(-n));constr=newVt(e,n,Ut);returnr.assertValidity(),r}functionJt(...e){returnZt(De(qt("BIP0340/challenge",...e)))}functionQt(e,t,n){constr=Ke("signature",e,64),o=Ke("message",t),i=Ke("publicKey",n,32);try{conste=Xt(De(i)),t=De(r.subarray(0,32));if(!Dt(t))return!1;constn=De(r.subarray(32,64));if(!("bigint"==typeof(u=n)&&Ft<u&&u<jt))return!1;constl=Jt(Kt(t),Wt(e),o),h=(s=e,a=n,c=Zt(-l),Vt.BASE.multiplyAndAddUnsafe(s,a,c));return!(!h||!h.hasEvenY()||h.toAffine().x!==t)}catch(e){return!1}vars,a,c,u}consten={getPublicKey:function(e){returnYt(e).bytes},sign:function(e,t,n=ke(32)){constr=Ke("message",e),{bytes:o,scalar:i}=Yt(t),s=Ke("auxRand",n,32),a=Kt(i^De(qt("BIP0340/aux",s))),c=qt("BIP0340/nonce",a,o,r),u=Zt
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
functionrn(e){if(!Number.isSafeInteger(e))thrownewError(`Wrong integer: ${e}`)}functionon(...e){constt=(e,t)=>n=>e(t(n));return{encode:Array.from(e).reverse().reduce(((e,n)=>e?t(e,n.encode):n.encode),void0),decode:e.reduce(((e,n)=>e?t(e,n.decode):n.decode),void0)}}functionsn(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeoft[0])thrownewError("alphabet.encode input should be an array of numbers");returnt.map((t=>{if(rn(t),t<0||t>=e.length)thrownewError(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);returne[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeoft[0])thrownewError("alphabet.decode input should be array of strings");returnt.map((t=>{if("string"!=typeoft)thrownewError(`alphabet.decode: not string element=${t}`);constn=e.indexOf(t);if(-1===n)thrownewError(`Unknown letter: "${t}". Allowed: ${e}`);returnn}))}}}functionan(e=""){if("string"!=typeofe)thrownewError("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeoft[0])thrownewError("join.encode input should be array of strings");for(leteoft)if("string"!=typeofe)thrownewError(`join.encode: non-string input=${e}`);returnt.join(e)},decode:t=>{if("string"!=typeoft)thrownewError("join.decode input should be string");returnt.split(e)}}}functioncn(e,t="="){if(rn(e),"string"!=typeoft)thrownewError("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeofn[0])thrownewError("padding.encode input should be array of strings");for(leteofn)if("string"!=typeofe)thrownewError(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);returnn},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeofn[0])thrownewError("padding.encode input should be array of strings");for(leteofn)if("string"!=typeofe)thrownewError(`padding.decode: non-string input=${e}`);letr=n.length;if(r*e%8)thrownewError("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))thrownewError("Invalid padding: string has too much padding");returnn.slice(0,r)}}}functionun(e){if("function"!=typeofe)thrownewError("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}functionln(e,t,n){if(t<2)thrownewError(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)thrownewError(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))thrownewError("convertRadix: data should be array");if(!e.length)return[];letr=0;consto=[],i=Array.from(e);for(i.forEach((e=>{if(rn(e),e<0||e>=t)thrownewError(`Wrong integer: ${e}`)}));;){lete=0,s=!0;for(leto=r;o<i.length;o++){consta=i[o],c=t*e+a;if(!Number.isSafeInteger(c)||t*e/t!==e||c-a!=t*e)thrownewError("convertRadix: carry overflow");if(e=c%n,i[o]=Math.floor(c/n),!Number.isSafeInteger(i[o])||i[o]*n+e!==c)thrownewError("convertRadix: carry overflow");s&&(i[o]?s=!1:r=o)}if(o.push(e),s)break}for(lett=0;t<e.length-1&&0===e[t];t++)o.push(0);returno.reverse()}!function(e,t,n){if("function"!=typeoft)thrownewError("mapToCurve() must be defined")}(zt.ProjectivePoint,(e=>{const{x:t,y:n}=nn($t.create(e[0]));returntn(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:$t.ORDER,m:1,k:128,expand:"xmd",hash:Ie});consthn=(e,t)=>t?hn(t,e%t):e,fn=(e,t)=>e+(t-hn(e,t));functiondn(e,t,n,r){if(!Array.isArray(e))thrownewError("convertRadix2: data should be array");if(t<=0||t>32)thrownewError(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)thrownewError(`convertRadix2: wrong to=${n}`);if(fn(t,n)>32)thrownewError(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${fn(t,n)}`);leto=0,i=0;consts=2**n-1,a=[];for(constrofe){if(rn(r),r>=2**t)thrownewError(`convertRadix2: invalid data word=${r} from=${t}`);if(o=o<<t|r,i+t>32)thrownewError(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)a.push((o>>i-n&s)>>>0);o&=2**i-1}if(o=o<<n-i&s,!r&&i>=t)thrownewError("Excess padding");if(!r&&o)thrown
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void0;constt=Gn;e.u8=e=>newUint8Array(e.buffer,e.byteOffset,e.byteLength);e.u32=e=>newUint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));e.createView=e=>newDataView(e.buffer,e.byteOffset,e.byteLength);if(e.rotr=(e,t)=>e<<32-t|e>>>t,e.isLE=68===newUint8Array(newUint32Array([287454020]).buffer)[0],!e.isLE)thrownewError("Non little-endian hardware is not supported");constn=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));e.bytesToHex=function(e){if(!(einstanceofUint8Array))thrownewError("Uint8Array expected");lett="";for(letr=0;r<e.length;r++)t+=n[e[r]];returnt},e.hexToBytes=function(e){if("string"!=typeofe)thrownewTypeError("hexToBytes: expected string, got "+typeofe);if(e.length%2)thrownewError("hexToBytes: received invalid unpadded hex");constt=newUint8Array(e.length/2);for(letn=0;n<t.length;n++){constr=2*n,o=e.slice(r,r+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)thrownewError("Invalid byte sequence");t[n]=i}returnt};functionr(e){if("string"!=typeofe)thrownewTypeError("utf8ToBytes expected string, got "+typeofe);return(newTextEncoder).encode(e)}functiono(e){if("string"==typeofe&&(e=r(e)),!(einstanceofUint8Array))thrownewTypeError(`Expected input type is Uint8Array (got ${typeofe})`);returne}e.nextTick=async()=>{},e.asyncLoop=asyncfunction(t,n,r){leto=Date.now();for(leti=0;i<t;i++){r(i);constt=Date.now()-o;t>=0&&t<n||(await(0,e.nextTick)(),o+=t)}},e.utf8ToBytes=r,e.toBytes=o,e.concatBytes=function(...e){if(!e.every((e=>einstanceofUint8Array)))thrownewError("Uint8Array list expected");if(1===e.length)returne[0];constt=e.reduce(((e,t)=>e+t.length),0),n=newUint8Array(t);for(lett=0,r=0;t<e.length;t++){consto=e[t];n.set(o,r),r+=o.length}returnn};e.Hash=class{clone(){returnthis._cloneInto()}};e.checkOpts=function(e,t){if(void0!==t&&("object"!=typeoft||(n=t,"[object Object]"!==Object.prototype.toString.call(n)||n.constructor!==Object)))thrownewTypeError("Options should be object or undefined");varn;returnObject.assign(e,t)},e.wrapConstructor=function(e){constt=t=>e().update(o(t)).digest(),n=e();returnt.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},e.wrapConstructorWithOpts=function(e){constt=(t,n)=>e(n).update(o(t)).digest(),n=e({});returnt.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},e.randomBytes=function(e=32){if(t.crypto&&"function"==typeoft.crypto.getRandomValues)returnt.crypto.getRandomValues(newUint8Array(e));thrownewError("crypto.getRandomValues must be defined")}}(Kn),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void0;constt=Bn,n=Kn;classrextendsn.Hash{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,t.default.hash(e);consto=(0,n.toBytes)(r);if(this.iHash=e.create(),"function"!=typeofthis.iHash.update)thrownewTypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;consti=this.blockLen,s=newUint8Array(i);s.set(o.length>i?e.create().update(o).digest():o);for(lete=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(lete=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),s.fill(0)}update(e){returnt.default.exists(this),this.iHash.update(e),this}digestInto(e){t.default.exists(this),t.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){conste=newUint8Array(this.oHash.outputLen);returnthis.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:o,blockLen:i,outputLen:s}=this;returne.finished=r,e.destroyed=o,e.blockLen=i,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHas
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64url=e.base64=e.base32crockford=e.base32hex=e.base32=e.base16=e.utils=e.assertNumber=void0,e.assertNumber=t;constc=(e,t)=>t?c(t,e%t):e,u=(e,t)=>e+(t-c(e,t));functionl(e,n,r,o){if(!Array.isArray(e))thrownewError("convertRadix2: data should be array");if(n<=0||n>32)thrownewError(`convertRadix2: wrong from=${n}`);if(r<=0||r>32)thrownewError(`convertRadix2: wrong to=${r}`);if(u(n,r)>32)thrownewError(`convertRadix2: carry overflow from=${n} to=${r} carryBits=${u(n,r)}`);leti=0,s=0;consta=2**r-1,c=[];for(constoofe){if(t(o),o>=2**n)thrownewError(`convertRadix2: invalid data word=${o} from=${n}`);if(i=i<<n|o,s+n>32)thrownewError(`convertRadix2: carry overflow pos=${s} from=${n}`);for(s+=n;s>=r;s-=r)c.push((i>>s-r&a)>>>0);i&=2**s-1}if(i=i<<r-s&a,!o&&s>=n)thrownewError("Excess padding");if(!o&&i)thrownewError(`Non-zero padding: ${i}`);returno&&s>0&&c.push(i>>>0),c}functionh(e){returnt(e),{encode:t=>{if(!(tinstanceofUint8Array))thrownewError("radix.encode input should be Uint8Array");returna(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeoft[0])thrownewError("radix.decode input should be array of strings");returnUint8Array.from(a(t,e,256))}}}functionf(e,n=!1){if(t(e),e<=0||e>32)thrownewError("radix2: bits should be in (0..32]");if(u(8,e)>32||u(e,8)>32)thrownewError("radix2: carry overflow");return{encode:t=>{if(!(tinstanceofUint8Array))thrownewError("radix2.encode input should be Uint8Array");returnl(Array.from(t),8,e,!n)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeoft[0])thrownewError("radix2.decode input should be array of strings");returnUint8Array.from(l(t,e,8,n))}}}functiond(e){if("function"!=typeofe)thrownewError("unsafeWrapper fn should be function");returnfunction(...t){try{returne.apply(null,t)}catch(e){}}}functionp(e,n){if(t(e),"function"!=typeofn)thrownewError("checksum fn should be function");return{encode(t){if(!(tinstanceofUint8Array))thrownewError("checksum.encode: input should be Uint8Array");constr=n(t).slice(0,e),o=newUint8Array(t.length+e);returno.set(t),o.set(r,t.length),o},decode(t){if(!(tinstanceofUint8Array))thrownewError("checksum.decode: input should be Uint8Array");constr=t.slice(0,-e),o=n(r).slice(0,e),i=t.slice(-e);for(lett=0;t<e;t++)if(o[t]!==i[t])thrownewError("Invalid checksum");returnr}}}e.utils={alphabet:r,chain:n,checksum:p,radix:h,radix2:f,join:o,padding:i},e.base16=n(f(4),r("0123456789ABCDEF"),o("")),e.base32=n(f(5),r("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),i(5),o("")),e.base32hex=n(f(5),r("0123456789ABCDEFGHIJKLMNOPQRSTUV"),i(5),o("")),e.base32crockford=n(f(5),r("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),o(""),s((e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),e.base64=n(f(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),i(6),o("")),e.base64url=n(f(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(6),o(""));consty=e=>n(h(58),r(e),o(""));e.base58=y("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=y("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=y("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");constg=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(t){letn="";for(letr=0;r<t.length;r+=8){consto=t.subarray(r,r+8);n+=e.base58.encode(o).padStart(g[o.length],"1")}returnn},decode(t){letn=[];for(letr=0;r<t.length;r+=11){consto=t.slice(r,r+11),i=g.indexOf(o.length),s=e.base58.decode(o);for(lete=0;e<s.length-i;e++)if(0!==s[e])thrownewError("base58xmr: wrong padding");n=n.concat(Array.from(s.slice(s.length-i)))}returnUint8Array.from(n)}};e.base58check=t=>n(p(4,(e=>t(t(e)))),e.base58);constb=n(r("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o("")),m=[996825010,642813549,513874426,1027748829,705979059];functionw(e){constt=e>>25;letn=(33554431&e)<<5;for(lete=0;e<m.length;e++)1=
/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */constOr=Bn,Ar=qn,Cr=Qn,Rr=hr,Tr=Kn,Lr=kr;functionIr(e){if("string"!=typeofe)thrownewTypeError("Invalid mnemonic type: "+typeofe);returne.normalize("NFKD")}functionPr(e){constt=Ir(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))thrownewError("Invalid mnemonic");return{nfkd:t,words:n}}functionjr(e){Or.default.bytes(e,16,20,24,28,32)}varUr=Un.generateMnemonic=function(e,t=128){if(Or.default.number(t),t%32!=0||t>256)thrownewTypeError("Invalid entropy");return$r((0,Tr.randomBytes)(t/8),e)};constBr=e=>{constt=8-e.length/4;returnnewUint8Array([(0,Cr.sha256)(e)[0]>>t<<t])};functionNr(e){if(!Array.isArray(e)||2048!==e.length||"string"!=typeofe[0])thrownewError("Worlist: expected array of 2048 strings");returne.forEach((e=>{if("string"!=typeofe)thrownewError(`Wordlist: non-string element: ${e}`)})),Lr.utils.chain(Lr.utils.checksum(1,Br),Lr.utils.radix2(11,!0),Lr.utils.alphabet(e))}functionMr(e,t){const{words:n}=Pr(e),r=Nr(t).decode(n);returnjr(r),r}function$r(e,t){jr(e);returnNr(t).encode(e).join((e=>"あいこくしん"===e[0])(t)?"":" ")}Un.mnemonicToEntropy=Mr,Un.entropyToMnemonic=$r;varzr=Un.validateMnemonic=function(e,t){try{Mr(e,t)}catch(e){return!1}return!0};constFr=e=>Ir(`mnemonic${e}`);Un.mnemonicToSeed=function(e,t=""){return(0,Ar.pbkdf2Async)(Rr.sha512,Pr(e).nfkd,Fr(t),{c:2048,dkLen:64})},Sr=Un.mnemonicToSeedSync=function(e,t=""){return(0,Ar.pbkdf2)(Rr.sha512,Pr(e).nfkd,Fr(t),{c:2048,dkLen:64})};constDr=newUint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Hr=Uint8Array.from({length:16},((e,t)=>t)),qr=Hr.map((e=>(9*e+5)%16));letWr=[Hr],Kr=[qr];for(lete=0;e<4;e++)for(lettof[Wr,Kr])t.push(t[e].map((e=>Dr[e])));constGr=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>newUint8Array(e))),Zr=Wr.map(((e,t)=>e.map((e=>Gr[t][e])))),Vr=Kr.map(((e,t)=>e.map((e=>Gr[t][e])))),Yr=newUint32Array([0,1518500249,1859775393,2400959708,2840853838]),Xr=newUint32Array([1352829926,1548603684,1836072691,2053994217,0]),Jr=(e,t)=>e<<t|e>>>32-t;functionQr(e,t,n,r){return0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}consteo=newUint32Array(16);classtoextendsSe{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:o}=this;return[e,t,n,r,o]}set(e,t,n,r,o){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|o}process(e,t){for(letn=0;n<16;n++,t+=4)eo[n]=e.getUint32(t,!0);letn=0|this.h0,r=n,o=0|this.h1,i=o,s=0|this.h2,a=s,c=0|this.h3,u=c,l=0|this.h4,h=l;for(lete=0;e<5;e++){constt=4-e,f=Yr[e],d=Xr[e],p=Wr[e],y=Kr[e],g=Zr[e],b=Vr[e];for(lett=0;t<16;t++){constr=Jr(n+Qr(e,o,s,c)+eo[p[t]]+f,g[t])+l|0;n=l,l=c,c=0|Jr(s,10),s=o,o=r}for(lete=0;e<16;e++){constn=Jr(r+Qr(t,i,a,u)+eo[y[e]]+d,b[e])+h|0;r=h,h=u,u=0|Jr(a,10),a=i,i=n}}this.set(this.h1+s+u|0,this.h2+c+h|0,this.h3+l+r|0,this.h4+n+i|0,this.h0+o+a|0)}roundClean(){eo.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}constno=Ee((()=>newto)),ro=BigInt(2**32-1),oo=BigInt(32);functionio(e,t=!1){returnt?{h:Number(e&ro),l:Number(e>>oo&ro)}:{h:0|Number(e>>oo&ro),l:0|Number(e&ro)}}constso={fromBig:io,split:function(e,t=!1){letn=newUint32Array(e.length),r=newUint32Array(e.length);for(leto=0;o<e.length;o++){const{h:i,l:s}=io(e[o],t);[n[o],r[o]]=[i,s]}return[n,r]},toBig:(e,t)=>BigInt(e>>>0)<<oo|BigInt(t>>>0),shrSH:(e,t,n)=>e>>>n,shrSL:(e,t,n)=>e<<32-n|t>>>n,rotrSH:(e,t,n)=>e>>>n|t<<32-n,rotrSL:(e,t,n)=>e<<32-n|t>>>n,rotrBH:(e,t,n)=>e<<64-n|t>>>n-32,rotrBL:(e,t,n)=>e>>>n-32|t<<64-n,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,n)=>e<<n|t>>>32-n,rotlSL:(e,t,n)=>t<<n|e>>>32-n,rotlBH:(e,t,n)=>t<<n-32|e>>>64-n,rotlBL:(e,t,n)=>e<<n-32|t>>>64-n,add:function(e,t,n,r){consto=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:0|o}},add3L:
/*! https://mths.be/punycode v1.4.1 by @mathias */
varhu=2147483647,fu=/[^\x20-\x7E]/,du=/[\x2E\u3002\uFF0E\uFF61]/g,pu={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},yu=Math.floor,gu=String.fromCharCode;functionbu(e){thrownewRangeError(pu[e])}functionmu(e,t){returne+22+75*(e<26)-((0!=t)<<5)}functionwu(e,t,n){varr=0;for(e=n?yu(e/700):e>>1,e+=yu(e/t);e>455;r+=36)e=yu(e/35);returnyu(r+36*e/(e+38))}functionvu(e){returnfunction(e,t){varn=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);varo=function(e,t){for(varn=e.length,r=[];n--;)r[n]=t(e[n]);returnr}((e=e.replace(du,".")).split("."),t).join(".");returnr+o}(e,(function(e){returnfu.test(e)?"xn--"+function(e){vart,n,r,o,i,s,a,c,u,l,h,f,d,p,y,g=[];for(e=function(e){for(vart,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);returnr}(e),f=e.length,t=128,n=0,i=72,s=0;s<f;++s)(h=e[s])<128&&g.push(gu(h));for(r=o=g.length,o&&g.push("-");r<f;){for(a=hu,s=0;s<f;++s)(h=e[s])>=t&&h<a&&(a=h);for(a-t>yu((hu-n)/(d=r+1))&&bu("overflow"),n+=(a-t)*d,t=a,s=0;s<f;++s)if((h=e[s])<t&&++n>hu&&bu("overflow"),h==t){for(c=n,u=36;!(c<(l=u<=i?1:u>=i+26?26:u-i));u+=36)y=c-l,p=36-l,g.push(gu(mu(l+y%p,0))),c=yu(y/p);g.push(gu(mu(c,0))),i=wu(n,d,r==o),n=0,++r}++n,++t}returng.join("")}(e):e}))}function_u(e,t){returnObject.prototype.hasOwnProperty.call(e,t)}varxu=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};functionEu(e){switch(typeofe){case"string":returne;case"boolean":returne?"true":"false";case"number":returnisFinite(e)?e:"";default:return""}}functionku(e,t){if(e.map)returne.map(t);for(varn=[],r=0;r<e.length;r++)n.push(t(e[r],r));returnn}varSu=Object.keys||function(e){vart=[];for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);returnt};functionOu(e,t,n,r){t=t||"&",n=n||"=";varo={};if("string"!=typeofe||0===e.length)returno;vari=/\+/g;e=e.split(t);vars=1e3;r&&"number"==typeofr.maxKeys&&(s=r.maxKeys);vara=e.length;s>0&&a>s&&(a=s);for(varc=0;c<a;++c){varu,l,h,f,d=e[c].replace(i,"%20"),p=d.indexOf(n);p>=0?(u=d.substr(0,p),l=d.substr(p+1)):(u=d,l=""),h=decodeURIComponent(u),f=decodeURIComponent(l),_u(o,h)?xu(o[h])?o[h].push(f):o[h]=[o[h],f]:o[h]=f}returno}constAu=Zi.URL,Cu=Zi.URLSearchParams;varRu={parse:Hu,resolve:Zu,resolveObject:Vu,fileURLToPath:Wu,format:Ku,Url:Tu,URL:Au,URLSearchParams:Cu};functionTu(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}varLu=/^([a-z0-9.+-]+:)/i,Iu=/:[0-9]*$/,Pu=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ju=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Uu=["'"].concat(ju),Bu=["%","/","?",";","#"].concat(Uu),Nu=["/","?","#"],Mu=/^[+a-z0-9A-Z_-]{0,63}$/,$u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zu={javascript:!0,"javascript:":!0},Fu={javascript:!0,"javascript:":!0},Du={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};functionHu(e,t,n){if(e&&cc(e)&&einstanceofTu)returne;varr=newTu;returnr.parse(e,t,n),r}functionqu(e,t,n,r){if(!ic(t))thrownewTypeError("Parameter 'url' must be a string, not "+typeoft);varo=t.indexOf("?"),i=-1!==o&&o<t.indexOf("#")?"?":"#",s=t.split(i);s[0]=s[0].replace(/\\/g,"/");vara=t=s.join(i);if(a=a.trim(),!r&&1===t.split("#").length){varc=Pu.exec(a);if(c)returne.path=a,e.href=a,e.pathname=c[1],c[2]?(e.search=c[2],e.query=n?Ou(e.search.substr(1)):e.search.substr(1)):n&&(e.search="",e.query={}),e}varu,l,h,f,d=Lu.exec(a);if(d){varp=(d=d[0]).toLowerCase();e.protocol=p,a=a.substr(d.length)}if(r||d||a.match(/^\/\/[^@\/]+@[^@\/]+/)){vary="//"===a.substr(0,2);!y||d&&Fu[d]||(a=a.substr(2),e.slashes=!0)}if(!Fu[d]&&(y||d&&!Du[d])){varg,b,m=-1;for(u=0;u<Nu.length;u++)-1!==(l=a.indexOf(Nu[u]))&&(-1===m||l<m)&&(m=l);for(-1!==(b=-1===m?a.lastIndexOf("@"):a.last